1(self.webpackChunk=self.webpackChunk||[]).push([[962],{6713(e,t,n){"use strict";n.d(t,{o:()=>r});n(3288),n(8156),n(6031);function r(e,t){var n=new Date(t+"T00:00:00");function r(){var t=new Date,r=n-t;if(r<=0)return e.textContent="00gg : 00ore : 00min",void clearInterval(o);var i=Math.floor(r/864e5),a=Math.floor(r/36e5%24),c=Math.floor(r/6e4%60);e.textContent=String(i).padStart(2,"0")+"gg : "+String(a).padStart(2,"0")+"ore : "+String(c).padStart(2,"0")+"min"}r();var o=setInterval(r,6e4)}},2818(e,t,n){function r(){document.querySelectorAll(".snippet-slider").forEach(function(e){var t=e.querySelector(".lightSlider");if(t){var n=t.querySelectorAll("li");if(0!==n.length){var r=function(e){var t=document.createElement("div");t.className="image-carousel-container";var n=document.createElement("div");n.className="main-carousel";var r=document.createElement("div");r.className="carousel-track";var o=document.createElement("div");o.className="thumbnail-container";var i=document.createElement("div");i.className="thumbnail-track",e.forEach(function(e,t){var n=e.querySelector("img");if(n){var o=document.createElement("div");o.className="carousel-slide"+(0===t?" active":"");var a=n.cloneNode(!0);a.removeAttribute("width"),a.removeAttribute("height"),o.appendChild(a),r.appendChild(o);var c=document.createElement("div");c.className="thumbnail"+(0===t?" active":""),c.setAttribute("data-slide",t);var l=n.cloneNode(!0);l.removeAttribute("width"),l.removeAttribute("height"),c.appendChild(l),i.appendChild(c)}});var a=document.createElement("button");a.className="carousel-nav prev",a.innerHTML='\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none">\n <path d="M15 18L9 12L15 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>\n ';var c=document.createElement("button");return c.className="carousel-nav next",c.innerHTML='\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none">\n <path d="M9 18L15 12L9 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>\n ',n.appendChild(r),n.appendChild(a),n.appendChild(c),o.appendChild(i),t.appendChild(n),t.appendChild(o),t}(n),o=e.querySelector(".slider-wrap"),i=o.querySelector(".add-slide");o.innerHTML="",o.appendChild(r),i&&o.appendChild(i),function(e){var t=e.querySelector(".main-carousel"),n=t.querySelector(".carousel-track"),r=n.querySelectorAll(".carousel-slide"),o=e.querySelectorAll(".thumbnail"),i=t.querySelector(".carousel-nav.prev"),a=t.querySelector(".carousel-nav.next"),c=0;function l(){n.style.transform="translateX(-".concat(100*c,"%)"),r.forEach(function(e,t){e.classList.toggle("active",t===c)}),o.forEach(function(e,t){e.classList.toggle("active",t===c)})}function u(e){(c+=e)>=r.length?c=0:c<0&&(c=r.length-1),l()}function s(e){c=e,l()}i.addEventListener("click",function(){return u(-1)}),a.addEventListener("click",function(){return u(1)}),o.forEach(function(e,t){e.addEventListener("click",function(){return s(t)})});var d=0,v=0;n.addEventListener("touchstart",function(e){d=e.touches[0].clientX}),n.addEventListener("touchmove",function(e){v=e.touches[0].clientX}),n.addEventListener("touchend",function(){var e=d-v;Math.abs(e)>50&&u(e>0?1:-1)})}(o)}}})}n(1629),n(6099),n(8992),n(3949),n(3500),document.addEventListener("DOMContentLoaded",function(){r()})},5459(){document.addEventListener("click",function(e){if(e.target.matches(".snippet11-preview")||e.target.closest(".snippet11-preview")){var t=e.target.matches(".snippet11-preview")?e.target:e.target.closest(".snippet11-preview"),n=t.firstElementChild?t.firstElementChild.dataset.source:null;n&&(t.classList.remove("snippet11-preview"),t.innerHTML='<div class="embed-responsive embed-responsive-16by9"><iframe class="embed-responsive-item" src="'+n+'" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>')}}),document.addEventListener("click",function(e){if(e.target.matches(".snippet15 .opener")||e.target.closest(".snippet15 .opener")){var t=e.target.matches(".snippet15 .opener")?e.target:e.target.closest(".snippet15 .opener");t.classList.toggle("open");var n=t.nextElementSibling;n&&n.classList.contains("content")&&("none"!==n.style.display&&n.style.display?n.style.display="none":n.style.display="block")}}),document.addEventListener("click",function(e){if(e.target.matches(".snippet20 .financingMore")||e.target.closest(".snippet20 .financingMore")){var t=e.target.matches(".snippet20 .financingMore")?e.target:e.target.closest(".snippet20 .financingMore");t.classList.toggle("open");var n=t.closest(".snippet");if(n){var r=n.querySelector(".financingText");r&&("none"!==r.style.display&&r.style.display?(r.style.display="none",r.style.maxHeight=null):(r.style.display="block",r.style.maxHeight=r.scrollHeight+"px"))}}}),document.querySelectorAll(".lightSlider",{})},7683(e,t,n){"use strict";var r=()=>n(2195),o=()=>n(2106),i=()=>n(3724),a=()=>n(9504),c=()=>n(1181),l=()=>n(1034),u=()=>n(8429),s=()=>n(3635),d=()=>n(655),v=n.cw(function(e,t){var r=i(),o=n(4576),v=a(),h=n(2796),f=n(3167),p=n(6699),m=n(2360),g=n(8480).f,y=n(1625),S=n(788),b=d(),w=l(),E=u(),k=n(1056),L=n(6840),A=n(9039),C=n(9297),x=c().enforce,T=n(7633),R=n(8227),M=s(),I=n(8814),K=R("match"),_=o.RegExp,q=_.prototype,N=o.SyntaxError,P=v(q.exec),O=v("".charAt),F=v("".replace),V=v("".indexOf),D=v("".slice),U=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,B=/a/g,j=/a/g,W=new _(B)!==B,H=E.MISSED_STICKY,J=E.UNSUPPORTED_Y,Y=r&&(!W||H||M||I||A(function(){return j[K]=!1,_(B)!==B||_(j)===j||"/a/i"!==String(_(B,"i"))}));if(h("RegExp",Y)){for(var z=function(e,t){var n,r,o,i,a,c,l=y(q,this),u=S(e),s=void 0===t,d=[],v=e;if(!l&&u&&s&&e.constructor===z)return e;
1if((u||y(q,e))&&(e=e.source,s&&(t=w(v))),e=void 0===e?"":b(e),t=void 0===t?"":b(t),v=e,M&&"dotAll"in B&&(r=!!t&&V(t,"s")>-1)&&(t=F(t,/s/g,"")),n=t,H&&"sticky"in B&&(o=!!t&&V(t,"y")>-1)&&J&&(t=F(t,/y/g,"")),I&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a=m(null),c=!1,l=!1,u=0,s="";r<n;r++){if("\\"===(t=O(e,r))){if(t+=O(e,++r),!l&&"\\"===O(t,1)){o+="\\x5c";continue}}else if("]"===t)c=!1;else if(!c)switch(!0){case"["===t:c=!0;break;case"("===t:o+=t,P(U,D(e,r+1))?(r+=2,l=!0,u++):"?"!==O(e,r+1)&&u++;continue;case">"===t&&l:if(""===s||C(a,s))throw new N("Invalid capture group name");a[s]=!0,i[i.length]=[s,u],l=!1,s="";continue}l?s+=t:o+=t}for(var d=0;d<i.length;d++)for(var v="\\k<"+i[d][0]+">",h="\\"+i[d][1];V(o,v)>-1;)o=F(o,v,h);return[o,i]}(e),e=i[0],d=i[1]),a=f(_(e,t),l?this:q,z),(r||o||d.length)&&(c=x(a),r&&(c.dotAll=!0,c.raw=z(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<n;r++)"\\"!==(t=O(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+O(e,++r);return o}(e),n)),o&&(c.sticky=!0),d.length&&(c.groups=d)),e!==v)try{p(a,"source",""===v?"(?:)":v)}catch(e){}return a},Q=g(_),X=0;Q.length>X;)k(z,_,Q[X++]);q.constructor=z,z.prototype=q,L(o,"RegExp",z,{constructor:!0})}T("RegExp")}),h=n.cw(function(e,t){var n=i(),a=s(),l=r(),u=o(),d=c().get,v=RegExp.prototype,h=TypeError;n&&a&&u(v,"dotAll",{configurable:!0,get:function(){if(this!==v){if("RegExp"===l(this))return!!d(this).dotAll;throw new h("Incompatible receiver, RegExp required")}}})}),f=n.cw(function(e,t){var n=i(),a=u().MISSED_STICKY,l=r(),s=o(),d=c().get,v=RegExp.prototype,h=TypeError;n&&a&&s(v,"sticky",{configurable:!0,get:function(){if(this!==v){if("RegExp"===l(this))return!!d(this).sticky;throw new h("Incompatible receiver, RegExp required")}}})}),p=n.cw(function(e,t){var r=n(9565),o=a(),i=n(9228),c=n(8551),u=n(34),s=n(8014),v=d(),h=n(7750),f=n(5966),p=n(7829),m=l(),g=n(6682),y=o("".indexOf);i("match",function(e,t,n){return[function(t){var n=h(this),o=u(t)?f(t,e):void 0;if(o)return r(o,t,n);var i=v(n);return new RegExp(t)[e](i)},function(e){var r=c(this),o=v(e),i=n(t,r,o);if(i.done)return i.value;var a=v(m(r));if(!~y(a,"g"))return g(r,o);var l=!!~y(a,"u")||!!~y(a,"v");r.lastIndex=0;for(var u,d=[],h=0;null!==(u=g(r,o));){var f=v(u[0]);d[h]=f,""===f&&(r.lastIndex=p(o,s(r.lastIndex),l)),h++}return 0===h?null:d}]})});n(6919),n(9060),n(5459),n(2818),n(2675),n(9463),n(2259),n(6280),n(6918),n(113),n(1629),n(3418),n(5276),n(4346),n(3792),n(2062),n(4114),n(4782),n(6910),n(739),n(3288),n(2010),n(3110),n(6099),n(6034);v(),h();n(7495);f();n(906),n(8781),n(1415),n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698),n(7764);p();n(2762),n(778),n(8992),n(2577),n(3949),n(1454),n(3500),n(2953),n(6031),n(3296),n(7208),n(8408),n(4603),n(7566),n(8721);var m=n(2850),g=n(7953),y=n(9324),S=n(3731),b=n(3919),w=n(6713),E=n(4090),k=n(1544),L=n(3059),A=n(4057),C=n(3253);function x(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var R=null,M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;"undefined"!=typeof window&&(R||(R=(0,A.e)({selector:"[data-sr]",threshold:isMobileViewport?.02:.15,rootMargin:isMobileViewport?"0px 0px 0px":"0px 0px -10%",observeMutations:!0})),R.refresh(e))},I=(0,m.Ef)({components:{Slider:g.A,Carousel:L.FN,Slide:L.q7,CarouselPagination:L.dK,CarouselNavigation:L.Vx},setup:function(){var e=(0,S.p)(),t=e.archiveList,n=e.vfilter,r=e.maxFinalPrice,o=e.minFinalPrice,i=e.maxMonthlyFee,a=e.filterKmList,c=e.resetFilters,l=e.vehicleList,u=e.loadingVehicleList,s=e.filteredVehicleList,d=e.changeFilter,v=e.submitVehicleSearch,h=e.getFieldList,f=e.triggerClick,p=e.getBrandList,g=e.getModelList,L=(0,m.KR)([]),A=(0,m.KR)([{label:"Filtri tradizionali",code:"general",active:!0,show:!0},{label:"Marca",code:"brand",active:!1,show:!0},{label:"Carrozzeria",code:"frame",active:!1,show:!0},{label:"Il tuo stile",code:"style",active:!1,show:!0},{label:"Riprendi da dove hai lasciato",code:"contentcookie",active:!1,show:!1}]),C=(0,m.KR)(null),T=(0,m.KR)(null),R=(0,m.KR)(null),I=(0,m.KR)(""),K=(0,m.KR)(!1),_=(0,m.KR)({usato:{currentSlide:0,vehicles:[]},km0:{currentSlide:0,vehicles:[]},nuovo:{currentSlide:0,vehicles:[]}}),q=(0,m.KR)([]),N=(0,m.KR)([]),P=(0,m.KR)(null),O=(0,m.KR)(null),F=(0,m.KR)({itemsToShow:2,itemsToScroll:2,breakpointMode:"carousel",snapAlign:"start",ga
1p:8,paginateByItemsToShow:!0}),V=(0,m.KR)(1),D=(0,m.KR)({step_1:"",step_2_a:"",step_2_b:"",step_2_c:"",step_3_a:"",step_4:[]}),U=(0,m.KR)([]),B=(0,m.KR)([]),j=(0,m.KR)([]),W=(0,m.KR)([]),H=(0,m.KR)([]),J=(0,m.KR)([]),Y=(0,m.KR)(null),z=(0,m.KR)(null),Q=function(e){(0,m.dY)(function(){if("contentcookie"===e){var t=document.getElementById("contentcookie-cnt");t&&M(t)}else{var n=document.getElementById("search-type-cnt");n&&M(n)}})},X=function(e){A.value.forEach(function(e){return e.active=!1}),e.active=!0,window.innerWidth<=767&&setTimeout(function(){var e=document.querySelector("#choose-search-cnt .choose-search-scroll"),t=null==e?void 0:e.querySelector("button.active");if(e&&t){var n=t.offsetLeft-e.offsetLeft-136;e.scrollTo({left:n,behavior:"smooth"})}},50),C.value||"brand"!=e.code||y.A.get("/api/brand-vehicle-list",{headers:{"Content-Type":"application/json"}}).then(function(e){var t=e.data;C.value=t}).catch(function(e){console.error("Errore nel caricamento brandArchiveList:",e)}),T.value||"frame"!=e.code||y.A.get("/api/frame-vehicle-list",{headers:{"Content-Type":"application/json"}}).then(function(e){var t=e.data;T.value=t}).catch(function(e){console.error("Errore nel caricamento frameList:",e)}),R.value||"style"!=e.code||y.A.get("/api/survey-question-list",{headers:{"Content-Type":"application/json"}}).then(function(e){var t=e.data;R.value=t,U.value=t[0].surveyAnswers,B.value=t[1].surveyAnswers,j.value=t[2].surveyAnswers,W.value=t[3].surveyAnswers,H.value=t[4].surveyAnswers,J.value=t[5].surveyAnswers}).catch(function(e){console.error("Errore nel caricamento surveyQuestionList:",e)}),Q(e.code)},$=function(){y.A.post("/api/survey-calc-vehicles",D.value).then(function(e){var t=e.data;Y.value=t.total,z.value=t.answers}).catch(function(e){console.error("err survey",e)})},G=null,Z=(0,m.KR)(!1),ee=function(){Z.value=!0,G&&(clearTimeout(G),G=null),G=setTimeout(function(){if(I.value.trim().length<3)return Z.value=!1,null;var e="";"undefined"!=typeof filterArray&&"undefined"!==filterArray.brand&&filterArray.brand&&(e=filterArray.brand),y.A.post("/api/open-search",{text:I.value,brand:e},{headers:{"Content-Type":"application/json"}}).then(function(e){var t=0,n=e.data;if(_.value.usato={currentSlide:0,vehicles:n.usato},_.value.km0={currentSlide:0,vehicles:n.km0},_.value.nuovo={currentSlide:0,vehicles:n.nuovo},Object.values(_.value).forEach(function(e){e&&e.vehicles&&(e.vehicles.length&&t++,Array.isArray(e.vehicles)&&e.vehicles.forEach(function(e){e.currentSlide=0}))}),q.value=x(new Set(n.aggregations)),Z.value=!1,_.value.promo=null,n.promo&&(t++,_.value.promo=n.promo,setTimeout(function(){document.querySelectorAll(".card-os-promo .countdown").forEach(function(e){var t=e.getAttribute("data-date");(0,w.o)(e,t)})},500)),_.value.lookbookUrl=null,(t<4||isMobileViewport)&&n.nuovo){var r=n.nuovo.find(function(e){return e.configuratorUrl});r||(r=n.nuovo.find(function(e){return e.lookbookUrl})),r&&(_.value.lookbookUrl=r.configuratorUrl?r.configuratorUrl:r.lookbookUrl,t++)}_.value.banner=null,n.banner&&(t<4||isMobileViewport)&&(t++,_.value.banner=n.banner)}).catch(function(){Z.value=!1})},500)},te=function(){if("undefined"!=typeof window&&window.history.replaceState){var e=new URL(window.location.href);if(e.searchParams.has("searchType")){e.searchParams.delete("searchType");var t=e.searchParams.toString(),n=e.pathname+(t?"?"+t:"")+e.hash;window.history.replaceState({},"",n)}}};is_home_brand||function(){for(var e=!1,t=0,n=["vehicle_search","vehicles_view"];t<n.length;t++){var r=n[t];document.cookie.match(new RegExp("(^| )"+r+"=([^;]+)"))&&(e=!0)}var o=document.cookie.match(new RegExp("(^| )cookie_created=([^;]+)"));if(o){var i=decodeURIComponent(o[2]),a=new Date(i);(new Date-a)/36e5<24&&(e=!1)}e&&(y.A.get("/api/content-by-cookie",{headers:{"Content-Type":"application/json"}}).then(function(e){var t=e.data;P.value=t;var n=A.value.find(function(e){return"contentcookie"===e.code}),r="undefined"==typeof searchType||!searchType||"contentcookie"===searchType;n&&(n.show=!0,r&&(X(n),Q("contentcookie")))}).catch(function(e){console.error("Errore nel caricamento content-by-cookie:",e)}),y.A.get("/api/featured-vehicles",{headers:{"Content-Type":"application/json"}}).then(function(e){var t=e.data;O.value=t}).catch(function(e){console.error("Errore nel caricamento content-by-cookie:",e)}))}();var ne=(0,m.EW)(function(){var e=x(A.value);return e.sort(function(e,t){return e.active&&!t.active?-1:!e.active&&t.active?1:0}),e}),re=(0,m.EW)(function(){return K.value||I.value.length>=3}),oe=(0,m.EW)(function(){return K.value&&I.value.trim().length<3});return(0,m.sV)(function(){if(document.querySelectorAll(".countdown").forEach(function(e){var t=e.getAttribute("data-date");(0,w.o)(e,t)}),document.querySelectorAll(".most-search-btn").forEach(function(e){e.addEventListener("click",function(){document.querySelectorAll(".most-search-btn").forEach(function(e){return e.classList.remove("active")}),e.classList.add("active");var t=Array.from(document.querySelectorAll(".most-search-btn")).indexOf(e);document.querySelectorAll(".bannerLink-box").forEach(function(e,n){e.classList.toggle("active",n===t)})})}),document.querySelectorAll(".bannerLink-box button").forEach(function(e){e.addEventListener("click",function(){e.style.display="none";var t=e.closest(".bannerLink-box");t&&t.querySelectorAll(".hide").forEach(function(e){e.classList.remove("hide")})})}),"undefined"!=typeof searchType&&searchType){if(!A.value||0==A.value.length)return;if("open-search"===searchType)K.value=!0,setTimeout(function(){var e=document.getElementById("open-search");e&&(e.focus(),e.scrollIntoView({behavior:"smooth",block:"center"}))},50);else{var e=A.value.find(function(e){return e.code===searchType});e&&X(e)}}M(document.getElementById("home-top-cnt"))}),{placeholders:L,chooseSearchList:A,archiveList:t,vfilter:n,maxFinalPrice
1:r,minFinalPrice:o,maxMonthlyFee:i,vehicleList:l,filterKmList:a,brandArchiveList:C,frameList:T,loadingVehicleList:u,inputOpenSearch:I,osVehicleList:_,osCarouselNext:function(e,t){t?e.currentSlide<=e.vehicles.length/t&&(e.currentSlide=e.currentSlide+t):e.currentSlide<e.vehicles.length-1&&(e.currentSlide=e.currentSlide+1)},osCarouselPrev:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;e.currentSlide>0&&(e.currentSlide=e.currentSlide-t)},slideNext:function(e){e.currentSlide<e.images.length-1?e.currentSlide=e.currentSlide+1:e.currentSlide=0},slidePrev:function(e){e.currentSlide>0?e.currentSlide=e.currentSlide-1:e.currentSlide=e.images.length-1},contentByCookie:P,featuredVehicleList:O,configCarouselType1:F,osResultsCarouselConfig:{snapAlign:"start",wrapAround:!1,mouseDrag:!0,touchDrag:!0,gap:12,itemsToShow:2,itemsToScroll:2,breakpoints:{768:{itemsToShow:1,itemsToScroll:1,snapAlign:"center",gap:0}}},openSearchLoader:Z,aggregations:q,aggregationsSelected:N,surveyStep:V,surveyQuestion:D,surveyQuestionList:R,step1options:U,step2aoptions:B,step2boptions:j,step2coptions:W,step3aoptions:H,step4options:J,vehicleListNumber:Y,chooseSearchListMobile:ne,showOpenSearchLayout:re,isOpenSearchPlaceholderVisible:oe,triggerClick:f,formatPrice:b.$,textTransform:E.G,startCountdown:w.o,chooseSearch:X,resetFilters:c,changeFilter:d,filteredVehicleList:s,getFieldList:h,getBrandList:p,getModelList:g,submitVehicleSearch:v,openSearch:ee,toggleFavourite:k.Mb,isFavourite:k.yo,getURLSearchParams:function(e){return new URLSearchParams(e).toString()},deleteCookieNavigation:function(){document.cookie="vehicle_search=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",document.cookie="vehicles_view=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",P.value=null;var e=A.value.find(function(e){return"contentcookie"===e.code});e&&(e.show=!1);var t=A.value.find(function(e){return"general"===e.code});X(t)},addAggregation:function(e){N.value.push(e),I.value=I.value+" "+e,ee()},checkStep:function(){return 1==V.value&&!D.value.step_1||(!(2!=V.value||D.value.step_2_a&&D.value.step_2_b)||(3==V.value&&!D.value.step_2_c||(4==V.value&&!D.value.step_3_a||5==V.value&&!D.value.step_4)))},checkStep4Option:function(e){D.value.step_4.length>2&&(D.value.step_4=[],D.value.step_4.push(e)),$()},surveyGoTo:function(e){V.value=e,5==V.value&&$()},goToSurveyList:function(){var e=new URLSearchParams(z.value).toString();y.A.post("/api/save-survey-fill",z.value).then(function(t){location.href="/lista-veicoli-survey?"+e}).catch(function(e){error.log("err",e)})},redirectToLookbook:function(){y.A.post("/api/find-lookbook",{brand:n.value.brand,model:n.value.model},{headers:{"Content-Type":"application/json"}}).then(function(e){var t=e.data;t.link&&(location.href=t.link)}).catch(function(e){console.error("Errore nel caricamento content-by-cookie:",e)})},resetOpenSearch:function(){I.value="",q.value=null,N.value=[],K.value=!1,Z.value=!1,te(),"undefined"!=typeof searchType&&(searchType="")},handleOpenSearchFocus:function(){isMobileViewport&&(K.value=!0)}}}});I.directive("carousel-scroll-lock",C.I),I.mount("#home-top-cnt",!0);var K=(0,m.Ef)({components:{Carousel:L.FN,Slide:L.q7,CarouselPagination:L.dK,CarouselNavigation:L.Vx},setup:function(){var e=(0,m.KR)([]),t=(0,m.KR)(0),n=(0,m.EW)(function(){return e.value.length>0}),r=(0,m.EW)(function(){return e.value.length>0}),o=(0,m.EW)(function(){return n.value?1:0}),i=((0,m.EW)(function(){var n=t.value-o.value,r=Math.max(e.value.length-1,0);return Math.min(Math.max(n,0),r)}),(0,m.EW)(function(){return{itemsToShow:1.3,snapAlign:"center",transition:300,wrapAround:!1,mouseDrag:!0,touchDrag:!0}}));return(0,m.sV)(function(){y.A.get("/api/home-vehicle-list",{headers:{"Content-Type":"application/json"}}).then(function(n){var r=n.data;e.value=r,t.value=o.value,(0,m.dY)(function(){return M(document.getElementById("vehicle-home-cnt"))})}).catch(function(e){console.error("Errore nel caricamento homeVehicleList:",e)}),M(document.getElementById("vehicle-home-cnt"))}),{homeVehicleList:e,slideNext:function(e){e.currentSlide<e.images.length-1&&(e.currentSlide=e.currentSlide+1)},slidePrev:function(e){e.currentSlide>0&&(e.currentSlide=e.currentSlide-1)}
1,formatPrice:b.$,toggleFavourite:k.Mb,isFavourite:k.yo,activeSlide:t,mobileCarouselConfig:i,onSlideChange:function(e){t.value=e},showLeadingSpacer:n,showTrailingSpacer:r,vehicleSlideClass:function(e){return"vehicle-slide"},vehicleListSchema:function(){var t=e.value.map(function(e,t){return{"@type":"ListItem",position:t+1,item:{"@type":"Car",name:e.brand+" "+e.model+" "+e.version,vehicleIdentificationNumber:e.vin,url:window.location.origin+e.url,image:e.images[0],offers:{"@type":"Offer",priceCurrency:"EUR",price:e.finalPrice,availability:"stock"==e.status?"https://schema.org/InStock":"https://schema.org/PreOrder"}}}});return JSON.stringify({"@context":"http://schema.org","@type":"CollectionPage",name:"Le migliori offerte della settimana",url:window.location.href.split("?")[0].toLowerCase(),mainEntity:{"@type":"ItemList",itemListElement:t}},null,2)}}}});if(K.directive("carousel-scroll-lock",C.I),K.mount("#vehicle-home-cnt",!0),"undefined"!=typeof window){var _=function(e){var t=document.getElementById(e);t&&(0,m.Ef)({components:{Carousel:L.FN,Slide:L.q7},setup:function(){var e=(0,m.KR)(0);return(0,m.sV)(function(){(0,m.dY)(function(){return M(t.closest("[data-sr]")||t)})}),{config:{itemsToShow:1.3,snapAlign:"center",transition:300,wrapAround:!1,mouseDrag:!0,touchDrag:!0},activeSlide:e,onSlideChange:function(t){e.value=t},slideClass:function(t){return{"bannerPromo-slide":!0,"bannerPromo-slide--active":e.value===t}}}}}).directive("carousel-scroll-lock",C.I).mount(t,!0)},q=function(){_("bannerPromoTopCarousel"),_("bannerPromoBottomCarousel")};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",q,{once:!0}):q()}},7240(e,t,n){"use strict";var r=n(9504),o=n(7750),i=n(655),a=/"/g,c=r("".replace);e.exports=function(e,t,n,r){var l=i(o(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+c(i(r),a,""")+'"'),u+">"+l+"</"+t+">"}},3061(e,t,n){"use strict";var r=n(9039);e.exports=function(e){return r(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},706(e,t,n){"use strict";var r=n(350).PROPER,o=n(9039),i=n(7452);e.exports=function(e){return o(function(){return!!i[e]()||"âÂ
á "!=="âÂ
á "[e]()||r&&i[e].name!==e})}},739(e,t,n){"use strict";var r=n(6518),o=n(9039),i=n(8981),a=n(2777);r({target:"Date",proto:!0,forced:o(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(e){var t=i(this),n=a(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},6034(e,t,n){"use strict";var r=n(6518),o=n(2357).z;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},778(e,t,n){"use strict";var r=n(6518),o=n(7240);r({target:"String",proto:!0,forced:n(3061)("link")},{link:function(e){return o(this,"a","href",e)}})},2762(e,t,n){"use strict";var r=n(6518),o=n(3802).Bq;r({target:"String",proto:!0,forced:n(706)("trim")},{trim:function(){return o(this)}})}},e=>{e.O(0,[835,271,95,285,59,981,440,439,781,631,231,438,947,328],()=>e(7683));e.O()}]);
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.