/******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ 28: /***/ ((__unused_webpack_module, exports, __webpack_require__) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.config = void 0; const configProd_1 = __webpack_require__(349); const configStaging_1 = __webpack_require__(663); const env_1 = __webpack_require__(143); exports.config = env_1.env === "prod" ? configProd_1.configProd : env_1.env === "dev" ? configStaging_1.configDev : configStaging_1.configStaging; //configDev /***/ }), /***/ 349: /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.configProd = void 0; // const singleGtm = true // location.search.includes("pocGTM") exports.configProd = { // apiUrl: "https://api.pg.com/innovationmanagement/testing/v1/lumimobileapp", pgSiteEnvironment: "Prod", pgGoogleAnalyticsLocal: "UA-4805734-181", pgGoogleAnalyticsReportingView: "193263390", pgConsentOverlayID: "b3fb142f-1dfb-4159-8e77-48576bc3bc61", pgFacebookRemarketingID: "1167152113492400", pgSegment: "r8XGrCquIqVYMkWRxeYyh843bWuyoGC4", recaptchaSiteKey: "6Ld_PN8nAAAAAMfXhAFfAosf4UwlDfXYJ3mUMw8G", // new: gtmId: "GTM-TMLVZWQ8", //"GTM-N94XXFB", // gtmId: singleGtm ? "GTM-PQB4L4QL" : "GTM-TMLVZWQ8", gtmId: "GTM-N94XXFB", enableGeoFeed: true, rsWriteKey: "3BO2S8ZoQPg7bbc2imodiN2whU0", }; /***/ }), /***/ 663: /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.configDev = exports.configStaging = void 0; // const pocGtm = location.search.includes("pocGTM") exports.configStaging = { pgSiteEnvironment: "Staging", pgGoogleAnalyticsLocal: "UA-38384539-1", pgGoogleAnalyticsReportingView: "68911582", pgConsentOverlayID: "b3fb142f-1dfb-4159-8e77-48576bc3bc61-test", pgFacebookRemarketingID: "416520069746220", pgSegment: "7o62Z8AH7ui9tGXesqlADGffTgzXmsrp", recaptchaSiteKey: "6LfNNt8nAAAAAAQ9QcrAy2VmmOUEYQOTKUEWSWTe", gtmId: "GTM-N94XXFB", enableGeoFeed: true, rsWriteKey: "3BO4Dk9XOYSzvCABc9I1sH8Hrpe", }; exports.configDev = { ...exports.configStaging, }; /***/ }), /***/ 143: /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.env = void 0; // TODO: remove staging // "staging.smartsleepcoach.com", const host = location?.host; const isProdDomain = ["www.smartsleepcoach.com", "smartsleepcoach.com", "smartsleepcoach.zendesk.com"].includes(host); const dev = typeof location === "undefined" || (!isProdDomain && location?.hash.includes("dev")); exports.env = dev ? "dev" : isProdDomain ? "prod" : "staging"; /***/ }), /***/ 539: /***/ ((__unused_webpack_module, exports, __webpack_require__) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getGeoFeed = getGeoFeed; const config_1 = __webpack_require__(28); const enableGeoFeed = config_1.config.enableGeoFeed; // const geoFeedExpirationMs = 1000 * 60 * 60 * 24 // window._geoFeed = loadGeoFeed() ?? undefined // // TODO: TEMP const countryOverride = new URLSearchParams(location.search).get("countryOverride"); function getGeoFeed() { if (!enableGeoFeed) return null; if (window._geoFeed !== undefined) { return window._geoFeed; } if (!window.whenGeofeed) { window.whenGeofeed = new Promise(resolve => { window.geofeed = res => { if (countryOverride) { console.log("countryOverride", countryOverride); res = { ...(res ?? {}), country: countryOverride }; } window._geoFeed = res ?? null; if (res?.country && window.PGdataLayer) { window.PGdataLayer.user = { ...(window.PGdataLayer.user ?? {}), country: res?.country }; } resolve(res); // string two digit continent code EU, NA, OC, AS, SA, AF // string two digit ISO country code // string two digit state code }; triggerGeoFeed(); }); } return window.whenGeofeed; } function triggerGeoFeed() { // Call geo-location JSON service const json = document.createElement("script"); json.setAttribute("src", "https://geolocation.onetrust.com/cookieconsentpub/v1/geo/location/geofeed"); document.head.appendChild(json); } /***/ }), /***/ 438: /***/ ((__unused_webpack_module, exports, __webpack_require__) => { /* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable prefer-rest-params */ /* eslint-disable no-var */ // @ts-nocheck Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initGtm = initGtm; const config_1 = __webpack_require__(28); async function initGtm() { if (!location.search.includes("nogtm")) { ; (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.async = true; j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl; f.parentNode.insertBefore(j, f); })(window, document, "script", "dataLayer", config_1.config.gtmId); } } /***/ }), /***/ 373: /***/ ((__unused_webpack_module, exports, __webpack_require__) => { Object.defineProperty(exports, "__esModule", ({ value: true })); const env_1 = __webpack_require__(143); if (env_1.env !== "prod") { const meta = document.createElement("meta"); meta.name = "robots"; meta.content = "noindex, nofollow"; document.head?.appendChild(meta); const canonicalEl = document.querySelector("link[rel=canonical]"); if (canonicalEl) { canonicalEl.href = `${location.protocol}//${location.host}${location.pathname}`; } } /***/ }), /***/ 312: /***/ ((__unused_webpack_module, exports, __webpack_require__) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.cookieConsentTranslations = exports.oneTrustCountryInfo = void 0; exports.initOnetrust = initOnetrust; const getGeoFeed_1 = __webpack_require__(539); exports.oneTrustCountryInfo = { RS: { country: "Serbian/Serbia/Srbija", cookieCompliance: "GDPR", countryCode: "RS", language: "Serbian", languageCode: "sr", }, AD: { country: "Andorra", cookieCompliance: "GDPR", countryCode: "AD", language: "English", languageCode: "en" }, AL: { country: "Albania", cookieCompliance: "GDPR", countryCode: "AL", language: "Albanian", languageCode: "sq" }, UA: { country: "Ukraine", cookieCompliance: "GDPR", countryCode: "UA", language: "Ukrainian", languageCode: "uk" }, CY: { country: "Cyprus/Republic of Cyprus", cookieCompliance: "GDPR", countryCode: "CY", language: "English", languageCode: "en", }, IS: { country: "Iceland", cookieCompliance: "GDPR", countryCode: "IS", language: "English", languageCode: "en" }, LI: { country: "Liechtenstein", cookieCompliance: "GDPR", countryCode: "LI", language: "German", languageCode: "de", }, LU: { country: "Luxembourg", cookieCompliance: "GDPR", countryCode: "LU", language: "English", languageCode: "en" }, MT: { country: "Malta", cookieCompliance: "GDPR", countryCode: "MT", language: "English", languageCode: "en" }, SM: { country: "San Marino", cookieCompliance: "GDPR", countryCode: "SM", language: "English", languageCode: "en" }, XK: { country: "Kosovo (Republic of)", cookieCompliance: "GDPR", countryCode: "XK", language: "Serbian", languageCode: "sr", }, BG: { country: "Bulgaria", cookieCompliance: "GDPR", countryCode: "BG", language: "Bulgarian", languageCode: "bg" }, HR: { country: "Croatia", cookieCompliance: "GDPR", countryCode: "HR", language: "Croatian", languageCode: "hr" }, CZ: { country: "Czech/Czech Republic", cookieCompliance: "GDPR", countryCode: "CZ", language: "Czech", languageCode: "cs", }, EE: { country: "Estonia", cookieCompliance: "GDPR", countryCode: "EE", language: "Estonian", languageCode: "et" }, FI: { country: "Finland", cookieCompliance: "GDPR", countryCode: "FI", language: "Finnish", languageCode: "fi" }, IL: { country: "Israel", cookieCompliance: "GDPR", countryCode: "IL", language: "Hebrew", languageCode: "he" }, HU: { country: "Hungary", cookieCompliance: "GDPR", countryCode: "HU", language: "Hungarian", languageCode: "hu" }, LV: { country: "Latvia", cookieCompliance: "GDPR", countryCode: "LV", language: "Latvian", languageCode: "lv" }, LT: { country: "Lithuania", cookieCompliance: "GDPR", countryCode: "LT", language: "Lithuanian", languageCode: "lt", }, NO: { country: "Norway", cookieCompliance: "GDPR", countryCode: "NO", language: "Norwegian", languageCode: "no" }, PL: { country: "Poland", cookieCompliance: "GDPR", countryCode: "PL", language: "Polish", languageCode: "pl" }, PT: { country: "Portugal", cookieCompliance: "GDPR", countryCode: "PT", language: "Portuguese", languageCode: "pt", }, RO: { country: "Romania", cookieCompliance: "GDPR", countryCode: "RO", language: "Romanian", languageCode: "ro" }, SK: { country: "Slovak", cookieCompliance: "GDPR", countryCode: "SK", language: "Slovak", languageCode: "sk" }, SI: { country: "Slovenia", cookieCompliance: "GDPR", countryCode: "SI", language: "Slovenian", languageCode: "sl" }, SE: { country: "Sweden", cookieCompliance: "GDPR", countryCode: "SE", language: "Swedish", languageCode: "sv" }, MC: { country: "Monaco", cookieCompliance: "GDPR", countryCode: "MC", language: "French", languageCode: "fr" }, DE: { country: "Germany", cookieCompliance: "GDPR", countryCode: "DE", language: "German", languageCode: "de-de" }, AT: { country: "Austria", cookieCompliance: "GDPR", countryCode: "AT", language: "German", languageCode: "de-at" }, CH: { country: "Switzerland", cookieCompliance: "GDPR", countryCode: "CH", language: "German", languageCode: "de-ch", }, NL: { country: "Netherlands", cookieCompliance: "GDPR", countryCode: "NL", language: "Dutch", languageCode: "nl" }, IT: { country: "Italy", cookieCompliance: "GDPR", countryCode: "IT", language: "Italian", languageCode: "it" }, GB: { country: "UK", cookieCompliance: "GDPR", countryCode: "GB", language: "English", languageCode: "en-gb" }, GI: { country: "Gibraltar", cookieCompliance: "GDPR", countryCode: "GI", language: "English", languageCode: "en" }, IE: { country: "Ireland", cookieCompliance: "GDPR", countryCode: "IE", language: "English", languageCode: "en-ie" }, TR: { country: "Turkey", cookieCompliance: "GDPR", countryCode: "TR", language: "Turkish", languageCode: "tr" }, GR: { country: "Greece", cookieCompliance: "GDPR", countryCode: "GR", language: "Greek", languageCode: "el" }, ES: { country: "Spain", cookieCompliance: "GDPR", countryCode: "ES", language: "Spanish", languageCode: "es" }, BE: { country: "Belgium", cookieCompliance: "GDPR", countryCode: "BE", language: "Dutch", languageCode: "nl" }, DK: { country: "Denmark", cookieCompliance: "GDPR", countryCode: "DK", language: "Danish", languageCode: "da" }, FR: { country: "France", cookieCompliance: "GDPR", countryCode: "FR", language: "French", languageCode: "fr" }, US: { country: "US", cookieCompliance: "CCPA", countryCode: "US", language: "English", languageCode: "en" }, PR: { country: "Puerto Rico", cookieCompliance: "CCPA", countryCode: "PR", language: "Spanish", languageCode: "es", }, BR: { country: "Brazil", cookieCompliance: "LGPD", countryCode: "BR", language: "Portuguese", languageCode: "pt-br", }, ID: { country: "Indonesia", cookieCompliance: "AMA", countryCode: "ID", language: "Indonesian", languageCode: "id", }, SG: { country: "Singapore", cookieCompliance: "AMA", countryCode: "SG", language: "English", languageCode: "en-sg", }, PH: { country: "Philippines", cookieCompliance: "AMA", countryCode: "PH", language: "English", languageCode: "en-ph", }, TH: { country: "Thailand", cookieCompliance: "AMA", countryCode: "TH", language: "Thai", languageCode: "th" }, KR: { country: "South Korea", cookieCompliance: "AMA", countryCode: "KR", language: "Korean", languageCode: "ko" }, ZA: { country: "SouthAfrica", cookieCompliance: "AMA", countryCode: "ZA", language: "English", languageCode: "en-za", }, NG: { country: "Nigeria", cookieCompliance: "AMA", countryCode: "NG", language: "English", languageCode: "en-ng" }, AE: { country: "UAE", cookieCompliance: "AMA", countryCode: "AE", language: "Arabic", languageCode: "ar" }, VN: { country: "Vietnam", cookieCompliance: "AMA", countryCode: "VN", language: "Vietnamese", languageCode: "vi" }, IN: { country: "India", cookieCompliance: "AMA", countryCode: "IN", language: "English", languageCode: "en-in" }, MX: { country: "Mexico", cookieCompliance: "LFPDPPP", countryCode: "MX", language: "Spanish", languageCode: "es-mx", }, CO: { country: "Colombia", cookieCompliance: "HDCO", countryCode: "CO", language: "Spanish", languageCode: "es-co", }, CA: { country: "Canada", cookieCompliance: "CA", countryCode: "CA", language: "English", languageCode: "en-ca" }, EC: { country: "Ecuador", cookieCompliance: "LOPDP", countryCode: "EC", language: "Spanish", languageCode: "es-ec", }, PE: { country: "Peru", cookieCompliance: "PDPL", countryCode: "PE", language: "Spanish", languageCode: "es-pe", }, }; exports.cookieConsentTranslations = { Bulgarian: "Съгласие за „бисквитки“", Czech: "Souhlas pro soubory cookies", German: "Meine Cookie Auswahl", Finnish: "Evästesuostumus", French: "Gestion des cookies", Greek: "Συγκατάθεση στη χρήση cookies", Croatian: "Pristanak na kolačiće", Hungarian: "Sütik elfogadása", Hebrew: "הסכמה לשימוש בעוגיות", Dutch: "Beheer cookies", Norwegian: "Cookiesamtykke", Polish: "Zgoda na pliki cookie", Romanian: "Consimțământ Cookie-uri", Swedish: "Cookiemedgivande", Turkish: "Çerez Onayı", Spanish: "Consentimiento de cookies", Portuguese: "Consentimento de cookies", Italian: "Consenso per i cookie", Slovack: "Súhlas pre súbory cookies", Danish: "tilladelse af cookies", Flemish: "Belgium would use FR and Dutch", Ukrainian: "Згода на обробку cookies", Latvian: "Sīkdatņu Piekrisanu", Estonian: "Küpsiste Nõusolek", Slovenian: "Piškotki Soglasje", Lithuanian: "Slapukus Sutikimą", Albanian: "Pëlqimi i cookie-t", Macedonian: "Согласност за колаче", Serbian: "Управљање колачићима", Russian: "Согласие на обработку cookies", Indonesian: "Persetujuan Cookie", Thai: "การให้ความยินยอมสำหรับคุกกี้", Korean: "쿠키 동의", Arabic: "وافقة على ملفات تعريف الارتباط", // (UAE) Vietnamese: "Chấp thuận Cookie", "Portuguese Brazil": "Consentimento de Cookie", }; async function initOnetrust() { const geofeed = await (0, getGeoFeed_1.getGeoFeed)(); if (!geofeed?.country) return; const countryInfo = exports.oneTrustCountryInfo[geofeed.country]; if (!countryInfo) return; window.PGdataLayer.GTM.ConsentOverlayLanguage = countryInfo.languageCode || "en"; window.PGdataLayer.GTM.SitePrivacyProtection = countryInfo.cookieCompliance; window.PGdataLayer.GTM.SiteCountry = geofeed.country; // window.addEventListener("DOMContentLoaded", () => { // const div = document.createElement("div") // div.innerHTML = `` // document.body.appendChild(div) // }) } /***/ }), /***/ 350: /***/ ((__unused_webpack_module, exports, __webpack_require__) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.dataLayerPush = void 0; exports.initPgDataLayer = initPgDataLayer; exports.dataLayerPush2 = dataLayerPush2; /* eslint-disable @typescript-eslint/no-explicit-any */ const config_1 = __webpack_require__(28); const { pgSiteEnvironment, pgGoogleAnalyticsLocal, pgGoogleAnalyticsReportingView, pgConsentOverlayID, pgFacebookRemarketingID, pgSegment, } = config_1.config; const pgDataLayer = window?.PGdataLayer ?? { GTM: { SiteTouchpoint: "46984", SiteBrand: "Pampers", SiteLanguage: "English", SitePlatform: "Multibrand.com", SiteEnvironment: pgSiteEnvironment, SiteHost: "Webflow", SiteTechnicalAgency: "Zemingo", SiteStatus: "Live", SiteLocalContainer: "GTM-PQB4L4QL", // "GTM-KQNZ2P2", GoogleAnalyticsLocal: pgGoogleAnalyticsLocal, GoogleAnalyticsBrand: "", GoogleAnalyticsGA4MeasurementID: "G-LL0W59K01B", // "G-WHN3KE0SQY" GoogleAnalyticsSiteSpeedSampleRate: "high", GoogleAnalyticsReportingView: pgGoogleAnalyticsReportingView, ConsentOverlay: "OneTrust", ConsentOverlayID: pgConsentOverlayID, SitePrivacyProtection: "CCPA", FacebookConnectAppID: "924059352110555", //"1402968366699773", FacebookConnectLocale: "en_US", FacebookRemarketingID: pgFacebookRemarketingID, BINPlatform: "Webflow", Segment: pgSegment, Segmanta: "true", SiteCurrency: "USD", GoogleAnalyticsEETransOnEvent: "TRUE", GoogleAnalyticsAllowLinker: "TRUE", GoogleAnalyticsOptimizeContainerID: "", Rudderstack: config_1.config.rsWriteKey, }, }; function initPgDataLayer() { if (!window) return; if (!window.PGdataLayer) { window.PGdataLayer = pgDataLayer; } if (!window.dataLayerPush) { window.dataLayerPush = exports.dataLayerPush; } } exports.dataLayerPush = window?.dataLayerPush ?? ((category, action, label, value = 0, interaction = false) => { if (!window.dataLayer) { window.dataLayer = []; } window.dataLayer.push({ event: "customEvent", GAeventCategory: category, GAeventAction: action, GAeventLabel: label, GAeventValue: value, GAeventNonInteraction: interaction, }); }); function dataLayerPush2({ category, action, label, value = 0, interaction = false, ...rest }) { if (!window.dataLayer) { window.dataLayer = []; } window.dataLayer.push({ event: "customEvent", GAeventCategory: category, GAeventAction: action, GAeventLabel: label, GAeventValue: value, GAeventNonInteraction: interaction, ...rest, }); } // initPgDataLayer() /***/ }), /***/ 800: /***/ (() => { function styles() { const style = document.createElement("style"); style.textContent = ` .w-richtext a { word-break: break-word; } .android .android-show.android-show.android-show { display: block; } .android .android-hide.android-hide.android-hide { display: none; } .star-svg { width: 16px; } .hscroll { overflow-x: auto; } .iti__flag {background-image: url("path/to/flags.png");} @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { .iti__flag {background-image: url("path/to/flags@2x.png");} } .w-webflow-badge.w-webflow-badge.w-webflow-badge.w-webflow-badge { display: none !important; } .offer-banner.offer-banner-show { display: block; } .offer-banner.offer-banner-show + #segmantaEmbed { top: 39px; } table.col-1-nowrap td:nth-child(1) { white-space: nowrap; } .opacity1.opacity1 { opacity: 1; } @media screen and (max-width: 767px) { #onetrust-banner-sdk.otFloatingRoundedCorner.otFloatingRoundedCorner { min-width: 100vw; height: 50vh; } } label.w-radio:not(.is-active-inputactive) .plan-option-content .plan-tag { display: none; } .pid-fst [display-pid-fst="none"] { display: none; } /* master the chaos */ .timer-0 [data-display-timer-0="none"] { display: none; } `; document.head?.appendChild(style); } styles(); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ var __webpack_exports__ = {}; // This entry needs to be wrapped in an IIFE because it uses a non-standard name for the exports (exports). (() => { var exports = __webpack_exports__; var __webpack_unused_export__; __webpack_unused_export__ = ({ value: true }); __webpack_require__(800); __webpack_require__(373); const pgDataLayer_1 = __webpack_require__(350); const onetrust_1 = __webpack_require__(312); const gtm_1 = __webpack_require__(438); (0, pgDataLayer_1.initPgDataLayer)(); void (0, onetrust_1.initOnetrust)(); void (0, gtm_1.initGtm)(); })(); /******/ })() ;