PageSourceSearch

https://www.dacia.pt/client/dacia-app-promotion-3a6fd9a89d4e3124.js

js dacia.pt collected 2026-10-04 03:27:03 UTC 16,723 bytes, 1 lines download raw bytes

1"use strict";(self.rspackChunkOne=self.rspackChunkOne||[]).push([[17849],{65721(t,e,r){var l,o=r(71763);function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var l in r)({}).hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t}).apply(null,arguments)}r.d(e,{},{A:t=>o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24"},t),l||(l=o.createElement("path",{d:"M17.112 5.913c2.587 0 4.241 2.466 4.241 2.466s-2.523 1.35-2.523 4.28c0 3.479 3.17 4.49 3.17 4.49S19.498 23 16.688 23c-1.58 0-1.685-.896-3.785-.896-1.823 0-2.438.896-3.827.896C6.425 23 3 17.297 3 12.66c0-4.818 3.467-6.747 5.64-6.747 1.91 0 2.704 1.106 4.242 1.106 1.293 0 2.312-1.106 4.23-1.106M16.667 1c.381 2.361-1.792 5.282-4.39 5.187-.381-3.005 2.418-5.029 4.39-5.187"})))})},54502(t,e,r){var l,o=r(71763);function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var l in r)({}).hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t}).apply(null,arguments)}r.d(e,{},{A:t=>o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24"},t),l||(l=o.createElement("path",{d:"M22.22 12.6H3.885a62 62 0 0 0 10.025 6.825l-.56 1.075a63.7 63.7 0 0 1-10.97-7.61l-.2-.18v-1.405l.18-.175A46.6 46.6 0 0 1 13.365 3.5l.53 1.08a46.9 46.9 0 0 0-10.06 6.82H22.22z"})))})},70385(t,e,r){var l,o=r(71763);function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var l in r)({}).hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t}).apply(null,arguments)}r.d(e,{},{A:t=>o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24"},t),l||(l=o.createElement("path",{d:"M21.83 11.32v1.405l-.2.18a63.6 63.6 0 0 1-11 7.64l-.54-1.045a62 62 0 0 0 10.035-6.885H1.77v-1.2h18.41a46.8 46.8 0 0 0-10.075-6.86l.53-1.055a47 47 0 0 1 11 7.665z"})))})},3861(t,e,r){var l,o=r(71763);function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var l in r)({}).hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t}).apply(null,arguments)}r.d(e,{},{A:t=>o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24"},t),l||(l=o.createElement("path",{d:"M15.5 20.725 6.35 12l9.15-8.725 1.38 1.45L9.245 12l7.635 7.275z"})))})},40459(t,e,r){var l,o=r(71763);function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var l in r)({}).hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t}).apply(null,arguments)}r.d(e,{},{A:t=>o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24"},t),l||(l=o.createElement("path",{d:"M3.12 23.5c-.375-.1-.62-.471-.62-1.045V3.52c0-.531.207-.89.536-1.02l9.37 10.552zm1.29-.402 11.28-6.348-2.748-3.094zM15.768 9.27 4.645 3.01l8.314 9.42 2.808-3.16zm.755.425 4.357 2.453c.824.464.832 1.213 0 1.681l-4.468 2.515-2.913-3.302z"})))})},42715(t,e,r){var l=r(91987),o=r(71763),i=r(98481),s=r(20496),n=r(97500),a=r.n(n),c=r(54502),d=r(70385),u=r(3861),h=r(33496),m=r(78948),f=r(20409),p=r(84759),g=r(40119),w=r(5839);let v=50,b="alpine",x=(0,s.Ng)(({app:t,page:{data:{siteParams:e}}})=>({isRtl:e?.rtl??!1,brand:e?.brand||"",isMobile:t.threshold===w.qN})),_=({navBarData:t,onClickDots:e,dotMode:r,displayMode:o,portalDots:s})=>{if(!t.globalWidth||!t.childrenWidths||1===t.childrenWidths.length||!t.pages||1===t.pages.length)return null;let n=(0,l.jsxs)("ul",{className:a()("CustomScroll__dots",{"is-below":["dots-below","dots-below-mobile-only"].includes(r),"is-mobile-only":"dots-below-mobile-only"===r}),children:[("fullwidth"===o||"card"===o)&&t?.childrenWidths?.map((r,i)=>{let s=`dot-${i}`;return(0,l.jsx)("li",{className:"CustomScroll__dot",children:(0,l.jsx)("button",{type:"button",className:a()("CustomScroll__dotButton",{"is-active":"card"===o?t?.activeChildIndex===i:r?.isVisible}),onClick:()=>e(r?.middle),children:(0,l.jsx)("span",{className:"u-hidden-wording",children:`slide ${i}`})})},s)}),!o&&t?.pages?.map((t,r)=>{let o=`dot-${r}`;return(0,l.jsx)("li",{className:"CustomScroll__dot",children:(0,l.jsx)("button",{type:"button",className:a()("CustomScroll__dotButton",{"is-active":t?.isActive}),onClick:()=>e(t?.middle),children:(0,l.jsx)("span",{className:"u-hidden-wording",children:`slide ${r}`})})},o)})]});return s?(0,i.createPortal)(n,s):n},A=({isLeftArrowDisplayed:t,isRightArrowDisplayed:e,isRightBottomArrowsDisplayed:r,handleArrowClick:o,isRtl:s,portalElement:n,isDarkMode:u})=>{let h=(0,l.jsxs)("div",{className:a()("CustomScroll__bottomArrows",{"is-darkmode":u,"is-right-bottom-arrows-displayed":r}),children:[(0,l.jsx)("button",{type:"button",className:a()("CustomScroll__bottomArrowsButton CustomScroll__bottomArrowsLeft",{CustomScroll__bottomArrows_disabled:!t}),onClick:o(-1),children:(0,l.jsx)(c.A,{className:a()("CustomScroll__Arrows_arrow",{"is-rtl":s})})}),(0,l.jsx)("button",{type:"button",className:a()("CustomScroll__bottomArrowsButton CustomScroll__bottomArrowsRight",{CustomScroll__bottomArrows_disabled:!e}),onClick:o(1),children:(0,l.jsx)(d.A,{className:a()("CustomScroll__Arrows_arrow",{"is-rtl":s})})})]});return n?(0,i.createPortal)(h,n):h},y=({navBarData:t,onClickDots:e,tabs:r,brand:i})=>{let s=(0,o.useRef)(null),n=t?.childrenWidths.find(t=>t?.isVisible);if((0,o.useEffect)(()=>{let t=s.current;if(t){let e=t.querySelector(".CustomScroll__tabButton.is-active");e&&(e.getBoundingClientRect().left+e.clientWidth>window.innerWidth||e.getBoundingClientRect().left<0)&&t.scrollTo({top:0,left:e.offsetLeft})}},[n]),!t.globalWidth||!t.childrenWidths||1===t.childrenWidths.length)return null;
1let c="mobilize"===i;return(0,l.jsx)("ul",{className:"CustomScroll__tabs",ref:s,children:t?.childrenWidths?.map((t,o)=>{let i=`tab-${o}`;return(0,l.jsx)("li",{className:"CustomScroll__tab",children:(0,l.jsx)("button",{className:a()("CustomScroll__tabButton",{"is-active":t?.isVisible}),onClick:()=>e(t?.middle),type:"button",children:c?(0,p.G2)(o+1,2):r?.[o]})},i)})})},C=x(({bottomArrowsPortalElement:t,children:e=[],className:r="",darkMode:s=!1,defaultSelectedSlideIndex:n,displayMode:p,interactionType:x,isCentered:C=!1,isFullScreen:j=!1,isRtl:S,isSimplified:N=!1,isCardCentered:k=!1,isRightBottomArrowsDisplayed:P=!0,arrowMode:W,dotMode:M,onInteraction:B,snapMode:R,tabs:E=[],minInterval:O=v,brand:L,isMobile:$,portalsCustomElement:V={}})=>{let{ref:I,isVisible:D}=(0,f.A)({role:"technical",stayVisible:!1}),z=(0,o.useRef)(0),T=(0,o.useRef)(void 0),q=(0,o.useRef)(null),F=(0,o.useRef)(0),[H,G]=(0,o.useState)({childrenWidths:[],globalWidth:void 0,activeChildIndex:void 0,isScrolling:!1,pages:[]}),J=(0,o.useRef)(!1),[K,Q]=(0,o.useState)(!1),[U,X]=(0,o.useState)(!1),[Y,Z]=(0,o.useState)(0),[tt,te]=(0,o.useState)(0),tr=H?.childrenWidths?.[0]?.width,tl=(0,o.useMemo)(()=>{if(k&&!$){let t=q?.current;if(t){let{clientWidth:e}=t;return(e-(tr||0))/2}}return 0},[tr,k,$]),to=(0,o.useCallback)(()=>{let t=q.current;if(t&&D){let{scrollLeft:e=0,scrollWidth:r=0,clientWidth:l=0}=t,o=r-l,i=o>0?o:0,s=S?-1:1;Q(s*e>O),X(i>0&&s*e+O<i);let n=Array.from(t.children)||[],a=n.map(t=>({promoText:(t.innerText||"").substring(0,50).replace(/\s+/g," ").trim(),width:t.offsetWidth,percent:t.offsetWidth/r*100,middle:t.offsetLeft+t.offsetWidth/2,left:t.getBoundingClientRect().left,right:t.getBoundingClientRect().right,isVisible:t.offsetLeft+t.offsetWidth/2>e&&t.offsetLeft+t.offsetWidth/2<e+l})),c=n.findIndex(t=>k?t.getBoundingClientRect().right>window.innerWidth/2:t?.offsetLeft>=Math.round(e));J.current||(J.current=!0);let d=l?Array(Math.round(r/l)).fill(void 0).map((t,r)=>({isActive:r===Math.floor((e+l/2)/l),middle:l*r+l/2})):[],u=e!==z.current;z.current=e,G({isScrolling:u,activeChildIndex:c,pages:d,childrenWidths:a,globalWidth:r}),!a[c]||u&&Y||(Z(a[c].right),te(a[c].left)),B?.({isScrolling:u,activeChildIndex:c,scrollLeft:e})}},[D,S,O,Y,B,k]),ti=t=>e=>{e?.stopPropagation();let r=q.current;if(r){let e,{scrollLeft:l=0,clientWidth:o=0}=r,i=S?-1:1,s=Array.from(r.children),{clientWidth:n=0}=s?.[0]||{};switch(p){case"fullwidth":e=o;break;case"card":e=n;break;default:e=9*o/10}r.scrollLeft=l+e*t*i}},ts=0;(0,o.useEffect)(()=>{let t=H?.childrenWidths.findIndex(t=>t.isVisible);F.current!==t&&t>-1&&x&&!H.isScrolling&&((0,m.d)({interactionType:x,itemNumber:`${t+1}/${H?.childrenWidths.length}`,event:"carouselInteraction",promoText:H?.childrenWidths[t].promoText,scrollDirection:F.current<t?"right":"left"}),F.current=t)},[H,x]),(0,g.A)(to),(0,o.useEffect)(()=>(q?.current&&("u">typeof window&&window.addEventListener(w.jn,to),to()),()=>{"u">typeof window&&window.removeEventListener(w.jn,to)}),[to]),(0,o.useEffect)(()=>{if(void 0!==n){let t=requestAnimationFrame(()=>{let t=q?.current;if(t){let{clientWidth:e}=t;if(window){let r=Array.from(t.children);if(r.length>1&&r[n]){let{offsetLeft:l,clientWidth:o}=r[n];k?t.scrollLeft=l-(e-o)/2:t.scrollLeft="center"===R?l-(e-o)/2:l}}}});return()=>cancelAnimationFrame(t)}},[n,R,tl,k]);let tn=a()("CustomScroll__child",{[`is-snap-${R||""}`]:R,[`is-display-${p||""}`]:p}),ta="arrows-left-right-all"===W||"arrows-left-right-desktop-only"===W,tc="tabs-inside"===M?y:_,td=L===b?c.A:u.A,tu=L===b?d.A:h.A,th=(H?.activeChildIndex||0)+1;return(0,l.jsxs)("div",{className:a()("CustomScroll",{CustomScroll_center:C,"is-navbar-dots-below":["dots-below","dots-below-mobile-only"].includes(M)&&!V?.portalDots,"is-navbar-arrows-bottom":"arrows-bottom"===W,"is-darkmode":s},r),ref:I,children:[(0,l.jsx)("div",{className:a()("CustomScroll__container",{"is-simplified":N,[`is-display-${p||""}`]:p,"is-fullscreen":j,"has-smooth-scroll":J.current}),ref:q,style:tl?{scrollPadding:`0 ${tl}px`,padding:`0 ${tl}px`}:void 0,onScroll:()=>{ts&&window.cancelAnimationFrame(ts),ts=window.requestAnimationFrame(()=>{to(),clearTimeout(T.current),T.current=setTimeout(to,100)})},children:e&&Array.isArray(e)&&R?e.map((t,r)=>{let o=`dot-${r}`;return(0,l.jsx)("div",{className:a()(tn,{"is-first-slide":0===r,"is-last-sl
1ide":r===e.length-1}),children:t},o)}):e}),"counter"===M&&!!e&&Array.isArray(e)&&H?.activeChildIndex!==void 0&&!!R&&(0,l.jsxs)("div",{className:"CustomScroll__counter",children:[th," / ",e?.length]}),"arrows-bottom"===W&&(0,l.jsx)(A,{isLeftArrowDisplayed:K,isRightArrowDisplayed:U,isRtl:S,isRightBottomArrowsDisplayed:P,handleArrowClick:ti,portalElement:t,portalsCustomElement:V,isDarkMode:s}),(()=>{if(ta&&K){let t=(0,l.jsx)("button",{style:{"--leftArrowPosition":`${tt}px`},className:a()("CustomScroll__arrow CustomScroll__arrowLeft",{"is-simplified":N,"is-left-right-all":"arrows-left-right-all"===W}),onClick:ti(-1),type:"button",children:(0,l.jsx)(td,{className:a()("CustomScroll__Arrows_arrow",{"is-rtl":S})})});return V.portalPreviousButton?(0,i.createPortal)(t,V.portalPreviousButton):t}return null})(),(()=>{if(ta&&U){let t=(0,l.jsx)("button",{style:{"--rightArrowPosition":`${Y}px`},className:a()("CustomScroll__arrow CustomScroll__arrowRight",{"is-simplified":N,"is-left-right-all":"arrows-left-right-all"===W}),onClick:ti(1),type:"button",children:(0,l.jsx)(tu,{className:a()("CustomScroll__Arrows_arrow",{"is-rtl":S})})});return V.portalNextButton?(0,i.createPortal)(t,V.portalNextButton):t}return null})(),!["none","counter"].includes(M)&&(0,l.jsx)(tc,{dotMode:M,displayMode:p,navBarData:H,arrowMode:W,onClickDots:t=>(t=>{let e=q.current;if(e){let{clientWidth:r=0}=e,l=t-r/2;e.scrollLeft=l>0?l:0}})(t),tabs:E,brand:L,isMobile:!!$,portalDots:V.portalDots})]})});r.d(e,{},{A:C})},45706(t,e,r){r.d(e,{M:()=>o});var l=r(91987);let o=({anchor:t,className:e})=>(0,l.jsx)("div",{id:t,className:e})},6081(t,e,r){r.r(e);var l=r(91987),o=r(71763),i=r(97500),s=r.n(i),n=r(45706),a=r(73437),c=r(93196),d=r(65721),u=r(40459),h=r(32464),m=r(20973),f=r(42715);r.d(e,{},{default:({className:t,googlePlayUrl:e,appStoreUrl:r,images:i,editContext:p,strapline:g,title:w,titleAnchor:v,notGenerateH:b=!1,logo:x})=>{let _=(0,o.useRef)(null),A=(0,o.useRef)(null),y=(0,o.useRef)(null),[C,j]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{A&&_&&y&&j(!0)},[A,_,y]),(0,l.jsxs)("div",{className:s()("AppPromotion",t),children:[(0,l.jsxs)("div",{className:"AppPromotion__header",children:[(0,l.jsxs)("div",{className:"AppPromotion__titles",children:[x&&Object.keys(x).length>0&&(0,l.jsx)("div",{className:"AppPromotion__logo",children:(0,l.jsx)(m.Ay,{className:"AppPromotion__myrLogo",sources:x,alt:w||""})}),v&&(0,l.jsx)(n.M,{anchor:v}),g&&(0,l.jsx)("p",{className:"AppPromotion__strapline",children:g}),w&&(b?(0,l.jsx)("p",{className:"AppPromotion__title",children:w}):(0,l.jsx)("h2",{className:"AppPromotion__title",children:w}))]}),(0,l.jsx)(c.Cq,{editContext:p})]}),(0,l.jsxs)("div",{className:"AppPromotion__carousel",children:[(0,l.jsx)("div",{className:"AppPromotion__arrowButton",ref:_}),(0,l.jsx)("div",{className:"AppPromotion__arrowButton",ref:A}),(0,l.jsx)("div",{className:"AppPromotion__customCarousel",children:C&&(0,l.jsx)(f.A,{dotMode:"dots-below",arrowMode:"arrows-left-right-all",displayMode:"fullwidth",interactionType:"app-carousel",snapMode:"start",portalsCustomElement:{portalPreviousButton:_?.current||void 0,portalNextButton:A?.current||void 0,portalDots:y?.current||void 0},children:(0,h.Hj)(i).map(({aemKey:t,src:e,alt:r})=>e?(0,l.jsx)(m.Ay,{sources:e,alt:r,isCovered:!0},t):null)})}
1),(0,l.jsx)("div",{className:"AppPromotion__dotsControls",ref:y})]}),(0,l.jsxs)("div",{className:"AppPromotion__links",children:[(0,l.jsx)(a.l,{href:e,variant:"cta-ghost",icon:u.A,target:"_blank","data-track":"click","data-track-event":"navigationClick","data-track-destination":e,"data-track-button-text":"Google Play","data-track-location-in-page":"cta-bloc-app",children:"Google Play"}),(0,l.jsx)(a.l,{href:r,variant:"cta-ghost",icon:d.A,target:"_blank","data-track":"click","data-track-event":"navigationClick","data-track-destination":r,"data-track-button-text":"App Store","data-track-location-in-page":"cta-bloc-app",children:"App Store"})]}),(0,l.jsx)(c.Cq,{editContext:p})]})}})},20409(t,e,r){var l=r(71763),o=r(24948),i=r(5839);r.d(e,{},{A:t=>{let e=(0,l.useMemo)(()=>(t=>{let e="u">typeof window&&i.LO.large&&window.innerWidth>=i.LO.large,{role:r,options:l={},stayVisible:o=!0}=t;return"lazyload"===r?l.rootMargin=`0px -10px ${e?"200px":"30px"} 0px`:"animation"===r?l.rootMargin=`0px -10px ${e?"-140px":"-100px"} 0px`:"technical"===r&&(l.rootMargin="0px -10px 0px 0px"),{...l,triggerOnce:o}})(t),[t]),{ref:r,inView:s=!1,entry:n}=(0,o.Wx)(e);return{ref:r,isVisible:s,entry:n}}})},24948(t,e,r){var l,o,i=r(71763),s=Object.defineProperty,n=new Map,a=new WeakMap,c=0;function d({threshold:t,delay:e,trackVisibility:r,rootMargin:o,scrollMargin:s,root:u,triggerOnce:h,skip:m,initialInView:f,fallbackInView:p,onChange:g}={}){var w;let[v,b]=i.useState(null),x=i.useRef(g),_=i.useRef(f),[A,y]=i.useState({inView:!!f,entry:void 0});x.current=g,i.useEffect(()=>{let i;if(void 0===_.current&&(_.current=f),!m&&v)return i=function(t,e,r={},o=l){if(void 0===window.IntersectionObserver&&void 0!==o){let l=t.getBoundingClientRect();return e(o,{isIntersecting:o,target:t,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}let{id:i,observer:s,elements:d}=function(t){let e=Object.keys(t).sort().filter(e=>void 0!==t[e]).map(e=>{var r;return`${e}_${"root"===e?!(r=t.root)?"0":(a.has(r)||(c+=1,a.set(r,c.toString())),a.get(r)):t[e]}`}).toString(),r=n.get(e);if(!r){let l,o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{var r;let i=e.isIntersecting&&l.some(t=>e.intersectionRatio>=t);t.trackVisibility&&void 0===e.isVisible&&(e.isVisible=i),[...null!=(r=o.get(e.target))?r:[]].forEach(t=>{t(i,e)})})},t);l=i.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),r={id:e,observer:i,elements:o},n.set(e,r)}return r}(r),u=d.get(t)||[];return d.has(t)||d.set(t,u),u.push(e),s.observe(t),function(){u.splice(u.indexOf(e),1),0===u.length&&(d.delete(t),s.unobserve(t)),0===d.size&&(s.disconnect(),n.delete(i))}}(v,(t,e)=>{let r=_.current;_.current=t,(void 0!==r||t)&&(y({inView:t,entry:e}),x.current&&x.current(t,e),e.isIntersecting&&h&&i&&(i(),i=void 0))},{root:u,rootMargin:o,scrollMargin:s,threshold:t,trackVisibility:r,delay:e},p),()=>{i&&i()}},[Array.isArray(t)?t.toString():t,v,u,o,s,h,m,r,p,e]);let C=null==(w=A.entry)?void 0:w.target,j=i.useRef(void 0);v||!C||h||m||j.current===C||(j.current=C,y({inView:!!f,entry:void 0}),_.current=f);let S=[b,A.inView,A.entry];return S.ref=S[0],S.inView=S[1],S.entry=S[2],S}i.Component,null!=(null!=(o=i.useInsertionEffect)?o:i.useLayoutEffect)||i.useEffect,r.d(e,{Wx:()=>d})}}]);

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.