1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6134],{10830:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/news",function(){return l(70734)}])},33827:function(e,t,l){"use strict";var n=l(85893);t.Z=e=>{let{error:t="Something went wrong and we are trying our best to fix it, please try again later"}=e;return(0,n.jsxs)("div",{className:"bg-rose-100 p-4 rounded-xl min-h-[100px] flex flex-col gap-4 justify-start items-start w-full text-rose-700 mb-auto",children:[(0,n.jsx)("span",{className:"text-xl font-medium",children:"Oops, something went wrong"}),(0,n.jsx)("span",{children:t.length>180||!t?"Something went wrong and we are trying our best to fix it, please try again later":t})]})}},4672:function(e,t,l){"use strict";l.d(t,{Z:function(){return h}});var n=l(85893),r=l(67294),a=l(44593),s=l(37319),i=l(86060),o=l(33827),c=e=>{let{isValidating:t,loadMore:l}=e;return(0,n.jsx)("div",{className:"flex items-center justify-center pt-8",children:t?"Loading...":(0,n.jsx)("button",{type:"button",className:"px-8 py-2 rounded-full text-sm font-semibold ring-1 ring-gray-300 hover:ring-sandy-gold-400 hover:ring-2 active:ring-inset",onClick:l,children:"Load More"})})},d=l(9632),u=l(66917),m=()=>{let[e,t]=(0,r.useState)(!0);return window.onscroll=()=>{document.body.scrollTop>20||document.documentElement.scrollTop>20?t(!0):t(!1)},(0,n.jsxs)("button",{type:"button",className:"".concat(e?"flex":"hidden"," group fixed bottom-12 right-4 sm:right-10 md:right-20\n 2xl:right-32 z-50 rounded-full bg-black\n opacity-50 p-2 items-center hover:opacity-60"),onClick:()=>{document.body.scrollTop=0,document.documentElement.scrollTop=0},children:[(0,n.jsx)(u.Z,{d:d.ci.arrowUp,stroke:"#fff"}),(0,n.jsx)("span",{className:"opacity-0 transition-opacity bg-gray-800 px-1 text-xs text-gray-100 rounded absolute right-0 bottom-12 group-hover:opacity-100 whitespace-nowrap ",children:"Go Top"})]})};let x=()=>(0,n.jsx)(i.Z,{count:12,height:"h-2",width:"w-full",margin:"my-6"});var h=e=>{var t;let{generateApi:l,renderListItem:r,EmptyDataComponent:i,LoadingSkeleton:d=x,pageSize:u,listStyle:h="flex flex-col gap-4"}=e,{data:g,size:f,setSize:p,isLoading:v,isValidating:j,error:w,mutate:b}=(0,a.ZP)(e=>l(e,u),s.SK),y=g?[].concat(...g):[];if(v)return(0,n.jsx)(d,{});let N=!y||0===y.length,_=N||g&&(null===(t=g[g.length-1])||void 0===t?void 0:t.length)<u;return w?(0,n.jsx)(o.Z,{}):N?(0,n.jsx)(i,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:h,children:y&&y.length>0?y.map(e=>e?(0,n.jsx)("div",{children:r({item:e,mutate:b})},null==e?void 0:e.id):null):null}),_?null:(0,n.jsx)(c,{isValidating:j,loadMore:()=>{p(f+1)}}),(0,n.jsx)(m,{})]})}},86060:function(e,t,l){"use strict";l.d(t,{Z:function(){return r}});var n=l(85893);function r(e){let{count:t,height:l,width:r,margin:a}=e,s=[];for(let e=0;e<t;e++)s.push((0,n.jsx)("div",{className:"bg-gray-200 rounded dark:bg-gray-800 w-full ".concat(l," ").concat(a)},"skl-".concat(e)));return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{role:"status",className:"".concat(r," animate-pulse"),children:s})})}},70734:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return v},default:function(){return j}});var n=l(85893);l(67294);var r=l(94398),a=l(41664),s=l.n(a),i=l(37319),o=l(36059),c=l(66917),d=e=>{var t,l,r,a;let{article:d}=e;if(!d)return null;let{title:u,publish_date:m,coverImage:x}=null==d?void 0:d.attributes,h="".concat(null==d?void 0:d.id,"/").concat((0,i.hd)(u)),g=m?(0,i.x1)(m,"dd MMM yyyy"):"";return(0,n.jsx)("div",{className:"relative rounded-[16px] w-full shadow-md overflow-hidden",children:(0,n.jsxs)(s(),{href:"/news/".concat(h),children:[(0,n.jsxs)("div",{className:"w-full flex items-end justify-end cursor-pointer transition-all ease-in-out duration-300 hover:scale-105",children:[(0,n.jsx)(o.Z,{className:"w-full object-top border z-0",style:{aspectRatio:"7/8"},width:500,height:500,objectFit:"object-cover",src:(0,i.Cp)(null==x?void 0:null===(l=x.data)||void 0===l?void 0:null===(t=l.attributes)||void 0===t?void 0:t.url),alt:(null==x?void 0:null===(a=x.data)||void 0===a?void 0:null===(r=a.attributes)||void 0===r?void 0:r.alternativeText)||u}),(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black opacity-70 transition-opacity z-10 rounded-lg"})]}),(0,n.jsxs)("div",{className:"absolute bottom-4 left-0 z-10 text-white px-6",children:[(0,n.jsx)("p",{className:"text-sm",children:g}),(0,n.jsx)("p",{className:"font-medium my-3 text-lg capitalize",children:u}),(0,n.jsxs)("p",{className:"text-sandy-gold-500 text-xs flex items-center",children:["Read More",(0,n.jsx)("span",{children:(0,n.jsx)(c.Z,{d:"M8.25 4.5l7.5 7.5-7.5 7.5",fill:"none",stroke:"#FCD404",strokeWidth:"2",className:"w-4 h-4"})})]})]})]})})},u=l(86060),m=l(4672);let x=()=>(0,n.jsx)("div",{className:"w-full px-4 py-10 bg-gray-50",children:"No Article found"}),h=e=>(0,n.jsx)(d,{article:e.item}),g=()=>(0,n.jsx)("div",{className:"w-full grid sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-6",children:[1,2,3,4].map(e=>(0,n.jsx)("div",{className:"relative rounded-[16px] w-full h-96 shadow-md overflow-hidden bg-gray-300 animate-pulse",children:(0,n.jsxs)("div",{className:"absolute bottom-4 left-0 z-10 text-white px-6",children:[(0,n.jsx)(u.Z,{count:1,width:"w-40",height:"h-4",margin:"my-4"}),(0,n.jsx)(u.Z,{count:1,width:"w-60",height:"h-4",margin:"my-4"}),(0,n.jsx)(u.Z,{count:1,width:"w-40",height:"h-4",margin:"my-4"})]})},e))});var f=()=>(0,n.jsx)("div",{className:"w-full py-10",children:(0,n.jsx)(m.Z,{generateApi:(e,t)=>"/api/news?pageSize=".concat(t,"&page=").concat(e+1),renderListItem:h,EmptyDataComponent:x,LoadingSkeleton:g,pageSize:8,listStyle:"grid sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-6"})});let p=()=>(0,n.jsx)("div",{className:"w-full border-t",children:(0,n.jsxs)("div",{className:"container py-10 mx-auto px-4",children:[(0,n.jsxs)("div",{className:"text-center mb-8",children:[(0,n.jsx)("p",{className:"text-3xl text-true-blue-500 font-semibold uppercase mb-8",children:"Latest News"}),(0,n.jsx)("p",{className:"text-base text-gray-600 font-light",children:"Learn more about Australian Owned and Australian Owned Businesses"})]}),(0,n.jsx)(f,{})]})});var v=!0,j=e=>{let{page:t,header:l,footer:a,navigation:s}=e;return(0,n.jsx)(r.Z,{page:t,header:l,footer:a,navigation:s,contentAfter:(0,n.jsx)(p,{})})}},44593:function(e,t,l){"use strict";l.d(t,{ZP:function(){return c}});var n=l(67294),r=l(95591),a=l(11753),s=l(61688);let i=Promise.resolve(),o=e=>(0,a.qC)(e?e(0,null):null)[0],c=(0,a.xD)(r.ZP,e=>(t,l,r)=>{let c;let d=(0,n.useRef)(!1),{cache:u,initialSize:m=1,revalidateAll:x=!1,persistSize:h=!1,revalidateFirstPage:g=!0,revalidateOnMount:f=!1,parallel:p=!1}=r;try{(c=o(t))&&(c="$inf$"+c)}catch(e){}let[v,j,w]=(0,a.JN)(u,c),b=(0,n.useCallback)(()=>(0,a.o8)(v()._l)?m:v()._l,[u,c,m]);(0,s.useSyncExternalStore)((0,n.useCallback)(e=>c?w(c,()=>{e()}):()=>{},[u,c]),b,b);let y=(0,n.useCallback)(()=>{let e=v()._l;return(0,a.o8)(e)?m:e},[c,m]),N=(0,n.useRef)(y());(0,a.LI)(()=>
1{if(!d.current){d.current=!0;return}c&&j({_l:h?N.current:y()})},[c,u]);let _=f&&!d.current,k=e(c,async e=>{let n=v()._i,s=[],i=y(),[o]=(0,a.JN)(u,e),c=o().data,d=[],m=null;for(let e=0;e<i;++e){let[i,o]=(0,a.qC)(t(e,p?null:m));if(!i)break;let[h,f]=(0,a.JN)(u,i),v=h().data,j=x||n||(0,a.o8)(v)||g&&!e&&!(0,a.o8)(c)||_||c&&!(0,a.o8)(c[e])&&!r.compare(c[e],v);if(l&&j){let t=async()=>{f({data:v=await l(o),_k:o}),s[e]=v};p?d.push(t):await t()}else s[e]=v;p||(m=v)}return p&&await Promise.all(d.map(e=>e())),j({_i:a.i_}),s},r),Z=(0,n.useCallback)(function(e,t){let l="boolean"==typeof t?{revalidate:t}:t||{},n=!1!==l.revalidate;return c?(n&&((0,a.o8)(e)?j({_i:!0}):j({_i:!1})),arguments.length?k.mutate(e,{...l,revalidate:n}):k.mutate()):i},[c,u]),C=(0,n.useCallback)(e=>{let l;if(!c)return i;let[,n]=(0,a.JN)(u,c);if((0,a.mf)(e)?l=e(y()):"number"==typeof e&&(l=e),"number"!=typeof l)return i;n({_l:l}),N.current=l;let r=[],[s]=(0,a.JN)(u,c),o=null;for(let e=0;e<l;++e){let[l]=(0,a.qC)(t(e,o)),[n]=(0,a.JN)(u,l),i=l?n().data:a.i_;if((0,a.o8)(i))return Z(s().data);r.push(i),o=i}return Z(r)},[c,u,Z,y]);return{size:y(),setSize:C,mutate:Z,get data(){return k.data},get error(){return k.error},get isValidating(){return k.isValidating},get isLoading(){return k.isLoading}}})}},function(e){e.O(0,[5675,1664,4e3,5591,4069,9756,4398,2888,9774,179],function(){return e(e.s=10830)}),_N_E=e.O()}]);
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.