PageSourceSearch

https://www.carplanner.com/_next/static/chunks/pages/auto-elettriche/offerte-auto-d681223d04138d58.js

js carplanner.com collected 2026-09-25 20:37:42 UTC 12,310 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5243],{51469:function(e,t,n){"use strict";n.d(t,{Sx:function(){return l}});var r=n(67294),o=n(83904),i=n(18229),a=n(54302);function s(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function l(e,t){var n;let l=s(t)?t:{fallback:t??"base"},c=function(e){var t;let n=s(e)?e:{fallback:e??"base"},a=(0,o.Fg)(),l=a.__breakpoints.details.map(({minMaxQuery:e,breakpoint:t})=>({breakpoint:t,query:e.replace("@media screen and ","")})),c=l.map(e=>e.breakpoint===n.fallback),u=function e(t,n={}){let{ssr:o=!0,fallback:a}=n,s=(0,i.O)(),l=Array.isArray(t)?t:[t],c=Array.isArray(a)?a:[a];c=c.filter(e=>null!=e);let[u,f]=(0,r.useState)(()=>l.map((e,t)=>({media:e,matches:o?!!c[t]:s.window.matchMedia(e).matches})));return(0,r.useEffect)(()=>{f(l.map(e=>({media:e,matches:s.window.matchMedia(e).matches})));let e=l.map(e=>s.window.matchMedia(e)),t=e=>{f(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))};return e.forEach(e=>{"function"==typeof e.addListener?e.addListener(t):e.addEventListener("change",t)}
1),()=>{e.forEach(e=>{"function"==typeof e.removeListener?e.removeListener(t):e.removeEventListener("change",t)})}},[s.window]),u.map(e=>e.matches)}(l.map(e=>e.query),{fallback:c,ssr:n.ssr}),f=u.findIndex(e=>!0==e);return(null==(t=l[f])?void 0:t.breakpoint)??n.fallback}(l),u=(0,o.Fg)();if(!c)return;let f=Array.from((null==(n=u.__breakpoints)?void 0:n.keys)||[]),p=Array.isArray(e)?Object.fromEntries(Object.entries((0,a.Yq)(e,f)).map(([e,t])=>[e,t])):e;return function(e,t,n=a.AV){let r=Object.keys(e).indexOf(t);if(-1!==r)return e[t];let o=n.indexOf(t);for(;o>=0;){let i=n[o];if(e.hasOwnProperty(i)){r=o;break}o-=1}if(-1!==r){let s=n[r];return e[s]}}(p,c,f)}},21335:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return b}}),n(67294);var r=n(5152),o=n.n(r),i=n(11163),a=n(51469),s=n(48641),l=n(18132),c=n(26718),u=n(71033),f=n(13925),p=n(14416),d=n(85893);let h=o()(()=>Promise.all([n.e(3382),n.e(5675),n.e(9135),n.e(1113),n.e(5720),n.e(3280)]).then(n.bind(n,85720)),{loadableGenerated:{webpack:()=>[85720]}}),m=o()(()=>Promise.all([n.e(3382),n.e(5675),n.e(3344),n.e(9135),n.e(3292),n.e(9653),n.e(1113),n.e(4608)]).then(n.bind(n,44608)),{loadableGenerated:{webpack:()=>[44608]}}),g=o()(()=>Promise.all([n.e(3382),n.e(5675),n.e(2732),n.e(809),n.e(9226)]).then(n.bind(n,56169)),{loadableGenerated:{webpack:()=>[56169]}}),v=o()(()=>Promise.all([n.e(3382),n.e(1759)]).then(n.bind(n,1759)),{loadableGenerated:{webpack:()=>[1759]}}),y=e=>{let{page:t}=e,{t:n}=(0,l.$)(),r=(0,i.useRouter)(),o=(0,a.Sx)({base:!0,md:!1}),y=(0,p.v9)(e=>e.sell.listingPage);(0,f.Kx)();let b=[{page:"Home Page",href:"/",title:"Home Page"},{page:"Auto elettriche",title:"Auto elettriche"},{page:n("indexPage:sell_offers.title"),href:r.asPath,title:n("indexPage:sell_offers.title")}];return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(c.Z,{title:n("sellAutoElettrichePage:header.title")}),(0,d.jsx)(u.Z,{meta:n("sellAutoElettrichePage:meta",{returnObjects:!0})}),(0,d.jsx)(u.M,{rel:"canonical",href:"https://www.carplanner.com/auto-elettriche/offerte-auto".concat(t&&t>1?"?pagina=".concat(t):"")}),(0,d.jsx)(v,{title:n("sellAutoElettrichePage:header.title"),description:n("sellAutoElettrichePage:header.description"),crumbs:b,domain:"sell"}),(0,d.jsxs)(s.xu,{w:"100%",display:"inline-block",pb:"24px",pl:"l",children:[(0,d.jsx)(h,{}),(0,d.jsx)(g,{})]}),y<2&&(0,d.jsx)(s.xu,{mx:"l",mb:"xxl4",textAlign:"left",fontFamily:"Montserrat-Regular",color:"baseDark",className:"landing-text",dangerouslySetInnerHTML:{__html:n("sellAutoElettrichePage:text")}}),o&&(0,d.jsx)(m,{})]})};var b=!0;t.default=y},26718:function(e,t,n){"use strict";n(67294);var r=n(9008),o=n.n(r),i=n(18132),a=n(34755),s=n(85893);let l=e=>{let{title:t}=e,{t:n}=(0,i.$)();return(0,s.jsxs)(o(),{children:[(0,s.jsxs)("title",{children:[t||n("common:header.title")," ","| CarPlanner"]}),(0,s.jsx)("link",{rel:"preload",crossOrigin:"anonymous",type:"font/woff2",href:"https://static1.carplanner.com/fonts/Montserrat-Regular.woff2",as:"font"}),(0,s.jsx)("link",{rel:"preload",crossOrigin:"anonymous",type:"font/woff2",href:"https://static1.carplanner.com/fonts/Montserrat-Medium.woff2",as:"font"}),(0,s.jsx)("link",{rel:"preload",crossOrigin:"anonymous",type:"font/woff2",href:"https://static1.carplanner.com/fonts/Montserrat-SemiBold.woff2",as:"font"}),(0,s.jsx)("link",{rel:"preload",as:"image",href:a.BH}),(0,s.jsx)("link",{rel:"preload",as:"image",href:a.qk[0].image}),(0,s.jsx)("link",{rel:"preload",as:"image",href:a.qk[1].image})]})};t.Z=l},71033:function(e,t,n){"use strict";n.d(t,{M:function(){return c}}),n(67294);var r=n(9008),o=n.n(r),i=n(85893);let a=e=>{if(!e||"object"!=typeof e)return!1;let t="string"==typeof e.name||"string"==typeof e.property;if(!t)return!1;let n=void 0===e.content||"string"==typeof e.content,r=void 0===e.override||"string"==typeof e.override;return n&&r},s=e=>e?Array.isArray(e)?e.filter(a):a(e)?[e]:"object"==typeof e?Object.values(e).filter(a):[]:[],l=e=>{let{meta:t}=e,n=s(t);return 0===n.length?null:(0,i.jsx)(o(),{children:n.map((e,t)=>{var n,r,o;let a=e.override&&""!==e.override.trim()?e.override:null!==(n=e.content)&&void 0!==n?n:"",s=null!==(r=null!==(o=e.name)&&void 0!==o?o:e.property)&&void 0!==r?r:"meta-".concat(t);return e.name?(0,i.jsx)("meta",{name:e.name,content:a},s):e.property?(0,i.jsx)("meta",{property:e.property,content:a},s):null})})};t.Z=l;let c=e=>{let{rel:t,href:n,crossOrigin:r,type:a,as:s}=e,l="";if("canonical"===t&&n.indexOf("?")>=0){var c;l=null!==(c=n.split("?")[0])&&void 0!==c?c:""}else l=n;return(0,i.jsx)(o(),{children:(0,i.jsx)("link",{rel:t,href:l,crossOrigin:r||null,type:a||null,as:s||null})})}},13925:function(e,t,n){"use strict";n.d(t,{Kx:function(){return d},WQ:function(){return m},gU:function(){return g},rS:function(){return h}});var r=n(59499),o=n(67294),i=n(11163),a=n(14416),s=n(70461),l=n(26869),c=n(37398),u=n(89363);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?f(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let d=()=>{let e=()=>{(0,u.Qw)().size>0&&location.reload()};(0,o.useEffect)(()=>(window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}))},h=()=>{let{query:e}=(0,i.useRouter)(),{0:t,1:n}=(0,o.useState)({}),[r,a,l]=(0,s.Z)(["CP_TRACKER"]),c=new Date,u=parseInt("15"),f=new Date(c.setDate(c.getDate()+u));(0,o.useEffect)(()=>{n(e)},[e]);let d=()=>{let{utm_source:n=null,utm_medium:o=null,utm_ref:i=null,utm_campaign:s=null,utm_campaign_date:l=null}=p(p({},e),t);(n||o||i)&&(void 0===r.CP_TRACKER||!r.CP_TRACKER)&&a("CP_TRACKER",{source:n,referrer:i,medium:o,campaign:s,campaign_date:l},{path:"/",expires:f})},h=()=>l("CP_TRACKER");return[d,h,()=>r.CP_TRACKER]},m=e=>{let t=(0,a.I0)(),n=(0,a.v9)(e=>e.nlt.customizedOffer),r=(0,o.useMemo)(()=>(0,c.P9)(e),[e]),i={code:e.code,contractLength:e.contractLength,annualMileage:e.annualMileage,deposit:e.deposit,monthlyRate:e.monthlyRate,variationId:0},s=n&&n.code===e.code?p(p({},i),n):i,u=(e,t,n)=>(0,c.VI)(r,e,t,n),f=(e,n)=>{let o=p({},s);switch(e){case"duration":o.contractLength=n;break;case"distance":o.annualMileage=n;break;case"deposit":o.deposit=n;break;default:return}let{contractLength:i,annualMileage:a,deposit:f}=o;t((0,l.qN)(p(p({},o),{},{monthlyRate:u(i,a,f),variationId:(0,c.$7)(r,i,a,f)})))};return{offer:s,variations:r,getMonthlyRate:u,selectVariationItem:f}},g=e=>{let{offer:t,getMonthlyRate:n,selectVariationItem:r,variations:o}=m(e),{deposits:i}=(0,c.Mi)((0,c.$e)(o,t.contractLength,t.annualMileage,t.deposit)),a=e=>{let r=n(t.contractLength,t.annualMileage,e);return null==r?null:r},s=i.filter(e=>e===t.deposit||null!==a(e)).sort((e,t)=>e-t);return{offer:t,selectableDeposits:s,hasDepositChoice:s.length>1,monthlyRateFromDeposit:a,selectVariationItem:r}}},18942:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auto-elettriche/offerte-auto",function(){return n(21335)}])},70461:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(67294),o=n(76489);function i(e,t){void 0===t&&(t={});var n,r,o,i=(n=e,n&&"j"===n[0]&&":"===n[1]?n.substr(2):n);if(void 0===(o=t.doNotParse)&&(o=!i||"{"!==i[0]&&"["!==i[0]&&'"'!==i[0]),!o)try{return JSON.parse(i)}catch(a){}return e}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=function(){function e(e,t){var n,r,i=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies="string"==typeof e?o.parse(e,t):"object"==typeof e&&null!==e?e:{},new Promise(function(){i.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}).catch(function(){})}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=o.parse(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,n){return void 0===t&&(t={}),this._updateBrowserValues(n),i(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var n={};for(var r in this.cookies)n[r]=i(this.cookies[r],e);return n},e.prototype.set=function(e,t,n){var r;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=a(a({},this.cookies),((r={})[e]=t,r)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=o.serialize(e,t,n)),this._emitChange({name:e,value:t,options:n})},e.prototype.remove=function(e,t){var n=t=a(a({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=a({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=o.serialize(e,"",n)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}(),l=r.createContext(new s);function c(e){var t=(0,r.useContext)(l);if(!t)throw Error("Missing <CookiesProvider>");var n=t.getAll(),o=(0,r.useState)(n),i=o[0],a=o[1],s=(0,r.useRef)(i);"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement&&(0,r.useLayoutEffect)(function(){function n(){var n=t.getAll();(function(e,t,n){if(!e)return!0;for(var r=0;r<e.length;r++){var o=e[r];if(t[o]!==n[o])return!0}return!1})(e||null,n,s.current)&&a(n),s.current=n}return t.addChangeListener(n),function(){t.removeChangeListener(n)}},[t]);var c=(0,r.useMemo)(function(){return t.set.bind(t)},[t]),u=(0,r.useMemo)(function(){return t.remove.bind(t)},[t]);return[i,c,u]}l.Provider,l.Consumer},34755:function(e){"use strict";e.exports=JSON.parse('{"TN":"Lasciati guidare verso\\nla scelta dell’auto migliore","BH":"https://static1.carplanner.com/website/assets/index-head.jpg","Oc":"C
1arPlanner ti propone le offerte di auto nuove pi\xf9 competitive\\nsul mercato sia per l’acquisto che per il Noleggio a Lungo Termine","qk":[{"image":"https://static1.carplanner.com/website/assets/noleggia-la-tua-auto-a-lungo-termine-2.png","title":"Noleggia la tua auto a lungo termine","description":"Cerchi un’alternativa all’acquisto di un’auto?","action":"Scopri di pi\xf9","actionMobile":"Scopri","href":"/noleggio-a-lungo-termine","alt":"Offerte noleggio a lungo termine","target":"_self"},{"image":"https://static1.carplanner.com/website/assets/acquista-la-tua-nuova-auto-online-2.png","title":"Acquista la tua nuova auto online","description":"Cerchi la tua\\nnuova auto?","action":"Scopri di pi\xf9","actionMobile":"Scopri","href":"/offerte-auto","alt":"Offerte auto in vendita","target":"_self"}],"PX":{"a":"Contattaci ora"}}')}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=18942)}),_N_E=e.O()}]);
2//# sourceMappingURL=offerte-auto-d681223d04138d58.js.map

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.