PageSourceSearch

https://pagesix.com/wp-content/themes/gtf/client/build/js/zephr.bundle.js?ver=1cb793eafa0e5cc066a4

js pagesix.com collected 2026-09-24 08:25:41 UTC 9,432 bytes, 2 lines download raw bytes

1/*! For license information please see zephr.bundle.js.LICENSE.txt */
2!function(){"use strict";function e(e){const t=document.documentElement,n=document.body;if(!0===e){if(t.scrollHeight>t.offsetHeight){const e=t.scrollTop?t.scrollTop:n.scrollTop;t.classList.add("no-scroll"),t.style.top=-e+"px"}}else{const e=-parseInt(t.style.top,10);t.classList.remove("no-scroll"),t.scrollTop=e,n.scrollTop=e}}var t=(...e)=>e.filter(e=>e instanceof HTMLAnchorElement).at(0)?.href??"";const n=e=>{const t=window.gtfScripts?.nypost_wp_vars?.nypostSite??"";if(new RegExp(`https?://go.${t}.com/`).test(e))try{return new URL(e).searchParams.get("url")??e}catch{return e}return e};function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)"__proto__"!==o&&(e[o]=n[o])}return e}var r=function e(t,n){function r(e,r,s){if("undefined"!=typeof document){"number"==typeof(s=o({},n,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var c in s)s[c]&&(i+="; "+c,!0!==s[c]&&(i+="="+s[c].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],o={},r=0;r<n.length;r++){var s=n[r].split("="),i=s.slice(1).join("=");try{var c=decodeURIComponent(s[0]);if(c in o||(o[c]=t.read(i,c)),e===c)break}catch(e){}}return e?o[e]:o}},remove:function(e,t){r(e,"",o({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,o({},this.attributes,t))},withConverter:function(t){return e(o({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const s={ls:window.localStorage,isAvailable:null,isLsAvailable(){if("boolean"==typeof s.isAvailable)return s.isAvailable;const e="test";try{return s.ls.setItem(e,e),s.ls.removeItem(e),s.isAvailable=!0,!0}catch(e){return this.throwError(e),s.isAvailable=!1,!1}},throwError(e,t="error"){console[t](`[GTF Storage] An error has occurred: ${String(e)}`)},set(e,t,n){const o=n;let i=t;if(null!=n){if(Array.isArray(n)||"object"!=typeof n)return this.throwError('The "attributes" parameter must be an object.',"warn"),!1;o.value=t,i=o}if(!s.isLsAvailable())return this.throwError("Local Storage is not available, action was completed using cookies","warn"),r.set(e,String(t),n);try{return this.ls.setItem(e,JSON.stringify(i)),!0}catch(e){return this.throwError(e),!1}},get(e,t=!0){return s.isLsAvailable()?t?(e=>{const t={result:null,error:null};try{t.result=JSON.parse(e,void 0)}catch(e){t.error=e,console.error(e)}return t.error?{}:t.result})(this.ls.getItem(e)??"null"):this.ls.getItem(e):(this.throwError("Local Storage is not available, action was completed using cookies","warn"),r.get(e))},remove(e){if(!s.isLsAvailable())return this.throwError("Local Storage is not available, tried removing via Cookies."),r.remove(e),!1;try{return this.ls.removeItem(e),!0}catch(e){return this.throwError(e),!1}},hasCookie(e){return void 0!==r.get(e)||!1}},i="nyp_zephr",c="__all";function l(){let e=s.get(i);return e||(e={}),Object.assign({subscribed:[],suppressed:{},suppressedAllowList:[]},e)}function a(e){s.set(i,e)}function u(){const e=Math.floor(Date.now()/1e3),t=l();let{suppressedAllowList:n=[]}=t;if(!n.length)return!1;const[o="",r=0]=n;return r<=e?(n=[],a(t),!1):o}function p(e=!1){e||(e=c);const t=l(),{suppressed:n=[]}=t,o=Math.floor(Date.now()/1e3),r=u();return!((!r||e===c||r===e)&&(void 0===n[e]||n[e]<=o&&(delete n[e],a(t),1)))}const d=document.documentElement.clientWidth<=640;function h(e,t,n,o){const{fireToEmbed:r=console.error}=window.zephr;r(e,{success:t,message:n,isMobile:d,object:"string"==typeof o?o.replace("zephr:event:",""):o})}function w(e,o,r,s=""){let i=e||s,c="flyout",l="flyout: ";i.startsWith("pencil-unit ")&&(l="pencil_unit: ",c="pencil_unit"),i=function(e,t){t&&t.length||(t="Flyout: ");let n=e;return e?e.startsWith("flyout ")?n=e.replace(/-/g," ").replace(/^(.)|\s+(.)/g,e=>
2e.toUpperCase()).replace(/^Flyout /,"").replace(/ Left$/,"").replace(/ Right$/,""):e.startsWith("pencil-unit ")&&(n=e.replace("pencil-unit ","").trim()):n="Template name not defined - Zephr",`${t}${n}`}(i,l),((e,o=null,r=null)=>{const{event_name:s,...i}=e;Object.entries(i).forEach(([e,s])=>{i[e]=((e,o,r)=>{let s="";switch(e){case"ga_current_url":return encodeURI(window.location.href);case"click_time":return(new Date).toLocaleString();case"__href__":return s=t(o,r?.target),encodeURI(n(s));default:return e}})(String(s),o,r)});const c=window.ga4Dims??{},l={...i,...c,source_page_type:c.page_type??"",source_page:encodeURI(window.location.href),destination:o&&r?encodeURI(n(t(o,r.target))):""};s&&"undefined"!=typeof gtag&&gtag("event",s,l),window.optimizely=window.optimizely??[],window.optimizely.push({type:"event",eventName:"navclick_event__same_trigger_",properties:{Category:String(i.source_unit??"")}})})({event_name:"ux_engagement",source_unit:c,source_page:window.location.href,event_category:i,event_action:o,event_label:r},{})}function m(e){const{email:t="",event:n,iframeId:o="",nypPhone:r="",maropostsource:s="",experienceActionId:i="",zephrComponent:c="",selectedLists:u={},towersource:p="nypost"}=e;let{lists:d="",source:m="",model:{templateName:f=""}={}}=e;const{model:{GAPrefix:g=""}={}}=e;d=function(e){return e.split(",").map(e=>e.trim()).filter(e=>e.length>1).join(",")}(d),m=m||s,t&&d?(f=f||i||c,async function(e,t){try{const n=await fetch("https://developer.nypost.com/temp/maropost/webhooks/validate-email/",{body:`email=${encodeURIComponent(e)}&tower_source=${encodeURIComponent(t)}`,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},method:"POST"});if(!n.ok)return!0;const{pass:o=!0}=await n.json();return o}catch(e){return!0}}(t,p).then(s=>{if(s){!async function(e,t,n,o,r,s){const{nypZephr:{nonce:i=""}={}}=window,c=r.hasOwnProperty("trackingId")?r.trackingId:"",l=await fetch("/wp-json/nypost-zephr/v1/newsletters/",{body:(a={email:e,subscribe:t,_wpnonce:i,nypPhone:n,source:o,tpEvent:c},Object.keys(a).reduce((e,t)=>[...e,`${t}=${encodeURIComponent(a[t])}`],[]).join("&")),headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"POST"});var a;if(!l.ok)return void h(s,!1,"An error has ocurred.",r.event);const{status:u=!1}=await l.json()||{};u?h(s,!0,"Success",r.event):h(s,!1,"An error has ocurred.",r.event)}(t,d,r,m,e,o),window.newslettersConverted=window.newslettersConverted||[];const s=Object.values(u).filter(e=>!window.newslettersConverted.includes(e));w(f,"newsletter-single-signup"===n?"button_click_single_sign_up":"button_click_multiple_sign_up","successful",c);const{permutive:i=!1}=window;i&&i.track("Newsletter",{pageUri:window.location.href,newsletters:s.join(", ")}),window.newslettersConverted.push(...s),function(e){const t=l(),{subscribed:n=[]}=t;n.push(e),a(t)}(c)}else h(o,!1,"An error has ocurred.","invalid-email"),w(f,"newsletter-single-signup"===n?"button_click_single_sign_up":"button_click_multiple_sign_up","failed",c)}).catch(()=>{w(f,"newsletter-single-signup"===n?"button_click_single_sign_up":"button_click_multiple_sign_up","failed",c),h(o,!1,"An error has ocurred.","invalid-email")})):h(o,!1,"An error has ocurred. Missing email address or list IDs.",e.event)}window.nypZephr=window.nypZephr||{},window.zephr=window.zephr||[],window.nypZephr.isMobile=d,window.zephr.push(["loaded",e=>{h(e.iframeId,!0,"isMobile",{isMobile:d})}]),window.zephr.push(["flyout-close",t=>{const{iframeId:n="",eventAction:o="Button Click - Close",eventLabel:r="X button close",model:{disableScrollLock:s=!1,disableMobileScrollLock:i=!1,GAPrefix:c="",templateName:l=""}={},zephrComponent:a=""}=t;if(d&&!(s||i)&&e(!1),!n)return;const u=document.getElementById(n);if(u){const e=u.closest(".zephr-component");e&&!e.classList.contains("closed")&&(e.classList.add("closed"),w(l,"button_click_close","",a))}}]),window.zephr.push(["show",t=>{const{model:{disableScrollLock:n=!1,disableMobileScrollLock:o=!1,GAPrefix:r="",templateName:s=""}={},zephrComponent:i=""}=t,c=n||o;w(s,"show_template","",i),function(e,t=86400){const n=Math.floor(Date.now()/1e3),o=l();o.suppressedAllowList=[e,n+t],a(o)}(s||i),d&&!c&&e(!0)}]),window.zephr.push(["*",e=>{const{event:t,eventAction:n="",eventLabel:o="",model:{GAPrefix:r="",templateName:s=""}={},zephrComponent:i=""}=e;"flyout-close"!==t&&(-1===t.indexOf("-clicked")&&-1===t.indexOf("-close")&&"track-analytics"!==t||w(s,n||t,"",i))}]),window.zephr.push(["newsletter-single-signup",m]),window.zephr.push(["newsletter-multi-signup",m]);const f=()=>{const{hooks:{addFilter:e=()=>null}={}}=window.zephr;e("zephr.componentQueryParameters","nypost",e=>{p(c)&&e.append("suppressAll","true");const t=u();return t&&e.append("suppressedExcept",t),e}),e("zephr.componentProps","nypost",(e,t,n)=>!!function(e){const{subscribed:t=[]}=l()||{},{env:n="local"}=window.nypZephr||{};return!(("production"===n||!window.location.hash.includes("zephrRender=1"))&&(t.includes(e)||p(c)||"local"===n&&p(e)))}(n)&&e)};window.zephr.booted?f():window.zephr.push(["boot",f])}();

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.