1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82],{25573:(e,t,o)=>{o.d(t,{A:()=>v});var n=o(76367),r=o(22514),a=o(60143),i=o(29722),c=o(14825),s=o(45159),l=o(62715),d=o(98165),u=o(10184),m=o(69274),h=o(355),f=o(6374),p=(0,c.default)(function(){return Promise.all([o.e(5702),o.e(8067)]).then(o.bind(o,18067))},{loadableGenerated:{webpack:function(){return[18067]}}});function g(e){var t=e.className,o=e.editMode,n=e.forceTimestamp,r=e.headline,c=e.headlineWrapperClassName,l=e.hideCommentComponent,d=e.imageHeight,u=e.imageLazyLoad,p=e.imagePosition,g=e.imageResize,v=e.imageStyle,x=e.imageWidth,w=e.imageWrapperClassName,y=e.index,C=e.isFirstLargeHeroInZone,b=e.isHeading,I=e.isLastOrFirstItemInZone,j=e.leadingImageClassName,N=e.lineClamp,S=e.onClick,_=e.sameTabForCanonical,P=e.showByline,L=e.showCanonicalSite,O=e.showImagePlayIcon,M=e.showSignpost,T=e.showSummaryInStoryList,z=void 0!==T&&T,F=e.showTimestamp,A=e.signPostClassName,E=e.signPostColorPalette,H=e.signpostSourceCommentLayout,W=e.sourceClassName,X=e.story,k=e.storyListId,Y=e.summaryClassName,U=e.summaryFontSize,G=e.textElementsMargin,V=e.titleClassName,B=e.titleSize,q=(0,s.useContext)(m.A),D=q.enableOrder,J=q.label,Z=q.summaryOptions,R=(0,f.O)(z,X.summary,X.showSummary,Z),$=X.leadImage&&X.showLeadImage;return(0,a.jsxs)("div",{className:(0,i.A)(t,{"md:pt-5.5":I&&R&&$}),children:[null!=r?r:(0,a.jsx)(h.A,{forceTimestamp:n,headlineWrapperClassName:c,hideCommentComponent:l,imageHeight:d,imageLazyLoad:void 0===u||u,imagePosition:p,imageResize:void 0!==g&&g,imageStyle:v,imageWidth:x,imageWrapperClassName:w,index:y,isFirstLargeHeroInZone:C,isHeading:void 0===b||b,isLastOrFirstItemInZone:I,leadingImageClassName:j,lineClamp:N,onClick:S,sameTabForCanonical:void 0!==_&&_,showByline:P,showCanonicalSite:void 0!==L&&L,showImagePlayIcon:void 0!==O&&O,showSignpost:M,showSummaryInStoryList:z,showTimestamp:F,signPostClassName:A,signPostColorPalette:E,signpostSourceCommentLayout:H,sourceClassName:W,story:X,storyListId:k,summaryClassName:Y,summaryFontSize:U,textElementsMargin:G,titleClassName:V,titleSize:B}),o&&D&&(0,a.jsxs)("div",{className:"absolute bottom-1 right-1 flex",children:[(0,a.jsx)("div",{className:"pr-2 italic text-red-500",children:J}),(0,a.jsx)("div",{className:(0,i.A)("flex size-6 items-center bg-yellow-300 text-xl text-white","justify-center rounded-full"),children:y+1})]})]})}let v=function(e){var t=e.className,o=e.droppable,i=e.index,c=e.isHeading,h=e.story,f=(0,r._)(e,["className","droppable","index","isHeading","story"]),v=(0,s.useContext)(m.A),x=v.storyListId,w=v.zoneItemId,y=(0,l.GV)(function(e){return e.conf.mode}),C=(0,l.GV)(function(e){return e.editmode.layout}),b=y===d.G9.EDIT,I=(0,a.jsx)(g,(0,n._)({className:t,editMode:b,index:i,isHeading:c,story:h,storyListId:x},f));return(0,a.jsx)("div",{className:"flex w-full",children:b&&(void 0===o||o)&&C===u.U.DESKTOP?(0,a.jsx)(p,{className:t,index:i,story:h,storyListId:x,zoneItemId:w,children:I}):I})}},31817:(e,t,o)=>{o.d(t,{$8:()=>f,GI:()=>C,Ix:()=>l,JE:()=>w,Pz:()=>c,Sz:()=>m,WO:()=>v,es:()=>u,gf:()=>x,j6:()=>y,py:()=>h,vX:()=>g});var n,r,a=o(76367),i=o(91167),c=((n={}).CROP="crop",n.SCALE="scale",n.MAX="max",n),s={landscape:"aspect-w-16 aspect-h-9",portrait:"",square:"aspect-w-1 aspect-h-1",strap:""};function l(e){return s[function(e){var t="landscape";if(e){var o=e.cropHeight,n=e.cropWidth;void 0!==o&&void 0!==n&&(Math.min(n,o)/Math.max(n,o)>.8?t="square":o/n<.3?t="strap":o>n&&(t="portrait"))}return t}(e)]}var d={c100x66:{f:"crop",h:66,w:100},c105x70:{f:"crop",h:70,w:105},c200x132:{f:"crop",h:132,w:200},c284x270:{f:"crop",h:270,w:284},c370x246:{f:"crop",h:246,w:370},c370x270:{f:"crop",h:270,w:370},c576x298:{f:"crop",h:298,w:576},c627x561:{f:"crop",h:561,w:627},c700x400:{f:"crop",h:400,w:770},c800x561:{f:"crop",h:561,w:800},c1200x678:{f:"crop",h:678,w:1200},cartoon:{f:"crop",h:365,w:500},cartoonLarge:{f:"crop",h:730,w:1e3},deep:{f:"crop",h:630,w:470},exploreTravel:{f:"crop",h:651,w:980},feature:{f:"crop",h:300,w:850},iphone:{f:"crop",h:320,w:320},iphone2x:{f:"scale",h:640,w:640},large:{f:"crop",h:678,w:1200},medium:{f:"crop",h:298,w:576}
1,postcard:{f:"crop",h:180,w:270},small:{f:"crop",h:246,w:370},square:{f:"crop",h:320,w:470},thumbnail:{f:"crop",h:90,w:130},thumbnailLarge:{f:"crop",h:145,w:215},thumbnailSmall:{f:"crop",h:60,w:90},tiny:{f:"crop",h:132,w:200},wide:{f:"crop",h:210,w:370}};function u(e){var t,o,n=e.sourceHeight,r=e.sourceWidth,a={cropHeight:n,cropWidth:r,cropX:0,cropY:0,focalX:Math.round(r/2),focalY:Math.round(n/2),scale:1};return r>=n&&(r/n>16/9?(a.cropHeight=n,a.cropWidth=16*n/9):r/n<16/9&&(a.cropWidth=r,a.cropHeight=9*r/16),a.cropX=(r-(null!=(t=a.cropWidth)?t:0))/2,a.cropY=(n-(null!=(o=a.cropHeight)?o:0))/2),a.cropX<0&&(a.cropX=0),a.cropY<0&&(a.cropY=0),a}function m(e){var t=e.aspect,o=e.focalX,n=e.focalY,r=e.height,a=void 0===r?1:r,i=e.scale,c=void 0===i?1:i,s=e.width,l=void 0===s?1:s,d=l/c,u=a/c;t>l/a?u=d/t:d=u*t;var m=n-n/a*u;return{height:Math.round(u),topX:Math.round(o-o/l*d),topY:Math.round(m),width:Math.round(d)}}var h=((r={}).JPG="jpg",r.WEBP="webp",r);function f(e){var t=e.fit,o=e.height,n=e.ignoreCrop,r=void 0!==n&&n,c=e.image,s=e.outputFormat,l=void 0===s?"jpg":s,u=e.size,h=e.useFocalPoint,f=void 0===h||h,p=e.width,g="cropConfig"in c?c.cropConfig:void 0,v={f:"crop",h:o,w:p};if(u&&!(v=(0,a._)({},d[u])))throw Error("Unsupported transform size ".concat(u));if(t&&(v.f=t),v.path=c.uri.replace(/^\/+|\/+$/g,""),void 0===v.h&&(v.h=0),void 0===v.w&&(v.w=0),void 0===v.f&&(v.f="crop"),r||!((x="cropConfig"in c?c.cropConfig:void 0)&&x.cropWidth))v.transform="resize",v.request=0!==v.h?"w".concat(v.w,"_h").concat(v.h,"_f").concat(r?"max":v.f,".").concat(l):"w".concat(v.w,"_h").concat(v.h,".").concat(l,"?resize_filter=lanczos2&quality=100");else{var x,w,y,C,b=function(e,t){var o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n="cropConfig"in e?e.cropConfig:void 0;if(!n)return[];if(o&&void 0!==n.focalX&&void 0!==n.focalY){var r=m({aspect:t,focalX:n.focalX-n.cropX,focalY:n.focalY-n.cropY,height:n.cropHeight,width:n.cropWidth}),a=Math.round(r.topX+n.cropX),i=Math.round(r.topY+n.cropY);return[[a,i],[Math.round(a+r.width),Math.round(i+r.height)]]}return[[Math.round(n.cropX),Math.round(n.cropY)],[Math.round(n.cropX+(n.cropWidth||0)),Math.round(n.cropY+(n.cropHeight||0))]]}(c,0===v.h?1:v.w/v.h,f);v.transform="crop",w=(0,i._)(b,2),y=(0,i._)(w[0],2),v.x1=y[0],v.y1=y[1],C=(0,i._)(w[1],2),v.x2=C[0],v.y2=C[1],f&&(null==g?void 0:g.focalX)!==void 0&&(v.f="max"),v.request="r".concat(v.x1,"_").concat(v.y1,"_").concat(v.x2,"_").concat(v.y2,"_")+"w".concat(v.w,"_h").concat(v.h,"_f").concat(v.f,".").concat(l)}return v}function p(e){var t=f(e),o="transform/v1/".concat(t.transform,"/frm/").concat(t.path,"/");return"".concat(o).concat(t.request)}function g(e){var t=f(e);return[t.x1+t.x2,t.y1+t.y2]}function v(e){var t=e.fit,o=e.height,n=e.ignoreCrop,r=e.image,a=e.outputFormat,i=e.size,c=e.transformUrl,s=e.useFocalPoint,l=e.width;if(i&&(l||o))throw Error("Cannot use fixedSize and dimensions together");return"".concat(c).concat(p({fit:t,height:o,ignoreCrop:n,image:r,outputFormat:a,size:i,useFocalPoint:s,width:l}))}function x(e){var t=e.fit,o=e.height,n=e.image,r=e.outputFormat,a=e.transformUrl,i=e.width;return"".concat(a).concat(p({fit:void 0===t?"crop":t,height:o,ignoreCrop:!1,image:n,outputFormat:r,useFocalPoint:!1,width:i}))}function w(e){var t=e.height,o=e.image,n=e.outputFormat,r=e.transformUrl,a=e.width;return"".concat(r).concat(p({height:t,ignoreCrop:!0,image:o,outputFormat:void 0===n?"jpg":n,useFocalPoint:!1,width:a}))}function y(e){return"uri"in e&&!!e.uri}function C(e){return new Promise(function(t){var o=new Image;o.onload=function(){return t(!0)},o.onerror=function(){return t(!1)},o.src=e})}},32021:(e,t,o)=>{o.r(t),o.d(t,{default:()=>s});var n=o(60143),r=o(45159),a=o(25573),i=o(69274),c=o(82643);function s(e){var t=e.zoneItemData,o=t.enableOrder,s=void 0===o||o,l=t.label,d=t.stories,u=t.storyListId,m=t.summaryOptions,h=t.useCanonicalUrl,f=e.zoneItemId,p=(0,r.useMemo)(function(){return{enableOrder:s,label:l,storyListId:u,summaryOptions:m,useCanonicalUrl:h,zoneItemId:f}},[s,l,u,m,h,f]);return(0,n.jsx)(i.A.Provider,{value:p,children:d.map(function(e,t){return(0,n.jsx)(a.A,{className:"w-full",droppable:!0,headline:(0,n.jsx)(c.A,{index:t,story:e,storyListId:u}),index:t,showSummaryInStoryList:!0,story:e},e.id)})})}},50172:(e,t,o)=>{o.d(t,{A:()=>d,m:()=>l});var n=o(76367),r=o(30694),a=o(91167),i=o(60143),c=o(45159),s=o(62715),l=(0,c.createContext)({addStory(){},forStory:()=>null});function d(e){var t=e.children,o=(0,s.GV)(function(e){return e.features.viafoura}),d=(0,a._)((0,c.useState)({}),2),u=d[0],m=d[1];(0,c.useEffect)(function(){o.enabled&&Object.entries(u).forEach(function(e){var t=(0,a._)(e,2),o=t[0],i=Object.entries(t[1]).filter(function(e){return void 0===(0,a._)(e,2)[1]}).map(function(e){return(0,a._)(e,1)[0]});0!==i.length&&(m(function(e){var t=(0,n._)({},e);
1return i.forEach(function(e){t[o][e]=null}),t}),fetch("https://livecomments.viafoura.co/v4/livecomments/"+"".concat(o,"/content-containers/")+"comment-count-and-status/by-container-ids",{body:JSON.stringify(i),method:"POST"}).then(function(e){if(!e.ok)throw m(function(e){var t=(0,n._)({},e);return i.forEach(function(e){t[o][e]=0}),t}),Error("Viafoura comment count response error");return e}).then(function(e){return e.json()}).then(function(e){m(function(t){var a,i=!1,c=null!=(a=t[o])?a:{};return(e.forEach(function(e){var t=e.commentCount,o=e.containerId;c[o]!==t&&(i=!0,c[o]=t)}),i)?(0,r._)((0,n._)({},t),{[o]:c}):t})}).catch(function(e){console.error(e)}))})},[u,o]);var h=o.enabled?o.data.sectionUuid:"",f=(0,c.useCallback)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;o.enabled&&m(function(o){return o[t]&&e in o[t]?o:(0,r._)((0,n._)({},o),{[t]:(0,r._)((0,n._)({},o[t]),{[e]:void 0})})})},[h,o.enabled]),p=(0,c.useCallback)(function(e){var t,o,n;return null!=(o=null==(n=u[null!=(t=e.viafouraSyndicationSectionUuid)?t:h])?void 0:n[e.id])?o:null},[u,h]),g=(0,c.useMemo)(function(){return{addStory:f,forStory:p}},[f,p]);return o.enabled?(0,i.jsx)(l.Provider,{value:g,children:t}):(0,i.jsx)(i.Fragment,{children:t})}},82643:(e,t,o)=>{o.d(t,{A:()=>C});var n=o(76367),r=o(30694),a=o(60143),i=o(29722),c=o(14825),s=o(62715),l=o(98165),d=o(65019),u=o(97247),m=o(29028),h=o(32368),f=o(3388),p=o(40229),g=o(3522),v=o(88639),x=(0,c.default)(function(){return Promise.all([o.e(3723),o.e(5702),o.e(7340),o.e(5726)]).then(o.bind(o,85726)).then(function(e){return e.HeadlineEditmode})},{loadableGenerated:{webpack:function(){return[85726]}}}),w=(0,c.default)(function(){return Promise.all([o.e(3723),o.e(5702),o.e(7340),o.e(5726)]).then(o.bind(o,85726)).then(function(e){return e.HeadlineEditmodeImage})},{loadableGenerated:{webpack:function(){return[85726]}}});function y(e,t,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e?(0,a.jsx)(o,(0,r._)((0,n._)({},i),{children:t})):(0,a.jsx)(a.Fragment,{children:t})}function C(e){var t,o,n=e.authorPosition,r=void 0===n?v.V.BOTTOM:n,c=e.commentComponent,C=void 0===c?u.A:c,b=e.imageLazyLoad,I=e.index,j=e.showDate,N=e.story,S=e.storyListId,_=(0,s.GV)(function(e){return e.conf.mode})===l.G9.EDIT,P=N.storyUrl||N.url,L=(0,h.l)(N.comments),O=(0,a.jsx)(m.A,{component:C,href:P,story:N}),M=(0,a.jsxs)("div",{className:(0,i.A)("mt-3 flex flex-wrap gap-4 font-inter text-sm text-gray-600",{"mb-5":r===v.V.TOP}),"data-testid":"headline-author",children:[N.byline&&(0,a.jsx)("span",{className:"font-medium",children:(0,p.nx)(N.byline)}),r===v.V.BOTTOM&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"â¢"}),new Date(N.publishFrom).toLocaleString("en-AU",{day:"numeric",month:"long",weekday:"long"}),L&&(0,a.jsx)("span",{className:"hidden md:inline",children:"â¢"})]}),O]}),T=y(_,N.leadImage?(0,a.jsxs)(d.A,{className:"flex flex-col",href:N.storyUrl,noStyle:!0,children:[void 0!==j&&j&&(0,a.jsx)("div",{className:"mt-1 text-xl font-bold text-gray-800",children:(0,g.$E)(N.publishFrom)}),r===v.V.TOP&&M,(0,a.jsx)(f.A,{alt:(null==(t=N.leadImage)?void 0:t.description)||N.title,fixedSize:"cartoonLarge",ignoreCrop:!0,image:N.leadImage,lazyLoad:b,noTransformUrl:N.noTransformUrl,resize:!0,sourceFixedSize:"cartoon",style:{maxWidth:"100%"},title:(null==(o=N.leadImage)?void 0:o.description)||N.title}),r===v.V.BOTTOM&&M]},N.snapshot):null,w);return y(_,T,x,{index:I,story:N,storyListId:S})}},88639:(e,t,o)=>{o.d(t,{V:()=>r});var n,r=((n={})[n.TOP=0]="TOP",n[n.BOTTOM=1]="BOTTOM",n)},97247:(e,t,o)=>{o.d(t,{A:()=>s});var n=o(60143),r=o(92584),a=o(29722),i=o(54166),c=o(32368);function s(e){var t=e.count,o=e.fullCounter,s=e.href;return(0,n.jsxs)("a",{className:(0,a.A)("self-start",{"text-echidna":0!==t}),href:"".concat(void 0===s?"":s,"#comments"),children:[(0,n.jsxs)("span",{className:"fa-stack mr-1 text-center align-top",children:[(0,n.jsx)(i.y,{className:"fa-stack-2x",fixedWidth:!0,icon:r.TOj}),(0,n.jsxs)("span",{className:"fa-stack-1x mt-0.5 text-white",children:[(0,c.f)(t)," ",(0,n.jsx)("span",{className:"sr-only",children:" comments"})]})]}),(void 0===o||o)&&(0,n.jsx)("span",{className:(0,a.A)("hidden font-medium underline md:inline",{"text-echidna":0!==t,"text-gray-900":0===t}),children:0===t?"Have your say":"Join the conversation"})]})}}}]);
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.