command-center-v3-common 0.0.65 → 0.0.68
Sign up to get free protection for your applications and to get access to all the features.
@@ -17291,7 +17291,7 @@ function L3({ props: e }) {
|
|
17291
17291
|
}
|
17292
17292
|
function v(w) {
|
17293
17293
|
if (w.lng && w.lat) {
|
17294
|
-
e.h.panTo(e.map,
|
17294
|
+
e.h.panTo(e.map, [w.lat, w.lng]), e.h.setZoom(e.map, 18);
|
17295
17295
|
const A = e.h.marker(e.map, [w.lat, w.lng], {
|
17296
17296
|
icon: '<svg aria-hidden="true" class="animation-marker" style="width: 40px; height: 60px;"><use data-v-19e5a669="" xlink:href="#icon-base-trajectory-personnel"></use></svg>',
|
17297
17297
|
// icon: `<img src="${item.orgTypeIcon}" class="w-[23px] h-[23px]" />`,
|
@@ -18294,7 +18294,7 @@ function A4({ emit: e, props: t }) {
|
|
18294
18294
|
zIndexOffset: 10,
|
18295
18295
|
iconAnchor: [-20, -16]
|
18296
18296
|
};
|
18297
|
-
t.markerItemFn && (P = t.markerItemFn()), n.value
|
18297
|
+
t.markerItemFn && (P = t.markerItemFn()), l.setZoom(n.value, 18), l.panTo(n.value, [T, I]), o.value = l.marker(
|
18298
18298
|
n.value,
|
18299
18299
|
[T, I],
|
18300
18300
|
P
|
@@ -34,4 +34,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
34
34
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
35
35
|
* @license MIT
|
36
36
|
**/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const pC=Object.prototype.hasOwnProperty,jl=(t,n)=>pC.call(t,n),Wn=t=>typeof t=="function",dn=t=>typeof t=="string",Yl=t=>t!==null&&typeof t=="object";var fC=typeof global=="object"&&global&&global.Object===Object&&global,hC=typeof self=="object"&&self&&self.Object===Object&&self,Ko=fC||hC||Function("return this")(),Gt=Ko.Symbol,Gl=Object.prototype,mC=Gl.hasOwnProperty,uC=Gl.toString,pn=Gt?Gt.toStringTag:void 0;function gC(t){var n=mC.call(t,pn),o=t[pn];try{t[pn]=void 0;var a=!0}catch{}var s=uC.call(t);return a&&(n?t[pn]=o:delete t[pn]),s}var _C=Object.prototype,yC=_C.toString;function xC(t){return yC.call(t)}var kC="[object Null]",CC="[object Undefined]",ql=Gt?Gt.toStringTag:void 0;function Kl(t){return t==null?t===void 0?CC:kC:ql&&ql in Object(t)?gC(t):xC(t)}function bC(t){return t!=null&&typeof t=="object"}var NC="[object Symbol]";function Xo(t){return typeof t=="symbol"||bC(t)&&Kl(t)==NC}function wC(t,n){for(var o=-1,a=t==null?0:t.length,s=Array(a);++o<a;)s[o]=n(t[o],o,t);return s}var Jo=Array.isArray,SC=1/0,Xl=Gt?Gt.prototype:void 0,Jl=Xl?Xl.toString:void 0;function Zl(t){if(typeof t=="string")return t;if(Jo(t))return wC(t,Zl)+"";if(Xo(t))return Jl?Jl.call(t):"";var n=t+"";return n=="0"&&1/t==-SC?"-0":n}function Ql(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var TC="[object AsyncFunction]",EC="[object Function]",DC="[object GeneratorFunction]",$C="[object Proxy]";function VC(t){if(!Ql(t))return!1;var n=Kl(t);return n==EC||n==DC||n==TC||n==$C}var Zo=Ko["__core-js_shared__"],vl=function(){var t=/[^.]+$/.exec(Zo&&Zo.keys&&Zo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function IC(t){return!!vl&&vl in t}var AC=Function.prototype,OC=AC.toString;function LC(t){if(t!=null){try{return OC.call(t)}catch{}try{return t+""}catch{}}return""}var FC=/[\\^$.*+?()[\]{}|]/g,BC=/^\[object .+?Constructor\]$/,RC=Function.prototype,PC=Object.prototype,MC=RC.toString,UC=PC.hasOwnProperty,WC=RegExp("^"+MC.call(UC).replace(FC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zC(t){if(!Ql(t)||IC(t))return!1;var n=VC(t)?WC:BC;return n.test(LC(t))}function HC(t,n){return t==null?void 0:t[n]}function er(t,n){var o=HC(t,n);return zC(o)?o:void 0}function jC(t,n){return t===n||t!==t&&n!==n}var YC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,GC=/^\w*$/;function qC(t,n){if(Jo(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||Xo(t)?!0:GC.test(t)||!YC.test(t)||n!=null&&t in Object(n)}var fn=er(Object,"create");function KC(){this.__data__=fn?fn(null):{},this.size=0}function XC(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}var JC="__lodash_hash_undefined__",ZC=Object.prototype,QC=ZC.hasOwnProperty;function vC(t){var n=this.__data__;if(fn){var o=n[t];return o===JC?void 0:o}return QC.call(n,t)?n[t]:void 0}var eb=Object.prototype,tb=eb.hasOwnProperty;function nb(t){var n=this.__data__;return fn?n[t]!==void 0:tb.call(n,t)}var ob="__lodash_hash_undefined__";function ab(t,n){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=fn&&n===void 0?ob:n,this}function $t(t){var n=-1,o=t==null?0:t.length;for(this.clear();++n<o;){var a=t[n];this.set(a[0],a[1])}}$t.prototype.clear=KC,$t.prototype.delete=XC,$t.prototype.get=vC,$t.prototype.has=nb,$t.prototype.set=ab;function sb(){this.__data__=[],this.size=0}function zn(t,n){for(var o=t.length;o--;)if(jC(t[o][0],n))return o;return-1}var lb=Array.prototype,rb=lb.splice;function ib(t){var n=this.__data__,o=zn(n,t);if(o<0)return!1;var a=n.length-1;return o==a?n.pop():rb.call(n,o,1),--this.size,!0}function cb(t){var n=this.__data__,o=zn(n,t);return o<0?void 0:n[o][1]}function db(t){return zn(this.__data__,t)>-1}function pb(t,n){var o=this.__data__,a=zn(o,t);return a<0?(++this.size,o.push([t,n])):o[a][1]=n,this}function qt(t){var n=-1,o=t==null?0:t.length;for(this.clear();++n<o;){var a=t[n];this.set(a[0],a[1])}}qt.prototype.clear=sb,qt.prototype.delete=ib,qt.prototype.get=cb,qt.prototype.has=db,qt.prototype.set=pb;var fb=er(Ko,"Map");function hb(){this.size=0,this.__data__={hash:new $t,map:new(fb||qt),string:new $t}}function mb(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function Hn(t,n){var o=t.__data__;return mb(n)?o[typeof n=="string"?"string":"hash"]:o.map}function ub(t){var n=Hn(this,t).delete(t);return this.size-=n?1:0,n}function gb(t){return Hn(this,t).get(t)}function _b(t){return Hn(this,t).has(t)}function yb(t,n){var o=Hn(this,t),a=o.size;return o.set(t,n),this.size+=o.size==a?0:1,this}function Vt(t){var n=-1,o=t==null?0:t.length;for(this.clear();++n<o;){var a=t[n];this.set(a[0],a[1])}}Vt.prototype.clear=hb,Vt.prototype.delete=ub,Vt.prototype.get=gb,Vt.prototype.has=_b,Vt.prototype.set=yb;var xb="Expected a function";function Qo(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new TypeError(xb);var o=function(){var a=arguments,s=n?n.apply(this,a):a[0],l=o.cache;if(l.has(s))return l.get(s);var r=t.apply(this,a);return o.cache=l.set(s,r)||l,r};return o.cache=new(Qo.Cache||Vt),o}Qo.Cache=Vt;var kb=500;function Cb(t){var n=Qo(t,function(a){return o.size===kb&&o.clear(),a}),o=n.cache;return n}var bb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nb=/\\(\\)?/g,wb=Cb(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(bb,function(o,a,s,l){n.push(s?l.replace(Nb,"$1"):a||o)}),n});function Sb(t){return t==null?"":Zl(t)}function Tb(t,n){return Jo(t)?t:qC(t,n)?[t]:wb(Sb(t))}var Eb=1/0;function Db(t){if(typeof t=="string"||Xo(t))return t;var n=t+"";return n=="0"&&1/t==-Eb?"-0":n}function $b(t,n){n=Tb(n,t);for(var o=0,a=n.length;t!=null&&o<a;)t=t[Db(n[o++])];return o&&o==a?t:void 0}function Vb(t,n,o){var a=t==null?void 0:$b(t,n);return a===void 0?o:a}function Ib(t){for(var n=-1,o=t==null?0:t.length,a={};++n<o;){var s=t[n];a[s[0]]=s[1]}return a}const Ab=t=>t===void 0,tr=t=>typeof t=="boolean",It=t=>typeof t=="number",Ob=t=>typeof Element>"u"?!1:t instanceof Element,Lb=t=>dn(t)?!Number.isNaN(Number(t)):!1,nr=t=>Object.keys(t);class Fb extends Error{constructor(n){super(n),this.name="ElementPlusError"}}function jn(t,n){if(process.env.NODE_ENV!=="production"){const o=dn(t)?new Fb(`[${t}] ${n}`):t;console.warn(o)}}const Bb="utils/dom/style";function vo(t,n="px"){if(!t)return"";if(It(t)||Lb(t))return`${t}${n}`;if(dn(t))return t;jn(Bb,"binding value must be a string or number")}const or="__epPropKey",ot=t=>t,Rb=t=>Yl(t)&&!!t[or],ar=(t,n)=>{if(!Yl(t)||Rb(t))return t;const{values:o,required:a,default:s,type:l,validator:r}=t,c={type:l,required:!!a,validator:o||r?p=>{let d=!1,h=[];if(o&&(h=Array.from(o),jl(t,"default")&&h.push(s),d||(d=h.includes(p))),r&&(d||(d=r(p))),!d&&h.length>0){const m=[...new Set(h)].map(_=>JSON.stringify(_)).join(", ");e.warn(`Invalid prop: validation failed${n?` for prop "${n}"`:""}. Expected one of [${m}], got value ${JSON.stringify(p)}.`)}return d}:void 0,[or]:!0};return jl(t,"default")&&(c.default=s),c},hn=t=>Ib(Object.entries(t).map(([n,o])=>[n,ar(o,n)])),Pb=ot([String,Object,Function]),Mb={Close:yd,SuccessFilled:Ts,InfoFilled:Ss,WarningFilled:Es,CircleCloseFilled:ws},sr={success:Ts,warning:Es,error:ws,info:Ss},lr=(t,n)=>{if(t.install=o=>{for(const a of[t,...Object.values(n??{})])o.component(a.name,a)},n)for(const[o,a]of Object.entries(n))t[o]=a;return t},Ub=(t,n)=>(t.install=o=>{t._context=o._context,o.config.globalProperties[n]=t},t),Wb={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},zb=["","default","small","large"],Hb=t=>t,jb=t=>(n,o)=>Yb(n,o,e.unref(t)),Yb=(t,n,o)=>Vb(o,t,t).replace(/\{(\w+)\}/g,(a,s)=>{var l;return`${(l=n==null?void 0:n[s])!=null?l:`{${s}}`}`}),Gb=t=>{const n=e.computed(()=>e.unref(t).name),o=e.isRef(t)?t:e.ref(t);return{lang:n,locale:o,t:jb(t)}},rr=Symbol("localeContextKey"),qb=t=>{const n=t||e.inject(rr,e.ref());return Gb(e.computed(()=>n.value||Or))},Yn="el",Kb="is-",At=(t,n,o,a,s)=>{let l=`${t}-${n}`;return o&&(l+=`-${o}`),a&&(l+=`__${a}`),s&&(l+=`--${s}`),l},ir=Symbol("namespaceContextKey"),Xb=t=>{const n=t||(e.getCurrentInstance()?e.inject(ir,e.ref(Yn)):e.ref(Yn));return e.computed(()=>e.unref(n)||Yn)},ea=(t,n)=>{const o=Xb(n);return{namespace:o,b:(g="")=>At(o.value,t,g,"",""),e:g=>g?At(o.value,t,"",g,""):"",m:g=>g?At(o.value,t,"","",g):"",be:(g,b)=>g&&b?At(o.value,t,g,b,""):"",em:(g,b)=>g&&b?At(o.value,t,"",g,b):"",bm:(g,b)=>g&&b?At(o.value,t,g,"",b):"",bem:(g,b,C)=>g&&b&&C?At(o.value,t,g,b,C):"",is:(g,...b)=>{const C=b.length>=1?b[0]:!0;return g&&C?`${Kb}${g}`:""},cssVar:g=>{const b={};for(const C in g)g[C]&&(b[`--${o.value}-${C}`]=g[C]);return b},cssVarName:g=>`--${o.value}-${g}`,cssVarBlock:g=>{const b={};for(const C in g)g[C]&&(b[`--${o.value}-${t}-${C}`]=g[C]);return b},cssVarBlockName:g=>`--${o.value}-${t}-${g}`}},cr={current:0},dr=e.ref(0),pr=2e3,fr=Symbol("elZIndexContextKey"),hr=Symbol("zIndexContextKey"),Jb=t=>{const n=e.getCurrentInstance()?e.inject(fr,cr):cr,o=t||(e.getCurrentInstance()?e.inject(hr,void 0):void 0),a=e.computed(()=>{const r=e.unref(o);return It(r)?r:pr}),s=e.computed(()=>a.value+dr.value),l=()=>(n.current++,dr.value=n.current,s.value);return!Yt&&!e.inject(fr)&&jn("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
37
|
-
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:s,nextZIndex:l}},Zb=ar({type:String,values:zb,required:!1}),Qb=Symbol("size"),vb=Symbol("emptyValuesContextKey"),eN=hn({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>Wn(t)?!t():!t}}),mr=Symbol(),Gn=e.ref();function ur(t,n=void 0){const o=e.getCurrentInstance()?e.inject(mr,Gn):Gn;return t?e.computed(()=>{var a,s;return(s=(a=o.value)==null?void 0:a[t])!=null?s:n}):o}function tN(t,n){const o=ur(),a=ea(t,e.computed(()=>{var i;return((i=o.value)==null?void 0:i.namespace)||Yn})),s=qb(e.computed(()=>{var i;return(i=o.value)==null?void 0:i.locale})),l=Jb(e.computed(()=>{var i;return((i=o.value)==null?void 0:i.zIndex)||pr})),r=e.computed(()=>{var i;return e.unref(n)||((i=o.value)==null?void 0:i.size)||""});return gr(e.computed(()=>e.unref(o)||{})),{ns:a,locale:s,zIndex:l,size:r}}const gr=(t,n,o=!1)=>{var a;const s=!!e.getCurrentInstance(),l=s?ur():void 0,r=(a=n==null?void 0:n.provide)!=null?a:s?e.provide:void 0;if(!r){jn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const i=e.computed(()=>{const c=e.unref(t);return l!=null&&l.value?nN(l.value,c):c});return r(mr,i),r(rr,e.computed(()=>i.value.locale)),r(ir,e.computed(()=>i.value.namespace)),r(hr,e.computed(()=>i.value.zIndex)),r(Qb,{size:e.computed(()=>i.value.size||"")}),r(vb,e.computed(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(o||!Gn.value)&&(Gn.value=i.value),i},nN=(t,n)=>{const o=[...new Set([...nr(t),...nr(n)])],a={};for(const s of o)a[s]=n[s]!==void 0?n[s]:t[s];return a},oN=hn({a11y:{type:Boolean,default:!0},locale:{type:ot(Object)},size:Zb,button:{type:ot(Object)},experimentalFeatures:{type:ot(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ot(Object)},zIndex:Number,namespace:{type:String,default:"el"},...eN}),Ze={};e.defineComponent({name:"ElConfigProvider",props:oN,setup(t,{slots:n}){e.watch(()=>t.message,a=>{Object.assign(Ze,a??{})},{immediate:!0,deep:!0});const o=gr(t);return()=>e.renderSlot(n,"default",{config:o==null?void 0:o.value})}});var ta=(t,n)=>{const o=t.__vccOpts||t;for(const[a,s]of n)o[a]=s;return o};const aN=hn({size:{type:ot([Number,String])},color:{type:String}}),sN=e.defineComponent({name:"ElIcon",inheritAttrs:!1}),lN=e.defineComponent({...sN,props:aN,setup(t){const n=t,o=ea("icon"),a=e.computed(()=>{const{size:s,color:l}=n;return!s&&!l?{}:{fontSize:Ab(s)?void 0:vo(s),"--color":l}});return(s,l)=>(e.openBlock(),e.createElementBlock("i",e.mergeProps({class:e.unref(o).b(),style:e.unref(a)},s.$attrs),[e.renderSlot(s.$slots,"default")],16))}});var rN=ta(lN,[["__file","icon.vue"]]);const _r=lr(rN),iN=hn({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:ot([String,Object,Array])},offset:{type:ot(Array),default:[0,0]},badgeClass:{type:String}}),cN=e.defineComponent({name:"ElBadge"}),dN=e.defineComponent({...cN,props:iN,setup(t,{expose:n}){const o=t,a=ea("badge"),s=e.computed(()=>o.isDot?"":It(o.value)&&It(o.max)?o.max<o.value?`${o.max}+`:o.value===0&&!o.showZero?"":`${o.value}`:`${o.value}`),l=e.computed(()=>{var r,i,c,p,d;return[{backgroundColor:o.color,marginRight:vo(-((i=(r=o.offset)==null?void 0:r[0])!=null?i:0)),marginTop:vo((p=(c=o.offset)==null?void 0:c[1])!=null?p:0)},(d=o.badgeStyle)!=null?d:{}]});return n({content:s}),(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a).b())},[e.renderSlot(r.$slots,"default"),e.createVNode(e.Transition,{name:`${e.unref(a).namespace.value}-zoom-in-center`,persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("sup",{class:e.normalizeClass([e.unref(a).e("content"),e.unref(a).em("content",r.type),e.unref(a).is("fixed",!!r.$slots.default),e.unref(a).is("dot",r.isDot),r.badgeClass]),style:e.normalizeStyle(e.unref(l)),textContent:e.toDisplayString(e.unref(s))},null,14,["textContent"]),[[e.vShow,!r.hidden&&(e.unref(s)||r.isDot)]])]),_:1},8,["name"])],2))}});var pN=ta(dN,[["__file","badge.vue"]]);const fN=lr(pN),yr=["success","info","warning","error"],Re=Hb({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Yt?document.body:void 0}),hN=hn({customClass:{type:String,default:Re.customClass},center:{type:Boolean,default:Re.center},dangerouslyUseHTMLString:{type:Boolean,default:Re.dangerouslyUseHTMLString},duration:{type:Number,default:Re.duration},icon:{type:Pb,default:Re.icon},id:{type:String,default:Re.id},message:{type:ot([String,Object,Function]),default:Re.message},onClose:{type:ot(Function),default:Re.onClose},showClose:{type:Boolean,default:Re.showClose},type:{type:String,values:yr,default:Re.type},plain:{type:Boolean,default:Re.plain},offset:{type:Number,default:Re.offset},zIndex:{type:Number,default:Re.zIndex},grouping:{type:Boolean,default:Re.grouping},repeatNum:{type:Number,default:Re.repeatNum}}),mN={destroy:()=>!0},Qe=e.shallowReactive([]),uN=t=>{const n=Qe.findIndex(s=>s.id===t),o=Qe[n];let a;return n>0&&(a=Qe[n-1]),{current:o,prev:a}},gN=t=>{const{prev:n}=uN(t);return n?n.vm.exposed.bottom.value:0},_N=(t,n)=>Qe.findIndex(a=>a.id===t)>0?16:n,yN=e.defineComponent({name:"ElMessage"}),xN=e.defineComponent({...yN,props:hN,emits:mN,setup(t,{expose:n}){const o=t,{Close:a}=Mb,{ns:s,zIndex:l}=tN("message"),{currentZIndex:r,nextZIndex:i}=l,c=e.ref(),p=e.ref(!1),d=e.ref(0);let h;const m=e.computed(()=>o.type?o.type==="error"?"danger":o.type:"info"),_=e.computed(()=>{const f=o.type;return{[s.bm("icon",f)]:f&&sr[f]}}),w=e.computed(()=>o.icon||sr[o.type]||""),g=e.computed(()=>gN(o.id)),b=e.computed(()=>_N(o.id,o.offset)+g.value),C=e.computed(()=>d.value+b.value),S=e.computed(()=>({top:`${b.value}px`,zIndex:r.value}));function k(){o.duration!==0&&({stop:h}=eC(()=>{V()},o.duration))}function T(){h==null||h()}function V(){p.value=!1}function $({code:f}){f===Wb.esc&&V()}return e.onMounted(()=>{k(),i(),p.value=!0}),e.watch(()=>o.repeatNum,()=>{T(),k()}),tC(document,"keydown",$),lC(c,()=>{d.value=c.value.getBoundingClientRect().height}),n({visible:p,bottom:C,close:V}),(f,u)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(s).b("fade"),onBeforeLeave:f.onClose,onAfterLeave:y=>f.$emit("destroy"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:f.id,ref_key:"messageRef",ref:c,class:e.normalizeClass([e.unref(s).b(),{[e.unref(s).m(f.type)]:f.type},e.unref(s).is("center",f.center),e.unref(s).is("closable",f.showClose),e.unref(s).is("plain",f.plain),f.customClass]),style:e.normalizeStyle(e.unref(S)),role:"alert",onMouseenter:T,onMouseleave:k},[f.repeatNum>1?(e.openBlock(),e.createBlock(e.unref(fN),{key:0,value:f.repeatNum,type:e.unref(m),class:e.normalizeClass(e.unref(s).e("badge"))},null,8,["value","type","class"])):e.createCommentVNode("v-if",!0),e.unref(w)?(e.openBlock(),e.createBlock(e.unref(_r),{key:1,class:e.normalizeClass([e.unref(s).e("icon"),e.unref(_)])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(w))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.renderSlot(f.$slots,"default",{},()=>[f.dangerouslyUseHTMLString?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),e.createElementVNode("p",{class:e.normalizeClass(e.unref(s).e("content")),innerHTML:f.message},null,10,["innerHTML"])],2112)):(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(s).e("content"))},e.toDisplayString(f.message),3))]),f.showClose?(e.openBlock(),e.createBlock(e.unref(_r),{key:2,class:e.normalizeClass(e.unref(s).e("closeBtn")),onClick:e.withModifiers(V,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(a))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],46,["id"]),[[e.vShow,p.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var kN=ta(xN,[["__file","message.vue"]]);let CN=1;const xr=t=>{const n=!t||dn(t)||e.isVNode(t)||Wn(t)?{message:t}:t,o={...Re,...n};if(!o.appendTo)o.appendTo=document.body;else if(dn(o.appendTo)){let a=document.querySelector(o.appendTo);Ob(a)||(jn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),o.appendTo=a}return tr(Ze.grouping)&&!o.grouping&&(o.grouping=Ze.grouping),It(Ze.duration)&&o.duration===3e3&&(o.duration=Ze.duration),It(Ze.offset)&&o.offset===16&&(o.offset=Ze.offset),tr(Ze.showClose)&&!o.showClose&&(o.showClose=Ze.showClose),o},bN=t=>{const n=Qe.indexOf(t);if(n===-1)return;Qe.splice(n,1);const{handler:o}=t;o.close()},NN=({appendTo:t,...n},o)=>{const a=`message_${CN++}`,s=n.onClose,l=document.createElement("div"),r={...n,id:a,onClose:()=>{s==null||s(),bN(d)},onDestroy:()=>{e.render(null,l)}},i=e.createVNode(kN,r,Wn(r.message)||e.isVNode(r.message)?{default:Wn(r.message)?r.message:()=>r.message}:null);i.appContext=o||Kt._context,e.render(i,l),t.appendChild(l.firstElementChild);const c=i.component,d={id:a,vnode:i,vm:c,handler:{close:()=>{c.exposed.visible.value=!1}},props:i.component.props};return d},Kt=(t={},n)=>{if(!Yt)return{close:()=>{}};const o=xr(t);if(o.grouping&&Qe.length){const s=Qe.find(({vnode:l})=>{var r;return((r=l.props)==null?void 0:r.message)===o.message});if(s)return s.props.repeatNum+=1,s.props.type=o.type,s.handler}if(It(Ze.max)&&Qe.length>=Ze.max)return{close:()=>{}};const a=NN(o,n);return Qe.push(a),a.handler};yr.forEach(t=>{Kt[t]=(n={},o)=>{const a=xr(n);return Kt({...a,type:t},o)}});function wN(t){for(const n of Qe)(!t||t===n.props.type)&&n.handler.close()}Kt.closeAll=wN,Kt._context=null;const Pe=Ub(Kt,"$message");function SN({props:t}){const n=e.ref(null),o=e.ref([]),a=e.ref(1),s=e.ref(!0),l=e.ref(10),r=e.ref(0),i=e.ref(null),c=e.ref(!1),p=e.ref(!1),d=e.computed(()=>p.value||c.value),h=e.ref({lat:"",lng:""}),m=e.computed(()=>{const x=Number(h.value.lat);return x<=90&&x>=-90?x:"内容错误"}),_=e.computed(()=>{const x=Number(h.value.lng);return x<=180&&x>=-180?x:"内容错误"});function w(){m.value&&m.value!=="内容错误"&&_&&_.value!=="内容错误"&&g(h.value)}function g(x){if(x.lng&&x.lat){t.h.panTo(t.map,{lng:x.lng,lat:x.lat}),t.h.setZoom(t.map,18);const E=t.h.marker(t.map,[x.lat,x.lng],{icon:'<svg aria-hidden="true" class="animation-marker" style="width: 40px; height: 60px;"><use data-v-19e5a669="" xlink:href="#icon-base-trajectory-personnel"></use></svg>',zIndexOffset:100,iconAnchor:[-20,-30]});setTimeout(()=>{t.h.removeMarker(t.map,E)},3e3),k(1)}}function b(x,E){return D=>{if(!s.value)return!1;s.value=!1,setTimeout(()=>{x(D),s.value=!0},E)}}function C(){console.log("触发加载"),!c.value&&(p.value=!0,r.value++,e.nextTick(()=>{T()}))}function S(){n.value=null,h.value={lat:"",lng:""},k()}function k(x){o.value=[],r.value=1,c.value=!1,p.value=!1,a.value!==5&&e.nextTick(()=>{x!==1&&T()})}function T(){n.value&&n.value.length?a.value===1?V():a.value===4?f():a.value===6&&$():k(1)}async function V(){const x=await t.poi.placeSearch({keywords:n.value,offset:l.value,page:r.value});if(console.log(x),x){const E=x,D=[];for(let L=0;L<E.length;L++){const R=E[L];D.push({...R,id:pt.buildUUID(),address:R.address||R.name,title:u(R.name)})}e.nextTick(()=>{p.value=!1,o.value.push(...D),D.length<l.value&&(r.value+=1,V())})}else p.value=!1,c.value=!0,Pe.error("没有搜索到内容")}async function $(){const x=await Xk({page:r.value-1,size:10,query:n.value});if(x.code===200){const E=x.data.content,D=[];for(let L=0;L<E.length;L++){const R=E[L];D.push({id:R.id,address:R.address||R.pointName,...R,title:u(R.pointName)})}e.nextTick(()=>{p.value=!1,o.value.push(...D),r.value===x.data.totalPages&&(c.value=!0)})}}async function f(){const x=await Df({page:r.value-1,size:10,query:n.value});if(x.code===200){const E=x.data.content,D=[];for(let L=0;L<E.length;L++){const R=E[L];D.push({id:R.id,address:R.address||R.companyName,...R,title:u(R.companyName)})}e.nextTick(()=>{p.value=!1,o.value.push(...D),r.value===x.data.totalPages&&(c.value=!0)})}}function u(x){const E=[];for(let D=0;D<x.length;D++){const L=x[D],R=n.value.indexOf(L),G={content:x[D]};R===-1?G.type=1:G.type=2,E.push(G)}return E}function y(){if(a.value===1)return"请输入地址";if(a.value===4)return"请输入部门名称";if(a.value===6)return"请输入巡查点"}return{$t:N,searchAddress:n,searchResultList:o,searchAddressType:a,valid:s,size:l,page:r,nextPageParams:i,noMore:c,loading:p,disabled:d,mapJumpLocationFn:g,throttle:b,load:C,resetFn:k,searchAddressTypeFn:S,placeholderFn:y,inputSearch:h,showSearchLat:m,showSearchLng:_,searchLngLat:w}}const TN={key:1,style:{width:"26px",height:"26px"},class:"el-markerImgBox centerBox flex items-center justify-center overflow-hidden border border-hy-border-1 rounded-full box-border flex-shrink-0"},EN=["src"],DN={class:"ml_10 ml-[10px]",style:{width:"calc(100% - 34px)"}},$N={class:"title fs_14 c_fff over_one_line fw_600 text-[14px] text-hy-text-main truncate font-bold"},VN={class:"address over_one_line fs_12 c_fff truncate text-[12px] text-hy-text-main"},IN={class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"},AN={class:"ml_20 ml-[20px]"},ON=Fe(e.defineComponent({__name:"map-search-place-item",props:{mapJumpLocationFn:{type:Function,default:()=>null},index:{default:null},searchAddressType:{default:1},source:{default:()=>{}}},setup(t){const n=t,{mapJumpLocationFn:o,index:a,searchAddressType:s,source:l}=n;return(r,i)=>{const c=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("li",{class:"clickBox css-text-no-select cursor-pointer",onClick:i[0]||(i[0]=p=>e.unref(o)(e.unref(l)))},[e.unref(s)===1?(e.openBlock(),e.createBlock(c,{key:0,name:"base-maplocation"})):e.unref(s)===4?(e.openBlock(),e.createElementBlock("div",TN,[e.createElementVNode("img",{src:e.unref(l).orgTypeIcon,class:"w-full h-full"},null,8,EN)])):e.unref(s)===6?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle([{width:"26px",height:"26px"},{backgroundColor:e.unref(l).color}]),class:"el-markerImgBox rounded-full flex-shrink-0"},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",DN,[e.createElementVNode("div",$N,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).title,(p,d)=>(e.openBlock(),e.createElementBlock("span",{key:d,style:e.normalizeStyle({color:p.type===2?"var(--hy-text-primary)":"var(--hy-text-secondary)"})},e.toDisplayString(p.content),5))),128))]),e.createElementVNode("div",VN,e.toDisplayString(e.unref(l).address),1),e.createElementVNode("div",IN,[e.createElementVNode("span",null,"经度:"+e.toDisplayString(e.unref(l).lat),1),e.createElementVNode("span",AN,"维度:"+e.toDisplayString(e.unref(l).lng),1)])])])}}}),[["__scopeId","data-v-7d1ddd51"]]),LN=t=>(e.pushScopeId("data-v-5856b649"),t=t(),e.popScopeId(),t),FN={style:{display:"inline-block","flex-direction":"column",width:"300px"},class:"search_lightColor pos_r relative"},BN={class:"r-f flex"},RN={class:"flex",style:{width:"calc(100% - 42px)"}},PN={key:1,class:"w-[58%] flex justify-between ml-[4px]"},MN={class:"flex flex-col leading-[20px] ml-[10px]"},UN=LN(()=>e.createElementVNode("span",{class:"text-[14px] font-[600] text-hy-text-main mb-[5px]"},"填写经纬度",-1)),WN={class:"text-[12px] text-hy-text-secondary"},zN={class:"text-[12px] text-hy-text-secondary"},HN={key:2,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},jN={key:3,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},kr=Fe(e.defineComponent({__name:"map-search-place",props:{map:{default:()=>null},h:{default:()=>null},poi:{default:()=>null},searchTypes:{default:()=>[{label:"地理地址",value:1},{label:"部门名称",value:4},{label:"查经纬度",value:5},{label:"查巡查点",value:6}]}},setup(t){const n=t,{$t:o,searchAddressType:a,showSearchLat:s,showSearchLng:l,inputSearch:r,searchAddressTypeFn:i,searchAddress:c,searchResultList:p,resetFn:d,loading:h,noMore:m,mapJumpLocationFn:_,placeholderFn:w,load:g,throttle:b,searchLngLat:C}=SN({props:n});return e.onMounted(()=>{var S;a.value=(S=n.searchTypes[0])==null?void 0:S.value}),(S,k)=>{const T=e.resolveComponent("el-option"),V=e.resolveComponent("el-select"),$=e.resolveComponent("el-input"),f=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",FN,[e.createElementVNode("div",BN,[e.createElementVNode("div",RN,[e.createVNode(V,{modelValue:e.unref(a),"onUpdate:modelValue":k[0]||(k[0]=u=>e.isRef(a)?a.value=u:null),style:{width:"38%",border:"1px solid var(--hy-border-2)","box-sizing":"border-box","border-radius":"6px","font-size":"12px"},placeholder:"请选择",onChange:e.unref(i)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.searchTypes,u=>(e.openBlock(),e.createBlock(T,{key:u.value,value:u.value,label:u.label},null,8,["value","label"]))),128))]),_:1},8,["modelValue","onChange"]),e.unref(a)!==5?(e.openBlock(),e.createBlock($,{key:0,modelValue:e.unref(c),"onUpdate:modelValue":k[1]||(k[1]=u=>e.isRef(c)?c.value=u:null),clearable:"",style:{width:"58%",border:"1px solid var(--hy-border-2)","box-sizing":"border-box","border-radius":"6px","margin-left":"4px"},placeholder:e.unref(w)(),onInput:k[2]||(k[2]=e.unref(b)(e.unref(d),1e3))},null,8,["modelValue","placeholder"])):(e.openBlock(),e.createElementBlock("div",PN,[e.createVNode($,{modelValue:e.unref(r).lng,"onUpdate:modelValue":k[3]||(k[3]=u=>e.unref(r).lng=u),placeholder:"经度",class:"!w-[47.5%]",clearable:"",onInput:k[4]||(k[4]=u=>e.unref(pt.onlyNumber)(e.unref(r),"lng"))},null,8,["modelValue"]),e.createVNode($,{modelValue:e.unref(r).lat,"onUpdate:modelValue":k[5]||(k[5]=u=>e.unref(r).lat=u),placeholder:"纬度",class:"!w-[47.5%]",clearable:"",onInput:k[6]||(k[6]=u=>e.unref(pt.onlyNumber)(e.unref(r),"lat"))},null,8,["modelValue"])]))]),e.createElementVNode("div",{class:"searchBox centerBox cursor-pointer flex items-center justify-center",style:{"flex-shrink":"0",display:"flex"},onClick:k[7]||(k[7]=(...u)=>e.unref(d)&&e.unref(d)(...u))},[e.createVNode(f,{name:"base-search","class-name":"w-[16px] h-[16px] text-hy-text-main"})])]),e.unref(p).length?(e.openBlock(),e.createBlock(e.unref(Os),{key:0,"infinite-scroll-disabled":"disabled",class:"filterContentList",style:{height:"400px","overflow-y":"auto"},"data-key":"id","data-sources":e.unref(p),"data-component":ON,keeps:10,"extra-props":{mapJumpLocationFn:e.unref(_),searchAddressType:e.unref(a)},"estimate-size":88,onTobottom:e.unref(g)},null,8,["data-sources","extra-props","onTobottom"])):e.createCommentVNode("",!0),e.unref(a)===5?(e.openBlock(),e.createElementBlock("div",{key:1,class:"flex items-center pt-[15px] pb-[10px] mt-[10px] rounded-[4px] cursor-pointer transition-all hover:bg-hy-dialog-bg-5 active:opacity-70",onClick:k[8]||(k[8]=(...u)=>e.unref(C)&&e.unref(C)(...u))},[e.createVNode(f,{name:"base-maplocation","class-name":"w-[26px] h-[26px] ml-[10px]"}),e.createElementVNode("div",MN,[UN,e.createElementVNode("span",WN,[e.createTextVNode("经度:"),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)==="内容错误"?"text-hy-danger":"")},e.toDisplayString(e.unref(l)||"请输入经度"),3)]),e.createElementVNode("span",zN,[e.createTextVNode("纬度:"),e.createElementVNode("span",{class:e.normalizeClass(e.unref(s)==="内容错误"?"text-hy-danger":"")},e.toDisplayString(e.unref(s)||"请输入纬度"),3)])])])):e.createCommentVNode("",!0),e.unref(h)?(e.openBlock(),e.createElementBlock("p",HN," 加载中... ")):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createElementBlock("p",jN," 没有更多了 ")):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-5856b649"]]);function YN(t){return pe.post({url:"mapRail/findAllWithDevice",data:t,isFormData:!0})}function GN(t){return pe.post({url:"mapRail/deleteBatch",data:t,isFormData:!0})}function qN(t){return pe.post({url:t.id?"mapRail/update":"mapRail/insert",data:t,isJson:!0})}function KN(t){return pe.post({url:"mapRail/select",data:t,isFormData:!0})}function XN(t){const n=t.emit,{mapConfig:o,isShowMap:a,layersUrlList:s,H:l,POI:r}=Ro(),i=e.ref(null),c=e.ref(null),p=e.shallowRef(null),d=e.ref({railName:[{required:!0,message:N("pleaseEnterTheNameOfTheElectronicFence"),trigger:"blur"}]}),h=e.ref({}),m=e.ref(!0),_=e.ref(!1),w=e.ref(100),g=e.ref("fixedPoint"),b=e.ref(null),C=e.ref(!1),S=e.shallowRef(null);e.watch(()=>w.value,P=>{w.value=P.replace(/\D/g,"")});function k(P,M){return F=>{if(!m.value)return!1;m.value=!1,setTimeout(()=>{P(F),m.value=!0},M)}}function T(){let P="";g.value==="fixedPoint"?P=N("mouseClicksOnTheMapAndReleasesToEnd"):g.value==="circle"?P=N("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):P=N("mouseClicksOnTheMapAndRightClicksToEnd"),b.value=P}async function V(){const P=Ye.getCache("userInfo");let M=null;P!=null&&P.lng&&(P!=null&&P.lat)&&(M=[P.lat,P.lng]),(M==null?void 0:M.length)===0&&(M=null),p.value=await l.map("addElectronicFence_container",{maxZoom:o.maxZoom||18,minZoom:o.minZoom||13,zoom:o.zoom||13,center:M,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:s,layerType:1}),p.value.on("complete",F=>{var H;if(console.log("加载完成"),(H=h.value.pointList)!=null&&H.length){const Z=h.value.pointList.map(q=>({lat:q.lat,lng:q.lng}));y(Z)}}),p.value.on("left-click",F=>{E(F)})}function $(){S.value&&(l.removePolygon(p.value,S.value),S.value=null)}function f(){$(),g.value!=="fixedPoint"?u():C.value=!0}function u(){const P={templineStyle:{color:"#2DF2FF"},hintlineStyle:{color:"#2DF2FF",dashArray:[5,5]}};l.pm(p.value,g.value,P,y)}function y(P){S.value=l.polygon(p.value,P,{weight:2,color:"#2DF2FF",opacity:1,fillColor:"#2DF2FF",fillOpacity:.3}),l.fitBounds(p.value,P.map(M=>[M.lat,M.lng])),x()}function x(){l.removePM(p.value)}function E(P){if(C.value){const M=l.searchByCircle({lat:P.latlng.lat,lng:P.latlng.lng},w.value/2);y(M),C.value=!1}}async function D(P){const M=await KN({id:P});M.code===200&&(h.value={...M.data},_.value=!0,e.nextTick(()=>{V()}))}function L(P){var M;h.value={},w.value=100,C.value=!1,$(),g.value="fixedPoint",T(),c.value&&((M=c.value)==null||M.resetFields()),P?D(P):(_.value=!0,e.nextTick(()=>{V()}))}function R(){console.log(S.value)}function G(){var M;R();let P=[];if(S.value&&(P=l.getShapeLatLngs(S.value)),(P==null?void 0:P.length)===0||!S.value)return Pe.error(N("pleaseDrawTheElectronicFence")),!1;(M=c.value)==null||M.validate(async F=>{if(F){const H={railName:h.value.railName};H.pointList=P.map(q=>({lng:q.lng,lat:q.lat})),H.id=h.value.id||null,(await qN(H)).code===200&&(Pe.success(`${N("operationSuccessful")} !`),n("on-submit"),_.value=!1)}})}function B(){n("on-close"),_.value=!1}return{addElectronicFenceContainerRef:i,formRef:c,H:l,map:p,POI:r,isShowMap:a,rules:d,form:h,valid:m,dialogVisible:_,radius:w,mouseToolName:g,tips:b,onClose:B,show:L,onSubmit:G,tipsFn:T,initMap:V,mapRailSelectFn:D,throttle:k,startDraw:f,removePolygon:$}}const JN=t=>(e.pushScopeId("data-v-b8fbad8e"),t=t(),e.popScopeId(),t),ZN={class:"text-hy-text-main"},QN={class:"relative text-hy-text-main text-[18px] text-center p-[20px] font-bold z-[1px] bg-hy-dialog-bg-1 rounded-[12px_12px_0_0] font-[Helvetica]"},vN={class:"dialog_body"},ew={class:""},tw={class:"form-label"},nw={class:"relative flex flex-row h-[50px]"},ow={class:"z-[1]"},aw={class:"form-label"},sw={class:"w-full flex items-center form-item"},lw={class:"form-label"},rw={class:"flex items-center form-item"},iw=JN(()=>e.createElementVNode("span",{class:"text-sm ml-[10px] text-hy-text-secondary flex-shrink"},"M",-1)),cw={class:"flex items-center form-item"},dw={class:"text-xs text-hy-text-secondary flex items-center"},pw={class:"text-hy-main"},fw={class:"text-right mt-[10px]"},hw=Fe(e.defineComponent({__name:"add-electronic-fence",emits:["on-submit","on-close"],setup(t,{expose:n,emit:o}){const a=o,{addElectronicFenceContainerRef:s,formRef:l,rules:r,form:i,dialogVisible:c,radius:p,mouseToolName:d,tips:h,H:m,map:_,POI:w,isShowMap:g,onClose:b,tipsFn:C,show:S,startDraw:k,removePolygon:T,onSubmit:V}=XN({emit:a});return n({show:S}),e.onUnmounted(()=>{m.removeMap(_.value)}),($,f)=>{const u=e.resolveComponent("svg-icon"),y=e.resolveComponent("el-input"),x=e.resolveComponent("el-form-item"),E=e.resolveComponent("el-col"),D=e.resolveComponent("el-option"),L=e.resolveComponent("el-select"),R=e.resolveComponent("el-button"),G=Yo,B=e.resolveComponent("el-icon"),P=e.resolveComponent("el-row"),M=e.resolveComponent("el-form"),F=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(F,{modelValue:e.unref(c),"onUpdate:modelValue":f[4]||(f[4]=H=>e.isRef(c)?c.value=H:null),"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0,"show-close":!1,class:"dialog_clsss",top:"6vh",width:"1200"},{default:e.withCtx(()=>[e.createElementVNode("div",ZN,[e.createElementVNode("div",QN,[e.createElementVNode("span",null,e.toDisplayString(e.unref(N)("electronicFence")),1),e.createElementVNode("div",{class:"absolute top-[15px] right-[15px] cursor-pointer",onClick:f[0]||(f[0]=(...H)=>e.unref(b)&&e.unref(b)(...H))},[e.createVNode(u,{name:"icon-close",width:"26",height:"26","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",vN,[e.createVNode(M,{ref_key:"formRef",ref:l,model:e.unref(i),rules:e.unref(r),"label-width":"0px","label-position":"top",class:"demo-ruleForm"},{default:e.withCtx(()=>[e.createVNode(P,{gutter:20},{default:e.withCtx(()=>[e.createVNode(E,{span:24},{default:e.withCtx(()=>[e.createVNode(x,{prop:"railName"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",ew,e.toDisplayString(e.unref(N)("electronicFenceName")),1)])]),default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(i).railName,"onUpdate:modelValue":f[1]||(f[1]=H=>e.unref(i).railName=H),placeholder:e.unref(N)("pleaseEnterTheNameOfTheElectronicFence"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})]),_:1}),e.createVNode(E,{span:10},{default:e.withCtx(()=>[e.createVNode(x,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",tw,e.toDisplayString(e.unref(N)("electronicFenceRange")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",nw,[e.createElementVNode("div",ow,[e.unref(g)&&e.unref(_)?(e.openBlock(),e.createBlock(kr,{key:0,h:e.unref(m),map:e.unref(_),poi:e.unref(w)},null,8,["h","map","poi"])):e.createCommentVNode("",!0)])])]),_:1})]),_:1}),e.createVNode(E,{span:5},{default:e.withCtx(()=>[e.createVNode(x,{class:"m-0 pl-[20px]"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",aw,e.toDisplayString(e.unref(N)("drawingMethod")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",sw,[e.createVNode(L,{modelValue:e.unref(d),"onUpdate:modelValue":f[2]||(f[2]=H=>e.isRef(d)?d.value=H:null),placeholder:e.unref(N)("pleaseSelectTheDrawingMethod"),class:"!w-full",onChange:e.unref(C)},{default:e.withCtx(()=>[e.createVNode(D,{label:e.unref(N)("fixedPointRange"),value:"fixedPoint"},null,8,["label"]),e.createVNode(D,{label:e.unref(N)("customCircle"),value:"circle"},null,8,["label"]),e.createVNode(D,{label:e.unref(N)("customPolygon"),value:"polygon"},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])])]),_:1})]),_:1}),e.unref(d)==="fixedPoint"?(e.openBlock(),e.createBlock(E,{key:0,span:3},{default:e.withCtx(()=>[e.createVNode(x,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",lw,e.toDisplayString(e.unref(N)("rangeDistance")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",rw,[e.createVNode(y,{modelValue:e.unref(p),"onUpdate:modelValue":f[3]||(f[3]=H=>e.isRef(p)?p.value=H:null),maxlength:"6",placeholder:e.unref(N)("unitMeter"),clearable:""},null,8,["modelValue","placeholder"]),iw])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(E,{span:6},{default:e.withCtx(()=>[e.createVNode(x,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(N)("operationButton")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",cw,[e.createVNode(R,{class:"button_function",onClick:e.unref(k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(N)("startDrawing")),1)]),_:1},8,["onClick"]),e.createVNode(R,{type:"danger",class:"",onClick:e.unref(T)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(N)("clearDrawing")),1)]),_:1},8,["onClick"])])]),_:1})]),_:1}),e.createVNode(E,{span:24},{default:e.withCtx(()=>[e.createVNode(x,null,{default:e.withCtx(()=>[e.unref(g)?(e.openBlock(),e.createElementBlock("div",{key:1,id:"addElectronicFence_container",ref_key:"addElectronicFenceContainerRef",ref:s,class:"z-[0]"},null,512)):(e.openBlock(),e.createBlock(Pn,{key:0,class:"!h-[400px] rounded"})),e.createElementVNode("div",dw,[e.createVNode(B,{class:"text-sm"},{default:e.withCtx(()=>[e.createVNode(G)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(N)("afterClickingToStartDrawing"))+" ",1),e.createElementVNode("span",pw,e.toDisplayString(e.unref(h)),1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"]),e.createElementVNode("div",fw,[e.createVNode(R,{type:"primary",class:"w-[100px]",onClick:e.unref(b)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(N)("close")),1)]),_:1},8,["onClick"]),e.createVNode(R,{class:"w-[100px]",onClick:e.unref(V)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(N)("save")),1)]),_:1},8,["onClick"])])])])]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-b8fbad8e"]]);function mw(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(null),s=e.ref(null),l=e.ref({groupId:null,waterPointTypeId:null});function r(h,m){n("on-map-display-fn",{id:h,type:!m})}const i=e.computed(()=>h=>{var m;return(m=o.value.mapDisplayList)!=null&&m.length?o.value.mapDisplayList.findIndex(w=>w===h)!==-1:!1});function c(h){var m;(m=a.value)==null||m.show(h)}function p(){var h;(h=s.value)==null||h.getTableData(),n("on-get-data")}function d(h){yt({tipsTitle:N("deleteElectronicFence"),tipsContent:`<div><p>${N("confirmToDeleteTheCurrentDeletedElectronicFence")}?</p></div>`,submitBtnText:N("confirm-0")},async()=>{(await GN({ids:h})).code===200&&(n("on-delete",h),he.ElMessage.success(N("deletedSuccessfully")),p())})}return{addElectronicFenceRef:a,AppTableRef:s,requestParams:l,changeFn:r,mapDisplayFn:i,addElectronicFenceShow:c,getData:p,deleteShow:d}}const uw={class:"w-full h-full"},gw={class:"flex items-center justify-center"},_w={class:"ml-[6px]"},yw={class:"flex"},xw=e.defineComponent({__name:"electronic-fence",props:{initParams:{default:()=>{}},mapDisplayList:{default:()=>[]},tableColumns:{default:()=>[{label:N("electronicFenceName"),prop:"railName"},{label:N("operation"),slotName:"operator",width:"200px"}]}},emits:["on-map-display-fn","on-get-data","on-delete"],setup(t,{emit:n}){const o=t,a=n,{addElectronicFenceRef:s,AppTableRef:l,requestParams:r,changeFn:i,mapDisplayFn:c,addElectronicFenceShow:p,getData:d,deleteShow:h}=mw({emit:a,props:o});return e.onMounted(()=>{r.value={...o.initParams}}),(m,_)=>{const w=e.resolveComponent("svg-icon"),g=e.resolveComponent("el-button"),b=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock("div",uw,[e.createVNode(Bo,{ref_key:"AppTableRef",ref:l,height:"100%","show-footer":!0,"search-arr":[{label:e.unref(N)("electronicFenceName"),prop:"railName"}],"column-list":m.tableColumns,"req-url":"mapRail/page","search-form":e.unref(r)},{tableLeft:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(g,{type:"success",class:"",onClick:_[0]||(_[0]=C=>e.unref(p)())},{default:e.withCtx(()=>[e.createElementVNode("div",gw,[e.createVNode(w,{width:"16",height:"16",name:"base-add-3"}),e.createElementVNode("span",_w,e.toDisplayString(e.unref(N)("addElectronicFence")),1)])]),_:1}),e.renderSlot(m.$slots,"operator-left-box")])]),mapDisplay:e.withCtx(({row:C})=>[e.createElementVNode("div",null,[e.createVNode(b,{class:"switch_custom switch_width_60","model-value":e.unref(c)(C.id),"active-text":e.unref(N)("show"),"inactive-text":e.unref(N)("hide"),"inline-prompt":"","active-color":"#5AB95F","inactive-color":"var(--hy-dialog-bg-1)",onClick:S=>e.unref(i)(C.id,e.unref(c)(C.id))},null,8,["model-value","active-text","inactive-text","onClick"])])]),isDefault:e.withCtx(({row:C})=>[e.renderSlot(m.$slots,"isDefault",{row:C})]),operator:e.withCtx(({row:C})=>[e.createElementVNode("div",yw,[e.createVNode(Ke,{name:"icon-edit",tips:e.unref(N)("edit"),onClick:S=>e.unref(p)(C.id)},null,8,["tips","onClick"]),e.createVNode(Ke,{class:"hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-text-danger",name:"base-delete",tips:e.unref(N)("delete"),onClick:S=>e.unref(h)(C.id)},null,8,["tips","onClick"])])]),_:3},8,["search-arr","column-list","search-form"]),e.createVNode(hw,{ref_key:"addElectronicFenceRef",ref:s,onOnSubmit:e.unref(d)},null,8,["onOnSubmit"])])}}});function kw({emit:t,props:n}){const o=e.shallowRef(),a=e.shallowRef(),s=e.ref(),{H:l,POI:r,isShowMap:i,layersUrlList:c,mapConfig:p}=Ro();function d(){i&&e.nextTick(async()=>{const S=Ye.getCache("userInfo");let k=[];S!=null&&S.lng&&(S!=null&&S.lat)&&(k=[S.lat,S.lng]),k.length===0&&(k=null),o.value=await l.map("selectMapLocation",{maxZoom:p.maxZoom||18,minZoom:p.minZoom||13,zoom:p.zoom||13,center:k,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:c,layerType:p.satelliteMap}),o.value.on("complete",()=>{t("on-map-ready"),n.latlng&&g(n.latlng)}),o.value.on("left-click",T=>{s.value=null,m({lng:T.latlng.lng,lat:T.latlng.lat})})})}async function h(S){const k=await r.placeSearch({keywords:S,offset:10,page:1});if(k){const T=k[0];m({lng:T.lng,lat:T.lat})}else t("on-geographical-position",{})}async function m(S){const k=await r.reverseGeocoder(S);if(!(k&&k.address.length)){_(S),Pe({type:"warning",message:"未获取到地址信息"});return}w({lng:S.lng,lat:S.lat,address:k.formatted_address,name:k.formatted_address,...k})}function _(S){s.value={lng:S.lng,lat:S.lat,address:"",name:""},t("on-geographical-position",s.value),g()}function w(S){s.value=S,t("on-geographical-position",S),g()}function g(S){a.value&&l.removeMarker(o.value,a.value);let k,T;S?(k=S.lat,T=S.lng):(k=s.value.lat,T=s.value.lng);let V={icon:'<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAgCAYAAAASYli2AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAFKADAAQAAAABAAAAIAAAAADmfO67AAAEgklEQVRIDbVVXWhcVRCeuXuT3SSmmzQEhFYfRBEapGgfYuiPqYkI/rQBjQo+iK1JLdqKtD6IL3kv9CFBitsKCqYPaRHRVokhJoRKVRQpEsGXPpTkqZifxmw22XvO+M25e9Z7N6lPepa7M2fmmzkzc+acw7TFGBIJbl+nZyzRiyzUKUQ7FMZM8+B/DIgut3fR10PMgKQHp6dEb30vB4ylYRHZrUo4IA/yvKPMNzIBnfxwL88kfXiskw1Oy3EhGSGRTBJ0d54NM58odPM5j6k6HJiUAUu24BWOCmJBnlggFivah6mSCo8SDJ7vCc+ryDk8OiGPijXXhSXrQaqM1QkPmxaIF2MO1vF1ffwU/xqqmYnMGaSarS7pvKpGRyW6eFIz9zqbZZIzUPby6+MbnVGZfnD4mpRY2EogF8gG40FADVZsL6J+DSVwmbn8EgkgusfDjXXpqwaRcMjE1oocGX2u/tNqcESjr34ZjSGaK8gIpUsYABSR9AViqMeim9xn/qFGaHj0cMqZ8zt6KPzGWnvOAmAibGOFKm8M9wSRsfep0CkSFFl9nogsxQJ21WJx3SNPlY+s3RmS4TaL4+AGiKsOqLFSTHlJTDjKLEc2qkkYAOa2AIVaMJGGjyiRuqeYdCV8pNiyNZ2iWITqqfLW2IUAkczBKezhFGfO0ygyH7wwWnoo5QmT/jFpl8i+ryVSZ5463tJ8iMinEPseZ6iZVzYO7L2W7VTfZ6UjdfXZyVyJcn/J+sFyaW0Eu98eL5QwUNMg+I4PfVLcK2KvKaD2IMRG+s8RTiCWkozHqDTtjijgYJ/GQ89eWJmBcn+6qzYvgIsAiwpq78zgEDx+jjLNXD3a/ASaU7PMnBbDZVdktINSV+RK4X2fxjVWvfacJfRwhXKZJfOe+nIOr7zR+BMuh9PaU84I1PWXbhZ4AY0/zyuNF3ZU5JT6iIPT/8roHblzllne1TptPWqqFhf27MTb+VMeHxfDz0CfHF4q4FIYUFGyRglIlYVxYfKdlmNVARiXclJw4ET+TfTWRZ+6p5q69pynqN/F/Sfzx5O2ym+KUIXdUxLan5cuQ3u42ksVsCYdMH9Bj+X7pw9ypPjk2BShKhXYlG15GdFMuB3WY6nHU09HJN821OVf2cqZ2m4ZoSp0PP+RNC4sLI7jZOzTOSK7tn1769NfHeO7XxwKTA/cN0PE3bC/PUvBjg5qWalbGlNMczl8aX72nqX2DrLTKClwqIC/qhRRE+GeQalrbqSmKEvbgg3K53LUiHszizxwu2MIRWFA66USFW09LYfrdGelSKu/FLjs9PiLgTrrl0xLG21Doz6M1+oRaB5A/VrxQOMtiXEoOO5QWqsLaREWN/Gs/dbSQH/AdokuMfog4bC7A0d0kZoyObofh2A3otqFrw1NjheN3MOP/AxkeDLpT9g2Q7hsizQH2+XpS+ou4XB6lqTnQVpFirfg4AbSW0F1WsE3YAGXiUaIBdbwLcLxTfTMLW6kVbWN3f0PNdyibdK7vGsnZUp5xIORWyb5fY7Mv+2yj/Q/o38DhqCjJovBnOsAAAAASUVORK5CYII=" style="width: 20px; height: 32px;" />',zIndexOffset:10,iconAnchor:[-20,-16]};n.markerItemFn&&(V=n.markerItemFn()),o.value.setZoom(18),o.value.panTo([T,k]),a.value=l.marker(o.value,[k,T],V)}function b(){a.value&&l.removeMarker(o.value,a.value)}function C(S){a.value&&l.updateMarkerIcon(a.value,S)}return{H:l,map:o,POI:r,marker:a,isShowMap:i,initMap:d,geographicalPositionFn:w,throughCoordinatePosition:m,placeSearchFn:h,setContentFn:C,removeMarker:b}}const Cw={class:"w-full h-full relative"},bw={key:1,id:"selectMapLocation",ref:"selectMapLocation",class:"w-full h-full"},Nw=Fe(e.defineComponent({__name:"select-map-location",props:{markerItemFn:{type:Function,default:null},latlng:{default:null}},emits:["on-geographical-position","on-map-ready"],setup(t,{expose:n,emit:o}){const a=t,s=o,{isShowMap:l,initMap:r,throughCoordinatePosition:i,placeSearchFn:c,setContentFn:p,removeMarker:d,H:h,map:m,POI:_}=kw({emit:s,props:a});return e.onMounted(()=>{r()}),n({throughCoordinatePosition:i,placeSearchFn:c,setContentFn:p,removeMarker:d,H:h,map:m,POI:_}),(w,g)=>(e.openBlock(),e.createElementBlock("div",Cw,[e.unref(l)?(e.openBlock(),e.createElementBlock("div",bw,null,512)):(e.openBlock(),e.createBlock(Pn,{key:0,class:"absolute top-0 left-0 z-[2]"}))]))}}),[["__scopeId","data-v-e69b3725"]]),ww={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Sw=[e.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864L512 652.672L192.128 340.864a30.592 30.592 0 0 0-42.752 0a29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728a30.592 30.592 0 0 0-42.752 0z"},null,-1)];function Tw(t,n){return e.openBlock(),e.createElementBlock("svg",ww,[...Sw])}const Ew={name:"ep-arrow-down",render:Tw},Dw={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},$w=[e.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32l-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872l319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"},null,-1)];function Vw(t,n){return e.openBlock(),e.createElementBlock("svg",Dw,[...$w])}const Iw={name:"ep-arrow-up",render:Vw},Aw={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Ow=[e.createElementVNode("path",{fill:"currentColor",d:"M672 192L288 511.936L672 832z"},null,-1)];function Lw(t,n){return e.openBlock(),e.createElementBlock("svg",Aw,[...Ow])}const Fw={name:"ep-caret-left",render:Lw};function Cr(t){return pe.post({url:"spotCheck/task/detail",data:t,isFormData:!0})}function Bw(t){return pe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function Rw(t){return pe.post({url:"spotCheck/task/end",data:t,isFormData:!0})}function Pw(t){return pe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function Mw(t){return pe.post({url:t.id?"spotCheck/timing/update":"spotCheck/timing/insert",data:t,isJson:!0})}function Uw(t){return pe.post({url:"spotCheck/template/detail",data:t,isFormData:!0})}function Ww(t){return pe.post({url:t.id?"spotCheck/template/update":"spotCheck/template/insert",data:t,isJson:!0})}function zw(t){return pe.post({url:"spotCheck/task/taskExecute",data:t,isJson:!0})}function br(t){return pe.post({url:"spotCheck/task/pttFile/page",data:t,isFormData:!0})}function Hw(t){return pe.post({url:"spotCheck/task/groupBind",data:t,isJson:!0})}function jw({props:t,emit:n}){const o=e.ref(null),a=e.ref(0),s=e.ref(0),l=e.ref(0),r=e.ref(0),i=e.ref(0),c=e.ref(0),p=e.ref([]);function d(b){const{deviceId:C,checkStatus:S}=b||{};if(!C)return;const k=p.value.findIndex(T=>T.deviceId===C);if(k!==-1){switch(p.value[k].checkStatus){case 1:a.value--;break;case 2:s.value--;break}switch(S){case 2:s.value++;break;case 3:l.value++;break;case 4:r.value++;break}e.nextTick(()=>{m(),p.value[k].checkStatus=S})}}function h(){let b=0,C=0,S=0,k=0,T=0,V=0;p.value.forEach($=>{const f=$.checkStatus,u=$.intercomGroupTem,y=$.onlineState;switch(u===1&&V++,y===2&&T++,f){case 1:b++;break;case 2:C++;break;case 3:S++;break;case 4:k++;break}}),e.nextTick(()=>{a.value=b,s.value=C,l.value=S,r.value=k,i.value=T,c.value=V,m()})}function m(){n("on-countStatus",{beReceiveNum:a.value,receivingNum:s.value,finishNum:l.value,notFinishNum:r.value,offLineNum:i.value,intercomGroupTemNum:c.value})}function _(){o.value}function w(){}async function g(b){const{code:C,data:S=[]}=await Bw({taskId:t.form.id,checkStatus:b||null});C===200&&(p.value=S,t.subscribeStatus&&h(),n("change",p.value))}return{uniqueId:o,beReceiveNum:a,receivingNum:s,finishNum:l,notFinishNum:r,offLineNum:i,intercomGroupTemNum:c,taskDeviceList:p,setDeviceStatus:d,initDeviceStatusList:h,onCountStatus:m,spotCheckSubscribe:_,spotCheckUnsubscribe:w,getData:g}}const Yw={class:"h-[58px] bg-hy-dialog-bg-2 border border-box border-hy-border-2 rounded px-2 box-border flex items-center"},Gw={class:"relative"},qw={class:"w-[16px] text-hy-text-main h-[16px] bg-hy-danger flex items-center justify-center absolute -top-[2px] -right-[4px] rounded-full text-xs font-bold"},Kw={class:"scale-75"},Xw={class:"w-[16px] text-hy-text-main h-[16px] bg-hy-danger flex items-center justify-center absolute -top-[2px] -right-[4px] rounded-full text-xs font-bold"},Jw={class:"flex-grow w-0 flex"},Zw={class:"mx-2 flex-grow w-0"},Qw={class:"truncate"},vw={class:"text-hy-text-secondary truncate"},e0={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},t0={class:"r-f tac flex items-center justify-center flex-col"},n0={class:"mt-3"},na=e.defineComponent({__name:"spot-check-task-device",props:{subscribeStatus:{type:Boolean,default:!0},form:{default:{}},paramsSpan:{default:24}},emits:["on-countStatus"],setup(t,{emit:n}){const o=t,a=n,{taskDeviceList:s,spotCheckUnsubscribe:l,uniqueId:r,spotCheckSubscribe:i,getData:c}=jw({props:o,emit:a});return e.onMounted(()=>{r.value=o.form.uniqueId,o.subscribeStatus&&i(),c()}),e.onUnmounted(()=>{l()}),(p,d)=>{const h=e.resolveComponent("el-tooltip"),m=e.resolveComponent("svg-icon"),_=e.resolveComponent("el-col"),w=e.resolveComponent("el-row");return e.openBlock(),e.createBlock(w,{gutter:8,class:"h-full"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),g=>(e.openBlock(),e.createBlock(_,{key:g.id,span:p.paramsSpan,class:"mb-2"},{default:e.withCtx(()=>[e.createElementVNode("div",Yw,[e.createElementVNode("div",Gw,[e.createVNode(Ht,{class:"w-[36px] h-[36px]"}),g.intercomGroupTem===1?(e.openBlock(),e.createBlock(h,{key:0,class:"item",effect:"dark",content:e.unref(N)("theDeviceWasInATemporaryGroupWhenTheSpotCheckWasInitiated"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",qw,[e.createElementVNode("span",Kw,e.toDisplayString(e.unref(N)("lin")),1)])]),_:1},8,["content"])):g.onlineState===2?(e.openBlock(),e.createBlock(h,{key:1,class:"item",effect:"dark",content:e.unref(N)("theDeviceWasOfflineWhenTheSpotCheckWasInitiated"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",Xw,[e.createVNode(m,{name:"icon-off-line","class-name":"!w-[10px] !h-[14px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Jw,[e.createElementVNode("div",Zw,[e.createElementVNode("p",Qw,e.toDisplayString(g.devName),1),e.createElementVNode("p",vw,e.toDisplayString(g.deviceId),1)]),e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",{class:"border-info bg-hy-info/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(N)("toBeReceived-1")),513),[[e.vShow,g.checkStatus===1]]),e.withDirectives(e.createElementVNode("div",{class:"border-warning bg-hy-warning/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(N)("receiving-1")),513),[[e.vShow,g.checkStatus===2]]),e.withDirectives(e.createElementVNode("div",{class:"w-[54px] border-success bg-hy-success/50 border rounded px-2 flex items-center justify-center h-[24px] box-border whitespace-nowrap"},e.toDisplayString(e.unref(N)("completed-0")),513),[[e.vShow,g.checkStatus===3]]),e.withDirectives(e.createElementVNode("div",{class:"border-hy-danger bg-hy-danger/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(N)("uncompleted-0")),513),[[e.vShow,g.checkStatus===4]])])])])]),_:2},1032,["span"]))),128)),e.unref(s).length===0?(e.openBlock(),e.createBlock(_,{key:0,span:24,class:"h-full"},{default:e.withCtx(()=>[e.createElementVNode("div",e0,[e.createElementVNode("div",t0,[e.createVNode(m,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",n0,e.toDisplayString(e.unref(N)("noData")),1)])])]),_:1})):e.createCommentVNode("",!0)]),_:1})}}});function o0({props:t}){const n=e.ref(null),o=e.ref(""),a=e.ref(!1),s=e.ref(null),l=e.ref(0),r=e.ref(0),i=e.ref([]),c=e.ref(null),p=e.ref(null),d=e.ref(null),h=e.ref(!0),m=e.ref(null),_=e.ref(),w=e.ref();function g(){n.value=t.orgGroupInsertTemp.id,i.value=[],h.value=!0,C(),e.nextTick(()=>{V()})}function b(){if(!t.realtimeRequestType)return;const y=async()=>{const x=i.value[i.value.length-1];if(!x){y();return}const E={page:0,taskId:t.taskId,largeThenTimestamp:x.fileTimestamp},D=c.value.scrollTop,L=c.value.offsetHeight-46,R=document.querySelector(`#item-${x.id}`);if(R){const G=R.offsetTop,B=await br(E);if(B.code===200){const{content:P=[],totalElements:M=0}=B.data;l.value=M,e.nextTick(()=>{P.forEach(F=>{i.value.findIndex(Z=>Z.id===F.id)===-1&&i.value.push(F)}),D>=G-L&&T()})}}};m.value&&clearInterval(m.value),m.value=setInterval(()=>{y()},1e4)}async function C(){var L;let y=null;i.value.length&&(y=i[0].value.id);const E={page:0,taskId:t.taskId,lessThenTimestamp:(L=i.value[0])==null?void 0:L.fileTimestamp};s.value=null,a.value=!0,b();const D=await br(E);if(D.code===200){const{content:R=[],totalElements:G=0}=D.data;l.value=G,e.nextTick(()=>{var B;y?R.forEach(P=>{const M=i.value.findIndex(F=>F.id===P.id);P.fileDtmEnd||(P.fileDtmEnd=""),M===-1&&i.value.unshift(P)}):i.value=R.reverse(),y?(S(y),s.value=(B=i.value[this.chatMessageList.length-1])==null?void 0:B.id):T(),e.nextTick(()=>{a.value=!1})})}}function S(y){e.nextTick(()=>{c.value.scrollTo(0,document.querySelector(`#item-${y}`).offsetTop-46)})}function k(){l.value!==0&&C()}function T(){e.nextTick(()=>{c.value.scrollTo(0,c.value.scrollHeight)})}function V(){c.value=_.value,p.value=w.value,p.value.addEventListener("ended",()=>{f(),d.value=null}),c.value.onscroll=()=>{c.value.scrollTop===0&&k()}}function $(){h.value=!1,p.value.play()}function f(){h.value=!0,p.value.pause()}function u(y){}return{$t:N,groupId:n,audioUrl:o,loading:a,newScrollTop:s,totalElements:l,page:r,chatMessageList:i,chatMessageListEl:c,audioEl:p,mediaFileId:d,audioType:h,timer:m,chatMessageListRef:_,audioElRef:w,init:g,getNewData:b,getData:C,scrollToMsg:S,topEvent:k,scrollToBottom:T,initScrollList:V,audioPlay:$,audioPause:f,getAudioContext:u}}const a0=["element-loading-text"],s0={key:0,class:"w-full h-full flex box-border items-center justify-center text-center text-hy-text-secondary"},l0={class:""},r0={class:"mt-5"},i0=["id"],c0={key:0,class:"min-w-[72px] p-1 bg-hy-dialog-bg-4 text-center rounded mb-2"},d0={key:1,class:"h-[50px] flex items-center w-full"},p0={class:"mr-2 flex-grow w-0 flex flex-col items-end"},f0={class:"w-full flex items-center justify-end"},h0=["onClick"],m0=["onClick"],u0={class:"font-bold flex-shrink-0"},g0={class:"flex-shrink-0 ml-1"},_0={key:0},y0={key:2,class:"h-[50px] flex items-center w-full"},x0={class:"ml-2 flex-grow w-0 flex flex-col items-start"},k0={class:"w-full flex items-center"},C0=["onClick"],b0={class:"flex-shrink-0 mr-1"},N0={key:0},w0={class:"font-bold flex-shrink-0"},S0=["onClick"],T0=e.defineComponent({__name:"talkback-reply",props:{realtimeRequestType:{type:Boolean,default:!0},taskId:{default:null},orgGroupInsertTemp:{default:()=>({id:971})}},setup(t){const n=t,o={},{$t:a,loading:s,chatMessageList:l,mediaFileId:r,audioType:i,getAudioContext:c,init:p,timer:d,chatMessageListRef:h,audioElRef:m}=o0({props:n});return e.onMounted(()=>{p()}),e.onUnmounted(()=>{d.value&&clearInterval(d.value)}),(_,w)=>{const g=e.resolveComponent("svg-icon"),b=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(a)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"w-full h-full p-1 box-border relative z-10"},[e.createElementVNode("audio",{id:"audio-el",ref_key:"audioElRef",ref:m,class:"absolute"},null,512),e.createElementVNode("div",{id:"chatMessageList",ref_key:"chatMessageListRef",ref:h,class:"w-full h-full overflow-auto bg-hy-dialog-bg-2 text-hy-text-main text-xs"},[e.unref(l).length===0?(e.openBlock(),e.createElementBlock("div",s0,[e.createElementVNode("div",l0,[e.createElementVNode("div",null,[e.createVNode(g,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"})]),e.createElementVNode("div",r0,[e.createElementVNode("p",null,e.toDisplayString(e.unref(a)("noMemberRespondedAtTheMoment")),1)])])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(C,S)=>(e.openBlock(),e.createElementBlock("div",{id:`item-${C.id}`,key:C.id,class:"p-2 box-border flex flex-col items-center"},[C.fileDtmEnd.split(" ")[0]!==(S>0&&e.unref(l)[S-1].fileDtmEnd.split(" ")[0])?(e.openBlock(),e.createElementBlock("div",c0,e.toDisplayString(C.fileDtmEnd.split(" ")[0]),1)):e.createCommentVNode("",!0),C.devUserId===o.id?(e.openBlock(),e.createElementBlock("div",d0,[e.createElementVNode("div",p0,[e.createElementVNode("div",null,e.toDisplayString(C.devUserName)+" ("+e.toDisplayString(C.serialNum||C.devUserId)+") ",1),e.createElementVNode("div",f0,[e.unref(r)===C.mediaFileId&&e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mr-1 mt-1 rounded-[4px] p-[4px_8px] bg-hy-dialog-bg-3/50 text-hy-text-secondary text-xs scale-90 cursor-pointer",onClick:k=>e.unref(c)(C.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,h0)):e.createCommentVNode("",!0),e.createElementVNode("div",{style:e.normalizeStyle({width:C.audioLength>=60?"70%":`calc(${C.audioLength/60*90}px + 160px)`,background:e.unref(r)===C.mediaFileId?"var(--linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%))":"var(--hy-dialog-bg-3)"}),class:e.normalizeClass([{"!border-hy-border-1 !shadow-hy-border-1":e.unref(r)===C.mediaFileId},"max-w-[70%] h-[28px] flex items-center p-[6px] box-border mt-1 rounded-[4px_0_4px_4px] justify-between relative z-10 cursor-pointer border border-hy-border-2 shadow-[0_0_4px_0] shadow-hy-dialog-bg-1"]),onClick:k=>e.unref(c)(C.mediaFileId)},[e.createElementVNode("div",u0,e.toDisplayString(C.audioLength)+"” ",1),e.createElementVNode("div",g0,[C.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",_0,e.toDisplayString(C.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)])],14,m0)])]),e.createVNode(Ht,{class:"w-[32px] h-[32px]"})])):(e.openBlock(),e.createElementBlock("div",y0,[e.createVNode(Ht,{class:"w-[32px] h-[32px]"}),e.createElementVNode("div",x0,[e.createElementVNode("div",null,e.toDisplayString(C.devUserName)+" ("+e.toDisplayString(C.serialNum||C.devUserId)+") ",1),e.createElementVNode("div",k0,[e.createElementVNode("div",{style:e.normalizeStyle({width:C.audioLength>=60?"70%":`calc(${C.audioLength/60*90}px + 160px)`,background:e.unref(r)===C.mediaFileId?"var(--linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%))":"var(--hy-dialog-bg-3)"}),class:e.normalizeClass([{"!border-hy-border-1 !shadow-hy-border-1":e.unref(r)===C.mediaFileId},"max-w-[70%] h-[28px] flex items-center p-[6px] box-border mt-1 rounded-[0_4px_4px] justify-between relative z-10 cursor-pointer border border-hy-border-2 shadow-[0_0_4px_0] shadow-hy-dialog-bg-1"]),onClick:k=>e.unref(c)(C.mediaFileId)},[e.createElementVNode("div",b0,[C.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",N0,e.toDisplayString(C.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",w0,e.toDisplayString(C.audioLength)+"” ",1)],14,C0),e.unref(r)===C.mediaFileId&&e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"ml-1 mt-1 rounded-[4px] p-[4px_8px] bg-hy-dialog-bg-3/50 text-hy-text-secondary text-xs scale-90 cursor-pointer",onClick:k=>e.unref(c)(C.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,S0)):e.createCommentVNode("",!0)])])]))],8,i0))),128))],512)],8,a0)),[[b,e.unref(s)]])}}});function E0(){const t=e.ref({}),n=e.ref(!1),o=e.ref(null),a=e.ref(0),s=e.ref(!1),l=e.ref([]),r=e.ref(!1),i=e.ref(!1),c=e.ref();async function p(){await Hw({groupId:o.value,taskId:t.value.id})}function d(){var f;l.value.length!==0&&((f=c.value)==null||f.orgGroupInsertTempFn([...l.value],{openRecording:1}).then(u=>{o.value=u,e.nextTick(()=>{p()}),_(!1)}).catch(()=>{o.value=null,n.value=!0,_(!1)}))}function h(f=[]){l.value=f,_(!1),t.value.checkStyle===2&&d()}function m(f={}){const{beReceiveNum:u=0,receivingNum:y=0,finishNum:x=0,notFinishNum:E=0,offLineNum:D=0,intercomGroupTemNum:L=0}=f;t.value.beReceiveNum=u,t.value.receivingNum=y,t.value.finishNum=x,t.value.notFinishNum=E,t.value.offLineNum=D,t.value.intercomGroupTemNum=L}function _(f){s.value=f}function w(){r.value=!r.value}async function g(f){const{code:u,data:y={}}=await Cr({id:f});u===200&&(t.value={...y},t.value.checkNum===0&&h([]),t.value.checkStyle===2&&(t.value.actionType=null),b(!0))}function b(f){i.value=f}function C(){}function S(f){if(i.value){Pe.warning(N("currentlySpotCheckInProgressPleaseProcessLater"));return}o.value=null,n.value=!1,t.value={},_(!0),g(f)}function k(){i.value=!1}function T(){yt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:N("cancelSpotCheck"),tipsContent:`<div><p>${N("confirmToCancelThisSpotCheck")}?</p><p>${this.$t("cancelMidwayYouWillNotBeAbleToRetrieveOrViewAnyInformationOfThisSpotCheck")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:N("returnToSpotCheck"),submitBtnText:N("cancelSpotCheck"),submitBtnType:"danger"},()=>{$(3)})}function V(){let f=N("afterTheCheck,YouCanViewTheSpotCheckInformationInTheSpotCheckModule");(t.value.beReceiveNum!==0||t.value.receivingNum!==0)&&(f=N("thereAreStillDevicesInTheReceivingProcessTheSystemWillMarkTheseDevicesAsUnfinished")),yt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:N("endSpotCheck"),tipsContent:`<div><p>${N("confirmToEndThisSpotCheck")}?</p><p>${f}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:N("returnToSpotCheck"),submitBtnText:N("endSpotCheck")},()=>{$(2)})}async function $(f){var y;const{code:u}=await Rw({taskId:t.value.id,checkStatus:f});u===200&&(f===2&&(Pe.success(N("theSpotCheckHasBeenCompletedYouCanViewDetailedInformationRecordsInTheSpotCheckModule")),t.value.checkStyle===2&&o.value&&((y=c.value)==null||y.onClose())),k())}return{form:t,groupType:n,groupId:o,dragLevel:a,loading:s,taskDeviceList:l,msgContentType:r,dialogVisible:i,multiPersonIntercomSpotCheckRef:c,taskGroupBind:p,orgGroupInsertTemp:d,spotCheckTaskDeviceChange:h,spotCheckTaskDeviceCountStatus:m,setLoading:_,setMsgContentType:w,setDialogVisible:b,show:S,close:k,onClose:T,onSubmit:V,taskEnd:$,setDragLevel:C,$t:N}}const D0=t=>(e.pushScopeId("data-v-e246ad8e"),t=t(),e.popScopeId(),t),$0={class:"el-dialog__header !p-0"},V0={class:"el-dialog__body !p-[8px_0px_8px] sideFoot_content h-[700px] flex flex-col text-main text-xs"},I0={class:"h-[40px] flex items-center px-4 mb-1"},A0={class:"font-bold bg-hy-main/20 border border-hy-border-1/50 rounded px-2 flex items-center justify-center h-[24px] flex-shrink-0"},O0={key:0,class:"ml-3"},L0={class:"text-hy-text-secondary"},F0={key:1,class:"ml-3"},B0={class:"text-hy-text-secondary"},R0={class:"font-bold"},P0=["element-loading-text"],M0={key:0,class:"w-full h-full flex flex-col box-border"},U0={class:"flex-shrink-0 mb-3 px-4"},W0={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},z0={class:"flex w-full"},H0={class:"flex-shrink-0"},j0={class:"text-right font-bold flex-grow w-0"},Y0={class:"flex w-full text-hy-text-secondary"},G0={class:"flex-shrink-0"},q0={class:"text-right flex-grow w-0"},K0={class:"flex w-full text-hy-text-secondary"},X0={class:"flex-shrink-0"},J0={class:"text-right flex-grow w-0"},Z0={class:"text-xs p-2 leading-[22px]"},Q0={class:"flex w-full"},v0={class:"flex-shrink-0 tracking-[4px]"},eS={class:"text-right font-bold flex-grow w-0"},tS={class:"flex w-full"},nS={class:"flex-shrink-0 tracking-[4px]"},oS={class:"text-right font-bold flex-grow w-0"},aS={class:"flex w-full"},sS={class:"flex-shrink-0 tracking-[4px]"},lS={class:"text-right font-bold flex-grow w-0 text-hy-success"},rS={class:"flex w-full"},iS={class:"flex-shrink-0 tracking-[4px]"},cS={class:"text-right font-bold flex-grow w-0 text-hy-danger"},dS={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},pS={class:"flex-1 flex"},fS={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},hS={class:"flex-grow w-0 text-center truncate"},mS={class:"flex-1 flex"},uS={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},gS={class:"flex-grow w-0 text-center text-hy-success truncate"},_S={class:"flex-1 flex"},yS={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},xS={class:"flex-grow w-0 text-center text-hy-danger truncate"},kS={class:"w-full px-2 leading-[22px] box-border rounded bg-hy-dialog-bg-3 h-[28px] flex items-center justify-between"},CS={class:"flex"},bS={key:0,class:"ml-2 bg-hy-dialog-bg-1 h-[22px] px-2 rounded"},NS={class:"w-[400px]"},wS={class:""},SS={key:0,class:"box-border flex-grow h-0 flex px-2"},TS={class:"flex-grow w-0 px-2 overflow-x-hidden overflow-y-auto h-full"},ES={key:0,class:"w-[66%] box-border pr-2"},DS={class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},$S={key:1,class:"flex-grow h-0 px-4"},VS={class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},IS={class:"r-f tac flex text-center"},AS={class:"mt-3"},OS={class:"mt-1"},LS={key:1,class:"w-full h-full"},FS={key:0,class:"w-full h-full flex px-4 box-border"},BS={class:"flex flex-col w-[33%]"},RS={class:"pr-2"},PS={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},MS={class:"flex w-full"},US={class:"flex-shrink-0"},WS={class:"text-right font-bold flex-grow w-0"},zS={class:"flex w-full text-hy-text-secondary"},HS={class:"flex-shrink-0"},jS={class:"text-right flex-grow w-0"},YS={class:"flex w-full text-hy-text-secondary"},GS={class:"flex-shrink-0"},qS={class:"text-right flex-grow w-0"},KS={class:"text-xs p-2 leading-[22px]"},XS={key:0,class:"flex w-full"},JS={class:"flex-shrink-0 tracking-[4px]"},ZS={class:"text-right font-bold flex-grow w-0"},QS={key:1,class:"flex w-full"},vS={class:"flex-shrink-0 tracking-[4px]"},eT={class:"text-right font-bold flex-grow w-0"},tT={class:"flex w-full"},nT={class:"flex-shrink-0 tracking-[4px]"},oT={class:"text-right font-bold flex-grow w-0 text-hy-success"},aT={class:"flex w-full"},sT={class:"flex-shrink-0 tracking-[4px]"},lT={class:"text-right font-bold flex-grow w-0 text-hy-danger"},rT={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},iT={class:"flex-1 flex"},cT={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},dT={class:"flex-grow w-0 text-center truncate"},pT={class:"flex-1 flex"},fT={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},hT={class:"flex-grow w-0 text-center text-hy-success truncate"},mT={class:"flex-1 flex"},uT={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},gT={class:"flex-grow w-0 text-center text-hy-danger truncate"},_T={class:"flex-grow h-0 mt-2 overflow-x-hidden overflow-y-auto pr-2 box-border"},yT={class:"flex-grow w-0 flex flex-col"},xT=D0(()=>e.createElementVNode("div",{class:"flex-grow h-0 overflow-hidden"},null,-1)),kT={key:0,class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-backgroundv2 box-border border border-hy-border-2 rounded"},CT={class:"r-f tac flex text-center"},bT={class:"mt-5"},NT={key:1,class:"flex-grow h-full px-4"},wT={class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},ST={class:"r-f tac flex text-center"},TT={class:"mt-3"},ET={class:"mt-1"},DT={class:"h-[50px] flex items-center justify-between flex-shrink-0 px-4 mt-1"},$T={class:"text-hy-text-secondary text-xs"},VT={key:0},IT={key:1},AT={key:0},OT={key:1},LT={key:2},FT=Fe(e.defineComponent({__name:"view-spot-check",setup(t){const{dialogVisible:n,dragLevel:o,setDragLevel:a,form:s,$t:l,loading:r,setMsgContentType:i,msgContentType:c,spotCheckTaskDeviceChange:p,spotCheckTaskDeviceCountStatus:d,groupType:h,onClose:m,onSubmit:_}=E0();return(w,g)=>{const b=e.resolveComponent("svg-icon"),C=e.resolveComponent("el-popover"),S=e.resolveComponent("el-col"),k=Fw,T=e.resolveComponent("el-icon"),V=e.resolveComponent("el-tooltip"),$=e.resolveComponent("el-row"),f=Yo,u=e.resolveComponent("el-button"),y=e.resolveDirective("loading");return e.unref(n)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"el-dialog sideFootBox",style:e.normalizeStyle([{width:"830px"},{"z-index":e.unref(o)}]),onClick:g[2]||(g[2]=(...x)=>e.unref(a)&&e.unref(a)(...x))},[e.createElementVNode("div",$0,[e.createElementVNode("div",V0,[e.createElementVNode("div",I0,[e.createElementVNode("div",A0,e.toDisplayString(e.unref(l)("initiate"))+e.toDisplayString(e.unref(s).checkStyle===1?e.unref(l)("message"):e.unref(l)("call"))+e.toDisplayString(e.unref(l)("spotCheck")),1),e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("div",O0,[e.createElementVNode("span",L0,e.toDisplayString(e.unref(l)("responseMethod")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(s).actionType===1?e.unref(l)("punchIn"):e.unref(l)("reply")),1)])):e.createCommentVNode("",!0),e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("div",F0,[e.createElementVNode("span",B0,e.toDisplayString(e.unref(l)("responseTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",R0,e.toDisplayString(e.unref(s).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(l)("second")),1)])])):e.createCommentVNode("",!0)]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(l)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0"},[e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("div",M0,[e.createElementVNode("div",U0,[e.createVNode($,{gutter:8},{default:e.withCtx(()=>[e.createVNode(S,{span:8},{default:e.withCtx(()=>[e.createVNode(C,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",dS,[e.createElementVNode("div",pS,[e.createElementVNode("div",fS,[e.createVNode(b,{name:"base-every-day-many-people","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",hS,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("div",mS,[e.createElementVNode("div",uS,[e.createVNode(b,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",gS,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("div",_S,[e.createElementVNode("div",yS,[e.createVNode(b,{name:"base-danger-state","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",xS,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("ul",W0,[e.createElementVNode("li",z0,[e.createElementVNode("span",H0,e.toDisplayString(e.unref(l)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",j0,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("li",Y0,[e.createElementVNode("span",G0,e.toDisplayString(e.unref(l)("offlineStatus")),1),e.createElementVNode("div",q0,e.toDisplayString(e.unref(s).offLineNum||"- -"),1)]),e.createElementVNode("li",K0,[e.createElementVNode("span",X0,e.toDisplayString(e.unref(l)("temporaryGroups")),1),e.createElementVNode("div",J0,e.toDisplayString(e.unref(s).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",Z0,[e.createElementVNode("li",Q0,[e.createElementVNode("span",v0,e.toDisplayString(e.unref(l)("waitingToReceive")),1),e.createElementVNode("div",eS,e.toDisplayString(e.unref(s).beReceiveNum||"- -"),1)]),e.createElementVNode("li",tS,[e.createElementVNode("span",nS,e.toDisplayString(e.unref(l)("receiving")),1),e.createElementVNode("div",oS,e.toDisplayString(e.unref(s).receivingNum||"- -"),1)]),e.createElementVNode("li",aS,[e.createElementVNode("span",sS,e.toDisplayString(e.unref(l)("completed")),1),e.createElementVNode("div",lS,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("li",rS,[e.createElementVNode("span",iS,e.toDisplayString(e.unref(l)("uncompleted")),1),e.createElementVNode("div",cS,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])])]),_:1})]),_:1}),e.createVNode(S,{span:16},{default:e.withCtx(()=>[e.createElementVNode("div",kS,[e.createElementVNode("div",CS,[e.createTextVNode(e.toDisplayString(e.unref(l)("messageContent"))+" ",1),e.unref(s).playMsg===1?(e.openBlock(),e.createElementBlock("div",bS," TTS"+e.toDisplayString(e.unref(l)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"css-text-no-select cursor-pointer hover:opacity-60",onClick:g[1]||(g[1]=(...x)=>e.unref(i)&&e.unref(i)(...x))},[e.createVNode(V,{modelValue:e.unref(c),"onUpdate:modelValue":g[0]||(g[0]=x=>e.isRef(c)?c.value=x:null),class:"item",placement:"bottom-end",trigger:"manual"},{content:e.withCtx(()=>[e.createElementVNode("div",NS,e.toDisplayString(e.unref(s).msgContent),1)]),default:e.withCtx(()=>[e.createElementVNode("span",wS,[e.createTextVNode(e.toDisplayString(e.unref(l)("viewContent"))+" ",1),e.createVNode(T,{class:e.normalizeClass(["text-sm duration-500",{"-rotate-90":e.unref(c)}])},{default:e.withCtx(()=>[e.createVNode(k)]),_:1},8,["class"])])]),_:1},8,["modelValue"])])])]),_:1})]),_:1})]),e.unref(s).checkNum!==0?(e.openBlock(),e.createElementBlock("div",SS,[e.createElementVNode("div",TS,[e.unref(s).id?(e.openBlock(),e.createBlock(na,{key:0,ref:"spotCheckTaskDeviceRef","params-span":e.unref(s).actionType===1?8:24,form:e.unref(s),onChange:e.unref(p),onOnCountStatus:e.unref(d)},null,8,["params-span","form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)]),e.unref(s).actionType===2?(e.openBlock(),e.createElementBlock("div",ES,[e.createElementVNode("div",DS,[e.unref(s).id?(e.openBlock(),e.createBlock(T0,{key:0,ref:"talkbackReplyRef","task-id":e.unref(s).id},null,8,["task-id"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",$S,[e.createElementVNode("div",VS,[e.createElementVNode("div",IS,[e.createVNode(b,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",AS,e.toDisplayString(e.unref(l)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",OS,e.toDisplayString(e.unref(l)("cannotSupportThisSpotCheck")),1)])])]))])):(e.openBlock(),e.createElementBlock("div",LS,[e.unref(s).checkNum!==0?(e.openBlock(),e.createElementBlock("div",FS,[e.createElementVNode("div",BS,[e.createElementVNode("div",RS,[e.createVNode(C,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",rT,[e.createElementVNode("div",iT,[e.createElementVNode("div",cT,[e.createVNode(b,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",dT,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("div",pT,[e.createElementVNode("div",fT,[e.createVNode(b,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",hT,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("div",mT,[e.createElementVNode("div",uT,[e.createVNode(b,{name:"base-danger-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",gT,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("ul",PS,[e.createElementVNode("li",MS,[e.createElementVNode("span",US,e.toDisplayString(e.unref(l)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",WS,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("li",zS,[e.createElementVNode("span",HS,e.toDisplayString(e.unref(l)("offlineStatus")),1),e.createElementVNode("div",jS,e.toDisplayString(e.unref(s).offLineNum||"- -"),1)]),e.createElementVNode("li",YS,[e.createElementVNode("span",GS,e.toDisplayString(e.unref(l)("temporaryGroups")),1),e.createElementVNode("div",qS,e.toDisplayString(e.unref(s).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",KS,[e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("li",XS,[e.createElementVNode("span",JS,e.toDisplayString(e.unref(l)("waitingToReceive")),1),e.createElementVNode("div",ZS,e.toDisplayString(e.unref(s).beReceiveNum||"- -"),1)])):e.createCommentVNode("",!0),e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("li",QS,[e.createElementVNode("span",vS,e.toDisplayString(e.unref(l)("receiving")),1),e.createElementVNode("div",eT,e.toDisplayString(e.unref(s).receivingNum||"- -"),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",tT,[e.createElementVNode("span",nT,e.toDisplayString(e.unref(l)("completed")),1),e.createElementVNode("div",oT,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("li",aT,[e.createElementVNode("span",sT,e.toDisplayString(e.unref(l)("uncompleted")),1),e.createElementVNode("div",lT,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),_:1})]),e.createElementVNode("div",_T,[e.unref(s).id?(e.openBlock(),e.createBlock(na,{key:0,ref:"spotCheckTaskDeviceRef","params-span":24,form:e.unref(s),onChange:e.unref(p),onOnCountStatus:e.unref(d)},null,8,["form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",yT,[xT,e.unref(h)?(e.openBlock(),e.createElementBlock("div",kT,[e.createElementVNode("div",CT,[e.createVNode(b,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"}),e.createElementVNode("div",bT,e.toDisplayString(e.unref(l)("groupMemberStatusAbnormalityPreventsSpotCheck")),1)])])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",NT,[e.createElementVNode("div",wT,[e.createElementVNode("div",ST,[e.createVNode(b,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",TT,e.toDisplayString(e.unref(l)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",ET,e.toDisplayString(e.unref(l)("cannotSupportThisSpotCheck")),1)])])]))]))],8,P0)),[[y,e.unref(r)]]),e.createElementVNode("div",DT,[e.createElementVNode("div",$T,[e.createElementVNode("div",null,[e.createVNode(T,{class:"mr-1 text-sm"},{default:e.withCtx(()=>[e.createVNode(f)]),_:1}),e.unref(s).checkType===2?(e.openBlock(),e.createElementBlock("span",VT,e.toDisplayString(e.unref(l)("randomCheck")),1)):(e.openBlock(),e.createElementBlock("span",IT,[e.unref(s).checkScope===1?(e.openBlock(),e.createElementBlock("span",AT,e.toDisplayString(e.unref(l)("regionalSpotCheck")),1)):e.unref(s).checkScope===2?(e.openBlock(),e.createElementBlock("span",OT,e.toDisplayString(e.unref(l)("departmentSpotCheck")),1)):e.unref(s).checkScope===3?(e.openBlock(),e.createElementBlock("span",LT,e.toDisplayString(e.unref(l)("deviceSpotCheck")),1)):e.createCommentVNode("",!0)]))])]),e.createElementVNode("div",null,[e.createVNode(u,{type:"primary",class:"button_default buttonBox min-w-[100px]",onClick:e.unref(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(u,{class:"button_function buttonBox min-w-[100px]",onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("complete")),1)]),_:1},8,["onClick"])])])])])],4)):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-e246ad8e"]]);function BT({emit:t}){const n=e.ref(!1);e.ref([]);const o=e.ref([]),a=e.ref("");e.ref(400),e.ref(null);const s=e.ref(null);e.ref();const l=e.ref();e.watch(()=>a.value,m=>{a.value=m.replace(/\s/g,"")});function r(){c([]),l.value.setSelectedList(o.value),p(!1)}function i(m){o.value.splice(m,1),l.value.setSelectedList(o.value)}function c(m=[]){o.value=[...m]}function p(m){n.value=typeof m=="boolean"?m:!n.value,t("on-selectedDataList",o.value)}async function d(){const m=await ul({spotCheckSupport:1});if(m.code===200)return m.data}function h(m){o.value=m.selectedDataList,t("on-selected-data-list",o.value)}return{setSelectedDataList:c,getData:d,abortController:s,selectedDataList:o,clearSelectedData:r,deleteSelectList:i,onSelectedData:h,hyOrgTreeRef:l}}const RT={class:"flex flex-col w-full h-full"},PT={class:"flex justify-between items-center h-[40px]"},MT={class:"flex-1"},UT={class:"text-hy-text-secondary ml-3"},WT={class:"flex-1 flex items-center justify-end"},zT={class:"text-xs"},HT={class:"flex items-center clickBox cursor-pointer"},jT={class:"text-hy-text-primary"},YT=["element-loading-text"],GT={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},qT={class:"flex-grow h-0 w-full equipment vbtTable"},KT={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col ml-2"},XT={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},JT={class:"r-f tac flex flex-col items-center justify-center"},ZT={class:"mt-3"},QT={class:"flex-grow w-0 pl-2 box-border truncate"},vT={class:"flex-shrink-0"},eE=e.defineComponent({__name:"select-depart-ment",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=t,s=o,{setSelectedDataList:l,getData:r,abortController:i,selectedDataList:c,clearSelectedData:p,deleteSelectList:d,onSelectedData:h,hyOrgTreeRef:m}=BT({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList)}),e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(_,w)=>{const g=e.resolveComponent("el-button"),b=e.resolveComponent("svg-icon"),C=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",RT,[e.createElementVNode("div",PT,[e.createElementVNode("div",MT,[e.createTextVNode(e.toDisplayString(e.unref(N)("allDepartments")),1),e.createElementVNode("span",UT,e.toDisplayString(e.unref(N)("doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt")),1)]),e.createElementVNode("div",WT,[e.withDirectives(e.createVNode(g,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("span",zT,e.toDisplayString(e.unref(N)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",HT,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(N)("selected"))+" ",1),e.createElementVNode("span",jT,e.toDisplayString(e.unref(c).length),1),e.createTextVNode(" "+e.toDisplayString(e.unref(N)("individual-0")),1)])])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(N)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[e.createElementVNode("div",GT,[e.createElementVNode("div",qT,[e.createVNode(Ll,{ref_key:"hyOrgTreeRef",ref:m,"show-checkbox":!0,"parent-checkbox":!1,"get-data":e.unref(r),"default-checked-list":e.unref(c),onOnSelectedData:e.unref(h)},null,8,["get-data","default-checked-list","onOnSelectedData"])])]),e.createElementVNode("ul",KT,[e.withDirectives(e.createElementVNode("li",XT,[e.createElementVNode("div",JT,[e.createVNode(b,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",ZT,e.toDisplayString(e.unref(N)("youHaveNotSelectedADepartmentYet")),1)])],512),[[e.vShow,e.unref(c).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(S,k)=>(e.openBlock(),e.createElementBlock("li",{key:`${S.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border clickBox border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[e.createElementVNode("div",QT,e.toDisplayString(S.companyName||S.groupName||S.orgName),1),e.createElementVNode("div",vT,[e.createVNode(Ke,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(N)("delete"),onClick:T=>e.unref(d)(k)},null,8,["tips","onClick"])])]))),128))])],8,YT)),[[C,!1]])])}}});function tE({emit:t}){const n=e.ref(!1),o=e.ref([]),a=e.ref([]),s=e.ref(""),l=e.ref(null),r=e.ref(null),i=e.ref();e.watch(()=>s.value,b=>{s.value=b.replace(/\s/g,"")});function c(){p([]),i.value.setSelectedList(o.value),t("on-selected-data-list",o.value)}function p(b=[]){o.value=[...b]}function d(b){if(!b.disabled){if(b.type===3){const C=o.value.findIndex(S=>S.deviceId===b.deviceId);C===-1?o.value.push({...b}):o.value.splice(C,1)}else{clearTimeout(l.value);const C={nonExistent:[],existent:[]},S=b.childrenDeviceList||[];S.length&&(S.forEach(k=>{a.value.findIndex(V=>V.deviceId===k.deviceId)===-1&&(o.value.findIndex($=>$.deviceId===k.deviceId)===-1?C.nonExistent.push({...k}):C.existent.push({...k}))}),C.nonExistent.length?C.nonExistent.forEach(k=>{o.value.push({...k})}):C.existent.forEach(k=>{const T=o.value.findIndex(V=>V.deviceId===k.deviceId);o.value.splice(T,1)}))}t("on-selected-data-list",[...o.value])}}function h(){r.value&&r.value.abort(),r.value=new AbortController}async function m(){n.value=!0;const b=await ul({spotCheckSupport:1});return h(),b.data}function _(b,C){const S=[{type:1,svgName:"tree-icon-law-enforcement"},{type:3,svgName:"tree-icon-dispatching-desk"},{type:4,svgName:"tree-icon-duty-desk"},{type:5,svgName:"tree-icon-phone"},{type:6,svgName:"tree-icon-control-the-ball"},{type:7,svgName:"tree-icon-ipc"},{type:8,svgName:"tree-icon-safety-hat"},{type:9,svgName:"tree-icon-flashlight"},{type:10,svgName:"tree-icon-work-card"},{type:11,svgName:"tree-icon-vehicle"},{type:12,svgName:"tree-icon-uav"},{type:13,svgName:"tree-icon-ipc"},{type:14,svgName:"tree-icon-obd"}],k=S.findIndex(T=>T.type===b);return k!==-1?w(S[k],C):"tree-icon-walkie-talkie"}function w(b,C){return b.type===7||b.type===13?C===1?b.svgName:`${b}-off-line`:b.svgName}function g(b){o.value=b.selectedDataList,t("on-selected-data-list",o.value)}return{setSelectedDataList:p,getData:m,abortController:r,selectedDataList:o,clearSelectedData:c,deviceClick:d,checkDeviceTypeFn:_,onSelectedData:g,hyDeviceTreeRef:i}}const nE={class:"flex flex-col w-full h-full"},oE={class:"flex justify-between items-center h-[40px]"},aE={class:"flex mr-2"},sE={class:"flex items-center"},lE={class:"text-xs"},rE={class:"flex items-center clickBox cursor-pointer"},iE={class:"text-hy-text-primary"},cE=["element-loading-text"],dE={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},pE={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col ml-2"},fE={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},hE={class:"flex flex-col justify-center items-center"},mE={class:"mt-3"},uE={class:"flex-grow w-0 pl-2 flex box-border"},gE={class:"truncate flex-grow w-0"},_E={class:"select-none truncate mx-[4px] text-hy-text-main"},yE={class:"flex-shrink-0"},xE=e.defineComponent({__name:"select-device",props:{onlineStateFlag:{default:1},initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=t,s=o,{setSelectedDataList:l,getData:r,abortController:i,selectedDataList:c,clearSelectedData:p,deviceClick:d,checkDeviceTypeFn:h,onSelectedData:m,hyDeviceTreeRef:_}=tE({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList),r()}),e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(w,g)=>{const b=e.resolveComponent("el-button"),C=e.resolveComponent("svg-icon"),S=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",nE,[e.createElementVNode("div",oE,[e.createElementVNode("div",aE,e.toDisplayString(e.unref(N)("allDevices")),1),e.createElementVNode("div",sE,[e.withDirectives(e.createVNode(b,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("span",lE,e.toDisplayString(e.unref(N)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",rE,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(N)("selected"))+" ",1),e.createElementVNode("span",iE,e.toDisplayString(e.unref(c).length),1),e.createTextVNode(" "+e.toDisplayString(e.unref(N)("individual-0")),1)])])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(N)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[e.createElementVNode("div",dE,[e.createVNode(Ol,{ref_key:"hyDeviceTreeRef",ref:_,"item-size":36,"get-data":e.unref(r),"show-online-only":a.onlineStateFlag===1,"show-checkbox":!0,"hide-org-no-data":!0,"parent-checkbox":!1,onOnSelectedData:e.unref(m)},null,8,["get-data","show-online-only","onOnSelectedData"])]),e.createElementVNode("ul",pE,[e.withDirectives(e.createElementVNode("li",fE,[e.createElementVNode("div",hE,[e.createVNode(C,{name:"base-no-data","class-name":"!w-[50px] !h-[50px]"}),e.createElementVNode("div",mE,e.toDisplayString(e.unref(N)("youHaveNotSelectedADeviceYet")),1)])],512),[[e.vShow,e.unref(c).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),k=>(e.openBlock(),e.createElementBlock("li",{key:`${k.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border cursor-pointer border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[e.createElementVNode("div",uE,[e.createVNode(C,{name:e.unref(h)(k.deviceType||k.type,k.onlineState),"class-name":"w-[16px] h-[16px]",class:e.normalizeClass(k.onlineState===1?"text-hy-text-main":"text-hy-info")},null,8,["name","class"]),e.createElementVNode("div",gE,[e.createElementVNode("span",_E,e.toDisplayString(k.devName),1)])]),e.createElementVNode("div",yE,[e.createVNode(Ke,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(N)("delete"),onClick:T=>e.unref(d)(k)},null,8,["tips","onClick"])])]))),128))])],8,cE)),[[S,!1]])])}}});function kE({emit:t}){const n=e.ref(!1),o=e.ref(!1),a=e.ref(400),s=e.ref({renderSize:30,offsetSize:10}),l=e.ref([]),r=e.ref([]),i=e.ref("");e.ref(400);const c=e.ref(null);e.watch(()=>i.value,S=>{i.value=S.replace(/\s/g,"")});function p(S=[]){S.length!==0&&(S.forEach(k=>{r.value.findIndex(V=>V.id===k.id)===-1&&r.value.push(k)}),e.nextTick(()=>{n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}))}function d(S=[]){r.value=[...S]}function h(){return[...r.value]}function m(){n.value=!n.value,n.value?r.value=[...l.value]:r.value=[],t("on-selected-data-list",r.value)}function _(S){return r.value.findIndex(T=>T.id===S.id)!==-1?"is-checked":""}async function w(S){const k=r.value.findIndex(T=>T.id===S.id);k===-1?g(S):b(k)}function g(S){r.value.push(S),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}function b(S){r.value.splice(S,1),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}async function C(){o.value=!0;const{code:S,data:k=[]}=await YN({query:i.value,spotCheckSupport:1,onlineState:1});S===200&&(l.value=[],k.forEach(T=>{T.deviceList.length!==0?l.value.unshift(T):l.value.push(T)}),o.value=!1)}return{checkAll:n,loading:o,treeHeight:a,scrollYRenderConfig:s,deviceList:l,selectedDataList:r,filterValue:i,timeOut:c,addSelectedDataList:p,setSelectedDataList:d,getSelectedDataList:h,setCheckAll:m,judgeSelectedFn:_,deviceClick:w,addSelectList:g,deleteSelectList:b,getData:C}}const CE={class:"flex flex-col w-full h-full"},bE={class:"flex justify-between items-center h-[30px]"},NE={class:"el-checkbox !mr-2"},wE=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],SE={class:"text-hy-text-primary"},TE=["element-loading-text"],EE={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},DE={class:"flex items-center justify-center p-[8px_8px_4px]"},$E={class:"text-hy-text-main"},VE={class:"flex-grow h-0 w-full px-2 box-border overflow-y-scroll overflow-x-hidden"},IE=["onClick"],AE={class:"flex items-center justify-center"},OE={class:"el-checkbox relative !mr-[6px]"},LE=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],FE={class:"treeDepartment cursor_pointer flex items-center justify-between w-full text-[14px] font-bold text-hy-text-main"},BE={class:"r-f w_100vh flex w-full"},RE={class:"flex-grow w-0 over_one_line truncate"},PE={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col ml-2"},ME={class:"h-full bg-hy-dialog-bg-2 border rounded px-2 box-border border-hy-bg-2 flex justify-center text-hy-text-secondary items-center"},UE={class:"r-f tac flex flex-col justify-center items-center"},WE={class:"mt-3"},zE={class:"flex-grow w-0 pl-2 box-border truncate"},HE={class:"flex-shrink-0"},jE=e.defineComponent({__name:"select-electronic-fence",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=t,s=o,{setSelectedDataList:l,getData:r,setCheckAll:i,checkAll:c,selectedDataList:p,loading:d,filterValue:h,deviceList:m,deviceClick:_,judgeSelectedFn:w,deleteSelectList:g}=kE({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList),r()}),n({setSelectedDataList:l,getData:r}),(b,C)=>{const S=e.resolveComponent("svg-icon"),k=e.resolveComponent("el-button"),T=e.resolveComponent("el-input"),V=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",CE,[e.createElementVNode("div",bE,[e.createElementVNode("span",null,e.toDisplayString(e.unref(N)("electronicFence")),1),e.createElementVNode("div",{class:"flex items-center clickBox",onClick:C[0]||(C[0]=(...$)=>e.unref(i)&&e.unref(i)(...$))},[e.createElementVNode("div",NE,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)},"el-checkbox__input"])},wE,2)]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(N)("selected"))+" ",1),e.createElementVNode("span",SE,e.toDisplayString(e.unref(p).length),1),e.createTextVNode(" "+e.toDisplayString(e.unref(N)("individual-0")),1)])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(N)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[e.createElementVNode("div",EE,[e.createElementVNode("div",DE,[e.createVNode(T,{modelValue:e.unref(h),"onUpdate:modelValue":C[1]||(C[1]=$=>e.isRef(h)?h.value=$:null),placeholder:e.unref(N)("filterByElectronicFenceName"),class:"table-search-main w-[254px] text-[12px]",onClear:C[2]||(C[2]=$=>e.unref(r)()),onKeyup:C[3]||(C[3]=e.withKeys($=>e.unref(r)(),["enter"]))},{append:e.withCtx(()=>[e.createElementVNode("div",$E,[e.createVNode(k,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(r)},{default:e.withCtx(()=>[e.createVNode(S,{name:"sys-button-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",VE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),$=>(e.openBlock(),e.createElementBlock("div",{key:$.id,class:"hover:shadow-[0_0_10px_0_inset] bg-hy-dialog-bg-2 hover:shadow-hy-border-1 hover:border-hy-border-1 border-hy-dialog-bg-2 flex-grow flex h-[32px] items-center border rounded my-2 box-border px-2 cursor-pointer",onClick:f=>e.unref(_)($)},[e.createElementVNode("div",AE,[e.createElementVNode("div",OE,[e.createElementVNode("span",{class:e.normalizeClass([e.unref(w)($),"el-checkbox__input"])},LE,2)])]),e.createElementVNode("div",FE,[e.createElementVNode("div",BE,[e.createElementVNode("span",RE,e.toDisplayString($.railName),1),e.withDirectives(e.createElementVNode("span",{class:"flex-shrink-0 ml-1 text-hy-text-main"}," ("+e.toDisplayString($.deviceList.length)+") ",513),[[e.vShow,$.deviceList.length]])])])],8,IE))),128))])]),e.createElementVNode("ul",PE,[e.withDirectives(e.createElementVNode("li",ME,[e.createElementVNode("div",UE,[e.createVNode(S,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",WE,e.toDisplayString(e.unref(N)("youHavenTSelectedAFenceYet")),1)])],512),[[e.vShow,e.unref(p).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),($,f)=>(e.openBlock(),e.createElementBlock("li",{key:`${$.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border cursor-pointer border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[e.createElementVNode("div",zE,e.toDisplayString($.railName),1),e.createElementVNode("div",HE,[e.createVNode(Ke,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(N)("delete"),onClick:u=>e.unref(g)(f)},null,8,["tips","onClick"])])]))),128))])],8,TE)),[[V,e.unref(d)]])])}}});function YE({emit:t}){const n=e.ref([{label:N("templateName"),prop:"templateName",isSearch:!0},{label:N("operation"),width:80,align:"center",slotName:"operator"}]),o=e.ref({checkStyle:null}),a=e.ref(!1),s=e.ref(null),l=e.ref();function r(d){return new Promise((h,m)=>{const{checkStyle:_=null}=d||{};o.value.checkStyle=_,a.value=!0,s.value=h,e.nextTick(()=>{i()})})}function i(){l.value.getTableData()}function c(d){s.value(d),t("on-selected",d),p()}function p(){a.value=!1}return{$t:N,tableColumns:n,requestParams:o,dialogVisible:a,successfulCallback:s,AppTableRef:l,show:r,selected:c,close:p}}const GE={class:"deleteBox c_fff text-hy-text-main"},qE={class:"pos_r dialog_header relative text-hy-text-main text-[18px] text-center p-[4px] font-bold z-[1px] bg-hy-dialog-bg-1 rounded-[12px_12px_0_0] font-[Helvetica]"},KE={class:"absolute right-[-2px] top-[-2px]"},XE={class:"dialog_body h-[60vh]"},JE=e.defineComponent({__name:"select-template",emits:["on-selected"],setup(t,{expose:n,emit:o}){const a=o,{$t:s,dialogVisible:l,close:r,tableColumns:i,requestParams:c,selected:p,AppTableRef:d,show:h}=YE({emit:a});return n({show:h}),(m,_)=>{const w=e.resolveComponent("svg-icon"),g=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(g,{modelValue:e.unref(l),"onUpdate:modelValue":_[0]||(_[0]=b=>e.isRef(l)?l.value=b:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"640px"},{default:e.withCtx(()=>[e.createElementVNode("div",GE,[e.createElementVNode("div",qE,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("spotCheckTemplate")),1),e.createElementVNode("div",KE,[e.createVNode(w,{width:"26",height:"26",name:"icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(r),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",XE,[e.createVNode(Bo,{ref_key:"AppTableRef",ref:d,"pager-count":5,"column-list":e.unref(i),"search-arr":[],"search-form":e.unref(c),"req-url":"spotCheck/template/page","default-get-data":!1},{tableLeft:e.withCtx(()=>[]),operator:e.withCtx(({row:b})=>[e.createVNode(Ke,{width:12,height:12,name:"icon-choice",class:"!w-[24px] !h-[24px]",tips:e.unref(s)("edit"),onClick:C=>e.unref(p)(b)},null,8,["tips","onClick"])]),_:1},8,["column-list","search-form"])])])]),_:1},8,["modelValue"])}}});function ZE({emit:t}){const n=e.ref({everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1}),o=(K,Q,re)=>{let ae="";for(const X in n.value)n.value[X]&&(ae+=`${X.replace(/(^everyday)|(everyday$)/g,"")},`);ae.length?re():re(new Error(N("pleaseSelectASpecificWeek")))},a=e.ref(null),s=e.ref(!1),l=e.ref(!1),r=e.ref([]),i=e.ref(null),c=e.ref(N("immediatelyInitiateARollCallSpotCheck")),p=e.ref(!1),d=e.ref(null),h=e.ref(!1),m=e.ref({limitNum:10,onlineStateFlag:1,checkType:1,checkScope:1,checkStyle:1,actionType:1,actionTime:5,deviceIdList:[],mapRailIdList:[],orgIdList:[],msgContent:"",playMsg:!1,templateName:"",taskDateType:1,apDateListV2:null,apDtmV2:null}),_=e.ref({limitNum:10,onlineStateFlag:1,actionTime:5,actionType:1,checkScope:1,checkStyle:1,checkType:1,deviceIdList:[],mapRailIdList:[],orgIdList:[],msgContent:"",playMsg:!1,templateName:"",taskDateType:1,apDateListV2:null,apDtmV2:null}),w=e.ref({limitNum:[{required:!0,message:N("pleaseEnterTheRandomNumber"),trigger:"blur"}],templateName:[{required:!0,message:N("pleaseEnterTheTemplateName"),trigger:"blur"}],msgContent:[{required:!0,message:N("pleaseFillInTheMessageToBeSent"),trigger:"blur"}],everydayJson:[{required:!0,validator:o,trigger:"change"}],taskDateTime:[{required:!0,message:N("pleaseSelectTheExecutionTime"),trigger:"change"}],taskDateType:[{required:!0,message:N("pleaseSelectTheExecutionDate"),trigger:"change"}],apDateListV2:[{required:!0,message:N("selectOneOrMoreDates"),trigger:"change"}],apDtmV2:[{required:!0,message:N("pleaseSelectASpecificTimePeriod"),trigger:"change"}]}),g=e.ref(),b=e.ref(),C=e.ref(),S=e.ref(),k=e.ref(),T=e.ref();e.watch(()=>_.value.limitNum,K=>{typeof K=="string"&&(K=K.replace(/[^.\d]/g,""),K=K.replace(".",""),_.value.limitNum=K)}),e.watch(()=>p.value,K=>{L()},{immediate:!0});function V(){g.value.validateField("limitNum")}function $(K){if(K!==_.value.onlineStateFlag)return new Promise((Q,re)=>{if(r.value.length!==0&&_.value.checkScope===3&&K===1)yt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:N("prompt"),tipsContent:`<div><p>${N("switchingTheSpotCheckDeviceWillClearTheSelectedData")}</p><p>${N("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:N("cancel-0"),closeBtnType:"primary",submitBtnText:N("confirm-3"),submitBtnType:"default"},()=>{const ae=R();ae&&(ae.clearSelectedData(),ae.getData()),_.value.onlineStateFlag=K,Q(0)});else{if(_.value.onlineStateFlag=K,_.value.checkScope===3){const ae=R();ae&&ae.getData()}Q(0)}})}function f(K){let Q=_.value.limitNum-0;if(K===1)Q+=1;else{if(Q<=1){Pe.error(N("atLeast1RandomDevice"));return}Q-=1}_.value.limitNum=Q}function u(K,Q){const{checkScope:re=3,contentState:ae=3,onlineStateFlag:X=1,copyType:O=!1,wrapperClosable:z=!1,title:ee=N("immediatelyInitiateARollCallSpotCheck"),selectedDataList:ce=[],successfulCallback:ge=null}=Q||{};if(p.value){if(ae===1)if(re===_.value.checkScope){const Ee=R();Ee&&Ee.addSelectedDataList(ce)}else D(re).then(()=>{B([],!0);const Ee=R();Ee&&Ee.addSelectedDataList(ce)});else return Pe.warning(N("repeat"));return}a.value=ge,l.value=z,i.value=ae,c.value=ee,g.value&&g.value.resetFields(),_.value={...m.value},_.value.limitNum=10,_.value.checkScope=re,_.value.onlineStateFlag=X,ae===1?ce.length&&B(ce,!0):B([],!0),n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},K&&typeof K=="number"?q(K,O):y(!0)}function y(K){p.value=typeof K=="boolean"?K:!p.value}function x(){g.value.clearValidate("everydayJson"),g.value.clearValidate("apDateListV2"),g.value.clearValidate("apDtmV2")}function E(K){var Q;(Q=D(K))==null||Q.then(()=>{B([],!0)})}function D(K){if(_.value.checkScope!==K)return new Promise((Q,re)=>{r.value.length!==0?yt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:N("prompt"),tipsContent:`<div><p>${N("switchingTheSpotCheckRangeWillClearTheSelectedData")}</p><p>${N("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:N("cancel-0"),closeBtnType:"primary",submitBtnText:N("confirm-3"),submitBtnType:"default"},()=>{_.value.checkScope=K,Q(0)}):(_.value.checkScope=K,Q(0))})}function L(){p.value?h.value=!0:(d.value&&(clearTimeout(d.value),d.value=null),d.value=setTimeout(()=>{h.value=p.value,clearTimeout(d.value),d.value=null},500))}function R(){const K=_.value.checkScope;return K===1?b.value:K===2?C.value:K===3?S.value:null}function G(K){const{checkScope:Q=1,mapRailList:re=[],orgList:ae=[],deviceIdList:X=[],deviceList:O=[]}=K||{};let z=[];return Q===1&&re.length?z=re:Q===2&&ae.length?z=ae:Q===3&&O.length&&(z=O.map(ee=>({...ee,type:3}))),z||[]}function B(K,Q=!1){if(r.value=K,Q){const re=R();re&&re.setSelectedDataList(K)}}function P(){const K=_.value.checkScope;let Q="",re=[];return K===1?(Q="mapRailIdList",re=r.value.map(ae=>ae.id)):K===2?(Q="orgIdList",re=r.value.map(ae=>ae.id)):K===3&&(Q="deviceIdList",re=r.value.map(ae=>ae.deviceId)),{dataList:re,name:Q}}function M(){g.value.validate(K=>{if(K){const Q={..._.value};if(Q.playMsg=Q.playMsg?1:0,Q.checkType===1){const re=P();if(Q[`${re.name}`]=re.dataList,re.dataList.length===0)return Pe.error(N("pleaseSelectTheSpotCheckRange"))}else Q.checkScope=null;e.nextTick(()=>{i.value===2?te(Q):i.value===3?ke(Q):Oe(Q)})}})}function F(K){var Q;K&&((Q=k.value)==null||Q.show(K))}function H(){B([],!0),y(!1),a.value=null}function Z(){H()}function q(K,Q){i.value===2?ne(K,Q):i.value===3&&me(K,Q)}async function ne(K,Q=!1){s.value=!0;const{code:re,data:ae}=await Pw({id:K});if(re===200){const X=ae;if(ae.checkScope,X.taskDateType===2)X.weekDate.split(",").forEach(ee=>{ee=Number.parseFloat(ee),ee===1?n.value.everyday1=!0:ee===2?n.value.everyday2=!0:ee===3?n.value.everyday3=!0:ee===4?n.value.everyday4=!0:ee===5?n.value.everyday5=!0:ee===6?n.value.everyday6=!0:ee===7&&(n.value.everyday7=!0)});else if(X.taskDateType===3){const z=[];X.apDateList.forEach(ee=>{z.push(ee.apDtm.split(" 00:00:00")[0])}),X.apDateListV2=z}else X.taskDateType===4&&(X.apDtmV2=[X.apStartDtm,X.apEndDtm]);X.taskDateTime=[X.taskDateStartTime,X.taskDateEndTime],_.value={...X,playMsg:X.playMsg===1},Q&&(_.value.id=null);const O=G(X);B(O),e.nextTick(()=>{s.value=!1,p.value||y(!0)})}}async function te(K){if(K.taskDateStartTime=_.value.taskDateTime[0],K.taskDateEndTime=_.value.taskDateTime[1],_.value.taskDateType===2){let ae="";for(const X in n.value)n.value[X]&&(ae+=`${X.replace(/(^everyday)|(everyday$)/g,"")},`);if(ae.length===0)return Pe.error(N("pleaseSelectASpecificWeek"));K.weekDate=ae.substring(ae.length-1,0)}else if(_.value.taskDateType===3){if(!_.value.apDateListV2||_.value.apDateListV2.length===0)return Pe.error(N("pleaseSelectADate"));K.apDateList=_.value.apDateListV2.map(ae=>({apDtm:`${ae} 00:00:00`}))}else if(_.value.taskDateType===4){if(!_.value.apDtmV2||_.value.apDtmV2.length===0)return Pe.error(N("pleaseSelectATimePeriod"));K.apStartDtm=`${_.value.apDtmV2[0]} 00:00:00`,K.apEndDtm=`${_.value.apDtmV2[1]} 00:00:00`}const{code:Q,data:re={}}=await Mw(K);Q===200&&(Pe.success(N("operationSuccessful")),t("on-submit"),a.value&&a.value(),H())}async function Se(){const{id:K}=await T.value.show({checkStyle:i.value===2?1:null});K&&(g.value&&g.value.resetFields(),_.value={...m.value},n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},r.value=[],await me(K,!0),Pe.success(N("templateApplied")))}async function me(K,Q=!1){s.value=!0;const{code:re,data:ae}=await Uw({id:K});if(re===200){_.value={...ae,playMsg:ae.playMsg===1},Q&&(_.value.id=null);const X=G(_.value);B(X),e.nextTick(()=>{s.value=!1,p.value||y(!0)})}}async function ke(K){const{code:Q}=await Ww(K);Q===200&&(Pe.success(N("operationSuccessful")),t("on-submit"),a.value&&a.value(),H())}async function Oe(K){const{code:Q,data:re={}}=await zw(K);Q===200&&(Pe.success(N("operationSuccessful")),a.value&&a.value(),t("on-submit"),F(re.id),H())}return{dialogVisible:p,animationVisible:h,animationTime:d,setDialogVisible:y,setAnimationVisible:L,setCheckScope:D,setSelectedDataList:B,getSelectedDataList:P,onSubmit:M,viewSpotCheckShow:F,close:H,onClose:Z,detail:q,selectTemplateShow:Se,taskDateTypeFn:x,changeCheckScope:E,everydayJson:n,formRef:g,loading:s,selectElectronicFenceRef:b,selectDepartmentRef:C,selectDeviceRef:S,selectTemplateRef:T,viewSpotCheckRef:k,contentState:i,title:c,wrapperClosable:l,form:_,rules:w,$t:N,changeOnlineStateFlag:$,blurLimitNum:V,setRandomNumber:f,selectedDataList:r,show:u}}const Ae=t=>(e.pushScopeId("data-v-1e4e7e93"),t=t(),e.popScopeId(),t),QE={key:0,class:"fixed top-0 left-0 bg-[rgba(0,0,0,0.5)] w-full h-full z-[100]"},vE={class:"w-[1080px] h-full"},eD={class:"w-full h-full px-[20px] box-border flex flex-col text-hy-text-main text-xs"},tD={class:"flex justify-between items-center h-[60px]"},nD={class:"font-bold text-lg"},oD=["element-loading-text"],aD={key:0,class:"flex mb-2 flex-shrink-0 rounded bg-backgroundv2 px-3 pt-2 h-[90px] box-border items-center"},sD={class:"text-sm h-[30px] flex items-center"},lD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),rD={key:1,class:"flex mb-2 flex-shrink-0 rounded bg-hy-dialog-bg-2 px-3 pt-2 h-[90px] box-border items-center"},iD={class:"flex-1 mr-4"},cD={class:"text-sm h-[30px] flex items-center"},dD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),pD={class:"text-sm h-[30px] flex items-center"},fD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),hD={class:"everydayBox leading-[20px]"},mD={class:"text-xs"},uD={class:"text-xs"},gD={class:"text-xs"},_D={class:"text-xs"},yD={class:"text-xs"},xD={class:"text-xs"},kD={class:"text-xs"},CD={class:"text-sm h-[30px] flex items-center"},bD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),ND={class:"w-full"},wD={class:"text-sm h-[30px] flex items-center"},SD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),TD={class:"flex-1 min-w-[220px]"},ED={class:"text-sm h-[30px] flex items-center"},DD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),$D={class:"flex items-center flex-grow h-0"},VD={class:"flex-grow w-0 h-full flex flex-col"},ID={class:"flex"},AD={class:"text-sm h-[30px] flex items-center"},OD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),LD={class:"text-sm h-[30px] flex items-center"},FD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),BD={class:"text-sm h-[30px] flex items-center"},RD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),PD={class:"test h-[32px] flex border border-hy-border-2 rounded box-border overflow-hidden bg-hy-dialog-bg-2 w-full"},MD={class:"flex-grow w-0 box-border px-1 flex items-center justify-center"},UD=["placeholder"],WD={class:"flex flex-col w-[32px] text-auxiliary border-l border-hy-border-2"},zD={class:"text-sm h-[30px] flex items-center"},HD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),jD={class:"flex-grow h-0 bg-hy-dialog-bg-4 shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 rounded-[6px] flex items-center justify-center"},YD={class:"tac text-hy-text-secondary text-center"},GD={class:"mt_10 mt-[10px]"},qD={class:""},KD={class:"mt-1"},XD={class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},JD={class:"flex justify-between h-[40px] items-center"},ZD={class:"fs_12 p-[10px_20px] text-[12px]"},QD={class:"r-f mb_10 flex mb-[10px]"},vD=Ae(()=>e.createElementVNode("span",null,"1、",-1)),e$={class:"r-f mb_10 flex mb-[10px]"},t$=Ae(()=>e.createElementVNode("span",null,"2、",-1)),n$={class:"r-f mb_10 flex mb-[10px]"},o$=Ae(()=>e.createElementVNode("span",null,"3、",-1)),a$={class:"fs_12 cursor_pointer !text-hy-text-primary cursor-pointer text-[12px]"},s$={class:"flex-grow h-0 flex"},l$={class:"flex-1"},r$=Ae(()=>e.createElementVNode("div",{class:"mx-[20px] w-[2px] h-[96%] rounded bg-hy-border-2 flex-shrink-0"},null,-1)),i$={class:"w-[33%] h-full flex flex-col"},c$={class:"text-sm h-[30px] flex items-center"},d$=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),p$={class:"text-sm h-[30px] flex items-center"},f$=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),h$={class:"flex-grow h-0 bg-hy-dialog-bg-4 shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 rounded-[6px] flex items-center justify-center"},m$={class:"tac text-hy-text-secondary text-center"},u$={class:"mt-[10px]"},g$={class:"mt-1"},_$={key:0,class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},y$={class:"flex-grow h-0"},x$={class:"text-xs"},k$={class:"mb-2"},C$={class:"text-sm h-[30px] flex items-center"},b$=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),N$={class:"mb-2"},w$={class:"text-sm h-[30px] flex items-center"},S$=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),T$={class:"flex items-center justify-between h-[80px]"},E$={class:"text-hy-text-secondary flex items-center"},D$=Fe(e.defineComponent({__name:"edit-spot-check",emits:["on-submit"],setup(t,{expose:n,emit:o}){const a=o,{$t:s,dialogVisible:l,wrapperClosable:r,animationVisible:i,title:c,onClose:p,loading:d,form:h,rules:m,contentState:_,taskDateTypeFn:w,everydayJson:g,changeOnlineStateFlag:b,blurLimitNum:C,setRandomNumber:S,changeCheckScope:k,selectedDataList:T,setSelectedDataList:V,selectTemplateShow:$,onSubmit:f,selectElectronicFenceRef:u,selectDepartmentRef:y,selectDeviceRef:x,selectTemplateRef:E,viewSpotCheckRef:D,show:L,formRef:R}=ZE({emit:a});return n({show:L}),(G,B)=>{const P=e.resolveComponent("svg-icon"),M=e.resolveComponent("el-input"),F=e.resolveComponent("el-form-item"),H=e.resolveComponent("el-option"),Z=e.resolveComponent("el-select"),q=e.resolveComponent("el-checkbox"),ne=e.resolveComponent("el-date-picker"),te=e.resolveComponent("el-time-picker"),Se=Iw,me=e.resolveComponent("el-icon"),ke=Ew,Oe=e.resolveComponent("el-popover"),K=e.resolveComponent("el-form"),Q=Yo,re=e.resolveComponent("el-button"),ae=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",null,[e.unref(r)&&e.unref(l)?(e.openBlock(),e.createElementBlock("div",QE)):e.createCommentVNode("",!0),e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([{hide:!e.unref(l),display:e.unref(l)},"duration-500 bg-hy-dialog-bg-1 rounded-[12px_0_0_12px] border-r-0 border-hy-border-1 fixed right-0 top-[54%] h-[87%] -translate-y-1/2 z-[101] overflow-hidden"]),style:{"animation-iteration-count":"1"}},[e.createElementVNode("div",vE,[e.createElementVNode("div",eD,[e.createElementVNode("div",tD,[e.createElementVNode("div",nD,e.toDisplayString(e.unref(c)),1),e.createVNode(P,{name:"base-sign-out","class-name":"clickBox !w-[28px] !h-[28px]",onClick:e.unref(p)},null,8,["onClick"])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(s)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0"},[e.createVNode(K,{ref_key:"formRef",ref:R,model:e.unref(h),rules:e.unref(m),"label-width":"0px",class:"w-full h-full flex flex-col"},{default:e.withCtx(()=>[e.unref(_)===3?(e.openBlock(),e.createElementBlock("div",aD,[e.createVNode(F,{prop:"templateName",class:"w-full"},{default:e.withCtx(()=>[e.createElementVNode("div",sD,[e.createTextVNode(e.toDisplayString(e.unref(s)("templateName")),1),lD]),e.createVNode(M,{modelValue:e.unref(h).templateName,"onUpdate:modelValue":B[0]||(B[0]=X=>e.unref(h).templateName=X),placeholder:e.unref(s)("pleaseEnterTheTemplateName"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})])):e.unref(_)===2?(e.openBlock(),e.createElementBlock("div",rD,[e.createElementVNode("div",iD,[e.createVNode(F,{prop:"taskDateType"},{default:e.withCtx(()=>[e.createElementVNode("div",cD,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionDate")),1),dD]),e.createVNode(Z,{modelValue:e.unref(h).taskDateType,"onUpdate:modelValue":B[1]||(B[1]=X=>e.unref(h).taskDateType=X),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheExecutionDate"),onChange:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(H,{label:e.unref(s)("everyday"),value:1},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("specifyAWeek"),value:2},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("specifyADate"),value:3},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("specifyATimePeriod"),value:4},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])]),_:1})]),e.createElementVNode("div",null,[e.unref(h).taskDateType===2?(e.openBlock(),e.createBlock(F,{key:0,prop:"everydayJson",class:"max-w-[360px]"},{default:e.withCtx(()=>[e.createElementVNode("div",pD,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyAWeek")),1),fD]),e.createElementVNode("div",hD,[e.createVNode(q,{modelValue:e.unref(g).everyday1,"onUpdate:modelValue":B[2]||(B[2]=X=>e.unref(g).everyday1=X)},{default:e.withCtx(()=>[e.createElementVNode("span",mD,e.toDisplayString(e.unref(s)("monday")),1)]),_:1},8,["modelValue"]),e.createVNode(q,{modelValue:e.unref(g).everyday2,"onUpdate:modelValue":B[3]||(B[3]=X=>e.unref(g).everyday2=X)},{default:e.withCtx(()=>[e.createElementVNode("span",uD,e.toDisplayString(e.unref(s)("tuesday")),1)]),_:1},8,["modelValue"]),e.createVNode(q,{modelValue:e.unref(g).everyday3,"onUpdate:modelValue":B[4]||(B[4]=X=>e.unref(g).everyday3=X)},{default:e.withCtx(()=>[e.createElementVNode("span",gD,e.toDisplayString(e.unref(s)("wednesday")),1)]),_:1},8,["modelValue"]),e.createVNode(q,{modelValue:e.unref(g).everyday4,"onUpdate:modelValue":B[5]||(B[5]=X=>e.unref(g).everyday4=X)},{default:e.withCtx(()=>[e.createElementVNode("span",_D,e.toDisplayString(e.unref(s)("thursday")),1)]),_:1},8,["modelValue"]),e.createVNode(q,{modelValue:e.unref(g).everyday5,"onUpdate:modelValue":B[6]||(B[6]=X=>e.unref(g).everyday5=X)},{default:e.withCtx(()=>[e.createElementVNode("span",yD,e.toDisplayString(e.unref(s)("friday")),1)]),_:1},8,["modelValue"]),e.createVNode(q,{modelValue:e.unref(g).everyday6,"onUpdate:modelValue":B[7]||(B[7]=X=>e.unref(g).everyday6=X)},{default:e.withCtx(()=>[e.createElementVNode("span",xD,e.toDisplayString(e.unref(s)("saturday")),1)]),_:1},8,["modelValue"]),e.createVNode(q,{modelValue:e.unref(g).everyday7,"onUpdate:modelValue":B[8]||(B[8]=X=>e.unref(g).everyday7=X)},{default:e.withCtx(()=>[e.createElementVNode("span",kD,e.toDisplayString(e.unref(s)("sunday")),1)]),_:1},8,["modelValue"])])]),_:1})):e.unref(h).taskDateType===3?(e.openBlock(),e.createBlock(F,{key:1,prop:"apDateListV2",class:"mr-4"},{default:e.withCtx(()=>[e.createElementVNode("div",CD,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyADate")),1),bD]),e.createElementVNode("div",ND,[e.createVNode(ne,{modelValue:e.unref(h).apDateListV2,"onUpdate:modelValue":B[9]||(B[9]=X=>e.unref(h).apDateListV2=X),type:"dates",format:`YYYY ${e.unref(s)("yearMMMonthDDDay")}`,class:"!w-full !box-border","value-format":"YYYY-MM-DD",placeholder:e.unref(s)("selectOneOrMoreDates")},null,8,["modelValue","format","placeholder"])])]),_:1})):e.unref(h).taskDateType===4?(e.openBlock(),e.createBlock(F,{key:2,prop:"apDtmV2",class:"mr-4 w-[340px]"},{default:e.withCtx(()=>[e.createElementVNode("div",wD,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyATimePeriod")),1),SD]),e.createElementVNode("div",null,[e.createVNode(ne,{modelValue:e.unref(h).apDtmV2,"onUpdate:modelValue":B[10]||(B[10]=X=>e.unref(h).apDtmV2=X),type:"daterange",class:"!w-full !box-border !text-[13px]",format:`YYYY ${e.unref(s)("yearMMMonthDDDay")}`,"value-format":"YYYY-MM-DD","range-separator":e.unref(s)("to"),"start-placeholder":e.unref(s)("startDate"),"end-placeholder":e.unref(s)("endDate")},null,8,["modelValue","format","range-separator","start-placeholder","end-placeholder"])])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",TD,[e.createVNode(F,{prop:"taskDateTime"},{default:e.withCtx(()=>[e.createElementVNode("div",ED,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionTime-0")),1),DD]),e.createVNode(te,{modelValue:e.unref(h).taskDateTime,"onUpdate:modelValue":B[11]||(B[11]=X=>e.unref(h).taskDateTime=X),"is-range":"",class:"!w-full","range-separator":e.unref(s)("to"),"value-format":"HH:mm:ss","start-placeholder":e.unref(s)("startTime"),"end-placeholder":e.unref(s)("endTime"),placeholder:e.unref(s)("selectATimeRange")},null,8,["modelValue","range-separator","start-placeholder","end-placeholder","placeholder"])]),_:1})])])):e.createCommentVNode("",!0),e.createElementVNode("div",$D,[e.createElementVNode("div",VD,[e.createElementVNode("div",ID,[e.createVNode(F,{class:"flex-1"},{default:e.withCtx(()=>[e.createElementVNode("div",AD,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckType")),1),OD]),e.createVNode(Z,{modelValue:e.unref(h).checkType,"onUpdate:modelValue":B[12]||(B[12]=X=>e.unref(h).checkType=X),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheSpotCheckType")},{default:e.withCtx(()=>[e.createVNode(H,{label:e.unref(s)("rangeCheck"),value:1},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("randomCheck"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),_:1}),e.createVNode(F,{class:"flex-1 ml-1 pl-1"},{default:e.withCtx(()=>[e.createElementVNode("div",LD,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckDevice")),1),FD]),e.createVNode(Z,{"model-value":e.unref(h).onlineStateFlag,class:"w-full",placeholder:e.unref(s)("pleaseSelectTheSpotCheckDevice"),onChange:e.unref(b)},{default:e.withCtx(()=>[e.createVNode(H,{label:e.unref(s)("spotCheckOnlyOnlineDevices"),value:1},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("spotCheckAllDevices"),value:2},null,8,["label"])]),_:1},8,["model-value","placeholder","onChange"])]),_:1}),e.unref(h).checkType===2?(e.openBlock(),e.createBlock(F,{key:0,class:"flex-1 ml-1 pl-1",prop:"limitNum"},{default:e.withCtx(()=>[e.createElementVNode("div",BD,[e.createTextVNode(e.toDisplayString(e.unref(s)("randomNumber")),1),RD]),e.createElementVNode("div",PD,[e.createElementVNode("div",MD,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":B[13]||(B[13]=X=>e.unref(h).limitNum=X),type:"text",style:{outline:"none"},class:"bg-hy-dialog-bg-2 w-full h-full",placeholder:e.unref(s)("pleaseEnterTheRandomNumber"),onBlur:B[14]||(B[14]=(...X)=>e.unref(C)&&e.unref(C)(...X))},null,40,UD),[[e.vModelText,e.unref(h).limitNum]])]),e.createElementVNode("div",WD,[e.createElementVNode("div",{class:"flex-1 flex items-center justify-center clickBox cursor-pointer",onClick:B[15]||(B[15]=X=>e.unref(S)(1))},[e.createVNode(me,null,{default:e.withCtx(()=>[e.createVNode(Se)]),_:1})]),e.createElementVNode("div",{class:"flex-1 border-t border-hy-border-2 flex items-center justify-center cursor-pointer clickBox",onClick:B[16]||(B[16]=X=>e.unref(S)(2))},[e.createVNode(me,null,{default:e.withCtx(()=>[e.createVNode(ke)]),_:1})])])])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",zD,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckRange")),1),HD]),e.withDirectives(e.createElementVNode("div",jD,[e.createElementVNode("div",YD,[e.createVNode(P,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",GD,[e.createElementVNode("p",qD,e.toDisplayString(e.unref(s)("youDoNotNeedToSelectARangeAndDeviceForRandomCheck")),1),e.createElementVNode("p",KD,e.toDisplayString(e.unref(s)("theSystemWillHelpYouSelectRandomly")),1)])])],512),[[e.vShow,e.unref(h).checkType===2]]),e.withDirectives(e.createElementVNode("div",XD,[e.createElementVNode("div",JD,[e.createElementVNode("div",null,[e.createVNode(Z,{"model-value":e.unref(h).checkScope,class:"w-[160px]",placeholder:e.unref(s)("pleaseSelect"),onChange:e.unref(k)},{default:e.withCtx(()=>[e.createVNode(H,{label:e.unref(s)("selectAnArea"),value:1},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("selectADepartment"),value:2},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("selectADevice"),value:3},null,8,["label"])]),_:1},8,["model-value","placeholder","onChange"])]),e.createElementVNode("div",null,[e.createVNode(Oe,{"open-delay":500,placement:"bottom-start","popper-class":"popover_echarts",trigger:"hover",width:"200"},{reference:e.withCtx(()=>[e.createElementVNode("span",a$,[e.createVNode(P,{name:"base-help","class-name":"svgBox ml-1 !w-[12px] !h-[12px]"}),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("help")),1)])]),default:e.withCtx(()=>[e.createElementVNode("ul",ZD,[e.createElementVNode("li",QD,[vD,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea")),1)]),e.createElementVNode("li",e$,[t$,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment")),1)]),e.createElementVNode("li",n$,[o$,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck")),1)])])]),_:1})])]),e.createElementVNode("div",s$,[e.createElementVNode("div",l$,[e.unref(h).checkScope===1?(e.openBlock(),e.createBlock(jE,{key:0,ref_key:"selectElectronicFenceRef",ref:u,"init-selected-data-list":e.unref(T),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(h).checkScope===2?(e.openBlock(),e.createBlock(eE,{key:1,ref_key:"selectDepartmentRef",ref:y,"init-selected-data-list":e.unref(T),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(h).checkScope===3?(e.openBlock(),e.createBlock(xE,{key:2,ref_key:"selectDeviceRef",ref:x,"init-selected-data-list":e.unref(T),"online-state-flag":e.unref(h).onlineStateFlag,onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","online-state-flag","onOnSelectedDataList"])):e.createCommentVNode("",!0)])])],512),[[e.vShow,e.unref(h).checkType===1]])]),r$,e.createElementVNode("div",i$,[e.createVNode(F,null,{default:e.withCtx(()=>[e.createElementVNode("div",c$,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckMethod")),1),d$]),e.createVNode(Z,{modelValue:e.unref(h).checkStyle,"onUpdate:modelValue":B[17]||(B[17]=X=>e.unref(h).checkStyle=X),class:"w-full",disabled:e.unref(_)===2,placeholder:e.unref(s)("pleaseSelectTheSpotCheckMethod")},{default:e.withCtx(()=>[e.createVNode(H,{label:e.unref(s)("message"),value:1},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("call"),value:2},null,8,["label"])]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),e.createElementVNode("div",p$,[e.createTextVNode(e.toDisplayString(e.unref(s)("messageContent")),1),f$]),e.withDirectives(e.createElementVNode("div",h$,[e.createElementVNode("div",m$,[e.createVNode(P,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",u$,[e.createElementVNode("p",null,e.toDisplayString(e.unref(s)("callDoesNotRequireYouToEnterTheMessageContent")),1),e.createElementVNode("p",g$,e.toDisplayString(e.unref(s)("spotCheckWillBeConductedByIntercomAnswering")),1)])])],512),[[e.vShow,e.unref(h).checkStyle===2]]),e.unref(h).checkStyle===1?(e.openBlock(),e.createElementBlock("div",_$,[e.createElementVNode("div",y$,[e.createVNode(F,{prop:"msgContent"},{default:e.withCtx(()=>[e.createVNode(M,{modelValue:e.unref(h).msgContent,"onUpdate:modelValue":B[18]||(B[18]=X=>e.unref(h).msgContent=X),type:"textarea",placeholder:e.unref(s)("pleaseFillInTheMessageToBeSent"),maxlength:"100",resize:"none",autosize:{minRows:e.unref(_)===1?14:10},"show-word-limit":""},null,8,["modelValue","placeholder","autosize"])]),_:1}),e.createVNode(q,{modelValue:e.unref(h).playMsg,"onUpdate:modelValue":B[19]||(B[19]=X=>e.unref(h).playMsg=X)},{default:e.withCtx(()=>[e.createElementVNode("span",x$,e.toDisplayString(e.unref(s)("requiresTTSVoiceBroadcastOnTheDevice")),1)]),_:1},8,["modelValue"])]),e.createElementVNode("div",k$,[e.createElementVNode("div",C$,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerMethod")),1),b$]),e.createVNode(Z,{modelValue:e.unref(h).actionType,"onUpdate:modelValue":B[20]||(B[20]=X=>e.unref(h).actionType=X),class:"w-full",placeholder:e.unref(s)("pleaseSelect")},{default:e.withCtx(()=>[e.createVNode(H,{label:e.unref(s)("punchIn"),value:1},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("reply"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",N$,[e.createElementVNode("div",w$,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerTime")),1),S$]),e.createVNode(Z,{modelValue:e.unref(h).actionTime,"onUpdate:modelValue":B[21]||(B[21]=X=>e.unref(h).actionTime=X),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheAnswerTime")},{default:e.withCtx(()=>[e.createVNode(H,{label:"5s",value:5}),e.createVNode(H,{label:"10s",value:10}),e.createVNode(H,{label:"15s",value:15}),e.createVNode(H,{label:"30s",value:30}),e.createVNode(H,{label:"60s",value:60})]),_:1},8,["modelValue","placeholder"])])])):e.createCommentVNode("",!0)])])]),_:1},8,["model","rules"])],8,oD)),[[ae,e.unref(d)]]),e.createElementVNode("div",T$,[e.createElementVNode("div",E$,[e.createVNode(me,{class:"text-sm mr-1"},{default:e.withCtx(()=>[e.createVNode(Q)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("youCanApplyTheSpotCheckTemplateToQuicklyFillInTheContent")),1)]),e.createElementVNode("div",null,[e.unref(_)!==3?(e.openBlock(),e.createBlock(re,{key:0,class:"button_function buttonBox",onClick:e.unref($)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckTemplate")),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.createVNode(re,{type:"primary",class:"button_default buttonBox",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(re,{class:"button_function buttonBox",onClick:e.unref(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("confirm")),1)]),_:1},8,["onClick"])])])])]),e.createVNode(JE,{ref_key:"selectTemplateRef",ref:E},null,512)],2)):e.createCommentVNode("",!0),e.createVNode(FT,{ref_key:"viewSpotCheckRef",ref:D},null,512)])}}}),[["__scopeId","data-v-1e4e7e93"]]);function $$(t){return pe.post({url:"orgGroup/detail",data:t,isFormData:!0})}function V$(){const t=e.ref({}),n=e.ref(null),o=e.ref({}),a=e.ref(1),s=e.ref([{label:N("spotCheckInformation"),value:1},{label:N("spotCheckStatus"),value:2}]),l=e.ref(0),r=e.ref([{label:N("all"),value:0},{label:N("completed-0"),value:3},{label:N("uncompleted-0"),value:4}]),i=e.ref([]),c=e.ref([]),p=e.ref(!1),d=e.ref(),h=e.computed(()=>{const f=r.value.findIndex(u=>u.value===l.value);return f!==-1?Math.ceil(f*(100/r.value.length)):0}),m=e.computed(()=>{const f=s.value.findIndex(u=>u.value===a.value);return f!==-1?Math.ceil(f*(100/s.value.length)):0});async function _(f){if(!f)return;const{code:u,data:y}=await $$({id:f});u===200&&(o.value=y)}function w(){var f;(f=d.value)==null||f.getData(l.value)}function g(f){l.value=f,e.nextTick(()=>{w()})}function b(f){a.value=f}function C(f){}function S(f={}){const{beReceiveNum:u=0,receivingNum:y=0,finishNum:x=0,notFinishNum:E=0}=f;t.value.beReceiveNum=u,t.value.receivingNum=y,t.value.finishNum=x,t.value.notFinishNum=E}function k(f=[]){}function T(f){t.value={actionType:1,id:12},b(1),g(0),V(f),p.value=!0}async function V(f){const{code:u,data:y={}}=await Cr({id:f,getMapRail:1,getOrg:1});u===200&&(t.value=y,i.value=y.orgNameList||[],c.value=y.railNameList||[],t.value.checkNum,e.nextTick(()=>{y.checkStyle===2&&(n.value=y.groupId,_(n.value),t.value.actionType=null),p.value=!0}))}function $(){p.value=!1}return{form:t,groupId:n,orgGroupInsertTemp:o,navigationStatus:a,navigationList:s,checkStatus:l,checkStatusList:r,orgNameList:i,railNameList:c,dialogVisible:p,spotCheckTaskDeviceRef:d,checkStatusProgress:h,navigationStatusProgress:m,setCheckStatus:g,setNavigationStatus:b,setLoading:C,spotCheckTaskDeviceCountStatus:S,spotCheckTaskDeviceChange:k,show:T,detail:V,close:$}}const I$={class:"deleteBox c_fff text-hy-text-main"},A$={class:"pos_r dialog_header relative text-hy-text-main text-[18px] text-center p-[20px] font-bold z-[1px] bg-hy-dialog-bg-1 rounded-[12px_12px_0_0] font-[Helvetica]"},O$={class:"dialog_body pb-[30px] h-[60vh] flex flex-col text-main text-xs !px-0"},L$={class:"flex items-center justify-center mb-[16px]"},F$={class:"relative flex-shrink-0"},B$={class:"relative text-sm h-[36px] !leading-[36px] text-center border border-hy-bg-2 rounded text-hy-text-secondary flex overflow-hidden"},R$=["onClick"],P$={class:"flex flex-grow h-0 px-4 box-border"},M$={class:"w-full h-full box-border px-2"},U$={class:"w-full h-full bg-hy-dialog-bg-2 rounded px-3 py-1 box-border overflow-x-hidden overflow-y-auto"},W$={class:"mb-2"},z$={class:"text-hy-text-secondary h-[30px] leading-[30px]"},H$={class:"text-hy-text-secondary"},j$={class:"mb-2"},Y$={class:"text-hy-text-secondary h-[30px] leading-[30px]"},G$={class:"mb-2"},q$={class:"text-hy-text-secondary h-[30px] leading-[30px]"},K$={class:"mb-2"},X$={class:"text-hy-text-secondary h-[30px] leading-[30px]"},J$={class:"mb-2"},Z$={class:"text-hy-text-secondary h-[30px] leading-[30px]"},Q$={key:0,class:"mb-2"},v$={class:"text-hy-text-secondary h-[30px] leading-[30px]"},eV={key:0},tV={key:1},nV={key:2},oV={key:0},aV={key:0},sV={key:1},lV={key:0},rV={key:2},iV={key:1,class:"mb-2"},cV={class:"text-hy-text-secondary h-[30px] leading-[30px]"},dV={key:0,class:"py-1 box-border h-full bg-hy-dialog-bg-3 rounded"},pV={class:"w-full h-[34px] px-2 box-border flex justify-between items-center"},fV={key:0,class:"ml-2 border-[2px] box-border border-hy-border-2 flex items-center justify-center h-[26px] px-2 rounded"},hV={class:"h-[40%] box-border px-2 mt-1"},mV={class:"w-full h-full box-border bg-hy-dialog-bg-2 rounded p-2 overflow-y-auto overflow-x-hidden"},uV={class:"flex px-2 mt-1"},gV={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center mr-2"},_V={class:"text-hy-text-secondary"},yV={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center"},xV={class:"text-hy-text-secondary"},kV={class:"font-bold"},CV={key:1,class:"h-full py-1 bg-hy-dialog-bg-3 rounded"},bV={class:"w-full h-full flex items-center justify-center text-hy-text-secondary box-border"},NV={class:"r-f tac flex flex-col items-center justify-center text-center text-sm"},wV={class:"mt-3"},SV={class:"mt-1"},TV={class:"flex flex-grow h-0 px-4 box-border"},EV={class:"text-xs px-2 leading-[22px]"},DV={class:"flex w-full"},$V={class:"flex-shrink-0"},VV={class:"text-right font-bold flex-grow w-0"},IV={class:"flex w-full"},AV={class:"flex-shrink-0 tracking-[4px]"},OV={class:"text-right font-bold flex-grow w-0"},LV={class:"flex w-full"},FV={class:"flex-shrink-0 tracking-[4px]"},BV={class:"text-right font-bold flex-grow w-0"},RV={class:"flex w-full"},PV={class:"flex-shrink-0 tracking-[4px]"},MV={class:"text-right font-bold flex-grow w-0 text-hy-success"},UV={class:"flex w-full"},WV={class:"flex-shrink-0 tracking-[4px]"},zV={class:"text-right font-bold flex-grow w-0 text-hy-danger"},HV={class:"flex-1 flex"},jV={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},YV={class:"flex-grow w-0 text-center truncate"},GV={class:"flex-1 flex"},qV={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},KV={class:"flex-grow w-0 text-center text-hy-success truncate"},XV={class:"flex-1 flex"},JV={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},ZV={class:"flex-grow w-0 text-center text-hy-danger truncate"},QV={class:"relative mt-3 mb-2 min-w-[160px]"},vV={class:"relative h-[26px] !leading-[26px] text-center border border-hy-border-2 rounded text-hy-text-secondary text-xs flex overflow-hidden"},e2=["onClick"],t2={class:"flex-grow h-0 px-2 overflow-x-hidden overflow-y-auto"},n2=e.createElementVNode("div",{class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},null,-1),o2={key:1,class:"w-full shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},a2={class:"r-f tac flex flex-col justify-center items-center"},s2={class:"mt-3 text-sm"},l2=e.defineComponent({__name:"spot-check-details",setup(t,{expose:n}){const{dialogVisible:o,checkStatus:a,checkStatusList:s,checkStatusProgress:l,close:r,form:i,navigationList:c,navigationStatus:p,navigationStatusProgress:d,orgGroupInsertTemp:h,orgNameList:m,railNameList:_,setCheckStatus:w,setNavigationStatus:g,spotCheckTaskDeviceChange:b,spotCheckTaskDeviceCountStatus:C,show:S,spotCheckTaskDeviceRef:k}=V$();return n({show:S}),(T,V)=>{const $=e.resolveComponent("svg-icon"),f=e.resolveComponent("el-col"),u=e.resolveComponent("el-row"),y=e.resolveComponent("el-popover"),x=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(x,{modelValue:e.unref(o),"onUpdate:modelValue":V[1]||(V[1]=E=>e.isRef(o)?o.value=E:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"820px"},{default:e.withCtx(()=>[e.createElementVNode("div",I$,[e.createElementVNode("div",A$,[e.createElementVNode("span",null,e.toDisplayString(e.unref(N)("spotCheckDetails")),1),e.createElementVNode("div",{class:"iconCloseBox clickBox closeBox absolute top-[-2px] right-[-2px] cursor-pointer",onClick:V[0]||(V[0]=(...E)=>e.unref(r)&&e.unref(r)(...E))},[e.createVNode($,{name:"icon-close",width:"26",height:"26","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",O$,[e.createElementVNode("div",L$,[e.createElementVNode("div",F$,[e.createElementVNode("div",{style:e.normalizeStyle([{left:`${e.unref(d)}%`},{background:"linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%)"}]),class:"rounded-[4px_4px_0_0] absolute top-0 left-0 w-[96px] h-full duration-500"},null,4),e.createElementVNode("ul",B$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(E,D)=>(e.openBlock(),e.createElementBlock("li",{key:D,class:e.normalizeClass([{"text-hy-text-main font-bold":E.value===e.unref(p)},"clickBox cursor-pointer px-2 w-[96px] box-border"]),onClick:L=>e.unref(g)(E.value)},e.toDisplayString(E.label),11,R$))),128))])])]),e.withDirectives(e.createElementVNode("div",P$,[e.createVNode(u,{gutter:8,class:"w-full h-full"},{default:e.withCtx(()=>[e.createVNode(f,{span:8,class:"h-full"},{default:e.withCtx(()=>[e.createElementVNode("div",M$,[e.createElementVNode("div",U$,[e.createElementVNode("div",W$,[e.createElementVNode("div",z$,e.toDisplayString(e.unref(N)("spotCheckPersonnel")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(i).name)+" ",1),e.createElementVNode("span",H$," ("+e.toDisplayString(e.unref(i).jobNum)+")",1)])]),e.createElementVNode("div",j$,[e.createElementVNode("div",Y$,e.toDisplayString(e.unref(N)("department")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).orgName),1)]),e.createElementVNode("div",G$,[e.createElementVNode("div",q$,e.toDisplayString(e.unref(N)("spotCheckTime")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkDtm),1)]),e.createElementVNode("div",K$,[e.createElementVNode("div",X$,e.toDisplayString(e.unref(N)("spotCheckType")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkType===1?e.unref(N)("rangeCheck"):e.unref(N)("randomCheck")),1)]),e.createElementVNode("div",J$,[e.createElementVNode("div",Z$,e.toDisplayString(e.unref(N)("spotCheckMethod")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkStyle===1?e.unref(N)("message"):e.unref(N)("call")),1)]),e.unref(i).checkType===1?(e.openBlock(),e.createElementBlock("div",Q$,[e.createElementVNode("div",v$,[e.createTextVNode(e.toDisplayString(e.unref(N)("samplingScope"))+" ",1),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("span",eV,e.toDisplayString(e.unref(N)("regionalSpotCheck")),1)):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("span",tV,e.toDisplayString(e.unref(N)("departmentSpotCheck")),1)):e.unref(i).checkScope===3?(e.openBlock(),e.createElementBlock("span",nV,e.toDisplayString(e.unref(N)("deviceSpotCheck")),1)):e.createCommentVNode("",!0),e.createTextVNode(" ) ")]),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("div",oV,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(E,D)=>(e.openBlock(),e.createElementBlock("span",{key:`${D}_orgNameList`},[e.createTextVNode(e.toDisplayString(E)+" ",1),D!==e.unref(_).length-1?(e.openBlock(),e.createElementBlock("span",aV,"、")):e.createCommentVNode("",!0)]))),128))])):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("div",sV,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(E,D)=>(e.openBlock(),e.createElementBlock("span",{key:`${D}_orgNameList`},[e.createTextVNode(e.toDisplayString(E)+" ",1),D!==e.unref(m).length-1?(e.openBlock(),e.createElementBlock("span",lV,"、")):e.createCommentVNode("",!0)]))),128))])):(e.openBlock(),e.createElementBlock("div",rV,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).checkNum||0)+" "+e.toDisplayString(e.unref(N)("device")),1)]))])):(e.openBlock(),e.createElementBlock("div",iV,[e.createElementVNode("div",cV,[e.createTextVNode(e.toDisplayString(e.unref(N)("samplingScope"))+" ",1),e.createElementVNode("span",null,e.toDisplayString(e.unref(N)("randomCheck")),1),e.createTextVNode(" ) ")]),e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).limitNum||0)+" "+e.toDisplayString(e.unref(N)("device")),1)])]))])])]),_:1}),e.createVNode(f,{span:16,class:"h-full"},{default:e.withCtx(()=>[e.unref(i).checkStyle===1?(e.openBlock(),e.createElementBlock("div",dV,[e.createElementVNode("div",pV,[e.createElementVNode("div",null,e.toDisplayString(e.unref(N)("messageContent")),1),e.unref(i).playMsg===1?(e.openBlock(),e.createElementBlock("div",fV," TTS"+e.toDisplayString(e.unref(N)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",hV,[e.createElementVNode("div",mV,e.toDisplayString(e.unref(i).msgContent),1)]),e.createElementVNode("div",uV,[e.createElementVNode("div",gV,[e.createElementVNode("div",_V,e.toDisplayString(e.unref(N)("answerMethod")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(i).actionType===1?e.unref(N)("punchIn"):e.unref(N)("reply")),1)]),e.createElementVNode("div",yV,[e.createElementVNode("div",xV,e.toDisplayString(e.unref(N)("answerTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",kV,e.toDisplayString(e.unref(i).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(N)("second")),1)])])])])):(e.openBlock(),e.createElementBlock("div",CV,[e.createElementVNode("div",bV,[e.createElementVNode("div",NV,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",wV,e.toDisplayString(e.unref(N)("callSpotCheck")),1),e.createElementVNode("div",SV,e.toDisplayString(e.unref(N)("backupWillBeCheckedByIntercomAnswering")),1)])])]))]),_:1})]),_:1})],512),[[e.vShow,e.unref(p)===1]]),e.withDirectives(e.createElementVNode("div",TV,[e.unref(i).checkNum!==0?(e.openBlock(),e.createBlock(u,{key:0,gutter:8,class:"w-full h-full"},{default:e.withCtx(()=>[e.createVNode(f,{span:e.unref(i).actionType===1?24:8,class:"h-full !flex flex-col"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"flex-col":e.unref(i).actionType!==1,"justify-between items-center":e.unref(i).actionType===1},"flex-shrink-0 flex px-2"])},[e.createVNode(y,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("span",null,[e.createElementVNode("div",{class:e.normalizeClass([{"min-w-[248px]":e.unref(i).actionType===1},"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-bg-2 rounded flex font-bold"])},[e.createElementVNode("div",HV,[e.createElementVNode("div",jV,[e.createVNode($,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",YV,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("div",GV,[e.createElementVNode("div",qV,[e.createVNode($,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),e.createElementVNode("div",KV,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("div",XV,[e.createElementVNode("div",JV,[e.createVNode($,{name:"base-danger-state","class-name":"w-[16px] h-[16px] text-hy-danger"})]),e.createElementVNode("div",ZV,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])],2)])]),default:e.withCtx(()=>[e.createElementVNode("ul",EV,[e.createElementVNode("li",DV,[e.createElementVNode("span",$V,e.toDisplayString(e.unref(N)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",VV,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("li",IV,[e.createElementVNode("span",AV,e.toDisplayString(e.unref(N)("waitingToReceive")),1),e.createElementVNode("div",OV,e.toDisplayString(e.unref(i).beReceiveNum||"- -"),1)]),e.createElementVNode("li",LV,[e.createElementVNode("span",FV,e.toDisplayString(e.unref(N)("receiving")),1),e.createElementVNode("div",BV,e.toDisplayString(e.unref(i).receivingNum||"- -"),1)]),e.createElementVNode("li",RV,[e.createElementVNode("span",PV,e.toDisplayString(e.unref(N)("completed")),1),e.createElementVNode("div",MV,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("li",UV,[e.createElementVNode("span",WV,e.toDisplayString(e.unref(N)("uncompleted")),1),e.createElementVNode("div",zV,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])])]),_:1}),e.createElementVNode("div",QV,[e.createElementVNode("div",{style:e.normalizeStyle([{left:`${e.unref(l)}%`},{background:"linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%)"}]),class:e.normalizeClass([{"w-[75px]":e.unref(i).actionType!==1,"w-[54px]":e.unref(i).actionType===1},"rounded-[4px_4px_0_0] absolute top-0 left-0 h-full duration-500"])},null,6),e.createElementVNode("ul",vV,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(E,D)=>(e.openBlock(),e.createElementBlock("li",{key:`${D}_checkStatusList`,class:e.normalizeClass([{"text-hy-text-main":E.value===e.unref(a)},"flex-1 cursor-pointer hover:opacity-60"]),onClick:L=>e.unref(w)(E.value)},e.toDisplayString(E.label),11,e2))),128))])])],2),e.createElementVNode("div",t2,[e.unref(i).id?(e.openBlock(),e.createBlock(na,{key:0,ref_key:"spotCheckTaskDeviceRef",ref:k,"params-span":e.unref(i).actionType===1?8:24,form:e.unref(i),"subscribe-status":!1,onChange:e.unref(b),onOnCountStatus:e.unref(C)},null,8,["params-span","form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)])]),_:1},8,["span"]),e.unref(i).actionType!==1?(e.openBlock(),e.createBlock(f,{key:0,span:16,class:"h-full"},{default:e.withCtx(()=>[n2]),_:1})):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createElementBlock("div",o2,[e.createElementVNode("div",a2,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",s2,e.toDisplayString(e.unref(N)("noDeviceSupportsThisSpotCheck")),1)])]))],512),[[e.vShow,e.unref(p)===2]])])])]),_:1},8,["modelValue"])}}});var Nr=(t=>(t[t.LAW_ENFORCEMENT_RECORDER=1]="LAW_ENFORCEMENT_RECORDER",t[t.WALKIE_TALKIE=2]="WALKIE_TALKIE",t[t.FIRE_DISPATCH_DESK=3]="FIRE_DISPATCH_DESK",t[t.FIRE_DUTY_DESK=4]="FIRE_DUTY_DESK",t[t.PHONE_APP=5]="PHONE_APP",t[t.CONTROL_THE_BALL=6]="CONTROL_THE_BALL",t[t.IPC_CAMERA=7]="IPC_CAMERA",t[t.HELMET=8]="HELMET",t[t.FLASHLIGHT=9]="FLASHLIGHT",t[t.WORK_LICENSE=10]="WORK_LICENSE",t[t.DRONE=11]="DRONE",t[t.CAR_PTZ=12]="CAR_PTZ",t[t.CASCADE_DEVICE_DOWN=13]="CASCADE_DEVICE_DOWN",t[t.JT808=14]="JT808",t[t.NATIONAL_STANDARD_RECORDER=15]="NATIONAL_STANDARD_RECORDER",t[t.RTOS_DEVICE=16]="RTOS_DEVICE",t[t.WATCH=17]="WATCH",t))(Nr||{});se.DeviceEnum=Nr,se.HyAcquisitionStationTree=Ek,se.HyAddDepartmentType=Yk,se.HyAudioPlayer=Cl,se.HyBoxBorder=ft,se.HyDataTimeShortcuts=fd,se.HyDeviceTree=Ol,se.HyDeviceTreeCpns=Ho,se.HyEditSpotCheck=D$,se.HyElectronicFence=xw,se.HyFileDetails=Yy,se.HyFileUpload=j1,se.HyImageViewer=hl,se.HyMapNoPermissions=Pn,se.HyMapSearchPlace=kr,se.HyMenuComponents=Tf,se.HyOrgCascader=Bf,se.HyOrgGroupTree=nk,se.HyOrgTree=Ll,se.HyRoundButton=Ke,se.HySelect=nf,se.HySelectMapLocation=Nw,se.HySpotCheckDetail=l2,se.HySvgIcon=gl,se.HyTable=Bo,se.HyTableHead=Gf,se.HyTipsModal=yt,se.HyUserHead=Ht,se.HyUserTree=zx,se.HyVideoPlayer=bl,se.HyVueCropper=yl,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})});
|
37
|
+
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:s,nextZIndex:l}},Zb=ar({type:String,values:zb,required:!1}),Qb=Symbol("size"),vb=Symbol("emptyValuesContextKey"),eN=hn({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>Wn(t)?!t():!t}}),mr=Symbol(),Gn=e.ref();function ur(t,n=void 0){const o=e.getCurrentInstance()?e.inject(mr,Gn):Gn;return t?e.computed(()=>{var a,s;return(s=(a=o.value)==null?void 0:a[t])!=null?s:n}):o}function tN(t,n){const o=ur(),a=ea(t,e.computed(()=>{var i;return((i=o.value)==null?void 0:i.namespace)||Yn})),s=qb(e.computed(()=>{var i;return(i=o.value)==null?void 0:i.locale})),l=Jb(e.computed(()=>{var i;return((i=o.value)==null?void 0:i.zIndex)||pr})),r=e.computed(()=>{var i;return e.unref(n)||((i=o.value)==null?void 0:i.size)||""});return gr(e.computed(()=>e.unref(o)||{})),{ns:a,locale:s,zIndex:l,size:r}}const gr=(t,n,o=!1)=>{var a;const s=!!e.getCurrentInstance(),l=s?ur():void 0,r=(a=n==null?void 0:n.provide)!=null?a:s?e.provide:void 0;if(!r){jn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const i=e.computed(()=>{const c=e.unref(t);return l!=null&&l.value?nN(l.value,c):c});return r(mr,i),r(rr,e.computed(()=>i.value.locale)),r(ir,e.computed(()=>i.value.namespace)),r(hr,e.computed(()=>i.value.zIndex)),r(Qb,{size:e.computed(()=>i.value.size||"")}),r(vb,e.computed(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(o||!Gn.value)&&(Gn.value=i.value),i},nN=(t,n)=>{const o=[...new Set([...nr(t),...nr(n)])],a={};for(const s of o)a[s]=n[s]!==void 0?n[s]:t[s];return a},oN=hn({a11y:{type:Boolean,default:!0},locale:{type:ot(Object)},size:Zb,button:{type:ot(Object)},experimentalFeatures:{type:ot(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ot(Object)},zIndex:Number,namespace:{type:String,default:"el"},...eN}),Ze={};e.defineComponent({name:"ElConfigProvider",props:oN,setup(t,{slots:n}){e.watch(()=>t.message,a=>{Object.assign(Ze,a??{})},{immediate:!0,deep:!0});const o=gr(t);return()=>e.renderSlot(n,"default",{config:o==null?void 0:o.value})}});var ta=(t,n)=>{const o=t.__vccOpts||t;for(const[a,s]of n)o[a]=s;return o};const aN=hn({size:{type:ot([Number,String])},color:{type:String}}),sN=e.defineComponent({name:"ElIcon",inheritAttrs:!1}),lN=e.defineComponent({...sN,props:aN,setup(t){const n=t,o=ea("icon"),a=e.computed(()=>{const{size:s,color:l}=n;return!s&&!l?{}:{fontSize:Ab(s)?void 0:vo(s),"--color":l}});return(s,l)=>(e.openBlock(),e.createElementBlock("i",e.mergeProps({class:e.unref(o).b(),style:e.unref(a)},s.$attrs),[e.renderSlot(s.$slots,"default")],16))}});var rN=ta(lN,[["__file","icon.vue"]]);const _r=lr(rN),iN=hn({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:ot([String,Object,Array])},offset:{type:ot(Array),default:[0,0]},badgeClass:{type:String}}),cN=e.defineComponent({name:"ElBadge"}),dN=e.defineComponent({...cN,props:iN,setup(t,{expose:n}){const o=t,a=ea("badge"),s=e.computed(()=>o.isDot?"":It(o.value)&&It(o.max)?o.max<o.value?`${o.max}+`:o.value===0&&!o.showZero?"":`${o.value}`:`${o.value}`),l=e.computed(()=>{var r,i,c,p,d;return[{backgroundColor:o.color,marginRight:vo(-((i=(r=o.offset)==null?void 0:r[0])!=null?i:0)),marginTop:vo((p=(c=o.offset)==null?void 0:c[1])!=null?p:0)},(d=o.badgeStyle)!=null?d:{}]});return n({content:s}),(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a).b())},[e.renderSlot(r.$slots,"default"),e.createVNode(e.Transition,{name:`${e.unref(a).namespace.value}-zoom-in-center`,persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("sup",{class:e.normalizeClass([e.unref(a).e("content"),e.unref(a).em("content",r.type),e.unref(a).is("fixed",!!r.$slots.default),e.unref(a).is("dot",r.isDot),r.badgeClass]),style:e.normalizeStyle(e.unref(l)),textContent:e.toDisplayString(e.unref(s))},null,14,["textContent"]),[[e.vShow,!r.hidden&&(e.unref(s)||r.isDot)]])]),_:1},8,["name"])],2))}});var pN=ta(dN,[["__file","badge.vue"]]);const fN=lr(pN),yr=["success","info","warning","error"],Re=Hb({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Yt?document.body:void 0}),hN=hn({customClass:{type:String,default:Re.customClass},center:{type:Boolean,default:Re.center},dangerouslyUseHTMLString:{type:Boolean,default:Re.dangerouslyUseHTMLString},duration:{type:Number,default:Re.duration},icon:{type:Pb,default:Re.icon},id:{type:String,default:Re.id},message:{type:ot([String,Object,Function]),default:Re.message},onClose:{type:ot(Function),default:Re.onClose},showClose:{type:Boolean,default:Re.showClose},type:{type:String,values:yr,default:Re.type},plain:{type:Boolean,default:Re.plain},offset:{type:Number,default:Re.offset},zIndex:{type:Number,default:Re.zIndex},grouping:{type:Boolean,default:Re.grouping},repeatNum:{type:Number,default:Re.repeatNum}}),mN={destroy:()=>!0},Qe=e.shallowReactive([]),uN=t=>{const n=Qe.findIndex(s=>s.id===t),o=Qe[n];let a;return n>0&&(a=Qe[n-1]),{current:o,prev:a}},gN=t=>{const{prev:n}=uN(t);return n?n.vm.exposed.bottom.value:0},_N=(t,n)=>Qe.findIndex(a=>a.id===t)>0?16:n,yN=e.defineComponent({name:"ElMessage"}),xN=e.defineComponent({...yN,props:hN,emits:mN,setup(t,{expose:n}){const o=t,{Close:a}=Mb,{ns:s,zIndex:l}=tN("message"),{currentZIndex:r,nextZIndex:i}=l,c=e.ref(),p=e.ref(!1),d=e.ref(0);let h;const m=e.computed(()=>o.type?o.type==="error"?"danger":o.type:"info"),_=e.computed(()=>{const f=o.type;return{[s.bm("icon",f)]:f&&sr[f]}}),w=e.computed(()=>o.icon||sr[o.type]||""),g=e.computed(()=>gN(o.id)),b=e.computed(()=>_N(o.id,o.offset)+g.value),C=e.computed(()=>d.value+b.value),S=e.computed(()=>({top:`${b.value}px`,zIndex:r.value}));function k(){o.duration!==0&&({stop:h}=eC(()=>{V()},o.duration))}function T(){h==null||h()}function V(){p.value=!1}function $({code:f}){f===Wb.esc&&V()}return e.onMounted(()=>{k(),i(),p.value=!0}),e.watch(()=>o.repeatNum,()=>{T(),k()}),tC(document,"keydown",$),lC(c,()=>{d.value=c.value.getBoundingClientRect().height}),n({visible:p,bottom:C,close:V}),(f,u)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(s).b("fade"),onBeforeLeave:f.onClose,onAfterLeave:y=>f.$emit("destroy"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:f.id,ref_key:"messageRef",ref:c,class:e.normalizeClass([e.unref(s).b(),{[e.unref(s).m(f.type)]:f.type},e.unref(s).is("center",f.center),e.unref(s).is("closable",f.showClose),e.unref(s).is("plain",f.plain),f.customClass]),style:e.normalizeStyle(e.unref(S)),role:"alert",onMouseenter:T,onMouseleave:k},[f.repeatNum>1?(e.openBlock(),e.createBlock(e.unref(fN),{key:0,value:f.repeatNum,type:e.unref(m),class:e.normalizeClass(e.unref(s).e("badge"))},null,8,["value","type","class"])):e.createCommentVNode("v-if",!0),e.unref(w)?(e.openBlock(),e.createBlock(e.unref(_r),{key:1,class:e.normalizeClass([e.unref(s).e("icon"),e.unref(_)])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(w))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.renderSlot(f.$slots,"default",{},()=>[f.dangerouslyUseHTMLString?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),e.createElementVNode("p",{class:e.normalizeClass(e.unref(s).e("content")),innerHTML:f.message},null,10,["innerHTML"])],2112)):(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(s).e("content"))},e.toDisplayString(f.message),3))]),f.showClose?(e.openBlock(),e.createBlock(e.unref(_r),{key:2,class:e.normalizeClass(e.unref(s).e("closeBtn")),onClick:e.withModifiers(V,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(a))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],46,["id"]),[[e.vShow,p.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var kN=ta(xN,[["__file","message.vue"]]);let CN=1;const xr=t=>{const n=!t||dn(t)||e.isVNode(t)||Wn(t)?{message:t}:t,o={...Re,...n};if(!o.appendTo)o.appendTo=document.body;else if(dn(o.appendTo)){let a=document.querySelector(o.appendTo);Ob(a)||(jn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),o.appendTo=a}return tr(Ze.grouping)&&!o.grouping&&(o.grouping=Ze.grouping),It(Ze.duration)&&o.duration===3e3&&(o.duration=Ze.duration),It(Ze.offset)&&o.offset===16&&(o.offset=Ze.offset),tr(Ze.showClose)&&!o.showClose&&(o.showClose=Ze.showClose),o},bN=t=>{const n=Qe.indexOf(t);if(n===-1)return;Qe.splice(n,1);const{handler:o}=t;o.close()},NN=({appendTo:t,...n},o)=>{const a=`message_${CN++}`,s=n.onClose,l=document.createElement("div"),r={...n,id:a,onClose:()=>{s==null||s(),bN(d)},onDestroy:()=>{e.render(null,l)}},i=e.createVNode(kN,r,Wn(r.message)||e.isVNode(r.message)?{default:Wn(r.message)?r.message:()=>r.message}:null);i.appContext=o||Kt._context,e.render(i,l),t.appendChild(l.firstElementChild);const c=i.component,d={id:a,vnode:i,vm:c,handler:{close:()=>{c.exposed.visible.value=!1}},props:i.component.props};return d},Kt=(t={},n)=>{if(!Yt)return{close:()=>{}};const o=xr(t);if(o.grouping&&Qe.length){const s=Qe.find(({vnode:l})=>{var r;return((r=l.props)==null?void 0:r.message)===o.message});if(s)return s.props.repeatNum+=1,s.props.type=o.type,s.handler}if(It(Ze.max)&&Qe.length>=Ze.max)return{close:()=>{}};const a=NN(o,n);return Qe.push(a),a.handler};yr.forEach(t=>{Kt[t]=(n={},o)=>{const a=xr(n);return Kt({...a,type:t},o)}});function wN(t){for(const n of Qe)(!t||t===n.props.type)&&n.handler.close()}Kt.closeAll=wN,Kt._context=null;const Pe=Ub(Kt,"$message");function SN({props:t}){const n=e.ref(null),o=e.ref([]),a=e.ref(1),s=e.ref(!0),l=e.ref(10),r=e.ref(0),i=e.ref(null),c=e.ref(!1),p=e.ref(!1),d=e.computed(()=>p.value||c.value),h=e.ref({lat:"",lng:""}),m=e.computed(()=>{const x=Number(h.value.lat);return x<=90&&x>=-90?x:"内容错误"}),_=e.computed(()=>{const x=Number(h.value.lng);return x<=180&&x>=-180?x:"内容错误"});function w(){m.value&&m.value!=="内容错误"&&_&&_.value!=="内容错误"&&g(h.value)}function g(x){if(x.lng&&x.lat){t.h.panTo(t.map,[x.lat,x.lng]),t.h.setZoom(t.map,18);const E=t.h.marker(t.map,[x.lat,x.lng],{icon:'<svg aria-hidden="true" class="animation-marker" style="width: 40px; height: 60px;"><use data-v-19e5a669="" xlink:href="#icon-base-trajectory-personnel"></use></svg>',zIndexOffset:100,iconAnchor:[-20,-30]});setTimeout(()=>{t.h.removeMarker(t.map,E)},3e3),k(1)}}function b(x,E){return D=>{if(!s.value)return!1;s.value=!1,setTimeout(()=>{x(D),s.value=!0},E)}}function C(){console.log("触发加载"),!c.value&&(p.value=!0,r.value++,e.nextTick(()=>{T()}))}function S(){n.value=null,h.value={lat:"",lng:""},k()}function k(x){o.value=[],r.value=1,c.value=!1,p.value=!1,a.value!==5&&e.nextTick(()=>{x!==1&&T()})}function T(){n.value&&n.value.length?a.value===1?V():a.value===4?f():a.value===6&&$():k(1)}async function V(){const x=await t.poi.placeSearch({keywords:n.value,offset:l.value,page:r.value});if(console.log(x),x){const E=x,D=[];for(let L=0;L<E.length;L++){const R=E[L];D.push({...R,id:pt.buildUUID(),address:R.address||R.name,title:u(R.name)})}e.nextTick(()=>{p.value=!1,o.value.push(...D),D.length<l.value&&(r.value+=1,V())})}else p.value=!1,c.value=!0,Pe.error("没有搜索到内容")}async function $(){const x=await Xk({page:r.value-1,size:10,query:n.value});if(x.code===200){const E=x.data.content,D=[];for(let L=0;L<E.length;L++){const R=E[L];D.push({id:R.id,address:R.address||R.pointName,...R,title:u(R.pointName)})}e.nextTick(()=>{p.value=!1,o.value.push(...D),r.value===x.data.totalPages&&(c.value=!0)})}}async function f(){const x=await Df({page:r.value-1,size:10,query:n.value});if(x.code===200){const E=x.data.content,D=[];for(let L=0;L<E.length;L++){const R=E[L];D.push({id:R.id,address:R.address||R.companyName,...R,title:u(R.companyName)})}e.nextTick(()=>{p.value=!1,o.value.push(...D),r.value===x.data.totalPages&&(c.value=!0)})}}function u(x){const E=[];for(let D=0;D<x.length;D++){const L=x[D],R=n.value.indexOf(L),G={content:x[D]};R===-1?G.type=1:G.type=2,E.push(G)}return E}function y(){if(a.value===1)return"请输入地址";if(a.value===4)return"请输入部门名称";if(a.value===6)return"请输入巡查点"}return{$t:N,searchAddress:n,searchResultList:o,searchAddressType:a,valid:s,size:l,page:r,nextPageParams:i,noMore:c,loading:p,disabled:d,mapJumpLocationFn:g,throttle:b,load:C,resetFn:k,searchAddressTypeFn:S,placeholderFn:y,inputSearch:h,showSearchLat:m,showSearchLng:_,searchLngLat:w}}const TN={key:1,style:{width:"26px",height:"26px"},class:"el-markerImgBox centerBox flex items-center justify-center overflow-hidden border border-hy-border-1 rounded-full box-border flex-shrink-0"},EN=["src"],DN={class:"ml_10 ml-[10px]",style:{width:"calc(100% - 34px)"}},$N={class:"title fs_14 c_fff over_one_line fw_600 text-[14px] text-hy-text-main truncate font-bold"},VN={class:"address over_one_line fs_12 c_fff truncate text-[12px] text-hy-text-main"},IN={class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"},AN={class:"ml_20 ml-[20px]"},ON=Fe(e.defineComponent({__name:"map-search-place-item",props:{mapJumpLocationFn:{type:Function,default:()=>null},index:{default:null},searchAddressType:{default:1},source:{default:()=>{}}},setup(t){const n=t,{mapJumpLocationFn:o,index:a,searchAddressType:s,source:l}=n;return(r,i)=>{const c=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("li",{class:"clickBox css-text-no-select cursor-pointer",onClick:i[0]||(i[0]=p=>e.unref(o)(e.unref(l)))},[e.unref(s)===1?(e.openBlock(),e.createBlock(c,{key:0,name:"base-maplocation"})):e.unref(s)===4?(e.openBlock(),e.createElementBlock("div",TN,[e.createElementVNode("img",{src:e.unref(l).orgTypeIcon,class:"w-full h-full"},null,8,EN)])):e.unref(s)===6?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle([{width:"26px",height:"26px"},{backgroundColor:e.unref(l).color}]),class:"el-markerImgBox rounded-full flex-shrink-0"},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",DN,[e.createElementVNode("div",$N,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).title,(p,d)=>(e.openBlock(),e.createElementBlock("span",{key:d,style:e.normalizeStyle({color:p.type===2?"var(--hy-text-primary)":"var(--hy-text-secondary)"})},e.toDisplayString(p.content),5))),128))]),e.createElementVNode("div",VN,e.toDisplayString(e.unref(l).address),1),e.createElementVNode("div",IN,[e.createElementVNode("span",null,"经度:"+e.toDisplayString(e.unref(l).lat),1),e.createElementVNode("span",AN,"维度:"+e.toDisplayString(e.unref(l).lng),1)])])])}}}),[["__scopeId","data-v-7d1ddd51"]]),LN=t=>(e.pushScopeId("data-v-5856b649"),t=t(),e.popScopeId(),t),FN={style:{display:"inline-block","flex-direction":"column",width:"300px"},class:"search_lightColor pos_r relative"},BN={class:"r-f flex"},RN={class:"flex",style:{width:"calc(100% - 42px)"}},PN={key:1,class:"w-[58%] flex justify-between ml-[4px]"},MN={class:"flex flex-col leading-[20px] ml-[10px]"},UN=LN(()=>e.createElementVNode("span",{class:"text-[14px] font-[600] text-hy-text-main mb-[5px]"},"填写经纬度",-1)),WN={class:"text-[12px] text-hy-text-secondary"},zN={class:"text-[12px] text-hy-text-secondary"},HN={key:2,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},jN={key:3,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},kr=Fe(e.defineComponent({__name:"map-search-place",props:{map:{default:()=>null},h:{default:()=>null},poi:{default:()=>null},searchTypes:{default:()=>[{label:"地理地址",value:1},{label:"部门名称",value:4},{label:"查经纬度",value:5},{label:"查巡查点",value:6}]}},setup(t){const n=t,{$t:o,searchAddressType:a,showSearchLat:s,showSearchLng:l,inputSearch:r,searchAddressTypeFn:i,searchAddress:c,searchResultList:p,resetFn:d,loading:h,noMore:m,mapJumpLocationFn:_,placeholderFn:w,load:g,throttle:b,searchLngLat:C}=SN({props:n});return e.onMounted(()=>{var S;a.value=(S=n.searchTypes[0])==null?void 0:S.value}),(S,k)=>{const T=e.resolveComponent("el-option"),V=e.resolveComponent("el-select"),$=e.resolveComponent("el-input"),f=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",FN,[e.createElementVNode("div",BN,[e.createElementVNode("div",RN,[e.createVNode(V,{modelValue:e.unref(a),"onUpdate:modelValue":k[0]||(k[0]=u=>e.isRef(a)?a.value=u:null),style:{width:"38%",border:"1px solid var(--hy-border-2)","box-sizing":"border-box","border-radius":"6px","font-size":"12px"},placeholder:"请选择",onChange:e.unref(i)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.searchTypes,u=>(e.openBlock(),e.createBlock(T,{key:u.value,value:u.value,label:u.label},null,8,["value","label"]))),128))]),_:1},8,["modelValue","onChange"]),e.unref(a)!==5?(e.openBlock(),e.createBlock($,{key:0,modelValue:e.unref(c),"onUpdate:modelValue":k[1]||(k[1]=u=>e.isRef(c)?c.value=u:null),clearable:"",style:{width:"58%",border:"1px solid var(--hy-border-2)","box-sizing":"border-box","border-radius":"6px","margin-left":"4px"},placeholder:e.unref(w)(),onInput:k[2]||(k[2]=e.unref(b)(e.unref(d),1e3))},null,8,["modelValue","placeholder"])):(e.openBlock(),e.createElementBlock("div",PN,[e.createVNode($,{modelValue:e.unref(r).lng,"onUpdate:modelValue":k[3]||(k[3]=u=>e.unref(r).lng=u),placeholder:"经度",class:"!w-[47.5%]",clearable:"",onInput:k[4]||(k[4]=u=>e.unref(pt.onlyNumber)(e.unref(r),"lng"))},null,8,["modelValue"]),e.createVNode($,{modelValue:e.unref(r).lat,"onUpdate:modelValue":k[5]||(k[5]=u=>e.unref(r).lat=u),placeholder:"纬度",class:"!w-[47.5%]",clearable:"",onInput:k[6]||(k[6]=u=>e.unref(pt.onlyNumber)(e.unref(r),"lat"))},null,8,["modelValue"])]))]),e.createElementVNode("div",{class:"searchBox centerBox cursor-pointer flex items-center justify-center",style:{"flex-shrink":"0",display:"flex"},onClick:k[7]||(k[7]=(...u)=>e.unref(d)&&e.unref(d)(...u))},[e.createVNode(f,{name:"base-search","class-name":"w-[16px] h-[16px] text-hy-text-main"})])]),e.unref(p).length?(e.openBlock(),e.createBlock(e.unref(Os),{key:0,"infinite-scroll-disabled":"disabled",class:"filterContentList",style:{height:"400px","overflow-y":"auto"},"data-key":"id","data-sources":e.unref(p),"data-component":ON,keeps:10,"extra-props":{mapJumpLocationFn:e.unref(_),searchAddressType:e.unref(a)},"estimate-size":88,onTobottom:e.unref(g)},null,8,["data-sources","extra-props","onTobottom"])):e.createCommentVNode("",!0),e.unref(a)===5?(e.openBlock(),e.createElementBlock("div",{key:1,class:"flex items-center pt-[15px] pb-[10px] mt-[10px] rounded-[4px] cursor-pointer transition-all hover:bg-hy-dialog-bg-5 active:opacity-70",onClick:k[8]||(k[8]=(...u)=>e.unref(C)&&e.unref(C)(...u))},[e.createVNode(f,{name:"base-maplocation","class-name":"w-[26px] h-[26px] ml-[10px]"}),e.createElementVNode("div",MN,[UN,e.createElementVNode("span",WN,[e.createTextVNode("经度:"),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)==="内容错误"?"text-hy-danger":"")},e.toDisplayString(e.unref(l)||"请输入经度"),3)]),e.createElementVNode("span",zN,[e.createTextVNode("纬度:"),e.createElementVNode("span",{class:e.normalizeClass(e.unref(s)==="内容错误"?"text-hy-danger":"")},e.toDisplayString(e.unref(s)||"请输入纬度"),3)])])])):e.createCommentVNode("",!0),e.unref(h)?(e.openBlock(),e.createElementBlock("p",HN," 加载中... ")):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createElementBlock("p",jN," 没有更多了 ")):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-5856b649"]]);function YN(t){return pe.post({url:"mapRail/findAllWithDevice",data:t,isFormData:!0})}function GN(t){return pe.post({url:"mapRail/deleteBatch",data:t,isFormData:!0})}function qN(t){return pe.post({url:t.id?"mapRail/update":"mapRail/insert",data:t,isJson:!0})}function KN(t){return pe.post({url:"mapRail/select",data:t,isFormData:!0})}function XN(t){const n=t.emit,{mapConfig:o,isShowMap:a,layersUrlList:s,H:l,POI:r}=Ro(),i=e.ref(null),c=e.ref(null),p=e.shallowRef(null),d=e.ref({railName:[{required:!0,message:N("pleaseEnterTheNameOfTheElectronicFence"),trigger:"blur"}]}),h=e.ref({}),m=e.ref(!0),_=e.ref(!1),w=e.ref(100),g=e.ref("fixedPoint"),b=e.ref(null),C=e.ref(!1),S=e.shallowRef(null);e.watch(()=>w.value,P=>{w.value=P.replace(/\D/g,"")});function k(P,M){return F=>{if(!m.value)return!1;m.value=!1,setTimeout(()=>{P(F),m.value=!0},M)}}function T(){let P="";g.value==="fixedPoint"?P=N("mouseClicksOnTheMapAndReleasesToEnd"):g.value==="circle"?P=N("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):P=N("mouseClicksOnTheMapAndRightClicksToEnd"),b.value=P}async function V(){const P=Ye.getCache("userInfo");let M=null;P!=null&&P.lng&&(P!=null&&P.lat)&&(M=[P.lat,P.lng]),(M==null?void 0:M.length)===0&&(M=null),p.value=await l.map("addElectronicFence_container",{maxZoom:o.maxZoom||18,minZoom:o.minZoom||13,zoom:o.zoom||13,center:M,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:s,layerType:1}),p.value.on("complete",F=>{var H;if(console.log("加载完成"),(H=h.value.pointList)!=null&&H.length){const Z=h.value.pointList.map(q=>({lat:q.lat,lng:q.lng}));y(Z)}}),p.value.on("left-click",F=>{E(F)})}function $(){S.value&&(l.removePolygon(p.value,S.value),S.value=null)}function f(){$(),g.value!=="fixedPoint"?u():C.value=!0}function u(){const P={templineStyle:{color:"#2DF2FF"},hintlineStyle:{color:"#2DF2FF",dashArray:[5,5]}};l.pm(p.value,g.value,P,y)}function y(P){S.value=l.polygon(p.value,P,{weight:2,color:"#2DF2FF",opacity:1,fillColor:"#2DF2FF",fillOpacity:.3}),l.fitBounds(p.value,P.map(M=>[M.lat,M.lng])),x()}function x(){l.removePM(p.value)}function E(P){if(C.value){const M=l.searchByCircle({lat:P.latlng.lat,lng:P.latlng.lng},w.value/2);y(M),C.value=!1}}async function D(P){const M=await KN({id:P});M.code===200&&(h.value={...M.data},_.value=!0,e.nextTick(()=>{V()}))}function L(P){var M;h.value={},w.value=100,C.value=!1,$(),g.value="fixedPoint",T(),c.value&&((M=c.value)==null||M.resetFields()),P?D(P):(_.value=!0,e.nextTick(()=>{V()}))}function R(){console.log(S.value)}function G(){var M;R();let P=[];if(S.value&&(P=l.getShapeLatLngs(S.value)),(P==null?void 0:P.length)===0||!S.value)return Pe.error(N("pleaseDrawTheElectronicFence")),!1;(M=c.value)==null||M.validate(async F=>{if(F){const H={railName:h.value.railName};H.pointList=P.map(q=>({lng:q.lng,lat:q.lat})),H.id=h.value.id||null,(await qN(H)).code===200&&(Pe.success(`${N("operationSuccessful")} !`),n("on-submit"),_.value=!1)}})}function B(){n("on-close"),_.value=!1}return{addElectronicFenceContainerRef:i,formRef:c,H:l,map:p,POI:r,isShowMap:a,rules:d,form:h,valid:m,dialogVisible:_,radius:w,mouseToolName:g,tips:b,onClose:B,show:L,onSubmit:G,tipsFn:T,initMap:V,mapRailSelectFn:D,throttle:k,startDraw:f,removePolygon:$}}const JN=t=>(e.pushScopeId("data-v-b8fbad8e"),t=t(),e.popScopeId(),t),ZN={class:"text-hy-text-main"},QN={class:"relative text-hy-text-main text-[18px] text-center p-[20px] font-bold z-[1px] bg-hy-dialog-bg-1 rounded-[12px_12px_0_0] font-[Helvetica]"},vN={class:"dialog_body"},ew={class:""},tw={class:"form-label"},nw={class:"relative flex flex-row h-[50px]"},ow={class:"z-[1]"},aw={class:"form-label"},sw={class:"w-full flex items-center form-item"},lw={class:"form-label"},rw={class:"flex items-center form-item"},iw=JN(()=>e.createElementVNode("span",{class:"text-sm ml-[10px] text-hy-text-secondary flex-shrink"},"M",-1)),cw={class:"flex items-center form-item"},dw={class:"text-xs text-hy-text-secondary flex items-center"},pw={class:"text-hy-main"},fw={class:"text-right mt-[10px]"},hw=Fe(e.defineComponent({__name:"add-electronic-fence",emits:["on-submit","on-close"],setup(t,{expose:n,emit:o}){const a=o,{addElectronicFenceContainerRef:s,formRef:l,rules:r,form:i,dialogVisible:c,radius:p,mouseToolName:d,tips:h,H:m,map:_,POI:w,isShowMap:g,onClose:b,tipsFn:C,show:S,startDraw:k,removePolygon:T,onSubmit:V}=XN({emit:a});return n({show:S}),e.onUnmounted(()=>{m.removeMap(_.value)}),($,f)=>{const u=e.resolveComponent("svg-icon"),y=e.resolveComponent("el-input"),x=e.resolveComponent("el-form-item"),E=e.resolveComponent("el-col"),D=e.resolveComponent("el-option"),L=e.resolveComponent("el-select"),R=e.resolveComponent("el-button"),G=Yo,B=e.resolveComponent("el-icon"),P=e.resolveComponent("el-row"),M=e.resolveComponent("el-form"),F=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(F,{modelValue:e.unref(c),"onUpdate:modelValue":f[4]||(f[4]=H=>e.isRef(c)?c.value=H:null),"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0,"show-close":!1,class:"dialog_clsss",top:"6vh",width:"1200"},{default:e.withCtx(()=>[e.createElementVNode("div",ZN,[e.createElementVNode("div",QN,[e.createElementVNode("span",null,e.toDisplayString(e.unref(N)("electronicFence")),1),e.createElementVNode("div",{class:"absolute top-[15px] right-[15px] cursor-pointer",onClick:f[0]||(f[0]=(...H)=>e.unref(b)&&e.unref(b)(...H))},[e.createVNode(u,{name:"icon-close",width:"26",height:"26","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",vN,[e.createVNode(M,{ref_key:"formRef",ref:l,model:e.unref(i),rules:e.unref(r),"label-width":"0px","label-position":"top",class:"demo-ruleForm"},{default:e.withCtx(()=>[e.createVNode(P,{gutter:20},{default:e.withCtx(()=>[e.createVNode(E,{span:24},{default:e.withCtx(()=>[e.createVNode(x,{prop:"railName"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",ew,e.toDisplayString(e.unref(N)("electronicFenceName")),1)])]),default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(i).railName,"onUpdate:modelValue":f[1]||(f[1]=H=>e.unref(i).railName=H),placeholder:e.unref(N)("pleaseEnterTheNameOfTheElectronicFence"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})]),_:1}),e.createVNode(E,{span:10},{default:e.withCtx(()=>[e.createVNode(x,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",tw,e.toDisplayString(e.unref(N)("electronicFenceRange")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",nw,[e.createElementVNode("div",ow,[e.unref(g)&&e.unref(_)?(e.openBlock(),e.createBlock(kr,{key:0,h:e.unref(m),map:e.unref(_),poi:e.unref(w)},null,8,["h","map","poi"])):e.createCommentVNode("",!0)])])]),_:1})]),_:1}),e.createVNode(E,{span:5},{default:e.withCtx(()=>[e.createVNode(x,{class:"m-0 pl-[20px]"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",aw,e.toDisplayString(e.unref(N)("drawingMethod")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",sw,[e.createVNode(L,{modelValue:e.unref(d),"onUpdate:modelValue":f[2]||(f[2]=H=>e.isRef(d)?d.value=H:null),placeholder:e.unref(N)("pleaseSelectTheDrawingMethod"),class:"!w-full",onChange:e.unref(C)},{default:e.withCtx(()=>[e.createVNode(D,{label:e.unref(N)("fixedPointRange"),value:"fixedPoint"},null,8,["label"]),e.createVNode(D,{label:e.unref(N)("customCircle"),value:"circle"},null,8,["label"]),e.createVNode(D,{label:e.unref(N)("customPolygon"),value:"polygon"},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])])]),_:1})]),_:1}),e.unref(d)==="fixedPoint"?(e.openBlock(),e.createBlock(E,{key:0,span:3},{default:e.withCtx(()=>[e.createVNode(x,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",lw,e.toDisplayString(e.unref(N)("rangeDistance")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",rw,[e.createVNode(y,{modelValue:e.unref(p),"onUpdate:modelValue":f[3]||(f[3]=H=>e.isRef(p)?p.value=H:null),maxlength:"6",placeholder:e.unref(N)("unitMeter"),clearable:""},null,8,["modelValue","placeholder"]),iw])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(E,{span:6},{default:e.withCtx(()=>[e.createVNode(x,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(N)("operationButton")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",cw,[e.createVNode(R,{class:"button_function",onClick:e.unref(k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(N)("startDrawing")),1)]),_:1},8,["onClick"]),e.createVNode(R,{type:"danger",class:"",onClick:e.unref(T)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(N)("clearDrawing")),1)]),_:1},8,["onClick"])])]),_:1})]),_:1}),e.createVNode(E,{span:24},{default:e.withCtx(()=>[e.createVNode(x,null,{default:e.withCtx(()=>[e.unref(g)?(e.openBlock(),e.createElementBlock("div",{key:1,id:"addElectronicFence_container",ref_key:"addElectronicFenceContainerRef",ref:s,class:"z-[0]"},null,512)):(e.openBlock(),e.createBlock(Pn,{key:0,class:"!h-[400px] rounded"})),e.createElementVNode("div",dw,[e.createVNode(B,{class:"text-sm"},{default:e.withCtx(()=>[e.createVNode(G)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(N)("afterClickingToStartDrawing"))+" ",1),e.createElementVNode("span",pw,e.toDisplayString(e.unref(h)),1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"]),e.createElementVNode("div",fw,[e.createVNode(R,{type:"primary",class:"w-[100px]",onClick:e.unref(b)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(N)("close")),1)]),_:1},8,["onClick"]),e.createVNode(R,{class:"w-[100px]",onClick:e.unref(V)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(N)("save")),1)]),_:1},8,["onClick"])])])])]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-b8fbad8e"]]);function mw(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(null),s=e.ref(null),l=e.ref({groupId:null,waterPointTypeId:null});function r(h,m){n("on-map-display-fn",{id:h,type:!m})}const i=e.computed(()=>h=>{var m;return(m=o.value.mapDisplayList)!=null&&m.length?o.value.mapDisplayList.findIndex(w=>w===h)!==-1:!1});function c(h){var m;(m=a.value)==null||m.show(h)}function p(){var h;(h=s.value)==null||h.getTableData(),n("on-get-data")}function d(h){yt({tipsTitle:N("deleteElectronicFence"),tipsContent:`<div><p>${N("confirmToDeleteTheCurrentDeletedElectronicFence")}?</p></div>`,submitBtnText:N("confirm-0")},async()=>{(await GN({ids:h})).code===200&&(n("on-delete",h),he.ElMessage.success(N("deletedSuccessfully")),p())})}return{addElectronicFenceRef:a,AppTableRef:s,requestParams:l,changeFn:r,mapDisplayFn:i,addElectronicFenceShow:c,getData:p,deleteShow:d}}const uw={class:"w-full h-full"},gw={class:"flex items-center justify-center"},_w={class:"ml-[6px]"},yw={class:"flex"},xw=e.defineComponent({__name:"electronic-fence",props:{initParams:{default:()=>{}},mapDisplayList:{default:()=>[]},tableColumns:{default:()=>[{label:N("electronicFenceName"),prop:"railName"},{label:N("operation"),slotName:"operator",width:"200px"}]}},emits:["on-map-display-fn","on-get-data","on-delete"],setup(t,{emit:n}){const o=t,a=n,{addElectronicFenceRef:s,AppTableRef:l,requestParams:r,changeFn:i,mapDisplayFn:c,addElectronicFenceShow:p,getData:d,deleteShow:h}=mw({emit:a,props:o});return e.onMounted(()=>{r.value={...o.initParams}}),(m,_)=>{const w=e.resolveComponent("svg-icon"),g=e.resolveComponent("el-button"),b=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock("div",uw,[e.createVNode(Bo,{ref_key:"AppTableRef",ref:l,height:"100%","show-footer":!0,"search-arr":[{label:e.unref(N)("electronicFenceName"),prop:"railName"}],"column-list":m.tableColumns,"req-url":"mapRail/page","search-form":e.unref(r)},{tableLeft:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(g,{type:"success",class:"",onClick:_[0]||(_[0]=C=>e.unref(p)())},{default:e.withCtx(()=>[e.createElementVNode("div",gw,[e.createVNode(w,{width:"16",height:"16",name:"base-add-3"}),e.createElementVNode("span",_w,e.toDisplayString(e.unref(N)("addElectronicFence")),1)])]),_:1}),e.renderSlot(m.$slots,"operator-left-box")])]),mapDisplay:e.withCtx(({row:C})=>[e.createElementVNode("div",null,[e.createVNode(b,{class:"switch_custom switch_width_60","model-value":e.unref(c)(C.id),"active-text":e.unref(N)("show"),"inactive-text":e.unref(N)("hide"),"inline-prompt":"","active-color":"#5AB95F","inactive-color":"var(--hy-dialog-bg-1)",onClick:S=>e.unref(i)(C.id,e.unref(c)(C.id))},null,8,["model-value","active-text","inactive-text","onClick"])])]),isDefault:e.withCtx(({row:C})=>[e.renderSlot(m.$slots,"isDefault",{row:C})]),operator:e.withCtx(({row:C})=>[e.createElementVNode("div",yw,[e.createVNode(Ke,{name:"icon-edit",tips:e.unref(N)("edit"),onClick:S=>e.unref(p)(C.id)},null,8,["tips","onClick"]),e.createVNode(Ke,{class:"hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-text-danger",name:"base-delete",tips:e.unref(N)("delete"),onClick:S=>e.unref(h)(C.id)},null,8,["tips","onClick"])])]),_:3},8,["search-arr","column-list","search-form"]),e.createVNode(hw,{ref_key:"addElectronicFenceRef",ref:s,onOnSubmit:e.unref(d)},null,8,["onOnSubmit"])])}}});function kw({emit:t,props:n}){const o=e.shallowRef(),a=e.shallowRef(),s=e.ref(),{H:l,POI:r,isShowMap:i,layersUrlList:c,mapConfig:p}=Ro();function d(){i&&e.nextTick(async()=>{const S=Ye.getCache("userInfo");let k=[];S!=null&&S.lng&&(S!=null&&S.lat)&&(k=[S.lat,S.lng]),k.length===0&&(k=null),o.value=await l.map("selectMapLocation",{maxZoom:p.maxZoom||18,minZoom:p.minZoom||13,zoom:p.zoom||13,center:k,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:c,layerType:p.satelliteMap}),o.value.on("complete",()=>{t("on-map-ready"),n.latlng&&g(n.latlng)}),o.value.on("left-click",T=>{s.value=null,m({lng:T.latlng.lng,lat:T.latlng.lat})})})}async function h(S){const k=await r.placeSearch({keywords:S,offset:10,page:1});if(k){const T=k[0];m({lng:T.lng,lat:T.lat})}else t("on-geographical-position",{})}async function m(S){const k=await r.reverseGeocoder(S);if(!(k&&k.address.length)){_(S),Pe({type:"warning",message:"未获取到地址信息"});return}w({lng:S.lng,lat:S.lat,address:k.formatted_address,name:k.formatted_address,...k})}function _(S){s.value={lng:S.lng,lat:S.lat,address:"",name:""},t("on-geographical-position",s.value),g()}function w(S){s.value=S,t("on-geographical-position",S),g()}function g(S){a.value&&l.removeMarker(o.value,a.value);let k,T;S?(k=S.lat,T=S.lng):(k=s.value.lat,T=s.value.lng);let V={icon:'<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAgCAYAAAASYli2AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAFKADAAQAAAABAAAAIAAAAADmfO67AAAEgklEQVRIDbVVXWhcVRCeuXuT3SSmmzQEhFYfRBEapGgfYuiPqYkI/rQBjQo+iK1JLdqKtD6IL3kv9CFBitsKCqYPaRHRVokhJoRKVRQpEsGXPpTkqZifxmw22XvO+M25e9Z7N6lPepa7M2fmmzkzc+acw7TFGBIJbl+nZyzRiyzUKUQ7FMZM8+B/DIgut3fR10PMgKQHp6dEb30vB4ylYRHZrUo4IA/yvKPMNzIBnfxwL88kfXiskw1Oy3EhGSGRTBJ0d54NM58odPM5j6k6HJiUAUu24BWOCmJBnlggFivah6mSCo8SDJ7vCc+ryDk8OiGPijXXhSXrQaqM1QkPmxaIF2MO1vF1ffwU/xqqmYnMGaSarS7pvKpGRyW6eFIz9zqbZZIzUPby6+MbnVGZfnD4mpRY2EogF8gG40FADVZsL6J+DSVwmbn8EgkgusfDjXXpqwaRcMjE1oocGX2u/tNqcESjr34ZjSGaK8gIpUsYABSR9AViqMeim9xn/qFGaHj0cMqZ8zt6KPzGWnvOAmAibGOFKm8M9wSRsfep0CkSFFl9nogsxQJ21WJx3SNPlY+s3RmS4TaL4+AGiKsOqLFSTHlJTDjKLEc2qkkYAOa2AIVaMJGGjyiRuqeYdCV8pNiyNZ2iWITqqfLW2IUAkczBKezhFGfO0ygyH7wwWnoo5QmT/jFpl8i+ryVSZ5463tJ8iMinEPseZ6iZVzYO7L2W7VTfZ6UjdfXZyVyJcn/J+sFyaW0Eu98eL5QwUNMg+I4PfVLcK2KvKaD2IMRG+s8RTiCWkozHqDTtjijgYJ/GQ89eWJmBcn+6qzYvgIsAiwpq78zgEDx+jjLNXD3a/ASaU7PMnBbDZVdktINSV+RK4X2fxjVWvfacJfRwhXKZJfOe+nIOr7zR+BMuh9PaU84I1PWXbhZ4AY0/zyuNF3ZU5JT6iIPT/8roHblzllne1TptPWqqFhf27MTb+VMeHxfDz0CfHF4q4FIYUFGyRglIlYVxYfKdlmNVARiXclJw4ET+TfTWRZ+6p5q69pynqN/F/Sfzx5O2ym+KUIXdUxLan5cuQ3u42ksVsCYdMH9Bj+X7pw9ypPjk2BShKhXYlG15GdFMuB3WY6nHU09HJN821OVf2cqZ2m4ZoSp0PP+RNC4sLI7jZOzTOSK7tn1769NfHeO7XxwKTA/cN0PE3bC/PUvBjg5qWalbGlNMczl8aX72nqX2DrLTKClwqIC/qhRRE+GeQalrbqSmKEvbgg3K53LUiHszizxwu2MIRWFA66USFW09LYfrdGelSKu/FLjs9PiLgTrrl0xLG21Doz6M1+oRaB5A/VrxQOMtiXEoOO5QWqsLaREWN/Gs/dbSQH/AdokuMfog4bC7A0d0kZoyObofh2A3otqFrw1NjheN3MOP/AxkeDLpT9g2Q7hsizQH2+XpS+ou4XB6lqTnQVpFirfg4AbSW0F1WsE3YAGXiUaIBdbwLcLxTfTMLW6kVbWN3f0PNdyibdK7vGsnZUp5xIORWyb5fY7Mv+2yj/Q/o38DhqCjJovBnOsAAAAASUVORK5CYII=" style="width: 20px; height: 32px;" />',zIndexOffset:10,iconAnchor:[-20,-16]};n.markerItemFn&&(V=n.markerItemFn()),l.setZoom(o.value,18),l.panTo(o.value,[k,T]),a.value=l.marker(o.value,[k,T],V)}function b(){a.value&&l.removeMarker(o.value,a.value)}function C(S){a.value&&l.updateMarkerIcon(a.value,S)}return{H:l,map:o,POI:r,marker:a,isShowMap:i,initMap:d,geographicalPositionFn:w,throughCoordinatePosition:m,placeSearchFn:h,setContentFn:C,removeMarker:b}}const Cw={class:"w-full h-full relative"},bw={key:1,id:"selectMapLocation",ref:"selectMapLocation",class:"w-full h-full"},Nw=Fe(e.defineComponent({__name:"select-map-location",props:{markerItemFn:{type:Function,default:null},latlng:{default:null}},emits:["on-geographical-position","on-map-ready"],setup(t,{expose:n,emit:o}){const a=t,s=o,{isShowMap:l,initMap:r,throughCoordinatePosition:i,placeSearchFn:c,setContentFn:p,removeMarker:d,H:h,map:m,POI:_}=kw({emit:s,props:a});return e.onMounted(()=>{r()}),n({throughCoordinatePosition:i,placeSearchFn:c,setContentFn:p,removeMarker:d,H:h,map:m,POI:_}),(w,g)=>(e.openBlock(),e.createElementBlock("div",Cw,[e.unref(l)?(e.openBlock(),e.createElementBlock("div",bw,null,512)):(e.openBlock(),e.createBlock(Pn,{key:0,class:"absolute top-0 left-0 z-[2]"}))]))}}),[["__scopeId","data-v-e69b3725"]]),ww={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Sw=[e.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864L512 652.672L192.128 340.864a30.592 30.592 0 0 0-42.752 0a29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728a30.592 30.592 0 0 0-42.752 0z"},null,-1)];function Tw(t,n){return e.openBlock(),e.createElementBlock("svg",ww,[...Sw])}const Ew={name:"ep-arrow-down",render:Tw},Dw={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},$w=[e.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32l-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872l319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"},null,-1)];function Vw(t,n){return e.openBlock(),e.createElementBlock("svg",Dw,[...$w])}const Iw={name:"ep-arrow-up",render:Vw},Aw={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Ow=[e.createElementVNode("path",{fill:"currentColor",d:"M672 192L288 511.936L672 832z"},null,-1)];function Lw(t,n){return e.openBlock(),e.createElementBlock("svg",Aw,[...Ow])}const Fw={name:"ep-caret-left",render:Lw};function Cr(t){return pe.post({url:"spotCheck/task/detail",data:t,isFormData:!0})}function Bw(t){return pe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function Rw(t){return pe.post({url:"spotCheck/task/end",data:t,isFormData:!0})}function Pw(t){return pe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function Mw(t){return pe.post({url:t.id?"spotCheck/timing/update":"spotCheck/timing/insert",data:t,isJson:!0})}function Uw(t){return pe.post({url:"spotCheck/template/detail",data:t,isFormData:!0})}function Ww(t){return pe.post({url:t.id?"spotCheck/template/update":"spotCheck/template/insert",data:t,isJson:!0})}function zw(t){return pe.post({url:"spotCheck/task/taskExecute",data:t,isJson:!0})}function br(t){return pe.post({url:"spotCheck/task/pttFile/page",data:t,isFormData:!0})}function Hw(t){return pe.post({url:"spotCheck/task/groupBind",data:t,isJson:!0})}function jw({props:t,emit:n}){const o=e.ref(null),a=e.ref(0),s=e.ref(0),l=e.ref(0),r=e.ref(0),i=e.ref(0),c=e.ref(0),p=e.ref([]);function d(b){const{deviceId:C,checkStatus:S}=b||{};if(!C)return;const k=p.value.findIndex(T=>T.deviceId===C);if(k!==-1){switch(p.value[k].checkStatus){case 1:a.value--;break;case 2:s.value--;break}switch(S){case 2:s.value++;break;case 3:l.value++;break;case 4:r.value++;break}e.nextTick(()=>{m(),p.value[k].checkStatus=S})}}function h(){let b=0,C=0,S=0,k=0,T=0,V=0;p.value.forEach($=>{const f=$.checkStatus,u=$.intercomGroupTem,y=$.onlineState;switch(u===1&&V++,y===2&&T++,f){case 1:b++;break;case 2:C++;break;case 3:S++;break;case 4:k++;break}}),e.nextTick(()=>{a.value=b,s.value=C,l.value=S,r.value=k,i.value=T,c.value=V,m()})}function m(){n("on-countStatus",{beReceiveNum:a.value,receivingNum:s.value,finishNum:l.value,notFinishNum:r.value,offLineNum:i.value,intercomGroupTemNum:c.value})}function _(){o.value}function w(){}async function g(b){const{code:C,data:S=[]}=await Bw({taskId:t.form.id,checkStatus:b||null});C===200&&(p.value=S,t.subscribeStatus&&h(),n("change",p.value))}return{uniqueId:o,beReceiveNum:a,receivingNum:s,finishNum:l,notFinishNum:r,offLineNum:i,intercomGroupTemNum:c,taskDeviceList:p,setDeviceStatus:d,initDeviceStatusList:h,onCountStatus:m,spotCheckSubscribe:_,spotCheckUnsubscribe:w,getData:g}}const Yw={class:"h-[58px] bg-hy-dialog-bg-2 border border-box border-hy-border-2 rounded px-2 box-border flex items-center"},Gw={class:"relative"},qw={class:"w-[16px] text-hy-text-main h-[16px] bg-hy-danger flex items-center justify-center absolute -top-[2px] -right-[4px] rounded-full text-xs font-bold"},Kw={class:"scale-75"},Xw={class:"w-[16px] text-hy-text-main h-[16px] bg-hy-danger flex items-center justify-center absolute -top-[2px] -right-[4px] rounded-full text-xs font-bold"},Jw={class:"flex-grow w-0 flex"},Zw={class:"mx-2 flex-grow w-0"},Qw={class:"truncate"},vw={class:"text-hy-text-secondary truncate"},e0={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},t0={class:"r-f tac flex items-center justify-center flex-col"},n0={class:"mt-3"},na=e.defineComponent({__name:"spot-check-task-device",props:{subscribeStatus:{type:Boolean,default:!0},form:{default:{}},paramsSpan:{default:24}},emits:["on-countStatus"],setup(t,{emit:n}){const o=t,a=n,{taskDeviceList:s,spotCheckUnsubscribe:l,uniqueId:r,spotCheckSubscribe:i,getData:c}=jw({props:o,emit:a});return e.onMounted(()=>{r.value=o.form.uniqueId,o.subscribeStatus&&i(),c()}),e.onUnmounted(()=>{l()}),(p,d)=>{const h=e.resolveComponent("el-tooltip"),m=e.resolveComponent("svg-icon"),_=e.resolveComponent("el-col"),w=e.resolveComponent("el-row");return e.openBlock(),e.createBlock(w,{gutter:8,class:"h-full"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),g=>(e.openBlock(),e.createBlock(_,{key:g.id,span:p.paramsSpan,class:"mb-2"},{default:e.withCtx(()=>[e.createElementVNode("div",Yw,[e.createElementVNode("div",Gw,[e.createVNode(Ht,{class:"w-[36px] h-[36px]"}),g.intercomGroupTem===1?(e.openBlock(),e.createBlock(h,{key:0,class:"item",effect:"dark",content:e.unref(N)("theDeviceWasInATemporaryGroupWhenTheSpotCheckWasInitiated"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",qw,[e.createElementVNode("span",Kw,e.toDisplayString(e.unref(N)("lin")),1)])]),_:1},8,["content"])):g.onlineState===2?(e.openBlock(),e.createBlock(h,{key:1,class:"item",effect:"dark",content:e.unref(N)("theDeviceWasOfflineWhenTheSpotCheckWasInitiated"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",Xw,[e.createVNode(m,{name:"icon-off-line","class-name":"!w-[10px] !h-[14px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Jw,[e.createElementVNode("div",Zw,[e.createElementVNode("p",Qw,e.toDisplayString(g.devName),1),e.createElementVNode("p",vw,e.toDisplayString(g.deviceId),1)]),e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",{class:"border-info bg-hy-info/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(N)("toBeReceived-1")),513),[[e.vShow,g.checkStatus===1]]),e.withDirectives(e.createElementVNode("div",{class:"border-warning bg-hy-warning/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(N)("receiving-1")),513),[[e.vShow,g.checkStatus===2]]),e.withDirectives(e.createElementVNode("div",{class:"w-[54px] border-success bg-hy-success/50 border rounded px-2 flex items-center justify-center h-[24px] box-border whitespace-nowrap"},e.toDisplayString(e.unref(N)("completed-0")),513),[[e.vShow,g.checkStatus===3]]),e.withDirectives(e.createElementVNode("div",{class:"border-hy-danger bg-hy-danger/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(N)("uncompleted-0")),513),[[e.vShow,g.checkStatus===4]])])])])]),_:2},1032,["span"]))),128)),e.unref(s).length===0?(e.openBlock(),e.createBlock(_,{key:0,span:24,class:"h-full"},{default:e.withCtx(()=>[e.createElementVNode("div",e0,[e.createElementVNode("div",t0,[e.createVNode(m,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",n0,e.toDisplayString(e.unref(N)("noData")),1)])])]),_:1})):e.createCommentVNode("",!0)]),_:1})}}});function o0({props:t}){const n=e.ref(null),o=e.ref(""),a=e.ref(!1),s=e.ref(null),l=e.ref(0),r=e.ref(0),i=e.ref([]),c=e.ref(null),p=e.ref(null),d=e.ref(null),h=e.ref(!0),m=e.ref(null),_=e.ref(),w=e.ref();function g(){n.value=t.orgGroupInsertTemp.id,i.value=[],h.value=!0,C(),e.nextTick(()=>{V()})}function b(){if(!t.realtimeRequestType)return;const y=async()=>{const x=i.value[i.value.length-1];if(!x){y();return}const E={page:0,taskId:t.taskId,largeThenTimestamp:x.fileTimestamp},D=c.value.scrollTop,L=c.value.offsetHeight-46,R=document.querySelector(`#item-${x.id}`);if(R){const G=R.offsetTop,B=await br(E);if(B.code===200){const{content:P=[],totalElements:M=0}=B.data;l.value=M,e.nextTick(()=>{P.forEach(F=>{i.value.findIndex(Z=>Z.id===F.id)===-1&&i.value.push(F)}),D>=G-L&&T()})}}};m.value&&clearInterval(m.value),m.value=setInterval(()=>{y()},1e4)}async function C(){var L;let y=null;i.value.length&&(y=i[0].value.id);const E={page:0,taskId:t.taskId,lessThenTimestamp:(L=i.value[0])==null?void 0:L.fileTimestamp};s.value=null,a.value=!0,b();const D=await br(E);if(D.code===200){const{content:R=[],totalElements:G=0}=D.data;l.value=G,e.nextTick(()=>{var B;y?R.forEach(P=>{const M=i.value.findIndex(F=>F.id===P.id);P.fileDtmEnd||(P.fileDtmEnd=""),M===-1&&i.value.unshift(P)}):i.value=R.reverse(),y?(S(y),s.value=(B=i.value[this.chatMessageList.length-1])==null?void 0:B.id):T(),e.nextTick(()=>{a.value=!1})})}}function S(y){e.nextTick(()=>{c.value.scrollTo(0,document.querySelector(`#item-${y}`).offsetTop-46)})}function k(){l.value!==0&&C()}function T(){e.nextTick(()=>{c.value.scrollTo(0,c.value.scrollHeight)})}function V(){c.value=_.value,p.value=w.value,p.value.addEventListener("ended",()=>{f(),d.value=null}),c.value.onscroll=()=>{c.value.scrollTop===0&&k()}}function $(){h.value=!1,p.value.play()}function f(){h.value=!0,p.value.pause()}function u(y){}return{$t:N,groupId:n,audioUrl:o,loading:a,newScrollTop:s,totalElements:l,page:r,chatMessageList:i,chatMessageListEl:c,audioEl:p,mediaFileId:d,audioType:h,timer:m,chatMessageListRef:_,audioElRef:w,init:g,getNewData:b,getData:C,scrollToMsg:S,topEvent:k,scrollToBottom:T,initScrollList:V,audioPlay:$,audioPause:f,getAudioContext:u}}const a0=["element-loading-text"],s0={key:0,class:"w-full h-full flex box-border items-center justify-center text-center text-hy-text-secondary"},l0={class:""},r0={class:"mt-5"},i0=["id"],c0={key:0,class:"min-w-[72px] p-1 bg-hy-dialog-bg-4 text-center rounded mb-2"},d0={key:1,class:"h-[50px] flex items-center w-full"},p0={class:"mr-2 flex-grow w-0 flex flex-col items-end"},f0={class:"w-full flex items-center justify-end"},h0=["onClick"],m0=["onClick"],u0={class:"font-bold flex-shrink-0"},g0={class:"flex-shrink-0 ml-1"},_0={key:0},y0={key:2,class:"h-[50px] flex items-center w-full"},x0={class:"ml-2 flex-grow w-0 flex flex-col items-start"},k0={class:"w-full flex items-center"},C0=["onClick"],b0={class:"flex-shrink-0 mr-1"},N0={key:0},w0={class:"font-bold flex-shrink-0"},S0=["onClick"],T0=e.defineComponent({__name:"talkback-reply",props:{realtimeRequestType:{type:Boolean,default:!0},taskId:{default:null},orgGroupInsertTemp:{default:()=>({id:971})}},setup(t){const n=t,o={},{$t:a,loading:s,chatMessageList:l,mediaFileId:r,audioType:i,getAudioContext:c,init:p,timer:d,chatMessageListRef:h,audioElRef:m}=o0({props:n});return e.onMounted(()=>{p()}),e.onUnmounted(()=>{d.value&&clearInterval(d.value)}),(_,w)=>{const g=e.resolveComponent("svg-icon"),b=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(a)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"w-full h-full p-1 box-border relative z-10"},[e.createElementVNode("audio",{id:"audio-el",ref_key:"audioElRef",ref:m,class:"absolute"},null,512),e.createElementVNode("div",{id:"chatMessageList",ref_key:"chatMessageListRef",ref:h,class:"w-full h-full overflow-auto bg-hy-dialog-bg-2 text-hy-text-main text-xs"},[e.unref(l).length===0?(e.openBlock(),e.createElementBlock("div",s0,[e.createElementVNode("div",l0,[e.createElementVNode("div",null,[e.createVNode(g,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"})]),e.createElementVNode("div",r0,[e.createElementVNode("p",null,e.toDisplayString(e.unref(a)("noMemberRespondedAtTheMoment")),1)])])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(C,S)=>(e.openBlock(),e.createElementBlock("div",{id:`item-${C.id}`,key:C.id,class:"p-2 box-border flex flex-col items-center"},[C.fileDtmEnd.split(" ")[0]!==(S>0&&e.unref(l)[S-1].fileDtmEnd.split(" ")[0])?(e.openBlock(),e.createElementBlock("div",c0,e.toDisplayString(C.fileDtmEnd.split(" ")[0]),1)):e.createCommentVNode("",!0),C.devUserId===o.id?(e.openBlock(),e.createElementBlock("div",d0,[e.createElementVNode("div",p0,[e.createElementVNode("div",null,e.toDisplayString(C.devUserName)+" ("+e.toDisplayString(C.serialNum||C.devUserId)+") ",1),e.createElementVNode("div",f0,[e.unref(r)===C.mediaFileId&&e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mr-1 mt-1 rounded-[4px] p-[4px_8px] bg-hy-dialog-bg-3/50 text-hy-text-secondary text-xs scale-90 cursor-pointer",onClick:k=>e.unref(c)(C.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,h0)):e.createCommentVNode("",!0),e.createElementVNode("div",{style:e.normalizeStyle({width:C.audioLength>=60?"70%":`calc(${C.audioLength/60*90}px + 160px)`,background:e.unref(r)===C.mediaFileId?"var(--linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%))":"var(--hy-dialog-bg-3)"}),class:e.normalizeClass([{"!border-hy-border-1 !shadow-hy-border-1":e.unref(r)===C.mediaFileId},"max-w-[70%] h-[28px] flex items-center p-[6px] box-border mt-1 rounded-[4px_0_4px_4px] justify-between relative z-10 cursor-pointer border border-hy-border-2 shadow-[0_0_4px_0] shadow-hy-dialog-bg-1"]),onClick:k=>e.unref(c)(C.mediaFileId)},[e.createElementVNode("div",u0,e.toDisplayString(C.audioLength)+"” ",1),e.createElementVNode("div",g0,[C.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",_0,e.toDisplayString(C.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)])],14,m0)])]),e.createVNode(Ht,{class:"w-[32px] h-[32px]"})])):(e.openBlock(),e.createElementBlock("div",y0,[e.createVNode(Ht,{class:"w-[32px] h-[32px]"}),e.createElementVNode("div",x0,[e.createElementVNode("div",null,e.toDisplayString(C.devUserName)+" ("+e.toDisplayString(C.serialNum||C.devUserId)+") ",1),e.createElementVNode("div",k0,[e.createElementVNode("div",{style:e.normalizeStyle({width:C.audioLength>=60?"70%":`calc(${C.audioLength/60*90}px + 160px)`,background:e.unref(r)===C.mediaFileId?"var(--linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%))":"var(--hy-dialog-bg-3)"}),class:e.normalizeClass([{"!border-hy-border-1 !shadow-hy-border-1":e.unref(r)===C.mediaFileId},"max-w-[70%] h-[28px] flex items-center p-[6px] box-border mt-1 rounded-[0_4px_4px] justify-between relative z-10 cursor-pointer border border-hy-border-2 shadow-[0_0_4px_0] shadow-hy-dialog-bg-1"]),onClick:k=>e.unref(c)(C.mediaFileId)},[e.createElementVNode("div",b0,[C.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",N0,e.toDisplayString(C.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",w0,e.toDisplayString(C.audioLength)+"” ",1)],14,C0),e.unref(r)===C.mediaFileId&&e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"ml-1 mt-1 rounded-[4px] p-[4px_8px] bg-hy-dialog-bg-3/50 text-hy-text-secondary text-xs scale-90 cursor-pointer",onClick:k=>e.unref(c)(C.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,S0)):e.createCommentVNode("",!0)])])]))],8,i0))),128))],512)],8,a0)),[[b,e.unref(s)]])}}});function E0(){const t=e.ref({}),n=e.ref(!1),o=e.ref(null),a=e.ref(0),s=e.ref(!1),l=e.ref([]),r=e.ref(!1),i=e.ref(!1),c=e.ref();async function p(){await Hw({groupId:o.value,taskId:t.value.id})}function d(){var f;l.value.length!==0&&((f=c.value)==null||f.orgGroupInsertTempFn([...l.value],{openRecording:1}).then(u=>{o.value=u,e.nextTick(()=>{p()}),_(!1)}).catch(()=>{o.value=null,n.value=!0,_(!1)}))}function h(f=[]){l.value=f,_(!1),t.value.checkStyle===2&&d()}function m(f={}){const{beReceiveNum:u=0,receivingNum:y=0,finishNum:x=0,notFinishNum:E=0,offLineNum:D=0,intercomGroupTemNum:L=0}=f;t.value.beReceiveNum=u,t.value.receivingNum=y,t.value.finishNum=x,t.value.notFinishNum=E,t.value.offLineNum=D,t.value.intercomGroupTemNum=L}function _(f){s.value=f}function w(){r.value=!r.value}async function g(f){const{code:u,data:y={}}=await Cr({id:f});u===200&&(t.value={...y},t.value.checkNum===0&&h([]),t.value.checkStyle===2&&(t.value.actionType=null),b(!0))}function b(f){i.value=f}function C(){}function S(f){if(i.value){Pe.warning(N("currentlySpotCheckInProgressPleaseProcessLater"));return}o.value=null,n.value=!1,t.value={},_(!0),g(f)}function k(){i.value=!1}function T(){yt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:N("cancelSpotCheck"),tipsContent:`<div><p>${N("confirmToCancelThisSpotCheck")}?</p><p>${this.$t("cancelMidwayYouWillNotBeAbleToRetrieveOrViewAnyInformationOfThisSpotCheck")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:N("returnToSpotCheck"),submitBtnText:N("cancelSpotCheck"),submitBtnType:"danger"},()=>{$(3)})}function V(){let f=N("afterTheCheck,YouCanViewTheSpotCheckInformationInTheSpotCheckModule");(t.value.beReceiveNum!==0||t.value.receivingNum!==0)&&(f=N("thereAreStillDevicesInTheReceivingProcessTheSystemWillMarkTheseDevicesAsUnfinished")),yt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:N("endSpotCheck"),tipsContent:`<div><p>${N("confirmToEndThisSpotCheck")}?</p><p>${f}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:N("returnToSpotCheck"),submitBtnText:N("endSpotCheck")},()=>{$(2)})}async function $(f){var y;const{code:u}=await Rw({taskId:t.value.id,checkStatus:f});u===200&&(f===2&&(Pe.success(N("theSpotCheckHasBeenCompletedYouCanViewDetailedInformationRecordsInTheSpotCheckModule")),t.value.checkStyle===2&&o.value&&((y=c.value)==null||y.onClose())),k())}return{form:t,groupType:n,groupId:o,dragLevel:a,loading:s,taskDeviceList:l,msgContentType:r,dialogVisible:i,multiPersonIntercomSpotCheckRef:c,taskGroupBind:p,orgGroupInsertTemp:d,spotCheckTaskDeviceChange:h,spotCheckTaskDeviceCountStatus:m,setLoading:_,setMsgContentType:w,setDialogVisible:b,show:S,close:k,onClose:T,onSubmit:V,taskEnd:$,setDragLevel:C,$t:N}}const D0=t=>(e.pushScopeId("data-v-e246ad8e"),t=t(),e.popScopeId(),t),$0={class:"el-dialog__header !p-0"},V0={class:"el-dialog__body !p-[8px_0px_8px] sideFoot_content h-[700px] flex flex-col text-main text-xs"},I0={class:"h-[40px] flex items-center px-4 mb-1"},A0={class:"font-bold bg-hy-main/20 border border-hy-border-1/50 rounded px-2 flex items-center justify-center h-[24px] flex-shrink-0"},O0={key:0,class:"ml-3"},L0={class:"text-hy-text-secondary"},F0={key:1,class:"ml-3"},B0={class:"text-hy-text-secondary"},R0={class:"font-bold"},P0=["element-loading-text"],M0={key:0,class:"w-full h-full flex flex-col box-border"},U0={class:"flex-shrink-0 mb-3 px-4"},W0={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},z0={class:"flex w-full"},H0={class:"flex-shrink-0"},j0={class:"text-right font-bold flex-grow w-0"},Y0={class:"flex w-full text-hy-text-secondary"},G0={class:"flex-shrink-0"},q0={class:"text-right flex-grow w-0"},K0={class:"flex w-full text-hy-text-secondary"},X0={class:"flex-shrink-0"},J0={class:"text-right flex-grow w-0"},Z0={class:"text-xs p-2 leading-[22px]"},Q0={class:"flex w-full"},v0={class:"flex-shrink-0 tracking-[4px]"},eS={class:"text-right font-bold flex-grow w-0"},tS={class:"flex w-full"},nS={class:"flex-shrink-0 tracking-[4px]"},oS={class:"text-right font-bold flex-grow w-0"},aS={class:"flex w-full"},sS={class:"flex-shrink-0 tracking-[4px]"},lS={class:"text-right font-bold flex-grow w-0 text-hy-success"},rS={class:"flex w-full"},iS={class:"flex-shrink-0 tracking-[4px]"},cS={class:"text-right font-bold flex-grow w-0 text-hy-danger"},dS={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},pS={class:"flex-1 flex"},fS={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},hS={class:"flex-grow w-0 text-center truncate"},mS={class:"flex-1 flex"},uS={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},gS={class:"flex-grow w-0 text-center text-hy-success truncate"},_S={class:"flex-1 flex"},yS={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},xS={class:"flex-grow w-0 text-center text-hy-danger truncate"},kS={class:"w-full px-2 leading-[22px] box-border rounded bg-hy-dialog-bg-3 h-[28px] flex items-center justify-between"},CS={class:"flex"},bS={key:0,class:"ml-2 bg-hy-dialog-bg-1 h-[22px] px-2 rounded"},NS={class:"w-[400px]"},wS={class:""},SS={key:0,class:"box-border flex-grow h-0 flex px-2"},TS={class:"flex-grow w-0 px-2 overflow-x-hidden overflow-y-auto h-full"},ES={key:0,class:"w-[66%] box-border pr-2"},DS={class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},$S={key:1,class:"flex-grow h-0 px-4"},VS={class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},IS={class:"r-f tac flex text-center"},AS={class:"mt-3"},OS={class:"mt-1"},LS={key:1,class:"w-full h-full"},FS={key:0,class:"w-full h-full flex px-4 box-border"},BS={class:"flex flex-col w-[33%]"},RS={class:"pr-2"},PS={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},MS={class:"flex w-full"},US={class:"flex-shrink-0"},WS={class:"text-right font-bold flex-grow w-0"},zS={class:"flex w-full text-hy-text-secondary"},HS={class:"flex-shrink-0"},jS={class:"text-right flex-grow w-0"},YS={class:"flex w-full text-hy-text-secondary"},GS={class:"flex-shrink-0"},qS={class:"text-right flex-grow w-0"},KS={class:"text-xs p-2 leading-[22px]"},XS={key:0,class:"flex w-full"},JS={class:"flex-shrink-0 tracking-[4px]"},ZS={class:"text-right font-bold flex-grow w-0"},QS={key:1,class:"flex w-full"},vS={class:"flex-shrink-0 tracking-[4px]"},eT={class:"text-right font-bold flex-grow w-0"},tT={class:"flex w-full"},nT={class:"flex-shrink-0 tracking-[4px]"},oT={class:"text-right font-bold flex-grow w-0 text-hy-success"},aT={class:"flex w-full"},sT={class:"flex-shrink-0 tracking-[4px]"},lT={class:"text-right font-bold flex-grow w-0 text-hy-danger"},rT={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},iT={class:"flex-1 flex"},cT={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},dT={class:"flex-grow w-0 text-center truncate"},pT={class:"flex-1 flex"},fT={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},hT={class:"flex-grow w-0 text-center text-hy-success truncate"},mT={class:"flex-1 flex"},uT={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},gT={class:"flex-grow w-0 text-center text-hy-danger truncate"},_T={class:"flex-grow h-0 mt-2 overflow-x-hidden overflow-y-auto pr-2 box-border"},yT={class:"flex-grow w-0 flex flex-col"},xT=D0(()=>e.createElementVNode("div",{class:"flex-grow h-0 overflow-hidden"},null,-1)),kT={key:0,class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-backgroundv2 box-border border border-hy-border-2 rounded"},CT={class:"r-f tac flex text-center"},bT={class:"mt-5"},NT={key:1,class:"flex-grow h-full px-4"},wT={class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},ST={class:"r-f tac flex text-center"},TT={class:"mt-3"},ET={class:"mt-1"},DT={class:"h-[50px] flex items-center justify-between flex-shrink-0 px-4 mt-1"},$T={class:"text-hy-text-secondary text-xs"},VT={key:0},IT={key:1},AT={key:0},OT={key:1},LT={key:2},FT=Fe(e.defineComponent({__name:"view-spot-check",setup(t){const{dialogVisible:n,dragLevel:o,setDragLevel:a,form:s,$t:l,loading:r,setMsgContentType:i,msgContentType:c,spotCheckTaskDeviceChange:p,spotCheckTaskDeviceCountStatus:d,groupType:h,onClose:m,onSubmit:_}=E0();return(w,g)=>{const b=e.resolveComponent("svg-icon"),C=e.resolveComponent("el-popover"),S=e.resolveComponent("el-col"),k=Fw,T=e.resolveComponent("el-icon"),V=e.resolveComponent("el-tooltip"),$=e.resolveComponent("el-row"),f=Yo,u=e.resolveComponent("el-button"),y=e.resolveDirective("loading");return e.unref(n)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"el-dialog sideFootBox",style:e.normalizeStyle([{width:"830px"},{"z-index":e.unref(o)}]),onClick:g[2]||(g[2]=(...x)=>e.unref(a)&&e.unref(a)(...x))},[e.createElementVNode("div",$0,[e.createElementVNode("div",V0,[e.createElementVNode("div",I0,[e.createElementVNode("div",A0,e.toDisplayString(e.unref(l)("initiate"))+e.toDisplayString(e.unref(s).checkStyle===1?e.unref(l)("message"):e.unref(l)("call"))+e.toDisplayString(e.unref(l)("spotCheck")),1),e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("div",O0,[e.createElementVNode("span",L0,e.toDisplayString(e.unref(l)("responseMethod")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(s).actionType===1?e.unref(l)("punchIn"):e.unref(l)("reply")),1)])):e.createCommentVNode("",!0),e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("div",F0,[e.createElementVNode("span",B0,e.toDisplayString(e.unref(l)("responseTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",R0,e.toDisplayString(e.unref(s).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(l)("second")),1)])])):e.createCommentVNode("",!0)]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(l)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0"},[e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("div",M0,[e.createElementVNode("div",U0,[e.createVNode($,{gutter:8},{default:e.withCtx(()=>[e.createVNode(S,{span:8},{default:e.withCtx(()=>[e.createVNode(C,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",dS,[e.createElementVNode("div",pS,[e.createElementVNode("div",fS,[e.createVNode(b,{name:"base-every-day-many-people","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",hS,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("div",mS,[e.createElementVNode("div",uS,[e.createVNode(b,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",gS,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("div",_S,[e.createElementVNode("div",yS,[e.createVNode(b,{name:"base-danger-state","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",xS,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("ul",W0,[e.createElementVNode("li",z0,[e.createElementVNode("span",H0,e.toDisplayString(e.unref(l)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",j0,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("li",Y0,[e.createElementVNode("span",G0,e.toDisplayString(e.unref(l)("offlineStatus")),1),e.createElementVNode("div",q0,e.toDisplayString(e.unref(s).offLineNum||"- -"),1)]),e.createElementVNode("li",K0,[e.createElementVNode("span",X0,e.toDisplayString(e.unref(l)("temporaryGroups")),1),e.createElementVNode("div",J0,e.toDisplayString(e.unref(s).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",Z0,[e.createElementVNode("li",Q0,[e.createElementVNode("span",v0,e.toDisplayString(e.unref(l)("waitingToReceive")),1),e.createElementVNode("div",eS,e.toDisplayString(e.unref(s).beReceiveNum||"- -"),1)]),e.createElementVNode("li",tS,[e.createElementVNode("span",nS,e.toDisplayString(e.unref(l)("receiving")),1),e.createElementVNode("div",oS,e.toDisplayString(e.unref(s).receivingNum||"- -"),1)]),e.createElementVNode("li",aS,[e.createElementVNode("span",sS,e.toDisplayString(e.unref(l)("completed")),1),e.createElementVNode("div",lS,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("li",rS,[e.createElementVNode("span",iS,e.toDisplayString(e.unref(l)("uncompleted")),1),e.createElementVNode("div",cS,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])])]),_:1})]),_:1}),e.createVNode(S,{span:16},{default:e.withCtx(()=>[e.createElementVNode("div",kS,[e.createElementVNode("div",CS,[e.createTextVNode(e.toDisplayString(e.unref(l)("messageContent"))+" ",1),e.unref(s).playMsg===1?(e.openBlock(),e.createElementBlock("div",bS," TTS"+e.toDisplayString(e.unref(l)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"css-text-no-select cursor-pointer hover:opacity-60",onClick:g[1]||(g[1]=(...x)=>e.unref(i)&&e.unref(i)(...x))},[e.createVNode(V,{modelValue:e.unref(c),"onUpdate:modelValue":g[0]||(g[0]=x=>e.isRef(c)?c.value=x:null),class:"item",placement:"bottom-end",trigger:"manual"},{content:e.withCtx(()=>[e.createElementVNode("div",NS,e.toDisplayString(e.unref(s).msgContent),1)]),default:e.withCtx(()=>[e.createElementVNode("span",wS,[e.createTextVNode(e.toDisplayString(e.unref(l)("viewContent"))+" ",1),e.createVNode(T,{class:e.normalizeClass(["text-sm duration-500",{"-rotate-90":e.unref(c)}])},{default:e.withCtx(()=>[e.createVNode(k)]),_:1},8,["class"])])]),_:1},8,["modelValue"])])])]),_:1})]),_:1})]),e.unref(s).checkNum!==0?(e.openBlock(),e.createElementBlock("div",SS,[e.createElementVNode("div",TS,[e.unref(s).id?(e.openBlock(),e.createBlock(na,{key:0,ref:"spotCheckTaskDeviceRef","params-span":e.unref(s).actionType===1?8:24,form:e.unref(s),onChange:e.unref(p),onOnCountStatus:e.unref(d)},null,8,["params-span","form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)]),e.unref(s).actionType===2?(e.openBlock(),e.createElementBlock("div",ES,[e.createElementVNode("div",DS,[e.unref(s).id?(e.openBlock(),e.createBlock(T0,{key:0,ref:"talkbackReplyRef","task-id":e.unref(s).id},null,8,["task-id"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",$S,[e.createElementVNode("div",VS,[e.createElementVNode("div",IS,[e.createVNode(b,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",AS,e.toDisplayString(e.unref(l)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",OS,e.toDisplayString(e.unref(l)("cannotSupportThisSpotCheck")),1)])])]))])):(e.openBlock(),e.createElementBlock("div",LS,[e.unref(s).checkNum!==0?(e.openBlock(),e.createElementBlock("div",FS,[e.createElementVNode("div",BS,[e.createElementVNode("div",RS,[e.createVNode(C,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",rT,[e.createElementVNode("div",iT,[e.createElementVNode("div",cT,[e.createVNode(b,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",dT,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("div",pT,[e.createElementVNode("div",fT,[e.createVNode(b,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",hT,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("div",mT,[e.createElementVNode("div",uT,[e.createVNode(b,{name:"base-danger-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",gT,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("ul",PS,[e.createElementVNode("li",MS,[e.createElementVNode("span",US,e.toDisplayString(e.unref(l)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",WS,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("li",zS,[e.createElementVNode("span",HS,e.toDisplayString(e.unref(l)("offlineStatus")),1),e.createElementVNode("div",jS,e.toDisplayString(e.unref(s).offLineNum||"- -"),1)]),e.createElementVNode("li",YS,[e.createElementVNode("span",GS,e.toDisplayString(e.unref(l)("temporaryGroups")),1),e.createElementVNode("div",qS,e.toDisplayString(e.unref(s).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",KS,[e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("li",XS,[e.createElementVNode("span",JS,e.toDisplayString(e.unref(l)("waitingToReceive")),1),e.createElementVNode("div",ZS,e.toDisplayString(e.unref(s).beReceiveNum||"- -"),1)])):e.createCommentVNode("",!0),e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("li",QS,[e.createElementVNode("span",vS,e.toDisplayString(e.unref(l)("receiving")),1),e.createElementVNode("div",eT,e.toDisplayString(e.unref(s).receivingNum||"- -"),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",tT,[e.createElementVNode("span",nT,e.toDisplayString(e.unref(l)("completed")),1),e.createElementVNode("div",oT,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("li",aT,[e.createElementVNode("span",sT,e.toDisplayString(e.unref(l)("uncompleted")),1),e.createElementVNode("div",lT,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),_:1})]),e.createElementVNode("div",_T,[e.unref(s).id?(e.openBlock(),e.createBlock(na,{key:0,ref:"spotCheckTaskDeviceRef","params-span":24,form:e.unref(s),onChange:e.unref(p),onOnCountStatus:e.unref(d)},null,8,["form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",yT,[xT,e.unref(h)?(e.openBlock(),e.createElementBlock("div",kT,[e.createElementVNode("div",CT,[e.createVNode(b,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"}),e.createElementVNode("div",bT,e.toDisplayString(e.unref(l)("groupMemberStatusAbnormalityPreventsSpotCheck")),1)])])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",NT,[e.createElementVNode("div",wT,[e.createElementVNode("div",ST,[e.createVNode(b,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",TT,e.toDisplayString(e.unref(l)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",ET,e.toDisplayString(e.unref(l)("cannotSupportThisSpotCheck")),1)])])]))]))],8,P0)),[[y,e.unref(r)]]),e.createElementVNode("div",DT,[e.createElementVNode("div",$T,[e.createElementVNode("div",null,[e.createVNode(T,{class:"mr-1 text-sm"},{default:e.withCtx(()=>[e.createVNode(f)]),_:1}),e.unref(s).checkType===2?(e.openBlock(),e.createElementBlock("span",VT,e.toDisplayString(e.unref(l)("randomCheck")),1)):(e.openBlock(),e.createElementBlock("span",IT,[e.unref(s).checkScope===1?(e.openBlock(),e.createElementBlock("span",AT,e.toDisplayString(e.unref(l)("regionalSpotCheck")),1)):e.unref(s).checkScope===2?(e.openBlock(),e.createElementBlock("span",OT,e.toDisplayString(e.unref(l)("departmentSpotCheck")),1)):e.unref(s).checkScope===3?(e.openBlock(),e.createElementBlock("span",LT,e.toDisplayString(e.unref(l)("deviceSpotCheck")),1)):e.createCommentVNode("",!0)]))])]),e.createElementVNode("div",null,[e.createVNode(u,{type:"primary",class:"button_default buttonBox min-w-[100px]",onClick:e.unref(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(u,{class:"button_function buttonBox min-w-[100px]",onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("complete")),1)]),_:1},8,["onClick"])])])])])],4)):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-e246ad8e"]]);function BT({emit:t}){const n=e.ref(!1);e.ref([]);const o=e.ref([]),a=e.ref("");e.ref(400),e.ref(null);const s=e.ref(null);e.ref();const l=e.ref();e.watch(()=>a.value,m=>{a.value=m.replace(/\s/g,"")});function r(){c([]),l.value.setSelectedList(o.value),p(!1)}function i(m){o.value.splice(m,1),l.value.setSelectedList(o.value)}function c(m=[]){o.value=[...m]}function p(m){n.value=typeof m=="boolean"?m:!n.value,t("on-selectedDataList",o.value)}async function d(){const m=await ul({spotCheckSupport:1});if(m.code===200)return m.data}function h(m){o.value=m.selectedDataList,t("on-selected-data-list",o.value)}return{setSelectedDataList:c,getData:d,abortController:s,selectedDataList:o,clearSelectedData:r,deleteSelectList:i,onSelectedData:h,hyOrgTreeRef:l}}const RT={class:"flex flex-col w-full h-full"},PT={class:"flex justify-between items-center h-[40px]"},MT={class:"flex-1"},UT={class:"text-hy-text-secondary ml-3"},WT={class:"flex-1 flex items-center justify-end"},zT={class:"text-xs"},HT={class:"flex items-center clickBox cursor-pointer"},jT={class:"text-hy-text-primary"},YT=["element-loading-text"],GT={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},qT={class:"flex-grow h-0 w-full equipment vbtTable"},KT={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col ml-2"},XT={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},JT={class:"r-f tac flex flex-col items-center justify-center"},ZT={class:"mt-3"},QT={class:"flex-grow w-0 pl-2 box-border truncate"},vT={class:"flex-shrink-0"},eE=e.defineComponent({__name:"select-depart-ment",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=t,s=o,{setSelectedDataList:l,getData:r,abortController:i,selectedDataList:c,clearSelectedData:p,deleteSelectList:d,onSelectedData:h,hyOrgTreeRef:m}=BT({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList)}),e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(_,w)=>{const g=e.resolveComponent("el-button"),b=e.resolveComponent("svg-icon"),C=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",RT,[e.createElementVNode("div",PT,[e.createElementVNode("div",MT,[e.createTextVNode(e.toDisplayString(e.unref(N)("allDepartments")),1),e.createElementVNode("span",UT,e.toDisplayString(e.unref(N)("doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt")),1)]),e.createElementVNode("div",WT,[e.withDirectives(e.createVNode(g,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("span",zT,e.toDisplayString(e.unref(N)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",HT,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(N)("selected"))+" ",1),e.createElementVNode("span",jT,e.toDisplayString(e.unref(c).length),1),e.createTextVNode(" "+e.toDisplayString(e.unref(N)("individual-0")),1)])])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(N)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[e.createElementVNode("div",GT,[e.createElementVNode("div",qT,[e.createVNode(Ll,{ref_key:"hyOrgTreeRef",ref:m,"show-checkbox":!0,"parent-checkbox":!1,"get-data":e.unref(r),"default-checked-list":e.unref(c),onOnSelectedData:e.unref(h)},null,8,["get-data","default-checked-list","onOnSelectedData"])])]),e.createElementVNode("ul",KT,[e.withDirectives(e.createElementVNode("li",XT,[e.createElementVNode("div",JT,[e.createVNode(b,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",ZT,e.toDisplayString(e.unref(N)("youHaveNotSelectedADepartmentYet")),1)])],512),[[e.vShow,e.unref(c).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(S,k)=>(e.openBlock(),e.createElementBlock("li",{key:`${S.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border clickBox border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[e.createElementVNode("div",QT,e.toDisplayString(S.companyName||S.groupName||S.orgName),1),e.createElementVNode("div",vT,[e.createVNode(Ke,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(N)("delete"),onClick:T=>e.unref(d)(k)},null,8,["tips","onClick"])])]))),128))])],8,YT)),[[C,!1]])])}}});function tE({emit:t}){const n=e.ref(!1),o=e.ref([]),a=e.ref([]),s=e.ref(""),l=e.ref(null),r=e.ref(null),i=e.ref();e.watch(()=>s.value,b=>{s.value=b.replace(/\s/g,"")});function c(){p([]),i.value.setSelectedList(o.value),t("on-selected-data-list",o.value)}function p(b=[]){o.value=[...b]}function d(b){if(!b.disabled){if(b.type===3){const C=o.value.findIndex(S=>S.deviceId===b.deviceId);C===-1?o.value.push({...b}):o.value.splice(C,1)}else{clearTimeout(l.value);const C={nonExistent:[],existent:[]},S=b.childrenDeviceList||[];S.length&&(S.forEach(k=>{a.value.findIndex(V=>V.deviceId===k.deviceId)===-1&&(o.value.findIndex($=>$.deviceId===k.deviceId)===-1?C.nonExistent.push({...k}):C.existent.push({...k}))}),C.nonExistent.length?C.nonExistent.forEach(k=>{o.value.push({...k})}):C.existent.forEach(k=>{const T=o.value.findIndex(V=>V.deviceId===k.deviceId);o.value.splice(T,1)}))}t("on-selected-data-list",[...o.value])}}function h(){r.value&&r.value.abort(),r.value=new AbortController}async function m(){n.value=!0;const b=await ul({spotCheckSupport:1});return h(),b.data}function _(b,C){const S=[{type:1,svgName:"tree-icon-law-enforcement"},{type:3,svgName:"tree-icon-dispatching-desk"},{type:4,svgName:"tree-icon-duty-desk"},{type:5,svgName:"tree-icon-phone"},{type:6,svgName:"tree-icon-control-the-ball"},{type:7,svgName:"tree-icon-ipc"},{type:8,svgName:"tree-icon-safety-hat"},{type:9,svgName:"tree-icon-flashlight"},{type:10,svgName:"tree-icon-work-card"},{type:11,svgName:"tree-icon-vehicle"},{type:12,svgName:"tree-icon-uav"},{type:13,svgName:"tree-icon-ipc"},{type:14,svgName:"tree-icon-obd"}],k=S.findIndex(T=>T.type===b);return k!==-1?w(S[k],C):"tree-icon-walkie-talkie"}function w(b,C){return b.type===7||b.type===13?C===1?b.svgName:`${b}-off-line`:b.svgName}function g(b){o.value=b.selectedDataList,t("on-selected-data-list",o.value)}return{setSelectedDataList:p,getData:m,abortController:r,selectedDataList:o,clearSelectedData:c,deviceClick:d,checkDeviceTypeFn:_,onSelectedData:g,hyDeviceTreeRef:i}}const nE={class:"flex flex-col w-full h-full"},oE={class:"flex justify-between items-center h-[40px]"},aE={class:"flex mr-2"},sE={class:"flex items-center"},lE={class:"text-xs"},rE={class:"flex items-center clickBox cursor-pointer"},iE={class:"text-hy-text-primary"},cE=["element-loading-text"],dE={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},pE={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col ml-2"},fE={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},hE={class:"flex flex-col justify-center items-center"},mE={class:"mt-3"},uE={class:"flex-grow w-0 pl-2 flex box-border"},gE={class:"truncate flex-grow w-0"},_E={class:"select-none truncate mx-[4px] text-hy-text-main"},yE={class:"flex-shrink-0"},xE=e.defineComponent({__name:"select-device",props:{onlineStateFlag:{default:1},initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=t,s=o,{setSelectedDataList:l,getData:r,abortController:i,selectedDataList:c,clearSelectedData:p,deviceClick:d,checkDeviceTypeFn:h,onSelectedData:m,hyDeviceTreeRef:_}=tE({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList),r()}),e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(w,g)=>{const b=e.resolveComponent("el-button"),C=e.resolveComponent("svg-icon"),S=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",nE,[e.createElementVNode("div",oE,[e.createElementVNode("div",aE,e.toDisplayString(e.unref(N)("allDevices")),1),e.createElementVNode("div",sE,[e.withDirectives(e.createVNode(b,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("span",lE,e.toDisplayString(e.unref(N)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",rE,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(N)("selected"))+" ",1),e.createElementVNode("span",iE,e.toDisplayString(e.unref(c).length),1),e.createTextVNode(" "+e.toDisplayString(e.unref(N)("individual-0")),1)])])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(N)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[e.createElementVNode("div",dE,[e.createVNode(Ol,{ref_key:"hyDeviceTreeRef",ref:_,"item-size":36,"get-data":e.unref(r),"show-online-only":a.onlineStateFlag===1,"show-checkbox":!0,"hide-org-no-data":!0,"parent-checkbox":!1,onOnSelectedData:e.unref(m)},null,8,["get-data","show-online-only","onOnSelectedData"])]),e.createElementVNode("ul",pE,[e.withDirectives(e.createElementVNode("li",fE,[e.createElementVNode("div",hE,[e.createVNode(C,{name:"base-no-data","class-name":"!w-[50px] !h-[50px]"}),e.createElementVNode("div",mE,e.toDisplayString(e.unref(N)("youHaveNotSelectedADeviceYet")),1)])],512),[[e.vShow,e.unref(c).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),k=>(e.openBlock(),e.createElementBlock("li",{key:`${k.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border cursor-pointer border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[e.createElementVNode("div",uE,[e.createVNode(C,{name:e.unref(h)(k.deviceType||k.type,k.onlineState),"class-name":"w-[16px] h-[16px]",class:e.normalizeClass(k.onlineState===1?"text-hy-text-main":"text-hy-info")},null,8,["name","class"]),e.createElementVNode("div",gE,[e.createElementVNode("span",_E,e.toDisplayString(k.devName),1)])]),e.createElementVNode("div",yE,[e.createVNode(Ke,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(N)("delete"),onClick:T=>e.unref(d)(k)},null,8,["tips","onClick"])])]))),128))])],8,cE)),[[S,!1]])])}}});function kE({emit:t}){const n=e.ref(!1),o=e.ref(!1),a=e.ref(400),s=e.ref({renderSize:30,offsetSize:10}),l=e.ref([]),r=e.ref([]),i=e.ref("");e.ref(400);const c=e.ref(null);e.watch(()=>i.value,S=>{i.value=S.replace(/\s/g,"")});function p(S=[]){S.length!==0&&(S.forEach(k=>{r.value.findIndex(V=>V.id===k.id)===-1&&r.value.push(k)}),e.nextTick(()=>{n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}))}function d(S=[]){r.value=[...S]}function h(){return[...r.value]}function m(){n.value=!n.value,n.value?r.value=[...l.value]:r.value=[],t("on-selected-data-list",r.value)}function _(S){return r.value.findIndex(T=>T.id===S.id)!==-1?"is-checked":""}async function w(S){const k=r.value.findIndex(T=>T.id===S.id);k===-1?g(S):b(k)}function g(S){r.value.push(S),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}function b(S){r.value.splice(S,1),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}async function C(){o.value=!0;const{code:S,data:k=[]}=await YN({query:i.value,spotCheckSupport:1,onlineState:1});S===200&&(l.value=[],k.forEach(T=>{T.deviceList.length!==0?l.value.unshift(T):l.value.push(T)}),o.value=!1)}return{checkAll:n,loading:o,treeHeight:a,scrollYRenderConfig:s,deviceList:l,selectedDataList:r,filterValue:i,timeOut:c,addSelectedDataList:p,setSelectedDataList:d,getSelectedDataList:h,setCheckAll:m,judgeSelectedFn:_,deviceClick:w,addSelectList:g,deleteSelectList:b,getData:C}}const CE={class:"flex flex-col w-full h-full"},bE={class:"flex justify-between items-center h-[30px]"},NE={class:"el-checkbox !mr-2"},wE=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],SE={class:"text-hy-text-primary"},TE=["element-loading-text"],EE={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},DE={class:"flex items-center justify-center p-[8px_8px_4px]"},$E={class:"text-hy-text-main"},VE={class:"flex-grow h-0 w-full px-2 box-border overflow-y-scroll overflow-x-hidden"},IE=["onClick"],AE={class:"flex items-center justify-center"},OE={class:"el-checkbox relative !mr-[6px]"},LE=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],FE={class:"treeDepartment cursor_pointer flex items-center justify-between w-full text-[14px] font-bold text-hy-text-main"},BE={class:"r-f w_100vh flex w-full"},RE={class:"flex-grow w-0 over_one_line truncate"},PE={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col ml-2"},ME={class:"h-full bg-hy-dialog-bg-2 border rounded px-2 box-border border-hy-bg-2 flex justify-center text-hy-text-secondary items-center"},UE={class:"r-f tac flex flex-col justify-center items-center"},WE={class:"mt-3"},zE={class:"flex-grow w-0 pl-2 box-border truncate"},HE={class:"flex-shrink-0"},jE=e.defineComponent({__name:"select-electronic-fence",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=t,s=o,{setSelectedDataList:l,getData:r,setCheckAll:i,checkAll:c,selectedDataList:p,loading:d,filterValue:h,deviceList:m,deviceClick:_,judgeSelectedFn:w,deleteSelectList:g}=kE({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList),r()}),n({setSelectedDataList:l,getData:r}),(b,C)=>{const S=e.resolveComponent("svg-icon"),k=e.resolveComponent("el-button"),T=e.resolveComponent("el-input"),V=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",CE,[e.createElementVNode("div",bE,[e.createElementVNode("span",null,e.toDisplayString(e.unref(N)("electronicFence")),1),e.createElementVNode("div",{class:"flex items-center clickBox",onClick:C[0]||(C[0]=(...$)=>e.unref(i)&&e.unref(i)(...$))},[e.createElementVNode("div",NE,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)},"el-checkbox__input"])},wE,2)]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(N)("selected"))+" ",1),e.createElementVNode("span",SE,e.toDisplayString(e.unref(p).length),1),e.createTextVNode(" "+e.toDisplayString(e.unref(N)("individual-0")),1)])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(N)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[e.createElementVNode("div",EE,[e.createElementVNode("div",DE,[e.createVNode(T,{modelValue:e.unref(h),"onUpdate:modelValue":C[1]||(C[1]=$=>e.isRef(h)?h.value=$:null),placeholder:e.unref(N)("filterByElectronicFenceName"),class:"table-search-main w-[254px] text-[12px]",onClear:C[2]||(C[2]=$=>e.unref(r)()),onKeyup:C[3]||(C[3]=e.withKeys($=>e.unref(r)(),["enter"]))},{append:e.withCtx(()=>[e.createElementVNode("div",$E,[e.createVNode(k,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(r)},{default:e.withCtx(()=>[e.createVNode(S,{name:"sys-button-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",VE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),$=>(e.openBlock(),e.createElementBlock("div",{key:$.id,class:"hover:shadow-[0_0_10px_0_inset] bg-hy-dialog-bg-2 hover:shadow-hy-border-1 hover:border-hy-border-1 border-hy-dialog-bg-2 flex-grow flex h-[32px] items-center border rounded my-2 box-border px-2 cursor-pointer",onClick:f=>e.unref(_)($)},[e.createElementVNode("div",AE,[e.createElementVNode("div",OE,[e.createElementVNode("span",{class:e.normalizeClass([e.unref(w)($),"el-checkbox__input"])},LE,2)])]),e.createElementVNode("div",FE,[e.createElementVNode("div",BE,[e.createElementVNode("span",RE,e.toDisplayString($.railName),1),e.withDirectives(e.createElementVNode("span",{class:"flex-shrink-0 ml-1 text-hy-text-main"}," ("+e.toDisplayString($.deviceList.length)+") ",513),[[e.vShow,$.deviceList.length]])])])],8,IE))),128))])]),e.createElementVNode("ul",PE,[e.withDirectives(e.createElementVNode("li",ME,[e.createElementVNode("div",UE,[e.createVNode(S,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",WE,e.toDisplayString(e.unref(N)("youHavenTSelectedAFenceYet")),1)])],512),[[e.vShow,e.unref(p).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),($,f)=>(e.openBlock(),e.createElementBlock("li",{key:`${$.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border cursor-pointer border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[e.createElementVNode("div",zE,e.toDisplayString($.railName),1),e.createElementVNode("div",HE,[e.createVNode(Ke,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(N)("delete"),onClick:u=>e.unref(g)(f)},null,8,["tips","onClick"])])]))),128))])],8,TE)),[[V,e.unref(d)]])])}}});function YE({emit:t}){const n=e.ref([{label:N("templateName"),prop:"templateName",isSearch:!0},{label:N("operation"),width:80,align:"center",slotName:"operator"}]),o=e.ref({checkStyle:null}),a=e.ref(!1),s=e.ref(null),l=e.ref();function r(d){return new Promise((h,m)=>{const{checkStyle:_=null}=d||{};o.value.checkStyle=_,a.value=!0,s.value=h,e.nextTick(()=>{i()})})}function i(){l.value.getTableData()}function c(d){s.value(d),t("on-selected",d),p()}function p(){a.value=!1}return{$t:N,tableColumns:n,requestParams:o,dialogVisible:a,successfulCallback:s,AppTableRef:l,show:r,selected:c,close:p}}const GE={class:"deleteBox c_fff text-hy-text-main"},qE={class:"pos_r dialog_header relative text-hy-text-main text-[18px] text-center p-[4px] font-bold z-[1px] bg-hy-dialog-bg-1 rounded-[12px_12px_0_0] font-[Helvetica]"},KE={class:"absolute right-[-2px] top-[-2px]"},XE={class:"dialog_body h-[60vh]"},JE=e.defineComponent({__name:"select-template",emits:["on-selected"],setup(t,{expose:n,emit:o}){const a=o,{$t:s,dialogVisible:l,close:r,tableColumns:i,requestParams:c,selected:p,AppTableRef:d,show:h}=YE({emit:a});return n({show:h}),(m,_)=>{const w=e.resolveComponent("svg-icon"),g=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(g,{modelValue:e.unref(l),"onUpdate:modelValue":_[0]||(_[0]=b=>e.isRef(l)?l.value=b:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"640px"},{default:e.withCtx(()=>[e.createElementVNode("div",GE,[e.createElementVNode("div",qE,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("spotCheckTemplate")),1),e.createElementVNode("div",KE,[e.createVNode(w,{width:"26",height:"26",name:"icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(r),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",XE,[e.createVNode(Bo,{ref_key:"AppTableRef",ref:d,"pager-count":5,"column-list":e.unref(i),"search-arr":[],"search-form":e.unref(c),"req-url":"spotCheck/template/page","default-get-data":!1},{tableLeft:e.withCtx(()=>[]),operator:e.withCtx(({row:b})=>[e.createVNode(Ke,{width:12,height:12,name:"icon-choice",class:"!w-[24px] !h-[24px]",tips:e.unref(s)("edit"),onClick:C=>e.unref(p)(b)},null,8,["tips","onClick"])]),_:1},8,["column-list","search-form"])])])]),_:1},8,["modelValue"])}}});function ZE({emit:t}){const n=e.ref({everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1}),o=(K,Q,re)=>{let ae="";for(const X in n.value)n.value[X]&&(ae+=`${X.replace(/(^everyday)|(everyday$)/g,"")},`);ae.length?re():re(new Error(N("pleaseSelectASpecificWeek")))},a=e.ref(null),s=e.ref(!1),l=e.ref(!1),r=e.ref([]),i=e.ref(null),c=e.ref(N("immediatelyInitiateARollCallSpotCheck")),p=e.ref(!1),d=e.ref(null),h=e.ref(!1),m=e.ref({limitNum:10,onlineStateFlag:1,checkType:1,checkScope:1,checkStyle:1,actionType:1,actionTime:5,deviceIdList:[],mapRailIdList:[],orgIdList:[],msgContent:"",playMsg:!1,templateName:"",taskDateType:1,apDateListV2:null,apDtmV2:null}),_=e.ref({limitNum:10,onlineStateFlag:1,actionTime:5,actionType:1,checkScope:1,checkStyle:1,checkType:1,deviceIdList:[],mapRailIdList:[],orgIdList:[],msgContent:"",playMsg:!1,templateName:"",taskDateType:1,apDateListV2:null,apDtmV2:null}),w=e.ref({limitNum:[{required:!0,message:N("pleaseEnterTheRandomNumber"),trigger:"blur"}],templateName:[{required:!0,message:N("pleaseEnterTheTemplateName"),trigger:"blur"}],msgContent:[{required:!0,message:N("pleaseFillInTheMessageToBeSent"),trigger:"blur"}],everydayJson:[{required:!0,validator:o,trigger:"change"}],taskDateTime:[{required:!0,message:N("pleaseSelectTheExecutionTime"),trigger:"change"}],taskDateType:[{required:!0,message:N("pleaseSelectTheExecutionDate"),trigger:"change"}],apDateListV2:[{required:!0,message:N("selectOneOrMoreDates"),trigger:"change"}],apDtmV2:[{required:!0,message:N("pleaseSelectASpecificTimePeriod"),trigger:"change"}]}),g=e.ref(),b=e.ref(),C=e.ref(),S=e.ref(),k=e.ref(),T=e.ref();e.watch(()=>_.value.limitNum,K=>{typeof K=="string"&&(K=K.replace(/[^.\d]/g,""),K=K.replace(".",""),_.value.limitNum=K)}),e.watch(()=>p.value,K=>{L()},{immediate:!0});function V(){g.value.validateField("limitNum")}function $(K){if(K!==_.value.onlineStateFlag)return new Promise((Q,re)=>{if(r.value.length!==0&&_.value.checkScope===3&&K===1)yt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:N("prompt"),tipsContent:`<div><p>${N("switchingTheSpotCheckDeviceWillClearTheSelectedData")}</p><p>${N("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:N("cancel-0"),closeBtnType:"primary",submitBtnText:N("confirm-3"),submitBtnType:"default"},()=>{const ae=R();ae&&(ae.clearSelectedData(),ae.getData()),_.value.onlineStateFlag=K,Q(0)});else{if(_.value.onlineStateFlag=K,_.value.checkScope===3){const ae=R();ae&&ae.getData()}Q(0)}})}function f(K){let Q=_.value.limitNum-0;if(K===1)Q+=1;else{if(Q<=1){Pe.error(N("atLeast1RandomDevice"));return}Q-=1}_.value.limitNum=Q}function u(K,Q){const{checkScope:re=3,contentState:ae=3,onlineStateFlag:X=1,copyType:O=!1,wrapperClosable:z=!1,title:ee=N("immediatelyInitiateARollCallSpotCheck"),selectedDataList:ce=[],successfulCallback:ge=null}=Q||{};if(p.value){if(ae===1)if(re===_.value.checkScope){const Ee=R();Ee&&Ee.addSelectedDataList(ce)}else D(re).then(()=>{B([],!0);const Ee=R();Ee&&Ee.addSelectedDataList(ce)});else return Pe.warning(N("repeat"));return}a.value=ge,l.value=z,i.value=ae,c.value=ee,g.value&&g.value.resetFields(),_.value={...m.value},_.value.limitNum=10,_.value.checkScope=re,_.value.onlineStateFlag=X,ae===1?ce.length&&B(ce,!0):B([],!0),n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},K&&typeof K=="number"?q(K,O):y(!0)}function y(K){p.value=typeof K=="boolean"?K:!p.value}function x(){g.value.clearValidate("everydayJson"),g.value.clearValidate("apDateListV2"),g.value.clearValidate("apDtmV2")}function E(K){var Q;(Q=D(K))==null||Q.then(()=>{B([],!0)})}function D(K){if(_.value.checkScope!==K)return new Promise((Q,re)=>{r.value.length!==0?yt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:N("prompt"),tipsContent:`<div><p>${N("switchingTheSpotCheckRangeWillClearTheSelectedData")}</p><p>${N("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:N("cancel-0"),closeBtnType:"primary",submitBtnText:N("confirm-3"),submitBtnType:"default"},()=>{_.value.checkScope=K,Q(0)}):(_.value.checkScope=K,Q(0))})}function L(){p.value?h.value=!0:(d.value&&(clearTimeout(d.value),d.value=null),d.value=setTimeout(()=>{h.value=p.value,clearTimeout(d.value),d.value=null},500))}function R(){const K=_.value.checkScope;return K===1?b.value:K===2?C.value:K===3?S.value:null}function G(K){const{checkScope:Q=1,mapRailList:re=[],orgList:ae=[],deviceIdList:X=[],deviceList:O=[]}=K||{};let z=[];return Q===1&&re.length?z=re:Q===2&&ae.length?z=ae:Q===3&&O.length&&(z=O.map(ee=>({...ee,type:3}))),z||[]}function B(K,Q=!1){if(r.value=K,Q){const re=R();re&&re.setSelectedDataList(K)}}function P(){const K=_.value.checkScope;let Q="",re=[];return K===1?(Q="mapRailIdList",re=r.value.map(ae=>ae.id)):K===2?(Q="orgIdList",re=r.value.map(ae=>ae.id)):K===3&&(Q="deviceIdList",re=r.value.map(ae=>ae.deviceId)),{dataList:re,name:Q}}function M(){g.value.validate(K=>{if(K){const Q={..._.value};if(Q.playMsg=Q.playMsg?1:0,Q.checkType===1){const re=P();if(Q[`${re.name}`]=re.dataList,re.dataList.length===0)return Pe.error(N("pleaseSelectTheSpotCheckRange"))}else Q.checkScope=null;e.nextTick(()=>{i.value===2?te(Q):i.value===3?ke(Q):Oe(Q)})}})}function F(K){var Q;K&&((Q=k.value)==null||Q.show(K))}function H(){B([],!0),y(!1),a.value=null}function Z(){H()}function q(K,Q){i.value===2?ne(K,Q):i.value===3&&me(K,Q)}async function ne(K,Q=!1){s.value=!0;const{code:re,data:ae}=await Pw({id:K});if(re===200){const X=ae;if(ae.checkScope,X.taskDateType===2)X.weekDate.split(",").forEach(ee=>{ee=Number.parseFloat(ee),ee===1?n.value.everyday1=!0:ee===2?n.value.everyday2=!0:ee===3?n.value.everyday3=!0:ee===4?n.value.everyday4=!0:ee===5?n.value.everyday5=!0:ee===6?n.value.everyday6=!0:ee===7&&(n.value.everyday7=!0)});else if(X.taskDateType===3){const z=[];X.apDateList.forEach(ee=>{z.push(ee.apDtm.split(" 00:00:00")[0])}),X.apDateListV2=z}else X.taskDateType===4&&(X.apDtmV2=[X.apStartDtm,X.apEndDtm]);X.taskDateTime=[X.taskDateStartTime,X.taskDateEndTime],_.value={...X,playMsg:X.playMsg===1},Q&&(_.value.id=null);const O=G(X);B(O),e.nextTick(()=>{s.value=!1,p.value||y(!0)})}}async function te(K){if(K.taskDateStartTime=_.value.taskDateTime[0],K.taskDateEndTime=_.value.taskDateTime[1],_.value.taskDateType===2){let ae="";for(const X in n.value)n.value[X]&&(ae+=`${X.replace(/(^everyday)|(everyday$)/g,"")},`);if(ae.length===0)return Pe.error(N("pleaseSelectASpecificWeek"));K.weekDate=ae.substring(ae.length-1,0)}else if(_.value.taskDateType===3){if(!_.value.apDateListV2||_.value.apDateListV2.length===0)return Pe.error(N("pleaseSelectADate"));K.apDateList=_.value.apDateListV2.map(ae=>({apDtm:`${ae} 00:00:00`}))}else if(_.value.taskDateType===4){if(!_.value.apDtmV2||_.value.apDtmV2.length===0)return Pe.error(N("pleaseSelectATimePeriod"));K.apStartDtm=`${_.value.apDtmV2[0]} 00:00:00`,K.apEndDtm=`${_.value.apDtmV2[1]} 00:00:00`}const{code:Q,data:re={}}=await Mw(K);Q===200&&(Pe.success(N("operationSuccessful")),t("on-submit"),a.value&&a.value(),H())}async function Se(){const{id:K}=await T.value.show({checkStyle:i.value===2?1:null});K&&(g.value&&g.value.resetFields(),_.value={...m.value},n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},r.value=[],await me(K,!0),Pe.success(N("templateApplied")))}async function me(K,Q=!1){s.value=!0;const{code:re,data:ae}=await Uw({id:K});if(re===200){_.value={...ae,playMsg:ae.playMsg===1},Q&&(_.value.id=null);const X=G(_.value);B(X),e.nextTick(()=>{s.value=!1,p.value||y(!0)})}}async function ke(K){const{code:Q}=await Ww(K);Q===200&&(Pe.success(N("operationSuccessful")),t("on-submit"),a.value&&a.value(),H())}async function Oe(K){const{code:Q,data:re={}}=await zw(K);Q===200&&(Pe.success(N("operationSuccessful")),a.value&&a.value(),t("on-submit"),F(re.id),H())}return{dialogVisible:p,animationVisible:h,animationTime:d,setDialogVisible:y,setAnimationVisible:L,setCheckScope:D,setSelectedDataList:B,getSelectedDataList:P,onSubmit:M,viewSpotCheckShow:F,close:H,onClose:Z,detail:q,selectTemplateShow:Se,taskDateTypeFn:x,changeCheckScope:E,everydayJson:n,formRef:g,loading:s,selectElectronicFenceRef:b,selectDepartmentRef:C,selectDeviceRef:S,selectTemplateRef:T,viewSpotCheckRef:k,contentState:i,title:c,wrapperClosable:l,form:_,rules:w,$t:N,changeOnlineStateFlag:$,blurLimitNum:V,setRandomNumber:f,selectedDataList:r,show:u}}const Ae=t=>(e.pushScopeId("data-v-1e4e7e93"),t=t(),e.popScopeId(),t),QE={key:0,class:"fixed top-0 left-0 bg-[rgba(0,0,0,0.5)] w-full h-full z-[100]"},vE={class:"w-[1080px] h-full"},eD={class:"w-full h-full px-[20px] box-border flex flex-col text-hy-text-main text-xs"},tD={class:"flex justify-between items-center h-[60px]"},nD={class:"font-bold text-lg"},oD=["element-loading-text"],aD={key:0,class:"flex mb-2 flex-shrink-0 rounded bg-backgroundv2 px-3 pt-2 h-[90px] box-border items-center"},sD={class:"text-sm h-[30px] flex items-center"},lD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),rD={key:1,class:"flex mb-2 flex-shrink-0 rounded bg-hy-dialog-bg-2 px-3 pt-2 h-[90px] box-border items-center"},iD={class:"flex-1 mr-4"},cD={class:"text-sm h-[30px] flex items-center"},dD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),pD={class:"text-sm h-[30px] flex items-center"},fD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),hD={class:"everydayBox leading-[20px]"},mD={class:"text-xs"},uD={class:"text-xs"},gD={class:"text-xs"},_D={class:"text-xs"},yD={class:"text-xs"},xD={class:"text-xs"},kD={class:"text-xs"},CD={class:"text-sm h-[30px] flex items-center"},bD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),ND={class:"w-full"},wD={class:"text-sm h-[30px] flex items-center"},SD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),TD={class:"flex-1 min-w-[220px]"},ED={class:"text-sm h-[30px] flex items-center"},DD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),$D={class:"flex items-center flex-grow h-0"},VD={class:"flex-grow w-0 h-full flex flex-col"},ID={class:"flex"},AD={class:"text-sm h-[30px] flex items-center"},OD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),LD={class:"text-sm h-[30px] flex items-center"},FD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),BD={class:"text-sm h-[30px] flex items-center"},RD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),PD={class:"test h-[32px] flex border border-hy-border-2 rounded box-border overflow-hidden bg-hy-dialog-bg-2 w-full"},MD={class:"flex-grow w-0 box-border px-1 flex items-center justify-center"},UD=["placeholder"],WD={class:"flex flex-col w-[32px] text-auxiliary border-l border-hy-border-2"},zD={class:"text-sm h-[30px] flex items-center"},HD=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),jD={class:"flex-grow h-0 bg-hy-dialog-bg-4 shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 rounded-[6px] flex items-center justify-center"},YD={class:"tac text-hy-text-secondary text-center"},GD={class:"mt_10 mt-[10px]"},qD={class:""},KD={class:"mt-1"},XD={class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},JD={class:"flex justify-between h-[40px] items-center"},ZD={class:"fs_12 p-[10px_20px] text-[12px]"},QD={class:"r-f mb_10 flex mb-[10px]"},vD=Ae(()=>e.createElementVNode("span",null,"1、",-1)),e$={class:"r-f mb_10 flex mb-[10px]"},t$=Ae(()=>e.createElementVNode("span",null,"2、",-1)),n$={class:"r-f mb_10 flex mb-[10px]"},o$=Ae(()=>e.createElementVNode("span",null,"3、",-1)),a$={class:"fs_12 cursor_pointer !text-hy-text-primary cursor-pointer text-[12px]"},s$={class:"flex-grow h-0 flex"},l$={class:"flex-1"},r$=Ae(()=>e.createElementVNode("div",{class:"mx-[20px] w-[2px] h-[96%] rounded bg-hy-border-2 flex-shrink-0"},null,-1)),i$={class:"w-[33%] h-full flex flex-col"},c$={class:"text-sm h-[30px] flex items-center"},d$=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),p$={class:"text-sm h-[30px] flex items-center"},f$=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),h$={class:"flex-grow h-0 bg-hy-dialog-bg-4 shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 rounded-[6px] flex items-center justify-center"},m$={class:"tac text-hy-text-secondary text-center"},u$={class:"mt-[10px]"},g$={class:"mt-1"},_$={key:0,class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},y$={class:"flex-grow h-0"},x$={class:"text-xs"},k$={class:"mb-2"},C$={class:"text-sm h-[30px] flex items-center"},b$=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),N$={class:"mb-2"},w$={class:"text-sm h-[30px] flex items-center"},S$=Ae(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),T$={class:"flex items-center justify-between h-[80px]"},E$={class:"text-hy-text-secondary flex items-center"},D$=Fe(e.defineComponent({__name:"edit-spot-check",emits:["on-submit"],setup(t,{expose:n,emit:o}){const a=o,{$t:s,dialogVisible:l,wrapperClosable:r,animationVisible:i,title:c,onClose:p,loading:d,form:h,rules:m,contentState:_,taskDateTypeFn:w,everydayJson:g,changeOnlineStateFlag:b,blurLimitNum:C,setRandomNumber:S,changeCheckScope:k,selectedDataList:T,setSelectedDataList:V,selectTemplateShow:$,onSubmit:f,selectElectronicFenceRef:u,selectDepartmentRef:y,selectDeviceRef:x,selectTemplateRef:E,viewSpotCheckRef:D,show:L,formRef:R}=ZE({emit:a});return n({show:L}),(G,B)=>{const P=e.resolveComponent("svg-icon"),M=e.resolveComponent("el-input"),F=e.resolveComponent("el-form-item"),H=e.resolveComponent("el-option"),Z=e.resolveComponent("el-select"),q=e.resolveComponent("el-checkbox"),ne=e.resolveComponent("el-date-picker"),te=e.resolveComponent("el-time-picker"),Se=Iw,me=e.resolveComponent("el-icon"),ke=Ew,Oe=e.resolveComponent("el-popover"),K=e.resolveComponent("el-form"),Q=Yo,re=e.resolveComponent("el-button"),ae=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",null,[e.unref(r)&&e.unref(l)?(e.openBlock(),e.createElementBlock("div",QE)):e.createCommentVNode("",!0),e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([{hide:!e.unref(l),display:e.unref(l)},"duration-500 bg-hy-dialog-bg-1 rounded-[12px_0_0_12px] border-r-0 border-hy-border-1 fixed right-0 top-[54%] h-[87%] -translate-y-1/2 z-[101] overflow-hidden"]),style:{"animation-iteration-count":"1"}},[e.createElementVNode("div",vE,[e.createElementVNode("div",eD,[e.createElementVNode("div",tD,[e.createElementVNode("div",nD,e.toDisplayString(e.unref(c)),1),e.createVNode(P,{name:"base-sign-out","class-name":"clickBox !w-[28px] !h-[28px]",onClick:e.unref(p)},null,8,["onClick"])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(s)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0"},[e.createVNode(K,{ref_key:"formRef",ref:R,model:e.unref(h),rules:e.unref(m),"label-width":"0px",class:"w-full h-full flex flex-col"},{default:e.withCtx(()=>[e.unref(_)===3?(e.openBlock(),e.createElementBlock("div",aD,[e.createVNode(F,{prop:"templateName",class:"w-full"},{default:e.withCtx(()=>[e.createElementVNode("div",sD,[e.createTextVNode(e.toDisplayString(e.unref(s)("templateName")),1),lD]),e.createVNode(M,{modelValue:e.unref(h).templateName,"onUpdate:modelValue":B[0]||(B[0]=X=>e.unref(h).templateName=X),placeholder:e.unref(s)("pleaseEnterTheTemplateName"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})])):e.unref(_)===2?(e.openBlock(),e.createElementBlock("div",rD,[e.createElementVNode("div",iD,[e.createVNode(F,{prop:"taskDateType"},{default:e.withCtx(()=>[e.createElementVNode("div",cD,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionDate")),1),dD]),e.createVNode(Z,{modelValue:e.unref(h).taskDateType,"onUpdate:modelValue":B[1]||(B[1]=X=>e.unref(h).taskDateType=X),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheExecutionDate"),onChange:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(H,{label:e.unref(s)("everyday"),value:1},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("specifyAWeek"),value:2},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("specifyADate"),value:3},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("specifyATimePeriod"),value:4},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])]),_:1})]),e.createElementVNode("div",null,[e.unref(h).taskDateType===2?(e.openBlock(),e.createBlock(F,{key:0,prop:"everydayJson",class:"max-w-[360px]"},{default:e.withCtx(()=>[e.createElementVNode("div",pD,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyAWeek")),1),fD]),e.createElementVNode("div",hD,[e.createVNode(q,{modelValue:e.unref(g).everyday1,"onUpdate:modelValue":B[2]||(B[2]=X=>e.unref(g).everyday1=X)},{default:e.withCtx(()=>[e.createElementVNode("span",mD,e.toDisplayString(e.unref(s)("monday")),1)]),_:1},8,["modelValue"]),e.createVNode(q,{modelValue:e.unref(g).everyday2,"onUpdate:modelValue":B[3]||(B[3]=X=>e.unref(g).everyday2=X)},{default:e.withCtx(()=>[e.createElementVNode("span",uD,e.toDisplayString(e.unref(s)("tuesday")),1)]),_:1},8,["modelValue"]),e.createVNode(q,{modelValue:e.unref(g).everyday3,"onUpdate:modelValue":B[4]||(B[4]=X=>e.unref(g).everyday3=X)},{default:e.withCtx(()=>[e.createElementVNode("span",gD,e.toDisplayString(e.unref(s)("wednesday")),1)]),_:1},8,["modelValue"]),e.createVNode(q,{modelValue:e.unref(g).everyday4,"onUpdate:modelValue":B[5]||(B[5]=X=>e.unref(g).everyday4=X)},{default:e.withCtx(()=>[e.createElementVNode("span",_D,e.toDisplayString(e.unref(s)("thursday")),1)]),_:1},8,["modelValue"]),e.createVNode(q,{modelValue:e.unref(g).everyday5,"onUpdate:modelValue":B[6]||(B[6]=X=>e.unref(g).everyday5=X)},{default:e.withCtx(()=>[e.createElementVNode("span",yD,e.toDisplayString(e.unref(s)("friday")),1)]),_:1},8,["modelValue"]),e.createVNode(q,{modelValue:e.unref(g).everyday6,"onUpdate:modelValue":B[7]||(B[7]=X=>e.unref(g).everyday6=X)},{default:e.withCtx(()=>[e.createElementVNode("span",xD,e.toDisplayString(e.unref(s)("saturday")),1)]),_:1},8,["modelValue"]),e.createVNode(q,{modelValue:e.unref(g).everyday7,"onUpdate:modelValue":B[8]||(B[8]=X=>e.unref(g).everyday7=X)},{default:e.withCtx(()=>[e.createElementVNode("span",kD,e.toDisplayString(e.unref(s)("sunday")),1)]),_:1},8,["modelValue"])])]),_:1})):e.unref(h).taskDateType===3?(e.openBlock(),e.createBlock(F,{key:1,prop:"apDateListV2",class:"mr-4"},{default:e.withCtx(()=>[e.createElementVNode("div",CD,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyADate")),1),bD]),e.createElementVNode("div",ND,[e.createVNode(ne,{modelValue:e.unref(h).apDateListV2,"onUpdate:modelValue":B[9]||(B[9]=X=>e.unref(h).apDateListV2=X),type:"dates",format:`YYYY ${e.unref(s)("yearMMMonthDDDay")}`,class:"!w-full !box-border","value-format":"YYYY-MM-DD",placeholder:e.unref(s)("selectOneOrMoreDates")},null,8,["modelValue","format","placeholder"])])]),_:1})):e.unref(h).taskDateType===4?(e.openBlock(),e.createBlock(F,{key:2,prop:"apDtmV2",class:"mr-4 w-[340px]"},{default:e.withCtx(()=>[e.createElementVNode("div",wD,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyATimePeriod")),1),SD]),e.createElementVNode("div",null,[e.createVNode(ne,{modelValue:e.unref(h).apDtmV2,"onUpdate:modelValue":B[10]||(B[10]=X=>e.unref(h).apDtmV2=X),type:"daterange",class:"!w-full !box-border !text-[13px]",format:`YYYY ${e.unref(s)("yearMMMonthDDDay")}`,"value-format":"YYYY-MM-DD","range-separator":e.unref(s)("to"),"start-placeholder":e.unref(s)("startDate"),"end-placeholder":e.unref(s)("endDate")},null,8,["modelValue","format","range-separator","start-placeholder","end-placeholder"])])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",TD,[e.createVNode(F,{prop:"taskDateTime"},{default:e.withCtx(()=>[e.createElementVNode("div",ED,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionTime-0")),1),DD]),e.createVNode(te,{modelValue:e.unref(h).taskDateTime,"onUpdate:modelValue":B[11]||(B[11]=X=>e.unref(h).taskDateTime=X),"is-range":"",class:"!w-full","range-separator":e.unref(s)("to"),"value-format":"HH:mm:ss","start-placeholder":e.unref(s)("startTime"),"end-placeholder":e.unref(s)("endTime"),placeholder:e.unref(s)("selectATimeRange")},null,8,["modelValue","range-separator","start-placeholder","end-placeholder","placeholder"])]),_:1})])])):e.createCommentVNode("",!0),e.createElementVNode("div",$D,[e.createElementVNode("div",VD,[e.createElementVNode("div",ID,[e.createVNode(F,{class:"flex-1"},{default:e.withCtx(()=>[e.createElementVNode("div",AD,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckType")),1),OD]),e.createVNode(Z,{modelValue:e.unref(h).checkType,"onUpdate:modelValue":B[12]||(B[12]=X=>e.unref(h).checkType=X),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheSpotCheckType")},{default:e.withCtx(()=>[e.createVNode(H,{label:e.unref(s)("rangeCheck"),value:1},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("randomCheck"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),_:1}),e.createVNode(F,{class:"flex-1 ml-1 pl-1"},{default:e.withCtx(()=>[e.createElementVNode("div",LD,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckDevice")),1),FD]),e.createVNode(Z,{"model-value":e.unref(h).onlineStateFlag,class:"w-full",placeholder:e.unref(s)("pleaseSelectTheSpotCheckDevice"),onChange:e.unref(b)},{default:e.withCtx(()=>[e.createVNode(H,{label:e.unref(s)("spotCheckOnlyOnlineDevices"),value:1},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("spotCheckAllDevices"),value:2},null,8,["label"])]),_:1},8,["model-value","placeholder","onChange"])]),_:1}),e.unref(h).checkType===2?(e.openBlock(),e.createBlock(F,{key:0,class:"flex-1 ml-1 pl-1",prop:"limitNum"},{default:e.withCtx(()=>[e.createElementVNode("div",BD,[e.createTextVNode(e.toDisplayString(e.unref(s)("randomNumber")),1),RD]),e.createElementVNode("div",PD,[e.createElementVNode("div",MD,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":B[13]||(B[13]=X=>e.unref(h).limitNum=X),type:"text",style:{outline:"none"},class:"bg-hy-dialog-bg-2 w-full h-full",placeholder:e.unref(s)("pleaseEnterTheRandomNumber"),onBlur:B[14]||(B[14]=(...X)=>e.unref(C)&&e.unref(C)(...X))},null,40,UD),[[e.vModelText,e.unref(h).limitNum]])]),e.createElementVNode("div",WD,[e.createElementVNode("div",{class:"flex-1 flex items-center justify-center clickBox cursor-pointer",onClick:B[15]||(B[15]=X=>e.unref(S)(1))},[e.createVNode(me,null,{default:e.withCtx(()=>[e.createVNode(Se)]),_:1})]),e.createElementVNode("div",{class:"flex-1 border-t border-hy-border-2 flex items-center justify-center cursor-pointer clickBox",onClick:B[16]||(B[16]=X=>e.unref(S)(2))},[e.createVNode(me,null,{default:e.withCtx(()=>[e.createVNode(ke)]),_:1})])])])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",zD,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckRange")),1),HD]),e.withDirectives(e.createElementVNode("div",jD,[e.createElementVNode("div",YD,[e.createVNode(P,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",GD,[e.createElementVNode("p",qD,e.toDisplayString(e.unref(s)("youDoNotNeedToSelectARangeAndDeviceForRandomCheck")),1),e.createElementVNode("p",KD,e.toDisplayString(e.unref(s)("theSystemWillHelpYouSelectRandomly")),1)])])],512),[[e.vShow,e.unref(h).checkType===2]]),e.withDirectives(e.createElementVNode("div",XD,[e.createElementVNode("div",JD,[e.createElementVNode("div",null,[e.createVNode(Z,{"model-value":e.unref(h).checkScope,class:"w-[160px]",placeholder:e.unref(s)("pleaseSelect"),onChange:e.unref(k)},{default:e.withCtx(()=>[e.createVNode(H,{label:e.unref(s)("selectAnArea"),value:1},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("selectADepartment"),value:2},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("selectADevice"),value:3},null,8,["label"])]),_:1},8,["model-value","placeholder","onChange"])]),e.createElementVNode("div",null,[e.createVNode(Oe,{"open-delay":500,placement:"bottom-start","popper-class":"popover_echarts",trigger:"hover",width:"200"},{reference:e.withCtx(()=>[e.createElementVNode("span",a$,[e.createVNode(P,{name:"base-help","class-name":"svgBox ml-1 !w-[12px] !h-[12px]"}),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("help")),1)])]),default:e.withCtx(()=>[e.createElementVNode("ul",ZD,[e.createElementVNode("li",QD,[vD,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea")),1)]),e.createElementVNode("li",e$,[t$,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment")),1)]),e.createElementVNode("li",n$,[o$,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck")),1)])])]),_:1})])]),e.createElementVNode("div",s$,[e.createElementVNode("div",l$,[e.unref(h).checkScope===1?(e.openBlock(),e.createBlock(jE,{key:0,ref_key:"selectElectronicFenceRef",ref:u,"init-selected-data-list":e.unref(T),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(h).checkScope===2?(e.openBlock(),e.createBlock(eE,{key:1,ref_key:"selectDepartmentRef",ref:y,"init-selected-data-list":e.unref(T),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(h).checkScope===3?(e.openBlock(),e.createBlock(xE,{key:2,ref_key:"selectDeviceRef",ref:x,"init-selected-data-list":e.unref(T),"online-state-flag":e.unref(h).onlineStateFlag,onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","online-state-flag","onOnSelectedDataList"])):e.createCommentVNode("",!0)])])],512),[[e.vShow,e.unref(h).checkType===1]])]),r$,e.createElementVNode("div",i$,[e.createVNode(F,null,{default:e.withCtx(()=>[e.createElementVNode("div",c$,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckMethod")),1),d$]),e.createVNode(Z,{modelValue:e.unref(h).checkStyle,"onUpdate:modelValue":B[17]||(B[17]=X=>e.unref(h).checkStyle=X),class:"w-full",disabled:e.unref(_)===2,placeholder:e.unref(s)("pleaseSelectTheSpotCheckMethod")},{default:e.withCtx(()=>[e.createVNode(H,{label:e.unref(s)("message"),value:1},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("call"),value:2},null,8,["label"])]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),e.createElementVNode("div",p$,[e.createTextVNode(e.toDisplayString(e.unref(s)("messageContent")),1),f$]),e.withDirectives(e.createElementVNode("div",h$,[e.createElementVNode("div",m$,[e.createVNode(P,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",u$,[e.createElementVNode("p",null,e.toDisplayString(e.unref(s)("callDoesNotRequireYouToEnterTheMessageContent")),1),e.createElementVNode("p",g$,e.toDisplayString(e.unref(s)("spotCheckWillBeConductedByIntercomAnswering")),1)])])],512),[[e.vShow,e.unref(h).checkStyle===2]]),e.unref(h).checkStyle===1?(e.openBlock(),e.createElementBlock("div",_$,[e.createElementVNode("div",y$,[e.createVNode(F,{prop:"msgContent"},{default:e.withCtx(()=>[e.createVNode(M,{modelValue:e.unref(h).msgContent,"onUpdate:modelValue":B[18]||(B[18]=X=>e.unref(h).msgContent=X),type:"textarea",placeholder:e.unref(s)("pleaseFillInTheMessageToBeSent"),maxlength:"100",resize:"none",autosize:{minRows:e.unref(_)===1?14:10},"show-word-limit":""},null,8,["modelValue","placeholder","autosize"])]),_:1}),e.createVNode(q,{modelValue:e.unref(h).playMsg,"onUpdate:modelValue":B[19]||(B[19]=X=>e.unref(h).playMsg=X)},{default:e.withCtx(()=>[e.createElementVNode("span",x$,e.toDisplayString(e.unref(s)("requiresTTSVoiceBroadcastOnTheDevice")),1)]),_:1},8,["modelValue"])]),e.createElementVNode("div",k$,[e.createElementVNode("div",C$,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerMethod")),1),b$]),e.createVNode(Z,{modelValue:e.unref(h).actionType,"onUpdate:modelValue":B[20]||(B[20]=X=>e.unref(h).actionType=X),class:"w-full",placeholder:e.unref(s)("pleaseSelect")},{default:e.withCtx(()=>[e.createVNode(H,{label:e.unref(s)("punchIn"),value:1},null,8,["label"]),e.createVNode(H,{label:e.unref(s)("reply"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",N$,[e.createElementVNode("div",w$,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerTime")),1),S$]),e.createVNode(Z,{modelValue:e.unref(h).actionTime,"onUpdate:modelValue":B[21]||(B[21]=X=>e.unref(h).actionTime=X),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheAnswerTime")},{default:e.withCtx(()=>[e.createVNode(H,{label:"5s",value:5}),e.createVNode(H,{label:"10s",value:10}),e.createVNode(H,{label:"15s",value:15}),e.createVNode(H,{label:"30s",value:30}),e.createVNode(H,{label:"60s",value:60})]),_:1},8,["modelValue","placeholder"])])])):e.createCommentVNode("",!0)])])]),_:1},8,["model","rules"])],8,oD)),[[ae,e.unref(d)]]),e.createElementVNode("div",T$,[e.createElementVNode("div",E$,[e.createVNode(me,{class:"text-sm mr-1"},{default:e.withCtx(()=>[e.createVNode(Q)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("youCanApplyTheSpotCheckTemplateToQuicklyFillInTheContent")),1)]),e.createElementVNode("div",null,[e.unref(_)!==3?(e.openBlock(),e.createBlock(re,{key:0,class:"button_function buttonBox",onClick:e.unref($)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckTemplate")),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.createVNode(re,{type:"primary",class:"button_default buttonBox",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(re,{class:"button_function buttonBox",onClick:e.unref(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("confirm")),1)]),_:1},8,["onClick"])])])])]),e.createVNode(JE,{ref_key:"selectTemplateRef",ref:E},null,512)],2)):e.createCommentVNode("",!0),e.createVNode(FT,{ref_key:"viewSpotCheckRef",ref:D},null,512)])}}}),[["__scopeId","data-v-1e4e7e93"]]);function $$(t){return pe.post({url:"orgGroup/detail",data:t,isFormData:!0})}function V$(){const t=e.ref({}),n=e.ref(null),o=e.ref({}),a=e.ref(1),s=e.ref([{label:N("spotCheckInformation"),value:1},{label:N("spotCheckStatus"),value:2}]),l=e.ref(0),r=e.ref([{label:N("all"),value:0},{label:N("completed-0"),value:3},{label:N("uncompleted-0"),value:4}]),i=e.ref([]),c=e.ref([]),p=e.ref(!1),d=e.ref(),h=e.computed(()=>{const f=r.value.findIndex(u=>u.value===l.value);return f!==-1?Math.ceil(f*(100/r.value.length)):0}),m=e.computed(()=>{const f=s.value.findIndex(u=>u.value===a.value);return f!==-1?Math.ceil(f*(100/s.value.length)):0});async function _(f){if(!f)return;const{code:u,data:y}=await $$({id:f});u===200&&(o.value=y)}function w(){var f;(f=d.value)==null||f.getData(l.value)}function g(f){l.value=f,e.nextTick(()=>{w()})}function b(f){a.value=f}function C(f){}function S(f={}){const{beReceiveNum:u=0,receivingNum:y=0,finishNum:x=0,notFinishNum:E=0}=f;t.value.beReceiveNum=u,t.value.receivingNum=y,t.value.finishNum=x,t.value.notFinishNum=E}function k(f=[]){}function T(f){t.value={actionType:1,id:12},b(1),g(0),V(f),p.value=!0}async function V(f){const{code:u,data:y={}}=await Cr({id:f,getMapRail:1,getOrg:1});u===200&&(t.value=y,i.value=y.orgNameList||[],c.value=y.railNameList||[],t.value.checkNum,e.nextTick(()=>{y.checkStyle===2&&(n.value=y.groupId,_(n.value),t.value.actionType=null),p.value=!0}))}function $(){p.value=!1}return{form:t,groupId:n,orgGroupInsertTemp:o,navigationStatus:a,navigationList:s,checkStatus:l,checkStatusList:r,orgNameList:i,railNameList:c,dialogVisible:p,spotCheckTaskDeviceRef:d,checkStatusProgress:h,navigationStatusProgress:m,setCheckStatus:g,setNavigationStatus:b,setLoading:C,spotCheckTaskDeviceCountStatus:S,spotCheckTaskDeviceChange:k,show:T,detail:V,close:$}}const I$={class:"deleteBox c_fff text-hy-text-main"},A$={class:"pos_r dialog_header relative text-hy-text-main text-[18px] text-center p-[20px] font-bold z-[1px] bg-hy-dialog-bg-1 rounded-[12px_12px_0_0] font-[Helvetica]"},O$={class:"dialog_body pb-[30px] h-[60vh] flex flex-col text-main text-xs !px-0"},L$={class:"flex items-center justify-center mb-[16px]"},F$={class:"relative flex-shrink-0"},B$={class:"relative text-sm h-[36px] !leading-[36px] text-center border border-hy-bg-2 rounded text-hy-text-secondary flex overflow-hidden"},R$=["onClick"],P$={class:"flex flex-grow h-0 px-4 box-border"},M$={class:"w-full h-full box-border px-2"},U$={class:"w-full h-full bg-hy-dialog-bg-2 rounded px-3 py-1 box-border overflow-x-hidden overflow-y-auto"},W$={class:"mb-2"},z$={class:"text-hy-text-secondary h-[30px] leading-[30px]"},H$={class:"text-hy-text-secondary"},j$={class:"mb-2"},Y$={class:"text-hy-text-secondary h-[30px] leading-[30px]"},G$={class:"mb-2"},q$={class:"text-hy-text-secondary h-[30px] leading-[30px]"},K$={class:"mb-2"},X$={class:"text-hy-text-secondary h-[30px] leading-[30px]"},J$={class:"mb-2"},Z$={class:"text-hy-text-secondary h-[30px] leading-[30px]"},Q$={key:0,class:"mb-2"},v$={class:"text-hy-text-secondary h-[30px] leading-[30px]"},eV={key:0},tV={key:1},nV={key:2},oV={key:0},aV={key:0},sV={key:1},lV={key:0},rV={key:2},iV={key:1,class:"mb-2"},cV={class:"text-hy-text-secondary h-[30px] leading-[30px]"},dV={key:0,class:"py-1 box-border h-full bg-hy-dialog-bg-3 rounded"},pV={class:"w-full h-[34px] px-2 box-border flex justify-between items-center"},fV={key:0,class:"ml-2 border-[2px] box-border border-hy-border-2 flex items-center justify-center h-[26px] px-2 rounded"},hV={class:"h-[40%] box-border px-2 mt-1"},mV={class:"w-full h-full box-border bg-hy-dialog-bg-2 rounded p-2 overflow-y-auto overflow-x-hidden"},uV={class:"flex px-2 mt-1"},gV={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center mr-2"},_V={class:"text-hy-text-secondary"},yV={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center"},xV={class:"text-hy-text-secondary"},kV={class:"font-bold"},CV={key:1,class:"h-full py-1 bg-hy-dialog-bg-3 rounded"},bV={class:"w-full h-full flex items-center justify-center text-hy-text-secondary box-border"},NV={class:"r-f tac flex flex-col items-center justify-center text-center text-sm"},wV={class:"mt-3"},SV={class:"mt-1"},TV={class:"flex flex-grow h-0 px-4 box-border"},EV={class:"text-xs px-2 leading-[22px]"},DV={class:"flex w-full"},$V={class:"flex-shrink-0"},VV={class:"text-right font-bold flex-grow w-0"},IV={class:"flex w-full"},AV={class:"flex-shrink-0 tracking-[4px]"},OV={class:"text-right font-bold flex-grow w-0"},LV={class:"flex w-full"},FV={class:"flex-shrink-0 tracking-[4px]"},BV={class:"text-right font-bold flex-grow w-0"},RV={class:"flex w-full"},PV={class:"flex-shrink-0 tracking-[4px]"},MV={class:"text-right font-bold flex-grow w-0 text-hy-success"},UV={class:"flex w-full"},WV={class:"flex-shrink-0 tracking-[4px]"},zV={class:"text-right font-bold flex-grow w-0 text-hy-danger"},HV={class:"flex-1 flex"},jV={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},YV={class:"flex-grow w-0 text-center truncate"},GV={class:"flex-1 flex"},qV={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},KV={class:"flex-grow w-0 text-center text-hy-success truncate"},XV={class:"flex-1 flex"},JV={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},ZV={class:"flex-grow w-0 text-center text-hy-danger truncate"},QV={class:"relative mt-3 mb-2 min-w-[160px]"},vV={class:"relative h-[26px] !leading-[26px] text-center border border-hy-border-2 rounded text-hy-text-secondary text-xs flex overflow-hidden"},e2=["onClick"],t2={class:"flex-grow h-0 px-2 overflow-x-hidden overflow-y-auto"},n2=e.createElementVNode("div",{class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},null,-1),o2={key:1,class:"w-full shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},a2={class:"r-f tac flex flex-col justify-center items-center"},s2={class:"mt-3 text-sm"},l2=e.defineComponent({__name:"spot-check-details",setup(t,{expose:n}){const{dialogVisible:o,checkStatus:a,checkStatusList:s,checkStatusProgress:l,close:r,form:i,navigationList:c,navigationStatus:p,navigationStatusProgress:d,orgGroupInsertTemp:h,orgNameList:m,railNameList:_,setCheckStatus:w,setNavigationStatus:g,spotCheckTaskDeviceChange:b,spotCheckTaskDeviceCountStatus:C,show:S,spotCheckTaskDeviceRef:k}=V$();return n({show:S}),(T,V)=>{const $=e.resolveComponent("svg-icon"),f=e.resolveComponent("el-col"),u=e.resolveComponent("el-row"),y=e.resolveComponent("el-popover"),x=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(x,{modelValue:e.unref(o),"onUpdate:modelValue":V[1]||(V[1]=E=>e.isRef(o)?o.value=E:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"820px"},{default:e.withCtx(()=>[e.createElementVNode("div",I$,[e.createElementVNode("div",A$,[e.createElementVNode("span",null,e.toDisplayString(e.unref(N)("spotCheckDetails")),1),e.createElementVNode("div",{class:"iconCloseBox clickBox closeBox absolute top-[-2px] right-[-2px] cursor-pointer",onClick:V[0]||(V[0]=(...E)=>e.unref(r)&&e.unref(r)(...E))},[e.createVNode($,{name:"icon-close",width:"26",height:"26","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",O$,[e.createElementVNode("div",L$,[e.createElementVNode("div",F$,[e.createElementVNode("div",{style:e.normalizeStyle([{left:`${e.unref(d)}%`},{background:"linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%)"}]),class:"rounded-[4px_4px_0_0] absolute top-0 left-0 w-[96px] h-full duration-500"},null,4),e.createElementVNode("ul",B$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(E,D)=>(e.openBlock(),e.createElementBlock("li",{key:D,class:e.normalizeClass([{"text-hy-text-main font-bold":E.value===e.unref(p)},"clickBox cursor-pointer px-2 w-[96px] box-border"]),onClick:L=>e.unref(g)(E.value)},e.toDisplayString(E.label),11,R$))),128))])])]),e.withDirectives(e.createElementVNode("div",P$,[e.createVNode(u,{gutter:8,class:"w-full h-full"},{default:e.withCtx(()=>[e.createVNode(f,{span:8,class:"h-full"},{default:e.withCtx(()=>[e.createElementVNode("div",M$,[e.createElementVNode("div",U$,[e.createElementVNode("div",W$,[e.createElementVNode("div",z$,e.toDisplayString(e.unref(N)("spotCheckPersonnel")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(i).name)+" ",1),e.createElementVNode("span",H$," ("+e.toDisplayString(e.unref(i).jobNum)+")",1)])]),e.createElementVNode("div",j$,[e.createElementVNode("div",Y$,e.toDisplayString(e.unref(N)("department")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).orgName),1)]),e.createElementVNode("div",G$,[e.createElementVNode("div",q$,e.toDisplayString(e.unref(N)("spotCheckTime")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkDtm),1)]),e.createElementVNode("div",K$,[e.createElementVNode("div",X$,e.toDisplayString(e.unref(N)("spotCheckType")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkType===1?e.unref(N)("rangeCheck"):e.unref(N)("randomCheck")),1)]),e.createElementVNode("div",J$,[e.createElementVNode("div",Z$,e.toDisplayString(e.unref(N)("spotCheckMethod")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkStyle===1?e.unref(N)("message"):e.unref(N)("call")),1)]),e.unref(i).checkType===1?(e.openBlock(),e.createElementBlock("div",Q$,[e.createElementVNode("div",v$,[e.createTextVNode(e.toDisplayString(e.unref(N)("samplingScope"))+" ",1),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("span",eV,e.toDisplayString(e.unref(N)("regionalSpotCheck")),1)):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("span",tV,e.toDisplayString(e.unref(N)("departmentSpotCheck")),1)):e.unref(i).checkScope===3?(e.openBlock(),e.createElementBlock("span",nV,e.toDisplayString(e.unref(N)("deviceSpotCheck")),1)):e.createCommentVNode("",!0),e.createTextVNode(" ) ")]),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("div",oV,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(E,D)=>(e.openBlock(),e.createElementBlock("span",{key:`${D}_orgNameList`},[e.createTextVNode(e.toDisplayString(E)+" ",1),D!==e.unref(_).length-1?(e.openBlock(),e.createElementBlock("span",aV,"、")):e.createCommentVNode("",!0)]))),128))])):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("div",sV,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(E,D)=>(e.openBlock(),e.createElementBlock("span",{key:`${D}_orgNameList`},[e.createTextVNode(e.toDisplayString(E)+" ",1),D!==e.unref(m).length-1?(e.openBlock(),e.createElementBlock("span",lV,"、")):e.createCommentVNode("",!0)]))),128))])):(e.openBlock(),e.createElementBlock("div",rV,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).checkNum||0)+" "+e.toDisplayString(e.unref(N)("device")),1)]))])):(e.openBlock(),e.createElementBlock("div",iV,[e.createElementVNode("div",cV,[e.createTextVNode(e.toDisplayString(e.unref(N)("samplingScope"))+" ",1),e.createElementVNode("span",null,e.toDisplayString(e.unref(N)("randomCheck")),1),e.createTextVNode(" ) ")]),e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).limitNum||0)+" "+e.toDisplayString(e.unref(N)("device")),1)])]))])])]),_:1}),e.createVNode(f,{span:16,class:"h-full"},{default:e.withCtx(()=>[e.unref(i).checkStyle===1?(e.openBlock(),e.createElementBlock("div",dV,[e.createElementVNode("div",pV,[e.createElementVNode("div",null,e.toDisplayString(e.unref(N)("messageContent")),1),e.unref(i).playMsg===1?(e.openBlock(),e.createElementBlock("div",fV," TTS"+e.toDisplayString(e.unref(N)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",hV,[e.createElementVNode("div",mV,e.toDisplayString(e.unref(i).msgContent),1)]),e.createElementVNode("div",uV,[e.createElementVNode("div",gV,[e.createElementVNode("div",_V,e.toDisplayString(e.unref(N)("answerMethod")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(i).actionType===1?e.unref(N)("punchIn"):e.unref(N)("reply")),1)]),e.createElementVNode("div",yV,[e.createElementVNode("div",xV,e.toDisplayString(e.unref(N)("answerTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",kV,e.toDisplayString(e.unref(i).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(N)("second")),1)])])])])):(e.openBlock(),e.createElementBlock("div",CV,[e.createElementVNode("div",bV,[e.createElementVNode("div",NV,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",wV,e.toDisplayString(e.unref(N)("callSpotCheck")),1),e.createElementVNode("div",SV,e.toDisplayString(e.unref(N)("backupWillBeCheckedByIntercomAnswering")),1)])])]))]),_:1})]),_:1})],512),[[e.vShow,e.unref(p)===1]]),e.withDirectives(e.createElementVNode("div",TV,[e.unref(i).checkNum!==0?(e.openBlock(),e.createBlock(u,{key:0,gutter:8,class:"w-full h-full"},{default:e.withCtx(()=>[e.createVNode(f,{span:e.unref(i).actionType===1?24:8,class:"h-full !flex flex-col"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"flex-col":e.unref(i).actionType!==1,"justify-between items-center":e.unref(i).actionType===1},"flex-shrink-0 flex px-2"])},[e.createVNode(y,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("span",null,[e.createElementVNode("div",{class:e.normalizeClass([{"min-w-[248px]":e.unref(i).actionType===1},"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-bg-2 rounded flex font-bold"])},[e.createElementVNode("div",HV,[e.createElementVNode("div",jV,[e.createVNode($,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",YV,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("div",GV,[e.createElementVNode("div",qV,[e.createVNode($,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),e.createElementVNode("div",KV,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("div",XV,[e.createElementVNode("div",JV,[e.createVNode($,{name:"base-danger-state","class-name":"w-[16px] h-[16px] text-hy-danger"})]),e.createElementVNode("div",ZV,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])],2)])]),default:e.withCtx(()=>[e.createElementVNode("ul",EV,[e.createElementVNode("li",DV,[e.createElementVNode("span",$V,e.toDisplayString(e.unref(N)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",VV,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("li",IV,[e.createElementVNode("span",AV,e.toDisplayString(e.unref(N)("waitingToReceive")),1),e.createElementVNode("div",OV,e.toDisplayString(e.unref(i).beReceiveNum||"- -"),1)]),e.createElementVNode("li",LV,[e.createElementVNode("span",FV,e.toDisplayString(e.unref(N)("receiving")),1),e.createElementVNode("div",BV,e.toDisplayString(e.unref(i).receivingNum||"- -"),1)]),e.createElementVNode("li",RV,[e.createElementVNode("span",PV,e.toDisplayString(e.unref(N)("completed")),1),e.createElementVNode("div",MV,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("li",UV,[e.createElementVNode("span",WV,e.toDisplayString(e.unref(N)("uncompleted")),1),e.createElementVNode("div",zV,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])])]),_:1}),e.createElementVNode("div",QV,[e.createElementVNode("div",{style:e.normalizeStyle([{left:`${e.unref(l)}%`},{background:"linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%)"}]),class:e.normalizeClass([{"w-[75px]":e.unref(i).actionType!==1,"w-[54px]":e.unref(i).actionType===1},"rounded-[4px_4px_0_0] absolute top-0 left-0 h-full duration-500"])},null,6),e.createElementVNode("ul",vV,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(E,D)=>(e.openBlock(),e.createElementBlock("li",{key:`${D}_checkStatusList`,class:e.normalizeClass([{"text-hy-text-main":E.value===e.unref(a)},"flex-1 cursor-pointer hover:opacity-60"]),onClick:L=>e.unref(w)(E.value)},e.toDisplayString(E.label),11,e2))),128))])])],2),e.createElementVNode("div",t2,[e.unref(i).id?(e.openBlock(),e.createBlock(na,{key:0,ref_key:"spotCheckTaskDeviceRef",ref:k,"params-span":e.unref(i).actionType===1?8:24,form:e.unref(i),"subscribe-status":!1,onChange:e.unref(b),onOnCountStatus:e.unref(C)},null,8,["params-span","form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)])]),_:1},8,["span"]),e.unref(i).actionType!==1?(e.openBlock(),e.createBlock(f,{key:0,span:16,class:"h-full"},{default:e.withCtx(()=>[n2]),_:1})):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createElementBlock("div",o2,[e.createElementVNode("div",a2,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",s2,e.toDisplayString(e.unref(N)("noDeviceSupportsThisSpotCheck")),1)])]))],512),[[e.vShow,e.unref(p)===2]])])])]),_:1},8,["modelValue"])}}});var Nr=(t=>(t[t.LAW_ENFORCEMENT_RECORDER=1]="LAW_ENFORCEMENT_RECORDER",t[t.WALKIE_TALKIE=2]="WALKIE_TALKIE",t[t.FIRE_DISPATCH_DESK=3]="FIRE_DISPATCH_DESK",t[t.FIRE_DUTY_DESK=4]="FIRE_DUTY_DESK",t[t.PHONE_APP=5]="PHONE_APP",t[t.CONTROL_THE_BALL=6]="CONTROL_THE_BALL",t[t.IPC_CAMERA=7]="IPC_CAMERA",t[t.HELMET=8]="HELMET",t[t.FLASHLIGHT=9]="FLASHLIGHT",t[t.WORK_LICENSE=10]="WORK_LICENSE",t[t.DRONE=11]="DRONE",t[t.CAR_PTZ=12]="CAR_PTZ",t[t.CASCADE_DEVICE_DOWN=13]="CASCADE_DEVICE_DOWN",t[t.JT808=14]="JT808",t[t.NATIONAL_STANDARD_RECORDER=15]="NATIONAL_STANDARD_RECORDER",t[t.RTOS_DEVICE=16]="RTOS_DEVICE",t[t.WATCH=17]="WATCH",t))(Nr||{});se.DeviceEnum=Nr,se.HyAcquisitionStationTree=Ek,se.HyAddDepartmentType=Yk,se.HyAudioPlayer=Cl,se.HyBoxBorder=ft,se.HyDataTimeShortcuts=fd,se.HyDeviceTree=Ol,se.HyDeviceTreeCpns=Ho,se.HyEditSpotCheck=D$,se.HyElectronicFence=xw,se.HyFileDetails=Yy,se.HyFileUpload=j1,se.HyImageViewer=hl,se.HyMapNoPermissions=Pn,se.HyMapSearchPlace=kr,se.HyMenuComponents=Tf,se.HyOrgCascader=Bf,se.HyOrgGroupTree=nk,se.HyOrgTree=Ll,se.HyRoundButton=Ke,se.HySelect=nf,se.HySelectMapLocation=Nw,se.HySpotCheckDetail=l2,se.HySvgIcon=gl,se.HyTable=Bo,se.HyTableHead=Gf,se.HyTipsModal=yt,se.HyUserHead=Ht,se.HyUserTree=zx,se.HyVideoPlayer=bl,se.HyVueCropper=yl,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "command-center-v3-common",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0.
|
4
|
+
"version": "0.0.68",
|
5
5
|
"main": "dist/command-center-v3-common.js",
|
6
6
|
"module": "dist/command-center-v3-common.umd.cjs",
|
7
7
|
"types": "dist/index.d.ts",
|
@@ -31,7 +31,7 @@
|
|
31
31
|
"command-center-v3-utils": "^0.0.18",
|
32
32
|
"debug": "^4.3.4",
|
33
33
|
"element-plus": "^2.5.3",
|
34
|
-
"hy-map-hub": "^0.0.
|
34
|
+
"hy-map-hub": "^0.0.41",
|
35
35
|
"pinia": "^2.1.7",
|
36
36
|
"vue": "^3.3.11",
|
37
37
|
"vue-cropper": "^1.1.1",
|