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3L,MAAO,EAKHvE,SACxDyJ,EAAQnF,KAAI,SAAC6L,GAAW,OACvBvP,EAAAA,EAAAA,KAAA,UAA2B2D,MAAO4L,EAAO5L,MAAMvE,SAC5CmQ,EAAOzG,MADGyG,EAAO5L,MAEX,QAKnB,C","sources":["Atoms/Buttons/Button.tsx","Atoms/Loaders/Dots.tsx","Molecules/ValueDropDown/GenericDropDown.tsx","Shared/Pagination/PaginationStep.tsx","Shared/Pagination/Pagination.tsx","OrderComponent/OrderListing.tsx","OrderComponent/OrderRowListing.tsx","Pages/OrderHistoryPage/OrderHistoryPage.tsx","Shared/Input/Select.tsx"],"sourcesContent":["import { BaseIconStyle } from '../Icons/IconBaseStyle';\r\nimport KexIconLoader from '../../Kex/KexIconLoader';\r\nimport { css, styled } from '../../stitches.config';\r\nimport BaseButtonStyled from './BaseButtonStyle';\r\nimport BaseButtonType from './BaseButtonType';\r\n\r\nfunction Button({\r\n onClick,\r\n children,\r\n icon,\r\n disabled,\r\n type,\r\n size,\r\n css,\r\n border,\r\n ...rest\r\n}: BaseButtonType) {\r\n var Icon = icon && KexIconLoader(icon);\r\n return (\r\n \r\n {Icon && }\r\n {children}\r\n \r\n \r\n );\r\n}\r\n\r\nconst StyledIcon = css({\r\n mr: 2,\r\n});\r\n\r\nconst HoverLine = styled('div', {\r\n h: 0.25,\r\n w: 'calc(100% - 6px)',\r\n position: 'absolute',\r\n b: -0.75,\r\n mx: 0.5,\r\n transition: 'all $200 ease-in-out',\r\n variants: {\r\n color: {\r\n primary: {\r\n backgroundColor: '$buttonHoverBackgroundPrimary',\r\n },\r\n secondary: {\r\n backgroundColor: '$buttonHoverBackgroundSecondary',\r\n [`& ${BaseIconStyle}`]: {\r\n fill: '$textSecondary',\r\n },\r\n },\r\n transparent: {\r\n backgroundColor: 'transparent',\r\n },\r\n accent: {\r\n backgroundColor: '$accent',\r\n },\r\n },\r\n },\r\n defaultVariants: {\r\n color: 'primary',\r\n },\r\n});\r\n\r\nconst StyledButton = styled(BaseButtonStyled, {\r\n position: 'relative',\r\n overflow: 'hidden',\r\n //Set default for button\r\n defaultVariants: {\r\n color: 'primary',\r\n size: 'm',\r\n },\r\n});\r\n\r\nexport default Button;\r\n","import { styled } from '../../stitches.config';\r\nimport { timings } from '../../Theme/Settings/animation';\r\nimport { animationFrames } from '../../Theme/Settings/keyframes';\r\n\r\ntype DotsType = {\r\n color?: string;\r\n};\r\n\r\nfunction Dots({ color }: DotsType) {\r\n return (\r\n \r\n .\r\n .\r\n .\r\n \r\n );\r\n}\r\n\r\nexport default Dots;\r\n\r\nconst Wrapper = styled('div', {\r\n h: 'auto',\r\n});\r\n\r\nconst Dot = styled('div', {\r\n display: 'inline-block',\r\n color: '$primary',\r\n fs: 32,\r\n lineHeigh: 'auto',\r\n animation: `${animationFrames}`,\r\n animationDuration: timings.sevenFifths,\r\n animationIterationCount: 'infinite',\r\n animationTimingFunction: 'ease-in-out',\r\n animationFillMode: 'both',\r\n '&:nth-child(2)': {\r\n animationDelay: timings.oneFifth,\r\n },\r\n '&:nth-child(3)': {\r\n animationDelay: timings.twoFifths,\r\n },\r\n});\r\n","import { useState, useRef } from 'react';\r\nimport ChevronIcon from '../../Atoms/Icons/ChevronIcon';\r\nimport { styled } from '../../stitches.config';\r\n\r\ntype PropTypes = {\r\n values: any[] | undefined;\r\n currentValue: string;\r\n setSelectedValue: (value: string) => void;\r\n isPagination?: boolean;\r\n label?: string;\r\n isValid?: boolean;\r\n returnIndex?: boolean;\r\n disabled?: boolean;\r\n defaultValue?: string;\r\n};\r\n\r\nfunction GenericDropDown({\r\n values,\r\n currentValue,\r\n setSelectedValue,\r\n isPagination = false,\r\n label,\r\n isValid = true,\r\n returnIndex = false,\r\n disabled = false,\r\n defaultValue,\r\n}: PropTypes) {\r\n const [showValues, toggleValues] = useState(false);\r\n const ref = useRef(null);\r\n const paginationStyle = {\r\n mb: 0,\r\n h: '100%',\r\n };\r\n const updateValue = (value: string, index: string = '0') => {\r\n const newValue = index;\r\n setSelectedValue(value);\r\n };\r\n\r\n const dropDownStyles = {\r\n ...(!isValid && dropdownContainerInvalid),\r\n ...(isPagination && paginationStyle),\r\n ...(disabled && {\r\n border: {\r\n xy: {\r\n style: 'solid',\r\n w: 0.25,\r\n color: '$grey500',\r\n },\r\n },\r\n }),\r\n };\r\n\r\n const currentValueStyle = {\r\n ...(disabled && {\r\n color: '$grey500',\r\n }),\r\n };\r\n\r\n return (\r\n {\r\n if (!e.currentTarget.contains(e.relatedTarget as Element)) {\r\n toggleValues(false);\r\n }\r\n }}\r\n css={isPagination ? { marginBottom: 0 } : {}}\r\n >\r\n {label && {label}}\r\n \r\n !disabled && toggleValues((prev) => !prev)}\r\n ref={ref}\r\n >\r\n {isPagination ? (\r\n \r\n {currentValue} / {values?.length}\r\n \r\n ) : (\r\n \r\n {!!currentValue && !!defaultValue ? defaultValue : currentValue}{' '}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {showValues && (\r\n \r\n {values &&\r\n values.length > 0 &&\r\n values.map((value: string, index: number) => (\r\n {\r\n updateValue(value, (index + 1).toString());\r\n toggleValues(false);\r\n }}\r\n css={{\r\n opacity: isPagination\r\n ? value\r\n : value === currentValue\r\n ? 0.5\r\n : 1,\r\n }}\r\n >\r\n {!isPagination ? value : index + 1}\r\n \r\n ))}\r\n \r\n )}\r\n \r\n \r\n );\r\n}\r\nexport default GenericDropDown;\r\n\r\nconst Wrapper = styled('div', {\r\n mb: 4,\r\n});\r\n\r\nconst DropDownButton = styled('button', {\r\n width: '-webkit-fill-available',\r\n h: '100%',\r\n fs: 6,\r\n textAlign: 'left',\r\n ':focus': {\r\n boxShadow: '0 0 0 2px #FFF',\r\n },\r\n mx: 4,\r\n my: 3,\r\n});\r\n\r\nconst ArrowIconWrapper = styled('div', {\r\n transform: 'rotate(90deg)',\r\n mr: 2,\r\n});\r\n\r\nconst DropDownContainer = styled('div', {\r\n w: '100%',\r\n position: 'relative',\r\n h: 'auto',\r\n display: 'block',\r\n textAlign: 'left',\r\n border: '1px solid $black',\r\n});\r\n\r\nconst ValueFlex = styled('div', {\r\n display: 'flex',\r\n position: 'relative',\r\n justifyContent: 'space-between',\r\n h: '100%',\r\n alignItems: 'center',\r\n cursor: 'pointer',\r\n});\r\n\r\nconst DropDown = styled('div', {\r\n history: 'auto',\r\n maxW: 50,\r\n display: 'flex',\r\n flexDirection: 'column',\r\n border: '1px solid $black',\r\n backgroundColor: 'white',\r\n position: 'absolute',\r\n w: '100%',\r\n zIndex: '$DropDown',\r\n overflow: 'auto',\r\n});\r\n\r\nconst CurrentValue = styled('span', {\r\n fs: 8,\r\n lineHeight: '2px',\r\n color: '$black',\r\n mx: 4,\r\n});\r\n\r\nconst StyledArrow = styled(ChevronIcon, {\r\n wh: 3,\r\n transitionDelay: '200ms',\r\n transitionProperty: 'all',\r\n});\r\n\r\nconst FormLabel = styled('label', {\r\n fs: 7,\r\n fontWeight: '$fw700',\r\n position: 'relative',\r\n pb: 3,\r\n backgroundColor: 'inherit',\r\n display: 'block',\r\n});\r\n\r\nconst dropdownContainerInvalid = {\r\n border: '1px solid $errorPrimary',\r\n};\r\n","import React from 'react';\r\nimport { styled } from '../../stitches.config';\r\n\r\ntype PropTypes = {\r\n isActive?: boolean;\r\n onClick?: any;\r\n children?: any;\r\n};\r\n\r\nfunction PaginationStep({ isActive, onClick, children }: PropTypes) {\r\n return (\r\n onClick()}>\r\n {children}\r\n \r\n );\r\n}\r\n\r\nconst Step = styled('span', {\r\n mx: 6,\r\n color: '$grey800',\r\n '&:hover': {\r\n cursor: 'pointer',\r\n color: '$black',\r\n },\r\n variants: {\r\n isActive: {\r\n true: {\r\n fontWeight: '$fw700',\r\n color: '$black',\r\n },\r\n },\r\n },\r\n});\r\n\r\nexport default React.memo(PaginationStep);\r\n","import React from 'react';\r\nimport { useEffect, useState } from 'react';\r\nimport Button from '../../Atoms/Buttons/Button';\r\nimport { ArrowIcon, ChevronIcon } from '../../Atoms/Icons';\r\nimport GenericDropDown from '../../Molecules/ValueDropDown/GenericDropDown';\r\nimport { styled } from '../../stitches.config';\r\nimport { mediaQueryTypes } from '../../Theme/Settings/mediaQueries';\r\nimport useMedia from '../Hooks/useMedia';\r\nimport PaginationStep from './PaginationStep';\r\n\r\ntype PropTypes = {\r\n pageCount: number;\r\n totalRecords: number;\r\n onPageChange: (x: any) => void;\r\n currentPage?: number;\r\n};\r\n\r\nfunction Pagination({\r\n totalRecords,\r\n pageCount,\r\n onPageChange,\r\n currentPage: currentPageProp,\r\n}: PropTypes) {\r\n const isMobile = useMedia(mediaQueryTypes.mediaMaxLarge);\r\n const [currentPage, setCurrentPage] = useState(0);\r\n\r\n const totalAmountSteps = [...Array(Math.ceil(pageCount))];\r\n\r\n useEffect(() => {\r\n if (currentPageProp !== undefined) {\r\n setCurrentPage(currentPageProp);\r\n }\r\n }, [currentPageProp]);\r\n\r\n const updatePagination = (currentPage: number) => {\r\n onPageChange(currentPage);\r\n setCurrentPage(currentPage);\r\n };\r\n\r\n const nextPage = () => {\r\n updatePagination(currentPage + 1);\r\n };\r\n\r\n const prevPage = () => {\r\n if (currentPage > 1) {\r\n updatePagination(currentPage - 1);\r\n }\r\n };\r\n\r\n const goToPage = (index: number | string) => {\r\n if (typeof index === 'string') {\r\n index = parseInt(index);\r\n }\r\n updatePagination(index);\r\n };\r\n\r\n const renderPaginationSteps = () => {\r\n return (\r\n <>\r\n {totalAmountSteps &&\r\n totalAmountSteps.map((_, index) => {\r\n return (\r\n \r\n goToPage(index + 1)}\r\n >\r\n {index + 1}\r\n \r\n \r\n );\r\n })}\r\n \r\n );\r\n };\r\n\r\n return (\r\n \r\n {totalRecords ? (\r\n <>\r\n \r\n \r\n \r\n {isMobile ? (\r\n goToPage(result)}\r\n isPagination\r\n />\r\n ) : (\r\n {renderPaginationSteps()}\r\n )}\r\n \r\n \r\n \r\n \r\n ) : null}\r\n \r\n );\r\n}\r\n\r\nconst PaginationWrapper = styled('div', {\r\n px: 4,\r\n mt: 8,\r\n display: 'flex',\r\n alignItems: 'stretch',\r\n w: '100%',\r\n justifyContent: 'center',\r\n});\r\n\r\nconst StepsWrapper = styled('div', {\r\n maxW: 80,\r\n overflow: 'auto',\r\n display: 'flex',\r\n alignItems: 'center',\r\n});\r\n\r\nconst StyledIconButton = styled(Button, {});\r\n\r\nconst Step = styled('span', {\r\n mx: 6,\r\n color: '$grey800',\r\n '&:hover': {\r\n cursor: 'pointer',\r\n color: '$black',\r\n },\r\n variants: {\r\n isActive: {\r\n true: {\r\n fontWeight: '$fw700',\r\n color: '$black',\r\n },\r\n },\r\n },\r\n});\r\n\r\nexport default React.memo(Pagination);\r\n","import React from 'react';\r\nimport { H1 } from '../Atoms/Typography/Headings/Heading';\r\nimport Select from '../Shared/Input/Select';\r\nimport Pagination from '../Shared/Pagination/Pagination';\r\nimport { useTranslationData } from '../Shared/Providers/TranslationProvider';\r\nimport { styled } from '../stitches.config';\r\nimport XhtmlArea from '../Molecules/XHtmlArea/XHtmlArea';\r\n\r\ntype PropType = {\r\n heading: string;\r\n totalCount: number;\r\n introText: string;\r\n changePage: (event: any) => void;\r\n changePageSize: (value: any) => void;\r\n pageSize: number;\r\n pageIndex: number;\r\n children: React.ReactNode;\r\n};\r\n\r\nfunction OrderListing({\r\n totalCount,\r\n heading,\r\n introText,\r\n changePage,\r\n changePageSize,\r\n pageSize,\r\n pageIndex,\r\n children,\r\n}: PropType) {\r\n const { 'orderHistoryPage/pageSize': pageSizeLabel } = useTranslationData();\r\n\r\n const pageCount = totalCount / pageSize;\r\n\r\n return (\r\n \r\n {heading && (\r\n \r\n {heading}\r\n \r\n )}\r\n {introText && {introText}}\r\n \r\n {children}\r\n \r\n \r\n );\r\n}\r\n\r\nconst Heading = styled(H1, {\r\n fs: 11,\r\n fontWeight: '$fw300',\r\n lineHeight: '32px',\r\n mb: 2,\r\n '@mediaMinLarge': {\r\n fs: 13,\r\n },\r\n variants: {\r\n bottomMargin: {\r\n true: {\r\n mb: 4,\r\n },\r\n },\r\n },\r\n});\r\n\r\nconst IntroText = styled('p', {});\r\n\r\nconst OrderListingWrapper = styled('div', {\r\n display: 'block',\r\n p: 4,\r\n\r\n maxW: 256,\r\n background: '$white',\r\n m: 4,\r\n '@mediaMinLarge': {\r\n w: '100%',\r\n mx: 'auto',\r\n my: 12,\r\n p: 8,\r\n },\r\n});\r\n\r\nexport default OrderListing;\r\n","import OrderDetailsModel from '../Order/Models/OrderDetailsModel.interface';\r\nimport OrderRowItem from '../Order/Models/OrderRowItem.interface';\r\nimport { useTranslationData } from '../Shared/Providers/TranslationProvider';\r\nimport { styled } from '../stitches.config';\r\nimport OrderListingProductCard from './OrderListingProductCard';\r\n\r\ntype PropType = {\r\n order: OrderDetailsModel;\r\n};\r\n\r\nfunction OrderRowListing({ order }: PropType) {\r\n const {\r\n 'orderListing/totalsum': totalSumLabel,\r\n 'orderListing/paymentmethod': paymentMethodLabel,\r\n 'orderListing/customerInformation': customerInformationLabel,\r\n 'orderListing/products': productsLabel,\r\n 'orderListing/status': statusLabel,\r\n } = useTranslationData();\r\n\r\n return (\r\n <>\r\n \r\n {`${statusLabel}: ${order.status}`}\r\n {`${totalSumLabel}: ${order.orderGrandTotal}`}\r\n {`${paymentMethodLabel}: ${order.paymentMethod}`}\r\n \r\n {order.customerInfo && (\r\n \r\n \r\n {customerInformationLabel}\r\n \r\n {order.customerInfo.address1}\r\n {`${order.customerInfo.zip} ${order.customerInfo.city}`}\r\n \r\n \r\n \r\n )}\r\n \r\n {productsLabel}\r\n {order.orderRows?.map((product: OrderRowItem) => (\r\n \r\n ))}\r\n \r\n \r\n );\r\n}\r\n\r\nconst ProductItems = styled('div', {\r\n mt: 4,\r\n '@mediaMinLarge': {\r\n mt: 8,\r\n },\r\n});\r\n\r\nconst OrderInformation = styled('div', {\r\n display: 'flex',\r\n flexDirection: 'column',\r\n});\r\n\r\nconst StyledSpan = styled('span', {\r\n mt: 1.25,\r\n});\r\n\r\nconst HeadingLabel = styled('span', {\r\n fs: 8,\r\n fontWeight: '$fw700',\r\n lineHeight: '28px',\r\n});\r\n\r\nconst CustomerInformation = styled('div', {\r\n mt: 4,\r\n '@mediaMinLarge': {\r\n display: 'flex',\r\n },\r\n});\r\n\r\nconst Delivery = styled('div', {\r\n display: 'flex',\r\n flexDirection: 'column',\r\n});\r\n\r\nconst CustomerInformationContent = styled('div', {});\r\n\r\nexport default OrderRowListing;\r\n","import { useEffect, useState } from 'react';\r\nimport OrderDetailsModel from '../../Order/Models/OrderDetailsModel.interface';\r\nimport OrderInfoViewModel from '../../Order/Models/OrderInfoViewModel.interface';\r\nimport OrderHistoryPageModel from '../../OrderHistoryPage/Models/OrderHistoryPageModel.interface';\r\nimport useCurrentPage from '../../Shared/Hooks/useCurrentPage';\r\nimport { useAppSettingsData } from '../../Shared/Providers/AppSettingsProvider';\r\nimport { useUserStateData } from '../../Shared/UserContextProvider/UserContextProvider';\r\nimport { GetOrders } from '../../OrderComponent/Order';\r\nimport OrderListing from '../../OrderComponent/OrderListing';\r\nimport { getFormattedDate } from '../../Shared/Common/Helpers';\r\nimport Accordion from '../../Molecules/Accordion/Accordion';\r\nimport OrderRowListing from '../../OrderComponent/OrderRowListing';\r\nimport Dots from '../../Atoms/Loaders/Dots';\r\nimport Divider from '../../Atoms/Divider/Divider';\r\nimport { styled } from '../../stitches.config';\r\nimport KexLink from '../../Kex/KexLink';\r\n\r\nfunction OrderHistoryPage() {\r\n const {\r\n translations: {\r\n 'customerInfo/myOrders/noOrders': noOrdersLabel,\r\n 'orderHistoryPage/dateString': dateLabel,\r\n },\r\n languageRoute,\r\n requestToken,\r\n staticPages: { orderDetailsPage },\r\n } = useAppSettingsData();\r\n\r\n const [pageIndex, setPageIndex] = useState(1);\r\n const [pageSize, setPageSize] = useState(5);\r\n const [totalCount, setTotalCount] = useState(0);\r\n const currentPage = useCurrentPage();\r\n const [isLoading, setIsLoading] = useState(false);\r\n\r\n const { customerId } = useUserStateData();\r\n\r\n const url = `/api/${\r\n languageRoute || 'en'\r\n }/order/GetOrderHistory?customerId=${customerId}`;\r\n const [orders, setOrders] = useState();\r\n\r\n const fetchData = async (loadMoreUrl?: string) => {\r\n if (customerId) {\r\n let endpoint =\r\n loadMoreUrl || `${url}&pageIndex=${pageIndex}&pageSize=${pageSize}`;\r\n const data: OrderInfoViewModel = await GetOrders(\r\n currentPage.channelId,\r\n endpoint,\r\n setIsLoading\r\n );\r\n\r\n if (data) {\r\n setOrders(data.orderHistory);\r\n setTotalCount(data.totalOrdersCount);\r\n }\r\n }\r\n };\r\n\r\n async function handleChangePage(value: any) {\r\n setPageIndex(value);\r\n\r\n const newUrl = `${url}&pageIndex=${value}&pageSize=${pageSize}`;\r\n\r\n fetchData(newUrl);\r\n }\r\n\r\n const handleChangePageSize = (value: any) => {\r\n setPageSize(value);\r\n const newUrl = `${url}&pageIndex=${pageIndex}&pageSize=${value}`;\r\n fetchData(newUrl);\r\n };\r\n\r\n useEffect(() => {\r\n fetchData();\r\n }, [currentPage.channelId]);\r\n\r\n return (\r\n
\r\n {orders && !!orders.length ? (\r\n <>\r\n \r\n {orders.map((order: OrderDetailsModel) => {\r\n const title = (\r\n
\r\n
\r\n \r\n {order.externalOrderID}\r\n \r\n {` - ${dateLabel}: ${getFormattedDate(order.orderDate)}`}\r\n
\r\n
\r\n );\r\n\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n );\r\n })}\r\n \r\n \r\n ) : !isLoading ? (\r\n
{noOrdersLabel}
\r\n ) : (\r\n \r\n \r\n \r\n )}\r\n
\r\n );\r\n}\r\n\r\nconst MaxDivider = styled(Divider, {\r\n w: '100%',\r\n h: 0.5,\r\n opacity: 0.5,\r\n m: 0,\r\n});\r\n\r\nconst StyledAccountKexLink = styled(KexLink, {\r\n fs: 8,\r\n fontWeight: '$fw700',\r\n lineHeight: '28px',\r\n // letterSpacing: theme.letterSpacing.moreWide,\r\n});\r\n\r\nconst DotsWrapper = styled('div', {\r\n display: 'flex',\r\n justifyContent: 'center',\r\n pb: 9,\r\n});\r\n\r\nexport default OrderHistoryPage;\r\n","import { styled } from '../../stitches.config';\r\n\r\ntype PropType = {\r\n onSelect: (value: any) => void;\r\n selectedValue: any;\r\n label: string;\r\n options: any[];\r\n};\r\n\r\nconst Select = ({ onSelect, selectedValue, label, options }: PropType) => {\r\n const handleSelect = (event: any) => onSelect(event.target.value);\r\n\r\n return (\r\n \r\n \r\n \r\n {options.map((option: any) => (\r\n \r\n ))}\r\n \r\n \r\n );\r\n};\r\n\r\nconst SelectWrapper = styled('div', { mb: 4 });\r\n\r\nconst Label = styled('label', {\r\n fs: 8,\r\n fontWeight: '$fw700',\r\n lineHeight: '28px',\r\n});\r\n\r\nconst StyledSelect = styled('select', {\r\n fs: 8,\r\n fontWeight: '$fw700',\r\n backgroundColor: 'inherit',\r\n h: 9,\r\n ml: 4,\r\n px: 3,\r\n border: '1px solid $primary',\r\n});\r\n\r\nexport default Select;\r\n"],"names":["StyledIcon","css","mr","HoverLine","styled","h","w","position","b","mx","transition","variants","color","primary","backgroundColor","secondary","_defineProperty","concat","BaseIconStyle","fill","transparent","accent","defaultVariants","StyledButton","BaseButtonStyled","overflow","size","_ref","onClick","children","icon","disabled","type","border","rest","_objectWithoutProperties","_excluded","Icon","KexIconLoader","_jsxs","_objectSpread","_jsx","style","onBackground","Wrapper","Dot","display","fs","lineHeigh","animation","animationFrames","animationDuration","timings","animationIterationCount","animationTimingFunction","animationFillMode","animationDelay","values","currentValue","setSelectedValue","_ref$isPagination","isPagination","label","_ref$isValid","isValid","_ref$disabled","returnIndex","defaultValue","_useState","useState","_useState2","_slicedToArray","showValues","toggleValues","ref","useRef","dropDownStyles","dropdownContainerInvalid","mb","xy","currentValueStyle","tabIndex","onBlur","e","currentTarget","contains","relatedTarget","marginBottom","FormLabel","DropDownContainer","ValueFlex","prev","CurrentValue","length","ArrowIconWrapper","StyledArrow","transform","marginRight","DropDown","map","value","index","DropDownButton","updateValue","toString","opacity","width","textAlign","boxShadow","my","justifyContent","alignItems","cursor","history","maxW","flexDirection","zIndex","lineHeight","ChevronIcon","wh","transitionDelay","transitionProperty","fontWeight","pb","PaginationStep","isActive","Step","true","React","Pagination","totalRecords","pageCount","onPageChange","currentPageProp","currentPage","isMobile","useMedia","mediaQueryTypes","setCurrentPage","totalAmountSteps","_toConsumableArray","Array","Math","ceil","useEffect","undefined","updatePagination","goToPage","parseInt","PaginationWrapper","_Fragment","StyledIconButton","ArrowIcon","rotateLeft","GenericDropDown","result","StepsWrapper","_","px","mt","Button","Heading","H1","bottomMargin","IntroText","OrderListingWrapper","p","background","m","totalCount","heading","introText","changePage","changePageSize","pageSize","pageIndex","pageSizeLabel","useTranslationData","noMargin","Select","selectedValue","onSelect","options","text","ProductItems","OrderInformation","StyledSpan","HeadingLabel","CustomerInformation","Delivery","CustomerInformationContent","_order$orderRows","order","_useTranslationData","totalSumLabel","paymentMethodLabel","customerInformationLabel","productsLabel","statusLabel","status","orderGrandTotal","paymentMethod","customerInfo","address1","zip","city","orderRows","product","OrderListingProductCard","articleNumber","MaxDivider","Divider","StyledAccountKexLink","KexLink","DotsWrapper","_useAppSettingsData","useAppSettingsData","_useAppSettingsData$t","translations","noOrdersLabel","dateLabel","languageRoute","orderDetailsPage","requestToken","staticPages","setPageIndex","_useState3","_useState4","setPageSize","_useState5","_useState6","setTotalCount","useCurrentPage","_useState7","_useState8","isLoading","setIsLoading","customerId","useUserStateData","url","_useState9","_useState10","orders","setOrders","fetchData","_asyncToGenerator","_regeneratorRuntime","mark","_callee","loadMoreUrl","endpoint","data","wrap","_context","next","GetOrders","channelId","sent","orderHistory","totalOrdersCount","stop","_x","apply","arguments","_handleChangePage","_callee2","newUrl","_context2","OrderListing","pageTitle","pageIntroText","_x2","title","href","externalOrderID","getFormattedDate","orderDate","Accordion","OrderRowListing","orderId","Dots","SelectWrapper","Label","StyledSelect","ml","onChange","event","target","option"],"sourceRoot":""}