PageSourceSearch

https://www.timeoutmexico.mx/static/js/cmp-f6a07b286325f229c111.js

js timeoutmexico.mx collected 2026-09-24 19:54:22 UTC 15,766 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_gp_web_frontend=self.webpackChunk_gp_web_frontend||[]).push([["cmp"],{
1"./src/ts/script-loader/script-loader.ts":(e,t,n)=>{n.d(t,{Vs:()=>i,iM:()=>s});const o=(e,{timeout:t})=>{setTimeout(e,t)},i=({dataset:{src:e,timeout:t,parent:n="body",inline:o,load:i,...a}})=>(delete a.lazyload,s({src:e,timeout:t,parent:n,inline:o,load:i,attributes:a})),s=({src:e,timeout:t,parent:n="body",inline:i,load:s,attributes:a={},mainQueue:r=!1})=>{const l=window.requestIdleCallback||o;return new Promise(((o,c)=>{const p=()=>{const t=((e,t,n)=>{const o=document.createElement("script");return t?o.appendChild(document.createTextNode(t)):o.src=e,Object.keys(n).forEach((e=>{"true"===n[e]?o[e]=!0:o.setAttribute(e,n[e])})),o})(e,i,a);t.addEventListener("error",(()=>c(new Error(`Failed to load script: "${e}"`))));const r=document[n].appendChild(t);s?t.addEventListener("load",(()=>{o(r)})):o(r)};r?p():l(p,{timeout:parseInt(t)})}))}},
1"./src/ts/services/cmp.ts":(e,t,n)=>{n.d(t,{cY:()=>u});var o,i,s,a=n("../utils/dist/contentpass/contentpass-utils.js"),r=n("./src/ts/script-loader/script-loader.ts"),l=n("./src/ts/services/contentpass.ts"),c=n("./src/ts/services/geo.ts");const p="dev"===(null===(s=null===(i=null===(o=window.digitalData)||void 0===o?void 0:o.page)||void 0===i?void 0:i.pageInfo)||void 0===s?void 0:s.sysEnv);var d;!function(e){e[e.SCRIPT_FAILURE=0]="SCRIPT_FAILURE",e[e.UNDEFINED_RESPONSE=1]="UNDEFINED_RESPONSE"}(d||(d={}));const u=async()=>{const e=(0,a.sn)(window.digitalData);return await new Promise((t=>{(async()=>new Promise((e=>{f().then((t=>{if(!t)return void e(d.SCRIPT_FAILURE);let n=0;const o=()=>{n+=1,2===n&&e(d.UNDEFINED_RESPONSE)};(async()=>new Promise(((e,t)=>{window.__tcfapi||t(),window.__tcfapi("addEventListener",2,((n,o)=>{if(o&&n&&!1===n.gdprApplies)return window.__tcfapi("removeEventListener",2,(()=>{}),n.listenerId),void t();o&&n&&n.gdprApplies&&("tcloaded"===n.eventStatus||"useractioncomplete"===n.eventStatus)&&(window.__tcfapi("removeEventListener",2,(()=>{}),n.listenerId),e(n))}))})))().then((t=>{e(t)})).catch(o),(async()=>new Promise(((e,t)=>{window.__gpp||t(),window.__gpp("addEventListener",((n,o)=>{const i=n.pingData;if(o&&(!i||"ready"===i.signalStatus&&!Object.keys(i.parsedSections).length))return window.__gpp("removeEventListener",(()=>{}),n.listenerId),void t();o&&i.parsedSections&&0!=Object.keys(i.parsedSections).length&&(window.__gpp("removeEventListener",(()=>{}),n.listenerId),e(i))}))})))().then((t=>{e(t)})).catch(o)}))})))().then((n=>{(0,l.n)().then((o=>{var i,s,a,r,l,c;if(o)console.log("--Ad-Free Experience--"),t({targetingAllowed:!1,storageAllowed:!1,limitedTargetingAllowed:!1});else if((e=>void 0!==e&&"number"==typeof e)(n))n===d.UNDEFINED_RESPONSE?(console.log("--APAC region--"),t({targetingAllowed:!0,storageAllowed:!0,limitedTargetingAllowed:!0})):t({targetingAllowed:!1,storageAllowed:!1,limitedTargetingAllowed:!1});else if((e=>void 0!==e&&"object"==typeof e&&void 0!==e.cmpVersion)(n)){console.log("--TCF region--");const o=!e||(null==n?void 0:n.purpose)&&(null===(i=null==n?void 0:n.purpose)||void 0===i?void 0:i.consents)&&!!(null===(s=null==n?void 0:n.purpose)||void 0===s?void 0:s.consents[3]),p=n;t({targetingAllowed:(null==p?void 0:p.purpose)&&(null===(a=null==p?void 0:p.purpose)||void 0===a?void 0:a.consents)&&!!(null===(r=null==p?void 0:p.purpose)||void 0===r?void 0:r.consents[3]),storageAllowed:(null==p?void 0:p.purpose)&&(null===(l=null==p?void 0:p.purpose)||void 0===l?void 0:l.consents)&&!!(null===(c=null==p?void 0:p.purpose)||void 0===c?void 0:c.consents[1]),limitedTargetingAllowed:o})}else if((e=>void 0!==e&&"object"==typeof e&&void 0!==e.gppVersion)(n)){console.log("--GPP region--");const e=n.parsedSections;if(e.usca)t({targetingAllowed:2===e.usca.SharingOptOut,storageAllowed:!0,limitedTargetingAllowed:!0});else if(e.tcfcav1)t({targetingAllowed:e.tcfcav1.PurposesExpressConsent[3],storageAllowed:!0,limitedTargetingAllowed:!0});else if(e.tcfeuv2)t({targetingAllowed:e.tcfeuv2.PurposeConsent[3],storageAllowed:!0,limitedTargetingAllowed:!0});else{const n=Object.values(e)[0];t({targetingAllowed:2===n.TargetedAdvertisingOptOut,storageAllowed:!0,limitedTargetingAllowed:!0})}}else console.error("no CMP data exists")}))}))}))},g=async(e={})=>{await Promise.all([(0,r.iM)({src:"",inline:'"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t=function(){var t,e,o=[],n=window,r=n;for(;r;){try{if(r.frames.__tcfapiLocator){t=r;break}}catch(t){}if(r===n.top)break;r=r.parent}t||(!function t(){var e=n.document,o=!!n.frames.__tcfapiLocator;if(!o)if(e.body){var r=e.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",e.body.appendChild(r)}else setTimeout(t,5);return!o}(),n.__tcfapi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return o;"setGdprApplies"===n[0]?n.length>3&&2===parseInt(n[1],10)&&"boolean"==typeof n[3]&&(e=n[3],"function"==typeof n[2]&&n[2]("set",!0)):"ping"===n[0]?"function"==typeof n[2]&&n[2]({gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"}):o.push(n)},n.addEventListener("message",(function(t){var e="string"==typeof t.data,o={};if(e)try{o=JSON.parse(t.data)}catch(t){}else o=t.data;var n="object"===_typeof(o)&&null!==o?o.__tcfapiCall:null;n&&window.__tcfapi(n.command,n.version,(function(o,r){var a={__tcfapiReturn:{returnValue:o,success:r,callId:n.callId}};t&&t.source&&t.source.postMessage&&t.source.postMessage(e?JSON.stringify(a):a,"*")}),n.parameter)}),!1))};"undefined"!=typeof module?module.exports=t:t()}();',parent:"head",timeout:"0",mainQueue:!0}),(0,r.iM)({src:"",inline:'(function () { var e = false; var c = window; var t = document; function r() { if (!c.frames["__uspapiLocator"]) { if (t.body) { var a = t.body; var e = t.createElement("iframe"); e.style.cssText = "display:none"; e.name = "__uspapiLocator"; a.appendChild(e) } else { setTimeout(r, 5) } } } r(); function p() { var a = arguments; __uspapi.a = __uspapi.a || []; if (!a.length) { return __uspapi.a } else if (a[0] === "ping") { a[2]({ gdprAppliesGlobally: e, cmpLoaded: false }, true) } else { __uspapi.a.push([].slice.apply(a)) } } function l(t) { var r = typeof t.data === "string"; try { var a = r ? JSON.parse(t.data) : t.data; if (a.__cmpCall) { var n = a.__cmpCall; c.__uspapi(n.command, n.parameter, function (a, e) { var c = { __cmpReturn: { returnValue: a, success: e, callId: n.callId } }; t.source.postMessage(r ? JSON.stringify(c) : c, "*") }) } } catch (a) { } } if (typeof __uspapi !== "function") { c.__uspapi = p; __uspapi.msgHandler = l; c.addEventListener("message", l, false) } })();',parent:"head",timeout:"0",mainQueue:!0}),(0,r.iM)({src:"",inline:'window.__gpp_addFrame=function(e){if(!window.frames[e])if(document.body){var t=document.createElement("iframe");t.style.cssText="display:none",t.name=e,document.body.appendChild(t)}else window.setTimeout(window.__gpp_addFrame,10,e)},window.__gpp_stub=function(){var e=arguments;if(__gpp.queue=__gpp.queue||[],__gpp.events=__gpp.events||[],!e.length||1==e.length&&"queue"==e[0])return __gpp.queue;if(1==e.length&&"events"==e[0])return __gpp.events;var t=e[0],p=e.length>1?e[1]:null,s=e.length>2?e[2]:null;if("ping"===t)p({gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnatv1","8:uscav1","9:usvav1","10:uscov1","11:usutv1","12:usctv1"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}},!0);else if("addEventListener"===t){"lastId"in __gpp||(__gpp.lastId=0),__gpp.lastId++;var n=__gpp.lastId;__gpp.events.push({id:n,callback:p,parameter:s}
1),p({eventName:"listenerRegistered",listenerId:n,data:!0,pingData:{gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnatv1","8:uscav1","9:usvav1","10:uscov1","11:usutv1","12:usctv1"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}}},!0)}else if("removeEventListener"===t){for(var a=!1,i=0;i<__gpp.events.length;i++)if(__gpp.events[i].id==s){__gpp.events.splice(i,1),a=!0;break}p({eventName:"listenerRemoved",listenerId:s,data:a,pingData:{gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnatv1","8:uscav1","9:usvav1","10:uscov1","11:usutv1","12:usctv1"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}}},!0)}else"hasSection"===t?p(!1,!0):"getSection"===t||"getField"===t?p(null,!0):__gpp.queue.push([].slice.apply(e))},window.__gpp_msghandler=function(e){var t="string"==typeof e.data;try{var p=t?JSON.parse(e.data):e.data}catch(e){p=null}if("object"==typeof p&&null!==p&&"__gppCall"in p){var s=p.__gppCall;window.__gpp(s.command,(function(p,n){var a={__gppReturn:{returnValue:p,success:n,callId:s.callId}};e.source.postMessage(t?JSON.stringify(a):a,"*")}),"parameter"in s?s.parameter:null,"version"in s?s.version:"1.1")}},"__gpp"in window&&"function"==typeof window.__gpp||(window.__gpp=window.__gpp_stub,window.addEventListener("message",window.__gpp_msghandler,!1),window.__gpp_addFrame("__gppLocator"));',parent:"head",timeout:"0",mainQueue:!0})]),((e={})=>{window._sp_queue=[],window._sp_={config:{accountId:1940,baseEndpoint:"https://cdn.privacy-mgmt.com",usnat:{includeUspApi:!0},gdpr:{targetingParams:{acps:"false"}},events:{onConsentReady:async(e,t,n,o)=>{["usnat","gdpr"].includes(e)&&(null==o?void 0:o.applies)&&(async e=>{var t,n,o;await(0,c.e)();const i=await(0,l.n)(),s=(0,a.sn)(window.digitalData),r=["HU","FI","SE","DK","NO"].includes(null===(o=null===(n=null===(t=window.digitalData)||void 0===t?void 0:t.page)||void 0===n?void 0:n.attributes)||void 0===o?void 0:o.requesterCountryIso),p=document.querySelectorAll(".navigation_manage_cookies a");i?null==p||p.forEach((e=>{e.style.display="none"})):null==p||p.forEach((t=>{t.addEventListener("click",(t=>{var n,o,i,a;t.preventDefault(),"usnat"===e?null===(o=null===(n=window._sp_)||void 0===n?void 0:n.usnat)||void 0===o||o.loadPrivacyManagerModal(1434574):"gdpr"===e&&(null===(a=null===(i=window._sp_)||void 0===i?void 0:i.gdpr)||void 0===a||a.loadPrivacyManagerModal(s&&!r?1341184:1341183,"purposes"))}))}))})(e)}},targetingParams:e,campaignEnv:p?"stage":"prod",isSPA:!0}}})(e),await(0,r.iM)({src:"https://cdn.privacy-mgmt.com/unified/wrapperMessagingWithoutDetection.js",parent:"head",timeout:"0",load:"true",attributes:{async:"true",defer:"false"},mainQueue:!0}),await(0,l.s)()};let v;const f=async()=>(v||(v=new Promise((e=>{(0,l.n)().then((t=>{g({isPaidUser:t}).then((()=>{e(!0)})).catch((()=>{console.error("Failed to load CMP provider script."),e(!1)}))}))}))),v)},
1"./src/ts/services/contentpass.ts":(e,t,n)=>{n.d(t,{n:()=>d,s:()=>u});var o=n("../utils/dist/contentpass/contentpass-utils.js"),i=n("./src/ts/script-loader/script-loader.ts");const s=e=>{const t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([.$?*|{}()[\]\\/+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0},a=(0,o.mT)(window.digitalData),r=(0,o.SV)(a),l=o.zl[a],c=()=>{const e=()=>{window._sp_&&window._sp_.executeMessaging?window._sp_.config.isSPA?window._sp_.version?console.log("[SPCP] Sourcepoint already running"):(console.log("[SPCP] Starting Sourcepoint"),window._sp_.executeMessaging()):console.warn("[SPCP] Sourcepoint not in SPA mode!"):(console.log("[SPCP] Sourcepoint not loaded yet. Retrying."),setTimeout(e,10))};e()},p=()=>{console.log("[CP] onFullConsent")},d=()=>new Promise((e=>{const t=s("_cpauthhint"),n=(0,o.sn)(window.digitalData);if(!n||n&&!t)e(!1);else if("function"==typeof window.cp)window.cp("authenticate",((t,n)=>{e(!(t||!n)&&n.hasValidSubscription())}));else{const t=s("_cpauthhint");e("1"===t)}})),u=async()=>{try{if(await(async()=>(0,i.iM)({src:"",inline:'(function(C,o,n,t,e,P,a,s){C.CPObject=n,C[n]||(C[n]=function(){\n    for(var i=arguments.length,c=new Array(i),r=0;r<i;r++)c[r]=arguments[r];var f=c[0],u=c[1],l=c[2];if(C[n].q||(C[n].q=[]),\n    e=Array.prototype.slice.call(arguments,0),!C[n].patched)if("fatal"===f&&u)C[n].le=u,\n    Array.prototype.forEach.call(C[n].q,(function(e){"error"===e[0]&&"function"==typeof e[1]&&e[1](u)\n    }));else if("error"===f&&"function"==typeof u)C[n].le&&u(C[n].le);else if("extension"===f&&u)l&&"function"==typeof l.init&&(l.init(),\n    l.initialized=!0);else if("authenticate"===f&&"function"==typeof u){try{\n    P=-1===(o.cookie||"").indexOf("_cpauthhint=")&&!(C.localStorage||{})._cpuser&&-1===C.location.href.toLowerCase().indexOf("cpauthenticated")\n    }catch(e){P=!1}if(P){a={isLoggedIn:function(){return!1},hasValidSubscription:function(){return!1}}\n    ;var p=u,d=!1,h=function(e,i){d||(d=!0,p(e,i))};if(e[1]=h,"function"==typeof o.hasPrivateToken)try{\n    o.hasPrivateToken(t||"https://my.contentpass.net").then((function(e){e||h(null,a)})).catch((function(){}))\n    }catch(e){}else h(null,a)}}C[n].q.push(e)});try{\n    ((s=(o.cookie.split("_cpauthhint=")[1]||"").split(";")[0])?Number(s[1]):NaN)>0&&(o.body?o.body.classList.add("cpauthenticated"):o.addEventListener("DOMContentLoaded",(function(){\n    o.body.classList.add("cpauthenticated")})))}catch(e){}C[n].l=+new Date,C[n].sv=6}(window,document,"cp"));',parent:"head",timeout:"0",attributes:{"data-description":"contentpass integration"},mainQueue:!0}))(),!window.cp)throw new Error("Contentpass stub not initialized");window.cp("create",l,{baseUrl:r}),window.cp("render",{onFullConsent:p}),await(0,i.iM)({src:`${r}/now.js`,parent:"head",timeout:"0",load:"true",attributes:{async:"true",fetchpriority:"high",onerror:"cp('fatal', arguments)"},mainQueue:!0}),window.cp("authenticate",((e,t)=>{e||!t.isLoggedIn()&&!t.hasValidSubscription()?c():console.log("[CP] User authenticated with Contentpass")})),window.hasContentPassSubscription=d,console.log("[CP] Contentpass initialized successfully")}catch(e){console.error("[CP] Failed to initialize Contentpass:",e),c()}}},
1"./src/ts/services/geo.ts":(e,t,n)=>{n.d(t,{e:()=>s});let o=null;const i=e=>{var t,n;const o=null===(n=null===(t=window.digitalData)||void 0===t?void 0:t.page)||void 0===n?void 0:n.attributes;return o&&(e?o.requesterCountryIso=e:delete o.requesterCountryIso),e},s=()=>{if(!o){const e=new AbortController,t=setTimeout((()=>e.abort()),3e3);o=Promise.resolve().then((()=>fetch("/api/geo",{signal:e.signal}))).then((e=>e.ok?e.json():Promise.reject(new Error("geo fetch failed")))).then((({country:e})=>i(null!=e?e:null))).catch((()=>(o=null,i(null)))).finally((()=>clearTimeout(t)))}return o}},
1"../utils/dist/contentpass/contentpass-utils.js":(e,t)=>{t.sn=t.SV=t.mT=t.zl=void 0,t.zl={com:"1709ade1",cat:"7089424a",es:"7635d1f3",fr:"666b2327",jp:"f607194c",pt:"1dabce5b",mx:"71aa6eda",kr:"21d789bf","com.hk":"cd521a8a"},t.mT=e=>{var t,n,o,i;const s=null!==(o=null===(n=null===(t=null==e?void 0:e.page)||void 0===t?void 0:t.pageInfo)||void 0===n?void 0:n.destinationURL)&&void 0!==o?o:"",a=e=>e.match(/\/\/(?:(www|staging|dev\.v5|(www-gp-web)-\d{1,5})\.)?timeout(?:mexico|korea)?\.(com(?:\.hk)?|cat|es|hk|fr|jp|pt|kr|mx)/);let r=a(s),l=r?r[3]:"com";return""===s&&"undefined"!=typeof window&&(null===(i=null===window||void 0===window?void 0:window.location)||void 0===i?void 0:i.href)&&(r=a(window.location.href),l=r?r[3]:"com"),l},t.SV=e=>"mx"===e?`https://cp.timeoutmexico.${e}`:"kr"===e?`https://cp.timeoutkorea.${e}`:`https://cp.timeout.${e}`,t.sn=e=>{const n=(0,t.mT)(e);return["com","cat","es","fr","pt"].includes(n)}}
1},e=>{e.O(0,["latevendors","newrelic"],(()=>e(e.s="./src/ts/services/cmp.ts"))),e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.