PageSourceSearch

https://www.renault.it/client/renault-cookie-one-trust-1c6d0a89cd37b5a7.js

js renault.it collected 2026-10-02 05:03:15 UTC 6,062 bytes, 1 lines download raw bytes

1"use strict";(self.rspackChunkOne=self.rspackChunkOne||[]).push([[5064],{30789(e,o,n){n.r(o),n.d(o,{default:()=>A});var t=n(71763),i=n(20496),c=n(32464),a=n(78948),s=n(61300),l=n(20987),r=n(57592),d=n(84183);function u(e,o,n){return{type:d.j.SET_CONSENT_GIVEN,payload:{isConsentGiven:e,cookieAuthorization:o,consent:n}}}let w="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",p=(0,s.A)("staticServer"),f="C0002",m="C0003",k="C0004",y="C0005",g="accept",h="refuse",C=()=>{(0,a.d)({event:"cmp.openCookieBanner"},!0)},$=e=>e===g?e:h,b=e=>({ccAdvertising:e.includes(k)?g:h,ccPersonalization:e.includes(y)?g:h,ccSocial:e.includes(m)?g:h,ccWebAnalytics:e.includes(f)?g:h}),v=e=>{e?.length&&e.forEach(e=>{((e,o)=>{if(console.log(`Erasing cookie: ${e} for host: ${o}`),"u"<typeof window)return;let n=window.location.hostname;document.cookie=`${e}=; Max-Age=-99999999; Path=/;Domain=${n}`,document.cookie=`${e}=; Max-Age=-99999999; Path=/;Domain=${o}`,document.cookie=`${e}=; Max-Age=-99999999; Path=/;`,localStorage.removeItem(e);let t=window.location.pathname.split("/");for(let i=0;i<t.length;i++)if(t[i]){let c=t.slice(0,i+1).join("/");document.cookie=`${e}=; Max-Age=-99999999; Path=${c};Domain=${n}`,document.cookie=`${e}=; Max-Age=-99999999; Path=${c};Domain=${o}`,document.cookie=`${e}=; Max-Age=-99999999; Path=${c};`,document.cookie=`${e}=; Max-Age=-99999999; Path=${c}/;Domain=${n}`,document.cookie=`${e}=; Max-Age=-99999999; Path=${c}/;Domain=${o}`,document.cookie=`${e}=; Max-Age=-99999999; Path=${c}/;`}})(e.Name,e.Host)})},A=()=>{let{isGigyaAlreadyRequired:e,isConsentGiven:o,cookieAuthorization:n={}}=(0,i.d4)(e=>e.app),{analyticsParams:s={},siteParams:d={}}=(0,i.d4)(e=>e.page.data),{slug:h}=(0,i.d4)(e=>e.page),A=(0,i.d4)(e=>!!e.page.data.gigyaParams?.enabled),S=(0,i.wA)(),G=(0,t.useRef)(""),[O,P]=(0,t.useState)(!0),L=(0,t.useRef)(!1),M=(0,t.useRef)(!1),T=(0,t.useRef)(!0),x=(0,t.useCallback)(e=>{let o;if(e?.event!=="cmp.consentUpdate"||!e.consents)return;let n={ccLaunched:"yes",...{ccAdvertising:$((o=e.consents).ccAdvertising),ccPersonalization:$(o.ccPersonalization),ccSocial:$(o.ccSocial),ccWebAnalytics:$(o.ccWebAnalytics)}};u&&S(u(!0,n,0))},[S]);(0,l.A)(()=>{if("u"<typeof window||s?.cookies?.apiKey||M.current)return;M.current=!0,window.dataLayer=window.dataLayer||[];let e=window.dataLayer.push;window.dataLayer.forEach(x),window.dataLayer.push=(...o)=>{let n=o.length-1;return x(o[n]),e.apply(window.dataLayer,o)}});let D=(0,t.useCallback)(e=>{if(window.Optanon?.GetDomainData)try{let o=window.Optanon.GetDomainData();if(!o?.Groups)return;let n=o.Groups,t=((e,o)=>{let n=e.split(",").filter(Boolean),t=o.split(",").filter(Boolean),i=[];for(let e=0;e<n.length;e++)-1>=t.indexOf(n[e])&&i.push(n[e]);return i})(e,window.OnetrustActiveGroups||"");if(!t.length||!n.length){G.current=window.OnetrustActiveGroups||"";return}n.forEach(e=>{e.CustomGroupId&&t.includes(e.CustomGroupId)&&v(e.Cookies),e.Hosts?.length&&e.Hosts.forEach(e=>{t.includes(e.HostId)&&v(e.Cookies)})})}catch(e){console.error("Error deleting OneTrust cookies:",e)}},[]),E=(0,t.useCallback)(()=>{if(!e&&A){let e=window.GIGYA_URL;e&&(0,r.lF)(e,!0,()=>{},()=>{})}},[e,A]),I=(0,t.useCallback)(e=>Object.values(b(e)).some(e=>e===g),[]),K=(0,t.useCallback)(e=>e.includes(y)!==(n.ccPersonalization===g)||e.includes(m)!==(n.ccSocial===g)||e.includes(f)!==(n.ccWebAnalytics===g)||e.includes(k)!==(n.ccAdvertising===g),[n]),j=(0,t.useCallback)(async e=>{if(o)K(e)&&window.location.reload();else{let o=(0,c.kG)(s,"cookies.enableConsentMode");(I(e)||o)&&"u">typeof window&&window.freeGTM&&window.freeGTM();let{hostname:n=""}=window?.location||{},t=n.includes("-author");if(!t&&s.kameleoonId){let e=n.includes(".wrd-aws.com")?"6c40oylbib":s.kameleoonId;window.kameleoonQueue=window.kameleoonQueue||[],await (0,r.lF)(`https://${e}.kameleoon.eu/engine.js`,!0,()=>{},()=>{})}if(!t&&s.screebWorkplaceId&&"u">typeof window&&window.freeScreeb&&window.freeScreeb(),!t&&s.activateScriptKey&&e.includes(y)&&await (0,r.lF)(`//cdn.evgnet.com/beacon/renaultsas/${s.activateScriptKey}/scripts/evergage.min.js`,!0,()=>{},()=>{}),(0,c.kG)(s,"cookies.enableFunctionalScript")){let{brand:e="",country:o="",language:n=""}=d;await (0,r.lF)(`${p}/functional/${e}/${o}/${n}/scripts.js`,!0,()=>{},e=>{console.error(e)})}(0,a.d)({event:"ccClose"},!0),(0,a.xv)({event:"ccClose"}),O&&(0,a.xv)({event:"_virtualPageview"}),P(!1),E();let i={ccLaunched:"yes",...b(e)};u&&S(u(!0,i,0)),(0,a.d)({event:"ccFinished",...i},!0)}},[o,O,E,s,d,K,I,S]),F=(0,t.useMemo)(()=>
1{if("u"<typeof window)return null;let{hostname:e=""}=window?.location||{};return e.includes(".wrd-aws.com")&&s?.cookies?.apiKey?"86c71d89-15d6-4e09-855a-31eb7ed306d5":s?.cookies?.apiKey},[s?.cookies?.apiKey]),W=s?.cookies?.pagePolicyLink,R=h&&W&&h===W;return(0,t.useEffect)(()=>{"u">typeof window&&(R?window.document.body.classList.add("hide-consent"):window.document.body.classList.remove("hide-consent"))},[R]),(0,t.useEffect)(()=>{let e=async()=>{let{locale:e}=d,o=`script[src='${w}']`;document.querySelector(o)||await (0,r.lF)(w,!0,()=>{},()=>{},{"data-domain-script":F,"data-language":e})};if("u">typeof window){let{hostname:o=""}=window?.location||{};o.includes("-author")?j(["C0001",f,y,k,m]):(s?.cookies?.apiKey?(window.displayCC=()=>{window.document.body.classList.remove("hide-consent"),window.OneTrust?.ToggleInfoDisplay&&window.OneTrust.ToggleInfoDisplay()},window.consentToSocialCookies=()=>{window.OneTrust?.UpdateConsent&&window.OneTrust.UpdateConsent("Category",`${m}:1`);let e={ccLaunched:"yes",...b(window.OptanonActiveGroups.split(",")),ccSocial:g};u&&S(u(!0,e,0))},window.OptanonWrapper=()=>{D(G.current);let{OptanonActiveGroups:e}=window||{};e&&(document.cookie.includes("OptanonAlertBoxClosed")||s?.cookies?.nobanner?j(e.split(",")):T.current||(console.error("Your onetrust key is not compatible with this domain, please contact 55 team"),j(["C0001"]))),T.current&&(T.current=!1)},e()):(window.displayCC=C,window.consentToSocialCookies=C,E()),L.current||(L.current=!0,window.freeConsentGTM?.()))}},[s,F,j,d,h,D,E,S]),null}}}]);

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.