PageSourceSearch

https://www.westernadvocate.com.au/assets/_next/static/chunks/3805.78f8c8614b2b0aff.js

js westernadvocate.com.au collected 2026-10-02 07:10:38 UTC 10,857 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3805],{9990:(t,r,e)=>{e.d(r,{A:()=>o});var i=e(60143);function o(t){var r=t.isHeading,e=t.title;return(0,i.jsx)("div",{className:"mb-4 break-words border-t-2 border-gray-900 pt-2 font-inter text-base font-semibold text-gray-900","data-testid":"title-top",children:void 0!==r&&r?(0,i.jsx)("h2",{children:e}):e})}},11365:(t,r,e)=>{e.d(r,{W:()=>h,V:()=>p});var i=e(76367),o=e(30694),n=e(60143),a=e(29722),c=e(65389),d=e(9990),s=e(355),l={imageHeight:80,imagePosition:c.zH.RIGHT_BEGIN,imageWidth:80,showByline:!0,showSignpost:!0,showTimestamp:!0,titleSize:"text-base"};function h(t){var r=t.className,e=t.headlineProps,c=t.isHeading,h=t.limit,u=t.numbered,p=t.stories,f=t.storyListId,m=t.title,g=(null!=p?p:[]).slice(0,h);return(0,n.jsxs)("div",{className:void 0===r?"pt-8 md:mt-6 lg:mt-0 rounded-lg":r,"data-testid":"titled-story-list-one-column",children:[(0,n.jsx)(d.A,{isHeading:c,title:m}),(0,n.jsx)("div",{className:"mb-10 grid divide-gray-200 border-b border-gray-200 pb-4 md:grid-cols-1 md:divide-x-1",children:g.length>0&&(0,n.jsx)("div",{className:"grid grid-cols-1 divide-y-1 divide-gray-200",children:g.map(function(t,r){return(0,n.jsx)("div",{className:(0,a.A)("py-2",{"md:pb-0":r===g.length-1,"pt-0":0===r}),"data-testid":"titled-story-list-one-column--story",children:(0,n.jsxs)("div",{className:(0,a.A)({"flex flex-row":u}),style:{minHeight:"102px"},children:[u&&(0,n.jsx)("div",{className:"mr-4 py-1.5 font-inter text-xl font-bold text-gray-500",children:r+1}),(0,n.jsx)(s.A,(0,o._)((0,i._)({},l,e),{headlineWrapperClassName:(0,a.A)("py-1.5",{grow:u}),imageWrapperClassName:"w-20",index:r,isHeading:c,story:t,storyListId:f}))]})},t.id)})})})]})}var u={imageHeight:80,imagePosition:c.zH.RIGHT_BEGIN,imageWidth:80,showByline:!0,showSignpost:!0,showTimestamp:!0,titleSize:"text-base"};let p=function(t){var r=t.className,e=t.headlineProps,c=t.isHeading,l=t.limit,h=t.numbered,p=t.stories,f=t.storyListId,m=t.title,g=(null!=p?p:[]).slice(0,l),v=g.slice(0,Math.ceil(l/2)),x=g.slice(Math.ceil(l/2),l),w=x.length;return(0,n.jsxs)("div",{className:void 0===r?"pt-8 md:mt-6 lg:mt-0 rounded-lg":r,children:[(0,n.jsx)(d.A,{isHeading:c,title:m}),(0,n.jsxs)("div",{className:"mb-10 grid divide-y-1 border-b border-gray-300 pb-4 md:grid-cols-2 md:divide-x-1 md:divide-y-0 md:divide-gray-300",children:[v.length>0&&(0,n.jsx)("div",{className:"grid grid-cols-1 divide-y-1 divide-gray-300 md:mr-5 xl:mr-7",children:v.map(function(t,r){return(0,n.jsx)("div",{className:(0,a.A)("py-3",{"md:pb-0":r===v.length-1,"pt-0":0===r}),"data-testid":"titled-story-list-two-column--story",children:(0,n.jsxs)("div",{className:(0,a.A)({"flex flex-row":h}),style:{minHeight:"102px"},children:[h&&(0,n.jsx)("div",{className:"mr-4 py-1.5 font-inter text-xl font-bold text-gray-500",children:r+1}),(0,n.jsx)(s.A,(0,o._)((0,i._)({},u,e),{headlineWrapperClassName:(0,a.A)("py-1.5",{grow:h}),index:r,isHeading:c,story:t,storyListId:f}))]})},t.id)})}),x.length>0&&(0,n.jsx)("div",{className:"grid-cols-1 divide-y-1 divide-gray-300 pl-0 md:pl-5 lg:grid-cols-1 xl:pl-7",children:x.map(function(t,r){return(0,n.jsx)("div",{className:(0,a.A)("py-3",{"md:pb-0":r===x.length-1,"pt-0":0===r}),"data-testid":"titled-story-list-two-column--story",children:(0,n.jsxs)("div",{className:(0,a.A)({"flex flex-row":h}),style:{minHeight:"102px"},children:[h&&(0,n.jsx)("div",{className:"mr-4 py-1.5 font-inter text-xl font-bold text-gray-500",children:w+r+1}),(0,n.jsx)(s.A,(0,o._)((0,i._)({},u,e),{headlineWrapperClassName:(0,a.A)("py-1.5",{grow:h}),index:r,isHeading:c,story:t,storyListId:f}))]})},t.id)})})]})]})}},31817:(t,r,e)=>{e.d(r,{$8:()=>f,GI:()=>b,Ix:()=>s,JE:()=>w,Pz:()=>c,Sz:()=>u,WO:()=>v,es:()=>h,gf:()=>x,j6:()=>y,py:()=>p,vX:()=>g});var i,o,n=e(76367),a=e(91167),c=((i={}).CROP="crop",i.SCALE="scale",i.MAX="max",i),d={landscape:"aspect-w-16 aspect-h-9",portrait:"",square:"aspect-w-1 aspect-h-1",strap:""};function s(t){return d[function(t){var r="landscape";if(t){var e=t.cropHeight,i=t.cropWidth;void 0!==e&&void 0!==i&&(Math.min(i,e)/Math.max(i,e)>.8?r="square":e/i<.3?r="strap":e>i&&(r="portrait"))}return r}(t)]}var l={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 h(t){var r,e,i=t.sourceHeight,o=t.sourceWidth,n={cropHeight:i,cropWidth:o,cropX:0,cropY:0,focalX:Math.round(o/2),focalY:Math.round(i/2),scale:1};return o>=i&&(o/i>16/9?(n.cropHeight=i,n.cropWidth=16*i/9):o/i<16/9&&(n.cropWidth=o,n.cropHeight=9*o/16),n.cropX=(o-(null!=(r=n.cropWidth)?r:0))/2,n.cropY=(i-(null!=(e=n.cropHeight)?e:0))/2),n.cropX<0&&(n.cropX=0),n.cropY<0&&(n.cropY=0),n}function u(t){var r=t.aspect,e=t.focalX,i=t.focalY,o=t.height,n=void 0===o?1:o,a=t.scale,c=void 0===a?1:a,d=t.width,s=void 0===d?1:d,l=s/c,h=n/c;r>s/n?h=l/r:l=h*r;var u=i-i/n*h;return{height:Math.round(h),topX:Math.round(e-e/s*l),topY:Math.round(u),width:Math.round(l)}}var p=((o={}).JPG="jpg",o.WEBP="webp",o);function f(t){var r=t.fit,e=t.height,i=t.ignoreCrop,o=void 0!==i&&i,c=t.image,d=t.outputFormat,s=void 0===d?"jpg":d,h=t.size,p=t.useFocalPoint,f=void 0===p||p,m=t.width,g="cropConfig"in c?c.cropConfig:void 0,v={f:"crop",h:e,w:m};if(h&&!(v=(0,n._)({},l[h])))throw Error("Unsupported transform size ".concat(h));if(r&&(v.f=r),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"),o||!((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(o?"max":v.f,".").concat(s):"w".concat(v.w,"_h").concat(v.h,".").concat(s,"?resize_filter=lanczos2&quality=100");else{var x,w,y,b,_=function(t,r){var e=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i="cropConfig"in t?t.cropConfig:void 0;if(!i)return[];if(e&&void 0!==i.focalX&&void 0!==i.focalY){var o=u({aspect:r,focalX:i.focalX-i.cropX,focalY:i.focalY-i.cropY,height:i.cropHeight,width:i.cropWidth}),n=Math.round(o.topX+i.cropX),a=Math.round(o.topY+i.cropY);return[[n,a],[Math.round(n+o.width),Math.round(a+o.height)]]}return[[Math.round(i.cropX),Math.round(i.cropY)],[Math.round(i.cropX+(i.cropWidth||0)),Math.round(i.cropY+(i.cropHeight||0))]]}(c,0===v.h?1:v.w/v.h,f);v.transform="crop",w=(0,a._)(_,2),y=(0,a._)(w[0],2),v.x1=y[0],v.y1=y[1],b=(0,a._)(w[1],2),v.x2=b[0],v.y2=b[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(s)}return v}function m(t){var r=f(t),e="transform/v1/".concat(r.transform,"/frm/").concat(r.path,"/");return"".concat(e).concat(r.request)}function g(t){var r=f(t);return[r.x1+r.x2,r.y1+r.y2]}function v(t){var r=t.fit,e=t.height,i=t.ignoreCrop,o=t.image,n=t.outputFormat,a=t.size,c=t.transformUrl,d=t.useFocalPoint,s=t.width;if(a&&(s||e))throw Error("Cannot use fixedSize and dimensions together");return"".concat(c).concat(m({fit:r,height:e,ignoreCrop:i,image:o,outputFormat:n,size:a,useFocalPoint:d,width:s}))}function x(t){var r=t.fit,e=t.height,i=t.image,o=t.outputFormat,n=t.transformUrl,a=t.width;return"".concat(n).concat(m({fit:void 0===r?"crop":r,height:e,ignoreCrop:!1,image:i,outputFormat:o,useFocalPoint:!1,width:a}))}function w(t){var r=t.height,e=t.image,i=t.outputFormat,o=t.transformUrl,n=t.width;return"".concat(o).concat(m({height:r,ignoreCrop:!0,image:e,outputFormat:void 0===i?"jpg":i,useFocalPoint:!1,width:n}))}function y(t){return"uri"in t&&!!t.uri}function b(t){return new Promise(function(r){var e=new Image;e.onload=function(){return r(!0)},e.onerror=function(){return r(!1)},e.src=t})}},45822:(t,r,e)=>{e.r(r),e.d(r,{default:()=>a});var i=e(60143),o=e(29722),n=e(11365);let a=function(t){var r=t.isSide,e=t.zoneItemData,a=e.limit,c=e.stories,d=e.storyListId,s=e.title;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"block md:hidden lg:block",children:(0,i.jsx)(n.W,{className:(0,o.A)({"pt-8 md:mt-6 lg:ml-0 lg:mt-0":!(void 0!==r&&r)}),isHeading:!0,limit:a,stories:c,storyListId:d,title:s})}),(0,i.jsx)("div",{className:"hidden md:block lg:hidden",children:(0,i.jsx)(n.V,{className:"pt-8 md:mt-6 lg:ml-0 lg:mt-0",limit:a,stories:c,storyListId:d,title:s})})]})}},50172:(t,r,e)=>{e.d(r,{A:()=>l,m:()=>s});var i=e(76367),o=e(30694),n=e(91167),a=e(60143),c=e(45159),d=e(62715),s=(0,c.createContext)({addStory(){},forStory:()=>null});function l(t){var r=t.children,e=(0,d.GV)(function(t){return t.features.viafoura}),l=(0,n._)((0,c.useState)({}),2),h=l[0],u=l[1];
1(0,c.useEffect)(function(){e.enabled&&Object.entries(h).forEach(function(t){var r=(0,n._)(t,2),e=r[0],a=Object.entries(r[1]).filter(function(t){return void 0===(0,n._)(t,2)[1]}).map(function(t){return(0,n._)(t,1)[0]});0!==a.length&&(u(function(t){var r=(0,i._)({},t);return a.forEach(function(t){r[e][t]=null}),r}),fetch("https://livecomments.viafoura.co/v4/livecomments/"+"".concat(e,"/content-containers/")+"comment-count-and-status/by-container-ids",{body:JSON.stringify(a),method:"POST"}).then(function(t){if(!t.ok)throw u(function(t){var r=(0,i._)({},t);return a.forEach(function(t){r[e][t]=0}),r}),Error("Viafoura comment count response error");return t}).then(function(t){return t.json()}).then(function(t){u(function(r){var n,a=!1,c=null!=(n=r[e])?n:{};return(t.forEach(function(t){var r=t.commentCount,e=t.containerId;c[e]!==r&&(a=!0,c[e]=r)}),a)?(0,o._)((0,i._)({},r),{[e]:c}):r})}).catch(function(t){console.error(t)}))})},[h,e]);var p=e.enabled?e.data.sectionUuid:"",f=(0,c.useCallback)(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;e.enabled&&u(function(e){return e[r]&&t in e[r]?e:(0,o._)((0,i._)({},e),{[r]:(0,o._)((0,i._)({},e[r]),{[t]:void 0})})})},[p,e.enabled]),m=(0,c.useCallback)(function(t){var r,e,i;return null!=(e=null==(i=h[null!=(r=t.viafouraSyndicationSectionUuid)?r:p])?void 0:i[t.id])?e:null},[h,p]),g=(0,c.useMemo)(function(){return{addStory:f,forStory:m}},[f,m]);return e.enabled?(0,a.jsx)(s.Provider,{value:g,children:r}):(0,a.jsx)(a.Fragment,{children:r})}}}]);

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.