{"version":3,"sources":["i18n.tsx","core/components/ReCAPTCHA/index.tsx","core/layouts/container/index.tsx","core/context/context.ts","core/layouts/backButtonLayout/styles.ts","core/layouts/backButtonLayout/index.tsx","core/components/Error/index.tsx","core/components/Text/DescreptionText.tsx","core/components/Rows/styles.ts","core/components/Rows/index.tsx","pages/Fail/styles.tsx","pages/Fail/index.tsx","core/utils/patterns.ts","api/specific-exceptions.ts","api/generic-exceptions.ts","api/CarriersApi/index.ts","api/index.ts","pages/Carriers/styles.tsx","assets/icons/downarrow.tsx","pages/Carriers/index.tsx","routes/index.tsx","core/context/GlobalState.tsx","App.tsx","serviceWorker.ts","index.tsx"],"names":["win","window","lng","storageLanguage","localStorage","getItem","indexOf","i18n","use","XHR","initReactI18next","init","debug","keySeparator","interpolation","escapeValue","backend","loadPath","allowMultiLoading","react","wait","useSuspense","props","recaptchaRef","onChange","process","REACT_APP_GOOGLE_RECAPTCHA","toString","ref","size","sitekey","useStyles","makeStyles","theme","createStyles","root","height","overflow","FullscreenLayout","classes","className","children","React","createContext","_step","setStep","container","breakpoints","down","paddingLeft","spacing","paddingRieght","padding","steps","fontWeight","fontSize","button","marginTop","marginLeft","borderRadius","width","justifyContent","fontStyle","letterSpacing","input","borderColor","withRouter","useTranslation","useHistory","useContext","Context","useTheme","langDir","dir","Grid","style","direction","justify","alignItems","item","xs","Box","mt","pl","pr","ErrorComponent","customError","errors","name","patternMessage","minLength","maxLength","t","Typography","component","color","render","type","DescreptionText","text","mb","variant","display","flexDirection","rowContainer","flexWrap","gap","flex","Row","rest","RowItem","bigTextField","hieght","borderWidth","lineHeight","caretColor","textbutton","background","buttonSuccess","backgroundColor","green","buttonProgress","position","top","left","Fail","hideFail","thanksUrl","sm","disabled","loading","title","action","sessionStorage","thanksMessage","document","location","href","PrimaryButton","isRTL","Button","marginBottom","onClick","endIcon","cursor","mr","CircularProgress","TextButton","isEmail","isMobileAlphanumeric","Alphanumeric","SpecificExceptions","code","message","console","log","Error","GenericExceptions","token","CarriersApi","postCarrierTypes","payload","a","callBackendService","getCarrierCatRequest","base_portal_url","CEM_KEY","url","methodType","requestBody","headers","extraHeader","Authorization","JSON","stringify","Promise","resolve","reject","req","baseURL","fetch","method","body","then","res","json","result","statusCode","regenerate_url","newtoken","englishDetail","arabicDetail","catch","err","pageHint","fontFamily","selectService","customPlaceholder","mobileInput","textAlign","viewBox","fill","xmlns","d","stroke","stroke-width","stroke-linejoin","createRef","useState","open","setOpen","renderError","setRenderError","useForm","handleSubmit","register","watch","control","setValue","compAddress","interestedIn","fax","locale","mobile","organization","query","telephone","email","interestedInTypes","setInterestedInTypes","setLoading","useEffect","data","finally","onSubmit","language","split","map","str","as","TextField","defaultValue","fullWidth","label","id","rules","required","pattern","nameLang","InputProps","InputLabel","Select","IconComponent","Downarrow","labelId","carrier_list","index","MenuItem","key","value","english_name","arabic_name","onClose","onOpen","multiline","rowsMax","placeholder","String","length","Object","keys","constructor","scrollTop","documentElement","ReCAPTCHA","Routes","path","Carriers","GlobalState","state","step","setState","Provider","this","Component","apptheme","createMuiTheme","shadows","Array","typography","palette","primary","secondary","main","light","dark","contrastThreshold","App","setAttribute","jss","create","plugins","jssPreset","rtl","StylesProvider","ThemeProvider","Boolean","hostname","match","ReactDOM","StrictMode","fallback","getElementById","navigator","serviceWorker","ready","registration","unregister","error"],"mappings":"sRAGMA,EAAWC,OAGbC,EAAyC,MAAfF,EAAG,KAAmB,KAAOA,EAAG,KAGxDG,EAAkBC,aAAaC,QAAQ,YACzCF,GALqB,CAAC,KAAM,MAKQG,QAAQH,IAAoB,IAClED,EAAMF,EAAG,MAGXO,IACGC,IAAIC,KACJD,IAAIE,KACJC,KAAK,CACJT,MACAU,OAAO,EACPC,aAAc,IACdC,cAAe,CACbC,aAAa,GAEfC,QAAS,CACPC,SACE,kEAEFC,mBAAmB,GAErBC,MAAO,CACLC,MAAM,EACNC,aAAa,KAIJd,EAAf,EAAeA,I,0JC7BA,WAACe,GAA2B,IAAD,EAChCC,EAA2BD,EAA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AM,IAAIvF,KAAK,QACxBwF,WAAY,CACV1O,SAAU,GACV4I,WAAYxD,GACR,oBACA,mHAGNuJ,QAAS,CACP/L,KAAM,CACJgM,QAAS,UACTC,UAAW,WAEbD,QAAS,CACPE,KAAM,UACNC,MAAO,UACPC,KAAM,WAERH,UAAW,CACTC,KAAM,WAERG,kBAAmB,KAIR,SAASC,KACtB,IAAMzS,EAAWC,OAKX0I,EAAoB,QAJTxE,cAAT5D,KAGakE,IAAIzE,EAAG,MAG5BuI,SAAS+C,KAAKoH,aAAa,MAAO/J,EAAQ,MAAQ,OAClD,IAAMgK,EAAMhK,EACRiK,YAAO,CAAEC,QAAQ,GAAD,mBAAMC,cAAYD,SAAlB,CAA2BE,UAC3CH,YAAO,CAAEC,QAAQ,YAAKC,cAAYD,WAEtC,OACE,kBAAC,GAAD,KACE,kBAACG,EAAA,EAAD,CAAgBL,IAAKA,GACnB,kBAACM,EAAA,EAAD,CAAehR,MAAO4P,IACpB,kBAAC,GAAD,S,cChDUqB,QACa,cAA7BjT,OAAOuI,SAAS2K,UAEiB,UAA7BlT,OAAOuI,SAAS2K,UAEhBlT,OAAOuI,SAAS2K,SAASC,MAAM,2DCVvCC,IAASrN,OACL,kBAAC,IAAMsN,WAAP,KACI,kBAAC,WAAD,CAAUC,SAAU,+BAChB,kBAACd,GAAD,QAGRlK,SAASiL,eAAe,SDoHpB,kBAAmBC,WACnBA,UAAUC,cAAcC,MACnBpI,MAAK,SAACqI,GACHA,EAAaC,gBAEhB7H,OAAM,SAAC8H,GACJpK,QAAQoK,MAAMA,EAAMrK,c","file":"static/js/main.c8926387.chunk.js","sourcesContent":["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\r\n// lng = \"ar\"\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: \":\",\r\n interpolation: {\r\n escapeValue: false,\r\n },\r\n backend: {\r\n loadPath:\r\n \"/.carriers.contact.us/react-app/build/translations/{{lng}}.json\",\r\n //loadPath: '/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","/* eslint-disable react/display-name */\r\nimport React from \"react\";\r\nimport ReCAPTCHA from \"react-google-recaptcha\";\r\ninterface RecaptchaProps {\r\n recaptchaRef: any;\r\n onChange(value: any): void;\r\n}\r\nexport default (props: RecaptchaProps) => {\r\n const { recaptchaRef, onChange } = props;\r\n const key:\r\n | string\r\n | undefined = process.env.REACT_APP_GOOGLE_RECAPTCHA?.toString();\r\n\r\n return (\r\n \r\n );\r\n};\r\n","import React, { Props } from 'react';\r\n\r\nimport { makeStyles, createStyles, Theme } 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 },\r\n }),\r\n);\r\n\r\nexport const FullscreenLayout = (props: Props) => {\r\n const classes = useStyles();\r\n return
{props.children}
;\r\n};\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 { 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 paddingLeft: theme.spacing(0),\r\n paddingRieght: theme.spacing(0),\r\n\r\n padding: theme.spacing(0),\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\n\r\nimport { withRouter, useHistory } from \"react-router-dom\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { FullscreenLayout } from \"core/layouts/container\";\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\n\r\nconst BackButtonLayout = (props: React.PropsWithChildren) => {\r\n const { children } = props;\r\n const { 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\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 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 { useTranslation } from \"react-i18next\";\r\nimport Box from \"@material-ui/core/Box\";\r\n\r\ninterface ErrorProps {\r\n name: string;\r\n customError?: boolean;\r\n errors?: any;\r\n nameLang?: string;\r\n maxLength?: number;\r\n minLength?: number;\r\n patternMessage?: string;\r\n}\r\nconst ErrorComponent = (props: ErrorProps) => {\r\n const {\r\n customError,\r\n errors,\r\n name,\r\n minLength,\r\n maxLength,\r\n patternMessage,\r\n } = props;\r\n const { t, i18n } = useTranslation();\r\n const theme = useTheme();\r\n return !customError ? (\r\n (\r\n \r\n \r\n {errors[name]?.type === \"maxLength\"\r\n ? //? maxLength + \" you rechied the max number\"\r\n t(\"max_length\")\r\n : errors[name]?.type === \"minLength\"\r\n ? //? \"the minimum length is \" + minLength\r\n t(\"min_length\")\r\n : errors[name]?.type === \"required\"\r\n ? t(\"field_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\n \r\n {patternMessage}\r\n \r\n \r\n );\r\n};\r\nexport { ErrorComponent };\r\n","import React, { useContext, useState } from 'react';\r\n\r\nimport { Typography } from '@material-ui/core';\r\n\r\nimport { useTheme } from '@material-ui/core/styles';\r\n\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: any;\r\n}\r\nexport const 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\n","import { makeStyles, createStyles, Theme } from \"@material-ui/core/styles\";\r\n\r\nexport const useStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n rowContainer: {\r\n flexWrap: \"nowrap\",\r\n width: \"55%\",\r\n gap: 24,\r\n [theme.breakpoints.down(\"sm\")]: {\r\n width: \"100%\",\r\n gap: 0,\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\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 })\r\n);\r\n","/* eslint-disable @typescript-eslint/no-var-requires */\r\n/* eslint-disable react/prop-types */\r\nimport React, { useState, useEffect } from \"react\";\r\n\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\n\r\nimport { useStyles } from \"./styles\";\r\n\r\nconst Row = ({ children, ...rest }: any) => {\r\n const classes = useStyles();\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n\r\nconst RowItem = ({ children, className, ...rest }: any) => {\r\n const classes = useStyles();\r\n const theme = useTheme();\r\n\r\n return (\r\n \r\n \r\n {children}\r\n \r\n \r\n );\r\n};\r\n\r\nexport { RowItem, Row };\r\n","import { makeStyles, createStyles, Theme } from \"@material-ui/core/styles\";\r\nimport { green } from \"@material-ui/core/colors\";\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 textbutton: {\r\n color: \"#008CFF\",\r\n background: \"transparent\",\r\n \"&:focus\": {\r\n background: \"transparent\",\r\n },\r\n },\r\n\r\n buttonSuccess: {\r\n backgroundColor: green[500],\r\n \"&:hover\": {\r\n backgroundColor: green[700],\r\n },\r\n },\r\n buttonProgress: {\r\n color: green[500],\r\n position: \"absolute\",\r\n top: \"50%\",\r\n left: \"50%\",\r\n marginTop: -12,\r\n marginLeft: -12,\r\n },\r\n })\r\n);\r\n","/* eslint-disable @typescript-eslint/no-var-requires */\r\n/* eslint-disable react/prop-types */\r\nimport React, { useState, useEffect } from \"react\";\r\nimport { withRouter, useHistory, RouteComponentProps } from \"react-router-dom\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { Typography } from \"@material-ui/core\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport ArrowForwardIcon from \"@material-ui/icons/ArrowForward\";\r\nimport ArrowBack from \"@material-ui/icons/ArrowBack\";\r\nimport CircularProgress from \"@material-ui/core/CircularProgress\";\r\n\r\nimport BackButtonLayout from \"core/layouts/backButtonLayout\";\r\n\r\nimport { useStyles } from \"./styles\";\r\n\r\ninterface FailProps {\r\n hideFail?: () => void;\r\n}\r\nconst Fail = (props: FailProps) => {\r\n const { t, i18n } = useTranslation();\r\n const { hideFail } = props;\r\n const win: any = window;\r\n // const history = useHistory();\r\n const thanksUrl = win[\"contactus_thanks_url\"];\r\n const langDir = i18n.dir(win[\"lang\"] as string);\r\n const isRTL = langDir === \"rtl\";\r\n const theme = useTheme();\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n {t(\"opps\")}\r\n \r\n \r\n \r\n \r\n {t(\"contactFailTitle\")}\r\n \r\n \r\n (hideFail ? hideFail() : {})}\r\n >\r\n {\r\n window.sessionStorage.thanksMessage = t(\"success_message\");\r\n document.location.href = thanksUrl;\r\n }}\r\n disabled={false}\r\n loading={false}\r\n title={t(\"GobacktoHomepage\")}\r\n >\r\n \r\n \r\n \r\n );\r\n};\r\nexport default Fail;\r\n\r\ninterface PrimaryButtonProps {\r\n disabled?: boolean;\r\n loading?: boolean;\r\n mb?: number;\r\n action?: () => void;\r\n title: string;\r\n}\r\nconst PrimaryButton = (props: PrimaryButtonProps) => {\r\n const { disabled, loading, title, mb, action } = props;\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 return (\r\n (action ? action() : {})}\r\n endIcon={\r\n !isRTL ? (\r\n \r\n ) : (\r\n \r\n )\r\n }\r\n >\r\n \r\n {title}\r\n \r\n {loading && (\r\n \r\n )}\r\n \r\n );\r\n};\r\nconst TextButton = (props: PrimaryButtonProps) => {\r\n const { disabled, loading, title, action } = props;\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 return (\r\n (action ? action() : {})}\r\n endIcon={\r\n !isRTL ? (\r\n \r\n ) : (\r\n \r\n )\r\n }\r\n >\r\n \r\n {title}\r\n \r\n {loading && (\r\n \r\n )}\r\n \r\n );\r\n};\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\nexport const isMobileAlphanumeric = /^(\\+?\\d{1,3}[- ]?)?\\d{10}$/;\r\nexport const beginWith966 = /^966/;\r\nexport const Alphanumeric = /^[a-zA-Z0-9_ \\u0600-\\u06FF]*$/;\r\n","class SpecificExceptions extends Error {\r\n constructor(code: any, message: any) {\r\n console.log(\"SpecificExceptions :: message => \" + message);\r\n console.log(\"SpecificExceptions :: code => \" + code);\r\n super();\r\n code = code;\r\n this.message = message;\r\n }\r\n}\r\nexport default SpecificExceptions;\r\n","class GenericExceptions extends Error {\r\n constructor(message: any) {\r\n super(message);\r\n }\r\n}\r\nexport default GenericExceptions;\r\n","import { callBackendService } from \"../index\";\r\nconst win: any = window;\r\n\r\nconst token = win[\"clientToken\"];\r\n\r\nconst postCarrierTypes = async (payload: any) =>\r\n await callBackendService(\r\n `support/carrier/v1/carrier-data`,\r\n \"post\",\r\n payload,\r\n token\r\n );\r\nconst getCarrierCatRequest = async () =>\r\n await callBackendService(\r\n `digital/v1/data/mappings?contextId=CTX_LOOKUPS&catalogKey=carrier_cat`,\r\n \"get\",\r\n \"\",\r\n token\r\n );\r\n\r\nexport const CarriersApi = { postCarrierTypes, getCarrierCatRequest };\r\n","/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\r\n/* eslint-disable prefer-const */\r\n// 1- regenerate_url\r\n// 2- base_api_url\r\n// 3- base_portal_url\r\n// base_portal_url + regenerate_url\r\nimport { JSEncrypt } from \"jsencrypt\";\r\nimport SpecificExceptions from \"./specific-exceptions\";\r\nimport GenericExceptions from \"./generic-exceptions\";\r\n\r\nconst win: any = window;\r\n// win['base_api_url']=\"http://sdea003:9080/api/\";\r\n// win[\"clientToken\"]=\"fNbD0BW88tiSCJC3FFbRzBnTuWHF\"\r\nconst base_portal_url = win[\"base_portal_url\"];\r\nconst CEM_KEY = win[\"CEM_KEY\"];\r\n\r\nexport async function callBackendService(\r\n url: string,\r\n methodType: any,\r\n requestBody?: any,\r\n token?: string\r\n) {\r\n let headers = {\r\n \"Content-Type\": \"application/json\",\r\n \"cem-key\": CEM_KEY,\r\n };\r\n\r\n let extraHeader = { Authorization: \"Bearer \" + token };\r\n\r\n if (extraHeader) {\r\n headers = { ...headers, ...extraHeader };\r\n }\r\n\r\n console.log(\"callBackendService :: Headers => \" + JSON.stringify(headers));\r\n\r\n return new Promise((resolve, reject) => {\r\n let baseURL = win[\"base_api_url\"]\r\n ? win[\"base_api_url\"]\r\n : \"http://sdea003:9080/api/\";\r\n // let corsHack = \"https://cors-anywhere.herokuapp.com/\";\r\n let req;\r\n\r\n if (!!requestBody) {\r\n req = fetch(baseURL + url, {\r\n method: methodType,\r\n body: JSON.stringify(requestBody),\r\n headers: headers,\r\n });\r\n } else {\r\n req = fetch(baseURL + url, {\r\n method: methodType,\r\n headers: headers,\r\n });\r\n }\r\n console.log(baseURL + url, {\r\n method: methodType,\r\n headers: headers,\r\n });\r\n req\r\n .then(async (res) => res.json())\r\n .then(async (result) => {\r\n console.log(\"BackEnd :: Result => \" + JSON.stringify(result));\r\n if (result.statusCode && result.statusCode === \"MBE_323\") {\r\n let newtoken: any = await regenerate_url();\r\n resolve(\r\n await callBackendService(url, methodType, requestBody, newtoken)\r\n );\r\n } else if (result.code && result.code !== \"MAPI-000\") {\r\n if (result.code === \"MAPI-500\") {\r\n console.log(\"BackEnd :: Result :: GenericExceptions\");\r\n reject(new GenericExceptions(result.englishDetail));\r\n } else {\r\n console.log(\"BackEnd :: Result :: SpecificExceptions\");\r\n\r\n if (win[\"lang\"] === \"en\") {\r\n // ENGLISH LANGUAGE\r\n reject(new SpecificExceptions(result.code, result.englishDetail));\r\n } else {\r\n // ARABIC LANGUAGE\r\n reject(new SpecificExceptions(result.code, result.arabicDetail));\r\n }\r\n }\r\n }\r\n console.log(\"BackEnd :: Result after=> \" + JSON.stringify(result));\r\n resolve(result);\r\n })\r\n .catch((err) => {\r\n reject(err);\r\n console.log(\"BackEnd :: catch => \" + err);\r\n console.log(err);\r\n });\r\n });\r\n}\r\n\r\nexport function encrypt(message: string) {\r\n console.log(\"encrypt :: Enter\");\r\n\r\n console.log(\"encrypt :: param :: message => \" + message);\r\n\r\n const publicKey = win[\"PK\"];\r\n\r\n let RSAEncrypt = new JSEncrypt();\r\n\r\n RSAEncrypt.setPublicKey(publicKey);\r\n\r\n let encryptedMessage = RSAEncrypt.encrypt(message);\r\n\r\n console.log(\"encrypt :: encryptedMessage => \" + encryptedMessage);\r\n\r\n return encryptedMessage;\r\n}\r\n\r\nexport function regenerate_url() {\r\n console.log(\"regenerate_url :: Enter\");\r\n let regenerate_url = win[\"regenerate_url\"]\r\n ? base_portal_url + win[\"regenerate_url\"]\r\n : \"http://sdea003:9080/api/internal-oauth-server/oauth/token\";\r\n\r\n console.log(\"regenerate_url => \" + regenerate_url);\r\n\r\n return new Promise((resolve, reject) => {\r\n fetch(regenerate_url, {\r\n method: \"GET\",\r\n headers: {\r\n \"Content-type\": \"text/html; charset=UTF-8\",\r\n },\r\n })\r\n .then((res) => res.text())\r\n .then((result) => {\r\n console.log(\"Token res -> \" + result);\r\n\r\n resolve(result);\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n\r\n reject(err);\r\n });\r\n });\r\n}\r\n\r\nexport * from \"./CarriersApi\";\r\n","import { makeStyles, createStyles, Theme } from \"@material-ui/core/styles\";\r\nimport { green } from \"@material-ui/core/colors\";\r\n\r\nconst win: any = window;\r\nconst isRTL = win[\"lang\"] === \"ar\";\r\n\r\nexport const useStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n height: \"auto\",\r\n },\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\r\n pageHint: {\r\n fontWeight: \"normal\",\r\n fontSize: theme.spacing(2),\r\n [theme.breakpoints.down(\"sm\")]: {\r\n fontSize: theme.spacing(2),\r\n },\r\n },\r\n item: {\r\n width: \"100%\",\r\n \"& .MuiFormLabel-root\": {\r\n color: \"#000000\",\r\n },\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 \"& .MuiInputBase-root\": {\r\n color: \"#000000\",\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 fontFamily: isRTL ? \"ExpoArabic-Medium\" : \"ScandiaWeb-Bold\",\r\n hieght: theme.spacing(6),\r\n\r\n \"& ::-webkit-input-placeholder \": {\r\n /* Chrome/Opera/Safari */ color: \"#D5D8DF !important\",\r\n },\r\n \"& ::-moz-placeholder\": {\r\n /* Firefox 19+ */ color: \"#D5D8DF !important\",\r\n },\r\n \"& :-ms-input-placeholder\": {\r\n /* IE 10+ */ color: \"#D5D8DF !important\",\r\n },\r\n \"& :-moz-placeholder\": {\r\n /* Firefox 18- */ color: \"#D5D8DF !important\",\r\n },\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: 32,\r\n fontFamily: isRTL ? \"ExpoArabic-Medium\" : \"ScandiaWeb-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 selectService: {\r\n \"& .MuiInputLabel-root\": {\r\n color: \"red !important\",\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: 52,\r\n fontWeight: 700,\r\n fontStyle: \"normal\",\r\n fontSize: theme.spacing(1.5),\r\n fontFamily: isRTL ? \"ExpoArabic-Medium\" : \"SimplonNorm\",\r\n letterSpacing: \"0.8px\",\r\n width: 300,\r\n\r\n [theme.breakpoints.down(\"md\")]: {\r\n flex: 12,\r\n width: \"100%\",\r\n },\r\n },\r\n buttonSuccess: {\r\n backgroundColor: green[500],\r\n \"&:hover\": {\r\n backgroundColor: green[700],\r\n },\r\n },\r\n buttonProgress: {\r\n color: green[500],\r\n position: \"absolute\",\r\n top: \"50%\",\r\n left: \"50%\",\r\n marginTop: -12,\r\n marginLeft: -12,\r\n },\r\n customPlaceholder: {\r\n fontSize: \"12px\",\r\n marginTop: \"2px\",\r\n color: \"#A9A9A9\",\r\n position: \"absolute\",\r\n },\r\n mobileInput: {\r\n textAlign: \"end\",\r\n },\r\n })\r\n);\r\n","import React from \"react\";\r\n\r\nexport default (props: any) => (\r\n \r\n \r\n \r\n);\r\n","/* eslint-disable @typescript-eslint/no-var-requires */\r\n/* eslint-disable react/prop-types */\r\nimport React, { useState, useEffect } from \"react\";\r\nimport { withRouter, useHistory, RouteComponentProps } from \"react-router-dom\";\r\nimport { useForm, Controller } from \"react-hook-form\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nimport Select from \"@material-ui/core/Select\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport InputLabel from \"@material-ui/core/InputLabel\";\r\nimport AttachmentIcon from \"@material-ui/icons/Attachment\";\r\nimport Delete from \"@material-ui/icons/Delete\";\r\n\r\nimport ReCAPTCHA from \"core/components/ReCAPTCHA\";\r\n\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 Box from \"@material-ui/core/Box\";\r\nimport ArrowForwardIcon from \"@material-ui/icons/ArrowForward\";\r\nimport ArrowBack from \"@material-ui/icons/ArrowBack\";\r\nimport CircularProgress from \"@material-ui/core/CircularProgress\";\r\n\r\nimport BackButtonLayout from \"core/layouts/backButtonLayout\";\r\nimport { ErrorComponent } from \"core/components/Error\";\r\nimport { DescreptionText } from \"core/components/Text\";\r\nimport { Row, RowItem } from \"core/components/Rows\";\r\nimport Fail from \"pages/Fail\";\r\nimport {\r\n toBase64,\r\n isEmail,\r\n isMobileAlphanumeric,\r\n Alphanumeric,\r\n} from \"core/utils\";\r\n\r\nimport { CarriersApi } from \"api\";\r\n\r\nimport { Inputs, InterestedInTypes, Carrier, Props } from \"./modals\";\r\nimport { useStyles } from \"./styles\";\r\nimport Downarrow from \"assets/icons/downarrow\";\r\nconst recaptchaRef: any = React.createRef();\r\n\r\nconst Carriers = (\r\n props: React.PropsWithChildren\r\n) => {\r\n const { t, i18n } = useTranslation([\"translations\"]);\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 [open, setOpen] = useState(false);\r\n const [renderError, setRenderError] = useState(false);\r\n\r\n const [attachmentFormatError, setAttachmentFormatError] = useState(false);\r\n const thanksUrl = win[\"contactus_thanks_url\"];\r\n const history = useHistory();\r\n const classes = useStyles();\r\n const theme = useTheme();\r\n const {\r\n register,\r\n handleSubmit,\r\n watch,\r\n errors,\r\n control,\r\n setValue,\r\n } = useForm();\r\n const {\r\n compAddress,\r\n fax,\r\n interestedIn,\r\n locale,\r\n mobile,\r\n name,\r\n organization,\r\n query,\r\n telephone,\r\n title,\r\n email,\r\n } = watch();\r\n\r\n const [\r\n interestedInTypes,\r\n setInterestedInTypes,\r\n ] = useState();\r\n const [loading, setLoading] = useState(false);\r\n\r\n const handleClose = () => {\r\n setOpen(false);\r\n };\r\n\r\n const handleOpen = () => {\r\n setOpen(true);\r\n };\r\n\r\n const onChange = (value: any) => {};\r\n\r\n useEffect(() => {\r\n CarriersApi.getCarrierCatRequest()\r\n .then((res: any) => {\r\n console.log(res.data);\r\n !!res && setInterestedInTypes(res.data);\r\n })\r\n .finally(() => console.log(\"\"));\r\n }, []);\r\n\r\n const onSubmit = async (data: any) => {\r\n setLoading(true);\r\n const payload = {\r\n compAddress: data.compAddress,\r\n fax: data.fax,\r\n interestedIn: data.interestedIn,\r\n locale: i18n.language,\r\n mobile: data.mobile,\r\n name: data.name,\r\n organization: data.organization,\r\n query: data.query,\r\n telephone: data.telephone,\r\n title: data.title,\r\n email: data.email,\r\n };\r\n\r\n CarriersApi.postCarrierTypes(payload)\r\n .then((res: any) => {\r\n window.sessionStorage.thanksMessage = t(\"success_message\");\r\n document.location.href = thanksUrl;\r\n })\r\n .catch((err) => setRenderError(true))\r\n .finally(() => setLoading(false));\r\n };\r\n\r\n return renderError ? (\r\n {\r\n setRenderError(false);\r\n }}\r\n >\r\n ) : (\r\n \r\n \r\n \r\n \r\n \r\n {t(\"hint\")\r\n .split(\"\\n\")\r\n .map((str) => (\r\n

{str}

\r\n ))}\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n defaultValue={\"\"}\r\n control={control}\r\n name=\"telephone\"\r\n type={\"number\"}\r\n rules={{ required: true, maxLength: 15, minLength: 7 }}\r\n fullWidth\r\n label={t(\"form:telephone\")}\r\n id=\"telephone\"\r\n dir={langDir}\r\n />\r\n
\r\n +966xxxxxxxxx\r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n \r\n \r\n }\r\n defaultValue={\"\"}\r\n control={control}\r\n name=\"mobile\"\r\n type={\"string\"}\r\n fullWidth\r\n label={t(\"form:mobile\")}\r\n id=\"mobile\"\r\n dir={\"ltr\"}\r\n rules={{\r\n maxLength: 50,\r\n minLength: 7,\r\n pattern: isMobileAlphanumeric,\r\n }}\r\n />\r\n
\r\n +966xxxxxxxxx\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n \r\n \r\n \r\n \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(\"form:interested_in\")}\r\n \r\n {interestedInTypes?.carrier_list?.map(\r\n (interestedIn: Carrier, index: number) => (\r\n \r\n {i18n.language == \"en\"\r\n ? interestedIn.english_name\r\n : interestedIn.arabic_name}\r\n \r\n )\r\n )}\r\n \r\n }\r\n defaultValue={\"\"}\r\n control={control}\r\n name=\"interestedIn\"\r\n type={\"string\"}\r\n fullWidth\r\n id=\"interestedIn\"\r\n dir={langDir}\r\n open={open}\r\n onClose={handleClose}\r\n onOpen={handleOpen}\r\n rules={{ required: true }}\r\n // onChange={handleChange}\r\n />\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n {\r\n if (\r\n !(\r\n Object.keys(errors).length === 0 &&\r\n errors.constructor === Object\r\n )\r\n ) {\r\n document.body.scrollTop = 0;\r\n document.documentElement.scrollTop = 0;\r\n return;\r\n }\r\n }}\r\n type=\"submit\"\r\n variant=\"contained\"\r\n color=\"secondary\"\r\n className={classes.button}\r\n disabled={\r\n loading ||\r\n !!!email ||\r\n !!!telephone ||\r\n !!!compAddress ||\r\n !!!interestedIn ||\r\n !!!name ||\r\n !!!organization ||\r\n !!!query ||\r\n !!!telephone ||\r\n !!!title\r\n }\r\n endIcon={\r\n !isRTL ? (\r\n \r\n ) : (\r\n \r\n )\r\n }\r\n >\r\n \r\n \r\n {t(\"form:submit\")}\r\n \r\n \r\n {loading && (\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n
\r\n );\r\n};\r\nexport default withRouter(Carriers);\r\n","import React from \"react\";\r\nimport { Carriers, Fail } from \"pages\";\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};\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, { useLayoutEffect } from \"react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { unstable_createMuiStrictModeTheme as createMuiTheme } from \"@material-ui/core\";\r\n\r\nimport { 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\nconst win: any = window;\r\nconst isRTL = win[\"lang\"] === \"ar\";\r\n\r\nconst apptheme = createMuiTheme({\r\n direction: \"rtl\",\r\n shadows: Array(25).fill(\"none\") as Shadows,\r\n typography: {\r\n fontSize: 12,\r\n fontFamily: isRTL\r\n ? \"ExpoArabic-Medium\"\r\n : '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\"',\r\n },\r\n\r\n palette: {\r\n text: {\r\n primary: \"#000000\",\r\n secondary: \"#72767A\",\r\n },\r\n primary: {\r\n main: \"#606060\",\r\n light: \"#d4d4d0\",\r\n dark: \"#000000\",\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 const win: any = window;\r\n const { i18n } = useTranslation();\r\n // win['lang'] = 'en-US';\r\n // win['lang'] = 'ar';\r\n const langDir = i18n.dir(win[\"lang\"] as string);\r\n const isRTL = langDir === \"rtl\";\r\n\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(/^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/),\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 (response.status === 404 || (contentType != null && contentType.indexOf('javascript') === -1)) {\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('No internet connection found. App is running in offline mode.');\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 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"],"sourceRoot":""}