PageSourceSearch

https://zhcom.ru/_nuxt/jIEZGQTL.js

js zhcom.ru collected 2026-10-02 15:00:11 UTC 8,142 bytes, 1 lines download raw bytes

1import{c as S,b as w,f as U,e as Y,q as M,s as Q,H as J,g as K}from"./JlIhzlB1.js";import{u as X}from"./CwM8gKzu.js";import{p as Z}from"./DyDgQA6t.js";import{a as x,F as ee,T as te}from"./DB97Jvdq.js";import{y as b,G as i,W as $,V as t,R as N,a0 as u,Q as o,d as f,O as T,ae as P,z as p,$ as L,b as E,ag as se,U as oe,a6 as V,P as C}from"./QbKjMEZN.js";import{f as ae}from"./DpBu6Gv2.js";import{_ as ne}from"./DEDBD8eS.js";import"./Db6TtWwF.js";import"./C2UpkZ6X.js";import"./Dt_aP3b2.js";import"./u5bNNWfw.js";import"./RVqbkn5D.js";import"./C0rx5fBm.js";import"./C3T_hc-s.js";import"./amW2Ul-O.js";const le=["innerHTML"],re=b({__name:"FlatsName",props:{name:{default:""},image:{default:""}},setup(v){const a=v;return(c,l)=>{const g=S;return o(),i("div",{class:t(c.$style.FlatsName)},[a.image?(o(),i("div",{key:0,class:t(c.$style.imageWrapper)},[N(g,{class:t(c.$style.image),image:a.image,alt:a.name,width:554,height:454,"no-preview":"","no-lazy":""},null,8,["class","image","alt"])],2)):$("",!0),a.name?(o(),i("div",{key:1,class:t(c.$style.text)},[u("h3",{class:t(c.$style.title),innerHTML:a.name},null,10,le)],2)):$("",!0)],2)}}}),ie="_FlatsName_ab4ef_15",ce="_imageWrapper_ab4ef_20",me="_image_ab4ef_20",ue="_text_ab4ef_32",pe="_title_ab4ef_37",_e="_manager_ab4ef_45",ge={FlatsName:ie,imageWrapper:ce,image:me,text:ue,title:pe,manager:_e},de={$style:ge},ye=w(re,[["__cssModules",de]]),he=["innerHTML"],$e=["innerHTML"],fe=["innerHTML"],ve=["innerHTML"],Fe=["innerHTML"],Le=["innerHTML"],Me="Выбранные лоты",Te=b({__name:"FlatsLot",props:{list:{default:()=>[]}},setup(v){const a=v,c={title:"Объект",area:"Площадь",floor:"Этаж",price:"Стоимость*"},l=f(()=>ae(Date.now().toString(),"$d.$m.$y г.")),g=f(()=>`*Цена актуальна на ${l.value}`);return(s,F)=>(o(),i("div",{class:t(s.$style.FlatsLot)},[u("h4",{class:t(s.$style.title),innerHTML:Me},null,2),u("div",{class:t(s.$style.table)},[u("div",{class:t(s.$style.head)},[(o(),i(T,null,P(c,(_,y)=>u("div",{key:y,class:t(s.$style.headTitle),innerHTML:_},null,10,he)),64))],2),u("div",{class:t(s.$style.list)},[(o(!0),i(T,null,P(a.list,_=>(o(),i("div",{key:_.id,class:t(s.$style.row)},[u("div",{class:t(s.$style.cell)},[u("span",{class:t(s.$style.cellValue),innerHTML:_.title},null,10,$e)],2),u("div",{class:t(s.$style.cell)},[u("span",{class:t(s.$style.cellValue),innerHTML:_.area},null,10,fe)],2),u("div",{class:t(s.$style.cell)},[u("span",{class:t(s.$style.cellValue),innerHTML:_.floor},null,10,ve)],2),u("div",{class:t(s.$style.cell)},[u("span",{class:t(s.$style.cellValue),innerHTML:_.price},null,10,Fe)],2)],2))),128))],2)],2),u("p",{class:t(s.$style.actualPrice),innerHTML:p(g)},null,10,Le)],2))}}),Pe="_FlatsLot_10y98_15",we="_content_10y98_21",be="_title_10y98_25",je="_table_10y98_33",Se="_head_10y98_40",ke="_row_10y98_41",He="_headTitle_10y98_49",Ie="_list_10y98_59",De="_cell_10y98_64",Ee="_cellValue_10y98_74",Ve="_actualPrice_10y98_85",Ce={FlatsLot:Pe,content:we,title:be,table:je,head:Se,row:ke,headTitle:He,list:Ie,cell:De,cellValue:Ee,actualPrice:Ve},Ne={$style:Ce},Ae=w(Te,[["__cssModules",Ne]]),Be=["innerHTML"],Re="Новая территория будущего",qe=b({__name:"FlatsDescription",props:{tags:{default:()=>[]},description:{default:""},map:{default:""}},setup(v){const a=v,c=f(()=>a.tags.length?a.tags.map(l=>({label:l.title})):[]);return(l,g)=>{const s=ne,F=S;return o(),i("div",{class:t(l.$style.FlatsDescription)},[u("h4",{class:t(l.$style.title),innerHTML:Re},null,2),p(c).length?(o(),L(s,{key:0,class:t(l.$style.tags),color:"grey",items:p(c)},null,8,["class","items"])):$("",!0),a.description?(o(),i("div",{key:1,class:t(l.$style.description),innerHTML:a.description},null,10,Be)):$("",!0),a.map?(o(),L(F,{key:2,class:t(l.$style.image),image:a.map,width:514,height:390,"no-preview":"","no-lazy":""},null,8,["class","image"])):$("",!0)],2)}}}),ze="_FlatsDescription_wpieg_15",We="_title_wpieg_23",Ge="_tags_wpieg_33",Oe="_description_wpieg_37",Ue="_image_wpieg_46",Ye={FlatsDescription:ze,title:We,tags:Ge,description:Oe,image:Ue},Qe={$style:Ye},Je=w(qe,[["__cssModules",Qe]]),Ke=b({__name:"FlatsImages",props:{images:{default:()=>[]}},setup(v){const a=v,c=f(()=>a.images.slice(0,2)),l=f(()=>a.images[2]||null),g=f(()=>a.images.slice(3,5));return(s,F)=>{const _=S;return o(),i("div",{class:t(s.$style.FlatsImages)},[p(c).length>0?(o(),i("div",{key:0,class:t(s.$style.top)},[(o(!0),i(T,null,P(p(c),(y,h)=>(o(),L(_,{key:y.id,class:t(s.$style.image),image:y.image,alt:`image_project_${h+1}`,width:270,height:270,"no-preview":"","no-lazy":""},null,8,["class","image","alt"]))),128))],2)):$("",!0),p(l)?(o(),i("div",{key:1,class:t(s.$style.middle)},[N(_,{class:t(s.$style.image),image:p(l).image,alt:"image_project_3",width:555,height:290,"no-preview":"","no-lazy":""},null,8,["class","image"])],2)):$("",!0),p(g).length>0?(o(),i("div",{key:2,class:t(s.$style.bottom)},[(o(!0),i(T,null,P(p(g),(y,h)=>(o(),L(_,{key:y.id,class:t(s.$style.image),image:y.image,alt:`image_project_${h+4}
1`,width:h===0?335:208,height:182,"no-preview":"","no-lazy":""},null,8,["class","image","alt","width"]))),128))],2)):$("",!0)],2)}}}),Xe="_FlatsImages_1vmma_15",Ze="_top_1vmma_21",xe="_image_1vmma_27",et="_middle_1vmma_32",tt="_bottom_1vmma_42",st={FlatsImages:Xe,top:Ze,image:xe,middle:et,bottom:tt},ot={$style:st},at=w(Ke,[["__cssModules",ot]]),nt=9,lt=b({__name:"index",async setup(v){let a,c;const{$fetchData:l}=U(),g=Y(),s=g.query.ids?.toString(),F=g.query.type?.toString()||M.Flat,_=g.query.city?.toString(),y=E(null),h=E({}),A={[M.Flat]:l.properties,[M.Apartments]:l.properties,[M.Commercial]:l.commercial,[M.Parking]:l.parkingStorage,[M.Storage]:l.parkingStorage},j=X(),{data:k,error:H}=([a,c]=se(async()=>K(`getPrintFavoritesDetail-${s}`,async()=>{const[e]=await Promise.all([A[F].getResults({ids:s,type:F}).catch(()=>null),j.fetchMenuForPDF(_)]),m=[...new Set(e?.results?.map(d=>d.project.slug)??[])],n=await Promise.allSettled(m.map(d=>l.projects.getProjectPDF(d))),r={};return n.forEach((d,D)=>{d.status==="fulfilled"&&d.value&&(r[m[D]]=d.value)}),{favoriteLots:e,projects:r}})),a=await a,c(),a);H.value?Q(H.value,"[fetchFavoritesPrint/SSR] SSR request error"):(y.value=k.value.favoriteLots,h.value=k.value.projects);const B=e=>e.rooms?`${e.rooms}-комнатная кв.`:"Студия",R=e=>!e.section.floors_count||!e.floor.number?"—":`${e.floor.number} из ${e.section.floors_count}`;function q(e,m){if(!e||e.length===0)return[];const n=[];for(let r=0;r<e.length;r+=m)n.push(e.slice(r,r+m));return n}function z(e){return{id:e.id,title:B(e),area:`${e.area} м²`,floor:R(e),price:`${J(e.price)} ₽`}}const W=f(()=>j.headerMenu?.phone?Z(j.headerMenu.phone,{useAreaCode4:!!j.headerMenu?.four_number_in_city_code}):""),G=f(()=>{const e=new Map;return y.value?.results?.forEach(m=>{const n=m.project.slug;e.has(n)||e.set(n,[]),e.get(n).push(m)}),e}),I=f(()=>{const e=[];for(const[m,n]of G.value){const r=h.value[m];if(r){e.push({component:ye,projectSlug:m,props:{name:r.project_name,image:r.images[0]?.image||""}});const d=n.map(z);q(d,Math.max(1,nt)).forEach(O=>{e.push({component:Ae,projectSlug:m,props:{list:O}})}),e.push({component:Je,projectSlug:m,props:{tags:r.tags,description:r.description,map:r.map}},{component:at,projectSlug:m,props:{images:r.images}})}n.forEach(d=>{e.push({component:ee,secondComponent:x,isLot:!0,projectSlug:m,props:{lot:d,type:F}})})}return e});return(e,m)=>(o(),i("div",{class:t(e.$style.PrintFavorites)},[(o(!0),i(T,null,P(p(I),(n,r)=>(o(),L(te,{key:r,"is-header":"","is-footer":n.isLot,"current-page-number":r+1,"max-page-number":p(I).length,logo:n.projectSlug?p(h)[n.projectSlug]?.project_icon:"",name:n.projectSlug?p(h)[n.projectSlug]?.project_name:"","phone-number":p(W)},{default:oe(()=>[(o(),L(V(n.component),C({ref_for:!0},n.props),null,16)),n.secondComponent?(o(),L(V(n.secondComponent),C({key:0,ref_for:!0},n.props),null,16)):$("",!0)]),_:2},1032,["is-footer","current-page-number","max-page-number","logo","name","phone-number"]))),128))],2))}}),rt="_PrintFavorites_1fkyl_15",it={PrintFavorites:rt},ct={$style:it},Pt=w(lt,[["__cssModules",ct]]);export{Pt as default};

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.