PageSourceSearch

https://www.ppq.com.au/_next/static/chunks/pages/dealer-leaderboard-cc4d95660f868162.js

js ppq.com.au collected 2026-10-02 11:26:11 UTC 11,360 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6529],{5943:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dealer-leaderboard",function(){return t(84142)}])},84142:function(e,l,t){"use strict";t.r(l),t.d(l,{__N_SSP:function(){return N},default:function(){return y}});var a=t(85893),n=t(67294),s=t(68220),r=t(99888),i=t(6675),c=t(12029),d=t(8015),o=t(43391),h=t(93967),x=t.n(h),m=t(30381),u=t.n(m),g=t(57851),f=t(97386),p=t(65759),b=t(60824),j=t(13303),w=t(2324),v=function(e){let{entry:l,currentMonthTime:t}=e,{pageContent:s,sidebarContent:h,disclaimer:m}=l,v=h&&h.length>0,[N,y]=(0,n.useState)(!0),M=new Date(t),[k,R]=(0,n.useState)(M),[C,E]=(0,n.useState)(10),[Z,_]=(0,n.useState)([]);return(0,n.useEffect)(()=>{y(!0),(0,j.Zn)(k,C).then(e=>{e.success&&e.data?_(e.data.DealerResult):_([]),y(!1)})},[k,C]),(0,a.jsxs)(f.W2,{customClass:(0,w.Ez)(b.fw),customInnerClass:(0,w.Ez)("mb-4 grid w-full grid-cols-1 gap-16 divide-y divide-neutral-300 lg:mb-6",{"lg:grid-cols-5":v}),children:[(0,a.jsxs)("div",{className:x()({"col-span-1 space-y-4 lg:space-y-6":!0,"lg:col-span-3":v}),children:[(0,w.Xf)(s)&&(0,a.jsx)("div",{className:"w-full divide-y divide-neutral-300 rounded-lg border border-black bg-white shadow-lg",children:(0,a.jsx)("div",{className:"prose max-w-none p-4 lg:px-8 lg:py-6",children:(0,a.jsx)(p.Uz,{content:s})})}),(0,a.jsxs)("section",{className:"w-full divide-y divide-neutral-300 overflow-hidden rounded-lg border border-black bg-white shadow-lg",children:[(0,a.jsx)("div",{className:"p-x6 py-4 lg:px-8 lg:py-6",children:(0,a.jsx)("h2",{className:"text-center text-3xl",children:u()(k).format("MMMM YYYY")})}),(0,a.jsxs)("div",{className:"flex p-2 lg:flex-nowrap",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center lg:order-2 lg:w-1/2",children:[(0,a.jsx)("span",{"aria-hidden":!0,className:"mr-3",children:"View top"}),(0,a.jsx)("ul",{className:"flex flex-nowrap items-center space-x-2",children:[10,25,50].map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(f.zx,{label:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"sr-only",children:"View top "}),e.toString(),(0,a.jsx)("span",{className:"sr-only",children:" results"})]}),genre:C===e?"primary":"light",size:"x-small",onClick:()=>{E(e)},disabled:N})},e))})]}),(0,a.jsx)("div",{className:"lg:order-1 lg:w-1/4",children:(0,a.jsx)(f.zx,{label:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"sr-only",children:"View results for "}),u()(k).subtract(1,"month").format("MMMM")]}),genre:"link",size:"small",icon:"chevron-left",iconLocation:"left",onClick:()=>{R(new Date(k.getFullYear(),k.getMonth()-1,1))},disabled:N})}),k.getMonth()<M.getMonth()&&(0,a.jsx)("div",{className:"lg:order-3 lg:w-1/4",children:(0,a.jsx)(f.zx,{label:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"sr-only",children:"View results for "}),u()(k).add(1,"month").format("MMMM")]}),genre:"link",size:"small",icon:"chevron-right",iconLocation:"right",customClasses:"lg:ml-auto",onClick:()=>{R(new Date(k.getFullYear(),k.getMonth()+1,1))},disabled:N})})]}),N?(0,a.jsx)("div",{className:"p-4 lg:p-8",children:(0,a.jsx)(f.TK,{})}):(0,a.jsx)("div",{className:"bg-gray-10 space-y-4 p-6 lg:p-8",children:Z.length>0?(0,a.jsxs)("table",{className:"w-full border-separate",style:{borderSpacing:"0 10px"},children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Rank"}),(0,a.jsx)("th",{children:"Name"}),(0,a.jsx)("th",{children:"Dealership"}),(0,a.jsx)("th",{children:"Rank last month"}),(0,a.jsx)("th",{children:"Change in rank"})]})}),(0,a.jsx)("tbody",{className:"",children:Z.map((e,l)=>{let t=1===e.RankThisMonth,n=Z.filter(l=>l.RankThisMonth===e.RankThisMonth).length>1,s=!!n&&(l+1===Z.length||Z[l+1].RankThisMonth!==e.RankThisMonth),o=x()({"border-t border-b p-3":!0,"border-neutral-600 bg-white":e.RankThisMonth>1,"border-gold-500 bg-gold-50":t});return(0,a.jsxs)("tr",{className:"mb-4 rounded-md shadow-lg",children:[(0,a.jsxs)("td",{className:(0,g.m)(o,"relative rounded-l-md border-l text-center"),children:[(0,a.jsx)("div",{className:x()({"pl-3 text-2xl font-medium":t}),children:e.RankThisMonth}),n&&!s&&(0,a.jsx)("div",{className:"absolute left-[50%] top-full z-10 mt-1.5 flex h-7 w-7 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-neutral-200",children:(0,a.jsx)(r.Z,{className:"inline-block h-4 w-4","aria-hidden":"true"})}),1===e.RankThisMonth&&(0,a.jsx)("div",{className:"absolute -left-2 top-[50%] z-10 flex h-9 w-9 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-gold-500",children:(0,a.jsx)(i.Z,{className:"inline-block h-6 w-6 text-white","aria-hidden":"true"})})]}),(0,a.jsx)("td",{className:o,children:(0,a.jsx)("span",{className:x()({"
1whitespace-nowrap text-lg":t}),children:(0,w.iF)(e.Name)})}),(0,a.jsx)("td",{className:(0,g.m)(o,"text-sm"),children:(0,w.iF)(e.DealerName)}),(0,a.jsx)("td",{className:(0,g.m)(o,"text-center"),children:e.RankLastMonth>0?e.RankLastMonth:"-"}),(0,a.jsx)("td",{className:(0,g.m)(o,x()({"rounded-r-md border-r text-center":!0,"text-green-700":e.RankLastMonth>0&&e.Change<0,"text-red-700":e.RankLastMonth>0&&e.Change>0})),children:e.RankLastMonth>0?(0,a.jsxs)(a.Fragment,{children:[e.Change<0&&(0,a.jsx)(c.Z,{className:"mr-2 inline-block h-4 w-4 text-green-700","aria-label":"Rank increased by "}),e.Change>0&&(0,a.jsx)(d.Z,{className:"mr-2 inline-block h-4 w-4 text-red-700","aria-label":"Rank increased by "}),-1*e.Change]}):"-"})]},l)})})]}):(0,a.jsxs)("div",{className:"text-center",children:["Sorry, we can't find any results for"," ",u()(k).format("MMMM YYYY"),".",(0,a.jsx)("br",{}),"Please try again shortly, or"," ",(0,a.jsx)(f.hh,{href:"/contact-us",children:"contact us"})," for assistance."]})})]})]}),v&&(0,a.jsx)("div",{className:"col-span-1 lg:col-span-2",children:(0,a.jsx)("div",{className:"w-full divide-y divide-neutral-300 rounded-lg border border-black bg-white shadow-lg",children:h.map(e=>{switch(e.__typename){case"sidebarContentSection_Entry":return(0,a.jsx)(a.Fragment,{children:e.sidebarSectionTitle&&""!==e.sidebarSectionTitle||e.sidebarSectionContent&&""!==e.sidebarSectionContent?(0,a.jsxs)("div",{className:"space-y-4 p-4 lg:p-6",children:[e.sidebarSectionTitle&&(0,a.jsx)("h2",{className:"text-xl font-medium",children:e.sidebarSectionTitle}),e.sidebarSectionContent&&(0,a.jsx)("div",{className:"prose max-w-none",children:(0,a.jsx)(p.Uz,{content:e.sidebarSectionContent})})]}):null});case"sidebarLink_Entry":return(0,a.jsx)(a.Fragment,{children:e.sidebarLink&&e.sidebarLink.length>0?(0,a.jsx)("div",{className:"space-y-4 px-4 py-2 lg:px-6 lg:py-4",children:e.sidebarLink.map(e=>(0,a.jsx)(a.Fragment,{children:e.text&&""!==e.text&&e.url&&""!==e.url?(0,a.jsxs)(f.hh,{href:e.url,target:e.target||void 0,children:["string"==typeof e.type&&e.type.includes("Asset")?(0,a.jsx)(o.Z,{className:"mr-2 inline-block h-4 w-4","aria-hidden":"true"}):(0,a.jsx)(r.Z,{className:"mr-2 inline-block h-4 w-4","aria-hidden":"true"}),e.text]}):null}))}):null})}})})}),m&&""!==m&&(0,a.jsx)("div",{className:x()({"col-span-1":!0,"lg:col-span-5":v}),children:(0,a.jsx)("div",{className:"prose max-w-none py-4 text-xs lg:py-8",children:(0,a.jsx)(p.Uz,{content:m})})})]})},N=!0;function y(e){let{entry:l,seo:t,currentMonthTime:n}=e,{title:r}=l;return(0,a.jsxs)("div",{className:b.fw,children:[(0,a.jsx)(s.oA,{title:r,seo:t}),(0,a.jsx)(v,{entry:l,currentMonthTime:n})]})}},8015:function(e,l,t){"use strict";var a=t(67294);let n=a.forwardRef(function(e,l){let{title:t,titleId:n,...s}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":n},s),t?a.createElement("title",{id:n},t):null,a.createElement("path",{fillRule:"evenodd",d:"M10 3a.75.75 0 0 1 .75.75v10.638l3.96-4.158a.75.75 0 1 1 1.08 1.04l-5.25 5.5a.75.75 0 0 1-1.08 0l-5.25-5.5a.75.75 0 1 1 1.08-1.04l3.96 4.158V3.75A.75.75 0 0 1 10 3Z",clipRule:"evenodd"}))});l.Z=n},43391:function(e,l,t){"use strict";var a=t(67294);let n=a.forwardRef(function(e,l){let{title:t,titleId:n,...s}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":n},s),t?a.createElement("title",{id:n},t):null,a.createElement("path",{d:"M10.75 2.75a.75.75 0 0 0-1.5 0v8.614L6.295 8.235a.75.75 0 1 0-1.09 1.03l4.25 4.5a.75.75 0 0 0 1.09 0l4.25-4.5a.75.75 0 0 0-1.09-1.03l-2.955 3.129V2.75Z"}),a.createElement("path",{d:"M3.5 12.75a.75.75 0 0 0-1.5 0v2.5A2.75 2.75 0 0 0 4.75 18h10.5A2.75 2.75 0 0 0 18 15.25v-2.5a.75.75 0 0 0-1.5 0v2.5c0 .69-.56 1.25-1.25 1.25H4.75c-.69 0-1.25-.56-1.25-1.25v-2.5Z"}))});l.Z=n},12029:function(e,l,t){"use strict";var a=t(67294);let n=a.forwardRef(function(e,l){let{title:t,titleId:n,...s}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":n},s),t?a.createElement("title",{id:n},t):null,a.createElement("path",{fillRule:"evenodd",d:"M10 17a.75.75 0 0 1-.75-.75V5.612L5.29 9.77a.75.75 0 0 1-1.08-1.04l5.25-5.5a.75.75 0 0 1 1.08 0l5.25 5.5a.75.75 0 1 1-1.08 1.04l-3.96-4.158V16.25A.75.75 0 0 1 10 17Z",clipRule:"evenodd"}))});l.Z=n},99888:function(e,l,t){"use strict";var a=t(67294);let n=a.forwardRef(function(e,l){let{title:t,titleId:n,...s}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":n},s),t?a.createElement("title",{id:n},t):null,a.createElement("path",{d:"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}),a.createElement("path",{d:"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}))});l.Z=n},6675:function(e,l,t){"use strict";var a=t(67294);let n=a.forwardRef(function(e,l){let{title:t,titleId:n,...s}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":n},s),t?a.createElement("title",{id:n},t):null,a.createElement("path",{fillRule:"evenodd",d:"M10 1c-1.828 0-3.623.149-5.371.435a.75.75 0 0 0-.629.74v.387c-.827.157-1.642.345-2.445.564a.75.75 0 0 0-.552.698 5 5 0 0 0 4.503 5.152 6 6 0 0 0 2.946 1.822A6.451 6.451 0 0 1 7.768 13H7.5A1.5 1.5 0 0 0 6 14.5V17h-.75C4.56 17 4 17.56 4 18.25c0 .414.336.75.75.75h10.5a.75.75 0 0 0 .75-.75c0-.69-.56-1.25-1.25-1.25H14v-2.5a1.5 1.5 0 0 0-1.5-1.5h-.268a6.453 6.453 0 0 1-.684-2.202 6 6 0 0 0 2.946-1.822 5 5 0 0 0 4.503-5.152.75.75 0 0 0-.552-.698A31.804 31.804 0 0 0 16 2.562v-.387a.75.75 0 0 0-.629-.74A33.227 33.227 0 0 0 10 1ZM2.525 4.422C3.012 4.3 3.504 4.19 4 4.09V5c0 .74.134 1.448.38 2.103a3.503 3.503 0 0 1-1.855-2.68Zm14.95 0a3.503 3.503 0 0 1-1.854 2.68C15.866 6.449 16 5.74 16 5v-.91c.496.099.988.21 1.475.332Z",clipRule:"evenodd"}))});l.Z=n}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=5943)}),_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.