PageSourceSearch

https://www.dacia.com.tr/client/dacia-hero-editorial-f510c96ededcd2fb.js

js dacia.com.tr collected 2026-10-02 03:39:20 UTC 6,624 bytes, 1 lines download raw bytes

1"use strict";(self.rspackChunkOne=self.rspackChunkOne||[]).push([[12472],{7459(e,t,i){i.d(t,{X:()=>v});var r=i(91987),n=i(71763),s=i(20496),a=i(97500),l=i.n(a),o=i(16383),d=i(46773),c=i(20409),u=i(5839);let v=(0,s.Ng)(({app:e,page:t})=>({threshold:e.threshold??u.qN,isBrowserEngine:e.isBrowserEngine,isEditMode:t.data?.mode==="EDIT"}),null,null,{forwardRef:!0})(({autoPlay:e=!0,src:t,alt:i,video:s,isBrowserEngine:a,threshold:u,disableLazyLoaded:v=!1,isEditMode:f,sizes:h=["100vw","100vw","1280px"],onVideoEnded:p,onVideoProgress:g,onVideoStarted:m,endSrc:x})=>{let[b,y]=(0,n.useState)(!1),[E,w]=(0,n.useState)(!0),[_,j]=(0,n.useState)(!1),k=(0,n.useRef)(null),{ref:N,isVisible:C}=(0,c.A)({role:"animation",stayVisible:!1}),I=(0,d.A)(),V=(0,n.useCallback)(()=>{y(!0),p?.()},[p]);(0,n.useEffect)(()=>{let t=k.current;E&&t&&(C&&e?t?.play().catch(e=>{"NotAllowedError"===e.name&&w(!1)}):t?.pause())},[e,C,E,m,I]);let M=(0,n.useCallback)(()=>{let e=k.current;e?.duration&&Number.isFinite(e.duration)&&g?.(e.currentTime/e.duration)},[g]);(0,n.useEffect)(()=>{j(!1),y(!1)},[s?.mobile]);let{desktop:O,tablet:R,mobile:T}=s||{},z=T;"large"===u&&O?z=O:"medium"===u&&R&&(z=R);let A=(0,n.useMemo)(()=>d.l.includes(I.effectiveType),[I.effectiveType]),H=!z&&!x?.small||z,L=z&&a&&C&&!b&&E&&!A,S=x?.small&&(!z||_)&&!A,W=S?x:t;return t?(0,r.jsxs)("div",{className:l()("ImageWithVideo",{"is-editMode":f}),"aria-hidden":"true",ref:N,children:[(H||S)&&(0,r.jsx)("div",{className:"ImageWithVideo__picture",children:(0,r.jsx)(o._,{src:W||{},alt:i,width:"100%",height:"100%",disableLazyLoaded:v,sizes:h})}),L&&(0,r.jsx)("video",{ref:k,className:"ImageWithVideo__video",autoPlay:e,onEnded:V,loop:!x?.small,muted:!0,src:z,playsInline:!0,onPlaying:()=>{j(!0),m?.()},onTimeUpdate:g?M:void 0},z)]}):null})},3497(e,t,i){i.r(t);var r=i(91987),n=i(20496),s=i(97500),a=i.n(s),l=i(7459),o=i(73437),d=i(93196),c=i(78948);let u="mobilize",v=(e,t)=>()=>{(0,c.d)({buttonText:t,destination:e,locationInPage:"hero-zone",event:"navigationClick"})},f=(0,n.Ng)(({page:e})=>({brand:e.data.siteParams?.brand}))(({banner:e,brand:t,editContext:i,isLazyLoaded:n=!0,isTall:s=!1,isFullSrceen:c=!1,hasTransparentNavigation:f=!1})=>{let{text:h,links:p,image:g,video:m={}}=e||{},{notGenerateH:x,subTitle:b,title1:y,title2:E,strapline:w=""}=h||{},{label1:_="",label2:j,link1:k="",link2:N,openNewTab1:C=!1,openNewTab2:I=!1}=p||{},{src:V,alt:M}=g||{};return(0,r.jsxs)("header",{className:a()("HeroEditorial",{"is-tall":s,"is-full-screen":c,"has-transparent-navigation":f,"is-edit-mode":(0,d.Q)(i)}),children:[(0,r.jsx)("div",{className:"HeroEditorial__mediaWrapper",children:(0,r.jsx)("div",{className:"HeroEditorial__media",children:(0,r.jsx)(l.X,{video:{desktop:m.video,tablet:m.videoTablet,mobile:m.videoMobile},src:V,sizes:"100vw",alt:M||"",disableLazyLoaded:!n})})}),(0,r.jsxs)("div",{className:"HeroEditorial__overlay",children:[(0,r.jsx)("p",{className:"HeroEditorial__strapline",children:w}),(y||E)&&(0,r.jsxs)(x?"p":"h1",{className:"HeroEditorial__title",children:[y,(0,r.jsxs)("span",{className:"HeroEditorial__title2",children:[" ",E]})]}),b&&(0,r.jsx)("p",{className:"HeroEditorial__subtitle",children:b}),(0,r.jsxs)("div",{className:"HeroEditorial__buttons",children:[k&&_&&(0,r.jsx)(o.l,{href:k,title:_,target:C?"_blank":"",variant:"cta-primary",isInverted:t!==u,onClick:v(k,_)}),j&&N&&(0,r.jsx)(o.l,{href:N,title:j,target:I?"_blank":"",variant:"cta-ghost",isInverted:t!==u,onClick:v(N,j)})]})]}),(0,r.jsx)(d.Cq,{editContext:i})]})});i.d(t,{},{default:f})},46773(e,t,i){var r=i(71763);let n=()=>navigator&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection);i.d(t,{},{A:()=>{let[e,t]=(0,r.useState)(void 0);return(0,r.useEffect)(()=>{t(n())},[]),(0,r.useEffect)(()=>{if(!e)return()=>{};let i=()=>t(n());return e?.addEventListener?.("change",i,{passive:!0}),()=>{e?.removeEventListener?.("change",i)}},[e,t]),(0,r.useMemo)(()=>({effectiveType:e?.effectiveType??"unknown"}),[e?.effectiveType])},l:["2g","slow-2g","3g"]})},20409(e,t,i){var r=i(71763),n=i(24948),s=i(5839);i.d(t,{},{A:e=>{let t=(0,r.useMemo)(()=>(e=>{let t="u">typeof window&&s.LO.large&&window.innerWidth>=s.LO.large,{role:i,options:r={},stayVisible:n=!0}=e;return"lazyload"===i?r.rootMargin=`0px -10px ${t?"200px":"30px"} 0px`:"animation"===i?r.rootMargin=`0px -10px ${t?"-140px":"-100px"} 0px`:"technical"===i&&(r.rootMargin="0px -10px 0px 0px"),{...r,triggerOnce:n}})(e),[e]),{ref:i,inView:a=!1,entry:l}=(0,n.Wx)(t);return{ref:i,isVisible:a,entry:l}}})},24948(e,t,i){var r,n,s=i(71763),a=Object.defineProperty,l=new Map,o=new WeakMap,d=0;function c({threshold:e,delay:t,trackVisibility:i,rootMargin:n,scrollMargin:a,root:u,triggerOnce:v,skip:f,initialInView:h,fallbackInView:p,onChange:g}={}){var m;let[x,b]=s.useState(null),y=s.useRef(g),E=s.useRef(h),[w,_]=s.useState({inView:!!h,entry:void 0});y.current=g,s.useEffect(()=>{let s;if(void 0===E.current&&(E.current=h),!f&&x)return s=function(e,t,i={},n=r){if(void 0===window.IntersectionObserver&&void 0!==n){let r=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof i.threshold?i.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),()=>{}}let{id:s,observer:a,elements:c}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var i;return`${t}_${"root"===t?!(i=e.root)?"0":(o.has(i)||(d+=1,o.set(i,d.toString())),o.get(i)):e[t]}`}).toString(),i=l.get(t);if(!i){let r,n=new Map,s=new IntersectionObserver(t=>{t.forEach(t=>{var i;let s=t.isIntersecting&&r.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=s),[...null!=(i=n.get(t.target))?i:[]].forEac
1h(e=>{e(s,t)})})},e);r=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),i={id:t,observer:s,elements:n},l.set(t,i)}return i}(i),u=c.get(e)||[];return c.has(e)||c.set(e,u),u.push(t),a.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(c.delete(e),a.unobserve(e)),0===c.size&&(a.disconnect(),l.delete(s))}}(x,(e,t)=>{let i=E.current;E.current=e,(void 0!==i||e)&&(_({inView:e,entry:t}),y.current&&y.current(e,t),t.isIntersecting&&v&&s&&(s(),s=void 0))},{root:u,rootMargin:n,scrollMargin:a,threshold:e,trackVisibility:i,delay:t},p),()=>{s&&s()}},[Array.isArray(e)?e.toString():e,x,u,n,a,v,f,i,p,t]);let j=null==(m=w.entry)?void 0:m.target,k=s.useRef(void 0);x||!j||v||f||k.current===j||(k.current=j,_({inView:!!h,entry:void 0}),E.current=h);let N=[b,w.inView,w.entry];return N.ref=N[0],N.inView=N[1],N.entry=N[2],N}s.Component,null!=(null!=(n=s.useInsertionEffect)?n:s.useLayoutEffect)||s.useEffect,i.d(t,{Wx:()=>c})}}]);

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.