(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7110],{2900:function(e,a,n){"use strict";var t=n(7437),i=n(727),r=n.n(i);a.Z=function(e){let a=null;return["green","orange"].includes(e.variant)&&(a="".concat(r()["chip_variant_".concat(e.variant)])),(0,t.jsx)("div",{className:"".concat(r().chip_container," ").concat(a||""),children:(0,t.jsx)("span",{className:r().chip_text,children:e.children})})}},6101:function(e,a,n){"use strict";var t=n(7437),i=n(5611),r=n.n(i);a.Z=function(e){return(0,t.jsxs)("div",{className:r().input_container,children:[!e.isNoPadding&&(0,t.jsx)("div",{className:r().label_wrap,children:e.label&&(0,t.jsx)("div",{className:r().input_label,children:e.label})}),(0,t.jsxs)("div",{className:"".concat(r().input_wrap," ").concat(e.isInvalid?r().input_invalid:""),children:[(0,t.jsx)("input",{type:"text",value:e.valueMin,onChange:a=>e.valueMinOnChange(a.target.value),maxLength:e.maxLength,name:e.valueMinName,className:r().input_text,disabled:e.disabled,placeholder:e.placeholderMin}),(0,t.jsx)("div",{className:r().input_text_sep}),(0,t.jsx)("input",{type:"text",value:e.valueMax,onChange:a=>e.valueMaxOnChange(a.target.value),maxLength:e.maxLength,name:e.valueMaxName,className:r().input_text,disabled:e.disabled,placeholder:e.placeholderMax}),e.units&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:r().input_text_sep}),(0,t.jsx)("div",{className:r().input_text_units,children:e.units})]})]}),e.isInvalid&&(0,t.jsx)("div",{className:r().input_text_invalid,children:e.errorMessage})]})}},4736:function(e,a,n){"use strict";var t=n(7437),i=n(2941),r=n.n(i);a.Z=function(e){return(0,t.jsx)("span",{className:r().option_wrap,children:e.children})}},2658:function(e,a,n){"use strict";n.d(a,{Z:function(){return c}});var t=n(7437),i=n(2265),r=n(5917),s=n.n(r),l=function(e,a){let[n,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let n=()=>{e&&t(e.getBoundingClientRect().top/window.innerHeight>a/100)};return n(),window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)},[e]),n},_=n(4215),c=(0,n(1304).Pi)(function(e){let[a,n]=(0,i.useState)(!1),[r,c]=(0,i.useState)(e.placeholder),[o,p]=(0,i.useState)(null),m=l(o,60),u=e=>{r!==e&&c(e)};(0,i.useEffect)(()=>{i.Children.map(e.children,a=>{"string"==typeof a.props.children&&e.value===a.props.value&&u(a.props.children)})}),(0,i.useEffect)(()=>{_.Z.uiStore.setCloseAllSelectorsAction(()=>n(!1))});let d=(e,a)=>{e.stopPropagation(),a&&_.Z.uiStore.closeAllSelectors(),n(a)},x=a=>{e.onChange(a)};return(0,t.jsxs)("div",{className:s().selector_container,children:[!e.isNoPadding&&(0,t.jsx)("div",{className:s().label_wrap,children:e.label&&(0,t.jsx)("div",{className:s().selector_label,children:e.label})}),(0,t.jsxs)("div",{ref:e=>p(e),onClick:e=>d(e,!a),className:"".concat(s().selector_wrap," ").concat(e.isInvalid?s().selector_invalid:""," ").concat(e.isSmall?s().selector_wrap_small:""),children:[(0,t.jsx)("div",{className:s().selector_text,children:(0,t.jsx)("span",{className:s().selector_span,children:r})}),(0,t.jsx)("div",{className:s().selector_icon,children:""}),(0,t.jsx)("div",{className:"".concat(s().options_wrap," ").concat(m?s().options_wrap_shift:""," ").concat(a?"":s().options_wrap_hide),children:i.Children.map(e.children,a=>(0,t.jsx)("div",{onClick:()=>x(a.props.value),className:"".concat(s().option_wrap," ").concat(e.value===a.props.value?s().option_wrap_selected:""),children:a}))})]}),e.isInvalid&&(0,t.jsx)("div",{className:s().selector_text_invalid,children:e.errorMessage})]})})},4414:function(e,a,n){"use strict";var t=n(7437);a.Z=function(e){return e.isShow?(0,t.jsxs)(t.Fragment,{children:[e.price," ",e.currencySymbol]}):(0,t.jsx)(t.Fragment,{children:"\xa0"})}},2273:function(e,a,n){"use strict";var t=n(7437),i=n(3685),r=n.n(i),s=n(8792);a.Z=function(e){return(0,t.jsxs)("div",{className:r().container,children:[(0,t.jsxs)("div",{className:r().line_1_wrap,children:[(0,t.jsx)("div",{className:r().message_wrap,children:e.children}),(0,t.jsxs)("div",{className:r().social_icons_wrap,children:[(0,t.jsx)("div",{className:r().sep}),(0,t.jsx)(s.default,{href:e.footerProps.telegram2,children:(0,t.jsx)("div",{className:r().social_icon_wrap,children:(0,t.jsx)("span",{className:r().social_icon,children:""})})}),(0,t.jsx)("div",{className:r().sep}),(0,t.jsx)(s.default,{href:e.footerProps.whatsapp,children:(0,t.jsx)("div",{className:r().social_icon_wrap,children:(0,t.jsx)("span",{className:r().social_icon,children:""})})})]})]}),(0,t.jsx)("div",{className:r().sep2}),(0,t.jsx)("div",{className:r().line_2_wrap,children:(0,t.jsxs)("div",{className:r().social_icons_wrap_line_2,children:[(0,t.jsx)("div",{className:r().social_icon_wrap_wrap_line_2,children:(0,t.jsx)("div",{className:r().social_icon_wrap_line_2,children:(0,t.jsx)(s.default,{href:e.footerProps.telegram,children:(0,t.jsx)("span",{className:r().social_icon,children:""})})})}),(0,t.jsx)("div",{className:r().sep}),(0,t.jsx)("div",{className:r().social_icon_wrap_wrap_line_2,children:(0,t.jsx)("div",{className:r().social_icon_wrap_line_2,children:(0,t.jsx)(s.default,{href:e.footerProps.whatsapp,children:(0,t.jsx)("span",{className:r().social_icon,children:""})})})})]})})]})}},7928:function(e,a,n){"use strict";n.d(a,{g:function(){return u}});var t=n(4215);let i=e=>{for(let a of[{min:0,max:2e5,rate:775},{min:2e5,max:45e4,rate:1550},{min:45e4,max:12e5,rate:3100},{min:12e5,max:27e5,rate:8530},{min:27e5,max:42e5,rate:12e3},{min:42e5,max:55e5,rate:15500},{min:55e5,max:7e6,rate:2e4},{min:7e6,max:8e6,rate:23e3},{min:8e6,max:9e6,rate:25e3},{min:9e6,max:1e7,rate:27e3},{min:1e7,max:1/0,rate:3e4}])if(e>a.min&&e<=a.max)return a.rate;return 0},r=(e,a,n,t)=>{if(t)return .15*e;if(!a||!n)return 0;if(new Date().getFullYear()-n<=3){for(let n of[{min:0,max:8500,rate:.54,minRate:2.5},{min:8500,max:16700,rate:.48,minRate:3.5},{min:16700,max:42300,rate:.48,minRate:5.5},{min:42300,max:84500,rate:.48,minRate:7.5},{min:84500,max:169e3,rate:.48,minRate:15},{min:169e3,max:1/0,rate:.48,minRate:20}])if(e>n.min&&e<=n.max)return Math.max(e*n.rate,a*n.minRate)}else{let e=[{min:0,max:1e3,rateMin:1.5,rateMax:3},{min:1e3,max:1500,rateMin:1.7,rateMax:3.2},{min:1500,max:1800,rateMin:2.5,rateMax:3.5},{min:1800,max:2300,rateMin:2.7,rateMax:4.8},{min:2300,max:3e3,rateMin:3,rateMax:5},{min:3e3,max:1/0,rateMin:3.6,rateMax:5.7}];if(new Date().getFullYear()-n<=5){for(let n of e)if(a>n.min&&a<=n.max)return a*n.rateMin}else for(let n of e)if(a>n.min&&a<=n.max)return a*n.rateMax}return 0},s=(e,a,n)=>{if(n)return new Date().getFullYear()-a<=3?3400.0000000000005:5200;{if(!e||!a)return 0;let n=[{min:0,max:3e3,rateMin:.17,rateMax:.26},{min:3e3,max:3500,rateMin:48.5,rateMax:74.25},{min:3500,max:1/0,rateMin:61.76,rateMax:81.19}];if(new Date().getFullYear()-a<=3){for(let a of n)if(e>a.min&&e<=a.max)return 2e4*a.rateMin}else for(let a of n)if(e>a.min&&e<=a.max)return 2e4*a.rateMax}return 0},l=(e,a)=>a?.2*e:0,_=(e,a)=>{if(!a||!e)return 0;for(let a of[{min:0,max:90,rate:0},{min:90,max:150,rate:58},{min:150,max:200,rate:557},{min:200,max:300,rate:912},{min:300,max:400,rate:1555},{min:400,max:500,rate:1609},{min:500,max:1/0,rate:1662}])if(e>a.min&&e<=a.max)return e*a.rate;return 0},c=(e,a)=>{let n=t.Z.mainStore.store.countriesList.items.find(a=>a.id===e),i=t.Z.mainStore.store.expensesList.items.filter(a=>a.country_id===e);if(!a){let e=i.findIndex(e=>!0===e.is_new);i.splice(e,1)}return[...i.map(e=>({name:e.name,amount:e.amount*n.exchangeRate}))]},o=()=>t.Z.mainStore.store.expensesList.items.filter(e=>null===e.country_id).map(e=>({name:e.name,amount:e.amount})),p=e=>{let a=e/10-3e4;return a>0?a:0},m=e=>e/11.3,u=(e,a,n,u,d,x,h,f)=>{if(console.log("price, year, displacement, power, isElectric, countryCode, isNew, fuelTypeNum",e,a,n,u,d,x,h,f),!e||!a||!u||!x||!f||1===x)return{details:{ruTaxes:[],countryExpenses:[],commonExpenses:[]},price:e};n*=1e3;let w=c(x,h),v=0!==x?o():[];if(3===x&&h){let a;e-=.13*e;let n=t.Z.mainStore.store.countriesList.items.find(e=>3===e.id);a=1===f||2===f?m(e/n.exchangeRate):3===f||4===f?p(e/n.exchangeRate):0,v.push({name:"Налог",amount:a*n.exchangeRate})}let g=t.Z.mainStore.store.countriesList.items.find(e=>1===e.id).exchangeRate,j=i(e),N=r(e*g,n,a,d)*(1/g),b=s(n,a,d),M=_(u,d),E=l(e+N+M,d);return{details:{ruTaxes:[{name:"Таможенный сбор",amount:j},{name:"Таможенная пошлина",amount:N},{name:"Утилизационный сбор",amount:b},{name:"НДС",amount:E},{name:"Акциз",amount:M}],countryExpenses:w,commonExpenses:v},price:e+j+N+b+M+E+w.reduce((e,a)=>e+a.amount,0)+v.reduce((e,a)=>e+a.amount,0)}}},7876:function(e,a,n){"use strict";n.d(a,{Sy:function(){return t},iG:function(){return r},oo:function(){return i}}),n(9539);let t=function(e,a){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return"string"!=typeof e||e.length>a&&(e="".concat(e.substring(0,a)).concat(n?"...":"")),e},i=(e,a)=>{let n=[];e=[...e];for(let t=a;t>0;t--)n.push(e.splice(0,Math.ceil(e.length/t)));return n},r=(e,a)=>{if(a<=0)return[e];let n=[];for(e=[...e];e.length>0;)n.push(e.splice(0,a));return n}},727:function(e){e.exports={chip_container:"chip_chip_container__mn_Pu",chip_text:"chip_chip_text__xEjjN",chip_variant_green:"chip_chip_variant_green__iFJPJ",chip_variant_orange:"chip_chip_variant_orange__CAdW3"}},5611:function(e){e.exports={input_container:"input-range_input_container__T46Rl",label_wrap:"input-range_label_wrap__d0cad",input_label:"input-range_input_label__GfvTE",input_wrap:"input-range_input_wrap__AEjL9",input_text:"input-range_input_text__HuhX_",input_invalid:"input-range_input_invalid__tP49m",input_text_units:"input-range_input_text_units__M0OoZ",input_text_sep:"input-range_input_text_sep__TQjqw",input_text_invalid:"input-range_input_text_invalid__6E8Qh"}},2941:function(e){e.exports={option_wrap:"option_option_wrap__lnm3H"}},5917:function(e){e.exports={selector_container:"selector_selector_container__CqWP1",label_wrap:"selector_label_wrap__2tmn2",selector_label:"selector_selector_label__ebpHA",selector_wrap:"selector_selector_wrap___tc0U",selector_wrap_small:"selector_selector_wrap_small__KfVBe",selector_invalid:"selector_selector_invalid__9nPnh",selector_text:"selector_selector_text__OYRcL",selector_span:"selector_selector_span__NN_tk",selector_icon:"selector_selector_icon__XgGpB",options_wrap:"selector_options_wrap___dP7A",options_wrap_hide:"selector_options_wrap_hide__M3yLi",options_wrap_shift:"selector_options_wrap_shift__zFC0Y",option_wrap:"selector_option_wrap__SwI9O",option_wrap_selected:"selector_option_wrap_selected__xBmDY",selector_text_invalid:"selector_selector_text_invalid__pEqJH"}},3685:function(e){e.exports={container:"manager-bar_container__uDb7i",line_1_wrap:"manager-bar_line_1_wrap__7prh8",message_wrap:"manager-bar_message_wrap__tWE5G",sep:"manager-bar_sep__kKL24",sep2:"manager-bar_sep2__48isO",social_icons_wrap:"manager-bar_social_icons_wrap__4wmx0",social_icon_wrap:"manager-bar_social_icon_wrap__Qqgyo",social_icon:"manager-bar_social_icon__R8RUZ",line_2_wrap:"manager-bar_line_2_wrap__k7LpD",social_icons_wrap_line_2:"manager-bar_social_icons_wrap_line_2__un8Fr",social_icon_wrap_wrap_line_2:"manager-bar_social_icon_wrap_wrap_line_2__mqP8m",social_icon_wrap_line_2:"manager-bar_social_icon_wrap_line_2__bVApl"}}}]);