PageSourceSearch

https://arboniashop.ru/_next/static/chunks/8074-483fd30f1f00bcdd.js

js arboniashop.ru collected 2026-10-07 11:59:12 UTC 6,784 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8074],{58914:function(e,n,o){o.d(n,{Z:function(){return b}});var t=o(85893),r=o(67294),s=o(60990),c=o(25026),i=o(76592),l=o(70360),d=o(46577),x=o(8863),h=o(19827),a=o(96788),p=o(8568),j=o(49783),m=o(52857),Z=o(84140),u=o(45135),g=o(9565),y=e=>{let{item:n}=e,o=(0,r.useContext)(Z.JD),s=n.consoles.w161h121;return(0,t.jsxs)(d.Z,{sx:{"&:hover":{backgroundColor:"#eeeeee"}},children:[(0,t.jsxs)(x.Z,{component:"th",scope:"row",sx:g.j_,children:[n.title,"\xa0",(0,t.jsxs)("span",{style:{...g.BQ},children:["(",s>0?"W161 + DS x ".concat(s):"нет вариантов",")"]})]}),(0,t.jsx)(x.Z,{component:"th",scope:"row",sx:g.j_,align:"right",children:(0,u.Z)(n.price.noConsole)}),(0,t.jsx)(x.Z,{component:"th",scope:"row",sx:g.j_,align:"right",children:n.qnty}),(0,t.jsx)(x.Z,{component:"th",scope:"row",sx:g.j_,align:"right",children:(0,u.Z)(n.price.noConsole*n.qnty)}),(0,t.jsxs)(x.Z,{component:"th",scope:"row",sx:g.j_,align:"center",children:[(0,t.jsx)(m.Z,{size:"small",onClick:()=>o.dispatch({type:"ADD_ITEM",value:{modelId:n.modelId,colorId:n.colorId,connectionId:n.connectionId,sectionQnty:n.sectionQnty,qnty:1}}),children:(0,t.jsx)(p.Z,{color:"success"})}),(0,t.jsx)(m.Z,{size:"small",onClick:()=>o.dispatch({type:"REMOVE_ITEM",value:{modelId:n.modelId,colorId:n.colorId,connectionId:n.connectionId,sectionQnty:n.sectionQnty}}),children:(0,t.jsx)(j.Z,{})})]})]})},w=o(74156),I=e=>{let{items:n}=e;return(0,t.jsx)(t.Fragment,{children:(0,w.Z)({items:n}).map((e,n)=>{let o=Math.floor(e.totalSum/e.qnty);return(0,t.jsxs)(d.Z,{sx:{backgroundColor:"#eeeeee"},children:[(0,t.jsxs)(x.Z,{component:"th",scope:"row",sx:g.j_,children:["Кронштейн ",e.title]}),(0,t.jsx)(x.Z,{component:"th",scope:"row",sx:g.j_,align:"right",children:(0,u.Z)(Math.floor(o))}),(0,t.jsx)(x.Z,{component:"th",scope:"row",sx:g.j_,align:"right",children:e.qnty}),(0,t.jsx)(x.Z,{component:"th",scope:"row",sx:g.j_,align:"right",children:(0,u.Z)(e.totalSum)}),(0,t.jsx)(x.Z,{component:"th",scope:"row",sx:g.j_,align:"center"})]},n)})})},C=o(68573);let _={width:"100px",height:"100px",border:"1px solid #e6e6e6"};var f=()=>{let e=(0,r.useContext)(Z.JD),n=e.state.consoleType;return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(C.ZP,{container:!0,spacing:2,children:[(0,t.jsx)(C.ZP,{item:!0,children:(0,t.jsxs)(s.Z,{textAlign:"center",sx:{opacity:"w161h121"===n?"1":"0.4","&:hover":{cursor:"pointer",opacity:"1"}},onClick:()=>
1e.dispatch({type:"SET_CONSOLE_TYPE",value:"w161h121"}),children:[(0,t.jsx)(s.Z,{marginX:"auto",sx:{..._,borderColor:"w161h121"===n?"#000000":"#e6e6e6",backgroundImage:"url('/images/other/w161h121.jpg')",backgroundSize:"cover"}}),(0,t.jsxs)(a.Z,{sx:{...g.BQ},children:["W161 + DS",(0,t.jsx)("br",{}),"(кронштейн + упор)"]})]})}),(0,t.jsx)(C.ZP,{item:!0,children:(0,t.jsxs)(s.Z,{textAlign:"center",sx:{opacity:"none"===n?"1":"0.4","&:hover":{cursor:"pointer",opacity:"1"}},onClick:()=>e.dispatch({type:"SET_CONSOLE_TYPE",value:"none"}),children:[(0,t.jsx)(s.Z,{marginX:"auto",sx:{..._,borderColor:"none"===n?"#000000":"#e6e6e6",backgroundImage:"url('/images/other/empty-wall.jpg')",backgroundSize:"cover"}}),(0,t.jsx)(a.Z,{sx:{...g.j_},children:"Без кронштейнов"})]})})]})})},S=o(80297),b=e=>{let{items:n,showSummary:o=!0}=e,p=(0,r.useContext)(Z.JD).state.consoleType,[j,m]=(0,r.useState)(0);return(0,r.useEffect)(()=>{m((0,S.Z)({items:n,consoleType:p}))},[n,p]),(0,t.jsxs)(s.Z,{children:[(0,t.jsx)(c.Z,{children:(0,t.jsxs)(i.Z,{sx:{maxWidth:"1000px",minWidth:"500px"},size:"small",children:[(0,t.jsx)(l.Z,{children:(0,t.jsxs)(d.Z,{children:[(0,t.jsx)(x.Z,{sx:g.d3,children:"Товар"}),(0,t.jsx)(x.Z,{align:"right",sx:g.d3,children:"Цена"}),(0,t.jsx)(x.Z,{align:"right",sx:g.d3,children:"Кол-во"}),(0,t.jsx)(x.Z,{align:"right",sx:g.d3,children:"Сумма"}),(0,t.jsx)(x.Z,{align:"right",sx:{minWidth:"100px"}})]})}),(0,t.jsxs)(h.Z,{children:[n.map((e,n)=>(0,t.jsx)(y,{item:e},n)),"none"!==p&&(0,t.jsx)(I,{items:n}),!0===o&&(0,t.jsxs)(d.Z,{children:[(0,t.jsx)(x.Z,{align:"right",colSpan:3,sx:{...g.d3,borderBottom:0},children:"Итого"}),(0,t.jsx)(x.Z,{align:"right",colSpan:1,sx:{...g.d3,borderBottom:0},children:(0,u.Z)(j)})]})]})]})}),(0,t.jsx)(s.Z,{marginTop:"10px",children:(0,t.jsx)(a.Z,{sx:g.BQ,children:"*Цена может не соответствовать сумме из-за округления"})}),(0,t.jsxs)(s.Z,{marginTop:"60px",children:[(0,t.jsx)(a.Z,{sx:{...g.Xl},children:"Включать кронштейны в спецификацию:"}),(0,t.jsx)(s.Z,{marginTop:"20px"}),(0,t.jsx)(f,{}),(0,t.jsx)(s.Z,{marginTop:"20px"}),(0,t.jsxs)(a.Z,{sx:{...g.j_},children:["*Автоматический подбор кронштейнов явялется приблизительным.",(0,t.jsx)("br",{}),"Наличие конкретных кронштейнов и их необходимое количество уточнит",(0,t.jsx)("br",{}),"продавец при согласовании заказа."]})]})]})}},43842:function(e,n,o){o.d(n,{Z:function(){return l}});var t=o(67294),r=o(84140),s=o(99043),c=o(14822),i=e=>{var n;let{item:o,models:t,colors:r,connections:s,currencyRate:i}=e,l=t.find(e=>e.id===o.modelId),d=r.find(e=>e.id===o.colorId),x=s.find(e=>e.id===o.connectionId);if(!l||!d||!x)return{...o,consoles:{w161h121:0},title:"Error",price:{noConsole:0,w161h121:0},colorName:"цвет не определен"};let{price:h,consoles:a}=(0,c.Z)({model:l,color:d,connection:x,currencyRate:i,sectionQnty:o.sectionQnty}),p="".concat(l.name," - ").concat(o.sectionQnty>9?o.sectionQnty:"0"+o.sectionQnty.toString()," сек. / ").concat(x.name," / ").concat(d.name);return{...o,title:p,price:h,consoles:a,colorName:(null===(n=r.find(e=>e.id===o.colorId))||void 0===n?void 0:n.nameShort)||"цвет не определен"}},l=e=>{let{models:n,colors:o,connections:c}=e,l=(0,t.useContext)(r.JD),{rateEuro:d}=(0,t.useContext)(s.$),[x,h]=(0,t.useState)(l.state.items.map(e=>i({item:e,models:n,colors:o,connections:c,currencyRate:d})));return(0,t.useEffect)(()=>{h(l.state.items.map(e=>i({item:e,models:n,colors:o,connections:c,currencyRate:d})))},[l.state.items,d]),{items:x}}}
1,80297:function(e,n){n.Z=e=>{let{items:n,consoleType:o}=e;return n.reduce((e,n)=>"w161h121"===o?e+n.qnty*n.price.w161h121:e+n.qnty*n.price.noConsole,0)}},74156:function(e,n){n.Z=e=>{let{items:n}=e;return n.reduce((e,n)=>{let o=e[0];return o?e.map(e=>e.colorId!==o.colorId?e:{...e,qnty:e.qnty+n.consoles.w161h121*n.qnty,totalSum:e.totalSum+(n.price.w161h121-n.price.noConsole)*n.qnty}):[...e,{title:"W161 + ZB0280",colorId:n.colorId,qnty:n.consoles.w161h121*n.qnty,totalSum:(n.price.w161h121-n.price.noConsole)*n.qnty,colorName:n.colorName}]},[]).filter(e=>e.qnty>0)}}}]);

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.