1import{_ as X}from"./Breadcrumbs.b161f0c8.js";import{l as L,cb as U,s as C,dq as z,x as A,a2 as R,b_ as G,o as d,z as F,w as h,b as s,c as B,F as Z,k as ee,t as T,p as te,f as se,_ as H,G as ae,S as re,H as V,q as oe,d as c,y as a,a8 as Y,a1 as $,h as S,B as w,T as x,j as ne,g as D}from"./entry.515e49cf.js";import{B as ie}from"./BuildingInfo.79535568.js";import{O as le}from"./Menu.896fa57d.js";import{P as ce,a as ue}from"./ParkingPantry.46db5af9.js";import{E as de}from"./EstatesNumber.781c1d29.js";import{_ as me}from"./MainModal.2528bf3d.js";import{s as _e}from"./objectProperties.e8ffa9f4.js";import{a as pe,u as fe}from"./useObjectChess.ab88fc47.js";import"./component.5b12484e.js";import"./nuxt-link.97959134.js";import"./SelectInput.b5caa5f9.js";import"./v-click-outside.umd.f64afbed.js";import"./TextInput.9cd9eeed.js";import"./ModalBooking.d1b3ec8a.js";import"./index.379b6a7f.js";import"./phone.f62ef548.js";import"./index.2c6a457e.js";import"./on-goal.7df20dc1.js";import"./index.d5c28450.js";import"./RadioInput.23b45f8f.js";import"./DatePickerInput.30e20831.js";import"./AddressInput.5ed89764.js";import"./debounce.548ae932.js";import"./toNumber.22c05d41.js";import"./ButtonMain.1b5a85c6.js";import"./TextArea.d0c90388.js";import"./phone.filters.63aec8ba.js";import"./useModalChess.bbcb1cc6.js";import"./client-only.1a5deae1.js";import"./FileSaver.min.afed70d3.js";import"./Map.9aaef639.js";import"./reserve.bb68a75b.js";import"./general.dec964c9.js";import"./ModalZoomedImage.2cc913e6.js";import"./usePresentation.0a061358.js";import"./useReserve.8e3cfdf5.js";import"./useRestricted.f832f64c.js";import"./useMortgages.dfefaef9.js";import"./PriceFieldCalculator.c4aa058c.js";import"./ImageWithTooltip.d28e9321.js";import"./mortgage.e958630b.js";import"./isArrayLike.234e6388.js";import"./ResultNumber.4d969d12.js";const E=y=>(te("data-v-68ae59bd"),y=y(),se(),y),be={class:"PantryModal"},ge=E(()=>s("h4",{class:"PantryModal__title"},"ÐладовÑе. ÐÑÑппиÑовка по плоÑади",-1)),ye={class:"PantryModal__wrap"},Pe={class:"table-ui PantryModal__table"},Me=E(()=>s("thead",null,[s("tr",null,[s("th",null,"ÐоÑпÑÑ"),s("th",null,"ÐлоÑадÑ, м2"),s("th",null,"â кладовой"),s("th",null,"ÐÐ°Ð·Ð¾Ð²Ð°Ñ ÑÑоимоÑÑÑ, ÑÑб."),s("th",null,"СÑоимоÑÑÑ 100%, ÑÑб.")])],-1)),Te={key:0},he={key:1},Be=E(()=>s("tr",null,[s("td",{colspan:"5"},"Ðе найдено")],-1)),ve=[Be],Ne=L({__name:"PantryModal",emits:["modalClose"],setup(y,{emit:u}){const p=U(),{pantryBuildings:m}=C(p),j=z(),{filteredPantries:v}=C(j),P=u;function N(){P("modalClose")}const f=A(()=>m.value.reduce((r,n)=>(r[n.caseId]=n.title,r),{})),I=A(()=>{const r=Object.values(v.value);return r.length?r.map(e=>({...e,buildingTitle:f.value[e.caseId]||""})).sort((e,t)=>e.buildingTitle<t.buildingTitle?-1:e.buildingTitle>t.buildingTitle?_e(e.buildingTitle,t.buildingTitle):Number(e.areaTotal)<Number(t.areaTotal)?-1:Number(e.areaTotal)>Number(t.areaTotal)?1:0).reduce((e,t)=>{const o=e[e.length-1];return!o||t.caseId!==o.caseId||Number(t.areaTotal)>o.areaMin+1?e.push({caseId:t.caseId,buildingTitle:t.buildingTitle,areaMin:Number(t.areaTotal),areaMax:Number(t.areaTotal),priceBaseMin:Number(t.sortTotalcostBase),priceBaseMax:Number(t.sortTotalcostBase),priceGrossMin:Number(t.sortTotalcost),priceGrossMax:Number(t.sortTotalcost),numbers:[t.number]}):(o.areaMax=Number(t.areaTotal),o.numbers=[...o.numbers,t.number],Number(t.sortTotalcost)<o.priceGrossMin&&(o.priceGrossMin=Number(t.sortTotalcost)),Number(t.sortTotalcostBase)>=o.priceGrossMax&&(o.priceGrossMax=Number(t.sortTotalcost)),Number(t.sortTotalcostBase)<o.priceBaseMin&&(o.priceBaseMin=Number(t.sortTotalcostBase)),Number(t.sortTotalcostBase)>=o.priceBaseMax&&(o.priceBaseMax=Number(t.sortTotalcostBase))),e},[]).map(e=>({buildingTitle:e.buildingTitle,numbers:b(e.numbers),areaRange:k([e.areaMin,e.areaMax]),priceBaseRange:_([e.priceBaseMin,e.priceBaseMax]),priceGrossRange:_([e.priceGrossMin,e.priceGrossMax])})):[]});function k([r,n]){const i=r,e=n;return i===e?`${R(i,!1,1)}`:`${R(i,!1,1)} â ${R(e,!1,1)}`}function b(r){const n=/([Ð-ЯÐа-ÑÑ]|\W+)/gi;return r.sort((i,e)=>i&&e?Number(i.replace(n,""))-Number(e.replace(n,"")):0).join(", ")}function _([r,n]){const i=r,e=n;return i===e?`${G(i)}`:`${G(i)} â ${G(e)}`}return(r,n)=>{const i=me;return d(),F(i,{onModalClose:N},{body:h(()=>[s("div",be,[ge,s("div",ye,[s("table",Pe,[Me,I.value.length?(d(),B("tbody",Te,[(d(!0),B(Z,null,ee(I.value,(e,t)=>(d(),B("tr",{key:t},[s("td",null,T(e.buildingTitle),1),s("td",null,T(e.areaRange),1),s("td",null,T(e.numbers),1),s("td",null,T(e.priceBaseRange),
11),s("td",null,T(e.priceGrossRange),1)]))),128))])):(d(),B("tbody",he,ve))])])])]),_:1})}}});const Ie=H(Ne,[["__scopeId","data-v-68ae59bd"]]),xe={class:"ObjectPantryPage"},Ce={class:"ObjectPantryPage__content"},je={class:"loader loader--first"},ke={class:"ObjectPantryPage__count"},Oe={class:"ObjectPantryPage__count__wrap"},Re=["onClick"],Ge=L({name:"ObjectPantryPage",__name:"pantry",async setup(y){let u,p;const m=ae(),j=m.params.translit,v=U(),{isLoaded:P,currentPantryBuilding:N,currentPantryCaseIds:f,pantryBuildings:I,filtersPantryBuilding:k}=C(v),b=z(),{pantryForceLoaded:_,filters:r,filteredPantries:n,sections:i,sectionList:e}=C(b);re(()=>{P.value=!0});async function t(g){r.value.sectionId&&(r.value.sectionId=null),v.setCurrentPantryCaseIds(g),await b.getPantries(g)}if(!P.value||!_.value){let l=([u,p]=V(()=>pe(j)),u=await u,p(),u).buildings.filter(M=>M.type==="pantry").map(M=>M.caseId);m.query.case_id&&l.includes(m.query.case_id)&&(l=[m.query.case_id]),P.value?_.value||t(l):(b.setPantryQueryParams(m),[u,p]=V(()=>t(l)),await u,p())}const o=oe(!1);function Q(){o.value=!0}function W(){o.value=!1}function J(g,l){b.setFilter(g,l)}const K=fe("ÐладовÑе");return(g,l)=>{var q;const M=X;return d(),B("div",xe,[c(M,{elements:a(K)},null,8,["elements"]),c(ie,{building:a(N),"case-ids":a(f)},null,8,["building","case-ids"]),c(le,{items:(q=a(N))==null?void 0:q.menu},null,8,["items"]),c(ce,{filters:a(r),"onUpdate:filters":l[0]||(l[0]=O=>Y(r)?r.value=O:null),currentCaseIds:a(f),"onUpdate:currentCaseIds":l[1]||(l[1]=O=>Y(f)?f.value=O:null),buildings:a(I),sections:a(i),type:a($).PANTRY,filterBuilding:a(k),onSetFilter:J,onGetEstates:t},null,8,["filters","currentCaseIds","buildings","sections","type","filterBuilding"]),s("div",Ce,[c(x,null,{default:h(()=>[S(s("div",je,null,512),[[w,!a(_)]])]),_:1}),s("div",ke,[c(x,null,{default:h(()=>[S(s("div",Oe,[c(de,{type:a($).PANTRY,estates:a(n)},null,8,["type","estates"]),S(s("button",{type:"button",class:"ObjectPantryPage__group",onClick:ne(Q,["stop"])}," СгÑÑппиÑоваÑÑ Ð¿Ð¾ плоÑади ",8,Re),[[w,Object.keys(a(n)).length]])],512),[[w,a(_)]])]),_:1})]),c(x,null,{default:h(()=>
1[Object.keys(a(n)).length?(d(),F(ue,{key:0,type:a($).PANTRY,"filtered-estates":a(n),sections:a(e)},null,8,["type","filtered-estates","sections"])):D("",!0)]),_:1})]),c(x,null,{default:h(()=>[o.value?(d(),F(Ie,{key:0,onModalClose:W})):D("",!0)]),_:1})])}}});const vt=H(Ge,[["__scopeId","data-v-cf5aff38"]]);export{vt 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.