command-center-v3-common 0.0.82 → 0.0.83

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,7 +34,7 @@ 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 yb=Object.prototype.hasOwnProperty,er=(t,n)=>yb.call(t,n),qn=t=>typeof t=="function",un=t=>typeof t=="string",tr=t=>t!==null&&typeof t=="object";var xb=typeof global=="object"&&global&&global.Object===Object&&global,kb=typeof self=="object"&&self&&self.Object===Object&&self,ta=xb||kb||Function("return this")(),Xt=ta.Symbol,nr=Object.prototype,Nb=nr.hasOwnProperty,bb=nr.toString,_n=Xt?Xt.toStringTag:void 0;function Cb(t){var n=Nb.call(t,_n),o=t[_n];try{t[_n]=void 0;var a=!0}catch{}var s=bb.call(t);return a&&(n?t[_n]=o:delete t[_n]),s}var wb=Object.prototype,Eb=wb.toString;function Sb(t){return Eb.call(t)}var Tb="[object Null]",Db="[object Undefined]",or=Xt?Xt.toStringTag:void 0;function ar(t){return t==null?t===void 0?Db:Tb:or&&or in Object(t)?Cb(t):Sb(t)}function Vb(t){return t!=null&&typeof t=="object"}var $b="[object Symbol]";function na(t){return typeof t=="symbol"||Vb(t)&&ar(t)==$b}function Bb(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 oa=Array.isArray,Ib=1/0,sr=Xt?Xt.prototype:void 0,lr=sr?sr.toString:void 0;function rr(t){if(typeof t=="string")return t;if(oa(t))return Bb(t,rr)+"";if(na(t))return lr?lr.call(t):"";var n=t+"";return n=="0"&&1/t==-Ib?"-0":n}function ir(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var Ab="[object AsyncFunction]",Lb="[object Function]",Fb="[object GeneratorFunction]",Ob="[object Proxy]";function Rb(t){if(!ir(t))return!1;var n=ar(t);return n==Lb||n==Fb||n==Ab||n==Ob}var aa=ta["__core-js_shared__"],cr=function(){var t=/[^.]+$/.exec(aa&&aa.keys&&aa.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Pb(t){return!!cr&&cr in t}var Mb=Function.prototype,Ub=Mb.toString;function zb(t){if(t!=null){try{return Ub.call(t)}catch{}try{return t+""}catch{}}return""}var Wb=/[\\^$.*+?()[\]{}|]/g,Hb=/^\[object .+?Constructor\]$/,jb=Function.prototype,Yb=Object.prototype,Gb=jb.toString,qb=Yb.hasOwnProperty,Kb=RegExp("^"+Gb.call(qb).replace(Wb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Xb(t){if(!ir(t)||Pb(t))return!1;var n=Rb(t)?Kb:Hb;return n.test(zb(t))}function Jb(t,n){return t==null?void 0:t[n]}function dr(t,n){var o=Jb(t,n);return Xb(o)?o:void 0}function Zb(t,n){return t===n||t!==t&&n!==n}var Qb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vb=/^\w*$/;function eC(t,n){if(oa(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||na(t)?!0:vb.test(t)||!Qb.test(t)||n!=null&&t in Object(n)}var gn=dr(Object,"create");function tC(){this.__data__=gn?gn(null):{},this.size=0}function nC(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}var oC="__lodash_hash_undefined__",aC=Object.prototype,sC=aC.hasOwnProperty;function lC(t){var n=this.__data__;if(gn){var o=n[t];return o===oC?void 0:o}return sC.call(n,t)?n[t]:void 0}var rC=Object.prototype,iC=rC.hasOwnProperty;function cC(t){var n=this.__data__;return gn?n[t]!==void 0:iC.call(n,t)}var dC="__lodash_hash_undefined__";function pC(t,n){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=gn&&n===void 0?dC:n,this}function Bt(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])}}Bt.prototype.clear=tC,Bt.prototype.delete=nC,Bt.prototype.get=lC,Bt.prototype.has=cC,Bt.prototype.set=pC;function fC(){this.__data__=[],this.size=0}function Kn(t,n){for(var o=t.length;o--;)if(Zb(t[o][0],n))return o;return-1}var mC=Array.prototype,hC=mC.splice;function uC(t){var n=this.__data__,o=Kn(n,t);if(o<0)return!1;var a=n.length-1;return o==a?n.pop():hC.call(n,o,1),--this.size,!0}function _C(t){var n=this.__data__,o=Kn(n,t);return o<0?void 0:n[o][1]}function gC(t){return Kn(this.__data__,t)>-1}function yC(t,n){var o=this.__data__,a=Kn(o,t);return a<0?(++this.size,o.push([t,n])):o[a][1]=n,this}function Jt(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])}}Jt.prototype.clear=fC,Jt.prototype.delete=uC,Jt.prototype.get=_C,Jt.prototype.has=gC,Jt.prototype.set=yC;var xC=dr(ta,"Map");function kC(){this.size=0,this.__data__={hash:new Bt,map:new(xC||Jt),string:new Bt}}function NC(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function Xn(t,n){var o=t.__data__;return NC(n)?o[typeof n=="string"?"string":"hash"]:o.map}function bC(t){var n=Xn(this,t).delete(t);return this.size-=n?1:0,n}function CC(t){return Xn(this,t).get(t)}function wC(t){return Xn(this,t).has(t)}function EC(t,n){var o=Xn(this,t),a=o.size;return o.set(t,n),this.size+=o.size==a?0:1,this}function It(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])}}It.prototype.clear=kC,It.prototype.delete=bC,It.prototype.get=CC,It.prototype.has=wC,It.prototype.set=EC;var SC="Expected a function";function sa(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new TypeError(SC);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(sa.Cache||It),o}sa.Cache=It;var TC=500;function DC(t){var n=sa(t,function(a){return o.size===TC&&o.clear(),a}),o=n.cache;return n}var VC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$C=/\\(\\)?/g,BC=DC(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(VC,function(o,a,s,l){n.push(s?l.replace($C,"$1"):a||o)}),n});function IC(t){return t==null?"":rr(t)}function AC(t,n){return oa(t)?t:eC(t,n)?[t]:BC(IC(t))}var LC=1/0;function FC(t){if(typeof t=="string"||na(t))return t;var n=t+"";return n=="0"&&1/t==-LC?"-0":n}function OC(t,n){n=AC(n,t);for(var o=0,a=n.length;t!=null&&o<a;)t=t[FC(n[o++])];return o&&o==a?t:void 0}function RC(t,n,o){var a=t==null?void 0:OC(t,n);return a===void 0?o:a}function PC(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 MC=t=>t===void 0,pr=t=>typeof t=="boolean",At=t=>typeof t=="number",UC=t=>typeof Element>"u"?!1:t instanceof Element,zC=t=>un(t)?!Number.isNaN(Number(t)):!1,fr=t=>Object.keys(t);class WC extends Error{constructor(n){super(n),this.name="ElementPlusError"}}function Jn(t,n){if(process.env.NODE_ENV!=="production"){const o=un(t)?new WC(`[${t}] ${n}`):t;console.warn(o)}}const HC="utils/dom/style";function la(t,n="px"){if(!t)return"";if(At(t)||zC(t))return`${t}${n}`;if(un(t))return t;Jn(HC,"binding value must be a string or number")}const mr="__epPropKey",st=t=>t,jC=t=>tr(t)&&!!t[mr],hr=(t,n)=>{if(!tr(t)||jC(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,f=[];if(o&&(f=Array.from(o),er(t,"default")&&f.push(s),d||(d=f.includes(p))),r&&(d||(d=r(p))),!d&&f.length>0){const m=[...new Set(f)].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,[mr]:!0};return er(t,"default")&&(c.default=s),c},yn=t=>PC(Object.entries(t).map(([n,o])=>[n,hr(o,n)])),YC=st([String,Object,Function]),GC={Close:Ad,SuccessFilled:Os,InfoFilled:Fs,WarningFilled:Rs,CircleCloseFilled:Ls},ur={success:Os,warning:Rs,error:Ls,info:Fs},_r=(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},qC=(t,n)=>(t.install=o=>{t._context=o._context,o.config.globalProperties[n]=t},t),KC={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"},XC=["","default","small","large"],JC=t=>t,ZC=t=>(n,o)=>QC(n,o,e.unref(t)),QC=(t,n,o)=>RC(o,t,t).replace(/\{(\w+)\}/g,(a,s)=>{var l;return`${(l=n==null?void 0:n[s])!=null?l:`{${s}}`}`}),vC=t=>{const n=e.computed(()=>e.unref(t).name),o=e.isRef(t)?t:e.ref(t);return{lang:n,locale:o,t:ZC(t)}},gr=Symbol("localeContextKey"),ew=t=>{const n=t||e.inject(gr,e.ref());return vC(e.computed(()=>n.value||Kr))},Zn="el",tw="is-",Lt=(t,n,o,a,s)=>{let l=`${t}-${n}`;return o&&(l+=`-${o}`),a&&(l+=`__${a}`),s&&(l+=`--${s}`),l},yr=Symbol("namespaceContextKey"),nw=t=>{const n=t||(e.getCurrentInstance()?e.inject(yr,e.ref(Zn)):e.ref(Zn));return e.computed(()=>e.unref(n)||Zn)},ra=(t,n)=>{const o=nw(n);return{namespace:o,b:(u="")=>Lt(o.value,t,u,"",""),e:u=>u?Lt(o.value,t,"",u,""):"",m:u=>u?Lt(o.value,t,"","",u):"",be:(u,k)=>u&&k?Lt(o.value,t,u,k,""):"",em:(u,k)=>u&&k?Lt(o.value,t,"",u,k):"",bm:(u,k)=>u&&k?Lt(o.value,t,u,"",k):"",bem:(u,k,b)=>u&&k&&b?Lt(o.value,t,u,k,b):"",is:(u,...k)=>{const b=k.length>=1?k[0]:!0;return u&&b?`${tw}${u}`:""},cssVar:u=>{const k={};for(const b in u)u[b]&&(k[`--${o.value}-${b}`]=u[b]);return k},cssVarName:u=>`--${o.value}-${u}`,cssVarBlock:u=>{const k={};for(const b in u)u[b]&&(k[`--${o.value}-${t}-${b}`]=u[b]);return k},cssVarBlockName:u=>`--${o.value}-${t}-${u}`}},xr={current:0},kr=e.ref(0),Nr=2e3,br=Symbol("elZIndexContextKey"),Cr=Symbol("zIndexContextKey"),ow=t=>{const n=e.getCurrentInstance()?e.inject(br,xr):xr,o=t||(e.getCurrentInstance()?e.inject(Cr,void 0):void 0),a=e.computed(()=>{const r=e.unref(o);return At(r)?r:Nr}),s=e.computed(()=>a.value+kr.value),l=()=>(n.current++,kr.value=n.current,s.value);return!Kt&&!e.inject(br)&&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}},aw=hr({type:String,values:XC,required:!1}),sw=Symbol("size"),lw=Symbol("emptyValuesContextKey"),rw=yn({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>qn(t)?!t():!t}}),wr=Symbol(),Qn=e.ref();function Er(t,n=void 0){const o=e.getCurrentInstance()?e.inject(wr,Qn):Qn;return t?e.computed(()=>{var a,s;return(s=(a=o.value)==null?void 0:a[t])!=null?s:n}):o}function iw(t,n){const o=Er(),a=ra(t,e.computed(()=>{var i;return((i=o.value)==null?void 0:i.namespace)||Zn})),s=ew(e.computed(()=>{var i;return(i=o.value)==null?void 0:i.locale})),l=ow(e.computed(()=>{var i;return((i=o.value)==null?void 0:i.zIndex)||Nr})),r=e.computed(()=>{var i;return e.unref(n)||((i=o.value)==null?void 0:i.size)||""});return Sr(e.computed(()=>e.unref(o)||{})),{ns:a,locale:s,zIndex:l,size:r}}const Sr=(t,n,o=!1)=>{var a;const s=!!e.getCurrentInstance(),l=s?Er():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?cw(l.value,c):c});return r(wr,i),r(gr,e.computed(()=>i.value.locale)),r(yr,e.computed(()=>i.value.namespace)),r(Cr,e.computed(()=>i.value.zIndex)),r(sw,{size:e.computed(()=>i.value.size||"")}),r(lw,e.computed(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(o||!Qn.value)&&(Qn.value=i.value),i},cw=(t,n)=>{const o=[...new Set([...fr(t),...fr(n)])],a={};for(const s of o)a[s]=n[s]!==void 0?n[s]:t[s];return a},dw=yn({a11y:{type:Boolean,default:!0},locale:{type:st(Object)},size:aw,button:{type:st(Object)},experimentalFeatures:{type:st(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:st(Object)},zIndex:Number,namespace:{type:String,default:"el"},...rw}),ve={};e.defineComponent({name:"ElConfigProvider",props:dw,setup(t,{slots:n}){e.watch(()=>t.message,a=>{Object.assign(ve,a??{})},{immediate:!0,deep:!0});const o=Sr(t);return()=>e.renderSlot(n,"default",{config:o==null?void 0:o.value})}});var ia=(t,n)=>{const o=t.__vccOpts||t;for(const[a,s]of n)o[a]=s;return o};const pw=yn({size:{type:st([Number,String])},color:{type:String}}),fw=e.defineComponent({name:"ElIcon",inheritAttrs:!1}),mw=e.defineComponent({...fw,props:pw,setup(t){const n=t,o=ra("icon"),a=e.computed(()=>{const{size:s,color:l}=n;return!s&&!l?{}:{fontSize:MC(s)?void 0:la(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 hw=ia(mw,[["__file","icon.vue"]]);const Tr=_r(hw),uw=yn({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:st([String,Object,Array])},offset:{type:st(Array),default:[0,0]},badgeClass:{type:String}}),_w=e.defineComponent({name:"ElBadge"}),gw=e.defineComponent({..._w,props:uw,setup(t,{expose:n}){const o=t,a=ra("badge"),s=e.computed(()=>o.isDot?"":At(o.value)&&At(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:la(-((i=(r=o.offset)==null?void 0:r[0])!=null?i:0)),marginTop:la((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 yw=ia(gw,[["__file","badge.vue"]]);const xw=_r(yw),Dr=["success","info","warning","error"],Ue=JC({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:Kt?document.body:void 0}),kw=yn({customClass:{type:String,default:Ue.customClass},center:{type:Boolean,default:Ue.center},dangerouslyUseHTMLString:{type:Boolean,default:Ue.dangerouslyUseHTMLString},duration:{type:Number,default:Ue.duration},icon:{type:YC,default:Ue.icon},id:{type:String,default:Ue.id},message:{type:st([String,Object,Function]),default:Ue.message},onClose:{type:st(Function),default:Ue.onClose},showClose:{type:Boolean,default:Ue.showClose},type:{type:String,values:Dr,default:Ue.type},plain:{type:Boolean,default:Ue.plain},offset:{type:Number,default:Ue.offset},zIndex:{type:Number,default:Ue.zIndex},grouping:{type:Boolean,default:Ue.grouping},repeatNum:{type:Number,default:Ue.repeatNum}}),Nw={destroy:()=>!0},et=e.shallowReactive([]),bw=t=>{const n=et.findIndex(s=>s.id===t),o=et[n];let a;return n>0&&(a=et[n-1]),{current:o,prev:a}},Cw=t=>{const{prev:n}=bw(t);return n?n.vm.exposed.bottom.value:0},ww=(t,n)=>et.findIndex(a=>a.id===t)>0?16:n,Ew=e.defineComponent({name:"ElMessage"}),Sw=e.defineComponent({...Ew,props:kw,emits:Nw,setup(t,{expose:n}){const o=t,{Close:a}=GC,{ns:s,zIndex:l}=iw("message"),{currentZIndex:r,nextZIndex:i}=l,c=e.ref(),p=e.ref(!1),d=e.ref(0);let f;const m=e.computed(()=>o.type?o.type==="error"?"danger":o.type:"info"),_=e.computed(()=>{const h=o.type;return{[s.bm("icon",h)]:h&&ur[h]}}),y=e.computed(()=>o.icon||ur[o.type]||""),u=e.computed(()=>Cw(o.id)),k=e.computed(()=>ww(o.id,o.offset)+u.value),b=e.computed(()=>d.value+k.value),E=e.computed(()=>({top:`${k.value}px`,zIndex:r.value}));function N(){o.duration!==0&&({stop:f}=rb(()=>{V()},o.duration))}function S(){f==null||f()}function V(){p.value=!1}function $({code:h}){h===KC.esc&&V()}return e.onMounted(()=>{N(),i(),p.value=!0}),e.watch(()=>o.repeatNum,()=>{S(),N()}),ib(document,"keydown",$),mb(c,()=>{d.value=c.value.getBoundingClientRect().height}),n({visible:p,bottom:b,close:V}),(h,g)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(s).b("fade"),onBeforeLeave:h.onClose,onAfterLeave:C=>h.$emit("destroy"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:h.id,ref_key:"messageRef",ref:c,class:e.normalizeClass([e.unref(s).b(),{[e.unref(s).m(h.type)]:h.type},e.unref(s).is("center",h.center),e.unref(s).is("closable",h.showClose),e.unref(s).is("plain",h.plain),h.customClass]),style:e.normalizeStyle(e.unref(E)),role:"alert",onMouseenter:S,onMouseleave:N},[h.repeatNum>1?(e.openBlock(),e.createBlock(e.unref(xw),{key:0,value:h.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(y)?(e.openBlock(),e.createBlock(e.unref(Tr),{key:1,class:e.normalizeClass([e.unref(s).e("icon"),e.unref(_)])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(y))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.renderSlot(h.$slots,"default",{},()=>[h.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:h.message},null,10,["innerHTML"])],2112)):(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(s).e("content"))},e.toDisplayString(h.message),3))]),h.showClose?(e.openBlock(),e.createBlock(e.unref(Tr),{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 Tw=ia(Sw,[["__file","message.vue"]]);let Dw=1;const Vr=t=>{const n=!t||un(t)||e.isVNode(t)||qn(t)?{message:t}:t,o={...Ue,...n};if(!o.appendTo)o.appendTo=document.body;else if(un(o.appendTo)){let a=document.querySelector(o.appendTo);UC(a)||(Jn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),o.appendTo=a}return pr(ve.grouping)&&!o.grouping&&(o.grouping=ve.grouping),At(ve.duration)&&o.duration===3e3&&(o.duration=ve.duration),At(ve.offset)&&o.offset===16&&(o.offset=ve.offset),pr(ve.showClose)&&!o.showClose&&(o.showClose=ve.showClose),o},Vw=t=>{const n=et.indexOf(t);if(n===-1)return;et.splice(n,1);const{handler:o}=t;o.close()},$w=({appendTo:t,...n},o)=>{const a=`message_${Dw++}`,s=n.onClose,l=document.createElement("div"),r={...n,id:a,onClose:()=>{s==null||s(),Vw(d)},onDestroy:()=>{e.render(null,l)}},i=e.createVNode(Tw,r,qn(r.message)||e.isVNode(r.message)?{default:qn(r.message)?r.message:()=>r.message}:null);i.appContext=o||Zt._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},Zt=(t={},n)=>{if(!Kt)return{close:()=>{}};const o=Vr(t);if(o.grouping&&et.length){const s=et.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(At(ve.max)&&et.length>=ve.max)return{close:()=>{}};const a=$w(o,n);return et.push(a),a.handler};Dr.forEach(t=>{Zt[t]=(n={},o)=>{const a=Vr(n);return Zt({...a,type:t},o)}});function Bw(t){for(const n of et)(!t||t===n.props.type)&&n.handler.close()}Zt.closeAll=Bw,Zt._context=null;const Se=qC(Zt,"$message");function Iw({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),f=e.ref({lat:"",lng:""}),m=e.computed(()=>{const w=Number(f.value.lat);return w<=90&&w>=-90?w:"内容错误"}),_=e.computed(()=>{const w=Number(f.value.lng);return w<=180&&w>=-180?w:"内容错误"});function y(){m.value&&m.value!=="内容错误"&&_&&_.value!=="内容错误"&&u(f.value)}function u(w){if(w.lng&&w.lat){t.h.panTo(t.map,[w.lat,w.lng]),t.h.setZoom(t.map,18);const D=t.h.marker(t.map,[w.lat,w.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,D)},3e3),N(1)}}function k(w,D){return T=>{if(!s.value)return!1;s.value=!1,setTimeout(()=>{w(T),s.value=!0},D)}}function b(){console.log("触发加载"),!c.value&&(p.value=!0,r.value++,e.nextTick(()=>{S()}))}function E(){n.value=null,f.value={lat:"",lng:""},N()}function N(w){o.value=[],r.value=1,c.value=!1,p.value=!1,a.value!==5&&e.nextTick(()=>{w!==1&&S()})}function S(){n.value&&n.value.length?a.value===1?V():a.value===4?h():a.value===6&&$():N(1)}async function V(){const w=await t.poi.placeSearch({keywords:n.value,offset:l.value,page:r.value});if(console.log(w),w){const D=w,T=[];for(let L=0;L<D.length;L++){const A=D[L];T.push({...A,id:He.buildUUID(),address:A.address||A.name,title:g(A.name)})}e.nextTick(()=>{p.value=!1,o.value.push(...T)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}async function $(){const w=await X0({page:r.value-1,size:10,query:n.value});if(w.code===200){const D=w.data.content,T=[];if(D!=null&&D.length){for(let L=0;L<D.length;L++){const A=D[L];T.push({id:A.id,address:A.address||A.pointName,...A,title:g(A.pointName)})}e.nextTick(()=>{p.value=!1,o.value.push(...T),r.value===w.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}async function h(){const w=await jf({page:r.value-1,size:10,query:n.value});if(w.code===200){const D=w.data.content,T=[];if(D!=null&&D.length){for(let L=0;L<D.length;L++){const A=D[L];T.push({id:A.id,address:A.address||A.companyName,...A,title:g(A.companyName)})}e.nextTick(()=>{p.value=!1,o.value.push(...T),r.value===w.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}function g(w){const D=[];for(let T=0;T<w.length;T++){const L=w[T],A=n.value.indexOf(L),H={content:w[T]};A===-1?H.type=1:H.type=2,D.push(H)}return D}function C(){if(a.value===1)return"请输入地址";if(a.value===4)return"请输入部门名称";if(a.value===6)return"请输入巡查点"}return{$t:x,searchAddress:n,searchResultList:o,searchAddressType:a,valid:s,size:l,page:r,nextPageParams:i,noMore:c,loading:p,disabled:d,mapJumpLocationFn:u,throttle:k,load:b,resetFn:N,searchAddressTypeFn:E,placeholderFn:C,inputSearch:f,showSearchLat:m,showSearchLng:_,searchLngLat:y}}const Aw={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"},Lw=["src"],Fw={class:"ml_10 ml-[10px]",style:{width:"calc(100% - 34px)"}},Ow={class:"title fs_14 c_fff over_one_line fw_600 text-[14px] text-hy-text-main truncate font-bold"},Rw={class:"address over_one_line fs_12 c_fff truncate text-[12px] text-hy-text-main"},Pw={class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"},Mw={class:"ml_20 ml-[20px]"},Uw=be(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",Aw,[e.createElementVNode("img",{src:e.unref(l).orgTypeIcon,class:"w-full h-full"},null,8,Lw)])):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",Fw,[e.createElementVNode("div",Ow,[(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",Rw,e.toDisplayString(e.unref(l).address),1),e.createElementVNode("div",Pw,[e.createElementVNode("span",null,"经度:"+e.toDisplayString(e.unref(l).lng),1),e.createElementVNode("span",Mw,"维度:"+e.toDisplayString(e.unref(l).lat),1)])])])}}}),[["__scopeId","data-v-393b9954"]]),zw=t=>(e.pushScopeId("data-v-5856b649"),t=t(),e.popScopeId(),t),Ww={style:{display:"inline-block","flex-direction":"column",width:"300px"},class:"search_lightColor pos_r relative"},Hw={class:"r-f flex"},jw={class:"flex",style:{width:"calc(100% - 42px)"}},Yw={key:1,class:"w-[58%] flex justify-between ml-[4px]"},Gw={class:"flex flex-col leading-[20px] ml-[10px]"},qw=zw(()=>e.createElementVNode("span",{class:"text-[14px] font-[600] text-hy-text-main mb-[5px]"},"填写经纬度",-1)),Kw={class:"text-[12px] text-hy-text-secondary"},Xw={class:"text-[12px] text-hy-text-secondary"},Jw={key:2,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},Zw={key:3,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},ca=be(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:f,noMore:m,mapJumpLocationFn:_,placeholderFn:y,load:u,throttle:k,searchLngLat:b}=Iw({props:n});return e.onMounted(()=>{var E;a.value=(E=n.searchTypes[0])==null?void 0:E.value}),(E,N)=>{const S=e.resolveComponent("el-option"),V=e.resolveComponent("el-select"),$=e.resolveComponent("el-input"),h=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Ww,[e.createElementVNode("div",Hw,[e.createElementVNode("div",jw,[e.createVNode(V,{modelValue:e.unref(a),"onUpdate:modelValue":N[0]||(N[0]=g=>e.isRef(a)?a.value=g: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(E.searchTypes,g=>(e.openBlock(),e.createBlock(S,{key:g.value,value:g.value,label:g.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":N[1]||(N[1]=g=>e.isRef(c)?c.value=g: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(y)(),onInput:N[2]||(N[2]=e.unref(k)(e.unref(d),1e3))},null,8,["modelValue","placeholder"])):(e.openBlock(),e.createElementBlock("div",Yw,[e.createVNode($,{modelValue:e.unref(r).lng,"onUpdate:modelValue":N[3]||(N[3]=g=>e.unref(r).lng=g),placeholder:"经度",class:"!w-[47.5%]",clearable:"",onInput:N[4]||(N[4]=g=>e.unref(He.onlyNumber)(e.unref(r),"lng"))},null,8,["modelValue"]),e.createVNode($,{modelValue:e.unref(r).lat,"onUpdate:modelValue":N[5]||(N[5]=g=>e.unref(r).lat=g),placeholder:"纬度",class:"!w-[47.5%]",clearable:"",onInput:N[6]||(N[6]=g=>e.unref(He.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:N[7]||(N[7]=(...g)=>e.unref(d)&&e.unref(d)(...g))},[e.createVNode(h,{name:"base-search","class-name":"w-[16px] h-[16px] text-hy-text-main"})])]),e.unref(p).length?(e.openBlock(),e.createBlock(e.unref(Hs),{key:0,"infinite-scroll-disabled":"disabled",class:"filterContentList",style:{height:"400px","overflow-y":"auto"},"data-key":"id","data-sources":e.unref(p),"data-component":Uw,keeps:10,"extra-props":{mapJumpLocationFn:e.unref(_),searchAddressType:e.unref(a)},"estimate-size":88,onTobottom:e.unref(u)},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:N[8]||(N[8]=(...g)=>e.unref(b)&&e.unref(b)(...g))},[e.createVNode(h,{name:"base-maplocation","class-name":"w-[26px] h-[26px] ml-[10px]"}),e.createElementVNode("div",Gw,[qw,e.createElementVNode("span",Kw,[e.createTextVNode("经度:"),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)==="内容错误"?"text-hy-danger":"")},e.toDisplayString(e.unref(l)||"请输入经度"),3)]),e.createElementVNode("span",Xw,[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(f)?(e.openBlock(),e.createElementBlock("p",Jw," 加载中... ")):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createElementBlock("p",Zw," 没有更多了 ")):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-5856b649"]]);function Qw(t){return oe.post({url:"mapRail/findAllWithDevice",data:t,isFormData:!0})}function vw(t){return oe.post({url:"mapRail/deleteBatch",data:t,isFormData:!0})}function eE(t){return oe.post({url:t.id?"mapRail/update":"mapRail/insert",data:t,isJson:!0})}function $r(t){return oe.post({url:"mapRail/select",data:t,isFormData:!0})}function tE(t){const n=t.emit,{mapConfig:o,isShowMap:a,layersUrlList:s,H:l,POI:r}=qt(),i=e.ref(null),c=e.ref(null),p=e.shallowRef(null),d=e.ref({railName:[{required:!0,message:x("pleaseEnterTheNameOfTheElectronicFence"),trigger:"blur"}]}),f=e.ref({}),m=e.ref(!0),_=e.ref(!1),y=e.ref(100),u=e.ref("fixedPoint"),k=e.ref(null),b=e.ref(!1),E=e.shallowRef(null);e.watch(()=>y.value,P=>{y.value=P.replace(/\D/g,"")});function N(P,z){return U=>{if(!m.value)return!1;m.value=!1,setTimeout(()=>{P(U),m.value=!0},z)}}function S(){let P="";u.value==="fixedPoint"?P=x("mouseClicksOnTheMapAndReleasesToEnd"):u.value==="circle"?P=x("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):P=x("mouseClicksOnTheMapAndRightClicksToEnd"),k.value=P}async function V(){const P=je.getCache("userInfo");let z=null;P!=null&&P.lng&&(P!=null&&P.lat)&&(z=[P.lat,P.lng]),(z==null?void 0:z.length)===0&&(z=null),p.value=await l.map("addElectronicFence_container",{maxZoom:o.maxZoom||18,minZoom:o.minZoom||13,zoom:o.zoom||13,center:z,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:s,layerType:1}),p.value.on("complete",U=>{var M;if(console.log("加载完成"),(M=f.value.pointList)!=null&&M.length){const j=f.value.pointList.map(F=>({lat:F.lat,lng:F.lng}));C(j)}}),p.value.on("left-click",U=>{D(U)})}function $(){w(),E.value&&(l.removePolygon(p.value,E.value),E.value=null)}function h(){$(),u.value!=="fixedPoint"?g():b.value=!0}function g(){const P={templineStyle:{color:"#2DF2FF"},hintlineStyle:{color:"#2DF2FF",dashArray:[5,5]}};l.pm(p.value,u.value,P,C);let z="";u.value==="circle"?z=x("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):u.value==="polygon"&&(z=x("mouseClicksOnTheMapAndRightClicksToEnd")),z&&Se.success(z)}function C(P){E.value=l.polygon(p.value,P,{weight:2,color:"#2DF2FF",opacity:1,fillColor:"#2DF2FF",fillOpacity:.3}),l.fitBounds(p.value,P.map(z=>[z.lat,z.lng])),w()}function w(){p.value&&l.removePM(p.value)}function D(P){if(b.value){const z=l.searchByCircle({lat:P.latlng.lat,lng:P.latlng.lng},y.value/2);C(z),b.value=!1}}async function T(P){const z=await $r({id:P});z.code===200&&(f.value={...z.data},_.value=!0,e.nextTick(()=>{V()}))}function L(P){var z;f.value={},y.value=100,b.value=!1,$(),u.value="fixedPoint",S(),c.value&&((z=c.value)==null||z.resetFields()),P?T(P):(_.value=!0,e.nextTick(()=>{V()}))}function A(){console.log(E.value)}function H(){var z;A();let P=[];if(E.value&&(P=l.getShapeLatLngs(E.value)),(P==null?void 0:P.length)===0||!E.value)return Se.error("请完成电子围栏绘制后再进行保存操作"),!1;(z=c.value)==null||z.validate(async U=>{if(U){const M={railName:f.value.railName};M.pointList=P.map(F=>({lng:F.lng,lat:F.lat})),M.id=f.value.id||null,(await eE(M)).code===200&&(Se.success(`${x("operationSuccessful")} !`),n("on-submit"),_.value=!1)}})}function O(){n("on-close"),_.value=!1}return{addElectronicFenceContainerRef:i,formRef:c,H:l,map:p,POI:r,isShowMap:a,rules:d,form:f,valid:m,dialogVisible:_,radius:y,mouseToolName:u,tips:k,onClose:O,show:L,onSubmit:H,tipsFn:S,initMap:V,mapRailSelectFn:T,throttle:N,startDraw:h,removePolygon:$}}const nE=t=>(e.pushScopeId("data-v-b8fbad8e"),t=t(),e.popScopeId(),t),oE={class:"text-hy-text-main"},aE={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]"},sE={class:"dialog_body"},lE={class:""},rE={class:"form-label"},iE={class:"relative flex flex-row h-[50px]"},cE={class:"z-[1]"},dE={class:"form-label"},pE={class:"w-full flex items-center form-item"},fE={class:"form-label"},mE={class:"flex items-center form-item"},hE=nE(()=>e.createElementVNode("span",{class:"text-sm ml-[10px] text-hy-text-secondary flex-shrink"},"M",-1)),uE={class:"flex items-center form-item"},_E={class:"text-xs text-hy-text-secondary flex items-center"},gE={class:"text-hy-main"},yE={class:"text-right mt-[10px]"},xE=be(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:f,H:m,map:_,POI:y,isShowMap:u,onClose:k,tipsFn:b,show:E,startDraw:N,removePolygon:S,onSubmit:V}=tE({emit:a});return n({show:E}),e.onUnmounted(()=>{m.removeMap(_.value)}),($,h)=>{const g=e.resolveComponent("svg-icon"),C=e.resolveComponent("el-input"),w=e.resolveComponent("el-form-item"),D=e.resolveComponent("el-col"),T=e.resolveComponent("el-option"),L=e.resolveComponent("el-select"),A=e.resolveComponent("el-button"),H=$t,O=e.resolveComponent("el-icon"),P=e.resolveComponent("el-row"),z=e.resolveComponent("el-form"),U=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(U,{modelValue:e.unref(c),"onUpdate:modelValue":h[4]||(h[4]=M=>e.isRef(c)?c.value=M: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",oE,[e.createElementVNode("div",aE,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("electronicFence")),1),e.createElementVNode("div",{class:"absolute top-[15px] right-[15px] cursor-pointer",onClick:h[0]||(h[0]=(...M)=>e.unref(k)&&e.unref(k)(...M))},[e.createVNode(g,{name:"icon-close",width:"26",height:"26","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",sE,[e.createVNode(z,{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(D,{span:24},{default:e.withCtx(()=>[e.createVNode(w,{prop:"railName"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",lE,e.toDisplayString(e.unref(x)("electronicFenceName")),1)])]),default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(i).railName,"onUpdate:modelValue":h[1]||(h[1]=M=>e.unref(i).railName=M),placeholder:e.unref(x)("pleaseEnterTheNameOfTheElectronicFence"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})]),_:1}),e.createVNode(D,{span:10},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",rE,e.toDisplayString(e.unref(x)("electronicFenceRange")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",iE,[e.createElementVNode("div",cE,[e.unref(u)&&e.unref(_)?(e.openBlock(),e.createBlock(ca,{key:0,h:e.unref(m),map:e.unref(_),poi:e.unref(y)},null,8,["h","map","poi"])):e.createCommentVNode("",!0)])])]),_:1})]),_:1}),e.createVNode(D,{span:5},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0 pl-[20px]"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",dE,e.toDisplayString(e.unref(x)("drawingMethod")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",pE,[e.createVNode(L,{modelValue:e.unref(d),"onUpdate:modelValue":h[2]||(h[2]=M=>e.isRef(d)?d.value=M:null),placeholder:e.unref(x)("pleaseSelectTheDrawingMethod"),class:"!w-full",onChange:e.unref(b)},{default:e.withCtx(()=>[e.createVNode(T,{label:e.unref(x)("fixedPointRange"),value:"fixedPoint"},null,8,["label"]),e.createVNode(T,{label:e.unref(x)("customCircle"),value:"circle"},null,8,["label"]),e.createVNode(T,{label:e.unref(x)("customPolygon"),value:"polygon"},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])])]),_:1})]),_:1}),e.unref(d)==="fixedPoint"?(e.openBlock(),e.createBlock(D,{key:0,span:3},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",fE,e.toDisplayString(e.unref(x)("rangeDistance")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",mE,[e.createVNode(C,{modelValue:e.unref(p),"onUpdate:modelValue":h[3]||(h[3]=M=>e.isRef(p)?p.value=M:null),maxlength:"6",placeholder:e.unref(x)("unitMeter"),clearable:""},null,8,["modelValue","placeholder"]),hE])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(D,{span:6},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("operationButton")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",uE,[e.createVNode(A,{class:"button_function",onClick:e.unref(N)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("startDrawing")),1)]),_:1},8,["onClick"]),e.createVNode(A,{type:"danger",class:"",onClick:e.unref(S)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("clearDrawing")),1)]),_:1},8,["onClick"])])]),_:1})]),_:1}),e.createVNode(D,{span:24},{default:e.withCtx(()=>[e.createVNode(w,null,{default:e.withCtx(()=>[e.unref(u)?(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",_E,[e.createVNode(O,{class:"text-sm"},{default:e.withCtx(()=>[e.createVNode(H)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("afterClickingToStartDrawing"))+" ",1),e.createElementVNode("span",gE,e.toDisplayString(e.unref(f)),1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"]),e.createElementVNode("div",yE,[e.createVNode(A,{type:"primary",class:"w-[100px]",onClick:e.unref(k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("close")),1)]),_:1},8,["onClick"]),e.createVNode(A,{class:"w-[100px]",onClick:e.unref(V)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("save")),1)]),_:1},8,["onClick"])])])])]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-b8fbad8e"]]);function kE(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(f,m){n("on-map-display-fn",{id:f,type:!m})}const i=e.computed(()=>f=>{var m;return(m=o.value.mapDisplayList)!=null&&m.length?o.value.mapDisplayList.findIndex(y=>y===f)!==-1:!1});function c(f){var m;(m=a.value)==null||m.show(f)}function p(){var f;(f=s.value)==null||f.getTableData(),n("on-get-data")}function d(f){mt({tipsTitle:x("deleteElectronicFence"),tipsContent:`<div><p>${x("confirmToDeleteTheCurrentDeletedElectronicFence")}?</p></div>`,submitBtnText:x("confirm-0")},async()=>{(await vw({ids:f})).code===200&&(n("on-delete",f),pe.ElMessage.success(x("deletedSuccessfully")),p())})}return{addElectronicFenceRef:a,AppTableRef:s,requestParams:l,changeFn:r,mapDisplayFn:i,addElectronicFenceShow:c,getData:p,deleteShow:d}}const NE={class:"w-full h-full"},bE={class:"flex items-center justify-center"},CE={class:"ml-[6px]"},wE={class:"flex"},EE=e.defineComponent({__name:"electronic-fence",props:{initParams:{default:()=>{}},mapDisplayList:{default:()=>[]},tableColumns:{default:()=>[{label:x("electronicFenceName"),prop:"railName"},{label:x("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:f}=kE({emit:a,props:o});return e.onMounted(()=>{r.value={...o.initParams}}),(m,_)=>{const y=e.resolveComponent("svg-icon"),u=e.resolveComponent("el-button"),k=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock("div",NE,[e.createVNode(Yt,{ref_key:"AppTableRef",ref:l,height:"100%","show-footer":!0,"search-arr":[{label:e.unref(x)("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(u,{type:"success",class:"",onClick:_[0]||(_[0]=b=>e.unref(p)())},{default:e.withCtx(()=>[e.createElementVNode("div",bE,[e.createVNode(y,{width:"16",height:"16",name:"base-add-3"}),e.createElementVNode("span",CE,e.toDisplayString(e.unref(x)("addElectronicFence")),1)])]),_:1}),e.renderSlot(m.$slots,"operator-left-box")])]),mapDisplay:e.withCtx(({row:b})=>[e.createElementVNode("div",null,[e.createVNode(k,{class:"switch_custom switch_width_60","model-value":e.unref(c)(b.id),"active-text":e.unref(x)("show"),"inactive-text":e.unref(x)("hide"),"inline-prompt":"","active-color":"#5AB95F","inactive-color":"var(--hy-dialog-bg-1)",onClick:E=>e.unref(i)(b.id,e.unref(c)(b.id))},null,8,["model-value","active-text","inactive-text","onClick"])])]),isDefault:e.withCtx(({row:b})=>[e.renderSlot(m.$slots,"isDefault",{row:b})]),operator:e.withCtx(({row:b})=>[e.createElementVNode("div",wE,[e.createVNode(Me,{name:"icon-edit",tips:e.unref(x)("edit"),onClick:E=>e.unref(p)(b.id)},null,8,["tips","onClick"]),e.createVNode(Me,{class:"hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-text-danger",name:"base-delete",tips:e.unref(x)("delete"),onClick:E=>e.unref(f)(b.id)},null,8,["tips","onClick"])])]),_:3},8,["search-arr","column-list","search-form"]),e.createVNode(xE,{ref_key:"addElectronicFenceRef",ref:s,onOnSubmit:e.unref(d)},null,8,["onOnSubmit"])])}}});function SE({emit:t,props:n}){const o=e.shallowRef(),a=e.shallowRef(),s=e.ref(),{H:l,POI:r,isShowMap:i,layersUrlList:c,mapConfig:p}=qt();function d(){i&&e.nextTick(async()=>{const E=je.getCache("userInfo");let N=[];E!=null&&E.lng&&(E!=null&&E.lat)&&(N=[E.lat,E.lng]),N.length===0&&(N=null),o.value=await l.map("selectMapLocation",{maxZoom:p.maxZoom||18,minZoom:p.minZoom||13,zoom:p.zoom||13,center:N,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&&u(n.latlng)}),o.value.on("left-click",S=>{s.value=null,m({lng:S.latlng.lng,lat:S.latlng.lat})})})}async function f(E){const N=await r.placeSearch({keywords:E,offset:10,page:1});if(N){const S=N[0];m({lng:S.lng,lat:S.lat})}else t("on-geographical-position",{})}async function m(E){const N=await r.reverseGeocoder(E);if(!(N&&N.address.length)){_(E),Se({type:"warning",message:"未获取到地址信息"});return}y({lng:E.lng,lat:E.lat,address:N.formatted_address,name:N.formatted_address,...N})}function _(E){s.value={lng:E.lng,lat:E.lat,address:"",name:""},t("on-geographical-position",s.value),u()}function y(E){s.value=E,t("on-geographical-position",E),u()}function u(E){a.value&&l.removeMarker(o.value,a.value);let N,S;E?(N=E.lat,S=E.lng):(N=s.value.lat,S=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,[N,S]),a.value=l.marker(o.value,[N,S],V)}function k(){a.value&&l.removeMarker(o.value,a.value)}function b(E){a.value&&l.updateMarkerIcon(a.value,E)}return{H:l,map:o,POI:r,marker:a,isShowMap:i,initMap:d,geographicalPositionFn:y,throughCoordinatePosition:m,placeSearchFn:f,setContentFn:b,removeMarker:k}}const TE={class:"w-full h-full relative"},DE={key:1,id:"selectMapLocation",ref:"selectMapLocation",class:"w-full h-full"},VE=be(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:f,map:m,POI:_}=SE({emit:s,props:a});return e.onMounted(()=>{r()}),n({throughCoordinatePosition:i,placeSearchFn:c,setContentFn:p,removeMarker:d,H:f,map:m,POI:_}),(y,u)=>(e.openBlock(),e.createElementBlock("div",TE,[e.unref(l)?(e.openBlock(),e.createElementBlock("div",DE,null,512)):(e.openBlock(),e.createBlock(pn,{key:0,class:"absolute top-0 left-0 z-[2]"}))]))}}),[["__scopeId","data-v-e69b3725"]]),$E={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},BE=[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 IE(t,n){return e.openBlock(),e.createElementBlock("svg",$E,[...BE])}const AE={name:"ep-arrow-down",render:IE},LE={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},FE=[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 OE(t,n){return e.openBlock(),e.createElementBlock("svg",LE,[...FE])}const RE={name:"ep-arrow-up",render:OE},PE={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},ME=[e.createElementVNode("path",{fill:"currentColor",d:"M672 192L288 511.936L672 832z"},null,-1)];function UE(t,n){return e.openBlock(),e.createElementBlock("svg",PE,[...ME])}const zE={name:"ep-caret-left",render:UE};function Br(t){return oe.post({url:"spotCheck/task/detail",data:t,isFormData:!0})}function WE(t){return oe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function HE(t){return oe.post({url:"spotCheck/task/end",data:t,isFormData:!0})}function jE(t){return oe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function YE(t){return oe.post({url:t.id?"spotCheck/timing/update":"spotCheck/timing/insert",data:t,isJson:!0})}function GE(t){return oe.post({url:"spotCheck/template/detail",data:t,isFormData:!0})}function qE(t){return oe.post({url:t.id?"spotCheck/template/update":"spotCheck/template/insert",data:t,isJson:!0})}function KE(t){return oe.post({url:"spotCheck/task/taskExecute",data:t,isJson:!0})}function Ir(t){return oe.post({url:"spotCheck/task/pttFile/page",data:t,isFormData:!0})}function XE(t){return oe.post({url:"spotCheck/task/groupBind",data:t,isJson:!0})}function JE({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(k){const{deviceId:b,checkStatus:E}=k||{};if(!b)return;const N=p.value.findIndex(S=>S.deviceId===b);if(N!==-1){switch(p.value[N].checkStatus){case 1:a.value--;break;case 2:s.value--;break}switch(E){case 2:s.value++;break;case 3:l.value++;break;case 4:r.value++;break}e.nextTick(()=>{m(),p.value[N].checkStatus=E})}}function f(){let k=0,b=0,E=0,N=0,S=0,V=0;p.value.forEach($=>{const h=$.checkStatus,g=$.intercomGroupTem,C=$.onlineState;switch(g===1&&V++,C===2&&S++,h){case 1:k++;break;case 2:b++;break;case 3:E++;break;case 4:N++;break}}),e.nextTick(()=>{a.value=k,s.value=b,l.value=E,r.value=N,i.value=S,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 y(){}async function u(k){const{code:b,data:E=[]}=await WE({taskId:t.form.id,checkStatus:k||null});b===200&&(p.value=E,t.subscribeStatus&&f(),n("change",p.value))}return{uniqueId:o,beReceiveNum:a,receivingNum:s,finishNum:l,notFinishNum:r,offLineNum:i,intercomGroupTemNum:c,taskDeviceList:p,setDeviceStatus:d,initDeviceStatusList:f,onCountStatus:m,spotCheckSubscribe:_,spotCheckUnsubscribe:y,getData:u}}const ZE={class:"h-[58px] bg-hy-dialog-bg-2 border border-box border-hy-border-2 rounded px-2 box-border flex items-center"},QE={class:"relative"},vE={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"},eS={class:"scale-75"},tS={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"},nS={class:"flex-grow w-0 flex"},oS={class:"mx-2 flex-grow w-0"},aS={class:"truncate"},sS={class:"text-hy-text-secondary truncate"},lS={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"},rS={class:"r-f tac flex items-center justify-center flex-col"},iS={class:"mt-3"},da=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}=JE({props:o,emit:a});return e.onMounted(()=>{r.value=o.form.uniqueId,o.subscribeStatus&&i(),c()}),e.onUnmounted(()=>{l()}),(p,d)=>{const f=e.resolveComponent("el-tooltip"),m=e.resolveComponent("svg-icon"),_=e.resolveComponent("el-col"),y=e.resolveComponent("el-row");return e.openBlock(),e.createBlock(y,{gutter:8,class:"h-full"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),u=>(e.openBlock(),e.createBlock(_,{key:u.id,span:p.paramsSpan,class:"mb-2"},{default:e.withCtx(()=>[e.createElementVNode("div",ZE,[e.createElementVNode("div",QE,[e.createVNode(xt,{class:"w-[36px] h-[36px]"}),u.intercomGroupTem===1?(e.openBlock(),e.createBlock(f,{key:0,class:"item",effect:"dark",content:e.unref(x)("theDeviceWasInATemporaryGroupWhenTheSpotCheckWasInitiated"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",vE,[e.createElementVNode("span",eS,e.toDisplayString(e.unref(x)("lin")),1)])]),_:1},8,["content"])):u.onlineState===2?(e.openBlock(),e.createBlock(f,{key:1,class:"item",effect:"dark",content:e.unref(x)("theDeviceWasOfflineWhenTheSpotCheckWasInitiated"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",tS,[e.createVNode(m,{name:"icon-off-line","class-name":"!w-[10px] !h-[14px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",nS,[e.createElementVNode("div",oS,[e.createElementVNode("p",aS,e.toDisplayString(u.devName),1),e.createElementVNode("p",sS,e.toDisplayString(u.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(x)("toBeReceived-1")),513),[[e.vShow,u.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(x)("receiving-1")),513),[[e.vShow,u.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(x)("completed-0")),513),[[e.vShow,u.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(x)("uncompleted-0")),513),[[e.vShow,u.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",lS,[e.createElementVNode("div",rS,[e.createVNode(m,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",iS,e.toDisplayString(e.unref(x)("noData")),1)])])]),_:1})):e.createCommentVNode("",!0)]),_:1})}}});function cS({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),f=e.ref(!0),m=e.ref(null),_=e.ref(),y=e.ref();function u(){n.value=t.orgGroupInsertTemp.id,i.value=[],f.value=!0,b(),e.nextTick(()=>{V()})}function k(){if(!t.realtimeRequestType)return;const C=async()=>{const w=i.value[i.value.length-1];if(!w){C();return}const D={page:0,taskId:t.taskId,largeThenTimestamp:w.fileTimestamp},T=c.value.scrollTop,L=c.value.offsetHeight-46,A=document.querySelector(`#item-${w.id}`);if(A){const H=A.offsetTop,O=await Ir(D);if(O.code===200){const{content:P=[],totalElements:z=0}=O.data;l.value=z,e.nextTick(()=>{P.forEach(U=>{i.value.findIndex(j=>j.id===U.id)===-1&&i.value.push(U)}),T>=H-L&&S()})}}};m.value&&clearInterval(m.value),m.value=setInterval(()=>{C()},1e4)}async function b(){var L;let C=null;i.value.length&&(C=i[0].value.id);const D={page:0,taskId:t.taskId,lessThenTimestamp:(L=i.value[0])==null?void 0:L.fileTimestamp};s.value=null,a.value=!0,k();const T=await Ir(D);if(T.code===200){const{content:A=[],totalElements:H=0}=T.data;l.value=H,e.nextTick(()=>{var O;C?A.forEach(P=>{const z=i.value.findIndex(U=>U.id===P.id);P.fileDtmEnd||(P.fileDtmEnd=""),z===-1&&i.value.unshift(P)}):i.value=A.reverse(),C?(E(C),s.value=(O=i.value[this.chatMessageList.length-1])==null?void 0:O.id):S(),e.nextTick(()=>{a.value=!1})})}}function E(C){e.nextTick(()=>{c.value.scrollTo(0,document.querySelector(`#item-${C}`).offsetTop-46)})}function N(){l.value!==0&&b()}function S(){e.nextTick(()=>{c.value.scrollTo(0,c.value.scrollHeight)})}function V(){c.value=_.value,p.value=y.value,p.value.addEventListener("ended",()=>{h(),d.value=null}),c.value.onscroll=()=>{c.value.scrollTop===0&&N()}}function $(){f.value=!1,p.value.play()}function h(){f.value=!0,p.value.pause()}function g(C){}return{$t:x,groupId:n,audioUrl:o,loading:a,newScrollTop:s,totalElements:l,page:r,chatMessageList:i,chatMessageListEl:c,audioEl:p,mediaFileId:d,audioType:f,timer:m,chatMessageListRef:_,audioElRef:y,init:u,getNewData:k,getData:b,scrollToMsg:E,topEvent:N,scrollToBottom:S,initScrollList:V,audioPlay:$,audioPause:h,getAudioContext:g}}const dS=["element-loading-text"],pS={key:0,class:"w-full h-full flex box-border items-center justify-center text-center text-hy-text-secondary"},fS={class:""},mS={class:"mt-5"},hS=["id"],uS={key:0,class:"min-w-[72px] p-1 bg-hy-dialog-bg-4 text-center rounded mb-2"},_S={key:1,class:"h-[50px] flex items-center w-full"},gS={class:"mr-2 flex-grow w-0 flex flex-col items-end"},yS={class:"w-full flex items-center justify-end"},xS=["onClick"],kS=["onClick"],NS={class:"font-bold flex-shrink-0"},bS={class:"flex-shrink-0 ml-1"},CS={key:0},wS={key:2,class:"h-[50px] flex items-center w-full"},ES={class:"ml-2 flex-grow w-0 flex flex-col items-start"},SS={class:"w-full flex items-center"},TS=["onClick"],DS={class:"flex-shrink-0 mr-1"},VS={key:0},$S={class:"font-bold flex-shrink-0"},BS=["onClick"],IS=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:f,audioElRef:m}=cS({props:n});return e.onMounted(()=>{p()}),e.onUnmounted(()=>{d.value&&clearInterval(d.value)}),(_,y)=>{const u=e.resolveComponent("svg-icon"),k=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:f,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",pS,[e.createElementVNode("div",fS,[e.createElementVNode("div",null,[e.createVNode(u,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"})]),e.createElementVNode("div",mS,[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),(b,E)=>(e.openBlock(),e.createElementBlock("div",{id:`item-${b.id}`,key:b.id,class:"p-2 box-border flex flex-col items-center"},[b.fileDtmEnd.split(" ")[0]!==(E>0&&e.unref(l)[E-1].fileDtmEnd.split(" ")[0])?(e.openBlock(),e.createElementBlock("div",uS,e.toDisplayString(b.fileDtmEnd.split(" ")[0]),1)):e.createCommentVNode("",!0),b.devUserId===o.id?(e.openBlock(),e.createElementBlock("div",_S,[e.createElementVNode("div",gS,[e.createElementVNode("div",null,e.toDisplayString(b.devUserName)+" ("+e.toDisplayString(b.serialNum||b.devUserId)+") ",1),e.createElementVNode("div",yS,[e.unref(r)===b.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:N=>e.unref(c)(b.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,xS)):e.createCommentVNode("",!0),e.createElementVNode("div",{style:e.normalizeStyle({width:b.audioLength>=60?"70%":`calc(${b.audioLength/60*90}px + 160px)`,background:e.unref(r)===b.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)===b.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:N=>e.unref(c)(b.mediaFileId)},[e.createElementVNode("div",NS,e.toDisplayString(b.audioLength)+"” ",1),e.createElementVNode("div",bS,[b.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",CS,e.toDisplayString(b.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)])],14,kS)])]),e.createVNode(xt,{class:"w-[32px] h-[32px]"})])):(e.openBlock(),e.createElementBlock("div",wS,[e.createVNode(xt,{class:"w-[32px] h-[32px]"}),e.createElementVNode("div",ES,[e.createElementVNode("div",null,e.toDisplayString(b.devUserName)+" ("+e.toDisplayString(b.serialNum||b.devUserId)+") ",1),e.createElementVNode("div",SS,[e.createElementVNode("div",{style:e.normalizeStyle({width:b.audioLength>=60?"70%":`calc(${b.audioLength/60*90}px + 160px)`,background:e.unref(r)===b.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)===b.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:N=>e.unref(c)(b.mediaFileId)},[e.createElementVNode("div",DS,[b.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",VS,e.toDisplayString(b.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",$S,e.toDisplayString(b.audioLength)+"” ",1)],14,TS),e.unref(r)===b.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:N=>e.unref(c)(b.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,BS)):e.createCommentVNode("",!0)])])]))],8,hS))),128))],512)],8,dS)),[[k,e.unref(s)]])}}});function AS(){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 XE({groupId:o.value,taskId:t.value.id})}function d(){var h;l.value.length!==0&&((h=c.value)==null||h.orgGroupInsertTempFn([...l.value],{openRecording:1}).then(g=>{o.value=g,e.nextTick(()=>{p()}),_(!1)}).catch(()=>{o.value=null,n.value=!0,_(!1)}))}function f(h=[]){l.value=h,_(!1),t.value.checkStyle===2&&d()}function m(h={}){const{beReceiveNum:g=0,receivingNum:C=0,finishNum:w=0,notFinishNum:D=0,offLineNum:T=0,intercomGroupTemNum:L=0}=h;t.value.beReceiveNum=g,t.value.receivingNum=C,t.value.finishNum=w,t.value.notFinishNum=D,t.value.offLineNum=T,t.value.intercomGroupTemNum=L}function _(h){s.value=h}function y(){r.value=!r.value}async function u(h){const{code:g,data:C={}}=await Br({id:h});g===200&&(t.value={...C},t.value.checkNum===0&&f([]),t.value.checkStyle===2&&(t.value.actionType=null),k(!0))}function k(h){i.value=h}function b(){}function E(h){if(i.value){Se.warning(x("currentlySpotCheckInProgressPleaseProcessLater"));return}o.value=null,n.value=!1,t.value={},_(!0),u(h)}function N(){i.value=!1}function S(){mt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("cancelSpotCheck"),tipsContent:`<div><p>${x("confirmToCancelThisSpotCheck")}?</p><p>${this.$t("cancelMidwayYouWillNotBeAbleToRetrieveOrViewAnyInformationOfThisSpotCheck")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("returnToSpotCheck"),submitBtnText:x("cancelSpotCheck"),submitBtnType:"danger"},()=>{$(3)})}function V(){let h=x("afterTheCheck,YouCanViewTheSpotCheckInformationInTheSpotCheckModule");(t.value.beReceiveNum!==0||t.value.receivingNum!==0)&&(h=x("thereAreStillDevicesInTheReceivingProcessTheSystemWillMarkTheseDevicesAsUnfinished")),mt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("endSpotCheck"),tipsContent:`<div><p>${x("confirmToEndThisSpotCheck")}?</p><p>${h}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("returnToSpotCheck"),submitBtnText:x("endSpotCheck")},()=>{$(2)})}async function $(h){var C;const{code:g}=await HE({taskId:t.value.id,checkStatus:h});g===200&&(h===2&&(Se.success(x("theSpotCheckHasBeenCompletedYouCanViewDetailedInformationRecordsInTheSpotCheckModule")),t.value.checkStyle===2&&o.value&&((C=c.value)==null||C.onClose())),N())}return{form:t,groupType:n,groupId:o,dragLevel:a,loading:s,taskDeviceList:l,msgContentType:r,dialogVisible:i,multiPersonIntercomSpotCheckRef:c,taskGroupBind:p,orgGroupInsertTemp:d,spotCheckTaskDeviceChange:f,spotCheckTaskDeviceCountStatus:m,setLoading:_,setMsgContentType:y,setDialogVisible:k,show:E,close:N,onClose:S,onSubmit:V,taskEnd:$,setDragLevel:b,$t:x}}const LS=t=>(e.pushScopeId("data-v-e246ad8e"),t=t(),e.popScopeId(),t),FS={class:"el-dialog__header !p-0"},OS={class:"el-dialog__body !p-[8px_0px_8px] sideFoot_content h-[700px] flex flex-col text-main text-xs"},RS={class:"h-[40px] flex items-center px-4 mb-1"},PS={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"},MS={key:0,class:"ml-3"},US={class:"text-hy-text-secondary"},zS={key:1,class:"ml-3"},WS={class:"text-hy-text-secondary"},HS={class:"font-bold"},jS=["element-loading-text"],YS={key:0,class:"w-full h-full flex flex-col box-border"},GS={class:"flex-shrink-0 mb-3 px-4"},qS={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},KS={class:"flex w-full"},XS={class:"flex-shrink-0"},JS={class:"text-right font-bold flex-grow w-0"},ZS={class:"flex w-full text-hy-text-secondary"},QS={class:"flex-shrink-0"},vS={class:"text-right flex-grow w-0"},eT={class:"flex w-full text-hy-text-secondary"},tT={class:"flex-shrink-0"},nT={class:"text-right flex-grow w-0"},oT={class:"text-xs p-2 leading-[22px]"},aT={class:"flex w-full"},sT={class:"flex-shrink-0 tracking-[4px]"},lT={class:"text-right font-bold flex-grow w-0"},rT={class:"flex w-full"},iT={class:"flex-shrink-0 tracking-[4px]"},cT={class:"text-right font-bold flex-grow w-0"},dT={class:"flex w-full"},pT={class:"flex-shrink-0 tracking-[4px]"},fT={class:"text-right font-bold flex-grow w-0 text-hy-success"},mT={class:"flex w-full"},hT={class:"flex-shrink-0 tracking-[4px]"},uT={class:"text-right font-bold flex-grow w-0 text-hy-danger"},_T={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},gT={class:"flex-1 flex"},yT={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},xT={class:"flex-grow w-0 text-center truncate"},kT={class:"flex-1 flex"},NT={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},bT={class:"flex-grow w-0 text-center text-hy-success truncate"},CT={class:"flex-1 flex"},wT={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},ET={class:"flex-grow w-0 text-center text-hy-danger truncate"},ST={class:"w-full px-2 leading-[22px] box-border rounded bg-hy-dialog-bg-3 h-[28px] flex items-center justify-between"},TT={class:"flex"},DT={key:0,class:"ml-2 bg-hy-dialog-bg-1 h-[22px] px-2 rounded"},VT={class:"w-[400px]"},$T={class:""},BT={key:0,class:"box-border flex-grow h-0 flex px-2"},IT={class:"flex-grow w-0 px-2 overflow-x-hidden overflow-y-auto h-full"},AT={key:0,class:"w-[66%] box-border pr-2"},LT={class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},FT={key:1,class:"flex-grow h-0 px-4"},OT={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"},RT={class:"r-f tac flex text-center"},PT={class:"mt-3"},MT={class:"mt-1"},UT={key:1,class:"w-full h-full"},zT={key:0,class:"w-full h-full flex px-4 box-border"},WT={class:"flex flex-col w-[33%]"},HT={class:"pr-2"},jT={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},YT={class:"flex w-full"},GT={class:"flex-shrink-0"},qT={class:"text-right font-bold flex-grow w-0"},KT={class:"flex w-full text-hy-text-secondary"},XT={class:"flex-shrink-0"},JT={class:"text-right flex-grow w-0"},ZT={class:"flex w-full text-hy-text-secondary"},QT={class:"flex-shrink-0"},vT={class:"text-right flex-grow w-0"},eD={class:"text-xs p-2 leading-[22px]"},tD={key:0,class:"flex w-full"},nD={class:"flex-shrink-0 tracking-[4px]"},oD={class:"text-right font-bold flex-grow w-0"},aD={key:1,class:"flex w-full"},sD={class:"flex-shrink-0 tracking-[4px]"},lD={class:"text-right font-bold flex-grow w-0"},rD={class:"flex w-full"},iD={class:"flex-shrink-0 tracking-[4px]"},cD={class:"text-right font-bold flex-grow w-0 text-hy-success"},dD={class:"flex w-full"},pD={class:"flex-shrink-0 tracking-[4px]"},fD={class:"text-right font-bold flex-grow w-0 text-hy-danger"},mD={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},hD={class:"flex-1 flex"},uD={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},_D={class:"flex-grow w-0 text-center truncate"},gD={class:"flex-1 flex"},yD={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},xD={class:"flex-grow w-0 text-center text-hy-success truncate"},kD={class:"flex-1 flex"},ND={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},bD={class:"flex-grow w-0 text-center text-hy-danger truncate"},CD={class:"flex-grow h-0 mt-2 overflow-x-hidden overflow-y-auto pr-2 box-border"},wD={class:"flex-grow w-0 flex flex-col"},ED=LS(()=>e.createElementVNode("div",{class:"flex-grow h-0 overflow-hidden"},null,-1)),SD={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"},TD={class:"r-f tac flex text-center"},DD={class:"mt-5"},VD={key:1,class:"flex-grow h-full px-4"},$D={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"},BD={class:"r-f tac flex text-center"},ID={class:"mt-3"},AD={class:"mt-1"},LD={class:"h-[50px] flex items-center justify-between flex-shrink-0 px-4 mt-1"},FD={class:"text-hy-text-secondary text-xs"},OD={key:0},RD={key:1},PD={key:0},MD={key:1},UD={key:2},zD=be(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:f,onClose:m,onSubmit:_}=AS();return(y,u)=>{const k=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-popover"),E=e.resolveComponent("el-col"),N=zE,S=e.resolveComponent("el-icon"),V=e.resolveComponent("el-tooltip"),$=e.resolveComponent("el-row"),h=$t,g=e.resolveComponent("el-button"),C=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:u[2]||(u[2]=(...w)=>e.unref(a)&&e.unref(a)(...w))},[e.createElementVNode("div",FS,[e.createElementVNode("div",OS,[e.createElementVNode("div",RS,[e.createElementVNode("div",PS,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",MS,[e.createElementVNode("span",US,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",zS,[e.createElementVNode("span",WS,e.toDisplayString(e.unref(l)("responseTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",HS,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",YS,[e.createElementVNode("div",GS,[e.createVNode($,{gutter:8},{default:e.withCtx(()=>[e.createVNode(E,{span:8},{default:e.withCtx(()=>[e.createVNode(b,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",_T,[e.createElementVNode("div",gT,[e.createElementVNode("div",yT,[e.createVNode(k,{name:"base-every-day-many-people","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",xT,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("div",kT,[e.createElementVNode("div",NT,[e.createVNode(k,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",bT,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("div",CT,[e.createElementVNode("div",wT,[e.createVNode(k,{name:"base-danger-state","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",ET,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("ul",qS,[e.createElementVNode("li",KS,[e.createElementVNode("span",XS,e.toDisplayString(e.unref(l)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",JS,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("li",ZS,[e.createElementVNode("span",QS,e.toDisplayString(e.unref(l)("offlineStatus")),1),e.createElementVNode("div",vS,e.toDisplayString(e.unref(s).offLineNum||"- -"),1)]),e.createElementVNode("li",eT,[e.createElementVNode("span",tT,e.toDisplayString(e.unref(l)("temporaryGroups")),1),e.createElementVNode("div",nT,e.toDisplayString(e.unref(s).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",oT,[e.createElementVNode("li",aT,[e.createElementVNode("span",sT,e.toDisplayString(e.unref(l)("waitingToReceive")),1),e.createElementVNode("div",lT,e.toDisplayString(e.unref(s).beReceiveNum||"- -"),1)]),e.createElementVNode("li",rT,[e.createElementVNode("span",iT,e.toDisplayString(e.unref(l)("receiving")),1),e.createElementVNode("div",cT,e.toDisplayString(e.unref(s).receivingNum||"- -"),1)]),e.createElementVNode("li",dT,[e.createElementVNode("span",pT,e.toDisplayString(e.unref(l)("completed")),1),e.createElementVNode("div",fT,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("li",mT,[e.createElementVNode("span",hT,e.toDisplayString(e.unref(l)("uncompleted")),1),e.createElementVNode("div",uT,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])])]),_:1})]),_:1}),e.createVNode(E,{span:16},{default:e.withCtx(()=>[e.createElementVNode("div",ST,[e.createElementVNode("div",TT,[e.createTextVNode(e.toDisplayString(e.unref(l)("messageContent"))+" ",1),e.unref(s).playMsg===1?(e.openBlock(),e.createElementBlock("div",DT," 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:u[1]||(u[1]=(...w)=>e.unref(i)&&e.unref(i)(...w))},[e.createVNode(V,{modelValue:e.unref(c),"onUpdate:modelValue":u[0]||(u[0]=w=>e.isRef(c)?c.value=w:null),class:"item",placement:"bottom-end",trigger:"manual"},{content:e.withCtx(()=>[e.createElementVNode("div",VT,e.toDisplayString(e.unref(s).msgContent),1)]),default:e.withCtx(()=>[e.createElementVNode("span",$T,[e.createTextVNode(e.toDisplayString(e.unref(l)("viewContent"))+" ",1),e.createVNode(S,{class:e.normalizeClass(["text-sm duration-500",{"-rotate-90":e.unref(c)}])},{default:e.withCtx(()=>[e.createVNode(N)]),_:1},8,["class"])])]),_:1},8,["modelValue"])])])]),_:1})]),_:1})]),e.unref(s).checkNum!==0?(e.openBlock(),e.createElementBlock("div",BT,[e.createElementVNode("div",IT,[e.unref(s).id?(e.openBlock(),e.createBlock(da,{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",AT,[e.createElementVNode("div",LT,[e.unref(s).id?(e.openBlock(),e.createBlock(IS,{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",FT,[e.createElementVNode("div",OT,[e.createElementVNode("div",RT,[e.createVNode(k,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",PT,e.toDisplayString(e.unref(l)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",MT,e.toDisplayString(e.unref(l)("cannotSupportThisSpotCheck")),1)])])]))])):(e.openBlock(),e.createElementBlock("div",UT,[e.unref(s).checkNum!==0?(e.openBlock(),e.createElementBlock("div",zT,[e.createElementVNode("div",WT,[e.createElementVNode("div",HT,[e.createVNode(b,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",mD,[e.createElementVNode("div",hD,[e.createElementVNode("div",uD,[e.createVNode(k,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",_D,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("div",gD,[e.createElementVNode("div",yD,[e.createVNode(k,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",xD,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("div",kD,[e.createElementVNode("div",ND,[e.createVNode(k,{name:"base-danger-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",bD,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("ul",jT,[e.createElementVNode("li",YT,[e.createElementVNode("span",GT,e.toDisplayString(e.unref(l)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",qT,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("li",KT,[e.createElementVNode("span",XT,e.toDisplayString(e.unref(l)("offlineStatus")),1),e.createElementVNode("div",JT,e.toDisplayString(e.unref(s).offLineNum||"- -"),1)]),e.createElementVNode("li",ZT,[e.createElementVNode("span",QT,e.toDisplayString(e.unref(l)("temporaryGroups")),1),e.createElementVNode("div",vT,e.toDisplayString(e.unref(s).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",eD,[e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("li",tD,[e.createElementVNode("span",nD,e.toDisplayString(e.unref(l)("waitingToReceive")),1),e.createElementVNode("div",oD,e.toDisplayString(e.unref(s).beReceiveNum||"- -"),1)])):e.createCommentVNode("",!0),e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("li",aD,[e.createElementVNode("span",sD,e.toDisplayString(e.unref(l)("receiving")),1),e.createElementVNode("div",lD,e.toDisplayString(e.unref(s).receivingNum||"- -"),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",rD,[e.createElementVNode("span",iD,e.toDisplayString(e.unref(l)("completed")),1),e.createElementVNode("div",cD,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("li",dD,[e.createElementVNode("span",pD,e.toDisplayString(e.unref(l)("uncompleted")),1),e.createElementVNode("div",fD,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),_:1})]),e.createElementVNode("div",CD,[e.unref(s).id?(e.openBlock(),e.createBlock(da,{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",wD,[ED,e.unref(f)?(e.openBlock(),e.createElementBlock("div",SD,[e.createElementVNode("div",TD,[e.createVNode(k,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"}),e.createElementVNode("div",DD,e.toDisplayString(e.unref(l)("groupMemberStatusAbnormalityPreventsSpotCheck")),1)])])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",VD,[e.createElementVNode("div",$D,[e.createElementVNode("div",BD,[e.createVNode(k,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",ID,e.toDisplayString(e.unref(l)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",AD,e.toDisplayString(e.unref(l)("cannotSupportThisSpotCheck")),1)])])]))]))],8,jS)),[[C,e.unref(r)]]),e.createElementVNode("div",LD,[e.createElementVNode("div",FD,[e.createElementVNode("div",null,[e.createVNode(S,{class:"mr-1 text-sm"},{default:e.withCtx(()=>[e.createVNode(h)]),_:1}),e.unref(s).checkType===2?(e.openBlock(),e.createElementBlock("span",OD,e.toDisplayString(e.unref(l)("randomCheck")),1)):(e.openBlock(),e.createElementBlock("span",RD,[e.unref(s).checkScope===1?(e.openBlock(),e.createElementBlock("span",PD,e.toDisplayString(e.unref(l)("regionalSpotCheck")),1)):e.unref(s).checkScope===2?(e.openBlock(),e.createElementBlock("span",MD,e.toDisplayString(e.unref(l)("departmentSpotCheck")),1)):e.unref(s).checkScope===3?(e.openBlock(),e.createElementBlock("span",UD,e.toDisplayString(e.unref(l)("deviceSpotCheck")),1)):e.createCommentVNode("",!0)]))])]),e.createElementVNode("div",null,[e.createVNode(g,{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(g,{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 WD({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 wl({spotCheckSupport:1});if(m.code===200)return m.data}function f(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:f,hyOrgTreeRef:l}}const HD={class:"flex flex-col w-full h-full"},jD={class:"flex justify-between items-center h-[40px]"},YD={class:"flex-1"},GD={class:"text-hy-text-secondary ml-3"},qD={class:"flex-1 flex items-center justify-end"},KD={class:"text-xs"},XD={class:"flex items-center clickBox cursor-pointer"},JD={class:"text-hy-text-primary"},ZD=["element-loading-text"],QD={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},vD={class:"flex-grow h-0 w-full equipment vbtTable"},eV={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"},tV={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"},nV={class:"r-f tac flex flex-col items-center justify-center"},oV={class:"mt-3"},aV={class:"flex-grow w-0 pl-2 box-border truncate"},sV={class:"flex-shrink-0"},lV=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:f,hyOrgTreeRef:m}=WD({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList)}),e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(_,y)=>{const u=e.resolveComponent("el-button"),k=e.resolveComponent("svg-icon"),b=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",HD,[e.createElementVNode("div",jD,[e.createElementVNode("div",YD,[e.createTextVNode(e.toDisplayString(e.unref(x)("allDepartments")),1),e.createElementVNode("span",GD,e.toDisplayString(e.unref(x)("doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt")),1)]),e.createElementVNode("div",qD,[e.withDirectives(e.createVNode(u,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("span",KD,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",XD,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",JD,e.toDisplayString(e.unref(c).length),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("individual-0")),1)])])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(x)("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",QD,[e.createElementVNode("div",vD,[e.createVNode(Hl,{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(f)},null,8,["get-data","default-checked-list","onOnSelectedData"])])]),e.createElementVNode("ul",eV,[e.withDirectives(e.createElementVNode("li",tV,[e.createElementVNode("div",nV,[e.createVNode(k,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",oV,e.toDisplayString(e.unref(x)("youHaveNotSelectedADepartmentYet")),1)])],512),[[e.vShow,e.unref(c).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(E,N)=>(e.openBlock(),e.createElementBlock("li",{key:`${E.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",aV,e.toDisplayString(E.companyName||E.groupName||E.orgName),1),e.createElementVNode("div",sV,[e.createVNode(Me,{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(x)("delete"),onClick:S=>e.unref(d)(N)},null,8,["tips","onClick"])])]))),128))])],8,ZD)),[[b,!1]])])}}});function rV({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,k=>{s.value=k.replace(/\s/g,"")});function c(){p([]),i.value.setSelectedList(o.value),t("on-selected-data-list",o.value)}function p(k=[]){o.value=[...k]}function d(k){if(!k.disabled){if(k.type===3){const b=o.value.findIndex(E=>E.deviceId===k.deviceId);b===-1?o.value.push({...k}):o.value.splice(b,1)}else{clearTimeout(l.value);const b={nonExistent:[],existent:[]},E=k.childrenDeviceList||[];E.length&&(E.forEach(N=>{a.value.findIndex(V=>V.deviceId===N.deviceId)===-1&&(o.value.findIndex($=>$.deviceId===N.deviceId)===-1?b.nonExistent.push({...N}):b.existent.push({...N}))}),b.nonExistent.length?b.nonExistent.forEach(N=>{o.value.push({...N})}):b.existent.forEach(N=>{const S=o.value.findIndex(V=>V.deviceId===N.deviceId);o.value.splice(S,1)}))}t("on-selected-data-list",[...o.value])}}function f(){r.value&&r.value.abort(),r.value=new AbortController}async function m(){n.value=!0;const k=await wl({spotCheckSupport:1});return f(),k.data}function _(k,b){const E=[{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"}],N=E.findIndex(S=>S.type===k);return N!==-1?y(E[N],b):"tree-icon-walkie-talkie"}function y(k,b){return k.type===7||k.type===13?b===1?k.svgName:`${k}-off-line`:k.svgName}function u(k){o.value=k.selectedDataList,t("on-selected-data-list",o.value)}return{setSelectedDataList:p,getData:m,abortController:r,selectedDataList:o,clearSelectedData:c,deviceClick:d,checkDeviceTypeFn:_,onSelectedData:u,hyDeviceTreeRef:i}}const iV={class:"flex flex-col w-full h-full"},cV={class:"flex justify-between items-center h-[40px]"},dV={class:"flex mr-2"},pV={class:"flex items-center"},fV={class:"text-xs"},mV={class:"flex items-center clickBox cursor-pointer"},hV={class:"text-hy-text-primary"},uV=["element-loading-text"],_V={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},gV={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"},yV={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"},xV={class:"flex flex-col justify-center items-center"},kV={class:"mt-3"},NV={class:"flex-grow w-0 pl-2 flex box-border"},bV={class:"truncate flex-grow w-0"},CV={class:"select-none truncate mx-[4px] text-hy-text-main"},wV={class:"flex-shrink-0"},EV=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:f,onSelectedData:m,hyDeviceTreeRef:_}=rV({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList),r()}),e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(y,u)=>{const k=e.resolveComponent("el-button"),b=e.resolveComponent("svg-icon"),E=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",iV,[e.createElementVNode("div",cV,[e.createElementVNode("div",dV,e.toDisplayString(e.unref(x)("allDevices")),1),e.createElementVNode("div",pV,[e.withDirectives(e.createVNode(k,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("span",fV,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",mV,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",hV,e.toDisplayString(e.unref(c).length),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("individual-0")),1)])])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(x)("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",_V,[e.createVNode(Wl,{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",gV,[e.withDirectives(e.createElementVNode("li",yV,[e.createElementVNode("div",xV,[e.createVNode(b,{name:"base-no-data","class-name":"!w-[50px] !h-[50px]"}),e.createElementVNode("div",kV,e.toDisplayString(e.unref(x)("youHaveNotSelectedADeviceYet")),1)])],512),[[e.vShow,e.unref(c).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),N=>(e.openBlock(),e.createElementBlock("li",{key:`${N.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",NV,[e.createVNode(b,{name:e.unref(f)(N.deviceType||N.type,N.onlineState),"class-name":"w-[16px] h-[16px]",class:e.normalizeClass(N.onlineState===1?"text-hy-text-main":"text-hy-info")},null,8,["name","class"]),e.createElementVNode("div",bV,[e.createElementVNode("span",CV,e.toDisplayString(N.devName),1)])]),e.createElementVNode("div",wV,[e.createVNode(Me,{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(x)("delete"),onClick:S=>e.unref(d)(N)},null,8,["tips","onClick"])])]))),128))])],8,uV)),[[E,!1]])])}}});function SV({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,E=>{i.value=E.replace(/\s/g,"")});function p(E=[]){E.length!==0&&(E.forEach(N=>{r.value.findIndex(V=>V.id===N.id)===-1&&r.value.push(N)}),e.nextTick(()=>{n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}))}function d(E=[]){r.value=[...E]}function f(){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 _(E){return r.value.findIndex(S=>S.id===E.id)!==-1?"is-checked":""}async function y(E){const N=r.value.findIndex(S=>S.id===E.id);N===-1?u(E):k(N)}function u(E){r.value.push(E),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}function k(E){r.value.splice(E,1),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}async function b(){o.value=!0;const{code:E,data:N=[]}=await Qw({query:i.value,spotCheckSupport:1,onlineState:1});E===200&&(l.value=[],N.forEach(S=>{S.deviceList.length!==0?l.value.unshift(S):l.value.push(S)}),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:f,setCheckAll:m,judgeSelectedFn:_,deviceClick:y,addSelectList:u,deleteSelectList:k,getData:b}}const TV={class:"flex flex-col w-full h-full"},DV={class:"flex justify-between items-center h-[30px]"},VV={class:"el-checkbox !mr-2"},$V=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],BV={class:"text-hy-text-primary"},IV=["element-loading-text"],AV={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},LV={class:"flex items-center justify-center p-[8px_8px_4px]"},FV={class:"text-hy-text-main"},OV={class:"flex-grow h-0 w-full px-2 box-border overflow-y-scroll overflow-x-hidden"},RV=["onClick"],PV={class:"flex items-center justify-center"},MV={class:"el-checkbox relative !mr-[6px]"},UV=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],zV={class:"treeDepartment cursor_pointer flex items-center justify-between w-full text-[14px] font-bold text-hy-text-main"},WV={class:"r-f w_100vh flex w-full"},HV={class:"flex-grow w-0 over_one_line truncate"},jV={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"},YV={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"},GV={class:"r-f tac flex flex-col justify-center items-center"},qV={class:"mt-3"},KV={class:"flex-grow w-0 pl-2 box-border truncate"},XV={class:"flex-shrink-0"},JV=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:f,deviceList:m,deviceClick:_,judgeSelectedFn:y,deleteSelectList:u}=SV({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList),r()}),n({setSelectedDataList:l,getData:r}),(k,b)=>{const E=e.resolveComponent("svg-icon"),N=e.resolveComponent("el-button"),S=e.resolveComponent("el-input"),V=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",TV,[e.createElementVNode("div",DV,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("electronicFence")),1),e.createElementVNode("div",{class:"flex items-center clickBox",onClick:b[0]||(b[0]=(...$)=>e.unref(i)&&e.unref(i)(...$))},[e.createElementVNode("div",VV,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)},"el-checkbox__input"])},$V,2)]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",BV,e.toDisplayString(e.unref(p).length),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("individual-0")),1)])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(x)("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",AV,[e.createElementVNode("div",LV,[e.createVNode(S,{modelValue:e.unref(f),"onUpdate:modelValue":b[1]||(b[1]=$=>e.isRef(f)?f.value=$:null),placeholder:e.unref(x)("filterByElectronicFenceName"),class:"table-search-main w-[254px] text-[12px]",onClear:b[2]||(b[2]=$=>e.unref(r)()),onKeyup:b[3]||(b[3]=e.withKeys($=>e.unref(r)(),["enter"]))},{append:e.withCtx(()=>[e.createElementVNode("div",FV,[e.createVNode(N,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(r)},{default:e.withCtx(()=>[e.createVNode(E,{name:"sys-button-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",OV,[(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:h=>e.unref(_)($)},[e.createElementVNode("div",PV,[e.createElementVNode("div",MV,[e.createElementVNode("span",{class:e.normalizeClass([e.unref(y)($),"el-checkbox__input"])},UV,2)])]),e.createElementVNode("div",zV,[e.createElementVNode("div",WV,[e.createElementVNode("span",HV,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,RV))),128))])]),e.createElementVNode("ul",jV,[e.withDirectives(e.createElementVNode("li",YV,[e.createElementVNode("div",GV,[e.createVNode(E,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",qV,e.toDisplayString(e.unref(x)("youHavenTSelectedAFenceYet")),1)])],512),[[e.vShow,e.unref(p).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),($,h)=>(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",KV,e.toDisplayString($.railName),1),e.createElementVNode("div",XV,[e.createVNode(Me,{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(x)("delete"),onClick:g=>e.unref(u)(h)},null,8,["tips","onClick"])])]))),128))])],8,IV)),[[V,e.unref(d)]])])}}});function ZV({emit:t}){const n=e.ref([{label:x("templateName"),prop:"templateName",isSearch:!0},{label:x("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((f,m)=>{const{checkStyle:_=null}=d||{};o.value.checkStyle=_,a.value=!0,s.value=f,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:x,tableColumns:n,requestParams:o,dialogVisible:a,successfulCallback:s,AppTableRef:l,show:r,selected:c,close:p}}const QV={class:"deleteBox c_fff text-hy-text-main"},vV={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]"},e$={class:"absolute right-[-2px] top-[-2px]"},t$={class:"dialog_body h-[60vh]"},n$=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:f}=ZV({emit:a});return n({show:f}),(m,_)=>{const y=e.resolveComponent("svg-icon"),u=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(u,{modelValue:e.unref(l),"onUpdate:modelValue":_[0]||(_[0]=k=>e.isRef(l)?l.value=k: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",QV,[e.createElementVNode("div",vV,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("spotCheckTemplate")),1),e.createElementVNode("div",e$,[e.createVNode(y,{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",t$,[e.createVNode(Yt,{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:k})=>[e.createVNode(Me,{width:12,height:12,name:"icon-choice",class:"!w-[24px] !h-[24px]",tips:e.unref(s)("edit"),onClick:b=>e.unref(p)(k)},null,8,["tips","onClick"])]),_:1},8,["column-list","search-form"])])])]),_:1},8,["modelValue"])}}});function o$({emit:t}){const n=e.ref({everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1}),o=(X,v,ie)=>{let le="";for(const J in n.value)n.value[J]&&(le+=`${J.replace(/(^everyday)|(everyday$)/g,"")},`);le.length?ie():ie(new Error(x("pleaseSelectASpecificWeek")))},a=e.ref(null),s=e.ref(!1),l=e.ref(!1),r=e.ref([]),i=e.ref(null),c=e.ref(x("immediatelyInitiateARollCallSpotCheck")),p=e.ref(!1),d=e.ref(null),f=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}),y=e.ref({limitNum:[{required:!0,message:x("pleaseEnterTheRandomNumber"),trigger:"blur"}],templateName:[{required:!0,message:x("pleaseEnterTheTemplateName"),trigger:"blur"}],msgContent:[{required:!0,message:x("pleaseFillInTheMessageToBeSent"),trigger:"blur"}],everydayJson:[{required:!0,validator:o,trigger:"change"}],taskDateTime:[{required:!0,message:x("pleaseSelectTheExecutionTime"),trigger:"change"}],taskDateType:[{required:!0,message:x("pleaseSelectTheExecutionDate"),trigger:"change"}],apDateListV2:[{required:!0,message:x("selectOneOrMoreDates"),trigger:"change"}],apDtmV2:[{required:!0,message:x("pleaseSelectASpecificTimePeriod"),trigger:"change"}]}),u=e.ref(),k=e.ref(),b=e.ref(),E=e.ref(),N=e.ref(),S=e.ref();e.watch(()=>_.value.limitNum,X=>{typeof X=="string"&&(X=X.replace(/[^.\d]/g,""),X=X.replace(".",""),_.value.limitNum=X)}),e.watch(()=>p.value,X=>{L()},{immediate:!0});function V(){u.value.validateField("limitNum")}function $(X){if(X!==_.value.onlineStateFlag)return new Promise((v,ie)=>{if(r.value.length!==0&&_.value.checkScope===3&&X===1)mt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("prompt"),tipsContent:`<div><p>${x("switchingTheSpotCheckDeviceWillClearTheSelectedData")}</p><p>${x("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("cancel-0"),closeBtnType:"primary",submitBtnText:x("confirm-3"),submitBtnType:"default"},()=>{const le=A();le&&(le.clearSelectedData(),le.getData()),_.value.onlineStateFlag=X,v(0)});else{if(_.value.onlineStateFlag=X,_.value.checkScope===3){const le=A();le&&le.getData()}v(0)}})}function h(X){let v=_.value.limitNum-0;if(X===1)v+=1;else{if(v<=1){Se.error(x("atLeast1RandomDevice"));return}v-=1}_.value.limitNum=v}function g(X,v){const{checkScope:ie=3,contentState:le=3,onlineStateFlag:J=1,copyType:R=!1,wrapperClosable:G=!1,title:te=x("immediatelyInitiateARollCallSpotCheck"),selectedDataList:de=[],successfulCallback:_e=null}=v||{};if(p.value){if(le===1)if(ie===_.value.checkScope){const Ve=A();Ve&&Ve.addSelectedDataList(de)}else T(ie).then(()=>{O([],!0);const Ve=A();Ve&&Ve.addSelectedDataList(de)});else return Se.warning(x("repeat"));return}a.value=_e,l.value=G,i.value=le,c.value=te,u.value&&u.value.resetFields(),_.value={...m.value},_.value.limitNum=10,_.value.checkScope=ie,_.value.onlineStateFlag=J,le===1?de.length&&O(de,!0):O([],!0),n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},X&&typeof X=="number"?F(X,R):C(!0)}function C(X){p.value=typeof X=="boolean"?X:!p.value}function w(){u.value.clearValidate("everydayJson"),u.value.clearValidate("apDateListV2"),u.value.clearValidate("apDtmV2")}function D(X){var v;(v=T(X))==null||v.then(()=>{O([],!0)})}function T(X){if(_.value.checkScope!==X)return new Promise((v,ie)=>{r.value.length!==0?mt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("prompt"),tipsContent:`<div><p>${x("switchingTheSpotCheckRangeWillClearTheSelectedData")}</p><p>${x("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("cancel-0"),closeBtnType:"primary",submitBtnText:x("confirm-3"),submitBtnType:"default"},()=>{_.value.checkScope=X,v(0)}):(_.value.checkScope=X,v(0))})}function L(){p.value?f.value=!0:(d.value&&(clearTimeout(d.value),d.value=null),d.value=setTimeout(()=>{f.value=p.value,clearTimeout(d.value),d.value=null},500))}function A(){const X=_.value.checkScope;return X===1?k.value:X===2?b.value:X===3?E.value:null}function H(X){const{checkScope:v=1,mapRailList:ie=[],orgList:le=[],deviceIdList:J=[],deviceList:R=[]}=X||{};let G=[];return v===1&&ie.length?G=ie:v===2&&le.length?G=le:v===3&&R.length&&(G=R.map(te=>({...te,type:3}))),G||[]}function O(X,v=!1){if(r.value=X,v){const ie=A();ie&&ie.setSelectedDataList(X)}}function P(){const X=_.value.checkScope;let v="",ie=[];return X===1?(v="mapRailIdList",ie=r.value.map(le=>le.id)):X===2?(v="orgIdList",ie=r.value.map(le=>le.id)):X===3&&(v="deviceIdList",ie=r.value.map(le=>le.deviceId)),{dataList:ie,name:v}}function z(){u.value.validate(X=>{if(X){const v={..._.value};if(v.playMsg=v.playMsg?1:0,v.checkType===1){const ie=P();if(v[`${ie.name}`]=ie.dataList,ie.dataList.length===0)return Se.error(x("pleaseSelectTheSpotCheckRange"))}else v.checkScope=null;e.nextTick(()=>{i.value===2?ne(v):i.value===3?ke(v):Oe(v)})}})}function U(X){var v;X&&((v=N.value)==null||v.show(X))}function M(){O([],!0),C(!1),a.value=null}function j(){M()}function F(X,v){i.value===2?Q(X,v):i.value===3&&he(X,v)}async function Q(X,v=!1){s.value=!0;const{code:ie,data:le}=await jE({id:X});if(ie===200){const J=le;if(le.checkScope,J.taskDateType===2)J.weekDate.split(",").forEach(te=>{te=Number.parseFloat(te),te===1?n.value.everyday1=!0:te===2?n.value.everyday2=!0:te===3?n.value.everyday3=!0:te===4?n.value.everyday4=!0:te===5?n.value.everyday5=!0:te===6?n.value.everyday6=!0:te===7&&(n.value.everyday7=!0)});else if(J.taskDateType===3){const G=[];J.apDateList.forEach(te=>{G.push(te.apDtm.split(" 00:00:00")[0])}),J.apDateListV2=G}else J.taskDateType===4&&(J.apDtmV2=[J.apStartDtm,J.apEndDtm]);J.taskDateTime=[J.taskDateStartTime,J.taskDateEndTime],_.value={...J,playMsg:J.playMsg===1},v&&(_.value.id=null);const R=H(J);O(R),e.nextTick(()=>{s.value=!1,p.value||C(!0)})}}async function ne(X){if(X.taskDateStartTime=_.value.taskDateTime[0],X.taskDateEndTime=_.value.taskDateTime[1],_.value.taskDateType===2){let le="";for(const J in n.value)n.value[J]&&(le+=`${J.replace(/(^everyday)|(everyday$)/g,"")},`);if(le.length===0)return Se.error(x("pleaseSelectASpecificWeek"));X.weekDate=le.substring(le.length-1,0)}else if(_.value.taskDateType===3){if(!_.value.apDateListV2||_.value.apDateListV2.length===0)return Se.error(x("pleaseSelectADate"));X.apDateList=_.value.apDateListV2.map(le=>({apDtm:`${le} 00:00:00`}))}else if(_.value.taskDateType===4){if(!_.value.apDtmV2||_.value.apDtmV2.length===0)return Se.error(x("pleaseSelectATimePeriod"));X.apStartDtm=`${_.value.apDtmV2[0]} 00:00:00`,X.apEndDtm=`${_.value.apDtmV2[1]} 00:00:00`}const{code:v,data:ie={}}=await YE(X);v===200&&(Se.success(x("operationSuccessful")),t("on-submit"),a.value&&a.value(),M())}async function Te(){const{id:X}=await S.value.show({checkStyle:i.value===2?1:null});X&&(u.value&&u.value.resetFields(),_.value={...m.value},n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},r.value=[],await he(X,!0),Se.success(x("templateApplied")))}async function he(X,v=!1){s.value=!0;const{code:ie,data:le}=await GE({id:X});if(ie===200){_.value={...le,playMsg:le.playMsg===1},v&&(_.value.id=null);const J=H(_.value);O(J),e.nextTick(()=>{s.value=!1,p.value||C(!0)})}}async function ke(X){const{code:v}=await qE(X);v===200&&(Se.success(x("operationSuccessful")),t("on-submit"),a.value&&a.value(),M())}async function Oe(X){const{code:v,data:ie={}}=await KE(X);v===200&&(Se.success(x("operationSuccessful")),a.value&&a.value(),t("on-submit"),U(ie.id),M())}return{dialogVisible:p,animationVisible:f,animationTime:d,setDialogVisible:C,setAnimationVisible:L,setCheckScope:T,setSelectedDataList:O,getSelectedDataList:P,onSubmit:z,viewSpotCheckShow:U,close:M,onClose:j,detail:F,selectTemplateShow:Te,taskDateTypeFn:w,changeCheckScope:D,everydayJson:n,formRef:u,loading:s,selectElectronicFenceRef:k,selectDepartmentRef:b,selectDeviceRef:E,selectTemplateRef:S,viewSpotCheckRef:N,contentState:i,title:c,wrapperClosable:l,form:_,rules:y,$t:x,changeOnlineStateFlag:$,blurLimitNum:V,setRandomNumber:h,selectedDataList:r,show:g}}const Fe=t=>(e.pushScopeId("data-v-1e4e7e93"),t=t(),e.popScopeId(),t),a$={key:0,class:"fixed top-0 left-0 bg-[rgba(0,0,0,0.5)] w-full h-full z-[100]"},s$={class:"w-[1080px] h-full"},l$={class:"w-full h-full px-[20px] box-border flex flex-col text-hy-text-main text-xs"},r$={class:"flex justify-between items-center h-[60px]"},i$={class:"font-bold text-lg"},c$=["element-loading-text"],d$={key:0,class:"flex mb-2 flex-shrink-0 rounded bg-backgroundv2 px-3 pt-2 h-[90px] box-border items-center"},p$={class:"text-sm h-[30px] flex items-center"},f$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),m$={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"},h$={class:"flex-1 mr-4"},u$={class:"text-sm h-[30px] flex items-center"},_$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),g$={class:"text-sm h-[30px] flex items-center"},y$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),x$={class:"everydayBox leading-[20px]"},k$={class:"text-xs"},N$={class:"text-xs"},b$={class:"text-xs"},C$={class:"text-xs"},w$={class:"text-xs"},E$={class:"text-xs"},S$={class:"text-xs"},T$={class:"text-sm h-[30px] flex items-center"},D$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),V$={class:"w-full"},$$={class:"text-sm h-[30px] flex items-center"},B$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),I$={class:"flex-1 min-w-[220px]"},A$={class:"text-sm h-[30px] flex items-center"},L$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),F$={class:"flex items-center flex-grow h-0"},O$={class:"flex-grow w-0 h-full flex flex-col"},R$={class:"flex"},P$={class:"text-sm h-[30px] flex items-center"},M$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),U$={class:"text-sm h-[30px] flex items-center"},z$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),W$={class:"text-sm h-[30px] flex items-center"},H$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),j$={class:"test h-[32px] flex border border-hy-border-2 rounded box-border overflow-hidden bg-hy-dialog-bg-2 w-full"},Y$={class:"flex-grow w-0 box-border px-1 flex items-center justify-center"},G$=["placeholder"],q$={class:"flex flex-col w-[32px] text-auxiliary border-l border-hy-border-2"},K$={class:"text-sm h-[30px] flex items-center"},X$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),J$={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"},Z$={class:"tac text-hy-text-secondary text-center"},Q$={class:"mt_10 mt-[10px]"},v$={class:""},e2={class:"mt-1"},t2={class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},n2={class:"flex justify-between h-[40px] items-center"},o2={class:"fs_12 p-[10px_20px] text-[12px]"},a2={class:"r-f mb_10 flex mb-[10px]"},s2=Fe(()=>e.createElementVNode("span",null,"1、",-1)),l2={class:"r-f mb_10 flex mb-[10px]"},r2=Fe(()=>e.createElementVNode("span",null,"2、",-1)),i2={class:"r-f mb_10 flex mb-[10px]"},c2=Fe(()=>e.createElementVNode("span",null,"3、",-1)),d2={class:"fs_12 cursor_pointer !text-hy-text-primary cursor-pointer text-[12px]"},p2={class:"flex-grow h-0 flex"},f2={class:"flex-1"},m2=Fe(()=>e.createElementVNode("div",{class:"mx-[20px] w-[2px] h-[96%] rounded bg-hy-border-2 flex-shrink-0"},null,-1)),h2={class:"w-[33%] h-full flex flex-col"},u2={class:"text-sm h-[30px] flex items-center"},_2=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),g2={class:"text-sm h-[30px] flex items-center"},y2=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),x2={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"},k2={class:"tac text-hy-text-secondary text-center"},N2={class:"mt-[10px]"},b2={class:"mt-1"},C2={key:0,class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},w2={class:"flex-grow h-0"},E2={class:"text-xs"},S2={class:"mb-2"},T2={class:"text-sm h-[30px] flex items-center"},D2=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),V2={class:"mb-2"},$2={class:"text-sm h-[30px] flex items-center"},B2=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),I2={class:"flex items-center justify-between h-[80px]"},A2={class:"text-hy-text-secondary flex items-center"},L2=be(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:f,rules:m,contentState:_,taskDateTypeFn:y,everydayJson:u,changeOnlineStateFlag:k,blurLimitNum:b,setRandomNumber:E,changeCheckScope:N,selectedDataList:S,setSelectedDataList:V,selectTemplateShow:$,onSubmit:h,selectElectronicFenceRef:g,selectDepartmentRef:C,selectDeviceRef:w,selectTemplateRef:D,viewSpotCheckRef:T,show:L,formRef:A}=o$({emit:a});return n({show:L}),(H,O)=>{const P=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-input"),U=e.resolveComponent("el-form-item"),M=e.resolveComponent("el-option"),j=e.resolveComponent("el-select"),F=e.resolveComponent("el-checkbox"),Q=e.resolveComponent("el-date-picker"),ne=e.resolveComponent("el-time-picker"),Te=RE,he=e.resolveComponent("el-icon"),ke=AE,Oe=e.resolveComponent("el-popover"),X=e.resolveComponent("el-form"),v=$t,ie=e.resolveComponent("el-button"),le=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",null,[e.unref(r)&&e.unref(l)?(e.openBlock(),e.createElementBlock("div",a$)):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",s$,[e.createElementVNode("div",l$,[e.createElementVNode("div",r$,[e.createElementVNode("div",i$,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(X,{ref_key:"formRef",ref:A,model:e.unref(f),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",d$,[e.createVNode(U,{prop:"templateName",class:"w-full"},{default:e.withCtx(()=>[e.createElementVNode("div",p$,[e.createTextVNode(e.toDisplayString(e.unref(s)("templateName")),1),f$]),e.createVNode(z,{modelValue:e.unref(f).templateName,"onUpdate:modelValue":O[0]||(O[0]=J=>e.unref(f).templateName=J),placeholder:e.unref(s)("pleaseEnterTheTemplateName"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})])):e.unref(_)===2?(e.openBlock(),e.createElementBlock("div",m$,[e.createElementVNode("div",h$,[e.createVNode(U,{prop:"taskDateType"},{default:e.withCtx(()=>[e.createElementVNode("div",u$,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionDate")),1),_$]),e.createVNode(j,{modelValue:e.unref(f).taskDateType,"onUpdate:modelValue":O[1]||(O[1]=J=>e.unref(f).taskDateType=J),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheExecutionDate"),onChange:e.unref(y)},{default:e.withCtx(()=>[e.createVNode(M,{label:e.unref(s)("everyday"),value:1},null,8,["label"]),e.createVNode(M,{label:e.unref(s)("specifyAWeek"),value:2},null,8,["label"]),e.createVNode(M,{label:e.unref(s)("specifyADate"),value:3},null,8,["label"]),e.createVNode(M,{label:e.unref(s)("specifyATimePeriod"),value:4},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])]),_:1})]),e.createElementVNode("div",null,[e.unref(f).taskDateType===2?(e.openBlock(),e.createBlock(U,{key:0,prop:"everydayJson",class:"max-w-[360px]"},{default:e.withCtx(()=>[e.createElementVNode("div",g$,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyAWeek")),1),y$]),e.createElementVNode("div",x$,[e.createVNode(F,{modelValue:e.unref(u).everyday1,"onUpdate:modelValue":O[2]||(O[2]=J=>e.unref(u).everyday1=J)},{default:e.withCtx(()=>[e.createElementVNode("span",k$,e.toDisplayString(e.unref(s)("monday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(u).everyday2,"onUpdate:modelValue":O[3]||(O[3]=J=>e.unref(u).everyday2=J)},{default:e.withCtx(()=>[e.createElementVNode("span",N$,e.toDisplayString(e.unref(s)("tuesday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(u).everyday3,"onUpdate:modelValue":O[4]||(O[4]=J=>e.unref(u).everyday3=J)},{default:e.withCtx(()=>[e.createElementVNode("span",b$,e.toDisplayString(e.unref(s)("wednesday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(u).everyday4,"onUpdate:modelValue":O[5]||(O[5]=J=>e.unref(u).everyday4=J)},{default:e.withCtx(()=>[e.createElementVNode("span",C$,e.toDisplayString(e.unref(s)("thursday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(u).everyday5,"onUpdate:modelValue":O[6]||(O[6]=J=>e.unref(u).everyday5=J)},{default:e.withCtx(()=>[e.createElementVNode("span",w$,e.toDisplayString(e.unref(s)("friday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(u).everyday6,"onUpdate:modelValue":O[7]||(O[7]=J=>e.unref(u).everyday6=J)},{default:e.withCtx(()=>[e.createElementVNode("span",E$,e.toDisplayString(e.unref(s)("saturday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(u).everyday7,"onUpdate:modelValue":O[8]||(O[8]=J=>e.unref(u).everyday7=J)},{default:e.withCtx(()=>[e.createElementVNode("span",S$,e.toDisplayString(e.unref(s)("sunday")),1)]),_:1},8,["modelValue"])])]),_:1})):e.unref(f).taskDateType===3?(e.openBlock(),e.createBlock(U,{key:1,prop:"apDateListV2",class:"mr-4"},{default:e.withCtx(()=>[e.createElementVNode("div",T$,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyADate")),1),D$]),e.createElementVNode("div",V$,[e.createVNode(Q,{modelValue:e.unref(f).apDateListV2,"onUpdate:modelValue":O[9]||(O[9]=J=>e.unref(f).apDateListV2=J),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(f).taskDateType===4?(e.openBlock(),e.createBlock(U,{key:2,prop:"apDtmV2",class:"mr-4 w-[340px]"},{default:e.withCtx(()=>[e.createElementVNode("div",$$,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyATimePeriod")),1),B$]),e.createElementVNode("div",null,[e.createVNode(Q,{modelValue:e.unref(f).apDtmV2,"onUpdate:modelValue":O[10]||(O[10]=J=>e.unref(f).apDtmV2=J),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",I$,[e.createVNode(U,{prop:"taskDateTime"},{default:e.withCtx(()=>[e.createElementVNode("div",A$,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionTime-0")),1),L$]),e.createVNode(ne,{modelValue:e.unref(f).taskDateTime,"onUpdate:modelValue":O[11]||(O[11]=J=>e.unref(f).taskDateTime=J),"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",F$,[e.createElementVNode("div",O$,[e.createElementVNode("div",R$,[e.createVNode(U,{class:"flex-1"},{default:e.withCtx(()=>[e.createElementVNode("div",P$,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckType")),1),M$]),e.createVNode(j,{modelValue:e.unref(f).checkType,"onUpdate:modelValue":O[12]||(O[12]=J=>e.unref(f).checkType=J),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheSpotCheckType")},{default:e.withCtx(()=>[e.createVNode(M,{label:e.unref(s)("rangeCheck"),value:1},null,8,["label"]),e.createVNode(M,{label:e.unref(s)("randomCheck"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),_:1}),e.createVNode(U,{class:"flex-1 ml-1 pl-1"},{default:e.withCtx(()=>[e.createElementVNode("div",U$,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckDevice")),1),z$]),e.createVNode(j,{"model-value":e.unref(f).onlineStateFlag,class:"w-full",placeholder:e.unref(s)("pleaseSelectTheSpotCheckDevice"),onChange:e.unref(k)},{default:e.withCtx(()=>[e.createVNode(M,{label:e.unref(s)("spotCheckOnlyOnlineDevices"),value:1},null,8,["label"]),e.createVNode(M,{label:e.unref(s)("spotCheckAllDevices"),value:2},null,8,["label"])]),_:1},8,["model-value","placeholder","onChange"])]),_:1}),e.unref(f).checkType===2?(e.openBlock(),e.createBlock(U,{key:0,class:"flex-1 ml-1 pl-1",prop:"limitNum"},{default:e.withCtx(()=>[e.createElementVNode("div",W$,[e.createTextVNode(e.toDisplayString(e.unref(s)("randomNumber")),1),H$]),e.createElementVNode("div",j$,[e.createElementVNode("div",Y$,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":O[13]||(O[13]=J=>e.unref(f).limitNum=J),type:"text",style:{outline:"none"},class:"bg-hy-dialog-bg-2 w-full h-full",placeholder:e.unref(s)("pleaseEnterTheRandomNumber"),onBlur:O[14]||(O[14]=(...J)=>e.unref(b)&&e.unref(b)(...J))},null,40,G$),[[e.vModelText,e.unref(f).limitNum]])]),e.createElementVNode("div",q$,[e.createElementVNode("div",{class:"flex-1 flex items-center justify-center clickBox cursor-pointer",onClick:O[15]||(O[15]=J=>e.unref(E)(1))},[e.createVNode(he,null,{default:e.withCtx(()=>[e.createVNode(Te)]),_:1})]),e.createElementVNode("div",{class:"flex-1 border-t border-hy-border-2 flex items-center justify-center cursor-pointer clickBox",onClick:O[16]||(O[16]=J=>e.unref(E)(2))},[e.createVNode(he,null,{default:e.withCtx(()=>[e.createVNode(ke)]),_:1})])])])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",K$,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckRange")),1),X$]),e.withDirectives(e.createElementVNode("div",J$,[e.createElementVNode("div",Z$,[e.createVNode(P,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",Q$,[e.createElementVNode("p",v$,e.toDisplayString(e.unref(s)("youDoNotNeedToSelectARangeAndDeviceForRandomCheck")),1),e.createElementVNode("p",e2,e.toDisplayString(e.unref(s)("theSystemWillHelpYouSelectRandomly")),1)])])],512),[[e.vShow,e.unref(f).checkType===2]]),e.withDirectives(e.createElementVNode("div",t2,[e.createElementVNode("div",n2,[e.createElementVNode("div",null,[e.createVNode(j,{"model-value":e.unref(f).checkScope,class:"w-[160px]",placeholder:e.unref(s)("pleaseSelect"),onChange:e.unref(N)},{default:e.withCtx(()=>[e.createVNode(M,{label:e.unref(s)("selectAnArea"),value:1},null,8,["label"]),e.createVNode(M,{label:e.unref(s)("selectADepartment"),value:2},null,8,["label"]),e.createVNode(M,{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",d2,[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",o2,[e.createElementVNode("li",a2,[s2,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea")),1)]),e.createElementVNode("li",l2,[r2,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment")),1)]),e.createElementVNode("li",i2,[c2,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck")),1)])])]),_:1})])]),e.createElementVNode("div",p2,[e.createElementVNode("div",f2,[e.unref(f).checkScope===1?(e.openBlock(),e.createBlock(JV,{key:0,ref_key:"selectElectronicFenceRef",ref:g,"init-selected-data-list":e.unref(S),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(f).checkScope===2?(e.openBlock(),e.createBlock(lV,{key:1,ref_key:"selectDepartmentRef",ref:C,"init-selected-data-list":e.unref(S),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(f).checkScope===3?(e.openBlock(),e.createBlock(EV,{key:2,ref_key:"selectDeviceRef",ref:w,"init-selected-data-list":e.unref(S),"online-state-flag":e.unref(f).onlineStateFlag,onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","online-state-flag","onOnSelectedDataList"])):e.createCommentVNode("",!0)])])],512),[[e.vShow,e.unref(f).checkType===1]])]),m2,e.createElementVNode("div",h2,[e.createVNode(U,null,{default:e.withCtx(()=>[e.createElementVNode("div",u2,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckMethod")),1),_2]),e.createVNode(j,{modelValue:e.unref(f).checkStyle,"onUpdate:modelValue":O[17]||(O[17]=J=>e.unref(f).checkStyle=J),class:"w-full",disabled:e.unref(_)===2,placeholder:e.unref(s)("pleaseSelectTheSpotCheckMethod")},{default:e.withCtx(()=>[e.createVNode(M,{label:e.unref(s)("message"),value:1},null,8,["label"]),e.createVNode(M,{label:e.unref(s)("call"),value:2},null,8,["label"])]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),e.createElementVNode("div",g2,[e.createTextVNode(e.toDisplayString(e.unref(s)("messageContent")),1),y2]),e.withDirectives(e.createElementVNode("div",x2,[e.createElementVNode("div",k2,[e.createVNode(P,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",N2,[e.createElementVNode("p",null,e.toDisplayString(e.unref(s)("callDoesNotRequireYouToEnterTheMessageContent")),1),e.createElementVNode("p",b2,e.toDisplayString(e.unref(s)("spotCheckWillBeConductedByIntercomAnswering")),1)])])],512),[[e.vShow,e.unref(f).checkStyle===2]]),e.unref(f).checkStyle===1?(e.openBlock(),e.createElementBlock("div",C2,[e.createElementVNode("div",w2,[e.createVNode(U,{prop:"msgContent"},{default:e.withCtx(()=>[e.createVNode(z,{modelValue:e.unref(f).msgContent,"onUpdate:modelValue":O[18]||(O[18]=J=>e.unref(f).msgContent=J),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(F,{modelValue:e.unref(f).playMsg,"onUpdate:modelValue":O[19]||(O[19]=J=>e.unref(f).playMsg=J)},{default:e.withCtx(()=>[e.createElementVNode("span",E2,e.toDisplayString(e.unref(s)("requiresTTSVoiceBroadcastOnTheDevice")),1)]),_:1},8,["modelValue"])]),e.createElementVNode("div",S2,[e.createElementVNode("div",T2,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerMethod")),1),D2]),e.createVNode(j,{modelValue:e.unref(f).actionType,"onUpdate:modelValue":O[20]||(O[20]=J=>e.unref(f).actionType=J),class:"w-full",placeholder:e.unref(s)("pleaseSelect")},{default:e.withCtx(()=>[e.createVNode(M,{label:e.unref(s)("punchIn"),value:1},null,8,["label"]),e.createVNode(M,{label:e.unref(s)("reply"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",V2,[e.createElementVNode("div",$2,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerTime")),1),B2]),e.createVNode(j,{modelValue:e.unref(f).actionTime,"onUpdate:modelValue":O[21]||(O[21]=J=>e.unref(f).actionTime=J),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheAnswerTime")},{default:e.withCtx(()=>[e.createVNode(M,{label:"5s",value:5}),e.createVNode(M,{label:"10s",value:10}),e.createVNode(M,{label:"15s",value:15}),e.createVNode(M,{label:"30s",value:30}),e.createVNode(M,{label:"60s",value:60})]),_:1},8,["modelValue","placeholder"])])])):e.createCommentVNode("",!0)])])]),_:1},8,["model","rules"])],8,c$)),[[le,e.unref(d)]]),e.createElementVNode("div",I2,[e.createElementVNode("div",A2,[e.createVNode(he,{class:"text-sm mr-1"},{default:e.withCtx(()=>[e.createVNode(v)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("youCanApplyTheSpotCheckTemplateToQuicklyFillInTheContent")),1)]),e.createElementVNode("div",null,[e.unref(_)!==3?(e.openBlock(),e.createBlock(ie,{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(ie,{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(ie,{class:"button_function buttonBox",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("confirm")),1)]),_:1},8,["onClick"])])])])]),e.createVNode(n$,{ref_key:"selectTemplateRef",ref:D},null,512)],2)):e.createCommentVNode("",!0),e.createVNode(zD,{ref_key:"viewSpotCheckRef",ref:T},null,512)])}}}),[["__scopeId","data-v-1e4e7e93"]]);function F2(t){return oe.post({url:"orgGroup/detail",data:t,isFormData:!0})}function O2(){const t=e.ref({}),n=e.ref(null),o=e.ref({}),a=e.ref(1),s=e.ref([{label:x("spotCheckInformation"),value:1},{label:x("spotCheckStatus"),value:2}]),l=e.ref(0),r=e.ref([{label:x("all"),value:0},{label:x("completed-0"),value:3},{label:x("uncompleted-0"),value:4}]),i=e.ref([]),c=e.ref([]),p=e.ref(!1),d=e.ref(),f=e.computed(()=>{const h=r.value.findIndex(g=>g.value===l.value);return h!==-1?Math.ceil(h*(100/r.value.length)):0}),m=e.computed(()=>{const h=s.value.findIndex(g=>g.value===a.value);return h!==-1?Math.ceil(h*(100/s.value.length)):0});async function _(h){if(!h)return;const{code:g,data:C}=await F2({id:h});g===200&&(o.value=C)}function y(){var h;(h=d.value)==null||h.getData(l.value)}function u(h){l.value=h,e.nextTick(()=>{y()})}function k(h){a.value=h}function b(h){}function E(h={}){const{beReceiveNum:g=0,receivingNum:C=0,finishNum:w=0,notFinishNum:D=0}=h;t.value.beReceiveNum=g,t.value.receivingNum=C,t.value.finishNum=w,t.value.notFinishNum=D}function N(h=[]){}function S(h){t.value={actionType:1,id:12},k(1),u(0),V(h),p.value=!0}async function V(h){const{code:g,data:C={}}=await Br({id:h,getMapRail:1,getOrg:1});g===200&&(t.value=C,i.value=C.orgNameList||[],c.value=C.railNameList||[],t.value.checkNum,e.nextTick(()=>{C.checkStyle===2&&(n.value=C.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:f,navigationStatusProgress:m,setCheckStatus:u,setNavigationStatus:k,setLoading:b,spotCheckTaskDeviceCountStatus:E,spotCheckTaskDeviceChange:N,show:S,detail:V,close:$}}const R2={class:"deleteBox c_fff text-hy-text-main"},P2={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]"},M2={class:"dialog_body pb-[30px] h-[60vh] flex flex-col text-main text-xs !px-0"},U2={class:"flex items-center justify-center mb-[16px]"},z2={class:"relative flex-shrink-0"},W2={class:"relative text-sm h-[36px] !leading-[36px] text-center border border-hy-bg-2 rounded text-hy-text-secondary flex overflow-hidden"},H2=["onClick"],j2={class:"flex flex-grow h-0 px-4 box-border"},Y2={class:"w-full h-full box-border px-2"},G2={class:"w-full h-full bg-hy-dialog-bg-2 rounded px-3 py-1 box-border overflow-x-hidden overflow-y-auto"},q2={class:"mb-2"},K2={class:"text-hy-text-secondary h-[30px] leading-[30px]"},X2={class:"text-hy-text-secondary"},J2={class:"mb-2"},Z2={class:"text-hy-text-secondary h-[30px] leading-[30px]"},Q2={class:"mb-2"},v2={class:"text-hy-text-secondary h-[30px] leading-[30px]"},eB={class:"mb-2"},tB={class:"text-hy-text-secondary h-[30px] leading-[30px]"},nB={class:"mb-2"},oB={class:"text-hy-text-secondary h-[30px] leading-[30px]"},aB={key:0,class:"mb-2"},sB={class:"text-hy-text-secondary h-[30px] leading-[30px]"},lB={key:0},rB={key:1},iB={key:2},cB={key:0},dB={key:0},pB={key:1},fB={key:0},mB={key:2},hB={key:1,class:"mb-2"},uB={class:"text-hy-text-secondary h-[30px] leading-[30px]"},_B={key:0,class:"py-1 box-border h-full bg-hy-dialog-bg-3 rounded"},gB={class:"w-full h-[34px] px-2 box-border flex justify-between items-center"},yB={key:0,class:"ml-2 border-[2px] box-border border-hy-border-2 flex items-center justify-center h-[26px] px-2 rounded"},xB={class:"h-[40%] box-border px-2 mt-1"},kB={class:"w-full h-full box-border bg-hy-dialog-bg-2 rounded p-2 overflow-y-auto overflow-x-hidden"},NB={class:"flex px-2 mt-1"},bB={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center mr-2"},CB={class:"text-hy-text-secondary"},wB={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center"},EB={class:"text-hy-text-secondary"},SB={class:"font-bold"},TB={key:1,class:"h-full py-1 bg-hy-dialog-bg-3 rounded"},DB={class:"w-full h-full flex items-center justify-center text-hy-text-secondary box-border"},VB={class:"r-f tac flex flex-col items-center justify-center text-center text-sm"},$B={class:"mt-3"},BB={class:"mt-1"},IB={class:"flex flex-grow h-0 px-4 box-border"},AB={class:"text-xs px-2 leading-[22px]"},LB={class:"flex w-full"},FB={class:"flex-shrink-0"},OB={class:"text-right font-bold flex-grow w-0"},RB={class:"flex w-full"},PB={class:"flex-shrink-0 tracking-[4px]"},MB={class:"text-right font-bold flex-grow w-0"},UB={class:"flex w-full"},zB={class:"flex-shrink-0 tracking-[4px]"},WB={class:"text-right font-bold flex-grow w-0"},HB={class:"flex w-full"},jB={class:"flex-shrink-0 tracking-[4px]"},YB={class:"text-right font-bold flex-grow w-0 text-hy-success"},GB={class:"flex w-full"},qB={class:"flex-shrink-0 tracking-[4px]"},KB={class:"text-right font-bold flex-grow w-0 text-hy-danger"},XB={class:"flex-1 flex"},JB={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},ZB={class:"flex-grow w-0 text-center truncate"},QB={class:"flex-1 flex"},vB={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},eI={class:"flex-grow w-0 text-center text-hy-success truncate"},tI={class:"flex-1 flex"},nI={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},oI={class:"flex-grow w-0 text-center text-hy-danger truncate"},aI={class:"relative mt-3 mb-2 min-w-[160px]"},sI={class:"relative h-[26px] !leading-[26px] text-center border border-hy-border-2 rounded text-hy-text-secondary text-xs flex overflow-hidden"},lI=["onClick"],rI={class:"flex-grow h-0 px-2 overflow-x-hidden overflow-y-auto"},iI=e.createElementVNode("div",{class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},null,-1),cI={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"},dI={class:"r-f tac flex flex-col justify-center items-center"},pI={class:"mt-3 text-sm"},fI=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:f,orgNameList:m,railNameList:_,setCheckStatus:y,setNavigationStatus:u,spotCheckTaskDeviceChange:k,spotCheckTaskDeviceCountStatus:b,show:E,spotCheckTaskDeviceRef:N}=O2();return n({show:E}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-col"),g=e.resolveComponent("el-row"),C=e.resolveComponent("el-popover"),w=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(w,{modelValue:e.unref(o),"onUpdate:modelValue":V[1]||(V[1]=D=>e.isRef(o)?o.value=D: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",R2,[e.createElementVNode("div",P2,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("spotCheckDetails")),1),e.createElementVNode("div",{class:"iconCloseBox clickBox closeBox absolute top-[-2px] right-[-2px] cursor-pointer",onClick:V[0]||(V[0]=(...D)=>e.unref(r)&&e.unref(r)(...D))},[e.createVNode($,{name:"icon-close",width:"26",height:"26","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",M2,[e.createElementVNode("div",U2,[e.createElementVNode("div",z2,[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",W2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(D,T)=>(e.openBlock(),e.createElementBlock("li",{key:T,class:e.normalizeClass([{"text-hy-text-main font-bold":D.value===e.unref(p)},"clickBox cursor-pointer px-2 w-[96px] box-border"]),onClick:L=>e.unref(u)(D.value)},e.toDisplayString(D.label),11,H2))),128))])])]),e.withDirectives(e.createElementVNode("div",j2,[e.createVNode(g,{gutter:8,class:"w-full h-full"},{default:e.withCtx(()=>[e.createVNode(h,{span:8,class:"h-full"},{default:e.withCtx(()=>[e.createElementVNode("div",Y2,[e.createElementVNode("div",G2,[e.createElementVNode("div",q2,[e.createElementVNode("div",K2,e.toDisplayString(e.unref(x)("spotCheckPersonnel")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(i).name)+" ",1),e.createElementVNode("span",X2," ("+e.toDisplayString(e.unref(i).jobNum)+")",1)])]),e.createElementVNode("div",J2,[e.createElementVNode("div",Z2,e.toDisplayString(e.unref(x)("department")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).orgName),1)]),e.createElementVNode("div",Q2,[e.createElementVNode("div",v2,e.toDisplayString(e.unref(x)("spotCheckTime")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkDtm),1)]),e.createElementVNode("div",eB,[e.createElementVNode("div",tB,e.toDisplayString(e.unref(x)("spotCheckType")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkType===1?e.unref(x)("rangeCheck"):e.unref(x)("randomCheck")),1)]),e.createElementVNode("div",nB,[e.createElementVNode("div",oB,e.toDisplayString(e.unref(x)("spotCheckMethod")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkStyle===1?e.unref(x)("message"):e.unref(x)("call")),1)]),e.unref(i).checkType===1?(e.openBlock(),e.createElementBlock("div",aB,[e.createElementVNode("div",sB,[e.createTextVNode(e.toDisplayString(e.unref(x)("samplingScope"))+" ",1),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("span",lB,e.toDisplayString(e.unref(x)("regionalSpotCheck")),1)):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("span",rB,e.toDisplayString(e.unref(x)("departmentSpotCheck")),1)):e.unref(i).checkScope===3?(e.openBlock(),e.createElementBlock("span",iB,e.toDisplayString(e.unref(x)("deviceSpotCheck")),1)):e.createCommentVNode("",!0),e.createTextVNode(" ) ")]),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("div",cB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(D,T)=>(e.openBlock(),e.createElementBlock("span",{key:`${T}_orgNameList`},[e.createTextVNode(e.toDisplayString(D)+" ",1),T!==e.unref(_).length-1?(e.openBlock(),e.createElementBlock("span",dB,"、")):e.createCommentVNode("",!0)]))),128))])):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("div",pB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(D,T)=>(e.openBlock(),e.createElementBlock("span",{key:`${T}_orgNameList`},[e.createTextVNode(e.toDisplayString(D)+" ",1),T!==e.unref(m).length-1?(e.openBlock(),e.createElementBlock("span",fB,"、")):e.createCommentVNode("",!0)]))),128))])):(e.openBlock(),e.createElementBlock("div",mB,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).checkNum||0)+" "+e.toDisplayString(e.unref(x)("device")),1)]))])):(e.openBlock(),e.createElementBlock("div",hB,[e.createElementVNode("div",uB,[e.createTextVNode(e.toDisplayString(e.unref(x)("samplingScope"))+" ",1),e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("randomCheck")),1),e.createTextVNode(" ) ")]),e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).limitNum||0)+" "+e.toDisplayString(e.unref(x)("device")),1)])]))])])]),_:1}),e.createVNode(h,{span:16,class:"h-full"},{default:e.withCtx(()=>[e.unref(i).checkStyle===1?(e.openBlock(),e.createElementBlock("div",_B,[e.createElementVNode("div",gB,[e.createElementVNode("div",null,e.toDisplayString(e.unref(x)("messageContent")),1),e.unref(i).playMsg===1?(e.openBlock(),e.createElementBlock("div",yB," TTS"+e.toDisplayString(e.unref(x)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",xB,[e.createElementVNode("div",kB,e.toDisplayString(e.unref(i).msgContent),1)]),e.createElementVNode("div",NB,[e.createElementVNode("div",bB,[e.createElementVNode("div",CB,e.toDisplayString(e.unref(x)("answerMethod")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(i).actionType===1?e.unref(x)("punchIn"):e.unref(x)("reply")),1)]),e.createElementVNode("div",wB,[e.createElementVNode("div",EB,e.toDisplayString(e.unref(x)("answerTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",SB,e.toDisplayString(e.unref(i).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("second")),1)])])])])):(e.openBlock(),e.createElementBlock("div",TB,[e.createElementVNode("div",DB,[e.createElementVNode("div",VB,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",$B,e.toDisplayString(e.unref(x)("callSpotCheck")),1),e.createElementVNode("div",BB,e.toDisplayString(e.unref(x)("backupWillBeCheckedByIntercomAnswering")),1)])])]))]),_:1})]),_:1})],512),[[e.vShow,e.unref(p)===1]]),e.withDirectives(e.createElementVNode("div",IB,[e.unref(i).checkNum!==0?(e.openBlock(),e.createBlock(g,{key:0,gutter:8,class:"w-full h-full"},{default:e.withCtx(()=>[e.createVNode(h,{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(C,{"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",XB,[e.createElementVNode("div",JB,[e.createVNode($,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",ZB,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("div",QB,[e.createElementVNode("div",vB,[e.createVNode($,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),e.createElementVNode("div",eI,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("div",tI,[e.createElementVNode("div",nI,[e.createVNode($,{name:"base-danger-state","class-name":"w-[16px] h-[16px] text-hy-danger"})]),e.createElementVNode("div",oI,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])],2)])]),default:e.withCtx(()=>[e.createElementVNode("ul",AB,[e.createElementVNode("li",LB,[e.createElementVNode("span",FB,e.toDisplayString(e.unref(x)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",OB,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("li",RB,[e.createElementVNode("span",PB,e.toDisplayString(e.unref(x)("waitingToReceive")),1),e.createElementVNode("div",MB,e.toDisplayString(e.unref(i).beReceiveNum||"- -"),1)]),e.createElementVNode("li",UB,[e.createElementVNode("span",zB,e.toDisplayString(e.unref(x)("receiving")),1),e.createElementVNode("div",WB,e.toDisplayString(e.unref(i).receivingNum||"- -"),1)]),e.createElementVNode("li",HB,[e.createElementVNode("span",jB,e.toDisplayString(e.unref(x)("completed")),1),e.createElementVNode("div",YB,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("li",GB,[e.createElementVNode("span",qB,e.toDisplayString(e.unref(x)("uncompleted")),1),e.createElementVNode("div",KB,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])])]),_:1}),e.createElementVNode("div",aI,[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",sI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(D,T)=>(e.openBlock(),e.createElementBlock("li",{key:`${T}_checkStatusList`,class:e.normalizeClass([{"text-hy-text-main":D.value===e.unref(a)},"flex-1 cursor-pointer hover:opacity-60"]),onClick:L=>e.unref(y)(D.value)},e.toDisplayString(D.label),11,lI))),128))])])],2),e.createElementVNode("div",rI,[e.unref(i).id?(e.openBlock(),e.createBlock(da,{key:0,ref_key:"spotCheckTaskDeviceRef",ref:N,"params-span":e.unref(i).actionType===1?8:24,form:e.unref(i),"subscribe-status":!1,onChange:e.unref(k),onOnCountStatus:e.unref(b)},null,8,["params-span","form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)])]),_:1},8,["span"]),e.unref(i).actionType!==1?(e.openBlock(),e.createBlock(h,{key:0,span:16,class:"h-full"},{default:e.withCtx(()=>[iI]),_:1})):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createElementBlock("div",cI,[e.createElementVNode("div",dI,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",pI,e.toDisplayString(e.unref(x)("noDeviceSupportsThisSpotCheck")),1)])]))],512),[[e.vShow,e.unref(p)===2]])])])]),_:1},8,["modelValue"])}}});function mI(){const t=e.ref(!1),n=e.ref(),{H:o,POI:a,isShowMap:s,layersUrlList:l,mapConfig:r}=qt(),i=e.shallowRef(),c=e.shallowRef();e.ref();const p=e.ref(""),d=[{label:"地理地址",value:1},{label:"部门名称",value:4}];function f({mapRailId:u}){n.value=u,t.value=!0,y()}function m(){t.value=!1}async function _(){p.value=null;const u=await $r({id:n.value});if(u.code===200){const k=u.data.pointList;p.value=u.data.railName;const b=[];k.forEach(E=>{b.push([E.lat,E.lng])}),c.value=o.polygon(i.value,b,{weight:6,color:"#FF33FF",opacity:.2,fillColor:"#1791fc",fillOpacity:.4}),o.fitBounds(i.value,b)}}function y(){e.nextTick(async()=>{let u=[];const k=je.getCache("userInfo");k.lng&&k.lat&&(u=[k.lat,k.lng]),u.length===0&&(u=null),i.value=await o.map("locationArea_container",{maxZoom:r.maxZoom||18,minZoom:r.minZoom||13,zoom:r.zoom||13,center:u,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:l,layerType:r.satelliteMap||1}),i.value.on("complete",()=>{_()})})}return{dialogVisible:t,show:f,close:m,railName:p,POI:a,map:i,H:o,searchTypes:d}}const hI=t=>(e.pushScopeId("data-v-dc7c010e"),t=t(),e.popScopeId(),t),uI={class:"w-full h-[560px] relative p-[10px] box-border"},_I=hI(()=>e.createElementVNode("div",{class:"w-full h-full relative z-[1]",draggable:"false"},[e.createElementVNode("div",{id:"locationArea_container",class:"w-[880px] h-full"})],-1)),gI={class:"absolute top-[20px] right-[20px] w-[300px] z-10"},yI={class:"w-[96%] h-[40px] rounded-[4px] bg-hy-dialog-bg-2 shadow-[0_0_8px_0_var(--hy-dialog-bg-2)] box-border p-[0_20px_0_40px] flex justify-between items-center text-[14px] absolute z-10 bottom-[20px] left-1/2 transform -translate-x-1/2 text-hy-text-main"},xI={class:"flex"},kI={class:"flex justify-center items-center"},NI={style:{"margin-left":"8px"}},bI={class:"font-bold"},CI=be(e.defineComponent({__name:"select-location-area",props:{draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const{dialogVisible:o,show:a,close:s,railName:l,POI:r,map:i,H:c,searchTypes:p}=mI();return n({show:a}),(d,f)=>{const m=e.resolveComponent("el-button"),_=e.resolveComponent("svg-icon"),y=e.resolveComponent("el-dialog"),u=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(y,{modelValue:e.unref(o),"onUpdate:modelValue":f[0]||(f[0]=k=>e.isRef(o)?o.value=k: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",top:"10vh",width:"900px",modal:!d.draggable,draggable:d.draggable,"modal-class":d.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",uI,[_I,e.createVNode(m,{class:"w-[80px] absolute top-[20px] left-[20px] z-10",type:"primary",onClick:e.unref(s)},{default:e.withCtx(()=>[e.createTextVNode(" 关闭 ")]),_:1},8,["onClick"]),e.createElementVNode("div",gI,[e.createVNode(ca,{poi:e.unref(r),map:e.unref(i),h:e.unref(c),"search-types":e.unref(p)},null,8,["poi","map","h","search-types"])]),e.createElementVNode("div",yI,[e.createElementVNode("div",xI,[e.createElementVNode("div",null,[e.createElementVNode("span",kI,[e.createVNode(_,{name:"police-situation-ps-around",style:{width:"20px",height:"20px"}}),e.createElementVNode("span",NI,e.toDisplayString(e.unref(x)("currentPositioning")),1)])]),e.createElementVNode("div",bI,[e.createElementVNode("span",null,e.toDisplayString(e.unref(l)),1)])])])])]),_:1})),[[u]])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-dc7c010e"]]);function wI(t){return oe.post({url:"taskAssign/v2/taskItem/select",data:t,isFormData:!0})}function pa(t){return oe.post({url:"taskAssign/v2/taskItemView",data:t,isFormData:!0})}function EI(t){return oe.post({url:"taskAssign/taskExample/select",data:t,isFormData:!0})}function SI({props:t}){const n=e.ref({}),o=e.ref([]),a=e.ref([]),s=e.ref(!1),l=e.ref(!1),r=e.ref(),i=e.ref(),c=e.ref();function p(k){l.value=!0,e.nextTick(()=>{r.value.playVideo(k.filePath,k)})}function d(){r.value.pauseVideo(),l.value=!1}function f(k){i.value.onShowViewer(o.value,k)}function m(k){return new Promise(async(b,E)=>{const N=await(t.controller==="taskAssign/taskExample"?EI({id:k}):J0({id:k}));if(N.code===200){const S=N.data;o.value=[],a.value=[],n.value=S;const V=S.images;V&&V.length&&(o.value=V.split(","));const $=S.videos;$&&$.length&&(a.value=$.split(",").map((h,g)=>({filePath:h,fileName:`任务示例视频${g+1}.${h.split(".").reverse()[0]}`,id:g+1}))),b(0)}})}function _(k={}){m(k.id).then(()=>{s.value=!0})}function y(k){console.log(k),o.value=[],a.value=[],n.value=k;const b=k.images;b&&b.length&&(o.value=b.split(","));const E=k.videos;E&&E.length&&(a.value=E.split(",").map((N,S)=>({filePath:N,fileName:`任务示例视频${S+1}.${N.split(".").reverse()[0]}`,id:S+1}))),s.value=!0,console.log(s.value)}function u(){s.value=!1}return{$t:x,form:n,hyImageViewerRef:i,imagesList:o,videoList:a,dialogVisible:s,videoDialogVisible:l,videoPlayerRef:r,onShowViewer:f,selectFn:m,show:_,taskExampleFn:y,onClose:u,videoPlayerShow:p,videoDialogClose:d,selVideo:c}}const TI={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg-1"},DI={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},VI={class:"absolute right-[12px] top-[12px]"},$I={class:"dialog_body"},BI={class:"dialog_body_content lh_20 leading-[20px]"},II={class:"mb_20 mb-[20px]"},AI={class:"requiredTitle"},LI={class:"plr_20 p-[0_20px]",style:{"max-height":"200px",overflow:"auto"}},FI=["innerHTML"],OI={key:0,class:"mb_20 mb-[20px]"},RI={class:"requiredTitle"},PI={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},MI={class:"imgBox"},UI={class:"centerBox deleteBox flex items-center justify-center"},zI=["src"],WI={key:1,class:"mb_20 mb-[20px]"},HI={class:"requiredTitle"},jI={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},YI={class:"imgBox"},GI={class:"centerBox deleteBox flex items-center justify-center"},qI={class:"pos_a w_100vh centerBox absolute w-full flex justify-center items-center"},KI={class:"operator-button centerBox mt_20 mt-[20px] flex justify-center items-center"},XI={class:"c_fff activatedImei text-hy-text-main"},JI={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},ZI={class:"dialog_body",style:{height:"500px"}},QI={class:"pos_r w_100vh h_100vh w-full h-full relative"},Ar=be(e.defineComponent({__name:"view-task-example",props:{controller:{default:"taskAssign/taskExample"},draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const o=t,{$t:a,show:s,taskExampleFn:l,hyImageViewerRef:r,videoPlayerRef:i,dialogVisible:c,form:p,onClose:d,imagesList:f,onShowViewer:m,videoList:_,videoPlayerShow:y,videoDialogVisible:u,videoDialogClose:k,selVideo:b}=SI({props:o});return n({show:s,taskExampleFn:l}),(E,N)=>{const S=e.resolveComponent("svg-icon"),V=e.resolveComponent("el-dialog"),$=e.resolveComponent("el-button"),h=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(V,{modelValue:e.unref(c),"onUpdate:modelValue":N[2]||(N[2]=g=>e.isRef(c)?c.value=g: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",top:"6vh",width:"570px",modal:!E.draggable,draggable:E.draggable,"modal-class":E.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",TI,[e.createElementVNode("div",DI,[e.createElementVNode("span",null,e.toDisplayString(e.unref(p).exampleName||e.unref(a)("missionExample")),1),e.createElementVNode("div",VI,[e.createVNode(S,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(d),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",$I,[e.createElementVNode("div",BI,[e.createElementVNode("div",II,[e.createElementVNode("div",AI,e.toDisplayString(e.unref(a)("sampleContent")),1),e.createElementVNode("div",LI,[e.createElementVNode("div",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(p).exampleContent},null,8,FI)])]),e.unref(f).length?(e.openBlock(),e.createElementBlock("div",OI,[e.createElementVNode("div",RI,e.toDisplayString(e.unref(a)("exampleImage")),1),e.createElementVNode("ul",PI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),(g,C)=>(e.openBlock(),e.createElementBlock("li",{key:`${C}imagesList`},[e.createElementVNode("div",MI,[e.createElementVNode("div",UI,[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(a)("check-0"),onClick:w=>e.unref(m)(C)},null,8,["tips","onClick"])]),e.createElementVNode("img",{src:g,alt:""},null,8,zI)])]))),128))])])):e.createCommentVNode("",!0),e.unref(_).length?(e.openBlock(),e.createElementBlock("div",WI,[e.createElementVNode("div",HI,e.toDisplayString(e.unref(a)("exampleVideo")),1),e.createElementVNode("ul",jI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(g,C)=>(e.openBlock(),e.createElementBlock("li",{key:`${C}videoList`},[e.createElementVNode("div",YI,[e.createElementVNode("div",GI,[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(a)("check-0"),onClick:w=>e.unref(y)(g)},null,8,["tips","onClick"])]),e.createElementVNode("div",qI,[e.createVNode(S,{name:"base-video-cover",style:{height:"40px",width:"40px"}})])])]))),128))])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",KI,[e.createVNode(Wo,{ref_key:"hyImageViewerRef",ref:r},null,512),e.createVNode(V,{modelValue:e.unref(u),"onUpdate:modelValue":N[1]||(N[1]=g=>e.isRef(u)?u.value=g:null),"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss_lightColor",width:"800px",modal:!E.draggable,draggable:E.draggable,"modal-class":E.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",XI,[e.createElementVNode("div",JI,[e.createTextVNode(e.toDisplayString(e.unref(a)("videoView"))+" ",1),e.createElementVNode("div",{class:"absolute right-[12px] top-[12px] cursor-pointer",onClick:N[0]||(N[0]=e.withModifiers((...g)=>e.unref(k)&&e.unref(k)(...g),["stop"]))},[e.createVNode(S,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",ZI,[e.createElementVNode("div",QI,[e.createVNode(Ho,{ref_key:"videoPlayerRef",ref:i,"border-color":"transparent",item:e.unref(b),"play-list":e.unref(_)},null,8,["item","play-list"])])])])]),_:1})),[[h]])]),_:1},8,["modelValue","modal","draggable","modal-class"]),e.createVNode($,{class:"button_default buttonBox min-w-[100px]",type:"primary",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("closure")),1)]),_:1},8,["onClick"])])])])]),_:1})),[[h]])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-1f7347d8"]]),vI={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},eA=[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m-55.808 536.384l-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"},null,-1)];function tA(t,n){return e.openBlock(),e.createElementBlock("svg",vI,[...eA])}const Lr={name:"ep-success-filled",render:tA},nA={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},oA=[e.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1)];function aA(t,n){return e.openBlock(),e.createElementBlock("svg",nA,[...oA])}const Fr={name:"ep-caret-right",render:aA};function sA({props:t}){const n=e.ref({}),o=e.ref(null),a=e.ref([]),s=e.ref([]),l=e.ref();function r(d){d.del!==1&&(d.fileType===1||d.fileType===2||d.fileType)}function i(d){}function c(d){o.value===d&&s.value.length>1?o.value=null:o.value=d}async function p(){const d=await pa({id:t.taskItemId,viewMode:1});if(d.code===200){const f=d.data||{};if(f.deviceUserList){const _=f.deviceUserList,y=[];_.forEach(u=>{const k=y.findIndex(E=>E.orgId===u.orgId),b=u;b.key=jn(1),k===-1?y.push({orgName:u.orgName,orgId:u.orgId,deviceUserList:[{...b}]}):y[k].deviceUserList.push({...b})}),s.value=y}else s.value=[];a.value=[],s.value.forEach(_=>{_.deviceUserList&&_.deviceUserList.length&&a.value.push(..._.deviceUserList)});const m=s.value[0];m&&c(m.orgId)}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,dataListRef:l,clickGroupItem:r,selectItemFn:i,activeNameFn:c,taskItemViewFn:p}}const lA={class:"r-f h_100vh flex h-full"},rA={class:"background_box information css-text-no-select"},iA=["onClick"],cA={style:{"margin-left":"4px"}},dA=["onClick"],pA={class:"flex-grow flex w-0"},fA={class:"over_one_line flex-grow w-0 truncate"},mA={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},hA={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},uA={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},_A={class:"flex_vertically_center mb_10 flex items-center mb-[10px]"},gA={class:"title_box pl_10 pl-[10px]"},yA={class:"c_9DA7B2 text-hy-text-secondary"},xA={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},kA={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},NA={class:"recordList fs_12 text-[12px] overflow-hidden"},bA={class:"actionList c_fff"},CA={key:0,class:"indexBox centerBox flex items-center justify-center"},wA={key:1,class:"indexBoxv2 centerBox"},EA={class:"mediaFileList c_9DA7B2 text-hy-text-secondary"},SA={key:0,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},TA={key:1},DA=["onClick"],VA={class:"fileDel clickBox"},$A={key:1,class:"file clickBox"},BA={key:2,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},IA=be(e.defineComponent({__name:"people-view",props:{taskItemId:{default:"0"}},setup(t,{expose:n}){const o=t,{$t:a,deviceUserList:s,dataListRef:l,dataList:r,activeName:i,taskItemViewFn:c,activeNameFn:p,selectItemFn:d,clickGroupItem:f}=sA({props:o});return e.onMounted(()=>{c()}),n({taskItemViewFn:c}),(m,_)=>{const y=Fr,u=e.resolveComponent("el-icon"),k=$t,b=e.resolveComponent("el-tooltip"),E=Lr;return e.openBlock(),e.createElementBlock("div",lA,[e.createElementVNode("div",rA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(N,S)=>(e.openBlock(),e.createElementBlock("div",{key:`${S}deviceUserList`},[e.createElementVNode("div",{class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:V=>e.unref(p)(N.orgId)},[e.createVNode(u,{style:e.normalizeStyle({transform:N.orgId===e.unref(i)?"rotate(90deg)":"rotate(0deg)"}),class:"!text-[16px] !text-hy-text-primary transition_05"},{default:e.withCtx(()=>[e.createVNode(y)]),_:2},1032,["style"]),e.createElementVNode("span",cA,e.toDisplayString(N.orgName),1)],8,iA),e.createElementVNode("div",{class:"transition_05",style:e.normalizeStyle({overflow:N.orgId===e.unref(i)?"inherit":"hidden",height:N.orgId===e.unref(i)?`${N.deviceUserList.length*40}px`:"0px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.deviceUserList,(V,$)=>(e.openBlock(),e.createElementBlock("div",{key:`${$}device`,class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:h=>e.unref(d)(V)},[e.createElementVNode("div",pA,[e.createElementVNode("div",fA,e.toDisplayString(V.deviceUserName),1),e.createElementVNode("span",mA," ("+e.toDisplayString(V.jobNum)+")",1)]),V.status===0?(e.openBlock(),e.createElementBlock("div",hA,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",uA,e.toDisplayString(e.unref(a)("finish")),1))],8,dA))),128))],4)]))),128))]),e.createElementVNode("ul",{ref_key:"dataListRef",ref:l,class:"h_100vh content_box h-full"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),N=>(e.openBlock(),e.createElementBlock("li",{key:N.key,ref_for:!0,ref:N.key,class:"ovh"},[e.createElementVNode("div",_A,[e.createElementVNode("div",gA,[e.createTextVNode(e.toDisplayString(N.deviceUserName)+" ",1),e.createElementVNode("span",yA,"("+e.toDisplayString(N.jobNum)+")",1)]),N.status===0?(e.openBlock(),e.createElementBlock("div",xA,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",kA,e.toDisplayString(e.unref(a)("finish")),1))]),e.createElementVNode("ul",NA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.recordList,(S,V)=>(e.openBlock(),e.createElementBlock("li",{key:`${V}recordList`,class:e.normalizeClass([`recordItem_${S.status}`,"background_box mb_10 ovh overflow-hidden mb-[10px]"])},[e.createElementVNode("div",bA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.actionList,($,h)=>(e.openBlock(),e.createElementBlock("div",{key:`${h}actionList`,class:"pos_r flex_vertically_center h_30 relative flex items-center h-[30px]",style:{"padding-left":"28px"}},[h===0?(e.openBlock(),e.createElementBlock("span",CA,e.toDisplayString(V+1),1)):(e.openBlock(),e.createElementBlock("span",wA)),e.createElementVNode("span",null,e.toDisplayString($.actionDetail),1)]))),128))]),e.createElementVNode("div",EA,[S.status===0?(e.openBlock(),e.createElementBlock("div",SA,[e.createVNode(u,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(k)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("unfinishedTask")),1)])):S.status===1&&S.mediaFileList&&S.mediaFileList.length?(e.openBlock(),e.createElementBlock("div",TA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.mediaFileList,($,h)=>(e.openBlock(),e.createElementBlock("div",{key:`${h}mediaFileList`,class:"pos_r flex_vertically_center css-text-no-select mediaFile_item",onClick:g=>e.unref(f)($)},[e.createVNode(u,{class:"!text-hy-success icon_box"},{default:e.withCtx(()=>[e.createVNode(k)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("uploaded")),1),$.del===1?(e.openBlock(),e.createBlock(b,{key:0,class:"item",effect:"dark",content:e.unref(a)("theFileHasBeenDeletedAndCannotBeViewed"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",VA,e.toDisplayString($.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",$A,e.toDisplayString($.fileName),1))],8,DA))),128))])):(e.openBlock(),e.createElementBlock("div",BA,[e.createVNode(u,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(E)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("theTaskHasBeenCompletedWaitingForUploading")),1)]))])],2))),128))])]))),128))],512)])}}}),[["__scopeId","data-v-82696267"]]),AA={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},LA=[e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768a384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896a448 448 0 0 1 0 896"},null,-1),e.createElementVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"},null,-1),e.createElementVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"},null,-1)];function FA(t,n){return e.openBlock(),e.createElementBlock("svg",AA,[...LA])}const OA={name:"ep-clock",render:FA};function RA({props:t}){const n=e.ref({}),o=e.ref(null),a=e.ref([]),s=e.ref([]),l=e.ref();function r(p){}function i(p){o.value===p&&s.value.length>1?o.value=null:o.value=p}async function c(){const p=await pa({id:t.taskItemId,viewMode:1});if(p.code===200){const d=p.data||{};if(d.deviceUserList){const m=d.deviceUserList,_=[];m.forEach(y=>{const u=_.findIndex(b=>b.orgId===y.orgId),k=y;if(k.key=jn(1),y.userReport){const b=y.userReport;k.urTemplateName=b.templateName,k.urSubmitDtm=b.submitDtm,k.urOptionList=b.optionList||[]}u===-1?_.push({orgName:y.orgName,orgId:y.orgId,deviceUserList:[{...k}]}):_[u].deviceUserList.push({...k})}),s.value=_}else s.value=[];a.value=[],s.value.forEach(m=>{m.deviceUserList&&m.deviceUserList.length&&a.value.push(...m.deviceUserList)});const f=s.value[0];f&&i(f.orgId)}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,reportListRef:l,selectItemFn:r,activeNameFn:i,taskItemViewFn:c}}const PA={class:"r-f h_100vh flex h-full"},MA={class:"background_box information css-text-no-select"},UA=["onClick"],zA={style:{"margin-left":"4px"}},WA=["onClick"],HA={class:"flex-grow flex w-0"},jA={class:"over_one_line flex-grow w-0 truncate"},YA={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},GA={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},qA={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},KA={key:0,ref:"reportListRef",class:"f-g reportList w-0 flex-grow"},XA={key:0,class:"background_box h_100vh lh_20 h-full leading-[20px]"},JA={class:"fs_14 plr_20 border-bottom mtb_10 m-[10px_0] p-[0_20px] text-[14px]"},ZA={class:"flex_vertically_center flex items-center",style:{"justify-content":"space-between"}},QA={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},vA={class:"c_9DA7B2 r-f lh_30 flex leading-[30px] text-hy-text-secondary",style:{"justify-content":"space-between"}},eL={class:"flex_vertically_center flex items-center"},tL={style:{"margin-left":"4px"}},nL={style:{padding:"0 20px 10px"}},oL={class:"mb_10 r-f mb-[10px] flex"},aL={class:"mr_10 label flex-shrink mr-[10px]"},sL={class:"c_theme r-f flex text-hy-text-primary"},lL={class:"mr_10 label label_answer flex-shrink mr-[10px]"},rL={key:0,class:"c_theme text-hy-text-primary"},iL={key:1,class:"c_theme text-hy-text-primary"},cL={key:1,class:"background_box h_100vh c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary h-full"},dL={class:"fs_14 plr_20 border-bottom text-[14px] p-[0_20px]"},pL={class:"flex_vertically_center lh_40 flex items-center leading-[40px]",style:{"justify-content":"space-between"}},fL={class:"c_9DA7B2 text-hy-text-secondary"},mL={class:"tac ptb_20 p-[20px_0] text-center"},hL={class:"mt_10 mt-[10px]"},uL={key:0},_L={key:1},gL={key:2,class:"c_success text-hy-success"},yL=be(e.defineComponent({__name:"task-report",props:{taskItemId:{default:"0"}},setup(t,{expose:n}){const o=t,{$t:a,deviceUserList:s,dataList:l,activeName:r,taskItemViewFn:i,activeNameFn:c,selectItemFn:p}=RA({props:o});return e.onMounted(()=>{i()}),n({taskItemViewFn:i}),(d,f)=>{const m=Fr,_=e.resolveComponent("el-icon"),y=OA,u=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",PA,[e.createElementVNode("div",MA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(k,b)=>(e.openBlock(),e.createElementBlock("div",{key:`${b}deviceUserList`},[e.createElementVNode("div",{class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:E=>e.unref(c)(k.orgId)},[e.createVNode(_,{style:e.normalizeStyle({transform:k.orgId===e.unref(r)?"rotate(90deg)":"rotate(0deg)"}),class:"!text-[16px] !text-hy-text-primary transition_05"},{default:e.withCtx(()=>[e.createVNode(m)]),_:2},1032,["style"]),e.createElementVNode("span",zA,e.toDisplayString(k.orgName),1)],8,UA),e.createElementVNode("div",{class:"transition_05",style:e.normalizeStyle({overflow:k.orgId===e.unref(r)?"inherit":"hidden",height:k.orgId===e.unref(r)?`${k.deviceUserList.length*40}px`:"0px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.deviceUserList,(E,N)=>(e.openBlock(),e.createElementBlock("div",{key:`${N}device`,class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:S=>e.unref(p)(E)},[e.createElementVNode("div",HA,[e.createElementVNode("div",jA,e.toDisplayString(E.deviceUserName),1),e.createElementVNode("span",YA," ("+e.toDisplayString(E.jobNum)+")",1)]),E.taskReportStatus===1?(e.openBlock(),e.createElementBlock("div",GA,e.toDisplayString(e.unref(a)("unfilled")),1)):E.taskReportStatus===2?(e.openBlock(),e.createElementBlock("div",qA,e.toDisplayString(e.unref(a)("haveBeenFilledIn")),1)):e.createCommentVNode("",!0)],8,WA))),128))],4)]))),128))]),e.unref(l)&&e.unref(l).length?(e.openBlock(),e.createElementBlock("div",KA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),k=>(e.openBlock(),e.createElementBlock("div",{key:k.key,ref_for:!0,ref:k.key,class:"background_box mb_10 mb-[10px]"},[k.userReport?(e.openBlock(),e.createElementBlock("div",XA,[e.createElementVNode("div",JA,[e.createElementVNode("div",ZA,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(k.deviceUserName)+" ",1),e.createElementVNode("span",QA,"("+e.toDisplayString(k.jobNum)+")",1)]),e.withDirectives(e.createElementVNode("div",{class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},e.toDisplayString(e.unref(a)("unfinished")),513),[[e.vShow,k.status===0]]),e.withDirectives(e.createElementVNode("div",{style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},e.toDisplayString(e.unref(a)("finish")),513),[[e.vShow,k.status===1]])]),e.createElementVNode("div",vA,[e.createElementVNode("div",null,e.toDisplayString(k.urTemplateName),1),e.createElementVNode("div",eL,[e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(y)]),_:1}),e.createElementVNode("span",tL,e.toDisplayString(k.urSubmitDtm),1)])])]),e.createElementVNode("div",nL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.urOptionList,(b,E)=>(e.openBlock(),e.createElementBlock("div",{key:`${E}urOptionList`,class:"reportItem ptb_10 border-bottom p-[10px_0] text-[12px]"},[e.createElementVNode("div",oL,[e.createElementVNode("div",aL,e.toDisplayString(e.unref(a)("ask")),1),e.createTextVNode(" "+e.toDisplayString(b.optionTitle),1)]),e.createElementVNode("div",sL,[e.createElementVNode("div",lL,e.toDisplayString(e.unref(a)("answer")),1),b.optionValue?(e.openBlock(),e.createElementBlock("span",rL,e.toDisplayString(b.optionValue),1)):(e.openBlock(),e.createElementBlock("span",iL,e.toDisplayString(e.unref(a)("none")),1))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",cL,[e.createElementVNode("div",dL,[e.createElementVNode("div",pL,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(k.deviceUserName)+" ",1),e.createElementVNode("span",fL,"("+e.toDisplayString(k.jobNum)+")",1)]),e.withDirectives(e.createElementVNode("div",{class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},e.toDisplayString(e.unref(a)("unfinished")),513),[[e.vShow,k.status===0]]),e.withDirectives(e.createElementVNode("div",{style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},e.toDisplayString(e.unref(a)("finish")),513),[[e.vShow,k.status===1]])])]),e.createElementVNode("div",mL,[e.createVNode(u,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",hL,[k.taskReportStatus===0?(e.openBlock(),e.createElementBlock("span",uL,e.toDisplayString(e.unref(a)("noNeedToSubmitATaskReport")),1)):k.taskReportStatus===1?(e.openBlock(),e.createElementBlock("span",_L,e.toDisplayString(e.unref(a)("unpackTaskReport")),1)):k.taskReportStatus===2?(e.openBlock(),e.createElementBlock("span",gL,e.toDisplayString(e.unref(a)("submittedTaskReport")),1)):e.createCommentVNode("",!0)])])]))]))),128))],512)):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-4d03873f"]]);function xL({props:t}){const n=e.ref({}),o=e.ref(null),a=e.ref([]),s=e.ref([]),l=e.ref();function r(p){p.del!==1&&(p.fileType===1||p.fileType===2||p.fileType)}function i(p){l.value.offsetTop}async function c(){const p=await pa({id:t.taskItemId,viewMode:2});if(p.code===200){const d=p.data||{};if(d.opList){const f=d.opList||[],m=[];f.forEach(_=>{const y=_.actionList.map(u=>u.actionDetail);m.push({..._,key:_.id,actionDetail:y.toString()})}),a.value=m}else a.value=[]}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,dataListRef:l,clickGroupItem:r,selectItemFn:i,taskItemViewFn:c}}const kL={class:"r-f h_100vh h-full flex"},NL={class:"background_box information css-text-no-select"},bL=["onClick"],CL={class:"r-f f-g flex flex-grow w-0"},wL={class:"indexBox centerBox flex-shrink flex justify-center items-center",style:{left:"4px"}},EL={class:"over_one_line truncate"},SL={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},TL={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},DL={class:"recordList fs_12 text-[12px]"},VL={class:"actionList c_fff text-hy-text-main"},$L={key:0,class:"indexBox centerBox flex justify-center items-center"},BL={key:1,class:"indexBoxv2 centerBox flex justify-center items-center"},IL={class:"mediaFileList"},AL={key:0},LL={class:"flex_vertically_center pos_r relative flex items-center"},FL={class:"c_fff text-hy-text-main"},OL={key:1},RL={class:"flex_vertically_center pos_r relative flex items-center"},PL={class:"c_fff text-hy-text-main"},ML=["onClick"],UL={class:"fileDel clickBox"},zL={key:1,class:"file clickBox"},WL={key:2},HL={class:"flex_vertically_center pos_r relative flex items-center"},jL={class:"c_fff text-hy-text-main"},YL=be(e.defineComponent({__name:"task-view",props:{taskItemId:{default:"0"}},setup(t,{expose:n}){const o=t,{$t:a,taskItemViewFn:s,dataList:l,selectItemFn:r,dataListRef:i,clickGroupItem:c}=xL({props:o});return e.onMounted(()=>{s()}),n({taskItemViewFn:s}),(p,d)=>{const f=$t,m=e.resolveComponent("el-icon"),_=Lr,y=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",kL,[e.createElementVNode("div",NL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(u,k)=>(e.openBlock(),e.createElementBlock("div",{key:`${k}device`,class:"clickBox deviceItem background_box c_9DA7B2 flex_vertically_center pos_r relative flex items-center text-hy-text-secondary",onClick:b=>e.unref(r)(u)},[e.createElementVNode("div",CL,[e.createElementVNode("span",wL,e.toDisplayString(k+1),1),e.createElementVNode("span",EL,e.toDisplayString(u.actionDetail),1)]),u.status===0?(e.openBlock(),e.createElementBlock("div",SL,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",TL,e.toDisplayString(e.unref(a)("finish")),1))],8,bL))),128))]),e.createElementVNode("div",{ref_key:"dataListRef",ref:i,class:"content_box"},[e.createElementVNode("ul",DL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(u,k)=>(e.openBlock(),e.createElementBlock("li",{key:u.key,ref_for:!0,ref:u.key,class:e.normalizeClass([`recordItem_${u.status}`,"background_box mb_10 ovh overflow-hidden mb-[10px]"])},[e.createElementVNode("div",VL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.actionList,(b,E)=>(e.openBlock(),e.createElementBlock("div",{key:`${E}actionList`,class:"pos_r flex_vertically_center h_30 relative flex items-center h-[30px]",style:{"padding-left":"28px"}},[E===0?(e.openBlock(),e.createElementBlock("span",$L,e.toDisplayString(k+1),1)):(e.openBlock(),e.createElementBlock("span",BL)),e.createElementVNode("span",null,e.toDisplayString(b.actionDetail),1)]))),128))]),e.createElementVNode("div",IL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.recordList,(b,E)=>(e.openBlock(),e.createElementBlock("div",{key:`${E}recordList`,class:"pos_r mediaFile_item c_9DA7B2 lh_20 mb_10 relative text-hy-text-secondary leading-[20px] mb-[10px]"},[b.status===0?(e.openBlock(),e.createElementBlock("div",AL,[e.createElementVNode("div",LL,[e.createVNode(m,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(f)]),_:1}),e.createElementVNode("span",FL,e.toDisplayString(b.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(b.jobNum)+")",1)]),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("unfinishedTask")),1)])):b.status===1&&b.mediaFileList&&b.mediaFileList.length?(e.openBlock(),e.createElementBlock("div",OL,[e.createElementVNode("div",RL,[e.createVNode(m,{class:"!text-hy-success icon_box"},{default:e.withCtx(()=>[e.createVNode(_)]),_:1}),e.createElementVNode("span",PL,e.toDisplayString(b.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(b.jobNum)+")",1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.mediaFileList,(N,S)=>(e.openBlock(),e.createElementBlock("div",{key:`${S}mediaFileList`,class:"css-text-no-select",onClick:V=>e.unref(c)(N)},[e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("uploaded")),1),N.del===1?(e.openBlock(),e.createBlock(y,{key:0,class:"item",effect:"dark",content:e.unref(a)("theFileHasBeenDeletedAndCannotBeViewed"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",UL,e.toDisplayString(N.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",zL,e.toDisplayString(N.fileName),1))],8,ML))),128))])):(e.openBlock(),e.createElementBlock("div",WL,[e.createElementVNode("div",HL,[e.createVNode(m,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(_)]),_:1}),e.createElementVNode("span",jL,e.toDisplayString(b.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(b.jobNum)+")",1)]),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("theTaskHasBeenCompletedWaitingForUploading")),1)]))]))),128))])],2))),128))])],512)])}}}),[["__scopeId","data-v-85c188ed"]]);function GL(){const t=e.ref({}),n=e.ref("255"),o=e.ref(1),a=e.ref(1),s=e.ref(!1),l=e.ref(),r=e.ref(),i=e.ref(),c=e.ref(),p=e.ref();function d(E){l.value.taskExampleFn(E)}function f(E){a.value=E}function m(E){if(!E){Se.error(x("checkTheTaskAreaWrong"));return}r.value.show({mapRailId:E})}function _(E){o.value=E,E===2&&(t.value.taskMode===2?f(2):f(1))}function y(){s.value=!1}function u(){return new Promise(async(E,N)=>{const S=await wI({id:n.value});S.code===200&&(t.value=S.data||{},E(0))})}function k(E=null){n.value=E,_(1),u().then(()=>{console.log(111),s.value=!0})}function b(){switch(o.value){case 1:u();break;case 2:a.value===1&&t.value.taskMode===1?i.value.taskItemViewFn():this.viewMode===2&&c.value.taskItemViewFn();break;case 3:p.value.taskItemViewFn();break}}return{$t:x,form:t,taskItemId:n,navigationType:o,viewMode:a,dialogVisible:s,viewTaskExampleRef:l,selectLocationAreaRef:r,peopleViewRef:i,taskViewRef:c,taskReportRef:p,viewTaskExampleShow:d,viewModeFn:f,seeTaskArea:m,navigationTypeFn:_,onClose:y,selectFn:u,show:k,onRefresh:b}}const qL={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg-1"},KL={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold"},XL={class:"dialog_body",style:{"padding-right":"0px"}},JL={class:"ovh centerBox flex items-center justify-center overflow-hidden"},ZL={class:"r-f navigation flex"},QL={key:0,class:"r-f flex",style:{height:"540px"}},vL={class:"fs_12 lh_20 h_100vh background_box information text-[12px] leading-[20px] h-full"},eF={class:"fs_16 fw_600 lh_40 text-[16px] font-[600px] leading-[40px]"},tF={key:0,class:"mb_20 mb-[20px]"},nF={class:"c_9DA7B2 text-hy-text-secondary"},oF=["innerHTML"],aF={class:"mb_20 mb-[20px]"},sF={class:"c_9DA7B2 text-hy-text-secondary"},lF={class:"c_9DA7B2 text-hy-text-secondary"},rF={class:"mb_20 mb-[20px]"},iF={class:"c_9DA7B2 text-hy-text-secondary"},cF={class:"h_100vh content_box h-full"},dF={class:"flex_vertically_center title_box flex items-center"},pF={class:"pos_r relative"},fF={class:"fs_12"},mF={class:"actionList"},hF={key:0},uF=["onClick"],_F={key:1,class:"c-f flex flex-col",style:{height:"540px"}},gF={class:"fs_12 r-f mb_10 flex text-[12px] mb-[10px]",style:{"justify-content":"space-between","padding-right":"30px"}},yF={class:"lh_20 flex_vertically_center flex items-center leading-[20px]"},xF={key:0,class:"c_dangerv2 text-hy-danger"},kF={key:1,class:"c_success text-hy-success"},NF={key:2,class:"c_9DA7B2 text-hy-text-secondary"},bF={key:3,class:"c_theme text-hy-text-primary"},CF={style:{width:"108px"},class:"plr_10 p-[0_10px]"},wF={class:"c_theme text-hy-text-primary"},EF={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},SF={class:"centerBox flex justify-center items-center"},TF={style:{"margin-left":"6px"}},DF={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary flex items-center"},VF={class:"centerBox flex justify-center items-center"},$F={style:{"margin-left":"6px"}},BF={style:{"flex-grow":"1",height:"0"}},IF=be(e.defineComponent({__name:"common-task-detail",props:{draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const{$t:o,viewTaskExampleRef:a,selectLocationAreaRef:s,taskReportRef:l,taskViewRef:r,peopleViewRef:i,show:c,dialogVisible:p,navigationType:d,form:f,viewMode:m,taskItemId:_,viewModeFn:y,viewTaskExampleShow:u,seeTaskArea:k,navigationTypeFn:b,onRefresh:E,onClose:N}=GL();return n({show:c}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-button"),g=e.resolveComponent("el-progress"),C=$t,w=e.resolveComponent("el-icon"),D=e.resolveComponent("el-dialog"),T=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(D,{modelValue:e.unref(p),"onUpdate:modelValue":V[7]||(V[7]=L=>e.isRef(p)?p.value=L: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:"900px",modal:!S.draggable,draggable:S.draggable,"modal-class":S.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",qL,[e.createElementVNode("div",KL,[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("missionDetails")),1),e.createElementVNode("div",null,[e.createElementVNode("div",{class:"cursor-pointer active:opacity-60 refresh",onClick:V[0]||(V[0]=(...L)=>e.unref(E)&&e.unref(E)(...L))},[e.createVNode($,{name:"live-broadcast-refresh-v3",style:{width:"26px",height:"26px"},"class-name":"text-hy-text-primary"})]),e.createElementVNode("div",{class:"clickBox cursor-pointer active:opacity-60 closeBox absolute right-[12px] top-[12px]",onClick:V[1]||(V[1]=(...L)=>e.unref(N)&&e.unref(N)(...L))},[e.createVNode($,{name:"sys-button-close",style:{width:"26px",height:"26px"},"class-name":"text-hy-text-danger"})])])]),e.createElementVNode("div",XL,[e.createVNode(CI,{ref_key:"selectLocationAreaRef",ref:s,draggable:S.draggable},null,8,["draggable"]),e.createElementVNode("div",JL,[e.createElementVNode("ul",ZL,[e.createElementVNode("li",{class:e.normalizeClass(["clickBox cursor-pointer active:opacity-60 css-text-no-select",{selectBox:e.unref(d)===1}]),onClick:V[2]||(V[2]=L=>e.unref(b)(1))},e.toDisplayString(e.unref(o)("missionDetails-0")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox cursor-pointer active:opacity-60 css-text-no-select",{selectBox:e.unref(d)===2}]),onClick:V[3]||(V[3]=L=>e.unref(b)(2))},e.toDisplayString(e.unref(o)("implementation")),3),e.unref(f)&&e.unref(f).templateId?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass(["clickBox cursor-pointer active:opacity-60 css-text-no-select",{selectBox:e.unref(d)===3}]),onClick:V[4]||(V[4]=L=>e.unref(b)(3))},e.toDisplayString(e.unref(o)("missionReport")),3)):e.createCommentVNode("",!0)])]),e.unref(d)===1?(e.openBlock(),e.createElementBlock("div",QL,[e.createElementVNode("div",vL,[e.createElementVNode("div",eF,e.toDisplayString(e.unref(f).taskAction),1),e.unref(f).taskDesc?(e.openBlock(),e.createElementBlock("div",tF,[e.createElementVNode("div",nF,e.toDisplayString(e.unref(o)("taskDescription")),1),e.createElementVNode("div",{class:"mission_content",style:{"white-space":"pre-wrap"},innerHTML:e.unref(f).taskDesc},null,8,oF)])):e.createCommentVNode("",!0),e.createElementVNode("div",aF,[e.createElementVNode("div",sF,e.toDisplayString(e.unref(o)("executionTime")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(f).executeDtmStr)+" ",1),e.createElementVNode("span",lF,"("+e.toDisplayString(e.unref(f).taskDateStartTime)+" ~ "+e.toDisplayString(e.unref(f).taskDateEndTime)+")",1)])]),e.createElementVNode("div",rF,[e.createElementVNode("div",iF,e.toDisplayString(e.unref(o)("executionMode")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(f).taskMode===1?e.unref(o)("independentExecution"):e.unref(o)("collaborativeExecution")),1)])]),e.createElementVNode("ul",cF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f).opList,(L,A)=>(e.openBlock(),e.createElementBlock("li",{key:`${A}opList`,class:"background_box ovh overflow-hidden"},[e.createElementVNode("div",dF,[e.createElementVNode("div",pF,[e.createTextVNode(e.toDisplayString(e.unref(o)("first"))+e.toDisplayString(A+1)+e.toDisplayString(e.unref(o)("strip"))+" ",1),e.createElementVNode("span",null,e.toDisplayString(L.taskOp===1?e.unref(o)("photograph"):e.unref(o)("record")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(o)("task")),1)]),e.createVNode(h,{class:"button_default",type:"primary",onClick:H=>e.unref(k)(L.mapRailId)},{default:e.withCtx(()=>[e.createElementVNode("span",fF,e.toDisplayString(e.unref(o)("missionArea")),1)]),_:2},1032,["onClick"])]),e.createElementVNode("ul",mF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.actionList,(H,O)=>(e.openBlock(),e.createElementBlock("li",{key:`${O}actionList`,class:e.normalizeClass([{clickBox:!1},"flex_vertically_center flex items-center"])},[e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(H.actionDetail)+" ",1),H.taskAction?(e.openBlock(),e.createElementBlock("span",hF,'"'+e.toDisplayString(H.taskAction)+'"',1)):e.createCommentVNode("",!0)]),L.taskExample&&L.taskExample.exampleName?(e.openBlock(),e.createElementBlock("span",{key:0,class:"c_9DA7B2 flex-shrink ml_10 clickBox taskExample css-text-no-select text-hy-text-secondary ml-[10px] cursor-pointer active:opacity-60",onClick:P=>e.unref(u)(L.taskExample)},e.toDisplayString(e.unref(o)("viewExample")),9,uF)):e.createCommentVNode("",!0)]))),128))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",_F,[e.withDirectives(e.createElementVNode("div",gF,[e.createElementVNode("div",yF,[e.unref(f).status===0?(e.openBlock(),e.createElementBlock("span",xF,e.toDisplayString(e.unref(o)("unfinished")),1)):e.unref(f).status===1?(e.openBlock(),e.createElementBlock("span",kF,e.toDisplayString(e.unref(o)("hasBeenCompleted")),1)):e.unref(f).status===2?(e.openBlock(),e.createElementBlock("span",NF,e.toDisplayString(e.unref(o)("notPerformed")),1)):e.unref(f).status===3?(e.openBlock(),e.createElementBlock("span",bF,e.toDisplayString(e.unref(o)("execute")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",CF,[e.unref(f).status===0?(e.openBlock(),e.createBlock(g,{key:0,class:"progress-bar_outer_errors",color:"var(--hy-danger)","text-inside":!0,"stroke-width":16,status:"exception",percentage:e.unref(f).taskProgress>100?100:e.unref(f).taskProgress},null,8,["percentage"])):(e.openBlock(),e.createBlock(g,{key:1,class:e.normalizeClass({"progress-bar_outer":e.unref(f).taskProgress!==100}),color:"var(--success)","text-inside":!0,"stroke-width":16,status:"success",percentage:e.unref(f).taskProgress},null,8,["class","percentage"]))]),e.createElementVNode("span",wF,e.toDisplayString(e.unref(f).finishNum||0)+"/"+e.toDisplayString(e.unref(f).totalNum||0),1)]),e.withDirectives(e.createElementVNode("div",EF,[e.createVNode(w,null,{default:e.withCtx(()=>[e.createVNode(C)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(o)("currentlyForPersonnelView"))+" ",1),e.createVNode(h,{class:"button_function ml_10 ml-[10px]",onClick:V[5]||(V[5]=L=>e.unref(y)(2))},{default:e.withCtx(()=>[e.createElementVNode("div",SF,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-download-task"}),e.createElementVNode("span",TF,e.toDisplayString(e.unref(o)("missionView")),1)])]),_:1})],512),[[e.vShow,e.unref(m)===1&&e.unref(f).taskMode===1]]),e.withDirectives(e.createElementVNode("div",DF,[e.createVNode(w,null,{default:e.withCtx(()=>[e.createVNode(C)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(o)("currentAsAMissionView"))+" ",1),e.unref(f).taskMode===1?(e.openBlock(),e.createBlock(h,{key:0,class:"button_function ml_10 ml-[10px]",onClick:V[6]||(V[6]=L=>e.unref(y)(1))},{default:e.withCtx(()=>[e.createElementVNode("div",VF,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-user-online"}),e.createElementVNode("span",$F,e.toDisplayString(e.unref(o)("personnelView")),1)])]),_:1})):e.createCommentVNode("",!0)],512),[[e.vShow,e.unref(m)===2]])],512),[[e.vShow,e.unref(d)===2]]),e.createElementVNode("div",BF,[e.unref(d)===2&&e.unref(m)===1&&e.unref(f).taskMode===1?(e.openBlock(),e.createBlock(IA,{key:0,ref_key:"peopleViewRef",ref:i,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.createCommentVNode("",!0),e.unref(d)===2&&e.unref(m)===2?(e.openBlock(),e.createBlock(YL,{key:1,ref_key:"taskViewRef",ref:r,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.unref(d)===3?(e.openBlock(),e.createBlock(yL,{key:2,ref_key:"taskReportRef",ref:l,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.createCommentVNode("",!0)])])),e.createVNode(Ar,{ref_key:"viewTaskExampleRef",ref:a,draggable:S.draggable},null,8,["draggable"])])])]),_:1})),[[T]])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-f75c95cc"]]);function AF({props:t}){const n=e.ref(null),o=e.ref(null),a=e.ref({}),s=e.ref(!1),l=e.ref(null);function r(d){if(d.del===1)return Se.error(x("theFileHasBeenDeletedAndCannotBeViewed-0"));d.fileType===1||d.fileType===2||d.fileType}function i(){return new Promise(async(d,f)=>{if(t.formType===1){const m=await eb({taskId:o.value,deviceUserId:n.value});if(m.code===200){const _=m.data||{};a.value=_||{},a.value.imageList&&(a.value.imageListV2=a.value.imageList.map(y=>y.filePath)),d(0)}}else if(t.formType===2){const m=await jl({recordId:l.value});if(m.code===200){const _=m.data||{};a.value=_||{},a.value.imageList&&(a.value.imageListV2=a.value.imageList.map(y=>y.filePath)),d(0)}}})}function c(d={}){if(!d)return;const f=Se.warning(x("inTheOpeningPleaseWait"));o.value=d.taskId,n.value=d.deviceUserId,l.value=d.recordId||null,i().then(()=>{s.value=!0,setTimeout(()=>{f.close()},1e3)})}function p(){s.value=!1}return{deviceUserId:n,taskId:o,deviceReport:a,dialogVisible:s,recordId:l,clickGroupItem:r,show:c,onClose:p,$t:x}}const LF={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg"},FF={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},OF={key:0},RF={key:1},PF={class:"absolute right-[12px] top-[12px]"},MF={style:{height:"500px"},class:"c_fff fs_12 dialog_body text-hy-text-main text-[12px]"},UF={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},zF={class:"information"},WF={class:"flex_vertically_center flex items-center"},HF={style:{"margin-left":"6px"}},jF={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},YF={class:"flex_vertically_center flex items-center"},GF={style:{"margin-left":"6px"}},qF={key:0,class:"type_box success"},KF={key:1,class:"type_box"},XF={class:"form fs_12 text-[12px]"},JF={key:0},ZF={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},QF={style:{"border-top":"1px solid var(--hy-border-2)","border-bottom":"1px solid var(--hy-border-2)",padding:"10px 0px"},class:"c_theme flex_vertically_center text-hy-text-primary flex items-center"},vF={key:1},eO={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},tO={class:"r-f mb_10 flex_vertically_center flex mb-[10px] items-center"},nO={class:"mr_10 label flex-shrink mr-[10px]"},oO={class:"r-f flex_vertically_center flex items-center"},aO={class:"mr_10 label label_answer flex-shrink mr-[10px]"},sO={key:0,class:"c_theme text-hy-text-primary"},lO={key:1,class:"c_9DA7B2 text-hy-text-secondary"},rO={key:2},iO={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px]"},cO={class:"group-item"},dO=["onClick"],pO={key:0,class:"c-f-i group-content r-f flex"},fO={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},mO=["src"],hO={key:1,style:{"flex-grow":"1"}},uO={class:"icon-box c-f-i flex"},_O={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},gO={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},yO={key:0,class:"information-type"},xO={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},kO={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},NO={key:0,class:"c_9DA7B2 text-hy-text-secondary"},bO={key:1},CO={key:1,class:"c-f-i group-content r-f flex"},wO={style:{"flex-grow":"1"}},EO={class:"icon-box c-f-i flex"},SO={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},TO={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},DO={key:0,class:"information-type"},VO={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},$O={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},BO={key:0,class:"c_9DA7B2 text-hy-text-secondary"},IO={key:1},AO={key:2,class:"c-f-i group-content r-f flex"},LO={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},FO=["src"],OO={key:1,style:{"flex-grow":"1"}},RO={class:"icon-box c-f-i flex"},PO={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},MO={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},UO={key:0,class:"information-type"},zO={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},WO={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},HO={key:0,class:"c_9DA7B2 text-hy-text-secondary"},jO={key:1},YO={key:3},GO={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},qO={class:"group-item"},KO=["onClick"],XO={key:0,class:"c-f-i group-content r-f flex"},JO={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},ZO=["src"],QO={key:1,style:{"flex-grow":"1"}},vO={class:"icon-box c-f-i flex"},eR={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},tR={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},nR={key:0,class:"information-type"},oR={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},aR={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},sR={key:0,class:"c_9DA7B2 text-hy-text-secondary"},lR={key:1},rR={key:1,class:"c-f-i group-content r-f flex"},iR={style:{"flex-grow":"1"}},cR={class:"icon-box c-f-i flex"},dR={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},pR={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},fR={key:0,class:"information-type"},mR={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},hR={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},uR={key:0,class:"c_9DA7B2 text-hy-text-secondary"},_R={key:1},gR={key:2,class:"c-f-i group-content r-f flex"},yR={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},xR=["src"],kR={key:1,style:{"flex-grow":"1"}},NR={class:"icon-box c-f-i"},bR={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},CR={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},wR={key:0,class:"information-type"},ER={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},SR={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},TR={key:0,class:"c_9DA7B2 text-hy-text-secondary"},DR={key:1},Or=be(e.defineComponent({__name:"submission-form",props:{formType:{default:1},draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const o=t,{$t:a,show:s,dialogVisible:l,deviceReport:r,onClose:i,clickGroupItem:c}=AF({props:o});return n({show:s}),(p,d)=>{const f=e.resolveComponent("svg-icon"),m=e.resolveComponent("el-dialog"),_=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(m,{modelValue:e.unref(l),"onUpdate:modelValue":d[0]||(d[0]=y=>e.isRef(l)?l.value=y: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:"530px",modal:!p.draggable,draggable:p.draggable,"modal-class":p.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",LF,[e.createElementVNode("div",FF,[o.formType===1?(e.openBlock(),e.createElementBlock("span",OF,e.toDisplayString(e.unref(a)("exception")),1)):o.formType===2?(e.openBlock(),e.createElementBlock("span",RF,e.toDisplayString(e.unref(r).pointName||e.unref(a)("inspectionPoint-0"))+e.toDisplayString(e.unref(a)("form-0")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",PF,[e.createVNode(f,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(i),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",MF,[e.createElementVNode("div",UF,[e.createElementVNode("div",zF,[e.createElementVNode("div",WF,[e.createVNode(f,{style:{width:"14px",height:"14px"},name:"icon-user","class-name":"text-hy-text-main"}),e.createElementVNode("span",HF,[e.createTextVNode(e.toDisplayString(e.unref(r).name),1),e.unref(r).jobNum?(e.openBlock(),e.createElementBlock("span",jF,"("+e.toDisplayString(e.unref(r).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",YF,[e.createVNode(f,{name:"base-every-day-time",class:"w-[16px] h-[16px]"}),e.createElementVNode("span",GF,e.toDisplayString(e.unref(r).executeDtm),1)]),e.unref(r).checkState===1?(e.openBlock(),e.createElementBlock("div",qF,e.toDisplayString(e.unref(a)("normal")),1)):e.unref(r).checkState===2?(e.openBlock(),e.createElementBlock("div",KF,e.toDisplayString(e.unref(a)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",XF,[e.unref(r).dealSituation?(e.openBlock(),e.createElementBlock("div",JF,[e.createElementVNode("div",ZF,e.toDisplayString(e.unref(a)("handling")),1),e.createElementVNode("p",QF,e.toDisplayString(e.unref(r).dealSituation||e.unref(a)("none")),1)])):e.createCommentVNode("",!0),e.unref(r).formList&&e.unref(r).formList.length?(e.openBlock(),e.createElementBlock("div",vF,[e.createElementVNode("div",eO,e.toDisplayString(e.unref(a)("formContent")),1),e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).formList,(y,u)=>(e.openBlock(),e.createElementBlock("li",{key:u,class:"border-top ptb_10 p-[10px_0px]"},[e.createElementVNode("div",tO,[e.createElementVNode("p",nO,e.toDisplayString(e.unref(a)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(y.optionTitle),1)]),e.createElementVNode("div",oO,[e.createElementVNode("p",aO,e.toDisplayString(e.unref(a)("answer")),1),y.optionValue?(e.openBlock(),e.createElementBlock("span",sO,e.toDisplayString(y.optionValue),1)):(e.openBlock(),e.createElementBlock("span",lO,e.toDisplayString(e.unref(a)("unfilled")),1))])]))),128))])])):e.createCommentVNode("",!0),e.unref(r).imageList&&e.unref(r).imageList.length?(e.openBlock(),e.createElementBlock("div",rO,[e.createElementVNode("div",iO,e.toDisplayString(e.unref(a)("picture")),1),e.createElementVNode("div",cO,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).imageList,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,onClick:u=>e.unref(c)(y)},[y.fileType===1?(e.openBlock(),e.createElementBlock("div",pO,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.filePath&&y.del!==1?(e.openBlock(),e.createElementBlock("div",fO,[e.createElementVNode("img",{src:y.filePath,class:"h_100vh h-full"},null,8,mO)])):(e.openBlock(),e.createElementBlock("div",hO,[e.createElementVNode("div",uO,[e.createVNode(f,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(f,{style:{margin:"0 4px"},name:"menu-image","class-name":"w-[40px] h-[40px]"}),e.createVNode(f,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",_O,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",gO,[y.type===1?(e.openBlock(),e.createElementBlock("div",yO,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",xO,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",kO," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",NO,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",bO,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),y.mark?(e.openBlock(),e.createBlock(f,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):y.fileType===4?(e.openBlock(),e.createElementBlock("div",CO,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[e.createElementVNode("div",wO,[e.createElementVNode("div",EO,[e.createVNode(f,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(f,{name:"menu-micphone--2","class-name":"w-[40px] h-[40px]"}),e.createVNode(f,{style:{"margin-left":"4px"},name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])]),e.createElementVNode("div",SO,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",TO,[y.type===1?(e.openBlock(),e.createElementBlock("div",DO,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",VO,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",$O," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",BO,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",IO,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),y.mark?(e.openBlock(),e.createBlock(f,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):y.fileType===2?(e.openBlock(),e.createElementBlock("div",AO,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.screenshot1?(e.openBlock(),e.createElementBlock("div",LO,[e.createElementVNode("img",{src:y.screenshot1,class:"h_100vh h-full"},null,8,FO)])):(e.openBlock(),e.createElementBlock("div",OO,[e.createElementVNode("div",RO,[e.createVNode(f,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(f,{style:{margin:"0 4px"},name:"menu-video","class-name":"w-[40px] h-[40px]"}),e.createVNode(f,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",PO,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",MO,[y.type===1?(e.openBlock(),e.createElementBlock("div",UO,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",zO,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",WO," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",HO,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",jO,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),y.mark?(e.openBlock(),e.createBlock(f,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):e.createCommentVNode("",!0)],8,dO))),128))])])):e.createCommentVNode("",!0),e.unref(r).videoList&&e.unref(r).videoList.length?(e.openBlock(),e.createElementBlock("div",YO,[e.createElementVNode("div",GO,e.toDisplayString(e.unref(a)("video")),1),e.createElementVNode("div",qO,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).videoList,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,onClick:u=>e.unref(c)(y)},[y.fileType===1?(e.openBlock(),e.createElementBlock("div",XO,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.filePath&&y.del!==1?(e.openBlock(),e.createElementBlock("div",JO,[e.createElementVNode("img",{src:y.filePath,class:"h_100vh h-full"},null,8,ZO)])):(e.openBlock(),e.createElementBlock("div",QO,[e.createElementVNode("div",vO,[e.createVNode(f,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(f,{style:{margin:"0 4px"},name:"menu-image","class-name":"w-[40px] h-[40px]"}),e.createVNode(f,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",eR,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",tR,[y.type===1?(e.openBlock(),e.createElementBlock("div",nR,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",oR,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",aR," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",sR,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",lR,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),y.mark?(e.openBlock(),e.createBlock(f,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):y.fileType===4?(e.openBlock(),e.createElementBlock("div",rR,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[e.createElementVNode("div",iR,[e.createElementVNode("div",cR,[e.createVNode(f,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(f,{name:"menu-micphone--2","class-name":"w-[40px] h-[40px]"}),e.createVNode(f,{style:{"margin-left":"4px"},name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])]),e.createElementVNode("div",dR,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",pR,[y.type===1?(e.openBlock(),e.createElementBlock("div",fR,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",mR,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",hR," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",uR,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",_R,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),y.mark?(e.openBlock(),e.createBlock(f,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):y.fileType===2?(e.openBlock(),e.createElementBlock("div",gR,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.screenshot1?(e.openBlock(),e.createElementBlock("div",yR,[e.createElementVNode("img",{src:y.screenshot1,class:"h_100vh h-full"},null,8,xR)])):(e.openBlock(),e.createElementBlock("div",kR,[e.createElementVNode("div",NR,[e.createVNode(f,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(f,{style:{margin:"0 4px"},name:"menu-video","class-name":"w-[40px] h-[40px]"}),e.createVNode(f,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",bR,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",CR,[y.type===1?(e.openBlock(),e.createElementBlock("div",wR,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",ER,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",SR," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",TR,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",DR,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),y.mark?(e.openBlock(),e.createBlock(f,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):e.createCommentVNode("",!0)],8,KO))),128))])])):e.createCommentVNode("",!0)])])])])]),_:1})),[[_]])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-307cc586"]]);function VR(){const t=e.ref({}),n=e.ref({}),o=e.ref([]),a=e.ref([]),s=e.ref({}),l=e.ref(null),r=e.ref(null),i=e.ref(!1),{H:c,isShowMap:p,layersUrlList:d,mapConfig:f}=qt(),m=e.shallowRef(null),_=e.ref([]),y=e.ref([]),u=e.ref(),k=e.ref(),b=e.computed(()=>a.value.findIndex(H=>H.lat&&H.lng)!==-1);function E(A){m.value&&A.lat&&A.lng&&(c.setZoom(m.value,18),c.panTo(m.value,[A.lat,A.lng]))}function N(){if(!m.value)return;_.value=[],y.value=[];const A=[];a.value.forEach((P,z)=>{if(!(P.lng&&P.lat))return;A.push(P);let U=null;if(P.hadCheck===1){const j=P.checkState===1?"var(--hy-success)":"var(--hy-danger)";U=`<div style="width: 18px;
37
+ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:s,nextZIndex:l}},aw=hr({type:String,values:XC,required:!1}),sw=Symbol("size"),lw=Symbol("emptyValuesContextKey"),rw=yn({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>qn(t)?!t():!t}}),wr=Symbol(),Qn=e.ref();function Er(t,n=void 0){const o=e.getCurrentInstance()?e.inject(wr,Qn):Qn;return t?e.computed(()=>{var a,s;return(s=(a=o.value)==null?void 0:a[t])!=null?s:n}):o}function iw(t,n){const o=Er(),a=ra(t,e.computed(()=>{var i;return((i=o.value)==null?void 0:i.namespace)||Zn})),s=ew(e.computed(()=>{var i;return(i=o.value)==null?void 0:i.locale})),l=ow(e.computed(()=>{var i;return((i=o.value)==null?void 0:i.zIndex)||Nr})),r=e.computed(()=>{var i;return e.unref(n)||((i=o.value)==null?void 0:i.size)||""});return Sr(e.computed(()=>e.unref(o)||{})),{ns:a,locale:s,zIndex:l,size:r}}const Sr=(t,n,o=!1)=>{var a;const s=!!e.getCurrentInstance(),l=s?Er():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?cw(l.value,c):c});return r(wr,i),r(gr,e.computed(()=>i.value.locale)),r(yr,e.computed(()=>i.value.namespace)),r(Cr,e.computed(()=>i.value.zIndex)),r(sw,{size:e.computed(()=>i.value.size||"")}),r(lw,e.computed(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(o||!Qn.value)&&(Qn.value=i.value),i},cw=(t,n)=>{const o=[...new Set([...fr(t),...fr(n)])],a={};for(const s of o)a[s]=n[s]!==void 0?n[s]:t[s];return a},dw=yn({a11y:{type:Boolean,default:!0},locale:{type:st(Object)},size:aw,button:{type:st(Object)},experimentalFeatures:{type:st(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:st(Object)},zIndex:Number,namespace:{type:String,default:"el"},...rw}),ve={};e.defineComponent({name:"ElConfigProvider",props:dw,setup(t,{slots:n}){e.watch(()=>t.message,a=>{Object.assign(ve,a??{})},{immediate:!0,deep:!0});const o=Sr(t);return()=>e.renderSlot(n,"default",{config:o==null?void 0:o.value})}});var ia=(t,n)=>{const o=t.__vccOpts||t;for(const[a,s]of n)o[a]=s;return o};const pw=yn({size:{type:st([Number,String])},color:{type:String}}),fw=e.defineComponent({name:"ElIcon",inheritAttrs:!1}),mw=e.defineComponent({...fw,props:pw,setup(t){const n=t,o=ra("icon"),a=e.computed(()=>{const{size:s,color:l}=n;return!s&&!l?{}:{fontSize:MC(s)?void 0:la(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 hw=ia(mw,[["__file","icon.vue"]]);const Tr=_r(hw),uw=yn({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:st([String,Object,Array])},offset:{type:st(Array),default:[0,0]},badgeClass:{type:String}}),_w=e.defineComponent({name:"ElBadge"}),gw=e.defineComponent({..._w,props:uw,setup(t,{expose:n}){const o=t,a=ra("badge"),s=e.computed(()=>o.isDot?"":At(o.value)&&At(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:la(-((i=(r=o.offset)==null?void 0:r[0])!=null?i:0)),marginTop:la((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 yw=ia(gw,[["__file","badge.vue"]]);const xw=_r(yw),Dr=["success","info","warning","error"],Ue=JC({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:Kt?document.body:void 0}),kw=yn({customClass:{type:String,default:Ue.customClass},center:{type:Boolean,default:Ue.center},dangerouslyUseHTMLString:{type:Boolean,default:Ue.dangerouslyUseHTMLString},duration:{type:Number,default:Ue.duration},icon:{type:YC,default:Ue.icon},id:{type:String,default:Ue.id},message:{type:st([String,Object,Function]),default:Ue.message},onClose:{type:st(Function),default:Ue.onClose},showClose:{type:Boolean,default:Ue.showClose},type:{type:String,values:Dr,default:Ue.type},plain:{type:Boolean,default:Ue.plain},offset:{type:Number,default:Ue.offset},zIndex:{type:Number,default:Ue.zIndex},grouping:{type:Boolean,default:Ue.grouping},repeatNum:{type:Number,default:Ue.repeatNum}}),Nw={destroy:()=>!0},et=e.shallowReactive([]),bw=t=>{const n=et.findIndex(s=>s.id===t),o=et[n];let a;return n>0&&(a=et[n-1]),{current:o,prev:a}},Cw=t=>{const{prev:n}=bw(t);return n?n.vm.exposed.bottom.value:0},ww=(t,n)=>et.findIndex(a=>a.id===t)>0?16:n,Ew=e.defineComponent({name:"ElMessage"}),Sw=e.defineComponent({...Ew,props:kw,emits:Nw,setup(t,{expose:n}){const o=t,{Close:a}=GC,{ns:s,zIndex:l}=iw("message"),{currentZIndex:r,nextZIndex:i}=l,c=e.ref(),p=e.ref(!1),d=e.ref(0);let f;const m=e.computed(()=>o.type?o.type==="error"?"danger":o.type:"info"),_=e.computed(()=>{const h=o.type;return{[s.bm("icon",h)]:h&&ur[h]}}),y=e.computed(()=>o.icon||ur[o.type]||""),u=e.computed(()=>Cw(o.id)),k=e.computed(()=>ww(o.id,o.offset)+u.value),b=e.computed(()=>d.value+k.value),E=e.computed(()=>({top:`${k.value}px`,zIndex:r.value}));function N(){o.duration!==0&&({stop:f}=rb(()=>{V()},o.duration))}function S(){f==null||f()}function V(){p.value=!1}function $({code:h}){h===KC.esc&&V()}return e.onMounted(()=>{N(),i(),p.value=!0}),e.watch(()=>o.repeatNum,()=>{S(),N()}),ib(document,"keydown",$),mb(c,()=>{d.value=c.value.getBoundingClientRect().height}),n({visible:p,bottom:b,close:V}),(h,g)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(s).b("fade"),onBeforeLeave:h.onClose,onAfterLeave:C=>h.$emit("destroy"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:h.id,ref_key:"messageRef",ref:c,class:e.normalizeClass([e.unref(s).b(),{[e.unref(s).m(h.type)]:h.type},e.unref(s).is("center",h.center),e.unref(s).is("closable",h.showClose),e.unref(s).is("plain",h.plain),h.customClass]),style:e.normalizeStyle(e.unref(E)),role:"alert",onMouseenter:S,onMouseleave:N},[h.repeatNum>1?(e.openBlock(),e.createBlock(e.unref(xw),{key:0,value:h.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(y)?(e.openBlock(),e.createBlock(e.unref(Tr),{key:1,class:e.normalizeClass([e.unref(s).e("icon"),e.unref(_)])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(y))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.renderSlot(h.$slots,"default",{},()=>[h.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:h.message},null,10,["innerHTML"])],2112)):(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(s).e("content"))},e.toDisplayString(h.message),3))]),h.showClose?(e.openBlock(),e.createBlock(e.unref(Tr),{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 Tw=ia(Sw,[["__file","message.vue"]]);let Dw=1;const Vr=t=>{const n=!t||un(t)||e.isVNode(t)||qn(t)?{message:t}:t,o={...Ue,...n};if(!o.appendTo)o.appendTo=document.body;else if(un(o.appendTo)){let a=document.querySelector(o.appendTo);UC(a)||(Jn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),o.appendTo=a}return pr(ve.grouping)&&!o.grouping&&(o.grouping=ve.grouping),At(ve.duration)&&o.duration===3e3&&(o.duration=ve.duration),At(ve.offset)&&o.offset===16&&(o.offset=ve.offset),pr(ve.showClose)&&!o.showClose&&(o.showClose=ve.showClose),o},Vw=t=>{const n=et.indexOf(t);if(n===-1)return;et.splice(n,1);const{handler:o}=t;o.close()},$w=({appendTo:t,...n},o)=>{const a=`message_${Dw++}`,s=n.onClose,l=document.createElement("div"),r={...n,id:a,onClose:()=>{s==null||s(),Vw(d)},onDestroy:()=>{e.render(null,l)}},i=e.createVNode(Tw,r,qn(r.message)||e.isVNode(r.message)?{default:qn(r.message)?r.message:()=>r.message}:null);i.appContext=o||Zt._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},Zt=(t={},n)=>{if(!Kt)return{close:()=>{}};const o=Vr(t);if(o.grouping&&et.length){const s=et.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(At(ve.max)&&et.length>=ve.max)return{close:()=>{}};const a=$w(o,n);return et.push(a),a.handler};Dr.forEach(t=>{Zt[t]=(n={},o)=>{const a=Vr(n);return Zt({...a,type:t},o)}});function Bw(t){for(const n of et)(!t||t===n.props.type)&&n.handler.close()}Zt.closeAll=Bw,Zt._context=null;const Se=qC(Zt,"$message");function Iw({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),f=e.ref({lat:"",lng:""}),m=e.computed(()=>{const w=Number(f.value.lat);return w<=90&&w>=-90?w:"内容错误"}),_=e.computed(()=>{const w=Number(f.value.lng);return w<=180&&w>=-180?w:"内容错误"});function y(){m.value&&m.value!=="内容错误"&&_&&_.value!=="内容错误"&&u(f.value)}function u(w){if(w.lng&&w.lat){t.h.panTo(t.map,[w.lat,w.lng]),t.h.setZoom(t.map,18);const D=t.h.marker(t.map,[w.lat,w.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,D)},3e3),N(1)}}function k(w,D){return T=>{if(!s.value)return!1;s.value=!1,setTimeout(()=>{w(T),s.value=!0},D)}}function b(){console.log("触发加载"),!c.value&&(p.value=!0,r.value++,e.nextTick(()=>{S()}))}function E(){n.value=null,f.value={lat:"",lng:""},N()}function N(w){o.value=[],r.value=1,c.value=!1,p.value=!1,a.value!==5&&e.nextTick(()=>{w!==1&&S()})}function S(){n.value&&n.value.length?a.value===1?V():a.value===4?h():a.value===6&&$():N(1)}async function V(){const w=await t.poi.placeSearch({keywords:n.value,offset:l.value,page:r.value});if(console.log(w),w){const D=w,T=[];for(let L=0;L<D.length;L++){const A=D[L];T.push({...A,id:He.buildUUID(),address:A.address||A.name,title:g(A.name)})}e.nextTick(()=>{p.value=!1,o.value.push(...T)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}async function $(){const w=await X0({page:r.value-1,size:10,query:n.value});if(w.code===200){const D=w.data.content,T=[];if(D!=null&&D.length){for(let L=0;L<D.length;L++){const A=D[L];T.push({id:A.id,address:A.address||A.pointName,...A,title:g(A.pointName)})}e.nextTick(()=>{p.value=!1,o.value.push(...T),r.value===w.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}async function h(){const w=await jf({page:r.value-1,size:10,query:n.value});if(w.code===200){const D=w.data.content,T=[];if(D!=null&&D.length){for(let L=0;L<D.length;L++){const A=D[L];T.push({id:A.id,address:A.address||A.companyName,...A,title:g(A.companyName)})}e.nextTick(()=>{p.value=!1,o.value.push(...T),r.value===w.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}function g(w){const D=[];for(let T=0;T<w.length;T++){const L=w[T],A=n.value.indexOf(L),H={content:w[T]};A===-1?H.type=1:H.type=2,D.push(H)}return D}function C(){if(a.value===1)return"请输入地址";if(a.value===4)return"请输入部门名称";if(a.value===6)return"请输入巡查点"}return{$t:x,searchAddress:n,searchResultList:o,searchAddressType:a,valid:s,size:l,page:r,nextPageParams:i,noMore:c,loading:p,disabled:d,mapJumpLocationFn:u,throttle:k,load:b,resetFn:N,searchAddressTypeFn:E,placeholderFn:C,inputSearch:f,showSearchLat:m,showSearchLng:_,searchLngLat:y}}const Aw={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"},Lw=["src"],Fw={class:"ml_10 ml-[10px]",style:{width:"calc(100% - 34px)"}},Ow={class:"title fs_14 c_fff over_one_line fw_600 text-[14px] text-hy-text-main truncate font-bold"},Rw={class:"address over_one_line fs_12 c_fff truncate text-[12px] text-hy-text-main"},Pw={class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"},Mw={class:"ml_20 ml-[20px]"},Uw=be(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",Aw,[e.createElementVNode("img",{src:e.unref(l).orgTypeIcon,class:"w-full h-full"},null,8,Lw)])):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",Fw,[e.createElementVNode("div",Ow,[(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",Rw,e.toDisplayString(e.unref(l).address),1),e.createElementVNode("div",Pw,[e.createElementVNode("span",null,"经度:"+e.toDisplayString(e.unref(l).lng),1),e.createElementVNode("span",Mw,"维度:"+e.toDisplayString(e.unref(l).lat),1)])])])}}}),[["__scopeId","data-v-393b9954"]]),zw=t=>(e.pushScopeId("data-v-5856b649"),t=t(),e.popScopeId(),t),Ww={style:{display:"inline-block","flex-direction":"column",width:"300px"},class:"search_lightColor pos_r relative"},Hw={class:"r-f flex"},jw={class:"flex",style:{width:"calc(100% - 42px)"}},Yw={key:1,class:"w-[58%] flex justify-between ml-[4px]"},Gw={class:"flex flex-col leading-[20px] ml-[10px]"},qw=zw(()=>e.createElementVNode("span",{class:"text-[14px] font-[600] text-hy-text-main mb-[5px]"},"填写经纬度",-1)),Kw={class:"text-[12px] text-hy-text-secondary"},Xw={class:"text-[12px] text-hy-text-secondary"},Jw={key:2,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},Zw={key:3,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},ca=be(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:f,noMore:m,mapJumpLocationFn:_,placeholderFn:y,load:u,throttle:k,searchLngLat:b}=Iw({props:n});return e.onMounted(()=>{var E;a.value=(E=n.searchTypes[0])==null?void 0:E.value}),(E,N)=>{const S=e.resolveComponent("el-option"),V=e.resolveComponent("el-select"),$=e.resolveComponent("el-input"),h=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Ww,[e.createElementVNode("div",Hw,[e.createElementVNode("div",jw,[e.createVNode(V,{modelValue:e.unref(a),"onUpdate:modelValue":N[0]||(N[0]=g=>e.isRef(a)?a.value=g: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(E.searchTypes,g=>(e.openBlock(),e.createBlock(S,{key:g.value,value:g.value,label:g.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":N[1]||(N[1]=g=>e.isRef(c)?c.value=g: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(y)(),onInput:N[2]||(N[2]=e.unref(k)(e.unref(d),1e3))},null,8,["modelValue","placeholder"])):(e.openBlock(),e.createElementBlock("div",Yw,[e.createVNode($,{modelValue:e.unref(r).lng,"onUpdate:modelValue":N[3]||(N[3]=g=>e.unref(r).lng=g),placeholder:"经度",class:"!w-[47.5%]",clearable:"",onInput:N[4]||(N[4]=g=>e.unref(He.onlyNumber)(e.unref(r),"lng"))},null,8,["modelValue"]),e.createVNode($,{modelValue:e.unref(r).lat,"onUpdate:modelValue":N[5]||(N[5]=g=>e.unref(r).lat=g),placeholder:"纬度",class:"!w-[47.5%]",clearable:"",onInput:N[6]||(N[6]=g=>e.unref(He.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:N[7]||(N[7]=(...g)=>e.unref(d)&&e.unref(d)(...g))},[e.createVNode(h,{name:"base-search","class-name":"w-[16px] h-[16px] text-hy-text-main"})])]),e.unref(p).length?(e.openBlock(),e.createBlock(e.unref(Hs),{key:0,"infinite-scroll-disabled":"disabled",class:"filterContentList",style:{height:"400px","overflow-y":"auto"},"data-key":"id","data-sources":e.unref(p),"data-component":Uw,keeps:10,"extra-props":{mapJumpLocationFn:e.unref(_),searchAddressType:e.unref(a)},"estimate-size":88,onTobottom:e.unref(u)},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:N[8]||(N[8]=(...g)=>e.unref(b)&&e.unref(b)(...g))},[e.createVNode(h,{name:"base-maplocation","class-name":"w-[26px] h-[26px] ml-[10px]"}),e.createElementVNode("div",Gw,[qw,e.createElementVNode("span",Kw,[e.createTextVNode("经度:"),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)==="内容错误"?"text-hy-danger":"")},e.toDisplayString(e.unref(l)||"请输入经度"),3)]),e.createElementVNode("span",Xw,[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(f)?(e.openBlock(),e.createElementBlock("p",Jw," 加载中... ")):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createElementBlock("p",Zw," 没有更多了 ")):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-5856b649"]]);function Qw(t){return oe.post({url:"mapRail/findAllWithDevice",data:t,isFormData:!0})}function vw(t){return oe.post({url:"mapRail/deleteBatch",data:t,isFormData:!0})}function eE(t){return oe.post({url:t.id?"mapRail/update":"mapRail/insert",data:t,isJson:!0})}function $r(t){return oe.post({url:"mapRail/select",data:t,isFormData:!0})}function tE(t){const n=t.emit,{mapConfig:o,isShowMap:a,layersUrlList:s,H:l,POI:r}=qt(),i=e.ref(null),c=e.ref(null),p=e.shallowRef(null),d=e.ref({railName:[{required:!0,message:x("pleaseEnterTheNameOfTheElectronicFence"),trigger:"blur"}]}),f=e.ref({}),m=e.ref(!0),_=e.ref(!1),y=e.ref(100),u=e.ref("fixedPoint"),k=e.ref(null),b=e.ref(!1),E=e.shallowRef(null);e.watch(()=>y.value,P=>{y.value=P.replace(/\D/g,"")});function N(P,z){return U=>{if(!m.value)return!1;m.value=!1,setTimeout(()=>{P(U),m.value=!0},z)}}function S(){let P="";u.value==="fixedPoint"?P=x("mouseClicksOnTheMapAndReleasesToEnd"):u.value==="circle"?P=x("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):P=x("mouseClicksOnTheMapAndRightClicksToEnd"),k.value=P}async function V(){const P=je.getCache("userInfo");let z=null;P!=null&&P.lng&&(P!=null&&P.lat)&&(z=[P.lat,P.lng]),(z==null?void 0:z.length)===0&&(z=null),p.value=await l.map("addElectronicFence_container",{maxZoom:o.maxZoom||18,minZoom:o.minZoom||13,zoom:o.zoom||13,center:z,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:s,layerType:1}),p.value.on("complete",U=>{var M;if(console.log("加载完成"),(M=f.value.pointList)!=null&&M.length){const j=f.value.pointList.map(F=>({lat:F.lat,lng:F.lng}));C(j)}}),p.value.on("left-click",U=>{D(U)})}function $(){w(),E.value&&(l.removePolygon(p.value,E.value),E.value=null)}function h(){$(),u.value!=="fixedPoint"?g():b.value=!0}function g(){const P={templineStyle:{color:"#2DF2FF"},hintlineStyle:{color:"#2DF2FF",dashArray:[5,5]}};console.log(p.value,u.value,P,C),l.pm(p.value,u.value,P,C);let z="";u.value==="circle"?z=x("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):u.value==="polygon"&&(z=x("mouseClicksOnTheMapAndRightClicksToEnd")),z&&Se.success(z)}function C(P){console.log(P),E.value=l.polygon(p.value,P,{weight:2,color:"#2DF2FF",opacity:1,fillColor:"#2DF2FF",fillOpacity:.3}),l.fitBounds(p.value,P.map(z=>[z.lat,z.lng])),w()}function w(){p.value&&l.removePM(p.value)}function D(P){if(b.value){const z=l.searchByCircle({lat:P.latlng.lat,lng:P.latlng.lng},y.value/2);C(z),b.value=!1}}async function T(P){const z=await $r({id:P});z.code===200&&(f.value={...z.data},_.value=!0,e.nextTick(()=>{V()}))}function L(P){var z;f.value={},y.value=100,b.value=!1,$(),u.value="fixedPoint",S(),c.value&&((z=c.value)==null||z.resetFields()),P?T(P):(_.value=!0,e.nextTick(()=>{V()}))}function A(){console.log(E.value)}function H(){var z;A();let P=[];if(E.value&&(P=l.getShapeLatLngs(E.value)),(P==null?void 0:P.length)===0||!E.value)return Se.error("请完成电子围栏绘制后再进行保存操作"),!1;(z=c.value)==null||z.validate(async U=>{if(U){const M={railName:f.value.railName};M.pointList=P.map(F=>({lng:F.lng,lat:F.lat})),M.id=f.value.id||null,(await eE(M)).code===200&&(Se.success(`${x("operationSuccessful")} !`),n("on-submit"),_.value=!1)}})}function O(){n("on-close"),_.value=!1}return{addElectronicFenceContainerRef:i,formRef:c,H:l,map:p,POI:r,isShowMap:a,rules:d,form:f,valid:m,dialogVisible:_,radius:y,mouseToolName:u,tips:k,onClose:O,show:L,onSubmit:H,tipsFn:S,initMap:V,mapRailSelectFn:T,throttle:N,startDraw:h,removePolygon:$}}const nE=t=>(e.pushScopeId("data-v-b8fbad8e"),t=t(),e.popScopeId(),t),oE={class:"text-hy-text-main"},aE={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]"},sE={class:"dialog_body"},lE={class:""},rE={class:"form-label"},iE={class:"relative flex flex-row h-[50px]"},cE={class:"z-[1]"},dE={class:"form-label"},pE={class:"w-full flex items-center form-item"},fE={class:"form-label"},mE={class:"flex items-center form-item"},hE=nE(()=>e.createElementVNode("span",{class:"text-sm ml-[10px] text-hy-text-secondary flex-shrink"},"M",-1)),uE={class:"flex items-center form-item"},_E={class:"text-xs text-hy-text-secondary flex items-center"},gE={class:"text-hy-main"},yE={class:"text-right mt-[10px]"},xE=be(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:f,H:m,map:_,POI:y,isShowMap:u,onClose:k,tipsFn:b,show:E,startDraw:N,removePolygon:S,onSubmit:V}=tE({emit:a});return n({show:E}),e.onUnmounted(()=>{m.removeMap(_.value)}),($,h)=>{const g=e.resolveComponent("svg-icon"),C=e.resolveComponent("el-input"),w=e.resolveComponent("el-form-item"),D=e.resolveComponent("el-col"),T=e.resolveComponent("el-option"),L=e.resolveComponent("el-select"),A=e.resolveComponent("el-button"),H=$t,O=e.resolveComponent("el-icon"),P=e.resolveComponent("el-row"),z=e.resolveComponent("el-form"),U=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(U,{modelValue:e.unref(c),"onUpdate:modelValue":h[4]||(h[4]=M=>e.isRef(c)?c.value=M: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",oE,[e.createElementVNode("div",aE,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("electronicFence")),1),e.createElementVNode("div",{class:"absolute top-[15px] right-[15px] cursor-pointer",onClick:h[0]||(h[0]=(...M)=>e.unref(k)&&e.unref(k)(...M))},[e.createVNode(g,{name:"icon-close",width:"26",height:"26","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",sE,[e.createVNode(z,{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(D,{span:24},{default:e.withCtx(()=>[e.createVNode(w,{prop:"railName"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",lE,e.toDisplayString(e.unref(x)("electronicFenceName")),1)])]),default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(i).railName,"onUpdate:modelValue":h[1]||(h[1]=M=>e.unref(i).railName=M),placeholder:e.unref(x)("pleaseEnterTheNameOfTheElectronicFence"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})]),_:1}),e.createVNode(D,{span:10},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",rE,e.toDisplayString(e.unref(x)("electronicFenceRange")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",iE,[e.createElementVNode("div",cE,[e.unref(u)&&e.unref(_)?(e.openBlock(),e.createBlock(ca,{key:0,h:e.unref(m),map:e.unref(_),poi:e.unref(y)},null,8,["h","map","poi"])):e.createCommentVNode("",!0)])])]),_:1})]),_:1}),e.createVNode(D,{span:5},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0 pl-[20px]"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",dE,e.toDisplayString(e.unref(x)("drawingMethod")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",pE,[e.createVNode(L,{modelValue:e.unref(d),"onUpdate:modelValue":h[2]||(h[2]=M=>e.isRef(d)?d.value=M:null),placeholder:e.unref(x)("pleaseSelectTheDrawingMethod"),class:"!w-full",onChange:e.unref(b)},{default:e.withCtx(()=>[e.createVNode(T,{label:e.unref(x)("fixedPointRange"),value:"fixedPoint"},null,8,["label"]),e.createVNode(T,{label:e.unref(x)("customCircle"),value:"circle"},null,8,["label"]),e.createVNode(T,{label:e.unref(x)("customPolygon"),value:"polygon"},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])])]),_:1})]),_:1}),e.unref(d)==="fixedPoint"?(e.openBlock(),e.createBlock(D,{key:0,span:3},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",fE,e.toDisplayString(e.unref(x)("rangeDistance")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",mE,[e.createVNode(C,{modelValue:e.unref(p),"onUpdate:modelValue":h[3]||(h[3]=M=>e.isRef(p)?p.value=M:null),maxlength:"6",placeholder:e.unref(x)("unitMeter"),clearable:""},null,8,["modelValue","placeholder"]),hE])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(D,{span:6},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("operationButton")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",uE,[e.createVNode(A,{class:"button_function",onClick:e.unref(N)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("startDrawing")),1)]),_:1},8,["onClick"]),e.createVNode(A,{type:"danger",class:"",onClick:e.unref(S)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("clearDrawing")),1)]),_:1},8,["onClick"])])]),_:1})]),_:1}),e.createVNode(D,{span:24},{default:e.withCtx(()=>[e.createVNode(w,null,{default:e.withCtx(()=>[e.unref(u)?(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",_E,[e.createVNode(O,{class:"text-sm"},{default:e.withCtx(()=>[e.createVNode(H)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("afterClickingToStartDrawing"))+" ",1),e.createElementVNode("span",gE,e.toDisplayString(e.unref(f)),1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"]),e.createElementVNode("div",yE,[e.createVNode(A,{type:"primary",class:"w-[100px]",onClick:e.unref(k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("close")),1)]),_:1},8,["onClick"]),e.createVNode(A,{class:"w-[100px]",onClick:e.unref(V)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("save")),1)]),_:1},8,["onClick"])])])])]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-b8fbad8e"]]);function kE(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(f,m){n("on-map-display-fn",{id:f,type:!m})}const i=e.computed(()=>f=>{var m;return(m=o.value.mapDisplayList)!=null&&m.length?o.value.mapDisplayList.findIndex(y=>y===f)!==-1:!1});function c(f){var m;(m=a.value)==null||m.show(f)}function p(){var f;(f=s.value)==null||f.getTableData(),n("on-get-data")}function d(f){mt({tipsTitle:x("deleteElectronicFence"),tipsContent:`<div><p>${x("confirmToDeleteTheCurrentDeletedElectronicFence")}?</p></div>`,submitBtnText:x("confirm-0")},async()=>{(await vw({ids:f})).code===200&&(n("on-delete",f),pe.ElMessage.success(x("deletedSuccessfully")),p())})}return{addElectronicFenceRef:a,AppTableRef:s,requestParams:l,changeFn:r,mapDisplayFn:i,addElectronicFenceShow:c,getData:p,deleteShow:d}}const NE={class:"w-full h-full"},bE={class:"flex items-center justify-center"},CE={class:"ml-[6px]"},wE={class:"flex"},EE=e.defineComponent({__name:"electronic-fence",props:{initParams:{default:()=>{}},mapDisplayList:{default:()=>[]},tableColumns:{default:()=>[{label:x("electronicFenceName"),prop:"railName"},{label:x("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:f}=kE({emit:a,props:o});return e.onMounted(()=>{r.value={...o.initParams}}),(m,_)=>{const y=e.resolveComponent("svg-icon"),u=e.resolveComponent("el-button"),k=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock("div",NE,[e.createVNode(Yt,{ref_key:"AppTableRef",ref:l,height:"100%","show-footer":!0,"search-arr":[{label:e.unref(x)("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(u,{type:"success",class:"",onClick:_[0]||(_[0]=b=>e.unref(p)())},{default:e.withCtx(()=>[e.createElementVNode("div",bE,[e.createVNode(y,{width:"16",height:"16",name:"base-add-3"}),e.createElementVNode("span",CE,e.toDisplayString(e.unref(x)("addElectronicFence")),1)])]),_:1}),e.renderSlot(m.$slots,"operator-left-box")])]),mapDisplay:e.withCtx(({row:b})=>[e.createElementVNode("div",null,[e.createVNode(k,{class:"switch_custom switch_width_60","model-value":e.unref(c)(b.id),"active-text":e.unref(x)("show"),"inactive-text":e.unref(x)("hide"),"inline-prompt":"","active-color":"#5AB95F","inactive-color":"var(--hy-dialog-bg-1)",onClick:E=>e.unref(i)(b.id,e.unref(c)(b.id))},null,8,["model-value","active-text","inactive-text","onClick"])])]),isDefault:e.withCtx(({row:b})=>[e.renderSlot(m.$slots,"isDefault",{row:b})]),operator:e.withCtx(({row:b})=>[e.createElementVNode("div",wE,[e.createVNode(Me,{name:"icon-edit",tips:e.unref(x)("edit"),onClick:E=>e.unref(p)(b.id)},null,8,["tips","onClick"]),e.createVNode(Me,{class:"hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-text-danger",name:"base-delete",tips:e.unref(x)("delete"),onClick:E=>e.unref(f)(b.id)},null,8,["tips","onClick"])])]),_:3},8,["search-arr","column-list","search-form"]),e.createVNode(xE,{ref_key:"addElectronicFenceRef",ref:s,onOnSubmit:e.unref(d)},null,8,["onOnSubmit"])])}}});function SE({emit:t,props:n}){const o=e.shallowRef(),a=e.shallowRef(),s=e.ref(),{H:l,POI:r,isShowMap:i,layersUrlList:c,mapConfig:p}=qt();function d(){i&&e.nextTick(async()=>{const E=je.getCache("userInfo");let N=[];E!=null&&E.lng&&(E!=null&&E.lat)&&(N=[E.lat,E.lng]),N.length===0&&(N=null),o.value=await l.map("selectMapLocation",{maxZoom:p.maxZoom||18,minZoom:p.minZoom||13,zoom:p.zoom||13,center:N,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&&u(n.latlng)}),o.value.on("left-click",S=>{s.value=null,m({lng:S.latlng.lng,lat:S.latlng.lat})})})}async function f(E){const N=await r.placeSearch({keywords:E,offset:10,page:1});if(N){const S=N[0];m({lng:S.lng,lat:S.lat})}else t("on-geographical-position",{})}async function m(E){const N=await r.reverseGeocoder(E);if(!(N&&N.address.length)){_(E),Se({type:"warning",message:"未获取到地址信息"});return}y({lng:E.lng,lat:E.lat,address:N.formatted_address,name:N.formatted_address,...N})}function _(E){s.value={lng:E.lng,lat:E.lat,address:"",name:""},t("on-geographical-position",s.value),u()}function y(E){s.value=E,t("on-geographical-position",E),u()}function u(E){a.value&&l.removeMarker(o.value,a.value);let N,S;E?(N=E.lat,S=E.lng):(N=s.value.lat,S=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,[N,S]),a.value=l.marker(o.value,[N,S],V)}function k(){a.value&&l.removeMarker(o.value,a.value)}function b(E){a.value&&l.updateMarkerIcon(a.value,E)}return{H:l,map:o,POI:r,marker:a,isShowMap:i,initMap:d,geographicalPositionFn:y,throughCoordinatePosition:m,placeSearchFn:f,setContentFn:b,removeMarker:k}}const TE={class:"w-full h-full relative"},DE={key:1,id:"selectMapLocation",ref:"selectMapLocation",class:"w-full h-full"},VE=be(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:f,map:m,POI:_}=SE({emit:s,props:a});return e.onMounted(()=>{r()}),n({throughCoordinatePosition:i,placeSearchFn:c,setContentFn:p,removeMarker:d,H:f,map:m,POI:_}),(y,u)=>(e.openBlock(),e.createElementBlock("div",TE,[e.unref(l)?(e.openBlock(),e.createElementBlock("div",DE,null,512)):(e.openBlock(),e.createBlock(pn,{key:0,class:"absolute top-0 left-0 z-[2]"}))]))}}),[["__scopeId","data-v-e69b3725"]]),$E={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},BE=[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 IE(t,n){return e.openBlock(),e.createElementBlock("svg",$E,[...BE])}const AE={name:"ep-arrow-down",render:IE},LE={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},FE=[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 OE(t,n){return e.openBlock(),e.createElementBlock("svg",LE,[...FE])}const RE={name:"ep-arrow-up",render:OE},PE={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},ME=[e.createElementVNode("path",{fill:"currentColor",d:"M672 192L288 511.936L672 832z"},null,-1)];function UE(t,n){return e.openBlock(),e.createElementBlock("svg",PE,[...ME])}const zE={name:"ep-caret-left",render:UE};function Br(t){return oe.post({url:"spotCheck/task/detail",data:t,isFormData:!0})}function WE(t){return oe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function HE(t){return oe.post({url:"spotCheck/task/end",data:t,isFormData:!0})}function jE(t){return oe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function YE(t){return oe.post({url:t.id?"spotCheck/timing/update":"spotCheck/timing/insert",data:t,isJson:!0})}function GE(t){return oe.post({url:"spotCheck/template/detail",data:t,isFormData:!0})}function qE(t){return oe.post({url:t.id?"spotCheck/template/update":"spotCheck/template/insert",data:t,isJson:!0})}function KE(t){return oe.post({url:"spotCheck/task/taskExecute",data:t,isJson:!0})}function Ir(t){return oe.post({url:"spotCheck/task/pttFile/page",data:t,isFormData:!0})}function XE(t){return oe.post({url:"spotCheck/task/groupBind",data:t,isJson:!0})}function JE({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(k){const{deviceId:b,checkStatus:E}=k||{};if(!b)return;const N=p.value.findIndex(S=>S.deviceId===b);if(N!==-1){switch(p.value[N].checkStatus){case 1:a.value--;break;case 2:s.value--;break}switch(E){case 2:s.value++;break;case 3:l.value++;break;case 4:r.value++;break}e.nextTick(()=>{m(),p.value[N].checkStatus=E})}}function f(){let k=0,b=0,E=0,N=0,S=0,V=0;p.value.forEach($=>{const h=$.checkStatus,g=$.intercomGroupTem,C=$.onlineState;switch(g===1&&V++,C===2&&S++,h){case 1:k++;break;case 2:b++;break;case 3:E++;break;case 4:N++;break}}),e.nextTick(()=>{a.value=k,s.value=b,l.value=E,r.value=N,i.value=S,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 y(){}async function u(k){const{code:b,data:E=[]}=await WE({taskId:t.form.id,checkStatus:k||null});b===200&&(p.value=E,t.subscribeStatus&&f(),n("change",p.value))}return{uniqueId:o,beReceiveNum:a,receivingNum:s,finishNum:l,notFinishNum:r,offLineNum:i,intercomGroupTemNum:c,taskDeviceList:p,setDeviceStatus:d,initDeviceStatusList:f,onCountStatus:m,spotCheckSubscribe:_,spotCheckUnsubscribe:y,getData:u}}const ZE={class:"h-[58px] bg-hy-dialog-bg-2 border border-box border-hy-border-2 rounded px-2 box-border flex items-center"},QE={class:"relative"},vE={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"},eS={class:"scale-75"},tS={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"},nS={class:"flex-grow w-0 flex"},oS={class:"mx-2 flex-grow w-0"},aS={class:"truncate"},sS={class:"text-hy-text-secondary truncate"},lS={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"},rS={class:"r-f tac flex items-center justify-center flex-col"},iS={class:"mt-3"},da=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}=JE({props:o,emit:a});return e.onMounted(()=>{r.value=o.form.uniqueId,o.subscribeStatus&&i(),c()}),e.onUnmounted(()=>{l()}),(p,d)=>{const f=e.resolveComponent("el-tooltip"),m=e.resolveComponent("svg-icon"),_=e.resolveComponent("el-col"),y=e.resolveComponent("el-row");return e.openBlock(),e.createBlock(y,{gutter:8,class:"h-full"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),u=>(e.openBlock(),e.createBlock(_,{key:u.id,span:p.paramsSpan,class:"mb-2"},{default:e.withCtx(()=>[e.createElementVNode("div",ZE,[e.createElementVNode("div",QE,[e.createVNode(xt,{class:"w-[36px] h-[36px]"}),u.intercomGroupTem===1?(e.openBlock(),e.createBlock(f,{key:0,class:"item",effect:"dark",content:e.unref(x)("theDeviceWasInATemporaryGroupWhenTheSpotCheckWasInitiated"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",vE,[e.createElementVNode("span",eS,e.toDisplayString(e.unref(x)("lin")),1)])]),_:1},8,["content"])):u.onlineState===2?(e.openBlock(),e.createBlock(f,{key:1,class:"item",effect:"dark",content:e.unref(x)("theDeviceWasOfflineWhenTheSpotCheckWasInitiated"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",tS,[e.createVNode(m,{name:"icon-off-line","class-name":"!w-[10px] !h-[14px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",nS,[e.createElementVNode("div",oS,[e.createElementVNode("p",aS,e.toDisplayString(u.devName),1),e.createElementVNode("p",sS,e.toDisplayString(u.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(x)("toBeReceived-1")),513),[[e.vShow,u.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(x)("receiving-1")),513),[[e.vShow,u.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(x)("completed-0")),513),[[e.vShow,u.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(x)("uncompleted-0")),513),[[e.vShow,u.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",lS,[e.createElementVNode("div",rS,[e.createVNode(m,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",iS,e.toDisplayString(e.unref(x)("noData")),1)])])]),_:1})):e.createCommentVNode("",!0)]),_:1})}}});function cS({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),f=e.ref(!0),m=e.ref(null),_=e.ref(),y=e.ref();function u(){n.value=t.orgGroupInsertTemp.id,i.value=[],f.value=!0,b(),e.nextTick(()=>{V()})}function k(){if(!t.realtimeRequestType)return;const C=async()=>{const w=i.value[i.value.length-1];if(!w){C();return}const D={page:0,taskId:t.taskId,largeThenTimestamp:w.fileTimestamp},T=c.value.scrollTop,L=c.value.offsetHeight-46,A=document.querySelector(`#item-${w.id}`);if(A){const H=A.offsetTop,O=await Ir(D);if(O.code===200){const{content:P=[],totalElements:z=0}=O.data;l.value=z,e.nextTick(()=>{P.forEach(U=>{i.value.findIndex(j=>j.id===U.id)===-1&&i.value.push(U)}),T>=H-L&&S()})}}};m.value&&clearInterval(m.value),m.value=setInterval(()=>{C()},1e4)}async function b(){var L;let C=null;i.value.length&&(C=i[0].value.id);const D={page:0,taskId:t.taskId,lessThenTimestamp:(L=i.value[0])==null?void 0:L.fileTimestamp};s.value=null,a.value=!0,k();const T=await Ir(D);if(T.code===200){const{content:A=[],totalElements:H=0}=T.data;l.value=H,e.nextTick(()=>{var O;C?A.forEach(P=>{const z=i.value.findIndex(U=>U.id===P.id);P.fileDtmEnd||(P.fileDtmEnd=""),z===-1&&i.value.unshift(P)}):i.value=A.reverse(),C?(E(C),s.value=(O=i.value[this.chatMessageList.length-1])==null?void 0:O.id):S(),e.nextTick(()=>{a.value=!1})})}}function E(C){e.nextTick(()=>{c.value.scrollTo(0,document.querySelector(`#item-${C}`).offsetTop-46)})}function N(){l.value!==0&&b()}function S(){e.nextTick(()=>{c.value.scrollTo(0,c.value.scrollHeight)})}function V(){c.value=_.value,p.value=y.value,p.value.addEventListener("ended",()=>{h(),d.value=null}),c.value.onscroll=()=>{c.value.scrollTop===0&&N()}}function $(){f.value=!1,p.value.play()}function h(){f.value=!0,p.value.pause()}function g(C){}return{$t:x,groupId:n,audioUrl:o,loading:a,newScrollTop:s,totalElements:l,page:r,chatMessageList:i,chatMessageListEl:c,audioEl:p,mediaFileId:d,audioType:f,timer:m,chatMessageListRef:_,audioElRef:y,init:u,getNewData:k,getData:b,scrollToMsg:E,topEvent:N,scrollToBottom:S,initScrollList:V,audioPlay:$,audioPause:h,getAudioContext:g}}const dS=["element-loading-text"],pS={key:0,class:"w-full h-full flex box-border items-center justify-center text-center text-hy-text-secondary"},fS={class:""},mS={class:"mt-5"},hS=["id"],uS={key:0,class:"min-w-[72px] p-1 bg-hy-dialog-bg-4 text-center rounded mb-2"},_S={key:1,class:"h-[50px] flex items-center w-full"},gS={class:"mr-2 flex-grow w-0 flex flex-col items-end"},yS={class:"w-full flex items-center justify-end"},xS=["onClick"],kS=["onClick"],NS={class:"font-bold flex-shrink-0"},bS={class:"flex-shrink-0 ml-1"},CS={key:0},wS={key:2,class:"h-[50px] flex items-center w-full"},ES={class:"ml-2 flex-grow w-0 flex flex-col items-start"},SS={class:"w-full flex items-center"},TS=["onClick"],DS={class:"flex-shrink-0 mr-1"},VS={key:0},$S={class:"font-bold flex-shrink-0"},BS=["onClick"],IS=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:f,audioElRef:m}=cS({props:n});return e.onMounted(()=>{p()}),e.onUnmounted(()=>{d.value&&clearInterval(d.value)}),(_,y)=>{const u=e.resolveComponent("svg-icon"),k=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:f,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",pS,[e.createElementVNode("div",fS,[e.createElementVNode("div",null,[e.createVNode(u,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"})]),e.createElementVNode("div",mS,[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),(b,E)=>(e.openBlock(),e.createElementBlock("div",{id:`item-${b.id}`,key:b.id,class:"p-2 box-border flex flex-col items-center"},[b.fileDtmEnd.split(" ")[0]!==(E>0&&e.unref(l)[E-1].fileDtmEnd.split(" ")[0])?(e.openBlock(),e.createElementBlock("div",uS,e.toDisplayString(b.fileDtmEnd.split(" ")[0]),1)):e.createCommentVNode("",!0),b.devUserId===o.id?(e.openBlock(),e.createElementBlock("div",_S,[e.createElementVNode("div",gS,[e.createElementVNode("div",null,e.toDisplayString(b.devUserName)+" ("+e.toDisplayString(b.serialNum||b.devUserId)+") ",1),e.createElementVNode("div",yS,[e.unref(r)===b.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:N=>e.unref(c)(b.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,xS)):e.createCommentVNode("",!0),e.createElementVNode("div",{style:e.normalizeStyle({width:b.audioLength>=60?"70%":`calc(${b.audioLength/60*90}px + 160px)`,background:e.unref(r)===b.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)===b.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:N=>e.unref(c)(b.mediaFileId)},[e.createElementVNode("div",NS,e.toDisplayString(b.audioLength)+"” ",1),e.createElementVNode("div",bS,[b.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",CS,e.toDisplayString(b.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)])],14,kS)])]),e.createVNode(xt,{class:"w-[32px] h-[32px]"})])):(e.openBlock(),e.createElementBlock("div",wS,[e.createVNode(xt,{class:"w-[32px] h-[32px]"}),e.createElementVNode("div",ES,[e.createElementVNode("div",null,e.toDisplayString(b.devUserName)+" ("+e.toDisplayString(b.serialNum||b.devUserId)+") ",1),e.createElementVNode("div",SS,[e.createElementVNode("div",{style:e.normalizeStyle({width:b.audioLength>=60?"70%":`calc(${b.audioLength/60*90}px + 160px)`,background:e.unref(r)===b.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)===b.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:N=>e.unref(c)(b.mediaFileId)},[e.createElementVNode("div",DS,[b.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",VS,e.toDisplayString(b.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",$S,e.toDisplayString(b.audioLength)+"” ",1)],14,TS),e.unref(r)===b.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:N=>e.unref(c)(b.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,BS)):e.createCommentVNode("",!0)])])]))],8,hS))),128))],512)],8,dS)),[[k,e.unref(s)]])}}});function AS(){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 XE({groupId:o.value,taskId:t.value.id})}function d(){var h;l.value.length!==0&&((h=c.value)==null||h.orgGroupInsertTempFn([...l.value],{openRecording:1}).then(g=>{o.value=g,e.nextTick(()=>{p()}),_(!1)}).catch(()=>{o.value=null,n.value=!0,_(!1)}))}function f(h=[]){l.value=h,_(!1),t.value.checkStyle===2&&d()}function m(h={}){const{beReceiveNum:g=0,receivingNum:C=0,finishNum:w=0,notFinishNum:D=0,offLineNum:T=0,intercomGroupTemNum:L=0}=h;t.value.beReceiveNum=g,t.value.receivingNum=C,t.value.finishNum=w,t.value.notFinishNum=D,t.value.offLineNum=T,t.value.intercomGroupTemNum=L}function _(h){s.value=h}function y(){r.value=!r.value}async function u(h){const{code:g,data:C={}}=await Br({id:h});g===200&&(t.value={...C},t.value.checkNum===0&&f([]),t.value.checkStyle===2&&(t.value.actionType=null),k(!0))}function k(h){i.value=h}function b(){}function E(h){if(i.value){Se.warning(x("currentlySpotCheckInProgressPleaseProcessLater"));return}o.value=null,n.value=!1,t.value={},_(!0),u(h)}function N(){i.value=!1}function S(){mt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("cancelSpotCheck"),tipsContent:`<div><p>${x("confirmToCancelThisSpotCheck")}?</p><p>${this.$t("cancelMidwayYouWillNotBeAbleToRetrieveOrViewAnyInformationOfThisSpotCheck")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("returnToSpotCheck"),submitBtnText:x("cancelSpotCheck"),submitBtnType:"danger"},()=>{$(3)})}function V(){let h=x("afterTheCheck,YouCanViewTheSpotCheckInformationInTheSpotCheckModule");(t.value.beReceiveNum!==0||t.value.receivingNum!==0)&&(h=x("thereAreStillDevicesInTheReceivingProcessTheSystemWillMarkTheseDevicesAsUnfinished")),mt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("endSpotCheck"),tipsContent:`<div><p>${x("confirmToEndThisSpotCheck")}?</p><p>${h}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("returnToSpotCheck"),submitBtnText:x("endSpotCheck")},()=>{$(2)})}async function $(h){var C;const{code:g}=await HE({taskId:t.value.id,checkStatus:h});g===200&&(h===2&&(Se.success(x("theSpotCheckHasBeenCompletedYouCanViewDetailedInformationRecordsInTheSpotCheckModule")),t.value.checkStyle===2&&o.value&&((C=c.value)==null||C.onClose())),N())}return{form:t,groupType:n,groupId:o,dragLevel:a,loading:s,taskDeviceList:l,msgContentType:r,dialogVisible:i,multiPersonIntercomSpotCheckRef:c,taskGroupBind:p,orgGroupInsertTemp:d,spotCheckTaskDeviceChange:f,spotCheckTaskDeviceCountStatus:m,setLoading:_,setMsgContentType:y,setDialogVisible:k,show:E,close:N,onClose:S,onSubmit:V,taskEnd:$,setDragLevel:b,$t:x}}const LS=t=>(e.pushScopeId("data-v-e246ad8e"),t=t(),e.popScopeId(),t),FS={class:"el-dialog__header !p-0"},OS={class:"el-dialog__body !p-[8px_0px_8px] sideFoot_content h-[700px] flex flex-col text-main text-xs"},RS={class:"h-[40px] flex items-center px-4 mb-1"},PS={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"},MS={key:0,class:"ml-3"},US={class:"text-hy-text-secondary"},zS={key:1,class:"ml-3"},WS={class:"text-hy-text-secondary"},HS={class:"font-bold"},jS=["element-loading-text"],YS={key:0,class:"w-full h-full flex flex-col box-border"},GS={class:"flex-shrink-0 mb-3 px-4"},qS={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},KS={class:"flex w-full"},XS={class:"flex-shrink-0"},JS={class:"text-right font-bold flex-grow w-0"},ZS={class:"flex w-full text-hy-text-secondary"},QS={class:"flex-shrink-0"},vS={class:"text-right flex-grow w-0"},eT={class:"flex w-full text-hy-text-secondary"},tT={class:"flex-shrink-0"},nT={class:"text-right flex-grow w-0"},oT={class:"text-xs p-2 leading-[22px]"},aT={class:"flex w-full"},sT={class:"flex-shrink-0 tracking-[4px]"},lT={class:"text-right font-bold flex-grow w-0"},rT={class:"flex w-full"},iT={class:"flex-shrink-0 tracking-[4px]"},cT={class:"text-right font-bold flex-grow w-0"},dT={class:"flex w-full"},pT={class:"flex-shrink-0 tracking-[4px]"},fT={class:"text-right font-bold flex-grow w-0 text-hy-success"},mT={class:"flex w-full"},hT={class:"flex-shrink-0 tracking-[4px]"},uT={class:"text-right font-bold flex-grow w-0 text-hy-danger"},_T={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},gT={class:"flex-1 flex"},yT={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},xT={class:"flex-grow w-0 text-center truncate"},kT={class:"flex-1 flex"},NT={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},bT={class:"flex-grow w-0 text-center text-hy-success truncate"},CT={class:"flex-1 flex"},wT={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},ET={class:"flex-grow w-0 text-center text-hy-danger truncate"},ST={class:"w-full px-2 leading-[22px] box-border rounded bg-hy-dialog-bg-3 h-[28px] flex items-center justify-between"},TT={class:"flex"},DT={key:0,class:"ml-2 bg-hy-dialog-bg-1 h-[22px] px-2 rounded"},VT={class:"w-[400px]"},$T={class:""},BT={key:0,class:"box-border flex-grow h-0 flex px-2"},IT={class:"flex-grow w-0 px-2 overflow-x-hidden overflow-y-auto h-full"},AT={key:0,class:"w-[66%] box-border pr-2"},LT={class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},FT={key:1,class:"flex-grow h-0 px-4"},OT={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"},RT={class:"r-f tac flex text-center"},PT={class:"mt-3"},MT={class:"mt-1"},UT={key:1,class:"w-full h-full"},zT={key:0,class:"w-full h-full flex px-4 box-border"},WT={class:"flex flex-col w-[33%]"},HT={class:"pr-2"},jT={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},YT={class:"flex w-full"},GT={class:"flex-shrink-0"},qT={class:"text-right font-bold flex-grow w-0"},KT={class:"flex w-full text-hy-text-secondary"},XT={class:"flex-shrink-0"},JT={class:"text-right flex-grow w-0"},ZT={class:"flex w-full text-hy-text-secondary"},QT={class:"flex-shrink-0"},vT={class:"text-right flex-grow w-0"},eD={class:"text-xs p-2 leading-[22px]"},tD={key:0,class:"flex w-full"},nD={class:"flex-shrink-0 tracking-[4px]"},oD={class:"text-right font-bold flex-grow w-0"},aD={key:1,class:"flex w-full"},sD={class:"flex-shrink-0 tracking-[4px]"},lD={class:"text-right font-bold flex-grow w-0"},rD={class:"flex w-full"},iD={class:"flex-shrink-0 tracking-[4px]"},cD={class:"text-right font-bold flex-grow w-0 text-hy-success"},dD={class:"flex w-full"},pD={class:"flex-shrink-0 tracking-[4px]"},fD={class:"text-right font-bold flex-grow w-0 text-hy-danger"},mD={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},hD={class:"flex-1 flex"},uD={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},_D={class:"flex-grow w-0 text-center truncate"},gD={class:"flex-1 flex"},yD={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},xD={class:"flex-grow w-0 text-center text-hy-success truncate"},kD={class:"flex-1 flex"},ND={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},bD={class:"flex-grow w-0 text-center text-hy-danger truncate"},CD={class:"flex-grow h-0 mt-2 overflow-x-hidden overflow-y-auto pr-2 box-border"},wD={class:"flex-grow w-0 flex flex-col"},ED=LS(()=>e.createElementVNode("div",{class:"flex-grow h-0 overflow-hidden"},null,-1)),SD={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"},TD={class:"r-f tac flex text-center"},DD={class:"mt-5"},VD={key:1,class:"flex-grow h-full px-4"},$D={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"},BD={class:"r-f tac flex text-center"},ID={class:"mt-3"},AD={class:"mt-1"},LD={class:"h-[50px] flex items-center justify-between flex-shrink-0 px-4 mt-1"},FD={class:"text-hy-text-secondary text-xs"},OD={key:0},RD={key:1},PD={key:0},MD={key:1},UD={key:2},zD=be(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:f,onClose:m,onSubmit:_}=AS();return(y,u)=>{const k=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-popover"),E=e.resolveComponent("el-col"),N=zE,S=e.resolveComponent("el-icon"),V=e.resolveComponent("el-tooltip"),$=e.resolveComponent("el-row"),h=$t,g=e.resolveComponent("el-button"),C=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:u[2]||(u[2]=(...w)=>e.unref(a)&&e.unref(a)(...w))},[e.createElementVNode("div",FS,[e.createElementVNode("div",OS,[e.createElementVNode("div",RS,[e.createElementVNode("div",PS,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",MS,[e.createElementVNode("span",US,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",zS,[e.createElementVNode("span",WS,e.toDisplayString(e.unref(l)("responseTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",HS,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",YS,[e.createElementVNode("div",GS,[e.createVNode($,{gutter:8},{default:e.withCtx(()=>[e.createVNode(E,{span:8},{default:e.withCtx(()=>[e.createVNode(b,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",_T,[e.createElementVNode("div",gT,[e.createElementVNode("div",yT,[e.createVNode(k,{name:"base-every-day-many-people","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",xT,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("div",kT,[e.createElementVNode("div",NT,[e.createVNode(k,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",bT,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("div",CT,[e.createElementVNode("div",wT,[e.createVNode(k,{name:"base-danger-state","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",ET,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("ul",qS,[e.createElementVNode("li",KS,[e.createElementVNode("span",XS,e.toDisplayString(e.unref(l)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",JS,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("li",ZS,[e.createElementVNode("span",QS,e.toDisplayString(e.unref(l)("offlineStatus")),1),e.createElementVNode("div",vS,e.toDisplayString(e.unref(s).offLineNum||"- -"),1)]),e.createElementVNode("li",eT,[e.createElementVNode("span",tT,e.toDisplayString(e.unref(l)("temporaryGroups")),1),e.createElementVNode("div",nT,e.toDisplayString(e.unref(s).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",oT,[e.createElementVNode("li",aT,[e.createElementVNode("span",sT,e.toDisplayString(e.unref(l)("waitingToReceive")),1),e.createElementVNode("div",lT,e.toDisplayString(e.unref(s).beReceiveNum||"- -"),1)]),e.createElementVNode("li",rT,[e.createElementVNode("span",iT,e.toDisplayString(e.unref(l)("receiving")),1),e.createElementVNode("div",cT,e.toDisplayString(e.unref(s).receivingNum||"- -"),1)]),e.createElementVNode("li",dT,[e.createElementVNode("span",pT,e.toDisplayString(e.unref(l)("completed")),1),e.createElementVNode("div",fT,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("li",mT,[e.createElementVNode("span",hT,e.toDisplayString(e.unref(l)("uncompleted")),1),e.createElementVNode("div",uT,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])])]),_:1})]),_:1}),e.createVNode(E,{span:16},{default:e.withCtx(()=>[e.createElementVNode("div",ST,[e.createElementVNode("div",TT,[e.createTextVNode(e.toDisplayString(e.unref(l)("messageContent"))+" ",1),e.unref(s).playMsg===1?(e.openBlock(),e.createElementBlock("div",DT," 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:u[1]||(u[1]=(...w)=>e.unref(i)&&e.unref(i)(...w))},[e.createVNode(V,{modelValue:e.unref(c),"onUpdate:modelValue":u[0]||(u[0]=w=>e.isRef(c)?c.value=w:null),class:"item",placement:"bottom-end",trigger:"manual"},{content:e.withCtx(()=>[e.createElementVNode("div",VT,e.toDisplayString(e.unref(s).msgContent),1)]),default:e.withCtx(()=>[e.createElementVNode("span",$T,[e.createTextVNode(e.toDisplayString(e.unref(l)("viewContent"))+" ",1),e.createVNode(S,{class:e.normalizeClass(["text-sm duration-500",{"-rotate-90":e.unref(c)}])},{default:e.withCtx(()=>[e.createVNode(N)]),_:1},8,["class"])])]),_:1},8,["modelValue"])])])]),_:1})]),_:1})]),e.unref(s).checkNum!==0?(e.openBlock(),e.createElementBlock("div",BT,[e.createElementVNode("div",IT,[e.unref(s).id?(e.openBlock(),e.createBlock(da,{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",AT,[e.createElementVNode("div",LT,[e.unref(s).id?(e.openBlock(),e.createBlock(IS,{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",FT,[e.createElementVNode("div",OT,[e.createElementVNode("div",RT,[e.createVNode(k,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",PT,e.toDisplayString(e.unref(l)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",MT,e.toDisplayString(e.unref(l)("cannotSupportThisSpotCheck")),1)])])]))])):(e.openBlock(),e.createElementBlock("div",UT,[e.unref(s).checkNum!==0?(e.openBlock(),e.createElementBlock("div",zT,[e.createElementVNode("div",WT,[e.createElementVNode("div",HT,[e.createVNode(b,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",mD,[e.createElementVNode("div",hD,[e.createElementVNode("div",uD,[e.createVNode(k,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",_D,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("div",gD,[e.createElementVNode("div",yD,[e.createVNode(k,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",xD,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("div",kD,[e.createElementVNode("div",ND,[e.createVNode(k,{name:"base-danger-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",bD,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("ul",jT,[e.createElementVNode("li",YT,[e.createElementVNode("span",GT,e.toDisplayString(e.unref(l)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",qT,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("li",KT,[e.createElementVNode("span",XT,e.toDisplayString(e.unref(l)("offlineStatus")),1),e.createElementVNode("div",JT,e.toDisplayString(e.unref(s).offLineNum||"- -"),1)]),e.createElementVNode("li",ZT,[e.createElementVNode("span",QT,e.toDisplayString(e.unref(l)("temporaryGroups")),1),e.createElementVNode("div",vT,e.toDisplayString(e.unref(s).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",eD,[e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("li",tD,[e.createElementVNode("span",nD,e.toDisplayString(e.unref(l)("waitingToReceive")),1),e.createElementVNode("div",oD,e.toDisplayString(e.unref(s).beReceiveNum||"- -"),1)])):e.createCommentVNode("",!0),e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("li",aD,[e.createElementVNode("span",sD,e.toDisplayString(e.unref(l)("receiving")),1),e.createElementVNode("div",lD,e.toDisplayString(e.unref(s).receivingNum||"- -"),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",rD,[e.createElementVNode("span",iD,e.toDisplayString(e.unref(l)("completed")),1),e.createElementVNode("div",cD,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("li",dD,[e.createElementVNode("span",pD,e.toDisplayString(e.unref(l)("uncompleted")),1),e.createElementVNode("div",fD,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),_:1})]),e.createElementVNode("div",CD,[e.unref(s).id?(e.openBlock(),e.createBlock(da,{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",wD,[ED,e.unref(f)?(e.openBlock(),e.createElementBlock("div",SD,[e.createElementVNode("div",TD,[e.createVNode(k,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"}),e.createElementVNode("div",DD,e.toDisplayString(e.unref(l)("groupMemberStatusAbnormalityPreventsSpotCheck")),1)])])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",VD,[e.createElementVNode("div",$D,[e.createElementVNode("div",BD,[e.createVNode(k,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",ID,e.toDisplayString(e.unref(l)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",AD,e.toDisplayString(e.unref(l)("cannotSupportThisSpotCheck")),1)])])]))]))],8,jS)),[[C,e.unref(r)]]),e.createElementVNode("div",LD,[e.createElementVNode("div",FD,[e.createElementVNode("div",null,[e.createVNode(S,{class:"mr-1 text-sm"},{default:e.withCtx(()=>[e.createVNode(h)]),_:1}),e.unref(s).checkType===2?(e.openBlock(),e.createElementBlock("span",OD,e.toDisplayString(e.unref(l)("randomCheck")),1)):(e.openBlock(),e.createElementBlock("span",RD,[e.unref(s).checkScope===1?(e.openBlock(),e.createElementBlock("span",PD,e.toDisplayString(e.unref(l)("regionalSpotCheck")),1)):e.unref(s).checkScope===2?(e.openBlock(),e.createElementBlock("span",MD,e.toDisplayString(e.unref(l)("departmentSpotCheck")),1)):e.unref(s).checkScope===3?(e.openBlock(),e.createElementBlock("span",UD,e.toDisplayString(e.unref(l)("deviceSpotCheck")),1)):e.createCommentVNode("",!0)]))])]),e.createElementVNode("div",null,[e.createVNode(g,{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(g,{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 WD({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 wl({spotCheckSupport:1});if(m.code===200)return m.data}function f(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:f,hyOrgTreeRef:l}}const HD={class:"flex flex-col w-full h-full"},jD={class:"flex justify-between items-center h-[40px]"},YD={class:"flex-1"},GD={class:"text-hy-text-secondary ml-3"},qD={class:"flex-1 flex items-center justify-end"},KD={class:"text-xs"},XD={class:"flex items-center clickBox cursor-pointer"},JD={class:"text-hy-text-primary"},ZD=["element-loading-text"],QD={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},vD={class:"flex-grow h-0 w-full equipment vbtTable"},eV={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"},tV={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"},nV={class:"r-f tac flex flex-col items-center justify-center"},oV={class:"mt-3"},aV={class:"flex-grow w-0 pl-2 box-border truncate"},sV={class:"flex-shrink-0"},lV=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:f,hyOrgTreeRef:m}=WD({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList)}),e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(_,y)=>{const u=e.resolveComponent("el-button"),k=e.resolveComponent("svg-icon"),b=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",HD,[e.createElementVNode("div",jD,[e.createElementVNode("div",YD,[e.createTextVNode(e.toDisplayString(e.unref(x)("allDepartments")),1),e.createElementVNode("span",GD,e.toDisplayString(e.unref(x)("doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt")),1)]),e.createElementVNode("div",qD,[e.withDirectives(e.createVNode(u,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("span",KD,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",XD,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",JD,e.toDisplayString(e.unref(c).length),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("individual-0")),1)])])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(x)("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",QD,[e.createElementVNode("div",vD,[e.createVNode(Hl,{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(f)},null,8,["get-data","default-checked-list","onOnSelectedData"])])]),e.createElementVNode("ul",eV,[e.withDirectives(e.createElementVNode("li",tV,[e.createElementVNode("div",nV,[e.createVNode(k,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",oV,e.toDisplayString(e.unref(x)("youHaveNotSelectedADepartmentYet")),1)])],512),[[e.vShow,e.unref(c).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(E,N)=>(e.openBlock(),e.createElementBlock("li",{key:`${E.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",aV,e.toDisplayString(E.companyName||E.groupName||E.orgName),1),e.createElementVNode("div",sV,[e.createVNode(Me,{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(x)("delete"),onClick:S=>e.unref(d)(N)},null,8,["tips","onClick"])])]))),128))])],8,ZD)),[[b,!1]])])}}});function rV({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,k=>{s.value=k.replace(/\s/g,"")});function c(){p([]),i.value.setSelectedList(o.value),t("on-selected-data-list",o.value)}function p(k=[]){o.value=[...k]}function d(k){if(!k.disabled){if(k.type===3){const b=o.value.findIndex(E=>E.deviceId===k.deviceId);b===-1?o.value.push({...k}):o.value.splice(b,1)}else{clearTimeout(l.value);const b={nonExistent:[],existent:[]},E=k.childrenDeviceList||[];E.length&&(E.forEach(N=>{a.value.findIndex(V=>V.deviceId===N.deviceId)===-1&&(o.value.findIndex($=>$.deviceId===N.deviceId)===-1?b.nonExistent.push({...N}):b.existent.push({...N}))}),b.nonExistent.length?b.nonExistent.forEach(N=>{o.value.push({...N})}):b.existent.forEach(N=>{const S=o.value.findIndex(V=>V.deviceId===N.deviceId);o.value.splice(S,1)}))}t("on-selected-data-list",[...o.value])}}function f(){r.value&&r.value.abort(),r.value=new AbortController}async function m(){n.value=!0;const k=await wl({spotCheckSupport:1});return f(),k.data}function _(k,b){const E=[{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"}],N=E.findIndex(S=>S.type===k);return N!==-1?y(E[N],b):"tree-icon-walkie-talkie"}function y(k,b){return k.type===7||k.type===13?b===1?k.svgName:`${k}-off-line`:k.svgName}function u(k){o.value=k.selectedDataList,t("on-selected-data-list",o.value)}return{setSelectedDataList:p,getData:m,abortController:r,selectedDataList:o,clearSelectedData:c,deviceClick:d,checkDeviceTypeFn:_,onSelectedData:u,hyDeviceTreeRef:i}}const iV={class:"flex flex-col w-full h-full"},cV={class:"flex justify-between items-center h-[40px]"},dV={class:"flex mr-2"},pV={class:"flex items-center"},fV={class:"text-xs"},mV={class:"flex items-center clickBox cursor-pointer"},hV={class:"text-hy-text-primary"},uV=["element-loading-text"],_V={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},gV={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"},yV={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"},xV={class:"flex flex-col justify-center items-center"},kV={class:"mt-3"},NV={class:"flex-grow w-0 pl-2 flex box-border"},bV={class:"truncate flex-grow w-0"},CV={class:"select-none truncate mx-[4px] text-hy-text-main"},wV={class:"flex-shrink-0"},EV=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:f,onSelectedData:m,hyDeviceTreeRef:_}=rV({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList),r()}),e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(y,u)=>{const k=e.resolveComponent("el-button"),b=e.resolveComponent("svg-icon"),E=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",iV,[e.createElementVNode("div",cV,[e.createElementVNode("div",dV,e.toDisplayString(e.unref(x)("allDevices")),1),e.createElementVNode("div",pV,[e.withDirectives(e.createVNode(k,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("span",fV,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",mV,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",hV,e.toDisplayString(e.unref(c).length),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("individual-0")),1)])])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(x)("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",_V,[e.createVNode(Wl,{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",gV,[e.withDirectives(e.createElementVNode("li",yV,[e.createElementVNode("div",xV,[e.createVNode(b,{name:"base-no-data","class-name":"!w-[50px] !h-[50px]"}),e.createElementVNode("div",kV,e.toDisplayString(e.unref(x)("youHaveNotSelectedADeviceYet")),1)])],512),[[e.vShow,e.unref(c).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),N=>(e.openBlock(),e.createElementBlock("li",{key:`${N.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",NV,[e.createVNode(b,{name:e.unref(f)(N.deviceType||N.type,N.onlineState),"class-name":"w-[16px] h-[16px]",class:e.normalizeClass(N.onlineState===1?"text-hy-text-main":"text-hy-info")},null,8,["name","class"]),e.createElementVNode("div",bV,[e.createElementVNode("span",CV,e.toDisplayString(N.devName),1)])]),e.createElementVNode("div",wV,[e.createVNode(Me,{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(x)("delete"),onClick:S=>e.unref(d)(N)},null,8,["tips","onClick"])])]))),128))])],8,uV)),[[E,!1]])])}}});function SV({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,E=>{i.value=E.replace(/\s/g,"")});function p(E=[]){E.length!==0&&(E.forEach(N=>{r.value.findIndex(V=>V.id===N.id)===-1&&r.value.push(N)}),e.nextTick(()=>{n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}))}function d(E=[]){r.value=[...E]}function f(){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 _(E){return r.value.findIndex(S=>S.id===E.id)!==-1?"is-checked":""}async function y(E){const N=r.value.findIndex(S=>S.id===E.id);N===-1?u(E):k(N)}function u(E){r.value.push(E),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}function k(E){r.value.splice(E,1),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}async function b(){o.value=!0;const{code:E,data:N=[]}=await Qw({query:i.value,spotCheckSupport:1,onlineState:1});E===200&&(l.value=[],N.forEach(S=>{S.deviceList.length!==0?l.value.unshift(S):l.value.push(S)}),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:f,setCheckAll:m,judgeSelectedFn:_,deviceClick:y,addSelectList:u,deleteSelectList:k,getData:b}}const TV={class:"flex flex-col w-full h-full"},DV={class:"flex justify-between items-center h-[30px]"},VV={class:"el-checkbox !mr-2"},$V=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],BV={class:"text-hy-text-primary"},IV=["element-loading-text"],AV={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},LV={class:"flex items-center justify-center p-[8px_8px_4px]"},FV={class:"text-hy-text-main"},OV={class:"flex-grow h-0 w-full px-2 box-border overflow-y-scroll overflow-x-hidden"},RV=["onClick"],PV={class:"flex items-center justify-center"},MV={class:"el-checkbox relative !mr-[6px]"},UV=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],zV={class:"treeDepartment cursor_pointer flex items-center justify-between w-full text-[14px] font-bold text-hy-text-main"},WV={class:"r-f w_100vh flex w-full"},HV={class:"flex-grow w-0 over_one_line truncate"},jV={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"},YV={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"},GV={class:"r-f tac flex flex-col justify-center items-center"},qV={class:"mt-3"},KV={class:"flex-grow w-0 pl-2 box-border truncate"},XV={class:"flex-shrink-0"},JV=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:f,deviceList:m,deviceClick:_,judgeSelectedFn:y,deleteSelectList:u}=SV({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList),r()}),n({setSelectedDataList:l,getData:r}),(k,b)=>{const E=e.resolveComponent("svg-icon"),N=e.resolveComponent("el-button"),S=e.resolveComponent("el-input"),V=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",TV,[e.createElementVNode("div",DV,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("electronicFence")),1),e.createElementVNode("div",{class:"flex items-center clickBox",onClick:b[0]||(b[0]=(...$)=>e.unref(i)&&e.unref(i)(...$))},[e.createElementVNode("div",VV,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)},"el-checkbox__input"])},$V,2)]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",BV,e.toDisplayString(e.unref(p).length),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("individual-0")),1)])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(x)("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",AV,[e.createElementVNode("div",LV,[e.createVNode(S,{modelValue:e.unref(f),"onUpdate:modelValue":b[1]||(b[1]=$=>e.isRef(f)?f.value=$:null),placeholder:e.unref(x)("filterByElectronicFenceName"),class:"table-search-main w-[254px] text-[12px]",onClear:b[2]||(b[2]=$=>e.unref(r)()),onKeyup:b[3]||(b[3]=e.withKeys($=>e.unref(r)(),["enter"]))},{append:e.withCtx(()=>[e.createElementVNode("div",FV,[e.createVNode(N,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(r)},{default:e.withCtx(()=>[e.createVNode(E,{name:"sys-button-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",OV,[(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:h=>e.unref(_)($)},[e.createElementVNode("div",PV,[e.createElementVNode("div",MV,[e.createElementVNode("span",{class:e.normalizeClass([e.unref(y)($),"el-checkbox__input"])},UV,2)])]),e.createElementVNode("div",zV,[e.createElementVNode("div",WV,[e.createElementVNode("span",HV,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,RV))),128))])]),e.createElementVNode("ul",jV,[e.withDirectives(e.createElementVNode("li",YV,[e.createElementVNode("div",GV,[e.createVNode(E,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",qV,e.toDisplayString(e.unref(x)("youHavenTSelectedAFenceYet")),1)])],512),[[e.vShow,e.unref(p).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),($,h)=>(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",KV,e.toDisplayString($.railName),1),e.createElementVNode("div",XV,[e.createVNode(Me,{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(x)("delete"),onClick:g=>e.unref(u)(h)},null,8,["tips","onClick"])])]))),128))])],8,IV)),[[V,e.unref(d)]])])}}});function ZV({emit:t}){const n=e.ref([{label:x("templateName"),prop:"templateName",isSearch:!0},{label:x("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((f,m)=>{const{checkStyle:_=null}=d||{};o.value.checkStyle=_,a.value=!0,s.value=f,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:x,tableColumns:n,requestParams:o,dialogVisible:a,successfulCallback:s,AppTableRef:l,show:r,selected:c,close:p}}const QV={class:"deleteBox c_fff text-hy-text-main"},vV={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]"},e$={class:"absolute right-[-2px] top-[-2px]"},t$={class:"dialog_body h-[60vh]"},n$=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:f}=ZV({emit:a});return n({show:f}),(m,_)=>{const y=e.resolveComponent("svg-icon"),u=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(u,{modelValue:e.unref(l),"onUpdate:modelValue":_[0]||(_[0]=k=>e.isRef(l)?l.value=k: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",QV,[e.createElementVNode("div",vV,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("spotCheckTemplate")),1),e.createElementVNode("div",e$,[e.createVNode(y,{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",t$,[e.createVNode(Yt,{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:k})=>[e.createVNode(Me,{width:12,height:12,name:"icon-choice",class:"!w-[24px] !h-[24px]",tips:e.unref(s)("edit"),onClick:b=>e.unref(p)(k)},null,8,["tips","onClick"])]),_:1},8,["column-list","search-form"])])])]),_:1},8,["modelValue"])}}});function o$({emit:t}){const n=e.ref({everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1}),o=(X,v,ie)=>{let le="";for(const J in n.value)n.value[J]&&(le+=`${J.replace(/(^everyday)|(everyday$)/g,"")},`);le.length?ie():ie(new Error(x("pleaseSelectASpecificWeek")))},a=e.ref(null),s=e.ref(!1),l=e.ref(!1),r=e.ref([]),i=e.ref(null),c=e.ref(x("immediatelyInitiateARollCallSpotCheck")),p=e.ref(!1),d=e.ref(null),f=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}),y=e.ref({limitNum:[{required:!0,message:x("pleaseEnterTheRandomNumber"),trigger:"blur"}],templateName:[{required:!0,message:x("pleaseEnterTheTemplateName"),trigger:"blur"}],msgContent:[{required:!0,message:x("pleaseFillInTheMessageToBeSent"),trigger:"blur"}],everydayJson:[{required:!0,validator:o,trigger:"change"}],taskDateTime:[{required:!0,message:x("pleaseSelectTheExecutionTime"),trigger:"change"}],taskDateType:[{required:!0,message:x("pleaseSelectTheExecutionDate"),trigger:"change"}],apDateListV2:[{required:!0,message:x("selectOneOrMoreDates"),trigger:"change"}],apDtmV2:[{required:!0,message:x("pleaseSelectASpecificTimePeriod"),trigger:"change"}]}),u=e.ref(),k=e.ref(),b=e.ref(),E=e.ref(),N=e.ref(),S=e.ref();e.watch(()=>_.value.limitNum,X=>{typeof X=="string"&&(X=X.replace(/[^.\d]/g,""),X=X.replace(".",""),_.value.limitNum=X)}),e.watch(()=>p.value,X=>{L()},{immediate:!0});function V(){u.value.validateField("limitNum")}function $(X){if(X!==_.value.onlineStateFlag)return new Promise((v,ie)=>{if(r.value.length!==0&&_.value.checkScope===3&&X===1)mt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("prompt"),tipsContent:`<div><p>${x("switchingTheSpotCheckDeviceWillClearTheSelectedData")}</p><p>${x("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("cancel-0"),closeBtnType:"primary",submitBtnText:x("confirm-3"),submitBtnType:"default"},()=>{const le=A();le&&(le.clearSelectedData(),le.getData()),_.value.onlineStateFlag=X,v(0)});else{if(_.value.onlineStateFlag=X,_.value.checkScope===3){const le=A();le&&le.getData()}v(0)}})}function h(X){let v=_.value.limitNum-0;if(X===1)v+=1;else{if(v<=1){Se.error(x("atLeast1RandomDevice"));return}v-=1}_.value.limitNum=v}function g(X,v){const{checkScope:ie=3,contentState:le=3,onlineStateFlag:J=1,copyType:R=!1,wrapperClosable:G=!1,title:te=x("immediatelyInitiateARollCallSpotCheck"),selectedDataList:de=[],successfulCallback:_e=null}=v||{};if(p.value){if(le===1)if(ie===_.value.checkScope){const Ve=A();Ve&&Ve.addSelectedDataList(de)}else T(ie).then(()=>{O([],!0);const Ve=A();Ve&&Ve.addSelectedDataList(de)});else return Se.warning(x("repeat"));return}a.value=_e,l.value=G,i.value=le,c.value=te,u.value&&u.value.resetFields(),_.value={...m.value},_.value.limitNum=10,_.value.checkScope=ie,_.value.onlineStateFlag=J,le===1?de.length&&O(de,!0):O([],!0),n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},X&&typeof X=="number"?F(X,R):C(!0)}function C(X){p.value=typeof X=="boolean"?X:!p.value}function w(){u.value.clearValidate("everydayJson"),u.value.clearValidate("apDateListV2"),u.value.clearValidate("apDtmV2")}function D(X){var v;(v=T(X))==null||v.then(()=>{O([],!0)})}function T(X){if(_.value.checkScope!==X)return new Promise((v,ie)=>{r.value.length!==0?mt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("prompt"),tipsContent:`<div><p>${x("switchingTheSpotCheckRangeWillClearTheSelectedData")}</p><p>${x("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("cancel-0"),closeBtnType:"primary",submitBtnText:x("confirm-3"),submitBtnType:"default"},()=>{_.value.checkScope=X,v(0)}):(_.value.checkScope=X,v(0))})}function L(){p.value?f.value=!0:(d.value&&(clearTimeout(d.value),d.value=null),d.value=setTimeout(()=>{f.value=p.value,clearTimeout(d.value),d.value=null},500))}function A(){const X=_.value.checkScope;return X===1?k.value:X===2?b.value:X===3?E.value:null}function H(X){const{checkScope:v=1,mapRailList:ie=[],orgList:le=[],deviceIdList:J=[],deviceList:R=[]}=X||{};let G=[];return v===1&&ie.length?G=ie:v===2&&le.length?G=le:v===3&&R.length&&(G=R.map(te=>({...te,type:3}))),G||[]}function O(X,v=!1){if(r.value=X,v){const ie=A();ie&&ie.setSelectedDataList(X)}}function P(){const X=_.value.checkScope;let v="",ie=[];return X===1?(v="mapRailIdList",ie=r.value.map(le=>le.id)):X===2?(v="orgIdList",ie=r.value.map(le=>le.id)):X===3&&(v="deviceIdList",ie=r.value.map(le=>le.deviceId)),{dataList:ie,name:v}}function z(){u.value.validate(X=>{if(X){const v={..._.value};if(v.playMsg=v.playMsg?1:0,v.checkType===1){const ie=P();if(v[`${ie.name}`]=ie.dataList,ie.dataList.length===0)return Se.error(x("pleaseSelectTheSpotCheckRange"))}else v.checkScope=null;e.nextTick(()=>{i.value===2?ne(v):i.value===3?ke(v):Oe(v)})}})}function U(X){var v;X&&((v=N.value)==null||v.show(X))}function M(){O([],!0),C(!1),a.value=null}function j(){M()}function F(X,v){i.value===2?Q(X,v):i.value===3&&he(X,v)}async function Q(X,v=!1){s.value=!0;const{code:ie,data:le}=await jE({id:X});if(ie===200){const J=le;if(le.checkScope,J.taskDateType===2)J.weekDate.split(",").forEach(te=>{te=Number.parseFloat(te),te===1?n.value.everyday1=!0:te===2?n.value.everyday2=!0:te===3?n.value.everyday3=!0:te===4?n.value.everyday4=!0:te===5?n.value.everyday5=!0:te===6?n.value.everyday6=!0:te===7&&(n.value.everyday7=!0)});else if(J.taskDateType===3){const G=[];J.apDateList.forEach(te=>{G.push(te.apDtm.split(" 00:00:00")[0])}),J.apDateListV2=G}else J.taskDateType===4&&(J.apDtmV2=[J.apStartDtm,J.apEndDtm]);J.taskDateTime=[J.taskDateStartTime,J.taskDateEndTime],_.value={...J,playMsg:J.playMsg===1},v&&(_.value.id=null);const R=H(J);O(R),e.nextTick(()=>{s.value=!1,p.value||C(!0)})}}async function ne(X){if(X.taskDateStartTime=_.value.taskDateTime[0],X.taskDateEndTime=_.value.taskDateTime[1],_.value.taskDateType===2){let le="";for(const J in n.value)n.value[J]&&(le+=`${J.replace(/(^everyday)|(everyday$)/g,"")},`);if(le.length===0)return Se.error(x("pleaseSelectASpecificWeek"));X.weekDate=le.substring(le.length-1,0)}else if(_.value.taskDateType===3){if(!_.value.apDateListV2||_.value.apDateListV2.length===0)return Se.error(x("pleaseSelectADate"));X.apDateList=_.value.apDateListV2.map(le=>({apDtm:`${le} 00:00:00`}))}else if(_.value.taskDateType===4){if(!_.value.apDtmV2||_.value.apDtmV2.length===0)return Se.error(x("pleaseSelectATimePeriod"));X.apStartDtm=`${_.value.apDtmV2[0]} 00:00:00`,X.apEndDtm=`${_.value.apDtmV2[1]} 00:00:00`}const{code:v,data:ie={}}=await YE(X);v===200&&(Se.success(x("operationSuccessful")),t("on-submit"),a.value&&a.value(),M())}async function Te(){const{id:X}=await S.value.show({checkStyle:i.value===2?1:null});X&&(u.value&&u.value.resetFields(),_.value={...m.value},n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},r.value=[],await he(X,!0),Se.success(x("templateApplied")))}async function he(X,v=!1){s.value=!0;const{code:ie,data:le}=await GE({id:X});if(ie===200){_.value={...le,playMsg:le.playMsg===1},v&&(_.value.id=null);const J=H(_.value);O(J),e.nextTick(()=>{s.value=!1,p.value||C(!0)})}}async function ke(X){const{code:v}=await qE(X);v===200&&(Se.success(x("operationSuccessful")),t("on-submit"),a.value&&a.value(),M())}async function Oe(X){const{code:v,data:ie={}}=await KE(X);v===200&&(Se.success(x("operationSuccessful")),a.value&&a.value(),t("on-submit"),U(ie.id),M())}return{dialogVisible:p,animationVisible:f,animationTime:d,setDialogVisible:C,setAnimationVisible:L,setCheckScope:T,setSelectedDataList:O,getSelectedDataList:P,onSubmit:z,viewSpotCheckShow:U,close:M,onClose:j,detail:F,selectTemplateShow:Te,taskDateTypeFn:w,changeCheckScope:D,everydayJson:n,formRef:u,loading:s,selectElectronicFenceRef:k,selectDepartmentRef:b,selectDeviceRef:E,selectTemplateRef:S,viewSpotCheckRef:N,contentState:i,title:c,wrapperClosable:l,form:_,rules:y,$t:x,changeOnlineStateFlag:$,blurLimitNum:V,setRandomNumber:h,selectedDataList:r,show:g}}const Fe=t=>(e.pushScopeId("data-v-1e4e7e93"),t=t(),e.popScopeId(),t),a$={key:0,class:"fixed top-0 left-0 bg-[rgba(0,0,0,0.5)] w-full h-full z-[100]"},s$={class:"w-[1080px] h-full"},l$={class:"w-full h-full px-[20px] box-border flex flex-col text-hy-text-main text-xs"},r$={class:"flex justify-between items-center h-[60px]"},i$={class:"font-bold text-lg"},c$=["element-loading-text"],d$={key:0,class:"flex mb-2 flex-shrink-0 rounded bg-backgroundv2 px-3 pt-2 h-[90px] box-border items-center"},p$={class:"text-sm h-[30px] flex items-center"},f$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),m$={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"},h$={class:"flex-1 mr-4"},u$={class:"text-sm h-[30px] flex items-center"},_$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),g$={class:"text-sm h-[30px] flex items-center"},y$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),x$={class:"everydayBox leading-[20px]"},k$={class:"text-xs"},N$={class:"text-xs"},b$={class:"text-xs"},C$={class:"text-xs"},w$={class:"text-xs"},E$={class:"text-xs"},S$={class:"text-xs"},T$={class:"text-sm h-[30px] flex items-center"},D$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),V$={class:"w-full"},$$={class:"text-sm h-[30px] flex items-center"},B$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),I$={class:"flex-1 min-w-[220px]"},A$={class:"text-sm h-[30px] flex items-center"},L$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),F$={class:"flex items-center flex-grow h-0"},O$={class:"flex-grow w-0 h-full flex flex-col"},R$={class:"flex"},P$={class:"text-sm h-[30px] flex items-center"},M$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),U$={class:"text-sm h-[30px] flex items-center"},z$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),W$={class:"text-sm h-[30px] flex items-center"},H$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),j$={class:"test h-[32px] flex border border-hy-border-2 rounded box-border overflow-hidden bg-hy-dialog-bg-2 w-full"},Y$={class:"flex-grow w-0 box-border px-1 flex items-center justify-center"},G$=["placeholder"],q$={class:"flex flex-col w-[32px] text-auxiliary border-l border-hy-border-2"},K$={class:"text-sm h-[30px] flex items-center"},X$=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),J$={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"},Z$={class:"tac text-hy-text-secondary text-center"},Q$={class:"mt_10 mt-[10px]"},v$={class:""},e2={class:"mt-1"},t2={class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},n2={class:"flex justify-between h-[40px] items-center"},o2={class:"fs_12 p-[10px_20px] text-[12px]"},a2={class:"r-f mb_10 flex mb-[10px]"},s2=Fe(()=>e.createElementVNode("span",null,"1、",-1)),l2={class:"r-f mb_10 flex mb-[10px]"},r2=Fe(()=>e.createElementVNode("span",null,"2、",-1)),i2={class:"r-f mb_10 flex mb-[10px]"},c2=Fe(()=>e.createElementVNode("span",null,"3、",-1)),d2={class:"fs_12 cursor_pointer !text-hy-text-primary cursor-pointer text-[12px]"},p2={class:"flex-grow h-0 flex"},f2={class:"flex-1"},m2=Fe(()=>e.createElementVNode("div",{class:"mx-[20px] w-[2px] h-[96%] rounded bg-hy-border-2 flex-shrink-0"},null,-1)),h2={class:"w-[33%] h-full flex flex-col"},u2={class:"text-sm h-[30px] flex items-center"},_2=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),g2={class:"text-sm h-[30px] flex items-center"},y2=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),x2={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"},k2={class:"tac text-hy-text-secondary text-center"},N2={class:"mt-[10px]"},b2={class:"mt-1"},C2={key:0,class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},w2={class:"flex-grow h-0"},E2={class:"text-xs"},S2={class:"mb-2"},T2={class:"text-sm h-[30px] flex items-center"},D2=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),V2={class:"mb-2"},$2={class:"text-sm h-[30px] flex items-center"},B2=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),I2={class:"flex items-center justify-between h-[80px]"},A2={class:"text-hy-text-secondary flex items-center"},L2=be(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:f,rules:m,contentState:_,taskDateTypeFn:y,everydayJson:u,changeOnlineStateFlag:k,blurLimitNum:b,setRandomNumber:E,changeCheckScope:N,selectedDataList:S,setSelectedDataList:V,selectTemplateShow:$,onSubmit:h,selectElectronicFenceRef:g,selectDepartmentRef:C,selectDeviceRef:w,selectTemplateRef:D,viewSpotCheckRef:T,show:L,formRef:A}=o$({emit:a});return n({show:L}),(H,O)=>{const P=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-input"),U=e.resolveComponent("el-form-item"),M=e.resolveComponent("el-option"),j=e.resolveComponent("el-select"),F=e.resolveComponent("el-checkbox"),Q=e.resolveComponent("el-date-picker"),ne=e.resolveComponent("el-time-picker"),Te=RE,he=e.resolveComponent("el-icon"),ke=AE,Oe=e.resolveComponent("el-popover"),X=e.resolveComponent("el-form"),v=$t,ie=e.resolveComponent("el-button"),le=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",null,[e.unref(r)&&e.unref(l)?(e.openBlock(),e.createElementBlock("div",a$)):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",s$,[e.createElementVNode("div",l$,[e.createElementVNode("div",r$,[e.createElementVNode("div",i$,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(X,{ref_key:"formRef",ref:A,model:e.unref(f),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",d$,[e.createVNode(U,{prop:"templateName",class:"w-full"},{default:e.withCtx(()=>[e.createElementVNode("div",p$,[e.createTextVNode(e.toDisplayString(e.unref(s)("templateName")),1),f$]),e.createVNode(z,{modelValue:e.unref(f).templateName,"onUpdate:modelValue":O[0]||(O[0]=J=>e.unref(f).templateName=J),placeholder:e.unref(s)("pleaseEnterTheTemplateName"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})])):e.unref(_)===2?(e.openBlock(),e.createElementBlock("div",m$,[e.createElementVNode("div",h$,[e.createVNode(U,{prop:"taskDateType"},{default:e.withCtx(()=>[e.createElementVNode("div",u$,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionDate")),1),_$]),e.createVNode(j,{modelValue:e.unref(f).taskDateType,"onUpdate:modelValue":O[1]||(O[1]=J=>e.unref(f).taskDateType=J),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheExecutionDate"),onChange:e.unref(y)},{default:e.withCtx(()=>[e.createVNode(M,{label:e.unref(s)("everyday"),value:1},null,8,["label"]),e.createVNode(M,{label:e.unref(s)("specifyAWeek"),value:2},null,8,["label"]),e.createVNode(M,{label:e.unref(s)("specifyADate"),value:3},null,8,["label"]),e.createVNode(M,{label:e.unref(s)("specifyATimePeriod"),value:4},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])]),_:1})]),e.createElementVNode("div",null,[e.unref(f).taskDateType===2?(e.openBlock(),e.createBlock(U,{key:0,prop:"everydayJson",class:"max-w-[360px]"},{default:e.withCtx(()=>[e.createElementVNode("div",g$,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyAWeek")),1),y$]),e.createElementVNode("div",x$,[e.createVNode(F,{modelValue:e.unref(u).everyday1,"onUpdate:modelValue":O[2]||(O[2]=J=>e.unref(u).everyday1=J)},{default:e.withCtx(()=>[e.createElementVNode("span",k$,e.toDisplayString(e.unref(s)("monday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(u).everyday2,"onUpdate:modelValue":O[3]||(O[3]=J=>e.unref(u).everyday2=J)},{default:e.withCtx(()=>[e.createElementVNode("span",N$,e.toDisplayString(e.unref(s)("tuesday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(u).everyday3,"onUpdate:modelValue":O[4]||(O[4]=J=>e.unref(u).everyday3=J)},{default:e.withCtx(()=>[e.createElementVNode("span",b$,e.toDisplayString(e.unref(s)("wednesday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(u).everyday4,"onUpdate:modelValue":O[5]||(O[5]=J=>e.unref(u).everyday4=J)},{default:e.withCtx(()=>[e.createElementVNode("span",C$,e.toDisplayString(e.unref(s)("thursday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(u).everyday5,"onUpdate:modelValue":O[6]||(O[6]=J=>e.unref(u).everyday5=J)},{default:e.withCtx(()=>[e.createElementVNode("span",w$,e.toDisplayString(e.unref(s)("friday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(u).everyday6,"onUpdate:modelValue":O[7]||(O[7]=J=>e.unref(u).everyday6=J)},{default:e.withCtx(()=>[e.createElementVNode("span",E$,e.toDisplayString(e.unref(s)("saturday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(u).everyday7,"onUpdate:modelValue":O[8]||(O[8]=J=>e.unref(u).everyday7=J)},{default:e.withCtx(()=>[e.createElementVNode("span",S$,e.toDisplayString(e.unref(s)("sunday")),1)]),_:1},8,["modelValue"])])]),_:1})):e.unref(f).taskDateType===3?(e.openBlock(),e.createBlock(U,{key:1,prop:"apDateListV2",class:"mr-4"},{default:e.withCtx(()=>[e.createElementVNode("div",T$,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyADate")),1),D$]),e.createElementVNode("div",V$,[e.createVNode(Q,{modelValue:e.unref(f).apDateListV2,"onUpdate:modelValue":O[9]||(O[9]=J=>e.unref(f).apDateListV2=J),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(f).taskDateType===4?(e.openBlock(),e.createBlock(U,{key:2,prop:"apDtmV2",class:"mr-4 w-[340px]"},{default:e.withCtx(()=>[e.createElementVNode("div",$$,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyATimePeriod")),1),B$]),e.createElementVNode("div",null,[e.createVNode(Q,{modelValue:e.unref(f).apDtmV2,"onUpdate:modelValue":O[10]||(O[10]=J=>e.unref(f).apDtmV2=J),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",I$,[e.createVNode(U,{prop:"taskDateTime"},{default:e.withCtx(()=>[e.createElementVNode("div",A$,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionTime-0")),1),L$]),e.createVNode(ne,{modelValue:e.unref(f).taskDateTime,"onUpdate:modelValue":O[11]||(O[11]=J=>e.unref(f).taskDateTime=J),"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",F$,[e.createElementVNode("div",O$,[e.createElementVNode("div",R$,[e.createVNode(U,{class:"flex-1"},{default:e.withCtx(()=>[e.createElementVNode("div",P$,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckType")),1),M$]),e.createVNode(j,{modelValue:e.unref(f).checkType,"onUpdate:modelValue":O[12]||(O[12]=J=>e.unref(f).checkType=J),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheSpotCheckType")},{default:e.withCtx(()=>[e.createVNode(M,{label:e.unref(s)("rangeCheck"),value:1},null,8,["label"]),e.createVNode(M,{label:e.unref(s)("randomCheck"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),_:1}),e.createVNode(U,{class:"flex-1 ml-1 pl-1"},{default:e.withCtx(()=>[e.createElementVNode("div",U$,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckDevice")),1),z$]),e.createVNode(j,{"model-value":e.unref(f).onlineStateFlag,class:"w-full",placeholder:e.unref(s)("pleaseSelectTheSpotCheckDevice"),onChange:e.unref(k)},{default:e.withCtx(()=>[e.createVNode(M,{label:e.unref(s)("spotCheckOnlyOnlineDevices"),value:1},null,8,["label"]),e.createVNode(M,{label:e.unref(s)("spotCheckAllDevices"),value:2},null,8,["label"])]),_:1},8,["model-value","placeholder","onChange"])]),_:1}),e.unref(f).checkType===2?(e.openBlock(),e.createBlock(U,{key:0,class:"flex-1 ml-1 pl-1",prop:"limitNum"},{default:e.withCtx(()=>[e.createElementVNode("div",W$,[e.createTextVNode(e.toDisplayString(e.unref(s)("randomNumber")),1),H$]),e.createElementVNode("div",j$,[e.createElementVNode("div",Y$,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":O[13]||(O[13]=J=>e.unref(f).limitNum=J),type:"text",style:{outline:"none"},class:"bg-hy-dialog-bg-2 w-full h-full",placeholder:e.unref(s)("pleaseEnterTheRandomNumber"),onBlur:O[14]||(O[14]=(...J)=>e.unref(b)&&e.unref(b)(...J))},null,40,G$),[[e.vModelText,e.unref(f).limitNum]])]),e.createElementVNode("div",q$,[e.createElementVNode("div",{class:"flex-1 flex items-center justify-center clickBox cursor-pointer",onClick:O[15]||(O[15]=J=>e.unref(E)(1))},[e.createVNode(he,null,{default:e.withCtx(()=>[e.createVNode(Te)]),_:1})]),e.createElementVNode("div",{class:"flex-1 border-t border-hy-border-2 flex items-center justify-center cursor-pointer clickBox",onClick:O[16]||(O[16]=J=>e.unref(E)(2))},[e.createVNode(he,null,{default:e.withCtx(()=>[e.createVNode(ke)]),_:1})])])])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",K$,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckRange")),1),X$]),e.withDirectives(e.createElementVNode("div",J$,[e.createElementVNode("div",Z$,[e.createVNode(P,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",Q$,[e.createElementVNode("p",v$,e.toDisplayString(e.unref(s)("youDoNotNeedToSelectARangeAndDeviceForRandomCheck")),1),e.createElementVNode("p",e2,e.toDisplayString(e.unref(s)("theSystemWillHelpYouSelectRandomly")),1)])])],512),[[e.vShow,e.unref(f).checkType===2]]),e.withDirectives(e.createElementVNode("div",t2,[e.createElementVNode("div",n2,[e.createElementVNode("div",null,[e.createVNode(j,{"model-value":e.unref(f).checkScope,class:"w-[160px]",placeholder:e.unref(s)("pleaseSelect"),onChange:e.unref(N)},{default:e.withCtx(()=>[e.createVNode(M,{label:e.unref(s)("selectAnArea"),value:1},null,8,["label"]),e.createVNode(M,{label:e.unref(s)("selectADepartment"),value:2},null,8,["label"]),e.createVNode(M,{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",d2,[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",o2,[e.createElementVNode("li",a2,[s2,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea")),1)]),e.createElementVNode("li",l2,[r2,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment")),1)]),e.createElementVNode("li",i2,[c2,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck")),1)])])]),_:1})])]),e.createElementVNode("div",p2,[e.createElementVNode("div",f2,[e.unref(f).checkScope===1?(e.openBlock(),e.createBlock(JV,{key:0,ref_key:"selectElectronicFenceRef",ref:g,"init-selected-data-list":e.unref(S),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(f).checkScope===2?(e.openBlock(),e.createBlock(lV,{key:1,ref_key:"selectDepartmentRef",ref:C,"init-selected-data-list":e.unref(S),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(f).checkScope===3?(e.openBlock(),e.createBlock(EV,{key:2,ref_key:"selectDeviceRef",ref:w,"init-selected-data-list":e.unref(S),"online-state-flag":e.unref(f).onlineStateFlag,onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","online-state-flag","onOnSelectedDataList"])):e.createCommentVNode("",!0)])])],512),[[e.vShow,e.unref(f).checkType===1]])]),m2,e.createElementVNode("div",h2,[e.createVNode(U,null,{default:e.withCtx(()=>[e.createElementVNode("div",u2,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckMethod")),1),_2]),e.createVNode(j,{modelValue:e.unref(f).checkStyle,"onUpdate:modelValue":O[17]||(O[17]=J=>e.unref(f).checkStyle=J),class:"w-full",disabled:e.unref(_)===2,placeholder:e.unref(s)("pleaseSelectTheSpotCheckMethod")},{default:e.withCtx(()=>[e.createVNode(M,{label:e.unref(s)("message"),value:1},null,8,["label"]),e.createVNode(M,{label:e.unref(s)("call"),value:2},null,8,["label"])]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),e.createElementVNode("div",g2,[e.createTextVNode(e.toDisplayString(e.unref(s)("messageContent")),1),y2]),e.withDirectives(e.createElementVNode("div",x2,[e.createElementVNode("div",k2,[e.createVNode(P,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",N2,[e.createElementVNode("p",null,e.toDisplayString(e.unref(s)("callDoesNotRequireYouToEnterTheMessageContent")),1),e.createElementVNode("p",b2,e.toDisplayString(e.unref(s)("spotCheckWillBeConductedByIntercomAnswering")),1)])])],512),[[e.vShow,e.unref(f).checkStyle===2]]),e.unref(f).checkStyle===1?(e.openBlock(),e.createElementBlock("div",C2,[e.createElementVNode("div",w2,[e.createVNode(U,{prop:"msgContent"},{default:e.withCtx(()=>[e.createVNode(z,{modelValue:e.unref(f).msgContent,"onUpdate:modelValue":O[18]||(O[18]=J=>e.unref(f).msgContent=J),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(F,{modelValue:e.unref(f).playMsg,"onUpdate:modelValue":O[19]||(O[19]=J=>e.unref(f).playMsg=J)},{default:e.withCtx(()=>[e.createElementVNode("span",E2,e.toDisplayString(e.unref(s)("requiresTTSVoiceBroadcastOnTheDevice")),1)]),_:1},8,["modelValue"])]),e.createElementVNode("div",S2,[e.createElementVNode("div",T2,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerMethod")),1),D2]),e.createVNode(j,{modelValue:e.unref(f).actionType,"onUpdate:modelValue":O[20]||(O[20]=J=>e.unref(f).actionType=J),class:"w-full",placeholder:e.unref(s)("pleaseSelect")},{default:e.withCtx(()=>[e.createVNode(M,{label:e.unref(s)("punchIn"),value:1},null,8,["label"]),e.createVNode(M,{label:e.unref(s)("reply"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",V2,[e.createElementVNode("div",$2,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerTime")),1),B2]),e.createVNode(j,{modelValue:e.unref(f).actionTime,"onUpdate:modelValue":O[21]||(O[21]=J=>e.unref(f).actionTime=J),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheAnswerTime")},{default:e.withCtx(()=>[e.createVNode(M,{label:"5s",value:5}),e.createVNode(M,{label:"10s",value:10}),e.createVNode(M,{label:"15s",value:15}),e.createVNode(M,{label:"30s",value:30}),e.createVNode(M,{label:"60s",value:60})]),_:1},8,["modelValue","placeholder"])])])):e.createCommentVNode("",!0)])])]),_:1},8,["model","rules"])],8,c$)),[[le,e.unref(d)]]),e.createElementVNode("div",I2,[e.createElementVNode("div",A2,[e.createVNode(he,{class:"text-sm mr-1"},{default:e.withCtx(()=>[e.createVNode(v)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("youCanApplyTheSpotCheckTemplateToQuicklyFillInTheContent")),1)]),e.createElementVNode("div",null,[e.unref(_)!==3?(e.openBlock(),e.createBlock(ie,{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(ie,{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(ie,{class:"button_function buttonBox",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("confirm")),1)]),_:1},8,["onClick"])])])])]),e.createVNode(n$,{ref_key:"selectTemplateRef",ref:D},null,512)],2)):e.createCommentVNode("",!0),e.createVNode(zD,{ref_key:"viewSpotCheckRef",ref:T},null,512)])}}}),[["__scopeId","data-v-1e4e7e93"]]);function F2(t){return oe.post({url:"orgGroup/detail",data:t,isFormData:!0})}function O2(){const t=e.ref({}),n=e.ref(null),o=e.ref({}),a=e.ref(1),s=e.ref([{label:x("spotCheckInformation"),value:1},{label:x("spotCheckStatus"),value:2}]),l=e.ref(0),r=e.ref([{label:x("all"),value:0},{label:x("completed-0"),value:3},{label:x("uncompleted-0"),value:4}]),i=e.ref([]),c=e.ref([]),p=e.ref(!1),d=e.ref(),f=e.computed(()=>{const h=r.value.findIndex(g=>g.value===l.value);return h!==-1?Math.ceil(h*(100/r.value.length)):0}),m=e.computed(()=>{const h=s.value.findIndex(g=>g.value===a.value);return h!==-1?Math.ceil(h*(100/s.value.length)):0});async function _(h){if(!h)return;const{code:g,data:C}=await F2({id:h});g===200&&(o.value=C)}function y(){var h;(h=d.value)==null||h.getData(l.value)}function u(h){l.value=h,e.nextTick(()=>{y()})}function k(h){a.value=h}function b(h){}function E(h={}){const{beReceiveNum:g=0,receivingNum:C=0,finishNum:w=0,notFinishNum:D=0}=h;t.value.beReceiveNum=g,t.value.receivingNum=C,t.value.finishNum=w,t.value.notFinishNum=D}function N(h=[]){}function S(h){t.value={actionType:1,id:12},k(1),u(0),V(h),p.value=!0}async function V(h){const{code:g,data:C={}}=await Br({id:h,getMapRail:1,getOrg:1});g===200&&(t.value=C,i.value=C.orgNameList||[],c.value=C.railNameList||[],t.value.checkNum,e.nextTick(()=>{C.checkStyle===2&&(n.value=C.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:f,navigationStatusProgress:m,setCheckStatus:u,setNavigationStatus:k,setLoading:b,spotCheckTaskDeviceCountStatus:E,spotCheckTaskDeviceChange:N,show:S,detail:V,close:$}}const R2={class:"deleteBox c_fff text-hy-text-main"},P2={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]"},M2={class:"dialog_body pb-[30px] h-[60vh] flex flex-col text-main text-xs !px-0"},U2={class:"flex items-center justify-center mb-[16px]"},z2={class:"relative flex-shrink-0"},W2={class:"relative text-sm h-[36px] !leading-[36px] text-center border border-hy-bg-2 rounded text-hy-text-secondary flex overflow-hidden"},H2=["onClick"],j2={class:"flex flex-grow h-0 px-4 box-border"},Y2={class:"w-full h-full box-border px-2"},G2={class:"w-full h-full bg-hy-dialog-bg-2 rounded px-3 py-1 box-border overflow-x-hidden overflow-y-auto"},q2={class:"mb-2"},K2={class:"text-hy-text-secondary h-[30px] leading-[30px]"},X2={class:"text-hy-text-secondary"},J2={class:"mb-2"},Z2={class:"text-hy-text-secondary h-[30px] leading-[30px]"},Q2={class:"mb-2"},v2={class:"text-hy-text-secondary h-[30px] leading-[30px]"},eB={class:"mb-2"},tB={class:"text-hy-text-secondary h-[30px] leading-[30px]"},nB={class:"mb-2"},oB={class:"text-hy-text-secondary h-[30px] leading-[30px]"},aB={key:0,class:"mb-2"},sB={class:"text-hy-text-secondary h-[30px] leading-[30px]"},lB={key:0},rB={key:1},iB={key:2},cB={key:0},dB={key:0},pB={key:1},fB={key:0},mB={key:2},hB={key:1,class:"mb-2"},uB={class:"text-hy-text-secondary h-[30px] leading-[30px]"},_B={key:0,class:"py-1 box-border h-full bg-hy-dialog-bg-3 rounded"},gB={class:"w-full h-[34px] px-2 box-border flex justify-between items-center"},yB={key:0,class:"ml-2 border-[2px] box-border border-hy-border-2 flex items-center justify-center h-[26px] px-2 rounded"},xB={class:"h-[40%] box-border px-2 mt-1"},kB={class:"w-full h-full box-border bg-hy-dialog-bg-2 rounded p-2 overflow-y-auto overflow-x-hidden"},NB={class:"flex px-2 mt-1"},bB={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center mr-2"},CB={class:"text-hy-text-secondary"},wB={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center"},EB={class:"text-hy-text-secondary"},SB={class:"font-bold"},TB={key:1,class:"h-full py-1 bg-hy-dialog-bg-3 rounded"},DB={class:"w-full h-full flex items-center justify-center text-hy-text-secondary box-border"},VB={class:"r-f tac flex flex-col items-center justify-center text-center text-sm"},$B={class:"mt-3"},BB={class:"mt-1"},IB={class:"flex flex-grow h-0 px-4 box-border"},AB={class:"text-xs px-2 leading-[22px]"},LB={class:"flex w-full"},FB={class:"flex-shrink-0"},OB={class:"text-right font-bold flex-grow w-0"},RB={class:"flex w-full"},PB={class:"flex-shrink-0 tracking-[4px]"},MB={class:"text-right font-bold flex-grow w-0"},UB={class:"flex w-full"},zB={class:"flex-shrink-0 tracking-[4px]"},WB={class:"text-right font-bold flex-grow w-0"},HB={class:"flex w-full"},jB={class:"flex-shrink-0 tracking-[4px]"},YB={class:"text-right font-bold flex-grow w-0 text-hy-success"},GB={class:"flex w-full"},qB={class:"flex-shrink-0 tracking-[4px]"},KB={class:"text-right font-bold flex-grow w-0 text-hy-danger"},XB={class:"flex-1 flex"},JB={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},ZB={class:"flex-grow w-0 text-center truncate"},QB={class:"flex-1 flex"},vB={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},eI={class:"flex-grow w-0 text-center text-hy-success truncate"},tI={class:"flex-1 flex"},nI={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},oI={class:"flex-grow w-0 text-center text-hy-danger truncate"},aI={class:"relative mt-3 mb-2 min-w-[160px]"},sI={class:"relative h-[26px] !leading-[26px] text-center border border-hy-border-2 rounded text-hy-text-secondary text-xs flex overflow-hidden"},lI=["onClick"],rI={class:"flex-grow h-0 px-2 overflow-x-hidden overflow-y-auto"},iI=e.createElementVNode("div",{class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},null,-1),cI={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"},dI={class:"r-f tac flex flex-col justify-center items-center"},pI={class:"mt-3 text-sm"},fI=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:f,orgNameList:m,railNameList:_,setCheckStatus:y,setNavigationStatus:u,spotCheckTaskDeviceChange:k,spotCheckTaskDeviceCountStatus:b,show:E,spotCheckTaskDeviceRef:N}=O2();return n({show:E}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-col"),g=e.resolveComponent("el-row"),C=e.resolveComponent("el-popover"),w=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(w,{modelValue:e.unref(o),"onUpdate:modelValue":V[1]||(V[1]=D=>e.isRef(o)?o.value=D: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",R2,[e.createElementVNode("div",P2,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("spotCheckDetails")),1),e.createElementVNode("div",{class:"iconCloseBox clickBox closeBox absolute top-[-2px] right-[-2px] cursor-pointer",onClick:V[0]||(V[0]=(...D)=>e.unref(r)&&e.unref(r)(...D))},[e.createVNode($,{name:"icon-close",width:"26",height:"26","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",M2,[e.createElementVNode("div",U2,[e.createElementVNode("div",z2,[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",W2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(D,T)=>(e.openBlock(),e.createElementBlock("li",{key:T,class:e.normalizeClass([{"text-hy-text-main font-bold":D.value===e.unref(p)},"clickBox cursor-pointer px-2 w-[96px] box-border"]),onClick:L=>e.unref(u)(D.value)},e.toDisplayString(D.label),11,H2))),128))])])]),e.withDirectives(e.createElementVNode("div",j2,[e.createVNode(g,{gutter:8,class:"w-full h-full"},{default:e.withCtx(()=>[e.createVNode(h,{span:8,class:"h-full"},{default:e.withCtx(()=>[e.createElementVNode("div",Y2,[e.createElementVNode("div",G2,[e.createElementVNode("div",q2,[e.createElementVNode("div",K2,e.toDisplayString(e.unref(x)("spotCheckPersonnel")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(i).name)+" ",1),e.createElementVNode("span",X2," ("+e.toDisplayString(e.unref(i).jobNum)+")",1)])]),e.createElementVNode("div",J2,[e.createElementVNode("div",Z2,e.toDisplayString(e.unref(x)("department")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).orgName),1)]),e.createElementVNode("div",Q2,[e.createElementVNode("div",v2,e.toDisplayString(e.unref(x)("spotCheckTime")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkDtm),1)]),e.createElementVNode("div",eB,[e.createElementVNode("div",tB,e.toDisplayString(e.unref(x)("spotCheckType")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkType===1?e.unref(x)("rangeCheck"):e.unref(x)("randomCheck")),1)]),e.createElementVNode("div",nB,[e.createElementVNode("div",oB,e.toDisplayString(e.unref(x)("spotCheckMethod")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkStyle===1?e.unref(x)("message"):e.unref(x)("call")),1)]),e.unref(i).checkType===1?(e.openBlock(),e.createElementBlock("div",aB,[e.createElementVNode("div",sB,[e.createTextVNode(e.toDisplayString(e.unref(x)("samplingScope"))+" ",1),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("span",lB,e.toDisplayString(e.unref(x)("regionalSpotCheck")),1)):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("span",rB,e.toDisplayString(e.unref(x)("departmentSpotCheck")),1)):e.unref(i).checkScope===3?(e.openBlock(),e.createElementBlock("span",iB,e.toDisplayString(e.unref(x)("deviceSpotCheck")),1)):e.createCommentVNode("",!0),e.createTextVNode(" ) ")]),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("div",cB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(D,T)=>(e.openBlock(),e.createElementBlock("span",{key:`${T}_orgNameList`},[e.createTextVNode(e.toDisplayString(D)+" ",1),T!==e.unref(_).length-1?(e.openBlock(),e.createElementBlock("span",dB,"、")):e.createCommentVNode("",!0)]))),128))])):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("div",pB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(D,T)=>(e.openBlock(),e.createElementBlock("span",{key:`${T}_orgNameList`},[e.createTextVNode(e.toDisplayString(D)+" ",1),T!==e.unref(m).length-1?(e.openBlock(),e.createElementBlock("span",fB,"、")):e.createCommentVNode("",!0)]))),128))])):(e.openBlock(),e.createElementBlock("div",mB,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).checkNum||0)+" "+e.toDisplayString(e.unref(x)("device")),1)]))])):(e.openBlock(),e.createElementBlock("div",hB,[e.createElementVNode("div",uB,[e.createTextVNode(e.toDisplayString(e.unref(x)("samplingScope"))+" ",1),e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("randomCheck")),1),e.createTextVNode(" ) ")]),e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).limitNum||0)+" "+e.toDisplayString(e.unref(x)("device")),1)])]))])])]),_:1}),e.createVNode(h,{span:16,class:"h-full"},{default:e.withCtx(()=>[e.unref(i).checkStyle===1?(e.openBlock(),e.createElementBlock("div",_B,[e.createElementVNode("div",gB,[e.createElementVNode("div",null,e.toDisplayString(e.unref(x)("messageContent")),1),e.unref(i).playMsg===1?(e.openBlock(),e.createElementBlock("div",yB," TTS"+e.toDisplayString(e.unref(x)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",xB,[e.createElementVNode("div",kB,e.toDisplayString(e.unref(i).msgContent),1)]),e.createElementVNode("div",NB,[e.createElementVNode("div",bB,[e.createElementVNode("div",CB,e.toDisplayString(e.unref(x)("answerMethod")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(i).actionType===1?e.unref(x)("punchIn"):e.unref(x)("reply")),1)]),e.createElementVNode("div",wB,[e.createElementVNode("div",EB,e.toDisplayString(e.unref(x)("answerTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",SB,e.toDisplayString(e.unref(i).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("second")),1)])])])])):(e.openBlock(),e.createElementBlock("div",TB,[e.createElementVNode("div",DB,[e.createElementVNode("div",VB,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",$B,e.toDisplayString(e.unref(x)("callSpotCheck")),1),e.createElementVNode("div",BB,e.toDisplayString(e.unref(x)("backupWillBeCheckedByIntercomAnswering")),1)])])]))]),_:1})]),_:1})],512),[[e.vShow,e.unref(p)===1]]),e.withDirectives(e.createElementVNode("div",IB,[e.unref(i).checkNum!==0?(e.openBlock(),e.createBlock(g,{key:0,gutter:8,class:"w-full h-full"},{default:e.withCtx(()=>[e.createVNode(h,{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(C,{"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",XB,[e.createElementVNode("div",JB,[e.createVNode($,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",ZB,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("div",QB,[e.createElementVNode("div",vB,[e.createVNode($,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),e.createElementVNode("div",eI,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("div",tI,[e.createElementVNode("div",nI,[e.createVNode($,{name:"base-danger-state","class-name":"w-[16px] h-[16px] text-hy-danger"})]),e.createElementVNode("div",oI,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])],2)])]),default:e.withCtx(()=>[e.createElementVNode("ul",AB,[e.createElementVNode("li",LB,[e.createElementVNode("span",FB,e.toDisplayString(e.unref(x)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",OB,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("li",RB,[e.createElementVNode("span",PB,e.toDisplayString(e.unref(x)("waitingToReceive")),1),e.createElementVNode("div",MB,e.toDisplayString(e.unref(i).beReceiveNum||"- -"),1)]),e.createElementVNode("li",UB,[e.createElementVNode("span",zB,e.toDisplayString(e.unref(x)("receiving")),1),e.createElementVNode("div",WB,e.toDisplayString(e.unref(i).receivingNum||"- -"),1)]),e.createElementVNode("li",HB,[e.createElementVNode("span",jB,e.toDisplayString(e.unref(x)("completed")),1),e.createElementVNode("div",YB,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("li",GB,[e.createElementVNode("span",qB,e.toDisplayString(e.unref(x)("uncompleted")),1),e.createElementVNode("div",KB,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])])]),_:1}),e.createElementVNode("div",aI,[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",sI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(D,T)=>(e.openBlock(),e.createElementBlock("li",{key:`${T}_checkStatusList`,class:e.normalizeClass([{"text-hy-text-main":D.value===e.unref(a)},"flex-1 cursor-pointer hover:opacity-60"]),onClick:L=>e.unref(y)(D.value)},e.toDisplayString(D.label),11,lI))),128))])])],2),e.createElementVNode("div",rI,[e.unref(i).id?(e.openBlock(),e.createBlock(da,{key:0,ref_key:"spotCheckTaskDeviceRef",ref:N,"params-span":e.unref(i).actionType===1?8:24,form:e.unref(i),"subscribe-status":!1,onChange:e.unref(k),onOnCountStatus:e.unref(b)},null,8,["params-span","form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)])]),_:1},8,["span"]),e.unref(i).actionType!==1?(e.openBlock(),e.createBlock(h,{key:0,span:16,class:"h-full"},{default:e.withCtx(()=>[iI]),_:1})):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createElementBlock("div",cI,[e.createElementVNode("div",dI,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",pI,e.toDisplayString(e.unref(x)("noDeviceSupportsThisSpotCheck")),1)])]))],512),[[e.vShow,e.unref(p)===2]])])])]),_:1},8,["modelValue"])}}});function mI(){const t=e.ref(!1),n=e.ref(),{H:o,POI:a,isShowMap:s,layersUrlList:l,mapConfig:r}=qt(),i=e.shallowRef(),c=e.shallowRef();e.ref();const p=e.ref(""),d=[{label:"地理地址",value:1},{label:"部门名称",value:4}];function f({mapRailId:u}){n.value=u,t.value=!0,y()}function m(){t.value=!1}async function _(){p.value=null;const u=await $r({id:n.value});if(u.code===200){const k=u.data.pointList;p.value=u.data.railName;const b=[];k.forEach(E=>{b.push([E.lat,E.lng])}),c.value=o.polygon(i.value,b,{weight:6,color:"#FF33FF",opacity:.2,fillColor:"#1791fc",fillOpacity:.4}),o.fitBounds(i.value,b)}}function y(){e.nextTick(async()=>{let u=[];const k=je.getCache("userInfo");k.lng&&k.lat&&(u=[k.lat,k.lng]),u.length===0&&(u=null),i.value=await o.map("locationArea_container",{maxZoom:r.maxZoom||18,minZoom:r.minZoom||13,zoom:r.zoom||13,center:u,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:l,layerType:r.satelliteMap||1}),i.value.on("complete",()=>{_()})})}return{dialogVisible:t,show:f,close:m,railName:p,POI:a,map:i,H:o,searchTypes:d}}const hI=t=>(e.pushScopeId("data-v-dc7c010e"),t=t(),e.popScopeId(),t),uI={class:"w-full h-[560px] relative p-[10px] box-border"},_I=hI(()=>e.createElementVNode("div",{class:"w-full h-full relative z-[1]",draggable:"false"},[e.createElementVNode("div",{id:"locationArea_container",class:"w-[880px] h-full"})],-1)),gI={class:"absolute top-[20px] right-[20px] w-[300px] z-10"},yI={class:"w-[96%] h-[40px] rounded-[4px] bg-hy-dialog-bg-2 shadow-[0_0_8px_0_var(--hy-dialog-bg-2)] box-border p-[0_20px_0_40px] flex justify-between items-center text-[14px] absolute z-10 bottom-[20px] left-1/2 transform -translate-x-1/2 text-hy-text-main"},xI={class:"flex"},kI={class:"flex justify-center items-center"},NI={style:{"margin-left":"8px"}},bI={class:"font-bold"},CI=be(e.defineComponent({__name:"select-location-area",props:{draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const{dialogVisible:o,show:a,close:s,railName:l,POI:r,map:i,H:c,searchTypes:p}=mI();return n({show:a}),(d,f)=>{const m=e.resolveComponent("el-button"),_=e.resolveComponent("svg-icon"),y=e.resolveComponent("el-dialog"),u=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(y,{modelValue:e.unref(o),"onUpdate:modelValue":f[0]||(f[0]=k=>e.isRef(o)?o.value=k: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",top:"10vh",width:"900px",modal:!d.draggable,draggable:d.draggable,"modal-class":d.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",uI,[_I,e.createVNode(m,{class:"w-[80px] absolute top-[20px] left-[20px] z-10",type:"primary",onClick:e.unref(s)},{default:e.withCtx(()=>[e.createTextVNode(" 关闭 ")]),_:1},8,["onClick"]),e.createElementVNode("div",gI,[e.createVNode(ca,{poi:e.unref(r),map:e.unref(i),h:e.unref(c),"search-types":e.unref(p)},null,8,["poi","map","h","search-types"])]),e.createElementVNode("div",yI,[e.createElementVNode("div",xI,[e.createElementVNode("div",null,[e.createElementVNode("span",kI,[e.createVNode(_,{name:"police-situation-ps-around",style:{width:"20px",height:"20px"}}),e.createElementVNode("span",NI,e.toDisplayString(e.unref(x)("currentPositioning")),1)])]),e.createElementVNode("div",bI,[e.createElementVNode("span",null,e.toDisplayString(e.unref(l)),1)])])])])]),_:1})),[[u]])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-dc7c010e"]]);function wI(t){return oe.post({url:"taskAssign/v2/taskItem/select",data:t,isFormData:!0})}function pa(t){return oe.post({url:"taskAssign/v2/taskItemView",data:t,isFormData:!0})}function EI(t){return oe.post({url:"taskAssign/taskExample/select",data:t,isFormData:!0})}function SI({props:t}){const n=e.ref({}),o=e.ref([]),a=e.ref([]),s=e.ref(!1),l=e.ref(!1),r=e.ref(),i=e.ref(),c=e.ref();function p(k){l.value=!0,e.nextTick(()=>{r.value.playVideo(k.filePath,k)})}function d(){r.value.pauseVideo(),l.value=!1}function f(k){i.value.onShowViewer(o.value,k)}function m(k){return new Promise(async(b,E)=>{const N=await(t.controller==="taskAssign/taskExample"?EI({id:k}):J0({id:k}));if(N.code===200){const S=N.data;o.value=[],a.value=[],n.value=S;const V=S.images;V&&V.length&&(o.value=V.split(","));const $=S.videos;$&&$.length&&(a.value=$.split(",").map((h,g)=>({filePath:h,fileName:`任务示例视频${g+1}.${h.split(".").reverse()[0]}`,id:g+1}))),b(0)}})}function _(k={}){m(k.id).then(()=>{s.value=!0})}function y(k){console.log(k),o.value=[],a.value=[],n.value=k;const b=k.images;b&&b.length&&(o.value=b.split(","));const E=k.videos;E&&E.length&&(a.value=E.split(",").map((N,S)=>({filePath:N,fileName:`任务示例视频${S+1}.${N.split(".").reverse()[0]}`,id:S+1}))),s.value=!0,console.log(s.value)}function u(){s.value=!1}return{$t:x,form:n,hyImageViewerRef:i,imagesList:o,videoList:a,dialogVisible:s,videoDialogVisible:l,videoPlayerRef:r,onShowViewer:f,selectFn:m,show:_,taskExampleFn:y,onClose:u,videoPlayerShow:p,videoDialogClose:d,selVideo:c}}const TI={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg-1"},DI={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},VI={class:"absolute right-[12px] top-[12px]"},$I={class:"dialog_body"},BI={class:"dialog_body_content lh_20 leading-[20px]"},II={class:"mb_20 mb-[20px]"},AI={class:"requiredTitle"},LI={class:"plr_20 p-[0_20px]",style:{"max-height":"200px",overflow:"auto"}},FI=["innerHTML"],OI={key:0,class:"mb_20 mb-[20px]"},RI={class:"requiredTitle"},PI={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},MI={class:"imgBox"},UI={class:"centerBox deleteBox flex items-center justify-center"},zI=["src"],WI={key:1,class:"mb_20 mb-[20px]"},HI={class:"requiredTitle"},jI={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},YI={class:"imgBox"},GI={class:"centerBox deleteBox flex items-center justify-center"},qI={class:"pos_a w_100vh centerBox absolute w-full flex justify-center items-center"},KI={class:"operator-button centerBox mt_20 mt-[20px] flex justify-center items-center"},XI={class:"c_fff activatedImei text-hy-text-main"},JI={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},ZI={class:"dialog_body",style:{height:"500px"}},QI={class:"pos_r w_100vh h_100vh w-full h-full relative"},Ar=be(e.defineComponent({__name:"view-task-example",props:{controller:{default:"taskAssign/taskExample"},draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const o=t,{$t:a,show:s,taskExampleFn:l,hyImageViewerRef:r,videoPlayerRef:i,dialogVisible:c,form:p,onClose:d,imagesList:f,onShowViewer:m,videoList:_,videoPlayerShow:y,videoDialogVisible:u,videoDialogClose:k,selVideo:b}=SI({props:o});return n({show:s,taskExampleFn:l}),(E,N)=>{const S=e.resolveComponent("svg-icon"),V=e.resolveComponent("el-dialog"),$=e.resolveComponent("el-button"),h=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(V,{modelValue:e.unref(c),"onUpdate:modelValue":N[2]||(N[2]=g=>e.isRef(c)?c.value=g: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",top:"6vh",width:"570px",modal:!E.draggable,draggable:E.draggable,"modal-class":E.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",TI,[e.createElementVNode("div",DI,[e.createElementVNode("span",null,e.toDisplayString(e.unref(p).exampleName||e.unref(a)("missionExample")),1),e.createElementVNode("div",VI,[e.createVNode(S,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(d),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",$I,[e.createElementVNode("div",BI,[e.createElementVNode("div",II,[e.createElementVNode("div",AI,e.toDisplayString(e.unref(a)("sampleContent")),1),e.createElementVNode("div",LI,[e.createElementVNode("div",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(p).exampleContent},null,8,FI)])]),e.unref(f).length?(e.openBlock(),e.createElementBlock("div",OI,[e.createElementVNode("div",RI,e.toDisplayString(e.unref(a)("exampleImage")),1),e.createElementVNode("ul",PI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),(g,C)=>(e.openBlock(),e.createElementBlock("li",{key:`${C}imagesList`},[e.createElementVNode("div",MI,[e.createElementVNode("div",UI,[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(a)("check-0"),onClick:w=>e.unref(m)(C)},null,8,["tips","onClick"])]),e.createElementVNode("img",{src:g,alt:""},null,8,zI)])]))),128))])])):e.createCommentVNode("",!0),e.unref(_).length?(e.openBlock(),e.createElementBlock("div",WI,[e.createElementVNode("div",HI,e.toDisplayString(e.unref(a)("exampleVideo")),1),e.createElementVNode("ul",jI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(g,C)=>(e.openBlock(),e.createElementBlock("li",{key:`${C}videoList`},[e.createElementVNode("div",YI,[e.createElementVNode("div",GI,[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(a)("check-0"),onClick:w=>e.unref(y)(g)},null,8,["tips","onClick"])]),e.createElementVNode("div",qI,[e.createVNode(S,{name:"base-video-cover",style:{height:"40px",width:"40px"}})])])]))),128))])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",KI,[e.createVNode(Wo,{ref_key:"hyImageViewerRef",ref:r},null,512),e.createVNode(V,{modelValue:e.unref(u),"onUpdate:modelValue":N[1]||(N[1]=g=>e.isRef(u)?u.value=g:null),"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss_lightColor",width:"800px",modal:!E.draggable,draggable:E.draggable,"modal-class":E.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",XI,[e.createElementVNode("div",JI,[e.createTextVNode(e.toDisplayString(e.unref(a)("videoView"))+" ",1),e.createElementVNode("div",{class:"absolute right-[12px] top-[12px] cursor-pointer",onClick:N[0]||(N[0]=e.withModifiers((...g)=>e.unref(k)&&e.unref(k)(...g),["stop"]))},[e.createVNode(S,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",ZI,[e.createElementVNode("div",QI,[e.createVNode(Ho,{ref_key:"videoPlayerRef",ref:i,"border-color":"transparent",item:e.unref(b),"play-list":e.unref(_)},null,8,["item","play-list"])])])])]),_:1})),[[h]])]),_:1},8,["modelValue","modal","draggable","modal-class"]),e.createVNode($,{class:"button_default buttonBox min-w-[100px]",type:"primary",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("closure")),1)]),_:1},8,["onClick"])])])])]),_:1})),[[h]])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-1f7347d8"]]),vI={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},eA=[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m-55.808 536.384l-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"},null,-1)];function tA(t,n){return e.openBlock(),e.createElementBlock("svg",vI,[...eA])}const Lr={name:"ep-success-filled",render:tA},nA={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},oA=[e.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1)];function aA(t,n){return e.openBlock(),e.createElementBlock("svg",nA,[...oA])}const Fr={name:"ep-caret-right",render:aA};function sA({props:t}){const n=e.ref({}),o=e.ref(null),a=e.ref([]),s=e.ref([]),l=e.ref();function r(d){d.del!==1&&(d.fileType===1||d.fileType===2||d.fileType)}function i(d){}function c(d){o.value===d&&s.value.length>1?o.value=null:o.value=d}async function p(){const d=await pa({id:t.taskItemId,viewMode:1});if(d.code===200){const f=d.data||{};if(f.deviceUserList){const _=f.deviceUserList,y=[];_.forEach(u=>{const k=y.findIndex(E=>E.orgId===u.orgId),b=u;b.key=jn(1),k===-1?y.push({orgName:u.orgName,orgId:u.orgId,deviceUserList:[{...b}]}):y[k].deviceUserList.push({...b})}),s.value=y}else s.value=[];a.value=[],s.value.forEach(_=>{_.deviceUserList&&_.deviceUserList.length&&a.value.push(..._.deviceUserList)});const m=s.value[0];m&&c(m.orgId)}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,dataListRef:l,clickGroupItem:r,selectItemFn:i,activeNameFn:c,taskItemViewFn:p}}const lA={class:"r-f h_100vh flex h-full"},rA={class:"background_box information css-text-no-select"},iA=["onClick"],cA={style:{"margin-left":"4px"}},dA=["onClick"],pA={class:"flex-grow flex w-0"},fA={class:"over_one_line flex-grow w-0 truncate"},mA={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},hA={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},uA={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},_A={class:"flex_vertically_center mb_10 flex items-center mb-[10px]"},gA={class:"title_box pl_10 pl-[10px]"},yA={class:"c_9DA7B2 text-hy-text-secondary"},xA={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},kA={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},NA={class:"recordList fs_12 text-[12px] overflow-hidden"},bA={class:"actionList c_fff"},CA={key:0,class:"indexBox centerBox flex items-center justify-center"},wA={key:1,class:"indexBoxv2 centerBox"},EA={class:"mediaFileList c_9DA7B2 text-hy-text-secondary"},SA={key:0,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},TA={key:1},DA=["onClick"],VA={class:"fileDel clickBox"},$A={key:1,class:"file clickBox"},BA={key:2,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},IA=be(e.defineComponent({__name:"people-view",props:{taskItemId:{default:"0"}},setup(t,{expose:n}){const o=t,{$t:a,deviceUserList:s,dataListRef:l,dataList:r,activeName:i,taskItemViewFn:c,activeNameFn:p,selectItemFn:d,clickGroupItem:f}=sA({props:o});return e.onMounted(()=>{c()}),n({taskItemViewFn:c}),(m,_)=>{const y=Fr,u=e.resolveComponent("el-icon"),k=$t,b=e.resolveComponent("el-tooltip"),E=Lr;return e.openBlock(),e.createElementBlock("div",lA,[e.createElementVNode("div",rA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(N,S)=>(e.openBlock(),e.createElementBlock("div",{key:`${S}deviceUserList`},[e.createElementVNode("div",{class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:V=>e.unref(p)(N.orgId)},[e.createVNode(u,{style:e.normalizeStyle({transform:N.orgId===e.unref(i)?"rotate(90deg)":"rotate(0deg)"}),class:"!text-[16px] !text-hy-text-primary transition_05"},{default:e.withCtx(()=>[e.createVNode(y)]),_:2},1032,["style"]),e.createElementVNode("span",cA,e.toDisplayString(N.orgName),1)],8,iA),e.createElementVNode("div",{class:"transition_05",style:e.normalizeStyle({overflow:N.orgId===e.unref(i)?"inherit":"hidden",height:N.orgId===e.unref(i)?`${N.deviceUserList.length*40}px`:"0px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.deviceUserList,(V,$)=>(e.openBlock(),e.createElementBlock("div",{key:`${$}device`,class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:h=>e.unref(d)(V)},[e.createElementVNode("div",pA,[e.createElementVNode("div",fA,e.toDisplayString(V.deviceUserName),1),e.createElementVNode("span",mA," ("+e.toDisplayString(V.jobNum)+")",1)]),V.status===0?(e.openBlock(),e.createElementBlock("div",hA,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",uA,e.toDisplayString(e.unref(a)("finish")),1))],8,dA))),128))],4)]))),128))]),e.createElementVNode("ul",{ref_key:"dataListRef",ref:l,class:"h_100vh content_box h-full"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),N=>(e.openBlock(),e.createElementBlock("li",{key:N.key,ref_for:!0,ref:N.key,class:"ovh"},[e.createElementVNode("div",_A,[e.createElementVNode("div",gA,[e.createTextVNode(e.toDisplayString(N.deviceUserName)+" ",1),e.createElementVNode("span",yA,"("+e.toDisplayString(N.jobNum)+")",1)]),N.status===0?(e.openBlock(),e.createElementBlock("div",xA,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",kA,e.toDisplayString(e.unref(a)("finish")),1))]),e.createElementVNode("ul",NA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.recordList,(S,V)=>(e.openBlock(),e.createElementBlock("li",{key:`${V}recordList`,class:e.normalizeClass([`recordItem_${S.status}`,"background_box mb_10 ovh overflow-hidden mb-[10px]"])},[e.createElementVNode("div",bA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.actionList,($,h)=>(e.openBlock(),e.createElementBlock("div",{key:`${h}actionList`,class:"pos_r flex_vertically_center h_30 relative flex items-center h-[30px]",style:{"padding-left":"28px"}},[h===0?(e.openBlock(),e.createElementBlock("span",CA,e.toDisplayString(V+1),1)):(e.openBlock(),e.createElementBlock("span",wA)),e.createElementVNode("span",null,e.toDisplayString($.actionDetail),1)]))),128))]),e.createElementVNode("div",EA,[S.status===0?(e.openBlock(),e.createElementBlock("div",SA,[e.createVNode(u,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(k)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("unfinishedTask")),1)])):S.status===1&&S.mediaFileList&&S.mediaFileList.length?(e.openBlock(),e.createElementBlock("div",TA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.mediaFileList,($,h)=>(e.openBlock(),e.createElementBlock("div",{key:`${h}mediaFileList`,class:"pos_r flex_vertically_center css-text-no-select mediaFile_item",onClick:g=>e.unref(f)($)},[e.createVNode(u,{class:"!text-hy-success icon_box"},{default:e.withCtx(()=>[e.createVNode(k)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("uploaded")),1),$.del===1?(e.openBlock(),e.createBlock(b,{key:0,class:"item",effect:"dark",content:e.unref(a)("theFileHasBeenDeletedAndCannotBeViewed"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",VA,e.toDisplayString($.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",$A,e.toDisplayString($.fileName),1))],8,DA))),128))])):(e.openBlock(),e.createElementBlock("div",BA,[e.createVNode(u,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(E)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("theTaskHasBeenCompletedWaitingForUploading")),1)]))])],2))),128))])]))),128))],512)])}}}),[["__scopeId","data-v-82696267"]]),AA={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},LA=[e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768a384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896a448 448 0 0 1 0 896"},null,-1),e.createElementVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"},null,-1),e.createElementVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"},null,-1)];function FA(t,n){return e.openBlock(),e.createElementBlock("svg",AA,[...LA])}const OA={name:"ep-clock",render:FA};function RA({props:t}){const n=e.ref({}),o=e.ref(null),a=e.ref([]),s=e.ref([]),l=e.ref();function r(p){}function i(p){o.value===p&&s.value.length>1?o.value=null:o.value=p}async function c(){const p=await pa({id:t.taskItemId,viewMode:1});if(p.code===200){const d=p.data||{};if(d.deviceUserList){const m=d.deviceUserList,_=[];m.forEach(y=>{const u=_.findIndex(b=>b.orgId===y.orgId),k=y;if(k.key=jn(1),y.userReport){const b=y.userReport;k.urTemplateName=b.templateName,k.urSubmitDtm=b.submitDtm,k.urOptionList=b.optionList||[]}u===-1?_.push({orgName:y.orgName,orgId:y.orgId,deviceUserList:[{...k}]}):_[u].deviceUserList.push({...k})}),s.value=_}else s.value=[];a.value=[],s.value.forEach(m=>{m.deviceUserList&&m.deviceUserList.length&&a.value.push(...m.deviceUserList)});const f=s.value[0];f&&i(f.orgId)}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,reportListRef:l,selectItemFn:r,activeNameFn:i,taskItemViewFn:c}}const PA={class:"r-f h_100vh flex h-full"},MA={class:"background_box information css-text-no-select"},UA=["onClick"],zA={style:{"margin-left":"4px"}},WA=["onClick"],HA={class:"flex-grow flex w-0"},jA={class:"over_one_line flex-grow w-0 truncate"},YA={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},GA={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},qA={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},KA={key:0,ref:"reportListRef",class:"f-g reportList w-0 flex-grow"},XA={key:0,class:"background_box h_100vh lh_20 h-full leading-[20px]"},JA={class:"fs_14 plr_20 border-bottom mtb_10 m-[10px_0] p-[0_20px] text-[14px]"},ZA={class:"flex_vertically_center flex items-center",style:{"justify-content":"space-between"}},QA={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},vA={class:"c_9DA7B2 r-f lh_30 flex leading-[30px] text-hy-text-secondary",style:{"justify-content":"space-between"}},eL={class:"flex_vertically_center flex items-center"},tL={style:{"margin-left":"4px"}},nL={style:{padding:"0 20px 10px"}},oL={class:"mb_10 r-f mb-[10px] flex"},aL={class:"mr_10 label flex-shrink mr-[10px]"},sL={class:"c_theme r-f flex text-hy-text-primary"},lL={class:"mr_10 label label_answer flex-shrink mr-[10px]"},rL={key:0,class:"c_theme text-hy-text-primary"},iL={key:1,class:"c_theme text-hy-text-primary"},cL={key:1,class:"background_box h_100vh c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary h-full"},dL={class:"fs_14 plr_20 border-bottom text-[14px] p-[0_20px]"},pL={class:"flex_vertically_center lh_40 flex items-center leading-[40px]",style:{"justify-content":"space-between"}},fL={class:"c_9DA7B2 text-hy-text-secondary"},mL={class:"tac ptb_20 p-[20px_0] text-center"},hL={class:"mt_10 mt-[10px]"},uL={key:0},_L={key:1},gL={key:2,class:"c_success text-hy-success"},yL=be(e.defineComponent({__name:"task-report",props:{taskItemId:{default:"0"}},setup(t,{expose:n}){const o=t,{$t:a,deviceUserList:s,dataList:l,activeName:r,taskItemViewFn:i,activeNameFn:c,selectItemFn:p}=RA({props:o});return e.onMounted(()=>{i()}),n({taskItemViewFn:i}),(d,f)=>{const m=Fr,_=e.resolveComponent("el-icon"),y=OA,u=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",PA,[e.createElementVNode("div",MA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(k,b)=>(e.openBlock(),e.createElementBlock("div",{key:`${b}deviceUserList`},[e.createElementVNode("div",{class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:E=>e.unref(c)(k.orgId)},[e.createVNode(_,{style:e.normalizeStyle({transform:k.orgId===e.unref(r)?"rotate(90deg)":"rotate(0deg)"}),class:"!text-[16px] !text-hy-text-primary transition_05"},{default:e.withCtx(()=>[e.createVNode(m)]),_:2},1032,["style"]),e.createElementVNode("span",zA,e.toDisplayString(k.orgName),1)],8,UA),e.createElementVNode("div",{class:"transition_05",style:e.normalizeStyle({overflow:k.orgId===e.unref(r)?"inherit":"hidden",height:k.orgId===e.unref(r)?`${k.deviceUserList.length*40}px`:"0px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.deviceUserList,(E,N)=>(e.openBlock(),e.createElementBlock("div",{key:`${N}device`,class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:S=>e.unref(p)(E)},[e.createElementVNode("div",HA,[e.createElementVNode("div",jA,e.toDisplayString(E.deviceUserName),1),e.createElementVNode("span",YA," ("+e.toDisplayString(E.jobNum)+")",1)]),E.taskReportStatus===1?(e.openBlock(),e.createElementBlock("div",GA,e.toDisplayString(e.unref(a)("unfilled")),1)):E.taskReportStatus===2?(e.openBlock(),e.createElementBlock("div",qA,e.toDisplayString(e.unref(a)("haveBeenFilledIn")),1)):e.createCommentVNode("",!0)],8,WA))),128))],4)]))),128))]),e.unref(l)&&e.unref(l).length?(e.openBlock(),e.createElementBlock("div",KA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),k=>(e.openBlock(),e.createElementBlock("div",{key:k.key,ref_for:!0,ref:k.key,class:"background_box mb_10 mb-[10px]"},[k.userReport?(e.openBlock(),e.createElementBlock("div",XA,[e.createElementVNode("div",JA,[e.createElementVNode("div",ZA,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(k.deviceUserName)+" ",1),e.createElementVNode("span",QA,"("+e.toDisplayString(k.jobNum)+")",1)]),e.withDirectives(e.createElementVNode("div",{class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},e.toDisplayString(e.unref(a)("unfinished")),513),[[e.vShow,k.status===0]]),e.withDirectives(e.createElementVNode("div",{style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},e.toDisplayString(e.unref(a)("finish")),513),[[e.vShow,k.status===1]])]),e.createElementVNode("div",vA,[e.createElementVNode("div",null,e.toDisplayString(k.urTemplateName),1),e.createElementVNode("div",eL,[e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(y)]),_:1}),e.createElementVNode("span",tL,e.toDisplayString(k.urSubmitDtm),1)])])]),e.createElementVNode("div",nL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.urOptionList,(b,E)=>(e.openBlock(),e.createElementBlock("div",{key:`${E}urOptionList`,class:"reportItem ptb_10 border-bottom p-[10px_0] text-[12px]"},[e.createElementVNode("div",oL,[e.createElementVNode("div",aL,e.toDisplayString(e.unref(a)("ask")),1),e.createTextVNode(" "+e.toDisplayString(b.optionTitle),1)]),e.createElementVNode("div",sL,[e.createElementVNode("div",lL,e.toDisplayString(e.unref(a)("answer")),1),b.optionValue?(e.openBlock(),e.createElementBlock("span",rL,e.toDisplayString(b.optionValue),1)):(e.openBlock(),e.createElementBlock("span",iL,e.toDisplayString(e.unref(a)("none")),1))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",cL,[e.createElementVNode("div",dL,[e.createElementVNode("div",pL,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(k.deviceUserName)+" ",1),e.createElementVNode("span",fL,"("+e.toDisplayString(k.jobNum)+")",1)]),e.withDirectives(e.createElementVNode("div",{class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},e.toDisplayString(e.unref(a)("unfinished")),513),[[e.vShow,k.status===0]]),e.withDirectives(e.createElementVNode("div",{style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},e.toDisplayString(e.unref(a)("finish")),513),[[e.vShow,k.status===1]])])]),e.createElementVNode("div",mL,[e.createVNode(u,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",hL,[k.taskReportStatus===0?(e.openBlock(),e.createElementBlock("span",uL,e.toDisplayString(e.unref(a)("noNeedToSubmitATaskReport")),1)):k.taskReportStatus===1?(e.openBlock(),e.createElementBlock("span",_L,e.toDisplayString(e.unref(a)("unpackTaskReport")),1)):k.taskReportStatus===2?(e.openBlock(),e.createElementBlock("span",gL,e.toDisplayString(e.unref(a)("submittedTaskReport")),1)):e.createCommentVNode("",!0)])])]))]))),128))],512)):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-4d03873f"]]);function xL({props:t}){const n=e.ref({}),o=e.ref(null),a=e.ref([]),s=e.ref([]),l=e.ref();function r(p){p.del!==1&&(p.fileType===1||p.fileType===2||p.fileType)}function i(p){l.value.offsetTop}async function c(){const p=await pa({id:t.taskItemId,viewMode:2});if(p.code===200){const d=p.data||{};if(d.opList){const f=d.opList||[],m=[];f.forEach(_=>{const y=_.actionList.map(u=>u.actionDetail);m.push({..._,key:_.id,actionDetail:y.toString()})}),a.value=m}else a.value=[]}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,dataListRef:l,clickGroupItem:r,selectItemFn:i,taskItemViewFn:c}}const kL={class:"r-f h_100vh h-full flex"},NL={class:"background_box information css-text-no-select"},bL=["onClick"],CL={class:"r-f f-g flex flex-grow w-0"},wL={class:"indexBox centerBox flex-shrink flex justify-center items-center",style:{left:"4px"}},EL={class:"over_one_line truncate"},SL={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},TL={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},DL={class:"recordList fs_12 text-[12px]"},VL={class:"actionList c_fff text-hy-text-main"},$L={key:0,class:"indexBox centerBox flex justify-center items-center"},BL={key:1,class:"indexBoxv2 centerBox flex justify-center items-center"},IL={class:"mediaFileList"},AL={key:0},LL={class:"flex_vertically_center pos_r relative flex items-center"},FL={class:"c_fff text-hy-text-main"},OL={key:1},RL={class:"flex_vertically_center pos_r relative flex items-center"},PL={class:"c_fff text-hy-text-main"},ML=["onClick"],UL={class:"fileDel clickBox"},zL={key:1,class:"file clickBox"},WL={key:2},HL={class:"flex_vertically_center pos_r relative flex items-center"},jL={class:"c_fff text-hy-text-main"},YL=be(e.defineComponent({__name:"task-view",props:{taskItemId:{default:"0"}},setup(t,{expose:n}){const o=t,{$t:a,taskItemViewFn:s,dataList:l,selectItemFn:r,dataListRef:i,clickGroupItem:c}=xL({props:o});return e.onMounted(()=>{s()}),n({taskItemViewFn:s}),(p,d)=>{const f=$t,m=e.resolveComponent("el-icon"),_=Lr,y=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",kL,[e.createElementVNode("div",NL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(u,k)=>(e.openBlock(),e.createElementBlock("div",{key:`${k}device`,class:"clickBox deviceItem background_box c_9DA7B2 flex_vertically_center pos_r relative flex items-center text-hy-text-secondary",onClick:b=>e.unref(r)(u)},[e.createElementVNode("div",CL,[e.createElementVNode("span",wL,e.toDisplayString(k+1),1),e.createElementVNode("span",EL,e.toDisplayString(u.actionDetail),1)]),u.status===0?(e.openBlock(),e.createElementBlock("div",SL,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",TL,e.toDisplayString(e.unref(a)("finish")),1))],8,bL))),128))]),e.createElementVNode("div",{ref_key:"dataListRef",ref:i,class:"content_box"},[e.createElementVNode("ul",DL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(u,k)=>(e.openBlock(),e.createElementBlock("li",{key:u.key,ref_for:!0,ref:u.key,class:e.normalizeClass([`recordItem_${u.status}`,"background_box mb_10 ovh overflow-hidden mb-[10px]"])},[e.createElementVNode("div",VL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.actionList,(b,E)=>(e.openBlock(),e.createElementBlock("div",{key:`${E}actionList`,class:"pos_r flex_vertically_center h_30 relative flex items-center h-[30px]",style:{"padding-left":"28px"}},[E===0?(e.openBlock(),e.createElementBlock("span",$L,e.toDisplayString(k+1),1)):(e.openBlock(),e.createElementBlock("span",BL)),e.createElementVNode("span",null,e.toDisplayString(b.actionDetail),1)]))),128))]),e.createElementVNode("div",IL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.recordList,(b,E)=>(e.openBlock(),e.createElementBlock("div",{key:`${E}recordList`,class:"pos_r mediaFile_item c_9DA7B2 lh_20 mb_10 relative text-hy-text-secondary leading-[20px] mb-[10px]"},[b.status===0?(e.openBlock(),e.createElementBlock("div",AL,[e.createElementVNode("div",LL,[e.createVNode(m,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(f)]),_:1}),e.createElementVNode("span",FL,e.toDisplayString(b.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(b.jobNum)+")",1)]),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("unfinishedTask")),1)])):b.status===1&&b.mediaFileList&&b.mediaFileList.length?(e.openBlock(),e.createElementBlock("div",OL,[e.createElementVNode("div",RL,[e.createVNode(m,{class:"!text-hy-success icon_box"},{default:e.withCtx(()=>[e.createVNode(_)]),_:1}),e.createElementVNode("span",PL,e.toDisplayString(b.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(b.jobNum)+")",1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.mediaFileList,(N,S)=>(e.openBlock(),e.createElementBlock("div",{key:`${S}mediaFileList`,class:"css-text-no-select",onClick:V=>e.unref(c)(N)},[e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("uploaded")),1),N.del===1?(e.openBlock(),e.createBlock(y,{key:0,class:"item",effect:"dark",content:e.unref(a)("theFileHasBeenDeletedAndCannotBeViewed"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",UL,e.toDisplayString(N.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",zL,e.toDisplayString(N.fileName),1))],8,ML))),128))])):(e.openBlock(),e.createElementBlock("div",WL,[e.createElementVNode("div",HL,[e.createVNode(m,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(_)]),_:1}),e.createElementVNode("span",jL,e.toDisplayString(b.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(b.jobNum)+")",1)]),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("theTaskHasBeenCompletedWaitingForUploading")),1)]))]))),128))])],2))),128))])],512)])}}}),[["__scopeId","data-v-85c188ed"]]);function GL(){const t=e.ref({}),n=e.ref("255"),o=e.ref(1),a=e.ref(1),s=e.ref(!1),l=e.ref(),r=e.ref(),i=e.ref(),c=e.ref(),p=e.ref();function d(E){l.value.taskExampleFn(E)}function f(E){a.value=E}function m(E){if(!E){Se.error(x("checkTheTaskAreaWrong"));return}r.value.show({mapRailId:E})}function _(E){o.value=E,E===2&&(t.value.taskMode===2?f(2):f(1))}function y(){s.value=!1}function u(){return new Promise(async(E,N)=>{const S=await wI({id:n.value});S.code===200&&(t.value=S.data||{},E(0))})}function k(E=null){n.value=E,_(1),u().then(()=>{console.log(111),s.value=!0})}function b(){switch(o.value){case 1:u();break;case 2:a.value===1&&t.value.taskMode===1?i.value.taskItemViewFn():this.viewMode===2&&c.value.taskItemViewFn();break;case 3:p.value.taskItemViewFn();break}}return{$t:x,form:t,taskItemId:n,navigationType:o,viewMode:a,dialogVisible:s,viewTaskExampleRef:l,selectLocationAreaRef:r,peopleViewRef:i,taskViewRef:c,taskReportRef:p,viewTaskExampleShow:d,viewModeFn:f,seeTaskArea:m,navigationTypeFn:_,onClose:y,selectFn:u,show:k,onRefresh:b}}const qL={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg-1"},KL={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold"},XL={class:"dialog_body",style:{"padding-right":"0px"}},JL={class:"ovh centerBox flex items-center justify-center overflow-hidden"},ZL={class:"r-f navigation flex"},QL={key:0,class:"r-f flex",style:{height:"540px"}},vL={class:"fs_12 lh_20 h_100vh background_box information text-[12px] leading-[20px] h-full"},eF={class:"fs_16 fw_600 lh_40 text-[16px] font-[600px] leading-[40px]"},tF={key:0,class:"mb_20 mb-[20px]"},nF={class:"c_9DA7B2 text-hy-text-secondary"},oF=["innerHTML"],aF={class:"mb_20 mb-[20px]"},sF={class:"c_9DA7B2 text-hy-text-secondary"},lF={class:"c_9DA7B2 text-hy-text-secondary"},rF={class:"mb_20 mb-[20px]"},iF={class:"c_9DA7B2 text-hy-text-secondary"},cF={class:"h_100vh content_box h-full"},dF={class:"flex_vertically_center title_box flex items-center"},pF={class:"pos_r relative"},fF={class:"fs_12"},mF={class:"actionList"},hF={key:0},uF=["onClick"],_F={key:1,class:"c-f flex flex-col",style:{height:"540px"}},gF={class:"fs_12 r-f mb_10 flex text-[12px] mb-[10px]",style:{"justify-content":"space-between","padding-right":"30px"}},yF={class:"lh_20 flex_vertically_center flex items-center leading-[20px]"},xF={key:0,class:"c_dangerv2 text-hy-danger"},kF={key:1,class:"c_success text-hy-success"},NF={key:2,class:"c_9DA7B2 text-hy-text-secondary"},bF={key:3,class:"c_theme text-hy-text-primary"},CF={style:{width:"108px"},class:"plr_10 p-[0_10px]"},wF={class:"c_theme text-hy-text-primary"},EF={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},SF={class:"centerBox flex justify-center items-center"},TF={style:{"margin-left":"6px"}},DF={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary flex items-center"},VF={class:"centerBox flex justify-center items-center"},$F={style:{"margin-left":"6px"}},BF={style:{"flex-grow":"1",height:"0"}},IF=be(e.defineComponent({__name:"common-task-detail",props:{draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const{$t:o,viewTaskExampleRef:a,selectLocationAreaRef:s,taskReportRef:l,taskViewRef:r,peopleViewRef:i,show:c,dialogVisible:p,navigationType:d,form:f,viewMode:m,taskItemId:_,viewModeFn:y,viewTaskExampleShow:u,seeTaskArea:k,navigationTypeFn:b,onRefresh:E,onClose:N}=GL();return n({show:c}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-button"),g=e.resolveComponent("el-progress"),C=$t,w=e.resolveComponent("el-icon"),D=e.resolveComponent("el-dialog"),T=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(D,{modelValue:e.unref(p),"onUpdate:modelValue":V[7]||(V[7]=L=>e.isRef(p)?p.value=L: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:"900px",modal:!S.draggable,draggable:S.draggable,"modal-class":S.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",qL,[e.createElementVNode("div",KL,[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("missionDetails")),1),e.createElementVNode("div",null,[e.createElementVNode("div",{class:"cursor-pointer active:opacity-60 refresh",onClick:V[0]||(V[0]=(...L)=>e.unref(E)&&e.unref(E)(...L))},[e.createVNode($,{name:"live-broadcast-refresh-v3",style:{width:"26px",height:"26px"},"class-name":"text-hy-text-primary"})]),e.createElementVNode("div",{class:"clickBox cursor-pointer active:opacity-60 closeBox absolute right-[12px] top-[12px]",onClick:V[1]||(V[1]=(...L)=>e.unref(N)&&e.unref(N)(...L))},[e.createVNode($,{name:"sys-button-close",style:{width:"26px",height:"26px"},"class-name":"text-hy-text-danger"})])])]),e.createElementVNode("div",XL,[e.createVNode(CI,{ref_key:"selectLocationAreaRef",ref:s,draggable:S.draggable},null,8,["draggable"]),e.createElementVNode("div",JL,[e.createElementVNode("ul",ZL,[e.createElementVNode("li",{class:e.normalizeClass(["clickBox cursor-pointer active:opacity-60 css-text-no-select",{selectBox:e.unref(d)===1}]),onClick:V[2]||(V[2]=L=>e.unref(b)(1))},e.toDisplayString(e.unref(o)("missionDetails-0")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox cursor-pointer active:opacity-60 css-text-no-select",{selectBox:e.unref(d)===2}]),onClick:V[3]||(V[3]=L=>e.unref(b)(2))},e.toDisplayString(e.unref(o)("implementation")),3),e.unref(f)&&e.unref(f).templateId?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass(["clickBox cursor-pointer active:opacity-60 css-text-no-select",{selectBox:e.unref(d)===3}]),onClick:V[4]||(V[4]=L=>e.unref(b)(3))},e.toDisplayString(e.unref(o)("missionReport")),3)):e.createCommentVNode("",!0)])]),e.unref(d)===1?(e.openBlock(),e.createElementBlock("div",QL,[e.createElementVNode("div",vL,[e.createElementVNode("div",eF,e.toDisplayString(e.unref(f).taskAction),1),e.unref(f).taskDesc?(e.openBlock(),e.createElementBlock("div",tF,[e.createElementVNode("div",nF,e.toDisplayString(e.unref(o)("taskDescription")),1),e.createElementVNode("div",{class:"mission_content",style:{"white-space":"pre-wrap"},innerHTML:e.unref(f).taskDesc},null,8,oF)])):e.createCommentVNode("",!0),e.createElementVNode("div",aF,[e.createElementVNode("div",sF,e.toDisplayString(e.unref(o)("executionTime")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(f).executeDtmStr)+" ",1),e.createElementVNode("span",lF,"("+e.toDisplayString(e.unref(f).taskDateStartTime)+" ~ "+e.toDisplayString(e.unref(f).taskDateEndTime)+")",1)])]),e.createElementVNode("div",rF,[e.createElementVNode("div",iF,e.toDisplayString(e.unref(o)("executionMode")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(f).taskMode===1?e.unref(o)("independentExecution"):e.unref(o)("collaborativeExecution")),1)])]),e.createElementVNode("ul",cF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f).opList,(L,A)=>(e.openBlock(),e.createElementBlock("li",{key:`${A}opList`,class:"background_box ovh overflow-hidden"},[e.createElementVNode("div",dF,[e.createElementVNode("div",pF,[e.createTextVNode(e.toDisplayString(e.unref(o)("first"))+e.toDisplayString(A+1)+e.toDisplayString(e.unref(o)("strip"))+" ",1),e.createElementVNode("span",null,e.toDisplayString(L.taskOp===1?e.unref(o)("photograph"):e.unref(o)("record")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(o)("task")),1)]),e.createVNode(h,{class:"button_default",type:"primary",onClick:H=>e.unref(k)(L.mapRailId)},{default:e.withCtx(()=>[e.createElementVNode("span",fF,e.toDisplayString(e.unref(o)("missionArea")),1)]),_:2},1032,["onClick"])]),e.createElementVNode("ul",mF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.actionList,(H,O)=>(e.openBlock(),e.createElementBlock("li",{key:`${O}actionList`,class:e.normalizeClass([{clickBox:!1},"flex_vertically_center flex items-center"])},[e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(H.actionDetail)+" ",1),H.taskAction?(e.openBlock(),e.createElementBlock("span",hF,'"'+e.toDisplayString(H.taskAction)+'"',1)):e.createCommentVNode("",!0)]),L.taskExample&&L.taskExample.exampleName?(e.openBlock(),e.createElementBlock("span",{key:0,class:"c_9DA7B2 flex-shrink ml_10 clickBox taskExample css-text-no-select text-hy-text-secondary ml-[10px] cursor-pointer active:opacity-60",onClick:P=>e.unref(u)(L.taskExample)},e.toDisplayString(e.unref(o)("viewExample")),9,uF)):e.createCommentVNode("",!0)]))),128))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",_F,[e.withDirectives(e.createElementVNode("div",gF,[e.createElementVNode("div",yF,[e.unref(f).status===0?(e.openBlock(),e.createElementBlock("span",xF,e.toDisplayString(e.unref(o)("unfinished")),1)):e.unref(f).status===1?(e.openBlock(),e.createElementBlock("span",kF,e.toDisplayString(e.unref(o)("hasBeenCompleted")),1)):e.unref(f).status===2?(e.openBlock(),e.createElementBlock("span",NF,e.toDisplayString(e.unref(o)("notPerformed")),1)):e.unref(f).status===3?(e.openBlock(),e.createElementBlock("span",bF,e.toDisplayString(e.unref(o)("execute")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",CF,[e.unref(f).status===0?(e.openBlock(),e.createBlock(g,{key:0,class:"progress-bar_outer_errors",color:"var(--hy-danger)","text-inside":!0,"stroke-width":16,status:"exception",percentage:e.unref(f).taskProgress>100?100:e.unref(f).taskProgress},null,8,["percentage"])):(e.openBlock(),e.createBlock(g,{key:1,class:e.normalizeClass({"progress-bar_outer":e.unref(f).taskProgress!==100}),color:"var(--success)","text-inside":!0,"stroke-width":16,status:"success",percentage:e.unref(f).taskProgress},null,8,["class","percentage"]))]),e.createElementVNode("span",wF,e.toDisplayString(e.unref(f).finishNum||0)+"/"+e.toDisplayString(e.unref(f).totalNum||0),1)]),e.withDirectives(e.createElementVNode("div",EF,[e.createVNode(w,null,{default:e.withCtx(()=>[e.createVNode(C)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(o)("currentlyForPersonnelView"))+" ",1),e.createVNode(h,{class:"button_function ml_10 ml-[10px]",onClick:V[5]||(V[5]=L=>e.unref(y)(2))},{default:e.withCtx(()=>[e.createElementVNode("div",SF,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-download-task"}),e.createElementVNode("span",TF,e.toDisplayString(e.unref(o)("missionView")),1)])]),_:1})],512),[[e.vShow,e.unref(m)===1&&e.unref(f).taskMode===1]]),e.withDirectives(e.createElementVNode("div",DF,[e.createVNode(w,null,{default:e.withCtx(()=>[e.createVNode(C)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(o)("currentAsAMissionView"))+" ",1),e.unref(f).taskMode===1?(e.openBlock(),e.createBlock(h,{key:0,class:"button_function ml_10 ml-[10px]",onClick:V[6]||(V[6]=L=>e.unref(y)(1))},{default:e.withCtx(()=>[e.createElementVNode("div",VF,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-user-online"}),e.createElementVNode("span",$F,e.toDisplayString(e.unref(o)("personnelView")),1)])]),_:1})):e.createCommentVNode("",!0)],512),[[e.vShow,e.unref(m)===2]])],512),[[e.vShow,e.unref(d)===2]]),e.createElementVNode("div",BF,[e.unref(d)===2&&e.unref(m)===1&&e.unref(f).taskMode===1?(e.openBlock(),e.createBlock(IA,{key:0,ref_key:"peopleViewRef",ref:i,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.createCommentVNode("",!0),e.unref(d)===2&&e.unref(m)===2?(e.openBlock(),e.createBlock(YL,{key:1,ref_key:"taskViewRef",ref:r,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.unref(d)===3?(e.openBlock(),e.createBlock(yL,{key:2,ref_key:"taskReportRef",ref:l,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.createCommentVNode("",!0)])])),e.createVNode(Ar,{ref_key:"viewTaskExampleRef",ref:a,draggable:S.draggable},null,8,["draggable"])])])]),_:1})),[[T]])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-f75c95cc"]]);function AF({props:t}){const n=e.ref(null),o=e.ref(null),a=e.ref({}),s=e.ref(!1),l=e.ref(null);function r(d){if(d.del===1)return Se.error(x("theFileHasBeenDeletedAndCannotBeViewed-0"));d.fileType===1||d.fileType===2||d.fileType}function i(){return new Promise(async(d,f)=>{if(t.formType===1){const m=await eb({taskId:o.value,deviceUserId:n.value});if(m.code===200){const _=m.data||{};a.value=_||{},a.value.imageList&&(a.value.imageListV2=a.value.imageList.map(y=>y.filePath)),d(0)}}else if(t.formType===2){const m=await jl({recordId:l.value});if(m.code===200){const _=m.data||{};a.value=_||{},a.value.imageList&&(a.value.imageListV2=a.value.imageList.map(y=>y.filePath)),d(0)}}})}function c(d={}){if(!d)return;const f=Se.warning(x("inTheOpeningPleaseWait"));o.value=d.taskId,n.value=d.deviceUserId,l.value=d.recordId||null,i().then(()=>{s.value=!0,setTimeout(()=>{f.close()},1e3)})}function p(){s.value=!1}return{deviceUserId:n,taskId:o,deviceReport:a,dialogVisible:s,recordId:l,clickGroupItem:r,show:c,onClose:p,$t:x}}const LF={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg"},FF={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},OF={key:0},RF={key:1},PF={class:"absolute right-[12px] top-[12px]"},MF={style:{height:"500px"},class:"c_fff fs_12 dialog_body text-hy-text-main text-[12px]"},UF={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},zF={class:"information"},WF={class:"flex_vertically_center flex items-center"},HF={style:{"margin-left":"6px"}},jF={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},YF={class:"flex_vertically_center flex items-center"},GF={style:{"margin-left":"6px"}},qF={key:0,class:"type_box success"},KF={key:1,class:"type_box"},XF={class:"form fs_12 text-[12px]"},JF={key:0},ZF={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},QF={style:{"border-top":"1px solid var(--hy-border-2)","border-bottom":"1px solid var(--hy-border-2)",padding:"10px 0px"},class:"c_theme flex_vertically_center text-hy-text-primary flex items-center"},vF={key:1},eO={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},tO={class:"r-f mb_10 flex_vertically_center flex mb-[10px] items-center"},nO={class:"mr_10 label flex-shrink mr-[10px]"},oO={class:"r-f flex_vertically_center flex items-center"},aO={class:"mr_10 label label_answer flex-shrink mr-[10px]"},sO={key:0,class:"c_theme text-hy-text-primary"},lO={key:1,class:"c_9DA7B2 text-hy-text-secondary"},rO={key:2},iO={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px]"},cO={class:"group-item"},dO=["onClick"],pO={key:0,class:"c-f-i group-content r-f flex"},fO={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},mO=["src"],hO={key:1,style:{"flex-grow":"1"}},uO={class:"icon-box c-f-i flex"},_O={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},gO={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},yO={key:0,class:"information-type"},xO={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},kO={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},NO={key:0,class:"c_9DA7B2 text-hy-text-secondary"},bO={key:1},CO={key:1,class:"c-f-i group-content r-f flex"},wO={style:{"flex-grow":"1"}},EO={class:"icon-box c-f-i flex"},SO={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},TO={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},DO={key:0,class:"information-type"},VO={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},$O={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},BO={key:0,class:"c_9DA7B2 text-hy-text-secondary"},IO={key:1},AO={key:2,class:"c-f-i group-content r-f flex"},LO={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},FO=["src"],OO={key:1,style:{"flex-grow":"1"}},RO={class:"icon-box c-f-i flex"},PO={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},MO={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},UO={key:0,class:"information-type"},zO={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},WO={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},HO={key:0,class:"c_9DA7B2 text-hy-text-secondary"},jO={key:1},YO={key:3},GO={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},qO={class:"group-item"},KO=["onClick"],XO={key:0,class:"c-f-i group-content r-f flex"},JO={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},ZO=["src"],QO={key:1,style:{"flex-grow":"1"}},vO={class:"icon-box c-f-i flex"},eR={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},tR={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},nR={key:0,class:"information-type"},oR={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},aR={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},sR={key:0,class:"c_9DA7B2 text-hy-text-secondary"},lR={key:1},rR={key:1,class:"c-f-i group-content r-f flex"},iR={style:{"flex-grow":"1"}},cR={class:"icon-box c-f-i flex"},dR={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},pR={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},fR={key:0,class:"information-type"},mR={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},hR={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},uR={key:0,class:"c_9DA7B2 text-hy-text-secondary"},_R={key:1},gR={key:2,class:"c-f-i group-content r-f flex"},yR={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},xR=["src"],kR={key:1,style:{"flex-grow":"1"}},NR={class:"icon-box c-f-i"},bR={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},CR={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},wR={key:0,class:"information-type"},ER={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},SR={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},TR={key:0,class:"c_9DA7B2 text-hy-text-secondary"},DR={key:1},Or=be(e.defineComponent({__name:"submission-form",props:{formType:{default:1},draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const o=t,{$t:a,show:s,dialogVisible:l,deviceReport:r,onClose:i,clickGroupItem:c}=AF({props:o});return n({show:s}),(p,d)=>{const f=e.resolveComponent("svg-icon"),m=e.resolveComponent("el-dialog"),_=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(m,{modelValue:e.unref(l),"onUpdate:modelValue":d[0]||(d[0]=y=>e.isRef(l)?l.value=y: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:"530px",modal:!p.draggable,draggable:p.draggable,"modal-class":p.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",LF,[e.createElementVNode("div",FF,[o.formType===1?(e.openBlock(),e.createElementBlock("span",OF,e.toDisplayString(e.unref(a)("exception")),1)):o.formType===2?(e.openBlock(),e.createElementBlock("span",RF,e.toDisplayString(e.unref(r).pointName||e.unref(a)("inspectionPoint-0"))+e.toDisplayString(e.unref(a)("form-0")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",PF,[e.createVNode(f,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(i),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",MF,[e.createElementVNode("div",UF,[e.createElementVNode("div",zF,[e.createElementVNode("div",WF,[e.createVNode(f,{style:{width:"14px",height:"14px"},name:"icon-user","class-name":"text-hy-text-main"}),e.createElementVNode("span",HF,[e.createTextVNode(e.toDisplayString(e.unref(r).name),1),e.unref(r).jobNum?(e.openBlock(),e.createElementBlock("span",jF,"("+e.toDisplayString(e.unref(r).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",YF,[e.createVNode(f,{name:"base-every-day-time",class:"w-[16px] h-[16px]"}),e.createElementVNode("span",GF,e.toDisplayString(e.unref(r).executeDtm),1)]),e.unref(r).checkState===1?(e.openBlock(),e.createElementBlock("div",qF,e.toDisplayString(e.unref(a)("normal")),1)):e.unref(r).checkState===2?(e.openBlock(),e.createElementBlock("div",KF,e.toDisplayString(e.unref(a)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",XF,[e.unref(r).dealSituation?(e.openBlock(),e.createElementBlock("div",JF,[e.createElementVNode("div",ZF,e.toDisplayString(e.unref(a)("handling")),1),e.createElementVNode("p",QF,e.toDisplayString(e.unref(r).dealSituation||e.unref(a)("none")),1)])):e.createCommentVNode("",!0),e.unref(r).formList&&e.unref(r).formList.length?(e.openBlock(),e.createElementBlock("div",vF,[e.createElementVNode("div",eO,e.toDisplayString(e.unref(a)("formContent")),1),e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).formList,(y,u)=>(e.openBlock(),e.createElementBlock("li",{key:u,class:"border-top ptb_10 p-[10px_0px]"},[e.createElementVNode("div",tO,[e.createElementVNode("p",nO,e.toDisplayString(e.unref(a)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(y.optionTitle),1)]),e.createElementVNode("div",oO,[e.createElementVNode("p",aO,e.toDisplayString(e.unref(a)("answer")),1),y.optionValue?(e.openBlock(),e.createElementBlock("span",sO,e.toDisplayString(y.optionValue),1)):(e.openBlock(),e.createElementBlock("span",lO,e.toDisplayString(e.unref(a)("unfilled")),1))])]))),128))])])):e.createCommentVNode("",!0),e.unref(r).imageList&&e.unref(r).imageList.length?(e.openBlock(),e.createElementBlock("div",rO,[e.createElementVNode("div",iO,e.toDisplayString(e.unref(a)("picture")),1),e.createElementVNode("div",cO,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).imageList,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,onClick:u=>e.unref(c)(y)},[y.fileType===1?(e.openBlock(),e.createElementBlock("div",pO,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.filePath&&y.del!==1?(e.openBlock(),e.createElementBlock("div",fO,[e.createElementVNode("img",{src:y.filePath,class:"h_100vh h-full"},null,8,mO)])):(e.openBlock(),e.createElementBlock("div",hO,[e.createElementVNode("div",uO,[e.createVNode(f,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(f,{style:{margin:"0 4px"},name:"menu-image","class-name":"w-[40px] h-[40px]"}),e.createVNode(f,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",_O,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",gO,[y.type===1?(e.openBlock(),e.createElementBlock("div",yO,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",xO,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",kO," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",NO,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",bO,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),y.mark?(e.openBlock(),e.createBlock(f,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):y.fileType===4?(e.openBlock(),e.createElementBlock("div",CO,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[e.createElementVNode("div",wO,[e.createElementVNode("div",EO,[e.createVNode(f,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(f,{name:"menu-micphone--2","class-name":"w-[40px] h-[40px]"}),e.createVNode(f,{style:{"margin-left":"4px"},name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])]),e.createElementVNode("div",SO,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",TO,[y.type===1?(e.openBlock(),e.createElementBlock("div",DO,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",VO,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",$O," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",BO,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",IO,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),y.mark?(e.openBlock(),e.createBlock(f,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):y.fileType===2?(e.openBlock(),e.createElementBlock("div",AO,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.screenshot1?(e.openBlock(),e.createElementBlock("div",LO,[e.createElementVNode("img",{src:y.screenshot1,class:"h_100vh h-full"},null,8,FO)])):(e.openBlock(),e.createElementBlock("div",OO,[e.createElementVNode("div",RO,[e.createVNode(f,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(f,{style:{margin:"0 4px"},name:"menu-video","class-name":"w-[40px] h-[40px]"}),e.createVNode(f,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",PO,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",MO,[y.type===1?(e.openBlock(),e.createElementBlock("div",UO,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",zO,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",WO," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",HO,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",jO,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),y.mark?(e.openBlock(),e.createBlock(f,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):e.createCommentVNode("",!0)],8,dO))),128))])])):e.createCommentVNode("",!0),e.unref(r).videoList&&e.unref(r).videoList.length?(e.openBlock(),e.createElementBlock("div",YO,[e.createElementVNode("div",GO,e.toDisplayString(e.unref(a)("video")),1),e.createElementVNode("div",qO,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).videoList,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,onClick:u=>e.unref(c)(y)},[y.fileType===1?(e.openBlock(),e.createElementBlock("div",XO,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.filePath&&y.del!==1?(e.openBlock(),e.createElementBlock("div",JO,[e.createElementVNode("img",{src:y.filePath,class:"h_100vh h-full"},null,8,ZO)])):(e.openBlock(),e.createElementBlock("div",QO,[e.createElementVNode("div",vO,[e.createVNode(f,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(f,{style:{margin:"0 4px"},name:"menu-image","class-name":"w-[40px] h-[40px]"}),e.createVNode(f,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",eR,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",tR,[y.type===1?(e.openBlock(),e.createElementBlock("div",nR,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",oR,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",aR," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",sR,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",lR,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),y.mark?(e.openBlock(),e.createBlock(f,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):y.fileType===4?(e.openBlock(),e.createElementBlock("div",rR,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[e.createElementVNode("div",iR,[e.createElementVNode("div",cR,[e.createVNode(f,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(f,{name:"menu-micphone--2","class-name":"w-[40px] h-[40px]"}),e.createVNode(f,{style:{"margin-left":"4px"},name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])]),e.createElementVNode("div",dR,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",pR,[y.type===1?(e.openBlock(),e.createElementBlock("div",fR,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",mR,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",hR," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",uR,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",_R,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),y.mark?(e.openBlock(),e.createBlock(f,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):y.fileType===2?(e.openBlock(),e.createElementBlock("div",gR,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.screenshot1?(e.openBlock(),e.createElementBlock("div",yR,[e.createElementVNode("img",{src:y.screenshot1,class:"h_100vh h-full"},null,8,xR)])):(e.openBlock(),e.createElementBlock("div",kR,[e.createElementVNode("div",NR,[e.createVNode(f,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(f,{style:{margin:"0 4px"},name:"menu-video","class-name":"w-[40px] h-[40px]"}),e.createVNode(f,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",bR,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",CR,[y.type===1?(e.openBlock(),e.createElementBlock("div",wR,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",ER,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",SR," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",TR,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",DR,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),y.mark?(e.openBlock(),e.createBlock(f,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):e.createCommentVNode("",!0)],8,KO))),128))])])):e.createCommentVNode("",!0)])])])])]),_:1})),[[_]])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-307cc586"]]);function VR(){const t=e.ref({}),n=e.ref({}),o=e.ref([]),a=e.ref([]),s=e.ref({}),l=e.ref(null),r=e.ref(null),i=e.ref(!1),{H:c,isShowMap:p,layersUrlList:d,mapConfig:f}=qt(),m=e.shallowRef(null),_=e.ref([]),y=e.ref([]),u=e.ref(),k=e.ref(),b=e.computed(()=>a.value.findIndex(H=>H.lat&&H.lng)!==-1);function E(A){m.value&&A.lat&&A.lng&&(c.setZoom(m.value,18),c.panTo(m.value,[A.lat,A.lng]))}function N(){if(!m.value)return;_.value=[],y.value=[];const A=[];a.value.forEach((P,z)=>{if(!(P.lng&&P.lat))return;A.push(P);let U=null;if(P.hadCheck===1){const j=P.checkState===1?"var(--hy-success)":"var(--hy-danger)";U=`<div style="width: 18px;
38
38
  height: 18px;
39
39
  overflow: hidden;
40
40
  border-radius: 50%;