p__Environment.a7ac1ce3.async.js 16 KB

1
  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[667],{53135:function(q){q.exports={main:"main___2SwIe",header:"header___39dGS",close:"close___i0ovY",title:"title___2ZqBx",content:"content___2GmTG",navigator:"navigator___kWPAp",nitem:"nitem___100Qf",sel:"sel___3HYBF",chart:"chart___2svAj",foot:"foot___1lVEH",l:"l___XKwHP",r:"r___IChzN",chartText:"chartText___3hGcD",leveSt:"leveSt___3h5Y3",ruleBox:"ruleBox___33g_y",ruleImg:"ruleImg___2kiNF",noNum:"noNum___3BKnx",legend:"legend___3OeZh",itemLegend:"itemLegend___2G9dp",linebox:"linebox___Vk9TI",lineTdb:"lineTdb___5TxEE"}},28550:function(q){q.exports={label:"label___1EAN-",sagawrap:"sagawrap___3872o",maptop:"maptop___1UdJl",right:"right___2473j",tdbIndicator:"tdbIndicator___grFVJ",text:"text___1YZso",indicatorBox:"indicatorBox___1y63u",color:"color___2U01U"}},5227:function(q,va,t){"use strict";t.r(va),t.d(va,{default:function(){return se}});var Ee=t(20228),ha=t(11382),K=t(32059),J=t(11849),Ba=t(86582),i=t(2824),n=t(67294),aa=t(42285),Pa=t(92007),Ya=t(65691),Va=t(68967),wa=t(99393),Re=t(71194),Wa=t(29759),za=t(61193),Ga=t.n(za),ma=t(81116),Ja=t(53135),s=t.n(Ja),Ua=t(94184),ea=t.n(Ua),O=t(20634),fa=t(39428),$a=t(3182),Xa=t(80652),Ka=t(28187),a=t(85893),Qa=function(E){var u=E.data,I=[],R=[],N={minTdb:100,maxTdb:0},h={maxRH:0,minRH:100};u.map(function(m){m.Tdb&&(I=u,m.Tdb<N.minTdb&&(N.minTdb=m.Tdb),m.Tdb>N.maxTdb&&(N.maxTdb=m.Tdb)),m.RH&&(R=u,m.RH<h.minRH&&(h.minRH=m.RH),m.RH>h.maxRH&&(h.maxRH=m.RH))});var D={data:[I,R],xField:"Date",yField:["Tdb","RH"],padding:[18],xAxis:{range:[0,1]},yAxis:{RH:{max:Math.ceil(h.maxRH)+1,min:Math.floor(h.minRH)},Tdb:{max:Math.ceil(N.maxTdb)+1,min:Math.floor(N.minTdb)}},tooltip:{formatter:function(F){return{name:"RH"in F?"\u6E7F\u5EA6":"\u6E29\u5EA6",value:"RH"in F?"".concat(F.RH,"%"):"".concat(F.Tdb,"\xB0C")}}},legend:!1,annotations:[[{type:"text",content:"\xB0C",position:["-6%","-10%"]}],[{type:"text",content:"%",position:["102%","-10%"]}]],geometryOptions:[{geometry:"line",color:"#5B8FF9"},{geometry:"line",color:"#5AD8A6"}]};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:s().legend,children:[(0,a.jsxs)("div",{className:s().itemLegend,children:[(0,a.jsx)("i",{className:"".concat(s().linebox," ").concat(s().lineTdb)}),(0,a.jsx)("span",{children:"\u6E29\u5EA6"})]}),(0,a.jsxs)("div",{className:s().itemLegend,children:[(0,a.jsx)("i",{className:s().linebox}),(0,a.jsx)("span",{children:"\u6E7F\u5EA6"})]})]}),(0,a.jsx)(Ka.Z,(0,J.Z)({},D))]})},ta=t(51236),ka=function(E){var u=E.paramObj,I=E.spaceId,R=(0,n.useState)([]),N=(0,i.Z)(R,2),h=N[0],D=N[1],m=(0,n.useState)(0),F=(0,i.Z)(m,2),w=F[0],na=F[1],U=function(d){var H=d.substr(8,4),M=H.slice(0,2)+":"+H.slice(2);return M};(0,n.useEffect)(function(){u.id&&I&&$()},[u,I]);var $=function(){var L=(0,$a.Z)((0,fa.Z)().mark(function d(){var H,M,j,W;return(0,fa.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(D([]),H=[],u.id!="Tdb,RH"){f.next=9;break}M=u.id.split(","),j=[],M.forEach(function(l,b){var p=l=="Tdb"?"\u6E29\u5EA6":"\u6E7F\u5EA6",Z=C(l,p);j.push(Z)}),Promise.all(j).then(function(l){var b=[];if(l[0].length===1&&l[1]===1)b=l[0];else{l[0]=l[0].length!==1?l[0]:[],l[1]=l[1].length!==1?l[1]:[];for(var p=0;p<l[0].length;p++){var Z=(0,J.Z)((0,J.Z)({},l[0][p]),l[1][p]);b.push(Z)}}D(b)}),f.next=13;break;case 9:return f.next=11,C(u.id,u.name);case 11:W=f.sent,D(W);case 13:case"end":return f.stop()}},d)}));return function(){return L.apply(this,arguments)}}(),C=function(d,H){var M={spaceId:I,funcid:d};return(0,ta.oc)(M).then(function(j){var W=[];if(j.dayTarget){var z=[],f=[],l=j.dayTarget[0]&&j.dayTarget[0][u.maxType];na(l),j.propertyData.shift(),f=j.propertyData;var b="scales";if((d==="RH"||d==="Tdb")&&(b=d),f.forEach(function(p){var Z,x="--";p[1]=="-9999"?(z.push(p[1]),x="--"):x=Number(p[1].toFixed(u.pointNum)),W.push((Z={Date:U(p[0])},(0,K.Z)(Z,b,x),(0,K.Z)(Z,"type",H),Z))}),z.length==f.length)return["noNum"]}else return["notDeploy"];return W})},Q={data:h,xField:"Date",yField:"scales",seriesField:"type",xAxis:{range:[0,1]},yAxis:{tickCount:6},legend:{layout:"horizontal",position:"top-right"},annotations:[{type:"line",start:[0,w],end:[h.length-1,w],top:!0,style:{stroke:u.id=="Tdb,RH"?"white":"red",lineWidth:1}}]};return h[0]=="notDeploy"?(0,a.jsx)("div",{className:s().noNum,children:"\u8BE5\u7A7A\u95F4\u6570\u636E\u672A\u914D\u7F6E"}):h[0]=="noNum"?(0,a.jsx)("div",{className:s().noNum,children:"\u6682\u65E0\u6570\u636E"}):h.length>3?u.id=="Tdb,RH"?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Qa,{data:h}),(0,a.jsx)("div",{className:s().chartText,children:(0,a.jsx)("span",{children:"\u6E29\u6E7F\u5EA6\u9010\u65F6\u5206\u5E03"})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Xa.Z,(0,J.Z)({},Q)),(0,a.jsx)("div",{className:s().chartText,children:(0,a.jsx)("span",{children:"\u6D53\u5EA6\u9010\u65F6\u5206\u5E03"})})]}):(0,a.jsx)("div",{className:s().noNum,children:(0,a.jsx)(ha.Z,{})})},_a=function(E){var u=E.onClose,I=E.showSpace,R=E.selNav,N=O.x.ruleCo2,h=O.x.ruleHcho,D=O.x.rulePm25,m=(0,n.useState)([{name:"CO\u2082",id:"CO2",maxType:"co2Max",pointNum:null,level:"\u4E0D\u540C\u6D53\u5EA6\u4E0B\u7684\u4EBA\u4F53\u611F\u89C9",srcImg:N,content:"CO\u2082\u4E00\u79CD\u65E0\u8272\u65E0\u5473\u6C14\u4F53\uFF0CCO\u2082\u7684\u6807\u51C6\u4E3A1000ppm\uFF0CCO\u2082\u8FC7\u9AD8\uFF0C\u5F71\u54CD\u4EBA\u4F53\u547C\u5438\u7CFB\u7EDF\uFF0C\u5927\u8111\u6613\u75B2\u52B3\uFF0C\u5DE5\u4F5C\u6548\u7387\u964D\u4F4E\uFF0C\u5BA4\u5185\u4EBA\u5458\u589E\u591A\uFF0C\u65B0\u98CE\u91CF\u4E0D\u8DB3\u65F6\uFF0C\u5BA4\u5185CO\u2082\u7684\u6D53\u5EA6\u5C31\u4F1A\u4E0A\u5347\uFF0C\u5B9C\u5F00\u7A97\u901A\u98CE\u6216\u589E\u52A0\u9001\u98CE\u91CF\uFF0C\u6765\u964D\u4F4ECO\u2082\u6D53\u5EA6"},{name:"PM2.5",id:"PM2d5",maxType:"pm25Max",pointNum:1,level:"\u4E0D\u540CPM2.5\u6D53\u5EA6\u5BF9\u5E94\u7B49\u7EA7",srcImg:D,content:"PM2.5\uFF0C\u76F4\u5F84\u22642.5\u5FAE\u7C73\u7684\u9897\u7C92\uFF0CPM2.5\u7684\u5E73\u5747\u503C\u57280-35\u03BCg/m3\uFF0CPM2.5\u6D53\u5EA6\u8FC7\u9AD8\uFF0C\u5F71\u54CD\u4EBA\u4F53\uFF0C\u547C\u5438\u7CFB\u7EDF\u548C\u5FC3\u8840\u7BA1\u7CFB\u7EDF\u5065\u5EB7\uFF0C\u5E94\u5F00\u542F\u9664\u5C18\u51C0\u5316\u8BBE\u5907"},{name:"\u7532\u919B",id:"HCHO",maxType:"hchoMax",pointNum:2,level:"\u4E0D\u540C\u9608\u503C\u6D53\u5EA6\u5BF9\u5E94\u6807\u51C6",srcImg:h,content:"\u7532\u919B\uFF08HCHO\uFF09\u662F\u65E0\u8272\u6709\u523A\u6FC0\u6027\u6709\u673A\u6C14\u4F53\u3002\u7532\u919B\u7684\u4E3B\u8981\u5371\u5BB3\u8868\u73B0\u4E3A\u5BF9\u76AE\u80A4\u548C\u9ECF\u819C\u7684\u523A\u6FC0\u4F5C\u7528\uFF0C\u5BA4\u5185\u7532\u919B\u6D53\u5EA6\u957F\u671F\u504F\u9AD8\u4F1A\u5F15\u53D1\u547C\u5438\u7CFB\u7EDF\uFF0C\u6D88\u5316\u7CFB\u7EDF\u6216\u514D\u75AB\u7CFB\u7EDF\u75BE\u75C5\u3002\u7532\u919B\u591A\u6765\u81EA\u4E8E\u5BA4\u5185\u88C5\u9970\u6750\u6599\uFF0C\u5982\u5BB6\u5177\uFF0C\u5899\u7EB8\uFF0C\u6CB9\u6F06\u4EE5\u53CA\u80F6\u6C34\u3001\u82B3\u9999\u5242\u7B49\u7269\u8D28\u3002\u7531\u4E8E\u5BB6\u5177\uFF0C\u80F6\u6C34\u4E2D\u7684\u7532\u919B\u6325\u53D1\u662F\u4E00\u4E2A\u957F\u671F\u7F13\u6162\u7684\u8FC7\u7A0B\uFF0C\u56E0\u6B64\u7532\u919B\u8D85\u6807\u5E38\u8868\u73B0\u4E3A\u5BA4\u5185\u7532\u919B\u6D53\u5EA6\u957F\u671F\u5904\u4E8E\u8F83\u9AD8\u7684\u6570\u503C\u3002\u6700\u4E3A\u6709\u6548\u907F\u514D\u7532\u919B\u8D85\u6807\u7684\u65B9\u6CD5\u662F\u6301\u7EED\u9AD8\u6548\u7684\u901A\u98CE\uFF0C\u901A\u8FC7\u5F15\u5165\u5BA4\u5916\u65B0\u9C9C\u7A7A\u6C14\u5C06\u5BA4\u5185\u7532\u919B\u6D53\u5EA6\u957F\u671F\u63A7\u5236\u5728\u4F4E\u4E8E\u6709\u5BB3\u6807\u51C6\u7684\u8303\u56F4\u5185\u3002\u7531\u4E8E\u7532\u919B\u4F20\u611F\u5668\u4E3A\u7535\u5316\u5B66\u4F20\u611F\u5668\uFF0C\u5B58\u5728\u4EA4\u53C9\u5E72\u6270\u7684\u7279\u6027\uFF0C\u5F53\u5BA4\u5185\u51FA\u73B0\u65E0\u5BB3\u7684\u6325\u53D1\u6027\u6C14\u4F53\u65F6\u4E5F\u4F1A\u5BFC\u81F4\u6D4B\u5F97\u7684\u7532\u919B\u6D53\u5EA6\u77ED\u6682\u5347\u9AD8\uFF0C\u5982\u5438\u70DF\uFF0C\u4F7F\u7528\u9999\u6C34\uFF0C\u7A7A\u6C14\u6E05\u65B0\u5242\uFF0C\u55B7\u6D12\u9152\u7CBE\uFF0C\u751A\u81F3\u5265\u6A58\u5B50\u76AE\u6E85\u51FA\u7684\u6C41\u6DB2\u5747\u53EF\u80FD\u5728\u77ED\u65F6\u95F4\u5185\u5F71\u54CD\u7532\u919B\u4F20\u611F\u5668\u7684\u8BFB\u6570\uFF0C\u5728\u53BB\u9664\u5E72\u6270\u6E90\u540E\uFF0C\u6B64\u79CD\u5F71\u54CD\u4F1A\u5728\u77ED\u65F6\u95F4\u5185\u6D88\u9664\uFF0C\u53EF\u4E0D\u5FC5\u56E0\u6B64\u4EA7\u751F\u62C5\u5FE7\u3002"},{name:"\u6E29\u6E7F\u5EA6",id:"Tdb,RH",maxType:"temperatureMax",pointNum:1,level:"",srcImg:"",content:"\u6E29\u5EA6\u8868\u793A\u7A7A\u6C14\u7684\u51B7\u70ED\u7A0B\u5EA6\uFF0C\u590F\u5B63\u9AD8\u6E29\u9AD8\u6E7F\u4F1A\u4F7F\u4EBA\u70E6\u8E81\u3001\u75B2\u5026\uFF0C\u51AC\u5B63\u6E7F\u5EA6\u8FC7\u9AD8\u65F6\uFF0C\u4EBA\u4F53\u611F\u89C9\u8D8A\u51B7\uFF0C\u51AC\u5B63\u6E7F\u5EA6\u4F4E\u6613\u5F15\u8D77\u547C\u5438\u9053\u4E0D\u8212\u9002\uFF0C\u5BA4\u5916\u6E29\u5EA6\u8F83\u9AD8\u65F6\uFF0C\u5B9C\u906E\u9633\u5173\u7A97"}]),F=(0,i.Z)(m,2),w=F[0],na=F[1],U=(0,n.useState)({}),$=(0,i.Z)(U,2),C=$[0],Q=$[1],L=function(T){Q(T)},d=function(){w.forEach(function(T){T.id.includes(R.id)&&L(T)})};(0,n.useEffect)(function(){d()},[R]);var H=(0,n.useState)(!1),M=(0,i.Z)(H,2),j=M[0],W=M[1],z=(0,n.useState)({left:0,top:0,bottom:0,right:0}),f=(0,i.Z)(z,2),l=f[0],b=f[1],p=(0,n.useRef)(null),Z=function(T,B){var P,X=window.document.documentElement,k=X.clientWidth,ra=X.clientHeight,Y=(P=p.current)===null||P===void 0?void 0:P.getBoundingClientRect();!Y||b({left:-Y.left+B.x,right:k-(Y.right-B.x),top:-Y.top+B.y,bottom:ra-(Y.bottom-B.y)})};return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(Wa.Z,{width:550,visible:!0,maskClosable:!1,closable:!1,footer:null,style:{width:"100%",cursor:"move"},modalRender:function(T){return(0,a.jsx)(Ga(),{disabled:j,bounds:l,onStart:function(P,X){return Z(P,X)},children:(0,a.jsx)("div",{ref:p,children:T})})},children:(0,a.jsxs)("div",{className:s().main,onMouseDown:function(T){T.preventDefault()},children:[(0,a.jsxs)("div",{className:s().header,children:[(0,a.jsx)("div",{className:s().title,children:I.localName}),(0,a.jsx)("div",{className:s().close,onClick:u,children:(0,a.jsx)(ma.Z,{type:"close"})})]}),(0,a.jsxs)("div",{className:s().content,children:[(0,a.jsx)("div",{className:s().navigator,children:w.map(function(x,T){return(0,a.jsx)("div",{className:ea()(s().nitem,(0,K.Z)({},s().sel,x.id==C.id)),onClick:function(){L(x)},children:x.name},"navc"+x.id)})}),(0,a.jsx)("div",{className:s().chart,children:(0,a.jsx)(ka,{paramObj:C,spaceId:I.spaceId})}),(0,a.jsxs)("div",{className:s().foot,children:[(0,a.jsx)("div",{className:s().l,children:C.name}),(0,a.jsx)("div",{className:s().r,children:C.content})]}),(0,a.jsx)("div",{className:s().leveSt,children:(0,a.jsx)("span",{children:C.level})}),C.srcImg&&(0,a.jsx)("div",{className:s().ruleBox,children:(0,a.jsx)("img",{className:s().ruleImg,src:C.srcImg})})]})]})})})},qa=t(30381),sa=t.n(qa),pa=t(60607),ae=t(78919),ee=t(28550),V=t.n(ee),te=t(3527),A=t.n(te),ne=function(){var u=(0,aa.tT)("sagacare_buildFloor"),I=u.changeLastFloorId,R=(0,aa.tT)("sagacare_searchInfo"),N=R.searchSpace,h=O.x.envir_temperature,D=O.x.envir_wet,m=O.x.envir_co2,F=O.x.envir_pm25,w=O.x.envir_jiaquan,na=(0,n.useState)(!1),U=(0,i.Z)(na,2),$=U[0],C=U[1],Q=(0,n.useState)(),L=(0,i.Z)(Q,2),d=L[0],H=L[1],M=(0,n.useState)(),j=(0,i.Z)(M,2),W=j[0],z=j[1],f=(0,n.useState)({}),l=(0,i.Z)(f,2),b=l[0],p=l[1],Z=(0,n.useState)([{name:"\u6E29\u5EA6",id:"Tdb",src:h,unit:"\u2103",color:"#E5574F",colorStr:["#5E8BCF","#C9E5FF","#F3F3F3","#FFB6A7","#EE6D66"],opacity:1,indicator:[0,18,22,26,30],fixed:1},{name:"\u6E7F\u5EA6",id:"RH",src:D,unit:"%",color:"#9FB7CD",colorStr:["rgba(255, 232, 35, 0.4)"," rgba(255, 232, 35, 0.2)","rgba(159, 183, 205, 0.2)","rgba(94, 139, 207, 0.4)","rgba(94, 139, 207, 0.8)"],opacity:1,indicator:[0,20,40,60,80],fixed:1},{name:"CO\u2082",id:"CO2",src:m,unit:"ppm",color:"#00DC23",colorStr:"0,220,35,",opacity:.2,indicator:[0,500,1e3,1500,2e3],fixed:0},{name:"PM2.5",id:"PM2d5",src:F,unit:"ug/m\xB3",color:"#E89E32",colorStr:"232,158,50,",opacity:.2,indicator:[0,20,80,140,200],fixed:1},{name:"\u7532\u919B",id:"HCHO",src:w,unit:"mg/m\xB3",color:"#140050",colorStr:"20,0,80,",opacity:.15,indicator:[0,.05,.1,.15],fixed:2}]),x=(0,i.Z)(Z,1),T=x[0],B=(0,n.useState)(!1),P=(0,i.Z)(B,2),X=P[0],k=P[1],ra=(0,n.useState)(T[0]),Y=(0,i.Z)(ra,2),g=Y[0],ga=Y[1],re=(0,n.useState)(T[0].id),xa=(0,i.Z)(re,2),oa=xa[0],oe=xa[1],ie=(0,n.useState)([]),Sa=(0,i.Z)(ie,2),ja=Sa[0],ia=Sa[1],le=(0,n.useState)("Cooling"),Ta=(0,i.Z)(le,2),de=Ta[0],ce=Ta[1],ue=(0,n.useState)(.8),ya=(0,i.Z)(ue,2),Na=ya[0],ve=ya[1],he=(0,n.useState)(1),Ca=(0,i.Z)(he,2),la=Ca[0],me=Ca[1],fe=(0,n.useState)(0),Fa=(0,i.Z)(fe,2),pe=Fa[0],Za=Fa[1],ge=(0,n.useState)({}),Ia=(0,i.Z)(ge,2),xe=Ia[0],Se=Ia[1],da=(0,n.useRef)([]),je=(0,n.useState)([]),Ma=(0,i.Z)(je,2),ba=Ma[0],Te=Ma[1],ye=(0,n.useState)([]),Ha=(0,i.Z)(ye,2),ca=Ha[0],Ea=Ha[1],Ne=(0,aa.tT)("sagacare_spaceFunc"),ua=Ne.getSpaceFunc,Ce=function(e){H(e)},Fe=function(e){z(e)},Ze=function(e){ca.forEach(function(S,c){S.avgValues=null}),Ea(ca),ga(e),oe(e.id)},Ra=function(e){var S=g.indicator||[],c=1,v=[e].concat((0,Ba.Z)(S)).sort(function(o,G){return o-G});return c=v.findIndex(function(o){return o===e}),c};(0,n.useEffect)(function(){d?(I(d),k(!0),(0,ta.cn)({floorId:d}).then(function(r){k(!1);var e=(r.data||{}).spaceList||[],S=document.body.offsetWidth,c=(r.data||{}).width||800;if(c<S){var v=1;Za((S-c)/2)}else{var v=Number((S/c).toFixed(4));Za(0)}var o={width:c*v,height:(r.data||{}).height*v};Se(o),e.forEach(function(y,Oa){y.width=y.width*v,y.height=y.height*v,y.left=y.left*v,y.top=y.top*v});var G=(0,ae.O)(e);me(G),ia(e),da.current=e}).catch(function(){k(!1)})):ia([])},[d]);var Ie=(0,n.useCallback)(function(r,e,S){ve(r);var c=JSON.parse(JSON.stringify(da.current)),v=c.map(function(o,G){return G==0,o.width=o.width*r,o.height=o.height*r,o.left=o.left*r-e,o.top=o.top*r-S,o});ia(v)},[da]);(0,n.useEffect)(function(){if(oa&&d){var r=(0,ta.Jj)({projectId:pa.T.projectId,date:sa()().format("YYYYMMDD")}),e=[{id:d,projectId:pa.T.projectId}],S=sa()(),c=sa()().subtract(30,"minutes"),v=c.format("YYYYMMDDHHmmss"),o=S.format("YYYYMMDDHHmmss"),G=(0,ta.Y5)(e,{endTime:o,startTime:v,param:oa});Promise.all([r,G]).then(function(y){var Oa=y[0]&&y[0].data||"Cooling";ce(Oa);var Aa=y[1]&&y[1].data||{},_=Aa.avgValues;_=_&&_.toFixed(g.fixed);var be=(0,J.Z)((0,J.Z)({},g),{},{avgValues:_});ga(be);var He=(Aa.floors[0]||{}).dataSpaces||[];Te(He)}).catch(function(y){})}},[oa,d]),(0,n.useEffect)(function(){var r=[];ja.map(function(e){var S=e.spaceId,c=ba.filter(function(o){return o.id==S}),v=Object.assign({},c[0],e);r.push(v)}),Ea(r)},[ba,ja]);var Me=function(e){!e.roomFuncType||(C(!0),p(e))},Da=0,La=0;return(0,a.jsxs)("div",{className:V().sagawrap,children:[(0,a.jsx)(Pa.Z,{title:(0,a.jsx)(aa._H,{id:"menu.environment"}),action:(0,a.jsx)(Va.Z,{})}),(0,a.jsx)(wa.Z,{navigatorList:T,type:"enviroment",seasonType:de,navigatorChange:Ze,changeFloorId:Ce,changeBuildId:Fe,selParamObj:g}),(0,a.jsx)("div",{className:V().maptop,children:(0,a.jsx)("div",{className:V().right,children:(g.indicator||[]).map(function(r,e){return(0,a.jsxs)("div",{className:ea()(V().indicatorBox,V().tdbIndicator),children:[(0,a.jsx)("div",{className:V().text,children:r==0?"":r}),(0,a.jsx)("div",{className:V().color,style:{backgroundColor:g.id=="Tdb"||g.id=="RH"?g.colorStr[e]:"rgba("+g.colorStr+g.opacity*(e+1)+")"}})]},e+"indicator")})})}),(0,a.jsx)(ha.Z,{spinning:X,wrapperClassName:A().spinnclass,children:(0,a.jsx)(Ya.Z,{type:"enviroment",maxscale:la,transXInit:pe,mapList:ca,changeMapList:Ie,mapSize:xe,selFloorId:d,render:function(e,S){var c;return(0,a.jsx)("div",{className:ea()(A().houseWrap),style:{left:e.left,top:e.top,width:e.width,height:e.height},children:(0,a.jsx)("div",{className:ea()(A().house,(c={},(0,K.Z)(c,A().notclick,!e.roomFuncType||!e.avgValues&&e.avgValues!=0),(0,K.Z)(c,A().searchSel,e.spaceId&&e.spaceId===N.spaceId),c)),style:{background:e.roomFuncType&&(e.avgValues||e.avgValues==0)?g.id=="Tdb"||g.id=="RH"?e.avgValues?g.colorStr[Ra(e.avgValues)-1]:"":"rgba("+g.colorStr+g.opacity*Ra(e.avgValues)+")":""},onClick:function(o){o.stopPropagation(),La-Da<200&&Me(e)},onMouseDown:function(o){Da=new Date().getTime()},onMouseUp:function(o){La=new Date().getTime()},children:(0,a.jsxs)("div",{className:A().content,children:[(0,a.jsx)(ma.Z,{className:"",type:ua(e.roomFuncType),style:{fontSize:18,display:e.width>28&&e.height>50?"block":"none"}}),(0,a.jsx)("div",{className:A().name,style:{display:e.width>64&&e.height>80||e.height>140||e.width>120||Na==la?"block":"none"},children:e.localName}),(ua(e.roomFuncType)||e.localName)&&!(ua(e.roomFuncType)&&e.width>28&&e.height>50||e.localName&&(e.width>64&&e.height>80||e.height>140||e.width>120||Na==la))&&(0,a.jsx)("div",{className:A().pointer,children:"."})]})})},S+"house")}})}),$&&(0,a.jsx)(_a,{showSpace:b,selNav:g,onClose:function(){C(!1)}})]})},se=ne}}]);