Joywork/complexes/js/898c705b85334a9a.js

2 lines
43 KiB
JavaScript
Raw Normal View History

2026-05-22 20:21:54 +02:00
"use strict";(self["webpackChunkcomplexes"]=self["webpackChunkcomplexes"]||[]).push([[498],{95498:function(e,t,o){o.r(t),o.d(t,{default:function(){return Pt}});o(44114);var a=o(56768),l=o(24232),s=o(90144),n=o(69689),r=o(81387),i=o(6192),u=o(54409),c=o(45130),d="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAjElEQVR4nGNgQAL3w90V7kf6aODF4e4KDLjAowjvVQ/DfS7gwyA1uA0I8170KNz7OF4c5r1o1ADv0TAIo1cYPAzzPvEozHsvCIPZxBoAUvw4zHvPo3CftjsxgWIPvb0FH0R4lz2K8NrzJNwHZCheAxY/DfdueBLgLIwuBxIDyYHU4DTgfrw9B05JHGoAXsNDjKmJsW0AAAAASUVORK5CYII=",p="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAgklEQVR4nGNgQAL3mhnk7zWxqePFzQzyDLjAvVaW/Q/bWP/jwyA1OA142Mayg5ABIDWjBrCMhkEbvcLgAYhuZbkHwmA2sQZANd5/2MY86Xk3g9j9fgaB+y3MjffbWO48ImTAgxaW9ffbmbsf9TIIocuBxEByIDU4Dbhfz8CBUxKHGgAbFU0VlxMDqwAAAABJRU5ErkJggg==",v="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAgklEQVR4nGNgQAL2890V7Oe7aeDH7goMuIDTAo/9Tgvc/+PHHvtxGzDffafzAvf/+DBIzagB7qNhMJ9uYTAfRLvdB2Mwm1gDYBrnuU1xmu0kbrPURtBpgVuT80K3O84LPAgYsMBtg/MC9x7nhc7C6HIgMZAcSA1OA+zn23PglMShBgC09Sb7oPovSAAAAABJRU5ErkJggg==",m=o(82815),f=o(6017);const h={key:0,class:"flex flex-col items-center space-y-6 py-8 px-6 rounded-lg max-w-lg shadow-lg z-10 w-[300px] mb-5 sticky top-0 self-start p-[20px_30px_20px_30px] bg-white"},g={class:"relative w-full"},w={class:"chessTile flex flex-row w-full justify-start items-center relative"},y={style:{width:"25px"},class:"cell text-grey-900"},x={class:"row flex flex-row gap-x-2.5"},_={class:"cell text-grey-900 !w-max"},k={class:"flex"},A={class:"flex flex-col-reverse gap-y-2.5"},b=["set"],L={style:{width:"25px"},class:"cell text-grey-900"},C=["onClick"],E=["onClick"],R={style:{display:"flex","flex-direction":"column","justify-content":"space-between",height:"100%",width:"60px"}},F={style:{"text-wrap":"nowrap",overflow:"hidden","text-overflow":"ellipsis","max-width":"60px"},class:"cell__number col-start-1 row-start-2"},X={key:0,style:{display:"flex","flex-direction":"column","justify-content":"space-between",height:"100%",width:"140px"}},I={class:"flex",style:{gap:"2px"}},W={style:{display:"flex","font-size":"10px",gap:"2px"}},V={class:"cell__desc"},T={style:{"text-wrap":"nowrap",display:"flex"}},P={style:{"max-width":"100px",overflow:"hidden","text-overflow":"ellipsis","text-wrap":"nowrap"}},K={key:1,style:{display:"flex","flex-direction":"column","justify-content":"space-between",height:"100%",width:"16px",position:"relative"}},B={key:0,src:d,style:{position:"absolute",top:"-11px",right:"-4px"},alt:"",class:""},S={key:1,src:p,style:{position:"absolute",top:"-11px",right:"-4px"},alt:"",class:""},O={key:2,src:v,style:{position:"absolute",top:"-11px",right:"-4px"},alt:"",class:""},j={style:{width:"25px"},class:"cell text-grey-900"};var M={__name:"chessTile",props:{typeView:void 0|String,hiddenPrice:Boolean,openedApartment:Boolean,entrances:{type:Array,default:[]},showSmallView:Boolean},emits:["openWindow"],setup(e,{emit:t}){const o=e,n=t,r=((0,s.KR)({}),(0,s.KR)(null)),i=(0,s.KR)(),u=(0,s.KR)(null),d=(0,s.KR)(100),p=(0,s.KR)(null),v=(0,s.KR)(null),M=(0,s.KR)(null),D=(0,a.EW)((()=>o.entrances.reduce(((e,t)=>(t.floors.forEach((t=>{e.push(...t.rooms.map((e=>(e.euroPlan="european_layout"===e.layout_feature,e.studio="studio"===e.layout_feature,e.freePlane="available"===e.layout_feature,e.formatFile="pdf",e))))})),e)),[]))),Q=(0,a.EW)((()=>!o.entrances.every((e=>e.floors.every(((t,a)=>o.entrances[0].floors.length===e.floors.length&&o.entrances[0].floors[a]&&t.position==o.entrances[0].floors[a].position)))))),z=e=>{if(o.openedApartment.id&&o.openedApartment.id==e)return;const t=D.value.find((t=>t.id==e));t&&(t.inPdf=!t.inPdf)},H=(0,a.EW)((()=>{let e=0,t=0;return o.entrances.length?(o.entrances.forEach((o=>{const a=o.floors.map((e=>e.position)),l=Math.max(...a),s=Math.min(...a);s<t&&(t=s),l>e&&(e=l)})),Array(e-t+1).fill().map(((e,o)=>t+o)).filter((e=>0!==e))):[]})),$=e=>{const t=r.value,o=u.value;"chessTileTopScrollBar"===e?o.scrollLeft=t.scrollLe
//# sourceMappingURL=898c705b85334a9a.js.map