PageSourceSearch

https://planeta-avtodv.ru/_next/static/chunks/pages/order-fc80e5c6f9c3434e.js

js planeta-avtodv.ru collected 2026-10-08 10:00:53 UTC 7,047 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1941],{5943:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/order",function(){return r(7049)}])},4604:function(e,s,r){"use strict";r.d(s,{Z:function(){return o}});var a=r(4335);let t="/groups",n="/users",l="/items",c="/orders",d="/carts",i="/companies";var o={groups:{index:e=>(0,a.R1)(`${t}`,e),show:(e,s,r)=>(s={...s,id:void 0},(0,a.R1)(`${t}/${e}`,s,r))},users:{index:e=>(0,a.R1)(`${n}`,e),create:e=>(0,a.sg)(`${n}`,e),show:e=>(0,a.R1)(`${n}/${e}`),init:e=>(0,a.sg)("/init"),profile:()=>(0,a.R1)(`${n}/profile`),signIn:e=>(0,a.sg)("/sign_in",e),update:(e,s)=>(0,a.nc)(`${n}/${e}`,s),change_password:e=>(0,a.nc)(`${n}/change_password`,e),remember_password:e=>(0,a.sg)(`${n}/remember_password`,e)},items:{show:e=>(0,a.R1)(`${l}/${e}`),rand:()=>(0,a.R1)(`${l}/rand`),set_favorite:e=>(0,a.sg)(`${l}/${e}/set_favorite`)},orders:{sync:e=>(0,a.sg)(`${c}/sync`,e),init:()=>(0,a.R1)(`${c}/init`),checkOut:e=>(0,a.sg)(`${c}/checkout`,e),index:e=>(0,a.R1)(`${c}`,{page:e}),show:e=>(0,a.R1)(`${c}/${e}`)},search:{index:e=>(0,a.R1)("/search",e)},carts:{index:()=>(0,a.R1)(`${d}`),show:e=>(0,a.R1)(`${d}/${e}`),quote:(e,s)=>(0,a.sg)(`${d}/${e}/quote`,{excludedItemIds:s}),add_item:e=>(0,a.sg)(`${d}/add_item`,e),create_cart:e=>(0,a.sg)(`${d}`,e),move_item:e=>(0,a.sg)([d,"move_item"].join("/"),e),deleteItem:e=>(0,a.sg)([d,"delete_item"].join("/"),e),checkout:e=>(0,a.sg)([d,"checkout"].join("/"),e)},companies:{index:()=>(0,a.R1)(`${i}`),create:e=>(0,a.sg)(i,e),update:(e,s)=>(0,a.nc)([i,e].join("/"),s)}}},8132:function(e,s,r){"use strict";var a=r(5893);r(7294);var t=r(1664),n=r.n(t);
1s.Z=e=>(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)("div",{className:"bg-[#f5f5f5] text-center text-xs font-semibold uppercase text-[#666]",children:"ОБЩИЕ"}),(0,a.jsx)(n(),{href:"/orders",className:"block border-l-[3px] border-transparent px-[15px] py-[10px] text-[13px] font-semibold text-[#333] no-underline hover:border-[#111] hover:bg-[#f0f0f0]",children:"Заказы"}),(0,a.jsx)(n(),{href:"/accounting",className:"block border-l-[3px] border-transparent px-[15px] py-[10px] text-[13px] font-semibold text-[#333] no-underline hover:border-[#111] hover:bg-[#f0f0f0]",children:"Взаиморасчеты"}),(0,a.jsx)("div",{className:"bg-[#f5f5f5] text-center text-xs font-semibold uppercase text-[#666]",children:"Настройки"}),(0,a.jsx)(n(),{href:"/settings/companies",className:"block border-l-[3px] border-transparent px-[15px] py-[10px] text-[13px] font-semibold text-[#333] no-underline hover:border-[#111] hover:bg-[#f0f0f0]",children:"Организация"}),(0,a.jsx)(n(),{href:"/settings/password",className:"block border-l-[3px] border-transparent px-[15px] py-[10px] text-[13px] font-semibold text-[#333] no-underline hover:border-[#111] hover:bg-[#f0f0f0]",children:"Смена пароля"})]})},9814:function(e,s,r){"use strict";var a=r(5893),t=r(7294),n=r(8132),l=r(4981),c=r(1594);s.Z=({children:e})=>{let[s,r]=t.useState(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"MobileMenuBar",children:(0,a.jsxs)("button",{type:"button",className:"MobileMenuButton",onClick:()=>r(!0),children:[(0,a.jsx)(l.Z,{"aria-hidden":"true"}),(0,a.jsx)("span",{children:"Разделы"})]})}),(0,a.jsxs)("div",{className:`MobileMenuDrawer ${s?"MobileMenuDrawer--open":""}`,"aria-hidden":!s,children:[(0,a.jsx)("button",{type:"button",className:"MobileMenuDrawer-backdrop",onClick:()=>r(!1),"aria-label":"Закрыть меню"}),(0,a.jsxs)("div",{className:"MobileMenuDrawer-panel",children:[(0,a.jsxs)("div",{className:"MobileMenuDrawer-header",children:[(0,a.jsx)("span",{children:"Разделы"}),(0,a.jsx)("button",{type:"button",className:"MobileMenuDrawer-close",onClick:()=>r(!1),"aria-label":"Закрыть меню",children:(0,a.jsx)(c.Z,{"aria-hidden":"true"})})]}),(0,a.jsx)("div",{onClick:()=>r(!1),children:(0,a.jsx)(n.Z,{})})]})]}),(0,a.jsxs)("div",{className:"App-wrapper",children:[(0,a.jsx)("div",{className:"App-spacer"}),(0,a.jsx)("div",{className:"App-menu App-column--sticky",children:(0,a.jsx)(n.Z,{})}),(0,a.jsx)("div",{className:"App-content",children:e}),(0,a.jsx)("div",{className:"App-sidebar"})]})]})}},7049:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return m}});var a=r(5893),t=r(7294),n=r(9814),l=r(1163),c=r(4604);r(1664);let d=({columns:e,className:s})=>(0,a.jsx)("div",{className:`${s?`${s} ${s}-head`:"Table_Header Table_Row"}`,children:e.map((e,s)=>(0,a.jsx)("div",{className:`${e.className?e.className:"Table_Cell"}`,children:e.title},s))}),i=({columns:e,data:s,rowClassName:r})=>(0,a.jsx)(a.Fragment,{children:s.map((s,t)=>(0,a.jsx)("div",{className:`${r||"Table_Row"} `,children:e.map((e,r)=>e.render?(0,a.jsx)("div",{className:` ${e.className?e.className:"Table_Cell"}`,children:e.render(s[e.dataIndex],s)},`${t}${r}`):(0,a.jsx)("div",{className:` ${e.className?e.className:"Table_Cell"}`,children:s[e.dataIndex]},`${t}${r}`))},t))});var o=({columns:e,data:s,className:r,rowClassName:t})=>(0,a.jsxs)("div",{className:`${r||"Table"}`,children:[(0,a.jsx)(d,{columns:e,className:r}),(0,a.jsx)("div",{className:"ProductTable-body",children:(0,a.jsx)(i,{columns:e,data:s,rowClassName:t})})]}),x=r(5457),m=()=>{let[e,s]=t.useState(void 0),r=(0,l.useRouter)();return t.useEffect(()=>{(async()=>{s((await c.Z.orders.show(r.query.id)).order)})()},[r]),(0,a.jsx)(n.Z,{children:e&&e.orderItems&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("h2",{children:["Заказ № ",e.number," от"," ",e.formedAt]}),(0,a.jsxs)("p",{children:["Комментарий: ",e.comment]}),(0,a.jsx)(o,{columns:[{title:"",dataIndex:"codes",className:"ProductTable-content-props ProductTable-cell",render:(e,s)=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"ProductTable-content-props-title",children:"Код"}),(0,a.jsx)("div",{className:"ProductTable-content-props-value",children:s.itemCo
1de}),(0,a.jsx)("div",{className:"ProductTable-content-props-title",children:"Артикул"}),(0,a.jsx)("div",{className:"ProductTable-content-props-value",children:s.itemArticle})]})},{title:"Наименование",dataIndex:"title",className:"ProductTable-content",render:(e,s)=>(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"ProductTable-cell-title",children:s.title}),s.promotionName?(0,a.jsxs)("div",{className:"mt-1 inline-flex rounded-md bg-[#fec949] px-2 py-1 text-[11px] font-semibold text-slate-900",children:[s.promotionName," \xb7 −",s.promotionPercent,"%"]}):null]})},{title:"Цена",dataIndex:"price",className:"ProductTable-cell-price ProductTable-cell",render:e=>(0,x.Z)(e)},{title:"Кол-во",dataIndex:"qty",className:"ProductTable-cell-price ProductTable-cell",render:e=>`${e} шт.`},{title:"Сумма",dataIndex:"amount",className:"ProductTable-cell-price ProductTable-cell",render:e=>(0,x.Z)(e)}],data:e.orderItems,className:"ProductTable",rowClassName:"ProductTable-row"})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=5943)}),_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.