import{_ as n,a as l,b as h,c as m}from"./house.js";import{f as p}from"./numbers.js";import{o as a,c as i,a as s,d as v,e as d,t,f as _,n as f,_ as u}from"./index.js";const g={class:"iface-vertical-centered"},y={class:"info-card"},b={class:"info-card__head"},P=["src"],x={class:"info-card__head-data"},w={key:0,class:"house"},I={class:"title"},N={class:"span"},C={class:"text"},S={class:"span"},k={key:1,class:"biz"},z={class:"title"},W={class:"info-card__data"},V={class:"info-card__data-row"},B={class:"title"},R=s("div",{class:"text"},"Владелец",-1),T={key:0,class:"params"},A={class:"info-card__data-row"},j={class:"title"},D=s("div",{class:"text"},"Стоимость",-1),E={class:"info-card__data-row"},O={class:"title"},q=s("div",{class:"text"},"Аренда",-1),F={key:1,class:"params"},G={class:"info-card__data-row"},H={class:"title"},J=s("div",{class:"text"},"Вход",-1),K={class:"info-card__data-row"},L={class:"title"},M=s("div",{class:"text"},"Стоимость",-1);function Q(r,o,X,Y,e,c){return a(),i("div",g,[s("div",y,[s("div",b,[s("img",{class:"icon",src:e.cardIcons["/src/assets/images/info_card/"+(e.type==0?"house":"biz")+".svg"],style:v({top:e.type==0?"1.39vh":"0.46vh"})},null,12,P),s("div",x,[e.type==0?(a(),i("div",w,[s("div",I,[d("Дом"),s("div",N,"№"+t(e.name),1)]),s("div",C,[d(t(e.houseTypes[e.param]),1),s("div",S,"Комнаты: "+t(e.houseRooms),1)])])):_("",!0),e.type==1?(a(),i("div",k,[s("div",z,t(e.name),1),s("div",{class:f(["status",{closed:e.param==0}])},t(e.param==0?"Закрыто":"Открыто"),3)])):_("",!0)])]),s("div",W,[s("div",V,[s("div",B,t(e.owner.replace("_"," ")),1),R]),e.type==0?(a(),i("div",T,[s("div",A,[s("div",j,t(c.formatNumberWithSpaces(e.price))+"P",1),D]),s("div",E,[s("div",O,t(c.formatNumberWithSpaces(e.paramPrice))+"P",1),q])])):_("",!0),e.type==1?(a(),i("div",F,[s("div",G,[s("div",H,t(c.formatNumberWithSpaces(e.paramPrice))+"P",1),J]),s("div",K,[s("div",L,t(c.formatNumberWithSpaces(e.price))+"P",1),M])])):_("",!0)])])])}const U={name:"InfoCard",props:["openParams"],data(){return{cardIcons:Object.assign({"/src/assets/images/info_card/bg.svg":n,"/src/assets/images/info_card/biz.svg":l,"/src/assets/images/info_card/data-bg.svg":h,"/src/assets/images/info_card/house.svg":m}),scale:1,type:1,name:"Рыболовный магазин",owner:"Pave_Addams",price:0,paramPrice:0,param:1,houseRooms:1,houseTypes:["Эконом класс","Деревенский дом","Средний класс","Премиум класс","Элитный дом","Эконом класс","VIP класс","Квартира"]}},created(){this.$data.noAdaptation=!0,this.openParams&&this.getInfoCard(this.openParams)},methods:{formatNumberWithSpaces:p,getInfoCard(r){let o=r;this.type=o[0],this.name=o[1],this.houseRooms=o[2],this.owner=o[3],this.price=o[4],this.paramPrice=o[5],this.param=o[6]}}},es=u(U,[["render",Q]]);export{es as default};
