{"version":3,"sources":["api/OrdersApi/index.ts","i18n.tsx","core/layouts/container/index.tsx","core/layouts/backButtonLayout/styles.ts","core/layouts/backButtonLayout/index.tsx","pages/CheackOrders/styles.tsx","core/components/container/styles.ts","core/components/container/index.tsx","core/components/tabs/styles.ts","core/components/tabs/dottedTabs.tsx","pages/CheackOrders/index.tsx","core/context/context.ts","core/components/Error/index.tsx","core/utils/patterns.ts","core/components/text/descreptionText.tsx","pages/OrderSearch/styles.tsx","pages/OrderSearch/index.tsx","routes/index.tsx","core/context/GlobalState.tsx","App.tsx","serviceWorker.ts","index.tsx","api/index.ts"],"names":["OrderApi","getAllOrders","props","a","api","get","lang","customer","status","getOrder","order_id","win","window","lng","storageLanguage","localStorage","getItem","indexOf","i18n","use","XHR","initReactI18next","init","debug","keySeparator","interpolation","escapeValue","backend","loadPath","allowMultiLoading","react","wait","useSuspense","useStyles","makeStyles","theme","createStyles","root","height","width","FullscreenLayout","children","classes","useTheme","className","container","breakpoints","down","padding","spacing","paddingLeft","paddingRieght","steps","fontWeight","fontSize","button","marginTop","marginLeft","borderRadius","justifyContent","fontStyle","letterSpacing","input","borderColor","withRouter","useTranslation","t","langDir","dir","Grid","style","direction","justify","alignItems","item","xs","Box","mt","pl","pr","mb","bigTitle","display","listItem","minWidth","paddingTop","paddingBottom","rowContainer","flexWrap","gap","flexDirection","color","flex","tabItem","position","cursor","opacity","WebkitUserSelect","msUserSelect","userSelect","transition","selectedTab","transform","DottedTabs","data","Typography","component","variant","wrap","map","tab","i","itemkey","key","TabItem","onClick","click","sm","selected","pb","pt","name","DoddedUnderline","borderBottom","isRTL","tabs","id","onTabClick","useState","tabsItems","setTabsItems","items","newSelectionStatus","el","useEffect","params","then","res","console","log","catch","e","finally","top","background","List","value","ListItem","ListItemText","primary","secondary","ListItemIcon","Divider","React","createContext","_step","setStep","ErrorComponent","errors","minLength","maxLength","patternMessage","render","type","isEmail","DescreptionText","text","bigTextField","hieght","borderWidth","lineHeight","caretColor","store_order_status_url","oId","URLSearchParams","location","search","viewReqStatus","open","viewRequestUrl","useHistory","useContext","Context","useForm","handleSubmit","register","watch","control","orderid","email","href","onSubmit","setItem","document","as","TextField","defaultValue","fullWidth","InputLabelProps","shrink","rules","required","label","pattern","Button","disabled","endIcon","mr","Row","rest","RowItem","Routes","path","OrderSearch","GlobalState","state","step","setState","Provider","this","Component","apptheme","createMuiTheme","shadows","Array","fill","typography","fontFamily","palette","main","light","dark","contrastThreshold","App","body","setAttribute","jss","create","plugins","jssPreset","rtl","StylesProvider","ThemeProvider","Boolean","hostname","match","ReactDOM","StrictMode","fallback","getElementById","navigator","serviceWorker","ready","registration","unregister","error","message","token","reGenerateTokenUrl","storeServerURL","cem_key","config","httpsAgent","https","Agent","rejectUnauthorized","crossdomain","withCredentials","baseURL","process","REACT_APP_API","headers","Accept","Authorization","axios","interceptors","response","code","Promise","resolve","reject","fetch","method","result","err","JSON","stringify","oldRequest","request","conf"],"mappings":"gMAaaA,EAAW,CAAEC,aATR,uCAAG,WAAOC,GAAP,SAAAC,EAAA,sEACbC,MAAIC,IAAJ,qCAC0BH,EAAMI,KADhC,qBACiDJ,EAAMK,UADvD,OAEAL,EAAMM,OAAS,UAAYN,EAAMM,OAAS,KAH7B,mFAAH,sDASsBC,SAH1B,uCAAG,WAAOC,GAAP,SAAAP,EAAA,sEACTC,MAAIC,IAAJ,+CAAgDK,IADvC,mFAAH,wD,qOCPRC,EAAWC,OAGbC,EAAyC,MAAfF,EAAG,KAAmB,KAAOA,EAAG,KAKxDG,EAAkBC,aAAaC,QAAQ,YACzCF,GAPqB,CAAC,KAAM,MAOQG,QAAQH,IAAoB,IAClED,EAAMF,EAAG,MAGXO,IACGC,IAAIC,KACJD,IAAIE,KACJC,KAAK,CACJT,MACAU,OAAO,EACPC,cAAc,EACdC,cAAe,CACbC,aAAa,GAEfC,QAAS,CAGPC,SAAU,8DACVC,mBAAmB,GAErBC,MAAO,CACLC,MAAM,EACNC,aAAa,KAIJd,EAAf,EAAeA,I,y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,EAAiB,GAAKD,EAAoB,CAC9CwB,OAAQ,MACRX,QAAS,CACP,eAAgB,2BAChB,UAAWX,KAGZ5H,MAAK,SAACC,GAAD,OAASA,EAAI6B,UAElB9B,MAAK,SAACmJ,GAELJ,EAAQI,MAET/I,OAAM,SAACgJ,GAENJ,EAAOI,SApCTlJ,QAAQC,IACN,iCACAkJ,KAAKC,UAAU/B,EAAMqB,SAASf,SAJhC,IAMgB0B,EAAehC,EAAMqB,SAA7Bf,OAER,OAAOjQ,EAAI4R,QAAJ,eAAiBD,IAM1B,OAHA9F,SAASlB,SAASe,KAAlB,2DACkB,OAAhBlL,OAAON,KAAgB,QAAU,wCAE5ByP,KA6BX3P,EAAI+Q,aAAaa,QAAQ7Q,IAAzB,+BAAAhB,EAAA,MACE,WAAO8R,GAAP,SAAA9R,EAAA,6DACE8R,EAAKlB,QAAQE,cAAgB,UAAYhB,EACzCgC,EAAKlB,QAAQ,WAAaX,EAF5B,kBAGS6B,GAHT,2CADF,uDAME,SAACL,GACClJ,QAAQC,IAAI,oBAAqBiJ,Q","file":"static/js/main.22a65a46.chunk.js","sourcesContent":["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\r\nimport { api } from \"../index\";\r\nimport { OrderApiProps } from \"./modals\";\r\n\r\nconst getAllOrders = async (props: OrderApiProps) =>\r\n await api.get(\r\n `/wp-json/wc/v3/orders?lang=${props.lang}&customer=${props.customer}${\r\n !!props.status ? \"status=\" + props.status : \"\"\r\n }`\r\n );\r\nconst getOrder = async (order_id: string) =>\r\n await api.get(`/wps/portal/web/eshop/track?order_id=${order_id}`);\r\n\r\nexport const OrderApi = { getAllOrders, getOrder };\r\n","import i18n from \"i18next\";\r\nimport { initReactI18next } from \"react-i18next\";\r\nimport XHR from \"i18next-xhr-backend\";\r\nconst win: any = window;\r\n\r\nconst allowedLanguages = [\"en\", \"ar\"];\r\nlet lng: string | undefined = win[\"lang\"] == null ? \"en\" : win[\"lang\"];\r\n// window.lang == null ? 'en':window.lang\r\n// lng = 'ar';\r\n// console.log(lng);\r\n\r\nconst storageLanguage = localStorage.getItem(\"language\");\r\nif (storageLanguage && allowedLanguages.indexOf(storageLanguage) > -1) {\r\n lng = win[\"lang\"];\r\n}\r\n\r\ni18n\r\n .use(XHR)\r\n .use(initReactI18next)\r\n .init({\r\n lng,\r\n debug: true,\r\n keySeparator: false,\r\n interpolation: {\r\n escapeValue: false,\r\n },\r\n backend: {\r\n //loadPath: '/translations/{{lng}}.json',\r\n\r\n loadPath: \"/.store.orders.ui/react-app/build/translations/{{lng}}.json\",\r\n allowMultiLoading: true,\r\n },\r\n react: {\r\n wait: true,\r\n useSuspense: true,\r\n },\r\n });\r\n\r\nexport default i18n;\r\n","import React, { Props } from \"react\";\r\nimport { makeStyles, createStyles, Theme } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\n\r\nconst useStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n height: \"auto\",\r\n // overflow: 'hidden',\r\n width: \"100vw\",\r\n },\r\n })\r\n);\r\n\r\nexport const FullscreenLayout = (props: Props) => {\r\n const { children } = props;\r\n // const { t, i18n } = useTranslation();\r\n // const history = useHistory();\r\n // const context = useContext(Context);\r\n const classes = useStyles();\r\n const theme = useTheme();\r\n // const win: any = window;\r\n // const langDir = i18n.dir(win['lang'] as string);\r\n return
{props.children}
;\r\n};\r\n","import { makeStyles, createStyles, Theme } from \"@material-ui/core/styles\";\r\n\r\nexport const useStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n width: \"100vw\",\r\n height: \"auto\",\r\n },\r\n container: {\r\n width: \"100%\",\r\n height: \"auto\",\r\n // overflow: 'hidden',\r\n [theme.breakpoints.down(\"xs\")]: {\r\n padding: theme.spacing(0),\r\n paddingLeft: theme.spacing(4),\r\n paddingRieght: theme.spacing(4),\r\n },\r\n },\r\n steps: {\r\n fontWeight: 400,\r\n fontSize: theme.spacing(1),\r\n },\r\n button: {\r\n marginTop: theme.spacing(5),\r\n marginLeft: 0,\r\n borderRadius: 20,\r\n width: 240,\r\n justifyContent: \"space-between\",\r\n height: 40,\r\n fontWeight: 700,\r\n fontStyle: \"normal\",\r\n fontSize: theme.spacing(1.5),\r\n letterSpacing: \"0.8px\",\r\n },\r\n input: {\r\n fontSize: theme.spacing(1),\r\n \"& .MuiInput-underline:after\": {\r\n borderColor: \"#D5D8DF\",\r\n },\r\n \"& .MuiInput-underline:before\": {\r\n borderColor: \"#D5D8DF\",\r\n },\r\n },\r\n })\r\n);\r\n","import React, { useContext } from \"react\";\r\nimport { makeStyles, createStyles, Theme } from \"@material-ui/core/styles\";\r\nimport { withRouter, useHistory } from \"react-router-dom\";\r\nimport { useForm, Controller } from \"react-hook-form\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nimport { FullscreenLayout } from \"core/layouts/container\";\r\nimport { Typography } from \"@material-ui/core\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport { blue } from \"@material-ui/core/colors\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"core/components/container\";\r\n\r\nimport { useStyles } from \"./styles\";\r\ntype Inputs = {\r\n mobile: number;\r\n};\r\n\r\nconst BackButtonLayout = (props: React.PropsWithChildren) => {\r\n const { children } = props;\r\n const { t, i18n } = useTranslation();\r\n const classes = useStyles();\r\n const theme = useTheme();\r\n const win: any = window;\r\n const langDir = i18n.dir(win[\"lang\"] as string);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n {children}\r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default withRouter(BackButtonLayout);\r\n","import { makeStyles, createStyles, Theme } from \"@material-ui/core/styles\";\r\n\r\nexport const useStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n height: \"auto\",\r\n },\r\n container: {\r\n [theme.breakpoints.down(\"xs\")]: {\r\n marginLeft: theme.spacing(0),\r\n padding: theme.spacing(2),\r\n },\r\n },\r\n bigTitle: {\r\n [theme.breakpoints.down(\"xs\")]: {\r\n display: \"none\",\r\n },\r\n },\r\n listItem: {\r\n // width: '40%',\r\n\r\n \"& .MuiListItemIcon-root\": {\r\n minWidth: \"0px !important\",\r\n },\r\n padding: 0,\r\n paddingTop: theme.spacing(2),\r\n paddingBottom: theme.spacing(2),\r\n },\r\n rowContainer: {\r\n flexWrap: \"nowrap\",\r\n width: \"40%\",\r\n gap: 15,\r\n [theme.breakpoints.down(\"sm\")]: {\r\n width: \"100%\",\r\n flexDirection: \"column\",\r\n },\r\n },\r\n item: {\r\n width: \"100%\",\r\n \"& .MuiFormLabel-root\": {\r\n color: \"black\",\r\n },\r\n\r\n \"& input[type='file']\": {\r\n color: \"transparent\",\r\n // display: 'none !important',\r\n },\r\n [theme.breakpoints.down(\"sm\")]: {\r\n flex: 12,\r\n width: \"100% !important\",\r\n },\r\n },\r\n\r\n input: {\r\n width: \"100%\",\r\n fontSize: theme.spacing(1),\r\n \"& .MuiInput-underline:after\": {\r\n borderColor: \"#D5D8DF\",\r\n },\r\n \"& .MuiInput-underline:before\": {\r\n borderColor: \"#D5D8DF\",\r\n },\r\n },\r\n steps: {\r\n fontWeight: 400,\r\n fontSize: theme.spacing(1),\r\n },\r\n button: {\r\n marginTop: theme.spacing(4),\r\n marginLeft: 0,\r\n borderRadius: \"40px !important\",\r\n justifyContent: \"space-between\",\r\n height: 40,\r\n fontWeight: 700,\r\n fontStyle: \"normal\",\r\n fontSize: theme.spacing(1.5),\r\n letterSpacing: \"0.8px\",\r\n [theme.breakpoints.down(\"sm\")]: {\r\n flex: 12,\r\n width: \"100%\",\r\n },\r\n },\r\n })\r\n);\r\n","import { makeStyles, createStyles, Theme } from \"@material-ui/core/styles\";\r\n\r\nexport const useStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n width: \"100vw\",\r\n height: \"auto\",\r\n // overflow: 'hidden',\r\n },\r\n container: {\r\n [theme.breakpoints.down(\"xs\")]: {\r\n paddingLeft: theme.spacing(1),\r\n paddingRieght: theme.spacing(1),\r\n },\r\n },\r\n })\r\n);\r\n","import React, { useContext } from \"react\";\r\nimport { makeStyles, createStyles, Theme } from \"@material-ui/core/styles\";\r\nimport { withRouter, useHistory } from \"react-router-dom\";\r\nimport { useForm, Controller } from \"react-hook-form\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nimport { FullscreenLayout } from \"core/layouts/container\";\r\n\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\n\r\nimport Box from \"@material-ui/core/Box\";\r\n\r\nimport { useStyles } from \"./styles\";\r\n\r\ninterface ContainerProps {\r\n children: any;\r\n mt: number;\r\n pl: number;\r\n pr: number;\r\n}\r\nconst Container = (props: React.PropsWithChildren) => {\r\n const { children, mt, pl, pr } = props;\r\n const { t, i18n } = useTranslation();\r\n const classes = useStyles();\r\n const theme = useTheme();\r\n const win: any = window;\r\n const langDir = i18n.dir(win[\"lang\"] as string);\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n {children}\r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default withRouter(Container);\r\n","import { makeStyles, createStyles, Theme } from \"@material-ui/core/styles\";\r\nimport clsx from \"clsx\";\r\n\r\nexport const useStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n tabItem: {\r\n position: \"relative\",\r\n cursor: \"pointer\",\r\n opacity: \"0.5\",\r\n WebkitUserSelect: \"none\",\r\n msUserSelect: \"none\",\r\n userSelect: \"none\",\r\n transition: \"opacity 2s\",\r\n \"& :hover\": {\r\n opacity: \"1\",\r\n },\r\n },\r\n selectedTab: {\r\n cursor: \"pointer\",\r\n opacity: 1,\r\n },\r\n \"@keyframes pulse\": {\r\n \"0%\": {\r\n transform: \"scale(0.3)\",\r\n },\r\n \"100%\": {\r\n transform: \"scale(2)\",\r\n },\r\n },\r\n })\r\n);\r\n","/* eslint-disable react/jsx-key */\r\nimport React from \"react\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport { Typography } from \"@material-ui/core\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport { useStyles } from \"./styles\";\r\nimport { TabProps, TabsProps } from \"core/types\";\r\n\r\nconst DottedTabs = (props: TabsProps) => {\r\n const { data } = props;\r\n\r\n return (\r\n <>\r\n \r\n \r\n {data.map((tab, i) => (\r\n \r\n ))}\r\n \r\n \r\n \r\n );\r\n};\r\ninterface TabComponentProps {\r\n tab: TabProps;\r\n itemkey: any;\r\n}\r\nconst TabItem = (props: TabComponentProps) => {\r\n const { t, i18n } = useTranslation();\r\n const { tab, itemkey } = props;\r\n\r\n const win: any = window;\r\n const langDir = i18n.dir(win[\"lang\"] as string);\r\n const isRTL = langDir === \"rtl\";\r\n const classes = useStyles();\r\n const theme = useTheme();\r\n\r\n return (\r\n tab.click(tab)}\r\n key={itemkey}\r\n item\r\n sm={2}\r\n xs={6}\r\n className={tab.selected ? classes.selectedTab : classes.tabItem}\r\n >\r\n \r\n {tab.name}\r\n \r\n {tab.selected && }\r\n \r\n );\r\n};\r\nconst DoddedUnderline = () => {\r\n return (\r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport { DottedTabs };\r\n","import BackButtonLayout from \"core/layouts/backButtonLayout\";\r\n/* eslint-disable react/prop-types */\r\nimport React, { useContext, useState, useEffect } from \"react\";\r\nimport { withRouter, useHistory, RouteComponentProps } from \"react-router-dom\";\r\nimport List from \"@material-ui/core/List\";\r\nimport ListItem from \"@material-ui/core/ListItem\";\r\n\r\nimport ListItemIcon from \"@material-ui/core/ListItemIcon\";\r\nimport ListItemText from \"@material-ui/core/ListItemText\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport Divider from \"@material-ui/core/Divider\";\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\nimport ArrowBackIos from \"@material-ui/icons/ArrowBackIos\";\r\nimport { Typography } from \"@material-ui/core\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Context from \"core/context/context\";\r\nimport { useStyles } from \"./styles\";\r\nimport Container from \"core/components/container\";\r\nimport { DottedTabs } from \"core/components/tabs\";\r\nimport { TabProps, TabsProps } from \"core/types\";\r\nimport { OrderApi, OrderApiProps } from \"api\";\r\n\r\ntype Inputs = {\r\n orderid: string;\r\n email: string;\r\n};\r\ninterface Props {\r\n step?: number;\r\n}\r\n\r\nconst CheackOrders = (\r\n props: React.PropsWithChildren\r\n) => {\r\n const { t, i18n } = useTranslation();\r\n const win: any = window;\r\n const langDir = i18n.dir(win[\"lang\"] as string);\r\n const isRTL = langDir === \"rtl\";\r\n const classes = useStyles();\r\n const theme = useTheme();\r\n const tabs: TabsProps = {\r\n data: [\r\n {\r\n name: \"Orders\",\r\n id: 0,\r\n selected: true,\r\n click: (item: TabProps) => onTabClick(item),\r\n },\r\n {\r\n name: \"Completed\",\r\n id: 1,\r\n selected: false,\r\n click: (item: TabProps) => onTabClick(item),\r\n },\r\n ],\r\n };\r\n const [tabsItems, setTabsItems] = useState(tabs);\r\n const onTabClick = (item: TabProps) => {\r\n const items: TabsProps = newSelectionStatus(item);\r\n setTabsItems({ ...items });\r\n };\r\n\r\n const newSelectionStatus = (item: TabProps): TabsProps => {\r\n return {\r\n data: tabsItems.data.map((el) =>\r\n el.id === item.id\r\n ? { ...el, selected: true }\r\n : { ...el, selected: false }\r\n ),\r\n };\r\n };\r\n useEffect(() => {\r\n const params: OrderApiProps = { lang: win[\"lang\"], customer: \"\" };\r\n OrderApi.getAllOrders(params)\r\n .then((res) => {\r\n console.log(res);\r\n })\r\n .catch((e) => {\r\n console.log(e);\r\n })\r\n .finally(() => {\r\n console.log(\"done\");\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 \r\n {t(\"CheckYourLatestOrderStatus\")}\r\n \r\n \r\n \r\n \r\n \r\n {[\"Order ES-9191234\", \"Order ES-9190002\", \"Order ES-9190002\"].map(\r\n (value, i) => (\r\n \r\n \r\n \r\n {value}\r\n \r\n }\r\n secondary={\r\n \r\n {\"18/08/2020\"}\r\n \r\n }\r\n />\r\n \r\n {!isRTL ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n )\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default withRouter(CheackOrders);\r\n","/* eslint-disable @typescript-eslint/no-empty-function */\r\n/* eslint-disable @typescript-eslint/no-unused-vars */\r\nimport React from \"react\";\r\n\r\nexport default React.createContext({\r\n _step: 1,\r\n setStep: (_step: number) => {},\r\n});\r\n","import React from \"react\";\r\nimport { ErrorMessage } from \"@hookform/error-message\";\r\nimport { Typography } from \"@material-ui/core\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\n\r\ninterface ErrorProps {\r\n errors: any;\r\n name: string;\r\n maxLength?: number;\r\n minLength?: number;\r\n patternMessage?: string;\r\n}\r\nconst ErrorComponent = (props: ErrorProps) => {\r\n const { errors, name, minLength, maxLength, patternMessage } = props;\r\n const theme = useTheme();\r\n return (\r\n (\r\n \r\n \r\n {errors[name]?.type === \"maxLength\"\r\n ? maxLength + \" you rechied the max number\"\r\n : errors[name]?.type === \"minLength\"\r\n ? \"the minimum length is \" + minLength\r\n : errors[name]?.type === \"required\"\r\n ? \"field is required\"\r\n : errors[name]?.type === \"pattern\"\r\n ? patternMessage\r\n : \"\"}\r\n \r\n \r\n )}\r\n />\r\n );\r\n};\r\nexport { ErrorComponent };\r\n","export const isEmail = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}$/i;\r\nexport const isMobile = /^(05)([0-9]{8})$/i;\r\n","import React, { useContext, useState, CSSProperties } from \"react\";\r\nimport { Typography } from \"@material-ui/core\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\n\r\ninterface TextProps {\r\n text: string;\r\n mb?: number;\r\n mt?: number;\r\n fontSize?: number;\r\n children?: any;\r\n style?: CSSProperties;\r\n}\r\nconst DescreptionText = (props: TextProps) => {\r\n const { text, mt, mb, fontSize, children, style } = props;\r\n const theme = useTheme();\r\n\r\n return (\r\n \r\n \r\n {text}  {children}\r\n \r\n \r\n );\r\n};\r\nexport { DescreptionText };\r\n","import { makeStyles, createStyles, Theme } from \"@material-ui/core/styles\";\r\n\r\nexport const useStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n height: \"auto\",\r\n },\r\n container: {\r\n [theme.breakpoints.down(\"xs\")]: {\r\n marginLeft: theme.spacing(0),\r\n padding: theme.spacing(2),\r\n },\r\n },\r\n rowContainer: {\r\n flexWrap: \"nowrap\",\r\n width: \"40%\",\r\n gap: 15,\r\n [theme.breakpoints.down(\"sm\")]: {\r\n width: \"100%\",\r\n flexDirection: \"column\",\r\n },\r\n },\r\n item: {\r\n width: \"100%\",\r\n \"& .MuiFormLabel-root\": {\r\n color: \"black\",\r\n },\r\n // '& #file-upload-button': {\r\n // display: 'none !important',\r\n // },\r\n \"& input[type='file']\": {\r\n color: \"transparent\",\r\n // display: 'none !important',\r\n },\r\n [theme.breakpoints.down(\"sm\")]: {\r\n flex: 12,\r\n width: \"100% !important\",\r\n },\r\n },\r\n bigTextField: {\r\n hieght: theme.spacing(6),\r\n \"& .MuiInput-underline:after\": {\r\n borderWidth: 0,\r\n },\r\n \"& .MuiInput-underline:before\": {\r\n borderWidth: 0,\r\n },\r\n \"& .MuiInputBase-inputMultiline\": {\r\n // margin: theme.spacing(1),\r\n lineHeight: \"normal\",\r\n\r\n height: \"auto\",\r\n width: \"100%\",\r\n fontSize: theme.spacing(5),\r\n fontWeight: \"bold\",\r\n color: \"black\",\r\n caretColor: \"#008CFF\",\r\n },\r\n },\r\n input: {\r\n width: \"100%\",\r\n fontSize: theme.spacing(1),\r\n \"& .MuiInput-underline:after\": {\r\n borderColor: \"#D5D8DF\",\r\n },\r\n \"& .MuiInput-underline:before\": {\r\n borderColor: \"#D5D8DF\",\r\n },\r\n },\r\n steps: {\r\n fontWeight: 400,\r\n fontSize: theme.spacing(1),\r\n },\r\n button: {\r\n marginTop: theme.spacing(4),\r\n marginLeft: 0,\r\n borderRadius: \"40px !important\",\r\n justifyContent: \"space-between\",\r\n height: 40,\r\n fontWeight: 700,\r\n fontStyle: \"normal\",\r\n fontSize: theme.spacing(1.5),\r\n letterSpacing: \"0.8px\",\r\n [theme.breakpoints.down(\"sm\")]: {\r\n flex: 12,\r\n width: \"100%\",\r\n },\r\n },\r\n })\r\n);\r\n","import BackButtonLayout from \"core/layouts/backButtonLayout\";\n/* eslint-disable react/prop-types */\nimport React, { useContext, useState } from \"react\";\nimport { withRouter, useHistory, RouteComponentProps } from \"react-router-dom\";\nimport { useForm, Controller } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\nimport ArrowBackIcon from \"@material-ui/icons/ArrowBack\";\n\nimport Select from \"@material-ui/core/Select\";\nimport MenuItem from \"@material-ui/core/MenuItem\";\nimport InputLabel from \"@material-ui/core/InputLabel\";\nimport AttachmentIcon from \"@material-ui/icons/Attachment\";\nimport { Typography } from \"@material-ui/core\";\nimport Grid from \"@material-ui/core/Grid\";\nimport TextField from \"@material-ui/core/TextField\";\nimport Button from \"@material-ui/core/Button\";\nimport { useTheme } from \"@material-ui/core/styles\";\nimport Box from \"@material-ui/core/Box\";\nimport ArrowForwardIcon from \"@material-ui/icons/ArrowForward\";\nimport Context from \"core/context/context\";\nimport { ErrorComponent } from \"core/components/Error\";\nimport { isEmail } from \"core/utils/patterns\";\nimport { DescreptionText } from \"core/components/text/descreptionText\";\nimport { useStyles } from \"./styles\";\n\nconst win: any = window;\n//const token = 'bdb50c03-aa40-4862-b275-4f63e96aa696';\nconst store_order_status_url = win[\"STORE_TRACK_ORDER_URL\"]\n ? win[\"STORE_TRACK_ORDER_URL\"]\n : \"/wps/portal/web/personal/store/track-order\";\nlet urlParams = new URLSearchParams(window.location.search);\nlet oId: any = urlParams.get(\"oId\");\n\ntype Inputs = {\n orderid: string;\n email: string;\n};\ninterface Props {\n step?: number;\n}\nconst viewReqStatus = () => {\n console.log(\"Track order inquiry initiated.\");\n win.open(win.viewRequestUrl);\n};\nconst OrderSearch = (\n props: React.PropsWithChildren\n) => {\n const { t, i18n } = useTranslation();\n const win: any = window;\n const langDir = i18n.dir(win[\"lang\"] as string);\n const isRTL = langDir === \"rtl\";\n const history = useHistory();\n const context = useContext(Context);\n const classes = useStyles();\n const theme = useTheme();\n const { register, handleSubmit, watch, errors, control } = useForm();\n const { orderid, email } = watch();\n\n const onSubmit = (data: Inputs) => {\n console.log(data);\n //window.sessionStorage.orderNumber = data.orderid;\n //window.sessionStorage.cusotmerEmail = data.email;\n\n localStorage.setItem(\"orderNumber\", data.orderid);\n localStorage.setItem(\"cusotmerEmail\", data.email);\n\n !!store_order_status_url &&\n (document.location.href = store_order_status_url);\n };\n return (\n \n \n {/* {!isRTL ? (\n history.goBack()}\n style={{ color: \"#008CFF\", cursor: \"pointer\" }}\n fontWeight={\"fontWeightBold\"}\n fontSize={\"large\"}\n />\n ) : (\n history.goBack()}\n style={{ color: \"#008CFF\", cursor: \"pointer\" }}\n fontWeight={\"fontWeightBold\"}\n fontSize={\"large\"}\n />\n )} */}\n\n \n \n \n {t(\"PleasefillInformation\")}\n \n \n \n \n \n
\n \n {t(\"portInRequest\")}\n \n {t(\"seeReqStatus\")}\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 {t(\"next\")}\n \n \n \n
\n
\n );\n};\nexport default withRouter(OrderSearch);\n\nconst Row = ({ children, ...rest }: any) => {\n const classes = useStyles();\n\n return (\n \n {children}\n \n );\n};\n\nconst RowItem = ({ children, className, ...rest }: any) => {\n const classes = useStyles();\n const theme = useTheme();\n\n return (\n \n \n {children}\n \n \n );\n};\n","import React from \"react\";\r\nimport { CheackOrders } from \"pages\";\r\nimport { OrderSearch } from \"pages\";\r\n\r\nimport { BrowserRouter as Router, Switch, Route, Link } from \"react-router-dom\";\r\n\r\nexport const Routes = () => {\r\n return (\r\n \r\n \r\n {/* */}\r\n \r\n \r\n \r\n );\r\n};\r\n","/* eslint-disable react/prop-types */\r\nimport React from \"react\";\r\nimport Context from \"./context\";\r\nexport default class GlobalState extends React.Component {\r\n state = {\r\n _step: 1,\r\n };\r\n\r\n setStep = (step: any) => {\r\n this.setState({ _step: step });\r\n };\r\n\r\n render() {\r\n return (\r\n \r\n {this.props.children}\r\n \r\n );\r\n }\r\n}\r\n","import \"./i18n\";\r\nimport React from \"react\";\r\nimport { createMuiTheme, ThemeProvider } from \"@material-ui/core/styles\";\r\nimport { Shadows } from \"@material-ui/core/styles/shadows\";\r\nimport { create } from \"jss\";\r\nimport rtl from \"jss-rtl\";\r\nimport { StylesProvider, jssPreset } from \"@material-ui/core/styles\";\r\n\r\nimport { Routes } from \"routes\";\r\nimport GlobalState from \"core/context/GlobalState\";\r\n\r\nconst win: any = window;\r\n\r\nconst isRTL = win[\"lang\"] === \"ar\";\r\n\r\nconst apptheme = createMuiTheme({\r\n direction: \"rtl\",\r\n\r\n shadows: Array(25).fill(\"none\") as Shadows,\r\n typography: {\r\n fontSize: 12,\r\n fontFamily: isRTL ? \"ExpoArabic-Medium\" : \"ScandiaWeb-Regular\",\r\n },\r\n palette: {\r\n text: {\r\n primary: \"#606060\",\r\n secondary: \"#72767A\",\r\n },\r\n primary: {\r\n main: \"#606060\",\r\n light: \"#d4d4d0\",\r\n dark: \"#efeded\",\r\n },\r\n secondary: {\r\n main: \"#008CFF\",\r\n },\r\n contrastThreshold: 3,\r\n },\r\n});\r\n\r\nexport default function App() {\r\n document.body.setAttribute(\"dir\", isRTL ? \"rtl\" : \"ltr\");\r\n const jss = isRTL\r\n ? create({ plugins: [...jssPreset().plugins, rtl()] })\r\n : create({ plugins: [...jssPreset().plugins] });\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","// This optional code is used to register a service worker.\r\n// register() is not called by default.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on subsequent visits to a page, after all the\r\n// existing tabs open on the page have been closed, since previously cached\r\n// resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model and instructions on how to\r\n// opt-in, read https://bit.ly/CRA-PWA\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === \"localhost\" ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === \"[::1]\" ||\r\n // 127.0.0.0/8 are considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\ntype Config = {\r\n onSuccess?: (registration: ServiceWorkerRegistration) => void;\r\n onUpdate?: (registration: ServiceWorkerRegistration) => void;\r\n};\r\n\r\nexport function register(config?: Config) {\r\n if (process.env.NODE_ENV === \"production\" && \"serviceWorker\" in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener(\"load\", () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Let's check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl, config);\r\n\r\n // Add some additional logging to localhost, pointing developers to the\r\n // service worker/PWA documentation.\r\n navigator.serviceWorker.ready.then(() => {\r\n console.log(\r\n \"This web app is being served cache-first by a service \" +\r\n \"worker. To learn more, visit https://bit.ly/CRA-PWA\"\r\n );\r\n });\r\n } else {\r\n // Is not localhost. Just register service worker\r\n registerValidSW(swUrl, config);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW(swUrl: string, config?: Config) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then((registration) => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n if (installingWorker == null) {\r\n return;\r\n }\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === \"installed\") {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the updated precached content has been fetched,\r\n // but the previous service worker will still serve the older\r\n // content until all client tabs are closed.\r\n console.log(\r\n \"New content is available and will be used when all \" +\r\n \"tabs for this page are closed. See https://bit.ly/CRA-PWA.\"\r\n );\r\n\r\n // Execute callback\r\n if (config && config.onUpdate) {\r\n config.onUpdate(registration);\r\n }\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log(\"Content is cached for offline use.\");\r\n\r\n // Execute callback\r\n if (config && config.onSuccess) {\r\n config.onSuccess(registration);\r\n }\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch((error) => {\r\n console.error(\"Error during service worker registration:\", error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl: string, config?: Config) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl, {\r\n headers: { \"Service-Worker\": \"script\" },\r\n })\r\n .then((response) => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n const contentType = response.headers.get(\"content-type\");\r\n if (\r\n response.status === 404 ||\r\n (contentType != null && contentType.indexOf(\"javascript\") === -1)\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then((registration) => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl, config);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n \"No internet connection found. App is running in offline mode.\"\r\n );\r\n });\r\n}\r\n\r\nexport function unregister() {\r\n if (\"serviceWorker\" in navigator) {\r\n navigator.serviceWorker.ready\r\n .then((registration) => {\r\n registration.unregister();\r\n })\r\n .catch((error) => {\r\n console.error(error.message);\r\n });\r\n }\r\n}\r\n","import React, { Suspense } from \"react\";\r\nimport WindowObj from \"core/utils/windowObj\";\r\nimport ReactDOM from \"react-dom\";\r\nimport App from \"App\";\r\nimport \"fontsource-roboto/500.css\";\r\nimport \"./styles.css\";\r\nimport * as serviceWorker from \"./serviceWorker\";\r\n\r\nReactDOM.render(\r\n \r\n }>\r\n \r\n \r\n ,\r\n document.getElementById(\"root\")\r\n);\r\n\r\n// If you want your app to work offline and load faster, you can change\r\n// unregister() to register() below. Note this comes with some pitfalls.\r\n// Learn more about service workers: https://bit.ly/CRA-PWA\r\nserviceWorker.unregister();\r\n","/* eslint-disable prefer-const */\r\nimport axios from \"axios\";\r\nimport https from \"https\";\r\nconst win: any = window;\r\n\r\nvar token = win[\"clientToken\"];\r\nvar reGenerateTokenUrl = win[\"reGenerateToken\"];\r\nvar storeServerURL = win[\"storeServerURL\"];\r\nconst cem_key = win[\"CEM_KEY\"];\r\nlet config = {\r\n api: {\r\n httpsAgent: new https.Agent({\r\n rejectUnauthorized: false,\r\n }),\r\n crossdomain: true,\r\n withCredentials: true,\r\n\r\n baseURL: process.env.REACT_APP_API,\r\n headers: {\r\n Accept: \"application/json\",\r\n \"Content-Type\": \"application/json\",\r\n\r\n Authorization: \"\",\r\n \"cem-key\": cem_key,\r\n },\r\n },\r\n};\r\n\r\nexport const api = axios.create({ ...config.api });\r\n\r\napi.interceptors.response.use(\r\n async (response: any) => {\r\n return response;\r\n },\r\n (error: any) => {\r\n if (\r\n (error.response.data.code && error.response.data.code === \"APIGEE-001\") ||\r\n (error.response.data.code && error.response.data.code === \"APIGEE-002\")\r\n ) {\r\n token = reGenerateToken(); // this is the one\r\n console.log(\r\n \"in response error interceptors\",\r\n JSON.stringify(error.response.config)\r\n );\r\n const { config: oldRequest } = error.response;\r\n\r\n return api.request({ ...oldRequest });\r\n }\r\n\r\n document.location.href = `/wps/portal/web/personal/store/error?errorSource=${\r\n window.lang === \"en\" ? \"Store\" : \"المتجر\"\r\n }`;\r\n return error;\r\n }\r\n);\r\n\r\nfunction reGenerateToken() {\r\n console.log(\"reGenerateToken :: Enter\");\r\n console.log(\"reGenerateTokenUrl => \" + reGenerateTokenUrl);\r\n\r\n return new Promise((resolve, reject) => {\r\n fetch(storeServerURL + \"\" + reGenerateTokenUrl, {\r\n method: \"GET\",\r\n headers: {\r\n \"Content-type\": \"text/html; charset=UTF-8\",\r\n \"cem-key\": cem_key,\r\n },\r\n })\r\n .then((res) => res.text())\r\n\r\n .then((result) => {\r\n //console.log(\"Token res -> \"+result);\r\n resolve(result);\r\n })\r\n .catch((err) => {\r\n //console.log(err);\r\n reject(err);\r\n });\r\n });\r\n}\r\n\r\napi.interceptors.request.use(\r\n async (conf: any) => {\r\n conf.headers.Authorization = \"Bearer \" + token;\r\n conf.headers[\"cem-key\"] = cem_key;\r\n return conf;\r\n },\r\n (err) => {\r\n console.log(\"error in getting \", err);\r\n }\r\n);\r\n\r\nexport * from \"./OrdersApi\";\r\nexport * from \"./OrdersApi/modals\";\r\n"],"sourceRoot":""}