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AAA,+BAAAhD,EAAA,eAAA3C,EAAAC,EAAAC,EAAAE,EAAAE,EAAAoD,aAAAC,OAAA,6BAAArD,CAAAA,GAAA,KAAAsF,KAAAtF,GAAA,IAAAsF,MAAA,QAAA5F,CAAAA,EAAAY,MAAA,SAAAX,CAAAA,EAAAD,EAAAgG,OAAA,SAAA9F,CAAAA,EAAAD,EAAAgG,OAAA,SAAA7F,CAAAA,EAAAF,EAAAgG,EAAA,SAAA9F,EAAA+F,iBAAA,EAAAvF,CAAAA,OAAAoF,OAAA,CAAAC,OAAA,CAAAC,EAAA,CAAAC,iBAAA,MAAAhG,EAAAkB,CAAA,EAAAhB,EAAA8D,GAAA,CAAAiC,kBAAA,GAAA7D,CAAAA,IAAA3B,OAAAyF,QAAA,CAAAC,MAAA,uBAAAtG,CAAA,CAAAC,CAAA,CAAAC,CAAA,eAAAA,EAAAe,CAAA,CAAAhB,EAAA,CAAAoB,EAAA,kBAAAjB,CAAA,QAAAA,EAAA,SAAAJ,CAAA,EAAAY,OAAA2F,OAAA,CAAAC,YAAA,WAAAxG,GAAAY,OAAAyF,QAAA,CAAAI,IAAA,CAAAzG,CAAA,iBAAAA,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAF,EAAA0G,OAAA,CAAAxG,EAAA","sources":["webpack://_N_E/./components/GTMScriptFunction/index.js","webpack://_N_E/./components/Janrain/helpers/localstorage.helpers.js","webpack://_N_E/./components/Janrain/helpers/redirect.helpers.js","webpack://_N_E/./node_modules/next/script.js","webpack://_N_E/"],"sourcesContent":["import React, { Fragment } from \"react\";\nimport { OrganizationConstants } from \"../../adapters/helpers/Constants\";\nimport DOMPurify from \"isomorphic-dompurify\";\nimport Script from \"next/script\";\nimport { setProfileData } from \"../Janrain/helpers/localstorage.helpers\";\n\nconst GTMScriptFunction = (props) => {\n if (\n typeof window !== \"undefined\" &&\n !window &&\n !window.PGdataLayer &&\n !window.PGdataLayer.user\n ) {\n setProfileData();\n }\n\n const { languageCode, countryCode, productVariant = undefined } = props;\n\n return (\n \n { \n if(document.readyState === 'complete'){\n PGdataLayer = {\n 'page' : {\n 'url' : '',\n 'title' : '',\n },\n\n 'GTM': {\n 'SiteCountry':'${countryCode}',\n 'GoogleAnalyticsSiteSpeedSampleRate':'regular',\n 'GoogleAnalyticsAllowLinker':'false',\n 'GoogleAnalyticsOptimizeContainerID':'${process.env.GA_OPTIMIZE_CONTAINER_ID}',\n 'GoogleReCaptcha':'false',\n 'GoogleAnalyticsReportingView':'${process.env.GA_REPORTING_VIEW}',\n 'GhosteryOverlay': '',\n 'GhosteryOverlayID': '',\n 'SiteHost': 'Azure Devops',\n 'SiteEnvironment': '${process.env.SITE_ENVIRONMENT}',\n 'SiteCountryISO3': '${process.env.SITE_ENVIRONMENT_ISO3}',\n 'SiteTechnicalAgency': 'Mindtree',\n 'SiteLocalContainer': '${process.env.SITE_LOCALCONTAINER}',\n 'GoogleAnalyticsLocal': '${process.env.GA_TRACKING_CODE}',\n 'ConsentOverlay': '${process.env.CONSENT_OVERLAY}',\n 'ConsentOverlayID': '${process.env.CONSENT_OVERLAY_ID}',\n 'SitePrivacyProtection': '${process.env.SITE_PRIVACY_PROTECTION}',\n 'SiteTouchpoint': '${process.env.DL_TOUCHPOINT_ID}',\n 'SiteBrand': 'OralB',\n 'SiteLanguage': '${languageCode}',\n 'SitePlatform': 'ModernWeb',\n 'SiteStatus': '${process.env.DL_SITE_STATUS}',\n 'FacebookRemarketingID': '${process.env.FACEBOOK_REMARKETING_ID}',\n 'Segment': '${process.env.PG_DATA_LAYER_GTM_SEGMENT}',\n 'Lytics': '${process.env.PG_DATA_LAYER_GTM_LYTICS}',\n 'GoogleAnalyticsGA4MeasurementID': '${process.env.GOOGLE_ANALYTICS_GA4_MEASUREMENT_ID}'\n }\n };\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.defer=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','${process.env.GTM_TRACKING_ID}');\n clearInterval(interval)\n }},3500)\n `),\n }}\n />\n {productVariant && (\n \n )}\n \n );\n};\n\nexport default GTMScriptFunction;\n","/*\n* A common place to set, get and delete local storage items used in the login/register/profile process\n* This reduces the risk of misspelling strings and making other mistakes\n*/\n\nimport {JanrainConstants} from '../../../adapters/helpers/Constants';\nimport {customSuperJsonParse} from '../../../adapters/helpers/Utils'\nimport {redirectTo} from './redirect.helpers';\n\nexport const setProfileData = () =>{\n \n let userData = localStorage.getItem('janrainCaptureProfileData');\n if(userData) {\n const profileData = customSuperJsonParse(userData);\n // Hardcoding value of marketingProgramNbr for Italy \n const profileObject = {\n firstname:profileData.givenName,\n id:profileData.consumerID || profileData.uuid,\n email:profileData.email,\n marketingProgramNbr: process.env.MARKET && process.env.MARKET.trim() =='it-it' ? process.env.PG_DATA_LAYER_USER_MARKETING_PROGRAM_NBR :profileData.marketingProgramNbr,\n sourceID: process.env.PG_DATA_LAYER_USER_SOURCE_ID,\n type:'member'\n }\n if(window.PGdataLayer && !window.PGdataLayer.user){\n window.PGdataLayer.user = {}\n }\n if (typeof Object.assign != 'function') {\n Object.assign = function(target) {\n 'use strict';\n if (target == null) {\n throw new TypeError('Cannot convert undefined or null to object');\n }\n \n target = Object(target);\n for (var index = 1; index < arguments.length; index++) {\n var source = arguments[index];\n if (source != null) {\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n }\n return target;\n };\n } else {\n Object.assign(window.PGdataLayer.user,profileObject)\n }\n } else {\n const profileObject = {\n marketingProgramNbr: process.env.PG_DATA_LAYER_USER_MARKETING_PROGRAM_NBR || '',\n sourceID: process.env.PG_DATA_LAYER_USER_SOURCE_ID,\n type:'anonymous'\n }\n if(window.PGdataLayer && !window.PGdataLayer.user){\n window.PGdataLayer.user = {}\n }\n if (typeof Object.assign != 'function') {\n Object.assign = function(target) {\n 'use strict';\n if (target == null) {\n throw new TypeError('Cannot convert undefined or null to object');\n }\n \n target = Object(target);\n for (var index = 1; index < arguments.length; index++) {\n var source = arguments[index];\n if (source != null) {\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n }\n return target;\n };\n } else {\n Object.assign(window.PGdataLayer.user,profileObject)\n }\n\n }\n}\n\nconst triggerEvent = (\n eventCategory,\n eventAction,\n eventLabel = '',\n callback,\n ) => {\n window.dataLayer.push({\n event: 'customEvent',\n GAeventCategory: eventCategory,\n GAeventAction: eventAction,\n GAeventLabel: eventLabel,\n GAeventValue: 0,\n GAeventNonInteraction: false,\n eventCallback: callback,\n })\n }\n\nexport const triggerLoginEvent = () => {\n // eslint-disable-next-line no-console\n try {\n triggerEvent(\n 'event_crm_action',\n 'event_profile_login_complete',\n 'oralb_successful_login',\n )\n } catch (error) {\n console.error('GA is not loaded...')\n }\n }\n\nexport const triggerRegisiterEvent = () => {\n // eslint-disable-next-line no-console\n try {\n /** Promise to make sure Login is called only after registration\n * dont use EventCallout\n */\n new Promise((resolve) => triggerEvent(\n 'event_crm_action',\n 'event_profile_register_complete',\n 'oralb_successful_register',\n resolve(),\n )).then(() => {\n triggerEvent(\n 'event_crm_action',\n 'event_profile_login_complete',\n 'oralb_successful_login',\n )\n })\n } catch (error) {\n console.error('GA is not loaded...')\n }\n }\n \nexport const triggerLogoutEvent = () => {\n if (!(window.PGdataLayer && window.PGdataLayer.user)) return\n if (!window.PGdataLayer.user.id) return\n // eslint-disable-next-line no-console\n try {\n triggerEvent(\n 'event_crm_action',\n 'event_profile_logout',\n 'oralb_successful_logout',\n )\n } catch (error) {\n console.error('GA is not loaded...')\n }\n }\nexport const getOralbProductListFromLocalStorage = (uuid) => {\n let key = JanrainConstants.productListLocalStorageKeyPrefix + uuid;\n return localStorage.getItem(key) || '[]';\n};\n\nexport const setOralbProductListToLocalStorage = (productList, uuid) => {\n let key = JanrainConstants.productListLocalStorageKeyPrefix + uuid;\n localStorage.setItem(key, productList);\n};\n\nexport const getOralbBenefitPreferenceListFromLocalStorage = (uuid) => {\n let key = JanrainConstants.benefitListLocalStorageKeyPrefix + uuid;\n return localStorage.getItem(key) || '[]';\n};\n\nexport const setOralbBenefitPreferenceListToLocalStorage = (benefitPreferenceList, uuid) => {\n let key = JanrainConstants.benefitListLocalStorageKeyPrefix + uuid;\n localStorage.setItem(key, benefitPreferenceList);\n};\n\nexport const getIsCreatingAccountFromLocalStorage = () => {\n return localStorage.getItem('isCreatingAccount') || '';\n};\n\nexport const setIsCreatingAccountToLocalStorage = value => {\n localStorage.setItem('isCreatingAccount', value);\n};\n\nexport const deleteIsCreatingAccountFromLocalStorage = () => {\n localStorage.removeItem('isCreatingAccount');\n};\n\nexport const getJanrainCaptureProfileDataFromLocalStorage = () => {\n return localStorage.getItem('janrainCaptureProfileData') || '{}';\n};\n\nexport const getJanrainCaptureTokenExpiresFromLocalStorage = () => {\n return localStorage.getItem('janrainCaptureToken_Expires') || '';\n};\n\nexport const getJanrainCaptureTokenFromLocalStorage = () => {\n return localStorage.getItem('janrainCaptureToken') || '';\n};\n\nexport const deleteJanrainCaptureProfileDataFromLocalStorage = () => {\n localStorage.removeItem('janrainCaptureToken');\n localStorage.removeItem('janrainFailedLogins');\n localStorage.removeItem('janrainCaptureReturnExperienceData');\n localStorage.removeItem('janrainCaptureProfileData');\n localStorage.removeItem('janrainCaptureToken_Expires');\n localStorage.removeItem('janrainCaptureReturnExperienceData_Expires');\n localStorage.removeItem('janrainCaptureProfileData_Expires');\n localStorage.removeItem('janrainSessionTimeoutDate');\n};\n\nexport const setSessionTimeoutFromLocalStorage = () => {\n \n let timeoutDate = addMinutes(new Date(), parseInt(process.env.JANRAIN_SESSION_TIMOUT_MIN));\n localStorage.setItem('janrainSessionTimeoutDate', timeoutDate);\n};\n\nexport const removeSessionTimeoutFromLocalStorage = () => {\n localStorage.removeItem('janrainSessionTimeoutDate');\n};\n\n// session timeout layer added to invalidate janrain session if user is pass this timeout\nexport const validateCustomSessionTimeoutActive = () => {\n \n let sessionTimeout = localStorage.getItem('janrainSessionTimeoutDate');\n if(sessionTimeout) {\n let sessionTimeoutDate = new Date(sessionTimeout);\n if(!(sessionTimeoutDate > new Date())) {\n if (window?.janrain?.capture?.ui?.endCaptureSession) {\n window.janrain.capture.ui.endCaptureSession();\n redirectTo(process.env.JANRAIN_LOGIN_PATH);\n } else {\n deleteJanrainCaptureProfileDataFromLocalStorage();\n window.location.reload();\n }\n }\n }\n};\n\nfunction addMinutes(date, minutes) {\n return new Date(date.getTime() + minutes*60000);\n}\n","export const redirectTo = (url) => {\n window.history.replaceState(null, null, url)\n window.location.href = url\n}\n","module.exports = require('./dist/client/script')\n","(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5909,7667],{37667:function(e,n,t){\"use strict\";t.r(n);var a=t(67294),r=t(24036),o=t(29238),i=t.n(o),c=t(4298),l=t.n(c),u=t(90318),s=t(85893);n.default=function(e){var n,t,o;window||window.PGdataLayer||window.PGdataLayer.user||(0,u._J)();var c=e.languageCode,d=e.countryCode,m=e.productVariant,g=void 0===m?void 0:m;return(0,s.jsxs)(a.Fragment,{children:[(0,s.jsx)(l(),{strategy:\"afterInteractive\",id:\"gtm-script\",type:\"text/javascript\",dangerouslySetInnerHTML:{__html:i().sanitize(\"\\n var interval=setInterval(()=>{ \\n if(document.readyState === 'complete'){\\n PGdataLayer = {\\n 'page' : {\\n 'url' : '',\\n 'title' : '',\\n },\\n\\n 'GTM': {\\n 'SiteCountry':'\".concat(d,\"',\\n 'GoogleAnalyticsSiteSpeedSampleRate':'regular',\\n 'GoogleAnalyticsAllowLinker':'false',\\n 'GoogleAnalyticsOptimizeContainerID':'\").concat(\"empty\",\"',\\n 'GoogleReCaptcha':'false',\\n 'GoogleAnalyticsReportingView':'\").concat(\"139624297\",\"',\\n 'GhosteryOverlay': '',\\n 'GhosteryOverlayID': '',\\n 'SiteHost': 'Azure Devops',\\n 'SiteEnvironment': '\").concat(\"Prod\",\"',\\n 'SiteCountryISO3': '\").concat(\"empty\",\"',\\n 'SiteTechnicalAgency': 'Mindtree',\\n 'SiteLocalContainer': '\").concat(\"empty\",\"',\\n 'GoogleAnalyticsLocal': '\").concat(\"UA-4666365-32\",\"',\\n 'ConsentOverlay': '\").concat(\"OneTrust\",\"',\\n 'ConsentOverlayID': '\").concat(\"htmllang/0191b906-db43-7c21-9e2e-8856484a7248\",\"',\\n 'SitePrivacyProtection': '\").concat(\"AMA\",\"',\\n 'SiteTouchpoint': '\").concat(\"47129\",\"',\\n 'SiteBrand': 'OralB',\\n 'SiteLanguage': '\").concat(c,\"',\\n 'SitePlatform': 'ModernWeb',\\n 'SiteStatus': '\").concat(\"LIVE\",\"',\\n 'FacebookRemarketingID': '\").concat(\"empty\",\"',\\n 'Segment': '\").concat(\"empty\",\"',\\n 'Lytics': '\").concat(\"empty\",\"',\\n 'GoogleAnalyticsGA4MeasurementID': '\").concat(\"G-03PTV783P3\",\"'\\n }\\n };\\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.defer=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','\").concat(\"GTM-N94XXFB\",\"');\\n clearInterval(interval)\\n }},3500)\\n \"))}}),g&&(0,s.jsx)(l(),{strategy:\"afterInteractive\",type:\"text/javascript\",dangerouslySetInnerHTML:{__html:\"\\n PGdataLayer.product = {\\n 'gtin': '\".concat((null==g||null==(n=g.fields)?void 0:n.sku)||\"\",\"',\\n 'name': '\").concat((null==g||null==(t=g.fields)?void 0:t.name)||\"\",\"',\\n 'brand': '\").concat(r.XI.brand||\"\",\"',\\n 'upc': '\").concat((null==g||null==(o=g.fields)?void 0:o.sku)||\"\",\"'\\n };\\n \")}})]})}},90318:function(e,n,t){\"use strict\";t.d(n,{Ag:function(){return y},Fi:function(){return v},NN:function(){return _},QB:function(){return g},QR:function(){return S},Sm:function(){return w},WZ:function(){return l},_J:function(){return i},cO:function(){return u},mF:function(){return p},n_:function(){return f},s8:function(){return s},sv:function(){return m},xO:function(){return d}});t(24036);var a=t(8996),r=t(39693),o=t(34155),i=function(){var e=localStorage.getItem(\"janrainCaptureProfileData\");if(e){var n=(0,a.Cp)(e),t={firstname:n.givenName,id:n.consumerID||n.uuid,email:n.email,marketingProgramNbr:o.env.MARKET&&\"it-it\"==o.env.MARKET.trim()?\"empty\":n.marketingProgramNbr,sourceID:\"empty\",type:\"member\"};window.PGdataLayer&&!window.PGdataLayer.user&&(window.PGdataLayer.user={}),\"function\"!=typeof Object.assign?Object.assign=function(e){if(null==e)throw new TypeError(\"Cannot convert undefined or null to object\");e=Object(e);for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:\"\",a=arguments.length>3?arguments[3]:void 0;window.dataLayer.push({event:\"customEvent\",GAeventCategory:e,GAeventAction:n,GAeventLabel:t,GAeventValue:0,GAeventNonInteraction:!1,eventCallback:a})},l=function(){try{c(\"event_crm_action\",\"event_profile_login_complete\",\"oralb_successful_login\")}catch(e){console.error(\"GA is not loaded...\")}},u=function(){try{new Promise((function(e){return c(\"event_crm_action\",\"event_profile_register_complete\",\"oralb_successful_register\",e())})).then((function(){c(\"event_crm_action\",\"event_profile_login_complete\",\"oralb_successful_login\")}))}catch(e){console.error(\"GA is not loaded...\")}},s=function(){if(window.PGdataLayer&&window.PGdataLayer.user&&window.PGdataLayer.user.id)try{c(\"event_crm_action\",\"event_profile_logout\",\"oralb_successful_logout\")}catch(e){console.error(\"GA is not loaded...\")}},d=function(){return localStorage.getItem(\"isCreatingAccount\")||\"\"},m=function(e){localStorage.setItem(\"isCreatingAccount\",e)},g=function(){localStorage.removeItem(\"isCreatingAccount\")},f=function(){return localStorage.getItem(\"janrainCaptureProfileData\")||\"{}\"},p=function(){return localStorage.getItem(\"janrainCaptureToken_Expires\")||\"\"},v=function(){return localStorage.getItem(\"janrainCaptureToken\")||\"\"},y=function(){localStorage.removeItem(\"janrainCaptureToken\"),localStorage.removeItem(\"janrainFailedLogins\"),localStorage.removeItem(\"janrainCaptureReturnExperienceData\"),localStorage.removeItem(\"janrainCaptureProfileData\"),localStorage.removeItem(\"janrainCaptureToken_Expires\"),localStorage.removeItem(\"janrainCaptureReturnExperienceData_Expires\"),localStorage.removeItem(\"janrainCaptureProfileData_Expires\"),localStorage.removeItem(\"janrainSessionTimeoutDate\")},w=function(){var e,n,t=(e=new Date,n=parseInt(o.env.JANRAIN_SESSION_TIMOUT_MIN),new Date(e.getTime()+6e4*n));localStorage.setItem(\"janrainSessionTimeoutDate\",t)},S=function(){localStorage.removeItem(\"janrainSessionTimeoutDate\")},_=function(){var e,n,t,a,i=localStorage.getItem(\"janrainSessionTimeoutDate\");i&&(new Date(i)>new Date||((null==(e=window)||null==(n=e.janrain)||null==(t=n.capture)||null==(a=t.ui)?void 0:a.endCaptureSession)?(window.janrain.capture.ui.endCaptureSession(),(0,r.g)(o.env.JANRAIN_LOGIN_PATH)):(y(),window.location.reload())))}},39693:function(e,n,t){\"use strict\";t.d(n,{g:function(){return a}});var a=function(e){window.history.replaceState(null,null,e),window.location.href=e}},4298:function(e,n,t){e.exports=t(97829)}}]);"],"names":["self","webpackChunk_N_E","push","e","n","t","r","a","o","i","c","l","u","s","default","window","PGdataLayer","user","_J","languageCode","d","countryCode","m","productVariant","g","jsxs","Fragment","children","jsx","strategy","id","type","dangerouslySetInnerHTML","__html","sanitize","concat","fields","sku","name","XI","brand","Ag","y","Fi","v","NN","_","QB","QR","S","Sm","w","WZ","cO","mF","p","n_","f","s8","sv","xO","localStorage","getItem","Cp","firstname","givenName","consumerID","uuid","email","marketingProgramNbr","env","MARKET","trim","sourceID","Object","assign","arguments","length","prototype","hasOwnProperty","call","dataLayer","event","GAeventCategory","GAeventAction","GAeventLabel","GAeventValue","GAeventNonInteraction","eventCallback","console","error","Promise","then","setItem","removeItem","Date","parseInt","JANRAIN_SESSION_TIMOUT_MIN","getTime","janrain","capture","ui","endCaptureSession","JANRAIN_LOGIN_PATH","location","reload","history","replaceState","href","exports"],"sourceRoot":""}