1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9042],{75793:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/orders/edit/[id]",function(){return t(5749)}])},5749:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return et}});var o=t(85893),n=t(67294),l=t(33934),d=t(62444),r=t(67568);let s=async e=>{let{queryKey:i}=e,[t,o]=i,{data:n}=await d.Z.get("".concat(r.Q.SRC_ADMIN).concat(o,"/get-order/"));return n},a=e=>(0,l.a)({queryKey:["getOrderDetail",e],queryFn:s,retry:!1,refetchOnWindowFocus:!1,enabled:!!e});var c=t(11163),u=t(19238),p=t(83321),v=t(27620),x=t(87536),y=t(93960),m=t(12955),_=t(8814),g=t(42434),f=t(8479),h=t(71125),j=t(98029),S=t(86501),Z=t(18211);let b=e=>{let{id:i}=e,t=(0,c.useRouter)();return(0,j.D)({mutationFn:e=>d.Z.patch("".concat(r.Q.SRC_ADMIN).concat(i,"/update-order/"),e),onSuccess:()=>{S.ZP.dismiss(),S.ZP.success("ÐÐ·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ ÑÑпеÑно ÑоÑ
ÑаненÑ"),t.push("/orders")},onError:e=>{(0,Z.E)((0,Z.j)(e,"ÐÑибка пÑи ÑоÑ
Ñанении заказа"))}})},M=e=>{let{id:i}=e,t=(0,c.useRouter)();return(0,j.D)({mutationFn:()=>d.Z.patch("".concat(r.Q.SRC_ADMIN).concat(i,"/cancel-order/")),onSuccess:()=>{S.ZP.dismiss(),t.push("/orders")},onError:e=>{(0,Z.E)((0,Z.j)(e,"ÐÑибка пÑи оÑмене заказа"))}})};var w=t(66242),D=t(8771),C=t(74056),I=t(86190),H=t(50613),k=t(47271),E=t(5492);let T=e=>{let i=(0,c.useRouter)();return(0,j.D)({mutationFn:i=>d.Z.patch("".concat(r.Q.SRC_ADMIN).concat(e,"/change-order-status/"),i),onSuccess:()=>{i.push("/orders")}})};var z=t(9263),N=t(53816);let O=async e=>{let{queryKey:i}=e,[t,o]=i,{data:n}=await d.Z.get("".concat(r.Q.GET_HISTORY_CHAT_MESSAGES,"?").concat((0,N.Z)(o)));return n},A=e=>{let{order_id:i}=e;return(0,l.a)({queryKey:["getHitoryChat",e],queryFn:O,refetchOnWindowFocus:!1,enabled:!!i})};var V=t(950),B=t(42298),W=t(3151),R=t(13882),L=t(7069),q=t(71806);let F=e=>null==e?void 0:e.reduce((e,i)=>{let t=(0,V.default)(i.created_at,"dd.MM.yyyy HH:mm:ss",new Date),o=(0,B.default)(t,"yyyy-MM-dd");return e[o]||(e[o]=[]),e[o].push(i),e},{}),P=e=>{let i=new Date(e);return!function(e){return(0,R.Z)(1,arguments),(0,W.default)(e,Date.now())}(i)?!function(e){return(0,R.Z)(1,arguments),(0,W.default)(e,(0,L.default)(Date.now(),1))}(i)?(0,B.default)(i,"d MMMM yyyy",{locale:q.Z}):"ÐÑеÑа":"СегоднÑ"},Q=e=>{var i;let{messages:t}=e,n=Array.isArray(t)?t:[],l=F(n);return l&&0!==Object.keys(l).length?(0,o.jsx)("div",{style:{maxHeight:"300px",overflowY:"auto",padding:"10px"},children:null===(i=null==Object?void 0:Object.entries(l))||void 0===i?void 0:i.map(e=>{let[i,t]=e;return(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{style:{textAlign:"center",margin:"12px 0",fontWeight:"bold",color:"#666"},children:P(i)}),t.map(e=>{let i=(0,V.default)(e.created_at,"dd.MM.yyyy HH:mm:ss",new Date),t=(0,B.default)(i,"HH:mm");return(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"partner"===e.user_type?"flex-end":"flex-start",marginBottom:"6px"},children:[(0,o.jsx)("p",{style:{display:"inline-block",maxWidth:"70%",padding:"8px 12px",borderRadius:"12px",fontSize:"17px",wordWrap:"break-word",color:"partner"===e.user_type?"white":"black",backgroundColor:"partner"===e.user_type?"black":"gray"},children:e.content}),(0,o.jsx)("span",{style:{fontSize:"12px",color:"#888",marginTop:"2px"},children:t})]},e.id)})]},i)})}):(0,o.jsx)("p",{style:{textAlign:"center",color:"#aaa"},children:"СообÑений пока неÑ"})};var Y=t(15861);let G=e=>{let{history:i,orderDetail:t}=e;if(!i||0===i.length)return(0,o.jsx)(u.Z,{sx:{padding:"16px",textAlign:"center",color:"rgba(75, 70, 92, 0.6)",fontSize:"14px"},children:"ÐÑÑоÑÐ¸Ñ Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ð¹ недоÑÑÑпна Ð´Ð»Ñ Ð·Ð°ÐºÐ°Ð·Ð¾Ð², ÑозданнÑÑ
до внедÑÐµÐ½Ð¸Ñ ÑÑнкÑионала"});let n=e=>{try{for(let i of["dd.MM.yyyy HH:mm:ss","dd.MM.yyyy HH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-ddTHH:mm:ss","yyyy-MM-dd"])try{let t=(0,V.default)(e,i,new Date);if(!isNaN(t.getTime()))return t}catch(e){continue}let i=new Date(e);if(!isNaN(i.getTime()))return i;return new Date}catch(e){return new Date}},l=[...i].sort((e,i)=>{let t=n(e.created_at),o=n(i.created_at);return o.getTime()-t.getTime()});return(0,o.jsx)(u.Z,{sx:{maxHeight:"400px",overflowY:"auto",padding:"10px"},children:l.map((e,i)=>{var t,d,r;let s=n(e.timestamp),a=(0,B.default)(s,"dd.MM.yyyy HH:mm",{locale:q.Z}),c=null===(t=e.conditions)||void 0===t?void 0:t.find(e=>(null==e?void 0:e.condition_type)==="radius");return(0,o.jsxs)(u.Z,{sx:{marginBottom:"24px"},children:[(0,o.jsx)(Y.Z,{sx:{fontSize:"14px",fontWeight:500,color:"rgba(75, 70, 92, 0.9)",marginBottom:"8px"},children:e.is_creation?"[".concat(a,"] - Создание заказа"):"[".concat(a,"]")}),(0,o.jsxs)(u.Z,{sx:{marginBottom:"8px"},children:[(0,o.jsx)(Y.Z,{sx:{fontSize:"13px",fontWeight:500,color:"rgba(75, 70, 92, 0.8)",marginBottom:"4px"},children:"ÐпÑии:"}),e.options&&e.options.length>0?(0,o.jsx)(u.Z,{sx:{paddingLeft:"16px"},children:e.options.map((e,i)=>(0,o.jsxs)(Y.Z,{sx:{fontSize:"13px",color:"rgba(75, 70, 92, 0.7)",marginBottom:"2px"},children:["⢠",e.title," \xd7 ",e.quantity]},e.id||i))}):(0,o.jsx)(Y.Z,{sx:{fontSize:"13px",color:"rgba(75, 70, 92, 0.5)",fontStyle:"italic",paddingLeft:"16px"},children:"ÐпÑии не ÑказанÑ"})]}),c?(0,o.jsxs)(Y.Z,{sx:{fontSize:"13px",color:"rgba(75, 70, 92, 0.7)",marginBottom:"4px"},children:["УÑловие: ",c.condition_title," ",c.condition_value]}):null,(0,o.jsxs)(Y.Z,{sx:{fontSize:"13px",color:"rgba(75, 70, 92, 0.7)",marginBottom:"4px"},children:["ÐÑÐ¾Ð³Ð¾Ð²Ð°Ñ ÑÑоимоÑÑÑ Ð¾Ð¿Ñий Ñ ÑÑеÑом ÑÑловий: ",null===(d=e.options_price)||void 0===d?void 0:d.toLocaleStr
1ing("ru-RU")," â½"]}),(0,o.jsxs)(Y.Z,{sx:{fontSize:"13px",color:"rgba(75, 70, 92, 0.7)",marginBottom:"16px"},children:["ÐбÑÐ°Ñ ÑÑоимоÑÑÑ: ",null===(r=e.total_price)||void 0===r?void 0:r.toLocaleString("ru-RU")," â½"]}),i<l.length-1&&(0,o.jsx)(u.Z,{sx:{borderTop:"1px solid rgba(75, 70, 92, 0.12)",marginTop:"16px",marginBottom:"16px"}})]},e.id||i)})})};var K=t(86886),U=t(83686),X=t(75057),J=t(32955),$=t(88531);let ee={new:{title:"ÐовÑй",color:"warning"},on_the_way:{title:"в пÑÑи",color:"info"},in_progress:{title:"в ÑабоÑе",color:"info"},on_confirmation:{title:"на подÑвеÑждении",color:"secondary"},done:{title:"завеÑÑен",color:"success"},cancelled:{title:"оÑменен",color:"error"},needs_operator:{title:"Ðа ÑаÑпÑеделении",color:"secondary"}},ei=()=>{var e,i,t,l,d,r,s,j,S,N,O,V,B,W,R;let{query:{id:L}}=(0,c.useRouter)(),{data:q}=a(L),{mutate:F}=M({id:L}),{data:P}=A({order_id:L}),Y=(0,n.useRef)(null),{control:ei,formState:{errors:et},clearErrors:eo,setError:en,handleSubmit:el,resetField:ed,watch:er}=(0,x.cI)({values:{category_technics:null==q?void 0:null===(e=q.service)||void 0===e?void 0:e.id,technic_name:null==q?void 0:null===(i=q.technic_brand_model)||void 0===i?void 0:i.split(" ")[0],technic_model:null==q?void 0:null===(t=q.technic_brand_model)||void 0===t?void 0:t.split(" ")[1],radius:null===(l=null==q?void 0:q.conditions[0])||void 0===l?void 0:l.condition_value,count:null===(d=null==q?void 0:null===(r=q.conditions)||void 0===r?void 0:r.find(e=>"volume"===e.condition_type))||void 0===d?void 0:d.condition_value,type_fuel:null===(s=null==q?void 0:null===(j=q.conditions)||void 0===j?void 0:j.find(e=>"fuel_type"===e.condition_type))||void 0===s?void 0:s.condition_value,count_hours:null===(S=null==q?void 0:null===(N=q.conditions)||void 0===N?void 0:N.find(e=>"hours"===e.condition_type))||void 0===S?void 0:S.condition_value,comment:null==q?void 0:q.comment,client:null==q?void 0:null===(O=q.client)||void 0===O?void 0:O.id,partner:null==q?void 0:null===(V=q.partner)||void 0===V?void 0:V.id,status:null==q?void 0:q.status,option_service:null==q?void 0:q.options[0]}}
1),[es,ea]=er(["radius","technic_name"]),[ec,eu]=(0,n.useState)(void 0),[ep,ev]=(0,n.useState)([]),[ex,ey]=(0,n.useState)(),[em,e_]=(0,n.useState)(""),[eg,ef]=(0,n.useState)({}),[eh,ej]=(0,n.useState)(),[eS,eZ]=(0,n.useState)(),{data:eb}=(0,f.q)(),{data:eM,isLoading:ew}=(0,h.x)({working_zone:null==eS?void 0:eS.working_zone_id,option__service_id:ex,technic_category_id:4==ex||(0,J.Vi)(ex)?void 0:ec}),eD=(0,n.useMemo)(()=>{var e,i,t;return!!q&&(2==ex?!(null==ep?void 0:ep[0])&&!!(null===(i=q.conditions)||void 0===i?void 0:i.find(e=>"fuel_type"===e.condition_type)):(null!==(t=null===(e=q.options)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>0&&(null==ep||!ep.length))},[q,ex,ep]),eC=(0,n.useMemo)(()=>{if(!q)return!1;let e=null!=q.options_price||null!=q.delivery_price||null!=q.total_price;return!!e&&eD},[q,eD]),{mutate:eI,isSuccess:eH,data:ek}=(0,k.j)(),{mutate:eE}=b({id:L});(0,n.useEffect)(()=>{eH&&Y.current.click()},[eH]);let{mutate:eT,isSuccess:ez}=T(L),eN=e=>{var i,t,o,n,l,d,r,s;if("string"==typeof e.client&&!eH){eI({first_name:"",phone:(0,E.Z)(e.client)});return}let[a,c]=(null==eg?void 0:null===(i=eg.positions)||void 0===i?void 0:i.split(" "))||[];if(!a||!c){en("address",{message:"ÐÑбеÑиÑе адÑÐµÑ Ð¸Ð· ÑпиÑка подÑказок"}),(0,Z.E)("ÐÑбеÑиÑе адÑÐµÑ Ð¸Ð· вÑпадаÑÑего ÑпиÑка подÑказок Ð´Ð»Ñ Ð¾Ð¿ÑÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ ÐºÐ¾Ð¾ÑдинаÑ");return}let u=[e.technic_name,e.technic_model].filter(Boolean).join(" "),p={point_coordinates:[a,c],comment:null==e?void 0:e.comment,delivery_price:eF.delivery,address:eg.title||em,conditions:[],service:{id:ex},technic_brand_model:(0,J.c3)(ex)?"":u,city:{id:(null==eS?void 0:eS.city_id)||(null==q?void 0:null===(t=q.city)||void 0===t?void 0:t.id)},technic_category:(0,J.Vi)(ex)?null:ec,client:eH?ek.data.id:e.client,total_price:eF.total,options_price:eF.options,partner:e.partner};if((null==ep?void 0:ep.length)?2!=ex&&(p.options=ep.map(e=>({id:e.option.id,quantity:(0,$.Z)(e.quantity)}))):p.options=null!==(l=null==ep?void 0:null===(o=ep.option)||void 0===o?void 0:o.id)&&void 0!==l?l:[{id:null===(n=eM.options[0])||void 0===n?void 0:n.option.id}],1==ex){let i=null===(d=ep||[])||void 0===d?void 0:d.map(e=>e.order_conditions||[]).reduce((e,i)=>0===e.length?i:e.filter(e=>i.some(i=>i.title===e.title)),[]);if((null==i?void 0:i.length)>0){let t=i.some(i=>
1String(i.title)===String(e.radius));if(!t){en("radius",{message:"ÐÑбеÑиÑе ÑадиÑÑ Ð¸Ð· ÑпиÑка доÑÑÑпнÑÑ
"}),(0,Z.E)("ÐÐ»Ñ Ð²ÑбÑанной ÑÑлÑги вÑбеÑиÑе допÑÑÑимÑй ÑадиÑÑ Ñин");return}p.conditions=[{condition_type:"radius",condition_title:"РадиÑÑ Ñин",condition_value:e.radius}]}else p.conditions=[]}2==ex&&(p.total_price=eF.total,p.options_price=eF.options,p.options=[{id:17}],p.conditions=[{condition_type:"volume",condition_title:"ÐиÑÑаж",condition_value:e.count},{condition_type:"fuel_type",condition_title:"Тип Ñоплива",condition_value:e.type_fuel.id?e.type_fuel:null===(r=null==eM?void 0:null===(s=eM.fuel_conditions)||void 0===s?void 0:s.find(i=>i.title===e.type_fuel))||void 0===r?void 0:r.title}]),3==ex&&(p.conditions=[]),(0,J.lu)(ex)&&(p.conditions=[]),4==ex&&(p.conditions=[{condition_type:"hours",condition_title:"ÐолиÑеÑÑво ÑаÑов",condition_value:e.count_hours}]);let v=null==q?void 0:q.status,x=null==e?void 0:e.status;x&&x!==v&&("in_progress"===v&&"on_confirmation"===x||"on_confirmation"===v&&"done"===x||"on_confirmation"===v&&"cancelled"===x)&&eT({status:x}),eE(p)},{data:eO}=(0,C.y)({city_id:null==eS?void 0:eS.city_id,service_id:ex,technic_category_id:(0,J.Vi)(ex)?void 0:ec||void 0,option_ids:2===ex?17:(null==ep?void 0:ep.length)?null==ep?void 0:ep.map(e=>{var i;return null==e?void 0:null===(i=e.option)||void 0===i?void 0:i.id}).join(","):void 0});(0,n.useEffect)(()=>{if(q){var e,i,t,o;ey(null==q?void 0:null===(e=q.service)||void 0===e?void 0:e.id),e_(null==q?void 0:q.address),ef({title:null==q?void 0:q.address,positions:null==q?void 0:q.point_coordinates.join(" ")}),eu((0,J.Vi)(null==q?void 0:null===(i=q.service)||void 0===i?void 0:i.id)?void 0:null==q?void 0:q.technic_category),eZ(e=>({...e||{},departure_price:q.delivery_price})),ej(null===(t=null==q?void 0:null===(o=q.conditions)||void 0===o?void 0:o.find(e=>"hours"===e.condition_type))||void 0===t?void 0:t.condition_value)}},[q]);let{data:eA}=(0,z.v)(),[eV,eB]=n.useState(""),[eW,eR]=(0,n.useState)(""),[eL,eq]=(0,n.useState)([]);(0,n.useEffect)(()=>{if(eA){var e;eq(null===(e=null==eA?void 0:eA.find(e=>e.id.toLowerCase()==(null==ea?void 0:ea.toLowerCase())))||void 0===e?void 0:e.models)}},[eA]),(0,n.useEffect)(()=>{if(eM&&q){if(2==ex){var e,i;let t=null===(e=q.conditions)||void 0===e?void 0:e.find(e=>"fuel_type"===e.condition_type),o=null===(i=eM.fuel_conditions)||void 0===i?void 0:i.find(e=>{var i;return e.id==(null==t?void 0:null===(i=t.condition_value)||void 0===i?void 0:i.id)});eS&&ev([o])}else{let e=eM.options.filter(e=>q.options.some(i=>i.id==e.option.id));eS&&ev(null==e?void 0:e.map(e=>{var i;return{amount:e.amount,option:{id:e.option.id,title:null==e?void 0:e.option.title},...e,quantity:(0,$.Z)(null===(i=q.options.find(i=>i.id==e.option.id))||void 0===i?void 0:i.quantity)}}))}}},[q,eM]);let eF=(0,n.useMemo)(()=>{if(eC&&q){let e=Number(q.options_price)||0,i=Number(q.delivery_price)||0,t=null!=q.total_price?Number(q.total_price):e+i;return{options:e,delivery:i,total:t}}if(2==ex){let e=Number(null==eS?void 0:eS.departure_price)||0;return{options:0,delivery:e,total:e}}let e=(0,X.c)(ep,eh,es),i=Number(null==eS?void 0:eS.departure_price)||0;return{options:e,delivery:i,total:e+i}},[eC,q,ex,null==eS?void 0:eS.departure_price,ep,eh,es]),eP=e=>{var i,t;let[o,n]=(null==eg?void 0:null===(i=eg.positions)||void 0===i?void 0:i.split(" "))||[];if((null==e?void 0:null===(t=e.address)||void 0===t?void 0:t.message)||!o||!n){en("address",{message:"ÐÑбеÑиÑе адÑÐµÑ Ð¸Ð· ÑпиÑка подÑказок"}),(0,Z.E)("ÐÑбеÑиÑе адÑÐµÑ Ð¸Ð· вÑпадаÑÑего ÑпиÑка подÑказок Ð´Ð»Ñ Ð¾Ð¿ÑÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ ÐºÐ¾Ð¾ÑдинаÑ");return}let l=Object.values(e)[0],d=(null==l?void 0:l.message)||"ÐожалÑйÑÑа, заполниÑе вÑе обÑзаÑелÑнÑе Ð¿Ð¾Ð»Ñ ÐºÐ¾ÑÑекÑно";(0,Z.E)(d)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(u.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap"},children:[(0,o.jsxs)("h1",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,o.jsxs)("span",{style:{padding:0,color:"rgba(75, 70, 92, .5)"}
1,children:["ÐÐ°ÐºÐ°Ð·Ñ /"," "]}),"Ðаказ â ",L," ",(0,o.jsx)(H.Z,{rounded:!0,size:"medium",skin:"light",color:null===(B=ee[null==q?void 0:q.status])||void 0===B?void 0:B.color,label:null===(W=ee[null==q?void 0:q.status])||void 0===W?void 0:W.title,sx:{"& .MuiChip-label":{textTransform:"capitalize",fontWeight:500,fontSize:"15px"}}})]}),(0,o.jsxs)(u.Z,{sx:{display:"flex",gap:"20px"},children:[(0,o.jsxs)(p.Z,{onClick:()=>F(),variant:"tonal",color:"secondary",children:["ÐÑмениÑÑ Ð·Ð°ÐºÐ°Ð·"," "]}),(0,o.jsxs)(p.Z,{onClick:()=>Y.current.click(),variant:"contained",children:["СоÑ
ÑаниÑÑ"," "]})]})]}),(0,o.jsxs)("form",{onSubmit:el(eN,eP),children:[(0,o.jsx)(v.Z,{isEdit:!0,orderDetail:q,setOptionService:ev,setValue:ef,value:eg,control:ei,setCategoryId:ey,clearErrors:eo,address:em,categoryId:ex,setZoneState:eZ,setError:en,setAddress:e_,errors:et,resetField:ed,setTechnicCategoryId:eu}),1==ex?(0,o.jsx)(y.Z,{categoryId:ex,address:em,inputValue:eV,setInputValueModels:eR,setInputValue:eB,inputValueModels:eW,models:eL,setModels:eq,data:eA,technic_name:ea,technicsData:eb,errors:et,control:ei,optionService:ep,optionAndCondition:eM,setOptionService:ev,setTechnicCategoryId:eu,technic_category_id:ec,radius:es}):"",2==ex?(0,o.jsx)(m.Z,{address:em,categoryId:ex,hasWorkingZone:!!(null==eS?void 0:eS.working_zone_id),isOptionsLoading:ew,setOptionService:ev,optionAndCondition:eM,control:ei,errors:et}):"",3==ex?(0,o.jsx)(_.Z,{inputValue:eV,setInputValueModels:eR,setInputValue:eB,inputValueModels:eW,models:eL,setModels:eq,data:eA,setOptionService:ev,optionService:ep,control:ei,errors:et,technicsData:eb,optionAndCondition:eM,technic_category_id:ec,setTechnicCategoryId:eu,address:em,categoryId:ex,hasWorkingZone:!!(null==eS?void 0:eS.working_zone_id),isOptionsLoading:ew}):"",4==ex?(0,o.jsx)(g.Z,{setHours:ej,technic_category_id:ec,setOptionService:ev,optionAndCondition:eM,optionService:ep,control:ei,errors:et,technicsData:eb,setTechnicCategoryId:eu,address:em,categoryId:ex,hasWorkingZone:!!(null==eS?void 0:eS.working_zone_id),isOptionsLoading:ew,hours:eh}):"",5==ex?(0,o.jsx)(U.Z,{categoryId:ex,address:em,inputValue:eV,setInputValueModels:eR,setInputValue:eB,inputValueModels:eW,models:eL,setModels:eq,data:eA,technic_name:ea,technicsData:eb,errors:et,control:ei,optionService:ep,optionAndCondition:eM,setOptionService:ev,setTechnicCategoryId:eu,technic_category_id:ec}):"",(0,o.jsx)("input",{ref:Y,type:"submit",style:{display:"none"}}),(0,o.jsx)(I.Z,{partnerForOrder:eO,control:ei})]}),(0,o.jsx)(w.Z,{sx:{padding:"24px",display:"flex",justifyContent:"end",marginTop:"24px"},children:(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[(0,o.jsx)(D.Z,{price:eF.options,title:"ÐпÑии в заказе"}),(0,o.jsx)(D.Z,{price:eF.delivery,title:"ÐÑезд"}),(0,o.jsx)(D.Z,{price:isNaN(eF.total)?0:eF.total,title:"ÐбÑÐ°Ñ ÑÑоимоÑÑÑ"})]})}),(0,o.jsxs)(w.Z,{sx:{padding:"24px",display:"flex",marginTop:"24px",flexDirection:"column"},children:[(0,o.jsx)("div",{children:(0,o.jsx)("h2",{style:{color:"rgba(75, 70, 92, .9)",fontSize:"18px",margin:0,marginBottom:"24px",whiteSpace:"nowrap"},children:"ÐÑÑоÑиÑ"})}),(0,o.jsxs)(K.ZP,{container:!0,spacing:3,children:[(0,o.jsxs)(K.ZP,{item:!0,xs:12,lg:6,sx:{display:"flex",flexDirection:"column",minHeight:"300px"},children:[(0,o.jsx)("h3",{style:{color:"rgba(75, 70, 92, .9)",fontSize:"16px",margin:0,marginBottom:"16px",fontWeight:500},children:"ÐÑÑоÑÐ¸Ñ ÑаÑа"}),(0,o.jsx)(u.Z,{sx:{flex:1,display:"flex",flexDirection:"column"},children:(0,o.jsx)(Q,{messages:null==P?void 0:P.messages})})]}),(0,o.jsxs)(K.ZP,{item:!0,xs:12,lg:6,sx:{display:"flex",flexDirection:"column",minHeight:"300px",borderLeft:{xs:"none",lg:"1px solid rgba(75, 70, 92, 0.12)"},paddingLeft:{xs:0,lg:"24px"},marginTop:{xs:"24px",lg:0}},children:[(0,o.jsx)("h3",{style:{color:"rgba(75, 70, 92, .9)",fontSize:"16px",margin:0,marginBottom:"16px",fontWeight:500},children:"ÐÑÑоÑÐ¸Ñ Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ð¹ опÑий"}),(0,o.jsx)(u.Z,{sx:{flex:1,display:"flex",flexDirection:"column"},children:(0,o.jsx)(G,{history:null==q?void 0:null===(R=q.change_history)||void 0===R?void 0:R.changes,orderDetail
1:q})})]})]})]})]})};var et=ei}},function(e){e.O(0,[1595,7591,2657,7536,266,9190,7465,1067,9774,2888,179],function(){return e(e.s=75793)}),_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.