webpackJsonp([38],{"4Uzo":function(e,t,n){"use strict";function r(){function e(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}function t(e,t,n,r){var o=t&&t.prototype instanceof a?t:a,c=Object.create(o.prototype),u=new f(r||[]);return L(c,"_invoke",{value:s(e,n,u)}),c}function n(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function a(){}function o(){}function c(){}function u(t){["next","throw","return"].forEach(function(n){e(t,n,function(e){return this._invoke(n,e)})})}function i(e,t){function r(a,o,c,u){var i=n(e[a],e,o);if("throw"!==i.type){var s=i.arg,l=s.value;return l&&"object"==typeof l&&w.call(l,"__await")?t.resolve(l.__await).then(function(e){r("next",e,c,u)},function(e){r("throw",e,c,u)}):t.resolve(l).then(function(e){s.value=e,c(s)},function(e){return r("throw",e,c,u)})}u(i.arg)}var a;L(this,"_invoke",{value:function(e,n){function o(){return new t(function(t,a){r(e,n,t,a)})}return a=a?a.then(o,o):o()}})}function s(e,t,r){var a=I;return function(o,c){if(a===P)throw new Error("Generator is already running");if(a===M){if("throw"===o)throw c;return{value:y,done:!0}}for(r.method=o,r.arg=c;;){var u=r.delegate;if(u){var i=l(u,r);if(i){if(i===D)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===I)throw a=M,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=P;var s=n(e,t,r);if("normal"===s.type){if(a=r.done?M:k,s.arg===D)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=M,r.method="throw",r.arg=s.arg)}}}function l(e,t){var r=t.method,a=e.iterator[r];if(a===y)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=y,l(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),D;var o=n(a,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,D;var c=o.arg;return c?c.done?(t[e.resultName]=c.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=y),t.delegate=null,D):c:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,D)}function d(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function f(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(d,this),this.reset(!0)}function h(e){if(e||""===e){var t=e[x];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return t("end");if(a.tryLoc<=this.prev){var c=w.call(a,"catchLoc"),u=w.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&w.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),D}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;p(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:h(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=y),D}},v}var a=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("mAPx")),c=a(n("+TWC"));t.default={namespace:"command",state:{eventList:{list:[]},personList:{list:[],addressList:[],selectedId:null},attendanceList:{list:[],typeList:[],selectedId:null,selectedAttenData:null},attendancePersonList:{list:[],typeList:[],selectedId:null,selectedAttenData:null},clearInfoWindow:!1,tabIndex:{tabIndex1:"2",event:{tabIndex2:"1"},attendance:{tabIndex2:"1"},person:{tabIndex2:"1"}},mapStyle:"satellite",layoutAuthority:{attendanceMapShow:"",personMapShow:"",aPictureMapShow:"",defaultLayer:"",basisLayer:"",customLayer:"",additionalLayer:"",policeMapShow:"",attendancePermissions:"",basisLayerName:"",customLayerName:"",defaultLayerName:"",additionalName:"",domainPermissions:"",earthLayer:"",hardWarePermissions:"",peoplePermissions:"",commonLogo:"",darkLogo:"",additionalType:""},pictureMarkersList:{securityResource:[],securityCompany:[],attendancePoint:[],perception:[],attendance:[],attendancePolice:[],searchAddress:[],eventMarker:[]},securityResourceData:[],securityCompanyData:[],switchOpenStatus:{all:!1,left:!0,down:!0,right:!0,is3D:!1,search:!1,searchViews:!0,resourceViews:!1},mapLayerSwitchState:{searchViews:!1,resourceViews:!1,eventViews:!0},videoMember:[],videoType:0,videoGenre:0,recordStatus:0,selectAttendInfo:{selectAttendId:""},selectComponeyInfo:{selectComponeyId:""},selectComponyList:!1,policeData:{tab1:{},tab2:{},selectedId:null,personData:{}},searchAround:{securitySearch:[],awarenessSearch:[]},searchAroundList:{list:[],addressList:[],selectedId:null},earthPoint:null,gITFPoint:[{name:"rjyA",lng:118.051053,lat:24.607252,gIFTurl:"https://bcxin-vedio-prod.obs.myhuaweicloud.com/glTF/0914san-fbx2/0914san-fbx.gltf",isShow:!1,cityMeshes:null},{name:"rjyB",lng:118.048937,lat:24.611863,gIFTurl:"https://bcxin-vedio-prod.obs.myhuaweicloud.com/glTF/B-1/B-1.gltf",isShow:!1,cityMeshes:null}],object3Dlayer:null,backStepInfo:{},placeSearch:null},effects:{fetchEventList:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeEventList",payload:n});case 2:case"end":return e.stop()}},e)})()},setEventSelectIndex:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeEventSelectIndex",payload:n});case 2:case"end":return e.stop()}},e)})()},fetchPersonList:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changePersonList",payload:n});case 2:case"end":return e.stop()}},e)})()},fetchSearchAroundList:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeSearchAroundList",payload:n});case 2:case"end":return e.stop()}},e)})()},fetchAttendPoliceList:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeAttendPoliceList",payload:n});case 2:case"end":return e.stop()}},e)})()},fetchPersonAddressList:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changePersonAddressList",payload:n});case 2:case"end":return e.stop()}},e)})()},setPersonSelectIndex:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changePersonSelectIndex",payload:n});case 2:case"end":return e.stop()}},e)})()},setSearchMarkSelectIndex:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeSearchMarkSelectIndex",payload:n});case 2:case"end":return e.stop()}},e)})()},fetchAllAttendanceList:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeAllAttendanceList",payload:n});case 2:case"end":return e.stop()}},e)})()},fetchAllAttendanceTypeList:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeAllAttendanceTypeList",payload:n});case 2:case"end":return e.stop()}},e)})()},setSelectIndex:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeSelectIndex",payload:n});case 2:case"end":return e.stop()}},e)})()},setSelectedAttenData:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeSelectedAttenData",payload:n});case 2:case"end":return e.stop()}},e)})()},clearInfoWindow:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"clearInfoWindowData",payload:n});case 2:case"end":return e.stop()}},e)})()},setTabIndex:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeTabIndex",payload:n});case 2:case"end":return e.stop()}},e)})()},setMapStyle:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeMapStyle",payload:n});case 2:case"end":return e.stop()}},e)})()},setLayoutAuthority:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeLayoutAuthority",payload:n});case 2:case"end":return e.stop()}},e)})()},setPictureMarks:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changePictureMarks",payload:n});case 2:case"end":return e.stop()}},e)})()},setSecurityResourceData:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeSecurityResourceData",payload:n});case 2:case"end":return e.stop()}},e)})()},setSecurityCompanyData:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeSecurityCompanyData",payload:n});case 2:case"end":return e.stop()}},e)})()},setSwitchOpenStatus:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeSwitchOpenStatus",payload:n});case 2:case"end":return e.stop()}},e)})()},setMapLayerSwitchState:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeMapLayerSwitchState",payload:n});case 2:case"end":return e.stop()}},e)})()},initMapLayerSwitchState:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"initializeMapLayerSwitchState",payload:n});case 2:case"end":return e.stop()}},e)})()},fetchVideoType:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeVideoType",payload:n});case 2:case"end":return e.stop()}},e)})()},fetchVideoGenre:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeVideoGenre",payload:n});case 2:case"end":return e.stop()}},e)})()},fetchRecordStatus:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeRecordStatus",payload:n});case 2:case"end":return e.stop()}},e)})()},fetchVideoMemberList:function(e,t){var n=e.payload,a=t.call,o=t.put;return r().mark(function e(){var t,u;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o({type:"changeVideoMemberList",payload:n});case 2:if(n.type&&"add"!=n.type){e.next=8;break}return t=function(e){return new Promise(function(e){setTimeout(e,6e4)})},e.next=6,a(t,6e4);case 6:return e.next=8,o({type:"changeVideoMemberList",payload:(0,c.default)({},n,{type:"fail"})});case 8:if("leave"!=n.type){e.next=14;break}return u=function(e){return new Promise(function(e){setTimeout(e,2e3)})},e.next=12,a(u,2e3);case 12:return e.next=14,o({type:"changeVideoMemberList",payload:(0,c.default)({},n,{type:"delete"})});case 14:case"end":return e.stop()}},e)})()},setSelectAttendInfo:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeSelectAttendInfo",payload:n});case 2:case"end":return e.stop()}},e)})()},setSelectComponeyInfo:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeSelectComponeyInfo",payload:n});case 2:case"end":return e.stop()}},e)})()},setSelectComponyList:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeSelectComponyList",payload:n});case 2:case"end":return e.stop()}},e)})()},fetchPoliceData:function(e,t){var n=e.payload,a=(t.call,t.put);return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changePoliceData",payload:n});case 2:case"end":return e.stop()}},e)})()},setPoliceSelectIndex:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changePoliceSelectIndex",payload:n});case 2:case"end":return e.stop()}},e)})()},setSearchViewMark:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeSearchViewMark",payload:n});case 2:case"end":return e.stop()}},e)})()},setEarthPoint:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeEarthPoint",payload:n});case 2:case"end":return e.stop()}},e)})()},setGITFPoint:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeGITFPoint",payload:n});case 2:case"end":return e.stop()}},e)})()},setObject3Dlayer:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeObject3Dlayer",payload:n});case 2:case"end":return e.stop()}},e)})()},setBackStepInfo:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changeBackStepInfo",payload:n});case 2:case"end":return e.stop()}},e)})()},setPlaceSearch:function(e,t){var n=e.payload,a=t.put;return r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"changePlaceSearch",payload:n});case 2:case"end":return e.stop()}},e)})()}},reducers:(0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)({changeEventList:function(e,t){var n=t.payload;return(0,c.default)({},e,{eventList:(0,c.default)({},e.eventList,{list:n.list||[]})})},changeEventSelectIndex:function(e,t){var n=t.payload;return(0,c.default)({},e,{eventList:(0,c.default)({},e.eventList,{selectedId:n}),personList:(0,c.default)({},e.personList,{selectedId:null}),attendanceList:(0,c.default)({},e.attendanceList,{selectedId:null})})},changePersonList:function(e,t){var n=t.payload;return(0,c.default)({},e,{personList:(0,c.default)({},e.personList,{list:n.list||[]})})},changeSearchAroundList:function(e,t){var n=t.payload;return(0,c.default)({},e,{searchAroundList:(0,c.default)({},e.searchAroundList,{list:n.list||[]})})},changeAttendPoliceList:function(e,t){var n=t.payload;return(0,c.default)({},e,{personList:(0,c.default)({},e.personList,{list:n.list||[]})})},changePersonAddressList:function(e,t){var n=t.payload;return(0,c.default)({},e,{personList:(0,c.default)({},e.personList,{addressList:n.addressList||[]})})},changePersonSelectIndex:function(e,t){var n=t.payload;return console.log("changePersonSelectIndex",n),(0,c.default)({},e,{eventList:(0,c.default)({},e.eventList,{selectedId:null}),personList:(0,c.default)({},e.personList,{selectedId:n}),attendanceList:(0,c.default)({},e.attendanceList,{selectedId:null})})},changeAllAttendanceList:function(e,t){var n=t.payload;return(0,c.default)({},e,{attendanceList:(0,c.default)({},e.attendanceList,{list:n.attendanceList||[]})})},changeAllAttendanceTypeList:function(e,t){var n=t.payload;return(0,c.default)({},e,{attendanceList:(0,c.default)({},e.attendanceList,{typeList:n||[]})})},changeSelectIndex:function(e,t){var n=t.payload;return(0,c.default)({},e,{eventList:(0,c.default)({},e.eventList,{selectedId:null}),personList:(0,c.default)({},e.personList,{selectedId:null}),attendanceList:(0,c.default)({},e.attendanceList,{selectedId:n})})},changeSelectedAttenData:function(e,t){var n=t.payload;return(0,c.default)({},e,{attendanceList:(0,c.default)({},e.attendanceList,{selectedAttenData:n})})},clearInfoWindowData:function(e,t){var n=t.payload;return(0,c.default)({},e,{eventList:(0,c.default)({},e.eventList,{selectedId:null}),personList:(0,c.default)({},e.personList,{selectedId:null}),attendanceList:(0,c.default)({},e.attendanceList,{selectedId:null}),clearInfoWindow:n})},changeTabIndex:function(e,t){var n=t.payload;return(0,c.default)({},e,{tabIndex:(0,c.default)({},e.tabIndex,n)})},changeMapStyle:function(e,t){var n=t.payload;return(0,c.default)({},e,{mapStyle:n})},changeLayoutAuthority:function(e,t){var n=t.payload;return(0,c.default)({},e,{layoutAuthority:n})},changePictureMarks:function(e,t){var n=t.payload,r=e.pictureMarkersList[n.type];return"add"==n.options?r.push({name:n.name,data:n.markerData,info:n.pictureDatas}):r.splice(r.findIndex(function(e){return e.name==n.name}),r.length),console.log("pictureMarkersList",e.pictureMarkersList),console.log("markerList",e.pictureMarkersList),(0,c.default)({},e,{pictureMarkersList:(0,c.default)({},e.pictureMarkersList,(0,o.default)({},n.type,r))})},changeSecurityResourceData:function(e,t){var n=t.payload;return(0,c.default)({},e,{securityResourceData:n.dataList})},changeSecurityCompanyData:function(e,t){var n=t.payload;return(0,c.default)({},e,{securityCompanyData:n.dataList})},changeSwitchOpenStatus:function(e,t){var n=t.payload;return(0,c.default)({},e,{switchOpenStatus:(0,c.default)({},e.switchOpenStatus,(0,o.default)({},n.type,n.value))})},changeMapLayerSwitchState:function(e,t){var n=t.payload;return(0,c.default)({},e,{mapLayerSwitchState:(0,c.default)({},e.mapLayerSwitchState,(0,o.default)({},n.type,n.value))})},initializeMapLayerSwitchState:function(e,t){t.payload;return(0,c.default)({},e,{mapLayerSwitchState:{searchViews:!1,resourceViews:!1,eventViews:!1}})},changeVideoType:function(e,t){var n=t.payload;return(0,c.default)({},e,{videoType:n})},changeVideoGenre:function(e,t){var n=t.payload;return(0,c.default)({},e,{videoGenre:n})},changeRecordStatus:function(e,t){var n=t.payload;return(0,c.default)({},e,{recordStatus:n})},changeVideoMemberList:function(e,t){var n=t.payload;switch(console.log("changeVideoMemberList",n),n.type){case"peerJoin":var r=JSON.parse(JSON.stringify(e.videoMember)),a=r.findIndex(function(e){return e.mobilePhone==n.memberList.mobilePhone});return r[a]=n.memberList,(0,c.default)({},e,{videoMember:r});case"add":var r=JSON.parse(JSON.stringify(e.videoMember));return n.memberList.forEach(function(e){var t=r.findIndex(function(t){return t.mobilePhone==e.mobilePhone});-1==t?r.push(e):(r[t].status=e.status,r[t].id=e.id)}),(0,c.default)({},e,{videoMember:r});case"leave":var r=JSON.parse(JSON.stringify(e.videoMember)),a=r.findIndex(function(e){return e.mobilePhone==n.memberList.mobilePhone});return r[a]=n.memberList,(0,c.default)({},e,{videoMember:r});case"fail":for(var r=JSON.parse(JSON.stringify(e.videoMember)),o=0;o