1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5ce9a31e-6098-40aa-9784-6b6eb04de3ab",e._sentryDebugIdIdentifier="sentry-dbid-5ce9a31e-6098-40aa-9784-6b6eb04de3ab")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6636],{6636:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});var n=a(95155),i=a(12115),o=a(83790),r=a(52078);let s={apiKey:"AIzaSyDpYskxLzv8leSmkzZawli00tUGwwfqt7w",authDomain:"app-sbt-news.firebaseapp.com",projectId:"app-sbt-news",storageBucket:"app-sbt-news.appspot.com",messagingSenderId:"555398529914",appId:"1:555398529914:web:0fd303f8157f886bb74cc3",measurementId:a(95704).env.NEXT_PUBLIC_FIREBASE_MEASUREMENTID||void 0},c=(0,r.Wp)(s);var _=a(49231),E=a(95704);let d={ENABLED:!0,SERVICE:E.env.NEXT_PUBLIC_FIREBASE_SERVICE,SERVICE_ACCESS_TOKEN:E.env.NEXT_PUBLIC_FIREBASE_ACESSTOKEN,METHODS:{SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",REFRESH:"refreshsubscription"},TOPIC_NAME:E.env.NEXT_PUBLIC_FIREBASE_TOPICNAME,VAPIDKEY:E.env.NEXT_PUBLIC_FIREBASE_VAPIDKEY,FCM_CONFIG:{apiKey:E.env.NEXT_PUBLIC_FIREBASE_APIKEY,authDomain:E.env.NEXT_PUBLIC_FIREBASE_AUTHDOMAIN,projectId:E.env.NEXT_PUBLIC_FIREBASE_PROJECTID,storageBucket:E.env.NEXT_PUBLIC_FIREBASE_STORAGEBUCKET,messagingSenderId:E.env.NEXT_PUBLIC_FIREBASE_MESSAGINGSENDERID,appId:E.env.NEXT_PUBLIC_FIREBASE_APPID}};function l(){let{fcmToken:e}=(()=>{let[e,t]=(0,i.useState)(""),[a,n]=(0,i.useState)("");return(0,i.useEffect)(()=>{(async()=>{try{if("serviceWorker"in navigator){let e=(0,o.dG)(c),a=await Notification.requestPermission();if(n(a),(0,_.f0)({action:"notification_permission",category:"push_notifications",label:a,value:"",params:{permission_status:a,timestamp:new Date().toISOString(),user_agent:navigator.userAgent}}),"granted"===a){let a=await (0,o.gf)(e,{vapidKey:d.VAPIDKEY});a?(t(a),(0,_.f0)({action:"fcm_token_generated",category:"push_notifications",label:"success",value:"",params:{token_length:a.length,timestamp:new Date().toISOString()}})):(console.log("No registration token available. Request permission to generate one."),(0,_.f0)({action:"fcm_token_failed",category:"push_notifications",label:"no_token",value:"",params:{timestamp:new Date().toISOString()}}))}}}catch(e){console.error("An error occurred while retrieving token:",e),(0,_.f0)({action:"fcm_token_error",category:"push_notifications",label:"error",value:"",params:{error_message:e instanceof Error?e.message:"Unknown error",timestamp:new Date().toISOString()}})}})()},[]),{fcmToken:e,notificationPermissionStatus:a}})();return(0,i.useEffect)(()=>{if("serviceWorker"in navigator){let e=(0,o.dG)(c),t=(0,o.xD)(e,e=>{var t,a;console.log("Foreground push notification received:",e),(0,_.f0)({action:"notification_received",category:"push_notifications",label:"foreground",value:"",params:{notification_title:(null==(t=e.notification)?void 0:t.title)||"",notification_body:(null==(a=e.notification)?void 0:a.body)||"",has_data:e.data?"yes":"no",timestamp:new Date().toISOString()}})}),a=e=>{"NOTIFICATION_CLICK"===e.data.type&&(0,_.f0)({action:"notification_clicked",category:"push_notifications",label:"background",value:"",params:{clicked_url:e.data.data.url,notification_title:e.data.data.title,timestamp:e.data.data.timestamp}})};return navigator.serviceWorker.addEventListener("message",a),()=>{t(),navigator.serviceWorker.removeEventListener("message",a)}}},[]),(0,n.jsx)("div",{})}},49231:(e,t,a)=>{a.d(t,{JR:()=>n,f0:()=>i});let n=e=>{{let e=window;e.dataLayer=e.dataLayer||[],e.dataLayer.push({event:"pageview-sbt"})}},i=e=>{let{action:t,category:a,label:n,value:i,params:o}=e,r=window;Array.isArray(r.dataLayer)&&r.dataLayer.push({event:"custom_event",event_action:t,event_category:a,event_label:n,...void 0!==i&&{event_value:i},...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.