https://xn----7sbba8aqfqfyu2iva8a.xn--p1ai/_next/static/chunks/pages/compare-4d93fa95d0ca2c51b971.js
1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[36],{"0iVs":function(e,t,n){"use strict";var r=n("cpVT"),c=n("nKUr"),a=n("dhJC"),o=n("hlFM"),i=n("Z3vd"),s=n("mwIZ"),l=n.n(s),j=n("TSYQ"),u=n.n(j),d=n("H2TA");function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=Object(d.a)((function(e){return{root:function(t){var n=t.color,r=void 0===n?{}:n;return{paddingTop:0,paddingBottom:0,paddingLeft:0,fontSize:14,fontWeight:500,textTransform:"none",justifyContent:"flex-start",lineHeight:1,textAlign:"left",color:l()(e.palette,r.main,"inherit"),"&:hover":{background:"none",color:l()(e.palette,r.hover,"inherit")},"&.MuiButton-active":{}}},startIcon:{marginLeft:0},endIcon:{},iconSizeMedium:{"& > *:first-child":{fontSize:22}}}}))((function(e){e.color;var t=e.onText,n=e.offText,r=e.active,s=e.children,l=Object(a.a)(e,["color","onText","offText","active","children"]);return s?Object(c.jsx)(i.a,h(h({},l),{},{children:s})):Object(c.jsx)(i.a,h(h({className:u()({"MuiButton-active":r})},l),{},{children:t&&n&&Object(c.jsx)(o.a,{dangerouslySetInnerHTML:{__html:r?t:n}})}))}));b.muiName=i.a.muiName,t.a=b},FAYi:function(e,t,n){"use strict";n.r(t);var r=n("nKUr"),c=n("xvhg"),a=n("q1tI"),o=n.n(a),i=n("80PL"),s=n("rQ2n"),l=n("aHvR"),j=n("0iVs"),u=n("ofer"),d=n("hlFM"),p=n("tRbT"),h=n("Bf0q"),b=n("IAsK"),f=n("r77h"),m=n("V54j"),O=n("H2TA"),x=n("aZ9c"),v=n("TSYQ"),g=n.n(v),y=n("R/WZ"),w=n("zUqs"),N=Object(y.a)((function(e){return{row:function(e){return{height:40,display:"flex",alignItems:"center",fontSize:14,fontWeight:500,paddingLeft:40,background:e.even?"#FCFCFC":"white"}},remove:{top:0,right:10,position:"absolute",width:15,height:15,color:e.palette.primary.main,"&:hover":{color:e.palette.secondary.main}},section:{width:215,position:"relative",borderRight:"solid 1px",borderColor:e.palette.primary.main,cursor:"pointer"},render:{height:215,fontWeight:500,display:"flex",alignItems:"flex-start",justifyContent:"center","& img":{width:"75%",height:"75%",display:"block",objectFit:"contain"}},placeholder:{fontSize:14,color:e.palette.primary.main,borderTopColor:"transparent",borderBottomColor:"transparent","& $render":{paddingLeft:20,justifyContent:"flex-start"},"& $row":{paddingLeft:20}},sold:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center"},highlight:{fontSize:18,fontWeight:500,color:e.palette.primary.main},propValue:{fontSize:14}}}));function C(e){var t=e.apartment,n=e.onRemove,c=e.onShow,a=Object(m.i)((function(e){return e.auth})),o=N();return Object(r.jsxs)(d.a,{className:o.section,onClick:function(e){return c(e,t)},children:[Object(r.jsx)(d.a,{className:o.render,pt:3,children:t.planView&&Object(r.jsx)("img",{src:t.planView})}),Object(r.jsx)(P,{even:!0,children:Object(r.jsx)(d.a,{className:o.highlight,children:t.apartSquare})}),Object(r.jsx)(P,{children:Object(r.jsx)(d.a,{className:o.propValue,children:t.houseNo})}),Object(r.jsx)(P,{even:!0,children:Object(r.jsx)(d.a,{className:o.propValue,children:t.section})}),Object(r.jsx)(P,{children:Object(r.jsx)(d.a,{className:o.propValue,children:t.floor})}),Object(r.jsx)(P,{even:!0,children:Object(r.jsx)(d.a,{className:o.propValue,children:t.apartNumber})}),Object(r.jsx)(P,{children:Object(r.jsx)(d.a,{className:o.propValue,children:t.roomsCount})}),a.authorized&&Object(r.jsx)(r.Fragment,{children:t.apartmentCost&&Object(r.jsx)(P,{even:!0,children:Object(r.jsxs)(d.a,{className:o.propValue,children:[Object(r.jsx)(x.a,{value:t.apartmentCost,displayType:"text",thousandSeparator:" "})," ","\u20bd"]})})}),Object(r.jsx)(w.h,{size:"small",className:o.remove,onClick:function(e){e.stopPropagation(),n(e,t)}})]})}function T(e){var t=e.onRemove,n=void 0===t?function(){}:t,c=N();return Object(r.jsxs)(d.a,{className:g()(c.section,c.sold),children:[Object(r.jsxs)(d.a,{className:c.sold,children:[Object(r.jsx)(d.a,{children:"\u041a\u0432\u0430\u0440\u0442\u0438\u0440\u0430"}
1),Object(r.jsx)(d.a,{children:"\u043f\u0440\u043e\u0434\u0430\u043d\u0430"})]}),Object(r.jsx)(w.h,{size:"small",className:c.remove,onClick:function(e){e.stopPropagation(),n(e)}})]})}function S(){var e=Object(m.i)((function(e){return e.auth})),t=N();return Object(r.jsxs)(d.a,{className:g()(t.section,t.placeholder),children:[Object(r.jsx)(d.a,{className:t.render,pt:3,children:"\u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u043a\u0430"}),Object(r.jsxs)(P,{even:!0,children:["\u041f\u043b\u043e\u0449\u0430\u0434\u044c, \u043c",Object(r.jsx)("small",{children:Object(r.jsx)("sup",{children:"2"})})]}),Object(r.jsx)(P,{children:"\u0414\u043e\u043c \u2116"}),Object(r.jsx)(P,{even:!0,children:"\u041f\u043e\u0434\u044a\u0435\u0437\u0434"}),Object(r.jsx)(P,{children:"\u042d\u0442\u0430\u0436"}),Object(r.jsx)(P,{even:!0,children:"\u041a\u0432\u0430\u0440\u0442\u0438\u0440\u0430 \u2116"}),Object(r.jsx)(P,{children:"\u041a\u043e\u043c\u043d\u0430\u0442"}),e.authorized&&Object(r.jsx)(r.Fragment,{children:Object(r.jsx)(P,{even:!0,children:"\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c"})})]})}function P(e){var t=e.children,n=e.even,c=N({even:n});return Object(r.jsx)(d.a,{className:c.row,children:t})}var V=n("LcVh");t.default=Object(O.a)((function(e){return{root:{color:e.palette.primary.main},container:{display:"flex"},innerContainer:{display:"flex"},title:{fontSize:20,lineHeight:1.5,fontWeight:500,textTransform:"uppercase"}}}))((function(e){var t,n=e.Router,a=e.classes,O=Object(m.i)((function(e){return e.favourites})),x=Object(m.h)((function(e){return e.favourites})),v=Object(m.i)((function(e){return e.auth})),g=Object(m.h)((function(e){return e.alert})),y=o.a.useRef(null);null===y.current&&(y.current=O.apartments);var N=Object(b.a)({method:"post",headers:v.token?{Authorization:"Bearer ".concat(v.token)}:{},url:"/genplan/placements",data:{placements:y.current}}),P=Object(c.a)(N,1)[0],k=P.data,z=P.loading,F=P.response,_=void 0===F?{}:F,R=(null!==(t=null===k||void 0===k?void 0:k.data)&&void 0!==t?t:[]).map(f.a);return Object(r.jsx)(i.a,{children:Object(r.jsxs)(s.a,{pt:3.5,pb:5,className:a.root,children:[Object(r.jsx)(d.a,{mb:3.5,children:Object(r.jsxs)(p.a,{container:!0,alignItems:"center",children:[Object(r.jsx)(p.a,{item:!0,xs:!0,children:Object(r.jsx)(d.a,{children:Object(r.jsx)(u.a,{component:"h1",className:a.title,children:"\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043a\u0432\u0430\u0440\u0442\u0438\u0440"})})}),Object(r.jsx)(p.a,{item:!0,children:Object(r.jsx)(d.a,{display:"inline-block",children:Object(r.jsx)(j.a,{color:{main:"info.dark",hover:"secondary.main",active:"secondary.main"},startIcon:Object(r.jsx)(w.B,{}),onClick:function(){return Object(V.a)(window.location,(function(){g.open({text:"\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u0443 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430"})}))},children:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f"})})})]})}),Object(r.jsx)(h.a,{children:Object(r.jsxs)(d.a,{className:a.container,mt:3,children:[!z&&Object(r.jsx)(S,{showFlatCost:!!_.showFlatCost}),Object(r.jsx)(d.a,{className:a.innerContainer,children:!z&&Object(r.jsx)(r.Fragment,{children:O.apartments.map((function(e){var t=R.find((function(t){return t.apartmentUi==e}));return void 0===t?Object(r.jsx)(T,{onRemove:function(){return x.remove(e)}},e):Object(r.jsx)(C,{apartment:t,onShow:function(){n.pushRoute("apartment",{id:t.apartmentUi})},onRemove:function(){confirm("\u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b?")&&x.remove(t.apartmentUi)}},t.apartmentUi)}))})})]})}),z&&Object(r.jsx)(l.a,{variant:"absolute",size:50})]})})}))},"R/WZ":function(e,t,n){"use strict";var r=n("wx14"),c=n("RD7I"),a=n("cNwE");t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(c.a)(e,Object(r.a)({defaultTheme:a.a},t))}},r77h:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return c}));var r=function(e){return e.map(c)},c=function(e){return{roomsCount:e.rooms,apartSquare:e.square,section:e.section,houseNo:e.buildingNumber,floor:e.floor,apartmentCost:e.cost,otherCosts:e.otherCosts?e.otherCosts:null,externalType:e.externalType,apartNumber:e.placementNumber,soldStatus:e.status,saleType:e.saleType,link:"/genplan/".concat(e.uniCode),apartmentUi:e.uniCode,planView:e.planView}}},rQ2n:function(e,t,n){"use strict";var r=n("nKUr"),c=n("cpVT"),a=n("dhJC"),o=n("hlFM"),i=n("TSYQ"),s=n.n(i),l=n("H2TA");function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?j(Object(n),!0).forEach((function(t){Object(c.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=Object(l.a)((function(e){return{root:{maxWidth:"100vw","&$flex":{display:"flex",flex:1}},flex:{}}}))((function(e){var t=e.children,n=e.flex,i=e.classes,l=e.className,j=Object(a.a)(e,["children","flex","classes","className"]);return Object(r.jsx)(o.a,u(u({mx:[2,2,5,5,5],className:s()(i.root,Object(c.a)({},i.flex,n),l)},j),{},{children:t}))}))},snyZ:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/compare",function(){return n("FAYi")}])}},[["snyZ",0,2,1,4,3,7,6,5,9,8,10,11,12]]]);
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.