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zR,EAAQ,UACRrC,IAEA,MAAM2U,EAAoB3U,EACvB,iCAAgCqC,KAI7BuS,EAAgBrB,SAASC,cAC7B,oCAIIqB,EAAqBD,GAAepB,cAAc,gBAMxD,GALIqB,GACFA,EAAmB5M,SAKnB0M,GACAA,IAAuB,iCAAgCtS,KAChC,iBAAvByR,EAAQU,WACR,CACA,MAAMM,EAAavB,SAASwB,cAAc,OAC1CD,EAAWrB,YAAckB,EACzBG,EAAWnO,MAAMpK,MAAQ,QACzBuY,EAAWnO,MAAM/H,OAAS,IAC1BkW,EAAWnO,MAAMxK,QAAU,WAC3B2Y,EAAWnO,MAAM5J,SAAW,OAC5B+X,EAAWnO,MAAM1I,WAAa,OAC9B6W,EAAWE,UAAY,cAEnBJ,IACFA,EAAcjO,MAAMsO,YAAc,IAClCL,EAAcjO,MAAM8B,aAAe,IACnCmM,EAAcM,QAAQJ,GAE1B,CACF,C,2DC1BO,MAAM9E,EAAwB,CACnC,8BACA,iCACA,gCACA,iCACA,uBACA,+BACA,oCACA,gCACA,iCACA,iCACA,4BACA,wCACA,oCACA,oCACA,gCACA,mCACA,qBACA,iCACA,kCACA,wBACA,8BACA,4BACA,8BACA,8BACA,0CACA,8BACA,8BACA,kCACA,+BACA,4CACA,4CACA,iCACA,8BACA,yCACA,qCACA,8BAGWO,EAAqB,CAChC,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,UACA,UACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,Q,sDClHK,MAAM4E,EAA4B,sBAElC,SAASzB,EACd0B,EACAC,EACArG,EACAsG,EACAC,GAEA,IAAIC,EAAkBjC,SAASC,cAC7B,0BACCpQ,MACH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oB,EAAAA,EAAAA,UACpC2G,EAAMoiB,gBAAkB,CACtBL,QAAS,KAIP,WAAE7B,IAAeH,EAAAA,EAAAA,KACjBtnB,GAAWgJ,EAAAA,EAAAA,gBAEjBnI,EAAAA,EAAAA,YAAU,KAEN6oB,EAAYJ,SACZ7B,GAAYkB,cACZ3oB,EAASqJ,WAAaoe,EAAWpe,UAEjCoe,EAAWkB,aAAalB,EAC1B,GACC,CAACznB,EAASqJ,SAAUqgB,EAAYJ,QAAS7B,KAE5C5mB,EAAAA,EAAAA,YAAU,KACR,GAAI6oB,EAAYJ,QACd,IACElB,EAAAA,WAAWwB,UAAU,qBAAsB,CACzCN,QAASI,EAAYJ,QACrBO,SAAUH,EAAYJ,QAAUC,EAAcvB,UAC9C5I,MAAO9a,OAAOtE,SAASqJ,SACvB2e,UAAWuB,EAAcvB,WAE7B,CAAE,MAAO1nB,GACPD,QAAQC,MAAM,4BAA6BA,EAC7C,CACF,GAEC,CAACopB,EAAYJ,UAEhB,MAAMQ,GAAgB/V,EAAAA,EAAAA,UACpB,KAAM,CACJ2V,cACAH,gBACAH,iBACAI,sBAEF,CAACD,EAAeG,IAGlB,OACEzqB,IAAAA,cAACiqB,EAAoBhV,SAAQ,CAACnJ,MAAO+e,GAClCviB,EAAMC,SACPvI,IAAAA,cAACkqB,EAAqB,MAG5B,CAjFAD,EAAoBD,YAAc,qB","sources":["webpack:///./src/auth/Login.tsx","webpack:///./src/auth/LoginButton.tsx","webpack:///./src/auth/LoginCallbackView.tsx","webpack:///./src/auth/LoginView.tsx","webpack:///./src/auth/LogoutView.tsx","webpack:///./src/auth/PermissionGate.tsx","webpack:///./src/auth/ProfileView.tsx","webpack:///./src/auth/RedirectToIdp.tsx","webpack:///./src/auth/RequireAuth.tsx","webpack:///./src/auth/RequireStepUpAuth.tsx","webpack:///./src/auth/TermsAndConditions.tsx","webpack:///./src/auth/WelcomeVideo.tsx","webpack:///./src/auth/auth-context/AuthProvider.tsx","webpack:///./src/auth/auth-context/OktaHelper.tsx","webpack:///./src/auth/auth-context/auth-context.ts","webpack:///./src/auth/auth-context/useAuthConfig.ts","webpack:///./src/auth/okta-widget-customizations/FailedLoginDialog.tsx","webpack:///./src/auth/okta-widget-customizations/LoginWidget.tsx","webpack:///./src/auth/okta-widget-customizations/MfaWarningMessage.tsx","webpack:///./src/auth/okta-widget-customizations/extras.ts","webpack:///./src/auth/okta-widget-customizations/failed-login-attempts.ts","webpack:///./src/auth/okta-widget-customizations/failed-login-dialog.hooks.ts","webpack:///./src/auth/use-resellerProfile.ts","webpack:///./src/auth/use-reusable-contents.ts","webpack:///./src/auth/useAutoSignIn.tsx","webpack:///./src/auth/useCopyrightLinks.ts","webpack:///./src/auth/useHasPermission.ts","webpack:///./src/auth/useHasRole.ts","webpack:///./src/auth/useIsFeatureWhitelisted.ts","webpack:///./src/auth/useIsImpersonationMode.ts","webpack:///./src/auth/useRedirectToLogin.ts","webpack:///./src/auth/useWelcomeVideoURL.ts","webpack:///./src/auth/utils.ts","webpack:///./src/content/campaign-context/CampaignProvider.tsx","webpack:///./src/content/campaign-context/useCampaignConfig.ts","webpack:///./src/content/cms-featureFlag-context/CmsFeatureFlagProvider.tsx","webpack:///./src/content/cms-featureFlag-context/useCmsFeatureFlagConfig.ts","webpack:///./src/content/cookies-consent/CookiesConsent.tsx","webpack:///./src/content/helmet/metaTags.tsx","webpack:///./src/feature-flag/FeatureFlagProvider.tsx","webpack:///./src/feature-flag/useFeatureFlag.ts","webpack:///./src/feature-flag/useFeatureFlagConfig.ts","webpack:///./src/provider/dd-custom-actions/PageLoadMetrics/PageLoadMetricsProvider.tsx","webpack:///./src/provider/dd-custom-actions/PageLoadTimeProvider.tsx"],"sourcesContent":["import React from 'react';\nimport { LoginView } from './LoginView';\nimport { RedirectToIdp } from './RedirectToIdp';\nimport { useSiteConfig } from '../config';\n\nexport function Login() {\n const siteConfig = useSiteConfig();\n if (siteConfig.idpLogin) {\n return ;\n } else {\n return ;\n }\n}\n","import React from 'react';\nimport Button from '@mui/material/Button';\nimport { useNavigate } from 'react-router-dom';\nimport { useOktaAuth } from '@okta/okta-react';\n\nexport function LoginButton() {\n const navigate = useNavigate();\n const oktaContext = useOktaAuth();\n if (!oktaContext) return null;\n\n const isAuthenticated = oktaContext.authState?.isAuthenticated;\n\n const onClick = () => {\n if (isAuthenticated) {\n signOut();\n } else {\n navigate('/login');\n }\n };\n\n const signOut = async () => {\n const postLogoutRedirectUri = `${globalThis.location.origin}/cep`;\n\n try {\n await oktaContext.oktaAuth.signOut({ postLogoutRedirectUri });\n } catch (err) {\n console.error('logout', err);\n throw err;\n }\n };\n\n return (\n \n );\n}\n","import { LoginCallback, useOktaAuth } from '@okta/okta-react';\nimport React, { useEffect, useState } from 'react';\nimport { Navigate } from 'react-router';\n\nexport function LoginCallbackView() {\n const [originalUri, setOriginalUri] = useState('/');\n const oktaContext = useOktaAuth();\n const { authState, oktaAuth } = oktaContext;\n useEffect(() => {\n const uri = oktaAuth.getOriginalUri();\n if (uri) {\n setOriginalUri(uri);\n }\n }, [oktaAuth]);\n\n if (authState?.isAuthenticated) {\n return ;\n }\n return ;\n}\n","/*eslint import/no-cycle: [2, { maxDepth: 1 }]*/\nimport React from 'react';\nimport { usePageTitle } from '../config';\nimport { styled } from '@mui/material/styles';\nimport '../../node_modules/@okta/okta-signin-widget/dist/css/okta-sign-in.min.css';\nimport { useLocalizationContext, useTranslate } from '@im/react-localization';\nimport { IngramLogoWithRX4CLoginHeader } from '@im/ui-lib/icons/IngramLogoWithRX4CLoginHeader';\nimport Box from '@mui/material/Box';\nimport Stack from '@mui/material/Stack';\nimport Typography from '@mui/material/Typography';\nimport Button from '@mui/material/Button';\nimport { CulturePicker } from '@im/ui-lib/CulturePicker/CulturePicker';\nimport { LoginWidget } from './okta-widget-customizations/LoginWidget';\nimport { PageLoadTimeProvider } from '../provider/dd-custom-actions';\n\nexport const LoginView = () => {\n const translateStr = useTranslate();\n const copyrightContent = translateStr('OktaWidget.Copyright');\n const whatYearIsItNow = new Date().getFullYear().toString();\n const { updatePageTitle } = usePageTitle();\n const l10nContext = useLocalizationContext();\n const { locale } = l10nContext;\n const [, countryCode] = locale.split('-');\n\n const contactUsURLs = {\n BE: `/cep/app/cms/en-be/general/contact-us`,\n NL: `/cep/app/cms/nl-nl/general/contact-us`,\n };\n\n const isCountryCode = (code: string): code is keyof typeof contactUsURLs => {\n return code in contactUsURLs;\n };\n\n const openContactUsNewTab = (countryCode: string) => {\n if (isCountryCode(countryCode)) {\n (window as any).open(contactUsURLs[countryCode], '_blank');\n } else {\n console.error(\n 'Invalid country code or missing URL for the provided country code.'\n );\n }\n };\n\n updatePageTitle(translateStr('Title.Login'));\n return (\n \n \n \n \n \n \n \n \n \n \n theme.palette.grey[100],\n minHeight: 514,\n }}\n >\n \n \n \n theme.palette.text.secondary}\n padding={3}\n variant=\"body2\"\n >\n {copyrightContent.replace(/\\{\\{year\\}\\}/gi, whatYearIsItNow)}\n \n {countryCode &&\n (countryCode.toUpperCase() === 'BE' ||\n countryCode.toUpperCase() === 'NL') && (\n openContactUsNewTab(countryCode)}\n size=\"medium\"\n sx={{\n borderColor: '#C4C4C4 !important',\n fontSize: '14px',\n marginTop: 2,\n }}\n variant=\"outlined\"\n >\n {translateStr('Login.Contact_us')}\n \n )}\n \n {window.isOneTrustEnabled && (\n \n )}\n \n \n );\n};\n\nconst Root = styled('div')(({ theme }) => ({\n '#okta-sign-in .auth-header': {\n padding: '80px 90px 75px',\n },\n '#okta-sign-in .beacon-container': {\n bottom: 30,\n },\n '#okta-sign-in.auth-container': {\n '.mfa-google-auth,.mfa-google-auth-30': {\n backgroundImage:\n 'url(/cep/assets/okta-signin-widget/img/icons/mfa/google-ms-authenticators_sm.png)',\n backgroundSize: 'contain',\n },\n },\n '#okta-sign-in.auth-container.main-container': {\n '.auth-content': {\n padding: 'unset',\n },\n '.button-primary': {\n background: theme.palette.primary.main,\n borderColor: theme.palette.primary.main,\n borderRadius: 6,\n color: theme.palette.common.white,\n fontSize: 18,\n height: 56,\n },\n '.link': {\n color: theme.palette.text.primary,\n fontSize: 14,\n },\n '.o-form .infobox': {\n color: theme.palette.text.secondary,\n },\n '.o-form .input-fix': {\n border: 'unset',\n height: 52,\n input: {\n '&:-webkit-autofill': {\n WebkitBoxShadow: `0 0 0 25px ${theme.palette.common.white} inset`,\n WebkitTextFillColor: theme.palette.text.primary,\n borderRadius: 6,\n },\n '&::selection': {\n //backgroundColor: theme.palette.common.black,\n },\n border: `1px solid ${theme.palette.text.secondary}`,\n borderRadius: 6,\n },\n },\n '.o-form-explain': {\n color: 'unset',\n textAlign: 'left',\n },\n '.o-form-fieldset': {\n '&:first-of-type': {\n marginBottom: 40,\n },\n },\n '.o-form-head': {\n color: theme.palette.text.primary,\n fontSize: 16,\n fontWeight: 400,\n lineHeight: '18.75px',\n textAlign: 'left',\n },\n '.okta-form-input-field': {\n backgroundColor: 'unset',\n boxShadow: 'unset',\n },\n '.okta-form-label': {\n backgroundColor: theme.palette.grey[100],\n fontWeight: 400,\n left: 16,\n padding: '0 4px',\n position: 'relative',\n top: 10,\n width: 'auto',\n zIndex: 1,\n },\n '.okta-sign-in-header.auth-header': {\n '.beacon-container.beacon-small': {\n display: 'none',\n },\n borderBottom: 'unset',\n },\n '@media screen and (min-width: 950px)': {\n left: -220,\n },\n backgroundColor: 'transparent',\n borderColor: 'transparent',\n boxShadow: 'none',\n color: theme.palette.text.primary,\n fontFamily: 'Roboto',\n input: {\n backgroundColor: theme.palette.common.white,\n color: theme.palette.text.primary,\n fontFamily: 'unset',\n },\n margin: 'auto',\n overflow: 'unset',\n width: 412,\n },\n '#okta-sign-in.no-beacon .auth-header': {\n paddingBottom: 'unset',\n },\n}));\n","import React, { useEffect } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport { CenterLoader } from '@im/ui-lib/CenterLoader';\n\nimport { useOktaAuth } from '@okta/okta-react';\nimport { useSiteConfig } from '../config';\n\nconst ORIGIN = globalThis.location.origin;\n\nexport const LogoutView = () => {\n const oktaContext = useOktaAuth();\n const navigate = useNavigate();\n const siteConfig = useSiteConfig();\n const logoutRedirectUri = siteConfig.idpLogin ? '/cep' : '/cep/app/login';\n\n useEffect(() => {\n const oktaAuth = oktaContext?.oktaAuth;\n const postLogoutRedirectUri = `${ORIGIN}${logoutRedirectUri}`;\n\n if (oktaAuth) {\n localStorage.removeItem('OktaSession');\n localStorage.removeItem('AccessToken');\n localStorage.removeItem('WarehouseStore');\n sessionStorage.removeItem('trendingProductsFilters');\n localStorage.removeItem('visitedQuickInsightPages');\n sessionStorage.removeItem('ignoreCCRedirect');\n localStorage.removeItem('getContact');\n oktaAuth\n .signOut({ postLogoutRedirectUri })\n .then(() => {\n oktaAuth.tokenManager.clear();\n })\n .catch((err) => {\n console.error('Sign out error:', err);\n });\n } else {\n window.location.href = postLogoutRedirectUri;\n }\n }, [navigate, oktaContext, logoutRedirectUri]);\n\n return ;\n};\n","import React, { ReactNode } from 'react';\nimport { useTranslate } from '@im/react-localization';\nimport { useHasPermission } from './useHasPermission';\n\ntype Props = {\n children: ReactNode;\n fallback?: NonNullable | null;\n roles: string[];\n};\n\n/** Renders `children` when User has at least 1 role in the `roles` prop.\n *\n * For AND logic one entry in the `roles` props can be a list of roles separated\n * by \"&\" character. Whitespace will be ignored.\n *\n * E.g. User must have role1 OR (role2 AND role3)\n * ```\n * roles = ['role1', 'role2 & role3']\n * ```\n */\nexport function PermissionGate(props: Props) {\n const { children, fallback, roles } = props;\n\n const translate = useTranslate();\n const hasPermission = useHasPermission();\n\n if (hasPermission(roles)) {\n return <>{children};\n }\n\n if (fallback) {\n return <>{fallback};\n }\n\n return

{translate('Common.UnAuthorized')}

;\n}\n","import React from 'react';\nimport { useDecodedToken } from './authorization.hook';\n\nimport { View } from '@im/ui-lib/View';\nimport { RequireAuth } from './RequireAuth';\n\nconst ProfileViewComp = () => {\n const decodedToken = useDecodedToken();\n\n if (!decodedToken) {\n return (\n
\n

Fetching user profile...

\n
\n );\n }\n\n return (\n \n
\n

My User Profile (Access Token Claims)

\n

\n Below is the information from your access token which was obtained\n during{' '}\n \n PKCE Flow\n {' '}\n and is now stored in local storage.\n

\n

\n This View is protected with the <RequireAuth>{' '}\n component, which will ensure that this View cannot be accessed until\n you have authenticated.\n

\n \n \n \n \n \n \n \n \n {Object.entries(decodedToken).map((claimEntry) => {\n const claimName = claimEntry[0];\n const claimValue = claimEntry[1];\n const claimId = `claim-${claimName}`;\n return (\n \n \n \n \n );\n })}\n \n
\n Claim\n \n Value\n
{claimName}\n {typeof claimValue === 'object' ? (\n
{JSON.stringify(claimValue, undefined, 2)}
\n ) : (\n claimValue.toString()\n )}\n
\n
\n
\n );\n};\n\nexport const ProfileView = () => } />;\n","import { useLocalizationContext } from '@im/react-localization';\nimport { useOktaAuth } from '@okta/okta-react';\nimport React, { useEffect } from 'react';\nimport { useLocation } from 'react-router';\nimport { useDeleteRedundantSession } from './useAutoSignIn';\n\nexport function RedirectToIdp() {\n const oktaContext = useOktaAuth();\n const { oktaAuth } = oktaContext;\n const location = useLocation();\n const { locale } = useLocalizationContext();\n const historyState = location.state as { from: Location };\n const deleteRedundantSession = useDeleteRedundantSession();\n let originalUri = '/';\n if (historyState) {\n const { pathname, search } = historyState.from;\n originalUri = pathname + search;\n }\n\n useEffect(() => {\n deleteRedundantSession().then(() => {\n oktaAuth.setOriginalUri(originalUri);\n oktaAuth.signInWithRedirect({\n extraParams: {\n locale: locale,\n },\n });\n });\n }, [deleteRedundantSession, locale, oktaAuth, originalUri]);\n\n return <>;\n}\n","import React from 'react';\nimport { Navigate, useLocation } from 'react-router-dom';\nimport { useOktaAuth } from '@okta/okta-react';\n\nexport function RequireAuth({ children }: Readonly<{ children: JSX.Element }>) {\n const oktaContext = useOktaAuth();\n const location = useLocation();\n\n const authState = oktaContext?.authState;\n\n if (!authState?.isAuthenticated) {\n // Redirect them to the /login page, but save the current location they were\n // trying to go to when they were redirected. This allows us to send them\n // along to that page after they login, which is a nicer user experience\n // than dropping them off on the home page.\n return ;\n }\n\n return children;\n}\n","import React, { useEffect, useRef, useState } from 'react';\nimport { Navigate, useLocation } from 'react-router-dom';\nimport { useOktaAuth } from '@okta/okta-react';\nimport { useDecodedToken } from './authorization.hook';\nimport { View } from '@im/ui-lib/View';\nimport { useSiteConfig } from '../config';\nimport { useLocalizationContext } from '@im/react-localization';\nimport { useFeatureFlag } from '../feature-flag';\n\ntype Props = {\n children: JSX.Element;\n env?: string;\n siteCode?: string;\n};\n\nconst acrValue = 'urn:okta:loa:2fa:any';\n\nconst boKeyEnabled = 'Step-Up_Auth_Enabled';\nconst boKeyWhitelist = 'Step-Up_Auth_Reseller_Whitelist';\nconst boKeyBlacklist = 'Step-Up_Auth_Reseller_Blacklist';\n\nexport function RequireStepUpAuth(props: Readonly) {\n const { children } = props;\n const siteCodes = props.siteCode?.split(',');\n const environments = props.env?.split(',');\n const { environment, siteCode } = useSiteConfig();\n const oktaContext = useOktaAuth();\n const authState = oktaContext?.authState;\n const oktaAuth = oktaContext?.oktaAuth;\n const location = useLocation();\n const token = useDecodedToken();\n const [isStepUpRequired, setStepUpRequired] = useState(null);\n const { locale } = useLocalizationContext();\n\n const isRequired =\n (!siteCodes || siteCodes?.includes(siteCode)) &&\n (!environments || environments?.includes(environment));\n\n const boKeys = useFeatureFlag([boKeyEnabled, boKeyWhitelist, boKeyBlacklist]);\n const [boKeyIsReady, setBoKeyIsReady] = useState(false);\n const boKeyValueRef = useRef(boKeys.value);\n\n useEffect(() => {\n if (boKeys.isReady) {\n boKeyValueRef.current = boKeys.value;\n setBoKeyIsReady(true);\n }\n }, [boKeys]);\n\n useEffect(() => {\n if (authState?.isAuthenticated && boKeyIsReady) {\n const boKeyValues = boKeyValueRef.current;\n const enabled = boKeyValues[boKeyEnabled]?.toLowerCase() === 'true';\n const resellerWhitelist = convertToArray(boKeyValues[boKeyWhitelist]);\n const resellerBlacklist = convertToArray(boKeyValues[boKeyBlacklist]);\n const resellerId = token?.resellerId.toLowerCase().trim();\n const isEnabled =\n enabled &&\n resellerId &&\n (resellerWhitelist.includes('*') ||\n resellerWhitelist.includes(resellerId)) &&\n !resellerBlacklist.includes(resellerId);\n\n if (token?.acr === acrValue || !isRequired || !isEnabled) {\n setStepUpRequired(false);\n } else {\n oktaAuth.token\n .getWithPopup({\n extraParams: {\n acr_values: acrValue,\n locale: locale,\n },\n })\n .then((tokenResponse) => {\n const tokens = tokenResponse.tokens;\n oktaAuth.tokenManager.setTokens(tokens);\n })\n .catch((err) => {\n console.error('authorize call retuned an error: ', err);\n setStepUpRequired(true);\n });\n }\n }\n }, [\n authState,\n boKeyIsReady,\n isRequired,\n locale,\n oktaAuth,\n setStepUpRequired,\n token,\n ]);\n\n if (!authState?.isAuthenticated) {\n return ;\n }\n\n if (isStepUpRequired) {\n return (\n \n
\n

Step-up authentication is required!

\n
\n
\n );\n } else if (isStepUpRequired === false) {\n return children;\n }\n\n return (\n \n
\n

Pending step-up authentication...

\n
\n
\n );\n}\n\nconst convertToArray = (str: string) => {\n if (!str) {\n return [];\n }\n return str\n .split(/[,;]+/)\n .map((x) => x.toLowerCase().trim())\n .filter((x) => x);\n};\n","/* eslint-disable import/max-dependencies */\nimport React, { useEffect, useState } from 'react';\nimport { useNavigate } from 'react-router';\nimport { useLocation } from 'react-router-dom';\nimport { usePageTitle } from '../config';\n/* eslint-disable import/no-extraneous-dependencies*/\nimport Cookies from 'js-cookie';\nimport { styled } from '@mui/material/styles';\nimport Button from '@mui/material/Button';\nimport Box from '@mui/material/Box';\nimport Typography from '@mui/material/Typography';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport Checkbox from '@mui/material/Checkbox';\nimport { Footer } from '@im/ui-lib/Footer';\nimport { IngramLogo } from '@im/ui-lib/icons/IngramLogo';\nimport { CulturePicker } from '@im/ui-lib/CulturePicker/CulturePicker';\nimport { useReusableContents } from './use-reusable-contents';\nimport { useApiQuery, useApiPatch } from '../query';\nimport htmlparse from 'html-react-parser';\nimport { CenterLoader } from '@im/ui-lib/CenterLoader';\nimport {\n useLocalization,\n useLocalizationContext,\n useTranslate,\n} from '@im/react-localization';\nimport { fetchIpAdrress } from './user-info.hooks';\nimport { useFeatureFlag } from '../feature-flag';\nimport { useOktaAuth } from '@okta/okta-react';\nimport { PageLoadTimeProvider } from '../provider/dd-custom-actions';\nimport { useCopyrightLinks } from './useCopyrightLinks';\n\nexport const TermsAndConditions = () => {\n const navigate = useNavigate();\n const location = useLocation();\n const oktaContext = useOktaAuth();\n const { formatDate } = useLocalization();\n const translate = useTranslate();\n const { locale } = useLocalizationContext();\n const apiPatch = useApiPatch();\n const copyRightLinks = useCopyrightLinks();\n const profileData = useProfileData();\n const termsData = useReusableContents('Terms and conditions');\n const [checked, setChecked] = useState(false);\n const [isNewUser, setIsNewUser] = useState(false);\n const { isReady, value: BO_Keys } = useFeatureFlag(['Enable_User_IP_Update']);\n const [disableAction, setDisableAction] = useState(false);\n\n const { updatePageTitle } = usePageTitle();\n updatePageTitle(translate('Title.TnC'));\n\n useEffect(() => {\n termsData.refetch();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [locale]);\n\n const url = isNewUser ? '/welcome-video' : '/my/dashboard';\n\n useEffect(() => {\n if (\n termsData.status === 'error' ||\n termsData.data?.reusableContents.length === 0\n ) {\n // eslint-disable-next-line no-console\n console.log('[TnC] data is missing');\n navigate(url);\n } else if (profileData.status === 'error') {\n // eslint-disable-next-line no-console\n console.log('[User-Profile] data is missing');\n navigate(url);\n } else if (\n profileData.status === 'success' &&\n termsData.status === 'success'\n ) {\n if (profileData.data.dateLastTermsConditionsAcceptance) {\n if (\n termsData.data.reusableContents.length > 0 &&\n termsData.data.reusableContents[0].documentModifiedWhen\n ) {\n const acceptanceDate = new Date(\n profileData.data.dateLastTermsConditionsAcceptance\n );\n const modifiedDate = new Date(\n termsData.data.reusableContents[0].documentModifiedWhen\n );\n if (acceptanceDate > modifiedDate) {\n navigate(url);\n }\n }\n } else {\n setIsNewUser(true);\n }\n }\n }, [termsData, profileData, navigate, url]);\n\n const handleChange = (e: any) => {\n setChecked(e.target.checked);\n };\n const handleAccept = async () => {\n let clientIp = '';\n setDisableAction(true);\n if (isReady && BO_Keys['Enable_User_IP_Update'] === 'true') {\n clientIp = await fetchIpAdrress();\n }\n apiPatch(`/account-management/v1/users/terms_conditions_acceptance`, {\n clientIp,\n })\n .then((res) => {\n if (res) {\n const state = location.state as {\n isCepWhitelisted: boolean;\n };\n setDisableAction(false);\n if (state && !state.isCepWhitelisted) {\n Cookies.remove('IMOnline_CEP');\n window.location.href = `${window.location.origin}/site/login/idplogin`;\n } else {\n profileData.refetch();\n navigate(url);\n }\n }\n })\n .catch((err) => {\n setDisableAction(false);\n console.error(err);\n });\n };\n\n const handleDecline = async () => {\n const postLogoutRedirectUri = `${globalThis.location.origin}/cep`;\n try {\n localStorage.removeItem('okta-token-storage');\n navigate('/logout');\n await oktaContext.oktaAuth.signOut({ postLogoutRedirectUri });\n } catch (err) {\n console.error('logout', err);\n throw err;\n }\n };\n\n return termsData.status !== 'success' ? (\n \n ) : (\n \n \n \n \n \n \n \n {translate('TnC.HeaderTitle')}\n {translate('TnC.HeaderText')}\n {termsData.data?.reusableContents?.length > 0 && (\n \n {translate('TnC.SalesTermsAndConditions')}{' '}\n \n {'('}\n {translate('TnC.LastUpdated')}\n {` ${formatDate(\n new Date(\n termsData.data?.reusableContents[0]?.documentModifiedWhen\n ),\n 'medium'\n )})`}\n \n \n )}\n {termsData.data?.reusableContents?.length > 0 && (\n \n {htmlparse(termsData.data?.reusableContents[0]?.content)}\n \n )}\n {termsData.data?.reusableContents?.length === 0 && (\n {translate('TnC.ContentMissingMessage')}\n )}\n \n \n }\n label={translate('TnC.ConfirmText')}\n />\n \n handleDecline()}\n sx={{ marginLeft: 'auto' }}\n variant=\"outlined\"\n >\n {translate('TnC.Decline')}\n \n handleAccept()}\n sx={{ marginLeft: '24px' }}\n variant=\"contained\"\n >\n {translate('TnC.Accept')}\n \n \n \n \n