PageSourceSearch

https://zary.mn/_next/static/chunks/9605.1ac3bbd9e3f801f4.js

js zary.mn collected 2026-10-04 23:45:35 UTC 38,460 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9605],{69605:(e,t,o)=>{o.r(t),o.d(t,{FloorPlan3D:()=>M});var n=o(78538),a=o(95155),r=o(11518),l=o.n(r),i=o(12115),s=o(43264),c=o(97431),d=o(45416),u=[[0,0],[24,0],[24,5.6],[25.25,5.6],[25.25,10.5],[24,10.5],[24,16.1],[0,16.1],[0,10.5],[-1.25,10.5],[-1.25,5.6],[0,5.6]],f=[[8.8,10.5],[15.2,10.5],[15.2,16.1],[8.8,16.1]],p=[],h=[[[10.2,12],[12.8,12],[12.8,14.2],[10.2,14.2],[10.2,12]],[[9.5,14.6],[13.5,14.6]],[[9.5,15],[13.5,15]],[[9.5,15.4],[13.5,15.4]],[[9.5,15.8],[13.5,15.8]],[[9.5,14.6],[9.5,16]],[[13.5,14.6],[13.5,16]]],b=[[[5,8],[18.9,8],[18.9,10.5],[5,10.5]]],m=[{id:"A1",label:"3 өрөө",sqm:80.41,rooms:3,type:"3BD",floors:"3–16F",color:"#1a5276",hoverColor:"#2e86c1",img:"/custom/rio_residence/4.jpg",polygon:[[0,0],[5,0],[5,5.6],[5,10.5],[5,16.1],[0,16.1],[0,10.5],[-1.25,10.5],[-1.25,5.6],[0,5.6]],interiorWalls:[[[4.1,0],[4.1,1]],[[4.1,1],[5,1]],[[0,8.1],[3.3,8.1]],[[3.3,7.2],[3.3,9.5]],[[3.2,7.2],[5,7.2]],[[4.2,9.4],[5,9.4]],[[4.2,10.5],[5,10.5]],[[3.3,10.6],[3.3,16.1]],[[3.3,12],[5,12]],[[-1.25,5.6],[-1.25,10.5]]],roomInfo:[{label:"Зочны өрөө",sqm:18.5,pos:[2,3],type:"living"},{label:"Гал тогоо",sqm:7.5,pos:[4.5,3.5],type:"kitchen"},{label:"Коридор",sqm:4.5,pos:[1.5,9.5],type:"hallway"},{label:"Угаалгын өрөө",sqm:4.2,pos:[4.2,8.3],type:"bathroom"},{label:"Ариун цэврийн өрөө",sqm:2.8,pos:[4.2,6.5],type:"bathroom"},{label:"Мастер унтлага",sqm:18,pos:[1.5,13.5],type:"bedroom"},{label:"Унтлагын өрөө",sqm:14,pos:[4.2,14],type:"bedroom"},{label:"Хүүхдийн өрөө",sqm:7.5,pos:[4.2,11],type:"bedroom"},{label:"Лоджи",sqm:6.1,pos:[-.6,8],type:"balcony"}]},{id:"B1",label:"3 өрөө",sqm:91.5,rooms:3,type:"3BD",floors:"3–6F",color:"#1e6e50",hoverColor:"#28b463",img:"/custom/rio_residence/4.jpg",polygon:[[5,0],[12.5,0],[12.5,10.5],[8.8,10.5],[8.8,16.1],[5,16.1]],interiorWalls:[[[8.7,0],[8.7,4.7]],[[6.4,3.8],[7.1,3.8]],[[7.8,3.8],[8.7,3.8]],[[6.8,6.7],[6.8,8.5]],[[6.2,8.5],[8.5,8.5]],[[10.6,5.8],[10.6,8.2]],[[11.1,5.8],[11.1,7.2]],[[10.6,7.2],[11.1,7.2]],[[9.9,8.5],[10.6,8.5]],[[6.4,10.6],[6.4,16.1]],[[5.2,12.3],[7.4,12.3]],[[8.1,12.3],[8.7,12.3]],[[6.5,10.9],[7.3,10.9]]],roomInfo:[{label:"Зочны өрөө",sqm:22,pos:[6.8,2],type:"living"},{label:"Гал тогоо",sqm:10,pos:[10.5,3],type:"kitchen"},{label:"Коридор",sqm:6,pos:[7.5,9.5],type:"hallway"},{label:"Угаалгын өрөө",sqm:4,pos:[7.5,7.5],type:"bathroom"},{label:"Ариун цэврийн өрөө",sqm:3,pos:[10.2,7],type:"bathroom"},{label:"Мастер унтлага",sqm:19,pos:[5.7,14],type:"bedroom"},{label:"Унтлагын өрөө",sqm:15,pos:[7.5,14],type:"bedroom"},{label:"Хүүхдийн өрөө",sqm:9,pos:[5.7,11.5],type:"bedroom"}]},{id:"C",label:"2 өрөө",sqm:64.75,rooms:2,type:"2BD",floors:"3–6F",color:"#6c3483",hoverColor:"#a569bd",img:"/custom/rio_residence/5.jpg",polygon:[[12.5,0],[18.9,0],[18.9,16.
11],[15.2,16.1],[15.2,10.5],[12.5,10.5]],interiorWalls:[[[15.3,0],[15.3,4.7]],[[17,3.8],[17.6,3.8]],[[15.3,3.8],[16.3,3.8]],[[17.2,6.7],[17.2,8.5]],[[15.8,8.5],[17.8,8.5]],[[13.5,5.8],[13.5,8.2]],[[12.9,5.8],[12.9,7.2]],[[12.9,7.2],[13.5,7.2]],[[15.8,8.7],[16.6,8.7]],[[17.5,10.6],[17.5,16.1]],[[16.6,12.3],[18.8,12.3]],[[15.3,12.3],[15.9,12.3]],[[17,10.9],[17.5,10.9]]],roomInfo:[{label:"Зочны өрөө",sqm:16,pos:[17,2],type:"living"},{label:"Гал тогоо",sqm:7,pos:[13.5,3],type:"kitchen"},{label:"Коридор",sqm:5,pos:[16,9.5],type:"hallway"},{label:"Угаалгын өрөө",sqm:3.5,pos:[16.5,7.5],type:"bathroom"},{label:"Ариун цэврийн өрөө",sqm:2.5,pos:[13.2,7],type:"bathroom"},{label:"Мастер унтлага",sqm:17,pos:[18.2,14],type:"bedroom"},{label:"Унтлагын өрөө",sqm:12,pos:[16.2,14],type:"bedroom"}]},{id:"A1",label:"3 өрөө",sqm:80.41,rooms:3,type:"3BD",floors:"3–16F",color:"#1a5276",hoverColor:"#2e86c1",img:"/custom/rio_residence/4.jpg",polygon:[[18.9,0],[24,0],[24,5.6],[25.25,5.6],[25.25,10.5],[24,10.5],[24,16.1],[18.9,16.
11]],interiorWalls:[[[19.9,0],[19.9,1]],[[18.9,1],[19.9,1]],[[20.7,8.1],[24,8.1]],[[20.7,7.2],[20.7,9.5]],[[18.9,7.2],[20.8,7.2]],[[18.9,9.4],[19.8,9.4]],[[18.9,10.5],[19.8,10.5]],[[20.7,10.6],[20.7,16.1]],[[18.9,12],[20.7,12]],[[25.25,5.6],[25.25,10.5]]],roomInfo:[{label:"Зочны өрөө",sqm:18.5,pos:[22,3],type:"living"},{label:"Гал тогоо",sqm:7.5,pos:[19.5,3.5],type:"kitchen"},{label:"Коридор",sqm:4.5,pos:[22.5,9.5],type:"hallway"},{label:"Угаалгын өрөө",sqm:4.2,pos:[19.8,8.3],type:"bathroom"},{label:"Ариун цэврийн өрөө",sqm:2.8,pos:[19.8,6.5],type:"bathroom"},{label:"Мастер унтлага",sqm:18,pos:[22.5,13.5],type:"bedroom"},{label:"Унтлагын өрөө",sqm:14,pos:[19.8,14],type:"bedroom"},{label:"Хүүхдийн өрөө",sqm:7.5,pos:[19.8,11],type:"bedroom"},{label:"Лоджи",sqm:6.1,pos:[24.6,8],type:"balcony"}]}];function v(e){var t=new s.ypk;t.moveTo(e[0][0],e[0][1]);for(var o=1;o<e.length;o++)t.lineTo(e[o][0],e[o][1]);return t.closePath(),t}function w(e){var t=0,o=0,a=!0,r=!1,l=void 0;try{for(var i,s=e[Symbol.iterator]();!(a=(i=s.next()).done);a=!0){var c=(0,n._)(i.value,2),d=c[0],u=c[1];t+=d,o+=u}}catch(e){r=!0,l=e}finally{try{a||null==s.return||s.return()}finally{if(r)throw l}}return[t/e.length,o/e.length]}function y(e,t,o,n,a){var r=t[0]-e[0],l=t[1]-e[1],i=Math.sqrt(r*r+l*l),c=Math.atan2(l,r),d=new s.iNn(i,o,n),u=new s._4j({color:a,roughness:.85}),f=new s.eaF(d,u);return f.position.set((e[0]+t[0])/2,o/2,-(e[1]+t[1])/2),f.rotation.y=-c,f.castShadow=!0,f}function x(e,t,o,n,a){var r=t[0]-e[0],l=t[1]-e[1],i=Math.sqrt(r*r+l*l),c=Math.atan2(l,r),d=new s.ypk;if(d.moveTo(0,0),d.lineTo(i,0),d.lineTo(i,o),d.lineTo(0,o),d.closePath(),i>2.5)for(var u=o-.25,f=Math.max(1,Math.floor((i-.18)/1.38)),p=(i-1.38*f)/2+.09,h=0;h<f;h++){var b=p+1.38*h,m=new s.wAk;m.moveTo(b,.7),m.lineTo(b+1.2,.7),m.lineTo(b+1.2,u),m.lineTo(b,u),m.closePath(),d.holes.push(m)}var v=new s.QCA(d,{depth:n,bevelEnabled:!1});v.translate(-i/2,0,-n/2);var w=new s._4j({color:a,roughness:.85}),y=new s.eaF(v,w);return y.position.set((e[0]+t[0])/2,0,-(e[1]+t[1])/2),y.rotation.y=-c,y.castShadow=!0,y.receiveShadow=!0,y}function g(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=n.fontSize,r=n.poleH,l=void 0===r?o:r,i=n.boardW,c=void 0===i?3.5:i,d=n.boardH,u=void 0===d?.8:d,f=n.bg,p=n.textColor,h=n.alpha,b=new s.YJl,m=new s.Ho_(.03,.03,l,6),v=new s._4j({color:"#888888",metalness:.6,roughness:.3}),w=new s.eaF(m,v);w.position.set(t[0],l/2,-t[1]),b.add(w);var y=Math.round(u/c*1024),x=document.createElement("canvas");x.width=1024,x.height=y;var g=x.getContext("2d");g.fillStyle=void 0===f?"#ffffff":f;var j=32;g.beginPath(),g.moveTo(j,0),g.lineTo(1024-j,0),g.quadraticCurveTo(1024,0,1024,j),g.lineTo(1024,y-j),g.quadraticCurveTo(1024,y,1024-j,y),g.lineTo(j,y),g.quadraticCurveTo(0,y,0,y-j),g.lineTo(0,j),g.quadraticCurveTo(0,0,j,0),g.closePath(),g.fill(),g.font="bold ".concat((void 0===a?36:a)*2,"px system-ui, -apple-system, sans-serif"),g.fillStyle=void 0===p?"#1a1a2e":p,g.textAlign="center",g.textBaseline="middle",g.fillText(e,512,y/2);var M=new s.GOR(x);M.anisotropy=4;var k=new s.bdM(c,u),E=new s.V9B({map:M,transparent:!0,opacity:void 0===h?.9:h,side:s.$EB,depthTest:!1}),S=new s.eaF(k,E);return S.position.set(t[0],l+u/2,-t[1]),b.add(S),{group:b,sign:S}}function j(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=o.fontSize,a=o.width,r=void 0===a?3:a,l=o.height,i=void 0===l?.7:l,c=o.bg,d=o.textColor,u=o.alpha,f=Math.round(i/r*1024),p=document.createElement("canvas");p.width=1024,p.height=f;var h=p.getContext("2d");h.fillStyle=void 0===c?"#ffffff":c;var b=32;h.beginPath(),h.moveTo(b,0),h.lineTo(1024-b,0),h.quadraticCurveTo(1024,0,1024,b),h.lineTo(1024,f-b),h.quadraticCurveTo(1024,f,1024-b,f),h.lineTo(b,f),h.quadraticCurveTo(0,f,0,f-b),h.lineTo(0,b),h.quadraticCurveTo(0,0,b,0),h.closePath(),h.fill(),h.font="bold ".concat((void 0===n?36:n)*2,"px system-ui, -apple-system, sans-serif"),h.fillStyle=void 0===d?"#1a1a2e":d,h.textAlign="center",h.textBaseline="middle",h.fillText(e,512,f/2);var m=new s.GOR(p);m.anisotropy=4;var v=new s.bdM(r,i),w=new s.V9B({map:m,transparent:!0,opacity:void 0===u?.92:u,side:s.$EB,depthTest:!1}),y=new s.eaF(v,w);return y.position.set(t[0],.35,-t[1]),y.rotation.x=-Math.PI/2,y.renderOrder=999,y.visible=!1,y}function M(){var e,t=(0,i.useRef)(null),o=(0,n._)((0,i.useState)(null),2),r=o[0],M=o[1],k=(0,n._)((0,i.useState)(null),2),E=k[0],S=k[1],T=(0,n._)((0,i.useState)("noon"),2),q=T[0],P=T[1],C=(0,n._)((0,i.useState)(!1),2),N=C[0],z=C[1],F=(0,n._)((0,i.useState)(!1),2),I=F[0],_=F[1],L=(0,n._)((0,i.useState)(!1),2),R=L[0],B=L[1],A=(0,i.useRef)(R);A.current=R;var Y=(0,i.useRef)(null),D=(0,i.useRef)(E);D.current=E;var X=(0,i.useRef)(r);X.current=r;var H=(0,i.useRef)(q);H.current=q,(0,i.useEffect)(function(){var e=function(e,t,o,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:eh,l=new s.eaF(new s.bdM(o,n),new s._4j({color:a,roughness:.9}));return l.rotation.x=-Math.PI/2,l.position.set(e,r,t),l.receiveShadow=!0,N.add(l),l},o=function(e,t,o,n,a,r,l){var i=new s.iNn(o,a,n),c=new s._4j({color:r,roughness:.85,transparent:!0,opacity:.85}),d=new s.eaF(i,c);return d.position.set(e,a/2-.25,t),d.castShadow=!0,d.receiveShadow=!0,l&&(d.userData={buildingName:l}),N.add(d),l&&eb.push(d),d},a=function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:28,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"rgba(255,255,255,0.6)",r=document.createElement("canvas"),l=r.getContext("2d");r.width=512,r.height=80,l.clearRect(0,0,512,80),l.font="bold ".concat(n,"px system-ui, -apple-system, sans-serif"),l.fillStyle=a,l.textAlign="center",l.textBaseline="middle",l.fillText(e,256,40);var i=new s.GOR(r),c=new s.RoJ({map:i,transparent:!0,depthTest:!1}),d=new s.kxk(c);d.position.set(t,1.5,o),d.scale.set(14,1.8,1),N.add(d)},r=function(e,t,o,n){var a=g(e,[t,-o],n+4-.25-4,{fontSize:44,poleH:4,boardW:5.5,boardH:1.4,alpha:1}),r=a.group,l=a.sign;N.add(r),em.push(l)},l=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=new s.eaF(ez,eF);n.position.set(e,.75*o-.25,t),n.scale.setScalar(o),N.add(n);var a=new s.eaF(eI,Math.random()>.5?e_:eL);a.position.set(e,2.5*o-.25,t),a.scale.setScalar(o),a.castShadow=!0,N.add(a)},i=function(e,t){var o=C.domElement.getBoundingClientRect();return ox.x=(e-o.left)/o.width*2-1,ox.y=-(2*((t-o.top)/o.height))+1,oy.setFromCamera(ox,I),oy.intersectObjects(og)},k=function(e,t){var o=C.domElement.getBoundingClientRect();return ox.x=(e-o.left)/o.width*2-1,ox.y=-(2*((t-o.top)/o.height))+1,oy.setFromCamera(ox,I),oy.intersectObjects(eX.children,!0)},E=function(e,t){var o=C.domElement.getBoundingClientRect();return ox.x=(e-o.left)/o.width*2-1,ox.y=-(2*((t-o.top)/o.height))+1,oy.setFromCamera(ox,I),oy.intersectObjects(eb)},T=t.current;if(T){var q=T.clientWidth,P=T.clientHeight,C=new c.JeP({antialias:!0,alpha:!0});C.setSize(q,P),C.setPixelRatio(Math.min(window.devicePixelRatio,2)),C.shadowMap.enabled=!0,C.shadowMap.type=s.Wk7,C.toneMapping=s.FV,C.toneMappingExposure=1.4,T.appendChild(C.domElement);var N=new s.Z58;N.background=new s.Q1f("#1a2a3a"),N.fog=new s.cRK("#1a2a3a",.002);var F=q<768,I=new s.ubm(38,q/P,.1,500),_=F?1.4:.9;I.position.set(12+50*_,45*_,-6+60*_);var L=new d.N(I,C.domElement);L.enableDamping=!0,L.dampingFactor=.08,L.target.set(12,6,-6),L.minDistance=15,L.maxDistance=200,L.maxPolarAngle=Math.PI/2.3,L.screenSpacePanning=!0,L.enableZoom=!0,L.touches={ONE:s.wtR.ROTATE,TWO:s.wtR.DOLLY_PAN};var R=!1,B=null;L.mouseButtons={LEFT:s.kBv.ROTATE,MIDDLE:s.kBv.PAN,RIGHT:s.kBv.PAN},L.update(),C.domElement.addEventListener("wheel",function(e){var t=Math.abs(e.deltaX)>.5*Math.abs(e.deltaY)&&Math.abs(e.deltaX)>2,o=A.current||e.ctrlKey||e.metaKey;if(t){e.preventDefault(),e.stopImmediatePropagation();var n=-(.003*e.deltaX),a=I.position.clone().sub(L.target),r=Math.cos(n),l=Math.sin(n),i=a.x*r-a.z*l,s=a.x*l+a.z*r;if(I.position.set(L.target.x+i,I.position.y,L.target.z+s),o&&Math.abs(e.deltaY)>2){var c=Math.max(15,Math.min(200,I.position.distanceTo(L.target)+.15*e.deltaY)),d=I.position.clone().sub(L.target).normalize();I.position.copy(L.target).addScaledVector(d,c)}}else if(o){e.preventDefault(),e.stopImmediatePropagation();var u=e.ctrlKey||e.metaKey?.6:.4,f=Math.max(15,Math.min(200,I.position.distanceTo(L.target)+e.deltaY*u)),p=I.position.clone().sub(L.target).normalize();I.position.copy(L.target).addScaledVector(p,f)}else e.stopImmediatePropagation()},{passive:!1,capture:!0});var W=new s.$p8(0xffffff,1.2);N.add(W);var O=new s.dth(8900331,3811866,.8);N.add(O);var V=new s.ZyN(0xfff5e0,2);V.position.set(67,35,-6),V.target.position.set(12,0,-6),V.castShadow=!0,V.shadow.mapSize.set(4096,4096),V.shadow.camera.left=-100,V.shadow.camera.right=100,V.shadow.camera.top=80,V.shadow.camera.bottom=-80,V.shadow.bias=-5e-4,N.add(V),N.add(V.target);var Q=new s.ZyN(8952268,.6);Q.position.set(-40,30,-40),N.add(Q);var G=new s.ZyN(0xaabbff,.5);G.position.set(10,25,-60),N.add(G);var J=new s.ZyN(0xffeedd,.4);J.position.set(-30,20,50),N.add(J);var Z=new s.HiM(8956637,.8,200);Z.position.set(12,35,-6),N.add(Z);var K=new s.HiM(0xddccaa,.3,150);K.position.set(12,2,24),N.add(K);var $=new s.ZyN(0xaaccee,.5);$.position.set(-38,20,-6),N.add($);var U=new s.HiM(0xccddee,.5,180);U.position.set(52,20,-36),N.add(U);var ee={morning:-Math.PI/2,noon:0,evening:Math.PI/2},et={morning:20,noon:35,evening:18},eo={morning:{color:new s.Q1f("#ffd4a0"),intensity:1.6,ambient:.9,fog:"#2a1e14"},noon:{color:new s.Q1f("#fff8e8"),intensity:2,ambient:1.2,fog:"#1a2a3a"},evening:{color:new s.Q1f("#ff9966"),intensity:1.3,ambient:.7,fog:"#1a1210"}},en=ee.noon,ea=et.noon,er=new s.eaF(new s.Gu$(1.5,16,16),new s.V9B({color:"#ffee66"}));N.add(er);var el=document.createElement("canvas");el.width=256,el.height=256;var ei=el.getContext("2d"),es=ei.createRadialGradient(128,128,0,128,128,128);es.addColorStop(0,"rgba(255, 240, 180, 0.8)"),es.addColorStop(.15,"rgba(255, 220, 120, 0.5)"),es.addColorStop(.4,"rgba(255, 200, 80, 0.15)"),es.addColorStop(1,"rgba(255, 180, 60, 0)"),ei.fillStyle=es,ei.fillRect(0,0,256,256);var ec=new s.GOR(el),ed=new s.RoJ({map:ec,transparent:!0,depthWrite:!1,blending:s.EZo}),eu=new s.kxk(ed);eu.scale.set(18,18,1),N.add(eu);var ef=((tw=document.createElement("canvas")).width=512,tw.height=512,ty=tw.getContext("2d"),ty.strokeStyle="rgba(255,255,255,0.25)",ty.lineWidth=2,ty.beginPath(),ty.arc(256,256,194.56,0,2*Math.PI),ty.stroke(),ty.beginPath(),ty.arc(256,256,29.183999999999997,0,2*Math.PI),ty.stroke(),ty.strokeStyle="rgba(255,255,255,0.12)",ty.lineWidth=1,ty.beginPath(),ty.moveTo(256,61.44),ty.lineTo(256,450.56),ty.moveTo(61.44,256),ty.lineTo(450.56,256),ty.stroke(),tx=136.19199999999998,ty.beginPath(),ty.moveTo(256-tx,256-tx),ty.lineTo(256+tx,256+tx),ty.moveTo(256+tx,256-tx),ty.lineTo(256-tx,256+tx),ty.stroke(),ty.fillStyle="rgba(220,80,80,0.7)",ty.beginPath(),ty.moveTo(442.56,256),ty.lineTo(408.56,242),ty.lineTo(408.56,270),ty.closePath(),ty.fill(),ty.font="bold 40px system-ui, -apple-system, sans-serif",ty.textAlign="center",ty.textBaseline="middle",ty.fillStyle="rgba(220,80,80,0.8)",ty.fillText("Х",474.56,256),ty.fillStyle="rgba(255,255,255,0.5)",ty.fillText("У",37.44,256),ty.fillText("З",256,37.44),ty.fillText("Б",256,474.56),tg=new s.GOR(tw),tj=new s.bdM(8,8),tM=new s.V9B({map:tg,transparent:!0,side:s.$EB}),(tk=new s.eaF(tj,tM)).rotation.x=-Math.PI/2,tk);ef.position.set(5,.03,10),ef.rotation.z=Math.PI,N.add(ef);var ep=new s.eaF(new s.bdM(300,200),new s._4j({color:"#2a3228",roughness:.95}));ep.rotation.x=-Math.PI/2,ep.position.set(12,-.26,-6),ep.receiveShadow=!0,N.add(ep);var eh=-.24,eb=[],em=[],ev=[],ew=[],ey=[],ex={};e(12,-6,40,22,"#2e3430"),e(-25,-6,10,80,"#333842");for(var eg=new s.bdM(.3,4),ej=new s.V9B({color:"#555a60",transparent:!0,opacity:.5}),eM=-50;eM<40;eM+=8){var ek=new s.eaF(eg,ej);ek.rotation.x=-Math.PI/2,ek.position.set(-25,eh+.01,eM),N.add(ek)}e(0,-38,80,8,"#333842");for(var eE=new s.bdM(4,.3),eS=-35;eS<55;eS+=8){var eT=new s.eaF(eE,ej);eT.rotation.x=-Math.PI/2,eT.position.set(eS,eh+.01,-38),N.add(eT)}var eq=new s.ypk;eq.moveTo(-50,0),eq.bezierCurveTo(-30,-3,-10,2,10,-1),eq.bezierCurveTo(30,-4,50,1,80,-2),eq.lineTo(80,-12),eq.bezierCurveTo(50,-9,30,-14,10,-11),eq.bezierCurveTo(-10,-8,-30,-13,-50,-10),eq.closePath();var eP=new s.MSw(eq),eC=new s._4j({color:"#1a4a6a",roughness:.3,metalness:.2,transparent:!0,opacity:.8}),eN=new s.eaF(eP,eC);eN.rotation.x=-Math.PI/2,eN.rotation.z=Math.PI/2,eN.position.set(85,eh+.02,-3),N.add(eN),a("Туул гол",88,-6,32,"rgba(120,180,220,0.7)"),e(72,-6,3,90,"#3a3a30"),a("\uD83D\uDEB4 Зам",72,19,26,"rgba(255,255,255,0.45)"),e(66,-6,8,70,"#253020");for(var ez=new s.Ho_(.15,.2,1.5,6),eF=new s._4j({color:"#3d2e1e"}),eI=new s.qFE(1.2,2.5,6),e_=new s._4j({color:"#1e4a20",roughness:.9}),eL=new s._4j({color:"#2a5a28",roughness:.9}),eR=-40;eR<30;eR+=5+3*Math.random())l(64+4*Math.random(),eR,.7+.5*Math.random());for(var eB=-35;eB<25;eB+=7+4*Math.random())l(-18+2*Math.random(),eB,.6+.3*Math.random());o(45,-65,30,16,6,"#2a2e38","Misheel Expo"),r("Misheel Expo",45,-65,6),o(25,-50,14,8,4,"#2c3035","LAVAI Center"),r("LAVAI Center",25,-50,4),o(-38,-48,5,3.5,2,"#2e3038","Design Central"),r("Design Central",-38,-48,2),o(-38,-56,12,10,4,"#2c2e36","Tout'en"),r("Tout'en",-38,-56,4),o(12,22,16,12,5,"#283028","Rio Residence 1"),r("Rio Residence 1",12,22,5),o(-38,22,8,6,3,"#2a2e32","MSM Group"),r("MSM Group",-38,22,3);var eA=new s.rKP(3,5,24),eY=new s._4j({color:"#383e44",roughness:.9,side:s.$EB}),eD=new s.eaF(eA,eY);eD.rotation.x=-Math.PI/2,eD.position.set(-35,eh+.02,35),N.add(eD),a("Тойрог",-35,42);var eX=new s.YJl,eH=v(u),eW=new s.QCA(eH,{depth:.25,bevelEnabled:!1});eW.rotateX(-Math.PI/2);for(var eO=new s._4j({color:"#1a1a1e",roughness:.9,transparent:!0}),eV="#a09888",eQ=0;eQ<16;eQ++){var eG=3.05*eQ,eJ=new s.eaF(eW,eO.clone());eJ.position.y=eG,eJ.receiveShadow=!0,eJ.castShadow=!0,eX.add(eJ);for(var eZ=0;eZ<u.length;eZ++){var eK=x(u[eZ],u[(eZ+1)%u.length],2.8,.15,eV);eK.position.y+=eG+.25,eK.material.transparent=!0,eX.add(eK);var e$=u[eZ],eU=u[(eZ+1)%u.length],e0=eU[0]-e$[0],e1=eU[1]-e$[1],e2=Math.sqrt(e0*e0+e1*e1);if(e2>3){var e5=new s.iNn(e2,.15,.18),e3=new s._4j({color:"#7a3040",roughness:.7,transparent:!0}),e6=new s.eaF(e5,e3);e6.position.set((e$[0]+eU[0])/2,eG+.25+.08,-(e$[1]+eU[1])/2),e6.rotation.y=-Math.atan2(e1,e0),eX.add(e6)}}}var e4=new s.eaF(eW,eO.clone());e4.position.y=48.8,e4.receiveShadow=!0,eX.add(e4);var e9=48.8,e8=new s.iNn(2.2,e9,.3),e7=new s._4j({color:"#6a2535",roughness:.6,transparent:!0}),te=new s.eaF(e8,e7.clone());te.position.set(19,e9/2,.1),eX.add(te);var tt=new s.eaF(e8,e7.clone());tt.position.set(14,e9/2,.1),eX.add(tt);var to=new s.eaF(e8,e7.clone());to.position.set(19,e9/2,-12.1),eX.add(to);var tn=new s.eaF(e8,e7.clone());tn.position.set(14,e9/2,-12.1),eX.add(tn),N.add(eX);var ta=new s.YJl;ta.visible=!1,N.add(ta);var tr=new s.QCA(v(u),{depth:.25,bevelEnabled:!1});tr.rotateX(-Math.PI/2);var tl=new s.eaF(tr,new s._4j({color:"#2a2a40",roughness:.9}));
1tl.position.y=-.25,tl.receiveShadow=!0,ta.add(tl);for(var ti=[],ts=0;ts<u.length;ts++){var tc=x(u[ts],u[(ts+1)%u.length],2.8,.15,eV);tc.material.transparent=!0,tc.material.opacity=.6,ti.push(tc),ta.add(tc)}for(var td=0,tu=[f,p];td<tu.length;td++){var tf=tu[td];if(!(tf.length<3)){var tp=new s.QCA(v(tf),{depth:.12,bevelEnabled:!1});tp.rotateX(-Math.PI/2),ta.add(new s.eaF(tp,new s._4j({color:"#2e2e48"})).translateY(.01));for(var th=0;th<tf.length;th++)ta.add(y(tf[th],tf[(th+1)%tf.length],1.54,.15,"#d4ccc0"))}}var tb=!0,tm=!1,tv=void 0;try{for(var tw,ty,tx,tg,tj,tM,tk,tE,tS=h[Symbol.iterator]();!(tb=(tE=tS.next()).done);tb=!0)for(var tT=tE.value,tq=0;tq<tT.length-1;tq++){var tP=y(tT[tq],tT[tq+1],.12,.06,"#555566");tP.material.transparent=!0,tP.material.opacity=.5,tP.position.y=.06,ta.add(tP)}}catch(e){tm=!0,tv=e}finally{try{tb||null==tS.return||tS.return()}finally{if(tm)throw tv}}for(var tC=0,tN=[["Цахилгаан шат",[21.5,9.5]],["Шат",[22,12.5]],["Цахилгаан шат",[34.5,9.5]],["Шат",[34,12.5]]];tC<tN.length;tC++){var tz=(0,n._)(tN[tC],2),tF=tz[0],tI=tz[1],t_=g(tF,tI,.1,{fontSize:28,poleH:4.5,boardW:2.8,boardH:.55,alpha:1}),tL=t_.group,tR=t_.sign;ta.add(tL),em.push(tR),ev.push(tL);var tB=j(tF,tI,{fontSize:26,width:2.8,height:.55});ta.add(tB),ew.push(tB)}var tA=!0,tY=!1,tD=void 0;try{for(var tX,tH=b[Symbol.iterator]();!(tA=(tX=tH.next()).done);tA=!0){var tW=tX.value,tO=new s.QCA(v(tW),{depth:.05,bevelEnabled:!1});tO.rotateX(-Math.PI/2),ta.add(new s.eaF(tO,new s._4j({color:"#303050",transparent:!0,opacity:.7})).translateY(.01))}}catch(e){tY=!0,tD=e}finally{try{tA||null==tH.return||tH.return()}finally{if(tY)throw tD}}var tV=[],tQ=!0,tG=!1,tJ=void 0;try{for(var tZ,tK=m[Symbol.iterator]();!(tQ=(tZ=tK.next()).done);tQ=!0){var t$=tZ.value,tU=new s.QCA(v(t$.polygon),{depth:.05,bevelEnabled:!1});tU.rotateX(-Math.PI/2);var t0=new s._4j({color:t$.color,transparent:!0,opacity:.75,roughness:.6}),t1=new s.eaF(tU,t0);t1.position.y=.02,t1.userData={unitId:t$.id},t1.receiveShadow=!0,ta.add(t1);var t2=new s.YJl;t2.scale.y=.01;var t5=!0,t3=!1,t6=void 0;try{for(var t4,t9=t$.interiorWalls[Symbol.iterator]();!(t5=(t4=t9.next()).done);t5=!0){var t8=t4.value;t2.add(y(t8[0],t8[1],1.9599999999999997,.08,"#bfb5a5"))}}catch(e){t3=!0,t6=e}finally{try{t5||null==t9.return||t9.return()}finally{if(t3)throw t6}}var t7=new s.YJl;t7.visible=!1,ex[t$.id]=[];var oe=!0,ot=!1,oo=void 0;try{for(var on,oa=t$.roomInfo[Symbol.iterator]();!(oe=(on=oa.next()).done);oe=!0){var or=on.value,ol="balcony"===or.type?or.label:"".concat(or.label),oi=g("".concat(ol,"  ").concat(or.sqm,"м\xb2"),or.pos,.01,{fontSize:"balcony"===or.type?26:30,poleH:4.116,boardW:3.2,boardH:.6,alpha:1}),os=oi.group,oc=oi.sign;t7.add(os),em.push(oc),ev.push(os);var od=j("".concat(ol,"  ").concat(or.sqm,"м\xb2"),or.pos,{fontSize:"balcony"===or.type?24:28,width:3,height:.55});ta.add(od),ex[t$.id].push(od)}}catch(e){ot=!0,oo=e}finally{try{oe||null==oa.return||oa.return()}finally{if(ot)throw oo}}t2.add(t7);var ou=w(t$.polygon),of=g(t$.id,ou,.01,{fontSize:44,poleH:7.56,boardW:2.2,boardH:.7,alpha:1}),op=of.group,oh=of.sign;t2.add(op),em.push(oh),ev.push(op);var ob=j(t$.id,ou,{fontSize:40,width:2.2,height:.7});if(ta.add(ob),ey.push(ob),t$.roomInfo.some(function(e){return"entry"===e.type})){var om=t$.roomInfo.find(function(e){return"entry"===e.type});t2.add(function(e,t){var o=new s.rKP(0,.8,16,1,0,Math.PI/2),n=new s.V9B({color:"#ffffff",transparent:!0,opacity:.15,side:s.$EB}),a=new s.eaF(o,n);return a.position.set(e[0],.05,-e[1]),a.rotation.x=-Math.PI/2,a.rotation.z=0,a}(om.pos,0))}ta.add(t2),tV.push({unit:t$,floor:t1,walls:t2,roomLabels:t7,scale:.01})}}catch(e){tG=!0,tJ=e}finally{try{tQ||null==tK.return||tK.return()}finally{if(tG)throw tJ}}var ov=!1,ow=0,oy=new s.tBo,ox=new s.I9Y,og=tV.map(function(e){return e.floor}),oj=null,oM=null,ok=!1,oE=0,oS=new s.Q1f,oT=F?1.4:.9,oq=new s.Pq0(12+50*oT,45*oT,-6+60*oT),oP=new s.Pq0(12,10,-6),oC=new s.Pq0(37,28,29),oN=new s.Pq0(12,0,-6),oz=!1,oF=0,oI=u.length+1;(function e(){oE=requestAnimationFrame(e),L.update();var t=null!==X.current||null!==D.current,o=!0,n=!1,a=void 0;try{for(var r,l=em[Symbol.iterator]();!(o=(r=l.next()).done);o=!0){var i=r.value;i.lookAt(I.position.x,i.position.y,I.position.z)}}catch(e){n=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(n)throw a}}var c=I.position.clone().sub(L.target),d=.55>Math.atan2(Math.sqrt(c.x*c.x+c.z*c.z),c.y),f=!0,p=!1,h=void 0;try{for(var b,m=ev[Symbol.iterator]();!(f=(b=m.next()).done);f=!0)b.value.visible=!d}catch(e){p=!0,h=e}finally{try{f||null==m.return||m.return()}finally{if(p)throw h}}var v=!0,y=!1,x=void 0;try{for(var g,j=ew[Symbol.iterator]();!(v=(g=j.next()).done);v=!0)g.value.visible=d}catch(e){y=!0,x=e}finally{try{v||null==j.return||j.return()}finally{if(y)throw x}}var M=!0,k=!1,E=void 0;try{for(var S,T=ey[Symbol.iterator]();!(M=(S=T.next()).done);M=!0)S.value.visible=d}catch(e){k=!0,E=e}finally{try{M||null==T.return||T.return()}finally{if(k)throw E}}var q=!0,P=!1,z=void 0;try{for(var F,_=tV[Symbol.iterator]();!(q=(F=_.next()).done);q=!0){var R=F.value,B=ex[R.unit.id];if(B){var A=R.unit.id===D.current,Y=!0,O=!1,Q=void 0;try{for(var G,J=B[Symbol.iterator]();!(Y=(G=J.next()).done);Y=!0)G.value.visible=d&&A}catch(e){O=!0,Q=e}finally{try{Y||null==J.return||J.return()}finally{if(O)throw Q}}}}}catch(e){P=!0,z=e}finally{try{q||null==_.return||_.return()}finally{if(P)throw z}}if(oz){oF=Math.min(1,oF+.014);
1for(var Z=.055,K=0;K<16;K++)for(var $=Math.max(0,Math.min(1,(oF-K*Z)/.12)),U=1-(1-$)*(1-$),el=0;el<oI;el++){var ei=K*oI+el;if(ei>=eX.children.length)break;var es=eX.children[ei];if(es.material&&(es.material.opacity=U),0===el){var ec=3.05*K;es.position.y=ec-(1-U)*3}}for(var ed=16*oI,ef=Math.max(0,Math.min(1,(oF-16*Z)/.12)),ep=1-(1-ef)*(1-ef),eh=ed;eh<eX.children.length;eh++){var eb=eX.children[eh];eb.material&&(eb.material.opacity=ep)}if(I.position.lerp(oq,.02),L.target.lerp(oP,.02),oF>=1){oz=!1,eX.children.forEach(function(e){e.material&&(e.material.opacity=1)});for(var eg=0;eg<16;eg++){var ej=eg*oI;ej<eX.children.length&&(eX.children[ej].position.y=3.05*eg)}}}if(ov&&(ow=Math.min(1,ow+.02)),ow>0&&ow<=1){for(var eM=ow,ek=eX.children,eE=ek.length,eS=0;eS<eE;eS++){var eT=ek[eS],eq=Math.floor(eS/(u.length+1)),eP=3.05*eq+eM*(eq-7)*8;eS%(u.length+1)==0&&(eT.position.y=eP),eT.material&&(eT.material.opacity=Math.max(0,1-1.5*eM))}eM>.3&&!ta.visible&&(ta.visible=!0),eM>=1&&(eX.visible=!1),eM<1&&(I.position.lerp(oC,.03),L.target.lerp(oN,.03))}if(ov&&ow>=1&&D.current){var eC="unit:".concat(D.current);if(oM!==eC&&(oM=eC,ok=!1),!ok){var eN=tV.find(function(e){return e.unit.id===D.current});if(eN){var ez=w(eN.unit.polygon),eF=new s.Pq0(ez[0],1,-ez[1]),eI=new s.Pq0(ez[0]+12,14,-ez[1]+14);I.position.distanceTo(eI)>1?(I.position.lerp(eI,.04),L.target.lerp(eF,.04)):ok=!0}}}else!D.current&&(null==oM?void 0:oM.startsWith("unit:"))&&(oM=null,ok=!1);oj&&(I.position.distanceTo(oj.camPos)>1?(I.position.lerp(oj.camPos,.04),L.target.lerp(oj.lookAt,.04)):oj=null);var e_=t?.08:.6,eL=!0,eR=!1,eB=void 0;try{for(var eA,eY=ti[Symbol.iterator]();!(eL=(eA=eY.next()).done);eL=!0){var eD=eA.value.material;eD.opacity+=(e_-eD.opacity)*.1}}catch(e){eR=!0,eB=e}finally{try{eL||null==eY.return||eY.return()}finally{if(eR)throw eB}}var eH=!0,eW=!1,eO=void 0;try{for(var eV,eQ=tV[Symbol.iterator]();!(eH=(eV=eQ.next()).done);eH=!0){var eG=eV.value,eJ=eG.unit.id===X.current||eG.unit.id===D.current,eZ=eG.unit.id===D.current,eK=eJ?1:.01;eG.scale+=(eK-eG.scale)*.1,eG.walls.scale.y=eG.scale,eG.roomLabels.visible=eZ;var e$=eG.floor.material;oS.set(eJ?eG.unit.hoverColor:eG.unit.color),e$.color.lerp(oS,.12),e$.opacity+=((eJ?1:.75)-e$.opacity)*.12}}catch(e){eW=!0,eO=e}finally{try{eH||null==eQ.return||eQ.return()}finally{if(eW)throw eO}}var eU=eo[H.current],e0=ee[H.current],e1=et[H.current];en+=(e0-en)*.04,ea+=(e1-ea)*.04,V.position.set(12+55*Math.cos(en),ea,-6+55*Math.sin(en)),V.color.lerp(eU.color,.04),V.intensity+=(eU.intensity-V.intensity)*.04,W.intensity+=(eU.ambient-W.intensity)*.04;var e2=new s.Pq0(12,30,-6),e5=V.position.clone().sub(e2).normalize();er.position.copy(e2).addScaledVector(e5,80),er.material.color.copy(V.color),eu.position.copy(er.position);var e3=new s.Q1f(eU.fog);N.fog.color.lerp(e3,.04),N.background.lerp(e3,.04),C.render(N,I)})(),Y.current=function(){oz=!0,oF=0,ov=!1,ow=0,eX.visible=!0,eX.children.forEach(function(e){e.material&&(e.material.opacity=0)}),ta.visible=!1,X.current=null,M(null),D.current=null,S(null),z(!1),oM=null,ok=!1,oj=null};var o_=function(e){var t=E(e.clientX,e.clientY);if(!ov){var o=k(e.clientX,e.clientY);C.domElement.style.cursor=o.length>0||t.length>0?"pointer":"grab";return}var n=i(e.clientX,e.clientY);n.length>0?(X.current=n[0].object.userData.unitId,M(X.current),C.domElement.style.cursor="pointer"):t.length>0?(X.current=null,M(null),C.domElement.style.cursor="pointer"):(X.current=null,M(null),C.domElement.style.cursor="grab")},oL=function(e){var t=E(e.clientX,e.clientY);if(t.length>0){var o=t[0].object.position;oj={camPos:new s.Pq0(o.x+15,o.y+12,o.z+18),lookAt:o.clone()};return}if(!ov){k(e.clientX,e.clientY).length>0&&(ov=!0,z(!0));return}var n=i(e.clientX,e.clientY);if(n.length>0){var a=n[0].object.userData.unitId;D.current===a?(D.current=null,S(null)):(D.current=a,S(a))}else D.current=null,S(null)};C.domElement.addEventListener("mousemove",o_);var oR=null,oB=0,oA=function(e){Date.now()-oB<500||(oR={x:e.clientX,y:e.clientY})},oY=function(e){if(oR){var t=e.clientX-oR.x,o=e.clientY-oR.y;oR=null,5>Math.sqrt(t*t+o*o)&&oL(e)}};C.domElement.addEventListener("mousedown",oA),C.domElement.addEventListener("mouseup",oY);var oD=function(e){e.touches.length>=2?(R=!0,B=null):1!==e.touches.length||R||(B={x:e.touches[0].clientX,y:e.touches[0].clientY,time:Date.now()})},oX=function(e){if(oB=Date.now(),!(e.touches.length>0)){if(R){R=!1,B=null;return}if(B){var t=e.changedTouches[0],o=t.clientX-B.x,n=t.clientY-B.y,a=Date.now()-B.time;if(B=null,!(Math.sqrt(o*o+n*n)>10)&&!(a>300)){var r=E(t.clientX,t.clientY);if(r.length>0){var l=r[0].object.position;oj={camPos:new s.Pq0(l.x+15,l.y+12,l.z+18),lookAt:l.clone()};return}if(!ov){k(t.clientX,t.clientY).length>0&&(ov=!0,z(!0));return}var c=i(t.clientX,t.clientY);if(c.length>0){var d=c[0].object.userData.unitId;X.current=d,M(d),D.current===d?(D.current=null,S(null)):(D.current=d,S(d))}else X.current=null,M(null),D.current=null,S(null)}}}};C.domElement.addEventListener("touchstart",oD,{passive:!0}
1),C.domElement.addEventListener("touchend",oX);var oH=function(){var e=T.clientWidth,t=T.clientHeight;I.aspect=e/t,I.updateProjectionMatrix(),C.setSize(e,t)};return window.addEventListener("resize",oH),function(){cancelAnimationFrame(oE),C.domElement.removeEventListener("mousemove",o_),C.domElement.removeEventListener("mousedown",oA),C.domElement.removeEventListener("mouseup",oY),C.domElement.removeEventListener("touchstart",oD),C.domElement.removeEventListener("touchend",oX),window.removeEventListener("resize",oH),L.dispose(),C.dispose(),T.contains(C.domElement)&&T.removeChild(C.domElement)}}},[]),(0,i.useEffect)(function(){if(R){var e=window.scrollY;return document.body.style.position="fixed",document.body.style.top="-".concat(e,"px"),document.body.style.left="0",document.body.style.right="0",document.body.style.overflow="hidden",setTimeout(function(){return window.dispatchEvent(new Event("resize"))},50),function(){document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.overflow="",window.scrollTo(0,e)}}},[R]),(0,i.useEffect)(function(){if(R){var e=function(e){"Escape"===e.key&&B(!1)};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}},[R]);var W=E&&null!=(e=m.find(function(e){return e.id===E}))?e:null,O=(0,i.useRef)(W);W&&(O.current=W);var V=null!=W?W:O.current,Q=!!W&&!I;return(0,i.useEffect)(function(){E&&_(!1)},[E]),(0,a.jsxs)("div",{className:"jsx-97f226903cbff71b "+((R?"fixed inset-0 z-50 flex select-none flex-col bg-black":"relative select-none")||""),children:[(0,a.jsx)("div",{ref:t,className:"jsx-97f226903cbff71b "+((R?"w-full flex-1 overflow-hidden":"h-[400px] w-full overflow-hidden md:h-[750px]")||"")}),(0,a.jsx)("div",{className:"jsx-97f226903cbff71b absolute bottom-6 left-1/2 -translate-x-1/2",children:N?(0,a.jsx)("button",{type:"button",onClick:function(){var e;return null==(e=Y.current)?void 0:e.call(Y)},className:"jsx-97f226903cbff71b cursor-pointer rounded-full bg-black/60 px-5 py-2 text-sm text-white/70 backdrop-blur-sm transition-all hover:bg-black/80 hover:text-white",children:"Барилга харах"}):(0,a.jsx)("div",{className:"jsx-97f226903cbff71b animate-pulse whitespace-nowrap rounded-full bg-black/60 px-5 py-2 text-center text-sm text-white/70 backdrop-blur-sm",children:"Барилга дээр дарж давхрын планыг харна уу"})}),(0,a.jsxs)("div",{className:"jsx-97f226903cbff71b absolute right-3 top-3 flex items-center gap-2",children:[R?(0,a.jsxs)("button",{type:"button",onClick:function(){return B(!1)},className:"jsx-97f226903cbff71b flex cursor-pointer items-center gap-2 rounded-lg bg-white/10 px-3.5 py-2 text-xs font-medium text-white backdrop-blur-sm transition-all hover:bg-white/20",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"jsx-97f226903cbff71b size-4",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25",className:"jsx-97f226903cbff71b"})}),"Жижигрүүлэх"]}):(0,a.jsxs)("button",{type:"button",onClick:function(){return B(!0)},className:"jsx-97f226903cbff71b group flex animate-[fullscreen-pulse_2.5s_ease-in-out_infinite] cursor-pointer items-center gap-2 rounded-lg border border-white/20 bg-white/10 px-3.5 py-2 text-xs font-medium text-white backdrop-blur-sm transition-all hover:border-white/40 hover:bg-white/20",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"jsx-97f226903cbff71b size-4 transition-transform group-hover:scale-110",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M2
10.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15",className:"jsx-97f226903cbff71b"})}),"Томоор харах"]}),(0,a.jsx)("div",{className:"jsx-97f226903cbff71b flex rounded-lg bg-black/60 p-1 backdrop-blur-sm",children:[{key:"morning",label:"Өглөө",icon:"\uD83C\uDF05"},{key:"noon",label:"Өдөр",icon:"☀️"},{key:"evening",label:"Орой",icon:"\uD83C\uDF07"}].map(function(e){return(0,a.jsxs)("button",{type:"button",onClick:function(){return P(e.key)},className:"jsx-97f226903cbff71b "+"cursor-pointer rounded-md px-3 py-1.5 text-xs font-medium transition-all ".concat(q===e.key?"bg-white/20 text-white shadow-sm":"text-white/50 hover:text-white/80"),children:[(0,a.jsx)("span",{className:"jsx-97f226903cbff71b mr-1",children:e.icon}),e.label]},e.key)})})]}),R&&(0,a.jsxs)("div",{className:"jsx-97f226903cbff71b absolute left-3 top-3 z-30 hidden flex-wrap gap-2 md:flex",children:[(0,a.jsx)("span",{className:"jsx-97f226903cbff71b rounded-full border border-white/10 bg-black/50 px-3 py-1 text-xs text-white/40 backdrop-blur-sm",children:"Чирэх — Эргүүлэх"}),(0,a.jsx)("span",{className:"jsx-97f226903cbff71b rounded-full border border-white/10 bg-black/50 px-3 py-1 text-xs text-white/40 backdrop-blur-sm",children:"Ctrl+Scroll / Pinch — Томруулах"}),(0,a.jsx)("span",{className:"jsx-97f226903cbff71b rounded-full border border-white/10 bg-black/50 px-3 py-1 text-xs text-white/40 backdrop-blur-sm",children:"Right-click чирэх — Зөөх"}),(0,a.jsx)("span",{className:"jsx-97f226903cbff71b rounded-full border border-white/10 bg-black/50 px-3 py-1 text-xs text-white/40 backdrop-blur-sm",children:"Дарах — Мэдээлэл харах"})]}),(0,a.jsx)(l(),{id:"97f226903cbff71b",children:"@-webkit-keyframes fullscreen-pulse{0%,100%{-webkit-box-shadow:0 0 0 0 rgba(255,255,255,.3);box-shadow:0 0 0 0 rgba(255,255,255,.3)}50%{-webkit-box-shadow:0 0 12px 3px rgba(255,255,255,.15);box-shadow:0 0 12px 3px rgba(255,255,255,.15)}}@-moz-keyframes fullscreen-pulse{0%,100%{-moz-box-shadow:0 0 0 0 rgba(255,255,255,.3);box-shadow:0 0 0 0 rgba(255,255,255,.3)}50%{-moz-box-shadow:0 0 12px 3px rgba(255,255,255,.15);box-shadow:0 0 12px 3px rgba(255,255,255,.15)}}@-o-keyframes fullscreen-pulse{0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.3)}50%{box-shadow:0 0 12px 3px rgba(255,255,255,.15)}}@keyframes fullscreen-pulse{0%,100%{-webkit-box-shadow:0 0 0 0 rgba(255,255,255,.3);-moz-box-shadow:0 0 0 0 rgba(255,255,255,.3);box-shadow:0 0 0 0 rgba(255,255,255,.3)}50%{-webkit-box-shadow:0 0 12px 3px rgba(255,255,255,.15);-moz-box-shadow:0 0 12px 3px rgba(255,255,255,.15);box-shadow:0 0 12px 3px rgba(255,255,255,.15)}}"}),(0,a.jsxs)("div",{className:"jsx-97f226903cbff71b "+"bg-secondary/90 absolute bottom-4 left-4 right-4 z-20 overflow-hidden rounded-xl shadow-2xl backdrop-blur-sm transition-all duration-300 ease-out md:left-auto md:right-4 md:w-80 ".concat(Q?"translate-y-0 opacity-100":"pointer-events-none translate-y-full opacity-0"),children:[(0,a.jsx)("button",{type:"button",onClick:function(){return _(!0)},className:"jsx-97f226903cbff71b absolute right-2 top-2 z-10 cursor-pointer rounded-full bg-black/50 p-1.5 text-white/70 backdrop-blur-sm md:hidden",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"jsx-97f226903cbff71b size-4",children:(0,a.jsx)("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z",className:"jsx-97f226903cbff71b"})})}),V&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:V.img,alt:V.id,className:"jsx-97f226903cbff71b h-80 w-full bg-white/5 object-contain"}),(0,a.jsxs)("div",{className:"jsx-97f226903cbff71b p-4",children:[(0,a.jsxs)("div",{className:"jsx-97f226903cbff71b mb-3",children:[(0,a.jsx)("h3",{className:"jsx-97f226903cbff71b text-lg font-bold text-white",children:V.id}),(0,a.jsxs)("p",{className:"jsx-97f226903cbff71b text-xs text-white/50",children:[V.label," \xb7 ",V.sqm," м\xb2 \xb7 ",V.floors]})]}),(0,a.jsx)("div",{className:"jsx-97f226903cbff71b mb-3 space-y-1",children:V.roomInfo.map(function(e,t){return(0,a.jsxs)("div",{className:"jsx-97f226903cbff71b flex items-center justify-between text-xs",children:[(0,a.jsx)("span",{className:"jsx-97f226903cbff71b text-white/60",children:e.label}),(0,a.jsxs)("span",{className:"jsx-97f226903cbff71b font-medium text-white/80",children:[e.sqm," м\xb2"]})]},"".concat(t,"-").concat(e.pos[0],"-").concat(e.pos[1]))})}),(0,a.jsx)("div",{className:"jsx-97f226903cbff71b border-base-content/10 border-t pt-2",children:(0,a.jsx)("div",{style:{backgroundColor:V.hoverColor},className:"jsx-97f226903cbff71b h-2 w-full rounded-full"})})]})]})]})]})}}}]);

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.