PageSourceSearch

https://www.geraldtonguardian.com.au/static/js/Embed-web_f1891c9b4088ca993b42.js

js geraldtonguardian.com.au collected 2026-09-24 20:52:12 UTC 22,520 bytes, 3 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[247],{56473:(function(jt,H,r){r.r(H),r.d(H,{WebEmbed:function(){return te},default:function(){return Ct}});var t=r(14041),$=r(98706),c=r(10542),S=r(42305),g=r(91436),E=r(72307);const ne="/embed",re=e=>e.indexOf(ne)===-1?`${e}`:e,oe=e=>e.indexOf("download.pwc")>=0,se=e=>(0,S.v)({consentRequiredLevel:g.Rg.Analytics|g.Rg.Advertising})?t.createElement("iframe",{width:"100%",height:"700px",frameBorder:0,scrolling:"no",src:re(e.link),sandbox:"allow-same-origin allow-popups allow-scripts"}):t.createElement(E.V,null);var O=r(8510),j=r(29008);const ae=e=>e.indexOf("shortstack")>=0,ie=(0,j.Ay)({resolved:{},chunkName(){return"Shortstack"},isReady(e){const n=this.resolve(e);return this.resolved[n]!==!0?!1:!!r.m[n]},importAsync:()=>Promise.all([r.e(8741),r.e(6877)]).then(r.bind(r,21119)),requireAsync(e){const n=this.resolve(e);return this.resolved[n]=!1,this.importAsync(e).then(o=>(this.resolved[n]=!0,o))},requireSync(e){const n=this.resolve(e);return r(n)},resolve(){return 21119}});var z=r(87585),T=r(84539);const le=g.Rg.Analytics|g.Rg.Advertising,ce=({link:e,log:n,className:o})=>{const[a,s]=t.useState(null),[l,d]=(0,T.v)({consentRequiredLevel:le,consentMet:{src:"https://cdn.embedly.com/widgets/platform.js"}});return t.useEffect(()=>{l===T.r.Success&&ue()&&a&&(embedly("card",a),n&&n.info({link:e},"Embedly card loaded, web or app render"))},[l,a,n,e]),d?null:l===T.r.NotConsented?t.createElement(E.V,null):t.createElement(c.hF,{className:`${o} ${de(e)}`,embedLink:e},t.createElement("a",{href:e,ref:f=>s(f),className:"js-embed","data-card-key":"2ac17161f707456d853e010bafc56489","data-card-controls":"0","data-card-width":"100%"},"Loading content..."))};function de(e){const n="embed";return e.indexOf("spotify.com")>=0?`spotify-embed ${n}`:n}function ue(){return typeof embedly<"u"}const me=(0,j.Ay)({resolved:{},chunkName(){return"Facebook-web"},isReady(e){const n=this.resolve(e);return this.resolved[n]!==!0?!1:!!r.m[n]},importAsync:()=>r.e(630).then(r.bind(r,76925)),requireAsync(e){const n=this.resolve(e);return this.resolved[n]=!1,this.importAsync(e).then(o=>(this.resolved[n]=!0,o))},requireSync(e){const n=this.resolve(e);return r(n)},resolve(){return 76925}});var D=r(59400),fe=r(98330),he=r(25838),G=r(84754),W=r(81072),ge=r(17246),pe=r(98217);function be(e){return e.indexOf("tiktok.com")>=0}var ye=r(92651),I=r(70632);const ve=(0,j.Ay)({resolved:{},chunkName(){return"Instagram-web"},isReady(e){const n=this.resolve(e);return this.resolved[n]!==!0?!1:!!r.m[n]},importAsync:()=>r.e(748).then(r.bind(r,42591)),requireAsync(e){const n=this.resolve(e);return this.resolved[n]=!1,this.importAsync(e).then(o=>(this.resolved[n]=!0,o))},requireSync(e){const n=this.resolve(e);return r(n)},resolve(){return 42591}}),Ee=(0,j.Ay)({resolved:{},chunkName(){return"TwitterEmbed-web"},isReady(e){const n=this.resolve(e);return this.resolved[n]!==!0?!1:!!r.m[n]},importAsync:()=>r.e(9422).then(r.bind(r,85884)),requireAsync(e){const n=this.resolve(e);return this.resolved[n]=!1,this.importAsync(e).then(o=>(this.resolved[n]=!0,o))},requireSync(e){const n=this.resolve(e);return r(n)},resolve(){return 85884}}),we=e=>{if(!(0,S.v)({consentRequiredLevel:g.Rg.Analytics|g.Rg.Advertising}))return t.createElement(E.V,null);const o=(0,D.k)(e.link,e.theme);return t.createElement("iframe",{width:"100%",height:`${o.height}px`,frameBorder:0,src:o.src,sandbox:"allow-same-origin allow-popups allow-scripts"})};var u=r(2182);const Se=e=>e.indexOf("datawrapper.dwcdn.net")>=0,Te=e=>{const n=e.split("/");return{id:n[3],version:n[4]}};function B(e){if(typeof e.data["datawrapper-height"]<"u"){const n=document.querySelectorAll("iframe");for(const o in e.data["datawrapper-height"])for(let a=0;a<n.length;a++)if(n[a].contentWindow===e.source){const s=n[a];s.style.height=e.data["datawrapper-height"][o]+"px"}}}const xe=({link:e,chartId:n,chartVersion:o})=>{const a=t.useRef(null);return t.useEffect(()=>(window.addEventListener("message",B),function(){window.removeEventListener("message",B)}),[e]),t.createElement(Fe,{ref:a,"aria-label":"Datawrapper Chart",id:`datawrapper-chart-${n}`,src:`https://datawrapper.dwcdn.net/${n}/${o}/`,scrolling:"no",frameBorder:"0",height:"360"})},Ae=({link:e})=>
1{if(!(0,S.v)({consentRequiredLevel:g.Rg.Analytics|g.Rg.Advertising}))return t.createElement(E.V,null);const o=Te(e);return t.createElement(xe,{link:e,chartId:o.id,chartVersion:o.version})},Fe=(0,u.A)("iframe",{target:"e1nky4zn0",label:"StyledIframe"})(()=>({width:0,minWidth:"100% !important",border:"none"}),"");var Re=r(69555),Ce=r(32998);const M="https://public.flourish.studio/resources/embed.js";function Le(){if(typeof window<"u"&&(window.Flourish===void 0&&(window.Flourish={disable_autoload:!0}),window.Flourish.disable_autoload=!0,!(0,Re._B)(M))){const n=document.createElement("script");n.src=M,document.body.appendChild(n)}}async function $e(e){for(;!window.FlourishLoaded||!window?.Flourish?.loadEmbed;)await(0,Ce.uk)(10);window.Flourish.loadEmbed(e)}var je=e=>{const n=(0,t.useRef)(null),o=(0,G.I)(e.link);return Le(),(0,t.useEffect)(()=>{typeof window<"u"&&n.current&&$e(n.current)},[n]),t.createElement("div",null,t.createElement("div",{ref:n,className:"flourish-embed","data-src":o}))},U=r(15428),Ne=r(78643),i=r(63533);const Ie=e=>e.indexOf("app.sli.do")>=0,He=e=>(0,S.v)({consentRequiredLevel:g.Rg.Analytics|g.Rg.Advertising})?(0,U.Y)("iframe",{css:{marginBottom:e.verticalSpacing&&(0,i.g)(Ne.q.thewest.margins[e.verticalSpacing])},width:e.width?`${e.width}px`:"100%",height:e.height?`${e.height}px`:"100%",style:{minHeight:560},frameBorder:0,src:e.link,sandbox:"allow-same-origin allow-popups allow-scripts"}):(0,U.Y)(E.V,null);var P=r(2537),V=r(81487);const Oe=e=>e.indexOf("spotify.com")>=0,ze=({link:e})=>{const n=t.useContext(P.Y),[o,a]=t.useState(""),s=(0,S.v)({consentRequiredLevel:g.Rg.Analytics|g.Rg.Advertising});return t.useEffect(()=>{async function l(){try{const d=encodeURIComponent(e),y=(await(await fetch(`https://open.spotify.com/oembed?url=${d}`)).json()).html;y&&a(y)}catch(d){n.debug({error:d,link:e},"Error loading spotify post")}}l()},[s,e,n]),s?o?o?t.createElement("div",{dangerouslySetInnerHTML:{__html:o}}):null:t.createElement(V.Y,{href:e,openInNewWindow:!0},"Loading Facebook Embed"):t.createElement(E.V,null)};var Y=r(37177),De=r(93285);const Ge="https://www.tiktok.com/embed.js";var We=({link:e})=>{const n=t.useContext(P.Y),[o,a]=t.useState(""),s=(0,S.v)({consentRequiredLevel:g.Rg.All});return t.useEffect(()=>{async function l(){try{const d=encodeURIComponent(e),y=(await(await fetch(`https://www.tiktok.com/oembed?url=${d}`)).json()).html;y&&a(y)}catch(d){n.debug({error:d,link:e},"Error loading tikTok post")}}l()},[e,n]),s?o?t.createElement(t.Fragment,null,t.createElement(De.m,null,t.createElement("script",{id:"ttEmbedder",async:!0,src:Ge})),t.createElement("div",{dangerouslySetInnerHTML:{__html:o}})):t.createElement(V.Y,{href:e,openInNewWindow:!0},"Loading TikTok Post"):t.createElement(E.V,null)};const Be=({link:e})=>{const[n,o]=t.useState("264px"),[a,s]=(0,T.v)({consentRequiredLevel:g.Rg.Advertising|g.Rg.Analytics,consentMet:{src:"https://www.whistleout.com.au/js/responsive/es5.min.js"}}),l=f=>{const{data:h}=f;h&&h.hasOwnProperty("sentinel")&&h.sentinel==="whistleout-widget"&&h.url===(0,I.zg)(e)&&o(h.height+"px")};(0,t.useEffect)(()=>(typeof window<"u"&&window.addEventListener&&window.addEventListener("message",l,!1),()=>{window.removeEventListener("message",l,!1)}),[]);const d=(0,I.zg)(e);return a===T.r.NotConsented?t.createElement(E.V,null):!d||a!==T.r.Success||s?null:t.createElement("iframe",{src:d,scrolling:"no",frameBorder:0,height:n,width:"100%"})};var Me=r(19283),Ue=r(45250);const Pe=e=>e.indexOf("form.typeform")>=0;function Ve(e){const n=(0,Ue.split)(e,"/");return n[n.length-1]}const Ye=e=>{const n=Ve(e.link);return t.createElement(Me.Widget,{id:n,autoResize:!0,disableScroll:!0,lazy:!0,noHeading:!0})};var X=r(43100),Xe=r(63955);const Ke=e=>e.indexOf("youtube.com")>=0,Je=e=>{const n=(0,Xe.youtubeVideoId)(e.link);return t.createElement("div",{style:{boxSizing:"border-box"}},t.createElement("iframe",{id:"player",src:`https://www.youtube.com/embed/${n}`,frameBorder:"0",sandbox:"allow-scripts allow-same-origin",allowFullScreen:!0,scrolling:"no",allow:"autoplay; fullscreen; encrypted-media; picture-in-picture",style:{aspectRatio:"16/9",width:"100%"}}))};function Qe(e){return Ze(e)||K(e)}function Ze(e){return e.includes("embeds://elections-electorate/federal/")}function K(e){return e.includes("embeds://elections-electorate/state/")}function ke(e){const o=e.replace("embeds://elections-electorate/","").split("/");try{let a=1;const s=o[0];let l;s==="state"?(l=`state-${o[1].toLowerCase()}`,a=2):l="federal";const d=Number(o[a++]),f=o[a++];return{type:l,year:d,electorate:f}}catch{throw new Error(`Invalid electorate link: ${e}, refer to the documentation for the correct format`)}}function qe(e){let n;return e.type==="federal"?n=`federal-election-${e.year}`:n=`${e.type.replace("state-","")}-election-${e.year}`,{electionId:n,electionData:void 0,logo:{mobile:"logo-mobile-not-needed"},meta:{}}}var J=r(36683),Q=r(59562),_e=r(60281),et=r(36565);const tt=({link:e,onEvent:n})=>{const o=K(e);let a,s;const l=(0,t.useContext)(J.Q),{imageBaseUrl:d}=l;try{a=ke(e),s=qe(a)}catch{a=void 0}const f=t.useCallback(R=>({type:R,originator:"election-embed",payload:{url:window.location.href,embedUrl:e,embedType:a?.type,target:a?.electorate}}),[a,e]),h=t.useCallback(R=>{n(f(R))},[n,f]),y=(0,et.q)({loading:!1,available:()=>h(Q.b.embedViewed)});return s?t.createElement(_e.E,{isState:o,electorateName:a?a.electorate:"UNKNOWN",electionDefinition:s,mainRef:a?y:void 0,fireClickEvent:()=>{a&&h(Q.b.embedClicked)},imageBaseUrl:d}):null};var nt=r(50183),Z=r(5808),rt=r(81365),k=r(3390),ot=r(43329),m=r(19108),b=r(87244);function Ht(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}const q=(0,u.A)("div",{target:"e1wjn5bj16",label:"StyledNewsTipsContainer"})({width:"100%",padding:`${(0,i.g)(24)} 0`},""),st=(0,u.A)("h3",{target:"e1wjn5bj15",label:"StyledNewsTipsHeading"})({fontFamily:b.l.sevennews.sansSerif,fontSize:(0,i.g)(20),fontWeight:700,color:m.T.black,margin:`0 0 ${(0,i.g)(4)} 0`,[(0,ot.C9)("sm")]:{fontSize:(0,i.g)(22)}},""),at=(0,u.A)("p",{target:"e1wjn5bj14",label:"StyledNewsTipsDescription"})({fontFamily:b.l.sevennews.sansSerif,fontSize:(0,i.g)(14),fontWeight:400,color:m.T.black,margin:`0 0 ${(0,i.g)(16)} 0`,lineHeight:1.5},""),it=(0,u.A)("form",{target:"e1wjn5bj13",label:"StyledForm"})({display:"flex",flexDirection:"column",gap:(0,i.g)(12),width:"100%"},""),x=(0,u.A)("label",{target:"e1wjn5bj12",label:"StyledLabel"})({fontFamily:b.l.sevennews.sansSerif,fontSize:(0,i.g)(14),fontWeight:600,color:m.T.black,display:"block",marginBottom:(0,i.g)(4)},""),N=(0,u.A)("input",{target:"e1wjn5bj11",label:"StyledInput"})({fontFamily:b.l.sevennews.sansSerif,fontSize:(0,i.g)(14),padding:`${(0,i.g)(10)} ${(0,i.g)(12)}`,border:"1px solid #ccc",borderRadius:(0,i.g)(4),width:"100%",boxSizing:"border-box",lineHeight:1.5,color:m.T.black,backgroundColor:m.T.white,"&:focus":{outline:`2px solid ${m.T.sevennews.red}`,outlineOffset:"-1px"},"&::placeholder":{color:"#999"}},""),lt=(0,u.A)("select",{target:"e1wjn5bj10",label:"StyledSelect"})({fontFamily:b.l.sevennews.sansSerif,fontSize:(0,i.g)(14),padding:`${(0,i.g)(10)} ${(0,i.g)(12)}`,border:"1px solid #ccc",borderRadius:(0,i.g)(4),width:"100%",boxSizing:"border-box",lineHeight:1.5,color:m.T.black,backgroundColor:m.T.white,"&:focus":{outline:`2px solid ${m.T.sevennews.red}`,outlineOffset:"-1px"}},""),ct=(0,u.A)("textarea",{target:"e1wjn5bj9",label:"StyledTextarea"})({fontFamily:b.l.sevennews.sansSerif,fontSize:(0,i.g)(14),padding:`${(0,i.g)(10)} ${(0,i.g)(12)}`,border:"1px solid #ccc",borderRadius:(0,i.g)(4),width:"100%",boxSizing:"border-box",lineHeight:1.5,color:m.T.black,backgroundColor:m.T.white,minHeight:(0,i.g)(120),resize:"vertical","&:focus":{outline:`2px solid ${m.T.sevennews.red}`,outlineOffset:"-1px"},"&::placeholder":{color:"#999"}},""),A=(0,u.A)("div",{target:"e1wjn5bj8",label:"StyledFieldGroup"})({name:"1fttcpj",styles:"display:flex;flex-direction:column"}),dt=(0,u.A)("div",{target:"e1wjn5bj7",label:"StyledCheckboxGroup"})({display:"flex",alignItems:"center",gap:(0,i.g)(8)},""),ut=(0,u.A)("input",{target:"e1wjn5bj6",label:"StyledCheckboxInput"})({width:(0,i.g)(18),height:(0,i.g)(18),margin:0},""),mt=(0,u.A)("label",{target:"e1wjn5bj5",label:"StyledCheckboxLabel"})({fontFamily:b.l.sevennews.sansSerif,fontSize:(0,i.g)(14),fontWeight:400,color:m.T.black,lineHeight:1.5},""),ft=(0,u.A)("button",{target:"e1wjn5bj4",label:"StyledSubmitButton"})({fontFamily:b.l.sevennews.sansSerif,fontSize:(0,i.g)(14),fontWeight:700,padding:`${(0,i.g)(12)} ${(0,i.g)(24)}`,border:"none",borderRadius:(0,i.g)(4),color:m.T.white,backgroundColor:m.T.sevennews.red,cursor:"pointer",textTransform:"uppercase",letterSpacing:"0.5px",alignSelf:"flex-start",transition:"background-color 0.2s ease","&:hover":{backgroundColor:m.T.sevennews.darkRed},"&:focus":{outline:`2px solid ${m.T.sevennews.red}`,outlineOffset:"2px"},"&:disabled":{opacity:.6,cursor:"not-allowed",pointerEvents:"none"}},""),_=(0,u.A)("p",{target:"e1wjn5bj3",label:"StyledStatusMessage"})(({variant:e})=>({fontFamily:b.l.sevennews.sansSerif,fontSize:(0,i.g)(14),fontWeight:500,lineHeight:1.5,padding:`${(0,i.g)(12)} ${(0,i.g)(16)}`,borderRadius:(0,i.g)(4),margin:0,color:e==="success"?"#155724":"#721c24",backgroundColor:e==="success"?"#d4edda":"#f8d7da",border:`1px solid ${e==="success"?"#c3e6cb":"#f5c6cb"}`}),""),ht=(0,u.A)("div",{target:"e1wjn5bj2",label:"StyledHoneypot"})({name:"zz2ino",styles:"position:absolute;
1left:-9999px;opacity:0;height:0;overflow:hidden"}),F=(0,u.A)("span",{target:"e1wjn5bj1",label:"StyledFieldError"})({fontFamily:b.l.sevennews.sansSerif,fontSize:(0,i.g)(12),fontWeight:500,color:"#721c24",marginTop:(0,i.g)(4)},""),gt=(0,u.A)("span",{target:"e1wjn5bj0",label:"StyledTerms"})({fontFamily:b.l.sevennews.sansSerif,fontSize:(0,i.g)(12),color:"#666",lineHeight:1.5,a:{color:m.T.sevennews.toreaBay,textDecoration:"underline"}},""),pt=200,ee=320,bt=50,yt=100,vt=5e3,Et=30,wt=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,St=["NSW","VIC","QLD","WA","SA","TAS","ACT","NT"];function Tt(e){const n={};e.name.trim()||(n.name="Name is required");const o=e.email.trim();return o?(o.length>ee||!wt.test(o))&&(n.email="Email must be a valid email address"):n.email="Email is required",e.phone.trim()||(n.phone="Phone is required"),e.state||(n.state="State is required"),e.message.trim()||(n.message="Message is required"),n}const xt=()=>{const[e,n]=(0,t.useState)({name:"",email:"",phone:"",suburb:"",state:"",message:"",urgent:!1}),[o,a]=(0,t.useState)({}),[s,l]=(0,t.useState)(""),[d,f]=(0,t.useState)("idle"),[h,y]=(0,t.useState)(0),{executeRecaptcha:R}=(0,k.Vq)();(0,t.useEffect)(()=>{if(h<=0)return;const p=setInterval(()=>{y(v=>v-1)},1e3);return()=>clearInterval(p)},[h]);const C=(0,t.useCallback)(p=>{const{name:v,value:w}=p.target;n(L=>({...L,[v]:w})),a(L=>({...L,[v]:void 0}))},[]),Lt=(0,t.useCallback)(p=>{const{checked:v}=p.target;n(w=>({...w,urgent:v}))},[]),$t=async p=>{if(p.preventDefault(),s){f("success");return}const v=Tt(e);if(Object.keys(v).length>0){a(v);return}a({}),f("submitting");try{const w=await R({action:"news_tip_submit"});(await fetch("/news-tip-submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:w,name:e.name.trim(),email:e.email.trim(),phone:e.phone.trim(),suburb:e.suburb.trim(),state:e.state,message:e.message.trim(),urgent:e.urgent})})).ok?(f("success"),n({name:"",email:"",phone:"",suburb:"",state:"",message:"",urgent:!1}),y(Et)):f("error")}catch(w){const L=(0,rt.f)(w);console.error(L),f("error")}};return d==="success"?t.createElement(q,null,t.createElement(_,{variant:"success"},"Thank you for your submission. Our team will review your tip shortly.")):t.createElement(q,null,t.createElement(st,null,"Send Us a News Tip"),t.createElement(at,null,"Have a story or information you think we should know about? Fill in the form below and our newsroom team will review it."),t.createElement(it,{onSubmit:$t,noValidate:!0},t.createElement(A,null,t.createElement(x,{htmlFor:"newsTip-name"},"Name"),t.createElement(N,{id:"newsTip-name",name:"name",type:"text",required:!0,"aria-invalid":!!o.name,"aria-describedby":o.name?"newsTip-name-error":void 0,maxLength:pt,placeholder:"Your name",value:e.name,onChange:C}),o.name&&t.createElement(F,{id:"newsTip-name-error",role:"alert"},o.name)),t.createElement(A,null,t.createElement(x,{htmlFor:"newsTip-phone"},"Phone"),t.createElement(N,{id:"newsTip-phone",name:"phone",type:"tel",required:!0,"aria-invalid":!!o.phone,"aria-describedby":o.phone?"newsTip-phone-error":void 0,maxLength:bt,placeholder:"Your phone number",value:e.phone,onChange:C}),o.phone&&t.createElement(F,{id:"newsTip-phone-error",role:"alert"},o.phone)),t.createElement(A,null,t.createElement(x,{htmlFor:"newsTip-email"},"Email"),t.createElement(N,{id:"newsTip-email",name:"email",type:"email",required:!0,"aria-invalid":!!o.email,"aria-describedby":o.email?"newsTip-email-error":void 0,maxLength:ee,placeholder:"Your email address",value:e.email,onChange:C}),o.email&&t.createElement(F,{id:"newsTip-email-error",role:"alert"},o.email)),t.createElement(A,null,t.createElement(x,{htmlFor:"newsTip-suburb"},"Suburb"),t.createElement(N,{id:"newsTip-suburb",name:"suburb",type:"text","aria-invalid":!!o.suburb,"aria-describedby":o.suburb?"newsTip-suburb-error":void 0,maxLength:yt,placeholder:"Your suburb",value:e.suburb,onChange:C}),o.suburb&&t.createElement(F,{id:"newsTip-suburb-error",role:"alert"},o.suburb)),t.createElement(A,null,t.createElement(x,{htmlFor:"newsTip-state"},"State"),t.createElement(lt,{id:"newsTip-state",name:"state",required:!0,"aria-invalid":!!o.state,"aria-describedby":o.state?"newsTip-state-error":void 0,value:e.state,onChange:C},t.createElement("option",{value:""},"Select your state"),St.map(p=>t.createElement("option",{key:p,value:p},p))),o.state&&t.createElement(F,{id:"newsTip-state-error",role:"alert"},o.state)),t.createElement(A,null,t.createElement(x,{htmlFor:"newsTip-message"},"Your News Tip"),t.createElement(ct,{id:"newsTip-message",name:"message",required:!0,"aria-invalid":!!o.message,"aria-describedby":o.message?"newsTip-message-error":void 0,maxLength:vt,placeholder:"Tell us what you know...",value:e.message,onChange:C}),o.message&&t.createElement(F,{id:"newsTip-message-error",role:"alert"},o.message)),t.createElement(dt,null,t.createElement(ut,{id:"newsTip-urgent",name:"urgent",type:"checkbox",checked:e.urgent,onChange:Lt}),t.createElement(mt,{htmlFor:"newsTip-urgent"},"This tip is urgent")),t.createElement(ht,{"aria-hidden":"true"},t.createElement("label",{htmlFor:"newsTip-address"},"Leave this field empty"),t.createElement("input",{id:"newsTip-address",name:"address",type:"text",tabIndex:-1,autoComplete:"off",value:s,onChange:p=>l(p.target.value)})),d==="error"&&t.createElement(_,{variant:"error"},"Something went wrong. Please try again."),t.createElement(gt,null,"We collect your information so our newsroom can review and respond to your tip. Read Seven's"," ",t.createElement("a",{href:"https://sevenwestmedia.com.au/privacy-policies",target:"_blank",rel:"noopener noreferrer"},"Privacy Policy"),"."),t.createElement(ft,{type:"submit",disabled:d==="submitting"||h>0},d==="submitting"?"Submitting...":h>0?`Resubmit in ${h}s`:"Submit Tip")))},At=()=>{const e=t.useContext(J.Q),n=(0,nt.Hn)();return!e||!(0,Z.G7)((0,Z.XM)(n),"news-tips-form")||!e.recaptureSiteKey?null:t.createElement(k.Xs,{siteKey:e.recaptureSiteKey},t.createElement(xt,null))};var Ft=r(99870),Rt=r.n(Ft);const te=({link:e,log:n,onEvent:o,adUnitPath:a,className:s})=>{if(!e||(0,ge.k)(e)||(0,he.X)(e))return null;if((0,D.l)(e))return t.createElement(c.hF,{className:`${s} embed`},t.createElement(we,{link:e}));if((0,I.fg)(e))return t.createElement(c.hF,{className:`${s} embed`},t.createElement(Be,{link:e}));if((0,Y.I)(e))return t.createElement(c.hF,{className:`${s} embed`},t.createElement(Y.$,{link:e}));if((0,O.AJ)(e))return t.createElement(c.hF,{className:`${s} embed`},t.createElement(O.cF,{link:e}));if(Pe(e))return t.createElement(c.hF,{className:`${s} embed`},t.createElement(Ye,{link:e}));if(oe(e))return t.createElement(c.hF,{className:`${s} embed`},t.createElement(se,{link:e}));if(ae(e))return t.createElement(c.hF,{className:`${s} embed`},t.createElement(ie,{link:e}));if((0,z.HG)(e))return t.createElement(c.hF,{className:`${s} embed`},t.createElement(z.Pm,{link:e}));if((0,$.zH)(e)){const l=(0,$.sF)(e);return l?t.createElement(c.hF,{className:`${s} embed`},t.createElement($.dO,{blogId:l,provider:$.R8})):(console.error("24 hour live blog ID could not be found."),null)}if(Ie(e))return t.createElement(c.hF,{className:`${s} embed`},t.createElement(He,{link:e}));if((0,ye.H)(e))return t.createElement(c.qn,{className:`${s} embed`},t.createElement(Ee,{link:e}));if((0,W.no)(e)){const{url:l}=(0,W.SQ)(e);if(l)return t.createElement(c.Ls,{className:`${s} embed`},t.createElement(ve,{link:l}))}if((0,fe.rB)(e))return t.createElement(c.ZJ,{className:Rt()(s,"embed")},t.createElement(me,{link:e}));if((0,G.z)(e))return t.createElement(c.hF,{className:s},t.createElement(je,{link:e}));if(Se(e))return t.createElement(c.hF,{className:`${s} embed`},t.createElement(Ae,{link:e}));if(be(e))return t.createElement(c.hF,{className:`${s} embed`},t.createElement(We,{link:e}));if(Oe(e))return t.createElement(c.hF,{className:`${s} embed`},t.createElement(ze,{link:e}));if((0,X.q)(e)){const l=new URL(e);return l.protocol==="http:"&&(l.protocol="https:",n.warn({link:e,newLink:l.toString()},"Shorthand embeds should be https; rewriting...")),t.createElement(X.G,{className:s,link:l.toString()})}return Qe(e)?t.createElement(c.hF,{className:`${s} embed`},t.createElement(tt,{link:e,onEvent:o})):Ke(e)?t.createElement(c.hF,{className:`${s} embed`},t.createElement(Je,{link:e})):(0,pe.E)(e)?t.createElement(c.hF,{className:`${s} embed`},t.createElement(At,null)):t.createElement(ce,{link:e,log:n,onEvent:o,adUnitPath:a,className:s})};
1var Ct=te})}]);
2
3//# sourceMappingURL=Embed-web_f1891c9b4088ca993b42.js.map

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.