PageSourceSearch

https://www.getpromonight.com/_next/static/chunks/3940-4ed1f88242d…?dpl=dpl_Gr3DPw8bTDB9hPJq4xScRdJZby4e

js getpromonight.com collected 2026-09-24 14:13:46 UTC 11,877 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3940],{1086:(e,t,n)=>{n.d(t,{ShareSheet:()=>u});var r=n(5155),o=n(2115),l=n(80);function a(e){return"".concat("https://www.getpromonight.com","/").concat(e.sport,"/").concat(e.teamSlug)}function i(e){let t=["".concat(e.icon," ").concat(e.promoTitle).trim(),"".concat(e.teamName," \xb7 ").concat(e.date)];return e.venue&&t.push(e.venue),t.push("","getpromonight.com"),t.join("\n")}function c(e){return"".concat(e.icon," ").concat(e.promoTitle).trim()}function s(e,t,n){(0,l.track)("share_initiated",{surface:(0,l.inferSurfaceFromPath)(window.location.pathname),channel:t,placement:n,promo_title:e.promoTitle,promo_type:e.promoType,team_slug:e.teamSlug,sport:(0,l.normalizeSport)(e.sport)})}function d(e,t){if(!e)return null;let n=e.trim().replace(/^#/,"");if(3===n.length&&(n=n.split("").map(e=>e+e).join("")),6!==n.length)return null;let r=parseInt(n.slice(0,2),16),o=parseInt(n.slice(2,4),16),l=parseInt(n.slice(4,6),16);return[r,o,l].some(Number.isNaN)?null:"rgba(".concat(r,", ").concat(o,", ").concat(l,", ").concat(t,")")}function u(e){let{item:t,placement:n,onClose:l}=e,u=(0,o.useRef)(null),b=(0,o.useRef)(""),f=(0,o.useRef)(null),[v,g]=(0,o.useState)(!1),[w,k]=(0,o.useState)(!1),[j,y]=(0,o.useState)(!1),C=null!=t;(0,o.useEffect)(()=>{k("undefined"!=typeof navigator&&"function"==typeof navigator.share)},[]),(0,o.useEffect)(()=>{let e=u.current;if(e&&C&&!e.open){b.current=document.body.style.overflow;try{e.showModal()}catch(e){}document.body.style.overflow="hidden",g(!1),y(!1)}},[C]);let N=(0,o.useCallback)(()=>{let e=u.current;try{null==e||e.close()}catch(e){}document.body.style.overflow=b.current,f.current&&(window.clearTimeout(f.current),f.current=null),y(!1),g(!1),l()},[l]),L=(0,o.useCallback)(()=>{y(e=>e||(window.setTimeout(N,200),!0))},[N]);(0,o.useEffect)(()=>{let e=u.current;if(!e)return;let t=e=>{e.preventDefault(),L()};return e.addEventListener("cancel",t),()=>e.removeEventListener("cancel",t)},[L]),(0,o.useEffect)(()=>()=>{document.body.style.overflow=b.current||"",f.current&&window.clearTimeout(f.current)},[]);let S=(0,o.useCallback)(async()=>{if(t)try{await navigator.clipboard.writeText(a(t)),g(!0),s(t,"copy_link",n),f.current&&window.clearTimeout(f.current),f.current=window.setTimeout(()=>g(!1),2e3)}catch(e){}},[t,n]),E=(0,o.useCallback)(()=>{t&&(window.open("sms:?&body="+encodeURIComponent(i(t)),"_self"),s(t,"sms",n),L())},[t,n,L]),T=(0,o.useCallback)(()=>{t&&(window.open("https://x.com/intent/tweet?text="+encodeURIComponent(function(e){let t=e.venue?"\n".concat(e.venue):"",n=n=>"".concat(e.icon," ").concat(n,"\n").concat(e.teamName," \xb7 ").concat(e.date).concat(t).concat("\n\nFull promo calendar → getpromonight.com via @promo_night_app"),r=n(e.promoTitle);if(r.length>240){let t=r.length-240,o=Math.max(0,e.promoTitle.length-t-1);r=n(e.promoTitle.slice(0,o).trimEnd()+"…")}return r}(t))),s(t,"x",n),L())},[t,n,L]),M=(0,o.useCallback)(()=>{t&&(window.open("mailto:?subject="+encodeURIComponent(c(t))+"&body="+encodeURIComponent(function(e){let t=["".concat(e.icon," ").concat(e.promoTitle).trim(),"","".concat(e.teamName," \xb7 ").concat(e.date)];return e.venue&&t.push(e.venue),t.push("","See the full schedule: ".concat(a(e)),"","via PromoNight"),t.join("\n")}(t))),s(t,"email",n),L())},[t,n,L]),_=(0,o.useCallback)(()=>{t&&"undefined"!=typeof navigator&&navigator.share&&navigator.share({title:c(t),text:i(t),url:a(t)}).then(()=>{s(t,"native",n),L()}).catch(()=>{})},[t,n,L]),R=(()=>{let e=d(null==t?void 0:t.primaryColor,.22),n=d(null==t?void 0:t.primaryColor,.5);return e&&n?{background:"linear-gradient(135deg, ".concat(e,", rgba(255,255,255,0.02))"),borderColor:n}:{background:"#15171f",borderColor:"rgba(255,255,255,0.08)"}})(),B=t?[{key:"copy",label:v?"Copied!":"Copy Link",icon:v?(0,r.jsx)(m,{}):(0,r.jsx)(h,{}),onClick:S},{key:"sms",label:"Text",icon:(0,r.jsx)("span",{"aria-hidden":"true",children:"\uD83D\uDCAC"}),onClick:E},{key:"x",label:"X",icon:(0,r.jsx)(p,{}),onClick:T},{key:"email",label:"Email",icon:(0,r.jsx)("span",{"aria-hidden":"true",children:"✉️"}),onClick:M},...w?[{key:"native",label:"More",icon:(0,r.jsx)(x,{}),onClick:_}]:[]]:[];return(0,r.jsx)("dialog",{ref:u,"aria-label":"Share options",className:"z-[100] backdrop:bg-transparent",style:{position:"fixed",inset:0,width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",margin:0,padding:0,background:"transparent",border:"none",overflow:"hidden"},children:t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"share-backdrop absolute inset-0 bg-black/60 backdrop-blur-[2px]",onClick:L}),(0,r.jsx)("div",{className:"absolute inset-0 flex items-end sm:items-center justify-center sm:p-4 pointer-events-none",children:(0,r.jsxs)("div",{className:"".concat(j?"share-panel-out":"share-panel"," pointer-events-auto w-full sm:w-[min(420px,calc(100vw-2rem))] bg-bg-card border border-border-subtle rounded-t-3xl sm:rounded-2xl shadow-2xl px-5 pt-3.5 pb-[calc(env(safe-area-inset-bottom)+1.25rem)] sm:pb-5"),children:[(0,r.jsx)("div",{className:"sm:hidden mx-auto mb-3 h-1 w-10 rounded-full bg-white/20"}),(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,r.jsx)("h2",{className:"font-display text-2xl tracking-[1px] leading-none",children:"SHARE"}),(0,r.jsx)("button",{type:"button","aria-label":"Close",onClick:L,className:"w-8 h-8 flex items-center justify-center rounded-full bg-white/10 hover:bg-white/20 text-white transition-colors",children:(0,r.jsx)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,r.jsx)("div",{className:"rounded-xl border p-4 mb-5",style:R,children:(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)("span",{className:"text-3xl leading-none flex-shrink-0","aria-hidden":"true",children:t.icon}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"text-white font-semibold text-sm leading-snug",children:t.promoTitle}),(0,r.jsxs)("div",{className:"text-text-secondary text-xs mt-1",children:[t.teamName," \xb7 ",t.date]}),t.venue&&(0,r.jsx)("div",{className:"text-text-muted text-xs mt-0.5 truncate",children:t.venue})]})]})}),(0,r.jsx)("div",{className:"grid gap-2",style:{gridTemplateColumns:"repeat(".concat(B.length,", minmax(0, 1fr))")},children:B.map(e=>(0,r.jsxs)("button",{type:"button",onClick:e.onClick,className:"group flex flex-col items-center gap-1.5",children:[(0,r.jsx)("span",{className:"w-12 h-12 flex items-center justify-center rounded-full bg-white/[0.06] border border-border-subtle text-white text-xl group-hover:bg-white/[0.1] group-hover:border-border-hover group-active:scale-95 transition-all",children:e.icon}),(0,r.jsx)("span",{className:"text-[11px] text-text-secondary group-hover:text-white transition-colors text-center leading-tight",children:e.label})]},e.key))})]})})]})})}function h(){return(0,r.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:[(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5a4 4 0 0 1 0 5.66l-2.5 2.5a4 4 0 0 1-5.66-5.66l1.5-1.5"}),(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 13.5a4 4 0 0 1 0-5.66l2.5-2.5a4 4 0 0 1 5.66 5.66l-1.5 1.5"})]})}function m(){return(0,r.jsx)("svg",{className:"w-5 h-5 text-promo-giveaway",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,"aria-hidden":"true",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}function p(){return(0,r.jsx)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24h-6.66l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}function x(){return(0,r.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"5",cy:"12",r:"2"}),(0,r.jsx)("circle",{cx:"12",cy:"12",r:"2"}),(0,r.jsx)("circle",{cx:"19",cy:"12",r:"2"})]})}},4027:(e,t,n)=>{n.d(t,{ShareProvider:()=>i,useShare:()=>c});var r=n(5155),o=n(2115),l=n(1086);let a=(0,o.createContext)(null);function i(e){var t,n;let{children:i}=e,[c,s]=(0,o.useState)(null),d=(0,o.useCallback)((e,t)=>{s({item:e,placement:t})},[]),u=(0,o.useCallback)(()=>s(null),[]),h=(0,o.useMemo)(()=>({openShare:d}),[d]);return(0,r.jsxs)(a.Provider,{value:h,children:[i,(0,r.jsx)(l.ShareSheet,{item:null!=(t=null==c?void 0:c.item)?t:null,placement:null!=(n=null==c?void 0:c.placement)?n:"",onClose:u})]})}function c(){return(0,o.useContext)(a)}},6202:(e,t,n)=>{n.d(t,{ShareButton:()=>l});var r=n(5155),o=n(4027);function l(e){let{item:t,placement:n,onShare:l,className:a,label:i="Share"}=e,c=(0,o.useShare)();return(0,r.jsx)("button",{type:"button","aria-label":i,onClick:e=>{if(e.stopPropagation(),e.preventDefault(),l)return void l(t);null==c||c.openShare(t,n)},className:null!=a?a:"inline-flex items-center justify-center w-8 h-8 rounded-full text-text-secondary hover:text-white hover:bg-white/10 active:bg-white/[0.15] transition-colors",children:(0,r.jsx)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 12v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7M16 6l-4-4-4 4M12 2v13"})})})}},8433:(e,t,n)=>{n.d(t,{a:()=>l});var r=n(5155),o=n(2115);function l(e){let{isOpen:t,onClose:n,children:l,ariaLabel:a,variant:i="dark",size:c="full"}=e,s=(0,o.useRef)(null),d="light"===i,u="fit"===c;return(0,o.useEffect)(()=>{let e=s.current;if(e){if(t&&!e.open){try{e.showModal()}catch(e){}document.body.style.overflow="hidden"}else!t&&e.open&&(e.close(),document.body.style.overflow="");return()=>{document.body.style.overflow=""}}},[t]),(0,o.useEffect)(()=>{let e=s.current;if(!e)return;let t=()=>n(),r=t=>{let r=e.getBoundingClientRect();t.clientX>=r.left&&t.clientX<=r.right&&t.clientY>=r.top&&t.clientY<=r.bottom||n()};return e.addEventListener("close",t),e.addEventListener("click",r),()=>{e.removeEventListener("close",t),e.removeEventListener("click",r)}},[n]),(0,r.jsx)("dialog",{ref:s,"aria-label":a,className:u?"m-0 p-0 w-[calc(100vw-2rem)] max-w-lg h-auto max-h-[85vh] ".concat(d?"bg-rd-cream text-rd-ink border-rd-line":"bg-bg-card text-white border-border-subtle"," rounded-2xl border overflow-hidden backdrop:bg-black/60 backdrop:backdrop-blur-[2px]"):"\n        m-0 p-0\n        w-full h-full sm:w-auto sm:h-auto\n        sm:max-w-xl sm:w-[min(540px,calc(100vw-2rem))]\n        sm:max-h-[85vh]\n        ".concat(d?"bg-rd-cream text-rd-ink sm:border-rd-line":"bg-bg-card text-white sm:border-border-subtle","\n        sm:rounded-2xl border-0 sm:border\n        overflow-hidden\n        backdrop:bg-black/60 backdrop:backdrop-blur-[2px]\n      "),style:{position:"fixed",inset:0,margin:"auto"},children:(0,r.jsxs)("div",{className:u?"relative w-full h-auto max-h-[85vh] overflow-y-auto":"relative w-full h-full sm:h-auto sm:max-h-[85vh] overflow-y-auto",children:[(0,r.jsx)("button",{type:"button","aria-label":"Close",onClick:n,className:"sticky top-3 float-right mr-3 z-10 w-9 h-9 flex items-center justify-center rounded-full transition-colors ".concat(d?"bg-rd-ink/[0.06] hover:bg-rd-ink/[0.12] text-rd-ink":"bg-white/10 hover:bg-white/20 text-white"),children:(0,r.jsx)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),(0,r.jsx)("div",{className:"p-5 md:p-6 pt-4",children:l})]})})}}}]);

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.