PageSourceSearch

https://cdn.zonalsports.com/_next/static/chunks/notification-widget.ed2627564b39c98c.js

js zonalsports.com collected 2026-09-30 18:02:24 UTC 11,574 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7675,9700],{1617:(e,s,t)=>{t.d(s,{W:()=>c});var i=t(80385),n=t(14524),a=t(2818);let c=e=>{let{onClose:s,quitButton:t}=e;return(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:n.cx.wh,children:"Push notification not supported"}),(0,i.jsx)(a.Q,{text:"Your browser version does not support push notifications. Ugrade and try again",centerText:!0}),(0,i.jsx)("div",{className:n.cx.wf,children:t})]})}},4422:(e,s,t)=>{t.d(s,{d:()=>c});var i=t(30332),n=t(76771),a=t(26774);let c=()=>{let e;try{e=(0,n.Sx)("app")}catch(e){}return e||(e=(0,n.Wp)(i.C,"app")),(0,a.dG)(e)}},9020:(e,s,t)=>{t.d(s,{T:()=>r});var i=t(55581),n=t(85176),a=t.n(n),c=t(83279);let r=e=>{let[s,t]=(0,i.useState)(!1);return{copied:s,clearCopied:(0,i.useCallback)(()=>t(!1),[]),copy:(0,i.useCallback)(()=>{let s="string"==typeof e?e:(0,c.e)(e);a()(s,{format:"text/plain"}),t(!0)},[e])}}},11549:(e,s,t)=>{t.d(s,{ID:()=>l});var i=t(27209),n=t(56112),a=t(87570),c=t(69395);let r=new Set(["/","#","?"]),l=(e,s)=>{if("string"!=typeof e&&(e=(0,i.L8)(e)),/^https?:/i.test(e))return e;r.has(e.charAt(0))||(e="/"+e);let t="/";return(s&&s!==a.g7&&(t="/"+(0,c.B)(s)),e.startsWith(t)||(e=t+e),"/"===e)?n.U.host:n.U.host+e}},11644:(e,s,t)=>{t.r(s),t.d(s,{DocInfoWidget:()=>h});var i=t(80385),n=t(14215),a=t(53839),c=t(14524),r=t(4497),l=t(9020),d=t(11549),o=t(45368),x=t(12691);let u=e=>{let{label:s,text:t}=e,{copy:a,copied:c,clearCopied:d}=(0,l.T)(t);return t?(0,i.jsxs)("div",{className:"mb-20",children:[(0,i.jsx)("div",{className:"mb-4",children:s}),(0,i.jsx)(n.t,{color:"_paper-200",className:"relative p-8",onClick:a,children:(0,i.jsx)(r.X,{text:t,embeddedSlices:void 0,categorySliceDisplayTypeComponents:void 0,sliceComponents:void 0,renderStats:{complementarySliceCount:0,embeddedSliceIds:void 0}})})]}):null},h=e=>{let{onClose:s,pageData:t}=e,{title:n,description:r,caption:l}=t.data,{id:h,lang:b,createdAt:p,updatedAt:j}=t;return(0,i.jsx)(a.B,{onClose:s,children:(0,i.jsxs)("div",{className:"container",children:[(0,i.jsx)("h3",{className:c.cx.wh,children:"Page Info (Click field to copy)"}),(0,i.jsxs)("div",{children:[(0,i.jsx)(u,{label:"ID",text:h}),(0,i.jsx)(u,{label:"Published On",text:(0,x.GP)(p,"MMM d Y, h:mm a")}),(0,i.jsx)(u,{label:"Updated On",text:(0,x.GP)(j,"MMM d Y, h:mm a")}),(0,i.jsx)(u,{label:"Title",text:n}),(0,i.jsx)(u,{label:"Description",text:r}),(0,i.jsx)(u,{label:"Caption",text:l}),(0,i.jsx)(u,{label:"Prismic Link",text:(0,o.A)({id:h,lang:b})}),(0,i.jsx)(u,{label:"Page Link",text:(0,d.ID)(t)})]})]})})}},14524:(e,s,t)=>{t.d(s,{cx:()=>i});let i={wh:"widget-heading",wf:"widget-footer",checkBoxLabel:"widget-checkbox-label",desc:"widget-desc"}},19279:(e,s,t)=>{t.d(s,{N:()=>a});var i=t(80385),n=t(90432);let a=e=>(0,i.jsx)(n.$,{size:"btn-sm",...e})},21029:(e,s,t)=>{t.r(s),t.d(s,{NotificationWidget:()=>b});var i=t(80385),n=t(55581),a=t(1617),c=t(45921),r=t(66958),l=t(65036),d=t(72702),o=t(32135),x=t(49303),u=t(19279),h=t(39175);let b=e=>{let{onClose:s,lang:t}=e,[b,p]=(0,n.useState)(()=>
1(0,d.E)()),[j,m]=(0,n.useState)(!0),f=(0,n.useCallback)(e=>{m(!1),p(e)},[]);(0,n.useEffect)(()=>{(0,o.u)("pns_widget_open")},[]);let v=(0,i.jsx)(u.N,{onClick:s,color:"_inherit",children:"Close"}),g=l.X;switch(b){case"not-supported":g=a.W;break;case"denied":g=h.C;break;case"disabled":g=r.P;break;case"granted":g=c.m}return(0,i.jsx)(x.B,{onClose:s,children:(0,i.jsx)(g,{onClose:s,onDisabled:()=>{f("disabled")},onEnabled:()=>{f("granted")},onDenied:()=>f("denied"),lang:t,quitButton:v,isInitialState:j})})}},30332:(e,s,t)=>{t.d(s,{C:()=>i});let i={apiKey:"AIzaSyC1TlY7eY_6nQc0Y3ghZaLcItND5GnL1AQ",authDomain:"sportsmedia-9d7bc.firebaseapp.com",projectId:"sportsmedia-9d7bc",storageBucket:"sportsmedia-9d7bc.appspot.com",messagingSenderId:"101014383029",appId:"1:101014383029:web:c7bba380e1b9c5ba67d1fc",vapidKey:"BNQ6FLQx3xKBDlH_iIjtwEzy4GhOvE4r-3J4z0-1OEn0qPI5yVuIDYW0mULZ9sAO36JvyyuAqoPjuewB3getnH8"}},39175:(e,s,t)=>{t.d(s,{C:()=>r});var i=t(80385),n=t(14524),a=t(19279),c=t(2818);let r=e=>{let{quitButton:s,isInitialState:t}=e;return(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:n.cx.wh,children:"Push Permission Denied"}),(0,i.jsx)(c.Q,{text:"Push permission is ".concat(t?"currently":"now"," denied. Follow Google instructions below to fix this"),centerText:!0}),(0,i.jsxs)("div",{className:n.cx.wf,children:[s,(0,i.jsx)(a.N,{target:"_blank",rel:"nofollow noopener noreferrer",to:"https://support.google.com/chrome/answer/3220216?hl=en&co=GENIE.Platform%3DDesktop",children:"Instructions"})]})]})}},39700:(e,s,t)=>{t.r(s),t.d(s,{disablePns:()=>h,enablePns:()=>u});var i=t(30332),n=t(26774),a=t(41666),c=t(73653),r=t(88673),l=t(77978),d=t(4422),o=t(82440);let x=e=>[].concat((0,o.zc)()?["test"]:[]).map(s=>(0,r.Z)(s,e)),u=async e=>{try{let s=(0,d.d)(),t=await (0,n.gf)(s,{vapidKey:i.C.vapidKey}),r=l.rv.get(),o=l.vz.get(),u=x(e);return r&&await (0,c.h)(o,r),await (0,a.C)(u,t),l.rv.set(t),l.vz.set(u),l.OW.clear(),l.vE.clear(),l.kg.set(Date.now()),!0}catch(e){return l.vE.set(!0),!1}},h=async()=>{try{let e=(0,d.d)();return await (0,n.ni)(e),l.rv.clear(),l.vE.clear(),l.OW.set(!0),!0}catch(e){return!1}}},41666:(e,s,t)=>{t.d(s,{C:()=>n});var i=t(29825);let n=async(e,s)=>0===e.length?Promise.resolve(!0):(0,i.w)().then(t=>t.post("/messaging/subscribe",{token:s,topics:e.join(",")}).then(()=>!0))},45921:(e,s,t)=>{t.d(s,{m:()=>u});var i=t(80385),n=t(55581),a=t(7316),c=t(14524),r=t(19279),l=t(98734),d=t(39700),o=t(2818),x=t(32135);let u=e=>{let{onDisabled:s,quitButton:t,onClose:u,isInitialState:h}=e,[b,p]=(0,n.useState)("default"),j=async()=>{p("disabling"),await (0,a.y)(),(0,d.disablePns)().then(e=>{e?((0,x.u)("pns_disable_success"),s()):((0,x.u)("pns_disable_failure"),p("disabling-failed"))})};switch(b){case"disabling":return(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:c.cx.wh,children:"Disabling..."}),(0,i.jsx)(l.O,{loading:!0})]});case"disabling-failed":return(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:c.cx.wh,children:"Failed to Disable"}),(0,i.jsx)(o.Q,{text:"Failed to disable Push notification for you. Please try again later.",centerText:!0}),(0,i.jsx)("div",{className:c.cx.wf,children:t})]});case"default":return(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:c.cx.wh,children:"Notification is Active"}),(0,i.jsx)(o.Q,{text:"Push notification is ".concat(h?"currently":"now"," active. To disable it, use the button below"),centerText:!0}),(0,i.jsxs)("div",{className:c.cx.wf,children:[(0,i.jsx)(r.N,{onClick:j,color:"_inherit",children:"Disable"}),(0,i.jsx)(r.N,{onClick:u,children:"Close"})]})]});default:return null}}},49303:(e,s,t)=>{t.d(s,{B:()=>c});var i=t(80385),n=t(14760),a=t(83772);let c=e=>{let{containerClassName:s,...t}=e;return(0,i.jsx)(n.a,{containerClassName:(0,a.p)("px-24 py-40 shadow-4",s),...t})}},53839:(e,s,t)=>{t.d(s,{B:()=>a});var i=t(80385),n=t(14760);let a=e=>{let{className:s,...t}=e;return(0,i.jsx)(n.a,{containerClassName:"px-24 py-40",...t})}},65036:(e,s,t)=>{t.d(s,{X:()=>h});var i=t(80385),n=t(55581),a=t(7316),c=t(9936),r=t(14524),l=t(19279),d=t(98734),o=t(2818),x=t(32135),u=t(39700);let h=e=>{let{lang:s,quitButton:t,onDenied:h}
1=e,[b,p]=(0,n.useState)("default"),j=async()=>{p("requesting_permission"),await (0,a.y)(),(0,x.u)("pns_permission_request"),(0,c.t)().then(e=>"granted"!==e?((0,x.u)("pns_permission_denied"),h()):((0,x.u)("pns_permission_granted"),p("subscribing"),(0,u.enablePns)(s).then(e=>{if(e)return(0,x.u)("pns_subscription_success"),p("subscribed");(0,x.u)("pns_subscription_failure"),p("failed")}))).catch(e=>{console.log(e)})};switch(b){case"failed":return(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:r.cx.wh,children:"Failed to Subscribe"}),(0,i.jsx)(o.Q,{className:r.cx.desc,text:"An error occurred while trying to subscribe to our push notification service",centerText:!0}),(0,i.jsxs)("div",{className:r.cx.wf,children:[t,(0,i.jsx)(l.N,{onClick:()=>{j()},children:"Try Again"})]})]});case"requesting_permission":return(0,i.jsxs)("div",{children:[(0,i.jsx)(o.Q,{text:"Waiting for your permission...",centerText:!0}),(0,i.jsx)(d.O,{loading:!0})]});case"subscribing":return(0,i.jsxs)("div",{children:[(0,i.jsx)(o.Q,{text:"Subscribing, please wait...",centerText:!0}),(0,i.jsx)(d.O,{loading:!0})]});case"subscribed":return(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:r.cx.wh,children:"Subscribed Successfully"}),(0,i.jsx)(o.Q,{className:r.cx.desc,text:"You have been successfully subscribe to our push notification service.",centerText:!0}),(0,i.jsx)("div",{className:r.cx.wf,children:t})]});case"showConfirmation":return(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:r.cx.wh,children:"Confirm to Continue"}),(0,i.jsx)(o.Q,{className:r.cx.desc,text:"You are about to be asked for permission to send you push notifications. Do you confirm?",centerText:!0}),(0,i.jsxs)("div",{className:r.cx.wf,children:[(0,i.jsx)(l.N,{onClick:()=>{p("default")},color:"_inherit",children:"Back"}),(0,i.jsx)(l.N,{onClick:j,children:"Confirm"})]})]});case"default":return(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:r.cx.wh,children:"Enable Push Notification"}),(0,i.jsx)(o.Q,{className:r.cx.desc,centerText:!0,text:[{type:"paragraph",text:"Recieve our instant notification updates by clicking the subscribe button below."}]}),(0,i.jsxs)("div",{className:r.cx.wf,children:[t,(0,i.jsx)(l.N,{onClick:()=>{(0,x.u)("pns_confirmation_request"),p("showConfirmation")},children:"Subscribe"})]})]});default:return null}}},66958:(e,s,t)=>{t.d(s,{P:()=>u});var i=t(80385),n=t(7316),a=t(55581),c=t(14524),r=t(19279),l=t(98734),d=t(39700),o=t(2818),x=t(32135);let u=e=>{let{onEnabled:s,quitButton:t,lang:u,isInitialState:h}=e,[b,p]=(0,a.useState)("default"),j=async()=>{p("enabling"),await (0,n.y)(),(0,d.enablePns)(u).then(e=>{e?((0,x.u)("pns_reenable_success"),s()):(0,x.u)("pns_reenable_failure")})};switch(b){case"default":return(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:c.cx.wh,children:"Notification is Disabled"}),(0,i.jsx)(o.Q,{text:"Push notification is ".concat(h?"currently":"now"," disabled. click below to re-enable it"),centerText:!0}),(0,i.jsxs)("div",{className:c.cx.wf,children:[t,(0,i.jsx)(r.N,{onClick:j,children:"Re-enable"})]})]});case"enabling":return(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:c.cx.wh,children:"Re-enabling..."}),(0,i.jsx)(l.O,{loading:!0})]});case"enabling-failed":return(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:c.cx.wh,children:"Failed to Re-enable"}),(0,i.jsx)(o.Q,{text:"Failed to re-enable push notification for you. Try again later",centerText:!0}),(0,i.jsxs)("div",{className:c.cx.wf,children:[t,(0,i.jsx)(r.N,{onClick:j,children:"Try Again"})]})]});default:return null}}},69395:(e,s,t)=>{t.d(s,{B:()=>i});let i=e=>e?e.split("-")[0]:""},73653:(e,s,t)=>{t.d(s,{h:()=>n});var i=t(29825);let n=async(e,s)=>0===e.length?Promise.resolve(!0):(0,i.w)().then(t=>t.post("/messaging/unsubscribe",{token:s,topics:e.join(",")}).catch().then(()=>!0))},88673:(e,s,t)=>{t.d(s,{Z:()=>i});let i=(e,s)=>"test"===e?e:s+"_"+e},98734:(e,s,t)=>{t.d(s,{O:()=>r});var i=t(80385),n=t(83772),a=t(96835);let c=e=>{let{children:s,className:t,...a}=e;return(0,i.jsx)("div",{className:(0,n.p)("text-center my-24",t),...a,children:s})},r=e=>{let{loading:s,error:t,className:r,message:l,...d}=e;return s?(0,i.jsx)(c,{className:r,...d,children:(0,i.jsx)(a.P,{size:28})}):t?(0,i.jsxs)(c,{className:(0,n.p)("text-warning",r),...d,children:["Error!, ",t]}):l?(0,i.jsxs)(c,{className:(0,n.p)("text-success font-medium",r),...d,children:["Success!, ",l]}):null}}}]);

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.