(function(e){function t(t){for(var i,s,o=t[0],c=t[1],u=t[2],d=0,p=[];d2&&void 0!==arguments[2]?arguments[2]:{};Object(r["a"])(this,t),this.targetDomId=e,this.App=n,this.vueModulesCreator=i,this.instance=null}return Object(s["a"])(t,[{key:"isExist",value:function(){return!!this.instance}},{key:"showPage",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(n){var a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.instance){t.next=17;break}return a=this.App,o["a"].locale=u["EInternationalCode"].en,t.prev=3,t.next=6,c["a"].getI18nLocale();case 6:o["a"].locale=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](3),l["a"].error("entry.ts > showPage > getI18nLocale: ",t.t0);case 12:r={},this.vueModulesCreator.storeCreator&&(r.store=this.vueModulesCreator.storeCreator()),this.vueModulesCreator.routerCreator&&(r.router=this.vueModulesCreator.routerCreator(r.store)),this.instance=new d["a"](Object(i["a"])(Object(i["a"])({components:{App:a}},r),{},{i18n:o["a"],render:function(e){return e(a)}})),this.instance.$mount(this.targetDomId);case 17:s=document.querySelector(this.targetDomId),s&&(s.style.visibility="visible",s.style.opacity="1"),document.querySelector("html").classList.add(e.platform),n&&n(),Object(p["a"])(h["EColorTheme"].DARK);case 22:case"end":return t.stop()}}),t,this,[[3,9]])})));function n(e){return t.apply(this,arguments)}return n}()},{key:"hidePage",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.instance&&c["a"].hidePage(this,this.targetDomId,e)}}]),t}()}).call(this,n("4362"))},"09ab":function(e,t,n){"use strict";var i=n("69d7"),a=n.n(i);a.a},"0ac9":function(e,t,n){"use strict";var i,a,r,s,o,c,u,l,d,p,h,m,g,f,_,v,b,w,C,y,S,k,A,E,x,O,I,D,T,R,P,L,M,N,B,F,j,V,U,H,G,W,z,Y,q,$,K;n.r(t),n.d(t,"EColorTheme",(function(){return i})),n.d(t,"EUserState",(function(){return a})),n.d(t,"StreamState",(function(){return r})),n.d(t,"EScreenMode",(function(){return s})),n.d(t,"EPlayerMode",(function(){return o})),n.d(t,"EAlarmModeVal",(function(){return c})),n.d(t,"EScheduleCate",(function(){return u})),n.d(t,"EPartialExposureCtrl",(function(){return l})),n.d(t,"EAiDetectCate",(function(){return d})),n.d(t,"EGuardAction",(function(){return p})),n.d(t,"ESceneMode",(function(){return h})),n.d(t,"ECaptureMode",(function(){return m})),n.d(t,"EAutoDir",(function(){return g})),n.d(t,"EFtpStreamType",(function(){return f})),n.d(t,"EDateForm",(function(){return _})),n.d(t,"ETimeFmt",(function(){return v})),n.d(t,"ENasStream",(function(){return b})),n.d(t,"ENasBindState",(function(){return w})),n.d(t,"EAiTrackMode",(function(){return C})),n.d(t,"EConstantFrameRate",(function(){return y})),n.d(t,"EHdrMode",(function(){return S})),n.d(t,"ECoverChannel",(function(){return k})),n.d(t,"EEncType",(function(){return A})),n.d(t,"EVideoEncType",(function(){return E})),n.d(t,"EWiFiFreqPolicy",(function(){return x})),n.d(t,"EWiFiType",(function(){return O})),n.d(t,"ETwelveHourSign",(function(){return I})),n.d(t,"EMediaPlayState",(function(){return D})),n.d(t,"EAssemblyMethod",(function(){return T})),n.d(t,"EAiTrackLimitDirection",(function(){return R})),n.d(t,"EStreamType",(function(){return P})),n.d(t,"EStreamTypeInEncCfg",(function(){return L})),n.d(t,"EStreamSize",(function(){return M})),n.d(t,"EStreamCate",(function(){return N})),n.d(t,"EDirections",(function(){return B})),n.d(t,"EFishEyeImageType",(function(){return F})),n.d(t,"EFishEyeExpansionModel",(function(){return j})),n.d(t,"EFishEyeInstallType",(function(){return V})),n.d(t,"EVisitorLoudspeakerState",(function(){return U})),n.d(t,"EWifiKitAuthMode",(function(){return H})),n.d(t,"EWifiFreqType",(function(){return G})),n.d(t,"EBinningMode",(function(){return W})),n.d(t,"EOsdPos",(function(){return z})),n.d(t,"EPreviewReplayLimit",(function(){return Y})),n.d(t,"ENetType",(function(){return q})),n.d(t,"EPlayerLayout",(function(){return $})),n.d(t,"EDingDongNetState",(function(){return K})),function(e){e[e["DARK"]=0]="DARK",e[e["LIGHT"]=1]="LIGHT"}(i||(i={})),function(e){e[e["none"]=0]="none",e[e["add"]=1]="add",e[e["delete"]=2]="delete",e[e["modify"]=3]="modify"}(a||(a={})),function(e){e[e["Closed"]=0]="Closed",e[e["Opening"]=1]="Opening",e[e["Loading"]=2]="Loading",e[e["Playing"]=3]="Playing",e[e["Failed"]=4]="Failed"}(r||(r={})),function(e){e[e["None"]=-1]="None",e[e["Multi"]=0]="Multi",e[e["Single"]=1]="Single"}(s||(s={})),function(e){e[e["One"]=1]="One",e[e["TwoHorizontal"]=2.1]="TwoHorizontal",e[e["TwoVertical"]=2.2]="TwoVertical",e[e["Four"]=4]="Four",e[e["Six"]=6]="Six",e[e["Eight"]=8]="Eight",e[e["Nine"]=9]="Nine",e[e["Ten"]=10]="Ten",e[e["Thirteen"]=13]="Thirteen",e[e["Fourteen"]=14]="Fourteen",e[e["Sixteen"]=16]="Sixteen",e[e["TwentyFive"]=25]="TwentyFive",e[e["ThirtyTwo"]=32]="ThirtyTwo",e[e["ThirtySix"]=36]="ThirtySix"}(o||(o={})),function(e){e[e["NONE"]=0]="NONE",e[e["MD"]=1]="MD",e[e["VL"]=2]="VL",e[e["IO"]=3]="IO",e[e["BLIND"]=4]="BLIND",e[e["HDEXP"]=5]="HDEXP",e[e["HDFULL"]=6]="HDFULL",e[e["IPCONFLICT"]=7]="IPCONFLICT",e[e["NETCONNECT"]=8]="NETCONNECT",e[e["RF"]=9]="RF",e[e["FD"]=10]="FD",e[e["VS"]=11]="VS",e[e["ID"]=12]="ID",e[e["RFLPWR"]=13]="RFLPWR",e[e["RFTAMPER"]=14]="RFTAMPER",e[e["DONGLELOST"]=15]="DONGLELOST",e[e["PIR"]=16]="PIR",e[e["TIMING"]=17]="TIMING",e[e["PEOPLE"]=18]="PEOPLE",e[e["FACE"]=19]="FACE",e[e["VEHICLE"]=20]="VEHICLE",e[e["DOG_CAT"]=21]="DOG_CAT",e[e["AI_OTHER"]=22]="AI_OTHER",e[e["VISITOR"]=23]="VISITOR",e[e["UNKNOW"]=24]="UNKNOW",e[e["ALL"]=2147483647]="ALL"}(c||(c={})),function(e){e[e["NONE"]=0]="NONE",e[e["NORMAL"]=1]="NORMAL",e[e["MULTI"]=2]="MULTI"}(u||(u={})),function(e){e[e["DEFAULT"]=0]="DEFAULT",e[e["AUTO"]=1]="AUTO",e[e["MANUAL"]=2]="MANUAL"}(l||(l={})),function(e){e["PEOPLE"]="PEOPLE",e["VEHICLE"]="VEHICLE",e["DOG_CAT"]="DOG_CAT",e["FACE"]="FACE",e["MD"]="MD",e["OTHER"]="OTHER",e["PACKAGE"]="PACKAGE"}(d||(d={})),function(e){e[e["SET"]=0]="SET",e[e["SET_TIME"]=1]="SET_TIME",e[e["SET_IMG"]=2]="SET_IMG",e[e["GOTO"]=3]="GOTO"}(p||(p={})),function(e){e[e["OUTDOOR"]=0]="OUTDOOR",e[e["INDOOR"]=1]="INDOOR"}(h||(h={})),function(e){e[e["CLEAR"]=0]="CLEAR",e[e["BALANCE"]=1]="BALANCE",e[e["FLUENT"]=2]="FLUENT",e[e["CUSTOM"]=3]="CUSTOM"}(m||(m={})),function(e){e[e["CLOSE"]=0]="CLOSE",e[e["YMD"]=1]="YMD",e[e["YM"]=2]="YM"}(g||(g={})),function(e){e[e["MAIN_VIDEO_PIC"]=0]="MAIN_VIDEO_PIC",e[e["SUB_VIDEO_PIC"]=1]="SUB_VIDEO_PIC",e[e["EXT_VIDEO_PIC"]=2]="EXT_VIDEO_PIC",e[e["PIC"]=3]="PIC",e[e["MAIN_VIDEO"]=4]="MAIN_VIDEO",e[e["SUB_VIDEO"]=5]="SUB_VIDEO",e[e["EXT_VIDEO"]=6]="EXT_VIDEO"}(f||(f={})),function(e){e[e["MDY"]=0]="MDY",e[e["YMD"]=1]="YMD",e[e["DMY"]=2]="DMY"}(_||(_={})),function(e){e[e["TIME_24"]=0]="TIME_24",e[e["TIME_12"]=1]="TIME_12"}(v||(v={})),function(e){e[e["MAIN_STREAM"]=0]="MAIN_STREAM",e[e["SUB_STREAM"]=1]="SUB_STREAM",e[e["EXTEN_STREAM"]=2]="EXTEN_STREAM"}(b||(b={})),function(e){e[e["NONE"]=0]="NONE",e[e["BOUND"]=1]="BOUND"}(w||(w={})),function(e){e[e["NONE"]=0]="NONE",e[e["PT_ZOOM"]=1]="PT_ZOOM",e[e["DIGITAL_ZOOM"]=2]="DIGITAL_ZOOM",e[e["DIGITAL_ZOOM_FIRST"]=3]="DIGITAL_ZOOM_FIRST",e[e["PT_ZOOM_FIRST"]=4]="PT_ZOOM_FIRST"}(C||(C={})),function(e){e[e["NOT_SUPPORT"]=-1]="NOT_SUPPORT",e[e["IMAGE_QUALITY_FIRST"]=0]="IMAGE_QUALITY_FIRST",e[e["VIDEO_FLUENCY_FIRST"]=1]="VIDEO_FLUENCY_FIRST",e[e["MULTISTAGE_FRAME_REDUCTION"]=2]="MULTISTAGE_FRAME_REDUCTION"}(y||(y={})),function(e){e[e["CLOSE"]=0]="CLOSE",e[e["AUTO"]=1]="AUTO",e[e["OPEN"]=2]="OPEN"}(S||(S={})),function(e){e[e["WIDE"]=0]="WIDE",e[e["TRACK"]=1]="TRACK"}(k||(k={})),function(e){e[e["VBR"]=0]="VBR",e[e["CBR"]=1]="CBR"}(A||(A={})),function(e){e[e["H264"]=0]="H264",e[e["H265"]=1]="H265"}(E||(E={})),function(e){e[e["NONE"]=0]="NONE",e[e["PREFERRED_5G"]=1]="PREFERRED_5G",e[e["PREFERRED_2_4G"]=2]="PREFERRED_2_4G",e[e["ONLY_5G"]=3]="ONLY_5G",e[e["ONLY_2_4G"]=4]="ONLY_2_4G"}(x||(x={})),function(e){e[e["NONE"]=0]="NONE",e[e["NOT_SUPPORT_WIFI"]=1]="NOT_SUPPORT_WIFI",e[e["ONLY_SUPPORT_2_4G"]=2]="ONLY_SUPPORT_2_4G",e[e["SUPPORT_5G"]=3]="SUPPORT_5G"}(O||(O={})),function(e){e[e["AM"]=0]="AM",e[e["PM"]=1]="PM"}(I||(I={})),function(e){e[e["CLOSED"]=0]="CLOSED",e[e["LOADING"]=1]="LOADING",e[e["PLAYING"]=2]="PLAYING",e[e["FAILED"]=3]="FAILED"}(D||(D={})),function(e){e[e["POE"]=0]="POE",e[e["WIRING"]=1]="WIRING",e[e["POWER"]=2]="POWER"}(T||(T={})),function(e){e[e["LEFT"]=0]="LEFT",e[e["RIGHT"]=1]="RIGHT"}(R||(R={})),function(e){e[e["MAIN"]=0]="MAIN",e[e["SUB"]=1]="SUB",e[e["EXTERN"]=2]="EXTERN",e[e["WIDE_ANGLE_MAIN"]=3]="WIDE_ANGLE_MAIN",e[e["WIDE_ANGLE_SUB"]=4]="WIDE_ANGLE_SUB",e[e["TELEPHOTO_MAIN"]=5]="TELEPHOTO_MAIN",e[e["TELEPHOTO_SUB"]=6]="TELEPHOTO_SUB",e[e["TRACK_MAIN"]=7]="TRACK_MAIN",e[e["TRACK_SUB"]=8]="TRACK_SUB",e[e["CLIP"]=9]="CLIP"}(P||(P={})),function(e){e["mainstream"]="mainstream",e["substream"]="substream",e["extendstream"]="extendstream"}(L||(L={})),function(e){e[e["MAIN"]=0]="MAIN",e[e["EXTERN"]=1]="EXTERN",e[e["SUB"]=2]="SUB",e[e["CLIP"]=3]="CLIP"}(M||(M={})),function(e){e[e["BASE"]=0]="BASE",e[e["WIDE_ANGLE"]=1]="WIDE_ANGLE",e[e["TELEPHOTO"]=2]="TELEPHOTO",e[e["TRACK"]=3]="TRACK",e[e["CLIP"]=4]="CLIP"}(N||(N={})),function(e){e[e["TOP"]=0]="TOP",e[e["TOP_LEFT"]=1]="TOP_LEFT",e[e["TOP_RIGHT"]=2]="TOP_RIGHT",e[e["BOTTOM"]=3]="BOTTOM",e[e["BOTTOM_LEFT"]=4]="BOTTOM_LEFT",e[e["BOTTOM_RIGHT"]=5]="BOTTOM_RIGHT",e[e["LEFT"]=6]="LEFT",e[e["RIGHT"]=7]="RIGHT"}(B||(B={})),function(e){e[e["ORIGINAL"]=0]="ORIGINAL",e[e["EXPAND"]=1]="EXPAND"}(F||(F={})),function(e){e[e["FISHEYE"]=0]="FISHEYE",e[e["FOUR_VIEW"]=1]="FOUR_VIEW",e[e["HEMISPHERIC_VIEW"]=2]="HEMISPHERIC_VIEW",e[e["CYLINDRICAL_VIEW"]=3]="CYLINDRICAL_VIEW",e[e["DEGREE_180_VIEW"]=4]="DEGREE_180_VIEW",e[e["DEGREE_360_VIEW"]=5]="DEGREE_360_VIEW"}(j||(j={})),function(e){e[e["FLOOR_MOUNTING"]=0]="FLOOR_MOUNTING",e[e["TOP_MOUNTING"]=1]="TOP_MOUNTING",e[e["WALL_MOUNTING"]=2]="WALL_MOUNTING"}(V||(V={})),function(e){e[e["OFF"]=0]="OFF",e[e["ON"]=1]="ON"}(U||(U={})),function(e){e[e["AUTH_OPEN"]=0]="AUTH_OPEN",e[e["AUTH_SHARED"]=1]="AUTH_SHARED",e[e["AUTH_WPAPSK"]=2]="AUTH_WPAPSK",e[e["AUTH_WPA2PSK"]=3]="AUTH_WPA2PSK",e[e["AUTH_DETECT"]=4]="AUTH_DETECT",e[e["AUTH_WPA2PSK_WPA3SAE_MIXED"]=5]="AUTH_WPA2PSK_WPA3SAE_MIXED",e[e["AUTH_WPA3SAE"]=6]="AUTH_WPA3SAE",e[e["AUTH_BUTT"]=7]="AUTH_BUTT"}(H||(H={})),function(e){e[e["WIFI_TYPE_UNKNOWN"]=0]="WIFI_TYPE_UNKNOWN",e[e["WIFI_TYPE_2_4G"]=1]="WIFI_TYPE_2_4G",e[e["WIFI_TYPE_5G"]=2]="WIFI_TYPE_5G"}(G||(G={})),function(e){e[e["CLOSE"]=0]="CLOSE",e[e["AUTO"]=1]="AUTO"}(W||(W={})),function(e){e["HIDE"]="hide",e["TOP_LEFT"]="top-left",e["BOTTOM_LEFT"]="bottom-left",e["TOP_RIGHT"]="top-right",e["BOTTOM_RIGHT"]="bottom-right",e["TOP_CENTER"]="top-center",e["BOTTOM_CENTER"]="bottom-center"}(z||(z={})),function(e){e[e["ON"]=0]="ON",e[e["OFF"]=1]="OFF"}(Y||(Y={})),function(e){e[e["WIRE"]=0]="WIRE",e[e["SIM"]=1]="SIM",e[e["WIFI"]=2]="WIFI"}(q||(q={})),function(e){e[e["CLASSIC"]=0]="CLASSIC",e[e["BASIC"]=1]="BASIC"}($||($={})),function(e){e[e["INVALID"]=0]="INVALID",e[e["OFFLINE"]=1]="OFFLINE",e[e["ONLINE"]=2]="ONLINE"}(K||(K={}))},"0b32":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"range-input flex"},[n("div",{staticClass:"range-input-inner flex-between",class:{"disabled-input":e.disabled,"time-style":e.timeStyle,"is-focus":e.timeStyle&&e.isFocus}},[n("input",{directives:[{name:"model",rawName:"v-model.trim.number.lazy",value:e.inputLeft,expression:"inputLeft",modifiers:{trim:!0,number:!0,lazy:!0}}],staticClass:"button-text",attrs:{"reo-element":"",type:"text",disabled:e.disabled||e.isSetting,maxlength:e.maxLength},domProps:{value:e.inputLeft},on:{focus:function(t){e.isFocus=!0},blur:[function(t){e.isFocus=!1},function(t){return e.$forceUpdate()}],keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickEnter(t)},contextmenu:function(t){return t.stopPropagation(),e.showRightMenu(t)},change:function(t){e.inputLeft=e._n(t.target.value.trim())}}}),1!==e.separation||e.timeStyle?e._e():n("span",{staticClass:"range-input-whiffletree"}),2===e.separation||e.timeStyle?n("span",{staticClass:"range-input-colon button-text"},[e._v(":")]):e._e(),n("input",{directives:[{name:"model",rawName:"v-model.trim.number.lazy",value:e.inputRight,expression:"inputRight",modifiers:{trim:!0,number:!0,lazy:!0}}],staticClass:"button-text",attrs:{"reo-element":"",type:"text",disabled:e.disabled||e.isSetting,maxlength:e.maxLength},domProps:{value:e.inputRight},on:{focus:function(t){e.isFocus=!0},blur:[function(t){e.isFocus=!1},function(t){return e.$forceUpdate()}],keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickEnter(t)},contextmenu:function(t){return t.stopPropagation(),e.showRightMenu(t)},change:function(t){e.inputRight=e._n(t.target.value.trim())}}})]),e._t("default"),e.isSetting&&!e.warnClue?n("loadingImg",{staticClass:"loading-img-box"}):e._e(),e.warnClue&&!e.isSetting?n("span",{staticClass:"icon-client_warning warn-clue-icon"}):e._e()],2)},a=[],r=(n("5ded"),n("a9e3"),n("2b0e")),s=n("6ecd"),o=n("df7a"),c=r["a"].extend({name:"rangeInput",components:{loadingImg:s["a"]},props:{isSetting:{type:Boolean,default:!1},warnClue:{type:Boolean,default:!1},left:{type:[Number,String],required:!0},right:{type:[Number,String],required:!0},zeroize:{type:Boolean,default:!1},leftMin:Number,leftMax:Number,rightMin:Number,rightMax:Number,min:{type:Number,default:0},max:{type:Number,default:100},flag:{type:[String,Number],default:""},separation:{type:Number,default:1},disabled:{type:Boolean,default:!1},timeStyle:{type:Boolean,default:!1},closeSort:{type:Boolean,default:!1},sortReverse:{type:Boolean,default:!1},sortAsync:{type:Boolean,default:!1}},data:function(){return{isFocus:!1,dataLeft:0,dataRight:0}},computed:{maxLength:function(){return this.timeStyle?2:-1},inputLeft:{get:function(){return this.zeroize||this.timeStyle?this._zeroize(this.dataLeft):this.dataLeft},set:function(e){if(!/^[^0-9]+$/.test(String(e))){var t=Number(e),n=this.leftMax?this.leftMax:this.max,i=this.leftMin?this.leftMin:this.min;this.closeSort?this.dataLeft=Math.min(n,Math.max(i,t)):this.sortAsync?(this.dataLeft=Math.min(n,Math.max(i,t)),this.$data[this.higherDataString]1&&void 0!==n[1])||n[1],e.abrupt("return",null);case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"access",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"mkdir",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"unlink",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"rmdir",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"readdir",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"readFile",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"writeFile",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"copyFile",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"copyDir",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"rename",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()}]),e}(),o=new s},"127a":function(e,t,n){var i={"./en.json":"a0c2"};function a(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,e.exports=a,a.id="127a"},1308:function(e,t,n){"use strict";var i=n("1554"),a=n.n(i);a.a},1491:function(e,t,n){},"14c32":function(e,t,n){},1554:function(e,t,n){},"15af":function(e,t,n){},"165b":function(e,t,n){},"17eb":function(e,t,n){},1816:function(e,t,n){},"19d1":function(e,t,n){"use strict";var i=n("4b2a"),a=n.n(i);a.a},"1a69":function(e,t,n){"use strict";var i=n("4d60"),a=n.n(i);a.a},"1c67":function(e,t,n){"use strict";var i=n("cb70"),a=n.n(i);a.a},"1c70":function(e,t,n){e.exports=n.p+"img/motion_low.c824e0f7.png"},"1de2":function(e,t,n){},"1ef5":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACUAAAAcCAMAAADRNYZUAAAAt1BMVEUAAAB4eoVpdX1PWXN3eIR0eIN3eYZ4eoZ4eoZieI13eYZ3eYZ3eYV3eYR2eYZ4eoV0doJueH9zc38AneF3eoV3eoV3eoV3eYZ3eYV3eYV2eYZ2doQAld54eYZ4eYZ4eYZ3eYZ3e4QAnOB3eYR2eoV3eoZ4eYUAneF3eYZ2eYV3eYZ3eIYAneJzeIIAmt90dIcAnd0AnOEAnOEAnOEAnOAAneEAneEAnOIAnOEAnN8AneJ4eoYAneFcjRp0AAAAO3RSTlMA+QcEQinznoAM5pF3al0fGRQQ+9bQt7CYcD0tEeHbv6aFdmFP7dvPx4yJVzc0IyMa5rSbmpmHhGdINEmRgsUAAAE2SURBVDjLhZHnloIwEEYTqVIVpINUe1m3l+H9n2shZhFWjrk/OMNwGb4J6CGfH4jN2bZjtvVevyI2z/WRLV3sDYfYHC/NJS42P73elNdlSZLl6qnXjN/suv7qlCCFDmfXiUVdv3zT2lIxQOJrB57nS3XbiG5EZxVnRNFFEPcC6pjrSwB/OshoeYD3tNVRrmAt9O5nDiwiWptCaNJykgEOb9OX4HKkrbviNbs8I0+0nuaBRxy5URJXkqRFI2bEC2A1//uI2k46rUHMBRqhyY5LMo0fZOXxcKUAQ373c0KMjWFHUED+bwmLimQzsjT1NIsspRzQKIYIV3Zc+8qow+WA1ZPFmRoGZ0ShmylKRM9zC2S3UabzW070EK4yLMRi0p67ybIMaEhYlgotLCtqJZ8ZLFBAGuv/AqdWIXwv2Bk6AAAAAElFTkSuQmCC"},"1f32":function(e,t,n){"use strict";var i=n("c5ee"),a=n.n(i);a.a},2:function(e,t){},2103:function(e,t,n){},2151:function(e,t,n){},2210:function(e,t,n){},"22d4":function(e,t,n){"use strict";var i=n("3286"),a=n.n(i);a.a},"22e5":function(e,t,n){},"24da":function(e,t,n){},"263a":function(e,t,n){"use strict";var i=n("f479"),a=n.n(i);a.a},"277f":function(e,t,n){},2844:function(e,t,n){"use strict";var i=n("f996"),a=n.n(i);a.a},2875:function(e,t,n){"use strict";var i=n("f7bc"),a=n.n(i);a.a},"287c":function(e,t,n){"use strict";var i=n("3a8f"),a=n.n(i);a.a},"28d8":function(e,t,n){e.exports=n.p+"img/car_high.5b19da11.png"},"29c2":function(e,t,n){"use strict";var i=n("8964"),a=n.n(i);a.a},"2b76":function(e,t,n){},"2d5f":function(e,t,n){"use strict";var i=n("5e98"),a=n.n(i);a.a},"2e17":function(e,t,n){"use strict";var i=n("24da"),a=n.n(i);a.a},"2f73":function(e,t,n){e.exports=n.p+"img/motion_high.9e838aae.png"},3:function(e,t){},"306b":function(e,t,n){"use strict";var i=n("2103"),a=n.n(i);a.a},"30e3":function(e,t,n){},3286:function(e,t,n){},"33d0":function(e,t,n){},3498:function(e,t,n){"use strict";var i=n("5bf0"),a=n.n(i);a.a},"34d7":function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return _}));n("99af"),n("7db0"),n("caad"),n("45fc"),n("d3b7"),n("ac1f"),n("5319"),n("1276"),n("498a"),n("96cf");var i,a,r=n("1da1"),s=n("b85c"),o=n("d4ec"),c=n("bee2"),u=n("ade3"),l=n("1157"),d=n.n(l),p=n("56f8"),h=n("4a47"),m=n("69b8"),g=n("9354"),f=n("7da0");(function(e){e["Ftp"]="Ftp",e["Rec"]="Rec",e["Push"]="Push",e["Email"]="Email",e["Audio"]="Audio",e["Buzzer"]="Buzzer"})(a||(a={}));var _=(i={},Object(u["a"])(i,a.Audio,{cmdOfGet:"GetAudioAlarm",cmdOfSet:"SetAudioAlarm",cmdV20OfGet:"GetAudioAlarmV20",cmdV20OfSet:"SetAudioAlarmV20"}),Object(u["a"])(i,a.Buzzer,{cmdOfGet:"GetBuzzerAlarm",cmdOfSet:"SetBuzzerAlarm",cmdV20OfGet:"GetBuzzerAlarmV20",cmdV20OfSet:"SetBuzzerAlarmV20"}),Object(u["a"])(i,a.Email,{cmdOfGet:"GetEmail",cmdOfSet:"SetEmail",cmdV20OfGet:"GetEmailV20",cmdV20OfSet:"SetEmailV20"}),Object(u["a"])(i,a.Ftp,{cmdOfGet:"GetFtp",cmdOfSet:"SetFtp",cmdV20OfGet:"GetFtpV20",cmdV20OfSet:"SetFtpV20"}),Object(u["a"])(i,a.Push,{cmdOfGet:"GetPush",cmdOfSet:"SetPush",cmdV20OfGet:"GetPushV20",cmdV20OfSet:"SetPushV20"}),Object(u["a"])(i,a.Rec,{cmdOfGet:"GetRec",cmdOfSet:"SetRec",cmdV20OfGet:"GetRecV20",cmdV20OfSet:"SetRecV20"}),i),v=function(){function e(){Object(o["a"])(this,e),this.timeout=35e3,this.location="LOGIN"}return Object(c["a"])(e,[{key:"setLocation",value:function(e){this.location=e}},{key:"getLocation",value:function(){return this.location}},{key:"send",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json",a=t.find((function(e){return"Login"===e.cmd})),r=t.some((function(e){return["Login","GetAuthorization","SetAuthorization"].includes(e.cmd)})),s=!!a&&!!a.param&&!!a.param.Digest,o=JSON.stringify(t);return this.location=CGI.getLocation(),g["a"].debug("request params: "+o),!r&&h["a"].isValid()&&(o=h["a"].transform(o)),new Promise((function(r,c){d.a.ajax({url:e,type:"POST",contentType:i,timeout:n,data:o,xhr:function(){var e=new XMLHttpRequest;return t[0]&&("ExportImg"===t[0].cmd?e.responseType="blob":"ExportAudioFile"===t[0].cmd&&(e.responseType="arraybuffer")),e},success:function(t,n,i){if(a){if(s){var o;try{o=h["a"].recover(t)}catch(C){o=JSON.parse(t);var u=o[0]&&"Login"===o[0].cmd&&1===o[0].code&&o[0].error,l=o[0].error.auth_warning_info,d=o[0].error.rspCode;if(u&&l){var g="";return g=l.unlock_time>0?m["a"].t("locked_account_error",{s1:p["a"].getInfo(d).msg,s2:Math.ceil(l.unlock_time/60)}):m["a"].t("lock_account_error",{s1:p["a"].getInfo(d).msg,s2:l.remain_times}),c(p["a"].getInfo(d,g,!0))}if(!u||-7!==o[0].error.rspCode&&-105!==o[0].error.rspCode&&-502!==o[0].error.rspCode)return c(p["a"].getInfo(4294967292))}return r(JSON.stringify(o))}var f=i.getResponseHeader("WWW-Authenticate");if(f){var _=f.replace("Digest",""),v=_.split(","),b=function(e){for(var t="",n=0;n1&&void 0!==arguments[1]?arguments[1]:"";if(["ExportImg","ExportAudioFile"].includes(i))return e;if(CGI.getLocation()!==this.location)throw p["a"].getInfo(4294967290);try{n=["Login","GetAuthorization","SetAuthorization"].includes(i)?JSON.parse(e):h["a"].recover(e),g["a"].debug("response data: "+JSON.stringify(n)),t=i?n[0]:n}catch(u){if(i)throw p["a"].getInfo(4294967292);if(t=JSON.parse(e),1!==t.length||"Unknown"!==t[0].cmd||1!==t[0].code||!t[0].error||-6!==t[0].error.rspCode)throw p["a"].getInfo(4294967292)}if(i){if(!t)throw p["a"].getInfo(4294967294);var a=t.cmd;if(a!==i)throw p["a"].getInfo(4294967295);if(0!==t.code)throw-6!==t.code&&-27!==t.code&&-502!==t.code||(bc_alert("alert.Login_expired","error"),setTimeout((function(){ControllerMain.onLogout()}),2e3)),p["a"].getInfo(t.error.rspCode,t.error.detail)}else{var r,o=Object(s["a"])(t);try{for(o.s();!(r=o.n()).done;){var c=r.value;if(!c)throw p["a"].getInfo(4294967294);if(0!==c.code)throw p["a"].getInfo(c.error.rspCode,c.error.detail)}}catch(l){o.e(l)}finally{o.f()}}return t}},{key:"sendCommandLogin",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.send("cgi-bin/api.cgi?cmd=Login",[{cmd:"Login",action:0,param:t}],this.timeout);case 3:return n=e.sent,e.abrupt("return",this.getCheckedData(n,"Login"));case 7:throw e.prev=7,e.t0=e["catch"](0),e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"sendCommandWithoutToken",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,n,i,a,r){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.send("cgi-bin/api.cgi?cmd=".concat(t),[{cmd:t,action:i,param:Object(f["b"])(n)}],a||this.timeout,r);case 3:return s=e.sent,e.abrupt("return",this.getCheckedData(s,t));case 7:throw e.prev=7,e.t0=e["catch"](0),e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(t,n,i,a,r){return e.apply(this,arguments)}return t}()},{key:"sendCommand",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,n,i,a,r){var s,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=ControllerLogin.getQueryDataByCount(["cmd="+t],t),o="",-1!==s&&(s.count.free=!1,o="&".concat(s.query)),e.prev=3,e.next=6,this.send("cgi-bin/api.cgi?token=".concat(h["a"].recover2Str(ControllerLogin.token)).concat(o),[{cmd:t,action:i,param:Object(f["b"])(n)}],a||this.timeout,r);case 6:return c=e.sent,-1!==s&&(s.count.free=!0),e.abrupt("return",this.getCheckedData(c,t));case 11:throw e.prev=11,e.t0=e["catch"](3),-1!==s&&(s.count.free=!0),e.t0;case 15:case"end":return e.stop()}}),e,this,[[3,11]])})));function t(t,n,i,a,r){return e.apply(this,arguments)}return t}()},{key:"sendCommandsAll",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){var i,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=ControllerLogin.getQueryDataByCount([],JSON.stringify(t)),a="",-1!==i&&(i.count.free=!1,a="&".concat(i.query)),e.prev=3,e.next=6,this.send("cgi-bin/api.cgi?token=".concat(h["a"].recover2Str(ControllerLogin.token)).concat(a),t,n||this.timeout);case 6:return r=e.sent,-1!==i&&(i.count.free=!0),e.abrupt("return",this.getCheckedData(r));case 11:throw e.prev=11,e.t0=e["catch"](3),-1!==i&&(i.count.free=!0),e.t0;case 15:case"end":return e.stop()}}),e,this,[[3,11]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"windowOpen",value:function(e){window.open("cgi-bin/api.cgi?cmd=".concat(e,"&token=").concat(h["a"].recover2Str(ControllerLogin.token)),"_blank")}}]),e}(),b=new v},3628:function(e,t,n){"use strict";var i=n("af0c"),a=n.n(i);a.a},"386b":function(e,t,n){},"39b5":function(e,t,n){},"3a8f":function(e,t,n){},"3af5":function(e,t,n){},"3b1e":function(e,t){e.exports="data:image/png;base64,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"},"3c0f":function(e,t,n){"use strict";var i=n("6112"),a=n.n(i);a.a},"3cfc":function(e,t,n){"use strict";var i=n("2210"),a=n.n(i);a.a},"3d1b":function(e,t,n){e.exports=n.p+"img/infrared_on.a0633d1d.png"},"3d36":function(e,t,n){"use strict";(function(e){n("99af"),n("b0c0"),n("a9e3"),n("b680"),n("96cf");var i=n("1da1"),a=n("2b0e"),r=n("aa18"),s=n("9354"),o=n("6ecd"),c=n("b1ac"),u=n("a36f"),l=n("ec26"),d=n("ffa8"),p=n("bf97"),h=n("11b7"),m=n("74d4"),g=n("9dd4");t["a"]=a["a"].extend({components:{loadingImg:o["a"],cacheImgLossTip:c["a"]},props:{lineWidth:{type:Number,default:20}},data:function(){return{partialExposure:{},partialExposureRect:[],drawValue:!1,canvasWidth:660,canvasHeight:370,drawAreaWrapWidth:660,drawAreaWrapHeight:370,normalDrawAreaWrapWidth:660,normalDrawAreaWrapHeight:370,imgWidthHeightRatio:660/370,isFullscreen:!1,cellWidth:0,cellHeight:0,isMouseDown:!1,isMouseMove:!1,preMoveX:0,preMoveY:0,device:{},channels:[],urlQueryId:l["a"](),loadingSnap:!1,isInitingBgImg:!1,getCacheImgFailed:!1}},computed:{columnNum:function(){return this.partialExposureRect[0]?this.partialExposureRect[0].length:0},setScheduleCallback:function(){return this.$store.getters.setScheduleCallback},handle:function(){return this.$store.getters.deviceHandle},channel:function(){return this.channels[this.$store.getters.dialogChannelIndex]},fileImg:function(){if(!this.channel)return"";var t=r["a"].IS_CLIENT?"?"+this.urlQueryId:"",n=r["a"].IS_CLIENT?this.channel.cacheImagePath:this.channel.updateCacheImagePath();return("win32"!==e.platform&&r["a"].IS_CLIENT?"file://":"")+n+t}},watch:{handle:{handler:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_DIALOG_LOADING",!0),n.next=3,p["a"].getDeviceWithHandle(e);case 3:return t.device=n.sent,n.next=6,t.device.getChannels();case 6:t.channels=n.sent,t.$store.commit("HANDLE_DIALOG_LOADING",!1);case 8:case"end":return n.stop()}}),n)})))()},immediate:!0},channel:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e){n.next=17;break}return n.prev=1,n.next=4,e.live.updateCacheImage(0,1);case 4:t.urlQueryId=l["a"](),t.getCacheImgFailed=!1,t.onFileImgChange(),n.next=16;break;case 9:return n.prev=9,n.t0=n["catch"](1),s["a"].error("partialExposure.vue > watch channel > updateCacheImage: ",n.t0),n.next=14,h["a"].getStat(e.cacheImagePath);case 14:i=!!n.sent,i||(t.getCacheImgFailed=!0);case 16:t.isInitingBgImg=!1;case 17:case"end":return n.stop()}}),n,null,[[1,9]])})))()}},mounted:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.isInitingBgImg=!0,m["a"].handleEventListener("blur",e.mouseUp),e.partialExposure=e.$store.getters.isp.partialExposure,e.partialExposureUpdate(),e.adjustCellSize(),e.isFullscreen||(e.drawAreaWrapWidth=e.canvasWidth,e.drawAreaWrapHeight=e.canvasHeight),e.normalDrawAreaWrapWidth=e.drawAreaWrapWidth,e.normalDrawAreaWrapHeight=e.drawAreaWrapHeight,e.$nextTick((function(){e.drawCell()})),document.onfullscreenchange=Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(s["a"].debug("partialExposure.vue > fullscreenchange: ".concat(!!document.fullscreenElement)),document.fullscreenElement){t.next=13;break}if(e.isFullscreen=!1,window.removeEventListener("resize",e.resizeDrawAreaInFullscreenMode),e.$emit("dialogMaskScale",e.isFullscreen),!r["a"].IS_CLIENT){t.next=8;break}return t.next=8,g["a"].setCurWindowFullScreen(!1).catch((function(e){return s["a"].error("partialExposure.vue > fullscreenchange > setCurWindowFullScreen",e)}));case 8:e.drawAreaWrapWidth=e.normalDrawAreaWrapWidth,e.drawAreaWrapHeight=e.normalDrawAreaWrapHeight,e.updateDrawAreaSizeForNotStretch(),t.next=16;break;case 13:e.isFullscreen=!0,e.$emit("dialogMaskScale",e.isFullscreen),e.resizeDrawAreaInFullscreenMode();case 16:case"end":return t.stop()}}),t)})));case 10:case"end":return t.stop()}}),t)})))()},methods:{scaleDialog:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isFullscreen){t.next=9;break}if(!r["a"].IS_CLIENT){t.next=4;break}return t.next=4,g["a"].setCurWindowFullScreen(!0).catch((function(e){return s["a"].error("partialExposure.vue > scaleDialog > setCurWindowFullScreen",e)}));case 4:window.addEventListener("resize",e.resizeDrawAreaInFullscreenMode),n=document.querySelector(".remote-config .dialog-mask .dialog-content"),n.requestFullscreen().catch((function(t){s["a"].error("partialExposure.vue ".concat(e.device.name," ").concat(e.channel.name," scaleDialog requestFullscreen: "),t)})),t.next=10;break;case 9:document.exitFullscreen();case 10:case"end":return t.stop()}}),t)})))()},resizeDrawAreaInFullscreenMode:function(){if(this.isFullscreen){var e=document.querySelector(".remote-config .dialog-mask .dialog-content");this.drawAreaWrapWidth=e.offsetWidth-56,this.drawAreaWrapHeight=e.offsetHeight-250,this.updateDrawAreaSizeForNotStretch()}},closeDialog:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.isFullscreen){t.next=4;break}if(!r["a"].IS_CLIENT){t.next=4;break}return t.next=4,g["a"].setCurWindowFullScreen(!1).catch((function(e){return s["a"].error("partialExposure.vue > closeDialog > setCurWindowFullScreen",e)}));case 4:e.$emit("dialogMaskScale",!1),window.removeEventListener("resize",e.resizeDrawAreaInFullscreenMode),e.$store.commit("SET_DIALOGID","");case 7:case"end":return t.stop()}}),t)})))()},onFileImgChange:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=0,i=0,t.next=4,Object(d["u"])(e.fileImg).then((function(e){n=e.width,i=e.height})).catch((function(){return null}));case 4:if(n&&i&&(n/i).toFixed(2)!==e.imgWidthHeightRatio.toFixed(2)){t.next=6;break}return t.abrupt("return");case 6:e.imgWidthHeightRatio=n/i,e.updateDrawAreaSizeForNotStretch();case 8:case"end":return t.stop()}}),t)})))()},updateDrawAreaSizeForNotStretch:function(){var e=this;this.drawAreaWrapWidth/this.drawAreaWrapHeight<=this.imgWidthHeightRatio?(this.canvasWidth=this.drawAreaWrapWidth,this.canvasHeight=this.canvasWidth/this.imgWidthHeightRatio,this.adjustCellSize()):(this.canvasHeight=this.drawAreaWrapHeight,this.canvasWidth=this.canvasHeight*this.imgWidthHeightRatio,this.adjustCellSize()),this.isFullscreen||(this.drawAreaWrapWidth=Math.max(this.canvasWidth,this.drawAreaWrapWidth),this.drawAreaWrapHeight=Math.max(this.canvasHeight,this.drawAreaWrapHeight)),this.$nextTick((function(){e.drawCell()}))},adjustCellSize:function(){this.isFullscreen?(this.cellWidth=Math.floor(this.canvasWidth/this.partialExposure.width),this.cellHeight=Math.floor(this.canvasHeight/this.partialExposure.height)):(this.cellWidth=Math.round(this.canvasWidth/this.partialExposure.width),this.cellHeight=Math.round(this.canvasHeight/this.partialExposure.height)),this.canvasWidth=this.cellWidth*this.partialExposure.width,this.canvasHeight=this.cellHeight*this.partialExposure.height},partialExposureUpdate:function(){this.partialExposureRect=[];for(var e=0;ethis.canvasHeight||n>this.canvasWidth)){var i=Math.floor(n/this.cellWidth),a=Math.floor(t/this.cellHeight);this.$set(this.partialExposureRect[a],i,!this.partialExposureRect[a][i]),this.drawCell()}}},mouseDown:function(e){this.isMouseMove=!1,this.isMouseDown=!0,this.preMoveX=e.offsetX,this.preMoveY=e.offsetY;var t=Math.floor(e.offsetX/this.cellWidth),n=Math.floor(e.offsetY/this.cellHeight);this.drawValue=!this.partialExposureRect[n][t],window.addEventListener("mouseup",this.mouseUp)},mouseMove:function(e){if(this.isMouseDown){this.isMouseMove=!0;var t=this.$refs.canvas;if(t){var n=t.getContext("2d");if(n){for(var i=Math.max(Math.floor(Math.min(this.preMoveX,e.offsetX)/this.cellWidth),0),a=Math.max(Math.floor(Math.min(this.preMoveY,e.offsetY)/this.cellHeight),0),r=Math.min(Math.floor(Math.max(this.preMoveX,e.offsetX)/this.cellWidth),this.columnNum-1),s=Math.min(Math.floor(Math.max(this.preMoveY,e.offsetY)/this.cellHeight),this.partialExposureRect.length-1),o=0;o=a&&o<=s&&c>=i&&c<=r;u&&this.$set(this.partialExposureRect[o],c,this.drawValue)}this.drawCell()}}}},mouseUp:function(e){this.isMouseDown=!1,window.removeEventListener("mouseup",this.mouseUp)},save:function(){for(var e=0;e=0&&this.disabledChannels.splice(i,1)}this.$emit("ableChannelNumChange",this.channels.length-this.disabledChannels.length)}}}),l=u,d=(n("e620"),n("2877")),p=Object(d["a"])(l,i,a,!1,null,"3233ba16",null);t["a"]=p.exports},"4d16":function(e,t,n){"use strict";var i=n("22e5"),a=n.n(i);a.a},"4d36":function(e,t,n){"use strict";var i=n("15af"),a=n.n(i);a.a},"4d60":function(e,t,n){},"4d7e":function(e,t,n){},"4d7f":function(e,t,n){"use strict";var i=n("2151"),a=n.n(i);a.a},"4de6":function(e,t,n){},"4e0b":function(e,t,n){},"4e4a":function(e,t,n){"use strict";(function(e){n("99af"),n("b0c0"),n("b680"),n("ac16");var i,a,r=n("5530"),s=(n("96cf"),n("1da1")),o=n("ade3"),c=n("2b0e"),u=n("bf3b"),l=n("df7a"),d=n("0ac9"),p=n("69b8"),h=n("9030"),m=n("79fe"),g=n.n(m),f=n("6c8c"),_=n.n(f),v=n("6370"),b=n.n(v),w=n("b595"),C=n.n(w),y=n("b928"),S=n.n(y),k=n("28d8"),A=n.n(k),E=n("f697"),x=n.n(E),O=n("99b2"),I=n.n(O),D=n("c91b"),T=n.n(D),R=n("aa18"),P=n("ffa8"),L=n("9354"),M=n("ec26"),N=n("6ecd"),B=n("b1ac"),F=n("a36f"),j=n("11b7"),V=n("7d9f");(function(e){e["NONE"]="none",e["MIN"]="min",e["MAX"]="max"})(i||(i={})),function(e){e["NONE"]="none",e["CREATE"]="create",e["MOVE"]="move",e["RESIZE"]="resize"}(a||(a={})),t["a"]=c["a"].extend({name:"sensitivitySize",components:{loadingImg:N["a"],cacheImgLossTip:B["a"]},data:function(){var e,t,n,r,s,c,u,l,m,f;return{EAiDetectCate:d["EAiDetectCate"],sensitivityEffect:(f={},Object(o["a"])(f,d["EAiDetectCate"].PEOPLE,{icon:"icon-client_motion",copy:p["a"].t("common_ai_human_option"),img:(e={},Object(o["a"])(e,h["a"].LOW,g.a),Object(o["a"])(e,h["a"].MIDDLE,_.a),Object(o["a"])(e,h["a"].HIGH,b.a),e),des:(t={},Object(o["a"])(t,h["a"].LOW,p["a"].t("alarm_settings_person_sensitivity_low_description")),Object(o["a"])(t,h["a"].MIDDLE,p["a"].t("alarm_settings_person_sensitivity_mid_description")),Object(o["a"])(t,h["a"].HIGH,p["a"].t("alarm_settings_person_sensitivity_high_description")),t)}),Object(o["a"])(f,d["EAiDetectCate"].VEHICLE,{icon:"icon-client_motion_low",copy:p["a"].t("common_ai_vehicle_option"),img:(n={},Object(o["a"])(n,h["a"].LOW,C.a),Object(o["a"])(n,h["a"].MIDDLE,S.a),Object(o["a"])(n,h["a"].HIGH,A.a),n),des:(r={},Object(o["a"])(r,h["a"].LOW,p["a"].t("alarm_settings_vehicle_sensitivity_low_description")),Object(o["a"])(r,h["a"].MIDDLE,p["a"].t("alarm_settings_vehicle_sensitivity_mid_description")),Object(o["a"])(r,h["a"].HIGH,p["a"].t("alarm_settings_vehicle_sensitivity_high_description")),r)}),Object(o["a"])(f,d["EAiDetectCate"].DOG_CAT,{icon:"icon-ai_alarm_pet",copy:p["a"].t("common_ai_pet_option"),img:(s={},Object(o["a"])(s,h["a"].LOW,x.a),Object(o["a"])(s,h["a"].MIDDLE,I.a),Object(o["a"])(s,h["a"].HIGH,T.a),s),des:(c={},Object(o["a"])(c,h["a"].LOW,p["a"].t("alarm_settings_animal_sensitivity_low_description")),Object(o["a"])(c,h["a"].MIDDLE,p["a"].t("alarm_settings_animal_sensitivity_mid_description")),Object(o["a"])(c,h["a"].HIGH,p["a"].t("alarm_settings_animal_sensitivity_high_description")),c)}),Object(o["a"])(f,d["EAiDetectCate"].FACE,{icon:"icon-client_motion",copy:p["a"].t("common_ai_face_option"),img:(u={},Object(o["a"])(u,h["a"].LOW,g.a),Object(o["a"])(u,h["a"].MIDDLE,_.a),Object(o["a"])(u,h["a"].HIGH,b.a),u),des:(l={},Object(o["a"])(l,h["a"].LOW,p["a"].t("alarm_settings_person_sensitivity_low_description")),Object(o["a"])(l,h["a"].MIDDLE,p["a"].t("alarm_settings_person_sensitivity_mid_description")),Object(o["a"])(l,h["a"].HIGH,p["a"].t("alarm_settings_person_sensitivity_high_description")),l)}),Object(o["a"])(f,d["EAiDetectCate"].PACKAGE,{icon:"icon-client_package",copy:p["a"].t("common_ai_package_option"),des:(m={},Object(o["a"])(m,h["a"].LOW,p["a"].t("alarm_settings_package_sensitivity_low_description")),Object(o["a"])(m,h["a"].MIDDLE,p["a"].t("alarm_settings_package_sensitivity_mid_description")),Object(o["a"])(m,h["a"].HIGH,p["a"].t("alarm_settings_package_sensitivity_high_description")),m)}),f),positionFlags:[F["EPositionFlags"].NW,F["EPositionFlags"].NE,F["EPositionFlags"].SW,F["EPositionFlags"].SE],EMousemoveCate:a,crrEMousemoveCate:a.NONE,ESizeCate:i,needShaking:null,mask:{},isMouseDown:!1,selected:i.NONE,startClientX:0,startClientY:0,crrMaskBaseY:0,crrMaskBaseX:0,maskWrapSize:{clientTop:0,clientLeft:0,width:0,height:0},device:{},channels:[],crrResizeMaskPosition:F["EPositionFlags"].NW,crrResizeMousePosition:F["EPositionFlags"].NW,urlQueryId:Object(M["a"])(),loadingSnap:!1,isInitingBgImg:!1,getCacheImgFailed:!1,drawAreaWrapWidth:660,drawAreaWrapHeight:370,drawAreaWidth:660,drawAreaHeight:370,normalDrawAreaWrapWidth:660,normalDrawAreaWrapHeight:370,imgWidthHeightRatio:660/370,isFullscreen:!1}},mounted:function(){var e=this;this.isInitingBgImg=!0,l["a"].handleEventListener("blur",this.mouseUp),this.updateMaskWrapSize(),this.aiDetectCfgTargetUpdate(),document.onfullscreenchange=Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(L["a"].debug("sensitivitySize.vue > fullscreenchange: ".concat(!!document.fullscreenElement)),document.fullscreenElement){t.next=13;break}if(e.isFullscreen=!1,window.removeEventListener("resize",e.resizeDrawAreaInFullscreenMode),e.$emit("dialogMaskScale",e.isFullscreen),!R["a"].IS_CLIENT){t.next=8;break}return t.next=8,V["a"].setCurWindowFullScreen(!1).catch((function(e){return L["a"].error("sensitivitySize.vue > fullscreenchange > setCurWindowFullScreen",e)}));case 8:e.drawAreaWrapWidth=e.normalDrawAreaWrapWidth,e.drawAreaWrapHeight=e.normalDrawAreaWrapHeight,e.updateDrawAreaSizeForNotStretch(),t.next=16;break;case 13:e.isFullscreen=!0,e.$emit("dialogMaskScale",e.isFullscreen),e.resizeDrawAreaInFullscreenMode();case 16:case"end":return t.stop()}}),t)})))},computed:{setScheduleCallback:function(){return this.$store.getters.setScheduleCallback},sensitivityCate:function(){return this.$store.getters.scheduleType},supportAiAnimal:function(){return this.$store.getters.supportAiAnimal},aiDetectCfg:function(){return this.$store.getters.aiDetectCfg},handle:function(){return this.$store.getters.deviceHandle},channel:function(){return this.channels[this.$store.getters.dialogChannelIndex]},fileImg:function(){if(!this.channel)return"";var t=(R["a"].IS_CLIENT?"?":"&")+this.urlQueryId,n=R["a"].IS_CLIENT?this.channel.cacheImagePath:this.channel.updateCacheImagePath();return("win32"!==e.platform&&R["a"].IS_CLIENT?"file://":"")+n+t}},watch:{handle:{handler:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,u["a"].getDeviceWithHandle(e.handle);case 3:return e.device=t.sent,t.next=6,e.device.getChannels();case 6:e.channels=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),L["a"].error("sensitivitySize.vue > watch handle > getDeviceWithHandle or getChannels: ",t.t0);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))()},immediate:!0},channel:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e){n.next=17;break}return n.prev=1,n.next=4,e.live.updateCacheImage(0,1);case 4:t.urlQueryId=Object(M["a"])(),t.getCacheImgFailed=!1,t.onFileImgChange(),n.next=16;break;case 9:return n.prev=9,n.t0=n["catch"](1),L["a"].error("sensitivitySize.vue > watch channel > updateCacheImage: ",n.t0),n.next=14,j["a"].getStat(e.cacheImagePath);case 14:i=!!n.sent,i||(t.getCacheImgFailed=!0);case 16:t.isInitingBgImg=!1;case 17:case"end":return n.stop()}}),n,null,[[1,9]])})))()}},methods:{getEffect:function(e,t){return Object(P["q"])(this.sensitivityEffect,"".concat(e,".").concat(t),"".concat(d["EAiDetectCate"].PEOPLE,".").concat(t))},updateMaskWrapSize:function(){var e=this.$refs.maskWrap,t=e.getBoundingClientRect();this.maskWrapSize={clientTop:t.top,clientLeft:t.left,width:e.offsetWidth,height:e.offsetHeight}},scaleMasks:function(e,t){var n={},a=this.mask[i.MIN],r=this.mask[i.MAX];a&&(n[i.MIN]={top:a.top*t,left:a.left*e,width:a.width*e,height:a.height*t}),r&&(n[i.MAX]={top:r.top*t,left:r.left*e,width:r.width*e,height:r.height*t}),this.mask=n},aiDetectCfgTargetUpdate:function(){var e=this.aiDetectCfg.minTargetWidth*this.maskWrapSize.width,t=this.aiDetectCfg.minTargetHeight*this.maskWrapSize.height;e&&t&&this.$set(this.mask,i.MIN,{top:(this.maskWrapSize.height-t)/2,left:0,width:e,height:t});var n=this.aiDetectCfg.maxTargetWidth*this.maskWrapSize.width,a=this.aiDetectCfg.maxTargetHeight*this.maskWrapSize.height;n&&a&&this.$set(this.mask,i.MAX,{top:(this.maskWrapSize.height-a)/2,left:Math.floor(this.maskWrapSize.width-n),width:n,height:a})},scaleDialog:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isFullscreen){t.next=9;break}if(!R["a"].IS_CLIENT){t.next=4;break}return t.next=4,V["a"].setCurWindowFullScreen(!0).catch((function(e){return L["a"].error("sensitivitySize.vue > scaleDialog > setCurWindowFullScreen",e)}));case 4:window.addEventListener("resize",e.resizeDrawAreaInFullscreenMode),n=document.querySelector(".remote-config .dialog-mask .dialog-content"),n.requestFullscreen().catch((function(t){L["a"].error("sensitivitySize.vue ".concat(e.device.name," ").concat(e.channel.name," scaleDialog requestFullscreen: "),t)})),t.next=10;break;case 9:document.exitFullscreen();case 10:case"end":return t.stop()}}),t)})))()},resizeDrawAreaInFullscreenMode:function(){if(this.isFullscreen){var e=document.querySelector(".remote-config .dialog-mask .dialog-content");this.drawAreaWrapWidth=e.offsetWidth-56,this.drawAreaWrapHeight=e.offsetHeight-250,this.updateDrawAreaSizeForNotStretch()}},closeDialog:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.isFullscreen){t.next=4;break}if(!R["a"].IS_CLIENT){t.next=4;break}return t.next=4,V["a"].setCurWindowFullScreen(!1).catch((function(e){return L["a"].error("sensitivitySize.vue > closeDialog > setCurWindowFullScreen",e)}));case 4:e.$emit("dialogMaskScale",!1),window.removeEventListener("resize",e.resizeDrawAreaInFullscreenMode),e.$store.commit("SET_DIALOGID","");case 7:case"end":return t.stop()}}),t)})))()},onFileImgChange:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=0,i=0,t.next=4,Object(P["u"])(e.fileImg).then((function(e){n=e.width,i=e.height})).catch((function(){return null}));case 4:if(n&&i&&(n/i).toFixed(2)!==e.imgWidthHeightRatio.toFixed(2)){t.next=6;break}return t.abrupt("return");case 6:e.imgWidthHeightRatio=n/i,e.updateDrawAreaSizeForNotStretch();case 8:case"end":return t.stop()}}),t)})))()},updateDrawAreaSizeForNotStretch:function(){var e=this,t=this.drawAreaWidth,n=this.drawAreaHeight;this.drawAreaWrapWidth/this.drawAreaWrapHeight<=this.imgWidthHeightRatio?(this.drawAreaWidth=this.drawAreaWrapWidth,this.drawAreaHeight=this.drawAreaWidth/this.imgWidthHeightRatio):(this.drawAreaHeight=this.drawAreaWrapHeight,this.drawAreaWidth=this.drawAreaHeight*this.imgWidthHeightRatio),this.$nextTick((function(){e.updateMaskWrapSize()}));var i=this.drawAreaWidth/t,a=this.drawAreaHeight/n;this.scaleMasks(i,a)},updateSnap:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.channel){t.next=2;break}return t.abrupt("return");case 2:return e.loadingSnap=!0,t.prev=3,t.next=6,e.channel.live.updateCacheImage(0,1);case 6:e.urlQueryId=Object(M["a"])(),e.getCacheImgFailed=!1,e.onFileImgChange(),e.$store.commit("HANDLE_PROMPT",F["PromptStatus"].succeed),t.next=19;break;case 12:return t.prev=12,t.t0=t["catch"](3),L["a"].error("sensitivitySize.vue ".concat(e.device.name," ").concat(e.channel.name," updateCacheImage: "),t.t0),t.next=17,j["a"].getStat(e.channel.cacheImagePath);case 17:n=!!t.sent,n?e.$store.commit("HANDLE_PROMPT",F["PromptStatus"].succeed):(e.getCacheImgFailed=!0,e.$store.commit("HANDLE_PROMPT",F["PromptStatus"].failed));case 19:e.isInitingBgImg=!1,e.loadingSnap=!1;case 21:case"end":return t.stop()}}),t,null,[[3,12]])})))()},chooseMask:function(e){if(this.selected=e,!this.mask[this.selected]){var t={top:this.maskWrapSize.clientTop+this.maskWrapSize.height/2,left:this.maskWrapSize.clientLeft+this.maskWrapSize.width/2,width:this.maskWrapSize.width/2,height:this.maskWrapSize.height/2};switch(this.selected){case i.MIN:var n=this.mask[i.MAX];n&&(t.width=Math.min(t.width,n.width),t.height=Math.min(t.height,n.height));break;case i.MAX:var a=this.mask[i.MIN];a&&(t.width=Math.max(t.width,a.width),t.height=Math.max(t.height,a.height));break;default:break}t.top=(this.maskWrapSize.height-t.height)/2,t.left=(this.maskWrapSize.width-t.width)/2,this.$set(this.mask,this.selected,t)}},mouseDown:function(e,t,n,i){this.selected=e,this.crrEMousemoveCate=t,this.needShaking=null,this.startClientX=n.clientX,this.startClientY=n.clientY;var a=this.mask[this.selected];if(a)switch(this.isMouseDown=!0,window.addEventListener("mouseup",this.mouseUp),i&&(this.crrResizeMaskPosition=this.crrResizeMousePosition,this.crrResizeMousePosition=i),i){case F["EPositionFlags"].NW:this.crrMaskBaseY=a.top+a.height,this.crrMaskBaseX=a.left+a.width;break;case F["EPositionFlags"].NE:this.crrMaskBaseY=a.top+a.height,this.crrMaskBaseX=a.left;break;case F["EPositionFlags"].SW:this.crrMaskBaseY=a.top,this.crrMaskBaseX=a.left+a.width;break;default:this.crrMaskBaseY=a.top,this.crrMaskBaseX=a.left;break}},getPositionFlag:function(e,t){var n=e-this.crrMaskBaseX,i=t-this.crrMaskBaseY;return n<0&&i<0?this.crrResizeMaskPosition=F["EPositionFlags"].NW:n>0&&i<0?this.crrResizeMaskPosition=F["EPositionFlags"].NE:n<0&&i>0?this.crrResizeMaskPosition=F["EPositionFlags"].SW:n>0&&i>0&&(this.crrResizeMaskPosition=F["EPositionFlags"].SE),this.crrResizeMaskPosition},mouseMove:function(e){if(this.isMouseDown){this.needShaking=null;var t=this.mask[this.selected];if(t){var n=t.top,r=t.left,s=t.width,o=t.height,c=n,u=r,l=Math.max(this.maskWrapSize.clientLeft,Math.min(e.clientX,this.maskWrapSize.width+this.maskWrapSize.clientLeft)),d=Math.max(this.maskWrapSize.clientTop,Math.min(e.clientY,this.maskWrapSize.height+this.maskWrapSize.clientTop)),p=l-this.startClientX,h=d-this.startClientY,m=Math.abs(p),g=Math.abs(h),f=this.selected===i.MAX&&!!this.mask[i.MIN];switch(this.crrEMousemoveCate){case a.RESIZE:var _=d-this.maskWrapSize.clientTop,v=l-this.maskWrapSize.clientLeft;if(f)switch(this.crrResizeMousePosition){case F["EPositionFlags"].NW:s=Math.max(0,this.crrMaskBaseX-v),o=Math.max(0,this.crrMaskBaseY-_),n=_,r=v;break;case F["EPositionFlags"].NE:s=Math.max(0,v-this.crrMaskBaseX),o=Math.max(0,this.crrMaskBaseY-_),n=_;break;case F["EPositionFlags"].SW:s=Math.max(0,this.crrMaskBaseX-v),o=Math.max(0,_-this.crrMaskBaseY),r=v;break;default:s=Math.max(0,v-this.crrMaskBaseX),o=Math.max(0,_-this.crrMaskBaseY);break}else n=Math.min(_,this.crrMaskBaseY),r=Math.min(v,this.crrMaskBaseX),s=Math.abs(v-this.crrMaskBaseX),o=Math.abs(_-this.crrMaskBaseY);break;case a.MOVE:n=Math.max(0,Math.min(c+h,this.maskWrapSize.height-o)),r=Math.max(0,Math.min(u+p,this.maskWrapSize.width-s)),this.startClientX=l,this.startClientY=d;break;case a.CREATE:n=Math.min(d,this.startClientY)-this.maskWrapSize.clientTop,r=Math.min(l,this.startClientX)-this.maskWrapSize.clientLeft,s=m,o=g;break;default:break}var b={top:n,left:r,width:s,height:o};if(this.crrEMousemoveCate===a.RESIZE){if(b=this.checkSize(b,t),!f){var w=d-this.maskWrapSize.clientTop,C=l-this.maskWrapSize.clientLeft,y=this.getPositionFlag(C,w);switch(y){case F["EPositionFlags"].NW:b.top=this.crrMaskBaseY-b.height,b.left=this.crrMaskBaseX-b.width;break;case F["EPositionFlags"].NE:b.top=this.crrMaskBaseY-b.height,b.left=this.crrMaskBaseX;break;case F["EPositionFlags"].SW:b.top=this.crrMaskBaseY,b.left=this.crrMaskBaseX-b.width;break;case F["EPositionFlags"].SE:default:b.top=this.crrMaskBaseY,b.left=this.crrMaskBaseX;break}}b.top=Math.max(0,Math.min(b.top,this.maskWrapSize.height-b.height)),b.left=Math.max(0,Math.min(b.left,this.maskWrapSize.width-b.width))}this.$set(this.mask,this.selected,b)}}},mouseUp:function(e){window.removeEventListener("mouseup",this.mouseUp),this.isMouseDown=!1;var t=this.mask[this.selected];if(t){var n=t.width,r=t.height;if(this.crrEMousemoveCate!==a.MOVE){var s=this.checkSize(t);n=s.width,r=s.height}var o=this.selected===i.MAX&&!!this.mask[i.MIN];if(!o&&this.crrEMousemoveCate===a.RESIZE){var c=Math.max(this.maskWrapSize.clientLeft,Math.min(e.clientX,this.maskWrapSize.width+this.maskWrapSize.clientLeft)),u=Math.max(this.maskWrapSize.clientTop,Math.min(e.clientY,this.maskWrapSize.height+this.maskWrapSize.clientTop)),l=u-this.maskWrapSize.clientTop,d=c-this.maskWrapSize.clientLeft,p=this.getPositionFlag(d,l);switch(p){case F["EPositionFlags"].NW:t.top=this.crrMaskBaseY-r,t.left=this.crrMaskBaseX-n;break;case F["EPositionFlags"].NE:t.top=this.crrMaskBaseY-r,t.left=this.crrMaskBaseX;break;case F["EPositionFlags"].SW:t.top=this.crrMaskBaseY,t.left=this.crrMaskBaseX-n;break;case F["EPositionFlags"].SE:default:t.top=this.crrMaskBaseY,t.left=this.crrMaskBaseX;break}}this.$set(this.mask,this.selected,{top:Math.max(0,Math.min(t.top,this.maskWrapSize.height-r)),left:Math.max(0,Math.min(t.left,this.maskWrapSize.width-n)),width:n,height:r}),this.needShaking=null,this.crrEMousemoveCate=a.NONE}},checkSize:function(e,t){var n=e.width,a=e.height,r=e.left,s=e.top,o=this.mask[i.MIN],c=this.mask[i.MAX];switch(this.selected){case i.MIN:if(c){if(n>=c.width)switch(n=c.width,this.needShaking=this.selected,this.crrResizeMousePosition){case F["EPositionFlags"].NW:case F["EPositionFlags"].SW:r=this.crrMaskBaseX-n;break;case F["EPositionFlags"].NE:case F["EPositionFlags"].SE:default:r=this.crrMaskBaseX;break}if(a>=c.height)switch(a=c.height,this.needShaking=this.selected,this.crrResizeMousePosition){case F["EPositionFlags"].NE:case F["EPositionFlags"].NW:s=this.crrMaskBaseY-a;break;case F["EPositionFlags"].SE:case F["EPositionFlags"].SW:default:s=this.crrMaskBaseY;break}}break;case i.MAX:if(o){if(n<=o.width)switch(n=o.width,this.needShaking=this.selected,this.crrResizeMousePosition){case F["EPositionFlags"].NW:case F["EPositionFlags"].SW:r=this.crrMaskBaseX-n;break;case F["EPositionFlags"].NE:case F["EPositionFlags"].SE:default:r=this.crrMaskBaseX;break}if(a<=o.height)switch(a=o.height,this.needShaking=this.selected,this.crrResizeMousePosition){case F["EPositionFlags"].NE:case F["EPositionFlags"].NW:s=this.crrMaskBaseY-a;break;case F["EPositionFlags"].SE:case F["EPositionFlags"].SW:default:s=this.crrMaskBaseY;break}}break;default:break}return{width:n,height:a,left:r,top:s}},deleteMask:function(e){this.selected===e&&(Reflect.deleteProperty(this.mask,e),this.mask=Object(r["a"])({},this.mask),this.selected=i.NONE)},save:function(){var e=this.mask[i.MIN],t=this.mask[i.MAX],n=Object(r["a"])(Object(r["a"])({},this.aiDetectCfg),{},{minTargetWidth:e?Math.max(0,Math.min(1,e.width/this.maskWrapSize.width)):0,minTargetHeight:e?Math.max(0,Math.min(1,e.height/this.maskWrapSize.height)):0,maxTargetWidth:t?Math.max(0,Math.min(1,t.width/this.maskWrapSize.width)):0,maxTargetHeight:t?Math.max(0,Math.min(1,t.height/this.maskWrapSize.height)):0});this.setScheduleCallback(n)}}})}).call(this,n("4362"))},5:function(e,t){},"505c":function(e,t,n){e.exports=n.p+"img/package_medium.5edc3fd3.png"},"506b":function(e,t,n){"use strict";var i=n("60cd"),a=n.n(i);a.a},"51bd":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAPBAMAAADqo9msAAAAKlBMVEUAAAD3+Pn3+Pn3+Pn3+Pn3+Pn3+Pn3+Pn3+Pn3+Pn3+Pn3+Pn3+Pn3+PkbGauOAAAADXRSTlMAQL+AEFAgMJ+vj3BgC8Y++wAAAFtJREFUCNdjwAEmoPEvoPA8GC5wJcA4bAwMsgwXeAUY2BzAfCGWDWB+GJMBkMd+QIjxApivyGQQysDArIDEN8bkswcg8csh5gWA+SGcBqj2sThgugfhXlTQAKUBwkwYSpE7N6IAAAAASUVORK5CYII="},"51de":function(e,t,n){"use strict";var i=n("9bbc"),a=n.n(i);a.a},"51e2":function(e,t,n){"use strict";var i=n("7881"),a=n.n(i);a.a},"52de":function(e,t,n){},"530f":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAABWRJREFUaEPNWltOIzkUtZ1S+Bz6Ewmws4KGFQysoGEFzaygYQUNKxhYQYcVNKygmRUMswLKAYnP7v4DlPIdnZLNVBJX+TopNF1SlEjluuXj+zjH15Gip+vh4WGnqqrfhRA7RGTwLaVcb5onolshxA8p5Y2U8raqqr9Go9GPPqYgVzHiJ/+RiI7mJ821S0QANXbOXa8Caikg9/f3e1VVfZZS7nEnnBpHRPDUuXPuYhlAWUAeHx/N8/Pzlz4BzAP0gE611hcp8M37bCDW2k9CiPMc46uMRT6tra0dbmxslBw7SSB3d3frUkp44YBjsM8x8I5S6o/t7e2rlN1OIB7ENynlTsrQW96XUgLMuOsdrUB+FRBh8ikwUSB9gCCifwJnCCHWiSh4Ffzy2zIe7AITBVKW5dclc+JSSnmViunJZHJARHtEdCCl1DmgBoPB7ubmJoh15loAYq09FkL8mWNcCHE5HA5PuRUm2IbnlVLHRHTM9RIRlUS0O881M0DAEy8vL3dcEERkB4PB0dbW1g33mdg4z09jKSUkDue61FoftfJIWZaoUCy2Rg4gPJZh4baZWmtRmT5ykCil9psL+OoRyA7n3LcI09r5OH4LEOG9XDDQaMaY/deqFn50eONMKXVTVdUV4hjhhAqU8gTivyiK90SEimWUUrdFUVhOHpVlCSGZDLOmV2qPeBX7d4tLz7TWpz4xx0qp866c8LYgZ2ZiONiG9IA41FpftoWQL/8Yl6po11rrWnHUQKy10FB4eeyqgXDi1lqLaoeql7wQGkR02ObZyWRyRERfUoacc+9gowZSluX3jv0EC4i1Fi+NeqFtMtBSRVHsx3jBzwteed8FJpCkTIQVbCSBLAOiEWpRXsB9T5xfE16pw0syCLATiI/nkktoLZNa4IVGFaMuIPCqMeYdgKRqd9IjoRAIIT6kYrrt/nA4HMUqmrUWEr7TLp6VjFKXBNJYPRSFz0uCib6Hk/QowwDSleisHAkl14vAmc4JFxTKsjFmd358G1HPjTtBaHXGYFuy+3D64AVfLxsvrfWCiGUCOcsG0sfqt3kpBsQv2PeEZ/lArLXoX0Fu97L6sYnFgDDooQ7/pEd8d9As24DLyJGfxpiF/GKHVlmWSfbkTmbFcVEu4ZCilPKQU36j84MKRqszZ3fHkRrzYxI6sB5el19rbW7tv1RKjYMCZhBq0lFYFGMMGt8LV1mWd1LK6L0wGLklOa7zD1w7547m1WofEgWhEWtYcLbe2OQZY3Yks7wJbPqNMaPYqjErS5tnWpUDM1outNbHQcazdmRdfSXfoa93kclY+m9AKwiON0J+IMxrIBw9g3FtrZgwL/9ybNI6RR6n+8LJvWZu1UAy47x2Zdeqe0DY4aEjExIVUh8fTgOPtTtsyqdXbcOMx3r+qT5sRmgtDEW+TadTtKU6xScR/URTIxSfVyCZXnkTMFwQHv1Mfs2oTcZucX4F0Q05WcUD4VnQgHMO5zDJbUCsJbUgm3MlC7ohRVGctDUQUiB9+cdmjNV98aG9wDsLQHwfFvorp4zC/ngwGFxwAXkAn7zESXqhsSDRYhM9Vshg+4UF9w048BI+aPfYp6cnfNdtHedcOE7I3g4EFo95ufXEisstqdDp636q39x5hvirgEmBqPMmtWL/NxgOCBYQDPL1HToq1VROrUvu/aSKCAaTHgkDfZWBjmIdxOTOuDkePIEjudRZZPMZNpDwkFe5p5zzi1wwkB3+/yjnqfOXedvZQJqAnHMgsaXbpMFW2DY757IBZIdW2+r6kMNxAvhhj0ukSGJwjVLqatXDVHay54QIlMF0OjXOORDeDGPjz2YgyT4mPj+nfwGmnZCcKMq6FQAAAABJRU5ErkJggg=="},"538c":function(e,t,n){"use strict";var i=n("52de"),a=n.n(i);a.a},"54c0":function(e,t,n){"use strict";var i=n("fd58"),a=n.n(i);a.a},"56f8":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("d4ec"),a=n("bee2"),r=function(){function e(){Object(i["a"])(this,e)}return Object(a["a"])(e,null,[{key:"getInfo",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=i?n:e.errors[t];return{code:t,msg:a||(n||e.errors[4294967281])}}}]),e}();r.errors={"-3":"Failed to recognize the file format.","-5":"No more available connections","-4":"Wrong input, please check again.","-6":"Session expired, please log in again.","-7":"Invalid username or password.","-8":"Operation timeout! Please try again later.","-9":"The upgrade method is not supported.","-12":"Failed to get configuration, please try again.","-13":"Failed to verify configuration, please try again.","-20":"No enough memory for upgrade.","-26":"You are not allowed to do this.","-27":"Your account is invalid, please login again.","-28":"The new user name has been taken.","-29":"Failed to add more users because you’ve reached the max number limit.","-30":"Failed to upgrade as the selected package is identical with the current version.","-31":"Device is busy, please try again later.","-32":"Specific network address is conflicted with other machine.","-33":"Please type in the CAPTCHA in the image.","-34":"Require binding email address","-35":"Failed to bind","-36":"Network timeout","-37":"Incorrect Password","-38":"UID is not valid","-39":"The cloud account doesn't exist.","-41":"Sorry,cloud storage is not available.","-43":"Fail to bind","-44":"An unknown error has occurred.","-45":"Please type in the CAPTCHA in the image.","-100":"Configuration test failed.","-200":"FTP Login Failed.","-201":"FTP Create Dir Failed.","-202":"FTP Upload Failed.","-203":"FTP Connect Server Failed.","-220":"Download Rec.","-221":"Download Rec Busy.","-222":"Download Rec Not Exist.","-500":"Maximum number of IP reached.","-501":"This account is invalid.","-502":"Incorrect Password","-503":"Login denied.","-505":"Uninitialized device","-506":"Your account has been locked. Please try again later.","-507":"Maximum number of concurrent users reached.",4294967295:"Fatal error: Device responded with an unexpected command result.",4294967294:"Fatal error: Device returned a result with the invalid format.",4294967293:"Network error: Unable to connect to device.",4294967292:"Fatal error: Failed to recognize data from the device.",4294967291:"Network error: Request timeout.",4294967290:"Location is changed.",4294967281:"Operation failed due to unknown reason.",4294967282:"Can not get channel as index >= count"}},5776:function(e,t,n){"use strict";var i=n("1816"),a=n.n(i);a.a},"586d":function(e,t,n){},"58d2":function(e,t,n){},"5a76":function(e,t,n){},"5b12":function(e,t,n){"use strict";var i=n("277f"),a=n.n(i);a.a},"5b89":function(e,t,n){},"5bf0":function(e,t,n){},"5c60":function(e,t,n){"use strict";var i=n("99f8"),a=n.n(i);a.a},"5c7d":function(e,t){e.exports="data:image/png;base64,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"},"5c8c":function(e,t,n){},"5d68":function(e,t,n){"use strict";n("d81d"),n("b64b"),n("d3b7"),n("3ca3"),n("ddb0");var i=n("b85c"),a=(n("96cf"),n("1da1")),r=n("0ac9"),s=n("a36f"),o=n("ffa8"),c=n("9354");function u(e,t,n,i){return l.apply(this,arguments)}function l(){return l=Object(a["a"])(regeneratorRuntime.mark((function e(t,n,i,a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t&&void 0!==t.isSetting&&(t.isSetting=!0),t&&void 0!==t.isLoading&&(t.isLoading=!0),t&&void 0!==t.warnClue&&(t.warnClue=!1),e.prev=3,n(),e.next=7,i(a);case 7:e.next=13;break;case 9:e.prev=9,e.t0=e["catch"](3),c["a"].error("remote-config > assets > utils.ts > changingEffect: ",e.t0),t&&void 0!==t.warnClue&&(t.warnClue=!0);case 13:t&&void 0!==t.isSetting&&(t.isSetting=!1),t&&void 0!==t.isLoading&&(t.isLoading=!1);case 15:case"end":return e.stop()}}),e,null,[[3,9]])}))),l.apply(this,arguments)}function d(e,t,n,i,a){return p.apply(this,arguments)}function p(){return p=Object(a["a"])(regeneratorRuntime.mark((function e(t,n,i,a,r){var o,u=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=!(u.length>5&&void 0!==u[5])||u[5],t.commit("HANDLE_LOADING",!0),e.prev=2,a&&a(),e.next=6,i(n,o);case 6:t.commit("HANDLE_PROMPT",s["PromptStatus"].succeed),r&&r(),e.next=14;break;case 10:e.prev=10,e.t0=e["catch"](2),c["a"].error("remote-config > assets > utils.ts > saveEffect: ",e.t0),t.commit("HANDLE_PROMPT",s["PromptStatus"].failed);case 14:t.commit("HANDLE_LOADING",!1);case 15:case"end":return e.stop()}}),e,null,[[2,10]])}))),p.apply(this,arguments)}function h(e,t,n,i,a){return m.apply(this,arguments)}function m(){return m=Object(a["a"])(regeneratorRuntime.mark((function e(t,n,i,a,r){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.commit(i,!0),e.prev=1,n.isLoadingDataRetry=!1,r&&r(),e.next=6,a();case 6:e.next=13;break;case 9:e.prev=9,e.t0=e["catch"](1),n.isLoadingDataRetry=!0,c["a"].error("remote-config > assets > utils.ts > _contentInitEffect > pageInit: ",e.t0);case 13:t.commit(i,!1);case 14:case"end":return e.stop()}}),e,null,[[1,9]])}))),m.apply(this,arguments)}function g(e,t,n,i){return f.apply(this,arguments)}function f(){return f=Object(a["a"])(regeneratorRuntime.mark((function e(t,n,i,a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:h(t,n,"HANDLE_CONFIGCONTEXT_LOADING",i,a);case 1:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}function _(e,t,n,i){return v.apply(this,arguments)}function v(){return v=Object(a["a"])(regeneratorRuntime.mark((function e(t,n,i,a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:h(t,n,"HANDLE_DIALOG_LOADING",i,a);case 1:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function b(e,t,n){return w.apply(this,arguments)}function w(){return w=Object(a["a"])(regeneratorRuntime.mark((function e(t,n,i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.isLoadingPartCfg=!0,t.isPartCfgRetry=!1,i&&i(),e.next=6,n();case 6:e.next=13;break;case 9:e.prev=9,e.t0=e["catch"](0),t.isPartCfgRetry=!0,c["a"].error("remote-config > assets > utils.ts > partInitEffect > partInit: ",e.t0);case 13:t.isLoadingPartCfg=!1;case 14:case"end":return e.stop()}}),e,null,[[0,9]])}))),w.apply(this,arguments)}function C(e,t,n,i,a,r){return y.apply(this,arguments)}function y(){return y=Object(a["a"])(regeneratorRuntime.mark((function e(t,n,i,a,r,o){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,n.isScheduleSetting=!0,o&&o(),e.next=5,a(i,!0);case 5:if(!r){e.next=8;break}return e.next=8,r();case 8:t.commit("HANDLE_PROMPT",s["PromptStatus"].succeed),e.next=15;break;case 11:e.prev=11,e.t0=e["catch"](0),c["a"].error("remote-config > assets > utils.ts > saveScheduleEffect: ",e.t0),t.commit("HANDLE_PROMPT",s["PromptStatus"].failed);case 15:n.isScheduleSetting=!1;case 16:case"end":return e.stop()}}),e,null,[[0,11]])}))),y.apply(this,arguments)}function S(e,t,n,i,a){return k.apply(this,arguments)}function k(){return k=Object(a["a"])(regeneratorRuntime.mark((function e(t,n,i,a,r){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,n.isScheduleSetting=!0,e.next=4,r(i,a,!0);case 4:t.commit("HANDLE_PROMPT",s["PromptStatus"].succeed),e.next=11;break;case 7:e.prev=7,e.t0=e["catch"](0),c["a"].error("remote-config > assets > utils.ts > saveAndCopytoScheduleEffect: ",e.t0),t.commit("HANDLE_PROMPT",s["PromptStatus"].failed);case 11:n.isScheduleSetting=!1;case 12:case"end":return e.stop()}}),e,null,[[0,7]])}))),k.apply(this,arguments)}function A(e,t,n,i,a){return E.apply(this,arguments)}function E(){return E=Object(a["a"])(regeneratorRuntime.mark((function e(t,n,a,r,s){var o,c,u,l,d,p,h,m,g,f;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=[],c=[],u=[],a.map((function(e){if(e.index!==r&&!e.state.get("videoLoss")){var t=s(e);u.push(t),c.push(e)}})),e.next=6,Promise.all(u);case 6:for(l=e.sent,d=0;d assets > utils.ts > saveAndCopytoEffect: ",e.t0),t.commit("HANDLE_PROMPT",s["PromptStatus"].failed);case 10:case"end":return e.stop()}}),e,null,[[0,6]])}))),I.apply(this,arguments)}function D(e,t,n,i){var a=n;u(a,(function(){t.bEnable=a.isOpen=e}),i,Object(o["g"])(t))}function T(e,t,n){return R.apply(this,arguments)}function R(){return R=Object(a["a"])(regeneratorRuntime.mark((function e(t,n,i){var a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t();case 3:if(a=e.sent,s=a?r["EScheduleCate"].MULTI:r["EScheduleCate"].NORMAL,!a){e.next=7;break}return e.abrupt("return",[n(),s]);case 7:return e.abrupt("return",[i(),s]);case 10:throw e.prev=10,e.t0=e["catch"](0),c["a"].error("remote-config > assets > utils.ts > getScheduleCateFunc: ",e.t0),new Error("11");case 14:case"end":return e.stop()}}),e,null,[[0,10]])}))),R.apply(this,arguments)}t["a"]={changingEffect:u,saveEffect:d,saveScheduleEffect:C,pageInitEffect:g,dialogInitEffect:_,partInitEffect:b,scheduleSwitchChangeCallback:D,saveAndCopytoScheduleEffect:S,saveAndCopytoEffect:O,getScheduleCopytoChannels:A,getScheduleCateFunc:T}},"5e6b":function(e,t,n){"use strict";var i=n("aa0d"),a=n.n(i);a.a},"5e70":function(e,t,n){"use strict";var i=n("4923"),a=n.n(i);a.a},"5e98":function(e,t,n){},6:function(e,t){},"60cd":function(e,t,n){},"60ce":function(e,t,n){"use strict";var i=n("3af5"),a=n.n(i);a.a},6112:function(e,t,n){},"622d":function(e,t,n){},6335:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return f}));n("d81d"),n("b64b");var i=n("9354"),a=(n("caad"),n("c975"),n("a434"),n("2532"),n("130f"),n("b85c")),r=n("d4ec"),s=n("bee2"),o=function(){function e(t,n){Object(r["a"])(this,e),this.observers=[],this.owner=t,this.obj=n}return Object(s["a"])(e,[{key:"addObserver",value:function(e,t){this.observers.includes(e)||(this.observers.push(e),t&&e(this.value,this.owner,this.value))}},{key:"removeObserver",value:function(e){if(this.observers.includes(e)){var t=this.observers.indexOf(e);this.observers.splice(t,1)}}},{key:"clearObservers",value:function(){this.observers=[]}},{key:"notifyAll",value:function(e){var t=this;setImmediate((function(){var n,r=Object(a["a"])(t.observers);try{for(r.s();!(n=r.n()).done;){var s=n.value;try{s(t.value,t.owner,e)}catch(o){return void i["a"].error("observer.ts > notifyAll: ",o)}}}catch(c){r.e(c)}finally{r.f()}}))}},{key:"value",get:function(){return this.obj()}}]),e}();function c(e){return{v:"readonly",d:e}}function u(e){return{v:"readwrite",d:e}}function l(e){return function(t){if(void 0===e[t])try{i["a"].error("propertify.ts > getFunc ".concat(String(t)," is not in: "),e)}catch(n){}return e[t].value}}function d(e){return function(t,n){if(void 0!==e[t]){var a=e[t].value;e[t].value=n,a!==n&&e[t].observerable.notifyAll(a)}else try{i["a"].error("propertify.ts > setFunc ".concat(String(t)," is not in: "),e)}catch(r){}}}function p(e){return function(t,n){if(void 0!==e[t]){var a=e[t].value;e[t].value=n,a!==n&&e[t].observerable.notifyAll(a)}else try{i["a"].error("propertify.ts > forceSetFunc ".concat(String(t)," is not in: "),e)}catch(r){}}}function h(e){return function(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e[t].observerable.addObserver(n,i)}}function m(e){return function(t,n){e[t].observerable.removeObserver(n)}}function g(e){return function(){for(var t in e)e[t].hasOwnProperty("observerable")&&e[t].observerable.clearObservers()}}function f(e,t){var n={};return Object.keys(t).map((function(i){n[i]={value:t[i].d,observerable:new o(e,(function(){return n[i].value}))}})),n.get=l(n),n.set=d(n),n.forceSet=p(n),n.addObserver=h(n),n.removeObserver=m(n),n.clearObservers=g(n),n}},6370:function(e,t,n){e.exports=n.p+"img/people_high.e8e4b06c.png"},6386:function(e,t,n){},"63c3":function(e,t,n){},"63f4":function(e,t,n){e.exports=n.p+"img/package_high.16379835.png"},"645d":function(e,t,n){"use strict";var i=n("7d99"),a=n.n(i);a.a},6546:function(e,t,n){"use strict";var i=n("78f9"),a=n.n(i);a.a},6586:function(e,t,n){"use strict";var i=n("a808"),a=n.n(i);a.a},"65fd":function(e,t,n){},"673e":function(e,t,n){},6757:function(e,t,n){"use strict";var i=n("ff78"),a=n.n(i);a.a},6786:function(e,t){e.exports="data:image/png;base64,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"},6819:function(e,t,n){"use strict";var i=n("73c0"),a=n.n(i);a.a},"685c":function(e,t){e.exports="data:image/png;base64,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"},"685d":function(e,t,n){},"68ea":function(e,t,n){"use strict";var i=n("71fd"),a=n.n(i);a.a},"69b8":function(e,t,n){"use strict";n("4160"),n("d3b7"),n("ac1f"),n("466d"),n("159b"),n("ddb0");var i=n("2b0e"),a=n("a925"),r=n("aa18"),s=n("a36f"),o=n("9354");i["a"].use(a["a"]);var c=s["EInternationalCode"].en,u=s["EInternationalCode"].en;function l(){var e=n("127a"),t=null;if(r["a"].IS_CLIENT)try{r["a"].USE_ACCOUNT_LOGIN&&(t=!function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}())}catch(a){o["a"].error("i18n.ts > loadLocaleMessages: ",a)}var i={};return t?t.keys().forEach((function(n){var r=n.match(/([A-Za-z0-9-_]+)\./i);if(r&&r.length>1){var s=r[1],c=null;try{c=t("./".concat(u,".json"))}catch(a){o["a"].error("i18n.ts > loadLocaleMessages > locales.keys: ",a)}var l=Object.assign(e(n),c||{},t(n));l&&(i[s]=l)}})):e.keys().forEach((function(t){var n=t.match(/([A-Za-z0-9-_]+)\./i);if(n&&n.length>1){var a=n[1];i[a]=e(t)}})),i}t["a"]=new a["a"]({locale:c,fallbackLocale:u,messages:l()})},"69d7":function(e,t,n){},"6a87":function(e,t,n){"use strict";var i=n("33d0"),a=n.n(i);a.a},"6af1":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"slide-btn-box flex"},[n("div",{staticClass:"slide-btn",class:{on:e.stateOpen===e.openVal,setting:e.isSetting,disabled:e.disabled},on:{click:function(t){return t.stopPropagation(),e.slideChange(t)}}},[n("div",{staticClass:"slide-dot"})]),e.isSetting&&!e.warnClue?n("loadingImg",{staticClass:"loading-img-box",class:{left:e.isStatusTipOnLeft}}):e._e(),e.warnClue&&!e.isSetting?n("span",{staticClass:"icon-client_warning warn-clue-icon",class:{left:e.isStatusTipOnLeft}}):e._e()],1)},a=[],r=(n("a9e3"),n("2b0e")),s=n("6ecd"),o=r["a"].extend({name:"slideBtn",components:{loadingImg:s["a"]},props:{isStatusTipOnLeft:{type:Boolean,default:!1},isSetting:{type:Boolean,default:!1},warnClue:{type:Boolean,default:!1},closeVal:{type:[Boolean,String,Number],default:!1},openVal:{type:[Boolean,String,Number],default:!0},isOpen:{type:[Boolean,String,Number],default:!1},flag:{type:[String,Number],default:""},isAsync:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},data:function(){return{stateOpen:!1}},watch:{isOpen:{handler:function(e){this.stateOpen=e},immediate:!0}},methods:{slideChange:function(){if(!this.isSetting&&!this.disabled){var e=this.stateOpen;e=this.stateOpen===this.closeVal?this.openVal:this.closeVal,this.isOpen!==e&&(this.isAsync&&(this.stateOpen=e),this.$emit("stateChange",e,this.flag))}}}}),c=o,u=(n("60ce"),n("2877")),l=Object(u["a"])(c,i,a,!1,null,null,null);t["a"]=l.exports},"6b8e":function(e,t,n){e.exports=n.p+"img/light_on.cd196e77.png"},"6c8c":function(e,t,n){e.exports=n.p+"img/people_medium.eb395a68.png"},"6cb8":function(e,t,n){},"6d0a":function(e,t){e.exports="data:image/png;base64,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"},"6d2a":function(e,t,n){},"6e33":function(e,t,n){},"6e88":function(e,t,n){"use strict";var i=n("7247"),a=n.n(i);a.a},"6ecd":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"show",rawName:"v-show",value:e.showComponent||e.delay<=0,expression:"showComponent||delay<=0"}],staticClass:"component-loading-img"},[i("img",{staticClass:"loading-img reo-loading-animation",style:{width:e.imgSrcSize+"px"},attrs:{src:n("a97b")}})])},a=[],r=(n("a9e3"),n("2b0e")),s=r["a"].extend({name:"loadingImg",props:{delay:{type:Number,default:300},imgSrcSize:{type:Number,default:12},useLottie:{type:Boolean,default:!1}},data:function(){return{showComponent:!1}},mounted:function(){var e=this;setTimeout((function(){e.showComponent=!0}),this.delay)},beforeDestroy:function(){}}),o=s,c=(n("2875"),n("2877")),u=Object(c["a"])(o,i,a,!1,null,"617dc5f8",null);t["a"]=u.exports},"6f20":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"schedule-copyto"},[n("div",{staticClass:"copyto-header"},[n("div",{staticClass:"flex-between"},[n("span",{staticClass:"copyto-title"},[e._v(e._s(e.$t("STR_CAMERA_COPY_TIPS1")))])])]),n("ul",{staticClass:"channel-list"},e._l(e.channelList,(function(t,i){return n("li",{key:i,staticClass:"ch-list-item"},[n("label",{staticClass:"flex",class:{checked:e.channelSelected.includes(t.index),"curr-ch-li":0===i},attrs:{radio:""}},[n("span",{staticClass:"channel-index text"},[e._v(e._s(e.zeroize(t.index)))]),n("div",{staticClass:"channel-name-wrap flex-between"},[n("h4",{staticClass:"channel-name"},[e._v(e._s(t.name))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.channelSelected,expression:"channelSelected"}],attrs:{"reo-element":"",type:"checkbox"},domProps:{value:t.index,checked:Array.isArray(e.channelSelected)?e._i(e.channelSelected,t.index)>-1:e.channelSelected},on:{change:function(n){var i=e.channelSelected,a=n.target,r=!!a.checked;if(Array.isArray(i)){var s=t.index,o=e._i(i,s);a.checked?o<0&&(e.channelSelected=i.concat([s])):o>-1&&(e.channelSelected=i.slice(0,o).concat(i.slice(o+1)))}else e.channelSelected=r}}}),t.index!==e.dialogChannelIndex?n("span",{staticClass:"check-icon",attrs:{checkicon:""}}):e._e()])])])})),0),e.showChooseAll?n("label",{staticClass:"flex chooseall-group",class:{checked:e.chooseAll},attrs:{checkbox:""}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.chooseAll,expression:"chooseAll"}],attrs:{"reo-element":"",type:"checkbox"},domProps:{checked:Array.isArray(e.chooseAll)?e._i(e.chooseAll,null)>-1:e.chooseAll},on:{change:function(t){var n=e.chooseAll,i=t.target,a=!!i.checked;if(Array.isArray(n)){var r=null,s=e._i(n,r);i.checked?s<0&&(e.chooseAll=n.concat([r])):s>-1&&(e.chooseAll=n.slice(0,s).concat(n.slice(s+1)))}else e.chooseAll=a}}}),n("span",{staticClass:"check-icon icon-client_check",attrs:{checkicon:""}}),n("span",{staticClass:"text choose-clue"},[e._v(e._s(e.$t("common_view_all_button")))])]):e._e(),n("div",{staticClass:"btns-wrap flex"},[n("speedyBtn",{attrs:{btnClass:"ghost-button",keyCode:27,btnText:e.$t("common_dialog_cancel_button")},on:{btnClick:e.exitDialog}}),n("speedyBtn",{on:{btnClick:e.save}})],1)])},a=[],r=(n("c740"),n("4160"),n("b0c0"),n("159b"),n("96cf"),n("1da1")),s=n("b85c"),o=n("2b0e"),c=n("bf3b"),u=n("3ee0"),l=n("5d68"),d=o["a"].extend({name:"scheduleCopyTo",components:{speedyBtn:u["a"]},data:function(){return{chooseAll:!1,channels:[],device:{},initList:!1,disabledChannels:[],channelSelected:[],selectedChannels:[],channelList:[],explainText:"",showChooseAll:!1}},computed:{handle:function(){return this.$store.getters.deviceHandle},saveAndCopytoCallback:function(){return this.$store.getters.saveAndCopytoCallback},dialogChannelIndex:function(){return this.$store.getters.dialogChannelIndex},copytoInitCallback:function(){return this.$store.getters.copytoInitCallback}},watch:{handle:{handler:function(e){this.deviceInit()},immediate:!0},chooseAll:function(e){if(e){var t,n=Object(s["a"])(this.channelList);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.index!==this.dialogChannelIndex&&this.channelSelected.push(i.index)}}catch(a){n.e(a)}finally{n.f()}}else this.channelSelected=[],this.channelSelected.push(this.dialogChannelIndex)},channels:{handler:function(e,t){var n=this;t&&t.forEach((function(e){e.state.removeObserver("name",n.onNameChanged),e.state.removeObserver("videoLoss",n.onVidelossChanged)})),e&&e.forEach((function(e){e.state.addObserver("name",n.onNameChanged),e.state.addObserver("videoLoss",n.onVidelossChanged)}))},immediate:!0}},methods:{deviceInit:function(){var e=this;l["a"].dialogInitEffect(this.$store,this.$data,Object(r["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.copytoInitCallback();case 2:return n=t.sent,n.unshift(e.dialogChannelIndex),t.next=6,c["a"].getDeviceWithHandle(e.handle);case 6:return e.device=t.sent,t.next=9,e.device.getChannels();case 9:e.channels=t.sent,i=Object(s["a"])(n);try{for(i.s();!(a=i.n()).done;)r=a.value,o=e.channels[r],e.channelList.push({index:o.index,name:o.name})}catch(u){i.e(u)}finally{i.f()}e.channelSelected.push(e.dialogChannelIndex),e.channelList.length>1&&e.$set(e,"showChooseAll",!0);case 14:case"end":return t.stop()}}),t)}))))},chName:function(e){return e.name},exitDialog:function(){this.$store.commit("SET_CUSTOM_DIALOGID","")},save:function(){this.$store.commit("MODIFY_SELECTED_CHANNELS",this.channelSelected),this.saveAndCopytoCallback(),this.exitDialog()},onNameChanged:function(e,t){var n=t.index,i=this.channelList.findIndex((function(e){return e.index===n}));if(-1!==i){var a=this.channelList[i];a.name=t.name}},onVidelossChanged:function(e,t){},zeroize:function(e){return e++,e<10?"0"+e:""+e}}}),p=d,h=(n("5e70"),n("2877")),m=Object(h["a"])(p,i,a,!1,null,"7375603c",null);t["a"]=m.exports},7:function(e,t){},"70c8":function(e,t,n){"use strict";var i=n("5a76"),a=n.n(i);a.a},"71fd":function(e,t,n){},7209:function(e,t,n){},7247:function(e,t,n){},"73c0":function(e,t,n){},"74c2":function(e,t,n){"use strict";var i=n("ecbb");n.d(t,"a",(function(){return i["a"]}))},"74c5":function(e,t,n){"use strict";var i=n("14c32"),a=n.n(i);a.a},"74d4":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));n("99af");var i=n("ade3"),a=(n("96cf"),n("1da1")),r=n("d4ec"),s=n("bee2"),o=n("262e"),c=n("2caf"),u=function(){function e(t){Object(r["a"])(this,e),this.mountedDomIdRecord=t}return Object(s["a"])(e,[{key:"getMountedDomId",value:function(e){return this.mountedDomIdRecord[e]||"#app"}}]),e}(),l=n("aa18"),d=n("914c"),p=n("a36f"),h=n("56f8"),m=n("4a47"),g=function(e){Object(o["a"])(n,e);var t=Object(c["a"])(n);function n(e){var i;return Object(r["a"])(this,n),i=t.call(this,e),window.infoHandler=m["a"],i}return Object(s["a"])(n,[{key:"getVersion",value:function(){return""}},{key:"isMaximizable",value:function(){return!0}},{key:"isMinimizable",value:function(){return!1}},{key:"minimize",value:function(){}},{key:"maximize",value:function(){}},{key:"unmaximize",value:function(){}},{key:"openErrorLog",value:function(){}},{key:"handleRightClickMenu",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]}},{key:"hidePage",value:function(e,t,n){e.instance&&n&&(e.instance.$destroy(),e.instance=null);var i=document.querySelector(t);i&&(i.style.visibility="hidden",i.style.opacity="0",n&&(i.innerHTML=""))}},{key:"getCurrentLocale",value:function(){return"en"}},{key:"getI18nLocale",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","en");case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"exitCurrentInterface",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&ControllerMain.onLogout(),window.location.reload()}},{key:"checkNewFirmwareForBase",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getLocalDirectoryPath",value:function(e){return""}},{key:"openLink",value:function(e,t){t.preventDefault(),window.open(e)}},{key:"handleEventListener",value:function(e,t){window.addEventListener(e,t)}},{key:"openMessageDialog",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;e&&(e.$store.commit("MODIFY_DIALOG_OPTIONS",t),n&&e.$store.commit("SET_APP_DIALOG_CALLBACK",(function(e){1===e.button&&n(e.checked)})),e.$store.commit("SET_CUSTOM_DIALOGID","appDialog"))}},{key:"setWindowSize",value:function(e,t){}},{key:"dialogCallback",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;i({button:e,checked:t}),this.closeDialog(n)}},{key:"closeDialog",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&e.$store.commit("SET_CUSTOM_DIALOGID","")}},{key:"pauseStateAutoRefresher",value:function(){clearInterval(ControllerLogin.timerAutoRefresher)}},{key:"restartStateAutoRefresher",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ControllerLogin.getChannelStateOntime(e,t)}},{key:"showItemInFolder",value:function(e){}},{key:"buildMenuFromTemplateAndPopup",value:function(e){}},{key:"restoreAutoRefresher",value:function(){var e=this;this.pauseStateAutoRefresher(),this.restartStateAutoRefresher((function(){e.pauseStateAutoRefresher(),e.exitCurrentInterface()}),!0)}},{key:"afterDeviceRestore",value:function(){this.restoreAutoRefresher(),setTimeout((function(){ControllerMain.onLogout()}),3e4)}},{key:"afterDeviceReboot",value:function(){this.restoreAutoRefresher(),setTimeout((function(){ControllerMain.onLogout()}),18e4)}},{key:"afterHDDInit",value:function(){this.restoreAutoRefresher()}},{key:"afterDeviceUpgrade",value:function(){this.pauseStateAutoRefresher(),setTimeout((function(){ControllerMain.onLogout()}),2e3)}},{key:"afterFirmwareUpload",value:function(){this.pauseStateAutoRefresher()}},{key:"getErrorInfo",value:function(e){return h["a"].getInfo(e)}},{key:"getNewFirmware",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t,n,a){var r,s,o,c,u,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r={},Object(i["a"])(r,p["EInternationalCode"].en,"en-us"),Object(i["a"])(r,p["EInternationalCode"].de,"de-de"),Object(i["a"])(r,p["EInternationalCode"].fr,"fr-fr"),s=r,o=s[a]?s[a]:"en-us",c=n||"0000000000000000",u="".concat(l["a"].ReoApiBaseUrl,"/devices/roms/latests/?build=").concat(t,"&uid=").concat(c,"&method=manual&mode=full&language=").concat(o),e.next=6,d["b"].get(u);case 6:return h=e.sent,e.abrupt("return",h.data);case 9:case"end":return e.stop()}}),e)})));function t(t,n,i){return e.apply(this,arguments)}return t}()},{key:"getAutoLoginStatus",value:function(){return!1}},{key:"setAutoLogin",value:function(e){}},{key:"getDefaultServerListJson",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}]),n}(u),f=new g({remoteConfig:"#remote-config-app",dialog:"#dialog-app","account-login":"#account-login-app","live-tab":"#live-tab-app","playback-tab":"#playback-tab-app",livePtz:"#ptz-app",trackRangeLimit:"#track-limit-app"})},"773f":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAABMhJREFUaEPVWltSGzsQVcsu/JnkkypA8gquWcElK4izgpgVBFYQWEFgBSErCKwgZAWXrMAjQxWfIZ+4PNOpMzVyjcU8pLEgvvPDw5KmTz9Pt0wi0nN3dzdK0/RfIcSImbUQQhMRfi4fZr7GH0R0TUQ3aZr+GA6HDzFEoHUOKYT/wMwTInrd5SxmviSiyyzLrtYB1QnI7e3tQZqmn4jooIvwVXuY+YGIzrIsO+8CKAjI/f29fnx8/BITgAuqAHSilDoPUZI3EGPMJyHEScjh66xl5pvBYPB+e3s78TmnFch0On1NRN+e0wp1gsI6UsrDvb29yzYwjUAKEN+JaNR20HN+TkQAc9H0jlogmwLCCt8GphLIpoHwAVMJJEkSuFO01BrT7Xq93v7Ozs6Ne+YTIMYYZCZkqFjPV2YeEdE/MQ5k5oSZ991aswIEdWI+n08jvfB3r9cb7+7uXsc8t5Dtq1JqUpZzBUgsl2Lmn8x8UNaaMYZjKMieIaV8CyUt48f+AtqRZdn3CC87V0oduefEBgICqrV++wTIutZg5t9Sykld8YoNBADKVsldq2Cx/3W1BlxpMBiMm+jEcwARQlwppcaQOwdijDkTQnz0BHIlhCinvwelFPY3Pm1AmNn0+/3xYrG4CMlwWZa9QSzmQJIk+eXTT9Tl8DYQhbKagv0qy7IJBAr1DlvxyXcjM//QWncuknUWAcvVWu+XlWGMAa/64KMgIUSeiskYgwzz2WPTqVKqM42vAoIEQUSv3FQakkFRILXWQwDxRR8NiM1wRW//2U2lhbsnRKQ8FCwQJ5QkCQYBGBq0PVGAwEWZeWyLZZIkucBu/AUoOE/DAOIV6EKIKEBslrFaK2XM43L2m81mE2b+0qbdPPUSvYdr+VKHKEBchZTiYVkTIFxInODMFwfiZj8rcN3/fSyyEUAsM/7fAbF53yWr6wBBUUSw33hSgigxsrW1NSxzslIdWzl/NpuNmfmbj2vZrPWi6VcIcVQevlnW7RbFkE4VqRvB7tvaRrEINIx5LzMf9vv9EXogEEat9crAO6C+CaUUUYAJn7SXPmYv1YuVNA9qUdQAAFhRUkhrbGOLMPqRUv5qE8pymrZ1dZ83kMafWuuVAWCAl+B1uRIsjfeKE7hEv98/rRrHtAFsALIyFi1malOftgLvtNQmBxJCB1yBfeezHgwCVwqnUko0aV4UvhxbOZBCCyBvr9o02/D5mVLqONS1yuvhvu4tV4s8S362HAcF+mXl+U1XAR4WCdIhWgG0AZZFL4FEsgpSa+VVQGwgbqZbGdAFdIs+2sOt02ld+vU5oG4NYgNj2PIA8MnsN4CytMqCzm8wGBzO53OMbHza6dYzscBlAXk9cndiGLFYLJCO1wl8L4E6LqqcZFZeK6yTjjsK57UNg0C3eNqNtTdWmwamajBeRt94h7gpYNpAVMaIa+O/DcYHhBcQLCq+6YCvWrx0AqgM7KqAar1nt5sKluzNg7yit2YR6oSU8sjnfr012OsEKaxz4jnUC8JTjFBBHs9Cv4/ibRFXomKMg7nxuyBpKxbDAkR00QVAZ4u4chQuh4vJA9wb+sYRghjf2+r1ehdd+htXjs4WqbMC2tTFYqHBTIsh9XKplBKM4SGG4O77/wAoQG8gICrbggAAAABJRU5ErkJggg=="},7749:function(e,t,n){},7821:function(e,t,n){},7881:function(e,t,n){},"78f9":function(e,t,n){},"79fe":function(e,t,n){e.exports=n.p+"img/people_low.d41b7211.png"},"7a18":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"process-slider"},[e.showBoundaryValue?n("span",{staticClass:"min-value"},[e._v(e._s(e.min+e.unit))]):e._e(),n("div",{staticClass:"input-wrap flex"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],staticClass:"process-slider-input",style:{background:e.backgroundLinearColor},attrs:{"reo-element":"",title:e.title,type:"range",max:e.max,min:e.min,step:e.step,disabled:e.isSetting,defaultValue:e.defaultValue},domProps:{value:e.computedValue},on:{__r:function(t){e.computedValue=t.target.value}}}),e._t("default",null,{curPercent:e.curPercent,curValue:Math.round(100*parseFloat(""+e.computedValue))/100+e.unit}),e.showRelativePoint?n("span",{staticClass:"relative-point",style:{left:(e.relativePointValue-e.min)/(e.max-e.min)*100+"%"}}):e._e()],2),e.showBoundaryValue?n("span",{staticClass:"max-value"},[e._v(e._s(e.max+e.unit))]):e._e(),e.forceHideStatusIcon?e._e():[e.isSetting&&!e.warnClue?n("loadingImg",{staticClass:"loading-img-box"}):e._e(),e.warnClue&&!e.isSetting?n("span",{staticClass:"icon-client_warning warn-clue-icon"}):e._e()]],2)},a=[],r=(n("99af"),n("a9e3"),n("2b0e")),s=n("6ecd"),o=r["a"].extend({name:"processSlider",components:{loadingImg:s["a"]},props:{isSetting:{type:Boolean,default:!1},warnClue:{type:Boolean,default:!1},title:[Number,String],flag:{type:[String,Number],default:""},bgColor:{type:String,default:"#000"},contentBgColor:{type:String,default:"#1E7EEF"},defaultValue:Number,value:{type:Number,required:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},unit:{type:String,default:""},delay:{type:Number,default:500},relativePointValue:{type:Number,default:0},showRelativePoint:{type:Boolean,default:!1},showBoundaryValue:{type:Boolean,default:!1},forceHideStatusIcon:{type:Boolean,default:!1},specialBgColor:String},data:function(){return{closeRule:!1,preValue:0,computedValue:0,timer:null,curPercent:"0%"}},computed:{backgroundLinearColor:function(){if(this.specialBgColor)return this.specialBgColor;var e=(Math.min(this.computedValue,this.relativePointValue)-this.min)/(this.max-this.min)*100+"%",t=(Math.max(this.computedValue,this.relativePointValue)-this.min)/(this.max-this.min)*100+"%";return this.curPercent=this.computedValue currentVal: ".concat(e," is not in "),JSON.stringify(this.options))}}},activated:function(){this.scrollList()},methods:{zeroize:function(e){return"string"===typeof e?"unknown":(e++,e<10?"0"+e:""+e)},changeSelect:function(e,t){this.disabledValsArr.includes(e)||String(this.currentVal)===String(e)?t.stopPropagation():this.$emit("selectChanged",e,this.flag)},openOptions:function(){this.isSetting||this.isIniting?this.dropDown=!1:(this.dropDown||(this.upOpen=this.isForceUpOpenValid?this.forceUpOpen:document.body.offsetHeight-this.$refs.selectBox.getBoundingClientRect().bottom-1:e.checkedAiTracks},on:{change:[function(n){var i=e.checkedAiTracks,a=n.target,r=!!a.checked;if(Array.isArray(i)){var s=t,o=e._i(i,s);a.checked?o<0&&(e.checkedAiTracks=i.concat([s])):o>-1&&(e.checkedAiTracks=i.slice(0,o).concat(i.slice(o+1)))}else e.checkedAiTracks=r},e.checkedAiTracksChange]}}),i("span",{staticClass:"check-icon icon-client_check",attrs:{checkicon:""}}),i("span",{staticClass:"detect-type-icon",class:e.getEffect(t,"icon")}),i("p",{staticClass:"text"},[e._v(e._s(e.sensitivityEffect[t].copy))])])])})):e._e(),e.aiTrackModesOptions.length>0?[i("h5",{directives:[{name:"show",rawName:"v-show",value:e.aiTrackStatus.isOpen,expression:"aiTrackStatus.isOpen"}],staticClass:"text-bold"},[e._v(e._s(e.$t("ai_track_method")))]),i("selectBox",e._b({directives:[{name:"show",rawName:"v-show",value:e.aiTrackStatus.isOpen,expression:"aiTrackStatus.isOpen"}],staticClass:"select-box select-aiTrack-modes",attrs:{options:e.aiTrackModesOptions},on:{selectChanged:e.aiTrackModesSelect}},"selectBox",e.aiTrackModes,!1))]:e._e(),!e.videoLoss&&e.supportAiTrackRangeLimit&&e.aiTrackStatus.isOpen?[i("div",{staticClass:"small-toogle-controller",on:{click:function(t){e.showTrackRangeLimit=!e.showTrackRangeLimit}}},[i("span",[e._v(e._s(e.$t("horizontal_tracking_range_title")))]),i("span",{class:[e.showTrackRangeLimit?"icon-client_arrow_up":"icon-client_arrow_down"]})]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.showTrackRangeLimit,expression:"showTrackRangeLimit"}],staticClass:"track-range-limit-box"},[i("div",[i("div",{staticClass:"track-range-limit-config-wrap flex"},e._l(e.aiTrackRangeLimitUiInfo,(function(t,n){return i("div",{key:n,staticClass:"track-range-limit-item-wrap",class:{clickable:t.isSet&&!t.imgUrl&&!t.isLoadingImg},on:{click:function(i){return e.retryExportTrackLimitImg(n,t.isSet&&!t.imgUrl&&!t.isLoadingImg)}}},[t.isSet?[t.imgUrl?i("img",{attrs:{src:e.addImgSrcPrefix(t.imgUrl)}}):e._e(),t.isLoadingImg?i("loadingImg",{staticClass:"ab-center",attrs:{delay:0,imgSrcSize:18}}):e._e(),i("span",{directives:[{name:"show",rawName:"v-show",value:!t.imgUrl&&!t.isLoadingImg,expression:"!value.imgUrl&&!value.isLoadingImg"}],staticClass:"btn-icon icon-client_refresh_pro ab-center"})]:i("div",{staticClass:"ab-center"},[e._v(e._s(e.$t("common_Unset")))]),i("div",{staticClass:"icon-des"},[e._v(e._s(t.des))])],2)})),0),i("div",{staticClass:"flex"},[i("button",{staticClass:"gray-button",attrs:{"reo-element":""},on:{click:e.openTrackRangeLimitSettingDialog}},[e._v(e._s(e.$t("common_Setup")))]),e.allowClearUpAiTrackRangeCfg?i("button",{staticClass:"gray-button ghost-button",attrs:{"reo-element":""},on:{click:e.initAiTrackRangeLimitCfg}},[e._v(e._s(e.$t("common_dialog_clear_button")))]):e._e()])]),i("div",{staticClass:"func-description flex"},[i("img",{attrs:{src:n("b861")}}),i("p",[e._v(e._s(e.$t("horizontal_tracking_range_tip")))])])])]:e._e(),!e.videoLoss&&e.supportAiTrackSchedule&&e.aiTrackStatus.isOpen?[i("div",{staticClass:"small-toogle-controller",on:{click:function(t){e.showAiTrackSchedule=!e.showAiTrackSchedule}}},[i("span",[e._v(e._s(e.$t("common_view_schedule")))]),i("span",{class:[e.showAiTrackSchedule?"icon-client_arrow_up":"icon-client_arrow_down"]})]),i("scheduleDispense",e._b({directives:[{name:"show",rawName:"v-show",value:e.showAiTrackSchedule,expression:"showAiTrackSchedule"}],on:{saveScheduleGroup:e.saveAiTrackSchedule}},"scheduleDispense",e.aiTrackScheduleProps,!1))]:e._e(),(e.trackObjectDisappearDelay.support||e.trackObjectStopDelay.support)&&e.aiTrackStatus.isOpen?i("div",{staticClass:"stop-track-config-wrap"},[i("h5",{staticClass:"text-bold"},[e._v(e._s(e.$t("ai_track_stop_description")))]),i("p",{staticClass:"text"},[e._v(e._s(e.$t("ai_track_object_stops")))]),e.trackObjectStopDelay.support?i("selectBox",e._b({staticClass:"select-box",on:{selectChanged:e.aiTrackSelect}},"selectBox",e.trackObjectStopDelay,!1)):e._e(),i("p",{staticClass:"text"},[e._v(e._s(e.$t("ai_track_object_disappers")))]),e.trackObjectDisappearDelay.support?i("selectBox",e._b({staticClass:"select-box",on:{selectChanged:e.aiTrackSelect}},"selectBox",e.trackObjectDisappearDelay,!1)):e._e()],1):e._e()],2):e._e(),!e.videoLoss&&e.supportMD&&e.showAlarmSchedule?i("div",[i("h5",{directives:[{name:"show",rawName:"v-show",value:e.motion.bEnable,expression:"motion.bEnable"}],staticClass:"text-bold middle-title"},[e._v(e._s(e.$t("remoteConfig_motion_motionSchedule")))]),i("scheduleDispense",e._b({directives:[{name:"show",rawName:"v-show",value:e.motion.bEnable,expression:"motion.bEnable"}],ref:"scheduleDispense",on:{saveScheduleLegacy:e.saveScheduleLegacy}},"scheduleDispense",e.scheduleProps,!1))],1):e._e(),e.showConfig?i("div",{staticClass:"sensitivity-box"},[!e.videoLoss&&e.supportMD||e.supportAISensitivity?[i("h5",{staticClass:"middle-title schedule-title"},[e._v(e._s(e.$t("common_Sensitivity")))]),!e.videoLoss&&e.supportMD?i("div",{staticClass:"toogle-controller",class:{"show-detail":e.showSensitivity}},[i("div",{staticClass:"toogle-controller-title",on:{click:function(t){e.showSensitivity=!e.showSensitivity}}},[i("span",[e._v(e._s(e.$t("remote_config_page_alarm_section_md_settings_item_label")))]),i("span",{class:[e.showSensitivity?"icon-client_arrow_up":"icon-client_arrow_down"]})]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.showSensitivity,expression:"showSensitivity"}]},[e.isNewSensitivity?e._e():[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_motion_customizedSettings")))]),e.sensitivity.length>0?i("slideBtn",e._b({staticClass:"customized-sensitivity-btn",on:{stateChange:e.sensitivityStatusSwitch}},"slideBtn",e.sensitivityStatus,!1)):e._e(),i("img",{staticClass:"effect-img",attrs:{src:e.mdSensitivityEffectCopy.img[e.activedSensitivityLevel]}}),i("p",{staticClass:"effect-des notes-text"},[e._v(e._s(e.mdSensitivityEffectCopy.des[e.activedSensitivityLevel]))])],e.isNewSensitivity?e._e():[e.sensitivityStatus.isOpen?e._e():i("div",{staticClass:"default-periods flex",on:{click:function(t){e.activeSensitivityIndex=0}}},[e._m(0),i("processSlider",e._b({attrs:{contentBgColor:"#046DEC",title:e.getSensitivityLevelCopy(e.defaultSensitivity.value)},on:{valueChanged:e.defaultSensitivityValueChanged}},"processSlider",Object.assign({},e.processSliderStyle,e.defaultSensitivity),!1),[i("span",{staticClass:"percent-num"},[e._v(e._s(e.defaultSensitivity.value))])])],1),e.sensitivityStatus.isOpen?i("div",{staticClass:"customized-periods text"},[e._m(1),e._l(e.sensitivity,(function(t,n){return i("div",{key:n+"a"},[i("div",{staticClass:"set-sensitivity flex",class:{invalid:e.invalidSensitivity.includes(n)},on:{mousedown:function(t){e.activeSensitivityIndex=n}}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.invalidSensitivity.includes(n),expression:"invalidSensitivity.includes(index)"}],staticClass:"sensitivity-mask full-screen",on:{click:function(e){e.stopPropagation()}}}),i("processSlider",e._b({attrs:{contentBgColor:e.getContentBgColor(e.activeSensitivityIndex===n),title:e.getSensitivityLevelCopy(t.value)},on:{valueChanged:e.sensitivityValueChanged}},"processSlider",Object.assign({},e.processSliderStyle,t),!1),[i("span",{staticClass:"percent-num"},[e._v(e._s(t.value))])])],1),n!==e.sensitivity.length-1?i("div",{staticClass:"set-time flex text"},[i("rangeInput",e._b({attrs:{flag:n,separation:2},on:{rangeChanged:e.periodsRangeChanged}},"rangeInput",Object.assign({},e.rangeInputStyle,e.customizedPeriods[n]),!1))],1):e._e()])})),e._m(2)],2):e._e()],e.isNewSensitivity?i("div",{staticClass:"new-sensitivity-wrap"},[i("div",{staticClass:"notes-text"},[e._v(e._s(e.$t("motion_detection_des")))]),i("div",{staticClass:"link-entry",attrs:{"reo-element":""},on:{click:e.openNewSensitivityIntroDialog}},[e._v(e._s(e.$t("common_learn_more")))]),i("annularChart",{attrs:{isLooping:!0,isRangeNoOverlap:!0,totalRange:{begin:0,end:1440,color:e.newSensitivity.length?"#535E6B":e.getContentBgColorAccordingToLevel(e.newDefaultSensitivity.value)},originalChartData:e.newSensitivityChartData,showCoordinateScale:e.showCoordinateScale,outputRemainingAngles:!0},on:{remainingAnglesChange:function(t){return e.isNewSensitivityOtherPeriodDisabled=t<=0}}}),i("div",{directives:[{name:"show",rawName:"v-show",value:e.newSensitivity.length<4,expression:"newSensitivity.length<4"}],staticClass:"add-btn",on:{click:e.addNewSensitivity}},[e._v(e._s(e.$t("STR_CAMERA_ALARM_NEW_ADD_TIME")))]),i("div",{staticClass:"notes-text"},[e._v(e._s(e.$t("device_pir_settings_sensitivity_settings_page_only_one_saved_when_overlap")))]),0===e.newSensitivity.length?i("div",{staticClass:"new-sensitivity-box flex",on:{click:function(t){e.activeSensitivityIndex=-1}}},[i("div",{staticClass:"new-sensitivity-time-wrap flex"},[i("rangeInput",e._b({attrs:{timeStyle:!0,disabled:!0}},"rangeInput",Object.assign({},e.rangeInputStyle,{left:0,right:0}),!1)),i("span",{staticClass:"separate-line"}),i("rangeInput",e._b({attrs:{timeStyle:!0,disabled:!0}},"rangeInput",Object.assign({},e.rangeInputStyle,{left:23,right:59}),!1))],1),i("processSlider",e._b({attrs:{contentBgColor:e.getContentBgColorAccordingToLevel(e.newDefaultSensitivity.value),title:e.getSensitivityLevelCopy(e.newDefaultSensitivity.value)+" "+e.newDefaultSensitivity.value},on:{valueChanged:e.defaultNewSensitivityValueChanged}},"processSlider",Object.assign({},e.processSliderStyle,e.newDefaultSensitivity),!1),[i("span",{staticClass:"percent-num"},[e._v(e._s(e.getSensitivityLevelCopy(e.newDefaultSensitivity.value)))])])],1):e._e(),e._l(e.newSensitivity,(function(t,n){return i("div",{key:t.uuid,staticClass:"new-sensitivity-box flex",class:{"invalid-periods":e.newCustomizedPeriods[n]["beginHour"]===e.newCustomizedPeriods[n]["endHour"]&&e.newCustomizedPeriods[n]["beginMinute"]===e.newCustomizedPeriods[n]["endMinute"]},on:{mousedown:function(t){e.activeSensitivityIndex=n}}},[i("div",{staticClass:"new-sensitivity-time-wrap flex"},[i("rangeInput",e._b({attrs:{flag:n,timeStyle:!0},on:{rangeChanged:e.newPeriodsRangeBeginChanged}},"rangeInput",Object.assign({},e.rangeInputStyle,{left:e.newCustomizedPeriods[n].beginHour,right:e.newCustomizedPeriods[n].beginMinute}),!1)),i("span",{staticClass:"separate-line"}),i("rangeInput",e._b({attrs:{flag:n,timeStyle:!0},on:{rangeChanged:e.newPeriodsRangeEndChanged}},"rangeInput",Object.assign({},e.rangeInputStyle,{left:e.newCustomizedPeriods[n].endHour,right:e.newCustomizedPeriods[n].endMinute}),!1))],1),i("processSlider",e._b({attrs:{contentBgColor:e.getContentBgColorAccordingToLevel(t.value),title:e.getSensitivityLevelCopy(t.value)+" "+t.value},on:{valueChanged:e.newSensitivityValueChanged}},"processSlider",Object.assign({},e.processSliderStyle,t),!1),[i("span",{staticClass:"percent-num"},[e._v(e._s(e.getSensitivityLevelCopy(t.value))+" ")]),i("a",{staticClass:"percent-num",attrs:{"reo-element":""},on:{click:function(t){return t.stopPropagation(),e.deleteNewSensitivity(n)}}},[i("span",{staticClass:"icon-client_error"})])])],1)})),i("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.newSensitivity.length,expression:"newSensitivity.length!==0"}],staticClass:"new-sensitivity-box flex",class:{"invalid-periods":e.isNewSensitivityOtherPeriodDisabled},on:{mousedown:function(t){e.activeSensitivityIndex=-1}}},[i("div",{staticClass:"new-sensitivity-time-wrap flex others-periods"},[e._v(" "+e._s(e.$t("STR_CAMERA_ALARM_NEW_OTHER_TIME"))+" ")]),i("processSlider",e._b({attrs:{contentBgColor:"#535E6B",title:e.getSensitivityLevelCopy(e.newDefaultSensitivity.value)+" "+e.newDefaultSensitivity.value},on:{valueChanged:e.defaultNewSensitivityValueChanged}},"processSlider",Object.assign({},e.processSliderStyle,e.newDefaultSensitivity),!1),[i("span",{staticClass:"percent-num"},[e._v(e._s(e.getSensitivityLevelCopy(e.newDefaultSensitivity.value)))])])],1)],2):e._e()],2)]):e._e(),e.supportAISensitivity?i("div",{staticClass:"toogle-controller",class:{"show-detail":e.showSmartSensitivity}},[i("div",{staticClass:"toogle-controller-title",on:{click:function(t){e.showSmartSensitivity=!e.showSmartSensitivity}}},[i("span",[e._v(e._s(e.$t("smart_detection_page_title")))]),i("span",{class:[e.showSmartSensitivity?"icon-client_arrow_up":"icon-client_arrow_down"]})]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.showSmartSensitivity,expression:"showSmartSensitivity"}]},[i("img",{staticClass:"effect-img",attrs:{src:e.getEffect(e.smartSensitivityCate,"img."+e.activedSmartSensitivityLevel)}}),i("p",{staticClass:"effect-des notes-text"},[e._v(e._s(e.getEffect(e.smartSensitivityCate,"des."+e.activedSmartSensitivityLevel)))]),e._l(e.supportAiDetectCates,(function(t,n){return i("div",{key:t+n+"detection",staticClass:"smart-sensitivity-box smart-type-box flex",on:{mousedown:function(n){e.smartSensitivityCate=t}}},[i("span",{staticClass:"cate-icon",class:e.getEffect(t,"icon"),attrs:{title:e.getEffect(t,"copy")}}),i("processSlider",e._b({attrs:{title:e.getSmartSensitivityLevelCopy(t),contentBgColor:e.getContentBgColor(e.smartSensitivityCate===t)},on:{valueChanged:e.smartSensitivityValueChanged}},"processSlider",Object.assign({},e.smartProcessSliderStyle,e.smartSensitivity[t]),!1),[i("span",{staticClass:"percent-num"},[e._v(e._s(e.smartSensitivity[t].value))])])],1)}))],2)]):e._e()]:e._e(),e.supportAiStayTime?[i("h5",{staticClass:"middle-title schedule-title"},[e._v(e._s(e.$t("alarm_tolerance_page_titile")))]),i("p",{staticClass:"discipline-description effect-des"},[e._v(e._s(e.$t("alarm_tolerance_setting_page_description")))]),e._l(e.supportAiDetectCates,(function(t,n){return i("div",{directives:[{name:"show",rawName:"v-show",value:t!==e.EAiDetectCate.PACKAGE,expression:"cate !== EAiDetectCate.PACKAGE"}],key:t+n+"tolerance",staticClass:"smart-sensitivity-box smart-type-box flex"},[i("span",{staticClass:"cate-icon",class:e.getEffect(t,"icon"),attrs:{title:e.getEffect(t,"copy")}}),i("processSlider",e._b({on:{valueChanged:e.toleranceSensitivityValueChanged}},"processSlider",Object.assign({},e.toleranceProcessSliderStyle,e.toleranceSensitivity[t]),!1),[i("span",{staticClass:"percent-num"},[e._v(e._s(e.toleranceSensitivity[t].value)+"s")])])],1)}))]:e._e(),e.supportAITargetSize?[i("h5",{staticClass:"middle-title schedule-title"},[e._v(e._s(e.$t("alarm_object_size_page_title")))]),i("p",{staticClass:"discipline-description effect-des"},[e._v(e._s(e.$t("alarm_object_size_setting_page_description")))]),e._l(e.supportAiDetectCates,(function(t,n){return i("div",{key:t+n+"size",staticClass:"smart-sensitivity-box smart-type-box flex"},[i("span",{staticClass:"cate-icon",class:e.getEffect(t,"icon"),attrs:{title:e.getEffect(t,"copy")}}),i("button",{staticClass:"gray-button",attrs:{"reo-element":""},on:{click:function(n){return e.setSensitivitySize(t)}}},[e._v(e._s(e.$t("common_Setup")))])])}))]:e._e()],2):e._e(),i("div",{staticClass:"multi-ipc-box"},[e.isMultiIpc?i("channelBox",{staticClass:"channel-box multi-ipc-channelbox",attrs:{channels:e.channels},on:{channelIndexChange:e.channelIndexChange,ableChannelNumChange:e.ableChannelNumChange}}):e._e(),e.isMultiIpc&&(e.isLoadingAreaCfg||e.isAreaCfgRetry)?i("div",{staticClass:"loading-retry-box alarm-area"},[e.isLoadingAreaCfg&&!e.isAreaCfgRetry?i("loading",{staticClass:"loading"}):e._e(),!e.isLoadingAreaCfg&&e.isAreaCfgRetry?i("retry",{on:{retry:e.getAlarmAreas}}):e._e()],1):e._e(),!e.videoLoss&&e.supportMD||e.supportAiDetectConfig?[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.isLoadingAreaCfg&&!e.isAreaCfgRetry||!e.isMultiIpc,expression:"!isLoadingAreaCfg&&!isAreaCfgRetry || !isMultiIpc"}]},[i("h5",{staticClass:"middle-title alarm-area-title"},[e._v(e._s(e.$t("alarm_settings_detection_area_page_title")))]),e.supportAiDetectConfig&&e.supportAiOther?e._l(e.supportAlarmAreaCates,(function(t,n){return i("div",{directives:[{name:"show",rawName:"v-show",value:t!==e.EAiDetectCate.MD,expression:"cate!==EAiDetectCate.MD"}],key:t+n+"area",staticClass:"detection-area-box smart-type-box flex"},[i("span",{staticClass:"cate-icon",class:e.getEffect(t,"icon"),attrs:{title:e.getEffect(t,"copy")}}),i("button",{staticClass:"gray-button",attrs:{"reo-element":""},on:{click:function(n){return e.setAlarmDetect(t)}}},[e._v(e._s(e.$t("common_Setup")))])])})):[i("button",{staticClass:"gray-button",attrs:{"reo-element":""},on:{click:function(t){return e.setAlarmDetect(e.supportAiDetectConfig?"all":"motion")}}},[e._v(e._s(e.$t("common_Setup")))])]],2)]:e._e()],2)])])],2):e._e()},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"time-wrap flex-between"},[n("span",{staticClass:"text"},[e._v("00:00")]),n("span",{staticClass:"broken-line"}),n("span",{staticClass:"text"},[e._v("23:59")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"inclusive-time flex"},[n("span",[e._v("00:00")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"inclusive-time flex"},[n("span",[e._v("23:59")])])}],s=(n("99af"),n("7db0"),n("c740"),n("4160"),n("caad"),n("a15b"),n("d81d"),n("45fc"),n("a434"),n("d3b7"),n("c760"),n("ac1f"),n("2532"),n("3ca3"),n("1276"),n("159b"),n("ddb0"),n("b85c")),o=n("3835"),c=(n("96cf"),n("1da1")),u=n("5530"),l=n("2909"),d=n("ade3"),p=n("2b0e"),h=n("9629"),m=n("6af1"),g=n("8bdb"),f=n("7a18"),_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("canvas",{ref:"canvas",attrs:{width:e.canvasWidth,height:e.canvasHeight}})},v=[],b=(n("cb29"),n("4de4"),n("13d5"),n("a9e3"),n("ffa8")),w=p["a"].extend({name:"annularChart",props:{canvasWidth:{type:Number,default:418},canvasHeight:{type:Number,default:306},originalChartData:{type:Array,required:!0},showCoordinateScale:{type:Array,required:!0},totalRange:{type:Object,required:!0},customCanvasStyleData:{type:Object,default:function(){return{}}},isLooping:{type:Boolean,default:!1},isRangeNoOverlap:{type:Boolean,default:!1},outputRemainingAngles:{type:Boolean,default:!1}},data:function(){return{defaultCanvasStyleData:{bgColor:"#333",font:"SF Pro Display, Arial",coordinateFontSize:14,coordinateFontColor:"#F7F8F9",dataFontSize:12,dataFontColor:"#fff",dataBoundaryColor:"#F7F8F9",dataBoundaryWidth:1,dataBoundaryHeight:20,spaceWidthBetweenCoordinateAndRing:16,chartRadius:118,ringWidth:16}}},watch:{chartData:function(){var e=this;this.outputRemainingAngles&&this.getRemainingAngles(),this.$nextTick((function(){e.drawCanvas()}))},totalRange:function(){var e=this;this.$nextTick((function(){e.drawCanvas()}))}},computed:{canvasStyleData:function(){return Object.assign({},this.defaultCanvasStyleData,this.customCanvasStyleData)},chartData:function(){var e=this,t=this.originalChartData.map((function(t){return Object(u["a"])(Object(u["a"])({},t),{},{begin:e.getAngle(Math.max(t.begin,e.totalRange.begin)),end:e.getAngle(Math.min(t.end,e.totalRange.end))})})).filter((function(t){return e.isLooping?t.begin!==t.end:t.beginr.end){var o=Object(u["a"])(Object(u["a"])({},r),{},{begin:0,end:r.end}),c=Object(u["a"])(Object(u["a"])({},r),{},{begin:r.begin,end:2*Math.PI}),l=this.getNoOverlapRangeDataArr(i,o);l.length&&(i=i.concat(l)),l=[],l=this.getNoOverlapRangeDataArr(i,c),l.length&&(i=i.concat(l))}else{var d=this.getNoOverlapRangeDataArr(i,r);d.length&&(i=i.concat(d))}}}catch(p){a.e(p)}finally{a.f()}return i},mergeRangeWithSameValue:function(e){for(var t=Object(b["g"])(e).sort((function(e,t){return e.begin-t.begin})),n=[],i=0;i=Math.PI/4&&r<=Math.PI/4*3?"start":r>=Math.PI/4*5&&r<=Math.PI/4*7?"end":"center",e.textBaseline=r>=Math.PI/4*3&&r<=Math.PI/4*5?"top":r<=Math.PI/4||r>=Math.PI/4*7?"bottom":"middle",e.fillText(n,t.centerX+t.radius*Math.sin(r),t.centerY+t.radius*-Math.cos(r))},drawLineAround:function(e,t,n,i,a){var r=t.angle;e.strokeStyle=n,e.lineWidth=i,e.beginPath();var s=0;e.moveTo(t.centerX+(t.radius+s)*Math.sin(r),t.centerY+(t.radius+s)*-Math.cos(r)),s=a,e.lineTo(t.centerX+(t.radius+s)*Math.sin(r),t.centerY+(t.radius+s)*-Math.cos(r)),e.closePath(),e.stroke()},drawCanvas:function(){var e=this.$refs.canvas,t=e.getContext("2d");if(t){var n=this.canvasWidth/2,i=this.canvasHeight/2,a=this.canvasStyleData.chartRadius,r=this.canvasStyleData.chartRadius-this.canvasStyleData.ringWidth;t.clearRect(0,0,this.canvasWidth,this.canvasHeight),t.fillStyle=this.totalRange.color,t.beginPath(),t.arc(n,i,a,0,2*Math.PI),t.fill();var o,c=Object(s["a"])(this.chartData);try{for(c.s();!(o=c.n()).done;){var u=o.value;t.fillStyle=u.color,t.beginPath(),t.moveTo(n,i),t.arc(n,i,a,u.begin-Math.PI/2,u.end-Math.PI/2),t.fill()}}catch(_){c.e(_)}finally{c.f()}t.fillStyle=this.canvasStyleData.bgColor,t.beginPath(),t.arc(n,i,r,0,2*Math.PI),t.fill();var l,d=Object(s["a"])(this.showCoordinateScale);try{for(d.s();!(l=d.n()).done;){var p=l.value;this.drawTextAround(t,{centerX:n,centerY:i,radius:r-this.canvasStyleData.spaceWidthBetweenCoordinateAndRing-this.canvasStyleData.coordinateFontSize,angle:this.getAngle(p.value)},p.text,this.canvasStyleData.coordinateFontColor,"".concat(this.canvasStyleData.coordinateFontSize,"px ").concat(this.canvasStyleData.font))}}catch(_){d.e(_)}finally{d.f()}var h,m=Object(s["a"])(this.chartData);try{for(m.s();!(h=m.n()).done;){var g=h.value;if(g.text){var f=(g.end-g.begin)/2+g.begin;this.drawLineAround(t,{centerX:n,centerY:i,radius:a,angle:f},g.color,1,12),this.drawTextAround(t,{centerX:n,centerY:i,radius:a+16,angle:f},g.text,this.canvasStyleData.dataFontColor,"".concat(this.canvasStyleData.dataFontSize,"px ").concat(this.canvasStyleData.font))}if(this.isRangeNoOverlap&&g.begin+2*Math.PI===g.end)return;this.drawLineAround(t,{centerX:n,centerY:i,radius:a-this.canvasStyleData.ringWidth-(this.canvasStyleData.dataBoundaryHeight-this.canvasStyleData.ringWidth)/2,angle:g.begin},this.canvasStyleData.dataBoundaryColor,this.canvasStyleData.dataBoundaryWidth,this.canvasStyleData.dataBoundaryHeight),this.drawLineAround(t,{centerX:n,centerY:i,radius:a-this.canvasStyleData.ringWidth-(this.canvasStyleData.dataBoundaryHeight-this.canvasStyleData.ringWidth)/2,angle:g.end},this.canvasStyleData.dataBoundaryColor,this.canvasStyleData.dataBoundaryWidth,this.canvasStyleData.dataBoundaryHeight)}}catch(_){m.e(_)}finally{m.f()}}}}}),C=w,y=n("2877"),S=Object(y["a"])(C,_,v,!1,null,null,null),k=S.exports,A=n("b662"),E=n("6ecd"),x=n("0b32"),O=n("5d68"),I=n("4cb1"),D=n("a36f"),T=n("c601"),R=n("0ac9"),P=n("1c70"),L=n.n(P),M=n("ad0f"),N=n.n(M),B=n("2f73"),F=n.n(B),j=n("79fe"),V=n.n(j),U=n("6c8c"),H=n.n(U),G=n("6370"),W=n.n(G),z=n("b595"),Y=n.n(z),q=n("b928"),$=n.n(q),K=n("28d8"),Z=n.n(K),J=n("f697"),Q=n.n(J),X=n("99b2"),ee=n.n(X),te=n("c91b"),ne=n.n(te),ie=n("9354"),ae=n("69b8"),re=n("0565"),se=n("ec26"),oe=n("df7c"),ce=n.n(oe),ue=n("aa18"),le=n("cd43"),de=n("74c2"),pe=n("9dd4"),he=n("930a"),me=n.n(he),ge=n("505c"),fe=n.n(ge),_e=n("63f4"),ve=n.n(_e);(function(e){e["LOW"]="LOW",e["MIDDLE"]="MIDDLE",e["HIGH"]="HIGH"})(i||(i={}));for(var be,we={},Ce={},ye=[R["EAiDetectCate"].PEOPLE,R["EAiDetectCate"].VEHICLE,R["EAiDetectCate"].DOG_CAT,R["EAiDetectCate"].FACE,R["EAiDetectCate"].OTHER,R["EAiDetectCate"].PACKAGE],Se=0,ke=ye;Se activated > getMotionCfg or getAlarmAreas: ",t.t0);case 15:case"end":return t.stop()}}),t,null,[[2,12]])})))()},methods:{openNewSensitivityIntroDialog:function(){this.$store.commit("SET_DIALOGID","motionNewSensitivityIntro")},openTrackRangeLimitSettingDialog:function(){var e=this;ue["a"].IS_CLIENT?pe["a"].showTrackRangeLimitWindow({handle:this.channel.handle,identifier:this.channel.deviceIdentifier,index:this.channel.index}):(this.$store.commit("SET_SCHEDULE_CALLBACK",(function(t){e.aiTrackRangeLimit=t,e.aiTrackRangeLimitCfgUpdate()})),this.$store.commit("SET_DIALOGID","aiTrackRangeLimit"))},setSensitivitySize:function(e){var t=this;this.$store.commit("MODIFY_AI_DETECT_CFG",Object(b["g"])(this.aiDetectCfgSet[e])),this.$store.commit("MODIFY_SCHEDULE_TYPE",e),this.$store.commit("SET_SCHEDULE_CALLBACK",(function(n){var i=Object(b["g"])(t.aiDetectCfgSet[e]);i&&(t.aiDetectCfgSet[e]=Object(b["g"])(n),O["a"].saveEffect(t.$store,i,t.setAiDetectCfg))})),this.$store.commit("STORE_DIALOG_CHANNEL_INDEX",this.channelIndex),this.$store.commit("SET_DIALOGID","sensitivitySize")},getSensitivityLevelCopy:function(e,t){return void 0===t&&(t=this.processSliderStyle.max),this.eLevelCopy[this.getSensitivityLevel(e,t)]},getSmartSensitivityLevelCopy:function(e){return this.getSensitivityLevelCopy(this.smartSensitivity[e].value,this.smartProcessSliderStyle.max)},getSensitivityLevel:function(e,t){return e?e>2*t/3?i.HIGH:e>t/3?i.MIDDLE:i.LOW:i.LOW},getContentBgColor:function(e){return e?"#046DEC":"#535E6B"},getContentBgColorAccordingToLevel:function(e,t){void 0===t&&(t=this.processSliderStyle.max);var n=this.getSensitivityLevel(e,t);switch(n){case i.LOW:return"#9EC2EF";case i.MIDDLE:return"#5894DD";case i.HIGH:return"#046DEC";default:return"#535E6B"}},getEffect:function(e,t){return Object(b["q"])(this.sensitivityEffect,"".concat(e,".").concat(t),"".concat(R["EAiDetectCate"].PEOPLE,".").concat(t))},channelInit:function(){var e=arguments,t=this;return Object(c["a"])(regeneratorRuntime.mark((function n(){var i,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e.length>0&&void 0!==e[0]&&e[0],t.channel){n.next=3;break}return n.abrupt("return");case 3:return t.channelInitSeq++,a=t.channelInitSeq,t.isLoadingMotionCfg=!0,t.isMotionCfgRetry=!1,n.prev=7,n.next=10,t.getChannelData();case 10:t.isOnceInitd=!0,n.next=16;break;case 13:n.prev=13,n.t0=n["catch"](7),t.channelInitSeq===a&&(t.isMotionCfgRetry=!0,ie["a"].error("motionDetect.vue > channelInit > getChannelData: ",n.t0));case 16:t.channelInitSeq===a&&(t.isLoadingMotionCfg=!1),i&&t.$emit("loadingMotionChange",!1);case 18:case"end":return n.stop()}}),n,null,[[7,13]])})))()},getChannelData:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.channel.remoteGetIsVideoLoss(),e.channel.supportMDWithPIR(),e.channel.supportAiTrack(),e.channel.supportAiTrackClassify(),e.channel.supportAiTrackDogCat(),e.channel.supportAiDetectConfig(),e.channel.supportAiStayTime(),e.channel.supportAISensitivity(),e.channel.supportAITargetSize(),e.channel.supportAi(),e.channel.supportAITrackLimit(),e.channel.supportAITrackSchedule(),e.channel.supportMD()]);case 3:n=t.sent,i=Object(o["a"])(n,13),e.videoLoss=i[0],e.supportMDWithPIR=i[1],e.supportAiTrack=i[2],e.supportAiTrackClassify=i[3],e.supportAiTrackDogCat=i[4],e.supportAiDetectConfig=i[5],e.supportAiStayTime=i[6],e.supportAISensitivity=i[7],e.supportAITargetSize=i[8],e.supportAi=i[9],e.supportAiTrackRangeLimit=i[10],e.supportAiTrackSchedule=i[11],e.supportMD=i[12],t.next=24;break;case 20:throw t.prev=20,t.t0=t["catch"](0),ie["a"].error("motionDetect.vue > getChannelData > getSupport: ",t.t0),t.t0;case 24:return a=!1,t.prev=25,t.next=28,e.channel.supportAiAnimal();case 28:a=t.sent,t.next=34;break;case 31:t.prev=31,t.t1=t["catch"](25),ie["a"].error("motionDetect.vue > getChannelData > getSupport > supportAiAnimal: ",t.t1);case 34:if(e.$store.commit("MODIFY_SUPPORT_AI_ANIMAL",a),e.sensitivityEffect[R["EAiDetectCate"].DOG_CAT].copy=a?e.$t("common_ai_animal_option"):e.$t("common_ai_pet_option"),e.aiTrackStatus.support=e.supportAiTrack,0!==e.ableChannelNum){t.next=39;break}throw new Error("all channels are videoloss");case 39:if(!e.supportAi){t.next=43;break}return t.next=42,Promise.all([e.getAiTrackCfg(),e.getAiDetectCfgSet()]);case 42:e.updateAiDetectCfgSet();case 43:return r=[],!e.videoLoss&&e.supportMD&&r.push(e.getMotionCfg()),e.supportAiTrackRangeLimit=ue["a"].IS_CLIENT&&e.supportAiTrackRangeLimit,e.supportAiTrackRangeLimit&&r.push(e.getAiTrackRangeLimitCfg()),e.supportAiTrackSchedule&&r.push(e.getAiTrackSchedule()),t.next=50,Promise.all(r);case 50:case"end":return t.stop()}}),t,null,[[0,20],[25,31]])})))()},getMotionCfg:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getMotionCfg();case 3:e.motion=t.sent,e.motionUpdate(),t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),ie["a"].error("motionDetect.vue > getMotionCfg: ",t.t0),t.t0;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},getAiDetectCfgSet:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,o,u,l,d,p,h;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=[],i={},e.supportAiDetectConfig){t.next=4;break}return t.abrupt("return");case 4:for(o in a=[],r=function(t){a.push(Object(c["a"])(regeneratorRuntime.mark((function n(){var i,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:i=t,a=!1,n.prev=2,n.t0=i,n.next=n.t0===R["EAiDetectCate"].PEOPLE?6:n.t0===R["EAiDetectCate"].VEHICLE?10:n.t0===R["EAiDetectCate"].DOG_CAT?14:n.t0===R["EAiDetectCate"].FACE?18:n.t0===R["EAiDetectCate"].OTHER?22:n.t0===R["EAiDetectCate"].PACKAGE?26:30;break;case 6:return n.next=8,e.channel.supportAiPeople();case 8:return a=n.sent,n.abrupt("break",31);case 10:return n.next=12,e.channel.supportAiVehicle();case 12:return a=n.sent,n.abrupt("break",31);case 14:return n.next=16,e.channel.supportAiDogCat();case 16:return a=n.sent,n.abrupt("break",31);case 18:return n.next=20,e.channel.supportAiFace();case 20:return a=n.sent,n.abrupt("break",31);case 22:return n.next=24,e.channel.supportAIOther();case 24:return a=n.sent,n.abrupt("break",31);case 26:return n.next=28,e.channel.supportAiPackage();case 28:return a=n.sent,n.abrupt("break",31);case 30:return n.abrupt("break",31);case 31:n.next=37;break;case 33:throw n.prev=33,n.t1=n["catch"](2),ie["a"].error("motionDetect.vue > getAiDetectCfgSet > getSupport ".concat(i,": "),n.t1),n.t1;case 37:return n.abrupt("return",a?i:null);case 38:case"end":return n.stop()}}),n,null,[[2,33]])})))())},e.sensitivityEffect)r(o);return t.next=9,Promise.all(a);case 9:u=t.sent,l=[],d=Object(s["a"])(u);try{for(h=function(){var t=p.value;null!==t&&(l.push(Object(c["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t===R["EAiDetectCate"].OTHER){n.next=11;break}return n.prev=1,n.next=4,e.channel.config.getAIDetectCfg(t);case 4:i[t]=n.sent,n.next=11;break;case 7:throw n.prev=7,n.t0=n["catch"](1),ie["a"].error("motionDetect.vue > getAiDetectCfgSet > getAIDetectCfg ".concat(t,": "),n.t0),n.t0;case 11:case"end":return n.stop()}}),n,null,[[1,7]])})))()),t===R["EAiDetectCate"].OTHER?e.supportAiOther=!0:n.push(t))},d.s();!(p=d.n()).done;)h()}catch(m){d.e(m)}finally{d.f()}return e.supportAiDetectCates.length>0&&(e.smartSensitivityCate=e.supportAiDetectCates[0]),t.next=16,Promise.all(l);case 16:return e.supportAiDetectCates=n,e.aiDetectCfgSet=i,t.next=20,e.getAlarmAreas(!1);case 20:case"end":return t.stop()}}),t)})))()},getAlarmAreas:function(){var e=arguments,t=this;return Object(c["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=!(e.length>0&&void 0!==e[0])||e[0],i&&(t.isLoadingAreaCfg=!0,t.isAreaCfgRetry=!1),n.prev=2,n.delegateYield(regeneratorRuntime.mark((function e(){var n,i,a,r,o,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=[],i=Object(l["a"])(t.supportAiDetectCates),a={},t.supportAiOther&&i.push(R["EAiDetectCate"].OTHER),r=Object(s["a"])(i);try{for(u=function(){var e=o.value;n.push(Object(c["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.channel.config.getAlarmAreas(e);case 3:a[e]=n.sent,n.next=10;break;case 6:throw n.prev=6,n.t0=n["catch"](0),ie["a"].error("motionDetect.vue > getAlarmAreas ".concat(e,": "),n.t0),n.t0;case 10:case"end":return n.stop()}}),n,null,[[0,6]])})))())},r.s();!(o=r.n()).done;)u()}catch(d){r.e(d)}finally{r.f()}return e.next=8,Promise.all(n);case 8:t.isLoadingAreaCfg=!1,t.alarmAreas=a;case 10:case"end":return e.stop()}}),e)}))(),"t0",4);case 4:n.next=14;break;case 6:if(n.prev=6,n.t1=n["catch"](2),!i){n.next=13;break}t.isLoadingAreaCfg=!1,t.isAreaCfgRetry=!0,n.next=14;break;case 13:throw n.t1;case 14:case"end":return n.stop()}}),n,null,[[2,6]])})))()},setAiDetectCfg:function(e,t){var n=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=n.aiDetectCfgSet[e.type],i){t.next=3;break}return t.abrupt("return");case 3:return t.prev=3,t.next=6,n.channel.config.setAIDetectCfg(i);case 6:t.next=15;break;case 9:throw t.prev=9,t.t0=t["catch"](3),n.aiDetectCfgSet[e.type]=e,n.updateAiDetectCfgSet(),ie["a"].error("motionDetect.vue > setAiDetectCfg: ",t.t0),new Error;case 15:case"end":return t.stop()}}),t,null,[[3,9]])})))()},updateAiDetectCfgSet:function(){var e,t=Object(s["a"])(this.supportAiDetectCates);try{for(t.s();!(e=t.n()).done;){var n=e.value,i=this.aiDetectCfgSet[n];i&&(this.smartSensitivity[n].value=i.sensitivity,this.toleranceSensitivity[n].value=i.stayTime)}}catch(a){t.e(a)}finally{t.f()}},getAiTrackCfg:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,o,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getAiTrackCfg();case 3:e.aiTrackCfg=t.sent,e.aiTrackCfgUpdate(),e.trackObjectDisappearDelay.options=[],n=Object(s["a"])(e.aiTrackCfg.trackObjectDisappearDelayOptions);try{for(n.s();!(i=n.n()).done;)a=i.value,e.trackObjectDisappearDelay.options.push({value:a,name:"".concat(a," ").concat(e.$t("common_secs"))})}catch(u){n.e(u)}finally{n.f()}e.trackObjectStopDelay.options=[],r=Object(s["a"])(e.aiTrackCfg.trackObjectStopDelayOptions);try{for(r.s();!(o=r.n()).done;)c=o.value,e.trackObjectStopDelay.options.push({value:c,name:"".concat(c," ").concat(e.$t("common_secs"))})}catch(u){r.e(u)}finally{r.f()}t.next=18;break;case 14:throw t.prev=14,t.t0=t["catch"](0),ie["a"].error("motionDetect.vue > getAiTrackCfg: ",t.t0),new Error;case 18:case"end":return t.stop()}}),t,null,[[0,14]])})))()},setAiTrackCfg:function(e,t){var n=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.channel.config.setAiTrackCfg(n.aiTrackCfg);case 3:t.next=12;break;case 6:throw t.prev=6,t.t0=t["catch"](0),n.aiTrackCfg=e,n.aiTrackCfgUpdate(),ie["a"].error("motionDetect.vue > setAiTrackCfg: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,6]])})))()},checkedAiTracksChange:function(){var e=this;if(this.checkedAiTracks.length){var t=this.aiTrackCfg;O["a"].changingEffect(t,(function(){t.trackType=Object(l["a"])(e.checkedAiTracks)}),this.setAiTrackCfg,Object(b["g"])(this.aiTrackCfg))}else this.aiTrackSwitch(!1)},aiTrackCfgUpdate:function(){this.trackObjectDisappearDelay.support=-1!==this.aiTrackCfg.trackObjectDisappearDelay,this.trackObjectDisappearDelay.currentVal=this.aiTrackCfg.trackObjectDisappearDelay,this.trackObjectStopDelay.support=-1!==this.aiTrackCfg.trackObjectStopDelay,this.trackObjectStopDelay.currentVal=this.aiTrackCfg.trackObjectStopDelay,this.aiTrackStatus.isOpen=this.aiTrackCfg.enable,this.aiTrackCfg.aiTrack!==R["EAiTrackMode"].NONE?this.aiTrackModes.currentVal=this.aiTrackCfg.aiTrack:this.aiTrackModes.currentVal=this.aiTrackModesOptions[0]?this.aiTrackModesOptions[0].value:R["EAiTrackMode"].PT_ZOOM,this.checkedAiTracks=Object(l["a"])(this.aiTrackCfg.trackType)},aiTrackSwitch:function(e){var t=this,n=this.aiTrackStatus;O["a"].changingEffect(n,(function(){n.isOpen=t.aiTrackCfg.enable=e}),this.setAiTrackCfg,Object(b["g"])(this.aiTrackCfg))},aiTrackSelect:function(e,t){var n=this,i=this.$data[t];O["a"].changingEffect(i,(function(){n.aiTrackCfg[t]=i.currentVal=e}),this.setAiTrackCfg,Object(b["g"])(this.aiTrackCfg))},channelIndexChange:function(e){this.channelIndex=e,this.isMultiIpc?this.getAlarmAreas(!!this.supportAiDetectCates.length):this.channelInit()},ableChannelNumChange:function(e){this.ableChannelNum=e},setMotion:function(e,t){var n=this;return Object(c["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setMotionCfg(n.motion);case 3:i.next=10;break;case 5:throw i.prev=5,i.t0=i["catch"](0),t||(n.motion=e,n.motionUpdate()),ie["a"].error("motionDetect.vue > setMotion > setMotionCfg: ",i.t0),new Error;case 10:case"end":return i.stop()}}),i,null,[[0,5]])})))()},sensitivityUpdate:function(){if(!this.isNewSensitivity){for(var e=0;e sensitivityStatusSwitch > setMotion: ",n.t0);case 19:a.isSetting=!1;case 20:case"end":return n.stop()}}),n,null,[[8,14]])})))()},alarmSwitch:function(e,t){var n=this,i=this.$data[t];O["a"].changingEffect(i,(function(){n.motion[t]=i.isOpen=e}),this.setMotion,JSON.parse(JSON.stringify(this.motion)))},defaultSensitivityValueChanged:function(e){var t=this,n=this.defaultSensitivity;O["a"].changingEffect(n,(function(){n.value=e,t.sensitivity.forEach((function(t){t.value=e})),t.motion.sensitivityInfo.forEach((function(t){t.iSensitivity=e}))}),this.setMotion,JSON.parse(JSON.stringify(this.motion)))},sensitivityValueChanged:function(e,t){var n=this,i=this.sensitivity[t];O["a"].changingEffect(i,(function(){i.value=e,n.motion.sensitivityInfo[t].iSensitivity=e}),this.setMotion,JSON.parse(JSON.stringify(this.motion)))},smartSensitivityValueChanged:function(e,t){var n=this.aiDetectCfgSet[t];if(n){var i=this.smartSensitivity[t];O["a"].changingEffect(i,(function(){n&&(n.sensitivity=i.value=e)}),this.setAiDetectCfg,Object(b["g"])(n))}},toleranceSensitivityValueChanged:function(e,t){var n=this.aiDetectCfgSet[t];if(n){var i=this.toleranceSensitivity[t];O["a"].changingEffect(i,(function(){n&&(n.stayTime=i.value=e)}),this.setAiDetectCfg,Object(b["g"])(n))}},periodsRangeChanged:function(e,t){var n=this,i=this.customizedPeriods[t];O["a"].changingEffect(i,(function(){var a=Object(o["a"])(e,2);i.left=a[0],i.right=a[1];for(var r=t+1;r=0;u--){var l=n.customizedPeriods[u-1];if(l){var d=n.customizedPeriods[u];(d.left0:i-t>0},getNewSensitivityMaxPriority:function(){var e=1;return this.motion.newSensInfo.sensItems.forEach((function(t){e=Math.max(e,t.iPriority)})),e},newPeriodsRangeBeginChanged:function(e,t){var n=JSON.parse(JSON.stringify(this.motion)),i=this.newCustomizedPeriods[t],a=e;this.isTimeSort(e[0],e[1],i.endHour,i.endMinute)||(a=[i.endHour,i.endMinute]),this.$set(this.motion.newSensInfo.sensItems[t],"iBeginHour",a[0]),this.$set(this.motion.newSensInfo.sensItems[t],"iBeginMinute",a[1]),this.$set(this.motion.newSensInfo.sensItems[t],"iPriority",this.getNewSensitivityMaxPriority()+1),this.sensitivityUpdate(),O["a"].saveEffect(this.$store,n,this.setMotion,void 0,void 0,!1)},newPeriodsRangeEndChanged:function(e,t){var n=JSON.parse(JSON.stringify(this.motion)),i=this.newCustomizedPeriods[t],a=e;this.isTimeSort(i.beginHour,i.beginMinute,e[0],e[1])||(a=[i.beginHour,i.beginMinute]),this.$set(this.motion.newSensInfo.sensItems[t],"iEndHour",a[0]),this.$set(this.motion.newSensInfo.sensItems[t],"iEndMinute",a[1]),this.$set(this.motion.newSensInfo.sensItems[t],"iPriority",this.getNewSensitivityMaxPriority()+1),this.sensitivityUpdate(),O["a"].saveEffect(this.$store,n,this.setMotion,void 0,void 0,!1)},newSensitivityValueChanged:function(e,t){var n=this,i=this.newSensitivity[t];O["a"].changingEffect(i,(function(){i.value=e,n.motion.newSensInfo.sensItems[t].iSensitivity=e}),function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.setMotion(t);case 3:e.next=9;break;case 5:throw e.prev=5,e.t0=e["catch"](0),n.$store.commit("HANDLE_PROMPT",D["PromptStatus"].failed),new Error;case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}(),JSON.parse(JSON.stringify(this.motion)))},deleteNewSensitivity:function(e){var t=this,n=Object(b["g"])(this.motion),i=this.activeSensitivityIndex,a=this.newSensitivity[this.activeSensitivityIndex];this.motion.newSensInfo.sensItems.splice(e,1),this.newSensitivity.splice(e,1),i!==e&&(this.activeSensitivityIndex=this.newSensitivity.findIndex((function(e){return e===a}))),this.newCustomizedPeriods.splice(e,1),O["a"].saveEffect(this.$store,n,function(){var n=Object(c["a"])(regeneratorRuntime.mark((function n(a){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,t.motionUpdate(),n.next=4,t.setMotion(a);case 4:0===t.newSensitivity.length?t.activeSensitivityIndex=-1:i===e&&(t.activeSensitivityIndex=0),n.next=11;break;case 7:throw n.prev=7,n.t0=n["catch"](0),t.activeSensitivityIndex=i,n.t0;case 11:case"end":return n.stop()}}),n,null,[[0,7]])})));return function(e){return n.apply(this,arguments)}}())},addNewSensitivity:function(){var e=JSON.parse(JSON.stringify(this.motion));this.motion.newSensInfo.sensItems.push(Object(u["a"])(Object(u["a"])({},this.defaultPeriods[this.motion.newSensInfo.sensItems.length]),{},{iEnable:1,iPriority:this.getNewSensitivityMaxPriority()+1,iSensitivity:this.motion.newSensInfo.iDefSensitivity})),this.sensitivityUpdate(),O["a"].saveEffect(this.$store,e,this.setMotion,void 0,void 0,!1)},aiTrackModesSelect:function(e){var t=this,n=this.aiTrackModes;O["a"].changingEffect(n,(function(){t.aiTrackModes.currentVal=e,t.aiTrackCfg.aiTrack=e}),this.setAiTrackCfg,Object(b["g"])(this.aiTrackCfg))},typeSelect:function(e){var t=this,n=this.detectType;O["a"].changingEffect(n,(function(){switch(t.detectType.currentVal=e,e){case 0:t.motion.bEnable=!0,t.motion.iUsePir=0;break;case 1:t.motion.bEnable=!0,t.motion.iUsePir=1;break;case 2:t.motion.bEnable=!1,t.motion.iUsePir=0;break;default:break}}),this.setMotion,Object(b["g"])(this.motion))},setAlarmDetect:function(e){var t=this;switch(e){case"motion":this.$store.commit("MODIFY_MOTION",Object(b["g"])(this.motion)),this.$store.commit("MODIFY_SCHEDULE_TYPE","motionArea");break;case"all":this.$store.commit("MODIFY_AI_DETECT_AREA",Object(b["g"])(this.alarmAreas[this.supportAiDetectCates[0]])),this.$store.commit("MODIFY_SCHEDULE_TYPE","aiAreas");break;default:this.$store.commit("MODIFY_AI_DETECT_AREA",Object(b["g"])(this.alarmAreas[e])),this.$store.commit("MODIFY_SCHEDULE_TYPE","aiArea")}this.$store.commit("SET_SCHEDULE_CALLBACK",(function(n){if("motionArea"===t.scheduleType){var i=Object(b["g"])(t.motion);t.motion=Object(u["a"])(Object(u["a"])({},t.motion),{},{iWidth:n.width,iHeight:n.height,bMotionScope:n.scope}),O["a"].saveEffect(t.$store,i,t.setMotion,void 0,void 0,!1)}else{var a=Object(b["g"])(t.alarmAreas);"aiAreas"===t.scheduleType?t.supportAlarmAreaCates.forEach((function(e){t.alarmAreas[e]={type:e,width:n.width,height:n.height,area:n.scope.map((function(e){return Object(b["k"])(e)}))}})):t.alarmAreas[e]={type:e,width:n.width,height:n.height,area:n.scope.map((function(e){return Object(b["k"])(e)}))},O["a"].saveEffect(t.$store,a,t.setAlarmAreas)}})),this.$store.commit("STORE_DIALOG_CHANNEL_INDEX",this.channelIndex),this.$store.commit("SET_DIALOGID","alarmDetect")},setAlarmAreas:function(e,t){var n=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,i=[],"aiArea"===n.scheduleType?i.push(n.alarmAreas[n.$store.getters.aiDetectArea.type]):n.supportAlarmAreaCates.forEach((function(e){i.push(n.alarmAreas[e])})),t.next=5,n.channel.config.setAlarmAreas(i);case 5:n.supportAlarmAreaCates.includes(R["EAiDetectCate"].MD)&&(n.motion=Object(u["a"])(Object(u["a"])({},n.motion),{},{iWidth:n.alarmAreas[R["EAiDetectCate"].MD].width,iHeight:n.alarmAreas[R["EAiDetectCate"].MD].height,bMotionScope:n.alarmAreas[R["EAiDetectCate"].MD].area.map((function(e){return!!e}))})),t.next=13;break;case 8:throw t.prev=8,t.t0=t["catch"](0),"motionArea"===n.scheduleType?(n.motion=e,n.motionUpdate()):n.alarmAreas=e,ie["a"].error("motionDetect.vue > setAlarmAreas: ",t.t0),new Error;case 13:case"end":return t.stop()}}),t,null,[[0,8]])})))()},openCopytoDialog:function(){var e=this;this.$store.commit("STORE_DIALOG_CHANNEL_INDEX",this.channelIndex),this.$store.commit("SET_COPYTO_INIT_CALLBACK",this.getCopytoChannels),this.$store.commit("SET_CUSTOM_DIALOGID","scheduleCopyTo");var t=function(){e.saveAndCopyto(e.selectedChannels)};this.$store.commit("SET_COPYTO_SAVE_CALLBACK",t)},getCopytoChannels:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,o,c,u,l,d,p,h,m,g,f,_;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.motion.iSensVerion,i=[],a=[],r=[],o=[],!e.supportMDWithPIR){t.next=25;break}c=[],u=[],l=Object(s["a"])(e.channels);try{for(l.s();!(d=l.n()).done;)p=d.value,p.index===e.channelIndex||p.state.get("videoLoss")||(u.push(p.supportMDWithPIR()),o.push(p.config.getMotionCfg()),a.push(p))}catch(v){l.e(v)}finally{l.f()}return t.prev=10,t.next=13,Promise.all(u);case 13:return c=t.sent,t.next=16,Promise.all(o);case 16:r=t.sent,t.next=22;break;case 19:t.prev=19,t.t0=t["catch"](10),ie["a"].error("motionDetect.vue > getCopytoChannels: ",t.t0);case 22:for(h=0;h getCopytoChannels > get copyto channel data: ",t.t1);case 36:for(_=0;_ saveSelectedChannels > set motion cfg: ",e.t0),new Error;case 11:case"end":return e.stop()}}),e,null,[[0,7]])})))()},saveScheduleLegacy:function(e){var t=Object(b["g"])(this.motion);this.motion.iTimeTable=e,O["a"].saveScheduleEffect(this.$store,this.motionScheduleStatus,t,this.setMotion)},getAiTrackSchedule:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getSmartTrackTask();case 3:e.aiTrackScheduleGroup=t.sent,t.next=10;break;case 6:throw t.prev=6,t.t0=t["catch"](0),ie["a"].error("motionDetect.vue > getAiTrackSchedule > getSmartTrackTask: ",t.t0),new Error;case 10:case"end":return t.stop()}}),t,null,[[0,6]])})))()},setAiTrackSchedule:function(e,t){var n=this;return Object(c["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setSmartTrackTask(n.aiTrackScheduleGroup);case 3:i.next=10;break;case 5:throw i.prev=5,i.t0=i["catch"](0),t||(n.aiTrackScheduleGroup=e),ie["a"].error("motionDetect.vue > setAiTrackSchedule > setSmartTrackTask: ",i.t0),new Error;case 10:case"end":return i.stop()}}),i,null,[[0,5]])})))()},saveAiTrackSchedule:function(e){var t=Object(b["g"])(this.aiTrackScheduleGroup);this.aiTrackScheduleGroup=e,O["a"].saveScheduleEffect(this.$store,this.aiTrackScheduleStatus,t,this.setAiTrackSchedule)},getAiTrackRangeLimitCfg:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getSmartTrackLimit();case 3:e.aiTrackRangeLimit=t.sent,e.aiTrackRangeLimitCfgUpdate(),t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),ie["a"].error("motionDetect.vue > getAiTrackRangeLimitCfg: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},initAiTrackRangeLimitCfg:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.aiTrackRangeLimit.leftPos=-1,e.aiTrackRangeLimit.rightPos=-1,e.setAiTrackRangeLimitCfg(Object(b["g"])(e.aiTrackRangeLimit));case 3:case"end":return t.stop()}}),t)})))()},setAiTrackRangeLimitCfg:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,t.$store.commit("HANDLE_LOADING",!0),n.next=4,t.importImg(t.aiTrackRangeLimitUiInfo[R["EAiTrackLimitDirection"].LEFT].imgUrl,t.aiTrackRangeLimit.leftImgName,-1===t.aiTrackRangeLimit.leftPos);case 4:return n.next=6,t.importImg(t.aiTrackRangeLimitUiInfo[R["EAiTrackLimitDirection"].RIGHT].imgUrl,t.aiTrackRangeLimit.rightImgName,-1===t.aiTrackRangeLimit.rightPos);case 6:return-1===t.aiTrackRangeLimit.leftPos&&(t.aiTrackRangeLimit.leftImgName=""),-1===t.aiTrackRangeLimit.rightPos&&(t.aiTrackRangeLimit.rightImgName=""),n.next=10,t.channel.config.setSmartTrackLimit(t.aiTrackRangeLimit);case 10:t.aiTrackRangeLimitCfgUpdate(),n.next=18;break;case 13:n.prev=13,n.t0=n["catch"](0),ie["a"].error("motionDetect.vue > setAiTrackRangeLimitCfg: ",n.t0),t.aiTrackRangeLimit=e,t.$store.commit("HANDLE_PROMPT",D["PromptStatus"].failed);case 18:t.$store.commit("HANDLE_LOADING",!1);case 19:case"end":return n.stop()}}),n,null,[[0,13]])})))()},aiTrackRangeLimitCfgUpdate:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.aiTrackRangeLimitUiInfo[R["EAiTrackLimitDirection"].LEFT].isSet=-1!==e.aiTrackRangeLimit.leftPos,e.aiTrackRangeLimitUiInfo[R["EAiTrackLimitDirection"].RIGHT].isSet=-1!==e.aiTrackRangeLimit.rightPos,n=ce.a.join(e.tempFolder,"track-range-snap",e.channel.identifier,"".concat(e.channel.index)),e.aiTrackRangeLimitUiInfo[R["EAiTrackLimitDirection"].LEFT].isLoadingImg=!!e.aiTrackRangeLimit.leftImgName,e.aiTrackRangeLimitUiInfo[R["EAiTrackLimitDirection"].RIGHT].isLoadingImg=!!e.aiTrackRangeLimit.rightImgName,t.next=7,e.exportImg(n,e.aiTrackRangeLimit.leftImgName);case 7:return e.aiTrackRangeLimitUiInfo[R["EAiTrackLimitDirection"].LEFT].imgUrl=t.sent,e.aiTrackRangeLimitUiInfo[R["EAiTrackLimitDirection"].LEFT].isLoadingImg=!1,t.next=11,e.exportImg(n,e.aiTrackRangeLimit.rightImgName);case 11:e.aiTrackRangeLimitUiInfo[R["EAiTrackLimitDirection"].RIGHT].imgUrl=t.sent,e.aiTrackRangeLimitUiInfo[R["EAiTrackLimitDirection"].RIGHT].isLoadingImg=!1;case 13:case"end":return t.stop()}}),t)})))()},retryExportTrackLimitImg:function(e,t){var n=this;return Object(c["a"])(regeneratorRuntime.mark((function i(){var a,r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(t){i.next=2;break}return i.abrupt("return");case 2:return n.aiTrackRangeLimitUiInfo[e].isLoadingImg=!0,a=ce.a.join(n.tempFolder,"track-range-snap",n.channel.identifier,"".concat(n.channel.index)),r=~~e===R["EAiTrackLimitDirection"].LEFT?n.aiTrackRangeLimit.leftImgName:n.aiTrackRangeLimit.rightImgName,i.next=7,n.exportImg(a,r);case 7:n.aiTrackRangeLimitUiInfo[e].imgUrl=i.sent,n.aiTrackRangeLimitUiInfo[e].isLoadingImg=!1;case 9:case"end":return i.stop()}}),i)})))()},exportImg:function(e,t){var n=this;return Object(c["a"])(regeneratorRuntime.mark((function i(){var a;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(t){i.next=2;break}return i.abrupt("return","");case 2:return a="",i.prev=3,i.next=6,n.channel.config.exportImageFile(t,e);case 6:return a=i.sent,a=ue["a"].IS_CLIENT?a+"?"+Object(se["a"])():a,i.next=10,Object(b["u"])(a);case 10:i.next=16;break;case 12:i.prev=12,i.t0=i["catch"](3),ie["a"].error("motionDetect.vue > exportImg ".concat(t," url: ").concat(a," "),i.t0),a="";case 16:return i.abrupt("return",a);case 17:case"end":return i.stop()}}),i,null,[[3,12]])})))()},importImg:function(e,t){var n=arguments,i=this;return Object(c["a"])(regeneratorRuntime.mark((function a(){var r,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return r=n.length>2&&void 0!==n[2]&&n[2],a.prev=1,s=ue["a"].IS_CLIENT?e.split("?")[0]:e,a.next=5,i.channel.config.importImageFile(t,s,r);case 5:a.next=10;break;case 7:a.prev=7,a.t0=a["catch"](1),ie["a"].error("motionDetect.vue > importImg ".concat(e,": "),a.t0);case 10:case"end":return a.stop()}}),a,null,[[1,7]])})))()}}}),Ee=Ae,xe=(n("287c"),Object(y["a"])(Ee,a,r,!1,null,"cca1f3c4",null));t["b"]=xe.exports},"914c":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));n("d3b7"),n("96cf");var i=n("1da1"),a=n("d4ec"),r=n("bee2"),s=n("bc3a"),o=n.n(s),c=function(){function e(t){Object(a["a"])(this,e),this.timeout=t,o.a.defaults.timeout=void 0,this.interceptors()}return Object(r["a"])(e,[{key:"interceptors",value:function(){o.a.interceptors.request.use(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){})),o.a.interceptors.response.use(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){return Promise.reject(e)}))}},{key:"generateConfig",value:function(e){return Object.assign({timeout:this.timeout},e)}},{key:"get",value:function(e,t){return o.a.get(e,this.generateConfig(t))}},{key:"post",value:function(e,t,n){return o.a.post(e,t,this.generateConfig(n))}},{key:"delete",value:function(e,t){return o.a.delete(e,this.generateConfig(t))}},{key:"put",value:function(e,t,n){return o.a.put(e,t,this.generateConfig(n))}},{key:"patch",value:function(e,t,n){return o.a.patch(e,t,this.generateConfig(n))}}]),e}();t["b"]=new c(1e4)},"92cf":function(e,t,n){"use strict";var i=n("65fd"),a=n.n(i);a.a},"930a":function(e,t,n){e.exports=n.p+"img/package_low.c8a9b70d.png"},9354:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var i=n("d4ec"),a=n("bee2"),r=n("262e"),s=n("2caf"),o=(n("c975"),n("a15b"),n("d81d"),n("d3b7"),n("ac1f"),n("25f0"),n("3ca3"),n("841c"),n("ddb0"),n("3835")),c=(n("96cf"),n("1da1")),u=n("2909"),l=n("aa18"),d=n("17c9"),p=n.n(d),h=n("e10a"),m=function(){function e(){Object(i["a"])(this,e)}return Object(a["a"])(e,[{key:"handleParams",value:function(e){return e.map((function(e){return JSON.stringify(e,null,4)}))}},{key:"error",value:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i1&&void 0!==d[1]?d[1]:"",e.next=3,Promise.all([p.a.get().then((function(e){return e.map((function(e){return" "+e.toString()}))})).catch((function(e){return[" StackTrace.get() failed: "+e.message]})),p.a.fromError(t).then((function(e){return e.map((function(e){return e.toString()})).join("\n")})).catch((function(){return h["a"].errorToJson(t)}))]);case 3:a=e.sent,r=Object(o["a"])(a,2),s=r[0],c=r[1],u={traceError:c,detailStack:s},l=i?[i+": ",u]:[u],(n=console).error.apply(n,l),this.extraError.apply(this,l);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}(),g=function(e){Object(r["a"])(n,e);var t=Object(s["a"])(n);function n(){return Object(i["a"])(this,n),t.apply(this,arguments)}return Object(a["a"])(n,[{key:"extraError",value:function(){}},{key:"extraWarn",value:function(){}},{key:"extraInfo",value:function(){}},{key:"extraDebug",value:function(){}},{key:"extraLog",value:function(){}}]),n}(m),f=new g},"952c":function(e,t,n){"use strict";var i=n("dec3"),a=n.n(i);a.a},9629:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"retry-box ab-center"},[n("p",{staticClass:"retry-message text"},[e._v(e._s(e.$t("remoteConfig_retry_title")))]),n("speedyBtn",{attrs:{btnClass:"retry-btn",btnText:e.$t("common_dialog_retry_button"),"data-id":"retry-button"},on:{btnClick:e.retry}})],1)},a=[],r=n("2b0e"),s=n("3ee0"),o=r["a"].extend({name:"retryBox",components:{speedyBtn:s["a"]},methods:{retry:function(){this.$emit("retry")}}}),c=o,u=(n("92cf"),n("2877")),l=Object(u["a"])(c,i,a,!1,null,null,null);t["a"]=l.exports},9908:function(e,t,n){"use strict";var i=n("fc08"),a=n.n(i);a.a},"990a":function(e,t,n){"use strict";var i=n("b2d7"),a=n.n(i);a.a},"99b2":function(e,t,n){e.exports=n.p+"img/animal_medium.8f70b682.png"},"99f8":function(e,t,n){},"9a3a":function(e,t){e.exports="data:image/png;base64,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"},"9a5e":function(e,t,n){},"9bbc":function(e,t,n){},"9c0e":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA2CAMAAAB+xcI7AAAAgVBMVEUAAAB3e4R4eYN4eod4eYZ4eoZ4eoV4eIV4eYZ4eIZ2d4N3eoR3eoJ3eoV3eYR3eYZ3eYV3eYVsbH94eoZ4eoV1dYB3eYZ3eoZ3eYZ4eoV3eYVAf393eIV3d4R4eYZyeYR3eoV4eIN3eoV4eYZ3eYV3eoV3eoV4eYZ0eINgYH94eoaFKnp+AAAAKnRSTlMATUB/wJ95X98gLYNJ8W+uilYN+/cY59CQc2UEWzrZJus1a7unmsm1QwhriLkEAAADJ0lEQVRo3u3YaZOaMBzH8T/3ZeRGLgFv/b3/F9gIDqXtiNiYTqfdzwPd2Z1NvmRZE6VFUqOBNOyg0AfsGOTySFhkoyuuqiy1DqxIlILEJYmqM3wS5eFMUq3RkCgDOkllwf6K/Ir85yJPONAP/rrIVMcdK0iSdoM7Zgkt40NLclwwiFP6bToOJgfUJIcNn48fAKpI5FHhAIvksJHz8cv/IfK042RGenx8RTBSI05iZD+y8z9EPqgkR4MHV2RPfKhIjnECoTEay7ICkTHkT2Bgs91u92KRsifwEGdZ1iEhSYLHBIx+n8PQ80iS9hMTpKHFbWnWXz3Bly9StKUmZu/SS9HaWCx3fvltH+IO6evPe97QRUR0C82i0MLq/uUZYGddCAOaiGaFwMXwMbHhS8b449TR7/WnmUhHzyeiAjArElTGyGmWBpvIwUQWEdnQaMpV7lZ9pIk4RsL6M+IGRxKXo6NZK8C6RxrawEtwmo2sMuRrJKGOM1GMmsRdgZRmXcDS6clWA9S5SBVw0xieCbR0/4Y4FXBengH8aWS1gR3NRJpo+j9zGCOUHjnaA8V0sl2M/GlkZifIHDphozTI5UeOdCQ/TBYgTp5F9kLaI1EuOAhFprWlLI9sE/STRcRVEd0a4FnkRdO0uqIroByxEYr0ALiLI6noI0uYPFRnDm2fR67Haw8D2EKRBgB1cWS/66jk8YRI768ufxXZAmWA5E+uZL8wdNOBZsiI2ItIByhNQCgyCq0rvRHpANZjvzPpzl68koUqrlgeOdwl4aJIFaiHe9JUBusi5I/7wlLeZ74RmQMMbDsbmavqdccjx/9uTenVnlfyJ88rZEZeaQ/4aQaWzkX2lPF1soPxgcgAuC2KVCmHX1GbwX0VyXbjjuOjq4UjQxs6LYysVhURpVviXu/dvpKgJjdGZ2imaXqGEfAnwziZb9JOGbBaGjmaj7wC7XgKojrGB6zpw5G3x3nygE3/E7+DGHbZ0sLIwJrqYKhT9fpu31+LhzgBs4GSfhToA4vmKPrgSG9ysFT7/T3OgX4SaoP5hXG1QUlvSu2fPLnTuj1xkRVwZUX0Dbtg0RKq2MfMAAAAAElFTkSuQmCC"},"9dd4":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("96cf");var i=n("1da1"),a=n("d4ec"),r=n("bee2"),s=function(){function e(){Object(a["a"])(this,e)}return Object(r["a"])(e,[{key:"relaunchApp",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"showAboutWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"showAccountLoginWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"hideAccountLoginWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"showAppUpdateWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getAppUpdateOptions",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"checkAppUpdates",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getAppUpdateDownloadPath",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","");case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"startAppUpdateDownload",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancelAppUpdateDownload",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"quitAndInstallUpdate",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"showDeviceLoginWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"showDeviceInitWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"hideDeviceLoginWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"showDeviceAddWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"hideDeviceAddWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"showMainWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"hideMainWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"closeMainWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"showLocalSettingsWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"hideLocalSettingsWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"showWiFiSettingsWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"hideWiFiSettingsWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"showPlaybackBarWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"hidePlaybackBarWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"showDeviceConfigWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n,i,a,r){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",0);case 1:case"end":return e.stop()}}),e)})));function t(t,n,i,a,r){return e.apply(this,arguments)}return t}()},{key:"hideDeviceConfigWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"showDeviceInfoWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"hideDeviceInfoWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"showChangePasswordWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"hideChangePasswordWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"showLiveCropWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"closeLiveCropWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"showPTZWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"closePTZWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"showTalkWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"closeTalkWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"showRingWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"closeRingWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"showBellAssemblyInstructionsWindow",value:function(e,t){}},{key:"showTrackRangeLimitWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"closeTrackRangeLimitWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getPlaybackSelectedDate",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Date);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPlaybackSelectedDate",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getPlaybackCurrentTime",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",0);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPlaybackCurrentTime",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getPlaybackChannels",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPlaybackChannels",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getPlaybackSupportSubStream",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPlaybackSupportSubStream",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getPlaybackSubStream",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPlaybackSubStream",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"hideDownloadWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"showMessageDialog",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"showCheckboxDialog",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"showRadioDialog",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setDialogCallbackData",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"closeDialog",value:function(){}},{key:"setPlayerMode",value:function(e){}},{key:"setWindowSize",value:function(e){}},{key:"getPath",value:function(e){}},{key:"getVersion",value:function(){}},{key:"getLocale",value:function(){}},{key:"getName",value:function(){}},{key:"isReady",value:function(){}},{key:"curWindowDownloadURL",value:function(e){}},{key:"addCurWindowEventListener",value:function(e,t){}},{key:"handleCurWindow",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setCurWindowFullScreen",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getCurWindowStatus",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"showOpenDialog",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"buildMenuFromTemplateAndPopup",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"showItemInFolder",value:function(e){}},{key:"openExternal",value:function(e){}},{key:"showNotification",value:function(e){}},{key:"getMediaAccessStatus",value:function(e){}},{key:"askForMediaAccess",value:function(e){}},{key:"getAutoLoginStatus",value:function(){}},{key:"setAutoLoginStatus",value:function(e){}}],[{key:"instance",value:function(){return e.singleton}}]),e}();s.singleton=new s;var o=s.instance()},"9e7a":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAAoCAMAAAACNM4XAAAAflBMVEUAAABrbIp4eYZ3eIJ1dYVtb353eIVZW4Z3eYV3eoR0dYB3eIR4eoZ2eYR3eoV4eYN3eYZ3eIV4eYV0doR4eoV3eYV3eYV3eoV2d4J3eYZ1eIN3eYV3eYV3eYV3eYV2eIV3eYV3eYZ3eYV3eoV2eYV3eYV3eYV3eYV3eYd4eoZTGA9LAAAAKXRSTlMAB78zMAy0A6tOGB31cMc6+tJnEYDfW+8r5iNGzaOFP7qdVdeMd8OUfEMmGKcAAAKCSURBVFjD3dfpbqpAAIbhb1T2qSKUXdyXfvd/g4dhbIMFlIYEk/MkLvPrZZZkFA/ym4O3ODODZmwnfQSH3KH2wQQTcslST1hygyntGUEJ1NSnFJN59RFKrjEpN5Gp7heYlhGissv2+I8ZHt7CWvPLwBuEkpSFhel5G5Knt0zaSUgHd+IvMNbWvm94wD+Z6fR4W/7REhXxsSzLmR12nt0HvQeNTExzwwbfNM09eTK7ZKRVdSW1vL2Jkk29N8+CjAGHTTZgkB/oYtbhJRVJZtbLBew+w6oQ1eHZt4y++yrs82CT4bk9ZZ+8fTbN0SCCpMppAXlW4eYNnb0IX0i3SgRIeMaDlFyhz1H6zSU40feaYcTk9nk4Um8ZrzgxwgOL3BQr5Rhou3rkoWKzcvBwl5ObhzDUYveFr+Tl4qujvSfFobWFNrv5cVU67IzmmbhU5YewR0Z94TW1VO1RWLQ22Tqzxxy/iaqiw5fIloZ+lFfhEIJ0LXLROq5uzbvTozzhAS3z7/AqhBByBSGfhUMhhFox0oOswoOYnKHtVoedvX6MbfV6Fjag+XX4a96tiON49zNyJA9oM6QKl+l9iz3gMCAseUTCoXyv56dmY1AC4cBwxoGSed//CXgRtPAIGIPCOyT8XHRbKT+jXKA3bJjQUjEsrA+XgzFUGCKHYmWL5+F5mqbiHva5GB9OIx0O8Dys+C5y0g3JdHwYR6OAKG0MCNPFmTRi9WV8GMZ1bWzDp+E9WRSSkbpcJExSjA43vbgW96qXsETEDaYMF2TqkbvQZzBpGAlPa3KxJN3R4eUjcmN3yerwlnc3jA0PV+qJ164GxlnNfrlGy1m3mwUljY9O/Lf/X/8Aaw+JtPexdX8AAAAASUVORK5CYII="},"9ed6":function(e,t,n){},"9f0a":function(e,t,n){e.exports=n.p+"img/nvr_nohdd_pic.e6049f09.png"},a08a:function(e,t,n){e.exports=n.p+"img/base_nohdd_pic.58e1bd56.png"},a0c2:function(e){e.exports=JSON.parse('{"reolink_sidebar_page_terms_link":"https://m.reolink.com/terms-conditions/","reolink_sidebar_page_privacy_link":"https://m.reolink.com/privacy-policy/","app_language_mark":"en-us","common_ipc":"Camera","common_bind_ipc":"Bind Cameras","common_bind_view":"Bind","common_no_camera_bound":"You have not bound any cameras yet.","common_unbind":"Unbind","common_login_passowrd_or_usernam_error":"Username or password is incorrect","common_dialog_ok_button":"Confirm","common_dialog_done_button":"Done","common_dialog_save_button":"Save","common_dialog_cancel_button":"Cancel","common_hide_button":"Hide","common_dialog_retry_button":"Retry","common_i_got_it_button":"I Got it","common_dialog_exit":"Exit","common_default_device_name":"My Device","common_channel":"Channel","common_loading_info":"Loading…Please wait...","common_load_failed":"Failed to load. Click to try again.","common_operate_failed":"Operation failed.","common_operate_failed_title":"Operation Failed","common_not_support_character":"Please enter valid characters.","common_load_info_not_support":"Not supported","common_load_info_not_supported":"Unsupported","common_skip":"Skip","common_default":"Default","common_week_sunday":"Sun.","common_week_monday":"Mon.","common_week_tuesday":"Tue.","common_week_wednesday":"Wed.","common_week_thursday":"Thu.","common_week_friday":"Fri.","common_week_saturday":"Sat.","common_clarity_stream_clear":"Clear","common_clarity_stream_fluent":"Fluent","common_clarity_stream_balanced":"Balanced","common_username_description":"Username","common_username_placeholder":"Enter username","common_delete_user":"Delete User","common_password_password_description":"Password","common_password_confirm_password_description":"Confirm Password","common_password_enter_password_button":"Enter password","common_password_password_placeholder":"Please enter the password.","common_password_comfirm_password_placeholder":"Confirm password","common_mailbox_mailbox_description":"Email","common_view_wifi_placeholder":"Wi-Fi name","common_cloud_cloud_storage":"Cloud Storage","common_view_upgrading":"Upgrading...","common_view_upgrade_button":"Update","common_view_upgrade_complete":"Update completed","common_view_nickname_placeholder":"Enter nickname","common_view_name":"Name","common_view_name_placeholder":"Enter Name","common_uid_placeholder":"Input UID","common_ip_placeholder":"Input IP address","common_view_string_length_maximum_limit":"Type in no more than {s1} characters","common_view_string_length_minimum_limit":"Type in at least {s1} characters","common_view_string_cannot_be_blank":"Can\'t be blank","common_privacy_statement":"Terms of Service","common_volume":"Volume","common_learn_more":"Learn more","common_enable":"Enable","common_enabled":"Enabled","common_view_button":"View","common_disable":"Disable","common_disabled":"Disabled","common_type":"Type","common_view_help":"Help","common_view_none":"None","common_view_custom":"Custom","common_view_edit_button":"Edit","common_view_on_button":"On","common_view_more":"More","common_view_schedule":"Schedule","common_view_auto":"Auto","common_view_pen":"Pen","common_view_eraser":"Eraser","common_view_motion":"Motion Detection","common_view_all_button":"All","common_view_storage":"Storage","common_view_settings":"Settings","common_view_close":"Close","common_view_finish":"Finish","common_view_synchronize":"Synchronize","common_add":"Add","common_view_delete_button":"Delete","common_whether_sure_delete_selected_file":"Are you sure to delete the selected file(s)?","common_view_manual_input":"Manual input","common_smart_home":"Smart Home","common_server_address":"Server Address","account_center_account_sigin_privacy_policy_and_terms":"I have read and understood {s1} and {s2}.","account_center_account_login_title":"Log In","account_center_account_login_forget_password":"Forgot your password?","account_center_account_login_failed":"Login failed.","account_center_account_login_too_much":"Too many attempts. Please try again in {s1}.","setup_wizard_i_heard_it":"I Heard It","setup_wizard_create_password_page_name_device_placeholder_not_ipc":"Name your device","device_init_setup_wizard_device_settings_title":"Device settings","device_init_setup_wizard_wifi_settings_title":"Wi-Fi settings","device_init_setup_wizard_wifi_settings_selecte_wifi":"Please select the Wi-Fi to which the device is going to connect.","device_init_setup_wizard_wifi_settings_input_password":"Enter the password","device_init_setup_wizard_synchronize_settings_help_step_1":"1. Connect the camera to an NVR with network cables.","device_init_setup_wizard_synchronize_settings_help_step_5":"2. Please scan the QR code on your phone with the camera until you hear \\"Scan Succeeded\\".","device_init_setup_wizard_finish_title":"Initialization finished.","device_init_setup_wizard_finish_tip":"For more configurations, please go to the {s1} to proceed.","player_views_channel_selection_page_titile":"Channel Selection","player_views_channel_selection_page_video_loss_state":"Video Loss","live_page_toolbar_alarm_manual_dialog_meassage":"Trigger audio alarm","live_page_toolbar_ptz_cruise":"Patrol","live_page_toolbar_ptz_cruise_limit":"You have reached the maximum number of patrol points.","live_page_toolbar_preset_set_max_positions":"Mark up to {s1} positions.","live_page_toolbar_talk_opening":"Enabling talk...","live_page_toolbar_talk_open_failed":"Failed to enable talk.","live_page_toolbar_clip_demon_description":"Drag the rectangle to the position you want to see.","remote_playback_enter_not_support":"This camera does not support playback.","remote_playback_enter_not_mount":"No HDD detected.","remote_playback_enter_not_mount_sdcard":"No camera SD card detected.","device_login_dialog_titile":"Device Login","device_pir_settings_enable_pir":"Enable PIR","device_reset_dialog_reset_button":"Reset Device","device_scene_page_scene_name":"Scene Name","keen_device_battery_setup_wizard_pir_sensor_page_note_tip":"Note:","sidebar_account_page_title":"Account Info","sidebar_account_page_log_out_button":"Log out","sidebar_account_modify_password_page_old_password_placeholder":"Enter current password","sidebar_account_modify_password_page_new_password_placeholder":"Enter new password","sidebar_account_change_mailbox_page_mailbox_placeholder":"Enter new email address","sidebar_cloud_video_page_no_file":"No files found","sidebar_cloud_video_page_deleting":"Deleting…","sidebar_cloud_video_edit_page_name_placeholder":"Enter video name","sidebar_about_page_app_about_us_item":"About Us","sidebar_follow_us_page_title":"Follow Us","sidebar_about_app_version_page_update":"Update Now","sidebar_settings_page_live_when_app_start_title":"Auto Live View","auto_switch_server_item":"Auto Server Switch","auto_switch_server_describe":"Allow the camera to access all available servers for more stable network connection.","sidebar_settings_page_stretch_display":"Stretch Mode","device_login_page_connecting":"Connecting your device…","smart_config_wifi_page_do_hear_tip":"Do you hear","smart_config_wifi_guide_page_start_wifi_config_button":"Connect to Wi-Fi","smart_config_wifi_guide_page_skip_wifi_config_button":"Access Camera","smart_config_reset_page_reset_tip":"\\"Please run app, add the camera and set it up.\\"","smart_config_wifi_settings_page_input_tip":"Enter Wi-Fi Info","smart_config_scan_qr_code_page_scan_voice_prompt":"\\"Scan succeeds. Camera is connecting to your router. Please wait.\\"","smart_config_wifi_test_page_step_tip":"Camera is connecting to your router. Please wait.","smart_config_wifi_test_page_succeed_button":"Connection to the router succeeded","smart_config_wifi_test_page_failed_button":"Connection to the router failed","smart_config_reset_help_new_help_tip":"Please check if the battery is correctly installed.","smart_config_reset_help_page_reset_title":"You heard no sound?","smart_config_wifi_test_help_page_titile":"Failed to connect to the router?","smart_config_wifi_test_connection_failed_tip":"Possible reasons of connection failure","smart_config_wifi_test_help_page_tip":"If you heard \\"Wi-Fi connection failed\\", follow the steps for troubleshooting:","smart_config_wifi_test_help_page_password_error_tip":"The Wi-Fi or password you entered is incorrect.","smart_config_wifi_test_help_page_not_support_5g_tip":"This device only supports 2.4 GHz Wi-Fi.","smart_config_wifi_test_help_page_too_far_tip":"The device is too far from the router.","smart_config_wifi_test_help_page_reconfigure_wifi_button":"Re-configure Wi-Fi","base_add_camera_no_voice_help_page_tip":"Possible reasons why you didn\'t hear the voice prompt:","base_add_camera_no_voice_help_page_not_support_tip":"Only the battery powered security cameras support voice prompt. Please check the type of product purchased.","base_add_camera_no_voice_help_page_not_install_battery":"Battery not correctly installed.","base_add_camera_no_voice_help_page_reset_help":"If you have installed battery in the camera but still don\'t hear the voice prompt, please long press the \\"reset\\" button (as shown in the picture) until you do.","base_add_camera_connection_help_page_reconfig_button":"Configurate again.","base_cloud_name":"Base","remote_config_page_basic_info_device_name":"Device name","remote_config_page_basic_info_push_label":"Push","remote_config_page_basic_info_delete_button":"Delete the device","remote_config_device_info_page_title":"Device Info","remote_config_page_video_section_quality_label":"Quality","remote_config_page_video_section_sound_label":"Record Audio","remote_config_page_video_section_sound_description":"When disabled, you will not hear sound in live video or playback.","remote_config_page_storage_section_record_item_label":"Camera Recording","remote_config_page_alarm_section_alarm_tip":"Alarm Settings","remote_config_page_alarm_section_md_settings_item_label":"Motion Detection","remote_config_page_alarm_section_rf_settings_item_label":"PIR Motion Sensor","remote_config_page_account_section_user_manager_item_label":"User Management","remote_config_page_led_section_title":"Light","remote_config_page_led_section_led_item_label":"Infrared Lights","remote_config_page_tip_light_section_led_item_label":"Status LED","remote_config_page_notification_section_email_item_label":"Email Alerts","remote_config_page_notification_section_email_settings_item_label":"Email Settings","remote_config_page_notification_section_push_item_describe":"Allow the camera to send notifications to your phone.","remote_config_page_notification_section_alarm_sound_item_label":"Siren","remote_config_page_notification_section_alarm_sound_buzzer_item_label":"Buzzer","remote_config_page_back_to_save_dialog_message":"The content has changed. Do you need to save?","remote_config_page_system_section_date_and_time_item_label":"Date & Time","display_page_title":"Display","display_page_text_background_label":"Text Background","display_page_watermark_label":"Watermark","osd_position_page_top_center":"Top Center","osd_position_page_top_left":"Top Left","osd_position_page_top_right":"Top Right","osd_position_page_bottom_center":"Bottom Center","osd_position_page_bottom_left":"Bottom Left","osd_position_page_bottom_right":"Bottom Right","display_advanced_page_anti_flicker_item_label":"Anti-flicker","display_advanced_page_anti_flicker_item_50hz_label":"50Hz","display_advanced_page_anti_flicker_item_60hz_label":"60Hz","display_advanced_page_day_and_night_item_label":"Day and Night","display_advanced_page_day_and_night_item_black_and_white_label":"Black & White","display_advanced_page_day_and_night_item_color_label":"Color","display_advanced_page_backlight_item_3d_nr_label":"3D DNR","email_settings_page_sender_name_label":"Sender Name","email_settings_page_email_content":"Email Content","email_attach_page_no_attach_item":"Text","email_attach_page_attach_picture_item":"Picture","email_attach_page_attach_video_item":"Text with Video","email_attach_page_attach_picture_and_text_item":"Text with Picture","email_server_page_other_server":"Other","email_server_page_ssl_label":"SSL or TLS","alarm_sound_page_title":"Siren Sound","system_config_page_build_no":"Build No.","network_status_page_titile":"Network Status","wifi_config_page_titile":"Wi-Fi","wifi_config_page_wired_connection":"Wired Network Connection","wifi_config_page_wifi_current_section_title":"Current Wi-Fi","alarm_settings_page_enable_tip":"Enable Alarm","alarm_settings_alarm_area_page_tip":"Create a zone over the area you don’t want to receive alerts about.","alarm_siren_custom_settings_page_tap_to_start_record":"Start","alarm_siren_custom_settings_page_tap_to_stop_record":"Stop","alarm_siren_custom_settings_page_audition_button":"Sound Test","date_and_time_settings_page_time_format":"Time Format","date_and_time_settings_page_dst_settings_tip":"Enable DST","date_and_time_settings_time_zone_page_title":"Time Zone","date_and_time_settings_date_format_page_month_day_year":"MM/DD/YYYY","date_and_time_settings_date_format_page_year_month_day":"YYYY/MM/DD","date_and_time_settings_date_format_page_day_month_year":"DD/MM/YYYY","date_and_time_settings_dst_settings_page_title":"DST Settings","date_and_time_settings_dst_settings_page_end_time_tip":"End Time","date_and_time_settings_dst_settings_page_week_tip":"Week","date_and_time_settings_dst_settings_offset_page_title":"Offset","date_and_time_settings_dst_settings_offset_page_offset_one_hour":"1 hour","date_and_time_settings_dst_settings_offset_page_offset_two_hour":"2 hours","date_and_time_settings_dst_settings_page_1_month_tip":"Jan.","date_and_time_settings_dst_settings_page_2_month_tip":"Feb.","date_and_time_settings_dst_settings_page_3_month_tip":"Mar.","date_and_time_settings_dst_settings_page_4_month_tip":"Apr.","date_and_time_settings_dst_settings_page_5_month_tip":"May","date_and_time_settings_dst_settings_page_6_month_tip":"Jun.","date_and_time_settings_dst_settings_page_7_month_tip":"Jul.","date_and_time_settings_dst_settings_page_8_month_tip":"Aug.","date_and_time_settings_dst_settings_page_9_month_tip":"Sept.","date_and_time_settings_dst_settings_page_10_month_tip":"Oct.","date_and_time_settings_dst_settings_page_11_month_tip":"Nov.","date_and_time_settings_dst_settings_page_12_month_tip":"Dec.","date_and_time_settings_dst_settings_page_1st_tip":"1st.","date_and_time_settings_dst_settings_page_2nd_tip":"2nd.","date_and_time_settings_dst_settings_page_3rd_tip":"3rd.","date_and_time_settings_dst_settings_page_4th_tip":"4th.","date_and_time_settings_dst_settings_page_last_tip":"The last","remote_config_user_manager_page_admin_user":"Administrator","remote_config_password_page_show_password":"Show Password","remote_config_password_page_new_password_tip":"New Password","battery_for_go_page_statistics_remaining_power":"Remaining Battery (%)","battery_page_statistics_allow_dialog_title":"Battery Usage","battery_page_statistics_close_button":"Stop calculation","battery_page_statistics_close_dialog_message":"If you stop calculation now, the recording and calculation of device\'s online status will be terminated, and the relevant data will be deleted.","common_schedule_page_select_time_tip_push":"Customize push notifications at different times.","common_schedule_page_select_time_tip_sound":"Customize voice alerts at different times.","common_schedule_page_selecte_time":"Time","common_schedule_page_repeat_item_label":"Copy To","common_schedule_page_repeat_dialog_every_day_description":"Every Day","ftp_upload_settings_page_ftp_server":"FTP Server","ftp_upload_settings_page_upload_directory":"Upload Directory","ftp_upload_settings_page_upload_content":"File Type","ftp_upload_settings_page_upload_postpone":"FTP Postpone","help_config_page_add_devices_item_label":"Add Devices Automatically","help_config_page_terms_item_label":"Terms & Conditions","help_config_page_privacy_policy_item_label":"Privacy Policy","settings_help_system_status_item_label":"System Status","common_click_for_help":"Click for help","live_hdd_not_formatted_tip":"HDD is not formatted. You may not access playback feature.","remote_playback_setting_menu_sd_card_not_formatted_tip":"Camera SD card is not formatted. You may not access playback feature.","hdd_config_page_no_sd_card_instruction_with_pic":"No camera SD card is detected and you cannot access the playback feature. Please cut off the power of your camera and insert an SD card as instructed.","hdd_config_page_no_hdd_instruction_without_pic":"No HDD is detected and you cannot access the playback feature. Please cut off the power of your NVR and install an HDD.","forget_pw_page_find_reset_hole":"1. Long press the reset hole/button on the device for 5-10 seconds to reset your device to factory settings.","forget_pw_page_find_reset_hole_longer_time":"1. Long press the reset hole/button on the device for 5-10 seconds to reset your device to factory settings. It may take 1 min to reboot your device, please wait.","forget_pw_page_erase_info_in_device_without_cable":"2. After resetting, Wi-Fi info, device login password, and other related info will be erased and need to be reconfigured.","forget_pw_page_erase_info_in_cable_device":"2. After resetting, Wi-Fi info, device login password, and other related info will be erased and need to be reconfigured. Please make sure the network is available before reconfiguration.","forget_pw_page_check_power_on":"Please make sure the device is powered on and the network is available.","forget_pw_page_check_reset":"Please make sure the device has been reset.","forget_pw_page_instruction_img_failed":"Failed to load the instruction image.","forget_pw_page_start_init_after_reset":"I have reset the device.","common_spotlight":"Spotlight","live_spotlight_once_tip":"Tap to turn on the spotlight. It will turn off automatically in {s1}s if there is no motion detected.","remote_settings_spotlight_page_func_intro":"Turn on spotlight at night for higher-quality color image.","remote_config_siren_describe":"The siren will sound when motion is detected.","day_and_night_adjust_to_default_value":"Restore Defaults","app_launch_pw_hint":"Enter app password","device_pw_hint":"Enter device password","comon_confirm_login_pw_hint":"Confirm password","enter_wifi_pw_hint":"Wi-Fi Password","device_scene_create_tips_next_button":"Create Now","add_device_wifi_not_set":"Wi-Fi Not Configured","add_device_wifi_not_set_describe":"You need to configure Wi-Fi settings for the newly added or reset devices.","add_device_wifi_was_set":"Wi-Fi Already Configured","scan_setup_wifi_input_wifi_step_not_support_5g":"Only 2.4 GHz Wi-Fi supported. 5 GHz network is not available now.","scan_setup_wifi_scan_step_scan_failed":"Scan failed?","scan_setup_wifi_fail_connect_device_tip":"Please refer to the following and try again:","scan_setup_wifi_fail_connect_device_tip_switch_mobile":"Switch to mobile network.","scan_setup_wifi_fail_connect_device_tip_put_closer":"Put the camera closer to the router.","scan_setup_wifi_fail_connect_device_tip_reboot":"Reboot the router or the camera.","ir_light_usage":"See more clearly in dim light with IR lights on.","ir_light_on":"IR Lights On","ir_light_off":"IR Lights Off","ir_light_turn_on_tip":"IR lights will automatically turn on in dim light and turn off when there is sufficient lighting.","remote_infrared_light_page_keep_off":"Stay Off","live_auto_focusing":"Automatic focusing...","common_other":"Others","common_login_account_button":"Login","remote_config_page_ipc_push_label":"Push Notifications","remote_config_page_advanced_label":"Advanced","device_pir_settings_sensitivity_settings_page_sensitivity_high_describe":"Camera at higher sensitivity detects every small change in the field of view, such as a sneaky person at a distance.","device_pir_settings_sensitivity_settings_page_sensitivity_mid_describe":"Camera at medium sensitivity is moderately sensitive to changes, such as pets and dubious people not far away.","device_pir_settings_sensitivity_settings_page_sensitivity_low_describe":"Camera at lower sensitivity only detects motion of bigger objects, such as running cars and people nearby.","remote_settings_spotlight_page_light_off":"Spotlight Off","remote_settings_spotlight_page_light_on":"Spotlight On","remote_settings_spotlight_page_alarm_light":"Auto-On When Alarm Is Triggered","remote_settings_spotlight_page_alarm_light_tip":"Spotlight will turn on automatically when alarm is triggered at night, and turn off after a while.","sidebar_settings_page_dark_mode_btn":"Dark Mode","sidebar_settings_page_ios_dark_mode_entry":"Appearance","sidebar_settings_page_ios_light_mode":"Light Mode","sidebar_settings_page_ios_dark_mode_follow_sys":"Follow System","remote_config_page_wifi_item_reset":"Reset","common_device":"Device","manual_trigger_sound_alarm":"Audio alarm","network_current_network":"Connected Network","network_add_wifi":"Set up a Wi-Fi network","network_saved_wifi":"Saved Wi-Fi network","common_setup":"Customize","device_login_page_connect_failed_msg":"Please make sure your device is powered on and connected to a stable network before retry.","device_pir_settings_sensitivity_settings_page_only_one_saved_when_overlap":"Only the latest setting (shown on the top) will be saved when you set up one period more than once.","smart_config_power_on_and_wait_prompt":"Please power on the camera and wait for the voice prompts.","smart_config_if_heard_voice":"I have heard {s1} from the camera.","smart_config_camera_scan_code_with_some_distance":"Please face the camera towards QR code and keep scan distance around {s1}.","smart_config_fail_sound":"fail sounds","smart_config_ding_wait_for_scan_sound":"ding sounds","smart_config_beep_scan_success_sound":"a beep sound","smart_config_20cm_8inches":"20 cm (8 inches)","smart_config_30cm_12inches":"30 cm (12 inches)","remote_config_page_nvr_channel_audio_and_light":"Audio and Light","add_device_prefer_wifi_connection":"Choose Wi-Fi Connection","add_device_prefer_wifi_connection_tip":"If you prefer Wi-Fi connection and have not configured it yet, click here.","add_device_prefer_cable_connection":"Choose Network Cable Connection","add_device_prefer_cable_connection_tip":"If you prefer network cable connection, click here.","add_device_network_already_config":"Have Wi-Fi Configured or Network Cable Connected?","add_device_network_already_config_tip":"Click here.","common_ai_any_motion_option":"Any Motion","common_ai_human_option":"Person","common_ai_vehicle_option":"Vehicle","common_ai_animal_option":"Animal","common_ai_face_option":"Face","common_schedule_time_page_detection_tab":"Alarm","common_schedule_time_page_detection_type":"Detection Type","common_schedule_time_page_regular_tab":"Timer","timelapse_name":"Time Lapse","common_no_sdcard_no_function":"No SD card detected. To use this feature, please turn off the camera and insert an SD card.","common_sdcard_unformat_no_function":"SD card not formatted. To use this feature, please format SD card first.","timelapse_describe":"Time lapse feature enables you to capture hour-long or even day-long events, like sunrise, blooming and the work of building, etc. into minute-long videos or photo albums.","timelapse_party_scene":"Event/People/Traffic","timelapse_cloud_moving_scene":"Moving Clouds","timelapse_sunrise_scene":"Sunrise","timelapse_sunset_scene":"Sunset","timelapse_blooming_scene":"Blooming","timelapse_construction_scene":"Construction","timelapse_starttime_now":"Now","timelapse_start_at_when":"Interval: {s1}","timelapse_scene_generating":"Generating...","timelapse_scene_starttime":"Start time","timelapse_endtime":"End time","timelapse_generated_file":"Generated file:","timelapse_new_another_scene":"Create New Time Lapse Capture","timelapse_end_task_dialog_msg":"When you click Finish, the camera will stop capturing while the generated files remain. Are you sure to finish now?","timelapse_overwrite_files":"Overwrite Time Lapse Files","timelapse_overwrite_files_describe":"The earliest time lapse files will be overwritten when storage is full.","timelapse_battery_consumption_tip":"Note: Battery may drain faster with time lapse enabled. Please pay attention to battery usage and charge in time when low battery warning appears. Or you can disable PIR to reduce battery consumption.","timelapse_daily_period":"Daily Capture Period","timelapse_estimated_length":"Estimated video length:","timelapse_estimated_file_size":"Estimated file size:","timelapse_file_too_large":"File Too Large?","timelapse_photo_num_exceeds":"Note: You can only save up to {s1} photos per day. You are recommended to set up shooting in a shorter period or at a longer interval, or record videos instead.","common_days":"Day(s)","common_hours":"Hour(s)","common_minutes":"Minute(s)","common_video_file_type":"Video","common_photo_file_type":"Photo","timelapse_file_too_large_help":"To reduce file size, you may choose a lower quality or snapshot at a longer interval.","common_pause_sth":"Pause","common_continue":"Continue","timelapse_cannot_cache_when_other_tasks_caching":"There are other time lapse videos in the cache process. Please try later.","timelapse_video_saved_phone_failed":"Failed. Please try again.","timelapse_no_end_time":"No Limit","common_seconds":"Second(s)","timelpase_cannot_change_quality_when_capturing_msg":"Please stop the time lapse capture before modifying video quality, otherwise some of the time lapse feature may not be available.","timelapse_day_night_switch_title":"Notes on Color Switch","timelapse_day_night_switch_msg":"When day breaks or night falls, capture may switch between color and black & white. To capture in one color mode only, you may go to camera live view page - three-dot menu - Day and Night to choose the preferred mode. Note: With this altered, live view and record will change accordingly.","device_init_setup_wizard_name_device":"Name Your Device","device_init_setup_wizard_enable_samba":"Enable {s1}","common_samba_feature":"Samba","samba_enable_help_tip":"With Samba enabled, you may access the files stored on {s1} on a computer within LAN. It is recommended that you apply this service on non-public network only.\\n\\nHow to configure Samba on your PC? \\nOpen File Explorer - Type in \\\\\\\\{s2} - Press Enter - Type in username (admin) and password (the one you use to login your device) \\n\\nHow to configure Samba on Mac? \\nOpen Finder - Click \\"Go\\" button on the top menu - Click \\"Connect to Server\\" - Type in smb://{s3} - Click \\"Connect\\" - Type in username (admin) and password (the one you use to login your device)","device_init_setup_wizard_samba_disable_tip":"With Samba enabled, you may disable it on {s1} settings page later.","base_bind_camera":"Bind Camera","base_bind_camera_unsupport_camera":"Some cameras don\'t work with {s1} now. Learn more about {s2}.","base_bind_camera_support_models":"Supported Devices","base_bind_camera_no_support_camera_describe":"There is no device available to be bound on your device list.","base_bind_camera_cloud_already_enbled_title":"Bound to Cloud Services","base_bind_camera_will_unbind_another_base":"{s1} has been bound to another {s2}. Are you sure to bind it to this {s3}?","base_bind_camera_camera_bound_state":"Bound","base_camera_bind_base_bind_failed":"Failed to bind camera. Please try again.","base_camera_management_upload_stream_type":"Video Quality","base_storage_page_no_hdd_tip":"No SD card or HDD inserted. The upload and playback features are not available. Please cut off the power of {s1} and insert SD card or HDD as instructed.","live_base_no_storage_tip":"No storage device detected and you may not use the playback feature.","playback_base_no_storage_tip":"Storage device of {s1} is formatted yet and you may not use the playback feature.","app_launch_terms_agree":"Agree","app_launch_terms_disagree_exit":"Disagree and Exit","cloud_account_center_login_title":"Welcome to {s1}","cloud_account_center_login_mobilephone_description":"Verify your phone number to log in.","cloud_account_center_input_mobilephone_placeholder":"Please enter your phone number","cloud_account_center_input_sms_code":"Please enter the verification code we sent to your phone","cloud_account_center_get_sms_code":"Get Verification Code","cloud_account_center_get_sms_code_after_seconds":"Get verification code again {s1} seconds later","cloud_acocunt_center_wrong_sms_code":"The verification code is wrong. Please re-enter.","cloud_account_center_login_allow":"Login represents you agree to {s1}{s2} and {s3}.","add_device_use_uid":"Add Camera via UID","add_device_uid_description":"A product UID is a unique identifier of a device, which can be used to add device or access device information.","add_device_bound_by_others":"The camera has been added by user {s1}.","add_device_bound_by_others_description":"The bound account needs to be unbound before you can add the camera. Or request the user to share the camera with you.","add_device_has_password_need_reset":"The camera needs to be reset. Please press and hold the reset button until you hear the voice prompt.","devices_page_delete_dialog_need_reset_tip":"After deletion, the device will be unbound with your account. The next time you add a device, you need to reset it. If cloud storage service is enabled, the device will also stop uploading cloud videos.","account_center_page_input_correct_phone_number":"Please enter a valid phone number.","account_center_page_send_sms_failed":"Failed to send verification code. Please try again.","add_device_bind_failed_retry":"Failed to bind device. Please try again.","commom_button_go_back":"Back","zone_WesternDaylight":"Western Daylight","zone_MidwayIsland":"Midway Island","zone_Samoa":"Samoa","zone_Hawaii":"Hawaii","zone_AlaskaState":"Alaska State","zone_PacificTime":"Pacific Time (US & CA)","zone_MountainTime":"Mountain Time (US & CA)","zone_CentralTime":"Central Time (US & CA)","zone_EasternTime":"Eastern Time (US & CA)","zone_Caracas":"Caracas","zone_AtlanticTime":"Atlantic Time","zone_Newfoundland":"Newfoundland","zone_Georgetown":"Georgetown","zone_Brasilia":"Brasilia","zone_MidAtlanticTime":"Mid-Atlantic Time","zone_CapeVerde":"Cape Verde","zone_Azores":"Azores","zone_Dublin":"Dublin","zone_Edinburgh":"Edinburgh","zone_London":"London","zone_Amsterdam":"Amsterdam","zone_Berlin":"Berlin","zone_Rome":"Rome","zone_Paris":"Paris","zone_Athens":"Athens","zone_Jerusalem":"Jerusalem","zone_Istanbul":"Istanbul","zone_Baghdad":"Baghdad","zone_Kuwait":"Kuwait","zone_Moscow":"Moscow","zone_Tehran":"Tehran","zone_CaucasusStandardTime":"Caucasus Standard Time","zone_Kabul":"Kabul","zone_Islamabad":"Islamabad","zone_Karachi":"Karachi","zone_Tashkent":"Tashkent","zone_Madras":"Madras","zone_Calcutta":"Calcutta","zone_Mumbai":"Mumbai","zone_NewDelhi":"New Delhi","zone_Kathmandu":"Kathmandu","zone_AlmaAta":"Alma-Ata","zone_Novosibirsk":"Novosibirsk","zone_Dacca":"Dacca","zone_Yangon":"Yangon","zone_Bangkok":"Bangkok","zone_Hanoi":"Hanoi","zone_Jakarta":"Jakarta","zone_Beijing":"Beijing","zone_Seoul":"Seoul","zone_Tokyo":"Tokyo","zone_Osaka":"Osaka","zone_Sapporo":"Sapporo","zone_Adelaide":"Adelaide","zone_Melbourne":"Melbourne","zone_Sydney":"Sydney","zone_Canberra":"Canberra","zone_Magadan":"Magadan","zone_SolomonIslands":"Solomon Islands","zone_Auckland":"Auckland","zone_Wellington":"Wellington","zone_Fiji":"Fiji","zone_Nukualofa":"Nukualofa","tooltip_Preset":"Preset","tooltip_HidePassword":"Hide Password","tooltip_AddDevice":"Add Device","tooltip_SelectPresetPoint":"Select Preset Point","tooltip_AddPresetPoint":"Add Preset Point","tooltip_ClientSettings":"Client Settings","tooltip_Split":"Split","tooltip_FullScreen":"Full Screen","tooltip_ScreenLock":"Screen Lock","tooltip_Timeline":"Timeline","tooltip_AdvanceFramebyFrame":"Advance Frame by Frame","tooltip_ViewInFolder":"View in Folder","tooltip_linkFacebook":"Like us on Facebook","tooltip_linkTwitter":"Follow us on Twitter","tooltip_linkInstagram":"Follow us on Instagram","tooltip_linkYoutube":"Subscribe us on YouTube","menu_Cut":"Cut","menu_Copy":"Copy","menu_Paste":"Paste","common_Sun":"Sun","common_Mon":"Mon","common_Tue":"Tue","common_Wed":"Wed","common_Thu":"Thu","common_Fri":"Fri","common_Sat":"Sat","common_AM":"a.m.","common_PM":"p.m.","common_btnEsc":"Esc","common_chooseAll":"Choose All","common_UID":"UID","common_Port":"Port","common_Motion":"Motion","common_timing":"timer","common_saveCopyTo":"Save and copy to","common_typeHere":"Type Here","common_incorrectFormat":"Invalid Characters","common_passwordsNotMatch":"The two passwords do not match","common_Succeeded":"Succeeded","common_Failed":"Failed","common_Previous":"Previous","common_Next":"Next","common_SSID":"SSID","common_scanFailed":"Scan Failed","common_macAddress":"MAC Address","common_ipAddress":"IP Address","common_noDevice":"No Device Found","common_Info":"Info","common_Talk":"Talk","common_Zoom":"Zoom","common_Focus":"Focus","common_Unset":"Unset","common_Speed":"Speed","common_PTZ":"PTZ","common_CropVideo":"Clip","common_Browse":"Browse","common_Standard":"Standard","common_Rename":"Rename","common_Connect":"Connect","common_Connecting":"Connecting...","common_Connected":"Connected","common_notInit":"Not initialized","common_Timeout":"Timeout","common_Offline":"Offline","common_Closing":"Closing...","common_Disconnected":"Not connected","common_Deleted":"Deleted","common_deleteAll":"Delete All","common_getInfo":"Get Info","common_Disconnect":"Disconnect","common_cameraName":"Camera Name","common_Download":"Download","common_Downloading":"Downloading","common_Downloaded":"Downloaded","common_Duration":"Duration","common_Size":"Size","common_nofile":"File Not Found","common_Waiting":"Waiting...","common_User":"User","common_Language":"Language","common_General":"General","common_Liveview":"Live View","common_Playback":"Playback","common_errorUsernameExists":"The username already exists.","common_changePassword":"Change Password","common_oldPassword":"Old Password","common_incorrectPassword":"Incorrect Password","common_FTP":"FTP","common_Anonymous":"Anonymous","common_Seconds":"Seconds","common_secs":"secs","common_sec":"sec","common_mins":"mins","common_min":"min","common_multiMins":"Min(s)","common_Minutes":"Minutes","common_Minute":"Minute","common_AUTO":"AUTO","common_PASV":"PASV","common_Interval":"Interval","common_Format":"Format","common_sdCard":"SD Card","common_HDD":"HDD","common_eSATA":"eSATA","common_unknown":"unavailable","common_Setup":"Set Up","common_Sensitivity":"Sensitivity","common_Low":"Low","common_Middle":"Middle","common_High":"High","common_Exposure":"Exposure","common_Mirroring":"Mirroring","common_Flip":"Flip","common_otherPosition":"Other Position","common_Brightness":"Brightness","common_Contrast":"Contrast","common_Saturation":"Saturation","common_Hue":"Tint","common_Sharpen":"Sharpness","common_Resolution":"Resolution","common_privacyMask":"Privacy Mask","common_DNS":"DNS","common_DHCP":"DHCP","common_Static":"Static","common_staticDNS":"Static DNS","common_autoDNS":"Auto DNS","common_preferredDNS":"Preferred DNS","common_alternateDNS":"Alternate DNS","common_subnetMask":"Subnet Mask","common_gateWay":"Gateway","common_Model":"Model","common_Details":"Details","common_Configuration":"Configuration","common_Export":"Export","common_firmwareUpgrade":"Firmware Update","common_Restore":"Restore","common_Reboot":"Reboot","common_Battery":"Battery","common_Allow":"Allow","common_Sender":"Sender","common_Overwrite":"Overwrite Recordings","common_PreRecord":"Pre-Motion Record","common_PostRecord":"Post-Motion Record","common_Network":"Network","common_netError":"Network Error","common_tooLess":"No less than {s1} characters.","common_ipDomain":"IP/Domain","common_Error":"Error","common_connectionFailed":"Connection Failed","common_Warning":"Warning","common_RecordSettings":"Record Settings","common_wifiSettings":"Wi-Fi Settings","common_current":"current","common_AddUser":"Add User","common_notEmpty":"This field cannot be blank.","common_noFindFolder":"Failed to find this folder: {s1}.","common_fullscreenPrompt":"Press {s1} to exit full screen.","common_Account":"Account","autoUpgrade_availableDes":"There is a new version of {s1} Client available. Would you like to update now?","autoUpgrade_checkingForUpdates":"Checking for Updates...","autoUpgrade_upgradeFailedDes":"An error occurred while downloading the update.","deviceAddLogin_creatName_editDeviceName":"Edit device name.","deviceAddLogin_creatPassword_creatDevicePassword":"Create device password","deviceAddLogin_connectFailed_title":"Wi-Fi Connection Failed","deviceAddLogin_connectFailed_step1":"1. The Wi-Fi password you entered is incorrect.","deviceAddLogin_connectFailed_step2":"2. The device is too far from the router.","deviceAddLogin_connectFailed_step3":"3. This device only supports 2.4 GHz Wi-Fi, please check your router.","deviceAddLogin_connectFailed_step4":"4. The QR code number on your app might be different from that of your camera. Please check if the last four digits of the QR code number on the camera are {s1}. Scan the QR code after checking.","deviceAddLogin_inputData_voicePrompt":"Please run the {s1} app, add the camera and set it up.","deviceAddLogin_inputData_notHeard":"I didn\'t hear the voice prompt.","deviceAddLogin_inputData_inputwifi":"Please type in Wi-Fi info.","deviceAddLogin_qrcodeFailed_qrcodeMismatch":"QR Code Does Not Match","deviceAddLogin_qrcodeFailed_clue1":"1. The rear cover might mismatch the camera. Please don\'t mix rear covers of devices. Make sure they match and try again.","deviceAddLogin_qrcodeFailed_clue2":"2. If it still displays \\"QR code does not match\\" after trying the method above, please contact the support team.","deviceAddLogin_qrcodeScan_clue1":"When you hear \\"Scan succeeded\\", the Wi-Fi connection is succeeded.","deviceAddLogin_qrcodeScan_clue2":"Connection failed?","deviceAddLogin_qrcodeScan_clue3":"Please scan the QR code below with your camera.","deviceAddLogin_wifiSolution_clue1":"Configure Wi-Fi settings on your new device for the first time.","deviceAddLogin_wifiSolution_clue3":"Wi-Fi setup is completed.","deviceAddLogin_wifiSolution_clue4":"Please check your camera battery and power, and then push the reset button until you hear a voice prompt.","deviceAddLogin_addDevice_tabScanTitle":"Scan Device(s) in LAN","deviceAddLogin_addDevice_networkErrorTip":"Failed to add device. Please check your network and ensure the UID is correct.","deviceAddLogin_addDevice_batteryAddTip":"You are adding a battery-powered IP camera. To avoid battery drainage, please reduce the live viewing time.","deviceAddLogin_addDevice_failedTip":"Failed to add device.","deviceAddLogin_addDevice_existsTip":"Failed to add device. This device already exists.","liveAudio_stopTalk":"Click to stop talking.","liveAudio_startTalk":"Click to start talking.","livePtz_patrolTime":"Patrol Time","livePtz_patrolSpeed":"Patrol Speed","livePtz_presetPoints":"Preset Points","localSettings_tooLong":"Path too long","localSettings_general_autoLogin":"Auto Login","localSettings_general_runOnStartup":"Run at Startup","localSettings_general_alarmBeep":"Alarm Beep","localSettings_general_downloadPath":"Download Path","localSettings_general_capturePath":"Save Captured Images to","localSettings_general_restartClue":"If you change display language, {s1} Client will restart automatically to implement the change. Are you sure to continue?","localSettings_general_autoUpdateApp":"Automatic Client Update","localSettings_record_streamType":"Stream Type","localSettings_record_spaceWarning":"Low Disk Space Warning","localSettings_record_recordingFileDuration":"Video File Duration","localSettings_record_recordPath":"Record Videos to","localSettings_record_folderSize":"Video Recording Folder Size","localSettings_record_recordSchedule":"Local Record Schedule","main_deviceList_clueTitle":"Add New Device(s)","main_deviceList_clueDes":"Click the {s1} button on the far right side of the menu bar to add new device(s).","main_deviceItem_noSD":"No SD Card detected.","main_deviceItem_confirmDeleteDevice":"Are you sure to delete this device?","playbackBar_noChannel":"No Channel","playbackDownload_downloadArea_allChannels":"All Channels","playbackDownload_downloadArea_fileName":"File Name","playbackDownload_downloadArea_startTime":"Start Time","playbackDownload_downloadArea_filesSelected":"{s1} of {s2} files selected.","playbackDownload_downloadArea_noPermission":"No write permission to folder: {s1}.","playbackDownload_downloadArea_noSpace":"You are running out of disk space.","playbackDownload_taskArea_taskList":"Task List","remoteConfig_addUser_subTitle":"Add family members and friends as admins or users to access your devices easily.","remoteConfig_addUser_userType":"User Type","remoteConfig_addUser_adminDes":"Access devices, change device settings and manage all users.","remoteConfig_addUser_commonDes":"Access devices and change their own login passwords, but cannot change device settings.","remoteConfig_ftp_title":"FTP Settings","remoteConfig_ftp_enableFTP":"Enable FTP","remoteConfig_ftp_transportMode":"Transport Mode","remoteConfig_ftp_maxFileLength":"Max File Size","remoteConfig_ftp_clearVideoPicture":"Clear video and image","remoteConfig_ftp_fluentVideoPicture":"Fluent video and image","remoteConfig_ftp_balancedVideoPicture":"Standard video and image","remoteConfig_ftp_onlyPicture":"Image only","remoteConfig_ftp_clearVideo":"Clear video","remoteConfig_ftp_fluentVideo":"Fluent video","remoteConfig_ftp_balancedVideo":"Standard video","remoteConfig_hdd_FormatStorage":"Format Storage","remoteConfig_user_tooManyUser":"Unable to add account. You have reached the maximum number of accounts.","remoteConfig_user_deleteUser":"Once deleted, the user account would be invalid and cannot access the device. Are you sure to continue?","remoteConfig_alarmDetect_subTitle":"Create no-alarm zones to reduce false alarms.","remoteConfig_motion_customizedSettings":"Customized Settings","remoteConfig_motion_motionDetect":"Motion Detection Zone","remoteConfig_motion_motionSchedule":"Motion Schedule","remoteConfig_motion_motionPir":"Motion & PIR","remoteConfig_rf_rfSchedule":"RF Schedule","remoteConfig_copyTo_title":"Please choose device(s) to copy to.","remoteConfig_retry_title":"Loading failed.","remoteConfig_advancedSettings_gainRange":"Gain Range","remoteConfig_advancedSettings_shutterRange":"Shutter Range","remoteConfig_advancedSettings_dynamicRange":"Dynamic Range","remoteConfig_advancedSettings_whiteBalance":"White Balance","remoteConfig_advancedSettings_Backlight":"Backlight","remoteConfig_advancedSettings_lowNoise":"Low Noise","remoteConfig_advancedSettings_antiSmearing":"Anti-Smearing","remoteConfig_advancedSettings_redGain":"Red Gain","remoteConfig_advancedSettings_blueGain":"Blue Gain","remoteConfig_encode_frameRate":"Frame Rate (FPS)","remoteConfig_encode_maxBitRateOptions":"Max Bitrate (Kbps)","remoteConfig_ddnsSetting_serverType":"DDNS Server Type","remoteConfig_ddnsSetting_domainName":"Server Domain Name","remoteConfig_ddnsSetting_noIp":"NO-IP","remoteConfig_ddnsSetting_DynDNS":"DynDNS","remoteConfig_netwrokSetting_title":"Network Settings","remoteConfig_netwrokSetting_networkAccess":"Connection Type","remoteConfig_ntpSetting_server":"NTP Server","remoteConfig_ntpSetting_port":"NTP Port","remoteConfig_ntpSetting_autoSynchronize":"Auto-Synchronize","remoteConfig_ntpSetting_synchronizeEvery":"Synchronize Every","remoteConfig_portSetting_restartClue":"Note: May require device restart for change to take effect.","remoteConfig_portSetting_forceErrorText":"Port is already in use.","remoteConfig_portSetting_Media":"Media Port","remoteConfig_portSetting_HTTP":"HTTP Port","remoteConfig_portSetting_HTTPS":"HTTPS Port","remoteConfig_portSetting_RTSP":"RTSP Port","remoteConfig_portSetting_RTMP":"RTMP Port","remoteConfig_portSetting_Onvif":"ONVIF Port","remoteConfig_wifiNvrSetting_netPort":"Cameras with Net Port","remoteConfig_wifiNvrSetting_noNetPort":"Cameras without Net Port","remoteConfig_wifiNvrSetting_clue2":"2. Wait for several minutes until you hear two beeps. And it suggests that the Wi-Fi configuration is successfully synced and the camera will reboot soon.","remoteConfig_wifiNvrSetting_clue3":"3. Connect the camera to an NVR with network cables again after completing the above steps. Refresh and check camera connection.","remoteConfig_wifiNvrSetting_clue4":"1. Please long press the reset button of the camera until you hear the voice prompt.","remoteConfig_wifiSetting_current":"Current Network Connection","remoteConfig_wifiSetting_notConnected":"This device is not connected to any Wi-Fi network.","remoteConfig_wifiSetting_wirelessNetwork":"Wireless Network","remoteConfig_wifiSetting_manualInput":"Add Wi-Fi Info Manually","remoteConfig_dateTime_clue":"Device time may be incorrect.","remoteConfig_dateTime_syncTime":"Sync client time","remoteConfig_dateTime_dateFormat":"Date Format","remoteConfig_dateTime_24hour":"24h time format","remoteConfig_dateTime_12hour":"12h time format","remoteConfig_general_DeviceName":"Device Name","remoteConfig_general_HwNo":"Hardware No.","remoteConfig_general_CfgVersion":"Config Version","remoteConfig_general_FwVersion":"Firmware Version","remoteConfig_Maintenance_title":"Maintenance","remoteConfig_Maintenance_autoFocus":"Auto Focus","remoteConfig_Maintenance_autoReboot":"Auto Reboot","remoteConfig_Maintenance_autoRebootTime":"Auto Reboot Time","remoteConfig_Maintenance_autoUpgrade":"Auto Update","remoteConfig_Maintenance_onlineUpgrade":"Online update","remoteConfig_Maintenance_updateConfigureFile":"Reset Configuration","remoteConfig_Maintenance_DefaultSettings":"Default Settings","remoteConfig_Maintenance_EverySunday":"Every Sunday","remoteConfig_Maintenance_EveryMonday":"Every Monday","remoteConfig_Maintenance_EveryTuesday":"Every Tuesday","remoteConfig_Maintenance_EveryWednesday":"Every Wednesday","remoteConfig_Maintenance_EveryThursday":"Every Thursday","remoteConfig_Maintenance_EveryFriday":"Every Friday","remoteConfig_Maintenance_EverySaturday":"Every Saturday","remoteConfig_Maintenance_exportingPrompt":"Exporting...","remoteConfig_Maintenance_exportSucceededPrompt":"Export successfully!","remoteConfig_Maintenance_rebootingRestartClue":"Warning: Device will be restored to factory settings and reboot. Do you wish to continue?","remoteConfig_Maintenance_rebootClue":"Device will reboot. Continue?","remoteConfig_battery_subTitle":"View device\'s online status for last 30 days to learn device battery consumption details.","remoteConfig_battery_clue1":"Running time for last 30 days","remoteConfig_battery_clue2":"Running time includes the time taken to trigger alerts and access the device from app or Client.","remoteConfig_battery_powerTips":"Battery Usage Warning Threshold","remoteConfig_battery_linkTo":"Note: Find more tips on how to extend battery life here.","remoteConfig_battery_lowBattery":"Low Battery Warning","remoteConfig_battery_Charging":"Charging ...","remoteConfig_email_SMTPserver":"SMTP Server","remoteConfig_email_SMTPport":"SMTP Port","remoteConfig_email_EnableSSLTLS":"Enable SSL or TLS","remoteConfig_email_SenderAddress":"Sender Address","remoteConfig_email_RecipientAddress1":"Recipient Address 1","remoteConfig_email_RecipientAddress2":"Recipient Address 2","remoteConfig_email_RecipientAddress3":"Recipient Address 3","remoteConfig_network_UPnpEnable":"Enable UPnP","remoteConfig_network_UIDEnable":"Enable UID","remoteConfig_network_restartClue":"When UID is disabled, device will no longer be accessible via UID to this or other platforms.","remoteConfig_network_DDNSEnable":"Enable DDNS","remoteConfig_network_DDNSSetting":"DDNS Settings","remoteConfig_network_NTPSetting":"NTP Settings","remoteConfig_network_PortSetting":"Port Settings","remoteConfig_network_ICCID":"ICCID","remoteConfig_network_IMEI":"IMEI","remoteConfig_recording_EnableRecord":"Enable Record","remoteConfig_recording_PackDuration":"Pack Duration","remoteConfig_upgrading_readied":"New firmware update is available.","remoteConfig_upgrading_readiedSubtitle":"Please do not leave the update page when upgrading. The device will restart automatically when the upgrading completes.","remoteConfig_upgrading_Upgrading":"Device is upgrading...","remoteConfig_upgrading_UpgradingSubtitle":"Please don\'t power off your device before the upgrading completes.","remoteConfig_upgrading_upgradeFailed":"Update Failed","remoteConfig_upgrading_requestFailedSubtitle":"{s1}Please try again.","remoteConfig_upgrading_tryAgain":"Try Again","remoteConfig_upgrading_uploadingFile":"Uploading files...","remoteConfig_upgrading_upgradingFirmware":"Upgrading firmware...","remoteConfig_upgrading_upgradeCompleted":"Update completed.","remoteConfig_upgrading_upgradeCompletedSubtitle":"After device restarts, it will work normally.","remoteConfig_upgrading_upgradeFailedSubtitle":"{s1}Please try again after the device restarts.","remoteConfig_upgrading_timeout":"Connection has timed out.","remoteConfig_upgrading_busy":"The system is busy now.","remoteConfig_upgrading_noFind":"Please check if the file is valid.","remoteConfig_upgrading_sameVer":"The selected package is identical with the current version.","remoteConfig_upgrading_checkFailed":"Failed to recognize the file format.","remoteConfig_upgrading_upgradeBusy":"Device is busy.","remoteConfig_upgrading_upgradeOom":"There is no enough storage space in the device for Update.","background_batteryDeviceClose":"No operation for long. To save power, do you want to disconnect? The device [{s1}] will be disconnected automatically in {s2}s.","background_batteryError":"Abnormal battery condition in camera[{s1}]! Please check whether the battery is correctly installed.","background_noDiskSpace":"There is not enough disk space available.","background_recordNoWritePermission":"No write permission to record folder.","aboutUs_title":"About {s1}","aboutUs_contactUs":"Contact Us","software_manual_link":"https://reolink.com/software-and-manual/","contact_us_link":"https://reolink.com/contact-us/","battery_support_url":"https://support.reolink.com/hc/en-us/articles/360006991893-Extend-the-Battery-Life-of-Reolink-Battery-Powered-Cameras","manual_trigger_sound_alarm_failed":"Failed to trigger audio alarm.","common_capture":"Snapshot","common_record":"Record","wifi_config_page_mobile_network":"Mobile Network","remote_infrared_light_page_keep_off_description":"When disabled, night vision may not perform well in the dark.","client_end":"结束符,不用管这个key","CAMERA_SENSITIVITY_MID":"Medium","ENABLE_BUZZER":"Enable Buzzer","BUZZRE_FOR_EXPECTIONS":"Buzzer for Exceptions","ENABLE_EMAIL_ALERTS":"Enable Email Alerts","EMAIL_TEST":"Email Test","EMAIL_ALERT_FOR_EXPECTIONS":"Email Alerts for Exceptions","FTP_TEST":"Test","FORMAT_SDCARD_REBOOT":"Formatting will erase all the data on the SD card and the device will reboot. Are you sure you want to do this?","FORMAT_SDCARD_REBOOT_RELOGIN":"Formatting will erase all the data on SD card and the device will reboot. Re-login is required after formatting. Are you sure to continue?","FORMAT_HDD":"Formatting will erase all the data on the disk. Are you sure you want to do this?","FORMAT_HDD_RELOGIN":"Formatting will erase all the data on the disk and re-login is required after formatting. Are you sure to continue?","RELOGIN_TIPS":"Re-login is required if that setting is changed.","IP_CHANGE_ADD_DEVICE":"IP address has changed. Please obtain the latest IP address and re-add the device.","IP_CHANGE_RELOGIN":"IP address has changed. Please obtain the latest IP address and re-log in to the device.","TIP_IP_CHANGE_ADD_DEVICE":"Note: With IP address changed, you need to re-add the device.","upgrade_check_failed_title":"Checking failed.","change_lockscreen_password":"Change Lockscreen Password","set_lockscreen_password":"Set Lockscreen Password","lockscreen_password":"Lockscreen Password","enter_unlock_password":"Enter Unlock Password","drive_support_url":"https://support.reolink.com/hc/en-us/articles/900002574686","drag_camera_here":"Drag & Drop Device Here","ptz_ai_track_title":"Auto Tracking","sina_tooltip":"微博","tencent_tooltip":"公众号","get_device_login_status_failed":"Failed to obtain login status.","get_device_profile_failed":"Failed to obtain device information.","open_device_signature_login_failed":"Password-free login failed.","device_restore_confirm_title":"Please confirm you have reset the device.","device_restore_confirm":"Yes, Continue","no_permit_of_playback":"No permission to play back this recording.","input_too_long":"Character limit exceeded.","ptz_calibration_title":"Calibration required.","ptz_calibration_btn":"Start Calibration","remote_settings_spotlight_page_night_mode_title":"Night Mode","remote_settings_spotlight_page_auto_on_preview":"Auto-On for Live View","remote_settings_spotlight_page_auto_on_preview_description":"Spotlight auto turns on when viewing live feed and turn off afterwards.","remote_settings_spotlight_page_smart_night_vision_description":"Spotlight auto turns on when alarm event is detected.","remote_settings_spotlight_page_night_vision_always_on_title":"Always On at Night","remote_settings_spotlight_page_night_vision_always_on_description":"Spotlight stays on in night mode.","remote_settings_spotlight_page_night_vision_off_description":"Spotlight stays off in night mode.","remote_settings_spotlight_page_timing_always_on_title":"On as scheduled","remote_settings_spotlight_page_timing_always_on_description":"Spotlight stays on at scheduled time in night mode.","remote_config_email_password_placeholder":"Enter email password","remote_config_email_port_placeholder":"Enter port number","remote_config_email_smtp_incorrent_tip":"Incorrect SMTP server info or port. Please correct it and try again.","remote_config_email_network_error_tip":"Device network error. Please try again.","remote_config_email_address_or_password_error_tip":"Incorrect email password or SMTP not enabled. Please troubleshoot as follows:\\nStep 1: Make sure the SMTP server is enabled for your email. For details of how to enable it, please contact the email provider.\\nStep 2: Make sure that you enter the correct email address and password. Some email can only be accessed by entering an app password. Please set the app password and try again.","remote_config_email_not_allowed_email_tip":"Check if you have typed in a correct email address or try with another email address.","remote_config_email_device_memory_error_tip":"Device cannot send email now. Please wait and try again later.","remote_config_email_unknow_error_tip":"Unknown error. Please try with another email address.","common_dialog_clear_button":"Clear","common_access_device":"Access Device","device_default_account_tip":"(Default device account)","forget_pw_page_device_not_here":"Don\'t have your device?","forget_pw_page_reset_device_out_of_reach":"How can I reset the device that is out of reach?","forget_pw_page_reset_device_out_of_reach_help_tip":"1. Ask a family member or trusted friend to follow instructions and press the reset button on the device. \\n2. If you can access the device on PC, log in to {s1} Client, restore the device to factory settings and create a new device password. \\nIf your family members or trusted friends can access the device, you may ask them to restore the device to factory settings and create a new device password. \\n{s2}\\n{s3}\\n","forget_pw_page_reset_device_via_app":"How can I reset the device via {s1} App?","forget_pw_page_reset_device_via_windows_client":"How can I reset the device via {s1} Client?","device_init_setup_wizard_create_password_description":"The account info is required when you access device(s) on other platforms. Keep it for quicker access.","device_default_username_placeholder":"default username","add_device_uid_invalid_check_description":"UID error. Please check the characters and try again.","ptz_preset_point_description":"Mark the current position as a preset point to set the patrol route.","ptz_guard_point_title":"Monitor Point","ptz_guard_point_description":"Device will auto return to the initial monitoring position after deviating.","ptz_guard_point_auto_return":"Auto return to Monitor Point","ptz_gurad_point_reset":"Reset Monitor Point","display_hightlights_shadows_title":"Brightness & Shadows","common_view_manual":"Manual","display_shadows_title":"Shadows","ai_track_type_title":"Tracking Type","alarm_settings_alarm_title":"Detection Alarm","alarm_settings_detection_area_page_title":"Detection Zone","alarm_tolerance_page_titile":"Alarm Delay","alarm_tolerance_setting_page_description":"Alarm will be triggered when a detection object stays in detection zone longer than the set time.","smart_detection_page_title":"Smart Detection","alarm_settings_person_detection_title":"Person Motion","alarm_settings_person_sensitivity_high_description":"Camera at high sensitivity detects moving objects with low-similarity appearance to persons.","alarm_settings_person_sensitivity_mid_description":"Camera at medium sensitivity detects moving objects with medium-similarity appearance to persons.","alarm_settings_person_sensitivity_low_description":"Camera at medium sensitivity detects moving objects with medium-similarity appearance to persons.","alarm_settings_vehicle_sensitivity_high_description":"Camera at high sensitivity detects moving objects with low-similarity appearance to vehicles.","alarm_settings_vehicle_sensitivity_mid_description":"Camera at medium sensitivity detects moving objects with medium-similarity appearance to vehicles.","alarm_settings_vehicle_sensitivity_low_description":"Camera at low sensitivity only detects moving objects with high-similarity appearance to vehicles to reduce false alarms.","alarm_settings_animal_sensitivity_high_description":"Camera at high sensitivity detects moving objects with low-similarity appearance to animals.","alarm_settings_animal_sensitivity_mid_description":"Camera at medium sensitivity detects moving objects with medium-similarity appearance to animals.","alarm_settings_animal_sensitivity_low_description":"Camera at low sensitivity only detects moving objects with high-similarity appearance to animals to reduce false alarms.","alarm_object_size_page_title":"Object Size","alarm_object_size_setting_page_description":"Moving objects that are smaller than the minimum object size or bigger than the maximum object size will not trigger alarm.","alarm_object_size_min_description":"Moving objects that are smaller than this size will not trigger alarm.","alarm_object_size_max_description":"Moving objects that are bigger than this size will not trigger alarm.","ptz_self_testing_description":"Calibration is under process. PTZ feature is currently not available. Please wait.","remote_settings_alarm_volume_description":"Adjust the alarm and speaker volume.","remote_settings_alarm_volume_test_title":"Volume Test","setup_wifi_support_5g_tip":"This device supports 2.4 GHz and 5 GHz Wi-Fi networks. Connect the device to 5 GHz Wi-Fi for a better network experience.","wizard_scene_select_title":"Select Scene","wizard_scene_indoor":"Indoor","wizard_scene_outdoor":"Outdoor","ptz_preset_point_not_support_cruise_description":"Mark the current position as a preset point.","remote_settings_interframe_space_title":"I-frame Interval","display_color_day_mode_title":"Color Day Mode","display_color_night_mode_title":"Color Night Mode","scroll_mouse_wheel_zoom":"Scroll the mouse wheel to zoom in or out.","remoteConfig_Maintenance_exportFailedPrompt":"Export failed.","common_language_select":"English","common_connection_failed":"Connection failed.","common_wifi_connection_failed":"Wi-Fi connection failed.","common_new_version_available":"New Version Available","common_most_current_version":"This is the most current version available.","common_password_not_match":"Password and Confirm Password do not match.","scan_qr_code_title":"Scan QR code.","scan_qr_code_tip":"Scan the QR code on the screen with camera.","scan_connect_router_title":"Connect to router.","scan_connect_camera_failed_tip":"Failed to connect to camera.","scan_switch_same_wifi_tip":"Switch to the same Wi-Fi network as the camera.","scan_go_back_title":"Go back and add the device again.","live_page_stop_record_tip":"Recording… If you quit now, the camera will stop recording and save the videos locally. Are you sure you want to quit?","ftp_test_error_450":"Unknown error. Please try again.","ftp_test_error_451":"Login failed. Please check: \\nIf username or password is correct. \\nIf you have permission to log in.","ftp_test_error_452":"Failed to create folder. Please check: \\nIf your FTP server is full. \\nIf you have permission to create folder.","ftp_test_error_453":"Failed to upload file. Please check: \\nIf your FTP server is full. \\nIf you have permission to upload file.","ftp_test_error_454":"Connection failed. Please check your network connection.","add_device_ip_description":"Product IP can be used to add device or access device information.","display_hdr_title":"HDR","display_dual_lens_sync_brightness_title":"Channel 1 & 2 Brightness","common_view_sync":"Sync","common_view_unsync":"Not Sync","area_detection_title":"Area Detection","area_detection_description":"When disabled, camera will send alerts about the whole detection coverage. \\nWhen enabled, camera will detect motion and send alerts about the created detection zones.","common_view_go_settings":"Create Detection Zones","detection_pet_title":"Pet Detection","detection_pet_tip":"Pet Safety","detection_pet_decription1":"Smart pet detection is added! This function is currently used to keep an eye on your dogs and cats.","detection_pet_decription2":"When enabled, you can customize the camera to record videos and send alerts when it detects pet detection events, and filter recordings by pet when viewing the playback.","detection_pet_decription3":"Note: This function is still in the internal testing stage and there is a probability of false alarm. If there is any, please feel at ease to share more details with us on our official website, which will help improve the products and user experience.","common_device_volume":"Device Volume","common_view_privacy_notice":"Privacy Notice","common_view_off_full":"Off","port_setting_rtmp_des":"Note: When disabled, Client cannot access the device.","port_setting_http_des":"Note: When HTTP and HTTPS are both disabled, device cannot be accessed via web browser.","network_connect_subtitle":"Network Connection","network_info_subtitle":"Network Information","port_setting_https_settings_title":"HTTPS Settings","certificate_title":"Certificate","keyfile_title":"Keyfile","black_white_switch_title":"Auto Switch to Black & White","black_white_switch_des":"Go Black & White when ambient light falls below the set brightness value.","common_ai_pet_option":"Pet","day_and_night_value_config_title":"Black & White and Color Switching Threshold","day_and_night_value_config_description":"Ambient brightness threshold when switching between Black & White and Color in Auto mode of Day & Night:","common_dst_title":"DST","display_advanced_sync_brightness_title":"Sync Brightness","display_advanced_sync_brightness_description":"Synchronously adjust left and right cam to avoid brightness difference","display_advanced_sync_brightness_warning":"Toggling the switch will reboot the device","remote_setting_pre_alarm_description":"When motion is detected, you will hear the pre-alarm sound from the camera, indicating the camera is determining the motion. The pre-alarm may last 3 seconds.","remote_setting_pre_alarm_title":"Pre-Alarm Sound","remote_setting_pre_alarm_sound_test_tip":"Please move close to the camera to test the pre-alarm sound.","ftp_test_success_tip":"FTP upload test succeeded!","push_test_push_timeout_description":"Push notification timed out. Please try again.","push_test_connection_timeout_description":"Network connection timed out. Please try again.","push_test_ca_verify_failed_description":"CA verification failed. Please calibrate time of the device and try again.","push_test_ca_certificate_wrong_description":"The CA certificate is wrong. Please calibrate time of the device and try again.","push_tes_network_failed_description":"Network connection failed. Please try again.","push_test_unknown_error_description":"Unknown error. Please try again.","password_strength_tip":"Password strength: {s1}","common_password_weak":"Weak","common_password_medium":"Medium","common_password_strong":"Strong","common_password_requirement_length":"Password must be at least 6 characters.","common_password_requirement_characters":"Password should include characters from at least 2 different categories: digits (0-9), uppercase letters (A-Z), lowercase letters (a-z), and symbols.","download_cancel_tip":"Closing current window will stop this download. Are you sure to continue?","wifi_qr_reset_heard_voice_tip":"I have heard the voice played by the device.","base_manager_title":"Management","base_unbind_alert_title":"Unbind Camera","base_unbind_alert_message":"After unbinding the camera, the previous video recordings remain in the Base.","base_bind_not_upgraded_title":"Not Update","common_enter":"Enter","base_record_view_in_base_tip":"This video recording can only be viewed in Base.","base_samba_help_tip":"Learn more about Samba Service.","base_no_record_file_found_tip":"No video recording found.","common_test":"Test","common_server":"Server","common_ip":"IP","ftps_protocol_title":"FTPS Only","ftps_protocol_description":"The server must support the FTPS protocol, otherwise files cannot be uploaded.","common_directory":"Directory","ftp_remote_directory_title":"Remote Directory","ftp_generate_subfolder_rule":"Generate subfolder by","common_upload":"Upload","common_image":"Image","common_video_and_image":"Video & Image","ftp_overwirte_file_title":"Overwrite File","ftp_not_overwrite_title":"No","ftp_single_file_overwrite_title":"Overwrite Single File","ftp_swap_file_overwrite_title":"Alternately Overwrite Two Files","ftp_single_file_overwrite_description":"Only retain the latest file.","ftp_swap_file_overwrite_description":"This option will generate temporary files.","ftp_type_in_file_name_tip":"Please type in the file name.","push_interval_title":"Push Interval","display_flip_vertical_title":"Flip Vertical","display_flip_horizontal_title":"Flip Horizontal","ftp_video_file_max_size":"Max File Size (MB)","ftp_image_interval_des":"When the network is slow, the picture might be damaged.","detection_area_erase":"Erase","detection_area_erase_all":"Erase All","password_trim_warn":"The first and last characters cannot be spaces.","detection_area_draw":"Paint","detection_area_draw_all":"Paint All","playback_failed_load_file_tip":"Failed to load playback.","common_width":"Width","common_height":"Height","common_input":"Input","diagnostic_logs_title":"Diagnostic Logs","main_devicelist_no_device_tip":"Click to add device","password_not_match_error":"Passwords do not match","base_samba_intro_tip":"Enable Samba, you can access Reolink Drive on the LAN computer. When enabled, you can disable Samba on the Settings page. It is recommended to use Samba in non-public places.","base_samba_instructions_title":"Instructions","base_samba_usage_step_one":"1. Obtain the LAN IP of Reolink Drive first.","base_samba_obtain_ip_obtaining":"Obtain IP automatically...","base_samba_obtain_ip_obtain_failed":"Obtain failed. Please try again.","base_samba_usage_step_two":"2. Then access on PC/Mac.","base_samba_usage_on_pc":"1. Open Windows Explorer.\\n2. Enter \\"\\\\\\\\{s1}\\" and click Enter.\\n3. Enter the user name (admin) and password of the device.","base_samba_usage_on_mac":"1. Open Finder.\\n2. Click \\"Go\\" in the menu bar at the top of the screen.\\n3. Find and click \\"Connect to Server\\".\\n4. Enter \\"smb://{s1}\\".\\n5. Click Connect.\\n6. Enter the user name (admin) and password of the device.","https_settings_subtitle":"A self-signed certificate is used by default, but you can also import your own certificate.","channel_not_support_siren":"The device does not support this function.","common_customize":"Customize","hover_title_scrollview":"Scrollview","scrollview_time_title":"Scrollview Time","date_and_time_settings_page_current_time":"Current Time","date_and_time_settings_page_modified_time":"Modified Time","date_and_time_settings_page_time_not_support_modify":"This device does not support manual modification of time.","corresponding_area_settings_need_preview":"Please check the preview screen of this device, then come back and set the corresponding area.","common_iot":"IoT","smart_plug_turn_off_timer_tip":"{s1} Later will turn off","smart_plug_turn_on_timer_tip":"{s1} Later will turn on","smart_plug_reset_tip_2":"Press and hold the reset button for 5 seconds.","smart_plug_reset_tip_3":"Check if the indicator light is flashing.","smart_plug_reset_contact_after_sales_tip":"If the fault persists after the retry, contact the after-sales personnel of the corresponding channel.","smart_plug_reset_connect_wifi_tip":"Connect to the plug Wi-Fi in system settings and then come back and continue setup.","smart_plug_go_to_connect_wifi":"To Connect","smart_plug_auto_go_to_next_step_tip":"After the connection is successful, it will automatically enter the next step.","smart_plug_max_link_number_tip":"Can link up to {s1} devices","smart_plug_link_device_title":"Link Device(s)","smart_plug_schedule_link_conflict_tip":"The functions below will be disabled after the device is linked","smart_plug_timer_title":"Countdown","smart_plug_jog_switch_title":"Inching","smart_plug_timing_title":"Schedule","smart_plug_add_link_title":"Link New Device(s)","common_state":"State","smart_plug_switch_to_state_after_timer_tip":"After countdown, switch to","smart_plug_jog_switch_tip":"The power will be cut off automatically each time after the power\'s on for a preset time.","smart_plug_switch_to_state_after_timing_tip":"Turn the smart plug","common_only_once":"Only Once","smart_plug_task_conflict_title":"Task Conflict","smart_plug_task_conflict_tip":"Conflicts with the following tasks","smart_plug_linked_devices_title":"Linked Device(s)","smart_plug_no_device_to_link_tip":"There are no devices that can be linked","common_to_purchase":"To Purchase","smart_plug_link_tip":"State and duration of the linked jack switch when the set type is detected within the scheduled time.","common_power_on_state":"Power-on State","smart_plug_device_restart_state_tip":"Set the device restart state","common_power_off_title":"Power off","common_power_on_title":"Power on","smart_plug_follow_state_tip":"Follow the State Before Power off","smart_plug_log_title":"Switch Log","smart_plug_connected_network_power_on_tip":"When the network is connected and the socket is powered on","smart_plug_connected_network_power_off_tip":"When the network is connected and the socket is powered off","common_light":"Light On","common_no_light":"Light Off","push_mute_tip":"Pause Push Notifications","smart_bell_quick_reply_title":"Quick Reply","smart_bell_quick_reply_click_to_add_tip":"Click the add button to record a quick reply.","common_chime":"Chime","common_install_guide":"Installation Guide","common_doorbell":"Doorbell","smart_bell_set_volume_title":"Set Volume","smart_bell_set_audio_title":"Set Audio","common_visitor":"Visitor","common_qsg_title":"Quick Start Guide","smart_bell_power_on_with_adapter_tip":"Power on with Power Adapter","smart_bell_power_on_next_step_tip":"Powered on, Next Step","wifi_frequency_tip":"Wi-Fi frequency band supported by this device","smart_bell_chime_config_tip":"Is there a Reolink Chime that needs to be connected?","smart_bell_chime_config_step_1":"Plug Chime into socket.","smart_bell_power_supply_title":"Power Supply","smart_bell_power_supply_cable":"Power Over Ethernet","smart_bell_power_supply_wiring":"Use existing doorbell wiring","smart_bell_power_supply_adapter":"Use power adapter","device_upgrade_att_title":"This device requires firmware update","device_upgrade_att_message_1":"As AT&T will shut down its 3G network service by Feb.22,2022, the Go/Go PT devices using AT&T SIM card may not be able to access the network.","device_upgrade_att_message_2":"If your Go/Go PT device uses an AT&T SIM card, please copy the link below into your browser, and download and update the firmware following the instructions.","device_upgrade_att_message_3":"If the AT&T 4G network is not available in your region, please switch to another provider.","privacy_mask_screenshot_failed_des":"Please check the device\'s live view before setting the zones.","base_sd_not_formatted_title":"Not Formatted","base_sd_not_formatted_des":"You need to format the storage device before you can normally use it.","reset_all_settings":"Reset All Settings","reset_all_settings_dialog_title":"Reset all settings to the factory defaults?","reset_all_settings_dialog_des":"All settings will be restored to the factory defaults, including:","reset_all_settings_dialog_des_option1":"Clearing masked zones","reset_all_settings_dialog_des_option2":"Restoring watermark position","reset_all_settings_dialog_des_option3":"The device may also be restarted during the process. Are you sure you want to reset all settings?","illegal_login_lockout_title":"Illegal Login Lockout","illegal_login_lockout_des":"After a series of failed attempts within 3 minutes, your account will be temporarily locked for a few minutes.","lock_account_error":"{s1}, {s2} attempts left before your account is locked","locked_account_error":"{s1}. Account locked. Please try again in {s2} minutes","common_expand":"Expand","common_collapse":"Collapse","device_upgrade_att_message_4":"If your Go/Go PT device does not use an AT&T SIM card","device_upgrade_view_instruction_title":"View the instruction","device_upgrade_donot_remin_title":"Don’t remind me again","device_upgrade_att_message_5":"If you have any questions, please contact the Reolink support team.","fixed_frame_rate":"Fixed Frame Rate","fixed_frame_rate_des_open":"On, fluency first","fixed_frame_rate_des_off":"Off, clarity first","frame_rate_seq_des":"Choose a multiple of frame rate","ai_track_method":"Tracking Method","ai_track_digital":"Digital Tracking","ai_track_pt_first":"Pan/Tilt Tracking First","ai_track_digital_first":"Digital Tracking First","bino_stitch_setting_title":"Image Stitching","bino_stitch_setting_distance_des":"Fine-tune the distance to achieve the best effect","bino_stitch_setting_distance_title":"Distance (m)","bino_stitch_setting_position_des":"Fine-tune the image position","bino_stitch_setting_horizontal_des":"Horizontal","bino_stitch_setting_vertical_des":"Vertical","bino_switch_player_mode_title":"Change the Images","bino_switch_wide_angle_picture_title":"Wide-Angle Image","bino_switch_track_picture_title":"Tracking Image","bino_switch_both_picture_title":"Dual Images","ptz_detect_area_guard_point_des":"The detection zone will be effective only after the monitor point is set.","ptz_guard_point_not_set_des":"The monitor point hasn\'t been set.","common_deleting":"Deleting","ptz_add_cruise_poing_title":"Add Patrol Point","ptz_edit_cruise_poing_title":"Edit Patrol Point","common_number_reach_max_tip":"No more can be added.","reolink_network_service_enable_tip":"This feature requires Reolink Network Service to be enabled.","reolink_network_service_title":"Reolink Network Service","reolink_network_service_function_title":"Reolink Network Service offers the following functions:","reolink_network_service_function_des1":"Extranet preview and playback","reolink_network_service_function_des2":"Email and FTP are excluded as their servers are not built by Reolink.","reolink_network_service_set_server_tip":"Why does a server need to be set up?","reolink_network_service_disable_tip":"You can only access the device through the LAN after disabling this function. Are you sure?","common_sort":"Sort by","cloud_plan_purchase_sequence_title":"Purchase Time","cloud_plan_remain_days_title":"Remaining Days","cloud_plan_remain_space_title":"Remaining Capacity","timelapse_estimated_video_duration_title":"Estimated video length:","timelapse_estimated_video_size_title":"Estimated file size:","timelapse_duration_title":"Duration","timelapse_file_format_title":"Format","timelapse_video_duration_size_title":"Video length/file size:","common_file":"File","common_login_error_max_ip_number":"Maximum number of IP reached.","common_login_error_denied":"Login denied.","common_login_error_locked":"Your account has been locked. Please try again later.","common_login_error_max_user_number":"Maximum number of concurrent users reached.","common_no_overwrite":"No overwrite","common_overwrite_oldest":"Overwrite the oldest files","common_days_title":"{s1} days","alarm_input_title":"Alarm Input","alarm_input_config_title":"Configure Alarm Input","alarm_output_title":"Alarm Output","alarm_output_config_title":"Configure Alarm Output","alarm_input_setting_title":"Set Alarm Input","alarm_output_setting_title":"Set Alarm Output","common_delay":"Delay","alarm_output_schedule_title":"Alarm Output Schedule","alarm_input_current_channel_title":"Alarm Input for Current Channel","alarm_schedule_ipc_title":"IP Camera Alarm Schedule","alarm_input_schedule_title":"Alarm Input Schedule","common_timer_schedule_title":"Timer Schedule","alarm_output_channel_title":"Alarm Output Channel","common_overwrite_all_title":"Overwrite all","record_retained_days_title":"Only keep recordings of {s1} days","login_lock_tip":"{s1}. Your account will be locked after too many failed attempts.","add_device_connect_smart_plug_title":"Connect to Smart Plug","smart_plug_make_sure_light_off_title":"No","smart_plug_make_sure_light_on_title":"Yes","add_device_connect_smart_plug_ap_title":"Connect to Smart Plug\'s Wi-Fi","common_connecting":"Connecting","smart_plug_in_link_title":"In linkage","common_time_point":"At","common_repeat":"Repeat","smart_plug_position_and_name_title":"Outlet","iot_select_device_title":"Select Device","iot_config_schedule_title":"Set Schedule","iot_select_alarm_type_title":"Set Conditions","iot_select_action_title":"Set Action","iot_link_max_number_tip":"No more device can be linked.","iot_alarm_black_to_color_title":"When Image Turns Colorful","iot_alarm_color_to_black_title":"When Image Turns Black & White","common_zoom_in_title":"Zoom in","common_schedule_time_page_iot_action_tip":"Set enable and disable time","common_device_date_and_time_title":"Date and time of this device","iot_link_guide_title":"How to Link Device","smart_plug_reset_tip_1":"Please power up the plug.","common_gps_signal_weak_tip":"Current GPS signal is weak.","common_gps_privacy_purpose_tip":"Used to assist in positioning and finding cameras.","common_gps_privacy_request_tip":"{s1} requests to use location services to assist in positioning, finding cameras, and accessing Wi-Fi information.","tooltip_EditPresetPoint":"Adjust Preset Point","ptz_guard_point_return":"Return to Monitor Point","calibration_button_title":"Calibration","snap_refresh":"Refresh the image","timelapse_crops_scene":"Crops","common_password_contain_type_number_tip":"At least {s1} types of characters","common_password_contain_type_tip":"Password must contain at least {s1} of the following:","comon_numbers":"Numbers","common_uppercase_letters":"Uppercase letters","common_lowercase_letters":"Lowercase letters","common_password_special_characters":"Special characters: !#$%&()\'*+-,:;`./;<=>?@[]^_{}|~ (or a space)","common_password_weak_tip":"Password should include characters from at least 3 different categories: digits (0-9), uppercase letters (A-Z), lowercase letters (a-z), and symbols.","doorbell_default_voice_msg_1":"Hi, we will be right there. Please wait a moment.","doorbell_default_voice_msg_2":"Sorry, we are not home today.","doorbell_default_voice_msg_3":"Hi, please leave the packege at the door. We will get it later.","facebook_group_title":"Facebook Group","facebook_group_des":"A group where sharing videos and pics is more common.","forum_title":"Reolink Community","forum_des":"A forum mainly for support & troubleshooting.","reddit_title":"Reddit","reddit_des":"A sub where people love to DIY and tech discussion.","timelapse_day_night_switch_msg_client":"When the sun rises or sets, the color mode of the videos may change. To continuously capture videos in Color Mode or in Black & White Mode, go to Settings > Camera > Display > Day and Night. (Note: This change will also apply to live view.)","battery_ipc_power_saving_title":"Battery Camera Power Saving Mode","battery_ipc_power_saving_message":"To save power, battery cameras will be disconnected in 5 minutes if there is no operation.","hardware_decoding_first_title":"Hardware Decoding First","hardware_decoding_message":"Before decoding with software, decoding with hardware first.","ai_track_pt":"PT","map_title":"Map","map_description":"Add markers such as animal information and device used.","map_add_camera_first_tip":"Please add a camera first","map_marker_title":"Marker","map_marker_description_title":"What is Marker","map_marker_description_1":"Mark the location of Keen cameras and animals on map.","map_marker_description_2":"Long press to add a marker","map_marker_description_3":"Tap the marker to view contents","common_creation_time":"Creation Time","map_add_marker_title":"Add Marker","map_edit_marker_title":"Edit Marker","chime_qsg_title":"How to Use Chime","chime_qsg_press_button_title":"Press the doorbell button","chime_qsg_sync_feedback_title":"Get feedback from Chime","chime_qsg_no_sound_light_title":"No response?","chime_qsg_sync_descrition_1":"1. Make sure Chime and the doorbell are powered on;","chime_qsg_sync_descrition_2":"2. Press the doorbell button again;","chime_qsg_sync_descrition_3":"3. If there is still no response, please long press the settings button on Chime to retry.","chime_qsg_sync_descrition_4":"4. If it still doesn\'t work, please contact our technical support.","common_installation_method_title":"Installation Method","bell_different_guidelins_installation_title":"There are different guidelines for different installation methods.","common_voice_message_title":"Voice Message","bell_auto_reply_title":"Auto-Reply","bell_auto_reply_waiting_time_title":"Waiting Time","bell_auto_reply_waiting_time_description":"How soon the auto-reply will be triggered after the doorbell rings","common_right_away":"Right away","bell_auto_reply_delete_description":"This message has been set to auto-reply, and there will be no auto-reply voice after deletion.","common_message":"Message","bell_status_led_auto_always_light_description":"Status lights will provide different feedback on person detection, button press, and two-way talk.","image_push_device_support_description":"This device can send image push notification","ptz_guard_point_set":"Set Current Position as Monitor Point","ptz_guard_point_returned":"Returned to monitor point","ptz_guard_point_interval_title":"Interval (seconds)","wifi_reset_network_btn":"Reset Network","common_telephoto_image":"Telephoto Image","common_delete_account":"Delete Account","live_bino_nvr_resolution_tip":"The output resolution of this camera for single-screen preview is 4096 X 1536, which exceeds the maximum resolution supported by this NVR. \\n Please set the resolution of this camera.","common_gallery_view":"Gallery View","common_list_view":"List View","common_already_setup_device_tip":"Device already been set up? Access it.","smart_plug_reset_description":"After pressing and holding the reset button for 5 seconds, release the button to confirm whether the indicator light is flashing.","smart_plug_no_flash_tip":"No flashing?","common_connect_device":"Connect the Device","common_system_wifi_setting_tip":"Find Wi-Fi settings in system settings","smart_plug_connect_ap_tip":"Find and connect to \\"Reolink_Smart_Plug_{s1}\\" Wi-Fi","smart_plug_continue_setting_tip":"Return to continue setting","common_inspecting":"Inspecting...","iot_connect_ap_failed_tip_1":"Make sure that you have connected to the Wi-Fi of this IoT device.","iot_connect_ap_failed_tip_2":"Check whether the device has been successfully reset, and make sure that the device is sending out Wi-Fi signals.","iot_connect_ap_failed_tip_3":"Turn off the VPN to avoid its possible effects on the link between the IoT device and the Reolink app.","iot_connect_ap_failed_tip_4":"If the suggestions above are not helpful to you, please contact Reolink support.","common_audio":"Audio","chime_volume_setting_tip":"1. The chime has 5 levels of volume (mute, low, moderate, loud, and very loud). \\n2. When the volume is set to \\"low\\" or \\"very loud\\", there will be two beeps. \\n3. When the volume is set to \\"mute\\", the chime will only flash.","chime_audio_setting_tip":"Press the ringtone button to change ringtones","bell_make_sure_powered_on_tip":"Please make sure the doorbell is powered on and the network is available.","common_library":"Library","download_auto_cancel_after_quitting_description":"Downloading files. Quitting now will cancel your download tasks. Are you sure you want to quit?","plan_not_purchased_tip":"Plan not purchased","device_add_login_qrcode_scan_beep_clue":"When you hear a beep sound, Wi-Fi is successfully connected.","cloud_plan_cancel":"Cancel Plan","cloud_plan_schedule_description":"Set trigger conditions for uploading videos to the Cloud.","common_quit":"Quit","cloud_plan_history":"Video History","common_expire_time":"Expire Time","common_unlock":"Unlock","lockscreen_when_client_starts_title":"Lockscreen password required when Client starts","common_storage_time":"Storage Time","resolution_not_supported_tip":"Resolution not supported. Please adjust the resolution of the camera.","ai_track_stop_description":"Time to Stop Tracking","ai_track_object_stops":"Object Stops","ai_track_object_disappers":"Object Disappears","two_factor_authentication":"Two-Factor Authentication","authenticator_code_title":"Authenticator Code","backup_code_title":"Backup Code","authenticator_code_description":"Enter the 6-digit code you saw in the third-party authenticator app.","backup_code_description":"Enter one of your 8-digit backup codes.","two_factor_authentication_send_email_description":"Send authenticator code to this email address","two_factor_authentication_code_email_not_received_title":"Didn\'t receive an email?","common_verify":"Verify","verification_failed_tip":"Verification failed. Please try again.","gdpr_select_server_tip":"Please select a regional server that provides network services for this device. Network services involved:","device_remote_serve":"Services for Remote Access to Devices","auto_frame_rate_title":"Auto Frame Rate","common_normal":"Normal","frame_rate_mode_title":"Frame Rate Mode","common_verifying":"Verifying…","common_send":"Send","common_device_added":"Device added","common_motion":"Motion","common_nighttime":"Nighttime","bell_push_notification_tip":"Someone rang the {s1}.","common_smart_plug":"Smart Plug","comomn_drag":"Drag","common_power":"Power","forget_pw_page_cellular_device_tip":"2. After resetting, network connection info, device login password, and other related info will be erased and need to be reconfigured.","bell_install_with_poe_title":"Power over Ethernet","bell_install_with_wiring_title":"How to power video doorbells using power cables?","bell_install_poe_title":"Install PoE Video Doorbell","bell_install_wifi_title":"Install Wi-Fi Video Doorbell","bell_install_prepare_title":"Prepare to Install","bell_install_prepare_tip":"Use a network cable of appropriate length. Plug one end of the network cable into the PoE port of your NVR or other PoE devices.","bell_install_find_place_title":"Find a Place for Your Doorbell","bell_install_find_place_tip":"Find a proper place for your doorbell. Do not include walls in the camera view. The walls will reflect infrared light and may cause a blurry image.","bell_install_height_tip":"Choose a proper height for your doorbell. You are recommended to install the doorbell 1.2m (48\'\') high off the ground, in order to get an ideal camera view.","bell_install_start_title":"Start to Install","bell_install_wedge_function_tip":"Check the camera view to see whether the wedge should be used to adjust the field of view. If a person standing in front of your door is near the edge of the camera\'s field of view, use the wedge.","bell_install_use_wedge_tip":"Use the wedge","bell_install_not_use_wedge_tip":"Don\'t use the wedge","bell_install_drill_hole_title":"Find the Place to Drill Holes","bell_install_drill_hole_tip":"Put the mounting hole template on the wall and find the place to drill holes as shown. (Note: The places of drilling differ when you use or don\'t use the wedge.)","bell_install_wedge_title":"Install the Wedge","bell_install_wedge_tip":"Fix the wedge to the wall. If the wall is soft, screw the wedge to the wall directly. If the wall is hard, insert drywall anchors first. Drill a hole through the wall in the hollow part of the wedge to run the network cable.","bell_install_use_mounting_plate_tip":"Fix the mounting plate to the wall. If the wall is soft, screw the mounting plate to the wall directly. If the wall is hard, insert drywall anchors first. Drill a hole through the wall in the hollow part of the mounting plate to run the network cable.","common_soft_wall_title":"Soft wall","common_hard_wall_title":"Hard wall","bell_install_mounting_plate_title":"Install the Mounting Plate","bell_install_mounting_plate_tip":"Screw the mounting plate into the wedge.","bell_install_connect_cable_title":"Connect Network Cable to Video Doorbell","bell_install_connect_cable_tip":"Run the network cable through the wall and connect it to the video doorbell.","bell_install_fix_in_mounting_plate_title":"Fix Video Doorbell to Mounting Plate","bell_install_fix_in_mounting_plate_tip":"Follow the two steps above to fix the video doorbell.","common_finish":"Installation Finished","bell_install_finish_tip":"Press the doorbell button and check whether the doorbell and chime can ring. Check the live view on your phone.","bell_install_finish_error_title":"Why is the doorbell status light white?","bell_install_use_doorbell_wiring_title":"Use Existing Doorbell Wiring","bell_install_use_adapter_title":"Use Power Adapter","bell_install_select_network_connection_title":"Select Your Network Connection","bell_install_select_network_connection_tip":"Select a way to connect the video doorbell to your network, via Wi-Fi or a network cable.","bell_install_use_wifi_title":"Wi-Fi","bell_install_use_network_cable_title":"Network Cable","bell_install_prepare_network_cable_tip":"Get a cable of appropriate length and attach one end of the network cable to the router.","bell_install_find_existing_bell_title":"Find Your Existing Doorbell & Chime","bell_install_find_existing_bell_tip":"Check whether the existing doorbell system is working. Push the button of the existing doorbell and find the chime following the sound.","bell_install_find_existing_bell_note":"Note: If the existing doorbell system doesn\'t work, please contact a qualified electrician. Or, you can back to the first step and use a power adapter.","bell_install_turn_off_power_to_existing_bell_title":"Turn off Power to Doorbell","bell_install_turn_off_power_to_existing_bell_tip":"Power off the existing doorbell under the guidance of a qualified electrician. Press the doorbell button again and make sure that the chime does not ring.","bell_install_electrical_work_warning_tip":"Contact Qualified Electricians!","bell_install_electrical_work_warning_note_1":"DO NOT directly connect the video doorbell to the mains. Otherwise, it may cause fires, electric shocks, or other damages or loss. If you are inexperienced in working with electrical wires, please contact a qualified electrician.","bell_install_electrical_work_warning_note_2":"This video doorbell supports a voltage of 12-24V AC.","bell_install_i_got_it_title":"I got it.","bell_install_check_voltage_of_chime_title":"Check the Voltage of the Existing Chime","bell_install_check_voltage_of_chime_tip":"Remove the cover from your existing chime. Use a voltmeter to verify whether the existing doorbell wiring is applicable to the video doorbell. If not, you need to bypass the existing chime. This video doorbell supports a voltage of 12-24V AC.","bell_install_check_voltage_of_chime_note":"Note: \\n 1. The existing chime will no longer ring. \\n 2. If you are inexperienced in working with electrical wires, please contact a qualified electrician.","bell_install_check_voltage_of_chime_error_title":"My wiring is different from the picture.","bell_install_remove_existing_bell_title":"Remove the Existing Doorbell","bell_install_remove_existing_bell_tip":"Put back the cover of the existing chime after checking the voltage. \\n1. Uninstall the old doorbell button; \\n2. Use the extension wires to extend the original wires for new doorbell; \\n3. Use the provided wires connectors to connect the wires.","bell_install_connect_bell_to_existing_wiring_title":"Wire Up the Video Doorbell","bell_install_connect_bell_to_existing_wiring_tip":"Connect the existing power cable to the video doorbell.","bell_install_connect_bell_to_wiring_tip":"Connect the power cable to the video doorbell.","bell_install_connect_bell_to_existing_wiring_note":"Note: Make sure that the Y-shaped plugs are separate from each other.","bell_install_connect_power_and_network_cable_title":"Connect Power Cable and Network Cable to the Video Doorbell","bell_install_connect_power_and_network_cable_tip":"Run the network cable through the wall. Connect the network cable and the existing power cable to the video doorbell.","bell_install_connect_standard_power_and_network_cable_tip":"Run the network cable through the wall. Connect the network cable and the power cable to the video doorbell.","bell_install_restore_power_title":"Restore Power","bell_install_restore_power_tip":"Check whether the video doorbell is installed properly. If so, restore the power.","bell_install_use_adapter_prepare_tip":"Place the power adapter near the door and set up the cables. Do not plug the adapter into the power socket at this point.","ai_animal_funcation_description":"Supported by PIR and intelligent detection technologies, the camera detects animals and people more efficiently. You can get alerts and filter playbacks more accurately.","common_locating":"Locating","common_location":"Location","map_view_on_map_title":"View on Map","review_invitation_tip":"Please rate if you like this app. \\n Thanks for your support!","common_dislike":"Dislike","common_like":"Like","common_not_now":"Not Now","common_rate":"Rate","light_pause_alarm_title":"Alarm Pause","light_pause_alarm_no_pause_title":"No Pause","light_pause_alarm_minutes_title":"For {s1} minutes","light_pause_alarm_forever_title":"Pause Forever","light_mode_title":"Light Mode","light_smart_night_vision_mode_tip":"When the ambient light level is lower than the threshold, automatically turn on the light once the PIR sensor detects a motion.","light_night_vision_always_on_tip":"Turn on the light automatically when the ambient light level is lower than the threshold.","light_schedule_mode_tip":"Turn on the light as scheduled.","light_ambient_light_threshold_title":"Ambient Light Threshold","light_ambient_light_threshold_tip":"Set a higher value and the light will be turned on earlier.","light_delay_turn_off_duration_title":"Light Duration","light_delay_turn_off_duration_tip":"Time the light stays on after the motion ends:","common_alarm_audio":"Alarm Audio","light_alarm_audio_tip":"Alarm audio can only be activated by linkage actions.","light_alarm_audio_use_tip":"Use the following audios in linkage actions.","light_audio_used_for_link_tip":"This audio is used for linkage-activated alarms. If deleted, it will be replaced by default audio.","light_setting_effect_light_mode_tip":"This setting will affect the light activation condition in motion light mode.","light_alarm_sensitivity_title":"Motion Detection Sensitivity","common_if":"If","common_then":"Then","common_action":"Action","link_action_schedule_tip":"Select a day and schedule when to enable or disable it on that day.","common_always":"Always","common_no_device":"No device","cloud_plan_switch_overwrite_tip":"The storage used by this device in the current plan is more than the storage available in the new plan \\n When you change the plan, videos will be automatically overwritten according to the upload time. The earliest videos would be overwritten first.","common_pair":"Pair","chime_sync_tip":"The video doorbell and the chime in the same pack are paired by default. If you need to pair the chime again, follow these steps: \\n 1. Power off the chime. \\n 2. Power on the chime with the setting button pressed to turn on the pairing mode. Keep pressing the button for 5 seconds until the chime status light is on. \\n 3. Press the doorbell button once. If the chime status light flashes twice and the chime beeps twice, the chime is successfully paired.","chime_reset_tip":"1. Power off the chime. \\n2. Power on the chime with the volume button pressed to reset it. Keep pressing the button until you hear 10 slower beeps followed by 4 faster beeps, which means the chime is successfully reset.","cloud_test_error_10004":"Incorrect parameter.","cloud_test_error_10008":"Busy. Only one test command can be processed at a time.","cloud_test_error_30":"Memory allocation error.","cloud_test_error_31":"Unsupported command.","cloud_test_error_32":"Command timed out.","cloud_test_error_35":"Failed to parse JSON parameters. Permission required.","cloud_test_error_37":"Token expired.","cloud_test_error_38":"Invalid token.","cloud_test_error_39":"Token required.","cloud_test_error_40":"Account disabled.","cloud_test_error_42":"Signature expired.","cloud_test_error_43":"Cloud storage is currently not available.","cloud_test_error_44":"Processing the last task.","cloud_test_error_45":"Configuration not initialized.","cloud_test_success_title":"Test succeeded.","cloud_test_success_tip":"A 3-second test video was successfully uploaded to the Cloud storage.","cloud_test_error_46":"Cloud recording was not on.","cloud_storage_date_option":"Specific Time","link_tip":"If device A meets a certain condition, then device B will perform a specific action.","light_night_vision_always_on_luminance":"Usual Brightness","light_night_vision_always_on_alarm_luminance":"Motion-Triggered Brightness","common_schedule_settings_page_tip":"Select time to schedule when to enable or disable it.","cloud_plan_title":"Plan","common_beta_function":"Beta Feature","device_switch_plan_tip_current_plan":"This device has been added to","device_switch_plan_tip_target_plan":"Switch the device\'s plan to","horizontal_tracking_range_title":"Horizontal Tracking Range","horizontal_tracking_range_tip":"Limit the horizontal range of tracking.","horizontal_tracking_range_location_rules":"Cannot use the same position to set the two ends. Please try again.","common_confirm_next":"Confirm. Next.","smart_battery_mode":"Smart Battery Mode","smart_battery_mode_tip":"Automatically apply different settings for continuous recording according to battery levels to extend battery life.","smart_battery_mode_des1":"The PIR alarm events will be recorded at full frame rate regardless of battery levels.","smart_battery_mode_des2":"With the smart battery mode off, continuous recording will also be disabled when the battery level is lower than or equal {s1}.","common_low_frame_rate":"Low Frame Rate","common_full_frame_rate":"Full Frame Rate","common_power_on_tip":"Please power up the device.","light_wizard_no_light_feedback_title":"No status light feedback?","common_connect_device_wifi":"Connect to the device\'s Wi-Fi","add_device_light_connect_ap_tip":"Find and connect to the Wi-Fi of \\"Reolink_Floodlight_{s1}\\"","iot_link_add_action_title":"Add Action","audition_button_sound_testing":"Testing","pw_error_page_detect_device_just_reset":"Successfully reset. Start the initial setup for your device.","push_delay_title":"Delay Push Notifications","email_delay_title":"Delay Email Alerts","push_and_email_delay_time_title":"Delay Time","push_delay_open_tip":"When this is on, the delivery of push notifications will be delayed. Are you sure to turn this on?","email_delay_open_tip":"When this is on, the delivery of email alerts will be delayed. Are you sure to turn this on?","common_multiSecs":"Sec(s)","common_rich_notification":"Rich Notification","common_rich_notification_des":"Preview the detected event with a snapshot in the push notification.","common_rich_notification_learn_more":"This device supports rich notification.","device_login_page_connect_failed_tip":"Please make sure your device is powered on and connected to a stable network.","port_setting_rtsp_des":"When disabled, cannot access the device via ONVIF or other protocols.","hdd_config_page_device_restore_sure_tip":"Device will delete all the recording files and reboot. Continue?","frame_rate_model_auto_tip":"Use variable frame rate. Ensure clarity by adjusting the frame rate (NOT suitable for fast-moving objects).","frame_rate_model_fixed_title":"Constant","frame_rate_model_fixed_tip":"Use constant frame rate. Prioritize smoothness.","frame_rate_model_normal_title":"Gradual","frame_rate_model_normai_tip":"Use variable frame rate. Ensure clarity by adjusting the frame rate in gradual steps (suitable for fast-moving objects).","copy_device_settings_title":"Copy to Other Devices","copy_device_settings_tip":"Apply the same settings to the same models.","clear_horizontal_tracking_setting_tip":"Are you sure to clear the settings of horizontal tracking range?","iot_page_date_tip":"The device\'s date and time","common_threshold":"Threshold","auto_switch_black_or_white":"Auto Switch of Color Modes","video_noise_reduction":"Noise Reduction","live_page_toolbar_ptz_3D_zoom":"3D Zoom","live_page_toolbar_ptz_3D_zoom_tip":"Let the camera automatically focus on the area you drew.","forget_pw_page_erase_info_tip":"2. After resetting, the device information will be erased.","common_not_support_device":"Device type mismatch.","installation_position_lifting":"Ceiling","installation_position_hanging":"Wall","installation_position_standing":"Desktop","common_image_layout_title":"Image Layout","image_model_expansion":"Expansion","image_model_artwork_master":"Fisheye","common_image_layout_switch_tip":"The settings of privacy mask, detection zone, and object size will be cleared after changing the image layout.\\nDevice will reboot. Are you sure to continue?","image_model_expansion_switch_tip":"The settings of privacy mask, detection zone, and object size will be cleared after changing the configuration. Are you sure to continue?","image_model_expansion_switch_tip2":"The settings of privacy mask, detection zone, and object size will be cleared after rotating the image.","common_rebooting_tip":"Rebooting. Please wait…","image_rotation":"Image Rotation","click_refresh":"Click to refresh","expansion_model_180":"Dual Panoramic View","expansion_model_four_view":"Quad View","expansion_model_cylindrical_view":"Cylindrical View","expansion_model_360":"Defished View","expansion_model_hemispheric_view":"Hemispheric View","common_image_layout_title2":"Image Layout Settings","common_image_layout_tip":"Customize image layout settings to meet your needs.","common_week_sunday_abbr":"S","common_week_monday_abbr":"M","common_week_tuesday_abbr":"T","common_week_wednesday_abbr":"W","common_week_thursday_abbr":"T","common_week_friday_abbr":"F","common_week_saturday_abbr":"S","wan_abbr":"WAN","wan_full_name":"Wide Area Network","lan_abbr":"LAN","lan_full_name":"Local Area Network","version_update_hint":"Update Needed","version_update_hint_tip":"To use the new features of Reolink Client, please update to the latest version.","current_version":"Current Version","latest_version":"Latest Version","new_function":"What\'s New","optimization_function":"What\'s Improved","wide_angle_fluent":"Wide-Angle, Fluent","tracking_fluent":"Tracking, Fluent","wide_angle_clear":"Wide-Angle, Clear","tracking_clear":"Tracking, Clear","telephoto_fluent":"Telephoto, Fluent","telephoto_clear":"Telephoto, Clear","floodlight_title":"Floodlight","configuration_clear_tip":"Clearing the configuration...","configuration_clear_failed_tip":"Failed to clear the configuration. Please try again.","audio_name_rule1":"The first character cannot be space.","jump_system_settings":"Go to System Settings","live_floodlight_once_tip":"Tap to turn on the floodlight. It will turn off automatically in {s1}s if there is no motion detected.","remote_settings_floodlight_page_func_intro":"Turn on floodlight at night for higher-quality color image.","remote_settings_floodlight_page_light_off":"Floodlight Off","remote_settings_floodlight_page_light_on":"Floodlight On","remote_settings_floodlight_page_alarm_light_tip":"Floodlight will turn on automatically when alarm is triggered at night, and turn off after a while.","remote_settings_floodlight_page_auto_on_preview_description":"Floodlight auto turns on when viewing live feed and turn off afterwards.","remote_settings_floodlight_page_smart_night_vision_description":"Floodlight auto turns on when alarm event is detected.","remote_settings_floodlight_page_night_vision_always_on_description":"Floodlight stays on in night mode.","remote_settings_floodlight_page_night_vision_off_description":"Floodlight stays off in night mode.","remote_settings_floodlight_page_timing_always_on_description":"Floodlight stays on at scheduled time in night mode.","pc_transpond_data_use_up_des":"No data remaining in the view plan(s) of the device\'s admin account. Please log into it on {s1} App to check details or add more.","installation_position_title":"Select an Installation Method","common_image_layout_restore_tips":"You want to restore the default image layout settings?","common_image_layout_restore_des":"The results of restoring default settings include:","expansion_model_two_view":"Dual View","gesture_operated_switch_tips":"Tap here, then use one or two fingers to control the view.","common_image_layout_switch_tip1":"The settings of privacy mask, detection zone, and object size will be cleared after changing the image layout. \\n Device will reboot.","system_info_terms_and_policies_tips":"Please open the following links in your browser or scan the QR codes to read the terms and policies.","system_info_copyright":"Copyright © {s1} {s2}. All Rights Reserved.","common_email_security_protocol_close_tips":"We recommend enabling SSL/TLS to secure data transfer. Are you sure to disable it?","common_ftp_open_tips":"Data transfer will not be encrypted when using FTP. We recommend using it on your home and work networks, but not public ones. Or, you can enable FTPS on this device and on FTP server to secure data transfer. Are you sure to enable FTP?","common_ftps_title":"Don\'t allow plain unencrypted FTP.","common_ftps_des":"To use encrypted data transfer, please configure FTPS on FTP server.","common_push_open_terms_and_policies_sure_tips":"I understand that {s1} will collect device alerts and device information. Such information is only used for {s2} App to push device alerts to me.","common_upnp_title":"UPnP","common_upnp_open_tips":"When UPnP is enabled, the device\'s ports will be opened in the higher level network. We recommend using it on your home and work networks, but not public ones. Are you sure to enable UPnP?","common_port_settings_title":"Server Settings","common_server_title":"Basic Service","common_server_des":"{s1}\'s basic network services. When disabled, you cannot access devices via {s2} Client/App.","common_rtmp_title":"RTMP","common_rtmp_des":"Audio and video communication services based on RTMP between devices and Flash Player on browsers.","common_rtmp_open_tips":"Data transfer will not be encrypted when using RTMP. We recommend using it on your home and work networks, but not public ones. Are you sure to enable RTMP?","common_http_title":"HTTP","common_http_des":"Access control services based on HTTP between devices and browsers. When HTTPS is enabled and HTTP is disabled, HTTP access will automatically jump to HTTPS.","common_http_open_tips":"Data transfer will not be encrypted when using HTTP. We recommend using it on your home and work networks, but not public ones. Or, you can use HTTPS services instead. Are you sure to enable HTTP?","common_https_title":"HTTPS","common_https_des":"Access control services based on HTTPS between devices and browsers.","common_https_open_tips":"HTTPS uses a self-signed certificate by default. You can also import your own HTTPS certificate by {s1} Client and use it. Are you sure to enable HTTPS?","common_import":"Import","common_imported":"Imported","common_http_and_https_close_tips":"When HTTP and HTTPS are both turned off, you cannot access devices via browsers. Are you sure to turn it off?","common_rtsp":"RTSP","common_rtsp_des":"Audio and video communication services based on RTSP between devices and third-party applications.","common_rtsp_open_tips":"Data transfer will not be encrypted when using RTSP. We recommend using it on your home and work networks, but not public ones. Are you sure to enable RTSP?","common_onvif":"ONVIF","common_onvif_des":"Access control services based on ONVIF between devices and third-party applications. To use ONVIF, you need to enable RTSP first.","common_onvif_open_tips":"Data transfer will not be encrypted when using ONVIF. We recommend using it on your home and work networks, but not public ones. Are you sure to enable ONVIF?","common_uid_des":"Product UID is the unique identifier of the device. You can use the UID to add device or look up device information. You can access the device on smartphones or computers via {s1} App/Client.","common_uid_switch":"Allow {s1} App/Client to access the device via WAN using UID.","common_uid_close_tips":"You\'re recommended to enable {s1} App/Client to access the device via WAN using UID for your convenient access to your device. Are you sure to turn it off?","common_uid_switch_tips":"You can find this option and set it again in \\"Settings > System > Info\\".","server_settings_change_tips":"After changing the following settings, you will log out of the device from the browser and need to log in again.","common_push_open_terms_and_policies_sure_tips2":"By continuing, I acknowledge that I\'ve read and understood the {s1} and {s2}. \\nI understand that {s3} will collect device alerts and device information. Such information is only used for {s4} App to push Reolink device alerts to me.","common_disagree_button":"Disagree","common_unpaired":"Unpaired","device_and_battery_pair_title":"Pairing the battery and the device:","device_and_battery_pair_tips1":"* Obtain the power of the battery","device_and_battery_pair_tips2":"* Use Smart Battery Mode","device_and_battery_pair_tutorial_title":"How to Pair","device_and_battery_pair_step1":"1. Find the battery ID","device_and_battery_pair_step2":"2. Input the battery ID","battery_uid_void":"invalid ID","electric_quantity_information_anomaly_tips1":"Do not enable Smart Battery Mode when getting power fails","electric_quantity_information_anomaly_tips2":"New Battery?","doorbell_volume_switch":"Doorbell Button Sound","night_vision_focus_title":"Night Mode Focus enhancement","night_vision_focus_des":"Optimize Focus in partial Night Mode situations","for_developer":"For Developer","common_webhook":"Webhook","common_webhook_des":"The webhook to receive push.","common_content":"Content","common_url":"URL","common_formatting_error":"Invalid Format","alarm_settings_installation_method_des1":"Select the actual installation method to improve detection accuracy.","alarm_settings_installation_method_des2":"Your option here will not interact with your option of installation method in live view or playback.","reset_all_settings_dialog_des_option4":"Clearing the settings of privacy mask, detection zone, and object size","common_unconfigured_network":"No network connection configured","common_configured":"Configured","common_modes_button":"Display Modes","display_modes_title":"Modes","STR_MAINMENU_SYSTEM":"System","STR_NEW_VERSION_FOUND":"New Version Found","STR_VERSION":"Version","STR_VERSION_SIZE":"Version Size","STR_DOWNLOAD_FAILED":"Download Failed","STR_CHECK_LATEST_VERSION":"Check for Latest Version","STR_TIME":"Time","STR_EXCEPTION":"Exception","STR_EXCEPT_HDFULL":"Full HDD","STR_EXCEPT_HD":"HDD Error","STR_EXCEPT_IP":"IP Conflict","STR_EXCEPT_NET":"Network Disconnected","STR_MODIFY_USER":"Modify User","STR_MOUNT_FAIL":"Failed to mount device.","STR_SCHUDULE":"Surveillance","STR_SYSTEM_SETTINGS":"System Settings","STR_NETWORK_MENU_ADVANCED_STATIC_NTP":"Network Time Protocol","STR_NETWORK_ADVANCED_FTP_EDIT_FILE_SIZE":"File Size","STR_NETWORK_ADVANCED_FTP_BUTTON_SUBFOLDER":"Subfolder by Date","STR_PLAYBACK_CUSTOM_TIPS_VOICE":"Sound","STR_TIMED":"Timer","STR_PLAN_ENABLE_ALL":"Enable All","STR_PLAN_DISABLE_ALL":"Disable All","STR_PLAN_EMAIL_VIDEO_LOSS":"Send Emails When Camera Disconnected","STR_PLAN_BUZZER_VIDEO_LOSS":"NVR buzzer goes off when camera disconnects from network.","STR_CAMERA_STATUS_TAB_STREAM":"Stream","STR_CAMERA_STATUS_TAB_ALARM":"Detection","STR_CAMERA_ALARM_COPY":"Apply to Other Cameras","STR_CAMERA_COPY_TIPS1":"Select Camera(s) To Apply Same Settings","STR_CAMERA_DISPLAY_IMAGE_SET":"Image Settings","STR_CAMERA_ALARM_NEW_OTHER_TIME":"Other Period","STR_CAMERA_ALARM_NEW_ADD_TIME":"Add Time Period","STR_CAMERA_MASK_SET_TIPS":"Drag your mouse to draw rectangles (up to {s1}) on the screen to block out specific areas.","STR_CAMERA_MD_ADD_ALL":"Add All","STR_MOUNT":"Mount","STR_MOUSE_RDOWN_TIPS3":"Don\'t show anymore.","STR_DISK_INFO_ID":"ID","STR_CAMERA_VOLUME":"Volume","STR_AI_TRACE_TITLE":"Auto Tracking","STR_IOT_LINK_ALARM_TIPS_PIR":"PIR","STR_ILLEGAL_LOGIN_DES":"You have entered an incorrect password too many times and your account is temporarily locked. Please try again later.","common_osd":"OSD","common_osd_full_name":"On-Screen Display","restore_device_osd_tips":"Restoring OSD settings","common_service_unavailable":"Sorry, this service is not available in your area.","overexposure_adjustment_mode_title":"Adjust Local Exposure","overexposure_adjustment_tips":"Select Overexposed Area","overexposure_adjustment_des":"Exposure in the selected areas will be decreased.","bell_install_bypass_chime_title":"Bypass the Existing Chime","bell_install_bypass_chime_tips1":"1. Remove the cover of the chime. Make sure that the existing wiring can provide sufficient power to the Reolink Video Doorbell, which works with a power supply of 12-24V AC, 30VA, or 24V DC.","bell_install_bypass_chime_tips2":"2. Find the jumper cable in the product box. As shown above, connect the two ends of the jumper cable to the Trans and the Front terminals of the Chime.","bell_install_bypass_chime_note1":"The old chime will not work anymore.","bell_install_bypass_chime_note2":"The bypass can fix the issues including unstable power supply to the video doorbell and abnormal sounds of the old chime.","horizontal_tracking_range_des":"No limit on horizontal tracking range by default.","doorbell_light_nighttime_des":"Auto & Always On at Night","STR_TIME_LAPSE_TOTAL_TIME_LIMIT":"The start and end time interval cannot exceed 365 days.","common_delete_device_tips1":"The {s1} View Service feature of this device will stop working once the device is deleted.","common_delete_device_tips2":"The Cloud and {s1} View Service features of this device will stop working once the device is deleted.","common_delete_device_tips3":"The Smart Home and {s1} View Service features of this device will stop working once the device is deleted.","common_delete_device_tips4":"The Cloud, Smart Home, and {s1} View Service features of this device will stop working once the device is deleted.","common_reset_device_tips1":"The Cloud feature of this device will stop working once the device is reset.","common_reset_device_tips2":"The Smart Home feature of this device will stop working once the device is reset.","common_reset_device_tips3":"The {s1} View Service feature of this device will stop working once the device is reset.","common_reset_device_tips4":"The Cloud and Smart Home features of this device will stop working once the device is reset.","common_reset_device_tips5":"The Cloud and {s1} View Service features of this device will stop working once the device is reset.","common_reset_device_tips6":"The Smart Home and {s1} View Service features of this device will stop working once the device is reset.","common_reset_device_tips7":"The Cloud, Smart Home, and {s1} View Service features of this device will stop working once the device is reset.","enhanced_night_vision_brightness_title":"Binning Mode","enhanced_night_vision_brightness_des":"Optimize image brightness in Night Mode.","wifi_5g_prefer_title":"5G Preferred","wifi_5g_prefer_des":"Preferred connection to Wi-Fi in the 5GHz band","STR_LOCAL_NETWORK_TITLE":"Local Network Settings","STR_LOCAL_NETWORK_TIP":"To avoid IP conflict, subnet of the Default Gateway must be different from the gateway address of Network Settings.","common_poe_abbr":"PoE","rated_total_power_of_power_adapter":"Total rated power (W) of power adapter","pow_realtime_routput_rtotal_rvoltage":"PoE real-time output total voltage (∆V)","pow_realtime_total_power":"PoE real-time total power (W)","poe_power_abnormal_des":"Given that the HDD and mainboard in the NVR require power, you will be notified that PoE power is abnormal when the total PoE power approaches or exceeds the rated total power of the power adapter.","common_connection":"Connection","common_power_w":"Power (W)","maximum_power_of_the_port":"Maximum power (W) of the port","poe_power_abnormal_alarm":"Alarm when PoE power is abnormal","poe_power_abnormal":"Abnormal PoE power","display_mask_title":"Display Mask","position_mask_title":"Position Mask","position_mask_des":"Position mask function added! Now the privacy mask supports synchronized movement with the image.","position_mask_add":"Create a mask by drawing a box on the preview screen.","get_battery_power_abnormal":"Have problems viewing battery percentage?","common_buy":"Buy","device_auto_disconnect_without_operation_tip1":"No operation for long. To save data, do you want to disconnect? The device [{s1}] will be disconnected automatically in {s2}s.","auto_connect_tip1":"Disable automatic disconnection and don\'t remind me again.","auto_disconnect_title":"Automatic Disconnection","auto_disconnect_des":"When enabled, the device will be disconnected automatically if not operated for 5 minutes.","common_device_not_login":"Not logged in to the device.","common_bitrate":"Bitrate","bitrate_constant":"Constant Bitrate","bitrate_variable":"Variable Bitrate","wifi_channel_prefer_title":"Wi-Fi Band Preference","which_channel_of_the_same_wifi":"Which band of the same Wi-Fi to connect","common_only_2_4g_wifi":"Only 2.4GHz","common_only_5g_wifi":"Only 5GHz","common_static_ip_address":"Choose the static IP address for stabilizing the connection between {s1} and other devices. ","common_bind_device":"Bind Device","common_learn_more_about_help_tip":"Learn more about {s1}","device_bind_to_base_help_tip":"binding your device to {s1}...","common_ftp_bind":"FTP Bind","device_bind_to_base_second_dialog_message_1":"After the binding, your device will upload recordings and time-lapse files to {s1}.","device_bind_to_base_dialog_message":"After the binding, your device will upload recordings and time-lapse files to {s1}. Are you sure to continue?","device_ftp_bind_to_base_second_dialog_message_1":"FTP bind will use the function of FTP on the device. Please do not change the configuration of FTP without care.","device_ftp_bind_to_base_dialog_message":"FTP bind will use the function of FTP on the device. Please do not change the configuration of FTP without care. Are you sure to continue?","device_bind_to_base_second_dialog_message_2":"This device has been bound to {s1}. Are you sure to continue?","common_other_base":"other {s1}","storage_medium_no_format_tip":"Storage medium has not been formatted.","device_file_not_uploaded_to_base_tip":"No upload for long","common_unbind_device_list":"Device(s) Unbound","device_failed_to_fetch_file":"Failed to access files","common_share_device":"Share Device","base_format_hdd_dialog_message":"{s1} will delete all the recording files in the HDD. Continue?","ip_connect_type_switch_des":"For a stable connection between {s1} and other devices, the static IP address is recommended. ","remote_config_record_describe_with_hdd_or_sd_card":"With the feature enabled, the camera will record videos to the SD card or {s1} for later playback.","common_storage_location":"Storage Location","storage_location_sd_card_and_base":"SD card and {s1}","common_base_2_model_name":"{s1} Safebase","common_base_2_model_abbreviation":"Safebase","hardware_encoding_alert":"Hardware decoding requires computer support to take effect. Turning this feature on or off requires to restart client. Sure you want to continue?","common_failed_to_get_info_retry_tip":"Failed to retrieve information. Please try again.","sidebar_settings_page_multi_view_stretch_display":"Multi-View Stretch","suspend_liveview_notice":"No operation for long. Live View will be paused after {s1} seconds for saving Reolink View Data.","local_record":"Local Record","local_record_des":"Use within the LAN (Recommended)","connect_nvr_bundled_camera_tutorial":"How to connect the cameras in the kit","nvr_bundled_camera_prepaired_info":"Cameras in the kit have been paired with this Wi-Fi NVR at the factory.","nvr_bundled_camera_prepaired_autoconnection":"When powered on, they will automatically connect and be added to this NVR.","nvr_wifi_settings_introduction":"How to set the WiFi on this NVR","nvr_wifi_settings_introduction_des":"After the initialization, go to Settings > Network > Wi-Fi page to set up Wi-Fi.","nvr_wifi_hotspot":"Wi-Fi on NVR","wifi_ssid_name":"Wi-Fi Name","common_invisible":"Hide","wifi_invisible_des":"After hiding, please manually input the Wi-Fi name to join this network.","common_chanel":"Channel","common_security":"Security","auto_connection_condition":"Enable this feature to automatically connect and add the paired cameras to the NVR when the cameras are powered on.","connect_nvr_wifi_hotspot_tutorial":"How to connect to the Wi-Fi on this NVR","sync_wifi_by_cable":"Sync Wi-Fi info to the device with a network cable","connect_device_to_nvr":"Connect the device to the NVR with a network cable","power_up_device":"Power on the Wi-Fi camera","nvr_wifi_hotspot_qrcode_des":"If the device does not support 5 GHz Wi-Fi, please switch to 2.4 GHz.","common_enlarge":"Zoom in","sync_wifi_to_this":"Sync Wi-Fi Info to This Device","common_switch_to":"Switch to","modify_wifi_hotspot_des":"Please make sure all devices are within the LAN before modifying the Wi-Fi configuration.","common_device_connection":"Device Connection(s)","auto_sync_des":"Modified settings will be automatically synced to the devices that are already connected to this Wi-Fi.","nvr_password":"NVR Password","common_inserted":"Inserted","common_uninserted":"Not Inserted","bitrate_mode":"Bitrate Mode","variable_bit_rate":"Variable Bitrate","constant_bit_rate":"Constant Bitrate","variable_bit_rate_des":"Control the bitrate automatically based on the complexity of the video image. If the bitrate is too low, your video may get blurred.","constant_bit_rate_des":"Use a constant bitrate to compress the video. The image quality may degrade in scenes with large differences in image complexity.","encoding_format":"Encoding Format","encoding_format_des":"Compared with H.264, H.265 is more efficient in compression and produces higher-quality videos. Correspondingly, it requires more computing power and more advanced hardware support.","local_record_switch_des":"Auto save recorded videos to the computer. Sufficient disk space is required.","common_ethernet_cable":"Network cable","common_sim":"SIM","keep_the_light_off_des":"Keep the light(s) off","night_light_alert":"Night Smart Mode","night_light_alert_des":"Automatically turn on when the camera detect an event at night.","custom_schedule":"Timer Mode","custom_schedule_des":"Keep on during the scheduled time periods.","auto_supplement_lighting":"Auto Mode","auto_supplement_lighting_des":"Automatically adapt the brightness based on ambient lighting conditions for optimal night vision.","scheduled_light_alert":"Smart Mode","scheduled_light_alert_des":"Automatically adapt the brightness for accurate detection in low-light conditions, and turn on when the camera detects an event during the scheduled time periods.","spotlight_modes":"Modes","motion_detection_des":"Detect movements by comparing changes in pixels in video images.","motion_detection_sensitivity_des":"With sensitivity set higher, the camera can detect motion of smaller objects, which may also increase false alerts. With sensitivity set lower, the camera will detect motion of bigger objects, but the chance of missing motion events may also increase. Please set the sensitivity based on the actual installation location and scene.","infrared_lights_lightness_tip":"Please adjust according to the preview at night.","firmwareUpgrade_ipc_done_des":"Please wait for a few moments before checking the upgrade status of the firmware. Client needs time to synchronize it.","edit_rule_consecutive_spaces_error":"Please do not input consecutive spaces. ","common_temporary_files_title":"Temporary Folder","common_not_support_iot_devices_tip":"The device is not supported yet.","remote_settings_interframe_space_des":"The smaller the I-frame interval, the higher the image definition and the bigger the file size. The larger the interval, the lower the image definition and the smaller the space occupied by the file.","common_email_placeholder":"Enter email address","common_preset_point_name_placeholder":"Preset point name","common_battery_pair_id_placeholder":"Input battery ID","common_pin_placeholder":"Input PIN","common_ip_or_domain_placeholder":"Input IP/domain name","common_special_character_bubble_tips1":"Only {s1} is allowed in the input field.","common_special_character_bubble_tips2":"Only {s1} and {s2} are allowed in the input field.","common_special_character_bubble_tips3":"Only {s1}, {s2} and {s3} are allowed in the input field.","common_letter":"letter","common_port_bubble_tips":"Number ranging from 1 to 65535","edit_rule_ftp_photos_or_overwrite_recordings_name_error":"{s1} is not allowed in the input field.","common_special_character_bubble_tips4":"Only {s1}, {s2}, {s3}, and {s4} are allowed in the input field.","common_spaces":"space","common_nvr_fotgetpassword_tips":"Please go to the NVR\'s settings page, select Camera, and then go to User Option to view or change the default password.","net_rsp_ftp_tls_only_err":"This server does not support FTPS.","net_rsp_ftp_del_err":"Failed to delete the file","net_rsp_ftp_rename_err":"Failed to rename the file","net_rsp_ftp_reupload_err":"Failed to re-upload the file","chime_no_sound_and_light_feedback_descrition_tip1":"1. Please make sure the {s1} and the doorbell are powered on.","chime_no_sound_and_light_feedback_descrition_tip2":"2. Wait for a few seconds and press the doorbell again.","chime_no_sound_and_light_feedback_descrition_tip3":"3. If there is no response, please {s1} it with the doorbell.","common_repair":"re-pair","common_pair_process_steps_numbers":"{s1}/{s2}","doorbell_chime_2_pair_step_1":"Plug in the {s1} to a socket.","doorbell_chime_2_pair_step_2":"Long press the setting button of the {s1}","doorbell_chime_2_pair_step_2_description":"Then, the {s1} will ring or flash.","doorbell_chime_2_pair_step_3_scanning":"Searching...","doorbell_chime_2_pair_step_3_description":"Select a {s1} to pair with the doorbell.","doorbell_chime_2_pair_step_3_failed_to_start_scanning":"Searching failed to start. Please click the button and retry.","doorbell_chime_2_pair_step_3_chime_not_scanned":"Please ensure that {s1} is powered on, and then long press the setting button of {s2}.","doorbell_chime_2_pair_step_4_pair_success":"Pairing succeeded","doorbell_chime_2_pair_step_3_pair_fail":"Pairing failed. Please try again.","common_operate_failed_try_again_toast_tip":"Operation failed. Please try again.","doorbell_chime_2_config_delete_tip":"The {s1} will be unpaired from the doorbell after deletion. Are you sure to continue?","doorbell_chime_2_config_no_chime_tip":"Pair the doorbell with a {s1} first.","doorbell_chime_2_config_number_of_pairs_tip":"A doorbell can be paired with a maximum of {s1} {s2}s.","doorbell_chime_2_config_maximum_number_of_pairs_tip":"A doorbell can be paired with a maximum of {s1} {s2}s. Please delete some before trying again.","common_tone_title":"Ringtone","doorbell_chime_2_config_sound_tone_default":"City Bird","smart_config_25_30cm_10_12inches":"25-30 cm (10-12 in)","smart_config_scan_qr_25_30cm_code_help_page_step_tip":"Please face the camera towards QR code and keep a scan distance of about 25-30 cm (10-12 in).","common_select_all":"Select All","common_deselect_all":"Deselect All","device_init_setup_connect_camera_title":"Connect the camera and sync the Wi-Fi info.","device_init_setup_wizard_synchronize_wifi_title":"Sync Wi-Fi Info","device_init_setup_wizard_synchronize_wifi_tip":"Click Sync to connect the camera to the NVR\'s Wi-Fi.","doorbell_chime_2_pair_step_4_pair_success_tip":"Press the doorbell, the {s1} will ring or flash.","device_playback_time_scale_tip":"Scroll to zoom in or out the timeline scale.","doorbell_chime_2_config_sound_tone2":"Original Tune","doorbell_chime_2_config_sound_tone3":"Piano Key","doorbell_chime_2_config_sound_tone4":"Loop","doorbell_chime_2_config_sound_tone5":"Attraction","doorbell_chime_2_config_sound_tone6":"Hop Hop","doorbell_chime_2_config_sound_tone7":"Good Day","doorbell_chime_2_config_sound_tone8":"Operetta","doorbell_chime_2_config_sound_tone9":"Moonlight","doorbell_chime_2_config_sound_tone10":"Way Back Home","doorbell_chime_2_pair_step_4_pairing":"Pairing","common_nvr_fotgetpassword":"Devices connected to NVR","device_init_setup_wifi_name_error":"5 GHz and 2.4 GHz Wi-Fi names cannot be the same.","common_chinese":"Chinese","common_reset_illustrate":"How do I reset the device?","listening_test_failed_tip":"Sound test failed.","networking_and_listening_test_failed_tip":"Network connection error. Sound test failed.","localsettings_general_downloadpath_des":"Set the storage path for playback and time-lapse files.","localsettings_general_snapshot":"Save Screenshot to","localsettings_general_screenrecording":"Save Screen Recording File to","local_record_des_2":"Auto-saving recorded videos to the computer requires adequate disk space. It is recommended to use this function within the LAN.","localsettings_general_localrecording":"Save Local Recording File to","common_chime_list":"Chime List","common_help_and_feedback":"User Feedback","doorbell_chime_2_pair_step_3_pair_fail_tip":"Something wrong with starting searching. (Another device is operating the doorbell.)","common_id_title":"ID: {s1}","alarm_settings_non_detection_area_page_title":"Non-Detection Zone","device_settings_detection_alarm_motion_tagging":"Motion Mark","edit_rule_ftp_photos_or_overwrite_recordings_name_error2":"{s1} and {s2} are not allowed in the input field.","enter_wifi_pw_failed_tip":"Password must be between 8-63 characters.","common_download_setting":"Download Settings","nvr_network_wifi_5g_settings_dfs_switch":"DFS Channels","common_setting_about_reddit_title":"Reddit","common_setting_about_reddit_hover_des":"Click to follow our {s1} account.","device_preview_unusual_link_tip":"click here","device_preview_unusual_tip":"Some system files are missing.","common_homebase_name":"Reolink Home Hub","homebase_connection_des":"Please power on {s1} and connect it to the router.","add_device_network_was_not_set":"Network Not Configured","add_device_network_not_set_des":"You need to configure Network settings for newly added or reset devices.","add_device_network_was_set":"Network Configured","add_device_select_usage_method":"Select the usage mode for device","add_device_select_usage_mode_access_homebase":"Use with {s1}","add_device_select_usage_mode_single":"Standalone Use","add_device_select_usage_mode_access_homebase_multiple_des":"Select a {s1} to use with the device","add_device_access_homebase_currlimig":"The maximum number of devices using {s1} has been reached ({s2} devices).","add_device_select_access_mode_title":"Select the method of connecting device to {s1}","common_wifi_connection":"Wi-Fi Connection","common_device_electrify_title":"Power on the device","common_device_reset_operation_des":"Press and hold the reset button on the device until you hear a voice prompt.","add_device_select_wired_connection_method_title":"Select the wired connection method for device","add_device_select_wired_connection_method1":"Method 1: Connect {s1} to the router, and connect the device to the Ethernet port on {s2}.","add_device_select_wired_connection_method2":"Method 2: Connect both {s1} and the device to the same router.","add_device_select_wired_connection_method3":"Method 3: Connect the device to a switch, and connect the switch and {s1} to the same router.","add_device_scan_qrcode_obtain_wifi_info":"Face the camera to the QR code on the phone for identifying the Wi-Fi info of {s1}.","add_device_obtain_wifi_info_sound_feedback":"I have heard the voice played by device and {s1}.","add_device_connect_homebase_failed":"Device and {s1} Connection Failed","add_device_connect_homebase_success":"Device and {s1} Connection Succeeded","device_and_homebase_on_the_same_network":"Display only devices in the same LAN as {s1}","common_notification_volume_title":"Notification Volume","common_alarm_volume_title":"Alarm Volume","device_settings_audio_homebase_as_chime_des":"Use {s1} as the Chime of Doorbell","device_settings_audio_chime_tones_title":"Chime Tones","device_settings_recording_type_title":"Recording Type","device_settings_recording_type_alarm":"Alarm Recording","device_settings_recording_type_timer":"Timer Recording","device_settings_storage_format_hdd_tip":"After formatting, all files on the hard drive will be deleted. Are you sure to continue?","device_settings_storage_format_sd_card_tip":"After formatting, all files on the SD card will be deleted. Are you sure to continue?","device_settings_storage_video_export_title":"Export Recordings","device_settings_storage_video_export_file_quantity":"Number of Files: {s1}","device_settings_storage_video_export_file_size":"File size: {s1}","device_settings_storage_video_export_tip":"Exported file size exceeds remaining storage space on the USB device.","device_settings_storage_video_export_success":"Exporting succeeded","device_settings_storage_video_export_failed":"Exporting failed, please try again.","device_settings_storage_video_export_usb_undetected":"USB device not detected","device_settings_storage_video_export_usb_no_space":"USB device storage is full.","device_settings_storage_video_exporting_tip1":"Exporting recordings. Please wait ({s1}/{s2} files exported)...","device_settings_storage_video_exporting_tip2":"Do not remove USB device during export.","device_settings_device_management_des":"Display only devices connected to {s1}","common_no_device_tip":"No Devices Found","device_settings_management_delete_tip":"Device will disconnect from {s1} after deletion. Are you sure to continue?","common_loading_punctuation":"...","device_settings_update_new_version_found_tip":"New Version Detected. Update now?\\n(Failure to update in time may result in abnormal functioning of the new firmware device.)","common_update_now":"Update Now","common_how_to_solve_link":"How to solve this?","device_init_power_on_press_and_hold_for_two_second_tip":"Press and hold the power button on the device for 3 seconds to turn on the device.","device_init_reset_press_the_button_three_times_tip":"Press the power button 3 times and wait for the voice prompt.","device_forget_password_press_the_button_three_times_tip":"1. Press the power button 3 times and wait for the voice prompt. After resetting, the device needs 1min to restart itself.","device_password_tip":"Password must contain at least two types of characters from the following: numbers, uppercase letters, lowercase letters, and special characters (including {s1} and {s2}).","device_password_error":"Incorrect format.","device_password_error_tip1":"Password cannot be username.","device_password_error_tip2":"Username cannot be root.","device_password_error_tip3":"Username cannot be admin or root.","device_name_or_password_error":"Incorrect username or password.","device_cloud_no_plan":"No plans available.","device_name_and_wide_angle":"{s1} (Wide Angle)","device_name_and_tracking":"{s1} (Tracking)","device_offline_help_led_link":"device indicator","device_offline_help_wifi_speed_test_link":"Wi-Fi signal of the device","device_offline_help_button":"report the issue","device_offline_help_4g_device_tip1":"SIM card operator and plan","device_offline_help_power_tip1":"·Please make sure to use a compatible adapter and socket, and ensure that the device is powered on.","device_offline_help_power_tip2":"·Please ensure that the device is powered on and the device switch is in the \\"on\\" position. The indicator light will illuminate when the device is waking up. You can toggle the switch a few times to confirm.","device_offline_help_switch_network_tip":"·Please try switching your phone\'s Wi-Fi and mobile data settings. Using public Wi-Fi is not advised.","device_offline_help_reboot_or_reset_device_tip":"·Please try restarting or reconfiguring the device.","device_offline_help_reboot_router_tip":"·Please try restarting the router.","device_offline_help_wifi_speed_test_tip":"·Please check {s1}. Under normal circumstances, the Wi-Fi signal strength should be at least 10Mbps or higher (with a total capacity of 100Mbps).","device_offline_help_firewall_tip":"·Please check the network firewall configuration.","device_offline_help_outer_net_tip":"·Please try turning off the VPN on your phone (if you have one).","device_offline_help_network_cable_connect_device_to_router":"·Please try using an Ethernet cable to connect the device to the router for testing.","device_offline_help_antennae_tip":"·Device with the antenna should be properly installed and the antenna tightened.","device_offline_problem_feedback_tip":"·If the problem still exists, please contact us to {s1}.","device_offline_help_sim_card_tip":"·Please check {s1}.","device_offline_help_sim_card_data_tip":"·Please check if the SIM card still has data remaining.","device_offline_help_switch_sim_card_tip":"·Please try replacing the SIM card or consider switching to another mobile carrier.","device_offline_help_view_plan_tip":"·If your device is TrackMix LTE Plus, please verify if your {s1} view plan has any remaining data. If it\'s exhausted, please recharge it before your visit.","device_offline_help_sleep_mode_tip":"·If your device is Keen Ranger PT, please ensure that the device is not in Sleep mode.","device_offline_help_lan_status_lamp_tip":"·Please examine the status light of the LAN port on the back of the NVR. If the light is not lit, please contact us to {s1}.","device_offline_help_remove_interchanger_tip":"·Please try to remove the switch if there is one between the router and NVR.","device_offline_help_plug_and_remove_network_cable_tip":"·Please try unplugging and then re-plugging the Ethernet cable between the LAN port and the router.","device_offline_help_switch_network_cable_and_router_tip":"·Please try changing an Ethernet cable or using another LAN port.","device_offline_help_switch_networking_mode_tip":"·Please check the network status on NVR GUI to verify if the gateway has been obtained (the gateway should not be 0.0.0.0). Alternatively, consider switching the networking mode to either DHCP or static IP.","device_settings_wifi_speed_test_title":"Wi-Fi Speed Test","device_settings_wifi_speed_test_des":"Check current Wi-Fi signal strength of devices within the LAN.","device_settings_wifi_speed_test_start_test_button":"Start testing","device_settings_wifi_speed_test_tip1":"1. Turn off mobile data, and connect the phone and the device to the same network.","device_settings_wifi_speed_test_tip2":"2. Click \\"Start testing\\" to test the signal, and keep your phone and device as close to the router as possible.","device_settings_wifi_speed_test_tip3":"3. Get the signal test result. Under normal circumstances, the Wi-Fi signal strength should be at least 10Mbps or higher (with a total capacity of 100Mbps).","device_problem_feedback_abnormal_condition_option_title":"Choose the problem you are facing.","device_problem_feedback_abnormal_condition_option1":"Device experiencing live viewing lag","device_problem_feedback_abnormal_condition_option2":"Device unable to establish connection","device_problem_feedback_abnormal_condition_option3":"Device frequently going offline","device_problem_feedback_problem_des_title":"Problem description","device_problem_feedback_problem_des_placeholder_text":"Please describe the issues you have encountered during your usage...","device_problem_feedback_add_photo_or_video_title":"Add video/image","device_problem_feedback_problem_log_des":"Submit the problem log for a more accurate diagnosis. (The log should include error records, technical data, and other essential system information.)","device_problem_feedback_contact_info_title":"Contact info","device_problem_feedback_submit_button":"Submit","device_add_login_creat_user_name_and_password":"Create username and password","device_offline_help_restore_device_tip":"·Please try restoring the factory default setting of device through the NVR GUI (please store the network connection settings).","doorbell_light_always_on":"Always On","common_year":"year","device_new_password_error_tip":"New password must differ from old password.","common_beta":"Beta","common_device_offline_tip":"Device disconnected","common_help_button":"Help","common_device_offline_help_title":"Device Disconnection Help","device_settings_detection_alarm_motion_tagging_des":"When Clear mode is selected, detected moving objects will be marked.","device_timelapse_download_merge_files_tip":"Files are being merged. Please wait...","device_poe_offline_help_power_tip1":"·Please make sure to use a compatible adapter, or PoE switch and socket, and ensure that the device is powered on.","common_device_reconnection_button":"Reconnect","advanced_shared_device_title":"Share Device","advanced_shared_device_user_title":"Device Share Users","advanced_no_share_device":"No share device","advanced_share_device_quantity_ceiling_tip1":"The number of shared devices has reached the limit ({s1} devices).","advanced_share_device_quantity_ceiling_tip":"One device can be shared with a maximum of {s1} users.","comon_device_online":"Online","comon_device_offline":"Disconnected","device_authorization_expired_tip":"Authorization expired","advanced_add_shared_device_user":"Add Share User","advanced_share_device_access":"Share permissions","advanced_device_authorization_time":"Authorization date","advanced_device_authorized_time_until":"Authorization ends on","advanced_share_device_user_notes":"Remark","advanced_share_device_enter_a_note_name_placeholder_text":"Enter remark","advanced_share_device_generate_authorization_code_button":"Generate Authorization Code","device_maximum_duration_of_authorization_tip":"Max authorization duration: 36 months","device_failed_to_generate_the_authorization_code":"Failed to generate an authorization code. Please click to retry.","advanced_shared_device_authorization_settings":"Permission Settings","advanced_cancel_share_button":"Cancel Sharing","advanced_cancel_share_tip":"After canceling sharing, other users will not be able to view or operate the device. Are you sure you want to continue?","advanced_device_authorization_code_title":"Device Authorization Code","advanced_device_authorization_code_des":"Use the authorization code to share the device with other users. The code is valid for 30min.","advanced_add_shared_device_share_authorization_code_button":"Share code","advanced_copy_authorization_code_link_button":"Copy authorization link","common_copy_success_tip":"Copied","device_copy_the_authorization_code_link_pop_up_title1":"New device found","common_device_info_uid_title":"UID: {s1}","device_copy_the_authorization_code_link_pop_up_title2":"New authorization code found","device_copy_the_authorization_code_link_tip_des":"Use a new authorization code to add this device? {s1} ({s2})","common_receive_button":"Accept","common_reject_buttoncommon_reject_button":"Reject","common_logging_in":"Logging in…","common_failed_to_log_in":"Failed to log in. Please click to retry.","advanced_authorization_code_has_expired_tip":"Authorization code expired","common_device_authorization_code_has_expired":"Authorization expired","advanced_device_share_authorized2":"{s1}, {s2}","advanced_device_share_authorized3":"{s1}, {s2}, {s3}","advanced_device_share_authorized4":"{s1}, {s2}, {s3}, {s4}","advanced_device_share_authorized5":"{s1}, {s2}, {s3}, {s4}, {s5}","advanced_device_share_authorized6":"{s1}, {s2}, {s3}, {s4}, {s5}, {s6}","advanced_device_share_authorized7":"{s1}, {s2}, {s3}, {s4}, {s5}, {s6}, {s7}","common_device_uid_title":"Device UID","device_sidebar_push_notification_sound_des":"Notification ringtone is only available for devices in the device list ({s1})","conmmon_other_device":"Other device","doorbell_push_notification_visitor_telephone_reminder":"Doorbell Notification","doorbell_push_notification_visitor_telephone_reminder_has_been_answered_tip":"Already operated on another device","device_scene_help_page_scene_set_up_switch":"Customize this Device","common_shortcuts_title":"Shortcuts","device_offline_help_view_plan_tip2":"·If your device is TrackMix Wired LTE, please verify if your {s1} view plan has any remaining data. If it\'s exhausted, please recharge it before your visit.","advanced_device_share_authorized_management":"Allow management","advanced_device_share_authorized_management_des":"View device info and manage all features on the device","advanced_device_share_authorized_only_view":"View only","advanced_device_share_authorized_only_view_des":"View device info and content","common_submit_success_tip":"Submitted","device_info_storage_recordings_maximum_storage_time":"Max. recording storage time","device_info_storage_overwrite_recordings_and_time_lapse":"Overwrite recordings and time-lapse files","device_info_storage_overwrite_recordings_and_time_lapse_des":"Overwrite recordings and time-lapse files when storage is full.","device_name_and_telephoto":"{s1} (Telephoto)","device_settings_email_set_tip":"To change the sender\'s/receiver\'s email address, please visit {s1}.","device_settings_ftp_set_tip":"To change FTP address, please visit {s1}.","device_settings_email_and_ftp_link_base_settings":"{s1} Settings","device_use_with_base_reset_tip":"Connecting {s1} will reset the device to factory settings. Some settings will be disabled. Are you sure to continue?","device_some_files_download_failed_tip":"Failed to search for some device files ({s1})","remote_config_add_user_common_des":"You can access the device but can\'t change its settings.","device_settings_maintenance_management_update_tip":"Low battery. Unable to update.","advanced_copy_authorization_code_link_tip":"【Reolink】reolink://share{s1}Copy this and open Reolink APP to authorize the device.","advanced_copy_authorization_code_qr_button":"Copy authorization code","advanced_login_setting_title":"Login Settings","advanced_device_authorized_time_note":"Select a duration to update the expiration time.","common_years":"years","advanced_user_manager_disable_tip2":"The current feature is disabled. To add users, please contact the super administrator.","add_device_connect_homebase_success_wifi":"Connected to WLAN {s1}. You may remove the network cable.","device_settings_storage_video_export_usb_multiple_tip1":"Multiple USB devices detected.","device_settings_storage_video_export_usb_multiple_tip2":"Please select a USB device for exporting the recording.","common_upgrade_remind_overpass":"Dismiss","common_upgrade_remind_next":"Remind me next time","remote_settings_privacy_mask_update_first_button":"Start using","remote_settings_privacy_mask_update_first_tips":"Privacy masks set do not support Position Mask feature and will be clear when using the feature.","email_image_setting":"Image Setting","email_image_setting_movement_track":"Motion Track","email_image_setting_movement_track_tip":"The target\'s motion track will be displayed in the image.","device_homebase_event":"Event Log","device_homebase_event_week":"Weekly Summary","device_homebase_event_empty":"No Events","device_homebase_event_week_total":"Alarms","device_homebase_event_week_bell_total":"Doorbell Rings","device_homebase_event_week_daily":"Daily Alarms","device_homebase_event_week_rank":"Device Alerts","device_homebase_event_day_record_failed":"Unable to load the recording. Please retry.","device_homebase_event_day_record_disappear":"The recording does not exist.","device_homebase_event_day_record_download_succeed":"Downloaded to phone album","device_homebase_encryption":"File Encryption","device_homebase_encryption_introduce":"Secure your recordings with encryption.","device_homebase_encryption_setting":"Set Encrytpted Code","device_homebase_encryption_setting_passward":"Encrypted code","device_homebase_encryption_setting_passward_confirm":"Confirm encrypted code","device_homebase_encryption_setting_prompt":"Code hint","device_homebase_encryption_setting_prompt_input_tip1":"Password must contain at least three types of characters from the following: uppercase letters, lowercase letters, numbers, and special characters.","device_homebase_encryption_setting_prompt_input_tip2":"The hint should not be the same with the code.","device_homebase_encryption_setting_succeed":"File encryption enabled","device_homebase_encryption_setting_succeed_tip":"Encryption code is stored on your device only. Please keep it safe. If the device is reset to factory settings, the code will be lost, and you\'ll need to re-enter it to access recorded files.","device_homebase_encryption_setting_succeed_copy":"Copy the code","device_homebase_encryption_reset_tip":"After resetting, newly stored files will use the new code for encryption, while previously encrypted files remain secured with the old code.","device_homebase_encryption_close_tip":"After disabling this feature, newly stored files won\'t be encrypted, while previous encrypted files stay protected with the old code.","common_video_encrypted":"The file is encrypted.","device_settings_storage_video_export_encryption":"Export in encrypted format","device_settings_storage_video_export_decrypt":"Export after decryption","device_settings_storage_video_export_tip3":"The selected file is encrypted. You can export it encrypted or decode it before exporting.","device_settings_storage_videot_export_decryp_failed":"Decryption failed","device_settings_storage_video_export_decryp_failed_encrypt":"Export encrypted file","device_settings_storage_video_export_decryp_failed_skip":"Skip this file","device_settings_storage_video_export_finish":"Export completed","device_settings_storage_video_export_finish_exception1":"Task stopped due to USB flash disk removal.","device_settings_storage_video_export_finish_exception2":"{s1} files failed to decrypt and were skipped.","common_video_encrypted_input_tip1":"Please enter the correct encrypted code.","position_mask_PTZ_add_tip":"Creating privacy masks isn\'t possible while PTZ is active on the camera.","advanced_device_authorization_homebase":"Authorise Device","advanced_device_authorization_NVR":"Authorise Channel","common_device_stream_busy_tip1":"Current visitor count exceeds limit. Automatically switch to Fluent.","common_device_stream_busy_tip2":"Fail to load. Current visitor count exceeds limit.","smart_bell_quick_reply_busy_tip":"Too many operations in a short time. Please wait.","advanced_device_shut_down_tip":"The device will be powered off. Are you sure to continue?","email_image_setting_movement_time":"Motion Timestamp","email_image_setting_movement_time_tip":"Display the time when the target moves.","advanced_user_manager_disable_tip3":"The current feature is disabled. To add users, please go to \'System>Share Devices\'.","common_Talk_busy_tip":"A user is using the speaker.","add_device_connect_homebase_firmware_upgrade_tip":"The current device firmware version is too low to support recording and alarm features. It\'s recommended to upgrade before proceeding.","device_and_homebase_on_the_same_list":"Only display devices already added to the device list.","device_use_with_base_admin_tip":"Only the admin can add devices to {s1}.","device_use_with_base_network_tip":"null","remote_config_homebase_wifi_not_connected":"Not connected to {s1}\'s Wi-Fi","remote_config_homebase_wifi_connected":"Connected to {s1}\'s Wi-Fi","common_push_homebase_switch":"{s1} Push","common_push_homebase_switch_tip":"Notify when Homebase status is abnormal or when there is insufficient storage.","photo_selection_date_selection_start_date_null":"Please select the start date","photo_selection_date_selection_end_date_null":"Please select the end date","common_device_reset_sound_tip_fail":"If there\'s no voice prompt after the retry, contact the after-sales personnel of the corresponding channel.","device_settings_storage_video_export_finish_amount":"{s1} files exported in total","homebase_connection_succeed_encryption":"By enabling File Encryption, your recording files will be encrypted, and accessible only by admin and users authorized by admin. Without the encrypted code, no one can directly access the recorded files from the device\'s storage medium.","device_connect_homebase_failed":"Fail to connect to {s1}","device_connect_homebase_standby":"Standby","device_connect_homebase_communication_error":"Communication abnormal","device_connect_homebase_not_supported":"Not support connecting to {s1}","device_connect_homebase_firmware_low":"Low firmware version","homebase_connection_fail_password_input_tip":"Authorize to connect to {s1}","wifi_config_page_wired_connection_tip":"Please select this if the device has a network cable connected.","common_schedule_delete_confirm":"Are you sure to delete this schedule?","common_package_delivered":"Package Delivered","common_package_picked":"Package Collected","common_not_named":"Unnamed","remote_config_page_video_section_sound_homehub_label":"If disabled, sound playback will not be available.","common_Item":"ltem No.","common_push_notification_system_setting":"Push Settings","device_settings_storage_video_export_finish_exception3":"{s1} files failed to decrypt and were exported with encryption.","common_ai_package_option":"Package","alarm_settings_package_sensitivity_high_description":"Camera at high sensitivity detects moving objects with low-similarity appearance to packages.","alarm_settings_package_sensitivity_mid_description":"Camera at medium sensitivity detects moving objects with medium-similarity appearance to packages.","alarm_settings_package_sensitivity_low_description":"Camera at low sensitivity detects moving objects with medium-similarity appearance to packages.","add_device_wifi_choose_method":"How would you like to configure Wi-Fi?","add_device_wifi_bluetooth_config":"Bluetooth","add_device_wifi_scan_config":"Scan QR code","common_go_setting":"Go to Settings","add_device_wifi_allow_bluetooth_button_permission_description":"Allows Reolink to use Bluetooth to connect to your device.","add_device_wifi_open_bluetooth_description":"Turn on Bluetooth to allow Reolink to connect to your device.","add_device_wifi_bluetooth_connecting":"Connecting device","add_device_wifi_bluetooth_close_to_device_retry":"Device not found. Please approach the device and {s1}.","add_device_wifi_bluetooth_retry_description":"Failed to connect. Please {s1} or contact customer service.","add_device_wifi_ssid_or_password_incorrect":"Incorrect Wi-Fi name or password","add_device_wifi_connecting":"Connecting to Wi-Fi...","common_recommended":"Recommend","common_homehub_storage_full_push":"{s1} storage space is full.","common_homehub_storage_medium_unavailable_push":"{s1} storage medium is abnormal.","common_homehub_device_offline_push":"{s1} disconnects with {s2}.","device_homehub_offline_status":"{s1} offline","device_homehub_not_initialized_status":"{s1} not initialized","device_homehub_password_error_status":"{s1} incorrect password","add_device_connect_homehub_wifi_fail":"Please ensure your device is within the Wi-Fi network coverage of {s1}.","device_storage_settings":"Storage Settings","common_addable_device":"Device(s) to add","common_device_list":"Device list","device_settings_storage_videot_export_decryp_failed_tip":"The option selected this time will be the default for future file decryption failures. No repeated reminders.","add_device_access_homebase_duplicated":"Device has been added to another {s1}. To add it to this {s2}, please remove the device from the other.","add_device_access_homebase_success":"Device added to {s1}","add_device_access_homebase_unavailable":"Not add device to {s1} for now","common_wifi_24ghz":"2.4Ghz","common_wifi_5ghz":"5Ghz","device_homebase_encryption_reset":"Reset Code","device_homebase_add_way_1":"Add from device list","device_homebase_add_way_2":"Add from LAN","device_homebase_add_way_3":"Scan to add","wifi_config_page_wifi_sync_homehub":"Sync {s1} Wi-Fi","commom_add_input_UID":"Enter UID","common_add_device_authorization_code_link":"Link","commom_add_input_link":"Please paste or enter the authorization link starting with \'Reolink://\'.","add_device_network_was_not_same_LAN":"Not in the same LAN.","add_device_network_was_not_same_LAN_description":"You need to configure the network for devices not in the same LAN as {s1}.","add_device_network_was_same_LAN":"Already within the same LAN.","device_connect_homebase_authenticate_fail":"Authentication failed.","device_playback_fail_firmware":"Playback cannot be used due to low firmware version.","common_playback_loading_failed_try_again":"Failed to load, please {s1}.","common_playback_storage_erro":"Storage medium is abnormal.","common_playback_hdd_erro_button":"Storage medium is abnormal. {s1}","device_settings_storage_video_export_null_medium":"null","common_locked_account_erro":"null","chime_mechanical_enable_switch":"null","chime_digital_enable_switch":"null","chime_change_type_of_chime":"null","chime_ring_type":"null","chime_ring_type_1_button":"null","chime_ring_type_2_button":"null","chime_automatic_detection":"null","chime_automatic_detection_description":"null","chime_advanced_setting_description":"null"}')},a233:function(e,t,n){"use strict";var i=n("4079"),a=n.n(i);a.a},a36b:function(e,t,n){"use strict";var i=n("4d7e"),a=n.n(i);a.a},a36f:function(e,t,n){"use strict";var i,a,r,s,o,c,u,l,d;n.r(t),n.d(t,"ESwitch",(function(){return i})),n.d(t,"EScheduleMode",(function(){return a})),n.d(t,"EUpgradStatus",(function(){return r})),n.d(t,"EInternationalCode",(function(){return s})),n.d(t,"PromptStatus",(function(){return o})),n.d(t,"EFloodlightMode",(function(){return c})),n.d(t,"EFtpTestError",(function(){return u})),n.d(t,"EEmailTestError",(function(){return l})),n.d(t,"EPositionFlags",(function(){return d})),function(e){e[e["disable"]=0]="disable",e[e["enable"]=1]="enable"}(i||(i={})),function(e){e["MD"]="MD",e["AI_PEOPLE"]="AI_PEOPLE",e["AI_VEHICLE"]="AI_VEHICLE",e["AI_OTHER"]="AI_OTHER",e["VISITOR"]="VISITOR",e["AI_DOG_CAT"]="AI_DOG_CAT",e["AI_PACKAGE"]="AI_PACKAGE",e["AI_FACE"]="AI_FACE",e["VL"]="VL",e["IO"]="IO",e["BLIND"]="BLIND",e["HDEXP"]="HDEXP",e["HDFULL"]="HDFULL",e["IPCONFLICT"]="IPCONFLICT",e["NETCONNECT"]="NETCONNECT",e["RF"]="RF",e["FD"]="FD",e["VS"]="VS",e["ID"]="ID",e["RFLPWR"]="RFLPWR",e["RFTAMPER"]="RFTAMPER",e["DONGLELOST"]="DONGLELOST",e["PIR"]="PIR",e["MANUAL_REC"]="MANUAL_REC",e["TIMING"]="TIMING",e["Unknown"]="Unknown"}(a||(a={})),function(e){e[e["requestFailed"]=0]="requestFailed",e[e["downloadReady"]=1]="downloadReady",e[e["downloading"]=2]="downloading",e[e["downloadFailed"]=3]="downloadFailed",e[e["upgradeReady"]=4]="upgradeReady",e[e["uploading"]=5]="uploading",e[e["upgrading"]=6]="upgrading",e[e["upgradeSucceed"]=7]="upgradeSucceed",e[e["upgradeFailed"]=8]="upgradeFailed",e[e["upgradeCompleted"]=9]="upgradeCompleted"}(r||(r={})),function(e){e["de"]="de",e["en"]="en",e["el"]="el",e["es"]="es",e["fi"]="fi",e["fr"]="fr",e["hk"]="hk",e["it"]="it",e["ja"]="ja",e["ko"]="ko",e["nb"]="nb",e["pl"]="pl",e["ru"]="ru",e["sv"]="sv",e["sr"]="sr",e["th"]="th",e["cn"]="zh"}(s||(s={})),function(e){e[e["close"]=0]="close",e[e["succeed"]=1]="succeed",e[e["failed"]=2]="failed",e[e["mostCurrentVersion"]=3]="mostCurrentVersion"}(o||(o={})),function(e){e[e["close"]=0]="close",e[e["intelligentVision"]=1]="intelligentVision",e[e["nightVision"]=2]="nightVision",e[e["timingVision"]=3]="timingVision",e[e["lightAlarm"]=4]="lightAlarm",e[e["autoAdaptBrightness"]=5]="autoAdaptBrightness"}(c||(c={})),function(e){e[e["undefined"]=450]="undefined",e[e["login"]=451]="login",e[e["create"]=452]="create",e[e["upload"]=453]="upload",e[e["connect"]=454]="connect",e[e["noFtps"]=455]="noFtps",e[e["delFailed"]=456]="delFailed",e[e["renameFailed"]=457]="renameFailed",e[e["reuploadFailed"]=458]="reuploadFailed"}(u||(u={})),function(e){e[e["undefined"]=480]="undefined",e[e["connect"]=481]="connect",e[e["auth"]=482]="auth",e[e["network"]=483]="network",e[e["server"]=484]="server",e[e["memory"]=485]="memory"}(l||(l={})),function(e){e["NW"]="nw-pos",e["NE"]="ne-pos",e["SW"]="sw-pos",e["SE"]="se-pos"}(d||(d={}))},a438:function(e,t,n){"use strict";var i=n("b1d0"),a=n.n(i);a.a},a51d:function(e,t,n){"use strict";var i=n("037d"),a=n.n(i);a.a},a808:function(e,t,n){},a97b:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAACXBIWXMAAAsSAAALEgHS3X78AAAFUklEQVRoge1bTWhdRRT+TpqmwRp9WlQUC6lCUbEQ6CZxFXDTRS0FQairIEVx1VS7N924k9ZtKdRdlxbjohtpVk02oYUKVhdNoNKWakg0tpQE+8lJzqOTeXN/5s597zX4Pngkc9/8ffecOefMmXnoJEiOk1zmJs50dPBugOQUHXRjDn1dfwsdRv92mSjJIQC7ADwUkYdV+6kkYZIjJK+RXCA5UXXwiPGeAaCEBwA0SO6s2ldVlf4KwAiAYQBnSDaqTqAIJPuMbC2oSnjF+b9hL6Bd2A1gh9P3moisVx2rKuHTHulJVfO6CZPcEZDuckqflQiLyCKAb73H7fCrz3vlByLyb0qHKW7pLIBFp6xBxdGUybggqRZ50Hn0GMBqar+VCYvIiqm2izql/JxXXhWRx6mdJgUeIvIdgBnn0bBGU6mTMjfkup51EXmQ2i9qirROeuUTJIcz6rqGbiZUwdyQL92/06ZYM0he4FZcyBpBAxWSk1m+W9cuydecz4sxsyU5oC+c5JumKVsggQYb7kVErkcMopNfMJ+sWBGRF2Im6vSlqvySFXXN/lHGMpsLewXAy47f1jD0F7den9dIw8Rr+iF5JUc1t8AMmOumLkVw9PvSoGLJLPJSSbJ7ALwD4FUvSGnZK4jX8Iq6F6+Oup/TRqpoYNWOhogE12fdMJV9PSP01Bd1W0SW8ghPZYSJK0b6bCeIFMHUdy+APRlV7wO4E9KO0BqeMNIhddZ1fbJTEgxBjZm3Tl3oMvg9b/vYQhhPjNBkzqbgkhFfzPi+LTAVfjvQ9xo21bdw2eXCzPv3DGO5HRuGgvkMkTzofEZM4rUPNG4bfh/JUVWFuQwbUf070O7BJpyso8K36E89gmu4gHTDsh0rMcFJDz300BZEr+GnCSTf8PbNRfhz2xImudeMZwzW+0lqmuZ4RKNZAJ+ISLc35VWS8Tv7IskqxgB8VGGwunHbtpExuNVv6RM/pVKErqdcbN98NbodSZXYexFt/hKR87ED9dBDD23BtvTDlrTbtRFIiKzFtN12hG3Df9iKSvaqiPxWtn30yYMlyKcsjdvxBIClYpsYsEO8D8tmPqIkTPJTAMe8tOhnIjIf008KTJ0/MLI+NMc2KyKZp4ylCFtm40vv7TbxcYxK1UR6yCK+rIMCFcCN0PrOJUxyvxE9GPha3+JFETlXeeaJMDUey8hP6/zmfWFkpWmHjOjh0PcAfgTwTZ7qdBIkD5hQQmo+7y65UCJe18cXGccX80a0IypsZ1uPROReiboDRvqA99VdEZluFkKEpwNr9S6Ac27DnIH3ARgF8LOI3Ciqn9PPUWe/O1P2tMO0c9zhMOMKKHQTb9WpvLFOba0Wqi9JPQL52q4aafmEiCyUmWgAbzmPRknOicijokY2z2mz5vAP00KE1beq+/nHpHonYpLHm2QNz4Yq2ZHJmJ3fzmb0ddORsF5uORRzDOsTbaL1/HRT/KfKdtyEGY5R55HeybiVUf1zAOoBNsiLyE+BOjMm5eZNnhGTcuF6zkOdt2n9zMn5nIso+53/W64l4Mkh+5z3+FDaFGsiTPIIgH3Oo4UMqUXBDJV7IjiceoCXTJjkbgs3XdSZEbnslTV2HsyoW4g6JHzMM1RzKe7Ih4jc9G78NTxbEYUkwuaGjniP25Hv8qU8WvXKcqqEJ72y+uv7iX22wCyza8AGA5dvSqEyYYuo3nUeKdEfKrMqhhowN/CotI7rdEsX67oPGYJFWZfNat/LurpYhMo/8tCQkaReRnvf9p7JbqjEmNftJlFlJP2qxUi2nWid+N/9bqlbhJtaoRfIfu3YqAD+A4WGegHpn45IAAAAAElFTkSuQmCC"},a9dd:function(e,t,n){"use strict";var i=n("bb81"),a=n.n(i);a.a},aa0d:function(e,t,n){},aa18:function(e,t,n){"use strict";var i=!1,a=!0,r=!1,s=Object({NODE_ENV:"production",VUE_APP_APPLICATION:"web",VUE_APP_APP_ID:"com.reolink.app",VUE_APP_APP_NAME:"Reolink",VUE_APP_APP_PROTOCOL:"reolink",VUE_APP_CDN_APP:"https://home-cdn.reolink.us/wp-content/assets/app",VUE_APP_COMPANY_NAME:"Shenzhen Reolink Technology Co., Ltd.",VUE_APP_COPYRIGHT_LIMIT:"Reolink",VUE_APP_DEV_API_BASE_URL:"https://apis.reolink.com/v1.0",VUE_APP_DEV_PUBLISH_URL:"https://home-cdn.reolink.us/files/client/electron/",VUE_APP_FACEBOOK_LINK:"https://www.facebook.com/ReolinkTech/",VUE_APP_INSTAGRAM_LINK:"https://www.instagram.com/reolinkcams/",VUE_APP_IS_PROD:"true",VUE_APP_PROD_API_BASE_URL:"https://apis.reolink.com/v1.0",VUE_APP_PROD_PUBLISH_URL:"https://home-cdn.reolink.us/files/client/electron-release/",VUE_APP_TIME:"1713173637112",VUE_APP_TWITTER_LINK:"https://twitter.com/ReolinkTech/",VUE_APP_VERSION:"1.0.278-pre-2",VUE_APP_YOUTUBE_LINK:"https://www.youtube.com/channel/UCEHKZX6fFVtWd4tnnRkzrMA",BASE_URL:""}).VUE_APP_API_BASE_URL,o=Object({NODE_ENV:"production",VUE_APP_APPLICATION:"web",VUE_APP_APP_ID:"com.reolink.app",VUE_APP_APP_NAME:"Reolink",VUE_APP_APP_PROTOCOL:"reolink",VUE_APP_CDN_APP:"https://home-cdn.reolink.us/wp-content/assets/app",VUE_APP_COMPANY_NAME:"Shenzhen Reolink Technology Co., Ltd.",VUE_APP_COPYRIGHT_LIMIT:"Reolink",VUE_APP_DEV_API_BASE_URL:"https://apis.reolink.com/v1.0",VUE_APP_DEV_PUBLISH_URL:"https://home-cdn.reolink.us/files/client/electron/",VUE_APP_FACEBOOK_LINK:"https://www.facebook.com/ReolinkTech/",VUE_APP_INSTAGRAM_LINK:"https://www.instagram.com/reolinkcams/",VUE_APP_IS_PROD:"true",VUE_APP_PROD_API_BASE_URL:"https://apis.reolink.com/v1.0",VUE_APP_PROD_PUBLISH_URL:"https://home-cdn.reolink.us/files/client/electron-release/",VUE_APP_TIME:"1713173637112",VUE_APP_TWITTER_LINK:"https://twitter.com/ReolinkTech/",VUE_APP_VERSION:"1.0.278-pre-2",VUE_APP_YOUTUBE_LINK:"https://www.youtube.com/channel/UCEHKZX6fFVtWd4tnnRkzrMA",BASE_URL:""}).VUE_APP_API_V2_BASE_URL,c=Object({NODE_ENV:"production",VUE_APP_APPLICATION:"web",VUE_APP_APP_ID:"com.reolink.app",VUE_APP_APP_NAME:"Reolink",VUE_APP_APP_PROTOCOL:"reolink",VUE_APP_CDN_APP:"https://home-cdn.reolink.us/wp-content/assets/app",VUE_APP_COMPANY_NAME:"Shenzhen Reolink Technology Co., Ltd.",VUE_APP_COPYRIGHT_LIMIT:"Reolink",VUE_APP_DEV_API_BASE_URL:"https://apis.reolink.com/v1.0",VUE_APP_DEV_PUBLISH_URL:"https://home-cdn.reolink.us/files/client/electron/",VUE_APP_FACEBOOK_LINK:"https://www.facebook.com/ReolinkTech/",VUE_APP_INSTAGRAM_LINK:"https://www.instagram.com/reolinkcams/",VUE_APP_IS_PROD:"true",VUE_APP_PROD_API_BASE_URL:"https://apis.reolink.com/v1.0",VUE_APP_PROD_PUBLISH_URL:"https://home-cdn.reolink.us/files/client/electron-release/",VUE_APP_TIME:"1713173637112",VUE_APP_TWITTER_LINK:"https://twitter.com/ReolinkTech/",VUE_APP_VERSION:"1.0.278-pre-2",VUE_APP_YOUTUBE_LINK:"https://www.youtube.com/channel/UCEHKZX6fFVtWd4tnnRkzrMA",BASE_URL:""}).VUE_APP_LANG,u="true"===Object({NODE_ENV:"production",VUE_APP_APPLICATION:"web",VUE_APP_APP_ID:"com.reolink.app",VUE_APP_APP_NAME:"Reolink",VUE_APP_APP_PROTOCOL:"reolink",VUE_APP_CDN_APP:"https://home-cdn.reolink.us/wp-content/assets/app",VUE_APP_COMPANY_NAME:"Shenzhen Reolink Technology Co., Ltd.",VUE_APP_COPYRIGHT_LIMIT:"Reolink",VUE_APP_DEV_API_BASE_URL:"https://apis.reolink.com/v1.0",VUE_APP_DEV_PUBLISH_URL:"https://home-cdn.reolink.us/files/client/electron/",VUE_APP_FACEBOOK_LINK:"https://www.facebook.com/ReolinkTech/",VUE_APP_INSTAGRAM_LINK:"https://www.instagram.com/reolinkcams/",VUE_APP_IS_PROD:"true",VUE_APP_PROD_API_BASE_URL:"https://apis.reolink.com/v1.0",VUE_APP_PROD_PUBLISH_URL:"https://home-cdn.reolink.us/files/client/electron-release/",VUE_APP_TIME:"1713173637112",VUE_APP_TWITTER_LINK:"https://twitter.com/ReolinkTech/",VUE_APP_VERSION:"1.0.278-pre-2",VUE_APP_YOUTUBE_LINK:"https://www.youtube.com/channel/UCEHKZX6fFVtWd4tnnRkzrMA",BASE_URL:""}).VUE_APP_USE_ACCOUNT_LOGIN,l=!1,d=Math.max(2020,(new Date).getFullYear());t["a"]={IS_PROD:a,IS_DEV:r,IS_FACTORY:i,ReoApiBaseUrl:s,copyrightYear:d,IS_CLIENT:l,FORCE_LANG:c,USE_ACCOUNT_LOGIN:u,ReoApiV2BaseUrl:o}},aa67:function(e,t,n){"use strict";var i=n("4e0b"),a=n.n(i);a.a},acf9:function(e,t,n){"use strict";var i=n("ea3a"),a=n.n(i);a.a},ad0f:function(e,t,n){e.exports=n.p+"img/motion_medium.c42457dd.png"},af0c:function(e,t,n){},b01c:function(e,t,n){"use strict";var i=n("673e"),a=n.n(i);a.a},b05f:function(e,t,n){},b0e9:function(e,t,n){"use strict";var i=n("622d"),a=n.n(i);a.a},b18b:function(e,t,n){"use strict";var i=n("7821"),a=n.n(i);a.a},b1ac:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tip-wrap",style:{width:e.width+"px",height:e.height+"px"}},[n("div",{staticClass:"ab-center"},[n("span",{staticClass:"icon-client_pic_error icon"}),n("h5",{staticClass:"small-title"},[e._v(e._s(e.deviceChannelName))]),n("p",{staticClass:"text"},[e._v(e._s(e.$t("corresponding_area_settings_need_preview")))])])])},a=[],r=(n("99af"),n("a9e3"),n("2b0e")),s=r["a"].extend({name:"cacheImgLossTip",props:{width:{type:Number,default:660},height:{type:Number,default:370},device:Object,channel:Object},data:function(){return{deviceName:"",channelName:""}},computed:{channelsNum:function(){return this.device?this.device.channelsNum:0},deviceChannelName:function(){return this.channelsNum>1?"".concat(this.deviceName," - ").concat(this.channelName):this.deviceName}},watch:{channel:{handler:function(e,t){this.channelsNum<2||(t&&t.state.removeObserver("name",this.onChannelNameChange),e&&e.state.addObserver("name",this.onChannelNameChange))},immediate:!0},device:{handler:function(e,t){t&&t.state.removeObserver("name",this.onDeviceNameChange),e&&e.state.addObserver("name",this.onDeviceNameChange)},immediate:!0}},methods:{onDeviceNameChange:function(e){this.deviceName=e},onChannelNameChange:function(e){this.channelName=e}}}),o=s,c=(n("5b12"),n("2877")),u=Object(c["a"])(o,i,a,!1,null,"5d8d27ac",null);t["a"]=u.exports},b1d0:function(e,t,n){},b2d7:function(e,t,n){},b57d:function(e,t,n){"use strict";n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return F}));n("a630"),n("d81d"),n("b0c0"),n("4ec9"),n("d3b7"),n("3ca3"),n("ddb0"),n("96cf");var i=n("1da1"),a=n("bee2"),r=n("d4ec"),s=n("5f5b"),o=n("6335"),c=(n("99af"),n("4160"),n("159b"),n("2b3d"),n("ffa8")),u=function(){function e(t){Object(r["a"])(this,e),this._channel=t}return Object(a["a"])(e,[{key:"channel",get:function(){return this._channel}},{key:"handle",get:function(){return this.channel.handle}},{key:"index",get:function(){return this.channel.index}}]),e}(),l=n("34d7"),d=function(){function e(t){Object(r["a"])(this,e),this._channel=t}return Object(a["a"])(e,[{key:"ptzCtrl",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i={channel:this.index,op:t,speed:n},e.abrupt("return",l["b"].sendCommand("PtzCtrl",i,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"stop",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ptzCtrl("Stop"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"scanAuto",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ptzCtrl("Auto",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"up",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ptzCtrl("Up",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"down",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ptzCtrl("Down",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"left",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ptzCtrl("Left",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"right",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ptzCtrl("Right",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"upLeft",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ptzCtrl("LeftUp",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"upRight",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ptzCtrl("RightUp",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"downLeft",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ptzCtrl("LeftDown",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"downRight",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ptzCtrl("RightDown",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"zoomIn",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ptzCtrl("ZoomInc",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"zoomOut",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ptzCtrl("ZoomDec",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"focusFar",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ptzCtrl("FocusDec",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"focusNear",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ptzCtrl("FocusInc",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"channel",get:function(){return this._channel}},{key:"handle",get:function(){return this.channel.handle}},{key:"index",get:function(){return this.channel.index}}]),e}(),p=function(){function e(t){Object(r["a"])(this,e),this._channel=t}return Object(a["a"])(e,[{key:"updateCacheImage",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:0,t.length>1&&void 0!==t[1]?t[1]:0,e.abrupt("return");case 3:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"channel",get:function(){return this._channel}},{key:"handle",get:function(){return this.channel.handle}},{key:"index",get:function(){return this.channel.index}}]),e}(),h=function(){function e(){Object(r["a"])(this,e),this.cgiAbilities={}}return Object(a["a"])(e,[{key:"updateAbilities",value:function(e){this.cgiAbilities=JSON.parse(JSON.stringify(e))}},{key:"abilities",get:function(){return this.cgiAbilities}}],[{key:"instance",value:function(){return e.singleton}}]),e}();h.singleton=new h;var m,g,f=h.instance(),_=(n("caad"),n("ac1f"),n("6062"),n("2532"),n("1276"),n("498a"),n("3835")),v=n("b85c"),b=n("5530"),w=n("2909"),C=n("ade3"),y=n("0ac9"),S=n("a36f");(function(e){e["IPC"]="IPC",e["NVR"]="NVR"})(m||(m={})),function(e){e[e["NONE"]=0]="NONE",e[e["MD"]=1]="MD",e[e["TIMING"]=2]="TIMING"}(g||(g={}));var k=n("56f8"),A=n("bf97"),E=n("914c"),x=n("9354"),O=n("ec26"),I=n("4a47"),D=function(){function e(t){var n=this;Object(r["a"])(this,e),this.MAX_SENSITIVITY=51,this.MAP_ENC_PROFILE=new Map([[s["BC_ENCODER_PROFILE_E"].BC_ENCODER_PROFILE_BASE_LINE,"Base"],[s["BC_ENCODER_PROFILE_E"].BC_ENCODER_PROFILE_MAIN,"Main"],[s["BC_ENCODER_PROFILE_E"].BC_ENCODER_PROFILE_HIGH,"High"]]),this.MAP_OSD_POSITION=new Map([["1,1","Upper Left"],["1,65536","Lower Left"],["65536,1","Upper Right"],["65536,65536","Lower Right"],["65537,1","Top Center"],["65537,65536","Bottom Center"],["-100, -100","Other Configuration"]]),this.MAP_ISP_ANTIFLICKER=new Map([[s["BC_ANTIFLICK_TYPE_E"].E_BC_ANTIFLICK_TYPE_UNKOWN,"Other"],[s["BC_ANTIFLICK_TYPE_E"].E_BC_ANTIFLICK_TYPE_50HZ,"50HZ"],[s["BC_ANTIFLICK_TYPE_E"].E_BC_ANTIFLICK_TYPE_60HZ,"60HZ"],[s["BC_ANTIFLICK_TYPE_E"].E_BC_ANTIFLICK_TYPE_DISABLE,"Off"]]),this.MAP_ISP_DAY_NIGHT=new Map([[s["BC_DAY_NIGHT_MODE_E"].E_BC_DAY_NIGHT_MODE_AUTO,"Auto"],[s["BC_DAY_NIGHT_MODE_E"].E_BC_DAY_NIGHT_MODE_DAY,"Color"],[s["BC_DAY_NIGHT_MODE_E"].E_BC_DAY_NIGHT_MODE_NIGHT,"Black&White"]]),this.MAP_ISP_WHITE_BALANCE=new Map([[s["BC_AWB_SCENC_MODE_E"].E_BC_AWB_SCENC_MODE_AUTO,"Auto"],[s["BC_AWB_SCENC_MODE_E"].E_BC_AWB_SCENC_MODE_BUTT,"Manual"]]),this.MAP_ISP_BD_MODE=new Map([[s["BC_ISP_BD_MODE_E"].BC_ISP_BD_MODE_AUTO,"Auto"],[s["BC_ISP_BD_MODE_E"].BC_ISP_BD_MODE_MANUAL,"Manual"]]),this.MAP_ISP_BACK_LIGHT=new Map([[s["BC_BLC_MODE_E"].E_BC_BLC_MODE_CLOSE,"Off"],[s["BC_BLC_MODE_E"].E_BC_BLC_MODE_BLC,"BackLightControl"],[s["BC_BLC_MODE_E"].E_BC_BLC_MODE_DRC,"DynamicRangeControl"]]),this.MAP_ISP_EXPOSURE=new Map([[s["BC_EXPOSURE_TYPE_E"].E_BC_EXPOSURE_TYPE_AUTO,"Auto"],[s["BC_EXPOSURE_TYPE_E"].E_BC_EXPOSURE_TYPE_LOWNOISE,"LowNoise"],[s["BC_EXPOSURE_TYPE_E"].E_BC_EXPOSURE_TYPE_FRAMERATE,"Anti-Smearing"],[s["BC_EXPOSURE_TYPE_E"].E_BC_EXPOSURE_TYPE_MANUAL,"Manual"]]),this.MAP_IR_LIGHTS=new Map([[s["BC_LED_STATE_E"].BC_LED_AUTO,"Auto"],[s["BC_LED_STATE_E"].BC_LED_CLOSE,"Off"]]),this.MAP_POWER_LED=new Map([[s["BC_LIGHT_STATE_E"].BC_LIGHT_OPEN,"On"],[s["BC_LIGHT_STATE_E"].BC_LIGHT_CLOSE,"Off"]]),this.MAP_POWER_LED_DOORBELL=new Map([[s["BC_DOORBELL_LIGHT_STATE_E"].BC_DOORBELL_LIGHT_STATE_OPEN,"On"],[s["BC_DOORBELL_LIGHT_STATE_E"].BC_DOORBELL_LIGHT_STATE_CLOSE,"Off"],[s["BC_DOORBELL_LIGHT_STATE_E"].BC_DOORBELL_LIGHT_STATE_KEEPOFF,"KeepOff"]]),this.MAP_DETECT_TYPE=new Map([[y["EAiDetectCate"].PEOPLE,"people"],[y["EAiDetectCate"].VEHICLE,"vehicle"],[y["EAiDetectCate"].DOG_CAT,"dog_cat"],[y["EAiDetectCate"].MD,"md"],[y["EAiDetectCate"].PACKAGE,"package"]]),this.MAP_AUDIO_FILE_TYPE=new Map([[s["BC_AUDIO_FILE_TYPE"].BC_AUDIO_FILE_TYPE_ALARM,"alarm"],[s["BC_AUDIO_FILE_TYPE"].BC_AUDIO_FILE_TYPE_REPLY,"reply"]]),this.MAP_ZOOM_FOCUS_CMD=new Map([[s["BC_ZF_CMD_E"].BC_ZF_CMD_START_FOCUS,"FocusPos"],[s["BC_ZF_CMD_E"].BC_ZF_CMD_START_ZOOM,"ZoomPos"]]),this.MAP_ENCTYPE=new Map([[y["EEncType"].VBR,"VBR"],[y["EEncType"].CBR,"CBR"]]),this.MAP_VIDEO_ENCODING_FORMAT=new Map([[y["EVideoEncType"].H264,"h264"],[y["EVideoEncType"].H265,"h265"]]),this.alarmAreas={},this.oldSchedules={},this.MAP_GUARD_ACTION=new Map([[y["EGuardAction"].GOTO,"toPos"],[y["EGuardAction"].SET,"setPos"],[y["EGuardAction"].SET_TIME,"setPos"]]),this.isp={},this.audioAlarmSchedules={},this.MAP_AI_TRACK_DETECT_CATE=new Map([[y["EAiDetectCate"].PEOPLE,"people"],[y["EAiDetectCate"].VEHICLE,"vehicle"],[y["EAiDetectCate"].DOG_CAT,"dog_cat"],[y["EAiDetectCate"].FACE,"face"]]),this.MAP_DINGDONG_ALARM_TYPE=new Map([[S["EScheduleMode"].AI_PEOPLE,"people"],[S["EScheduleMode"].AI_VEHICLE,"vehicle"],[S["EScheduleMode"].AI_DOG_CAT,"dog_cat"],[S["EScheduleMode"].VISITOR,"visitor"],[S["EScheduleMode"].MD,"md"]]),this.MAP_AI_TRACK_MODE=new Map([[y["EAiTrackMode"].NONE,0],[y["EAiTrackMode"].PT_ZOOM,1],[y["EAiTrackMode"].DIGITAL_ZOOM,2],[y["EAiTrackMode"].DIGITAL_ZOOM_FIRST,3],[y["EAiTrackMode"].PT_ZOOM_FIRST,4]]),this.MAP_MANUAL_RING_DOWN=new Map([[s["BC_RING_DOWN_MODE_E"].BC_RING_DOWN_TIMES,"times"],[s["BC_RING_DOWN_MODE_E"].BC_RING_DOWN_SWITCH,"manual"]]),this.dingDongAudioDirPath="".concat("https://home-cdn.reolink.us/wp-content/assets/app","/audio/"),this.dingDongAudioBasenameMap=new Map([[0,"dingdong_001.mp3"],[1,"dingdong_002.mp3"],[2,"dingdong_003.mp3"],[3,"dingdong_004.mp3"],[4,"dingdong_005.mp3"],[5,"dingdong_006.mp3"],[6,"dingdong_007.mp3"],[7,"dingdong_008.mp3"],[8,"dingdong_009.mp3"],[9,"dingdong_010.mp3"]]),this.dingDongAudioPathMap=new Map,this._channel=t;var i=new Set;for(var a in y["EAiDetectCate"])i.add(a);i.forEach((function(e){n.alarmAreas[e]={type:e,width:0,height:0,area:[]}}))}return Object(a["a"])(e,[{key:"getCGIOldSchedule",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand(l["c"][t].cmdOfGet,{channel:this.index},0);case 2:return n=e.sent,this.oldSchedules[t]=n.value[t],e.abrupt("return",this.oldSchedules[t]);case 5:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setCGIOldSchedule",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=Object(C["a"])({},n,t),e.next=3,l["b"].sendCommand(l["c"][n].cmdOfSet,i,0);case 3:this.oldSchedules[n]=t;case 4:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getOldAlarmTaskEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getCGIOldSchedule(t);case 2:return n=e.sent,e.abrupt("return",!!n.schedule.enable);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setOldAlarmTaskEnable",value:function(e,t){var n={schedule:{enable:Object(c["k"])(e),table:this.oldSchedules[t].schedule.table}};return this.setCGIOldSchedule(n,t)}},{key:"getNewAlarmTaskEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand(l["c"][t].cmdV20OfGet,{channel:this.index},0);case 2:return n=e.sent,i=!0,void 0!==n.value[t].scheduleEnable?i=!!n.value[t].scheduleEnable:void 0!==n.value[t].enable&&(i=!!n.value[t].enable),e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setNewAlarmTaskEnable",value:function(e,t){var n=Object(C["a"])({},t,{scheduleEnable:Object(c["k"])(e),schedule:{channel:this.index}});return l["b"].sendCommand(l["c"][t].cmdV20OfSet,n,0)}},{key:"getOldAlarmTask",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getCGIOldSchedule(t);case 2:return n=e.sent,i=Object(w["a"])(n.schedule.table).map((function(e){var t=~~e;switch(t){case g.NONE:t=y["EAlarmModeVal"].NONE;break;case g.MD:t=y["EAlarmModeVal"].MD;break;case g.TIMING:t=y["EAlarmModeVal"].TIMING;break;default:break}return t})),a={iTimeTable:i},e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setOldAlarmTask",value:function(e,t){var n=e.iTimeTable.map((function(e){var t=~~e;switch(t){case y["EAlarmModeVal"].NONE:t=g.NONE;break;case y["EAlarmModeVal"].MD:t=g.MD;break;case y["EAlarmModeVal"].TIMING:t=g.TIMING;break;default:break}return t})),i={schedule:{enable:this.oldSchedules[t].schedule.enable,table:Object(c["w"])(n)}};return this.setCGIOldSchedule(i,t)}},{key:"getDefaultEncCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getEncCfg(!0));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getEncCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r,o,u,d,p,h=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=h.length>0&&void 0!==h[0]&&h[0],e.next=3,l["b"].sendCommand("GetEnc",{channel:this.index},1);case 3:return n=e.sent,i=n.value.Enc,t&&(i=n.initial.Enc),a=n.range.Enc,r=i.mainStream,o=i.subStream,u=s["BC_ENCODER_PROFILE_E"].BC_ENCODER_PROFILE_DEFAULT,d={iCur:0,iMin:0,iMax:0},p={bNoTrans:!0,mainstream:{bAudio:i.audio,iWidth:r.width,iHeight:r.height,lFrameRate:r.frameRate,lBitRate:r.bitRate,eEncProfile:Object(c["r"])(this.MAP_ENC_PROFILE,r.profile,u),gop:a[0].mainStream.gop?{iCur:r.gop,iMin:a[0].mainStream.gop.min,iMax:a[0].mainStream.gop.max}:d,cResolutionName:r.size,videoEncType:Object(c["r"])(this.MAP_VIDEO_ENCODING_FORMAT,r.vType,y["EVideoEncType"].H264),eEncType:3},substream:{bAudio:i.audio,iWidth:o.width,iHeight:o.height,lFrameRate:o.frameRate,lBitRate:o.bitRate,gop:a[0].subStream.gop?{iCur:o.gop,iMin:a[0].subStream.gop.min,iMax:a[0].subStream.gop.max}:d,eEncProfile:Object(c["r"])(this.MAP_ENC_PROFILE,o.profile,u),cResolutionName:o.size,videoEncType:Object(c["r"])(this.MAP_VIDEO_ENCODING_FORMAT,o.vType,y["EVideoEncType"].H264),eEncType:3},extendstream:{bAudio:i.audio,iWidth:0,iHeight:0,lFrameRate:0,lBitRate:0,gop:d,eEncProfile:255,cResolutionName:"",videoEncType:y["EVideoEncType"].H264,eEncType:3},lStreamTypes:0,bRestartWhenResChanged:!1},e.abrupt("return",p);case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setEncCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.mainstream,i=t.substream,a=this.MAP_ENC_PROFILE.get(n.eEncProfile),r=this.MAP_ENC_PROFILE.get(i.eEncProfile),s={Enc:{audio:Object(c["k"])(n.bAudio),channel:this.index,mainStream:Object(b["a"])({size:t.mainstream.cResolutionName,width:t.mainstream.iWidth,height:t.mainstream.iHeight,bitRate:n.lBitRate,frameRate:n.lFrameRate,gop:n.gop.iCur,vType:this.MAP_VIDEO_ENCODING_FORMAT.get(n.videoEncType)},void 0===a?{profile:a}:{}),subStream:Object(b["a"])({size:t.substream.cResolutionName,width:t.substream.iWidth,height:t.substream.iHeight,bitRate:i.lBitRate,frameRate:i.lFrameRate,gop:i.gop.iCur,vType:this.MAP_VIDEO_ENCODING_FORMAT.get(i.videoEncType)},void 0===r?{profile:r}:{})}},e.abrupt("return",l["b"].sendCommand("SetEnc",s,0));case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getOsdCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r,o,u=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=u.length>0&&void 0!==u[0]&&u[0],e.next=3,l["b"].sendCommand("GetOsd",{channel:this.index},1);case 3:return n=e.sent,i=n.value.Osd,t&&(i=n.initial.Osd),a=Object(c["r"])(this.MAP_OSD_POSITION,i.osdChannel.pos,"-100, -100").split(","),r=Object(c["r"])(this.MAP_OSD_POSITION,i.osdTime.pos,"-100, -100").split(","),o={channelName:{bShow:!!i.osdChannel.enable,iX:~~a[0],iY:~~a[1]},time:{bShow:!!i.osdTime.enable,iX:~~r[0],iY:~~r[1]},iBgColor:i.bgcolor,iWaterMark:i.watermark,byChannelName:i.osdChannel.name||"",isCopyTo:!1,eSize:s["BC_OSD_SIZE_E"].E_BC_OSD_SIZE_16,elanguage:s["BC_LANGUAGE_E"].E_BC_LANGUAGE_ENGLISH,iWaterMarkXPos:0,iWaterMarkYPos:0,validField:""},e.abrupt("return",o);case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setOsdCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.channelName,i=t.time,a={Osd:{bgcolor:Object(c["k"])(t.iBgColor),channel:this.index,osdChannel:{enable:Object(c["k"])(n.bShow),pos:this.MAP_OSD_POSITION.get("".concat(n.iX,",").concat(n.iY))},osdTime:{enable:Object(c["k"])(i.bShow),pos:this.MAP_OSD_POSITION.get("".concat(i.iX,",").concat(i.iY))},watermark:Object(c["k"])(t.iWaterMark)}},e.abrupt("return",l["b"].sendCommand("SetOsd",a,0));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getAudioVolume",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetAudioCfg",{channel:this.index},1);case 2:return t=e.sent,n=t.value["AudioCfg"],i=t.range["AudioCfg"],e.abrupt("return",{value:n.volume,max:i.volume.max,min:i.volume.min});case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setAudioVolume",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={AudioCfg:{volume:t.value,channel:this.index}},e.abrupt("return",l["b"].sendCommand("SetAudioCfg",n,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getVisitorLoudspeakerState",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetAudioCfg",{channel:this.index},0);case 2:return t=e.sent,n=t.value["AudioCfg"],e.abrupt("return",void 0===n.visitorLoudspeaker?y["EVisitorLoudspeakerState"].OFF:n.visitorLoudspeaker);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setVisitorLoudspeakerState",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={AudioCfg:{visitorLoudspeaker:t,channel:this.index}},e.abrupt("return",l["b"].sendCommand("SetAudioCfg",n,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getAIDetectCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetAiAlarm",{channel:this.index,ai_type:this.MAP_DETECT_TYPE.get(t)},0);case 2:return n=e.sent,i=n.value["AiAlarm"],this.alarmAreas[t]&&(this.alarmAreas[t].width=i.scope.cols,this.alarmAreas[t].height=i.scope.rows,this.alarmAreas[t].area=Object(c["y"])(i.scope.area)),e.abrupt("return",{type:t,sensitivity:i.sensitivity,stayTime:i.stay_time,minTargetWidth:i.min_target_width,minTargetHeight:i.min_target_height,maxTargetWidth:i.max_target_width,maxTargetHeight:i.max_target_height});case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setAIDetectCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={AiAlarm:{channel:this.index,scope:{cols:this.alarmAreas[t.type].width,rows:this.alarmAreas[t.type].height,area:Object(c["w"])(this.alarmAreas[t.type].area)},sensitivity:t.sensitivity,stay_time:t.stayTime,min_target_width:t.minTargetWidth,min_target_height:t.minTargetHeight,max_target_width:t.maxTargetWidth,max_target_height:t.maxTargetHeight,ai_type:this.MAP_DETECT_TYPE.get(t.type)}},e.abrupt("return",l["b"].sendCommand("SetAiAlarm",n,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getAlarmAreas",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetAiAlarm",{channel:this.index,ai_type:this.MAP_DETECT_TYPE.get(t)},0);case 2:return n=e.sent,i=n.value["AiAlarm"],this.alarmAreas[t].width=i.scope.cols,this.alarmAreas[t].height=i.scope.rows,this.alarmAreas[t].area=Object(c["y"])(i.scope.area),e.abrupt("return",this.alarmAreas[t]);case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setAlarmAreas",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n={},i=Object(v["a"])(t);try{for(i.s();!(a=i.n()).done;)r=a.value,n[this.MAP_DETECT_TYPE.get(r.type)]={area:Object(c["w"])(r.area),cols:r.width,rows:r.height}}catch(o){i.e(o)}finally{i.f()}return n.channel=this.index,e.next=6,l["b"].sendCommand("SetAlarmArea",n,0);case 6:t.forEach((function(e){s.alarmAreas[e.type]={type:e.type,width:e.width,height:e.height,area:e.area}}));case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getShelter",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r,s,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,A["a"].getDeviceWithHandle(this._channel.handle);case 2:return n=e.sent,e.next=5,n.isSD7();case 5:return i=e.sent,e.next=8,l["b"].sendCommand("GetMask",{channel:i?t:this.index,iLogicChannel:t},0);case 8:return a=e.sent,r=a.value.Mask,s=[],r.area&&(s=r.area.map((function(e){var t=e.block,n=e.screen;return{iX:t.x<<16|65535&n.width,iY:t.y<<16|65535&n.height,iWidth:t.width<<16|65535&n.width,iHeight:t.height<<16|65535&n.height}}))),o={iLogicChannel:t,bEnable:!!r.enable,area:s,byRes:""},e.abrupt("return",o);case 14:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setShelter",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.area.map((function(e){var t={top:e.iY>>16&65535,left:e.iX>>16&65535,width:e.iWidth>>16&65535,height:e.iHeight>>16&65535},n=65535&e.iWidth,i=65535&e.iHeight;return n<=0&&(n=1024),i<=0&&(i=768),{block:{height:t.height,width:t.width,x:t.left,y:t.top},screen:{height:i,width:n}}})),e.next=3,A["a"].getDeviceWithHandle(this._channel.handle);case 3:return i=e.sent,e.next=6,i.isSD7();case 6:return a=e.sent,r={Mask:{area:n,channel:a?t.iLogicChannel:this.index,iLogicChannel:t.iLogicChannel,enable:Object(c["k"])(t.bEnable)}},e.abrupt("return",l["b"].sendCommand("SetMask",r,0));case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getGuard",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetPtzGuard",{channel:this.index},0);case 2:return t=e.sent,n=t.value.PtzGuard,i={valid:!!n.bexistPos,enable:n.benable,timeout:n.timeout,action:y["EGuardAction"].GOTO,cImageName:n.imgName||""},e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setGuard",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={PtzGuard:{channel:this.index,cmdStr:this.MAP_GUARD_ACTION.get(t.action),benable:Object(c["k"])(t.enable),timeout:t.timeout,bSaveCurrentPos:y["EGuardAction"].SET===t.action?1:0,bexistPos:1,imgName:t.cImageName}},e.abrupt("return",l["b"].sendCommand("SetPtzGuard",n,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getRecordScheduleEnable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?this.getOldAlarmTaskEnable(l["a"].Rec):this.getNewAlarmTaskEnable(l["a"].Rec)}},{key:"setRecordScheduleEnable",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?this.setOldAlarmTaskEnable(e,l["a"].Rec):this.setNewAlarmTaskEnable(e,l["a"].Rec)}},{key:"getRecordSchedule",value:function(){return this.getOldAlarmTask(l["a"].Rec)}},{key:"setRecordSchedule",value:function(e){return this.setOldAlarmTask(e,l["a"].Rec)}},{key:"getRecordScheduleV20",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetRecV20",{channel:this.index},0);case 2:return t=e.sent,n=t.value[l["a"].Rec],i=n.schedule.table,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setRecordScheduleV20",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Object(C["a"])({},l["a"].Rec,{schedule:{channel:this.index,table:t}}),e.abrupt("return",l["b"].sendCommand("SetRecV20",n,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getMotionCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r,s,o,u,d,p=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetMdAlarm",{channel:this.index},0);case 2:t=e.sent,n=t.value.MdAlarm,i=Object(c["x"])(n.scope.table),a=n.sens.map((function(e){return{byBeginHour:e.beginHour,byBeginMinute:e.beginMin,byEndHour:e.endHour,byEndMinute:e.endMin,iSensitivity:p.MAX_SENSITIVITY-e.sensitivity}})),r=[],s=Object(v["a"])(n.newSens.sens);try{for(s.s();!(o=s.n()).done;)u=o.value,u.enable&&r.push({iEnable:u.enable,iPriority:u.priority,iBeginHour:u.beginHour,iBeginMinute:u.beginMin,iEndHour:u.endHour,iEndMinute:u.endMin,iSensitivity:this.MAX_SENSITIVITY-u.sensitivity})}catch(h){s.e(h)}finally{s.f()}return d={bEnable:!0,iWidth:n.scope.cols,iHeight:n.scope.rows,bMotionScope:i,sensitivityInfo:a,iSensVerion:n.useNewSens,newSensInfo:{iDefSensitivity:this.MAX_SENSITIVITY-n.newSens.sensDef,sensItems:r},alarmOut:{iType:0,bAlarmout:[!1]},byRelRecordChannel:[0],iTimeTable:[0],iUsePir:0,iInvalid:-1,isCopyTo:!1,validField:""},e.abrupt("return",d);case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setMotionCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r,s,o,u=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(n=Object(c["w"])(t.bMotionScope.map((function(e){return Object(c["k"])(e)}))),i=t.sensitivityInfo.map((function(e,t){return{beginHour:e.byBeginHour,beginMin:e.byBeginMinute,endHour:e.byEndHour,endMin:e.byEndMinute,id:t,sensitivity:u.MAX_SENSITIVITY-e.iSensitivity}})),a=[],r=0;r<4;r++)s=t.newSensInfo.sensItems[r],s?a.push({enable:Object(c["k"])(!!s.iEnable),beginHour:s.iBeginHour,beginMin:s.iBeginMinute,endHour:s.iEndHour,endMin:s.iEndMinute,id:r,priority:s.iPriority,sensitivity:this.MAX_SENSITIVITY-s.iSensitivity}):a.push({enable:0,beginHour:0,beginMin:0,endHour:0,endMin:0,id:0,priority:1,sensitivity:1});return o={MdAlarm:{channel:this.index,scope:{cols:t.iWidth,rows:t.iHeight,table:n},useNewSens:t.iSensVerion,sens:i,newSens:{sens:a,sensDef:this.MAX_SENSITIVITY-t.newSensInfo.iDefSensitivity}}},e.abrupt("return",l["b"].sendCommand("SetMdAlarm",o,0));case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getIspCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r,o,u,d,p,h=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=h.length>0&&void 0!==h[0]&&h[0],e.next=3,l["b"].sendCommandsAll([{cmd:"GetIsp",param:{channel:this.index},action:1},{cmd:"GetImage",param:{channel:this.index},action:1}]);case 3:return n=e.sent,i=n[0],a=i.value.Isp,this.isp=i.value,r=i.range.Isp,o=n[1],u=o.value.Image,t&&(a=i.initial.Isp,u=o.initial.Image),d={iAvailable:0,eMode:s["BC_ISP_BD_MODE_E"].BC_ISP_BD_MODE_AUTO,bright:{lMin:0,lMax:0,lCur:0},dark:{lMin:0,lMax:0,lCur:0}},e.t0=u.bright,e.t1=u.contrast,e.t2=u.saturation,e.t3=u.hue,e.t4=u.sharpen,e.t5=Object(c["r"])(this.MAP_ISP_ANTIFLICKER,a.antiFlicker,s["BC_ANTIFLICK_TYPE_E"].E_BC_ANTIFLICK_TYPE_UNKOWN),e.t6=Object(c["r"])(this.MAP_ISP_EXPOSURE,a.exposure,s["BC_EXPOSURE_TYPE_E"].E_BC_EXPOSURE_TYPE_AUTO),e.t7={lDefMin:r.gain.min,lDefMax:r.gain.max,lCurMin:a.gain.min,lCurMax:a.gain.max},e.t8={lDefMin:r.shutter.min,lDefMax:r.shutter.max,lCurMin:a.shutter.min,lCurMax:a.shutter.max},e.t9=Object(c["r"])(this.MAP_ISP_WHITE_BALANCE,a.whiteBalance,s["BC_AWB_SCENC_MODE_E"].E_BC_AWB_SCENC_MODE_AUTO),e.t10={lMin:r.redGain.min,lMax:r.redGain.max,lCur:a.redGain},e.t11={lMin:r.blueGain.min,lMax:r.blueGain.max,lCur:a.blueGain},e.t12=Object(c["r"])(this.MAP_ISP_DAY_NIGHT,a.dayNight,s["BC_DAY_NIGHT_MODE_E"].E_BC_DAY_NIGHT_MODE_AUTO),e.t13=Object(c["r"])(this.MAP_ISP_BACK_LIGHT,a.backLight,s["BC_BLC_MODE_E"].E_BC_BLC_MODE_CLOSE),e.t14={lMin:r.drc.min,lMax:r.drc.max,lCur:a.drc},e.t15={lMin:r.blc.min,lMax:r.blc.max,lCur:a.blc},e.t16={eMode:s["BC_DAY_NIGHT_THRESHOLD_MODE_E"].BC_DAY_NIGHT_THRESHOLD_MODE_DEFAULT,eCurStat:s["BC_DAY_NIGHT_STAT_E"].BC_DAY_NIGHT_STAT_DAY,value:{iCur:a.dayNightThreshold||0,iMin:r.dayNightThreshold?r.dayNightThreshold.min:0,iMax:r.dayNightThreshold?r.dayNightThreshold.max:0}},e.t17=!!a.mirroring,e.t18=!!a.rotation,e.t19=0===a.nr3d?s["BC_ISP_NR3D_E"].BC_NR3D_OFF_E:s["BC_ISP_NR3D_E"].BC_NR3D_HIGH_E,e.t20=c["k"],e.next=35,this._channel.supportIsp3dnr();case 35:if(e.t21=e.sent,e.t22=(0,e.t20)(e.t21),e.t23=a.bd_day?{iAvailable:1,eMode:Object(c["r"])(this.MAP_ISP_BD_MODE,a.bd_day.mode,s["BC_ISP_BD_MODE_E"].BC_ISP_BD_MODE_AUTO),bright:{lMin:r.bd_day.bright.min,lMax:r.bd_day.bright.max,lCur:a.bd_day.bright},dark:{lMin:r.bd_day.dark.min,lMax:r.bd_day.dark.max,lCur:a.bd_day.dark}}:d,!a.bd_night){e.next=50;break}return e.t25=c["k"],e.next=42,this._channel.supportAllColors();case 42:e.t26=!e.sent,e.t27=(0,e.t25)(e.t26),e.t28=Object(c["r"])(this.MAP_ISP_BD_MODE,a.bd_night.mode,s["BC_ISP_BD_MODE_E"].BC_ISP_BD_MODE_AUTO),e.t29={lMin:r.bd_night.bright.min,lMax:r.bd_night.bright.max,lCur:a.bd_night.bright},e.t30={lMin:r.bd_night.dark.min,lMax:r.bd_night.dark.max,lCur:a.bd_night.dark},e.t24={iAvailable:e.t27,eMode:e.t28,bright:e.t29,dark:e.t30},e.next=51;break;case 50:e.t24=d;case 51:return e.t31=e.t24,e.t32=a.bd_led_color?{iAvailable:1,eMode:Object(c["r"])(this.MAP_ISP_BD_MODE,a.bd_led_color.mode,s["BC_ISP_BD_MODE_E"].BC_ISP_BD_MODE_AUTO),bright:{lMin:r.bd_led_color.bright.min,lMax:r.bd_led_color.bright.max,lCur:a.bd_led_color.bright},dark:{lMin:r.bd_led_color.dark.min,lMax:r.bd_led_color.dark.max,lCur:a.bd_led_color.dark}}:d,e.t33=void 0===a.hdr?-1:a.hdr,e.t34=void 0===a.hdr||void 0===r.hdr?[]:r.hdr,e.t35=void 0===a.bright_sync_switch?-1:a.bright_sync_switch,e.t36=void 0===a.binningMode?y["EBinningMode"].CLOSE:a.binningMode,e.t37=void 0===r.binningMode?[y["EBinningMode"].CLOSE,y["EBinningMode"].AUTO]:r.binningMode,e.t38=s["BC_SHUTTER_AJUST_E"].E_BC_SHUTTER_AJUST_3,e.t39=[0],e.t40=s["BC_IR_CUT_TYPE_E"].E_BC_IR_CUT_TYPE_AUTO,e.t41={lMin:0,lMax:0,lCur:0},e.t42=-1,e.t43={ctrl:-1,width:0,height:0,area:[]},p={lBright:e.t0,lContrast:e.t1,lSaturation:e.t2,lHue:e.t3,lSharpen:e.t4,eAntiflick:e.t5,eExpType:e.t6,gainCtl:e.t7,shutterCtl:e.t8,eScencMode:e.t9,redGain:e.t10,blueGain:e.t11,eDayNightMode:e.t12,eBLCType:e.t13,DRCTarget:e.t14,BLCTarget:e.t15,dayNightThreshold:e.t16,bMirror:e.t17,bFlip:e.t18,eNR3D:e.t19,lSupportNR3D:e.t22,bdDayCtrl:e.t23,bdNightCtrl:e.t31,bdColorNightCtrl:e.t32,iHDR:e.t33,supportIspHDRModes:e.t34,iBrightSync:e.t35,binningMode:e.t36,binningModeOptions:e.t37,iHDRAbility:0,lChannel:0,lDefault:0,eShutterAjust:e.t38,bSupportAdvanced:!1,lSizeOfScencModes:0,scencModeList:e.t39,eIRCut:e.t40,lExposureLevel:0,lGainAjust:0,lAutoIrisState:0,AutoirisValue:e.t41,lFocusAutoiris:0,lSupportAutoiris:0,lIspVersion:0,validField:"",iFirstFrameStrategy:0,iConstantFrameRateAbility:0,iCdsType:e.t42,partialExposure:e.t43,encTypeAbility:0,encType:0},e.abrupt("return",p);case 66:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setIspCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={Isp:{antiFlicker:this.MAP_ISP_ANTIFLICKER.get(t.eAntiflick),backLight:this.MAP_ISP_BACK_LIGHT.get(t.eBLCType),blc:t.BLCTarget.lCur,blueGain:t.blueGain.lCur,channel:this.index,dayNight:this.MAP_ISP_DAY_NIGHT.get(t.eDayNightMode),drc:t.DRCTarget.lCur,exposure:this.MAP_ISP_EXPOSURE.get(t.eExpType),gain:{max:t.gainCtl.lCurMax,min:t.gainCtl.lCurMin},mirroring:Object(c["k"])(t.bMirror),nr3d:Object(c["k"])(!t.eNR3D),redGain:t.redGain.lCur,rotation:Object(c["k"])(t.bFlip),shutter:{max:t.shutterCtl.lCurMax,min:t.shutterCtl.lCurMin},whiteBalance:this.MAP_ISP_WHITE_BALANCE.get(t.eScencMode),bd_day:{iAvailable:t.bdDayCtrl.iAvailable,bright:t.bdDayCtrl.bright.lCur,dark:t.bdDayCtrl.dark.lCur,mode:this.MAP_ISP_BD_MODE.get(t.bdDayCtrl.eMode)},bd_led_color:{iAvailable:t.bdColorNightCtrl.iAvailable,bright:t.bdColorNightCtrl.bright.lCur,dark:t.bdColorNightCtrl.dark.lCur,mode:this.MAP_ISP_BD_MODE.get(t.bdColorNightCtrl.eMode)},bd_night:{iAvailable:t.bdNightCtrl.iAvailable,bright:t.bdNightCtrl.bright.lCur,dark:t.bdNightCtrl.dark.lCur,mode:this.MAP_ISP_BD_MODE.get(t.bdNightCtrl.eMode)},dayNightThreshold:t.dayNightThreshold.value.iCur,constantFrameRate:this.isp.Isp.constantFrameRate,bright_sync_switch:-1===t.iBrightSync?void 0:t.iBrightSync,binningMode:t.binningMode,hdr:t.iHDR}},i={Image:{bright:t.lBright,channel:this.index,contrast:t.lContrast,hue:t.lHue,saturation:t.lSaturation,sharpen:t.lSharpen}},e.next=4,l["b"].sendCommand("SetImage",i,0);case 4:return e.next=6,l["b"].sendCommand("SetIsp",n,0);case 6:this.isp=n;case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getDefaultIspCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getIspCfg(!0));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getDefaultOsdCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getOsdCfg(!0));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getEncType",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetIsp",{channel:this.index},1);case 2:if(t=e.sent,this.isp=t.value,n=this.isp.Isp,i=t.range.Isp,a=n.encType,void 0!==a&&void 0!==i.encType&&i.encType.length){e.next=9;break}return e.abrupt("return",{supportEncTypes:[],currentEncType:y["EEncType"].VBR});case 9:return r=[],this.MAP_ENCTYPE.forEach((function(e,t){i.encType.includes(e)&&r.push(t)})),e.abrupt("return",{supportEncTypes:r,currentEncType:Object(c["r"])(this.MAP_ENCTYPE,a,y["EEncType"].VBR)});case 12:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setEncType",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this.MAP_ENCTYPE.get(t),e.next=3,l["b"].sendCommand("SetIsp",{Isp:{channel:this.index,encType:n}},0);case 3:n&&(this.isp.Isp.encType=n);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getConstantFrameRate",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetIsp",{channel:this.index},1);case 2:if(t=e.sent,this.isp=t.value,n=this.isp.Isp,i=t.range.Isp,a=i.constantFrameRate,void 0!==n.constantFrameRate&&a.length){e.next=9;break}return e.abrupt("return",{supportConstantFrameRates:[],currentConstantFrameRate:y["EConstantFrameRate"].NOT_SUPPORT});case 9:return e.abrupt("return",{supportConstantFrameRates:a,currentConstantFrameRate:n.constantFrameRate});case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setConstantFrameRate",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={Isp:Object(b["a"])(Object(b["a"])({},this.isp.Isp),{},{constantFrameRate:t})},e.next=3,l["b"].sendCommand("SetIsp",n,0);case 3:this.isp=n;case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getDefaultConstantFrameRate",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetIsp",{channel:this.index},1);case 2:return t=e.sent,n=t.initial.Isp,e.abrupt("return",void 0===n.constantFrameRate?y["EConstantFrameRate"].NOT_SUPPORT:n.constantFrameRate);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getLedState",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r,o,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([this._channel.supportLEDControl(),this._channel.supportIndicatorLight()]);case 2:if(t=e.sent,n=Object(_["a"])(t,2),i=n[0],a=n[1],i||a){e.next=8;break}throw k["a"].getInfo(4294967281);case 8:if(!i){e.next=12;break}return e.next=11,l["b"].sendCommand("GetIrLights",{channel:this.index},0);case 11:r=e.sent;case 12:if(!i&&!a){e.next=16;break}return e.next=15,l["b"].sendCommand("GetPowerLed",{channel:this.index},0);case 15:o=e.sent;case 16:return u={eLEDState:r?Object(c["r"])(this.MAP_IR_LIGHTS,r.value.IrLights.state,s["BC_LED_STATE_E"].BC_LED_CLOSE):s["BC_LED_STATE_E"].BC_LED_CLOSE,eIndicatorLight:o?Object(c["r"])(this.MAP_POWER_LED,o.value.PowerLed.state,s["BC_LIGHT_STATE_E"].BC_LIGHT_CLOSE):s["BC_LIGHT_STATE_E"].BC_LIGHT_CLOSE,eDoorbellLightState:o?Object(c["r"])(this.MAP_POWER_LED_DOORBELL,o.value.PowerLed.eDoorbellLightState,s["BC_DOORBELL_LIGHT_STATE_E"].BC_DOORBELL_LIGHT_STATE_CLOSE):s["BC_DOORBELL_LIGHT_STATE_E"].BC_DOORBELL_LIGHT_STATE_CLOSE,iVersion:0,validField:"",irLedBrightness:100},e.abrupt("return",u);case 18:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setLedState",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r,s,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([this._channel.supportLEDControl(),this._channel.supportIndicatorLight()]);case 2:if(n=e.sent,i=Object(_["a"])(n,2),a=i[0],r=i[1],a||r){e.next=8;break}throw k["a"].getInfo(4294967281);case 8:return s={IrLights:{channel:this.index,state:this.MAP_IR_LIGHTS.get(t.eLEDState)}},o={PowerLed:{channel:this.index,state:this.MAP_POWER_LED.get(t.eIndicatorLight),eDoorbellLightState:this.MAP_POWER_LED_DOORBELL.get(t.eDoorbellLightState)}},c=[],a&&c.push({cmd:"SetIrLights",param:s,action:0}),(a||r)&&c.push({cmd:"SetPowerLed",param:o,action:0}),e.abrupt("return",l["b"].sendCommandsAll(c));case 14:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getFtpTaskEnable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?this.getOldAlarmTaskEnable(l["a"].Ftp):this.getNewAlarmTaskEnable(l["a"].Ftp)}},{key:"setFtpTaskEnable",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?this.setOldAlarmTaskEnable(e,l["a"].Ftp):this.setNewAlarmTaskEnable(e,l["a"].Ftp)}},{key:"getFtpTask",value:function(){return this.getOldAlarmTask(l["a"].Ftp)}},{key:"setFtpTask",value:function(e){return this.setOldAlarmTask(e,l["a"].Ftp)}},{key:"getFtpTaskV20",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetFtpV20",{channel:this.index},0);case 2:return t=e.sent,n=t.value[l["a"].Ftp],i=n.schedule.table,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setFtpTaskV20",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Object(C["a"])({},l["a"].Ftp,{schedule:{channel:this.index,table:t}}),e.abrupt("return",l["b"].sendCommand("SetFtpV20",n,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getBuzzerAlarmTaskEnable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?this.getOldAlarmTaskEnable(l["a"].Buzzer):this.getNewAlarmTaskEnable(l["a"].Buzzer)}},{key:"setBuzzerAlarmTaskEnable",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?this.setOldAlarmTaskEnable(e,l["a"].Buzzer):this.setNewAlarmTaskEnable(e,l["a"].Buzzer)}},{key:"getBuzzerAlarmTask",value:function(){return this.getOldAlarmTask(l["a"].Buzzer)}},{key:"setBuzzerAlarmTask",value:function(e){return this.setOldAlarmTask(e,l["a"].Buzzer)}},{key:"getBuzzerAlarmTaskV20",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetBuzzerAlarmV20",{channel:this.index},0);case 2:return t=e.sent,n=t.value[l["a"].Buzzer],i=n.schedule.table,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setBuzzerAlarmTaskV20",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Object(C["a"])({},l["a"].Buzzer,{schedule:{channel:this.index,table:t}}),e.abrupt("return",l["b"].sendCommand("SetBuzzerAlarmV20",n,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getEmailTaskEnable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?this.getOldAlarmTaskEnable(l["a"].Email):this.getNewAlarmTaskEnable(l["a"].Email)}},{key:"setEmailTaskEnable",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?this.setOldAlarmTaskEnable(e,l["a"].Email):this.setNewAlarmTaskEnable(e,l["a"].Email)}},{key:"getEmailTask",value:function(){return this.getOldAlarmTask(l["a"].Email)}},{key:"setEmailTask",value:function(e){return this.setOldAlarmTask(e,l["a"].Email)}},{key:"getEmailTaskV20",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetEmailV20",{channel:this.index},0);case 2:return t=e.sent,n=t.value[l["a"].Email],i=n.schedule.table,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setEmailTaskV20",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Object(C["a"])({},l["a"].Email,{schedule:{channel:this.index,table:t}}),e.abrupt("return",l["b"].sendCommand("SetEmailV20",n,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getPushTaskEnable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?this.getOldAlarmTaskEnable(l["a"].Push):this.getNewAlarmTaskEnable(l["a"].Push)}},{key:"setPushTaskEnable",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?this.setOldAlarmTaskEnable(e,l["a"].Push):this.setNewAlarmTaskEnable(e,l["a"].Push)}},{key:"getPushTask",value:function(){return this.getOldAlarmTask(l["a"].Push)}},{key:"setPushTask",value:function(e){return this.setOldAlarmTask(e,l["a"].Push)}},{key:"getPushTaskV20",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetPushV20",{channel:this.index},0);case 2:return t=e.sent,n=t.value[l["a"].Push],i=n.schedule.table,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPushTaskV20",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Object(C["a"])({},l["a"].Push,{schedule:{channel:this.index,table:t}}),e.abrupt("return",l["b"].sendCommand("SetPushV20",n,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getAudioAlarmEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetAudioAlarmV20",{channel:this.index},0);case 2:return t=e.sent,this.audioAlarmSchedules=t.value,n=t.value["Audio"],e.abrupt("return",void 0===n.enable||!!n.enable);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setAudioAlarmEnable",value:function(e){if(!this.audioAlarmSchedules.Audio||!this.audioAlarmSchedules.Audio.schedule)throw-1;var t={Audio:{enable:Object(c["k"])(e),schedule:{channel:this.index,table:this.audioAlarmSchedules.Audio.schedule.table}}};return this.audioAlarmSchedules=t,l["b"].sendCommand("SetAudioAlarmV20",t,0)}},{key:"getAudioTaskEnable",value:function(){return this.getOldAlarmTaskEnable(l["a"].Audio)}},{key:"setAudioTaskEnable",value:function(e){return this.setOldAlarmTaskEnable(e,l["a"].Audio)}},{key:"getAudioTask",value:function(){return this.getOldAlarmTask(l["a"].Audio)}},{key:"setAudioTask",value:function(e){return this.setOldAlarmTask(e,l["a"].Audio)}},{key:"getAudioTaskV20",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetAudioAlarmV20",{channel:this.index},0);case 2:return t=e.sent,n=t.value[l["a"].Audio],i=n.schedule.table,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setAudioTaskV20",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Object(C["a"])({},l["a"].Audio,{schedule:{channel:this.index,table:t}}),e.abrupt("return",l["b"].sendCommand("SetAudioAlarmV20",n,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getAIDenoiseCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetAiDenoise",{channel:this.index},1);case 2:return t=e.sent,n=t.value.aiDenoise,i=t.range.aiDenoise.aiDenoiseLevel||[1,2,3,4,5],a={enable:n.enable,level:n.aiDenoiseLevel,levelOptions:i},e.abrupt("return",a);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setAIDenoiseCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={aiDenoise:{channel:this.index,aiDenoiseLevel:t.level,enable:Object(c["k"])(t.enable)}},e.abrupt("return",l["b"].sendCommand("SetAiDenoise",n,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getAFAlgorithm",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetAutoFocus",{channel:this.index},0);case 2:return t=e.sent,n=t.value.AutoFocus,e.abrupt("return",{mode:void 0===n.afType?s["BC_AF_ALGORITHM_MODE_E"].BC_AF_ALGORITHM_MODE_QUICK:n.afType});case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setAFAlgorithm",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",l["b"].sendCommand("SetAutoFocus",{AutoFocus:{channel:this.index,afType:t.mode}},0));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getAutoFocus",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetAutoFocus",{channel:this.index},0);case 2:return t=e.sent,n=t.value.AutoFocus,i={iDisable:n.disable},e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setAutoFocus",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={AutoFocus:{disable:Object(c["k"])(t.iDisable)}},e.abrupt("return",l["b"].sendCommand("SetAutoFocus",n,0));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getZoomFocusInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetZoomFocus",{channel:this.index},1);case 2:return t=e.sent,n=t.value.ZoomFocus,i=t.range.ZoomFocus,a={iZoomMaxPos:i.zoom.pos.max,iZoomMinPos:i.zoom.pos.min,iZoomCurPos:n.zoom.pos,iFocusMaxPos:i.focus.pos.max,iFocusMinPos:i.focus.pos.min,iFocusCurPos:n.focus.pos},e.abrupt("return",a);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"startZoomFocus",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={ZoomFocus:{channel:this.index,pos:t.iPos,op:this.MAP_ZOOM_FOCUS_CMD.get(t.cmd)}},e.abrupt("return",l["b"].sendCommand("StartZoomFocus",n,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getPresets",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r,s,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetPtzPreset",{channel:this.index},1);case 2:t=e.sent,n=t.value.PtzPreset,i=t.range.PtzPreset,a=[],r=Object(v["a"])(n),e.prev=7,r.s();case 9:if((s=r.n()).done){e.next=16;break}if(o=s.value,o.enable){e.next=13;break}return e.abrupt("continue",14);case 13:a.push({iPtzCmd:-1,iPresetId:o.id,name:o.name,imageName:o.imgName||""});case 14:e.next=9;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e["catch"](7),r.e(e.t0);case 21:return e.prev=21,r.f(),e.finish(21);case 24:return c={iChannelId:this.index,iMaxNumber:i.id.max?i.id.max+1:64,iSize:a.length,preset:a},e.abrupt("return",c);case 26:case"end":return e.stop()}}),e,this,[[7,18,21,24]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"ptzCtrl",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i={channel:this.index,op:t,id:n},e.abrupt("return",l["b"].sendCommand("PtzCtrl",i,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"presetInvoke",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ptzCtrl("ToPos",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setPtzPreset",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n,i,a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",l["b"].sendCommand("SetPtzPreset",{PtzPreset:{channel:this.index,enable:a,id:t,name:n,imgName:i}},0));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n,i,a){return e.apply(this,arguments)}return t}()},{key:"setPresets",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=t.preset[0],e.t0=n.iPtzCmd,e.next=e.t0===s["PTZ_CMD_E"].PTZ_TOPOS?4:e.t0===s["PTZ_CMD_E"].PTZ_SETPOS?5:e.t0===s["PTZ_CMD_E"].PTZ_DELPOS?6:-1===e.t0?7:8;break;case 4:return e.abrupt("return",this.presetInvoke(n.iPresetId));case 5:return e.abrupt("return",this.setPtzPreset(n.iPresetId,n.name,n.imageName,1));case 6:return e.abrupt("return",this.setPtzPreset(n.iPresetId,n.name,n.imageName,0));case 7:return e.abrupt("return",this.setPtzPreset(n.iPresetId,n.name,n.imageName));case 8:return e.abrupt("break",9);case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getCruises",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r,s,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetPtzPatrol",{channel:this.index},0);case 2:t=e.sent,n=t.value.PtzPatrol,i=[],a=Object(v["a"])(n);try{for(a.s();!(r=a.n()).done;)s=r.value,o=s.preset&&s.preset.length?s.preset:[],i.push({iValid:s.enable,iStarting:s.running,iPatrolId:s.id,iPresetId:o.map((function(e){return e.id})),iTime:o.map((function(e){return e.dwellTime})),iSpeed:o.map((function(e){return e.speed})),name:s.name})}catch(u){a.e(u)}finally{a.f()}return i.sort((function(e,t){return t.iValid-e.iValid})),c={iChannel:this.index,iSize:1,cruise:i},e.abrupt("return",c);case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setCruise",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(n=t.cruise[0],i=[],a=n.iPresetId.length,r=0;rd||l>p)&&(c/l>d/p?(i=d,u=Math.round(d*(l/c))):(u=p,i=Math.round(p*(c/l)))),r.width=i,r.height=u,s.clearRect(0,0,i,u),s.drawImage(o,0,0,i,u),h=null,m=1;case 13:if(!(m>.9)){e.next=25;break}return e.next=16,t.canvasToBlob(r,m);case 16:if(h=e.sent,h){e.next=20;break}return a("resizeImg > canvasToBlob > blob is null"),e.abrupt("return");case 20:if(!(h.size<=14336)){e.next=22;break}return e.abrupt("break",25);case 22:m-=.005,e.next=13;break;case 25:n(h);case 26:case"end":return e.stop()}}),e)}))),o.onerror=function(e){a()}}))}},{key:"canvasToBlob",value:function(e,t){return new Promise((function(n,i){e.toBlob((function(e){n(e)}),"image/jpeg",t)}))}},{key:"imgUpload",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){var i,a,r,s,o,c,u,l,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=O["a"](),a="ImportImg",r=ControllerLogin.getQueryDataByCount([],a,2),s="",-1!==r&&(s=r.query),o=new FormData,c=i+"&"+n+"&"+t.size+"&"+this.index,o.append("ptz-image",t,c),e.prev=8,l="cgi-bin/api.cgi?token=".concat(I["a"].recover2Str(ControllerLogin.token),"&cmd=").concat(a,"&file=ptz-image&").concat(s),e.next=12,E["b"].post(l,o,{headers:{"Content-Type":"image/jpeg"},timeout:12e4});case 12:u=e.sent,e.next=19;break;case 15:throw e.prev=15,e.t0=e["catch"](8),x["a"].error("ipcChannelConfigProxy.ts > imgUpload > ajax send: ",e.t0),e.t0;case 19:if(d=u.data[0],d&&0===d.code){e.next=23;break}throw x["a"].error("ipcChannelConfigProxy.ts > imgUpload > failed with data: ",d),new Error("failed with data");case 23:case"end":return e.stop()}}),e,this,[[8,15]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"importPtzImg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.resizeImg(n);case 2:return i=e.sent,e.abrupt("return",this.imgUpload(i,t));case 4:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"deletePtzImg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",l["b"].sendCommand("DeleteImg",{DeleteImg:{channel:this.index,FileName:t}},0));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"importImageFile",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){var i,a=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=a.length>2&&void 0!==a[2]&&a[2],!i){e.next=5;break}return e.abrupt("return",this.deletePtzImg(t));case 5:return e.abrupt("return",this.importPtzImg(t,n));case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"exportImageFile",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r.length>1&&void 0!==r[1]?r[1]:"",e.next=3,l["b"].sendCommand("ExportImg",{ExportImg:{channel:this.index,FileName:t}},0);case 3:return n=e.sent,i=window.URL||window.webkitURL,a=i.createObjectURL(n),e.abrupt("return",a);case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getBatteryAnalysis",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:throw k["a"].getInfo(4294967281);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getFloodlightTask",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetWhiteLed",{channel:this.index},0);case 2:return t=e.sent,n=t.value.WhiteLed,i={},n.wlAiDetectType&&this.MAP_AI_TRACK_DETECT_CATE.forEach((function(e,t){void 0!==n.wlAiDetectType[e]&&(i[t]=n.wlAiDetectType[e])})),a={mode:n.mode,iAutoBright:-1,timingVision:{beginHour:n.LightingSchedule.StartHour,beginMinute:n.LightingSchedule.StartMin,endHour:n.LightingSchedule.EndHour,endMinute:n.LightingSchedule.EndMin},lightAlarm:{beginHour:n.LightAlarm?n.LightAlarm.StartHour:18,beginMinute:n.LightAlarm?n.LightAlarm.StartMin:0,endHour:n.LightAlarm?n.LightAlarm.EndHour:7,endMinute:n.LightAlarm?n.LightAlarm.EndMin:0},bright:{iCur:n.bright,iDef:0,iMin:0,iMax:0},wlAiDetectType:i,iAutoByPreview:0},e.abrupt("return",a);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setFloodlightTask",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i in n={},t.wlAiDetectType)a=this.MAP_AI_TRACK_DETECT_CATE.get(i),a&&(n[a]=t.wlAiDetectType[i]);return r={WhiteLed:{LightingSchedule:{EndHour:t.timingVision.endHour,EndMin:t.timingVision.endMinute,StartHour:t.timingVision.beginHour,StartMin:t.timingVision.beginMinute},LightAlarm:{EndHour:t.lightAlarm.endHour,EndMin:t.lightAlarm.endMinute,StartHour:t.lightAlarm.beginHour,StartMin:t.lightAlarm.beginMinute},bright:t.bright.iCur,mode:t.mode,channel:this.index,wlAiDetectType:n}},e.abrupt("return",l["b"].sendCommand("SetWhiteLed",r,0));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getAiTrackCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r,s,o,u,d,p,h,m,g,f=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([l["b"].sendCommand("GetAiCfg",{channel:this.index},1),this._channel.supportAiTrackClassify()]);case 2:if(t=e.sent,n=Object(_["a"])(t,2),i=n[0],a=n[1],r=i.value,s=i.range,o={enable:!!r.bSmartTrack,aiTrack:Object(c["r"])(this.MAP_AI_TRACK_MODE,r.aiTrack,y["EAiTrackMode"].NONE),aiTrackModes:[],trackType:[],aiDetectType:[],trackObjectDisappearDelay:void 0===r.aiDisappearBackTime?-1:r.aiDisappearBackTime,trackObjectStopDelay:void 0===r.aiStopBackTime?-1:r.aiStopBackTime,trackObjectDisappearDelayOptions:s.aiDisappearBackTime?s.aiDisappearBackTime:[],trackObjectStopDelayOptions:s.aiStopBackTime?s.aiStopBackTime:[]},Array.isArray(s.aiTrack)&&(o.aiTrackModes=s.aiTrack.map((function(e){return Object(c["r"])(f.MAP_AI_TRACK_MODE,e,y["EAiTrackMode"].NONE)}))),a)for(d in u=r.trackType,u)u[d]&&(p=Object(c["r"])(this.MAP_AI_TRACK_DETECT_CATE,d.trim(),void 0),p&&o.trackType.push(p));for(m in h=r.AiDetectType,h)h[m]&&(g=Object(c["r"])(this.MAP_AI_TRACK_DETECT_CATE,m.trim(),void 0),g&&o.aiDetectType.push(g));return e.abrupt("return",o);case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setAiTrackCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._channel.supportAiTrackClassify();case 2:return n=e.sent,i=this.MAP_AI_TRACK_MODE.get(t.aiTrack),a={bSmartTrack:Object(c["k"])(t.enable),aiTrack:void 0===i?0:i,trackType:{},AiDetectType:{},aiDisappearBackTime:t.trackObjectDisappearDelay,aiStopBackTime:t.trackObjectStopDelay,channel:this.index},n&&this.MAP_AI_TRACK_DETECT_CATE.forEach((function(e,n){t.trackType.includes(n)?a.trackType[e]=1:a.trackType[e]=0})),this.MAP_AI_TRACK_DETECT_CATE.forEach((function(e,n){t.aiDetectType.includes(n)?a.AiDetectType[e]=1:a.AiDetectType[e]=0})),e.abrupt("return",l["b"].sendCommand("SetAiCfg",a,0));case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getSmartTrackTask",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetAiCfg",{channel:this.index},0);case 2:return t=e.sent,e.abrupt("return",Object(C["a"])({},S["EScheduleMode"].Unknown,t.value.trackTask));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setSmartTrackTask",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",l["b"].sendCommand("SetAiCfg",{channel:this.index,trackTask:t[S["EScheduleMode"].Unknown]},0));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getSmartTrackLimit",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetPtzTraceSection",{PtzTraceSection:{channel:this.index}},0);case 2:return t=e.sent,n=t.value.PtzTraceSection,e.abrupt("return",{leftPos:n.LimitLeft,leftImgName:n.ImgLeftName,rightPos:n.LimitRight,rightImgName:n.ImgRightName});case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setSmartTrackLimit",value:function(e){var t={PtzTraceSection:{channel:this.index,ImgLeftName:e.leftImgName,ImgRightName:e.rightImgName,LimitLeft:e.leftPos,LimitRight:e.rightPos}};return l["b"].sendCommand("SetPtzTraceSection",t,0)}},{key:"getPtzCurPos",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetPtzCurPos",{PtzCurPos:{channel:this.index}},0);case 2:return t=e.sent,e.abrupt("return",t.value.PtzCurPos.Ppos);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"dingDongCtrl",value:function(e){return l["b"].sendCommand("DingDongCtrl",{DingDong:{channel:this.index,modeCtrl:e.ctrl}},0)}},{key:"dingDongManualRing",value:function(e){return l["b"].sendCommand("DingDongOpt",{DingDong:{channel:this.index,option:4,id:e.identifier.dingDongId,musicId:e.musicId}},0)}},{key:"dingDongPair",value:function(e){return l["b"].sendCommand("DingDongOpt",{DingDong:{channel:this.index,option:0,id:e}},0)}},{key:"dingDongUnpair",value:function(e){return l["b"].sendCommand("DingDongOpt",{DingDong:{channel:this.index,option:1,id:e}},0)}},{key:"getDingDongList",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetDingDongList",{channel:this.index},0);case 2:return n=e.sent,i=n.value.DingDongList,a="paired"===t?i.pairedlist:i.scanlist,r=(a||[]).map((function(e){return{identifier:{dingDongId:e.deviceId},name:e.deviceName,netState:void 0===e.netState?2:e.netState}})),e.abrupt("return",{maxPairNumber:i.maxPairNumber,size:r.length,dingDong:r});case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getPairedDingDongList",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getDingDongList("paired"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getScanDingDongList",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDingDongList("scan");case 2:return t=e.sent,e.abrupt("return",t.dingDong);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getDingDongOption",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("DingDongOpt",{DingDong:{channel:this.index,option:2,id:t}},1);case 2:for(n=e.sent,i=n.range.DingDong,a=n.value.DingDong,r=[],s=i.volLevel.min;s<=i.volLevel.max;s++)r.push(s);return e.abrupt("return",{dingDongId:t,volume:{defaultLevel:a.volLevel,level:a.volLevel,levelOptions:r},ledState:a.ledState,name:a.name});case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setDingDongOption",value:function(e){var t={DingDong:{channel:this.index,option:3,id:e.dingDongId,name:e.name,volLevel:e.volume.level,ledState:e.ledState}};return l["b"].sendCommand("DingDongOpt",t,0)}},{key:"getDingDongDeviceName",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDingDongOption(t);case 2:return n=e.sent,e.abrupt("return",n.name);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setDingDongDeviceName",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDingDongOption(t);case 2:return i=e.sent,e.abrupt("return",this.setDingDongOption(Object(b["a"])(Object(b["a"])({},i),{},{dingDongId:t,name:n})));case 4:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getDingDongAudioInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r,s,o,u,d,p,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetDingDongCfg",{channel:this.index},1);case 2:t=e.sent,n=t.value.DingDongCfg,i=n.pairedlist,a={},r=Object(v["a"])(i);try{for(r.s();!(s=r.n()).done;){for(p in o=s.value,u={ringName:o.ringName,type:{}},d=o.type,d)h=Object(c["r"])(this.MAP_DINGDONG_ALARM_TYPE,p,S["EScheduleMode"].Unknown),u.type[h]={enable:d[p].switch,musicId:d[p].musicId};a[o.ringId]=u}}catch(m){r.e(m)}finally{r.f()}return e.abrupt("return",a);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setDingDongAudioInfo",value:function(e,t,n){var i=this.MAP_DINGDONG_ALARM_TYPE.get(t);if(i){var a={DingDongCfg:{channel:this.index,ringId:e,type:Object(C["a"])({},i,{switch:n.enable,musicId:n.musicId})}};return l["b"].sendCommand("SetDingDongCfg",a,0)}}},{key:"manualRingDown",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this.MAP_MANUAL_RING_DOWN.get(t.eRingMode),i={channel:this.index,alarm_mode:n||"times",manual_switch:t.iOnOff,times:t.iTimes},e.abrupt("return",l["b"].sendCommand("AudioAlarmPlay",i,0));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getAudioFileList",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r,o,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetAudioFileList",{channel:this.index},1);case 2:for(t=e.sent,n=t.range.AudioFileList,i=t.value.AudioFileList,a=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=f.abilities[e];if(!i)return!1;var a=i.ver;return void 0!==n?a!==t&&a===n:a!==t}},{key:"getAbilityChnBy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=f.abilities.abilityChn[this.index][e];if(!i)return!1;var a=i.ver;return void 0!==n?a!==t&&a===n:a!==t}},{key:"getAbilityChnByGtCloseVal",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=f.abilities.abilityChn[this.index][e];if(!i)return!1;var a=i.ver;return void 0!==n?a>t&&a===n:a>t}},{key:"talkOpen",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"talkClose",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getTalkStatus",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",s["BCSDK_TALK_STATE_E"].BCSDK_TALK_STATE_CLOSED);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"permitReplay",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"permitPush",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"permitPtz",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"permitTalk",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"remoteGetIsVideoLoss",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.videoLoss);case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getEncProfileTable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetEnc",{channel:this.index},1);case 2:return t=e.sent,n=t.range.Enc,i=n.map((function(e){var t=e.mainStream,n=e.subStream;return{iChnBits:e.chnBit,mainstream:{eResolution:t.resolution,iWidth:t.width,iHigh:t.height,cResolutionName:t.size,lDefGop:t.default.gop||0,lDefFrameRate:t.default.frameRate,lDefBitRate:t.default.bitRate,lFrameRate:t.frameRate,lBitRate:t.bitRate},substream:{eResolution:n.resolution,iWidth:n.width,iHigh:n.height,cResolutionName:n.size,lDefGop:n.default.gop||0,lDefFrameRate:n.default.frameRate,lDefBitRate:n.default.bitRate,lFrameRate:n.frameRate,lBitRate:n.bitRate},extendstream:{eResolution:0,iWidth:0,iHigh:0,lDefGop:0,cResolutionName:"",lDefFrameRate:0,lDefBitRate:0,lFrameRate:[0],lBitRate:[0]}}})),a={profileNum:i.length,profile:i},e.abrupt("return",a);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"channelType",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=f.abilities.abilityChn[this.index]["channelType"],t){e.next=3;break}return e.abrupt("return",s["BC_CHANNEL_TYPE_E"].E_BC_CHANNEL_TYPE_BUTT);case 3:return e.abrupt("return",t.ver);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"lightType",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=f.abilities.abilityChn[this.index]["lightType"],t){e.next=3;break}return e.abrupt("return",s["BC_LIGHT_TYPE_E"].BC_LIGHT_TYPE_SPOTLIGHT);case 3:return e.abrupt("return",t.ver);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIspFirstFrameStrategy",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAi",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAi"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAiTrack",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("aiTrack"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAiTrackDogCat",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("aiTrackDogCat"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAiTrackClassify",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAiTrackClassify"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAiDetectConfig",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAiDetectConfig"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAiStayTime",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAiStayTime"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportMainStreamSnap",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportSubStreamSnap",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportExtendStreamSnap",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFullFrameSnap",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportControlSnapStream",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportGop",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportGop"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAISensitivity",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAiSensitivity"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAITargetSize",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAiTargetSize"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAiFace",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAiFace"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAiPeople",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAiPeople"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAiDogCat",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAiDogCat"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAIOther",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAIOther"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAiPackage",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAiPackage"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAITrackLimit",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAITrackLimit"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAITrackSchedule",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAITrackSchedule"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAIDenoise",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAIDenoise"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAiVehicle",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAiVehicle"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAudioVolumeSettings",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAoAdjust"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportPTSelfTestCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportPtzCalibration"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportGuard",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("ptzPreset"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportPtzSpeed",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportPtzSpeed"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportPtzCruise",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("ptzPatrol"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportPtzPreset",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("ptzPreset"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportZoomAndFocusSliderCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportZoomAndFocusSliderCfg"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportDigitalZoom",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportDigitalZoom"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportPtzPresetImage",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportPtzPresetImage"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportGuardPointImage",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportGuardPointImage"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportImportExportImage",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportImportExportImage"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportPtz3DLocation",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportPtz3DLocation"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportStandardFocusingAlgorithm",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAfAlgorithmSwitch"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportPt",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportPt"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAutoPt",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAutoPt"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportedPtDirection",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=8,n=f.abilities.abilityChn[this.index]["ptzDirection"],n&&(t=1===n.ver?4:2===n.ver?2:8),e.t0=t,e.next=2===e.t0?6:4===e.t0?7:(e.t0,8);break;case 6:return e.abrupt("return",[y["EDirections"].LEFT,y["EDirections"].RIGHT]);case 7:return e.abrupt("return",[y["EDirections"].LEFT,y["EDirections"].RIGHT,y["EDirections"].TOP,y["EDirections"].BOTTOM]);case 8:return e.abrupt("return",[y["EDirections"].LEFT,y["EDirections"].RIGHT,y["EDirections"].TOP,y["EDirections"].BOTTOM,y["EDirections"].TOP_LEFT,y["EDirections"].TOP_RIGHT,y["EDirections"].BOTTOM_LEFT,y["EDirections"].BOTTOM_RIGHT]);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportZoom",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportZoom"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFocus",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportFocus"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportLEDCtr",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIndicatorLight",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("indicatorLight"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportCropSnap",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportCameraMode",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportTalk",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAudio",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAutoFocus",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("disableAutoFocus"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportExtenStreamCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportExternLiveStream",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportLiveTelephotoMainStream",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportLiveTelephotoSubStream",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportLiveTrackStream",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportReplayTelephotoMainStream",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportReplayTelephotoSubStream",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportReplayTrackStream",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportMD",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportMd"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportMDWithPIR",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("mdWithPir"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIspDayNight",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("ispDayNight"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIspBrightDarkRegulate",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportWhiteDark"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAudioAlarmEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnByGtCloseVal("alarmAudio"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAudioAlarmSchedule",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnByGtCloseVal("alarmAudio"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportBatAnalysis",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("batAnalysis"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportManualRingDown",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportCustomRingtone",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportWaterMark",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("waterMark",0,1));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportOsdPadding",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("osd",0,2));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"isCharge",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"isBattery",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("battery"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportLEDControl",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnByGtCloseVal("ledControl"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportMDTriggerAudio",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("mdTriggerAudio"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportMDTriggerRecord",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("mdTriggerRecord"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportShelterCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("shelterCfg"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIspAntiFlick",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("ispAntiFlick"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIspExposureMode",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("ispExposureMode"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIspWhiteBalance",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("ispWhiteBalance"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIspBacklight",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("ispBackLight"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportThresholdAdjust",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportThresholdAdjust"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIsp3dnr",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("isp3Dnr"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIspMirror",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("ispMirror"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIspFlip",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("ispFlip"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIspBright",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("ispBright"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIspContrast",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("ispContrast"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAudioAlarm",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAudioAlarm"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAudioAlarmTaskEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAudioAlarmTaskEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIspSatruation",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("ispSatruation"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIspHue",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("ispHue"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIspSharpen",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("ispSharpen"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFloodLight",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportFLswitch"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFloodlightIntelligentVision",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportFLIntelligent"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFloodlightBrightness",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportFLBrightness"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFloodlightNightVision",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportFLKeepOn"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFloodlightTimingVision",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportFLSchedule"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFloodlightLightAlarmMode",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportWLLightAlarm"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFloodlightAutoAdaptBrightness",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportLightAutoBrightness"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAllColors",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAllColors"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportBinoStitch",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportBinoStitch"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportBuzzerMultiTask",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFloodlightAutoByPreview",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIspDayNightThreshold",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAudioFileList",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAudioFileList"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportDingDongCtrl",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportDingDongCtrl"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAutoReply",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAutoReply"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportWiFi",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportWiFi"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportEncoderSelectStreamTypes",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=new Map([[y["EStreamTypeInEncCfg"].mainstream,1],[y["EStreamTypeInEncCfg"].substream,2]]),n=f.abilities.abilityChn[this.index]["supportEncoderSelect"],n){e.next=4;break}return e.abrupt("return",[]);case 4:return i=[],t.forEach((function(e,t){n.ver&e&&i.push(t)})),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportTimelapse",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAiAnimal",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportAiAnimal"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportPreAudioAlarm",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIRLedBrightnessConfig",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFloodlightBrightnessAutoAdjusts",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportDoorbellLight",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportDoorbellLight"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportDoorbellLightKeepOff",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportDoorbellLightKeepOff"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportVisitorLoudspeaker",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportVisitorLoudspeaker"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFishEyeCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportFishEyeCfg"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportIspBinningModeCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("supportIspBinningModeCfg"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportPtzCurPosition",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onCropWindowEvent",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onPTZWindowEvent",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onTalkWindowEvent",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onQuickReplyWindowEvent",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onRingWindowEvent",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onTimelapseWindowEvent",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onFisheyeExpandWindowEvent",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"state",get:function(){return this._state}},{key:"identifier",get:function(){return this.state.get("identifier")}},{key:"deviceIdentifier",get:function(){return this.state.get("deviceIdentifier")}},{key:"handle",get:function(){return this.state.get("handle")}},{key:"uid",get:function(){return this.state.get("uid")},set:function(e){this.state.forceSet("uid",e)}},{key:"index",get:function(){return this.state.get("index")}},{key:"nasBindStatus",get:function(){return this.state.get("nasBindStatus")}},{key:"liveIndex",get:function(){return this.state.get("liveIndex")}},{key:"isMotion",get:function(){return this.state.get("isMotion")}},{key:"alarmType",get:function(){return this.state.get("alarmType")}},{key:"quickReplying",get:function(){return this.state.get("quickReplying")}},{key:"talking",get:function(){return this.state.get("talking")}},{key:"ptzing",get:function(){return this.state.get("ptzing")}},{key:"is3DLocationModeOn",get:function(){return this.state.get("is3DLocationModeOn")}},{key:"flooding",get:function(){return this.state.get("flooding")}},{key:"timelapseCreating",get:function(){return this.state.get("timelapseCreating")}},{key:"timelapseSetting",get:function(){return this.state.get("timelapseSetting")}},{key:"fishEyeExpandSetting",get:function(){return this.state.get("fishEyeExpandSetting")}},{key:"clientFisheyeExpansionCfg",get:function(){return this.state.get("clientFisheyeExpansionCfg")}},{key:"ringing",get:function(){return this.state.get("ringing")}},{key:"cliping",get:function(){return this.state.get("cliping")}},{key:"isAlarming",get:function(){return this.state.get("isAlarming")}},{key:"liveStreamOptions",get:function(){return this.state.get("liveStreamOptions")}},{key:"recordState",get:function(){return this.state.get("recordState")},set:function(e){this.state.forceSet("recordState",e)}},{key:"videoLoss",get:function(){return this.state.get("videoLoss")},set:function(e){this.state.forceSet("videoLoss",e)}},{key:"name",get:function(){var e=this.state.get("name");if(0===e.length){var t=this.index+1;e="Channel "+(t<10?"0"+t:""+t)}return e},set:function(e){this.state.forceSet("name",e)}},{key:"cacheImagePath",get:function(){return this.state.get("cacheImagePath")}},{key:"audioSampleRate",get:function(){return this.state.get("audioSampleRate")},set:function(e){this.state.forceSet("audioSampleRate",e)}},{key:"audioSamplePrecision",get:function(){return this.state.get("audioSamplePrecision")},set:function(e){this.state.forceSet("audioSamplePrecision",e)}},{key:"description",get:function(){return" handle: ("+this.handle+") index: ("+this.index+") "}},{key:"playback",get:function(){return this._playbackProxy}},{key:"ptz",get:function(){return this._ptzProxy}},{key:"live",get:function(){return this._liveProxy}},{key:"config",get:function(){return this._configProxy}},{key:"timelapse",get:function(){return this._timelapseProxy}}]),e}(),L=(n("7db0"),n("4d63"),n("25f0"),n("ecbb")),M=function(){function e(t){var n=this;Object(r["a"])(this,e),this.upgradeFirmwareCallback=void 0,this.configurationImportCallback=void 0,this.configurationExportCallback=void 0,this.diagnosisDataExportCallback=void 0,this.MAP_AUTO_MAINT_FREQUENCY=new Map([[s["BC_REBOOT_AT_E"].E_BC_RA_EVERY_DAY,"Everyday"],[s["BC_REBOOT_AT_E"].E_BC_RA_EVERY_SUNDAY,"Sunday"],[s["BC_REBOOT_AT_E"].E_BC_RA_EVERY_MONDAY,"Monday"],[s["BC_REBOOT_AT_E"].E_BC_RA_EVERY_TUESDAY,"Tuesday"],[s["BC_REBOOT_AT_E"].E_BC_RA_EVERY_WEDNESDAY,"Wednesday"],[s["BC_REBOOT_AT_E"].E_BC_RA_EVERY_THURSDAY,"Thursday"],[s["BC_REBOOT_AT_E"].E_BC_RA_EVERY_FRIDAY,"Friday"],[s["BC_REBOOT_AT_E"].E_BC_RA_EVERY_SATURDAY,"Saturday"]]),this.MAP_RECORD_PACKAGE_TIME=new Map([[30,"30 Minutes"],[45,"45 Minutes"],[60,"60 Minutes"]]),this.MAP_RECORD_POST_TIME=new Map([[15,"15 Seconds"],[30,"30 Seconds"],[60,"1 Minute"],[120,"2 Minutes"],[300,"5 Minutes"],[600,"10 Minutes"]]),this.MAP_EMAIL_INTERVAL=new Map([[3,"30 Seconds"],[6,"1 Minute"],[30,"5 Minutes"],[60,"10 Minutes"],[180,"30 Minutes"]]),this.MAP_LOCAL_LINK_TYPE=new Map([[s["BC_IP_OBTAIN_E"].E_BC_NT_STATIC,"Static"],[s["BC_IP_OBTAIN_E"].E_BC_NT_DHCP,"DHCP"]]),this.MAP_DDNS_TYPE=new Map([[s["BC_DDNS_TYPE_E"].E_BC_DT_NOIP,"no-ip"],[s["BC_DDNS_TYPE_E"].E_BC_DT_DYNDNS,"Dyndns"],[s["BC_DDNS_TYPE_E"].E_BC_DT_SWANN,"Swann"],[s["BC_DDNS_TYPE_E"].E_BC_DT_PEATNUTS,"Peatnuts"],[s["BC_DDNS_TYPE_E"].E_BC_DT_3322,"3322"]]),this.MAP_USER_LEVEL=new Map([[0,"guest"],[1,"admin"]]),this._device=t,L["a"].subscribe("subscribe_firmware_progress",this.handle,-1,(function(e){n.upgradeFirmwareCallback&&n.upgradeFirmwareCallback(e.data.code,e.data.percent)})),L["a"].subscribe("subscribe_config_import_progress",this.handle,-1,(function(e){n.configurationImportCallback&&n.configurationImportCallback(e.data.code,e.data.percent)})),L["a"].subscribe("subscribe_config_export_progress",this.handle,-1,(function(e){n.configurationExportCallback&&n.configurationExportCallback(e.data.code,e.data.percent)}))}return Object(a["a"])(e,[{key:"transferWifiSignal",value:function(e){switch(e){case 1:return-65;case 2:return-55;case 3:return-45;case 4:return-35;default:return 100}}},{key:"getCGIConfigEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand(l["c"][t].cmdV20OfGet,{channel:0},0);case 2:return n=e.sent,i=n.value[t],a=void 0===i.enable||!!i.enable,e.abrupt("return",{isMainSwitchOn:a,hasEnabledChannel:a});case 6:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setCGIConfigEnable",value:function(e,t){var n=Object(C["a"])({},t,{enable:Object(c["k"])(e)});return l["b"].sendCommand(l["c"][t].cmdV20OfSet,n,0)}},{key:"getPushAuth",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetAuthorization",{},0);case 2:return t=e.sent,n=t.value.Authorization,e.abrupt("return",!!n.PushAuth);case 5:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPushAuth",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",l["b"].sendCommand("SetAuthorization",{Authorization:{PushAuth:Object(c["k"])(t)}},0));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getVersionInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this._device.versionInfo.cCategory,t="B21"===t?"SD7":t,e.abrupt("return",Object(b["a"])(Object(b["a"])({},this._device.versionInfo),{},{cCategory:t}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getLoginLock",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,l["b"].sendCommand("GetSysCfg",{},0);case 3:return t=e.sent,n=t.value.SysCfg,e.abrupt("return",void 0===n.loginLock?-1:n.loginLock);case 8:return e.prev=8,e.t0=e["catch"](0),e.abrupt("return",-1);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"setLoginLock",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={SysCfg:{loginLock:t}},e.abrupt("return",l["b"].sendCommand("SetSysCfg",n,0));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getSysGeneralCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetTime",{},0);case 2:n=e.sent,i=n.value,a=i.Time,e.t0=a.timeFmt,e.next="MM/DD/YYYY"===e.t0?8:"YYYY/MM/DD"===e.t0?10:12;break;case 8:return r=s["BC_DATE_TYPE_E"].E_BC_OSD_MDY,e.abrupt("break",14);case 10:return r=s["BC_DATE_TYPE_E"].E_BC_OSD_YMD,e.abrupt("break",14);case 12:return r=s["BC_DATE_TYPE_E"].E_BC_OSD_DMY,e.abrupt("break",14);case 14:return o={iTimeZone:a.timeZone,eDateFormat:r,eTimeFormat:a.hourFmt,isDst:null!==(t=a.isDst)&&void 0!==t?t:-1,iYear:a.year,iMonth:a.mon,iDay:a.day,iHour:a.hour,iMin:a.min,iSecond:a.sec,validField:"",eTS:s["BC_TVSYSTEM_E"].E_BC_TS_PAL,iDeviceId:0,iLanguage:1,cDeviceName:"",iLoginLock:0,iLoginLockTime:0,iAllowedLoginTimes:0,iSyncTime:0},e.abrupt("return",o);case 16:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setSysGeneralCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:e.t0=t.eDateFormat,e.next=e.t0===s["BC_DATE_TYPE_E"].E_BC_OSD_MDY?3:e.t0===s["BC_DATE_TYPE_E"].E_BC_OSD_YMD?5:7;break;case 3:return n="MM/DD/YYYY",e.abrupt("break",9);case 5:return n="YYYY/MM/DD",e.abrupt("break",9);case 7:return n="DD/MM/YYYY",e.abrupt("break",9);case 9:return i={Time:{}},t.validField?(new RegExp("eDateFormat").test(t.validField)&&(i.Time.timeFmt=n),new RegExp("eTimeFormat").test(t.validField)&&(i.Time.hourFmt=t.eTimeFormat),new RegExp("iTimeZone").test(t.validField)&&(i.Time.timeZone=t.iTimeZone)):i.Time={timeFmt:n,timeZone:t.iTimeZone,hourFmt:t.eTimeFormat,year:t.iYear,mon:t.iMonth,day:t.iDay,hour:t.iHour,min:t.iMin,sec:t.iSecond},e.abrupt("return",l["b"].sendCommand("SetTime",i,0));case 12:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getDst",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetTime",{},0);case 2:return t=e.sent,n=t.value,i=n.Dst,a={bEnable:!!i.enable,iOffset:i.offset,iStartMonth:i.startMon,iStartIndex:i.startWeek,iStartWeekday:i.startWeekday,iStartHour:i.startHour,iStartMinute:i.startMin,iStartSecond:i.startSec,iEndMonth:i.endMon,iEndIndex:i.endWeek,iEndWeekday:i.endWeekday,iEndHour:i.endHour,iEndMinute:i.endMin,iEndSecond:i.endSec,iVersion:1,validField:""},e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setDst",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={Dst:{enable:Object(c["k"])(t.bEnable),offset:t.iOffset,startMon:t.iStartMonth,startWeek:t.iStartIndex,startWeekday:t.iStartWeekday,startHour:t.iStartHour,startMin:t.iStartMinute,startSec:t.iStartSecond,endMon:t.iEndMonth,endWeek:t.iEndIndex,endWeekday:t.iEndWeekday,endHour:t.iEndHour,endMin:t.iEndMinute,endSec:t.iEndSecond}},e.abrupt("return",l["b"].sendCommand("SetTime",n,0));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getDeviceName",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetDevName",{},0);case 2:return t=e.sent,e.abrupt("return",t.value.DevName.name);case 4:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setDeviceName",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={DevName:{name:t.cDeviceName}},e.next=3,l["b"].sendCommand("SetDevName",n,0);case 3:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getPush",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetPushCfg",{},1);case 2:return t=e.sent,n=t.value["PushCfg"],i=t.range["PushCfg"],a={iInterval:n.pushInterval,intervalList:{iSize:i.pushInterval.length,iInterval:i.pushInterval},delayEnable:0,delay:0,richNotificationEnable:0,consentAgreement:0},e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPush",value:function(e){var t={PushCfg:{pushInterval:e.iInterval}};return l["b"].sendCommand("SetPushCfg",t,0)}},{key:"getAutoRebootCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetAutoMaint",{},0);case 2:return t=e.sent,n=t.value.AutoMaint,i=Object(c["r"])(this.MAP_AUTO_MAINT_FREQUENCY,n.weekDay,s["BC_REBOOT_AT_E"].E_BC_RA_EVERY_DAY),a={bEnable:!!n.enable,eDay:i,iHour:n.hour,iMin:n.min,iSecond:n.sec},e.abrupt("return",a);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setAutoRebootCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={AutoMaint:{enable:Object(c["k"])(t.bEnable),hour:t.iHour,min:t.iMin,sec:t.iSecond,weekDay:this.MAP_AUTO_MAINT_FREQUENCY.get(t.eDay)}},e.abrupt("return",l["b"].sendCommand("SetAutoMaint",n,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getDiagnosisData",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.diagnosisDataExportCallback=n,e.abrupt("return",L["a"].simpleCall("device_diagnosis_data_export",this.handle,-1,t,0,1e9));case 2:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getRecordEnable",value:function(){return this.getCGIConfigEnable(l["a"].Rec)}},{key:"setRecordEnable",value:function(e,t){return this.setCGIConfigEnable(e,l["a"].Rec)}},{key:"getRecordGenCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r,s,o,u,d=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._device.supportMultiModesSchedule();case 2:return t=e.sent,n=t?"cmdV20OfGet":"cmdOfGet",e.next=6,l["b"].sendCommand(l["c"][l["a"].Rec][n],{channel:0},1);case 6:return i=e.sent,a=i.value[l["a"].Rec],r=i.range[l["a"].Rec],s=r.postRec.map((function(e){return Object(c["r"])(d.MAP_RECORD_POST_TIME,e,60)})),o=[0,1],r.saveDay&&r.saveDay.forEach((function(e){o.push(-e)})),u={iOverWrite:2===a.overwrite&&void 0!==a.saveDay?-a.saveDay:a.overwrite,iPackageTime:Object(c["r"])(this.MAP_RECORD_PACKAGE_TIME,a.packTime,30),iPostRecordTime:Object(c["r"])(this.MAP_RECORD_POST_TIME,a.postRec,60),bPreRecord:!!a.preRec,timeList:{iSize:s.length,durationTime:s},overWriteList:{iSize:o.length,durationTime:o},iTimelapseCycle:-1,iMaxRecordTime:8,validField:""},e.abrupt("return",u);case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setRecordGenCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._device.supportMultiModesSchedule();case 2:if(n=e.sent,i=Object(c["k"])(t.iOverWrite),t.iOverWrite<0&&(i=2),a={overwrite:i,saveDay:t.iOverWrite>0?0:-t.iOverWrite,postRec:this.MAP_RECORD_POST_TIME.get(t.iPostRecordTime),packTime:this.MAP_RECORD_PACKAGE_TIME.get(t.iPackageTime),preRec:Object(c["k"])(t.bPreRecord)},!n){e.next=9;break}return r=Object(C["a"])({},l["a"].Rec,Object(b["a"])({},a)),e.abrupt("return",l["b"].sendCommand(l["c"][l["a"].Rec].cmdV20OfSet,r,0));case 9:return s=Object(C["a"])({},l["a"].Rec,Object(b["a"])({channel:0},a)),e.abrupt("return",l["b"].sendCommand(l["c"][l["a"].Rec].cmdOfSet,s,0));case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getEmailEnable",value:function(){return this.getCGIConfigEnable(l["a"].Email)}},{key:"setEmailEnable",value:function(e,t){return this.setCGIConfigEnable(e,l["a"].Email)}},{key:"getMailCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r,s,o,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"enable";return void 0!==e[t]},e.next=3,this._device.supportMultiModesSchedule();case 3:return t=e.sent,n=t?"cmdV20OfGet":"cmdOfGet",e.next=7,l["b"].sendCommand(l["c"][l["a"].Email][n],{channel:0},1);case 7:return i=e.sent,a=i.value[l["a"].Email],r=i.range[l["a"].Email],s=Object(c["r"])(this.MAP_EMAIL_INTERVAL,a.interval,3),u={sender:{byAccount:a.userName,iSenderMaxLen:r.userName.maxLen,byPassword:I["a"].transform(a.password),iPwdMaxLen:r.password.maxLen},receiver:[{byAddress:a.addr1},{byAddress:a.addr2},{byAddress:a.addr3}],bySmtpServer:a.smtpServer,bSSL:!!a.ssl,iSmtpPort:a.smtpPort,iAttachment:a.attachmentType,bSupportVideo:!!a.supportVideo,bSupportTextType:!!a.supportTextType,iWithText:a.textType,iMailInterval:s,cSendNickname:a.nickName,bDiskFullAlert:!!o(a,"diskFullAlert")&&!!a.diskFullAlert,bDiskErrorAlert:!!o(a,"diskErrorAlert")&&!!a.diskErrorAlert,iAttachmentAbility:0,iDelayEnable:0,iDelay:0},e.abrupt("return",u);case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setMailCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._device.supportMultiModesSchedule();case 2:if(n=e.sent,i={addr1:t.receiver[0].byAddress,addr2:t.receiver[1].byAddress,addr3:t.receiver[2].byAddress,attachmentType:t.iAttachment,textType:t.iWithText,interval:this.MAP_EMAIL_INTERVAL.get(t.iMailInterval),password:I["a"].recover2Str(t.sender.byPassword),smtpPort:t.iSmtpPort,supportVideo:Object(c["k"])(t.bSupportVideo),supportTextType:Object(c["k"])(t.bSupportTextType),smtpServer:t.bySmtpServer,ssl:Object(c["k"])(t.bSSL),userName:t.sender.byAccount,nickName:t.cSendNickname,diskFullAlert:Object(c["k"])(t.bDiskFullAlert),diskErrorAlert:Object(c["k"])(t.bDiskErrorAlert)},!n){e.next=7;break}return a=Object(C["a"])({},l["a"].Email,Object(b["a"])({},i)),e.abrupt("return",l["b"].sendCommand(l["c"][l["a"].Email].cmdV20OfSet,a,0));case 7:return r=Object(C["a"])({},l["a"].Email,Object(b["a"])({},i)),e.abrupt("return",l["b"].sendCommand(l["c"][l["a"].Email].cmdOfSet,r,0));case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"emailTest",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={Email:{smtpServer:t.bySmtpServer,smtpPort:t.iSmtpPort,userName:t.sender.byAccount,password:I["a"].recover2Str(t.sender.byPassword),nickName:t.cSendNickname,ssl:Object(c["k"])(t.bSSL),interval:this.MAP_EMAIL_INTERVAL.get(t.iMailInterval),addr1:t.receiver[0].byAddress,addr2:t.receiver[1].byAddress,addr3:t.receiver[2].byAddress}},e.prev=1,e.next=4,l["b"].sendCommand("TestEmail",n,0,6e4);case 4:e.next=26;break;case 6:e.prev=6,e.t0=e["catch"](1),i=S["EEmailTestError"].auth,e.t1=e.t0.code,e.next=-481===e.t1?13:-482===e.t1?15:-483===e.t1?17:-484===e.t1?19:-485===e.t1?21:(e.t1,23);break;case 13:return i=S["EEmailTestError"].connect,e.abrupt("break",25);case 15:return i=S["EEmailTestError"].auth,e.abrupt("break",25);case 17:return i=S["EEmailTestError"].network,e.abrupt("break",25);case 19:return i=S["EEmailTestError"].server,e.abrupt("break",25);case 21:return i=S["EEmailTestError"].memory,e.abrupt("break",25);case 23:return i=S["EEmailTestError"].undefined,e.abrupt("break",25);case 25:throw i;case 26:case"end":return e.stop()}}),e,this,[[1,6]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getPushEnable",value:function(){return this.getCGIConfigEnable(l["a"].Push)}},{key:"setPushEnable",value:function(e,t){return this.setCGIConfigEnable(e,l["a"].Push)}},{key:"getHDDCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetHddInfo",{},0);case 2:return t=e.sent,n=t.value.HddInfo,i=n.map((function(e){return{iNumber:e.number,eStorageType:e.storageType,bFormat:!!e.format,bMount:!!e.mount,ullRemainSize:1024*e.size*1024,ullCapacity:1024*e.capacity*1024,bIsInUse:!1}})),a={iTotal:i.length,hdd:i},e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"initHdd",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={HddInfo:{id:t.iInitId}},e.abrupt("return",l["b"].sendCommand("Format",n,0,3e4));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getCertificateInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetCertificateInfo",{},0);case 2:return t=e.sent,n=t.value.CertificateInfo,i={enable:n.enable,crtName:n.crtName,keyName:n.keyName},e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"clearCertificate",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",l["b"].sendCommand("CertificateClear",{},0));case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getNetworkCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetLocalLink",{},0);case 2:return t=e.sent,n=t.value.LocalLink,i=Object(c["r"])(this.MAP_LOCAL_LINK_TYPE,n.type,0),a={eIpObtain:i,eAutodns:n.dns.auto,cIp:n.static.ip,cMask:n.static.mask,cGateway:n.static.gateway,cMac:n.mac,cDns1:n.dns.dns1,cDns2:n.dns.dns2},e.abrupt("return",a);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"importCertificate",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={importCertificate:{crt:t.crt,key:t.key}},e.abrupt("return",l["b"].sendCommand("ImportCertificate",n,0,3e4));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setNetworkCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={LocalLink:{dns:{auto:t.eAutodns,dns1:t.cDns1,dns2:t.cDns2},mac:t.cMac,static:{gateway:t.cGateway,ip:t.cIp,mask:t.cMask},type:this.MAP_LOCAL_LINK_TYPE.get(t.eIpObtain)}},e.abrupt("return",l["b"].sendCommand("SetLocalLink",n,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getNetPort",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetNetPort",{},0);case 2:return t=e.sent,n=t.value.NetPort,i={bSurvEnable:!0,iSurvPort:n.mediaPort,bHttpEnable:!!n.httpEnable,iHttpPort:n.httpPort,bHttpsEnable:!!n.httpsEnable,iHttpsPort:n.httpsPort,bOnvifEnable:!!n.onvifEnable,iOnvifPort:n.onvifPort,bRtspPortEnable:!!n.rtspEnable,iRtspPort:n.rtspPort,bRtmpPortEnable:!!n.rtmpEnable,iRtmpPort:n.rtmpPort},e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setNetPort",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={NetPort:{httpEnable:Object(c["k"])(t.bHttpEnable),httpPort:t.iHttpPort,httpsEnable:Object(c["k"])(t.bHttpsEnable),httpsPort:t.iHttpsPort,mediaPort:t.iSurvPort,onvifEnable:Object(c["k"])(t.bOnvifEnable),onvifPort:t.iOnvifPort,rtmpEnable:Object(c["k"])(t.bRtmpPortEnable),rtmpPort:t.iRtmpPort,rtspEnable:Object(c["k"])(t.bRtspPortEnable),rtspPort:t.iRtspPort}},e.abrupt("return",l["b"].sendCommand("SetNetPort",n,0));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getWifiKitCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetWifiKit",{},1);case 2:return n=e.sent,i=n.value.wifiKit,e.abrupt("return",(t={},Object(C["a"])(t,y["EWifiFreqType"].WIFI_TYPE_2_4G,{ssid:i["wifi2.4G"].ssid,password:i["wifi2.4G"].password,enableDfs:i["wifi2.4G"].enableDfs}),Object(C["a"])(t,y["EWifiFreqType"].WIFI_TYPE_5G,{ssid:i["wifi5G"].ssid,password:i["wifi5G"].password,enableDfs:i["wifi5G"].enableDfs}),t));case 5:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setWifiKitCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={wifiKit:{"wifi2.4G":{ssid:t[y["EWifiFreqType"].WIFI_TYPE_2_4G].ssid,password:t[y["EWifiFreqType"].WIFI_TYPE_2_4G].password,enableDfs:t[y["EWifiFreqType"].WIFI_TYPE_2_4G].enableDfs},wifi5G:{ssid:t[y["EWifiFreqType"].WIFI_TYPE_5G].ssid,password:t[y["EWifiFreqType"].WIFI_TYPE_5G].password,enableDfs:t[y["EWifiFreqType"].WIFI_TYPE_5G].enableDfs}}},e.abrupt("return",l["b"].sendCommand("SetWifiKit",n,0));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getUpnpCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetUpnp",{},0);case 2:return t=e.sent,n=t.value.Upnp,i={iEnable:n.enable},e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setUpnpCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={Upnp:{enable:Object(c["k"])(t.iEnable)}},e.abrupt("return",l["b"].sendCommand("SetUpnp",n,0));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getUidInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetP2p",{},0);case 2:return t=e.sent,n=t.value.P2p,i={cUid:n.uid,cUidKey:""},e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setUidInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={P2p:{uid:t.cUid}},e.abrupt("return",l["b"].sendCommand("SetP2p",n,0));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getP2PCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetP2p",{},0);case 2:return t=e.sent,n=t.value.P2p,i={iEnable:n.enable,iPort:0,serverDomainName:""},e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setP2PCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={P2p:{enable:Object(c["k"])(t.iEnable)}},e.abrupt("return",l["b"].sendCommand("SetP2p",n,0));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getRfAlarmCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:throw k["a"].getInfo(4294967281);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setRfAlarmCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:throw k["a"].getInfo(4294967281);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getDdns",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r,o,u,d,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetDdns",{},1);case 2:for(r in t=e.sent,n=t.range.Ddns,i=n.servAddr?n.servAddr.servAddrList:{},a=[],i)o=Object(c["r"])(this.MAP_DDNS_TYPE,r,void 0),a.push([o,i[r]]);return u=t.value.Ddns,d=Object(c["r"])(this.MAP_DDNS_TYPE,u.type,s["BC_DDNS_TYPE_E"].E_BC_DT_NOIP),p={bEnable:!!u.enable,eType:d,servAddr:u.servAddr?u.servAddr:"",servAddrList:a,cDomainName:u.domain,cUserName:u.userName,cPassword:I["a"].transform(u.password)},e.abrupt("return",p);case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setDdns",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={Ddns:{domain:t.cDomainName,enable:Object(c["k"])(t.bEnable),password:I["a"].recover2Str(t.cPassword),servAddr:t.servAddr,type:this.MAP_DDNS_TYPE.get(t.eType),userName:t.cUserName}},e.abrupt("return",l["b"].sendCommand("SetDdns",n,0));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getNtp",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetNtp",{},0);case 2:return t=e.sent,n=t.value.Ntp,i={bEnable:!!n.enable,cServer:n.server,iInterval:n.interval,iPort:n.port},e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setNtp",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={Ntp:{enable:Object(c["k"])(t.bEnable),interval:t.iInterval,port:t.iPort,server:t.cServer}},e.abrupt("return",l["b"].sendCommand("SetNtp",n,0));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getAutoUpdateState",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetAutoUpgrade",{},0);case 2:return t=e.sent,n=t.value.AutoUpgrade,i={iEnable:n.enable},e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setAutoUpdateState",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={AutoUpgrade:{enable:Object(c["k"])(t.iEnable)}},e.abrupt("return",l["b"].sendCommand("SetAutoUpgrade",n,0));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getOnlineNewFwInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("CheckFirmware",{},0);case 2:return t=e.sent,n=t.value.newFirmware,i={iHasNewFirmware:n,iIsMultiDeviceUpdate:0},e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getWifiSignal",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetWifiSignal",{},0);case 2:return t=e.sent,n=t.value,i={iSignal:this.transferWifiSignal(n.wifiSignal),iSupportChannelSignal:0,iChnSignal:[]},e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getWifiCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r,o,u,d,p,h=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommandsAll([{cmd:"GetWifi",param:{},action:0},{cmd:"ScanWifi",param:{},action:0}]);case 2:return n=e.sent,i=n[0],a=i.value.Wifi,r=n[1],o=r.value.Wifi,u=o?o.map((function(e){return{udid:e.ssid,iSignal:h.transferWifiSignal(e.signal),iSupportEncrypt:Object(c["k"])(void 0!==e.bencrypt),iEncrypt:Object(c["k"])(1===e.bencrypt),eType:void 0!==e.freq?e.freq:s["BC_WIFI_TYPE_E"].BC_WIFI_TYPE_UNKNOW,protocol:s["BC_WIFI_PROTOCOL"].BC_WIFI_PROTOCOL_UNKNOW}})):[],d=u.find((function(e){return e.udid===a.ssid})),p={essid:a.ssid,enccrypttype:s["BC_WIFI_ENCRYPT_TYPE_E"].E_BC_WIFI_ENCRYPT_NONE,key:a.password,udidList:{size:u.length,udids:u},eType:void 0!==a.freq?a.freq:s["BC_WIFI_TYPE_E"].BC_WIFI_TYPE_UNKNOW,freqPolicy:null!==(t=a.freqPolicy)&&void 0!==t?t:y["EWiFiFreqPolicy"].PREFERRED_5G,channel:0,countryCode:"CN",mode:s["BC_WIFI_MODE_E"].E_BC_WIFI_MODE_STATION,authmod:s["BC_WIFI_AUTH_MODE_E"].E_BC_WIFI_AUTH_OPEN,signal:d?d.iSignal:0,protocol:s["BC_WIFI_PROTOCOL"].BC_WIFI_PROTOCOL_UNKNOW},e.abrupt("return",p);case 11:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setWifiCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={Wifi:{ssid:t.essid,password:t.key,freqPolicy:t.freqPolicy}},e.abrupt("return",l["b"].sendCommand("SetWifi",n,0));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getScanAp",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("ScanWifi",{},0);case 2:return t=e.sent,n=t.value.Wifi,i=n?n.map((function(e){return{udid:e.ssid,iSignal:r.transferWifiSignal(e.signal),iSupportEncrypt:Object(c["k"])(void 0!==e.bencrypt),iEncrypt:Object(c["k"])(1===e.bencrypt),eType:void 0!==e.freq?e.freq:s["BC_WIFI_TYPE_E"].BC_WIFI_TYPE_UNKNOW,protocol:s["BC_WIFI_PROTOCOL"].BC_WIFI_PROTOCOL_UNKNOW}})):[],a={udidList:{size:i.length,udids:i}},e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"WifiTest",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={Wifi:{ssid:t.essid,password:t.key}},e.abrupt("return",l["b"].sendCommand("TestWifi",n,0,3e4));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getSimModuleInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:throw k["a"].getInfo(4294967281);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setSimModuleInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:throw k["a"].getInfo(4294967281);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"bindCloud",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setCloudCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"bindNas",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"unbindNas",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getCloudInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",L["a"].simpleCall("device_remote_getCloudInfo",this.handle,-1,null));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getCloudCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",L["a"].simpleCall("device_remote_getCloudCfg",this.handle,-1,null));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getSignatureLogin",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",L["a"].simpleCall("device_remote_getSignatureLoginCfg",this.handle,-1,null));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getNasBindInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",L["a"].simpleCall("device_remote_getNasBindInfo",this.handle,-1,null));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getNasCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[],n=[],i={ableStreams:t,curStreams:n},e.abrupt("return",i);case 4:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setNasCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getSambaCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",L["a"].simpleCall("device_remote_getSambaCfg",this.handle,-1,null));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setSambaCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getLargeBatteryInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",L["a"].simpleCall("device_remote_getLargeBatteryInfo",this.handle,-1,null));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setLargeBatteryInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getPowerMode",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",L["a"].simpleCall("device_remote_getPowerMode",this.handle,-1,null));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPowerMode",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getGDPRCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setGDPRCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getPreviewReplayLimitCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",L["a"].simpleCall("device_remote_getPreviewReplayLimitCfg",this.handle,-1,null));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPreviewReplayLimitCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"get3g4gInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",L["a"].simpleCall("device_remote_get3g4gInfo",this.handle,-1,null));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getAudioAlarmEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getCGIConfigEnable(l["a"].Audio);case 2:return t=e.sent,e.abrupt("return",t.hasEnabledChannel);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setAudioAlarmEnable",value:function(e){return this.setCGIConfigEnable(e,l["a"].Audio)}},{key:"getBuzzerEnable",value:function(e){return this.getCGIConfigEnable(l["a"].Buzzer)}},{key:"setBuzzerEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n,i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.setCGIConfigEnable(t,l["a"].Buzzer));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n,i){return e.apply(this,arguments)}return t}()},{key:"getBuzzerAlarm",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand(l["c"][l["a"].Buzzer].cmdV20OfGet,{channel:0},0);case 2:return t=e.sent,n=t.value[l["a"].Buzzer],i={diskErrorAlert:!!n.diskErrorAlert,diskFullAlert:!!n.diskFullAlert,ipConflictAlert:!!n.ipConflictAlert,nvrDisconnectAlert:!!n.nvrDisconnectAlert},e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setBuzzerAlarm",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Object(C["a"])({},l["a"].Buzzer,{diskErrorAlert:Object(c["k"])(t.diskErrorAlert),diskFullAlert:Object(c["k"])(t.diskFullAlert),ipConflictAlert:Object(c["k"])(t.ipConflictAlert),nvrDisconnectAlert:Object(c["k"])(t.nvrDisconnectAlert)}),e.abrupt("return",l["b"].sendCommand(l["c"][l["a"].Buzzer].cmdV20OfSet,n,0));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getUserCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetUser",{},0);case 2:return t=e.sent,n=t.value.User,i=n.map((function(e){return{cUserName:e.userName,iUserLevel:Object(c["r"])(r.MAP_USER_LEVEL,e.level,0),iUserSetState:0,cPassword:"",cLocalRight:"",cOldPassword:"",cOldIpcRight:"",magicNum:0,cUserIP:"",cMACAddr:"",iLoginState:0,iBootPwd:1}})),e.t0=i.length,e.t1=i,e.next=9,this._device.loginDes();case 9:return e.t2=e.sent.username,a={usernum:e.t0,user:e.t1,cUserName:e.t2},e.abrupt("return",a);case 12:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setUserCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=[],i=Object(v["a"])(t.user),e.prev=2,i.s();case 4:if((a=i.n()).done){e.next=23;break}r=a.value,s={cmd:"",action:0,param:{User:{}}},e.t0=r.iUserSetState,e.next=e.t0===y["EUserState"].add?10:e.t0===y["EUserState"].delete?13:e.t0===y["EUserState"].modify?16:19;break;case 10:return s.cmd="AddUser",s.param.User={userName:r.cUserName,password:I["a"].recover2Str(r.cPassword),level:this.MAP_USER_LEVEL.get(r.iUserLevel)},e.abrupt("break",20);case 13:return s.cmd="DelUser",s.param.User={userName:r.cUserName},e.abrupt("break",20);case 16:return s.cmd="ModifyUser",s.param.User={userName:r.cUserName,newPassword:I["a"].recover2Str(r.cPassword),oldPassword:I["a"].recover2Str(r.cOldPassword)},e.abrupt("break",20);case 19:return e.abrupt("continue",21);case 20:n.push(s);case 21:e.next=4;break;case 23:e.next=28;break;case 25:e.prev=25,e.t1=e["catch"](2),i.e(e.t1);case 28:return e.prev=28,i.f(),e.finish(28);case 31:if(0!==n.length){e.next=33;break}return e.abrupt("return");case 33:return e.abrupt("return",l["b"].sendCommandsAll(n));case 34:case"end":return e.stop()}}),e,this,[[2,25,28,31]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getOnlineUserCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["b"].sendCommand("GetOnline",{},0);case 2:return t=e.sent,n=t.value.User,i=n.map((function(e){return{iSessionId:e.sessionId,cUserName:e.userName,userIP:e.ip,iUserLevel:Object(c["r"])(r.MAP_USER_LEVEL,e.level,0),bCanForceOffline:!!e.canbeDisconn,bOnlineState:!0,cPassword:"",iUserId:0}})),a={iOnlineUserNum:i.length,user:i},e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setOnlineUserCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=[],i=Object(v["a"])(t.user),e.prev=2,i.s();case 4:if((a=i.n()).done){e.next=12;break}if(r=a.value,!r.bOnlineState){e.next=8;break}return e.abrupt("continue",10);case 8:s={cmd:"Disconnect",action:0,param:{User:{userName:r.cUserName,sessionId:r.iSessionId}}},n.push(s);case 10:e.next=4;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e["catch"](2),i.e(e.t0);case 17:return e.prev=17,i.f(),e.finish(17);case 20:if(0!==n.length){e.next=22;break}return e.abrupt("return");case 22:return e.abrupt("return",l["b"].sendCommandsAll(n));case 23:case"end":return e.stop()}}),e,null,[[2,14,17,20]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getFtpEnable",value:function(){return this.getCGIConfigEnable(l["a"].Ftp)}},{key:"setFtpEnable",value:function(e,t){return this.setCGIConfigEnable(e,l["a"].Ftp)}},{key:"getFtpCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n,i,a,r,s,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._device.supportMultiModesSchedule();case 3:return t=e.sent,n=t?"cmdV20OfGet":"cmdOfGet",e.next=7,l["b"].sendCommand(l["c"][l["a"].Ftp][n],{channel:0},1);case 7:return i=e.sent,a=i.value[l["a"].Ftp],r=i.range[l["a"].Ftp],e.next=12,this._device.supportFTPTest();case 12:return s=e.sent,t||(a.streamType=2===a.streamType?3:3===a.streamType?2:a.streamType),o={iProtocol:Object(c["k"])(void 0!==a.picInterval&&-1!==a.picInterval),cServer:a.server,cUsername:a.userName,cPassword:I["a"].transform(a.password),iPwdMaxLen:r.password.maxLen,cRemotedir:a.remoteDir,bAnonymous:!!a.anonymous,iPort:a.port,iAutoDir:a.autoDir?a.autoDir:0,iwFilelen:a.maxSize,eTransportMode:a.mode,iStreamType:a.streamType,iSupportStreamType:Object(c["k"])(void 0!==a.streamType),bSupportTest:s,iInterval:a.interval,iSupportInterval:void 0!==a.interval?1:0,intervalList:{iSize:r.interval.length,iInterval:r.interval},picIntervalList:{iSize:r.picInterval?r.picInterval.length:0,iInterval:r.picInterval?r.picInterval:[]},iPicPolicy:void 0!==a.bpicSingle?a.bpicSingle:0,iVideoPolicy:void 0!==a.bvideoSingle?a.bvideoSingle:0,onlyFtps:void 0!==a.onlyFtps?a.onlyFtps:0,picInterval:void 0!==a.picInterval?a.picInterval:-1,picName:void 0!==a.picName?a.picName:"",videoName:void 0!==a.videoName?a.videoName:"",picHeight:a.picHeight?a.picHeight:0,picWidth:a.picWidth?a.picWidth:0,picCaptureMode:a.picCaptureMode?a.picCaptureMode:0,iSupportTransportMode:0},e.abrupt("return",o);case 18:throw e.prev=18,e.t0=e["catch"](0),e.t0;case 22:case"end":return e.stop()}}),e,this,[[0,18]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"setFtpCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._device.supportMultiModesSchedule();case 2:if(n=e.sent,i={anonymous:Object(c["k"])(t.bAnonymous),autoDir:t.iAutoDir,interval:t.iInterval,maxSize:t.iwFilelen,mode:t.eTransportMode,password:I["a"].recover2Str(t.cPassword),port:t.iPort,remoteDir:t.cRemotedir,server:t.cServer,streamType:t.iStreamType,userName:t.cUsername,bpicSingle:t.iPicPolicy,bvideoSingle:t.iVideoPolicy,onlyFtps:t.onlyFtps,picInterval:t.picInterval,picName:t.picName,videoName:t.videoName,picHeight:t.picHeight,picWidth:t.picWidth,picCaptureMode:t.picCaptureMode},!n){e.next=7;break}return a={Ftp:Object(b["a"])({},i)},e.abrupt("return",l["b"].sendCommand(l["c"][l["a"].Ftp].cmdV20OfSet,a,0));case 7:return r={Ftp:Object(b["a"])(Object(b["a"])({},i),{},{streamType:2===t.iStreamType?3:3===t.iStreamType?2:t.iStreamType})},e.abrupt("return",l["b"].sendCommand(l["c"][l["a"].Ftp].cmdOfSet,r,0));case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setFtpTest",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={Ftp:{server:t.cServer,port:t.iPort,anonymous:Object(c["k"])(t.bAnonymous),mode:t.eTransportMode,userName:t.cUsername,password:I["a"].recover2Str(t.cPassword),remoteDir:t.cRemotedir,onlyFtps:t.onlyFtps,bpicSingle:t.iPicPolicy,bvideoSingle:t.iVideoPolicy}},e.prev=1,e.next=4,l["b"].sendCommand("TestFtp",n,0,6e4);case 4:e.next=24;break;case 6:e.prev=6,e.t0=e["catch"](1),i=S["EFtpTestError"].connect,e.t1=e.t0.code,e.next=-451===e.t1?13:-452===e.t1?15:-453===e.t1?17:-454===e.t1?19:(e.t1,21);break;case 13:return i=S["EFtpTestError"].login,e.abrupt("break",23);case 15:return i=S["EFtpTestError"].create,e.abrupt("break",23);case 17:return i=S["EFtpTestError"].upload,e.abrupt("break",23);case 19:return i=S["EFtpTestError"].connect,e.abrupt("break",23);case 21:return i=S["EFtpTestError"].undefined,e.abrupt("break",23);case 23:throw i;case 24:case"end":return e.stop()}}),e,null,[[1,6]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"reboot",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",l["b"].sendCommand("Reboot",{},0));case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"factoryDefault",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",l["b"].sendCommand("Restore",{},0));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onlineUpate",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",l["b"].sendCommand("UpgradeOnline",{},0));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"upgradeFirmware",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i={restoreCfg:Object(c["k"])(t.iUpgradeConfig),fileName:t.cSourceFileName,ipcChnBit:""+t.uChannelBit,fileSize:t.uFileSize},e.abrupt("return",l["b"].sendCommand("UpgradePrepare",i,0));case 2:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"importConfig",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:throw k["a"].getInfo(4294967281);case 1:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"exportConfig",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",l["b"].windowOpen("ExportCfg"));case 1:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"handle",get:function(){return this._device.handle}}]),e}(),N=function e(){Object(r["a"])(this,e),this.handle=o["a"](-1),this.openStatus=o["a"](s["BCSDK_DEVICE_STATE_E"].BCSDK_DEVICE_STATE_OPENSUCCESS),this.name=o["a"]("My Device"),this.channelsNum=o["a"](1),this.abilitySession=o["a"](0),this.connectionType=o["b"](s["BCSDK_CONNECTION_TYPE_E"].BCSDK_CONNECTION_TYPE_UNKNOW),this.batteryInfo=o["a"]({iChannel:0,eBatteryType:s["BC_BATTERY_TYPE_E"].BC_BATTERY_TYPE_DRY,iVoltage:0,iCurrent:0,iTemperature:0,iBatteryPercent:100,iLowPowerFlag:0,eChargeStatus:s["BC_CHARGE_STATUS_E"].BC_CHARGE_NONE,eAdapterStatus:s["BC_ADAPTER_STATUS_E"].BC_ADAPTER_NONE,iExceptionCode:0,adcOfPartA:0,adcOfPartB:0}),this.signalInfo=o["a"]({iSignalIntensity:1,iSignalLevel:1,eMode:s["BC_3G4G_MODE_E"].BC_MODE_4G,iMobileOperator:0}),this.netInfo=o["a"]({type:s["BC_DEVICE_NET_TYPE_E"].BC_DEVICE_NET_TYPE_WIRE,cellular:{iSignalIntensity:1,iSignalLevel:1,eMode:s["BC_3G4G_MODE_E"].BC_MODE_4G,iMobileOperator:0},wifi:{signal:-1}}),this.versionInfo=o["a"]({cName:"",cType:"",cSerialNo:"",cBuildDay:"",cHardwareVer:"",cCfgVer:"",cFirmwareVer:"",cDetail:"",cCategory:"IPC",cPakSuffix:"",cCC3200Ver:"",cSpVer:""}),this.exactType=o["a"](s["BC_DEVICE_TYPE_E"].E_BC_DEVICE_TYPE_IPC)},B=function(){function e(t){Object(r["a"])(this,e),this._state=o["c"](this,new N),this.isInited=!1,this._channels=new Map,this.MAP_DEVICE_TYPE=new Map([["DVR",s["BC_DEVICE_TYPE_E"].E_BC_DEVICE_TYPE_DVR],["IPC",s["BC_DEVICE_TYPE_E"].E_BC_DEVICE_TYPE_IPC],["NVR",s["BC_DEVICE_TYPE_E"].E_BC_DEVICE_TYPE_NVR],["NXP_IPC",s["BC_DEVICE_TYPE_E"].E_BC_DEVICE_TYPE_NXP_IPC],["WIFI_IPC",s["BC_DEVICE_TYPE_E"].E_BC_DEVICE_TYPE_WIFI_IPC],["WIFI_NVR",s["BC_DEVICE_TYPE_E"].E_BC_DEVICE_TYPE_WIFI_NVR],["WIFI_SOLO_IPC",s["BC_DEVICE_TYPE_E"].E_BC_DEVICE_TYPE_WIFI_SOLO_IPC],["BASE",s["BC_DEVICE_TYPE_E"].E_BC_DEVICE_TYPE_BASE],["FISHEYE",s["BC_DEVICE_TYPE_E"].E_BC_DEVICE_TYPE_FISHEYE_IPC]]),this.getOpenStatus=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",s["BCSDK_DEVICE_STATE_E"].BCSDK_DEVICE_STATE_CLOSED);case 1:case"end":return e.stop()}}),e)}))),this.isNotSafeLogin=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)}))),this.channelStatus=[],this.configProxy=new M(this),this.resetHandle(t),this.state.forceSet("name",I["a"].recover2Str(ControllerLogin.userName))}return Object(a["a"])(e,[{key:"resetHandle",value:function(e){this.state.forceSet("handle",e)}},{key:"getChannel",value:function(e){var t=this._channels.get(e);return t||(t=new P(this.handle,e),this._channels.set(e,t)),t}},{key:"getAbilityDeviceBy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=f.abilities[e];if(!i)return!1;var a=i.ver;return void 0!==n?a!==t&&a===n:a!==t}},{key:"getAbilityChnBy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=f.abilities.abilityChn[0][e];if(!i)return!1;var a=i.ver;return void 0!==n?a!==t&&a===n:a!==t}},{key:"getAbilityDeviceByGtCloseVal",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=f.abilities[e];if(!i)return!1;var a=i.ver;return void 0!==n?a>t&&a===n:a>t}},{key:"tryOpenDevice",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.open());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"reOpen",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.close();case 2:return e.next=4,new Promise((function(e){setTimeout(e,1e3)}));case 4:return e.next=6,this.open();case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"open",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"close",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",l["b"].sendCommand("Logout",{},0));case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"handleAbilityAndChannels",value:function(e,t,n){if(n&&JSON.stringify(this.channelStatus)!==JSON.stringify(n)){this.channelStatus=n,this.state.forceSet("channelsNum",n.length);for(var i=0;i0&&void 0!==s[0]&&s[0],n=s.length>1&&void 0!==s[1]&&s[1],!this.isInited||t){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,e.next=7,l["b"].sendCommandsAll([{cmd:"GetAbility",param:{User:{userName:I["a"].recover2Str(ControllerLogin.userName)}},action:0},{cmd:"GetDevInfo",param:{},action:0}]);case 7:if(i=e.sent,a=i[1].value.DevInfo,"IPC"===a.type){e.next=13;break}return e.next=12,l["b"].sendCommand("GetChannelstatus",{},0);case 12:r=e.sent.value.status;case 13:if(this.handleAbilityAndChannels(i[0].value.Ability,a,r),!this.isInited||!t){e.next=16;break}return e.abrupt("return");case 16:this.stateAutoRefresher(),e.next=26;break;case 19:if(e.prev=19,e.t0=e["catch"](4),!this.isInited||!t){e.next=25;break}if(!n){e.next=24;break}throw e.t0;case 24:return e.abrupt("return");case 25:CGI.autoErrorHandler("Logout",e.t0.code,e.t0.msg);case 26:this.isInited=!0;case 27:case"end":return e.stop()}}),e,this,[[4,19]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"onNameChanged",value:function(e){this.state.forceSet("name",e)}},{key:"stateAutoRefresher",value:function(){var e=this;setTimeout((function(){e.handleAbilityAndChannels(ControllerLogin.abilities,ControllerMain.deviceInfo,ControllerLogin.channelState),e.stateAutoRefresher()}),3e3)}},{key:"getChannels",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Array.from(this._channels).map((function(e){return e[1]})));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getChannelAtIndex",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getChannel(t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getBaseMaxBindNum",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",0);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"resetLoopUpdateBaseInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return");case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"loginDes",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=I["a"].recover2Str(ControllerLogin.userName),e.abrupt("return",{username:t||"",name:this.name,port:0,uidPort:2018,host:"",uid:"",password:""});case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportMultiModesSchedule",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("scheduleVersion",0,1));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"hasAbility",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"hasAdminPermission",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","admin"===ControllerLogin.level||"admin"===I["a"].recover2Str(ControllerLogin.userName));case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"isBattery",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("battery"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportWiFiCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("wifi"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportPush",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("push"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAutoUpdate",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("upgrade",1,2));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportEmailTask",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("emailSchedule"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportPushTask",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("pushSchedule"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportWiFiTest",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("wifiTest"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportWiFiFreqPolicy",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportWiFiFreqPolicy"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportUpgrade",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportReboot",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("reboot"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportTimeFormat",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("hourFmt"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportRecSettings",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("recCfg",2,1));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportRecOverWriteCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("recOverWrite"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportRecPackDurationCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("recPackDuration"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportOsdDefault",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.isNVR();case 2:return t=e.sent,e.abrupt("return",!t);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportRecPreRecordCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("recPreRecord"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportRecRecordExtensionTimeList",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("recExtensionTimeList"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportSimModule",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("simMoudule"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportGDPR",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"bootSecret",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","");case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"isIPC",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","IPC"===this.versionInfo.cCategory);case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"isNVR",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","NVR"===this.versionInfo.cCategory);case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"isMultiIPC",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","MULTI_IPC"===this.versionInfo.cCategory);case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"isSD7",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","SD7"===this.versionInfo.cCategory||"B21"===this.versionInfo.cCategory);case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"deviceType",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.exactType);case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"deviceNorm",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",s["BC_DEVICE_NORM_E"].BC_DEVICE_NORM_NTSC);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"rfVersion",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",0);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"rfNumbers",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"ddnsVersion",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=f.abilities["ddns"].ver,e.t0=t,e.next=1===e.t0?4:6===e.t0?5:9===e.t0?6:7;break;case 4:return e.abrupt("return",6);case 5:return e.abrupt("return",0);case 6:return e.abrupt("return",1);case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportTimingRecord",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("recSchedule",0,2));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFTP",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("ftp"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAuthorization",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportAuthorization"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportPushInterval",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportPushInterval"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFTPTest",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("ftpTest"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFTPSubStream",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("ftpSubStream"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFTPExtensionStream",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("ftpExtStream"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFTPPicture",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFTPAutoDir",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("ftpAutoDir"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFTPPictureSingleOverwritePolicy",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportFtpCoverPicture"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFTPVideoSingleOverwritePolicy",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportFtpCoverVideo"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFTPSEncrypt",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportFtpsEncrypt"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFTPPictureResolutionConfig",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportFtpPicCaptureMode"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFtpDirYM",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportFtpDirYM"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFtpPicResoCustom",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportFtpPicResoCustom"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFTPPictureSwapOverwritePolicy",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportFtpPictureSwap"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFTPVideoSwapOverwritePolicy",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportFtpVideoSwap"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAudioAlarm",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportAudioAlarm"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAudioAlarmEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportAudioAlarmEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAudioAlarmSchedule",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportAudioAlarmSchedule"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAudioAlarmTaskEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportAudioAlarmTaskEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportRTSPAndRTMPNotReload",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportRTSPEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportRtspEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportRTSP",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("rtsp"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportRTMPEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportRtmpEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportRTMP",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("rtmp"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportONVIFEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportOnvifEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportONVIF",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("onvif"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportP2PEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("p2p"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportHDD",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("disk"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportSDCard",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("sdCard"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportDateFormat",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("dateFormat"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportEmailNickName",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("email",0,3));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportUpnp",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("upnp"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportDDNSCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("ddns"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportHttpsCertInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportMediaPort",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("mediaPort"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportHttpPortEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportHttpEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportHttpPort",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("http"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportHttpsPortEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportHttpsEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportHttpsPort",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("https"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportRecSchedule",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityChnBy("recSchedule"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportEmailInterval",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("emailInterval"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportShowQrcode",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("showQrCode"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportChinese",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportNasBind",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportNasUnbind",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportNasBindStatusInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportExport",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportImport",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportDdnsServerCfg",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.isNVR();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFtpTask",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportFtpTask"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAbnormalAlert",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.isNVR();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"isBase",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"isLoginSafe",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportChannelVersion",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportRemoteUpgrade",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportRemoteUpgrade"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportDiagnosisData",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportBuzzer",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportBuzzer"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportBuzzerEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportBuzzerEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportBuzzerTask",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportBuzzerTask"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportBuzzerTaskEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportBuzzerTaskEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportReportNetInfo",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportPreviewReplayLimit",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportViewPlan",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportPowerMode",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportLargeBatteryInfoConfig",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportRecordEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportRecordEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportRecScheduleEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportRecScheduleEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportEmailEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportEmailEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportEmailTaskEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportEmailTaskEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFtpEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportFtpEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportFtpTaskEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportFtpTaskEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportPushEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportPushEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportPushTaskEnable",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportPushTaskEnable"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportAlarmOutMainSwitch",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportAlarmOutMainSwitch"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"supportWifiKit",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAbilityDeviceBy("supportWiFiKit"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"state",get:function(){return this._state}},{key:"handle",get:function(){return this.state.get("handle")}},{key:"identifier",get:function(){return"deviceIdentifier"}},{key:"openStatus",get:function(){return this.state.get("openStatus")}},{key:"name",get:function(){return this.state.get("name")}},{key:"channelsNum",get:function(){return this.state.get("channelsNum")}},{key:"batteryInfo",get:function(){return this.state.get("batteryInfo")}},{key:"versionInfo",get:function(){return this.state.get("versionInfo")}},{key:"exactType",get:function(){return this.state.get("exactType")}},{key:"permitReplay",get:function(){return!0}},{key:"permitPush",get:function(){return!0}},{key:"config",get:function(){return this.configProxy}}],[{key:"instance",value:function(){return e.singleton}}]),e}();B.singleton=new B(0);var F=B.instance()},b595:function(e,t,n){e.exports=n.p+"img/car_low.c9349aa7.png"},b662:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"show",rawName:"v-show",value:e.showComponent||e.delay<=0,expression:"showComponent||delay<=0"}],staticClass:"loading full-screen",on:{click:function(e){e.stopPropagation(),e.preventDefault()}}},[i("div",{staticClass:"ab-center loading-img-wrap"},[i("img",{staticClass:"reo-loading-animation",attrs:{src:n("d808")}}),e.des?i("p",{staticClass:"loading-des"},[e._v(e._s(e.des))]):e._e()])])},a=[],r=(n("a9e3"),n("2b0e")),s=r["a"].extend({name:"loading",props:{delay:{type:Number,default:300},des:String},data:function(){return{showComponent:!1}},mounted:function(){var e=this;setTimeout((function(){e.showComponent=!0}),this.delay)}}),o=s,c=(n("6a87"),n("2877")),u=Object(c["a"])(o,i,a,!1,null,"539dfcff",null);t["a"]=u.exports},b7c8:function(e,t,n){"use strict";(function(e){n("99af"),n("4de4"),n("4160"),n("a434"),n("b0c0"),n("b680"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0");var i=n("3835"),a=(n("96cf"),n("1da1")),r=n("2b0e"),s=n("bf3b"),o=n("df7a"),c=n("aa18"),u=n("ffa8"),l=n("9354"),d=n("ec26"),p=n("6ecd"),h=n("b1ac"),m=n("a36f"),g=n("11b7"),f=n("0ac9"),_=n("7d9f");t["a"]=r["a"].extend({name:"privacyMask",components:{loadingImg:p["a"],cacheImgLossTip:h["a"]},data:function(){return{cover:{},mask:[],isBattery:!0,isMouseDown:!1,selected:-1,startX:0,startY:0,canvasCursor:"",maskWrapPosition:{},isImage:!1,device:{},channels:[],distanceX:0,distanceY:0,positionFlags:[m["EPositionFlags"].NW,m["EPositionFlags"].NE,m["EPositionFlags"].SW,m["EPositionFlags"].SE],crrMaskBaseX:0,crrMaskBaseY:0,isResizing:!1,urlQueryId:Object(d["a"])(),loadingSnap:!1,isInitingBgImg:!1,getCacheImgFailed:!1,drawAreaWrapWidth:660,drawAreaWrapHeight:370,normalDrawAreaWrapWidth:660,normalDrawAreaWrapHeight:370,drawAreaWidth:660,drawAreaHeight:370,imgWidthHeightRatio:660/370,isFullscreen:!1}},mounted:function(){var e=this;this.isInitingBgImg=!0,o["a"].handleEventListener("blur",this.finishMask),this.cover=Object(u["g"])(this.$store.getters.cover),this.updateMaskWrapPosition(),this.coverUpdate(),document.onfullscreenchange=Object(a["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(l["a"].debug("privacyMask.vue > fullscreenchange: ".concat(!!document.fullscreenElement)),document.fullscreenElement){t.next=13;break}if(e.isFullscreen=!1,window.removeEventListener("resize",e.resizeDrawAreaInFullscreenMode),e.$emit("dialogMaskScale",e.isFullscreen),!c["a"].IS_CLIENT){t.next=8;break}return t.next=8,_["a"].setCurWindowFullScreen(!1).catch((function(e){return l["a"].error("privacyMask.vue > fullscreenchange > setCurWindowFullScreen",e)}));case 8:e.drawAreaWrapWidth=e.normalDrawAreaWrapWidth,e.drawAreaWrapHeight=e.normalDrawAreaWrapHeight,e.updateDrawAreaSizeForNotStretch(),t.next=16;break;case 13:e.isFullscreen=!0,e.$emit("dialogMaskScale",e.isFullscreen),e.resizeDrawAreaInFullscreenMode();case 16:case"end":return t.stop()}}),t)})))},destroyed:function(){window.removeEventListener("click",this._clickListener)},computed:{maxNum:function(){return this.isBattery?3:4},setScheduleCallback:function(){return this.$store.getters.setScheduleCallback},supportCoverIndexChange:function(){return this.$store.getters.supportCoverIndexChange},handle:function(){return this.$store.getters.deviceHandle},dialogChannelIndex:function(){return this.$store.getters.dialogChannelIndex},isNvr:function(){return this.$store.getters.isNvr},channel:function(){return this.channels[this.dialogChannelIndex]},fileImg:function(){if(!this.channel)return"";var t=(c["a"].IS_CLIENT?"?":"&")+this.urlQueryId,n="";return n=c["a"].IS_CLIENT?this.channel.cacheImagePath:this.supportCoverIndexChange&&this.cover.iLogicChannel===f["ECoverChannel"].TRACK?this.channel.updateCacheImagePath("","longFocus",this.isNvr):this.channel.updateCacheImagePath(),("win32"!==e.platform&&c["a"].IS_CLIENT?"file://":"")+n+t}},watch:{selected:function(e,t){-1!==e&&-1===t?window.addEventListener("click",this._clickListener):-1!==t&&-1===e&&window.removeEventListener("click",this._clickListener)},handle:{handler:function(e){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function n(){var a,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_DIALOG_LOADING",!0),n.prev=1,n.next=4,s["a"].getDeviceWithHandle(e);case 4:return t.device=n.sent,n.next=7,Promise.all([t.device.isBattery(),t.device.getChannels()]);case 7:a=n.sent,r=Object(i["a"])(a,2),t.isBattery=r[0],t.channels=r[1],n.next=16;break;case 13:n.prev=13,n.t0=n["catch"](1),l["a"].error("privacyMask.vue > handler > getDeviceWithHandle or getChannels: ",n.t0);case 16:t.$store.commit("HANDLE_DIALOG_LOADING",!1);case 17:case"end":return n.stop()}}),n,null,[[1,13]])})))()},immediate:!0},channel:function(e){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e){n.next=17;break}return n.prev=1,n.next=4,e.live.updateCacheImage(t.cover.iLogicChannel,1);case 4:t.urlQueryId=Object(d["a"])(),t.getCacheImgFailed=!1,t.onFileImgChange(),n.next=16;break;case 9:return n.prev=9,n.t0=n["catch"](1),l["a"].error("privacyMask.vue > watch channel > updateCacheImage: ",n.t0),n.next=14,g["a"].getStat(e.cacheImagePath);case 14:i=!!n.sent,i||(t.getCacheImgFailed=!0);case 16:t.isInitingBgImg=!1;case 17:case"end":return n.stop()}}),n,null,[[1,9]])})))()}},methods:{scaleDialog:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isFullscreen){t.next=9;break}if(!c["a"].IS_CLIENT){t.next=4;break}return t.next=4,_["a"].setCurWindowFullScreen(!0).catch((function(e){return l["a"].error("privacyMask.vue > scaleDialog > setCurWindowFullScreen",e)}));case 4:window.addEventListener("resize",e.resizeDrawAreaInFullscreenMode),n=document.querySelector(".remote-config .dialog-mask .dialog-content"),n.requestFullscreen().catch((function(t){l["a"].error("privacyMask.vue ".concat(e.device.name," ").concat(e.channel.name," scaleDialog requestFullscreen: "),t)})),t.next=10;break;case 9:document.exitFullscreen();case 10:case"end":return t.stop()}}),t)})))()},resizeDrawAreaInFullscreenMode:function(){if(this.isFullscreen){var e=document.querySelector(".remote-config .dialog-mask .dialog-content");this.drawAreaWrapWidth=e.offsetWidth-56,this.drawAreaWrapHeight=e.offsetHeight-250,this.updateDrawAreaSizeForNotStretch()}},closeDialog:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.isFullscreen){t.next=4;break}if(!c["a"].IS_CLIENT){t.next=4;break}return t.next=4,_["a"].setCurWindowFullScreen(!1).catch((function(e){return l["a"].error("privacyMask.vue > closeDialog > setCurWindowFullScreen",e)}));case 4:e.$emit("dialogMaskScale",!1),window.removeEventListener("resize",e.resizeDrawAreaInFullscreenMode),e.$store.commit("SET_DIALOGID","");case 7:case"end":return t.stop()}}),t)})))()},onFileImgChange:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=0,i=0,t.next=4,Object(u["u"])(e.fileImg).then((function(e){n=e.width,i=e.height})).catch((function(){return null}));case 4:if(n&&i&&(n/i).toFixed(2)!==e.imgWidthHeightRatio.toFixed(2)){t.next=6;break}return t.abrupt("return");case 6:e.imgWidthHeightRatio=n/i,e.updateDrawAreaSizeForNotStretch();case 8:case"end":return t.stop()}}),t)})))()},updateDrawAreaSizeForNotStretch:function(){var e=this,t=this.drawAreaWidth,n=this.drawAreaHeight;this.drawAreaWrapWidth/this.drawAreaWrapHeight<=this.imgWidthHeightRatio?(this.drawAreaWidth=this.drawAreaWrapWidth,this.drawAreaHeight=Math.ceil(this.drawAreaWidth/this.imgWidthHeightRatio)):(this.drawAreaHeight=this.drawAreaWrapHeight,this.drawAreaWidth=Math.ceil(this.drawAreaHeight*this.imgWidthHeightRatio)),this.$nextTick((function(){e.updateMaskWrapPosition()}));var i=this.drawAreaWidth/t,a=this.drawAreaHeight/n;this.scaleMasks(i,a)},updateMaskWrapPosition:function(){var e=this.$refs.maskWrap,t=e.getBoundingClientRect();this.maskWrapPosition={top:t.top,left:t.left,width:e.offsetWidth,height:e.offsetHeight}},scaleMasks:function(e,t){var n=[],i=Math.ceil(2*Math.max(this.drawAreaWidth/this.normalDrawAreaWrapWidth,1)),a=Math.ceil(2*Math.max(this.drawAreaHeight/this.normalDrawAreaWrapHeight,1));this.mask.forEach((function(r){var s=Math.max(i,r.width*e),o=Math.max(a,r.height*t);n.push({top:r.top*t,left:r.left*e,width:s,height:o})})),this.mask=n},coverUpdate:function(){this.mask=[];for(var e=0;e>16&65535,left:e.iX>>16&65535,width:e.iWidth>>16&65535,height:e.iHeight>>16&65535},a=65535&e.iWidth,r=65535&e.iHeight;a<=0&&(a=1024),r<=0&&(r=768);var s=65535&t,o=65535&n;s<=0&&(s=704),o<=0&&(o=576);var c={left:i.left*s=s?(c.left=0,c.width=s):c.left+c.width>=s&&(c.left=s-c.width),c.height>=o?(c.top=0,c.height=o):c.top+c.height>=o&&(c.top=o-c.height),c},_clickListener:function(e){e.target===document.querySelector(".mask-wrap .draw-mask.selected")||this.isResizing||(this.selected=-1)},addMask:function(e){this.mask.length>=this.maxNum||-1!==this.selected||(window.addEventListener("mouseup",this.finishMask),window.addEventListener("mousemove",this.paintMask),this.canvasCursor="pen",this.isMouseDown=!0,this.startX=e.offsetX,this.startY=e.offsetY,this.mask.push({top:this.startY,left:this.startX,width:0,height:0}))},paintMask:function(e){if(this.isMouseDown){var t=Math.max(0,Math.min(e.clientX-this.maskWrapPosition.left,this.maskWrapPosition.width)),n=Math.max(0,Math.min(e.clientY-this.maskWrapPosition.top,this.maskWrapPosition.height)),i=Math.abs(t-this.startX),a=Math.abs(n-this.startY);this.$set(this.mask,this.mask.length-1,{top:Math.min(n,this.startY),left:Math.min(t,this.startX),width:i,height:a})}},finishMask:function(e){window.removeEventListener("mousemove",this.paintMask),window.removeEventListener("mouseup",this.finishMask),this.isMouseDown=!1,this.canvasCursor="";var t=Math.ceil(2*Math.max(this.drawAreaWidth/this.normalDrawAreaWrapWidth,1)),n=Math.ceil(2*Math.max(this.drawAreaHeight/this.normalDrawAreaWrapHeight,1));this.mask=this.mask.filter((function(e){return e.width>=t&&e.height>=n}))},mouseDown:function(e,t,n){var i=this;if(this.selected=e,!n)return this.distanceX=t.clientX-this.mask[e].left,this.distanceY=t.clientY-this.mask[e].top,window.addEventListener("mousemove",this.moveMask),void window.addEventListener("mouseup",(function(){window.removeEventListener("mousemove",i.moveMask)}));this.startResizeMask(n)},startResizeMask:function(e){if(-1!==this.selected){var t=this.mask[this.selected];if(t){switch(this.isResizing=!0,this.canvasCursor=e,e){case m["EPositionFlags"].NW:this.crrMaskBaseY=t.top+t.height,this.crrMaskBaseX=t.left+t.width;break;case m["EPositionFlags"].NE:this.crrMaskBaseY=t.top+t.height,this.crrMaskBaseX=t.left;break;case m["EPositionFlags"].SW:this.crrMaskBaseY=t.top,this.crrMaskBaseX=t.left+t.width;break;default:this.crrMaskBaseY=t.top,this.crrMaskBaseX=t.left;break}window.addEventListener("mousemove",this.resizeMask),window.addEventListener("mouseup",this.finishResizeMask)}}},resizeMask:function(e){if(this.isResizing){var t=Math.max(this.maskWrapPosition.left,Math.min(e.clientX,this.maskWrapPosition.width+this.maskWrapPosition.left)),n=Math.max(this.maskWrapPosition.top,Math.min(e.clientY,this.maskWrapPosition.height+this.maskWrapPosition.top)),i=n-this.maskWrapPosition.top,a=t-this.maskWrapPosition.left,r=Math.ceil(2*Math.max(this.drawAreaWidth/this.normalDrawAreaWrapWidth,1)),s=Math.ceil(2*Math.max(this.drawAreaHeight/this.normalDrawAreaWrapHeight,1)),o=Math.min(i,this.crrMaskBaseY,this.maskWrapPosition.height-s),c=Math.min(a,this.crrMaskBaseX,this.maskWrapPosition.width-r),u=Math.max(r,Math.abs(a-this.crrMaskBaseX)),l=Math.max(s,Math.abs(i-this.crrMaskBaseY));this.$set(this.mask,this.selected,{top:o,left:c,width:u,height:l})}},finishResizeMask:function(e){var t=this;window.removeEventListener("mousemove",this.resizeMask),window.removeEventListener("mouseup",this.finishResizeMask),this.canvasCursor="",setTimeout((function(){t.isResizing=!1}),0)},deleteAll:function(){this.mask=[]},deleteSingle:function(){this.selected<0||(this.mask.splice(this.selected,1),this.selected=-1)},moveMask:function(e){-1!==this.selected&&(this.mask[this.selected].left=Math.max(0,Math.min(e.clientX-this.distanceX,this.maskWrapPosition.width-this.mask[this.selected].width)),this.mask[this.selected].top=Math.max(0,Math.min(e.clientY-this.distanceY,this.maskWrapPosition.height-this.mask[this.selected].height)))},save:function(){var e=this;this.cover.area=[];for(var t=0;t save > updateCacheImage: ",t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])}))))}}})}).call(this,n("4362"))},b826:function(e,t,n){"use strict";var i=n("8e68"),a=n.n(i);a.a},b861:function(e,t){e.exports="data:image/png;base64,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"},b928:function(e,t,n){e.exports=n.p+"img/car_medium.18613eee.png"},b93a:function(e,t,n){},b93c:function(e,t,n){},ba42:function(e,t,n){},bb81:function(e,t,n){},bbf2:function(e,t,n){"use strict";var i=n("6cb8"),a=n.n(i);a.a},bc20:function(e,t){e.exports="data:image/png;base64,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"},bc73:function(e,t,n){},bc738:function(e,t,n){"use strict";var i=n("c910"),a=n.n(i);a.a},bce6:function(e,t,n){e.exports=n.p+"img/add_chime_light_off.89139174.png"},bd2f:function(e,t,n){"use strict";var i=n("fff4"),a=n.n(i);a.a},be23:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAAAlCAMAAAAqTHQ7AAAC6FBMVEUAAAB3e4QecPAb094edPAplto4rMQ5qMY5pcYpntgpi9wpp9cegO0pktspmto5oMg5r8QeefApj9wede8cu+QbzuEpotcdee8ef+4eiew4hsspiNwpnNopqtc5nMgehe0efe8egu4ejuwcq+Y4f804jss5ssQdfO4bnOgbyeFQV3YpoNgekes5lcobougbsOYbteQbv+MbxOEpkNsppNcehe4cteU4e885gs05i8s4oscbq+Z2eYRubnwphd4cmukplNsps9YcpuYdluscoOgcv+I4eNAbl+sdiesbpuYbuuNwfIt1d4MpmNoeh+4ece8co+gcr+YbyOE5mMgek+sejut2d4QAh/kAlf8pgN4db/EcxOE5mcg5t8Ma0N52eIRxc4Rxd38TdPspr9YprtYoid8ei+wcmOscsuYcb/E4kcoccPAekesejOtaiKMbdO9qgZB2eYN1eIQadfBzd4Jubn0pgt4prNcottYmgOIfk+gcnukcxeEbg+45kso5sMMcd+9DnLgcfe9JmrEckOwchuwdb/Eax+JVlqVgjZpifJtmhZYa1N4acPAblOwZbfAY0uB1eoN2eIMZge8gd+sWweQYgfJ2dn8Tb+91dYIbefITxOIT0uQpsNYprNYrotctm9QtpdIwqs4xlc8zrco1o8k1h841lcw2qMccxuE9hcg2tcM0dNQ/qbxAmb8cb/NGhrogy9kkdeUboOgat+RRga4dfe9Skascbu8age0av+Ian+ltgY4cbu8czOMZf+8Wx+N0eoIWa/BycoQRae4qfeAqr9UpttUlndsmqtsjm+Igp98ieukujtcgjOcgtd8wgdQbseYbveQckescnuoayuAbq+Ydwd45g8s5fcs5kMkcuOQ2u8YbmOkbc+4bpeYZzeBBd8Ick+scs+cchu8pvdEboOgZwORHlrYbrecbe+8Y0eEbdu8abvIateUasOkZ090Z1uByeIIUy94duusUo+sXaOgU2Nj/4i15AAAA+HRSTlMATWZmZr+UlJS/v79mv7+UlGa/o6Nmv6Ojo5S/v7+UZqOjo6OUlJRmZmYDv6OUZmZmZma/v6OjlJSUlGZLCb+jv7+ko6Ojk2ZmZmZQO7+ko6Ojo5RmZiYGA7+jo5SUZUgYEQu/v7ikpKSblG9mZmJXVEZBPCINv7+0sqijo5aUkIt9d3NtbWlpZlxbWFZKSEM+NS8uJSIfGxoVEhEJv722r62ln5ybmZmXi4qKh4WCeXlycG5sa2pqYWBfW1JRSDctLSgeDr27urm2sK6tq6mppqGem5ubl5SUk5OQjo2FhYWBf39+e3l5d3NwXl1PTzo0MjEnGhkWDTcUrh8AAAPESURBVEjHndV3WE1hAAbwOypRFHVvCqXbvpUGmjdkpkLClZJuKFs0UEalQklaWvYqTU1NDbL33nvvzb++cc8593ue9vvnfZ7393zfe895DqvDZIQE1SrXJqV7sXqUrBAjI2VlZR0dFxeXppxu13PSPvfvTwErZs1anpQh7EZ9/qkgOTkK0EHAzJmT6tPmd60+O/0LR44AViBgkrGxcdKfTuteWTs5HClgBIG4uNhYGhg2bHL9rtkd1f+GgLoMEPd6o2agQHDrZSwGgDDZ0fHb7nb6rWk1HFngxOaNI6dqagoEZmbjxj2poAELC4uvv73a2o5DBQKgrqvLAItGj779lgYsLS3rmvcQ22WdhE0G+Bg1dOBAElg/3sPjWYUjECDg6mpl1UhfJmcHh8iyKI2hsoAZBsZ7jB2rd/cDDVhZW9fhVTPI+lM1NQ0NCggUmEVERDCAnt70G68qAeAKAWsTE17yP3AF5gZbji9RI4CrAQOG9+07Rv4iADwQsNjGxuZRpRUF8OZxk+GKO2pw3XvaNCkAVhwZGNCnDwbk+/U7j08ABXV19ZvvtlIANxFv0bRsibc3AQQMGgSAAVJgcG9T00s0oD7Bxyd/KxISd8G6sBVsCQgEwBV1w0eNwsBwCuhtyh+hdIECJvhs8PS8U/bpFwslhFohCowAgPA5awhgCgUoDRmy7xoNeD7ncZsRsJN5DuQ2a1w+M6cDYO3CBc7rEJDP4/G4IIl7wI5BtFA+0dY2HAhtAUBAAMi5e3gDLsp3+EiiY5QXgb6tvr7+dQjgvwECUODjIyxcsNfZed0RBdXINyYAwPmBX8r0ookgCLCz08oNYIDBBADqCgqqqqqGhoW4n4xeD6fU1SJ2wgsKuK+lpZV7hQaYEc4eOtarlxTw9fV9XNa4G72iElBHcat6AAE7ANjb2xsclof/Iw3sg3UKgEJxvJtfqhAKfqiOjYQCGjAwWJp3AD1JfL6S0sGjioqKMkDhtgbUELn7gzu4s2WyqhQIGNhkbp53+MB+/v6DRx0cHDAABcPIbauYgkgCdxCLZAy3lQUUYD5j7lxtbW0VFQgoYiAyZjtbNqudWDBCSbDsrwmlUmAGBlRoICaeTSTFn/mIhKUSl6l6KAVUGCA63o2ou2ejOhOnUD/iMiUEULKygagHn8bHJyPMJlbdHkNdoRhsR1w+lKgTCWshV61+Hx1dTW7nJ/ZndRhhZjC7/YhaQL3zZKe0U0+RdPn77SRGq5LTZ4J6d5LpTtTB9N2P/0/pqsHiMFYPI5SEisWhndT/A9G0WzdTvH5CAAAAAElFTkSuQmCC"},be6f:function(e,t,n){"use strict";var i=n("1de2"),a=n.n(i);a.a},bea6:function(e,t,n){},bf3b:function(e,t,n){"use strict";var i=n("bf97");n.d(t,"a",(function(){return i["a"]}))},bf97:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n("96cf");var i=n("1da1"),a=n("bee2"),r=n("d4ec"),s=n("b57d"),o=n("6335"),c=function e(){Object(r["a"])(this,e),this.deviceNum=o["a"](1)},u=function(){function e(){Object(r["a"])(this,e),this._state=o["c"](this,new c)}return Object(a["a"])(e,[{key:"modifyDevice",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",t);case 1:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getDevicesInited",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s["b"].updateAbilityAndChannels();case 2:return e.abrupt("return",s["b"]);case 3:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getDevices",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDevicesInited();case 2:return e.t0=e.sent,e.abrupt("return",[e.t0]);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getDeviceWithHandle",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDevicesInited();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getDeviceWithUID",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDevicesInited();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"state",get:function(){return this._state}}],[{key:"instance",value:function(){return e.singleton}}]),e}();u.singleton=new u;var l=u.instance()},c054:function(e,t,n){"use strict";(function(e){n("99af"),n("d81d"),n("b0c0"),n("a9e3"),n("b680"),n("96cf");var i=n("1da1"),a=n("ade3"),r=n("2b0e"),s=n("bf3b"),o=n("df7a"),c=n("aa18"),u=n("0ac9"),l=n("9354"),d=n("6ecd"),p=n("b1ac"),h=n("a36f"),m=n("ec26"),g=n("11b7"),f=n("ffa8"),_=n("7d9f");t["a"]=r["a"].extend({components:{loadingImg:d["a"],cacheImgLossTip:p["a"]},props:{lineWidth:{type:Number,default:20}},data:function(){var e;return{title:this.$t("alarm_settings_detection_area_page_title"),titles:(e={},Object(a["a"])(e,u["EAiDetectCate"].PEOPLE,this.$t("common_ai_human_option")),Object(a["a"])(e,u["EAiDetectCate"].VEHICLE,this.$t("common_ai_vehicle_option")),Object(a["a"])(e,u["EAiDetectCate"].DOG_CAT,this.$t("common_ai_pet_option")),Object(a["a"])(e,u["EAiDetectCate"].FACE,this.$t("common_ai_face_option")),Object(a["a"])(e,u["EAiDetectCate"].OTHER,this.$t("common_other")),Object(a["a"])(e,u["EAiDetectCate"].MD,this.$t("common_ai_any_motion_option")),Object(a["a"])(e,u["EAiDetectCate"].PACKAGE,this.$t("common_ai_package_option")),e),EAiDetectCate:u["EAiDetectCate"],motion:{},motionRect:[],drawValue:0,canvasWidth:660,canvasHeight:370,drawAreaWrapWidth:660,drawAreaWrapHeight:370,normalDrawAreaWrapWidth:660,normalDrawAreaWrapHeight:370,imgWidthHeightRatio:660/370,isFullscreen:!1,cellWidth:0,cellHeight:0,isMouseDown:!1,preMoveX:0,preMoveY:0,canvasCursor:"",device:{},channels:[],urlQueryId:Object(m["a"])(),loadingSnap:!1,isInitingBgImg:!1,getCacheImgFailed:!1}},computed:{setScheduleCallback:function(){return this.$store.getters.setScheduleCallback},handle:function(){return this.$store.getters.deviceHandle},channel:function(){return this.channels[this.$store.getters.dialogChannelIndex]},fileImg:function(){if(!this.channel)return"";var t=(c["a"].IS_CLIENT?"?":"&")+this.urlQueryId,n=c["a"].IS_CLIENT?this.channel.cacheImagePath:this.channel.updateCacheImagePath();return("win32"!==e.platform&&c["a"].IS_CLIENT?"file://":"")+n+t}},watch:{handle:{handler:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_DIALOG_LOADING",!0),n.next=3,s["a"].getDeviceWithHandle(e);case 3:return t.device=n.sent,n.next=6,t.device.getChannels();case 6:t.channels=n.sent,t.$store.commit("HANDLE_DIALOG_LOADING",!1);case 8:case"end":return n.stop()}}),n)})))()},immediate:!0},channel:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e){n.next=17;break}return n.prev=1,n.next=4,e.live.updateCacheImage(0,1);case 4:t.urlQueryId=Object(m["a"])(),t.getCacheImgFailed=!1,t.onFileImgChange(),n.next=16;break;case 9:return n.prev=9,n.t0=n["catch"](1),l["a"].error("alarmDetect.vue > watch channel > updateCacheImage: ",n.t0),n.next=14,g["a"].getStat(e.cacheImagePath);case 14:i=!!n.sent,i||(t.getCacheImgFailed=!0);case 16:t.isInitingBgImg=!1;case 17:case"end":return n.stop()}}),n,null,[[1,9]])})))()}},mounted:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.isInitingBgImg=!0,o["a"].handleEventListener("blur",e.mouseUp),"motionArea"===e.$store.getters.scheduleType?(n=e.$store.getters.motion,e.motion={type:"motion",width:n.iWidth,height:n.iHeight,scope:n.bMotionScope}):(a=e.$store.getters.aiDetectArea,e.motion={type:a.type,width:a.width,height:a.height,scope:a.area.map((function(e){return!!e}))},"aiArea"===e.$store.getters.scheduleType&&(r=a.type,e.title=u["EAiDetectCate"].DOG_CAT===r&&e.$store.getters.supportAiAnimal?e.$t("common_ai_animal_option"):e.titles[r],u["EAiDetectCate"].OTHER===r&&(e.drawValue=-1))),e.motionUpdate(),e.adjustCellSize(),e.isFullscreen||(e.drawAreaWrapWidth=e.canvasWidth,e.drawAreaWrapHeight=e.canvasHeight),e.normalDrawAreaWrapWidth=e.drawAreaWrapWidth,e.normalDrawAreaWrapHeight=e.drawAreaWrapHeight,e.$nextTick((function(){e.drawCell()})),document.onfullscreenchange=Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(l["a"].debug("alarmDetect.vue > fullscreenchange: ".concat(!!document.fullscreenElement)),document.fullscreenElement){t.next=13;break}if(e.isFullscreen=!1,window.removeEventListener("resize",e.resizeDrawAreaInFullscreenMode),e.$emit("dialogMaskScale",e.isFullscreen),!c["a"].IS_CLIENT){t.next=8;break}return t.next=8,_["a"].setCurWindowFullScreen(!1).catch((function(e){return l["a"].error("alarmDetect.vue > fullscreenchange > setCurWindowFullScreen",e)}));case 8:e.drawAreaWrapWidth=e.normalDrawAreaWrapWidth,e.drawAreaWrapHeight=e.normalDrawAreaWrapHeight,e.updateDrawAreaSizeForNotStretch(),t.next=16;break;case 13:e.isFullscreen=!0,e.$emit("dialogMaskScale",e.isFullscreen),e.resizeDrawAreaInFullscreenMode();case 16:case"end":return t.stop()}}),t)})));case 10:case"end":return t.stop()}}),t)})))()},methods:{scaleDialog:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isFullscreen){t.next=9;break}if(!c["a"].IS_CLIENT){t.next=4;break}return t.next=4,_["a"].setCurWindowFullScreen(!0).catch((function(e){return l["a"].error("alarmDetect.vue > scaleDialog > setCurWindowFullScreen",e)}));case 4:window.addEventListener("resize",e.resizeDrawAreaInFullscreenMode),n=document.querySelector(".remote-config .dialog-mask .dialog-content"),n.requestFullscreen().catch((function(t){l["a"].error("alarmDetect.vue ".concat(e.device.name," ").concat(e.channel.name," scaleDialog requestFullscreen: "),t)})),t.next=10;break;case 9:document.exitFullscreen();case 10:case"end":return t.stop()}}),t)})))()},resizeDrawAreaInFullscreenMode:function(){if(this.isFullscreen){var e=document.querySelector(".remote-config .dialog-mask .dialog-content");this.drawAreaWrapWidth=e.offsetWidth-56,this.drawAreaWrapHeight=e.offsetHeight-250,this.updateDrawAreaSizeForNotStretch()}},closeDialog:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.isFullscreen){t.next=4;break}if(!c["a"].IS_CLIENT){t.next=4;break}return t.next=4,_["a"].setCurWindowFullScreen(!1).catch((function(e){return l["a"].error("alarmDetect.vue > closeDialog > setCurWindowFullScreen",e)}));case 4:e.$emit("dialogMaskScale",!1),window.removeEventListener("resize",e.resizeDrawAreaInFullscreenMode),e.$store.commit("SET_DIALOGID","");case 7:case"end":return t.stop()}}),t)})))()},onFileImgChange:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=0,i=0,t.next=4,Object(f["u"])(e.fileImg).then((function(e){n=e.width,i=e.height})).catch((function(){return null}));case 4:if(n&&i&&(n/i).toFixed(2)!==e.imgWidthHeightRatio.toFixed(2)){t.next=6;break}return t.abrupt("return");case 6:e.imgWidthHeightRatio=n/i,e.updateDrawAreaSizeForNotStretch();case 8:case"end":return t.stop()}}),t)})))()},updateDrawAreaSizeForNotStretch:function(){var e=this;this.drawAreaWrapWidth/this.drawAreaWrapHeight<=this.imgWidthHeightRatio?(this.canvasWidth=this.drawAreaWrapWidth,this.canvasHeight=this.canvasWidth/this.imgWidthHeightRatio,this.adjustCellSize()):(this.canvasHeight=this.drawAreaWrapHeight,this.canvasWidth=this.canvasHeight*this.imgWidthHeightRatio,this.adjustCellSize()),this.isFullscreen||(this.drawAreaWrapWidth=Math.max(this.canvasWidth,this.drawAreaWrapWidth),this.drawAreaWrapHeight=Math.max(this.canvasHeight,this.drawAreaWrapHeight)),this.$nextTick((function(){e.drawCell()}))},adjustCellSize:function(){this.isFullscreen?(this.cellWidth=Math.floor(this.canvasWidth/this.motion.width),this.cellHeight=Math.floor(this.canvasHeight/this.motion.height)):(this.cellWidth=Math.round(this.canvasWidth/this.motion.width),this.cellHeight=Math.round(this.canvasHeight/this.motion.height)),this.canvasWidth=this.cellWidth*this.motion.width,this.canvasHeight=this.cellHeight*this.motion.height},motionUpdate:function(){this.motionRect=[];for(var e=0;e1,expression:"currentTab==='Detection'&&scheduleDetectionMode.length>1"}],staticClass:"detection-box flex",attrs:{"data-id":"schedule-group-detection-box"}},e._l(e.scheduleDetectionMode,(function(t,i){return n("label",{key:i,staticClass:"flex",class:{checked:e.checkedDetectionModes.includes(t)},attrs:{checkbox:"","data-id":"scheduleDetectionMode-label-"+t}},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.checkedDetectionModes,expression:"checkedDetectionModes",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"checkbox",disabled:e.checkedDetectionModes.includes(t)&&1===e.checkedDetectionModes.length,"data-id":"scheduleDetectionMode-input-"+t},domProps:{value:t,checked:Array.isArray(e.checkedDetectionModes)?e._i(e.checkedDetectionModes,t)>-1:e.checkedDetectionModes},on:{change:function(n){var i=e.checkedDetectionModes,a=n.target,r=!!a.checked;if(Array.isArray(i)){var s=t,o=e._i(i,s);a.checked?o<0&&(e.checkedDetectionModes=i.concat([s])):o>-1&&(e.checkedDetectionModes=i.slice(0,o).concat(i.slice(o+1)))}else e.checkedDetectionModes=r}}}),n("span",{staticClass:"check-icon icon-client_check",attrs:{checkicon:""}}),n("p",[e._v(e._s(e.detectionCopy[t]))])])})),0),n("canvasSchedule",e._b({ref:"canvasSchedule",attrs:{"data-id":"schedule-group-canvasSchedule"},on:{dataChanged:e.dataChanged}},"canvasSchedule",e.canvasScheduleProps,!1)),n("div",{staticClass:"handle-btns flex-between"},[n("div",{staticClass:"left-wrap flex"},e._l(e.btns,(function(t,i){return n("div",{key:i,staticClass:"flex-column-container handle-btns-item"},[n("div",{staticClass:"btn-icon-box",class:{active:e.currentMode===t.mode},attrs:{"data-id":"schedule-group-handle-btns-"+i},on:{mousedown:function(e){e.stopPropagation()},mouseup:function(e){e.stopPropagation()},click:function(n){n.stopPropagation(),e.currentMode=t.mode}}},[n("span",{staticClass:"schedule-icon btn-icon",class:["enable"===i?"icon-client_none":"icon-client_eraser"]})]),n("span",{staticClass:"text"},[e._v(e._s(t.copy))])])})),0),n("div",{staticClass:"right-wrap flex"},[n("div",{staticClass:"btn-icon-box",attrs:{title:e.$t("STR_PLAN_ENABLE_ALL"),"data-id":"schedule-group-addAll-enable-div"},on:{mousedown:function(e){e.stopPropagation()},mouseup:function(e){e.stopPropagation()},click:function(t){return t.stopPropagation(),e.addAll(e.btns.enable.mode)}}},[n("span",{staticClass:"schedule-icon btn-icon icon-web_enableall"})]),n("div",{staticClass:"btn-icon-box",attrs:{title:e.$t("STR_PLAN_DISABLE_ALL"),"data-id":"schedule-group-addAll-disable-div"},on:{mousedown:function(e){e.stopPropagation()},mouseup:function(e){e.stopPropagation()},click:function(t){return t.stopPropagation(),e.addAll(e.btns.disable.mode)}}},[n("span",{staticClass:"schedule-icon btn-icon icon-web_disableall"})])])]),e.currentTab===e.EScheduleMode.TIMING?e._t("timingInfo"):e._e()],2)},u=[],l=(n("99af"),n("7db0"),n("a15b"),n("d81d"),n("a434"),n("b64b"),n("96cf"),n("1da1")),d=n("b85c"),p=n("2909"),h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"schedule",staticClass:"canvas-schedule"},[n("canvas",{ref:"canvas",attrs:{width:e.canvasWidth,height:e.canvasHeight},on:{mousedown:e.mouseDown,mousemove:e.mouseMove,mouseup:e.mouseUp,click:e.canvasClick}})])},m=[],g=n("ffa8"),f=n("df7a"),_=n("9354"),v=n("eec4"),b=n.n(v),w=b()({strategy:"scroll"}),C=o["a"].extend({name:"canvasSchedule",props:{currentMode:Number,mdMode:{type:Number,required:!0},normalMode:Number,noneMode:{type:Number,required:!0},mdModeColor:{type:String,default:"#046DEC"},normalSupprot:{type:Boolean,default:!0},normalModeColor:{type:String,default:"#FFD155"},noneModeColor:{type:String,default:"#777777"},sourceData:{type:Array,required:!0},cellPadding:{type:Number,default:2},leftTextWidth:{type:Number,default:46},bottomPadding:{type:Number,default:11}},data:function(){return{motionRect:[],motionRectCopy:[],weeks:[this.$t("common_Sun"),this.$t("common_Mon"),this.$t("common_Tue"),this.$t("common_Wed"),this.$t("common_Thu"),this.$t("common_Fri"),this.$t("common_Sat")],canvasWidth:0,canvasHeight:0,preMoveX:0,preMoveY:0,isMouseDown:!1,isMouseMove:!1}},computed:{columnNum:function(){return this.motionRect[0]?this.motionRect[0].length:0},cellWidth:function(){return Math.floor((this.canvasWidth-this.leftTextWidth-this.cellPadding*(this.columnNum-1))/this.columnNum)},realLeftTextWidth:function(){return this.canvasWidth-this.cellPadding*(this.columnNum-1)-this.cellWidth*this.columnNum},tableHeight:function(){return this.cellWidth*this.motionRect.length+this.cellPadding*(this.motionRect.length-1)},bottomTextPostionTop:function(){return this.tableHeight+this.bottomPadding},modeList:function(){var e=[];return this.normalSupprot&&void 0!==this.normalMode&&e.push({mode:this.normalMode,color:this.normalModeColor}),e.push({mode:this.mdMode,color:this.mdModeColor},{mode:this.noneMode,color:this.noneModeColor}),e},validModeArr:function(){return[].concat(Object(p["a"])(this.normalSupprot?[this.normalMode]:[]),[this.mdMode,this.noneMode])}},mounted:function(){var e=this;f["a"].handleEventListener("blur",this.mouseUp);var t=this.$refs.schedule;this.canvasWidth=t.clientWidth,this.canvasHeight=t.clientHeight,w.listenTo(t,(function(t){e.canvasWidth=t.offsetWidth,e.canvasHeight=t.offsetHeight,e.$nextTick((function(){e.drawTime(),e.drawData()}))}))},methods:{getDrawColor:function(e){var t,n=Object(d["a"])(this.modeList);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(e===i.mode)return i.color}}catch(a){n.e(a)}finally{n.f()}return""},drawTime:function(){var e=this.$refs.canvas;if(e){var t=e.getContext("2d");if(t){t.clearRect(0,0,this.canvasWidth,this.canvasHeight),t.font="normal 300 12px SF Pro Display, Arial",t.fillStyle="#FFFFFF",t.textBaseline="middle",t.textAlign="center";for(var n=0;n drawTime failed, no canvas context")}else _["a"].error("canvasSchedule.vue > drawTime failed, no canvas dom")},drawData:function(){var e=this.$refs.canvas;if(e){var t=e.getContext("2d");if(t)for(var n=0;n drawData failed, no canvas context")}else _["a"].error("canvasSchedule.vue > drawData failed, no canvas dom")},mouseDown:function(e){this.isMouseMove=!1,this.validModeArr.includes(this.currentMode)&&(this.motionRectCopy=JSON.parse(JSON.stringify(this.motionRect)),this.isMouseDown=!0,this.preMoveX=e.offsetX,this.preMoveY=e.offsetY,window.addEventListener("mouseup",this.mouseUp))},mouseMove:function(e){if(this.isMouseDown){this.isMouseMove=!0;var t=this.$refs.canvas;if(t){var n=t.getContext("2d");if(n){for(var i=Math.max(Math.floor((Math.min(this.preMoveX,e.offsetX)-this.realLeftTextWidth)/(this.cellWidth+this.cellPadding)),0),a=Math.max(Math.floor(Math.min(this.preMoveY,e.offsetY)/(this.cellWidth+this.cellPadding)),0),r=Math.min(Math.floor((Math.max(this.preMoveX,e.offsetX)-this.realLeftTextWidth)/(this.cellWidth+this.cellPadding)),this.columnNum-1),s=Math.min(Math.floor(Math.max(this.preMoveY,e.offsetY)/(this.cellWidth+this.cellPadding)),this.motionRect.length-1),o=0;o=a&&o<=s&&c>=i&&c<=r,l=u?this.currentMode:this.motionRectCopy[o][c];this.$set(this.motionRect[o],c,l)}this.drawData()}}}},mouseUp:function(e){this.isMouseDown=!1,this.emitChange(),window.removeEventListener("mouseup",this.mouseUp)},canvasClick:function(e){if(this.validModeArr.includes(this.currentMode)&&!this.isMouseMove){var t=e.offsetY,n=e.offsetX;if(!(t>this.tableHeight||nthis.canvasWidth)){var i=Math.floor((n-this.realLeftTextWidth)/(this.cellWidth+this.cellPadding)),a=Math.floor(Math.min(this.preMoveY,t)/(this.cellWidth+this.cellPadding));this.$set(this.motionRect[a],i,this.currentMode),this.drawData(),this.emitChange()}}},addAll:function(e){var t=this,n=void 0===e?this.currentMode:e;if(this.validModeArr.includes(n)){for(var i=0;i2){if(JSON.stringify(e)===JSON.stringify(this.motionRect))return;this.motionRect=Object(g["g"])(e),this.$nextTick((function(){t.drawTime(),t.drawData()}))}},immediate:!0}}}),y=C,S=(n("bc738"),n("2877")),k=Object(S["a"])(y,h,m,!1,null,null,null),A=k.exports,E=n("6f20"),x=n("a36f"),O=n("d1d4"),I=o["a"].extend({name:"scheduleGroup",props:{filteredModesPool:{type:Object,required:!0},channel:Object},components:{canvasSchedule:A,scheduleCopyTo:E["a"]},data:function(){return{EScheduleMode:x["EScheduleMode"],showMask:!1,isMouseDown:!1,isMouseMove:!1,currentTab:"Detection",modesPoolCopy:{},detectionDataString:"",currentMode:x["ESwitch"].enable,tabs:[],detectionCopy:Object(O["a"])(),scheduleDetectionMode:[],checkedDetectionModes:[],btns:{enable:{mode:x["ESwitch"].enable,copy:this.$t("common_enable")},disable:{mode:x["ESwitch"].disable,copy:this.$t("common_disable")}},detectionModes:[x["EScheduleMode"].MD,x["EScheduleMode"].AI_PEOPLE,x["EScheduleMode"].AI_VEHICLE,x["EScheduleMode"].AI_FACE,x["EScheduleMode"].AI_DOG_CAT,x["EScheduleMode"].VISITOR,x["EScheduleMode"].AI_OTHER,x["EScheduleMode"].AI_PACKAGE]}},computed:{sourceData:function(){var e=this.currentTab;if("Detection"===e&&(e=this.checkedDetectionModes[0]),!e||!this.filteredModesPool[e])return[[]];var t="Detection"===this.currentTab?this.detectionDataString:this.filteredModesPool[e],n=Object(p["a"])(t).map((function(e){return~~e})),i=[];while(n.length>0)i.push(n.splice(0,24));return i},canvasScheduleProps:function(){return{sourceData:this.sourceData,currentMode:this.currentMode,mdMode:this.btns.enable.mode,noneMode:this.btns.disable.mode,normalSupprot:!1}},filterTabs:function(){var e=Object(p["a"])(this.tabs);return 1===e.length&&e[0]===x["EScheduleMode"].Unknown&&(e=[]),e}},watch:{filteredModesPool:{handler:function(e){JSON.stringify(e)!==JSON.stringify(this.modesPoolCopy)&&this.init(e)},deep:!0,immediate:!0},checkedDetectionModes:function(e,t){var n,i=this,a=e.find((function(e){return i.modesPoolCopy[e]&&i.modesPoolCopy[e].includes("1")})),r=e[0]&&this.modesPoolCopy[e[0]]?this.modesPoolCopy[e[0]].replace(/\d/g,"0"):"",s=a?this.modesPoolCopy[a]:r,o=Object(d["a"])(this.scheduleDetectionMode);try{for(o.s();!(n=o.n()).done;){var c=n.value;this.checkedDetectionModes.includes(c)?this.modesPoolCopy[c]=s:this.modesPoolCopy[c]=r}}catch(u){o.e(u)}finally{o.f()}this.$emit("scheduleGroupChanged",this.modesPoolCopy)}},mounted:function(){var e=this;this.detectionCopy.AI_DOG_CAT=this.$store.getters.supportAiAnimal?this.$t("common_ai_animal_option"):this.$t("common_ai_pet_option"),f["a"].handleEventListener("blur",(function(){e.isMouseMove=!1,e.isMouseDown=!1}))},activated:function(){this.init(this.modesPoolCopy)},methods:{init:function(e){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function n(){var i,a,r,s,o,c,u;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:i=[],a=[],r=[],s=Object.keys(x["EScheduleMode"]),c=0,u=s;case 5:if(!(c0)t.push(e.splice(0,24));return t},canvasScheduleProps:function(){return{sourceData:this.sourceData,currentMode:this.selected,mdMode:this.mdMode,normalMode:this.normalMode,noneMode:this.noneMode,normalSupprot:this.timingSupport}}},mounted:function(){var e=this;f["a"].handleEventListener("blur",(function(){e.isMouseMove=!1,e.isMouseDown=!1}))},watch:{motionRect:{handler:function(e){JSON.stringify(this.motionRectCopy)!==JSON.stringify(e)&&(this.motionRectCopy=Object(g["g"])(e))},immediate:!0}},methods:{dataChanged:function(e){var t;this.motionRectCopy=(t=[]).concat.apply(t,Object(p["a"])(Object(g["g"])(e)))},mouseDown:function(){this.isMouseDown=!0},mouseMove:function(){this.isMouseDown&&(this.isMouseMove=!0)},saveSchedule:function(){this.$emit("saveSchedule",Object(g["g"])(this.motionRectCopy))}}})),N=M,B=(n("06fe"),Object(S["a"])(N,P,L,!1,null,"7e26c0bd",null)),F=B.exports,j=n("0ac9"),V=n("6af1"),U=n("4cb1"),H=n("9629"),G=n("b662"),W=o["a"].extend({name:"scheduleDispense",components:{scheduleGroup:R,legacySchedule:F,slideBtn:V["a"],channelBox:U["a"],retry:H["a"],loading:G["a"]},props:{channels:{type:Array,default:function(){return[]}},switchButtonDes:String,isLoadingPartCfg:{type:Boolean,default:!0},isPartCfgRetry:{type:Boolean,default:!1},isScheduleSetting:{type:Boolean,default:!1},scheduleCate:Number,supportScheduleEnable:Boolean,scheduleType:{type:String,default:""},modesPool:Object,scheduleStatus:Object,scheduleSwitchDes:String,videoLossDes:{type:String,default:""},motionRect:Array,timingSupport:{type:Boolean,default:!1},mdMode:{type:Number,default:j["EAlarmModeVal"].MD},normalMode:{type:Number,default:j["EAlarmModeVal"].TIMING},noneMode:{type:Number,default:j["EAlarmModeVal"].NONE},allowChannelSelect:{type:Boolean,default:!1}},data:function(){return{modesPoolCopy:{},filteredModesPool:{},scheduleStatusVal:!1,isVideoLoss:!1,channel:{}}},computed:{isConfigContextLoading:function(){return this.$store.getters.configContextLoading},isScheduleMulti:function(){return this.scheduleCate===j["EScheduleCate"].MULTI},supportSchedule:function(){return this.scheduleCate!==j["EScheduleCate"].NONE},hasVideoLoss:function(){return!!this.isScheduleMulti&&!!this.modesPoolCopy&&!!this.modesPoolCopy[x["EScheduleMode"].VL]},hasScheduleSwitch:function(){return this.supportScheduleEnable&&!!this.scheduleSwitchDes&&void 0!==this.scheduleStatus}},watch:{modesPool:{handler:function(e){if(e&&JSON.stringify(this.modesPoolCopy)!==JSON.stringify(e)){this.filteredModesPool=Object(g["g"])(e),Reflect.deleteProperty(this.filteredModesPool,x["EScheduleMode"].VL),this.modesPoolCopy=Object(g["g"])(e);var t=this.modesPoolCopy[x["EScheduleMode"].VL];this.isVideoLoss=!!t&&t.includes("1")}},deep:!0,immediate:!0},scheduleStatus:{handler:function(e){this.scheduleStatusVal=!e||e.isOpen},immediate:!0,deep:!0}},methods:{saveScheduleGroup:function(){this.saveSchedule(this.modesPoolCopy)},saveSchedule:function(e){this.$emit(this.isScheduleMulti?"saveScheduleGroup":"saveScheduleLegacy",e)},channelIndexChange:function(e){this.channel=this.channels[e],this.$emit("channelIndexChange",e)},scheduleSwitchChange:function(e){e!==this.scheduleStatus.isOpen&&(this.scheduleStatusVal=e,this.$emit("scheduleSwitchChange",e))},scheduleGroupChanged:function(e){this.filteredModesPool=Object(g["g"])(e);var t=this.modesPoolCopy[x["EScheduleMode"].VL];this.modesPoolCopy=Object(s["a"])(Object(s["a"])({},this.filteredModesPool),t?Object(r["a"])({},x["EScheduleMode"].VL,t):{})},videoLossSwitch:function(e){this.$set(this.modesPoolCopy,x["EScheduleMode"].VL,this.modesPoolCopy[x["EScheduleMode"].VL].replace(/\d/g,"".concat(~~e))),this.isVideoLoss=e},retry:function(){this.$emit("channelRetry")},openCopytoDialog:function(){this.$emit("handleSaveAndCopyto")}}}),z=W,Y=(n("a233"),Object(S["a"])(z,i,a,!1,null,"3cddc5e7",null));t["a"]=Y.exports},c86d:function(e,t,n){"use strict";var i=n("4078"),a=n.n(i);a.a},c910:function(e,t,n){},c91b:function(e,t,n){e.exports=n.p+"img/animal_high.c32e27fc.png"},c9f8:function(e,t,n){"use strict";var i=n("4b47"),a=n.n(i);a.a},ca5a:function(e,t,n){"use strict";var i=n("6d2a"),a=n.n(i);a.a},cb70:function(e,t,n){},cd43:function(e,t,n){"use strict";var i=n("d113b");n.d(t,"a",(function(){return i["a"]}))},d051:function(e,t,n){"use strict";var i=n("4bad"),a=n.n(i);a.a},d059:function(e,t,n){"use strict";var i=n("b93a"),a=n.n(i);a.a},d0d1:function(e,t,n){},d113b:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));n("ac1f"),n("1276"),n("96cf");var i=n("1da1"),a=n("d4ec"),r=n("bee2"),s=n("0ac9"),o=function(){function e(){Object(a["a"])(this,e)}return Object(r["a"])(e,[{key:"getPtSpeed",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=20,n=window.localStorage.getItem("/ptz/speed"),n&&!isNaN(parseFloat(n))&&(t=Math.max(1,Math.min(64,parseFloat(n)))),e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPtSpeed",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:window.localStorage.setItem("/ptz/speed",t+""),window.dispatchEvent(new Event("setLocalPtzSpeed"));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getTempleFolder",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","");case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getDateForm",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",s["EDateForm"].YMD);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getFullscreen",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getLockScreenPassword",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","");case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getLiveMode",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",1);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getLocale",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","auto");case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getLocaleCountryCode",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=navigator.language.split("-")[1],e.abrupt("return",t||"US");case 3:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}],[{key:"instance",value:function(){return e.singleton}}]),e}();o.singleton=new o;var c=o.instance()},d1d4:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("ade3"),a=n("69b8"),r=n("a36f"),s=(n("0ac9"),function(){var e;return e={Detection:a["a"].t("common_schedule_time_page_detection_tab")},Object(i["a"])(e,r["EScheduleMode"].MD,a["a"].t("common_ai_any_motion_option")),Object(i["a"])(e,r["EScheduleMode"].VL,a["a"].t("player_views_channel_selection_page_video_loss_state")),Object(i["a"])(e,r["EScheduleMode"].IO,"IO"),Object(i["a"])(e,r["EScheduleMode"].BLIND,"BLIND"),Object(i["a"])(e,r["EScheduleMode"].HDEXP,"HDEXP"),Object(i["a"])(e,r["EScheduleMode"].HDFULL,"HDFULL"),Object(i["a"])(e,r["EScheduleMode"].IPCONFLICT,"IPCONFLICT"),Object(i["a"])(e,r["EScheduleMode"].NETCONNECT,"NETCONNECT"),Object(i["a"])(e,r["EScheduleMode"].RF,"RF"),Object(i["a"])(e,r["EScheduleMode"].FD,"FD"),Object(i["a"])(e,r["EScheduleMode"].VS,"VS"),Object(i["a"])(e,r["EScheduleMode"].ID,"ID"),Object(i["a"])(e,r["EScheduleMode"].RFLPWR,"RFLPWR"),Object(i["a"])(e,r["EScheduleMode"].RFTAMPER,"RFTAMPER"),Object(i["a"])(e,r["EScheduleMode"].DONGLELOST,"DONGLELOST"),Object(i["a"])(e,r["EScheduleMode"].PIR,"PIR"),Object(i["a"])(e,r["EScheduleMode"].TIMING,a["a"].t("common_schedule_time_page_regular_tab")),Object(i["a"])(e,r["EScheduleMode"].MANUAL_REC,"MANUAL_REC"),Object(i["a"])(e,r["EScheduleMode"].AI_PEOPLE,a["a"].t("common_ai_human_option")),Object(i["a"])(e,r["EScheduleMode"].AI_VEHICLE,a["a"].t("common_ai_vehicle_option")),Object(i["a"])(e,r["EScheduleMode"].AI_FACE,a["a"].t("common_ai_face_option")),Object(i["a"])(e,r["EScheduleMode"].AI_OTHER,a["a"].t("common_other")),Object(i["a"])(e,r["EScheduleMode"].VISITOR,a["a"].t("common_visitor")),Object(i["a"])(e,r["EScheduleMode"].AI_DOG_CAT,a["a"].t("common_ai_pet_option")),Object(i["a"])(e,r["EScheduleMode"].AI_PACKAGE,a["a"].t("common_ai_package_option")),Object(i["a"])(e,r["EScheduleMode"].Unknown,a["a"].t("common_unknown")),e})},d280:function(e,t,n){},d43b:function(e,t,n){"use strict";var i=n("bc73"),a=n.n(i);a.a},d445:function(e,t){e.exports="data:image/png;base64,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"},d508:function(e,t,n){},d55c:function(e,t,n){"use strict";var i=n("586d"),a=n.n(i);a.a},d739:function(e,t,n){"use strict";var i=n("7209"),a=n.n(i);a.a},d808:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsSAAALEgHS3X78AAAB1UlEQVRIic2VPWtUURCG3/FjIy7BBZcUqRYFCUhASBM7IbWSMlhtkd5F/AHaB8RSTB+7SCo7tfcH2K0QSGHjF4GAJE8YnIvHs/fcu7fSgcPlzrzzPWeOuhC/adJF50IdE7gHbBZ0Bhl2ARgCtbZqmZIeSdoHRnME6Q4vlYQlBy/i+7zJMtCXdFHSsZmdze3AzN5LeiNp08tVMO66i5JO3UFTIA4e+Ml4o2jqfsKbVDjgKrAMXMn0FoGb/k2Z74CvwNPUkTcaGJcy8AYn/70wvBZnkIJ9aqYR8bRhgpoqUBl2J70ScBKZUKp9Qe/6TFlaohnnPflvyYBtSdeyAF+Z2Y8uQQM3JN3O+X4Dn9Xgv0va7ViVQ0mXM96vjjb+EcUduFU3njOrImZ5B7jfIdyhJB/rh8BqKrDE8LKkxwF0ehI7aS6KzXs39tNPSR/M7Kgy7jf5Y5ydcFbJVmNrzhBwB1hJsL2owPivCiRlWcvKtQ4cABv6s+A2EvlWvr8SR/XrIgH1gV1gr8rAowJeJphRONgq2Sk9OE4PJC1J2jOz2n1vZp8lfZK0Unr9Sm9yPxx8MbODxlSlt/FdrxMW31JJU4++xbhn8Q14LemkDdtK3uC0B60k6RzQKH8S8hwKPwAAAABJRU5ErkJggg=="},d827:function(e,t,n){"use strict";var i=n("403f"),a=n.n(i);a.a},d87e:function(e,t,n){},d8d3:function(e,t,n){},dbdf:function(e,t,n){"use strict";var i=n("5b89"),a=n.n(i);a.a},ddb2:function(e,t){e.exports="data:image/png;base64,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"},de99:function(e,t,n){"use strict";var i=n("1491"),a=n.n(i);a.a},dec3:function(e,t,n){},df7a:function(e,t,n){"use strict";var i=n("74d4");n.d(t,"a",(function(){return i["a"]}))},e0b0:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i,a=n("ade3"),r=n("0ac9");function s(e){var t=o[e];for(var n in t)document.body.style.setProperty("--".concat(n),t[n])}var o=(i={},Object(a["a"])(i,r["EColorTheme"].DARK,{color_a1:"#101011",color_a2:"#21252B",color_a3:"#2D333C",color_f1:"#e1e1e1",color_f2:"#777777",color_f3:"#ffffff",color_f4:"#0E6AFF",color_f5:"#30BBFA",color_f6:"#fffffe",color_f7:"#CCCCCC",color_b1:"#0E6AFF",color_b2:"linear-gradient(315deg, #1DD6E0 0%, #1E70F2 100%)",color_b3:"#535e6b",color_b4:"#ff5e62",color_b5:"#ffd155",color_b6:"#58db8d",color_b7:"#5767ff",color_b8:"#3E4252"}),Object(a["a"])(i,r["EColorTheme"].LIGHT,{color_a1:"#F7F8F9",color_a2:"#FeFeFe",color_a3:"#EEEEEE",color_f1:"#333333",color_f2:"#aaaaaa",color_f3:"#000000",color_f4:"#0E6AFF",color_f5:"#30BBFA",color_f6:"#fffffe",color_f7:"#555555",color_b1:"#0E6AFF",color_b2:"linear-gradient(315deg, #1DD6E0 0%, #1E70F2 100%)",color_b3:"#e2e2e2",color_b4:"#ff5e62",color_b5:"#ffd155",color_b6:"#58db8d",color_b7:"#5767ff",color_b8:"#DDDDDD"}),i)},e10a:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n("a4d3"),n("e01a"),n("b0c0"),n("d3b7"),n("ac1f"),n("25f0"),n("5319"),n("1276");var i=n("53ca"),a=n("d4ec"),r=n("bee2"),s=n("b85c");function o(e,t,n){var i,a=t.replace(/\[(\d+)\]/g,".$1").split("."),r=e,o=Object(s["a"])(a);try{for(o.s();!(i=o.n()).done;){var c=i.value;if(r=Object(r)[c],void 0===r)return n}}catch(u){o.e(u)}finally{o.f()}return r}var c=function(){function e(){Object(a["a"])(this,e)}return Object(r["a"])(e,[{key:"errorToJson",value:function(e){switch(Object(i["a"])(e)){case"bigint":case"number":return{code:e.toString(),symbol:"integer",message:"unknown",stack:"unknown"};case"boolean":return{code:e?1:0,symbol:"boolean",message:"unknown",stack:"unknown"};case"string":return{code:"unknown",symbol:"string",message:e,stack:"unknown"};case"symbol":return{code:"unknown",symbol:"symbol",message:e.description,stack:"unknown"};default:if(null!==e&&void 0!==e||(e={}),"QueryFailedError"===o(e,"__proto__.constructor.name",""))return{symbol:e.code,code:e.errno,message:e.message,query:{sql:e.query,params:e.parameters},stack:e.stack||e.trace};if(!e)return{code:-1,symbol:"unknown",message:"unknown",stack:"unknown"};for(var t={code:e.errno||e.code||e.name||-1,symbol:e.name||"unknown",message:e.message||e.msg||"unknown",stack:e.stack||e.trace||"unknown"},n=0,a=["cmd","handle","channel","session","data"];n-1:e.isAgreementChecked},on:{change:function(t){var n=e.isAgreementChecked,i=t.target,a=!!i.checked;if(Array.isArray(n)){var r=null,s=e._i(n,r);i.checked?s<0&&(e.isAgreementChecked=n.concat([r])):s>-1&&(e.isAgreementChecked=n.slice(0,s).concat(n.slice(s+1)))}else e.isAgreementChecked=a}}}),n("span",{staticClass:"icon-client_check",attrs:{checkicon:""}})]),n("p",{domProps:{innerHTML:e._s(e.$t("account_center_account_sigin_privacy_policy_and_terms",{s1:""+e.$t("help_config_page_privacy_policy_item_label")+"",s2:""+e.$t("help_config_page_terms_item_label")+""}))}})]),n("speedyBtn",{attrs:{isLoading:e.isLogging,btnEnabled:e.formChecked,btnText:e.$t("common_login_account_button")},on:{btnClick:e.login}}),n("p",{staticClass:"copy-right"},[e._v(e._s(e.$t("system_info_copyright",{s1:e.copyrightYear,s2:e.copyrightLimit})))])],1)])])},a=[],r=(n("99af"),n("d81d"),n("fb6a"),n("b0c0"),n("2909")),s=(n("96cf"),n("1da1")),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"simple-input"},[n("div",{staticClass:"input-row flex"},[n("label",{staticClass:"input-wrap flex",class:{active:e.inputFocus},attrs:{disabled:e.disabled}},[e.labelText?n("span",{staticClass:"button-text label-text"},[e._v(e._s(e.labelText))]):e._e(),e._t("label-slot"),"checkbox"!==e.inputType||e.isLazy&&!e.openStrength?"radio"!==e.inputType||e.isLazy&&!e.openStrength?!e.isLazy||e.openStrength?n("input",{directives:[{name:"model",rawName:"v-model",value:e.val,expression:"val"}],ref:"innerSimpleInput",staticClass:"button-text label-input",class:{isPassword:e.isPassword},attrs:{"reo-element":"",disabled:e.disabled||e.isSetting,placeholder:e.inputPlaceholder,type:e.inputType},domProps:{value:e.val},on:{change:e.onChange,blur:e.onBlur,focus:e.onFocus,contextmenu:function(t){return t.stopPropagation(),e.showRightMenu(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.inputEnter(t)},input:function(t){t.target.composing||(e.val=t.target.value)}}}):n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.val,expression:"val",modifiers:{lazy:!0}}],ref:"innerSimpleInput",staticClass:"button-text label-input",class:{isPassword:e.isPassword},attrs:{"reo-element":"",type:e.inputType,disabled:e.disabled||e.isSetting,placeholder:e.inputPlaceholder},domProps:{value:e.val},on:{blur:e.onBlur,focus:e.onFocus,contextmenu:function(t){return t.stopPropagation(),e.showRightMenu(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.inputEnter(t)},change:function(t){e.val=t.target.value}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.val,expression:"val"}],ref:"innerSimpleInput",staticClass:"button-text label-input",class:{isPassword:e.isPassword},attrs:{"reo-element":"",disabled:e.disabled||e.isSetting,placeholder:e.inputPlaceholder,type:"radio"},domProps:{checked:e._q(e.val,null)},on:{change:[function(t){e.val=null},e.onChange],blur:e.onBlur,focus:e.onFocus,contextmenu:function(t){return t.stopPropagation(),e.showRightMenu(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.inputEnter(t)}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.val,expression:"val"}],ref:"innerSimpleInput",staticClass:"button-text label-input",class:{isPassword:e.isPassword},attrs:{"reo-element":"",disabled:e.disabled||e.isSetting,placeholder:e.inputPlaceholder,type:"checkbox"},domProps:{checked:Array.isArray(e.val)?e._i(e.val,null)>-1:e.val},on:{change:[function(t){var n=e.val,i=t.target,a=!!i.checked;if(Array.isArray(n)){var r=null,s=e._i(n,r);i.checked?s<0&&(e.val=n.concat([r])):s>-1&&(e.val=n.slice(0,s).concat(n.slice(s+1)))}else e.val=a},e.onChange],blur:e.onBlur,focus:e.onFocus,contextmenu:function(t){return t.stopPropagation(),e.showRightMenu(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.inputEnter(t)}}}),!e.hideEye&&e.isPassword?n("span",{staticClass:"eye-icon icon-client_showpassword",class:{active:e.openEye},attrs:{title:e.eyeToolTip},on:{click:function(t){return t.stopPropagation(),e.changeEye(t)}}}):e._e(),e.noticeText?n("span",{staticClass:"button-text short-notice-text"},[e._v(e._s(e.noticeText))]):e._e()],2),e._t("default",null,{inputOffsetLeft:e.inputOffsetLeft}),e.showHintStrength?n("strong",{staticClass:"hint-box flex",class:{"is-safe":e.strength>0}},[e._l(3,(function(t){return n("span",{key:t,staticClass:"hint-icon",class:{"hint-strength":t<=e.strength+1}})})),n("span",{staticClass:"hint-des"},[e._v(e._s(e.hintDes[e.strength]))])],2):e._e(),e.isSetting&&!e.warnClue?n("loadingImg",{staticClass:"loading-img-box"}):e._e(),e.warnClue&&!e.isSetting?n("span",{staticClass:"icon-client_warning warn-clue-icon"}):e._e()],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showError,expression:"showError"}],staticClass:"input-error flex-between"},[n("div",{staticClass:"main-error-wrap"},[n("div",{staticClass:"error-clue"}),n("div",{staticClass:"notes-text"},[e._v(e._s(e.forceError?e.forceError:e.errorString))])]),e.characterValidationErrorTip?n("div",{staticClass:"character-validation-error-tip-wrap"},[n("span",{staticClass:"icon-client_questionmark warn-clue-icon",attrs:{title:""}}),n("div",{staticClass:"detailed-content",domProps:{innerHTML:e._s(e.characterValidationErrorTip)}})]):e._e()])])},c=[],u=(n("a623"),n("caad"),n("45fc"),n("a9e3"),n("d3b7"),n("7f78"),n("1bf2"),n("ac1f"),n("25f0"),n("2532"),n("5319"),n("498a"),n("2b0e")),l=n("ffa8"),d=n("6ecd"),p=n("df7a"),h=u["a"].extend({name:"simpleInput",components:{loadingImg:d["a"]},props:{autoFocus:{type:Boolean,default:!1},openStrength:{type:Boolean,default:!1},isSetting:{type:Boolean,default:!1},warnClue:{type:Boolean,default:!1},isLazy:{type:Boolean,default:!0},targetValue:[String,Number],labelText:String,noticeText:String,placeholder:String,regexp:{type:String,validator:function(e){return void 0===e||Reflect.ownKeys(Reflect.getPrototypeOf(l["z"])).includes(e)}},multiRegexp:{type:Array,validator:function(e){return void 0===e||e.every((function(e){return Reflect.ownKeys(Reflect.getPrototypeOf(l["z"])).includes(e)}))}},forceError:{type:String,default:""},error:{type:String,default:""},flag:{type:[String,Number],default:""},minLength:{type:Number,default:0},maxLength:{type:Number,default:-1},isPassword:{type:Boolean,default:!1},hideEye:{type:Boolean,default:!1},isNumber:{type:Boolean,default:!1},max:{type:Number,default:999999999999999},min:Number,disabled:{type:Boolean,default:!1},disabledPlaceholder:{type:[String,Number],default:""},multiple:Number,disallowConsecutiveSpaces:{type:Boolean,default:!1},showFirstOrLastSpaceLimit:{type:Boolean,default:!0},autoRemoveFirstOrLastSpace:{type:Boolean,default:!0},triggerVerificationCount:{type:Number,default:0},hideBlankError:{type:Boolean,default:!1}},data:function(){return{openEye:!1,strength:-1,hintDes:[this.$t("common_password_weak"),this.$t("common_password_medium"),this.$t("common_password_strong")],sourceVal:"",characterValidationErrorTip:"",errorString:"",inputFocus:!1,inputOffsetLeft:0}},mounted:function(){var e=this.$refs.innerSimpleInput;this.autoFocus&&e.focus(),this.inputOffsetLeft=e.offsetLeft},computed:{eyeToolTip:function(){return this.openEye?this.$t("tooltip_HidePassword"):this.$t("remote_config_password_page_show_password")},showHintStrength:function(){return this.isPassword&&this.openStrength&&""!==this.sourceVal&&!this.isSetting&&!this.warnClue},showError:function(){return!!this.forceError||!this.disabled&&!!this.errorString&&(!this.hideBlankError||!!this.sourceVal)},inputPlaceholder:function(){return this.disabled?"":void 0!==this.placeholder?this.placeholder:this.$t("common_typeHere")},treatedError:function(){return this.error?this.error:this.$t("common_formatting_error")},val:{get:function(){var e=this.disabled?this.disabledPlaceholder:this.sourceVal;return this.autoRemoveFirstOrLastSpace&&"[object String]"===toString.call(e)&&(e=e.trim()),e},set:function(e){var t=this.isNumber?e.toString().replace(/[^0-9]/g,""):e.toString();if(this.autoRemoveFirstOrLastSpace&&(t=t.trim()),this.isNumber){var n=parseFloat(t);isNaN(n)&&(n=0),this.multiple&&(n=Math.round(n/this.multiple)*this.multiple),this.max&&this.min?n=Math.max(Math.min(n,this.max),this.min):this.max?n=Math.min(n,this.max):this.min&&(n=Math.max(n,this.min)),this.sourceVal=parseFloat(n.toString())}else this.sourceVal=t.toString();this.updateHintStrength(this.sourceVal),this.isLazy&&this.openStrength||this.emitChanged()}},inputType:function(){return this.isPassword?this.openEye?"text":"password":"text"}},methods:{onChange:function(){this.isLazy&&this.openStrength&&this.emitChanged()},onBlur:function(){this.inputFocus=!1,this.isLazy&&(this.errorString=this.getErrorString()),this.$emit("inputBlur",this.flag)},onFocus:function(){this.inputFocus=!0,this.$emit("inputFocus",this.flag)},inputEnter:function(e){e.target.blur(),this.$emit("inputEnter")},changeEye:function(){this.disabled?this.openEye=!1:this.openEye=!this.openEye},updateHintStrength:function(e){if(this.showHintStrength){var t=e.toString();if(""!==t)if(t.length<6)this.strength=0;else{var n=-1,i=/[-\^\$\(\)\[\]\{\}\.\?\*\+\\\|\/'",:;`<=>@_~!#%& ]/g,a=/[a-z]/g,r=/[A-Z]/g,s=/[0-9]/g;i.test(t)&&(n++,t=t.replace(i,"")),a.test(t)&&(n++,t=t.replace(a,"")),r.test(t)&&(n++,t=t.replace(r,"")),s.test(t)&&(n++,t=t.replace(s,"")),this.strength=Math.min(n,2)}}},getErrorString:function(){var e=this;this.characterValidationErrorTip="";var t=this.sourceVal.toString(),n=!0;if(t.length0&&new Blob([t],{type:"text/plain"}).size>this.maxLength)return this.$t("common_view_string_length_maximum_limit",{s1:this.maxLength});if(this.showFirstOrLastSpaceLimit&&/(^\s+)|(\s+$)/g.test(t))return this.$t("password_trim_warn");if(this.disallowConsecutiveSpaces&&/\s{2,}/g.test(t))return this.$t("edit_rule_consecutive_spaces_error");if(this.multiRegexp)n=this.multiRegexp.some((function(t){return l["z"][t](e.sourceVal)}));else if(this.regexp){var i=this.regexp,a=l["f"][i](this.sourceVal);if(a)return this.characterValidationErrorTip=a,this.$t("common_not_support_character");"uid"!==i&&(n=l["z"][i](this.sourceVal))}return n?"":this.treatedError},emitChanged:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(this.sourceVal.toString()!==this.targetValue.toString()||e)&&(this.errorString=this.getErrorString(),this.$emit("inputChanged",this.sourceVal,this.flag,this.errorString,this.forceError))},showRightMenu:function(){p["a"].handleRightClickMenu()}},watch:{targetValue:{handler:function(e,t){(!t&&0!==t||e.toString()!==t.toString())&&(this.sourceVal!==e&&(this.errorString=""),this.val=e)},immediate:!0},triggerVerificationCount:{handler:function(){this.emitChanged(!0)}}}}),m=h,g=(n("2d5f"),n("2877")),f=Object(g["a"])(m,o,c,!1,null,"dc41cff6",null),_=f.exports,v=n("3ee0"),b=n("34d7"),w=n("4a47"),C=n("9354"),y=n("aa18"),S=n("74d4"),k=u["a"].extend({components:{simpleInput:_,speedyBtn:v["a"]},data:function(){return{copyrightYear:y["a"].copyrightYear,copyrightLimit:"Reolink",version:clientInfo.version,baseUrl:"",webAuth:1,isAgreementChecked:!1,username:"admin",password:"",httpError:"",isLogging:!1,inputArr:{username:{flag:"username",regexp:"nickname",placeholder:this.$t("common_username_description"),maxLength:31,checked:!0},password:{flag:"password",regexp:"password",isPassword:!0,maxLength:31,placeholder:this.$t("common_password_password_description"),checked:!0}}}},computed:{usernameChecked:function(){return!(!this.username||!this.inputArr.username.checked)},passwordChecked:function(){return!(""!==this.password&&!this.inputArr.password.checked)},formChecked:function(){return this.usernameChecked&&this.passwordChecked&&(!this.needAgreeManually||this.isAgreementChecked)},needAgreeManually:function(){return!this.webAuth}},created:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s,o,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return C["a"].log("--- ".concat("1.0.278-pre-2"," ---")),t.prev=1,t.next=4,b["b"].sendCommandWithoutToken("GetAuthorization",{},0);case 4:n=t.sent,i=n.value.Authorization,e.webAuth=i.WebAuth,t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](1);case 12:if(e.webAuth){t.next=14;break}return t.abrupt("return");case 14:a=window.sessionStorage.getItem("word1")||"",r=window.sessionStorage.getItem("word2")||"",s=window.sessionStorage.getItem("word3")||"",o=window.sessionStorage.getItem("word4")||"",c=window.sessionStorage.getItem("word5")||"",s&&o&&a&&r&&(w["a"].init(a,r),ControllerLogin.initInfo(s,o,c),ControllerLogin.onLogined());case 20:case"end":return t.stop()}}),t,null,[[1,9]])})))()},mounted:function(){var e=this,t=document.querySelector(".href-terms");t.addEventListener("click",(function(t){S["a"].openLink(e.$t("reolink_sidebar_page_terms_link"),t)}));var n=document.querySelector(".href-privacy");n.addEventListener("click",(function(t){S["a"].openLink(e.$t("reolink_sidebar_page_privacy_link"),t)}))},methods:{login:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,s,o,c,u,l,d,p,h,m,g,f,_,v,C,y,S,k,A;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.formChecked){t.next=2;break}return t.abrupt("return");case 2:return e.httpError="",e.isLogging=!0,t.prev=4,window.sessionStorage.clear(),t.next=8,b["b"].sendCommandLogin({Version:1});case 8:i=t.sent,a=i.Realm,s=i.Qop,o=i.Nonce,c=i.Nc,u=i.Method,l=i.Uri,d="",p=48,h="0123456789abcdef";while(p-- >0)d+=h[Math.floor(Math.random()*h.length)];return m=w["a"].encode(e.username+":"+a+":"+e.password),g=w["a"].encode(u+":"+l),f=w["a"].encode(m+":"+o+":"+c+":"+d+":"+s+":"+g),_=w["a"].encode(o+"-"+e.password+"-"+d).slice(0,16).toUpperCase(),v=w["a"].encode("webapp-".concat(d,"-").concat(e.password,"-").concat(o,"-").concat(e.username)).slice(0,16).toUpperCase(),w["a"].init(_,v),t.next=27,b["b"].sendCommandLogin({Version:1,Digest:{UserName:e.username,Realm:a,Method:u,Uri:l,Nonce:o,Nc:c,Cnonce:d,Qop:s,Response:f}});case 27:for(C=t.sent,y=C.value.Token,window.sessionStorage.setItem("word1",_),window.sessionStorage.setItem("word2",v),S=[],k=0;k-1:e.firmwareUpgrade.BUpgradeConfig},on:{change:function(t){var n=e.firmwareUpgrade.BUpgradeConfig,i=t.target,a=!!i.checked;if(Array.isArray(n)){var r=null,s=e._i(n,r);i.checked?s<0&&e.$set(e.firmwareUpgrade,"BUpgradeConfig",n.concat([r])):s>-1&&e.$set(e.firmwareUpgrade,"BUpgradeConfig",n.slice(0,s).concat(n.slice(s+1)))}else e.$set(e.firmwareUpgrade,"BUpgradeConfig",a)}}}),i("span",{staticClass:"check-icon icon-client_check",attrs:{checkicon:""}}),i("span",{staticClass:"choose-clue"},[e._v(e._s(e.$t("remoteConfig_Maintenance_updateConfigureFile")))])]),i("span",{directives:[{name:"show",rawName:"v-show",value:e.isDownloadFailed,expression:"isDownloadFailed"}]},[e._v(e._s(e.$t("STR_DOWNLOAD_FAILED")))]),i("span",{directives:[{name:"show",rawName:"v-show",value:e.isUpgradeReady,expression:"isUpgradeReady"}]},[e._v(e._s(e.$t("remoteConfig_upgrading_readiedSubtitle")))]),i("span",{directives:[{name:"show",rawName:"v-show",value:e.isRequestFailed,expression:"isRequestFailed"}]},[e._v(e._s(e.$t("remoteConfig_upgrading_requestFailedSubtitle",{s1:e.failedPrompt})))]),i("span",{directives:[{name:"show",rawName:"v-show",value:e.isUploading||e.isUpgrading,expression:"isUploading || isUpgrading"}]},[e._v(e._s(e.$t("remoteConfig_upgrading_UpgradingSubtitle")))]),i("span",{directives:[{name:"show",rawName:"v-show",value:e.isUpgradeSucceed,expression:"isUpgradeSucceed"}]},[e._v(e._s(e.$t("remoteConfig_upgrading_upgradeCompletedSubtitle")))]),i("span",{directives:[{name:"show",rawName:"v-show",value:e.isUpgradeCompleted,expression:"isUpgradeCompleted"}]},[e._v(e._s(e.$t("firmwareUpgrade_ipc_done_des")))]),i("span",{directives:[{name:"show",rawName:"v-show",value:e.isUpgradeFailed,expression:"isUpgradeFailed"}]},[e._v(e._s(e.$t("remoteConfig_upgrading_upgradeFailedSubtitle",{s1:e.failedPrompt})))])])]),e.isDownloading?i("sysProgress",{attrs:{progressNum:e.firmwareDownload.progress,text:e.upgradingPrompt,isSetting:e.firmwareDownload.isSetting,delay:0}}):e._e(),e.isUploading||e.isUpgrading?i("sysProgress",{attrs:{progressNum:e.firmwareUpgrade.progress,text:e.upgradingPrompt,isSetting:e.firmwareUpgrade.isSetting,delay:0}}):e._e(),i("div",{staticClass:"btn-box flex"},[e.isUpgradeReady||e.isRequestFailed||e.isDownloadReady||e.isDownloadFailed?i("speedyBtn",{attrs:{btnClass:"ghost-button",keyCode:27,btnText:e.$t("common_dialog_cancel_button")},on:{btnClick:e.cancel}}):e._e(),e.isDownloadReady?i("speedyBtn",{attrs:{btnText:e.$t("common_Next")},on:{btnClick:e.startDownload}}):e._e(),e.isDownloading?i("speedyBtn",{attrs:{btnClass:"ghost-button",keyCode:27,btnText:e.$t("common_dialog_cancel_button")},on:{btnClick:e.cancelDownloading}}):e._e(),e.isDownloadFailed?i("speedyBtn",{attrs:{btnText:e.$t("remoteConfig_upgrading_tryAgain")},on:{btnClick:e.downloadBack}}):e._e(),e.isUpgradeReady?i("speedyBtn",{attrs:{btnText:e.$t("common_Next")},on:{btnClick:e.startUpgrade}}):e._e(),e.isRequestFailed?i("speedyBtn",{attrs:{btnText:e.$t("remoteConfig_upgrading_tryAgain")},on:{btnClick:e.back}}):e._e(),e.isUpgradeCompleted||e.isUpgradeSucceed||e.isUpgradeFailed?i("speedyBtn",{attrs:{btnText:e.$t("common_dialog_ok_button")},on:{btnClick:function(t){return e.exitCurrentInterface(e.isDeviceUpgrading)}}}):e._e()],1)],1)])},M=[],N=(n("4de4"),n("7db0"),n("5f5b")),B=n("bf3b"),F=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sys-progress",on:{click:function(e){e.stopPropagation(),e.preventDefault()}}},[n("div",{staticClass:"update-progress"},[n("div",{staticClass:"pregress-inner",style:{width:e.progressNum+"%"}})]),n("div",{staticClass:"progress-clue flex"},[e.isSetting&&!e.warnClue?n("loadingImg",{staticClass:"loading-img-box",attrs:{delay:e.delay}}):e._e(),e.warnClue&&!e.isSetting?n("span",{staticClass:"icon-client_warning warn-clue-icon"}):e._e(),n("span",{staticClass:"prompt-content"},[e._v(e._s(e.text))]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.filePath&&e.progressNum>=100&&!e.warnClue&&!e.isSetting,expression:"filePath&&progressNum>=100&&!warnClue&&!isSetting"}],staticClass:"file-icon-wrap no-drag",attrs:{title:e.$t("tooltip_ViewInFolder")},on:{click:function(t){return e.openFile(e.filePath)}}},[n("span",{staticClass:"btn-icon icon-client_file"})])],1)])},j=[],V=n("7d9f"),U=u["a"].extend({name:"sysProgress",components:{loadingImg:d["a"]},props:{isSetting:{type:Boolean,default:!1},delay:Number,warnClue:{type:Boolean,default:!1},progressNum:Number,text:String,filePath:String},methods:{openFile:function(e){V["a"].showItemInFolder(e)}}}),H=U,G=(n("5c60"),Object(g["a"])(H,F,j,!1,null,"205221d1",null)),W=G.exports,z=n("ec26"),Y=n("914c"),q=(n("4ec9"),n("69b8")),$=function(){return new Map([[N["BC_RSP_CODE_E"].E_BC_RSP_TIMEOUT,q["a"].t("remoteConfig_upgrading_timeout")],[N["BC_RSP_CODE_E"].E_BC_RSP_SYS_BUSY,q["a"].t("remoteConfig_upgrading_busy")],[N["BC_RSP_CODE_E"].E_BC_RSP_FILE_NOFIND,q["a"].t("remoteConfig_upgrading_noFind")],[N["BC_RSP_CODE_E"].E_BC_RSP_CMD_UPGRADE_SAME_VER,q["a"].t("remoteConfig_upgrading_sameVer")],[N["BC_RSP_CODE_E"].E_BC_RSP_CMD_UPGRADE_CHECK_FAILED,q["a"].t("remoteConfig_upgrading_checkFailed")],[N["BC_RSP_CODE_E"].E_BC_RSP_CMD_UPGRADE_BUSY,q["a"].t("remoteConfig_upgrading_upgradeBusy")],[N["BC_RSP_CODE_E"].E_BC_RSP_CMD_UPGRADE_OOM,q["a"].t("remoteConfig_upgrading_upgradeOom")],[N["BC_RSP_CODE_E"].E_BC_RSP_INVALID,q["a"].t("remoteConfig_upgrading_upgradeFailed")]])},K=n("11b7"),Z=(n("2b3d"),n("d4ec")),J=n("bee2"),Q=n("bc3a"),X=n.n(Q),ee=n("d1d4"),te=n("0ac9"),ne=n("b85c"),ie=function(){function e(){Object(Z["a"])(this,e),this.deviceServerList={}}return Object(J["a"])(e,[{key:"getDeviceServerBinding",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t,n){var i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.deviceServerList[t]){e.next=2;break}return e.abrupt("return",this.deviceServerList[t]);case 2:return e.next=4,Y["b"].get("".concat(y["a"].ReoApiV2BaseUrl,"/devices/").concat(t,"/server-binding?language=").concat(n));case 4:return i=e.sent,a=i.data,this.deviceServerList[t]=a.availableZones,e.abrupt("return",this.deviceServerList[t]);case 9:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getDefaultServerListJson",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",S["a"].getDefaultServerListJson());case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getGDPRServerMap",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t,n){var i,a,r,s,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getDeviceServerBinding(t,n);case 3:i=e.sent,e.next=13;break;case 6:return e.prev=6,e.t0=e["catch"](0),C["a"].error("gdprManager.ts > getGDPRServerMap > getDeviceServerBinding: ",e.t0),e.next=11,this.getDefaultServerListJson();case 11:a=e.sent,i=JSON.parse(a.buf);case 13:r={},s=Object(ne["a"])(i);try{for(s.s();!(o=s.n()).done;)c=o.value,r[c.id]={location:c.name,status:c.status,cPushDomain:c.services.alarm_push.server,cP2PDomain:c.services.p2p.server,cUpgradeDomain:c.services.roms_ota.server,cCloudDomain:c.services.cloud.server}}catch(u){s.e(u)}finally{s.f()}return e.abrupt("return",r);case 17:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(t,n){return e.apply(this,arguments)}return t}()}]),e}(),ae=new ie,re=function(){function e(){Object(Z["a"])(this,e),this.http=new Y["a"],this.source=X.a.CancelToken.source()}return Object(J["a"])(e,[{key:"downloadFile",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var n,i,a,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,n=0,e.next=4,this.http.get(t.url,{onDownloadProgress:function(e){var i=~~(e.loaded/e.total*100);n!==i&&(n=i,t.onProgress({percent:i,transferredBytes:e.loaded,totalBytes:e.total}))},cancelToken:this.source.token,responseType:"blob"});case 4:return i=e.sent,a=i.data,r=window.URL||window.webkitURL,s=Object.assign(a,{path:"",lastModified:0,name:t.fileName}),s.path=r.createObjectURL(s),e.abrupt("return",{name:s.name,size:s.size,path:s.path,file:s});case 12:throw e.prev=12,e.t0=e["catch"](0),e.t0;case 15:case"end":return e.stop()}}),e,this,[[0,12]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.source.cancel("axios canceled");case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),e}(),se=function(){function e(){Object(Z["a"])(this,e)}return Object(J["a"])(e,[{key:"createDownloader",value:function(){return new re}},{key:"isErrorOfCanceled",value:function(e){return X.a.isCancel(e)}}]),e}(),oe=new se,ce=n("e10a"),ue=u["a"].extend({name:"upgrading",components:{speedyBtn:v["a"],sysProgress:W},data:function(){return{device:{},selectedChannels:[],firmwareVerArr:[],upgradeSteps:0,ERROR_COPY:$(),firmwareUpgrade:{isSetting:!1,progress:0,BUpgradeConfig:!1,channelBit:0,downloadFileInfo:{}},firmwareDownload:{isSetting:!1,progress:0},sectionUploadControllerInited:{start:0,end:0,index:0,count:0},sectionUploadController:{},sectionUploadParams:{},failedPrompt:"",downloader:null,upgradingTimer:null,isDeviceUpgrading:!0}},computed:{handle:function(){return this.$store.getters.deviceHandle},deviceInfo:function(){return this.$store.getters.deviceInfo},upgradeFile:function(){return this.$store.getters.upgradeFile},newFirmware:function(){return this.$store.getters.newFirmware},newFirmwareVersion:function(){return this.newFirmware?this.newFirmware.version:""},newFirmwareFile:function(){if(!this.newFirmware||!this.newFirmware.files)return null;var e=this.newFirmware.files.find((function(e){return"full"===e.type}));return e||null},newFirmwareSize:function(){return this.newFirmwareFile?Object(l["e"])(parseFloat(this.newFirmwareFile.size.toString())):""},newFirmwareName:function(){return this.newFirmwareFile?this.newFirmwareFile.name:""},newFirmwareDownloadUrl:function(){return this.newFirmwareFile?this.newFirmwareFile.url:""},isDownloadReady:function(){return this.upgradeSteps===R["EUpgradStatus"].downloadReady},isDownloading:function(){return this.upgradeSteps===R["EUpgradStatus"].downloading},isDownloadFailed:function(){return this.upgradeSteps===R["EUpgradStatus"].downloadFailed},isUpgradeReady:function(){return this.upgradeSteps===R["EUpgradStatus"].upgradeReady},isRequestFailed:function(){return this.upgradeSteps===R["EUpgradStatus"].requestFailed},isUploading:function(){return this.upgradeSteps===R["EUpgradStatus"].uploading},isUpgrading:function(){return this.upgradeSteps===R["EUpgradStatus"].upgrading},isUpgradeCompleted:function(){return this.upgradeSteps===R["EUpgradStatus"].upgradeCompleted},isUpgradeSucceed:function(){return this.upgradeSteps===R["EUpgradStatus"].upgradeSucceed},isUpgradeFailed:function(){return this.upgradeSteps===R["EUpgradStatus"].upgradeFailed},upgradingPrompt:function(){return this.isDownloading?"".concat(this.$t("common_Downloading"),"... ").concat(this.firmwareDownload.progress,"%"):this.isUploading?this.$t("remoteConfig_upgrading_uploadingFile"):this.isUpgrading?this.$t("remoteConfig_upgrading_upgradingFirmware"):""}},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,B["a"].getDeviceWithHandle(e);case 2:t.device=n.sent;case 3:case"end":return n.stop()}}),n)})))()},immediate:!0},"firmwareUpgrade.progress":function(e){e<50||this.upgradeSteps===R["EUpgradStatus"].upgrading||(p["a"].afterFirmwareUpload(),this.upgradeSteps=R["EUpgradStatus"].upgrading,this.loopUpgradeProgress())}},created:function(){this.upgradeFile.file?(this.upgradeSteps=R["EUpgradStatus"].upgradeReady,this.firmwareUpgrade.BUpgradeConfig=!!this.upgradeFile.iUpgradeConfig,this.firmwareUpgrade.channelBit=this.upgradeFile.channelBit,this.isDeviceUpgrading=!this.upgradeFile.channelBit,this.firmwareUpgrade.downloadFileInfo.file=this.upgradeFile.file,this.firmwareUpgrade.downloadFileInfo.path=this.upgradeFile.file.path,this.firmwareUpgrade.downloadFileInfo.size=this.upgradeFile.file.size,this.firmwareUpgrade.downloadFileInfo.name=this.upgradeFile.file.name):this.newFirmware?this.upgradeSteps=R["EUpgradStatus"].downloadReady:this.upgradeSteps=R["EUpgradStatus"].upgradeFailed},methods:{cancel:function(){this.$store.commit("HANDLE_UPGRADE_FILE",{}),this.$store.commit("HANDLE_NEW_FIRMWARE",null),Object(l["v"])()},handleUploadErr:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";C["a"].error("remote-config > component > base > upgrading.vue > handleUploadErr > ".concat(t,": "),e),Object(l["v"])();var n=this.ERROR_COPY.get(e?e.code:-9999);this.failedPrompt=n?n+" ":e.msg?e.msg+" ":this.ERROR_COPY.get(N["BC_RSP_CODE_E"].E_BC_RSP_INVALID)+" ",this.firmwareUpgrade.isSetting=!1,this.destroyDownloader()},getChannelIndexArr:function(e){for(var t=[],n=0;n component > base > upgrading.vue > restoreDeviceLoginDesAndLogin: ",t.t0);case 27:case"end":return t.stop()}}),t,null,[[0,24]])})))()},checkUpgradeStatus:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a,r,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(n.prev=1,i=t.isDeviceUpgrading,a=[],!i){n.next=37;break}if(y["a"].IS_CLIENT){n.next=23;break}return n.prev=6,n.next=9,t.device.updateAbilityAndChannels(!0,!0);case 9:n.next=22;break;case 11:if(n.prev=11,n.t0=n["catch"](6),!n.t0.code||-6!==n.t0.code){n.next=21;break}return t.upgradeSteps=R["EUpgradStatus"].upgradeSucceed,t.firmwareUpgrade.progress=100,t.firmwareUpgrade.isSetting=!1,t.upgradingTimer&&(clearTimeout(t.upgradingTimer),t.upgradingTimer=null),p["a"].afterDeviceUpgrade(),n.abrupt("return");case 21:throw n.t0;case 22:throw new Error;case 23:if(t.device.openStatus===N["BCSDK_DEVICE_STATE_E"].BCSDK_DEVICE_STATE_OPENSUCCESS){n.next=31;break}if(!t.firmwareUpgrade.BUpgradeConfig){n.next=29;break}return n.next=27,t.restoreDeviceLoginDesAndLogin();case 27:n.next=31;break;case 29:return n.next=31,t.device.open();case 31:return n.next=33,t.device.config.getVersionInfo();case 33:r=n.sent,a=[r.cFirmwareVer],n.next=44;break;case 37:if(y["a"].IS_CLIENT){n.next=40;break}return n.next=40,t.device.updateAbilityAndChannels(!0);case 40:return o=t.selectedChannels.map(function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.remoteGetIsVideoLoss();case 2:if(n=e.sent,!n){e.next=5;break}throw new Error;case 5:return e.next=7,t.config.getChannelVersion();case 7:return i=e.sent,e.abrupt("return",i.cFirmwareVer);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),n.next=43,Promise.all(o);case 43:a=n.sent;case 44:if(t.upgradeSteps===R["EUpgradStatus"].upgrading){n.next=46;break}return n.abrupt("return");case 46:if(!a.some((function(e,n){return e===t.firmwareVerArr[n]}))){n.next=51;break}throw new Error("has the same firmware version");case 51:t.upgradeSteps=R["EUpgradStatus"].upgradeSucceed,t.firmwareUpgrade.progress=100,t.firmwareUpgrade.isSetting=!1;case 54:t.upgradingTimer&&(clearTimeout(t.upgradingTimer),t.upgradingTimer=null),n.next=62;break;case 57:if(n.prev=57,n.t1=n["catch"](1),C["a"].error("remote-config > component > base > upgrading.vue > checkUpgradeStatus:",ce["a"].errorToJson(n.t1)),!e){n.next=62;break}throw n.t1;case 62:case"end":return n.stop()}}),n,null,[[1,57],[6,11]])})))()},startUpgrade:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s,o,c,u,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.firmwareUpgrade.downloadFileInfo,n.path){t.next=4;break}return C["a"].error("upgrading.vue > startUpgrade > no file"),t.abrupt("return");case 4:if(e.upgradeSteps=R["EUpgradStatus"].uploading,e.isDeviceUpgrading){t.next=19;break}return i=e.getChannelIndexArr(e.firmwareUpgrade.channelBit),t.next=10,e.device.getChannels();case 10:return a=t.sent,e.selectedChannels=a.filter((function(e,t){return i.includes(t)})),r=e.selectedChannels.map((function(e){return e.config.getChannelVersion()})),t.next=15,Promise.all(r);case 15:s=t.sent,e.firmwareVerArr=s.map((function(e){return e.cFirmwareVer})),t.next=20;break;case 19:e.firmwareVerArr=[e.deviceInfo.cFirmwareVer];case 20:if(!y["a"].IS_CLIENT){t.next=45;break}return t.prev=22,e.firmwareUpgrade.isSetting=!0,e.firmwareUpgrade.progress=0,t.next=27,e.device.open();case 27:if(o={cSourceFileName:n.path.replace(/\\/g,"/"),iUpgradeConfig:~~e.firmwareUpgrade.BUpgradeConfig,uFileSize:n.size,uCurSize:0,uChannelBit:e.firmwareUpgrade.channelBit,eDeviceType:N["BC_DEVICE_TYPE_E"].E_BC_DEVICE_TYPE_UNKNOW,uSendSize:0,uPacketSize:0,iPipeline:0},o.uFileSize){t.next=34;break}return t.next=32,K["a"].getStat(o.cSourceFileName);case 32:c=t.sent,c?o.uFileSize=c.size:C["a"].error("upgrading.vue > startUpgrade > stat ".concat(o.cSourceFileName," "));case 34:return t.next=36,e.device.config.upgradeFirmware(o,(function(t,n){t===N["BC_RSP_CODE_E"].E_BC_RSP_OK?e.firmwareUpgrade.progress=Math.min(50*n,50):(e.upgradeSteps=R["EUpgradStatus"].upgradeFailed,e.handleUploadErr({code:t}))}));case 36:t.next=43;break;case 38:t.prev=38,t.t0=t["catch"](22),e.upgradeSteps=R["EUpgradStatus"].requestFailed,e.handleUploadErr(t.t0),C["a"].error("upgrading.vue > startUpgrade: ",t.t0);case 43:t.next=64;break;case 45:return e.firmwareUpgrade.isSetting=!0,e.firmwareUpgrade.progress=0,u={cSourceFileName:n.name,iUpgradeConfig:~~e.firmwareUpgrade.BUpgradeConfig,uFileSize:n.size,uCurSize:0,uChannelBit:e.firmwareUpgrade.channelBit,eDeviceType:N["BC_DEVICE_TYPE_E"].E_BC_DEVICE_TYPE_UNKNOW,uSendSize:0,uPacketSize:0,iPipeline:0},t.prev=48,Object(l["d"])(),t.next=52,e.device.config.upgradeFirmware(u,(function(){return null}));case 52:e.sectionUploadController=Object.assign({},e.sectionUploadControllerInited),d={inputFile:null,bytesPerPiece:e.isDeviceUpgrading?40960:38912,uuidFolder:"",url:""},e.sectionUploadParams=Object.assign({},d,{uuidFolder:Object(z["a"])()}),e.sectionUploadParams.inputFile=n.file,e.sectionUpload(e.sectionUploadController,e.sectionUploadParams),t.next=64;break;case 59:t.prev=59,t.t1=t["catch"](48),e.upgradeSteps=R["EUpgradStatus"].requestFailed,e.handleUploadErr(t.t1,"check"),C["a"].error("upgrading.vue > startUpgrade > upgradeFirmware: ",t.t1);case 64:case"end":return t.stop()}}),t,null,[[22,38],[48,59]])})))()},sectionUpload:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){var a,r,s,o,c,u,d,h,m,g,f;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=ControllerLogin.getQueryDataByCount([],"Upgrade",2),r="",-1!==a&&(r=a.query),t.inputFile){i.next=6;break}return n.upgradeSteps=R["EUpgradStatus"].requestFailed,i.abrupt("return");case 6:if(s=t.inputFile.size,!(e.start>=s)){i.next=9;break}return i.abrupt("return");case 9:return o=Math.ceil(s/t.bytesPerPiece),e.end=Math.min(e.start+t.bytesPerPiece,s),c=t.inputFile.slice(e.start,e.end),u=new FormData,d=t.inputFile.name+"&"+t.uuidFolder+"&"+e.index+"&"+s,u.append("upgrade-package",c,d),i.prev=15,n.sectionUploadParams.url="cgi-bin/api.cgi?token=".concat(w["a"].recover2Str(ControllerLogin.token),"&cmd=Upgrade&file=upgrade-package&").concat(r),i.next=19,Y["b"].post(n.sectionUploadParams.url,u,{headers:{"Content-Type":"multipart/form-data"},timeout:12e4});case 19:h=i.sent,i.next=30;break;case 22:return i.prev=22,i.t0=i["catch"](15),n.upgradeSteps=R["EUpgradStatus"].upgradeFailed,m=N["BC_RSP_CODE_E"].E_BC_RSP_INVALID,i.t0&&"timeout"===i.t0.statusText&&(m=N["BC_RSP_CODE_E"].E_BC_RSP_TIMEOUT),n.handleUploadErr({code:m},"ajax send"),C["a"].error("upgrading.vue > sectionUpload > http.post: ",i.t0),i.abrupt("return");case 30:if(i.prev=30,e.count++,g=h.data[0],g){i.next=35;break}throw-1;case 35:0===g.code?(n.firmwareUpgrade.progress=Math.min(e.count/o*50,50),e.count!==o&&(e.start=e.end,e.index++,n.sectionUpload(e,t))):(C["a"].error("upgrading.vue > sectionUpload failed width data: ",g),n.upgradeSteps=R["EUpgradStatus"].upgradeFailed,f=Object(l["q"])(g,"error.rspCode",-9999),n.handleUploadErr(p["a"].getErrorInfo(f),"ajax response code"),-6!==f&&-27!==f||setTimeout((function(){n.exitCurrentInterface(n.isDeviceUpgrading)}),2e3)),i.next=44;break;case 38:i.prev=38,i.t1=i["catch"](30),C["a"].error("upgrading.vue > sectionUpload failed: ",i.t1),n.upgradeSteps=R["EUpgradStatus"].upgradeFailed,n.handleUploadErr({code:N["BC_RSP_CODE_E"].E_BC_RSP_INVALID},"ajax response data"),C["a"].error("upgrading.vue > sectionUpload: ",i.t1);case 44:case"end":return i.stop()}}),i,null,[[15,22],[30,38]])})))()},back:function(){this.upgradeSteps=R["EUpgradStatus"].upgradeReady},exitCurrentInterface:function(e){p["a"].exitCurrentInterface(e)},loopUpgradeProgress:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.firmwareUpgrade.progress<100)){t.next=5;break}e.upgradingTimer&&(clearTimeout(e.upgradingTimer),e.upgradingTimer=null),e.upgradingTimer=setTimeout((function(){e.firmwareUpgrade.progress>=60&&e.checkUpgradeStatus(!1),e.upgradeSteps===R["EUpgradStatus"].upgrading&&(e.firmwareUpgrade.progress=Math.min(e.firmwareUpgrade.progress+1,100),e.loopUpgradeProgress())}),3600),t.next=15;break;case 5:return t.prev=5,t.next=8,e.checkUpgradeStatus(!0);case 8:t.next=15;break;case 10:t.prev=10,t.t0=t["catch"](5),e.upgradeSteps=R["EUpgradStatus"].upgradeCompleted,e.firmwareUpgrade.progress=100,e.firmwareUpgrade.isSetting=!1;case 15:case"end":return t.stop()}}),t,null,[[5,10]])})))()},destroyDownloader:function(){this.downloader=null,this.firmwareDownload.isSetting=!1,this.firmwareDownload.progress=0},startDownload:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.downloader=oe.createDownloader(),e.firmwareDownload.isSetting=!0,e.firmwareDownload.progress=0,e.upgradeSteps=R["EUpgradStatus"].downloading,Object(l["d"])(),t.prev=6,t.next=9,e.downloader.downloadFile({url:e.newFirmwareDownloadUrl,fileName:e.newFirmwareName,onProgress:function(t){e.firmwareDownload.progress=Math.min(100,Math.max(0,t.percent))}});case 9:e.firmwareUpgrade.downloadFileInfo=t.sent,e.firmwareUpgrade.downloadFileInfo.size=e.firmwareUpgrade.downloadFileInfo.size||parseFloat(e.newFirmwareFile.size.toString()),setTimeout(e.startUpgrade,500),t.next=18;break;case 14:t.prev=14,t.t0=t["catch"](6),C["a"].error("upgrading.vue > startDownload > downloader.download failed: ",ce["a"].errorToJson(t.t0)),oe.isErrorOfCanceled(t.t0)?(e.upgradeSteps=R["EUpgradStatus"].downloadReady,e.destroyDownloader()):(e.upgradeSteps=R["EUpgradStatus"].downloadFailed,e.handleUploadErr(t.t0));case 18:case"end":return t.stop()}}),t,null,[[6,14]])})))()},downloadBack:function(){this.upgradeSteps=R["EUpgradStatus"].downloadReady},cancelDownloading:function(){if(!this.downloader)return this.upgradeSteps=R["EUpgradStatus"].downloadReady,void this.destroyDownloader();this.downloader.cancel()}}}),le=ue,de=(n("8deb"),Object(g["a"])(le,L,M,!1,null,null,null)),pe=de.exports,he=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"prompt-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.promptOpen,expression:"promptOpen"}],staticClass:"status-prompt flex ab-center"},[n("span",{directives:[{name:"show",rawName:"v-show",value:!e.promptMessage,expression:"!promptMessage"}],staticClass:"prompt-status-icon",class:{"icon-client_success":e.showSucceedIcon,"icon-client_error":!e.showSucceedIcon}}),n("p",{staticClass:"prompt-message"},[e._v(e._s(e.message))])])])},me=[],ge=u["a"].extend({name:"statusPrompt",props:{promptStatus:{type:Number,default:R["PromptStatus"].close},promptMessage:String},data:function(){return{promptOpen:!1}},computed:{showSucceedIcon:function(){return this.promptStatus!==R["PromptStatus"].failed},message:function(){if(this.promptMessage)return this.promptMessage;switch(this.promptStatus){case R["PromptStatus"].succeed:return this.$t("common_Succeeded");case R["PromptStatus"].failed:return this.$t("common_Failed");case R["PromptStatus"].mostCurrentVersion:return this.$t("common_most_current_version");default:return""}}},mounted:function(){var e=this;this.$nextTick((function(){e.promptOpen=!0,setTimeout((function(){e.promptOpen=!1,setTimeout((function(){e.$emit("promptClosed")}),400)}),R["PromptStatus"].mostCurrentVersion===e.promptStatus||e.promptMessage?1500:700)}))}}),fe=ge,_e=(n("4b7d"),Object(g["a"])(fe,he,me,!1,null,null,null)),ve=_e.exports,be=n("9629"),we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"pop",staticClass:"message-pop"},[e.option.icon?n("div",{staticClass:"prompt-icon"},[n("span",{class:e.option.icon})]):e._e(),e.option.subtitle?n("p",{staticClass:"subtitle"},[e._v(e._s(e.option.subtitle))]):e._e(),e.option.title?n("h4",[e._v(e._s(e.option.title))]):e._e(),e.option.message?n("p",{staticClass:"main-context",domProps:{innerHTML:e._s(e.option.message)}}):e._e(),n("div",{staticClass:"btn-wrap flex"},e._l(e.option.buttons,(function(t,i){return n("speedyBtn",{key:i,attrs:{btnClass:t.class,keyCode:t.key?t.key:-1,btnText:t.title},on:{btnClick:function(n){return e.clickCallback(t.value)}}})})),1)])},Ce=[],ye=u["a"].extend({name:"messageDialog",components:{speedyBtn:v["a"]},data:function(){return{}},computed:{isNestedDialog:function(){return this.$store.getters.isNestedDialog},dialogCallback:function(){return this.isNestedDialog?this.$store.getters.nestedDialogCallback:this.$store.getters.appDialogCallback},option:function(){return this.$store.getters.dialogOptions}},methods:{clickCallback:function(e){var t=this.dialogCallback,n=this.isNestedDialog;this.$store.commit("SET_IS_NESTED_DIALOG",!1),this.$store.commit(n?"SET_NESTED_DIALOGID":"SET_DIALOGID",""),t(1===e)}}}),Se=ye,ke=(n("aa67"),Object(g["a"])(Se,we,Ce,!1,null,null,null)),Ae=ke.exports,Ee=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"terms-of-service-dialog"},[n("h4",[e._v(e._s(e.$t("common_privacy_statement")))]),n("label",{staticClass:"flex check-box",class:{checked:e.isAgreed},attrs:{checkbox:""}},[n("div",{staticClass:"check-icon"},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.isAgreed,expression:"isAgreed",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"checkbox"},domProps:{checked:Array.isArray(e.isAgreed)?e._i(e.isAgreed,null)>-1:e.isAgreed},on:{change:function(t){var n=e.isAgreed,i=t.target,a=!!i.checked;if(Array.isArray(n)){var r=null,s=e._i(n,r);i.checked?s<0&&(e.isAgreed=n.concat([r])):s>-1&&(e.isAgreed=n.slice(0,s).concat(n.slice(s+1)))}else e.isAgreed=a}}}),n("span",{staticClass:"icon-client_check",attrs:{checkicon:""}})]),n("p",{domProps:{innerHTML:e._s(e.$t("common_push_open_terms_and_policies_sure_tips2",{s1:""+e.$t("help_config_page_privacy_policy_item_label")+"",s2:""+e.$t("help_config_page_terms_item_label")+"",s3:"Reolink",s4:"Reolink"}))}})]),n("div",{staticClass:"btn-wrap flex"},[n("speedyBtn",{attrs:{keyCode:-1,btnClass:"ghost-button",btnText:e.$t("common_disagree_button")},on:{btnClick:function(t){return e.clickCallback(0)}}}),n("speedyBtn",{attrs:{keyCode:-1,btnEnabled:e.isAgreed,btnText:e.$t("app_launch_terms_agree")},on:{btnClick:function(t){return e.clickCallback(1)}}})],1)])},xe=[],Oe=u["a"].extend({name:"termsOfServiceDialog",components:{speedyBtn:v["a"]},data:function(){return{isAgreed:!1}},computed:{dialogCallback:function(){return this.$store.getters.appDialogCallback}},mounted:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=document.querySelector(".href-terms"),n.addEventListener("click",(function(t){S["a"].openLink(e.$t("reolink_sidebar_page_terms_link"),t)})),i=document.querySelector(".href-privacy"),i.addEventListener("click",(function(t){S["a"].openLink(e.$t("reolink_sidebar_page_privacy_link"),t)}));case 4:case"end":return t.stop()}}),t)})))()},methods:{clickCallback:function(e){this.dialogCallback(1===e)}}}),Ie=Oe,De=(n("411a"),Object(g["a"])(Ie,Ee,xe,!1,null,null,null)),Te=De.exports,Re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"screen-all-default"},[n("h4",{staticClass:"default-title"},[e._v(e._s(e.$t("reset_all_settings_dialog_title")))]),n("p",{staticClass:"default-des"},[n("span",[e._v(e._s(e.$t("reset_all_settings_dialog_des")))]),n("ul",e._l(e.desList,(function(t){return n("li",{key:t,staticClass:"flex"},[n("span",{staticClass:"default-des-dot"},[e._v("·")]),e._v(" "+e._s(t)+" ")])})),0),n("span",[e._v(e._s(e.$t("reset_all_settings_dialog_des_option3")))])]),n("div",{staticClass:"default-btns-wrap flex"},[n("speedyBtn",{attrs:{btnClass:"ghost-button",keyCode:27,btnText:e.$t("common_dialog_cancel_button")},on:{btnClick:e.exitDialog}}),n("speedyBtn",{on:{btnClick:e.save}})],1)])},Pe=[],Le=(n("a434"),u["a"].extend({components:{speedyBtn:v["a"]},data:function(){return{desList:[this.$t("reset_all_settings_dialog_des_option1"),this.$t("restore_device_osd_tips")]}},computed:{saveCallback:function(){return this.$store.getters.saveAndCopytoCallback}},mounted:function(){this.$store.getters.supportStitch&&this.desList.push(this.$t("bino_stitch_setting_title")),this.$store.getters.supportFishEyeCfg&&te["EFishEyeImageType"].EXPAND===this.$store.getters.fishEyeImageType?this.desList.splice(0,1,this.$t("reset_all_settings_dialog_des_option4")):this.desList.splice(0,1,this.$t("reset_all_settings_dialog_des_option1"))},methods:{exitDialog:function(){this.$store.commit("SET_CUSTOM_DIALOGID","")},save:function(){this.saveCallback(),this.exitDialog()}}})),Me=Le,Ne=(n("5e6b"),Object(g["a"])(Me,Re,Pe,!1,null,"79e877c0",null)),Be=Ne.exports,Fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ban-count-battery"},[n("h4",{staticClass:"default-title"},[e._v(e._s(e.$t("battery_page_statistics_close_button")))]),n("p",{staticClass:"default-des"},[e._v(e._s(e.$t("battery_page_statistics_close_dialog_message")))]),n("div",{staticClass:"default-btns-wrap flex"},[n("speedyBtn",{attrs:{btnClass:"ghost-button",keyCode:27,btnText:e.$t("common_dialog_cancel_button")},on:{btnClick:e.exitDialog}}),n("speedyBtn",{attrs:{btnText:e.$t("common_dialog_ok_button")},on:{btnClick:e.save}})],1)])},je=[],Ve=u["a"].extend({components:{speedyBtn:v["a"]},computed:{saveCallback:function(){return this.$store.getters.saveAndCopytoCallback}},methods:{exitDialog:function(){this.$store.commit("SET_CUSTOM_DIALOGID","")},save:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.saveCallback();case 2:e.exitDialog();case 3:case"end":return t.stop()}}),t)})))()}}}),Ue=Ve,He=(n("be6f"),Object(g["a"])(Ue,Fe,je,!1,null,"678e93a0",null)),Ge=He.exports,We=n("9030"),ze=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"reply-rename"},[n("h5",{staticClass:"rename-title"},[e._v(e._s(e.$t("common_Rename")))]),n("simpleInput",{staticClass:"simple-input",attrs:{flag:"name",targetValue:e.name,minLength:1,maxLength:127,regexp:"fileName",disallowConsecutiveSpaces:!0,autoFocus:!0},on:{inputChanged:e.inputChanged}}),n("div",{staticClass:"btn-wrap flex"},[n("speedyBtn",{attrs:{btnClass:"ghost-button",keyCode:27,btnText:e.$t("common_dialog_cancel_button")},on:{btnClick:e.closeDialog}}),n("speedyBtn",{attrs:{btnText:e.$t("common_dialog_save_button")},on:{btnClick:e.proxySave}})],1)],1)},Ye=[],qe=u["a"].extend({name:"audioRenaming",components:{simpleInput:_,speedyBtn:v["a"]},data:function(){return{triggerVerificationCount:0,name:"",checked:!1}},computed:{audioReply:function(){return this.$store.getters.audioReply},formChecked:function(){return!!this.name&&this.checked}},watch:{"audioReply.cFileNameOfEditing":{handler:function(e){this.name=e},immediate:!0}},methods:{inputChanged:function(e,t,n){this.name=e,this.checked=!n},proxySave:function(){var e=this;this.triggerVerificationCount++,this.$nextTick((function(){e.save()}))},save:function(){this.formChecked&&this.audioReply.callback(this.name)},closeDialog:function(){this.$store.commit("SET_DIALOGID","")}}}),$e=qe,Ke=(n("bbf2"),Object(g["a"])($e,ze,Ye,!1,null,"2dd8f567",null)),Ze=Ke.exports,Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"auto-reply-setting"},[n("div",{staticClass:"title-wrap flex-between"},[n("div",{staticClass:"middle-title"},[e._v(e._s(e.$t("bell_auto_reply_title")))]),n("div",{staticClass:"close-box",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}},[n("span",{staticClass:"btn-icon icon-client_cancel"})])]),n("div",{staticClass:"config-item flex-between"},[n("div",[n("div",[e._v(e._s(e.$t("bell_auto_reply_waiting_time_title")))]),n("div",{staticClass:"notes-text"},[e._v(e._s(e.$t("bell_auto_reply_waiting_time_description")))])]),n("selectBox",{staticClass:"select-box",attrs:{flag:e.waitingTime.flag,currentVal:e.waitingTime.currentVal,options:e.waitingTime.options},on:{selectChanged:e.waitingTimeSelect}})],1),n("div",{staticClass:"file-list-title"},[e._v(e._s(e.$t("common_message")))]),n("ul",{staticClass:"file-list"},[n("label",{key:-1,staticClass:"customized-label",class:{checked:-1===e.selectedAudioId},attrs:{radio:""}},[n("li",{staticClass:"file-item flex-between"},[n("span",{staticClass:"reply-name"},[e._v(e._s(e.$t("common_view_none")))]),n("div",{staticClass:"radio"},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.selectedAudioId,expression:"selectedAudioId",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"radio",name:"selectedAudioId"},domProps:{value:-1,checked:e._q(e.selectedAudioId,-1)},on:{change:function(t){e.selectedAudioId=-1}}}),n("span",{staticClass:"check-icon",attrs:{checkicon:""}})])])]),e._l(e.audioFileList,(function(t,i){return n("label",{key:i,staticClass:"customized-label",class:{checked:e.selectedAudioId===t.identity},attrs:{radio:""}},[n("li",{staticClass:"file-item flex-between"},[n("div",{staticClass:"flex"},[[n("loadingImg",{directives:[{name:"show",rawName:"v-show",value:t.audioPlayState===e.EMediaPlayState.LOADING,expression:"item.audioPlayState===EMediaPlayState.LOADING"}],staticClass:"loading-img",attrs:{delay:0}}),n("span",{directives:[{name:"show",rawName:"v-show",value:t.audioPlayState===e.EMediaPlayState.PLAYING,expression:"item.audioPlayState===EMediaPlayState.PLAYING"}],staticClass:"btn-audition icon-client_stop",on:{click:function(n){return n.preventDefault(),e.stopAuditionAudio(t)}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:[e.EMediaPlayState.CLOSED,e.EMediaPlayState.FAILED].includes(t.audioPlayState),expression:"[EMediaPlayState.CLOSED,EMediaPlayState.FAILED].includes(item.audioPlayState)"}],staticClass:"btn-audition icon-client_play",on:{click:function(n){return n.preventDefault(),e.auditionAudioFile(t)}}})],n("span",{staticClass:"reply-name"},[e._v(e._s(t.cFileName))])],2),n("div",{staticClass:"radio"},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.selectedAudioId,expression:"selectedAudioId",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"radio",name:"selectedAudioId"},domProps:{value:t.identity,checked:e._q(e.selectedAudioId,t.identity)},on:{change:function(n){e.selectedAudioId=t.identity}}}),n("span",{staticClass:"check-icon",attrs:{checkicon:""}})])])])}))],2),n("div",{staticClass:"btns-wrap"},[n("speedyBtn",{attrs:{btnClass:"ghost-button",keyCode:27,btnText:e.$t("common_dialog_cancel_button")},on:{btnClick:e.closeDialog}}),n("speedyBtn",{on:{btnClick:e.save}})],1)])},Qe=[],Xe=(n("4160"),n("159b"),n("8bdb")),et=u["a"].extend({name:"autoReplySetting",components:{selectBox:Xe["a"],speedyBtn:v["a"],loadingImg:d["a"]},data:function(){return{EMediaPlayState:te["EMediaPlayState"],audio:new Audio,autoReply:{},audioFileList:[],channel:{},selectedAudioId:-2,playingAudioId:-1,waitingTime:{currentVal:0,flag:"waitingTime",options:[]}}},computed:{handle:function(){return this.$store.getters.deviceHandle},storeAudioReply:function(){return this.$store.getters.audioReply}},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_DIALOG_LOADING",!0),n.prev=1,n.next=4,B["a"].getDeviceWithHandle(e);case 4:return i=n.sent,n.next=7,i.getChannelAtIndex(t.$store.getters.dialogChannelIndex);case 7:t.channel=n.sent,n.next=13;break;case 10:n.prev=10,n.t0=n["catch"](1),C["a"].error("autoReplySetting.vue > handler > getDeviceWithHandle or getChannelAtIndex: ",n.t0);case 13:t.$store.commit("HANDLE_DIALOG_LOADING",!1);case 14:case"end":return n.stop()}}),n,null,[[1,10]])})))()},immediate:!0},selectedAudioId:function(e,t){e!==t&&(e<0?this.autoReply.iEnable=0:(this.autoReply.iEnable=1,this.autoReply.iAudioId=e))},storeAudioReply:{handler:function(){var e=this;this.autoReply=Object(l["g"])(this.storeAudioReply.autoReply),this.audioFileList=Object(l["g"])(this.storeAudioReply.audioFileList),this.selectedAudioId=-1,this.autoReply.iEnable&&this.audioFileList.some((function(t){return t.identity===e.autoReply.iAudioId}))&&(this.selectedAudioId=this.autoReply.iAudioId),this.waitingTime.currentVal=this.autoReply.iTimeout},immediate:!0}},created:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(n=[2,5,10,15,20],i=0,a=n;i createAudioElement > ".concat(n.channel.name," ").concat(e," audio play: "),i)}},updateAudioPlayState:function(e,t){if(this.playingAudioId===t){var n=this.audioFileList.find((function(e){return e.identity===t}));n&&(n.audioPlayState=e)}},auditionAudioFile:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.stopAuditionAudio(),e.audioPlayState=te["EMediaPlayState"].LOADING,i=e.identity,t.playingAudioId=i,n.prev=4,n.next=7,t.channel.config.exportAudioFile(i);case 7:return a=n.sent,n.next=10,Object(l["t"])({fileBuffer:a,channels:1,sampleRate:t.channel.audioSampleRate,samplePrecision:t.channel.audioSamplePrecision});case 10:if(r=n.sent,t.playingAudioId===i){n.next=13;break}return n.abrupt("return");case 13:t.createAudioElement(r,i),n.next=21;break;case 16:n.prev=16,n.t0=n["catch"](4),t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),t.updateAudioPlayState(te["EMediaPlayState"].FAILED,i),C["a"].error("autoReplySetting.vue> auditionAudioFile: ",n.t0);case 21:case"end":return n.stop()}}),n,null,[[4,16]])})))()},stopAuditionAudio:function(e){this.audio.paused||this.audio.pause(),e?e.audioPlayState=te["EMediaPlayState"].CLOSED:this.audioFileList.forEach((function(e){e.audioPlayState=te["EMediaPlayState"].CLOSED})),this.playingAudioId=-1},save:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.autoReply.iEnable!==e.storeAudioReply.autoReply.iEnable||e.autoReply.iTimeout!==e.storeAudioReply.autoReply.iTimeout||e.autoReply.iAudioId!==e.storeAudioReply.autoReply.iAudioId){t.next=3;break}return e.closeDialog(),t.abrupt("return");case 3:e.storeAudioReply.callback(e.autoReply);case 4:case"end":return t.stop()}}),t)})))()},closeDialog:function(){this.stopAuditionAudio(),this.$store.commit("SET_DIALOGID","")}}}),tt=et,nt=(n("b826"),Object(g["a"])(tt,Je,Qe,!1,null,"2aff0fd6",null)),it=nt.exports,at=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"chime-pairing-entry"},[n("chimePairing",{attrs:{deviceHandle:e.deviceHandle,channelIndex:e.channelIndex},on:{handleLoading:e.onLoadingStatusChange,handlePromptStatus:e.onOpenPromptStatusChange,finish:e.finish,close:e.closeDialog}})],1)},rt=[],st=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"chime-pairing"},[i("div",{staticClass:"config-title flex-between"},[i("div",{staticClass:"subtitle"},[e._v(e._s(e.title))]),i("div",{staticClass:"close-box",on:{click:function(t){return t.stopPropagation(),e.close(t)}}},[i("span",{staticClass:"btn-icon icon-client_cancel"})])]),i("div",{staticClass:"config-area flex"},[e.currentStepInfo.img?i("img",{class:{big:3===e.currentStep,small:4===e.currentStep},attrs:{src:e.currentStepInfo.img}}):e._e(),4===e.currentStep?i("simpleInput",e._b({attrs:{targetValue:e.pairedDingDongInfo.name,placeholder:e.$t("deviceAddLogin_creatName_editDeviceName")},on:{inputChanged:e.inputChanged}},"simpleInput",e.nameInputCfg,!1)):e._e(),2===e.currentStep?[i("div",{staticClass:"chime-list-title-wrap flex"},[i("span",[e._v(e._s(e.$t("common_chime_list")))]),e.isChimeListLoadFailed?e._e():i("loadingImg",{attrs:{imgSrcSize:14}})],1),e.isChimeListLoading||e.isChimeListLoadFailed?i("div",{staticClass:"chime-list-no-ready-wrap"},[e.isChimeListLoading?i("loadingImg",{staticClass:"ab-center",attrs:{imgSrcSize:38}}):e._e(),e.isChimeListLoadFailed?i("div",{staticClass:"loading-failed-wrap ab-center"},[i("div",[e._v(e._s(e.isChimeListLoadFailedText))]),i("div",{staticClass:"retry-btn",on:{click:e.enterPairingMode}},[e._v(e._s(e.$t("common_dialog_retry_button")))])]):e._e()],1):i("div",{staticClass:"chime-list-wrap"},[e.chimeList.length?i("ul",{staticClass:"chime-list"},e._l(e.chimeList,(function(t,n){return i("li",{key:n,staticClass:"chime-info flex-between"},[i("div",{staticClass:"main-info"},[i("div",{staticClass:"name-wrap"},[e._v(e._s(t.name))]),i("div",{staticClass:"id-wrap"},[e._v(e._s(e.$t("STR_DISK_INFO_ID"))+": "+e._s(t.identifier.dingDongId))])]),i("button",{staticClass:"gray-button",attrs:{"reo-element":""},on:{click:function(n){return e.dingDongPair(t)}}},[e._v(e._s(e.$t("common_pair")))])])})),0):i("div",{staticClass:"empty-wrap flex"},[i("img",{attrs:{src:n("bc20")}}),i("div",{staticClass:"description-wrap"},[e._v(" "+e._s(e.$t("doorbell_chime_2_pair_step_3_chime_not_scanned",{s1:e.$t("common_chime"),s2:e.$t("common_chime")}))+" ")])])])]:e._e(),i("div",{staticClass:"step-num"},[e._v(e._s(e.currentStep+1)+"/"+e._s(e.totalStep))]),i("div",{staticClass:"step-title"},[e._v(e._s(e.currentStepInfo.title))]),e.currentStepInfo.des?i("div",{staticClass:"step-des"},[e._v(e._s(e.currentStepInfo.des))]):e._e(),e.currentStepInfo.showNextStepBtn?i("speedyBtn",{attrs:{btnText:e.btnText},on:{btnClick:e.proxyNext}}):e._e()],2)])},ot=[],ct=n("5530"),ut=n("bce6"),lt=n.n(ut),dt=n("8c62"),pt=n.n(dt),ht=n("ed55"),mt=n.n(ht),gt=n("74c2"),ft=u["a"].extend({name:"chimePairing",props:{deviceHandle:{type:Number,default:0},channelIndex:{type:Number,default:0}},components:{loadingImg:d["a"],speedyBtn:v["a"],simpleInput:_},data:function(){return{isWeb:!y["a"].IS_CLIENT,title:this.$t("common_pair"),device:null,channel:null,chimeList:[],isChimeListLoading:!1,isChimeListLoadFailed:!1,isChimeListLoadFailedText:"",pairedDingDongInfo:{identifier:{dingDongId:0},name:"",netState:te["EDingDongNetState"].ONLINE},pairedChimeName:"",nameInputCfg:{triggerVerificationCount:0,minLength:1,maxLength:31,regexp:"deviceName",disallowConsecutiveSpaces:!0,autoFocus:!0,checked:!0},loopScanDingDongList:null,currentStep:0,allStepInfo:[{img:lt.a,title:this.$t("doorbell_chime_2_pair_step_1",{s1:this.$t("common_chime")}),des:"",showNextStepBtn:!0},{img:pt.a,title:this.$t("doorbell_chime_2_pair_step_2",{s1:this.$t("common_chime")}),des:this.$t("doorbell_chime_2_pair_step_2_description",{s1:this.$t("common_chime")}),showNextStepBtn:!0},{img:"",title:this.$t("doorbell_chime_2_pair_step_3_scanning"),des:this.$t("doorbell_chime_2_pair_step_3_description",{s1:this.$t("common_chime")}),showNextStepBtn:!1},{img:mt.a,title:this.$t("doorbell_chime_2_pair_step_4_pair_success"),des:this.$t("doorbell_chime_2_pair_step_4_pair_success_tip",{s1:this.$t("common_chime")}),showNextStepBtn:!0},{img:mt.a,title:this.$t("device_init_setup_wizard_name_device"),des:"",showNextStepBtn:!0}]}},computed:{formChecked:function(){return this.nameInputCfg.checked},currentStepInfo:function(){return this.allStepInfo[this.currentStep]},totalStep:function(){return this.allStepInfo.length},btnText:function(){return this.currentStep!==this.totalStep-1?this.$t("common_Next"):this.$t("common_dialog_done_button")}},activated:function(){this.currentStep=0,this.chimeList=[],this.pairedDingDongInfo={identifier:{dingDongId:0},name:"",netState:te["EDingDongNetState"].ONLINE},this.pairedChimeName="",this.nameInputCfg.checked=!0},mounted:function(){gt["a"].subscribe("subscribe_channel_scanDingDongList",this.deviceHandle,this.channelIndex,this.onChimeFound)},beforeDestroy:function(){gt["a"].unsubscribe("subscribe_channel_scanDingDongList",this.deviceHandle,this.channelIndex,this.onChimeFound)},methods:{onChimeFound:function(e){this.chimeList=e.data},inputChanged:function(e,t,n){this.nameInputCfg.checked=!n,this.pairedChimeName=e},stopLoopScanDingDongList:function(){this.loopScanDingDongList&&(this.loopScanDingDongList(!1),this.loopScanDingDongList=null)},startLoopScanDingDongList:function(){var e=this;this.isWeb&&(this.stopLoopScanDingDongList(),this.loopScanDingDongList=Object(l["h"])(Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.channel){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,e.channel.config.getScanDingDongList();case 5:e.chimeList=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](2),C["a"].stackTraceError(t.t0,"chimePairing.vue > startLoopScanDingDongList > loopScanDingDongList failed ".concat(e.deviceHandle," ").concat(e.channelIndex));case 11:case"end":return t.stop()}}),t,null,[[2,8]])}))),8,!0),this.loopScanDingDongList(!0))},enterPairingMode:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isChimeListLoading=!0,e.isChimeListLoadFailed=!1,e.device&&e.channel){t.next=20;break}if(t.prev=3,e.device){t.next=8;break}return t.next=7,B["a"].getDeviceWithHandle(e.deviceHandle);case 7:e.device=t.sent;case 8:return t.next=10,e.device.getChannelAtIndex(e.channelIndex);case 10:e.channel=t.sent,t.next=20;break;case 13:return t.prev=13,t.t0=t["catch"](3),C["a"].stackTraceError(t.t0,"chimePairing.vue > enterPairingMode > getDeviceWithHandle or getChannelAtIndex failed ".concat(e.deviceHandle," ").concat(e.channelIndex)),e.isChimeListLoadFailed=!0,e.isChimeListLoadFailedText=e.$t("doorbell_chime_2_pair_step_3_failed_to_start_scanning"),e.isChimeListLoading=!1,t.abrupt("return");case 20:return e.startLoopScanDingDongList(),t.prev=21,t.next=24,e.channel.config.dingDongCtrl({ctrl:1});case 24:t.next=32;break;case 26:t.prev=26,t.t1=t["catch"](21),n=t.t1?t.t1.code:-9999,N["BC_RSP_CODE_E"].E_BC_RSP_SYS_BUSY===n?e.isChimeListLoadFailedText=e.$t("doorbell_chime_2_pair_step_3_pair_fail_tip"):e.isChimeListLoadFailedText=e.$t("doorbell_chime_2_pair_step_3_failed_to_start_scanning"),C["a"].stackTraceError(t.t1,"chimePairing.vue > enterPairingMode > dingDongCtrl"),e.isChimeListLoadFailed=!0;case 32:e.isChimeListLoading=!1;case 33:case"end":return t.stop()}}),t,null,[[3,13],[21,26]])})))()},exitPairingMode:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.channel){t.next=2;break}return t.abrupt("return");case 2:return e.stopLoopScanDingDongList(),t.prev=3,t.next=6,e.channel.config.dingDongCtrl({ctrl:0});case 6:t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](3),C["a"].stackTraceError(t.t0,"chimePairing.vue > exitPairingMode > dingDongCtrl");case 11:case"end":return t.stop()}}),t,null,[[3,8]])})))()},setChimeName:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.channel){t.next=2;break}return t.abrupt("return",!1);case 2:return t.prev=2,t.next=5,e.channel.config.setDingDongDeviceName(e.pairedDingDongInfo.identifier.dingDongId,e.pairedChimeName);case 5:return e.pairedDingDongInfo.name=e.pairedChimeName,t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t["catch"](2),C["a"].stackTraceError(t.t0,"chimePairing.vue > setChimeName > setDingDongDeviceName"),t.abrupt("return",!1);case 13:case"end":return t.stop()}}),t,null,[[2,9]])})))()},dingDongPair:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.channel){n.next=2;break}return n.abrupt("return");case 2:return t.$emit("handleLoading",!0,t.$t("doorbell_chime_2_pair_step_4_pairing")),n.prev=3,n.next=6,t.channel.config.dingDongPair(e.identifier.dingDongId);case 6:t.pairedDingDongInfo=Object(ct["a"])(Object(ct["a"])({},e),{},{netState:te["EDingDongNetState"].ONLINE}),t.pairedChimeName=e.name,t.next(),n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](3),t.$emit("handlePromptStatus",R["PromptStatus"].failed),C["a"].stackTraceError(n.t0,"chimePairing.vue > dingDongPair");case 15:t.$emit("handleLoading",!1);case 16:case"end":return n.stop()}}),n,null,[[3,11]])})))()},close:function(){2===this.currentStep&&this.exitPairingMode(),this.currentStep>=3?this.$emit("finish",this.pairedDingDongInfo):this.$emit("close")},proxyNext:function(){var e=this;this.currentStep+1===this.totalStep&&this.nameInputCfg.triggerVerificationCount++,this.$nextTick((function(){e.next()}))},next:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.currentStep+1!==e.totalStep){t.next=13;break}if(e.formChecked){t.next=3;break}return t.abrupt("return");case 3:return e.$emit("handleLoading",!0),t.next=6,e.setChimeName();case 6:if(n=t.sent,e.$emit("handleLoading",!1),n){t.next=11;break}return e.$emit("handlePromptStatus",R["PromptStatus"].failed),t.abrupt("return");case 11:return e.$emit("finish",e.pairedDingDongInfo),t.abrupt("return");case 13:if(e.currentStep++,2!==e.currentStep){t.next=18;break}return t.abrupt("return",e.enterPairingMode());case 18:if(3!==e.currentStep){t.next=20;break}return t.abrupt("return",e.exitPairingMode());case 20:case"end":return t.stop()}}),t)})))()}}}),_t=ft,vt=(n("3628"),Object(g["a"])(_t,st,ot,!1,null,"70f3a734",null)),bt=vt.exports,wt=u["a"].extend({name:"chimePairingEntry",components:{chimePairing:bt},data:function(){return{}},computed:{deviceHandle:function(){return this.$store.getters.deviceHandle},channelIndex:function(){return this.$store.getters.dialogChannelIndex},finishPairingCallback:function(){return this.$store.getters.setScheduleCallback}},methods:{finish:function(e){this.finishPairingCallback(e),this.closeDialog()},closeDialog:function(){this.$store.commit("SET_DIALOGID","")},onOpenPromptStatusChange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.$store.commit("HANDLE_PROMPT",{promptStatus:e,promptMessage:t})},onLoadingStatusChange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.$store.commit("HANDLE_LOADING_TEXT",t),this.$store.commit("HANDLE_LOADING",e)}}}),Ct=wt,yt=(n("9908"),Object(g["a"])(Ct,at,rt,!1,null,"21e183e9",null)),St=yt.exports,kt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"chime-audio-setting"},[n("div",{staticClass:"title-wrap flex-between"},[n("div",{staticClass:"middle-title"},[e._v(e._s(e.detectionCopy[e.alarmType]))]),n("div",{staticClass:"close-box",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}},[n("span",{staticClass:"btn-icon icon-client_cancel"})])]),n("ul",{staticClass:"file-list"},[n("label",{key:-1,staticClass:"customized-label",class:{checked:-1===e.selectedAudioId},attrs:{radio:""}},[n("li",{staticClass:"file-item flex-between"},[n("span",{staticClass:"reply-name"},[e._v(e._s(e.$t("common_view_off_full")))]),n("div",{staticClass:"radio"},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.selectedAudioId,expression:"selectedAudioId",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"radio",name:"selectedAudioId"},domProps:{value:-1,checked:e._q(e.selectedAudioId,-1)},on:{change:function(t){e.selectedAudioId=-1}}}),n("span",{staticClass:"check-icon",attrs:{checkicon:""}})])])]),e._l(e.audioFileList,(function(t,i){return n("label",{key:i,staticClass:"customized-label",class:{checked:e.selectedAudioId===t.musicId},attrs:{radio:""}},[n("li",{staticClass:"file-item flex-between"},[n("div",{staticClass:"flex"},[[n("loadingImg",{directives:[{name:"show",rawName:"v-show",value:t.audioPlayState===e.EMediaPlayState.LOADING,expression:"item.audioPlayState===EMediaPlayState.LOADING"}],staticClass:"loading-img",attrs:{delay:0}}),n("span",{directives:[{name:"show",rawName:"v-show",value:t.audioPlayState===e.EMediaPlayState.PLAYING,expression:"item.audioPlayState===EMediaPlayState.PLAYING"}],staticClass:"btn-audition icon-client_stop",on:{click:function(n){return n.preventDefault(),e.stopAuditionAudio(t)}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:[e.EMediaPlayState.CLOSED,e.EMediaPlayState.FAILED].includes(t.audioPlayState),expression:"[EMediaPlayState.CLOSED,EMediaPlayState.FAILED].includes(item.audioPlayState)"}],staticClass:"btn-audition icon-client_play",on:{click:function(n){return n.preventDefault(),e.auditionAudioFile(t)}}})],n("span",{staticClass:"reply-name"},[e._v(e._s(t.name))])],2),n("div",{staticClass:"radio"},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.selectedAudioId,expression:"selectedAudioId",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"radio",name:"selectedAudioId"},domProps:{value:t.musicId,checked:e._q(e.selectedAudioId,t.musicId)},on:{change:function(n){e.selectedAudioId=t.musicId}}}),n("span",{staticClass:"check-icon",attrs:{checkicon:""}})])])])}))],2),n("div",{staticClass:"btns-wrap"},[n("speedyBtn",{attrs:{btnClass:"ghost-button",keyCode:27,btnText:e.$t("common_dialog_cancel_button")},on:{btnClick:e.closeDialog}}),n("speedyBtn",{on:{btnClick:e.save}})],1)])},At=[],Et=n("2ef0"),xt=u["a"].extend({name:"chimeAudioSetting",components:{speedyBtn:v["a"],loadingImg:d["a"]},data:function(){return{detectionCopy:Object(ee["a"])(),EMediaPlayState:te["EMediaPlayState"],alarmType:R["EScheduleMode"].VISITOR,audio:new Audio,audioInfo:{enable:0,musicId:0},audioFileList:[{musicId:0,audioPlayState:te["EMediaPlayState"].CLOSED,name:this.$t("doorbell_chime_2_config_sound_tone_default")},{musicId:1,audioPlayState:te["EMediaPlayState"].CLOSED,name:this.$t("doorbell_chime_2_config_sound_tone2")},{musicId:2,audioPlayState:te["EMediaPlayState"].CLOSED,name:this.$t("doorbell_chime_2_config_sound_tone3")},{musicId:3,audioPlayState:te["EMediaPlayState"].CLOSED,name:this.$t("doorbell_chime_2_config_sound_tone4")},{musicId:4,audioPlayState:te["EMediaPlayState"].CLOSED,name:this.$t("doorbell_chime_2_config_sound_tone5")},{musicId:5,audioPlayState:te["EMediaPlayState"].CLOSED,name:this.$t("doorbell_chime_2_config_sound_tone6")},{musicId:6,audioPlayState:te["EMediaPlayState"].CLOSED,name:this.$t("doorbell_chime_2_config_sound_tone7")},{musicId:7,audioPlayState:te["EMediaPlayState"].CLOSED,name:this.$t("doorbell_chime_2_config_sound_tone8")},{musicId:8,audioPlayState:te["EMediaPlayState"].CLOSED,name:this.$t("doorbell_chime_2_config_sound_tone9")},{musicId:9,audioPlayState:te["EMediaPlayState"].CLOSED,name:this.$t("doorbell_chime_2_config_sound_tone10")}],channel:{},selectedAudioId:-2,playingAudioId:-1}},computed:{channelIndex:function(){return this.$store.getters.dialogChannelIndex},handle:function(){return this.$store.getters.deviceHandle},dingDongAudio:function(){return this.$store.getters.dingDongAudio}},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_DIALOG_LOADING",!0),n.prev=1,n.next=4,B["a"].getDeviceWithHandle(e);case 4:return i=n.sent,n.next=7,i.getChannelAtIndex(t.channelIndex);case 7:t.channel=n.sent,n.next=13;break;case 10:n.prev=10,n.t0=n["catch"](1),C["a"].error("chimeAudioSetting.vue > handler > getDeviceWithHandle or getChannelAtIndex: ",n.t0);case 13:t.$store.commit("HANDLE_DIALOG_LOADING",!1);case 14:case"end":return n.stop()}}),n,null,[[1,10]])})))()},immediate:!0},selectedAudioId:function(e,t){e!==t&&(e<0?this.audioInfo.enable=0:(this.audioInfo.enable=1,this.audioInfo.musicId=e))}},mounted:function(){var e=this;this.alarmType=this.dingDongAudio.alarmType,this.audioInfo=Object(l["g"])(this.dingDongAudio.audioInfo);var t=-1;this.audioInfo.enable&&this.audioFileList.some((function(t){return t.musicId===e.audioInfo.musicId}))&&(t=this.audioInfo.musicId),this.selectedAudioId=t},methods:{createAudioElement:function(e,t){var n=this;this.audio.src=e,this.audio.play(),this.audio.onplay=function(){n.updateAudioPlayState(te["EMediaPlayState"].PLAYING,t)},this.audio.onended=function(){n.updateAudioPlayState(te["EMediaPlayState"].CLOSED,t)},this.audio.onerror=function(i){n.$store.commit("HANDLE_PROMPT",{promptStatus:R["PromptStatus"].failed,promptMessage:n.$t("listening_test_failed_tip")}),n.updateAudioPlayState(te["EMediaPlayState"].FAILED,t),C["a"].error("chimeAudioSetting.vue> createAudioElement > ".concat(n.channel.name," ").concat(e," audio play: "),i)}},updateAudioPlayState:function(e,t){if(this.playingAudioId===t){var n=this.audioFileList.find((function(e){return e.musicId===t}));n&&(n.audioPlayState=e,e===te["EMediaPlayState"].FAILED&&this.channel.config.clearDingDongAudioFilePath(t))}},auditionAudioFile:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.stopAuditionAudio(),e.audioPlayState=te["EMediaPlayState"].LOADING,i=e.musicId,t.playingAudioId=i,n.prev=4,n.next=7,t.channel.config.exportDingDongAudioFile(e.musicId);case 7:if(a=n.sent,t.playingAudioId===i){n.next=10;break}return n.abrupt("return");case 10:t.createAudioElement(a,i),n.next=18;break;case 13:n.prev=13,n.t0=n["catch"](4),t.$store.commit("HANDLE_PROMPT",{promptStatus:R["PromptStatus"].failed,promptMessage:t.$t("networking_and_listening_test_failed_tip")}),t.updateAudioPlayState(te["EMediaPlayState"].FAILED,i),C["a"].error("chimeAudioSetting.vue> auditionAudioFile: ",n.t0);case 18:case"end":return n.stop()}}),n,null,[[4,13]])})))()},stopAuditionAudio:function(e){this.audio.paused||this.audio.pause(),e?e.audioPlayState=te["EMediaPlayState"].CLOSED:this.audioFileList.forEach((function(e){e.audioPlayState=te["EMediaPlayState"].CLOSED})),this.playingAudioId=-1},save:function(){Object(Et["isEqual"])(this.audioInfo,this.dingDongAudio.audioInfo)?this.closeDialog():this.dingDongAudio.saveCallback(this.audioInfo)},closeDialog:function(){this.stopAuditionAudio(),this.$store.commit("SET_DIALOGID","")}}}),Ot=xt,It=(n("6e88"),Object(g["a"])(Ot,kt,At,!1,null,"55f4e91e",null)),Dt=It.exports,Tt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"chime-detail-instruction"},[i("div",{staticClass:"title-wrap flex-between"},[i("div",{staticClass:"subtitle"},[e._v(e._s(e.tabTitle))]),i("div",{staticClass:"close-box",on:{click:e.closeDialog}},[i("span",{staticClass:"btn-icon icon-client_cancel"})])]),i("div",{staticClass:"img-box"},["synchronize"===e.chimeInstructionType?i("img",{attrs:{src:n("8290")}}):e._e(),"audio"===e.chimeInstructionType?i("img",{attrs:{src:n("9a3a")}}):e._e(),"volume"===e.chimeInstructionType?i("img",{attrs:{src:n("3b1e")}}):e._e(),"reset"===e.chimeInstructionType?[i("img",{attrs:{src:n("013b")}}),i("img",{attrs:{src:n("fab6")}})]:e._e()],2),i("div",{staticClass:"description-wrap"},[i("div",{staticClass:"description-title"},[e._v(e._s(e.contentTitle))]),i("p",[e._v(e._s(e.contentDes))])])])},Rt=[],Pt=u["a"].extend({name:"chimeDetailedInstruction",data:function(){return{tabTitle:"",contentTitle:"",contentDes:"",chimeInstructionType:"reset"}},created:function(){var e=this.$store.getters.chimeInstructionType;switch(this.chimeInstructionType=e,e){case"synchronize":this.contentTitle=this.tabTitle=this.$t("common_pair"),this.contentDes=this.$t("chime_sync_tip");break;case"audio":this.contentTitle=this.tabTitle=this.$t("smart_bell_set_audio_title"),this.contentDes=this.$t("chime_audio_setting_tip");break;case"volume":this.contentTitle=this.tabTitle=this.$t("smart_bell_set_volume_title"),this.contentDes=this.$t("chime_volume_setting_tip");break;case"reset":default:this.contentTitle=this.tabTitle=this.$t("device_reset_dialog_reset_button"),this.contentDes=this.$t("chime_reset_tip");break}},methods:{closeDialog:function(){this.$store.commit("SET_DIALOGID","")}}}),Lt=Pt,Mt=(n("f0b3"),Object(g["a"])(Lt,Tt,Rt,!1,null,"1fbb4f06",null)),Nt=Mt.exports,Bt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"alarm-detect"},[n("div",{staticClass:"top-bar flex"},[n("div",{staticClass:"cell-inner scale-icon-wrap",on:{click:function(t){return t.stopPropagation(),e.scaleDialog(t)}}},[n("span",{staticClass:"btn-icon",class:[e.isFullscreen?"icon-client_window":"icon-client_fullscreen"]})]),n("div",{staticClass:"cell-inner close-box",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}},[n("span",{staticClass:"btn-icon icon-client_cancel"})])]),n("h4",{staticClass:"title"},[e._v(e._s(e.title))]),n("p",{staticClass:"notes-text"},[e._v(e._s(e.$t("remoteConfig_alarmDetect_subTitle")))]),n("div",{staticClass:"draw-area-wrap",style:{width:e.drawAreaWrapWidth+"px",height:e.drawAreaWrapHeight+"px"}},[n("img",{directives:[{name:"show",rawName:"v-show",value:!e.isInitingBgImg&&!e.getCacheImgFailed,expression:"!isInitingBgImg&&!getCacheImgFailed"}],staticClass:"ab-center",attrs:{src:e.fileImg,width:e.canvasWidth,height:e.canvasHeight}}),!e.isInitingBgImg&&e.getCacheImgFailed?n("cacheImgLossTip",{staticClass:"ab-center",attrs:{width:e.canvasWidth,height:e.canvasHeight,device:e.device,channel:e.channel}}):e._e(),e.isInitingBgImg?n("div",{staticClass:"initing-wrap ab-center",style:{width:e.canvasWidth+"px",height:e.canvasHeight+"px"}},[n("loadingImg",{staticClass:"ab-center",attrs:{delay:0,imgSrcSize:36}})],1):e._e(),n("canvas",{directives:[{name:"show",rawName:"v-show",value:!e.isInitingBgImg,expression:"!isInitingBgImg"}],ref:"canvas",staticClass:"ab-center",class:[e.canvasCursor],attrs:{width:e.canvasWidth,height:e.canvasHeight},on:{mousedown:e.mouseDown,mousemove:e.mouseMove}})],1),n("ul",{staticClass:"flex"},[e.EAiDetectCate.OTHER!==e.motion.type?n("li",{class:{active:0===e.drawValue},on:{click:function(t){t.stopPropagation(),e.drawValue=0}}},[n("span",{staticClass:"btn-icon icon-client_pen",attrs:{title:e.$t("common_view_pen")}})]):e._e(),e.EAiDetectCate.OTHER!==e.motion.type?n("li",{class:{active:1===e.drawValue},on:{click:function(t){t.stopPropagation(),e.drawValue=1}}},[n("span",{staticClass:"btn-icon icon-client_eraser",attrs:{title:e.$t("common_view_eraser")}})]):e._e(),n("li",{on:{click:function(t){return t.stopPropagation(),e.deleteAll(t)}}},[n("span",{staticClass:"handle-all-icon btn-icon icon-web_disableall",attrs:{title:e.$t("common_deleteAll")}})]),n("li",{on:{click:function(t){return t.stopPropagation(),e.addAll(t)}}},[n("span",{staticClass:"handle-all-icon btn-icon icon-web_enableall",attrs:{title:e.$t("STR_CAMERA_MD_ADD_ALL")}})])]),n("div",{staticClass:"btns-wrap flex-between"},[n("div",{staticClass:"loading-snap",class:{loading:e.loadingSnap},attrs:{title:e.$t("snap_refresh")},on:{click:function(t){return t.stopPropagation(),e.updateSnap(t)}}},[n("span",{directives:[{name:"show",rawName:"v-show",value:!e.loadingSnap,expression:"!loadingSnap"}],staticClass:"btn-icon refresh-icon icon-client_refresh_pro"}),e.loadingSnap?n("loadingImg",{staticClass:"ab-center",attrs:{delay:0}}):e._e()],1),n("button",{attrs:{"reo-element":""},on:{click:e.save}},[e._v(e._s(e.$t("common_dialog_save_button")))])]),e._t("default")],2)},Ft=[],jt=n("c054"),Vt=jt["a"],Ut=(n("de99"),Object(g["a"])(Vt,Bt,Ft,!1,null,"6a5577a6",null)),Ht=Ut.exports,Gt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"motion-new-sensitivity-intro flex"},[i("div",{staticClass:"title"},[e._v(e._s(e.$t("remote_config_page_alarm_section_md_settings_item_label")))]),i("img",{attrs:{src:n("4266")}}),i("div",{staticClass:"des-context"},[e._v(e._s(e.desText))]),i("speedyBtn",{attrs:{btnText:e.$t("common_dialog_ok_button")},on:{btnClick:e.close}})],1)},Wt=[],zt=u["a"].extend({name:"motionNewSensitivityIntro",components:{speedyBtn:v["a"]},data:function(){return{desText:this.$t("motion_detection_sensitivity_des")}},methods:{close:function(){this.$store.commit("SET_DIALOGID","")}}}),Yt=zt,qt=(n("1a69"),Object(g["a"])(Yt,Gt,Wt,!1,null,"17e47a3e",null)),$t=qt.exports,Kt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"partial-exposure"},[n("div",{staticClass:"top-bar flex"},[n("div",{staticClass:"cell-inner scale-icon-wrap",on:{click:function(t){return t.stopPropagation(),e.scaleDialog(t)}}},[n("span",{staticClass:"btn-icon",class:[e.isFullscreen?"icon-client_window":"icon-client_fullscreen"]})]),n("div",{staticClass:"cell-inner close-box",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}},[n("span",{staticClass:"btn-icon icon-client_cancel"})])]),n("h4",{staticClass:"title"},[e._v(e._s(e.$t("overexposure_adjustment_tips")))]),n("p",{staticClass:"notes-text"},[e._v(e._s(e.$t("overexposure_adjustment_des")))]),n("div",{staticClass:"draw-area-wrap",style:{width:e.drawAreaWrapWidth+"px",height:e.drawAreaWrapHeight+"px"}},[n("img",{directives:[{name:"show",rawName:"v-show",value:!e.isInitingBgImg&&!e.getCacheImgFailed,expression:"!isInitingBgImg&&!getCacheImgFailed"}],staticClass:"ab-center",attrs:{src:e.fileImg,width:e.canvasWidth,height:e.canvasHeight}}),!e.isInitingBgImg&&e.getCacheImgFailed?n("cacheImgLossTip",{staticClass:"ab-center",attrs:{width:e.canvasWidth,height:e.canvasHeight,device:e.device,channel:e.channel}}):e._e(),e.isInitingBgImg?n("div",{staticClass:"initing-wrap ab-center",style:{width:e.canvasWidth+"px",height:e.canvasHeight+"px"}},[n("loadingImg",{staticClass:"ab-center",attrs:{delay:0,imgSrcSize:36}})],1):e._e(),n("canvas",{directives:[{name:"show",rawName:"v-show",value:!e.isInitingBgImg,expression:"!isInitingBgImg"}],ref:"canvas",staticClass:"ab-center",attrs:{width:e.canvasWidth,height:e.canvasHeight},on:{click:e.canvasClick,mousedown:e.mouseDown,mouseup:e.mouseUp,mousemove:e.mouseMove}})],1),n("div",{staticClass:"btns-wrap flex-between"},[n("div",{staticClass:"loading-snap",class:{loading:e.loadingSnap},attrs:{title:e.$t("snap_refresh")},on:{click:function(t){return t.stopPropagation(),e.updateSnap(t)}}},[n("span",{directives:[{name:"show",rawName:"v-show",value:!e.loadingSnap,expression:"!loadingSnap"}],staticClass:"btn-icon refresh-icon icon-client_refresh_pro"}),e.loadingSnap?n("loadingImg",{staticClass:"ab-center",attrs:{delay:0}}):e._e()],1),n("button",{attrs:{"reo-element":""},on:{click:e.save}},[e._v(e._s(e.$t("common_dialog_save_button")))])]),e._t("default")],2)},Zt=[],Jt=n("3d36"),Qt=Jt["a"],Xt=(n("8c02"),Object(g["a"])(Qt,Kt,Zt,!1,null,"4fc4b67c",null)),en=Xt.exports,tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"track-range-limit-entry"},[n("aiTrackRangeLimitDetail",{attrs:{channel:e.channel},on:{handleLoading:e.onLoadingStatusChange,handlePromptStatus:e.onOpenPromptStatusChange,saveConfigSucceed:e.onSaveConfigSucceedChange,close:e.closeDialog}}),e.openPrompt===e.PromptStatus.failed?n("statusPrompt",{attrs:{promptStatus:e.openPrompt,promptMessage:e.promptMessage},on:{promptClosed:e.closePrompt}}):e._e()],1)},nn=[],an=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"track-range-limit-detail"},[n("div",{staticClass:"config-title flex-between"},[n("div",{staticClass:"subtitle"},[e._v(e._s(0===e.stepNum?"L":"R"))]),n("div",{staticClass:"close-box",on:{click:function(t){return t.stopPropagation(),e.$emit("close")}}},[n("span",{staticClass:"btn-icon icon-client_cancel"})])]),n("p",{staticClass:"notes-text"},[e._v(e._s(e.$t("horizontal_tracking_range_title")))]),n("div",{staticClass:"config-area"},[e.supportPt?n("pt",{staticClass:"ptz-direction",attrs:{speedVal:e.speedVal,channel:e.channel,supportAutoPt:!1,showAutoPt:!1,supportedPtDirection:e.supportedPtDirection}}):e._e(),0===e.stepNum?n("button",{attrs:{"reo-element":""},on:{click:e.saveLeftPointInfo}},[e._v(e._s(e.$t("common_confirm_next")))]):n("button",{staticClass:"final-btn",attrs:{"reo-element":""},on:{click:e.saveConfig}},[e._v(e._s(e.$t("common_dialog_save_button")))])],1)])},rn=[],sn=(n("a15b"),n("1276"),n("df7c")),on=n.n(sn),cn=n("cd43"),un=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ptz-direction"},e._l(e.ptzSetsArr,(function(t,i){return n("actions-btn",{key:i,staticClass:"flex-between",class:{only1DirectionsInRow:1===Object.keys(t).length},attrs:{actionBtns:t},on:{callback:e.ptControl}})})),1)},ln=[],dn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{staticClass:"actions-btn flex"},e._l(e.actionBtns,(function(t,i){return n("li",{key:i,class:["btn-item",i],attrs:{title:t.tooltip},on:{click:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"left",37,n.key,["Left","ArrowLeft"])?null:(n.stopPropagation(),"button"in n&&0!==n.button?null:(e.clickBtn(t.function),void(t.iconFlag=!t.iconFlag)))},mousedown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"left",37,n.key,["Left","ArrowLeft"])?null:(n.stopPropagation(),"button"in n&&0!==n.button?null:(e.clickBtn(t.mousedown),t.iconFlag=!t.iconFlag,void(e.mouseDownFlag=!0)))},mouseleave:function(n){return n.stopPropagation(),e.mouseUp(t)},mouseup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"left",37,n.key,["Left","ArrowLeft"])?null:(n.stopPropagation(),"button"in n&&0!==n.button?null:e.mouseUp(t))}}},[t.iconChange?t.iconChange?n("span",{class:["action-icon","ab-center",1==t.iconFlag?t.icon:t.iconChange]}):e._e():n("span",{class:["action-icon","ab-center",t.icon]})])})),0)},pn=[],hn=u["a"].extend({name:"actions-btn",props:{actionBtns:Object},data:function(){return{mouseDownFlag:!1}},methods:{clickBtn:function(e){e&&this.$emit("callback",e)},mouseUp:function(e){this.mouseDownFlag&&(this.clickBtn(e.mouseup),e.iconFlag=!e.iconFlag,this.mouseDownFlag=!1)}}}),mn=hn,gn=Object(g["a"])(mn,dn,pn,!1,null,null,null),fn=gn.exports,_n=u["a"].extend({name:"ptz-pt",props:{supportAutoPt:{type:Boolean,default:!1},showAutoPt:{type:Boolean,default:!0},supportedPtDirection:{type:Array,default:[]},speedVal:Number,channel:Object},components:{actionsBtn:fn},data:function(){return{topLeft:{icon:"icon-client_arrow_leftup",mousedown:"topLeft",mouseup:"stop"},top:{icon:"icon-client_arrow_up",mousedown:"top",mouseup:"stop"},topRight:{icon:"icon-client_arrow_rightup",mousedown:"topRight",mouseup:"stop"},left:{icon:"icon-client_arrow_left",mousedown:"left",mouseup:"stop"},auto:{icon:"icon-client_auto",function:"auto",tooltip:this.$t("common_view_auto")},right:{icon:"icon-client_arrow_right",mousedown:"right",mouseup:"stop"},downLeft:{icon:"icon-client_arrow_leftdown",mousedown:"downLeft",mouseup:"stop"},down:{icon:"icon-client_arrow_down",mousedown:"down",mouseup:"stop"},downRight:{icon:"icon-client_arrow_rightdown",mousedown:"downRight",mouseup:"stop"}}},computed:{ptzSets1:function(){var e={};return this.supportedPtDirection.includes(te["EDirections"].TOP_LEFT)&&(e.topLeft=this.topLeft),this.supportedPtDirection.includes(te["EDirections"].TOP)&&(e.top=this.top),this.supportedPtDirection.includes(te["EDirections"].TOP_RIGHT)&&(e.topRight=this.topRight),e},ptzSets2:function(){var e={};return this.supportedPtDirection.includes(te["EDirections"].LEFT)&&(e.left=this.left),this.supportAutoPt&&this.showAutoPt&&(e.auto=this.auto),this.supportedPtDirection.includes(te["EDirections"].RIGHT)&&(e.right=this.right),e},ptzSets3:function(){var e={};return this.supportedPtDirection.includes(te["EDirections"].BOTTOM_LEFT)&&(e.downLeft=this.downLeft),this.supportedPtDirection.includes(te["EDirections"].BOTTOM)&&(e.down=this.down),this.supportedPtDirection.includes(te["EDirections"].BOTTOM_RIGHT)&&(e.downRight=this.downRight),e},ptzSetsArr:function(){return[this.ptzSets1,this.ptzSets2,this.ptzSets3].filter((function(e){return!!Object.keys(e).length}))}},methods:{ptControl:function(e){try{switch(e){case"topRight":this.channel.ptz.upRight(this.speedVal);break;case"top":this.channel.ptz.up(this.speedVal);break;case"topLeft":this.channel.ptz.upLeft(this.speedVal);break;case"left":this.channel.ptz.left(this.speedVal);break;case"auto":this.channel.ptz.scanAuto(this.speedVal);break;case"right":this.channel.ptz.right(this.speedVal);break;case"downRight":this.channel.ptz.downRight(this.speedVal);break;case"down":this.channel.ptz.down(this.speedVal);break;case"downLeft":this.channel.ptz.downLeft(this.speedVal);break;case"stop":this.channel.ptz.stop();break;default:break}}catch(t){C["a"].error("pt.vue > ptControl > ".concat(e,": ").concat(t))}}}}),vn=_n,bn=(n("d051"),Object(g["a"])(vn,un,ln,!1,null,"0a88c4ce",null)),wn=bn.exports,Cn=u["a"].extend({name:"aiTrackRangeLimitDetail",components:{pt:wn},props:{channel:Object},data:function(){return{stepNum:0,speedVal:20,supportImportExportImage:!1,supportPt:!1,supportPtzSpeed:!1,supportedPtDirection:[],aiTrackRangeLimit:{leftPos:-1,rightPos:-1,leftImgName:"",rightImgName:""},leftImgUrl:"",tempFolder:""}},watch:{channel:{handler:function(){this.channel&&this.init()},immediate:!0}},created:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,cn["a"].getTempleFolder();case 2:e.tempFolder=t.sent,gt["a"].subscribe("subscribe_local_pt_speed",-1,-1,e.onPtzSpeedChanged),window.addEventListener("setLocalPtzSpeed",e.getPtzSpeed);case 5:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){gt["a"].unsubscribe("subscribe_local_pt_speed",-1,-1,this.onPtzSpeedChanged),window.removeEventListener("setLocalPtzSpeed",this.getPtzSpeed)},methods:{init:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$emit("handleLoading",!0),t.prev=1,t.next=4,Promise.all([e.channel.supportImportExportImage(),e.channel.supportPt(),e.channel.supportPtzSpeed(),e.channel.supportedPtDirection()]);case 4:return n=t.sent,i=Object(T["a"])(n,4),e.supportImportExportImage=i[0],e.supportPt=i[1],e.supportPtzSpeed=i[2],e.supportedPtDirection=i[3],t.next=12,e.getPtzSpeed();case 12:t.next=17;break;case 14:t.prev=14,t.t0=t["catch"](1),C["a"].error("aiTrackRangeLimitDetail.vue > init:",t.t0);case 17:e.$emit("handleLoading",!1);case 18:case"end":return t.stop()}}),t,null,[[1,14]])})))()},onPtzSpeedChanged:function(e){this.supportPtzSpeed&&(this.speedVal=e.data)},getPtzSpeed:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.supportPtzSpeed){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,cn["a"].getPtSpeed();case 5:e.speedVal=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](2),C["a"].error("aiTrackRangeLimitDetail.vue > getPtzSpeed:",t.t0);case 11:case"end":return t.stop()}}),t,null,[[2,8]])})))()},getPtzCurPos:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",e.channel.config.getPtzCurPos());case 1:case"end":return t.stop()}}),t)})))()},saveLeftPointInfo:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$emit("handleLoading",!0),t.prev=1,n="left_picture",t.next=5,Promise.all([e.getPtzCurPos(),e.refreshLocalSnap(n)]);case 5:i=t.sent,a=Object(T["a"])(i,2),r=a[0],s=a[1],e.leftImgUrl=s,e.aiTrackRangeLimit.leftPos=r,e.aiTrackRangeLimit.leftImgName=n,e.stepNum=1,t.next=19;break;case 15:t.prev=15,t.t0=t["catch"](1),C["a"].error("aiTrackRangeLimitDetail.vue > saveLeftPointInfo: ",t.t0),e.$emit("handlePromptStatus",R["PromptStatus"].failed,e.$t("common_operate_failed"));case 19:e.$emit("handleLoading",!1);case 20:case"end":return t.stop()}}),t,null,[[1,15]])})))()},saveConfig:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.$emit("handleLoading",!0),n="right_picture",t.next=5,e.getPtzCurPos();case 5:if(i=t.sent,e.aiTrackRangeLimit.leftPos!==i){t.next=10;break}return e.$emit("handlePromptStatus",R["PromptStatus"].failed,e.$t("horizontal_tracking_range_location_rules")),e.$emit("handleLoading",!1),t.abrupt("return");case 10:return t.next=12,e.importImg(e.leftImgUrl,"left_picture");case 12:return t.next=14,e.refreshLocalSnap(n);case 14:return a=t.sent,t.next=17,e.importImg(a,n);case 17:return e.aiTrackRangeLimit.rightPos=i,e.aiTrackRangeLimit.rightImgName=n,t.next=21,e.channel.config.setSmartTrackLimit(e.aiTrackRangeLimit);case 21:e.$emit("handleLoading",!1),e.$emit("saveConfigSucceed",e.aiTrackRangeLimit),t.next=30;break;case 25:t.prev=25,t.t0=t["catch"](0),C["a"].error("aiTrackRangeLimitDetail.vue > saveConfig: ",t.t0),e.$emit("handlePromptStatus",R["PromptStatus"].failed,e.$t("common_operate_failed")),e.$emit("handleLoading",!1);case 30:case"end":return t.stop()}}),t,null,[[0,25]])})))()},refreshLocalSnap:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a,r,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(n.prev=0,i="",!y["a"].IS_CLIENT){n.next=21;break}return n.next=5,t.channel.live.updateCacheImage();case 5:return n.next=7,new Promise((function(e){setTimeout((function(){e()}),1e3)}));case 7:return a=t.channel.cacheImagePath,r=on.a.join(t.tempFolder,"track-range-snap-setting",t.channel.identifier,"".concat(t.channel.index)),n.next=11,K["a"].mkdir(r);case 11:if(n.sent){n.next=13;break}C["a"].error("aiTrackRangeLimitDetail.vue > refreshLocalSnap > mkdir ".concat(r," failed "));case 13:return s=on.a.join(r,e),n.next=16,K["a"].unlink(s);case 16:return n.next=18,K["a"].copyFile(a,s);case 18:i=s+"?"+Object(z["a"])(),n.next=24;break;case 21:return n.next=23,t.channel.updateCacheImagePathAsync();case 23:i=n.sent;case 24:return n.abrupt("return",i);case 27:throw n.prev=27,n.t0=n["catch"](0),C["a"].error("aiTrackRangeLimitDetail.vue > refreshLocalSnap: ",n.t0),n.t0;case 31:case"end":return n.stop()}}),n,null,[[0,27]])})))()},importImg:function(e,t){var n=arguments,i=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var r,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return r=n.length>2&&void 0!==n[2]&&n[2],a.prev=1,s=y["a"].IS_CLIENT?e.split("?")[0]:e,a.next=5,i.channel.config.importImageFile(t,s,r);case 5:a.next=11;break;case 7:throw a.prev=7,a.t0=a["catch"](1),C["a"].error("aiTrackRangeLimitDetail.vue > importImg ".concat(e,": "),a.t0),a.t0;case 11:case"end":return a.stop()}}),a,null,[[1,7]])})))()}}}),yn=Cn,Sn=(n("8040"),Object(g["a"])(yn,an,rn,!1,null,"868f2ce8",null)),kn=Sn.exports,An=u["a"].extend({name:"aiTrackRangeLimitEntry",components:{aiTrackRangeLimitDetail:kn,statusPrompt:ve},data:function(){return{channel:void 0,PromptStatus:R["PromptStatus"],openPrompt:R["PromptStatus"].close,promptMessage:""}},computed:{handle:function(){return this.$store.getters.deviceHandle},setScheduleCallback:function(){return this.$store.getters.setScheduleCallback}},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_DIALOG_LOADING",!0),n.prev=1,n.next=4,B["a"].getDeviceWithHandle(e);case 4:return i=n.sent,n.next=7,i.getChannelAtIndex(t.$store.getters.dialogChannelIndex);case 7:t.channel=n.sent,n.next=15;break;case 10:n.prev=10,n.t0=n["catch"](1),C["a"].error("aiTrackRangeLimitEntry.vue > handler > getDeviceWithHandle or getChannelAtIndex: ",n.t0),t.closeDialog(),t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed);case 15:t.$store.commit("HANDLE_DIALOG_LOADING",!1);case 16:case"end":return n.stop()}}),n,null,[[1,10]])})))()},immediate:!0}},methods:{closeDialog:function(){this.$store.commit("SET_DIALOGID","")},closePrompt:function(){this.openPrompt=R["PromptStatus"].close,this.promptMessage=""},onOpenPromptStatusChange:function(e,t){this.openPrompt=e,this.promptMessage=t},onLoadingStatusChange:function(e){this.$store.commit("HANDLE_LOADING",e)},onSaveConfigSucceedChange:function(e){this.setScheduleCallback(e),this.closeDialog()}}}),En=An,xn=(n("1c67"),Object(g["a"])(En,tn,nn,!1,null,"3e555f99",null)),On=xn.exports,In=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"battery-pairing-dialog-entry"},[n("batteryPairing",{on:{pair:e.pair}})],1)},Dn=[],Tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"battery-pairing flex"},[e._m(0),n("div",{staticClass:"main-info-wrap"},[n("div",{staticClass:"small-title"},[e._v(e._s(e.$t("common_unpaired")))]),n("p",{staticClass:"text"},[e._v(e._s(e.$t("device_and_battery_pair_title")))]),n("p",{staticClass:"notes-text"},[e._v(e._s(e.$t("device_and_battery_pair_tips1")))]),n("p",{staticClass:"notes-text"},[e._v(e._s(e.$t("device_and_battery_pair_tips2")))]),n("p",{staticClass:"text"},[e._v(e._s(e.$t("device_and_battery_pair_tutorial_title")))]),n("p",{staticClass:"notes-text"},[e._v(e._s(e.$t("device_and_battery_pair_step1")))]),n("img",{attrs:{src:e.imgSrc}}),n("p",{staticClass:"notes-text"},[e._v(e._s(e.$t("device_and_battery_pair_step2")))]),n("div",{staticClass:"flex content-input-wrap"},[n("simpleInput",e._b({on:{inputBlur:e.inputBlur,inputChanged:e.inputChanged}},"simpleInput",e.batteryId,!1)),n("speedyBtn",{attrs:{btnText:e.$t("common_pair")},on:{btnClick:e.pair}})],1)])])},Rn=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"battery-box"},[n("span",{staticClass:"battery-icon icon-client_battery_larger"}),n("span",{staticClass:"icon-warning icon-client_warning"})])}],Pn=n("0ead"),Ln=n.n(Pn),Mn=u["a"].extend({name:"batteryPairing",components:{simpleInput:_,speedyBtn:v["a"]},data:function(){return{imgSrc:"",batteryId:{targetValue:"",forceError:""}}},computed:{cType:function(){return this.$store.getters.deviceInfo.cType}},mounted:function(){var e=this;this.imgSrc=Ln.a;var t="".concat("https://home-cdn.reolink.us/wp-content/assets/app","/model-images/").concat(this.cType,"/battery_qrcode.png");Object(l["u"])(t).then((function(){e.imgSrc=t})).catch((function(){return null}))},methods:{pair:function(){this.batteryId.targetValue?l["z"].batteryId(this.batteryId.targetValue)?this.$emit("pair",this.batteryId.targetValue):this.$set(this.batteryId,"forceError",this.$t("battery_uid_void")):this.$set(this.batteryId,"forceError",this.$t("common_view_string_cannot_be_blank"))},inputChanged:function(e,t,n){this.batteryId.targetValue=e,this.batteryId.targetValue?this.$set(this.batteryId,"forceError",""):this.$set(this.batteryId,"forceError",this.$t("common_view_string_cannot_be_blank"))},inputBlur:function(){this.batteryId.targetValue&&this.$set(this.batteryId,"forceError","")}}}),Nn=Mn,Bn=(n("bd2f"),Object(g["a"])(Nn,Tn,Rn,!1,null,"371e71d4",null)),Fn=Bn.exports,jn=u["a"].extend({name:"batteryPairingDialogEntry",components:{batteryPairing:Fn},data:function(){return{}},computed:{dialogCallback:function(){return this.$store.getters.appDialogCallback}},methods:{pair:function(e){this.dialogCallback(e)}}}),Vn=jn,Un=(n("8274"),Object(g["a"])(Vn,In,Dn,!1,null,"6003d8c1",null)),Hn=Un.exports,Gn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"imageStitch",staticClass:"image-stitch"},[n("div",{staticClass:"stitch-title flex-between"},[n("div",{staticClass:"subtitle"},[e._v(e._s(e.$t("bino_stitch_setting_title")))]),n("div",{staticClass:"close-box",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}},[n("span",{staticClass:"btn-icon icon-client_cancel"})])]),n("div",{staticClass:"stitch-area"},[n("p",{staticClass:"notes-text"},[e._v(e._s(e.$t("bino_stitch_setting_distance_des")))]),n("div",{staticClass:"config-item flex-between"},[n("span",[e._v(e._s(e.$t("bino_stitch_setting_distance_title")))]),n("clickInput",e._b({on:{setConfig:e.stitchClick}},"clickInput",e.distance,!1))],1),n("p",{staticClass:"notes-text"},[e._v(e._s(e.$t("bino_stitch_setting_position_des")))]),n("div",{staticClass:"config-item flex-between"},[n("span",[e._v(e._s(e.$t("bino_stitch_setting_horizontal_des")))]),n("clickInput",e._b({on:{setConfig:e.stitchClick}},"clickInput",e.xPixel,!1))],1),n("div",{staticClass:"config-item flex-between"},[n("span",[e._v(e._s(e.$t("bino_stitch_setting_vertical_des")))]),n("clickInput",e._b({on:{setConfig:e.stitchClick}},"clickInput",e.yPixel,!1))],1),n("div",{staticClass:"config-item flex-between default-btn",on:{click:e.setDefault}},[n("span",[e._v(e._s(e.$t("day_and_night_adjust_to_default_value")))])])])])},Wn=[],zn=(n("b680"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"click-input"},[n("div",{staticClass:"click-input-inner flex-between"},[n("div",{staticClass:"btn-item",class:{disabled:e.minusIconDisabled},on:{mousedown:function(t){return e.changeValue(t,!1,e.minusIconDisabled)},mouseup:e.startToSetConfig,mouseleave:e.startToSetConfig}},[n("span",{class:["btn-icon",e.minusIcon]})]),n("input",{directives:[{name:"model",rawName:"v-model.trim.number.lazy",value:e.inputValue,expression:"inputValue",modifiers:{trim:!0,number:!0,lazy:!0}}],staticClass:"button-text",attrs:{"reo-element":"",type:"text",disabled:e.disabledInput||e.isSetting},domProps:{value:e.inputValue},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickEnter(t)},change:function(t){e.inputValue=e._n(t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}}),n("div",{staticClass:"btn-item",class:{disabled:e.plusIconDisabled},on:{mousedown:function(t){return e.changeValue(t,!0,e.plusIconDisabled)},mouseup:e.startToSetConfig,mouseleave:e.startToSetConfig}},[n("span",{class:["btn-icon",e.plusIcon]})])])])}),Yn=[],qn=u["a"].extend({name:"clickInput",components:{loadingImg:d["a"]},props:{isSetting:{type:Boolean,default:!1},disabledInput:{type:Boolean,default:!0},flag:{type:[String,Number],default:""},minusIcon:{type:String,default:"icon-client_minimize"},plusIcon:{type:String,default:"icon-client_plus"},minValue:{type:Number,default:0},maxValue:{type:Number,default:100},currentVal:{type:Number,default:100},step:{type:Number,default:.1}},data:function(){return{currentValue:0,isIncreasing:!1,loopChangeCurrentValue:null,timer:null,isBtnMouseDown:!1}},computed:{inputValue:{get:function(){return this.currentValue},set:function(e){this.currentValue=Math.min(this.maxValue,Math.max(this.minValue,e))}},minusIconDisabled:function(){return this.currentValue===this.minValue||this.isSetting},plusIconDisabled:function(){return this.currentValue===this.maxValue||this.isSetting}},watch:{currentVal:{handler:function(e,t){e!==t&&(this.currentValue=e)},immediate:!0}},methods:{clickEnter:function(e){e.target.blur()},changeValue:function(e,t,n){var i=this;0!==e.button||n||(this.isBtnMouseDown=!0,this.isIncreasing=t,this.currentValue=parseFloat(Math.min(this.maxValue,Math.max(this.minValue,this.isIncreasing?this.currentValue+this.step:this.currentValue-this.step)).toFixed(1)),this.timer=setTimeout((function(){i.loopChangeCurrentValue=Object(l["h"])((function(){i.currentValue=parseFloat(Math.min(i.maxValue,Math.max(i.minValue,i.isIncreasing?i.currentValue+i.step:i.currentValue-i.step)).toFixed(1))}),.1),i.loopChangeCurrentValue(!0)}),100))},startToSetConfig:function(){this.isBtnMouseDown&&(this.loopChangeCurrentValue&&(this.loopChangeCurrentValue(!1),this.loopChangeCurrentValue=null),this.timer&&(clearTimeout(this.timer),this.timer=null),this.$emit("setConfig",this.currentValue,this.flag),this.isBtnMouseDown=!1)}}}),$n=qn,Kn=(n("2e17"),Object(g["a"])($n,zn,Yn,!1,null,null,null)),Zn=Kn.exports,Jn=u["a"].extend({name:"imageStitch",components:{clickInput:Zn},data:function(){return{device:void 0,channel:void 0,distance:{flag:"distance",currentVal:0,minValue:0,maxValue:0},xPixel:{flag:"xPixel",currentVal:0,minValue:0,maxValue:0,step:1,minusIcon:"icon-client_arrow_left",plusIcon:"icon-client_arrow_right"},yPixel:{flag:"yPixel",currentVal:0,minValue:0,maxValue:0,step:1,minusIcon:"icon-client_arrow_down",plusIcon:"icon-client_arrow_up"},stitchCfg:{},actualStitchCfg:{},timingSetStitchCfg:function(e){}}},computed:{handle:function(){return this.$store.getters.deviceHandle}},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_DIALOG_LOADING",!0),n.prev=1,n.next=4,B["a"].getDeviceWithHandle(e);case 4:return t.device=n.sent,n.next=7,t.device.getChannelAtIndex(t.$store.getters.dialogChannelIndex);case 7:return t.channel=n.sent,n.next=10,t.getStitchCfg();case 10:n.next=17;break;case 12:n.prev=12,n.t0=n["catch"](1),t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),t.closeDialog(),C["a"].error("stitch.vue > watch handle: ",n.t0);case 17:t.$store.commit("HANDLE_DIALOG_LOADING",!1);case 18:case"end":return n.stop()}}),n,null,[[1,12]])})))()},immediate:!0}},mounted:function(){this.timingSetStitchCfg=Object(l["j"])(this.setStitchCfg,500)},methods:{closeDialog:function(){this.$store.commit("SET_DIALOGID","")},stitchClick:function(e,t){var n=this.$data[t];switch(t){case"distance":this.stitchCfg[t].fCur=n.currentVal=e;break;case"xPixel":case"yPixel":this.stitchCfg[t].iCur=n.currentVal=e;break;default:break}this.timingSetStitchCfg(!1)},setDefault:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.stitchCfg.distance.fCur=e.stitchCfg.distance.fDef,e.stitchCfg.xPixel.iCur=e.stitchCfg.xPixel.iDef,e.stitchCfg.yPixel.iCur=e.stitchCfg.yPixel.iDef,e.timingSetStitchCfg(!0);case 4:case"end":return t.stop()}}),t)})))()},getStitchCfg:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getBinoStitchCfg();case 3:e.stitchCfg=t.sent,e.actualStitchCfg=Object(l["g"])(e.stitchCfg),e.stitchCfgUpdate(),t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("stitch.vue > getStitchCfg: ",t.t0),t.t0;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setStitchCfg:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_LOADING",!0),n.prev=1,n.next=4,t.channel.config.setBinoStitchCfg(t.stitchCfg);case 4:t.actualStitchCfg=Object(l["g"])(t.stitchCfg),e&&t.stitchCfgUpdate(),n.next=15;break;case 9:n.prev=9,n.t0=n["catch"](1),t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),t.stitchCfg=Object(l["g"])(t.actualStitchCfg),t.stitchCfgUpdate(),C["a"].error("stitch.vue > setStitchCfg: ",n.t0);case 15:t.$store.commit("HANDLE_LOADING",!1);case 16:case"end":return n.stop()}}),n,null,[[1,9]])})))()},stitchCfgUpdate:function(){for(var e=0,t=["distance"];e30){var n=Object(r["a"])(e.toString(2)).reverse();return!!~~n[t]}return!!(e&1< profile: ",e.encTable),-1;var i=e.curStreamType.value,a=[],r=[],s=[];e.streamUiItem.videoEncType.currentVal=e.enc[i].videoEncType;for(var o=function(r){var s=e.encTable.profile[r],o=s.mainstream.cResolutionName,c=e.compareChannelIndex(s.iChnBits,t);if(c){var u=i===te["EStreamTypeInEncCfg"].mainstream||o===n.mainstream.cResolutionName,l=a.some((function(e){return e.value===s[i].cResolutionName}));u&&!l&&a.push({name:s[i].cResolutionName,value:s[i].cResolutionName})}},c=0;c=25)switch(e.encCfgSettingInfo.deviceNorm){case N["BC_DEVICE_NORM_E"].BC_DEVICE_NORM_NTSC:p="30";break;case N["BC_DEVICE_NORM_E"].BC_DEVICE_NORM_PAL:p="25";break}r.push({name:p,value:d})}}catch(w){l.e(w)}finally{l.f()}e.streamUiItem.lFrameRate.options=r;var h=e.enc[i].lFrameRate;r.some((function(e){return e.value===h}))||(h=r[0].value,e.enc[i].lFrameRate=h),e.streamUiItem.lFrameRate.currentVal=h;var m,g=Object(ne["a"])(n[i].lBitRate);try{for(g.s();!(m=g.n()).done;){var f=m.value;if(0===f)break;s.push({name:f.toString(),value:f})}}catch(w){g.e(w)}finally{g.f()}e.streamUiItem.lBitRate.options=s;var _=e.enc[i].lBitRate;s.some((function(e){return e.value===_}))||(_=s[0].value,e.enc[i].lBitRate=_),e.streamUiItem.lBitRate.currentVal=e.enc[i].lBitRate,e.streamUiItem.gop.options=[];for(var v=e.enc[i].gop,b=v.iMin;b<=v.iMax;b++)e.streamUiItem.gop.options.push({value:b,name:b+"x"});e.streamUiItem.gop.currentVal=v.iCur})()}catch(t){C["a"].error("encUpdate: ",t)}},save:function(){this.saveCallback(this.enc)}}})),fi=gi,_i=(n("54c0"),Object(g["a"])(fi,hi,mi,!1,null,"7a11b12c",null)),vi=_i.exports,bi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wifi-kit-cfg-setting"},[n("h4",{staticClass:"title"},[e._v(e._s(e.curFreqType.name))]),n("p",{staticClass:"notes-text"},[e._v(e._s(e.$t("auto_sync_des")))]),n("h5",{staticClass:"text"},[e._v(e._s(e.$t("wifi_ssid_name")))]),n("simpleInput",e._b({attrs:{targetValue:e.wifiKitCfg[e.curFreqType.value].ssid},on:{inputChanged:e.wifiKitInputChanged}},"simpleInput",e.inputArr.ssid,!1)),n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_password_password_description")))]),n("simpleInput",e._b({attrs:{targetValue:e.wifiKitCfg[e.curFreqType.value].password},on:{inputChanged:e.wifiKitInputChanged}},"simpleInput",e.inputArr.password,!1)),void 0!==e.wifiKitCfg[e.curFreqType.value].enableDfs?[n("h5",{staticClass:"text"},[e._v("DFS Channels")]),n("slideBtn",e._b({on:{stateChange:e.wifiKitSwitch}},"slideBtn",e.enableDfs,!1))]:e._e(),n("div",{staticClass:"btn-wrap flex"},[n("speedyBtn",{on:{btnClick:e.proxySave}})],1)],2)},wi=[],Ci=n("6af1"),yi=u["a"].extend({name:"wifiKitCfgSetting",components:{selectBox:Xe["a"],simpleInput:_,slideBtn:Ci["a"],speedyBtn:v["a"]},data:function(){return{inputArr:{ssid:{triggerVerificationCount:0,flag:"ssid",autoRemoveFirstOrLastSpace:!1,disallowConsecutiveSpaces:!0,minLength:1,maxLength:31,checked:!0},password:{triggerVerificationCount:0,flag:"password",autoRemoveFirstOrLastSpace:!1,disallowConsecutiveSpaces:!0,isPassword:!0,minLength:8,maxLength:63,checked:!0}},enableDfs:{flag:"enableDfs",openVal:1,closeVal:0,isOpen:0,isSetting:!1,warnClue:!1},wifiKitCfg:{}}},computed:{wifiKitSettingInfo:function(){return this.$store.getters.wifiKitSettingInfo},curFreqType:function(){return this.wifiKitSettingInfo.curFreqTypeInfo},saveCallback:function(){return this.wifiKitSettingInfo.saveCallback},formChecked:function(){return this.inputArr.ssid.checked&&this.inputArr.password.checked}},created:function(){this.wifiKitCfg=Object(l["g"])(this.wifiKitSettingInfo.wifiKitCfg);var e=this.wifiKitCfg[this.curFreqType.value].enableDfs;void 0!==e&&(this.enableDfs.isOpen=e)},methods:{wifiKitInputChanged:function(e,t,n){this.wifiKitCfg[this.curFreqType.value][t]=e,this.inputArr[t]["checked"]=!n},wifiKitSwitch:function(e){var t=this.enableDfs;t.isOpen=this.wifiKitCfg[this.curFreqType.value]["enableDfs"]=e},proxySave:function(){var e=this;this.inputArr.ssid.triggerVerificationCount++,this.inputArr.password.triggerVerificationCount++,this.$nextTick((function(){e.save()}))},save:function(){this.formChecked&&this.saveCallback(this.wifiKitCfg)}}}),Si=yi,ki=(n("6546"),Object(g["a"])(Si,bi,wi,!1,null,"0bd26fdd",null)),Ai=ki.exports,Ei=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ddns-setting"},[n("h4",{staticClass:"title"},[e._v(e._s(e.$t("remoteConfig_network_DDNSSetting")))]),n("div",{staticClass:"server-type"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_ddnsSetting_serverType")))]),n("selectBox",e._b({staticClass:"select-box",on:{selectChanged:e.serverTypeChanged}},"selectBox",e.serverTypeOptions,!1))],1),e._l(e.filterSourceInputArr,(function(t,i){return n("div",{key:i},[n("h5",{staticClass:"text"},[e._v(e._s(t.title))]),n("simpleInput",e._b({attrs:{triggerVerificationCount:e.triggerVerificationCount,targetValue:e.ddnsData[i],flag:i,"data-id":"ddns-simpleInput-"+i},on:{inputBlur:e.inputBlur,inputChanged:e.inputChanged}},"simpleInput",t,!1))],1)})),n("div",{staticClass:"btns-wrap"},[n("speedyBtn",{attrs:{"data-id":"ddns-setting-setDDNS-button"},on:{btnClick:e.proxySetDDNS}})],1)],2)},xi=[],Oi=(n("13d5"),n("07ac"),n("ac16"),u["a"].extend({name:"ddnsSetting",components:{selectBox:Xe["a"],simpleInput:_,speedyBtn:v["a"]},data:function(){return{triggerVerificationCount:0,ddnsData:{servAddr:"",domainName:"",username:"",password:"",confirmPassword:""},supportDdnsServerCfg:!1,serverTypeOptions:{currentVal:1,options:[]},sourceInputArr:{servAddr:{title:this.$t("common_server_address"),regexp:"server",minLength:1,maxLength:255,checked:!0},domainName:{title:this.$t("remoteConfig_ddnsSetting_domainName"),regexp:"domain",minLength:1,maxLength:255,checked:!0},username:{title:this.$t("common_username_description"),minLength:1,maxLength:127,disallowConsecutiveSpaces:!0,regexp:"ddnsNickName",checked:!0},password:{title:"".concat(this.$t("common_password_password_description")),regexp:"ddnsPassword",maxLength:127,autoRemoveFirstOrLastSpace:!1,disallowConsecutiveSpaces:!0,checked:!0,isPassword:!0,hideEye:!0},confirmPassword:{title:"".concat(this.$t("common_password_confirm_password_description")),checked:!0,regexp:"ddnsPassword",maxLength:127,autoRemoveFirstOrLastSpace:!1,disallowConsecutiveSpaces:!0,isPassword:!0,hideEye:!0,forceError:""}},servAddrList:new Map,device:{}}},computed:{setScheduleCallback:function(){return this.$store.getters.setScheduleCallback},handle:function(){return this.$store.getters.deviceHandle},ddns:function(){return this.$store.getters.ddns},filterSourceInputArr:function(){var e=Object(l["g"])(this.sourceInputArr);return this.supportDdnsServerCfg||Reflect.deleteProperty(e,"servAddr"),e},formChecked:function(){var e=Object(ct["a"])({},this.sourceInputArr);return this.supportDdnsServerCfg||Reflect.deleteProperty(e,"servAddr"),Object.values(e).reduce((function(e,t){return e&&t.checked}),!0)}},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_DIALOG_LOADING",!0),n.prev=1,n.next=4,B["a"].getDeviceWithHandle(e);case 4:return t.device=n.sent,n.next=7,t.getSupport();case 7:t.serverTypeOptions.currentVal=t.ddns.eType,t.servAddrList=new Map(t.ddns.servAddrList),t.ddns.servAddr&&t.servAddrList.set(t.ddns.eType,t.ddns.servAddr),t.ddnsData.servAddr=t.servAddrList.get(t.ddns.eType),t.ddnsData.domainName=t.ddns.cDomainName,t.ddnsData.username=t.ddns.cUserName,t.ddnsData.confirmPassword=t.ddnsData.password=w["a"].recover2Str(t.ddns.cPassword),n.next=21;break;case 16:n.prev=16,n.t0=n["catch"](1),t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),t.$store.commit("SET_DIALOGID",""),C["a"].error("ddnsSetting.vue > handler > ipcDeviceManager.getDeviceWithHandle or getSupport: ",n.t0);case 21:t.$store.commit("HANDLE_DIALOG_LOADING",!1);case 22:case"end":return n.stop()}}),n,null,[[1,16]])})))()},immediate:!0}},methods:{getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.device.ddnsVersion(),e.device.supportDdnsServerCfg()]);case 2:n=t.sent,i=Object(T["a"])(n,2),a=i[0],r=i[1],e.supportDdnsServerCfg=r,e.serverTypeOptions.options=1===a?[{value:4,name:e.$t("remoteConfig_ddnsSetting_noIp")},{value:1,name:e.$t("remoteConfig_ddnsSetting_DynDNS")}]:[{value:3,name:"3322"},{value:1,name:e.$t("remoteConfig_ddnsSetting_DynDNS")}];case 8:case"end":return t.stop()}}),t)})))()},serverTypeChanged:function(e){this.$set(this.serverTypeOptions,"currentVal",e);var t=this.servAddrList.get(e);this.$set(this.ddnsData,"servAddr",t||new Map(this.ddns.servAddrList).get(e))},inputChanged:function(e,t,n){this.sourceInputArr[t]["checked"]=!n,this.ddnsData[t]=e},inputBlur:function(e){"confirmPassword"===e&&this.$set(this.sourceInputArr.confirmPassword,"forceError","")},proxySetDDNS:function(){var e=this;this.triggerVerificationCount++,this.$nextTick((function(){e.setDDNS()}))},setDDNS:function(){if(this.sourceInputArr.confirmPassword.checked&&this.ddnsData.password!==this.ddnsData.confirmPassword)this.$set(this.sourceInputArr.confirmPassword,"forceError",this.$t("common_passwordsNotMatch"));else if(this.formChecked){var e=Object.assign({},this.ddns,{eType:this.serverTypeOptions.currentVal,servAddr:this.ddnsData.servAddr,cDomainName:this.ddnsData.domainName,cUserName:this.ddnsData.username,cPassword:w["a"].transform(this.ddnsData.password)});this.setScheduleCallback(e)}}}})),Ii=Oi,Di=Object(g["a"])(Ii,Ei,xi,!1,null,null,null),Ti=Di.exports,Ri=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ntp-setting"},[n("h4",{staticClass:"title"},[e._v(e._s(e.$t("remoteConfig_network_NTPSetting")))]),n("div",{staticClass:"ntp-server"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_ntpSetting_server")))]),n("selectBox",e._b({staticClass:"select-box",attrs:{"data-id":"ntp-server-selectBox"},on:{selectChanged:e.ntpServerChanged}},"selectBox",e.ntpServerOptions,!1))],1),n("div",{directives:[{name:"show",rawName:"v-show",value:"Custom"===e.ntpServerOptions.currentVal,expression:"ntpServerOptions.currentVal==='Custom'"}],attrs:{"data-id":"ntp-server-custom-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_ntpSetting_server")))]),n("simpleInput",e._b({attrs:{"data-id":"ntp-server-custom-simpleInput",targetValue:e.ntpData.server,triggerVerificationCount:e.triggerVerificationCount},on:{inputChanged:e.inputChanged}},"simpleInput",e.inputArr.server,!1))],1),n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_ntpSetting_port")+" (1~65535)"))]),n("simpleInput",e._b({attrs:{"data-id":"ntpPort-simpleInput",targetValue:e.ntpData.ntpPort,triggerVerificationCount:e.triggerVerificationCount},on:{inputChanged:e.inputChanged}},"simpleInput",e.inputArr.ntpPort,!1))],1),n("div",{staticClass:"btns-wrap flex"},[n("button",{attrs:{"reo-element":""},on:{click:e.proxySave}},[e._v(e._s(e.$t("common_dialog_save_button")))])])])},Pi=[],Li=n("5d68"),Mi=u["a"].extend({name:"ntpSetting",components:{selectBox:Xe["a"],simpleInput:_},data:function(){return{triggerVerificationCount:0,ntp:{},ntpData:{server:"",ntpPort:"123"},ntpServerOptions:{currentVal:"pool.ntp.org",options:[{value:"pool.ntp.org",name:"pool.ntp.org"},{value:"time.windows.com",name:"time.windows.com"},{value:"time-a.nist.gov",name:"time-a.nist.gov"},{value:"time-b.nist.gov",name:"time-b.nist.gov"},{value:"time-nw.nist.gov",name:"time-nw.nist.gov"},{value:"Custom",name:this.$t("email_server_page_other_server")}]},inputArr:{server:{flag:"server",regexp:"server",minLength:1,maxLength:255,checked:!0},ntpPort:{regexp:"port",flag:"ntpPort",minLength:1,checked:!0}},device:{}}},computed:{handle:function(){return this.$store.getters.deviceHandle},formChecked:function(){for(var e in this.inputArr)if(("server"!==e||"Custom"===this.ntpServerOptions.currentVal)&&this.inputArr.hasOwnProperty(e)&&!this.inputArr[e]["checked"])return!1;return!0}},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_DIALOG_LOADING",!0),n.prev=1,n.next=4,B["a"].getDeviceWithHandle(e);case 4:return t.device=n.sent,n.next=7,t.device.config.getNtp();case 7:t.ntp=n.sent,i=t.ntpServerOptions.options.find((function(e){return e.value===t.ntp.cServer})),t.ntpServerOptions.currentVal=i?t.ntp.cServer:"Custom",t.ntpData.server=t.ntp.cServer,t.ntpData.ntpPort=t.ntp.iPort.toString(),n.next=19;break;case 14:n.prev=14,n.t0=n["catch"](1),t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),t.$store.commit("SET_DIALOGID",""),C["a"].error("ntpSetting.vue > handler > ipcDeviceManager.getDeviceWithHandle or config.getNtp: ",n.t0);case 19:t.$store.commit("HANDLE_DIALOG_LOADING",!1);case 20:case"end":return n.stop()}}),n,null,[[1,14]])})))()},immediate:!0}},methods:{proxySave:function(){var e=this;this.triggerVerificationCount++,this.$nextTick((function(){e.save()}))},save:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.formChecked){t.next=2;break}return t.abrupt("return");case 2:e.ntp.cServer=e.ntpData.server,e.ntp.iPort=parseInt(e.ntpData.ntpPort,10),Li["a"].saveEffect(e.$store,e.ntp,e.setNtp);case 5:case"end":return t.stop()}}),t)})))()},setNtp:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.device.config.getNtp();case 2:return i=t.sent,t.next=5,n.device.config.setNtp(Object(ct["a"])(Object(ct["a"])({},e),{},{iInterval:i.iInterval,bEnable:i.bEnable}));case 5:case"end":return t.stop()}}),t)})))()},ntpServerChanged:function(e){this.$set(this.ntpServerOptions,"currentVal",e),this.ntpData.server="Custom"===e?"":e},inputChanged:function(e,t,n){this.inputArr[t]["checked"]=!n,this.ntpData[t]=e}}}),Ni=Mi,Bi=(n("8188"),Object(g["a"])(Ni,Ri,Pi,!1,null,"28abd50b",null)),Fi=Bi.exports,ji=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"port-setting"},[n("h4",{staticClass:"title"},[e._v(e._s(e.$t("common_port_settings_title")))]),n("div",{staticClass:"list-container"},[n("div",{staticClass:"list-title-wrap flex"},[n("div",{staticClass:"name-wrap"},[e._v(e._s(e.$t("common_view_name")))]),n("div",{staticClass:"port-wrap"},[e._v(e._s(e.$t("common_Port")))])]),e._l(e.showedNetPortsList,(function(t,i){return n("div",{key:i,staticClass:"list-content-wrap flex",class:{disabled:"ONVIF"===i&&(e.showedNetPortsList.RTSP.enable.support&&!e.showedNetPortsList.RTSP.enable.value),"has-warn-text":!e.isClient&&!["SURV"].includes(i)}},[n("div",{staticClass:"note-wrap warn-text-wrap flex"},[n("span",{staticClass:"tip-icon icon-client_warning"}),n("span",[e._v(e._s(e.$t("server_settings_change_tips")))])]),n("div",{staticClass:"flex"},[n("label",{staticClass:"flex name-wrap",class:{checked:t.enable.value,"low-level":"ONVIF"===i,"check-icon-hidden":!t.enable.support},attrs:{checkbox:""},on:{click:function(n){return n.stopPropagation(),e.preStatusSwitch(n,!!t.enable.value,t.enable.flag)}}},[n("span",{staticClass:"check-icon icon-client_check",attrs:{checkicon:""}}),n("div",{staticClass:"context-wrap"},[n("div",{staticClass:"text choose-clue",attrs:{title:t.name}},[e._v(e._s(t.name))]),n("div",{staticClass:"note-wrap"},[e._v(e._s(t.enable.note))])])]),n("div",{staticClass:"port-wrap"},[n("simpleInput",e._b({staticClass:"flex",attrs:{targetValue:t.port.value,flag:t.port.flag,forceError:t.port.forceError,disabled:"ONVIF"!==i?t.enable.support&&!t.enable.value:t.enable.support&&!t.enable.value||e.showedNetPortsList.RTSP.enable.support&&!e.showedNetPortsList.RTSP.enable.value,disabledPlaceholder:t.port.value},on:{inputChanged:e.inputChanged}},"simpleInput",e.inputParas,!1)),n("div",{staticClass:"note-wrap"},[e._v(e._s(t.port.note))])],1)])])}))],2),n("div",{staticClass:"btns-wrap"},[n("speedyBtn",{attrs:{"data-id":"port-setting-save-button"},on:{btnClick:e.save}})],1)])},Vi=[],Ui=u["a"].extend({name:"portSetting",components:{slideBtn:Ci["a"],simpleInput:_,speedyBtn:v["a"]},data:function(){return{ports:{bSurvEnable:!1,iSurvPort:0,bHttpEnable:!1,iHttpPort:0,bHttpsEnable:!1,iHttpsPort:0,bOnvifEnable:!1,iOnvifPort:0,bRtspPortEnable:!1,iRtspPort:0,bRtmpPortEnable:!1,iRtmpPort:0},forceErrorText:this.$t("remoteConfig_portSetting_forceErrorText"),inputParas:{regexp:"port",minLength:1},portCache:{},portsList:{bSurvEnable:{support:!1,value:!1,flag:"bSurvEnable"},iSurvPort:{support:!1,checked:!0,value:"0",flag:"iSurvPort",forceError:""},bHttpEnable:{support:!1,value:!1,flag:"bHttpEnable"},iHttpPort:{support:!1,checked:!0,value:"0",flag:"iHttpPort",forceError:""},bHttpsEnable:{support:!1,value:!1,flag:"bHttpsEnable"},iHttpsPort:{support:!1,checked:!0,flag:"iHttpsPort",value:"0",forceError:""},bRtspPortEnable:{support:!1,value:!1,flag:"bRtspPortEnable"},iRtspPort:{support:!1,checked:!0,value:"0",flag:"iRtspPort",forceError:""},bRtmpPortEnable:{support:!1,value:!1,flag:"bRtmpPortEnable"},iRtmpPort:{support:!1,checked:!0,flag:"iRtmpPort",value:"0",forceError:""},bOnvifEnable:{support:!1,flag:"bOnvifEnable",value:!1},iOnvifPort:{support:!1,checked:!0,flag:"iOnvifPort",value:"0",forceError:""}},device:{},isClient:y["a"].IS_CLIENT,formChecked:!1}},computed:{handle:function(){return this.$store.getters.deviceHandle},nestedDialogId:function(){return this.$store.getters.nestedDialogId},showedNetPortsList:function(){var e={SURV:{name:this.$t("common_server_title"),enable:Object(ct["a"])(Object(ct["a"])({},this.portsList.bSurvEnable),{},{note:this.$t("common_server_des",{s1:"Reolink",s2:"Reolink"})}),port:this.portsList.iSurvPort},RTMP:{name:this.$t("common_rtmp_title"),enable:Object(ct["a"])(Object(ct["a"])({},this.portsList.bRtmpPortEnable),{},{note:this.$t("common_rtmp_des")}),port:this.portsList.iRtmpPort},HTTP:{name:this.$t("common_http_title"),enable:Object(ct["a"])(Object(ct["a"])({},this.portsList.bHttpEnable),{},{note:this.$t("common_http_des")}),port:this.portsList.iHttpPort},HTTPS:{name:this.$t("common_https_title"),enable:Object(ct["a"])(Object(ct["a"])({},this.portsList.bHttpsEnable),{},{note:this.$t("common_https_des")}),port:this.portsList.iHttpsPort},RTSP:{name:this.$t("common_rtsp"),enable:Object(ct["a"])(Object(ct["a"])({},this.portsList.bRtspPortEnable),{},{note:this.$t("common_rtsp_des")}),port:this.portsList.iRtspPort},ONVIF:{name:this.$t("common_onvif"),enable:Object(ct["a"])(Object(ct["a"])({},this.portsList.bOnvifEnable),{},{note:this.$t("common_onvif_des")}),port:this.portsList.iOnvifPort}};for(var t in e)e[t].enable.support||e[t].port.support||Reflect.deleteProperty(e,t);return e}},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_DIALOG_LOADING",!0),n.next=3,B["a"].getDeviceWithHandle(e);case 3:return t.device=n.sent,n.next=6,t.init();case 6:t.$store.commit("HANDLE_DIALOG_LOADING",!1);case 7:case"end":return n.stop()}}),n)})))()},immediate:!0},ports:{handler:function(){var e;for(e in this.formChecked=!0,this.portsList){var t=this.portsList[e];if(void 0!==t.checked&&t.support)if(void 0!==t.forceError&&(t.forceError=""),t["checked"]){var n=void 0;for(n in this.portsList)if(e!==n){var i=this.portsList[n];if(void 0!==i.checked&&i.support&&i.value===t.value){this.formChecked=!1,t.forceError=this.forceErrorText;break}}}else this.formChecked=!1}},deep:!0}},methods:{init:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("HANDLE_DIALOG_LOADING",!0),t.prev=1,t.next=4,Promise.all([e.getSupport(),e.getPort()]);case 4:if(!e.portsList.bRtspPortEnable.support||e.portsList.bRtspPortEnable.value||!e.portsList.bOnvifEnable.support||!e.portsList.bOnvifEnable.value){t.next=8;break}return e.portsList.bOnvifEnable.value=e.ports.bOnvifEnable=!1,t.next=8,e.device.config.setNetPort(e.ports);case 8:t.next=15;break;case 10:t.prev=10,t.t0=t["catch"](1),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),e.$store.commit("SET_DIALOGID",""),C["a"].error("portSetting.vue > init: ",t.t0);case 15:e.$store.commit("HANDLE_DIALOG_LOADING",!1);case 16:case"end":return t.stop()}}),t,null,[[1,10]])})))()},preStatusSwitch:function(e,t,n){var i=this,a=t,r="";switch(n){case"bRtmpPortEnable":r=a?"":this.$t("common_rtmp_open_tips");break;case"bRtspPortEnable":r=a?"":this.$t("common_rtsp_open_tips");break;case"bOnvifEnable":r=a?"":this.$t("common_onvif_open_tips");break;case"bHttpEnable":r=a?this.portsList.bHttpsEnable.support&&!this.portsList.bHttpsEnable.value?this.$t("common_http_and_https_close_tips"):"":this.$t("common_http_open_tips");break;case"bHttpsEnable":r=a?this.portsList.bHttpEnable.support&&!this.portsList.bHttpEnable.value?this.$t("common_http_and_https_close_tips"):"":this.$t("common_https_open_tips",{s1:"Reolink"});break;default:break}this.portsList[n].support&&(r?(e.stopPropagation(),this.$store.commit("SET_IS_NESTED_DIALOG",!0),this.$store.commit("MODIFY_DIALOG_OPTIONS",{type:"message",icon:"icon-client_warning",message:r,defaultBtnValue:0,buttons:[{title:this.$t("common_dialog_cancel_button"),value:0,class:"ghost-button",key:27},{title:this.$t("common_dialog_ok_button"),value:1,key:13}]}),this.$store.commit("SET_NESTED_DIALOG_CALLBACK",(function(e){e&&i.statusSwitch(!a,n)})),this.$store.commit("SET_NESTED_DIALOGID","messageDialog")):this.statusSwitch(!a,n))},statusSwitch:function(e,t){this.portsList[t].value=e,"bRtspPortEnable"===t&&this.portsList.bOnvifEnable.support&&!e&&(this.portsList.bOnvifEnable.value=e)},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.device.supportMediaPort(),e.device.supportHttpPortEnable(),e.device.supportHttpPort(),e.device.supportHttpsPortEnable(),e.device.supportHttpsPort(),e.device.supportRTSPEnable(),e.device.supportRTSP(),e.device.supportRTMPEnable(),e.device.supportRTMP(),e.device.supportONVIFEnable(),e.device.supportONVIF()]);case 2:n=t.sent,i=Object(T["a"])(n,11),e.portsList.iSurvPort.support=i[0],e.portsList.bHttpEnable.support=i[1],e.portsList.iHttpPort.support=i[2],e.portsList.bHttpsEnable.support=i[3],e.portsList.iHttpsPort.support=i[4],e.portsList.bRtspPortEnable.support=i[5],e.portsList.iRtspPort.support=i[6],e.portsList.bRtmpPortEnable.support=i[7],e.portsList.iRtmpPort.support=i[8],e.portsList.bOnvifEnable.support=i[9],e.portsList.iOnvifPort.support=i[10];case 15:case"end":return t.stop()}}),t)})))()},getPort:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.device.config.getNetPort();case 2:e.ports=t.sent,e.portsList.iSurvPort.value=e.ports.iSurvPort.toString(),e.portsList.bHttpEnable.value=e.ports.bHttpEnable,e.portsList.iHttpPort.value=e.ports.iHttpPort.toString(),e.portsList.bHttpsEnable.value=e.ports.bHttpsEnable,e.portsList.iHttpsPort.value=e.ports.iHttpsPort.toString(),e.portsList.bRtmpPortEnable.value=e.ports.bRtmpPortEnable,e.portsList.iRtmpPort.value=e.ports.iRtmpPort.toString(),e.portsList.bRtspPortEnable.value=e.ports.bRtspPortEnable,e.portsList.iRtspPort.value=e.ports.iRtspPort.toString(),e.portsList.bOnvifEnable.value=e.ports.bOnvifEnable,e.portsList.iOnvifPort.value=e.ports.iOnvifPort.toString(),e.portCache=Object(ct["a"])({},e.ports);case 15:case"end":return t.stop()}}),t)})))()},save:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.nestedDialogId&&e.formChecked){t.next=2;break}return t.abrupt("return");case 2:e.ports.iSurvPort=~~e.portsList.iSurvPort.value,e.ports.bHttpEnable=!!e.portsList.bHttpEnable.value,e.ports.iHttpPort=~~e.portsList.iHttpPort.value,e.ports.bHttpsEnable=!!e.portsList.bHttpsEnable.value,e.ports.iHttpsPort=~~e.portsList.iHttpsPort.value,e.ports.bRtspPortEnable=!!e.portsList.bRtspPortEnable.value,e.ports.iRtspPort=~~e.portsList.iRtspPort.value,e.ports.bRtmpPortEnable=!!e.portsList.bRtmpPortEnable.value,e.ports.iRtmpPort=~~e.portsList.iRtmpPort.value,e.portsList.bRtspPortEnable.support&&!e.portsList.bRtspPortEnable.value&&e.portsList.bOnvifEnable.support&&e.portsList.bOnvifEnable.value&&(e.portsList.bOnvifEnable.value=e.ports.bOnvifEnable=!1),e.ports.bOnvifEnable=!!e.portsList.bOnvifEnable.value,e.ports.iOnvifPort=~~e.portsList.iOnvifPort.value,Li["a"].saveEffect(e.$store,e.ports,e.setPort);case 15:case"end":return t.stop()}}),t)})))()},setPort:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var i,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=!1,t.prev=1,y["a"].IS_CLIENT){t.next=16;break}a=80,r=window.location.protocol,i=n.portCache.iRtmpPort!==e.iRtmpPort||n.portCache.bRtmpPortEnable!==e.bRtmpPortEnable||n.portCache.bRtspPortEnable!==e.bRtspPortEnable||n.portCache.iRtspPort!==e.iRtspPort||n.portCache.bOnvifEnable!==e.bOnvifEnable||n.portCache.iOnvifPort!==e.iOnvifPort||n.portCache.bHttpEnable!==e.bHttpEnable||n.portCache.iHttpPort!==e.iHttpPort||n.portCache.bHttpsEnable!==e.bHttpsEnable||n.portCache.iHttpsPort!==e.iHttpsPort,t.t0=window.location.protocol,t.next="http:"===t.t0?9:(t.t0,12);break;case 9:return a=e.iHttpPort,!e.bHttpEnable&&e.bHttpsEnable&&(r="https:",a=e.iHttpsPort),t.abrupt("break",15);case 12:return a=e.iHttpsPort,e.bHttpEnable&&!e.bHttpsEnable&&(r="http:",a=e.iHttpPort),t.abrupt("break",15);case 15:i&&setTimeout((function(){window.location.href="".concat(r,"//").concat(window.location.hostname,":").concat(a)}),1e3);case 16:return t.next=18,n.device.config.setNetPort(e);case 18:n.portCache=Object(ct["a"])({},n.ports),t.next=26;break;case 21:if(t.prev=21,t.t1=t["catch"](1),C["a"].error("portSetting.vue > setPort: ",t.t1),i){t.next=26;break}throw t.t1;case 26:case"end":return t.stop()}}),t,null,[[1,21]])})))()},inputChanged:function(e,t,n){this.portsList[t]["checked"]=!n,this.portsList[t].value=e,this.ports[t]=e}}}),Hi=Ui,Gi=(n("6586"),Object(g["a"])(Hi,ji,Vi,!1,null,"56a323e2",null)),Wi=Gi.exports,zi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"networkSetting no-drag"},[n("h4",{staticClass:"title"},[e._v(e._s(e.$t("remoteConfig_netwrokSetting_title")))]),n("div",{staticClass:"network-access"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_netwrokSetting_networkAccess")))]),n("selectBox",e._b({staticClass:"select-box",attrs:{"data-id":"network-access-selectBox"},on:{selectChanged:e.networkAccessChanged}},"selectBox",e.networkAccessOptions,!1))],1),e._l(e.infrastructureObj,(function(t,i){return n("div",{key:i},[n("h5",{staticClass:"text"},[e._v(e._s(t.title))]),n("simpleInput",e._b({attrs:{"data-id":"network-infrastructure-simpleInput-"+i,targetValue:e.needCheckCollection[i],flag:i,triggerVerificationCount:e.triggerVerificationCount,disabled:e.isNetworkAccessAuto,disabledPlaceholder:e.autoNetworkAccess[i]},on:{inputChanged:e.inputChanged}},"simpleInput",t,!1)),"ipAddress"===i?[e.isClient?e._e():n("p",{staticClass:"restart-clue"},[e._v(e._s(e.$t("RELOGIN_TIPS")))]),e.isClient&&!e.loginDes.uid?n("p",{staticClass:"restart-clue"},[e._v(e._s(e.$t("TIP_IP_CHANGE_ADD_DEVICE")))]):e._e()]:e._e()],2)})),n("div",{staticClass:"dns-choice"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_DNS")))]),n("div",{staticClass:"option-wrap flex"},e._l(e.dnsChoice.options,(function(t,i){return n("label",{key:i,staticClass:"flex dns-label",attrs:{"data-id":"dnsChoice-label-"+i}},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.dnsChoice.currentVal,expression:"dnsChoice.currentVal",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"radio",name:"item.name","data-id":"dnsChoice-input-"+i},domProps:{value:t.value,checked:e._q(e.dnsChoice.currentVal,t.value)},on:{change:function(n){return e.$set(e.dnsChoice,"currentVal",t.value)}}}),n("span",{staticClass:"radio-icon",class:{checked:e.dnsChoice.currentVal===t.value}}),n("p",{staticClass:"text"},[e._v(e._s(t.name))])])})),0)]),e._l(e.dnsObj,(function(t,i){return n("div",{key:i},[n("h5",{staticClass:"text"},[e._v(e._s(t.title))]),n("simpleInput",e._b({attrs:{"data-id":"dnsObj-simpleInput-"+i,targetValue:e.needCheckCollection[i],flag:i,triggerVerificationCount:e.triggerVerificationCount,disabled:e.isDnsAuto,disabledPlaceholder:e.autoDns[i]},on:{inputChanged:e.inputChanged}},"simpleInput",t,!1))],1)})),n("div",{staticClass:"btns-wrap"},[n("speedyBtn",{attrs:{"data-id":"networkSetting-setNet-button"},on:{btnClick:e.proxySetNet}})],1)],2)},Yi=[],qi=u["a"].extend({name:"networkSetting",components:{selectBox:Xe["a"],simpleInput:_,speedyBtn:v["a"]},data:function(){return{triggerVerificationCount:0,autoNetworkAccess:{ipAddress:"",subnetMask:"",gateWay:""},autoDns:{preferredDns:"",alternateDns:""},needCheckCollection:{ipAddress:"",subnetMask:"",gateWay:"",preferredDns:"",alternateDns:""},networkAccessOptions:{currentVal:N["BC_IP_OBTAIN_E"].E_BC_NT_STATIC,options:[{value:N["BC_IP_OBTAIN_E"].E_BC_NT_DHCP,name:this.$t("common_DHCP")},{value:N["BC_IP_OBTAIN_E"].E_BC_NT_STATIC,name:this.$t("common_Static")}]},dnsChoice:{currentVal:N["BC_DNS_TYPE_E"].E_BC_DT_STATIC,options:[{value:N["BC_DNS_TYPE_E"].E_BC_DT_STATIC,name:this.$t("common_staticDNS")},{value:N["BC_DNS_TYPE_E"].E_BC_DT_AUTO,name:this.$t("common_autoDNS")}]},inputArr:{ipAddress:{title:this.$t("common_ipAddress"),regexp:"ip",minLength:1,checked:!0},subnetMask:{title:this.$t("common_subnetMask"),regexp:"mask",minLength:1,checked:!0},gateWay:{title:this.$t("common_gateWay"),regexp:"ip",minLength:1,checked:!0},preferredDns:{title:this.$t("common_preferredDNS"),regexp:"ip",minLength:1,checked:!0},alternateDns:{title:this.$t("common_alternateDNS"),regexp:"ip",hideBlankError:!0,checked:!0}},isClient:y["a"].IS_CLIENT}},computed:{network:function(){return this.$store.getters.network},loginDes:function(){return this.$store.getters.loginDes},setScheduleCallback:function(){return this.$store.getters.setScheduleCallback},isNetworkAccessAuto:function(){return this.networkAccessOptions.currentVal===N["BC_IP_OBTAIN_E"].E_BC_NT_DHCP},isDnsAuto:function(){return this.dnsChoice.currentVal===N["BC_DNS_TYPE_E"].E_BC_DT_AUTO},infrastructureObj:function(){return{ipAddress:this.inputArr.ipAddress,subnetMask:this.inputArr.subnetMask,gateWay:this.inputArr.gateWay}},dnsObj:function(){return{preferredDns:this.inputArr.preferredDns,alternateDns:this.inputArr.alternateDns}},formChecked:function(){var e=[];this.networkAccessOptions.currentVal===N["BC_IP_OBTAIN_E"].E_BC_NT_STATIC&&(e=["ipAddress","subnetMask","gateWay"]),this.dnsChoice.currentVal===N["BC_DNS_TYPE_E"].E_BC_DT_STATIC&&(e=["preferredDns","alternateDns"].concat(Object(r["a"])(e)));var t,n=Object(ne["a"])(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(("alternateDns"!==i||""!==this.needCheckCollection[i])&&!this.inputArr[i]["checked"])return!1}}catch(a){n.e(a)}finally{n.f()}return!0}},mounted:function(){this.networkAccessOptions.currentVal=this.network.eIpObtain,this.dnsChoice.currentVal=this.network.eAutodns,this.needCheckCollection={ipAddress:this.network.cIp,subnetMask:this.network.cMask,gateWay:this.network.cGateway,preferredDns:this.network.cDns1,alternateDns:this.network.cDns2},this.network.eIpObtain===N["BC_IP_OBTAIN_E"].E_BC_NT_DHCP&&(this.autoNetworkAccess={ipAddress:this.network.cIp,subnetMask:this.network.cMask,gateWay:this.network.cGateway}),this.network.eAutodns===N["BC_DNS_TYPE_E"].E_BC_DT_AUTO&&(this.autoDns={preferredDns:this.network.cDns1,alternateDns:this.network.cDns2})},methods:{proxySetNet:function(){var e=this;this.triggerVerificationCount++,this.$nextTick((function(){e.setNet()}))},setNet:function(){this.formChecked&&this.setScheduleCallback({eIpObtain:this.networkAccessOptions.currentVal,eAutodns:this.dnsChoice.currentVal,cIp:this.needCheckCollection.ipAddress,cMask:this.needCheckCollection.subnetMask,cGateway:this.needCheckCollection.gateWay,cMac:this.network.cMac,cDns1:this.needCheckCollection.preferredDns,cDns2:this.needCheckCollection.alternateDns})},networkAccessChanged:function(e){this.$set(this.networkAccessOptions,"currentVal",e)},inputChanged:function(e,t,n){this.inputArr[t]["checked"]=!n,this.needCheckCollection[t]=e}}}),$i=qi,Ki=(n("a51d"),Object(g["a"])($i,zi,Yi,!1,null,null,null)),Zi=Ki.exports,Ji=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wifi-setting"},[n("div",{staticClass:"top-bar flex"},[n("div",{staticClass:"cell-inner",attrs:{"data-id":"getWifiList-span"},on:{click:function(t){return t.stopPropagation(),e.refreshWifiInfo(t)}}},[n("span",{staticClass:"btn-icon icon-client_refresh_pro"})]),n("div",{staticClass:"cell-inner close-box",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}},[n("span",{staticClass:"btn-icon icon-client_cancel"})])]),n("h4",{staticClass:"title"},[e._v(e._s(e.$t("common_wifiSettings")))]),e.wiFiFreqPolicy.support?n("div",{staticClass:"wifi-box"},[n("div",{staticClass:"wifi-info flex-between"},[n("div",[n("div",[e._v(e._s(e.$t("wifi_channel_prefer_title")))]),n("div",{staticClass:"notes-text"},[e._v(e._s(e.$t("which_channel_of_the_same_wifi")))])]),n("selectBox",e._b({staticClass:"select-box",on:{selectChanged:e.wiFiFreqPolicySelect}},"selectBox",e.wiFiFreqPolicy,!1))],1)]):e._e(),n("h6",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_wifiSetting_current")))]),e.currentConnect.ssid?n("div",{staticClass:"wifi-box",attrs:{"data-id":"wifi-connected-div"}},[n("div",{staticClass:"wifi-info flex-between"},[n("div",{staticClass:"wifi-base_info flex"},[n("span",{staticClass:"wifi-name"},[e._v(e._s(e.currentConnect.ssid))]),n("span",{staticClass:"wifi-type",class:e.getWifiTypeIcon(e.currentConnect.type)})]),n("div",{staticClass:"wifi-clue flex",attrs:{"data-id":"wifi-clue"}},[n("span",{directives:[{name:"show",rawName:"v-show",value:!1===e.currentConnect.supportEncrypt||!0===e.currentConnect.isEncrypt,expression:"currentConnect.supportEncrypt === false ||currentConnect.isEncrypt === true"}],staticClass:"icon-client_lock",attrs:{"data-id":"wifi-connected-isEncrypt-lock"}}),n("div",{staticClass:"wifi-signal-wrap"},[n("span",{staticClass:"bg-signal",class:e.getIconWifiSignalBgClassName(e.currentConnect.protocol)}),n("span",{staticClass:"fore-signal",class:e.getIconWifiSignalClassName(e.currentConnect.protocol,e.currentConnect.signalStrength),attrs:{"data-id":"wifi-connected-signalStrength-span","data-value":e.currentConnect.signalStrength}})])])])]):n("div",{staticClass:"wifi-unconnected flex",attrs:{"data-id":"wifi-unconnected-div"}},[n("span",{staticClass:"subtitle"},[e._v(e._s(e.$t("remoteConfig_wifiSetting_notConnected")))])]),n("h6",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_wifiSetting_wirelessNetwork")))]),n("ul",{staticClass:"wifi-list",class:{short:e.showManualInput}},e._l(e.wifiList,(function(t,i){return n("li",{directives:[{name:"show",rawName:"v-show",value:t.ssid!==e.currentConnect.ssid,expression:"item.ssid!==currentConnect.ssid"}],key:i,staticClass:"wifi-box expandable",attrs:{"data-id":"wifi-item-li","data-value":t.ssid}},[n("div",{staticClass:"wifi-info flex-between",attrs:{"data-id":"wifi-select-div"},on:{click:function(t){return e.wifiSelect(i)}}},[n("div",{staticClass:"wifi-base_info flex"},[n("span",{staticClass:"wifi-name"},[e._v(e._s(t.ssid))]),n("span",{staticClass:"wifi-type",class:e.getWifiTypeIcon(t.type)})]),n("div",{staticClass:"wifi-clue flex"},[n("span",{directives:[{name:"show",rawName:"v-show",value:!1===t.supportEncrypt||!0===t.isEncrypt,expression:"item.supportEncrypt === false||item.isEncrypt === true"}],staticClass:"icon-client_lock",attrs:{"data-id":"wifi-item-isEncrypt-lock"}}),n("div",{staticClass:"wifi-signal-wrap"},[n("span",{staticClass:"bg-signal",class:e.getIconWifiSignalBgClassName(t.protocol)}),n("span",{staticClass:"fore-signal",class:e.getIconWifiSignalClassName(t.protocol,t.signalStrength),attrs:{"data-id":"wifi-item-signalStrength-span","data-value":t.signalStrength}})])])]),t.supportEncrypt&&!t.isEncrypt||i!==e.currentInputIndex?e._e():n("div",{staticClass:"connect-box",attrs:{"data-id":"wifi-item-connect-box"}},[n("simpleInput",{attrs:{"data-id":"connect-box-simpleInput",targetValue:e.wifiList[i].password,flag:i.toString(),isPassword:!0,maxLength:63,minLength:8,hideBlankError:!0,autoRemoveFirstOrLastSpace:!1,showFirstOrLastSpaceLimit:!1,checked:e.wifiListPasswordChecked[i],autoFocus:!0,placeholder:e.$t("enter_wifi_pw_hint")},on:{inputEnter:function(t){return e.connectWifi(i)},inputChanged:e.wifiListPasswordInputChanged}}),n("speedyBtn",{attrs:{btnText:e.$t("common_Connect"),"data-id":"connect-box-button"},on:{btnClick:function(t){return e.connectWifi(i)}}})],1)])})),0),n("div",{staticClass:"wifi-box manual-box expandable"},[n("div",{staticClass:"wifi-info flex",attrs:{"data-id":"toggle-manual"},on:{click:function(t){e.currentInputSsid="",e.currentInputIndex=-1,e.showManualInput=!e.showManualInput}}},[n("span",{staticClass:"icon-client_eith eith-icon"}),n("span",[e._v(e._s(e.$t("remoteConfig_wifiSetting_manualInput")))])]),e.showManualInput&&!e.currentInputSsid&&-1===e.currentInputIndex?n("div",{staticClass:"connect-box",attrs:{"data-id":"manual-connect-box"}},[n("simpleInput",e._b({attrs:{"data-id":"manual-connect-simpleInput-ssid",targetValue:e.manual.ssid,flag:"ssid",autoFocus:!0,placeholder:e.$t("common_view_wifi_placeholder")},on:{inputChanged:e.manualInputChanged}},"simpleInput",e.manualInputArr.ssid,!1)),n("simpleInput",e._b({attrs:{"data-id":"manual-connect-simpleInput-password",targetValue:e.manual.password,flag:"password",placeholder:e.$t("enter_wifi_pw_hint")},on:{inputEnter:e.proxyManualConnectWifi,inputChanged:e.manualInputChanged}},"simpleInput",e.manualInputArr.password,!1)),n("speedyBtn",{attrs:{btnText:e.$t("common_Connect"),"data-id":"manual-connect-button"},on:{btnClick:e.proxyManualConnectWifi}})],1):e._e()])])},Qi=[],Xi=u["a"].extend({name:"wifiSetting",components:{selectBox:Xe["a"],simpleInput:_,loadingImg:d["a"],speedyBtn:v["a"]},data:function(){return{wifi:{},currentConnect:{ssid:"",type:N["BC_WIFI_TYPE_E"].BC_WIFI_TYPE_UNKNOW,protocol:N["BC_WIFI_PROTOCOL"].BC_WIFI_PROTOCOL_UNKNOW,password:"",isEncrypt:!1,signalStrength:3},currentInputSsid:"",currentInputIndex:-1,wifiList:[{ssid:"",type:N["BC_WIFI_TYPE_E"].BC_WIFI_TYPE_UNKNOW,protocol:N["BC_WIFI_PROTOCOL"].BC_WIFI_PROTOCOL_UNKNOW,password:"",supportEncrypt:!1,isEncrypt:!1,signalStrength:0}],wifiListPasswordChecked:[],manualInputArr:{ssid:{checked:!0,maxLength:31,minLength:1,autoRemoveFirstOrLastSpace:!1,showFirstOrLastSpaceLimit:!1,triggerVerificationCount:0},password:{maxLength:63,minLength:8,hideBlankError:!0,autoRemoveFirstOrLastSpace:!1,showFirstOrLastSpaceLimit:!1,checked:!0,isPassword:!0}},showManualInput:!1,manual:{ssid:"",password:""},supportWiFiTest:!1,wiFiFreqPolicy:{support:!1,currentVal:te["EWiFiFreqPolicy"].PREFERRED_5G,options:[{value:te["EWiFiFreqPolicy"].PREFERRED_5G,name:this.$t("common_view_auto")},{value:te["EWiFiFreqPolicy"].ONLY_2_4G,name:this.$t("common_only_2_4g_wifi")},{value:te["EWiFiFreqPolicy"].ONLY_5G,name:this.$t("common_only_5g_wifi")}]},device:{},wifiTypes:[{mode:N["BC_WIFI_TYPE_E"].BC_WIFI_TYPE_2_4G,icon:"icon-wifi_24g"},{mode:N["BC_WIFI_TYPE_E"].BC_WIFI_TYPE_5G,icon:"icon-wifi_5g"}]}},computed:{handle:function(){return this.$store.getters.deviceHandle},refreshWifi:function(){return this.$store.getters.setScheduleCallback}},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_DIALOG_LOADING",!0),n.next=3,B["a"].getDeviceWithHandle(e);case 3:return t.device=n.sent,n.next=6,t.init();case 6:t.$store.commit("HANDLE_DIALOG_LOADING",!1);case 7:case"end":return n.stop()}}),n)})))()},immediate:!0}},methods:{closeDialog:function(){this.$store.commit("SET_DIALOGID","")},init:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("HANDLE_DIALOG_LOADING",!0),t.prev=1,t.next=4,Promise.all([e.getSupport(),e.getWifi(!1)]);case 4:return t.next=6,e.getWifiList(!1);case 6:t.next=13;break;case 8:t.prev=8,t.t0=t["catch"](1),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),e.$store.commit("SET_DIALOGID",""),C["a"].error("wifiSetting.vue > init: ",t.t0);case 13:e.$store.commit("HANDLE_DIALOG_LOADING",!1);case 14:case"end":return t.stop()}}),t,null,[[1,8]])})))()},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.device.supportWiFiTest(),e.device.supportWiFiFreqPolicy()]);case 3:n=t.sent,i=Object(T["a"])(n,2),e.supportWiFiTest=i[0],e.wiFiFreqPolicy.support=i[1],t.next=14;break;case 10:throw t.prev=10,t.t0=t["catch"](0),C["a"].error("wifiSetting.vue > getSupport > supportWiFiTest: ",t.t0),new Error;case 14:case"end":return t.stop()}}),t,null,[[0,10]])})))()},refreshWifiInfo:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("HANDLE_LOADING",!0),t.prev=1,t.next=4,e.getWifi(!0);case 4:return t.next=6,e.getWifiList(!1);case 6:t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](1),C["a"].error("wifiSetting.vue > refreshWifiInfo: ",t.t0);case 11:e.$store.commit("HANDLE_LOADING",!1);case 12:case"end":return t.stop()}}),t,null,[[1,8]])})))()},getWifi:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.device.config.getWifiCfg();case 3:t.wifi=n.sent,t.wifiUpdate(e),n.next=12;break;case 8:throw n.prev=8,n.t0=n["catch"](0),C["a"].error("wifiSetting.vue > getWifi cfg: ",n.t0),new Error;case 12:case"end":return n.stop()}}),n,null,[[0,8]])})))()},wifiUpdate:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.currentConnect.supportEncrypt;this.currentConnect={ssid:this.wifi.essid,password:this.wifi.key,type:this.wifi.eType,protocol:this.wifi.protocol,isEncrypt:this.wifi.enccrypttype!==N["BC_WIFI_ENCRYPT_TYPE_E"].E_BC_WIFI_ENCRYPT_NONE,signalStrength:3},e&&void 0!==t&&(this.currentConnect.supportEncrypt=t),this.wiFiFreqPolicy.currentVal=this.wifi.freqPolicy},setWifi:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){var a;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n.$store.commit("HANDLE_LOADING",!0),a=JSON.parse(JSON.stringify(n.wifi)),i.prev=2,n.wifi.essid=n.currentConnect.ssid,n.currentConnect.password?n.wifi.key=n.currentConnect.password:n.wifi.key="",i.next=7,n.getWifiSignal();case 7:if(i.t1=i.sent,i.t0=100===i.t1,!i.t0){i.next=11;break}i.t0=n.supportWiFiTest;case 11:if(!i.t0){i.next=14;break}return i.next=14,n.device.config.WifiTest(n.wifi);case 14:return i.next=16,n.device.config.setWifiCfg(n.wifi);case 16:n.refreshWifi(),n.$store.commit("HANDLE_PROMPT",R["PromptStatus"].succeed),i.next=26;break;case 21:i.prev=21,i.t2=i["catch"](2),t||(n.wifi=a,n.currentConnect=e,n.wifiUpdate()),n.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),C["a"].error("wifiSetting.vue > setWifi cfg: ",i.t2);case 26:n.$store.commit("HANDLE_LOADING",!1);case 27:case"end":return i.stop()}}),i,null,[[2,21]])})))()},setWifiFreqPolicy:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_LOADING",!0),n.prev=1,n.next=4,t.device.config.setWifiCfg(t.wifi);case 4:n.next=12;break;case 6:n.prev=6,n.t0=n["catch"](1),t.wifi=e,t.wifiUpdate(),t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),C["a"].error("wifiSetting.vue > setWifiFreqPolicy > setWifiCfg: ",n.t0);case 12:t.$store.commit("HANDLE_LOADING",!1);case 13:case"end":return n.stop()}}),n,null,[[1,6]])})))()},wiFiFreqPolicySelect:function(e){var t=this,n=this.$data["wiFiFreqPolicy"];Li["a"].changingEffect(n,(function(){t.wifi.freqPolicy=n.currentVal=e}),this.setWifiFreqPolicy,Object(l["g"])(this.wifi))},getWifiSignal:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.device.config.getWifiSignal();case 2:return n=t.sent,t.abrupt("return",n.iSignal);case 4:case"end":return t.stop()}}),t)})))()},getWifiList:function(){var e=arguments,t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a,r,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=!(e.length>0&&void 0!==e[0])||e[0],n.prev=1,!i){n.next=8;break}return n.next=5,t.device.config.getWifiCfg();case 5:a=n.sent,n.next=9;break;case 8:a=Object(l["g"])(t.wifi);case 9:for(t.wifiList=[],t.wifiListPasswordChecked=[],r=0;r getWifiList > getWifiCfg: ",n.t0),new Error;case 18:case"end":return n.stop()}}),n,null,[[1,14]])})))()},wifiSelect:function(e){this.wifiList[e].supportEncrypt&&!this.wifiList[e].isEncrypt?this.connectWifi(e):(this.currentInputSsid=this.currentInputSsid===this.wifiList[e].ssid?"":this.wifiList[e].ssid,this.currentInputIndex=this.currentInputIndex===e?-1:e,this.showManualInput=!1)},connectWifi:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!t.wifiList[e].password||!1!==t.wifiListPasswordChecked[e]){n.next=2;break}return n.abrupt("return");case 2:i=JSON.parse(JSON.stringify(t.currentConnect)),t.currentInputSsid="",t.currentInputIndex=-1,t.currentConnect=Object(ct["a"])({},t.wifiList[e]),t.setWifi(i);case 7:case"end":return n.stop()}}),n)})))()},calcSignalStrength:function(e){var t=3;return e<-70?t=0:e<-50?t=1:e<-40&&(t=2),t},proxyManualConnectWifi:function(){var e=this;this.manualInputArr.ssid.triggerVerificationCount++,this.$nextTick((function(){e.manualConnectWifi()}))},manualConnectWifi:function(){if(this.manualInputArr.ssid.checked&&(!this.manual.password||this.manualInputArr.password.checked)){var e=JSON.parse(JSON.stringify(this.currentConnect));this.showManualInput=!1,this.currentConnect={ssid:this.manual.ssid,type:N["BC_WIFI_TYPE_E"].BC_WIFI_TYPE_UNKNOW,protocol:N["BC_WIFI_PROTOCOL"].BC_WIFI_PROTOCOL_UNKNOW,password:this.manual.password,signalStrength:3},this.setWifi(e)}},wifiListPasswordInputChanged:function(e,t,n){var i=parseInt(t,10);this.wifiListPasswordChecked[i]=!n,this.$set(this.wifiList[i],"password",e)},manualInputChanged:function(e,t,n){this.manualInputArr[t]["checked"]=!n,this.$set(this.manual,t,e)},getIconWifiSignalBgClassName:function(e){return e===N["BC_WIFI_PROTOCOL"].BC_WIFI_PROTOCOL_WIFI6?"icon-client_wifi6_3":"icon-client_wifi_3"},getIconWifiSignalClassName:function(e,t){var n=["icon-client_wifi_0","icon-client_wifi_1","icon-client_wifi_2","icon-client_wifi_3"];return e===N["BC_WIFI_PROTOCOL"].BC_WIFI_PROTOCOL_WIFI6&&(n=n.map((function(e){return e.replace("icon-client_wifi","icon-client_wifi6")}))),n[t]},getWifiTypeIcon:function(e){var t,n="",i=Object(ne["a"])(this.wifiTypes);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(e===a.mode){n=a.icon;break}}}catch(r){i.e(r)}finally{i.f()}return n}}}),ea=Xi,ta=(n("4d7f"),Object(g["a"])(ea,Ji,Qi,!1,null,null,null)),na=ta.exports,ia=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"wifinvr-setting"},[i("h4",{staticClass:"title"},[e._v(e._s(e.$t("common_wifiSettings")))]),i("div",{staticClass:"content-title flex-between small-title"},[i("div",{staticClass:"content-title-item flex"},[i("img",{attrs:{src:n("ef51")}}),i("span",[e._v(e._s(e.$t("remoteConfig_wifiNvrSetting_netPort")))])]),e.supportQrcode?i("div",{staticClass:"content-title-item flex"},[i("img",{attrs:{src:n("1ef5")}}),i("span",[e._v(e._s(e.$t("remoteConfig_wifiNvrSetting_noNetPort")))])]):e._e()]),i("div",{staticClass:"content-text flex-between"},[i("div",{staticClass:"content-text-item"},[i("p",[e._v(e._s(e.$t("device_init_setup_wizard_synchronize_settings_help_step_1")))]),i("img",{attrs:{src:n("9c0e")}}),i("p",[e._v(e._s(e.$t("remoteConfig_wifiNvrSetting_clue2")))]),i("img",{attrs:{src:n("9e7a")}}),i("p",[e._v(e._s(e.$t("remoteConfig_wifiNvrSetting_clue3")))])]),e.supportQrcode?i("div",{staticClass:"content-text-item"},[i("p",{staticClass:"steps-one"},[e._v(e._s(e.$t("remoteConfig_wifiNvrSetting_clue4")))]),i("p",[e._v(e._s(e.$t("device_init_setup_wizard_synchronize_settings_help_step_5")))]),i("img",{staticClass:"img-scan-qrcode",attrs:{src:n("5c7d")}}),i("canvas",{ref:"qrcode",staticClass:"qrcode"})]):e._e()])])},aa=[],ra=n("d055"),sa=n.n(ra),oa=n("d113b"),ca=u["a"].extend({name:"wifiNvrSetting",data:function(){return{wifi:{},supportQrcode:!0,device:{}}},computed:{handle:function(){return this.$store.getters.deviceHandle}},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_DIALOG_LOADING",!0),n.next=3,B["a"].getDeviceWithHandle(e);case 3:return t.device=n.sent,n.next=6,t.init();case 6:t.$store.commit("HANDLE_DIALOG_LOADING",!1);case 7:case"end":return n.stop()}}),n)})))()},immediate:!0}},methods:{init:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("HANDLE_DIALOG_LOADING",!0),t.next=3,Promise.all([e.device.supportShowQrcode(),e.device.config.getWifiCfg()]);case 3:n=t.sent,i=Object(T["a"])(n,2),e.supportQrcode=i[0],e.wifi=i[1],e.supportQrcode&&e.showQrcode(),e.$store.commit("HANDLE_DIALOG_LOADING",!1);case 9:case"end":return t.stop()}}),t)})))()},showQrcode:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n="",t.prev=1,t.next=4,oa["a"].getLocaleCountryCode();case 4:n=t.sent,y["a"].USE_ACCOUNT_LOGIN&&(n="CN"),t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](1),C["a"].error("wifiNvrSetting.vue > showQrcode > getLocaleCountryCode: ",ce["a"].errorToJson(t.t0));case 11:i="\n ".concat(Object(l["l"])(e.wifi.essid),"\n

").concat(Object(l["l"])(e.wifi.key),"

\n ").concat(Object(l["l"])(n),"\n
"),C["a"].debug("***************wifiNvrSetting.vue > showQrcode > getLocaleCountryCode: ",i),a=e.$refs.qrcode,sa.a.toCanvas(a,i,{width:204});case 15:case"end":return t.stop()}}),t,null,[[1,8]])})))()}}}),ua=ca,la=(n("a36b"),Object(g["a"])(ua,ia,aa,!1,null,null,null)),da=la.exports,pa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"https-setting-wrap"},[n("h4",{staticClass:"small-title"},[e._v(e._s(e.$t("port_setting_https_settings_title")))]),n("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("https_settings_subtitle")))]),n("h5",{staticClass:"text"},[e._v(e._s(e.$t("certificate_title")))]),n("div",{staticClass:"file-box flex"},[n("input",{staticClass:"file-path",attrs:{"reo-element":"",type:"text",readonly:"",title:e.crtFile.fileBlob.name},domProps:{value:e.crtFile.fileBlob.name}}),e.showFileInput?n("inputFile",{attrs:{acceptFilesSuffix:e.crtAcceptFilesSuffix,infoText:e.$t("common_Browse")},on:{fileChanged:e.crtFileChanged}}):e._e()],1),n("span",{staticClass:"text"},[e._v(e._s(e.certificateInfo.crtName))]),n("h5",{staticClass:"text"},[e._v(e._s(e.$t("keyfile_title")))]),n("div",{staticClass:"file-box flex"},[n("input",{staticClass:"file-path",attrs:{"reo-element":"",type:"text",readonly:"",title:e.keyFile.fileBlob.name},domProps:{value:e.keyFile.fileBlob.name}}),e.showFileInput?n("inputFile",{attrs:{acceptFilesSuffix:e.keyAcceptFilesSuffix,infoText:e.$t("common_Browse")},on:{fileChanged:e.keyFileChanged}}):e._e()],1),n("span",{staticClass:"text"},[e._v(e._s(e.certificateInfo.keyName))]),n("div",{staticClass:"btns-wrap flex"},[n("button",{staticClass:"ghost-button",attrs:{"reo-element":"",disabled:!e.certificateInfo.enable},on:{click:e.clear}},[e._v(e._s(e.$t("common_dialog_clear_button")))]),n("button",{attrs:{"reo-element":"",disabled:!e.crtFile.filePath||!e.keyFile.filePath||!!e.certificateInfo.enable},on:{click:e.upload}},[e._v(e._s(e.$t("common_dialog_save_button")))])])])},ha=[],ma=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"gray-button"},[e._v(" "+e._s(e.infoText)+" "),n("input",{ref:"inputFileForWebApp",staticStyle:{display:"none"},attrs:{"reo-element":"",type:"file",accept:e.acceptFileString,multiple:e.multiple},on:{change:e.fileChanged}})])},ga=[],fa=(n("466d"),u["a"].extend({props:{acceptFilesSuffix:{type:Array,default:function(){return[]}},multiple:{type:Boolean,default:!1},infoText:{type:String,default:""},flag:{type:String,default:""}},computed:{acceptFileString:function(){if(!this.acceptFilesSuffix.length)return"";for(var e="",t=0;t0&&!t.includes(n.name.match(/(?=.)[^\.]+$/)[0]))return null;if(!n.path){var i=window.URL||window.webkitURL;n.path=i.createObjectURL(n)}return n},fileChanged:function(){var e=this.getFile(this.$refs.inputFileForWebApp,this.acceptFilesSuffix);e&&this.$emit("fileChanged",e,this.flag)}}})),_a=fa,va=(n("fd78"),Object(g["a"])(_a,ma,ga,!1,null,"3f3a649b",null)),ba=va.exports,wa=n("bf97"),Ca=u["a"].extend({components:{inputFile:ba},data:function(){return{isClient:y["a"].IS_CLIENT,crtAcceptFilesSuffix:["crt"],keyAcceptFilesSuffix:["key"],crtFile:{fileBlob:{path:"",name:""},filePath:""},keyFile:{fileBlob:{path:"",name:""},filePath:""},showFileInput:!0,device:{},certificateInfo:{enable:0,crtName:"",keyName:""}}},computed:{handle:function(){return this.$store.getters.deviceHandle}},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_DIALOG_LOADING",!0),n.prev=1,n.next=4,wa["a"].getDeviceWithHandle(e);case 4:return t.device=n.sent,n.next=7,t.device.config.getCertificateInfo();case 7:t.certificateInfo=n.sent,n.next=14;break;case 10:n.prev=10,n.t0=n["catch"](1),t.$store.commit("SET_DIALOGID",""),C["a"].error("httpsSetting.vue > handler > ipcDeviceManager.getDeviceWithHandle: ",n.t0);case 14:t.$store.commit("HANDLE_DIALOG_LOADING",!1);case 15:case"end":return n.stop()}}),n,null,[[1,10]])})))()},immediate:!0}},methods:{crtFileChanged:function(e){this.crtFile.filePath=e?e.path:"",this.crtFile.fileBlob=e},keyFileChanged:function(e){this.keyFile.filePath=e?e.path:"",this.keyFile.fileBlob=e},clear:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("HANDLE_LOADING",!0),Object(l["d"])(),t.prev=2,e.showFileInput=!1,e.$nextTick((function(){e.showFileInput=!0})),t.next=7,e.device.config.clearCertificate();case 7:e.certificateInfo={enable:0,crtName:"",keyName:""},e.crtFile={fileBlob:{path:"",name:""},filePath:""},e.keyFile={fileBlob:{path:"",name:""},filePath:""},t.next=20;break;case 12:if(t.prev=12,t.t0=t["catch"](2),C["a"].error("httpsSetting.vue > clear > clearCertificate: ",t.t0),!e.isClient&&-4!==t.t0.code){t.next=20;break}return e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),e.$store.commit("HANDLE_LOADING",!1),Object(l["v"])(),t.abrupt("return");case 20:e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].succeed),e.isClient?(e.$store.commit("HANDLE_LOADING",!1),Object(l["v"])()):setTimeout((function(){e.$store.commit("HANDLE_LOADING",!1);var t=window.location.port;t=t?":"+t:"",window.location.href="https://".concat(window.location.hostname).concat(t)}),1e3);case 22:case"end":return t.stop()}}),t,null,[[2,12]])})))()},changeBlobToBase64:function(e){return new Promise((function(t){var n=new FileReader;n.onload=function(){var e=n.result;t(e.split("base64,")[1])},n.readAsDataURL(e)}))},upload:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("HANDLE_LOADING",!0),Object(l["d"])(),t.prev=2,t.t0=e.crtFile.fileBlob.size,t.t1=e.crtFile.fileBlob.name,t.next=7,e.changeBlobToBase64(e.crtFile.fileBlob);case 7:return t.t2=t.sent,t.t3={size:t.t0,name:t.t1,content:t.t2},t.t4=e.keyFile.fileBlob.size,t.t5=e.keyFile.fileBlob.name,t.next=13,e.changeBlobToBase64(e.keyFile.fileBlob);case 13:return t.t6=t.sent,t.t7={size:t.t4,name:t.t5,content:t.t6},n={crt:t.t3,key:t.t7},t.next=18,e.device.config.importCertificate(n);case 18:e.certificateInfo={enable:1,crtName:e.crtFile.fileBlob.name,keyName:e.keyFile.fileBlob.name},t.next=29;break;case 21:if(t.prev=21,t.t8=t["catch"](2),C["a"].error("httpsSetting.vue > upload > importCertificate: ",t.t8),!e.isClient&&-4!==t.t8.code){t.next=29;break}return e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),e.$store.commit("HANDLE_LOADING",!1),Object(l["v"])(),t.abrupt("return");case 29:e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].succeed),e.isClient?(e.$store.commit("HANDLE_LOADING",!1),Object(l["v"])()):setTimeout((function(){e.$store.commit("HANDLE_LOADING",!1),Object(l["v"])();var t=window.location.port;t=t?":"+t:"",window.location.href="https://".concat(window.location.hostname).concat(t)}),1e3);case 31:case"end":return t.stop()}}),t,null,[[2,21]])})))()}}}),ya=Ca,Sa=(n("4d36"),Object(g["a"])(ya,pa,ha,!1,null,"551a4bee",null)),ka=Sa.exports,Aa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"add-user no-drag"},[n("h4",{staticClass:"title"},[e._v(e._s(e.$t("common_AddUser")))]),n("p",{staticClass:"notes-text"},[e._v(e._s(e.$t("remoteConfig_addUser_subTitle")))]),n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_addUser_userType")))]),e._l(e.userTypeChoice,(function(t,i){return n("label",{key:i,staticClass:"flex radio-label"},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.userData.userType,expression:"userData.userType",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"radio",name:"userTypeChoice"},domProps:{value:i,checked:e._q(e.userData.userType,i)},on:{change:function(t){return e.$set(e.userData,"userType",i)}}}),n("span",{staticClass:"radio-icon",class:{checked:e.userData.userType===i}}),n("div",{staticClass:"type-info"},[n("p",{staticClass:"button-text"},[e._v(e._s(t?t.name:""))]),n("p",{staticClass:"notes-text"},[e._v(e._s(t?t.des:""))])])])})),e._l(e.sourceInputArr,(function(t,i){return n("div",{key:i},[n("h5",{staticClass:"text"},[e._v(e._s(t.title))]),n("simpleInput",e._b({attrs:{targetValue:e.userData[i],triggerVerificationCount:e.triggerVerificationCount,flag:i},on:{inputBlur:e.inputBlur,inputChanged:e.inputChanged}},"simpleInput",t,!1))],1)})),n("div",{staticClass:"btns-wrap"},[n("speedyBtn",{on:{btnClick:e.proxySave}})],1)],2)},Ea=[],xa=u["a"].extend({name:"addUser",components:{simpleInput:_,speedyBtn:v["a"]},data:function(){return{triggerVerificationCount:0,userData:{userType:"common",username:"",password:"",confirmPassword:""},userLevel:0,sourceInputArr:{username:{title:this.$t("common_username_description"),regexp:"nickname",minLength:1,maxLength:31,disallowConsecutiveSpaces:!0,forceError:"",checked:!0},password:{title:"".concat(this.$t("common_password_password_description")),regexp:"password",minLength:6,maxLength:31,autoRemoveFirstOrLastSpace:!1,disallowConsecutiveSpaces:!0,checked:!0,openStrength:!0,isPassword:!0},confirmPassword:{title:"".concat(this.$t("common_password_confirm_password_description")),checked:!0,regexp:"password",minLength:6,maxLength:31,autoRemoveFirstOrLastSpace:!1,disallowConsecutiveSpaces:!0,isPassword:!0,forceError:""}}}},computed:{userArr:function(){return this.$store.getters.userArr},userNameArr:function(){var e=this.userArr.user.map((function(e){return e.cUserName})),t=[];return e.forEach((function(e){""!==e&&t.push(e)})),t},userTypeChoice:function(){for(var e={common:{name:this.$t("common_User"),des:this.$t("remoteConfig_addUser_commonDes")}},t=0;t handler > getDeviceWithHandle: ",n.t0);case 12:t.$store.commit("HANDLE_DIALOG_LOADING",!1);case 13:case"end":return n.stop()}}),n,null,[[1,7]])})))()},immediate:!0},showPasswordWarn:{handler:function(e,t){e&&!t&&this.$set(this.sourceInputArr.oldPassword,"forceError",this.$t("common_incorrectPassword"))}}},methods:{inputBlur:function(e){switch(e){case"oldPassword":this.$set(this.sourceInputArr.oldPassword,"forceError","");break;case"confirmPassword":this.$set(this.sourceInputArr.confirmPassword,"forceError","");break;default:break}},inputChanged:function(e,t,n){this.sourceInputArr[t]["checked"]=!n,this.userData[t]=e},proxySave:function(){var e=this;this.triggerVerificationCount++,this.$nextTick((function(){e.save()}))},save:function(){if(this.sourceInputArr.confirmPassword.checked&&this.userData.password!==this.userData.confirmPassword)this.$set(this.sourceInputArr.confirmPassword,"forceError",this.$t("common_passwordsNotMatch"));else if(this.formChecked){var e=Object.assign({},this.user,{cPassword:w["a"].transform(this.userData.password),cOldPassword:w["a"].transform(this.userData.oldPassword),iUserSetState:3});this.setScheduleCallback(e)}}}}),La=Pa,Ma=Object(g["a"])(La,Ta,Ra,!1,null,null,null),Na=Ma.exports,Ba=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"edit-user"},[n("h4",{staticClass:"title"},[e._v(e._s(e.$t("common_changePassword")))]),e._l(e.sourceInputArr,(function(t,i){return n("div",{key:i},[n("h5",{staticClass:"text"},[e._v(e._s(t.title))]),n("simpleInput",e._b({attrs:{targetValue:e.userData[i],flag:i,triggerVerificationCount:e.triggerVerificationCount},on:{inputBlur:e.inputBlur,inputChanged:e.inputChanged}},"simpleInput",t,!1))],1)})),n("div",{staticClass:"btns-wrap"},[n("speedyBtn",{on:{btnClick:e.proxySave}})],1)],2)},Fa=[],ja=u["a"].extend({name:"editUser",components:{simpleInput:_,speedyBtn:v["a"]},data:function(){return{triggerVerificationCount:0,userData:{password:"",confirmPassword:""},sourceInputArr:{password:{title:"".concat(this.$t("common_password_password_description")),checked:!0,regexp:"password",minLength:6,maxLength:31,autoRemoveFirstOrLastSpace:!1,disallowConsecutiveSpaces:!0,isPassword:!0,openStrength:!0},confirmPassword:{title:"".concat(this.$t("common_password_confirm_password_description")),checked:!0,regexp:"password",minLength:6,maxLength:31,autoRemoveFirstOrLastSpace:!1,disallowConsecutiveSpaces:!0,forceError:"",isPassword:!0}}}},computed:{setScheduleCallback:function(){return this.$store.getters.setScheduleCallback},user:function(){return this.$store.getters.user},formChecked:function(){return Object.values(this.sourceInputArr).reduce((function(e,t){return e&&t.checked}),!0)}},methods:{inputBlur:function(e){"confirmPassword"===e&&this.$set(this.sourceInputArr.confirmPassword,"forceError","")},inputChanged:function(e,t,n){this.sourceInputArr[t]["checked"]=!n,this.userData[t]=e},proxySave:function(){var e=this;this.triggerVerificationCount++,this.$nextTick((function(){e.save()}))},save:function(){if(this.sourceInputArr.confirmPassword.checked&&this.userData.password!==this.userData.confirmPassword)this.$set(this.sourceInputArr.confirmPassword,"forceError",this.$t("common_passwordsNotMatch"));else if(this.formChecked){var e=Object(ct["a"])(Object(ct["a"])({},this.user),{},{cPassword:w["a"].transform(this.userData.password),iUserSetState:3});this.setScheduleCallback(e)}}}}),Va=ja,Ua=Object(g["a"])(Va,Ba,Fa,!1,null,null,null),Ha=Ua.exports,Ga=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"samba-info"},[n("div",{staticClass:"top-bar flex-between"},[n("span",{staticClass:"title-box"},[e._v(e._s(e.title))]),n("div",{staticClass:"close-box",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}},[n("span",{staticClass:"btn-icon icon-client_cancel"})])]),n("div",{staticClass:"config-context"},[n("sambaIntro",{attrs:{handle:e.$store.getters.deviceHandle}})],1)])},Wa=[],za=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"config-solution"},[n("div",{staticClass:"content-wrap"},[n("p",{staticClass:"text"},[e._v(e._s(e.$t("base_samba_intro_tip")))]),n("h4",{staticClass:"middle-title"},[e._v(e._s(e.$t("base_samba_instructions_title")))]),n("p",{staticClass:"text"},[e._v(e._s(e.$t("base_samba_usage_step_one")))]),n("div",{staticClass:"ip-box"},[!e.loading&&e.needLoading?n("div",{staticClass:"retry-status flex",on:{click:e.getNetIp}},[e._v(e._s(e.$t("base_samba_obtain_ip_obtain_failed")))]):e._e(),e.loading||e.needLoading?e._e():n("div",{staticClass:"ip-status flex"},[e._v(e._s(e.netIp))]),e.loading?n("div",{staticClass:"loading-status flex"},[n("span",[e._v(e._s(e.$t("base_samba_obtain_ip_obtaining")))]),n("loadingImg",{staticClass:"loading-img",attrs:{delay:0}})],1):e._e()]),n("p",{staticClass:"text"},[e._v(e._s(e.$t("base_samba_usage_step_two")))]),n("div",{staticClass:"steps-wrap"},[n("div",{staticClass:"steps-title"},[e._v("PC")]),n("p",{staticClass:"text"},[e._v(" "+e._s(e.$t("base_samba_usage_on_pc",{s1:e.netIp}))+" ")])]),n("div",{staticClass:"steps-wrap"},[n("div",{staticClass:"steps-title"},[e._v("Mac")]),n("p",{staticClass:"text"},[e._v(" "+e._s(e.$t("base_samba_usage_on_mac",{s1:e.netIp}))+" ")])])])])},Ya=[],qa=u["a"].extend({name:"sambaIntro",components:{loadingImg:d["a"]},props:{handle:Number},data:function(){return{loading:!1,netIp:"IP",device:{}}},computed:{needLoading:function(){return"IP"===this.netIp}},methods:{getNetIp:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.loading=!0,t.prev=1,e.device.config){t.next=6;break}return t.next=5,B["a"].getDeviceWithHandle(e.handle);case 5:e.device=t.sent;case 6:t.next=13;break;case 8:return t.prev=8,t.t0=t["catch"](1),C["a"].error("sambaIntro.vue > getNetIp > getDeviceWithHandle ".concat(e.handle,": "),t.t0),e.loading=!1,t.abrupt("return");case 13:return t.prev=13,t.next=16,e.device.tryOpenDevice();case 16:t.next=23;break;case 18:return t.prev=18,t.t1=t["catch"](13),C["a"].error("sambaIntro.vue > next > ".concat(e.device.name," tryOpenDevice: "),t.t1),e.loading=!1,t.abrupt("return");case 23:return t.prev=23,t.next=26,e.device.config.getNetworkCfg();case 26:n=t.sent,e.netIp=n.cIp,t.next=33;break;case 30:t.prev=30,t.t2=t["catch"](23),C["a"].error("sambaIntro.vue > next > ".concat(e.device.name," getNetworkCfg: "),t.t2);case 33:e.loading=!1;case 34:case"end":return t.stop()}}),t,null,[[1,8],[13,18],[23,30]])})))()}},created:function(){this.getNetIp()}}),$a=qa,Ka=(n("22d4"),Object(g["a"])($a,za,Ya,!1,null,"62852f60",null)),Za=Ka.exports,Ja=u["a"].extend({name:"sambaInfo",components:{sambaIntro:Za},data:function(){return{title:this.$t("common_samba_feature")}},methods:{closeDialog:function(){this.$store.commit("SET_DIALOGID","")}}}),Qa=Ja,Xa=(n("7f3e"),Object(g["a"])(Qa,Ga,Wa,!1,null,"32ffa05e",null)),er=Xa.exports,tr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"pop",staticClass:"message-pop"},[e.deviceName?n("p",{staticClass:"subtitle"},[e._v(e._s(e.deviceName))]):e._e(),n("h4",[e._v(e._s(e.title))]),n("p",{staticClass:"main-context"},[e._v(e._s(e.message))]),n("div",{staticClass:"btns-wrap flex"},[n("button",{staticClass:"ghost-button",attrs:{"reo-element":""},on:{click:e.closeDialog}},[e._v(e._s(e.$t("common_dialog_cancel_button")))]),n("button",{attrs:{"reo-element":""},on:{click:e.toStorageSetting}},[e._v(e._s(e.$t("common_view_button")))])])])},nr=[],ir=u["a"].extend({name:"needStorageFormatDialog",components:{sambaIntro:Za},props:{deviceName:{type:String,default:""}},data:function(){return{title:this.$t("base_sd_not_formatted_title"),message:this.$t("base_sd_not_formatted_des")}},computed:{setScheduleCallback:function(){return this.$store.getters.setScheduleCallback}},methods:{closeDialog:function(){this.setScheduleCallback(!1),this.$store.commit("SET_DIALOGID","")},toStorageSetting:function(){this.setScheduleCallback(!0),this.$store.commit("SET_DIALOGID","")}}}),ar=ir,rr=(n("263a"),Object(g["a"])(ar,tr,nr,!1,null,"2636f804",null)),sr=rr.exports,or=n("fb4d"),cr=n.n(or),ur=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pop-box",staticStyle:{"-webkit-app-region":"drag"}},[n(e.componentId,{tag:"component",attrs:{options:e.options},on:{handleClickCallback:e.handleClickCallback,handleCloseDialog:e.handleCloseDialog}})],1)},lr=[],dr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"pop",staticClass:"message-pop"},[e.options.icon?n("div",{staticClass:"prompt-icon",style:{"font-size":e.options.iconSize?e.options.iconSize+"px":"40px"}},[n("span",{class:e.options.icon})]):e._e(),e.options.subtitle?n("p",{staticClass:"subtitle"},[e._v(e._s(e.options.subtitle))]):e._e(),e.options.title?n("h4",[e._v(e._s(e.title))]):e._e(),e.options.message?n("p",{staticClass:"main-context",domProps:{innerHTML:e._s(e.message)}}):e._e(),n("div",{staticClass:"btn-box"},e._l(e.options.buttons,(function(t,i){return n("speedyBtn",{key:i,attrs:{btnClass:t.class,keyCode:t.key?t.key:-1,btnText:t.title},on:{btnClick:function(n){return e.clickCallback(t.value)}}})})),1),e.options.checkbox?n("div",{staticClass:"judge-prompt-box"},[n("label",{staticClass:"flex",class:{checked:e.isNotPrompt},attrs:{checkbox:""}},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.isNotPrompt,expression:"isNotPrompt",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"checkbox"},domProps:{checked:Array.isArray(e.isNotPrompt)?e._i(e.isNotPrompt,null)>-1:e.isNotPrompt},on:{change:function(t){var n=e.isNotPrompt,i=t.target,a=!!i.checked;if(Array.isArray(n)){var r=null,s=e._i(n,r);i.checked?s<0&&(e.isNotPrompt=n.concat([r])):s>-1&&(e.isNotPrompt=n.slice(0,s).concat(n.slice(s+1)))}else e.isNotPrompt=a}}}),n("span",{staticClass:"check-icon icon-client_check",attrs:{checkicon:""}}),n("p",[e._v(e._s(e.options.checkbox.label))])])]):e._e()])},pr=[],hr=u["a"].extend({name:"messagePop",components:{speedyBtn:v["a"]},props:{options:{type:Object,required:!0}},data:function(){return{isNotPrompt:!1,countDown:0,countDownTimer:{}}},computed:{title:function(){if(void 0===this.options.title)return"";var e=this.options.title;return e.replace("{count-down}",""+this.countDown)},message:function(){if(void 0===this.options.message)return"";var e=this.options.message;return e.replace("{count-down}",""+this.countDown)}},mounted:function(){if(y["a"].IS_CLIENT){var e=this.$refs.pop;p["a"].setWindowSize(e.offsetWidth,e.offsetHeight),V["a"].setDialogCallbackData({button:this.options.defaultBtnValue,checked:this.isNotPrompt})}this.options.checkbox&&void 0!==this.options.checkbox.checked&&(this.isNotPrompt=this.options.checkbox.checked),void 0!==this.options.countDown&&(this.countDown=this.options.countDown,this.countDownLoop())},methods:{clickCallback:function(e){this.$emit("handleClickCallback",e,this.isNotPrompt)},countDownLoop:function(){var e=this;this.countDownTimer=setTimeout((function(){e.countDown--,e.countDown<=0?e.$emit("handleCloseDialog"):e.countDownLoop()}),1e3)}}}),mr=hr,gr=(n("1308"),Object(g["a"])(mr,dr,pr,!1,null,null,null)),fr=gr.exports,_r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"pop",staticClass:"checkbox-pop"},[e.options.icon?n("div",{staticClass:"prompt-icon"},[n("span",{class:e.options.icon})]):e._e(),e.options.title?n("h4",[e._v(e._s(e.options.title))]):e._e(),e.options.message?n("p",{domProps:{innerHTML:e._s(e.options.message)}}):e._e(),n("div",{staticClass:"option-wrap"},e._l(e.options.checkbox,(function(t,i){return n("label",{key:i,staticClass:"flex",class:{checked:e.checkedArray.includes(t.value)},attrs:{checkbox:""}},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.checkedArray,expression:"checkedArray",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"checkbox"},domProps:{value:t.value,checked:Array.isArray(e.checkedArray)?e._i(e.checkedArray,t.value)>-1:e.checkedArray},on:{change:function(n){var i=e.checkedArray,a=n.target,r=!!a.checked;if(Array.isArray(i)){var s=t.value,o=e._i(i,s);a.checked?o<0&&(e.checkedArray=i.concat([s])):o>-1&&(e.checkedArray=i.slice(0,o).concat(i.slice(o+1)))}else e.checkedArray=r}}}),n("span",{staticClass:"check-icon icon-client_check",attrs:{checkicon:""}}),n("p",[e._v(e._s(t.label))])])})),0),n("div",{staticClass:"btn-box"},e._l(e.options.buttons,(function(t,i){return n("speedyBtn",{key:i,attrs:{btnClass:t.class,keyCode:t.key?t.key:-1,btnText:t.title},on:{btnClick:function(n){return e.clickCallback(t.value)}}})})),1)])},vr=[],br=u["a"].extend({name:"checkboxPop",components:{speedyBtn:v["a"]},props:{options:{type:Object,required:!0}},data:function(){return{value:-1,checkedArray:[]}},mounted:function(){if(y["a"].IS_CLIENT){var e=this.$refs.pop;p["a"].setWindowSize(e.offsetWidth,e.offsetHeight),V["a"].setDialogCallbackData({button:this.options.defaultBtnValue,checked:this.checkedArray})}var t,n=Object(ne["a"])(this.options.checkbox);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.checked&&this.checkedArray.push(i.value)}}catch(a){n.e(a)}finally{n.f()}},methods:{clickCallback:function(e){this.$emit("handleClickCallback",e,this.checkedArray)}}}),wr=br,Cr=Object(g["a"])(wr,_r,vr,!1,null,null,null),yr=Cr.exports,Sr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"pop",staticClass:"radio-pop"},[e.options.icon?n("div",{staticClass:"prompt-icon"},[n("span",{class:e.options.icon})]):e._e(),e.options.title?n("h4",[e._v(e._s(e.options.title))]):e._e(),e.options.message?n("p",{domProps:{innerHTML:e._s(e.options.message)}}):e._e(),n("div",{staticClass:"option-wrap"},e._l(e.options.checkbox,(function(t,i){return n("label",{key:i,staticClass:"flex",class:{checked:e.checkedVal===t.value},attrs:{radio:""}},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.checkedVal,expression:"checkedVal",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"radio",name:"checkedVal"},domProps:{value:t.value,checked:e._q(e.checkedVal,t.value)},on:{change:function(n){e.checkedVal=t.value}}}),n("span",{staticClass:"check-icon",attrs:{checkicon:""}}),n("p",[e._v(e._s(t.label))])])})),0),n("div",{staticClass:"btn-box"},e._l(e.options.buttons,(function(t,i){return n("speedyBtn",{key:i,attrs:{btnClass:t.class,keyCode:t.key?t.key:-1,btnText:t.title},on:{btnClick:function(n){return e.clickCallback(t.value)}}})})),1)])},kr=[],Ar=u["a"].extend({name:"radioPop",components:{speedyBtn:v["a"]},props:{options:{type:Object,required:!0}},data:function(){return{value:-1,checkedVal:-1}},mounted:function(){if(y["a"].IS_CLIENT){var e=this.$refs.pop;p["a"].setWindowSize(e.offsetWidth,e.offsetHeight),V["a"].setDialogCallbackData({button:this.options.defaultBtnValue,checked:this.checkedVal})}this.checkedVal=this.options.defaultChecked,document.onkeydown=this.keyDown},methods:{clickCallback:function(e){this.$emit("handleClickCallback",e,this.checkedVal)},keyDown:function(e){var t=this;this.options.buttons.some((function(n){return void 0!==n.key&&n.key===e.keyCode&&(t.clickCallback(n.value),!0)}))}}}),Er=Ar,xr=Object(g["a"])(Er,Sr,kr,!1,null,null,null),Or=xr.exports,Ir=u["a"].extend({name:"popBox",components:{message:fr,checkbox:yr,radio:Or},data:function(){return{options:{},componentId:"",appPlatform:"web"}},computed:{dialogOptions:function(){return y["a"].IS_CLIENT?{}:this.$store.getters.dialogOptions},appDialogCallback:function(){return y["a"].IS_CLIENT?function(){}:this.$store.getters.appDialogCallback}},mounted:function(){y["a"].IS_CLIENT&&(this.options=JSON.parse(cr.a.decode(decodeURI(window.location.search).substring(1))),this.componentId=this.options.type)},watch:{dialogOptions:{handler:function(e){e&&(this.options=JSON.parse(JSON.stringify(e)),this.componentId=this.options.type)},immediate:!0}},methods:{handleClickCallback:function(e,t){p["a"].dialogCallback(e,t,this,this.appDialogCallback)},handleCloseDialog:function(){p["a"].closeDialog(this)}}}),Dr=Ir,Tr=(n("80fb"),Object(g["a"])(Dr,ur,lr,!1,null,null,null)),Rr=Tr.exports,Pr=n("6f20"),Lr=u["a"].extend({name:"remoteConfig",components:{loading:P["a"],upgrading:pe,loadingImg:d["a"],statusPrompt:ve,retry:be["a"],motionNewSensitivityIntro:$t,motionDetect:We["b"],alarmDetect:Ht,partialExposure:en,aiTrackRangeLimit:On,batteryPairingDialogEntry:Hn,imageStitch:ei,privacyMask:si,sensitivitySize:pi,streamCfgSetting:vi,wifiKitSetting:Ai,banCountBattery:Ge,screenAllDefault:Be,ddnsSetting:Ti,ntpSetting:Fi,portSetting:Wi,networkSetting:Zi,wifiSetting:na,wifiNvrSetting:da,httpsSetting:ka,addUser:Da,editOneself:Na,editUser:Ha,appDialog:Rr,scheduleCopyTo:Pr["a"],sambaInfo:er,needStorageFormatDialog:sr,messageDialog:Ae,termsOfServiceDialog:Te,audioRenaming:Ze,autoReplySetting:it,chimeAudioSetting:Dt,chimePairing:St,chimeDetailedInstruction:Nt},data:function(){return{device:{},deviceName:"",P:R,isLoadingList:!1,isLoadingListRetry:!1,componentId:"",itemActiveId:"",sourceSettings:{management:{name:this.$t("base_manager_title"),icon:"icon-web_camera",belong:["BASE"]},display:{name:this.$t("common_device"),icon:"icon-web_camera",showChildren:!1,children:{screen:{name:this.$t("display_page_title")},quality:{name:this.$t("STR_CAMERA_STATUS_TAB_STREAM")},alarm:{name:this.$t("remote_config_page_alarm_section_alarm_tip")},battery:{name:this.$t("common_Battery")},ledLight:{name:this.$t("remote_config_page_led_section_title")},audioCfg:{name:this.$t("common_audio")},chime:{name:this.$t("common_chime")},cameraInfo:{name:this.$t("common_Info"),belong:["IPC","MULTI_IPC","SD7","BELL"]}}},monitor:{name:this.$t("STR_SCHUDULE"),icon:"icon-web_monitor",showChildren:!1,children:{recording:{name:this.$t("common_record")},email:{name:this.$t("common_mailbox_mailbox_description")},ftp:{name:this.$t("common_FTP")},buzzerAlarm:{name:this.$t("remote_config_page_notification_section_alarm_sound_buzzer_item_label"),belongNvr:!0},audioAlarm:{name:this.$t("remote_config_page_notification_section_alarm_sound_item_label")},nvrAudioAlarm:{name:this.$t("remote_config_page_notification_section_alarm_sound_item_label")},push:{name:this.$t("remote_config_page_basic_info_push_label")}}},network:{name:this.$t("common_Network"),icon:"icon-web_network"},storage:{name:this.$t("common_view_storage"),icon:"icon-web_storage"},advanced:{name:this.$t("STR_MAINMENU_SYSTEM"),icon:"icon-web_system",showChildren:!1,children:{user:{name:this.$t("remote_config_page_account_section_user_manager_item_label")},dateTime:{name:this.$t("remote_config_page_system_section_date_and_time_item_label")},maintenance:{name:this.$t("remoteConfig_Maintenance_title")},nvrInfo:{name:this.$t("common_Info"),belong:["NVR","BASE"]}}}},isClient:y["a"].IS_CLIENT,settings:{},settingsSupport:{},showRemoteDialog:!1,isMultiIPC:!1,initSettingName:"",isDialogMaskFullscreen:!1,maskAlpha:.7,initialShowAudioMsg:!1}},computed:{currentActiveHash:function(){return this.$store.getters.currentActiveHash},isListLoaded:function(){return!this.isLoadingList&&!this.isLoadingListRetry&&Object.keys(this.settingsSupport).length>0},isConfigContextLoading:function(){return this.$store.getters.configContextLoading},isDialogLoading:function(){return this.$store.getters.isDialogLoading},isLoading:function(){return this.$store.getters.loading},loadingText:function(){return this.$store.getters.loadingText},isUpgrading:function(){return!!this.$store.getters.upgradeFile.file||!!this.$store.getters.newFirmware},prompt:function(){return this.$store.getters.prompt},showPrompt:function(){return this.prompt.promptStatus!==R["PromptStatus"].close||!!this.prompt.promptMessage},dialogId:function(){return this.$store.getters.dialogId},nestedDialogId:function(){return this.$store.getters.nestedDialogId},customDialogId:function(){return this.$store.getters.customDialogId},deviceInfo:function(){return this.$store.getters.deviceInfo},isNeedDialogWrap:function(){return!["sambaInfo","needStorageFormatDialog","imageStitch","audioRenaming","messageDialog","termsOfServiceDialog","chimePairing","chimeAudioSetting","autoReplySetting","chimeDetailedInstruction","aiTrackRangeLimit","wifiKitSetting"].includes(this.dialogId)},hasPersonalizedTopBar:function(){return["motionNewSensitivityIntro","wifiSetting","alarmDetect","privacyMask","sensitivitySize","imageStitch","audioRenaming","chimePairing","chimeAudioSetting","autoReplySetting","chimeDetailedInstruction","messageDialog","aiTrackRangeLimit","sambaInfo","termsOfServiceDialog","partialExposure"].includes(this.dialogId)},hasFlexibleDialogWidth:function(){return["batteryPairingDialogEntry","motionNewSensitivityIntro","alarmDetect"].includes(this.dialogId)}},watch:{currentActiveHash:function(e,t){var n="upgradeSetting"===e?"maintenance":e;n!==t&&this.activateComponentIdWithName(n)},componentId:function(e){this.$router.currentRoute.path!=="/".concat(e)&&this.$router.push(e)},device:{handler:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){var a,r,s,o,c,u,l,d,p,h,m,g,f,_;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(t&&t.state&&(t.state.removeObserver("name",n.onNameChange),t.state.removeObserver("handle",n.deviceHandleChange)),e&&!(e.handle<0)&&e.state){i.next=3;break}return i.abrupt("return");case 3:return e.state.addObserver("name",n.onNameChange),e.state.addObserver("handle",n.deviceHandleChange),i.prev=5,n.isLoadingList=!0,n.isLoadingListRetry=!1,i.next=10,Promise.all([e.loginDes(),e.config.getVersionInfo(),e.deviceType(),e.supportTimingRecord()]);case 10:if(a=i.sent,r=Object(T["a"])(a,4),s=r[0],o=r[1],r[2],c=r[3],u="NVR"===o.cCategory,l="MULTI_IPC"===o.cCategory,d="SD7"===o.cCategory,p="BASE"===o.cCategory,h="IPC"===o.cCategory,m="BELL"===o.cCategory,n.$store.commit("MODIFY_LOGIN_DES",s),n.$store.commit("MODIFY_DEVICE_INFO",o),n.$store.commit("MODIFY_SCHEDULE_TIMING_SUPPORT",c),n.$store.commit("IS_BELL",m),n.$store.commit("IS_NVR",u),n.$store.commit("IS_MULTI_IPC",l),n.$store.commit("IS_SD7",d),n.$store.commit("IS_BASE",p),n.$store.commit("IS_IPC",h),n.$store.commit("IS_BATTERY",!1),!p){i.next=36;break}n.settingsSupport={display:!1,monitor:!1,dateTime:!1},i.next=47;break;case 36:return i.next=38,Promise.all([e.supportRecSettings(),e.supportFTP(),e.supportHDD(),e.supportSDCard(),e.isBattery(),e.supportPushTask(),e.supportAudioAlarm(),e.supportBuzzer()]);case 38:return g=i.sent,i.next=41,e.getChannels();case 41:return f=i.sent,i.next=44,Promise.allSettled(f.map((function(e){return e.supportDingDongCtrl()})));case 44:_=i.sent,n.$store.commit("IS_BATTERY",g[4]),n.settingsSupport={email:!y["a"].USE_ACCOUNT_LOGIN,user:!y["a"].USE_ACCOUNT_LOGIN,recording:g[0],ftp:g[1]&&!y["a"].USE_ACCOUNT_LOGIN,storage:g[2]||g[3],battery:g[4],push:g[5],audioAlarm:g[6],buzzerAlarm:g[7],chime:_.some((function(e){return"fulfilled"===e.status&&e.value})),nvrAudioAlarm:u};case 47:n.resetSettings(),i.next=54;break;case 50:i.prev=50,i.t0=i["catch"](5),C["a"].error("remote-config > app.vue > handler: ",i.t0),n.isLoadingListRetry=!0;case 54:n.isLoadingList=!1;case 55:case"end":return i.stop()}}),i,null,[[5,50]])})))()},immediate:!0}},created:function(){this.init()},methods:{init:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!y["a"].IS_CLIENT){t.next=20;break}if(n=JSON.parse(cr.a.decode(decodeURI(window.location.search).substring(1))),!n||void 0===n.handle){t.next=18;break}return e.isLoadingList=!0,e.isLoadingListRetry=!1,e.initSettingName=n.settingName,n.initialValObj&&"audioCfg"===e.initSettingName&&void 0!==n.initialValObj.showAudioMsg&&(e.initialShowAudioMsg=n.initialValObj.showAudioMsg),t.prev=7,t.next=10,e.deviceHandleChange(n.handle);case 10:e.$store.commit("STORE_CHANNEL_INDEX",n.index),t.next=17;break;case 13:t.prev=13,t.t0=t["catch"](7),C["a"].error("remote-config > app.vue > init > deviceHandleChange(options.handle): ",t.t0),e.isLoadingListRetry=!0;case 17:e.isLoadingList=!1;case 18:t.next=33;break;case 20:return e.isLoadingList=!0,e.isLoadingListRetry=!1,t.prev=22,t.next=25,e.deviceHandleChange(1);case 25:e.$store.commit("STORE_CHANNEL_INDEX",void 0!==ControllerRemoteConfig.initialChannelIndex?ControllerRemoteConfig.initialChannelIndex:0),t.next=32;break;case 28:t.prev=28,t.t1=t["catch"](22),C["a"].error("remote-config > app.vue > init > deviceHandleChange(1): ",t.t1),e.isLoadingListRetry=!0;case 32:e.isLoadingList=!1;case 33:case"end":return t.stop()}}),t,null,[[7,13],[22,28]])})))()},resetSettings:function(){this.settings=JSON.parse(JSON.stringify(this.sourceSettings)),this.generateSettings(this.settings),this.initSettingName&&(this.activateComponentIdWithName(this.initSettingName,this.settings),this.initSettingName=""),this.componentId||this.activateFirstComponentId(this.settings),this.$store.commit("SET_SUPPORT_ROUTE_NAMES",Object(l["g"])(this.settingsSupport))},generateSettings:function(e){var t;for(t in e)if(!1!==this.settingsSupport[t]){var n=e[t],i=n.belong;if(void 0===i||i.includes(this.deviceInfo.cCategory)){var a=n["children"];a&&this.generateSettings(a)}else delete e[t]}else delete e[t]},activateComponentIdWithName:function(e,t){var n,i=t||this.settings;for(n in i){var a=i[n]["children"];if(n===e)return a?(this.activateFirstComponentId(a),this.$set(i[n],"showChildren",!0)):(this.componentId=n,this.itemActiveId=n),!0;if(a){var r=this.activateComponentIdWithName(e,a);r&&this.$set(i[n],"showChildren",!0)}}return!1},activateFirstComponentId:function(e){var t;for(t in e){var n=e[t]["children"];return void(n?(this.activateFirstComponentId(n),this.$set(e[t],"showChildren",!0)):(this.componentId=t,this.itemActiveId=t))}},getSettingItemTabsHeight:function(e){var t=this.settings[e];if(t&&t.children){var n=32*Object.keys(t.children).length+2,i=this.$refs[e],a=i&&i[0]?i[0].offsetHeight:0;return Math.max(n,a)}},closeConfig:function(){Sl.hidePage()},closePrompt:function(){this.$store.commit("HANDLE_PROMPT",R["PromptStatus"].close)},closeDialog:function(){this.$store.commit("SET_DIALOGID","")},activeSetting:function(e){var t=this.settings[e];t&&(t.children?this.$set(t,"showChildren",!t["showChildren"]):(this.componentId=e,this.itemActiveId=e))},onDialogMaskScale:function(e){this.isDialogMaskFullscreen=e},deviceHandleChange:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,B["a"].getDeviceWithHandle(e);case 2:t.device=n.sent,t.$store.commit("STORE_DEVICE_HANDLE",e);case 4:case"end":return n.stop()}}),n)})))()},onNameChange:function(e){var t=JSON.parse(JSON.stringify(this.deviceInfo));this.deviceName=t.cName=e,this.$store.commit("MODIFY_DEVICE_INFO",t)},handleActive:function(e,t){this.itemActiveId=e,this.componentId=t}}}),Mr=Lr,Nr=(n("09ab"),n("ef53"),Object(g["a"])(Mr,I,D,!1,null,"17bc397e",null)),Br=Nr.exports,Fr=n("2f62"),jr={handleScheduleCallback:function(e,t){e.commit("MODIFY_SCHEDULE",t.schedule),e.commit("MODIFY_SCHEDULE_TYPE",t.scheduleType),e.commit("MODIFY_SCHEDULE_NONE_MODE",t.scheduleNoneMode),e.commit("SET_SCHEDULE_CALLBACK",t.setScheduleCallback),e.commit("SET_DIALOGID",t.dialogId)}},Vr=jr;function Ur(){return{showPasswordWarn:!1,supportRouteNames:{},currentActiveHash:"",isIpc:!1,isNvr:!1,isBell:!1,isBase:!1,isBattery:!1,isSD7:!1,supportCoverIndexChange:!1,isMultiIpc:!1,isNestedDialog:!1,dialogId:"",nestedDialogId:"",customDialogId:"",prompt:{promptStatus:R["PromptStatus"].close,promptMessage:""},upgradeFile:{},newFirmware:null,loading:!1,loadingText:"",configContextLoading:!1,isDialogLoading:!1,deviceHandle:-1,channelIndex:-1,dialogChannelIndex:0,loginDes:{},deviceInfo:{},motion:{},aiDetectCfg:{},aiDetectArea:{},userArr:{},user:{},network:{},ddns:{},cover:{},isp:{},fishEyeImageType:te["EFishEyeImageType"].ORIGINAL,largeBatteryInfo:{version:"",address:""},supportAutoUpdate:!1,supportStitch:!1,supportFirmwareUpgrade:!1,supportFishEyeCfg:!1,supportAiAnimal:!1,scheduleTimingSupport:!1,schedule:[],scheduleType:"",scheduleNoneMode:-1,dialogOptions:{},selectedChannels:[],audioReply:{autoReply:{},audioFileList:[],cFileNameOfEditing:"",callback:function(){return null}},dingDongAudio:{alarmType:R["EScheduleMode"].VISITOR,audioInfo:{enable:0,musicId:0},saveCallback:function(){return null}},encCfgSettingInfo:{deviceNorm:0,supportGop:!1,supportEncoderSelect:!1,modifiableStreamTypes:[],enc:{},encTable:{},curStreamTypeInfo:{value:te["EStreamTypeInEncCfg"].mainstream,name:q["a"].t("common_clarity_stream_clear")},encModifiableCfg:{},selectCallback:function(){return!1},saveCallback:function(){return null}},wifiKitSettingInfo:{wifiKitCfg:{},curFreqTypeInfo:{value:te["EWifiFreqType"].WIFI_TYPE_2_4G,name:"2.4G"},saveCallback:function(){return null}},chimeInstructionType:"synchronize",setScheduleCallback:function(){return null},appDialogCallback:function(){return null},nestedDialogCallback:function(){return null},saveAndCopytoCallback:function(){return null},copytoInitCallback:function(){return null}}}function Hr(e){return{SET_CURRENT_ACTIVE_HASH:function(e,t){e.currentActiveHash=t},SET_SUPPORT_ROUTE_NAMES:function(e,t){e.supportRouteNames=t},SHOW_PASSWORD_WARN:function(e,t){e.showPasswordWarn=t},IS_IPC:function(e,t){e.isIpc=t},IS_BELL:function(e,t){e.isBell=t},IS_NVR:function(e,t){e.isNvr=t},IS_BATTERY:function(e,t){e.isBattery=t},IS_SD7:function(e,t){e.isSD7=t},IS_BASE:function(e,t){e.isBase=t},IS_MULTI_IPC:function(e,t){e.isMultiIpc=t},SET_DIALOGID:function(e,t){e.dialogId=t},SET_CUSTOM_DIALOGID:function(e,t){e.customDialogId=t},SET_NESTED_DIALOGID:function(e,t){e.nestedDialogId=t},SET_NESTED_DIALOG_CALLBACK:function(e,t){e.nestedDialogCallback=t},SET_IS_NESTED_DIALOG:function(e,t){e.isNestedDialog=t},HANDLE_PROMPT:function(e,t){e.prompt="number"!==typeof t?t:{promptStatus:t,promptMessage:""}},HANDLE_LOADING:function(e,t){e.loading=t},HANDLE_LOADING_TEXT:function(e,t){e.loadingText=t},HANDLE_UPGRADE_FILE:function(e,t){e.upgradeFile=t},HANDLE_NEW_FIRMWARE:function(e,t){e.newFirmware=t},HANDLE_DIALOG_LOADING:function(e,t){e.isDialogLoading=t},HANDLE_CONFIGCONTEXT_LOADING:function(e,t){e.configContextLoading=t},STORE_DEVICE_HANDLE:function(e,t){e.deviceHandle=t},STORE_CHANNEL_INDEX:function(e,t){e.channelIndex=t},STORE_DIALOG_CHANNEL_INDEX:function(e,t){e.dialogChannelIndex=t},MODIFY_LOGIN_DES:function(e,t){e.loginDes=t},MODIFY_DEVICE_INFO:function(e,t){e.deviceInfo=t},MODIFY_STORE_USER:function(e,t){e.user=t},MODIFY_STORE_USER_ARR:function(e,t){e.userArr=t},MODIFY_STORE_DDNS:function(e,t){e.ddns=t},MODIFY_STORE_NETWORK:function(e,t){e.network=t},MODIFY_SCHEDULE_TIMING_SUPPORT:function(e,t){e.scheduleTimingSupport=t},MODIFY_SCHEDULE:function(e,t){e.schedule=t},MODIFY_SCHEDULE_TYPE:function(e,t){e.scheduleType=t},MODIFY_COVER:function(e,t){e.cover=t},MODIFY_ISP:function(e,t){e.isp=t},MODIFY_LARGE_BATTERY_INFO:function(e,t){e.largeBatteryInfo=t},MODIFY_FISHEYE_IMAGE_TYPE:function(e,t){e.fishEyeImageType=t},MODIFY_SUPPORT_STITCH:function(e,t){e.supportStitch=t},MODIFY_SUPPORT_AUTO_UPDATE:function(e,t){e.supportAutoUpdate=t},MODIFY_SUPPORT_FIRMWARE_UPGRADE:function(e,t){e.supportFirmwareUpgrade=t},MODIFY_SUPPORT_FISHEYE_CFG:function(e,t){e.supportFishEyeCfg=t},MODIFY_SUPPORT_AI_ANIMAL:function(e,t){e.supportAiAnimal=t},SUPPORT_COVER_INDEX_CHANGE:function(e,t){e.supportCoverIndexChange=t},MODIFY_MOTION:function(e,t){e.motion=t},MODIFY_AI_DETECT_CFG:function(e,t){e.aiDetectCfg=t},MODIFY_AI_DETECT_AREA:function(e,t){e.aiDetectArea=t},MODIFY_SCHEDULE_NONE_MODE:function(e,t){e.scheduleNoneMode=t},MODIFY_DIALOG_OPTIONS:function(e,t){e.dialogOptions=t},MODIFY_SELECTED_CHANNELS:function(e,t){e.selectedChannels=t},SET_AUDIO_REPLY:function(e,t){e.audioReply=t},MODIFY_DINGDONG_AUDIO:function(e,t){e.dingDongAudio=t},MODIFY_ENC_CFG_SETTING_INFO:function(e,t){e.encCfgSettingInfo=t},MODIFY_WIFI_KIT_SETTING_INFO:function(e,t){e.wifiKitSettingInfo=t},MODIFY_CHIME_INSTRUCTION_TYPE:function(e,t){e.chimeInstructionType=t},SET_SCHEDULE_CALLBACK:function(e,t){e.setScheduleCallback=t},SET_APP_DIALOG_CALLBACK:function(e,t){e.appDialogCallback=t},SET_COPYTO_SAVE_CALLBACK:function(e,t){e.saveAndCopytoCallback=t},SET_COPYTO_INIT_CALLBACK:function(e,t){e.copytoInitCallback=t}}}function Gr(e){return{currentActiveHash:function(e){return e.currentActiveHash},supportRouteNames:function(e){return e.supportRouteNames},showPasswordWarn:function(e){return e.showPasswordWarn},isIpc:function(e){return e.isIpc},isNvr:function(e){return e.isNvr},isBell:function(e){return e.isBell},isSD7:function(e){return e.isSD7},isBattery:function(e){return e.isBattery},isBase:function(e){return e.isBase},isMultiIpc:function(e){return e.isMultiIpc},dialogId:function(e){return e.dialogId},nestedDialogId:function(e){return e.nestedDialogId},isNestedDialog:function(e){return e.isNestedDialog},audioReply:function(e){return e.audioReply},dingDongAudio:function(e){return e.dingDongAudio},encCfgSettingInfo:function(e){return e.encCfgSettingInfo},wifiKitSettingInfo:function(e){return e.wifiKitSettingInfo},customDialogId:function(e){return e.customDialogId},prompt:function(e){return e.prompt},loading:function(e){return e.loading},loadingText:function(e){return e.loadingText},upgradeFile:function(e){return e.upgradeFile},newFirmware:function(e){return e.newFirmware},configContextLoading:function(e){return e.configContextLoading},isDialogLoading:function(e){return e.isDialogLoading},deviceHandle:function(e){return e.deviceHandle},channelIndex:function(e){return e.channelIndex},dialogChannelIndex:function(e){return e.dialogChannelIndex},loginDes:function(e){return e.loginDes},user:function(e){return e.user},deviceInfo:function(e){return e.deviceInfo},userArr:function(e){return e.userArr},ddns:function(e){return e.ddns},network:function(e){return e.network},scheduleTimingSupport:function(e){return e.scheduleTimingSupport},schedule:function(e){return e.schedule},scheduleType:function(e){return e.scheduleType},scheduleNoneMode:function(e){return e.scheduleNoneMode},dialogOptions:function(e){return e.dialogOptions},setScheduleCallback:function(e){return e.setScheduleCallback},appDialogCallback:function(e){return e.appDialogCallback},nestedDialogCallback:function(e){return e.nestedDialogCallback},cover:function(e){return e.cover},isp:function(e){return e.isp},largeBatteryInfo:function(e){return e.largeBatteryInfo},fishEyeImageType:function(e){return e.fishEyeImageType},supportAutoUpdate:function(e){return e.supportAutoUpdate},supportFirmwareUpgrade:function(e){return e.supportFirmwareUpgrade},supportStitch:function(e){return e.supportStitch},supportFishEyeCfg:function(e){return e.supportFishEyeCfg},supportAiAnimal:function(e){return e.supportAiAnimal},supportCoverIndexChange:function(e){return e.supportCoverIndexChange},motion:function(e){return e.motion},aiDetectCfg:function(e){return e.aiDetectCfg},aiDetectArea:function(e){return e.aiDetectArea},selectedChannels:function(e){return e.selectedChannels},chimeInstructionType:function(e){return e.chimeInstructionType},saveAndCopytoCallback:function(e){return e.saveAndCopytoCallback},copytoInitCallback:function(e){return e.copytoInitCallback}}}function Wr(){var e=Ur();return{state:e,getters:Gr(e),mutations:Hr(e)}}u["a"].use(Fr);var zr=!y["a"].IS_PROD;function Yr(){return new Fr["Store"]({modules:{baseConfig:Wr()},actions:Vr,strict:zr,plugins:zr?[Fr["createLogger"]({})]:[]})}var qr,$r,Kr=n("8c4f"),Zr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"config-context-inner"},[n("remoteTitleBar",{attrs:{title:e.$t("remote_config_page_alarm_section_alarm_tip")}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"config-scroll-box"},[e.supportPir?n("rf",{attrs:{showAlarmSchedule:e.showAlarmSchedule,deviceVersion:e.deviceVersion,device:e.device},on:{loadingPirChange:e.loadingPirChange}}):e._e(),n("motion-detect",{attrs:{showAlarmSchedule:e.showAlarmSchedule,alarmStatus:e.alarmStatus,supportPir:e.supportPir,channels:e.channels},on:{loadingMotionChange:e.loadingMotionChange}})],1),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:e.init}}):e._e()],1)},Jr=[],Qr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pir"},[n("div",{staticClass:"small-title"},[e._v(e._s(e.$t("remote_config_page_alarm_section_rf_settings_item_label")))]),n("div",{staticClass:"line-separator"}),e.isLoadingPirCfg||e.isPirCfgRetry?n("div",{staticClass:"loading-retry-box"},[e.isLoadingPirCfg&&!e.isPirCfgRetry?n("loading",{staticClass:"loading"}):e._e(),!e.isLoadingPirCfg&&e.isPirCfgRetry?n("retry",{on:{retry:e.deviceInit}}):e._e()],1):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isLoadingPirCfg&&!e.isPirCfgRetry,expression:"!isLoadingPirCfg&&!isPirCfgRetry"}],staticClass:"alarm-wrap"},[n("div",{staticClass:"enable-alarm"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("device_pir_settings_enable_pir")))]),n("slideBtn",e._b({on:{stateChange:e.alarmSwitch}},"slideBtn",e.bEnable,!1))],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.rf.bEnable,expression:"rf.bEnable"}],staticClass:"sensitivity-box"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_Sensitivity")))]),n("img",{staticClass:"effect-img",attrs:{src:e.mdSensitivityEffectCopy.img[e.activedSensitivityLevel]}}),n("p",{staticClass:"effect-des notes-text"},[e._v(e._s(e.mdSensitivityEffectCopy.des[e.activedSensitivityLevel]))]),n("div",{staticClass:"default-periods flex"},[e.useSelect?n("selectBox",e._b({on:{selectChanged:e.rfSelect}},"selectBox",e.eSensitivity,!1)):n("processSlider",e._b({attrs:{title:e.eLevelCopy[e.activedSensitivityLevel]},on:{valueChanged:e.sensitivityValueChanged}},"processSlider",e.iSensitivityValue,!1),[n("span",{staticClass:"percent-num"},[e._v(e._s(e.iSensitivityValue.value))])])],1)]),e.showAlarmSchedule&&e.rf.bEnable?[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_rf_rfSchedule")))]),n("scheduleDispense",e._b({ref:"scheduleDispense",on:{saveScheduleLegacy:e.saveScheduleLegacy}},"scheduleDispense",e.scheduleProps,!1))]:e._e()],2)])},Xr=[],es=n("ade3"),ts=n("7a18"),ns=n("c601"),is=n("1c70"),as=n.n(is),rs=n("ad0f"),ss=n.n(rs),os=n("2f73"),cs=n.n(os),us=n("0565"),ls=u["a"].extend({name:"rf",components:{slideBtn:Ci["a"],processSlider:ts["a"],retry:be["a"],loading:P["a"],selectBox:Xe["a"],scheduleDispense:ns["a"],remoteTitleBar:us["a"]},props:{showAlarmSchedule:Boolean,deviceVersion:Number,device:Object},data:function(){var e,t,n;return{isLoadingPirCfg:!1,isPirCfgRetry:!1,eLevelCopy:(e={},Object(es["a"])(e,We["a"].LOW,q["a"].t("common_Low")),Object(es["a"])(e,We["a"].MIDDLE,q["a"].t("CAMERA_SENSITIVITY_MID")),Object(es["a"])(e,We["a"].HIGH,q["a"].t("common_High")),e),rf:{validField:"",isCopyTo:!1,iRfId:0,bEnable:!1,iSupportSensitivity:!1,eSensitivity:N["BC_RF_SENSITIVITY_E"].BC_RF_SENSITIVITY_LOW,iSensitivityValue:0,iReduceFalseAlarm:0,iInvalid:0,channelNum:0,triggeredHandleType:[0],iTimeTable:[0],iInterval:30},mdSensitivityEffectCopy:{img:(t={},Object(es["a"])(t,We["a"].LOW,as.a),Object(es["a"])(t,We["a"].MIDDLE,ss.a),Object(es["a"])(t,We["a"].HIGH,cs.a),t),des:(n={},Object(es["a"])(n,We["a"].LOW,q["a"].t("device_pir_settings_sensitivity_settings_page_sensitivity_low_describe")),Object(es["a"])(n,We["a"].MIDDLE,q["a"].t("device_pir_settings_sensitivity_settings_page_sensitivity_mid_describe")),Object(es["a"])(n,We["a"].HIGH,q["a"].t("device_pir_settings_sensitivity_settings_page_sensitivity_high_describe")),n)},bEnable:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"bEnable"},iSensitivityValue:{isSetting:!1,warnClue:!1,value:0,min:1,max:100,bgColor:"#AAA",contentBgColor:"#535E6B",flag:"iSensitivityValue"},eSensitivity:{support:!1,isSetting:!1,warnClue:!1,flag:"eSensitivity",currentVal:N["BC_RF_SENSITIVITY_E"].BC_RF_SENSITIVITY_LOW,options:[{value:N["BC_RF_SENSITIVITY_E"].BC_RF_SENSITIVITY_LOW,name:this.$t("common_Low")},{value:N["BC_RF_SENSITIVITY_E"].BC_RF_SENSITIVITY_MIDDLE,name:this.$t("common_Middle")},{value:N["BC_RF_SENSITIVITY_E"].BC_RF_SENSITIVITY_HIGH,name:this.$t("common_High")}]},isScheduleSetting:!1}},computed:{handle:function(){return this.$store.getters.deviceHandle},isNvr:function(){return this.$store.getters.isNvr},useSelect:function(){return 2===this.deviceVersion},activedSensitivityLevel:function(){return this.useSelect?this.changeSelectLevelToELevel(this.eSensitivity.currentVal):this.getSensitivityLevel(this.iSensitivityValue.value,this.iSensitivityValue.max)},scheduleProps:function(){var e={allowChannelSelect:!1,isLoadingPartCfg:!1,isScheduleSetting:this.isScheduleSetting,scheduleCate:te["EScheduleCate"].NORMAL,supportScheduleEnable:!0,scheduleType:"rf"};return Object(ct["a"])(Object(ct["a"])({},e),{},{motionRect:this.rf.iTimeTable,mdMode:N["BC_ALARM_IN_TYPE_E"].BC_ALARM_IN_RF,normalMode:N["BC_ALARM_IN_TYPE_E"].BC_ALARM_IN_TIMING,noneMode:0,timingSupport:!1})}},watch:{device:{handler:function(){this.deviceInit(!0)},immediate:!0}},methods:{deviceInit:function(){var e=arguments,t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e.length>0&&void 0!==e[0]&&e[0],t.isLoadingPirCfg=!0,t.isPirCfgRetry=!1,n.prev=3,t.device.config){n.next=6;break}return n.abrupt("return");case 6:return n.next=8,t.device.config.getRfAlarmCfg();case 8:t.rf=n.sent,t.rfUpdate(),n.next=16;break;case 12:n.prev=12,n.t0=n["catch"](3),t.isPirCfgRetry=!0,C["a"].error("rf.vue > deviceInit > getRfAlarmCfg: ",n.t0);case 16:t.isLoadingPirCfg=!1,i&&t.$emit("loadingPirChange",!1);case 18:case"end":return n.stop()}}),n,null,[[3,12]])})))()},setRf:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setRfAlarmCfg(n.rf);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.rf=e,n.rfUpdate()),C["a"].error("rf.vue > setRf > setRfAlarmCfg: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},rfUpdate:function(){this.bEnable.isOpen=this.rf.bEnable,this.iSensitivityValue.value=101-this.rf.iSensitivityValue,this.eSensitivity.currentVal=this.rf.eSensitivity},alarmSwitch:function(e,t){var n=this,i=this.$data[t];Li["a"].changingEffect(i,(function(){n.rf[t]=i.isOpen=e}),this.setRf,JSON.parse(JSON.stringify(this.rf)))},sensitivityValueChanged:function(e){var t=this,n=this.iSensitivityValue;Li["a"].changingEffect(n,(function(){n.value=e,t.rf.iSensitivityValue=101-e}),this.setRf,JSON.parse(JSON.stringify(this.rf)))},rfSelect:function(e,t){var n=this,i=this.$data[t];Li["a"].changingEffect(i,(function(){n.rf[t]=i.currentVal=e}),this.setRf,JSON.parse(JSON.stringify(this.rf)))},changeSelectLevelToELevel:function(e){var t=We["a"].LOW;switch(e){case N["BC_RF_SENSITIVITY_E"].BC_RF_SENSITIVITY_HIGH:t=We["a"].HIGH;break;case N["BC_RF_SENSITIVITY_E"].BC_RF_SENSITIVITY_MIDDLE:t=We["a"].MIDDLE;break;case N["BC_RF_SENSITIVITY_E"].BC_RF_SENSITIVITY_LOW:default:t=We["a"].LOW;break}return t},getSensitivityLevel:function(e,t){return e?e>2*t/3?We["a"].HIGH:e>t/3?We["a"].MIDDLE:We["a"].LOW:We["a"].LOW},saveScheduleLegacy:function(e){var t=Object(l["g"])(this.rf);this.rf.iTimeTable=e,Li["a"].saveScheduleEffect(this.$store,this.$data,t,this.setRf)}}}),ds=ls,ps=(n("0dd5"),Object(g["a"])(ds,Qr,Xr,!1,null,null,null)),hs=ps.exports,ms=u["a"].extend({name:"alarm",components:{rf:hs,motionDetect:We["b"],retry:be["a"],remoteTitleBar:us["a"]},data:function(){return{isLoadingDataRetry:!1,isLoadingPirCfg:!1,isLoadingMotionCfg:!1,alarmStatus:!1,showAlarmSchedule:!1,deviceVersion:0,device:{},channels:[],supportPir:!1}},computed:{handle:function(){return this.$store.getters.deviceHandle},isConfigContextLoading:function(){return this.supportPir&&this.isLoadingPirCfg||this.isLoadingMotionCfg}},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.init();case 1:case"end":return e.stop()}}),e)})))()},immediate:!0},isConfigContextLoading:{handler:function(e){this.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",e)},immediate:!0}},methods:{init:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoadingDataRetry=!1,e.isLoadingPirCfg=!0,e.isLoadingMotionCfg=!0,t.prev=3,t.next=6,B["a"].getDeviceWithHandle(e.handle);case 6:return e.device=t.sent,t.next=9,Promise.all([e.device.rfVersion(),e.device.supportEmailTask(),e.device.rfNumbers()]);case 9:return n=t.sent,i=Object(T["a"])(n,3),a=i[0],r=i[1],s=i[2],e.supportPir=(2===a||4===a)&&s<=1,e.deviceVersion=a,r?(e.showAlarmSchedule=!1,e.alarmStatus=!0):e.showAlarmSchedule=!0,t.next=19,e.device.getChannels();case 19:e.channels=t.sent,t.next=26;break;case 22:t.prev=22,t.t0=t["catch"](3),e.isLoadingDataRetry=!0,C["a"].error("alarm.vue > init: ",t.t0);case 26:case"end":return t.stop()}}),t,null,[[3,22]])})))()},loadingPirChange:function(e){this.isLoadingPirCfg=e},loadingMotionChange:function(e){this.isLoadingMotionCfg=e}}}),gs=ms,fs=(n("07e9"),Object(g["a"])(gs,Zr,Jr,!1,null,"6f0a7799",null)),_s=fs.exports,vs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"config-context-inner"},[n("remoteTitleBar",{attrs:{title:e.$t("common_Network")}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"network config-scroll-box",attrs:{"data-id":"network-div"}},[n("div",{staticClass:"general-box",attrs:{"data-id":"general-box"}},[n("ul",{staticClass:"connection-info flex"},[e.ENetType.WIRE===e.currentNetType?n("li",{staticClass:"connection-item"},[n("div",{staticClass:"flex-between connection-icon"},[n("span",{staticClass:"icon-client_poelink2"}),e.connectTypeIcon?n("span",{staticClass:"connect-type",class:e.connectTypeIcon.icon,attrs:{title:e.connectTypeIcon.title,"data-id":"wired-connectTypeIcon-span"}}):e._e()]),n("div",{staticClass:"flex connection-name-wrap"},[n("span",{staticClass:"connection-name text-bold",attrs:{title:e.$t("common_ethernet_cable")}},[e._v(e._s(e.$t("common_ethernet_cable")))])]),n("div",{staticClass:"flex state-wrap active"},[n("span",{staticClass:"state-clue"}),n("span",{staticClass:"state-text",attrs:{title:e.$t("common_Connected")}},[e._v(e._s(e.$t("common_Connected")))])])]):e._e(),e.supportWifi?n("li",{staticClass:"connection-item"},[n("div",{staticClass:"flex-between connection-icon"},[n("div",{staticClass:"network-signal-wrap"},[n("span",{staticClass:"bg-signal",class:e.getIconWifiSignalBgClassName(e.currentConnect.protocol)}),n("span",{staticClass:"fore-signal",class:e.getIconWifiSignalClassName(e.currentConnect.protocol,e.currentConnect.signalStrength)})]),e.connectTypeIcon&&e.ENetType.WIFI===e.currentNetType?n("span",{staticClass:"connect-type",class:e.connectTypeIcon.icon,attrs:{title:e.connectTypeIcon.title,"data-id":"WiFi-connectTypeIcon-span"}}):e._e()]),n("div",{staticClass:"connection-name-wrap flex short"},[n("span",{staticClass:"connection-name text-bold",attrs:{title:e.$t("wifi_config_page_titile")}},[e._v(e._s(e.$t("wifi_config_page_titile")))]),n("div",{staticClass:"cell-inner",attrs:{title:e.$t("common_view_settings"),"data-id":"setWifiDialog"},on:{click:e.setWifiDialog}},[n("span",{staticClass:"btn-icon icon-client_setting"})])]),n("div",{staticClass:"flex state-wrap",class:{active:e.ENetType.WIFI===e.currentNetType}},[n("span",{staticClass:"state-clue"}),n("span",{staticClass:"state-text",attrs:{title:e.getWifiHoverText(e.currentConnect.type)}},[e._v(e._s(e.currentConnect.ssid?e.currentConnect.ssid:e.$t("common_Unset")))])])]):e._e(),e.supportSim?n("li",{staticClass:"connection-item"},[n("div",{staticClass:"flex-between connection-icon sim-icon-wrap"},[n("div",{staticClass:"flex"},[e.isSimInserted?n("span",{staticClass:"signal-level",class:e.signalModeIcon}):e._e(),n("div",{staticClass:"network-signal-wrap"},[n("span",{staticClass:"icon-client_signal_4 bg-signal"}),e.isSimInserted?n("span",{staticClass:"fore-signal",class:e.signalStrengthIconList[e.signalStrength]}):e._e()])]),e.connectTypeIcon&&e.ENetType.SIM===e.currentNetType?n("span",{staticClass:"connect-type",class:e.connectTypeIcon.icon,attrs:{title:e.connectTypeIcon.title,"data-id":"sim-connectTypeIcon-span"}}):e._e()]),n("div",{staticClass:"flex connection-name-wrap"},[n("span",{staticClass:"connection-name text-bold",attrs:{title:e.$t("common_sim")}},[e._v(e._s(e.$t("common_sim")))])]),n("div",{staticClass:"flex state-wrap",class:{active:e.ENetType.SIM===e.currentNetType}},[n("span",{staticClass:"state-clue"}),n("span",{staticClass:"state-text",attrs:{title:e.isSimInserted?e.$t("common_inserted"):e.$t("common_uninserted")}},[e._v(e._s(e.isSimInserted?e.$t("common_inserted"):e.$t("common_uninserted")))])])]):e._e()]),e.ENetType.SIM===e.currentNetType?n("div",{staticClass:"general-info",attrs:{"data-id":"support-sim-general-info-div"}},[n("ul",e._l(e.simGeneral,(function(t,i){return n("li",{key:i,staticClass:"flex"},[n("span",{staticClass:"info-name text"},[e._v(e._s(t.name))]),n("span",{staticClass:"info-val notes-text no-drag",attrs:{"data-id":"support-sim-general-info-"+t.name+"-val"},on:{contextmenu:function(t){return t.stopPropagation(),e.showRightMenu(t)}}},[e._v(e._s(t.val))])])})),0)]):n("div",{staticClass:"general-info",attrs:{"data-id":"not-support-sim-general-info-div"}},[n("ul",e._l(e.general,(function(t,i){return n("li",{key:i,staticClass:"flex"},[n("span",{staticClass:"info-name text"},[e._v(e._s(t.name))]),n("span",{staticClass:"info-val notes-text no-drag",attrs:{"data-id":"not-support-sim-general-info-"+t.name+"-val"},on:{contextmenu:function(t){return t.stopPropagation(),e.showRightMenu(t)}}},[e._v(e._s(t.val))])])})),0),e.isBattery?e._e():n("button",{staticClass:"gray-button",attrs:{"reo-element":"","data-id":"not-support-sim-general-info-button"},on:{click:e.setGeneralNetwork}},[e._v(e._s(e.$t("common_Setup")))])])]),e.supportGDPR?n("div",{staticClass:"gdpr-wrap",attrs:{"data-id":"gdpr-wrap"}},[n("div",{staticClass:"gdpr-switch-box flex-between"},[n("div",{staticClass:"title-with-status-wrap flex"},[n("span",[e._v(e._s(e.$t("device_remote_serve")))]),e.gdprStatus.isSetting&&!e.gdprStatus.warnClue?n("loadingImg",{staticClass:"loading-img-box"}):e._e(),e.gdprStatus.warnClue&&!e.gdprStatus.isSetting?n("span",{staticClass:"icon-client_warning warn-clue-icon"}):e._e()],1),n("slideBtn",e._b({attrs:{isSetting:!1,warnClue:!1,"data-id":"gdpr-slideBtn"},on:{stateChange:e.gdprStatusSwitch},nativeOn:{"!click":function(t){return e.preGdprStatusSwitch(t)}}},"slideBtn",e.gdprStatus,!1))],1),n("div",{staticClass:"server-choice flex-between"},[n("div",{staticClass:"title-with-status-wrap flex"},[n("span",[e._v(e._s(e.$t("common_server")))]),e.serverList.isSetting&&!e.serverList.warnClue?n("loadingImg",{staticClass:"loading-img-box"}):e._e(),e.serverList.warnClue&&!e.serverList.isSetting?n("span",{staticClass:"icon-client_warning warn-clue-icon"}):e._e()],1),n("selectBox",e._b({staticClass:"select-box",attrs:{"data-id":"server-choice-selectBox",isSetting:!1,warnClue:!1,limitOptions:8},on:{selectChanged:e.serverSelect}},"selectBox",e.serverList,!1))],1),n("p",{staticClass:"server-des"},[e._v(e._s(e.$t("gdpr_select_server_tip")))]),n("ul",{staticClass:"des-list"},[n("li",[e._v("* "+e._s(e.$t("reolink_network_service_function_des1")))]),n("li",[e._v("* "+e._s(e.$t("common_smart_home")))])])]):e._e(),e.supportWifiKit?n("div",{staticClass:"toogle-controller",class:{"show-detail":e.showWifiKit}},[n("div",{staticClass:"toogle-controller-title",on:{click:function(t){e.showWifiKit=!e.showWifiKit}}},[n("span",[e._v(e._s(e.$t("nvr_wifi_hotspot")))]),n("span",{class:[e.showWifiKit?"icon-client_arrow_up":"icon-client_arrow_down"]})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showWifiKit,expression:"showWifiKit"}],staticClass:"wifi-kit-box"},e._l(e.wifiFreqTypeOptions,(function(t){return n("div",{key:t.value,staticClass:"content-item-wrap flex"},[n("div",{staticClass:"message-wrap"},[n("div",{staticClass:"content-item-title"},[e._v(e._s(t.name))]),n("div",{staticClass:"flex"},[n("span",{staticClass:"info-name"},[e._v(e._s(e.$t("wifi_ssid_name")))]),n("span",{staticClass:"info-value"},[e._v(e._s(e.wifiKitCfg[t.value].ssid))])]),n("div",{staticClass:"flex"},[n("span",{staticClass:"info-name"},[e._v(e._s(e.$t("common_password_password_description")))]),"checkbox"===(t.openWifiKitPasswordEye?"text":"password")?n("input",{directives:[{name:"model",rawName:"v-model",value:e.wifiKitCfg[t.value].password,expression:"wifiKitCfg[option.value].password"}],staticClass:"info-value",attrs:{oncopy:"return false;","reo-element":"",readonly:"",type:"checkbox"},domProps:{checked:Array.isArray(e.wifiKitCfg[t.value].password)?e._i(e.wifiKitCfg[t.value].password,null)>-1:e.wifiKitCfg[t.value].password},on:{change:function(n){var i=e.wifiKitCfg[t.value].password,a=n.target,r=!!a.checked;if(Array.isArray(i)){var s=null,o=e._i(i,s);a.checked?o<0&&e.$set(e.wifiKitCfg[t.value],"password",i.concat([s])):o>-1&&e.$set(e.wifiKitCfg[t.value],"password",i.slice(0,o).concat(i.slice(o+1)))}else e.$set(e.wifiKitCfg[t.value],"password",r)}}}):"radio"===(t.openWifiKitPasswordEye?"text":"password")?n("input",{directives:[{name:"model",rawName:"v-model",value:e.wifiKitCfg[t.value].password,expression:"wifiKitCfg[option.value].password"}],staticClass:"info-value",attrs:{oncopy:"return false;","reo-element":"",readonly:"",type:"radio"},domProps:{checked:e._q(e.wifiKitCfg[t.value].password,null)},on:{change:function(n){return e.$set(e.wifiKitCfg[t.value],"password",null)}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.wifiKitCfg[t.value].password,expression:"wifiKitCfg[option.value].password"}],staticClass:"info-value",attrs:{oncopy:"return false;","reo-element":"",readonly:"",type:t.openWifiKitPasswordEye?"text":"password"},domProps:{value:e.wifiKitCfg[t.value].password},on:{input:function(n){n.target.composing||e.$set(e.wifiKitCfg[t.value],"password",n.target.value)}}})])]),n("div",{staticClass:"btn-wrap flex"},[n("div",{staticClass:"cell-inner",class:{active:t.openWifiKitPasswordEye},attrs:{title:t.openWifiKitPasswordEye?e.$t("tooltip_HidePassword"):e.$t("remote_config_password_page_show_password")},on:{click:function(e){e.stopPropagation(),t.openWifiKitPasswordEye=!t.openWifiKitPasswordEye}}},[n("span",{staticClass:"btn-icon icon-client_showpassword"})]),n("div",{staticClass:"cell-inner",attrs:{title:e.$t("common_view_settings")},on:{click:function(n){return e.openWifiKitSettingDialog(t)}}},[n("span",{staticClass:"btn-icon icon-client_setting"})])])])})),0)]):e._e(),e.isBattery?e._e():n("div",{staticClass:"toogle-controller",class:{"show-detail":e.showAdvanced}},[n("div",{staticClass:"toogle-controller-title",attrs:{"data-id":"toggle-advanced-div"},on:{click:function(t){e.showAdvanced=!e.showAdvanced}}},[n("span",[e._v(e._s(e.$t("remote_config_page_advanced_label")))]),n("span",{class:[e.showAdvanced?"icon-client_arrow_up":"icon-client_arrow_down"]})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showAdvanced,expression:"showAdvanced"}],staticClass:"advanced-box",attrs:{"data-id":"advanced-box"}},[e.upnpStatus.support?n("div",{attrs:{"data-id":"upnpStatus-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_upnp_title")))]),n("slideBtn",e._b({attrs:{"data-id":"upnpStatus-slideBtn"},on:{stateChange:e.upnpStatusSwitch},nativeOn:{"!click":function(t){return e.preUpnpStatusSwitch(t)}}},"slideBtn",e.upnpStatus,!1))],1):e._e(),e.uid.cUid&&e.p2pStatus.support&&!e.supportGDPR?n("div",{attrs:{"data-id":"p2pStatus-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_network_UIDEnable")))]),n("slideBtn",e._b({attrs:{"data-id":"p2pStatus-slideBtn"},on:{stateChange:e.p2pStatusSwitch}},"slideBtn",e.p2pStatus,!1)),n("p",{staticClass:"restart-clue options-text"},[e._v(e._s(e.$t("common_uid_switch",{s1:e.appName})))])],1):e._e(),e.ddnsStatus.support?n("div",{attrs:{"data-id":"ddnsStatus-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_network_DDNSEnable")))]),n("slideBtn",e._b({attrs:{"data-id":"ddnsStatus-slideBtn"},on:{stateChange:e.ddnsStatusSwitch}},"slideBtn",e.ddnsStatus,!1))],1):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.ddnsStatus.isOpen,expression:"ddnsStatus.isOpen"}],attrs:{"data-id":"ddnsStatus-isOpen-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_network_DDNSSetting")))]),n("button",{staticClass:"gray-button",attrs:{"reo-element":"","data-id":"setDdnsDialog-button"},on:{click:e.setDdnsDialog}},[e._v(e._s(e.$t("common_Setup")))])]),n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_network_NTPSetting")))]),n("button",{staticClass:"gray-button",attrs:{"reo-element":"","data-id":"setNtpDialog-button"},on:{click:e.setNtpDialog}},[e._v(e._s(e.$t("common_Setup")))])]),n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_port_settings_title")))]),n("button",{staticClass:"gray-button",attrs:{"reo-element":"","data-id":"setPostDialog-button"},on:{click:e.setPostDialog}},[e._v(e._s(e.$t("common_Setup")))])]),e.supportHttpsCertInfo?n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("port_setting_https_settings_title")))]),n("button",{staticClass:"gray-button",attrs:{"reo-element":"","data-id":"setHttpsDialog-button"},on:{click:e.setHttpsDialog}},[e._v(e._s(e.$t("common_Setup")))])]):e._e()])])]),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:function(t){return e.init()}}}):e._e()],1)},bs=[],ws=u["a"].extend({name:"network",components:{slideBtn:Ci["a"],retry:be["a"],loadingImg:d["a"],remoteTitleBar:us["a"],selectBox:Xe["a"]},data:function(){var e;return{ENetType:te["ENetType"],appName:"Reolink",isLoadingDataRetry:!1,isSettingDefault:!1,showWifiKit:!1,showAdvanced:!1,wifiSignal:0,wifi:{},refreshing:!1,wifiTimer:null,wifiFreqTypeOptions:[{value:te["EWifiFreqType"].WIFI_TYPE_5G,name:"5G",openWifiKitPasswordEye:!1},{value:te["EWifiFreqType"].WIFI_TYPE_2_4G,name:"2.4G",openWifiKitPasswordEye:!1}],wifiKitCfg:(e={},Object(es["a"])(e,te["EWifiFreqType"].WIFI_TYPE_5G,{ssid:"",password:"",enableDfs:0}),Object(es["a"])(e,te["EWifiFreqType"].WIFI_TYPE_2_4G,{ssid:"",password:""}),e),currentConnect:{ssid:"",type:N["BC_WIFI_TYPE_E"].BC_WIFI_TYPE_UNKNOW,protocol:N["BC_WIFI_PROTOCOL"].BC_WIFI_PROTOCOL_UNKNOW,password:"",isEncrypt:!1,signalStrength:0},net:{eIpObtain:N["BC_IP_OBTAIN_E"].E_BC_NT_STATIC,eAutodns:N["BC_DNS_TYPE_E"].E_BC_DT_STATIC,cIp:"",cMask:"",cGateway:"",cMac:"",cDns1:"",cDns2:""},sim:{cIMEI:"",cICCID:"",cPhoneNum:""},ddns:{bEnable:!1,eType:N["BC_DDNS_TYPE_E"].E_BC_DT_NOIP,cDomainName:"",cUserName:"",cPassword:"",servAddr:"",servAddrList:[]},upnp:{iEnable:0},p2p:{iEnable:0,iPort:0,serverDomainName:""},uid:{cUid:"",cUidKey:""},gdprCfg:{iEnable:0,cIdentifier:"",cPushDomain:"",cP2PDomain:"",cUpgradeDomain:"",cCloudDomain:""},serverMap:{},gdprStatus:{isOpen:0,closeVal:0,openVal:1,isSetting:!1,warnClue:!1},serverList:{isSetting:!1,warnClue:!1,currentVal:"uk",options:[{name:"UK",value:"uk"},{name:"EN",value:"en"}]},supportGDPR:!1,general:{ipAddress:{name:this.$t("common_ipAddress"),val:""},subnetMask:{name:this.$t("common_subnetMask"),val:""},gateWay:{name:this.$t("common_gateWay"),val:""},preferredDNS:{name:this.$t("common_preferredDNS"),val:""},alternateDNS:{name:this.$t("common_alternateDNS"),val:""},macAddress:{name:this.$t("common_macAddress"),val:""}},simGeneral:{icc:{name:this.$t("remoteConfig_network_ICCID"),val:""},imei:{name:this.$t("remoteConfig_network_IMEI"),val:""}},p2pStatus:{support:!1,isOpen:0,closeVal:0,openVal:1,isSetting:!1,warnClue:!1},upnpStatus:{support:!1,isOpen:0,closeVal:0,openVal:1,isSetting:!1,warnClue:!1},ddnsStatus:{support:!1,isOpen:!1,isSetting:!1,warnClue:!1},isBattery:!1,isWifiNvr:!1,isSimInserted:!1,supportWifiKit:!1,supportSim:!1,supportWifi:!1,supportReportNetInfo:!1,sdkNetType:N["BC_DEVICE_NET_TYPE_E"].BC_DEVICE_NET_TYPE_WIRE,signalInfo:{iSignalIntensity:1,iSignalLevel:5,eMode:N["BC_3G4G_MODE_E"].BC_MODE_4G,iMobileOperator:0},signalModeIconList:["icon-client_2glink","icon-client_3glink","icon-client_4glink"],signalStrengthIconList:["icon-client_signal_1","icon-client_signal_2","icon-client_signal_3","icon-client_signal_4"],device:{},supportHttpsCertInfo:!1,connectionType:N["BCSDK_CONNECTION_TYPE_E"].BCSDK_CONNECTION_TYPE_UNKNOW}},computed:{isNvr:function(){return this.$store.getters.isNvr},isConfigContextLoading:function(){return this.$store.getters.configContextLoading},currentNetType:function(){if(this.isNvr)return te["ENetType"].WIRE;if(this.supportReportNetInfo){var e=te["ENetType"].WIRE;switch(this.sdkNetType){case N["BC_DEVICE_NET_TYPE_E"].BC_DEVICE_NET_TYPE_CELLULAR:this.supportSim&&(e=te["ENetType"].SIM);break;case N["BC_DEVICE_NET_TYPE_E"].BC_DEVICE_NET_TYPE_WIFI:this.supportWifi&&(e=te["ENetType"].WIFI);break;default:break}return e}return this.supportSim||this.supportWifi?100===this.wifiSignal?te["ENetType"].WIRE:this.supportSim?te["ENetType"].SIM:te["ENetType"].WIFI:te["ENetType"].WIRE},handle:function(){return this.$store.getters.deviceHandle},signalStrength:function(){return 1===this.signalInfo.iSignalLevel?0:2===this.signalInfo.iSignalLevel?1:3===this.signalInfo.iSignalLevel?2:3},signalModeIcon:function(){return[N["BC_3G4G_MODE_E"].BC_MODE_2G,N["BC_3G4G_MODE_E"].BC_MODE_3G,N["BC_3G4G_MODE_E"].BC_MODE_4G]?this.signalModeIconList[this.signalInfo.eMode-1]:this.signalModeIconList[2]},connectTypeIcon:function(){var e="",t="";switch(this.connectionType){case N["BCSDK_CONNECTION_TYPE_E"].BCSDK_CONNECTION_TYPE_RELAY:e="icon-client_network_relay",t="";break;default:break}return{icon:e,title:t}}},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.init();case 1:case"end":return e.stop()}}),e)})))()},immediate:!0},device:{handler:function(e,t){t&&t.state&&(t.state.removeObserver("netInfo",this.onNetInfoChange),t.state.removeObserver("signalInfo",this.onSignalInfoChange),t.state.removeObserver("connectionType",this.onConnectionTypeChange)),e&&e.state&&(e.state.addObserver("netInfo",this.onNetInfoChange),e.state.addObserver("signalInfo",this.onSignalInfoChange),e.state.addObserver("connectionType",this.onConnectionTypeChange))},immediate:!0}},methods:{onConnectionTypeChange:function(e){this.connectionType=e},init:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!0),t.prev=1,e.isLoadingDataRetry=!1,e.isSimInserted=!1,t.next=6,B["a"].getDeviceWithHandle(e.handle);case 6:return e.device=t.sent,t.next=9,e.getSupport();case 9:return n=[],e.supportWifi&&n.push(e.getWifi(),e.getWifiSignal()),e.supportSim&&n.push(e.getSim()),e.supportSim||e.supportReportNetInfo||n.push(e.getNet()),e.ddnsStatus.support&&n.push(e.getDDNS()),e.upnpStatus.support&&n.push(e.getUpnp()),e.p2pStatus.support&&n.push(e.getUid(),e.getP2p()),e.supportGDPR&&n.push(e.getGdprCfg(),e.getServerListOptions()),e.supportWifiKit&&n.push(e.getWifiKitCfg()),t.next=20,Promise.all(n);case 20:e.supportWifi&&e.wifiUpdate(),e.supportReportNetInfo?e.onNetInfoChange(e.device.state.get("netInfo")):e.onSignalInfoChange(e.device.state.get("signalInfo")),t.next=28;break;case 24:t.prev=24,t.t0=t["catch"](1),e.isLoadingDataRetry=!0,C["a"].error("network.vue > init: ",t.t0);case 28:e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!1);case 29:case"end":return t.stop()}}),t,null,[[1,24]])})))()},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.device.supportHttpsCertInfo(),e.device.supportP2PEnable(),e.device.isBattery(),e.device.supportUpnp(),e.device.supportDDNSCfg(),e.device.supportWiFiCfg(),e.device.supportSimModule(),e.device.supportReportNetInfo(),e.device.supportWifiKit(),e.device.supportGDPR()]);case 3:return n=t.sent,i=Object(T["a"])(n,10),e.supportHttpsCertInfo=i[0],e.p2pStatus.support=i[1],e.isBattery=i[2],e.upnpStatus.support=i[3],e.ddnsStatus.support=i[4],e.supportWifi=i[5],e.supportSim=i[6],e.supportReportNetInfo=i[7],e.supportWifiKit=i[8],e.supportGDPR=i[9],t.next=17,e.device.deviceType();case 17:a=t.sent,e.isWifiNvr=a===N["BC_DEVICE_TYPE_E"].E_BC_DEVICE_TYPE_WIFI_NVR,t.next=26;break;case 22:throw t.prev=22,t.t0=t["catch"](0),C["a"].error("network.vue > getSupport: ",t.t0),new Error;case 26:case"end":return t.stop()}}),t,null,[[0,22]])})))()},preGdprStatusSwitch:function(e){var t=this,n=this.gdprStatus.isOpen;if(n){e.stopPropagation();var i={type:"message",icon:"icon-client_warning",message:this.$t("reolink_network_service_disable_tip"),defaultBtnValue:0,buttons:[{title:this.$t("common_dialog_cancel_button"),value:0,class:"ghost-button",key:27},{title:this.$t("common_dialog_ok_button"),value:1,key:13}]};p["a"].openMessageDialog(this,i,(function(){t.gdprStatus.isOpen=0,t.gdprStatusSwitch(0)}))}},gdprStatusSwitch:function(e){var t=this,n=this.gdprStatus;Li["a"].changingEffect(n,(function(){t.gdprCfg.iEnable=n.isOpen=e}),this.setGdprCfg,Object(l["g"])(this.gdprCfg))},serverSelect:function(e){var t=this,n=this.serverList;Li["a"].changingEffect(n,(function(){n.currentVal=e;var i=t.serverMap[e];t.gdprCfg=Object(ct["a"])({iEnable:t.gdprCfg.iEnable,cIdentifier:e},i)}),this.setGdprCfg,Object(l["g"])(this.gdprCfg))},updateGdprCfg:function(){this.gdprStatus.isOpen=this.gdprCfg.iEnable,this.serverList.currentVal=this.gdprCfg.cIdentifier},getServerListOptions:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.device.loginDes(),cn["a"].getLocale()]);case 2:return n=t.sent,i=Object(T["a"])(n,2),a=i[0],r=i[1],t.prev=6,t.next=9,ae.getGDPRServerMap(a.uid,r);case 9:e.serverMap=t.sent,t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](6),C["a"].error("network.vue > getServerList: ",t.t0);case 15:for(s in e.serverList.options=[],e.serverMap)e.serverList.options.push({value:s,name:e.serverMap[s].location});case 17:case"end":return t.stop()}}),t,null,[[6,12]])})))()},getWifiKitCfg:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getWifiKitCfg();case 3:e.wifiKitCfg=t.sent,t.next=10;break;case 6:throw t.prev=6,t.t0=t["catch"](0),C["a"].error("network.vue > getWifiKitCfg: ",ce["a"].errorToJson(t.t0)),new Error;case 10:case"end":return t.stop()}}),t,null,[[0,6]])})))()},setWifiKitCfg:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.device.config.setWifiKitCfg(n.wifiKitCfg);case 3:t.next=10;break;case 5:throw t.prev=5,t.t0=t["catch"](0),n.wifiKitCfg=e,C["a"].error("network.vue > setWifiKitCfg: ",ce["a"].errorToJson(t.t0)),new Error;case 10:case"end":return t.stop()}}),t,null,[[0,5]])})))()},getGdprCfg:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getGDPRCfg();case 3:e.gdprCfg=t.sent,e.updateGdprCfg(),t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("network.vue > getGdprCfg: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setGdprCfg:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.device.config.setGDPRCfg(n.gdprCfg);case 3:t.next=12;break;case 6:throw t.prev=6,t.t0=t["catch"](0),n.gdprCfg=e,n.updateGdprCfg(),C["a"].error("network.vue > setGdprCfg: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,6]])})))()},getWifi:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getWifiCfg();case 3:e.wifi=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("network.vue > getWifi > getWifiCfg: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},getWifiSignal:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.device.config.getWifiSignal();case 2:n=t.sent,e.wifiSignal=n.iSignal;case 4:case"end":return t.stop()}}),t)})))()},wifiUpdate:function(){this.currentConnect.ssid=this.wifi.essid,this.currentConnect.password=this.wifi.key,this.currentConnect.signalStrength=this.calcSignalStrength(this.wifiSignal),this.currentConnect.isEncrypt=this.wifi.enccrypttype!==N["BC_WIFI_ENCRYPT_TYPE_E"].E_BC_WIFI_ENCRYPT_NONE,this.currentConnect.type=this.wifi.eType,this.currentConnect.protocol=this.wifi.protocol},calcSignalStrength:function(e){var t=3;return e<-70?t=0:e<-50?t=1:e<-40&&(t=2),t},onSignalInfoChange:function(e){this.supportReportNetInfo||(this.signalInfo=e)},onNetInfoChange:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.supportReportNetInfo){n.next=2;break}return n.abrupt("return");case 2:n.prev=2,t.sdkNetType=e.type,n.t0=e.type,n.next=n.t0===N["BC_DEVICE_NET_TYPE_E"].BC_DEVICE_NET_TYPE_WIRE?7:n.t0===N["BC_DEVICE_NET_TYPE_E"].BC_DEVICE_NET_TYPE_CELLULAR?10:n.t0===N["BC_DEVICE_NET_TYPE_E"].BC_DEVICE_NET_TYPE_WIFI?14:17;break;case 7:return n.next=9,Promise.all([t.getNet(),t.getSim(),t.getSimSignalInfo()]);case 9:return n.abrupt("break",18);case 10:return t.signalInfo=e.cellular,n.next=13,t.getSim();case 13:return n.abrupt("break",18);case 14:return n.next=16,t.getNet();case 16:return n.abrupt("break",18);case 17:return n.abrupt("break",18);case 18:n.next=24;break;case 21:n.prev=21,n.t1=n["catch"](2),C["a"].error("network.vue > onNetInfoChange: ",n.t1);case 24:case"end":return n.stop()}}),n,null,[[2,21]])})))()},getNet:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getNetworkCfg();case 3:e.net=t.sent,e.netUpdate(),t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("network.vue > getNet > getNetworkCfg: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setNet:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.device.config.setNetworkCfg(n.net);case 3:y["a"].IS_CLIENT&&n.uid.cUid||(e.cIp!==n.net.cIp?(y["a"].IS_CLIENT?p["a"].exitCurrentInterface():(window.sessionStorage.clear(),i="".concat(window.location.protocol,"//").concat(n.net.cIp),window.location.href=i),Object(l["d"])()):e.eIpObtain===N["BC_IP_OBTAIN_E"].E_BC_NT_STATIC&&n.net.eIpObtain===N["BC_IP_OBTAIN_E"].E_BC_NT_DHCP&&(y["a"].IS_CLIENT||window.sessionStorage.clear(),a={type:"message",message:y["a"].IS_CLIENT?n.$t("IP_CHANGE_ADD_DEVICE"):n.$t("IP_CHANGE_RELOGIN"),defaultBtnValue:0,buttons:[{title:n.$t("common_dialog_ok_button"),value:1,key:13}]},p["a"].openMessageDialog(n,a,(function(){if(y["a"].IS_CLIENT)p["a"].exitCurrentInterface();else{var e="".concat(window.location.protocol,"//").concat(n.net.cIp);window.location.href=e}})),Object(l["d"])())),t.next=13;break;case 7:throw t.prev=7,t.t0=t["catch"](0),n.net=e,n.netUpdate(),C["a"].error("network.vue > setNet cfg: ",t.t0),new Error;case 13:case"end":return t.stop()}}),t,null,[[0,7]])})))()},netUpdate:function(){this.general.ipAddress.val=this.net.cIp,this.general.subnetMask.val=this.net.cMask,this.general.gateWay.val=this.net.cGateway,this.general.preferredDNS.val=this.net.cDns1,this.general.alternateDNS.val=this.net.cDns2,this.general.macAddress.val=this.net.cMac},getSim:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.supportSim){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,e.device.config.getSimModuleInfo();case 5:e.sim=t.sent,e.isSimInserted=!0,e.simUpdate(),t.next=19;break;case 11:if(t.prev=11,t.t0=t["catch"](2),n=t.t0?t.t0.code:N["ERROR"].E_TYPE_UNKNOWN,N["BC_RSP_CODE_E"].E_BC_RSP_SIM_CARD_NOT_EXIST!==n){t.next=17;break}return e.isSimInserted=!1,t.abrupt("return");case 17:throw C["a"].error("network.vue > getSim: ",t.t0),new Error;case 19:case"end":return t.stop()}}),t,null,[[2,11]])})))()},getSimSignalInfo:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.supportSim){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,e.device.config.get3g4gInfo();case 5:e.signalInfo=t.sent,t.next=14;break;case 8:if(t.prev=8,t.t0=t["catch"](2),n=t.t0?t.t0.code:N["ERROR"].E_TYPE_UNKNOWN,N["BC_RSP_CODE_E"].E_BC_RSP_SIM_CARD_NOT_EXIST!==n){t.next=13;break}return t.abrupt("return");case 13:C["a"].error("network.vue > getSimSignalInfo: ",t.t0);case 14:case"end":return t.stop()}}),t,null,[[2,8]])})))()},simUpdate:function(){this.simGeneral.icc.val=this.sim.cICCID,this.simGeneral.imei.val=this.sim.cIMEI},getDDNS:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getDdns();case 3:e.ddns=t.sent,e.ddnsStatus.isOpen=e.ddns.bEnable,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("network.vue > getDDNS: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setDDNS:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.device.config.setDdns(n.ddns);case 3:t.next=12;break;case 6:throw t.prev=6,t.t0=t["catch"](0),n.ddns=e,n.ddnsStatus.isOpen=n.ddns.bEnable,C["a"].error("network.vue > setDDNS cfg: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,6]])})))()},getUpnp:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getUpnpCfg();case 3:e.upnp=t.sent,e.upnpStatus.isOpen=e.upnp.iEnable,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("network.vue > getUpnp: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setUpnp:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.device.config.setUpnpCfg(n.upnp);case 3:t.next=12;break;case 6:throw t.prev=6,t.t0=t["catch"](0),n.upnp=e,n.upnpStatus.isOpen=n.upnp.iEnable,C["a"].error("network.vue > setUpnp > setUpnpCfg: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,6]])})))()},getP2p:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getP2PCfg();case 3:e.p2p=t.sent,e.p2pStatus.isOpen=e.p2p.iEnable,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("network.vue > getP2p: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setP2p:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.device.config.setP2PCfg(n.p2p);case 3:t.next=12;break;case 6:throw t.prev=6,t.t0=t["catch"](0),n.p2p=e,n.p2pStatus.isOpen=n.p2p.iEnable,C["a"].error("network.vue > setP2p > setP2PCfg: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,6]])})))()},getUid:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getUidInfo();case 3:e.uid=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),C["a"].error("network.vue > getUid: ",t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},showRightMenu:function(){p["a"].handleRightClickMenu(["copy"])},preUpnpStatusSwitch:function(e){var t=this,n=this.upnpStatus.isOpen;n||(e.stopPropagation(),this.$store.commit("MODIFY_DIALOG_OPTIONS",{type:"message",icon:"icon-client_warning",message:this.$t("common_upnp_open_tips"),defaultBtnValue:0,buttons:[{title:this.$t("common_dialog_cancel_button"),value:0,class:"ghost-button",key:27},{title:this.$t("common_dialog_ok_button"),value:1,key:13}]}),this.$store.commit("SET_APP_DIALOG_CALLBACK",(function(e){e&&t.upnpStatusSwitch(~~!n)})),this.$store.commit("SET_DIALOGID","messageDialog"))},upnpStatusSwitch:function(e){var t=this,n=this.upnpStatus;Li["a"].changingEffect(n,(function(){t.upnp.iEnable=n.isOpen=e}),this.setUpnp,JSON.parse(JSON.stringify(this.upnp)))},p2pStatusSwitch:function(e){var t=this,n=this.p2pStatus;Li["a"].changingEffect(n,(function(){t.p2p.iEnable=n.isOpen=e}),this.setP2p,JSON.parse(JSON.stringify(this.p2p)))},ddnsStatusSwitch:function(e){var t=this,n=this.ddnsStatus;Li["a"].changingEffect(n,(function(){t.ddns.bEnable=n.isOpen=e}),this.setDDNS,JSON.parse(JSON.stringify(this.ddns)))},openWifiKitSettingDialog:function(e){var t=this;this.$store.commit("MODIFY_WIFI_KIT_SETTING_INFO",{wifiKitCfg:Object(l["g"])(this.wifiKitCfg),curFreqTypeInfo:e,saveCallback:function(e){if(e[te["EWifiFreqType"].WIFI_TYPE_5G].ssid!==e[te["EWifiFreqType"].WIFI_TYPE_2_4G].ssid){var n=Object(l["g"])(t.wifiKitCfg);t.wifiKitCfg=Object(l["g"])(e),Li["a"].saveEffect(t.$store,n,t.setWifiKitCfg)}else t.$store.commit("HANDLE_PROMPT",{promptStatus:R["PromptStatus"].failed,promptMessage:t.$t("device_init_setup_wifi_name_error")})}}),this.$store.commit("SET_DIALOGID","wifiKitSetting")},setGeneralNetwork:function(){var e=this;this.$store.commit("MODIFY_STORE_NETWORK",JSON.parse(JSON.stringify(this.net))),this.$store.commit("SET_SCHEDULE_CALLBACK",(function(t){var n=JSON.parse(JSON.stringify(e.net));e.net=JSON.parse(JSON.stringify(t)),Li["a"].saveEffect(e.$store,n,e.setNet)})),this.$store.commit("SET_DIALOGID","networkSetting")},setDdnsDialog:function(){var e=this;this.$store.commit("MODIFY_STORE_DDNS",JSON.parse(JSON.stringify(this.ddns))),this.$store.commit("SET_SCHEDULE_CALLBACK",(function(t){var n=JSON.parse(JSON.stringify(e.ddns));e.ddns=JSON.parse(JSON.stringify(t)),Li["a"].saveEffect(e.$store,n,e.setDDNS)})),this.$store.commit("SET_DIALOGID","ddnsSetting")},setNtpDialog:function(){this.$store.commit("SET_SCHEDULE_CALLBACK",(function(e){})),this.$store.commit("SET_DIALOGID","ntpSetting")},setPostDialog:function(){this.$store.commit("SET_DIALOGID","portSetting")},setHttpsDialog:function(){this.$store.commit("SET_DIALOGID","httpsSetting")},setWifiDialog:function(){var e=this;this.$store.commit("SET_SCHEDULE_CALLBACK",Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.getWifi();case 3:e.supportWifi&&e.wifiUpdate(),t.next=9;break;case 6:t.prev=6,t.t0=t["catch"](0),C["a"].error("network.vue > setWifiDialog > getWifi: ",t.t0);case 9:case"end":return t.stop()}}),t,null,[[0,6]])}))));var t=this.isWifiNvr?"wifiNvrSetting":"wifiSetting";this.$store.commit("SET_DIALOGID",t)},getIconWifiSignalBgClassName:function(e){return e===N["BC_WIFI_PROTOCOL"].BC_WIFI_PROTOCOL_WIFI6?"icon-client_wifi6_3":"icon-client_wifi_3"},getIconWifiSignalClassName:function(e,t){var n=["icon-client_wifi_0","icon-client_wifi_1","icon-client_wifi_2","icon-client_wifi_3"];return e===N["BC_WIFI_PROTOCOL"].BC_WIFI_PROTOCOL_WIFI6&&(n=n.map((function(e){return e.replace("icon-client_wifi","icon-client_wifi6")}))),n[t]},getWifiHoverText:function(e){switch(e){case N["BC_WIFI_TYPE_E"].BC_WIFI_TYPE_2_4G:return"".concat(this.currentConnect.ssid,"\n").concat(this.$t("common_chanel"),": 2.4G");case N["BC_WIFI_TYPE_E"].BC_WIFI_TYPE_5G:return"".concat(this.currentConnect.ssid,"\n").concat(this.$t("common_chanel"),": 5G");default:return this.currentConnect.ssid}}}}),Cs=ws,ys=(n("d827"),Object(g["a"])(Cs,vs,bs,!1,null,"3a09d327",null)),Ss=ys.exports,ks=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"config-context-inner"},[n("remoteTitleBar",{attrs:{title:e.$t("common_view_storage")}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"storage-wrap config-scroll-box"},[e.hdds.iTotal>0?n("ul",e._l(e.hdd,(function(t){return n("li",{directives:[{name:"show",rawName:"v-show",value:"hide"!==t.state,expression:"item.state!=='hide'"}],key:t.iNumber,staticClass:"list-item",class:{active:e.currentHdd===t.iNumber},on:{click:function(n){e.currentHdd=t.iNumber}}},[n("storageCard",{attrs:{cardInfo:t,showBottom:e.currentHdd===t.iNumber},scopedSlots:e._u([{key:"extraInfo",fn:function(){return[n("div",{staticClass:"flex hdd-status-box"},[n("div",{staticClass:"flex"},[n("span",{staticClass:"hdd-info-icon",class:[t.format?"icon-client_success":"icon-client_error",{"hdd-success":t.format}]}),n("span",{staticClass:"hdd-info-text"},[e._v(e._s(e.$t("common_Format")))])]),n("div",{staticClass:"flex"},[n("span",{staticClass:"hdd-info-icon",class:[t.mount?"icon-client_success":"icon-client_error",{"hdd-success":t.mount}]}),n("span",{staticClass:"hdd-info-text"},[e._v(e._s(e.$t("STR_MOUNT")))])]),t.version?n("div",{staticClass:"flex hdd-tip"},[e._v("v"+e._s(t.version))]):e._e()]),n("button",{attrs:{"reo-element":""},on:{click:function(n){return e.format(t)}}},[e._v(e._s(e.$t("common_Format")))])]},proxy:!0}],null,!0)})],1)})),0):e._e(),e.isBase?n("ul",[n("li",{staticClass:"list-item"},[n("storageCard",{scopedSlots:e._u([{key:"mainInfo",fn:function(){return[n("span",[e._v(e._s(e.$t("common_samba_feature")))]),n("slideBtn",e._b({on:{stateChange:e.sambaStatusSwitch}},"slideBtn",e.sambaStatus,!1))]},proxy:!0},{key:"extraInfo",fn:function(){return[n("button",{attrs:{"reo-element":""},on:{click:e.showSambaInfo}},[e._v(e._s(e.$t("base_samba_instructions_title")))])]},proxy:!0}],null,!1,2045734267)})],1)]):e._e(),e.supportBase&&e.baseUid?n("div",{staticClass:"bound-base-info"},[e.maxBindDevicesNum?n("ul",e._l(e.baseHdd,(function(t){return n("li",{directives:[{name:"show",rawName:"v-show",value:"hide"!==t.state,expression:"item.state!=='hide'"}],key:t.iNumber,staticClass:"list-item"},[n("storageCard",{attrs:{cardInfo:t},scopedSlots:e._u([{key:"extraInfo",fn:function(){return[n("div",{staticClass:"flex hdd-status-box"},[n("span",{staticClass:"base-bind-num"},[e._v(e._s(e.boundDevicesNum)+"/"+e._s(e.maxBindDevicesNum))]),n("span",{staticClass:"hdd-tip"},[e._v(e._s(e.$t("base_record_view_in_base_tip")))])]),n("button",{staticClass:"ghost-button",attrs:{"reo-element":""},on:{click:e.unbind}},[e._v(e._s(e.$t("common_unbind")))])]},proxy:!0}],null,!0)})],1)})),0):n("ul",[n("li",{staticClass:"list-item"},[n("storageCard",{scopedSlots:e._u([{key:"mainInfo",fn:function(){return[n("span",{attrs:{title:"Base"+e.baseUid}},[e._v("Base"+e._s(e.baseUid))])]},proxy:!0},{key:"extraInfo",fn:function(){return[n("button",{staticClass:"ghost-button",attrs:{"reo-element":""},on:{click:e.unbind}},[e._v(e._s(e.$t("common_unbind")))])]},proxy:!0}],null,!1,1129238963)})],1)])]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:0===e.hdds.iTotal,expression:"hdds.iTotal===0"}],staticClass:"storage-empty"},[n("p",{staticClass:"empty-title"},[e._v(e._s(e.noStorage.detection))]),n("p",{staticClass:"empty-content"},[e._v(e._s(e.noStorage.manage))]),n("div",{staticClass:"img-box"},[n("img",{staticClass:"empty-img",attrs:{src:e.noStorage.img}})])])]),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:function(t){return e.init()}}}):e._e()],1)},As=[],Es=n("9f0a"),xs=n.n(Es),Os=n("a08a"),Is=n.n(Os),Ds=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"card-wrap"},[n("div",{staticClass:"card-wrap-up"},[n("div",{staticClass:"status-wrap flex-between"},[e._t("mainInfo",[e.cardInfo?n("div",{staticClass:"flex"},[n("span",{staticClass:"hdd-name text-omission",attrs:{title:e.cardInfo.name}},[e._v(e._s(e.cardInfo.name))]),"error"===e.cardInfo.state?n("span",{staticClass:"icon-client_warning warning-icon"}):e._e()]):e._e(),e.cardInfo?n("span",[e._v(e._s(e.cardInfo.usedSize+" "+e.cardInfo.unit+" / "+e.cardInfo.maxSize+" "+e.cardInfo.unit))]):e._e()])],2),e.cardInfo?n("div",{staticClass:"proportion-bar"},[n("div",{staticClass:"proportion-used",class:[e.cardInfo.state],style:{width:e.cardInfo.usedSize/e.cardInfo.maxSize*100+"%"}})]):e._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showBottom,expression:"showBottom"}],staticClass:"card-wrap-bottom flex-between"},[e._t("extraInfo")],2)])},Ts=[],Rs=u["a"].extend({name:"storageCard",props:{cardInfo:{type:Object},showBottom:{type:Boolean,default:!0}}}),Ps=Rs,Ls=(n("306b"),Object(g["a"])(Ps,Ds,Ts,!1,null,"04a8d529",null)),Ms=Ls.exports,Ns=u["a"].extend({name:"storage",components:{retry:be["a"],slideBtn:Ci["a"],storageCard:Ms,remoteTitleBar:us["a"]},data:function(){return{isLoadingDataRetry:!1,isSettingDefault:!1,currentHdd:-1,hdds:{iTotal:1,hdd:[{iNumber:0,bFormat:!1,bMount:!1,eStorageType:N["BC_STORAGE_TYPE_E"].BC_STORAGE_TYPE_UNKNOWN,bIsInUse:!1,ullRemainSize:0,ullCapacity:0}]},hdd:[{iNumber:0,type:"HDD",name:"HDDD01",usedSize:0,maxSize:5,unit:"GB",state:"hide",format:!1,mount:!1}],baseHdd:[{iNumber:0,type:"HDD",name:"HDDD01",usedSize:0,maxSize:5,unit:"GB",state:"hide",format:!1,mount:!1}],sambaStatus:{support:!1,isOpen:0,closeVal:0,openVal:1,isSetting:!1,warnClue:!1},sambaCfg:{iEnable:0},activeInfoId:-1,showIndex:-1,imgNoHDD:xs.a,imgBaseNoStorage:Is.a,supprotHDD:null,isNVR:!1,supportBase:!1,deviceUid:"",baseUid:"",baseName:"",maxBindDevicesNum:0,boundDevicesNum:0,device:{},boundBase:{}}},computed:{isConfigContextLoading:function(){return this.$store.getters.configContextLoading},handle:function(){return this.$store.getters.deviceHandle},cType:function(){return this.$store.getters.deviceInfo.cType},isBase:function(){return this.$store.getters.isBase},noStorage:function(){return this.isBase?{img:Is.a,detection:this.$t("remote_playback_enter_not_mount"),manage:this.$t("base_storage_page_no_hdd_tip",{s1:"Reolink Drive"})}:this.supprotHDD?{img:xs.a,detection:this.$t("remote_playback_enter_not_mount"),manage:this.$t("hdd_config_page_no_hdd_instruction_without_pic")}:{img:"".concat("https://home-cdn.reolink.us/wp-content/assets/app","/model-images/").concat(this.cType,"/sd_card_slot.png"),detection:this.$t("remote_playback_enter_not_mount_sdcard"),manage:this.$t("hdd_config_page_no_sd_card_instruction_with_pic")}}},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.init();case 1:case"end":return e.stop()}}),e)})))()},immediate:!0}},methods:{init:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!0),t.prev=1,e.isLoadingDataRetry=!1,t.next=5,B["a"].getDeviceWithHandle(e.handle);case 5:return e.device=t.sent,t.next=8,Promise.all([e.device.isNVR(),e.device.supportHDD(),e.device.supportNasBind()]);case 8:return n=t.sent,i=Object(T["a"])(n,3),a=i[0],r=i[1],s=i[2],e.isNVR=a,e.supprotHDD=r,e.supportBase=s,t.next=18,e.getHdd();case 18:if(!e.isBase){t.next=21;break}return t.next=21,e.getSamba();case 21:if(!e.supportBase){t.next=24;break}return t.next=24,e.getBoundBase();case 24:t.next=30;break;case 26:t.prev=26,t.t0=t["catch"](1),C["a"].error("storage.vue > init storage: ",t.t0),e.isLoadingDataRetry=!0;case 30:e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!1);case 31:case"end":return t.stop()}}),t,null,[[1,26]])})))()},getHdd:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getHDDCfg();case 3:n=t.sent,e.hddUpdate(n),t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("storage.vue > getHdd: ",t.t0),t.t0;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},getBaseHdd:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.boundBase.config.getHDDCfg();case 3:n=t.sent,e.hddUpdate(n,!0),t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("storage.vue > getBaseHdd: ",t.t0),t.t0;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},getBaseBindNums:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.boundBase.config.getNasBindInfo();case 3:n=t.sent,i=[],a=Object(ne["a"])(n.infoList);try{for(a.s();!(r=a.n()).done;)s=r.value,s.cUID&&te["ENasBindState"].BOUND===s.iBindStatus&&i.push(s.cUID)}catch(o){a.e(o)}finally{a.f()}return e.boundDevicesNum=i.length,t.next=10,e.boundBase.getBaseMaxBindNum();case 10:e.maxBindDevicesNum=t.sent,t.next=17;break;case 13:throw t.prev=13,t.t0=t["catch"](0),C["a"].error("storage.vue > getBaseBindNums: ",t.t0),t.t0;case 17:case"end":return t.stop()}}),t,null,[[0,13]])})))()},getSamba:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getSambaCfg();case 3:e.sambaCfg=t.sent,e.sambaStatus.isOpen=e.sambaCfg.iEnable,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("storage.vue > getSamba: ",t.t0),t.t0;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},getBoundBase:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getNasBindInfo();case 3:n=t.sent,i=[],a=Object(ne["a"])(n.infoList);try{for(a.s();!(r=a.n()).done;)s=r.value,s.cUID&&te["ENasBindState"].BOUND===s.iBindStatus&&i.push(s.cUID)}catch(o){a.e(o)}finally{a.f()}if(!i.length){t.next=25;break}return e.baseUid=i[0],t.prev=9,t.next=12,B["a"].getDeviceWithUID(e.baseUid);case 12:return e.boundBase=t.sent,e.baseName=e.boundBase.name,t.next=16,e.refreshBoundBase();case 16:return t.next=18,Promise.all([e.getBaseBindNums(),e.getBaseHdd()]);case 18:t.next=23;break;case 20:t.prev=20,t.t0=t["catch"](9),C["a"].error("storage.vue > getBoundBase > get Base info: ",t.t0);case 23:t.next=27;break;case 25:e.baseUid="",e.boundBase={};case 27:t.next=33;break;case 29:throw t.prev=29,t.t1=t["catch"](0),C["a"].error("storage.vue > getBoundBase: ",t.t1),t.t1;case 33:case"end":return t.stop()}}),t,null,[[0,29],[9,20]])})))()},hddUpdate:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!1,i=[],a=0;a100?i[a].name=this.$t("common_eSATA"):i[a].name=this.$t("common_HDD")+r.iNumber;break}t&&(i[a].name=this.baseName)}else i[a].type="SD Card",i[a].name=this.$t("common_sdCard");i[a].maxSize=parseFloat((r.ullCapacity/1024/1024/1024).toFixed(2)),i[a].usedSize=parseFloat(((r.ullCapacity-r.ullRemainSize)/1024/1024/1024).toFixed(2)),i[a].format=r.bFormat,i[a].mount=r.bMount}t?this.baseHdd=i:(this.hdd=i,this.hdds=e)},format:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:i="",i=y["a"].IS_CLIENT?"HDD"===e.type?t.$t("FORMAT_HDD"):t.$t("FORMAT_SDCARD_REBOOT"):"HDD"===e.type?t.$t("FORMAT_HDD_RELOGIN"):t.$t("FORMAT_SDCARD_REBOOT_RELOGIN");try{a={type:"message",title:t.$t("remoteConfig_hdd_FormatStorage"),message:i,countDown:10,defaultBtnValue:0,buttons:[{title:t.$t("common_dialog_cancel_button"),value:0,class:"ghost-button",key:27},{title:t.$t("common_dialog_ok_button"),value:1,key:13}]},p["a"].openMessageDialog(t,a,(function(){t.formatCallback(e.iNumber)}))}catch(r){C["a"].error("storage.vue > format hdd: ",r)}case 3:case"end":return n.stop()}}),n)})))()},formatCallback:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.$store.commit("HANDLE_LOADING",!0),i=t.hdds.hdd.find((function(t){return t.iNumber===e})),n.prev=2,a={iTotal:1,iInitId:[e],eStorageType:[i.eStorageType]},Object(l["d"])(),y["a"].IS_CLIENT){n.next=10;break}return t.device.config.initHdd(a),setTimeout((function(){t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].succeed)}),2e3),p["a"].afterHDDInit(),n.abrupt("return");case 10:return n.next=12,t.device.config.initHdd(a);case 12:if(i.eStorageType===N["BC_STORAGE_TYPE_E"].BC_STORAGE_TYPE_HDD){n.next=17;break}return t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].succeed),t.$store.commit("HANDLE_LOADING",!1),setTimeout((function(){p["a"].afterHDDInit()}),1e3),n.abrupt("return");case 17:return n.prev=17,n.next=20,t.getHdd();case 20:n.next=28;break;case 22:n.prev=22,n.t0=n["catch"](17),C["a"].error("storage.vue > formatCallback > getHdd: ",n.t0),r=t.hdd.find((function(t){return t.iNumber===e})),r.usedSize=0,r.state="normal";case 28:t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].succeed),n.next=35;break;case 31:n.prev=31,n.t1=n["catch"](2),t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),C["a"].error("storage.vue > formatCallback: ",n.t1);case 35:t.$store.commit("HANDLE_LOADING",!1),Object(l["v"])();case 37:case"end":return n.stop()}}),n,null,[[2,31],[17,22]])})))()},setSamba:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setSambaCfg(n.sambaCfg);case 3:i.next=10;break;case 5:throw i.prev=5,i.t0=i["catch"](0),t||(n.sambaCfg=e,n.sambaStatus.isOpen=n.sambaCfg.iEnable),C["a"].error("network.vue > setSamba > setSambaCfg: ",i.t0),new Error;case 10:case"end":return i.stop()}}),i,null,[[0,5]])})))()},sambaStatusSwitch:function(e){var t=this,n=this.sambaStatus;Li["a"].changingEffect(n,(function(){t.sambaCfg.iEnable=n.isOpen=e}),this.setSamba,JSON.parse(JSON.stringify(this.sambaCfg)))},showSambaInfo:function(){this.$store.commit("SET_DIALOGID","sambaInfo")},unbind:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!0),n={cUID:e.baseUid},t.next=5,e.device.config.unbindNas(n);case 5:if(!Object.keys(e.boundBase).length){t.next=24;break}if(t.prev=6,e.deviceUid){t.next=12;break}return t.next=10,e.device.config.getUidInfo();case 10:i=t.sent,e.deviceUid=i.cUid;case 12:return a={cUID:e.deviceUid},t.next=15,e.refreshBoundBase();case 15:return t.next=17,e.boundBase.config.unbindNas(a);case 17:return t.next=19,e.boundBase.resetLoopUpdateBaseInfo();case 19:t.next=24;break;case 21:t.prev=21,t.t0=t["catch"](6),C["a"].error("remoteconfig > storage.vue > unbind > base.unbindNas: ",t.t0);case 24:return t.next=26,e.getBoundBase();case 26:t.next=32;break;case 28:t.prev=28,t.t1=t["catch"](0),C["a"].error("remoteconfig > storage.vue > unbind: ",t.t1),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed);case 32:e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!1);case 33:case"end":return t.stop()}}),t,null,[[0,28],[6,21]])})))()},refreshBoundBase:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.boundBase.getOpenStatus();case 2:if(n=t.sent,N["BCSDK_DEVICE_STATE_E"].BCSDK_DEVICE_STATE_OPENSUCCESS===n){t.next=12;break}return t.prev=4,t.next=7,e.boundBase.reOpen();case 7:t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](4),C["a"].error("remoteconfig > storage.vue > refreshBoundBase: ",t.t0);case 12:case"end":return t.stop()}}),t,null,[[4,9]])})))()}}}),Bs=Ns,Fs=(n("74c5"),Object(g["a"])(Bs,ks,As,!1,null,null,null)),js=Fs.exports,Vs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"config-context-inner"},[n("remoteTitleBar",{attrs:{title:e.$t("base_manager_title")}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"management config-scroll-box"},[n("h5",{staticClass:"flex-between management-subtitle"},[n("span",[e._v(e._s(e.$t("base_bind_camera_camera_bound_state")))]),n("span",{staticClass:"boundDevices-percent"},[e._v(e._s(e.boundDevicesNum)+"/"+e._s(e.maxBindDevicesNum))])]),e.boundDevUids.length?e._l(e.boundDevUids,(function(t,i){return n("boundItem",{key:t+"boundDevice",staticClass:"management-item",attrs:{needHddFormat:e.needHddFormat,devName:e.boundDevNames[i],devUid:e.boundDevUids[i],baseDevice:e.baseDevice,baseUnbindCfg:e.baseUnbindCfg},on:{unbindSucceed:e.update,showStorageFormatDialog:e.showStorageFormatDialog}})})):n("div",{staticClass:"management-item empty-list"},[e._v(e._s(e.$t("common_no_camera_bound")))]),n("h5",{staticClass:"flex-between management-subtitle"},[n("span",[e._v(e._s(e.$t("common_bind_ipc")))]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.refreshing,expression:"!refreshing"}],staticClass:"icon-client_refresh_pro refresh-icon",on:{click:e.getCanBindDevices}}),e.refreshing?n("loadingImg",{staticClass:"connecting-img",attrs:{delay:0}}):e._e()],1),e.showedCanBindDevs.length?e._l(e.showedCanBindDevs,(function(t){return n("canBindItem",{key:t.handle+"device",staticClass:"management-item",attrs:{needHddFormat:e.needHddFormat,device:t,baseDevice:e.baseDevice,baseBindCfg:e.baseBindCfg,canBindUids:e.canBindUids,isFull:e.isFull},on:{bindSucceed:e.update,showStorageFormatDialog:e.showStorageFormatDialog}})})):n("div",{staticClass:"management-item empty-list"},[e._v(e._s(e.$t("base_bind_camera_no_support_camera_describe")))]),n("p",{staticClass:"binding-tips",attrs:{"reo-element":""}},[e._v(e._s(e.$t("base_bind_camera_unsupport_camera",{s1:"Reolink Drive",s2:e.$t("base_bind_camera_support_models")})))]),n("a",{staticClass:"supported-models-link",attrs:{"reo-element":""},on:{click:function(t){e.openWebLink(e.$t("drive_support_url"),t)}}},[e._v(e._s(e.$t("base_bind_camera_support_models")))]),e.drive_support_url?n("a",{staticClass:"supported-models-link",attrs:{"reo-element":""},on:{click:function(t){return e.openWebLink(e.drive_support_url,t)}}},[e._v(e._s(e.$t("base_bind_camera_support_models")))]):e._e()],2),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:e.init}}):e._e()],1)},Us=[],Hs=(n("c975"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bound-box"},[n("div",{staticClass:"main flex-between"},[n("span",{staticClass:"device-name",attrs:{title:e.devName}},[e._v(e._s(e.devName))]),n("ul",{staticClass:"device-settings flex"},[e.reloadStreamInfo||0===e.ableStreams.length||e.isStreamLoading?e._e():n("li",{staticClass:"btn-cell"},[n("div",{staticClass:"cell-inner",class:[e.streamSetting?"active-icon-btn":""],attrs:{title:e.$t("base_camera_management_upload_stream_type")},on:{click:function(t){t.stopPropagation(),e.streamSetting=!e.streamSetting}}},[n("span",{staticClass:"btn-icon icon-client_display"})]),e.streamSetting?e._e():n("span",{staticClass:"view-quality-icon-bg icon-client_stream_bg"}),e.streamSetting?e._e():n("span",{staticClass:"view-quality-icon",class:[e.E.ENasStream.MAIN_STREAM===e.curStreamType?"icon-view_high":"",e.E.ENasStream.SUB_STREAM===e.curStreamType?"icon-view_low":"",e.E.ENasStream.EXTEN_STREAM===e.curStreamType?2===e.ableStreams.length?e.ableStreams.indexOf(e.E.ENasStream.MAIN_STREAM)>-1?"icon-view_low":"icon-view_high":"icon-view_mid":""]})]),e.isStreamLoading?n("li",{staticClass:"btn-cell"},[n("div",{staticClass:"cell-inner disabled-icon-btn",attrs:{title:e.$t("base_camera_management_upload_stream_type")}},[n("loadingImg",{staticClass:"ab-center"})],1)]):e._e(),e.reloadStreamInfo&&!e.isStreamLoading?n("li",{staticClass:"btn-cell"},[n("div",{staticClass:"cell-inner",attrs:{title:e.$t("base_camera_management_upload_stream_type")},on:{click:function(t){return t.stopPropagation(),e.initStreamInfo(t)}}},[n("span",{staticClass:"btn-icon icon-client_refresh_pro"})])]):e._e(),e.isUnbindLoading?n("li",{staticClass:"btn-cell"},[n("div",{staticClass:"cell-inner disabled-icon-btn"},[n("loadingImg",{staticClass:"ab-center"})],1)]):n("li",{staticClass:"btn-cell"},[n("div",{staticClass:"cell-inner",attrs:{title:e.$t("common_unbind")},on:{click:function(t){return t.stopPropagation(),e.openUnbindDialog(t)}}},[n("span",{staticClass:"btn-icon icon-client_lossvideo"})])])])]),e.streamSetting?n("div",{staticClass:"stream-option-wrap"},e._l(e.streamOptions,(function(t,i){return n("label",{key:i,staticClass:"flex stream-label",class:{checked:e.showStreamType===t.value}},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.showStreamType,expression:"showStreamType",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"radio",name:"stream"},domProps:{value:t.value,checked:e._q(e.showStreamType,t.value)},on:{change:function(n){e.showStreamType=t.value}}}),n("span",{class:[e.showStreamType===t.value?"icon-client_success":"uncheck-icon"]}),n("p",[e._v(e._s(t.label))])])})),0):e._e()])}),Gs=[],Ws=u["a"].extend({name:"boundItem",components:{loadingImg:d["a"]},props:{needHddFormat:Boolean,devName:String,devUid:String,baseDevice:Object,baseUnbindCfg:Object},data:function(){return{device:{},E:te,streamSetting:!1,isStreamLoading:!1,isUnbindLoading:!1,reloadStreamInfo:!1,curStreamType:void 0,showStreamType:void 0,ableStreams:[],defaultOptions:[{value:te["ENasStream"].MAIN_STREAM,label:this.$t("common_clarity_stream_clear")},{value:te["ENasStream"].EXTEN_STREAM,label:this.$t("common_clarity_stream_balanced")},{value:te["ENasStream"].SUB_STREAM,label:this.$t("common_clarity_stream_fluent")}]}},computed:{streamOptions:function(){var e=this;return this.defaultOptions.filter((function(t){return e.ableStreams.indexOf(t.value)>-1}))}},watch:{streamSetting:function(e,t){!e&&t?window.removeEventListener("click",this.clickListener):e&&!t&&window.addEventListener("click",this.clickListener)},showStreamType:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(void 0!==e.showStreamType&&e.showStreamType!==e.curStreamType){t.next=2;break}return t.abrupt("return");case 2:return n={ableStreams:e.ableStreams,curStreams:[e.showStreamType]},e.isStreamLoading=!0,t.prev=4,t.next=7,e.refreshDevice();case 7:return t.next=9,e.device.config.setNasCfg(n);case 9:e.curStreamType=e.showStreamType,t.next=17;break;case 12:t.prev=12,t.t0=t["catch"](4),e.showStreamType=e.curStreamType,e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),C["a"].error("remoteconfig > boundItem.vue > showStreamType: ",t.t0);case 17:e.isStreamLoading=!1;case 18:case"end":return t.stop()}}),t,null,[[4,12]])})))()}},created:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,B["a"].getDeviceWithUID(e.devUid);case 3:return e.device=t.sent,t.next=6,e.initStreamInfo();case 6:t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),C["a"].error("remoteconfig > boundItem.vue > created: ",t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))()},methods:{clickListener:function(e){var t=e.target;(!t||-1===t.className.indexOf("stream-label")&&-1===t.parentNode.className.indexOf("stream-label"))&&(this.streamSetting=!1)},initStreamInfo:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.reloadStreamInfo=!1,e.isStreamLoading=!0,t.prev=2,t.next=5,e.refreshDevice();case 5:return t.next=7,e.device.config.getNasCfg();case 7:n=t.sent,e.showStreamType=n.curStreams[0],e.curStreamType=e.showStreamType,e.ableStreams=n.ableStreams,S["a"].handleEventListener("blur",(function(){e.streamSetting=!1})),t.next=18;break;case 14:t.prev=14,t.t0=t["catch"](2),e.reloadStreamInfo=!0,C["a"].error("remoteconfig > boundItem.vue > initStreamInfo: ",t.t0);case 18:e.isStreamLoading=!1;case 19:case"end":return t.stop()}}),t,null,[[2,14]])})))()},openUnbindDialog:function(){var e=this;if(this.needHddFormat)this.$emit("showStorageFormatDialog");else{var t={type:"message",title:this.$t("base_unbind_alert_title"),message:this.$t("base_unbind_alert_message"),defaultBtnValue:1,buttons:[{title:this.$t("common_dialog_cancel_button"),value:0,class:"ghost-button",key:27},{title:this.$t("common_dialog_ok_button"),value:1,key:13}]};S["a"].openMessageDialog(this,t,(function(){e.unbind()}))}},unbind:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isUnbindLoading=!0,t.prev=1,n={cUID:e.devUid},t.next=5,e.baseDevice.config.unbindNas(n);case 5:if(!Object.keys(e.device).length){t.next=16;break}return t.prev=6,t.next=9,e.refreshDevice();case 9:return t.next=11,e.device.config.unbindNas(e.baseUnbindCfg);case 11:t.next=16;break;case 13:t.prev=13,t.t0=t["catch"](6),C["a"].error("remoteconfig > boundItem.vue > unbind > ipc.unbindNas: ",t.t0);case 16:e.$emit("unbindSucceed","unbind",e.device.handle,e.devUid,""),t.next=24;break;case 19:t.prev=19,t.t1=t["catch"](1),C["a"].error("remoteconfig > boundItem.vue > unbind: ",t.t1),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),e.isUnbindLoading=!1;case 24:case"end":return t.stop()}}),t,null,[[1,19],[6,13]])})))()},refreshDevice:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.device.getOpenStatus();case 2:if(n=t.sent,N["BCSDK_DEVICE_STATE_E"].BCSDK_DEVICE_STATE_OPENSUCCESS===n){t.next=12;break}return t.prev=4,t.next=7,e.device.reOpen();case 7:t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](4),C["a"].error("remoteconfig > boundItem.vue > refreshDevice: ",t.t0);case 12:case"end":return t.stop()}}),t,null,[[4,9]])})))()}}}),zs=Ws,Ys=(n("a438"),Object(g["a"])(zs,Hs,Gs,!1,null,"db0c56f6",null)),qs=Ys.exports,$s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"can-bind-box flex-between"},[n("div",{staticClass:"device-info"},[n("div",{staticClass:"device-name",attrs:{title:e.device.name}},[e._v(e._s(e.device.name))]),e.showStatus?n("div",{staticClass:"device-status flex"},[n("span",{staticClass:"state-clue",class:{error:e.isError,warn:e.isWarn}}),n("span",{staticClass:"notes-text clue-string"},[e._v(e._s(e.clueText))])]):e._e()]),e.isBindReady?n("ul",{staticClass:"device-settings flex"},[e.isLoading?n("li",{staticClass:"btn-cell"},[n("div",{staticClass:"cell-inner disabled-icon-btn"},[n("loadingImg",{staticClass:"ab-center"})],1)]):n("li",{staticClass:"btn-cell"},[n("div",{staticClass:"cell-inner",class:[e.isFull?"disabled-icon-btn":""],attrs:{title:e.$t("common_bind_view")},on:{click:function(t){return t.stopPropagation(),e.bindNasTry(t)}}},[n("span",{staticClass:"btn-icon icon-client_local"})])])]):n("span",{staticClass:"status-tips"},[e._v(e._s(e.statusTip))])])},Ks=[],Zs=u["a"].extend({name:"canBindItem",props:{canBindUids:Map,device:Object,baseDevice:Object,baseBindCfg:Object,isFull:Boolean,needHddFormat:Boolean},components:{loadingImg:d["a"]},data:function(){return{clueText:"",showStatus:!1,isError:!1,isWarn:!1,isLoading:!1,isBindReady:!0,statusTip:""}},created:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getStatusTip();case 2:case"end":return t.stop()}}),t)})))()},methods:{bindNasTry:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.isFull){t.next=2;break}return t.abrupt("return");case 2:if(e.showStatus=!1,e.isLoading=!0,n=[],!e.needHddFormat){t.next=9;break}return e.$emit("showStorageFormatDialog"),e.isLoading=!1,t.abrupt("return");case 9:return t.prev=9,t.next=12,e.refreshDevice();case 12:return t.next=14,e.device.config.getNasBindInfo();case 14:i=t.sent,a=Object(ne["a"])(i.infoList);try{for(a.s();!(r=a.n()).done;)s=r.value,s.cUID&&te["ENasBindState"].BOUND===s.iBindStatus&&n.push(s.cUID)}catch(o){a.e(o)}finally{a.f()}t.next=28;break;case 19:return t.prev=19,t.t0=t["catch"](9),C["a"].error("remoteconfig > canBindItem.vue > bindNasTry > refreshDevice or getNasBindInfo: ",t.t0),e.showStatus=!0,e.isError=!0,e.isWarn=!1,e.clueText=e.$t("base_camera_bind_base_bind_failed"),e.isLoading=!1,t.abrupt("return");case 28:if(e.isLoading=!1,!n.length){t.next=33;break}e.openBindDialog(),t.next=35;break;case 33:return t.next=35,e.bind();case 35:case"end":return t.stop()}}),t,null,[[9,19]])})))()},openBindDialog:function(){var e=this,t={type:"message",title:this.$t("base_bind_camera"),message:this.$t("base_bind_camera_will_unbind_another_base",{s1:this.device.name,s2:"Reolink Drive",s3:this.baseDevice.name}),defaultBtnValue:1,buttons:[{title:this.$t("common_dialog_cancel_button"),value:0,class:"ghost-button",key:27},{title:this.$t("common_dialog_ok_button"),value:1,key:13}]};S["a"].openMessageDialog(this,t,(function(){e.bind()}))},bind:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.prev=1,t.next=4,e.refreshDevice();case 4:return t.next=6,e.device.config.bindNas(e.baseBindCfg);case 6:e.$emit("bindSucceed","bind",e.device.handle,"",e.device.name),t.next=15;break;case 9:t.prev=9,t.t0=t["catch"](1),n=t.t0?t.t0.code:-9999,i=N["BC_RSP_CODE_E"].E_BC_RSP_SYS_BUSY===n,i?(e.showStatus=!0,e.isWarn=!0,e.isError=!1,e.clueText=e.$t("base_bind_camera_cloud_already_enbled_title")):(e.showStatus=!0,e.isError=!0,e.isWarn=!1,e.clueText=e.$t("base_camera_bind_base_bind_failed")),e.isLoading=!1;case 15:case"end":return t.stop()}}),t,null,[[1,9]])})))()},getStatusTip:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s,o,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.device.getOpenStatus(),e.device.isNotSafeLogin(),e.device.config.getVersionInfo()]);case 3:if(n=t.sent,i=Object(T["a"])(n,3),a=i[0],r=i[1],s=i[2],N["BCSDK_DEVICE_STATE_E"].BCSDK_DEVICE_STATE_OPENSUCCESS!==a||!r){t.next=12;break}return e.isBindReady=!1,e.statusTip=e.$t("common_notInit"),t.abrupt("return");case 12:return o=e.canBindUids.get(e.device.handle),o=o||"",t.next=16,S["a"].checkNewFirmwareForBase(s.cFirmwareVer,o);case 16:c=t.sent,c&&(e.isBindReady=!1,e.statusTip=e.$t("base_bind_not_upgraded_title")),t.next=23;break;case 20:t.prev=20,t.t0=t["catch"](0),C["a"].error("remoteconfig > canBindItem.vue > getStatusTip: ",t.t0);case 23:case"end":return t.stop()}}),t,null,[[0,20]])})))()},refreshDevice:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.device.getOpenStatus(),e.device.isNotSafeLogin()]);case 2:if(n=t.sent,i=Object(T["a"])(n,2),a=i[0],r=i[1],N["BCSDK_DEVICE_STATE_E"].BCSDK_DEVICE_STATE_OPENSUCCESS===a){t.next=20;break}if(r){t.next=18;break}return t.prev=8,t.next=11,e.device.reOpen();case 11:t.next=16;break;case 13:t.prev=13,t.t0=t["catch"](8),C["a"].error("remoteconfig > canBindItem.vue > refreshDevice: ",t.t0);case 16:t.next=20;break;case 18:e.isBindReady=!1,e.statusTip=e.$t("common_notInit");case 20:case"end":return t.stop()}}),t,null,[[8,13]])})))()}}}),Js=Zs,Qs=(n("1f32"),Object(g["a"])(Js,$s,Ks,!1,null,"2d5a4e60",null)),Xs=Qs.exports,eo=u["a"].extend({name:"management",components:{boundItem:qs,canBindItem:Xs,loadingImg:d["a"],retry:be["a"],remoteTitleBar:us["a"]},data:function(){return{drive_support_url:this.$t("drive_support_url"),isLoadingDataRetry:!1,loading:!1,refreshing:!1,baseDevice:{},baseDeviceUid:"",canBindDevices:[],canBindUids:new Map,boundDevNames:[],boundDevUids:[],maxBindDevicesNum:0,boundInfo:{},baseUnbindCfg:{},baseBindCfg:{},needHddFormat:!1,isOnceInited:!1}},computed:{isConfigContextLoading:function(){return this.$store.getters.configContextLoading},handle:function(){return this.$store.getters.deviceHandle},boundDevicesNum:function(){return this.boundDevUids.length},isFull:function(){return this.boundDevicesNum===this.maxBindDevicesNum},showedCanBindDevs:function(){var e=this;return this.canBindDevices.filter((function(t){var n=e.canBindUids.get(t.handle);return n&&-1===e.boundDevUids.indexOf(n)}))}},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.init();case 2:case"end":return e.stop()}}),e)})))()},immediate:!0}},activated:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.isOnceInited?e.refreshStorageData():(e.isOnceInited=!0,e.init());case 1:case"end":return t.stop()}}),t)})))()},methods:{init:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!0),t.prev=1,e.isLoadingDataRetry=!1,t.next=5,B["a"].getDeviceWithHandle(e.handle);case 5:return e.baseDevice=t.sent,t.next=8,e.baseDevice.getBaseMaxBindNum();case 8:return e.maxBindDevicesNum=t.sent,t.next=11,e.baseDevice.config.getUidInfo();case 11:return n=t.sent,e.baseDeviceUid=n.cUid,e.baseUnbindCfg={cUID:e.baseDeviceUid},t.next=16,e.getBoundDevices();case 16:return t.next=18,Promise.all([e.getBaseBindCfg(),e.getCanBindDevices()]);case 18:return t.next=20,e.baseDevice.resetLoopUpdateBaseInfo();case 20:return t.next=22,e.refreshStorageData();case 22:t.next=28;break;case 24:t.prev=24,t.t0=t["catch"](1),C["a"].error("remoteconfig > management.vue > init: ",t.t0),e.isLoadingDataRetry=!0;case 28:e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!1);case 29:case"end":return t.stop()}}),t,null,[[1,24]])})))()},refreshStorageData:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=3;case 1:return t.prev=1,t.next=4,e.baseDevice.config.getHDDCfg();case 4:i=t.sent,a=i.iTotal>0,e.needHddFormat=a&&!i.hdd.some((function(e){return e.bIsInUse&&e.bFormat&&e.bMount})),n=0,t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](1),n>1?n--:(n=0,C["a"].error("remoteconfig > management.vue > refreshStorageData > getHDDCfg: ",t.t0));case 13:if(n>0){t.next=1;break}case 14:case"end":return t.stop()}}),t,null,[[1,10]])})))()},update:function(e,t,n,i){var a=this;return Object(s["a"])(regeneratorRuntime.mark((function r(){var s;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return"bind"===e&&a.canBindUids.has(t)?(a.boundDevUids.push(a.canBindUids.get(t)),a.boundDevNames.push(i)):"unbind"===e&&(s=a.boundDevUids.findIndex((function(e){return e===n})),-1!==s&&(a.boundDevUids.splice(s,1),a.boundDevNames.splice(s,1))),r.next=3,a.baseDevice.resetLoopUpdateBaseInfo();case 3:case"end":return r.stop()}}),r)})))()},getBoundDevices:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s,o,c,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,n=[],i=[],t.next=5,e.baseDevice.config.getNasBindInfo();case 5:e.boundInfo=t.sent,a=Object(ne["a"])(e.boundInfo.infoList);try{for(a.s();!(r=a.n()).done;)s=r.value,s.cUID&&te["ENasBindState"].BOUND===s.iBindStatus&&(o=[s.cDevName,s.cUID],c=o[0],u=o[1],n.push(c),i.push(u))}catch(l){a.e(l)}finally{a.f()}e.boundDevNames=n,e.boundDevUids=i,t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](0),C["a"].error("remoteconfig > management.vue > getBoundDevices: ",t.t0);case 15:case"end":return t.stop()}}),t,null,[[0,12]])})))()},getCanBindDevices:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s,o,c,u,l,d,p,h,m,g,f;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.refreshing=!0,t.prev=1,n=[],i=new Map,t.next=6,B["a"].getDevices();case 6:a=t.sent,r=Object(ne["a"])(a),t.prev=8,r.s();case 10:if((s=r.n()).done){t.next=42;break}return o=s.value,t.next=14,Promise.all([o.isIPC(),o.supportNasBind(),o.hasAbility(),o.hasAdminPermission(),o.loginDes()]);case 14:if(c=t.sent,u=Object(T["a"])(c,5),l=u[0],d=u[1],p=u[2],h=u[3],m=u[4],!(l&&d&&p&&h)){t.next=40;break}if(g=m.uid,g){t.next=36;break}return t.prev=24,t.next=27,e.refreshDevice(o);case 27:return t.next=29,o.config.getUidInfo();case 29:f=t.sent,g=f.cUid,t.next=36;break;case 33:t.prev=33,t.t0=t["catch"](24),C["a"].error("remoteconfig > management.vue > getCanBindDevices > ".concat(o.handle," getUidInfo: "),t.t0);case 36:if(g){t.next=38;break}return t.abrupt("continue",40);case 38:n.push(o),i.set(o.handle,g);case 40:t.next=10;break;case 42:t.next=47;break;case 44:t.prev=44,t.t1=t["catch"](8),r.e(t.t1);case 47:return t.prev=47,r.f(),t.finish(47);case 50:e.canBindDevices=n,e.canBindUids=i,t.next=57;break;case 54:t.prev=54,t.t2=t["catch"](1),C["a"].error("remoteconfig > management.vue > getCanBindDevices: ",t.t2);case 57:setTimeout((function(){e.refreshing=!1}),1e3);case 58:case"end":return t.stop()}}),t,null,[[1,54],[8,44,47,50],[24,33]])})))()},getBaseBindCfg:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.baseDevice.loginDes();case 3:n=t.sent,e.baseBindCfg={cDevName:e.baseDevice.name,cUID:e.baseDeviceUid,cUserName:n.username,cPassword:n.password},t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),C["a"].error("remoteconfig > management.vue > getBaseBindCfg: ",t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},openWebLink:function(e,t){S["a"].openLink(e,t)},refreshDevice:function(e){return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getOpenStatus();case 2:if(n=t.sent,N["BCSDK_DEVICE_STATE_E"].BCSDK_DEVICE_STATE_OPENSUCCESS===n){t.next=12;break}return t.prev=4,t.next=7,e.reOpen();case 7:t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](4),C["a"].error("remoteconfig > management.vue > refreshDevice: ",t.t0);case 12:case"end":return t.stop()}}),t,null,[[4,9]])})))()},showStorageFormatDialog:function(){var e=this;this.$store.commit("SET_SCHEDULE_CALLBACK",(function(t){t&&e.$emit("activateComponentIdWithName","storage")})),this.$store.commit("SET_DIALOGID","needStorageFormatDialog")}}}),to=eo,no=(n("10e6"),Object(g["a"])(to,Vs,Us,!1,null,"f7d8edde",null)),io=no.exports,ao=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"config-context-inner"},[n("remoteTitleBar",{attrs:{channels:e.channels,title:e.$t("display_page_title"),showChannelsBox:e.isNvr||e.isMultiIpc,hasChannelsBox:!0},on:{channelIndexChange:e.channelIndexChange}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"screen-wrap config-scroll-box",attrs:{"data-id":"screen-wrap"}},[n("div",{staticClass:"screen-option"},[e.bFlip.support?n("div",{attrs:{"data-id":"flip-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_Flip")))]),n("slideBtn",e._b({attrs:{"data-id":"flip-slideBtn"},on:{stateChange:e.ispSwitch}},"slideBtn",e.bFlip,!1))],1):e._e(),e.bMirror.support?n("div",{attrs:{"data-id":"mirror-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_Mirroring")))]),n("slideBtn",e._b({attrs:{"data-id":"mirror-slideBtn"},on:{stateChange:e.ispSwitch}},"slideBtn",e.bMirror,!1))],1):e._e(),n("h5",{staticClass:"middle-title"},[e._v(e._s(e.$t("common_osd")))]),n("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("common_osd_full_name")))]),n("div",{staticClass:"osd-setting-item"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_cameraName")))]),n("selectBox",e._b({staticClass:"select-box",attrs:{options:e.namePositionOption,"data-id":"name-position-selectBox",disabledValsArr:e.namePositionOptionDisabledValsArr},on:{selectChanged:e.osdSelect}},"selectBox",e.namePosition,!1))],1),n("div",{staticClass:"osd-setting-item"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remote_config_page_system_section_date_and_time_item_label")))]),n("selectBox",e._b({staticClass:"select-box",attrs:{options:e.timePositionOption,"data-id":"time-position-selectBox",disabledValsArr:e.timePositionOptionDisabledValsArr},on:{selectChanged:e.osdSelect}},"selectBox",e.timePosition,!1))],1),e.waterMark.support?n("div",{staticClass:"osd-setting-item",attrs:{"data-id":"watermark-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("display_page_watermark_label")))]),n("slideBtn",e._b({attrs:{"data-id":"watermark-slideBtn"},on:{stateChange:e.osdSwitch}},"slideBtn",e.waterMark,!1))],1):e._e(),e.osdPadding.support?n("div",{staticClass:"osd-padding osd-setting-item"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("display_page_text_background_label")))]),n("slideBtn",e._b({on:{stateChange:e.osdSwitch}},"slideBtn",e.osdPadding,!1))],1):e._e(),e.iFirstFrameStrategy.support?n("div",{attrs:{"data-id":"first-frame-strategy-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("wizard_scene_select_title")))]),n("selectBox",e._b({staticClass:"select-box",attrs:{"data-id":"first-frame-strategy-selectBox"},on:{selectChanged:e.ispSelect}},"selectBox",e.iFirstFrameStrategy,!1))],1):e._e(),e.eAntiflick.support?n("div",{attrs:{"data-id":"antiflick-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("display_advanced_page_anti_flicker_item_label")))]),n("selectBox",e._b({staticClass:"select-box",attrs:{"data-id":"antiflick-selectBox"},on:{selectChanged:e.ispSelect}},"selectBox",e.eAntiflick,!1))],1):e._e(),e.eDayNightMode.support?n("div",{attrs:{"data-id":"dayNightMode-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("display_advanced_page_day_and_night_item_label")))]),n("selectBox",e._b({staticClass:"select-box",attrs:{"data-id":"dayNightMode-selectBox"},on:{selectChanged:e.ispSelect}},"selectBox",e.eDayNightMode,!1))],1):e._e(),e.supportCover?n("div",{attrs:{"data-id":"cover-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_privacyMask")))]),e.supportCoverIndexChange?n("selectBox",e._b({staticClass:"select-box cover-select",attrs:{"data-id":"cover-indexChange-selectBox"},on:{selectChanged:e.coverIndexChange}},"selectBox",e.coverChannels,!1)):e._e(),n("button",{staticClass:"gray-button",attrs:{"reo-element":"",disabled:e.coverChannels.isSetting,"data-id":"cover-button"},on:{click:e.setPrivacy}},[e._v(e._s(e.$t("common_Setup")))])],1):e._e(),e.isSupportAdvanced?n("div",{staticClass:"toogle-controller",class:{"show-detail":e.showAdvanced}},[n("div",{staticClass:"toogle-controller-title",attrs:{"data-id":"toggle-advanced-div"},on:{click:function(t){e.showAdvanced=!e.showAdvanced}}},[n("span",[e._v(e._s(e.$t("remote_config_page_advanced_label")))]),n("span",{class:[e.showAdvanced?"icon-client_arrow_up":"icon-client_arrow_down"]})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showAdvanced,expression:"showAdvanced"}],attrs:{"data-id":"show-advanced-div"}},[e.supportFishEyeCfg?[n("h5",{staticClass:"text-bold"},[e._v(e._s(e.$t("common_image_layout_title2")))]),n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_image_layout_title")))]),n("selectBox",e._b({staticClass:"select-box",on:{selectChanged:e.fishEyeSelect}},"selectBox",e.imageType,!1)),n("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("common_image_layout_switch_tip1")))]),e.EFishEyeImageType.EXPAND===e.imageType.currentVal?[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_installation_method_title")))]),n("selectBox",e._b({staticClass:"select-box",on:{selectChanged:e.fishEyeSelect}},"selectBox",e.installType,!1)),n("h5",{staticClass:"text"},[e._v(e._s(e.$t("image_rotation")))]),n("processSlider",e._b({staticClass:"rotation-angle-process-slider",on:{valueChanged:e.rotationAngleProcessChanged},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.curPercent,a=t.curValue;return[n("span",{staticClass:"percent-num",style:{left:i,transform:"translateX(calc(-50% - "+10*(parseFloat(i)/100-.5)+"px))"}},[e._v(e._s(a))])]}}],null,!1,586963725)},"processSlider",e.rotationAngle,!1))]:e._e()]:e._e(),e.iBrightSync.support?[n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("display_advanced_sync_brightness_title")))]),n("p",{staticClass:"brightSync-description"},[e._v(e._s(e.$t("display_advanced_sync_brightness_description")))]),n("slideBtn",e._b({attrs:{"data-id":"brightSync-slideBtn"},on:{stateChange:e.ispSwitch}},"slideBtn",e.iBrightSync,!1)),n("p",{staticClass:"warn-description"},[e._v(e._s(e.$t("display_advanced_sync_brightness_warning")))])],1)]:e._e(),e._l(e.computedEffect,(function(t,i){return n("div",{key:i,staticClass:"effect-settings"},[n("h5",{staticClass:"text"},[e._v(e._s(t.name))]),n("div",{staticClass:"process-bar-wrap"},[n("processSlider",e._b({staticClass:"process-slider",attrs:{flag:i,max:255,"data-id":"effect-settings-processSlider-"+i,value:t.val,isSetting:t.isSetting,warnClue:t.warnClue},on:{valueChanged:e.ispEffectValueChanged}},"processSlider",e.processSliderStyle,!1),[n("span",{staticClass:"percent-num",attrs:{"data-id":"effect-settings-processSlider-"+i+"-number"}},[e._v(e._s(t.val))])])],1)])})),e.dayNightThreshold.support?[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("day_and_night_value_config_title")))]),n("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("day_and_night_value_config_description")))]),n("processSlider",e._b({staticClass:"dayNightThreshold-process-slider",attrs:{"data-id":"dayNightThreshold-processSlider",flag:e.dayNightThreshold.flag,min:e.dayNightThreshold.iMin,max:e.dayNightThreshold.iMax,isSetting:e.dayNightThreshold.isSetting,warnClue:e.dayNightThreshold.warnClue,value:e.dayNightThreshold.iCur,specialBgColor:e.dayNightThreshold.bgColor},on:{valueChanged:e.dayNightThresholdProcessChanged}},"processSlider",e.processSliderStyle,!1),[n("span",{staticClass:"percent-num",attrs:{"data-id":"dayNightThreshold-processSlider-number"}},[e._v(e._s(e.dayNightThreshold.iCur-(e.dayNightThreshold.iMin+e.dayNightThreshold.iMax)/2))])])]:e._e(),e.binningMode.support?n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("enhanced_night_vision_brightness_title")))]),n("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("enhanced_night_vision_brightness_des")))]),n("selectBox",e._b({on:{selectChanged:e.ispSelect}},"selectBox",e.binningMode,!1))],1):e._e(),e.filterHDROptions.length?[n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("display_hdr_title")))]),n("selectBox",e._b({staticClass:"select-box",attrs:{options:e.filterHDROptions,"data-id":"HDR-selectBox"},on:{selectChanged:e.ispSelect}},"selectBox",e.iHDR,!1))],1)]:e._e(),e.eExpType.support?[n("div",{staticClass:"exposure"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_Exposure")))]),n("selectBox",e._b({staticClass:"select-box",attrs:{"data-id":"expType-selectBox"},on:{selectChanged:e.ispSelect}},"selectBox",e.eExpType,!1))],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showGainRange,expression:"showGainRange"}],staticClass:"gain-range",attrs:{"data-id":"show-gain-range-div"}},[n("h5",{staticClass:"text flex"},[n("span",[e._v(e._s(e.$t("remoteConfig_advancedSettings_gainRange")))]),n("span",{staticStyle:{"margin-left":"10px"}},[e._v("("+e._s(e.gainCtl.lDefMin)+"-"+e._s(e.gainCtl.lDefMax)+")")])]),n("rangeInput",{attrs:{flag:e.gainCtl.flag,isSetting:e.gainCtl.isSetting,warnClue:e.gainCtl.warnClue,left:e.gainCtl.lCurMin,right:e.gainCtl.lCurMax,min:e.gainCtl.lDefMin,"data-id":"gain-range-rangeInput",max:e.gainCtl.lDefMax},on:{rangeChanged:e.ispRangeChanged}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showShutterRange,expression:"showShutterRange"}],staticClass:"shutter-range",attrs:{"data-id":"show-shutter-range-div"}},[n("h5",{staticClass:"text flex"},[n("span",[e._v(e._s(e.$t("remoteConfig_advancedSettings_shutterRange")))]),n("span",{staticStyle:{"margin-left":"10px"}},[e._v("("+e._s(e.shutterCtl.lDefMin)+"-"+e._s(e.shutterCtl.lDefMax)+")")])]),n("div",{staticClass:"flex text"},[n("rangeInput",{attrs:{"data-id":"shutter-range-rangeInput",flag:e.shutterCtl.flag,isSetting:e.shutterCtl.isSetting,warnClue:e.shutterCtl.warnClue,left:e.shutterCtl.lCurMin,right:e.shutterCtl.lCurMax,min:e.shutterCtl.lDefMin,max:e.shutterCtl.lDefMax},on:{rangeChanged:e.ispRangeChanged}},[n("span",{staticStyle:{"margin-left":"10px"}},[e._v("ms")])])],1)])]:e._e(),e.eBLCType.support?[n("div",{staticClass:"backlight"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_advancedSettings_Backlight")))]),n("selectBox",e._b({staticClass:"select-box",attrs:{"data-id":"BLCType-selectBox"},on:{selectChanged:e.ispSelect}},"selectBox",e.eBLCType,!1))],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showDrc,expression:"showDrc"}],staticClass:"drc",attrs:{"data-id":"show-DRC-div"}},[n("processSlider",e._b({staticStyle:{"margin-top":"10px"},attrs:{flag:"DRCTarget","data-id":"DRC-processSlider",min:e.gainProcess.DRCTarget.lMin,max:e.gainProcess.DRCTarget.lMax,isSetting:e.gainProcess.DRCTarget.isSetting,warnClue:e.gainProcess.DRCTarget.warnClue,value:e.gainProcess.DRCTarget.lCur},on:{valueChanged:e.ispGainValueChanged}},"processSlider",e.processSliderStyle,!1),[n("span",{staticClass:"percent-num",attrs:{"data-id":"DRC-processSlider-number"}},[e._v(e._s(e.gainProcess.DRCTarget.lCur))])])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showBLC,expression:"showBLC"}],staticClass:"drc",attrs:{"data-id":"show-BLC-div"}},[n("processSlider",e._b({staticStyle:{"margin-top":"10px"},attrs:{"data-id":"BLC-processSlider",flag:"BLCTarget",min:e.gainProcess.BLCTarget.lMin,max:e.gainProcess.BLCTarget.lMax,isSetting:e.gainProcess.BLCTarget.isSetting,warnClue:e.gainProcess.BLCTarget.warnClue,value:e.gainProcess.BLCTarget.lCur},on:{valueChanged:e.ispGainValueChanged}},"processSlider",e.processSliderStyle,!1),[n("span",{staticClass:"percent-num",attrs:{"data-id":"BLC-processSlider-number"}},[e._v(e._s(e.gainProcess.BLCTarget.lCur))])])],1)]:e._e(),e.eScencMode.support?[n("div",{staticClass:"white-balance"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_advancedSettings_whiteBalance")))]),n("selectBox",e._b({staticClass:"select-box",attrs:{"data-id":"scencMode-selectBox"},on:{selectChanged:e.ispSelect}},"selectBox",e.eScencMode,!1))],1),e._l(e.whiteGalanceGain,(function(t,i){return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showBalanceGain,expression:"showBalanceGain"}],key:i,staticClass:"balance-gain"},[n("h5",{staticClass:"text"},[e._v(e._s(t?t.name:""))]),n("processSlider",e._b({attrs:{"data-id":"balanceGain-process-"+i,flag:i,min:t?t.lMin:0,max:t?t.lMax:100,isSetting:!!t&&t.isSetting,warnClue:!!t&&t.warnClue,value:t?t.lCur:0},on:{valueChanged:e.ispGainValueChanged}},"processSlider",e.processSliderStyle,!1),[n("span",{staticClass:"percent-num",attrs:{"data-id":"balanceGain-process-"+i+"-number"}},[e._v(e._s(t?t.lCur:0))])])],1)}))]:e._e(),e.isp.lSupportNR3D&&e.eNR3D.support?n("div",{staticClass:"3d-nr",attrs:{"data-id":"NR3D-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("display_advanced_page_backlight_item_3d_nr_label")))]),n("slideBtn",e._b({attrs:{"data-id":"NR3D-slideBtn"},on:{stateChange:e.ispSwitch}},"slideBtn",e.eNR3D,!1))],1):e._e(),e._e(),e.afAlgorithmStatus.support?n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("night_vision_focus_title")))]),n("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("night_vision_focus_des")))]),n("slideBtn",e._b({on:{stateChange:e.afAlgorithmSwitch}},"slideBtn",e.afAlgorithmStatus,!1))],1):e._e(),e.supportIspBrightDarkRegulate?[n("h5",{staticClass:"text light-shade-title"},[e._v(e._s(e.$t("display_hightlights_shadows_title")))]),e.isp.bdDayCtrl&&e.isp.bdDayCtrl.iAvailable?[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("display_color_day_mode_title")))]),n("selectBox",e._b({staticClass:"select-box",attrs:{"data-id":"bdDayCtrl-selectBox"},on:{selectChanged:e.ispBrightDarkSelect}},"selectBox",e.bdDayCtrl,!1)),e._l(e.bdDayCtrlProcess,(function(t,i){return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showBdDayCtrlProcess,expression:"showBdDayCtrlProcess"}],key:i+"bdDayCtrlProcess",staticClass:"bright-dark-slider",class:i},[n("h5",{staticClass:"text"},[e._v(e._s(t.name))]),n("processSlider",e._b({attrs:{"data-id":"bdDayCtrl-processSlider-"+i,flag:i,min:t.lMin,max:t.lMax,isSetting:t.isSetting,warnClue:t.warnClue,value:t.lCur},on:{valueChanged:e.bdDayCtrlProcessChanged}},"processSlider",e.processSliderStyle,!1),[n("span",{staticClass:"percent-num",attrs:{"data-id":"bdDayCtrl-processSlider-"+i+"-number"}},[e._v(e._s(t.lCur))])])],1)}))]:e._e(),e.isp.bdNightCtrl&&e.isp.bdNightCtrl.iAvailable?[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("display_advanced_page_day_and_night_item_black_and_white_label")))]),n("selectBox",e._b({staticClass:"select-box",attrs:{"data-id":"bdNightCtrl-selectBox"},on:{selectChanged:e.ispBrightDarkSelect}},"selectBox",e.bdNightCtrl,!1)),e._l(e.bdNightCtrlProcess,(function(t,i){return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showBdNightCtrlProcess,expression:"showBdNightCtrlProcess"}],key:i+"bdNightCtrlProcess",staticClass:"bright-dark-slider",class:i},[n("h5",{staticClass:"text"},[e._v(e._s(t.name))]),n("processSlider",e._b({attrs:{"data-id":"bdNightCtrl-processSlider-"+i,flag:i,min:t.lMin,max:t.lMax,isSetting:t.isSetting,warnClue:t.warnClue,value:t.lCur},on:{valueChanged:e.bdNightCtrlProcessChanged}},"processSlider",e.processSliderStyle,!1),[n("span",{staticClass:"percent-num",attrs:{"data-id":"bdNightCtrl-processSlider-"+i+"-number"}},[e._v(e._s(t.lCur))])])],1)}))]:e._e(),e.isp.bdColorNightCtrl&&e.isp.bdColorNightCtrl.iAvailable?[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("display_color_night_mode_title")))]),n("selectBox",e._b({staticClass:"select-box",attrs:{"data-id":"bdColorNightCtrl-selectBox"},on:{selectChanged:e.ispBrightDarkSelect}},"selectBox",e.bdColorNightCtrl,!1)),e._l(e.bdColorNightCtrlProcess,(function(t,i){return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showBdColorNightCtrlProcess,expression:"showBdColorNightCtrlProcess"}],key:i+"bdColorNightCtrlProcess",staticClass:"bright-dark-slider",class:i},[n("h5",{staticClass:"text"},[e._v(e._s(t.name))]),n("processSlider",e._b({attrs:{"data-id":"bdColorNightCtrl-processSlider-"+i,flag:i,min:t.lMin,max:t.lMax,isSetting:t.isSetting,warnClue:t.warnClue,value:t.lCur},on:{valueChanged:e.bdColorNightCtrlProcessChanged}},"processSlider",e.processSliderStyle,!1),[n("span",{staticClass:"percent-num",attrs:{"data-id":"bdColorNightCtrl-processSlider-"+i+"-number"}},[e._v(e._s(t.lCur))])])],1)}))]:e._e()]:e._e(),e.isClient&&e.supportBinoStitch?n("div",{attrs:{"data-id":"binoStitch-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("bino_stitch_setting_title")))]),n("button",{staticClass:"gray-button",attrs:{"reo-element":"","data-id":"binoStitch-button"},on:{click:e.openStitchDialog}},[e._v(e._s(e.$t("common_Setup")))])]):e._e(),n("div",{staticClass:"button-wap"},[n("button",{staticClass:"gray-button",attrs:{"reo-element":"",disabled:e.isSettingDefault,"data-id":"setDefault-button"},on:{click:e.setDefault}},[n("span",{directives:[{name:"show",rawName:"v-show",value:!e.isSettingDefault,expression:"!isSettingDefault"}]},[e._v(e._s(e.$t("common_default")))]),e.isSettingDefault?n("loadingImg"):e._e()],1)])],2)]):e._e(),e.supportOsdDefault?[n("div",{staticClass:"all-default-sep"}),n("div",{staticClass:"button-wap all-default-box"},[n("button",{staticClass:"gray-button",attrs:{"reo-element":"","data-id":"setAllDefault-button"},on:{click:e.openSetAllDefault}},[e._v(e._s(e.$t("reset_all_settings")))])])]:e._e()],2)]),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:function(t){return e.channelInit()}}}):e._e()],1)},ro=[],so=(n("4fad"),n("0b32")),oo=u["a"].extend({name:"Screen",components:{selectBox:Xe["a"],slideBtn:Ci["a"],processSlider:ts["a"],retry:be["a"],loadingImg:d["a"],rangeInput:so["a"],remoteTitleBar:us["a"]},data:function(){return{scrollTop:0,isLoadingDataRetry:!1,isSettingDefault:!1,showAdvanced:!1,supportOsdDefault:!1,processSliderStyle:{contentBgColor:"#535E6B",bgColor:"#AAA"},osd:{},cover:{},coverChannels:{isSetting:!1,warnClue:!1,flag:"coverChannels",currentVal:te["ECoverChannel"].WIDE,options:[{name:this.$t("bino_switch_wide_angle_picture_title"),value:te["ECoverChannel"].WIDE},{name:this.$t("common_telephoto_image"),value:te["ECoverChannel"].TRACK}]},isp:{},iFirstFrameStrategy:{support:!1,isSetting:!1,warnClue:!1,flag:"iFirstFrameStrategy",currentVal:te["ESceneMode"].OUTDOOR,options:[{value:te["ESceneMode"].OUTDOOR,name:this.$t("wizard_scene_outdoor")},{value:te["ESceneMode"].INDOOR,name:this.$t("wizard_scene_indoor")}]},eAntiflick:{support:!1,isSetting:!1,warnClue:!1,flag:"eAntiflick",currentVal:N["BC_ANTIFLICK_TYPE_E"].E_BC_ANTIFLICK_TYPE_UNKOWN,options:[{value:N["BC_ANTIFLICK_TYPE_E"].E_BC_ANTIFLICK_TYPE_UNKOWN,name:this.$t("email_server_page_other_server")},{value:N["BC_ANTIFLICK_TYPE_E"].E_BC_ANTIFLICK_TYPE_50HZ,name:this.$t("display_advanced_page_anti_flicker_item_50hz_label")},{value:N["BC_ANTIFLICK_TYPE_E"].E_BC_ANTIFLICK_TYPE_60HZ,name:this.$t("display_advanced_page_anti_flicker_item_60hz_label")},{value:N["BC_ANTIFLICK_TYPE_E"].E_BC_ANTIFLICK_TYPE_DISABLE,name:this.$t("common_view_off_full")}]},eDayNightMode:{support:!1,isSetting:!1,warnClue:!1,flag:"eDayNightMode",currentVal:N["BC_DAY_NIGHT_MODE_E"].E_BC_DAY_NIGHT_MODE_AUTO,options:[{value:N["BC_DAY_NIGHT_MODE_E"].E_BC_DAY_NIGHT_MODE_AUTO,name:this.$t("common_view_auto")},{value:N["BC_DAY_NIGHT_MODE_E"].E_BC_DAY_NIGHT_MODE_DAY,name:this.$t("display_advanced_page_day_and_night_item_color_label")},{value:N["BC_DAY_NIGHT_MODE_E"].E_BC_DAY_NIGHT_MODE_NIGHT,name:this.$t("display_advanced_page_day_and_night_item_black_and_white_label")}]},iHDR:{isSetting:!1,warnClue:!1,flag:"iHDR",currentVal:te["EHdrMode"].CLOSE},filterHDROptions:[],allHDROptions:[{value:te["EHdrMode"].CLOSE,name:this.$t("common_view_off_full")},{value:te["EHdrMode"].OPEN,name:this.$t("common_view_on_button")},{value:te["EHdrMode"].AUTO,name:this.$t("common_view_auto")}],eExpType:{support:!1,isSetting:!1,warnClue:!1,flag:"eExpType",currentVal:N["BC_EXPOSURE_TYPE_E"].E_BC_EXPOSURE_TYPE_AUTO,options:[{value:N["BC_EXPOSURE_TYPE_E"].E_BC_EXPOSURE_TYPE_AUTO,name:this.$t("common_view_auto")},{value:N["BC_EXPOSURE_TYPE_E"].E_BC_EXPOSURE_TYPE_LOWNOISE,name:this.$t("remoteConfig_advancedSettings_lowNoise")},{value:N["BC_EXPOSURE_TYPE_E"].E_BC_EXPOSURE_TYPE_FRAMERATE,name:this.$t("remoteConfig_advancedSettings_antiSmearing")},{value:N["BC_EXPOSURE_TYPE_E"].E_BC_EXPOSURE_TYPE_MANUAL,name:this.$t("common_view_manual")}]},gainCtl:{lCurMin:0,lCurMax:100,lDefMin:0,lDefMax:100,flag:"gainCtl",isSetting:!1,warnClue:!1},shutterCtl:{lCurMin:0,lCurMax:100,lDefMin:0,lDefMax:100,flag:"shutterCtl",isSetting:!1,warnClue:!1},eBLCType:{support:!1,isSetting:!1,warnClue:!1,flag:"eBLCType",currentVal:N["BC_BLC_MODE_E"].E_BC_BLC_MODE_CLOSE,options:[{value:N["BC_BLC_MODE_E"].E_BC_BLC_MODE_CLOSE,name:this.$t("common_view_off_full")},{value:N["BC_BLC_MODE_E"].E_BC_BLC_MODE_BLC,name:this.$t("remoteConfig_advancedSettings_Backlight")},{value:N["BC_BLC_MODE_E"].E_BC_BLC_MODE_DRC,name:this.$t("remoteConfig_advancedSettings_dynamicRange")}]},gainProcess:{redGain:{name:this.$t("remoteConfig_advancedSettings_redGain"),isSetting:!1,warnClue:!1,lCur:0,lMin:0,lMax:0},blueGain:{name:this.$t("remoteConfig_advancedSettings_blueGain"),isSetting:!1,warnClue:!1,lCur:0,lMin:0,lMax:0},DRCTarget:{isSetting:!1,warnClue:!1,lCur:0,lMin:0,lMax:255},BLCTarget:{isSetting:!1,warnClue:!1,lCur:0,lMin:0,lMax:255}},eScencMode:{support:!1,isSetting:!1,warnClue:!1,flag:"eScencMode",currentVal:N["BC_AWB_SCENC_MODE_E"].E_BC_AWB_SCENC_MODE_AUTO,options:[{value:N["BC_AWB_SCENC_MODE_E"].E_BC_AWB_SCENC_MODE_AUTO,name:this.$t("common_view_auto")},{value:N["BC_AWB_SCENC_MODE_E"].E_BC_AWB_SCENC_MODE_BUTT,name:this.$t("common_view_manual")}]},eNR3D:{support:!1,isOpen:N["BC_ISP_NR3D_E"].BC_NR3D_OFF_E,closeVal:N["BC_ISP_NR3D_E"].BC_NR3D_OFF_E,openVal:N["BC_ISP_NR3D_E"].BC_NR3D_HIGH_E,isSetting:!1,warnClue:!1,flag:"eNR3D"},EPartialExposureCtrl:te["EPartialExposureCtrl"],partialExposureCtrl:{isSetting:!1,warnClue:!1,flag:"partialExposureCtrl",currentVal:te["EPartialExposureCtrl"].DEFAULT,options:[{value:te["EPartialExposureCtrl"].DEFAULT,name:this.$t("common_view_off_full")},{value:te["EPartialExposureCtrl"].AUTO,name:this.$t("common_view_auto")},{value:te["EPartialExposureCtrl"].MANUAL,name:this.$t("common_view_manual")}]},supportIspBrightDarkRegulate:!1,bdDayCtrl:{isSetting:!1,warnClue:!1,flag:"bdDayCtrl",currentVal:N["BC_ISP_BD_MODE_E"].BC_ISP_BD_MODE_AUTO,options:[{value:N["BC_ISP_BD_MODE_E"].BC_ISP_BD_MODE_AUTO,name:this.$t("common_view_auto")},{value:N["BC_ISP_BD_MODE_E"].BC_ISP_BD_MODE_MANUAL,name:this.$t("common_view_manual")}]},bdDayCtrlProcess:{bright:{name:this.$t("common_Brightness"),isSetting:!1,warnClue:!1,lCur:0,lMin:0,lMax:0},dark:{name:this.$t("display_shadows_title"),isSetting:!1,warnClue:!1,lCur:0,lMin:0,lMax:0}},bdNightCtrl:{isSetting:!1,warnClue:!1,flag:"bdNightCtrl",currentVal:N["BC_ISP_BD_MODE_E"].BC_ISP_BD_MODE_AUTO,options:[{value:N["BC_ISP_BD_MODE_E"].BC_ISP_BD_MODE_AUTO,name:this.$t("common_view_auto")},{value:N["BC_ISP_BD_MODE_E"].BC_ISP_BD_MODE_MANUAL,name:this.$t("common_view_manual")}]},bdNightCtrlProcess:{bright:{name:this.$t("common_Brightness"),isSetting:!1,warnClue:!1,lCur:0,lMin:0,lMax:0},dark:{name:this.$t("display_shadows_title"),isSetting:!1,warnClue:!1,lCur:0,lMin:0,lMax:0}},bdColorNightCtrl:{isSetting:!1,warnClue:!1,flag:"bdColorNightCtrl",currentVal:N["BC_ISP_BD_MODE_E"].BC_ISP_BD_MODE_AUTO,options:[{value:N["BC_ISP_BD_MODE_E"].BC_ISP_BD_MODE_AUTO,name:this.$t("common_view_auto")},{value:N["BC_ISP_BD_MODE_E"].BC_ISP_BD_MODE_MANUAL,name:this.$t("common_view_manual")}]},bdColorNightCtrlProcess:{bright:{name:this.$t("common_Brightness"),isSetting:!1,warnClue:!1,lCur:0,lMin:0,lMax:0},dark:{name:this.$t("display_shadows_title"),isSetting:!1,warnClue:!1,lCur:0,lMin:0,lMax:0}},positionItems:[["1,1","1"],["1,65536","2"],["65536,1","3"],["65536,65536","4"],["65537,1","5"],["65537,65536","6"]],namePositionExtraItems:[],timePositionExtraItems:[],dayNightThreshold:{support:!1,isSetting:!1,warnClue:!1,flag:"dayNightThreshold",bgColor:"linear-gradient(90deg, #000000 0%, #CCCCCC 100%)",iCur:0,iMin:0,iMax:0},positionOptions:[{value:"0",name:this.$t("common_hide_button")},{value:"1",name:this.$t("osd_position_page_top_left")},{value:"2",name:this.$t("osd_position_page_bottom_left")},{value:"3",name:this.$t("osd_position_page_top_right")},{value:"4",name:this.$t("osd_position_page_bottom_right")},{value:"5",name:this.$t("osd_position_page_top_center")},{value:"6",name:this.$t("osd_position_page_bottom_center")},{value:"7",name:this.$t("common_otherPosition")}],namePositionHasExtraOption:!1,timePositionHasExtraOption:!1,allBinningModeOptions:[{value:te["EBinningMode"].CLOSE,name:this.$t("common_view_off_full")},{value:te["EBinningMode"].AUTO,name:this.$t("common_view_auto")}],binningMode:{support:!1,isSetting:!1,warnClue:!1,flag:"binningMode",currentVal:te["EBinningMode"].CLOSE,options:[]},bFlip:{support:!1,isOpen:!1,isSetting:!1,warnClue:!1,flag:"bFlip"},bMirror:{support:!1,isOpen:!1,isSetting:!1,warnClue:!1,flag:"bMirror"},namePosition:{currentVal:"0",isSetting:!1,warnClue:!1,flag:"namePosition"},timePosition:{currentVal:"1",isSetting:!1,warnClue:!1,flag:"timePosition"},waterMark:{support:!1,isOpen:!1,isSetting:!1,warnClue:!1,flag:"waterMark"},osdPadding:{support:!1,isOpen:!1,isSetting:!1,warnClue:!1,flag:"osdPadding"},iBrightSync:{support:!1,isOpen:0,closeVal:0,openVal:1,isSetting:!1,warnClue:!1,flag:"iBrightSync"},supportCover:!1,effect:{lBright:{name:this.$t("common_Brightness"),support:!1,val:0,isSetting:!1,warnClue:!1},lContrast:{name:this.$t("common_Contrast"),support:!1,val:0,isSetting:!1,warnClue:!1},lSaturation:{name:this.$t("common_Saturation"),support:!1,val:0,isSetting:!1,warnClue:!1},lHue:{name:this.$t("common_Hue"),support:!1,val:0,isSetting:!1,warnClue:!1},lSharpen:{name:this.$t("common_Sharpen"),support:!1,val:0,isSetting:!1,warnClue:!1}},device:{},channelType:N["BC_CHANNEL_TYPE_E"].E_BC_CHANNEL_TYPE_BUTT,channelIndex:-1,channels:[],dayNightThresholdIncrease:!1,supportBinoStitch:!1,supportFishEyeCfg:!1,EFishEyeImageType:te["EFishEyeImageType"],installType:{flag:"installType",isSetting:!1,warnClue:!1,currentVal:te["EFishEyeInstallType"].TOP_MOUNTING,options:[{value:te["EFishEyeInstallType"].TOP_MOUNTING,name:this.$t("installation_position_lifting")},{value:te["EFishEyeInstallType"].WALL_MOUNTING,name:this.$t("installation_position_hanging")},{value:te["EFishEyeInstallType"].FLOOR_MOUNTING,name:this.$t("installation_position_standing")}]},imageType:{flag:"imageType",isSetting:!1,warnClue:!1,currentVal:te["EFishEyeImageType"].ORIGINAL,options:[{value:te["EFishEyeImageType"].ORIGINAL,name:this.$t("image_model_artwork_master")},{value:te["EFishEyeImageType"].EXPAND,name:this.$t("image_model_expansion")}]},rotationAngle:{isSetting:!1,warnClue:!1,flag:"rotationAngle",value:0,min:-45,max:45,showRelativePoint:!0,relativePointValue:0,showBoundaryValue:!0,unit:"°",bgColor:"#AAA",contentBgColor:"#535E6B"},fishEyeCfg:{installType:te["EFishEyeInstallType"].TOP_MOUNTING,imageType:te["EFishEyeImageType"].ORIGINAL,rotationAngle:{iMin:-45,iMax:45,iDef:0,iCur:0}},afAlgorithm:{mode:N["BC_AF_ALGORITHM_MODE_E"].BC_AF_ALGORITHM_MODE_QUICK},afAlgorithmStatus:{support:!1,isOpen:0,closeVal:0,openVal:1,isSetting:!1,warnClue:!1},isClient:!1}},computed:{isNvr:function(){return this.$store.getters.isNvr},isMultiIpc:function(){return this.$store.getters.isMultiIpc},isConfigContextLoading:function(){return this.$store.getters.configContextLoading},isSD7:function(){return this.$store.getters.isSD7},supportCoverIndexChange:function(){return this.isSD7||[N["BC_CHANNEL_TYPE_E"].E_BC_CHANNEL_TYPE_SD7,N["BC_CHANNEL_TYPE_E"].E_BC_CHANNEL_TYPE_B21].includes(this.channelType)},namePositionMap:function(){var e,t=[].concat(Object(r["a"])(this.positionItems),Object(r["a"])(this.namePositionExtraItems)),n=[],i=Object(ne["a"])(t);try{for(i.s();!(e=i.n()).done;){var a=Object(T["a"])(e.value,2),s=a[0],o=a[1];n.push([o,s])}}catch(c){i.e(c)}finally{i.f()}return new Map([].concat(Object(r["a"])(t),n))},timePositionMap:function(){var e,t=[].concat(Object(r["a"])(this.positionItems),Object(r["a"])(this.timePositionExtraItems)),n=[],i=Object(ne["a"])(t);try{for(i.s();!(e=i.n()).done;){var a=Object(T["a"])(e.value,2),s=a[0],o=a[1];n.push([o,s])}}catch(c){i.e(c)}finally{i.f()}return new Map([].concat(Object(r["a"])(t),n))},namePositionOption:function(){var e=Object(r["a"])(this.positionOptions);return this.namePositionHasExtraOption||e.pop(),e},timePositionOption:function(){var e=Object(r["a"])(this.positionOptions);return this.timePositionHasExtraOption||e.pop(),e},namePositionOptionDisabledValsArr:function(){return"0"===this.timePosition.currentVal?["7"]:[this.timePosition.currentVal,"7"]},timePositionOptionDisabledValsArr:function(){return"0"===this.namePosition.currentVal?["7"]:[this.namePosition.currentVal,"7"]},computedEffect:function(){for(var e={},t=0,n=Object.entries(this.effect);t getSupport: ",ce["a"].errorToJson(t.t0)),new Error;case 37:case"end":return t.stop()}}),t,null,[[0,33]])})))()},getFishEyeCfg:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getFishEyeCfg();case 3:e.fishEyeCfg=t.sent,e.fishEyeCfgUpdate(),t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("screen.vue > getFishEyeCfg cfg: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setFishEyeCfg:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.channel.config.setFishEyeCfg(n.fishEyeCfg);case 3:t.next=11;break;case 5:throw t.prev=5,t.t0=t["catch"](0),n.fishEyeCfg=e,n.fishEyeCfgUpdate(),C["a"].error("screen.vue > setFishEyeCfg cfg: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,5]])})))()},getAFAlgorithm:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getAFAlgorithm();case 3:e.afAlgorithm=t.sent,e.afAlgorithmUpdate(),t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("screen.vue > getAFAlgorithm",t.t0),t.t0;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setAFAlgorithm:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.afAlgorithmStatus.support){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,n.next=5,t.channel.config.setAFAlgorithm(t.afAlgorithm);case 5:n.next=13;break;case 7:throw n.prev=7,n.t0=n["catch"](2),t.afAlgorithm=e,t.afAlgorithmUpdate(),C["a"].error("screen.vue > setAFAlgorithm:",n.t0),new Error;case 13:case"end":return n.stop()}}),n,null,[[2,7]])})))()},afAlgorithmSwitch:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:i=t.afAlgorithmStatus,Li["a"].changingEffect(i,(function(){t.afAlgorithm.mode=i.isOpen=e}),t.setAFAlgorithm,Object(l["g"])(t.afAlgorithm));case 2:case"end":return n.stop()}}),n)})))()},afAlgorithmUpdate:function(){this.afAlgorithmStatus.isOpen=this.afAlgorithm.mode},getOsd:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getOsdCfg();case 3:e.osd=t.sent,e.osdUpdate(),t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("screen.vue > getOsd cfg: ",ce["a"].errorToJson(t.t0)),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setOsd:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.channel.config.getOsdCfg();case 3:return i=t.sent,t.next=6,n.channel.config.setOsdCfg(Object(ct["a"])(Object(ct["a"])({},n.osd),{},{byChannelName:i.byChannelName}));case 6:t.next=15;break;case 9:throw t.prev=9,t.t0=t["catch"](0),n.osd=e,n.osdUpdate(),C["a"].error("screen.vue > setOsd cfg: ",ce["a"].errorToJson(t.t0)),new Error;case 15:case"end":return t.stop()}}),t,null,[[0,9]])})))()},getCover:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,!e.isSD7OfPC){t.next=7;break}return t.next=4,e.channels[e.coverChannels.currentVal].config.getShelter(e.coverChannels.currentVal);case 4:e.cover=t.sent,t.next=10;break;case 7:return t.next=9,e.channel.config.getShelter(e.coverChannels.currentVal);case 9:e.cover=t.sent;case 10:t.next=16;break;case 12:throw t.prev=12,t.t0=t["catch"](0),C["a"].error("screen.vue > getCover cfg: ",ce["a"].errorToJson(t.t0)),new Error;case 16:case"end":return t.stop()}}),t,null,[[0,12]])})))()},setCover:function(e,t){var n=arguments,i=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=n.length>2&&void 0!==n[2]&&n[2],t.prev=1,i.cover.bEnable=!0,!a){t.next=17;break}if(!i.isSD7OfPC){t.next=11;break}return r=[],r=i.channels.map((function(e,t){return e.config.setShelter(i.cover)})),t.next=9,Promise.all(r);case 9:t.next=15;break;case 11:return t.next=13,i.channel.config.setShelter(Object(ct["a"])(Object(ct["a"])({},i.cover),{},{iLogicChannel:te["ECoverChannel"].WIDE}));case 13:return t.next=15,i.channel.config.setShelter(Object(ct["a"])(Object(ct["a"])({},i.cover),{},{iLogicChannel:te["ECoverChannel"].TRACK}));case 15:t.next=24;break;case 17:if(!i.isSD7OfPC){t.next=22;break}return t.next=20,i.channels[i.coverChannels.currentVal].config.setShelter(i.cover);case 20:t.next=24;break;case 22:return t.next=24,i.channel.config.setShelter(i.cover);case 24:return t.next=27,new Promise((function(e){setTimeout((function(){e(!0)}),1e3)}));case 27:t.next=34;break;case 29:throw t.prev=29,t.t0=t["catch"](1),i.cover=e,C["a"].error("screen.vue > setCover cfg: ",ce["a"].errorToJson(t.t0)),new Error;case 34:case"end":return t.stop()}}),t,null,[[1,29]])})))()},getIsp:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getIspCfg();case 3:e.isp=t.sent,e.ispUpdate(),t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("screen.vue > getIsp cfg: ",ce["a"].errorToJson(t.t0)),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setIsp:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.channel.config.setIspCfg(n.isp);case 3:n.dayNightThresholdIncrease=n.isp.dayNightThreshold.value.iCur>e.dayNightThreshold.value.iCur,t.next=13;break;case 7:throw t.prev=7,t.t0=t["catch"](0),n.isp=e,n.ispUpdate(),C["a"].error("screen.vue > setIsp cfg: ",ce["a"].errorToJson(t.t0)),new Error;case 13:case"end":return t.stop()}}),t,null,[[0,7]])})))()},fishEyeCfgUpdate:function(){this.installType.currentVal=this.fishEyeCfg.installType,this.imageType.currentVal=this.fishEyeCfg.imageType,this.rotationAngle.max=this.fishEyeCfg.rotationAngle.iMax,this.rotationAngle.min=this.fishEyeCfg.rotationAngle.iMin,this.rotationAngle.value=this.fishEyeCfg.rotationAngle.iCur},osdUpdate:function(){var e="".concat(this.osd.channelName.iX,",").concat(this.osd.channelName.iY);this.namePositionMap.has(e)||(this.namePositionExtraItems.push([e,"".concat(this.positionItems.length)]),this.namePositionHasExtraOption=!0),this.namePosition.currentVal=this.osd.channelName.bShow?this.namePositionMap.get(e):"0";var t="".concat(this.osd.time.iX,",").concat(this.osd.time.iY);this.timePositionMap.has(t)||(this.timePositionExtraItems.push([t,"".concat(this.positionItems.length)]),this.timePositionHasExtraOption=!0),this.timePosition.currentVal=this.osd.time.bShow?this.timePositionMap.get(t):"0",this.waterMark.isOpen=Boolean(this.osd.iWaterMark),this.osdPadding.isOpen=Boolean(this.osd.iBgColor)},ispUpdate:function(){var e=this;this.bMirror.isOpen=this.isp.bMirror,this.bFlip.isOpen=this.isp.bFlip,this.binningMode.currentVal=this.isp.binningMode,this.binningMode.options=this.allBinningModeOptions.filter((function(t){return e.isp.binningModeOptions.includes(t.value)})),this.iBrightSync.support=-1!==this.isp.iBrightSync,this.iBrightSync.isOpen=this.isp.iBrightSync,this.filterHDROptions=this.allHDROptions.filter((function(t){return e.isp.supportIspHDRModes.includes(t.value)}));for(var t=0,n=["iFirstFrameStrategy","eAntiflick","eExpType","eDayNightMode","eBLCType","iHDR"];t(this.dayNightThreshold.iMin+this.dayNightThreshold.iMax)/2;for(var c=0,u=Object.keys(this.gainProcess);c setAllDefault: ",t.t0);case 37:e.$store.commit("HANDLE_LOADING",!1);case 38:case"end":return t.stop()}}),t,null,[[4,33]])})))()},openSetAllDefault:function(){this.$store.commit("MODIFY_SUPPORT_STITCH",this.supportBinoStitch),this.$store.commit("MODIFY_SUPPORT_FISHEYE_CFG",this.supportFishEyeCfg),this.$store.commit("MODIFY_FISHEYE_IMAGE_TYPE",this.fishEyeCfg.imageType),this.$store.commit("SET_CUSTOM_DIALOGID","screenAllDefault"),this.$store.commit("SET_COPYTO_SAVE_CALLBACK",this.setAllDefault)},setFishEyeCfgDefault:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.supportFishEyeCfg){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,n=Object(l["g"])(e.fishEyeCfg),e.fishEyeCfg.installType=te["EFishEyeInstallType"].TOP_MOUNTING,e.fishEyeCfg.imageType=te["EFishEyeImageType"].ORIGINAL,e.fishEyeCfg.rotationAngle.iCur=e.fishEyeCfg.rotationAngle.iDef,t.next=9,e.setFishEyeCfg(n);case 9:t.next=15;break;case 11:throw t.prev=11,t.t0=t["catch"](2),C["a"].error("screen.vue > setFishEyeCfgDefault: ",t.t0),t.t0;case 15:case"end":return t.stop()}}),t,null,[[2,11]])})))()},setStitchDefault:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isClient&&e.supportBinoStitch){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,e.channel.config.getBinoStitchCfg();case 5:return n=t.sent,n.distance.fCur=n.distance.fDef,n.xPixel.iCur=n.xPixel.iDef,n.yPixel.iCur=n.yPixel.iDef,t.next=11,e.channel.config.setBinoStitchCfg(n);case 11:t.next=17;break;case 13:throw t.prev=13,t.t0=t["catch"](2),C["a"].error("screen.vue > setStitchDefault: ",t.t0),t.t0;case 17:case"end":return t.stop()}}),t,null,[[2,13]])})))()},setDefault:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isSettingDefault=!0,n=JSON.parse(JSON.stringify(e.isp)),t.prev=2,t.next=5,e.channel.config.getDefaultIspCfg();case 5:return i=t.sent,a=["iHDR","binningMode","lBright","lContrast","lSaturation","lHue","lSharpen","eExpType","gainCtl","shutterCtl","redGain","blueGain","DRCTarget","BLCTarget","eScencMode","eBLCType","bdDayCtrl","bdNightCtrl","bdColorNightCtrl","eNR3D","lDefault"],a.forEach((function(t){e.isp[t]=i[t]})),e.dayNightThreshold.support&&(e.isp.dayNightThreshold.eMode=N["BC_DAY_NIGHT_THRESHOLD_MODE_E"].BC_DAY_NIGHT_THRESHOLD_MODE_CUSTOM,e.isp.dayNightThreshold.value.iCur=e.dayNightThreshold.iCur=(e.dayNightThreshold.iMin+e.dayNightThreshold.iMax)/2),r=["bdDayCtrl","bdNightCtrl","bdColorNightCtrl"],r.forEach((function(t){e.isp[t].eMode=N["BC_ISP_BD_MODE_E"].BC_ISP_BD_MODE_AUTO})),s=Object(l["g"])(e.afAlgorithm),e.afAlgorithm.mode=N["BC_AF_ALGORITHM_MODE_E"].BC_AF_ALGORITHM_MODE_QUICK,t.next=15,Promise.all([e.setIsp(n),e.setAFAlgorithm(s),e.setStitchDefault()]);case 15:return t.next=17,e.setFishEyeCfgDefault();case 17:e.fishEyeCfgUpdate(),e.ispUpdate(),e.afAlgorithmUpdate(),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].succeed),t.next=28;break;case 24:t.prev=24,t.t0=t["catch"](2),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),C["a"].error("screen.vue > setDefault: ",t.t0);case 28:e.isSettingDefault=!1;case 29:case"end":return t.stop()}}),t,null,[[2,24]])})))()}}}),co=oo,uo=(n("19d1"),Object(g["a"])(co,ao,ro,!1,null,"420fa3ec",null)),lo=uo.exports,po=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"config-context-inner"},[i("remoteTitleBar",{attrs:{channels:e.channels,title:e.$t("common_chime"),showChannelsBox:e.isNvr||e.isMultiIpc,hasChannelsBox:!0},on:{channelIndexChange:e.channelIndexChange}}),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"chime-wrap config-scroll-box"},[e.supportDingDongCtrl?[i("h5",{staticClass:"pair-title text"},[e._v(e._s(e.$t("common_pair")))]),i("p",{staticClass:"notes-text"},[e._v(e._s(e.$t("doorbell_chime_2_config_number_of_pairs_tip",{s1:e.maxPairNumber,s2:e.$t("common_chime")})))]),i("button",{staticClass:"gray-button",attrs:{"reo-element":""},on:{click:function(t){return t.stopPropagation(),e.openChimePairingDialog(t)}}},[i("span",{staticClass:"icon-client_local"})]),i("h5",{staticClass:"chime-list-title text"},[e._v(e._s(e.$t("common_chime_list")))]),e.chimeList.length<=0?i("div",{staticClass:"chime-list-empty-wrap flex"},[i("img",{attrs:{src:n("bc20")}}),i("div",{staticClass:"description-wrap"},[e._v(" "+e._s(e.$t("doorbell_chime_2_config_no_chime_tip",{s1:e.$t("common_chime")}))+" ")])]):e._l(e.chimeList,(function(t,n){return i("div",{staticClass:"chime-item toogle-controller",class:{"show-detail":t.showDetail}},[i("div",{staticClass:"toogle-controller-title",on:{click:function(i){return i.stopPropagation(),e.changeShowDetailStatus(n,t.showDetail)}}},[i("div",{staticClass:"content-wrap flex",class:{inactive:!t.isOnline||!e.allDingDongBaseInfoUi[t.dingDongId]||!e.allDingDongAudioInfo[t.dingDongId]}},[t.isLoadingForRinging?i("loadingImg",{staticClass:"loading-img-box",attrs:{imgSrcSize:14,delay:0}}):i("span",{staticClass:"ring-icon icon-client_play3",on:{click:function(n){return n.stopPropagation(),e.dingDongManualRing(t.dingDongId,t)}}}),i("span",[e._v(e._s(t.isOnline&&e.allDingDongBaseInfo[t.dingDongId]?e.allDingDongBaseInfo[t.dingDongId].name:t.name?t.name:e.allDingDongAudioInfo[t.dingDongId]?e.allDingDongAudioInfo[t.dingDongId].ringName:""))]),t.isOnline?e._e():i("div",{staticClass:"flex state-wrap"},[i("span",{staticClass:"state-clue"}),i("span",{staticClass:"state-text"},[e._v(e._s(e.$t("common_Disconnected")))])])],1),i("span",{class:[t.showDetail?"icon-client_arrow_up":"icon-client_arrow_down"]})]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.showDetail,expression:"item.showDetail"}],staticClass:"toogle-controller-detailed"},[t.isOnline?[e.allDingDongBaseInfoUi[t.dingDongId]&&e.allDingDongAudioInfo[t.dingDongId]?[i("h5",{staticClass:"title"},[e._v(e._s(e.$t("remote_config_page_led_section_title")))]),i("h5",{staticClass:"text"},[e._v(e._s(e.$t("remote_config_page_tip_light_section_led_item_label")))]),i("slideBtn",e._b({attrs:{flag:t.dingDongId+"-ledState"},on:{stateChange:e.dingDongOptionSwitch}},"slideBtn",e.allDingDongBaseInfoUi[t.dingDongId].ledState,!1)),i("div",{staticClass:"small-toogle-controller",on:{click:function(e){t.showSoundDetail=!t.showSoundDetail}}},[i("span",[e._v(e._s(e.$t("STR_PLAYBACK_CUSTOM_TIPS_VOICE")))]),i("span",{class:[t.showSoundDetail?"icon-client_arrow_up":"icon-client_arrow_down"]})]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.showSoundDetail,expression:"item.showSoundDetail"}]},[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("STR_CAMERA_VOLUME")))]),i("div",{staticClass:"flex"},[i("span",{staticClass:"volume-icon text",class:[e.allDingDongBaseInfoUi[t.dingDongId].volume.levelOptions[0]!==e.allDingDongBaseInfoUi[t.dingDongId].volume.level?"icon-client_voice_high":"icon-client_voice_mute"]}),i("div",{staticClass:"level-progress"},[i("div",{staticClass:"progress-inner",style:{width:e.getLevelWidthPercent(e.allDingDongBaseInfoUi[t.dingDongId].volume.levelOptions,e.allDingDongBaseInfoUi[t.dingDongId].volume.level)+"%"}}),i("div",{staticClass:"foreground-wrap flex"},e._l(e.allDingDongBaseInfoUi[t.dingDongId].volume.levelOptions,(function(n){return i("div",{key:n,staticClass:"level-point-wrap"},[i("div",{staticClass:"level-point",on:{click:function(i){return e.dingDongVolumeLevelChanged(n,t.dingDongId)}}})])})),0),e.allDingDongBaseInfoUi[t.dingDongId].volume.isSetting?i("loadingImg",{staticClass:"loading-img-box"}):e._e()],1)]),i("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_tone_title")))]),e._l(e.getFilterDetectionTypes(Object.keys(e.allDingDongAudioInfo[t.dingDongId].type)),(function(n,a){return i("div",{key:n.mode,staticClass:"smart-type-box flex"},[e.EScheduleMode.MD===n.mode?i("mdIcon",{staticClass:"cate-icon",attrs:{title:n.text}}):i("span",{staticClass:"cate-icon",class:n.icon,attrs:{title:n.text}}),i("button",{staticClass:"gray-button",attrs:{"reo-element":""},on:{click:function(i){return e.openDingDongAudioSettingDialog(t.dingDongId,n.mode)}}},[e._v(e._s(e.$t("common_Setup")))])],1)}))],2),i("h5",{staticClass:"title"},[e._v(e._s(e.$t("remote_config_device_info_page_title")))]),i("h5",{staticClass:"text"},[e._v(e._s(e.$t("remote_config_page_basic_info_device_name")))]),i("simpleInput",e._b({attrs:{targetValue:e.allDingDongBaseInfo[t.dingDongId].name,isSetting:e.allDingDongBaseInfoUi[t.dingDongId].name.isSetting,warnClue:e.allDingDongBaseInfoUi[t.dingDongId].name.warnClue,flag:t.dingDongId+"-name"},on:{inputChanged:e.inputChanged}},"simpleInput",e.nameInputCfg,!1))]:t.isLoadingDetail?i("div",{staticClass:"loading-wrap"},[i("loadingImg",{staticClass:"loading-img-box ab-center",attrs:{imgSrcSize:14,delay:0}})],1):i("div",{staticClass:"loading-failed-wrap"},[i("div",[e._v(e._s(e.$t("common_failed_to_get_info_retry_tip")))]),i("div",{staticClass:"retry-btn",on:{click:function(n){return e.getPairedDingDongDetailInfo(t.dingDongId)}}},[e._v(e._s(e.$t("common_dialog_retry_button")))])])]:e._e(),i("div",{staticClass:"btns-group",class:{"show-border":!t.isOnline||e.allDingDongBaseInfoUi[t.dingDongId]&&e.allDingDongAudioInfo[t.dingDongId]}},[i("a",{attrs:{"reo-element":""},on:{click:function(t){return e.openChimeInstructionDialog("reset")}}},[e._v(e._s(e.$t("common_reset_illustrate")))]),i("button",{staticClass:"warn-button",attrs:{"reo-element":""},on:{click:function(n){return e.openDingDongUnpairDialog(t.dingDongId)}}},[e._v(e._s(e.$t("common_view_delete_button")))])])],2)])}))]:i("div",{staticClass:"no-support-tip-wrap ab-center"},[i("span",[e._v(e._s(e.$t("channel_not_support_siren")))])])],2),!e.isConfigContextLoading&&e.isLoadingDataRetry?i("retry",{on:{retry:e.channelInit}}):e._e()],1)},ho=[],mo=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},go=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-icon"},[n("span",{staticClass:"icon-client_motionalarm_100"}),n("span",{staticClass:"icon-client_motionalarm_60"}),n("span",{staticClass:"icon-client_motionalarm_30"})])}],fo=u["a"].extend({name:"mdIcon"}),_o=fo,vo=(n("c9f8"),Object(g["a"])(_o,mo,go,!1,null,"35325a50",null)),bo=vo.exports,wo=u["a"].extend({name:"chime",components:{loadingImg:d["a"],mdIcon:bo,simpleInput:_,slideBtn:Ci["a"],retry:be["a"],remoteTitleBar:us["a"]},data:function(){return{EScheduleMode:R["EScheduleMode"],supportDingDongCtrl:!1,channelIndex:-1,channels:[],isLoadingDataRetry:!1,nameInputCfg:{minLength:1,maxLength:31,regexp:"deviceName",disallowConsecutiveSpaces:!0},maxPairNumber:5,chimeList:[],pairedDingdongList:[],allDingDongAudioInfo:{},allDingDongBaseInfo:{},defaultDingDongBaseInfoUiItem:{ledState:{closeVal:0,openVal:1,isOpen:0,isSetting:!1,warnClue:!1},volume:{isSetting:!1,level:0,levelOptions:[]},name:{checked:!0,isSetting:!1,warnClue:!1}},allDingDongBaseInfoUi:{},allDetectionTypes:[{mode:R["EScheduleMode"].VISITOR,icon:"icon-client_visitor",text:this.$t("common_visitor")},{mode:R["EScheduleMode"].AI_PEOPLE,icon:"icon-ai_alarm_human",text:this.$t("common_ai_human_option")},{mode:R["EScheduleMode"].MD,icon:"",text:this.$t("common_ai_any_motion_option")},{mode:R["EScheduleMode"].AI_VEHICLE,icon:"icon-ai_alarm_car",text:this.$t("common_ai_vehicle_option")},{mode:R["EScheduleMode"].AI_OTHER,icon:"icon-ai_alarm_other",text:this.$t("common_other")},{mode:R["EScheduleMode"].AI_DOG_CAT,icon:"icon-ai_alarm_pet",text:this.$t("common_ai_pet_option")}]}},computed:{isNvr:function(){return this.$store.getters.isNvr},isMultiIpc:function(){return this.$store.getters.isMultiIpc},isConfigContextLoading:function(){return this.$store.getters.configContextLoading},handle:function(){return this.$store.getters.deviceHandle},channel:function(){return this.channels[this.channelIndex]}},watch:{handle:{handler:function(e){this.deviceInit()},immediate:!0}},methods:{channelIndexChange:function(e){this.channelIndex=e,this.channelInit()},deviceInit:function(){var e=this;Li["a"].pageInitEffect(this.$store,this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,B["a"].getDeviceWithHandle(e.handle);case 2:return n=t.sent,t.next=5,n.getChannels();case 5:e.channels=t.sent;case 6:case"end":return t.stop()}}),t)}))))},channelInit:function(){var e=this;this.channel&&this.$nextTick((function(){Li["a"].pageInitEffect(e.$store,e.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getSupport();case 2:if(e.supportDingDongCtrl){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,e.getPairedDingDongList();case 6:return t.next=8,Promise.all([e.getPairedDingDongListBasicInfo(),e.getPairedDingDongListAudioInfo(!1)]);case 8:case"end":return t.stop()}}),t)}))))}))},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.supportDingDongCtrl();case 3:e.supportDingDongCtrl=t.sent,t.next=10;break;case 6:throw t.prev=6,t.t0=t["catch"](0),C["a"].stackTraceError(t.t0,"chime.vue > getSupport"),new Error;case 10:case"end":return t.stop()}}),t,null,[[0,6]])})))()},getPairedDingDongList:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getPairedDingDongList();case 3:n=t.sent,e.maxPairNumber=n.maxPairNumber,e.pairedDingdongList=n.dingDong.slice(0,n.size),C["a"].debug("chime.vue > getPairedDingDongList",e.pairedDingdongList),e.pairedDingDongListUpdated(),t.next=14;break;case 10:throw t.prev=10,t.t0=t["catch"](0),C["a"].stackTraceError(t.t0,"chime.vue > getPairedDingDongList"),new Error;case 14:case"end":return t.stop()}}),t,null,[[0,10]])})))()},pairedDingDongListUpdated:function(){var e,t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=[],a=Object(ne["a"])(this.pairedDingdongList);try{var r=function(){var a=e.value,r=t.chimeList.find((function(e){return e.dingDongId===a.identifier.dingDongId})),s=n?1===t.pairedDingdongList.length:r?r.showDetail:1===t.pairedDingdongList.length;i.push({name:a.name,dingDongId:a.identifier.dingDongId,isOnline:a.netState===te["EDingDongNetState"].ONLINE,showDetail:s,showSoundDetail:!r||r.showSoundDetail,isLoadingForRinging:!!r&&r.isLoadingForRinging,isLoadingDetail:!!r&&r.isLoadingDetail})};for(a.s();!(e=a.n()).done;)r()}catch(s){a.e(s)}finally{a.f()}this.chimeList=i},getDingDongBasicInfo:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(n.prev=0,i={dingDongId:e.identifier.dingDongId,volume:{defaultLevel:0,level:0,levelOptions:[]},ledState:0,name:e.name},e.netState!==te["EDingDongNetState"].ONLINE){n.next=6;break}return n.next=5,t.channel.config.getDingDongOption(e.identifier.dingDongId);case 5:i=n.sent;case 6:t.allDingDongBaseInfo[e.identifier.dingDongId]=i,t.dingDongOptionUpdate(e.identifier.dingDongId),n.next=14;break;case 10:throw n.prev=10,n.t0=n["catch"](0),C["a"].stackTraceError(n.t0,"chime.vue > getDingDongBasicInfo > getDingDongOption"),n.t0;case 14:case"end":return n.stop()}}),n,null,[[0,10]])})))()},getPairedDingDongListBasicInfo:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.pairedDingdongList.map((function(t){return e.getDingDongBasicInfo(t)})),t.next=3,Promise.allSettled(n);case 3:i=t.sent,i.forEach((function(t,n){"rejected"===t.status&&C["a"].stackTraceError(t.reason,"chime.vue > getPairedDingDongListBasicInfo > getDingDongBasicInfo ".concat(JSON.stringify(e.pairedDingdongList[n])))}));case 5:case"end":return t.stop()}}),t)})))()},setDingDongOption:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=e.dingDongId,n.prev=1,n.next=4,t.channel.config.setDingDongOption(t.allDingDongBaseInfo[i]);case 4:n.next=12;break;case 6:throw n.prev=6,n.t0=n["catch"](1),C["a"].stackTraceError(n.t0,"chime.vue > setDingDongOption"),t.allDingDongBaseInfo[i]=e,t.dingDongOptionUpdate(i),n.t0;case 12:case"end":return n.stop()}}),n,null,[[1,6]])})))()},dingDongOptionUpdate:function(e){var t=this.allDingDongBaseInfo[e];if(this.allDingDongBaseInfoUi[e])this.allDingDongBaseInfoUi[e].ledState.isOpen=t.ledState,this.allDingDongBaseInfoUi[e].volume.level=t.volume.level,this.allDingDongBaseInfoUi[e].volume.levelOptions=t.volume.levelOptions;else{var n=Object(l["g"])(this.defaultDingDongBaseInfoUiItem);n.ledState.isOpen=t.ledState,n.volume.level=t.volume.level,n.volume.levelOptions=t.volume.levelOptions,this.$set(this.allDingDongBaseInfoUi,e,n)}},getPairedDingDongListAudioInfo:function(){var e=arguments,t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=!(e.length>0&&void 0!==e[0])||e[0],n.prev=1,n.next=4,t.channel.config.getDingDongAudioInfo();case 4:t.allDingDongAudioInfo=n.sent,n.next=12;break;case 7:if(n.prev=7,n.t0=n["catch"](1),C["a"].stackTraceError(n.t0,"chime.vue > getPairedDingDongListAudioInfo"),!i){n.next=12;break}throw n.t0;case 12:case"end":return n.stop()}}),n,null,[[1,7]])})))()},setDingDongAudioInfo:function(e,t,n){var i=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i.$store.commit("HANDLE_LOADING",!0),a.prev=1,a.next=4,i.channel.config.setDingDongAudioInfo(e,t,n);case 4:i.allDingDongAudioInfo[e].type[t]=n,i.$store.commit("SET_DIALOGID",""),a.next=12;break;case 8:a.prev=8,a.t0=a["catch"](1),C["a"].stackTraceError(a.t0,"chime.vue > setDingDongAudioInfo"),i.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed);case 12:i.$store.commit("HANDLE_LOADING",!1);case 13:case"end":return a.stop()}}),a,null,[[1,8]])})))()},getPairedDingDongDetailInfo:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t.chimeList.find((function(t){return t.dingDongId===e})),a=t.pairedDingdongList.find((function(t){return t.identifier.dingDongId===e})),a&&i){n.next=4;break}return n.abrupt("return");case 4:return i.isLoadingDetail=!0,n.prev=5,n.next=8,Promise.all([t.getDingDongBasicInfo(a),t.getPairedDingDongListAudioInfo()]);case 8:n.next=13;break;case 10:n.prev=10,n.t0=n["catch"](5),C["a"].stackTraceError(n.t0,"chime.vue > getPairedDingDongDetailInfo");case 13:i.isLoadingDetail=!1;case 14:case"end":return n.stop()}}),n,null,[[5,10]])})))()},dingDongManualRing:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){var a;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.isLoadingForRinging=!0,a=0,i.prev=2,i.next=5,n.channel.config.dingDongManualRing({identifier:{dingDongId:e},musicId:a});case 5:i.next=11;break;case 7:i.prev=7,i.t0=i["catch"](2),n.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),C["a"].stackTraceError(i.t0,"chime.vue > dingDongManualRing");case 11:t.isLoadingForRinging=!1;case 12:case"end":return i.stop()}}),i,null,[[2,7]])})))()},dingDongUnpair:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_LOADING",!0),n.prev=1,n.next=4,t.channel.config.dingDongUnpair(e);case 4:t.pairedDingdongList=t.pairedDingdongList.filter((function(t){return t.identifier.dingDongId!==e})),t.pairedDingDongListUpdated(),Reflect.deleteProperty(t.allDingDongAudioInfo,e),Reflect.deleteProperty(t.allDingDongBaseInfo,e),Reflect.deleteProperty(t.allDingDongBaseInfoUi,e),n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](1),t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),C["a"].stackTraceError(n.t0,"chime.vue > dingDongUnpair");case 15:t.$store.commit("HANDLE_LOADING",!1);case 16:case"end":return n.stop()}}),n,null,[[1,11]])})))()},changeShowDetailStatus:function(e,t){if(t)this.chimeList[e].showDetail=!1;else for(var n=0;n=this.maxPairNumber?this.$store.commit("HANDLE_PROMPT",{promptStatus:R["PromptStatus"].failed,promptMessage:this.$t("doorbell_chime_2_config_maximum_number_of_pairs_tip",{s1:this.maxPairNumber,s2:this.$t("common_chime")})}):(this.$store.commit("SET_SCHEDULE_CALLBACK",(function(t){var n=e.pairedDingdongList.find((function(e){return e.identifier.dingDongId===t.identifier.dingDongId}));n?(n.netState=t.netState,n.name=t.name,e.pairedDingDongListUpdated(),e.getPairedDingDongDetailInfo(t.identifier.dingDongId)):(e.pairedDingdongList.push(t),e.pairedDingDongListUpdated(!0),e.getPairedDingDongDetailInfo(t.identifier.dingDongId))})),this.$store.commit("STORE_DIALOG_CHANNEL_INDEX",this.channelIndex),this.$store.commit("SET_DIALOGID","chimePairing"))},getLevelWidthPercent:function(e,t){var n=e.findIndex((function(e){return t===e}));return n=-1===n?0:n,100*n/(e.length-1)},getFilterDetectionTypes:function(e){return this.allDetectionTypes.filter((function(t){return e.indexOf(t.mode)>-1}))}}}),Co=wo,yo=(n("7e1a"),Object(g["a"])(Co,po,ho,!1,null,"7896a224",null)),So=yo.exports,ko=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"config-context-inner"},[n("remoteTitleBar",{attrs:{channels:e.channels,title:e.$t("STR_CAMERA_STATUS_TAB_STREAM"),showChannelsBox:e.isNvr,hasChannelsBox:!0},on:{channelIndexChange:e.channelIndexChange}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"quality-wrap config-scroll-box"},[n("div",{staticClass:"streams-info-wrap"},[e._l(e.streamTypeOptions,(function(t,i){return n("div",{key:i,staticClass:"stream-box"},[n("div",{staticClass:"stream-title-wrap flex-between"},[n("div",{staticClass:"flex"},[n("span",{class:["view-quality-icon",e.getViewQualityIcon(t.value)]}),n("p",[e._v(e._s(t.name))])]),n("div",{staticClass:"cell-inner",attrs:{title:e.$t("common_view_settings")},on:{click:function(n){return e.openStreamSettingDialog(t)}}},[n("span",{staticClass:"btn-icon icon-client_setting"})])]),n("ul",e._l(e.getStreamInfo(t.value),(function(t){return n("li",{staticClass:"flex-between"},[n("span",[e._v(e._s(t.name))]),n("span",[e._v(e._s(e.getStreamInfoValText(t.value,t.options)))])])})),0)])})),n("div",{staticClass:"button-wap"},[n("button",{staticClass:"gray-button",attrs:{"reo-element":"",disabled:e.isSettingDefault},on:{click:e.setDefault}},[n("span",{directives:[{name:"show",rawName:"v-show",value:!e.isSettingDefault,expression:"!isSettingDefault"}]},[e._v(e._s(e.$t("common_default")))]),e.isSettingDefault?n("loadingImg"):e._e()],1)])],2),-1!==e.constantFrameRate?n("div",{staticClass:"fixed-frame-box"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("frame_rate_mode_title")))]),e.frameRateOptionTip?n("p",{staticClass:"option-tips"},[e._v(e._s(e.frameRateOptionTip))]):e._e(),n("selectBox",e._b({staticClass:"select-box",on:{selectChanged:e.fixedFrameRateSelect}},"selectBox",e.fixedFrameRate,!1))],1):e._e(),e.encTypeSelectBox.options.length?n("div",{staticClass:"enc-type-box"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("bitrate_mode")))]),e.encTypeOptionTip?n("p",{staticClass:"option-tips"},[e._v(e._s(e.encTypeOptionTip))]):e._e(),n("selectBox",e._b({staticClass:"select-box",on:{selectChanged:e.encTypeSelect}},"selectBox",e.encTypeSelectBox,!1))],1):e._e()]),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:function(t){return e.channelInit()}}}):e._e()],1)},Ao=[],Eo=n("7da0"),xo=u["a"].extend({name:"quality",components:{selectBox:Xe["a"],slideBtn:Ci["a"],retry:be["a"],loadingImg:d["a"],simpleInput:_,remoteTitleBar:us["a"]},data:function(){return{isLoadingDataRetry:!1,isSettingDefault:!1,EConstantFrameRate:te["EConstantFrameRate"],constantFrameRate:te["EConstantFrameRate"].NOT_SUPPORT,allFixedFrameRateOptions:[{value:te["EConstantFrameRate"].IMAGE_QUALITY_FIRST,name:this.$t("common_view_auto")},{value:te["EConstantFrameRate"].VIDEO_FLUENCY_FIRST,name:this.$t("frame_rate_model_fixed_title")},{value:te["EConstantFrameRate"].MULTISTAGE_FRAME_REDUCTION,name:this.$t("frame_rate_model_normal_title")}],fixedFrameRate:{isSetting:!1,warnClue:!1,currentVal:te["EConstantFrameRate"].IMAGE_QUALITY_FIRST,options:[]},allEncTypeOptions:[{value:te["EEncType"].VBR,name:this.$t("bitrate_variable")},{value:te["EEncType"].CBR,name:this.$t("bitrate_constant")}],encTypeSelectBox:{isSetting:!1,warnClue:!1,currentVal:te["EEncType"].VBR,options:[]},encType:te["EEncType"].VBR,enc:{bNoTrans:!1,bRestartWhenResChanged:!1,lStreamTypes:0,mainstream:{bAudio:0,cResolutionName:"",iWidth:0,iHeight:0,gop:{iCur:1,iMax:2,iMin:1},eEncType:N["BC_ENC_TYPE_E"].E_BC_ENC_TYPE_H264,videoEncType:te["EVideoEncType"].H264,lFrameRate:0,lBitRate:0,eEncProfile:N["BC_ENCODER_PROFILE_E"].BC_ENCODER_PROFILE_DEFAULT},substream:{bAudio:0,cResolutionName:"",iWidth:0,iHeight:0,gop:{iCur:1,iMax:2,iMin:1},eEncType:N["BC_ENC_TYPE_E"].E_BC_ENC_TYPE_H264,videoEncType:te["EVideoEncType"].H264,lFrameRate:0,lBitRate:0,eEncProfile:N["BC_ENCODER_PROFILE_E"].BC_ENCODER_PROFILE_DEFAULT},extendstream:{bAudio:0,cResolutionName:"",iWidth:0,iHeight:0,gop:{iCur:1,iMax:2,iMin:1},eEncType:N["BC_ENC_TYPE_E"].E_BC_ENC_TYPE_H264,videoEncType:te["EVideoEncType"].H264,lFrameRate:0,lBitRate:0,eEncProfile:N["BC_ENCODER_PROFILE_E"].BC_ENCODER_PROFILE_DEFAULT}},supportGop:!1,supportEncoderSelectStreamTypes:[],encTable:{profileNum:0,profile:[{iChnBits:0,mainstream:{eResolution:0,iWidth:0,iHigh:0,cResolutionName:"",lDefGop:0,lDefFrameRate:0,lDefBitRate:0,lFrameRate:[0],lBitRate:[0]},substream:{eResolution:0,iWidth:0,iHigh:0,lDefGop:0,cResolutionName:"",lDefFrameRate:0,lDefBitRate:0,lFrameRate:[0],lBitRate:[0]},extendstream:{eResolution:0,iWidth:0,iHigh:0,lDefGop:0,cResolutionName:"",lDefFrameRate:0,lDefBitRate:0,lFrameRate:[0],lBitRate:[0]}}]},sourceStreamTypeOptions:[{value:"mainstream",name:this.$t("common_clarity_stream_clear")},{value:"substream",name:this.$t("common_clarity_stream_fluent")},{value:"extendstream",name:this.$t("common_clarity_stream_balanced")}],streamTypeOptions:[],streamInfo:{cResolutionName:{name:this.$t("common_Resolution"),value:"",options:[]},lFrameRate:{name:this.$t("remoteConfig_encode_frameRate"),value:"",options:[]},lBitRate:{name:this.$t("remoteConfig_encode_maxBitRateOptions"),value:"",options:[]},gop:{name:this.$t("remote_settings_interframe_space_title"),value:"",options:[]},videoEncType:{name:this.$t("encoding_format"),value:"",options:[]}},mainstreamInfo:{},substreamInfo:{},extendstreamInfo:{},norm:0,channelIndex:-1,channels:[],timelapseCfg:{},streamTypeMap:new Map([[te["EStreamTypeInEncCfg"].mainstream,N["BC_STREAM_TYPE_E"].E_BC_STREAM_MAIN],[te["EStreamTypeInEncCfg"].substream,N["BC_STREAM_TYPE_E"].E_BC_STREAM_SUB],[te["EStreamTypeInEncCfg"].extendstream,N["BC_STREAM_TYPE_E"].E_BC_STREAM_EXTERN]]),videoEncTypeOptions:[{value:te["EVideoEncType"].H264,name:"H.264"},{value:te["EVideoEncType"].H265,name:"H.265"}],supportTimelapse:!1}},computed:{isConfigContextLoading:function(){return this.$store.getters.configContextLoading},handle:function(){return this.$store.getters.deviceHandle},channel:function(){return this.channels[this.channelIndex]},isNvr:function(){return this.$store.getters.isNvr},selectedChannels:function(){return this.$store.getters.selectedChannels},frameRateOptionTip:function(){switch(this.fixedFrameRate.currentVal){case te["EConstantFrameRate"].IMAGE_QUALITY_FIRST:return this.$t("frame_rate_model_auto_tip");case te["EConstantFrameRate"].VIDEO_FLUENCY_FIRST:return this.$t("frame_rate_model_fixed_tip");case te["EConstantFrameRate"].MULTISTAGE_FRAME_REDUCTION:return this.$t("frame_rate_model_normai_tip");default:return""}},encTypeOptionTip:function(){switch(this.encTypeSelectBox.currentVal){case te["EEncType"].VBR:return this.$t("variable_bit_rate_des");case te["EEncType"].CBR:return this.$t("constant_bit_rate_des");default:return""}}},watch:{handle:{handler:function(e,t){gt["a"].unsubscribe("subscribe_channel_timelapseCfg",t,this.channelIndex,this.onTimelapseCfgChanged),this.deviceInit(),gt["a"].subscribe("subscribe_channel_timelapseCfg",e,this.channelIndex,this.onTimelapseCfgChanged)},immediate:!0}},created:function(){this.mainstreamInfo=Object(l["g"])(this.streamInfo),this.substreamInfo=Object(l["g"])(this.streamInfo),this.extendstreamInfo=Object(l["g"])(this.streamInfo)},methods:{getStreamInfo:function(e){var t=Object(l["g"])(this.$data["".concat(e,"Info")]);return this.supportGop||Reflect.deleteProperty(t,"gop"),this.supportEncoderSelectStreamTypes.includes(e)||Reflect.deleteProperty(t,"videoEncType"),t},getStreamInfoValText:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.find((function(t){return t.value===e}));return n?n.name:e+""},deviceInit:function(){var e=this;Li["a"].pageInitEffect(this.$store,this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,B["a"].getDeviceWithHandle(e.handle);case 2:return n=t.sent,t.next=5,Promise.all([n.getChannels(),n.deviceNorm()]);case 5:i=t.sent,a=Object(T["a"])(i,2),e.channels=a[0],e.norm=a[1];case 9:case"end":return t.stop()}}),t)}))))},channelInit:function(){var e=this;this.channel&&this.$nextTick((function(){Li["a"].pageInitEffect(e.$store,e.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.getSupport(),e.getEncTable(),e.getEnc(),e.getEncType(),e.getConstantFrameRate()]);case 2:if(!e.supportTimelapse){t.next=5;break}return t.next=5,e.getTimelapseCfg();case 5:case"end":return t.stop()}}),t)}))))}))},channelIndexChange:function(e){this.channelIndex!==e&&(gt["a"].unsubscribe("subscribe_channel_timelapseCfg",this.handle,this.channelIndex,this.onTimelapseCfgChanged),gt["a"].subscribe("subscribe_channel_timelapseCfg",this.handle,e,this.onTimelapseCfgChanged)),this.channelIndex=e,this.channelInit()},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.streamTypeOptions=e.sourceStreamTypeOptions.slice(),t.prev=1,t.next=4,e.channel.supportExtenStreamCfg();case 4:if(t.sent){t.next=6;break}e.streamTypeOptions.pop();case 6:return t.next=8,Promise.all([e.channel.supportGop(),e.channel.supportTimelapse(),e.channel.supportEncoderSelectStreamTypes()]);case 8:n=t.sent,i=Object(T["a"])(n,3),e.supportGop=i[0],e.supportTimelapse=i[1],e.supportEncoderSelectStreamTypes=i[2],t.next=20;break;case 16:throw t.prev=16,t.t0=t["catch"](1),C["a"].error("quality.vue > getSupport > supportExtenStreamCfg: ",t.t0),new Error;case 20:case"end":return t.stop()}}),t,null,[[1,16]])})))()},onTimelapseCfgChanged:function(e){this.timelapseCfg=e.data.items[0]},getConstantFrameRate:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getConstantFrameRate();case 3:n=t.sent,e.fixedFrameRate.currentVal=e.constantFrameRate=n.currentConstantFrameRate,e.fixedFrameRate.options=e.allFixedFrameRateOptions.filter((function(e){return n.supportConstantFrameRates.includes(e.value)})),t.next=13;break;case 9:throw t.prev=9,t.t0=t["catch"](0),C["a"].error("quality.vue > getEncTable > getConstantFrameRate: ",t.t0),new Error;case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))()},setConstantFrameRate:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setConstantFrameRate(n.constantFrameRate);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.constantFrameRate=e,n.fixedFrameRate.currentVal=n.constantFrameRate),C["a"].error("quality.vue > setConstantFrameRate cfg: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},getEncType:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getEncType();case 3:n=t.sent,e.encTypeSelectBox.currentVal=e.encType=n.currentEncType,e.encTypeSelectBox.options=e.allEncTypeOptions.filter((function(e){return n.supportEncTypes.includes(e.value)})),t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("quality.vue > getEncType: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setEncType:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setEncType(n.encType);case 3:i.next=10;break;case 5:throw i.prev=5,i.t0=i["catch"](0),t||(n.encTypeSelectBox.currentVal=n.encType=e),C["a"].error("quality.vue > setEncType: ",i.t0),new Error;case 10:case"end":return i.stop()}}),i,null,[[0,5]])})))()},getEncTable:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.getEncProfileTable();case 3:e.encTable=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("quality.vue > getEncTable > getEncProfileTable: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},getEnc:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getEncCfg();case 3:e.enc=t.sent,e.encUpdate(),t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("quality.vue > getEnc cfg: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setEnc:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setEncCfg(n.enc);case 3:n.encUpdate(),i.next=12;break;case 7:throw i.prev=7,i.t0=i["catch"](0),t||(n.enc=e,n.encUpdate()),C["a"].error("quality.vue > setEnc cfg: ",i.t0),new Error;case 12:case"end":return i.stop()}}),i,null,[[0,7]])})))()},getTimelapseCfg:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getTimelapseCfg();case 3:n=t.sent,e.timelapseCfg=n.items[0],t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("quality.vue > getTimelapseCfg: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},compareChannelIndex:function(e,t){if(t>30){var n=Object(r["a"])(e.toString(2)).reverse();return!!~~n[t]}return!!(e&1< profile: ",this.encTable),-1;var i,a=Object(ne["a"])(this.streamTypeOptions);try{var r=function(){var a=i.value,r=a.value,s=[],o=[],c=[];e.$data["".concat(r,"Info")].videoEncType.options=e.videoEncTypeOptions,e.$data["".concat(r,"Info")].videoEncType.value=e.enc[r].videoEncType;for(var u=function(i){var a=e.encTable.profile[i],o=a.mainstream.cResolutionName,c=e.compareChannelIndex(a.iChnBits,t);if(c){var u=r===te["EStreamTypeInEncCfg"].mainstream||o===n.mainstream.cResolutionName,l=s.some((function(e){return e.value===a[r].cResolutionName}));u&&!l&&s.push({name:a[r].cResolutionName,value:a[r].cResolutionName})}},l=0;l=25)switch(e.norm){case N["BC_DEVICE_NORM_E"].BC_DEVICE_NORM_NTSC:m="30";break;case N["BC_DEVICE_NORM_E"].BC_DEVICE_NORM_PAL:m="25";break}o.push({name:m,value:h})}}catch(y){p.e(y)}finally{p.f()}e.$data["".concat(r,"Info")].lFrameRate.options=o;var g=e.enc[r].lFrameRate;o.some((function(e){return e.value===g}))||(g=o[0].value,e.enc[r].lFrameRate=g),e.$data["".concat(r,"Info")].lFrameRate.value=g;var f,_=Object(ne["a"])(n[r].lBitRate);try{for(_.s();!(f=_.n()).done;){var v=f.value;if(0===v)break;c.push({name:v.toString(),value:v})}}catch(y){_.e(y)}finally{_.f()}e.$data["".concat(r,"Info")].lBitRate.options=c;var b=e.enc[r].lBitRate;c.some((function(e){return e.value===b}))||(b=c[0].value,e.enc[r].lBitRate=b),e.$data["".concat(r,"Info")].lBitRate.value=e.enc[r].lBitRate,e.$data["".concat(r,"Info")].gop.options=[];for(var w=e.enc[r].gop,C=w.iMin;C<=w.iMax;C++)e.$data["".concat(r,"Info")].gop.options.push({value:C,name:C+"x"});e.$data["".concat(r,"Info")].gop.value=w.iCur};for(a.s();!(i=a.n()).done;)r()}catch(s){a.e(s)}finally{a.f()}}catch(o){throw C["a"].error("encUpdate: ",o),o}},checkTimelapseInfo:function(e,t){if(!this.supportTimelapse)return!1;if(N["BC_TIMELAPSE_TASK_TYPE_E"].BC_TIMELAPSE_TASK_TYPE_JPG===this.timelapseCfg.taskDes.eTaskType)return!1;var n=Date.now();if(!this.timelapseCfg.iEnable||Object(Eo["a"])(this.timelapseCfg.startTime)>n||!this.timelapseCfg.iNeverEnd&&n>=Object(Eo["a"])(this.timelapseCfg.endTime))return!1;if(this.streamTypeMap.get(e)!==this.timelapseCfg.eStreamtype)return!1;t&&t.stopPropagation();var i={icon:"icon-client_warning",iconSize:34,type:"message",message:this.$t("timelpase_cannot_change_quality_when_capturing_msg"),defaultBtnValue:1,buttons:[{title:this.$t("common_dialog_ok_button"),value:1,key:13}]};return S["a"].openMessageDialog(this,i,(function(){})),!0},fixedFrameRateSelect:function(e){var t=this,n=this.$data["fixedFrameRate"];Li["a"].changingEffect(n,(function(){t.constantFrameRate=n.currentVal=e}),this.setConstantFrameRate,this.constantFrameRate)},encTypeSelect:function(e){var t=this,n=this.$data["encTypeSelectBox"];Li["a"].changingEffect(n,(function(){t.encType=n.currentVal=e}),this.setEncType,this.encType)},setDefault:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s,o,c,u,d,p,h,m,g,f,_;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.channel){t.next=2;break}return t.abrupt("return");case 2:n=Object(ne["a"])(e.streamTypeOptions),t.prev=3,n.s();case 5:if((i=n.n()).done){t.next=12;break}if(a=i.value,r=e.checkTimelapseInfo(a.value),!r){t.next=10;break}return t.abrupt("return");case 10:t.next=5;break;case 12:t.next=17;break;case 14:t.prev=14,t.t0=t["catch"](3),n.e(t.t0);case 17:return t.prev=17,n.f(),t.finish(17);case 20:if(t.prev=20,e.isSettingDefault=!0,s=e.encTable.profile.findIndex((function(t){var n=e.compareChannelIndex(t.iChnBits,e.channel.index);return!!n&&e.streamTypeOptions.every((function(n){var i=n.value;return t[i].cResolutionName===e.enc[i].cResolutionName}))})),~s){t.next=25;break}throw new Error("encTable 搜索不到对应的 profile");case 25:o=Object(l["g"])(e.enc),c=Object(ne["a"])(e.streamTypeOptions);try{for(c.s();!(u=c.n()).done;)d=u.value,p=d.value,e.enc[p].lFrameRate=e.encTable.profile[s][p].lDefFrameRate,e.enc[p].lBitRate=e.encTable.profile[s][p].lDefBitRate,e.enc[p].gop.iCur=e.encTable.profile[s][p].lDefGop}catch(v){c.e(v)}finally{c.f()}if(!e.supportEncoderSelectStreamTypes.length){t.next=34;break}return t.next=31,e.channel.config.getDefaultEncCfg();case 31:h=t.sent,m=Object(ne["a"])(e.streamTypeOptions);try{for(m.s();!(g=m.n()).done;)f=g.value,_=f.value,e.enc[_].videoEncType=h[_].videoEncType}catch(v){m.e(v)}finally{m.f()}case 34:return e.encUpdate(),t.next=37,e.setEnc(o);case 37:e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].succeed),t.next=44;break;case 40:t.prev=40,t.t1=t["catch"](20),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),C["a"].error("quality.vue > setDefault: ",t.t1);case 44:e.isSettingDefault=!1;case 45:case"end":return t.stop()}}),t,null,[[3,14,17,20],[20,40]])})))()},getViewQualityIcon:function(e){return[te["EStreamTypeInEncCfg"].mainstream,te["EStreamTypeInEncCfg"].extendstream].includes(e)?"icon-view_high":"icon-view_low"},openStreamSettingDialog:function(e){var t=this;this.$store.commit("MODIFY_ENC_CFG_SETTING_INFO",{deviceNorm:this.norm,supportGop:this.supportGop,supportEncoderSelect:this.supportEncoderSelectStreamTypes.includes(e.value),modifiableStreamTypes:this.streamTypeOptions.map((function(e){return e.value})),enc:Object(l["g"])(this.enc),encTable:Object(l["g"])(this.encTable),curStreamTypeInfo:e,encModifiableCfg:Object(l["g"])(this.$data["".concat(e.value,"Info")]),selectCallback:this.checkTimelapseInfo,saveCallback:function(e){var n=Object(l["g"])(t.enc);t.enc=Object(l["g"])(e),Li["a"].saveEffect(t.$store,n,t.setEnc)}}),this.$store.commit("STORE_DIALOG_CHANNEL_INDEX",this.channelIndex),this.$store.commit("SET_DIALOGID","streamCfgSetting")},openCopytoDialog:function(){var e=this;this.$store.commit("SET_COPYTO_INIT_CALLBACK",this.getCopytoChannels),this.$store.commit("STORE_DIALOG_CHANNEL_INDEX",this.channelIndex),this.$store.commit("SET_CUSTOM_DIALOGID","scheduleCopyTo");var t=function(){e.saveAndCopyto(e.selectedChannels)};this.$store.commit("SET_COPYTO_SAVE_CALLBACK",t)},saveAndCopyto:function(e){var t=Object(l["g"])(this.enc);Li["a"].saveAndCopytoEffect(this.$store,t,e,this.saveSelectedChannels)},saveSelectedChannels:function(e,t,n){var i=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var r,s,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:for(a.prev=0,r=[],s=0;s saveSelectedChannels > set enc cfg: ",a.t0),new Error;case 12:case"end":return a.stop()}}),a,null,[[0,7]])})))()},getCopytoChannels:function(){var e,t=this,n=[],i=this.encTable.profile.find((function(e){return e.mainstream.cResolutionName===t.enc.mainstream.cResolutionName&&t.compareChannelIndex(e.iChnBits,t.channelIndex)})),a=Object(ne["a"])(this.channels);try{for(a.s();!(e=a.n()).done;){var r=e.value;if(r.index!==this.channelIndex){var s=this.compareChannelIndex(i.iChnBits,r.index);s&&n.push(r.index)}}}catch(o){a.e(o)}finally{a.f()}return n}}}),Oo=xo,Io=(n("d43b"),Object(g["a"])(Oo,ko,Ao,!1,null,"3a077eec",null)),Do=Io.exports,To=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"config-context-inner"},[n("remoteTitleBar",{attrs:{title:e.$t("common_Battery")}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"battery-area config-scroll-box"},[e.isBatteryUnpaired?n("div",{staticClass:"container-box battery-paired-error-wrap"},[n("batteryPairing",{on:{pair:e.setLargeBatteryInfo}})],1):n("div",{staticClass:"container-box flex battery-quantity"},[n("div",{staticClass:"battery-box flex",on:{click:function(e){e.stopPropagation()}}},[e.isCharging?n("span",{staticClass:"battery-icon icon-client_batterycharging"}):n("span",{staticClass:"battery-icon icon-client_battery_larger"}),n("div",{staticClass:"battery-num-box flex"},[n("div",{staticClass:"battery-num",class:{low:0===e.quantityState,middle:1===e.quantityState,"reo-ycharging-animation":e.isCharging},style:{height:e.batteryPercent+"%"}})]),e.isSolarpanels?n("span",{staticClass:"charge-type icon-client_solarpanels"}):e._e(),e.isAdapter?n("span",{staticClass:"charge-type icon-client_flex"}):e._e()]),n("div",{staticClass:"quantity-clue"},[n("h4",{staticClass:"small-title"},[e._v(e._s(e.quantityStateTitle))]),e.largeBatteryInfo.address?n("p",{staticClass:"notes-text",attrs:{title:e.$t("STR_DISK_INFO_ID")}},[e._v(e._s(e.largeBatteryInfo.address))]):e._e(),e.largeBatteryInfo.version?n("p",{staticClass:"notes-text",attrs:{title:e.$t("STR_VERSION")}},[e._v(e._s(e.largeBatteryInfo.version))]):e._e(),n("p",{staticClass:"notes-text"},[e._v(e._s(e.quantityStateWay))]),e.isBatteryNeedRepaired?[n("div",{staticClass:"link-entry",on:{click:function(t){return e.openWebLink("https://support.reolink.com/hc/en-us/articles/16598368427033",t)}}},[e._v(e._s(e.$t("get_battery_power_abnormal")))]),n("div",{staticClass:"pair-link-wrap"},[n("span",[e._v(e._s(e.$t("electric_quantity_information_anomaly_tips2"))+" ")]),n("span",{staticClass:"link-entry",on:{click:e.openBatteryParingDialog}},[e._v(e._s(e.$t("common_pair")))])])]:e._e()],2),n("span",{staticClass:"quantity-percent"},[e._v(e._s(e.batteryPercent+"%"))])]),e.supportCountBattery&&!e.isBatteryUnpaired?n("div",{staticClass:"container-box running-time-wrap"},[0===e.countBatteryLevel?n("div",{staticClass:"clue-box ab-center"},[n("p",{staticClass:"small-title"},[e._v(e._s(e.$t("battery_page_statistics_allow_dialog_title")))]),n("p",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_battery_subTitle")))]),n("div",{staticClass:"btn-allow-wrap flex"},[n("button",{staticClass:"btn-allow reo-button",attrs:{"reo-element":""},on:{click:e.allowCountBattery}},[e._v(e._s(e.$t("common_Allow")))])])]):e._e(),1===e.countBatteryLevel?[n("h4",{staticClass:"flex-between count-battery-title"},[n("span",[e._v(e._s(e.$t("remoteConfig_battery_clue1")))]),n("div",{staticClass:"cell-inner",on:{click:function(t){return t.stopPropagation(),e.showBanDialog(t)}}},[n("span",{staticClass:"icon-client_more btn-icon"})])]),n("p",[e._v(e._s(e.$t("remoteConfig_battery_clue2")))]),e.supportBatAnalysis?e._e():n("lineChart",{attrs:{chartData:e.onlineTime,showAbscissaScale:e.showDaysString,abscissaScale:e.daysString,warnData:20,warnText:e.$t("remoteConfig_battery_powerTips")}})]:e._e(),e.supportBatAnalysis?n("lineChart",{attrs:{chartData:e.quantityPercent,ordinateUnit:"%",popIconOrdinate:"icon-client_charge",ordinateScaleRange:e.quantityPercentOrdinateScaleRange,showAbscissaScale:e.showDaysString,abscissaScale:e.daysString}}):e._e()],2):e._e(),e.useAccountLogin||!e.supportUrl||e.isBatteryUnpaired?e._e():n("div",{staticClass:"extend-way-box"},[n("a",{ref:"webLink",staticClass:"extend-way flex",attrs:{"reo-element":"",tabindex:"-1"},on:{click:function(t){return e.openWebLink(e.supportUrl,t)}}},[n("span",{staticClass:"icon-client_questionmark"}),n("span",[e._v(e._s(e.$t("remoteConfig_battery_linkTo")))])])])]),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:function(t){return e.init()}}}):e._e()],1)},Ro=[],Po=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"lineChart",staticClass:"line-chart",on:{mousemove:e.drawForeCanvas,mouseleave:e.mouseLeave}},[n("canvas",{ref:"bgCanvas",attrs:{width:e.canvasWidth,height:e.canvasHeight}}),n("canvas",{ref:"foreCanvas",staticClass:"foreCanvas",attrs:{width:e.canvasWidth,height:e.canvasHeight}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPop,expression:"showPop"}],ref:"pop",staticClass:"data-pop flex",class:{left:e.popLeft},style:{top:e.popY+"px",left:e.popX+"px"}},[n("span",{class:e.popIconAbscissa}),n("p",[e._v(e._s(e.hoverData.abscissa))]),n("span",{class:e.popIconOrdinate}),n("p",[e._v(e._s(e.getOrdinateScaleString(e.hoverData.ordinate)))])])])},Lo=[],Mo=(n("cb29"),n("eec4")),No=n.n(Mo),Bo=No()({strategy:"scroll"}),Fo=u["a"].extend({name:"lineChart",props:{chartData:{type:Array,required:!0},showAbscissaScale:{type:Array,required:!0},abscissaScale:{type:Array,required:!0},ordinateUnit:{type:String,default:"time"},warnData:Number,warnText:String,popIconAbscissa:{type:String,default:"icon-client_calendar"},popIconOrdinate:{type:String,default:"icon-client_powertime"},ordinateScaleRange:{type:Array,default:function(){return[[0,5,10,15,20],[0,20,30,40,60],[0,20,60,360,720],[0,20,60,720,1440]]}},customCanvasStyleData:{type:Object,default:function(){return{}}}},data:function(){return{canvasWidth:0,canvasHeight:0,showPop:!1,popX:0,popY:0,dataAbscissaArr:[],dataOrdinateArr:[],ordinateScaleMaxWidth:0,hoverData:{abscissa:"09/12",ordinate:12},popLeft:!1,defaultCanvasStyleData:{font:"normal 300 12px SF Pro Display, Arial",fontFillStyle:"#fff",warnLineFillStyle:"#FF5E62",boundaryFillStyle:"#707070",linearBgStyle:[[0,"#3A5D6A"],[.2,"#1DC2E4"],[.98,"#1E73F2"],[1,"#1E70F2"]],chartPaddingTop:38,chartPaddingright:30,ordinateScaleRightSpace:6,abscissaTopSpace:10,abscissaTextHeight:14,popBottom:10,dotWidth:7}}},mounted:function(){var e=this;Bo.listenTo(this.$refs.lineChart,(function(t){e.canvasWidth=t.offsetWidth,e.canvasHeight=t.offsetHeight,e.$nextTick((function(){e.drawBgCanvas()}))})),setTimeout((function(){e.drawBgCanvas()}),100)},computed:{canvasStyleData:function(){return Object.assign({},this.defaultCanvasStyleData,this.customCanvasStyleData)},ordinateScale:function(){var e,t=[],n=Math.max.apply(Math,Object(r["a"])(this.chartData)),i=Object(ne["a"])(this.ordinateScaleRange);try{for(i.s();!(e=i.n()).done;){var a=e.value;t.push(Math.max.apply(Math,Object(r["a"])(a)))}}catch(p){i.e(p)}finally{i.f()}t=t.sort((function(e,t){return e-t}));var s,o=Object(ne["a"])(t);try{for(o.s();!(s=o.n()).done;){var c=s.value;if(n<=c){n=c;break}}}catch(p){o.e(p)}finally{o.f()}var u,l=Object(ne["a"])(this.ordinateScaleRange);try{for(l.s();!(u=l.n()).done;){var d=u.value;if(Math.max.apply(Math,Object(r["a"])(d))===n)return Object(r["a"])(d).sort((function(e,t){return e-t}))}}catch(p){l.e(p)}finally{l.f()}return[]},chartWidth:function(){return this.canvasWidth-this.ordinateScaleMaxWidth-this.canvasStyleData.ordinateScaleRightSpace-this.canvasStyleData.chartPaddingright},chartHeight:function(){return this.canvasHeight-this.canvasStyleData.chartPaddingTop-this.canvasStyleData.abscissaTextHeight-this.canvasStyleData.abscissaTopSpace},canvasOriginCoordX:function(){return this.ordinateScaleMaxWidth+this.canvasStyleData.ordinateScaleRightSpace},canvasOriginCoordY:function(){return this.chartHeight+this.canvasStyleData.chartPaddingTop}},watch:{chartData:function(e){var t=this;this.$nextTick((function(){t.drawBgCanvas()}))}},methods:{timeFormat:function(e){if(0===e)return"0";var t=parseInt(e/60%24+"",10),n=parseInt(e%60+"",10),i=t>0?t+"h":"",a=n>0?n+"min":"",r=i+a;return r||"24h"},getOrdinateScaleString:function(e){return"time"===this.ordinateUnit?this.timeFormat(e):e+this.ordinateUnit},getDataOrdinate:function(e,t){if(0===e)return e;for(var n=0;ni)){var a=(e-this.ordinateScale[n-1])/(i-this.ordinateScale[n-1])*t;return a+(n-1)*t}}return 0},drawBgCanvas:function(){var e=this,t=this.$refs.bgCanvas,n=t.getContext("2d");if(n){n.clearRect(0,0,this.canvasWidth,this.canvasHeight),n.save(),n.font=this.canvasStyleData.font,n.fillStyle=this.canvasStyleData.fontFillStyle;var i,a=0,s=Object(ne["a"])(this.ordinateScale);try{for(s.s();!(i=s.n()).done;){var o=i.value,c=n.measureText(this.getOrdinateScaleString(o)).width;a=Math.max(c,a)}}catch(k){s.e(k)}finally{s.f()}this.ordinateScaleMaxWidth=a;var u=this.chartWidth,l=this.chartHeight,d=l/(this.ordinateScale.length-1),p=u/(this.chartData.length-1);this.dataAbscissaArr=[],this.dataOrdinateArr=[];for(var h=0;h=this.warnData&&Math.min.apply(Math,Object(r["a"])(this.ordinateScale))<=this.warnData,w=0;b&&(w=this.getDataOrdinate(this.warnData,d)),n.save();var C=6;n.lineCap="round";for(var y=0;yw?"#FF5E62":"#58DB8D",n.stroke(),n.closePath()}n.restore(),n.beginPath(),n.moveTo(0,0),n.lineTo(u,0),n.strokeStyle=this.canvasStyleData.boundaryFillStyle,n.lineWidth=1,n.stroke(),n.beginPath(),n.setLineDash([2,2]),n.lineWidth=1,n.moveTo(0,-l),n.lineTo(u,-l),n.strokeStyle=this.canvasStyleData.boundaryFillStyle,n.stroke(),n.beginPath(),n.strokeStyle=this.canvasStyleData.warnLineFillStyle,n.setLineDash([2,2]),n.lineWidth=1,b&&(n.moveTo(0,-w),n.lineTo(u,-w),n.stroke(),this.warnText&&(n.beginPath(),n.textBaseline="top",n.textAlign="right",n.fillStyle=this.canvasStyleData.fontFillStyle,n.fillText(this.warnText,u-10,1-w))),n.restore()}},drawForeCanvas:function(e){var t=this.$refs.foreCanvas,n=t.getContext("2d");if(n){n.clearRect(0,0,this.canvasWidth,this.canvasHeight);var i=this.ordinateScaleMaxWidth+this.canvasStyleData.ordinateScaleRightSpace,a=e.clientX-t.getBoundingClientRect().left,r=a-i;r=Math.max(0,Math.min(r,this.chartWidth));var s=this.dataAbscissaArr.findIndex((function(e){return Math.abs(r-e)<3})),o=-1e3,c=-1e3;-1===s?this.showPop=!1:(o=this.dataAbscissaArr[s],c=this.dataOrdinateArr[s],this.hoverData.abscissa=this.abscissaScale[s],this.hoverData.ordinate=this.chartData[s],this.popX=i+r,this.popY=this.chartHeight-(c-this.canvasStyleData.dotWidth/2-this.canvasStyleData.popBottom),this.showPop=!0,this.popX>this.chartWidth/2?this.popLeft=!0:this.popLeft=!1),n.save(),n.translate(this.canvasOriginCoordX,this.canvasOriginCoordY),n.beginPath(),n.setLineDash([2,2]),n.lineWidth=1,n.moveTo(r,0),n.lineTo(r,-this.chartHeight),n.strokeStyle="#fff",n.stroke(),this.showPop&&(n.beginPath(),n.arc(o,-c,this.canvasStyleData.dotWidth/2,0,2*Math.PI,!1),n.closePath(),n.fillStyle="#FFFFFF",n.fill()),n.restore()}},mouseLeave:function(){this.showPop=!1;var e=this.$refs.foreCanvas,t=e.getContext("2d");t&&t.clearRect(0,0,this.canvasWidth,this.canvasHeight)}}}),jo=Fo,Vo=(n("e75f"),Object(g["a"])(jo,Po,Lo,!1,null,null,null)),Uo=Vo.exports,Ho=u["a"].extend({name:"battery",components:{lineChart:Uo,retry:be["a"],batteryPairing:Fn,remoteTitleBar:us["a"]},data:function(){return{supportUrl:this.$t("battery_support_url"),useAccountLogin:y["a"].USE_ACCOUNT_LOGIN,searchUrl:"https://api.reolink.com/v1.0/devices/",testSearchUrl:"http://112.74.193.157:8088/v1.0/devices/",isLoadingDataRetry:!1,isSettingDefault:!1,device:{},channel:void 0,maxDays:30,showDaysNum:6,destTimestamp:(new Date).getTime(),countBatteryLevel:-1,batteryInfo:{iChannel:0,eBatteryType:N["BC_BATTERY_TYPE_E"].BC_BATTERY_TYPE_DRY,iVoltage:0,iCurrent:0,iTemperature:0,iBatteryPercent:100,iLowPowerFlag:0,eChargeStatus:N["BC_CHARGE_STATUS_E"].BC_CHARGE_NONE,eAdapterStatus:N["BC_ADAPTER_STATUS_E"].BC_ADAPTER_NONE,iExceptionCode:0,adcOfPartA:0,adcOfPartB:0},onlineTime:[],quantityPercent:[],quantityPercentOrdinateScaleRange:[[0,25,50,75,100]],showDaysString:[],daysString:[],supportLargeBatteryInfoConfig:!1,supportBatAnalysis:!1,bootSecret:""}},created:function(){for(var e=0;e countBatteryLevel > bootSecret: ",n.t0);case 35:return n.next=37,Y["b"].get(i+d);case 37:if(p=n.sent,void 0!==p&&void 0!==p.data){n.next=40;break}return n.abrupt("return");case 40:for(h=[],m=p.data,g=0;g<30;g++)f=""+(g+1),_=m.data.ircut[f],v=0,void 0!==_&&_.forEach((function(e){v+=e.duration})),h.push(Math.ceil(v/6e4));t.onlineTime=h,n.next=49;break;case 46:n.prev=46,n.t1=n["catch"](4),C["a"].error("battery.vue > countBatteryLevel: ",n.t1);case 49:case"end":return n.stop()}}),n,null,[[4,46],[25,32]])})))()}},methods:{init:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!0),t.prev=1,e.isLoadingDataRetry=!1,t.next=5,Promise.all([e.device.isBattery(),e.device.getChannelAtIndex(0)]);case 5:if(n=t.sent,i=Object(T["a"])(n,2),a=i[0],r=i[1],a&&r){t.next=11;break}throw-1;case 11:return e.channel=r,t.next=14,Promise.all([e.device.supportLargeBatteryInfoConfig(),e.channel.supportBatAnalysis()]);case 14:if(s=t.sent,o=Object(T["a"])(s,2),e.supportLargeBatteryInfoConfig=o[0],e.supportBatAnalysis=o[1],!e.supportLargeBatteryInfoConfig){t.next=25;break}return t.next=22,e.getLargeBatteryInfo();case 22:if(!e.isBatteryUnpaired){t.next=25;break}return e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!1),t.abrupt("return");case 25:return t.next=27,e.getCountBattery();case 27:t.next=33;break;case 29:t.prev=29,t.t0=t["catch"](1),C["a"].error("battery.vue > init: ",t.t0),e.isLoadingDataRetry=!0;case 33:e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!1);case 34:case"end":return t.stop()}}),t,null,[[1,29]])})))()},getCountBattery:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s,o,c,u,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.channel&&e.supportCountBattery){t.next=2;break}return t.abrupt("return");case 2:if(t.prev=2,!e.supportBatAnalysis){t.next=13;break}return t.next=6,e.channel.config.getBatteryAnalysis();case 6:for(n=t.sent,i=[],a=0;a getCountBattery > bootSecret: ",t.t0);case 35:return t.next=37,Y["b"].get(s+u);case 37:if(l=t.sent,void 0!==l&&void 0!==l.data&&void 0!==l.data.data){t.next=40;break}return t.abrupt("return");case 40:e.countBatteryLevel=l.data.data.flag?1:0;case 41:t.next=47;break;case 43:throw t.prev=43,t.t1=t["catch"](2),C["a"].error("battery.vue > getCountBattery: ",t.t1),new Error;case 47:case"end":return t.stop()}}),t,null,[[2,43],[25,32]])})))()},getLargeBatteryInfo:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getLargeBatteryInfo();case 3:n=t.sent,e.$store.commit("MODIFY_LARGE_BATTERY_INFO",n),t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("battery.vue > getLargeBatteryInfo: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setLargeBatteryInfo:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=Object(ct["a"])(Object(ct["a"])({},t.largeBatteryInfo),{},{address:e}),a=!1,t.$store.commit("HANDLE_LOADING",!0),n.prev=3,n.next=6,t.device.config.setLargeBatteryInfo(i);case 6:return t.$store.commit("MODIFY_LARGE_BATTERY_INFO",{address:i.address,version:i.address}),n.prev=7,n.next=10,t.getLargeBatteryInfo();case 10:n.next=15;break;case 12:n.prev=12,n.t0=n["catch"](7),C["a"].error("battery.vue > setLargeBatteryInfo > getLargeBatteryInfo: get the new version failed",n.t0);case 15:t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].succeed),a=!0,n.next=24;break;case 19:n.prev=19,n.t1=n["catch"](3),C["a"].error("battery.vue > setLargeBatteryInfo: ",n.t1),t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),a=!1;case 24:return t.$store.commit("HANDLE_LOADING",!1),n.abrupt("return",a);case 26:case"end":return n.stop()}}),n,null,[[3,19],[7,12]])})))()},openBatteryParingDialog:function(){var e=this;this.$store.commit("SET_APP_DIALOG_CALLBACK",function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(n){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.setLargeBatteryInfo(n);case 2:i=t.sent,i&&e.$store.commit("SET_DIALOGID","");case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),this.$store.commit("SET_DIALOGID","batteryPairingDialogEntry")},onBatteryInfoChange:function(e){this.batteryInfo=e},getDateString:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e?new Date(e):new Date,i=n.getMonth()+1,a=n.getDate(),r=i<10?"0"+i:""+i,s=a<10?"0"+a:""+a;return t?n.getFullYear()+"/"+r+"/"+s:r+"/"+s},openWebLink:function(e,t){p["a"].openLink(e,t)},showBanDialog:function(){this.$store.commit("SET_CUSTOM_DIALOGID","banCountBattery"),this.$store.commit("SET_COPYTO_SAVE_CALLBACK",this.banCountBattery)},handleCountBattery:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a,r,s,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_DIALOG_LOADING",!0),n.prev=1,i="",n.next=5,t.device.loginDes();case 5:if(a=n.sent,r=a.uid.toUpperCase(),!(r.length<4)){n.next=9;break}return n.abrupt("return");case 9:if("TEST"===r.substring(0,4)?i+=t.testSearchUrl:i+=t.searchUrl,i+=r,i+="/statistics/flag",s="",t.bootSecret){n.next=24;break}return n.prev=14,n.next=17,t.device.bootSecret();case 17:t.bootSecret=n.sent,s="?boot_secret=".concat(t.bootSecret),n.next=24;break;case 21:n.prev=21,n.t0=n["catch"](14),C["a"].error("battery.vue > handleCountBattery > bootSecret: ",n.t0);case 24:return n.next=26,Y["b"].put(i+s,{flag:e});case 26:o=n.sent,200===o.status&&(t.countBatteryLevel=e?1:0),n.next=34;break;case 30:n.prev=30,n.t1=n["catch"](1),C["a"].error("battery.vue > handleCountBattery: ",n.t1),t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed);case 34:t.$store.commit("HANDLE_DIALOG_LOADING",!1);case 35:case"end":return n.stop()}}),n,null,[[1,30],[14,21]])})))()},allowCountBattery:function(){return this.handleCountBattery(!0)},banCountBattery:function(){return this.handleCountBattery(!1)}}}),Go=Ho,Wo=(n("3498"),Object(g["a"])(Go,To,Ro,!1,null,null,null)),zo=Wo.exports,Yo=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"config-context-inner"},[i("remoteTitleBar",{attrs:{channels:e.channels,title:e.$t("remote_config_page_led_section_title"),showChannelsBox:e.isNvr,hasChannelsBox:!0},on:{channelIndexChange:e.channelIndexChange}}),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"ledLight-wrap config-scroll-box"},[e.hasSupportFunction?e._e():i("span",[e._v(e._s(e.$t("common_load_info_not_supported")))]),e.eIndicatorLight.support||e.eDoorbellLightState.support?[i("h5",{staticClass:"middle-title led-title"},[e._v(e._s(e.$t("remote_config_page_tip_light_section_led_item_label")))]),e.eIndicatorLight.support?i("slideBtn",e._b({staticClass:"led-switch",on:{stateChange:e.ledSwitch}},"slideBtn",e.eIndicatorLight,!1)):e._e(),e.eDoorbellLightState.support?[i("selectBox",e._b({staticClass:"long-select-box",on:{selectChanged:e.doorbellLightStateSelect}},"selectBox",e.eDoorbellLightState,!1)),i("div",{directives:[{name:"show",rawName:"v-show",value:e.eDoorbellLightState.currentVal===e.BC_DOORBELL_LIGHT_STATE_E.BC_DOORBELL_LIGHT_STATE_CLOSE,expression:"eDoorbellLightState.currentVal===BC_DOORBELL_LIGHT_STATE_E.BC_DOORBELL_LIGHT_STATE_CLOSE"}],staticClass:"effect-choice"},[i("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("bell_status_led_auto_always_light_description")))])])]:e._e(),i("div",{staticClass:"flex effect-box status-box"},[i("div",[i("img",{staticClass:"product-img",attrs:{src:e.lightOffImg}}),i("p",[e._v(e._s(e.$t("common_view_off_full")))])]),i("div",[i("img",{staticClass:"product-img",attrs:{src:e.statusOnImg}}),i("p",[e._v(e._s(e.$t("common_view_on_button")))])])])]:e._e(),e.eLEDState.support?[i("h5",{staticClass:"middle-title infrared-title"},[e._v(e._s(e.$t("remote_config_page_led_section_led_item_label")))]),i("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("ir_light_usage")))]),i("div",{staticClass:"line"}),i("div",{staticClass:"flex effect-box led-box"},[i("div",[i("div",{staticClass:"img-box"},[i("img",{attrs:{src:e.lightOff}}),i("img",{staticClass:"product-img",attrs:{src:e.lightOffImg}})]),i("p",[e._v(e._s(e.$t("ir_light_off")))])]),i("div",[i("div",{staticClass:"img-box"},[i("img",{attrs:{src:e.infraredOn}}),i("img",{staticClass:"product-img",attrs:{src:e.infraredOnImg}})]),i("p",[e._v(e._s(e.$t("ir_light_on")))])])]),i("div",{staticClass:"effect-choice led-state-effect"},[i("h5",{staticClass:"flex text"},[i("label",{staticClass:"flex customized-label",class:{checked:e.eLEDState.currentVal===e.SDK_TYPES.BC_LED_STATE_E.BC_LED_AUTO},attrs:{radio:""}},[i("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.eLEDState.currentVal,expression:"eLEDState.currentVal",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"radio",name:"eLEDState"},domProps:{value:e.SDK_TYPES.BC_LED_STATE_E.BC_LED_AUTO,checked:e._q(e.eLEDState.currentVal,e.SDK_TYPES.BC_LED_STATE_E.BC_LED_AUTO)},on:{change:function(t){return e.$set(e.eLEDState,"currentVal",e.SDK_TYPES.BC_LED_STATE_E.BC_LED_AUTO)}}}),i("span",{staticClass:"check-icon",attrs:{checkicon:""}})]),i("span",[e._v(e._s(e.$t("common_view_auto")))])]),i("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("ir_light_turn_on_tip")))]),e.supportIRLedBrightnessConfig?[i("p",{directives:[{name:"show",rawName:"v-show",value:e.eLEDState.currentVal===e.SDK_TYPES.BC_LED_STATE_E.BC_LED_AUTO,expression:"eLEDState.currentVal=== SDK_TYPES.BC_LED_STATE_E.BC_LED_AUTO"}],staticClass:"infrared-brightness-des"},[e._v(e._s(e.$t("infrared_lights_lightness_tip")))]),i("processSlider",e._b({directives:[{name:"show",rawName:"v-show",value:e.eLEDState.currentVal===e.SDK_TYPES.BC_LED_STATE_E.BC_LED_AUTO,expression:"eLEDState.currentVal=== SDK_TYPES.BC_LED_STATE_E.BC_LED_AUTO"}],staticClass:"process-slider infrared-brightness-slider",on:{valueChanged:e.irLedBrightnessValueChanged}},"processSlider",e.irLedBrightness,!1),[i("span",{staticClass:"percent-num"},[e._v(e._s(e.irLedBrightness.value))])])]:e._e()],2),i("div",{staticClass:"effect-choice led-state-effect"},[i("h5",{staticClass:"flex text"},[i("label",{staticClass:"flex customized-label",class:{checked:e.eLEDState.currentVal===e.SDK_TYPES.BC_LED_STATE_E.BC_LED_CLOSE},attrs:{radio:""}},[i("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.eLEDState.currentVal,expression:"eLEDState.currentVal",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"radio",name:"eLEDState"},domProps:{value:e.SDK_TYPES.BC_LED_STATE_E.BC_LED_CLOSE,checked:e._q(e.eLEDState.currentVal,e.SDK_TYPES.BC_LED_STATE_E.BC_LED_CLOSE)},on:{change:function(t){return e.$set(e.eLEDState,"currentVal",e.SDK_TYPES.BC_LED_STATE_E.BC_LED_CLOSE)}}}),i("span",{staticClass:"check-icon",attrs:{checkicon:""}})]),i("span",[e._v(e._s(e.$t("remote_infrared_light_page_keep_off")))])]),i("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("remote_infrared_light_page_keep_off_description")))])])]:e._e(),e.supportFloodlight?[i("h5",{staticClass:"middle-title"},[e._v(e._s(""+(e.isFloodlight?e.$t("floodlight_title"):e.$t("common_spotlight"))))]),i("p",{staticClass:"discipline-description"},[e._v(e._s(""+(e.isFloodlight?e.$t("remote_settings_floodlight_page_func_intro"):e.$t("remote_settings_spotlight_page_func_intro"))))]),i("div",{staticClass:"flex effect-box"},[i("div",[i("img",{attrs:{src:n("6d0a")}}),i("p",[e._v(e._s(""+(e.isFloodlight?e.$t("remote_settings_floodlight_page_light_off"):e.$t("remote_settings_spotlight_page_light_off"))))])]),i("div",[i("img",{attrs:{src:n("6b8e")}}),i("p",[e._v(e._s(""+(e.isFloodlight?e.$t("remote_settings_floodlight_page_light_on"):e.$t("remote_settings_spotlight_page_light_on"))))])])]),e.supportFloodlightBrightness?i("div",{staticClass:"floodlight-brightness"},[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_Brightness")))]),-1!==e.floodlight.iAutoBright?[i("h5",{staticClass:"flex text floodlight-auto-bright"},[i("label",{staticClass:"flex customized-label",class:{checked:!!e.floodlightAutoBright.currentVal},attrs:{radio:""}},[i("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.floodlightAutoBright.currentVal,expression:"floodlightAutoBright.currentVal",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"radio",name:"floodlightAutoBright"},domProps:{value:1,checked:e._q(e.floodlightAutoBright.currentVal,1)},on:{change:function(t){return e.$set(e.floodlightAutoBright,"currentVal",1)}}}),i("span",{staticClass:"check-icon",attrs:{checkicon:""}})]),i("span",[e._v(e._s(e.$t("common_view_auto")))])]),i("h5",{staticClass:"flex text floodlight-manual-bright"},[i("label",{staticClass:"flex customized-label",class:{checked:!e.floodlightAutoBright.currentVal},attrs:{radio:""}},[i("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.floodlightAutoBright.currentVal,expression:"floodlightAutoBright.currentVal",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"radio",name:"floodlightAutoBright"},domProps:{value:0,checked:e._q(e.floodlightAutoBright.currentVal,0)},on:{change:function(t){return e.$set(e.floodlightAutoBright,"currentVal",0)}}}),i("span",{staticClass:"check-icon",attrs:{checkicon:""}})]),i("span",[e._v(e._s(e.$t("common_view_manual")))])])]:e._e(),i("processSlider",e._b({directives:[{name:"show",rawName:"v-show",value:-1===e.floodlight.iAutoBright||!e.floodlightAutoBright.currentVal,expression:"floodlight.iAutoBright===-1||!floodlightAutoBright.currentVal"}],staticClass:"process-slider",on:{valueChanged:e.floodlightBrightValueChanged}},"processSlider",e.floodlightBrightness,!1),[i("span",{staticClass:"percent-num"},[e._v(e._s(e.floodlightBrightness.value))])])],2):e._e(),e.showNightModeFunc?[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("spotlight_modes")))]),i("selectBox",e._b({staticClass:"long-select-box",on:{selectChanged:e.floodlightModeSelect}},"selectBox",e.floodlightMode,!1)),i("div",{directives:[{name:"show",rawName:"v-show",value:e.floodlight.mode===e.EFloodlightMode.close,expression:"floodlight.mode===EFloodlightMode.close"}],staticClass:"effect-choice"},[i("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("keep_the_light_off_des")))])]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.floodlight.mode===e.EFloodlightMode.intelligentVision,expression:"floodlight.mode===EFloodlightMode.intelligentVision"}],staticClass:"effect-choice"},[i("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("night_light_alert_des")))]),0!==Object.keys(e.floodlight.wlAiDetectType).length?i("p",{staticClass:"intelligent-choice flex"},e._l(e.floodlight.wlAiDetectType,(function(t,n){return i("label",{key:n,staticClass:"flex customized-label",class:{checked:e.checkedAiDetectTypes.includes(n),"ban-events":1===e.checkedAiDetectTypes.length&&e.checkedAiDetectTypes.includes(n)},attrs:{checkbox:"",title:e.getAiDetectTypeTitle(n)}},[i("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.checkedAiDetectTypes,expression:"checkedAiDetectTypes",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"checkbox"},domProps:{value:n,checked:Array.isArray(e.checkedAiDetectTypes)?e._i(e.checkedAiDetectTypes,n)>-1:e.checkedAiDetectTypes},on:{change:[function(t){var i=e.checkedAiDetectTypes,a=t.target,r=!!a.checked;if(Array.isArray(i)){var s=n,o=e._i(i,s);a.checked?o<0&&(e.checkedAiDetectTypes=i.concat([s])):o>-1&&(e.checkedAiDetectTypes=i.slice(0,o).concat(i.slice(o+1)))}else e.checkedAiDetectTypes=r},e.checkedAiDetectTypesChange]}}),i("span",{staticClass:"check-icon icon-client_check",attrs:{checkicon:""}}),n===e.EAiDetectCate.MD?i("mdIcon",{staticClass:"text cate-icon"}):i("span",{staticClass:"text cate-icon",class:e.getDetectIcon(n)})],1)})),0):e._e()]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.floodlight.mode===e.EFloodlightMode.nightVision,expression:"floodlight.mode===EFloodlightMode.nightVision"}],staticClass:"effect-choice"},[i("p",{staticClass:"discipline-description"},[e._v(e._s(""+(e.isFloodlight?e.$t("remote_settings_floodlight_page_night_vision_always_on_description"):e.$t("remote_settings_spotlight_page_night_vision_always_on_description"))))])]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.floodlight.mode===e.EFloodlightMode.timingVision,expression:"floodlight.mode===EFloodlightMode.timingVision"}],staticClass:"effect-choice"},[i("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("custom_schedule_des")))]),i("div",{staticClass:"range-input-wrap flex"},[i("div",{staticClass:"range-input-box flex"},[i("rangeInput",e._b({attrs:{flag:"timingVision-begin"},on:{rangeChanged:e.rangeInputChanged}},"rangeInput",Object.assign({},e.rangeInputStyle,{left:e.timingVision.beginHour,right:e.timingVision.beginMinute}),!1)),i("p",{staticClass:"notes-text"},[e._v(e._s(e.$t("alarm_siren_custom_settings_page_tap_to_start_record")))])],1),i("span",{staticClass:"separate-line"}),i("div",{staticClass:"range-input-box flex"},[i("rangeInput",e._b({attrs:{flag:"timingVision-end"},on:{rangeChanged:e.rangeInputChanged}},"rangeInput",Object.assign({},e.rangeInputStyle,{left:e.timingVision.endHour,right:e.timingVision.endMinute}),!1)),i("p",{staticClass:"notes-text"},[e._v(e._s(e.$t("alarm_siren_custom_settings_page_tap_to_stop_record")))])],1)])]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.floodlight.mode===e.EFloodlightMode.autoAdaptBrightness,expression:"floodlight.mode===EFloodlightMode.autoAdaptBrightness"}],staticClass:"effect-choice"},[i("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("auto_supplement_lighting_des")))])]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.floodlight.mode===e.EFloodlightMode.lightAlarm,expression:"floodlight.mode===EFloodlightMode.lightAlarm"}],staticClass:"effect-choice"},[i("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("scheduled_light_alert_des")))]),0!==Object.keys(e.floodlight.wlAiDetectType).length?i("p",{staticClass:"intelligent-choice flex"},e._l(e.floodlight.wlAiDetectType,(function(t,n){return i("label",{key:n,staticClass:"flex customized-label",class:{checked:e.checkedAiDetectTypes.includes(n),"ban-events":1===e.checkedAiDetectTypes.length&&e.checkedAiDetectTypes.includes(n)},attrs:{checkbox:"",title:e.getAiDetectTypeTitle(n)}},[i("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.checkedAiDetectTypes,expression:"checkedAiDetectTypes",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"checkbox"},domProps:{value:n,checked:Array.isArray(e.checkedAiDetectTypes)?e._i(e.checkedAiDetectTypes,n)>-1:e.checkedAiDetectTypes},on:{change:[function(t){var i=e.checkedAiDetectTypes,a=t.target,r=!!a.checked;if(Array.isArray(i)){var s=n,o=e._i(i,s);a.checked?o<0&&(e.checkedAiDetectTypes=i.concat([s])):o>-1&&(e.checkedAiDetectTypes=i.slice(0,o).concat(i.slice(o+1)))}else e.checkedAiDetectTypes=r},e.checkedAiDetectTypesChange]}}),i("span",{staticClass:"check-icon icon-client_check",attrs:{checkicon:""}}),n===e.EAiDetectCate.MD?i("mdIcon",{staticClass:"text cate-icon"}):i("span",{staticClass:"text cate-icon",class:e.getDetectIcon(n)})],1)})),0):e._e(),i("div",{staticClass:"range-input-wrap flex"},[i("div",{staticClass:"range-input-box flex"},[i("rangeInput",e._b({attrs:{flag:"lightAlarm-begin"},on:{rangeChanged:e.rangeInputChanged}},"rangeInput",Object.assign({},e.rangeInputStyle,{left:e.lightAlarm.beginHour,right:e.lightAlarm.beginMinute}),!1)),i("p",{staticClass:"notes-text"},[e._v(e._s(e.$t("alarm_siren_custom_settings_page_tap_to_start_record")))])],1),i("span",{staticClass:"separate-line"}),i("div",{staticClass:"range-input-box flex"},[i("rangeInput",e._b({attrs:{flag:"lightAlarm-end"},on:{rangeChanged:e.rangeInputChanged}},"rangeInput",Object.assign({},e.rangeInputStyle,{left:e.lightAlarm.endHour,right:e.lightAlarm.endMinute}),!1)),i("p",{staticClass:"notes-text"},[e._v(e._s(e.$t("alarm_siren_custom_settings_page_tap_to_stop_record")))])],1)])])]:e._e(),e.iAutoByPreview.support?i("div",[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("remote_settings_spotlight_page_auto_on_preview")))]),i("p",{staticClass:"discipline-description"},[e._v(e._s(""+(e.isFloodlight?e.$t("remote_settings_floodlight_page_auto_on_preview_description"):e.$t("remote_settings_spotlight_page_auto_on_preview_description"))))]),i("slideBtn",e._b({on:{stateChange:e.floodlightSwitch}},"slideBtn",e.iAutoByPreview,!1))],1):e._e()]:e._e(),e._e()],2),!e.isConfigContextLoading&&e.isLoadingDataRetry?i("retry",{on:{retry:function(t){return e.channelInit()}}}):e._e()],1)},qo=[],$o=n("6d0a"),Ko=n.n($o),Zo=n("3d1b"),Jo=n.n(Zo),Qo=n("0fce"),Xo=n.n(Qo),ec=n("4671"),tc=n.n(ec),nc=n("d445"),ic=n.n(nc),ac=u["a"].extend({components:{retry:be["a"],slideBtn:Ci["a"],selectBox:Xe["a"],processSlider:ts["a"],rangeInput:so["a"],remoteTitleBar:us["a"],mdIcon:bo},data:function(){return{isLoadingDataRetry:!1,channelIndex:-1,channels:[],lightOff:Ko.a,infraredOn:Jo.a,SDK_TYPES:N,rangeInputStyle:{zeroize:!0,min:0,leftMax:23,rightMax:59,closeSort:!0,timeStyle:!0},ledLight:{},eIndicatorLight:{support:!1,isOpen:N["BC_LIGHT_STATE_E"].BC_LIGHT_CLOSE,closeVal:N["BC_LIGHT_STATE_E"].BC_LIGHT_CLOSE,openVal:N["BC_LIGHT_STATE_E"].BC_LIGHT_OPEN,isSetting:!1,warnClue:!1,flag:"eIndicatorLight"},eLEDState:{support:!1,currentVal:N["BC_LED_STATE_E"].BC_LED_AUTO,isSetting:!1,warnClue:!1,flag:"eLEDState"},irLedBrightness:{bgColor:"#AAA",max:100,min:0,value:1,flag:"irLedBrightness",isSetting:!1,warnClue:!1},floodlightAutoBright:{currentVal:0,isSetting:!1,warnClue:!1,flag:"floodlightAutoBright"},channelInfo:null,detectionTypesIcon:[{mode:te["EAiDetectCate"].MD,title:this.$t("common_ai_any_motion_option"),icon:""},{mode:te["EAiDetectCate"].PEOPLE,title:this.$t("common_ai_human_option"),icon:"icon-ai_alarm_human"},{mode:te["EAiDetectCate"].VEHICLE,title:this.$t("common_ai_vehicle_option"),icon:"icon-ai_alarm_car"},{mode:te["EAiDetectCate"].DOG_CAT,title:this.$t("common_ai_pet_option"),icon:"icon-ai_alarm_pet"},{mode:te["EAiDetectCate"].FACE,title:"face",icon:"icon-ai_alarm_human"}],floodlight:{mode:R["EFloodlightMode"].close,iAutoBright:-1,bright:{iCur:0,iDef:0,iMin:0,iMax:0},timingVision:{beginHour:0,beginMinute:0,endHour:0,endMinute:0},lightAlarm:{beginHour:0,beginMinute:0,endHour:0,endMinute:0},iAutoByPreview:0,wlAiDetectType:{}},timingVision:{beginHour:0,beginMinute:0,endHour:0,endMinute:0},lightAlarm:{beginHour:0,beginMinute:0,endHour:0,endMinute:0},supportDoorbellLightKeepOff:!1,supportIRLedBrightnessConfig:!1,BC_DOORBELL_LIGHT_STATE_E:N["BC_DOORBELL_LIGHT_STATE_E"],allDoorbellLightStateOptions:[{value:N["BC_DOORBELL_LIGHT_STATE_E"].BC_DOORBELL_LIGHT_STATE_CLOSE,name:this.$t("common_view_auto")},{value:N["BC_DOORBELL_LIGHT_STATE_E"].BC_DOORBELL_LIGHT_STATE_KEEPOFF,name:this.$t("remote_infrared_light_page_keep_off")},{value:N["BC_DOORBELL_LIGHT_STATE_E"].BC_DOORBELL_LIGHT_STATE_OPEN,name:this.$t("doorbell_light_nighttime_des")}],eDoorbellLightState:{support:!1,currentVal:N["BC_DOORBELL_LIGHT_STATE_E"].BC_DOORBELL_LIGHT_STATE_CLOSE,options:[],isSetting:!1,warnClue:!1,flag:"eDoorbellLightState"},iAutoByPreview:{support:!1,isOpen:0,closeVal:0,openVal:1,isSetting:!1,warnClue:!1,flag:"iAutoByPreview"},currSupport:{LEDControl:!1,indicatorLight:!1,autoByPreview:!1,floodlight:!1},supportFloodlightBrightness:!1,supportFloodlightIntelligentVision:!1,supportFloodlightNightVision:!1,supportFloodlightTimingVision:!1,supportFloodlightLightAlarmMode:!1,supportFloodlightAutoAdaptBrightness:!1,supportFloodlight:!1,lightType:N["BC_LIGHT_TYPE_E"].BC_LIGHT_TYPE_SPOTLIGHT,floodlightBrightness:{bgColor:"#AAA",max:100,min:1,value:1,flag:"floodlightBrightness",isSetting:!1,warnClue:!1},EFloodlightMode:R["EFloodlightMode"],allFloodlightModeOptions:[{name:this.$t("common_view_off_full"),value:R["EFloodlightMode"].close},{name:this.$t("night_light_alert"),value:R["EFloodlightMode"].intelligentVision},{name:this.$t("remote_settings_spotlight_page_night_vision_always_on_title"),value:R["EFloodlightMode"].nightVision},{name:this.$t("custom_schedule"),value:R["EFloodlightMode"].timingVision},{name:this.$t("auto_supplement_lighting"),value:R["EFloodlightMode"].autoAdaptBrightness},{name:this.$t("scheduled_light_alert"),value:R["EFloodlightMode"].lightAlarm}],floodlightMode:{isSetting:!1,warnClue:!1,flag:"floodlightMode",currentVal:R["EFloodlightMode"].close,options:[]},lightOffImg:Xo.a,statusOnImg:ic.a,infraredOnImg:tc.a,EAiDetectCate:te["EAiDetectCate"],checkedAiDetectTypes:[]}},computed:{handle:function(){return this.$store.getters.deviceHandle},channel:function(){return this.channels[this.channelIndex]},isConfigContextLoading:function(){return this.$store.getters.configContextLoading},cType:function(){return this.channelInfo?this.channelInfo.cType:""},isNvr:function(){return this.$store.getters.isNvr},selectedChannels:function(){return this.$store.getters.selectedChannels},hasSupportFunction:function(){return this.eIndicatorLight.support||this.eDoorbellLightState.support||this.eLEDState.support||this.supportFloodlight},isFloodlight:function(){return N["BC_LIGHT_TYPE_E"].BC_LIGHT_TYPE_FLOODLIGHT===this.lightType},showNightModeFunc:function(){return this.supportFloodlightIntelligentVision||this.supportFloodlightNightVision||this.supportFloodlightTimingVision||this.supportFloodlightLightAlarmMode||this.supportFloodlightAutoAdaptBrightness}},watch:{cType:{handler:function(e){var t=this;if(e){this.lightOffImg=Xo.a,this.statusOnImg=ic.a,this.infraredOnImg=tc.a;var n="".concat("https://home-cdn.reolink.us/wp-content/assets/app","/model-images/").concat(e,"/light_off.png"),i="".concat("https://home-cdn.reolink.us/wp-content/assets/app","/model-images/").concat(e,"/status_on.png"),a="".concat("https://home-cdn.reolink.us/wp-content/assets/app","/model-images/").concat(e,"/infrared_on.png");Object(l["u"])(n).then((function(){t.lightOffImg=n})).catch((function(){return null})),Object(l["u"])(i).then((function(){t.statusOnImg=i})).catch((function(){return null})),Object(l["u"])(a).then((function(){t.infraredOnImg=a})).catch((function(){return null}))}},immediate:!0},handle:{handler:function(){this.deviceInit()},immediate:!0},"eLEDState.currentVal":function(e){var t=this;if(e!==this.ledLight.eLEDState){var n=this.eLEDState;Li["a"].changingEffect(n,(function(){t.ledLight.eLEDState=e}),this.setLed,JSON.parse(JSON.stringify(this.ledLight)))}},"floodlightAutoBright.currentVal":function(e){var t=this;if(e!==this.floodlight.iAutoBright){var n=this.floodlightAutoBright;Li["a"].changingEffect(n,(function(){t.floodlight.iAutoBright=e}),this.setFloodlight,JSON.parse(JSON.stringify(this.floodlight)))}},floodlightMode:function(e,t){if(e!==R["EFloodlightMode"].close&&t!==R["EFloodlightMode"].close&&e!==this.floodlight.mode){var n=this.floodlight;Li["a"].changingEffect(n,(function(){n.mode=e}),this.setFloodlight,Object(l["g"])(this.floodlight))}}},mounted:function(){this.eDoorbellLightState.options=Object(r["a"])(this.allDoorbellLightStateOptions)},methods:{deviceInit:function(){var e=this;Li["a"].pageInitEffect(this.$store,this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,B["a"].getDeviceWithHandle(e.handle);case 2:return n=t.sent,t.next=5,n.getChannels();case 5:e.channels=t.sent;case 6:case"end":return t.stop()}}),t)}))))},checkedAiDetectTypesChange:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.floodlight,Li["a"].changingEffect(n,(function(){for(var t in n.wlAiDetectType)n.wlAiDetectType[t]=0;e.checkedAiDetectTypes.forEach((function(e){return n.wlAiDetectType[e]=1}))}),e.setFloodlight,Object(l["g"])(e.floodlight));case 2:case"end":return t.stop()}}),t)})))()},channelInit:function(){var e=this;this.channel&&this.$nextTick((function(){Li["a"].pageInitEffect(e.$store,e.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,s,o,c,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.channelInfo=null,t.next=4,e.channel.config.getChannelVersion();case 4:e.channelInfo=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),C["a"].error("ledLight.vue > channelInit > getChannelVersion: ",t.t0);case 10:return t.next=12,e.getSupport();case 12:if(n=[],(e.eLEDState.support||e.eIndicatorLight.support)&&n.push(e.getLed()),!e.supportFloodlight){t.next=50;break}i=[],a=Object(ne["a"])(e.allFloodlightModeOptions),t.prev=17,a.s();case 19:if((s=a.n()).done){t.next=40;break}o=s.value,c=!1,t.t1=o.value,t.next=t.t1===R["EFloodlightMode"].timingVision?25:t.t1===R["EFloodlightMode"].intelligentVision?27:t.t1===R["EFloodlightMode"].nightVision?29:t.t1===R["EFloodlightMode"].lightAlarm?31:t.t1===R["EFloodlightMode"].autoAdaptBrightness?33:(t.t1,R["EFloodlightMode"].close,35);break;case 25:return c=e.supportFloodlightTimingVision,t.abrupt("break",37);case 27:return c=e.supportFloodlightIntelligentVision,t.abrupt("break",37);case 29:return c=e.supportFloodlightNightVision,t.abrupt("break",37);case 31:return c=e.supportFloodlightLightAlarmMode,t.abrupt("break",37);case 33:return c=e.supportFloodlightAutoAdaptBrightness,t.abrupt("break",37);case 35:return c=!0,t.abrupt("break",37);case 37:c&&i.push(o);case 38:t.next=19;break;case 40:t.next=45;break;case 42:t.prev=42,t.t2=t["catch"](17),a.e(t.t2);case 45:return t.prev=45,a.f(),t.finish(45);case 48:e.floodlightMode.options=i,n.push(e.getFloodlight());case 50:return t.next=52,Promise.all(n);case 52:e.eDoorbellLightState.support&&(u=Object(r["a"])(e.allDoorbellLightStateOptions),e.supportDoorbellLightKeepOff||u.splice(1,1),e.eDoorbellLightState.options=u);case 53:case"end":return t.stop()}}),t,null,[[0,7],[17,42,45,48]])}))))}))},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.channel.supportLEDControl(),e.channel.supportIndicatorLight(),e.channel.supportFloodlightAutoByPreview(),e.channel.supportFloodLight(),e.channel.supportFloodlightBrightness(),e.channel.supportFloodlightIntelligentVision(),e.channel.supportFloodlightNightVision(),e.channel.supportFloodlightTimingVision(),e.channel.supportFloodlightLightAlarmMode(),e.channel.supportFloodlightAutoAdaptBrightness(),e.channel.supportDoorbellLight(),e.channel.supportDoorbellLightKeepOff(),e.channel.supportIRLedBrightnessConfig()]);case 3:return n=t.sent,i=Object(T["a"])(n,13),e.eLEDState.support=i[0],e.eIndicatorLight.support=i[1],e.iAutoByPreview.support=i[2],e.supportFloodlight=i[3],e.supportFloodlightBrightness=i[4],e.supportFloodlightIntelligentVision=i[5],e.supportFloodlightNightVision=i[6],e.supportFloodlightTimingVision=i[7],e.supportFloodlightLightAlarmMode=i[8],e.supportFloodlightAutoAdaptBrightness=i[9],e.eDoorbellLightState.support=i[10],e.supportDoorbellLightKeepOff=i[11],e.supportIRLedBrightnessConfig=i[12],t.next=20,e.channel.lightType();case 20:return e.lightType=t.sent,a=!1,t.prev=22,t.next=25,e.channel.supportAiAnimal();case 25:a=t.sent,t.next=31;break;case 28:t.prev=28,t.t0=t["catch"](22),C["a"].error("ledLight.vue > getSupport > supportAiAnimal: ",t.t0);case 31:r=e.detectionTypesIcon.find((function(e){return e.mode===te["EAiDetectCate"].DOG_CAT})),r&&(r.title=a?e.$t("common_ai_animal_option"):e.$t("common_ai_pet_option")),t.next=40;break;case 36:throw t.prev=36,t.t1=t["catch"](0),C["a"].error("ledLight.vue > getSupport: ",t.t1),new Error;case 40:case"end":return t.stop()}}),t,null,[[0,36],[22,28]])})))()},getDetectIcon:function(e){var t=this.detectionTypesIcon.find((function(t){return t.mode===e}));return t?t.icon:""},playAudition:function(){this.channel.config.manualRingDown({iChannel:this.channel?this.channel.index:-1,eRingMode:N["BC_RING_DOWN_MODE_E"].BC_RING_DOWN_TIMES,iTimes:1})},getLed:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getLedState();case 3:e.ledLight=t.sent,e.ledUpdate(),t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("ledLight.vue > getLed cfg: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},getAiDetectTypeTitle:function(e){var t=this.detectionTypesIcon.find((function(t){return t.mode===e}));return t?t.title:""},setLed:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.channel.config.setLedState(t.ledLight);case 3:n.next=12;break;case 6:throw n.prev=6,n.t0=n["catch"](0),t.ledLight=e,t.ledUpdate(),C["a"].error("ledLight.vue > setLed cfg: ",n.t0),new Error;case 12:case"end":return n.stop()}}),n,null,[[0,6]])})))()},irLedBrightnessValueChanged:function(e){var t=this;Li["a"].changingEffect(this.irLedBrightness,(function(){t.ledLight.irLedBrightness=t.irLedBrightness.value=e}),this.setLed,Object(l["g"])(this.ledLight))},ledUpdate:function(){this.eIndicatorLight.isOpen=this.ledLight.eIndicatorLight,this.eLEDState.currentVal=this.ledLight.eLEDState,this.eDoorbellLightState.currentVal=this.ledLight.eDoorbellLightState,this.irLedBrightness.value=this.ledLight.irLedBrightness},rangeInputChanged:function(e,t){var n=Object(l["g"])(this.floodlight),i=t.split("-"),a=Object(T["a"])(i,2),r=a[0],s=a[1],o="begin"===s?"beginHour":"endHour",c="begin"===s?"beginMinute":"endMinute";this.$set(this.floodlight[r],o,e[0]),this.$set(this.floodlight[r],c,e[1]),this.floodlightUpdate(),Li["a"].saveEffect(this.$store,n,this.setFloodlight)},ledSwitch:function(e,t){var n=this,i=this.$data[t];Li["a"].changingEffect(i,(function(){n.ledLight[t]=i.isOpen=e}),this.setLed,JSON.parse(JSON.stringify(this.ledLight)))},getFloodlight:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getFloodlightTask();case 3:e.floodlight=t.sent,e.floodlightUpdate(),t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("ledLight.vue > getFloodlight: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setFloodlight:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.channel.config.setFloodlightTask(t.floodlight);case 3:n.next=11;break;case 5:throw n.prev=5,n.t0=n["catch"](0),t.floodlight=e,t.floodlightUpdate(),C["a"].error("ledLight.vue > setFloodlight cfg: ",n.t0),new Error;case 11:case"end":return n.stop()}}),n,null,[[0,5]])})))()},floodlightSwitch:function(e,t){var n=this,i=this.$data[t];Li["a"].changingEffect(i,(function(){n.floodlight[t]=i.isOpen=e}),this.setFloodlight,JSON.parse(JSON.stringify(this.floodlight)))},floodlightUpdate:function(){for(var e in this.floodlightBrightness.value=this.floodlight.bright.iCur,this.floodlightMode.currentVal=this.floodlight.mode,this.iAutoByPreview.isOpen=this.floodlight.iAutoByPreview,this.timingVision=this.floodlight.timingVision,this.floodlightAutoBright.currentVal=this.floodlight.iAutoBright,this.lightAlarm=this.floodlight.lightAlarm,this.checkedAiDetectTypes=[],this.floodlight.wlAiDetectType)this.floodlight.wlAiDetectType[e]&&this.checkedAiDetectTypes.push(e)},floodlightBrightValueChanged:function(e){var t=this;Li["a"].changingEffect(this.floodlightBrightness,(function(){t.floodlight.bright.iCur=t.floodlightBrightness.value=e}),this.setFloodlight,Object(l["g"])(this.floodlight))},doorbellLightStateSelect:function(e){var t=this,n=this.eDoorbellLightState;Li["a"].changingEffect(n,(function(){t.eDoorbellLightState.currentVal=t.ledLight.eDoorbellLightState=e}),this.setLed,Object(l["g"])(this.ledLight))},floodlightModeSelect:function(e){var t=this,n=this.floodlightMode;Li["a"].changingEffect(n,(function(){t.floodlightMode.currentVal=t.floodlight.mode=e}),this.setFloodlight,Object(l["g"])(this.floodlight))},channelIndexChange:function(e){this.channelIndex=e,this.channelInit()},openCopytoDialog:function(){var e=this;this.$store.commit("STORE_DIALOG_CHANNEL_INDEX",this.channelIndex),this.$store.commit("SET_COPYTO_INIT_CALLBACK",this.getCopytoChannels),this.$store.commit("SET_CUSTOM_DIALOGID","scheduleCopyTo");var t=function(){e.saveAndCopyto(e.selectedChannels)};this.$store.commit("SET_COPYTO_SAVE_CALLBACK",t)},getCopytoChannels:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s,o,c,u,l,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.currSupport.LEDControl=e.eLEDState.support,e.currSupport.indicatorLight=e.eIndicatorLight.support,e.currSupport.autoByPreview=e.iAutoByPreview.support,e.currSupport.floodlight=e.supportFloodlight,n=[],i=[],a=[],r=[],s=Object(ne["a"])(e.channels),t.prev=9,s.s();case 11:if((o=s.n()).done){t.next=19;break}if(c=o.value,c.index!==e.channelIndex&&!c.state.get("videoLoss")){t.next=15;break}return t.abrupt("continue",17);case 15:r.push(e.getChannelInitData(c)),i.push(c);case 17:t.next=11;break;case 19:t.next=24;break;case 21:t.prev=21,t.t0=t["catch"](9),s.e(t.t0);case 24:return t.prev=24,s.f(),t.finish(24);case 27:return t.prev=27,t.next=30,Promise.all(r);case 30:a=t.sent,t.next=36;break;case 33:t.prev=33,t.t1=t["catch"](27),C["a"].error("ledLight.vue > getCopytoChannels: ",t.t1);case 36:for(u=0;u saveSelectedChannels > set led and flood cfg: ",a.t0),new Error;case 16:case"end":return a.stop()}}),a,null,[[0,11]])})))()}}}),rc=ac,sc=(n("68ea"),Object(g["a"])(rc,Yo,qo,!1,null,"6bfeabc4",null)),oc=sc.exports,cc=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"config-context-inner"},[i("remoteTitleBar",{directives:[{name:"show",rawName:"v-show",value:!e.showAudioMsg,expression:"!showAudioMsg"}],attrs:{channels:e.channels,title:e.$t("common_audio"),showChannelsBox:e.isNvr,hasChannelsBox:!0},on:{channelIndexChange:e.channelIndexChange}}),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry&&!e.showAudioMsg,expression:"!isConfigContextLoading&&!isLoadingDataRetry&&!showAudioMsg"}],staticClass:"audio-wrap config-scroll-box"},[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("remote_config_page_video_section_sound_label")))]),i("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("remote_config_page_video_section_sound_homehub_label")))]),i("slideBtn",e._b({on:{stateChange:e.audioSwitch}},"slideBtn",e.audio,!1)),e.audioVolumeData.support?[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_volume")))]),i("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("remote_settings_alarm_volume_description")))]),i("p",{staticClass:"volume-silder flex"},[i("span",{staticClass:"volume-icon text",class:[e.audioVolumeData.value?"icon-client_voice_high":"icon-client_voice_mute"],on:{click:function(t){return e.volumeMuteSwitch(!!e.audioVolumeData.value)}}}),i("processSlider",e._b({staticClass:"process-slider",attrs:{min:e.audioVolume.min,max:e.audioVolume.max,title:e.audioVolumeData.value},on:{valueChanged:e.volumeValueChanged}},"processSlider",e.audioVolumeData,!1))],1),i("p",{staticClass:"audition-box flex"},[i("button",{staticClass:"btn-audition flex-between text",attrs:{"reo-element":""},on:{click:e.playAudition}},[i("img",{attrs:{src:n("51bd")}}),i("span",{staticClass:"icon-client_play3"})]),i("span",{staticClass:"notes-text audition-des"},[e._v(e._s(e.$t("alarm_siren_custom_settings_page_audition_button")))])])]:e._e(),e.supportAIDenoise?i("div",{staticClass:"ai-denoise-wrap"},[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("video_noise_reduction")))]),i("slideBtn",e._b({on:{stateChange:e.aiDenoiseEnableSwitch}},"slideBtn",e.aiDenoiseEnable,!1)),i("div",{directives:[{name:"show",rawName:"v-show",value:e.aiDenoiseEnable.isOpen,expression:"aiDenoiseEnable.isOpen"}],staticClass:"level-progress-wrap flex"},[i("span",[e._v(e._s(e.$t("common_Low")))]),i("div",{staticClass:"level-progress"},[i("div",{staticClass:"progress-inner",style:{width:e.aiDenoiseLevelWidthPercent+"%"}}),i("div",{staticClass:"foreground-wrap flex"},e._l(e.aiDenoiseCfg.levelOptions,(function(t){return i("div",{key:t,staticClass:"level-point-wrap"},[i("div",{staticClass:"level-point",on:{click:function(n){return e.aiDenoiseLevelChanged(t)}}})])})),0)]),i("span",[e._v(e._s(e.$t("common_High")))])])],1):e._e(),e.supportVisitorLoudspeaker?[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("doorbell_volume_switch")))]),i("slideBtn",e._b({on:{stateChange:e.visitorLoudspeakerEnableSwitch}},"slideBtn",e.visitorLoudspeakerEnable,!1))]:e._e(),e.supportAudioFileList?i("div",[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_voice_message_title")))]),i("button",{staticClass:"gray-button",attrs:{"reo-element":""},on:{click:function(t){e.showAudioMsg=!0}}},[e._v(e._s(e.$t("common_Setup")))])]):e._e(),e.isClient&&e.isBell&&!e.supportDingDongCtrl?i("div",{staticClass:"chime"},[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_chime")))]),i("ul",e._l(e.chimeInstructionOptions,(function(t,a){return i("li",{key:a,staticClass:"flex",on:{click:function(n){return e.openChimeInstructionDialog(t.value)}}},[i("img",{attrs:{src:n("8ca9")("./chime_"+t.value+".png")}}),i("div",[e._v(e._s(t.des))])])})),0)]):e._e()],2),e.showAudioMsg?i("audioMsg",{attrs:{channel:e.audioMsgChannel},on:{goBack:function(t){e.showAudioMsg=!1}}}):e._e(),!e.isConfigContextLoading&&e.isLoadingDataRetry?i("retry",{on:{retry:function(t){return e.channelInit()}}}):e._e()],1)},uc=[],lc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"audio-msg"},[n("h5",{staticClass:"msg-title flex",on:{click:e.goBack}},[n("span",{staticClass:"msg-arrow icon-client_pre"}),n("span",[e._v(e._s(e.$t("common_voice_message_title")))])]),n("div",{staticClass:"config-scroll-box"},[!e.supportAutoReply||e.isLoading||e.isLoadingDataRetry?e._e():n("div",{staticClass:"flex-between auto-reply-box reply-box"},[n("span",{staticClass:"auto-reply-title"},[e._v(e._s(e.$t("bell_auto_reply_title")))]),n("div",{staticClass:"flex"},[n("span",{staticClass:"auto-reply-name"},[e._v(e._s(e.autoReplyFile?e.autoReplyFile.cFileName:e.$t("common_view_none")))]),n("button",{staticClass:"gray-button",attrs:{"reo-element":""},on:{click:e.openAutoReplySettingDialog}},[e._v(e._s(e.$t("common_Setup")))])])]),e.isLoading||e.isLoadingDataRetry?e._e():n("ul",{staticClass:"file-list"},e._l(e.sortedAudioFileList,(function(t,i){return n("li",{key:i,staticClass:"file-item flex-between reply-box",class:{"default-audio":t.eFileType===e.fileAlarmType}},[n("div",{staticClass:"flex"},[[n("loadingImg",{directives:[{name:"show",rawName:"v-show",value:t.audioPlayState===e.EMediaPlayState.LOADING,expression:"item.audioPlayState===EMediaPlayState.LOADING"}],staticClass:"loading-img",attrs:{delay:0}}),n("span",{directives:[{name:"show",rawName:"v-show",value:t.audioPlayState===e.EMediaPlayState.PLAYING,expression:"item.audioPlayState===EMediaPlayState.PLAYING"}],staticClass:"btn-audition icon-client_stop",on:{click:function(n){return e.stopAuditionAudio(t)}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:[e.EMediaPlayState.CLOSED,e.EMediaPlayState.FAILED].includes(t.audioPlayState),expression:"[EMediaPlayState.CLOSED,EMediaPlayState.FAILED].includes(item.audioPlayState)"}],staticClass:"btn-audition icon-client_play",on:{click:function(n){return e.auditionAudioFile(t)}}})],n("span",{staticClass:"reply-name"},[e._v(e._s(t.cFileName))])],2),n("div",{staticClass:"icon-btns-wrap flex"},[e.autoReply.iEnable&&e.autoReply.iAudioId===t.identity?n("span",{staticClass:"auto-reply-icon icon-qreply_auto"}):e._e(),t.eFileType!==e.fileAlarmType?n("span",{staticClass:"icon-btn icon-client_eith",on:{click:function(n){return e.editReply(t)}}}):e._e(),t.eFileType!==e.fileAlarmType?[t.isDeleting?n("loadingImg",{staticClass:"loading-img"}):n("span",{staticClass:"icon-btn icon-client_delete",on:{click:function(n){return e.deleteReply(t)}}})]:e._e()],2)])})),0),e.isLoading?n("loading",{staticClass:"loading-img",attrs:{delay:0}}):e._e(),!e.isLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:e.init}}):e._e()],1)])},dc=[],pc=u["a"].extend({name:"audioMsg",components:{loadingImg:d["a"],loading:P["a"],retry:be["a"]},props:{channel:Object},data:function(){return{EMediaPlayState:te["EMediaPlayState"],audioFileListData:{iMaxFileNumber:0,iRemainFileTotalDuration:0,iSize:0,fileList:[]},audioFileList:[],supportAutoReply:!1,fileAlarmType:N["BC_AUDIO_FILE_TYPE"].BC_AUDIO_FILE_TYPE_ALARM,autoReply:{iEnable:0,iTimeout:0,iAudioId:0},audio:new Audio,playingAudioId:-1,isLoading:!1,isLoadingDataRetry:!1}},computed:{autoReplyFile:function(){var e=this;if(!this.autoReply.iEnable)return null;var t=this.audioFileList.find((function(t){return t.identity===e.autoReply.iAudioId}));return t||null},sortedAudioFileList:function(){var e=this,t=this.audioFileList.slice(),n=this.autoReply.iEnable?t.findIndex((function(t){return t.identity===e.autoReply.iAudioId})):-1;if(n>0){var i=t.splice(n,1)[0];t.unshift(i)}return t}},watch:{channel:{handler:function(){this.channel&&this.init()},immediate:!0}},methods:{init:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,e.isLoadingDataRetry=!1,t.prev=2,t.next=5,e.getAudioFileList();case 5:return t.next=7,e.channel.supportAutoReply();case 7:if(e.supportAutoReply=t.sent,!e.supportAutoReply){t.next=11;break}return t.next=11,e.getAutoReply();case 11:t.next=17;break;case 13:t.prev=13,t.t0=t["catch"](2),C["a"].error("audioMsg.vue > init: ",t.t0),e.isLoadingDataRetry=!0;case 17:e.isLoading=!1;case 18:case"end":return t.stop()}}),t,null,[[2,13]])})))()},goBack:function(){this.$emit("goBack")},getAudioFileList:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getAudioFileList();case 3:e.audioFileListData=t.sent,n=e.audioFileListData.fileList.slice(0,e.audioFileListData.iSize),e.audioFileList=n.map((function(e){return Object(ct["a"])(Object(ct["a"])({},e),{},{isDeleting:!1,audioPlayState:te["EMediaPlayState"].CLOSED})})),t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("audioMsg.vue > getAudioFileList: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},getAutoReply:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getAutoReply();case 3:e.autoReply=t.sent,t.next=9;break;case 6:t.prev=6,t.t0=t["catch"](0),C["a"].error("audioMsg.vue > getAutoReply: ",t.t0);case 9:case"end":return t.stop()}}),t,null,[[0,6]])})))()},openAutoReplySettingDialog:function(){var e=this;this.stopAuditionAudio(),this.$store.commit("STORE_DIALOG_CHANNEL_INDEX",this.channel.index),this.$store.commit("SET_AUDIO_REPLY",{autoReply:Object(l["g"])(this.autoReply),audioFileList:Object(l["g"])(this.sortedAudioFileList),cFileNameOfEditing:"",callback:function(t){e.setAutoReply(t)}}),this.$store.commit("SET_DIALOGID","autoReplySetting")},setAutoReply:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$store.commit("HANDLE_LOADING",!0),n.prev=1,n.next=4,t.channel.config.setAutoReply(e);case 4:t.autoReply=e,t.$store.commit("SET_DIALOGID",""),n.next=12;break;case 8:n.prev=8,n.t0=n["catch"](1),t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),C["a"].error("audioMsg.vue > setAutoReply: ",n.t0);case 12:t.$store.commit("HANDLE_LOADING",!1);case 13:case"end":return n.stop()}}),n,null,[[1,8]])})))()},createAudioElement:function(e,t){var n=this;this.audio.src=e,this.audio.play(),this.audio.onplay=function(){n.updateAudioPlayState(te["EMediaPlayState"].PLAYING,t)},this.audio.onended=function(){n.updateAudioPlayState(te["EMediaPlayState"].CLOSED,t)},this.audio.onerror=function(i){n.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),n.updateAudioPlayState(te["EMediaPlayState"].FAILED,t),C["a"].error("audioMsg.vue > createAudioElement > ".concat(n.channel.name," ").concat(e," audio play: "),i)}},updateAudioPlayState:function(e,t){if(this.playingAudioId===t){var n=this.audioFileList.find((function(e){return e.identity===t}));n&&(n.audioPlayState=e)}},auditionAudioFile:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.stopAuditionAudio(),e.audioPlayState=te["EMediaPlayState"].LOADING,i=e.identity,t.playingAudioId=i,n.prev=4,n.next=7,t.channel.config.exportAudioFile(i);case 7:return a=n.sent,n.next=10,Object(l["t"])({fileBuffer:a,channels:1,sampleRate:t.channel.audioSampleRate,samplePrecision:t.channel.audioSamplePrecision});case 10:if(r=n.sent,t.playingAudioId===i){n.next=13;break}return n.abrupt("return");case 13:t.createAudioElement(r,i),n.next=21;break;case 16:n.prev=16,n.t0=n["catch"](4),t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),t.updateAudioPlayState(te["EMediaPlayState"].FAILED,i),C["a"].error("audioMsg.vue > auditionAudioFile: ",n.t0);case 21:case"end":return n.stop()}}),n,null,[[4,16]])})))()},stopAuditionAudio:function(e){this.audio.paused||this.audio.pause(),e?e.audioPlayState=te["EMediaPlayState"].CLOSED:this.audioFileList.forEach((function(e){e.audioPlayState=te["EMediaPlayState"].CLOSED})),this.playingAudioId=-1},editReply:function(e){var t=this;this.$store.commit("SET_AUDIO_REPLY",{autoReply:{},audioFileList:[],cFileNameOfEditing:e.cFileName,callback:function(n){t.setAudioFileName(e,n)}}),this.$store.commit("SET_DIALOGID","audioRenaming")},setAudioFileName:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n.$store.commit("HANDLE_LOADING",!0),i.prev=1,i.next=4,n.channel.config.setAudioFileList(Object(ct["a"])(Object(ct["a"])({},n.audioFileListData),{},{iSize:1,fileList:[Object(ct["a"])(Object(ct["a"])({},e),{},{cFileName:t})]}));case 4:e.cFileName=t,n.$store.commit("SET_DIALOGID",""),i.next=12;break;case 8:i.prev=8,i.t0=i["catch"](1),C["a"].error("audioMsg.vue > setAudioFileName: ",i.t0),n.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed);case 12:n.$store.commit("HANDLE_LOADING",!1);case 13:case"end":return i.stop()}}),i,null,[[1,8]])})))()},deleteReply:function(e){var t=this;this.autoReplyFile===e?(this.$store.commit("MODIFY_DIALOG_OPTIONS",{type:"message",icon:"icon-client_warning",message:this.$t("bell_auto_reply_delete_description"),defaultBtnValue:0,buttons:[{title:this.$t("common_dialog_cancel_button"),value:0,class:"ghost-button",key:27},{title:this.$t("common_dialog_ok_button"),value:1,key:13}]}),this.$store.commit("SET_APP_DIALOG_CALLBACK",(function(n){n&&t.deleteAudioFile(e)})),this.$store.commit("SET_DIALOGID","messageDialog")):this.deleteAudioFile(e)},deleteAudioFile:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,e.isDeleting=!0,n.next=4,t.channel.config.deleteAudioFile(Object(ct["a"])({},e));case 4:t.audioFileList=t.audioFileList.filter((function(t){return t!==e})),n.next=12;break;case 7:n.prev=7,n.t0=n["catch"](0),e.isDeleting=!1,t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),C["a"].error("audioMsg.vue > deleteAudioFile: ",n.t0);case 12:case"end":return n.stop()}}),n,null,[[0,7]])})))()}}}),hc=pc,mc=(n("6819"),Object(g["a"])(hc,lc,dc,!1,null,"3bcefd66",null)),gc=mc.exports,fc=u["a"].extend({components:{retry:be["a"],slideBtn:Ci["a"],processSlider:ts["a"],remoteTitleBar:us["a"],audioMsg:gc},props:{initialShowAudioMsg:{type:Boolean}},data:function(){return{isLoadingDataRetry:!1,channelIndex:-1,channels:[],enc:{},audio:{isOpen:0,closeVal:0,openVal:1,isSetting:!1,warnClue:!1},audioVolume:{value:1,max:100,min:0},preAudioVolumeValue:1,audioVolumeData:{bgColor:"#AAA",support:!1,value:1,flag:"audioVolume",isSetting:!1,warnClue:!1},aiDenoiseEnable:{isOpen:0,closeVal:0,openVal:1,isSetting:!1,warnClue:!1},visitorLoudspeakerState:te["EVisitorLoudspeakerState"].OFF,visitorLoudspeakerEnable:{isOpen:te["EVisitorLoudspeakerState"].OFF,closeVal:te["EVisitorLoudspeakerState"].OFF,openVal:te["EVisitorLoudspeakerState"].ON,isSetting:!1,warnClue:!1},aiDenoiseCfg:{enable:0,level:1,levelOptions:[]},aiDenoiseLevelWidthPercent:0,supportAIDenoise:!1,supportDingDongCtrl:!1,supportVisitorLoudspeaker:!1,supportExtenStreamCfg:!1,supportAudioFileList:!1,showAudioMsg:!1,chimeInstructionOptions:[{value:"synchronize",des:this.$t("common_pair")},{value:"audio",des:this.$t("smart_bell_set_audio_title")},{value:"volume",des:this.$t("smart_bell_set_volume_title")},{value:"reset",des:this.$t("device_reset_dialog_reset_button")}],isClient:y["a"].IS_CLIENT,audioMsgChannel:void 0}},computed:{handle:function(){return this.$store.getters.deviceHandle},channel:function(){return this.channels[this.channelIndex]},isConfigContextLoading:function(){return this.$store.getters.configContextLoading},isNvr:function(){return this.$store.getters.isNvr},isBell:function(){return this.$store.getters.isBell}},watch:{handle:{handler:function(){this.deviceInit()},immediate:!0}},created:function(){this.showAudioMsg=this.initialShowAudioMsg},methods:{deviceInit:function(){var e=this;Li["a"].pageInitEffect(this.$store,this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,B["a"].getDeviceWithHandle(e.handle);case 2:return n=t.sent,t.next=5,n.getChannels();case 5:e.channels=t.sent;case 6:case"end":return t.stop()}}),t)}))))},channelInit:function(){var e=this;this.channel&&this.$nextTick(Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:Li["a"].pageInitEffect(e.$store,e.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.getSupport(),e.getEnc()]);case 2:if(n=[],e.audioVolumeData.support&&n.push(e.getAudioVolume()),e.supportVisitorLoudspeaker&&n.push(e.getVisitorLoudspeakerState()),e.supportAIDenoise&&n.push(e.getAIDenoiseCfg()),!n.length){t.next=9;break}return t.next=9,Promise.all(n);case 9:e.audioMsgChannel=e.channel;case 10:case"end":return t.stop()}}),t)}))));case 1:case"end":return t.stop()}}),t)}))))},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.channel.supportDingDongCtrl(),e.channel.supportAudioVolumeSettings(),e.channel.supportExtenStreamCfg(),e.channel.supportAudioFileList(),e.channel.supportAIDenoise(),e.channel.supportVisitorLoudspeaker()]);case 3:n=t.sent,i=Object(T["a"])(n,6),e.supportDingDongCtrl=i[0],e.audioVolumeData.support=i[1],e.supportExtenStreamCfg=i[2],e.supportAudioFileList=i[3],e.supportAIDenoise=i[4],e.supportVisitorLoudspeaker=i[5],t.next=18;break;case 14:throw t.prev=14,t.t0=t["catch"](0),C["a"].error("audioCfg.vue > getSupport: ",t.t0),new Error;case 18:case"end":return t.stop()}}),t,null,[[0,14]])})))()},getEnc:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getEncCfg();case 3:e.enc=t.sent,e.audioUpdate(),t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("audioCfg.vue > getEnc: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setEnc:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.channel.config.setEncCfg(t.enc);case 3:n.next=12;break;case 6:throw n.prev=6,n.t0=n["catch"](0),t.enc=e,t.audioUpdate(),C["a"].error("audioCfg.vue > setEnc: ",n.t0),new Error;case 12:case"end":return n.stop()}}),n,null,[[0,6]])})))()},audioUpdate:function(){this.audio.isOpen=this.enc.mainstream.bAudio|this.enc.substream.bAudio,this.supportExtenStreamCfg&&(this.audio.isOpen=this.audio.isOpen|this.enc.extendstream.bAudio)},audioSwitch:function(e){var t=this,n=this.audio;Li["a"].changingEffect(n,(function(){t.enc.mainstream.bAudio=t.enc.substream.bAudio=t.audio.isOpen=e,t.supportExtenStreamCfg&&(t.enc.extendstream.bAudio=e)}),this.setEnc,Object(l["g"])(this.enc))},volumeMuteSwitch:function(e){var t=this;Li["a"].changingEffect(this.audioVolumeData,(function(){var n=e?0:t.preAudioVolumeValue;t.preAudioVolumeValue=t.audioVolume.value,t.audioVolume.value=t.audioVolumeData.value=n}),this.setAudioVolume,Object(l["g"])(this.audioVolume))},volumeValueChanged:function(e){var t=this;Li["a"].changingEffect(this.audioVolumeData,(function(){t.preAudioVolumeValue=t.audioVolume.value,t.audioVolume.value=t.audioVolumeData.value=e}),this.setAudioVolume,Object(l["g"])(this.audioVolume))},getAudioVolume:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getAudioVolume();case 3:e.audioVolume=t.sent,e.audioVolumeUpdate(),t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("audioCfg.vue > getAudioVolume: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setAudioVolume:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.channel.config.setAudioVolume(t.audioVolume);case 3:n.next=12;break;case 6:throw n.prev=6,n.t0=n["catch"](0),t.audioVolume=e,t.audioVolumeUpdate(),C["a"].error("audioCfg.vue > setAudioVolume: ",n.t0),new Error;case 12:case"end":return n.stop()}}),n,null,[[0,6]])})))()},audioVolumeUpdate:function(){this.preAudioVolumeValue=this.audioVolumeData.value=this.audioVolume.value},visitorLoudspeakerEnableSwitch:function(e){var t=this,n=this.visitorLoudspeakerEnable;Li["a"].changingEffect(n,(function(){t.visitorLoudspeakerState=t.visitorLoudspeakerEnable.isOpen=e}),this.setVisitorLoudspeakerState,Object(l["g"])(this.visitorLoudspeakerState))},getVisitorLoudspeakerState:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getVisitorLoudspeakerState();case 3:e.visitorLoudspeakerState=t.sent,e.visitorLoudspeakerStateUpdate(),t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("audioCfg.vue > getVisitorLoudspeakerState: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setVisitorLoudspeakerState:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.channel.config.setVisitorLoudspeakerState(t.visitorLoudspeakerState);case 3:n.next=11;break;case 5:throw n.prev=5,n.t0=n["catch"](0),t.visitorLoudspeakerState=e,t.visitorLoudspeakerStateUpdate(),C["a"].error("audioCfg.vue > setVisitorLoudspeakerState: ",n.t0),new Error;case 11:case"end":return n.stop()}}),n,null,[[0,5]])})))()},visitorLoudspeakerStateUpdate:function(){this.visitorLoudspeakerEnable.isOpen=this.visitorLoudspeakerState},getAIDenoiseCfg:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getAIDenoiseCfg();case 3:e.aiDenoiseCfg=t.sent,e.aiDenoiseCfg.levelOptions.sort((function(e,t){return e-t})),e.aiDenoiseCfgUpdate(),t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("audioCfg.vue > getAIDenoiseCfg: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setAIDenoiseCfg:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.channel.config.setAIDenoiseCfg(t.aiDenoiseCfg);case 3:n.next=11;break;case 5:throw n.prev=5,n.t0=n["catch"](0),t.aiDenoiseCfg=e,t.aiDenoiseCfgUpdate(),C["a"].error("audioCfg.vue > setAIDenoiseCfg: ",n.t0),new Error;case 11:case"end":return n.stop()}}),n,null,[[0,5]])})))()},aiDenoiseCfgUpdate:function(){var e=this;this.aiDenoiseEnable.isOpen=this.aiDenoiseCfg.enable;var t=this.aiDenoiseCfg.levelOptions.findIndex((function(t){return e.aiDenoiseCfg.level===t}));t=-1===t?0:t,this.aiDenoiseLevelWidthPercent=100*t/(this.aiDenoiseCfg.levelOptions.length-1)},aiDenoiseEnableSwitch:function(e){var t=this,n=this.aiDenoiseEnable;Li["a"].changingEffect(n,(function(){t.aiDenoiseCfg.enable=t.aiDenoiseEnable.isOpen=e}),this.setAIDenoiseCfg,Object(l["g"])(this.aiDenoiseCfg))},aiDenoiseLevelChanged:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e!==t.aiDenoiseCfg.level){n.next=2;break}return n.abrupt("return");case 2:return i=Object(l["g"])(t.aiDenoiseCfg),t.aiDenoiseCfg.level=e,t.aiDenoiseCfgUpdate(),n.prev=5,n.next=8,t.setAIDenoiseCfg(i);case 8:n.next=13;break;case 10:n.prev=10,n.t0=n["catch"](5),t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed);case 13:case"end":return n.stop()}}),n,null,[[5,10]])})))()},playAudition:function(){this.channel.config.manualRingDown({iChannel:this.channel?this.channel.index:-1,eRingMode:N["BC_RING_DOWN_MODE_E"].BC_RING_DOWN_TIMES,iTimes:1})},channelIndexChange:function(e){this.channelIndex=e,this.channelInit()},openChimeInstructionDialog:function(e){this.$store.commit("MODIFY_CHIME_INSTRUCTION_TYPE",e),this.$store.commit("SET_DIALOGID","chimeDetailedInstruction")}}}),_c=fc,vc=(n("e470"),Object(g["a"])(_c,cc,uc,!1,null,"5931913c",null)),bc=vc.exports,wc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"config-context-inner"},[n("remoteTitleBar",{attrs:{title:e.$t("common_Info")}}),e.isConfigContextLoading||e.isLoadingDataRetry?e._e():n("div",{staticClass:"device-info config-scroll-box"},[n("div",{staticClass:"device-picture"},[n("img",{staticClass:"ab-center",attrs:{src:e.productSrc}})]),n("ul",{staticClass:"general-info"},[n("li",{staticClass:"flex"},[n("span",{staticClass:"text info-name"},[e._v(e._s(e.infoName))]),n("simpleInput",e._b({attrs:{targetValue:e.general.cName.val},on:{contextmenu:function(t){return t.stopPropagation(),e.showRightMenu(t)},inputChanged:e.deviceNameInputChanged}},"simpleInput",e.inputArr.cName,!1))],1),n("li",{staticClass:"flex device-model"},[n("span",{staticClass:"text info-name"},[e._v(e._s(e.$t("common_Model")))]),n("span",{staticClass:"info-val",on:{contextmenu:function(t){return t.stopPropagation(),e.showRightMenu(t)}}},[e._v(e._s(e.general.cType.val))])]),e.uid.cUid?n("li",{staticClass:"flex device-uid"},[n("span",{staticClass:"text info-name"},[e._v(e._s(e.$t("common_UID")))]),n("span",{staticClass:"info-val",on:{contextmenu:function(t){return t.stopPropagation(),e.showRightMenu(t)}}},[e._v(e._s(e.uid.cUid))])]):e._e(),e._l(e.paras,(function(t,i){return n("li",{key:i,staticClass:"flex"},[n("span",{staticClass:"text info-name"},[e._v(e._s(t.name))]),n("span",{staticClass:"info-val",on:{contextmenu:function(t){return t.stopPropagation(),e.showRightMenu(t)}}},[e._v(e._s(t.val))])])})),e.isClient&&"BELL"===e.deviceInfo.cCategory?n("li",{staticClass:"link-entry",on:{click:e.showBellAssemblyInstructionsWindow}},[e._v(e._s(e.$t("common_install_guide")))]):e._e()],2),e.isClient?e._e():n("div",{staticClass:"terms-of-service-wrap"},[n("a",{attrs:{"reo-element":""},on:{click:function(t){return e.openWebLink("privacy",t)}}},[e._v(e._s(e.$t("help_config_page_privacy_policy_item_label")))]),n("a",{attrs:{"reo-element":""},on:{click:function(t){return e.openWebLink("terms",t)}}},[e._v(e._s(e.$t("help_config_page_terms_item_label")))])])]),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:function(t){return e.init()}}}):e._e()],1)},Cc=[],yc=u["a"].extend({components:{simpleInput:_,loadingImg:d["a"],slideBtn:Ci["a"],retry:be["a"],remoteTitleBar:us["a"]},data:function(){return{isLoadingDataRetry:!1,general:{cName:{name:this.$t("remoteConfig_general_DeviceName"),val:""},cType:{name:this.$t("common_Model"),val:""}},paras:{cBuildDay:{name:this.$t("system_config_page_build_no"),val:""},cHardwareVer:{name:this.$t("remoteConfig_general_HwNo"),val:""},cCfgVer:{name:this.$t("remoteConfig_general_CfgVersion"),val:""},cFirmwareVer:{name:this.$t("remoteConfig_general_FwVersion"),val:""},cDetail:{name:this.$t("common_Details"),val:""}},inputArr:{cName:{flag:"cName",regexp:"deviceName",minLength:1,maxLength:31,disallowConsecutiveSpaces:!0,checked:!0,isSetting:!1,warnClue:!1}},uid:{cUid:"",cUidKey:""},infoName:this.$t("common_cameraName"),isBattery:!1,device:{},productSrc:Xo.a,isClient:y["a"].IS_CLIENT}},computed:{isConfigContextLoading:function(){return this.$store.getters.configContextLoading},handle:function(){return this.$store.getters.deviceHandle},deviceInfo:function(){return this.$store.getters.deviceInfo}},watch:{"general.cType.val":{handler:function(e){var t=this;if(e){this.productSrc=Xo.a;var n="".concat("https://home-cdn.reolink.us/wp-content/assets/app","/model-images/").concat(e,"/product.png");Object(l["u"])(n).then((function(){t.productSrc=n})).catch((function(){return null}))}},immediate:!0},handle:{handler:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.init();case 1:case"end":return t.stop()}}),t)})))()},immediate:!0},deviceInfo:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a,r,s,o,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:for(i=0,a=Object.keys(t.general);i init > ipcDeviceManager.getDeviceWithHandle or getUid: ",t.t0),e.isLoadingDataRetry=!0;case 14:e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!1);case 15:case"end":return t.stop()}}),t,null,[[1,10]])})))()},getUid:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getUidInfo();case 3:e.uid=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),C["a"].error("cameraInfo.vue > getUid: ",t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setDeviceName:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){var a;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,B["a"].getDeviceWithHandle(n.handle);case 3:return a=i.sent,i.next=6,a.config.setDeviceName({cDeviceName:n.general.cName.val});case 6:i.next=14;break;case 9:throw i.prev=9,i.t0=i["catch"](0),t||(n.general.cName.val=e),C["a"].error("cameraInfo.vue > setDeviceName: ",i.t0),new Error;case 14:case"end":return i.stop()}}),i,null,[[0,9]])})))()},showRightMenu:function(){p["a"].handleRightClickMenu(["copy"])},deviceNameInputChanged:function(e,t,n){var i=this,a=this.general[t].val;this.inputArr[t]["checked"]=!n,n||Li["a"].changingEffect(this.inputArr[t],(function(){i.general[t].val=e}),this.setDeviceName,a)}}}),Sc=yc,kc=(n("4032"),Object(g["a"])(Sc,wc,Cc,!1,null,"adb07a3e",null)),Ac=kc.exports,Ec=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"config-context-inner"},[i("remoteTitleBar",{attrs:{title:e.$t("common_record")}}),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"recording config-scroll-box"},[e.supportAlarmOutMainSwitch||e.supportRecEnable?i("div",[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_recording_EnableRecord")))]),i("slideBtn",e._b({on:{stateChange:e.recordStatusSwitch}},"slideBtn",e.recordStatus,!1))],1):e._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.supportRecEnable||e.recordStatus.isOpen,expression:"!supportRecEnable || recordStatus.isOpen"}],staticClass:"record-setting-wrap"},[e.iOverWrite.support||e.bOverWrite.support?i("div",{staticClass:"over-write"},[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_Overwrite")))]),e.iOverWrite.options.length>2?i("selectBox",e._b({staticClass:"long-select-box",on:{selectChanged:e.recSelect}},"selectBox",e.iOverWrite,!1)):i("slideBtn",e._b({on:{stateChange:e.bOverWriteSwitch}},"slideBtn",e.bOverWrite,!1))],1):e._e(),e.bPreRecord.support?i("div",{staticClass:"pre-record"},[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_PreRecord")))]),i("slideBtn",e._b({on:{stateChange:e.recSwitch}},"slideBtn",e.bPreRecord,!1))],1):e._e(),i("div",{staticClass:"post-record"},[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_PostRecord")))]),i("selectBox",e._b({staticClass:"select-box",on:{selectChanged:e.recSelect}},"selectBox",e.iPostRecordTime,!1))],1),e.iPackageTime.support?i("div",{staticClass:"pack-duration"},[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_recording_PackDuration")))]),i("selectBox",e._b({staticClass:"select-box",on:{selectChanged:e.recSelect}},"selectBox",e.iPackageTime,!1))],1):e._e(),e.hasSchedule?i("h5",{staticClass:"middle-title schedule-title"},[e._v(e._s(e.$t("common_view_schedule")))]):e._e(),i("scheduleDispense",e._b({ref:"scheduleDispense",on:{scheduleSwitchChange:e.scheduleSwitchChange,saveScheduleLegacy:e.saveScheduleLegacy,saveScheduleGroup:e.saveScheduleGroup,channelIndexChange:e.channelIndexChange,channelRetry:e.channelRetry,handleSaveAndCopyto:e.handleSaveAndCopyto},scopedSlots:e._u([e.powerModeStatus.support?{key:"scheduleGroupTimingInfo",fn:function(){return[i("div",{staticClass:"smart-battery-mode"},[i("div",{staticClass:"main-info-wrap"},[i("div",{staticClass:"width-limit-text title-text"},[e._v(e._s(e.$t("smart_battery_mode")))]),i("div",{staticClass:"width-limit-text"},[e._v(e._s(e.$t("smart_battery_mode_tip")))]),e.isBatteryPairedError?i("div",{staticClass:"battery-unpaired-tip width-limit-text flex"},[i("span",[e._v(e._s(e.$t("common_disable")))]),i("span",{staticClass:"tip-icon icon-client_warning",on:{click:e.toBatteryPage}})]):i("slideBtn",e._b({on:{stateChange:e.powerModeStatusSwitch}},"slideBtn",e.powerModeStatus,!1)),!e.isBatteryPairedError&&e.powerModeStatus.isOpen?[i("div",{staticClass:"flex-between smart-battery-slider-tip"},[i("span",{staticClass:"icon-smartbattery_low"}),i("span",{staticClass:"icon-smartbattery_high"})]),i("rangeProcessSlider",{attrs:{value1:e.powerMode.firstPercent,value2:e.powerMode.secondPercent,min:e.powerMode.minPercent,max:e.powerMode.maxPercent,fixedBgColor:"linear-gradient(270deg, #009DE5 0%, rgba(0,157,229,0.3) 100%)"},on:{valueChanged:e.onPowerModeRangeChanged}}),i("ul",{staticClass:"smart-battery-value-tip"},e._l(e.smartBatteryValueTip,(function(t,n){return i("li",{key:n,staticClass:"flex"},[i("div",{staticClass:"tip-icon",class:t.batteryIcon}),i("div",{staticClass:"battery-tip"},[e._v(e._s(t.batteryTip))]),i("div",{staticClass:"tip-icon",class:t.recordIcon}),i("div",[e._v(e._s(t.recordTip))])])})),0)]:e._e()],2),i("img",{attrs:{src:n("ddb2")}}),i("div",{staticClass:"notes-text"},[e._v(" "+e._s(e.$t("smart_battery_mode_des1"))+e._s(e.$t("smart_battery_mode_des2",{s1:e.powerMode.lowDefPercent+"%"}))+" ")])])]},proxy:!0}:null],null,!0)},"scheduleDispense",e.scheduleProps,!1))],1)]),!e.isConfigContextLoading&&e.isLoadingDataRetry?i("retry",{on:{retry:function(t){return e.deviceInit()}}}):e._e()],1)},xc=[],Oc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"range-process-slider flex"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.inputValue1,expression:"inputValue1"}],staticClass:"process-slider-input",style:{background:e.backgroundLinearColor},attrs:{"reo-element":"",title:e.title,type:"range",max:e.max,min:e.min,step:e.step,disabled:e.isSetting},domProps:{value:e.inputValue1},on:{__r:function(t){e.inputValue1=t.target.value}}}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.inputValue2,expression:"inputValue2"}],staticClass:"process-slider-input",attrs:{"reo-element":"",title:e.title,type:"range",max:e.max,min:e.min,step:e.step,disabled:e.isSetting},domProps:{value:e.inputValue2},on:{__r:function(t){e.inputValue2=t.target.value}}}),e.isSetting&&!e.warnClue?n("loadingImg",{staticClass:"loading-img-box",attrs:{imgSrcSize:14}}):e._e(),e.warnClue&&!e.isSetting?n("span",{staticClass:"icon-client_warning warn-clue-icon"}):e._e()],1)},Ic=[],Dc=u["a"].extend({name:"rangeProcessSlider",components:{loadingImg:d["a"]},props:{isSetting:{type:Boolean,default:!1},warnClue:{type:Boolean,default:!1},title:[Number,String],flag:{type:[String,Number],default:""},bgColor:{type:String,default:"#000"},contentBgColor:{type:String,default:"#1E7EEF"},fixedBgColor:{type:String,default:""},value1:{type:Number,required:!0},value2:{type:Number,required:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},delay:{type:Number,default:500}},data:function(){return{timer:null,inputValue1:0,inputValue2:0}},computed:{backgroundLinearColor:function(){if(this.fixedBgColor)return this.fixedBgColor;var e=(this.computedMinValue-this.min)/(this.max-this.min)*100+"%",t=(this.computedMaxValue-this.min)/(this.max-this.min)*100+"%";return"linear-gradient(to right, ".concat(this.bgColor," ").concat(e,", ").concat(this.contentBgColor," ").concat(e," ").concat(t,", ").concat(this.bgColor," ").concat(t,")")},computedMinValue:function(){return Math.min(this.inputValue1,this.inputValue2)},computedMaxValue:function(){return Math.max(this.inputValue1,this.inputValue2)}},methods:{},watch:{value1:{handler:function(e){this.inputValue1=e},immediate:!0},value2:{handler:function(e){this.inputValue2=e},immediate:!0},computedMinValue:function(e,t){var n=this;e!==t&&(this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function(){n.$emit("valueChanged",Math.round(100*n.computedMinValue)/100,Math.round(100*n.computedMaxValue)/100,n.flag)}),this.delay))},computedMaxValue:function(e,t){var n=this;e!==t&&(this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function(){n.$emit("valueChanged",Math.round(100*n.computedMinValue)/100,Math.round(100*n.computedMaxValue)/100,n.flag)}),this.delay))}}}),Tc=Dc,Rc=(n("d059"),Object(g["a"])(Tc,Oc,Ic,!1,null,null,null)),Pc=Rc.exports,Lc=u["a"].extend({name:"recording",components:{selectBox:Xe["a"],slideBtn:Ci["a"],retry:be["a"],scheduleDispense:ns["a"],rangeProcessSlider:Pc,remoteTitleBar:us["a"]},data:function(){return{isLoadingDataRetry:!1,isSettingDefault:!1,isBattery:!1,recordEnable:!1,rec:{iOverWrite:0,iPackageTime:30,iPostRecordTime:15,bPreRecord:!1,timeList:{iSize:0,durationTime:[0]},iTimelapseCycle:-1,overWriteList:{iSize:0,durationTime:[0]},iMaxRecordTime:8},recordStatus:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"recordStatus"},recordTaskEnable:!1,recordTask:{iTimeTable:[0]},isPartCfgRetry:!1,isLoadingPartCfg:!0,channelIndex:-1,isScheduleSetting:!1,scheduleGroup:{},channels:[],recordTaskStatus:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"recordTaskStatus"},bOverWrite:{support:!1,isOpen:!1,isSetting:!1,warnClue:!1,flag:"bOverWrite"},iOverWrite:{support:!1,isSetting:!1,warnClue:!1,flag:"iOverWrite",currentVal:0,options:[]},bPreRecord:{support:!1,isOpen:!1,isSetting:!1,warnClue:!1,flag:"bPreRecord"},iPostRecordTime:{isSetting:!1,warnClue:!1,flag:"iPostRecordTime",currentVal:60,options:[]},iPackageTime:{support:!1,isSetting:!1,warnClue:!1,flag:"iPackageTime",currentVal:30,options:[{value:30,name:"30 ".concat(this.$t("common_mins"))},{value:45,name:"45 ".concat(this.$t("common_mins"))},{value:60,name:"60 ".concat(this.$t("common_mins"))}]},powerModeStatus:{support:!1,isOpen:0,closeVal:0,openVal:1,isSetting:!1,warnClue:!1,flag:"powerModeStatus"},powerMode:{mode:0,firstPercent:0,secondPercent:0,lowPercent:0,highPercent:100,minPercent:0,maxPercent:100,lowDefPercent:0},supportAlarmOutMainSwitch:!1,supportLargeBatteryInfoConfig:!1,supportRecEnable:!1,supportRecSchedule:!1,supportRecScheduleEnable:!1,supportTimeList:!1,scheduleCate:te["EScheduleCate"].NONE,device:{},timingSupport:!1}},computed:{isConfigContextLoading:function(){return this.$store.getters.configContextLoading},handle:function(){return this.$store.getters.deviceHandle},channel:function(){return this.channels[this.channelIndex]},isNvr:function(){return this.$store.getters.isNvr},largeBatteryInfo:function(){return this.$store.getters.largeBatteryInfo},isBatteryPairedError:function(){return this.supportLargeBatteryInfoConfig&&(!this.largeBatteryInfo.address||"00000000"===this.largeBatteryInfo.address)},isScheduleMulti:function(){return this.scheduleCate===te["EScheduleCate"].MULTI},hasSchedule:function(){return this.scheduleCate!==te["EScheduleCate"].NONE},supportScheduleEnable:function(){return this.supportAlarmOutMainSwitch||this.supportRecScheduleEnable&&!this.supportRecEnable},scheduleProps:function(){var e={allowChannelSelect:this.isNvr,channels:this.channels,isPartCfgRetry:this.isPartCfgRetry,isLoadingPartCfg:this.isLoadingPartCfg,isScheduleSetting:this.isScheduleSetting,supportScheduleEnable:this.supportScheduleEnable,scheduleCate:this.scheduleCate,scheduleSwitchDes:this.$t("common_view_schedule"),scheduleStatus:Object(l["g"])(this.recordTaskStatus),scheduleType:"record"};return this.isScheduleMulti?Object(ct["a"])(Object(ct["a"])({},e),{},{modesPool:this.scheduleGroup}):Object(ct["a"])(Object(ct["a"])({},e),{},{motionRect:this.recordTask.iTimeTable,timingSupport:this.timingSupport,noneMode:0})},smartBatteryValueTip:function(){return[{batteryIcon:"icon-smartbattery_low",batteryTip:"<=".concat(this.powerMode.lowPercent,"%"),recordIcon:"icon-smartbattery_record",recordTip:this.$t("common_disable")},{batteryIcon:"icon-smartbattery_mid",batteryTip:"".concat(this.powerMode.lowPercent,"%-").concat(this.powerMode.highPercent,"%"),recordIcon:"icon-smartbattery_record",recordTip:this.$t("common_low_frame_rate")},{batteryIcon:"icon-smartbattery_high",batteryTip:">".concat(this.powerMode.highPercent,"%"),recordIcon:"icon-smartbattery_record",recordTip:this.$t("common_full_frame_rate")}]},selectedChannels:function(){return this.$store.getters.selectedChannels}},watch:{handle:{handler:function(e){this.deviceInit()},immediate:!0}},methods:{deviceInit:function(){var e=this;Li["a"].pageInitEffect(this.$store,this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,B["a"].getDeviceWithHandle(e.handle);case 2:return e.device=t.sent,t.next=5,Promise.all([e.device.supportTimingRecord(),e.device.getChannels(),e.getSupport(),e.getRec()]);case 5:return n=t.sent,i=Object(T["a"])(n,2),e.timingSupport=i[0],e.channels=i[1],a=[],(e.supportAlarmOutMainSwitch||e.supportRecEnable)&&a.push(e.getRecordEnable()),e.supportLargeBatteryInfoConfig&&a.push(e.getLargeBatteryInfo()),e.powerModeStatus.support&&a.push(e.getPowerMode()),t.next=15,Promise.all(a);case 15:case"end":return t.stop()}}),t)}))))},channelInit:function(){var e=this;this.channel&&Li["a"].partInitEffect(this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=[],!e.supportRecSchedule){t.next=7;break}return t.next=4,Li["a"].getScheduleCateFunc(e.channel.supportRecordMultiTask,e.getScheduleGroup,e.getRecordTask);case 4:i=t.sent,n.push(i[0]),e.scheduleCate=i[1];case 7:return e.isScheduleMulti&&n.push(e.getSupportAiAnimal()),e.supportScheduleEnable&&n.push(e.getRecordScheduleEnable()),t.next=11,Promise.all(n);case 11:case"end":return t.stop()}}),t)}))))},getSupportAiAnimal:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=!1,t.prev=1,t.next=4,e.channel.supportAiAnimal();case 4:n=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),C["a"].error("recording.vue > getSupportAiAnimal: ",t.t0);case 10:e.$store.commit("MODIFY_SUPPORT_AI_ANIMAL",n);case 11:case"end":return t.stop()}}),t,null,[[1,7]])})))()},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.device.supportAlarmOutMainSwitch(),e.device.isBattery(),e.device.supportRecordEnable(),e.device.supportRecSchedule(),e.device.supportRecScheduleEnable(),e.device.supportRecOverWriteCfg(),e.device.supportRecPackDurationCfg(),e.device.supportRecPreRecordCfg(),e.device.supportPowerMode(),e.device.supportLargeBatteryInfoConfig(),e.device.supportRecRecordExtensionTimeList()]);case 3:n=t.sent,i=Object(T["a"])(n,11),e.supportAlarmOutMainSwitch=i[0],e.isBattery=i[1],e.supportRecEnable=i[2],e.supportRecSchedule=i[3],e.supportRecScheduleEnable=i[4],e.iOverWrite.support=i[5],e.iPackageTime.support=i[6],e.bPreRecord.support=i[7],e.powerModeStatus.support=i[8],e.supportLargeBatteryInfoConfig=i[9],e.supportTimeList=i[10],e.bOverWrite.support=e.iOverWrite.support,t.next=24;break;case 20:throw t.prev=20,t.t0=t["catch"](0),C["a"].error("recording.vue > getSupport: ",t.t0),new Error;case 24:case"end":return t.stop()}}),t,null,[[0,20]])})))()},toBatteryPage:function(){this.$emit("activateComponentIdWithName","battery")},getLargeBatteryInfo:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getLargeBatteryInfo();case 3:n=t.sent,e.$store.commit("MODIFY_LARGE_BATTERY_INFO",n),t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("recording.vue > getLargeBatteryInfo: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},getPowerMode:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getPowerMode();case 3:n=t.sent,e.powerMode=Object(ct["a"])(Object(ct["a"])({},n),{},{firstPercent:n.lowPercent,secondPercent:n.highPercent}),e.powerModeStatus.isOpen=e.powerMode.mode,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("recording.vue > getPowerMode: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setPowerMode:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.setPowerMode(e.powerMode);case 3:e.powerMode.firstPercent=e.powerMode.lowPercent,e.powerMode.secondPercent=e.powerMode.highPercent,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("recording.vue > setPowerMode: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},powerModeStatusSwitch:function(e){var t=this.powerModeStatus;this.powerMode.mode=t.isOpen=e},onPowerModeRangeChanged:function(e,t){this.powerMode.lowPercent=e,this.powerMode.highPercent=t},getRecordEnable:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getRecordEnable();case 3:n=t.sent,e.recordEnable=e.supportAlarmOutMainSwitch?n.isMainSwitchOn:n.hasEnabledChannel,e.recordStatus.isOpen=e.recordEnable,t.next=13;break;case 9:throw t.prev=9,t.t0=t["catch"](0),C["a"].error("recording.vue > getRecordEnable: ",t.t0),new Error;case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))()},setRecordEnable:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setRecordEnable(n.recordEnable,n.supportAlarmOutMainSwitch);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.recordStatus.isOpen=n.recordEnable=e),C["a"].error("recording.vue > setRecordEnable: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},recordStatusSwitch:function(e){var t=this,n=this.recordStatus;Li["a"].changingEffect(n,(function(){t.recordEnable=n.isOpen=e}),this.setRecordEnable,this.recordEnable)},getRec:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getRecordGenCfg();case 3:e.rec=t.sent,e.recUpdate(),t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("recording.vue > getRec > getRecordGenCfg: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setRec:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setRecordGenCfg(n.rec);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.rec=e,n.recUpdate()),C["a"].error("recording.vue > setRec > setRecordGenCfg: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},recUpdate:function(){this.bOverWrite.isOpen=!!this.rec.iOverWrite,this.iOverWrite.currentVal=this.rec.iOverWrite,this.bPreRecord.isOpen=this.rec.bPreRecord,this.iPostRecordTime.currentVal=this.rec.iPostRecordTime,this.iPackageTime.currentVal=this.rec.iPackageTime,this.iOverWrite.options=[];var e,t=Object(ne["a"])(this.rec.overWriteList.durationTime.slice(0,this.rec.overWriteList.iSize));try{for(t.s();!(e=t.n()).done;){var n=e.value;this.iOverWrite.options.push({value:n,name:0===n?this.$t("common_no_overwrite"):1===n?this.$t("common_overwrite_oldest"):-n+" "+this.$t("common_days")})}}catch(u){t.e(u)}finally{t.f()}if(this.isNvr?this.iPostRecordTime.options=[{value:60,name:"1 ".concat(this.$t("common_min"))},{value:120,name:"2 ".concat(this.$t("common_mins"))},{value:300,name:"5 ".concat(this.$t("common_mins"))},{value:600,name:"10 ".concat(this.$t("common_mins"))}]:this.iPostRecordTime.options=[{value:15,name:"15 ".concat(this.$t("common_secs"))},{value:30,name:"30 ".concat(this.$t("common_secs"))},{value:60,name:"1 ".concat(this.$t("common_min"))}],this.supportTimeList&&this.rec.timeList.iSize>0){this.iPostRecordTime.options=[];for(var i=0;i getRecordScheduleEnable: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setRecordScheduleEnable:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setRecordScheduleEnable(n.recordTaskEnable,!n.isScheduleMulti);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.recordTaskStatus.isOpen=n.recordTaskEnable=e),C["a"].error("recording.vue > setRecordScheduleEnable: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},scheduleSwitchChange:function(e){var t=this,n=this.recordTaskStatus;Li["a"].changingEffect(n,(function(){t.recordTaskEnable=n.isOpen=e}),this.setRecordScheduleEnable,this.recordTaskEnable)},getRecordTask:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getRecordSchedule();case 3:e.recordTask=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("recording.vue > getRecordTask > get recSchedule: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setRecordTask:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setRecordSchedule(n.recordTask);case 3:i.next=10;break;case 5:throw i.prev=5,i.t0=i["catch"](0),t||(n.recordTask=e),C["a"].error("recording.vue > setRecordTask > set recSchedule cfg: ",i.t0),new Error;case 10:case"end":return i.stop()}}),i,null,[[0,5]])})))()},saveScheduleLegacy:function(e){var t=Object(l["g"])(this.recordTask);this.recordTask.iTimeTable=e,Li["a"].saveScheduleEffect(this.$store,this.$data,t,this.setRecordTask)},getScheduleGroup:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getRecordScheduleV20();case 3:e.scheduleGroup=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("recording.vue > getScheduleGroup > getRecordScheduleV20: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setScheduleGroup:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setRecordScheduleV20(n.scheduleGroup);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.scheduleGroup=e),C["a"].error("recording.vue > setScheduleGroup > setRecordScheduleV20: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},saveScheduleGroup:function(e){var t=Object(l["g"])(this.scheduleGroup);this.scheduleGroup=e,this.powerModeStatus.support?Li["a"].saveScheduleEffect(this.$store,this.$data,t,this.setScheduleGroup,this.setPowerMode):Li["a"].saveScheduleEffect(this.$store,this.$data,t,this.setScheduleGroup)},channelIndexChange:function(e){this.channelIndex=e,this.channelInit()},channelRetry:function(){this.channelInit()},bOverWriteSwitch:function(e){var t=this,n=this.bOverWrite;Li["a"].changingEffect(n,(function(){n.isOpen=e,t.rec.iOverWrite=Object(l["k"])(e)}),this.setRec,JSON.parse(JSON.stringify(this.rec)))},recSwitch:function(e,t){var n=this,i=this.$data[t];Li["a"].changingEffect(i,(function(){n.rec[t]=i.isOpen=e}),this.setRec,JSON.parse(JSON.stringify(this.rec)))},recSelect:function(e,t){var n=this,i=this.$data[t];Li["a"].changingEffect(i,(function(){n.rec[t]=i.currentVal=e}),this.setRec,JSON.parse(JSON.stringify(this.rec)))},handleSaveAndCopyto:function(){var e=this;this.$store.commit("SET_COPYTO_INIT_CALLBACK",this.getCopytoChannels),this.$store.commit("STORE_DIALOG_CHANNEL_INDEX",this.channelIndex),this.$store.commit("SET_CUSTOM_DIALOGID","scheduleCopyTo");var t=function(){e.$refs.scheduleDispense&&(e.isScheduleMulti?e.saveAndCopyto(e.selectedChannels,e.$refs.scheduleDispense.modesPoolCopy):e.saveAndCopyto(e.selectedChannels,e.$refs.scheduleDispense.$refs.legacySchedule.motionRectCopy))};this.$store.commit("SET_COPYTO_SAVE_CALLBACK",t)},saveAndCopyto:function(e,t){var n;this.isScheduleMulti?(n=Object(l["g"])(this.scheduleGroup),this.scheduleGroup=t):(n=Object(l["g"])(this.recordTask),this.recordTask.iTimeTable=t),Li["a"].saveAndCopytoScheduleEffect(this.$store,this.$data,n,e,this.saveSelectedChannels)},saveSelectedChannels:function(e,t,n){var i=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var r,s,o,c,u,d,p,h,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:r=i.isScheduleMulti,s=[],o=Object(l["c"])(t,8),a.prev=3,c=Object(ne["a"])(o),a.prev=5,c.s();case 7:if((u=c.n()).done){a.next=25;break}d=u.value,s=[],p=0;case 11:if(!(p saveSelectedChannels > rec schedule copyto: ",a.t1),new Error;case 41:case"end":return a.stop()}}),a,null,[[3,36],[5,27,30,33]])})))()},getCopytoChannels:function(){var e=this.isScheduleMulti?this.scheduleGroup:this.recordTask;return Li["a"].getScheduleCopytoChannels(this.isScheduleMulti,e,this.channels,this.channelIndex,this.getChannelScheduleStatus)},getChannelScheduleStatus:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(n.prev=0,!t.isScheduleMulti){n.next=7;break}return n.next=4,e.config.getRecordScheduleV20();case 4:i=n.sent,n.next=10;break;case 7:return n.next=9,e.config.getRecordSchedule();case 9:i=n.sent;case 10:return n.abrupt("return",i);case 14:throw n.prev=14,n.t0=n["catch"](0),C["a"].error("recording.vue > getChannelScheduleStatus > get record schedule: ",n.t0),new Error;case 18:case"end":return n.stop()}}),n,null,[[0,14]])})))()}}}),Mc=Lc,Nc=(n("fafd"),Object(g["a"])(Mc,Ec,xc,!1,null,"64103645",null)),Bc=Nc.exports,Fc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"email-area config-context-inner"},[n("remoteTitleBar",{attrs:{title:e.$t("common_mailbox_mailbox_description")}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"email config-scroll-box"},[e.supportAlarmOutMainSwitch||e.supportEmailEnable?n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remote_config_page_notification_section_email_item_label")))]),n("slideBtn",e._b({on:{stateChange:e.emailStatusSwitch}},"slideBtn",e.emailStatus,!1))],1):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.supportEmailEnable||e.emailStatus.isOpen,expression:"!supportEmailEnable || emailStatus.isOpen"}]},[n("div",{staticClass:"toogle-controller",class:{"show-detail":e.showSettings}},[n("div",{staticClass:"toogle-controller-title",on:{click:function(t){e.showSettings=!e.showSettings}}},[n("span",[e._v(e._s(e.$t("remote_config_page_notification_section_email_settings_item_label")))]),n("span",{class:[e.showSettings?"icon-client_arrow_up":"icon-client_arrow_down"]})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showSettings,expression:"showSettings"}],staticClass:"item-tabs"},[n("div",{staticClass:"smtp-server"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_email_SMTPserver")))]),n("selectBox",e._b({staticClass:"long-select-box",on:{selectChanged:e.smtpServerChanged}},"selectBox",e.smtpServerOptions,!1))],1),n("div",{directives:[{name:"show",rawName:"v-show",value:"Custom"===e.smtpServerOptions.currentVal,expression:"smtpServerOptions.currentVal==='Custom'"}],staticClass:"custem-smtp"},[n("h5",{staticClass:"text flex"},[n("span",[e._v(e._s(e.$t("remoteConfig_email_SMTPserver")))]),n("span",{staticClass:"necessary-clue"})]),n("simpleInput",e._b({attrs:{targetValue:e.emailData.server},on:{inputChanged:e.inputChanged}},"simpleInput",e.inputArr.server,!1))],1),n("div",{staticClass:"email-protocol"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("email_server_page_ssl_label")))]),n("slideBtn",{attrs:{isOpen:e.emailData.protocol},on:{stateChange:e.enableProtocolSwitch},nativeOn:{"!click":function(t){return e.preEnableProtocolSwitch(t)}}})],1),n("div",{staticClass:"sender-port"},[n("h5",{staticClass:"text flex"},[n("span",[e._v(e._s(e.$t("remoteConfig_email_SMTPport")+" (1~65535)"))]),n("span",{staticClass:"necessary-clue"})]),n("h5",{staticClass:"text"}),n("simpleInput",e._b({attrs:{targetValue:e.emailData.port},on:{inputChanged:e.inputChanged}},"simpleInput",e.inputArr.port,!1))],1),e.supportNickName?n("div",{staticClass:"sender-name"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("email_settings_page_sender_name_label")))]),n("simpleInput",e._b({attrs:{targetValue:e.emailData.name},on:{inputChanged:e.inputChanged}},"simpleInput",e.inputArr.name,!1))],1):e._e(),n("div",{staticClass:"sender-address"},[n("h5",{staticClass:"text flex"},[n("span",[e._v(e._s(e.$t("remoteConfig_email_SenderAddress")))]),n("span",{staticClass:"necessary-clue"})]),n("simpleInput",e._b({attrs:{targetValue:e.emailData.address},on:{inputChanged:e.inputChanged}},"simpleInput",e.inputArr.address,!1))],1),n("div",{staticClass:"sender-password"},[n("h5",{staticClass:"text flex"},[n("span",[e._v(e._s(e.$t("common_password_password_description")))]),n("span",{staticClass:"necessary-clue"})]),n("simpleInput",e._b({attrs:{targetValue:e.emailData.password,isPassword:!0,hideEye:!0},on:{inputChanged:e.inputChanged}},"simpleInput",e.inputArr.password,!1))],1),n("div",{staticClass:"recipient-address1"},[n("h5",{staticClass:"text flex"},[n("span",[e._v(e._s(e.$t("remoteConfig_email_RecipientAddress1")))]),n("span",{staticClass:"necessary-clue"})]),n("simpleInput",e._b({attrs:{targetValue:e.emailData.address1},on:{inputChanged:e.inputChanged}},"simpleInput",e.inputArr.address1,!1),[n("div",{directives:[{name:"show",rawName:"v-show",value:e.emailData.address&&e.emailData.address===e.emailData.address1,expression:"emailData.address && emailData.address === emailData.address1"}],staticClass:"clue-wrap flex text"},[n("span",[e._v(e._s(e.$t("common_Sender")))])])])],1),n("div",{staticClass:"recipient-address2"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_email_RecipientAddress2")))]),n("simpleInput",e._b({attrs:{targetValue:e.emailData.address2},on:{inputChanged:e.inputChanged}},"simpleInput",e.inputArr.address2,!1),[n("div",{directives:[{name:"show",rawName:"v-show",value:e.emailData.address&&e.emailData.address===e.emailData.address2,expression:"emailData.address && emailData.address === emailData.address2"}],staticClass:"clue-wrap flex text"},[n("span",[e._v(e._s(e.$t("common_Sender")))]),n("span",{staticClass:"necessary-clue"})])])],1),n("div",{staticClass:"recipient-address3"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_email_RecipientAddress3")))]),n("simpleInput",e._b({attrs:{targetValue:e.emailData.address3},on:{inputChanged:e.inputChanged}},"simpleInput",e.inputArr.address3,!1),[n("div",{directives:[{name:"show",rawName:"v-show",value:e.emailData.address&&e.emailData.address===e.emailData.address3,expression:"emailData.address && emailData.address === emailData.address3"}],staticClass:"clue-wrap flex text"},[n("span",[e._v(e._s(e.$t("common_Sender")))]),n("span",{staticClass:"necessary-clue"})])])],1),n("div",{staticClass:"attachment"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("email_settings_page_email_content")))]),n("selectBox",e._b({staticClass:"long-select-box",on:{selectChanged:e.attachmentChanged}},"selectBox",e.attachmentOptions,!1))],1),e.supportEmailInterval?n("div",{staticClass:"interval"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_Interval")))]),n("selectBox",e._b({staticClass:"long-select-box",on:{selectChanged:e.intervalChanged}},"selectBox",e.intervalOptions,!1))],1):e._e(),n("div",{staticClass:"flex btn-wrap"},[n("button",{staticClass:"save-button ghost-button",attrs:{"reo-element":""},on:{click:function(t){return e.proxyTestOrSave("test")}}},[e._v(e._s(e.$t("EMAIL_TEST")))]),n("button",{staticClass:"save-button",attrs:{"reo-element":""},on:{click:function(t){return e.proxyTestOrSave("save")}}},[e._v(e._s(e.$t("common_dialog_save_button")))])])])]),e.hasSchedule?n("h5",{staticClass:"middle-title schedule-title"},[e._v(e._s(e.$t("common_view_schedule")))]):e._e(),n("scheduleDispense",e._b({ref:"scheduleDispense",on:{scheduleSwitchChange:e.scheduleSwitchChange,saveScheduleLegacy:e.saveScheduleLegacy,saveScheduleGroup:e.saveScheduleGroup,channelIndexChange:e.channelIndexChange,channelRetry:e.channelRetry,handleSaveAndCopyto:e.handleSaveAndCopyto}},"scheduleDispense",e.scheduleProps,!1)),e.supportAbnormalAlert?n("div",{staticClass:"toogle-controller",class:{"show-detail":e.showAlertSettings}},[n("div",{staticClass:"toogle-controller-title",on:{click:function(t){e.showAlertSettings=!e.showAlertSettings}}},[n("span",[e._v(e._s(e.$t("EMAIL_ALERT_FOR_EXPECTIONS")))]),n("span",{class:[e.showAlertSettings?"icon-client_arrow_up":"icon-client_arrow_down"]})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showAlertSettings,expression:"showAlertSettings"}],staticClass:"alert-wrap"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showAlertSettings,expression:"showAlertSettings"}],staticClass:"alert-wrap"},[n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("STR_EXCEPT_HDFULL")))]),n("slideBtn",e._b({on:{stateChange:e.slideSwitch}},"slideBtn",e.bDiskFullAlert,!1))],1),n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("STR_EXCEPT_HD")))]),n("slideBtn",e._b({on:{stateChange:e.slideSwitch}},"slideBtn",e.bDiskErrorAlert,!1))],1)])])]):e._e()],1)]),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:function(t){return e.deviceInit()}}}):e._e()],1)},jc=[],Vc=u["a"].extend({name:"email",components:{selectBox:Xe["a"],simpleInput:_,slideBtn:Ci["a"],retry:be["a"],scheduleDispense:ns["a"],remoteTitleBar:us["a"]},data:function(){return{showSettings:!1,showAlertSettings:!1,isLoadingDataRetry:!1,supportAbnormalAlert:!1,supportAlarmOutMainSwitch:!1,bDiskFullAlert:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"bDiskFullAlert"},bDiskErrorAlert:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"bDiskErrorAlert"},emailEnable:!1,email:{sender:{byAccount:"",byPassword:"",iSenderMaxLen:0,iPwdMaxLen:0},receiver:[{byAddress:""},{byAddress:""},{byAddress:""}],bySmtpServer:"",bSSL:!1,iSmtpPort:0,iAttachment:0,bSupportVideo:!1,bSupportTextType:!1,iWithText:0,iMailInterval:3,cSendNickname:"",bDiskFullAlert:!1,bDiskErrorAlert:!1,iAttachmentAbility:0},emailStatus:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"emailStatus"},isPartCfgRetry:!1,isLoadingPartCfg:!0,channelIndex:-1,scheduleGroup:{},isScheduleSetting:!1,channels:[],emailTaskEnable:!1,emailTask:{iTimeTable:[0]},emailTaskStatus:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"emailTaskStatus"},emailData:{server:"",name:"",address:"",password:"",protocol:!1,port:"",address1:"",address2:"",address3:""},smtpServerOptions:{currentVal:"smtp.gmail.com",options:[{value:"smtp.gmail.com",name:"smtp.gmail.com"},{value:"smtp.mail.yahoo.com",name:"smtp.mail.yahoo.com"},{value:"smtp.live.com",name:"smtp.live.com"},{value:"Custom",name:this.$t("email_server_page_other_server")}]},inputArr:{server:{flag:"server",regexp:"server",minLength:1,maxLength:255,triggerVerificationCount:0,checked:!0},name:{flag:"name",maxLength:127,disallowConsecutiveSpaces:!0,triggerVerificationCount:0,checked:!0},address:{regexp:"email",flag:"address",minLength:1,maxLength:127,checked:!0},password:{flag:"password",minLength:1,maxLength:127,autoRemoveFirstOrLastSpace:!1,disallowConsecutiveSpaces:!0,checked:!0},port:{minLength:1,regexp:"port",flag:"port",triggerVerificationCount:0,checked:!0},address1:{flag:"address1",regexp:"email",minLength:1,maxLength:127,triggerVerificationCount:0,checked:!0},address2:{flag:"address2",regexp:"email",maxLength:127,triggerVerificationCount:0,hideBlankError:!0,checked:!0},address3:{flag:"address3",regexp:"email",maxLength:127,triggerVerificationCount:0,hideBlankError:!0,checked:!0}},attachmentOptions:{currentVal:0,options:[]},intervalOptions:{currentVal:"3",options:[{value:"3",name:"30 ".concat(this.$t("common_secs"))},{value:"6",name:"1 ".concat(this.$t("common_min"))},{value:"30",name:"5 ".concat(this.$t("common_mins"))},{value:"60",name:"10 ".concat(this.$t("common_mins"))},{value:"180",name:"30 ".concat(this.$t("common_mins"))}]},supportEmailEnable:!1,supportEmailTask:!1,supportEmailTaskEnable:!1,supportNickName:!1,supportEmailInterval:!1,scheduleCate:te["EScheduleCate"].NONE,device:{}}},computed:{handle:function(){return this.$store.getters.deviceHandle},isConfigContextLoading:function(){return this.$store.getters.configContextLoading},formChecked:function(){for(var e in this.inputArr)if(!("address2"===e&&""===this.emailData.address2||"address3"===e&&""===this.emailData.address3)&&("name"!==e||this.supportNickName)&&("server"!==e||"Custom"===this.smtpServerOptions.currentVal)&&!this.inputArr[e]["checked"])return!1;return!0},channel:function(){return this.channels[this.channelIndex]},isScheduleMulti:function(){return this.scheduleCate===te["EScheduleCate"].MULTI},hasSchedule:function(){return this.scheduleCate!==te["EScheduleCate"].NONE},supportScheduleEnable:function(){return this.supportAlarmOutMainSwitch||this.supportEmailTaskEnable&&!this.supportEmailEnable},scheduleProps:function(){var e={allowChannelSelect:this.$store.getters.isNvr,channels:this.channels,isPartCfgRetry:this.isPartCfgRetry,isLoadingPartCfg:this.isLoadingPartCfg,isScheduleSetting:this.isScheduleSetting,supportScheduleEnable:this.supportScheduleEnable,scheduleCate:this.scheduleCate,scheduleSwitchDes:this.$t("common_view_schedule"),scheduleStatus:Object(l["g"])(this.emailTaskStatus),scheduleType:"email"};return this.isScheduleMulti?Object(ct["a"])(Object(ct["a"])({},e),{},{videoLossDes:this.$t("STR_PLAN_EMAIL_VIDEO_LOSS"),modesPool:this.scheduleGroup}):Object(ct["a"])(Object(ct["a"])({},e),{},{motionRect:this.emailTask.iTimeTable,timingSupport:!0})},selectedChannels:function(){return this.$store.getters.selectedChannels}},watch:{handle:{handler:function(e){this.deviceInit()},immediate:!0}},methods:{deviceInit:function(){var e=this;Li["a"].pageInitEffect(this.$store,this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,B["a"].getDeviceWithHandle(e.handle);case 2:return e.device=t.sent,t.next=5,Promise.all([e.device.getChannels(),e.getSupport(),e.getEmail()]);case 5:if(n=t.sent,i=Object(T["a"])(n,1),e.channels=i[0],!e.supportAlarmOutMainSwitch&&!e.supportEmailEnable){t.next=11;break}return t.next=11,e.getEmailEnable();case 11:case"end":return t.stop()}}),t)}))))},channelInit:function(){var e=this;this.channel&&Li["a"].partInitEffect(this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=[],!e.supportEmailTask){t.next=7;break}return t.next=4,Li["a"].getScheduleCateFunc(e.channel.supportEmailMultiTask,e.getScheduleGroup,e.getEmailTask);case 4:i=t.sent,n.push(i[0]),e.scheduleCate=i[1];case 7:return e.isScheduleMulti&&n.push(e.getSupportAiAnimal()),e.supportScheduleEnable&&n.push(e.getEmailTaskEnable()),t.next=11,Promise.all(n);case 11:case"end":return t.stop()}}),t)}))))},getSupportAiAnimal:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=!1,t.prev=1,t.next=4,e.channel.supportAiAnimal();case 4:n=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),C["a"].error("email.vue > getSupportAiAnimal: ",t.t0);case 10:e.$store.commit("MODIFY_SUPPORT_AI_ANIMAL",n);case 11:case"end":return t.stop()}}),t,null,[[1,7]])})))()},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.device.supportAlarmOutMainSwitch(),e.device.supportEmailTaskEnable(),e.device.supportEmailEnable(),e.device.supportEmailTask(),e.device.supportEmailNickName(),e.device.supportEmailInterval(),e.device.supportAbnormalAlert()]);case 3:n=t.sent,i=Object(T["a"])(n,7),e.supportAlarmOutMainSwitch=i[0],e.supportEmailTaskEnable=i[1],e.supportEmailEnable=i[2],e.supportEmailTask=i[3],e.supportNickName=i[4],e.supportEmailInterval=i[5],e.supportAbnormalAlert=i[6],t.next=19;break;case 15:throw t.prev=15,t.t0=t["catch"](0),C["a"].error("email.vue > getSupport: ",t.t0),new Error;case 19:case"end":return t.stop()}}),t,null,[[0,15]])})))()},getEmailEnable:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getEmailEnable();case 3:n=t.sent,e.emailEnable=e.supportAlarmOutMainSwitch?n.isMainSwitchOn:n.hasEnabledChannel,e.emailStatus.isOpen=e.emailEnable,t.next=13;break;case 9:throw t.prev=9,t.t0=t["catch"](0),C["a"].error("email.vue > getEmailEnable: ",t.t0),new Error;case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))()},setEmailEnable:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setEmailEnable(n.emailEnable,n.supportAlarmOutMainSwitch);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.emailStatus.isOpen=n.emailEnable=e),C["a"].error("email.vue > setEmailEnable: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},preEnableProtocolSwitch:function(e){var t=this,n=this.emailData.protocol;n&&(e.stopPropagation(),this.$store.commit("MODIFY_DIALOG_OPTIONS",{type:"message",icon:"icon-client_warning",message:this.$t("common_email_security_protocol_close_tips"),defaultBtnValue:0,buttons:[{title:this.$t("common_dialog_cancel_button"),value:0,class:"ghost-button",key:27},{title:this.$t("common_dialog_ok_button"),value:1,key:13}]}),this.$store.commit("SET_APP_DIALOG_CALLBACK",(function(e){e&&t.enableProtocolSwitch(!n)})),this.$store.commit("SET_DIALOGID","messageDialog"))},emailStatusSwitch:function(e){var t=this,n=this.emailStatus;Li["a"].changingEffect(n,(function(){t.emailEnable=n.isOpen=e}),this.setEmailEnable,this.emailEnable)},getEmail:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getMailCfg();case 3:e.email=t.sent,e.emailUpdate(),t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("email.vue > getEmail > getMailCfg: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setEmail:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setMailCfg(n.email);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.email=e,n.emailUpdate()),C["a"].error("email.vue > setEmail > setMailCfg: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},testEmail:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.emailTest(e.getEmailWidthEmailData());case 3:t.next=13;break;case 5:throw t.prev=5,t.t0=t["catch"](0),n={},Object(es["a"])(n,R["EEmailTestError"].undefined,"".concat(R["EEmailTestError"].undefined,": ")+e.$t("ftp_test_error_450")),Object(es["a"])(n,R["EEmailTestError"].connect,"".concat(R["EEmailTestError"].connect,": ")+e.$t("remote_config_email_smtp_incorrent_tip")),Object(es["a"])(n,R["EEmailTestError"].auth,"".concat(R["EEmailTestError"].auth,": ")+e.$t("remote_config_email_address_or_password_error_tip")),Object(es["a"])(n,R["EEmailTestError"].network,"".concat(R["EEmailTestError"].network,": ")+e.$t("remote_config_email_network_error_tip")),Object(es["a"])(n,R["EEmailTestError"].server,"".concat(R["EEmailTestError"].server,": ")+e.$t("remote_config_email_not_allowed_email_tip")),Object(es["a"])(n,R["EEmailTestError"].memory,"".concat(R["EEmailTestError"].memory,": ")+e.$t("remote_config_email_device_memory_error_tip")),i=n,a=i[t.t0],void 0===a&&(a="[object Number]"===toString.call(t.t0)?"".concat(t.t0,": ")+e.$t("ftp_test_error_450"):i[R["EEmailTestError"].undefined]),r={type:"message",message:a,defaultBtnValue:1,buttons:[{title:e.$t("common_dialog_ok_button"),value:1,key:13}]},S["a"].openMessageDialog(e,r,(function(){})),t.t0;case 13:case"end":return t.stop()}}),t,null,[[0,5]])})))()},getEmailTaskEnable:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getEmailTaskEnable(!e.isScheduleMulti);case 3:e.emailTaskEnable=t.sent,e.emailTaskStatus.isOpen=e.emailTaskEnable,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("email.vue > getEmailTaskEnable: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setEmailTaskEnable:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setEmailTaskEnable(n.emailTaskEnable,!n.isScheduleMulti);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.emailTaskStatus.isOpen=n.emailTaskEnable=e),C["a"].error("email.vue > setEmailTaskEnable: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},scheduleSwitchChange:function(e){var t=this,n=this.emailTaskStatus;Li["a"].changingEffect(n,(function(){t.emailTaskEnable=n.isOpen=e}),this.setEmailTaskEnable,this.emailTaskEnable)},getEmailTask:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getEmailTask();case 3:e.emailTask=t.sent,t.next=10;break;case 6:throw t.prev=6,t.t0=t["catch"](0),C["a"].error("email.vue > getEmailTask: ",t.t0),new Error;case 10:case"end":return t.stop()}}),t,null,[[0,6]])})))()},setEmailTask:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setEmailTask(n.emailTask);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.emailTask=e),C["a"].error("email.vue > setEmailTask: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},saveScheduleLegacy:function(e){var t=Object(l["g"])(this.emailTask);this.emailTask.iTimeTable=e,Li["a"].saveScheduleEffect(this.$store,this.$data,t,this.setEmailTask)},getScheduleGroup:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getEmailTaskV20();case 3:e.scheduleGroup=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("email.vue > getScheduleGroup > getEmailTaskV20: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setScheduleGroup:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setEmailTaskV20(n.scheduleGroup);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.scheduleGroup=e),C["a"].error("email.vue > setScheduleGroup > setEmailTaskV20: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},saveScheduleGroup:function(e){var t=Object(l["g"])(this.scheduleGroup);this.scheduleGroup=e,Li["a"].saveScheduleEffect(this.$store,this.$data,t,this.setScheduleGroup)},channelIndexChange:function(e){this.channelIndex=e,this.channelInit()},channelRetry:function(){this.channelInit()},getEmailWidthEmailData:function(){var e=Object(l["g"])(this.email);switch(this.smtpServerOptions.currentVal){case"smtp.gmail.com":case"smtp.mail.yahoo.com":case"smtp.live.com":e.bySmtpServer=this.smtpServerOptions.currentVal;break;case"Custom":e.bySmtpServer=this.emailData.server;break;default:e.bySmtpServer="smtp.gmail.com";break}return e.iSmtpPort=~~this.emailData.port,e.bSSL=this.emailData.protocol,e.sender.byAccount=this.emailData.address,e.sender.byPassword=w["a"].transform(this.emailData.password),e.cSendNickname=this.emailData.name,e.receiver[0].byAddress=this.emailData.address1,e.receiver[1].byAddress=this.emailData.address2,e.receiver[2].byAddress=this.emailData.address3,e.iMailInterval=~~this.intervalOptions.currentVal,3===this.attachmentOptions.currentVal?(e.iAttachment=1,e.iWithText=0):(e.iAttachment=this.attachmentOptions.currentVal,e.iWithText=1),e},proxyTestOrSave:function(e){for(var t=this,n=0,i=Object.keys(this.inputArr);n testEmailHandler > testEmail: ",t.t0);case 12:e.$store.commit("HANDLE_LOADING",!1);case 13:case"end":return t.stop()}}),t,null,[[3,9]])})))()},emailUpdate:function(){switch(this.email.bySmtpServer){case"smtp.gmail.com":case"smtp.mail.yahoo.com":case"smtp.live.com":this.emailData.server=this.smtpServerOptions.currentVal=this.email.bySmtpServer;break;default:this.smtpServerOptions.currentVal="Custom",this.emailData.server=this.email.bySmtpServer;break}this.emailData.port=this.email.iSmtpPort.toString(),this.emailData.protocol=this.email.bSSL,this.emailData.name=this.email.cSendNickname,this.emailData.address=this.email.sender.byAccount,this.emailData.password=w["a"].recover2Str(this.email.sender.byPassword),this.emailData.address1=this.email.receiver[0].byAddress,this.emailData.address2=this.email.receiver[1].byAddress,this.emailData.address3=this.email.receiver[2].byAddress,this.intervalOptions.currentVal=this.email.iMailInterval.toString(),this.attachmentOptions.options=[{name:this.$t("email_attach_page_no_attach_item"),value:0},{name:this.$t("email_attach_page_attach_picture_and_text_item"),value:1}],this.email.bSupportTextType&&this.attachmentOptions.options.splice(1,0,{name:this.$t("email_attach_page_attach_picture_item"),value:3}),this.email.bSupportVideo&&this.attachmentOptions.options.push({name:this.$t("email_attach_page_attach_video_item"),value:2});var e=0===this.email.iWithText&&1===this.email.iAttachment;this.email.bSupportTextType&&e?this.attachmentOptions.currentVal=3:this.attachmentOptions.currentVal=this.email.iAttachment,this.$set(this.inputArr.address,"maxLength",this.email.sender.iSenderMaxLen),this.$set(this.inputArr.password,"maxLength",this.email.sender.iPwdMaxLen),this.$set(this.bDiskFullAlert,"isOpen",this.email.bDiskFullAlert),this.$set(this.bDiskErrorAlert,"isOpen",this.email.bDiskErrorAlert)},smtpServerChanged:function(e){switch(this.$set(this.smtpServerOptions,"currentVal",e),e){case"smtp.gmail.com":case"smtp.mail.yahoo.com":this.emailData.server=e,this.inputArr.server.checked=!0,this.emailData.port="465",this.inputArr.port.checked=!0,this.emailData.protocol=!0;break;case"smtp.live.com":this.emailData.server=e,this.inputArr.server.checked=!0,this.emailData.port="25",this.inputArr.port.checked=!0,this.emailData.protocol=!0;break;case"Custom":this.emailData.server="",this.inputArr.server.checked=!0,this.emailData.port="465",this.inputArr.port.checked=!0,this.emailData.protocol=!0;break;default:this.emailData.server=e;break}},enableProtocolSwitch:function(e){this.emailData.protocol=e},attachmentChanged:function(e){this.$set(this.attachmentOptions,"currentVal",e)},intervalChanged:function(e){this.$set(this.intervalOptions,"currentVal",e)},inputChanged:function(e,t,n){this.inputArr[t]["checked"]=!n,this.emailData[t]=e},slideSwitch:function(e,t){var n=this,i=this.$data[t];Li["a"].changingEffect(i,(function(){n.email[t]=i.isOpen=e}),this.setEmail,Object(l["g"])(this.email))},handleSaveAndCopyto:function(){var e=this;this.$store.commit("SET_COPYTO_INIT_CALLBACK",this.getCopytoChannels),this.$store.commit("STORE_DIALOG_CHANNEL_INDEX",this.channelIndex),this.$store.commit("SET_CUSTOM_DIALOGID","scheduleCopyTo");var t=function(){e.isScheduleMulti?e.saveAndCopyto(e.selectedChannels,e.$refs.scheduleDispense.modesPoolCopy):e.saveAndCopyto(e.selectedChannels,e.$refs.scheduleDispense.$refs.legacySchedule.motionRectCopy)};this.$store.commit("SET_COPYTO_SAVE_CALLBACK",t)},saveAndCopyto:function(e,t){var n;this.isScheduleMulti?(n=Object(l["g"])(this.scheduleGroup),this.scheduleGroup=t):(n=Object(l["g"])(this.emailTask),this.emailTask.iTimeTable=t),Li["a"].saveAndCopytoScheduleEffect(this.$store,this.$data,n,e,this.saveSelectedChannels)},getCopytoChannels:function(){var e=this.isScheduleMulti?this.scheduleGroup:this.emailTask;return Li["a"].getScheduleCopytoChannels(this.isScheduleMulti,e,this.channels,this.channelIndex,this.getChannelScheduleStatus)},saveSelectedChannels:function(e,t,n){var i=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var r,s,o,c,u,d,p,h,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:r=i.isScheduleMulti,s=[],o=Object(l["c"])(t,8),a.prev=3,c=Object(ne["a"])(o),a.prev=5,c.s();case 7:if((u=c.n()).done){a.next=25;break}d=u.value,s=[],p=0;case 11:if(!(p saveSelectedChannels > email schedule copyto: ",a.t1),new Error;case 41:case"end":return a.stop()}}),a,null,[[3,36],[5,27,30,33]])})))()},getChannelScheduleStatus:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(n.prev=0,!t.isScheduleMulti){n.next=7;break}return n.next=4,e.config.getEmailTaskV20();case 4:i=n.sent,n.next=10;break;case 7:return n.next=9,e.config.getEmailTask();case 9:i=n.sent;case 10:return n.abrupt("return",i);case 14:throw n.prev=14,n.t0=n["catch"](0),C["a"].error("email.vue > getChannelScheduleStatus > get email schedule: ",n.t0),new Error;case 18:case"end":return n.stop()}}),n,null,[[0,14]])})))()}}}),Uc=Vc,Hc=(n("7df5"),Object(g["a"])(Uc,Fc,jc,!1,null,"0e4fc5e1",null)),Gc=Hc.exports,Wc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"config-context-inner"},[n("remoteTitleBar",{attrs:{title:e.$t("remoteConfig_ftp_title")}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"ftp-area config-scroll-box",attrs:{"data-id":"ftp-area-div"}},[e.supportAlarmOutMainSwitch||e.supportFtpEnable?n("div",{attrs:{"data-id":"ftpEnable-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_FTP")))]),n("slideBtn",e._b({attrs:{"data-id":"ftpEnable-slideBtn"},on:{stateChange:e.ftpStatusSwitch},nativeOn:{"!click":function(t){return e.preFtpStatusSwitch(t)}}},"slideBtn",e.ftpStatus,!1))],1):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.supportFtpEnable||e.ftpStatus.isOpen,expression:"!supportFtpEnable || ftpStatus.isOpen"}],attrs:{"data-id":"ftp-div"}},[n("div",{staticClass:"toogle-controller",class:{"show-detail":e.showSettings}},[n("div",{staticClass:"toogle-controller-title",attrs:{"data-id":"toggle-settings"},on:{click:function(t){e.showSettings=!e.showSettings}}},[n("span",[e._v(e._s(e.$t("remoteConfig_ftp_title")))]),n("span",{class:[e.showSettings?"icon-client_arrow_up":"icon-client_arrow_down"]})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showSettings,expression:"showSettings"}],attrs:{"data-id":"show-settings-div"}},[n("h5",{staticClass:"server-title cate-title"},[e._v(e._s(e.$t("common_server")))]),e._l(e.serverData,(function(t,i){return n("div",{key:i},[n("h5",{staticClass:"text flex"},[n("span",[e._v(e._s(t.title))]),n("span",{staticClass:"necessary-clue"})]),n("simpleInput",e._b({attrs:{"data-id":"serverData-simpleInput-"+i,targetValue:e.ftpData[i],flag:i},on:{inputChanged:e.inputChanged}},"simpleInput",t,!1))],1)})),n("div",{staticClass:"anonymous-title"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_Anonymous")))]),n("slideBtn",{attrs:{isOpen:e.ftpData.isAnonymous,"data-id":"anonymous-slideBtn"},on:{stateChange:e.anonymousSwitch}})],1),e._l(e.userData,(function(t,i){return n("div",{key:i},[n("h5",{staticClass:"text flex"},[n("span",[e._v(e._s(t.title))]),"username"===i?n("span",{staticClass:"necessary-clue",attrs:{"data-id":"userData-necessary-clue"}}):e._e()]),n("simpleInput",e._b({attrs:{"data-id":"userData-simpleInput-"+i,targetValue:e.ftpData[i],flag:i},on:{inputChanged:e.inputChanged}},"simpleInput",t,!1))],1)})),e.isNewFtpProtocol?e._e():n("div",{attrs:{"data-id":"singlePicInterval-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_upload")))]),n("selectBox",e._b({staticClass:"long-select-box",attrs:{"data-id":"singlePicInterval-selectBox"},on:{selectChanged:e.fileTypeChanged}},"selectBox",e.fileTypeOptions,!1))],1),n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_ftp_transportMode")))]),n("selectBox",e._b({staticClass:"long-select-box",attrs:{"data-id":"transportMode-selectBox"},on:{selectChanged:e.transportModeChanged}},"selectBox",e.transportModeOptions,!1))],1),e.supportFtpsEncrypt?n("div",{attrs:{"data-id":"ftpsEncrypt-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_ftps_title")))]),n("slideBtn",{attrs:{isOpen:e.ftp.onlyFtps,closeVal:0,openVal:1,"data-id":"ftpsEncrypt-slideBtn"},on:{stateChange:function(t){e.ftp.onlyFtps=t}}}),n("p",{staticClass:"note-content notes-text"},[e._v(e._s(e.$t("common_ftps_des")))])],1):e._e(),n("h4",{staticClass:"cate-title"},[e._v(e._s(e.$t("common_directory")))]),n("h5",{staticClass:"text",staticStyle:{"margin-top":"0"}},[e._v(e._s(e.$t("ftp_remote_directory_title")))]),n("simpleInput",e._b({attrs:{"data-id":"remotedir-simpleInput",targetValue:e.ftpData.remoteDir},on:{inputChanged:e.inputChanged}},"simpleInput",e.inputData.remoteDir,!1)),e.supportFtpAutoDir?n("div",{attrs:{"data-id":"autoDir-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("ftp_generate_subfolder_rule")))]),n("selectBox",e._b({staticClass:"long-select-box",attrs:{"data-id":"autoDir-selectBox"},on:{selectChanged:e.autoDirChanged}},"selectBox",e.autoDirOptions,!1))],1):e._e(),e.ftp.iSupportStreamType?[e.isNewFtpProtocol?[n("h4",{staticClass:"cate-title"},[e._v(e._s(e.$t("common_upload")))]),n("selectBox",e._b({staticClass:"long-select-box",attrs:{"data-id":"uploadType-selectBox"},on:{selectChanged:function(t){e.uploadTypeOptions.currentVal=t}}},"selectBox",e.uploadTypeOptions,!1)),e.uploadTypeOptions.currentVal!==e.EUploadType.PIC?[n("h4",{staticClass:"cate-title"},[e._v(e._s(e.$t("common_video_file_type")))]),n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_Resolution")))]),n("selectBox",e._b({staticClass:"long-select-box",attrs:{"data-id":"videoResolution-selectBox"},on:{selectChanged:e.videoResolutionChange}},"selectBox",e.videoResolutionOptions,!1)),0!==e.ftp.iSupportInterval?n("div",{attrs:{"data-id":"interval-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("ftp_upload_settings_page_upload_postpone")))]),n("selectBox",e._b({staticClass:"long-select-box",attrs:{"data-id":"interval-selectBox"},on:{selectChanged:e.ftpPostponeChanged}},"selectBox",e.ftpPostponeOptions,!1))],1):e._e(),e.videoPolicyOptions.options.length>1?n("div",{attrs:{"data-id":"videoPolicy-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("ftp_overwirte_file_title")))]),n("selectBox",e._b({staticClass:"long-select-box",attrs:{"data-id":"videoPolicy-selectBox"},on:{selectChanged:e.videoPolicyChanged}},"selectBox",e.videoPolicyOptions,!1)),n("p",{directives:[{name:"show",rawName:"v-show",value:e.videoPolicyOptions.currentVal===e.EFtpCover.COVER,expression:"videoPolicyOptions.currentVal===EFtpCover.COVER"}],staticClass:"note-content notes-text"},[e._v(e._s(e.$t("ftp_single_file_overwrite_description")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:e.videoPolicyOptions.currentVal===e.EFtpCover.SWAP,expression:"videoPolicyOptions.currentVal===EFtpCover.SWAP"}],staticClass:"note-content notes-text"},[e._v(e._s(e.$t("ftp_swap_file_overwrite_description")))]),n("simpleInput",e._b({directives:[{name:"show",rawName:"v-show",value:e.videoPolicyOptions.currentVal!==e.EFtpCover.CLOSE,expression:"videoPolicyOptions.currentVal!==EFtpCover.CLOSE"}],staticClass:"custom-input",attrs:{"data-id":"videoPolicy-simpleInput",targetValue:e.ftpData.videoName,placeholder:e.$t("playbackDownload_downloadArea_fileName")},on:{inputChanged:e.inputChanged}},"simpleInput",e.inputData.videoName,!1),[n("span",{staticClass:"custom-input-unit notes-text"},[e._v(".mp4")]),n("span",{staticClass:"necessary-clue"})])],1):e._e(),-1!==e.ftp.iwFilelen?[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("ftp_video_file_max_size")))]),n("selectBox",e._b({staticClass:"long-select-box",attrs:{"data-id":"maxLength-selectBox"},on:{selectChanged:e.maxLengthChanged}},"selectBox",e.maxLengthOptions,!1)),n("simpleInput",{directives:[{name:"show",rawName:"v-show",value:-1===e.maxLengthOptions.currentVal,expression:"maxLengthOptions.currentVal===-1"}],staticClass:"custom-input input-video-size",attrs:{"data-id":"maxLength-custom-simpleInput",targetValue:e.ftp.iwFilelen,labelText:"MB",max:1024,min:10,isNumber:!0},on:{inputChanged:function(t){e.ftp.iwFilelen=t}}})]:e._e()]:e._e(),e.uploadTypeOptions.currentVal!==e.EUploadType.VIDEO?[n("h4",{staticClass:"cate-title"},[e._v(e._s(e.$t("common_image")))]),e.supportFTPPictureResolutionConfig?n("div",{attrs:{"data-id":"FTPPictureResolutionConfig-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_Resolution")))]),n("selectBox",e._b({staticClass:"long-select-box",attrs:{"data-id":"picResolution-selectBox"},on:{selectChanged:e.picResolutionChange}},"selectBox",e.picResolutionOptions,!1)),n("div",{directives:[{name:"show",rawName:"v-show",value:e.picResolutionOptions.currentVal===e.ECaptureMode.CUSTOM,expression:"picResolutionOptions.currentVal===ECaptureMode.CUSTOM"}],staticClass:"custom-resolution flex",attrs:{"data-id":"picResolution-custom-div"}},[n("div",{staticClass:"resolution-width"},[n("h5",{staticClass:"text"},[e._v("W")]),n("simpleInput",{staticClass:"custom-resolution-width",attrs:{"data-id":"picResolution-custom-width-simpleInput",targetValue:e.ftp.picWidth,isNumber:!0,multiple:8,min:e.picWidth.min,max:e.picWidth.max},on:{inputChanged:function(t){e.ftp.picWidth=t}}},[n("div",{staticClass:"link-line-box flex-between"},[n("span",{staticClass:"link-line"}),n("span",{staticClass:"link-icon icon-client_local"}),n("span",{staticClass:"link-line"})])]),n("p",{staticClass:"notes-text"},[e._v("("+e._s(e.picWidth.min)+"~"+e._s(e.picWidth.max)+")")])],1),n("div",{staticClass:"resolution-height"},[n("h5",{staticClass:"text"},[e._v("H")]),n("simpleInput",{staticClass:"custom-resolution-height",attrs:{"data-id":"picResolution-custom-height-simpleInput",targetValue:e.ftp.picHeight,isNumber:!0,multiple:8,min:e.picHeight.min,max:e.picHeight.max},on:{inputChanged:function(t){e.ftp.picHeight=t}}}),n("p",{staticClass:"notes-text"},[e._v("("+e._s(e.picHeight.min)+"~"+e._s(e.picHeight.max)+")")])],1)])],1):e._e(),0!==e.ftp.iSupportInterval&&-1!==e.ftp.picInterval?n("div",{attrs:{"data-id":"picInterval-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_Interval")))]),n("selectBox",e._b({staticClass:"long-select-box",attrs:{limitOptions:12,"data-id":"picInterval-selectBox"},on:{selectChanged:e.picIntervalChanged}},"selectBox",e.picIntervalOptions,!1)),n("div",{directives:[{name:"show",rawName:"v-show",value:0===e.picIntervalOptions.currentVal,expression:"picIntervalOptions.currentVal === 0"}],staticClass:"flex custom-postpone-box",attrs:{"data-id":"custom-postpone-box"}},[n("simpleInput",{staticClass:"custom-postpone",attrs:{"data-id":"custom-postpone-simpleInput",targetValue:e.ftp.picInterval,isNumber:!0,min:2},on:{inputChanged:function(t){e.ftp.picInterval=t}}}),n("span",{staticClass:"text"},[e._v("("+e._s(e.$t("common_Seconds"))+")")])],1),n("p",{directives:[{name:"show",rawName:"v-show",value:0===e.picIntervalOptions.currentVal&&e.ftp.picInterval<6||e.picIntervalOptions.currentVal<6&&0!==e.picIntervalOptions.currentVal,expression:"picIntervalOptions.currentVal===0&&ftp.picInterval<6||picIntervalOptions.currentVal<6&&picIntervalOptions.currentVal!==0"}],staticClass:"note-content notes-text"},[e._v(" "+e._s(e.$t("ftp_image_interval_des"))+" ")])],1):e._e(),e.picPolicyOptions.options.length>1?n("div",{attrs:{"data-id":"picPolicy-div"}},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("ftp_overwirte_file_title")))]),n("selectBox",e._b({staticClass:"long-select-box",attrs:{"data-id":"picPolicy-selectBox"},on:{selectChanged:e.picPolicyChanged}},"selectBox",e.picPolicyOptions,!1)),n("p",{directives:[{name:"show",rawName:"v-show",value:e.picPolicyOptions.currentVal===e.EFtpCover.COVER,expression:"picPolicyOptions.currentVal===EFtpCover.COVER"}],staticClass:"note-content notes-text"},[e._v(e._s(e.$t("ftp_single_file_overwrite_description")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:e.picPolicyOptions.currentVal===e.EFtpCover.SWAP,expression:"picPolicyOptions.currentVal===EFtpCover.SWAP"}],staticClass:"note-content notes-text"},[e._v(e._s(e.$t("ftp_swap_file_overwrite_description")))]),n("simpleInput",e._b({directives:[{name:"show",rawName:"v-show",value:e.picPolicyOptions.currentVal!==e.EFtpCover.CLOSE,expression:"picPolicyOptions.currentVal!==EFtpCover.CLOSE"}],staticClass:"custom-input",attrs:{"data-id":"picPolicy-selectBox",targetValue:e.ftpData.picName,placeholder:e.$t("playbackDownload_downloadArea_fileName")},on:{inputChanged:e.inputChanged}},"simpleInput",e.inputData.picName,!1),[n("span",{staticClass:"custom-input-unit notes-text"},[e._v(".jpg")]),n("span",{staticClass:"necessary-clue"})])],1):e._e()]:e._e()]:[-1!==e.ftp.iwFilelen?n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("ftp_video_file_max_size")))]),n("selectBox",e._b({staticClass:"long-select-box",attrs:{"data-id":"max-size-selectBox"},on:{selectChanged:e.maxLengthChanged}},"selectBox",e.maxLengthOptions,!1)),n("simpleInput",{directives:[{name:"show",rawName:"v-show",value:-1===e.maxLengthOptions.currentVal,expression:"maxLengthOptions.currentVal===-1"}],staticClass:"custom-input input-video-size",attrs:{"data-id":"max-size-custom-simpleInput",targetValue:e.ftp.iwFilelen,labelText:"MB",max:1024,min:10,isNumber:!0},on:{inputChanged:function(t){e.ftp.iwFilelen=t}}})],1):e._e(),n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.nameOfPost))]),n("selectBox",e._b({staticClass:"long-select-box",attrs:{"data-id":"nameOfPost-selectBox"},on:{selectChanged:e.ftpPostponeChanged}},"selectBox",e.ftpPostponeOptions,!1)),n("div",{directives:[{name:"show",rawName:"v-show",value:0===e.ftpPostponeOptions.currentVal,expression:"ftpPostponeOptions.currentVal === 0"}],staticClass:"flex custom-postpone-box",attrs:{"data-id":"ftpPostpone-div"}},[n("simpleInput",{staticClass:"custom-postpone",attrs:{"data-id":"ftpPostpone-custom-simpleInput",targetValue:e.ftp.iInterval,isNumber:!0,min:2,max:30},on:{inputChanged:e.customPostponeChanged}}),n("span",{staticClass:"text"},[e._v("("+e._s(e.$t("common_Seconds"))+",2~30)")])],1)],1)]]:e._e(),n("div",{staticClass:"flex btn-wrap"},[n("button",{staticClass:"save-button ghost-button",attrs:{"reo-element":"","data-id":"testFtpHandler-button"},on:{click:function(t){return e.proxyTestOrSave("test")}}},[e._v(e._s(e.$t("FTP_TEST")))]),n("button",{staticClass:"save-button",attrs:{"reo-element":"","data-id":"save-button"},on:{click:function(t){return e.proxyTestOrSave("save")}}},[e._v(e._s(e.$t("common_dialog_save_button")))])])],2)]),e.hasSchedule?n("h5",{staticClass:"middle-title schedule-title",attrs:{"data-id":"schedule-title"}},[e._v(e._s(e.$t("common_view_schedule")))]):e._e(),n("scheduleDispense",e._b({ref:"scheduleDispense",on:{scheduleSwitchChange:e.scheduleSwitchChange,saveScheduleLegacy:e.saveScheduleLegacy,saveScheduleGroup:e.saveScheduleGroup,channelIndexChange:e.channelIndexChange,channelRetry:e.channelRetry,handleSaveAndCopyto:e.handleSaveAndCopyto}},"scheduleDispense",e.scheduleProps,!1))],1)]),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:function(t){return e.deviceInit()}}}):e._e()],1)},zc=[];(function(e){e[e["CLOSE"]=0]="CLOSE",e[e["COVER"]=1]="COVER",e[e["SWAP"]=2]="SWAP"})(qr||(qr={})),function(e){e[e["VIDEO"]=0]="VIDEO",e[e["PIC"]=1]="PIC",e[e["VIDEO_PIC"]=2]="VIDEO_PIC"}($r||($r={}));var Yc,qc=u["a"].extend({name:"ftp",components:{selectBox:Xe["a"],simpleInput:_,slideBtn:Ci["a"],retry:be["a"],scheduleDispense:ns["a"],remoteTitleBar:us["a"]},data:function(){return{showSettings:!1,isLoadingDataRetry:!1,device:{},ftpTaskEnable:!1,EFtpCover:qr,ECaptureMode:te["ECaptureMode"],ftpTask:{iTimeTable:[0]},EUploadType:$r,isPartCfgRetry:!1,isLoadingPartCfg:!0,channelIndex:-1,scheduleGroup:{},isScheduleSetting:!1,channels:[],ftpTaskStatus:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"ftpTaskStatus"},ftpEnable:!1,ftp:{cServer:"",cUsername:"",cPassword:"",iPwdMaxLen:0,cRemotedir:"",bAnonymous:!1,iPort:0,iwFilelen:0,bSupportTest:!1,iSupportStreamType:0,iStreamType:te["EFtpStreamType"].MAIN_VIDEO_PIC,iSupportInterval:0,iInterval:0,iAutoDir:te["EAutoDir"].CLOSE,intervalList:{iSize:0,iInterval:[]},iSupportTransportMode:0,eTransportMode:N["BC_FTP_TRANSPORT_MODE_E"].BC_FTP_TRANSPORT_MODE_AUTO,picIntervalList:{iSize:0,iInterval:[]},iPicPolicy:qr.CLOSE,iVideoPolicy:qr.CLOSE,onlyFtps:0,picInterval:-1,picName:"",videoName:"",picHeight:0,picWidth:0,picCaptureMode:te["ECaptureMode"].CLEAR,iProtocol:0},picWidth:{min:0,max:0},picHeight:{min:0,max:0},encTable:{profileNum:0,profile:[{iChnBits:0,mainstream:{eResolution:0,iWidth:0,iHigh:0,cResolutionName:"",lDefGop:0,lDefFrameRate:0,lDefBitRate:0,lFrameRate:[0],lBitRate:[0]},substream:{eResolution:0,iWidth:0,iHigh:0,lDefGop:0,cResolutionName:"",lDefFrameRate:0,lDefBitRate:0,lFrameRate:[0],lBitRate:[0]},extendstream:{eResolution:0,iWidth:0,iHigh:0,lDefGop:0,cResolutionName:"",lDefFrameRate:0,lDefBitRate:0,lFrameRate:[0],lBitRate:[0]}}]},picResolutionOptions:{currentVal:te["ECaptureMode"].CLEAR,options:[]},uploadTypeOptions:{currentVal:$r.VIDEO,options:[{value:$r.VIDEO,name:this.$t("common_video_file_type")},{value:$r.PIC,name:this.$t("common_image")},{value:$r.VIDEO_PIC,name:this.$t("common_video_and_image")}]},videoResolutionOptions:{currentVal:te["ECaptureMode"].CLEAR,options:[]},ftpStatus:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"ftpStatus"},ftpData:{server:"",port:"21",isAnonymous:!1,username:"",password:"",remoteDir:"",videoName:"",picName:"",picHeight:0,picWidth:0},inputData:{server:{title:this.$t("ftp_upload_settings_page_ftp_server"),regexp:"server",minLength:1,maxLength:255,triggerVerificationCount:0,checked:!0},port:{title:this.$t("common_Port")+" (1~65535)",regexp:"port",minLength:1,triggerVerificationCount:0,checked:!0},username:{title:this.$t("common_username_description"),minLength:1,maxLength:127,disallowConsecutiveSpaces:!0,triggerVerificationCount:0,checked:!0},password:{title:this.$t("common_password_password_description"),maxLength:127,autoRemoveFirstOrLastSpace:!1,disallowConsecutiveSpaces:!0,checked:!0,isPassword:!0,hideEye:!0,triggerVerificationCount:0},remoteDir:{flag:"remoteDir",checked:!0,maxLength:255,disallowConsecutiveSpaces:!0,triggerVerificationCount:0},videoName:{flag:"videoName",checked:!0,minLength:1,maxLength:123,regexp:"fileName",disallowConsecutiveSpaces:!0,triggerVerificationCount:0},picName:{flag:"picName",checked:!0,minLength:1,maxLength:123,regexp:"fileName",disallowConsecutiveSpaces:!0,triggerVerificationCount:0}},autoDirOptions:{currentVal:te["EAutoDir"].CLOSE,options:[{value:te["EAutoDir"].CLOSE,name:this.$t("common_view_off_full")},{value:te["EAutoDir"].YMD,name:"YYYY-MM-DD"}]},maxLengthOptions:{currentVal:100,options:[{value:10,name:"10"},{value:50,name:"50"},{value:100,name:"100"},{value:200,name:"200"},{value:400,name:"400"},{value:600,name:"600"},{value:800,name:"800"},{value:1024,name:"1024"},{value:-1,name:this.$t("common_view_custom")}]},videoPolicyOptions:{currentVal:qr.CLOSE,options:[]},picPolicyOptions:{currentVal:qr.CLOSE,options:[]},picIntervalOptions:{currentVal:10,options:[]},ftpPostponeOptions:{currentVal:10,options:[]},fileTypeOptions:{currentVal:0,options:[]},transportModeOptions:{currentVal:N["BC_FTP_TRANSPORT_MODE_E"].BC_FTP_TRANSPORT_MODE_AUTO,options:[{value:N["BC_FTP_TRANSPORT_MODE_E"].BC_FTP_TRANSPORT_MODE_AUTO,name:this.$t("common_view_auto")},{value:N["BC_FTP_TRANSPORT_MODE_E"].BC_FTP_TRANSPORT_MODE_PORT,name:this.$t("common_Port")},{value:N["BC_FTP_TRANSPORT_MODE_E"].BC_FTP_TRANSPORT_MODE_PASV,name:this.$t("common_PASV")}]},supportAlarmOutMainSwitch:!1,supportFtpAutoDir:!1,supportFtpTest:!1,supportFtpPic:!1,supportFtpSubStream:!1,supportFtpExtensionStream:!1,supportFtpTask:!1,supportFtpTaskEnable:!1,supportFtpEnable:!1,supportFTPPictureSingleOverwritePolicy:!1,supportFTPVideoSingleOverwritePolicy:!1,supportFTPPictureSwapOverwritePolicy:!1,supportFTPVideoSwapOverwritePolicy:!1,supportFtpsEncrypt:!1,supportFTPPictureResolutionConfig:!1,scheduleCate:te["EScheduleCate"].NONE,supportFtpDirYM:!1,supportFtpPicResoCustom:!1,supportExtenStreamCfg:!1}},computed:{isConfigContextLoading:function(){return this.$store.getters.configContextLoading},handle:function(){return this.$store.getters.deviceHandle},isNewFtpProtocol:function(){return!!this.ftp.iProtocol},nameOfPost:function(){return 3===this.fileTypeOptions.currentVal?this.$t("common_Interval"):this.$t("ftp_upload_settings_page_upload_postpone")},serverData:function(){return{server:this.inputData.server,port:this.inputData.port}},userData:function(){return this.ftpData.isAnonymous?{}:{username:this.inputData.username,password:this.inputData.password}},formChecked:function(){for(var e in this.inputData)if((!this.ftpData.isAnonymous||"username"!==e&&"password"!==e)&&("videoName"!==e||this.videoPolicyOptions.currentVal!==qr.CLOSE)&&("picName"!==e||this.picPolicyOptions.currentVal!==qr.CLOSE)&&!this.inputData[e]["checked"])return!1;return!0},channel:function(){return this.channels[this.channelIndex]},isScheduleMulti:function(){return this.scheduleCate===te["EScheduleCate"].MULTI},hasSchedule:function(){return this.scheduleCate!==te["EScheduleCate"].NONE},supportScheduleEnable:function(){return this.supportAlarmOutMainSwitch||this.supportFtpTaskEnable&&!this.supportFtpEnable},scheduleProps:function(){var e={allowChannelSelect:this.$store.getters.isNvr,channels:this.channels,isPartCfgRetry:this.isPartCfgRetry,isLoadingPartCfg:this.isLoadingPartCfg,isScheduleSetting:this.isScheduleSetting,supportScheduleEnable:this.supportScheduleEnable,scheduleSwitchDes:this.$t("common_view_schedule"),scheduleCate:this.scheduleCate,scheduleStatus:Object(l["g"])(this.ftpTaskStatus),scheduleType:"ftp"};return this.isScheduleMulti?Object(ct["a"])(Object(ct["a"])({},e),{},{modesPool:this.scheduleGroup}):Object(ct["a"])(Object(ct["a"])({},e),{},{motionRect:this.ftpTask.iTimeTable,timingSupport:!0})},selectedChannels:function(){return this.$store.getters.selectedChannels}},watch:{handle:{handler:function(){this.deviceInit()},immediate:!0}},methods:{deviceInit:function(){var e=this;Li["a"].pageInitEffect(this.$store,this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,B["a"].getDeviceWithHandle(e.handle);case 2:return e.device=t.sent,t.next=5,Promise.all([e.device.getChannels(),e.getSupport()]);case 5:return n=t.sent,i=Object(T["a"])(n,1),e.channels=i[0],t.next=10,e.getFtp();case 10:if(!e.supportAlarmOutMainSwitch&&!e.supportFtpEnable){t.next=13;break}return t.next=13,e.getFtpEnable();case 13:case"end":return t.stop()}}),t)}))))},channelInit:function(){var e=this;this.channel&&Li["a"].partInitEffect(this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=[],!e.supportFtpTask){t.next=7;break}return t.next=4,Li["a"].getScheduleCateFunc(e.channel.supportFtpMultiTask,e.getScheduleGroup,e.getFtpTask);case 4:i=t.sent,n.push(i[0]),e.scheduleCate=i[1];case 7:return e.isScheduleMulti&&n.push(e.getSupportAiAnimal()),e.supportScheduleEnable&&n.push(e.getFtpTaskEnable()),e.supportFTPPictureResolutionConfig&&n.push(e.getEncTable()),t.next=12,Promise.all(n);case 12:return t.next=14,e.channel.supportExtenStreamCfg();case 14:e.supportExtenStreamCfg=t.sent;case 15:case"end":return t.stop()}}),t)}))))},getSupportAiAnimal:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=!1,t.prev=1,t.next=4,e.channel.supportAiAnimal();case 4:n=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),C["a"].error("ftp.vue > getSupportAiAnimal: ",t.t0);case 10:e.$store.commit("MODIFY_SUPPORT_AI_ANIMAL",n);case 11:case"end":return t.stop()}}),t,null,[[1,7]])})))()},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.device.supportAlarmOutMainSwitch(),e.device.supportFtpTaskEnable(),e.device.supportFtpEnable(),e.device.supportFtpTask(),e.device.supportFTPTest(),e.device.supportFTPPicture(),e.device.supportFTPSubStream(),e.device.supportFTPExtensionStream(),e.device.supportFTPAutoDir(),e.device.supportFTPPictureSingleOverwritePolicy(),e.device.supportFTPVideoSingleOverwritePolicy(),e.device.supportFTPPictureSwapOverwritePolicy(),e.device.supportFTPVideoSwapOverwritePolicy(),e.device.supportFTPSEncrypt(),e.device.supportFTPPictureResolutionConfig(),e.device.supportFtpDirYM(),e.device.supportFtpPicResoCustom()]);case 3:n=t.sent,i=Object(T["a"])(n,17),e.supportAlarmOutMainSwitch=i[0],e.supportFtpTaskEnable=i[1],e.supportFtpEnable=i[2],e.supportFtpTask=i[3],e.supportFtpTest=i[4],e.supportFtpPic=i[5],e.supportFtpSubStream=i[6],e.supportFtpExtensionStream=i[7],e.supportFtpAutoDir=i[8],e.supportFTPPictureSingleOverwritePolicy=i[9],e.supportFTPVideoSingleOverwritePolicy=i[10],e.supportFTPPictureSwapOverwritePolicy=i[11],e.supportFTPVideoSwapOverwritePolicy=i[12],e.supportFtpsEncrypt=i[13],e.supportFTPPictureResolutionConfig=i[14],e.supportFtpDirYM=i[15],e.supportFtpPicResoCustom=i[16],t.next=29;break;case 25:throw t.prev=25,t.t0=t["catch"](0),C["a"].error("ftp.vue > getSupport: ",t.t0),new Error;case 29:case"end":return t.stop()}}),t,null,[[0,25]])})))()},getEncTable:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.getEncProfileTable();case 3:for(e.encTable=t.sent,n=!1,i=0;i getEncTable > getEncProfileTable: ",t.t0),new Error;case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))()},updateResolutionOptions:function(){var e={value:te["ECaptureMode"].CLEAR,name:this.$t("common_clarity_stream_clear")},t={value:te["ECaptureMode"].FLUENT,name:this.$t("common_clarity_stream_fluent")},n={value:te["ECaptureMode"].BALANCE,name:this.$t("common_clarity_stream_balanced")};this.videoResolutionOptions.options=[e],this.picResolutionOptions.options=[e],this.supportFtpSubStream&&(this.videoResolutionOptions.options.push(t),this.picResolutionOptions.options.push(t)),this.supportFtpExtensionStream&&(this.videoResolutionOptions.options.push(n),this.picResolutionOptions.options.push(n)),this.supportFtpPicResoCustom&&this.picResolutionOptions.options.push({value:te["ECaptureMode"].CUSTOM,name:this.$t("common_view_custom")})},updateAutoDirOptions:function(){this.supportFtpDirYM&&this.autoDirOptions.options.push({value:te["EAutoDir"].YM,name:"YYYY-MM"})},updatePolicyOptions:function(){var e={value:qr.CLOSE,name:this.$t("ftp_not_overwrite_title")},t={value:qr.COVER,name:this.$t("ftp_single_file_overwrite_title")},n={value:qr.SWAP,name:this.$t("ftp_swap_file_overwrite_title")};this.picPolicyOptions.options=[e],this.supportFTPPictureSingleOverwritePolicy&&this.picPolicyOptions.options.push(t),this.supportFTPPictureSwapOverwritePolicy&&this.picPolicyOptions.options.push(n),this.videoPolicyOptions.options=[e],this.supportFTPVideoSingleOverwritePolicy&&this.videoPolicyOptions.options.push(t),this.supportFTPVideoSwapOverwritePolicy&&this.videoPolicyOptions.options.push(n)},getFtpTaskEnable:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getFtpTaskEnable(!e.isScheduleMulti);case 3:e.ftpTaskEnable=t.sent,e.ftpTaskStatus.isOpen=e.ftpTaskEnable,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("ftp.vue > getFtpTaskEnable: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setFtpTaskEnable:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setFtpTaskEnable(n.ftpTaskEnable,!n.isScheduleMulti);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.ftpTaskStatus.isOpen=n.ftpTaskEnable=e),C["a"].error("ftp.vue > setFtpTaskEnable: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},scheduleSwitchChange:function(e){var t=this,n=this.ftpTaskStatus;Li["a"].changingEffect(n,(function(){t.ftpTaskEnable=n.isOpen=e}),this.setFtpTaskEnable,this.ftpTaskEnable)},getFtpTask:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getFtpTask();case 3:e.ftpTask=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("ftp.vue > getFtpTask: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setFtpTask:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setFtpTask(n.ftpTask);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.ftpTask=e),C["a"].error("ftp.vue > setFtpTask cfg: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},saveScheduleLegacy:function(e){var t=Object(l["g"])(this.ftpTask);this.ftpTask.iTimeTable=e,Li["a"].saveScheduleEffect(this.$store,this.$data,t,this.setFtpTask)},getScheduleGroup:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getFtpTaskV20();case 3:e.scheduleGroup=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("ftp.vue > getScheduleGroup > getFtpTaskV20: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setScheduleGroup:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setFtpTaskV20(n.scheduleGroup);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.scheduleGroup=e),C["a"].error("ftp.vue > setScheduleGroup > setFtpTaskV20: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},saveScheduleGroup:function(e){var t=Object(l["g"])(this.scheduleGroup);this.scheduleGroup=e,Li["a"].saveScheduleEffect(this.$store,this.$data,t,this.setScheduleGroup)},channelIndexChange:function(e){this.channelIndex=e,this.channelInit()},channelRetry:function(){this.channelInit()},getFtpEnable:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getFtpEnable();case 3:n=t.sent,e.ftpEnable=e.supportAlarmOutMainSwitch?n.isMainSwitchOn:n.hasEnabledChannel,e.ftpStatus.isOpen=e.ftpEnable,t.next=13;break;case 9:throw t.prev=9,t.t0=t["catch"](0),C["a"].error("ftp.vue > getFtpEnable: ",t.t0),new Error;case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))()},setFtpEnable:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setFtpEnable(n.ftpEnable,n.supportAlarmOutMainSwitch);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.ftpStatus.isOpen=n.ftpEnable=e),C["a"].error("ftp.vue > setFtpEnable: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},preFtpStatusSwitch:function(e){var t=this;if(this.supportFtpsEncrypt){var n=this.ftpStatus.isOpen;n||(e.stopPropagation(),this.$store.commit("MODIFY_DIALOG_OPTIONS",{type:"message",icon:"icon-client_warning",message:this.$t("common_ftp_open_tips"),defaultBtnValue:0,buttons:[{title:this.$t("common_dialog_cancel_button"),value:0,class:"ghost-button",key:27},{title:this.$t("common_dialog_ok_button"),value:1,key:13}]}),this.$store.commit("SET_APP_DIALOG_CALLBACK",(function(e){e&&t.ftpStatusSwitch(!n)})),this.$store.commit("SET_DIALOGID","messageDialog"))}},ftpStatusSwitch:function(e){var t=this,n=this.ftpStatus;Li["a"].changingEffect(n,(function(){t.ftpEnable=n.isOpen=e}),this.setFtpEnable,this.ftpEnable)},getFtp:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getFtpCfg();case 3:e.ftp=t.sent,e.ftpUpdate(),t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("ftp.vue > getFtp > getFtpCfg: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setFtp:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setFtpCfg(n.ftp);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.ftp=e,n.ftpUpdate()),C["a"].error("ftp.vue > setFtp > setFtpCfg: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},testFtp:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.setFtpTest(e.getFtpWidthFtpData());case 3:t.next=13;break;case 5:throw t.prev=5,t.t0=t["catch"](0),n={},Object(es["a"])(n,R["EFtpTestError"].undefined,"".concat(R["EFtpTestError"].undefined,": ")+e.$t("ftp_test_error_450")),Object(es["a"])(n,R["EFtpTestError"].login,"".concat(R["EFtpTestError"].login,": ")+e.$t("ftp_test_error_451")),Object(es["a"])(n,R["EFtpTestError"].create,"".concat(R["EFtpTestError"].create,": ")+e.$t("ftp_test_error_452")),Object(es["a"])(n,R["EFtpTestError"].upload,"".concat(R["EFtpTestError"].upload,": ")+e.$t("ftp_test_error_453")),Object(es["a"])(n,R["EFtpTestError"].connect,"".concat(R["EFtpTestError"].connect,": ")+e.$t("ftp_test_error_454")),Object(es["a"])(n,R["EFtpTestError"].noFtps,"".concat(R["EFtpTestError"].noFtps,": ")+e.$t("net_rsp_ftp_tls_only_err")),Object(es["a"])(n,R["EFtpTestError"].delFailed,"".concat(R["EFtpTestError"].delFailed,": ")+e.$t("net_rsp_ftp_del_err")),Object(es["a"])(n,R["EFtpTestError"].renameFailed,"".concat(R["EFtpTestError"].renameFailed,": ")+e.$t("net_rsp_ftp_rename_err")),Object(es["a"])(n,R["EFtpTestError"].reuploadFailed,"".concat(R["EFtpTestError"].reuploadFailed,": ")+e.$t("net_rsp_ftp_reupload_err")),i=n,a=i[t.t0],void 0===a&&(a="[object Number]"===toString.call(t.t0)?"".concat(t.t0,": ")+e.$t("ftp_test_error_450"):i[R["EFtpTestError"].undefined]),r={type:"message",message:a,defaultBtnValue:1,buttons:[{title:e.$t("common_dialog_ok_button"),value:1,key:13}]},S["a"].openMessageDialog(e,r,(function(){})),t.t0;case 13:case"end":return t.stop()}}),t,null,[[0,5]])})))()},fileTypeChanged:function(e){if(this.$set(this.fileTypeOptions,"currentVal",e),this.ftpPostponeListUpdate(),3!==e){var t=this.ftpPostponeOptions.currentVal;this.ftpPostponeOptions.currentVal=0===t?this.ftpPostponeOptions.options[0].value:t}},getFtpWidthFtpData:function(){var e=Object(l["g"])(this.ftp);if(this.isNewFtpProtocol)if(e.iInterval=this.ftpPostponeOptions.currentVal,0!==this.picIntervalOptions.currentVal&&(e.picInterval=this.picIntervalOptions.currentVal),this.uploadTypeOptions.currentVal!==$r.PIC){var t=this.uploadTypeOptions.currentVal===$r.VIDEO_PIC;switch(this.videoResolutionOptions.currentVal){case te["ECaptureMode"].CLEAR:e.iStreamType=t?te["EFtpStreamType"].MAIN_VIDEO_PIC:te["EFtpStreamType"].MAIN_VIDEO;break;case te["ECaptureMode"].FLUENT:e.iStreamType=t?te["EFtpStreamType"].SUB_VIDEO_PIC:te["EFtpStreamType"].SUB_VIDEO;break;case te["ECaptureMode"].BALANCE:default:e.iStreamType=t?te["EFtpStreamType"].EXT_VIDEO_PIC:te["EFtpStreamType"].EXT_VIDEO;break}}else e.iStreamType=te["EFtpStreamType"].PIC;else e.iStreamType=this.fileTypeOptions.currentVal,0!==this.ftpPostponeOptions.currentVal&&(e.iInterval=this.ftpPostponeOptions.currentVal);return e.eTransportMode=this.transportModeOptions.currentVal,e.cServer=this.ftpData.server,e.iPort=parseInt(this.ftpData.port,10),e.bAnonymous=this.ftpData.isAnonymous,this.ftpData.isAnonymous||(e.cUsername=this.ftpData.username,e.cPassword=w["a"].transform(this.ftpData.password)),e.iAutoDir=this.autoDirOptions.currentVal,e.iPicPolicy=this.picPolicyOptions.currentVal,e.iVideoPolicy=this.videoPolicyOptions.currentVal,-1!==this.maxLengthOptions.currentVal&&-1!==e.iwFilelen&&(e.iwFilelen=this.maxLengthOptions.currentVal),e.picCaptureMode=this.picResolutionOptions.currentVal,this.videoPolicyOptions.currentVal!==qr.CLOSE&&(e.videoName=this.ftpData.videoName),this.picPolicyOptions.currentVal!==qr.CLOSE&&(e.picName=this.ftpData.picName),e.cRemotedir=this.ftpData.remoteDir,e},proxyTestOrSave:function(e){for(var t=this,n=0,i=Object.keys(this.inputData);n testFtpHandler > testFtp: ",t.t0);case 12:e.$store.commit("HANDLE_LOADING",!1);case 13:case"end":return t.stop()}}),t,null,[[3,9]])})))()},ftpUpdate:function(){var e=this;if(this.updateAutoDirOptions(),this.isNewFtpProtocol){switch(this.updateResolutionOptions(),this.updatePolicyOptions(),this.picIntervalOptionsUpdate(),this.ftp.iStreamType){case te["EFtpStreamType"].MAIN_VIDEO_PIC:this.uploadTypeOptions.currentVal=$r.VIDEO_PIC,this.videoResolutionOptions.currentVal=te["ECaptureMode"].CLEAR;break;case te["EFtpStreamType"].SUB_VIDEO_PIC:this.uploadTypeOptions.currentVal=$r.VIDEO_PIC,this.videoResolutionOptions.currentVal=te["ECaptureMode"].FLUENT;break;case te["EFtpStreamType"].EXT_VIDEO_PIC:this.uploadTypeOptions.currentVal=$r.VIDEO_PIC,this.videoResolutionOptions.currentVal=te["ECaptureMode"].BALANCE;break;case te["EFtpStreamType"].PIC:this.uploadTypeOptions.currentVal=$r.PIC;break;case te["EFtpStreamType"].MAIN_VIDEO:this.uploadTypeOptions.currentVal=$r.VIDEO,this.videoResolutionOptions.currentVal=te["ECaptureMode"].CLEAR;break;case te["EFtpStreamType"].SUB_VIDEO:this.uploadTypeOptions.currentVal=$r.VIDEO,this.videoResolutionOptions.currentVal=te["ECaptureMode"].FLUENT;break;case te["EFtpStreamType"].EXT_VIDEO:default:this.uploadTypeOptions.currentVal=$r.VIDEO,this.videoResolutionOptions.currentVal=te["ECaptureMode"].BALANCE;break}this.ftpPostponeOptions.currentVal=this.ftp.iInterval,this.picIntervalOptions.options.some((function(t){return t.value===e.ftp.picInterval}))?this.picIntervalOptions.currentVal=this.ftp.picInterval:this.picIntervalOptions.currentVal=0}else this.fileTypeOptionsUpdate();this.ftpPostponeListUpdate(),this.transportModeOptions.currentVal=this.ftp.eTransportMode,this.ftpData.server=this.ftp.cServer,this.ftpData.port=this.ftp.iPort.toString(),this.ftpData.isAnonymous=this.ftp.bAnonymous,this.ftpData.username=this.ftp.cUsername,this.ftpData.password=w["a"].recover2Str(this.ftp.cPassword),this.ftpData.remoteDir=this.ftp.cRemotedir,this.ftpData.videoName=this.ftp.videoName,this.ftpData.picName=this.ftp.picName,-1!==this.ftp.iwFilelen&&(this.maxLengthOptions.options.some((function(t){return t.value===e.ftp.iwFilelen}))?this.maxLengthOptions.currentVal=this.ftp.iwFilelen:this.maxLengthOptions.currentVal=-1),this.autoDirOptions.currentVal=this.ftp.iAutoDir,this.picPolicyOptions.currentVal=this.ftp.iPicPolicy,this.videoPolicyOptions.currentVal=this.ftp.iVideoPolicy,this.picResolutionOptions.currentVal=this.ftp.picCaptureMode,this.inputData.password.maxLength=this.ftp.iPwdMaxLen},fileTypeOptionsUpdate:function(){this.fileTypeOptions.options=[],this.supportFtpPic?(this.fileTypeOptions.options.push({name:this.$t("remoteConfig_ftp_clearVideoPicture"),value:0}),this.ftp.iSupportStreamType&&(this.supportFtpSubStream&&this.fileTypeOptions.options.push({name:this.$t("remoteConfig_ftp_fluentVideoPicture"),value:1}),this.supportFtpExtensionStream&&this.fileTypeOptions.options.push({name:this.$t("remoteConfig_ftp_balancedVideoPicture"),value:2})),this.fileTypeOptions.options.push({name:this.$t("remoteConfig_ftp_onlyPicture"),value:3})):(this.fileTypeOptions.options.push({name:this.$t("remoteConfig_ftp_clearVideo"),value:4}),this.ftp.iSupportStreamType&&(this.supportFtpSubStream&&this.fileTypeOptions.options.push({name:this.$t("remoteConfig_ftp_fluentVideo"),value:5}),this.supportFtpExtensionStream&&this.fileTypeOptions.options.push({name:this.$t("remoteConfig_ftp_balancedVideo"),value:6}))),this.fileTypeOptions.currentVal=this.ftp.iStreamType},ftpPostponeListUpdate:function(){if(this.ftpPostponeOptions.options=[],this.ftp.iSupportStreamType){this.ftpPostponeOptions.currentVal=0;for(var e=0;e saveSelectedChannels > ftp schedule copyto: ",a.t1),new Error;case 41:case"end":return a.stop()}}),a,null,[[3,36],[5,27,30,33]])})))()},getChannelScheduleStatus:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(n.prev=0,!t.isScheduleMulti){n.next=7;break}return n.next=4,e.config.getFtpTaskV20();case 4:i=n.sent,n.next=10;break;case 7:return n.next=9,e.config.getFtpTask();case 9:i=n.sent;case 10:return n.abrupt("return",i);case 14:throw n.prev=14,n.t0=n["catch"](0),C["a"].error("ftp.vue > getChannelScheduleStatus > get ftp schedule: ",n.t0),new Error;case 18:case"end":return n.stop()}}),n,null,[[0,14]])})))()}}}),$c=qc,Kc=(n("eb4f"),Object(g["a"])($c,Wc,zc,!1,null,"fe4c1396",null)),Zc=Kc.exports,Jc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"config-context-inner"},[n("remoteTitleBar",{attrs:{title:e.$t("remote_config_page_notification_section_alarm_sound_buzzer_item_label")}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"buzzer-alarm config-scroll-box"},[e.supportAlarmOutMainSwitch||e.supportBuzzerEnable?n("div",{staticClass:"enable-config"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("ENABLE_BUZZER")))]),n("slideBtn",e._b({on:{stateChange:e.buzzerAlarmStatusSwitch}},"slideBtn",e.buzzerAlarmStatus,!1))],1):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.supportBuzzerEnable||e.buzzerAlarmStatus.isOpen,expression:"!supportBuzzerEnable || buzzerAlarmStatus.isOpen"}]},[e.hasSchedule?n("h5",{staticClass:"middle-title schedule-title"},[e._v(e._s(e.$t("common_view_schedule")))]):e._e(),n("scheduleDispense",e._b({ref:"scheduleDispense",on:{scheduleSwitchChange:e.scheduleSwitchChange,saveScheduleLegacy:e.saveScheduleLegacy,saveScheduleGroup:e.saveScheduleGroup,channelIndexChange:e.channelIndexChange,channelRetry:e.channelRetry,handleSaveAndCopyto:e.handleSaveAndCopyto}},"scheduleDispense",e.scheduleProps,!1)),e.supportAbnormalAlert?n("div",{staticClass:"toogle-controller",class:{"show-detail":e.showSettings}},[n("div",{staticClass:"toogle-controller-title",on:{click:function(t){e.showSettings=!e.showSettings}}},[n("span",[e._v(e._s(e.$t("BUZZRE_FOR_EXPECTIONS")))]),n("span",{class:[e.showSettings?"icon-client_arrow_up":"icon-client_arrow_down"]})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showSettings,expression:"showSettings"}],staticClass:"item-tabs flex-column-container"},[n("div",{staticClass:"flex-item"},[n("div",{staticClass:"text"},[e._v(e._s(e.$t("STR_EXCEPT_HDFULL")))]),n("slideBtn",e._b({on:{stateChange:e.slideSwitch}},"slideBtn",e.diskFullAlert,!1))],1),n("div",{staticClass:"flex-item"},[n("div",{staticClass:"text"},[e._v(e._s(e.$t("STR_EXCEPT_HD")))]),n("slideBtn",e._b({on:{stateChange:e.slideSwitch}},"slideBtn",e.diskErrorAlert,!1))],1),n("div",{staticClass:"flex-item"},[n("div",{staticClass:"text"},[e._v(e._s(e.$t("STR_EXCEPT_IP")))]),n("slideBtn",e._b({on:{stateChange:e.slideSwitch}},"slideBtn",e.ipConflictAlert,!1))],1),n("div",{staticClass:"flex-item"},[n("div",{staticClass:"text"},[e._v(e._s(e.$t("STR_EXCEPT_NET")))]),n("slideBtn",e._b({on:{stateChange:e.slideSwitch}},"slideBtn",e.nvrDisconnectAlert,!1))],1)])]):e._e()],1)]),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:function(t){return e.deviceInit()}}}):e._e()],1)},Qc=[],Xc=u["a"].extend({components:{slideBtn:Ci["a"],retry:be["a"],scheduleDispense:ns["a"],remoteTitleBar:us["a"]},data:function(){return{supportAbnormalAlert:!1,supportAlarmOutMainSwitch:!1,diskFullAlert:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"diskFullAlert"},diskErrorAlert:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"diskErrorAlert"},ipConflictAlert:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"ipConflictAlert"},nvrDisconnectAlert:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"nvrDisconnectAlert"},showSettings:!1,isLoadingDataRetry:!1,buzzerAlarmEnable:!1,buzzerAlarm:{diskErrorAlert:!1,diskFullAlert:!1,ipConflictAlert:!1,nvrDisconnectAlert:!1},buzzerAlarmStatus:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"buzzerAlarmStatus"},buzzerAlarmTaskEnable:!1,buzzerAlarmTask:{iTimeTable:[]},buzzerAlarmTaskStatus:{isOpen:!1,isSetting:!1,warnClue:!1},isPartCfgRetry:!1,isLoadingPartCfg:!0,channelIndex:-1,isScheduleSetting:!1,scheduleGroup:{},device:{},channels:[],supportBuzzerTask:!1,supportBuzzerEnable:!1,supportBuzzerTaskEnable:!1,scheduleCate:te["EScheduleCate"].NONE}},computed:{isConfigContextLoading:function(){return this.$store.getters.configContextLoading},handle:function(){return this.$store.getters.deviceHandle},channel:function(){return this.channels[this.channelIndex]},isScheduleMulti:function(){return this.scheduleCate===te["EScheduleCate"].MULTI},hasSchedule:function(){return this.scheduleCate!==te["EScheduleCate"].NONE},supportScheduleEnable:function(){return this.supportAlarmOutMainSwitch||this.supportBuzzerTaskEnable&&!this.supportBuzzerEnable},scheduleProps:function(){var e={allowChannelSelect:this.$store.getters.isNvr,channels:this.channels,isPartCfgRetry:this.isPartCfgRetry,isLoadingPartCfg:this.isLoadingPartCfg,isScheduleSetting:this.isScheduleSetting,scheduleCate:this.scheduleCate,supportScheduleEnable:this.supportScheduleEnable,scheduleSwitchDes:this.$t("common_view_schedule"),scheduleStatus:Object(l["g"])(this.buzzerAlarmTaskStatus),scheduleType:"buzzerAlarm"};return this.isScheduleMulti?Object(ct["a"])(Object(ct["a"])({},e),{},{videoLossDes:this.$t("STR_PLAN_BUZZER_VIDEO_LOSS"),modesPool:this.scheduleGroup}):Object(ct["a"])(Object(ct["a"])({},e),{},{motionRect:this.buzzerAlarmTask.iTimeTable,timingSupport:!1})},selectedChannels:function(){return this.$store.getters.selectedChannels}},watch:{handle:{handler:function(e){this.deviceInit()},immediate:!0}},methods:{deviceInit:function(){var e=this;Li["a"].pageInitEffect(this.$store,this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,B["a"].getDeviceWithHandle(e.handle);case 2:return e.device=t.sent,t.next=5,Promise.all([e.device.getChannels(),e.getSupport(),e.getBuzzerAlarm()]);case 5:if(n=t.sent,i=Object(T["a"])(n,1),e.channels=i[0],!e.supportAlarmOutMainSwitch&&!e.supportBuzzerEnable){t.next=11;break}return t.next=11,e.getBuzzerAlarmEnable();case 11:case"end":return t.stop()}}),t)}))))},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.device.supportAlarmOutMainSwitch(),e.device.supportBuzzerTask(),e.device.supportBuzzerEnable(),e.device.supportBuzzerTaskEnable(),e.device.supportAbnormalAlert()]);case 3:n=t.sent,i=Object(T["a"])(n,5),e.supportAlarmOutMainSwitch=i[0],e.supportBuzzerTask=i[1],e.supportBuzzerEnable=i[2],e.supportBuzzerTaskEnable=i[3],e.supportAbnormalAlert=i[4],t.next=17;break;case 13:throw t.prev=13,t.t0=t["catch"](0),C["a"].error("buzzerAlarm.vue > getSupport: ",t.t0),new Error;case 17:case"end":return t.stop()}}),t,null,[[0,13]])})))()},channelInit:function(){var e=this;this.channel&&Li["a"].partInitEffect(this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=[],!e.supportBuzzerTask){t.next=7;break}return t.next=4,Li["a"].getScheduleCateFunc(e.channel.supportBuzzerMultiTask,e.getScheduleGroup,e.getBuzzerAlarmTask);case 4:i=t.sent,n.push(i[0]),e.scheduleCate=i[1];case 7:return e.isScheduleMulti&&n.push(e.getSupportAiAnimal()),e.supportScheduleEnable&&n.push(e.getBuzzerAlarmTaskEnable()),t.next=11,Promise.all(n);case 11:case"end":return t.stop()}}),t)}))))},getSupportAiAnimal:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=!1,t.prev=1,t.next=4,e.channel.supportAiAnimal();case 4:n=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),C["a"].error("buzzerAlarm.vue > getSupportAiAnimal: ",t.t0);case 10:e.$store.commit("MODIFY_SUPPORT_AI_ANIMAL",n);case 11:case"end":return t.stop()}}),t,null,[[1,7]])})))()},getBuzzerAlarmEnable:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getBuzzerEnable(!e.isScheduleMulti);case 3:n=t.sent,e.buzzerAlarmEnable=e.supportAlarmOutMainSwitch?n.isMainSwitchOn:n.hasEnabledChannel,e.buzzerAlarmStatus.isOpen=e.buzzerAlarmEnable,t.next=13;break;case 9:throw t.prev=9,t.t0=t["catch"](0),C["a"].error("buzzerAlarm.vue > getBuzzerAlarmEnable: ",t.t0),new Error;case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))()},setBuzzerAlarmEnable:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setBuzzerEnable(n.buzzerAlarmEnable,n.supportAlarmOutMainSwitch,!n.isScheduleMulti);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.buzzerAlarmStatus.isOpen=n.buzzerAlarmEnable=e),C["a"].error("buzzerAlarm.vue > setBuzzerAlarmEnable: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},buzzerAlarmStatusSwitch:function(e){var t=this,n=this.buzzerAlarmStatus;Li["a"].changingEffect(n,(function(){t.buzzerAlarmEnable=n.isOpen=e}),this.setBuzzerAlarmEnable,this.buzzerAlarmEnable)},getBuzzerAlarm:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getBuzzerAlarm();case 3:e.buzzerAlarm=t.sent,e.buzzerAlarmUpdate(),t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("buzzerAlarm.vue > getBuzzerAlarm: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setBuzzerAlarm:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setBuzzerAlarm(n.buzzerAlarm);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.buzzerAlarm=e,n.buzzerAlarmUpdate()),C["a"].error("buzzerAlarm.vue > setBuzzerAlarm cfg: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},buzzerAlarmUpdate:function(){this.diskErrorAlert.isOpen=this.buzzerAlarm.diskErrorAlert,this.diskFullAlert.isOpen=this.buzzerAlarm.diskFullAlert,this.ipConflictAlert.isOpen=this.buzzerAlarm.ipConflictAlert,this.nvrDisconnectAlert.isOpen=this.buzzerAlarm.nvrDisconnectAlert},getBuzzerAlarmTaskEnable:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getBuzzerAlarmTaskEnable(!e.isScheduleMulti);case 3:e.buzzerAlarmTaskEnable=t.sent,e.buzzerAlarmTaskStatus.isOpen=e.buzzerAlarmTaskEnable,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("buzzerAlarm.vue > getBuzzerAlarmTaskEnable: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setBuzzerAlarmTaskEnable:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setBuzzerAlarmTaskEnable(n.buzzerAlarmTaskEnable,!n.isScheduleMulti);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.buzzerAlarmTaskStatus.isOpen=n.buzzerAlarmTaskEnable=e),C["a"].error("buzzerAlarm.vue > setBuzzerAlarmTaskEnable: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},scheduleSwitchChange:function(e){var t=this,n=this.buzzerAlarmTaskStatus;Li["a"].changingEffect(n,(function(){t.buzzerAlarmTaskEnable=n.isOpen=e}),this.setBuzzerAlarmTaskEnable,this.buzzerAlarmTaskEnable)},getBuzzerAlarmTask:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getBuzzerAlarmTask();case 3:e.buzzerAlarmTask=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("buzzerAlarm.vue > getBuzzerAlarmTask: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setBuzzerAlarmTask:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setBuzzerAlarmTask(n.buzzerAlarmTask);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.buzzerAlarmTask=e),C["a"].error("buzzerAlarm.vue > setBuzzerAlarmTask cfg: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},slideSwitch:function(e,t){var n=this,i=this.$data[t];Li["a"].changingEffect(i,(function(){n.buzzerAlarm[t]=i.isOpen=e}),this.setBuzzerAlarm,Object(l["g"])(this.buzzerAlarm))},saveScheduleLegacy:function(e){var t=Object(l["g"])(this.buzzerAlarmTask);this.buzzerAlarmTask.iTimeTable=e,Li["a"].saveScheduleEffect(this.$store,this.$data,t,this.setBuzzerAlarmTask)},getScheduleGroup:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getBuzzerAlarmTaskV20();case 3:e.scheduleGroup=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("buzzerAlarm.vue > getScheduleGroup > getBuzzerAlarmTaskV20: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setScheduleGroup:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setBuzzerAlarmTaskV20(n.scheduleGroup);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.scheduleGroup=e),C["a"].error("buzzerAlarm.vue > setScheduleGroup > setBuzzerAlarmTaskV20: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},saveScheduleGroup:function(e){var t=Object(l["g"])(this.scheduleGroup);this.scheduleGroup=e,Li["a"].saveScheduleEffect(this.$store,this.$data,t,this.setScheduleGroup)},channelIndexChange:function(e){this.channelIndex=e,this.channelInit()},channelRetry:function(){this.channelInit()},handleSaveAndCopyto:function(){var e=this;this.$store.commit("SET_COPYTO_INIT_CALLBACK",this.getCopytoChannels),this.$store.commit("STORE_DIALOG_CHANNEL_INDEX",this.channelIndex),this.$store.commit("SET_CUSTOM_DIALOGID","scheduleCopyTo");var t=function(){e.isScheduleMulti?e.saveAndCopyto(e.selectedChannels,e.$refs.scheduleDispense.modesPoolCopy):e.saveAndCopyto(e.selectedChannels,e.$refs.scheduleDispense.$refs.legacySchedule.motionRectCopy)};this.$store.commit("SET_COPYTO_SAVE_CALLBACK",t)},saveAndCopyto:function(e,t){var n;this.isScheduleMulti?(n=Object(l["g"])(this.scheduleGroup),this.scheduleGroup=t):(n=Object(l["g"])(this.buzzerAlarmTask),this.buzzerAlarmTask.iTimeTable=t),Li["a"].saveAndCopytoScheduleEffect(this.$store,this.$data,n,e,this.saveSelectedChannels)},saveSelectedChannels:function(e,t,n){var i=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var r,s,o,c,u,d,p,h,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:r=i.isScheduleMulti,s=[],o=Object(l["c"])(t,8),a.prev=3,c=Object(ne["a"])(o),a.prev=5,c.s();case 7:if((u=c.n()).done){a.next=25;break}d=u.value,s=[],p=0;case 11:if(!(p saveSelectedChannels > buzzer schedule copyto: ",a.t1),new Error;case 41:case"end":return a.stop()}}),a,null,[[3,36],[5,27,30,33]])})))()},getCopytoChannels:function(){var e=this.isScheduleMulti?this.scheduleGroup:this.buzzerAlarmTask;return Li["a"].getScheduleCopytoChannels(this.isScheduleMulti,e,this.channels,this.channelIndex,this.getChannelScheduleStatus)},getChannelScheduleStatus:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(n.prev=0,!t.isScheduleMulti){n.next=7;break}return n.next=4,e.config.getBuzzerAlarmTaskV20();case 4:i=n.sent,n.next=10;break;case 7:return n.next=9,e.config.getBuzzerAlarmTask();case 9:i=n.sent;case 10:return n.abrupt("return",i);case 14:throw n.prev=14,n.t0=n["catch"](0),C["a"].error("buzzerAlarm.vue > getChannelScheduleStatus > get buzzer schedule: ",n.t0),new Error;case 18:case"end":return n.stop()}}),n,null,[[0,14]])})))()}}}),eu=Xc,tu=(n("990a"),Object(g["a"])(eu,Jc,Qc,!1,null,"733667d1",null)),nu=tu.exports,iu=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"config-context-inner"},[i("remoteTitleBar",{attrs:{title:e.$t("remote_config_page_notification_section_alarm_sound_item_label")}}),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"audio-alarm config-scroll-box"},[e.supportAudioAlarmEnable?i("div",{staticClass:"enable-config"},[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("remote_config_siren_describe")))]),i("slideBtn",e._b({on:{stateChange:e.audioAlarmStatusSwitch}},"slideBtn",e.audioAlarmStatus,!1))],1):e._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.supportAudioAlarmEnable||e.audioAlarmStatus.isOpen&&!e.audioAlarmStatus.isSetting,expression:"!supportAudioAlarmEnable || (audioAlarmStatus.isOpen && !audioAlarmStatus.isSetting)"}]},[e.supportPreAudioAlarm?i("div",{staticClass:"enable-config"},[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("remote_setting_pre_alarm_title")))]),i("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("remote_setting_pre_alarm_description")))]),i("p",{staticClass:"content-wrap flex"},[i("slideBtn",{attrs:{isOpen:e.preAlarmStatus.isOpen},on:{stateChange:e.preAlarmStatusSwitch}}),i("button",{staticClass:"btn-audition flex-between text",attrs:{"reo-element":""},on:{click:e.playAudition}},[i("img",{attrs:{src:n("51bd")}}),i("span",{staticClass:"icon-client_play3"})]),i("span",{staticClass:"notes-text audition-des"},[e._v(e._s(e.$t("alarm_siren_custom_settings_page_audition_button")))]),e.preAlarmStatus.isSetting?i("loadingImg",{staticClass:"loading-img"}):e._e()],1)]):e._e(),e.hasSchedule?i("h5",{staticClass:"small-title schedule-title"},[e._v(e._s(e.$t("common_view_schedule")))]):e._e(),i("scheduleDispense",e._b({on:{scheduleSwitchChange:e.scheduleSwitchChange,saveScheduleLegacy:e.saveScheduleLegacy,saveScheduleGroup:e.saveScheduleGroup,channelIndexChange:e.channelIndexChange,channelRetry:e.channelRetry}},"scheduleDispense",e.scheduleProps,!1))],1)]),!e.isConfigContextLoading&&e.isLoadingDataRetry?i("retry",{on:{retry:function(t){return e.deviceInit()}}}):e._e()],1)},au=[],ru=u["a"].extend({components:{slideBtn:Ci["a"],loadingImg:d["a"],retry:be["a"],scheduleDispense:ns["a"],remoteTitleBar:us["a"]},data:function(){return{isLoadingDataRetry:!1,audioAlarmEnable:!1,audioAlarmStatus:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"audioAlarmStatus"},audioAlarmTaskEnable:!1,audioAlarmTask:{iTimeTable:[]},audioAlarmTaskStatus:{isOpen:!1,isSetting:!1,warnClue:!1},isPartCfgRetry:!1,isLoadingPartCfg:!0,channelIndex:-1,isScheduleSetting:!1,scheduleGroup:{},device:{},channels:[],supportPreAudioAlarm:!1,supportAudioAlarmTaskEnable:!1,supportAudioAlarmEnable:!1,supportAudioAlarmSchedule:!1,scheduleCate:te["EScheduleCate"].NONE,isPreAlarmOn:!1,preAlarmStatus:{isOpen:!1,isSetting:!1}}},computed:{isConfigContextLoading:function(){return this.$store.getters.configContextLoading},handle:function(){return this.$store.getters.deviceHandle},channel:function(){return this.channels[this.channelIndex]},hasSchedule:function(){return this.scheduleCate!==te["EScheduleCate"].NONE},supportScheduleEnable:function(){return this.supportAudioAlarmTaskEnable&&!this.supportAudioAlarmEnable},isScheduleMulti:function(){return this.scheduleCate===te["EScheduleCate"].MULTI},scheduleProps:function(){var e={allowChannelSelect:this.$store.getters.isNvr,channels:this.channels,isPartCfgRetry:this.isPartCfgRetry,isLoadingPartCfg:this.isLoadingPartCfg,isScheduleSetting:this.isScheduleSetting,scheduleType:"audioAlarm",scheduleCate:this.scheduleCate,supportScheduleEnable:this.supportScheduleEnable,scheduleSwitchDes:this.$t("remote_config_siren_describe"),scheduleStatus:Object(l["g"])(this.audioAlarmTaskStatus)};return this.isScheduleMulti?Object(ct["a"])(Object(ct["a"])({},e),{},{videoLossDes:this.$t("STR_PLAN_BUZZER_VIDEO_LOSS"),modesPool:this.scheduleGroup}):Object(ct["a"])(Object(ct["a"])({},e),{},{motionRect:this.audioAlarmTask.iTimeTable,timingSupport:!1})}},watch:{handle:{handler:function(e){this.deviceInit()},immediate:!0}},methods:{deviceInit:function(){var e=this;Li["a"].pageInitEffect(this.$store,this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,B["a"].getDeviceWithHandle(e.handle);case 2:return e.device=t.sent,t.next=5,Promise.all([e.device.getChannels(),e.getSupport()]);case 5:if(n=t.sent,i=Object(T["a"])(n,1),e.channels=i[0],!e.supportAudioAlarmEnable){t.next=11;break}return t.next=11,e.getAudioAlarmEnable();case 11:case"end":return t.stop()}}),t)}))))},channelInit:function(){var e=this;this.channel&&Li["a"].partInitEffect(this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=[],t.next=3,e.channel.supportPreAudioAlarm();case 3:if(e.supportPreAudioAlarm=t.sent,e.supportPreAudioAlarm&&n.push(e.getPreAudioAlarm()),!e.supportAudioAlarmSchedule){t.next=11;break}return t.next=8,Li["a"].getScheduleCateFunc(e.channel.supportAudioMultiTask,e.getScheduleGroup,e.getAudioAlarmTask);case 8:i=t.sent,n.push(i[0]),e.scheduleCate=i[1];case 11:return e.isScheduleMulti&&n.push(e.getSupportAiAnimal()),e.supportScheduleEnable&&n.push(e.getAudioAlarmTaskEnable()),t.next=15,Promise.all(n);case 15:case"end":return t.stop()}}),t)}))))},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.device.supportAudioAlarmTaskEnable(),e.device.supportAudioAlarmEnable(),e.device.supportAudioAlarmSchedule()]);case 3:n=t.sent,i=Object(T["a"])(n,3),e.supportAudioAlarmTaskEnable=i[0],e.supportAudioAlarmEnable=i[1],e.supportAudioAlarmSchedule=i[2],t.next=15;break;case 11:throw t.prev=11,t.t0=t["catch"](0),C["a"].error("audioAlarm.vue > getSupport: ",t.t0),new Error;case 15:case"end":return t.stop()}}),t,null,[[0,11]])})))()},getSupportAiAnimal:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=!1,t.prev=1,t.next=4,e.channel.supportAiAnimal();case 4:n=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),C["a"].error("audioAlarm.vue > getSupportAiAnimal: ",t.t0);case 10:e.$store.commit("MODIFY_SUPPORT_AI_ANIMAL",n);case 11:case"end":return t.stop()}}),t,null,[[1,7]])})))()},getPreAudioAlarm:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getPreAudioAlarm();case 3:e.isPreAlarmOn=t.sent,e.preAlarmStatus.isOpen=e.isPreAlarmOn,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("audioAlarm.vue > getPreAudioAlarm: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setPreAudioAlarm:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.channel.config.setPreAudioAlarm(t.isPreAlarmOn);case 3:n.next=11;break;case 5:throw n.prev=5,n.t0=n["catch"](0),t.preAlarmStatus.isOpen=t.isPreAlarmOn=e,t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),C["a"].error("audioAlarm.vue > setPreAudioAlarm: ",n.t0),new Error;case 11:case"end":return n.stop()}}),n,null,[[0,5]])})))()},preAlarmStatusSwitch:function(e){var t=this,n=this.preAlarmStatus;Li["a"].changingEffect(n,(function(){t.isPreAlarmOn=n.isOpen=e}),this.setPreAudioAlarm,this.isPreAlarmOn)},playAudition:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.manualRingDown({iChannel:e.channel?e.channel.index:-1,eRingMode:N["BC_RING_DOWN_MODE_E"].BC_RING_DOWN_PRE_ALARM,iTimes:1});case 3:t.next=9;break;case 5:t.prev=5,t.t0=t["catch"](0),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),C["a"].error("audioAlarm.vue > playAudition > manualRingDown: ",t.t0);case 9:case"end":return t.stop()}}),t,null,[[0,5]])})))()},getAudioAlarmEnable:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getAudioAlarmEnable();case 3:e.audioAlarmEnable=t.sent,e.audioAlarmStatus.isOpen=e.audioAlarmEnable,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("audioAlarm.vue > getAudioAlarmEnable: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setAudioAlarmEnable:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(i.prev=0,!n.supportPreAudioAlarm||n.audioAlarmEnable===n.isPreAlarmOn){i.next=6;break}return n.isPreAlarmOn=n.audioAlarmEnable,i.next=5,n.setPreAudioAlarm(e);case 5:n.preAlarmStatus.isOpen=n.audioAlarmEnable;case 6:return i.next=8,n.device.config.setAudioAlarmEnable(n.audioAlarmEnable);case 8:i.next=16;break;case 11:throw i.prev=11,i.t0=i["catch"](0),t||(n.audioAlarmStatus.isOpen=n.audioAlarmEnable=e),C["a"].error("audioAlarm.vue > setAudioAlarmEnable: ",i.t0),new Error;case 16:case"end":return i.stop()}}),i,null,[[0,11]])})))()},audioAlarmStatusSwitch:function(e){var t=this,n=this.audioAlarmStatus;Li["a"].changingEffect(n,(function(){t.audioAlarmEnable=n.isOpen=e}),this.setAudioAlarmEnable,this.audioAlarmEnable)},getAudioAlarmTaskEnable:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getAudioTaskEnable();case 3:e.audioAlarmTaskEnable=t.sent,e.audioAlarmTaskStatus.isOpen=e.audioAlarmTaskEnable,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("audioAlarm.vue > getAudioTaskEnable: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setAudioAlarmTaskEnable:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setAudioTaskEnable(n.audioAlarmTaskEnable);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.audioAlarmTaskStatus.isOpen=n.audioAlarmTaskEnable=e),C["a"].error("audioAlarm.vue > setAudioTaskEnable: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},scheduleSwitchChange:function(e){var t=this,n=this.audioAlarmTaskStatus;Li["a"].changingEffect(n,(function(){t.audioAlarmTaskEnable=n.isOpen=e}),this.setAudioAlarmTaskEnable,this.audioAlarmTaskEnable)},getAudioAlarmTask:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getAudioTask();case 3:e.audioAlarmTask=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("audioAlarm.vue > getAudioAlarmTask: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setAudioAlarmTask:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setAudioTask(n.audioAlarmTask);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.audioAlarmTask=e),C["a"].error("audioAlarm.vue > setAudioAlarmTask: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},saveScheduleLegacy:function(e){var t=Object(l["g"])(this.audioAlarmTask);this.audioAlarmTask.iTimeTable=e,Li["a"].saveScheduleEffect(this.$store,this.$data,t,this.setAudioAlarmTask)},getScheduleGroup:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getAudioTaskV20();case 3:e.scheduleGroup=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("audioAlarm.vue > getScheduleGroup > getAudioTaskV20: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setScheduleGroup:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setAudioTaskV20(n.scheduleGroup);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.scheduleGroup=e),C["a"].error("audioAlarm.vue > setScheduleGroup > setAudioTaskV20: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},saveScheduleGroup:function(e){var t=Object(l["g"])(this.scheduleGroup);this.scheduleGroup=e,Li["a"].saveScheduleEffect(this.$store,this.$data,t,this.setScheduleGroup)},channelIndexChange:function(e){this.channelIndex=e,this.channelInit()},channelRetry:function(){this.channelInit()}}}),su=ru,ou=(n("645d"),Object(g["a"])(su,iu,au,!1,null,"f35e6d96",null)),cu=ou.exports,uu=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"config-context-inner"},[i("remoteTitleBar",{attrs:{channels:e.channels,title:e.$t("remote_config_page_notification_section_alarm_sound_item_label"),showChannelsBox:!0,hasChannelsBox:!0},on:{channelIndexChange:e.channelIndexChange}}),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"nvr-audio-alarm config-scroll-box"},[e.supportAudioAlarm?[e.supportAudioAlarmEnable?i("div",{staticClass:"enable-config"},[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("remote_config_siren_describe")))]),i("slideBtn",e._b({on:{stateChange:e.audioAlarmStatusSwitch}},"slideBtn",e.audioAlarmStatus,!1))],1):e._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.supportAudioAlarmEnable||e.audioAlarmStatus.isOpen&&!e.audioAlarmStatus.isSetting,expression:"!supportAudioAlarmEnable || (audioAlarmStatus.isOpen && !audioAlarmStatus.isSetting)"}]},[e.supportPreAudioAlarm?i("div",{staticClass:"enable-config"},[i("h5",{staticClass:"text"},[e._v(e._s(e.$t("remote_setting_pre_alarm_title")))]),i("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("remote_setting_pre_alarm_description")))]),i("p",{staticClass:"content-wrap flex"},[i("slideBtn",{attrs:{isOpen:e.preAlarmStatus.isOpen},on:{stateChange:e.preAlarmStatusSwitch}}),i("button",{staticClass:"btn-audition flex-between text",attrs:{"reo-element":""},on:{click:e.playAudition}},[i("img",{attrs:{src:n("51bd")}}),i("span",{staticClass:"icon-client_play3"})]),i("span",{staticClass:"notes-text audition-des"},[e._v(e._s(e.$t("alarm_siren_custom_settings_page_audition_button")))]),e.preAlarmStatus.isSetting?i("loadingImg",{staticClass:"loading-img"}):e._e()],1)]):e._e(),i("h5",{staticClass:"small-title schedule-title"},[e._v(e._s(e.$t("common_view_schedule")))]),i("scheduleDispense",e._b({on:{scheduleSwitchChange:e.scheduleSwitchChange,saveScheduleLegacy:e.saveScheduleLegacy,saveScheduleGroup:e.saveScheduleGroup,channelRetry:e.channelRetry}},"scheduleDispense",e.scheduleProps,!1))],1)]:[i("span",[e._v(e._s(e.$t("channel_not_support_siren")))])]],2),!e.isConfigContextLoading&&e.isLoadingDataRetry?i("retry",{on:{retry:function(t){return e.deviceInit()}}}):e._e()],1)},lu=[],du=n("b57d"),pu=n("4cb1"),hu=u["a"].extend({components:{slideBtn:Ci["a"],loadingImg:d["a"],retry:be["a"],scheduleDispense:ns["a"],channelBox:pu["a"],remoteTitleBar:us["a"]},data:function(){return{isLoadingDataRetry:!1,audioAlarmEnable:!1,audioAlarmStatus:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"audioAlarmStatus"},audioAlarmTaskEnable:!1,audioAlarmTask:{iTimeTable:[]},audioAlarmTaskStatus:{isOpen:!1,isSetting:!1,warnClue:!1},isPartCfgRetry:!1,isLoadingPartCfg:!0,channelIndex:-1,isScheduleSetting:!1,scheduleGroup:{},device:new du["a"](-1),channels:[],supportPreAudioAlarm:!1,supportAudioAlarmTaskEnable:!1,supportAudioAlarmEnable:!1,supportAudioAlarmSchedule:!1,supportAudioAlarm:!1,scheduleCate:te["EScheduleCate"].NONE,isPreAlarmOn:!1,preAlarmStatus:{isOpen:!1,isSetting:!1}}},computed:{isConfigContextLoading:function(){return this.$store.getters.configContextLoading},handle:function(){return this.$store.getters.deviceHandle},channel:function(){return this.channels[this.channelIndex]},supportScheduleEnable:function(){return this.supportAudioAlarmTaskEnable&&!this.supportAudioAlarmEnable},isScheduleMulti:function(){return this.scheduleCate===te["EScheduleCate"].MULTI},scheduleProps:function(){var e={allowChannelSelect:!1,channels:[this.channel],isPartCfgRetry:this.isPartCfgRetry,isLoadingPartCfg:this.isLoadingPartCfg,isScheduleSetting:this.isScheduleSetting,scheduleType:"audioAlarm",scheduleCate:this.scheduleCate,supportScheduleEnable:this.supportScheduleEnable,scheduleSwitchDes:this.$t("remote_config_siren_describe"),scheduleStatus:Object(l["g"])(this.audioAlarmTaskStatus)};return this.isScheduleMulti?Object(ct["a"])(Object(ct["a"])({},e),{},{videoLossDes:this.$t("STR_PLAN_BUZZER_VIDEO_LOSS"),modesPool:this.scheduleGroup}):Object(ct["a"])(Object(ct["a"])({},e),{},{motionRect:this.audioAlarmTask.iTimeTable,timingSupport:!1})}},watch:{handle:{handler:function(e){this.deviceInit()},immediate:!0}},methods:{deviceInit:function(){var e=this;Li["a"].pageInitEffect(this.$store,this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,B["a"].getDeviceWithHandle(e.handle);case 2:return e.device=t.sent,t.next=5,e.device.getChannels();case 5:e.channels=t.sent;case 6:case"end":return t.stop()}}),t)}))))},channelInit:function(){var e=this;this.channel&&(this.supportAudioAlarm=!1,Li["a"].partInitEffect(this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=[],t.next=3,e.getSupport();case 3:if(!e.supportAudioAlarmEnable){t.next=6;break}return t.next=6,e.getAudioAlarmEnable();case 6:if(!e.supportAudioAlarmSchedule){t.next=12;break}return t.next=9,Li["a"].getScheduleCateFunc(e.channel.supportAudioMultiTask,e.getScheduleGroup,e.getAudioAlarmTask);case 9:i=t.sent,n.push(i[0]),e.scheduleCate=i[1];case 12:return e.isScheduleMulti&&n.push(e.getSupportAiAnimal()),e.supportScheduleEnable&&n.push(e.getAudioAlarmTaskEnable()),e.supportPreAudioAlarm&&n.push(e.getPreAudioAlarm()),t.next=17,Promise.all(n);case 17:case"end":return t.stop()}}),t)})))))},getSupportAiAnimal:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=!1,t.prev=1,t.next=4,e.channel.supportAiAnimal();case 4:n=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),C["a"].error("nvrAudioAlarm.vue > getSupportAiAnimal: ",t.t0);case 10:e.$store.commit("MODIFY_SUPPORT_AI_ANIMAL",n);case 11:case"end":return t.stop()}}),t,null,[[1,7]])})))()},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.channel.supportPreAudioAlarm(),e.channel.supportAudioAlarm(),e.channel.supportAudioAlarmTaskEnable(),e.channel.supportAudioAlarmEnable(),e.channel.supportAudioAlarmSchedule()]);case 3:n=t.sent,i=Object(T["a"])(n,5),e.supportPreAudioAlarm=i[0],e.supportAudioAlarm=i[1],e.supportAudioAlarmTaskEnable=i[2],e.supportAudioAlarmEnable=i[3],e.supportAudioAlarmSchedule=i[4],t.next=17;break;case 13:throw t.prev=13,t.t0=t["catch"](0),C["a"].error("nvrAudioAlarm.vue > getSupport: ",t.t0),new Error;case 17:case"end":return t.stop()}}),t,null,[[0,13]])})))()},getPreAudioAlarm:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getPreAudioAlarm();case 3:e.isPreAlarmOn=t.sent,e.preAlarmStatus.isOpen=e.isPreAlarmOn,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("nvrAudioAlarm.vue > getPreAudioAlarm: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setPreAudioAlarm:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.channel.config.setPreAudioAlarm(t.isPreAlarmOn);case 3:n.next=11;break;case 5:throw n.prev=5,n.t0=n["catch"](0),t.preAlarmStatus.isOpen=t.isPreAlarmOn=e,t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),C["a"].error("nvrAudioAlarm.vue > setPreAudioAlarm: ",n.t0),new Error;case 11:case"end":return n.stop()}}),n,null,[[0,5]])})))()},preAlarmStatusSwitch:function(e){var t=this,n=this.preAlarmStatus;Li["a"].changingEffect(n,(function(){t.isPreAlarmOn=n.isOpen=e}),this.setPreAudioAlarm,this.isPreAlarmOn)},playAudition:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.manualRingDown({iChannel:e.channel?e.channel.index:-1,eRingMode:N["BC_RING_DOWN_MODE_E"].BC_RING_DOWN_PRE_ALARM,iTimes:1});case 3:t.next=9;break;case 5:t.prev=5,t.t0=t["catch"](0),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),C["a"].error("nvrAudioAlarm.vue > playAudition > manualRingDown: ",t.t0);case 9:case"end":return t.stop()}}),t,null,[[0,5]])})))()},getAudioAlarmEnable:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getAudioAlarmEnable();case 3:e.audioAlarmEnable=t.sent,e.audioAlarmStatus.isOpen=e.audioAlarmEnable,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("nvrAudioAlarm.vue > getAudioAlarmEnable: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setAudioAlarmEnable:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(i.prev=0,!n.supportPreAudioAlarm||n.audioAlarmEnable===n.isPreAlarmOn){i.next=6;break}return n.isPreAlarmOn=n.audioAlarmEnable,i.next=5,n.setPreAudioAlarm(e);case 5:n.preAlarmStatus.isOpen=n.audioAlarmEnable;case 6:return i.next=8,n.channel.config.setAudioAlarmEnable(n.audioAlarmEnable);case 8:i.next=16;break;case 11:throw i.prev=11,i.t0=i["catch"](0),t||(n.audioAlarmStatus.isOpen=n.audioAlarmEnable=e),C["a"].error("nvrAudioAlarm.vue > setAudioAlarmEnable: ",i.t0),new Error;case 16:case"end":return i.stop()}}),i,null,[[0,11]])})))()},audioAlarmStatusSwitch:function(e){var t=this,n=this.audioAlarmStatus;Li["a"].changingEffect(n,(function(){t.audioAlarmEnable=n.isOpen=e}),this.setAudioAlarmEnable,this.audioAlarmEnable)},getAudioAlarmTaskEnable:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getAudioTaskEnable();case 3:e.audioAlarmTaskEnable=t.sent,e.audioAlarmTaskStatus.isOpen=e.audioAlarmTaskEnable,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("nvrAudioAlarm.vue > getAudioTaskEnable: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setAudioAlarmTaskEnable:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(i.prev=0,!n.supportPreAudioAlarm||n.audioAlarmTaskEnable===n.isPreAlarmOn){i.next=6;break}return n.isPreAlarmOn=n.audioAlarmTaskEnable,i.next=5,n.setPreAudioAlarm(e);case 5:n.preAlarmStatus.isOpen=n.audioAlarmTaskEnable;case 6:return i.next=8,n.channel.config.setAudioTaskEnable(n.audioAlarmTaskEnable);case 8:i.next=16;break;case 11:throw i.prev=11,i.t0=i["catch"](0),t||(n.audioAlarmTaskStatus.isOpen=n.audioAlarmTaskEnable=e),C["a"].error("nvrAudioAlarm.vue > setAudioTaskEnable: ",i.t0),new Error;case 16:case"end":return i.stop()}}),i,null,[[0,11]])})))()},scheduleSwitchChange:function(e){var t=this,n=this.audioAlarmTaskStatus;Li["a"].changingEffect(n,(function(){t.audioAlarmTaskEnable=n.isOpen=e}),this.setAudioAlarmTaskEnable,this.audioAlarmTaskEnable)},getAudioAlarmTask:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getAudioTask();case 3:e.audioAlarmTask=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("nvrAudioAlarm.vue > getAudioAlarmTask: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setAudioAlarmTask:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setAudioTask(n.audioAlarmTask);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.audioAlarmTask=e),C["a"].error("nvrAudioAlarm.vue > setAudioAlarmTask: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},saveScheduleLegacy:function(e){var t=Object(l["g"])(this.audioAlarmTask);this.audioAlarmTask.iTimeTable=e,Li["a"].saveScheduleEffect(this.$store,this.$data,t,this.setAudioAlarmTask)},getScheduleGroup:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getAudioTaskV20();case 3:e.scheduleGroup=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("nvrAudioAlarm.vue > getScheduleGroup > getAudioTaskV20: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setScheduleGroup:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setAudioTaskV20(n.scheduleGroup);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.scheduleGroup=e),C["a"].error("nvrAudioAlarm.vue > setScheduleGroup > setAudioTaskV20: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},saveScheduleGroup:function(e){var t=Object(l["g"])(this.scheduleGroup);this.scheduleGroup=e,Li["a"].saveScheduleEffect(this.$store,this.$data,t,this.setScheduleGroup)},channelIndexChange:function(e){this.channelIndex=e,this.channelInit()},channelRetry:function(){this.channelInit()}}}),mu=hu,gu=(n("5776"),Object(g["a"])(mu,uu,lu,!1,null,"70a8052d",null)),fu=gu.exports,_u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"config-context-inner"},[n("remoteTitleBar",{attrs:{title:e.$t("remote_config_page_ipc_push_label")}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"push-wrap config-scroll-box"},[e.supportMainSwitch?n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remote_config_page_ipc_push_label")))]),n("slideBtn",e._b({on:{stateChange:e.pushStatusSwitch},nativeOn:{"!click":function(t){return e.prePushStatusSwitch(t)}}},"slideBtn",e.pushStatus,!1))],1):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.supportMainSwitch||e.pushStatus.isOpen,expression:"!supportMainSwitch||pushStatus.isOpen"}],staticClass:"push-setting-wrap"},[e.supportPushInterval?[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("push_interval_title")))]),n("selectBox",e._b({staticClass:"long-select-box",attrs:{limitOptions:12},on:{selectChanged:e.intervalChanged}},"selectBox",e.interval,!1))]:e._e(),e.supportPushInterval?n("h5",{staticClass:"middle-title schedule-title"},[e._v(e._s(e.$t("common_view_schedule")))]):e._e(),n("scheduleDispense",e._b({ref:"scheduleDispense",on:{scheduleSwitchChange:e.scheduleSwitchChange,saveScheduleLegacy:e.saveScheduleLegacy,saveScheduleGroup:e.saveScheduleGroup,channelIndexChange:e.channelIndexChange,channelRetry:e.channelRetry,handleSaveAndCopyto:e.handleSaveAndCopyto}},"scheduleDispense",e.scheduleProps,!1))],2)]),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:function(t){return e.deviceInit()}}}):e._e()],1)},vu=[],bu=u["a"].extend({name:"push",components:{slideBtn:Ci["a"],retry:be["a"],scheduleDispense:ns["a"],remoteTitleBar:us["a"],selectBox:Xe["a"]},data:function(){return{isLoadingDataRetry:!1,isScheduleSetting:!1,push:{iInterval:0,intervalList:{iSize:0,iInterval:[]},delayEnable:0,delay:0,richNotificationEnable:0,consentAgreement:0},pushTask:{iTimeTable:[]},isPartCfgRetry:!1,isLoadingPartCfg:!0,channelIndex:-1,scheduleGroup:{},device:{},scheduleCate:te["EScheduleCate"].NONE,channels:[],interval:{isSetting:!1,warnClue:!1,currentVal:0,options:[]},supportAuthorization:!1,supportAlarmOutMainSwitch:!1,supportPushInterval:!1,supportPushEnable:!1,supportPushTask:!1,supportPushTaskEnable:!1,pushAuth:!1,pushEnable:!1,pushTaskEnable:!1,pushStatus:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"pushStatus"},pushTaskStatus:{isOpen:!1,isSetting:!1,warnClue:!1,flag:"pushTaskStatus"}}},computed:{isNvr:function(){return this.$store.getters.isNvr},handle:function(){return this.$store.getters.deviceHandle},isConfigContextLoading:function(){return this.$store.getters.configContextLoading},channel:function(){return this.channels[this.channelIndex]},isScheduleMulti:function(){return this.scheduleCate===te["EScheduleCate"].MULTI},supportScheduleEnable:function(){return this.isNvr&&(this.supportAlarmOutMainSwitch||this.supportPushTaskEnable&&!this.supportPushEnable)},supportMainSwitch:function(){return this.isNvr&&(this.supportAlarmOutMainSwitch||this.supportPushEnable)},scheduleProps:function(){var e={allowChannelSelect:this.$store.getters.isNvr,channels:this.channels,isPartCfgRetry:this.isPartCfgRetry,isLoadingPartCfg:this.isLoadingPartCfg,isScheduleSetting:this.isScheduleSetting,supportScheduleEnable:this.supportScheduleEnable,scheduleSwitchDes:this.$t("common_view_schedule"),scheduleStatus:Object(l["g"])(this.pushTaskStatus),scheduleCate:this.scheduleCate,scheduleType:"push"};return this.isScheduleMulti?Object(ct["a"])(Object(ct["a"])({},e),{},{modesPool:this.scheduleGroup}):Object(ct["a"])(Object(ct["a"])({},e),{},{motionRect:this.pushTask.iTimeTable,timingSupport:!1})},selectedChannels:function(){return this.$store.getters.selectedChannels}},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.deviceInit();case 1:case"end":return e.stop()}}),e)})))()},immediate:!0}},methods:{deviceInit:function(){var e=this;Li["a"].pageInitEffect(this.$store,this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,B["a"].getDeviceWithHandle(e.handle);case 2:return e.device=t.sent,t.next=5,Promise.all([e.device.getChannels(),e.getSupport()]);case 5:if(n=t.sent,i=Object(T["a"])(n,1),e.channels=i[0],a=[],e.supportPushInterval&&a.push(e.getPush()),(e.supportAlarmOutMainSwitch||e.supportPushEnable)&&a.push(e.getPushEnable()),e.supportAuthorization&&a.push(e.getPushAuth()),!a.length){t.next=15;break}return t.next=15,Promise.all(a);case 15:case"end":return t.stop()}}),t)}))))},channelInit:function(){var e=this;this.channel&&Li["a"].partInitEffect(this.$data,Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=[],!e.supportPushTask){t.next=7;break}return t.next=4,Li["a"].getScheduleCateFunc(e.channel.supportPushMultiTask,e.getScheduleGroup,e.getPushTask);case 4:i=t.sent,e.scheduleCate=i[1],n.push(i[0]);case 7:if(e.isScheduleMulti&&n.push(e.getSupportAiAnimal()),!e.supportScheduleEnable){t.next=11;break}return t.next=11,e.getPushTaskEnable();case 11:return t.next=13,Promise.all(n);case 13:case"end":return t.stop()}}),t)}))))},intervalOptionsUpdate:function(){this.interval.currentVal=this.push.iInterval,this.interval.options=[];for(var e=0;e getSupportAiAnimal: ",t.t0);case 10:e.$store.commit("MODIFY_SUPPORT_AI_ANIMAL",n);case 11:case"end":return t.stop()}}),t,null,[[1,7]])})))()},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.device.supportAuthorization(),e.device.supportAlarmOutMainSwitch(),e.device.supportPushEnable(),e.device.supportPushTask(),e.device.supportPushTaskEnable(),e.device.supportPushInterval()]);case 3:n=t.sent,i=Object(T["a"])(n,6),e.supportAuthorization=i[0],e.supportAlarmOutMainSwitch=i[1],e.supportPushEnable=i[2],e.supportPushTask=i[3],e.supportPushTaskEnable=i[4],e.supportPushInterval=i[5],t.next=17;break;case 13:throw t.prev=13,t.t0=t["catch"](0),C["a"].error("push.vue > getSupport: ",t.t0),new Error;case 17:case"end":return t.stop()}}),t,null,[[0,13]])})))()},getPushAuth:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getPushAuth();case 3:e.pushAuth=t.sent,t.next=10;break;case 6:throw t.prev=6,t.t0=t["catch"](0),C["a"].error("push.vue > getPushAuth: ",t.t0),new Error;case 10:case"end":return t.stop()}}),t,null,[[0,6]])})))()},getPush:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getPush();case 3:e.push=t.sent,e.intervalOptionsUpdate(),t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("push.vue > getPush: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setPush:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setPush(n.push);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.push=e,n.intervalOptionsUpdate()),C["a"].error("push.vue > setPush: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},getPushEnable:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getPushEnable();case 3:n=t.sent,e.pushEnable=e.supportAlarmOutMainSwitch?n.isMainSwitchOn:n.hasEnabledChannel,e.pushStatus.isOpen=e.pushEnable,t.next=13;break;case 9:throw t.prev=9,t.t0=t["catch"](0),C["a"].error("push.vue > getPushEnable: ",t.t0),new Error;case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))()},setPushEnable:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setPushEnable(n.pushEnable,n.supportAlarmOutMainSwitch);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.pushStatus.isOpen=n.pushEnable=e),C["a"].error("push.vue > setPushEnable: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},prePushStatusSwitch:function(e){var t=this,n=this.pushStatus.isOpen;n||this.supportAuthorization&&!this.pushAuth&&(e.stopPropagation(),this.$store.commit("SET_APP_DIALOG_CALLBACK",function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!i){e.next=18;break}return e.prev=1,t.$store.commit("HANDLE_LOADING",!0),e.next=5,t.device.config.setPushAuth(!0);case 5:t.pushAuth=!0,t.pushStatusSwitch(!n),t.$store.commit("HANDLE_LOADING",!1),t.$store.commit("SET_DIALOGID",""),e.next=16;break;case 11:e.prev=11,e.t0=e["catch"](1),t.$store.commit("HANDLE_LOADING",!1),t.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),C["a"].error("push.vue > prePushStatusSwitch > termsOfServiceDialog callback: ",e.t0);case 16:e.next=19;break;case 18:t.$store.commit("SET_DIALOGID","");case 19:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(t){return e.apply(this,arguments)}}()),this.$store.commit("SET_DIALOGID","termsOfServiceDialog"))},pushStatusSwitch:function(e){var t=this,n=this.pushStatus;Li["a"].changingEffect(n,(function(){t.pushEnable=n.isOpen=e}),this.setPushEnable,this.pushEnable)},scheduleSwitchChange:function(e){var t=this,n=this.pushTaskStatus;Li["a"].changingEffect(n,(function(){t.pushTaskEnable=n.isOpen=e}),this.setPushTaskEnable,this.pushTaskEnable)},getPushTaskEnable:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getPushTaskEnable(!e.isScheduleMulti);case 3:e.pushTaskEnable=t.sent,e.pushTaskStatus.isOpen=e.pushTaskEnable,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("push.vue > getPushTaskEnable: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setPushTaskEnable:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setPushTaskEnable(n.pushTaskEnable,!n.isScheduleMulti);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.pushTaskStatus.isOpen=n.pushTaskEnable=e),C["a"].error("push.vue > setPushTaskEnable: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},intervalChanged:function(e){var t=this,n=this.interval;Li["a"].changingEffect(n,(function(){t.push.iInterval=n.currentVal=e}),this.setPush,JSON.parse(JSON.stringify(this.push)))},getPushTask:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getPushTask();case 3:e.pushTask=t.sent,t.next=10;break;case 6:throw t.prev=6,t.t0=t["catch"](0),C["a"].error("push.vue > getPushTask: ",t.t0),new Error;case 10:case"end":return t.stop()}}),t,null,[[0,6]])})))()},setPushTask:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setPushTask(n.pushTask);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.pushTask=e),C["a"].error("push.vue > setPushTask: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},saveScheduleLegacy:function(e){var t=Object(l["g"])(this.pushTask);this.pushTask.iTimeTable=e,Li["a"].saveScheduleEffect(this.$store,this.$data,t,this.setPushTask)},getScheduleGroup:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getPushTaskV20();case 3:e.scheduleGroup=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("push.vue > getScheduleGroup > getPushTaskV20: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setScheduleGroup:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setPushTaskV20(n.scheduleGroup);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.scheduleGroup=e),C["a"].error("push.vue > setScheduleGroup > setPushTaskV20: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},saveScheduleGroup:function(e){var t=Object(l["g"])(this.scheduleGroup);this.scheduleGroup=e,Li["a"].saveScheduleEffect(this.$store,this.$data,t,this.setScheduleGroup)},channelIndexChange:function(e){this.channelIndex=e,this.channelInit()},channelRetry:function(){this.channelInit()},handleSaveAndCopyto:function(){var e=this;this.$store.commit("SET_COPYTO_INIT_CALLBACK",this.getCopytoChannels),this.$store.commit("STORE_DIALOG_CHANNEL_INDEX",this.channelIndex),this.$store.commit("SET_CUSTOM_DIALOGID","scheduleCopyTo");var t=function(){e.isScheduleMulti?e.saveAndCopyto(e.selectedChannels,e.$refs.scheduleDispense.modesPoolCopy):e.saveAndCopyto(e.selectedChannels,e.$refs.scheduleDispense.$refs.legacySchedule.motionRectCopy)};this.$store.commit("SET_COPYTO_SAVE_CALLBACK",t)},saveAndCopyto:function(e,t){var n;this.isScheduleMulti?(n=Object(l["g"])(this.scheduleGroup),this.scheduleGroup=t):(n=Object(l["g"])(this.pushTask),this.pushTask.iTimeTable=t),Li["a"].saveAndCopytoScheduleEffect(this.$store,this.$data,n,e,this.saveSelectedChannels)},getCopytoChannels:function(){var e=this.isScheduleMulti?this.scheduleGroup:this.pushTask;return Li["a"].getScheduleCopytoChannels(this.isScheduleMulti,e,this.channels,this.channelIndex,this.getChannelScheduleStatus)},saveSelectedChannels:function(e,t,n){var i=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var r,s,o,c,u,d,p,h,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:r=i.isScheduleMulti,s=[],o=Object(l["c"])(t,8),a.prev=3,c=Object(ne["a"])(o),a.prev=5,c.s();case 7:if((u=c.n()).done){a.next=25;break}d=u.value,s=[],p=0;case 11:if(!(p saveSelectedChannels > push schedule copyto: ",a.t1);case 40:case"end":return a.stop()}}),a,null,[[3,36],[5,27,30,33]])})))()},getChannelScheduleStatus:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(n.prev=0,!t.isScheduleMulti){n.next=7;break}return n.next=4,e.config.getPushTaskV20();case 4:i=n.sent,n.next=10;break;case 7:return n.next=9,e.config.getPushTask();case 9:i=n.sent;case 10:return n.abrupt("return",i);case 14:throw n.prev=14,n.t0=n["catch"](0),C["a"].error("push.vue > getChannelScheduleStatus > get push schedule: ",n.t0),new Error;case 18:case"end":return n.stop()}}),n,null,[[0,14]])})))()}}}),wu=bu,Cu=(n("0b46"),Object(g["a"])(wu,_u,vu,!1,null,"56f89f04",null)),yu=Cu.exports,Su=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"config-context-inner"},[n("remoteTitleBar",{attrs:{title:e.$t("common_User")}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"user-area config-scroll-box"},[-1!==e.iLoginLock?n("div",{staticClass:"login-lock"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("illegal_login_lockout_title")))]),n("p",{staticClass:"discipline-description"},[e._v(e._s(e.$t("illegal_login_lockout_des")))]),n("slideBtn",e._b({on:{stateChange:e.loginLockSwitch}},"slideBtn",e.loginLock,!1))],1):e._e(),n("ul",{staticClass:"user-list"},e._l(e.userList,(function(t,i){return n("li",{key:i,staticClass:"flex-between user-item"},[n("div",{staticClass:"user-content"},[n("div",{staticClass:"top-info flex"},[n("span",{staticClass:"active-clue",class:{active:t.active}}),n("span",{staticClass:"text-clue"},[e._v(e._s(e.levelName[t.level]))]),n("span",{staticClass:"user-name",attrs:{title:t.name}},[e._v(e._s(t.name))]),t.name===e.userName?n("span",{staticClass:"text-clue state-clue"},[e._v(e._s(e.$t("common_current")))]):e._e()]),n("ul",{staticClass:"ip-list"},e._l(t.ip,(function(t,i){return n("li",{key:i,staticClass:"flex"},[n("span",{staticClass:"text"},[e._v(e._s(e.$t("common_ipAddress")))]),n("span",{staticClass:"notes-text"},[e._v(e._s(t.address))])])})),0)]),t.name===e.userName?n("button",{staticClass:"gray-button change-password",attrs:{"reo-element":""},on:{click:function(t){return e.changePassword(i)}}},[e._v(e._s(e.$t("common_changePassword")))]):e._e(),1===e.userLevel&&t.name!==e.userName?n("ul",{staticClass:"modify-box flex"},[0===t.level||1===t.level&&"admin"===e.userName?n("li",{staticClass:"user-icon-wrap",on:{click:function(t){return e.deleteUser(i)}}},[n("span",{staticClass:"btn-icon icon-client_delete",attrs:{title:e.$t("common_delete_user")}})]):e._e(),0===t.level||1===t.level&&"admin"===e.userName?n("li",{staticClass:"user-icon-wrap",on:{click:function(t){return e.modifyUser(i)}}},[n("span",{staticClass:"btn-icon icon-client_eith",attrs:{title:e.$t("STR_MODIFY_USER")}})]):e._e()]):e._e()])})),0),n("button",{directives:[{name:"show",rawName:"v-show",value:!e.isBattery&&!e.isBase&&!!e.userLevel&&e.user.usernum<20,expression:"!isBattery && !isBase && !!userLevel && user.usernum < 20"}],staticClass:"add-user-btn gray-button",attrs:{"reo-element":"",device:e.device,user:e.user},on:{click:e.addUser}},[e._v(e._s(e.$t("common_AddUser")))]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.user.usernum>=20,expression:"user.usernum >= 20"}],staticClass:"user-error flex"},[n("span",{staticClass:"error-clue"}),n("span",{staticClass:"notes-text"},[e._v(e._s(e.$t("remoteConfig_user_tooManyUser")))])])]),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:function(t){return e.init()}}}):e._e()],1)},ku=[];(function(e){e[e["none"]=0]="none",e[e["add"]=1]="add",e[e["delete"]=2]="delete",e[e["modify"]=3]="modify"})(Yc||(Yc={}));var Au=u["a"].extend({name:"user",components:{retry:be["a"],remoteTitleBar:us["a"],slideBtn:Ci["a"]},data:function(){return{isLoadingDataRetry:!1,isSettingDefault:!1,isBattery:!1,iLoginLock:-1,loginLock:{support:!1,isOpen:0,closeVal:0,openVal:1,isSetting:!1,warnClue:!1},user:{cUserName:"",usernum:0,user:[{cUserName:"",cPassword:"",cOldPassword:"",cLocalRight:"",cOldIpcRight:"",magicNum:0,cUserIP:"",cMACAddr:"",iUserLevel:0,iLoginState:0,iUserSetState:0,iBootPwd:0}]},online:{iOnlineUserNum:0,user:[{iSessionId:0,iUserId:0,cUserName:"",cPassword:"",userIP:"",iUserLevel:0,bCanForceOffline:!1,bOnlineState:!1}]},userName:"",userLevel:0,levelName:[this.$t("common_User"),this.$t("remote_config_user_manager_page_admin_user")],isUserGot:!1,isOnlineUserGot:!1,device:{}}},computed:{isConfigContextLoading:function(){return this.$store.getters.configContextLoading},handle:function(){return this.$store.getters.deviceHandle},isBase:function(){return this.$store.getters.isBase},userList:function(){for(var e=[],t=0;t init: ",t.t0),e.isLoadingDataRetry=!0;case 21:e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!1);case 22:case"end":return t.stop()}}),t,null,[[1,17]])})))()},getLogin:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.loginDes();case 3:n=t.sent,e.userName=n.username,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("user.vue > getLogin > device.loginDes: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},getUser:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getUserCfg();case 3:e.user=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("user.vue > getUser: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setUser:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var i,a,r,s,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n.$store.commit("SHOW_PASSWORD_WARN",!1),t.prev=1,!(n.user.usernum>20)){t.next=4;break}throw new Error;case 4:return t.next=6,n.device.config.setUserCfg(n.user);case 6:t.next=21;break;case 8:if(t.prev=8,t.t0=t["catch"](1),n.user=e,C["a"].error("user.vue > setUser cfg: ",t.t0),!t.t0||!t.t0.message){t.next=20;break}t.prev=13,N["ERROR"].E_AUTH_FAIL===JSON.parse(t.t0.message).code&&n.$store.commit("SHOW_PASSWORD_WARN",!0),t.next=20;break;case 17:throw t.prev=17,t.t1=t["catch"](13),t.t1;case 20:throw t.t0;case 21:i=[],a=Object(ne["a"])(n.user.user),t.prev=23,a.s();case 25:if((r=a.n()).done){t.next=43;break}if(s=r.value,s.iUserSetState!==Yc.modify||s.cUserName!==n.userName){t.next=40;break}return t.next=30,n.device.loginDes();case 30:return o=t.sent,o.password=s.cPassword,t.next=34,n.device.close();case 34:return t.next=36,B["a"].modifyDevice(n.handle,o);case 36:n.device.open(),p["a"].exitCurrentInterface(),t.next=41;break;case 40:s.iUserSetState===Yc.delete?n.user.usernum--:i.push(s);case 41:t.next=25;break;case 43:t.next=48;break;case 45:t.prev=45,t.t2=t["catch"](23),a.e(t.t2);case 48:return t.prev=48,a.f(),t.finish(48);case 51:n.user.user=i.map((function(e){return e.iUserSetState=Yc.none,e}));case 52:case"end":return t.stop()}}),t,null,[[1,8],[13,17],[23,45,48,51]])})))()},getOnlineUser:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getOnlineUserCfg();case 3:e.online=t.sent,t.next=12;break;case 7:if(t.prev=7,t.t0=t["catch"](0),e.isBattery){t.next=12;break}throw C["a"].error("user.vue > getOnlineUser: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,7]])})))()},loginLockSwitch:function(e){var t=this,n=this.loginLock;Li["a"].changingEffect(n,(function(){t.iLoginLock=n.isOpen=e}),this.setLoginLock,this.iLoginLock)},getLoginLock:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getLoginLock();case 3:e.iLoginLock=t.sent,e.loginLock.isOpen=e.iLoginLock,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("user.vue > getLoginLock: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setLoginLock:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setLoginLock(n.iLoginLock);case 3:i.next=10;break;case 5:throw i.prev=5,i.t0=i["catch"](0),t||(n.iLoginLock=e,n.loginLock.isOpen=e),C["a"].error("user.vue > setLoginLock: ",i.t0),new Error;case 10:case"end":return i.stop()}}),i,null,[[0,5]])})))()},addUser:function(){var e=this;this.$store.commit("MODIFY_STORE_USER_ARR",Object(l["g"])(this.user)),this.$store.commit("SET_SCHEDULE_CALLBACK",(function(t){var n=Object(l["g"])(e.user);e.user.user.splice(e.user.usernum,1,t),e.user.usernum++,Li["a"].saveEffect(e.$store,n,e.setUser,(function(){return null}),(function(){e.$store.commit("MODIFY_STORE_USER_ARR",Object(l["g"])(e.user)),e.$store.commit("SET_DIALOGID","")}))})),this.$store.commit("SET_DIALOGID","addUser")},changePassword:function(e){var t=this;this.$store.commit("MODIFY_STORE_USER",Object(l["g"])(this.user.user[e])),this.$store.commit("SET_SCHEDULE_CALLBACK",(function(n){var i=Object(l["g"])(t.user);t.$set(t.user.user,e,Object(l["g"])(n)),Li["a"].saveEffect(t.$store,i,t.setUser,(function(){return null}),(function(){t.$store.commit("MODIFY_STORE_USER_ARR",Object(l["g"])(t.user)),t.$store.commit("SET_DIALOGID","")}))})),this.$store.commit("SET_DIALOGID","editOneself")},deleteUser:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:i={type:"message",message:t.$t("remoteConfig_user_deleteUser"),defaultBtnValue:0,buttons:[{title:t.$t("common_dialog_cancel_button"),value:0,class:"ghost-button",key:27},{title:t.$t("common_dialog_ok_button"),value:1,key:13}]},p["a"].openMessageDialog(t,i,(function(){t.deleteUserCallback(e)}));case 2:case"end":return n.stop()}}),n)})))()},deleteUserCallback:function(e){var t=JSON.parse(JSON.stringify(this.user));this.$set(this.user.user[e],"iUserSetState",Yc.delete),Li["a"].saveEffect(this.$store,t,this.setUser)},modifyUser:function(e){var t=this;this.$store.commit("MODIFY_STORE_USER",JSON.parse(JSON.stringify(this.user.user[e]))),this.$store.commit("SET_SCHEDULE_CALLBACK",(function(n){var i=JSON.parse(JSON.stringify(t.user));t.$set(t.user.user,e,JSON.parse(JSON.stringify(n))),Li["a"].saveEffect(t.$store,i,t.setUser,(function(){return null}),(function(){t.$store.commit("MODIFY_STORE_USER_ARR",Object(l["g"])(t.user)),t.$store.commit("SET_DIALOGID","")}))})),this.$store.commit("SET_DIALOGID","editUser")}}}),Eu=Au,xu=(n("c86d"),Object(g["a"])(Eu,Su,ku,!1,null,null,null)),Ou=xu.exports,Iu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"config-context-inner"},[n("remoteTitleBar",{attrs:{title:e.$t("remote_config_page_system_section_date_and_time_item_label")}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"date-time config-scroll-box"},[n("div",{staticClass:"time-show"},[n("div",{staticClass:"current-time-title flex"},[n("span",{staticClass:"time-mark-icon icon-client_timerecord"}),n("span",[e._v(e._s(e.$t("date_and_time_settings_page_current_time")))]),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isEditing,expression:"!isEditing"}],staticClass:"cell-inner edit-icon",attrs:{title:e.$t("common_view_settings")},on:{click:e.editSysTimeAndDst}},[n("span",{staticClass:"btn-icon icon-client_timeline"})])]),n("div",{staticClass:"timezone-dst-show"},[n("p",{staticClass:"text"},[e._v(e._s(e.timeZone.zone.text))]),e.dst.bEnable?[n("p",{staticClass:"text"},[e._v(e._s(e.$t("common_dst_title"))+" : "+e._s(e.dstOffsetString(e.dst.iOffset)))]),n("p",{staticClass:"text"},[e._v(e._s(e.dstTimeFormatString(e.dst)))])]:e._e()],2),n("div",{staticClass:"detail-time flex small-title"},[n("h4",{staticClass:"date-box"},[e._v(e._s(e.timeInfo.dateVal))]),n("h4",{staticClass:"time-box"},[n("span",{staticClass:"time-cell"},[e._v(e._s(e.timeInfo.timeVal))]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeInfo.timeSign,expression:"timeInfo.timeSign"}]},[e._v(e._s(e.timeInfo.timeSign))])])]),e.isEditing?n("div",{staticClass:"time-setting-wrap"},[e.isConfirming?n("div",{staticClass:"confirm-wrap"},[n("div",{staticClass:"modified-time-info"},[n("div",{staticClass:"modified-time-title"},[n("span",{staticClass:"time-mark-icon icon-client_setting"}),n("span",[e._v(e._s(e.$t("date_and_time_settings_page_modified_time")))])]),n("div",{staticClass:"timezone-dst-show"},[n("p",{staticClass:"text"},[e._v(e._s(e.confirmTimeZone.zone.text))]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.confirmDst.bEnable,expression:"confirmDst.bEnable"}]},[n("p",{staticClass:"text"},[e._v(e._s(e.$t("common_dst_title"))+" : "+e._s(e.dstOffsetString(e.confirmDst.iOffset)))]),n("p",{staticClass:"text"},[e._v(e._s(e.dstTimeFormatString(e.confirmDst)))])])]),n("div",{staticClass:"detail-time flex small-title"},[n("h4",{staticClass:"date-box"},[e._v(e._s(e.confirmTimeInfo.dateVal))]),n("h4",{staticClass:"time-box"},[n("span",{staticClass:"time-cell"},[e._v(e._s(e.confirmTimeInfo.timeVal))]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.confirmTimeInfo.timeSign,expression:"confirmTimeInfo.timeSign"}]},[e._v(e._s(e.confirmTimeInfo.timeSign))])])])]),n("div",{staticClass:"btns-wrap time-save-btns flex"},[n("button",{staticClass:"ghost-button",attrs:{"reo-element":""},on:{click:e.cancelEditTime}},[e._v(e._s(e.$t("common_dialog_cancel_button")))]),n("button",{attrs:{"reo-element":""},on:{click:e.saveDstAndTimeCfg}},[e._v(e._s(e.$t("common_dialog_ok_button")))])])]):n("div",{staticClass:"edit-wrap"},[n("div",{staticClass:"timezone-selecting-wrap"},[n("h5",{staticClass:"title"},[e._v(e._s(e.$t("date_and_time_settings_time_zone_page_title")))]),n("selectBox",{staticClass:"long-select-box",attrs:{flag:e.iTimeZone.flag,currentVal:e.iTimeZone.currentVal,options:e.iTimeZone.options},on:{selectChanged:e.timeZoneSelect}})],1),n("div",{staticClass:"dst-enable-wrap"},[n("h5",{staticClass:"title"},[e._v(e._s(e.$t("common_dst_title")))]),n("slideBtn",e._b({on:{stateChange:e.dstSwitch}},"slideBtn",e.dstEnableStatus,!1))],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.dstEnableStatus.isOpen,expression:"dstEnableStatus.isOpen"}],staticClass:"dst-selecting-wrap"},[n("p",{staticClass:"text"},[e._v(e._s(e.$t("date_and_time_settings_dst_settings_offset_page_title")))]),n("selectBox",{staticClass:"middle-select-box",attrs:{flag:e.iOffset.flag,currentVal:e.iOffset.currentVal,options:e.iOffset.options},on:{selectChanged:e.dstSelect}}),n("p",{staticClass:"text"},[e._v(e._s(e.$t("timelapse_scene_starttime")))]),n("div",{staticClass:"flex"},[n("selectBox",{staticClass:"middle-select-box",attrs:{flag:e.iStartMonth.flag,currentVal:e.iStartMonth.currentVal,options:e.iStartMonth.options},on:{selectChanged:e.dstSelect}}),n("selectBox",{staticClass:"middle-select-box",attrs:{flag:e.iStartIndex.flag,currentVal:e.iStartIndex.currentVal,options:e.iStartIndex.options},on:{selectChanged:e.dstSelect}}),n("selectBox",{staticClass:"middle-select-box",attrs:{flag:e.iStartWeekday.flag,currentVal:e.iStartWeekday.currentVal,options:e.iStartWeekday.options},on:{selectChanged:e.dstSelect}})],1),n("div",{staticClass:"flex"},[n("selectBox",{staticClass:"short-select-box",attrs:{flag:e.iStartHour.flag,currentVal:e.iStartHour.currentVal,options:e.iStartHour.options},on:{selectChanged:e.dstSelect}}),n("selectBox",{staticClass:"short-select-box",attrs:{flag:e.iStartMinute.flag,currentVal:e.iStartMinute.currentVal,options:e.iStartMinute.options},on:{selectChanged:e.dstSelect}}),n("selectBox",{staticClass:"short-select-box",attrs:{flag:e.iStartSecond.flag,currentVal:e.iStartSecond.currentVal,options:e.iStartSecond.options},on:{selectChanged:e.dstSelect}})],1),n("p",{staticClass:"text"},[e._v(e._s(e.$t("timelapse_endtime")))]),n("div",{staticClass:"flex"},[n("selectBox",{staticClass:"middle-select-box",attrs:{flag:e.iEndMonth.flag,currentVal:e.iEndMonth.currentVal,options:e.iEndMonth.options},on:{selectChanged:e.dstSelect}}),n("selectBox",{staticClass:"middle-select-box",attrs:{flag:e.iEndIndex.flag,currentVal:e.iEndIndex.currentVal,options:e.iEndIndex.options},on:{selectChanged:e.dstSelect}}),n("selectBox",{staticClass:"middle-select-box",attrs:{flag:e.iEndWeekday.flag,currentVal:e.iEndWeekday.currentVal,options:e.iEndWeekday.options},on:{selectChanged:e.dstSelect}})],1),n("div",{staticClass:"flex"},[n("selectBox",{staticClass:"short-select-box",attrs:{flag:e.iEndHour.flag,currentVal:e.iEndHour.currentVal,options:e.iEndHour.options},on:{selectChanged:e.dstSelect}}),n("selectBox",{staticClass:"short-select-box",attrs:{flag:e.iEndMinute.flag,currentVal:e.iEndMinute.currentVal,options:e.iEndMinute.options},on:{selectChanged:e.dstSelect}}),n("selectBox",{staticClass:"short-select-box",attrs:{flag:e.iEndSecond.flag,currentVal:e.iEndSecond.currentVal,options:e.iEndSecond.options},on:{selectChanged:e.dstSelect}})],1)],1),n("h5",{staticClass:"title"},[e._v(e._s(e.$t("remote_config_page_system_section_date_and_time_item_label")))]),e.isBattery?n("div",[e._v(e._s(e.$t("date_and_time_settings_page_time_not_support_modify")))]):n("div",{staticClass:"ntp-setting-wrap"},[n("p",{staticClass:"text"},[e._v(e._s(e.$t("STR_NETWORK_MENU_ADVANCED_STATIC_NTP")))]),n("label",{staticClass:"flex check-box",class:{checked:e.ntp.bEnable},attrs:{checkbox:""}},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.ntp.bEnable,expression:"ntp.bEnable",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"checkbox"},domProps:{checked:Array.isArray(e.ntp.bEnable)?e._i(e.ntp.bEnable,null)>-1:e.ntp.bEnable},on:{change:function(t){var n=e.ntp.bEnable,i=t.target,a=!!i.checked;if(Array.isArray(n)){var r=null,s=e._i(n,r);i.checked?s<0&&e.$set(e.ntp,"bEnable",n.concat([r])):s>-1&&e.$set(e.ntp,"bEnable",n.slice(0,s).concat(n.slice(s+1)))}else e.$set(e.ntp,"bEnable",a)}}}),n("span",{staticClass:"check-icon icon-client_check",attrs:{checkicon:""}}),n("span",{staticClass:"choose-clue"},[e._v(e._s(e.$t("remoteConfig_ntpSetting_autoSynchronize")))])]),!1===e.ntp.bEnable?n("div",{staticClass:"flex synchronize-selecting-wrap"},[n("div",{staticClass:"date-selecting-wrap"},[n("div",{staticClass:"date-btn flex",class:{active:e.isDateSelecting},on:{click:function(t){t.stopPropagation(),e.isDateSelecting=!e.isDateSelecting}}},[n("span",{staticClass:"calendar-icon icon-client_calendar"}),n("span",{staticClass:"cur-calendar-date"},[e._v(e._s(e.confirmSysDate))])]),n("calendar",{directives:[{name:"show",rawName:"v-show",value:e.isDateSelecting,expression:"isDateSelecting"}],staticClass:"calendar",attrs:{selectedDate:e.selectedDate},on:{onChangeDay:e.onChangeDay}})],1),n("selectBox",{staticClass:"short-select-box",attrs:{flag:e.iHour.flag,currentVal:e.iHour.currentVal,options:e.iHour.options},on:{selectChanged:e.sysTimeSelect}}),n("selectBox",{staticClass:"short-select-box",attrs:{flag:e.iMin.flag,currentVal:e.iMin.currentVal,options:e.iMin.options},on:{selectChanged:e.sysTimeSelect}}),n("selectBox",{staticClass:"short-select-box",attrs:{flag:e.iSecond.flag,currentVal:e.iSecond.currentVal,options:e.iSecond.options},on:{selectChanged:e.sysTimeSelect}})],1):[n("h5",{staticClass:"text ntp-interval"},[e._v(e._s(e.$t("remoteConfig_ntpSetting_synchronizeEvery")+" (60~65535)"))]),n("simpleInput",{staticClass:"synchronizeEvery-input-wrap",attrs:{targetValue:e.ntp.iInterval,isNumber:!0,isLazy:!1,max:65535,min:60},on:{inputChanged:function(t){e.ntp.iInterval=t}}},[n("span",{staticClass:"synchronizeEvery-unit"},[e._v(e._s(e.$t("common_multiMins")))])])]],2),n("div",{staticClass:"btns-wrap time-setting-btns flex"},[n("button",{staticClass:"ghost-button",attrs:{"reo-element":""},on:{click:e.cancelEditTime}},[e._v(e._s(e.$t("common_dialog_cancel_button")))]),n("button",{attrs:{"reo-element":""},on:{click:e.next}},[e._v(e._s(e.$t("common_dialog_ok_button")))])])])]):e._e()]),e.eTimeFormat.support?n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("date_and_time_settings_page_time_format")))]),n("selectBox",e._b({staticClass:"select-box ",on:{selectChanged:e.dateTimeFormatSelect}},"selectBox",e.eTimeFormat,!1))],1):e._e(),e.eDateFormat.support?n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_dateTime_dateFormat")))]),n("selectBox",e._b({staticClass:"select-box",on:{selectChanged:e.dateTimeFormatSelect}},"selectBox",e.eDateFormat,!1))],1):e._e(),e.isBattery?e._e():n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("STR_NETWORK_MENU_ADVANCED_STATIC_NTP")))]),n("button",{staticClass:"gray-button",attrs:{"reo-element":""},on:{click:e.syncNtpTime}},[e._v(e._s(e.$t("common_view_synchronize")))])])]),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:function(t){return e.init()}}}):e._e()],1)},Du=[],Tu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"calendar",on:{click:function(e){e.stopPropagation()}}},[n("div",{staticClass:"calendar-header flex-between"},[n("div",{staticClass:"year-month-box"},[e.dateForm===e.EDateForm.YMD?[n("span",{staticClass:"left-wrap year-wrap"},[e._v(e._s(e.currentYear))]),e._v("/ "),n("span",{staticClass:"month-wrap"},[e._v(e._s(e.stringCurrentMonth))])]:[n("span",{staticClass:"left-wrap month-wrap"},[e._v(e._s(e.stringCurrentMonth))]),e._v("/ "),n("span",{staticClass:"year-wrap"},[e._v(e._s(e.currentYear))])]],2),n("div",{staticClass:"switcher-box flex"},[n("button",{staticClass:"btn-increase switcher-btn",on:{click:function(t){return t.stopPropagation(),e.switcherReduce(t)}}},[n("span",{staticClass:"icon-client_arrow_up switcher-icon ab-center"})]),n("button",{staticClass:"btn-reduce switcher-btn",on:{click:function(t){return t.stopPropagation(),e.switcherIncrease(t)}}},[n("span",{staticClass:"icon-client_arrow_down switcher-icon ab-center"})])])]),n("ul",{staticClass:"calendar-weekDays"},e._l(e.week,(function(t){return n("li",{key:t,staticClass:"calendar-weekDays-week"},[e._v(e._s(t))])})),0),n("div",{staticClass:"calendar-date-container"},[n("transition",{attrs:{name:e.transitionName}},[n("calendar-date",e._b({key:e.stringCompleteDate,staticClass:"calendar-date",on:{changeDate:e.changeDay}},"calendar-date",e.attributes,!1))],1)],1)])},Ru=[],Pu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"calendar-date"},e._l(42,(function(t){return n("div",{key:t,staticClass:"calendar-date-cell"},[0!==e.getTheDay(t)?n("div",{staticClass:"calendar-date-num-box",class:{isInitialDay:e.isInitialDay(e.getTheDay(t)),isSelected:e.isSelected(e.getTheDay(t)),isDot:e.isDot(e.getTheDay(t)),isDisabled:e.isDisabled(e.getTheDay(t))},attrs:{"data-date":e.getTheDay(t)},on:{click:function(n){e.changeDate(e.getTheDay(t))}}},[n("span",{staticClass:"calendar-date-num ab-center"},[e._v(e._s(e.getTheDay(t)))])]):e._e()])})),0)},Lu=[],Mu=u["a"].extend({name:"calendar-date",props:{currentYear:{type:Number,required:!0,validator:function(e){return e>1969&&e<3e3}},currentMonth:{type:Number,required:!0,validator:function(e){return e>0&&e<13}},selectedYear:{type:Number,required:!0,validator:function(e){return e>1969&&e<3e3}},selectedMonth:{type:Number,required:!0,validator:function(e){return e>0&&e<13}},selectedDay:{type:Number,required:!0,validator:function(e){return e>0&&e<32}},initialYear:{type:Number,default:(new Date).getFullYear(),validator:function(e){return e>1969&&e<3e3}},initialMonth:{type:Number,default:(new Date).getMonth()+1,validator:function(e){return e>0&&e<13}},initialDay:{type:Number,default:(new Date).getDate(),validator:function(e){return e>0&&e<32}},dotDates:{type:Array,default:function(){return[]}},disabledDates:{type:Array,default:function(){return[]}}},data:function(){return{week:[this.$t("common_Sun"),this.$t("common_Mon"),this.$t("common_Tue"),this.$t("common_Wed"),this.$t("common_Thu"),this.$t("common_Fri"),this.$t("common_Sat")],isInitialMonth:!0,isSelectedMonth:!0,currentDay:0}},created:function(){this.init()},computed:{frontBlankDayAmount:function(){return this.getWeekIndex(this.currentYear,this.currentMonth,1)},daysInCurrentMonth:function(){return this.getDaysInOneMonth(this.currentYear,this.currentMonth)}},methods:{init:function(){this.initialMonth===this.currentMonth&&this.initialYear===this.currentYear||(this.isInitialMonth=!1),this.selectedMonth===this.currentMonth&&this.selectedYear===this.currentYear||(this.isSelectedMonth=!1)},getDaysInOneMonth:function(e,t){return new Date(e,t,0).getDate()},getWeekIndex:function(e,t,n){return new Date(e,t-1,n).getDay()},getTheDay:function(e){var t=e-this.frontBlankDayAmount;return t>0&&t=new Date(this.currentYear,this.currentMonth,1).getTime()){for(var a=0;a<32;a++)e.push(a);return e}for(var r=0;r<32;r++){if(i<=r)return e;e.push(r)}}return e},attributes:function(){return{currentYear:this.currentYear,currentMonth:this.currentMonth,selectedYear:this.selectedYear,selectedMonth:this.selectedMonth,selectedDay:this.selectedDay,dotDates:this.currentMonthDotDates,disabledDates:this.currentMonthDisabledDates}},selectedYear:function(){return this.selectedDate.getFullYear()},selectedMonth:function(){return this.selectedDate.getMonth()+1},selectedDay:function(){return this.selectedDate.getDate()}},watch:{selectedYear:function(){this.currentYear=this.selectedYear},selectedMonth:function(){this.currentMonth=this.selectedMonth}},methods:{init:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.currentYear=e.selectedYear,e.currentMonth=e.selectedMonth,!y["a"].IS_CLIENT){t.next=7;break}return gt["a"].subscribe("subscribe_settings_dateForm",-1,-1,(function(t){e.dateForm=t.data})),t.next=6,cn["a"].getDateForm();case 6:e.dateForm=t.sent;case 7:e.$emit("onChangeDay",new Date(e.currentYear,e.currentMonth-1,e.selectedDay));case 8:case"end":return t.stop()}}),t)})))()},changeDay:function(e){this.$emit("onChangeDay",new Date(this.currentYear,this.currentMonth-1,e))},switcherIncrease:function(){this.transitionName="increase-fade",this.currentMonth+1>12?(this.currentMonth=1,this.currentYear++):this.currentMonth++,this.$emit("currentDateChange",new Date(this.currentYear,this.currentMonth-1,1))},switcherReduce:function(){this.transitionName="reduce-fade",this.currentMonth-1<1?(this.currentMonth=12,this.currentYear--):this.currentMonth--,this.$emit("currentDateChange",new Date(this.currentYear,this.currentMonth-1,1))}}}),Vu=ju,Uu=(n("89a0"),Object(g["a"])(Vu,Tu,Ru,!1,null,null,null)),Hu=Uu.exports,Gu=u["a"].extend({name:"dateTime",components:{selectBox:Xe["a"],slideBtn:Ci["a"],retry:be["a"],remoteTitleBar:us["a"],calendar:Hu,loadingImg:d["a"],simpleInput:_},data:function(){return{isOnceInited:!1,isLoadingDataRetry:!1,isSettingDefault:!1,isEditing:!1,isConfirming:!1,isDateSelecting:!1,isLoadingNtpInfo:!1,ntp:{},isBattery:!1,device:{},timeInfo:{timer:null,timeSign:"",timestampOffset:0,nowTimestamp:(new Date).getTime(),dateVal:"",timeVal:""},confirmTimeInfo:{timer:null,timeSign:"",timestampOffset:0,nowTimestamp:(new Date).getTime(),dateVal:"",timeVal:""},sys:{validField:"",eTS:N["BC_TVSYSTEM_E"].E_BC_TS_PAL,iTimeZone:1,eDateFormat:N["BC_DATE_TYPE_E"].E_BC_OSD_MDY,eTimeFormat:N["BC_TIME_FMT_E"].OSD_TIME_24,iYear:1,iMonth:1,iDay:1,iHour:1,iMin:1,iSecond:1,iDeviceId:1,iLanguage:1,cDeviceName:"",iLoginLock:0,iLoginLockTime:0,iAllowedLoginTimes:0,iSyncTime:-1,isDst:-1},confirmSys:{},dst:{validField:"",bEnable:!1,iOffset:1,iStartMonth:1,iStartIndex:1,iStartWeekday:1,iStartHour:1,iStartMinute:1,iStartSecond:1,iEndMonth:1,iEndIndex:1,iEndWeekday:1,iEndHour:1,iEndMinute:1,iEndSecond:1,iVersion:1},confirmDst:{},timeZone:Object(l["p"])(),confirmTimeZone:Object(l["p"])(),eDateFormat:{support:!1,isSetting:!1,warnClue:!1,flag:"eDateFormat",currentVal:N["BC_DATE_TYPE_E"].E_BC_OSD_MDY,options:[{value:N["BC_DATE_TYPE_E"].E_BC_OSD_MDY,name:this.$t("date_and_time_settings_date_format_page_month_day_year")},{value:N["BC_DATE_TYPE_E"].E_BC_OSD_YMD,name:this.$t("date_and_time_settings_date_format_page_year_month_day")},{value:N["BC_DATE_TYPE_E"].E_BC_OSD_DMY,name:this.$t("date_and_time_settings_date_format_page_day_month_year")}]},eTimeFormat:{support:!1,isSetting:!1,warnClue:!1,flag:"eTimeFormat",currentVal:N["BC_TIME_FMT_E"].OSD_TIME_24,options:[{value:N["BC_TIME_FMT_E"].OSD_TIME_24,name:this.$t("remoteConfig_dateTime_24hour")},{value:N["BC_TIME_FMT_E"].OSD_TIME_12,name:this.$t("remoteConfig_dateTime_12hour")}]},selectedDate:new Date,iHour:{currentVal:0,flag:"iHour",options:[]},iMin:{currentVal:0,flag:"iMin",options:[]},iSecond:{currentVal:0,flag:"iSecond",options:[]},iTimeZone:{flag:"iTimeZone",currentVal:0,options:[]},dstEnableStatus:{isOpen:!1,isSetting:!1,warnClue:!1},offsetOptions:[{value:1,name:this.$t("date_and_time_settings_dst_settings_offset_page_offset_one_hour")},{value:2,name:this.$t("date_and_time_settings_dst_settings_offset_page_offset_two_hour")}],iOffset:{flag:"iOffset",currentVal:1,options:[]},monthOptions:[{value:1,name:this.$t("date_and_time_settings_dst_settings_page_1_month_tip")},{value:2,name:this.$t("date_and_time_settings_dst_settings_page_2_month_tip")},{value:3,name:this.$t("date_and_time_settings_dst_settings_page_3_month_tip")},{value:4,name:this.$t("date_and_time_settings_dst_settings_page_4_month_tip")},{value:5,name:this.$t("date_and_time_settings_dst_settings_page_5_month_tip")},{value:6,name:this.$t("date_and_time_settings_dst_settings_page_6_month_tip")},{value:7,name:this.$t("date_and_time_settings_dst_settings_page_7_month_tip")},{value:8,name:this.$t("date_and_time_settings_dst_settings_page_8_month_tip")},{value:9,name:this.$t("date_and_time_settings_dst_settings_page_9_month_tip")},{value:10,name:this.$t("date_and_time_settings_dst_settings_page_10_month_tip")},{value:11,name:this.$t("date_and_time_settings_dst_settings_page_11_month_tip")},{value:12,name:this.$t("date_and_time_settings_dst_settings_page_12_month_tip")}],iStartMonth:{flag:"iStartMonth",currentVal:1,options:[]},iEndMonth:{flag:"iEndMonth",currentVal:1,options:[]},weekIndexOptions:[{value:1,name:this.$t("date_and_time_settings_dst_settings_page_1st_tip")+" "+this.$t("date_and_time_settings_dst_settings_page_week_tip")},{value:2,name:this.$t("date_and_time_settings_dst_settings_page_2nd_tip")+" "+this.$t("date_and_time_settings_dst_settings_page_week_tip")},{value:3,name:this.$t("date_and_time_settings_dst_settings_page_3rd_tip")+" "+this.$t("date_and_time_settings_dst_settings_page_week_tip")},{value:4,name:this.$t("date_and_time_settings_dst_settings_page_4th_tip")+" "+this.$t("date_and_time_settings_dst_settings_page_week_tip")},{value:5,name:this.$t("date_and_time_settings_dst_settings_page_last_tip")+" "+this.$t("date_and_time_settings_dst_settings_page_week_tip")}],iStartIndex:{flag:"iStartIndex",currentVal:1,options:[]},iEndIndex:{flag:"iEndIndex",currentVal:1,options:[]},weekdayOptions:[{value:0,name:this.$t("common_week_sunday")},{value:1,name:this.$t("common_week_monday")},{value:2,name:this.$t("common_week_tuesday")},{value:3,name:this.$t("common_week_wednesday")},{value:4,name:this.$t("common_week_thursday")},{value:5,name:this.$t("common_week_friday")},{value:6,name:this.$t("common_week_saturday")}],iStartWeekday:{flag:"iStartWeekday",currentVal:1,options:[]},iEndWeekday:{flag:"iEndWeekday",currentVal:1,options:[]},iStartHour:{currentVal:0,flag:"iStartHour",options:[]},iStartMinute:{currentVal:0,flag:"iStartMinute",options:[]},iStartSecond:{currentVal:0,flag:"iStartSecond",options:[]},iEndHour:{currentVal:0,flag:"iEndHour",options:[]},iEndMinute:{currentVal:0,flag:"iEndMinute",options:[]},iEndSecond:{currentVal:0,flag:"iEndSecond",options:[]},dstInfoAboutDeviceTime:{iDst:-1,dstHourOffset:0}}},computed:{isConfigContextLoading:function(){return this.$store.getters.configContextLoading},handle:function(){return this.$store.getters.deviceHandle},confirmSysDate:function(){var e=this.confirmSys;return this.getFormattedDateVal({year:e.iYear,month:e.iMonth,date:e.iDay})}},watch:{handle:{handler:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.init();case 1:case"end":return t.stop()}}),t)})))()},immediate:!0},isDateSelecting:function(e,t){!e&&t?window.removeEventListener("click",this.clickListener):e&&!t&&window.addEventListener("click",this.clickListener)}},created:function(){for(var e=this,t=0;t<24;t++)for(var n=t<10?"0"+t:""+t,i=[this.iStartHour,this.iEndHour,this.iHour],a=0,s=i;a saveDstAndTimeCfg > getSystem: ",t.t0);case 25:e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].succeed),e.$store.commit("HANDLE_LOADING",!1),e.isEditing=!1,t.next=35;break;case 30:t.prev=30,t.t1=t["catch"](1),C["a"].error("dateTime.vue > saveDstAndTimeCfg: ",t.t1),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),e.$store.commit("HANDLE_LOADING",!1);case 35:case"end":return t.stop()}}),t,null,[[1,30],[13,22]])})))()},updateCfgFromDevice:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.getDst(),e.getSystem()]);case 3:e.dstInfoAboutDeviceTime.iDst=e.sys.isDst,e.dstInfoAboutDeviceTime.dstHourOffset=e.dst.iOffset,t.next=11;break;case 7:t.prev=7,t.t0=t["catch"](0),C["a"].error("dateTime.vue > updateCfgFromDevice: ",t.t0),e.timeLoop();case 11:if(e.isBattery||e.isEditing){t.next=14;break}return t.next=14,e.getNtp();case 14:e.isConfirming&&(e.isBattery||e.ntp.bEnable?e.getComputedConfirmSys():e.timeLoop(!0));case 15:case"end":return t.stop()}}),t,null,[[0,7]])})))()},init:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!0),t.prev=1,e.isLoadingDataRetry=!1,t.next=5,B["a"].getDeviceWithHandle(e.handle);case 5:return e.device=t.sent,t.next=8,Promise.all([e.getSupport(),e.getDst()]);case 8:if(e.isBattery){t.next=11;break}return t.next=11,e.getNtp();case 11:return t.next=13,e.getSystem();case 13:e.dstInfoAboutDeviceTime.iDst=e.sys.isDst,e.dstInfoAboutDeviceTime.dstHourOffset=e.dst.iOffset,t.next=21;break;case 17:t.prev=17,t.t0=t["catch"](1),e.isLoadingDataRetry=!0,C["a"].error("dateTime.vue > init dateTime: ",t.t0);case 21:e.isEditing=!1,e.isConfirming=!1,e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!1);case 24:case"end":return t.stop()}}),t,null,[[1,17]])})))()},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.device.isBattery(),e.device.supportTimeFormat(),e.device.supportDateFormat()]);case 3:n=t.sent,i=Object(T["a"])(n,3),e.isBattery=i[0],e.eTimeFormat.support=i[1],e.eDateFormat.support=i[2],t.next=15;break;case 11:throw t.prev=11,t.t0=t["catch"](0),C["a"].error("dateTime.vue > getSupport > supportTimeFormat or supportDateFormat: ",t.t0),new Error;case 15:case"end":return t.stop()}}),t,null,[[0,11]])})))()},getSystem:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getSysGeneralCfg();case 3:e.sys=t.sent,e.sysUpdate(!1),t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("dateTime.vue > getSystem > getSysGeneralCfg: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setDateTimeFormat:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setSysGeneralCfg(Object(ct["a"])(Object(ct["a"])({},n.sys),{},{validField:" "}));case 3:i.next=10;break;case 5:throw i.prev=5,i.t0=i["catch"](0),t||(n.sys=e,n.sysUpdate(!1,!1,!1)),C["a"].error("dateTime.vue > setDateTimeFormat > setSysGeneralCfg: ",i.t0),new Error;case 10:case"end":return i.stop()}}),i,null,[[0,5]])})))()},setSystemAfterConfirming:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!t.isBattery&&!t.ntp.bEnable||t.confirmSys.iTimeZone!==t.sys.iTimeZone){n.next=3;break}return t.timeInfo.timestampOffset=t.timeInfo.timestampOffset+3600*e*1e3,n.abrupt("return");case 3:return n.prev=3,i={},a=new Date(t.confirmTimeInfo.nowTimestamp),r=Object(ct["a"])(Object(ct["a"])({},t.sys),{},{iTimeZone:t.confirmSys.iTimeZone,iYear:a.getFullYear(),iMonth:a.getMonth()+1,iDay:a.getDate(),iHour:a.getHours(),iMin:a.getMinutes(),iSecond:a.getSeconds()}),i=t.isBattery||t.ntp.bEnable?Object(ct["a"])(Object(ct["a"])({},t.sys),{},{validField:"",iTimeZone:t.confirmSys.iTimeZone}):r,n.next=10,t.device.config.setSysGeneralCfg(i);case 10:t.confirmSys=r,t.sysUpdate(!0),t.sys=Object(l["g"])(t.confirmSys),t.timeInfo.timestampOffset=t.confirmTimeInfo.timestampOffset,t.sysUpdate(!1,!1),n.next=30;break;case 17:if(n.prev=17,n.t0=n["catch"](3),C["a"].error("dateTime.vue > setSystemAfterConfirming > setSysGeneralCfg: ",n.t0),!e){n.next=29;break}return t.timeInfo.timestampOffset=t.timeInfo.timestampOffset+3600*e*1e3,n.next=24,t.getSystem();case 24:t.dstInfoAboutDeviceTime.iDst=t.sys.isDst,t.dstInfoAboutDeviceTime.dstHourOffset=t.dst.iOffset,t.confirmSys=Object(ct["a"])(Object(ct["a"])({},t.sys),{},{iTimeZone:t.confirmSys.iTimeZone}),t.confirmTimeInfo.timestampOffset=t.timeInfo.timestampOffset+1e3*(t.sys.iTimeZone-t.confirmSys.iTimeZone),t.sysUpdate(!0,!1);case 29:throw new Error;case 30:case"end":return n.stop()}}),n,null,[[3,17]])})))()},getDst:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getDst();case 3:e.dst=t.sent,t.next=10;break;case 6:throw t.prev=6,t.t0=t["catch"](0),C["a"].error("dateTime.vue > getDst: ",t.t0),new Error;case 10:case"end":return t.stop()}}),t,null,[[0,6]])})))()},setDst:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,n=new Date(e.timeInfo.nowTimestamp),i=Object(ct["a"])(Object(ct["a"])({},e.sys),{},{iTimeZone:e.confirmSys.iTimeZone,iYear:n.getFullYear(),iMonth:n.getMonth()+1,iDay:n.getDate(),iHour:n.getHours(),iMin:n.getMinutes(),iSecond:n.getSeconds()}),a=e.getHourOffsetFromDst(e.dst,e.confirmDst,i),t.next=6,e.device.config.setDst(e.confirmDst);case 6:return e.dst=Object(l["g"])(e.confirmDst),t.abrupt("return",a);case 10:return t.prev=10,t.t0=t["catch"](0),C["a"].error("dateTime.vue > setDst: ",t.t0),t.abrupt("return",0);case 14:case"end":return t.stop()}}),t,null,[[0,10]])})))()},sysUpdate:function(e){var t,n,i,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e?(t=this.confirmSys,n=this.confirmTimeZone,i=this.confirmTimeInfo):(t=this.sys,n=this.timeZone,i=this.timeInfo);var s=n.options.find((function(e){return e.value===t.iTimeZone}));s&&(n.zone=Object(ct["a"])({},s)),e?(this.selectedDate=new Date(t.iYear,t.iMonth-1,t.iDay),this.iHour.currentVal=t.iHour,this.iMin.currentVal=t.iMin,this.iSecond.currentVal=t.iSecond,this.iTimeZone.currentVal=t.iTimeZone):(this.eDateFormat.currentVal=t.eDateFormat,this.eTimeFormat.currentVal=t.eTimeFormat),a&&(i.timestampOffset=new Date(t.iYear,t.iMonth-1,t.iDay,t.iHour,t.iMin,t.iSecond).getTime()-(new Date).getTime()),i.nowTimestamp=(new Date).getTime()+i.timestampOffset,this.updateFormattedDateAndTime(e),r&&this.timeLoop(e)},dstUpdate:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e)for(var t=Object.keys(this.confirmDst),n=0,i=t;n0&&void 0!==arguments[0]&&arguments[0];e=n?this.confirmTimeInfo:this.timeInfo,e.timer&&clearTimeout(e.timer),e.timer=setTimeout((function(){e.nowTimestamp=(new Date).getTime()+e.timestampOffset,t.updateFormattedDateAndTime(n),t.timeLoop(n)}),500)},updateFormattedDateAndTime:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e=t?this.confirmTimeInfo:this.timeInfo;var n=Object(l["n"])(e.nowTimestamp);e.dateVal=this.getFormattedDateVal(n);var i=this.getFormattedTimeVal(n),a=Object(T["a"])(i,2);e.timeVal=a[0],e.timeSign=a[1]},dstSwitch:function(e){var t=Object(l["g"])(this.confirmDst),n=this.dstEnableStatus;this.confirmDst.bEnable=n.isOpen=e;var i=this.getHourOffsetFromDst(t,this.confirmDst,this.confirmSys);this.offsetTime(3600*i,!0)},dstSelect:function(e,t){var n=Object(l["g"])(this.confirmDst),i=this.$data[t];this.confirmDst[t]=i.currentVal=e;var a=this.getHourOffsetFromDst(n,this.confirmDst,this.confirmSys);this.offsetTime(3600*a,!0)},onChangeDay:function(e){this.selectedDate=e,this.confirmSys.iYear=e.getFullYear(),this.confirmSys.iMonth=e.getMonth()+1,this.confirmSys.iDay=e.getDate()},timeZoneSelect:function(e,t){var n=this.confirmSys.iTimeZone,i=this.$data[t];this.confirmSys[t]=i.currentVal=e,this.offsetTime(n-e,!0)},sysTimeSelect:function(e,t){var n=this.$data[t];this.confirmSys[t]=n.currentVal=e},dateTimeFormatSelect:function(e,t){var n=this,i=this.$data[t];Li["a"].changingEffect(i,(function(){n.sys[t]=i.currentVal=e}),this.setDateTimeFormat,JSON.parse(JSON.stringify(this.sys)))},getNtp:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoadingNtpInfo=!0,t.prev=1,t.next=4,e.device.config.getNtp();case 4:e.ntp=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),C["a"].error("dateTime.vue > getNtp: ",t.t0);case 10:e.isLoadingNtpInfo=!1;case 11:case"end":return t.stop()}}),t,null,[[1,7]])})))()},setAutoNtpCfg:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getNtp();case 3:return n=t.sent,n.bEnable=e.ntp.bEnable,e.ntp.bEnable&&(n.iInterval=e.ntp.iInterval),t.next=8,e.device.config.setNtp(n);case 8:t.next=14;break;case 10:throw t.prev=10,t.t0=t["catch"](0),C["a"].error("dateTime.vue > setAutoNtpCfg > getNtp and setNtp: ",ce["a"].errorToJson(t.t0)),new Error;case 14:case"end":return t.stop()}}),t,null,[[0,10]])})))()},syncNtpTime:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("HANDLE_LOADING",!0),t.prev=1,n={},t.prev=3,t.next=6,e.device.config.getNtp();case 6:n=t.sent,n.iInterval=0,t.next=14;break;case 10:throw t.prev=10,t.t0=t["catch"](3),C["a"].error("dateTime.vue > syncNtpTime > getNtp: ",ce["a"].errorToJson(t.t0)),-1;case 14:return t.prev=14,t.next=17,e.device.config.setNtp(n);case 17:t.next=23;break;case 19:throw t.prev=19,t.t1=t["catch"](14),C["a"].error("dateTime.vue > syncNtpTime > setNtp ".concat(JSON.stringify(n),": "),ce["a"].errorToJson(t.t1)),-1;case 23:return t.prev=23,t.next=26,e.getSystem();case 26:e.dstInfoAboutDeviceTime.iDst=e.sys.isDst,t.next=33;break;case 29:throw t.prev=29,t.t2=t["catch"](23),C["a"].error("dateTime.vue > syncNtpTime > getSystem: ",ce["a"].errorToJson(t.t2)),-1;case 33:i=new Date(e.timeInfo.nowTimestamp),e.confirmSys=Object(ct["a"])(Object(ct["a"])({},e.sys),{},{iTimeZone:e.confirmSys.iTimeZone,iYear:i.getFullYear(),iMonth:i.getMonth()+1,iDay:i.getDate(),iHour:i.getHours(),iMin:i.getMinutes(),iSecond:i.getSeconds()}),e.sysUpdate(!0,!0,!1),a=e.getHourOffsetFromDst(e.dst,e.confirmDst,e.confirmSys),r=3600*a+e.sys.iTimeZone-e.confirmSys.iTimeZone,e.offsetTime(r,!0),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].succeed),t.next=45;break;case 42:t.prev=42,t.t3=t["catch"](1),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed);case 45:e.$store.commit("HANDLE_LOADING",!1);case 46:case"end":return t.stop()}}),t,null,[[1,42],[3,10],[14,19],[23,29]])})))()},getHourOffsetFromDst:function(e,t,n){var i=1===this.dstInfoAboutDeviceTime.iDst?3600*this.dstInfoAboutDeviceTime.dstHourOffset:0,a=new Date(new Date(n.iYear,n.iMonth-1,n.iDay,n.iHour,n.iMin,n.iSecond).getTime()-1e3*i),r=Object(ct["a"])(Object(ct["a"])({},n),{},{iYear:a.getFullYear(),iMonth:a.getMonth()+1,iDay:a.getDate(),iHour:a.getHours(),iMin:a.getMinutes(),iSecond:a.getSeconds()}),s=this.isInDst(r,e),o=this.isInDst(r,t);return s&&!o?-e.iOffset:!s&&o?t.iOffset:s&&o?t.iOffset-e.iOffset:0},offsetTime:function(e,t){if(e){var n;n=t?Object(l["g"])(this.confirmSys):Object(l["g"])(this.sys);var i=new Date(new Date(n.iYear,n.iMonth-1,n.iDay,n.iHour,n.iMin,n.iSecond).getTime()+1e3*e);n=Object(ct["a"])(Object(ct["a"])({},n),{},{iYear:i.getFullYear(),iMonth:i.getMonth()+1,iDay:i.getDate(),iHour:i.getHours(),iMin:i.getMinutes(),iSecond:i.getSeconds()}),t?this.confirmSys=n:this.sys=n,this.sysUpdate(t,!1,!1)}},isDstEqual:function(){for(var e=Object.keys(this.dst),t=0,n=e;to){if(o=new Date(e.iYear,t.iEndMonth-1,7*(t.iEndIndex-1)+1+(s<0?s+7:s),t.iEndHour-t.iOffset,t.iEndMinute,t.iEndSecond).getTime(),c>r||cr&&c0?a<10?"0"+a:""+a:0===~~t?"12":t,[t+":"+n+":"+i," ".concat(a<0?this.$t("common_AM"):this.$t("common_PM"))]},dstOffsetString:function(e){var t,n="",i=Object(ne["a"])(this.offsetOptions);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a.value===e){n=a.name;break}}}catch(r){i.e(r)}finally{i.f()}return n},dstTimeFormatString:function(e){var t,n="",i="",a="",r="",s="",o="",c=Object(ne["a"])(this.monthOptions);try{for(c.s();!(t=c.n()).done;){var u=t.value;if(u.value===e.iStartMonth&&(n=u.name),u.value===e.iEndMonth&&(r=u.name),n&&r)break}}catch(k){c.e(k)}finally{c.f()}var l,d=Object(ne["a"])(this.weekIndexOptions);try{for(d.s();!(l=d.n()).done;){var p=l.value;if(p.value===e.iStartIndex&&(i=p.name),p.value===e.iEndIndex&&(s=p.name),i&&s)break}}catch(k){d.e(k)}finally{d.f()}var h,m=Object(ne["a"])(this.weekdayOptions);try{for(m.s();!(h=m.n()).done;){var g=h.value;if(g.value===e.iStartWeekday&&(a=g.name),g.value===e.iEndWeekday&&(o=g.name),a&&o)break}}catch(k){m.e(k)}finally{m.f()}var f=this.getFormattedTimeVal({hour:e.iStartHour,minute:e.iStartMinute,second:e.iStartSecond}),_=Object(T["a"])(f,2),v=_[0],b=_[1],w=this.getFormattedTimeVal({hour:e.iEndHour,minute:e.iEndMinute,second:e.iEndSecond}),C=Object(T["a"])(w,2),y=C[0],S=C[1];return"".concat(n," ").concat(i," ").concat(a," ").concat(v).concat(b)+" - ".concat(r," ").concat(s," ").concat(o," ").concat(y).concat(S)}}}),Wu=Gu,zu=(n("dbdf"),Object(g["a"])(Wu,Iu,Du,!1,null,"4984625f",null)),Yu=zu.exports,qu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"config-context-inner"},[n("remoteTitleBar",{attrs:{title:e.$t("remoteConfig_Maintenance_title")}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"maintenance config-scroll-box"},[e.showUpgradeEntry?n("div",{staticClass:"entry-btn flex-between",on:{click:e.toUpgradeSettingPage}},[n("div",{staticClass:"flex"},[n("span",{staticClass:"icon icon-setting_upgrade"}),n("span",[e._v(e._s(e.$t("common_firmwareUpgrade")))])]),n("span",{staticClass:"msg-arrow icon-client_next"})]):e._e(),!e.isBattery&&e.autoFocusStatus.support?n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_Maintenance_autoFocus")))]),n("slideBtn",e._b({on:{stateChange:e.autoFocusSwitch}},"slideBtn",e.autoFocusStatus,!1))],1):e._e(),e.showExportCfg?n("div",{staticClass:"configuration-box"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_Configuration")))]),n("div",{staticClass:"export-box"},[n("div",{staticClass:"file-box flex"},[n("input",{staticClass:"file-path",attrs:{"reo-element":"",type:"text",readonly:"",title:e.exportCfg.filePath},domProps:{value:e.exportCfg.filePath}}),n("button",{staticClass:"gray-button browse-btn",on:{click:e.exportFileChanged}},[e._v(e._s(e.$t("common_Browse")))])]),""!==e.exportCfg.prompt?n("sysProgress",{attrs:{progressNum:e.exportCfg.progress,isSetting:e.exportCfg.isSetting,warnClue:e.exportCfg.warnClue,filePath:e.exportCfg.filePath,text:e.exportCfg.prompt}}):e._e(),n("button",{staticClass:"gray-button",attrs:{"reo-element":"",disabled:!e.exportCfg.filePath},on:{click:e.exportConfiguration}},[e._v(e._s(e.$t("common_Export")))])],1)]):e._e(),e.isClient&&e.diagnosticLogexportCfg.support?n("div",{staticClass:"configuration-box"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("diagnostic_logs_title")))]),n("div",{staticClass:"export-box"},[n("div",{staticClass:"file-box flex"},[n("input",{staticClass:"file-path",attrs:{"reo-element":"",type:"text",readonly:"",title:e.diagnosticLogexportCfg.filePath},domProps:{value:e.diagnosticLogexportCfg.filePath}}),n("button",{staticClass:"gray-button browse-btn",on:{click:e.diagnosticLogexportFileChanged}},[e._v(e._s(e.$t("common_Browse")))])]),""!==e.diagnosticLogexportCfg.prompt?n("sysProgress",{attrs:{progressNum:e.diagnosticLogexportCfg.progress,isSetting:e.diagnosticLogexportCfg.isSetting,warnClue:e.diagnosticLogexportCfg.warnClue,filePath:e.diagnosticLogexportCfg.filePath,text:e.diagnosticLogexportCfg.prompt}}):e._e(),n("button",{staticClass:"gray-button",attrs:{"reo-element":"",disabled:!e.diagnosticLogexportCfg.filePath},on:{click:e.exportDiagnosticLogexportCfg}},[e._v(e._s(e.$t("common_Export")))])],1)]):e._e(),e.isBattery?e._e():n("div",{staticClass:"auto-reboot"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_Maintenance_autoReboot")))]),n("slideBtn",e._b({on:{stateChange:e.autoRebootSwitch}},"slideBtn",e.autoRebootStatus,!1))],1),e.isBattery?e._e():n("div",{directives:[{name:"show",rawName:"v-show",value:e.autoRebootStatus.isOpen,expression:"autoRebootStatus.isOpen"}],staticClass:"auto-reboot"},[n("h5",{staticClass:"text flex"},[n("span",[e._v(e._s(e.$t("remoteConfig_Maintenance_autoRebootTime")))]),e.autoRebootLoading?n("loadingImg",{staticClass:"loading-img-box"}):e._e(),e.autoRebootWarn?n("span",{staticClass:"icon-client_warning warn-clue-icon"}):e._e()],1),n("selectBox",{staticClass:"select-box",attrs:{flag:e.eDay.flag,currentVal:e.eDay.currentVal,options:e.eDay.options},on:{selectChanged:e.autoRebootSelect}}),n("div",{staticClass:"time-box flex-between"},[n("selectBox",{staticClass:"select-box",attrs:{flag:e.iHour.flag,currentVal:e.iHour.currentVal,options:e.iHour.options,limitOptions:8},on:{selectChanged:e.autoRebootSelect}}),n("selectBox",{staticClass:"select-box",attrs:{flag:e.iMin.flag,currentVal:e.iMin.currentVal,options:e.iMin.options,limitOptions:8},on:{selectChanged:e.autoRebootSelect}}),n("selectBox",{staticClass:"select-box",attrs:{flag:e.iSecond.flag,currentVal:e.iSecond.currentVal,options:e.iSecond.options,limitOptions:8},on:{selectChanged:e.autoRebootSelect}})],1)],1),e.previewReplayLimitStatus.support?n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("auto_disconnect_title")))]),n("p",{staticClass:"notes-text discipline-description"},[e._v(e._s(e.$t("auto_disconnect_des")))]),n("slideBtn",e._b({on:{stateChange:e.previewReplayLimitSwitch}},"slideBtn",e.previewReplayLimitStatus,!1))],1):e._e(),n("div",[n("h5",{staticClass:"text flex"},[e._v(e._s(e.$t("remoteConfig_Maintenance_DefaultSettings")))]),n("button",{staticClass:"warn-button",attrs:{"reo-element":""},on:{click:e.restore}},[e._v(e._s(e.$t("common_Restore")))]),e.supportReboot?n("button",{staticClass:"warn-button",attrs:{"reo-element":""},on:{click:e.reboot}},[e._v(e._s(e.$t("common_Reboot")))]):e._e()])]),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:function(t){return e.init()}}}):e._e()],1)},$u=[],Ku=n("9dd4"),Zu=u["a"].extend({name:"maintenance",components:{selectBox:Xe["a"],slideBtn:Ci["a"],sysProgress:W,retry:be["a"],loadingImg:d["a"],inputFile:ba,remoteTitleBar:us["a"]},data:function(){return{isClient:y["a"].IS_CLIENT,isLoadingDataRetry:!1,isBase:!1,dialogParams:{defaultBtnValue:0,buttons:[{title:this.$t("common_dialog_cancel_button"),value:0,class:"ghost-button",key:27},{title:this.$t("common_dialog_ok_button"),value:1,key:13}]},autoFocus:{iDisable:0},autoReboot:{bEnable:!1,eDay:N["BC_REBOOT_AT_E"].E_BC_RA_EVERY_DAY,iHour:0,iMin:0,iSecond:0},exportCfg:{support:!1,isSetting:!1,warnClue:!1,progress:0,prompt:"",filePath:""},diagnosticLogexportCfg:{support:!1,isSetting:!1,warnClue:!1,progress:0,prompt:"",filePath:""},autoFocusStatus:{support:!1,isOpen:!1,isSetting:!1,warnClue:!1},previewReplayLimit:{closeLimit:0},previewReplayLimitStatus:{support:!1,closeVal:te["EPreviewReplayLimit"].OFF,openVal:te["EPreviewReplayLimit"].ON,isOpen:te["EPreviewReplayLimit"].OFF,isSetting:!1,warnClue:!1},autoRebootStatus:{isOpen:!1,isSetting:!1,warnClue:!1},eDay:{isSetting:!1,warnClue:!1,flag:"eDay",currentVal:N["BC_REBOOT_AT_E"].E_BC_RA_EVERY_DAY,options:[{value:N["BC_REBOOT_AT_E"].E_BC_RA_EVERY_DAY,name:this.$t("common_schedule_page_repeat_dialog_every_day_description")},{value:N["BC_REBOOT_AT_E"].E_BC_RA_EVERY_SUNDAY,name:this.$t("remoteConfig_Maintenance_EverySunday")},{value:N["BC_REBOOT_AT_E"].E_BC_RA_EVERY_MONDAY,name:this.$t("remoteConfig_Maintenance_EveryMonday")},{value:N["BC_REBOOT_AT_E"].E_BC_RA_EVERY_TUESDAY,name:this.$t("remoteConfig_Maintenance_EveryTuesday")},{value:N["BC_REBOOT_AT_E"].E_BC_RA_EVERY_WEDNESDAY,name:this.$t("remoteConfig_Maintenance_EveryWednesday")},{value:N["BC_REBOOT_AT_E"].E_BC_RA_EVERY_THURSDAY,name:this.$t("remoteConfig_Maintenance_EveryThursday")},{value:N["BC_REBOOT_AT_E"].E_BC_RA_EVERY_FRIDAY,name:this.$t("remoteConfig_Maintenance_EveryFriday")},{value:N["BC_REBOOT_AT_E"].E_BC_RA_EVERY_SATURDAY,name:this.$t("remoteConfig_Maintenance_EverySaturday")}]},iHour:{isSetting:!1,warnClue:!1,currentVal:"00",flag:"iHour",options:[]},iMin:{isSetting:!1,warnClue:!1,currentVal:"00",flag:"iMin",options:[]},iSecond:{isSetting:!1,warnClue:!1,currentVal:"00",flag:"iSecond",options:[]},supportAutoUpdate:!1,supportFirmwareUpgrade:!1,device:{},appPlatform:"web",exportFileText:this.$t("common_Browse"),isCheckingUpgrade:!1,supportReboot:!1,ignoreHandleChange:!1,isInUpgradeSettingPage:!1}},computed:{showExportCfg:function(){return!(y["a"].IS_PROD||!y["a"].IS_CLIENT)&&this.exportCfg.support},isConfigContextLoading:function(){return this.$store.getters.configContextLoading},handle:function(){return this.$store.getters.deviceHandle},autoRebootLoading:function(){return this.eDay.isSetting&&!this.eDay.warnClue||this.iHour.isSetting&&!this.iHour.warnClue||this.iMin.isSetting&&!this.iMin.warnClue||this.iSecond.isSetting&&!this.iSecond.warnClue},autoRebootWarn:function(){return!this.eDay.isSetting&&this.eDay.warnClue||!this.iHour.isSetting&&this.iHour.warnClue||!this.iMin.isSetting&&this.iMin.warnClue||!this.iSecond.isSetting&&this.iSecond.warnClue},isBattery:function(){return this.$store.getters.isBattery},showUpgradeEntry:function(){return this.supportAutoUpdate||!this.isBattery&&this.supportFirmwareUpgrade}},created:function(){for(var e=0;e<24;e++){var t=e<10?"0"+e:""+e;this.$set(this.iHour.options,e,{value:t,name:t})}for(var n=0;n<60;n++){var i=n<10?"0"+n:""+n;this.$set(this.iMin.options,n,{value:i,name:i}),this.$set(this.iSecond.options,n,{value:i,name:i})}},beforeRouteEnter:function(e,t,n){n((function(e){"/upgradeSetting"===t.path&&(e.isInUpgradeSettingPage=!1),e.isInUpgradeSettingPage&&n("/upgradeSetting")}))},watch:{handle:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.ignoreHandleChange){e.next=2;break}return e.abrupt("return");case 2:t.init();case 3:case"end":return e.stop()}}),e)})))()},immediate:!0}},methods:{init:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!0),t.prev=1,e.isLoadingDataRetry=!1,t.next=5,B["a"].getDeviceWithHandle(e.handle);case 5:return e.device=t.sent,t.next=8,e.getSupport();case 8:return n=[],e.isBattery||n.push(e.getAutoReboot()),e.autoFocusStatus.support&&n.push(e.getAutoFocus()),e.previewReplayLimitStatus.support&&n.push(e.getPreviewReplayLimitCfg()),t.next=14,Promise.all(n);case 14:t.next=20;break;case 16:t.prev=16,t.t0=t["catch"](1),e.isLoadingDataRetry=!0,C["a"].error("maintenance.vue > init: ",t.t0);case 20:e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!1);case 21:case"end":return t.stop()}}),t,null,[[1,16]])})))()},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.device.isBase(),e.device.supportExport(),e.device.supportAutoUpdate(),e.device.supportUpgrade(),e.device.supportReboot(),e.device.supportPreviewReplayLimit(),e.device.supportDiagnosisData()]);case 3:if(n=t.sent,i=Object(T["a"])(n,7),e.isBase=i[0],e.exportCfg.support=i[1],e.supportAutoUpdate=i[2],e.supportFirmwareUpgrade=i[3],e.supportReboot=i[4],e.previewReplayLimitStatus.support=i[5],e.diagnosticLogexportCfg.support=i[6],y["a"].IS_CLIENT||(e.supportAutoUpdate=!1),!e.isBase){t.next=17;break}e.autoFocusStatus.support=!1,t.next=23;break;case 17:return t.next=19,e.device.getChannelAtIndex(0);case 19:return a=t.sent,t.next=22,a.supportAutoFocus();case 22:e.autoFocusStatus.support=t.sent;case 23:e.$store.commit("MODIFY_SUPPORT_AUTO_UPDATE",e.supportAutoUpdate),e.$store.commit("MODIFY_SUPPORT_FIRMWARE_UPGRADE",e.supportFirmwareUpgrade),t.next=31;break;case 27:throw t.prev=27,t.t0=t["catch"](0),C["a"].error("maintenance.vue > getSupport: ",t.t0),new Error;case 31:case"end":return t.stop()}}),t,null,[[0,27]])})))()},toUpgradeSettingPage:function(){this.isInUpgradeSettingPage=!0,this.$router.push("/upgradeSetting")},getAutoFocus:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.getChannelAtIndex(0);case 3:return n=t.sent,t.next=6,n.config.getAutoFocus();case 6:e.autoFocus=t.sent,e.autoFocusStatus.isOpen=0===e.autoFocus.iDisable,t.next=15;break;case 11:throw t.prev=11,t.t0=t["catch"](0),C["a"].error("maintenance.vue > getAutoFocus: ",t.t0),new Error;case 15:case"end":return t.stop()}}),t,null,[[0,11]])})))()},setAutoFocus:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){var a;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.getChannelAtIndex(0);case 3:return a=i.sent,i.next=6,a.config.setAutoFocus(n.autoFocus);case 6:i.next=14;break;case 9:throw i.prev=9,i.t0=i["catch"](0),t||(n.autoFocus=e,n.autoFocusStatus.isOpen=0===n.autoFocus.iDisable),C["a"].error("maintenance.vue > setAutoFocus: ",i.t0),new Error;case 14:case"end":return i.stop()}}),i,null,[[0,9]])})))()},getPreviewReplayLimitCfg:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getPreviewReplayLimitCfg();case 3:e.previewReplayLimit=t.sent,e.previewReplayLimitStatus.isOpen=e.previewReplayLimit.closeLimit,t.next=11;break;case 7:throw t.prev=7,t.t0=t["catch"](0),C["a"].error("maintenance.vue > getPreviewReplayLimitCfg: ",t.t0),new Error;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setPreviewReplayLimitCfg:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setPreviewReplayLimitCfg(n.previewReplayLimit);case 3:i.next=10;break;case 5:throw i.prev=5,i.t0=i["catch"](0),t||(n.previewReplayLimit=e,n.previewReplayLimitStatus.isOpen=n.previewReplayLimit.closeLimit),C["a"].error("maintenance.vue > setPreviewReplayLimitCfg: ",i.t0),new Error;case 10:case"end":return i.stop()}}),i,null,[[0,5]])})))()},getAutoReboot:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getAutoRebootCfg();case 3:e.autoReboot=t.sent,e.autoRebootUpdate(),t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("maintenance.vue > getAutoReboot: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},autoRebootUpdate:function(){this.autoRebootStatus.isOpen=this.autoReboot.bEnable,this.eDay.currentVal=this.autoReboot.eDay,this.iHour.currentVal=this.autoReboot.iHour<10?"0"+this.autoReboot.iHour:""+this.autoReboot.iHour,this.iMin.currentVal=this.autoReboot.iMin<10?"0"+this.autoReboot.iMin:""+this.autoReboot.iMin,this.iSecond.currentVal=this.autoReboot.iSecond<10?"0"+this.autoReboot.iSecond:""+this.autoReboot.iSecond},exportFileChanged:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isClient){t.next=2;break}return t.abrupt("return");case 2:return n=[""],t.prev=3,t.next=6,Ku["a"].showOpenDialog({properties:["openDirectory","createDirectory"]});case 6:n=t.sent,t.next=13;break;case 9:return t.prev=9,t.t0=t["catch"](3),C["a"].error("maintenance.vue > exportFileChanged > showOpenDialog: ",t.t0),t.abrupt("return");case 13:e.exportCfg.filePath=n[0];case 14:case"end":return t.stop()}}),t,null,[[3,9]])})))()},diagnosticLogexportFileChanged:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isClient){t.next=2;break}return t.abrupt("return");case 2:return n=[""],t.prev=3,t.next=6,Ku["a"].showOpenDialog({properties:["openDirectory","createDirectory"]});case 6:n=t.sent,t.next=13;break;case 9:return t.prev=9,t.t0=t["catch"](3),C["a"].error("maintenance.vue > diagnosticLogexportFileChanged > showOpenDialog: ",t.t0),t.abrupt("return");case 13:e.diagnosticLogexportCfg.filePath=n[0];case 14:case"end":return t.stop()}}),t,null,[[3,9]])})))()},exportConfiguration:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.exportCfg.isSetting=!0,e.exportCfg.warnClue=!1,e.exportCfg.progress=0,e.exportCfg.prompt=e.$t("remoteConfig_Maintenance_exportingPrompt"),n={cSourceFileName:"",cSaveFileName:Object(l["s"])(e.exportCfg.filePath,""+Date.now()),uFileSize:0,uCurSize:0},t.prev=5,t.next=8,e.device.config.exportConfig(n,(function(t,n){if(t!==N["BC_RSP_CODE_E"].E_BC_RSP_OK)throw new Error;e.exportCfg.progress=100*n,n>=1&&(e.exportCfg.prompt=e.$t("remoteConfig_Maintenance_exportSucceededPrompt"))}));case 8:t.next=15;break;case 10:t.prev=10,t.t0=t["catch"](5),e.exportCfg.warnClue=!0,e.exportCfg.prompt=e.$t("remoteConfig_Maintenance_exportFailedPrompt"),C["a"].error("maintenance.vue > exportConfiguration: ",t.t0);case 15:e.exportCfg.isSetting=!1;case 16:case"end":return t.stop()}}),t,null,[[5,10]])})))()},exportDiagnosticLogexportCfg:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.diagnosticLogexportCfg.isSetting=!0,e.diagnosticLogexportCfg.warnClue=!1,e.diagnosticLogexportCfg.progress=0,e.diagnosticLogexportCfg.prompt=e.$t("remoteConfig_Maintenance_exportingPrompt"),n=Object(l["s"])(e.diagnosticLogexportCfg.filePath,"".concat((new Date).getTime())),i={cFilename:n,fileSize:0,curSize:0},t.prev=6,t.next=9,e.device.config.getDiagnosisData(i,(function(t,n){if(t!==N["BC_RSP_CODE_E"].E_BC_RSP_OK)throw new Error;e.diagnosticLogexportCfg.progress=100*n,n>=1&&(e.diagnosticLogexportCfg.prompt=e.$t("remoteConfig_Maintenance_exportSucceededPrompt"))}));case 9:t.next=16;break;case 11:t.prev=11,t.t0=t["catch"](6),e.diagnosticLogexportCfg.warnClue=!0,e.diagnosticLogexportCfg.prompt=e.$t("remoteConfig_Maintenance_exportFailedPrompt"),C["a"].error("maintenance.vue > exportDiagnosticLogexportCfg: ",t.t0);case 16:e.diagnosticLogexportCfg.isSetting=!1;case 17:case"end":return t.stop()}}),t,null,[[6,11]])})))()},autoFocusSwitch:function(e){var t=this,n=this.autoFocusStatus;Li["a"].changingEffect(n,(function(){n.isOpen=e,t.autoFocus.iDisable=e?0:1}),this.setAutoFocus,JSON.parse(JSON.stringify(this.autoFocus)))},previewReplayLimitSwitch:function(e){var t=this,n=this.previewReplayLimitStatus;Li["a"].changingEffect(n,(function(){t.previewReplayLimit.closeLimit=n.isOpen=e}),this.setPreviewReplayLimitCfg,Object(l["g"])(this.previewReplayLimit))},setAutoReboot:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setAutoRebootCfg(n.autoReboot);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.autoReboot=e,n.autoRebootUpdate()),C["a"].error("maintenance.vue > setAutoReboot cfg: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},autoRebootSwitch:function(e){var t=this,n=this.autoRebootStatus;Li["a"].changingEffect(n,(function(){n.isOpen=e,t.autoReboot={bEnable:e,eDay:t.eDay.currentVal,iHour:Number(t.iHour.currentVal),iMin:Number(t.iMin.currentVal),iSecond:Number(t.iSecond.currentVal)}}),this.setAutoReboot,JSON.parse(JSON.stringify(this.autoReboot)))},autoRebootSelect:function(e,t){var n=this,i=this.$data[t];Li["a"].changingEffect(i,(function(){i.currentVal=e,n.autoReboot[t]=Number(e)}),this.setAutoReboot,JSON.parse(JSON.stringify(this.autoReboot)))},restore:function(){var e=this,t=Object(ct["a"])({type:"message",message:this.$t("remoteConfig_Maintenance_rebootingRestartClue")},this.dialogParams);p["a"].openMessageDialog(this,t,Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("HANDLE_LOADING",!0),Object(l["d"])(),t.prev=2,t.next=5,e.device.config.factoryDefault({bDisplay:!0,bRecording:!0,bNetwork:!0,bAlarm:!0,bDevice:!0,bSystem:!0,bIPC:!0,bWifi:!0});case 5:if(!e.isClient){t.next=24;break}return t.prev=6,e.ignoreHandleChange=!0,t.next=10,e.device.loginDes();case 10:return n=t.sent,n.username="admin",n.password=w["a"].transform(""),t.next=15,e.device.close();case 15:return t.next=17,B["a"].modifyDevice(e.device.handle,n);case 17:return t.next=19,e.device.open();case 19:t.next=24;break;case 21:t.prev=21,t.t0=t["catch"](6),C["a"].error("maintenance.vue > restore > modify to default user and password: ",t.t0);case 24:e.$store.commit("HANDLE_LOADING",!1),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].succeed),p["a"].afterDeviceRestore(),t.next=35;break;case 29:t.prev=29,t.t1=t["catch"](2),e.$store.commit("HANDLE_LOADING",!1),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),Object(l["v"])(),C["a"].error("maintenance.vue > restore > device.config.factoryDefault: ",t.t1);case 35:case"end":return t.stop()}}),t,null,[[2,29],[6,21]])}))))},reboot:function(){var e=this,t=Object(ct["a"])({type:"message",message:this.$t("remoteConfig_Maintenance_rebootClue")},this.dialogParams);p["a"].openMessageDialog(this,t,Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("HANDLE_LOADING",!0),Object(l["d"])(),t.prev=2,t.next=5,e.device.config.reboot();case 5:e.$store.commit("HANDLE_LOADING",!1),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].succeed),p["a"].afterDeviceReboot(),t.next=16;break;case 10:t.prev=10,t.t0=t["catch"](2),e.$store.commit("HANDLE_LOADING",!1),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),Object(l["v"])(),C["a"].error("maintenance.vue > reboot > device.config.reboot: ",t.t0);case 16:case"end":return t.stop()}}),t,null,[[2,10]])}))))}}}),Ju=Zu,Qu=(n("3c0f"),Object(g["a"])(Ju,qu,$u,!1,null,"5775e705",null)),Xu=Qu.exports,el=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"config-context-inner"},[n("remoteTitleBar",{attrs:{title:e.$t("common_Info")}}),e.isConfigContextLoading||e.isLoadingDataRetry?e._e():n("div",{staticClass:"device-info config-scroll-box"},[n("div",{staticClass:"device-picture"},[n("img",{staticClass:"ab-center",attrs:{src:e.productSrc}})]),n("ul",{staticClass:"general-info"},[n("li",{staticClass:"flex"},[n("span",{staticClass:"text info-name"},[e._v(e._s(e.$t("remoteConfig_general_DeviceName")))]),n("simpleInput",e._b({attrs:{targetValue:e.general.cName.val},on:{contextmenu:function(t){return t.stopPropagation(),e.showRightMenu(t)},inputChanged:e.deviceNameInputChanged}},"simpleInput",e.inputArr.cName,!1))],1),n("li",{staticClass:"flex device-model"},[n("span",{staticClass:"text info-name"},[e._v(e._s(e.$t("common_Model")))]),n("span",{staticClass:"info-val",on:{contextmenu:function(t){return t.stopPropagation(),e.showRightMenu(t)}}},[e._v(e._s(e.general.cType.val))])]),e._l(e.paras,(function(t,i){return n("li",{key:i,staticClass:"flex"},[n("span",{staticClass:"text info-name"},[e._v(e._s(t.name))]),n("span",{staticClass:"info-val",on:{contextmenu:function(t){return t.stopPropagation(),e.showRightMenu(t)}}},[e._v(e._s(t.val))])])})),e.uid.cUid?n("li",{staticClass:"flex device-uid"},[n("span",{staticClass:"text info-name"},[e._v(e._s(e.$t("common_UID")))]),n("span",{staticClass:"info-val",on:{contextmenu:function(t){return t.stopPropagation(),e.showRightMenu(t)}}},[e._v(e._s(e.uid.cUid))])]):e._e()],2),e.isClient?e._e():n("div",{staticClass:"terms-of-service-wrap"},[n("a",{attrs:{"reo-element":""},on:{click:function(t){return e.openWebLink("privacy",t)}}},[e._v(e._s(e.$t("help_config_page_privacy_policy_item_label")))]),n("a",{attrs:{"reo-element":""},on:{click:function(t){return e.openWebLink("terms",t)}}},[e._v(e._s(e.$t("help_config_page_terms_item_label")))])])]),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:function(t){return e.init()}}}):e._e()],1)},tl=[],nl=n("44ce"),il=n.n(nl),al=u["a"].extend({name:"nvrInfo",components:{simpleInput:_,loadingImg:d["a"],slideBtn:Ci["a"],retry:be["a"],remoteTitleBar:us["a"]},data:function(){return{isClient:y["a"].IS_CLIENT,isLoadingDataRetry:!1,general:{cName:{name:this.$t("remoteConfig_general_DeviceName"),val:""},cType:{name:this.$t("common_Model"),val:""}},paras:{cBuildDay:{name:this.$t("system_config_page_build_no"),val:""},cHardwareVer:{name:this.$t("remoteConfig_general_HwNo"),val:""},cCfgVer:{name:this.$t("remoteConfig_general_CfgVersion"),val:""},cFirmwareVer:{name:this.$t("remoteConfig_general_FwVersion"),val:""},cDetail:{name:this.$t("common_Details"),val:""}},inputArr:{cName:{flag:"cName",regexp:"deviceName",minLength:1,maxLength:31,disallowConsecutiveSpaces:!0,checked:!0,isSetting:!1,warnClue:!1}},p2p:{iEnable:0,iPort:0,serverDomainName:""},uid:{cUid:"",cUidKey:""},isBattery:!1,device:{},productSrc:il.a}},computed:{isConfigContextLoading:function(){return this.$store.getters.configContextLoading},handle:function(){return this.$store.getters.deviceHandle},deviceInfo:function(){return this.$store.getters.deviceInfo}},watch:{handle:{handler:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.init();case 1:case"end":return t.stop()}}),t)})))()},immediate:!0},deviceInfo:{handler:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a,r,s,o,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:for(i=0,a=Object.keys(t.general);i init: ",t.t0);case 16:e.$store.commit("HANDLE_CONFIGCONTEXT_LOADING",!1);case 17:case"end":return t.stop()}}),t,null,[[1,12]])})))()},getUid:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getUidInfo();case 3:e.uid=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),C["a"].error("nvrInfo.vue > getUid: ",t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},setDeviceName:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){var a;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,B["a"].getDeviceWithHandle(n.handle);case 3:return a=i.sent,i.next=6,a.config.setDeviceName({cDeviceName:n.general.cName.val});case 6:i.next=14;break;case 9:throw i.prev=9,i.t0=i["catch"](0),t||(n.general.cName.val=e),C["a"].error("nvrInfo.vue > setDeviceName: ",i.t0),new Error;case 14:case"end":return i.stop()}}),i,null,[[0,9]])})))()},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.device.isBattery(),e.device.deviceType()]);case 3:n=t.sent,i=Object(T["a"])(n,2),e.isBattery=i[0],i[1],t.next=14;break;case 10:throw t.prev=10,t.t0=t["catch"](0),C["a"].error("nvrInfo.vue > getSupport: ",t.t0),new Error;case 14:case"end":return t.stop()}}),t,null,[[0,10]])})))()},showRightMenu:function(){p["a"].handleRightClickMenu(["copy"])},deviceNameInputChanged:function(e,t,n){var i=this,a=this.general[t].val;this.inputArr[t]["checked"]=!n,n||Li["a"].changingEffect(this.inputArr[t],(function(){i.general[t].val=e}),this.setDeviceName,a)}}}),rl=al,sl=(n("538c"),Object(g["a"])(rl,el,tl,!1,null,"3ce52d87",null)),ol=sl.exports,cl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"upgrade-setting config-context-inner"},[n("h5",{staticClass:"msg-title flex",on:{click:e.goBack}},[n("span",{staticClass:"msg-arrow icon-client_pre"}),n("span",[e._v(e._s(e.$t("common_view_upgrade_button")))])]),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isConfigContextLoading&&!e.isLoadingDataRetry,expression:"!isConfigContextLoading&&!isLoadingDataRetry"}],staticClass:"config-scroll-box"},[e.supportAutoUpdate?n("div",{staticClass:"auto-update-wrap"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_Maintenance_autoUpgrade")))]),n("slideBtn",e._b({on:{stateChange:e.autoUpgradeSwitch}},"slideBtn",e.autoUpgradeStatus,!1))],1):e._e(),!e.isBattery&&e.supportFirmwareUpgrade&&e.supportRemoteUpgrade?n("div",{staticClass:"device-name"},[e._v(e._s(e.deviceInfo.cName))]):e._e(),e.supportAutoUpdate?n("div",[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("remoteConfig_Maintenance_onlineUpgrade")))]),n("div",{staticClass:"flex"},[n("button",{staticClass:"gray-button",attrs:{"reo-element":"",disabled:e.isCheckingUpgrade},on:{click:e.checkNewFirmware}},[e._v(e._s(e.$t("STR_CHECK_LATEST_VERSION")))]),e.isCheckingUpgrade?n("loadingImg",{staticClass:"online-upgrade-loading"}):e._e()],1)]):e._e(),!e.isBattery&&e.supportFirmwareUpgrade?n("firmwareUpgrade",{attrs:{pakSuffix:e.deviceInfo.cPakSuffix}}):e._e(),!e.isBattery&&e.supportFirmwareUpgrade&&e.supportRemoteUpgrade?[n("div",{staticClass:"device-name"},[e._v(e._s(e.$t("common_ipc")))]),n("channelBox",{staticClass:"channel-box multi-ipc-channelbox",attrs:{channels:e.channels},on:{channelIndexChange:e.channelIndexChange}}),n("firmwareUpgrade",{attrs:{pakSuffix:e.selectedChannelPakSuffix,channelIndex:e.channelIndex}})]:e._e()],2),!e.isConfigContextLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:e.deviceInit}}):e._e()],1)},ul=[],ll=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"firmware-upgrade"},[n("h5",{staticClass:"text"},[e._v(e._s(e.$t("common_firmwareUpgrade")))]),n("div",{staticClass:"file-box flex"},[n("input",{staticClass:"file-path",attrs:{"reo-element":"",type:"text",readonly:"",title:e.firmwareUpgrade.fileBlob.name},domProps:{value:e.firmwareUpgrade.fileBlob.name}}),n("inputFile",{attrs:{acceptFilesSuffix:e.firmwareFileSuffix,infoText:e.$t("common_Browse")},on:{fileChanged:e.firmwareFileChanged}})],1),n("label",{staticClass:"flex check-box",class:{checked:e.firmwareUpgrade.isUpdateConfigure},attrs:{checkbox:""}},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.firmwareUpgrade.isUpdateConfigure,expression:"firmwareUpgrade.isUpdateConfigure",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"checkbox"},domProps:{checked:Array.isArray(e.firmwareUpgrade.isUpdateConfigure)?e._i(e.firmwareUpgrade.isUpdateConfigure,null)>-1:e.firmwareUpgrade.isUpdateConfigure},on:{change:function(t){var n=e.firmwareUpgrade.isUpdateConfigure,i=t.target,a=!!i.checked;if(Array.isArray(n)){var r=null,s=e._i(n,r);i.checked?s<0&&e.$set(e.firmwareUpgrade,"isUpdateConfigure",n.concat([r])):s>-1&&e.$set(e.firmwareUpgrade,"isUpdateConfigure",n.slice(0,s).concat(n.slice(s+1)))}else e.$set(e.firmwareUpgrade,"isUpdateConfigure",a)}}}),n("span",{staticClass:"check-icon icon-client_check",attrs:{checkicon:""}}),n("span",{staticClass:"choose-clue"},[e._v(e._s(e.$t("remoteConfig_Maintenance_updateConfigureFile")))])]),n("button",{staticClass:"gray-button",attrs:{"reo-element":"",disabled:!e.firmwareUpgrade.filePath},on:{click:e.setFirmwareUpgrade}},[e._v(e._s(e.$t("common_view_upgrade_button")))])])},dl=[],pl=u["a"].extend({name:"firmwareUpgrade",components:{inputFile:ba},props:{pakSuffix:{type:String,default:""},channelIndex:{type:Number,default:-1}},data:function(){return{firmwareUpgrade:{support:!1,isUpdateConfigure:!1,fileBlob:{path:"",name:""},filePath:""}}},computed:{firmwareFileSuffix:function(){var e=this.pakSuffix.split(",");return e.push("paks","pak"),e}},methods:{firmwareFileChanged:function(e){this.firmwareUpgrade.filePath=e?e.path:"",this.firmwareUpgrade.fileBlob=e},setFirmwareUpgrade:function(){this.$store.commit("HANDLE_UPGRADE_FILE",{file:this.firmwareUpgrade.fileBlob,iUpgradeConfig:~~this.firmwareUpgrade.isUpdateConfigure,channelBit:this.getChannelBit()})},getChannelBit:function(){var e=0n;return this.channelIndex>=0&&(e|=1n< channelInit: supportChannelVersion is false")),t.prev=1,t.next=4,e.channel.config.getChannelVersion();case 4:n=t.sent,e.selectedChannelPakSuffix=n.cPakSuffix,t.next=12;break;case 8:t.prev=8,t.t0=t["catch"](1),e.selectedChannelPakSuffix=e.deviceInfo.cPakSuffix,C["a"].error("upgradeSetting.vue > channelInit: ",t.t0);case 12:case"end":return t.stop()}}),t,null,[[1,8]])})))()},getSupport:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([e.device.supportChannelVersion(),e.device.supportRemoteUpgrade()]);case 3:n=t.sent,i=Object(T["a"])(n,2),e.supportChannelVersion=i[0],e.supportRemoteUpgrade=i[1],t.next=13;break;case 9:throw t.prev=9,t.t0=t["catch"](0),C["a"].error("upgradeSetting.vue > getSupport: ",t.t0),new Error;case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))()},channelIndexChange:function(e){this.channelIndex=e,this.channelInit()},goBack:function(){this.$router.go(-1)},checkNewFirmware:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isCheckingUpgrade=!0,t.prev=1,t.next=4,Promise.all([e.device.config.getUidInfo(),S["a"].getI18nLocale()]);case 4:return n=t.sent,i=Object(T["a"])(n,2),a=i[0],r=i[1],t.next=10,S["a"].getNewFirmware(e.deviceInfo.cFirmwareVer,a.cUid,r);case 10:e.newFw=t.sent,e.newFw.needupdate?e.$store.commit("HANDLE_NEW_FIRMWARE",e.newFw):e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].mostCurrentVersion),t.next=18;break;case 14:t.prev=14,t.t0=t["catch"](1),e.$store.commit("HANDLE_PROMPT",R["PromptStatus"].failed),C["a"].error("maintenance.vue > checkNewFirmware: ",t.t0);case 18:e.isCheckingUpgrade=!1;case 19:case"end":return t.stop()}}),t,null,[[1,14]])})))()},autoUpgradeSwitch:function(e){var t=this,n=this.autoUpgradeStatus;Li["a"].changingEffect(n,(function(){t.autoUpgrade.iEnable=n.isOpen=e}),this.setAutoUpgrade,JSON.parse(JSON.stringify(this.autoUpgrade)))},getAutoUpgrade:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.device.config.getAutoUpdateState();case 3:e.autoUpgrade=t.sent,e.autoUpgradeStatus.isOpen=e.autoUpgrade.iEnable,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](0),C["a"].error("upgradeSetting.vue > getAutoUpgrade > getAutoUpdateState: ",t.t0),new Error;case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},setAutoUpgrade:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.device.config.setAutoUpdateState(n.autoUpgrade);case 3:i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.autoUpgrade=e,n.autoUpgradeStatus.isOpen=n.autoUpgrade.iEnable),C["a"].error("upgradeSetting.vue > setAutoUpgrade cfg: ",i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()}}}),_l=fl,vl=(n("acf9"),Object(g["a"])(_l,cl,ul,!1,null,"29893311",null)),bl=vl.exports;function wl(){return[{path:"/",name:"default",redirect:"/screen"},{path:"/screen",name:"screen",component:lo},{path:"/quality",name:"quality",component:Do},{path:"/alarm",name:"alarm",component:_s},{path:"/battery",name:"battery",component:zo},{path:"/ledLight",name:"ledLight",component:oc},{path:"/audioCfg",name:"audioCfg",component:bc},{path:"/cameraInfo",name:"cameraInfo",component:Ac},{path:"/recording",name:"recording",component:Bc},{path:"/email",name:"email",component:Gc},{path:"/ftp",name:"ftp",component:Zc},{path:"/buzzerAlarm",name:"buzzerAlarm",component:nu},{path:"/audioAlarm",name:"audioAlarm",component:cu},{path:"/nvrAudioAlarm",name:"nvrAudioAlarm",component:fu},{path:"/push",name:"push",component:yu},{path:"/network",name:"network",component:Ss},{path:"/storage",name:"storage",component:js},{path:"/user",name:"user",component:Ou},{path:"/dateTime",name:"dateTime",component:Yu},{path:"/maintenance",name:"maintenance",component:Xu},{path:"/upgradeSetting",name:"upgradeSetting",component:bl},{path:"/nvrInfo",name:"nvrInfo",component:ol},{path:"/chime",name:"chime",component:So},{path:"/management",name:"management",component:io}]}function Cl(e){var t=new Kr["a"]({routes:wl()});return t.beforeEach((function(t,n,i){e&&t.name&&!1!==e.getters.supportRouteNames[t.name]&&(e.commit("SET_CURRENT_ACTIVE_HASH",t.name),i())})),t}u["a"].use(Kr["a"]),u["a"].config.productionTip=!1;var yl=new O["a"](p["a"].getMountedDomId("remoteConfig"),Br,{storeCreator:Yr,routerCreator:Cl});y["a"].IS_CLIENT?yl.showPage():window.remoteConfigManager=yl;var Sl=yl,kl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"live-tab flex app-area",attrs:{id:"live-tab-app"},on:{click:function(t){e.showStreamSelect=!1}}},[n("div",{staticClass:"stream-btn btn-cell"},[n("div",{staticClass:"cell-inner",class:{active:e.showStreamSelect},attrs:{title:e.$t("localSettings_record_streamType")},on:{click:function(t){t.stopPropagation(),e.showStreamSelect=!e.showStreamSelect}}},[n("span",{staticClass:"btn-icon icon-client_display"}),n("span",{class:["view-quality-icon",e.getViewQualityIcon(e.selectedStream)]})])]),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.showStreamSelect,expression:"showStreamSelect"}],staticClass:"stream-list",on:{click:function(e){e.stopPropagation()}}},e._l(e.streamList,(function(t,i){return n("li",{key:i,staticClass:"flex stream-item",class:{active:e.selectedStream===t.stream,disabled:!t.enabled},on:{click:function(n){return e.changeStream(t.stream)}}},[n("span",{class:["view-quality-icon",e.getViewQualityIcon(t.stream)]}),n("span",[e._v(e._s(e.showedEStreamCopy[t.stream]))])])})),0),e.supportVolume&&"live"===e.playerMode?n("volume",{staticClass:"volume-box"}):e._e()],1)},Al=[],El=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"volume-box flex"},[n("span",{staticClass:"voice-icon",class:[e.mute?"icon-client_voice_mute":"icon-client_voice_high"],on:{click:e.btnMuteClick}}),n("processSlider",e._b({staticClass:"process-slider",on:{valueChanged:e.voiceValueChanged}},"processSlider",e.barInfo,!1))],1)},xl=[],Ol=u["a"].extend({components:{processSlider:ts["a"]},data:function(){return{volume:0,preVolume:0}},computed:{barInfo:function(){return{open:!this.mute,max:100,title:Math.round(this.volume),step:1,bgColor:"#000000",contentBgColor:"#046DEC",value:this.volume}},mute:function(){return 0===this.volume}},created:function(){var e=sessionStorage.getItem("volume");this.volume=e?parseInt(e,10):0},methods:{btnMuteClick:function(){var e=this.volume;0!==this.volume?(this.preVolume=this.volume,this.volume=0):this.volume=0===this.preVolume?30:this.preVolume,this.voiceValueChanged(this.volume,e)},voiceValueChanged:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:n.preVolume=t||n.volume,n.volume=Math.min(100,Math.max(0,e)),n.setPlayerVolume();case 3:case"end":return i.stop()}}),i)})))()},setPlayerVolume:function(){for(var e=0;e0},methods:{playerModeChange:function(e){this.playerMode=e},openCallback:function(e,t,n){null!==e.getViewId()&&ViewManager.getMode()===EnumCurState.PREVIEW&&(this.selectedStream=n,this.supportBalanced=ControllerLogin.abilities.abilityChn[e.getId()]&&2!==ControllerLogin.abilities.abilityChn[e.getId()].live.ver,this.supportAutoTrackStream=ControllerLogin.chkVersion("supportAutoTrackStream",1,e.getId()),this.supportTrack=ControllerMain.isNvr?ControllerLogin.abilities.abilityChn[e.getId()].channelType.ver===N["BC_CHANNEL_TYPE_E"].E_BC_CHANNEL_TYPE_SD7:"SD7"===ControllerMain.deviceInfo.type,(n===EnumStreamType.BALANCED&&!this.supportBalanced||[EnumStreamType.TRACK_FLUENT,EnumStreamType.TRACK_CLEAR].includes(n)&&!this.supportAutoTrackStream)&&(this.selectedStream=EnumStreamType.FLUENT,this.play()))},play:function(){PlayerPreview.trigger("playAllStream",[this.selectedStream]),ControllerFlash.streamSel=this.selectedStream},changeStream:function(e){this.selectedStream!==e&&(this.showStreamSelect=!1,this.selectedStream=e,this.play())},getViewQualityIcon:function(e){return EnumStreamType.CLIP===e?"":EnumStreamType.BALANCED===e?"icon-view_mid":[EnumStreamType.CLEAR,EnumStreamType.TRACK_CLEAR].includes(e)?"icon-view_high":"icon-view_low"}}}),Pl=Rl,Ll=(n("a9dd"),Object(g["a"])(Pl,kl,Al,!1,null,"0e991427",null)),Ml=Ll.exports;u["a"].config.productionTip=!1;var Nl=new O["a"](p["a"].getMountedDomId("live-tab"),Ml);window.liveTabManager=Nl;var Bl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"playback-tab flex-between app-area",attrs:{id:"playback-tab-app"},on:{click:function(t){e.showStreamSelect=!1}}},[n("div",{staticClass:"flex"},[n("div",{staticClass:"btn-cell flex"},[n("div",{staticClass:"cell-inner",on:{click:function(t){return t.stopPropagation(),e.switchPlay(t)}}},[n("span",{staticClass:"btn-icon",class:[e.isPlaying?"icon-client_pause":"icon-client_play"]})])]),n("div",{staticClass:"stream-btn btn-cell flex"},[n("div",{staticClass:"cell-inner",class:{active:e.showStreamSelect},attrs:{title:e.$t("localSettings_record_streamType")},on:{click:function(t){t.stopPropagation(),e.showStreamSelect=!e.showStreamSelect}}},[n("span",{staticClass:"btn-icon icon-client_display"}),n("span",{class:["view-quality-icon",e.getViewQualityIcon(e.selectedStream)]})])]),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.showStreamSelect,expression:"showStreamSelect"}],staticClass:"stream-list",on:{click:function(e){e.stopPropagation()}}},e._l(e.streamList,(function(t,i){return n("li",{key:i,staticClass:"flex stream-item",class:{active:e.selectedStream===t.stream,disabled:!t.enabled},on:{click:function(n){return e.changeStream(t.stream)}}},[n("span",{class:["view-quality-icon",e.getViewQualityIcon(t.stream)]}),n("span",[e._v(e._s(e.showedEStreamCopy[t.stream]))])])})),0),e.supportVolume&&"playback"===e.playerMode?n("volume",{staticClass:"volume-box"}):e._e()],1),n("div",{staticClass:"flex"},[e.isNvr?n("div",{staticClass:"download-tip-wrap"},[e._m(0),e._m(1)]):e._e(),n("div",{staticClass:"btn-cell flex"},[n("div",{staticClass:"cell-inner",on:{click:function(t){return t.stopPropagation(),e.enlarge(t)}}},[n("span",{staticClass:"btn-icon icon-client_plus"})])]),n("div",{staticClass:"btn-cell flex"},[n("div",{staticClass:"cell-inner",on:{click:function(t){return t.stopPropagation(),e.narrow(t)}}},[n("span",{staticClass:"btn-icon icon-client_minimize"})])])])])},Fl=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"download-tip-btn flex"},[n("span",{staticClass:"icon-client_warning icon"}),n("span",[e._v("Download Help")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"download-tip-content"},[n("p",[e._v("1. Click and drag with the left mouse button on the Playback Progress Bar to choose a specific download period.")]),n("p",[e._v("2. The download period is limited to 5 minutes in NVR. For videos longer than 5 minutes, please use the Reolink PC Client to download.")])])}],jl=u["a"].extend({components:{volume:Tl},data:function(){return{isNvr:ControllerMain.isNvr,showStreamSelect:!1,isPlaying:!1,selectedStream:EnumStreamType.FLUENT,supportVolume:!1,supportAutoTrackStream:!1,supportTrack:!1,playerMode:"playback"}},computed:{streamList:function(){var e=[{enabled:!0,support:!0,stream:EnumStreamType.CLEAR},{enabled:!0,support:this.supportAutoTrackStream,stream:EnumStreamType.TRACK_CLEAR},{enabled:!0,support:!0,stream:EnumStreamType.FLUENT},{enabled:!0,support:this.supportAutoTrackStream,stream:EnumStreamType.TRACK_FLUENT}];return e.filter((function(e){return e.support}))},showedEStreamCopy:function(){var e,t,n;return this.supportAutoTrackStream?this.supportTrack?(e={},Object(es["a"])(e,EnumStreamType.CLEAR,this.$t("wide_angle_clear")),Object(es["a"])(e,EnumStreamType.FLUENT,this.$t("wide_angle_fluent")),Object(es["a"])(e,EnumStreamType.TRACK_CLEAR,this.$t("tracking_clear")),Object(es["a"])(e,EnumStreamType.TRACK_FLUENT,this.$t("tracking_fluent")),e):(t={},Object(es["a"])(t,EnumStreamType.CLEAR,this.$t("wide_angle_clear")),Object(es["a"])(t,EnumStreamType.FLUENT,this.$t("wide_angle_fluent")),Object(es["a"])(t,EnumStreamType.TRACK_CLEAR,this.$t("telephoto_clear")),Object(es["a"])(t,EnumStreamType.TRACK_FLUENT,this.$t("telephoto_fluent")),t):(n={},Object(es["a"])(n,EnumStreamType.CLEAR,this.$t("common_clarity_stream_clear")),Object(es["a"])(n,EnumStreamType.FLUENT,this.$t("common_clarity_stream_fluent")),n)}},created:function(){ChannelManager.on("open",this.openCallback),PlayerPlayback.on("pauseAllStream",this.setUiPause),PlayerPlayback.on("stopAllStream",this.setUiPause),ControllerMain.on("switchPlayerMode",this.playerModeChange)},destroyed:function(){ChannelManager.unbindCallback("open",this.openCallback),PlayerPlayback.unbindCallback("pauseAllStream",this.setUiPause),PlayerPlayback.unbindCallback("stopAllStream",this.setUiPause),ControllerMain.unbindCallback("switchPlayerMode",this.playerModeChange)},mounted:function(){this.supportVolume=ControllerMain.deviceInfo.audioNum>0},methods:{playerModeChange:function(e){this.playerMode=e},setUiPause:function(){this.isPlaying=!1},openCallback:function(e,t,n){null!==e.getViewId()&&ViewManager.getMode()===EnumCurState.PLAYBACK?(this.isPlaying=!0,this.selectedStream=n,this.supportAutoTrackStream=ControllerLogin.chkVersion("supportAutoTrackStream",1,e.getId()),this.supportTrack=ControllerMain.isNvr?ControllerLogin.abilities.abilityChn[e.getId()].channelType.ver===N["BC_CHANNEL_TYPE_E"].E_BC_CHANNEL_TYPE_SD7:"SD7"===ControllerMain.deviceInfo.type,[EnumStreamType.TRACK_FLUENT,EnumStreamType.TRACK_CLEAR].includes(n)&&!this.supportAutoTrackStream&&(this.selectedStream=EnumStreamType.FLUENT,this.play())):this.isPlaying=!1},switchPlay:function(){this.isPlaying?this.pause():this.play()},play:function(){this.isPlaying=!0,PlayerPlayback.trigger("playAllStream",[this.selectedStream])},pause:function(){this.isPlaying=!1,BcH5Player.flv_player&&(PlayerPlayback.trigger("pauseAllStream"),PlayerPlayback.updateState(EnumPBPlayState.PAUSED))},changeStream:function(e){this.selectedStream!==e&&(this.showStreamSelect=!1,this.selectedStream=e,this.play())},enlarge:function(){g_pbFileBarCanvas.setScale(g_pbFileBarCanvas.getScale()+1)&&(g_pbFileBarCanvas.autoScale(),g_pbFileBarCanvas.redrawPlaybackTool())},narrow:function(){g_pbFileBarCanvas.setScale(g_pbFileBarCanvas.getScale()-1)&&(g_pbFileBarCanvas.autoScale(),g_pbFileBarCanvas.redrawPlaybackTool())},getViewQualityIcon:function(e){return[EnumStreamType.CLEAR,EnumStreamType.TRACK_CLEAR].includes(e)?"icon-view_high":"icon-view_low"}}}),Vl=jl,Ul=(n("f3d8"),Object(g["a"])(Vl,Bl,Fl,!1,null,"bc28b986",null)),Hl=Ul.exports;u["a"].config.productionTip=!1;var Gl=new O["a"](p["a"].getMountedDomId("playback-tab"),Hl);window.playbackTabManager=Gl;var Wl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"ptz",staticClass:"live-ptz",attrs:{id:"ptz-app"}},[e.isInitSuccess?n("div",{directives:[{name:"show",rawName:"v-show",value:e.showHomePage,expression:"showHomePage"}]},[e.supportPt?n("pt",{staticClass:"ptz-direction",attrs:{speedVal:e.speedVal,channel:e.channel,supportAutoPt:e.supportAutoPt,supportedPtDirection:e.supportedPtDirection}}):e._e(),e.supportPtzSpeed?n("ptzSlider",{attrs:{min:1,max:64,title:e.$t("common_Speed"),value:e.speedVal},on:{valueChanged:e.speedChanged}}):e._e(),e.supportZoomAndFocusSliderCfg?[e.supportZoom?n("ptzSlider",{attrs:{min:e.zoomFocusInfo.iZoomMinPos,max:e.zoomFocusInfo.iZoomMaxPos,factorOfShow:e.supportDigitalZoom?.001:1,step:e.supportDigitalZoom?100:1,decimalOfShow:e.supportDigitalZoom?1:0,title:e.$t("common_Zoom"),value:e.zoomFocusInfo.iZoomCurPos},on:{valueChanged:e.zoomSliderChanged}}):e._e(),e.supportFocus?n("ptzSlider",{attrs:{isFocusing:e.isFocusing,min:e.zoomFocusInfo.iFocusMinPos,max:e.zoomFocusInfo.iFocusMaxPos,title:e.$t("common_Focus"),value:e.zoomFocusInfo.iFocusCurPos},on:{valueChanged:e.focusSliderChanged}}):e._e()]:[e.supportZoom||e.supportFocus?n("adjust",{attrs:{speedVal:e.speedVal,channel:e.channel,supportZoom:e.supportZoom,supportFocus:e.supportFocus}}):e._e()],e.supportPtz3DLocation?[n("div",{staticClass:"ptz-3D-zoom-wrap"},[n("button",{staticClass:"flex feature-btn",class:{active:e.is3DLocationModeOn},attrs:{"reo-element":"",disabled:e.stream===e.EnumStreamType.CLIP||!e.isPlayingVideo},on:{click:e.changePtz3DLocationState}},[n("span",{staticClass:"feature-icon icon-client_3dzoom",attrs:{title:e.$t("live_page_toolbar_ptz_3D_zoom")}}),n("span",{staticClass:"feature-des"},[e._v(e._s(e.$t("live_page_toolbar_ptz_3D_zoom")))])]),n("span",{staticClass:"icon-client_questionmark",on:{click:function(t){return t.stopPropagation(),e.open3DLocationIntroDialog(t)}}})])]:e._e(),e.supportPtzCalibration?n("calibration",{attrs:{channel:e.channel},on:{isCalibratingChange:e.isCalibratingChange}}):e._e(),e.isCalibrating?n("loading",{staticClass:"calibration-loading",attrs:{des:e.$t("ptz_self_testing_description")}}):e._e(),e.supportGuard?n("button",{staticClass:"flex feature-btn",attrs:{"reo-element":""},on:{click:function(t){e.showGuard=!0}}},[n("span",{staticClass:"feature-icon icon-ptz_location",attrs:{title:e.$t("ptz_guard_point_title")}}),n("span",{staticClass:"feature-des"},[e._v(e._s(e.$t("ptz_guard_point_title")))])]):e._e(),e.supportPtzPreset?n("button",{staticClass:"flex feature-btn",attrs:{"reo-element":""},on:{click:function(t){e.showPtzPreset=!0}}},[n("span",{staticClass:"feature-icon icon-client_Preset",attrs:{title:e.$t("tooltip_Preset")}}),n("span",{staticClass:"feature-des"},[e._v(e._s(e.$t("tooltip_Preset")))])]):e._e(),e.supportPtzCruise?n("button",{staticClass:"flex feature-btn",attrs:{"reo-element":""},on:{click:function(t){e.showPtzCruise=!0}}},[n("span",{staticClass:"feature-icon icon-client_cruise",attrs:{title:e.$t("live_page_toolbar_ptz_cruise")}}),n("span",{staticClass:"feature-des"},[e._v(e._s(e.$t("live_page_toolbar_ptz_cruise")))])]):e._e(),e.dialogId?n("div",{staticClass:"dialog-mask full-screen"},[n(e.dialogId,{tag:"component",staticClass:"dialog-wrap ab-center",on:{closeDialog:function(t){e.dialogId=""}}})],1):e._e()],2):e._e(),e.showGuard?n("guard",{attrs:{channel:e.channel,device:e.device,supportGuardPointImage:e.supportGuardPointImage,supportImportExportImage:e.supportImportExportImage,isNvr:e.isNvr,isSD7:e.isSD7,isSd7Channel:e.isSd7Channel,stream:e.stream,isLoading:e.isLoading},on:{handlePrompt:e.handlePrompt,handleLoading:e.handleLoading,closeGuard:e.closeGuard,moveToNewPos:e.timingGetZoomFocusInfo}}):e._e(),e.showPtzPreset?n("preset",{attrs:{channel:e.channel,device:e.device,isLoading:e.isLoading,supportPtzPresetImage:e.supportPtzPresetImage,supportImportExportImage:e.supportImportExportImage,supportPtzCruise:e.supportPtzCruise,isNvr:e.isNvr,isSD7:e.isSD7,isSd7Channel:e.isSd7Channel,stream:e.stream},on:{handlePromptMsg:e.handlePromptMsg,handlePrompt:e.handlePrompt,handleLoading:e.handleLoading,closePreset:e.closePreset,moveToNewPos:e.timingGetZoomFocusInfo}}):e._e(),e.showPtzCruise?n("cruise",{attrs:{channel:e.channel,device:e.device,isLoading:e.isLoading,supportPtzPresetImage:e.supportPtzPresetImage,supportImportExportImage:e.supportImportExportImage},on:{handlePrompt:e.handlePrompt,handlePromptMsg:e.handlePromptMsg,handleLoading:e.handleLoading,closeCruise:e.closeCruise,moveToNewPos:e.timingGetZoomFocusInfo}}):e._e(),e.isLoading?n("loading"):e._e(),e.openPrompt!==e.P.PromptStatus.close||e.promptMessage?n("statusPrompt",{attrs:{promptStatus:e.openPrompt,promptMessage:e.promptMessage},on:{promptClosed:e.closePrompt}}):e._e(),!e.isLoading&&e.isLoadingDataRetry?n("retry",{on:{retry:e.init}}):e._e()],1)},zl=[],Yl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ptz-slider no-locked"},[n("div",{staticClass:"flex-between"},[n("span",{staticClass:"options-text speed-title",attrs:{title:e.title}},[e._v(e._s(e.title))]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.isFocusing,expression:"!isFocusing"}],staticClass:"options-text"},[e._v(e._s(e.stepsTitle))]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isFocusing,expression:"isFocusing"}],staticClass:"is-focusing flex"},[n("span",{staticClass:"focusing-des",attrs:{title:e.$t("common_view_auto")}},[e._v(e._s(e.$t("common_view_auto")))]),n("loadingImg",{attrs:{delay:0}})],1)]),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isFocusing,expression:"!isFocusing"}],staticClass:"slider-box flex-between"},[n("span",{staticClass:"steps-handler icon-client_minimize",attrs:{disabled:e.nowSteps===e.min},on:{click:function(t){return t.stopPropagation(),e.minimize(t)}}}),n("processSlider",e._b({staticClass:"process-slider",attrs:{bgColor:"#535E6B"},on:{valueChanged:e.valueChanged}},"processSlider",e.barInfo,!1)),n("span",{staticClass:"steps-handler icon-client_plus",attrs:{disabled:e.nowSteps===e.max},on:{click:function(t){return t.stopPropagation(),e.plus(t)}}})],1)])},ql=[],$l=u["a"].extend({name:"speed",components:{processSlider:ts["a"],loadingImg:d["a"]},props:{title:String,value:Number,min:{type:Number,default:0},step:{type:Number,default:1},factorOfShow:{type:Number,default:1},decimalOfShow:{type:Number,default:0},max:{type:Number,default:100},isFocusing:{type:Boolean,default:!1}},data:function(){return{nowSteps:0}},watch:{value:{handler:function(e){e!==this.nowSteps&&(this.nowSteps=e)},immediate:!0}},computed:{barInfo:function(){return{value:this.nowSteps,step:this.step,min:this.min,max:this.max}},stepsTitle:function(){return(this.nowSteps*this.factorOfShow).toFixed(this.decimalOfShow)}},methods:{valueChanged:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.nowSteps!==e){n.next=2;break}return n.abrupt("return");case 2:t.nowSteps=e,t.$emit("valueChanged",t.nowSteps);case 4:case"end":return n.stop()}}),n)})))()},plus:function(){var e=Math.min(this.nowSteps+this.step,this.max);e!==this.max&&(e=Math.round(e/this.step)*this.step),this.nowSteps!==e&&(this.nowSteps=e,this.$emit("valueChanged",this.nowSteps))},minimize:function(){var e=Math.max(this.nowSteps-this.step,this.min);e!==this.min&&(e=Math.round(e/this.step)*this.step),this.nowSteps!==e&&(this.nowSteps=e,this.$emit("valueChanged",this.nowSteps))}}}),Kl=$l,Zl=(n("f4e9"),Object(g["a"])(Kl,Yl,ql,!1,null,"d9193afe",null)),Jl=Zl.exports,Ql=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"flex feature-btn",attrs:{"reo-element":""},on:{click:e.startCalibrate}},[n("span",{staticClass:"feature-icon icon-ptz_repair"}),n("span",{staticClass:"feature-des"},[e._v(e._s(e.$t("calibration_button_title")))])])},Xl=[],ed=u["a"].extend({props:{channel:Object},data:function(){return{selfTestState:N["BC_PT_SELF_TEST_STATE_E"].BC_IDLE,loopGetState:null}},created:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loopGetState=Object(l["h"])(e.getCalibrationState,1),t.next=3,e.getCalibrationState();case 3:e.isCalibrating&&e.loopGetState();case 4:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){this.loopGetState&&(this.loopGetState(!1),this.loopGetState=null)},computed:{isCalibrating:function(){return this.selfTestState===N["BC_PT_SELF_TEST_STATE_E"].BC_DOING}},watch:{isCalibrating:function(e){this.$emit("isCalibratingChange",e),!e&&this.loopGetState&&(this.loopGetState(!1),this.loopGetState=null)}},methods:{getCalibrationState:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.channel.config.getPtSelfTestCfg();case 3:e.selfTestState=t.sent.iTestState,t.next=9;break;case 6:t.prev=6,t.t0=t["catch"](0),C["a"].error("calibration.vue > getCalibrationState > getPtSelfTestCfg: ",t.t0);case 9:case"end":return t.stop()}}),t,null,[[0,6]])})))()},startCalibrate:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.selfTestState!==N["BC_PT_SELF_TEST_STATE_E"].BC_DOING){t.next=2;break}return t.abrupt("return");case 2:return e.selfTestState=N["BC_PT_SELF_TEST_STATE_E"].BC_DOING,t.prev=3,t.next=6,e.channel.config.startPtSelfTest();case 6:e.getCalibrationState(),t.next=13;break;case 9:t.prev=9,t.t0=t["catch"](3),e.selfTestState=N["BC_PT_SELF_TEST_STATE_E"].BC_IDLE,C["a"].error("calibration.vue > startCalibrate > startPtSelfTest: ",t.t0);case 13:case"end":return t.stop()}}),t,null,[[3,9]])})))()}}}),td=ed,nd=Object(g["a"])(td,Ql,Xl,!1,null,"5c8a67fd",null),id=nd.exports,ad=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ptz-adjust no-locked"},[e.supportZoom?n("div",{staticClass:"adjust-item"},[n("h4",{staticClass:"text"},[e._v(e._s(e.$t("common_Zoom")))]),n("actions-btn",{staticClass:"flex-between",attrs:{actionBtns:e.zoom},on:{callback:e.zControl}})],1):e._e(),e.supportFocus?n("div",{staticClass:"adjust-item"},[n("h4",{staticClass:"text"},[e._v(e._s(e.$t("common_Focus")))]),n("actions-btn",{staticClass:"flex-between",attrs:{actionBtns:e.focus},on:{callback:e.zControl}})],1):e._e()])},rd=[],sd=u["a"].extend({props:{speedVal:Number,channel:Object,supportZoom:Boolean,supportFocus:Boolean},components:{actionsBtn:fn},data:function(){return{zoom:{zoomOut:{icon:"icon-client_minimize",mousedown:"zoomOut",mouseup:"stop"},zoomIn:{icon:"icon-client_plus",mousedown:"zoomIn",mouseup:"stop"}},focus:{focusFar:{icon:"icon-client_minimize",mousedown:"focusFar",mouseup:"stop"},focusNear:{icon:"icon-client_plus",mousedown:"focusNear",mouseup:"stop"}}}},methods:{zControl:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:n.prev=0,n.t0=e,n.next="zoomIn"===n.t0?4:"zoomOut"===n.t0?7:"focusNear"===n.t0?10:"focusFar"===n.t0?13:"stop"===n.t0?16:19;break;case 4:return n.next=6,t.channel.ptz.zoomIn(t.speedVal);case 6:return n.abrupt("break",20);case 7:return n.next=9,t.channel.ptz.zoomOut(t.speedVal);case 9:return n.abrupt("break",20);case 10:return n.next=12,t.channel.ptz.focusNear(t.speedVal);case 12:return n.abrupt("break",20);case 13:return n.next=15,t.channel.ptz.focusFar(t.speedVal);case 15:return n.abrupt("break",20);case 16:return n.next=18,t.channel.ptz.stop();case 18:return n.abrupt("break",20);case 19:return n.abrupt("break",20);case 20:n.next=25;break;case 22:n.prev=22,n.t1=n["catch"](0),C["a"].error("adjust.vue > zControl > ".concat(e,": "),n.t1);case 25:case"end":return n.stop()}}),n,null,[[0,22]])})))()}}}),od=sd,cd=(n("d739"),Object(g["a"])(od,ad,rd,!1,null,"0d9cc3ce",null)),ud=cd.exports,ld=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"preset-container feature-dialog"},[n("div",{staticClass:"flex ptz-title"},[n("span",{staticClass:"dialog-icon pre-icon icon-client_pre",on:{click:e.closePreset}}),n("h4",{staticClass:"subtitle"},[e._v(e._s(e.$t("livePtz_presetPoints")))]),e.isClient?n("div",{staticClass:"close-box",on:{click:function(t){return t.stopPropagation(),e.$emit("closePtz")}}},[n("span",{staticClass:"btn-icon icon-client_cancel"})]):e._e()]),n("div",{staticClass:"top-btns flex"},[e.hasSnapImage?n("span",{staticClass:"dialog-icon",class:[e.showSnapImageList?"icon-client_cruise_pic":"icon-client_cruise_nopic"],on:{click:function(t){e.showSnapImageList=!e.showSnapImageList}}}):e._e(),n("span",{staticClass:"dialog-icon icon-client_refresh_pro",on:{click:e.init}}),n("span",{staticClass:"dialog-icon icon-client_neoadddevice",on:{click:e.showAddPreset}})]),n("ul",{staticClass:"preset-wrap"},[n("li",{directives:[{name:"show",rawName:"v-show",value:!e.presets.length&&!e.isLoading&&e.initd,expression:"!presets.length&&!isLoading&&initd"}],staticClass:"ab-center"},[n("img",{staticClass:"empty-img",attrs:{src:e.emptyImg}})]),e._l(e.presets,(function(t,i){return n("li",{key:t.name+t.id+i,staticClass:"preset-item flex",class:{"has-snap":e.showSnapImageList},on:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.moveToPrest(i)}}},[e.hasSnapImage&&e.showSnapImageList?n("div",{staticClass:"snap-wrap flex"},[n("div",{staticClass:"snap-img-box"},[t.snapUrl?n("img",{staticClass:"snap-img",attrs:{src:e.addImgSrcPrefix(t.snapUrl)}}):e._e(),n("span",{staticClass:"preset-name",attrs:{title:t.name}},[e._v(e._s(t.name))]),t.snapUrl?e._e():n("span",{staticClass:"icon-client_cruise_pic ab-center empty-img-icon"})]),n("div",{staticClass:"btn-box flex"},[n("span",{staticClass:"edit-icon icon-client_eith",on:{click:function(t){return t.stopPropagation(),e.showModifyPreset(i)}}}),n("span",{staticClass:"delete-icon icon-client_delete",on:{click:function(t){return t.stopPropagation(),e.deletePreset(i)}}})])]):[n("span",{staticClass:"preset-name",attrs:{title:t.name}},[e._v(e._s(t.name))]),n("span",{staticClass:"edit-icon icon-client_eith",on:{click:function(t){return t.stopPropagation(),e.showModifyPreset(i)}}}),n("span",{staticClass:"delete-icon icon-client_delete",on:{click:function(t){return t.stopPropagation(),e.deletePreset(i)}}})]],2)}))],2),-1!==e.needToAddPreset.id?n("div",{staticClass:"dialog-mask full-screen"},[n("div",{staticClass:"inner-dialog ab-center"},[n("h5",{staticClass:"dialog-title"},[e._v(e._s(e.$t("tooltip_AddPresetPoint")))]),n("p",{staticClass:"dialog-des"},[e._v(e._s(e.supportPtzCruise?e.$t("ptz_preset_point_description"):e.$t("ptz_preset_point_not_support_cruise_description")))]),e.hasSnapImage?n("div",{staticClass:"snap-box"},[e.needToAddPreset.snapUrl?n("img",{staticClass:"snap-img",attrs:{src:e.addImgSrcPrefix(e.needToAddPreset.snapUrl)}}):e._e(),e.isLoadingImg?e._e():[e.needToAddPreset.snapUrl?n("div",{staticClass:"snap-mask full-screen"},[n("span",{staticClass:"icon-client_refresh_pro snap-refresh ab-center",attrs:{title:e.$t("snap_refresh")},on:{click:function(t){return e.refreshLocalSnap("add")}}})]):e._e(),e.needToAddPreset.snapUrl?e._e():n("span",{staticClass:"icon-client_pic_loading ab-center empty-img-icon"}),e.needToAddPreset.imageName?e._e():n("span",{staticClass:"icon-client_refresh_pro snap-refresh ab-center",attrs:{title:e.$t("snap_refresh")},on:{click:function(t){return e.refreshLocalSnap("add")}}})],e.isLoadingImg?n("loading",{attrs:{delay:0}}):e._e()],2):e._e(),n("simpleInput",e._b({staticClass:"simple-input",attrs:{targetValue:e.needToAddPreset.name,autoFocus:!0},on:{inputEnter:function(t){return e.proxySetPreset("add")},inputChanged:e.inputChanged}},"simpleInput",e.inputArr.add,!1)),n("div",{staticClass:"btns-wrap flex"},[n("button",{staticClass:"ghost-button",attrs:{"reo-element":""},on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}},[e._v(e._s(e.$t("common_dialog_cancel_button")))]),n("button",{class:{"non-clickable":e.needToAddPreset.isSetting},attrs:{"reo-element":""},on:{click:function(t){return t.stopPropagation(),e.proxySetPreset("add")}}},[e._v(e._s(e.$t("common_dialog_ok_button")))])])],1)]):e._e(),-1!==e.needToModifyPreset.id?n("div",{staticClass:"dialog-mask full-screen"},[n("div",{staticClass:"inner-dialog ab-center"},[n("h5",{staticClass:"dialog-title"},[e._v(e._s(e.$t("tooltip_EditPresetPoint")))]),e.hasSnapImage?n("div",{staticClass:"snap-box"},[e.needToModifyPreset.snapUrl?n("img",{staticClass:"snap-img",attrs:{src:e.addImgSrcPrefix(e.needToModifyPreset.snapUrl)}}):e._e(),e.isLoadingDialogPresetImg||e.isLoadingImg?e._e():[e.needToModifyPreset.snapUrl?n("div",{staticClass:"snap-mask full-screen"},[n("span",{staticClass:"icon-client_refresh_pro snap-refresh ab-center",attrs:{title:e.$t("snap_refresh")},on:{click:function(t){return e.refreshLocalSnap("modify")}}})]):e._e(),e.needToModifyPreset.snapUrl?e._e():n("span",{staticClass:"icon-client_pic_loading ab-center empty-img-icon"}),e.needToModifyPreset.imageName?e._e():n("span",{staticClass:"icon-client_refresh_pro snap-refresh ab-center",attrs:{title:e.$t("snap_refresh")},on:{click:function(t){return e.refreshLocalSnap("modify")}}}),e.needToModifyPreset.imageName&&!e.needToModifyPreset.snapUrl?n("a",{staticClass:"btn-retry ab-center",attrs:{"reo-element":""},on:{click:function(t){return e.getPresetSnap(e.needToModifyPreset)}}},[e._v(e._s(e.$t("common_dialog_retry_button")))]):e._e()],e.isLoadingDialogPresetImg||e.isLoadingImg?n("loading",{attrs:{delay:0}}):e._e()],2):e._e(),n("simpleInput",e._b({staticClass:"simple-input",attrs:{targetValue:e.needToModifyPreset.name,autoFocus:!0},on:{inputEnter:function(t){return e.proxySetPreset("modify")},inputChanged:e.inputChanged}},"simpleInput",e.inputArr.modify,!1)),n("div",{staticClass:"btns-wrap flex"},[n("button",{staticClass:"ghost-button",attrs:{"reo-element":""},on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}},[e._v(e._s(e.$t("common_dialog_cancel_button")))]),n("button",{class:{"non-clickable":e.needToModifyPreset.isSetting},attrs:{"reo-element":""},on:{click:function(t){return t.stopPropagation(),e.proxySetPreset("modify")}}},[e._v(e._s(e.$t("common_dialog_ok_button")))])])],1)]):e._e()])},dd=[],pd=n("6786"),hd=n.n(pd),md=u["a"].extend({props:{channel:Object,device:Object,isLoading:Boolean,supportPtzPresetImage:Boolean,supportImportExportImage:Boolean,supportPtzCruise:Boolean,isSd7Channel:{type:Boolean},isSD7:{type:Boolean},isNvr:{type:Boolean},stream:{type:Number}},components:{simpleInput:_,loading:P["a"]},data:function(){return{showSnapImageList:!1,isClient:y["a"].IS_CLIENT,addImgSrcPrefix:l["a"],presets:[],inputArr:{add:{flag:"add",checked:!0,minLength:1,maxLength:31,disallowConsecutiveSpaces:!0,triggerVerificationCount:0},modify:{flag:"modify",checked:!0,minLength:1,maxLength:31,disallowConsecutiveSpaces:!0,triggerVerificationCount:0}},needToAddPreset:{id:-1,name:"",imageName:"",snapUrl:"",isSetting:!1},needToModifyPreset:{id:-1,name:"",imageName:"",snapUrl:"",isSetting:!1},tempFolder:"",initd:!1,emptyImg:hd.a,isLoadingImg:!1,maxPresetNum:64,iPtzCmdRecord:{add:N["PTZ_CMD_E"].PTZ_SETPOS,move:N["PTZ_CMD_E"].PTZ_TOPOS,delete:N["PTZ_CMD_E"].PTZ_DELPOS,modify:-1},needExportPresetImgPresets:[]}},computed:{isLoadingDialogPresetImg:function(){var e=this;return-1===this.needToModifyPreset.id||this.needExportPresetImgPresets.some((function(t){return t.id===e.needToModifyPreset.id}))},hasSnapImage:function(){return this.supportPtzPresetImage&&this.supportImportExportImage}},created:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,cn["a"].getTempleFolder();case 2:return e.tempFolder=t.sent,e.showSnapImageList=e.hasSnapImage,t.next=6,e.init();case 6:e.initd=!0;case 7:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){this.needExportPresetImgPresets=[]},methods:{init:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$emit("handleLoading",!0),t.prev=1,t.next=4,e.channel.config.getPresets();case 4:n=t.sent,e.maxPresetNum=n.iMaxNumber,e.presets=[],i=[],a=0;case 9:if(!(ae.maxPresetNum-1)){t.next=13;break}return t.abrupt("continue",16);case 13:s={name:r.name,id:r.iPresetId,imageName:r.imageName,snapUrl:""},e.presets.push(s),e.hasSnapImage&&r.imageName&&i.push(s);case 16:a++,t.next=9;break;case 19:e.needExportPresetImgPresets=i,e.loopExportPresetImg(),t.next=26;break;case 23:t.prev=23,t.t0=t["catch"](1),C["a"].error("private > renderer > live-ptz > preset.vue > getPresets: ",t.t0);case 26:e.$emit("handleLoading",!1);case 27:case"end":return t.stop()}}),t,null,[[1,23]])})))()},loopExportPresetImg:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.needExportPresetImgPresets.shift(),n){t.next=3;break}return t.abrupt("return");case 3:return e.needToModifyPreset.id===n.id&&(e.isLoadingImg=!0),t.prev=4,t.next=7,e.exportPresetImg(n);case 7:t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](4),C["a"].error("private > renderer > live-ptz > preset.vue > loopExportPresetImg > exportPresetImg: ",t.t0);case 12:e.needToModifyPreset.id===n.id&&(e.isLoadingImg=!1),e.loopExportPresetImg();case 14:case"end":return t.stop()}}),t,null,[[4,9]])})))()},closeDialog:function(){this.needToAddPreset.id=-1,this.needToModifyPreset.id=-1},closePreset:function(){this.$emit("closePreset")},handlePreset:function(e){var t=arguments,n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){var a,r,s;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=t.length>1&&void 0!==t[1]?t[1]:"",r={iChannelId:n.channel.index,iMaxNumber:n.maxPresetNum,iSize:1,preset:[e]},n.$emit("handleLoading",!0),!a){i.next=11;break}return i.next=6,n.importPresetImg(a,e.imageName,e.iPtzCmd===N["PTZ_CMD_E"].PTZ_DELPOS);case 6:if(s=i.sent,s){i.next=11;break}throw n.$emit("handlePrompt",R["PromptStatus"].failed),n.$emit("handleLoading",!1),-1;case 11:return i.prev=11,i.next=14,n.channel.config.setPresets(r);case 14:n.$emit("handlePrompt",R["PromptStatus"].succeed),n.$emit("handleLoading",!1),i.next=23;break;case 18:throw i.prev=18,i.t0=i["catch"](11),n.$emit("handlePrompt",R["PromptStatus"].failed),n.$emit("handleLoading",!1),i.t0;case 23:case"end":return i.stop()}}),i,null,[[11,18]])})))()},showAddPreset:function(){if(this.presets.length>=this.maxPresetNum)this.$emit("handlePromptMsg",this.$t("live_page_toolbar_preset_set_max_positions",{s1:this.maxPresetNum}));else{this.needToAddPreset.id=-1,this.needToAddPreset.name="";for(var e=0;e renderer > live-ptz > preset.vue > setPresets add ".concat(JSON.stringify(n),": "),t.t0);case 19:e.needToAddPreset.isSetting=!1;case 20:case"end":return t.stop()}}),t,null,[[6,16]])})))()},showModifyPreset:function(e){var t=this,n=this.presets[e];if(this.needToModifyPreset=Object(ct["a"])(Object(ct["a"])({},n),{},{isSetting:!1}),this.hasSnapImage){var i=this.needExportPresetImgPresets.findIndex((function(e){return e.id===t.needToModifyPreset.id}));if(i>0){var a=this.needExportPresetImgPresets.splice(i,1)[0];this.needExportPresetImgPresets.unshift(a)}}},modifyPreset:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.inputArr.modify.checked){t.next=2;break}return t.abrupt("return");case 2:return e.needToModifyPreset.isSetting=!0,n={iPtzCmd:e.iPtzCmdRecord.modify,iPresetId:e.needToModifyPreset.id,name:e.needToModifyPreset.name,imageName:e.needToModifyPreset.imageName},t.prev=4,i=e.needToModifyPreset.snapUrl,i=e.isClient?i.split("?")[0]:i,t.next=9,e.handlePreset(n,i);case 9:if(a=e.presets.findIndex((function(t){return t.id===e.needToModifyPreset.id})),-1!==a){t.next=12;break}throw new Error("Preset no exist");case 12:e.presets[a]=Object(ct["a"])({},e.needToModifyPreset),e.needToModifyPreset.id=-1,e.needToModifyPreset.name="",e.needToModifyPreset.snapUrl="",e.needToModifyPreset.imageName="",t.next=22;break;case 19:t.prev=19,t.t0=t["catch"](4),C["a"].error("private > renderer > live-ptz > preset.vue > setPresets modify ".concat(JSON.stringify(n),": "),t.t0);case 22:e.needToModifyPreset.isSetting=!1;case 23:case"end":return t.stop()}}),t,null,[[4,19]])})))()},deletePreset:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=t.presets[e],a={iPtzCmd:t.iPtzCmdRecord.delete,iPresetId:i.id,name:i.name,imageName:i.imageName},n.prev=2,r=i.snapUrl,r=t.isClient?r.split("?")[0]:r,n.next=7,t.handlePreset(a,r);case 7:t.presets.splice(e,1),n.next=13;break;case 10:n.prev=10,n.t0=n["catch"](2),C["a"].error("private > renderer > live-ptz > preset.vue > setPresets delete ".concat(JSON.stringify(a),": "),n.t0);case 13:case"end":return n.stop()}}),n,null,[[2,10]])})))()},moveToPrest:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=t.presets[e],a={iPtzCmd:t.iPtzCmdRecord.move,iPresetId:i.id,name:i.name,imageName:i.imageName},n.prev=2,n.next=5,t.handlePreset(a);case 5:t.$emit("moveToNewPos"),n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](2),C["a"].error("private > renderer > live-ptz > preset.vue > setPresets move ".concat(JSON.stringify(a),": "),n.t0);case 11:case"end":return n.stop()}}),n,null,[[2,8]])})))()},getImageName:function(e){return"preset_"+(e<10?"0".concat(e):e)},updateCacheImagePathAsync:function(){return this.isSd7Channel&&this.stream===EnumStreamType.TRACK_FLUENT?this.channel.updateCacheImagePathAsync("","sub",this.isNvr,1):this.isSd7Channel&&this.stream===EnumStreamType.TRACK_CLEAR?this.channel.updateCacheImagePathAsync("","main",this.isNvr,1):this.channel.updateCacheImagePathAsync()},refreshLocalSnap:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a,r,s,o,c,u,l,d,p,h,m,g,f,_;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.isLoadingImg=!0,n.prev=1,i="",!t.isClient){n.next=57;break}if(!t.isSD7||!t.channel.index){n.next=24;break}return n.next=7,cn["a"].getLiveMode();case 7:if(a=n.sent,1===a){n.next=20;break}return n.next=11,t.device.getChannelAtIndex(0);case 11:return r=n.sent,n.next=14,r.live.updateCacheImage();case 14:return n.next=16,K["a"].unlink(t.channel.cacheImagePath);case 16:return n.next=18,K["a"].copyFile(r.cacheImagePath,t.channel.cacheImagePath);case 18:n.next=22;break;case 20:return n.next=22,t.channel.live.updateCacheImage(t.channel.index);case 22:n.next=26;break;case 24:return n.next=26,t.channel.live.updateCacheImage();case 26:return n.next=28,new Promise((function(e){setTimeout((function(){e(!0)}),1e3)}));case 28:return s=t.channel.cacheImagePath,o=s.split("?"),c=Object(T["a"])(o,2),u=c[0],c[1],n.next=32,K["a"].readFile(u);case 32:if(l=n.sent,l){n.next=36;break}throw C["a"].error("preset.vue > refreshLocalSnap > readFile ".concat(u," failed ")),-1;case 36:return d="add"===e?t.needToAddPreset.id:t.needToModifyPreset.id,p=t.getImageName(d),h=on.a.join(t.tempFolder,"preset-snap",t.device.identifier,"".concat(t.channel.index)),n.next=41,K["a"].mkdir(h);case 41:if(n.sent){n.next=43;break}C["a"].error("preset.vue > refreshLocalSnap > mkdir ".concat(h," failed "));case 43:return m=on.a.join(h,p),n.next=46,K["a"].unlink(m);case 46:if(n.sent){n.next=48;break}C["a"].error("preset.vue > refreshLocalSnap > unlink ".concat(m," failed "));case 48:return n.next=50,K["a"].writeFile(m,l);case 50:if(g=n.sent,g){n.next=54;break}throw C["a"].error("preset.vue > refreshLocalSnap > writeFile ".concat(m," failed ")),-1;case 54:i=m+"?"+Object(z["a"])(),n.next=62;break;case 57:return n.next=59,t.updateCacheImagePathAsync();case 59:return i=n.sent,n.next=62,new Promise((function(e){setTimeout((function(){e(!0)}),1e3)}));case 62:f="add"===e?t.needToAddPreset.id:t.needToModifyPreset.id,_=t.getImageName(f),n.t0=e,n.next="add"===n.t0?67:(n.t0,70);break;case 67:return t.needToAddPreset.snapUrl=i,t.needToAddPreset.imageName=_,n.abrupt("break",73);case 70:return t.needToModifyPreset.snapUrl=i,t.needToModifyPreset.imageName=_,n.abrupt("break",73);case 73:n.next=78;break;case 75:n.prev=75,n.t1=n["catch"](1),C["a"].error("preset.vue > refreshLocalSnap: ",n.t1);case 78:t.isLoadingImg=!1;case 79:case"end":return n.stop()}}),n,null,[[1,75]])})))()},getPresetSnap:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.isLoadingImg=!0,n.next=3,t.exportPresetImg(e);case 3:if(e.snapUrl=n.sent,i=t.presets.findIndex((function(t){return t.id===e.id})),-1!==i){n.next=8;break}throw t.isLoadingImg=!1,new Error("Preset no exist");case 8:t.isLoadingImg=!1,t.presets[i].snapUrl=e.snapUrl;case 10:case"end":return n.stop()}}),n)})))()},importPresetImg:function(e,t){var n=arguments,i=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var r,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return r=n.length>2&&void 0!==n[2]&&n[2],a.prev=1,s=i.isClient?e.split("?")[0]:e,a.next=5,i.channel.config.importImageFile(t,s,r);case 5:return a.abrupt("return",s);case 8:return a.prev=8,a.t0=a["catch"](1),C["a"].error("preset.vue > importImageFile ".concat(e,": "),a.t0),a.abrupt("return","");case 12:case"end":return a.stop()}}),a,null,[[1,8]])})))()},exportPresetImg:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a,r,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i="",a="",t.isClient&&(a=on.a.join(t.tempFolder,"preset-snap",t.device.identifier,"".concat(t.channel.index))),n.prev=3,n.next=6,t.channel.config.exportImageFile(e.imageName,a);case 6:return i=n.sent,r=t.isClient?i+"?"+Object(z["a"])():i,n.next=10,Object(l["u"])(r);case 10:e.snapUrl=r,s=t.presets.find((function(t){return t.id===e.id})),s&&(s.snapUrl=r),t.needToModifyPreset.id===e.id&&(t.needToModifyPreset.snapUrl=r),n.next=20;break;case 16:n.prev=16,n.t0=n["catch"](3),C["a"].error("preset.vue > exportPresetImg ".concat(e.imageName," url: ").concat(i," "),n.t0),i="";case 20:return n.abrupt("return",i);case 21:case"end":return n.stop()}}),n,null,[[3,16]])})))()}}}),gd=md,fd=(n("b18b"),Object(g["a"])(gd,ld,dd,!1,null,"767fd550",null)),_d=fd.exports,vd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"cruise-container feature-dialog",class:{startDragging:e.startDragging},on:{dragover:function(e){e.preventDefault()},dragenter:function(e){e.preventDefault()},drop:e.onDrop}},[n("div",{staticClass:"flex ptz-title"},[n("span",{staticClass:"dialog-icon pre-icon icon-client_pre",on:{click:e.closeCruise}}),n("h4",{staticClass:"subtitle"},[e._v(e._s(e.$t("live_page_toolbar_ptz_cruise")))]),e.isClient?n("div",{staticClass:"close-box",on:{click:function(t){return t.stopPropagation(),e.$emit("closePtz")}}},[n("span",{staticClass:"btn-icon icon-client_cancel"})]):e._e()]),n("div",{staticClass:"top-btns flex-between"},[n("div",{staticClass:"operation-btns flex"},[n("span",{staticClass:"dialog-icon icon-client_play3",on:{click:e.play}}),n("span",{staticClass:"dialog-icon icon-client_pause3",on:{click:e.pause}})]),n("div",{staticClass:"operation-btns flex"},[n("span",{staticClass:"dialog-icon icon-client_refresh_pro",on:{click:e.init}}),n("span",{staticClass:"dialog-icon icon-client_neoadddevice",on:{click:e.showList}})])]),n("transition-group",{staticClass:"cruise-wrap",attrs:{tag:"ul",name:e.cruises.length?"list-cruise":""}},[n("li",{directives:[{name:"show",rawName:"v-show",value:!e.cruises.length&&!e.isLoading&&e.initd,expression:"!cruises.length&&!isLoading&&initd"}],key:"empty",staticClass:"ab-center"},[n("img",{staticClass:"empty-img",attrs:{src:e.emptyImg}})]),n("li",{key:"line",staticClass:"line-wrap",class:{hidden:-1===e.dragCruiseIndex||-1===e.dropCruiseIndex||e.dragCruiseIndex===e.dropCruiseIndex}},[n("div",{staticClass:"line"})]),e._l(e.cruises,(function(t,i){return n("li",{key:t.order,staticClass:"cruise-item flex",class:{"has-snap":e.supportPtzPresetImage&&e.supportImportExportImage},attrs:{draggable:""},on:{dragover:function(t){return t.stopPropagation(),e.onDragOver(t,i)},drop:function(t){return t.stopPropagation(),e.onDrop(t)},dragstart:function(t){return t.stopPropagation(),e.onDragStart(t,i)},dragend:function(t){return t.stopPropagation(),e.onDragEnd(t)},click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.moveToPreset(i)}}},[e.supportPtzPresetImage&&e.supportImportExportImage?n("div",{staticClass:"snap-wrap flex"},[n("div",{staticClass:"snap-img-box"},[t.snapUrl?n("img",{staticClass:"snap-img",attrs:{src:e.addImgSrcPrefix(t.snapUrl)}}):e._e(),n("div",{staticClass:"cruise-info flex-between"},[n("span",{staticClass:"preset-name",attrs:{title:t.name}},[e._v(e._s(t.name))]),n("span",{staticClass:"cruise-stay"},[e._v(e._s(t.stay)+e._s(e.$t("common_secs")))])]),t.snapUrl?e._e():n("span",{staticClass:"icon-client_cruise_pic ab-center empty-img-icon"})]),n("div",{staticClass:"btn-box flex"},[n("span",{staticClass:"edit-icon icon-client_eith",on:{click:function(t){return t.stopPropagation(),e.showModifyCruise(i)}}}),n("span",{staticClass:"delete-icon icon-client_delete",on:{click:function(t){return t.stopPropagation(),e.deleteCruise(i)}}})])]):[n("div",{staticClass:"cruise-meta"},[n("p",{staticClass:"preset-name",attrs:{title:t.name}},[e._v(e._s(t.name))]),n("p",{staticClass:"cruise-stay"},[e._v(e._s(t.stay)+e._s(e.$t("common_secs")))])]),n("span",{staticClass:"edit-icon icon-client_setting",on:{click:function(t){return t.stopPropagation(),e.showModifyCruise(i)}}}),n("span",{staticClass:"delete-icon icon-client_delete",on:{click:function(t){return t.stopPropagation(),e.deleteCruise(i)}}})]],2)}))],2),-1!==e.needToModifyCruise.id?n("div",{staticClass:"inner-dialog full-screen"},[n("h5",{staticClass:"dialog-title"},[e._v(e._s(e.$t("ptz_edit_cruise_poing_title")))]),e.supportPtzPresetImage&&e.supportImportExportImage?n("div",{staticClass:"snap-box"},[e.needToModifyCruise.snapUrl?n("img",{staticClass:"snap-img",attrs:{src:e.addImgSrcPrefix(e.needToModifyCruise.snapUrl)}}):e._e(),e.needToModifyCruise.snapUrl||e.isLoadingDialogPresetImg||e.isLoadingImg?e._e():[n("span",{staticClass:"icon-client_pic_loading ab-center empty-img-icon"}),n("a",{staticClass:"btn-retry ab-center",attrs:{"reo-element":""},on:{click:function(t){return e.getPresetSnap(e.needToModifyCruise)}}},[e._v(e._s(e.$t("common_dialog_retry_button")))])],e.isLoadingDialogPresetImg||e.isLoadingImg?n("loading",{attrs:{delay:0}}):e._e()],2):e._e(),n("ptzSlider",{staticClass:"ptz-slider stay-slider",attrs:{min:1,max:300,title:e.$t("livePtz_patrolTime")+"("+e.$t("common_secs")+")",value:e.needToModifyCruise.stay},on:{valueChanged:function(t){e.needToModifyCruise.stay=t}}}),n("ptzSlider",{staticClass:"ptz-slider speed-slider",attrs:{min:1,max:64,title:e.$t("common_Speed"),value:e.needToModifyCruise.speed},on:{valueChanged:function(t){e.needToModifyCruise.speed=t}}}),n("button",{staticClass:"feature-btn flex",attrs:{"reo-element":""},on:{click:e.setDefault}},[n("span",{staticClass:"feature-des",attrs:{title:e.$t("common_default")}},[e._v(e._s(e.$t("common_default")))])]),n("div",{staticClass:"btns-wrap flex"},[n("button",{staticClass:"ghost-button",attrs:{"reo-element":""},on:{click:e.closeModifyCruise}},[e._v(e._s(e.$t("common_dialog_cancel_button")))]),n("button",{class:{"non-clickable":e.needToModifyCruise.isSetting},attrs:{"reo-element":""},on:{click:e.modifyCruise}},[e._v(e._s(e.$t("common_dialog_ok_button")))])])],1):e._e(),e.showPtzPresetList?n("presetList",{attrs:{isLoading:e.isLoading,supportPtzPresetImage:e.supportPtzPresetImage,supportImportExportImage:e.supportImportExportImage,presets:e.presets,cruisesLength:e.cruises.length},on:{cruiseLimit:e.handlePromptMsg,addCruisePoints:e.addCruisePoints,closeDialog:function(t){e.showPtzPresetList=!1}}}):e._e()],1)},bd=[],wd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"preset-list full-screen"},[n("h5",{staticClass:"dialog-title"},[e._v(e._s(e.$t("ptz_add_cruise_poing_title")))]),n("ul",{staticClass:"preset-wrap"},[n("li",{directives:[{name:"show",rawName:"v-show",value:!e.presets.length&&!e.isLoading,expression:"!presets.length&&!isLoading"}],staticClass:"ab-center"},[n("img",{staticClass:"empty-img",attrs:{src:e.emptyImg}})]),e._l(e.presets,(function(t,i){return n("li",{key:t.name+t.id+i,staticClass:"preset-item flex",class:{"has-snap":e.supportPtzPresetImage&&e.supportImportExportImage}},[n("label",{staticClass:"flex-between customized-label",class:{checked:e.checkedPresetIds.includes(t.id)},attrs:{checkbox:""}},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.checkedPresetIds,expression:"checkedPresetIds",modifiers:{trim:!0}}],attrs:{"reo-element":"",type:"checkbox"},domProps:{value:t.id,checked:Array.isArray(e.checkedPresetIds)?e._i(e.checkedPresetIds,t.id)>-1:e.checkedPresetIds},on:{change:function(n){var i=e.checkedPresetIds,a=n.target,r=!!a.checked;if(Array.isArray(i)){var s=t.id,o=e._i(i,s);a.checked?o<0&&(e.checkedPresetIds=i.concat([s])):o>-1&&(e.checkedPresetIds=i.slice(0,o).concat(i.slice(o+1)))}else e.checkedPresetIds=r}}}),e.supportPtzPresetImage&&e.supportImportExportImage?n("div",{staticClass:"snap-wrap flex"},[n("div",{staticClass:"snap-img-box"},[t.snapUrl?n("img",{staticClass:"snap-img",attrs:{src:e.addImgSrcPrefix(t.snapUrl)}}):e._e(),n("span",{staticClass:"preset-name",attrs:{title:t.name}},[e._v(e._s(t.name))]),t.snapUrl?e._e():n("span",{staticClass:"icon-client_cruise_pic ab-center empty-img-icon"})]),e._m(0,!0)]):[n("p",{staticClass:"preset-name",attrs:{title:t.name}},[e._v(e._s(t.name))]),n("span",{staticClass:"check-icon icon-client_check",attrs:{checkicon:""}})]],2)])}))],2),n("div",{staticClass:"btns-wrap flex"},[n("button",{staticClass:"ghost-button",attrs:{"reo-element":""},on:{click:e.closeDialog}},[e._v(e._s(e.$t("common_dialog_cancel_button")))]),n("button",{attrs:{"reo-element":"",disabled:!e.presets.length},on:{click:e.addCruisePoints}},[e._v(e._s(e.$t("common_dialog_ok_button")))])])])},Cd=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"btn-box flex"},[n("span",{staticClass:"check-icon icon-client_check",attrs:{checkicon:""}})])}],yd=u["a"].extend({props:{presets:Array,isLoading:Boolean,cruisesLength:Number,supportPtzPresetImage:Boolean,supportImportExportImage:Boolean},data:function(){return{addImgSrcPrefix:l["a"],checkedPresetIds:[],defaultStay:10,emptyImg:hd.a,maxPresetNumOfPerCruise:16,defaultSpeed:32}},watch:{checkedPresetIds:{handler:function(e,t){this.cruisesLength+e.length>this.maxPresetNumOfPerCruise&&(this.$emit("cruiseLimit"),this.checkedPresetIds=t)},deep:!0}},methods:{addCruisePoints:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.checkedPresetIds.length){t.next=2;break}return t.abrupt("return");case 2:if(!(e.cruisesLength+e.checkedPresetIds.length>e.maxPresetNumOfPerCruise)){t.next=5;break}return e.$emit("cruiseLimit"),t.abrupt("return");case 5:n=e.checkedPresetIds.map((function(t){var n=e.presets.find((function(e){return e.id===t})),i="unknown",a="";return n&&(i=n.name,a=n.snapUrl),{id:t,name:i,stay:e.defaultStay,speed:e.defaultSpeed,snapUrl:a,order:Object(z["a"])()}})),e.$emit("addCruisePoints",n);case 7:case"end":return t.stop()}}),t)})))()},closeDialog:function(){this.$emit("closeDialog")}}}),Sd=yd,kd=(n("70c8"),Object(g["a"])(Sd,wd,Cd,!1,null,"78a216fe",null)),Ad=kd.exports,Ed=u["a"].extend({components:{ptzSlider:Jl,presetList:Ad,loading:P["a"]},props:{channel:Object,device:Object,isLoading:Boolean,supportPtzPresetImage:Boolean,supportImportExportImage:Boolean},data:function(){return{isClient:y["a"].IS_CLIENT,addImgSrcPrefix:l["a"],emptyImg:hd.a,showPtzPresetList:!1,presets:[],initd:!1,startDragging:!1,needToModifyCruise:{id:-1,name:"",stay:10,speed:32,snapUrl:"",order:"",isSetting:!1},tempFolder:"",defaultStay:10,defaultSpeed:32,isLoadingImg:!1,cruiseSetName:"",cruiseSetPatrolId:0,dragCruiseIndex:-1,dropCruiseIndex:-1,lineIndex:-1,cruises:[],maxPresetNumOfPerCruise:16,needExportPresetImgPresets:[],init:null}},computed:{isLoadingDialogPresetImg:function(){var e=this;return-1===this.needToModifyCruise.id||this.needExportPresetImgPresets.some((function(t){return t.id===e.needToModifyCruise.id}))}},created:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,cn["a"].getTempleFolder();case 2:return e.tempFolder=t.sent,e.init=Object(l["i"])(e.sdkInit,!0,!1),t.next=6,e.init();case 6:e.initd=!0;case 7:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){this.needExportPresetImgPresets=[]},methods:{sdkInit:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s,o,c,u,l,d,p,h,m,g,f;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$emit("handleLoading",!0),t.prev=1,t.next=4,Promise.all([e.channel.config.getPresets(),e.channel.config.getCruises()]);case 4:n=t.sent,i=Object(T["a"])(n,2),a=i[0],r=i[1],e.presets=[],s=[],o=0;case 11:if(!(oa.iMaxNumber-1)){t.next=15;break}return t.abrupt("continue",18);case 15:u={name:c.name,id:c.iPresetId,imageName:c.imageName,snapUrl:""},e.presets.push(u),e.supportPtzPresetImage&&e.supportImportExportImage&&c.imageName&&s.push(u);case 18:o++,t.next=11;break;case 21:return e.cruises=[],C["a"].debug("private > renderer > live-ptz > cruise.vue > init > cruises-start"),t.next=25,new Promise((function(e){setTimeout((function(){e()}),300)}));case 25:l=[],d=r.cruise[0],e.cruiseSetName=d.name,e.cruiseSetPatrolId=d.iPatrolId,p=!1,h=function(t){var n=d.iPresetId[t];if(!d||void 0===n||n<0)return"continue";var i=e.presets.find((function(e){return e.id===n})),a="",r="";if(i&&(a=i.name||"",r=i.snapUrl||""),""===a)return p=!0,"continue";l.push({name:a,id:n,stay:d.iTime[t],speed:d.iSpeed[t],snapUrl:r,order:Object(z["a"])()})},m=0;case 32:if(!(m renderer > live-ptz > cruise.vue > init > cruises: ",JSON.stringify(e.cruises)),p&&(f=e.getSdkCruiseParam(e.cruises),e.channel.config.setCruise(f).then((function(){return e.cruiseSetPatrolId=0}))),e.needExportPresetImgPresets=s,e.loopExportPresetImg(),t.next=49;break;case 46:t.prev=46,t.t0=t["catch"](1),C["a"].error("private > renderer > live-ptz > cruise.vue > getCruise: ",t.t0);case 49:e.$emit("handleLoading",!1);case 50:case"end":return t.stop()}}),t,null,[[1,46]])})))()},loopExportPresetImg:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.needExportPresetImgPresets.shift(),n){t.next=3;break}return t.abrupt("return");case 3:return e.needToModifyCruise.id===n.id&&(e.isLoadingImg=!0),t.prev=4,t.next=7,e.exportPresetImg(n);case 7:t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](4),C["a"].error("private > renderer > live-ptz > cruise.vue > loopExportPresetImg > exportPresetImg: ",t.t0);case 12:e.needToModifyCruise.id===n.id&&(e.isLoadingImg=!1),e.loopExportPresetImg();case 14:case"end":return t.stop()}}),t,null,[[4,9]])})))()},closeCruise:function(){this.$emit("closeCruise")},addCruisePoints:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=Object(l["g"])(t.cruises),a=Object(l["g"])(e),i=[].concat(Object(r["a"])(i),Object(r["a"])(a)),n.prev=3,n.next=6,t.handleCruise(i);case 6:t.cruises=Object(r["a"])(i),t.showPtzPresetList=!1,n.next=13;break;case 10:n.prev=10,n.t0=n["catch"](3),C["a"].error("private > renderer > live-ptz > cruise.vue > addCruisePoints ".concat(e,":"),n.t0);case 13:case"end":return n.stop()}}),n,null,[[3,10]])})))()},showList:function(){this.cruises.length>=this.maxPresetNumOfPerCruise?this.handlePromptMsg():this.showPtzPresetList=!0},handlePromptMsg:function(){this.$emit("handlePromptMsg",this.$t("live_page_toolbar_ptz_cruise_limit"))},showModifyCruise:function(e){var t=this,n=this.cruises[e];if(this.needToModifyCruise=Object(ct["a"])(Object(ct["a"])({},n),{},{isSetting:!1}),this.supportPtzPresetImage&&this.supportImportExportImage){var i=this.needExportPresetImgPresets.findIndex((function(e){return e.id===t.needToModifyCruise.id}));if(i>0){var a=this.needExportPresetImgPresets.splice(i,1)[0];this.needExportPresetImgPresets.unshift(a)}}},getSdkCruiseParam:function(e){var t,n={iChannel:this.channel.index,iSize:1,cruise:[{iValid:1,iStarting:0,iPatrolId:0,iPresetId:[],iTime:[],iSpeed:[],name:this.cruiseSetName}]},i=n.cruise[0],a=Object(ne["a"])(e);try{for(a.s();!(t=a.n()).done;){var r=t.value;i.iPresetId.push(r.id),i.iTime.push(r.stay),i.iSpeed.push(r.speed)}}catch(o){a.e(o)}finally{a.f()}for(var s=i.iPresetId.length;s renderer > live-ptz > cruise.vue > deleteCruise ".concat(t.cruises[e],":"),n.t0);case 11:case"end":return n.stop()}}),n,null,[[2,8]])})))()},modifyCruise:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.needToModifyCruise.isSetting=!0,n=Object(l["g"])(e.cruises),i=n.findIndex((function(t){return t.order===e.needToModifyCruise.order})),-1!==i){t.next=7;break}return e.needToModifyCruise.isSetting=!1,C["a"].error("private > renderer > live-ptz > cruise.vue > modifyCruise not exist ".concat(e.needToModifyCruise)),t.abrupt("return");case 7:return n[i]=Object(ct["a"])({},e.needToModifyCruise),t.prev=8,t.next=11,e.handleCruise(n);case 11:e.cruises=Object(r["a"])(n),e.closeModifyCruise(),t.next=18;break;case 15:t.prev=15,t.t0=t["catch"](8),C["a"].error("private > renderer > live-ptz > cruise.vue > modifyCruise: ",t.t0);case 18:e.needToModifyCruise.isSetting=!1;case 19:case"end":return t.stop()}}),t,null,[[8,15]])})))()},moveToPreset:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$emit("handleLoading",!0),n.prev=1,i=t.cruises[e],a=i.id,n.next=6,t.channel.config.presetInvoke(a);case 6:t.$emit("moveToNewPos"),t.$emit("handlePrompt",R["PromptStatus"].succeed),n.next=14;break;case 10:n.prev=10,n.t0=n["catch"](1),t.$emit("handlePrompt",R["PromptStatus"].failed),C["a"].error("private > renderer > live-ptz > cruise.vue > moveToPreset: ",n.t0);case 14:t.$emit("handleLoading",!1);case 15:case"end":return n.stop()}}),n,null,[[1,10]])})))()},closeModifyCruise:function(){this.needToModifyCruise.id=-1,this.needToModifyCruise.name="",this.needToModifyCruise.order=""},setDefault:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.needToModifyCruise.stay=e.defaultStay,e.needToModifyCruise.speed=e.defaultSpeed;case 2:case"end":return t.stop()}}),t)})))()},play:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$emit("handleLoading",!0),t.prev=1,t.next=4,e.channel.config.cruiseInvoke(e.cruiseSetPatrolId);case 4:e.$emit("handlePrompt",R["PromptStatus"].succeed),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),e.$emit("handlePrompt",R["PromptStatus"].failed);case 10:e.$emit("handleLoading",!1);case 11:case"end":return t.stop()}}),t,null,[[1,7]])})))()},pause:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$emit("handleLoading",!0),t.prev=1,t.next=4,e.channel.config.cruiseStop(e.cruiseSetPatrolId);case 4:e.$emit("moveToNewPos"),e.$emit("handlePrompt",R["PromptStatus"].succeed),t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](1),e.$emit("handlePrompt",R["PromptStatus"].failed);case 11:e.$emit("handleLoading",!1);case 12:case"end":return t.stop()}}),t,null,[[1,8]])})))()},onDragStart:function(e,t){this.dragCruiseIndex=t,this.startDragging=!0},onDragEnd:function(){this.dragCruiseIndex=-1,this.dropCruiseIndex=-1,this.lineIndex=-1,this.startDragging=!1},onDragOver:function(e,t){if(e.preventDefault(),-1!==this.dragCruiseIndex&&this.dragCruiseIndex!==t){var n=document.querySelectorAll(".cruise-item")[t].getBoundingClientRect();if(e.clientY>=n.top+n.height/2){if(this.dragCruiseIndex-t!==1)return void(this.lineIndex!==t+1&&this.handleLine(t,!0))}else if(this.dragCruiseIndex-t!==-1)return void(this.lineIndex!==t&&this.handleLine(t,!1));-1!==this.lineIndex&&this.handleLine(-1,!0)}},handleLine:function(e,t){this.dropCruiseIndex=e,this.lineIndex=e,-1!==this.dragCruiseIndex&&-1!==this.dropCruiseIndex&&this.dragCruiseIndex!==this.dropCruiseIndex&&(t&&this.lineIndex++,document.querySelector(".cruise-wrap").insertBefore(document.querySelector(".line-wrap"),document.querySelectorAll(".cruise-item")[this.lineIndex]))},onDrop:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.preventDefault(),-1!==t.dragCruiseIndex&&-1!==t.dropCruiseIndex&&t.dragCruiseIndex!==t.dropCruiseIndex){n.next=3;break}return n.abrupt("return");case 3:return i=t.dropCruiseIndex,t.dragCruiseIndex>t.dropCruiseIndex&&t.dropCruiseIndex!==t.lineIndex?i++:t.dragCruiseIndex renderer > live-ptz > cruise.vue > onDrop: ",n.t0);case 18:t.onDragEnd();case 19:case"end":return n.stop()}}),n,null,[[8,13]])})))()},getPresetSnap:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t.presets.find((function(t){return t.id===e.id})),i){n.next=4;break}return C["a"].error("cruise.vue > getPresetSnap can not find preset of id ".concat(e.id)),n.abrupt("return");case 4:return t.isLoadingImg=!0,n.next=7,t.exportPresetImg(i);case 7:t.isLoadingImg=!1;case 8:case"end":return n.stop()}}),n)})))()},exportPresetImg:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a,r,s,o,c,u;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i="",a="",t.isClient&&(a=on.a.join(t.tempFolder,"cruise-snap",t.device.identifier,"".concat(t.channel.index))),n.prev=3,n.next=6,t.channel.config.exportImageFile(e.imageName,a);case 6:return i=n.sent,r=t.isClient?i+"?"+Object(z["a"])():i,n.next=10,Object(l["u"])(r);case 10:e.snapUrl=r,s=t.presets.find((function(t){return t.id===e.id})),s&&(s.snapUrl=r),o=Object(ne["a"])(t.cruises);try{for(o.s();!(c=o.n()).done;)u=c.value,u.id===e.id&&(u.snapUrl=r)}catch(d){o.e(d)}finally{o.f()}t.needToModifyCruise.id===e.id&&(t.needToModifyCruise.snapUrl=r),n.next=22;break;case 18:n.prev=18,n.t0=n["catch"](3),C["a"].error("cruise.vue > exportPresetImg ".concat(e.imageName," url: ").concat(i," "),n.t0),i="";case 22:return n.abrupt("return",i);case 23:case"end":return n.stop()}}),n,null,[[3,18]])})))()}}}),xd=Ed,Od=(n("51e2"),Object(g["a"])(xd,vd,bd,!1,null,"f97231de",null)),Id=Od.exports,Dd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"feature-dialog"},[n("div",{staticClass:"flex ptz-title"},[n("span",{staticClass:"dialog-icon pre-icon icon-client_pre",on:{click:e.closeGuard}}),n("h4",{staticClass:"subtitle"},[e._v(e._s(e.$t("ptz_guard_point_title")))]),e.isClient?n("div",{staticClass:"close-box",on:{click:function(t){return t.stopPropagation(),e.$emit("closePtz")}}},[n("span",{staticClass:"btn-icon icon-client_cancel"})]):e._e()]),n("p",{staticClass:"guard-des"},[e._v(e._s(e.$t("ptz_guard_point_description")))]),e.guardInfo.valid||e.isLoading?e._e():[n("button",{staticClass:"update-btn",attrs:{"reo-element":""},on:{click:e.createGuard}},[n("span",{staticClass:"update-icon icon-ptz_location"}),n("p",{staticClass:"update-btn-des"},[e._v(e._s(e.$t("ptz_guard_point_not_set_des")))])]),n("p",{staticClass:"update-des"},[e._v(e._s(e.$t("ptz_detect_area_guard_point_des")))])],e.guardInfo.valid?[e.supportGuardPointImage&&e.supportImportExportImage?n("div",{staticClass:"snap-box"},[e.snapUrl?n("img",{staticClass:"snap-img",attrs:{src:e.addImgSrcPrefix(e.snapUrl)}}):e._e(),e.isLoadingImg?e._e():[e.snapUrl?n("div",{staticClass:"snap-mask full-screen"},[n("span",{staticClass:"icon-client_refresh_pro snap-refresh ab-center",attrs:{title:e.$t("snap_refresh")},on:{click:e.refreshSnap}})]):e._e(),e.snapUrl?e._e():n("span",{staticClass:"icon-client_pic_loading ab-center empty-img-icon"}),e.guardInfo.cImageName?e._e():n("span",{staticClass:"icon-client_refresh_pro snap-refresh ab-center",attrs:{title:e.$t("snap_refresh")},on:{click:e.refreshSnap}}),e.guardInfo.cImageName&&!e.snapUrl?n("a",{staticClass:"btn-retry ab-center",attrs:{"reo-element":""},on:{click:e.getGuard}},[e._v(e._s(e.$t("common_dialog_retry_button")))]):e._e()],e.isLoadingImg?n("loading"):e._e()],2):e._e(),n("button",{staticClass:"feature-btn",attrs:{"reo-element":""},on:{click:e.goGuard}},[n("span",{staticClass:"feature-des",attrs:{title:e.$t("ptz_guard_point_return")}},[e._v(e._s(e.$t("ptz_guard_point_return")))])]),n("div",{staticClass:"flex-between return-box"},[n("span",{staticClass:"return-des",attrs:{title:e.$t("common_view_auto")}},[e._v(e._s(e.$t("common_view_auto")))]),n("slideBtn",e._b({on:{stateChange:e.guardSwitch}},"slideBtn",e.guardEnable,!1))],1),n("ptzSlider",{directives:[{name:"show",rawName:"v-show",value:e.guardEnable.isOpen,expression:"guardEnable.isOpen"}],staticClass:"ptz-slider",attrs:{min:e.timeout.min,max:e.timeout.max,title:e.$t("common_Interval")+"("+e.$t("common_secs")+")",value:e.timeout.targetValue},on:{valueChanged:e.updateGuardTime}}),n("button",{staticClass:"feature-btn update-pos-btn",attrs:{"reo-element":""},on:{click:e.updateGuard}},[n("span",{staticClass:"feature-des",attrs:{title:e.$t("ptz_gurad_point_reset")}},[e._v(e._s(e.$t("ptz_gurad_point_reset")))])])]:e._e()],2)},Td=[],Rd=u["a"].extend({components:{slideBtn:Ci["a"],ptzSlider:Jl,loading:P["a"]},props:{channel:Object,device:Object,supportGuardPointImage:Boolean,supportImportExportImage:Boolean,isLoading:Boolean,isSd7Channel:{type:Boolean},isSD7:{type:Boolean},isNvr:{type:Boolean},stream:{type:Number}},data:function(){return{isClient:y["a"].IS_CLIENT,addImgSrcPrefix:l["a"],guardInfo:{enable:0,timeout:0,valid:!1,action:te["EGuardAction"].SET,cImageName:""},snapUrl:"",defaultSnapName:"guard",isLoadingImg:!1,tempFolder:"",timeout:{targetValue:30,max:300,min:10},initd:!1,guardEnable:{isOpen:0,closeVal:0,openVal:1,isSetting:!1,warnClue:!1}}},created:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$emit("handleLoading",!0),t.prev=1,t.next=4,cn["a"].getTempleFolder();case 4:return e.tempFolder=t.sent,t.next=7,e.getGuard(!0);case 7:t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](1),C["a"].error("guard.vue > created: ",t.t0);case 12:e.initd=!0,e.$emit("handleLoading",!1);case 14:case"end":return t.stop()}}),t,null,[[1,9]])})))()},methods:{closeGuard:function(){this.$emit("closeGuard")},getGuard:function(){var e=arguments,t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=e.length>0&&void 0!==e[0]&&e[0],n.prev=1,n.next=4,t.channel.config.getGuard();case 4:t.guardInfo=n.sent,t.guardUpdate(),i&&t.supportGuardPointImage&&t.supportImportExportImage&&t.guardInfo.cImageName&&t.exportGuardImg(),n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](1),C["a"].error("guard.vue > getGuard: ",n.t0);case 12:case"end":return n.stop()}}),n,null,[[1,9]])})))()},guardUpdate:function(){this.timeout.targetValue=this.guardInfo.timeout,this.guardEnable.isOpen=this.guardInfo.enable},exportGuardImg:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoadingImg=!0,n="",i="",e.isClient&&(i=on.a.join(e.tempFolder,"guard-snap",e.device.identifier,"".concat(e.channel.index))),t.prev=4,t.next=7,e.channel.config.exportImageFile(e.guardInfo.cImageName,i);case 7:return n=t.sent,t.next=10,Object(l["u"])(n);case 10:e.snapUrl=e.isClient?n+"?"+Object(z["a"])():n,t.next=17;break;case 13:t.prev=13,t.t0=t["catch"](4),C["a"].error("guard.vue > exportGuardImg ".concat(e.guardInfo.cImageName," url: ").concat(n," "),t.t0),n="";case 17:return e.isLoadingImg=!1,t.abrupt("return",n);case 19:case"end":return t.stop()}}),t,null,[[4,13]])})))()},importGuardImg:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,i=t.isClient?e.split("?")[0]:e,n.next=4,t.channel.config.importImageFile(t.defaultSnapName,i);case 4:return n.abrupt("return",i);case 7:return n.prev=7,n.t0=n["catch"](0),C["a"].error("guard.vue > importImageFile ".concat(e,": "),n.t0),n.abrupt("return","");case 11:case"end":return n.stop()}}),n,null,[[0,7]])})))()},updateCacheImagePathAsync:function(){return this.isSd7Channel&&this.stream===EnumStreamType.TRACK_FLUENT?this.channel.updateCacheImagePathAsync("","sub",this.isNvr,1):this.isSd7Channel&&this.stream===EnumStreamType.TRACK_CLEAR?this.channel.updateCacheImagePathAsync("","main",this.isNvr,1):this.channel.updateCacheImagePathAsync()},refreshSnap:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isLoadingImg=!0,t.prev=1,n="",!e.isClient){t.next=26;break}if(i=!1,!e.isSD7||!e.channel.index){t.next=20;break}return t.next=8,cn["a"].getLiveMode();case 8:if(a=t.sent,1===a){t.next=20;break}return t.next=12,e.device.getChannelAtIndex(0);case 12:return r=t.sent,t.next=15,r.live.updateCacheImage();case 15:return t.next=17,K["a"].unlink(e.channel.cacheImagePath);case 17:return t.next=19,K["a"].copyFile(r.cacheImagePath,e.channel.cacheImagePath);case 19:i=!0;case 20:if(i){t.next=23;break}return t.next=23,e.channel.live.updateCacheImage();case 23:n=e.channel.cacheImagePath,t.next=29;break;case 26:return t.next=28,e.updateCacheImagePathAsync();case 28:n=t.sent;case 29:return t.next=31,new Promise((function(e){setTimeout((function(){e(!0)}),1e3)}));case 31:return t.next=33,e.importGuardImg(n);case 33:if(s=t.sent,!s){t.next=39;break}return e.snapUrl=e.isClient?s+"?"+Object(z["a"])():s,t.next=38,e.handleGuard(Object(ct["a"])(Object(ct["a"])({},e.guardInfo),{},{action:te["EGuardAction"].SET_IMG,cImageName:e.defaultSnapName}));case 38:e.$emit("handlePrompt",R["PromptStatus"].succeed);case 39:t.next=44;break;case 41:t.prev=41,t.t0=t["catch"](1),C["a"].error("guard.vue > refreshSnap: ",t.t0);case 44:e.isLoadingImg=!1;case 45:case"end":return t.stop()}}),t,null,[[1,41]])})))()},setGuard:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,n.channel.config.setGuard(n.guardInfo);case 3:n.getGuard(),i.next=11;break;case 6:throw i.prev=6,i.t0=i["catch"](0),t||(n.guardInfo=e,n.guardUpdate()),C["a"].error("guard.vue > setGuard ".concat(n.guardInfo.action,": "),i.t0),new Error;case 11:case"end":return i.stop()}}),i,null,[[0,6]])})))()},handleGuard:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$emit("handleLoading",!0),n.prev=1,i=Object(l["g"])(t.guardInfo),t.guardInfo=Object(ct["a"])({},e),n.next=6,t.setGuard(i);case 6:t.$emit("handleLoading",!1),n.next=15;break;case 9:throw n.prev=9,n.t0=n["catch"](1),t.$emit("handlePrompt",R["PromptStatus"].close),t.$emit("handleLoading",!1),C["a"].error("guard.vue > handleGuard ".concat(e.action,": "),n.t0),n.t0;case 15:case"end":return n.stop()}}),n,null,[[1,9]])})))()},guardSwitch:function(e){this.guardEnable.isOpen=e,this.handleGuard(Object(ct["a"])(Object(ct["a"])({},this.guardInfo),{},{enable:e,action:te["EGuardAction"].SET_TIME,timeout:this.timeout.targetValue}))},createGuard:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,n=Object(l["g"])(e.guardInfo),e.guardInfo=Object(ct["a"])(Object(ct["a"])({},e.guardInfo),{},{action:te["EGuardAction"].SET}),t.next=5,e.setGuard(n);case 5:t.next=12;break;case 7:return t.prev=7,t.t0=t["catch"](0),e.$emit("handlePrompt",R["PromptStatus"].close),C["a"].error("guard.vue > createGuard setGuard: ",t.t0),t.abrupt("return");case 12:return t.prev=12,t.next=15,e.refreshSnap();case 15:t.next=20;break;case 17:t.prev=17,t.t1=t["catch"](12),C["a"].error("guard.vue > createGuard > refreshSnap: ",t.t1);case 20:case"end":return t.stop()}}),t,null,[[0,7],[12,17]])})))()},updateGuard:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.handleGuard(Object(ct["a"])(Object(ct["a"])({},e.guardInfo),{},{action:te["EGuardAction"].SET}));case 3:e.$emit("handlePrompt",R["PromptStatus"].succeed),t.next=9;break;case 6:return t.prev=6,t.t0=t["catch"](0),t.abrupt("return");case 9:return t.prev=9,t.next=12,e.refreshSnap();case 12:t.next=17;break;case 14:t.prev=14,t.t1=t["catch"](9),C["a"].error("guard.vue > updateGuard > refreshSnap: ",t.t1);case 17:case"end":return t.stop()}}),t,null,[[0,6],[9,14]])})))()},goGuard:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.handleGuard(Object(ct["a"])(Object(ct["a"])({},e.guardInfo),{},{action:te["EGuardAction"].GOTO}));case 2:e.$emit("handlePrompt",R["PromptStatus"].succeed),e.$emit("moveToNewPos");case 4:case"end":return t.stop()}}),t)})))()},updateGuardTime:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:t.timeout.targetValue=e,t.handleGuard(Object(ct["a"])(Object(ct["a"])({},t.guardInfo),{},{action:te["EGuardAction"].SET_TIME,timeout:e}));case 2:case"end":return n.stop()}}),n)})))()}}}),Pd=Rd,Ld=(n("d55c"),Object(g["a"])(Pd,Dd,Td,!1,null,"58d9b54e",null)),Md=Ld.exports,Nd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ptz-3D-location"},[n("div",{staticClass:"title-wrap"},[n("div",{staticClass:"subtitle"},[e._v(e._s(e.$t("live_page_toolbar_ptz_3D_zoom")))])]),e._m(0),n("p",{staticClass:"description-wrap"},[e._v(e._s(e.$t("live_page_toolbar_ptz_3D_zoom_tip")))]),n("speedyBtn",{attrs:{btnText:e.$t("common_i_got_it_button")},on:{btnClick:e.closeDialog}})],1)},Bd=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"img-wrap flex"},[i("img",{attrs:{src:n("685c")}})])}],Fd=u["a"].extend({name:"ptz3DLocation",components:{speedyBtn:v["a"]},methods:{closeDialog:function(){this.$emit("closeDialog")}}}),jd=Fd,Vd=(n("4d16"),Object(g["a"])(jd,Nd,Bd,!1,null,"7ddb9652",null)),Ud=Vd.exports,Hd=u["a"].extend({components:{pt:wn,ptzSlider:Jl,calibration:id,adjust:ud,preset:_d,cruise:Id,guard:Md,statusPrompt:ve,slideBtn:Ci["a"],retry:be["a"],loading:P["a"],ptz3DLocation:Ud},data:function(){return{P:R,device:void 0,channel:null,speedVal:20,isInitSuccess:!1,isLoading:!1,isLoadingDataRetry:!1,isNvr:!1,isSD7:!1,channelType:N["BC_CHANNEL_TYPE_E"].E_BC_CHANNEL_TYPE_BUTT,stream:EnumStreamType.FLUENT,EnumStreamType:EnumStreamType,zoomFocusInfo:{iZoomMaxPos:100,iZoomMinPos:0,iZoomCurPos:0,iFocusMaxPos:100,iFocusMinPos:0,iFocusCurPos:0},isFocusing:!1,is3DLocationModeOn:!1,isPlayingVideo:!1,showGuard:!1,showPtzPreset:!1,showPtzCruise:!1,supportPt:!1,supportPtzSpeed:!1,supportPtzCalibration:!1,supportAutoPt:!1,supportedPtDirection:[],supportZoomAndFocusSliderCfg:!1,supportDigitalZoom:!1,supportZoom:!1,supportFocus:!1,supportPtzPreset:!1,supportPtzCruise:!1,supportGuard:!1,openPrompt:R["PromptStatus"].close,dialogId:"",isCalibrating:!1,promptMessage:"",supportGuardPointImage:!1,supportPtzPresetImage:!1,supportImportExportImage:!1,supportPtz3DLocation:!1,timingGetZoomFocusInfo:function(){},getZoomFocusInfoTimer:null,startZoomFocusInfo:null}},computed:{isSd7Channel:function(){return this.isSD7||this.channelType===N["BC_CHANNEL_TYPE_E"].E_BC_CHANNEL_TYPE_SD7},showHomePage:function(){return!this.showPtzPreset&&!this.showPtzCruise&&!this.showGuard}},created:function(){this.timingGetZoomFocusInfo=Object(l["j"])(this.getZoomFocusInfo,6e3),this.startZoomFocusInfo=Object(l["i"])(this.sdkStartZoomFocusInfo),this.init(),ChannelManager.on("offline",this.offlineCallback),ChannelManager.on("open",this.openCallback),ChannelManager.on("playing",this.playingCallback),ChannelManager.on("update3DLocationOnChId",this.on3DLocationStateUpdated),ChannelManager.on("set3DLocation",this.on3DLocationSet)},beforeDestroy:function(){ChannelManager.unbindCallback("offline",this.offlineCallback),ChannelManager.unbindCallback("open",this.openCallback),ChannelManager.unbindCallback("playing",this.playingCallback),ChannelManager.unbindCallback("update3DLocationOnChId",this.on3DLocationStateUpdated),ChannelManager.unbindCallback("set3DLocation",this.on3DLocationSet)},methods:{getSupports:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,i,a,r,s,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=1,i=ControllerFlash.getSelectedChannelInfo(),i){t.next=4;break}throw new Error("have not selected channel info");case 4:return a=i.index,r=ChannelManager.get(a),e.stream=r.getStream(),t.prev=7,t.next=10,B["a"].getDeviceWithHandle(n);case 10:return e.device=t.sent,t.next=13,e.device.getChannelAtIndex(a);case 13:return e.channel=t.sent,t.next=16,Promise.all([e.device.isNVR(),e.device.isSD7(),e.channel.supportPtz3DLocation(),e.channel.supportImportExportImage(),e.channel.supportGuardPointImage(),e.channel.supportPtzPresetImage(),e.channel.supportZoomAndFocusSliderCfg(),e.channel.supportDigitalZoom(),e.channel.supportPt(),e.channel.supportPtzSpeed(),e.channel.supportPTSelfTestCfg(),e.channel.supportAutoPt(),e.channel.supportZoom(),e.channel.supportFocus(),e.channel.supportPtzPreset(),e.channel.supportPtzCruise(),e.channel.supportGuard()]);case 16:return s=t.sent,o=Object(T["a"])(s,17),e.isNvr=o[0],e.isSD7=o[1],e.supportPtz3DLocation=o[2],e.supportImportExportImage=o[3],e.supportGuardPointImage=o[4],e.supportPtzPresetImage=o[5],e.supportZoomAndFocusSliderCfg=o[6],e.supportDigitalZoom=o[7],e.supportPt=o[8],e.supportPtzSpeed=o[9],e.supportPtzCalibration=o[10],e.supportAutoPt=o[11],e.supportZoom=o[12],e.supportFocus=o[13],e.supportPtzPreset=o[14],e.supportPtzCruise=o[15],e.supportGuard=o[16],t.next=37,e.channel.channelType();case 37:return e.channelType=t.sent,t.next=40,e.channel.supportedPtDirection();case 40:e.supportedPtDirection=t.sent,t.next=46;break;case 43:t.prev=43,t.t0=t["catch"](7),C["a"].error("injection > renderer > live-ptz > app.vue > created: ",t.t0);case 46:case"end":return t.stop()}}),t,null,[[7,43]])})))()},init:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(void 0===e||!n.channel||n.channel.index!==e||t!==n.stream){i.next=2;break}return i.abrupt("return");case 2:if(n.channel&&n.channel.index===e||(n.showPtzPreset=n.showGuard=n.showPtzCruise=!1),void 0===e||ControllerLogin.chkLowestVersion("ptzType",0,e)){i.next=5;break}return i.abrupt("return");case 5:return n.handleLoading(!0),n.isLoadingDataRetry=!1,n.isInitSuccess=!1,i.prev=8,i.next=11,n.getSupports();case 11:return n.isSd7Channel&&(n.supportZoom=n.stream===EnumStreamType.TRACK_FLUENT||n.stream===EnumStreamType.TRACK_CLEAR),i.next=14,Promise.all([n.getPtzSpeed(),n.getZoomFocusInfo()]);case 14:n.isInitSuccess=!0,i.next=22;break;case 17:i.prev=17,i.t0=i["catch"](8),n.handlePrompt(R["PromptStatus"].failed),n.isLoadingDataRetry=!0,C["a"].error("injection > renderer > live-ptz > app.vue > init:",i.t0);case 22:n.handleLoading(!1);case 23:case"end":return i.stop()}}),i,null,[[8,17]])})))()},openCallback:function(e,t,n){this.init(e.getId(),n)},offlineCallback:function(e){(-1===e||this.channel&&e===this.channel.index)&&(this.channel=null)},playingCallback:function(e){this.channel&&-1!==e?this.channel.index===e&&(this.isPlayingVideo=!0):this.isPlayingVideo=!1},on3DLocationStateUpdated:function(e){this.channel&&-1!==e?this.channel.index===e&&(this.is3DLocationModeOn=!0):this.is3DLocationModeOn=!1},on3DLocationSet:function(e){this.channel&&this.channel.index===e&&this.timingGetZoomFocusInfo()},changePtz3DLocationState:function(){this.channel&&(this.is3DLocationModeOn=!this.is3DLocationModeOn,this.is3DLocationModeOn?ChannelManager.trigger("update3DLocationOnChId",[this.channel.index]):ChannelManager.trigger("update3DLocationOnChId",[-1]))},open3DLocationIntroDialog:function(){this.dialogId="ptz3DLocation"},getZoomFocusInfo:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.channel&&e.supportZoomAndFocusSliderCfg){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,e.channel.config.getZoomFocusInfo();case 5:e.zoomFocusInfo=t.sent,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](2),C["a"].error("injection > renderer > live-ptz > app.vue > getZoomFocusInfo failed"),t.t0;case 12:case"end":return t.stop()}}),t,null,[[2,8]])})))()},getPtzSpeed:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.supportPtzSpeed){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,cn["a"].getPtSpeed();case 5:e.speedVal=t.sent,t.next=12;break;case 8:throw t.prev=8,t.t0=t["catch"](2),C["a"].error("injection > renderer > live-ptz > app.vue > getPtzSpeed failed"),t.t0;case 12:case"end":return t.stop()}}),t,null,[[2,8]])})))()},closeGuard:function(){this.showGuard=!1,this.timingGetZoomFocusInfo()},closePreset:function(){this.showPtzPreset=!1,this.timingGetZoomFocusInfo()},closeCruise:function(){this.showPtzCruise=!1,this.timingGetZoomFocusInfo()},speedChanged:function(e){this.speedVal=e,cn["a"].setPtSpeed(this.speedVal)},sdkStartZoomFocusInfo:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.channel&&t.supportZoomAndFocusSliderCfg){n.next=2;break}return n.abrupt("return");case 2:return t.getZoomFocusInfoTimer&&(clearTimeout(t.getZoomFocusInfoTimer),t.getZoomFocusInfoTimer=null),n.next=5,t.channel.config.startZoomFocus(e);case 5:e.cmd===N["BC_ZF_CMD_E"].BC_ZF_CMD_START_ZOOM&&t.supportZoomAndFocusSliderCfg&&t.supportFocus&&(t.isFocusing=!0,t.getZoomFocusInfoTimer=setTimeout((function(){t.getZoomFocusInfo().finally((function(){t.isFocusing=!1}))}),6e3));case 6:case"end":return n.stop()}}),n)})))()},zoomSliderChanged:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.zoomFocusInfo.iZoomCurPos!==e){n.next=2;break}return n.abrupt("return");case 2:return i=t.zoomFocusInfo.iZoomCurPos,t.zoomFocusInfo.iZoomCurPos=e,n.prev=4,n.next=7,t.startZoomFocusInfo({cmd:N["BC_ZF_CMD_E"].BC_ZF_CMD_START_ZOOM,iPos:e});case 7:n.next=14;break;case 9:n.prev=9,n.t0=n["catch"](4),C["a"].error("injection > renderer > live-ptz > app.vue > zoomSliderChanged > startZoomFocusInfo: ",n.t0),t.zoomFocusInfo.iZoomCurPos=i,t.openPrompt=R["PromptStatus"].failed;case 14:case"end":return n.stop()}}),n,null,[[4,9]])})))()},focusSliderChanged:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.zoomFocusInfo.iFocusCurPos!==e){n.next=2;break}return n.abrupt("return");case 2:return i=t.zoomFocusInfo.iFocusCurPos,t.zoomFocusInfo.iFocusCurPos=e,n.prev=4,n.next=7,t.startZoomFocusInfo({cmd:N["BC_ZF_CMD_E"].BC_ZF_CMD_START_FOCUS,iPos:e});case 7:n.next=14;break;case 9:n.prev=9,n.t0=n["catch"](4),C["a"].error("injection > renderer > live-ptz > app.vue > focusSliderChanged > startZoomFocusInfo: ",n.t0),t.zoomFocusInfo.iFocusCurPos=i,t.openPrompt=R["PromptStatus"].failed;case 14:case"end":return n.stop()}}),n,null,[[4,9]])})))()},isCalibratingChange:function(e){this.isCalibrating=e},closePrompt:function(){this.openPrompt=R["PromptStatus"].close,this.promptMessage=""},handlePromptMsg:function(e){this.promptMessage=e},handlePrompt:function(e){this.openPrompt=e},handleLoading:function(e){this.isLoading=e}}}),Gd=Hd,Wd=(n("417e"),Object(g["a"])(Gd,Wl,zl,!1,null,"55591294",null)),zd=Wd.exports;u["a"].config.productionTip=!1;var Yd=new O["a"](p["a"].getMountedDomId("livePtz"),zd);window.livePtzManager=Yd;var qd=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"track-limit",attrs:{id:"track-limit-app"}},[e.isInitialLoading||e.isLoadingDataRetry?e._e():[i("img",{staticClass:"func-description-img",attrs:{src:n("b861")}}),i("p",{staticClass:"func-description-text"},[e._v(e._s(e.$t("horizontal_tracking_range_tip")))]),i("div",{staticClass:"track-range-limit-config-wrap flex-between"},e._l(e.aiTrackRangeLimitUiInfo,(function(t,n){return i("div",{key:n,staticClass:"track-range-limit-item-wrap",class:{clickable:t.isSet&&!t.imgUrl&&!t.isLoadingImg},on:{click:function(i){return e.retryExportTrackLimitImg(n,t.isSet&&!t.imgUrl&&!t.isLoadingImg)}}},[t.isSet?[t.imgUrl?i("img",{attrs:{src:t.imgUrl}}):e._e(),t.isLoadingImg?i("loadingImg",{staticClass:"ab-center",attrs:{delay:0,imgSrcSize:14}}):e._e(),i("span",{directives:[{name:"show",rawName:"v-show",value:!t.imgUrl&&!t.isLoadingImg,expression:"!value.imgUrl&&!value.isLoadingImg"}],staticClass:"btn-icon icon-client_refresh_pro ab-center"})]:i("div",{staticClass:"ab-center"},[e._v(e._s(e.$t("common_Unset")))]),i("div",{staticClass:"icon-des"},[e._v(e._s(t.des))])],2)})),0),i("div",{staticClass:"btns-wrap"},[i("button",{attrs:{"reo-element":""},on:{click:function(t){e.isShowingDialog=!0}}},[e._v(e._s(e.$t("common_Setup")))]),e.allowClearUpAiTrackRangeCfg?i("button",{staticClass:"gray-button ghost-button",attrs:{"reo-element":""},on:{click:e.initAiTrackRangeLimitCfg}},[e._v(e._s(e.$t("common_dialog_clear_button")))]):e._e()]),e.isShowingDialog?i("div",{staticClass:"dialog-mask full-screen"},[i("div",{staticClass:"dialog-wrap ab-center"},[i("aiTrackRangeLimitDetail",{attrs:{channel:e.channel},on:{handleLoading:e.handleLoading,handlePromptStatus:e.handlePrompt,saveConfigSucceed:e.onSaveConfigSucceedChange,close:e.closeDialog}})],1)]):e._e()],e.openPrompt!==e.PromptStatus.close||e.promptMessage?i("statusPrompt",{attrs:{promptStatus:e.openPrompt,promptMessage:e.promptMessage},on:{promptClosed:e.closePrompt}}):e._e(),e.isLoading||e.isInitialLoading?i("loading"):e._e(),!e.isInitialLoading&&e.isLoadingDataRetry?i("retry",{on:{retry:e.init}}):e._e()],2)},$d=[],Kd=u["a"].extend({components:{statusPrompt:ve,retry:be["a"],loading:P["a"],loadingImg:d["a"],aiTrackRangeLimitDetail:kn},data:function(){var e;return{PromptStatus:R["PromptStatus"],openPrompt:R["PromptStatus"].close,promptMessage:"",device:void 0,channel:void 0,aiTrackRangeLimitUiInfo:(e={},Object(es["a"])(e,te["EAiTrackLimitDirection"].LEFT,{des:"L",imgUrl:"",isSet:!1,isLoadingImg:!1}),Object(es["a"])(e,te["EAiTrackLimitDirection"].RIGHT,{des:"R",imgUrl:"",isSet:!1,isLoadingImg:!1}),e),aiTrackRangeLimit:{leftPos:-1,rightPos:-1,leftImgName:"",rightImgName:""},isShowingDialog:!1,isLoading:!1,isInitialLoading:!1,isLoadingDataRetry:!1}},computed:{allowClearUpAiTrackRangeCfg:function(){return-1!==this.aiTrackRangeLimit.leftPos||-1!==this.aiTrackRangeLimit.rightPos}},created:function(){this.init(),ChannelManager.on("open",this.openCallback)},beforeDestroy:function(){ChannelManager.unbindCallback("open",this.openCallback)},methods:{openCallback:function(e){this.init(e.getId())},init:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i,a,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(void 0===e||!t.channel||t.channel.index!==e){n.next=2;break}return n.abrupt("return");case 2:if(t.channel&&t.channel.index!==e&&t.closeDialog(),void 0===e||ControllerLogin.chkVersion("supportAITrackLimit",1,e)){n.next=5;break}return n.abrupt("return");case 5:if(t.isInitialLoading=!0,t.isLoadingDataRetry=!1,n.prev=7,i=1,a=ControllerFlash.getSelectedChannelInfo(),a){n.next=12;break}throw new Error("have not selected channel info");case 12:return r=a.index,n.next=15,B["a"].getDeviceWithHandle(i);case 15:return t.device=n.sent,n.next=18,t.device.getChannelAtIndex(r);case 18:return t.channel=n.sent,n.next=21,t.getAiTrackRangeLimitCfg();case 21:n.next=28;break;case 23:n.prev=23,n.t0=n["catch"](7),t.handlePrompt(R["PromptStatus"].failed),t.isLoadingDataRetry=!0,C["a"].error("injection > renderer > track-limit > app.vue > init:",n.t0);case 28:t.isInitialLoading=!1;case 29:case"end":return n.stop()}}),n,null,[[7,23]])})))()},getAiTrackRangeLimitCfg:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.channel){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,e.channel.config.getSmartTrackLimit();case 5:e.aiTrackRangeLimit=t.sent,e.aiTrackRangeLimitCfgUpdate(),t.next=13;break;case 9:throw t.prev=9,t.t0=t["catch"](2),C["a"].error("injection > renderer > track-limit > app.vue > getAiTrackRangeLimitCfg: ",t.t0),new Error;case 13:case"end":return t.stop()}}),t,null,[[2,9]])})))()},initAiTrackRangeLimitCfg:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.aiTrackRangeLimit.leftPos=-1,e.aiTrackRangeLimit.rightPos=-1,e.setAiTrackRangeLimitCfg(Object(l["g"])(e.aiTrackRangeLimit));case 3:case"end":return t.stop()}}),t)})))()},setAiTrackRangeLimitCfg:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.channel){n.next=2;break}return n.abrupt("return");case 2:return t.handleLoading(!0),n.prev=3,n.next=6,t.importImg(t.aiTrackRangeLimitUiInfo[te["EAiTrackLimitDirection"].LEFT].imgUrl,t.aiTrackRangeLimit.leftImgName,-1===t.aiTrackRangeLimit.leftPos);case 6:return n.next=8,t.importImg(t.aiTrackRangeLimitUiInfo[te["EAiTrackLimitDirection"].RIGHT].imgUrl,t.aiTrackRangeLimit.rightImgName,-1===t.aiTrackRangeLimit.rightPos);case 8:return-1===t.aiTrackRangeLimit.leftPos&&(t.aiTrackRangeLimit.leftImgName=""),-1===t.aiTrackRangeLimit.rightPos&&(t.aiTrackRangeLimit.rightImgName=""),n.next=12,t.channel.config.setSmartTrackLimit(t.aiTrackRangeLimit);case 12:t.aiTrackRangeLimitCfgUpdate(),n.next=20;break;case 15:n.prev=15,n.t0=n["catch"](3),C["a"].error("injection > renderer > track-limit > app.vue > setAiTrackRangeLimitCfg: ",n.t0),t.aiTrackRangeLimit=e,t.handlePrompt(R["PromptStatus"].failed);case 20:t.handleLoading(!1);case 21:case"end":return n.stop()}}),n,null,[[3,15]])})))()},aiTrackRangeLimitCfgUpdate:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.aiTrackRangeLimitUiInfo[te["EAiTrackLimitDirection"].LEFT].isSet=-1!==e.aiTrackRangeLimit.leftPos,e.aiTrackRangeLimitUiInfo[te["EAiTrackLimitDirection"].RIGHT].isSet=-1!==e.aiTrackRangeLimit.rightPos,e.aiTrackRangeLimitUiInfo[te["EAiTrackLimitDirection"].LEFT].isLoadingImg=!!e.aiTrackRangeLimit.leftImgName,e.aiTrackRangeLimitUiInfo[te["EAiTrackLimitDirection"].RIGHT].isLoadingImg=!!e.aiTrackRangeLimit.rightImgName,t.next=6,e.exportImg(e.aiTrackRangeLimit.leftImgName);case 6:return e.aiTrackRangeLimitUiInfo[te["EAiTrackLimitDirection"].LEFT].imgUrl=t.sent,e.aiTrackRangeLimitUiInfo[te["EAiTrackLimitDirection"].LEFT].isLoadingImg=!1,t.next=10,e.exportImg(e.aiTrackRangeLimit.rightImgName);case 10:e.aiTrackRangeLimitUiInfo[te["EAiTrackLimitDirection"].RIGHT].imgUrl=t.sent,e.aiTrackRangeLimitUiInfo[te["EAiTrackLimitDirection"].RIGHT].isLoadingImg=!1;case 12:case"end":return t.stop()}}),t)})))()},retryExportTrackLimitImg:function(e,t){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){var a;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(t){i.next=2;break}return i.abrupt("return");case 2:return n.aiTrackRangeLimitUiInfo[e].isLoadingImg=!0,a=~~e===te["EAiTrackLimitDirection"].LEFT?n.aiTrackRangeLimit.leftImgName:n.aiTrackRangeLimit.rightImgName,i.next=6,n.exportImg(a);case 6:n.aiTrackRangeLimitUiInfo[e].imgUrl=i.sent,n.aiTrackRangeLimitUiInfo[e].isLoadingImg=!1;case 8:case"end":return i.stop()}}),i)})))()},exportImg:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.channel&&e){n.next=2;break}return n.abrupt("return","");case 2:return i="",n.prev=3,n.next=6,t.channel.config.exportImageFile(e);case 6:return i=n.sent,n.next=9,Object(l["u"])(i);case 9:n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](3),C["a"].error("injection > renderer > track-limit > app.vue > exportImg ".concat(e," url: ").concat(i," "),n.t0),i="";case 15:return n.abrupt("return",i);case 16:case"end":return n.stop()}}),n,null,[[3,11]])})))()},importImg:function(e,t){var n=arguments,i=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(r=n.length>2&&void 0!==n[2]&&n[2],i.channel){a.next=3;break}return a.abrupt("return");case 3:return a.prev=3,a.next=6,i.channel.config.importImageFile(t,e,r);case 6:a.next=11;break;case 8:a.prev=8,a.t0=a["catch"](3),C["a"].error("injection > renderer > track-limit > app.vue > importImg ".concat(e,": "),a.t0);case 11:case"end":return a.stop()}}),a,null,[[3,8]])})))()},closePrompt:function(){this.openPrompt=R["PromptStatus"].close,this.promptMessage=""},handlePrompt:function(e,t){this.openPrompt=e,t&&(this.promptMessage=t)},handleLoading:function(e){this.isLoading=e},onSaveConfigSucceedChange:function(e){this.aiTrackRangeLimit=e,this.aiTrackRangeLimitCfgUpdate(),this.closeDialog()},closeDialog:function(){this.isShowingDialog=!1}}}),Zd=Kd,Jd=(n("952c"),Object(g["a"])(Zd,qd,$d,!1,null,"2768cc40",null)),Qd=Jd.exports;u["a"].config.productionTip=!1;var Xd=new O["a"](p["a"].getMountedDomId("trackRangeLimit"),Qd);window.trackLimitManager=Xd;u["a"].config.productionTip=!1;var ep=new O["a"](p["a"].getMountedDomId("account-login"),x);window.accountLoginManager=ep;t["default"]=ep},ec12:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAABLJJREFUaEPNmt1RHDkQx9XaBR4PP1IFaIjg1hEcjuBwBOYiMI7AEMFBBLYjMI7AXATHRcDMQhWPNo9QO9NX/7G0pdVKI82Xzbz4YzVS/9Qt9V+tITHQc3d3NyvL8g8hxIyZM/xJRNt298x8LYT4TkRXRHRdluU/BwcH34cwgfp0oo1/w8zHrtGp/TIzoD5WVfWlD1QnkNvb28OyLN8T0WGqwbF2zAxPnVdVddEFqBXI/f199vj4+GFIABdQA50qpS5i8PbvySBFUbwVQpy36bxPW6ynra2t1zs7O3lKP1GQm5ubbSKCF45SOhyyDbwjpfxrf3//MtZvI4iG+EpEs1hHY/5ORID52DRGEOS5QBjjYzBekOcGkQLjBcnz/POvWBMp4TmZTF7u7u4isa48ayBFUZwIIf5O6bRnm09EdElEdWaHGqiqCokV6iD4MHPOzC/dXLMCgjzx9PR009PAxteZ+WEymRzt7e1d+RrO5/NjZv4QseGTUuo4mEfyPMcONVi29iS7h+l0eugLDbttCoyU8pU9GUuPQHZUVfV1LG/AEykQZvyiKE6FEO9D9kCjZVn2arkRmL+M6Q0fxHw+P6qqCmpBYK24kgQ7p5TyW9PE2l6pPaJV7L9jeMMHURQF1sBKjAshLpRS2GiWT57nUMZNi/+LUqpWHDVIURTQUPXsDP0Q0WtbYjTFv7u1JoCIqqpeYAerQfI8/9b1PNFmd0E4MfPn0DvuAk4BMRmfxgwrV1bEDNvc3Dyw1W7iBNfhRWMmQHuGMWGLxQLb+8rx1/LOO6XU8piQahcUcpZlLwACVflm6LWB/gxIDML1XKy9ays8STF39wGEgVLK6yZP9IUwEwaQsRY69BPEXeappjxIKU82Njau7DXR1hN2WCK0uM+s63drASilhKDb1gLwhIh+d/sOZfgeEBjirBdISACGjBoJoh9IF6PcPKGT8VtmPu2Zx7p5pAuECTGIPVQbhRDYhteqkR3D/AyL/doXy6EOmwSg7whgwm9MZQ0Z1Gr7DUAED0J2+zG3eYQsFnuj7rc948Z4QMXWr7jQY4IopYhiQs4CWTlext5zVe9YIMz8X5ZlM0o5wNR635HjMcNsAZg6RseFXp9jjIyPHWCWuskM1gTiyo5UAdgFxIR7DdLlsB8yzqedyrIc6/RZZFmGS6UfJ0RdWcyJ6LfQrPhKlu7JcggB2NIrZ0opbFY/QHSGbVW1MO9BjkBfTafTfCABmMSCXRGazhTqliBdveIbtacATAKBUDTeWPGI9kq0XBqriv8MCGYumHlml03Xar+JkuXUd9eHW60BBGDUI24qWPMI/kPfE0J/BRe+IwDNP4cSgDGQtfqXF0Rvx41lm9hIY/1usriv/+CNVUpuGctgX7+AYObD0NV14x3ic4GJQQRDy56RXw2TApEEgkZ6S8XtkvqZ4eQrbAeVR6phWsGiEjhKMc+2A3kC5aKU+3XzXvSDARdUf4eCYkHjXV/qBDkAD/p7lPO236O0BjED6xsuKIE/uxjtekB/IdQaoLNHXKN1yOHS5hDbY0oiRR9YxPhuS0p5GboYbTNBnT0SGgTKYLFY4KoZn32sVN7xsRmuo4cw3B3/f+HKU5wJfGMEAAAAAElFTkSuQmCC"},ecbb:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n("4ec9"),n("d3b7"),n("3ca3"),n("ddb0");var i=n("d4ec"),a=n("bee2"),r=function(){function e(){Object(i["a"])(this,e),this.subscribers=new Map}return Object(a["a"])(e,[{key:"subscribe",value:function(e,t,n,i){}},{key:"unsubscribe",value:function(e,t,n,i){}},{key:"appCall",value:function(e,t,n,i){}},{key:"simpleAppCall",value:function(e,t,n){return new Promise((function(e,t){}))}},{key:"call",value:function(e,t,n,i,a,r,s){}},{key:"simpleCall",value:function(e,t,n,i,a,r){return new Promise((function(e,t){}))}},{key:"simpleCall2",value:function(e,t,n,i){return this.simpleCall(e,-1,-1,t,n,i)}},{key:"publish",value:function(e,t){}},{key:"publishForChannel",value:function(e,t,n,i){this.publish(e,{cmd:e,handle:t,channel:n,session:0,data:i})}},{key:"publishForDevice",value:function(e,t,n){this.publish(e,{cmd:e,handle:t,channel:-1,session:0,data:n})}}],[{key:"instance",value:function(){return e.singleton}}]),e}();r.singleton=new r;var s=r.instance()},ed55:function(e,t,n){e.exports=n.p+"img/add_chime_and_doorbell.c4a2426b.png"},ef51:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAMAAACf4xmcAAAAmVBMVEUAAAB4eIV4eod4eYZ4eoV1fIN4eIJ2dn94eoV3eYZ3eoV4eoZ3eoV4eoZ3d4MddK94eoZ4eoV3eIUAnOF4eYZ1eoUAmt0AmOEAneEAneF3eoUAneJ2eIQAneEAnOAAnOAAneBtdn9mgIB4eoV4eYZ4eoUAneEAnOIAneEAneJ4eoV4eoUAneEAneIAm+F4eIQAj994eoYAneGZoGo3AAAAMXRSTlMAX6DOjCMxGXPmS9yz1SoD951j9/I6IBbh25KJbGVNPjQOCujEwru3q6eZgn9zVFEQtTtVuAAAAOtJREFUOMvV0tluwjAQheGTlNYNTuIsJEApa/e9M+//cBUytWJigoELxH9hKc5naSQbXS1ea3j0wlMPVZfl0IN98puHUiOee7Ahj+HTov4/oDz07Jkne9F0zFx+m88qsEqhmzOPvn5hysnqHjo1menBDHsMTYlhdip4ogKmOwp/XGxFZDNKbKAnLigLq8ZmTJH+0YeONmVoltKmK8P01O8WE3ozbjDs7ub8LO05W26xPjkTLZbctho4WIxW0Wmsygss8x7wkYsOFlAIQRGQUHqBbCClfFivlEmZUSTXqzjuslbXztQRD6mzA9kf9fk9pcBAeqoAAAAASUVORK5CYII="},ef53:function(e,t,n){"use strict";var i=n("480e"),a=n.n(i);a.a},f0b3:function(e,t,n){"use strict";var i=n("b05f"),a=n.n(i);a.a},f0b8:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAABJhJREFUaEPtmlFy2zgMQAHKY+ev6WdmkpA5QZMT1D1B2xM0PcF2T9DsCTY5QbsnqHuCuidY7wks2ZnJZ7OfyUjEDjSkR5ZFkaKVVh+rn3bGFIRHgAAIBKGn5/b29rwoipcAcE5Eiv9FxMOqeCJaAMA9Is4RcVEUxfezs7P7PlTAfYQY5d8R0WVd6VC5RMRQn7XWX/eBigJZr9fToig+IuI0VGHfOiJiS11rrW9igDqB3N3dqYeHh099AtQBDdCVlPLGB1/9PRgky7LfAOC6i/B91vJ5mkwmb4+OjtIQOV6Q5XJ5iIhshTchAvtcw9YRQrw/PT2d+eS2ghiIb4h47hP0lL8jIsN8bvuGE2QoEFZ5H0wjyNAgQmAaQdI0/fJUZ4KIvnMy5MTIChLRFBE5kQY9SZJcHB8f8/tbzw5IlmUfAODPIKkBi4zicyHE/OTkZN70islLM0R85hNJRCkRXdRzzRYI54nHx8elT5jrdyL6l8sPAJgnSTJv2jnXu6ZK+Dvw239JKS+deSRNU45QnbK1UX6WJMl1F8WbFM6yjCPTuxAYIcSrqoU3FmHzaq2/hQixaxhiNBpN9wWw8lar1Rsi+hKiA9doSqlXm0Bg/xNjDV9IrCtkK2Q+4AAwnUwmF9XM3XUzq1YpLdLRP0v9iOgfpVRrolyv1y+11lOj+E5ZX3ePriAA8FVKWVYcJUiWZVxDcS3V5dkIsS+ZDXltQqr3rPUAAlrr5xzBSpA0TX9E3Cf+kFJeVcnTNOW7RXBO6APEujfGuJVRfhAg1r1wjwQ4CBCukJVSzxkkOHbXDtAgQFin8Xh8hl39ugIzGBA+awwSc9CZZzAgAPA7uxZ1iblDtAhv6v8gA3OtX2sRjjb71FpVN+fDvkDEFxHnZK/DTkSZUopbq5snotYq30XEtz81/Nq7CwAsxuPxrN6zigUpw2+WZVwvfXxqi3C1zMVkWzs0FkRKidjlMmNhXRcqV3Ll9dyh9/V0Y0DsdQK59SOE+OGzCPs0N5mbXKJyOXNVvzdSSm5qtD4xIABQyrZlfGv5HeIW5jrgkrMTGJqIYkDsVaAEWa1Wl0T0ybVd9XuDa11L3bbT9WiS0bWArUa+EsR0FlNXX4kPk88t2izCpXb9fl6XF3kv2lh6o2Bb9OoAskTErdxQCRCL0Wj0vt5xsVMvAPCeoSp8PYBsQNqs4mpTxiQzO0cEAB5X7NPl3zp3Wy7jui3yx5VSFy734l3N85ybe1vDzxB3jFnDZ4OIzqvhfMf3XSULwwghrngSe3BwcJjnudRa8wSXm9A/dQjEJUl9+LMDYuaEXH95G8oxu9nDO405qTEaxWT7HhT0imhrCjrDqi+3eL/a8wJfUm7ND0OB8UGUpbxv4341TAhEEAgvMuGVJ0rSB97z70HFZjCILWOEENzsDhrE7APEeUII8SFkvm6/43WtukJm3nfVpVkdCmVukPz3KNe+u0tdZmcQK8CU3FwfvQ5V1LXO3HX4L4Q6A0RbpK6MuZjxYLIc6IQmUj7EPDgVQsxc094uGxRtEddHuDLI81xx+cKFYXUdz9cR8b4Pxevf/w/J53Kc2jVVqQAAAABJRU5ErkJggg=="},f3d8:function(e,t,n){"use strict";var i=n("386b"),a=n.n(i);a.a},f479:function(e,t,n){},f4c7:function(e,t,n){"use strict";var i=n("39b5"),a=n.n(i);a.a},f4e9:function(e,t,n){"use strict";var i=n("f4fa"),a=n.n(i);a.a},f4fa:function(e,t,n){},f697:function(e,t,n){e.exports=n.p+"img/animal_low.593c5ed0.png"},f7bc:function(e,t,n){},f996:function(e,t,n){},fab6:function(e,t){e.exports="data:image/png;base64,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"},fafd:function(e,t,n){"use strict";var i=n("06fb"),a=n.n(i);a.a},fc08:function(e,t,n){},fd58:function(e,t,n){},fd78:function(e,t,n){"use strict";var i=n("5c8c"),a=n.n(i);a.a},ff78:function(e,t,n){},ffa8:function(e,t,n){"use strict";(function(e){n.d(t,"p",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"v",(function(){return p})),n.d(t,"n",(function(){return h})),n.d(t,"m",(function(){return m})),n.d(t,"e",(function(){return f})),n.d(t,"g",(function(){return _})),n.d(t,"y",(function(){return v})),n.d(t,"x",(function(){return b})),n.d(t,"k",(function(){return w})),n.d(t,"f",(function(){return S})),n.d(t,"z",(function(){return k})),n.d(t,"r",(function(){return A})),n.d(t,"w",(function(){return E})),n.d(t,"o",(function(){return x})),n.d(t,"q",(function(){return O})),n.d(t,"j",(function(){return I})),n.d(t,"a",(function(){return D})),n.d(t,"u",(function(){return T})),n.d(t,"h",(function(){return R})),n.d(t,"i",(function(){return P})),n.d(t,"s",(function(){return U})),n.d(t,"c",(function(){return H})),n.d(t,"l",(function(){return G})),n.d(t,"b",(function(){return Y})),n.d(t,"t",(function(){return q}));n("99af"),n("4de4"),n("4160"),n("c975"),n("a15b"),n("baa5"),n("d81d"),n("13d5"),n("fb6a"),n("c19f"),n("a9e3"),n("b680"),n("d3b7"),n("ac1f"),n("25f0"),n("5319"),n("1276"),n("fd87"),n("8b09"),n("143c"),n("5cc6"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("72f7"),n("159b"),n("96cf");var i=n("1da1"),a=(n("53ca"),n("b85c")),r=n("d4ec"),s=n("bee2"),o=n("2909"),c=(n("11b7"),n("aa18")),u=n("69b8");n("9354"),n("0ac9");function l(){return{zone:{text:"(GMT-12:00) ".concat(u["a"].t("zone_WesternDaylight")),value:43200},options:[{text:"(GMT-12:00) ".concat(u["a"].t("zone_WesternDaylight")),value:43200},{text:"(GMT-11:00) ".concat(u["a"].t("zone_MidwayIsland"),", ").concat(u["a"].t("zone_Samoa")),value:39600},{text:"(GMT-10:00) ".concat(u["a"].t("zone_Hawaii")),value:36e3},{text:"(GMT-09:00) ".concat(u["a"].t("zone_AlaskaState")),value:32400},{text:"(GMT-08:00) ".concat(u["a"].t("zone_PacificTime")),value:28800},{text:"(GMT-07:00) ".concat(u["a"].t("zone_MountainTime")),value:25200},{text:"(GMT-06:00) ".concat(u["a"].t("zone_CentralTime")),value:21600},{text:"(GMT-05:00) ".concat(u["a"].t("zone_EasternTime")),value:18e3},{text:"(GMT-04:00) ".concat(u["a"].t("zone_AtlanticTime")),value:14400},{text:"(GMT-03:30) ".concat(u["a"].t("zone_Newfoundland")),value:12600},{text:"(GMT-03:00) ".concat(u["a"].t("zone_Georgetown"),", ").concat(u["a"].t("zone_Brasilia")),value:10800},{text:"(GMT-02:00) ".concat(u["a"].t("zone_MidAtlanticTime")),value:7200},{text:"(GMT-01:00) ".concat(u["a"].t("zone_CapeVerde"),", ").concat(u["a"].t("zone_Azores")),value:3600},{text:"(GMT+00:00) ".concat(u["a"].t("zone_Dublin"),", ").concat(u["a"].t("zone_Edinburgh"),", ").concat(u["a"].t("zone_London")),value:0},{text:"(GMT+01:00) ".concat(u["a"].t("zone_Amsterdam"),", ").concat(u["a"].t("zone_Berlin"),", ").concat(u["a"].t("zone_Rome"),", ").concat(u["a"].t("zone_Paris")),value:-3600},{text:"(GMT+02:00) ".concat(u["a"].t("zone_Athens"),", ").concat(u["a"].t("zone_Jerusalem"),", ").concat(u["a"].t("zone_Istanbul")),value:-7200},{text:"(GMT+03:00) ".concat(u["a"].t("zone_Baghdad"),", ").concat(u["a"].t("zone_Kuwait"),", ").concat(u["a"].t("zone_Moscow")),value:-10800},{text:"(GMT+03:30) ".concat(u["a"].t("zone_Tehran")),value:-12600},{text:"(GMT+04:00) ".concat(u["a"].t("zone_CaucasusStandardTime")),value:-14400},{text:"(GMT+04:30) ".concat(u["a"].t("zone_Kabul")),value:-16200},{text:"(GMT+05:00) ".concat(u["a"].t("zone_Islamabad"),", ").concat(u["a"].t("zone_Karachi"),", ").concat(u["a"].t("zone_Tashkent")),value:-18e3},{text:"(GMT+05:30) ".concat(u["a"].t("zone_Madras"),", ").concat(u["a"].t("zone_Calcutta"),", ").concat(u["a"].t("zone_Mumbai"),", ").concat(u["a"].t("zone_NewDelhi")),value:-19800},{text:"(GMT+05:45) ".concat(u["a"].t("zone_Kathmandu")),value:-20700},{text:"(GMT+06:00) ".concat(u["a"].t("zone_AlmaAta"),", ").concat(u["a"].t("zone_Novosibirsk"),", ").concat(u["a"].t("zone_Dacca")),value:-21600},{text:"(GMT+06:30) ".concat(u["a"].t("zone_Yangon")),value:-23400},{text:"(GMT+07:00) ".concat(u["a"].t("zone_Bangkok"),", ").concat(u["a"].t("zone_Hanoi"),", ").concat(u["a"].t("zone_Jakarta")),value:-25200},{text:"(GMT+08:00) ".concat(u["a"].t("zone_Beijing")),value:-28800},{text:"(GMT+09:00) ".concat(u["a"].t("zone_Seoul"),", ").concat(u["a"].t("zone_Tokyo"),", ").concat(u["a"].t("zone_Osaka"),", ").concat(u["a"].t("zone_Sapporo")),value:-32400},{text:"(GMT+09:30) ".concat(u["a"].t("zone_Adelaide")),value:-34200},{text:"(GMT+10:00) ".concat(u["a"].t("zone_Melbourne"),", ").concat(u["a"].t("zone_Sydney"),", ").concat(u["a"].t("zone_Canberra")),value:-36e3},{text:"(GMT+11:00) ".concat(u["a"].t("zone_Magadan"),", ").concat(u["a"].t("zone_SolomonIslands")),value:-39600},{text:"(GMT+12:00) ".concat(u["a"].t("zone_Auckland"),", ").concat(u["a"].t("zone_Wellington"),", ").concat(u["a"].t("zone_Fiji")),value:-43200},{text:"(GMT+13:00) ".concat(u["a"].t("zone_Nukualofa")),value:-46800}]}}function d(){document.querySelector("html").classList.add("ban-events")}function p(){document.querySelector("html").classList.remove("ban-events")}function h(e){var t=e?new Date(e):new Date,n=t.getMonth()+1,i=t.getDate(),a=t.getHours(),r=t.getMinutes(),s=t.getSeconds(),o={timeZone:t.toString().split(" ")[5],year:t.getFullYear().toString(),month:(n<10?"0"+n:n).toString(),date:(i<10?"0"+i:i).toString(),hour:(a<10?"0"+a:a).toString(),minute:(r<10?"0"+r:r).toString(),second:(s<10?"0"+s:s).toString()};return o}function m(e){var t=parseInt(e/60/60+"",10),n=parseInt(e/60%60+"",10),i=parseInt(e%60+"",10),a=t?"".concat(t).concat(u["a"].t("common_hours")):"",r=n?"".concat(n).concat(u["a"].t("common_minutes")):"",s=i?"".concat(i).concat(u["a"].t("common_seconds")):"";return a+r+s}function g(e){var t=e/8/1024/1024/1024;if(t>1)return t.toFixed(2)+"GB";var n=e/8/1024/1024;if(n>1)return n.toFixed(2)+"MB";var i=e/8/1024;if(i>1)return i.toFixed(2)+"KB";var a=e/8;return a.toFixed(2)+"B"}function f(e){return g(8*e)}function _(e){return JSON.parse(JSON.stringify(e))}function v(e){return Object(o["a"])(e).map((function(e){return~~e}))}function b(e){return Object(o["a"])(e).map((function(e){return!!~~e}))}function w(e){return~~e?1:0}var C=function(){function e(){Object(r["a"])(this,e)}return Object(s["a"])(e,[{key:"nickname",value:function(e){return/^[-+\w%@*. ]*$/.test(e.toString())}},{key:"deviceName",value:function(e){return/^[-+=a-zA-Z0-9\{\}\[\] ]*$/.test(e.toString())}},{key:"fileName",value:function(e){return/^[^\\\/:*?"<>|]*$/.test(e.toString())}},{key:"path",value:function(e){return/^[a-zA-Z0-9\\\/]+$/.test(e.toString())}},{key:"password",value:function(e){return/^[\u0020-\u007E]*$/.test(e.toString())}},{key:"ddnsPassword",value:function(e){return/^[^\\\/'"`^$?;<>|& ]*$/.test(e.toString())}},{key:"ddnsNickName",value:function(e){return/^[^\\\/'"`^$?;<>|& ]*$/.test(e.toString())}},{key:"batteryId",value:function(e){return/^[a-zA-Z0-9]{8,16}$/.test(e.toString())}},{key:"strOfNum",value:function(e){return/^\d+$/.test(e.toString())}},{key:"zhPhone",value:function(e){return/^1[*\d]{10}$/.test(e.toString())}},{key:"ip",value:function(e){var t=e.toString();return"0.0.0.0"!==t&&"255.255.255.255"!==t&&/^((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)$/.test(t)}},{key:"port",value:function(e){if(!/^\d+$/.test(e.toString()))return!1;var t=parseInt(e.toString(),10);return t>0&&t<=65535}},{key:"mask",value:function(e){var t=e.toString();return"0.0.0.0"!==t&&"255.255.255.255"!==t&&/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])(\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])){3}$/.test(t)}},{key:"email",value:function(e){return/^[-+\w*.@]*$/.test(e.toString())}},{key:"domain",value:function(e){return/^[-.\w]*$/.test(e.toString())}},{key:"server",value:function(e){return/^[-+\w%@.:\/]*$/.test(e.toString())}},{key:"mac",value:function(e){return/^[A-F0-9]{2}(-[A-F0-9]{2}){5}$|^[A-F0-9]{2}(:[A-F0-9]{2}){5}$/.test(e.toString())}},{key:"uid",value:function(e){var t=e.toString(),n=t.length,i=!1;if(i=c["a"].USE_ACCOUNT_LOGIN?16!==n:n<10||n>20,i)return!1;for(var a=0;a"Z")&&(r<"a"||r>"z")&&(r<"0"||r>"9"))return!1}return!0}}]),e}(),y=function(){function e(){Object(r["a"])(this,e)}return Object(s["a"])(e,[{key:"nickname",value:function(e){if(/^[-+\w%@*. ]*$/.test(e.toString()))return"";var t=''.concat("@%*_-+.","");return u["a"].t("common_special_character_bubble_tips4",{s1:u["a"].t("common_letter"),s2:u["a"].t("comon_numbers"),s3:u["a"].t("common_spaces"),s4:t})}},{key:"deviceName",value:function(e){if(/^[-+=a-zA-Z0-9\{\}\[\] ]*$/.test(e.toString()))return"";var t=''.concat("[]{}-=+","");return u["a"].t("common_special_character_bubble_tips4",{s1:u["a"].t("common_letter"),s2:u["a"].t("comon_numbers"),s3:u["a"].t("common_spaces"),s4:t})}},{key:"fileName",value:function(e){if(/^[^\\\/:*?"<>|]*$/.test(e.toString()))return"";var t=''.concat('/\\:*?"<>|',"");return u["a"].t("edit_rule_ftp_photos_or_overwrite_recordings_name_error",{s1:t})}},{key:"path",value:function(e){return/^[a-zA-Z0-9\\\/]*$/.test(e.toString())?"":u["a"].t("common_special_character_bubble_tips3",{s1:u["a"].t("common_letter"),s2:u["a"].t("comon_numbers"),s3:"/\\"})}},{key:"password",value:function(e){if(/^[\u0020-\u007E]*$/.test(e.toString()))return"";var t=''.concat("!\"#$%&'()*+,-./:;<=>?@[]^_`{|}~","");return u["a"].t("common_special_character_bubble_tips4",{s1:u["a"].t("common_letter"),s2:u["a"].t("comon_numbers"),s3:u["a"].t("common_spaces"),s4:t})}},{key:"ddnsPassword",value:function(e){if(/^[^\\\/'"`^$?;<>|& ]*$/.test(e.toString()))return"";var t=''.concat("\\/'\"`^$?;<>|&","");return u["a"].t("edit_rule_ftp_photos_or_overwrite_recordings_name_error2",{s1:u["a"].t("common_spaces"),s2:t})}},{key:"ddnsNickName",value:function(e){if(/^[^\\\/'"`^$?;<>|& ]*$/.test(e.toString()))return"";var t=''.concat("\\/'\"`^$?;<>|&","");return u["a"].t("edit_rule_ftp_photos_or_overwrite_recordings_name_error2",{s1:u["a"].t("common_spaces"),s2:t})}},{key:"batteryId",value:function(e){return/^[a-zA-Z0-9]*$/.test(e.toString())?"":u["a"].t("common_special_character_bubble_tips2",{s1:u["a"].t("common_letter"),s2:u["a"].t("comon_numbers")})}},{key:"zhPhone",value:function(e){return""}},{key:"server",value:function(e){if(/^[-+\w%@.:\/]*$/.test(e.toString()))return"";var t=''.concat("-+_%@.:/","");return u["a"].t("common_special_character_bubble_tips3",{s1:u["a"].t("common_letter"),s2:u["a"].t("comon_numbers"),s3:t})}},{key:"strOfNum",value:function(e){return""}},{key:"ip",value:function(e){return/^[.0-9]*$/.test(e.toString())?"":u["a"].t("common_special_character_bubble_tips2",{s1:u["a"].t("comon_numbers"),s2:"."})}},{key:"port",value:function(e){if(/^\d*$/.test(e.toString())){var t=parseInt(e.toString(),10);if(t>0&&t<=65535)return""}return u["a"].t("common_special_character_bubble_tips1",{s1:u["a"].t("common_port_bubble_tips")})}},{key:"mask",value:function(e){return/^[.0-9]*$/.test(e.toString())?"":u["a"].t("common_special_character_bubble_tips2",{s1:u["a"].t("comon_numbers"),s2:"."})}},{key:"email",value:function(e){if(/^[-+\w*.@]*$/.test(e.toString()))return"";var t=''.concat("@.-+_","");return u["a"].t("common_special_character_bubble_tips3",{s1:u["a"].t("common_letter"),s2:u["a"].t("comon_numbers"),s3:t})}},{key:"domain",value:function(e){if(/^[-.\w]*$/.test(e.toString()))return"";var t=''.concat("_-.","");return u["a"].t("common_special_character_bubble_tips3",{s1:u["a"].t("common_letter"),s2:u["a"].t("comon_numbers"),s3:t})}},{key:"mac",value:function(e){return""}},{key:"uid",value:function(e){return/^[a-zA-Z0-9]*$/.test(e.toString())?"":u["a"].t("common_special_character_bubble_tips2",{s1:u["a"].t("common_letter"),s2:u["a"].t("comon_numbers")})}}]),e}(),S=new y;c["a"].IS_CLIENT||(window.characterValidators=S);var k=new C;function A(e,t,n){var i;return e.forEach((function(e,n){t===e&&(i=n)})),void 0!==i?i:n}function E(e){return e.join("")}function x(e){var t="",n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_";while(e-- >0)t+=n[Math.floor(Math.random()*n.length)];return t}function O(e,t,n){var i,r=t.replace(/\[(\d+)\]/g,".$1").split("."),s=e,o=Object(a["a"])(r);try{for(o.s();!(i=o.n()).done;){var c=i.value;if(s=Object(s)[c],void 0===s)return n}}catch(u){o.e(u)}finally{o.f()}return s}function I(e,t,n){var i,a=null;return function(){for(var r=arguments.length,s=new Array(r),o=0;o2&&void 0!==arguments[2]&&arguments[2],a=null,r=!0,s=function s(o){var c=this;if(a&&clearTimeout(a),void 0!==o&&(r=o),r){var u=function(){return new Promise(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(n,i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.apply(c);case 3:n(),t.next=9;break;case 6:t.prev=6,t.t0=t["catch"](0),n();case 9:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(e,n){return t.apply(this,arguments)}}())};n&&!a?u().then((function(){a=setTimeout((function(){u().then((function(){s()}))}),1e3*t)})):a=setTimeout((function(){u().then((function(){s()}))}),1e3*t)}};return s};function P(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0,s=[],o=[];function c(){return u.apply(this,arguments)}function u(){return u=Object(i["a"])(regeneratorRuntime.mark((function n(){var i,u,l,d,p,h;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=o.shift(),!a||i){n.next=5;break}return o=[],s.length&&(s.forEach((function(e){e&&e.reject&&e.reject()})),s=[]),n.abrupt("return");case 5:return u=!1,n.prev=6,n.next=9,e.call(t,i);case 9:l=n.sent,n.next=16;break;case 12:n.prev=12,n.t0=n["catch"](6),u=!0,d=n.t0;case 16:r?(p=r(i),s=s.filter((function(e){return e.promiseId!==p||(!u&&e.resolve?e.resolve(l):u&&e.reject&&e.reject(d),!1)})),o=o.filter((function(e){return r(e)!==p}))):(h=s.shift(),!u&&h&&h.resolve?h.resolve(l):u&&h&&h.reject&&h.reject(d)),o.length&&c();case 18:case"end":return n.stop()}}),n,null,[[6,12]])}))),u.apply(this,arguments)}function l(e){return t=this,new Promise((function(t,i){o.push(e);var a={resolve:t,reject:i};if(r){var u=r(e);a={promiseId:u,resolve:t,reject:i}}n&&s.length?s=[s[0],a]:s.push(a),s.length<2&&c()}))}return l}var L=47,M=92,N=46;function B(e){return e===L||e===M}function F(e){return e===L}function j(e){if(0===e.length)return".";var t=e.charCodeAt(0)===L,n=e.charCodeAt(e.length-1)===L;return e=V(e,!t,"/"),0!==e.length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e}function V(e,t,n){for(var i="",a=0,r=-1,s=0,o=0,c=0;c<=e.length;++c){if(c2){var u=i.lastIndexOf(n);if(u!==i.length-1){-1===u?(i="",a=0):(i=i.slice(0,u),a=i.length-1-i.lastIndexOf(n)),r=c,s=0;continue}}else if(2===i.length||1===i.length){i="",a=0,r=c,s=0;continue}t&&(i.length>0?i+="".concat(n,".."):i="..",a=2)}else i.length>0?i+=n+e.slice(r+1,c):i=e.slice(r+1,c),a=c-r-1;r=c,s=0}else o===N&&-1!==s?++s:s=-1}return i}function U(){for(var e=arguments.length,t=new Array(e),n=0;n-1?"/":"\\",s=0;s0&&(void 0===i?i=a=o:i+=r+o)}if(void 0===i)return".";var c=!0,u=0;if(a&&B(a.charCodeAt(0))){++u;var l=a.length;l>1&&B(a.charCodeAt(1))&&(++u,l>2&&(B(a.charCodeAt(2))?++u:c=!1))}if(c){for(;u=2&&(i=r+i.slice(u))}return j(i)}function H(e,t){var n=0,i=[];while(n/g,">").replace(/"/g,""").replace(/'/g,"'")}var W=[-1,-1,-1,-1,2,4,6,8,-1,-1,-1,-1,2,4,6,8],z=[7,8,9,10,11,12,13,14,16,17,19,21,23,25,28,31,34,37,41,45,50,55,60,66,73,80,88,97,107,118,130,143,157,173,190,209,230,253,279,307,337,371,408,449,494,544,598,658,724,796,876,963,1060,1166,1282,1411,1552,1707,1878,2066,2272,2499,2749,3024,3327,3660,4026,4428,4871,5358,5894,6484,7132,7845,8630,9493,10442,11487,12635,13899,15289,16818,18500,20350,22385,24623,27086,29794,32767];function Y(e,t){var n,i,a,r,s,o,c=0,u=0,l=0,d=0,p=2*e.byteLength,h=new DataView(e),m=new ArrayBuffer(t),g=new DataView(m);for(d=Math.max(0,Math.min(d,88)),a=z[d],o=0,s=0;p>0;p--)o?i=15&s:(s=h.getInt8(c),c++,i=s>>4&15),o=!o,d+=W[i],d=Math.max(0,Math.min(d,88)),n=8&i,i&=7,r=a>>3,4&i&&(r+=a),2&i&&(r+=a>>1),1&i&&(r+=a>>2),n?l-=r:l+=r,l>32767?l=32767:l<-32768&&(l=-32768),a=z[d],g.setInt16(u,l,!0),u+=2;return m}function q(e){return $.apply(this,arguments)}function $(){return $=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileBuffer,i=X(n,t.sampleRate,t.samplePrecision,t.channels),e.abrupt("return","data:audio/wav;base64,".concat(btoa(new Uint8Array(i).reduce((function(e,t){return e+String.fromCharCode(t)}),""))));case 3:case"end":return e.stop()}}),e)}))),$.apply(this,arguments)}function K(e,t,n){for(var i=0;i