1"use strict";(self.webpackChunksaas_web=self.webpackChunksaas_web||[]).push([[7056],{63660:function(e,t,a){a.r(t),a.d(t,{default:function(){return Y}});var s=a(15671),n=a(43144),i=a(60136),r=a(27277),o=a(47313),l=a(66135),c=a(97326),d=(a(59304),a(59491)),u=a(1413),p=(a(78235),a(55291)),h=(a(48384),a(74294)),f=a(82429),m=a(51579),y=a(11538),v=a(71329),S=a(24103);var x,b,g,k,C,j=a(56253),I=a(22808),N=a(98315),D=a(69120),L=a(46417),P=h.Z.Option,T=(0,l.$j)((function(e){return{layerTree:e.baseData.layerTree,boxSearchResult:e.mainMap.boxSearchResult,boxSearching:e.mainMap.boxSearching,boxSearchVisible:e.mainMap.boxSearchVisible,teamSetting:e.team.teamSettingInfo}}),{_getLayerTree:f.Nx,saveBoxSearchVisible:y.UO,clearBoxSearchResult:y.BA,openCurrentLayerEye:m.UN,searchBySocket:y.T7})(x=function(e){(0,i.Z)(a,e);var t=(0,r.Z)(a);function a(e){var n;return(0,s.Z)(this,a),(n=t.call(this,e)).clear=function(){n.setState({layerList:[],selectPointLayer:null,selectedPointIds:[]})},n.selectPointLayer=function(e,t){n.setState({selectPointLayer:t.props.layer,isSheet:!1},(function(){}))},n.SelectedPointFromSheet=function(e,t,a,s){n.setState({pointIds:s,pointDatas:e})},n.selectUnit=function(e){var t="km"===e?3e3:3e6,a="km"===e?.001:1;n.setState({unit:e,maxRadius:t,minRadius:a})},n.onRadiusInputChange=function(e){var t=e.target.value;t=t.replace(/[^\d.]/g,"");var a=Number(t);n.refs.input_radius.value=t+"",n.setState({radius:isNaN(Number(a))?n.state.radius:Number(a)})},n.submit=function(){var e=n.state,t=e.radius,a=e.minRadius,s=e.maxRadius,i=e.unit,r=e.selectPointLayer,o=e.searchTypeIndex,l=e.pointIds,c=n.props.boxSearchResult,d=[],h={};if(o){if(!c.length)return void p.ZP.warning("\u8bf7\u6846\u9009\u7f51\u70b9\u6570\u636e");c.forEach((function(e){d.push(e.id)})),h.pointIds=d}else{if(!r)return void p.ZP.warning("\u8bf7\u9009\u62e9\u7f51\u70b9\u56fe\u5c42");if(!r.dataCount)return void p.ZP.warning("\u56fe\u5c42\u4e0b\u6ca1\u6709\u7f51\u70b9\uff0c\u65e0\u6cd5\u751f\u6210\u7f13\u51b2\u533a\uff01");h.pointLayerCode=r.code,l.length&&(h.pointIds=l)}t&&""!==t?t<a||t>s?p.ZP.warning("\u8ddd\u79bb\u4e0d\u80fd\u5927\u4e8e".concat(s+""+("km"===i?"\u516c\u91cc":"\u7c73"),", \u5e76\u4e14\u4e0d\u80fd\u5c0f\u4e8e").concat(a+""+("km"===i?"\u516c\u91cc":"\u7c73"))):(h.radius="km"===i?1e3*t:t,n.setState({loading:!0}),function(e,t,a){S.xF.commit("bufferAreas/initBufferByPoints","POST",e,t,a,1)}(h,(function(e){var t=(0,u.Z)({},r);t.dataCount=e.recordCount,n.props.onSettingCompelete(t,e.dataList,e),n.setState({loading:!1,isSheet:!1})}),(function(){n.setState({loading:!1}),p.ZP.error("\u7f13\u51b2\u533a\u751f\u6210\u5931\u8d25")}))):p.ZP.warning("\u8bf7\u8f93\u5165\u7f13\u51b2\u8ddd\u79bb")},n.openTable=function(){n.props.showResult||(n.state.selectPointLayer?n.setState({isSheet:!0}):p.ZP.error("\u8bf7\u5148\u9009\u62e9\u7f51\u70b9\u56fe\u5c42"))},n.selectPointFromTable=function(e,t,a,s){n.setState({selectedPointIds:s&&s.length>0?s:[]})},n.changeSearchType=function(e){n.state.searchTypeIndex!==e&&n.setState({searchTypeIndex:e,pointDatas:[],pointIds:[],isSheet:!1,selectPointLayer:null},(function(){0===e&&n.clearBoxSearchResult()}))},n.activateBoxSearch=function(){n.setState({boxSearchActive:!0},(function(){n.props.saveBoxSearchVisible(!0)}))},n.clearBoxSearchResult=function(e){e&&e.stopPropagation(),e&&e.preventDefault(),n.setState({boxSearchActive:!1},(function(){n.props.clearBoxSearchResult()}))},n.renderBtnBoxSearch=function(){var e=n.state.boxSearchActive,t=n.props,a=t.boxSearchResult,s=t.boxSearching;return(0,L.jsx)("div",{className:"btn-box-search".concat(e?" active":""),onClick:n.activateBoxSearch,children:e?a&&a.length>0||s?(0,L.jsxs)("span",{children:["\u5df2\u9009\u4e2d".concat(a.length,"\u4e2a\u7f51\u70b9"),(0,L.jsx)(N.Z,{onClick:n.clearBoxSearchResult,className:"icon-close"})]}):(0,L.jsx)("span",{children:"\u8bf7\u5728\u5730\u56fe\u4e0a\u6846\u9009\u7f51\u70b9"}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(I.B,{type:"icongeneral-add-line"}),(0,L.jsx)("span",{className:"text",children:"\u5f00\u542f\u5730\u56fe\u6846\u9009"})]})})},n.state={selectPointLayer:null,radius:null,loading:!1,unit:"km",minRadius:.001,maxRadius:3e3,selectedPointIds:[],searchTypeIndex:0,boxSearchActive:!1,pointIds:[],pointDatas:[]},n}
1return(0,n.Z)(a,[{key:"componentDidUpdate",value:function(e){this.props.boxSearchVisible||this.props.boxSearchVisible===e.boxSearchVisible||this.setState({boxSearchActive:!1})}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this,t=this.state,a=t.loading,s=t.unit,n=t.selectPointLayer,i=t.searchTypeIndex,r=t.pointDatas,o=t.pointIds,l=t.isSheet,c=[],u=this.props,p=u.userInfo,f=u.layerTree,m=u.showResult;return f&&f.length>0&&(c=(0,j.L7)(f,[2,9])),(0,L.jsxs)("div",{className:"buffer-setting"+(m?" ":""),children:[(0,L.jsxs)("div",{className:"box-area",children:[(0,L.jsxs)("div",{className:"row",children:[(0,L.jsxs)("div",{className:"label",children:[(0,L.jsxs)("div",{className:"select-search-type",children:[(0,L.jsx)("div",{className:"item"+(0===i?" active":""),onClick:function(){return e.changeSearchType(0)},children:"\u70b9\u56fe\u5c42\u9009\u62e9"}),(0,L.jsx)("div",{className:"line"}),(0,L.jsx)("div",{className:"item"+(1===i?" active":""),onClick:function(){return e.changeSearchType(1)},children:"\u5730\u56fe\u9009\u70b9"})]}),n&&0===i&&(0,L.jsx)("div",{className:m?"open-table disable":"open-table",onClick:this.openTable,children:"\u67e5\u770b\u8be6\u60c5\u8868\u683c"})]}),(0,L.jsx)("div",{className:"select layer-tree-select",children:0===i?(0,L.jsx)(v.Z,{treeData:c,placeholder:"\u8bf7\u9009\u62e9\u7f51\u70b9\u56fe\u5c42",onClear:function(){e.setState({selectPointLayer:null,isSheet:!1})},onSelect:this.selectPointLayer}):this.renderBtnBoxSearch()})]}),(0,L.jsxs)("div",{className:"row",children:[(0,L.jsxs)("div",{className:"label",children:["\u6307\u5b9a\u7f13\u51b2\u8ddd\u79bb","km"===s?"\uff080.001~3000\u516c\u91cc\uff09":"\uff081~3000000\u7c73\uff09"]}),(0,L.jsxs)("div",{className:"select-radius",children:[(0,L.jsx)("input",{className:"input-radius",ref:"input_radius",type:"text",placeholder:"\u8bf7\u8f93\u5165\u7f13\u51b2\u8ddd\u79bb",onInput:this.onRadiusInputChange,maxLength:"32"}),(0,L.jsx)("div",{className:"select unit-select",children:(0,L.jsxs)(h.Z,{placeholder:"\u8bf7\u9009\u62e9\u8ddd\u79bb\u5355\u4f4d",className:"input-unit",defaultValue:"km",onSelect:this.selectUnit,children:[(0,L.jsx)(P,{value:"km",children:"\u516c\u91cc"},"0"),(0,L.jsx)(P,{value:"m",children:"\u7c73"},"1")]})})]})]})]}),(0,L.jsx)("div",{className:"tool-footer",children:(0,L.jsx)(d.Z,{loading:a,ref:"submit",className:"btn-ok",size:"large",onClick:this.submit,children:a?"\u6b63\u5728\u751f\u6210\u2026\u2026":"\u70b9\u51fb\u751f\u6210"},"submit")}),l&&(0,L.jsx)(D.Z,{obj:"basedata",kind:"layer",type:2,isScreeningTable:!0,layerInfo:n,checkedPoints:r,selectDataIds:o,layerId:n&&n.id,teamSetting:this.props.teamSetting,pageSizeOptions:["10","20","50","100"],userModules:this.props.userModules,HeaderData:!0,windowSize:!0,NodataManipulation:!0,SelectedPointToOut:this.SelectedPointFromSheet,NoTitleMes:!0,userInfo:p,closeHandle:function(){e.setState({isSheet:!1})},onDataClickHandler:this.props.onDataClickHandler})]})}}]),a}(o.Component))||x,Z=a(93433),w=(a(21589),a(98516)),B=a(68488),H=a(52281),M=a(99004),R=a(20182),O=a(33303),A=a(40197),F=a(79066),z=a(60539),V=a(47995),_=a(76666),E=a.n(_),U=a(82534),$=a(89217),W=(0,l.$j)((function(e){return{layerTree:e.baseData.layerTree}}),{})(b=function(e){(0,i.Z)(a,e);var t=(0,r.Z)(a);function a(e){var n;return(0,s.Z)(this,a),(n=t.call(this,e)).canAddLayer=(0,j.sU)("010101",e.userModules),n.state={modalVisible:!1,btnLoading:!1,layerList:[],selectedLayerCode:n.canAddLayer?"create":null},n.saveBufferLayer=n.saveBufferLayer.bind((0,c.Z)(n)),n.handleOk=n.handleOk.bind((0,c.Z)(n)),n.selectLayer=n.selectLayer.bind((0,c.Z)(n)),n}return(0,n.Z)(a,[{key:"handleOk",value:function(){var e=this.state,t=e.selectedLayerCode,a=e.selectedLayer;null!=t?"create"!==t?(this.setState({modalVisible:!1}),this.props.saveLayer(t,a)):this.saveBufferLayer():p.ZP.warning("\u8bf7\u9009\u62e9\u7f13\u51b2\u533a\u56fe\u5c42")}},{key:"saveBufferLayer",value:function(){var e=this,t=this.refs.txt_name.getValue().replace(/(^\s*)|(\s*$)/g,"");""!==t?(this.setState({btnLoading:!0}),(0,U.z8)({layerName:t,layerLevel:1,layerType:8,mapId:this.props.mapId},(function(t){e.setState({modalVisible:!1,btnLoading:!1}),e.props.saveLayer(t.code,t)}),(function(){e.setState({btnLoading:!1}),p.ZP.error("\u7f13\u51b2\u533a\u56fe\u5c42\u6dfb\u52a0\u5931\u8d25")}))):p.ZP.error("\u8bf7\u8f93\u5165\u7f13\u51b2\u533a\u56fe\u5c42\u540d\u79f0")}
1},{key:"selectLayer",value:function(e,t){var a="create"===e?"create":t.layer.code;this.setState({selectedLayerCode:a,selectedLayer:t.layer})}},{key:"render",value:function(){var e=this.state.selectedLayerCode,t=this.props,a=t.layerInfo,s=t.layerTree,n=t.visible,i=(a&&a.name||"\u7f13\u51b2\u533a")+"@\u7f13\u51b2\u533a",r=(0,j.L7)(s,[8]);return(0,L.jsx)($.Z,{type:"simple",visible:n,wrapClassName:"save-buffer-modal",title:"\u4fdd\u5b58\u81f3\u56fe\u5c42",width:430,onCancel:this.props.handleCancel,onOk:this.handleOk,confirmLoading:this.state.btnLoading,children:(0,L.jsxs)("div",{className:"content",children:[(0,L.jsxs)("div",{className:"item",children:[(0,L.jsx)("label",{children:"\u6240\u5c5e\u56fe\u5c42"}),(0,L.jsx)(v.Z,{treeData:r,isCreate:this.canAddLayer,placeholder:"\u8bf7\u9009\u62e9\u7f13\u51b2\u533a\u56fe\u5c42",onSelect:this.selectLayer})]}),"create"===e&&this.canAddLayer?(0,L.jsxs)("div",{className:"item",children:[(0,L.jsx)("label",{children:"\u56fe\u5c42\u540d\u79f0"},"1"),(0,L.jsx)(R.gs,{ref:"txt_name",placeholder:"\u8bf7\u8f93\u5165\u7f13\u51b2\u533a\u56fe\u5c42\u540d\u79f0",defaultValue:i,maxLength:"20"},"2")]}):""]})})}}]),a}(o.Component))||b,J=S.KD.isOutOfDataCountLimits,q=(0,l.$j)((function(e){return{menuStatus:e.todos.menuStatus,collapsed:e.todos.collapsed}}),{saveSelectedDataItem:m.q$})(g=function(e){(0,i.Z)(a,e);var t=(0,r.Z)(a);function a(e){var n;return(0,s.Z)(this,a),(n=t.call(this,e)).componentDidMount=function(){},n.componentWillReceiveProps=function(e){e.menuStatus!==n.props.menuStatus&&n.setState({positionStatus:e.menuStatus}),e.collapsed!==n.props.collapsed&&n.setState({positionStatus:e.collapsed})},n.componentDidUpdate=function(e){},n.getExtendColumns=function(){var e=n.props,t=e.layerInfo,a=e.type,s=e.pointIds,i=e.areaIds,r=e.task,o=e.StaticsTebNum,l={dataType:t&&t.type?t.type:a,layerCode:t&&t.code},c=O.kj;if(t&&9===t.type&&(c=O.pt,l={layerCode:t.code,stepId:t.stepId}),s&&s.length||i&&i.length){c=O.Pk;var d="NetPoint";(1===o&&1===a||2===o&&1===a)&&(d="Area"),l={dataType:d,taskId:r.id}}c(l,(function(e){var t=[];l.taskId?e.forEach((function(e){"\u540d\u79f0"===e.fieldName?t.unshift(e):t.push(e)})):t=e,n.setState({infos:t})}),(function(e){n.setState({visible:!1}),p.ZP.error("\u6ca1\u6709\u5b57\u6bb5\u6570\u636e",1)}))},n.filterData=function(e){var t=n.props.data,a=n.state.filterStatus;if(e){var s=(0,V.As)(e,t);n.setState({data:s,pageNumber:1,filterStatus:!a})}else n.setState({data:t,pageNumber:1,filterStatus:!a})},n.getCheckedData=function(){return n.state.selectDataIds},n.onDataClickHandler=function(e,t){n.props.onDataClickHandler&&n.props.onDataClickHandler(e,t)},n.selectedPointToOut=function(e,t){var a=n.state.type;n.setState({checkedPoints:e,selectDataIds:t}),n.props.SelectedPointToOut&&n.props.SelectedPointToOut(e,a,!0,t)},n.checkedData=function(e){n.refs.Tablebox.checkedData(e)},n.clearCheked=function(){n.refs.Tablebox.clearCheked()},n.setCurrData=function(e){var t=n.state.layerData;t.forEach((function(a,s){if(a.id===e.id){var i=n.refs.table.state.pageSize,r=Math.floor(s/i);r++;var o=t.concat();n.setState({data:o.slice((r-1)*i,r*i),pageNumber:r},(function(){n.refs.table.setCurrData(e,r)}))}}))},n.isOutOfDataCountLimits=function(e,t){J({serviceType:"BufferArea",dataCount:e},(function(e){n.openSocketSave(t)}),(function(e,t,a){"E012"===e&&(0,R.hI)("\u7f13\u51b2\u533a",t||a)}))},n.openSocketSave=function(e){var t=n.state,a=t.layerInfo,s=t.selectDataIds;R.gb.show();var i={url:"".concat(A.jk.socket,"WebSocketBaseData"),data:{method:"saveBuffer",layercode:e,token:window.token,pointIds:s}},r=a&&a.dataCount||n.props.data.length,o=(0,F.Op)(i),l=0,c=r;R.Ex.show(l,c),o.onclose=function(e){},o.onmessage=function(e){var t=JSON.parse(e.data);if(t.end){R.gb.hide(),R.Ex.hide();var a=t.dataList[0];(a.successCount?w.Z.success:w.Z.info)({title:"\u4fdd\u5b58\u7f13\u51b2\u533a\u56fe\u5c42\u6210\u529f",content:(0,L.jsxs)("p",{children:["\u5171\u6709",(0,L.jsx)("span",{className:"blue",children:a.sum}),"\u6761\u6570\u636e\uff0c \u4fdd\u5b58\u6210\u529f",(0,L.jsx)("span",{className:"blue",children:a.successCount}),"\u6761\uff0c \u4fdd\u5b58\u5931\u8d25",(0,L.jsx)("span",{className:"blue",children:a.failCount||"0"}),"\u6761\u3002"]}),okText:"\u786e\u8ba4",className:"upload-compelete ant-confirm",onOk:function(){n.props.closeHandle(),n.props.saveSuccess(n.state.selectedLayer,r)}}),o.close()}else l+=1,R.Ex.show(l,c)}},n.saveLayer=function(e,t){var a=n.props.layerInfo,s=a&&a.dataCount||n.props.data.length;n.isOutOfDataCountLimits(s,e),n.setState({visible:!1,selectedLayer:t})},n.onClikeDataToMap=function(e){e.layerType=8,e.add=!0,n.props.saveSelectedDataItem(e)},n.onChangePage=function(e,t){n.setState({pageNumber:e,pageSize:t})},n.getColumns=function(){var e=n.props,t=e.userModules,a=e.type,s=n.state,i=s.pageNumber,r=s.pageSize,o=s.infos,l=s.layerInfo,c=n.state.data,d=(0,Z.Z)(c).splice([(i-1)*r],r),u=d[0]&&d[0].infos||[],p="zh_CN"===localStorage.getItem("locale"),h=[{title:(0,L.jsx)("div",{className:"table-title num fixedTit",children:(0,L.jsx)("span",{className:"text",children:(0,L.jsx)(z._H,{id:"components.table.number"})})}),dataIndex:"",key:"num",width:80,render:function(e,t,a){return(0,L.jsx)("div",{className:"num",children:(1===i?0:i-1)*r+(a+1)},"num"+a)}}];return u.forEach((function(e,s){0===s&&"\u5e8f\u53f7"===e.fieldName||h.push({title:(0,L.jsx)(H.Z,{title:e,index:s,titIteam:"add",infos:o,type:a,locale:p,layerInfo:l,userModules:t,resultType:n.resultType,noUpdateInfo:!0},s),dataIndex:e.fieldValue,key:e.fieldName,width:160,textWrap:"word-break",render:function(a,i,r){return(0,L.jsx)(M.Z,{record:i,index:r,cols:s+1,userModules:t,infos:o,text:d,locale:p,NoChange:!0,layerInfo:l,element:e,matchingInfo:n.props.matchingInfo},"infos"+s+r)}})})),h},n.getCurrNum=function(e,t){var a=0;return e.length&&e.forEach((function(e,s){e.layerCode.indexOf(t)>-1&&a++})),a},n.state={visible:!1,data:n.props.data||[],InfosByLayer:[],Display:"sheetPopover sheet_Popover",infos:n.props.data[0].infos,current:1,pageSize:10,pageNumber:1,resultType:-1,recordCount:0,positionStatus:n.props.menuStatus,layerInfo:n.props.layerInfo,type:n.props.type,searchTree:null,filterStatus:!1,layerData:[],checkedPoints:n.props.checkedPoints||[],selectDataIds:n.props.selectDataIds||[],statisticsData:null},n.getExtendColumns=n.getExtendColumns.bind((0,c.Z)(n)),n.getCheckedData=n.getCheckedData.bind((0,c.Z)(n)),n}return(0,n.Z)(a,[{key:"handleVisibleChange",value:function(){this.setState({visible:!1,data:[],Display:"",infos:[],pageNumber:1,pageSize:10,recordCount:"",backStartTable:!1}),this.filter=""}},{key:"Display",value:function(e){var t=this.refs.sheetPopover;e?this.setState({Display:"data-table-max"}):(this.setState({Display:" "}),E()(t).css({left:"355px"}))}},{key:"render",value:function(){var e=this,t=this.state,a=t.layerInfo,s=t.positionStatus,n=t.pageNumber,i=t.pageSize,r=t.filterStatus,o=t.recordCount,l=t.checkedPoints,c=t.Display,d=t.dispalyMax,p=this.state.data,h=(0,Z.Z)(p).splice([(n-1)*i],i);o=p.length;var f=l.length,m=(0,L.jsxs)("div",{className:"title table-title basedata-title",children:[(0,L.jsxs)("div",{className:"title-mes",children:[f?(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:"name",children:"\u5df2\u9009\u62e9"+f+"\u6761\u6570\u636e"}),(0,L.jsxs)("div",{className:" btn",onClick:function(){e.setState({visible:!0})},children:[(0,L.jsx)(I.B,{type:"icongenera-save-fill"}),(0,L.jsx)("span",{className:"text",children:"\u4fdd\u5b58\u81f3\u56fe\u5c42"})]})]}):(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:"name",children:"\u751f\u6210\u7ed3\u679c"}),(0,L.jsxs)("div",{className:" btn",onClick:function(){e.setState({visible:!0})},children:[(0,L.jsx)(I.B,{type:"icongenera-save-fill"}),(0,L.jsx)("span",{className:"text",children:"\u5168\u90e8\u4fdd\u5b58"})]})]}),(0,L.jsx)(R.B3,{canClear:!1,canSearch:!0,ref:"Search",style:{width:"220px",height:"32px"},placeholder:"\u8bf7\u8f93\u5165\u67e5\u627e\u7684\u5185\u5bb9",onPressEnter:function(t){e.setState({keyword:t},(function(){e.filterData(t)}))},clearInput:function(){e.setState({keyword:""},(function(){e.filterData("")}))}})]}),(0,L.jsx)("div",{className:"close btn-m",onClick:function(){e.props.closeHandle()},children:(0,L.jsx)(I.B,{type:"icongeneral-close-line"})}),(0,L.jsxs)("div",{className:"display-status btn-m",onClick:function(){e.setState({dispalyMax:!d},(function(){e.setState({sign:!1})}))},children:[(0,L.jsx)(I.B,{type:d?"icongeneral-shrink-line":"icongeneral-arrowsalt-line"}),d?"\u6536\u8d77":"\u653e\u5927"]})]}),y=this.getColumns(),v=E()("#root")[0].offsetHeight,S=E()("#root")[0].offsetWidth,x=E()(".table-title")[0]&&E()(".table-title")[0].offsetHeight||50,b=205-x,g=s?"data-table-left":"";d&&(g=s?"data-table-left-max":"data-table-max",b=v-100-x);var k=S-600,C={};return h.length>3&&(C.y=b),y.length>5&&(C.x=k),(0,L.jsxs)("div",{children:[(0,L.jsx)(B.Z,(0,u.Z)((0,u.Z)({ref:"Tablebox"},this.props),{},{columns:y,data:h,onChangePage:this.onChangePage,title:m,scroll:C,checkedDatas:l,onClikeDataToMap:this.onClikeDataToMap,selectedPointToOut:this.selectedPointToOut,filterStatus:r,layerInfo:a,recordCount:o,className:g+" data-table-prev",pageSizeOptions:["10","20","50","100"],Display:this.Display.bind(this),infos:this.state.infos,layerCode:a?a.code:"",handleVisibleChange:this.handleVisibleChange,type:this.props.type,tableId:this.props.tableId||"data_sheet",displayType:"sheetPopover sheet_Popover"===c,userInfo:this.props.userInfo})),(0,L.jsx)(W,{visible:this.state.visible,saveLayer:this.saveLayer,userModules:this.props.userModules,layerInfo:a,handleCancel:function(){e.setState({visible:!1})}})]})}}]),a}(o.Component))||g,K=q,G=(0,l.$j)((function(e){return{menuStatus:e.todos.menuStatus,collapsed:e.todos.collapsed,teamSetting:e.team.teamSettingInfo}}),{saveSelectedLayer:m.Ax,refreshCount:m.J,_getLayerTree:m.Nx,searchBySocket:y.T7,removeDatasFromLayer:y.rp})(k=function(e){(0,i.Z)(a,e);var t=(0,r.Z)(a);function a(e){var n;return(0,s.Z)(this,a),(n=t.call(this,e)).refreshHandlerT=function(e,t,a){n.props.refreshHandler(e,t),a&&n.setState({showResult:!1})},n.closeHandle=function(){n.setState({showResult:!1}),n.props.refreshHandler([],"remove-all")}
1,n.saveSuccess=function(e,t){e&&(n.props._getLayerTree(),e.eyeStatus&&(n.props.removeDatasFromLayer(e),n.props.searchBySocket(e)))},n.onSettingCompelete=n.onSettingCompelete.bind((0,c.Z)(n)),n.refreshHandler=n.refreshHandler.bind((0,c.Z)(n)),n.state={showResult:!1,data:[]},n}return(0,n.Z)(a,[{key:"onSettingCompelete",value:function(e,t,a){this.setState({showResult:!0,selectPointLayer:e,data:t,recordCount:a.recordCount},(function(){})),this.props.refreshHandler(t,"remove-all"),this.props.refreshHandler(t,"display")}},{key:"refreshHandler",value:function(e,t){"remove-all"===t&&this.refs.setting.clear(),this.props.refreshHandler(e,t)}},{key:"render",value:function(){var e=this.state,t=e.showResult,a=e.selectPointLayer,s=this.props,n=s.userInfo,i=s.userModules,r=s.teamAllFuns;return(0,L.jsxs)("div",{className:"workzone buffer-area-workzone",id:"workzone",children:[(0,L.jsx)(T,{ref:"setting",showResult:t,userInfo:n,userModules:i,teamAllFuns:r,closeHandle:this.closeHandle,onSettingCompelete:this.onSettingCompelete}),t&&(0,L.jsx)(K,{ref:"Sheet",obj:"basedata",kind:"layer",CustomClassName:"new_statistics-sheet_Popover",layerInfo:a,data:this.state.data,type:2,windowSize:!1,DisplayAll:!0,teamSetting:this.props.teamSetting,userModules:i,closeHandle:this.closeHandle,saveSuccess:this.saveSuccess,recordCount:this.state.recordCount})]})}}]),a}(o.Component))||k,Q=G,X=a(70246),Y=(0,l.$j)((function(e){return{userInfo:e.todos.userInfo,userModules:e.todos.userModules,navHidden:e.todos.navHidden,userFuns:e.todos.userFuns,teamAllFuns:e.team.teamAllFuns,mapInfo:e.mapList.mapInfo}}),{refreshDatasFromTable:function(e){return{type:X.M,payload:e}},clearBoxSearchResult:y.BA})(C=function(e){(0,i.Z)(a,e);var t=(0,r.Z)(a);function a(e){var n;return(0,s.Z)(this,a),(n=t.call(this,e)).refreshHandler=function(e,t){n.props.refreshDatasFromTable({datas:e,type:t})},n.selectData=function(e){n.refs.map.circle.selectByTable(e)},n.clickFeature=function(e){n.refs.workzone.refs.layer.clickFeature(e)},n.state={navHidden:!1},n}return(0,n.Z)(a,[{key:"componentWillUnmount",value:function(){this.props.refreshDatasFromTable({datas:[],type:"remove-all"}),this.props.clearBoxSearchResult()}},{key:"openNavigation",value:function(){this.state.navHidden&&this.refs.nav_switcher.open()}},{key:"render",value:function(){var e=this.state.navHidden,t=this.props,a=t.userInfo,s=t.teamAllFuns,n=t.userFuns,i=t.mapInfo;return(0,L.jsx)("div",{className:"mainMap-body-container buffer-area-container "+(e?" none-left":""),children:(0,L.jsx)(Q,{ref:"workzone",userInfo:a,refreshHandler:this.refreshHandler,userModules:n,teamAllFuns:s,mapId:i&&i.id||"",selectData:this.selectData},"0")})}}]),a}(o.Component))||C}}]);
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.