PageSourceSearch

https://assets-prod.inmyroom.ru/assets/chunk.2771.d66dfd5b88f476fa.js

js inmyroom.ru collected 2026-10-01 10:32:01 UTC 4,770 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["2771"],{71394(t,e,s){s.r(e),s.d(e,{App:()=>i});var c=s(81413),a=s(67192),r=s(60616);let o=(0,s(16172).D)("ProductAddedToCartModalV3");class i extends r.Component{constructor(){super(...arguments),this.state={isActive:!0,product:this.product},this.handleClose=()=>{this.setState({isActive:!1}),setTimeout(this.props.onCancel,300)},this.handleCheckoutContextUpdate=t=>{let e=t.items.find(t=>t.productId===Number(this.props.productId));e&&this.setState({product:e})}}get product(){return this.props.checkoutContext.getContext().store.getState().items.find(t=>t.productId===Number(this.props.productId))}componentDidMount(){this.props.checkoutContext.subscribe(this.handleCheckoutContextUpdate)}render(){var t,e;let s=this.props.onApply,r=this.state,i=r.product,l=r.isActive,n=this.props.checkoutContext.getContext().store.getState().totalPriceInfo.totalPrice,d=this.props.checkoutContext.getContext().store.getState().totalPriceInfo.supplierDiscount,u=this.props.checkoutContext.getContext().store.getState().totalPriceInfo.totalPriceWithoutDelivery,h=this.props.checkoutContext.getContext().store.getState().delivery.cityName,p=new Intl.NumberFormat("ru-RU",{style:"currency",currency:"RUB",minimumFractionDigits:0}),b=null==(e=null==(t=this.props.checkoutContext.getContext().store.getState().totalPriceInfo.deliveryDateEstimate)?void 0:t.maxDate)?void 0:e.deliveryDatesRange;return o((0,c.FD)("article",{className:(0,a.A)("ScopeRoot",{__isActive:l}),children:[(0,c.Y)("div",{className:"sb-Overlay",onClick:this.handleClose}),(0,c.Y)("h1",{className:"sb-Title",children:"Добавлено"}),i&&(0,c.FD)("div",{className:"sb-Product",children:[(0,c.Y)("a",{href:i.url,target:"_blank",className:"sb-Product_photo",style:{backgroundImage:`url(${i.photoUrl})`}}),(0,c.FD)("div",{className:"sb-Product_content",children:[(0,c.Y)("p",{className:"sb-Product_row",children:(0,c.Y)("a",{href:i.url,target:"_blank",children:(0,c.Y)("h1",{className:"sb-Product_title",children:i.title})})}),(0,c.Y)("p",{className:"sb-Product_row __line",children:(0,c.FD)("div",{className:"sb-Price",children:[(0,c.FD)("div",{className:"sb-Price_wrapper",children:[i.isVisible&&(0,c.Y)("span",{className:(0,a.A)(["sb-Price_elem","__current",{__discount:i.hasDiscount}]),children:p.format(i.price)}),!i.isVisible&&(0,c.Y)("span",{className:"sb-Price_placeholder",children:"Продано"})]}),(0,c.FD)("span",{className:"sb-Product_title",children:[i.quantity," шт."]})]})})]})]}),(0,c.FD)("div",{className:"sb-Info",children:[(0,c.Y)("h2",{className:"sb-Info __title",children:" В вашей корзине"}),(0,c.FD)("p",{className:"sb-Product_row __line",children:[(0,c.FD)("span",{className:"sb-Product_subtitle",children:[this.props.checkoutContext.getContext().store.getState().items.length," товара"]}),(0,c.Y)("span",{className:"sb-Product_line"}),(0,c.Y)("span",{className:"sb-Product_subtitle",children:p.format(u)})]}),(0,c.FD)("p",{className:"sb-Product_row __line",children:[(0,c.Y)("span",{className:"sb-Product__subtitle",children:"Скидка"}),(0,c.Y)("span",{className:"sb-Product_line"}),(0,c.Y)("span",{className:"sb-Product_subtitle __discount",children:p.format(d)})]}),(0,c.Y)("p",{className:"sb-Product_row __delivery",children:`Доставка: ${b?(()=>{if(b){let t=new Date(b[0]),e=new Date(b[1]),s=t.getDate(),c=e.getDate(),a=["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][t.getMonth()];return`${s} – ${c} ${a}`}})():"уточняется менеджером"}`}),(0,c.FD)("p",{className:"sb-Product_row __total",children:[(0,c.Y)("span",{className:"sb-Product_city",children:h}),(0,c.Y)("span",{className:"sb-Product_line"}),(0,c.Y)("span",{className:"sb-Product_subtitle",children:"2000 р"})]}),(0,c.Y)("p",{className:"sb-Product_row __hint",children:"Финальная цена доставки уточняется менеджером"}),(0,c.Y)("span",{className:"sb-Product_divider"}),(0,c.FD)("p",{className:"sb-Product_row __line",children:[(0,c.Y)("span",{className:"sb-Product_totalPrice",children:"Итого:"}),(0,c.Y)("span",{className:"sb-Product_line"}),(0,c.Y)("span",{className:"sb-Product_totalPrice",children:p.format(n)})]})]}),(0,c.FD)("div",{className:"sb-Actions",children:[(0,c.Y)("button",{className:"sb-Button __black",type:"button",onClick:()=>
1s(),children:"Перейти в корзину"}),(0,c.Y)("button",{className:"sb-Button __white",type:"button",onClick:this.handleClose,children:"Продолжить покупки"})]})]}))}}}}]);
2//# sourceMappingURL=sourcemap.chunk.2771.d66dfd5b88f476fa.c1c6ad43.map

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.