{"version":3,"sources":["../../shared-anpost-components/src/components/form/label/Label.styled.js","../../shared-anpost-components/src/components/form/label/Label.js","../../shared-anpost-components/src/components/form/input/Input.styled.js","../../shared-anpost-components/src/components/form/input/Input.js","../../shared-anpost-components/src/components/form/select/Select.styled.js","../../shared-anpost-components/src/components/form/select/Select.js","components/_common/mobileGroup/Mobile.helpers.js","hooks/addressHooks.js","components/_common/error/ErrorWrapper.styled.js","components/_common/error/Error.js","hooks/LoginHooks.js","components/_common/icons/ReturnIcons.js","hooks/profileHooks.js","components/_common/containers/containers.styled.js","components/_common/link/PageLink.styled.js","components/_common/link/PageLink.js","components/_common/form/editableGrid/EditableGrid.styled.js","components/_pages/_transactions/click-and-post/TransactionInfo.styled.js","../../shared-anpost-components/src/components/pageTitle/PageTitle.styled.js","images/order-history.svg","images/thumbs-up.svg","images/magnify.svg","components/_core/Header/Header.styled.js","components/_core/Header/Header.js","components/_common/form/filters/filters.styled.js","components/_common/button/IconButton.styled.js","components/_common/button/IconButton.js","components/_pages/_transactions/click-and-post/TransactionsGrid.js","components/_pages/_transactions/shop/ShopNoOrders.js","components/_pages/_transactions/shop/ShopTransactionCard.js","components/_pages/_transactions/shop/ShopOrdersList.js","components/_pages/_transactions/Transactions.js","components/_pages/_addresses/AddressesGrid.js","components/_pages/_addresses/Addresses.config.js","components/_pages/_addresses/Addresses.js","components/_common/form/tabs/Tabs.styled.js","components/_pages/_profile/_sections/_profileInfo/ProfileInfo.Styled.js","components/_pages/_profile/_sections/_security/Security.styled.js","components/_pages/_profile/_sections/_security/Security.js","components/_pages/_profile/_sections/_profileInfo/ProfileInfo.js","components/_pages/_profile/_sections/_marketing/Marketing.styled.js","components/_pages/_profile/_sections/_marketing/Marketing.helpers.js","components/_pages/_profile/_sections/_marketing/Marketing.js","components/_pages/_profile/Profile.js","components/_pages/_overview/BasketSummary/BasketSummary.styled.js","components/_pages/_overview/BasketSummary/BasketSummary.js","components/_common/tablist/Tablist.styled.js","components/_core/deliveryStatusLabel/DeliveryStatusLabel.styled.js","components/_core/deliveryStatusLabel/DeliveryStatusLabel.js","components/_core/MyDeliveriesSummary/grid/DeliveryItemsGrid.styled.js","components/_core/MyDeliveriesSummary/NoItemsMessage/NoItemsCTAStyled.styled.js","components/_core/MyDeliveriesSummary/NoItemsMessage/NoItemsCTA.js","components/_core/MyDeliveriesSummary/grid/DeliveryItemsGrid.js","components/_core/MyDeliveriesSummary/BottomLink/BottomLinkStyled.styled.js","components/_core/MyDeliveriesSummary/BottomLink/BottomLink.js","hooks/myDeliveriesHooks.js","config/TrackingItems.config.js","components/_core/MyDeliveriesSummary/MyDeliveriesSummary.js","components/_common/notificationBox/NotificationBox.styled.js","components/_common/notificationBox/NotificationBox.js","components/_pages/_overview/Overview.js","components/_core/MobileTopBar/MobileTopBar.styled.js","components/_core/MobileTopBar/MobileTopBar.js","components/_pages/_loginFlow/LoginFlow.js","components/_pages/_homepage/HomePage.js"],"names":["LableStyled","styled","label","_templateObject","_taggedTemplateLiteral","props","checkbox","css","_templateObject2","Label","htmlFor","text","icon","React","createElement","LabelStyled","className","InputStyled","div","theme","lightGray1","covert","Input","forwardRef","ref","id","type","name","change","keyup","keydown","keypress","focus","blur","value","required","error","disabled","symbol","maxLength","defaultValue","min","placeHolder","showNumberKeypad","ariaInvalid","ariaDescribedby","ThemeProvider","ThemeProviderStyled","autoComplete","data-testid","onChange","onKeyUp","onKeyDown","onKeyPress","onFocus","onBlur","placeholder","inputMode","aria-describedby","aria-invalid","pattern","SelectStyled","focused","showLabel","Select","labelText","options","selectedValue","handler","isGreen","InputGroup","map","item","isSelected","key","data-value","available","description","getOptionText","handlerFunction","concat","handlerLabel","__webpack_require__","d","__webpack_exports__","validateMobile","getCountryData","getPhoneNumberValues","setMobileFieldRestrictions","libphonenumber_js__WEBPACK_IMPORTED_MODULE_0__","libphonenumber_js__WEBPACK_IMPORTED_MODULE_1__","libphonenumber_js__WEBPACK_IMPORTED_MODULE_2__","libphonenumber_js__WEBPACK_IMPORTED_MODULE_3__","values","errors","optional","countryCodeId","prefixId","numberId","tempErrors","substr","indexOf","length","isValidNumber","test","String","countries","getCountries","countriesList","regionNames","Intl","DisplayNames","prefix","countryName","countryCode","formattedObj","irelandObj","UKObj","i","getCountryCallingCode","of","push","mobileMaxLength","prefixMaxLength","charAt","number","phoneNumberData","parsePhoneNumber","prefixInfo","getprefixFromCountry","country","nationalNumber","restOfNumber","fullNumber","countryCallingCode","subNumber","reactn__WEBPACK_IMPORTED_MODULE_0__","_components_common_mobileGroup_Mobile_helpers__WEBPACK_IMPORTED_MODULE_1__","Hook","useGlobal","addressObj","getRequestParamsforAuthoriseAPI","request","addressLine1","addressLine2","addressLine3","addressLine4","eircode","town","city","county","postCode","organisationName","autoAddressId","internationalAddress","addressValidated","getRequestParamsforCIAM","UID","displayName","defaultAddress","lookupReference","postcode","setGlobalValue","setGlobal","[object Object]","setAddress","obj","address","reformattedAddress","addressId","ciamAddressId","getAddress","newValues","settings","addressValues","getAllAddressValues","manualEntry","ciamUserId","authoriseAPI","ciamAPI","clearAddress","setContactValues","contact","mobileNumber","receiver","contactNumber","contactFirstName","firstName","contactLastName","lastName","contactEmailAddress","emailAddress","contactMobile","contactMobileCountryCode","replace","contactMobilePrefix","contactMobileNumber","contactBusinessName","companyName","contactAddress","receiverAddress","contactReceiverId","receiverId","contactAddressAddresslineone","contactAddressAddresslinetwo","contactAddressAddresslinethree","contactAddressAddresslinefour","contactAddressEircode","contactAddressPostCode","contactAddressCounty","contactAddressCity","contactAddressTown","contactAddressintCountry","contactAddressNatOrInternational","resetPersonalAddressData","forceDefaultAddress","personalAddressAlias","personalAddressAliasDisabled","personalAddress","personalAddressAddresslineone","personalAddressAddresslinetwo","personalAddressDefaultDisabled","personalAddressDefault","personalAddressDefaultForced","personalAddressAddresslinethree","personalAddressAddresslinefour","personalAddressEircode","personalAddressPostCode","personalAddressCounty","personalAddressCity","personalAddressintCountry","personalAddressTown","personalAddressNatOrInternational","resetContactAddressData","createAddressSummary","selectedAddress","toUpperCase","updateAddressObject","setAdditionalAddressVals","currentVals","irishAddress","updatedVals","ErrorStyled","tablet","gold","fontBold","lightGreen","Error","_ref","errorText","errorHeading","errorLink","errorLinkText","errorCallback","externalLink","ariaLabelForLink","loginPrompt","openLoginModal","openSignupModal","LoginHook","history","useHistory","Fragment","href","target","rel","aria-label","onClick","Link","e","setLoginData","loginData","loggedIn","userIsVerified","isVerified","loginChecked","preventDefault","window","newLogin","M78","openLoginRegistration","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","n","Icon","src","width","height","xmlns","fill","fillRule","_helpers_Helpers__WEBPACK_IMPORTED_MODULE_1__","_components_common_mobileGroup_Mobile_helpers__WEBPACK_IMPORTED_MODULE_2__","useProfileHooks","profile","moneyUser","activeSideLink","activeTab","getMobileNumber","phones","setMoneyUser","moneyUserFlag","refreshGlobalVals","setProfileData","profileData","getDefaultAddress","addresses","formatAddress","capitaliseFirstLetters","setConsentValues","consents","setProfileValues","homeAddressCountry","businessAddressCountry","profileTemp","profileFirstName","profileLastName","profileEmailAddress","email","profileMobile","profileMobileCountryCode","profileMobilePrefix","profileMobileNumber","profileOldMobileNumber","createNewMobileNumber","createNewAddress","profileAddress","profileAddressNatOrInternational","createNewBusinessAddress","businessAddress","noAddresses","profileCompanyName","business","profileCompanyRegNumber","companyRegNumber","profileVatNumber","vatNumber","profileIndustry","industry","ecoSystemCustomer","handleMultipleAddress","setActiveSideLink","link","setActiveTab","InfoContainer","lightGrayBorder","lightGray3","desktopSmall","section","darkGreen","_templateObject3","upToTablet","lightGray4","secondary","_templateObject4","darkBlueBorder","shiny","_templateObject5","grayBoxShadow","InfoContainerLocked","button","_templateObject6","FlexContainer","_templateObject7","end","_templateObject8","spacearound","_templateObject9","_templateObject10","LinkStyled","red","PageLink","to","PageLinkStyled","EditableGridWrapper","EditableGridCont","AddressGridWrapper","desktop","EditableGridInfo","contactIcon","personalIcon","transactions","smallTablet","AddressWrapper","EditableGridItem","_templateObject11","_templateObject12","EditableGridBtns","_templateObject13","_templateObject14","_templateObject15","_templateObject16","PriceDisplay","_templateObject17","lightGray","EditableGridBtn","_templateObject18","_templateObject19","price","_templateObject20","delete","_templateObject21","darkBlue","EditableGridLink","_templateObject22","_templateObject23","personal","_templateObject24","EditableGridContBtns","_templateObject25","PagingSelect","_templateObject26","SearchWrapper","_templateObject27","SearchIcon","span","_templateObject28","DeletePrompt","_templateObject29","redBorder","_templateObject30","white","black","OrderDetailsWrapper","OrderDetailsHeader","OrderDetailsContent","OrderDetailsTitle","h6","OrderDetailsSubTitle","p","first","OrderDetailsCont","OrderDetailsContInner","TransactionsButtonsWrapper","PageTitle","h1","module","exports","HeaderStyled","fontRegular","NavigationStyled","darkerGreen","green","heritageGreen","lightGray5","font","Header","businessName","isMobile","topNav","copyTopNavigation","setNavProfileLinks","Apphook","navigationRef","useRef","useEffect","navigation","current","basketButton","querySelector","basketModal","userDropdownBtn","userDropdownMenu","dropdownLinks","querySelectorAll","allClickableEl","userName","JSON","parse","sessionStorage","getItem","userEmail","innerHTML","truncateString","addEventListener","stopPropagation","classList","toggle","remove","setAttribute","contains","document","forEach","el","add","handleWelcomeTitle","dangerouslySetInnerHTML","FiltersWrapper","Filter","smallMobile","active","greenBorder","IconButtonWrapper","lime","yellow","IconButtonInner","IconButtonIcon","IconButtonLabel","darkGrey","IconButtonLink","a","iconCls","withRouter","items","infoBtn","search","filters","filterActive","loader","handleBlur","handleFocus","appHook","profileHooks","currentPage","setCurrentPage","useState","itemsPerPage","setItemsPerPage","searchedItems","setSearchedItems","orderDetails","setOrderDetails","activeFilter","setActiveFilter","filtersList","setFiltersList","itemLength","numbOfItems","Math","round","ordersPerPage","fuse","Fuse","keys","checkFilterExist","filter","filterExists","filteredItems","filteredFilterList","currentPageItems","useMemo","firstPageIndex","lastPageIndex","slice","Loader","local","FormGroup","filteredResults","searchResult","basketReference","basketDate","date","updateDate","Date","toLocaleDateString","year","month","day","convertDateToString","reference","getOrderDetail","formatPrice","totalAmount","OrderHistoryIcon","alt","IconButton","val","parseInt","Number","isNaN","Pagination","pageCount","pageSize","pageChange","ShopNoOrders","StyledList","ul","Box","gap","Text","as","fontSize","ArrowRightIcon","viewBox","clipRule","Container","_ref2","children","border","borderRadius","padding","display","flexDirection","justifyContent","ShopTransactionCard","orderDate","orderId","productList","tagStyle","status","alignItems","fontWeight","fontFamily","lineHeight","style","formatOrderNumber","product","moreItemsCount","color","marginLeft","alignSelf","Tag","backgroundColor","dotColor","background","textDecoration","ShopOrdersList","ordersPerPageChange","onPageChange","totalItems","isLoading","mapProductList","productName","splice","order","formatedDate","orderItems","mapStatusTagStyles","orderStatus","formatedPrice","orderTotal","mapItemsPerPageSelect","PRODUCTS","Transactions","_searchParams$find","setSearchParam","searchParams","useSearchParams","userId","selectedProduct","find","cNpOrders","enabled","arguments","undefined","data","setData","cachedCnPOrders","setError","setLoading","createToken","useCancelToken","fetch","async","cancelToken","_response$data","getJWTInfo","response","getTransactions","baskets","axios","isCancel","console","log","message","_e$response","_e$response$data","hasNoBasket","basketsCount","isPending","reset","useCnPOrdersQuery","dmOrders","cachedDmOrders","totalPages","setTotalPages","totalRecords","setTotalRecords","pageNumber","setPageNumber","resetState","pgNum","getOrders","_response$data2","_response$data2$Data","_response$data2$Data$","_response$data3","_response$data3$Data","_response$data3$Data$","_response$data4","_response$data4$Data","_response$data4$Data$","Data","Orders","it","_it$Status","Status","Name","Paging","TotalPages","TotalRecords","useDmOrdersQuery","shopOrders","cachedShopOrders","setOrdersPerPage","setTotalItems","pageNum","limit","offset","_response$data5","getShopOrders","orders","pageInfo","totalElements","selectValue","currentTarget","useShopOrdersQuery","onSelectProduct","GlobalError","closeFunc","onReset","TransactionsHeader","ProductTabList","onSelect","selected","TransactionsGrid","DmOrderList","cancelTokenSource","cancel","CancelToken","source","token","AddressesGrid","setLoader","apiError","setApiError","deleteBtn","editBtn","newItem","onAddressUpdate","addressHooks","currentLimit","setCurrentLimit","setFilteredItems","deletePrompt","setDeletePrompt","updateCurrentFilter","virtualUrl","virtualTitle","virtualPageView","handleAnalytics","handleError","showEditForm","showEditContact","showEditPersonal","deleteItem","addressType","addressData","then","deleteAddress","res","getProfile","setItem","stringify","catch","deletePersonalAddress","ciamCustomerId","sessionId","cmsSessionId","deleteFavourite","deleteContactAddress","filterItems","person","edit","AddressesConfig","addressLine5","addressLine6","addressLine7","addressLine8","AddressesFiltersConfig","Addresses","userAddresses","setUserAddresses","setProfileCallback","callback","tempUserAddresses","homeAddress","otherUserAddress","tempItem","getFavouriteReceivers","profileAddresses","getFavourites","favouriteAddresses","receivers","uid","updateAddresses","apDevMode","TabsWrapper","Tab","lightGray2","greenBorderThick","ProfileInfoContainer","BusinessBtnWrapper","teal","lightTeal","lightTielBorder","BusinessDescWrapper","SecurityContainer","Security","passwordReset","ThumbsUpIcon","ProfileInfo","profileInfo","setProfileInfo","phoneNumbers","setPhoneNumbers","setDefaultAddress","setBusinessAddress","setBusiness","editFlow","setEditFlow","isBusiness","setIsBusiness","ProfileHooks","AddressHooks","anyProfileInfo","anyBusinessInfoInfo","defAddress","defBusinessAddress","businessCountry","personalCountry","updatedValues","allAddresses","aria-disabled","MarketingContainer","MarketingSection","midGreyBorder","setAllGlobalConsents","channels","applications","toggled","tmpValues","applicationCode","isSubscribed","Object","entries","Marketing","marketingConsents","appHooks","validate","handleMarketingConsentUpdate","event","displayText","checked","setCheckbox","updateAllMarketingConsents","toggleMarketingConsents","channelsToggled","productsToggled","startsWith","submitConsents","dataLayer","toggleSelected","lockMarketingConsents","submitProfilingConsent","updateConsentPromise","Promise","resolve","consent","updateMarketingConsents","consentCode","isConsentGranted","updateProfilingConsent","localStorage","checkboxElement","checkboxText","classes","Checkbox","CheckboxLabel","aria-hidden","FieldError","applicationName","Profile","profileTab","setConsents","setMarketingConsents","consentProfiling","setConsentProfiling","currentProfileTab","setCurrentProfileTab","userProfile","setuserProfile","showBusinessBanner","setShowBusinessBanner","isAnPostApp","marketing","profiling","marketingUpdated","getProfileInfo","_userProfile$profile","_userProfile$profile$","_profileData$profile","_profileData$profile$","paddingBottom","BasketContainer","BasketHeader","mintGreen","darkYellow","BasketPanel","BasketTotal","BasketEmpty","BasketTotalRow","totalPrice","basketUrl","EmptyCAPBasket","EmptyShopBasket","BasketSummary","_shopBasketData$cartI","containerNode","openPanel","setOpenPanel","shopBasketData","setShopBasketData","capBasketData","setCapBasketData","onTabClick","selectedPanel","getCapBasketItemCount","serviceType","_capBasketData$servic","services","service","count","getCapBasketItemPrice","_capBasketData$servic2","itemPrice","amount","toFixed","shopBasketRef","getCookie","userIdCookie","capBasketRefCookie","getShopBasket","_res$data","_res$data2","_res$data2$cart","cart","cartItems","err","getCapBasketSummary","parentElement","role","aria-controls","aria-selected","itemCount","reduce","acc","quantity","aria-labelledby","colSpan","calculateTotalItemPrice","units","totalPriceFixed","unitPrice","subtotalPrice","shippingPrice","parseFloat","discountPrice","Tablist","TablistHeader","emptyItems","greenDark","darkerGrey","TablistContent","TabButton","iceBlue","DeliveryStatusLabelStyled","lightBlue2","blue","lightOrange","orange","lightGreen2","lightRed","lightGold","DeliveryStatusLabel","getDeliveryStatusInfo","statusClass","DeliveryItemsGridStyled","DeliveryItemsGridWrapperStyled","DeliveryItemsGridHeadersStyled","DeliveryItemsLinkStyled","upToSmallDesktop","DeliveryItemsColStyled","NoItemsCTAStyled","limeGreen","darkLimeGreen","NoItemsCTA","noItemsMsg","baseUrl","location","origin","msgText","setMsgText","msg","newMsg","split","trim","splitTextToNewLine","DeliveryItemsGrid","ariaLabelledby","itemsToShow","setItemsToShow","showDeliveryDetails","keyCode","trackingNumber","tabindex","lastTrackingEventCategoryId","returnType","retailerName","str","updatedStr","toLowerCase","x","join","recipientName","string","formatTrackingNumber","getDeliveryItemTitle","customsPaymentRequired","BottomLinkStyled","BottomLink","MyDeliveriesHooks","showMobileBanner","setShowMobileBanner","showCustomsBanner","setShowCustomsBanner","callMobileDataApi","getMobileData","mobileNumbers","primaryMobile","mobile","numbers","verified","filterReceivingItems","trackingItems","checkDateInThePast","days","daysInPast","compareDate","setDate","getDate","dateDelivered","filterSendingItems","receivingItemsTestData","deliveryManagerAvailable","customsPaymentTotalDue","customsPaymentDateDue","mrn","estimatedDeliveryDateTime","deliveryManagerInstructionSet","deliveryManagerInstructionDetail","destinationCountyCity","destinationCountry","success","tabsArr","MyDeliveriesSummary","isCustomerRegistered","allItemsEmpty","setAllItemsEmpty","trackingListLoading","setTrackingListLoading","receivingItemsData","setReceivingItemsData","sendingItemsData","setSendingItemsData","getTrackingItems","tabs","tab","renderTabs","loading","NotificationBoxStyled","borderColor","NotificationBox","heading","onClose","ctaText","ctaClick","Overview","openTab","useWidgetsScripts","useWidgetsStyles","AppHook","myAccountContent","setMyAccountContent","container","setContainer","showWarning","setShowWarning","js","OverviewHeading","businessTabOpenCount","removeItem","banner_name","myAccountContentApi","getContentFromContentApi","contentData","widgetsCss","widgetCss","widgetsJs","widgetJs","personalContent","content","html","businessContent","contentHtml","basketSummaryContainer","CIAMCustomerID","validateCnPBasket","basketData","validationErrors","basketError","MailServiceType","isBasketValid","validateBasket","Notification","colour","additionalText","withMargin","closeBusinessBanner","__html","createPortal","MobileTopBarStyled","header","MobileTopBar","isOverview","dropdownExpanded","setDropdownExpanded","copyTopMobileDropdowns","topBarRef","mobileNav","MobileMenu","init","closeBurgerMenu","mobileNavigation","basketCloseModalBtn","burger","click","title","x1","y1","x2","y2","gradientUnits","stopColor","stopOpacity","basketDropdown","aria-expanded","data-m59-username","data-m59-dropdown","userMenu","SwitchProfileButton","data-m59-logout","MagnifyIcon","loginCompleteCallback","ApiError","loginRequested","setLoginRequested","loginHooks","loginRegCallback","loggedInUser","loginOverride","loggedOutUser","onMyAccountAppLogin","registerCallback","overrideUID","getProfileCallbackFn","registerCustomerCallbackFn","m59","registerDirectMailCustomer","profileResponse","apgigya","gigyaInitStarted","activerUserSessionChecked","checkActiveUserSession","HomePage","removeNavMargins","handleMainMargin","homepageActiveTab","setHomepageActiveTab","setProfile","businessname","setBusinessname","firstname","setFirstname","lastname","setLastname","setUserEmail","isCollapsed","sideNavIndex","setSideNavIndex","setIsCustomerRegistered","DetectDeviceResize","checkTab","handleOpenTab","pathname","includes","dashboardType","appPageNameParagraph","pageTitle","LoginFlow","_profile$business","_profile$business2","businessNameInfo","endsWith","cookie","checkForBusinessAcc","machApplication","registerApplication","appMyAccMyDeliveriesAPI","hasApplicationCode","userData","customerName","registerMyDeliveriesUser","myDeliveriesRegCheck","AccountContainerStyled","LeftContainerStyled","SideNav","RightContainerStyled","ContentContainerStyled"],"mappings":"2OA4BeA,MA1BKC,IAAOC,MAAKC,MAAAC,EAAA,yTAgB1BC,GAEMA,EAAMC,UACNC,YAAGC,MAAAJ,EAAA,qECSAK,IAjBDJ,KACV,MAAMK,QAAEA,EAAOC,KAAEA,EAAIL,SAAEA,EAAQM,KAAEA,GAASP,EAC1C,OACIQ,IAAAC,cAACC,EAAW,CAACL,QAASA,EAASJ,SAAUA,EAAUU,UAAWJ,GAAQ,uBACjED,wLCqCEM,MApDKhB,IAAOiB,IAAGf,MAAAC,EAAA,itBAaTC,GAAUA,EAAMc,MAAMC,WAuBtCf,GAECA,EAAMgB,QACNd,YAAGC,MAAAJ,EAAA,s9ECxBT,MAAMkB,EAAQT,IAAMU,WAAW,CAAClB,EAAOmB,KACrC,MAAMC,GACJA,EAAEC,KACFA,EAAIC,KACJA,EAAIC,OACJA,EAAMC,MACNA,EAAKC,QACLA,EAAOC,SACPA,EAAQC,MACRA,EAAKC,KACLA,EAAIC,MACJA,EAAKC,SACLA,EAAQC,MACRA,EAAKC,SACLA,EAAQzB,KACRA,EAAI0B,OACJA,EAAMC,UACNA,EAASC,aACTA,EAAYC,IACZA,EAAGC,YACHA,EAAWrB,OACXA,EAAMsB,iBACNA,EAAgBC,YAChBA,EAAWC,gBACXA,GACExC,EACJ,OACEQ,IAAAC,cAACgC,IAAa,CAAC3B,MAAO4B,KACpBlC,IAAAC,cAACG,EAAW,CAACI,OAAQA,GAElBT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tBgT,GAAqCtpC,IAAAC,cAAC8vB,GAAS,MACzB,QAAtBuZ,GAA+BtpC,IAAAC,cAAC2mB,GAAY","file":"static/js/2.b23aefd4.chunk.js","sourcesContent":["import styled, { css } from \"styled-components\";\n\nconst LableStyled = styled.label`\n top: 50%;\n transform: translateY(-50%);\n transition: all 0.2s ease-in-out;\n position: absolute;\n left: 2rem;\n font-size: 1.4rem;\n cursor: text;\n pointer-events: none;\n z-index: 10;\n margin: 0;\n\n &.label__with__symbol {\n left: 6rem;\n }\n\n ${props => {\n return (\n props.checkbox &&\n css`\n transform: translateY(-50%);\n `\n );\n }}\n`;\n\nexport default LableStyled;\n","// dependancies\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\n\n// styles\nimport LabelStyled from \"./Label.styled\";\n\n/**\n *\n * @param {*} props\n * if the `icon` prop is passed in a class of `label__with__symbol` is added to handle the styling of an input with an icon\n */\n\nconst Label = props => {\n const { htmlFor, text, checkbox, icon } = props;\n return (\n \n {text}\n \n );\n};\n\n// props validation\nLabel.propTypes = {\n htmlFor: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n checkbox: PropTypes.string,\n icon: PropTypes.bool\n};\n\nexport default Label;\n","import styled, { css } from 'styled-components'\n\nconst InputStyled = styled.div`\n position: relative;\n input {\n border: 1px solid #d0d0ce;\n height: 5rem;\n font-size: 1.4rem;\n padding-left: 2rem;\n padding-right: 2rem;\n border-radius: 0.5rem;\n display: block;\n width: 100%;\n background-color: #fff;\n &:disabled {\n background: ${(props) => props.theme.lightGray1};\n border: none;\n }\n }\n\n .input__with__symbol {\n padding-left: 6rem;\n }\n\n .symbol {\n display: flex;\n justify-content: center;\n align-items: center;\n background: #f3f3f3;\n height: 5.4rem;\n width: 5rem;\n position: absolute;\n left: 0.1rem;\n border-top-left-radius: 0.5rem;\n border-bottom-left-radius: 0.5rem;\n z-index: -1;\n }\n /* covert */\n ${(props) => {\n return (\n props.covert &&\n css`\n input {\n border: none;\n &:before {\n background-image: url('data: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TQuMTAzNzY5NCAwLjgzNTAzMzI1OSwxMS44MDA0NDM1IDAuODM1MDMzMjU5LDguOTY5NDAxMzMgWiIgaWQ9IlNoYXBlIj48L3BhdGg+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==');\n background-repeat: no-repeat;\n }\n }\n `\n )\n }}\n`\n\nexport default InputStyled\n","// dependancies\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport { ThemeProvider } from 'styled-components'\n\n// styles\nimport InputStyled from './Input.styled'\nimport ThemeProviderStyled from '../../../theme/ThemeProvider.styled'\n\n/**\n *\n * @param {*} props\n * if the `icon` prop is passed in\n * the icon passed in using the `symbol` prop is displayed\n * a class of `input__with__symbol` is added to handle the styling of an input with an icon\n */\n\nconst Input = React.forwardRef((props, ref) => {\n const {\n id,\n type,\n name,\n change,\n keyup,\n keydown,\n keypress,\n focus,\n blur,\n value,\n required,\n error,\n disabled,\n icon,\n symbol,\n maxLength,\n defaultValue,\n min,\n placeHolder,\n covert,\n showNumberKeypad,\n ariaInvalid,\n ariaDescribedby,\n } = props\n return (\n \n \n {/* {used to add an icon to an input field pass icon as a prop to display } */}\n {icon &&
{symbol}
}\n \n
\n
\n )\n})\n\n// props validation\nInput.propTypes = {\n id: PropTypes.string.isRequired,\n type: PropTypes.oneOf(['text', 'number', 'tel', 'password', 'email', 'date'])\n .isRequired,\n name: PropTypes.string.isRequired,\n change: PropTypes.func,\n keyup: PropTypes.func,\n keydown: PropTypes.func,\n keypress: PropTypes.func,\n focus: PropTypes.func,\n blur: PropTypes.func,\n value: PropTypes.string,\n required: PropTypes.bool,\n error: PropTypes.bool,\n disabled: PropTypes.bool,\n icon: PropTypes.bool,\n symbol: PropTypes.string,\n maxLength: PropTypes.string,\n defaultValue: PropTypes.string,\n min: PropTypes.string,\n placeHolder: PropTypes.string,\n covert: PropTypes.bool,\n showNumberKeypad: PropTypes.bool,\n ariaDescribedby: PropTypes.string,\n ariaInvalid: PropTypes.string,\n}\n\nexport default Input\n","import styled, { css } from \"styled-components\";\n\nconst SelectStyled = styled.div`\n label {\n opacity: 0;\n height: 1px;\n clip: rect(1px, 1px, 1px, 1px);\n }\n \n .isGreen {\n padding:30px;\n color: green;\n }\n\n select {\n height: 5rem;\n font-size: 1.4rem;\n line-height: 1.5;\n padding: 1.1em 2rem;\n }\n /* focused */\n ${(props) => {\n return (\n props.focused &&\n css`\n label {\n display: block;\n font-size: 1.2rem;\n top: 2rem;\n font-weight: bold;\n\n ${(props) => props.showLabel && \"opacity: 1\"};\n ${(props) => props.showLabel && \"height: auto\"};\n ${(props) => props.showLabel && \"clip: unset\"};\n }\n select {\n line-height: normal; /* safari fix */\n padding-top: 2rem;\n padding-bottom: 0;\n }\n `\n );\n }}\n`;\n\nexport default SelectStyled;\n","// dependancies\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\n\n// components\nimport Label from \"../label/Label\";\nimport InputGroup from \"../input_group/InputGroup\";\n\n// styled components\nimport SelectStyled from \"./Select.styled\";\n\nconst Select = React.forwardRef((props, ref) => {\n const {\n /**\n * `id` sets the id of the select, is a string and isRequired\n */\n id,\n /**\n * `name` sets the name of the select, is a string and isRequired\n */\n name,\n /**\n * `required` sets the requirement of the select and is a boolean\n */\n required,\n /**\n * `error` boolean to set if the select has an error\n */\n error,\n /**\n * `labelText` sets the label text, is a string and isRequired\n */\n labelText,\n /**\n * `change` onChange function\n */\n change,\n /**\n * `focus` onFocus function\n */\n focus,\n /**\n * `blur` onFocus function\n */\n blur,\n /**\n * `focused` boolean to check if select is focused\n */\n focused,\n /**\n * `options` array that needs to be passed as props. the array needs to include ia and value and isRequired\n */\n options,\n /**\n * `defaultValue` defaultValue for the select and isRequired\n */\n defaultValue,\n /**\n * `selectedValue` selectedValue for the select\n */\n selectedValue,\n /**\n * `covert` covert style boolean for the select\n */\n covert,\n /**\n * `disabledd` disabled attribute for the select\n */\n disabled,\n /**\n * `ariaDescribedby` aria-describedby attribute for the select\n */\n ariaDescribedby,\n /**\n * `ariaInvalid` aria-invalid attribute for the select\n */\n ariaInvalid,\n /**\n * `showLabel` showLabel attribute for the select\n */\n showLabel,\n /**\n * `handler` event handler at the end of the select\n */\n handler,\n /**\n * `isGreen` options appear in a green background\n */\n isGreen,\n } = props;\n\n const getOptionText = (item, isSelected, value) => {\n if (isSelected) {\n return \n }\n\n if (selectedValue === \"handler\") {\n handler.handlerFunction()\n }\n \n return item.description && focused ? `${item.name ? item.name : item.value} - ${item.description}` : null;\n };\n return (\n \n \n {labelText && \n \n );\n});\n\n// props validation\nSelect.propTypes = {\n id: PropTypes.string.isRequired,\n labelText: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n options: PropTypes.array.isRequired, // used to populate the select options\n defaultValue: PropTypes.string.isRequired, // used to set the defaultValue\n selectedValue: PropTypes.string, // used to set the selected value\n change: PropTypes.func,\n focus: PropTypes.func,\n blur: PropTypes.func,\n focused: PropTypes.bool,\n required: PropTypes.bool,\n error: PropTypes.bool,\n covert: PropTypes.bool,\n disabled: PropTypes.bool,\n ariaDescribedby: PropTypes.string,\n ariaInvalid: PropTypes.string,\n};\n\nexport default Select;\n","import { getCountries, getCountryCallingCode, parsePhoneNumber, isValidNumber } from \"libphonenumber-js\";\n\n// validate mobile number fields and return an updated errors object\nconst validateMobile = (values, errors, id, optional) => {\n const countryCodeId = `${id}CountryCode`;\n const prefixId = `${id}Prefix`;\n const numberId = `${id}Number`;\n const tempErrors = errors;\n\n if (!optional || (values[prefixId] || values[numberId])) {\n if (!values[countryCodeId]) {\n tempErrors[countryCodeId] = \"Country is a required field\";\n }\n\n if (!values[prefixId]) {\n tempErrors[prefixId] = \"Prefix is a required field\";\n }\n\n if (!values[numberId]) {\n tempErrors[numberId] = \"Mobile is a required field\";\n }\n }\n\n if (values[countryCodeId] && values[prefixId] && values[numberId]) {\n // get the country code e.g. IE-353 -> 353\n const countryCode = values[countryCodeId].substr(values[countryCodeId].indexOf(\"-\") + 1, values[countryCodeId].length);\n const fullPhoneLength = countryCode.length + values[prefixId].length + values[numberId].length;\n\n if (fullPhoneLength > 15) {\n tempErrors[numberId] = \"Full phone number cannot be longer than 15 digits long.\";\n }\n\n if (!isValidNumber(values[id])) {\n tempErrors[numberId] = \"Please enter a valid phone number.\";\n }\n }\n\n if (values[prefixId]) {\n // Ireland number should be 7 digits long\n if (values[countryCodeId] === \"IE-353\") {\n if (!/08[0-9]/g.test(values[prefixId]) && !/8[0-9]/g.test(values[prefixId])) {\n tempErrors[prefixId] = \"Prefix should be in the format 08X\";\n }\n } else if (values[countryCodeId] === \"GB-44\") {\n if (!/07[0-9]/g.test(values[prefixId]) && !/7[0-9]/g.test(values[prefixId])) {\n tempErrors[prefixId] = \"Prefix should be in the format 07X\";\n }\n }\n }\n\n if (values[numberId]) {\n // Ireland number should be 7 digits long\n if (values[countryCodeId] === \"IE-353\") {\n if (String(values[numberId]).length !== 7) {\n tempErrors[numberId] = \"Mobile number should be 7 digits long for an Irish mobile number\";\n }\n } else if (values[countryCodeId] === \"GB-44\") {\n if (String(values[numberId]).length !== 8) {\n tempErrors[numberId] = \"Mobile number should be 8 digits long for a UK mobile number\";\n }\n } else if (String(values[numberId]).length > 10) {\n // Mobile number is max of 10 OR Max of 15 when combining country code, prefix and mobile number\n tempErrors[numberId] = \"Mobile number should be less than 10 digits.\";\n }\n }\n\n return tempErrors;\n};\n\n// get a list of countries to populate a cuntry code select\nconst getCountryData = () => {\n const countries = getCountries();\n const countriesList = [];\n\n // Inbuilt JS for converting a countryCoode to a name\n const regionNames = new Intl.DisplayNames([\"en\"], { type: \"region\" });\n\n // define variables for loop\n let prefix;\n let countryName;\n let countryCode;\n let formattedObj;\n let irelandObj;\n let UKObj;\n\n // loop through countries list\n for (let i = 0; i < countries.length; i += 1) {\n // use library to get the calling code e.g. IE -> 353\n prefix = getCountryCallingCode(countries[i]);\n countryName = regionNames.of(countries[i]);\n countryCode = countries[i];\n\n // format each object for the select\n formattedObj = { value: `${countryCode}-${prefix}`, id: `${countryCode}-${prefix}`, name: `${countryName} +${prefix}`, available: true };\n\n // order the list IE -> UK -> ROW\n if (countryCode === \"IE\") {\n irelandObj = formattedObj;\n } else if (countryCode === \"GB\") {\n UKObj = formattedObj;\n } else {\n countriesList.push(formattedObj);\n }\n }\n\n return [irelandObj, UKObj, ...countriesList];\n};\n\n/**\n *\n * @param {string} countryCode\n * @param {string} prefix\n * returns field restrictions\n */\nconst setMobileFieldRestrictions = (countryCode, prefix) => {\n if (countryCode) {\n if (countryCode === \"IE-353\") {\n return {\n mobileMaxLength: \"7\",\n // if the first digit of the prefix is 8 set the max to 2 otherwise 3\n prefixMaxLength: prefix && prefix.charAt(0) === \"8\" ? \"2\" : \"3\"\n };\n }\n if (countryCode === \"GB-44\") {\n return {\n mobileMaxLength: \"8\",\n // if the first digit of the prefix is 7 set the max to 2 otherwise 3\n prefixMaxLength: prefix && prefix.charAt(0) === \"7\" ? \"2\" : \"3\"\n };\n }\n }\n return {\n mobileMaxLength: \"10\",\n prefixMaxLength: \"5\"\n };\n};\n\n/**\n *\n * @param {string} country\n * @param {string} nationalNumber\n * return the prefix for the country\n */\nconst getprefixFromCountry = (country, nationalNumber) => {\n // get first two digits for the prefix\n if (country === \"IE\" || country === \"GB\") {\n return {\n prefix: nationalNumber.substr(0, 2),\n restOfNumber: nationalNumber.substr(2, nationalNumber.length)\n };\n }\n return {\n prefix: nationalNumber.substr(0, 5),\n restOfNumber: nationalNumber.substr(5, nationalNumber.length)\n };\n};\n\n/**\n *\n * @param {string} number\n * return the broken down values for the phone numbers\n */\nconst getPhoneNumberValues = number => {\n if (number) {\n const phoneNumberData = parsePhoneNumber(number);\n const prefixInfo = getprefixFromCountry(phoneNumberData.country, phoneNumberData.nationalNumber);\n\n return {\n fullNumber: number,\n countryCode: `${phoneNumberData.country}-${phoneNumberData.countryCallingCode}`,\n prefix: prefixInfo.prefix,\n subNumber: prefixInfo.restOfNumber\n };\n }\n return {\n fullNumber: \"\",\n countryCode: \"IE-353\",\n prefix: \"\",\n subNumber: \"\"\n };\n};\n\nexport { validateMobile, getCountryData, getPhoneNumberValues, setMobileFieldRestrictions };\n","// hook dependancies\nimport { useGlobal, setGlobal } from \"reactn\";\n\n// helpers\nimport { getPhoneNumberValues } from \"../components/_common/mobileGroup/Mobile.helpers\";\n\n/**\n * Address Hooks\n */\nconst Hook = () => {\n const [values] = useGlobal(\"values\");\n\n const setGlobalValue = (id, value) => {\n setGlobal({\n values: { ...values, [id]: value }\n });\n };\n\n const [addressObj] = useGlobal(\"addressObj\");\n\n const setAddress = (key, obj) => {\n const address = {\n addressLine1: obj.reformattedAddress[1] ? obj.reformattedAddress[1] : \"\",\n addressLine2: obj.reformattedAddress[2] ? obj.reformattedAddress[2] : \"\",\n addressLine3: obj.reformattedAddress[3] ? obj.reformattedAddress[3] : \"\",\n addressLine4: \"\",\n eircode: obj.postcode,\n town: obj.reformattedAddress[4] ? obj.reformattedAddress[4] : \"\",\n city: \"\",\n county: obj.reformattedAddress[5] ? obj.reformattedAddress[5] : \"\",\n country: \"Ireland\",\n postCode: \"\",\n organisationName: obj.reformattedAddress[0] ? obj.reformattedAddress[0] : \"\",\n autoAddressId: obj.addressId,\n lookupReference: obj.addressId,\n internationalAddress: false,\n addressValidated: true,\n ciamAddressId: obj.ciamAddressId\n };\n setGlobal({\n addressObj: { ...addressObj, [key]: address }\n });\n };\n\n // update receiver address when editing\n const updateAddressObject = (key, obj) => {\n setGlobal({\n addressObj: { ...addressObj, [key]: obj }\n });\n };\n\n // clear add address\n const clearAddress = key => {\n setGlobal({\n addressObj: { ...addressObj, [key]: null }\n });\n };\n\n // request headers for authorise API requests\n const getRequestParamsforAuthoriseAPI = request => {\n return {\n addressLine1: request.addressLine1,\n addressLine2: request.addressLine2,\n addressLine3: request.addressLine3,\n addressLine4: request.addressLine4,\n eircode: request.eircode,\n town: request.town,\n city: request.city,\n county: request.county,\n country: request.country,\n postCode: request.postCode,\n organisationName: request.organisationName,\n autoAddressId: request.autoAddressId,\n internationalAddress: request.internationalAddress,\n addressValidated: request.addressValidated\n };\n };\n\n // request headers for CIAM API requests\n const getRequestParamsforCIAM = request => {\n return {\n UID: request.UID,\n displayName: request.displayName,\n defaultAddress: request.defaultAddress,\n country: request.country,\n town: request.town,\n addressLine1: request.addressLine1,\n addressLine2: request.addressLine2,\n addressLine3: request.addressLine3,\n addressLine4: request.addressLine4,\n city: request.city,\n county: request.county,\n lookupReference: request.lookupReference,\n postcode: request.postcode,\n eircode: request.eircode,\n organisationName: request.organisationName,\n id: request.id\n };\n };\n\n // returns all the values related to the particular address\n const getAllAddressValues = (addressId, newValues) => {\n return newValues.manualEntry || newValues[`${addressId}NatOrInternational`] === \"international\"\n ? {\n UID: newValues.ciamUserId,\n id: newValues[`${addressId}EditId`],\n displayName: newValues[`${addressId}Alias`],\n defaultAddress: newValues[`${addressId}DefaultForced`] || newValues[`${addressId}Default`],\n addressLine1: newValues[`${addressId}Addresslineone`] ? newValues[`${addressId}Addresslineone`] : \"\",\n addressLine2: newValues[`${addressId}Addresslinetwo`] ? newValues[`${addressId}Addresslinetwo`] : \"\",\n addressLine3: newValues[`${addressId}Addresslinethree`] ? newValues[`${addressId}Addresslinethree`] : \"\",\n addressLine4: newValues[`${addressId}Addresslinefour`] ? newValues[`${addressId}Addresslinefour`] : \"\",\n eircode: newValues[`${addressId}Eircode`] && newValues[`${addressId}Country`] === \"Ireland\" ? newValues[`${addressId}Eircode`] : \"\",\n town: newValues[`${addressId}Town`] ? newValues[`${addressId}Town`] : \"\",\n city: newValues[`${addressId}City`] ? newValues[`${addressId}City`] : \"\",\n county: newValues[`${addressId}County`] ? newValues[`${addressId}County`] : \"\",\n country: newValues[`${addressId}Country`] ? newValues[`${addressId}Country`] : \"\",\n postCode: newValues[`${addressId}PostCode`] && newValues[`${addressId}Country`] !== \"Ireland\" ? newValues[`${addressId}PostCode`] : \"\",\n postcode: newValues[`${addressId}PostCode`] && newValues[`${addressId}Country`] !== \"Ireland\" ? newValues[`${addressId}PostCode`] : \"\",\n organisationName: \"\",\n autoAddressId: \"\",\n internationalAddress: newValues[`${addressId}Country`] !== \"Ireland\",\n addressValidated: false\n }\n : {\n ...addressObj[addressId],\n UID: newValues.ciamUserId,\n id: newValues[`${addressId}EditId`],\n displayName: newValues[`${addressId}Alias`],\n defaultAddress: newValues[`${addressId}DefaultForced`] || newValues[`${addressId}Default`]\n };\n };\n\n // wrapper function that returns address request headers to be passed to APIs\n const getAddress = (addressId, newValues, settings) => {\n // get all the address values available\n const addressValues = getAllAddressValues(addressId, newValues);\n\n // if you just need authorise API values,\n if (settings) {\n // if it is an authorise API request\n if (settings.authoriseAPI) {\n return getRequestParamsforAuthoriseAPI(addressValues);\n }\n\n // if it is a CIAM API request\n if (settings.ciamAPI) {\n return getRequestParamsforCIAM(addressValues);\n }\n }\n\n return addressValues;\n };\n\n const createAddressSummary = selectedAddress => {\n const address = [];\n\n if (selectedAddress.organisationName) address.push(selectedAddress.organisationName);\n if (selectedAddress.addressLine1) address.push(selectedAddress.addressLine1);\n if (selectedAddress.addressLine2) address.push(selectedAddress.addressLine2);\n if (selectedAddress.addressLine3) address.push(selectedAddress.addressLine3);\n if (selectedAddress.addressLine4) address.push(selectedAddress.addressLine4);\n if (selectedAddress.city) address.push(selectedAddress.city);\n if (selectedAddress.town) address.push(selectedAddress.town);\n if (selectedAddress.county) address.push(selectedAddress.county);\n if (selectedAddress.eircode && selectedAddress.country.toUpperCase() === \"IRELAND\") address.push(selectedAddress.eircode);\n if (selectedAddress.postcode && selectedAddress.country.toUpperCase() !== \"IRELAND\") address.push(selectedAddress.postcode);\n if (selectedAddress.country) address.push(selectedAddress.country);\n\n return address;\n };\n\n const setContactValues = contact => {\n const mobileNumber = getPhoneNumberValues(contact.receiver.contactNumber);\n setGlobal({\n values: {\n ...values,\n contactFirstName: contact.receiver.firstName,\n contactLastName: contact.receiver.lastName,\n contactEmailAddress: contact.receiver.emailAddress,\n contactMobile: contact.receiver.contactNumber,\n contactMobileCountryCode: mobileNumber.countryCode.replace(/\\s/g, \"\"),\n contactMobilePrefix: mobileNumber.prefix.replace(/\\s/g, \"\"),\n contactMobileNumber: mobileNumber.subNumber.replace(/\\s/g, \"\"),\n contactBusinessName: contact.receiver.companyName,\n contactAddress: contact.receiverAddress.country === \"Ireland\" ? \"addressSet\" : \"\",\n contactReceiverId: contact.receiverId,\n contactAddressAddresslineone: contact.receiverAddress.addressLine1,\n contactAddressAddresslinetwo: contact.receiverAddress.addressLine2,\n contactAddressAddresslinethree: contact.receiverAddress.addressLine3,\n contactAddressAddresslinefour: contact.receiverAddress.addressLine4,\n contactAddressEircode: contact.receiverAddress.eircode,\n contactAddressPostCode: contact.receiverAddress.postcode,\n contactAddressCounty: contact.receiverAddress.county,\n contactAddressCity: contact.receiverAddress.city,\n contactAddressTown: contact.receiverAddress.town,\n contactAddressintCountry: contact.receiverAddress.country,\n contactAddressNatOrInternational: contact.receiverAddress.country === \"Ireland\" ? \"national\" : \"international\"\n }\n });\n };\n\n const resetContactAddressData = () => {\n setGlobal({\n values: {\n ...values,\n contactFirstName: \"\",\n contactLastName: \"\",\n contactEmailAddress: \"\",\n contactMobile: \"\",\n contactMobileCountryCode: \"IE-353\",\n contactMobilePrefix: \"\",\n contactMobileNumber: \"\",\n contactReceiverId: \"\",\n contactAddress: \"\",\n contactBusinessName: \"\",\n contactAddressAddresslineone: \"\",\n contactAddressAddresslinetwo: \"\",\n contactAddressAddresslinethree: \"\",\n contactAddressAddresslinefour: \"\",\n contactAddressPostCode: \"\",\n contactAddressEircode: \"\",\n contactAddressCounty: \"\",\n contactAddressCity: \"\",\n contactAddressintCountry: \"\",\n contactAddressTown: \"\",\n contactAddressNatOrInternational: \"national\"\n }\n });\n };\n\n // this sets manual and international addresses for an instance of the AddressTemplate\n // it sets fields related to international and manual addresses\n const setAdditionalAddressVals = (id, address, currentVals) => {\n const irishAddress = address.country ? address.country.toUpperCase() === \"IRELAND\" : false;\n\n const updatedVals = {\n ...currentVals,\n [`${id}Alias`]: `${address.displayName}`,\n [`${id}AliasDisabled`]: !!(address.displayName === \"Home\" || address.displayName === \"Business\" || address.displayName === \"Alternate\"),\n [`${id}`]: irishAddress ? \"addressSet\" : \"\",\n [`${id}Default`]: address.defaultAddress,\n [`${id}DefaultDisabled`]: address.defaultAddress,\n [`${id}NatOrInternational`]: address.country && address.country.toUpperCase() !== \"IRELAND\" ? \"international\" : \"national\",\n [`${id}Addresslineone`]: address.addressLine1,\n [`${id}Addresslinetwo`]: address.addressLine2,\n [`${id}Addresslinethree`]: address.addressLine3,\n [`${id}Addresslinefour`]: address.addressLine4,\n [`${id}Eircode`]: address.eircode,\n [`${id}PostCode`]: address.postcode,\n [`${id}County`]: address.county,\n [`${id}Country`]: address.country,\n [`${id}City`]: address.city,\n [`${id}Town`]: address.town,\n [`${id}EditId`]: address.id\n };\n setGlobal({\n values: updatedVals\n });\n\n return updatedVals;\n };\n\n const resetPersonalAddressData = forceDefaultAddress => {\n setGlobal({\n values: {\n ...values,\n personalAddressAlias: \"\",\n personalAddressAliasDisabled: \"\",\n personalAddress: \"\",\n personalAddressAddresslineone: \"\",\n personalAddressAddresslinetwo: \"\",\n personalAddressDefaultDisabled: \"\",\n personalAddressDefault: false,\n personalAddressDefaultForced: forceDefaultAddress,\n personalAddressAddresslinethree: \"\",\n personalAddressAddresslinefour: \"\",\n personalAddressEircode: \"\",\n personalAddressPostCode: \"\",\n personalAddressCounty: \"\",\n personalAddressCity: \"\",\n personalAddressintCountry: \"\",\n personalAddressTown: \"\",\n personalAddressNatOrInternational: \"national\"\n }\n });\n };\n\n return {\n setGlobalValue,\n setAddress,\n getAddress,\n clearAddress,\n setContactValues,\n resetPersonalAddressData,\n resetContactAddressData,\n addressObj,\n values,\n createAddressSummary,\n updateAddressObject,\n getRequestParamsforAuthoriseAPI,\n getRequestParamsforCIAM,\n setAdditionalAddressVals\n };\n};\n\nexport default Hook;\n","import styled from \"styled-components\";\n\nconst ErrorStyled = styled.div`\n display: flex;\n .m53__container {\n margin-bottom: 2rem;\n @media only screen and (min-width: ${props => props.theme.tablet}) {\n margin-bottom: 2rem;\n }\n background: #fff9e6;\n border: 1px solid #ffe4ad;\n width: 100%;\n align-items: center;\n display: flex;\n }\n .warning {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20width%3D%2248px%22%20height%3D%2248px%22%20viewBox%3D%220%200%2048%2048%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%20%20%3C%21--%20Generator%3A%20Sketch%2055.2%20%2878181%29%20-%20https%3A%2F%2Fsketchapp.com%20--%3E%0A%20%20%20%20%3Ctitle%3Eicon%3C%2Ftitle%3E%0A%20%20%20%20%3Cdesc%3ECreated%20with%20Sketch.%3C%2Fdesc%3E%0A%20%20%20%20%3Cg%20id%3D%22Page-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%20%20%20%20%3Cg%20id%3D%22ScreensV5%2FHome_Redirect%22%20transform%3D%22translate%28-155.000000%2C%20-519.000000%29%22%20fill%3D%22%23E3B453%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22Group-4%22%20transform%3D%22translate%28135.000000%2C%20377.000000%29%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22type%22%20transform%3D%22translate%280.000000%2C%20122.000000%29%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22Alert%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%2820.000000%2C%2020.000000%29%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M40.3037281%2C8.79751467%20C40.0628655%2C8.79751467%2039.8220029%2C8.70504384%2039.6392544%2C8.52010236%20L39.559576%2C8.44042395%20C39.1944444%2C8.07492688%2039.1944444%2C7.48282161%2039.559576%2C7.11732454%20C39.9250731%2C6.75182746%2040.5171784%2C6.75219294%2040.8826755%2C7.11732454%20L40.9685672%2C7.20358185%20C41.3322368%2C7.57090639%2041.3289474%2C8.16301174%2040.9619883%2C8.52668126%20C40.7796052%2C8.70723687%2040.5416666%2C8.79751467%2040.3037281%2C8.79751467%20Z%22%20id%3D%22Path%22%3E%3C%2Fpath%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M23.9484649%2C48%20C17.5515351%2C48%2011.5376462%2C45.5087719%207.01425441%2C40.9857456%20C2.4908626%2C36.4623538%200%2C30.4484649%200%2C24.0515351%20C0%2C17.6546053%202.49122807%2C11.6407164%207.01425441%2C7.11732454%20C15.1918859%2C-1.06030699%2028.0252193%2C-2.23611116%2037.5292398%2C4.32127195%20C37.9546784%2C4.61476604%2038.0614035%2C5.19736842%2037.7682749%2C5.62244154%20C37.4747807%2C6.04788014%2036.8921783%2C6.15460529%2036.4667397%2C5.86111111%20C27.7065058%2C-0.183114012%2015.876462%2C0.90168131%208.33735382%2C8.44042395%20C-0.270467836%2C17.0482456%20-0.270467836%2C31.0548246%208.33735382%2C39.6626462%20C16.945541%2C48.2708333%2030.9517544%2C48.2708333%2039.559576%2C39.6626462%20C46.9265351%2C32.2960526%2048.1282895%2C20.6396199%2042.4170321%2C11.9462719%20C42.1334064%2C11.5146199%2042.2532895%2C10.934576%2042.685307%2C10.6509503%20C43.1169591%2C10.3669591%2043.6970029%2C10.4872076%2043.9806287%2C10.9192252%20C46.9597953%2C15.4535818%2048.3106725%2C20.9418859%2047.7850877%2C26.372807%20C47.2518275%2C31.8782895%2044.8008041%2C37.0676169%2040.8826755%2C40.9857456%20C36.3592836%2C45.5087719%2030.3453947%2C48%2023.9484649%2C48%20Z%22%20id%3D%22Path%22%3E%3C%2Fpath%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M23.6%2C11.84375%20C21.7355103%2C11.84375%2020.225%2C13.3539307%2020.225%2C15.21875%20C20.225%2C17.0796143%2021.7391357%2C18.59375%2023.6%2C18.59375%20C25.4644897%2C18.59375%2026.975%2C17.0835693%2026.975%2C15.21875%20C26.975%2C13.3542603%2025.4648193%2C11.84375%2023.6%2C11.84375%20Z%20M23.6%2C16.90625%20C22.6695678%2C16.90625%2021.9125%2C16.1491822%2021.9125%2C15.21875%20C21.9125%2C14.2866699%2022.6679199%2C13.53125%2023.6%2C13.53125%20C24.5320801%2C13.53125%2025.2875%2C14.2866699%2025.2875%2C15.21875%20C25.2875%2C16.1508301%2024.5320801%2C16.90625%2023.6%2C16.90625%20Z%22%20id%3D%22Shape%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M24.44375%2C20.28125%20L22.75625%2C20.28125%20C21.360437%2C20.28125%2020.225%2C21.416687%2020.225%2C22.8125%20L20.225%2C34.625%20C20.225%2C36.020813%2021.360437%2C37.15625%2022.75625%2C37.15625%20L24.44375%2C37.15625%20C25.839563%2C37.15625%2026.975%2C36.020813%2026.975%2C34.625%20L26.975%2C22.8125%20C26.975%2C21.416687%2025.839563%2C20.28125%2024.44375%2C20.28125%20Z%20M25.2875%2C34.625%20C25.2875%2C35.0903809%2024.9091309%2C35.46875%2024.44375%2C35.46875%20L22.75625%2C35.46875%20C22.2908691%2C35.46875%2021.9125%2C35.0903809%2021.9125%2C34.625%20L21.9125%2C22.8125%20C21.9125%2C22.3471191%2022.2908691%2C21.96875%2022.75625%2C21.96875%20L24.44375%2C21.96875%20C24.9091309%2C21.96875%2025.2875%2C22.3471191%2025.2875%2C22.8125%20L25.2875%2C34.625%20Z%22%20id%3D%22Shape%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%0A%20%20%20%20%20%20%20%20%3C%2Fg%3E%0A%20%20%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E\");\n height: 4.8rem;\n margin-top: 0.2rem;\n min-width: 4.8rem;\n }\n span {\n font-size: 1.4rem;\n }\n p {\n color: ${props => props.theme.gold};\n font-size: 1.4rem;\n line-height: 2.3rem;\n }\n .m53__warning__text {\n margin-bottom: 0;\n font-family: ${props => props.theme.fontBold};\n }\n button,\n a {\n font-family: ${props => props.theme.fontBold};\n font-size: 1.4rem;\n color: ${props => props.theme.lightGreen};\n text-decoration: underline;\n }\n`;\n\nexport default ErrorStyled;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Link, useHistory } from \"react-router-dom\";\n\n// styled components\nimport ErrorStyled from \"./ErrorWrapper.styled\";\nimport LoginHook from \"../../../hooks/LoginHooks\";\n\nconst Error = ({ errorText, errorHeading, errorLink, errorLinkText, errorCallback, externalLink, ariaLabelForLink, loginPrompt }) => {\n const { openLoginModal, openSignupModal } = LoginHook();\n const history = useHistory();\n return (\n \n
\n \n
\n {errorHeading && (\n <>\n

{errorHeading}

\n \n )}\n {errorText && (\n <>\n

\n {errorText}\n {externalLink && errorLinkText && (\n <>\n \n {errorLinkText}\n \n \n )}\n

\n \n )}\n\n {errorLink && errorLinkText && (\n <>\n {\n history.push(errorLink);\n }}\n aria-label={ariaLabelForLink}\n >\n {errorLinkText}\n \n \n )}\n\n {errorCallback && errorLinkText && (\n <>\n errorCallback(e)}>\n {errorLinkText}\n \n \n )}\n\n {loginPrompt && (\n <>\n \n Log in\n \n or \n \n sign up\n \n here\n \n )}\n
\n
\n
\n );\n};\n\n// props validation\nError.propTypes = {\n errorText: PropTypes.string.isRequired,\n errorHeading: PropTypes.string,\n errorLink: PropTypes.string,\n errorLinkText: PropTypes.string,\n errorCallback: PropTypes.func,\n externalLink: PropTypes.string,\n ariaLabelForLink: PropTypes.string,\n loginPrompt: PropTypes.bool\n};\n\nexport default Error;\n","// hook dependancies\nimport { useGlobal, setGlobal } from \"reactn\";\n\n/**\n * Hook for login / register functions\n */\nconst LoginHook = () => {\n const [values] = useGlobal(\"values\");\n\n const setLoginData = loginData => {\n const { loggedIn, ciamUserId } = loginData;\n setGlobal({\n values: {\n ...values,\n loggedIn,\n ciamUserId,\n userIsVerified: loginData.isVerified,\n loginChecked: true\n }\n });\n };\n\n const openLoginModal = e => {\n e.preventDefault();\n\n window.newLogin = true;\n\n if (window.M78) {\n window.M78.openLoginRegistration(\"AP-login\");\n }\n };\n\n const openSignupModal = e => {\n e.preventDefault();\n\n window.newLogin = true;\n\n if (window.M78) {\n window.M78.openLoginRegistration(\"AP-reg\");\n }\n };\n\n // returning all varaibles and functions that we can to use inside other components\n return {\n setLoginData,\n openLoginModal,\n openSignupModal\n };\n};\n\nexport default LoginHook;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\n\nconst editIcon = () => (\n \n \n \n);\n\nconst Icon = props => {\n // prettier-ignore\n switch (props.src) {\n case \"editIcon\" : return editIcon(); \n\t default:\n return ();\n\t}\n};\n\nexport default Icon;\n\n// props validation\nIcon.propTypes = {\n src: PropTypes.string.isRequired\n};\n","// hook dependancies\nimport { useGlobal, setGlobal } from \"reactn\";\n\n// helpers\nimport { capitaliseFirstLetters } from \"../helpers/Helpers\";\nimport { getPhoneNumberValues } from \"../components/_common/mobileGroup/Mobile.helpers\";\n\n/**\n *\n */\nconst useProfileHooks = () => {\n const [profile] = useGlobal(\"profile\");\n const [values] = useGlobal(\"values\");\n const [moneyUser] = useGlobal(\"moneyUser\");\n const [activeSideLink] = useGlobal(\"activeSideLink\");\n const [activeTab] = useGlobal(\"activeTab\");\n const [addressObj] = useGlobal(\"addressObj\");\n\n const setGlobalValue = (id, value) => {\n setGlobal({\n values: { ...values, [id]: value }\n });\n };\n\n const refreshGlobalVals = updatedVals => {\n setGlobal({\n values: updatedVals\n });\n };\n\n const setProfileData = profileData => {\n setGlobal({\n values: { ...values, profile: profileData }\n });\n };\n\n const setActiveSideLink = link => {\n setGlobal({\n activeSideLink: link\n });\n };\n\n const setActiveTab = name => {\n setGlobal({\n activeTab: name\n });\n };\n\n const handleMultipleAddress = addresses => {\n setGlobal({\n addressObj: addresses\n });\n };\n\n const getMobileNumber = phones => {\n let mobileNumber = \"\";\n for (let i = 0; i < phones.length; i += 1) {\n if (phones[i].type.toUpperCase() === \"MOBILE\") {\n mobileNumber = phones[i].number;\n }\n }\n return getPhoneNumberValues(mobileNumber);\n };\n\n const setConsentValues = consents => {\n setGlobal({\n values: { ...values, consents }\n });\n };\n\n // flag that is returned from getProfile endpoint saying that it is a FS Eco System user (Money user)\n const setMoneyUser = moneyUserFlag => {\n setGlobal({\n moneyUser: moneyUserFlag\n });\n };\n\n const setProfileValues = (profileData, homeAddressCountry, businessAddressCountry) => {\n const profileTemp = profileData.profile;\n const mobileNumber = getMobileNumber(profileData.phones);\n const updatedVals = {\n ...values,\n profileFirstName: profileTemp.firstName,\n profileLastName: profileTemp.lastName,\n profileEmailAddress: profileData.email,\n profileMobile: mobileNumber.fullNumber,\n profileMobileCountryCode: mobileNumber.countryCode.replace(/\\s/g, \"\"),\n profileMobilePrefix: mobileNumber.prefix.replace(/\\s/g, \"\"),\n profileMobileNumber: mobileNumber.subNumber.replace(/\\s/g, \"\"),\n profileOldMobileNumber: mobileNumber.fullNumber,\n createNewMobileNumber: !mobileNumber.fullNumber,\n createNewAddress: !homeAddressCountry,\n profileAddress: homeAddressCountry === \"Ireland\" ? \"addressSet\" : \"\",\n profileAddressNatOrInternational: homeAddressCountry === \"Ireland\" ? \"national\" : \"international\",\n createNewBusinessAddress: !businessAddressCountry,\n businessAddress: businessAddressCountry === \"Ireland\" ? \"addressSet\" : \"\",\n noAddresses: profileData.addresses.length === 0,\n profileCompanyName: profileTemp.business.name,\n profileCompanyRegNumber: profileTemp.business.companyRegNumber,\n profileVatNumber: profileTemp.business.vatNumber,\n profileIndustry: profileTemp.business.industry\n };\n setGlobal({\n values: updatedVals\n });\n\n setMoneyUser(profileData.ecoSystemCustomer === \"true\");\n\n return updatedVals;\n };\n\n const getDefaultAddress = (addresses, type) => {\n for (let i = 0; i < addresses.length; i += 1) {\n if (addresses[i].displayName === type) {\n return addresses[i];\n }\n }\n return null;\n };\n\n // Format address for display on the Profile Info Page\n const formatAddress = address => {\n if (!address) return null;\n\n return `${address.organisationName ? capitaliseFirstLetters(address.organisationName) : \"\"} \n ${address.addressLine1 ? capitaliseFirstLetters(address.addressLine1) : \"\"} \n ${address.addressLine2 ? capitaliseFirstLetters(address.addressLine2) : \"\"} \n ${address.addressLine3 ? capitaliseFirstLetters(address.addressLine3) : \"\"} \n ${address.addressLine4 ? capitaliseFirstLetters(address.addressLine4) : \"\"} \n ${address.city ? capitaliseFirstLetters(address.city) : \"\"} \n ${address.town ? capitaliseFirstLetters(address.town) : \"\"}\n ${address.county ? capitaliseFirstLetters(address.county) : \"\"}\n ${address.country ? capitaliseFirstLetters(address.country) : \"\"}\n ${address.eircode && address.country && address.country.toUpperCase() === \"IRELAND\" ? address.eircode.toUpperCase() : \"\"} \n ${address.postcode && address.country && address.country.toUpperCase() !== \"IRELAND\" ? address.postcode.toUpperCase() : \"\"}`;\n };\n\n return {\n setGlobalValue,\n refreshGlobalVals,\n setProfileData,\n getMobileNumber,\n getDefaultAddress,\n formatAddress,\n setConsentValues,\n setProfileValues,\n handleMultipleAddress,\n setActiveSideLink,\n activeSideLink,\n setActiveTab,\n activeTab,\n addressObj,\n profile,\n values,\n moneyUser,\n setMoneyUser\n };\n};\n\nexport default useProfileHooks;\n","import styled, { css } from \"styled-components\";\n\nconst InfoContainer = styled.div`\n border: ${props => props.theme.lightGrayBorder};\n border-radius: 0.5rem;\n padding: 1.6rem;\n background: ${props => props.theme.lightGray3};\n margin-bottom: 1.6rem;\n position: relative;\n\n\t@media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n\t\tpadding: 2rem;\n\t}\n\n .icon.thumbs-up {\n margin-right: 3rem;\n margin-top: 0.5rem;\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n width: 4rem;\n height: 4rem;\n }\n }\n\n .password-success {\n padding-top: 1.5rem;\n margin-right: 2rem;\n }\n\n\t${props => {\n return (\n props.section !== \"marketing\" &&\n css`\n h6, .h6 {\n\t\t\t\t\tfont-size: 1.4rem;\n\t\t\t\t\tmargin-bottom: 0;\n\t\t\t\t\tcolor: ${props => props.theme.darkGreen};\n \t\t\t}\n `\n );\n }}\n\n\t${props => {\n\t\treturn (\n\t\t\tprops.section == \"marketing\" &&\n\t\t\tcss`\n\t\t\t\t@media only screen and (max-width: ${props.theme.upToTablet}) {\n\t\t\t\t\th6, .h6 {\n\t\t\t\t\t\tfont-size: 1.8rem;\n\t\t\t\t\t}\n\t\t\t\t\th5, .h5 {\n\t\t\t\t\t\tfont-size: 2rem;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t`\n\t\t);\n\t}}\n \n p {\n font-size: 1.4rem;\n padding-right: 3rem;\n\n\t\t&:last-of-type {\n\t\t\tmargin-bottom: 0;\n\t\t}\n }\n .profile {\n &__note {\n font-size: 1.2rem;\n margin-bottom: 0;\n color: ${props => props.theme.lightGray4};\n }\n &__name {\n margin-bottom: 0;\n }\n }\n h4, .h4 {\n color: ${props => props.theme.darkGreen};\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n font-size: 2.4rem;\n }\n }\n .infoContainer__edit {\n color: ${props => props.theme.lightGreen};\n font-family: ${props => props.theme.fontBold};\n position: absolute;\n right: 2rem;\n font-size: 1.4rem;\n bottom: 2rem;\n text-decoration: none;\n border: ${props => props.theme.lightGrayBorder};\n border-radius: 0.3rem;\n padding: 1rem 1rem 0.5rem 0.5rem;\n height: 4rem;\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n top: 3rem;\n padding: 0;\n border: none;\n height: 2rem;\n }\n svg {\n margin-left: 1rem;\n }\n .edit__text {\n padding-bottom: 2rem;\n position: absolute;\n left: -3rem;\n top: -0.2rem;\n display: none;\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n display: block;\n }\n }\n }\n\n .deliveryAddress {\n margin: 0.5rem 0;\n position: relative;\n padding-left: 2.5rem;\n &:before {\n content: \"\";\n width: 1.5rem;\n height: auto;\n background-position: bottom 0.3rem right;\n position: absolute;\n left: 0rem;\n top: 0.1rem;\n bottom: 0.7rem;\n background-image: url(\"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSI5cHgiIHZpZXdCb3g9IjAgMCAxMiA5IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA1OS4xICg4NjE0NCkgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgICA8dGl0bGU+R2xvYmFsL0F0b21zL0ljb25zL1RpY2sgZ3JlZW48L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iU3ltYm9scyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIj4KICAgICAgICA8ZyBpZD0iU2Vjb25kYXJ5LXRleHQvbGVmdCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIC03LjAwMDAwMCkiIHN0cm9rZT0iIzAwQTc2QSIgc3Ryb2tlLXdpZHRoPSIyIj4KICAgICAgICAgICAgPGcgaWQ9Ikdsb2JhbC9BdG9tcy9JY29ucy9UaWNrLWdyZWVuIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgOC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxsaW5lIHgxPSIxLjExMTYyNzgzIiB5MT0iMy4wNzk1MTI4MyIgeDI9IjQuMDk3NzQxOTQiIHkyPSI2LjIxNDkzMjY0IiBpZD0iU3Ryb2tlLTIzIj48L2xpbmU+CiAgICAgICAgICAgICAgICA8bGluZSB4MT0iMTAuMjI4NjcxNyIgeTE9IjAiIHgyPSI0LjIxMDUwNzE5IiB5Mj0iNi4yODI2NTAzNyIgaWQ9IlN0cm9rZS0yNSI+PC9saW5lPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=\");\n background-size: 1.4rem;\n background-repeat: no-repeat;\n }\n }\n ${props => {\n return (\n props.secondary &&\n css`\n border: ${props.theme.darkBlueBorder};\n padding: 2rem 3rem;\n `\n );\n }}\n\n ${props => {\n return (\n props.shiny &&\n css`\n box-shadow: ${props.theme.grayBoxShadow};\n `\n );\n }}\n\n\t.m53__container {\n\t\tmargin-bottom: 0;\n\t}\n`;\n\nconst InfoContainerLocked = styled.button`\n position: absolute;\n width: 2.5rem;\n height: 3rem;\n top: 2rem;\n right: 2rem;\n cursor: not-allowed;\n &:before {\n content: \"\";\n width: 3.5rem;\n height: 3rem;\n background-position: right bottom 0.3rem;\n position: absolute;\n right: 0;\n top: 0.1rem;\n bottom: 0.7rem;\n background-image: url(\"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+R3JvdXAgMjwvdGl0bGU+CiAgICA8ZyBpZD0iUHJvZmlsZSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkNJQU0vcHJvZmlsZS1GUyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE1MDEuMDAwMDAwLCAtNTIxLjAwMDAwMCkiIGZpbGw9IiM0MzQ3NDUiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgICAgIDxnIGlkPSJwZXJzb25hbCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzc1LjAwMDAwMCwgNTAxLjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9InBhZGxvY2siIHRyYW5zZm9ybT0idHJhbnNsYXRlKDExMjYuMDAwMDAwLCAyMC4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTEuOTk0ODAyNSw2LjQ4MTg2NTI4IEMxMC42MDEyMzA2LDYuNDgxODY1MjggOS40NzE0NzAyMSw3LjYxMTU3NzA3IDkuNDcxNDcwMjEsOS4wMDUxOTc1NCBMOS40NzE0NzAyMSwxMC4xMzQ3MTUgTDE0LjUxODA4NjEsMTAuMTI0MzY4NSBMMTQ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A8L2c+Cjwvc3ZnPg==\");\n background-repeat: no-repeat;\n }\n`;\n\nconst FlexContainer = styled.div`\n display: flex;\n ${props => {\n return (\n props.end &&\n css`\n justify-content: flex-end;\n `\n );\n }}\n ${props => {\n return (\n props.spacearound &&\n css`\n justify-content: space-around;\n h4 {\n margin-bottom: 1rem;\n }\n `\n );\n }}\n`;\n\nconst SideContainer = styled.div`\n width: 100%;\n @media only screen and (min-width: 768px) {\n max-width: calc(50% - 2rem);\n }\n`;\n\nexport { InfoContainer, FlexContainer, SideContainer, InfoContainerLocked };\n","import styled from \"styled-components\";\nimport { Link } from \"react-router-dom\";\n\nconst LinkStyled = styled(Link)`\n align-self: flex-start;\n width: 100%;\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n width: auto;\n }\n\n &.login {\n margin-left: 2rem;\n }\n\n &.cta-link {\n display: block;\n margin-top: 3rem;\n margin-bottom: 2rem;\n width: 30rem;\n padding-left: 3.5rem;\n\n &:after {\n display: none;\n }\n &:before {\n content: \"\";\n width: 1.5rem;\n height: auto;\n background-position: bottom 0.3rem right;\n position: absolute;\n left: 0rem;\n top: 0.1rem;\n bottom: 0;\n margin: auto;\n background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='14' height='10'%3E%3Cdefs%3E%3Cpath d='M9.277.222c-.188-.194-.5-.194-.694 0a.49.49 0 0 0 0 .687l3.52 3.52H.486c-.27 0-.486.216-.486.487a.49.49 0 0 0 .486.493h11.617l-3.52 3.514a.5.5 0 0 0 0 .694c.194.194.507.194.694 0l4.354-4.354a.48.48 0 0 0 0-.687L9.277.222z' id='A'/%3E%3C/defs%3E%3Cg transform='translate(0 .188)' fill-rule='evenodd'%3E%3Cmask id='B' fill='%23fff'%3E%3Cuse xlink:href='%23A'/%3E%3C/mask%3E%3Cg fill='%23006150'%3E%3Cuse fill-rule='nonzero' xlink:href='%23A'/%3E%3Cg mask='url(%23B)'%3E%3Cpath d='M0-2.187h14v14H0z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\");\n background-size: 1.4rem;\n background-repeat: no-repeat;\n transform: rotate(180deg);\n }\n }\n &.warn {\n color: ${props => props.theme.red};\n }\n`;\nexport default LinkStyled;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\n// styles\nimport PageLinkStyled from \"./PageLink.styled\";\n\nconst PageLink = ({ to, text, className, onClick }) => {\n\n return (\n \n {text}\n \n );\n};\n\nexport default PageLink;\n\n// props validation\nPageLink.propTypes = {\n to: PropTypes.string,\n text: PropTypes.string,\n className: PropTypes.string,\n onClick: PropTypes.func\n};\n","import styled, { css } from \"styled-components\";\n\nconst EditableGridWrapper = styled.section`\n h6 {\n font-size: 1.6rem;\n }\n`;\n\nconst EditableGridCont = styled.div`\n display: flex;\n justify-content: space-between;\n margin-top: 2rem;\n`;\n\nconst AddressGridWrapper = styled.div`\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n @media only screen and (min-width: ${props => props.theme.tablet}) {\n flex-direction: row;\n }\n & > div {\n position: relative;\n margin-top: 0;\n width: 100%;\n margin-right: 2rem;\n\n justify-content: space-between;\n flex-direction: column;\n flex-wrap: wrap;\n min-height: 24rem;\n @media only screen and (min-width: ${props => props.theme.tablet}) {\n min-height: 27rem;\n display: flex;\n width: calc(50% - 2rem);\n }\n\n @media only screen and (min-width: ${props => props.theme.desktop}) {\n width: calc(25% - 2rem);\n }\n }\n`;\n\nconst EditableGridInfo = styled.div`\n padding-right: 1rem;\n position: relative;\n ${props =>\n props.type &&\n css`\n &:before {\n content: \"\";\n width: 3rem;\n height: 3rem;\n background-position: left center;\n position: absolute;\n right: 2rem;\n top: 0.1rem;\n background-repeat: no-repeat;\n }\n `}\n ${props =>\n props.type === \"contact\" &&\n css`\n &:before {\n background-image: url(${props.theme.contactIcon});\n }\n `}\n ${props =>\n props.type === \"personal\" &&\n css`\n &:before {\n background-image: url(${props.theme.personalIcon});\n }\n `}\n \nh6 {\n max-width: 19rem;\n font-size: 1.4rem;\n margin-bottom: 0;\n color: ${props => props.theme.darkGreen};\n }\n h5 {\n font-size: 1.6rem;\n margin-bottom: 0;\n }\n p { \n font-size: 1.4rem;\n padding-right: 3rem;\n margin-bottom: 1.2rem;\n ${props =>\n props.transactions &&\n css`\n font-size: 1.2rem;\n color: ${props.theme.lightGray4};\n `}\n }\n .profile {\n &__note {\n font-size: 1.2rem;\n margin-bottom: 0;\n color: ${props => props.theme.lightGray4};\n }\n &__name {\n margin-bottom: 0;\n }\n }\n h4 {\n color: ${props => props.theme.darkGreen};\n @media only screen and (min-width: ${props => props.theme.tablet}) {\n font-size: 2.4rem;\n }\n }\n .infoContainer__edit {\n color: ${props => props.theme.lightGreen};\n font-weight: bold;\n position: absolute;\n right: 2rem;\n font-size: 1.4rem;\n bottom: 2rem;\n text-decoration: none;\n border: ${props => props.theme.lightGrayBorder};\n border-radius: 0.3rem;\n padding: 1rem 1rem 0.5rem 0.5rem; \n height: 2rem;\n @media only screen and (min-width: ${props => props.theme.smallTablet}) {\n top: 3rem;\n padding: 0;\n border: none;\n }\n svg {\n margin-left: 1rem;\n }\n .edit__text {\n padding-bottom: 2rem;\n position: absolute;\n left: -3rem; \n top: -0.2rem;\n display: none;\n @media only screen and (min-width: ${props => props.theme.smallTablet}) {\n display: block; \n }\n }\n }\n .deliveryAddress {\n margin: 0.5rem 0;\n position: relative;\n padding-left: 2.5rem;\n font-size: 1.2rem;\n color: ${props => props.theme.lightGray4};\n &:before {\n content: \"\";\n width: 1.5rem;\n height: auto;\n background-position: bottom 0.3rem right;\n position: absolute;\n left: 0rem;\n top: 0.1rem;\n bottom: 0.7rem;\n background-image: url(\"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSI5cHgiIHZpZXdCb3g9IjAgMCAxMiA5IiB2ZXJzaW9uPS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2Zz4=\");\n background-size: 1.4rem;\n background-repeat: no-repeat;\n }\n }\n`;\n\nconst AddressWrapper = styled.div`\n width: 50%;\n @media only screen and (min-width: ${props => props.theme.smallTablet}) {\n width: 100%;\n }\n padding-top: 2rem;\n p {\n font-size: 1.4rem;\n @media only screen and (min-width: ${props => props.theme.tablet}) {\n font-size: 1.6rem;\n }\n margin-bottom: 0;\n }\n`;\n\nconst EditableGridItem = styled.div`\n width: 100%;\n border: ${props => props.theme.lightGrayBorder};\n border-radius: 0.5rem;\n padding: 2rem;\n ${props =>\n props.transactions &&\n css`\n padding: 2.8rem 2.8rem 1.8rem;\n `}\n padding-right: 0;\n margin-bottom: 1rem;\n ${props =>\n !props.addresses &&\n css`\n @media only screen and (min-width: ${props.theme.smallTablet}) {\n display: flex;\n justify-content: space-between;\n }\n `}\n`;\n\nconst EditableGridBtns = styled.div`\n display: flex;\n justify-content: flex-end;\n p {\n margin-bottom: 0;\n padding: 1.2rem 0;\n padding-right: 1rem;\n }\n ${props =>\n props.transactions &&\n css`\n padding-right: 2rem;\n margin-top: -1rem;\n `}\n\n ${props =>\n props.addresses &&\n css`\n justify-content: flex-start;\n `}\n\n ${props =>\n !props.addresses &&\n css`\n p {\n display: none;\n }\n @media only screen and (min-width: ${props.theme.smallTablet}) {\n justify-content: space-between;\n p {\n display: block;\n }\n }\n `}\n \n\n`;\n\nconst PriceDisplay = styled.div`\n background: ${props => props.theme.lightGray};\n margin-right: 1rem;\n border-radius: 0.5rem;\n padding: 2rem;\n border: 0;\n max-height: 8rem;\n h5 {\n margin-bottom: 0;\n padding-top: 0.5rem;\n font-size: 1.4rem;\n @media only screen and (min-width: ${props => props.theme.smallTablet}) {\n h5 {\n font-size: 2.1rem;\n }\n }\n }\n`;\n\nconst EditableGridBtn = styled.button`\n border: 1px solid #D9D9D6;\n margin-right: 1rem;\n border-radius: 0.5rem;\n padding: 1rem 2rem;\n display: flex;\n justify-content: space-between;\n cursor: pointer;\n p {\n color: ${props => props.theme.lightGreen};\n font-family: ${props => props.theme.fontBold}; \n font-weight: bold;\n font-size: 1.4rem;\n }\n .icon {\n margin-left: 2.7rem;\n\n\t\t&.order-history {\n\t\t\twidth: 2rem;\n\t\t\theight: 2rem;\n\t\t\tmargin: auto;\n\t\t\tbackground-image: none;\n\t\t}\n }\n h4 {\n padding-top: 1.5rem;\n }\n ${props =>\n props.addresses &&\n css`\n border: 0;\n padding: 0;\n .icon {\n margin-left: 0;\n width: 4rem;\n height: 5.2rem;\n }\n `}\n @media only screen and (min-width: ${props => props.theme.smallTablet}) {\n border: 0;\n .icon {\n margin-left: 0;\n width: 4rem;\n height: 5.2rem;\n }\n }\n @media only screen and (min-width: ${props => props.theme.smallTablet}) {\n h4 {\n padding-top: 1rem;\n }\n }\n ${props =>\n props.price &&\n css`\n background: ${props.theme.lightGray};\n padding: 2rem;\n border: 0;\n max-height: 8rem;\n h5 {\n margin-bottom: 0;\n padding-top: 0.5rem;\n font-size: 1.4rem;\n @media only screen and (min-width: ${props.theme.smallTablet}) {\n h5 {\n font-size: 2.1rem;\n }\n }\n }\n `}\n ${props =>\n props.delete &&\n css`\n p {\n color: ${props.theme.darkBlue};\n }\n `}\n`;\n\nconst EditableGridLink = styled.button`\n padding-left: 0;\n padding-top: 2rem;\n font-family: ${props => props.theme.fontBold};\n font-weight: bold;\n text-decoration: none;\n cursor: pointer;\n margin-right: 2rem;\n width: 100%;\n margin-bottom: 2rem;\n position: relative;\n &:after {\n content: \"\";\n width: 3rem;\n height: 3rem;\n background-position: left center;\n position: absolute;\n right: 2rem;\n top: 1.2rem;\n background-repeat: no-repeat;\n ${props =>\n props.contact &&\n css`\n background-image: url(${props.theme.contactIcon});\n `}\n\n ${props =>\n props.personal &&\n css`\n background-image: url(${props.theme.personalIcon});\n `}\n }\n @media only screen and (min-width: ${props => props.theme.smallTablet}) {\n width: 27rem;\n }\n`;\n\nconst EditableGridContBtns = styled.div`\n margin-top: 2rem;\n`;\n\nconst PagingSelect = styled.div`\n width: 24rem;\n`;\n\nconst SearchWrapper = styled.div`\n display: flex;\n justify-content: space-between;\n position: relative;\n`;\n\nconst SearchIcon = styled.span`\n position: absolute;\n top: 2rem;\n right: 2rem;\n`;\n\nconst DeletePrompt = styled.div`\n padding: 1rem;\n border: ${props => props.theme.redBorder};\n margin-right: 2rem;\n border-radius: 0.5rem;\n width: 32rem;\n color: ${props => props.theme.lightGreen};\n font-size: 1.4rem;\n span {\n font-family: ${props => props.theme.fontBold};\n font-weight: bold;\n font-size: 1.4rem;\n }\n .deleteHeading {\n font-size: 1.4rem;\n text-align: center;\n padding-bottom: 0.5rem;\n }\n\n ${props =>\n props.addresses &&\n css`\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: ${props.theme.white};\n text-align: center;\n p {\n font-size: 1.4rem;\n color: ${props.theme.black};\n font-weight: bold;\n padding-top: 0;\n }\n .icon-warning {\n margin: auto;\n }\n `}\n`;\n\nexport {\n EditableGridWrapper,\n EditableGridItem,\n EditableGridBtns,\n EditableGridBtn,\n EditableGridInfo,\n EditableGridCont,\n EditableGridLink,\n PagingSelect,\n SearchWrapper,\n SearchIcon,\n DeletePrompt,\n AddressWrapper,\n AddressGridWrapper,\n EditableGridContBtns,\n PriceDisplay\n};\n","import styled, { css } from \"styled-components\"; \n\nconst OrderDetailsWrapper = styled.div`\n width: 100%;\n border: ${props => props.theme.lightGrayBorder};\n border-radius: 0.5rem;\n padding: 2rem;\n padding-bottom: 0;\n margin-bottom: 1rem;\n`;\n\n\nconst OrderDetailsHeader = styled.div`\n padding: 2rem 0;\n margin: 0 2rem;\n border-bottom: ${props => props.theme.lightGrayBorder};\n display: flex;\n justify-content: space-between;\n \n`;\n\nconst OrderDetailsContent = styled.div`\n padding: 3.5rem 2rem 0;\n`;\n\nconst OrderDetailsTitle = styled.h6`\n font-size: 1.6rem;\n margin-bottom: 0.7rem;\n`;\n\nconst OrderDetailsSubTitle = styled.p`\ncolor: ${props => props.theme.lightGray4};\nfont-family: ${props => props.theme.fontBold};\nfont-weight: bold;\nmargin-bottom: 1rem;\n\n${props =>\n props.first &&\n css`\n min-width: 9rem;\n `}\n`;\n\nconst OrderDetailsCont = styled.div`\n padding-bottom: 5rem;\n`;\n\nconst OrderDetailsContInner = styled.div`\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n padding-top: 1rem;\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n flex-direction: row;\n }\n`;\n\nconst TransactionsButtonsWrapper = styled.div`\n margin-top: 3.5rem;\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n display: flex;\n }\n`;\n\n\n\nexport { OrderDetailsWrapper, OrderDetailsHeader, OrderDetailsContent, OrderDetailsTitle, OrderDetailsSubTitle, OrderDetailsCont, OrderDetailsContInner, TransactionsButtonsWrapper }","import styled from \"styled-components\";\nimport theme from \"../../theme/ThemeProvider.styled\";\n\nconst PageTitle = styled.h1`\nfont-size: 3rem;\n@media only screen and (min-width: ${theme.smallTablet}) {\n font-size: 4.8rem;\n}\nmargin-bottom: 2rem;\n`;\n\nexport default PageTitle;\n","module.exports = __webpack_public_path__ + \"static/media/order-history.50abdcf8.svg\";","module.exports = __webpack_public_path__ + \"static/media/thumbs-up.4e86aa00.svg\";","module.exports = __webpack_public_path__ + \"static/media/magnify.f30c115d.svg\";","import styled from \"styled-components\";\n\nconst HeaderStyled = styled.div`\n background-color: ${props => props.theme.lightGray};\n\n .header {\n &__container {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: 2.4rem 1.6rem;\n position: relative;\n\n @media only screen and (min-width: ${props => props.theme.tablet}) {\n max-width: 1200px;\n padding: 1.6rem 4.8rem 2.4rem;\n }\n }\n\n &__title {\n display: flex;\n min-width: 20rem;\n flex-direction: column;\n\n h1 {\n font-size: 2.6rem;\n margin-bottom: 0.5rem;\n line-height: 4.2rem;\n }\n }\n\n .business__title {\n font-family: ${props => props.theme.fontRegular};\n font-size: 1.8rem;\n color: ${props => props.theme.darkGreen};\n }\n }\n`;\n\nconst NavigationStyled = styled.div`\n nav {\n font-size: 1.6rem;\n line-height: 2rem;\n padding: 0.4rem;\n color: ${props => props.theme.darkerGreen};\n display: flex;\n justify-content: flex-end;\n align-items: center;\n\n .header__utility__nav--list {\n padding: 0;\n }\n\n button,\n a:not(.card-link) {\n position: relative;\n display: flex;\n align-items: center;\n color: ${props => props.theme.darkerGreen};\n text-decoration: none;\n padding: 0.8rem 0.4rem;\n margin-right: 1.2rem;\n margin-left: 1.2rem;\n font-weight: bold;\n font-size: 1.5rem;\n font-family: ${props => props.theme.fontBold};\n cursor: pointer;\n\n &:not(.submenu-dropdown):not(.header__basket a):not(.search-icon):not(.m59__logout a) {\n &:after {\n width: 0;\n height: 0.2rem;\n content: \"\";\n position: absolute;\n left: 0;\n bottom: 0;\n margin: auto;\n transition: width 0.5s ease;\n background-color: ${props => props.theme.darkerGreen};\n }\n\n &:hover {\n &:after {\n width: 100%;\n }\n }\n }\n\n &.submenu-dropdown {\n &:after {\n content: \"\";\n width: 1.2rem;\n height: 1.2rem;\n background-image: url(\"data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20width%3D%2210px%22%20height%3D%226px%22%20viewBox%3D%220%200%2010%206%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%20%20%3C%21--%20Generator%3A%20Sketch%2058%20%2884663%29%20-%20https%3A%2F%2Fsketch.com%20--%3E%0A%20%20%20%20%3Ctitle%3EMask%3C%2Ftitle%3E%0A%20%20%20%20%3Cdesc%3ECreated%20with%20Sketch.%3C%2Fdesc%3E%0A%20%20%20%20%3Cg%20id%3D%22Page-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%20%20%20%20%3Cg%20id%3D%22Advantage%2FUsermenu%22%20transform%3D%22translate%28-101.000000%2C%20-12.000000%29%22%20fill%3D%22%23444444%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22Profile-page%2FUsermenu%22%20transform%3D%22translate%285.000000%2C%200.000000%29%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M100.999983%2C18%20C100.820763%2C18%20100.641565%2C17.9279717%20100.504925%2C17.784218%20L96.2051418%2C13.2583168%20C95.9316194%2C12.9704134%2095.9316194%2C12.5036272%2096.2051418%2C12.2158402%20C96.4785535%2C11.9280533%2096.9219347%2C11.9280533%2097.1954792%2C12.2158402%20L100.999983%2C16.220608%20L104.80451%2C12.21598%20C105.078032%2C11.928193%20105.521369%2C11.928193%20105.794759%2C12.21598%20C106.068414%2C12.503767%20106.068414%2C12.9705531%20105.794759%2C13.2584566%20L101.495041%2C17.7843578%20C101.358336%2C17.9281348%20101.179137%2C18%20100.999983%2C18%20Z%22%20id%3D%22Mask%22%20transform%3D%22translate%28101.000000%2C%2015.000000%29%20scale%28-1%2C%20-1%29%20rotate%28-180.000000%29%20translate%28-101.000000%2C%20-15.000000%29%20%22%3E%3C%2Fpath%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%0A%20%20%20%20%20%20%20%20%3C%2Fg%3E%0A%20%20%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E\");\n background-repeat: no-repeat;\n background-position-y: 50%;\n background-position-x: 50%;\n visibility: visible;\n display: inline-block;\n vertical-align: middle;\n margin-left: 0.6rem;\n }\n\n &.basket {\n margin-top: 0.2rem;\n\n &:after {\n display: none;\n }\n\n .basket-count {\n pointer-events: none;\n }\n\n img {\n pointer-events: none;\n }\n\n & + ul {\n .childmenu-item {\n &:hover {\n &:before {\n content: \"|\";\n position: absolute;\n left: -1.6rem;\n top: 1.2rem;\n line-height: 0;\n font-size: 1.6rem;\n }\n }\n }\n }\n }\n }\n\n\n &.header__utility-search {\n margin-right: 0;\n margin-top: 0.2rem;\n }\n }\n \n .user-menu-wrapper {\n position: relative;\n }\n\n .user-menu-list {\n opacity: 0;\n visibility: hidden;\n\n &.expanded {\n opacity: 1;\n visibility: visible;\n }\n }\n\n .m59--myap.dropdown {\n margin-left: 0;\n }\n\n .m59__list.user {\n width: 24rem;\n padding: 2rem 3rem;\n background-color: ${props => props.theme.white};\n border-radius: 0.5rem;\n position: absolute;\n top: 3rem;\n right: 0;\n z-index: 200;\n box-shadow: 0 0 10px 0 rgb(61 69 67 / 20%);\n overflow: auto;\n display: flex;\n flex-direction: column;\n\n li:not(.m59__logout) {\n margin: 0.8rem 0;\n position: relative;\n\n a {\n margin: 0;\n color: ${props => props.theme.black};\n font-size: 1.3rem;\n font-weight: 900;\n padding: 0;\n\n &.active {\n color: ${props => props.theme.green};\n\n &:before {\n content: \"|\";\n position: absolute;\n left: -2rem;\n top: 50%;\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n line-height: 0;\n cursor: auto;\n }\n }\n\n &:hover {\n color: ${props => props.theme.green} !important;\n }\n\n &:hover:not(.active) {\n &:before {\n display: none;\n }\n }\n }\n }\n }\n\n .m59__logout {\n margin: 1rem 0 0;\n\t\t\n a {\n display: flex;\n align-items: center;\n margin: 0;\n font-size: 1.5rem;\n color: ${props => props.theme.heritageGreen};\n border-top: 1px solid ${props => props.theme.lightGray5};\n padding: 1.5rem 0 0;\n\n &:before {\n content: \"\";\n display: inline-block;\n background-image: url('data:image/svg+xml,');\n background-repeat: no-repeat;\n height: 1.4rem;\n width: 1.4rem;\n margin-right: 1rem;\n position: initial\n }\n\n &:hover {\n cursor: pointer;\n color: ${props => props.theme.black};\n }\n }\n }\n\n .header__basket {\n margin-right: 0;\n text-align: left;\n }\n\n .basket-count {\n position: absolute;\n color: ${props => props.theme.white};\n background-color: ${props => props.theme.red};\n min-width: 2.1rem;\n height: 2.1rem;\n border-radius: 50%;\n top: -0.2rem;\n right: -0.8rem;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 1.2rem;\n line-height: 2rem;\n font-family: ${props => props.font};\n font-weight: 400;\n }\n\n .m58__modal {\n top: 3rem;\n right: 0;\n }\n }\n`\n\nexport { HeaderStyled, NavigationStyled };\n","import React, { useEffect, useRef, useGlobal } from \"reactn\";\nimport PropTypes from \"prop-types\";\n\n// styled components\nimport { HeaderStyled, NavigationStyled } from \"./Header.styled\";\n\n// hooks\nimport Apphook from \"../../../hooks/appHook\";\n\n// helpers\nimport { truncateString } from \"../../../helpers/Helpers\";\n\nconst Header = ({ businessName, firstName, email, isMobile, history }) => {\n const [topNav] = useGlobal(\"topNav\");\n const { copyTopNavigation, setNavProfileLinks } = Apphook();\n const navigationRef = useRef(null);\n\n\n // handle the titles if they return as null\n const handleWelcomeTitle = (name, emailAddress) => {\n if (name && name !== null) {\n return `Hi ${truncateString(firstName, 13)}`;\n }\n\n if (emailAddress && emailAddress !== null) {\n return `Hi ${truncateString(emailAddress, 13)}`;\n }\n\n return \"Hi\";\n };\n\n useEffect(() => {\n copyTopNavigation();\n }, []);\n\n useEffect(() => {\n const navigation = navigationRef.current;\n if (!navigation) return;\n const basketButton = navigation.querySelector(\".submenu-dropdown.basket\");\n const basketModal = navigation.querySelector(\".m58\");\n const userDropdownBtn = navigation.querySelector(\"[data-m59-trigger]\");\n const userDropdownMenu = navigation.querySelector(\"[data-m59-dropdown]\");\n\n if (!basketButton || !userDropdownBtn || !userDropdownMenu) return;\n const dropdownLinks = userDropdownMenu.querySelectorAll(\".m59__list.user li a\");\n const allClickableEl = navigation.querySelectorAll(\"a, button\");\n const userName = JSON.parse(sessionStorage.getItem(\"userProfile\")).profile.firstName;\n const userEmail = JSON.parse(sessionStorage.getItem(\"userProfile\")).email;\n\n userDropdownBtn.querySelector(\"span\").innerHTML = userName || truncateString(userEmail, 10);\n\n basketButton.addEventListener(\"click\", e => {\n e.preventDefault();\n e.stopPropagation();\n basketModal.classList.toggle(\"m58--open\");\n userDropdownMenu.classList.remove(\"expanded\");\n basketButton.setAttribute(\"aria-expanded\", `${basketModal.classList.contains(\"m58--open\") ? \"true\" : \"false\"}`);\n });\n\n userDropdownBtn.addEventListener(\"click\", e => {\n e.stopPropagation();\n userDropdownMenu.classList.toggle(\"expanded\");\n basketModal.classList.remove(\"m58--open\");\n userDropdownBtn.setAttribute(\"aria-expanded\", `${userDropdownMenu.classList.contains(\"expanded\") ? \"true\" : \"false\"}`);\n });\n\n document.addEventListener(\"click\", () => {\n basketModal.classList.remove(\"m58--open\");\n userDropdownMenu.classList.remove(\"expanded\");\n basketButton.setAttribute(\"aria-expanded\", \"false\");\n userDropdownBtn.setAttribute(\"aria-expanded\", \"false\");\n });\n\n setNavProfileLinks(dropdownLinks, history);\n\n allClickableEl.forEach(el => {\n el.classList.remove(\"gtm-header\");\n el.classList.add(\"gtm-headerMACH\");\n });\n }, [topNav, isMobile]);\n\n return (\n <>\n \n
\n
\n

{handleWelcomeTitle(firstName, email)}

\n {businessName &&

{businessName}

}\n
\n
\n {!isMobile && }\n
\n
\n
\n \n );\n};\n\nexport default Header;\n\nHeader.propTypes = {\n businessName: PropTypes.string,\n firstName: PropTypes.string,\n email: PropTypes.string,\n isMobile: PropTypes.bool,\n history: PropTypes.object\n};\n","import styled, { css } from \"styled-components\";\n\nconst FiltersWrapper = styled.div`\n display: flex;\n justify-content: space-between;\n height: 5rem;\n margin-top: 3rem;\n margin-bottom: 3rem;\n`;\n\nconst Filter = styled.button`\n border: ${props => props.theme.lightGrayBorder};\n padding: 0 0.8rem;\n border-radius: 0.5rem;\n font-family: ${props => props.theme.fontBold};\n font-weight: bold;\n font-size: 1rem;\n cursor: pointer;\n margin-right: 0.5rem;\n @media only screen and (min-width: ${props => props.theme.smallMobile}) {\n font-size: 1.3rem;\n }\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n padding: 0 2rem;\n font-size: 1.4rem;\n margin-right: 1rem;\n }\n ${props =>\n props.active &&\n css`\n border: ${props.theme.greenBorder};\n `}\n`;\n\nexport { FiltersWrapper, Filter };\n","import styled from \"styled-components\";\n\nconst IconButtonWrapper = styled.div`\n position: relative;\n border: 1px solid ${props => props.theme.lime};\n border-radius: 0.5rem;\n background: ${props => props.theme.yellow};\n text-align: center;\n margin-right: 3rem;\n margin-bottom: 1rem;\n padding: 1.4rem 0;\n width: 100%;\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n width: 27rem;\n }\n`;\n\nconst IconButtonInner = styled.div`\n display: flex;\n justify-content: center;\n`;\n\nconst IconButtonIcon = styled.span`\n margin-right: 0;\n`;\n\nconst IconButtonLabel = styled.p`\n text-decoration: none;\n color: ${props => props.theme.darkGrey};\n font-weight: bold;\n font-family: ${props => props.theme.fontBold};\n display: flex;\n justify-content: center;\n align-content: center;\n flex-direction: column;\n margin-bottom: 0;\n margin-left: -0.5rem;\n font-size: 1.8rem;\n`;\n\nconst IconButtonLink = styled.a``;\n\nexport { IconButtonWrapper, IconButtonInner, IconButtonIcon, IconButtonLabel, IconButtonLink };\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\n// styled components\nimport { IconButtonWrapper, IconButtonInner, IconButtonIcon, IconButtonLabel, IconButtonLink } from \"./IconButton.styled\";\n\nconst Error = ({ iconCls, label, href }) => {\n return (\n \n \n \n {label}\n \n {label}\n \n \n \n );\n};\n\n// props validation\nError.propTypes = {\n iconCls: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired\n};\n\nexport default Error;\n","import React, { useState, useEffect, useMemo } from \"reactn\";\nimport { withRouter } from \"react-router-dom\";\nimport PropTypes from \"prop-types\";\nimport Fuse from \"fuse.js\";\n\n// components\nimport Loader from \"shared-anpost-components/components/loader/Loader\";\nimport Pagination from \"shared-anpost-components/components/form/pagination/Pagination\";\nimport FormGroup from \"shared-anpost-components/components/form/form_group/FormGroup\";\nimport InputGroup from \"shared-anpost-components/components/form/input_group/InputGroup\";\nimport Label from \"shared-anpost-components/components/form/label/Label\";\nimport Select from \"shared-anpost-components/components/form/select/Select\";\nimport Input from \"shared-anpost-components/components/form/input/Input\";\nimport { FiltersWrapper, Filter } from \"../../../_common/form/filters/filters.styled\";\nimport Error from \"../../../_common/error/Error\";\nimport OrderHistoryIcon from \"../../../../images/order-history.svg\";\n\n// hooks\nimport profileHooks from \"../../../../hooks/profileHooks\";\nimport appHook from \"../../../../hooks/appHook\";\nimport {\n EditableGridWrapper,\n EditableGridItem,\n EditableGridBtns,\n EditableGridBtn,\n EditableGridInfo,\n EditableGridCont,\n PriceDisplay,\n PagingSelect,\n SearchWrapper,\n SearchIcon\n} from \"../../../_common/form/editableGrid/EditableGrid.styled\";\nimport IconButton from \"../../../_common/button/IconButton\";\nimport { TransactionsButtonsWrapper } from \"./TransactionInfo.styled\";\n\n// helpers\nimport { formatPrice } from \"../../../../helpers/Helpers\";\n\nconst TransactionsGrid = props => {\n const { items, infoBtn, price, search, filters, filterActive, loader, history } = props;\n const { handleBlur, handleFocus, focus, values } = appHook();\n const { setGlobalValue } = profileHooks();\n /**\n * Sets current page\n */\n const [currentPage, setCurrentPage] = useState(1);\n /**\n * Sets items per page\n */\n const [itemsPerPage, setItemsPerPage] = useState(5);\n\n /**\n * Sets searched Items\n */\n const [searchedItems, setSearchedItems] = useState(items);\n\n /**\n * Show order details\n */\n const [orderDetails, setOrderDetails] = useState(false);\n\n /**\n * Set Active Filter\n */\n const [activeFilter, setActiveFilter] = useState(filterActive || \"all\");\n\n /**\n * Set Filters List\n */\n const [filtersList, setFiltersList] = useState(filters);\n\n /**\n * Get the number per page\n */\n const itemLength = items.length;\n const numbOfItems = Math.round(itemLength / 5);\n const ordersPerPage = [];\n for (let i = 0; i < numbOfItems; i += 1) {\n ordersPerPage.push({\n id: (i + 1) * 5,\n available: true,\n value: (i + 1) * 5\n });\n }\n\n /**\n * handle search of grid\n */\n const fuse = new Fuse(items, {\n keys: [\"basketReference\", \"basketDate\", \"totalAmount\"]\n });\n const handleSearch = e => {\n setOrderDetails(false);\n if (e.target.value) {\n const results = fuse.search(e.target.value);\n const filteredResults = results.map(searchResult => searchResult.item);\n setSearchedItems(filteredResults);\n } else {\n setSearchedItems(items);\n }\n };\n\n /**\n * Order per page change\n */\n const ordersPerPageChange = e => {\n const val = parseInt(e.target.value, 10);\n\n // check to see if the selected value is a number (5 is the default)\n if (Number.isNaN(val)) {\n setItemsPerPage(5);\n } else {\n setItemsPerPage(val);\n }\n };\n\n /**\n * Loop through filters, only show filters that exist in items array\n */\n const checkFilterExist = filter => {\n // \"all\" filter returns always\n let filterExists = filter.id === \"all\";\n for (let i = 0; i < items.length; i += 1) {\n if (items[i].filter && items[i].filter === filter.id) {\n filterExists = true;\n }\n }\n return filterExists;\n };\n\n /**\n * Convert date to string\n */\n const convertDateToString = date => {\n const options = { year: \"numeric\", month: \"long\", day: \"numeric\" };\n // regex to update 20-08-2020 to 08/20/2020 date\n const updateDate = date.replace(/(\\d{2})-(\\d{2})-(\\d{4})/, \"$2/$1/$3\");\n // update 08/20/2020 to 20 August 2020\n return new Date(updateDate).toLocaleDateString([], options);\n };\n\n /**\n * Get order detail\n */\n const getOrderDetail = reference => {\n setGlobalValue(\"transactionHistRef\", reference);\n history.push(\"/Transactions/transaction-info\");\n };\n\n useEffect(() => {\n // set the filter to all results\n if (activeFilter === \"all\") {\n setSearchedItems(items);\n } else {\n // filter by the selected filter\n const filteredItems = items.filter(item => {\n return item.filter && item.filter === activeFilter;\n });\n setSearchedItems(filteredItems);\n }\n\n // get a list of the filters that exist in the array of items\n if (filters) {\n const filteredFilterList = filters.filter(item => {\n return checkFilterExist(item);\n });\n setFiltersList(filteredFilterList);\n }\n }, [itemsPerPage, activeFilter, checkFilterExist]);\n\n const currentPageItems = useMemo(() => {\n const firstPageIndex = (currentPage - 1) * itemsPerPage;\n const lastPageIndex = firstPageIndex + itemsPerPage;\n return searchedItems.slice(firstPageIndex, lastPageIndex);\n }, [currentPage, searchedItems]);\n\n return (\n <>\n {!orderDetails && (\n \n <>\n {searchedItems.length > 0 &&

Select a transaction to see more information.

}\n {loader && }\n \n {filters && (\n \n {filtersList.map(item => {\n return (\n {\n setActiveFilter(item.id);\n }}\n active={activeFilter === item.id}\n >\n {item.label}\n \n );\n })}\n \n )}\n {!filters &&
}\n {search && (\n \n \n \n \n \n \n \n )}\n
\n {currentPageItems.map(item => {\n return (\n \n \n {item.basketDate &&
{convertDateToString(item.basketDate)}
}\n {item.basketReference &&

Order reference: {item.basketReference}

}\n
\n \n {infoBtn && (\n {\n getOrderDetail(item.basketReference);\n }}\n aria-label={`Order details for basket with reference of ${item.basketReference} and a price of ${formatPrice(\n item.totalAmount\n )}. Click this button to see more information.`}\n >\n

Order Details

\n \"\"\n \n )}\n {price && (\n \n
€{formatPrice(item.totalAmount)}
\n
\n )}\n
\n
\n );\n })}\n {!values.loggedIn && }\n {searchedItems.length === 0 && values.loggedIn && !loader && (\n <>\n
You have no transaction history on this account
\n \n \n \n \n \n )}\n {searchedItems.length > 5 && (\n \n \n \n \n \n \n \n \n \n \n )}\n \n
\n )}\n \n );\n};\n\nexport default withRouter(TransactionsGrid);\n\nTransactionsGrid.propTypes = {\n items: PropTypes.array,\n infoBtn: PropTypes.bool,\n price: PropTypes.bool,\n search: PropTypes.bool,\n filters: PropTypes.array,\n filterActive: PropTypes.string,\n history: PropTypes.object,\n loader: PropTypes.bool\n};\n\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { Box, Text } from \"../ui\";\n\nconst ShopNoOrders = () => {\n const StyledList = styled.ul`\n font-weight: bold;\n\n li {\n margin: 2rem 0;\n }\n\n a {\n color: #008755;\n font-size: 1.4rem;\n }\n `;\n\n return (\n \n \n You have no transactions in the shop\n \n \n View our collection of\n \n \n
  • \n Stamps & labels\n
  • \n
  • \n Special issue stamps\n
  • \n
  • \n Collectibles & Gifts\n
  • \n
  • \n Phones\n
  • \n
    \n
    \n );\n};\n\nexport default ShopNoOrders;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Link } from \"react-router-dom\";\n\nimport { Box, Text, Tag } from \"../ui\";\nimport { formatOrderNumber } from \"./utils\";\n\nconst ShopTransactionCard = ({ orderDate, orderId, productList, tagStyle, price, status }) => (\n \n \n \n \n {orderDate} | Shop\n \n \n Order reference:{\" \"}\n \n {formatOrderNumber(orderId)}\n \n \n \n \n \n \n {productList.items.map((product, i) => {\n return {`${product}`};\n })}\n \n {!!productList.moreItemsCount && (\n \n +{productList.moreItemsCount} more items\n \n )}\n \n
    \n \n {status}\n \n
    \n
    \n
    \n \n \n \n \n {price}\n \n \n \n \n \n Details \n \n \n \n
    \n);\n\nconst ArrowRightIcon = () => (\n \n \n \n);\n\nconst Container = ({ children }) => (\n \n {children}\n \n);\n\nexport default ShopTransactionCard;\n\nShopTransactionCard.propTypes = {\n orderDate: PropTypes.string,\n productList: PropTypes.object,\n tagStyle: PropTypes.object,\n price: PropTypes.string,\n status: PropTypes.string\n};\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nimport FormGroup from \"shared-anpost-components/components/form/form_group/FormGroup\";\nimport InputGroup from \"shared-anpost-components/components/form/input_group/InputGroup\";\nimport Select from \"shared-anpost-components/components/form/select/Select\";\nimport Pagination from \"shared-anpost-components/components/form/pagination/Pagination\";\nimport Loader from \"shared-anpost-components/components/loader/Loader\";\n\nimport ShopNoOrders from \"./ShopNoOrders\";\nimport ShopTransactionCard from \"./ShopTransactionCard\";\nimport { mapItemsPerPageSelect, mapStatusTagStyles, formatedPrice, formatedDate } from \"./utils\";\nimport { Box } from \"../ui\";\n\nconst ShopOrdersList = ({ error, currentPage, ordersPerPage, ordersPerPageChange, onPageChange, items, totalItems, isLoading }) => {\n const mapProductList = productList => {\n return {\n items: productList.map(product => product.productName).splice(0, 2),\n moreItemsCount: productList.length - 2 > 0 ? productList.length - 2 : 0\n };\n };\n\n if (isLoading) return ;\n if (error) return null;\n if (items?.length === 0) return ;\n return (\n \n {items?.map(order => (\n \n ))}\n {totalItems > 10 && (\n \n \n \n \n \n \n \n \n \n \n )}\n \n );\n};\n\nexport default ShopOrdersList;\n\nShopOrdersList.propTypes = {\n ordersPerPage: PropTypes.number,\n error: PropTypes.string,\n currentPage: PropTypes.number,\n ordersPerPageChange: PropTypes.func,\n onPageChange: PropTypes.func,\n items: PropTypes.array,\n totalItems: PropTypes.number,\n isLoading: PropTypes.bool\n};\n","import React from \"react\";\nimport axios from \"axios\";\nimport GlobalError from \"shared-anpost-components/components/globalError/GlobalError\";\nimport { useHistory } from \"react-router-dom\";\nimport TransactionsGrid from \"./click-and-post/TransactionsGrid\";\nimport profileHooks from \"../../../hooks/profileHooks\";\nimport { getTransactions, getJWTInfo, getOrders, getShopOrders } from \"../../../services/Api\";\nimport { Box } from \"./ui\";\nimport { DmOrderList, ProductTabList, TransactionsHeader } from \"./direct-mail/components/DmOrderList\";\nimport { useSearchParams } from \"./direct-mail/utils\";\nimport ShopOrdersList from \"./shop/ShopOrdersList\";\n// import { TransactionsData } from \"./Transactions.config\"; // for dummy data\n\nconst PRODUCTS = {\n CLICK_AND_POST: \"click-and-post\",\n DIRECT_MAIL: \"direct-mail\",\n SHOP: \"shop\"\n};\n\nconst Transactions = () => {\n const history = useHistory();\n const { setSearchParam, searchParams } = useSearchParams();\n\n // TODO: this is wrong. Hooks should start with keyword \"use\" otherwise it might not work as expected\n const { values } = profileHooks();\n\n const { ciamUserId: userId } = values;\n const selectedProduct = searchParams.find(p => p?.[0] === \"product\")?.[1];\n\n const cNpOrders = useCnPOrdersQuery({ enabled: selectedProduct === PRODUCTS.CLICK_AND_POST, userId });\n const dmOrders = useDmOrdersQuery({ enabled: selectedProduct === PRODUCTS.DIRECT_MAIL, userId });\n const shopOrders = useShopOrdersQuery({ enabled: selectedProduct === PRODUCTS.SHOP, userId });\n\n // initialize with CLICK_AND_POST product\n React.useEffect(() => {\n if (!selectedProduct) onSelectProduct(PRODUCTS.CLICK_AND_POST);\n }, []);\n\n const onSelectProduct = async value => {\n if (!values.loggedIn || !values.ciamUserId) return;\n setSearchParam(\"product\", value);\n };\n\n const error = cNpOrders.error || dmOrders.error || shopOrders.error;\n\n const onReset = () => {\n cNpOrders.reset();\n dmOrders.reset();\n shopOrders.reset();\n };\n\n return (\n <>\n {error && }\n \n \n \n {selectedProduct === PRODUCTS.CLICK_AND_POST && }\n {selectedProduct === PRODUCTS.DIRECT_MAIL && (\n \n )}\n {selectedProduct === PRODUCTS.SHOP && \n \n }\n \n \n );\n};\n\nexport default Transactions;\n\nlet cachedCnPOrders;\nfunction useCnPOrdersQuery({ enabled = true, userId } = {}) {\n const [data, setData] = React.useState(cachedCnPOrders);\n const [error, setError] = React.useState(undefined);\n const [isLoading, setLoading] = React.useState(true);\n const createToken = useCancelToken();\n\n const fetch = async () => {\n setLoading(true);\n setError(undefined);\n const cancelToken = createToken();\n try {\n getJWTInfo(userId);\n const response = await getTransactions(userId, { cancelToken });\n if (response?.data?.baskets) {\n cachedCnPOrders = response.data.baskets;\n setData(cachedCnPOrders);\n }\n } catch (e) {\n if (axios.isCancel(error)) {\n console.log(\"Request canceled.\", error.message);\n cachedCnPOrders = undefined;\n setData(cachedCnPOrders);\n setError(undefined);\n } else {\n const hasNoBasket = e?.response?.data?.basketsCount === 0;\n if (hasNoBasket) return;\n cachedCnPOrders = undefined;\n setData(cachedCnPOrders);\n setError(e?.message || \"Failed to get cnp orders.\");\n }\n } finally {\n setLoading(false);\n }\n };\n\n const reset = () => {\n setLoading(false);\n cachedCnPOrders = undefined;\n setData(cachedCnPOrders);\n setError(undefined);\n };\n\n React.useEffect(() => {\n if (enabled) fetch();\n }, [enabled]);\n\n const isPending = !!(isLoading && !data);\n\n return {\n data,\n isLoading,\n fetch,\n error,\n isPending,\n reset\n };\n}\n\nlet cachedDmOrders;\nfunction useDmOrdersQuery({ enabled = true, userId } = {}) {\n const pageSize = 10;\n const [data, setData] = React.useState(cachedDmOrders);\n const [error, setError] = React.useState(undefined);\n const [isLoading, setLoading] = React.useState(true);\n const [totalPages, setTotalPages] = React.useState(0);\n const [totalRecords, setTotalRecords] = React.useState(0);\n const [pageNumber, setPageNumber] = React.useState(1);\n const createToken = useCancelToken();\n\n const resetState = () => {\n cachedDmOrders = undefined;\n setData(cachedDmOrders);\n setTotalPages(0);\n setTotalRecords(0);\n setPageNumber(1);\n setError(undefined);\n };\n\n const fetch = async (pgNum = pageNumber) => {\n setError(undefined);\n setLoading(true);\n setPageNumber(pgNum);\n const cancelToken = createToken();\n try {\n await getJWTInfo(userId);\n const response = await getOrders({ pageNumber: pgNum, cancelToken });\n if (response.data) {\n cachedDmOrders = response.data?.Data?.Orders?.filter(it => !!it?.Status?.Name && it.Status.Name !== \"Pending\") || [];\n setData(cachedDmOrders);\n setTotalPages(response.data?.Data?.Paging?.TotalPages);\n setTotalRecords(response.data?.Data?.Paging?.TotalRecords);\n }\n if (response.error) setError(response.error);\n } catch (e) {\n if (axios.isCancel(error)) {\n console.log(\"Request canceled.\", error.message);\n resetState();\n }\n } finally {\n setLoading(false);\n }\n };\n\n const onPageChange = async pgNum => {\n setPageNumber(pgNum);\n fetch(pgNum);\n };\n\n const reset = () => {\n resetState();\n setLoading(false);\n };\n\n React.useEffect(() => {\n if (enabled) fetch();\n }, [enabled]);\n\n const isPending = !!(isLoading && !data);\n\n return {\n fetch,\n data,\n isLoading,\n totalPages,\n totalRecords,\n setTotalPages,\n onPageChange,\n pageNumber,\n pageSize,\n error,\n isPending,\n reset\n };\n}\n\nlet cachedShopOrders;\nfunction useShopOrdersQuery({ enabled = true, userId } = {}) {\n const [data, setData] = React.useState(cachedShopOrders);\n const [error, setError] = React.useState(undefined);\n const [isLoading, setLoading] = React.useState(true);\n const [ordersPerPage, setOrdersPerPage] = React.useState(10);\n const [currentPage, setCurrentPage] = React.useState(1);\n const [totalItems, setTotalItems] = React.useState(0);\n const createToken = useCancelToken();\n\n const ordersPerPageChange = e => {\n const selectValue = Number(e.currentTarget.value);\n setOrdersPerPage(selectValue);\n setCurrentPage(1);\n fetch(1, selectValue);\n };\n \n const onPageChange = pageNumber => {\n setCurrentPage(pageNumber);\n fetch(pageNumber, ordersPerPage);\n };\n\n const resetState = () => {\n cachedShopOrders = undefined;\n setData(cachedShopOrders);\n setCurrentPage(1);\n setError(undefined);\n };\n\n const fetch = async (pageNum = currentPage, limit = ordersPerPage) => {\n setLoading(true);\n setError(undefined);\n const cancelToken = createToken();\n const offset = (pageNum - 1) * limit;\n\n try {\n getJWTInfo(userId);\n const response = await getShopOrders({ offset, limit, cancelToken });\n if (response?.data?.orders) {\n cachedShopOrders = response.data.orders;\n setData(cachedShopOrders);\n if (response.data.pageInfo) setTotalItems(response.data.pageInfo.totalElements);\n }\n if (response.error) setError(response.error);\n } catch (e) {\n if (axios.isCancel(error)) {\n console.log(\"Request canceled.\", error.message);\n resetState();\n }\n } finally {\n setLoading(false);\n }\n };\n\n const reset = () => {\n resetState();\n setLoading(false);\n };\n\n React.useEffect(() => {\n if (enabled) fetch();\n }, [enabled]);\n\n const isPending = !!(isLoading && !data);\n\n return {\n data,\n totalItems,\n ordersPerPage,\n isLoading,\n currentPage,\n error,\n isPending,\n fetch,\n reset,\n ordersPerPageChange,\n onPageChange\n };\n}\n\n// cancel token management\nfunction useCancelToken() {\n const cancelTokenSource = React.useRef(null);\n\n React.useEffect(() => {\n return () => {\n if (cancelTokenSource.current) {\n cancelTokenSource.current.cancel(\"Operation canceled due to component unmount.\");\n }\n };\n }, []);\n\n const createToken = () => {\n if (cancelTokenSource.current) {\n cancelTokenSource.current.cancel(\"Operation canceled due to new request.\");\n }\n cancelTokenSource.current = axios.CancelToken.source();\n return cancelTokenSource.current.token;\n };\n\n return createToken;\n}\n","import React, { useState, useEffect } from \"reactn\";\nimport { useHistory } from \"react-router-dom\";\nimport PropTypes from \"prop-types\";\nimport {\n EditableGridWrapper,\n EditableGridItem,\n EditableGridBtns,\n EditableGridBtn,\n EditableGridInfo,\n EditableGridCont,\n EditableGridLink,\n PagingSelect,\n DeletePrompt,\n AddressWrapper,\n AddressGridWrapper,\n EditableGridContBtns\n} from \"../../_common/form/editableGrid/EditableGrid.styled\";\n\n// components\nimport Pagination from \"shared-anpost-components/components/form/pagination/Pagination\";\nimport FormGroup from \"shared-anpost-components/components/form/form_group/FormGroup\";\nimport InputGroup from \"shared-anpost-components/components/form/input_group/InputGroup\";\nimport Select from \"shared-anpost-components/components/form/select/Select\";\nimport { FiltersWrapper, Filter } from \"../../_common/form/filters/filters.styled\";\nimport PageLink from \"../../_common/link/PageLink\";\nimport Loader from \"shared-anpost-components/components/loader/Loader\";\nimport GlobalError from \"shared-anpost-components/components/globalError/GlobalError\";\nimport Error from \"../../_common/error/Error\";\nimport PageTitle from \"shared-anpost-components/components/pageTitle/PageTitle.styled\";\n\n// hooks\nimport profileHooks from \"../../../hooks/profileHooks\";\nimport addressHooks from \"../../../hooks/addressHooks\";\n\n// apis\nimport { deleteAddress, deleteFavourite, getJWTInfo, getProfile } from \"../../../services/Api\";\n\n// helpers\nimport { virtualPageView, capitaliseFirstLetters } from \"../../../helpers/Helpers\";\n\nconst AddressesGrid = props => {\n const [loader, setLoader] = useState(false);\n const [apiError, setApiError] = useState(false);\n\n const { items, deleteBtn, editBtn, newItem, filters, filterActive, onAddressUpdate } = props;\n\n const { values } = profileHooks();\n const { setContactValues, setAdditionalAddressVals, resetPersonalAddressData, resetContactAddressData, updateAddressObject, clearAddress } = addressHooks();\n\n const history = useHistory();\n /**\n * Sets current page\n */\n const [currentPage, setCurrentPage] = useState(0);\n\n /**\n * Sets current limit\n */\n const [currentLimit, setCurrentLimit] = useState(999);\n\n /**\n * Sets items per page\n */\n const [itemsPerPage, setItemsPerPage] = useState(999);\n\n /**\n * Sets searched Items\n */\n const [filteredItems, setFilteredItems] = useState(items);\n\n /**\n * Set Active Filter\n */\n const [activeFilter, setActiveFilter] = useState(filterActive);\n\n /**\n * Set Filters List\n */\n const [filtersList, setFiltersList] = useState(filters);\n\n /**\n * Set Delete prompt\n */\n const [deletePrompt, setDeletePrompt] = useState(\"\");\n\n /**\n * Get the number per page\n */\n\n const itemLength = items.length;\n const numbOfItems = Math.round(itemLength / 999);\n const ordersPerPage = [];\n for (let i = 0; i < numbOfItems; i += 1) {\n ordersPerPage.push({\n id: (i + 1) * 999,\n available: true,\n value: (i + 1) * 999\n });\n }\n\n /**\n * Order per page change\n */\n const ordersPerPageChange = e => {\n setItemsPerPage(parseInt(e.target.value, 10));\n };\n\n const handleAnalytics = id => {\n let virtualUrl = \"all-addresses\";\n let virtualTitle = \"All addresses\";\n\n if (id === \"personalAddresses\") {\n virtualUrl = \"my-addresses\";\n virtualTitle = \"My addresses\";\n } else if (id === \"contactAddresses\") {\n virtualUrl = \"my-contacts\";\n virtualTitle = \"My Contacts\";\n }\n\n virtualPageView(`/myAccount/Addresses/${virtualUrl}`, `My Account - ${virtualTitle}`);\n };\n\n const updateCurrentFilter = id => {\n setActiveFilter(id);\n setCurrentPage(0);\n\n handleAnalytics(id);\n };\n\n const closeFunc = () => {\n setApiError(false);\n };\n\n /**\n * Loop through filters, only show filters that exist in items array\n */\n const checkFilterExist = filter => {\n // \"all\" filter returns always\n let filterExists = filter.id === \"all\";\n for (let i = 0; i < items.length; i += 1) {\n if (items[i].filter && items[i].filter === filter.id) {\n filterExists = true;\n }\n }\n return filterExists;\n };\n\n /**\n * Show edit contact\n */\n const showEditPersonal = address => {\n updateAddressObject(\"personalAddress\", address);\n\n setAdditionalAddressVals(\"personalAddress\", address, values);\n if (address.displayName === \"Home\" || address.displayName === \"Business\") {\n history.push(\"/Addresses/edit-address\");\n } else {\n history.push(\"/Addresses/edit-secondary-address\");\n }\n };\n\n const handleError = () => {\n setLoader(false);\n setApiError(true);\n };\n\n /**\n * Show edit contact\n */\n const showEditContact = contact => {\n setContactValues(contact);\n\n updateAddressObject(\"contactAddress\", contact.receiverAddress);\n\n history.push(\"/Addresses/edit-contact\");\n };\n\n const showEditForm = item => {\n if (item.filter === \"contactAddresses\") {\n showEditContact(item);\n } else if (item.filter === \"personalAddresses\") {\n showEditPersonal(item);\n }\n };\n\n const addNewAddressClick = () => {\n resetPersonalAddressData(items.length === 0);\n\n clearAddress(\"personalAddress\");\n\n history.push(\"/Addresses/add-new-address\");\n };\n\n const addNewContactClick = () => {\n resetContactAddressData();\n\n clearAddress(\"contactAddress\");\n\n history.push(\"/Addresses/add-new-contact\");\n };\n\n const deleteContactAddress = addressId => {\n // Data that is passed to API\n const addressData = {\n receiverId: addressId,\n ciamCustomerId: values.ciamUserId,\n sessionId: `${window.cmsSessionId}`\n };\n\n // Call Api\n getJWTInfo().then(() => {\n deleteFavourite(addressData)\n .then(res => {\n if (res.status === 200) {\n\t\t\t\t\t\tonAddressUpdate();\n } else {\n handleError();\n }\n })\n .catch(() => {\n handleError();\n });\n });\n };\n\n const deletePersonalAddress = item => {\n setLoader(true);\n const addressData = {\n UID: values.ciamUserId,\n id: item.id\n };\n getJWTInfo().then(() => {\n deleteAddress(addressData)\n .then(res => {\n if (res.status === 200) {\n\t\t\t\t\t\tsetLoader(false);\n\n getProfile(values.ciamUserId).then(res => {\n if (res.status === 200) {\n sessionStorage.setItem(\"userProfile\", JSON.stringify(res.data));\n onAddressUpdate();\n };\n });\n } else {\n handleError();\n }\n })\n .catch(() => {\n handleError();\n });\n });\n };\n\n const deleteItem = (e, item, addressType, addressId) => {\n e.preventDefault();\n\n if (addressType === \"personal\") {\n deletePersonalAddress(item);\n }\n\n if (addressType === \"contact\") {\n deleteContactAddress(addressId);\n }\n };\n\n useEffect(() => {\n if (currentPage + itemsPerPage > items.length) {\n // if limit is less than 999 - set the limit to 999\n setCurrentLimit(filteredItems.length > 999 ? filteredItems.length : 999);\n } else {\n setCurrentLimit(currentPage + itemsPerPage);\n }\n\n // set the filter to all results\n if (activeFilter === \"all\") {\n setFilteredItems(items);\n } else {\n // filter by the selected filter\n const filterItems = items.filter(item => {\n return item.filter && item.filter === activeFilter;\n });\n setFilteredItems(filterItems);\n }\n\n // get a list of the filters that exist in the array of items\n if (filters) {\n const filteredFilterList = filters.filter(item => {\n return checkFilterExist(item);\n });\n\n setFiltersList(filteredFilterList);\n }\n }, [items, currentPage, itemsPerPage, activeFilter]);\n\n useEffect(() => {\n clearAddress(\"personalAddress\");\n }, []);\n\n return (\n <>\n {loader && }\n {apiError && }\n \n <>\n

    Address book

    \n

    Manage your addresses and contacts

    \n

    Your profile addresses should belong to you. These are used as the sender address when buying labels online. Your contacts are the people who you wish to send items to.

    \n \n {filters && values.loggedIn && (\n \n {filtersList.map(item => {\n return (\n {\n e.preventDefault();\n updateCurrentFilter(item.id);\n }}\n active={activeFilter === item.id}\n aria-label={`Filter by ${item.label}`}\n >\n {item.label}\n \n );\n })}\n \n )}\n \n {items.length === 0 && values.loggedIn &&
    There are no addresses connected to your profile yet. You can add them below.
    }\n {!values.loggedIn && }\n \n {filteredItems.slice(currentPage, currentLimit).map(item => {\n let person;\n let address;\n let addressId;\n let addressType;\n if (item.receiver) {\n person = item.receiver;\n address = item.receiverAddress;\n addressId = item.receiverId;\n addressType = \"contact\";\n } else {\n address = item;\n addressId = item.id;\n addressType = \"personal\";\n }\n return (\n \n <>\n \n {addressType === \"contact\" && (\n <>\n {person && person.firstName && (\n
    \n {person.firstName} {person.lastName}\n
    \n )}\n \n )}\n {addressType === \"personal\" && <>{address && address.displayName &&
    {address.displayName}
    }}\n {address && (\n \n {address.organisationName &&

    {capitaliseFirstLetters(address.organisationName)},

    }\n {address.addressLine1 &&

    {capitaliseFirstLetters(address.addressLine1)},

    }\n {address.addressLine2 &&

    {capitaliseFirstLetters(address.addressLine2)},

    }\n {address.addressLine3 &&

    {capitaliseFirstLetters(address.addressLine3)},

    }\n {address.addressLine4 &&

    {capitaliseFirstLetters(address.addressLine4)},

    }\n {address.town &&

    {capitaliseFirstLetters(address.town)},

    }\n {address.city &&

    {capitaliseFirstLetters(address.city)},

    }\n {address.county &&

    {capitaliseFirstLetters(address.county)},

    }\n {address.eircode && address.country && address.country.toUpperCase() === \"IRELAND\" &&

    {address.eircode.toUpperCase()},

    }\n {address.postcode && address.country && address.country.toUpperCase() !== \"IRELAND\" &&

    {address.postcode.toUpperCase()},

    }\n {address.country &&

    {capitaliseFirstLetters(address.country)}

    }\n
    \n )}\n {address.defaultAddress &&

    Default delivery address

    }\n
    \n \n {deletePrompt === addressId && (\n <>\n \n \n

    This cannot be undone.

    \n

    Are you sure you want to delete this address from your profile?

    \n

    \n {\n e.preventDefault();\n setDeletePrompt(\"\");\n }}\n >\n

    \n

    \n {\n deleteItem(e, address, addressType, addressId);\n }}\n >\n

    \n
    \n \n )}\n {deleteBtn && (deletePrompt !== addressId && (address.displayName !== \"Home\" && address.displayName !== \"Business\" && !address.defaultAddress)) && (\n {\n setDeletePrompt(addressId);\n }}\n >\n

    Delete

    \n \n \n )}\n {editBtn && deletePrompt !== addressId && (\n {\n showEditForm(item);\n }}\n >\n

    Edit

    \n \n \n )}\n
    \n \n
    \n );\n })}\n
    \n \n {newItem && values.loggedIn && (\n \n
    \n {(activeFilter === \"all\" || activeFilter === \"personalAddresses\") && (\n {\n addNewAddressClick();\n }}\n >\n Add a new address\n \n )}\n {(activeFilter === \"all\" || activeFilter === \"contactAddresses\") && (\n {\n addNewContactClick();\n }}\n >\n Add a new contact\n \n )}\n
    \n
    \n )}\n {filteredItems.length > 999 && (\n \n \n \n \n \n \n \n \n \n \n )}\n
    \n \n );\n};\n\nexport default AddressesGrid;\n\nAddressesGrid.propTypes = {\n items: PropTypes.array,\n deleteBtn: PropTypes.bool,\n editBtn: PropTypes.bool,\n newItem: PropTypes.bool,\n filters: PropTypes.array,\n filterActive: PropTypes.string,\n\tonAddressUpdate: PropTypes.func\n};\n","const AddressesConfig = {\n ciamCustomerId: \"edda5da6d0c648b18a60a5ab9c6197bb\",\n countryCode: \"IE\",\n receivers: [\n {\n addressLine1: \"Apartment 1\",\n addressLine2: \"4 Leeson Park Street Lower\",\n addressLine3: \"Dublin 2\",\n addressLine4: \"\",\n addressLine5: \"\",\n addressLine6: \"\",\n addressLine7: \"\",\n addressLine8: \"\",\n eircode: \"D02 KA47\",\n city: \"New York\",\n county: \"\",\n country: \"Ireland\",\n postCode: \"\",\n autoAddressId: \"\",\n internationalAddress: true,\n addressValidated: false,\n defaultAddress: true,\n filter: \"personalAddress\",\n displayName: \"Home\"\n },\n {\n addressLine1: \"Apartment 1\",\n addressLine2: \"4 Leeson Park Street Lower\",\n addressLine3: \"Dublin 2\",\n addressLine4: \"\",\n addressLine5: \"\",\n addressLine6: \"\",\n addressLine7: \"\",\n addressLine8: \"\",\n eircode: \"D02 KA47\",\n city: \"New York\",\n county: \"\",\n country: \"Ireland\",\n postCode: \"\",\n autoAddressId: \"\",\n internationalAddress: true,\n addressValidated: false,\n defaultAddress: false,\n filter: \"personalAddress\",\n displayName: \"Business\"\n },\n {\n addressLine1: \"Apartment 1\",\n addressLine2: \"4 Leeson Park Street Lower\",\n addressLine3: \"Dublin 2\",\n addressLine4: \"\",\n addressLine5: \"\",\n addressLine6: \"\",\n addressLine7: \"\",\n addressLine8: \"\",\n eircode: \"D02 KA47\",\n city: \"New York\",\n county: \"\",\n country: \"Ireland\",\n postCode: \"\",\n autoAddressId: \"\",\n internationalAddress: true,\n addressValidated: false,\n defaultAddress: false,\n filter: \"personalAddress\",\n displayName: \"test\"\n },\n {\n addressLine1: \"Apartment 1\",\n addressLine2: \"4 Leeson Park Street Lower\",\n addressLine3: \"Dublin 2\",\n addressLine4: \"\",\n addressLine5: \"\",\n addressLine6: \"\",\n addressLine7: \"\",\n addressLine8: \"\",\n eircode: \"D02 KA47\",\n city: \"New York\",\n county: \"\",\n country: \"Ireland\",\n postCode: \"\",\n autoAddressId: \"\",\n internationalAddress: true,\n addressValidated: false,\n defaultAddress: false,\n filter: \"personalAddress\",\n displayName: \"test\"\n },\n {\n addressLine1: \"Apartment 1\",\n addressLine2: \"4 Leeson Park Street Lower\",\n addressLine3: \"Dublin 2\",\n addressLine4: \"\",\n addressLine5: \"\",\n addressLine6: \"\",\n addressLine7: \"\",\n addressLine8: \"\",\n eircode: \"D02 KA47\",\n city: \"New York\",\n county: \"\",\n country: \"Ireland\",\n postCode: \"\",\n autoAddressId: \"\",\n internationalAddress: true,\n addressValidated: false,\n defaultAddress: false,\n filter: \"personalAddress\",\n displayName: \"test\"\n },\n {\n receiverId: \"97c055e4-c005-4feb-5ec0-08d743578c48\",\n receiver: {\n firstName: \"Tony\",\n lastName: \"Malone\",\n companyName: \"\",\n contactNumber: \"\",\n emailAddress: \"tony.malone@test.email\"\n },\n receiverAddress: {\n addressLine1: \"Address Line 1\",\n addressLine2: \" Address Line 2\",\n addressLine3: \" Address Line 3\",\n addressLine4: \"\",\n addressLine5: \"\",\n addressLine6: \"\",\n addressLine7: \"\",\n addressLine8: \"\",\n eircode: \"\",\n city: \"Dublin\",\n county: \"Dublin\",\n country: \"Ireland\",\n postCode: \"\",\n autoAddressId: \"\",\n internationalAddress: false,\n addressValidated: false\n },\n filter: \"contactAddresses\"\n },\n {\n receiverId: \"97c055e4-c005-4feb-5ec0-08d743578c52\",\n receiver: {\n firstName: \"Mark\",\n lastName: \"Brady\",\n companyName: \"\",\n contactNumber: \"\",\n emailAddress: \"tony.malone@test.email\"\n },\n receiverAddress: {\n addressLine1: \"Address Line 1\",\n addressLine2: \" Address Line 2\",\n addressLine3: \" Address Line 3\",\n addressLine4: \"\",\n addressLine5: \"\",\n addressLine6: \"\",\n addressLine7: \"\",\n addressLine8: \"\",\n eircode: \"\",\n city: \"New York\",\n county: \"\",\n country: \"USA\",\n postCode: \"\",\n autoAddressId: \"\",\n internationalAddress: true,\n addressValidated: false\n },\n filter: \"contactAddresses\"\n },\n {\n receiverId: \"97c055e4-c005-4feb-5ec0-08d743578c48\",\n receiver: {\n firstName: \"Tony\",\n lastName: \"Malone\",\n companyName: \"\",\n contactNumber: \"\",\n emailAddress: \"tony.malone@test.email\"\n },\n receiverAddress: {\n addressLine1: \"Address Line 1\",\n addressLine2: \" Address Line 2\",\n addressLine3: \" Address Line 3\",\n addressLine4: \"\",\n addressLine5: \"\",\n addressLine6: \"\",\n addressLine7: \"\",\n addressLine8: \"\",\n eircode: \"\",\n city: \"Dublin\",\n county: \"Dublin\",\n country: \"Ireland\",\n postCode: \"\",\n autoAddressId: \"\",\n internationalAddress: false,\n addressValidated: false\n },\n filter: \"contactAddresses\"\n },\n {\n receiverId: \"97c055e4-c005-4feb-5ec0-08d743578c48\",\n receiver: {\n firstName: \"Tony\",\n lastName: \"Malone\",\n companyName: \"\",\n contactNumber: \"\",\n emailAddress: \"tony.malone@test.email\"\n },\n receiverAddress: {\n addressLine1: \"Address Line 1\",\n addressLine2: \" Address Line 2\",\n addressLine3: \" Address Line 3\",\n addressLine4: \"\",\n addressLine5: \"\",\n addressLine6: \"\",\n addressLine7: \"\",\n addressLine8: \"\",\n eircode: \"\",\n city: \"Dublin\",\n county: \"Dublin\",\n country: \"Ireland\",\n postCode: \"\",\n autoAddressId: \"\",\n internationalAddress: false,\n addressValidated: false\n },\n filter: \"contactAddresses\"\n },\n {\n receiverId: \"97c055e4-c005-4feb-5ec0-08d743578c48\",\n receiver: {\n firstName: \"Tony\",\n lastName: \"Malone\",\n companyName: \"\",\n contactNumber: \"\",\n emailAddress: \"tony.malone@test.email\"\n },\n receiverAddress: {\n addressLine1: \"Address Line 1\",\n addressLine2: \" Address Line 2\",\n addressLine3: \" Address Line 3\",\n addressLine4: \"\",\n addressLine5: \"\",\n addressLine6: \"\",\n addressLine7: \"\",\n addressLine8: \"\",\n eircode: \"\",\n city: \"Dublin\",\n county: \"Dublin\",\n country: \"Ireland\",\n postCode: \"\",\n autoAddressId: \"\",\n internationalAddress: false,\n addressValidated: false\n },\n filter: \"contactAddresses\"\n },\n {\n receiverId: \"97c055e4-c005-4feb-5ec0-08d743578c48\",\n receiver: {\n firstName: \"Tony\",\n lastName: \"Malone\",\n companyName: \"\",\n contactNumber: \"\",\n emailAddress: \"tony.malone@test.email\"\n },\n receiverAddress: {\n addressLine1: \"Address Line 1\",\n addressLine2: \" Address Line 2\",\n addressLine3: \" Address Line 3\",\n addressLine4: \"\",\n addressLine5: \"\",\n addressLine6: \"\",\n addressLine7: \"\",\n addressLine8: \"\",\n eircode: \"\",\n city: \"Dublin\",\n county: \"Dublin\",\n country: \"Ireland\",\n postCode: \"\",\n autoAddressId: \"\",\n internationalAddress: false,\n addressValidated: false\n },\n filter: \"contactAddresses\"\n }\n ],\n success: true,\n errors: []\n};\n\nconst AddressesFiltersConfig = {\n filters: [\n {\n id: \"all\",\n label: \"All addresses\"\n },\n {\n id: \"personalAddresses\",\n label: \"Profile addresses\"\n },\n {\n id: \"contactAddresses\",\n label: \"Contacts\"\n }\n ]\n};\n\nexport { AddressesConfig, AddressesFiltersConfig };\n","// dependancys\nimport React, { useEffect, useState } from \"reactn\";\nimport PropTypes from \"prop-types\";\n\n// components\nimport Loader from \"shared-anpost-components/components/loader/Loader\";\nimport GlobalError from \"shared-anpost-components/components/globalError/GlobalError\";\nimport AddressesGrid from \"./AddressesGrid\";\n\n// config\nimport { AddressesFiltersConfig, AddressesConfig } from \"./Addresses.config\";\n\n// apis\nimport { getProfile, getJWTInfo, getFavourites } from \"../../../services/Api\";\n\n// hooks\nimport profileHooks from \"../../../hooks/profileHooks\";\n\nconst Addresses = props => {\n const { history } = props;\n\n const { setMoneyUser, values } = profileHooks();\n\n const [userAddresses, setUserAddresses] = useState([]);\n\n const [loader, setLoader] = useState(false);\n const [apiError, setApiError] = useState(false);\n\n const getFavouriteReceivers = (profileAddresses, userId) => {\n getJWTInfo().then(() => {\n getFavourites(userId)\n .then(res => {\n if (res.status === 200) {\n setLoader(false);\n // set filter items\n const favouriteAddresses = res.data.receivers.map(item => {\n const tempItem = item;\n tempItem.filter = \"contactAddresses\";\n return tempItem;\n });\n\n setUserAddresses([...profileAddresses, ...favouriteAddresses]);\n } else {\n setLoader(false);\n setApiError(true);\n }\n })\n .catch(() => {\n setLoader(false);\n setApiError(true);\n });\n });\n };\n\n const setProfileCallback = (profileData, callback) => {\n let tempUserAddresses = [];\n let homeAddress = [];\n let businessAddress = [];\n let otherUserAddress = [];\n\n // all of the users addresses\n tempUserAddresses = profileData.addresses.map(item => {\n const tempItem = item;\n\n // this property `filter` is user to diffrentiate between contact addresses and personal adddresses in AddressesGrid\n tempItem.filter = \"personalAddresses\";\n return tempItem;\n });\n\n // Isolate the home, business and other user addresses for ordering purposes\n homeAddress = tempUserAddresses.filter(item => item.displayName === \"Home\");\n businessAddress = tempUserAddresses.filter(item => item.displayName === \"Business\");\n otherUserAddress = tempUserAddresses.filter(item => item.displayName !== \"Home\" && item.displayName !== \"Business\");\n\n // comment out getFavouriteReceivers and use the below if you want to just view addresses locally\n // setUserAddresses([...homeAddress, ...businessAddress, ...otherUserAddress]);\n // setLoader(false);\n\n getFavouriteReceivers([...homeAddress, ...businessAddress, ...otherUserAddress], profileData.uid);\n\n // set Money user flag\n setMoneyUser(profileData.ecoSystemCustomer === \"true\");\n\n if (callback) {\n callback(profileData.profile.firstName || profileData.email);\n }\n };\n\n const updateAddresses = (userId, callback) => {\n setLoader(true);\n getJWTInfo().then(() => {\n const profileData = JSON.parse(sessionStorage.getItem(\"userProfile\"));\n if (profileData && profileData.uid) {\n setProfileCallback(profileData, callback);\n } else {\n getProfile(userId).then(res => {\n if (res.status === 200) {\n sessionStorage.setItem(\"userProfile\", JSON.stringify(res.data));\n setProfileCallback(res.data, callback);\n } else {\n setApiError(true);\n setLoader(false);\n }\n }); \n }\n });\n };\n\n\tconst onAddressUpdate = () => {\n\t\tupdateAddresses(values.ciamUserId);\n\t}\n\n // for dev purposes, when developing locally\n useEffect(() => {\n // if dev mode or the user is alreadey logged in\n if (values.loggedIn) {\n updateAddresses(values.ciamUserId);\n }\n\n if (window.apDevMode) {\n setUserAddresses(AddressesConfig.receivers);\n }\n }, []);\n\n const closeFunc = () => {\n setApiError(false);\n };\n\n return (\n <>\n {loader && }\n {apiError && }\n {!loader && }\n \n );\n};\n\nexport default Addresses;\nAddresses.propTypes = {\n history: PropTypes.object\n};\n","import styled, { css } from \"styled-components\";\n\nconst TabsWrapper = styled.div`\n display: flex;\n`;\n\nconst Tab = styled.button`\n margin-right: 2rem;\n color: ${props => props.theme.lightGray2};\n font-family: ${props => props.theme.fontBold};\n cursor: pointer;\n ${props => {\n return (\n props.active &&\n css`\n color: ${props.theme.black};\n border-bottom: ${props.theme.greenBorderThick};\n `\n );\n }}\n h2 {\n font-size: 1.2rem;\n padding-bottom: 1rem;\n margin-bottom: 0;\n }\n @media only screen and (min-width: ${props => props.theme.smallTablet}) {\n margin-right: 4rem;\n\n h2 {\n font-size: 1.9rem;\n padding-bottom: 2.2rem;\n line-height: normal;\n }\n }\n`;\n\nexport { TabsWrapper, Tab };\n","import styled from \"styled-components\";\n\nconst ProfileInfoContainer = styled.div`\n padding-top: 2rem;\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n padding-top: 3.5rem;\n }\n .verified {\n margin: 0.5rem 0;\n position: relative;\n padding-left: 1.5rem;\n margin-left: 1rem;\n font-size: 1.2rem;\n color: ${props => props.theme.lightGray4};\n display: block;\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n display: inline;\n padding-left: 2.5rem;\n }\n &:before {\n content: \"\";\n width: 1.5rem;\n height: auto;\n background-position: bottom 0.3rem right;\n position: absolute;\n left: -0.4rem;\n top: -0.5rem;\n bottom: 0.5rem;\n background-image: url(\"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSI5cHgiIHZpZXdCb3g9IjAgMCAxMiA5IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA1OS4xICg4NjE0NCkgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgICA8dGl0bGU+R2xvYmFsL0F0b21zL0ljb25zL1RpY2sgZ3JlZW48L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iU3ltYm9scyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIj4KICAgICAgICA8ZyBpZD0iU2Vjb25kYXJ5LXRleHQvbGVmdCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIC03LjAwMDAwMCkiIHN0cm9rZT0iIzAwQTc2QSIgc3Ryb2tlLXdpZHRoPSIyIj4KICAgICAgICAgICAgPGcgaWQ9Ikdsb2JhbC9BdG9tcy9JY29ucy9UaWNrLWdyZWVuIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgOC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxsaW5lIHgxPSIxLjExMTYyNzgzIiB5MT0iMy4wNzk1MTI4MyIgeDI9IjQuMDk3NzQxOTQiIHkyPSI2LjIxNDkzMjY0IiBpZD0iU3Ryb2tlLTIzIj48L2xpbmU+CiAgICAgICAgICAgICAgICA8bGluZSB4MT0iMTAuMjI4NjcxNyIgeTE9IjAiIHgyPSI0LjIxMDUwNzE5IiB5Mj0iNi4yODI2NTAzNyIgaWQ9IlN0cm9rZS0yNSI+PC9saW5lPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=\");\n background-size: 1.4rem;\n background-repeat: no-repeat;\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n left: 0.4rem;\n bottom: 0;\n }\n }\n }\n .security__footer {\n font-size: 1.2rem;\n color: ${props => props.theme.lightGray4};\n font-weight: bold;\n margin-top: 5rem;\n a {\n font-size: 1.2rem;\n color: ${props => props.theme.lightGray4};\n text-decoration: none;\n font-weight: bold;\n }\n }\n`;\n\nconst BusinessBtnWrapper = styled.div`\n padding-top: 1rem;\n .blueBtn {\n background-color: ${props => props.theme.teal};\n color: ${props => props.theme.white};\n border: ${props => props.theme.darkBlueBorder};\n &:hover {\n background-color: ${props => props.theme.lightTeal};\n color: ${props => props.theme.white};\n border: ${props => props.theme.lightTielBorder};\n }\n }\n`;\n\nconst BusinessDescWrapper = styled.div``;\n\nexport { ProfileInfoContainer, BusinessBtnWrapper, BusinessDescWrapper };\n","import styled from \"styled-components\"; \n\nconst SecurityContainer = styled.div`\n`;\n\nexport { SecurityContainer }","// dependancys\nimport React, { useEffect } from \"reactn\";\nimport { useHistory } from \"react-router-dom\";\n\n// components\nimport { SecurityContainer } from \"./Security.styled\";\nimport { InfoContainer } from \"../../../../_common/containers/containers.styled\";\nimport Icon from \"../../../../_common/icons/ReturnIcons\";\nimport ThumbsUpIcon from \"../../../../../images/thumbs-up.svg\";\nimport Error from \"../../../../_common/error/Error\";\n\n// hooks\nimport profileHooks from \"../../../../../hooks/profileHooks\";\n\nconst Security = () => {\n const { values, moneyUser } = profileHooks();\n const history = useHistory();\n\n return (\n \n {values.passwordReset && (\n \n \"\"\n
    Your password has been updated
    \n
    \n )}\n {moneyUser && (\n \n )}\n {values.userIsVerified && !moneyUser && (\n \n

    Password

    \n

    *********

    \n {\n history.push(\"/Profile/edit-password\");\n }}\n aria-label=\"Edit Password\"\n >\n Edit \n \n
    \n )}\n
    \n );\n};\n\nexport default Security;\nSecurity.propTypes = {};\n","// dependancys\nimport React, { useEffect, useState, useGlobal } from \"reactn\";\nimport { useHistory } from \"react-router-dom\";\nimport PropTypes from \"prop-types\";\n\n// components\nimport { ProfileInfoContainer, BusinessBtnWrapper, BusinessDescWrapper } from \"./ProfileInfo.Styled\";\nimport { InfoContainer, InfoContainerLocked } from \"../../../../_common/containers/containers.styled\";\nimport Icon from \"../../../../_common/icons/ReturnIcons\";\nimport Error from \"../../../../_common/error/Error\";\nimport Security from \"../_security/Security\";\n\n// hooks\nimport ProfileHooks from \"../../../../../hooks/profileHooks\";\nimport AddressHooks from \"../../../../../hooks/addressHooks\";\n\nconst ProfileInfo = ({ profile }) => {\n const [profileInfo, setProfileInfo] = useState({});\n const [phoneNumbers, setPhoneNumbers] = useState(null);\n const [defaultAddress, setDefaultAddress] = useState(null);\n const [businessAddress, setBusinessAddress] = useState(null);\n const [business, setBusiness] = useState(null);\n const [editFlow, setEditFlow] = useState(true);\n const [isBusiness, setIsBusiness] = useGlobal(\"isBusiness\");\n\n const { getDefaultAddress, formatAddress, setProfileValues, handleMultipleAddress, values, moneyUser } = ProfileHooks();\n const { updateAddressObject, setAdditionalAddressVals } = AddressHooks();\n const history = useHistory();\n\n const anyProfileInfo = () => {\n if ((profileInfo.firstName && profileInfo.lastName) || profileInfo.phoneNumbers || defaultAddress) {\n return true;\n }\n return false;\n };\n\n const anyBusinessInfoInfo = () => {\n if (profileInfo.business && profileInfo.business.name) {\n return true;\n }\n return false;\n };\n\n useEffect(() => {\n if (profile.profile) {\n const profileTemp = profile.profile;\n const defAddress = getDefaultAddress(profile.addresses, \"Home\");\n const defBusinessAddress = getDefaultAddress(profile.addresses, \"Business\");\n const businessCountry = defBusinessAddress ? defBusinessAddress.country : \"\";\n const personalCountry = defAddress ? defAddress.country : \"\";\n\n // set profile, phone and business information\n setProfileInfo(profileTemp);\n setPhoneNumbers(profile.phones);\n setBusiness(profileTemp.business);\n\n // Get default business and home addresses\n if (defAddress) {\n setDefaultAddress(formatAddress(defAddress));\n updateAddressObject(\"profileAddress\", defAddress);\n }\n\n if (defBusinessAddress) {\n setBusinessAddress(formatAddress(defBusinessAddress));\n updateAddressObject(\"businessAddress\", defBusinessAddress);\n }\n\n // set profile vals (and returns the updated global values object)\n let updatedValues = setProfileValues(profile, personalCountry, businessCountry);\n\n // set the additional values, e.g. manual and international fields (and returns the updated global values object)\n updatedValues = setAdditionalAddressVals(\"profileAddress\", defAddress || {}, updatedValues);\n\n // set the additional business address values (e.g manual and international)\n setAdditionalAddressVals(\"businessAddress\", defBusinessAddress || {}, updatedValues);\n\n // If there is an address returned from the API\n const allAddresses = {};\n if (defAddress) {\n allAddresses.profileAddress = defAddress;\n }\n if (defBusinessAddress) {\n allAddresses.businessAddress = defBusinessAddress;\n }\n\n // set business and profile addresses\n handleMultipleAddress(allAddresses);\n }\n }, [profile]);\n\n return (\n \n {profile.email && (\n \n

    Email

    \n

    \n {profile.email} {values.userIsVerified && Verified user}\n

    \n

    Your email address is your username and cannot be changed

    \n
    \n )}\n \n \n

    Your personal information

    \n {!anyProfileInfo() && (\n \n )}\n {profileInfo.firstName && profileInfo.lastName && (\n <>\n
    Name
    \n

    \n {profileInfo.firstName} {profileInfo.lastName}\n

    \n \n )}\n {phoneNumbers &&\n phoneNumbers.map((number, i) => {\n return (\n \n
    {number.type} phone number
    \n

    {number.number}

    \n
    \n );\n })}\n {defaultAddress && (\n <>\n
    Address
    \n

    {defaultAddress}

    \n \n )}\n {anyProfileInfo() && !moneyUser && (\n {\n history.push(\"/Profile/edit-profile\");\n }}\n aria-label=\"Edit Personal Information\"\n >\n Edit \n \n )}\n {moneyUser && }\n
    \n\n {!anyBusinessInfoInfo() && (\n \n <>\n
    \n \n

    Are you a business?

    \n

    Add your business to your profile to access business services and discounts.

    \n
    \n \n {\n history.push(\"/Profile/edit-business\");\n }}\n >\n Add your business\n \n \n
    \n \n
    \n )}\n {anyBusinessInfoInfo() && (\n \n <>\n

    Your business

    \n

    For business services, we'll use your business information by default.

    \n {business.name && (\n <>\n
    Company name
    \n

    {business.name}

    \n \n )}\n {businessAddress && (\n <>\n
    Address
    \n

    {businessAddress}

    \n \n )}\n {business.companyRegNumber && (\n <>\n
    Company registration number
    \n

    {business.companyRegNumber}

    \n \n )}\n {business.vatNumber && (\n <>\n
    VAT number
    \n

    {business.vatNumber}

    \n \n )}\n {business.industry && (\n <>\n
    Industry
    \n

    {business.industry}

    \n \n )}\n {\n history.push(\"/Profile/edit-business\");\n }}\n to=\"/Profile/edit-business\"\n aria-label=\"Edit Business Information\"\n >\n Edit \n \n \n
    \n )}\n
    \n );\n};\n\nexport default ProfileInfo;\nProfileInfo.propTypes = {\n profile: PropTypes.object\n};\n","import styled from \"styled-components\";\n\nconst MarketingContainer = styled.div`\n padding-top: 2rem;\n @media only screen and (min-width: ${props => props.theme.tablet}) {\n padding-top: 5rem;\n button {\n margin-top: 1rem;\n }\n }\n h5 {\n margin-bottom: 1rem;\n }\n`;\n\nconst MarketingSection = styled.div`\n\tmargin-top: 2.4rem;\n\tpadding-top: 2.4rem;\n\tborder-top: ${props => props.theme.midGreyBorder};\n\n\t@media only screen and (min-width: ${props => props.theme.tablet}) {\n\t\tdisplay: flex;\n\t\t\n\t\t> div:first-of-type {\n\t\t\tflex: 2;\n\t\t}\n\n\t\t> div:last-of-type {\n\t\t\tflex: 1 1 37.5rem;\n\t\t\tpadding-right: 6rem;\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t@media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n\t\t> div:last-of-type {\n\t\t\tpadding-right: 10rem;\n\t\t}\n\t}\n`;\n\nexport { \n\tMarketingContainer, \n\tMarketingSection \n};\n","const toggleMarketingConsents = (channels, applications, values, name, toggled) => {\n\tlet channelsToggled = 0;\n\tlet productsToggled = 0;\n\tconst tmpValues = values;\n\n\t// count how many channels are toggled\n\tObject.keys(channels).forEach(key => {\n\t\tif (tmpValues[`channel-${key}`] === true) {\n\t\t\tchannelsToggled++;\n\t\t}\n\t});\n\n\t// count how many products are toggled\n\tfor (let i = 0; i < applications.length; i += 1) {\n\t\tif (tmpValues[`product-${applications[i].applicationCode}`] === true) {\n\t\t\tproductsToggled++;\n\t\t}\n\t}\n\n\t// if user toggles a channel\n\tif (name.startsWith(\"channel\")) {\n\t\tfor (let i = 0; i < applications.length; i += 1) {\n\t\t\t// if all channels are untoggled - untoggle all products\n\t\t\t// else if there is a one toggled channel that is the current toggled one, \n\t\t\t// but all products are untoggled - togggle all products\n\t\t\tif (channelsToggled === 0) {\n\t\t\t\ttmpValues[`product-${applications[i].applicationCode}`] = false;\n\t\t\t} else if (channelsToggled === 1 && toggled === true && productsToggled < applications.length) {\n\t\t\t\ttmpValues[`product-${applications[i].applicationCode}`] = true;\n\t\t\t\tproductsToggled++;\n\t\t\t}\n\t\t}\n\t}\n\n\t// if user toggles a product\n\tif (name.startsWith(\"product\")) {\n\t\tObject.keys(channels).forEach(key => {\n\t\t\t// if all products are untoggled - untoggle all channels\n\t\t\t// else if there is a one toggled product that is the current toggled one, \n\t\t\t// but all channels are untoggled - toggle all channels\n\t\t\tif (productsToggled === 0) {\n\t\t\t\ttmpValues[`channel-${key}`] = false;\n\t\t\t} else if (productsToggled === 1 && toggled === true && channelsToggled < Object.keys(channels).length) {\n\t\t\t\ttmpValues[`channel-${key}`] = true;\n\t\t\t\tchannelsToggled++;\n\t\t\t}\n\t\t});\n\t}\n\n\treturn tmpValues;\n}\n\nconst setCheckbox = (values, id, value) => {\n const tmpValues = values;\n\n tmpValues[id] = value;\n\n return tmpValues;\n};\n\n// sets all the checkboxes on the page when the component loads\nconst setAllGlobalConsents = (values, channels, applications, toggled = null) => {\n const tmpValues = values;\n\n // set the global values of channels\n for (let i = 0; i < applications.length; i += 1) {\n tmpValues[`product-${applications[i].applicationCode}`] = toggled !== null ? toggled : applications[i].isSubscribed;\n }\n\n\t // set the global values of products\n\tObject.entries(channels).forEach(([key, value]) => {\n\t\ttmpValues[`channel-${key}`] = toggled !== null ? toggled : value;\n\t})\n\n return tmpValues;\n};\n\nexport { \n\ttoggleMarketingConsents,\n\tsetCheckbox,\n\tsetAllGlobalConsents\n};\n","/* eslint-disable no-await-in-loop */\n// dependancys\nimport React, { useEffect, useState } from \"reactn\";\nimport PropTypes from \"prop-types\";\n\n// components\nimport { MarketingContainer, MarketingSection } from \"./Marketing.styled\";\nimport { InfoContainer } from \"../../../../_common/containers/containers.styled\";\nimport FormGroup from \"shared-anpost-components/components/form/form_group/FormGroup\";\nimport InputGroup from \"shared-anpost-components/components/form/input_group/InputGroup\";\nimport Checkbox from \"shared-anpost-components/components/form/checkbox/Checkbox\";\nimport CheckboxLabel from \"shared-anpost-components/components/form/checkbox/CheckboxLabel\";\nimport FieldError from \"shared-anpost-components/components/form/fieldError/FieldError\";\nimport Loader from \"shared-anpost-components/components/loader/Loader\";\nimport GlobalError from \"shared-anpost-components/components/globalError/GlobalError\";\nimport Error from \"../../../../_common/error/Error\";\n\n// APIs\nimport { updateMarketingConsents, getJWTInfo, updateProfilingConsent, getProfile } from \"../../../../../services/Api\";\n\n// hooks\nimport appHooks from \"../../../../../hooks/appHook\";\n\n// helpers\nimport { setCheckbox, setAllGlobalConsents, toggleMarketingConsents } from \"./Marketing.helpers\";\n\nconst Marketing = ({ marketingConsents, refreshGlobalVals }) => {\n const [loader, setLoader] = useState(false);\n const [apiError, setApiError] = useState(false);\n\n const validate = () => {\n return {};\n };\n const { values, errors } = appHooks(validate);\n\n const closeFunc = () => {\n setApiError(false);\n };\n\n const handleMarketingConsentUpdate = (event, displayText) => {\n const { name, checked } = event.target;\n\t\tconst { applications, channels } = marketingConsents;\n\n\t\tconst tmpValues = setCheckbox(values, name, checked);\n\t\trefreshGlobalVals(tmpValues);\n\t\t\n\t\tif (name !== \"updateAllMarketingConsents\") {\n\t\t\t// if the checked checkbox is different than opt out in for all and profiling\n\t\t\t// and opt in for all has been previously checked - uncheck it\n\t\t\tif (name !== \"anpost_profiling\" && values.updateAllMarketingConsents === true)\tvalues.updateAllMarketingConsents = false;\n\n\t\t\t// if checkbox is for profiling toggle only that value\n\t\t\t// else toggle other checkboxes based on toggle values\n\t\t\tif (name === \"anpost_profiling\") {\n\t\t\t\tvalues[\"anpost_profiling\"] = checked;\n\t\t\t\trefreshGlobalVals(values);\n\t\t\t} else {\n\t\t\t\tconst tmpValues = toggleMarketingConsents(channels, applications, values, name, checked);\n\t\t\t\trefreshGlobalVals(tmpValues);\n\t\t\t}\n\t\t} \n\n\t\t// if opt in for all has just been toggled, toggle the other checkboxes with the appropriate value\n\t\tif (name === \"updateAllMarketingConsents\") {\n\t\t\tconst tmpValues = setAllGlobalConsents(values, marketingConsents.channels, marketingConsents.applications, checked);\n\t\t\trefreshGlobalVals(tmpValues);\n\t\t}\n\n\t\tsubmitConsents(name);\t\n\t\t\n\t\twindow.dataLayer.push({\n\t\t\tevent: \"marketingPreferenceToggles\",\n \t\t\ttoggleSelected: `${displayText} - ${checked === true ? \"opt in\" : \"opt out\"}`\n\t\t});\n };\n\n\tconst submitConsents = async (name) => {\n lockMarketingConsents();\n\n\t\tname === \"anpost_profiling\" ? await submitProfilingConsent() : await updateConsentPromise();\n };\n\n\tconst updateConsentPromise = () => {\n\t\tsetLoader(true);\n\n return new Promise(resolve => {\n\t\t\tconst applications = marketingConsents.applications.map(consent => {\n\t\t\t\treturn {\n\t\t\t\t\tapplicationCode: consent.applicationCode,\n\t\t\t\t\tisSubscribed: values[`product-${consent.applicationCode}`]\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tlet channels = {};\n\t\t\tObject.keys(marketingConsents.channels).forEach(key => {\n\t\t\t\tchannels[key] = values[`channel-${key}`];\n\t\t\t});\n\t\t\t\n\t\t\t// set the values to pass to the API\n\t\t\tconst data = {\n\t\t\t\tUID: values.ciamUserId,\n\t\t\t\tapplications,\n\t\t\t\tchannels\n\t\t\t};\n\t\n\t\t\t// call the update maketing API\n\t\t\tgetJWTInfo().then(() => {\n\t\t\t\tupdateMarketingConsents(data)\n\t\t\t\t\t.then(res => {\n\t\t\t\t\t\tif (res.status === 200) {\n\t\t\t\t\t\t\tgetProfile(values.ciamUserId).then(res => {\n\t\t\t\t\t\t\t\tif (res.status === 200) {\n\t\t\t\t\t\t\t\t\tsessionStorage.setItem(\"userProfile\", JSON.stringify(res.data));\n\t\t\t\t\t\t\t\t\tsetLoader(false);\n\t\t\t\t\t\t\t\t\tresolve();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsetApiError(true);\n\t\t\t\t\t\t\tsetLoader(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.catch(() => {\n\t\t\t\t\t\tsetApiError(true);\n\t\t\t\t\t\tsetLoader(false);\n\t\t\t\t\t});\n\t\t\t});\n });\n };\n\n\tconst submitProfilingConsent = () => {\n\t\tsetLoader(true);\n\n\t\treturn new Promise(resolve => {\n\t\t\t// set the values to pass to the API\n\t\t\tconst data = {\n\t\t\t\tUID: values.ciamUserId,\n\t\t\t\tconsentCode: \"anpost_profiling\",\n\t\t\t\tisConsentGranted: values[\"anpost_profiling\"]\n\t\t\t};\n\t\n\t\t\t// call the update maketing API\n\t\t\tgetJWTInfo().then(() => {\n\t\t\t\tupdateProfilingConsent(data)\n\t\t\t\t\t.then(res => {\n\t\t\t\t\t\tif (res.status === 200) {\n\t\t\t\t\t\t\tgetProfile(values.ciamUserId).then(res => {\n\t\t\t\t\t\t\t\tif (res.status === 200) {\n\t\t\t\t\t\t\t\t\tsessionStorage.setItem(\"userProfile\", JSON.stringify(res.data));\n\t\t\t\t\t\t\t\t\tsetLoader(false);\n\t\t\t\t\t\t\t\t\tresolve();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsetApiError(true);\n\t\t\t\t\t\t\tsetLoader(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.catch(() => {\n\t\t\t\t\t\tsetApiError(true);\n\t\t\t\t\t\tsetLoader(false);\n\t\t\t\t\t});\n\t\t\t});\n });\n };\n\n // this sets a localStorage value so as to not prompt the user for marketing consents again throughout the product flows\n // They have now updated their marketing consents more than once so shouldn't see them again\n const lockMarketingConsents = () => {\n localStorage.setItem(`ciam-marketing-complete-${values.ciamUserId}`, true);\n };\n\n const checkboxElement = (displayText, value, id) => {\n\t\t// don't show My Account as product\n\t\tif (id === \"product-anpost_myaccount\") return;\n\n\t\tconst checkboxText = displayText === \"Push\" ? \"App notifications\" : displayText === \"Sms\" ? \"SMS\" : displayText;\n\n return (\n \n \n\t\t\t\t\t {\n\t\t\t\t\t\t\thandleMarketingConsentUpdate(e, displayText);\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tvalue={values[id] || value} \n\t\t\t\t\t\tchecked={values[id] ? true : false} \n\t\t\t\t\t\trequired\n\t\t\t\t\t/>\n\t\t\t\t\t{checkboxText}{values[id] == true ? \"Yes\" : \"No\"}} \n\t\t\t\t\t/>\n \n {errors[id] && }\n \n );\n };\n\n return (\n <>\n {loader && }\n {apiError && }\n \n <>\n {Object.keys(marketingConsents).length === 0 && (\n \n )}\n \n

    An Post

    \n

    \n We would like to let you know about products, services and special offers from the An Post Group of Companies, that we think may be of interest to you, make your life\n\t\t\t\t\t\t\teasier or be of value to you. If you would like to receive these communications please indicate below:\n

    \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t
    Channels
    \n\t\t\t\t\t\t\t\t

    \n\t\t\t\t\t\t\t\t\tSelect the channels you are interested in for which we can reach out to you:\n\t\t\t\t\t\t\t\t

    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t{Object.keys(marketingConsents.channels).length > 0\n\t\t\t\t\t\t\t\t&& Object.keys(marketingConsents.channels).map(key => {\n return checkboxElement(key.charAt(0).toUpperCase() + key.slice(1), values[`channel-${key}`], `channel-${key}`)\n \t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t
    Products
    \n\t\t\t\t\t\t\t\t

    \n\t\t\t\t\t\t\t\t\tSelect the products you are interested in for which we can reach out to you:\n\t\t\t\t\t\t\t\t

    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t{marketingConsents.applications.length > 0 && marketingConsents.applications.map(consent => {\n return checkboxElement(consent.applicationName, values[`product-${consent.applicationCode}`], `product-${consent.applicationCode}`)\n \t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t
    All Marketing
    \n\t\t\t\t\t\t\t\t

    \n\t\t\t\t\t\t\t\t\tWe may still send you important notifications about your account outside of your notification settings.\n\t\t\t\t\t\t\t\t

    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
    \n {checkboxElement(\"Opt in for all marketing\", false, \"updateAllMarketingConsents\")}\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t
    Profiling
    \n\t\t\t\t\t\t\t\t

    \n\t\t\t\t\t\t\t\tProfiling is any kind of automated processing of personal data that involves analysing or predicting your behaviour, habits or interests.\n\t\t\t\t\t\t\t\t

    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
    \n {checkboxElement(\"Opt in for profiling\", values[\"anpost_profiling\"], \"anpost_profiling\")}\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t
    \n
    \n \n
    \n \n );\n};\n\nexport default Marketing;\nMarketing.propTypes = {\n marketingConsents: PropTypes.object,\n refreshGlobalVals: PropTypes.func,\n setGlobalValue: PropTypes.func\n};\n","// dependancys\nimport React, { useState, useEffect, useGlobal} from \"reactn\";\n\n// components\nimport Loader from \"shared-anpost-components/components/loader/Loader\";\nimport GlobalError from \"shared-anpost-components/components/globalError/GlobalError\";\nimport { TabsWrapper, Tab } from \"../../_common/form/tabs/Tabs.styled\";\nimport ProfileInfo from \"./_sections/_profileInfo/ProfileInfo\";\nimport Marketing from \"./_sections/_marketing/Marketing\";\nimport Error from \"../../_common/error/Error\";\n\n// API\nimport { getProfile, getJWTInfo } from \"../../../services/Api\";\n\n// hooks\nimport profileHooks from \"../../../hooks/profileHooks\";\n\n// helpers\nimport { setAllGlobalConsents } from \"./_sections/_marketing/Marketing.helpers\";\n\nconst Profile = ({ profileTab }) => {\n const { values, refreshGlobalVals, setGlobalValue } = profileHooks();\n\n const [loader, setLoader] = useState(true);\n const [apiError, setApiError] = useState(false);\n\n const [profileData, setProfileData] = useState({});\n const [consents, setConsents] = useState({});\n const [marketingConsents, setMarketingConsents] = useState({});\n\tconst [consentProfiling, setConsentProfiling] = useState(null);\n const [currentProfileTab, setCurrentProfileTab] = useState(profileTab);\n const [isBusiness, setIsBusiness] = useGlobal(\"isBusiness\");\n const [userProfile, setuserProfile] = useGlobal(\"userProfile\");\n const [showBusinessBanner, setShowBusinessBanner] = useGlobal(\"businessBanner\");\n const [isAnPostApp] = useGlobal(\"isAnPostApp\");\n\n const closeFunc = () => {\n setApiError(false);\n };\n\n const setProfileCallback = (profileData, callback) => {\n setProfileData(profileData);\n\n // set consents\n setConsents(profileData.consents);\n setMarketingConsents(profileData.marketing);\n const profiling = profileData.consents.filter(obj => {\n return obj.consentCode === 'anpost_profiling';\n });\n\n setConsentProfiling(profiling.length > 0 ? profiling[0].isConsentGranted : true);\n setLoader(false);\n if (callback) {\n callback(profileData.profile.firstName || profileData.email);\n }\n };\n\n const getProfileInfo = (UID, callback) => {\n setLoader(true);\n getJWTInfo().then(() => {\n const profileData = JSON.parse(sessionStorage.getItem(\"userProfile\"));\n if (profileData && profileData.uid) {\n setProfileCallback(profileData, callback);\n } else {\n getProfile(UID).then(res => {\n if (res.status === 200) {\n setProfileCallback(res.data, callback);\n } else {\n setApiError(true);\n setLoader(false);\n }\n }); \n }\n });\n };\n\n // for dev purposes, when developing locally\n useEffect(() => {\n\n window.marketingUpdated = {};\n\n // if dev mode or the user is alreadey logged in\n if (window.apDevMode || values.loggedIn) {\n getProfileInfo(values.ciamUserId);\n }\n }, []);\n\n\tuseEffect(() => {\n\t\t// set values for marketing consents here to keep them between tabs\n\t\tif (Object.keys(marketingConsents).length > 0 && consentProfiling !== null) {\n\t\t\tconst tmpValues = setAllGlobalConsents(values, marketingConsents.channels, marketingConsents.applications);\n\t\t\ttmpValues[\"anpost_profiling\"] = consentProfiling;\n\t\t\trefreshGlobalVals(tmpValues);\n\t\t}\n\t}, [marketingConsents, consentProfiling])\n\n // checks to show business banner or not\n useEffect(() => {\n const profileData = JSON.parse(sessionStorage.getItem(\"userProfile\"));\n !userProfile && setuserProfile(profileData);\n if (userProfile?.profile?.business?.name || profileData?.profile?.business?.name) {\n setShowBusinessBanner(false);\n }\n }, [userProfile, isBusiness]);\n\n return (\n <>\n {loader && }\n {apiError && }\n {!loader && (\n <>\n

    Profile and settings

    \n {!values.loggedIn && }\n {values.loggedIn && (\n <>\n {!isAnPostApp && (\n \n {\n e.preventDefault();\n setCurrentProfileTab(\"profile\");\n }}\n style={{paddingBottom: \"1.6rem\"}}\n >\n Your details\n \n {(marketingConsents.length > 0 || consents.length > 0) && (\n {\n e.preventDefault();\n setCurrentProfileTab(\"marketing\");\n }}\n style={{paddingBottom: \"1.6rem\"}}\n >\n Marketing preferences\n \n )}\n \n )}\n {(!currentProfileTab || currentProfileTab === \"profile\") && }\n {currentProfileTab === \"marketing\" && (\n \n )}\n \n )}\n \n )}\n \n );\n};\n\nexport default Profile;\nProfile.propTypes = {};\n","import styled from \"styled-components\";\n\nexport const BasketContainer = styled.section`\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\theight: 100%;\n\n\th5 {\n\t\tmargin-bottom: 1.6rem;\n\n\t\t@media only screen and (min-width: ${props => props.theme.desktop}) {\n\t\t\tmargin-bottom: 2.4rem;\n\t\t}\n\t}\n\n\t[role=\"tablist\"] {\n\t\theight: 100%;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t}\n`;\n\nexport const BasketHeader = styled.div`\n\tbackground-color: ${props => props.theme.darkerGreen};\n\tpadding-left: 2.4rem;\n\tpadding-right: 2.4rem;\n\tborder-top-left-radius: 0.5rem;\n\tborder-top-right-radius: 0.5rem;\n\n\tspan {\n\t\tborder-radius: 0.5rem;\n\t\tpadding: 0.2rem 0.8rem;\n\t\tbackground-color: ${props => props.theme.mintGreen};\n\t\tcolor: ${props => props.theme.darkGreen};\n\t\tmargin-left: 1.6rem;\n\t}\n\n\tbutton {\n\t\tcolor: #ffffff70;\n\t\tfont-size: 1.4rem;\n\t\tpadding: 1.6rem 0;\n\t\tfont-weight: 900;\n\n\t\t&[aria-selected='true'] {\n\t\t\tcolor: ${props => props.theme.white};\n\t\t\tposition: relative;\n\n\t\t\t&:after {\n\t\t\t\tcontent: \"\";\n\t\t\t\tposition: absolute;\n\t\t\t\tborder-bottom: 0.2rem solid ${props => props.theme.darkYellow};\n\t\t\t\twidth: 100%;\n\t\t\t\tbottom: 0;\n\t\t\t\tleft: 0;\n\t\t\t}\n\n\t\t\tspan {\n\t\t\t\tbackground-color: ${props => props.theme.darkYellow};\n\t\t\t\tcolor: ${props => props.theme.black};\n\t\t\t}\n\t\t}\n\n\t\t&:not(:first-child) {\n\t\t\tmargin-left: 4.8rem;\n\n\t\t\t@media only screen and (min-width: ${props => props.theme.desktop}) {\n\t\t\t\tmargin-left: 6.4rem;\n\t\t\t}\n\t\t}\n\n\t\t@media only screen and (min-width: ${props => props.theme.desktop}) {\n\t\t\tfont-size: 1.8rem;\n\t\t\tpadding: 1.6rem;\n\t\t}\n\t}\n`;\n\nexport const BasketPanel = styled.div`\n\tdisplay: block;\n\toverflow-y: auto;\n\tborder: ${props => props.theme.midGreyBorder};\n\tborder-bottom-left-radius: 0.5rem;\n\tborder-bottom-right-radius: 0.5rem;\n\tflex-grow: 1;\n\tmax-height: 60rem;\n\n\t&.basket-summary-shop-panel {\n\t\ttable {\n\t\t\ttr {\n\t\t\t\t&:nth-last-child(2) {\n\t\t\t\t\tborder: none;\n\n\t\t\t\t\ttd {\n\t\t\t\t\t\tpadding-bottom: 0.5rem;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t&:last-child {\n\t\t\t\t\ttd {\n\t\t\t\t\t\tpadding-top: 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\ttable {\n\t\tpadding: 2.4rem;\n\t\twidth: 100%;\n\t\tdisplay: block;\n\t\toverflow-y: auto;\n\t\tmargin: 0;\n\n\t\tthead {\n\t\t\ttr {\n\t\t\t\tborder: none;\n\t\t\t}\n\n\t\t\tth {\n\t\t\t\tpadding-top: 0;\n\t\t\t\tpadding-bottom: 0.8rem;\n\n\t\t\t\t:nth-of-type(2) {\n\t\t\t\t\ttext-align: right;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttr {\n\t\t\tborder-color: #CFD0CF !important;\n\t\t\ttable-layout: fixed;\n\t\t\twidth: 100%;\n\t\t\tdisplay: table;\n\t\t\tborder-top: none;\n\n\t\t\t&:last-child {\n\t\t\t\tborder: none;\n\t\t\t}\n\t\t\t\n\t\t\ttd:nth-child(2) {\n\t\t\t\ttext-align: right;\n\t\t\t}\n\t\t}\n\n\t\ttr, td {\n\t\t\tbackground-color: transparent !important;\n\t\t}\n\n\t\tth, td {\n\t\t\twidth: auto !important;\n\t\t\theight: auto !important;\n\t\t\tpadding: 0.8rem 0;\n\n\t\t\t&:after {\n\t\t\t\tcontent: none !important;\n\t\t\t}\n\n\t\t\t&:last-child {\n\t\t\t\ttext-align: right;\n\t\t\t\tpadding-right: 0;\n\t\t\t}\n\n\t\t\t@media only screen and (min-width: ${props => props.theme.desktop}) {\n\t\t\t\tpadding-top: 1.6rem;\n\t\t\t\tpadding-bottom: 1.6rem;\n\t\t\t\tpadding-right: 1.6rem;\n\t\t\t}\n\t\t}\n\t}\n`;\n\n\nexport const BasketTotal = styled.div`\n\tborder-top: ${props => props.theme.midGreyBorder};\n\tborder-bottom: ${props => props.theme.midGreyBorder};\n\tpadding: 2.4rem;\n\n\tspan {\n\t\tfont-size: 1.8rem;\n\t\tfont-weight: 700;\n\t\tborder-bottom: none;\n\t\tfont-family: ${props => props.theme.fontBold};\n\t}\n\n\tdiv {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t}\n\n\t@media only screen and (max-width: 1199px) {\n\t\tpadding-bottom: 0;\n\t}\n\n\t.bn {\n\t\twidth: 100%;\n\t\tmargin-top: 2.4rem;\n\t}\n`;\n\nexport const BasketEmpty = styled.div`\n\tpadding-top: 2.4rem;\n\n\t> div {\n\t\tborder-bottom: ${props => props.theme.midGreyBorder};\n\t\tpadding-right: 2.4rem;\n\t\tpadding-left: 2.4rem;\n\t\tpadding-bottom: 2rem;\n\n\t\t> p {\n\t\t\tfont-size: 1.8rem;\n\t\t\tfont-weight: 700;\n\t\t\tborder-bottom: none;\n\t\t\tfont-family: ${props => props.theme.fontBold};\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t}\n\n\tul {\n\t\tmargin-bottom: 0;\n\t\tpadding-left: 0;\n\n\t\tli {\n\t\t\tmargin: 0.6rem 0;\n\t\t\t\n\t\t\t&:before {\n\t\t\t\tcontent: none;\n\t\t\t}\n\n\t\t\ta {\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t> .bn {\n\t\tmargin-left: 2.4rem;\n\t\tmargin-right: 2.4rem;\n\t\tmargin-top: 2.4rem;\n\t\twidth: calc(100% - 4.8rem);\n\t}\n`;\n","import React, { useState, useEffect } from \"reactn\";\nimport PropTypes from \"prop-types\";\n\nimport { getShopBasket, getCapBasketSummary } from \"../../../../services/Api\";\nimport { getCookie } from \"../../../../helpers/Helpers\";\n\nimport { BasketContainer, BasketHeader, BasketPanel, BasketTotal, BasketEmpty } from \"./BasketSummary.styled\";\n\nconst BasketTotalRow = ({ totalPrice, basketUrl }) => (\n \n
    \n Total\n \n {totalPrice}\n \n
    \n \n View basket\n \n
    \n);\n\nBasketTotalRow.propTypes = {\n totalPrice: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n basketUrl: PropTypes.string\n};\n\nconst EmptyCAPBasket = () => (\n \n
    \n

    Your basket is empty.

    \n

    Go to:

    \n \n
    \n \n Go to Click & Post\n \n
    \n);\n\nconst EmptyShopBasket = () => (\n \n
    \n

    Your basket is empty.

    \n

    Shop our:

    \n \n
    \n \n Go to Shop\n \n
    \n);\n\nconst BasketSummary = ({ containerNode }) => {\n const [openPanel, setOpenPanel] = useState(\"cap\");\n const [shopBasketData, setShopBasketData] = useState(null);\n const [capBasketData, setCapBasketData] = useState(null);\n\n const onTabClick = selectedPanel => {\n setOpenPanel(selectedPanel);\n };\n\n const calculateTotalItemPrice = (price, units) => {\n const totalPriceFixed = (price * units).toFixed(2);\n return `€${totalPriceFixed}`;\n };\n\n const getCapBasketItemCount = serviceType => {\n return capBasketData.services.find(item => item.service.contains(serviceType))?.count || 0;\n };\n\n const getCapBasketItemPrice = serviceType => {\n const itemPrice = capBasketData.services.find(item => item.service.contains(serviceType))?.amount || 0;\n return `€${itemPrice.toFixed(2)}`;\n };\n\n useEffect(() => {\n const shopBasketRef = getCookie(\"CMSShoppingCart\");\n const userIdCookie = getCookie(\"CIAMCustomerID\");\n const capBasketRefCookie = getCookie(\"ClickPostBasketReference\");\n\n if (shopBasketRef) {\n getShopBasket()\n .then(res => {\n if (res.status === 200 && res.data?.cart) {\n if (res.data?.cart?.cartItems.length > 0) {\n setShopBasketData(res.data.cart);\n }\n }\n })\n .catch(err => {\n console.log(err);\n });\n }\n\n if (capBasketRefCookie) {\n getCapBasketSummary(userIdCookie)\n .then(res => {\n if (res.status === 200 && res.data) {\n setCapBasketData(res.data);\n }\n })\n .catch(() => {\n setOpenPanel(\"shop\");\n });\n }\n }, []);\n\n useEffect(() => {\n if (shopBasketData || capBasketData) {\n containerNode.parentElement.classList.add(\"m124__split\", \"m124__split--basket\");\n } else {\n containerNode.parentElement.classList.remove(\"m124__split\", \"m124__split--basket\");\n }\n }, [shopBasketData, capBasketData]);\n\n return (\n <>\n {(shopBasketData || capBasketData) && (\n \n
    My baskets
    \n
    \n \n \n \n \n {openPanel === \"cap\" ? (\n \n {capBasketData ? (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    ItemQtyPrice
    Postage labels\n {getCapBasketItemCount(\"Mails\")}\n \n {getCapBasketItemPrice(\"Mails\")}\n
    Shopping returns\n {getCapBasketItemCount(\"Returns\")}\n \n {getCapBasketItemPrice(\"Returns\")}\n
    Sub-total\n \n {capBasketData.totalAmount.toFixed(2)}\n
    \n \n \n ) : (\n \n )}\n
    \n ) : (\n \n {shopBasketData ? (\n <>\n \n \n \n \n \n \n \n \n \n {shopBasketData.cartItems.map((item, i) => (\n \n \n \n \n \n ))}\n \n \n \n \n \n \n \n \n {parseFloat(shopBasketData.discountPrice.replace(\"€\", \"\")) > 0 && (\n \n \n \n \n )}\n \n
    ItemQtyPrice
    {item.name}{item.quantity}{calculateTotalItemPrice(item.unitPrice, item.quantity)}
    Sub-total\n {shopBasketData.subtotalPrice}\n
    Shipping\n {shopBasketData.shippingPrice}\n
    Discount\n {shopBasketData.discountPrice}\n
    \n \n \n ) : (\n \n )}\n
    \n )}\n
    \n
    \n )}\n \n );\n};\n\nexport default BasketSummary;\n\nBasketSummary.propTypes = {\n containerNode: PropTypes.instanceOf(Element)\n};\n","import styled, { css } from \"styled-components\";\n\nconst Tablist = styled.div`\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n border: ${props => props.theme.midGreyBorder};\n margin-bottom: 4.5rem;\n margin-top: 1.6rem;\n\n @media only screen and (min-width: ${props => props.theme.desktop}) {\n margin-top: 2.4rem;\n }\n`;\n\nconst TablistHeader = styled.div`\n background-color: ${props => (!props.emptyItems && props.isBusiness ? props.theme.teal : props.theme.greenDark)};\n ${props => {\n return (\n props.emptyItems &&\n css`\n background-color: ${props.theme.darkerGrey};\n `\n );\n }}\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n border-top-left-radius: 0.5rem;\n border-top-right-radius: 0.5rem;\n\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n padding-left: 2.4rem;\n padding-right: 2.4rem;\n }\n`;\n\nconst TablistContent = styled.div`\n min-height: 270px;\n display: flex;\n flex-direction: column;\n position: relative;\n`;\n\nconst TabButton = styled.button`\n color: #ffffff70;\n font-size: 1.4rem;\n font-weight: 700;\n padding: 1.6rem 0;\n\n > span {\n border-radius: 0.5rem;\n padding: 0.2rem 0.8rem;\n background-color: ${props => props.theme.mintGreen};\n color: ${props => props.theme.darkGreen};\n margin-left: 1.6rem;\n }\n\n &[aria-selected=\"true\"] {\n color: ${props => props.theme.white};\n position: relative;\n\n &:after {\n content: \"\";\n position: absolute;\n border-bottom: 0.2rem solid ${props => (props.isBusiness ? props.theme.iceBlue : props.theme.darkYellow)};\n width: 100%;\n bottom: 0;\n left: 0;\n }\n\n > span {\n background-color: ${props => (props.isBusiness ? props.theme.iceBlue : props.theme.darkYellow)};\n color: ${props => props.theme.black};\n }\n }\n\n &:not(:first-child) {\n margin-left: 4.8rem;\n\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n margin-left: 6.4rem;\n }\n }\n\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n font-size: 1.8rem;\n padding: 1.6rem;\n }\n`;\n\nexport { Tablist, TablistHeader, TablistContent, TabButton };\n","import styled from \"styled-components\";\n\nconst DeliveryStatusLabelStyled = styled.div`\n color: ${props => props.theme.black};\n align-self: flex-start;\n\n\tspan {\n\t\tdisplay: inline;\n\t\tbackground-color: ${props => props.theme.lightBlue2};\n\t\tpadding: 0.6rem 0.8rem;\n\t\tfont-size: 1.2rem;\n\t\tfont-weight: 400;\n \tborder-radius: 0.5rem;\n\t\tpadding-left: 2.4rem;\n\t\tposition: relative;\n\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\twidth: 1rem;\n\t\t\theight: 1rem;\n\t\t\tborder-radius: 0.5rem;\n\t\t\tleft: 0.8rem;\n\t\t\ttop: 0.8rem;\n\t\t\tbackground-color: ${props => props.theme.blue};\n \t\t }\n\t}\n\n &.orange {\n\t\tspan {\n \tbackground-color: ${props => props.theme.lightOrange};\n\n\t\t\t&:before {\n \tbackground-color: ${props => props.theme.orange};\n \t}\n\t\t}\n }\n\n &.green {\n\t\tspan {\n \tbackground-color: ${props => props.theme.lightGreen2};\n\n\t\t\t&:before {\n \t \tbackground-color: ${props => props.theme.green};\n \t}\n\t\t}\n }\n\n &.red {\n\t\tspan {\n \tbackground-color: ${props => props.theme.lightRed};\n\n\t\t\t&:before {\n \tbackground-color: ${props => props.theme.red};\n \t}\n\t\t}\n }\n\n &.gold {\n\t\tspan {\n \tbackground-color: ${props => props.theme.lightGold};\n\n\t\t\t&:before {\n \tbackground-color: ${props => props.theme.gold};\n \t}\n\t\t}\n }\n`;\n\nexport default DeliveryStatusLabelStyled;\n","// dependancies\nimport React from \"reactn\";\nimport PropTypes from \"prop-types\";\nimport DeliveryStatusLabelStyled from \"./DeliveryStatusLabel.styled\";\n\nconst DeliveryStatusLabel = ({ status, classes }) => {\n\tconst getDeliveryStatusInfo = status => {\n switch (status) {\n case \"0\":\n return {\n labelText: \"In Transit\",\n statusClass: \"orange\"\n }\n case \"1\":\n return {\n labelText: \"Customs\",\n statusClass: \"gold\"\n }\n case \"2\":\n return {\n labelText: \"Accepted\",\n statusClass: \"blue\"\n }\n case \"3\":\n return {\n labelText: \"Sorting\",\n statusClass: \"orange\"\n }\n case \"4\":\n return {\n labelText: \"Delivered\",\n statusClass: \"green\"\n }\n case \"5\":\n return {\n labelText: \"Not delivered\",\n statusClass: \"red\"\n }\n case \"6\":\n return {\n labelText: \"Return to sender\",\n statusClass: \"blue\"\n }\n case \"7\":\n return {\n labelText: \"Info received\",\n statusClass: \"blue\"\n }\n default:\n return {\n labelText: \"\",\n statusClass: \"\"\n }\n }\n };\n\t\n\tconst { labelText } = getDeliveryStatusInfo(status);\n\treturn \n\t\t{labelText}\n\t;\n};\n\nDeliveryStatusLabel.propTypes = {\n\tstatus: PropTypes.string\n};\n\nexport default DeliveryStatusLabel;\n","import styled from \"styled-components\";\n\nconst DeliveryItemsGridStyled = styled.div`\n width: 100%;\n`;\n\nconst DeliveryItemsGridWrapperStyled = styled.div`\n > .cta-link {\n margin: 1.6rem;\n display: inline-block;\n\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n margin: 1.6rem 3.2rem;\n }\n }\n`;\n\nconst DeliveryItemsGridHeadersStyled = styled.div`\n display: none;\n font-weight: 700;\n font-size: 1.3rem;\n border-bottom: 1px solid #cfd0cf;\n\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n font-size: 1.4rem;\n padding: 1.6rem 3.2rem;\n display: flex;\n\n > div {\n flex: 2;\n\n &:first-of-type {\n width: 12rem;\n flex: initial;\n margin-right: 1.6rem;\n }\n\n &:last-of-type {\n flex: 4;\n }\n }\n }\n`;\n\nconst DeliveryItemsLinkStyled = styled.div`\n display: flex;\n justify-content: space-between;\n cursor: pointer;\n\n @media only screen and (max-width: ${props => props.theme.upToSmallDesktop}) {\n flex-direction: column;\n border-bottom: 1px solid ${props => props.theme.mintGreen};\n\n &:nth-of-type(even) {\n background-color: ${props => (props.isBusiness ? \"#FAFFFE\" : \"#FAFFF5\")};\n }\n }\n\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n padding: 1.6rem 3.2rem;\n border-bottom: 1px solid #cfd0cf;\n\n &:nth-of-type(even) {\n background-color: ${props => (props.isBusiness ? \"#FAFFFE\" : \"#FAFFF5\")};\n }\n\n .mobileHeading {\n display: none;\n }\n\n &:last-of-type {\n border-bottom: none;\n }\n }\n\n .subTitle {\n font-size: 1.4rem;\n }\n\n .orderNumber {\n font-size: 1.6rem;\n font-weight: 700;\n\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n font-size: 2rem;\n }\n }\n\n .listCta {\n font-size: 1.4rem;\n\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n font-size: 1.6rem;\n text-align: right;\n }\n }\n`;\n\nconst DeliveryItemsColStyled = styled.div`\n font-weight: 700;\n flex: 2;\n\n @media only screen and (max-width: ${props => props.theme.upToSmallDesktop}) {\n .mobileHeading {\n flex: 1;\n }\n\n > div:not(.mobileHeading) {\n flex: 2;\n text-align: left;\n }\n\n border-bottom: 1px solid ${props => props.theme.lightGray};\n\n &:last-child {\n border-bottom: none;\n }\n }\n\n @media only screen and (max-width: ${props => props.theme.upToSmallDesktop}) {\n display: flex;\n justify-content: space-between;\n padding: 1.2rem 1.6rem;\n }\n\n &:first-of-type {\n flex: 1;\n\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n flex: initial;\n width: 12rem;\n margin-right: 1.6rem;\n }\n }\n`;\n\nexport { DeliveryItemsGridStyled, DeliveryItemsGridWrapperStyled, DeliveryItemsGridHeadersStyled, DeliveryItemsLinkStyled, DeliveryItemsColStyled };\n","import styled, { css } from \"styled-components\";\n\nconst NoItemsCTAStyled = styled.div`\n width: 100%;\n height: auto;\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: ${props => props.activeTab === \"receiving\" ? \"space-between\" : \"flex-start\"};\n align-items: center;\n padding: 3.2rem 1.6rem;\n\n\t@media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n height: 23rem;\n\t\tpadding: 0 3.2rem;\n flex-direction: row;\n }\n\n p {\n font-size: 2.2rem;\n margin-bottom: 0;\n font-family: ${props => props.theme.fontBold};\n margin-bottom: 3.2rem;\n\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n margin-right: 10rem;\n margin-bottom: 0;\n font-size: 2.6rem;\n }\n }\n\n .cta__buttons {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n gap: 2.4rem;\n width: 100%;\n\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n flex-direction: row;\n width: auto;\n }\n\n a {\n width: 100%;\n\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n width: auto;\n }\n }\n\n\n .btn {\n\n &--sending {\n color: #ffffff;\n border: 1px solid ${props => props.isBusiness ? props.theme.teal : props.theme.heritageGreen};\n background-color: ${props => props.isBusiness ? props.theme.teal : props.theme.heritageGreen};\n\n &:hover {\n background-color: ${props => props.isBusiness ? props.theme.lightTeal : props.theme.darkerGreen};\n border-color: ${props => props.isBusiness ? props.theme.lightTeal : props.theme.darkerGreen};\n }\n }\n\n &--return {\n background-color: transparent;\n color: #1B1E1C;\n border: 1px solid ${props => props.isBusiness ? props.theme.teal : props.theme.limeGreen};\n\n &:hover {\n border-color: ${props => props.isBusiness ? props.theme.lightTeal : props.theme.darkLimeGreen};\n }\n }\n }\n }\n`;\n\nexport { NoItemsCTAStyled };","import React, { useEffect, useGlobal, useState } from \"reactn\";\nimport PropTypes from \"prop-types\";\nimport { NoItemsCTAStyled } from \"./NoItemsCTAStyled.styled\";\n\nconst NoItemsCTA = ({ activeTab, noItemsMsg }) => {\n const baseUrl = window.location.origin;\n const [isBusiness, setIsBusiness] = useGlobal(\"isBusiness\");\n const [msgText, setMsgText] = useState([]);\n\n // split message to new line\n const splitTextToNewLine = (msg) => {\n const splitMsg = msg.split(\".\");\n const newMsg = splitMsg.filter(item => item.trim() !== \"\");\n setMsgText(newMsg);\n }\n\n useEffect(() => {\n splitTextToNewLine(noItemsMsg);\n }, [noItemsMsg]);\n\n return (\n \n
    \n {msgText && msgText.map((message, i) =>

    {message}.

    )}\n
    \n {(activeTab === \"sending\" || activeTab === \"\") && (\n \n )}\n {(activeTab === \"receiving\") && (\n \n )}\n
    \n );\n};\n\nexport default NoItemsCTA;\n\nNoItemsCTA.propTypes = {\n activeTab: PropTypes.string,\n noItemsMsg: PropTypes.string\n};\n","import React, { useEffect, useState, useGlobal } from \"reactn\";\nimport PropTypes from \"prop-types\";\nimport DeliveryStatusLabel from \"../../deliveryStatusLabel/DeliveryStatusLabel\";\nimport { DeliveryItemsGridStyled, DeliveryItemsGridWrapperStyled, DeliveryItemsGridHeadersStyled, DeliveryItemsLinkStyled, DeliveryItemsColStyled } from \"./DeliveryItemsGrid.styled\";\nimport NoItemsCTA from \"../NoItemsMessage/NoItemsCTA\";\n\nconst DeliveryItemsGrid = ({ data, noItemsMsg, role, id, ariaLabelledby, activeTab }) => {\n const [itemsToShow, setItemsToShow] = useState(0);\n const [isBusiness, setIsBusiness] = useGlobal(\"isBusiness\");\n\n useEffect(() => {\n setItemsToShow(data.length > 3 ? 3 : data.length);\n }, [data]);\n\n // Capitalise the first letter of each word supplied\n const capitaliseFirstLetters = str => {\n if (!str) return \"\";\n if (!str.trim()) return \"\";\n const updatedStr = str\n .trim()\n .toLowerCase()\n .split(\" \");\n\n for (let i = 0, x = updatedStr.length; i < x; i += 1) {\n if (updatedStr[i][0]) {\n updatedStr[i] = updatedStr[i][0].toUpperCase() + updatedStr[i].substr(1);\n }\n }\n\n return updatedStr.join(\" \");\n };\n\n const formatTrackingNumber = string => {\n return string.length === 13 ? `${string.substr(0, 2)} ${string.substr(2, 3)} ${string.substr(5, 3)} ${string.substr(8, 3)} ${string.substr(11, 3)}` : string;\n };\n\n const getDeliveryItemTitle = item => {\n return formatTrackingNumber(item.trackingNumber);\n };\n\n\tconst showDeliveryDetails = (e) => {\n\t\t// return if a key is pressed that isn't enter or space \n\t\tif (typeof e.keyCode !== \"undefined\" && e.keyCode !== 13 && e.keyCode !== 32) {\n\t\t\treturn;\n\t\t}\n\n\t\twindow.location.href = `${window.location.origin}/myAccount/My-deliveries`;\n\t};\n\n return (\n \n {data && data.length > 0 ? (\n \n \n
    Status
    \n
    {activeTab === \"receiving\" ? 'From' : 'To'}
    \n
    Tracking number
    \n
    \n {data.slice(0, itemsToShow).map(obj => {\n return (\n \n \n
    Status
    \n \n
    \n \n
    {activeTab === \"receiving\" ? 'From' : 'To'}
    \n {obj.returnType === \"RECEIVER\" ? (\n
    {obj.retailerName !== \"\" ? <>{obj.retailerName} : <>Sender Uknown}
    \n ) : (\n
    \n {capitaliseFirstLetters(obj.recipientName)}\n
    \n )}\n
    \n \n {obj.trackingNumber ? (\n <>\n
    Tracking N.
    \n
    {getDeliveryItemTitle(obj)}
    \n \n ) : null}\n
    \n \n
     
    \n {obj.customsPaymentRequired ? (\n
    \n \n
    \n ) : (\n
    \n \n
    \n )}\n
    \n \n );\n })}\n
    \n ) : (\n \n )}\n
    \n );\n};\n\nDeliveryItemsGrid.propTypes = {\n data: PropTypes.object,\n noItemsMsg: PropTypes.string,\n role: PropTypes.string,\n id: PropTypes.string,\n ariaLabelledby: PropTypes.string,\n\tactiveTab: PropTypes.string\n};\n\nexport default DeliveryItemsGrid;\n","import styled from \"styled-components\";\n\nconst BottomLinkStyled = styled.div`\n position: relative;\n width: 100%;\n padding: 2.4rem 1.6rem;\n border-top: ${props => props.theme.midGreyBorder};\n\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n padding: 2.4rem 3.2rem;\n }\n\n a {\n color: ${props => props.theme.heritageGreen};\n }\n`;\n\nexport { BottomLinkStyled };","import React from 'react';\nimport PropTypes from \"prop-types\";\nimport { BottomLinkStyled } from \"./BottomLinkStyled.styled\";\n\nconst BottomLink = ( { activeTab, className } ) => {\n\n const baseUrl = window.location.origin;\n\n return (\n \n \n View My deliveries\n \n \n );\n}\n\nexport default BottomLink;\n\nBottomLink.propTypes = {\n activeTab: PropTypes.string,\n className: PropTypes.string,\n};","import { useState, useGlobal, setGlobal } from \"reactn\";\nimport { getJWTInfo, getMobileData } from \"../services/Api\";\n\nconst MyDeliveriesHooks = ({ userProfile }) => {\n\tconst [showMobileBanner, setShowMobileBanner] = useGlobal(\"mobileBanner\");\n\tconst [showCustomsBanner, setShowCustomsBanner] = useGlobal(\"customsBanner\");\n\tconst [values] = useGlobal(\"values\");\n\n\tconst callMobileDataApi = () => {\n\t\tconst { uid } = userProfile;\n\n\t\tgetJWTInfo().then(() => {\n\t\t\tgetMobileData(uid)\n\t\t\t\t.then(response => {\n\t\t\t\t\tif (response && response.status === 200) {\n\t\t\t\t\t\tif (response.data) {\n\t\t\t\t\t\t\t// mobiles returned from my deliveries\n\t\t\t\t\t\t\tconst { mobileNumbers } = response.data;\n\t\t\t\t\t\t\t// mobile numbers in CIAM\n\t\t\t\t\t\t\tconst { phones } = JSON.parse(sessionStorage.getItem(\"userProfile\"));\n\t\t\t\t\n\t\t\t\t\t\t\tif (typeof phones === \"undefined\") return;\n\t\t\t\t\n\t\t\t\t\t\t\t// check the my deliveries mobile against the primary profile mobile number\n\t\t\t\t\t\t\tconst primaryMobile = mobileNumbers.filter(mobile => mobile.mobileNumber === getMobileNumber(phones));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsetGlobal({\n\t\t\t\t\t\t\t\tvalues: { ...values, \"mobileNumbers\": primaryMobile }\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(primaryMobile.filter(numbers => numbers.verified === false).length > 0 || !primaryMobile.length){\n\t\t\t\t\t\t\t\tsetShowMobileBanner(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.catch((error) => {\n\t\t\t\t\tconsole.log(error);\n\t\t\t\t})\n\t\t});\n\t};\n\n\t// compare a date in the past to a date supplied to this function\n\tconst checkDateInThePast = (date, days) => {\n\t\t// get two days ago from today\n\t\tconst daysInPast = new Date();\n\t\t\tconst compareDate = new Date(date);\n\n\t\t// find the days in the passed based on the days param\n\t\tdaysInPast.setDate(daysInPast.getDate() - days);\n\n\t\t// compare the selectedDate\n\t\tif (compareDate > daysInPast) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t};\n\t\n\tconst filterReceivingItems = trackingItems => {\n\t\tconst receivingItemsData = trackingItems.filter(item => {\n\t\t\tif (item.returnType === \"RECEIVER\") {\n\t\t\t\titem.customsPaymentRequired && setShowCustomsBanner(true);\n\t\t\t\t\n\t\t\t\t// APMD-44: if the item is In Transit, Customs, Received or Sorting: display it as inbound ()\n\t\t\t\tif ([\"0\", \"1\", \"2\", \"3\"].indexOf(item.lastTrackingEventCategoryId) > -1) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// APMD-44: 4, 5 and 6 are to be displayed in the inbound items tab in some cases\n\t\t\t\tif ([\"4\", \"5\", \"6\"].indexOf(item.lastTrackingEventCategoryId) > -1) {\n\t\t\t\t\t// while the is greater than 2 calendar days previous to 'today'\n\t\t\t\t\tif (checkDateInThePast(item.dateDelivered, 2)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t});\n\n\t\treturn receivingItemsData;\n\t};\n\t\n\tconst filterSendingItems = trackingItems => {\n\t\tconst sendingItems = trackingItems.filter(item => {\n\t\t\treturn item.returnType === \"SENDER\";\n\t\t});\n\n\t\treturn sendingItems;\n\t};\n\n\tconst getMobileNumber = phones => {\n let mobileNumber = \"\";\n for (let i = 0; i < phones.length; i += 1) {\n if (phones[i].type.toUpperCase() === \"MOBILE\") {\n mobileNumber = phones[i].number;\n }\n }\n return mobileNumber;\n };\n\n\treturn {\n\t\tshowMobileBanner,\n\t\tshowCustomsBanner,\n\t\tcallMobileDataApi,\n\t\tfilterReceivingItems,\n\t\tfilterSendingItems\n\t}\n}\n\nexport default MyDeliveriesHooks;\n","/**\n * full tracking items test data\n */\nexport const trackingItemsTestData = [{\n \"trackingItems\": [\n {\n \"trackingNumber\": \"AZ732424566IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424570IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424583IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424597IE\",\n \"lastTrackingEventCategoryId\": \"2\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424606IE\",\n \"lastTrackingEventCategoryId\": \"2\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424610IE\",\n \"lastTrackingEventCategoryId\": \"2\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424623IE\",\n \"lastTrackingEventCategoryId\": \"3\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424637IE\",\n \"lastTrackingEventCategoryId\": \"3\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424645IE\",\n \"lastTrackingEventCategoryId\": \"3\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424654IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424668IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424671IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424685IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424699IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424708IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424711IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424725IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424739IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424742IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424756IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424760IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424773IE\",\n \"lastTrackingEventCategoryId\": \"2\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424787IE\",\n \"lastTrackingEventCategoryId\": \"2\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424795IE\",\n \"lastTrackingEventCategoryId\": \"2\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424800IE\",\n \"lastTrackingEventCategoryId\": \"3\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424813IE\",\n \"lastTrackingEventCategoryId\": \"3\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424827IE\",\n \"lastTrackingEventCategoryId\": \"3\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424835IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424844IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424858IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424861IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424875IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424889IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424892IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424901IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424915IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416009IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416012IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416026IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416030IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416043IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416057IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416065IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416074IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416088IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416091IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416105IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416114IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416128IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416131IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416145IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416159IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416162IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416176IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416180IE\",\n \"lastTrackingEventCategoryId\": \"2\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416193IE\",\n \"lastTrackingEventCategoryId\": \"2\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n }\n ],\n \"success\": true,\n \"errors\": []\n}]\n\n/**\n * Receiving test data\n */\nexport const receivingItemsTestData = [{\n \"trackingItems\": [\n {\n \"trackingNumber\": \"AZ732424566IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424570IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424583IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424597IE\",\n \"lastTrackingEventCategoryId\": \"2\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424606IE\",\n \"lastTrackingEventCategoryId\": \"2\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424610IE\",\n \"lastTrackingEventCategoryId\": \"2\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424623IE\",\n \"lastTrackingEventCategoryId\": \"3\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424637IE\",\n \"lastTrackingEventCategoryId\": \"3\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424645IE\",\n \"lastTrackingEventCategoryId\": \"3\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424654IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424668IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424671IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424685IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424699IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424708IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424711IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424725IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424739IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Dublin 7\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424742IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424756IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424760IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424773IE\",\n \"lastTrackingEventCategoryId\": \"2\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424787IE\",\n \"lastTrackingEventCategoryId\": \"2\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424795IE\",\n \"lastTrackingEventCategoryId\": \"2\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424800IE\",\n \"lastTrackingEventCategoryId\": \"3\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424813IE\",\n \"lastTrackingEventCategoryId\": \"3\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424827IE\",\n \"lastTrackingEventCategoryId\": \"3\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424835IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424844IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424858IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424861IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424875IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424889IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424892IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424901IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AZ732424915IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"RECEIVER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-05-31T11:55:54\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": null,\n \"deliveryManagerInstructionDetail\": null,\n \"recipientName\": \"DANIEL BARATUTESTA\",\n \"destinationCountyCity\": \"Galway\",\n \"destinationCountry\": \"Ireland\"\n },\n ],\n \"success\": true,\n \"errors\": []\n}]\n\n/**\n * Sending test data\n */\nexport const sendingItemsTestData = [{\n \"trackingItems\": [\n {\n \"trackingNumber\": \"AW732416009IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416012IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416026IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416030IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416043IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416057IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416065IE\",\n \"lastTrackingEventCategoryId\": \"4\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416074IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416088IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416091IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416105IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416114IE\",\n \"lastTrackingEventCategoryId\": \"6\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416128IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416131IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416145IE\",\n \"lastTrackingEventCategoryId\": \"5\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": \"2022-03-15T09:33:04\",\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416159IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416162IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416176IE\",\n \"lastTrackingEventCategoryId\": \"0\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416180IE\",\n \"lastTrackingEventCategoryId\": \"2\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n },\n {\n \"trackingNumber\": \"AW732416193IE\",\n \"lastTrackingEventCategoryId\": \"2\",\n \"deliveryManagerAvailable\": false,\n \"customsPaymentRequired\": false,\n \"returnType\": \"SENDER\",\n \"customsPaymentTotalDue\": null,\n \"customsPaymentDateDue\": null,\n \"mrn\": null,\n \"dateDelivered\": null,\n \"estimatedDeliveryDateTime\": null,\n \"retailerName\": \"AMAZON EU SARL\",\n \"deliveryManagerInstructionSet\": 1,\n \"deliveryManagerInstructionDetail\": \"0207q\",\n \"recipientName\": \"CHRISTOPHER TAYLOR\",\n \"destinationCountyCity\": \"Dublin\",\n \"destinationCountry\": \"Ireland\"\n }\n ],\n \"success\": true,\n \"errors\": []\n}];","import React, { useState, useEffect, useGlobal } from \"reactn\";\nimport PropTypes from \"prop-types\";\n\nimport Loader from \"shared-anpost-components/components/loader/Loader\";\nimport {Tablist, TablistHeader, TablistContent, TabButton} from \"../../_common/tablist/Tablist.styled\";\nimport DeliveryItemsGrid from \"./grid/DeliveryItemsGrid\";\nimport NoItemsCTA from \"./NoItemsMessage/NoItemsCTA\";\nimport BottomLink from \"./BottomLink/BottomLink\";\nimport MyDeliveriesHooks from \"../../../hooks/myDeliveriesHooks\";\nimport { getJWTInfo, getTrackingItems } from \"../../../services/Api\";\n\nimport { receivingItemsTestData } from \"../../../config/TrackingItems.config\";\n\nconst tabsArr = [\n { key: \"receiving\", label: \"Receiving\" },\n { key: \"sending\", label: \"Sending\" }\n];\n\nconst MyDeliveriesSummary = ({ userProfile }) => {\n const [activeTab, setActiveTab] = useState(\"receiving\");\n const [isBusiness, setIsBusiness] = useGlobal(\"isBusiness\");\n const [isCustomerRegistered] = useGlobal(\"mydelsRegistered\");\n const [allItemsEmpty, setAllItemsEmpty] = useState(false);\n const [trackingListLoading, setTrackingListLoading] = useState(true);\n const [receivingItemsData, setReceivingItemsData] = useState([]);\n const [sendingItemsData, setSendingItemsData] = useState([]);\n\n\tconst {\n filterReceivingItems,\n filterSendingItems\n\t} = MyDeliveriesHooks({ userProfile });\n\n const checkForEmptyItemsState = () => {\n\t\t\n if((receivingItemsData.length !== 0 && sendingItemsData.length !== 0)\n\t\t || receivingItemsData.length !== 0 && sendingItemsData.length === 0) {\n\t\t\t// if both tabs are not empty or only sending is empty \n setAllItemsEmpty(false);\n setActiveTab(\"receiving\");\n } else if (receivingItemsData.length === 0 && sendingItemsData.length !== 0) {\n\t\t\t// if only receiving is empty\n\t\t\tsetAllItemsEmpty(false);\n\t\t\tsetActiveTab(\"sending\");\n\t\t} else {\n\t\t\t// if both tabs are empty\n\t\t\tsetAllItemsEmpty(true);\n\t\t\tsetActiveTab(\"\");\n\t\t}\n }\n\n const renderTabs = tabs => {\n return tabs.map(tab => {\n return (\n {\n e.preventDefault();\n setActiveTab(tab.key);\n }}\n role=\"tab\"\n disabled={allItemsEmpty}\n className=\"gtm-tab\"\n isBusiness={isBusiness}\n >\n {tab.label}\n\t\t\t\t\t{tab.key === \"receiving\" && receivingItemsData.length > 0 && \n\t\t\t\t\t\t{receivingItemsData.length}\n\t\t\t\t\t}\n\t\t\t\t\t{tab.key === \"sending\" && sendingItemsData.length > 0 && \n\t\t\t\t\t\t{sendingItemsData.length}\n\t\t\t\t\t}\n \n );\n });\n };\n\n const renderReceivingTab = () => { \n return (\n \n );\n };\n\n const renderSendingTab = () => {\n return (\n \n );\n };\n\n useEffect(() => {\n checkForEmptyItemsState();\n\n\t\t// if business and both tabs are populated, sending tab should be open by default\n\t\tif (isBusiness && receivingItemsData.length > 0 && sendingItemsData.length > 0) {\n\t\t\tsetActiveTab(\"sending\");\n\t\t}\n }, [receivingItemsData, sendingItemsData, isBusiness]);\n\n useEffect(() => {\n if (isCustomerRegistered) {\n const { uid } = userProfile;\n\n getJWTInfo().then(() => {\n getTrackingItems(uid)\n .then(response => {\n if (response.status === 200) {\n setTrackingListLoading(false);\n if (response && response.data && response.data.trackingItems && !receivingItemsData.length) {\n const { trackingItems } = !window.apDevMode ? response.data : receivingItemsTestData[0];\n setReceivingItemsData(filterReceivingItems(trackingItems));\n setSendingItemsData(filterSendingItems(trackingItems));\n } \n }\n })\n .catch(() => {\n setTrackingListLoading(false);\n })\n }); \n }\n }, [isCustomerRegistered]);\n\n return (\n\t\t<>\n
    My deliveries
    \n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{renderTabs(tabsArr)}\n\t\t\t\t\n\t\t\t\t{trackingListLoading ? \n\t\t\t\t\t :\n\t\t\t\t\t\n\t\t\t\t\t\t{activeTab === \"receiving\" && renderReceivingTab()}\n\t\t\t\t\t\t{activeTab === \"sending\" && renderSendingTab()}\n\t\t\t\t\t\t{activeTab === \"\" && }\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\n );\n};\n\nexport default MyDeliveriesSummary;\n\nMyDeliveriesSummary.propTypes = {\n userProfile: PropTypes.object\n};\n","import styled, { css } from \"styled-components\";\n\nconst NotificationBoxStyled = styled.div`\n padding: 6rem 3.2rem 3.2rem;\n\tborder: 1px solid ${props => props.borderColor};\n\tborder-radius: 0.5rem;\n margin-bottom: 3.4rem;\n\tposition: relative;\n\n @media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n margin-bottom: 4rem;\n\t\tpadding: 3.2rem;\n }\n\n\t.closeBn {\n\t\tposition: absolute;\n\t\tright: 2.4rem;\n\t\ttop: 2.4rem;\n\t}\n\n\t.boxContent {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tflex-direction: column;\n\n\t\t@media only screen and (min-width: ${props => props.theme.desktopSmall}) {\n\t\t\tflex-direction: row;\n\t\t\talign-items: center;\n\n\t\t\tbutton {\n\t\t\t\tmargin-left: 2rem;\n\t\t\t}\n\n\t\t\tp {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t}\n\t}\n`;\n\nexport default NotificationBoxStyled;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\n// styles\nimport NotificationBoxStyled from \"./NotificationBox.styled\";\n\nconst NotificationBox = ({ heading, text, borderColor, onClose, ctaText, ctaClick }) => {\n return (\n \n
    \n

    {heading}

    \n \n
    \n
    \n

    {text}

    \n \n
    \n
    \n );\n};\n\nexport default NotificationBox;\n\n// props validation\nNotificationBox.propTypes = {\n heading: PropTypes.string,\n text: PropTypes.string,\n borderColor: PropTypes.string,\n onClose: PropTypes.func,\n ctaText: PropTypes.string,\n ctaClick: PropTypes.func\n};\n","// import React from 'react';\nimport React, { useState, useEffect, useGlobal } from \"reactn\";\nimport styled from \"styled-components\";\nimport { createPortal } from \"react-dom\";\nimport PropTypes from \"prop-types\";\nimport Notification from \"shared-anpost-components/components/notification\";\nimport BasketSummary from \"./BasketSummary/BasketSummary\";\nimport MyDeliveriesSummary from \"../../_core/MyDeliveriesSummary/MyDeliveriesSummary\";\nimport NotificationBox from \"../../_common/notificationBox/NotificationBox\";\nimport MyDeliveriesHooks from \"../../../hooks/myDeliveriesHooks\";\nimport AppHook from \"../../../hooks/appHook\";\nimport { getContentFromContentApi, validateCnPBasket } from \"../../../services/Api\";\nimport { getCookie } from \"../../../helpers/Helpers\";\n\nconst Overview = ({ userProfile, history, openTab }) => {\n const { useWidgetsScripts, useWidgetsStyles } = AppHook();\n const [showBusinessBanner, setShowBusinessBanner] = useGlobal(\"businessBanner\");\n const [isCustomerRegistered] = useGlobal(\"mydelsRegistered\");\n const [isBusiness, setIsBusiness] = useGlobal(\"isBusiness\");\n const [myAccountContent, setMyAccountContent] = useState(null);\n const [container, setContainer] = useState(null);\n const [showWarning, setShowWarning] = useState(false);\n const { showMobileBanner, showCustomsBanner, callMobileDataApi } = MyDeliveriesHooks({ userProfile });\n const { phones } = userProfile;\n const baseUrl = window.location.origin;\n\n const closeBusinessBanner = () => {\n setShowBusinessBanner(false);\n localStorage.setItem(\"businessTabOpenCount\", \"0\");\n };\n\n // check if cart basket has invalid items\n const validateBasket = async () => {\n const basketReference = getCookie(\"ClickPostBasketReference\");\n if (!basketReference) return;\n const CIAMCustomerID = getCookie(\"CIAMCustomerID\");\n const sessionId = window.cmsSessionId;\n const response = await validateCnPBasket({ CIAMCustomerID, sessionId, basketReference });\n const basketData = response ? response.data : \"\";\n\n if (basketData && (basketData.validationErrors || basketData.validationErrors.length > 0)) {\n basketData.validationErrors.forEach(basketError => {\n if (basketError.MailServiceType !== \"MailsLabelService\") {\n setShowWarning(true);\n }\n });\n }\n\n if (basketData && (!basketData.validationErrors || basketData.validationErrors.length === 0 || basketData.isBasketValid)) {\n showWarning && setShowWarning(false);\n }\n };\n useWidgetsStyles(myAccountContent?.css);\n useWidgetsScripts(myAccountContent?.js);\n\n const OverviewHeading = styled.div`\n h3 {\n font-size: 2.2rem;\n @media only screen and (min-width: ${props => props.theme.tablet}) {\n font-size: 2.6rem;\n }\n }\n\n p {\n margin-bottom: 2.4rem;\n @media only screen and (min-width: ${props => props.theme.tablet}) {\n margin-bottom: 3.2rem;\n }\n }\n `;\n\n useEffect(() => {\n if (isBusiness && !userProfile?.profile?.business?.name && openTab === \"overview\") {\n const businessTabOpenCount = localStorage.getItem(\"businessTabOpenCount\");\n\n // if business banner was closed and it hasn't been the 7th time user opens the business overview tab - increase open count\n // else show banner and remove local storage variable\n if (businessTabOpenCount && +businessTabOpenCount < 7) {\n localStorage.setItem(\"businessTabOpenCount\", `${+businessTabOpenCount + 1}`);\n setShowBusinessBanner(false);\n } else {\n setShowBusinessBanner(true);\n localStorage.removeItem(\"businessTabOpenCount\");\n }\n }\n\n // send data layer if business if available and banner is showing\n if (showBusinessBanner) {\n window.dataLayer.push({\n event: \"banner\",\n banner_name: \"Business\"\n });\n }\n }, [showBusinessBanner]);\n\n useEffect(() => {\n const myAccountContentApi = JSON.parse(sessionStorage.getItem(\"myAccountContentApi\"));\n if (myAccountContentApi) {\n setMyAccountContent(myAccountContentApi);\n } else {\n getContentFromContentApi()\n .then(res => {\n if (res.status === 200) {\n if (res.data) {\n const contentData = res.data.data;\n const widgetsCss = contentData.widgetCss.replace(/\\\\\"/g, '\"');\n const widgetsJs = contentData.widgetJs.replace(/\\\\\"/g, '\"');\n const personalContent = contentData.content.filter(el => el.key === \"overview.personal\")[0].html;\n const businessContent = contentData.content.filter(el => el.key === \"overview.business\")[0].html;\n const contentHtml = {\n personal: personalContent.replace(/\\\\\"/g, '\"'),\n business: businessContent.replace(/\\\\\"/g, '\"'),\n css: widgetsCss,\n js: widgetsJs\n };\n setMyAccountContent(contentHtml);\n sessionStorage.setItem(\"myAccountContentApi\", JSON.stringify(contentHtml));\n }\n }\n })\n .catch(err => {\n setMyAccountContent({});\n console.log(err);\n });\n }\n }, []);\n\n useEffect(() => {\n const basketSummaryContainer = document.querySelector(\".m124 .m124__container\");\n if (basketSummaryContainer) {\n setContainer(basketSummaryContainer);\n }\n }, [myAccountContent, isBusiness]);\n\n // send the datalayer if the return label is expired and banner is showing\n useEffect(() => {\n if (showWarning) {\n window.dataLayer.push({\n event: \"banner\",\n banner_name: \"Return label\"\n });\n }\n }, [showWarning]);\n\n // send data layer if the customs banner is showin\n useEffect(() => {\n if (showCustomsBanner) {\n window.dataLayer.push({\n event: \"banner\",\n banner_name: \"Customs Charges\"\n });\n }\n }, [showCustomsBanner]);\n\n // send data layer if the mobile not verified banner is showing\n useEffect(() => {\n if (showMobileBanner) {\n window.dataLayer.push({\n event: \"banner\",\n banner_name: \"Phone number\"\n });\n }\n }, [showMobileBanner]);\n\n useEffect(() => {\n if (isCustomerRegistered) {\n callMobileDataApi();\n }\n }, [isCustomerRegistered]);\n\n useEffect(() => {\n validateBasket();\n }, []);\n\n return (\n <>\n \n

    Overview

    \n

    Conveniently manage your post and parcels.

    \n
    \n {showMobileBanner && (\n {\n e.preventDefault();\n window.location.href = `${baseUrl}/myAccount/My-deliveries?return=My-account`;\n }}\n />\n )}\n {showCustomsBanner && (\n {\n e.preventDefault();\n window.location.href = `${baseUrl}/myAccount/My-deliveries`;\n }}\n />\n )}\n {showWarning && (\n {\n e.preventDefault();\n window.location.href = `${baseUrl}/Post-Parcels/Self-Service/Basket`;\n }}\n >\n )}\n {showBusinessBanner && (\n history.push(\"/Profile/edit-business\")}\n />\n )}\n {Object.keys(userProfile).length > 0 && }\n {isBusiness ?
    :
    }\n {container ? createPortal(, container) : null}\n \n );\n};\n\nexport default Overview;\n\nOverview.propTypes = {\n userProfile: PropTypes.object,\n history: PropTypes.object,\n openTab: PropTypes.string\n};\n","import styled from \"styled-components\";\n\nconst MobileTopBarStyled = styled.header`\n background-color: ${props => props.theme.heritageGreen};\n height: 5.6rem;\n width: 100%;\n margin: 0;\n padding: 1.2rem 1.6rem;\n\tdisplay: flex;\n\n\t.header__mobile-controls {\n\t\tmin-height: auto;\n\t}\n\n\t.m59 {\n\t\tdisplay: flex !important;\n\t\tz-index: 2;\n\n\t\t&__trigger {\n \tbackground-color: inherit;\n\n\t\t\tspan {\n\t\t\t\tmargin-bottom: 0.5rem;\n\t\t\t}\n\n\t\t\tspan:before {\n\t\t\t\tvertical-align: middle;\n\t\t\t}\n \t}\n\n\t\t&__mobile-logout {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\twidth: 100%;\n\t\t\tmargin: 0;\n\t\t\tfont-size: 1.5rem;\n\t\t\tcolor: ${props => props.theme.heritageGreen};\n\t\t\tborder-top: 1px solid ${props => props.theme.lightGray5};\n\t\t\tpadding: 1.6rem 1.6rem 1.2rem;\n\n\t\t\t&:before {\n\t\t\t\tcontent: \"\";\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tbackground-image: url('data:image/svg+xml,');\n\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\theight: 1.4rem;\n\t\t\t\twidth: 1.4rem;\n\t\t\t\tmargin-right: 1rem;\n\t\t\t}\n\t\t}\n\n\t\ta {\n\t\t\ttext-decoration: none;\n\t\t}\n\t}\n\n\t.header__basket {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\n\t\t&, a {\n\t\t\tmargin: 0;\n\t\t}\n\n\t\ta {\n\t\t\tbackground-position: center;\n\t\t}\n\t}\n\n\t.header__utility-search {\n\t\tmargin-left: 0;\n\t\twidth: 3rem;\n\t\tmargin-right: 2.4rem;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\theight: 3rem;\n\t\twidth: 3rem;\n\t}\n\n\t.header__mobile-controls {\n\t\talign-items: center;\n\t}\n\n\t.header__basket,\n\t.m59 {\n\t\theight: 3rem;\n \twidth: 3rem;\n\t\tmargin-right: 2.4rem;\n\t}\n`;\n\nexport { \n\tMobileTopBarStyled\n };\n","import React, { useEffect, useState, useGlobal, useRef } from \"reactn\";\nimport PropTypes from \"prop-types\";\nimport SwitchProfileButton from \"shared-anpost-components/components/SwitchProfile/SwitchProfileButton\";\nimport { MobileTopBarStyled } from \"./MobileTopBar.styled\";\nimport AppHook from \"../../../hooks/appHook\";\nimport MagnifyIcon from \"../../../images/magnify.svg\";\n\nconst MobileTopBar = ({ isOverview, history }) => {\n\tconst [dropdownExpanded, setDropdownExpanded] = useState(false);\n\tconst { copyTopMobileDropdowns, setNavProfileLinks } = AppHook();\n const topBarRef = useRef(null);\n const [mobileNav] = useGlobal(\"mobileNav\");\n\n useEffect(() => {\n window.MobileMenu && window.MobileMenu.init();\n\t\tcopyTopMobileDropdowns();\n }, []);\n\n\tuseEffect(() => {\n dropdownExpanded && closeBurgerMenu();\n\n\t\t// close account menu if expanded when burger menu opens\n\t\tdocument.addEventListener(\"burgerOpen\", () => {\n\t\t\tif (dropdownExpanded) {\n\t\t\t\tsetDropdownExpanded(false);\n\t\t\t}\n\t\t});\n }, [dropdownExpanded]);\n\n\tuseEffect(() => {\n const mobileNavigation = topBarRef.current;\n if (!mobileNavigation) return;\n\t\tconst basketButton = mobileNavigation.querySelector(\".header__basket a\");\n\t\tconst basketModal = mobileNavigation.querySelector(\".m58\");\n\t\tconst basketCloseModalBtn = mobileNavigation.querySelector(\".m58__close__wrapper\");\n\t\tconst dropdownLinks = mobileNavigation.querySelectorAll(\".m59__list.user li a\");\n\t\tif (!basketButton || !basketCloseModalBtn || dropdownLinks.length === 0) return;\n\t\tbasketButton.setAttribute(\"aria-expanded\", \"false\");\n\n basketButton.addEventListener(\"click\", e => {\n\t\t\te.preventDefault();\n\t\t\tbasketModal.classList.add(\"m58--open\");\n\t\t\tbasketButton.setAttribute(\"aria-expanded\", \"true\");\n });\n\n\t\tbasketCloseModalBtn.addEventListener(\"click\", () => {\n\t\t\tbasketModal.classList.remove(\"m58--open\");\n\t\t\tbasketButton.setAttribute(\"aria-expanded\", \"false\");\n });\n\n dropdownLinks.forEach(el => {\n el.classList.remove(\"gtm-header\");\n el.classList.add(\"gtm-headerMACH\");\n });\n\n\t\tsetNavProfileLinks(dropdownLinks, history);\n }, [mobileNav]);\n\n\tconst closeBurgerMenu = () => {\n\t\tconst burger = document.querySelector(\".header:not(.header--mach) .js-header__burger\");\n\t\tburger.classList.contains(\"header__burger__open\") && burger.click();\n\t}\n\n\tconst renderLogo = () => {\n\t\treturn (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t);\n\t};\n\n return (\n \n\t\t\t{renderLogo()}\n
    \n\t\t\t\t<>\n\t\t\t\t\t
    \n\t\t\t\t\t
    \n\t\t\t\t\t
    \n\t\t\t\t\t\t\n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    \n\t\t\t\t\t
    \n\t\t\t\t\n \n \"Search\"\n \n \n
    \n
    \n );\n};\n\nMobileTopBar.propTypes = {\n isOverview: PropTypes.bool,\n history: PropTypes.object\n};\n\nexport default MobileTopBar;\n","// dependancys\nimport React, { useState, useEffect } from \"reactn\";\nimport PropTypes from \"prop-types\";\nimport { withRouter } from \"react-router-dom\";\n\n// hooks\nimport Loader from \"shared-anpost-components/components/loader/Loader\";\nimport GlobalError from \"shared-anpost-components/components/globalError/GlobalError\";\nimport loginHooks from \"../../../hooks/LoginHooks\";\nimport profileHooks from \"../../../hooks/profileHooks\";\n\n// Components\n\nconst LoginFlow = ({ loginCompleteCallback }) => {\n const [loader, setLoader] = useState(true);\n const [ApiError, setApiError] = useState(false); // state to handle API error\n const [loginRequested, setLoginRequested] = useState(false);\n\n const { setLoginData } = loginHooks();\n const { values } = profileHooks();\n\n const closeFunc = () => {\n setApiError(false);\n };\n\n const loginRegCallback = (loginData, callback) => {\n // set login data on the app\n const data = {\n ciamUserId: loginData.UID,\n loggedIn: true,\n isVerified: true\n };\n // set logged in state\n setLoginData(data);\n\n // callback for when the current\n if (loginCompleteCallback) {\n loginCompleteCallback(loginData.UID, callback, loginData.profile);\n }\n\n setLoader(false);\n };\n\n // called when a registered but not fully logged in\n\n useEffect(() => {\n window.loggedInUser = window.loggedInUser || {};\n window.loginOverride = window.loginOverride || {};\n window.loggedOutUser = window.loggedOutUser || {};\n window.onMyAccountAppLogin = window.onMyAccountAppLogin || {};\n\n // callback when a user logs in\n window.loggedInUser.callback = data => {\n if (!loginRequested) {\n setLoginRequested(true);\n setLoader(true);\n loginRegCallback(data);\n }\n };\n\n // callback for when a user registers\n window.loggedInUser.registerCallback = data => {\n setLoader(true);\n loginRegCallback(data);\n };\n\n // this is called when the user is unverifieed, first time user\n window.loginOverride.callback = (overrideUID, callback) => {\n if (!loginRequested) {\n setLoginRequested(true);\n setLoader(true);\n\n const userProfileData = JSON.parse(sessionStorage.getItem(\"userProfile\"));\n\n // check if applicationCode is empty\n const dmApplication = userProfileData.applications.find(item => item.applicationCode === \"anpost_directmail\");\n\n // if they aren't registered, register them here\n if (!dmApplication) {\n const getProfileCallbackFn = () => {\n const data = {\n UID: overrideUID\n };\n loginRegCallback(data, callback);\n };\n\n const registerCustomerCallbackFn = () => window.m59.getProfile(overrideUID, getProfileCallbackFn);\n window.m59.registerDirectMailCustomer(registerCustomerCallbackFn);\n return;\n }\n\n const data = {\n UID: overrideUID\n };\n loginRegCallback(data, callback);\n }\n };\n\n window.loggedOutUser.callback = () => {\n if (!loginRequested) {\n setLoginRequested(true);\n const data = {\n loggedIn: false\n };\n // set logged in state\n setLoginData(data);\n setLoader(false);\n }\n };\n\n window.onMyAccountAppLogin.callback = profileResponse => {\n if (!loginRequested) {\n setLoginRequested(true);\n setLoader(true);\n\n const data = {\n ciamUserId: profileResponse.uid,\n loggedIn: true,\n isVerified: true\n };\n // set logged in state\n setLoginData(data);\n\n // callback for when the current\n if (loginCompleteCallback) {\n loginCompleteCallback(profileResponse);\n }\n\n setLoader(false);\n }\n };\n\n // if the user is already logged in, hide the loader\n if (values.loggedIn) {\n setLoader(false);\n }\n\n // handle for when react script loads later than core / gigya scripts\n // if gigya has loaded and core js has also been initialised, re-run reauthentication to make sure callbacks are sent\n if (window.apgigya && window.gigyaInitStarted && !window.activerUserSessionChecked) {\n window.activerUserSessionChecked = true;\n window.apgigya.checkActiveUserSession();\n }\n }, []);\n\n return (\n <>\n {ApiError && }\n {loader && !window.apDevMode && }\n \n );\n};\n\nexport default withRouter(LoginFlow);\n\nLoginFlow.propTypes = {\n loginCompleteCallback: PropTypes.func\n};\n","/* eslint-disable import/no-unresolved */\n/* eslint-disable no-unused-vars */\n// dependancys\nimport React, { useState, useEffect, useGlobal } from \"reactn\";\nimport PropTypes from \"prop-types\";\nimport { useLocation } from \"react-router-dom\";\n\n// components\nimport GlobalError from \"shared-anpost-components/components/globalError/GlobalError\";\nimport SideNav from \"shared-anpost-components/components/SideNav/SideNav\";\nimport DetectDeviceResize from \"shared-anpost-components/hooks/detectDeviceResizeHook\";\n\nimport Header from \"../../_core/Header/Header\";\nimport Error from \"../../_common/error/Error\";\nimport Transactions from \"../_transactions/Transactions\";\nimport Addresses from \"../_addresses/Addresses\";\nimport Profile from \"../_profile/Profile\";\nimport Overview from \"../_overview/Overview\";\nimport MobileTopBar from \"../../_core/MobileTopBar/MobileTopBar\";\n\n// containers\nimport AccountContainerStyled from \"../../_common/containers/AccountContainer/AccountContainer.styled\";\nimport LeftContainerStyled from \"../../_common/containers/LeftContainer/LeftContainer.styled\";\nimport RightContainerStyled from \"../../_common/containers/RightContainer/RightContainer.styled\";\nimport { ContentContainerStyled } from \"../../_common/contentContainer/ContentContainer.styled\";\n\n// hooks\nimport profileHooks from \"../../../hooks/profileHooks\";\nimport LoginFlow from \"../_loginFlow/LoginFlow\";\nimport AppHook from \"../../../hooks/appHook\";\nimport { hasApplicationCode, getCookie } from \"../../../helpers/Helpers\";\n\n// api\nimport { getJWTInfo, getProfile, registerMyDeliveriesUser } from \"../../../services/Api\";\n\nconst HomePage = ({ history, openTab, profileTab }) => {\n const { setActiveTab, values } = profileHooks();\n const { removeNavMargins, handleMainMargin } = AppHook();\n\n // states\n const [apiError, setApiError] = useState(false);\n const [loader, setLoader] = useState(false);\n const [homepageActiveTab, setHomepageActiveTab] = useState(null);\n const [userProfile, setProfile] = useGlobal(\"userProfile\");\n const [businessname, setBusinessname] = useGlobal(\"businessName\");\n const [isBusiness, setIsBusiness] = useGlobal(\"isBusiness\");\n const [firstname, setFirstname] = useGlobal(\"firstName\");\n const [lastname, setLastname] = useGlobal(\"lastName\");\n const [userEmail, setUserEmail] = useGlobal(\"email\");\n const [isCollapsed] = useGlobal(\"isCollapsed\");\n const [showMobileBanner, setShowMobileBanner] = useGlobal(\"mobileBanner\");\n const [sideNavIndex, setSideNavIndex] = useGlobal(\"sideNavIndex\");\n const [isCustomerRegistered, setIsCustomerRegistered] = useGlobal(\"mydelsRegistered\");\n const [isAnPostApp] = useGlobal(\"isAnPostApp\");\n\n // hooks\n const { isMobile } = DetectDeviceResize();\n\n // close error banner\n const closeFunc = () => {\n setApiError(false);\n };\n\n // check if user is registered for my deliveries. If not, register them\n const myDeliveriesRegCheck = async () => {\n const API_URL = `${window.appMyAccMyDeliveriesAPI}/`;\n const { uid, applications } = JSON.parse(sessionStorage.getItem(\"userProfile\"));\n\n if (!hasApplicationCode(applications, \"anpost_mydeliveries\")) {\n const userData = {\n customerName: uid\n };\n\n try {\n getJWTInfo().then(() => {\n registerMyDeliveriesUser(uid, userData).then(response => {\n if (response && response.status === 201) {\n setIsCustomerRegistered(true);\n\n getProfile(uid).then(res => {\n if (res.status === 200) {\n sessionStorage.setItem(\"userProfile\", JSON.stringify(res.data));\n }\n });\n }\n });\n });\n } catch (err) {\n console.error(err);\n }\n } else {\n setIsCustomerRegistered(true);\n }\n };\n\n // check if user has business account and set url to /business if not already set\n const checkForBusinessAcc = businessNameInfo => {\n if (businessNameInfo && window.location.pathname.endsWith(\"/myAccount\") && !window.location.pathname.includes(\"Business\")) {\n !isBusiness && setIsBusiness(true);\n if (!getCookie(\"switch_profile\")) {\n document.cookie = \"switch_profile=true\";\n }\n\n history.push(\"/Business\");\n }\n };\n\n // get data from session storage\n // this function is called on first page load or after login\n const getProfileData = profileResponse => {\n setLoader(true);\n getJWTInfo().then(() => {\n const profileData = JSON.parse(sessionStorage.getItem(\"userProfile\")) || profileResponse;\n setProfile(profileData);\n const { profile, email, applications, phones } = profileData;\n checkForBusinessAcc(profile?.business?.name);\n setBusinessname(profile?.business?.name);\n setFirstname(profile?.firstName);\n setLastname(profile?.lastName);\n setUserEmail(email);\n setLoader(false);\n\n // fallback to check if applicationCode is empty for older accounts\n const machApplication = applications.filter(item => {\n return item.applicationCode === \"anpost_myaccount\";\n })[0];\n\n // if they aren't registered, register them here\n if (!machApplication || machApplication === undefined) {\n window.m59.registerApplication();\n }\n\n // check if there are any phone numbers, and if so show the mobile banner\n if (phones.length === 0 && !showMobileBanner) {\n setShowMobileBanner(true);\n }\n\n // check for mydels application and if it isn't registered, register it here\n myDeliveriesRegCheck();\n });\n };\n\n const handleOpenTab = tab => {\n if (tab === \"cnp\") {\n setSideNavIndex(3);\n }\n };\n\n const checkTab = () => {\n const tab = openTab || null;\n\n if (tab) {\n setActiveTab(tab);\n handleOpenTab(tab);\n setHomepageActiveTab(tab);\n }\n };\n\n // run checks on first load\n useEffect(() => {\n checkTab();\n\n if (isBusiness && openTab === \"overview\" && !window.location.pathname.includes(\"Business\")) {\n !isBusiness && setIsBusiness(true);\n history.push(\"/Business\");\n }\n\n if (openTab === \"overview\" && !window.location.pathname.includes(\"Business\") && getCookie(\"switch_profile\")) {\n !isBusiness && setIsBusiness(true);\n history.push(\"/Business\");\n }\n\n if ((window.location.pathname.includes(\"Business\") || getCookie(\"switch_profile\")) && !isBusiness) {\n setIsBusiness(true);\n }\n }, []);\n\n // set datalayer dashboard type\n useEffect(() => {\n window.dataLayer.push({\n dashboardType: isBusiness ? \"Business\" : \"Personal\"\n });\n }, [isBusiness]);\n\n // change page title in webview navigaton depending on selected tab\n useEffect(() => {\n const appPageNameParagraph = document.querySelector(\".app-header__page-name p\");\n if (!appPageNameParagraph || !isAnPostApp) return;\n let pageTitle = \"My account\";\n\n if (openTab === \"addresses\") {\n pageTitle = \"Address book\";\n } else if (openTab === \"cnp\") {\n pageTitle = \"Transactions\";\n } else if (openTab === \"profile\" && profileTab === \"marketing\") {\n pageTitle = \"Marketing preferences\";\n } else if (openTab === \"profile\") {\n pageTitle = \"Profile details\";\n }\n\n appPageNameParagraph.innerHTML = pageTitle;\n }, []);\n\n useEffect(() => {\n if (isMobile) {\n removeNavMargins();\n } else {\n handleMainMargin(isCollapsed);\n }\n }, [isMobile, isCollapsed]);\n\n return (\n <>\n
    \n \n {apiError && }\n \n {isMobile && !isAnPostApp && }\n {!isMobile && (\n \n \n \n )}\n \n {values.loggedIn &&
    }\n {!values.loggedIn && window.apDevMode && }\n {values.loggedIn && (\n \n {homepageActiveTab === \"overview\" && }\n {homepageActiveTab === \"profile\" && }\n {homepageActiveTab === \"addresses\" && }\n {homepageActiveTab === \"cnp\" && }\n \n )}\n \n \n
    \n \n );\n};\n\nexport default HomePage;\nHomePage.propTypes = {\n history: PropTypes.object,\n openTab: PropTypes.string,\n profileTab: PropTypes.string\n};\n"],"sourceRoot":""}