PageSourceSearch

https://www.ancap.com.au/_next/static/chunks/pages/choose-safety-626b4f9746554d95.js

js ancap.com.au collected 2026-10-02 04:00:31 UTC 10,585 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[214],{1431:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/choose-safety",function(){return a(8753)}])},8753:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return w},default:function(){return N}});var r=a(4051),s=a.n(r),n=a(5893),l=a(7294),o=a(6486),i=a(8458),c=a(5014),d=a(4999),x=a(4430),m=a(9339),u=a(820),h=a(5570),f=a(4821);function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function b(e,t,a,r,s,n,l){try{var o=e[n](l),i=o.value}catch(c){return void a(c)}o.done?t(i):Promise.resolve(i).then(r,s)}function g(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function y(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{},r=Object.keys(a);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){g(e,t,a[t])}))}return e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,s,n=[],l=!0,o=!1;try{for(a=a.call(e);!(l=(r=a.next()).done)&&(n.push(r.value),!t||n.length!==t);l=!0);}catch(i){o=!0,s=i}finally{try{l||null==a.return||a.return()}finally{if(o)throw s}}return n}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return p(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(a);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var j=function(e){var t=e.video,a=e.thumb,r=e.title,s=e.alt,o=e.children,i=(0,l.useState)(!1),c=i[0],x=i[1];return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{onClick:function(){return x(!0)},children:(0,n.jsx)("img",{src:"/images/pages/choose-safety/".concat(a),alt:s||null,className:"w-full cursor-pointer",onClick:function(){return gtag("event","click",{event_category:"Video Click",event_label:"CS LP Video Click"})}})}),(0,n.jsx)(f.V,{open:c,onClose:function(){return x(!1)},className:"relative z-[1000]",children:(0,n.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-80",children:(0,n.jsx)(f.V.Panel,{children:(0,n.jsxs)("div",{className:"fixed top-3 left-3 right-3 bottom-3 md:bottom-10 md:top-10 md:left-10 md:right-10 items-center max-w-6xl h-auto mx-auto overflow-y-auto",children:[(0,n.jsx)("div",{className:" bg-white",children:(0,n.jsxs)("div",{className:"px-3 md:px-16 py-10 md:py-20",children:[(0,n.jsx)("h3",{className:"text-2xl font-semibold text-center",children:r}),(0,n.jsx)("div",{className:"w-24 border-t-2 border-ancap mx-auto mb-6 mt-6"}),(0,n.jsx)("p",{className:"text-md mx-auto max-w-[580px] md:text-lg text-center",children:o}),(0,n.jsxs)("div",{className:"aspect-w-16 aspect-h-9 mt-10 bg-alt-gray-100",children:[(0,n.jsx)(d.Dn,{url:"https://www.youtube.com/embed/".concat(t)})," "]})]})}),(0,n.jsx)("div",{className:"absolute right-5 top-4 md:right-10 md:top-10",children:(0,n.jsx)("button",{className:"outline-none",onClick:function(){return x(!1)},children:(0,n.jsx)(d.JO.Xmark,{size:"3xl"})})})]})})})})]})},w=!0;function N(e){e.mediaReleases;var t=(0,l.useState)([]),a=(t[0],t[1]),r=v((0,i.Q0)(),2),f=(r[0],r[1],v((0,i.m_)(),2)),p=(f[0],f[1]),g=v((0,i.jq)(),1)[0],w=(0,i.QR)().safetyRatingsPath;g.manufacturers.sort((function(e,t){return e.name.localeCompare(t.name)}));return(0,l.useEffect)((function(){var e=function(){var e,t=(e=s().mark((function e(){var t,r,l,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,h.Z)(new Date),r=(0,o.range)(t-2,t+1),e.next=4,fetch(m.hi.search({per_page:9,rating_year:r.join(","),sort_by:"published_at"}),{method:"GET",headers:{"Content-Type":"application/json"}});case 4:return l=e.sent,e.next=7,l.json();case 7:i=e.sent,a(i.results.map((function(e,t){return(0,n.jsx)(x.Ur,y({},e),t)})));case 9:case"end":return e.stop()}}),e)})),function(){var t=this,a=arguments;return new Promise((function(r,s){var n=e.apply(t,a);function l(e){b(n,r,s,l,o,"next",e)}function o(e){b(n,r,s,l,o,"throw",e)}l(void 0)}))});return function(){return t.apply(this,arguments)}}();e()}),[]),(0,n.jsxs)(c.qI,{title:["Check the ANCAP Safety rating of your next car","ANCAP"],description:"Search our free database of ANCAP Safety ratings before choosing your next car.",ogTitle:"Check the ANCAP Safety rating of your next car",ogDescription:"Search our free database of ANCAP Safety ratings before choosing your next car.",ogUrl:"https://ancap.com.au/choose-safety",removeBanner:!0,children:[(0,n.jsxs)("div",{className:"-mb-16 lg:-mb-32 -mt-10 border-b-4 border-white",children:[(0,n.jsxs)("header",{className:"border-b-2 border-white relative flex justify-center h-[450px] sm:h-[465px] md:h-[465px] lg:h-[650px] xl:h-[800
1px] 2xl:h-[800px]",children:[(0,n.jsx)("div",{className:"flex h-full justify-center items-center z-[5] p-5 pt-12 md:pt-24 text-2xl text-black w-full max-w-2xl lg:max-w-4xl",children:(0,n.jsx)("div",{className:"mb-10 text-center max-w-[790px]",children:(0,n.jsxs)("h2",{className:"text-4xl md:text-6xl lg:text-[96px] font-extrabold leading-tight md:leading-none mb-5 uppercase text-white",children:["Choose ",(0,n.jsx)("span",{className:"block text-6xl md:text-[100px] lg:text-[160px]",children:"Safety"})]})})}),(0,n.jsx)("div",{className:"absolute z-0 w-auto min-w-full min-h-full max-w-none block bg-[url('/images/pages/choose-safety/choose-safety-xl.jpg')] bg-cover bg-center"})]}),(0,n.jsx)("div",{className:"text-center border-t-6 border-ancap-200 w-full",children:(0,n.jsxs)("div",{className:"max-w-6xl my-20 mx-auto",children:[(0,n.jsxs)("h2",{className:"md:text-5xl text-2xl font-bold mb-10 md:leading-tight leading-tight",children:["Life is full of choices.",(0,n.jsx)("br",{}),"Some easy. Some more difficult."]}),(0,n.jsx)("p",{className:"text-lg md:text-2xl xl:px-0 md:px-10 px-3 mb-10",children:"But when it comes to your safety and the safety of your loved ones, the choice is easy."}),(0,n.jsx)("p",{className:"text-lg md:text-2xl xl:px-0 md:px-10 px-3 mb-10",children:"Here at ANCAP SAFETY, we\u2019ve crash-tested and rated a broad range of cars, SUVs, utes and vans to give you free and easy access to trusted safety ratings for over 1,000 different makes and models."}),(0,n.jsx)("p",{className:"text-lg md:text-2xl xl:px-0 md:px-10 px-3 mb-10",children:"So whether you\u2019re getting picked up for a first date; about to have your first baby; or taking the leap and purchasing an EV make sure you pause and ask yourself\u2026"}),(0,n.jsx)("p",{className:"font-bold text-lg md:text-2xl xl:px-0 md:px-10 px-3 mb-10",children:" What\u2019s its ANCAP safety rating?"}),(0,n.jsx)("p",{className:"text-lg md:text-2xl xl:px-0 md:px-10 px-3 mb-10",children:"You can check through our database of ANCAP safety ratings for free in just a few clicks."}),(0,n.jsx)("div",{className:"mx-auto flex flex-col items-center max-w-[250px] mt-10",children:(0,n.jsx)(d.zx,{href:w(),"size-":"sm",variant:"custom",secondaryClasses:"w-full text-black border-ancap-200 bg-ancap-200 hover:bg-ancap-50 hover:border-ancap-50 active:border-ancap-50 active:bg-ancap-500 active:text-white",children:"Search Safety Ratings"})})]})}),(0,n.jsxs)("div",{className:"overflow-visible bg-ancap-200 relative bg-alt-gray-100 pt-10 sm:pt-10 md:pt-10 lg:pt-10 pb-20 lg-52",children:[(0,n.jsx)(d.al,{children:(0,n.jsxs)("h2",{className:"md:text-2xl text-lg mt-10 mb-20 leading-relaxed",children:["The choices you make are important.",(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:"font-bold",children:"Choose safety."})]})}),(0,n.jsx)("div",{className:"xl:w-xl lg:w-lg md:w-md mx-auto px-10 sm:px-20",children:(0,n.jsxs)("div",{className:"mx-auto gap-x-8 gap-y-16 pb-10 lg:pb-20 grid grid-cols-1 xl:grid-cols-2 justify-center pt-0 md:pt-10 lg:pt-0 text-center",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(j,{video:"8Q7vdou3GHA",thumb:"first-date.png",title:"First date? Swipe right when it comes to safety.",alt:"First date? Swipe right when it comes to safety."}),(0,n.jsxs)("h4",{className:"md:text-2xl text-lg mb-4",children:[(0,n.jsx)("span",{className:"font-bold block mt-5",children:"First date? "}),"Swipe right when it comes to safety."]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(j,{video:"Vx5oqbTxHYk",thumb:"first-baby.png",title:"First baby? Keep your family safe.",alt:"First baby? Keep your family safe."}),(0,n.jsxs)("h4",{className:"md:text-2xl text-lg mb-4",children:[(0,n.jsx)("span",{className:"font-bold block mt-5",children:"First baby? "}),"Keep your family safe."]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(j,{video:"ZkNm51ryLWQ",thumb:"first-ev.png",title:"First EV? Choose safe and green.",alt:"First EV? Choose safe and green."}),(0,n.jsxs)("h4",{className:"md:text-2xl text-lg mb-4",children:[(0,n.jsx)("span",{className:"font-bold block mt-5",children:"First EV? "}),"Choose safe ",(0,n.jsx)("span",{className:"underline",children:"and"})," green."]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(j,{video:"lC8WKrVxEGY",thumb:"first-grandchild.png",title:"First grandchild? Keep your loved one
1s safe.",alt:"First grandchild? Keep your loved ones safe."}),(0,n.jsxs)("h4",{className:"md:text-2xl text-lg mb-4",children:[(0,n.jsx)("span",{className:"font-bold block mt-5",children:"First grandchild? "}),"Keep your loved ones safe."]})]})]})}),(0,n.jsxs)(d.al,{children:[(0,n.jsx)("div",{className:"w-24 border-t-2 border-black mx-auto mb-6 mt-6"}),(0,n.jsx)("h2",{className:"md:text-2xl text-xl my-10 leading-relaxed font-bold",children:"What\u2019s the safest car for me?"}),(0,n.jsx)("div",{className:"mx-auto flex flex-col items-center max-w-[250px]",children:(0,n.jsx)(d.zx,{onClick:function(){p(!0),gtag("event","click",{event_category:"Button Click",event_label:"Help me choose - Click"})},"size-":"sm",variant:"custom",secondaryClasses:"whitespace-normal sm:whitespace-nowrap bg-white border-white hover:text-gray-600 w-full hover:text-grey-400 text-black",children:"Help me choose"})})]})]})]}),(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:(0,u.ku)()},"product-jsonld")]})}}},function(e){e.O(0,[353,14,774,888,179],(function(){return t=1431,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.