PageSourceSearch

https://static.newsbreak.com/local/_next/static/chunks/1163-b697d10ade5a7447.js

js newsbreak.com collected 2026-10-01 08:35:20 UTC 9,517 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1163],{79025:function(e,r,t){t.d(r,{N:function(){return a}});var n=t(2784),o=t(52322),i={red:{primary:{color:"text-red-primary",bgColor:"bg-gray-50"},secondary:{color:"text-blue-800",bgColor:"bg-black"},button:{color:"text-white",bgColor:"bg-red-primary"}},default:{primary:{color:"text-black",bgColor:"bg-gray-50"},secondary:{color:"text-blue-darker",bgColor:"bg-black"},button:{color:"text-white",bgColor:"bg-red-primary"}},green:{primary:{color:"text-green-800",bgColor:"bg-gray-50"},secondary:{color:"text-green-200",bgColor:"bg-green-800"},button:{color:"text-white",bgColor:"bg-green-800"}},blue:{primary:{color:"text-brand-primary",bgColor:"bg-gray-50"},secondary:{color:"text-blue-300",bgColor:"bg-green-800"},button:{color:"text-white",bgColor:"bg-brand-primary"}}},a=n.createContext(i.default);r.Z=function(e){var r=e.children,t=e.color,n="string"===typeof t?i[t]:t;return(0,o.jsx)(a.Provider,{value:n,children:r})}},69958:function(e,r,t){t.d(r,{Z:function(){return d}});var n=t(20406),o=t(82269),i=t(95235),a=t(28526),c=t.n(a),u=t(2784),s=t(58333),l=t(34126),p=["kafka","kafkaTopic","exps"];function f(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function b(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?f(Object(t),!0).forEach((function(r){(0,i.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function d(){var e=(0,u.useCallback)((function(e,r){var t=(0,l.parse)(window.location.search),n=b(b({platform:2,osName:window.nbOsName,pageId:window.nbPageId},t),r);if(null!==n&&void 0!==n&&n.kafka&&null!==n&&void 0!==n&&n.kafkaTopic){n.kafka;var i=n.kafkaTopic,a=n.exps,c=(0,o.Z)(n,p);(0,s.og)(i,b(b({},c),{},{exps:null===a||void 0===a?void 0:a.split(","),event_name:e}))}else(0,s.VU)(e,n)}),[]),r=function(){var r=(0,n.Z)(c().mark((function r(t,n){return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e("newsletterDialogFeedback",b({result:t?"success":"error"},n));case 1:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}(),t=(0,u.useCallback)(function(){var r=(0,n.Z)(c().mark((function r(t){return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e("newsletterDialogInput",{field:t});case 1:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),[e]),i=function(){var r=(0,n.Z)(c().mark((function r(t){return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e("newsletterModalOpen",{url:window.location.href,name:t});case 1:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),a=(0,u.useCallback)(function(){var r=(0,n.Z)(c().mark((function r(t){return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e("newsletterDialogShown",t);case 1:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),[e]),f=function(){var r=(0,n.Z)(c().mark((function r(){return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e("newsletterDialogSubmit");case 1:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),d=(0,u.useCallback)(function(){var r=(0,n.Z)(c().mark((function r(t,n){var o;return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=b(b({},n),{},{deep_link:void 0}),e(t,b({kafka:!0,kafkaTopic:"email_events"},o));case 2:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}(),[e]);return{log:e,logFeedback:r,logInputClick:t,logSubmitButtonClick:f,logModalOpen:i,logModalShown:a,logKafka:d}}},62372:function(e,r,t){t.d(r,{Z:function(){return d}});var n=t(95235),o=t(82269),i=t(20406),a=t(28526),c=t.n(a),u=t(69958),s=t(84820),l=t(34126),p=["key","topic"];function f(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function b(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};
1r%2?f(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function d(e){var r=(0,u.Z)();function t(){return(t=(0,i.Z)(c().mark((function t(n,i){var a,u,f,d,y;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=i.key,u=i.topic,f=(0,o.Z)(i,p),d=(0,l.parse)(window.location.search),t.next=4,(0,s.yR)("",n,b(b(b({},f),{},{pageId:window.nbPageId||void 0},e),{},{media_source:e.mediaSource,subs_key:a,subs_topic:u,email:n,zip:"local"===u&&a?a:"",deep_link:window.location.href,frequency:(null===i||void 0===i?void 0:i.frequencyId)||"daily",event_name:(null===i||void 0===i?void 0:i.event_name)||"",rid:(null===d||void 0===d?void 0:d.rid)||void 0}));case 4:return y=t.sent,r.logFeedback(0===y.ok,{subs_key:a,subs_topic:u}),t.abrupt("return",y);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function n(){return(n=(0,i.Z)(c().mark((function e(t,n){var o,i,a;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.topic,i=n.key,r.log("newsletterUnSubApiCall",{subs_key:i,subs_topic:o}),e.next=4,(0,s.Do)(t,{subs_key:i,subs_topic:o,email:t,zip:"local"===o&&i?i:""});case 4:return a=e.sent,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function a(){return(a=(0,i.Z)(c().mark((function r(t,n){var o;return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,s.qB)(t,n,e.mediaSource||"manage_page");case 2:return o=r.sent,r.abrupt("return",o);case 4:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function f(){return(f=(0,i.Z)(c().mark((function e(t){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.log("newsletterUnsubAllApiCall",{hashed_email:t}),e.next=3,(0,s.D2)(t);case 3:return n=e.sent,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return[function(e,r){return t.apply(this,arguments)},function(e,r){return n.apply(this,arguments)},function(e,r){return a.apply(this,arguments)},function(e){return f.apply(this,arguments)}]}},84820:function(e,r,t){t.d(r,{yR:function(){return b},D2:function(){return v},Do:function(){return d},qB:function(){return y}});var n=t(95235),o=(t(28526),t(87742)),i=t(34126),a=t(48834).Buffer;function c(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function u(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?c(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var s="emailUnsubLink";function l(e){return e?"undefined"!==typeof a?a.from(e,"base64").toString("utf-8"):atob(e):""}function p(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function f(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?p(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var b=function(e,r,t,n){var a=(0,i.parse)(window.location.search),c=f(f({message_id:null===a||void 0===a?void 0:a.message_id,exps:null===a||void 0===a?void 0:a.exps,media_source:"emailSubLink"===(null===a||void 0===a?void 0:a.event_name)?"newsletter_lp_email":(null===a||void 0===a?void 0:a.mediaSource)||(null===t||void 0===t?void 0:t.media_source)||""},t),{},{email:r,platform:2});return(0,o.d8)("/api/proxy/v2/users/email",f({body:{channelId:e,email:r,newReq:c},withError:!0},n))},d=function(e,r){var t=function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(null===e||void 0===e?void 0:e.event_name)===s;return u(u(u({},e),{},{email:r,topic:t.subs_topic},n&&{subs_key:"",meta:l((null===e||void 0===e?void 0:e.meta)||"")}),!n&&{subs_topic:t.subs_topic,subs_key:t.subs_key})}((0,i.parse)(window.location.search),e,r);return(0,o.d8)("/api/email".concat("/api/v2/unsubscribe"),{body:t})},y=function(e,r,t){var n=(0,i.parse)(window.location.search),a=[];r&&a.push(r);var c=n.email_id;c||(c=n.emailId);var u={email_id:c,source_info:{media_source:t,message_id:n.message_id,deep_link:window.location.href,tag:n.tag,topic:n.topic},updated_location:{zipcode:""!=e?e:null},updated_subscriptions:a};return(0,o.d8)("/api/email/api/v2/update_user_subscription_configurations",{body:u})},v=function(e){return(0,o.mR)("/api/email/api/v2/unsubscribe_all?email=".concat(encodeURIComponent(e)))}}}]);

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.