PageSourceSearch

https://static.newsbreak.com/local/_next/static/chunks/pages/newsletter/referral/[rid]-4e06f84c5eea8a3b.js

js newsbreak.com collected 2026-09-24 08:25:28 UTC 17,049 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7147],{98710:function(e,r,t){"use strict";t.d(r,{Z:function(){return h}});var n=t(95235),o=t(82269),i=t(79025),c=t(6277),a=t(96577),l=t.n(a),s=t(2784),u=t(94758),f=t(5632),d=t(52322);function b(e){var r=e.disableSticky,t=e.disableNavBar,n=e.logo,o=e.activeId,i=e.bgColor,a=(0,f.useRouter)(),b=(0,s.useMemo)((function(){return n||(0,d.jsx)("div",{className:"relative h-12 w-28 md:w-44",children:(0,d.jsx)(l(),{src:"/newsbreak-full-colored.svg",alt:"NewsBreak",layout:"fill",priority:!0})})}),[n]),p=(0,s.useMemo)((function(){var e=a.asPath.startsWith("/manage/newsletter-v2"),n=[{id:"local",name:"Local Newsletter",href:"/newsletter"},{id:"national",name:"National Headlines",href:"/newsletter/national"},{id:"manage",name:"Management",href:"/manage/newsletter-v2"}].filter((function(r){var t=r.id;return e?"manage"==t:"manage"!=t}));return r||t?null:(0,d.jsx)("div",{className:"flex gap-4 justify-center md:justify-end pb-2 md:pb-0",children:n.map((function(e){return o!==e.id?(0,d.jsx)(u.Z,{href:e.href,prefetch:!1,children:(0,d.jsx)("a",{className:"py-1 whitespace-nowrap","aria-label":e.href,children:e.name})},e.name):(0,d.jsx)("div",{className:"py-1 whitespace-nowrap border-b-red-primary border-b-2",children:e.name})}))})}),[o,r,a]);return(0,d.jsx)("nav",{className:(0,c.Z)("bg-gray-50 z-40",i||"bg-gray-50",t&&"hidden",!r&&"sticky top-0"),children:(0,d.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between md:items-center max-w-6xl mx-auto px-4 md:py-2 md:px-8",children:[b,p]})})}var p=t(41469),m=["color"];function y(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 g(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?y(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function h(e){var r=e.color,t=(0,o.Z)(e,m);return(0,d.jsxs)(i.Z,{color:r||"red",children:[(0,d.jsx)(b,g({},t)),(0,d.jsx)("div",{className:(0,c.Z)("min-h-screen min-w-screen font-ne
1wsletter pb-40 md:pb-32 lg:pb-48"),children:e.children}),(0,d.jsx)(p.x7,{})]})}},10870:function(e,r,t){"use strict";t.d(r,{Z:function(){return d}});var n=t(95235),o=t(82269),i=t(2784),c=t(79025),a=t(6277),l=t(52322),s=["noLeftRounded","bgColor","color","borderColor","bordered"];function u(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?u(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function d(e){var r=(0,i.useContext)(c.N),t=e.noLeftRounded,n=e.bgColor,u=e.color,d=e.borderColor,b=e.bordered,p=f(f({},(0,o.Z)(e,s)),{},{className:e.className||(0,a.Z)(n?"bg-".concat(n):r.button.bgColor,u?"text-".concat(u):r.button.color,b&&"border border-".concat(d),"font-medium text-md lg:text-lg py-2 px-3 lg:px-8",t?"rounded-r-md border-l-0":"rounded-md",e.disabled&&"disabled opacity-60")});return(0,l.jsx)("button",f({},p))}},94758:function(e,r,t){"use strict";t.d(r,{Z:function(){return b}});var n=t(95235),o=t(82269),i=t(39097),c=t.n(i),a=t(5632),l=t(2784),s=t(52322),u=["href","children"];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 d(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,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 b(e){var r=e.href,t=e.children,n=(0,o.Z)(e,u),i=(0,a.useRouter)(),f=(0,l.useMemo)((function(){if(i.query.rid){if("string"===typeof r)return{pathname:r,query:{rid:i.query.rid}};if("object"===typeof r&&("object"===typeof r.query||"undefined"===typeof r.query))return d(d({},r),{},{query:d(d({},r.query),{},{rid:i.query.rid})})}return r}),[r,i]);return(0,s.jsx)(c(),d(d({href:f},n),{},{children:t}))}},79025:function(e,r,t){"use strict";t.d(r,{N:function(){return c}});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"}}},c=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)(c.Provider,{value:n,children:r})}},69958:function(e,r,t){"use strict";t.d(r,{Z:function(){return p}});var n=t(20406),o=t(82269),i=t(95235),c=t(28526),a=t.n(c),l=t(2784),s=t(58333),u=t(34126),f=["kafka","kafkaTopic","exps"];function d(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?d(Object(t),!0).forEach((function(r){(0,i.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function p(){var e=(0,l.useCallback)((function(e,r){var t=(0,u.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,c=n.exps,a=(0,o.Z)(n,f);(0,s.og)(i,b(b({},a),{},{exps:null===c||void 0===c?void 0:c.split(","),event_name:e}))}else(0,s.VU)(e,n)}),[]),r=function(){var r=(0,n.Z)(a().mark((function r(t,n){return a().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,l.useCallback)(function(){var r=(0,n.Z)(a().mark((function r(t){return a().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)(a().mark((function r(t){return a().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)}}(),c=(0,l.useCallback)(function(){var r=(0,n.Z)(a().mark((function r(t){return a().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]),d=function(){var r=(0,n.Z)(a().mark((function r(){return a().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)}}(),p=(0,l.useCallback)(function(){var r=(0,n.Z)(a().mark((function r(t,n){var o;return a().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:d,logModalOpen:i,logModalShown:c,logKafka:p}}},48489:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSP:function(){return B},default:function(){return M}});var n=t(95235),o=t(81333),i=t(2784),c=t(80794),a=t(41469),l=t(8799),s=t(6277),u=t(52742),f=t(52322);function d(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){var r=e.list;return r.length<1?(console.warn("Accordion: No items in list"),(0,f.jsx)("div",{})):(0,f.jsx)("div",{children:r.map((function(e){return(0,f.jsx)(p,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};
1r%2?d(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({},e),e.id)}))})}function p(e){var r=e.id,t=e.title,n=e.body,o=e.noBottomBorder,c=(0,i.useState)(!1),a=c[0],l=c[1];return(0,f.jsxs)("div",{id:r,className:(0,s.Z)("border-neutral-200 bg-white",!o&&"border-b"),onClick:function(){l((function(e){return!e}))},children:[(0,f.jsx)("h4",{children:(0,f.jsxs)("button",{className:"relative flex justify-between items-center w-full font-bold text-left py-5",children:[t,a?(0,f.jsx)(u.ALZ,{size:16}):(0,f.jsx)(u.kWQ,{size:16})]})}),(0,f.jsx)("div",{id:"".concat(r,"-body"),"aria-labelledby":r,className:(0,s.Z)(!a&&"hidden"),children:(0,f.jsx)("div",{className:"pt-2 pb-5",children:n})})]})}var m=t(98710),y=t(82269),g=["bgColor","fontSize","fontColor","opacity","noBorder","className"];function h(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}var j=i.forwardRef((function(e,r){var t=e.bgColor,o=void 0===t?"gray-lighter":t,i=e.fontSize,c=void 0===i?"sm":i,a=e.fontColor,l=void 0===a?"black":a,u=e.opacity,d=void 0===u?"60":u,b=e.noBorder,p=e.className,m=(0,y.Z)(e,g);return(0,f.jsx)("input",function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?h(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({className:(0,s.Z)("bg-".concat(o," text-").concat(c," text-").concat(l," opacity-").concat(d," w-full px-3 py-2 rounded-lg ").concat(p),!b&&"border border-gray-200"),ref:r},m))})),x=t(10870),w=t(96577),O=t.n(w);function v(e){var r=e.count,t=(0,i.useMemo)((function(){return r>0?{title:"You just cracked ".concat(r," referrals!"),subtitle:"Thanks for sharing.",image:"/newsletter/referral_number.png"}:{title:"No successful referrals yet.",subtitle:"Start referring now!",image:"/newsletter/referral_none.png"}}),[r]);return(0,f.jsx)("section",{className:"border-gray-200 border rounded-lg",children:(0,f.jsxs)("div",{className:"flex max-w-sm lg:max-w-md mx-auto min-h-[156px]",children:[(0,f.jsxs)("div",{className:"ml-5 lg:ml-8 flex flex-col justify-center",children:[(0,f.jsx)("span",{className:"font-extrabold text-xl lg:text-3xl",children:t.title}),(0,f.jsx)("p",{className:"mt-1 text-sm lg:text-xl",children:t.subtitle})]}),(0,f.jsx)("div",{className:"shrink-0",children:(0,f.jsx)(O(),{objectFit:"contain",src:t.image,alt:"",width:"156px",height:"156px"})})]})})}var k=t(80314),P=t(33580),C=t(8347),N=t(90360),Z=t(47480),S=t(89301),D="Subscribe to NewsBreak Newsletters";function E(e){var r=e.shareUrl,t=e.onSocialClick,n=(0,i.useMemo)((function(){return{fill:"white",stroke:"#E3E3E3"}}),[]);return(0,f.jsxs)("section",{children:[(0,f.jsx)("h2",{className:"mb-3 text-base font-semibold",children:"Share on social media:"}),(0,f.jsxs)("div",{className:"flex justify-around px-8 max-w-xs mx-auto",children:[(0,f.jsx)(k.Z,{url:r,quote:D,onClick:function(){return t("facebook")},children:(0,f.jsx)(P.Z,{round:!0,size:36,bgStyle:n,iconFillColor:"black"})}),(0,f.jsx)(C.Z,{url:r,title:D,onClick:function(){return t("twitter")},children:(0,f.jsx)(N.Z,{round:!0,size:36,bgStyle:n,iconFillColor:"black"})}),(0,f.jsx)(Z.Z,{url:r,title:D,onClick:function(){return t("reddit")},children:(0,f.jsx)(S.Z,{round:!0,size:36,bgStyle:n,iconFillColor:"black"})})]})]})}var _=t(69958);function q(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 R(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};
1r%2?q(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var B=!0;function M(e){var r=e.referUrl,t=e.count,n=e.logMeta,s=e.rid,u=(0,c.Z)(),d=(0,o.Z)(u,2),b=d[0],p=d[1],m=(0,_.Z)().logKafka;(0,i.useEffect)((function(){b.error&&a.ZP.error(b.error.message)}),[b]),(0,i.useEffect)((function(){m("emailReferralPageView",R({referUrl:r,email_id:s},n))}),[m,r,s,n]);var y=(0,i.useCallback)((function(e){m({twitter:"emailReferralTwitterShareClick",facebook:"emailReferralFacebookShareClick",reddit:"emailReferralRedditShareClick"}[e],R({referUrl:r,email_id:s},n))}),[m,r,s,n]);return(0,f.jsx)("div",{className:"max-w-6xl mx-auto text-md",children:(0,f.jsxs)("div",{className:"px-5 py-7",children:[(0,f.jsx)("h1",{className:"text-2xl font-black",children:"Share this newsletter"}),(0,f.jsx)("span",{className:"text-md",children:"Choose from the options below."}),(0,f.jsxs)("div",{className:"flex flex-col mb-7 lg:flex-row lg:gap-20",children:[(0,f.jsxs)("div",{className:"flex flex-col gap-5 mt-5 grow",children:[(0,f.jsx)(z,{value:r,onClick:function(){p(r),m("emailReferralCopyBtnClick",R({referUrl:r,email_id:s},n)),(0,a.ZP)("Referral link copied!",{icon:(0,f.jsx)(l.N9r,{color:"#fff",fill:"#242424"}),style:{borderRadius:"8px",background:"#fff"},position:"bottom-center",duration:1e3})}}),(0,f.jsx)(E,{shareUrl:r,onSocialClick:y})]}),(0,f.jsx)("div",{className:"mt-5 shrink",children:(0,f.jsx)(v,{count:t})})]}),(0,f.jsx)(F,{}),(0,f.jsx)(I,{})]})})}function I(){return(0,f.jsx)("section",{className:"text-sm text-black opacity-60 pt-3 border-t border-gray-dark",children:"More questions? Email us at [email protected]"})}function z(e){var r=e.value;return(0,f.jsxs)("section",{children:[(0,f.jsx)("h2",{className:"text-base font-semibold mb-3",children:"Copy link:"}),(0,f.jsxs)("div",{className:"flex",children:[(0,f.jsx)(j,{id:"referral",disabled:!0,value:r,noBorder:!0}),(0,f.jsx)(x.Z,{bgColor:"black",onClick:e.onClick,children:"Copy"})]})]})}function F(e){return(0,f.jsxs)("div",{children:[(0,f.jsx)("h3",{children:"FAQs"}),(0,f.jsx)(b,{list:[{id:"faq-1",title:"What is the referral program?",body:"The referral program is a way for newsletter subscribers to share articles with anyone who might be interested via a unique referral link."},{id:"faq-2",title:"How does it work?",body:"It's easy. Just copy the unique referral link (if you choose email or social media this is done automatically) and share. When someone signs up for the newsletter through that link, we'll know and credit your account."},{id:"faq-3",title:"How do I check how many referrals I have?",body:"You will see the number of successful referrals displayed just above this FAQ section. If you don't see anything, that means you haven't made any successful referrals yet."},{id:"faq-4",title:"Is there a reward program?",body:"While we currently do not offer any prizes, we do save and document all successful referrals with an eye toward a tangible reward program in the future. We're working on it."}]})]})}M.getLayout=function(e){return(0,f.jsx)(m.Z,{color:"default",bgColor:"bg-gray-newsletterBg",disableSticky:!0,children:e})}},42675:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/newsletter/referral/[rid]",function(){return t(48489)}])}},function(e){e.O(0,[2445,8917,3700,9774,2888,179],(function(){return r=42675,e(e.s=r);var r}));var r=e.O();_N_E=r}]);

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.