PageSourceSearch

https://www.renault.co.uk/client/renault-aib-standalone-7cd6cfad311471c9.js

js renault.co.uk collected 2026-10-01 10:39:12 UTC 8,197 bytes, 1 lines download raw bytes

1"use strict";(self.rspackChunkOne=self.rspackChunkOne||[]).push([[97180],{99247(e,t,n){var i,r=n(71763);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}n.d(t,{},{A:e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fillRule:"evenodd",d:"M15.51 4.055a8.105 8.105 0 0 1 .625 11.23l5.79 5.79-.85.85-5.79-5.79a8.105 8.105 0 1 1 .224-12.08zM10 3.1a6.9 6.9 0 1 0 0 13.8 6.9 6.9 0 0 0 0-13.8",clipRule:"evenodd"})))})},47486(e,t,n){var i,r=n(71763);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}n.d(t,{},{A:e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:15,height:15,fill:"none"},e),i||(i=r.createElement("path",{fill:"#000",d:"M7.49 14.556q0-1.51.598-2.839a7.2 7.2 0 0 1 1.592-2.31 7.5 7.5 0 0 1 2.378-1.547 7.4 7.4 0 0 1 2.921-.582 7.6 7.6 0 0 1-2.921-.564A7.7 7.7 0 0 1 9.68 5.149a7.2 7.2 0 0 1-1.591-2.31A6.8 6.8 0 0 1 7.489 0a7 7 0 0 1-.58 2.838 7.5 7.5 0 0 1-1.61 2.311A7.7 7.7 0 0 1 2.92 6.714 7.6 7.6 0 0 1 0 7.278q1.554 0 2.92.582A7.5 7.5 0 0 1 5.3 9.407a7.5 7.5 0 0 1 1.61 2.31q.58 1.329.58 2.839"})))})},74985(e,t,n){n.d(t,{l:()=>c});var i=n(91987),r=n(97500),a=n.n(r),s=n(50865),l=n(75457),o=n(59438);let c=({isLabelVisible:e=!1,onClick:t,onMouseEnter:n,onMouseLeave:r,textContent:c,width:u="400px",type:d="button"})=>(0,i.jsx)(l.FW,{children:(0,i.jsx)("button",{type:d,className:a()("IaCta",{"is-label-visible":e}),onClick:t,onMouseEnter:n,onMouseLeave:r,children:(0,i.jsxs)(l.PY.div,{className:a()("IaCta__inner",{"is-label-visible":e}),initial:"collapsed",animate:e?"open":"collapsed",variants:{open:{width:u},collapsed:{width:"32px"}},layout:!1,transition:{duration:.5,ease:"easeInOut"},children:[(0,i.jsx)(o.A,{isLabelVisible:e}),(0,i.jsx)(l.PY.div,{className:"IaCta__innerText",initial:!1,animate:e?"open":"collapsed",variants:{open:{transform:"translateX(0%)",opacity:1},collapsed:{transform:"translateX(100%)",opacity:0}},transition:{duration:.4,ease:"easeInOut"},layout:!1,children:(0,i.jsx)(l.Ny,{mode:"wait",children:(0,i.jsx)(l.PY.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeInOut"},layout:!1,children:c?.type==="rte"?(0,i.jsx)(s.d,{content:c.content}):(0,i.jsx)("span",{className:"IaCta__innerTextLabel",children:c?.content})},c?.type)})})]})})})},59438(e,t,n){n.d(t,{A:()=>d});var i,r=n(91987),a=n(97500),s=n.n(a),l=n(71763);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}let c=e=>l.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none",viewBox:"0 0 36 37"},e),i||(i=l.createElement("path",{fill:"#000",d:"M10.18 19.472h3.127L21.297 34H18.17zm5.559-14.528h3.126l7.99 14.528h-3.127zm.694 14.528h3.127L27.55 34h-3.127zm5.558-14.528h3.127l7.99 14.528H29.98z"})));var u=n(47486);let d=({isLabelVisible:e})=>(0,r.jsxs)("div",{className:"ChatBotAskLogo",children:[(0,r.jsx)(c,{}),(0,r.jsx)(u.A,{className:s()("ChatBotAskLogo__star",{"is-hover":e})})]})},14257(e,t,n){n.r(t);var i=n(91987),r=n(71763),a=n(20496),s=n(15444),l=n(74985),o=n(61124),c=n(93196),u=n(99247),d=n(32464),p=n(78948),h=n(20409);let v={setCurrentHook:n(62017).T},g=(0,a.Ng)(({page:{data:e={}}})=>({useOurAiLabel:e?.chatBotParams?.general?.useOurAiLabel}),v),f=e=>e.replace(/<[^>]*>/g,"").trim(),x=g(({editContext:e,title:t,alternativeBackground:n,alternativeMode:a,alwaysDisplayButton:v,hookQuestions:g,setCurrentHook:x,useOurAiLabel:m})=>{let{setAibMountedDelta:b,setAibBottomReached:y,setAiBotOpen:w}=(0,r.useContext)(s.V4)||{};(0,r.useEffect)(()=>{if(!v)return b?.(1),()=>b?.(-1)},[v,b]);let{ref:j,isVisible:A,entry:_}=(0,h.A)({stayVisible:!1});(0,r.useEffect)(()=>{if(!_)return;let e=_.boundingClientRect.top<0;y?.(A||e)},[A,_,y]);let O=(0,r.useMemo)(()=>(0,d.Hj)(g),[g]),I=(0,r.useMemo)(()=>O.map(e=>f(e.title??"")).filter(Boolean),[O]),C=(0,r.useCallback)(e=>{x({currentQuestion:e,questions:I,triggerStart:0,triggerEnd:0,trackingComponentKey:"S358.0 AIB Standalone"}),w?.(!0),(0,p.d)({event:"chatbot_open_ia",component_key:"S358.0 AIB Standalone",toggleType:""===e?"Basic":"Hooks"})},[I,w,x]);return(0,i.jsx)(o.G,{variant:a?"extended-bg-inverted":n?"extended-bg-alternative":void 0,children:(0,i.jsxs)("div",{className:"AIB",children:[t&&(0,i.jsx)("p",{className:"AIB__title",children:t}),O.length>0&&(0,i.jsx)("ul",{className:"AIB__questions",children:O.map(e=>e.title?(0,i.jsx)("li",{className:"AIB__question",children:(0,i.jsxs)("button",{type:"button",className:"AIB__questionButton",onClick:()=>{C(f(e.title))},children:[(0,i.jsx)("span",{className:"AIB__questionLabel",children:f(e.title)}),(0,i.jsx)(u.A,{className:"AIB__questionIcon"})]})},e.aemKey):null)}),(0,i.jsx)("div",{className:"AIB__ctaWrapper",children:(0,i.jsx)(l.l,{isLabelVisible:!0,onClick:()=>{C("")},textContent:t?{content:t,type:"label"}:m?{content:m,type:"label"}:void 0})}),(0,i.jsx)("div",{ref:j,className:"AIB__bottomMarker","aria-hidden":!0}),(0,i.jsx)(c.Cq,{editContext:e})]})})});n.d(t,{},{default:x})},62017(e,t,n){var i=n(84183);n.d(t,{},{T:e=>({type:i.j.SET_IA_SCROLL_HOOK,payload:{iaScrollHook:e}})})},20409(e,t,n){var i=n(71763),r=n(24948),a=n(5839);n.d(t,{},{A:e=>{let t=(0,i.useMemo)(()=>(e=>{let t="u">typeof window&&a.LO.large&&window.innerWidth>=a.LO.large,{role:n,options:i={},stayVisible:r=!0}=e;return"lazyload"===n?i.rootMargin=`0px -10px ${t?"200px":"30px"} 0px`:"animation"===n?i.rootMargin=`0px -10px ${t?"-140px":"-100px"} 0px`:"technical"===n&&(i.rootMargin="0px -10px 0px 0px"),{...i,triggerOnce:r}})(e),[e]),{ref:n,inView:s=!1,entry:l}=(0,r.Wx)(t);return{ref:n,isVisible:s,entry:l}}})},24948(e,t,n){var i,r,a=n(71763),s=Object.defineProperty,l=new Map,o=new WeakMap,c=0;function u({threshold:e,delay:t,trackVisibility:n,rootMargin:r,scrollMargin:s,root:d,triggerOnce:p,skip:h,initialInView:v,fallbackInView:g,onChange:f}={}){var x;let[m,b]=a.useState(null),y=a.useRef(f),w=a.useRef(v),[j,A]=a.useState({inView:!!v,entry:void 0});y.current=f,a.useEffect(()=>{let a;if(void 0===w.current&&(w.current=v),!h&&m)return a=function(e,t,n={},r=i){if(void 0===window.IntersectionObserver&&void 0!==r){let i=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}let{id:a,observer:s,elements:u}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?!(n=e.root)?"0":(o.has(n)||(c+=1,o.set(n,c.toString())),o.get(n)):e[t]}`}).toString(),n=l.get(t);if(!n){let i,r=new Map,a=new IntersectionObserver(t=>{t.forEach(t=>{var n;let a=t.isIntersecting&&i.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=a),[...null!=(n=r.get(t.target))?n:[]].forEac
1h(e=>{e(a,t)})})},e);i=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},l.set(t,n)}return n}(n),d=u.get(e)||[];return u.has(e)||u.set(e,d),d.push(t),s.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(u.delete(e),s.unobserve(e)),0===u.size&&(s.disconnect(),l.delete(a))}}(m,(e,t)=>{let n=w.current;w.current=e,(void 0!==n||e)&&(A({inView:e,entry:t}),y.current&&y.current(e,t),t.isIntersecting&&p&&a&&(a(),a=void 0))},{root:d,rootMargin:r,scrollMargin:s,threshold:e,trackVisibility:n,delay:t},g),()=>{a&&a()}},[Array.isArray(e)?e.toString():e,m,d,r,s,p,h,n,g,t]);let _=null==(x=j.entry)?void 0:x.target,O=a.useRef(void 0);m||!_||p||h||O.current===_||(O.current=_,A({inView:!!v,entry:void 0}),w.current=v);let I=[b,j.inView,j.entry];return I.ref=I[0],I.inView=I[1],I.entry=I[2],I}a.Component,null!=(null!=(r=a.useInsertionEffect)?r:a.useLayoutEffect)||a.useEffect,n.d(t,{Wx:()=>u})}}]);

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.