1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9190],{39766:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cart",function(){return a(89465)}])},86413:function(e,t,a){"use strict";a.d(t,{Z:function(){return d}});var r=a(85893),s=a(67294),i=a(41664),n=a.n(i),c=a(25934),l=a(8146),o=a.n(l);function d(e){let{links:t=[],product:a=null}=e,i=(null==a?void 0:a.category)||"",l=i.includes("ШинÑ/ÐегковÑе"),d=i.includes("ÐиÑки/ÐегковÑе"),u=[];if(a){let{category:e,width:t,height:r,diameter:s,title:i,bolts:n,pcd:c,dia:o,model:h,vendor:p}=a;if(e&&u.push(...e.split("/").map(e=>({name:e}))),l||d){let a=null;l&&(e.includes("Ðимние")&&(a="Ðима"),e.includes("ÐеÑние")&&(a="ÐеÑо"));let i=null;if(d&&(e.includes("ÐиÑÑе")&&(i="ÐиÑой"),e.includes("ШÑампованнÑе")&&(i="ШÑампованнÑй")),p&&u.push({name:p,link:"/catalog/".concat(l?"tires":"disks","?brand=").concat(p)}),h&&u.push({name:h,link:"/catalog/".concat(l?"tires":"disks","?model=").concat(h)}),l&&t&&r&&s){let e="?width=".concat(t,"&height=").concat(r,"&dia=").concat(s);a&&(e+="&season=".concat(a)),u.push({name:"".concat(t,"/").concat(r," R").concat(s),link:"/catalog/tires".concat(e)})}if(d&&s&&n&&c&&o){let e="?diameter=".concat(s,"&bolts=").concat(n,"&pcd=").concat(c,"&dia=").concat(o);i&&(e+="&type=".concat(i)),u.push({name:"".concat(s," ").concat(n,"x").concat(c," ").concat(o),link:"/catalog/disks".concat(e)})}}i&&u.push({name:i})}return(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)("div",{className:o().breadcrumbs,children:[(0,r.jsx)(n(),{href:"/",children:"ÐлавнаÑ"},(0,c.Z)()),[...t,...u].map(e=>{var t;let a=(null==e?void 0:null===(t=e.link)||void 0===t?void 0:t.startsWith("/"))?e.link:"/".concat(e.link);return(null==e?void 0:e.link)?(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)("span",{children:"\xa0>\xa0"}),(0,r.jsx)(n(),{href:a,children:e.name})]},(0,c.Z)()):(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)("span",{children:"\xa0>\xa0"}),(0,r.jsx)("span",{children:e.name})]},(0,c.Z)())})]})})}},3220:function(e,t,a){"use strict";a.d(t,{w:function(){return r}});let r=["kievskaya","kievskaya_sammb_oh","kievskaya_pauer_oh","kievskaya_kd_oh","lvovskaya","lvovskaya_sammb_oh","lvovskaya_pauer_oh","lvovskaya_kd_oh","partizanskaya","partizanskaya_kd_oh","oh_glvovsk","oh_gkievsk"]},91084:function(e,t,a){"use strict";var r=a(64836);t.Z=void 0;var s=r(a(33651)),i=a(85893);t.Z=(0,s.default)((0,i.jsx)("path",{d:"M13.5 3H7v9H5v2h2v2H5v2h2v3h2v-3h4v-2H9v-2h4.5c3.04 0 5.5-2.46 5.5-5.5S16.54 3 13.5 3m0 9H9V5h4.5C15.43 5 17 6.57 17 8.5S15.43 12 13.5 12"}),"CurrencyRubleOutlined")},71687:function(e,t,a){"use strict";var r=a(64836);t.Z=void 0;var s=r(a(33651)),i=a(85893);t.Z=(0,s.default)((0,i.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever")},80318:function(e,t,a){"use strict";var r=a(64836);t.Z=void 0;var s=r(a(33651)),i=a(85893);t.Z=(0,s.default)((0,i.jsx)("path",{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2m0 14H4v-6h16zm0-10H4V6h16z"}),"PaymentOutlined")},89465:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return M},default:function(){return O}});var r=a(85893),s=a(67294),i=a(86413),n=a(9008),c=a.n(n),l=a(87536),o=a(80318),d=a(91084);function u(e){let{state:t,setState:a,styles:s,cart:i}=e,n=i.some(e=>{var t;return null==e?void 0:null===(t=e.order)||void 0===t?void 0:t.some(e=>"partizanskaya"===e.store.toLowerCase()||"partizanskaya_kd_oh"===e.store.toLowerCase())});return(0,r.jsxs)("div",{className:s.paymentMethod,children:[(0,r.jsx)("h2",{children:"ÐплаÑа"}),(0,r.jsx)("p",{children:"ÐплаÑа пÑоизводиÑÑÑ Ð²ÑбÑаннÑм ÑпоÑобом пÑи полÑÑении ÑоваÑа\xa0â в\xa0магазине"}),(0,r.jsxs)("div",{className:s.methodChanger,children:[(0,r.jsxs)("label",{children:[(0,r.jsx)(d.Z,{fontSize:"small"}),(0,r.jsx)("input",{autoComplete:"off",type:"radio",name:"paymentMethod",value:"pickupCash",onChange:a,checked:"pickupCash"==t}),(0,r.jsx)("span",{className:s.input}),"ÐалиÑнÑми (5% Ñкидка)"]}),(0,r.jsxs)("label",{style:n?{color:"#f2f2f2",cursor:"unset"}:{},children:[(0,r.jsx)(o.Z,{fontSize:"small"}),(0,r.jsx)("input",{autoComplete:"off",type:"radio",name:"paymentMethod",value:"pickupCard",onChange:a,checked:"pickupCard"==t,disabled:n}),(0,r.jsx)("span",{className:s.input}),"ÐаÑÑой"]})]})]})}var h=a(76627),p=a.n(h),m=a(81662),_=a(46433),v=a(99731),x=a(61287),j=a(36051);function f(e){let{register:t,handleSubmit:a,onSubmit:i,setValue:n,styles:c,isManualOrder:l=!1,users:o,needDeposit:d}
1=e,u=(0,m.Z)(),h=(0,_.Z)(),[f,k]=(0,s.useState)(!1),[C,y]=(0,s.useState)(""),[g,S]=(0,s.useState)("+7"),[b,I]=(0,s.useState)(!1),[N,L]=(0,s.useState)(""),[Z,w]=(0,s.useState)(""),[P,z]=(0,s.useState)(!1),[E,T]=(0,s.useState)([]),[F,M]=(0,s.useState)("");return(0,s.useEffect)(()=>{u.auth&&"admin"!==u.user.user_type&&"manager"!==u.user.user_type&&(y(u.user.name),S(u.user.phone),L(u.user.email),n("name",u.user.firstname),n("phone",u.user.phone),n("email",u.user.email))},[u.user]),(0,s.useEffect)(()=>{T(o.map(e=>({label:[e.firstname,e.lastname,e.phone,e.email].join(" "),value:e.phone})))},[o]),(0,s.useEffect)(()=>{var e;((null==g?void 0:null===(e=g.match(/\d/g))||void 0===e?void 0:e.join(""))||0).length<11?I(!1):I(!0)},[g]),(0,s.useEffect)(()=>{P&&setTimeout(()=>{z(!1)},5e3)},[P]),(0,s.useEffect)(()=>{if(F){let e=o.filter(e=>e.phone===F)[0];y(e.firstname),n("name",e.firstname),S(e.phone),n("phone",e.phone),L(e.email),n("email",e.email)}},[F]),(0,r.jsxs)("div",{className:c.personalInfo,children:[d&&(0,r.jsxs)(v.Z,{severity:"info",className:c.needDeposit,children:[(0,r.jsx)("p",{children:(0,r.jsx)("b",{children:"ÐбÑаÑаем внимание!"})}),(0,r.jsxs)("p",{children:["РваÑем заказе еÑÑÑ ÑоваÑÑ Ð¿Ð¾Ð´ заказ. ÐÐ»Ñ ÐµÐ³Ð¾ подÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ ÑÑебÑеÑÑÑ Ð¿ÑедоплаÑа в ÑазмеÑе ",(0,r.jsx)("b",{children:"1\xa0000\xa0ÑÑблей"}),". ÐбÑабоÑка заказа наÑнеÑÑÑ Ð¿Ð¾Ñле звонка менеджеÑа и внеÑÐµÐ½Ð¸Ñ Ð¿ÑедоплаÑÑ."]})]}),!d&&(0,r.jsxs)(v.Z,{severity:"info",className:c.needDeposit,children:[(0,r.jsx)("p",{children:(0,r.jsx)("b",{children:"ÐбÑаÑаем внимание!"})}),(0,r.jsxs)("p",{children:["СÑок ÑезеÑвиÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð·Ð°ÐºÐ°Ð·Ð°: ",(0,r.jsx)("b",{children:"3\xa0днÑ"})," поÑле его подÑвеÑждениÑ."]})]}),l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:c.manualOrder,children:(0,r.jsxs)(v.Z,{severity:"info",children:[(0,r.jsx)("p",{children:(0,r.jsx)("b",{children:"Ðнимание!"})}),(0,r.jsxs)("p",{children:["ÐоÑле оÑпÑавки ÑоÑÐ¼Ñ Ð±ÑÐ´ÐµÑ Ñоздан новÑй заказ, без ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ ÐºÐ»Ð¸ÐµÐ½Ñа! Ðоле ",(0,r.jsx)("b",{children:"Email"})," необÑзаÑелÑно, но желаÑелÑно, к\xa0 заполнениÑ."]})]})}),(0,r.jsx)(x.Z,{className:c.clientSelect,disablePortal:!0,options:E,size:"small",onChange:(e,t)=>
1{t&&(n("user",t.value),M(t.value))},renderInput:e=>(0,r.jsx)(j.Z,{...e,...t("user"),label:"ÐлиенÑ",autoComplete:"off"})})]}),(0,r.jsx)("h2",{children:"ÐведиÑе ваÑи конÑакÑнÑе даннÑе"}),P&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.Z,{variant:"filled",severity:"error",children:"ÐÑбеÑиÑе, где Ð²Ñ Ñ
оÑиÑе забÑаÑÑ ÑоваÑ!"}),(0,r.jsx)("br",{})]}),(0,r.jsxs)("form",{onSubmit:a(e=>{let t=0,a=h.cart.map(e=>({...e,order:e.order.map(e=>"kievskaya"==e.store.toLowerCase()?{...e,pickupStore:"kievskaya"}:"partizanskaya"==e.store.toLowerCase()?{...e,pickupStore:"partizanskaya"}:"lvovskaya"==e.store.toLowerCase()?{...e,pickupStore:"lvovskaya"}:(e.hasOwnProperty("pickupStore")||(t+=1),e))}));if(t){z(!0);return}h.updateCart(a),i(e,a)}),autoComplete:"off",children:[(0,r.jsxs)("div",{className:c.personalInfoForm,children:[(0,r.jsxs)("label",{children:["ÐмÑ*",(0,r.jsx)("input",{id:"name",autoComplete:"off",required:!0,...t("name"),onInput:e=>{n("name",e.target.value),y(e.target.value),M("")},value:C})]}),(0,r.jsxs)("label",{children:["ТелеÑон*",(0,r.jsx)(p(),{id:"phone",autoComplete:"off",mask:"+7 (999) 999-99-99",...t("phone"),required:!0,placeholder:"+7 (___) ___-__-__",onInput:e=>{n("phone",e.target.value),S(e.target.value),M("")},value:g})]}),(0,r.jsxs)("label",{children:["Email",!l&&(0,r.jsx)(r.Fragment,{children:"*"}),(0,r.jsx)("input",{type:"email",id:"email",autoComplete:"off",...t("email"),required:!l,onInput:e=>{n("email",e.target.value),L(e.target.value),M("")},value:N})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{children:["ÐомменÑаÑий к заказÑ",(0,r.jsx)("textarea",{...t("comment"),onChange:e=>w(e.target.value)})]}),(0,r.jsx)("div",{className:c.accept,children:(0,r.jsxs)("label",{children:[(0,r.jsx)("input",{type:"checkbox",onChange:()=>k(!f),checked:f})," ","СоглаÑен на"," ",(0,r.jsx)("a",{href:"/privacy_policy",target:"_blank",children:"обÑабоÑкÑ"})," ","пеÑÑоналÑнÑÑ
даннÑÑ
"]})}),(0,r.jsx)("div",{className:c.personalInfoSubmit,children:(0,r.jsx)("button",{type:"submit",disabled:!(C&&b&&f),children:"ÐÑпиÑÑ"})})]})]})]})}var k=a(3152),C=a.n(k);function y(e){let{productID:t,handlerSelectStore:a,store:s,uid:i,pickupStore:n}=e,c="".concat(s,"__").concat(i);console.log("pickupStore",n);let l=e=>{a(e,s,t,i)};return(0,r.jsxs)("div",{className:C().selectStore,children:[(0,r.jsxs)("label",{children:[(0,r.jsx)("input",{autoComplete:"off",type:"radio",onChange:l,name:c,value:"kievskaya",checked:(null==n?void 0:n.toLowerCase())==="kievskaya"},i),(0,r.jsx)("span",{}),"ÐиевÑкаÑ,\xa0д.\xa01"]}),(0,r.jsxs)("label",{children:[(0,r.jsx)("input",{autoComplete:"off",type:"radio",onChange:l,name:c,value:"partizanskaya",checked:(null==n?void 0:n.toLowerCase())==="partizanskaya"},i),(0,r.jsx)("span",{}),"ÐаÑÑизанÑкаÑ,\xa0д.\xa031а"]}),(0,r.jsxs)("label",{children:[(0,r.jsx)("input",{autoComplete:"off",type:"radio",onChange:l,name:c,value:"lvovskaya",checked:(null==n?void 0:n.toLowerCase())==="lvovskaya"},i),(0,r.jsx)("span",{}),"ÐÑвовÑкаÑ,\xa0ÑÑ.\xa05"]})]})}var g=a(41664),S=a.n(g),b=a(71687),I=a(31121),N=a(25281),L=a(51778),Z=a(93967),w=a.n(Z),P=a(70087),z=a.n(P),E=a(4336),T=a(3220);let F=new Intl.NumberFormat("ru-RU",{style:"decimal",currency:"RUB"});var M=!0;function O(e){let{users:t}=e,a=(0,m.Z)(),n=(0,_.Z)(),[o,d]=(0,s.useState)(!0),[h,p]=(0,s.use
1State)(!1),[x,j]=(0,s.useState)(""),[k,C]=(0,s.useState)("pickupCash"),[g,Z]=(0,s.useState)({}),[P,M]=(0,s.useState)({}),[O,D]=(0,s.useState)(!1),[B,H]=(0,s.useState)(),[V,R]=(0,s.useState)(),[q,A]=(0,s.useState)(),[U,X]=(0,s.useState)(!1),[J,G]=(0,s.useState)([]),[Q,W]=(0,s.useState)(!1),{register:Y,handleSubmit:K,setValue:$,reset:ee}=(0,l.cI)({defaultValues:{email:a.user.email||"",phone:a.user.phone||"",name:a.user.firstname||""}}),et=(e,t)=>{let a=e.target.value,r=J.map(e=>e.id===t?{...e,pricetype:a}:e);G(r);let s=n.cart,i=[];r.map(e=>{let t=s.filter(t=>t.id===e.id).map(t=>{let a=t.order.map(t=>({...t,total:t.count*t[e.pricetype]})),r=a.reduce((e,t)=>e+t.total,0);return{...t,order:a,total:r}})[0];i.push({...t})}),n.updateCart(i),setCart(i)},ea=e=>{n.removeFromCart(e)},er=e=>{let t=e.reduce((e,t)=>e+t.total,0);"pickupCash"!=k||h?R(t):R(function(e){let t=Math.round(e),a=String(t).slice(-2);return"00"===a||"0"===a||"50"===a?parseInt(t):parseInt(a)>0&&50>parseInt(a)?parseInt(t)+(50-parseInt(a)):parseInt(a)>50?parseInt(t)+(100-parseInt(a)):void 0}(t-.05*t)),H(t)},es=(e,t,a,r)=>{let s=e.target.value,i=n.cart.map(e=>e.code===a?{...e,order:e.order.map(e=>e.uid===r?{...e,pickupStore:s}:"kievskaya"==e.store.toLowerCase()?{...e,pickupStore:"kievskaya"}:"partizanskaya"==e.store.toLowerCase()?{...e,pickupStore:"partizanskaya"}:"lvovskaya"==e.store.toLowerCase()?{...e,pickupStore:"lvovskaya"}:e)}:e);n.updateCart(i)};return(0,s.useEffect)(()=>{n.cart.length>=0&&0===J.length&&(G(n.cart.map(e=>({id:e.id,pricetype:"price"}))),d(!1))},[n.cart]),(0,s.useEffect)(()=>{er(n.cart)},[k,J]),(0,s.useEffect)(()=>{a.auth&&("admin"===a.user.user_type||"manager"===a.user.user_type)?p(!0):p(!1)},[a]),(0,s.useEffect)(()=>{let e=!1,t=!1;for(let a of n.cart)for(let r of a.order)T.w.includes(r.store)?e=!0:t=!0;e&&!t?W(!1):W(!0)},[n.cart]),o?(0,r.jsx)(r.Fragment,{children:"Loading..."}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c(),{children:(0,r.jsx)("title",{children:"ÐоÑзина"})}),(0,r.jsx)(i.Z,{links:[{name:"ÐоÑзина"}]}),(0,r.jsx)("div",{className:z().cart,children:(0,r.jsxs)("div",{className:"container",children:[(0,r.jsx)("h1",{children:"ÐоÑзина"}),n.cart.length>0&&J.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:z().cartBody,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{children:"СоÑÑав заказа"}),(0,r.jsx)("div",{className:z().cartList,children:n.cart.map((e,t)=>{var a,s,i;return(0,r.jsxs)("div",{className:z().cartListItem,children:[(0,r.jsxs)("div",{className:z().cartListItemTitle,children:[(0,r.jsx)(S(),{href:"/products/".concat(e.slug),children:e.title}),h&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:z().orderPriceType,children:(0,r.jsxs)(N.Z,{row:!0,"aria-labelledby":"demo-row-radio-buttons-group-label",name:"price-type-".concat(e.id),children:[(0,r.jsx)(L.Z,{value:"price",control:(0,r.jsx)(I.Z,{}),name:"pricetype",onChange:t=>et(t,e.id),label:"РозниÑа",checked:(null===(a=J.find(t=>t.id===e.id))||void 0===a?void 0:a.pricetype)==="price"}),(0,r.jsx)(L.Z,{value:"priceopt",control:(0,r.jsx)(I.Z,{}),name:"pricetype",onChange:t=>et(t,e.id),label:"ÐпÑ",checked:(null===(s=J.find(t=>t.id===e.id))||void 0===s?void 0:s.pricetype)==="priceopt"}),(0,r.jsx)(L.Z,{value:"pricecash",control:(0,r.jsx)(I.Z,{}),name:"pricetype",onChange:t=>et(t,e.id),label:"Ðал",checked:(null===(i=J.find(t=>t.id===e.id))||void 0===i?void 0:i.pricetype)==="pricecash"})]})})})]}),(0,r.jsxs)("div",{className:z().cartListItemList,children:[e.order.length>1&&e.order.map(t=>(0,r.jsxs)("div",{className:z().cartListItemInfo,children:[t.count," ÑÑ \xd7"," ",F.format(t[J.filter(t=>t.id===e.id)[0].pricetype])," ","ÑÑб."]},t.store)),e.order.length>1&&(0,r.jsx)("div",{className:"".concat(z().withSeparator)}),(0,r.jsxs)("div",{className:w()(z().cartListItemInfo),children:[e.count," ÑÑ Ð·Ð° ",F.format(e.total)," ÑÑб."]})]}),(0,r.jsx)("div",{className:z().cartListItemButton,children:(0,r.jsx)(b.Z,{onClick:()=>ea(e.id),className:z().delete})})]},t)})}),(0,r.jsxs)("div",{className:"".concat(z().cartListTotal," ").concat(z().cartListSale),children:[(0,r.jsx)("div",{children:"Cкидка за оплаÑÑ Ð½Ð°Ð»Ð¸ÑнÑми:"}),(0,r.jsxs)("div",{children:[F.format(B-V)," ÑÑб."]}),(0,r.jsx)("div",{})]}),(0,r.jsxs)("div",{className:z().cartListTotal,children:[(0,r.jsx)("div",{children:"ÐÑого:"}),(0,r.jsxs)("div",{children:[F.format(V)," ÑÑб."]}),(0,r.jsx)("div",{})]})]}),(0,r.jsxs)("div",{className:z().cartOrderInfo,children:[(0,r.jsx)(u,{state:k,setState:e=>{C(e.target.value)},styles:z(),cart:n.cart}),(0,r.jsxs)("div",{className:z().deliveryMethod,children:[(0,r.jsx)("h2",{children:"ÐоÑÑавка"}),(0,r.jsx)("p",{children:"ÐоÑÑавка ÑоваÑа по гоÑÐ¾Ð´Ñ Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð° ÑеÑез ÑеÑÐ²Ð¸Ñ Ð¯Ð½Ð´ÐµÐºÑ.ÐоÑÑавка Ð¾Ñ 400 ÑÑб."})]})]})]}),(0,r.jsxs)("div",{className:z().orderPickupSection,children:[(0,r.jsx)("h2",{children:"Ðде забÑаÑÑ ÑоваÑ"}),(0,r.jsx)("div",{className:z().orderPickup,children:n.cart.map((e,t)=>(0,r.jsx)("div",{className:z().orderPickupItems,children:e.order.map((t,a)=>"kievskaya"===t.store.toLowerCase()?(0,r.jsxs)("div",{className:z().orderPickupLine,children:[(0,r.jsxs)("div",{children:[t.count," ÑÑ"]}),(0,r.jsx)("div",{children:e.title}),(0,r.jsx)("div",{children:"забÑаÑÑ Ð½Ð°"}),(0,r.jsx)("div",{children:"ÐиевÑкаÑ, д.1"})]},"".concat(t.store,"-").concat(a)):"partizanskaya"===t.store.toLowerCase()?(0,r.jsxs)("div",{className:z().orderPickupLine,children:[(0,r.jsxs)("div",{children:[t.count," ÑÑ"]}),(0,r.jsx)("div",{children:e.title}),(0,r.jsx)("div",{children:"забÑаÑÑ Ð½Ð°"}),(0,r.jsx)("div",{children:"ÐаÑÑизанÑкаÑ, д.31а"})]},"".concat(t.store,"-").concat(a)):"lvovskaya"===t.store.toLowerCase()?(0,r.jsxs)("div",{className:z().orderPickupLine,children:[(0,r.jsxs)("div",{children:[t.count," ÑÑ"]}),(0,r.jsx)("div",{children:e.title}),(0,r.jsx)("div",{children:"забÑаÑÑ Ð½Ð°"}),(0,r.jsx)("div",{children:"ÐÑвовÑкаÑ, ÑÑ 5"})]},"".concat(t.store,"-").concat(a)):(0,r.jsxs)("div",{className:z().orderPickupLine,children:[(0,r.jsxs)("div",{children:[t.count," ÑÑ"]}),(0,r.jsx)("div",{children:e.title}),(0,r.jsx)("div",{children:"забÑаÑÑ Ð½Ð°"}),(0,r.jsx)(y,{productID:e.code,handlerSelectStore:es,store:t.store,uid:t.uid,pickupStore:t.pickupStore})]},"".concat(t.store,"-").concat(a)))},"".concat(e.id,"-").concat(t)))})]}),(0,r.jsx)(f,{register:Y,setValue:$,handleSubmit:K,onSubmit:(e,t)=>
1{window.scroll(0,0);let r={...e,paymentMethod:k,deliveryMethod:x,pickupPoint:g,deliveryData:P,cart:t,finish:!0,orderTotalPrice:V,userId:a.user.id,isManualOrder:h,priceTypes:J};j(""),C(""),Z({}),M({}),D(!1),n.clearCart(),Array.from(document.getElementsByTagName("input")).map(e=>e.checked=!1),fetch("/api/orders",{method:"POST",body:JSON.stringify(r)}).then(e=>e.json()).then(e=>A(e.orderID)).catch(e=>console.error(e)),ee({email:"",name:"",phone:""}),X(!0)},styles:z(),agreeChecker:{agree:O,setAgree:D},isManualOrder:h,priceType:!0,users:t,needDeposit:Q})]}),U&&!q&&(0,r.jsx)("div",{className:z().cartEmpty,children:(0,r.jsxs)("div",{className:z().cartWaiting,children:[(0,r.jsx)("span",{children:"â³"}),(0,r.jsx)("br",{}),"Уже Ñоздаем Ð²Ð°Ñ Ð·Ð°ÐºÐ°Ð·!",(0,r.jsx)("br",{}),"ÐÑо Ð·Ð°Ð¹Ð¼ÐµÑ Ð²Ñего неÑколÑко ÑекÑнд."]})}),U&&q&&(0,r.jsx)("div",{className:z().cartEmpty,children:(0,r.jsxs)("div",{className:z().cartFinish,children:[(0,r.jsx)("span",{children:"â
"}),(0,r.jsx)("div",{children:"Ðаказ ÑÑпеÑно оÑоÑмлен!"}),(0,r.jsxs)("div",{children:["ÐÐ¾Ð¼ÐµÑ Ð·Ð°ÐºÐ°Ð·Ð°: ",q]}),(0,r.jsx)("br",{}),Q&&(0,r.jsxs)(v.Z,{severity:"info",className:z().needDeposit,children:[(0,r.jsx)("p",{children:(0,r.jsx)("b",{children:"ÐбÑаÑаем внимание!"})}),(0,r.jsxs)("p",{children:["РваÑем заказе еÑÑÑ ÑоваÑÑ Ð¿Ð¾Ð´ заказ. ÐÐ»Ñ ÐµÐ³Ð¾ подÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ ÑÑебÑеÑÑÑ Ð¿ÑедоплаÑа в ÑазмеÑе"," ",(0,r.jsx)("b",{children:"1\xa0000\xa0ÑÑблей"}),". ÐбÑабоÑка заказа наÑнеÑÑÑ Ð¿Ð¾Ñле звонка менеджеÑа и внеÑÐµÐ½Ð¸Ñ Ð¿ÑедоплаÑÑ."]})]}),!Q&&(0,r.jsxs)(v.Z,{severity:"info",className:z().needDeposit,children:[(0,r.jsx)("p",{children:(0,r.jsx)("b",{children:"ÐбÑаÑаем внимание!"})}),(0,r.jsxs)("p",{children:["СÑок ÑезеÑвиÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð·Ð°ÐºÐ°Ð·Ð°: ",(0,r.jsx)("b",{children:"3\xa0днÑ"})," поÑле его подÑвеÑждениÑ."]})]}),(0,r.jsxs)("div",{className:z().buttons,children:[(0,r.jsx)(E.Z,{size:"medium",variant:"outlined",href:"/",color:"info",children:"Ðа главнÑÑ"}),a.auth&&(0,r.jsx)(E.Z,{size:"medium",variant:"outlined",href:"/personal/orders",color:"success",children:"СпиÑок заказов"}),(0,r.jsx)(E.Z,{size:"medium",variant:"outlined",href:"/help",color:"inherit",children:"ÐоÑиÑаÑÑ ÑÑаÑÑи"})]})]})}),!U&&0===n.cart.length&&(0,r.jsxs)("div",{className:z().cartEmpty,children:[(0,r.jsx)("span",{children:"\uD83D\uDD0E"}),(0,r.jsx)("div",{children:"Ðй! ТÑÑ Ð¿Ð¾ÐºÐ° ниÑего неÑ"}),(0,r.jsx)("div",{children:"ÐоÑзина пÑÑÑа, но ÑÑо легко иÑпÑавиÑÑ!"}),(0,r.jsx)("br",{}),(0,r.jsxs)("div",{className:z().buttons,children:[(0,r.jsx)(E.Z,{variant:"outlined",size:"medium",href:"/catalog/tires",children:"ÐÑбÑаÑÑ ÑинÑ"}),(0,r.jsx)(E.Z,{variant:"outlined",size:"medium",href:"/catalog/disks",children:"ÐодобÑаÑÑ Ð´Ð¸Ñки"})]})]})]})})]})}},8146:function(e){e.exports={breadcrumbs:"Breadcrumbs_breadcrumbs__Eid_1"}},70087:function(e){e.exports={cart:"Cart_cart__pvloT",delete:"Cart_delete__4hifg",cartOrderInfo:"Cart_cartOrderInfo__52SnW",cartEmpty:"Cart_cartEmpty__asoDI",buttons:"Cart_buttons__v_Tsq",cartFinish:"Cart_cartFinish__iMIiX",needDeposit:"Cart_needDeposit__dgzg1",cartList:"Cart_cartList__ShEjJ",cartListItem:"Cart_cartListItem__n_AIf",cartListItemTitle:"Cart_cartListItemTitle__Rm2h1",cartListItemList:"Cart_cartListItemList__jlyUf",withSeparator:"Cart_withSeparator__Dq_21",cartListItemButton:"Cart_cartListItemButton__XBGx7",cartListTotal:"Cart_cartListTotal__V81nr",cartListSale:"Cart_cartListSale__5_VuP",cartBody:"Cart_cartBody__0eTxh",cartItem:"Cart_cartItem__VvLst",image:"Cart_image__LcbHM",close:"Cart_close__x_qJR",mainInfo:"Cart_mainInfo__1RwBe",title:"Cart_title__m0nx5",mainInfoDop:"Cart_mainInfoDop__V_MVn",dopInfo:"Cart_dopInfo__3B4BP",art:"Cart_art___iL4g",delivery:"Cart_delivery__HgbQo",count:"Cart_count__ZUQFG",countNum:"Cart_countNum__JNXpn",total:"Cart_total__pCXA8",totalNum:"Cart_totalNum__VLhi8",orderPickupSection:"Cart_orderPickupSection__C6BU_",orderPickup:"Cart_orderPickup__z73Sh",orderPickupItems:"Cart_orderPickupItems__MF6Zq",orderPickupLine:"Cart_orderPickupLine__QRzJo",cartFooter:"Cart_
1cartFooter__axvak",promocode:"Cart_promocode__YRyMP",cartTotalOrder:"Cart_cartTotalOrder__h90Ag",cartTotalOrderSum:"Cart_cartTotalOrderSum__duGVs",methodChanger:"Cart_methodChanger__Lg8Yj",input:"Cart_input__R4AzC",deliveryMethod:"Cart_deliveryMethod__HCUV5",pickup:"Cart_pickup__amHd9",item:"Cart_item___fixf",address:"Cart_address__ytsn9",date:"Cart_date__2Bw8E",changeOther:"Cart_changeOther__biYAL",deliveryForm:"Cart_deliveryForm__Xw9gn",totalPrice:"Cart_totalPrice__cTIwk",paymentMethod:"Cart_paymentMethod__TBdfH",personalInfo:"Cart_personalInfo__91fxl",manualOrder:"Cart_manualOrder__MPDr2",orderPriceType:"Cart_orderPriceType__xMMsI",clientSelect:"Cart_clientSelect__Um3EI",personalInfoForm:"Cart_personalInfoForm__sSZnc",accept:"Cart_accept___mAOd",personalInfoSubmit:"Cart_personalInfoSubmit__j2FBe",info:"Cart_info__MtaHz"}},3152:function(e){e.exports={selectStore:"SelectStore_selectStore__jx_Or"}}},function(e){e.O(0,[2,5527,1287,2888,9774,179],function(){return e(e.s=39766)}),_N_E=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.