PageSourceSearch

https://anthonyalbanese.com.au/_next/static/chunks/d2042d25e274c28…1c91689bb404de8ea5e.eaf6ac7a5b15494d312d.js

js anthonyalbanese.com.au collected 2026-10-02 04:26:00 UTC 16,425 bytes, 1 lines download raw bytes

1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[10],{"2gSL":function(e,t,o){"use strict";o.d(t,"a",(function(){return T}));var i=o("HALo"),n=o("cpVT"),r=o("q1tI"),a=o.n(r),s=o("vJKn"),l=o.n(s),d=o("rg98"),c=o("Weur"),p=o("qWyU"),u=o("we/t"),h=o("BMxC"),f=o("qoM+"),g=o("CIUX"),m=a.a.createElement;var x=function(e){e.setCTA;var t=e.isDesktop,o=void 0!==t&&t,n=e.formHeading,a=e.thanksMessage,s=e.thanksHeading,x={inputStyle:{backgroundColor:"transparent",borderColor:"white",color:"white"}},v=Object(r.useState)(""),b=v[0],w=v[1],k=Object(r.useState)(""),y=k[0],S=k[1],C=Object(r.useState)(""),A=C[0],O=C[1],j=Object(r.useState)(""),I=j[0],H=j[1],T=Object(r.useState)(!1),z=T[0],E=T[1],M=Object(r.useState)(!1),N=M[0],P=M[1],W=function(){return""!==b&&!!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(b)},F=function(){return""!==y},_=function(){return""!==A},q=function(){return""!==I&&I.length>3},B=Object(r.useState)({email:W(),firstName:F(),lastName:_(),postcode:q()}),L=B[0],U=B[1];Object(r.useEffect)((function(){U({email:W(),firstName:F(),lastName:_(),postcode:q()})}),[y,b,A,I]);var V=function(){var e=Object(d.a)(l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(W()&&F()&&_())){e.next=11;break}return E(!0),e.next=4,fetch("/api/signup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phone:"",Q1:y,Q2:A,Q3:I,Q4:b})});case 4:return t=e.sent,e.next=7,t.json();case 7:e.sent.success?P(!0):alert("Something went wrong. Please try again."),e.next=12;break;case 11:alert("Please enter correct details to complete the form");case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return N?m(c.a,{direction:"column",maxWidth:"550px"},m(p.a,{as:"h2",fontWeight:"400",fontSize:["2rem","2rem","2.5rem"],lineHeight:["40px","40px","50px"],color:"white",mb:"1.6rem"},s),m("p",{style:{width:"100%",maxWidth:"420px",fontSize:"24px",lineHeight:"32px"}},a)):m(u.a,{maxWidth:"550px"},m(p.a,o?{as:"h2",fontWeight:"700",fontSize:"32px",lineHeight:"40px",color:"white",mb:"20px",textAlign:"center",width:"100%"}:{as:"h2",fontWeight:"700",fontSize:"32px",lineHeight:"40px",color:"red",mb:"32px",textAlign:"left"},n),m(c.a,{direction:["column","row"],mb:[0,"7px"]},m(h.a,{width:["100%","50%"],as:"section",pr:["0px","22px"],mb:["12px","8px"]},m(f.b,Object(i.a)({placeholder:"James",label:"First Name",id:"firstName",value:y},o&&x,{isValid:L.firstName,onChange:function(e){return S(e.target.value)},errorMessage:"This field is required",onClick:function(){return""!==y&&setIsClicked(!0)}}))),m(h.a,{width:["100%","50%"],as:"section",mb:["12px","8px"]},m(f.b,Object(i.a)({placeholder:"Smith",label:"Last Name",id:"lastName",value:A},o&&x,{isValid:L.lastName,errorMessage:"This field is required",onChange:function(e){return O(e.target.value)}})))),m(c.a,{direction:["column","row"],mb:["7px","14px"]},m(h.a,{width:["100%","50%"],as:"section",pr:["0px","22px"],mb:["12px","8px"]},m(f.b,Object(i.a)({label:"Email",id:"email",placeholder:"[email protected]",isValid:L.email},o&&x,{value:b,errorMessage:"Enter a valid email address",onChange:function(e){return w(e.target.value)}}))),m(h.a,{width:["100%","50%"],as:"section",mb:["12px","8px"]},m(f.b,Object(i.a)({label:"Postcode",id:"postcode",placeholder:"1234",value:I},o&&x,{isValid:L.postcode,errorMessage:"Please enter a valid postcode",onChange:function(e){return H(e.target.value)}})))),m(g.c,{onClick:V,w:"100%"},z?"LOADING":"SIGN UP"))},v=o("pboS"),b=o("sK1y"),w=o("bQFp"),k=o("ma3e"),y=(o("0lZZ"),o("/Bo8")),S=a.a.createElement,C=function(e){return S(h.a,{onClick:e.onClick,width:"20px",height:"20px",position:"relative"},S(h.a,{position:"absolute",top:"10px",bg:"black",style:{width:"20.23px",height:"5.03px",transform:"rotate(45deg)"}}),S(h.a,{top:"10px",position:"absolute",bg:"black",style:{width:"20.23px",height:"5.03px",transform:"rotate(-45deg)"}}))},A=function(e){var t=e.setCTA,o=e.closeMessage;return S(v.a,{onClick:function(){return t(!1)},mt:"20px"},S(c.a,null,S(h.a,{as:k.a,size:["16px"],color:"#FEBB36",mr:"8px",mt:"4px"}),S(b.a,{fontSize:"16px",lineHeight:"24px"},S("b",null,o))))},O=["450px","650px"],j=function(e){var t=e.backgroundImage,o=e.showForm,i=e.linksHeading,r=e.links,a=e.closeMessage,s=e.formHeading,l=e.thanksHeading,d=e.thanksMessage,u=e.setCTA;return S(h.a,{display:["flex","flex","none"],flexDirection:"column",position:"fixed",zIndex:"1011",overflowY:"scroll",width:"100%",height:"100vh",top:0,left:0},S(h.a,{display:["flex","flex","none"],flexDirection:"column"},S(h.a,{position:"relative",width:"100%",height:O,minHeight:O},S(h.a,{width:"100%",height:O,backgroundImage:"url('".concat(t,"')"),backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",position:"absolute",zIndex:100}),S(h.a,{height:O,style:{backgroundColor:"rgba(28, 34, 38, 0.5)",position:"absolute",top:0,left:0,width:"100%",mixBlendMode:"multiply",zIndex:101}}),S(h.a,{width:"100%",paddingTop:["24px"],paddingLeft:["16px"],zIndex:103,position:"absolute",color:"white",top:"0",left:"0",display:"flex",height:O,boxShadow:"inset 0px 0px 0px 10px #E43942",overflow:"hidden"},S(h.a,{height:O,width:"100%",position:"relative"},S(h.a,{style:{width:"168px",position:"absolute",left:"15px",top:"10px",zIndex:102}},S(w.a,{src:"/logo-white.png",width:"100%",mb:4})),S(h.a,{style:Object(n.a)({width:"168px",position:"absolute",left:"15px",bottom:"30px",zIndex:104},"width","100%")},S(A,{closeMessage:a,setCTA:u}))))),S(h.a,{bg:"cream",height:"100%",p:"32px 16px"},S(h.a,{width:"100%",margin:["0 auto","0px auto 0px"],maxWidth:["none","400px","auto"]},o?S(x,{setCTA:u,formHeading:s,thanksMessage:d,thanksHeading:l}):S(h.a,null,S(p.a,{as:"h2",fontWeight:"700",fontSize:"32px",lineHeight:"40px",color:"red",mb:"32px",textAlign:"left"},i),S(c.a,{direction:"column"},r.map((function(e){var t=e.text,o=e.url;return S(v.a,{href:o},S(g.c,{bg:"yellow",h:"59px",w:"100%",rounded:0,mb:"16px"},t))})))))))," ")},I=function(e){var t=e.backgroundImage,o=void 0===t?"/stock/Photo-008.jpg":t;e.showForm;return S(a.a.Fragment,null,S(h.a,{width:"100%",height:"100vh",backgroundImage:"url('".concat(o,"')"),backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",position:"fixed",zIndex:1}),S(h.a,{height:"100vh",style:{backgroundColor:"rgba(28, 34, 38, 0.5)",position:"absolute",top:0,left:0,width:"100%",height:"100%",mixBlendMode:"multiply",zIndex:2}}),S(h.a,{height:"100vh",style:{backgroundColor:"transparent",position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:3,boxShadow:"inset 0px 0px 0px 10px #E43942"}}),S(h.a,{style:{width:"128px",float:"left",left:"25px",top:"25px",position:"fixed",zIndex:5}},S(w.a,{src:"/logo-white.png",width:"100%",mb:4})))},H=function(e){var t=e.backgroundImage,o=e.showForm,n=e.linksHeading,r=e.links,a=(e.CTAEnabled,e.closeMessage),s=e.formHeading,l=e.thanksHeading,d=e.thanksMessage,u=e.setCTA;
1return S(c.a,Object(i.a)({zIndex:"1000",overflow:"hidden",width:"100%",height:"100vh",position:"fixed",top:0,left:0,display:["none","none","flex"]},!o&&{justifyContent:"flex-end"},{style:{alignItems:"center"}}),S(I,{backgroundImage:t,showForm:o}),S(c.a,Object(i.a)({w:"533px",h:"524px",direction:"column",alignItems:"center",color:"white"},o?{ml:"5rem"}:{mr:"5rem"},{zIndex:4}),S(c.a,{mt:"60px",bg:"rgba(28, 34, 38, 0.7)",p:"40px 64px"},o?S(x,{setCTA:u,formHeading:s,thanksMessage:d,thanksHeading:l,isDesktop:!0}):S(c.a,{direction:"column"},S(p.a,{as:"h2",fontWeight:"700",fontSize:"32px",lineHeight:"40px",color:"white",mb:"42px"},n),r.map((function(e){var t=e.url,o=e.text;return S(v.a,{href:t},S(g.c,{h:"72px",w:"100%",mb:"24px"},o))})))),S(A,{closeMessage:a,setCTA:u})))};function T(e){var t=e.backgroundImage,o=void 0===t?"/stock/Photo-008.jpg":t,i=e.showForm,n=void 0!==i&&i,r=e.linksHeading,s=void 0===r?"Find out where Anthony stands on:":r,l=e.links,d=void 0===l?[{url:"/the-issues/renewable-energy",text:"Climate Change"},{url:"/the-issues/jobs-and-the-future-of-work",text:"Jobs and Secure Work"},{url:"/the-issues/the-economy",text:"Economic Recovery"}]:l,p=e.CTAEnabled,u=void 0!==p&&p,h=e.closeMessage,f=void 0===h?"Go to the main site":h,g=e.formHeading,m=void 0===g?"Sign up call to action text:":g,x=e.thanksMessage,v=void 0===x?"You\u2019ll always be up to date with the latest news and events from Anthony Albanese":x,b=e.thanksHeading,w=void 0===b?"Thanks for signing up":b,k=e.setCTA,A=e.ctaType,O=void 0===A?"small-form":A,I=e.formId,T=void 0===I?7:I;return"small-form"===O?S(c.a,{zIndex:"1000",overflow:"hidden",width:"100%",height:"100vh",position:"fixed",top:0,left:0,display:"flex",background:"rgba(0,0,0,0.5)",alignItems:["normal","normal","center"],overflowY:["scroll","scroll","visible"],padding:["20px 0","20px 0","0"],style:{}},S("div",{style:{width:"100%",maxWidth:"350px",margin:"0 auto"}},S("div",{style:{background:"#e43942",padding:"30px 40px",position:"relative"}},S("h2",{style:{color:"#fff",marginBottom:0,fontSize:"26px",lineHeight:"30px",textAlign:"center"}},m),S("div",{style:{position:"absolute",top:"10px",right:"10px"}},S(C,{onClick:function(){return k(!1)}}))),S("div",{style:{background:"white",padding:"30px"}},S(y.a,{callback:function(){return k(!1)},noWrapper:!0,block:{data:{id:parseInt(T),backgroundColor:"white",buttonWidth:"100%",buttonMargin:"10px"}}})))):S(a.a.Fragment,null,S(j,{backgroundImage:o,showForm:n,linksHeading:s,links:d,CTAEnabled:u,closeMessage:f,formHeading:m,thanksHeading:w,thanksMessage:v,setCTA:k}),S(H,{backgroundImage:o,showForm:n,linksHeading:s,links:d,CTAEnabled:u,closeMessage:f,formHeading:m,thanksHeading:w,thanksMessage:v,setCTA:k}))}},NyWP:function(e,t,o){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.destroyCookie=t.setCookie=t.parseCookies=void 0;var n=o("iVi/"),r=o("U0US"),a=o("YAAg");function s(e,t){var o,i;return(null===(i=null===(o=null===e||void 0===e?void 0:e.req)||void 0===o?void 0:o.headers)||void 0===i?void 0:i.cookie)?n.parse(e.req.headers.cookie,t):a.isBrowser()?n.parse(document.cookie,t):{}}function l(e,t,o,s){var l,d;if(void 0===s&&(s={}),(null===(l=null===e||void 0===e?void 0:e.res)||void 0===l?void 0:l.getHeader)&&e.res.setHeader){if(null===(d=null===e||void 0===e?void 0:e.res)||void 0===d?void 0:d.finished)return console.warn('Not setting "'+t+'" cookie. Response has finished.'),console.warn("You should set cookie before res.send()"),{};var c=e.res.getHeader("Set-Cookie")||[];"string"===typeof c&&(c=[c]),"number"===typeof c&&(c=[]);var p=r.parse(c,{decodeValues:!1}),u=a.createCookie(t,o,s),h=[];p.forEach((function(e){if(!a.areCookiesEqual(e,u)){var t=n.serialize(e.name,e.value,i({encode:function(e){return e}},e));h.push(t)}})),h.push(n.serialize(t,o,s)),e.res.setHeader("Set-Cookie",h)}if(a.isBrowser()){if(s&&s.httpOnly)throw new Error("Can not set a httpOnly cookie in the browser.");
1document.cookie=n.serialize(t,o,s)}return{}}function d(e,t,o){return l(e,t,"",i(i({},o||{}),{maxAge:-1}))}t.parseCookies=s,t.setCookie=l,t.destroyCookie=d,t.default={set:l,get:s,destroy:d}},U0US:function(e,t,o){"use strict";var i={decodeValues:!0,map:!1,silent:!1};function n(e){return"string"!==typeof e||e in{}}function r(){return Object.create(null)}function a(e){return"string"===typeof e&&!!e.trim()}function s(e,t){var o=e.split(";").filter(a),s=function(e){var t="",o="",i=e.split("=");i.length>1?(t=i.shift(),o=i.join("=")):o=e;return{name:t,value:o}}(o.shift()),l=s.name,d=s.value;if(t=t?Object.assign({},i,t):i,n(l))return null;try{d=t.decodeValues?decodeURIComponent(d):d}catch(p){console.error("set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",p)}var c=r();return c.name=l,c.value=d,o.forEach((function(e){var t=e.split("="),o=t.shift().trimLeft().toLowerCase();if(!n(o)){var i=t.join("=");if("expires"===o)c.expires=new Date(i);else if("max-age"===o){var r=parseInt(i,10);Number.isNaN(r)||(c.maxAge=r)}else"secure"===o?c.secure=!0:"httponly"===o?c.httpOnly=!0:"samesite"===o?c.sameSite=i:"partitioned"===o?c.partitioned=!0:o&&(c[o]=i)}})),c}function l(e,t){if(t=t?Object.assign({},i,t):i,!e)return t.map?r():[];if(e.headers)if("function"===typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var o=e.headers[Object.keys(e.headers).find((function(e){return"set-cookie"===e.toLowerCase()}))];o||!e.headers.cookie||t.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=o}if(Array.isArray(e)||(e=[e]),t.map){var l=r();return e.filter(a).reduce((function(e,o){var i=s(o,t);return i&&!n(i.name)&&(e[i.name]=i),e}),l)}return e.filter(a).map((function(e){return s(e,t)})).filter(Boolean)}e.exports=l,e.exports.parse=l,e.exports.parseString=s,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!==typeof e)return[];var t,o,i,n,r,a=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,r=!1;l();)if(","===(o=e.charAt(s))){for(i=s,s+=1,l(),n=s;s<e.length&&"="!==(o=e.charAt(s))&&";"!==o&&","!==o;)s+=1;s<e.length&&"="===e.charAt(s)?(r=!0,s=n,a.push(e.substring(t,i)),t=s):s=i+1}else s+=1;(!r||s>=e.length)&&a.push(e.substring(t,e.length))}return a}},YAAg:function(e,t,o){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function n(e,t){var o=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(o.length!==i.length)return!1;for(var n=0;n<o.length;n++){var r=o[n];if(e[r]!==t[r])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.areCookiesEqual=t.hasSameProperties=t.createCookie=t.isBrowser=void 0,t.isBrowser=function(){return"undefined"!==typeof window},t.createCookie=function(e,t,o){var n=o.sameSite;!0===n&&(n="strict"),void 0!==n&&!1!==n||(n="lax");var r=i(i({},o),{sameSite:n});return delete r.encode,i({name:e,value:t},r)},t.hasSameProperties=n,t.areCookiesEqual=function(e,t){var o=e.sameSite===t.sameSite;return"string"===typeof e.sameSite&&"string"===typeof t.sameSite&&(o=e.sameSite.toLowerCase()===t.sameSite.toLowerCase()),n(i(i({},e),{sameSite:void 0}),i(i({},t),{sameSite:void 0}))&&o}},"iVi/":function(e,t,o){"use strict";t.parse=function(e,t){if("string"!==typeof e)throw new TypeError("argument str must be a string");for(var o={},n=t||{},r=e.split(";"),s=n.decode||i,l=0;l<r.length;l++){var d=r[l],c=d.indexOf("=");if(!(c<0)){var p=d.substring(0,c).trim();if(void 0==o[p]){var u=d.substring(c+1,d.length).trim();'"'===u[0]&&(u=u.slice(1,-1)),o[p]=a(u,s)}}}return o},t.serialize=function(e,t,o){var i=o||{},a=i.encode||n;if("function"!==typeof a)throw new TypeError("option encode is invali
1d");if(!r.test(e))throw new TypeError("argument name is invalid");var s=a(t);if(s&&!r.test(s))throw new TypeError("argument val is invalid");var l=e+"="+s;if(null!=i.maxAge){var d=i.maxAge-0;if(isNaN(d)||!isFinite(d))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(d)}if(i.domain){if(!r.test(i.domain))throw new TypeError("option domain is invalid");l+="; Domain="+i.domain}if(i.path){if(!r.test(i.path))throw new TypeError("option path is invalid");l+="; Path="+i.path}if(i.expires){if("function"!==typeof i.expires.toUTCString)throw new TypeError("option expires is invalid");l+="; Expires="+i.expires.toUTCString()}i.httpOnly&&(l+="; HttpOnly");i.secure&&(l+="; Secure");if(i.sameSite){switch("string"===typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l};var i=decodeURIComponent,n=encodeURIComponent,r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e,t){try{return t(e)}catch(o){return 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.