{"version":3,"sources":["webpack:///./src/components/bottom-section/index.jsx","webpack:///./src/pages/index.js","webpack:///./src/img/home-illustration-2.svg","webpack:///./src/img/home-illustration-1.svg","webpack:///./src/components/steps/index.jsx"],"names":["title1","title2","text1","text2","useTranslation","t","i18n","className","language","src","img1","img2","style","color","fontWeight","Home","location","user","useContext","UserContext","useEffect","search","includes","setToken","replace","window","href","console","log","dataLayer","push","event","registrationOrderId","Date","toISOString","ecommerce","registration","actionField","id","redirect_url","localStorage","getItem","removeItem","navigate","rawPathnameValue","global","pathname","pathnameValue","decodeURI","useState","usernameValue","setUsernameValue","modalOpen","setModalOpen","requestLoading","setRequestLoading","errorMessage","setErrorMessage","result","setResult","scanDate","setScanDate","sendScanRequest","username","status","a","trim","getDataRequest","res","error","data","Array","isArray","JSON","parse","scan_time","handleGo","navLink","toLocaleLowerCase","undefined","hash","title","metaName","metaContent","icon4","width","height","position","top","left","icon1","icon3","icon2","type","placeholder","value","onChange","e","target","onKeyPress","key","maxLength","loop","right","onClick","playIcon","paddingTop","justifyContent","textAlign","max","maxWidth","name","headerCenter","moment","utc","format","fromNow","viewBox","fill","xmlns","d","openModal","setOpenModal","upgrade","limit_reached","memo","module","exports","text3","step1","step2","step3"],"mappings":"oHAAA,yFAOe,gBAAqC,IAAnCA,EAAkC,EAAlCA,OAAQC,EAA0B,EAA1BA,OAAQC,EAAkB,EAAlBA,MAAOC,EAAW,EAAXA,MACtC,EAAkBC,2BAAXC,EAAP,EAAOA,EAAGC,EAAV,EAAUA,KAEV,OACE,yBAAKC,UAAU,yBACb,yBAAKA,UAAU,OACb,yBAAKA,UAAU,gCACb,wBAAIA,UAA6B,OAAlBD,EAAKE,SAAoB,aAAe,IAAKR,GAAM,GAAOK,EAAE,yBAC3E,yBAAKI,IAAKC,IAAMH,UAAU,mBACzBL,GACC,oCACE,uBAAGK,UAA6B,OAAlBD,EAAKE,SAAoB,aAAe,IAAKH,EAAE,cAC7D,uBAAGE,UAA6B,OAAlBD,EAAKE,S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B5D,GAAU,kBAAC,IAAD,OAgBVA,GAAU,kBAAC,IAAD,OAEbN,GACC,kBAAC,IAAD,CAASqE,UAAWrE,EAAWsE,aAjOjB,WAClBrE,GAAcD,IAgOgDuE,QAAS1G,GAAQA,EAAKqB,GAAIsF,eAAa,OAK1FC,yBAAK9G,I,2CC9VpB+G,EAAOC,QAAU,IAA0B,mE,mBCA3CD,EAAOC,QAAU,kqK,gFCAjB,2DAMe,gBAA4B,IAA1B7H,EAAyB,EAAzBA,MAAOC,EAAkB,EAAlBA,MAAO6H,EAAW,EAAXA,MAC7B,EAAkB5H,2BAAXC,EAAP,EAAOA,EAAP,EAAUC,KACV,OACE,yBAAKC,UAAU,mBACb,yBAAKA,UAAU,cACb,yBAAKA,UAAU,QACb,0BAAMA,UAAU,SAAS0H,KACzB,2BAAI/H,GAAK,GAAOG,EAAE,YAEpB,yBAAKE,UAAU,QACb,0BAAMA,UAAU,SAAS2H,KACzB,2BAAI/H,GAAK,GAAOE,EAAE,YAEpB,yBAAKE,UAAU,QACb,0BAAMA,UAAU,SAAS4H,KACzB,2BACGH,GACC,oCACG3H,EAAE,UADL,IACgB,0BAAMO,MAAO,CAACC,MAAO,OAAQC,WAAY,MAAzC,IAAiDT,EAAE,OAAnD,KACbA,EAAE","file":"component---src-pages-index-js-3c87d94e342e58f9acf2.js","sourcesContent":["import React from 'react';\r\nimport {useTranslation} from 'gatsby-plugin-react-i18next';\r\n\r\nimport img1 from '../../img/home-illustration-1.svg';\r\nimport img2 from '../../img/home-illustration-2.svg';\r\nimport './styles.scss';\r\n\r\nexport default ({title1, title2, text1, text2}) => {\r\n const {t, i18n} = useTranslation();\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

{title1 || `${t('bottom-section-title')}`}

\r\n \r\n {text1 || (\r\n <>\r\n

{t('section-1')}

\r\n

{t('section-2')}

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

{title2 || `${t('bottom-section-title-2')}`}

\r\n \r\n {text2 || (\r\n

\r\n {t('section-3')}\r\n {t('400')} {t('section-4')}\r\n

\r\n )}\r\n
\r\n
\r\n
\r\n );\r\n};\r\n","import React, {memo, useContext, useEffect, useState} from 'react';\r\nimport {graphql} from 'gatsby';\r\nimport {useTranslation} from 'gatsby-plugin-react-i18next';\r\n\r\nimport Layout from '../components/layout';\r\nimport Result from '../components/result';\r\nimport Steps from '../components/steps';\r\nimport BottomSection from '../components/bottom-section';\r\nimport {navigate} from 'gatsby';\r\nimport moment from 'moment';\r\nimport {UserContext} from '../context/user-context';\r\nimport {getDataRequest} from '../requests';\r\nimport Cookies from 'js-cookie';\r\nimport loop from '../img/icons/search-icon.svg';\r\nimport icon1 from '../img/icons/icon-1.svg';\r\nimport icon2 from '../img/icons/icon-2.svg';\r\nimport icon3 from '../img/icons/icon-3.svg';\r\nimport icon4 from '../img/icons/icon-4.svg';\r\n\r\nimport {playIcon, arrowDownIcon} from '../img/svg-icons';\r\nimport Upgrade from '../components/upgrade';\r\nimport {getShowUpgradeModal, setToken} from '../helpers';\r\nimport './styles.scss';\r\n\r\nconst Home = ({location}) => {\r\n const {t, i18n} = useTranslation();\r\n const {user} = useContext(UserContext);\r\n\r\n useEffect(() => {\r\n if (\r\n location &&\r\n location.search &&\r\n !location.search.includes('subscription_id') &&\r\n !location.search.includes('ba_token=')\r\n ) {\r\n setToken(\r\n location.search\r\n .replace('?token=', '')\r\n .replace('&new_user=true', '')\r\n .replace('&new_user=false', ''),\r\n );\r\n if (location.search.includes('&new_user=true') && window.location.href.includes('candidatechecker.io')) {\r\n //@ts-ignore\r\n console.log(window.dataLayer);\r\n //@ts-ignore\r\n window.dataLayer = [];\r\n //@ts-ignore\r\n window.dataLayer.push({\r\n event: `accountRegistration-candidatechecker`,\r\n registrationOrderId: new Date().toISOString(),\r\n });\r\n //@ts-ignore\r\n window.dataLayer.push({\r\n event: `registration-candidatechecker`,\r\n ecommerce: {\r\n registration: {\r\n actionField: {\r\n id: `Registration_${new Date().toISOString()}`,\r\n },\r\n },\r\n },\r\n });\r\n }\r\n const redirect_url = localStorage.getItem('redirect_url');\r\n if (redirect_url) {\r\n localStorage.removeItem('redirect_url');\r\n navigate(redirect_url);\r\n return;\r\n }\r\n navigate(i18n.language === 'ar' ? '/ar/' : '/');\r\n }\r\n // setToken('nb7ssliot78056rcyrjkr1p');\r\n }, [location]);\r\n\r\n const rawPathnameValue =\r\n global &&\r\n global.window &&\r\n global.window.location &&\r\n global.window.location.pathname &&\r\n global.window.location.pathname &&\r\n global.window.location.pathname !== '/' &&\r\n global.window.location.pathname !== '/ar/' &&\r\n global.window.location.pathname !== '/ar' &&\r\n global.window.location.pathname.replace('/ar/', '').replace('/', '');\r\n\r\n const pathnameValue = rawPathnameValue && decodeURI(rawPathnameValue);\r\n\r\n const [usernameValue, setUsernameValue] = useState(\r\n pathnameValue && pathnameValue !== 'undefined' ? pathnameValue : '',\r\n );\r\n const [modalOpen, setModalOpen] = useState(false);\r\n const [requestLoading, setRequestLoading] = useState(false);\r\n const [errorMessage, setErrorMessage] = useState(false);\r\n const [result, setResult] = useState(null);\r\n const [scanDate, setScanDate] = useState(null);\r\n\r\n const getScanDate = () => {\r\n let scanTime = '';\r\n if (scanDate) {\r\n moment.utc(new Date(scanDate).toISOString()).format('MMM DD, YYYY') ===\r\n moment.utc(new Date().toISOString()).format('MMM DD, YYYY')\r\n ? (scanTime = moment.utc(new Date(scanDate).toISOString()).fromNow())\r\n : (scanTime = moment.utc(new Date(scanDate).toISOString()).format('MMM DD, YYYY h:mm:ss A (UTC)'));\r\n } else {\r\n scanTime = t('a-few-seconds-ago');\r\n }\r\n return scanTime;\r\n };\r\n\r\n const handleCaptureOnEnter = e => {\r\n if (e.key === 'Enter') {\r\n handleGo();\r\n }\r\n };\r\n\r\n const handleChange = e => {\r\n setErrorMessage('');\r\n setUsernameValue(e.target.value);\r\n };\r\n\r\n const modalToggle = () => {\r\n setModalOpen(!modalOpen);\r\n };\r\n\r\n const sendScanRequest = async (username, status) => {\r\n if (username && username.trim()) {\r\n setRequestLoading(true);\r\n setErrorMessage('');\r\n const res = await getDataRequest(username, 'recheck');\r\n if (res && res.error) {\r\n setRequestLoading(false);\r\n res.error === 'Your request limit reached' ? setModalOpen(true) : setErrorMessage(t('error-message'));\r\n return;\r\n }\r\n if (res && res.status === 200 && res.data && (res.data.data || Array.isArray(res.data))) {\r\n setResult(Array.isArray(res.data) ? res.data : JSON.parse(res.data.data));\r\n status === 'recheck' || !res.data.scan_time ? setScanDate(null) : setScanDate(null);\r\n setRequestLoading(false);\r\n } else if (res && res.data && res.data.error) {\r\n setRequestLoading(false);\r\n res.data.error === 'Your request limit reached' ? setModalOpen(true) : setErrorMessage(t('error-message'));\r\n }\r\n setRequestLoading(false);\r\n } else {\r\n setErrorMessage(t('please-enter-valid-nickname-or-username'));\r\n }\r\n };\r\n\r\n const handleNewScanRequest = () => {\r\n const navLink = usernameValue.trim();\r\n //const navLinkArr = trimedValue.includes('@') ? trimedValue.match(/^([^@]*)@/) : null;\r\n //const navLink = navLinkArr ? navLinkArr[1] : trimedValue;\r\n setResult(null);\r\n setScanDate(null);\r\n if ((navLink && navLink.includes(' ')) || !navLink) {\r\n setErrorMessage(t('please-enter-valid-nickname-or-username'));\r\n return;\r\n } else {\r\n i18n.language === 'ar'\r\n ? navigate(`/ar/${navLink.toLocaleLowerCase()}`)\r\n : navigate(`/${navLink.toLocaleLowerCase()}`);\r\n }\r\n };\r\n\r\n const handleGo = () => {\r\n if (pathnameValue === usernameValue) {\r\n sendScanRequest(pathnameValue, 'check');\r\n } else {\r\n handleNewScanRequest();\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (pathnameValue && pathnameValue.includes('index.html')) {\r\n navigate(`/${pathnameValue.replace('index.html', '')}`);\r\n return;\r\n }\r\n if (pathnameValue && pathnameValue !== undefined) {\r\n const hash = global && global.window && global.window.location && global.window.location.hash;\r\n\r\n setUsernameValue(pathnameValue);\r\n sendScanRequest(pathnameValue, 'recheck');\r\n }\r\n }, [pathnameValue]);\r\n\r\n return (\r\n <>\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n

{t('page-title')}

\r\n

\r\n {t('description-1')}\r\n
\r\n {t('description-2')}\r\n

\r\n
\r\n \r\n \r\n
\r\n \r\n {playIcon}\r\n \r\n
\r\n
\r\n
\r\n {requestLoading && (\r\n
\r\n
\r\n \r\n 5%\r\n \r\n
\r\n
\r\n )}\r\n\r\n {errorMessage && (\r\n \r\n
\r\n
{errorMessage}
\r\n
\r\n \r\n )}\r\n {result && (\r\n \r\n {\r\n
\r\n {t('scraped')} {getScanDate()}\r\n {pathnameValue && pathnameValue !== 'undefined' && (\r\n sendScanRequest(pathnameValue, 'recheck')}\r\n className={`rescan-btn ${requestLoading ? 'disabled' : ''}`}\r\n >\r\n \r\n \r\n \r\n
\r\n )}\r\n \r\n }\r\n \r\n }\r\n />\r\n )}\r\n {!result && }\r\n {/* {(user && user.package_data && user.package_data.name && user.package_data.name.toLowerCase() === 'free') ||\r\n (user && !user.package_data) ? (\r\n <>\r\n \r\n \"\"\r\n \r\n \r\n \r\n ) : null} */}\r\n {!result && }\r\n \r\n {modalOpen && (\r\n \r\n )}\r\n \r\n );\r\n};\r\nexport default memo(Home);\r\n\r\nexport const query = graphql`\r\n query($language: String!) {\r\n locales: allLocale(filter: {language: {eq: $language}}) {\r\n edges {\r\n node {\r\n ns\r\n data\r\n language\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n","module.exports = __webpack_public_path__ + \"static/home-illustration-2-f848cbcf1bae8e75dfd8733d413e5773.svg\";","module.exports = \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTExIiBoZWlnaHQ9IjMxNCIgdmlld0JveD0iMCAwIDUxMSAzMTQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8cmVjdCB3aWR0aD0iNTEx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NlclNwYWNlT25Vc2UiPg0KPHN0b3Agc3RvcC1jb2xvcj0iIzU1NTZBMCIgc3RvcC1vcGFjaXR5PSIwLjU0Ii8+DQo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMzMTMzMzgiIHN0b3Atb3BhY2l0eT0iMCIvPg0KPC9saW5lYXJHcmFkaWVudD4NCjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQyX2xpbmVhcl8yMzNfOTgyIiB4MT0iMTc5Ljc0OSIgeTE9IjE3OS4yNTIiIHgyPSIzMC42NzA1IiB5Mj0iMzI4LjMzIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+DQo8c3RvcCBzdG9wLWNvbG9yPSIjNzQ3NUM5IiBzdG9wLW9wYWNpdHk9IjAuNTQiLz4NCjxzdG9wIG9mZnNldD0iMC43MzYzMTYiIHN0b3AtY29sb3I9IiMzRjQxNjEiIHN0b3Atb3BhY2l0eT0iMC4yMTI0OTkiLz4NCjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzMxMzMzOCIgc3RvcC1vcGFjaXR5PSIwIi8+DQo8L2xpbmVhckdyYWRpZW50Pg0KPGNsaXBQYXRoIGlkPSJjbGlwMF8yMzNfOTgyIj4NCjxyZWN0IHdpZHRoPSIzNjAiIGhlaWdodD0iMjEwIiByeD0iMTIiIGZpbGw9IndoaXRlIi8+DQo8L2NsaXBQYXRoPg0KPGNsaXBQYXRoIGlkPSJjbGlwMV8yMzNfOTgyIj4NCjxyZWN0IHg9IjE0OSIgeT0iODAiIHdpZHRoPSIzNjIiIGhlaWdodD0iMjEwIiByeD0iMTIiIGZpbGw9IndoaXRlIi8+DQo8L2NsaXBQYXRoPg0KPC9kZWZzPg0KPC9zdmc+DQo=\"","import React from 'react';\r\nimport {useTranslation} from 'gatsby-plugin-react-i18next';\r\n\r\nimport {step1, step2, step3} from '../../img/svg-icons';\r\nimport './styles.scss';\r\n\r\nexport default ({text1, text2, text3}) => {\r\n const {t, i18n} = useTranslation();\r\n return (\r\n
\r\n
\r\n
\r\n {step1}\r\n

{text1 || `${t('Step-1')}`}

\r\n
\r\n
\r\n {step2}\r\n

{text2 || `${t('Step-2')}`}

\r\n
\r\n
\r\n {step3}\r\n

\r\n {text3 || (\r\n <>\r\n {t('Step-3')} {t('400')} \r\n {t('Step-4')}\r\n \r\n )}\r\n

\r\n
\r\n
\r\n
\r\n );\r\n};\r\n"],"sourceRoot":""}