PageSourceSearch

https://www.nbclosangeles.com/wp-content/themes/nbc-station/client…Identity.e9fd2569601a0349dd88.bundle.min.js

js nbclosangeles.com collected 2026-09-24 08:29:35 UTC 9,467 bytes, 2 lines download raw bytes

1!function(){var e={834:function(e,n){var t,r;void 0===(r="function"==typeof(t=function(){var e,n,t="lscache-",r="-cacheexpiration",o=6e4,i=b(o),a="",c=!1;function l(){var n="__lscachetest__",t=n;if(void 0!==e)return e;try{if(!localStorage)return!1}catch(e){return!1}try{w(n,t),m(n),e=!0}catch(n){e=!(!s(n)||!localStorage.length)}return e}function s(e){return e&&("QUOTA_EXCEEDED_ERR"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name||"QuotaExceededError"===e.name)}function u(){return void 0===n&&(n=null!=window.JSON),n}function d(e){return e+r}function p(){return Math.floor((new Date).getTime()/o)}function f(e){return localStorage.getItem(t+a+e)}function w(e,n){localStorage.removeItem(t+a+e),localStorage.setItem(t+a+e,n)}function m(e){localStorage.removeItem(t+a+e)}function h(e){var n,o,i=new RegExp("^"+t+(a.replace(/[[\]{}()*+?.\\^$|]/g,"\\$&")+"(.*)")),c=[];for(o=0;o<localStorage.length;o++)(n=(n=(n=localStorage.key(o))&&n.match(i))&&n[1])&&n.indexOf(r)<0&&c.push(n);for(o=0;o<c.length;o++)e(c[o],d(c[o]))}function v(e){var n=d(e);m(e),m(n)}function g(e){var n=d(e),t=f(n);if(t){var r=parseInt(t,10);if(p()>=r)return m(e),m(n),!0}}function y(e,n){c&&"console"in window&&"function"==typeof window.console.warn&&(window.console.warn("lscache - "+e),n&&window.console.warn("lscache - The error was: "+n.message))}function b(e){return Math.floor(864e13/e)}return{set:function(e,n,t){if(!l())return!1;if(!u())return!1;try{n=JSON.stringify(n)}catch(e){return!1}try{w(e,n)}catch(t){if(!s(t))return y("Could not add item with key '"+e+"'",t),!1;var r,o=[];h(function(e,n){var t=f(n);t=t?parseInt(t,10):i,o.push({key:e,size:(f(e)||"").length,expiration:t})}),o.sort(function(e,n){return n.expiration-e.expiration});for(var a=(n||"").length;o.length&&a>0;)y("Cache is full, removing item with key '"+(r=o.pop()).key+"'"),v(r.key),a-=r.size;try{w(e,n)}catch(n){return y("Could not add item with key '"+e+"', perhaps it's too big?",n),!1}}return t?w(d(e),(p()+t).toString(10)):m(d(e)),!0},get:function(e){if(!l())return null;if(g(e))return null;var n=f(e);if(!n||!u())return n;try{return JSON.parse(n)}catch(e){return n}},remove:function(e){l()&&v(e)},supported:function(){return l()},flush:function(){l()&&h(function(e){v(e)})},flushExpired:function(){l()&&h(function(e){g(e)})},setBucket:function(e){a=e},resetBucket:function(){a=""},getExpiryMilliseconds:function(){return o},setExpiryMilliseconds:function(e){i=b(o=e)},enableWarnings:function(e){c=e}}})?t.apply(n,[]):t)||(e.exports=r)}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return e[r].call(i.exports,i,i.exports,t),i.exports}!function(){"use strict";function e(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function n(){var e=new URLSearchParams(window.location.search);return"1"===e.get("disableHeader")&&"1"===e.get("disableFooter")&&"app"===e.get("ref")}t(834);const{nbc:{brand:r="",callLetters:o="",env:i="",identity:a={},dataLayer:{domainName:c="",division:l=""},fullDomain:s="",tokenBypass:u=!1},wp:{apiFetch:d}={}}=window,p="telemundo"===r?"cuenta":"account",f=e=>{switch(e){case"rsn":return"nbc_sports";case"telemundo":return"telemundo";default:return"nbc"}},w=e=>{switch(e.toUpperCase()){case"NSBO":return"NBCSB";case"NSBA":return"NBCSBA";case"NSPH":return"NBCSP";case"NSCH":return"NBCSC";default:return e}},m=()=>{const e=["preprod","production"].includes(i)?"id":"stage.id-envs";a.initialize((()=>{switch(l){case"rsn":return"rsnsweb";case"telemundo":return"telemundolocalweb";default:return"localstationsweb"}})(),{checkoutEnabled:!1,configLocationHost:`https://${e}.nbcuni.com/websdk/config`,debug:!0,env:["preprod","production"].includes(i)?"production":"stage",language:"telemundo"===r?"es":"en",native:!1,useBaseSdkLocation:!1,version:"2",crossDomain:!0,identityConfigOverrides:{brand:{product:s},crossDomain:{oAuthBrandLogo:`/websdk/assets/local/logos/${f(l)}/${w(o).toUpperCase()}_logo_${"maxTouchPoints"in navigator&&0<navigator.maxTouchPoints?window.matchMedia("(max-width: 767px)").matches?"mobile":"tablet":"desktop"}.svg`,redirectUrl:`https://${c}/${p}/`,clientId:(()=>{switch(l){case"rsn":return"rsn_web";
1case"telemundo":return"local_telemundo_web";default:return"local_nbc_web"}})()}}})},h=e=>{a.on("authenticationState",n=>{e(n)})},v=["prop1","prop2","prop3","prop4","prop8","prop9","prop10","prop20","prop21","prop22","prop23","prop48","prop52","prop53","prop54","prop55","eVar123","contextData.actionmodule","contextData.actionname"];n()&&v.push("eVar1","eVar80","eVar8","eVar9","eVar10");var g,y,b,k,S,_=(e,t,r)=>{const{nbc:{dataLayer:o={},siteKey:i=""}={}}=window,{callLetters:a="",contextData:c={},pageName:l="",section:s="",template:u="",division:d=""}=o,{reportSuiteId:p=""}=c;if(console.log("unifiedTrackClick triggered: ",e,t),void 0===window.s)return;const{linkTrackVars:f,linkTrackEvents:w}=window.s;let m="unknown";h(e=>{["unauthenticated","authenticated"].includes(e)&&(m=e)}),window.s.linkTrackVars=v.join(","),window.s.linkTrackEvents="",n()&&(window.s.prop48="app",window.s.prop1=s,window.s.prop2=u,window.s.prop8=d,window.s.prop9=i,window.s.prop10=a,window.s.prop20=p,window.s.eVar1=window.s.prop1,window.s.eVar80=window.s.prop2,window.s.eVar8=window.s.prop8,window.s.eVar9=window.s.prop9,window.s.eVar10=window.s.prop10);const g={prop21:r,prop52:l,prop53:e,prop54:`${l} | ${e}`,prop55:t,eVar123:m,contextData:{actionmodule:t,actionname:e}};window.s.tl(void 0,"o",t,g),window.s.linkTrackVars=f,window.s.linkTrackEvents=w};const E=null!==(y=null===(g=window.nbc)||void 0===g?void 0:g.identityBrand)&&void 0!==y?y:"default",x=null!==(k=null===(b=window.nbc)||void 0===b?void 0:b.identity)&&void 0!==k?k:{},N="production"===(null===(S=window.nbc)||void 0===S?void 0:S.env);var L,I={name:"unifiedNav",class:function(e={}){const{children:{login:t=null,logout:r=null,dashboard:o=null,email:l=null,manageProfile:s=null}={},element:d=null}=e||{},{body:f}=document;h(e=>{const n=document.querySelector(".identity-profile");"unknown"!==e&&null!==n&&n.classList.remove("identity-profile__loading"),"authenticated"===e||u&&["local","develop"].includes(i)?f.classList.add("identity-authenticated"):f.classList.remove("identity-authenticated"),_("identity state change","identity state change")}),d&&d.classList.contains("identity-profile")&&(null==d||d.addEventListener("click",()=>{(e=>{if(window.matchMedia("(max-width: 768px)").matches){const n=e.querySelector(".identity-profile__menu-container"),t="identity-profile__menu-container--show";n.classList.contains(t)?n.classList.remove(t):n.classList.add(t)}})(d)}));const w=(e,n)=>{const t="identity-profile-flyout"===e.target.parentElement.parentElement.className?"hamburger":"top nav";"top nav"===t&&"dashboard click"===n?_("dashboard","identity"):_(t,n)},m=(e,n)=>{e.addEventListener("click",()=>{var e,t;"manage profile"===n?(null===(e=x.openManageProfile)||void 0===e||e.call(x,E),_(n,"dashboard click")):_(n,"identity"),"email preferences"===n&&(null===(t=x.openEmailPreferences)||void 0===t||t.call(x,E))})};t&&t.addEventListener("click",e=>(w(e,"sign in click"),N||console.log("idm: attached"),e.preventDefault(),((e=null)=>{const n=e?{saveBookmark:e}:{};
1a.launch({referringPage:"nbc-web-sdk-sample",registrationReferrer:"None",defaultPage:"createProfile",redirectUrl:`https://${c}/${p}/`,brandData:btoa(JSON.stringify(n))})})(),!1)),r&&(m(r,"sign out"),r.addEventListener("click",e=>(e.preventDefault(),a.unauthenticate(),!1))),o&&o.addEventListener("click",e=>{w(e,"dashboard click")}),l&&m(l,"email preferences"),s&&!s.dataset.trackingAttached&&(n()&&s instanceof HTMLAnchorElement&&(s.href="inapp://manageProfile"),m(s,"manage profile"),s.dataset.trackingAttached="true")},querySelector:{login:".identity-profile__signin",logout:".identity-profile__signout",dashboard:".identity-profile__menu-item--dashboard",email:".identity-profile__menu-item--email",manageProfile:".unified--manage-profile--link"}},A=I;function D(){window.UNIFIEDNAV_INIT||(window.UNIFIEDNAV_INIT=!0,document.querySelectorAll('[data-component="unifiedNav"]').forEach(function(n){var t,r,o,i=(t=A.querySelector,r=n,o={},Object.entries(t||{}).forEach(function(n){var t,i,a=(i=2,function(e){if(Array.isArray(e))return e}(t=n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,i)||function(n,t){if(n){if("string"==typeof n)return e(n,t);var r={}.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(n,t):void 0}}(t,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=a[0],l=a[1];o[c]=r.querySelector(l)}),o);A.class({element:n,children:i})}))}L=function(){var e=window.nbc.identity;m(),e.on("status",function(e){"initialized"===e&&D()})},"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",L):L()}()}();
2//# sourceMappingURL=unifiedIdentity.e9fd2569601a0349dd88.bundle.min.js.map

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.