1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9826],{94969:function(t,e,r){"use strict";r.d(e,{Z:function(){return k}});var i,n,o,s,d=r(25675),c=r(90832),l=r(67294),a=r(52209),p=r(29163),h=r(48803),f=r(88315),x=p.ZP.div.withConfig({displayName:"OrderListstyled__Container",componentId:"sc-8628w5-0"})(["width:100%;"]),u=p.ZP.div.withConfig({displayName:"OrderListstyled__OrderListScroll",componentId:"sc-8628w5-1"})(["overflow-x:auto;"]),g=p.ZP.div.withConfig({displayName:"OrderListstyled__OrderListTable",componentId:"sc-8628w5-2"})(["display:table;",""],(0,h.eq)("lg")(i||(i=(0,a.Z)(["\n display: block;\n "])))),j=p.ZP.div.withConfig({displayName:"OrderListstyled__OrderListCol",componentId:"sc-8628w5-3"})(["display:flex;",";font-weight:600;line-height:1.4;align-items:center;padding:0 5px;&:not(:last-of-type){min-width:150px;}"],(0,h.LZ)(11,13,13)),m=p.ZP.div.withConfig({displayName:"OrderListstyled__OrderListHead",componentId:"sc-8628w5-4"})(["display:grid;grid-template-columns:400px 1fr 1fr 1fr 1fr 36px;padding-bottom:15px;border-bottom:1px solid ",";color:",";",""],f.O9.gray,f.O9.color1,(0,h.eq)("lg","max")(n||(n=(0,a.Z)(["\n grid-template-columns: 300px 1fr 1fr 1fr 1fr 36px;\n "])))),y=p.ZP.div.withConfig({displayName:"OrderListstyled__OrderListRow",componentId:"sc-8628w5-5"})(["width:100%;display:grid;grid-template-columns:400px 1fr 1fr 1fr 1fr 36px;align-items:center;padding:15px 0;text-align:start;","{&:first-child{",";}}&:not(:last-of-type){border-bottom:1px solid ",";}",""],j,(0,h.LZ)(13,15,15),f.O9.gray,(0,h.eq)("lg","max")(o||(o=(0,a.Z)(["\n grid-template-columns: 300px 1fr 1fr 1fr 1fr 36px;\n "])))),w=p.ZP.div.withConfig({displayName:"OrderListstyled__OrderListImage",componentId:"sc-8628w5-6"})(["margin-right:35px;min-width:60px;"]),O=p.ZP.div.withConfig({displayName:"OrderListstyled__OrderListPrice",componentId:"sc-8628w5-7"})(["display:flex;flex-wrap:wrap;align-items:flex-start;white-space:nowrap;& > span{margin-bottom:10px;&:first-child{width:100%;",";font-weight:700;}&:nth-child(2){padding:3px 5px;font-size:11px;font-weight:800;line-height:1;color:",";background-color:",";}&:nth-child(3){margin-left:10px;font-size:13px;font-weight:600;opacity:.3;text-decoration:line-through;}}& > p{width:100%;span{",";color:",";font-weight:600;line-height:1;}}"],(0,h.LZ)(15,18,18),f.O9.red,f.O9.gray,(0,h.LZ)(9,10,11),f.O9.color1),_=p.ZP.div.withConfig({displayName:"OrderListstyled__OrderListFooter",componentId:"sc-8628w5-8"})(["display:flex;justify-content:space-between;padding-top:50px;padding-right:",";",";font-weight:800;border-top:1px solid ",";"],(0,h.T5)(.5),(0,h.LZ)(15,18,18),f.O9.color3),I=r(13044),Z=r(98105),b=(0,p.iv)(["transform:rotate(90deg);transition:0.3s;"]),P=p.ZP.div.withConfig({displayName:"styles__IconWrapper",componentId:"sc-10y0xc1-0"})(["display:flex;justify-content:center;align-items:center;width:100%;& > svg{width:16px;height:16px;transform:rotate(-90deg);color:",";transition:0.3s;","}"],f.O9.color3,(function(t){return t.isOpened&&b})),v=p.ZP.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-10y0xc1-1"})([""]),L=(0,p.iv)(["max-height:500px;transition:0.3s;opacity:1;"]),C=p.ZP.div.withConfig({displayName:"styles__DropdownListWrapper",componentId:"sc-10y0xc1-2"})(["max-height:0;overflow:hidden;transition:0.3s;opacity:0;",""],(function(t){return t.isOpened&&L})),N=p.ZP.div.withConfig({displayName:"styles__ExtraProductOrderListRow",componentId:"sc-10y0xc1-3"})(["width:100%;display:grid;grid-template-columns:315px 1fr 1fr 1fr 1fr 36px;align-items:center;padding:15px 0 15px 85px;text-align:start;","{&:first-child{",";}}&:not(:last-of-type){border-bottom:1px solid ",";}",""],j,(0,h.LZ)(13,15,15),f.O9.gray,(0,h.eq)("lg","max")(s||(s=(0,a.Z)(["\n grid-template-columns: 230px 1fr 1fr 1fr 1fr 36px;\n padding: 10px 0 10px 70px;\n "])))),q=r(85893),E=function(t){var e=t.product,r=t.extraProducts,i=t.totalWeight,n=t.quantity,o=(0,l.useState)(!1),s=o[0],a=o[1];return(0,q.jsxs)(v,{children:[(0,q.jsxs)(y,{as:"button",onClick:function(){a((function(t){return!t}))},children:[(0,q.jsxs)(j,{children:[(0,q.jsx)(w,{children:(0,q.jsx)(d.default,{src:(0,I.He)(e),alt:e.title,width:75,height:75,objectFit:"contain",loading:"eager"})}),e.title]}),(0,q.jsx)(j,{children:e.article}),(0,q.jsx)(j,{children:i}),(0,q.jsxs)(j,{children:[n," \u0448\u0442"]}),(0,q.jsx)(j,{children:(0,q.jsxs)(O,{children:[(0,c.Z)(e.price),0!==e.discount&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)("span",{children:["-",e.discount,"%"]}),(0,c.Z)(e.price+e.profit)]}),n>1&&(0,q.jsx)("p",{children:(0,c.Z)(e.price,""," \u0440. / \u0448\u0442.")})]})}),(0,q.jsx)(j,{children:(0,q.jsx)(P,{isOpened:s,children:(0,q.jsx)(Z.Z,{})})})]}),(0,q.jsx)(C,{isOpened:s,children:r.map((function(t){return(0,q.jsxs)(N,{children:[(0,q.jsxs)(j,{children:[(0,q.jsx)(w,{children:(0,q.jsx)(d.default,{src:(0,I.He)(t.productInfo),alt:t.productInfo.title,width:75,height:75,objectFit:"contain",loading:"eager"})}),t.productInfo.title]}),(0,q.jsx)(j,{children:t.productInfo.article}),(0,q.jsx)(j,{children:t.totalWeight}),(0,q.jsxs)(j,{children:[t.quantity," \u0448\u0442"]}),(0,q.jsx)(j,{children:(0,q.jsxs)(O,{children:[(0,c.Z)(t.productInfo.price),0!==t.productInfo.discount&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)("span",{children:["-",t.productInfo.discount,"%"]}),(0,c.Z)(t.productInfo.price+t.productInfo.profit)]}),n>1&&(0,q.jsx)("p",{children:(0,c.Z)(t.productInfo.price,""," \u0440. / \u0448\u0442.")})]})}),(0,q.jsx)(j,{})]},t.id)}))})]})},k=function(t){var e=t.itemsProducts,r=t.totalPrices;return(0,q.jsxs)(x,{children:[(0,q.jsx)(u,{children:(0,q.jsxs)(g,{children:[(0,q.jsxs)(m,{children:[(0,q.jsx)(j,{children:"\u0422\u043e\u0432\u0430\u0440"}),(0,q.jsx)(j,{children:"\u0410\u0440\u0442\u0438\u043a\u0443\u043b"}),(0,q.jsx)(j,{children:"\u0412\u0435\u0441"}),(0,q.jsx)(j,{children:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e"}),(0,q.jsx)(j,{children:"\u0426\u0435\u043d\u0430"}),(0,q.jsx)(j,{})]}),e&&e.map((function(t){return t.products.map((function(t){return t.additional_items&&t.additional_items.length>0?(0,q.jsx)(E,{product:t.productInfo,extraProducts:t.additional_items,totalWeight:t.totalWeight,quantity:t.quantity},t.id):(0,q.jsxs)(y,{children:[(0,q.jsxs)(j,{children:[(0,q.jsx)(w,{children:(0,q.jsx)(d.default,{src:(0,I.He)(t.productInfo),alt:t.productInfo.title,width:75,height:75,objectFit:"contain",loading:"eager"})}),t.productInfo.title]}),(0,q.jsx)(j,{children:t.productInfo.article}),(0,q.jsx)(j,{children:t.totalWeight}),(0,q.jsxs)(j,{children:[t.quantity," \u0448\u0442"]}),(0,q.jsx)(j,{children:(0,q.jsxs)(O,{children:[(0,c.Z)(t.productInfo.price),0!==t.productInfo.discount&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)("span",{children:["-",t.productInfo.discount,"%"]}),(0,c.Z)(t.productInfo.price+t.productInfo.profit)]}),t.quantity>1&&(0,q.jsx)("p",{children:(0,c.Z)(t.productInfo.price,""," \u0440. / \u0448\u0442.")})]})}),(0,q.jsx)(j,{})]},t.id)}))}))]})}),(0,q.jsxs)(_,{children:[(0,q.jsx)("span",{children:"\u0418\u0442\u043e\u0433\u043e:"}),(0,c.Z)(r)]})]})}},19572:function(t,e,r){"use strict";r.r(e),r.d(e,{__N_SSP:function(){return j}});var i=r(92809),n=r(36808),o=r.n(n),s=r(41664),d=r(67294),c=r(28216),l=r(42031),a=r(94969),p=r(60389),h=r(66307),f=r(26438),x=r(85893);function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?u(Object(r),!0).forEach((function(e){(0,i.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var j=!0;e.default=function(t){var e=t.orderError,r=t.categoriesList,i=t.header,n=t.footerContent,u=(0,c.v9)((function(t){return t.order.order})).orderDetail,j=(0,c.I0)();return(0,d.useEffect)((function(){var t=o().get("api_orderId"),e=o().get("api_token");t&&e&&j((0,f.co)(Number(t),e))}),[]),(0,x.jsxs)(p.Z,g(g({contrast:!0,content:e.content,successfull:!0,footerContent:n,categoriesList:r,headerContent:i},e.meta),{},{children:[u.product&&u.createdAt&&(0,x.jsxs)(l.Cj,{children:[(0,x.jsxs)(l.j0,{children:["\u0417\u0430\u043a\u0430\u0437 \u2116 ",u.id," \u043e\u0442 ",u.createdAt.substring(0,10)," (",u.product.totalQuantity," \u0448\u0442)"]}),(0,x.jsx)(l.$C,{children:(0,x.jsx)(a.Z,{itemsProducts:u.product.items,totalPrices:u.product.totalPrice})})]}),(0,x.jsxs)(h.J6,{children:[(0,x.jsx)("h3",{children:e.content.title}),(0,x.jsx)("p",{children:e.content.description}),e&&(0,x.jsx)(s.default,{href:"/profile-order/".concat(u.id),passHref:!0,prefetch:!1,children:(0,x.jsx)("a",{children:"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043e\u043f\u043b\u0430\u0442\u0435"})})]})]}))}},17294:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/order-error",function(){return r(19572)}])}},function(t){t.O(0,[6788,7,7333,4570,7487,2850,9774,2888,179],(function(){return e=17294,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
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.