1import{d as ie,an as de,a7 as ce,u as me,b as X,r as g,bo as ue,j as e,L as xe,ax as fe,bp as pe,$ as be,bq as he,br as Y,bs as ge,bt as je,X as z,h as J,m as ve}from"./index-CMqj2Al3.js";import{u as ye,C as Ne}from"./useAptTypeMap-BpW2jXY7.js";import{a as we}from"./group-duplex-apartments-t4v-4l-o.js";import{u as Ce}from"./useDuplexLayouts-DrsM70fE.js";import{a as $e}from"./apartment-url-BEQT2mPN.js";import{p as ke}from"./mobile-return-stack-BmcefHlU.js";import{A as L}from"./arrow-left-DrgORKCk.js";import{T as Se}from"./trash-2-Boob_ixo.js";import{F as _e}from"./file-text-Yip-RFl-.js";import{B as Ie}from"./building-2-BocFibHM.js";import{E as Te}from"./external-link-Ce6rNBXW.js";import{C as Ae}from"./chevron-up-CIdiK_Cn.js";const Re=ie("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);function _(n){return ve(n)}function Me(n){return n===1?"СÑÑдиÑ":n+"-комн."}const Pe=n=>n==="ÐизайнеÑÑкаÑ"?"text-orange-600 dark:text-orange-300 bg-orange-50 dark:bg-orange-500/15":"text-foreground",Ee=n=>n&&n!=="â"?"text-emerald-600 dark:text-emerald-300 bg-emerald-50 dark:bg-emerald-500/15":"text-foreground";function O({title:n,icon:i,open:m,onToggle:x,children:a}){return e.jsxs("div",{className:"mb-3 sm:mb-4 rounded-xl border border-gray-200 dark:border-white/10 overflow-hidden bg-white dark:bg-white/[0.02]",children:[e.jsxs("button",{type:"button",onClick:x,className:"w-full flex items-center justify-between py-3 px-4 text-left bg-emerald-50/60 dark:bg-white/[0.04] hover:bg-emerald-50 dark:hover:bg-white/[0.07] transition-colors",children:[e.jsxs("span",{className:"flex items-center gap-2.5",children:[e.jsx("span",{className:"w-7 h-7 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:e.jsx(i,{className:"w-4 h-4 text-primary"})}),e.jsx("span",{className:"text-base font-semibold text-foreground",children:n})]}),e.jsx(Ae,{className:`w-4 h-4 text-foreground/40 transition-transform ${m?"":"rotate-180"}`})]}),e.jsx("div",{style:{display:"grid",gridTemplateRows:m?"1fr":"0fr",transition:"grid-template-rows 0.25s ease"},children:e.jsx("div",{className:"overflow-hidden",children:a})})]})}function De({onConfirm:n,onCancel:i}){return g.useEffect(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}),[]),e.jsxs("div",{className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center","data-testid":"modal-remove-confirm",children:[e.jsx("div",{className:"absolute inset-0 bg-black/40",onClick:i,"data-testid":"modal-overlay"}),e.jsxs("div",{className:"relative bg-background rounded-t-2xl sm:rounded-2xl w-full sm:max-w-sm p-6 pb-8 animate-slide-up",children:[e.jsx("button",{type:"button",onClick:i,className:"absolute top-4 right-4 w-8 h-8 flex items-center justify-center rounded-full hover:bg-foreground
1/8 transition-colors","data-testid":"button-modal-close",children:e.jsx(z,{className:"w-4 h-4 text-foreground/40"})}),e.jsx("h2",{className:"text-xl font-semibold text-center mt-2 mb-3","data-testid":"text-modal-title",children:"ХоÑиÑе ÑдалиÑÑ Ð¾Ð±ÑÐµÐºÑ Ð¸Ð· СÑавнениÑ?"}),e.jsx("p",{className:"text-sm text-foreground/60 text-center mb-6","data-testid":"text-modal-description",children:"ÐÑли ÑдалиÑе, он пÑопадÑÑ Ð¸Ð· ваÑего Ð¿Ð¾Ð»Ñ Ð·ÑениÑ. ÐÑидÑÑÑÑ Ð¸ÑкаÑÑ ÐµÐ³Ð¾ Ñнова на ÑайÑе, еÑли заÑ
оÑеÑÑÑ Ð²ÐµÑнÑÑÑ."}),e.jsx("button",{type:"button",onClick:i,className:"w-full py-3.5 rounded-xl text-white font-medium text-base hover:opacity-90 transition-colors mb-3 bg-primary","data-testid":"button-keep",children:"Ðе ÑдалÑÑÑ"}),e.jsx("button",{type:"button",onClick:n,className:"w-full py-3.5 rounded-xl border border-border/40 text-foreground font-medium text-base hover:bg-foreground/5 transition-colors","data-testid":"button-confirm-remove",children:"УдалиÑÑ"})]})]})}function Fe({onConfirm:n,onCancel:i}){return g.useEffect(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}),[]),e.jsxs("div",{className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center","data-testid":"modal-clear-confirm",children:[e.jsx("div",{className:"absolute inset-0 bg-black/40",onClick:i,"data-testid":"modal-clear-overlay"}),e.jsxs("div",{className:"relative bg-background rounded-t-2xl sm:rounded-2xl w-full sm:max-w-sm p-6 pb-8 animate-slide-up",children:[e.jsx("button",{type:"button",onClick:i,className:"absolute top-4 right-4 w-8 h-8 flex items-center justify-center rounded-full hover:bg-foreground
1/8 transition-colors","data-testid":"button-clear-modal-close",children:e.jsx(z,{className:"w-4 h-4 text-foreground/40"})}),e.jsx("h2",{className:"text-xl font-semibold text-center mt-2 mb-3","data-testid":"text-clear-modal-title",children:"ÐÑ ÑвеÑенÑ, ÑÑо Ñ
оÑиÑе ÑдалиÑÑ Ð²Ñе кваÑÑиÑÑ Ð¸Ð· ÑÑавнениÑ?"}),e.jsx("p",{className:"text-sm text-foreground/60 text-center mb-6","data-testid":"text-clear-modal-description",children:"СпиÑок ÑÑÐ°Ð²Ð½ÐµÐ½Ð¸Ñ Ð±ÑÐ´ÐµÑ Ð¿Ð¾Ð»Ð½Ð¾ÑÑÑÑ Ð¾ÑиÑен. ÐÑо дейÑÑвие нелÑÐ·Ñ Ð¾ÑмениÑÑ."}),e.jsx("button",{type:"button",onClick:i,className:"w-full py-3.5 rounded-xl text-white font-medium text-base hover:opacity-90 transition-colors mb-3 bg-primary","data-testid":"button-clear-cancel",children:"ÐÑмена"}),e.jsx("button",{type:"button",onClick:n,className:"w-full py-3.5 rounded-xl border border-border/40 text-foreground font-medium text-base hover:bg-foreground/5 transition-colors","data-testid":"button-clear-confirm",children:"Ðа, оÑиÑÑиÑÑ"})]})]})}function c({label:n,values:i,isMobile:m,highlight:x}){return m?e.jsx("div",{className:"grid border-b border-gray-200/70 dark:border-white/10 last:border-b-0",style:{gridTemplateColumns:`repeat(${i.length}, minmax(0,1fr))`},children:i.map((a,f)=>e.jsxs("div",{className:"py-3 px-3 text-center",children:[e.jsx("div",{className:"text-[11px] text-foreground/45 mb-1",children:n}),e.jsx("span",{className:`inline-block text-sm font-medium rounded-md px-2 py-0.5 ${x?x(a):"text-foreground"}`,children:a!=null?a:"â"})]},`${n}-${f}`))}):e.jsxs("div",{className:"grid items-stretch border-b border-gray-200/70 dark:border-white/10 last:border-b-0",style:{gridTemplateColumns:`160px repeat(${i.length}, 240px)`,columnGap:"1rem"},children:[e.jsxs("div",{className:"py-3 px-4 text-sm text-foreground/55 flex items-center gap-2",children:[e.jsx("span",{className:"w-1 h-1 rounded-full bg-foreground
1/25 flex-shrink-0"}),n]}),i.map((a,f)=>e.jsx("div",{className:"py-3 px-4 flex items-center",children:e.jsx("span",{className:`text-sm font-medium rounded-md ${x?"px-2 py-0.5":""} ${x?x(a):"text-foreground"}`,children:a!=null?a:"â"})},`${n}-${f}`))]})}function V({loading:n,isMobile:i}){return e.jsx("div",{className:`w-full rounded-lg border border-dashed border-foreground/15 bg-foreground/[0.02] flex items-center justify-center ${i?"h-[110px]":"h-[180px]"} ${n?"animate-pulse":""}`,"data-testid":"duplex-layer-placeholder",children:e.jsx("span",{className:"text-[10px] sm:text-xs text-foreground/40 text-center px-2",children:n?"ÐагÑÑзка планиÑовкиâ¦":"ÐланиÑовка ÑÑÑÑа недоÑÑÑпна"})})}function Be({apt:n,fullApt:i,pricing:m,layoutSrc:x,duplex:a,duplexLoading:f,isDuplexApt:w,onRemove:l,onGoTo:P,isMobile:p}){var I;const j=a?J(a.info.apt2):J(i!=null?i:n),y=`Ðв. ${j}`,T=a?a.info.totalRooms:n.rooms,E=(I=m==null?void 0:m.area)!=null?I:a?a.info.totalArea:n.area,b=a?`ÐоÑпÑÑ ${n.house}, ÑÑажи ${a.info.floorStart}â${a.info.floorEnd}`:`ÐоÑпÑÑ ${n.house}, ÑÑаж ${n.floor}`;return e.jsxs("div",{className:"relative flex flex-col h-full rounded-xl border border-gray-200 dark:border-white/10 bg-white dark:bg-white/[0.03] p-3 sm:p-4 shadow-[0_1px_2px_rgba(0,0,0,0.03)]",children:[e.jsx("button",{type:"button",onClick:l,className:"absolute top-2.5 right-2.5 w-6 h-6 flex items-center justify-center rounded-full text-foreground/35 hover:text-foreground/70 hover:bg-foreground
1/8 transition-colors","data-testid":`button-remove-compare-${n.id}`,children:e.jsx(z,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex items-center gap-2 pr-7",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-primary flex-shrink-0"}),e.jsx("span",{className:"text-sm sm:text-base font-semibold text-foreground",children:y}),a&&e.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wide text-primary bg-primary/10 rounded px-1.5 py-0.5",children:"2 ÑÑовнÑ"})]}),e.jsxs("div",{className:"mt-1 text-xs sm:text-sm text-foreground/55",children:[Me(T),", ",E," м²"]}),e.jsx("div",{className:"text-xs sm:text-sm text-foreground/55",children:b}),m!=null&&m.isComingSoon?e.jsx("div",{className:"mt-2 text-base sm:text-lg font-bold text-primary",children:Y}):m&&m.price>0?m.dInfo.discountType!=="none"?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mt-2 text-xs sm:text-sm text-foreground/40 line-through tabular-nums",children:_(m.price)}),e.jsx("div",{className:"text-base sm:text-lg font-bold text-primary tabular-nums",children:_(m.dInfo.discountedPrice)}),e.jsx("div",{className:"mt-1.5 h-[3px] w-14 sm:w-20 rounded-full bg-primary/70"})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mt-2 text-base sm:text-lg font-bold text-foreground tabular-nums",children:_(m.price)}),e.jsx("div",{className:"mt-1.5 h-[3px] w-14 sm:w-20 rounded-full bg-primary/70"})]}):null,a?e.jsxs("div",{className:"mt-3 space-y-2",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-[10px] sm:text-[11px] font-medium text-foreground/45 text-center mb-0.5",children:"1 ÑÑÑÑ"}),e.jsx("div",{className:"flex items-center justify-center",children:a.lowerSrc?e.jsx("img",{src:a.lowerSrc,alt:`ÐланиÑовка ${y}, 1 ÑÑÑÑ`,className:`w-auto max-w-full object-contain ${p?"max-h-[110px]":"max-h-[180px]"}`}):e.jsx(V,{loading:f,isMobile:p})})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-[10px] sm:text-[11px] font-medium text-foreground/45 text-center mb-0.5",children:"2 ÑÑÑÑ"}),e.jsx("div",{className:"flex items-center justify-center",children:a.upperSrc?e.jsx("img",{src:a.upperSrc,alt:`ÐланиÑовка ${y}, 2 ÑÑÑÑ`,className:`w-auto max-w-full object-contain ${p?"max-h-[110px]":"max-h-[180px]"}`}):e.jsx(V,{loading:f,isMobile:p})})]})]}):w?e.jsx("div",{className:"mt-3 flex items-center justify-center",children:e.jsx(V,{loading:f,isMobile:p})}):e.jsx("div",{className:"mt-3 flex items-center justify-center",children:e.jsx("img",{src:x,alt:`ÐланиÑовка кв. ${j}`,className:`w-auto max-w-full object-contain ${p?"max-h-[150px]":"max-h-[260px]"}`})}),e.jsx("div",{"aria-hidden":"true",className:"flex-1 min-h-[12px]"}),e.jsxs("button",{type:"button",onClick:P,className:"w-full flex items-center justify-center gap-1.5 py-2 rounded-lg border border-primary/30 text-primary text-xs sm:text-sm font-medium hover:bg-primary/5 transition-colors","data-testid":`button-goto-apartment-${n.id}`,children:[e.jsx(Te,{className:"w-3.5 h-3.5"}),"РкваÑÑиÑе"]})]})}function Le({compareList:n,compareCount:i,clearCompare:m,removeFromCompare:x,onBack:a,showBackButton:f=!1,returnPath:w}){const l=de(),P=ye(),{getDiscountedPrice:p}=ce(),[,I]=me(),{data:j=[],isLoading:y}=X({queryKey:["/api/apartments"],staleTime:300*1e3}),{data:T,isLoading:E}=Ce(1,9,10),b=g.useMemo(()=>{const t=new Map;for(const r of j)t.set(r.id,r);return t},[j]),N=g.useMemo(()=>{const t=new Map;for(const r of n){const s=b.get(r.id);if(!s)continue;const o=we(s,j);o&&t.set(r.id,o)}return t},[n,b,j]),Z=t=>{const r=$e(t,"compare");ke(r,w?{path:w,kind:"floorplan"}:{path:"/compare",kind:"compare"},w?"compare(on floor-plan)âapartment":"compareâapartment"),I(r)},[D,F]=g.useState(null),[ee,B]=g.useState(!1),[q,te]=g.useState({general:!0,characteristics:!0,price:!0}),re=t=>{F(t)},ne=()=>{D&&(x(D),F(null))},se=()=>{F(null)},ae=()=>{m(),B(!1)},oe=n.map(t=>t.id).join(","),{data:C,isLoading:K}=X({queryKey:["/api/compare",oe],queryFn:async()=>await Promise.all(n.map(async r=>{const s=await fetch(`/api/apartments/${r.id}/details`);return s.ok?s.json():null})),enabled:n.length>0}),u=C!=null?C:n.map(()=>null),G=t=>te(r=>({...r,[t]:!r[t]})),$=g.useMemo(()=>{const t=new Map;
1return n.forEach((r,s)=>{var o,d,h,A,k,R,v,U;const H=b.get(r.id),M=N.get(r.id),S=(h=(d=(o=C==null?void 0:C[s])==null?void 0:o.apartment)!=null?d:H)!=null?h:r,W=M?M.totalPriceMillions:(A=S.price)!=null?A:r.price,Q=M?M.totalArea:(k=S.area)!=null?k:r.area,le=p({id:r.id,house:(R=S.house)!=null?R:r.house,rooms:(v=H==null?void 0:H.rooms)!=null?v:r.rooms,price:W,area:Q,status:(U=S.status)!=null?U:r.status});t.set(r.id,{price:W,area:Q,isComingSoon:ue(S),dInfo:le})}),t},[n,C,b,N,p]);return i===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-24 px-4",children:[e.jsx(Ne,{className:"w-14 h-14 text-foreground/15 mb-6"}),e.jsx("h2",{className:"text-xl font-medium mb-2",children:"СÑавнение кваÑÑиÑ"}),e.jsx("p",{className:"text-foreground/50 text-sm text-center",children:"ÐобавÑÑе кваÑÑиÑÑ ÑеÑез Ð¼ÐµÐ½Ñ Â«â¯Â» на каÑÑоÑке, ÑÑÐ¾Ð±Ñ ÑÑавниÑÑ Ð¸Ñ
Ñ
аÑакÑеÑиÑÑики"}),e.jsxs("button",{type:"button",onClick:a,className:"mt-6 inline-flex items-center gap-2 text-sm text-foreground/70 border border-foreground
1/15 px-4 py-2 rounded-md hover:bg-foreground/5 transition-colors","data-testid":"button-compare-back-empty",children:[e.jsx(L,{className:"w-4 h-4"}),"Ðазад"]})]}):e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4 pb-4 border-b border-gray-200/80 dark:border-white/10",children:[e.jsxs("div",{className:"flex items-center gap-2 sm:gap-3 min-w-0",children:[f&&e.jsx("button",{type:"button",onClick:a,"aria-label":"Ðазад",className:"-ml-1 w-9 h-9 flex items-center justify-center rounded-lg hover:bg-foreground/5 transition-colors flex-shrink-0","data-testid":"button-compare-back",children:e.jsx(L,{className:"w-5 h-5 text-foreground/70"})}),e.jsxs("h2",{className:"text-xl sm:text-2xl font-bold text-foreground truncate",children:["СÑавнение (",i,"/4)"]})]}),e.jsxs("button",{type:"button",onClick:()=>B(!0),className:"flex items-center gap-1.5 text-sm text-foreground/55 hover:text-red-500 transition-colors","data-testid":"button-clear-compare",children:[e.jsx(Se,{className:"w-4 h-4"}),"ÐÑиÑÑиÑÑ"]})]}),(K||y)&&e.jsxs("div",{className:"flex items-center justify-center py-12",children:[e.jsx(xe,{size:24}),e.jsx("span",{className:"ml-3 text-sm text-foreground/60",children:"ÐагÑÑзка даннÑÑ
..."})]}),D&&e.jsx(De,{onConfirm:ne,onCancel:se}),ee&&e.jsx(Fe,{onConfirm:ae,onCancel:()=>B(!1)}),!K&&!y&&e.jsx("div",{className:l?"":"overflow-x-auto",children:e.jsxs("div",{className:l?void 0:"w-max mx-auto",children:[e.jsxs("div",{className:"grid gap-3 sm:gap-4 mb-5",style:{gridTemplateColumns:l?`repeat(${i}, minmax(0,1fr))`:`160px repeat(${i}, 240px)`},children:[!l&&e.jsx("div",{"aria-hidden":"true"}),n.map(t=>{var r,s,o;const d=b.get(t.id),h=N.get(t.id),A=(r=fe(d!=null?d:t,P))!=null?r:pe(t.rooms);let k;if(h&&d){const v=d.duplexPairId?T==null?void 0:T.get(d.duplexPairId):void 0;k={info:h,lowerSrc:(s=v==null?void 0:v.lowerSvg)!=null?s:null,upperSrc:(o=v==null?void 0:v.upperSvg)!=null?o:null}}const R=!!(h||d!=null&&d.isDuplex||t.isDuplex);return e.jsx(Be,{apt:t,fullApt:d,pricing:$.get(t.id),layoutSrc:A,duplex:k,duplexLoading:E,isDuplexApt:R,onRemove:()=>re(t.id),onGoTo:()=>Z(d!=null?d:t),isMobile:l},t.id)})]}),e.jsxs(O,{title:"ÐбÑие даннÑе",icon:_e,open:q.general,onToggle:()=>G("general"),children:[e.jsx(c,{isMobile:l,label:"ÐÑоекÑ",values:u.map(t=>{var r,s;return(s=(r=t==null?void 0:t.building)==null?void 0:r.projectName)!=null?s:"СеÑебÑÑнÑй боÑ"})}),e.jsx(c,{isMobile:l,label:"ÐоÑпÑÑ",values:n.map(t=>`ÐоÑпÑÑ ${t.house}`)}),e.jsx(c,{isMobile:l,label:"ÐодÑезд",values:n.map(t=>{var r,s;const o=(s=(r=b.get(t.id))==null?void 0:r.entrance)!=null?s:t.entrance;return o!=null?`ÐодÑезд ${o}`:"â"})})]}),e.jsxs(O,{title:"ХаÑакÑеÑиÑÑики кваÑÑиÑÑ",icon:Ie,open:q.characteristics,onToggle:()=>G("characteristics"),children:[e.jsx(c,{isMobile:l,label:"ÐÑаж",values:u.map((t,r)=>{var s;const o=N.get(n[r].id);if(o)return`${o.floorStart}â${o.floorEnd}`;if(!t)return`${n[r].floor}`;const d=(s=t.building)==null?void 0:s.totalFloors;return d?`${t.apartment.floor} из ${d}`:`${t.apartment.floor}`})}),e.jsx(c,{isMobile:l,label:"ÐÑделка",highlight:Pe,values:n.map(t=>{var r;return be((r=b.get(t.id))!=null?r:t)})}),e.jsx(c,{isMobile:l,label:"ÐбÑÐ°Ñ Ð¿Ð»Ð¾ÑадÑ",highlight:Ee,values:u.map((t,r)=>{var s;const o=N.get(n[r].id);return`${o?o.totalArea:(s=t==null?void 0:t.apartment.area)!=null?s:n[r].area} м²`})}),e.jsx(c,{isMobile:l,label:"ÐÐ¸Ð»Ð°Ñ Ð¿Ð»Ð¾ÑадÑ",values:u.map(t=>t!=null&&t.apartment.livingArea?`${t.apartment.livingArea} м²`:null)}),e.jsx(c,{isMobile:l,label:"ÐлоÑÐ°Ð´Ñ ÐºÑÑ
ни",values:u.map(t=>t!=null&&t.apartment.kitchenArea?`${t.apartment.kitchenArea} м²`:null)}),e.jsx(c,{isMobile:l,label:"ÐомнаÑÑ",values:u.map((t,r)=>{var s;const o=N.get(n[r].id);if(o)return`${o.totalRooms}`;const d=(s=t==null?void 0:t.apartment.rooms)!=null?s:n[r].rooms,h=t==null?void 0:t.apartment.livingArea;return h?`${d} (${h} м²)`:`${d}`})}),e.jsx(c,{isMobile:l,label:"СанÑзел",values:u.map(t=>t!=null&&t.apartment.bathroomCount?`${t.apartment.bathroomCount}`:null)}),e.jsx(c,{isMobile:l,label:"Ðалкон/лоджиÑ",values:u.map(t=>{if(t!=null&&t.apartment.balconyArea)return`${t.apartment.balconyArea} м²`;if(t){const r=he(t.apartment);if(r)return r}return"â"})}),e.jsx(c,{isMobile:l,label:"ÐÑÑоÑа поÑолков",values:u.map(t=>t!=null&&t.apartment.ceilingHeight?`${t.apartment.ceilingHeight} м`:null)}),e.jsx(c,{isMobile:l,label:"Ðкна",values:u.map(t=>t!=null&&t.apartment.windowCount?`${t.apartment.windowCount}`:null)}),e.jsx(c,{isMobile:l,label:"Ðид (напÑавление)",values:u.map(t=>t==null?void 0:t.apartment.viewDirection)})]}),e.jsxs(O,{title:"СÑоимоÑÑÑ",icon:Re,open:q.price,onToggle:()=>G("price"),children:[n.some(t=>{const r=$.get(t.id);return!!r&&!r.isComingSoon&&r.dInfo.discountType!=="none"})&&e.jsx(c,{isMobile:l,label:"СÑаÑÐ°Ñ Ñена",values:n.map(t=>{const r=$.get(t.id);return!r||r.isComingSoon||r.dInfo.discountType==="none"?null:_(r.dInfo.originalPrice)})}),e.jsx(c,{isMobile:l,label:"Цена",values:n.map(t=>{const r=$.get(t.id);if(!r)return null;if(r.isComingSoon)return Y;if(r.price<=0)return null;const s=r.dInfo.discountType!=="none"?r.dInfo.discountedPrice:r.price;return _(s)})}),e.jsx(c,{isMobile:l,label:"Цена за м²",values:n.map(t=>{const r=$.get(t.id);if(!r||r.isComingSoon)return null;const s=r.dInfo.discountType!=="none"?r.dInfo.discountedPrice:r.price;return s>0&&r.area>0?ge(Math.round(s*1e6/r.area)):null})}),e.jsx(c,{isMobile:l,label:"СÑаÑÑÑ",values:u.map((t,r)=>{var s;const o=je((s=t==null?void 0:t.apartment)!=null?s:n[r]);return o==="available"?"РпÑодаже":o==="reserved"?"ÐабÑониÑована":o==="sold"?"ÐÑодана":o==="construction"?"СÑÑоиÑÑÑ":o})})]})]})})]})}export{Le as I};
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.