anytrek-front-public-component 1.12.4 → 1.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28728,7 +28728,7 @@ const yI = { class: "name_address" }, wI = { class: "name" }, bI = {
|
|
|
28728
28728
|
I(je, { name: "temp-hot-line" }),
|
|
28729
28729
|
h("span", {
|
|
28730
28730
|
class: W({ red: d.value.alarmType && d.value.alarmType.length > 0 && d.value.alarmType.includes(6) })
|
|
28731
|
-
}, F(c(oI)(Number(d.value.temperature))), 3)
|
|
28731
|
+
}, F(!d.value.temperature && d.value.temperature !== 0 ? "-" : c(oI)(Number(d.value.temperature))), 3)
|
|
28732
28732
|
])) : J("", !0),
|
|
28733
28733
|
d.value.modelId === 54 && ((He = d.value.triggerType) == null ? void 0 : He.trim()) != "DoorOpen" ? (b(), E("div", HI, [
|
|
28734
28734
|
I(je, { name: "load-num-icon" }),
|
|
@@ -28889,7 +28889,7 @@ const yI = { class: "name_address" }, wI = { class: "name" }, bI = {
|
|
|
28889
28889
|
], 64);
|
|
28890
28890
|
};
|
|
28891
28891
|
}
|
|
28892
|
-
}), ZI = /* @__PURE__ */ jt(XI, [["__scopeId", "data-v-
|
|
28892
|
+
}), ZI = /* @__PURE__ */ jt(XI, [["__scopeId", "data-v-b46ba831"]]), RI = ["id"], YI = {
|
|
28893
28893
|
name: "tagone"
|
|
28894
28894
|
}, FI = /* @__PURE__ */ we({
|
|
28895
28895
|
...YI,
|
|
@@ -229,7 +229,7 @@ This will fail in production.`);i=cs,i._s.has(r)||(l?pf(r,n,a,i):m2(r,a,i),proce
|
|
|
229
229
|
|
|
230
230
|
"agps_enabled": 0
|
|
231
231
|
|
|
232
|
-
}`}],_o=XE("message",()=>{const t=e.ref(JSON.parse(localStorage.getItem("customerHabit")||'{"showDevice":true}')||{showDevice:!0});function n(s){t.value=s}const o=e.ref(ZE.filter(s=>s.isParts===0));function r(s){o.value=s}const a={};function l(s,i){a[s]=i}return{customerHabit:t,changeHabit:n,modelList:o,changeModelList:r,addressJson:a,setAddressJson:l}});function Ii(t,n=500,o){let r=0;return function(...a){r&&clearTimeout(r),r=setTimeout(()=>{t.apply(this,a),r=0},n)}}function ba(t){if(!t&&typeof t!="object")throw new Error("deepClone error arguments");const n=t.constructor===Array?[]:{};return Object.keys(t).forEach(o=>{t[o]&&typeof t[o]=="object"?n[o]=ba(t[o]):n[o]=t[o]}),n}function p2(t,n,o="name"){function r(l){let s=(l+"").trim().toLowerCase(),i=s.charAt(0),c;return/[a-z]/.test(i)?c="letter":/[0-9]/.test(i)?c="number":/[\u4e00-\u9fa5]/.test(i)?(c="chinese",s=l.trim()):c="symbol",{category:c,name:s}}const a=n==="ascending"?{letter:1,chinese:2,number:3,symbol:4}:{number:1,chinese:2,letter:3,symbol:4};return t.sort((l,s)=>{let{category:i,name:c}=r(l[o]),{category:d,name:f}=r(s[o]);return i!==d?a[i]-a[d]:n==="ascending"?c.localeCompare(f):f.localeCompare(c)}),t}function RE(t,n=!1){const o=window.localStorage.getItem(t);return n&&o?JSON.parse(o):o}const h2=[37,44,54];function g2(t,n,o,r,a,l,s,i){for(const c of r){if(o.has(c.id))continue;const d=c.content.vehicle;d&&d.map(m=>t.add(m));const f=c.content.device;f&&f.map(m=>{var y;n.add(m);const u=(y=l.find(p=>p.deviceId===m))==null?void 0:y.vehicleId;u&&t.add(u)});const h=c.content.landmark;if(h!=null&&h.length&&(c.id===150&&console.log(h),h.map(m=>{s.filter(y=>y.landmarkId===m).map(y=>{var v;n.add(y.deviceId);const p=i.find(B=>y.deviceId===B.deviceId);p?p.landmarkIds.push(y.landmarkId):i.push({deviceId:y.deviceId,landmarkIds:[y.landmarkId]});const g=(v=l.find(B=>B.deviceId===y.deviceId))==null?void 0:v.vehicleId;g&&t.add(g)})})),o.add(c.id),c.content.tag){const m=[];c.content.tag.map(u=>{const y=a.find(p=>p.id===u);y&&m.push(y)}),g2(t,n,o,m,a,l,s,i)}}}function A2({tag:t,allTagList:n}){var o,r;(r=(o=t==null?void 0:t.content)==null?void 0:o.tag)!=null&&r.length&&(t.isClose=!1,t.content.tag.map(a=>{const l=n.find(s=>s.id===a);l&&(l.parentList||(l.parentList=[]),l.parentList.some(s=>s===t.id)||l.parentList.push(t.id),t.children||(t.children=[]),t.children.some(s=>s.id===l.id)||t.children.push(l),A2({tag:l,allTagList:n}))}))}function v2(t,n,o,r){var a;t.level=n,r.maxLevel=r.maxLevel<n?n:r.maxLevel,o!=null&&o.id?(t.parentId=o.id,t.itemId=(o.itemId?o.itemId+"_":"")+t.id):t.itemId=t.id,(a=t.children)!=null&&a.length&&t.children.map(l=>{v2(l,n+1,t,r)})}const $o=t=>{if(!t)return"-";const o=new Date().getTime()-t;if(o<0)return"0s";const r=o/1e3,a=o/1e3/60,l=o/1e3/60/60,s=o/1e3/60/60/24;return r<60?`${Math.floor(r)}s ago`:a<60?`${Math.floor(a)}m ago`:l<24?`${Math.floor(l)}h ago`:s<=30?`${Math.floor(s)}d ago`:">30d"},y2=t=>{const n=t.locationReportTime?new Date(t.locationReportTime).getTime():0;let o=0;if(t.modelId&&t.modelId===62&&t.conStatus===!1)o=0;else if(!t.userPackageId)o=-2;else if(!n)o=-1;else{const r=new Date(n).getTime(),a=new Date().getTime()/1e3-r/1e3;a<3600*24&&t.charging===1?o=1:a<3600*24&&t.charging===0?o=2:o=0}return o};function YE(t){var C;const{tagList:n=[],deviceStatusList:o=[],landmarkList:r=[],modelList:a=[],vehicleType:l=[],propsModleList:s=[],hereVehicleId:i=0,inMaint:c=!1,sensorTypeList:d=[],limitList:f=[]}=t;let{deviceList:h=[],vehicleList:m=[],landmarkDeviceList:u=[],vehicleDeviceList:y=[],hereDeviceId:p=0,useCompleteVehicleScope:g=!1}=t;if(i&&!p){const w=(C=y.find(k=>k.vehicleId===i))==null?void 0:C.deviceId;w&&(p=w)}h=h.filter(w=>{var k;if(g)return!0;if(w.content.deviceStatus!==2&&!c)return!1;if(!s.length||p&&p===w.id)return!0;if(s.includes(((k=w.content)==null?void 0:k.modelId)||w.modelId)){if(f.length){const b=f.find(E=>{var T;return E.modelId&&E.modelId===(((T=w.content)==null?void 0:T.modelId)||w.modelId)});if(b&&b.regex&&b.key){const E=new RegExp(b.regex);if(E.test(w[b.key]||(w.content||{})[b.key]))return!0;const P=o.find(O=>w.userPackageId===O.userPackageId);return!!(P&&E.test(P[b.key]||(P.content||{})[b.key]))}return!0}return!0}return!1}),m=m.filter(w=>{var b;if(g)return!0;const k=(b=y.find(E=>E.vehicleId===w.id))==null?void 0:b.deviceId;return d.length&&!d.some(E=>w.sensorConfig&&w.sensorConfig[E])?!!(p&&p===k):k&&k>0&&h.find(E=>E.id===k)}),u=u.filter(w=>{var E,T;const k=(E=h.find(P=>P.id===w.deviceId))==null?void 0:E.id,b=(T=r.find(P=>P.id===w.landmarkId))==null?void 0:T.id;return k&&b}),y=y.filter(w=>{var E,T;const k=(E=h.find(P=>P.id===w.deviceId))==null?void 0:E.id,b=(T=m.find(P=>P.id===w.vehicleId))==null?void 0:T.id;return k&&b}),r.map(w=>{w.is="landmark"}),n.map(w=>{w.is="tag";const k=new Set,b=new Set,E=[];g2(k,b,new Set,[w],n,y,u,E),w.deviceFromLandmark=[...E],w.content.vehicle=[...k],w.content.device=[...b]});const v=[];h=h.map(w=>{var P;w={...w,...w.content||{},detailAddress:""};const k=o.find(O=>w.userPackageId===O.userPackageId);k&&(w={...w,...k,...k.content||{},deviceStatusOne:k,detailAddress:"",id:w.id},w.triggerType=w.doorType==="Open"?"DoorOpen":w.doorType==="Close"?"DoorClose":w.triggerType,w.speed>20&&(w.event=1),w.speed<20&&w.event===1&&w.heading===0&&(w.event=0));const b=[];n.map(O=>{var Q;(((Q=O.content)==null?void 0:Q.device)||[]).some(j=>j===w.id)&&b.push(O)}),w.tagList=b;const E=[];if(u.map(O=>{if(O.deviceId===w.id){const D=r.find(Q=>Q.id===O.landmarkId);D&&!E.some(Q=>Q.id===D.id)&&E.push(D)}}),w.landmarkList=E,!((P=y.find(O=>O.deviceId===w.id))==null?void 0:P.vehicleId)&&!g){if(w.deviceStatusOne){w.trackerStatus=y2(w);let O=0;if(h2.includes(w.modelId)?w.temperatureTime&&w.locationTime?w.temperatureTime>w.locationTime?O=w.temperatureTime:O=w.locationTime:w.temperatureTime?O=w.temperatureTime:O=w.locationTime:O=w.locationTime,O){const D=new Date(O).getTime(),Q=new Date().getTime();w.timeDiff=$o(D),D?w.idleDiff=Q-D:w.idleDiff=0}else w.timeDiff=$o(O),w.idleDiff=0}v.push({...w,name:(w.userPackageId+"").slice(-5),isDevice:1,deviceOne:{...w},content:{...w.content}})}return delete w.content,w}),m.map(w=>{var E;w.isVehicle=!0;const k=(E=y.find(T=>T.vehicleId===w.id))==null?void 0:E.deviceId;if(k){const T=h.find(P=>P.id===k);if(T){if(w.deviceOne=T,T.deviceStatusOne){T.trackerStatus=y2(T);let O=0;if(h2.includes(T.modelId)?T.temperatureTime&&T.locationTime?T.temperatureTime>T.locationTime?O=T.temperatureTime:O=T.locationTime:T.temperatureTime?O=T.temperatureTime:O=T.locationTime:O=T.locationTime,O){const D=new Date(O).getTime(),Q=new Date().getTime();T.timeDiff=$o(D),D?T.idleDiff=Q-D:T.idleDiff=0}else T.timeDiff=$o(O),T.idleDiff=0}const P=[];u.map(O=>{if(O.deviceId===T.id){const D=r.find(Q=>Q.id===O.landmarkId);D&&!P.some(Q=>Q.id===D.id)&&P.push(D)}}),w.landmarkList=P}}l.map(T=>{var P,O,D;(((P=w.content)==null?void 0:P.assetType)===((O=T.content)==null?void 0:O.assetType)||w.assetType===((D=T.content)==null?void 0:D.assetType))&&(w.vehicleType=T)});const b=[];n.map(T=>{var O,D;((((O=T.content)==null?void 0:O.vehicle)||[]).some(Q=>Q===w.id)||k&&(((D=T.content)==null?void 0:D.device)||[]).some(j=>j===k))&&b.push(T)}),w.tagList=b});let B=[];n.map(w=>{let k=!1;k=n.some(b=>{var E,T;return w.id===b.id?!1:!!((T=(E=b.content)==null?void 0:E.tag)!=null&&T.length&&b.content.tag.some(P=>P===w.id))}),k||B.push(w)}),B.map(w=>{A2({tag:w,allTagList:n})}),B=JSON.parse(JSON.stringify(B));let A={maxLevel:0};return B.map(w=>{v2(w,0,{},A)}),a.map(w=>{let k=0;d.length||v.map(b=>{b.modelId===w.modelId&&k++}),m.map(b=>{var E;((E=b.deviceOne)==null?void 0:E.modelId)===w.modelId&&k++}),w.number=k}),l.map(w=>{let k=0;m.map(E=>{var T,P,O;(((T=E.content)==null?void 0:T.assetType)===((P=w.content)==null?void 0:P.assetType)||E.assetType===((O=w.content)==null?void 0:O.assetType))&&k++});const b=l.find(E=>w.content.parentType===E.content.assetType);b&&(b.number||(b.number=0),b.number+=k),w.number||(w.number=0),w.number+=k}),{onlyDeviceList:v,tagList:n,vehicleList:m,deviceList:h,levelTagList:B,landmarkList:r,modelList:a,vehicleType:l,maxLevel:A.maxLevel}}function FE(t,n={height:50,quality:.1},o){const r=new FileReader;r.onload=function(a){const{height:l,quality:s}=n,i=new Image;i.onload=function(){const c=i.width/i.height,d=l,f=l*c,h=document.createElement("canvas"),m=h.getContext("2d");h.width=f,h.height=d,m.drawImage(i,0,0,f,d),h.toBlob(u=>{const y=new File([u],t.name,{type:"image/png",lastModified:Date.now()});o(y)},"image/png",s)},i.src=a.target.result},r.readAsDataURL(t)}function w2(t,n){let o={};for(const r in t){if(r==="id")continue;const a=t[r],l=n[r];if(typeof a=="object"&&a!==null&&typeof l=="object"&&l!==null){const s=w2(a,l);Object.keys(s).length>0&&(o[r]=n[r])}else a!==l&&(o[r]=l)}for(const r in n)!(r in t)&&r!=="id"&&(o[r]=n[r]);return o}K.extend(Fo),K.extend(Ko),K.extend(Wo);const er=_o(hf),UE=function(){const t="2.7.0",n={versionNumber:t,version:`v${t}`,antRouter:"",mapType:"GoogleMap",defaultMapLayer:"road",dateTimeFormat:"YYYY-MM-DD HH",language:"en",languages:[{key:"en",value:"English"},{key:"fr",value:"Français"},{key:"es",value:"Español"},{key:"zh",value:"简体中文"}],distanceUnit:0,distanceUnits:["mi","km"],speedUnit:0,speedUnits:["mph","km/h"],tempUnit:0,tempUnits:["℉","℃"],orgType:{partner:4},orgTypes:{4:{value:4,label:"Partner"},5:{value:5,label:"Customer"},6:{value:6,label:"Owner"},1:{value:1,label:"Common"}},alarmTypes:[{value:1,label:"Low Battery",compare:[{v:1,l:"<"}]},{value:3,label:"ACC",compare:[{v:0,l:"="}]},{value:4,label:"Geofence",compare:[{v:6,l:"Entry"},{v:7,l:"Exit"}]},{value:5,label:"Speed",compare:[{v:2,l:">"}]},{value:6,label:"Temperature",compare:[{v:2,l:">"},{v:1,l:"<"}]},{value:8,label:"Idle"},{value:9,label:"Maintenance"},{value:11,label:"Offline"}],zoom:2,center:{lat:39.7668,lng:-101.4257},mergeMarker:!0,timezone:"-0700",localTimezone:!0,showDevice:!0,showUpdatedMessage:!0,markerType:"arrow",historyTimePicker:[2,6,12,"day","week","month"],reportTimePicker:["month","quarter","year"],trailerType:["dry van","reefer","chassis","flatbed","tanker","lowboy","step"],specialChars:["<",">","?",",","/",":",'"',";","'","~","`","!","@","#","$","%","^","&","*","(",")","_","+","-","=","{","}","|","[","]","\\"]};window.trkConfig=n};window.trkConfig||UE();let gf=RE("customerHabit");try{const t=JSON.parse(gf)||{},{mapType:n,defaultMapLayer:o,distanceUnit:r,speedUnit:a,tempUnit:l,mergeMarker:s,showDevice:i,showUpdatedMessage:c,dateTimeFormat:d}=window.trkConfig,h=Object.assign({mapType:n,defaultMapLayer:o,distanceUnit:r,speedUnit:a,tempUnit:l,mergeMarker:s,showDevice:i,showUpdatedMessage:c,dateTimeFormat:d},t);h.language==="zh"&&(h.language="en"),gf=h,er.changeHabit(h)}catch{gf={},er.changeHabit({})}function xi({year:t=!0,month:n=!0,day:o=!0,time:r=!0,second:a=!1,blank:l=!0}){const s=er.customerHabit.dateTimeFormat;if(!s)return"";let i=s,c="";const d=s.match(/^(.*\S)\s+(.+)$/);if(d){const b=d[1],E=d[2];/[Hhms:APap]/.test(E)?(i=b,c=E):(i=s,c="")}const f=/(?:^|[^A-Za-z])h{1,2}(?:[^A-Za-z]|$)/.test(c),h=/(YYYY|YY|MMMM|MMM|MM|M|DD|D)/gi;function m(b){const E=[];let T=0,P;for(;(P=h.exec(b))!==null;)P.index>T&&E.push({type:"sep",value:b.slice(T,P.index)}),E.push({type:"token",value:P[0]}),T=h.lastIndex;return T<b.length&&E.push({type:"sep",value:b.slice(T)}),E}function u(b){return/[,\.\-\/:;]/.test(b)}function y(b,E){const T=E-1>=0?b[E-1]:null,P=E+1<b.length?b[E+1]:null;return T&&T.type==="sep"&&u(T.value)?E-1:P&&P.type==="sep"&&u(P.value)?E+1:T&&T.type==="sep"&&T.value.length===1?E-1:P&&P.type==="sep"&&P.value.length===1||P&&P.type==="sep"?E+1:T&&T.type==="sep"?E-1:null}function p(b,E){let T=0;for(;T<b.length;){const O=b[T];if(O.type==="token"&&E(O.value)){const D=y(b,T);if(D!==null){const Q=Math.min(D,T),j=Math.abs(D-T)+1;b.splice(Q,j),T=Math.max(0,Q-1)}else b.splice(T,1),T=Math.max(0,T-1)}else T++}for(;b.length&&b[0].type==="sep";)b.shift();for(;b.length&&b[b.length-1].type==="sep";)b.pop();const P=[];for(let O=0;O<b.length;O++){const D=b[O];P.length&&D.type==="sep"&&P[P.length-1].type==="sep"?P[P.length-1].value+=D.value:P.push({...D})}for(let O=0;O<P.length;O++)if(P[O].type==="sep"){const D=P[O].value,Q=/,/.test(D),j=/,\s+/.test(D);let z=D.replace(/\s+/g," ");Q?z=j?z.replace(/,*\s*/,", "):z.replace(/,*\s*/,","):z=z.trim()===""?" ":z.replace(/\s+/g," "),P[O].value=z}for(;P.length&&P[0].type==="sep"&&P[0].value.trim()==="";)P.shift();for(;P.length&&P[P.length-1].type==="sep"&&P[P.length-1].value.trim()==="";)P.pop();return P}const g=b=>{const E=String(b).toUpperCase();return E==="YYYY"||E==="YY"},v=b=>{const E=String(b).toUpperCase();return["MMMM","MMM","MM","M"].includes(E)},B=b=>{const E=String(b).toUpperCase();return E==="DD"||E==="D"};let A=m(i);t||(A=p(A,g)),n||(A=p(A,v)),o||(A=p(A,B));let C="";for(let b=0;b<A.length;b++){const E=A[b];if(E.type==="sep")C+=E.value;else{C+=E.value;const T=A[b+1];T&&T.type==="token"&&(C+=" ")}}C=C.replace(/ {2,}/g," ").trim();let w="";r&&(c?(/:/.test(c)?(w=c,a?/ss/.test(w)||(w=w+":ss"):w=w.replace(/:ss\b/,"")):w=c+":mm"+(a?":ss":""),f&&!/[Aa]/.test(w)&&(w=w+" A")):w="HH:mm"+(a?":ss":""));let k=C;return r&&w&&(k=k?`${k}${l?" ":""}${w}`:w),k.trim()}function Li(t,n=!1){if(!t)return"-";let o=K.tz.guess();!er.customerHabit.localTimezone&&er.customerHabit.timeZone&&(o=er.customerHabit.timeZone);const r=xi({year:!0,month:!0,day:!0,time:!0,second:!1,blank:!0}),a=K.utc(t).tz(o).format(r);return n?a+"("+o+")":a}function JE(t){return Math.ceil(new Date(t).getTime())}const b2=t=>{const n=K();return K(t).diff(n,"days")},Af=t=>Li(t);function Zr(){return er.customerHabit.textOverflowStyle||"middle"}function KE(t,n=!1){if(!t)return"-";let o=K.tz.guess();!er.customerHabit.localTimezone&&er.customerHabit.timeZone&&(o=er.customerHabit.timeZone);const r=xi({year:!0,month:!0,day:!0,time:!0,second:!0,blank:!0}),a=K.utc(t).tz(o).format(r);return n?a+"("+o+")":a}const Ca=_o(hf),C2=(t=0,n=!0,o=0)=>{const r=!Ca.customerHabit||Ca.customerHabit.distanceUnit===0?"mi":"km",a=r==="mi"?(t/1.609344/1e3).toFixed(o):(t/1e3).toFixed(o);return n?a+r:parseFloat(a)},WE=(t=0)=>!Ca.customerHabit||Ca.customerHabit.distanceUnit===0?Math.round(t*1.609344*1e3):Math.round(t*1e3),qE=(t,n=!0,o=1)=>{if(typeof t!="number"||Number.isNaN(t)||t>=887&&t<=889||t>=475&&t<=476)return"-";const r=!Ca.customerHabit||Ca.customerHabit.tempUnit===0?"℉":"℃",a=Number.isInteger(t*9/5+32)?t*9/5+32:(t*9/5+32).toFixed(o),l=r==="℃"?Number(t).toFixed(1):a;return n?l+r:l},_E=()=>Ca.customerHabit.distanceUnit===0?"mi":"km",$E=t=>{const n=t.locationReportTime?new Date(t.locationReportTime).getTime():0;let o=0;if(t.modelId&&t.modelId===62&&t.conStatus===!1)o=0;else if(!t.userPackageId)o=-2;else if(!n)o=-1;else{const r=new Date(n).getTime(),a=new Date().getTime()/1e3-r/1e3;a<3600*24&&t.charging===1?o=1:a<3600*24&&t.charging===0?o=2:o=0}return o},ez=t=>t.trackerStatus===0||!t.trackerStatus?"Offline":t.trackerStatus<0?"-":t.event===1?"Driving":t.acc===0&&t.modelId&&(t.modelId===8||t.modelId===9||t.modelId===62)?"Engine Off":"Idle",B2=t=>{let n="",o;return t.battery>80?o=100:t.battery>60?o=80:t.battery>40?o=60:t.battery>20?o=40:o=20,!t.trackerStatus||t.trackerStatus<=0?n="offline":t.trackerStatus===1?n="charge":t.trackerStatus===2&&(n="nocharge"),`battery-${n}${o}`},k2=t=>{if(!t)return"-";const o=JE(new Date)-t;if(o<0)return"0s";const r=o/1e3,a=o/1e3/60,l=o/1e3/60/60,s=o/1e3/60/60/24;return r<60?`${Math.floor(r)}s ago`:a<60?`${Math.floor(a)}m ago`:l<24?`${Math.floor(l)}h ago`:s<=30?`${Math.floor(s)}d ago`:">30d"},tz={},nz={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function oz(t,n){return e.openBlock(),e.createElementBlock("svg",nz,[...n[0]||(n[0]=[e.createElementVNode("rect",{x:"2.68359",y:"2.68359",width:"26.6328",height:"26.6328",rx:"13.3164",stroke:"#12B76A","stroke-width":"1.5"},null,-1),e.createElementVNode("path",{d:"M9.45117 15.5081L12.8308 18.8879C13.3547 19.4118 13.6166 19.6737 13.9187 19.7719C14.1844 19.8582 14.4706 19.8582 14.7363 19.7719C15.0383 19.6737 15.3003 19.4118 15.8241 18.8879L22.5476 12.1641",stroke:"#12B76A","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])}const P2=ut(tz,[["render",oz]]),rz={},az={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function lz(t,n){return e.openBlock(),e.createElementBlock("svg",az,[...n[0]||(n[0]=[e.createElementVNode("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z",fill:"#F79009"},null,-1)])])}const T2=ut(rz,[["render",lz]]),sz={},iz={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function cz(t,n){return e.openBlock(),e.createElementBlock("svg",iz,[...n[0]||(n[0]=[e.createElementVNode("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z",fill:"#0086C9"},null,-1)])])}const O2=ut(sz,[["render",cz]]),dz={},fz={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uz(t,n){return e.openBlock(),e.createElementBlock("svg",fz,[...n[0]||(n[0]=[e.createElementVNode("rect",{x:"2.68359",y:"2.68359",width:"26.6328",height:"26.6328",rx:"13.3164",stroke:"#F32C1D","stroke-width":"1.5"},null,-1),e.createElementVNode("path",{d:"M20.9693 20.9703L11.0293 11.0303M11.0293 20.9703L20.9693 11.0303",stroke:"#F32C1D","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])}const D2=ut(dz,[["render",uz]]);function fs(){function t(l){let s="info",i="",c={},d={success:P2,warning:T2,info:O2,error:D2}[s||"info"];typeof l=="string"?i=l:(s=l.type||"info",i=l.message,c=l.config||{},d={success:P2,warning:T2,info:O2,error:D2}[s||"info"]);const f={message:i,type:s||"info",icon:d,customClass:s||"info",...c};ZB(f)}function n(l){t({message:l,type:"error"})}function o(l){t({message:l,type:"success"})}function r(l){t({message:l,type:"warning"})}function a(l){t({message:l,type:"info"})}return{open:t,info:a,warning:r,error:n,success:o}}const mz={class:"name_address"},pz={class:"name"},hz={key:0,class:"over-ellipsis"},gz={key:1,class:"over-ellipsis"},Az={class:"time-txt"},vz={class:"time-txt"},yz={class:"status"},wz={class:"top"},bz={class:"vehicle-status"},Cz={class:"driving-time"},Bz=["nowActive"],kz={key:1},Pz={key:2},Tz={key:0},Oz={key:1},Dz={class:"flex-center"},Ez={class:"flex-center"},zz={class:"bottom"},Nz={class:"image-slot-error"},Mz={class:"image-slot-error image-slot-placeholder"},Hz={key:0,class:"googleMap"},Iz="AIzaSyCn6dlrESg1etQMDgkw4rZk1lzMc-L8feo",xz=ut(e.defineComponent({__name:"chooseOne",props:{message:{type:Object,default(){return{}}},assetTypesMap:{type:Object,default(){return{}}},haveBorder:{type:Boolean,default:!0},currentItem:{type:Object,default(){return{}}},activeOne:{type:Number,default:0},activeParentId:{type:Number,default:0},descVisible:{type:Boolean,default:!0},vehicleMessageArray:{type:Object,default(){return[]}},isArray:{type:Boolean,default:!0},nowActive:{type:Boolean,default:!1},clickToMdvr:{type:Function}},emits:["mouseover","mouseout","click","descClick"],setup(t,{emit:n}){const o=_o(),{customerHabit:r}=Hi(o),a=fs(),{addressJson:l,setAddressJson:s}=o,{t:i}=dn(),c=t,d=n,f=e.computed(()=>c.message.deviceOne||{}),h=e.computed(()=>c.isArray?c.vehicleMessageArray.some(le=>le.id===c.message.id):c.currentItem.id===c.message.id),m=e.computed(()=>{const le=c.message.parentId;let ae=!1;const Ce=[];return le&&(c.message.tagList||[]).filter(Ee=>Ee.id===le).map(Ee=>{Ee.deviceFromLandmark.filter(X=>X.deviceId===f.value.id?(Ce.push(...X.landmarkIds||[]),!0):!1).length&&(ae=!0)}),{inL:ae,hereLandmarkName:[...new Set(Ce)].map(Ee=>{var ie;return((ie=(c.message.landmarkList||[]).find(X=>X.id===Ee))==null?void 0:ie.name)||""}).join(";")}}),u=(le,ae,Ce)=>{if(Ce===1)return"monitorIconCpu";if(!le&&!ae)return"Vector";if(ae)return"vehicle-"+ae;const{icons:Ee}=c.assetTypesMap[le];return Ee?"vehicle-"+Ee[0]:""},y=le=>le.trackerStatus<=0||!le.trackerStatus?"offline-li":le.battery&&le.battery<20||le.battery===0?"alarming-li":le.trackerStatus===1?"charging-li":(le.trackerStatus===2,"normal-li"),p=le=>{if(le.signals||le.signals===0)return`signalnew${Math.ceil(le.signals/25)}`};function g(le){return le!=null&&le>0}const v=e.computed(()=>f.value.modelId===37||f.value.modelId===44||f.value.modelId===54&&f.value.fwVer>=11309),B=e.computed(()=>f.value.modelId===54?f.value.hwVer>=11200:!1),A=e.computed(()=>f.value.modelId===54&&f.value.thumb||f.value.modelId===62),C=le=>le.trackerStatus===0||!le.trackerStatus?{class:"Offline",label:i("offline")}:le.trackerStatus<0?{class:"Offline",label:i("offline")}:le.modelId&&le.modelId===62&&le.acc===0?{class:"Idle",label:i("idle")}:le.event===1?{class:"driving",label:i("driving")}:le.acc===0&&le.modelId&&(le.modelId===8||le.modelId===9)?{class:"Engine Off",label:i("engineOff")}:{class:"Idle",label:i("idle")},w=e.ref(!1),k=le=>{const ae=c.message.name+""||"-";le.target.innerText!==ae?w.value=!0:w.value=!1},b=()=>{w.value=!1},E=e.ref(!1);function T(){D()}const P=e.ref(!1),O=e.ref(!0);function D(){var Ee;if(!f.value.lat||!(f.value.lon||f.value.lng))return;P.value=!0;const le=`lat${f.value.lat}lng${f.value.lon||f.value.lng}`;if(l[le]){f.value.detailAddress=l[le];return}if(O.value=!0,!((Ee=window.google)!=null&&Ee.maps)){E.value=!0;return}const ae=new window.google.maps.Geocoder,Ce=new window.google.maps.LatLng(f.value.lat,f.value.lon||f.value.lng);ae.geocode({location:Ce},ie=>{if(ie&&ie.length!==0){O.value=!1;const X=ie.filter(ue=>ue.types[0]!=="plus_code");f.value.detailAddress=X[0].formatted_address,s(le,f.value.detailAddress)}else O.value=!1},()=>{O.value=!1})}const Q=e.ref("hover");function j(){!f.value.lat||!(f.value.lon||f.value.lng)||f.value.detailAddress&&(Q.value="contextmenu",setTimeout(()=>{P.value=!0},61))}let z=0;function M(){Q.value="hover",z=setTimeout(()=>{P.value=!1},61)}function x(){Q.value==="hover"&&z&&clearTimeout(z)}function N(le){if(!le)return;const ae=document.createElement("textarea");ae.value=le,document.body.appendChild(ae),ae.select(),document.execCommand("Copy"),document.body.removeChild(ae),a.success(i("copySuccessful"))}function H(le){d("mouseover",le,c.message)}function q(le){d("mouseout",le,c.message)}function ne(){d("click",c.message)}function W(){var le;if(f.value.modelId===62&&c.clickToMdvr&&typeof c.clickToMdvr=="function"){let ae={};c.message.isVehicle?ae={vehicleId:c.message.id,deviceId:((le=c.message.deviceOne)==null?void 0:le.id)||0}:ae={vehicleId:0,deviceId:c.message.id},c.clickToMdvr(ae)}}return(le,ae)=>{var ue,Ae;const Ce=e.resolveComponent("anSvgIcon"),Ee=e.resolveComponent("text-clamp"),ie=Do,X=hd;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(["vehicle-one",[y(f.value),{haveBorder:t.haveBorder},{nowActive:h.value},{[`parentId${t.message.parentId}itemId${t.message.id}`]:!0},{blueBorder:t.activeParentId&&t.activeParentId===t.message.parentId},{isLastParentOne:t.message.isLastParentOne}]]),onMouseover:H,onMouseout:q,onClick:ne},[e.createElementVNode("div",mz,[e.createVNode(ie,{"show-arrow":!1,visible:w.value,"onUpdate:visible":ae[0]||(ae[0]=ve=>w.value=ve),"popper-class":"normal-txt-pop",effect:"dark",content:t.message.name,teleported:!0,"hide-after":0,trigger:"contextmenu",placement:"top-start","append-to":"#leftSide"},{default:e.withCtx(()=>{var ve;return[e.createElementVNode("div",pz,[e.createVNode(Ce,{name:u(t.message.content.assetType,t.message.content.newIcon,t.message.isDevice||0)},null,8,["name"]),e.createElementVNode("span",{onMouseenter:k,onMouseleave:b},[e.createVNode(Ee,{text:t.message.name+""||"-",location:((ve=e.unref(r))==null?void 0:ve.textOverflowStyle)||"middle","max-lines":1,autoResize:!0},null,8,["text","location"])],32)])]}),_:1},8,["visible","content"]),e.createElementVNode("div",{class:"address",onMouseenter:j,onMouseleave:M},[e.createVNode(Ce,{name:"address-icon",fontSize:"16",color:"#000"}),e.createElementVNode("div",{class:e.normalizeClass(["address-time",{"detail-address-time":f.value.lat&&(f.value.lon||f.value.lng)&&f.value.detailAddress}])},[f.value.detailAddress?(e.openBlock(),e.createElementBlock("span",hz,e.toDisplayString(f.value.detailAddress),1)):(e.openBlock(),e.createElementBlock("span",gz,e.toDisplayString(((ue=f.value.state)!=null&&ue.endsWith(" Province")?f.value.state.replace(" Province",""):f.value.state)||"-"),1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(Li)(f.value.locationTime)),1)],2),e.createVNode(ie,{effect:"dark",placement:"top",trigger:f.value.lat&&(f.value.lon||f.value.lng)&&f.value.detailAddress?Q.value:"click","show-arrow":!1,teleported:!0,"hide-after":f.value.lat&&(f.value.lon||f.value.lng)&&f.value.detailAddress&&Q.value==="hover"?60:0,"append-to":"#leftSide",disabled:!(f.value.lat&&(f.value.lon||f.value.lng)),visible:P.value,"onUpdate:visible":ae[5]||(ae[5]=ve=>P.value=ve),"popper-class":"any-address-pop"},{content:e.withCtx(()=>[e.createElementVNode("div",{class:"detail-content",onMouseenter:x},[e.createElementVNode("div",null,[e.createElementVNode("div",null,e.toDisplayString(f.value.detailAddress||"-"),1),e.createElementVNode("div",Az,e.toDisplayString(e.unref(Li)(f.value.locationTime)),1),e.createElementVNode("div",vz,e.toDisplayString(e.unref(i)("lastUpdate"))+": "+e.toDisplayString(f.value.timeDiff),1)]),e.createElementVNode("div",{class:"refreshIcon",onClick:ae[4]||(ae[4]=e.withModifiers(ve=>N(f.value.detailAddress),["stop"]))},[e.createVNode(Ce,{name:"cop-icon","font-size":18})])],32)]),default:e.withCtx(()=>[f.value.lat&&(f.value.lon||f.value.lng)&&f.value.detailAddress?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["svg-icon copy-detail-adress",{default:!(f.value.lat&&(f.value.lon||f.value.lng))}]),onClick:ae[2]||(ae[2]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(Ce,{name:"copy-detail-adress",fontSize:"24",color:"#000",onClick:ae[1]||(ae[1]=e.withModifiers(ve=>N(f.value.detailAddress),["stop"]))})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["svg-icon",{default:!(f.value.lat&&(f.value.lon||f.value.lng))}]),onClick:ae[3]||(ae[3]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(Ce,{name:y(f.value)!=="offline-li"?"address-more":"address-more-offline",fontSize:"16",color:"#fff",onClick:D},null,8,["name"])],2))]),_:1},8,["trigger","hide-after","disabled","visible"])],32)]),e.createElementVNode("div",yz,[e.createElementVNode("div",wz,[e.createElementVNode("div",bz,[e.createElementVNode("i",{class:e.normalizeClass([C(f.value||{}).class])},null,2),e.createElementVNode("span",null,e.toDisplayString(C(f.value||{}).label),1),ae[6]||(ae[6]=e.createElementVNode("div",{class:"boder-padding"},null,-1)),e.createVNode(ie,{effect:"dark",placement:"top",trigger:"hover","hide-after":0,"show-arrow":!1,teleported:!0,"append-to":"#leftSide",content:e.unref(i)("lastUpdate")+" "+(f.value.timeDiff?f.value.timeDiff:"-")},{default:e.withCtx(()=>[e.createElementVNode("div",Cz,e.toDisplayString(f.value.timeDiff?f.value.timeDiff:"-"),1)]),_:1},8,["content"])])]),(e.openBlock(),e.createElementBlock("div",{class:"middle",key:c.message.id,nowActive:t.nowActive},[t.activeOne===1&&m.value.inL?(e.openBlock(),e.createBlock(ie,{key:0,"show-arrow":!1,"popper-class":"normal-txt-pop",effect:"dark",content:m.value.hereLandmarkName,teleported:!0,"hide-after":0,placement:"top-start","append-to":"#leftSide"},{default:e.withCtx(()=>[e.createVNode(Ce,{name:"from-landmark-icon",class:"from-landmark-icon",color:"#F32C1D"})]),_:1},8,["content"])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("div",kz,[e.createVNode(Ce,{name:"temp-hot-line"}),e.createElementVNode("span",{class:e.normalizeClass({red:f.value.alarmType&&f.value.alarmType.length>0&&f.value.alarmType.includes(6)})},e.toDisplayString(e.unref(qE)(Number(f.value.temperature))),3)])):e.createCommentVNode("",!0),f.value.modelId===54&&((Ae=f.value.triggerType)==null?void 0:Ae.trim())!="DoorOpen"?(e.openBlock(),e.createElementBlock("div",Pz,[e.createVNode(Ce,{name:"load-num-icon"}),g(f.value.manualSetLoad)||g(f.value.load)?(e.openBlock(),e.createElementBlock("span",Tz,e.toDisplayString(g(f.value.manualSetLoad)?f.value.manualSetLoad:f.value.load||"0")+"%",1)):(e.openBlock(),e.createElementBlock("span",Oz,"-"))])):e.createCommentVNode("",!0),f.value.modelId===54&&f.value.triggerType?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[f.value.triggerType.trim()==="DoorOpen"?(e.openBlock(),e.createBlock(ie,{key:0,effect:"dark",content:e.unref(i)("doorOpenCurrently"),placement:"top","hide-after":0,"show-arrow":!1,teleported:!0,"append-to":"#leftSide"},{default:e.withCtx(()=>[y(f.value)==="offline-li"?(e.openBlock(),e.createBlock(Ce,{key:0,class:"doorOpenIconOffline",name:"doorOpenIconOffline",color:"#F32C1D"})):(e.openBlock(),e.createBlock(Ce,{key:1,class:"doorOpen",name:"doorOpenIcon2",color:"#F32C1D"}))]),_:1},8,["content"])):f.value.triggerType.trim()==="DoorClose"?(e.openBlock(),e.createBlock(ie,{key:1,effect:"dark",content:e.unref(i)("doorCloseCurrently"),placement:"top","hide-after":0,"show-arrow":!1,teleported:!0,"append-to":"#leftSide"},{default:e.withCtx(()=>[y(f.value)==="offline-li"?(e.openBlock(),e.createBlock(Ce,{key:0,class:"doorCloseIconOffline",name:"doorCloseIconOffline",color:"#12B76A"})):(e.openBlock(),e.createBlock(Ce,{key:1,class:"doorClose",name:"doorCloseIcon2",color:"#12B76A"}))]),_:1},8,["content"])):f.value.triggerType.trim()==="OnDemand"?(e.openBlock(),e.createBlock(Ce,{key:2,name:"onDemand",color:"#000000"})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createVNode(ie,{teleported:!0,"append-to":"#leftSide","show-arrow":!1,"popper-class":"normal-txt-pop",effect:"dark","hide-after":0,placement:"top-start"},{content:e.withCtx(()=>[e.createElementVNode("div",Dz,[e.createElementVNode("span",null,e.toDisplayString(f.value.signals||f.value.signals===0?f.value.signals:"-"),1)])]),default:e.withCtx(()=>[e.createVNode(Ce,{name:p(f.value),color:"#000000"},null,8,["name"])]),_:1}),f.value.modelId!=62?(e.openBlock(),e.createBlock(ie,{key:4,teleported:!0,"append-to":"#leftSide","show-arrow":!1,"popper-class":"normal-txt-pop",effect:"dark","hide-after":0,placement:"top-start"},{content:e.withCtx(()=>[e.createElementVNode("div",Ez,[e.createElementVNode("span",null,e.toDisplayString(f.value.battery||f.value.battery===0?f.value.battery+"%":"-"),1),y(f.value)!=="offline-li"&&e.unref(B2)(f.value||{}).includes("battery-charge")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(Ce,{name:"ischarge",fontSize:10}),e.createElementVNode("span",null,e.toDisplayString(f.value.current)+"mA",1)],64)):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createVNode(Ce,{class:"battery-icon",name:e.unref(B2)(f.value||{}),color:"rgb(2, 2, 2)"},null,8,["name"])]),_:1})):e.createCommentVNode("",!0)],8,Bz)),e.createElementVNode("div",zz,[f.value.modelId===62?(e.openBlock(),e.createBlock(Ce,{key:0,name:"2308play",class:"play2308",color:"#FFFFFF",fontSize:"24"})):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createBlock(X,{key:1,class:e.normalizeClass(["model-image",{is2310C43:B.value,modeId62:f.value.modelId===62,hasConnect:!!t.clickToMdvr}]),src:f.value.thumb||f.value.thumbnail_2308,onClick:e.withModifiers(W,["stop"])},{error:e.withCtx(()=>[e.createElementVNode("div",Nz,[f.value.modelId===54?(e.openBlock(),e.createBlock(Ce,{key:0,name:"image-error",color:"rgba(223, 223, 223, 1)",fontSize:"24"})):e.createCommentVNode("",!0)])]),placeholder:e.withCtx(()=>[e.createElementVNode("div",Mz,[e.createVNode(Ce,{name:"loading-icon",fontSize:"24"})])]),_:1},8,["src","class"])):e.createCommentVNode("",!0)])])],34),E.value?(e.openBlock(),e.createElementBlock("div",Hz,[e.createVNode(e.unref(tf),{"api-key":Iz,onIdle:T})])):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-f44a2c9a"]]),Lz=["id"],Sz={name:"tagone"},jz=e.defineComponent({...Sz,props:{item:{type:Object,default(){return{}}},notSecondChildren:{type:Boolean,default:!1},inTagScroll:{type:Boolean,default:!1},tagVehicleNumber:{type:Object,default(){return{}}}},emits:["clickItem"],setup(t,{emit:n}){const o=t,r=n;new $d("Inter").load().then(()=>{l()});function l(){e.nextTick(()=>{const m=i.value,u=document.createRange();u.setStart(m,0),u.setEnd(m,m.childNodes.length),Math.round(u.getBoundingClientRect().width)>i.value.clientWidth&&(c.value=!1)})}e.watch(()=>{var m;return(m=o.item)==null?void 0:m.name},()=>{l()});const s=e.computed(()=>{var m;return!!(o.tagVehicleNumber&&!o.tagVehicleNumber[(m=o.item)==null?void 0:m.id])}),i=e.ref(),c=e.ref(!0);e.onMounted(()=>{l()});const d=e.ref(!1);e.watch(()=>o.inTagScroll,()=>{o.inTagScroll&&(d.value=!1)});function f(m){r("clickItem",m)}function h(m){var u;f(m),(u=m.children)!=null&&u.length&&(m.isClose=!m.isClose)}return(m,u)=>{var v,B;const y=e.resolveComponent("anSvgIcon"),p=Do,g=e.resolveComponent("tagone");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([{position:"relative",overflow:"hidden"},{backgroundColor:!t.item.isClose&&((v=t.item.children)!=null&&v.length)&&!t.notSecondChildren?"#f4f4f4":"inherit",borderRadius:t.item.isClose?"":"6px",marginTop:t.item.level===0?"4px":""}])},[e.createVNode(p,{effect:"dark","show-arrow":!1,content:t.item.name,placement:"right",teleported:!0,disabled:c.value||t.inTagScroll,visible:d.value,"onUpdate:visible":u[1]||(u[1]=A=>d.value=A),"hide-after":0,"popper-class":"any-tag-pop"},{default:e.withCtx(()=>{var A,C;return[e.createElementVNode("div",{class:e.normalizeClass(["level-tag-list-one",{parentOne:t.item.level===0&&((A=t.item.children)==null?void 0:A.length),disabledHover:s.value}]),id:`${t.item.itemId}_tag`,onClick:u[0]||(u[0]=w=>h(t.item)),style:e.normalizeStyle({paddingLeft:8+t.item.level*24+"px"})},[e.createVNode(y,{name:"tag-list-arrow",style:e.normalizeStyle({opacity:(C=t.item.children)!=null&&C.length?1:0}),class:e.normalizeClass(["arrow-icon",{iconClose:t.item.isClose}])},null,8,["style","class"]),e.createVNode(y,{name:"tag-tab-icon",fontSize:20}),e.createElementVNode("span",{class:"over-ellipsis",ref_key:"tagOneSpan",ref:i},e.toDisplayString(t.item.name),513)],14,Lz)]}),_:1},8,["content","disabled","visible"]),(B=t.item.children)!=null&&B.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.item.children,A=>(e.openBlock(),e.createBlock(g,{item:A,notSecondChildren:!0,inTagScroll:t.inTagScroll,class:e.normalizeClass({close:t.item.isClose}),onClickItem:f,tagVehicleNumber:t.tagVehicleNumber},null,8,["item","inTagScroll","class","tagVehicleNumber"]))),256)):e.createCommentVNode("",!0)],4)}}}),Vz=ut(jz,[["__scopeId","data-v-b0783b7e"]]),Gz={};function Qz(t,n){const o=e.resolveComponent("anSvgIcon");return e.openBlock(),e.createBlock(o,{fontSize:32,name:"new-close-icon"})}const us=ut(Gz,[["render",Qz]]),Xz={};function Zz(t,n){const o=e.resolveComponent("anSvgIcon");return e.openBlock(),e.createBlock(o,{fontSize:24,name:"new-search-icon",color:"#000"})}const ms=ut(Xz,[["render",Zz]]),vf=e.defineComponent({__name:"tooltipSpan",props:{name:{type:String,default:""}},setup(t){const n=t,o=e.ref(),r=e.ref(!0);function a(){o.value.style.display="block",e.nextTick(()=>{const l=o.value,s=document.createRange();s.setStart(l,0),s.setEnd(l,l.childNodes.length),Math.round(s.getBoundingClientRect().width)>o.value.clientWidth?r.value=!1:r.value=!0,o.value.style.display=""})}return e.onMounted(()=>{a()}),e.watch(()=>n.name,()=>{a()}),(l,s)=>{const i=Do;return e.openBlock(),e.createBlock(i,{effect:"dark",content:t.name,placement:"top","show-arrow":!1,teleported:!0,disabled:r.value,"hide-after":0},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"over-ellipsis",ref_key:"tagOneSpan",ref:o},e.toDisplayString(t.name),513)]),_:1},8,["content","disabled"])}}}),Rz={class:"vehicle-select-body-top"},Yz=["onClick"],Fz={class:"padding"},Uz={class:"popover-choose-one el-popover el-popper"},Jz={class:"choose-list-one"},Kz={class:"number"},Wz=["onClick"],qz={class:"number"},_z=["onClick"],$z={class:"padding"},eN=["onClick"],tN={class:"number"},nN={key:0,class:"nodata"},oN={class:"choose-list-one"},rN={class:"number"},aN={class:"padding"},lN=["onClick"],sN={class:"number"},iN={key:0,class:"nodata"},cN={class:"popover-choose-one el-popover el-popper"},dN=["onClick"],fN=ut(e.defineComponent({__name:"vehicleFilter",props:{sortKey:{type:String,default:"asc"},vehicleTypeList:{type:Array,default(){return[]}},propsModleList:{type:Array,default(){return[]}},loading:{type:Boolean,default:!1},hereKeyword:{type:String,default:""}},emits:["update:sortKey","filter","eventTracking","clearKeyword"],setup(t,{emit:n}){const{t:o}=dn(),{modelList:r}=_o(),a=t,l=n,s=[{label:o("drivingFirst"),value:"driving",eventtracking:"sort_drivingFirst",type:"custorm"},{label:o("idleFirst"),value:"idle",eventtracking:"sort_idleFirst",type:"custorm"},{label:o("warningFirst"),value:"waring",eventtracking:"sort_warningFirst",type:"custorm"},{label:o("offlineFirst"),value:"offline",eventtracking:"sort_offlineFirst",type:"custorm"},{label:o("batteryOnUseFirst"),value:"battery",eventtracking:"sort_batteryFirst",type:"custorm"},{value:"batterydivided",divided:!0},{label:o("lastUpdated"),value:"last",eventtracking:"sort_lastUpdated",type:"sort"},{label:o("createFirst"),value:"create",eventtracking:"sort_createFirst",type:"sort"},{value:"createdivided",divided:!0},{label:"A--Z",value:"asc",eventtracking:"sort_AZ",type:"sort"},{label:"Z--A",value:"desc",eventtracking:"sort_ZA",type:"sort"}],i=e.ref(!1),c=e.computed(()=>{if(a.sortKey){const P=s.find(O=>O.value===a.sortKey);if(P)return P.label}return"A--Z"});function d(P){P.divided||(l("update:sortKey",P.value),l("eventTracking",P.eventtracking),i.value=!1,u.value=!1)}function f(){l("eventTracking","sort_addClick"),l("clearKeyword")}function h(){l("eventTracking","filter_addClick"),l("clearKeyword")}const m=[{label:o("viewSelectedVehicle"),value:"asset",eventtracking:"viewAssetOnly",type:"view"},{label:o("viewSelectedDevice"),value:"device",eventtracking:"viewDeviceOnly",type:"view"}],u=e.ref(!1);function y(P){P.number&&(P.isChecked=!P.isChecked)}function p(P,O){O.children.every(D=>!D.number)||(O.isChecked=P,O.indeterminate=!1,O.children.map(D=>{D.number&&(D.isChecked=P)}))}function g(P){P.number&&a.vehicleTypeList.map(O=>{if(O.assetType===9999){if(O.children.every(j=>!j.number))return;P.isChecked=!P.isChecked;let D=!0,Q=!1;O.children.map(j=>{j.number&&(j.isChecked?Q=!0:D=!1)}),D?O.isChecked=!0:O.isChecked=!1,!O.isChecked&&Q?O.indeterminate=!0:O.indeterminate=!1}})}const v=e.ref(""),B=()=>{v.value="",w()},A=e.ref([]);e.onMounted(()=>{C()}),e.watch(()=>a.loading,()=>{a.loading||e.nextTick(()=>{C()})});function C(){const P=r.filter(O=>O.number?a.propsModleList.length?a.propsModleList.includes(O.modelId):!0:!1);v.value?A.value=P.filter(O=>(O.modelName+"").replace(/\s+/g," ").trim().toLocaleLowerCase().includes(v.value.trim().replace(/\s+/g," ").toLocaleLowerCase())):A.value=[...P]}const w=Ii(async()=>{C()},400),k=e.computed(()=>{const P=[];let O=!1,D=!1;return a.vehicleTypeList.map(Q=>{Q.assetType===9999?Q.children.map(j=>{j.isChecked&&j.number&&(O=!0,P.push({obj:j,isAssetType:!0}))}):Q.isChecked&&Q.number&&(O=!0,P.push({obj:Q,isAssetType:!0}))}),r.map(Q=>{var j;if(Q.isChecked){if((j=a.propsModleList)!=null&&j.length&&!a.propsModleList.includes(Q.modelId))return;D=!0,P.push({obj:Q,isModel:!0})}}),O&&l("eventTracking","filter_viewAssetOnly"),D&&l("eventTracking","filter_viewDeviceOnly"),l("filter",P),P});function b(P){P.obj.isChecked=!1}const E=e.computed(()=>{let P=0;return k.value.map(O=>{O.isAssetType&&P++}),P}),T=e.computed(()=>{let P=0;return k.value.map(O=>{O.isModel&&P++}),P});return(P,O)=>{const D=e.resolveComponent("anSvgIcon"),Q=zo,j=mr,z=_a,M=nn;return e.openBlock(),e.createElementBlock("div",Rz,[e.createVNode(D,{name:k.value.length||t.hereKeyword?"sorting":"fliter-icon",fontSize:"24",color:k.value.length||t.hereKeyword?"#0BA5EC":"#000"},null,8,["name","color"]),e.createVNode(Q,{placement:"bottom-start",width:240,"show-arrow":!1,trigger:"click","hide-after":0,"popper-class":"popover-choose",visible:i.value,"onUpdate:visible":O[0]||(O[0]=x=>i.value=x),teleported:!1},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"like-select",onClick:f,style:{"background-color":"rgba(0, 0, 0, 0.04)"}},[e.createVNode(vf,{name:c.value},null,8,["name"]),e.createVNode(D,{name:"choose-arrow-down",fontSize:"24",color:"#9A9A9A"})])]),default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,x=>e.createElementVNode("div",{class:e.normalizeClass(["choose-list-one",{divided:x.divided,active:t.sortKey&&t.sortKey===x.value}]),key:x.label,onClick:N=>d(x)},[x.divided?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(D,{name:"filterchecked",fontSize:"24",color:"rgba(0, 0, 0, 1)"}),e.createElementVNode("span",null,e.toDisplayString(x.label),1)],64))],10,Yz)),64))]),_:1},8,["visible"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value.slice(0,2),(x,N)=>{var H,q,ne,W;return e.openBlock(),e.createElementBlock("div",{class:"choose-filter-one",key:N},[e.createVNode(vf,{name:((H=x.obj)==null?void 0:H.modelName)||(((q=x.obj)==null?void 0:q.assetType)>1e5?(ne=x.obj)==null?void 0:ne.name:e.unref(o)((W=x.obj)==null?void 0:W.type))},null,8,["name"]),e.createVNode(D,{fontSize:24,name:"new-close-icon",color:"rgba(154, 154, 154, 1)",onClick:le=>b(x)},null,8,["onClick"])])}),128)),k.value.length>=3?(e.openBlock(),e.createBlock(Q,{key:0,placement:"bottom-start",width:122,"show-arrow":!1,trigger:"click","hide-after":0,"popper-class":"popover-choose popover-choose-more popover-choose-customize",teleported:!1},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(D,{name:"more",fontSize:"32",color:"#000",class:"filter-add"})])]),default:e.withCtx(()=>[e.createElementVNode("div",Fz,[e.createVNode(j,{"max-height":"300px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value.slice(2),(x,N)=>{var H,q,ne,W;return e.openBlock(),e.createElementBlock("div",{class:"choose-filter-one",key:N},[e.createVNode(vf,{name:((H=x.obj)==null?void 0:H.modelName)||(((q=x.obj)==null?void 0:q.assetType)>1e5?(ne=x.obj)==null?void 0:ne.name:e.unref(o)((W=x.obj)==null?void 0:W.type))},null,8,["name"]),e.createVNode(D,{fontSize:24,name:"new-close-icon",color:"rgba(154, 154, 154, 1)",onClick:le=>b(x)},null,8,["onClick"])])}),128))]),_:1})])]),_:1})):e.createCommentVNode("",!0),e.createVNode(Q,{placement:"bottom-start",width:240,"show-arrow":!1,trigger:"click","hide-after":0,"popper-class":"popover-choose-filter",visible:u.value,"onUpdate:visible":O[6]||(O[6]=x=>u.value=x),teleported:!1},{reference:e.withCtx(()=>[e.createElementVNode("div",{onClick:h},[e.createVNode(D,{name:"filter-add",fontSize:"32",color:"#9A9A9A",class:"filter-add"})])]),default:e.withCtx(()=>[e.createElementVNode("div",Uz,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,x=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:x.label},[x.value==="asset"?(e.openBlock(),e.createBlock(Q,{key:0,placement:"right-start",width:230,"show-arrow":!1,trigger:"hover","hide-after":0,"popper-class":"popover-choose popover-choose-inFilter",teleported:!1},{reference:e.withCtx(()=>[e.createElementVNode("div",Jz,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(x.label),1),e.createElementVNode("span",Kz," ("+e.toDisplayString(E.value)+")",1)]),e.createVNode(D,{name:"arrow-right-icon",class:"arrow-right-icon"})])]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.vehicleTypeList,N=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:N.id},[N.assetType!==9999?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["choose-list-one",{"disable-check":!N.number}]),onClick:e.withModifiers(H=>y(N),["stop"])},[e.createVNode(z,{class:"anytrek-checkbox",modelValue:N.isChecked,"onUpdate:modelValue":H=>N.isChecked=H,onClick:O[1]||(O[1]=e.withModifiers(()=>{},["stop"])),disabled:!N.number},null,8,["modelValue","onUpdate:modelValue","disabled"]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(o)(N.type)),1),e.createElementVNode("span",qz," ("+e.toDisplayString(N.number)+")",1)])],10,Wz)),[[e.vShow,N.number]]):(e.openBlock(),e.createBlock(Q,{key:1,placement:"right-start",width:230,"show-arrow":!1,trigger:"hover","hide-after":0,"popper-class":"popover-choose popover-choose-inFilter popover-choose-customize",teleported:!1},{reference:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["choose-list-one",{"disable-check":N.children.every(H=>!H.number)}]),onClick:e.withModifiers(H=>p(!N.isChecked,N),["stop"])},[e.createVNode(z,{class:"anytrek-checkbox",modelValue:N.isChecked,"onUpdate:modelValue":H=>N.isChecked=H,onClick:O[2]||(O[2]=e.withModifiers(()=>{},["stop"])),onChange:H=>p(H,N),indeterminate:N.indeterminate,disabled:N.children.every(H=>!H.number)},null,8,["modelValue","onUpdate:modelValue","onChange","indeterminate","disabled"]),e.createElementVNode("span",null,e.toDisplayString(N.name),1),e.createVNode(D,{name:"arrow-right-icon",class:"arrow-right-icon"})],10,_z),[[e.vShow,N.children.some(H=>H.number)]])]),default:e.withCtx(()=>[e.createElementVNode("div",$z,[e.createVNode(j,{"max-height":"500px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.children,H=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["choose-list-one finall-one",{"disable-check":!H.number}]),key:H.id,onClick:e.withModifiers(q=>g(H),["stop"])},[e.createVNode(D,{name:"vehicle-"+H.icons[0],color:"#000000",class:"icon"},null,8,["name"]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(H.name),1),e.createElementVNode("span",tN," ("+e.toDisplayString(H.number)+")",1)]),e.createVNode(z,{class:"anytrek-checkbox",modelValue:H.isChecked,"onUpdate:modelValue":q=>H.isChecked=q,onClick:O[3]||(O[3]=e.withModifiers(()=>{},["stop"])),disabled:!H.number},null,8,["modelValue","onUpdate:modelValue","disabled"])],10,eN)),[[e.vShow,H.number]])),128))]),_:2},1024)])]),_:2},1024))],64))),128)),t.vehicleTypeList.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",nN,e.toDisplayString(e.unref(o)("noData")),1))]),_:2},1024)):(e.openBlock(),e.createBlock(Q,{key:1,placement:"right-start",width:261,"show-arrow":!1,trigger:"hover","hide-after":0,"popper-class":"popover-choose popover-choose-inFilter popover-choose-customize",teleported:!1},{reference:e.withCtx(()=>[e.createElementVNode("div",oN,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(x.label),1),e.createElementVNode("span",rN," ("+e.toDisplayString(T.value)+")",1)]),e.createVNode(D,{name:"arrow-right-icon",class:"arrow-right-icon"})])]),default:e.withCtx(()=>[e.createElementVNode("div",aN,[e.createVNode(j,{"max-height":"500px"},{default:e.withCtx(()=>[e.createVNode(M,{modelValue:v.value,"onUpdate:modelValue":O[4]||(O[4]=N=>v.value=N),placeholder:e.unref(o)("searchDevice"),class:"anytrek-vehicle-auto-search","prefix-icon":ms,onInput:e.unref(w),size:"large",ref_for:!0,ref:"searchInput"},{suffix:e.withCtx(()=>[v.value?(e.openBlock(),e.createBlock(us,{key:0,onClick:B})):e.createCommentVNode("",!0)]),_:1},8,["modelValue","placeholder","onInput"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,N=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["choose-list-one",{"disable-check":!N.number}]),key:N.modelId,onClick:e.withModifiers(H=>y(N),["stop"])},[e.createVNode(z,{class:"anytrek-checkbox",modelValue:N.isChecked,"onUpdate:modelValue":H=>N.isChecked=H,onClick:O[5]||(O[5]=e.withModifiers(()=>{},["stop"])),disabled:!N.number},null,8,["modelValue","onUpdate:modelValue","disabled"]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(N.modelName),1),e.createElementVNode("span",sN," ("+e.toDisplayString(N.number)+")",1)])],10,lN)),[[e.vShow,N.number]])),128)),A.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",iN,e.toDisplayString(e.unref(o)("noData")),1))]),_:2},1024)])]),_:2},1024))],64))),64))]),e.createElementVNode("div",cN,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,x=>e.createElementVNode("div",{class:e.normalizeClass(["choose-list-one",{divided:x.divided,active:t.sortKey&&t.sortKey===x.value}]),key:x.label,onClick:N=>d(x)},[x.divided?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(D,{name:"filterchecked",fontSize:"24",color:"rgba(0, 0, 0, 1)"}),e.createElementVNode("span",null,e.toDisplayString(x.label),1)],64))],10,dN)),64))])]),_:1},8,["visible"])])}}}),[["__scopeId","data-v-f1c90108"]]),uN={class:"vehicle-select-body"},mN={class:"searchTip-list"},pN=["onClick"],hN={class:"vehicle-select-search-body"},gN={class:"vehicle-select-body-content"},AN={class:"over-ellipsis"},vN={key:1,class:"loading"},yN=["onClick"],wN={class:"over-ellipsis"},bN={key:1,style:{"white-space":"nowrap"}},CN={key:1,class:"tag-list"},BN={style:{position:"relative"}},kN=`
|
|
232
|
+
}`}],_o=XE("message",()=>{const t=e.ref(JSON.parse(localStorage.getItem("customerHabit")||'{"showDevice":true}')||{showDevice:!0});function n(s){t.value=s}const o=e.ref(ZE.filter(s=>s.isParts===0));function r(s){o.value=s}const a={};function l(s,i){a[s]=i}return{customerHabit:t,changeHabit:n,modelList:o,changeModelList:r,addressJson:a,setAddressJson:l}});function Ii(t,n=500,o){let r=0;return function(...a){r&&clearTimeout(r),r=setTimeout(()=>{t.apply(this,a),r=0},n)}}function ba(t){if(!t&&typeof t!="object")throw new Error("deepClone error arguments");const n=t.constructor===Array?[]:{};return Object.keys(t).forEach(o=>{t[o]&&typeof t[o]=="object"?n[o]=ba(t[o]):n[o]=t[o]}),n}function p2(t,n,o="name"){function r(l){let s=(l+"").trim().toLowerCase(),i=s.charAt(0),c;return/[a-z]/.test(i)?c="letter":/[0-9]/.test(i)?c="number":/[\u4e00-\u9fa5]/.test(i)?(c="chinese",s=l.trim()):c="symbol",{category:c,name:s}}const a=n==="ascending"?{letter:1,chinese:2,number:3,symbol:4}:{number:1,chinese:2,letter:3,symbol:4};return t.sort((l,s)=>{let{category:i,name:c}=r(l[o]),{category:d,name:f}=r(s[o]);return i!==d?a[i]-a[d]:n==="ascending"?c.localeCompare(f):f.localeCompare(c)}),t}function RE(t,n=!1){const o=window.localStorage.getItem(t);return n&&o?JSON.parse(o):o}const h2=[37,44,54];function g2(t,n,o,r,a,l,s,i){for(const c of r){if(o.has(c.id))continue;const d=c.content.vehicle;d&&d.map(m=>t.add(m));const f=c.content.device;f&&f.map(m=>{var y;n.add(m);const u=(y=l.find(p=>p.deviceId===m))==null?void 0:y.vehicleId;u&&t.add(u)});const h=c.content.landmark;if(h!=null&&h.length&&(c.id===150&&console.log(h),h.map(m=>{s.filter(y=>y.landmarkId===m).map(y=>{var v;n.add(y.deviceId);const p=i.find(B=>y.deviceId===B.deviceId);p?p.landmarkIds.push(y.landmarkId):i.push({deviceId:y.deviceId,landmarkIds:[y.landmarkId]});const g=(v=l.find(B=>B.deviceId===y.deviceId))==null?void 0:v.vehicleId;g&&t.add(g)})})),o.add(c.id),c.content.tag){const m=[];c.content.tag.map(u=>{const y=a.find(p=>p.id===u);y&&m.push(y)}),g2(t,n,o,m,a,l,s,i)}}}function A2({tag:t,allTagList:n}){var o,r;(r=(o=t==null?void 0:t.content)==null?void 0:o.tag)!=null&&r.length&&(t.isClose=!1,t.content.tag.map(a=>{const l=n.find(s=>s.id===a);l&&(l.parentList||(l.parentList=[]),l.parentList.some(s=>s===t.id)||l.parentList.push(t.id),t.children||(t.children=[]),t.children.some(s=>s.id===l.id)||t.children.push(l),A2({tag:l,allTagList:n}))}))}function v2(t,n,o,r){var a;t.level=n,r.maxLevel=r.maxLevel<n?n:r.maxLevel,o!=null&&o.id?(t.parentId=o.id,t.itemId=(o.itemId?o.itemId+"_":"")+t.id):t.itemId=t.id,(a=t.children)!=null&&a.length&&t.children.map(l=>{v2(l,n+1,t,r)})}const $o=t=>{if(!t)return"-";const o=new Date().getTime()-t;if(o<0)return"0s";const r=o/1e3,a=o/1e3/60,l=o/1e3/60/60,s=o/1e3/60/60/24;return r<60?`${Math.floor(r)}s ago`:a<60?`${Math.floor(a)}m ago`:l<24?`${Math.floor(l)}h ago`:s<=30?`${Math.floor(s)}d ago`:">30d"},y2=t=>{const n=t.locationReportTime?new Date(t.locationReportTime).getTime():0;let o=0;if(t.modelId&&t.modelId===62&&t.conStatus===!1)o=0;else if(!t.userPackageId)o=-2;else if(!n)o=-1;else{const r=new Date(n).getTime(),a=new Date().getTime()/1e3-r/1e3;a<3600*24&&t.charging===1?o=1:a<3600*24&&t.charging===0?o=2:o=0}return o};function YE(t){var C;const{tagList:n=[],deviceStatusList:o=[],landmarkList:r=[],modelList:a=[],vehicleType:l=[],propsModleList:s=[],hereVehicleId:i=0,inMaint:c=!1,sensorTypeList:d=[],limitList:f=[]}=t;let{deviceList:h=[],vehicleList:m=[],landmarkDeviceList:u=[],vehicleDeviceList:y=[],hereDeviceId:p=0,useCompleteVehicleScope:g=!1}=t;if(i&&!p){const w=(C=y.find(k=>k.vehicleId===i))==null?void 0:C.deviceId;w&&(p=w)}h=h.filter(w=>{var k;if(g)return!0;if(w.content.deviceStatus!==2&&!c)return!1;if(!s.length||p&&p===w.id)return!0;if(s.includes(((k=w.content)==null?void 0:k.modelId)||w.modelId)){if(f.length){const b=f.find(E=>{var T;return E.modelId&&E.modelId===(((T=w.content)==null?void 0:T.modelId)||w.modelId)});if(b&&b.regex&&b.key){const E=new RegExp(b.regex);if(E.test(w[b.key]||(w.content||{})[b.key]))return!0;const P=o.find(O=>w.userPackageId===O.userPackageId);return!!(P&&E.test(P[b.key]||(P.content||{})[b.key]))}return!0}return!0}return!1}),m=m.filter(w=>{var b;if(g)return!0;const k=(b=y.find(E=>E.vehicleId===w.id))==null?void 0:b.deviceId;return d.length&&!d.some(E=>w.sensorConfig&&w.sensorConfig[E])?!!(p&&p===k):k&&k>0&&h.find(E=>E.id===k)}),u=u.filter(w=>{var E,T;const k=(E=h.find(P=>P.id===w.deviceId))==null?void 0:E.id,b=(T=r.find(P=>P.id===w.landmarkId))==null?void 0:T.id;return k&&b}),y=y.filter(w=>{var E,T;const k=(E=h.find(P=>P.id===w.deviceId))==null?void 0:E.id,b=(T=m.find(P=>P.id===w.vehicleId))==null?void 0:T.id;return k&&b}),r.map(w=>{w.is="landmark"}),n.map(w=>{w.is="tag";const k=new Set,b=new Set,E=[];g2(k,b,new Set,[w],n,y,u,E),w.deviceFromLandmark=[...E],w.content.vehicle=[...k],w.content.device=[...b]});const v=[];h=h.map(w=>{var P;w={...w,...w.content||{},detailAddress:""};const k=o.find(O=>w.userPackageId===O.userPackageId);k&&(w={...w,...k,...k.content||{},deviceStatusOne:k,detailAddress:"",id:w.id},w.triggerType=w.doorType==="Open"?"DoorOpen":w.doorType==="Close"?"DoorClose":w.triggerType,w.speed>20&&(w.event=1),w.speed<20&&w.event===1&&w.heading===0&&(w.event=0));const b=[];n.map(O=>{var Q;(((Q=O.content)==null?void 0:Q.device)||[]).some(j=>j===w.id)&&b.push(O)}),w.tagList=b;const E=[];if(u.map(O=>{if(O.deviceId===w.id){const D=r.find(Q=>Q.id===O.landmarkId);D&&!E.some(Q=>Q.id===D.id)&&E.push(D)}}),w.landmarkList=E,!((P=y.find(O=>O.deviceId===w.id))==null?void 0:P.vehicleId)&&!g){if(w.deviceStatusOne){w.trackerStatus=y2(w);let O=0;if(h2.includes(w.modelId)?w.temperatureTime&&w.locationTime?w.temperatureTime>w.locationTime?O=w.temperatureTime:O=w.locationTime:w.temperatureTime?O=w.temperatureTime:O=w.locationTime:O=w.locationTime,O){const D=new Date(O).getTime(),Q=new Date().getTime();w.timeDiff=$o(D),D?w.idleDiff=Q-D:w.idleDiff=0}else w.timeDiff=$o(O),w.idleDiff=0}v.push({...w,name:(w.userPackageId+"").slice(-5),isDevice:1,deviceOne:{...w},content:{...w.content}})}return delete w.content,w}),m.map(w=>{var E;w.isVehicle=!0;const k=(E=y.find(T=>T.vehicleId===w.id))==null?void 0:E.deviceId;if(k){const T=h.find(P=>P.id===k);if(T){if(w.deviceOne=T,T.deviceStatusOne){T.trackerStatus=y2(T);let O=0;if(h2.includes(T.modelId)?T.temperatureTime&&T.locationTime?T.temperatureTime>T.locationTime?O=T.temperatureTime:O=T.locationTime:T.temperatureTime?O=T.temperatureTime:O=T.locationTime:O=T.locationTime,O){const D=new Date(O).getTime(),Q=new Date().getTime();T.timeDiff=$o(D),D?T.idleDiff=Q-D:T.idleDiff=0}else T.timeDiff=$o(O),T.idleDiff=0}const P=[];u.map(O=>{if(O.deviceId===T.id){const D=r.find(Q=>Q.id===O.landmarkId);D&&!P.some(Q=>Q.id===D.id)&&P.push(D)}}),w.landmarkList=P}}l.map(T=>{var P,O,D;(((P=w.content)==null?void 0:P.assetType)===((O=T.content)==null?void 0:O.assetType)||w.assetType===((D=T.content)==null?void 0:D.assetType))&&(w.vehicleType=T)});const b=[];n.map(T=>{var O,D;((((O=T.content)==null?void 0:O.vehicle)||[]).some(Q=>Q===w.id)||k&&(((D=T.content)==null?void 0:D.device)||[]).some(j=>j===k))&&b.push(T)}),w.tagList=b});let B=[];n.map(w=>{let k=!1;k=n.some(b=>{var E,T;return w.id===b.id?!1:!!((T=(E=b.content)==null?void 0:E.tag)!=null&&T.length&&b.content.tag.some(P=>P===w.id))}),k||B.push(w)}),B.map(w=>{A2({tag:w,allTagList:n})}),B=JSON.parse(JSON.stringify(B));let A={maxLevel:0};return B.map(w=>{v2(w,0,{},A)}),a.map(w=>{let k=0;d.length||v.map(b=>{b.modelId===w.modelId&&k++}),m.map(b=>{var E;((E=b.deviceOne)==null?void 0:E.modelId)===w.modelId&&k++}),w.number=k}),l.map(w=>{let k=0;m.map(E=>{var T,P,O;(((T=E.content)==null?void 0:T.assetType)===((P=w.content)==null?void 0:P.assetType)||E.assetType===((O=w.content)==null?void 0:O.assetType))&&k++});const b=l.find(E=>w.content.parentType===E.content.assetType);b&&(b.number||(b.number=0),b.number+=k),w.number||(w.number=0),w.number+=k}),{onlyDeviceList:v,tagList:n,vehicleList:m,deviceList:h,levelTagList:B,landmarkList:r,modelList:a,vehicleType:l,maxLevel:A.maxLevel}}function FE(t,n={height:50,quality:.1},o){const r=new FileReader;r.onload=function(a){const{height:l,quality:s}=n,i=new Image;i.onload=function(){const c=i.width/i.height,d=l,f=l*c,h=document.createElement("canvas"),m=h.getContext("2d");h.width=f,h.height=d,m.drawImage(i,0,0,f,d),h.toBlob(u=>{const y=new File([u],t.name,{type:"image/png",lastModified:Date.now()});o(y)},"image/png",s)},i.src=a.target.result},r.readAsDataURL(t)}function w2(t,n){let o={};for(const r in t){if(r==="id")continue;const a=t[r],l=n[r];if(typeof a=="object"&&a!==null&&typeof l=="object"&&l!==null){const s=w2(a,l);Object.keys(s).length>0&&(o[r]=n[r])}else a!==l&&(o[r]=l)}for(const r in n)!(r in t)&&r!=="id"&&(o[r]=n[r]);return o}K.extend(Fo),K.extend(Ko),K.extend(Wo);const er=_o(hf),UE=function(){const t="2.7.0",n={versionNumber:t,version:`v${t}`,antRouter:"",mapType:"GoogleMap",defaultMapLayer:"road",dateTimeFormat:"YYYY-MM-DD HH",language:"en",languages:[{key:"en",value:"English"},{key:"fr",value:"Français"},{key:"es",value:"Español"},{key:"zh",value:"简体中文"}],distanceUnit:0,distanceUnits:["mi","km"],speedUnit:0,speedUnits:["mph","km/h"],tempUnit:0,tempUnits:["℉","℃"],orgType:{partner:4},orgTypes:{4:{value:4,label:"Partner"},5:{value:5,label:"Customer"},6:{value:6,label:"Owner"},1:{value:1,label:"Common"}},alarmTypes:[{value:1,label:"Low Battery",compare:[{v:1,l:"<"}]},{value:3,label:"ACC",compare:[{v:0,l:"="}]},{value:4,label:"Geofence",compare:[{v:6,l:"Entry"},{v:7,l:"Exit"}]},{value:5,label:"Speed",compare:[{v:2,l:">"}]},{value:6,label:"Temperature",compare:[{v:2,l:">"},{v:1,l:"<"}]},{value:8,label:"Idle"},{value:9,label:"Maintenance"},{value:11,label:"Offline"}],zoom:2,center:{lat:39.7668,lng:-101.4257},mergeMarker:!0,timezone:"-0700",localTimezone:!0,showDevice:!0,showUpdatedMessage:!0,markerType:"arrow",historyTimePicker:[2,6,12,"day","week","month"],reportTimePicker:["month","quarter","year"],trailerType:["dry van","reefer","chassis","flatbed","tanker","lowboy","step"],specialChars:["<",">","?",",","/",":",'"',";","'","~","`","!","@","#","$","%","^","&","*","(",")","_","+","-","=","{","}","|","[","]","\\"]};window.trkConfig=n};window.trkConfig||UE();let gf=RE("customerHabit");try{const t=JSON.parse(gf)||{},{mapType:n,defaultMapLayer:o,distanceUnit:r,speedUnit:a,tempUnit:l,mergeMarker:s,showDevice:i,showUpdatedMessage:c,dateTimeFormat:d}=window.trkConfig,h=Object.assign({mapType:n,defaultMapLayer:o,distanceUnit:r,speedUnit:a,tempUnit:l,mergeMarker:s,showDevice:i,showUpdatedMessage:c,dateTimeFormat:d},t);h.language==="zh"&&(h.language="en"),gf=h,er.changeHabit(h)}catch{gf={},er.changeHabit({})}function xi({year:t=!0,month:n=!0,day:o=!0,time:r=!0,second:a=!1,blank:l=!0}){const s=er.customerHabit.dateTimeFormat;if(!s)return"";let i=s,c="";const d=s.match(/^(.*\S)\s+(.+)$/);if(d){const b=d[1],E=d[2];/[Hhms:APap]/.test(E)?(i=b,c=E):(i=s,c="")}const f=/(?:^|[^A-Za-z])h{1,2}(?:[^A-Za-z]|$)/.test(c),h=/(YYYY|YY|MMMM|MMM|MM|M|DD|D)/gi;function m(b){const E=[];let T=0,P;for(;(P=h.exec(b))!==null;)P.index>T&&E.push({type:"sep",value:b.slice(T,P.index)}),E.push({type:"token",value:P[0]}),T=h.lastIndex;return T<b.length&&E.push({type:"sep",value:b.slice(T)}),E}function u(b){return/[,\.\-\/:;]/.test(b)}function y(b,E){const T=E-1>=0?b[E-1]:null,P=E+1<b.length?b[E+1]:null;return T&&T.type==="sep"&&u(T.value)?E-1:P&&P.type==="sep"&&u(P.value)?E+1:T&&T.type==="sep"&&T.value.length===1?E-1:P&&P.type==="sep"&&P.value.length===1||P&&P.type==="sep"?E+1:T&&T.type==="sep"?E-1:null}function p(b,E){let T=0;for(;T<b.length;){const O=b[T];if(O.type==="token"&&E(O.value)){const D=y(b,T);if(D!==null){const Q=Math.min(D,T),j=Math.abs(D-T)+1;b.splice(Q,j),T=Math.max(0,Q-1)}else b.splice(T,1),T=Math.max(0,T-1)}else T++}for(;b.length&&b[0].type==="sep";)b.shift();for(;b.length&&b[b.length-1].type==="sep";)b.pop();const P=[];for(let O=0;O<b.length;O++){const D=b[O];P.length&&D.type==="sep"&&P[P.length-1].type==="sep"?P[P.length-1].value+=D.value:P.push({...D})}for(let O=0;O<P.length;O++)if(P[O].type==="sep"){const D=P[O].value,Q=/,/.test(D),j=/,\s+/.test(D);let z=D.replace(/\s+/g," ");Q?z=j?z.replace(/,*\s*/,", "):z.replace(/,*\s*/,","):z=z.trim()===""?" ":z.replace(/\s+/g," "),P[O].value=z}for(;P.length&&P[0].type==="sep"&&P[0].value.trim()==="";)P.shift();for(;P.length&&P[P.length-1].type==="sep"&&P[P.length-1].value.trim()==="";)P.pop();return P}const g=b=>{const E=String(b).toUpperCase();return E==="YYYY"||E==="YY"},v=b=>{const E=String(b).toUpperCase();return["MMMM","MMM","MM","M"].includes(E)},B=b=>{const E=String(b).toUpperCase();return E==="DD"||E==="D"};let A=m(i);t||(A=p(A,g)),n||(A=p(A,v)),o||(A=p(A,B));let C="";for(let b=0;b<A.length;b++){const E=A[b];if(E.type==="sep")C+=E.value;else{C+=E.value;const T=A[b+1];T&&T.type==="token"&&(C+=" ")}}C=C.replace(/ {2,}/g," ").trim();let w="";r&&(c?(/:/.test(c)?(w=c,a?/ss/.test(w)||(w=w+":ss"):w=w.replace(/:ss\b/,"")):w=c+":mm"+(a?":ss":""),f&&!/[Aa]/.test(w)&&(w=w+" A")):w="HH:mm"+(a?":ss":""));let k=C;return r&&w&&(k=k?`${k}${l?" ":""}${w}`:w),k.trim()}function Li(t,n=!1){if(!t)return"-";let o=K.tz.guess();!er.customerHabit.localTimezone&&er.customerHabit.timeZone&&(o=er.customerHabit.timeZone);const r=xi({year:!0,month:!0,day:!0,time:!0,second:!1,blank:!0}),a=K.utc(t).tz(o).format(r);return n?a+"("+o+")":a}function JE(t){return Math.ceil(new Date(t).getTime())}const b2=t=>{const n=K();return K(t).diff(n,"days")},Af=t=>Li(t);function Zr(){return er.customerHabit.textOverflowStyle||"middle"}function KE(t,n=!1){if(!t)return"-";let o=K.tz.guess();!er.customerHabit.localTimezone&&er.customerHabit.timeZone&&(o=er.customerHabit.timeZone);const r=xi({year:!0,month:!0,day:!0,time:!0,second:!0,blank:!0}),a=K.utc(t).tz(o).format(r);return n?a+"("+o+")":a}const Ca=_o(hf),C2=(t=0,n=!0,o=0)=>{const r=!Ca.customerHabit||Ca.customerHabit.distanceUnit===0?"mi":"km",a=r==="mi"?(t/1.609344/1e3).toFixed(o):(t/1e3).toFixed(o);return n?a+r:parseFloat(a)},WE=(t=0)=>!Ca.customerHabit||Ca.customerHabit.distanceUnit===0?Math.round(t*1.609344*1e3):Math.round(t*1e3),qE=(t,n=!0,o=1)=>{if(typeof t!="number"||Number.isNaN(t)||t>=887&&t<=889||t>=475&&t<=476)return"-";const r=!Ca.customerHabit||Ca.customerHabit.tempUnit===0?"℉":"℃",a=Number.isInteger(t*9/5+32)?t*9/5+32:(t*9/5+32).toFixed(o),l=r==="℃"?Number(t).toFixed(1):a;return n?l+r:l},_E=()=>Ca.customerHabit.distanceUnit===0?"mi":"km",$E=t=>{const n=t.locationReportTime?new Date(t.locationReportTime).getTime():0;let o=0;if(t.modelId&&t.modelId===62&&t.conStatus===!1)o=0;else if(!t.userPackageId)o=-2;else if(!n)o=-1;else{const r=new Date(n).getTime(),a=new Date().getTime()/1e3-r/1e3;a<3600*24&&t.charging===1?o=1:a<3600*24&&t.charging===0?o=2:o=0}return o},ez=t=>t.trackerStatus===0||!t.trackerStatus?"Offline":t.trackerStatus<0?"-":t.event===1?"Driving":t.acc===0&&t.modelId&&(t.modelId===8||t.modelId===9||t.modelId===62)?"Engine Off":"Idle",B2=t=>{let n="",o;return t.battery>80?o=100:t.battery>60?o=80:t.battery>40?o=60:t.battery>20?o=40:o=20,!t.trackerStatus||t.trackerStatus<=0?n="offline":t.trackerStatus===1?n="charge":t.trackerStatus===2&&(n="nocharge"),`battery-${n}${o}`},k2=t=>{if(!t)return"-";const o=JE(new Date)-t;if(o<0)return"0s";const r=o/1e3,a=o/1e3/60,l=o/1e3/60/60,s=o/1e3/60/60/24;return r<60?`${Math.floor(r)}s ago`:a<60?`${Math.floor(a)}m ago`:l<24?`${Math.floor(l)}h ago`:s<=30?`${Math.floor(s)}d ago`:">30d"},tz={},nz={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function oz(t,n){return e.openBlock(),e.createElementBlock("svg",nz,[...n[0]||(n[0]=[e.createElementVNode("rect",{x:"2.68359",y:"2.68359",width:"26.6328",height:"26.6328",rx:"13.3164",stroke:"#12B76A","stroke-width":"1.5"},null,-1),e.createElementVNode("path",{d:"M9.45117 15.5081L12.8308 18.8879C13.3547 19.4118 13.6166 19.6737 13.9187 19.7719C14.1844 19.8582 14.4706 19.8582 14.7363 19.7719C15.0383 19.6737 15.3003 19.4118 15.8241 18.8879L22.5476 12.1641",stroke:"#12B76A","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])}const P2=ut(tz,[["render",oz]]),rz={},az={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function lz(t,n){return e.openBlock(),e.createElementBlock("svg",az,[...n[0]||(n[0]=[e.createElementVNode("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z",fill:"#F79009"},null,-1)])])}const T2=ut(rz,[["render",lz]]),sz={},iz={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function cz(t,n){return e.openBlock(),e.createElementBlock("svg",iz,[...n[0]||(n[0]=[e.createElementVNode("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z",fill:"#0086C9"},null,-1)])])}const O2=ut(sz,[["render",cz]]),dz={},fz={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uz(t,n){return e.openBlock(),e.createElementBlock("svg",fz,[...n[0]||(n[0]=[e.createElementVNode("rect",{x:"2.68359",y:"2.68359",width:"26.6328",height:"26.6328",rx:"13.3164",stroke:"#F32C1D","stroke-width":"1.5"},null,-1),e.createElementVNode("path",{d:"M20.9693 20.9703L11.0293 11.0303M11.0293 20.9703L20.9693 11.0303",stroke:"#F32C1D","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])}const D2=ut(dz,[["render",uz]]);function fs(){function t(l){let s="info",i="",c={},d={success:P2,warning:T2,info:O2,error:D2}[s||"info"];typeof l=="string"?i=l:(s=l.type||"info",i=l.message,c=l.config||{},d={success:P2,warning:T2,info:O2,error:D2}[s||"info"]);const f={message:i,type:s||"info",icon:d,customClass:s||"info",...c};ZB(f)}function n(l){t({message:l,type:"error"})}function o(l){t({message:l,type:"success"})}function r(l){t({message:l,type:"warning"})}function a(l){t({message:l,type:"info"})}return{open:t,info:a,warning:r,error:n,success:o}}const mz={class:"name_address"},pz={class:"name"},hz={key:0,class:"over-ellipsis"},gz={key:1,class:"over-ellipsis"},Az={class:"time-txt"},vz={class:"time-txt"},yz={class:"status"},wz={class:"top"},bz={class:"vehicle-status"},Cz={class:"driving-time"},Bz=["nowActive"],kz={key:1},Pz={key:2},Tz={key:0},Oz={key:1},Dz={class:"flex-center"},Ez={class:"flex-center"},zz={class:"bottom"},Nz={class:"image-slot-error"},Mz={class:"image-slot-error image-slot-placeholder"},Hz={key:0,class:"googleMap"},Iz="AIzaSyCn6dlrESg1etQMDgkw4rZk1lzMc-L8feo",xz=ut(e.defineComponent({__name:"chooseOne",props:{message:{type:Object,default(){return{}}},assetTypesMap:{type:Object,default(){return{}}},haveBorder:{type:Boolean,default:!0},currentItem:{type:Object,default(){return{}}},activeOne:{type:Number,default:0},activeParentId:{type:Number,default:0},descVisible:{type:Boolean,default:!0},vehicleMessageArray:{type:Object,default(){return[]}},isArray:{type:Boolean,default:!0},nowActive:{type:Boolean,default:!1},clickToMdvr:{type:Function}},emits:["mouseover","mouseout","click","descClick"],setup(t,{emit:n}){const o=_o(),{customerHabit:r}=Hi(o),a=fs(),{addressJson:l,setAddressJson:s}=o,{t:i}=dn(),c=t,d=n,f=e.computed(()=>c.message.deviceOne||{}),h=e.computed(()=>c.isArray?c.vehicleMessageArray.some(le=>le.id===c.message.id):c.currentItem.id===c.message.id),m=e.computed(()=>{const le=c.message.parentId;let ae=!1;const Ce=[];return le&&(c.message.tagList||[]).filter(Ee=>Ee.id===le).map(Ee=>{Ee.deviceFromLandmark.filter(X=>X.deviceId===f.value.id?(Ce.push(...X.landmarkIds||[]),!0):!1).length&&(ae=!0)}),{inL:ae,hereLandmarkName:[...new Set(Ce)].map(Ee=>{var ie;return((ie=(c.message.landmarkList||[]).find(X=>X.id===Ee))==null?void 0:ie.name)||""}).join(";")}}),u=(le,ae,Ce)=>{if(Ce===1)return"monitorIconCpu";if(!le&&!ae)return"Vector";if(ae)return"vehicle-"+ae;const{icons:Ee}=c.assetTypesMap[le];return Ee?"vehicle-"+Ee[0]:""},y=le=>le.trackerStatus<=0||!le.trackerStatus?"offline-li":le.battery&&le.battery<20||le.battery===0?"alarming-li":le.trackerStatus===1?"charging-li":(le.trackerStatus===2,"normal-li"),p=le=>{if(le.signals||le.signals===0)return`signalnew${Math.ceil(le.signals/25)}`};function g(le){return le!=null&&le>0}const v=e.computed(()=>f.value.modelId===37||f.value.modelId===44||f.value.modelId===54&&f.value.fwVer>=11309),B=e.computed(()=>f.value.modelId===54?f.value.hwVer>=11200:!1),A=e.computed(()=>f.value.modelId===54&&f.value.thumb||f.value.modelId===62),C=le=>le.trackerStatus===0||!le.trackerStatus?{class:"Offline",label:i("offline")}:le.trackerStatus<0?{class:"Offline",label:i("offline")}:le.modelId&&le.modelId===62&&le.acc===0?{class:"Idle",label:i("idle")}:le.event===1?{class:"driving",label:i("driving")}:le.acc===0&&le.modelId&&(le.modelId===8||le.modelId===9)?{class:"Engine Off",label:i("engineOff")}:{class:"Idle",label:i("idle")},w=e.ref(!1),k=le=>{const ae=c.message.name+""||"-";le.target.innerText!==ae?w.value=!0:w.value=!1},b=()=>{w.value=!1},E=e.ref(!1);function T(){D()}const P=e.ref(!1),O=e.ref(!0);function D(){var Ee;if(!f.value.lat||!(f.value.lon||f.value.lng))return;P.value=!0;const le=`lat${f.value.lat}lng${f.value.lon||f.value.lng}`;if(l[le]){f.value.detailAddress=l[le];return}if(O.value=!0,!((Ee=window.google)!=null&&Ee.maps)){E.value=!0;return}const ae=new window.google.maps.Geocoder,Ce=new window.google.maps.LatLng(f.value.lat,f.value.lon||f.value.lng);ae.geocode({location:Ce},ie=>{if(ie&&ie.length!==0){O.value=!1;const X=ie.filter(ue=>ue.types[0]!=="plus_code");f.value.detailAddress=X[0].formatted_address,s(le,f.value.detailAddress)}else O.value=!1},()=>{O.value=!1})}const Q=e.ref("hover");function j(){!f.value.lat||!(f.value.lon||f.value.lng)||f.value.detailAddress&&(Q.value="contextmenu",setTimeout(()=>{P.value=!0},61))}let z=0;function M(){Q.value="hover",z=setTimeout(()=>{P.value=!1},61)}function x(){Q.value==="hover"&&z&&clearTimeout(z)}function N(le){if(!le)return;const ae=document.createElement("textarea");ae.value=le,document.body.appendChild(ae),ae.select(),document.execCommand("Copy"),document.body.removeChild(ae),a.success(i("copySuccessful"))}function H(le){d("mouseover",le,c.message)}function q(le){d("mouseout",le,c.message)}function ne(){d("click",c.message)}function W(){var le;if(f.value.modelId===62&&c.clickToMdvr&&typeof c.clickToMdvr=="function"){let ae={};c.message.isVehicle?ae={vehicleId:c.message.id,deviceId:((le=c.message.deviceOne)==null?void 0:le.id)||0}:ae={vehicleId:0,deviceId:c.message.id},c.clickToMdvr(ae)}}return(le,ae)=>{var ue,Ae;const Ce=e.resolveComponent("anSvgIcon"),Ee=e.resolveComponent("text-clamp"),ie=Do,X=hd;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(["vehicle-one",[y(f.value),{haveBorder:t.haveBorder},{nowActive:h.value},{[`parentId${t.message.parentId}itemId${t.message.id}`]:!0},{blueBorder:t.activeParentId&&t.activeParentId===t.message.parentId},{isLastParentOne:t.message.isLastParentOne}]]),onMouseover:H,onMouseout:q,onClick:ne},[e.createElementVNode("div",mz,[e.createVNode(ie,{"show-arrow":!1,visible:w.value,"onUpdate:visible":ae[0]||(ae[0]=ve=>w.value=ve),"popper-class":"normal-txt-pop",effect:"dark",content:t.message.name,teleported:!0,"hide-after":0,trigger:"contextmenu",placement:"top-start","append-to":"#leftSide"},{default:e.withCtx(()=>{var ve;return[e.createElementVNode("div",pz,[e.createVNode(Ce,{name:u(t.message.content.assetType,t.message.content.newIcon,t.message.isDevice||0)},null,8,["name"]),e.createElementVNode("span",{onMouseenter:k,onMouseleave:b},[e.createVNode(Ee,{text:t.message.name+""||"-",location:((ve=e.unref(r))==null?void 0:ve.textOverflowStyle)||"middle","max-lines":1,autoResize:!0},null,8,["text","location"])],32)])]}),_:1},8,["visible","content"]),e.createElementVNode("div",{class:"address",onMouseenter:j,onMouseleave:M},[e.createVNode(Ce,{name:"address-icon",fontSize:"16",color:"#000"}),e.createElementVNode("div",{class:e.normalizeClass(["address-time",{"detail-address-time":f.value.lat&&(f.value.lon||f.value.lng)&&f.value.detailAddress}])},[f.value.detailAddress?(e.openBlock(),e.createElementBlock("span",hz,e.toDisplayString(f.value.detailAddress),1)):(e.openBlock(),e.createElementBlock("span",gz,e.toDisplayString(((ue=f.value.state)!=null&&ue.endsWith(" Province")?f.value.state.replace(" Province",""):f.value.state)||"-"),1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(Li)(f.value.locationTime)),1)],2),e.createVNode(ie,{effect:"dark",placement:"top",trigger:f.value.lat&&(f.value.lon||f.value.lng)&&f.value.detailAddress?Q.value:"click","show-arrow":!1,teleported:!0,"hide-after":f.value.lat&&(f.value.lon||f.value.lng)&&f.value.detailAddress&&Q.value==="hover"?60:0,"append-to":"#leftSide",disabled:!(f.value.lat&&(f.value.lon||f.value.lng)),visible:P.value,"onUpdate:visible":ae[5]||(ae[5]=ve=>P.value=ve),"popper-class":"any-address-pop"},{content:e.withCtx(()=>[e.createElementVNode("div",{class:"detail-content",onMouseenter:x},[e.createElementVNode("div",null,[e.createElementVNode("div",null,e.toDisplayString(f.value.detailAddress||"-"),1),e.createElementVNode("div",Az,e.toDisplayString(e.unref(Li)(f.value.locationTime)),1),e.createElementVNode("div",vz,e.toDisplayString(e.unref(i)("lastUpdate"))+": "+e.toDisplayString(f.value.timeDiff),1)]),e.createElementVNode("div",{class:"refreshIcon",onClick:ae[4]||(ae[4]=e.withModifiers(ve=>N(f.value.detailAddress),["stop"]))},[e.createVNode(Ce,{name:"cop-icon","font-size":18})])],32)]),default:e.withCtx(()=>[f.value.lat&&(f.value.lon||f.value.lng)&&f.value.detailAddress?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["svg-icon copy-detail-adress",{default:!(f.value.lat&&(f.value.lon||f.value.lng))}]),onClick:ae[2]||(ae[2]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(Ce,{name:"copy-detail-adress",fontSize:"24",color:"#000",onClick:ae[1]||(ae[1]=e.withModifiers(ve=>N(f.value.detailAddress),["stop"]))})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["svg-icon",{default:!(f.value.lat&&(f.value.lon||f.value.lng))}]),onClick:ae[3]||(ae[3]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(Ce,{name:y(f.value)!=="offline-li"?"address-more":"address-more-offline",fontSize:"16",color:"#fff",onClick:D},null,8,["name"])],2))]),_:1},8,["trigger","hide-after","disabled","visible"])],32)]),e.createElementVNode("div",yz,[e.createElementVNode("div",wz,[e.createElementVNode("div",bz,[e.createElementVNode("i",{class:e.normalizeClass([C(f.value||{}).class])},null,2),e.createElementVNode("span",null,e.toDisplayString(C(f.value||{}).label),1),ae[6]||(ae[6]=e.createElementVNode("div",{class:"boder-padding"},null,-1)),e.createVNode(ie,{effect:"dark",placement:"top",trigger:"hover","hide-after":0,"show-arrow":!1,teleported:!0,"append-to":"#leftSide",content:e.unref(i)("lastUpdate")+" "+(f.value.timeDiff?f.value.timeDiff:"-")},{default:e.withCtx(()=>[e.createElementVNode("div",Cz,e.toDisplayString(f.value.timeDiff?f.value.timeDiff:"-"),1)]),_:1},8,["content"])])]),(e.openBlock(),e.createElementBlock("div",{class:"middle",key:c.message.id,nowActive:t.nowActive},[t.activeOne===1&&m.value.inL?(e.openBlock(),e.createBlock(ie,{key:0,"show-arrow":!1,"popper-class":"normal-txt-pop",effect:"dark",content:m.value.hereLandmarkName,teleported:!0,"hide-after":0,placement:"top-start","append-to":"#leftSide"},{default:e.withCtx(()=>[e.createVNode(Ce,{name:"from-landmark-icon",class:"from-landmark-icon",color:"#F32C1D"})]),_:1},8,["content"])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("div",kz,[e.createVNode(Ce,{name:"temp-hot-line"}),e.createElementVNode("span",{class:e.normalizeClass({red:f.value.alarmType&&f.value.alarmType.length>0&&f.value.alarmType.includes(6)})},e.toDisplayString(!f.value.temperature&&f.value.temperature!==0?"-":e.unref(qE)(Number(f.value.temperature))),3)])):e.createCommentVNode("",!0),f.value.modelId===54&&((Ae=f.value.triggerType)==null?void 0:Ae.trim())!="DoorOpen"?(e.openBlock(),e.createElementBlock("div",Pz,[e.createVNode(Ce,{name:"load-num-icon"}),g(f.value.manualSetLoad)||g(f.value.load)?(e.openBlock(),e.createElementBlock("span",Tz,e.toDisplayString(g(f.value.manualSetLoad)?f.value.manualSetLoad:f.value.load||"0")+"%",1)):(e.openBlock(),e.createElementBlock("span",Oz,"-"))])):e.createCommentVNode("",!0),f.value.modelId===54&&f.value.triggerType?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[f.value.triggerType.trim()==="DoorOpen"?(e.openBlock(),e.createBlock(ie,{key:0,effect:"dark",content:e.unref(i)("doorOpenCurrently"),placement:"top","hide-after":0,"show-arrow":!1,teleported:!0,"append-to":"#leftSide"},{default:e.withCtx(()=>[y(f.value)==="offline-li"?(e.openBlock(),e.createBlock(Ce,{key:0,class:"doorOpenIconOffline",name:"doorOpenIconOffline",color:"#F32C1D"})):(e.openBlock(),e.createBlock(Ce,{key:1,class:"doorOpen",name:"doorOpenIcon2",color:"#F32C1D"}))]),_:1},8,["content"])):f.value.triggerType.trim()==="DoorClose"?(e.openBlock(),e.createBlock(ie,{key:1,effect:"dark",content:e.unref(i)("doorCloseCurrently"),placement:"top","hide-after":0,"show-arrow":!1,teleported:!0,"append-to":"#leftSide"},{default:e.withCtx(()=>[y(f.value)==="offline-li"?(e.openBlock(),e.createBlock(Ce,{key:0,class:"doorCloseIconOffline",name:"doorCloseIconOffline",color:"#12B76A"})):(e.openBlock(),e.createBlock(Ce,{key:1,class:"doorClose",name:"doorCloseIcon2",color:"#12B76A"}))]),_:1},8,["content"])):f.value.triggerType.trim()==="OnDemand"?(e.openBlock(),e.createBlock(Ce,{key:2,name:"onDemand",color:"#000000"})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createVNode(ie,{teleported:!0,"append-to":"#leftSide","show-arrow":!1,"popper-class":"normal-txt-pop",effect:"dark","hide-after":0,placement:"top-start"},{content:e.withCtx(()=>[e.createElementVNode("div",Dz,[e.createElementVNode("span",null,e.toDisplayString(f.value.signals||f.value.signals===0?f.value.signals:"-"),1)])]),default:e.withCtx(()=>[e.createVNode(Ce,{name:p(f.value),color:"#000000"},null,8,["name"])]),_:1}),f.value.modelId!=62?(e.openBlock(),e.createBlock(ie,{key:4,teleported:!0,"append-to":"#leftSide","show-arrow":!1,"popper-class":"normal-txt-pop",effect:"dark","hide-after":0,placement:"top-start"},{content:e.withCtx(()=>[e.createElementVNode("div",Ez,[e.createElementVNode("span",null,e.toDisplayString(f.value.battery||f.value.battery===0?f.value.battery+"%":"-"),1),y(f.value)!=="offline-li"&&e.unref(B2)(f.value||{}).includes("battery-charge")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(Ce,{name:"ischarge",fontSize:10}),e.createElementVNode("span",null,e.toDisplayString(f.value.current)+"mA",1)],64)):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createVNode(Ce,{class:"battery-icon",name:e.unref(B2)(f.value||{}),color:"rgb(2, 2, 2)"},null,8,["name"])]),_:1})):e.createCommentVNode("",!0)],8,Bz)),e.createElementVNode("div",zz,[f.value.modelId===62?(e.openBlock(),e.createBlock(Ce,{key:0,name:"2308play",class:"play2308",color:"#FFFFFF",fontSize:"24"})):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createBlock(X,{key:1,class:e.normalizeClass(["model-image",{is2310C43:B.value,modeId62:f.value.modelId===62,hasConnect:!!t.clickToMdvr}]),src:f.value.thumb||f.value.thumbnail_2308,onClick:e.withModifiers(W,["stop"])},{error:e.withCtx(()=>[e.createElementVNode("div",Nz,[f.value.modelId===54?(e.openBlock(),e.createBlock(Ce,{key:0,name:"image-error",color:"rgba(223, 223, 223, 1)",fontSize:"24"})):e.createCommentVNode("",!0)])]),placeholder:e.withCtx(()=>[e.createElementVNode("div",Mz,[e.createVNode(Ce,{name:"loading-icon",fontSize:"24"})])]),_:1},8,["src","class"])):e.createCommentVNode("",!0)])])],34),E.value?(e.openBlock(),e.createElementBlock("div",Hz,[e.createVNode(e.unref(tf),{"api-key":Iz,onIdle:T})])):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-b46ba831"]]),Lz=["id"],Sz={name:"tagone"},jz=e.defineComponent({...Sz,props:{item:{type:Object,default(){return{}}},notSecondChildren:{type:Boolean,default:!1},inTagScroll:{type:Boolean,default:!1},tagVehicleNumber:{type:Object,default(){return{}}}},emits:["clickItem"],setup(t,{emit:n}){const o=t,r=n;new $d("Inter").load().then(()=>{l()});function l(){e.nextTick(()=>{const m=i.value,u=document.createRange();u.setStart(m,0),u.setEnd(m,m.childNodes.length),Math.round(u.getBoundingClientRect().width)>i.value.clientWidth&&(c.value=!1)})}e.watch(()=>{var m;return(m=o.item)==null?void 0:m.name},()=>{l()});const s=e.computed(()=>{var m;return!!(o.tagVehicleNumber&&!o.tagVehicleNumber[(m=o.item)==null?void 0:m.id])}),i=e.ref(),c=e.ref(!0);e.onMounted(()=>{l()});const d=e.ref(!1);e.watch(()=>o.inTagScroll,()=>{o.inTagScroll&&(d.value=!1)});function f(m){r("clickItem",m)}function h(m){var u;f(m),(u=m.children)!=null&&u.length&&(m.isClose=!m.isClose)}return(m,u)=>{var v,B;const y=e.resolveComponent("anSvgIcon"),p=Do,g=e.resolveComponent("tagone");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([{position:"relative",overflow:"hidden"},{backgroundColor:!t.item.isClose&&((v=t.item.children)!=null&&v.length)&&!t.notSecondChildren?"#f4f4f4":"inherit",borderRadius:t.item.isClose?"":"6px",marginTop:t.item.level===0?"4px":""}])},[e.createVNode(p,{effect:"dark","show-arrow":!1,content:t.item.name,placement:"right",teleported:!0,disabled:c.value||t.inTagScroll,visible:d.value,"onUpdate:visible":u[1]||(u[1]=A=>d.value=A),"hide-after":0,"popper-class":"any-tag-pop"},{default:e.withCtx(()=>{var A,C;return[e.createElementVNode("div",{class:e.normalizeClass(["level-tag-list-one",{parentOne:t.item.level===0&&((A=t.item.children)==null?void 0:A.length),disabledHover:s.value}]),id:`${t.item.itemId}_tag`,onClick:u[0]||(u[0]=w=>h(t.item)),style:e.normalizeStyle({paddingLeft:8+t.item.level*24+"px"})},[e.createVNode(y,{name:"tag-list-arrow",style:e.normalizeStyle({opacity:(C=t.item.children)!=null&&C.length?1:0}),class:e.normalizeClass(["arrow-icon",{iconClose:t.item.isClose}])},null,8,["style","class"]),e.createVNode(y,{name:"tag-tab-icon",fontSize:20}),e.createElementVNode("span",{class:"over-ellipsis",ref_key:"tagOneSpan",ref:i},e.toDisplayString(t.item.name),513)],14,Lz)]}),_:1},8,["content","disabled","visible"]),(B=t.item.children)!=null&&B.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.item.children,A=>(e.openBlock(),e.createBlock(g,{item:A,notSecondChildren:!0,inTagScroll:t.inTagScroll,class:e.normalizeClass({close:t.item.isClose}),onClickItem:f,tagVehicleNumber:t.tagVehicleNumber},null,8,["item","inTagScroll","class","tagVehicleNumber"]))),256)):e.createCommentVNode("",!0)],4)}}}),Vz=ut(jz,[["__scopeId","data-v-b0783b7e"]]),Gz={};function Qz(t,n){const o=e.resolveComponent("anSvgIcon");return e.openBlock(),e.createBlock(o,{fontSize:32,name:"new-close-icon"})}const us=ut(Gz,[["render",Qz]]),Xz={};function Zz(t,n){const o=e.resolveComponent("anSvgIcon");return e.openBlock(),e.createBlock(o,{fontSize:24,name:"new-search-icon",color:"#000"})}const ms=ut(Xz,[["render",Zz]]),vf=e.defineComponent({__name:"tooltipSpan",props:{name:{type:String,default:""}},setup(t){const n=t,o=e.ref(),r=e.ref(!0);function a(){o.value.style.display="block",e.nextTick(()=>{const l=o.value,s=document.createRange();s.setStart(l,0),s.setEnd(l,l.childNodes.length),Math.round(s.getBoundingClientRect().width)>o.value.clientWidth?r.value=!1:r.value=!0,o.value.style.display=""})}return e.onMounted(()=>{a()}),e.watch(()=>n.name,()=>{a()}),(l,s)=>{const i=Do;return e.openBlock(),e.createBlock(i,{effect:"dark",content:t.name,placement:"top","show-arrow":!1,teleported:!0,disabled:r.value,"hide-after":0},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"over-ellipsis",ref_key:"tagOneSpan",ref:o},e.toDisplayString(t.name),513)]),_:1},8,["content","disabled"])}}}),Rz={class:"vehicle-select-body-top"},Yz=["onClick"],Fz={class:"padding"},Uz={class:"popover-choose-one el-popover el-popper"},Jz={class:"choose-list-one"},Kz={class:"number"},Wz=["onClick"],qz={class:"number"},_z=["onClick"],$z={class:"padding"},eN=["onClick"],tN={class:"number"},nN={key:0,class:"nodata"},oN={class:"choose-list-one"},rN={class:"number"},aN={class:"padding"},lN=["onClick"],sN={class:"number"},iN={key:0,class:"nodata"},cN={class:"popover-choose-one el-popover el-popper"},dN=["onClick"],fN=ut(e.defineComponent({__name:"vehicleFilter",props:{sortKey:{type:String,default:"asc"},vehicleTypeList:{type:Array,default(){return[]}},propsModleList:{type:Array,default(){return[]}},loading:{type:Boolean,default:!1},hereKeyword:{type:String,default:""}},emits:["update:sortKey","filter","eventTracking","clearKeyword"],setup(t,{emit:n}){const{t:o}=dn(),{modelList:r}=_o(),a=t,l=n,s=[{label:o("drivingFirst"),value:"driving",eventtracking:"sort_drivingFirst",type:"custorm"},{label:o("idleFirst"),value:"idle",eventtracking:"sort_idleFirst",type:"custorm"},{label:o("warningFirst"),value:"waring",eventtracking:"sort_warningFirst",type:"custorm"},{label:o("offlineFirst"),value:"offline",eventtracking:"sort_offlineFirst",type:"custorm"},{label:o("batteryOnUseFirst"),value:"battery",eventtracking:"sort_batteryFirst",type:"custorm"},{value:"batterydivided",divided:!0},{label:o("lastUpdated"),value:"last",eventtracking:"sort_lastUpdated",type:"sort"},{label:o("createFirst"),value:"create",eventtracking:"sort_createFirst",type:"sort"},{value:"createdivided",divided:!0},{label:"A--Z",value:"asc",eventtracking:"sort_AZ",type:"sort"},{label:"Z--A",value:"desc",eventtracking:"sort_ZA",type:"sort"}],i=e.ref(!1),c=e.computed(()=>{if(a.sortKey){const P=s.find(O=>O.value===a.sortKey);if(P)return P.label}return"A--Z"});function d(P){P.divided||(l("update:sortKey",P.value),l("eventTracking",P.eventtracking),i.value=!1,u.value=!1)}function f(){l("eventTracking","sort_addClick"),l("clearKeyword")}function h(){l("eventTracking","filter_addClick"),l("clearKeyword")}const m=[{label:o("viewSelectedVehicle"),value:"asset",eventtracking:"viewAssetOnly",type:"view"},{label:o("viewSelectedDevice"),value:"device",eventtracking:"viewDeviceOnly",type:"view"}],u=e.ref(!1);function y(P){P.number&&(P.isChecked=!P.isChecked)}function p(P,O){O.children.every(D=>!D.number)||(O.isChecked=P,O.indeterminate=!1,O.children.map(D=>{D.number&&(D.isChecked=P)}))}function g(P){P.number&&a.vehicleTypeList.map(O=>{if(O.assetType===9999){if(O.children.every(j=>!j.number))return;P.isChecked=!P.isChecked;let D=!0,Q=!1;O.children.map(j=>{j.number&&(j.isChecked?Q=!0:D=!1)}),D?O.isChecked=!0:O.isChecked=!1,!O.isChecked&&Q?O.indeterminate=!0:O.indeterminate=!1}})}const v=e.ref(""),B=()=>{v.value="",w()},A=e.ref([]);e.onMounted(()=>{C()}),e.watch(()=>a.loading,()=>{a.loading||e.nextTick(()=>{C()})});function C(){const P=r.filter(O=>O.number?a.propsModleList.length?a.propsModleList.includes(O.modelId):!0:!1);v.value?A.value=P.filter(O=>(O.modelName+"").replace(/\s+/g," ").trim().toLocaleLowerCase().includes(v.value.trim().replace(/\s+/g," ").toLocaleLowerCase())):A.value=[...P]}const w=Ii(async()=>{C()},400),k=e.computed(()=>{const P=[];let O=!1,D=!1;return a.vehicleTypeList.map(Q=>{Q.assetType===9999?Q.children.map(j=>{j.isChecked&&j.number&&(O=!0,P.push({obj:j,isAssetType:!0}))}):Q.isChecked&&Q.number&&(O=!0,P.push({obj:Q,isAssetType:!0}))}),r.map(Q=>{var j;if(Q.isChecked){if((j=a.propsModleList)!=null&&j.length&&!a.propsModleList.includes(Q.modelId))return;D=!0,P.push({obj:Q,isModel:!0})}}),O&&l("eventTracking","filter_viewAssetOnly"),D&&l("eventTracking","filter_viewDeviceOnly"),l("filter",P),P});function b(P){P.obj.isChecked=!1}const E=e.computed(()=>{let P=0;return k.value.map(O=>{O.isAssetType&&P++}),P}),T=e.computed(()=>{let P=0;return k.value.map(O=>{O.isModel&&P++}),P});return(P,O)=>{const D=e.resolveComponent("anSvgIcon"),Q=zo,j=mr,z=_a,M=nn;return e.openBlock(),e.createElementBlock("div",Rz,[e.createVNode(D,{name:k.value.length||t.hereKeyword?"sorting":"fliter-icon",fontSize:"24",color:k.value.length||t.hereKeyword?"#0BA5EC":"#000"},null,8,["name","color"]),e.createVNode(Q,{placement:"bottom-start",width:240,"show-arrow":!1,trigger:"click","hide-after":0,"popper-class":"popover-choose",visible:i.value,"onUpdate:visible":O[0]||(O[0]=x=>i.value=x),teleported:!1},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"like-select",onClick:f,style:{"background-color":"rgba(0, 0, 0, 0.04)"}},[e.createVNode(vf,{name:c.value},null,8,["name"]),e.createVNode(D,{name:"choose-arrow-down",fontSize:"24",color:"#9A9A9A"})])]),default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,x=>e.createElementVNode("div",{class:e.normalizeClass(["choose-list-one",{divided:x.divided,active:t.sortKey&&t.sortKey===x.value}]),key:x.label,onClick:N=>d(x)},[x.divided?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(D,{name:"filterchecked",fontSize:"24",color:"rgba(0, 0, 0, 1)"}),e.createElementVNode("span",null,e.toDisplayString(x.label),1)],64))],10,Yz)),64))]),_:1},8,["visible"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value.slice(0,2),(x,N)=>{var H,q,ne,W;return e.openBlock(),e.createElementBlock("div",{class:"choose-filter-one",key:N},[e.createVNode(vf,{name:((H=x.obj)==null?void 0:H.modelName)||(((q=x.obj)==null?void 0:q.assetType)>1e5?(ne=x.obj)==null?void 0:ne.name:e.unref(o)((W=x.obj)==null?void 0:W.type))},null,8,["name"]),e.createVNode(D,{fontSize:24,name:"new-close-icon",color:"rgba(154, 154, 154, 1)",onClick:le=>b(x)},null,8,["onClick"])])}),128)),k.value.length>=3?(e.openBlock(),e.createBlock(Q,{key:0,placement:"bottom-start",width:122,"show-arrow":!1,trigger:"click","hide-after":0,"popper-class":"popover-choose popover-choose-more popover-choose-customize",teleported:!1},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(D,{name:"more",fontSize:"32",color:"#000",class:"filter-add"})])]),default:e.withCtx(()=>[e.createElementVNode("div",Fz,[e.createVNode(j,{"max-height":"300px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value.slice(2),(x,N)=>{var H,q,ne,W;return e.openBlock(),e.createElementBlock("div",{class:"choose-filter-one",key:N},[e.createVNode(vf,{name:((H=x.obj)==null?void 0:H.modelName)||(((q=x.obj)==null?void 0:q.assetType)>1e5?(ne=x.obj)==null?void 0:ne.name:e.unref(o)((W=x.obj)==null?void 0:W.type))},null,8,["name"]),e.createVNode(D,{fontSize:24,name:"new-close-icon",color:"rgba(154, 154, 154, 1)",onClick:le=>b(x)},null,8,["onClick"])])}),128))]),_:1})])]),_:1})):e.createCommentVNode("",!0),e.createVNode(Q,{placement:"bottom-start",width:240,"show-arrow":!1,trigger:"click","hide-after":0,"popper-class":"popover-choose-filter",visible:u.value,"onUpdate:visible":O[6]||(O[6]=x=>u.value=x),teleported:!1},{reference:e.withCtx(()=>[e.createElementVNode("div",{onClick:h},[e.createVNode(D,{name:"filter-add",fontSize:"32",color:"#9A9A9A",class:"filter-add"})])]),default:e.withCtx(()=>[e.createElementVNode("div",Uz,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,x=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:x.label},[x.value==="asset"?(e.openBlock(),e.createBlock(Q,{key:0,placement:"right-start",width:230,"show-arrow":!1,trigger:"hover","hide-after":0,"popper-class":"popover-choose popover-choose-inFilter",teleported:!1},{reference:e.withCtx(()=>[e.createElementVNode("div",Jz,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(x.label),1),e.createElementVNode("span",Kz," ("+e.toDisplayString(E.value)+")",1)]),e.createVNode(D,{name:"arrow-right-icon",class:"arrow-right-icon"})])]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.vehicleTypeList,N=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:N.id},[N.assetType!==9999?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["choose-list-one",{"disable-check":!N.number}]),onClick:e.withModifiers(H=>y(N),["stop"])},[e.createVNode(z,{class:"anytrek-checkbox",modelValue:N.isChecked,"onUpdate:modelValue":H=>N.isChecked=H,onClick:O[1]||(O[1]=e.withModifiers(()=>{},["stop"])),disabled:!N.number},null,8,["modelValue","onUpdate:modelValue","disabled"]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(o)(N.type)),1),e.createElementVNode("span",qz," ("+e.toDisplayString(N.number)+")",1)])],10,Wz)),[[e.vShow,N.number]]):(e.openBlock(),e.createBlock(Q,{key:1,placement:"right-start",width:230,"show-arrow":!1,trigger:"hover","hide-after":0,"popper-class":"popover-choose popover-choose-inFilter popover-choose-customize",teleported:!1},{reference:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["choose-list-one",{"disable-check":N.children.every(H=>!H.number)}]),onClick:e.withModifiers(H=>p(!N.isChecked,N),["stop"])},[e.createVNode(z,{class:"anytrek-checkbox",modelValue:N.isChecked,"onUpdate:modelValue":H=>N.isChecked=H,onClick:O[2]||(O[2]=e.withModifiers(()=>{},["stop"])),onChange:H=>p(H,N),indeterminate:N.indeterminate,disabled:N.children.every(H=>!H.number)},null,8,["modelValue","onUpdate:modelValue","onChange","indeterminate","disabled"]),e.createElementVNode("span",null,e.toDisplayString(N.name),1),e.createVNode(D,{name:"arrow-right-icon",class:"arrow-right-icon"})],10,_z),[[e.vShow,N.children.some(H=>H.number)]])]),default:e.withCtx(()=>[e.createElementVNode("div",$z,[e.createVNode(j,{"max-height":"500px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.children,H=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["choose-list-one finall-one",{"disable-check":!H.number}]),key:H.id,onClick:e.withModifiers(q=>g(H),["stop"])},[e.createVNode(D,{name:"vehicle-"+H.icons[0],color:"#000000",class:"icon"},null,8,["name"]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(H.name),1),e.createElementVNode("span",tN," ("+e.toDisplayString(H.number)+")",1)]),e.createVNode(z,{class:"anytrek-checkbox",modelValue:H.isChecked,"onUpdate:modelValue":q=>H.isChecked=q,onClick:O[3]||(O[3]=e.withModifiers(()=>{},["stop"])),disabled:!H.number},null,8,["modelValue","onUpdate:modelValue","disabled"])],10,eN)),[[e.vShow,H.number]])),128))]),_:2},1024)])]),_:2},1024))],64))),128)),t.vehicleTypeList.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",nN,e.toDisplayString(e.unref(o)("noData")),1))]),_:2},1024)):(e.openBlock(),e.createBlock(Q,{key:1,placement:"right-start",width:261,"show-arrow":!1,trigger:"hover","hide-after":0,"popper-class":"popover-choose popover-choose-inFilter popover-choose-customize",teleported:!1},{reference:e.withCtx(()=>[e.createElementVNode("div",oN,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(x.label),1),e.createElementVNode("span",rN," ("+e.toDisplayString(T.value)+")",1)]),e.createVNode(D,{name:"arrow-right-icon",class:"arrow-right-icon"})])]),default:e.withCtx(()=>[e.createElementVNode("div",aN,[e.createVNode(j,{"max-height":"500px"},{default:e.withCtx(()=>[e.createVNode(M,{modelValue:v.value,"onUpdate:modelValue":O[4]||(O[4]=N=>v.value=N),placeholder:e.unref(o)("searchDevice"),class:"anytrek-vehicle-auto-search","prefix-icon":ms,onInput:e.unref(w),size:"large",ref_for:!0,ref:"searchInput"},{suffix:e.withCtx(()=>[v.value?(e.openBlock(),e.createBlock(us,{key:0,onClick:B})):e.createCommentVNode("",!0)]),_:1},8,["modelValue","placeholder","onInput"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,N=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["choose-list-one",{"disable-check":!N.number}]),key:N.modelId,onClick:e.withModifiers(H=>y(N),["stop"])},[e.createVNode(z,{class:"anytrek-checkbox",modelValue:N.isChecked,"onUpdate:modelValue":H=>N.isChecked=H,onClick:O[5]||(O[5]=e.withModifiers(()=>{},["stop"])),disabled:!N.number},null,8,["modelValue","onUpdate:modelValue","disabled"]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(N.modelName),1),e.createElementVNode("span",sN," ("+e.toDisplayString(N.number)+")",1)])],10,lN)),[[e.vShow,N.number]])),128)),A.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",iN,e.toDisplayString(e.unref(o)("noData")),1))]),_:2},1024)])]),_:2},1024))],64))),64))]),e.createElementVNode("div",cN,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,x=>e.createElementVNode("div",{class:e.normalizeClass(["choose-list-one",{divided:x.divided,active:t.sortKey&&t.sortKey===x.value}]),key:x.label,onClick:N=>d(x)},[x.divided?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(D,{name:"filterchecked",fontSize:"24",color:"rgba(0, 0, 0, 1)"}),e.createElementVNode("span",null,e.toDisplayString(x.label),1)],64))],10,dN)),64))])]),_:1},8,["visible"])])}}}),[["__scopeId","data-v-f1c90108"]]),uN={class:"vehicle-select-body"},mN={class:"searchTip-list"},pN=["onClick"],hN={class:"vehicle-select-search-body"},gN={class:"vehicle-select-body-content"},AN={class:"over-ellipsis"},vN={key:1,class:"loading"},yN=["onClick"],wN={class:"over-ellipsis"},bN={key:1,style:{"white-space":"nowrap"}},CN={key:1,class:"tag-list"},BN={style:{position:"relative"}},kN=`
|
|
233
233
|
<path d="M12.002 2.49902V4.49868" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
234
234
|
<path d="M17.0018 3.83936L16.002 5.57108" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
235
235
|
<path d="M20.6615 7.5L18.9297 8.49983" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|