iBet uBet
web content aggregator. Adding the entire web to your favor.
Link to original content:
http://www.renault.co.uk/client/r-main-menu-range-picker-76b05518d192c45d.js
(self.webpackChunkOne=self.webpackChunkOne||[]).push([["7071"],{60221:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r,a=n(67294);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t
a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),r||(r=a.createElement("path",{d:"M15.5 20.725 6.35 12l9.15-8.725 1.38 1.45L9.245 12l7.635 7.275-1.38 1.45z"})))},24190:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r,a=n(67294);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t
a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),r||(r=a.createElement("path",{d:"M8.5 20.725 17.65 12 8.5 3.275l-1.38 1.45L14.755 12 7.12 19.275l1.38 1.45z"})))},72005:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r,a=n(67294);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t
a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),r||(r=a.createElement("path",{fillRule:"evenodd",d:"M13.5 10.5v-5h-3v5h-5v3h5v5h3v-5h5v-3h-5z",clipRule:"evenodd"})))},15873:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r,a=n(67294);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t
a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),r||(r=a.createElement("path",{fillRule:"evenodd",d:"M1.9 22.1h8.2V1.9H1.9v20.2zm7-1.2H3.1V3.1h5.8v17.8zm5 1.2h8.2V1.9h-8.2v20.2zm1.2-1.2h5.8V3.1h-5.8v17.8z",clipRule:"evenodd"})))},98658:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r,a=n(67294);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t
a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),r||(r=a.createElement("path",{fillRule:"evenodd",d:"m4.28 21.855.22.09.21-.095c3.326-1.328 13.156-7.472 15.23-8.77l.37-.23.28-.175V11.28l-.24-.18C14.632 6.811 5.108 2.333 4.75 2.165a3.664 3.664 0 0 1-.01-.005l-.24-.115-1.1.455v18.825l.245.175c.197.144.41.263.635.355zm.32-1.25V3.415c1.77.845 9.71 4.715 14.8 8.47v.125l-.147.092C17.168 13.403 8.05 19.094 4.6 20.605z",clipRule:"evenodd"})))},64063:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(a=r;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(a=r;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;0!=a--;){var r,a,i,o=i[a];if(!e(t[o],n[o]))return!1}return!0}return t!=t&&n!=n}},49090:function(e){e.exports=function(e,r,a){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");"function"==typeof r&&(a=r,r={}),r=r||{},a=a||function(){},o.type=r.type||"text/javascript",o.charset=r.charset||"utf8",o.async=!("async"in r)||!!r.async,o.src=e,r.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(o,r.attrs),r.text&&(o.text=""+r.text),("onload"in o?t:n)(o,a),!o.onload&&t(o,a),i.appendChild(o)};function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}function n(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}}},13913:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(45697),a=n.n(r),i=n(67294),o=n(64063),s=n.n(o),l=n(11062),u=n.n(l),c=Object.defineProperty,d=Object.defineProperties,p=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))h.call(t,n)&&g(e,n,t[n]);if(f)for(var n of f(t))y.call(t,n)&&g(e,n,t[n]);return e},m=(e,t)=>d(e,p(t)),E=(e,t,n)=>new Promise((r,a)=>{var i=e=>{try{s(n.next(e))}catch(e){a(e)}},o=e=>{try{s(n.throw(e))}catch(e){a(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,o);s((n=n.apply(e,t)).next())});function b(e={}){return m(v({},e),{height:0,width:0,playerVars:m(v({},e.playerVars),{autoplay:0,start:0,end:0})})}var C={videoId:a().string,id:a().string,className:a().string,iframeClassName:a().string,style:a().object,title:a().string,loading:a().oneOf(["lazy","eager"]),opts:a().objectOf(a().any),onReady:a().func,onError:a().func,onPlay:a().func,onPause:a().func,onEnd:a().func,onStateChange:a().func,onPlaybackRateChange:a().func,onPlaybackQualityChange:a().func},P=class extends i.Component{constructor(e){super(e),this.destroyPlayerPromise=void 0,this.onPlayerReady=e=>{var t,n;return null==(n=(t=this.props).onReady)?void 0:n.call(t,e)},this.onPlayerError=e=>{var t,n;return null==(n=(t=this.props).onError)?void 0:n.call(t,e)},this.onPlayerStateChange=e=>{var t,n,r,a,i,o,s,l;switch(null==(n=(t=this.props).onStateChange)||n.call(t,e),e.data){case P.PlayerState.ENDED:null==(a=(r=this.props).onEnd)||a.call(r,e);break;case P.PlayerState.PLAYING:null==(o=(i=this.props).onPlay)||o.call(i,e);break;case P.PlayerState.PAUSED:null==(l=(s=this.props).onPause)||l.call(s,e)}},this.onPlayerPlaybackRateChange=e=>{var t,n;return null==(n=(t=this.props).onPlaybackRateChange)?void 0:n.call(t,e)},this.onPlayerPlaybackQualityChange=e=>{var t,n;return null==(n=(t=this.props).onPlaybackQualityChange)?void 0:n.call(t,e)},this.destroyPlayer=()=>this.internalPlayer?(this.destroyPlayerPromise=this.internalPlayer.destroy().then(()=>this.destroyPlayerPromise=void 0),this.destroyPlayerPromise):Promise.resolve(),this.createPlayer=()=>{if("undefined"==typeof document)return;if(this.destroyPlayerPromise){this.destroyPlayerPromise.then(this.createPlayer);return}let e=m(v({},this.props.opts),{videoId:this.props.videoId});this.internalPlayer=u()(this.container,e),this.internalPlayer.on("ready",this.onPlayerReady),this.internalPlayer.on("error",this.onPlayerError),this.internalPlayer.on("stateChange",this.onPlayerStateChange),this.internalPlayer.on("playbackRateChange",this.onPlayerPlaybackRateChange),this.internalPlayer.on("playbackQualityChange",this.onPlayerPlaybackQualityChange),(this.props.title||this.props.loading)&&this.internalPlayer.getIframe().then(e=>{this.props.title&&e.setAttribute("title",this.props.title),this.props.loading&&e.setAttribute("loading",this.props.loading)})},this.resetPlayer=()=>this.destroyPlayer().then(this.createPlayer),this.updatePlayer=()=>{var e;null==(e=this.internalPlayer)||e.getIframe().then(e=>{this.props.id?e.setAttribute("id",this.props.id):e.removeAttribute("id"),this.props.iframeClassName?e.setAttribute("class",this.props.iframeClassName):e.removeAttribute("class"),this.props.opts&&this.props.opts.width?e.setAttribute("width",this.props.opts.width.toString()):e.removeAttribute("width"),this.props.opts&&this.props.opts.height?e.setAttribute("height",this.props.opts.height.toString()):e.removeAttribute("height"),this.props.title?e.setAttribute("title",this.props.title):e.setAttribute("title","YouTube video player"),this.props.loading?e.setAttribute("loading",this.props.loading):e.removeAttribute("loading")})},this.getInternalPlayer=()=>this.internalPlayer,this.updateVideo=()=>{var e,t,n,r;if(void 0===this.props.videoId||null===this.props.videoId){null==(e=this.internalPlayer)||e.stopVideo();return}let a=!1,i={videoId:this.props.videoId};if((null==(t=this.props.opts)?void 0:t.playerVars)&&(a=1===this.props.opts.playerVars.autoplay,"start"in this.props.opts.playerVars&&(i.startSeconds=this.props.opts.playerVars.start),"end"in this.props.opts.playerVars&&(i.endSeconds=this.props.opts.playerVars.end)),a){null==(n=this.internalPlayer)||n.loadVideoById(i);return}null==(r=this.internalPlayer)||r.cueVideoById(i)},this.refContainer=e=>{this.container=e},this.container=null,this.internalPlayer=null}componentDidMount(){this.createPlayer()}componentDidUpdate(e){return E(this,null,function*(){var t,n,r,a,i,o,l,u;if(t=e,n=this.props,t.id!==n.id||t.className!==n.className||(null==(r=t.opts)?void 0:r.width)!==(null==(a=n.opts)?void 0:a.width)||(null==(i=t.opts)?void 0:i.height)!==(null==(o=n.opts)?void 0:o.height)||t.iframeClassName!==n.iframeClassName||t.title!==n.title)this.updatePlayer();if(l=e,u=this.props,l.videoId!==u.videoId||!s()(b(l.opts),b(u.opts)))yield this.resetPlayer();(function(e,t){var n,r;if(e.videoId!==t.videoId)return!0;let a=(null==(n=e.opts)?void 0:n.playerVars)||{},i=(null==(r=t.opts)?void 0:r.playerVars)||{};return a.start!==i.start||a.end!==i.end})(e,this.props)&&this.updateVideo()})}componentWillUnmount(){this.destroyPlayer()}render(){return i.createElement("div",{className:this.props.className,style:this.props.style},i.createElement("div",{id:this.props.id,className:this.props.iframeClassName,ref:this.refContainer}))}};P.propTypes=C,P.defaultProps={videoId:"",id:"",className:"",iframeClassName:"",style:{},title:"",loading:void 0,opts:{},onReady:()=>{},onError:()=>{},onPlay:()=>{},onPause:()=>{},onEnd:()=>{},onStateChange:()=>{},onPlaybackRateChange:()=>{},onPlaybackQualityChange:()=>{}},P.PlayerState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5};var x=P},33988:function(e){"use strict";var t;t=function(){var e={},t={};return e.on=function(e,n){var r={name:e,handler:n};return t[e]=t[e]||[],t[e].unshift(r),r},e.off=function(e){var n=t[e.name].indexOf(e);-1!==n&&t[e.name].splice(n,1)},e.trigger=function(e,n){var r,a=t[e];if(a)for(r=a.length;r--;)a[r].handler(n)},e},e.exports=t},66006:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(22275));t.default={pauseVideo:{acceptableStates:[r.default.ENDED,r.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[r.default.ENDED,r.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[r.default.ENDED,r.default.PLAYING,r.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=t.default},89125:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(9215)),a=s(n(28255)),i=s(n(65279)),o=s(n(66006));function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,r.default)("youtube-player"),u={};u.proxyEvents=function(e){var t={},n=function(n){var r="on"+n.slice(0,1).toUpperCase()+n.slice(1);t[r]=function(t){l('event "%s"',r,t),e.trigger(n,t)}},r=!0,a=!1,o=void 0;try{for(var s,u=i.default[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var c=s.value;n(c)}}catch(e){a=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(a)throw o}}return t},u.promisifyPlayer=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={},r=function(r){t&&o.default[r]?n[r]=function(){for(var t=arguments.length,n=Array(t),a=0;a
1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=(0,a.default)();if(!l&&(l=(0,i.default)(s)),t.events)throw Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw Error('Element "'+e+'" does not exist.');t.events=o.default.proxyEvents(s);var u=new Promise(function(n){(void 0===e?"undefined":r(e))==="object"&&e.playVideo instanceof Function?n(e):l.then(function(r){var a=new r.Player(e,t);return s.on("ready",function(){n(a)}),null})}),c=o.default.promisifyPlayer(u,n);return c.on=s.on,c.off=s.off,c},e.exports=t.default},55900:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(49090));t.default=function(e){return new Promise(function(t){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){t(window.YT);return}var n="http:"===window.location.protocol?"http:":"https:";(0,r.default)(n+"//www.youtube.com/iframe_api",function(t){t&&e.trigger("error",t)});var a=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){a&&a(),t(window.YT)}})},e.exports=t.default},9215:function(e,t,n){(t=e.exports=n(55046)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var a=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(a++,"%c"===e&&(i=a))}),e.splice(i,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&"renderer"===window.process.type||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}t.enable(r())},55046:function(e,t,n){var r;(t=e.exports=a.debug=a.default=a).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,a=0;a
0)return function(e){if((e=String(e)).length>100)return;var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!!i){var o=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return o*a;case"days":case"day":case"d":return o*r;case"hours":case"hour":case"hrs":case"hr":case"h":return o*n;case"minutes":case"minute":case"mins":case"min":case"m":return o*t;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}(e);if("number"===s&&!1===isNaN(e))return o.long?function(e){return i(e,r,"day")||i(e,n,"hour")||i(e,t,"minute")||i(e,1e3,"second")||e+" ms"}(e):function(e){return e>=r?Math.round(e/r)+"d":e>=n?Math.round(e/n)+"h":e>=t?Math.round(e/t)+"m":e>=1e3?Math.round(e/1e3)+"s":e+"ms"}(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function i(e,t,n){return e
(0,r.jsx)("span",{className:i()("VideoControlButton",n,{"is-countDown":a}),role:"button",tabIndex:0,onClick:t,children:e?(0,r.jsx)(s.Z,{className:"VideoControlButton__icon"}):(0,r.jsx)(o.Z,{className:"VideoControlButton__icon"})})},66632:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(85893),a=n(81722),i=n(27361),o=n.n(i),s=n(60221),l=n(24190);let u=(0,a.$j)(function({page:{data:e={}}}){return{isRtl:o()(e,"siteParams.rtl",!1)}})(({isRtl:e,className:t})=>{let n=e?s.Z:l.Z;return(0,r.jsx)(n,{className:t})})},24128:function(e,t,n){"use strict";n.d(t,{M:function(){return p}});var r=n(85893),a=n(81722),i=n(72319),o=n(27205),s=n(58868),l=n(46760);let u=(0,a.$j)(({page:e})=>{var t,n;return{brand:(null===(n=e.data)||void 0===n?void 0:null===(t=n.siteParams)||void 0===t?void 0:t.brand)||"renault"}}),c=(e,t,n,r,a)=>n?void 0!==a?(0,i.dx)((0,s.Z)("/agg/v1/cfg/scene"),{uri:e,profile:n,viewpoint:t,index:a,decorName:r}):(0,i.dx)((0,s.Z)("/agg/vn/unique/{profile}/{viewPoint}.png",{viewPoint:t,profile:n}),{uri:e,decorName:r}):void 0,d=(e,t,n,r,a)=>(0,o.JF)({small:c(e,t,n.small,r,a),medium:c(e,t,n.medium,r,a),large:c(e,t,n.large,r,a),xlarge:c(e,t,n.xlarge,r,a),smallx2:c(e,t,n.smallx2,r,a),mediumx2:c(e,t,n.mediumx2,r,a),largex2:c(e,t,n.largex2,r,a),xlargex2:c(e,t,n.xlargex2,r,a)}),p=u(({uri:e,aspectRatio:t,viewPoint:n,profiles:a,index:i,decorName:o,width:s,height:u,disableLazyLoaded:c,objectFit:p="contain",sizes:f,alt:h,brand:y})=>(0,r.jsx)(l.E,{alt:h,aspectRatio:t,width:s,height:u,objectFit:p,src:d(e,null!=n?n:`${y.charAt(0)}_brandSite_carPicker_1`,a||{},o,i),disableLazyLoaded:c,sizes:f}))},90362:function(e,t,n){"use strict";n.d(t,{M:function(){return r.M}});var r=n(24128)},89078:function(e,t,n){"use strict";n.d(t,{h:()=>E,q:()=>v});var r=n("85893"),a=n("67294"),i=n("13913"),o=n("81722"),s=n("57581"),l=n("36658"),u=n("19350"),c=n("55751"),d=n("51220"),p=n("26547"),f=n("61228");let h=(0,a.createContext)(null),y="mobilize",g=(0,o.$j)(({app:e,page:t})=>{var n,r;return{cookieAuthorization:null==e?void 0:e.cookieAuthorization,brand:null==t?void 0:null===(r=t.data)||void 0===r?void 0:null===(n=r.siteParams)||void 0===n?void 0:n.brand}}),v=({alt:e,description:t,onClick:n,src:i,title:o,youtubeVideoId:s})=>{let[l,u]=(0,a.useState)(!0),{player:p}=(0,a.useContext)(h)||{};return l?(0,r.jsxs)("div",{className:"Youtube__overlay",children:[i?(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)(d.Z,{className:"Youtube__overlayImage",sources:i,alt:e,isCovered:!0}),t&&(0,r.jsxs)("div",{className:"Youtube__media",children:[o&&(0,r.jsx)("p",{className:"Youtube__mediaTitle",children:o}),t&&(0,r.jsx)("p",{className:"Youtube__mediaBodyCopy",children:t})]})]}):(0,r.jsx)("img",{className:"Youtube__overlayImage",src:`https://img.youtube.com/vi/${s}/maxresdefault.jpg`,alt:e}),(0,r.jsx)(c.Z,{className:"Youtube__overlayButton",shouldShowPlayIcon:!0,onClick:()=>{p&&(u(!1),p.playVideo()),null==n||n()}})]}):null},m=({brand:e})=>(0,r.jsxs)("div",{className:"Youtube__socialCookies",children:[(0,r.jsx)(s.b,{className:"Youtube__socialCookiesMessage",content:(0,u.re)("wording.youtubeCookieError")}),(0,r.jsxs)("div",{className:"Youtube__socialCookiesCtas",children:[(0,r.jsx)(f.e,{isInverted:e!==y,useButtonMarkup:!0,variant:"cta-ghost",children:(0,u.re)("wording.refuseCTA")}),(0,r.jsx)(f.e,{isInverted:e!==y,onClick:()=>window.consentToSocialCookies(),useButtonMarkup:!0,variant:"cta-primary",children:(0,u.re)("wording.acceptCTA")})]})]}),E=g(({children:e,cookieAuthorization:t,isMuted:n,isAutoPlay:o,meta:s,youtubeVideoId:u,brand:c})=>{let{ref:d,isVisible:f}=(0,l.Z)({role:"lazyload"}),[y,g]=(0,a.useState)(!1),[v,E]=(0,a.useState)(),[b,C=0]=u?u.split("|"):[],{alt:P,description:x}=s||{},I=(null==t?void 0:t.ccSocial)==="accept",w=(0,a.useMemo)(()=>({player:v}),[v]);return(0,r.jsx)("div",{className:"Youtube",itemProp:"video",itemScope:!0,itemType:"http://schema.org/VideoObject",ref:d,children:I?(0,r.jsxs)(h.Provider,{value:w,children:[f?e:null,f?(0,r.jsxs)(a.Fragment,{children:[!y&&(0,r.jsx)("div",{className:"Youtube__skeleton",children:(0,r.jsx)(p.O,{width:"100%",height:"100%"})}),(0,r.jsx)(i.Z,{videoId:b,opts:{height:"100%",width:"100%",playerVars:{start:C,autoplay:o?1:0,modestbranding:1,rel:0}},onReady:e=>{let t=e.target;E(t),g(!0),n&&t.mute()}})]}):null,P&&(0,r.jsx)("meta",{itemProp:"name",content:P}),u&&(0,r.jsx)("meta",{itemProp:"thumbnailUrl",content:`https://img.youtube.com/vi/${u}/maxresdefault.jpg`}),u&&(0,r.jsx)("meta",{itemProp:"embedUrl",content:`https://www.youtube.com/watch?v=${u}`}),x&&(0,r.jsx)("meta",{itemProp:"description",content:x})]}):(0,r.jsx)(m,{brand:c})})})},55427:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var r=n(85893),a=n(63387),i=n.n(a),o=n(34697);let s=e=>{var{variant:t="default",isInverted:n,isAbsolute:a}=e,s=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r
=0)&&(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r
=0))Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}}return a}(e,["variant","isInverted","isAbsolute"]);let l="aspectRatio"in s&&s.aspectRatio?s.aspectRatio:"auto",u="width"in s&&s.width?s.width:"auto",c="height"in s&&s.height?s.height:"auto",d="zIndex"in s&&s.zIndex?s.zIndex:"1";return(0,r.jsx)("div",{className:i()("Skeleton",{"is-circle":"circle"===t,"is-inverted":n,"is-absolute":a}),style:function(e){for(var t=1;t
o});var r=n("85893"),a=n("63387"),i=n.n(a);let o=({children:e,variant:t="default",leftIcon:n,rightIcon:a})=>{let o=n||a;return(0,r.jsxs)("span",{className:i()("Badge",{"is-electric":"electric"===t,"is-thermic":"thermic"===t,"is-success":"success"===t,"is-error":"error"===t,"is-warning":"warning"===t,"is-info":"info"===t}),children:[n&&(0,r.jsx)(n,{className:"Badge__icon"}),o?(0,r.jsx)("span",{children:e}):e,a&&(0,r.jsx)(a,{className:"Badge__icon"})]})}},26547:function(e,t,n){"use strict";n.d(t,{O:function(){return r.O}});var r=n(55427)},80970:function(e,t,n){"use strict";n.d(t,{s:()=>E});var r=n("85893"),a=n("67294"),i=n("63387"),o=n.n(i),s=n("96761"),l=n("89078"),u=n("77091"),c=n("52669"),d=n("86619"),p=n("24254"),f=n("77213"),h=n("19350");let y=(0,a.createContext)({variant:"default"}),g=({engines:e=[],multimediaCards:t=[],onlyEv:n=!1})=>{let r=(e||[]).map(({energyCategory:e,mainFuelTypeCode:n})=>{let r=(0,p.pC)(e,n);return{energyCategory:e,mainFuelTypeCode:n,energyTag:r,multimediaCard:null==t?void 0:t.find(t=>{var n;return e&&(null==t?void 0:null===(n=t.accessoryCode)||void 0===n?void 0:n.includes(e))})}}),a=r.filter(({energyCategory:e})=>!n||(0,p.kB)(e));return{shouldDisplayExistIn:n&&a.length!==r.length&&a.length>0,engines:a.reduce((e,t)=>e.some(({energyTag:e})=>{var n,r,a;return(null==e?void 0:null===(n=e.value)||void 0===n?void 0:n.code)===(null===(a=t.energyTag)||void 0===a?void 0:null===(r=a.value)||void 0===r?void 0:r.code)})?e:[...e,t],[]).sort((e,t)=>Number((0,p.kB)(t.energyCategory))-Number((0,p.kB)(e.energyCategory))).map(({energyCategory:e,mainFuelTypeCode:t,multimediaCard:n})=>({energyCategory:e,mainFuelTypeCode:t,multimediaCard:n,key:`${e}-${t}`}))}},v=({multimediaCard:e})=>{var t;let{description:n,assets:a=[],name:i}=e||{},o=a&&(0,f.n)(a,"MAIN_PICTURE"),u=a&&(0,f.n)(a,"MAIN_VIDEO_THUMBNAIL"),c=a&&(0,f.n)(a,"MAIN_VIDEO"),d=(null==a?void 0:null===(t=a.find(e=>"MAIN_VIDEO"===e.assetRole))||void 0===t?void 0:t.assetAutoplay)||!1;return(0,r.jsxs)("div",{className:"EnergyBadgeList__modal",children:[c&&(0,r.jsx)("div",{className:"EnergyBadgeList__modalYoutube",children:(0,r.jsx)(l.h,{youtubeVideoId:c,isAutoPlay:d,children:(0,r.jsx)(l.q,{youtubeVideoId:c,src:{small:u},alt:i})})}),!c&&o&&(0,r.jsx)(s.E,{src:{small:o},alt:i||"",width:"100%",aspectRatio:"16/9"}),n&&(0,r.jsx)("p",{className:"EnergyBadgeList__modalDescription",children:n})]})},m=({energyCategory:e,mainFuelTypeCode:t,multimediaCard:n})=>{let{variant:i}=(0,a.useContext)(y),[s,l]=(0,a.useState)(!1),{value:f}=(0,p.pC)(e,t)||{},g=null==f?void 0:f.code,m=g&&(0,h.re)(`engines.${g}`),E=(0,p.kB)(e),b=(null==n?void 0:n.description)?"button":"span";return"text"===i?m?(0,r.jsx)("span",{className:o()("EnergyBadgeList__text",{"is-ev":E}),children:m}):null:m?(0,r.jsxs)(a.Fragment,{children:[s&&(0,r.jsx)(u.V,{title:m,onClose:()=>l(!1),children:(0,r.jsx)(v,{multimediaCard:n})}),(0,r.jsx)(b,{className:"EnergyBadgeList__button",onClick:(null==n?void 0:n.description)?()=>l(!0):void 0,children:(0,r.jsx)(c.C,{variant:E?"electric":"thermic",rightIcon:(null==n?void 0:n.description)?d.Z:void 0,children:m})})]}):null},E=({onlyEv:e=!1,engines:t=[],variant:n="default",multimediaCards:i=[]})=>{let o=(0,a.useMemo)(()=>({variant:n}),[n]),s="text"===n?"span":"div",{engines:l,shouldDisplayExistIn:u}=g({engines:t,onlyEv:e,multimediaCards:i}),c=l.map(e=>(0,r.jsx)(m,{energyCategory:e.energyCategory,mainFuelTypeCode:e.mainFuelTypeCode,multimediaCard:e.multimediaCard},e.key));return(0,r.jsxs)(y.Provider,{value:o,children:[u&&(0,r.jsx)(s,{className:"EnergyBadgeList__existsIn",children:(0,h.re)("wording.existsIn")}),"text"===n?c:(0,r.jsx)(s,{className:"EnergyBadgeList",children:c})]})}},75413:function(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>I});var r=n("85893"),a=n("67294"),i=n("63387"),o=n.n(i),s=n("27361"),l=n.n(s),u=n("82727"),c=n("79692"),d=n("66632"),p=n("98839"),f=n("59727"),h=n("72005"),y=n("96761"),g=n("90362"),v=n("80970"),m=n("92885");let E=({className:e,imageLifestyle:t,imageURI:n,link:a,modelClaim:i,modelName:s,enableHighlight:l,engines:u=[],onLinkClick:c,profilesImage:d})=>{let p,h,E,{url:b,text:C}=a||{};return(0,r.jsxs)("div",{className:o()("MainMenuModel",{"has-lifestyle":t,"has-highlight":l},e),children:[l&&t?(0,r.jsx)("figure",{className:"MainMenuModel__imageWrapper",children:(0,r.jsx)(y.E,{src:t,height:"100%",width:"100%",alt:s,sizes:["100vw","100vw","250px"]})}):n&&(0,r.jsx)("figure",{className:"MainMenuModel__imageWrapper",children:(0,r.jsx)(g.M,{aspectRatio:"4/3",width:"100%",uri:n,profiles:d,alt:s})}),(0,r.jsxs)("div",{className:"MainMenuModel__nameAndTags",children:[b&&(0,r.jsx)(f.A,{href:b,title:C||s,className:"MainMenuModel__name",onClick:(p=b,h=C||s,E=l,()=>{(0,m.y_)({event:"navigationClick",buttonText:h,destination:p,locationInPage:E?"navigation-range-picker-highlight":void 0}),null==c||c()}),children:s}),l&&i?(0,r.jsx)("div",{className:"MainMenuModel__claimTag",children:i}):(0,r.jsx)("div",{className:"MainMenuModel__tagsList",children:(0,r.jsx)(v.s,{engines:u,onlyEv:!0,variant:"text"})})]})]})},b={small:"ONE_DACIA_PP_SMALL_DENSITY1",smallx2:"ONE_DACIA_PP_SMALL_DENSITY2",medium:"ONE_DACIA_PP_MEDIUM_DENSITY1",mediumx2:"ONE_DACIA_PP_MEDIUM_DENSITY2",large:"ONE_DACIA_PP_LARGE_DENSITY1",largex2:"ONE_DACIA_PP_LARGE_DENSITY2"},C=({models:e=[],className:t="",ctaLabel:n="",link:a,newTab:i=!1,onLinkClick:s=()=>{}})=>(0,r.jsxs)("div",{className:o()("MainMenuRangeModels",t),children:[e.map((e,t)=>{let{modelAdmin:n,modelData:a,enableHighlight:i}=e||{},{imageURI:o,modelName:l="",modelHomepageURL:u,modelAdminId:c,imageLifestyle:d,modelClaim:p}=n||{},{engines:f}=a||{};return(0,r.jsx)(E,{imageLifestyle:d,imageURI:o,modelClaim:p||null,modelName:l,enableHighlight:i,engines:f,profilesImage:b,link:{url:u},onLinkClick:s},`${c}-${t}`)}),a&&n&&(0,r.jsx)("div",{className:"MainMenuRangeModels__element",children:(0,r.jsx)("div",{className:"MainMenuRangeModels__elementLinkInner",children:(0,r.jsxs)(f.A,{className:"MainMenuRangeModels__link",href:a,target:(0,c.xo)(i)?"_blank":void 0,onClick:s,children:[(0,r.jsx)(h.Z,{className:"MainMenuRangeModels__linkIcon"}),(0,r.jsx)("span",{children:n})]})})})]});function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class x extends a.PureComponent{toggleTab(e){this.setState(({activeToggles:t})=>{var n,r;return{activeTab:e,activeToggles:(n=function(e){for(var t=1;t
{let i=`tab-${a}`,l=o()("MainMenuRangePicker__tabTitle",n);return[(0,r.jsx)("button",{className:o()("MainMenuRangePicker__tab",`MainMenuRangePicker__tab_pos${a}`,{"is-lastActive":i===s},{"is-active":f[i]}),onClick:this.handleChangeTab(a),"data-track":"click","data-track-event":"toggle","data-track-toggle-type":"tab-selector","data-track-toggle-value":e,children:(0,r.jsx)("p",{className:l,children:e})},`tabviewbutton-${i}`),(0,r.jsx)("div",{className:o()("MainMenuRangePicker__content",`MainMenuRangePicker__content_pos${a}`,{"is-lastActive":i===s},{"is-active":f[i]}),id:i,children:t},`tabviewcontent-${i}`)]}),n&&(0,r.jsx)("ul",{className:"MainMenuRangePicker__links",children:y.map(({label:e,url:t,openInNewTab:n,aemKey:a})=>t&&(0,r.jsx)("li",{className:"MainMenuRangePicker__listElement",children:(0,r.jsxs)(p.ZP,{className:"MainMenuRangePicker__link MainMenuRangePicker__ctaLink",url:t,title:e,target:(0,c.xo)(n)?"_blank":void 0,onClick:i,children:[(0,r.jsx)(d.Z,{className:"MainMenuRangePicker__svgArrowRight"}),e]})},`subElement-${a}`))}),(0,r.jsx)(u.Cq,{editContext:a,displayEditionZone:0===y.length&&!h.find(e=>l()(e,"title"))})]})}constructor(e){super(e),P(this,"handleChangeTab",e=>()=>{this.toggleTab(`tab-${e}`)}),P(this,"seoLinks",(e,t)=>e&&t&&(0,r.jsx)("a",{href:t,children:e})),P(this,"prepareTabs",e=>{let{onLinkClick:t,megaDropDownOpened:n}=this.props;return(0,c.jQ)(e).map(({title:e,models:a,ctaLabel:i,link:o,newTab:s},l)=>({id:l,title:e,content:n?(0,r.jsx)(C,{models:a,ctaLabel:i,link:o,newTab:s,onLinkClick:t}):this.seoLinks(e,o),classNameTitleTabs:"MainMenuMegaDropDownContent__tab"}))}),this.state={activeTab:"tab-0",activeToggles:{"tab-0":!0}}}}P(x,"defaultProps",{className:"",activeTab:"tab-0",megaDropDownOpened:!1});let I=x},24254:function(e,t,n){"use strict";n.d(t,{Rw:function(){return f},SF:function(){return h},TY:function(){return p},kB:function(){return d},pC:function(){return c}});var r=n(18994),a=n(70652);let i=[{mainFuelTypeCode:[a.u.ESS],energyCategory:a.r.ICEMONOFUEL,value:{code:"gasoline",value:r.yn.GASOLINE,"energy.group":"ESS"}},{mainFuelTypeCode:[a.u.GASLN],energyCategory:a.r.ICEMONOFUEL,value:{code:"gasoline",value:r.yn.GASOLINE,"energy.group":"GASLN"}},{mainFuelTypeCode:[a.u.GAS],energyCategory:a.r.ICEMONOFUEL,value:{code:"gasoline",value:r.yn.GASOLINE,"energy.group":"GAS"}},{mainFuelTypeCode:[a.u.FLEXFL],energyCategory:a.r.ICEMONOFUEL,value:{code:"flexFuel",value:r.yn.FLEXFUEL,"energy.group":"FLEXFL"}},{mainFuelTypeCode:[a.u.ESS,a.u.GASLN,a.u.GAS],energyCategory:a.r.ICEBIFUELCNG,value:{code:"cng",value:r.yn.CNG,"energy.group":"ICEBIFUELCNG"}},{mainFuelTypeCode:[a.u.DIESEL,a.u.DISEL],energyCategory:a.r.ICEMONOFUEL,value:{code:"diesel",value:r.yn.DIESEL,"energy.group":"DIESEL"}},{mainFuelTypeCode:[a.u.ESS,a.u.GASLN,a.u.GAS],energyCategory:a.r.ICEBIFUELLPG,value:{code:"lpg",value:r.yn.LPG,"energy.group":"ICEBIFUELLPG"}},{mainFuelTypeCode:[a.u.ESS,a.u.GASLN,a.u.GAS],energyCategory:a.r.HEV,value:{code:"hybrid",value:r.yn.HYBRID,"energy.group":"HEV"}},{mainFuelTypeCode:[a.u.ESS,a.u.GASLN,a.u.GAS],energyCategory:a.r.PHEV,value:{code:"hybridPlugin",value:r.yn.HYBRID_PLUGIN,"energy.group":"PHEV"}},{mainFuelTypeCode:[a.u.ELEC,a.u.ELECX,a.u.ELECT],energyCategory:a.r.ELECTRIC,value:{code:"electric",value:r.yn.ELECTRIC,"energy.group":"ELECTRIC"}},{mainFuelTypeCode:[a.u.ELEC,a.u.ELECX,a.u.ELECT],value:{code:"electric",value:r.yn.ELECTRIC,"energy.group":"ELECTRIC"}},{mainFuelTypeCode:[a.u.ESS,a.u.GASLN],energyCategory:a.r.MILDHYBRID,value:{code:"mildHybrid",value:r.yn.MILDHYBRID,"energy.group":"MILDHYBRID"}}],o=[a.r.HEV,a.r.PHEV,a.r.ELECTRIC],s=[a.r.HEV,a.r.PHEV],l=[a.r.ELECTRIC,a.r.PHEV],u=["ESS","ICEBIFUELLPG","DIESEL"],c=(e,t)=>i.find(n=>{var r;return n.energyCategory===e&&t&&(null===(r=n.mainFuelTypeCode)||void 0===r?void 0:r.includes(t))}),d=e=>o.some(t=>t===e),p=({energyCategory:e,energyGroup:t})=>e?l.some(t=>t===e):"ELECTRICAL"===t,f=e=>s.some(t=>t===e),h=e=>u.some(t=>t===(null==e?void 0:e.toUpperCase()))},77213:function(e,t,n){"use strict";n.d(t,{n:function(){return i},x:function(){return o}});var r=n(27361),a=n.n(r);let i=(e,t)=>a()(e.find(e=>e.assetRole===t),"renditions[0].url",""),o=(e,t)=>{var n,r,a,i,o,s;if(!e)return;let l=t?`MAIN_PICTURE_${t.toUpperCase()}`:"";return(null===(a=e.find(e=>e.assetRole===l))||void 0===a?void 0:null===(r=a.renditions)||void 0===r?void 0:null===(n=r[0])||void 0===n?void 0:n.url)||(null===(s=e.find(e=>"MAIN_PICTURE"===e.assetRole))||void 0===s?void 0:null===(o=s.renditions)||void 0===o?void 0:null===(i=o[0])||void 0===i?void 0:i.url)}}}]);