PageSourceSearch

https://www.newcastleherald.com.au/assets/_next/static/chunks/2085.abfb0101e6804251.js

js newcastleherald.com.au collected 2026-10-02 02:59:28 UTC 3,543 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2085],{46253:(e,t,l)=>{l.d(t,{A:()=>u});var n=l(60143),o=l(29722),s=l(45159),i=l(62715),r=l(68919),d=l(16707),a=l(68075);function u(e){var t=e.isRHC,l=void 0!==t&&t,u=(0,i.GV)(function(e){return e.piano.user}),c=(0,a.vu)(),m=(0,i.GV)(function(e){return e.piano.hasAccess}),f=(null==u?void 0:u.email)||"",x=a.tM.map(function(e){return(0,a.hQ)(c,e)}).find(function(e){return void 0!==e}),h=(null==x?void 0:x.id)||"",b=!(null==x?void 0:x.subscriberOnly)||m,p=(0,a.XY)(h,x),v=p.buttonClicked,g=p.handleClick,y=p.isSubscribed,C=p.setButtonClicked,N=p.setEnabled,w=p.setIsSubscribed;return((0,a.Qs)(function(){return N(h,!0)},{groupId:h}),(0,s.useEffect)(function(){v&&f&&b&&(C(!1),(0,a.D)((0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("p",{className:"text-sm font-medium leading-5 text-green-800",children:"".concat(null==x?void 0:x.name," added to")}),(0,n.jsx)("p",{className:"text-sm font-medium leading-5 text-green-800",children:f})]})),w(!0))},[v,f,b,x,C,w]),(0,s.useEffect)(function(){f&&(0,d.Ix)().then(function(e){(null==e?void 0:e.subscribedGroups[h])&&w(!0)}).catch(console.error)},[f,h,w]),!x||y)?null:(0,n.jsxs)("div",{className:(0,o.A)("relative mb-4 flex flex-col items-center space-y-4 border-b border-gray-300 pb-6 text-center text-gray-900",{"border-t pt-6":l}),children:[(0,n.jsx)("h2",{className:(0,o.A)("text-xl font-bold",{"md:text-2xl md:font-extrabold":!l}),children:"Subscribe to the What's On Newsletter"}),(0,n.jsx)("div",{className:(0,o.A)("text-xs",{"md:w-3/4 md:text-base":!l,"px-2.5 md:text-sm":l}),children:"Stay in the know! Get a weekly roundup of local events, community notices, and community stories—delivered straight to your inbox."}),(0,n.jsx)(r.A,{bgColor:"bg-red-600",buttonClassName:"md:px-8 md:py-6",className:"relative",fontSize:"text-sm md:text-base",hoverColor:"hover:bg-red-700 active:bg-red-700",onClick:g,text:"Add me to the newsletter",textColor:"text-white font-medium leading-6",type:"button"})]})}},62085:(e,t,l)=>{l.r(t),l.d(t,{default:()=>s});var n=l(60143);l(45159);var o=l(46253);function s(){return(0,n.jsx)(o.A,{isRHC:!0})}},68919:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(76367),o=l(30694),s=l(22514),i=l(60143),r=l(29722),d=l(26748);function a(e){var t=e.bgColor,l=e.buttonClassName,a=e.className,u=e.desktopFullWidth,c=e.fontSize,m=e.height,f=void 0===m?"md:h-10 lg:h-10":m,x=e.hoverColor,h=e.mobileFontSize,b=e.mobileFullWidth,p=e.paddingX,v=void 0===p?"px-4":p,g=e.ref,y=e.text,C=e.textColor,N=(0,s._)(e,["bgColor","buttonClassName","className","desktopFullWidth","fontSize","height","hoverColor","mobileFontSize","mobileFullWidth","paddingX","ref","text","textColor"]),w="href"in N&&N.href&&(0,d.i9)(N.href)&&void 0!==N.target&&"_self"!==N.target;return(0,i.jsx)("div",{className:(0,r.A)("flex md:flex-row md:justify-end lg:flex-row lg:justify-end",{"md:w-full":u,"w-full":b},a),ref:g,children:"href"in N?(0,i.jsx)("a",(0,o._)((0,n._)({className:(0,r.A)("flex items-center justify-center","rounded-md",t,f,x,l,{"md:w-auto":!u,"md:w-full":u,"w-full":b}),rel:w?"noopener":void 0},N),{children:(0,i.jsx)("span",{className:(0,r.A)("font-medium leading-6 md:py-2 lg:py-2",c,v,C,{"py-1":!b,"py-2":b,"text-xs":h}),children:y})})):(0,i.jsx)("button",(0,o._)((0,n._)({className:(0,r.A)("flex items-center justify-center","rounded-md",t,f,x,l,{"md:w-auto":!u,"md:w-full":u,"w-full":b})},N),{children:(0,i.jsx)("span",{className:(0,r.A)("py-2 font-medium leading-6",c,v,C,{"text-xs":h}),children:y})}))})}}}]);

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.