PageSourceSearch

https://www.greatlakesadvocate.com.au/assets/_next/static/chunks/190.5c900bf761f3bc6b.js

js greatlakesadvocate.com.au collected 2026-10-02 07:56:54 UTC 13,470 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[148,190],{148:(t,e,r)=>{r.r(e),r.d(e,{GridItem:()=>m,UgcCommentCount:()=>h,default:()=>v});var n=r(60143),o=r(29722),a=r(45159),c=r(62715),i=r(65019),l=r(50172),u=r(32368),d=r(71045),s=r(37942),f=r(54504);function h(t){var e,r=t.id,o=t.state,i=(0,c.GV)(function(t){return t.conf.defaultCommentFeature}),d=(0,a.useContext)(l.m),s=d.addStory,f=d.forStory;if((0,a.useEffect)(function(){s(r)}),"viafoura"!==i||!(0,u.l)(o))return null;var h=null!=(e=f({comments:o,id:r}))?e:0;return h<1?null:(0,n.jsxs)("div",{className:"flex flex-row items-center text-gray-900",children:[(0,n.jsx)("svg",{className:"mr-1",fill:"none",viewBox:"0 0 16 16",width:"16",children:(0,n.jsx)("path",{clipRule:"evenodd",d:"m3.3864 1.543h9.7628c0.6712 0 1.2203 0.6 1.2203 1.3333v8c0 0.7333-0.5491 1.3333-1.2203 1.3333h-8.5424l-2.4407 2.6667v-12c0-0.73333 0.54915-1.3333 1.2203-1.3333zm1.2199 9.3333h8.5424v-8h-9.7627v9.3333l1.2203-1.3333z",fill:"#111827",fillRule:"evenodd"})}),h]})}var m=function(t){var e=t.category,r=t.commentsId,o=t.id,c=t.image,l=t.name,u=t.onClick,f=t.title,m=t.url,g=(0,a.useCallback)(function(){null==u||u(),(0,d.xN)({action:"click",label:f,section:"photos",signPost:e?[e]:void 0,ugc_id:o},"ugc_interaction")},[e,o,u,f]);return(0,n.jsxs)(i.A,{className:"rounded-lg border border-gray-300 bg-white no-underline shadow-sm hover:shadow-md focus:shadow-md @md:w-auto",href:m,noStyle:!0,onClick:g,children:[(0,n.jsx)("div",{className:"overflow-hidden rounded-t-lg",children:(0,n.jsx)("img",{alt:f,className:"h-52 w-full object-cover object-top @md:h-40",src:c})}),(0,n.jsx)("div",{className:"flex w-full items-center p-4",children:(0,n.jsxs)("div",{className:"flex w-full flex-col",children:[(0,n.jsx)("div",{className:"line-clamp-2 h-full min-h-10 text-sm font-semibold",children:f}),(0,n.jsxs)("div",{className:"mt-4 flex text-sm font-medium",children:[(0,n.jsx)("div",{className:"mr-4 line-clamp-2 text-gray-600",children:l}),(0,n.jsx)(h,{id:r,state:s.r$.OPEN})]})]})})]})};function g(t){var e=t.limit,r=t.offset,o=t.ugc;return o.length<r||r<1?null:(0,n.jsx)(n.Fragment,{children:o.slice(r-1,e).map(function(t){var e,r=t.ugcItem,o=r.id,c=r.title;return(0,n.jsx)(a.Fragment,{children:(0,n.jsx)(m,{category:t.ugcItem.categoryName,commentsId:"ugc:".concat(o),id:o,name:null==(e=t.ugcItem.userDetails)?void 0:e.userName,title:c,url:t.ugcItem.canonicalUrl})},t.index)})})}let v=function(t){var e=t.zoneItemData,r=e.limit,a=e.offset,c=e.ugc,i=e.ugcListId,l=a-1,u=Math.min(null!=r?r:c.length,20),d=(0,f.Gr)({limitWithOffset:u+l,loadUgcCount:10,ugcItems:c,ugcListId:i}),s=d.loadMore,h=d.loadedUgcItems,m=d.loadedUgcLimit,v=d.loading,p=d.noMoreUgcItems,x=h.length<u-l,w=h.slice(0,m).map(function(t,e){return{index:e+1,ugcItem:t}});return w.length>0?(0,n.jsx)("div",{className:"@container",children:(0,n.jsxs)("div",{className:"mb-7 mt-5.5 border-gray-300",children:[(0,n.jsx)("div",{"data-testid":"ugc-container",children:(0,n.jsx)("div",{className:"grid w-full gap-4 @md:grid-cols-3",children:(0,n.jsx)(g,{limit:m,offset:a,ugc:w})})}),(0,n.jsx)("div",{className:"mb-5 mt-6 w-full",children:p?(0,n.jsx)("div",{className:"m-auto text-center font-inter text-base text-gray-500","data-testid":"no-more",children:(0,n.jsxs)("div",{className:"font-medium",children:["You have reached the end.",(0,n.jsx)("br",{}),"Fancy some more?"," ",(0,n.jsx)("a",{className:"text-indigo-700 underline",href:"/",children:"Visit our home page"})]})}):!x&&(0,n.jsx)("button",{className:(0,o.A)("m-auto mt-10 flex select-none items-center justify-center","rounded-md border border-gray-900 px-4 py-2 text-sm","font-inter text-gray-900 hover:bg-gray-50 focus:outline-none",{"pointer-events-none opacity-50":v}),"data-testid":"load-button",onClick:function(){return s()},type:"button",children:"Load More"})})]})}):null}},20190:(t,e,r)=>{r.r(e),r.d(e,{default:()=>u});var n=r(60143),o=r(45159),a=r(62715),c=r(31817),i=r(148);function l(t){var e=t.limit,r=t.offset,l=t.stories,u=(0,a.GV)(function(t){return t.settings.transformUrl});return l.length<r||r<1?null:(0,n.jsx)(n.Fragment,{children:l.slice(r-1,e).map(function(t){var e;return(0,n.jsx)(o.Fragment,{children:(0,n.jsx)(i.GridItem,{commentsId:t.story.id,id:t.story.id,image:t.story.leadImage&&(0,c.j6)(t.story.leadImage)?(0,c.WO)({height:400,image:t.story.leadImage,transformUrl:u,width:400}):void 0,name:null!=(e=t.story.byline)?e:"",title:t.story.title,url:t.story.storyUrl})},t.index)})})}function u(t){var e=t.zoneItemData,r=e.limit,o=e.offset,a=void 0===o?1:o,c=e.stories,i=null!=r?r:10;i=i<20?i:20;var u=c.map(function(t,e){return{index:e+a,story:t}});return u.length>0?(0,n.jsx)("div",{className:"@container",children:(0,n.jsx)("div",{className:"mb-7 mt-4",children:(0,n.jsx)("div",{"data-testid":"story-container",children:(0,n.jsx)("div",{className:"grid w-full gap-4 @md:grid-cols-3",children:(0,n.jsx)(l,{limit:i,offset:a,stories:u})})})})}):null}},31817:(t,e,r)=>{r.d(e,{$8:()=>m,GI:()=>j,Ix:()=>u,JE:()=>w,Pz:()=>i,Sz:()=>f,WO:()=>p,es:()=>s,gf:()=>x,j6:()=>y,py:()=>h,vX:()=>v});var n,o,a=r(76367),c=r(91167),i=((n={}).CROP="crop",n.SCALE="scale",n.MAX="max",n),l={landscape:"aspect-w-16 aspect-h-9",portrait:"",square:"aspect-w-1 aspect-h-1",strap:""};function u(t){return l[function(t){var e="landscape";if(t){var r=t.cropHeight,n=t.cropWidth;void 0!==r&&void 0!==n&&(Math.min(n,r)/Math.max(n,r)>.8?e="square":r/n<.3?e="strap":r>n&&(e="portrait"))}return e}(t)]}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 s(t){var e,r,n=t.sourceHeight,o=t.sourceWidth,a={cropHeight:n,cropWidth:o,cropX:0,cropY:0,focalX:Math.round(o/2),focalY:Math.round(n/2),scale:1};return o>=n&&(o/n>16/9?(a.cropHeight=n,a.cropWidth=16*n/9):o/n<16/9&&(a.cropWidth=o,a.cropHeight=9*o/16),a.cropX=(o-(null!=(e=a.cropWidth)?e:0))/2,a.cropY=(n-(null!=(r=a.cropHeight)?r:0))/2),a.cropX<0&&(a.cropX=0),a.cropY<0&&(a.cropY=0),a}function f(t){var e=t.aspect,r=t.focalX,n=t.focalY,o=t.height,a=void 0===o?1:o,c=t.scale,i=void 0===c?1:c,l=t.width,u=void 0===l?1:l,d=u/i,s=a/i;e>u/a?s=d/e:d=s*e;var f=n-n/a*s;return{height:Math.round(s),topX:Math.round(r-r/u*d),topY:Math.round(f),width:Math.round(d)}}var h=((o={}).JPG="jpg",o.WEBP="webp",o);function m(t){var e=t.fit,r=t.height,n=t.ignoreCrop,o=void 0!==n&&n,i=t.image,l=t.outputFormat,u=void 0===l?"jpg":l,s=t.size,h=t.useFocalPoint,m=void 0===h||h,g=t.width,v="cropConfig"in i?i.cropConfig:void 0,p={f:"crop",h:r,w:g};if(s&&!(p=(0,a._)({},d[s])))throw Error("Unsupported transform size ".concat(s));if(e&&(p.f=e),p.path=i.uri.replace(/^\/+|\/+$/g,""),void 0===p.h&&(p.h=0),void 0===p.w&&(p.w=0),void 0===p.f&&(p.f="crop"),o||!((x="cropConfig"in i?i.cropConfig:void 0)&&x.cropWidth))p.transform="resize",p.request=0!==p.h?"w".concat(p.w,"_h").concat(p.h,"_f").concat(o?"max":p.f,".").concat(u):"w".concat(p.w,"_h").concat(p.h,".").concat(u,"?resize_filter=lanczos2&quality=100");else{var x,w,y,j,b=function(t,e){var r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n="cropConfig"in t?t.cropConfig:void 0;if(!n)return[];if(r&&void 0!==n.focalX&&void 0!==n.focalY){var o=f({aspect:e,focalX:n.focalX-n.cropX,focalY:n.focalY-n.cropY,height:n.cropHeight,width:n.cropWidth}),a=Math.round(o.topX+n.cropX),c=Math.round(o.topY+n.cropY);return[[a,c],[Math.round(a+o.width),Math.round(c+o.height)]]}return[[Math.round(n.cropX),Math.round(n.cropY)],[Math.round(n.cropX+(n.cropWidth||0)),Math.round(n.cropY+(n.cropHeight||0))]]}(i,0===p.h?1:p.w/p.h,m);p.transform="crop",w=(0,c._)(b,2),y=(0,c._)(w[0],2),p.x1=y[0],p.y1=y[1],j=(0,c._)(w[1],2),p.x2=j[0],p.y2=j[1],m&&(null==v?void 0:v.focalX)!==void 0&&(p.f="max"),p.request="r".concat(p.x1,"_").concat(p.y1,"_").concat(p.x2,"_").concat(p.y2,"_")+"w".concat(p.w,"_h").concat(p.h,"_f").concat(p.f,".").concat(u)}return p}function g(t){var e=m(t),r="transform/v1/".concat(e.transform,"/frm/").concat(e.path,"/");return"".concat(r).concat(e.request)}function v(t){var e=m(t);return[e.x1+e.x2,e.y1+e.y2]}function p(t){var e=t.fit,r=t.height,n=t.ignoreCrop,o=t.image,a=t.outputFormat,c=t.size,i=t.transformUrl,l=t.useFocalPoint,u=t.width;if(c&&(u||r))throw Error("Cannot use fixedSize and dimensions together");return"".concat(i).concat(g({fit:e,height:r,ignoreCrop:n,image:o,outputFormat:a,size:c,useFocalPoint:l,width:u}))}function x(t){var e=t.fit,r=t.height,n=t.image,o=t.outputFormat,a=t.transformUrl,c=t.width;return"".concat(a).concat(g({fit:void 0===e?"crop":e,height:r,ignoreCrop:!1,image:n,outputFormat:o,useFocalPoint:!1,width:c}))}function w(t){var e=t.height,r=t.image,n=t.outputFormat,o=t.transformUrl,a=t.width;return"".concat(o).concat(g({height:e,ignoreCrop:!0,image:r,outputFormat:void 0===n?"jpg":n,useFocalPoint:!1,width:a}))}function y(t){return"uri"in t&&!!t.uri}function j(t){return new Promise(function(e){var r=new Image;r.onload=function(){return e(!0)},r.onerror=function(){return e(!1)},r.src=t})}},32368:(t,e,r)=>{r.d(e,{f:()=>a,l:()=>o});var n=r(37942);function o(t){return t===n.r$.OPEN}function a(t){return t>9e3?"9k+":t>=1e3?"".concat((t/1e3).toFixed(0),"k"):t.toString()}},50172:(t,e,r)=>{r.d(e,{A:()=>d,m:()=>u});var n=r(76367),o=r(30694),a=r(91167),c=r(60143),i=r(45159),l=r(62715),u=(0,i.createContext)({addStory(){},forStory:()=>null});function d(t){var e=t.children,r=(0,l.GV)(function(t){return t.features.viafoura}),d=(0,a._)((0,i.useState)({}),2),s=d[0],f=d[1];
1(0,i.useEffect)(function(){r.enabled&&Object.entries(s).forEach(function(t){var e=(0,a._)(t,2),r=e[0],c=Object.entries(e[1]).filter(function(t){return void 0===(0,a._)(t,2)[1]}).map(function(t){return(0,a._)(t,1)[0]});0!==c.length&&(f(function(t){var e=(0,n._)({},t);return c.forEach(function(t){e[r][t]=null}),e}),fetch("https://livecomments.viafoura.co/v4/livecomments/"+"".concat(r,"/content-containers/")+"comment-count-and-status/by-container-ids",{body:JSON.stringify(c),method:"POST"}).then(function(t){if(!t.ok)throw f(function(t){var e=(0,n._)({},t);return c.forEach(function(t){e[r][t]=0}),e}),Error("Viafoura comment count response error");return t}).then(function(t){return t.json()}).then(function(t){f(function(e){var a,c=!1,i=null!=(a=e[r])?a:{};return(t.forEach(function(t){var e=t.commentCount,r=t.containerId;i[r]!==e&&(c=!0,i[r]=e)}),c)?(0,o._)((0,n._)({},e),{[r]:i}):e})}).catch(function(t){console.error(t)}))})},[s,r]);var h=r.enabled?r.data.sectionUuid:"",m=(0,i.useCallback)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;r.enabled&&f(function(r){return r[e]&&t in r[e]?r:(0,o._)((0,n._)({},r),{[e]:(0,o._)((0,n._)({},r[e]),{[t]:void 0})})})},[h,r.enabled]),g=(0,i.useCallback)(function(t){var e,r,n;return null!=(r=null==(n=s[null!=(e=t.viafouraSyndicationSectionUuid)?e:h])?void 0:n[t.id])?r:null},[s,h]),v=(0,i.useMemo)(function(){return{addStory:m,forStory:g}},[m,g]);return r.enabled?(0,c.jsx)(u.Provider,{value:v,children:e}):(0,c.jsx)(c.Fragment,{children:e})}},71045:(t,e,r)=>{r.d(e,{SQ:()=>m,X_:()=>f,bp:()=>d,rF:()=>h,xN:()=>s});var n=r(76367),o=r(30694),a=r(73321),c=r(62715),i=r(70044),l=r(63233),u=r(42696);function d(t,e){(0,l.CI)({data:{ad_category:t.categoryText||t.category.name,ad_date:t.publicationDate,ad_id:t.id,ad_title:t.title},event:e})}function s(t,e,r){var a,c,i,u,d;(0,l.CI)({data:(0,o._)((0,n._)({},t),{ad_category:void 0,ad_date:void 0,ad_id:void 0,ad_title:void 0,businessCategory:null!=(a=t.businessCategory)?a:void 0,businessName:null!=(c=t.businessName)?c:void 0,category:null!=(i=t.category)?i:void 0,signPost:null!=(u=t.signPost)?u:void 0,ugc_id:null!=(d=t.ugc_id)?d:void 0}),event:e,storyTags:null!=r?r:void 0})}function f(t,e){return e===i.It?t.images[1]:t.logo}function h(t){if(t.dateBorn){var e,r,n,o=new Date(t.dateBorn);if(t.dateDeceased){var a=new Date(t.dateDeceased);n=a.getFullYear();var c=Math.floor((a.getTime()-o.getTime())/1e3/60/60/24);e=0;for(var i=o.getFullYear();i<=a.getFullYear();i+=1){var l,d=(l=i)%4==0&&(l%100!=0||l%400==0)?366:365;c>=d&&(c-=d,e+=1)}}r=o.getFullYear()}else t.yearDeceased&&(n=t.yearDeceased,t.yearBorn&&(r=t.yearBorn));var s=[];return n&&(r?s.push("".concat(r," - ").concat(n)):s.push(n.toString())),void 0!==e&&s.push("Aged ".concat(e," year").concat((0,u.LS)(e))),s}function m(){var t,e,r,n,o,i=(0,a.useSearchParams)(),l=null!=(t=null==i||null==(n=i.get("q"))?void 0:n.trim())?t:"",u=null!=(e=null==i||null==(o=i.get("date"))?void 0:o.trim())?e:"",d=null!=(r=null==i?void 0:i.get("location"))?r:"",s=(0,c.GV)(function(t){return t.features.ugc.enabled&&t.features.ugc.data.useRegion}),f=null==i?void 0:i.get("region");return{date:u,isSearching:!!(l||u||d),location:d,query:l,region:null===f?s:"1"===f,regionDefault:s}}}}]);

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.