command-center-v3-common 0.0.93 → 0.0.95
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 r_=Object.prototype.hasOwnProperty,zl=(t,n)=>r_.call(t,n),Yn=t=>typeof t=="function",mn=t=>typeof t=="string",Wl=t=>t!==null&&typeof t=="object";var i_=typeof global=="object"&&global&&global.Object===Object&&global,c_=typeof self=="object"&&self&&self.Object===Object&&self,Ko=i_||c_||Function("return this")(),Kt=Ko.Symbol,jl=Object.prototype,d_=jl.hasOwnProperty,p_=jl.toString,hn=Kt?Kt.toStringTag:void 0;function f_(t){var n=d_.call(t,hn),o=t[hn];try{t[hn]=void 0;var a=!0}catch{}var s=p_.call(t);return a&&(n?t[hn]=o:delete t[hn]),s}var m_=Object.prototype,h_=m_.toString;function u_(t){return h_.call(t)}var __="[object Null]",g_="[object Undefined]",Hl=Kt?Kt.toStringTag:void 0;function Yl(t){return t==null?t===void 0?g_:__:Hl&&Hl in Object(t)?f_(t):u_(t)}function y_(t){return t!=null&&typeof t=="object"}var x_="[object Symbol]";function Xo(t){return typeof t=="symbol"||y_(t)&&Yl(t)==x_}function k_(t,n){for(var o=-1,a=t==null?0:t.length,s=Array(a);++o<a;)s[o]=n(t[o],o,t);return s}var Jo=Array.isArray,N_=1/0,Gl=Kt?Kt.prototype:void 0,ql=Gl?Gl.toString:void 0;function Kl(t){if(typeof t=="string")return t;if(Jo(t))return k_(t,Kl)+"";if(Xo(t))return ql?ql.call(t):"";var n=t+"";return n=="0"&&1/t==-N_?"-0":n}function Xl(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var b_="[object AsyncFunction]",C_="[object Function]",w_="[object GeneratorFunction]",E_="[object Proxy]";function S_(t){if(!Xl(t))return!1;var n=Yl(t);return n==C_||n==w_||n==b_||n==E_}var Zo=Ko["__core-js_shared__"],Jl=function(){var t=/[^.]+$/.exec(Zo&&Zo.keys&&Zo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function T_(t){return!!Jl&&Jl in t}var D_=Function.prototype,V_=D_.toString;function $_(t){if(t!=null){try{return V_.call(t)}catch{}try{return t+""}catch{}}return""}var B_=/[\\^$.*+?()[\]{}|]/g,I_=/^\[object .+?Constructor\]$/,A_=Function.prototype,L_=Object.prototype,F_=A_.toString,O_=L_.hasOwnProperty,R_=RegExp("^"+F_.call(O_).replace(B_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function P_(t){if(!Xl(t)||T_(t))return!1;var n=S_(t)?R_:I_;return n.test($_(t))}function M_(t,n){return t==null?void 0:t[n]}function Zl(t,n){var o=M_(t,n);return P_(o)?o:void 0}function U_(t,n){return t===n||t!==t&&n!==n}var z_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W_=/^\w*$/;function j_(t,n){if(Jo(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||Xo(t)?!0:W_.test(t)||!z_.test(t)||n!=null&&t in Object(n)}var un=Zl(Object,"create");function H_(){this.__data__=un?un(null):{},this.size=0}function Y_(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}var G_="__lodash_hash_undefined__",q_=Object.prototype,K_=q_.hasOwnProperty;function X_(t){var n=this.__data__;if(un){var o=n[t];return o===G_?void 0:o}return K_.call(n,t)?n[t]:void 0}var J_=Object.prototype,Z_=J_.hasOwnProperty;function Q_(t){var n=this.__data__;return un?n[t]!==void 0:Z_.call(n,t)}var v_="__lodash_hash_undefined__";function eg(t,n){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=un&&n===void 0?v_: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=H_,Bt.prototype.delete=Y_,Bt.prototype.get=X_,Bt.prototype.has=Q_,Bt.prototype.set=eg;function tg(){this.__data__=[],this.size=0}function Gn(t,n){for(var o=t.length;o--;)if(U_(t[o][0],n))return o;return-1}var ng=Array.prototype,og=ng.splice;function ag(t){var n=this.__data__,o=Gn(n,t);if(o<0)return!1;var a=n.length-1;return o==a?n.pop():og.call(n,o,1),--this.size,!0}function sg(t){var n=this.__data__,o=Gn(n,t);return o<0?void 0:n[o][1]}function lg(t){return Gn(this.__data__,t)>-1}function rg(t,n){var o=this.__data__,a=Gn(o,t);return a<0?(++this.size,o.push([t,n])):o[a][1]=n,this}function Xt(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])}}Xt.prototype.clear=tg,Xt.prototype.delete=ag,Xt.prototype.get=sg,Xt.prototype.has=lg,Xt.prototype.set=rg;var ig=Zl(Ko,"Map");function cg(){this.size=0,this.__data__={hash:new Bt,map:new(ig||Xt),string:new Bt}}function dg(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function qn(t,n){var o=t.__data__;return dg(n)?o[typeof n=="string"?"string":"hash"]:o.map}function pg(t){var n=qn(this,t).delete(t);return this.size-=n?1:0,n}function fg(t){return qn(this,t).get(t)}function mg(t){return qn(this,t).has(t)}function hg(t,n){var o=qn(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=cg,It.prototype.delete=pg,It.prototype.get=fg,It.prototype.has=mg,It.prototype.set=hg;var ug="Expected a function";function Qo(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new TypeError(ug);var o=function(){var a=arguments,s=n?n.apply(this,a):a[0],l=o.cache;if(l.has(s))return l.get(s);var r=t.apply(this,a);return o.cache=l.set(s,r)||l,r};return o.cache=new(Qo.Cache||It),o}Qo.Cache=It;var _g=500;function gg(t){var n=Qo(t,function(a){return o.size===_g&&o.clear(),a}),o=n.cache;return n}var yg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xg=/\\(\\)?/g,kg=gg(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(yg,function(o,a,s,l){n.push(s?l.replace(xg,"$1"):a||o)}),n});function Ng(t){return t==null?"":Kl(t)}function bg(t,n){return Jo(t)?t:j_(t,n)?[t]:kg(Ng(t))}var Cg=1/0;function wg(t){if(typeof t=="string"||Xo(t))return t;var n=t+"";return n=="0"&&1/t==-Cg?"-0":n}function Eg(t,n){n=bg(n,t);for(var o=0,a=n.length;t!=null&&o<a;)t=t[wg(n[o++])];return o&&o==a?t:void 0}function Sg(t,n,o){var a=t==null?void 0:Eg(t,n);return a===void 0?o:a}function Tg(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 Dg=t=>t===void 0,Ql=t=>typeof t=="boolean",At=t=>typeof t=="number",Vg=t=>typeof Element>"u"?!1:t instanceof Element,$g=t=>mn(t)?!Number.isNaN(Number(t)):!1,vl=t=>Object.keys(t);class Bg extends Error{constructor(n){super(n),this.name="ElementPlusError"}}function Kn(t,n){if(process.env.NODE_ENV!=="production"){const o=mn(t)?new Bg(`[${t}] ${n}`):t;console.warn(o)}}const Ig="utils/dom/style";function vo(t,n="px"){if(!t)return"";if(At(t)||$g(t))return`${t}${n}`;if(mn(t))return t;Kn(Ig,"binding value must be a string or number")}const er="__epPropKey",at=t=>t,Ag=t=>Wl(t)&&!!t[er],tr=(t,n)=>{if(!Wl(t)||Ag(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),zl(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(u=>JSON.stringify(u)).join(", ");e.warn(`Invalid prop: validation failed${n?` for prop "${n}"`:""}. Expected one of [${m}], got value ${JSON.stringify(p)}.`)}return d}:void 0,[er]:!0};return zl(t,"default")&&(c.default=s),c},_n=t=>Tg(Object.entries(t).map(([n,o])=>[n,tr(o,n)])),Lg=at([String,Object,Function]),Fg={Close:Ad,SuccessFilled:Os,InfoFilled:Fs,WarningFilled:Rs,CircleCloseFilled:Ls},nr={success:Os,warning:Rs,error:Ls,info:Fs},or=(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},Og=(t,n)=>(t.install=o=>{t._context=o._context,o.config.globalProperties[n]=t},t),Rg={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"},Pg=["","default","small","large"],Mg=t=>t,Ug=t=>(n,o)=>zg(n,o,e.unref(t)),zg=(t,n,o)=>Sg(o,t,t).replace(/\{(\w+)\}/g,(a,s)=>{var l;return`${(l=n==null?void 0:n[s])!=null?l:`{${s}}`}`}),Wg=t=>{const n=e.computed(()=>e.unref(t).name),o=e.isRef(t)?t:e.ref(t);return{lang:n,locale:o,t:Ug(t)}},ar=Symbol("localeContextKey"),jg=t=>{const n=t||e.inject(ar,e.ref());return Wg(e.computed(()=>n.value||Kr))},Xn="el",Hg="is-",Lt=(t,n,o,a,s)=>{let l=`${t}-${n}`;return o&&(l+=`-${o}`),a&&(l+=`__${a}`),s&&(l+=`--${s}`),l},sr=Symbol("namespaceContextKey"),Yg=t=>{const n=t||(e.getCurrentInstance()?e.inject(sr,e.ref(Xn)):e.ref(Xn));return e.computed(()=>e.unref(n)||Xn)},ea=(t,n)=>{const o=Yg(n);return{namespace:o,b:(_="")=>Lt(o.value,t,_,"",""),e:_=>_?Lt(o.value,t,"",_,""):"",m:_=>_?Lt(o.value,t,"","",_):"",be:(_,k)=>_&&k?Lt(o.value,t,_,k,""):"",em:(_,k)=>_&&k?Lt(o.value,t,"",_,k):"",bm:(_,k)=>_&&k?Lt(o.value,t,_,"",k):"",bem:(_,k,N)=>_&&k&&N?Lt(o.value,t,_,k,N):"",is:(_,...k)=>{const N=k.length>=1?k[0]:!0;return _&&N?`${Hg}${_}`:""},cssVar:_=>{const k={};for(const N in _)_[N]&&(k[`--${o.value}-${N}`]=_[N]);return k},cssVarName:_=>`--${o.value}-${_}`,cssVarBlock:_=>{const k={};for(const N in _)_[N]&&(k[`--${o.value}-${t}-${N}`]=_[N]);return k},cssVarBlockName:_=>`--${o.value}-${t}-${_}`}},lr={current:0},rr=e.ref(0),ir=2e3,cr=Symbol("elZIndexContextKey"),dr=Symbol("zIndexContextKey"),Gg=t=>{const n=e.getCurrentInstance()?e.inject(cr,lr):lr,o=t||(e.getCurrentInstance()?e.inject(dr,void 0):void 0),a=e.computed(()=>{const r=e.unref(o);return At(r)?r:ir}),s=e.computed(()=>a.value+rr.value),l=()=>(n.current++,rr.value=n.current,s.value);return!qt&&!e.inject(cr)&&Kn("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}},qg=tr({type:String,values:Pg,required:!1}),Kg=Symbol("size"),Xg=Symbol("emptyValuesContextKey"),Jg=_n({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>Yn(t)?!t():!t}}),pr=Symbol(),Jn=e.ref();function fr(t,n=void 0){const o=e.getCurrentInstance()?e.inject(pr,Jn):Jn;return t?e.computed(()=>{var a,s;return(s=(a=o.value)==null?void 0:a[t])!=null?s:n}):o}function Zg(t,n){const o=fr(),a=ea(t,e.computed(()=>{var i;return((i=o.value)==null?void 0:i.namespace)||Xn})),s=jg(e.computed(()=>{var i;return(i=o.value)==null?void 0:i.locale})),l=Gg(e.computed(()=>{var i;return((i=o.value)==null?void 0:i.zIndex)||ir})),r=e.computed(()=>{var i;return e.unref(n)||((i=o.value)==null?void 0:i.size)||""});return mr(e.computed(()=>e.unref(o)||{})),{ns:a,locale:s,zIndex:l,size:r}}const mr=(t,n,o=!1)=>{var a;const s=!!e.getCurrentInstance(),l=s?fr():void 0,r=(a=n==null?void 0:n.provide)!=null?a:s?e.provide:void 0;if(!r){Kn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const i=e.computed(()=>{const c=e.unref(t);return l!=null&&l.value?Qg(l.value,c):c});return r(pr,i),r(ar,e.computed(()=>i.value.locale)),r(sr,e.computed(()=>i.value.namespace)),r(dr,e.computed(()=>i.value.zIndex)),r(Kg,{size:e.computed(()=>i.value.size||"")}),r(Xg,e.computed(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(o||!Jn.value)&&(Jn.value=i.value),i},Qg=(t,n)=>{const o=[...new Set([...vl(t),...vl(n)])],a={};for(const s of o)a[s]=n[s]!==void 0?n[s]:t[s];return a},vg=_n({a11y:{type:Boolean,default:!0},locale:{type:at(Object)},size:qg,button:{type:at(Object)},experimentalFeatures:{type:at(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:at(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Jg}),ve={};e.defineComponent({name:"ElConfigProvider",props:vg,setup(t,{slots:n}){e.watch(()=>t.message,a=>{Object.assign(ve,a??{})},{immediate:!0,deep:!0});const o=mr(t);return()=>e.renderSlot(n,"default",{config:o==null?void 0:o.value})}});var ta=(t,n)=>{const o=t.__vccOpts||t;for(const[a,s]of n)o[a]=s;return o};const ey=_n({size:{type:at([Number,String])},color:{type:String}}),ty=e.defineComponent({name:"ElIcon",inheritAttrs:!1}),ny=e.defineComponent({...ty,props:ey,setup(t){const n=t,o=ea("icon"),a=e.computed(()=>{const{size:s,color:l}=n;return!s&&!l?{}:{fontSize:Dg(s)?void 0:vo(s),"--color":l}});return(s,l)=>(e.openBlock(),e.createElementBlock("i",e.mergeProps({class:e.unref(o).b(),style:e.unref(a)},s.$attrs),[e.renderSlot(s.$slots,"default")],16))}});var oy=ta(ny,[["__file","icon.vue"]]);const hr=or(oy),ay=_n({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:at([String,Object,Array])},offset:{type:at(Array),default:[0,0]},badgeClass:{type:String}}),sy=e.defineComponent({name:"ElBadge"}),ly=e.defineComponent({...sy,props:ay,setup(t,{expose:n}){const o=t,a=ea("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:vo(-((i=(r=o.offset)==null?void 0:r[0])!=null?i:0)),marginTop:vo((p=(c=o.offset)==null?void 0:c[1])!=null?p:0)},(d=o.badgeStyle)!=null?d:{}]});return n({content:s}),(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a).b())},[e.renderSlot(r.$slots,"default"),e.createVNode(e.Transition,{name:`${e.unref(a).namespace.value}-zoom-in-center`,persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("sup",{class:e.normalizeClass([e.unref(a).e("content"),e.unref(a).em("content",r.type),e.unref(a).is("fixed",!!r.$slots.default),e.unref(a).is("dot",r.isDot),r.badgeClass]),style:e.normalizeStyle(e.unref(l)),textContent:e.toDisplayString(e.unref(s))},null,14,["textContent"]),[[e.vShow,!r.hidden&&(e.unref(s)||r.isDot)]])]),_:1},8,["name"])],2))}});var ry=ta(ly,[["__file","badge.vue"]]);const iy=or(ry),ur=["success","info","warning","error"],Ue=Mg({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:qt?document.body:void 0}),cy=_n({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:Lg,default:Ue.icon},id:{type:String,default:Ue.id},message:{type:at([String,Object,Function]),default:Ue.message},onClose:{type:at(Function),default:Ue.onClose},showClose:{type:Boolean,default:Ue.showClose},type:{type:String,values:ur,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}}),dy={destroy:()=>!0},et=e.shallowReactive([]),py=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}},fy=t=>{const{prev:n}=py(t);return n?n.vm.exposed.bottom.value:0},my=(t,n)=>et.findIndex(a=>a.id===t)>0?16:n,hy=e.defineComponent({name:"ElMessage"}),uy=e.defineComponent({...hy,props:cy,emits:dy,setup(t,{expose:n}){const o=t,{Close:a}=Fg,{ns:s,zIndex:l}=Zg("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"),u=e.computed(()=>{const h=o.type;return{[s.bm("icon",h)]:h&&nr[h]}}),y=e.computed(()=>o.icon||nr[o.type]||""),_=e.computed(()=>fy(o.id)),k=e.computed(()=>my(o.id,o.offset)+_.value),N=e.computed(()=>d.value+k.value),E=e.computed(()=>({top:`${k.value}px`,zIndex:r.value}));function b(){o.duration!==0&&({stop:f}=Ju(()=>{V()},o.duration))}function T(){f==null||f()}function V(){p.value=!1}function $({code:h}){h===Rg.esc&&V()}return e.onMounted(()=>{b(),i(),p.value=!0}),e.watch(()=>o.repeatNum,()=>{T(),b()}),Zu(document,"keydown",$),n_(c,()=>{d.value=c.value.getBoundingClientRect().height}),n({visible:p,bottom:N,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:T,onMouseleave:b},[h.repeatNum>1?(e.openBlock(),e.createBlock(e.unref(iy),{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(hr),{key:1,class:e.normalizeClass([e.unref(s).e("icon"),e.unref(u)])},{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(hr),{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 _y=ta(uy,[["__file","message.vue"]]);let gy=1;const _r=t=>{const n=!t||mn(t)||e.isVNode(t)||Yn(t)?{message:t}:t,o={...Ue,...n};if(!o.appendTo)o.appendTo=document.body;else if(mn(o.appendTo)){let a=document.querySelector(o.appendTo);Vg(a)||(Kn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),o.appendTo=a}return Ql(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),Ql(ve.showClose)&&!o.showClose&&(o.showClose=ve.showClose),o},yy=t=>{const n=et.indexOf(t);if(n===-1)return;et.splice(n,1);const{handler:o}=t;o.close()},xy=({appendTo:t,...n},o)=>{const a=`message_${gy++}`,s=n.onClose,l=document.createElement("div"),r={...n,id:a,onClose:()=>{s==null||s(),yy(d)},onDestroy:()=>{e.render(null,l)}},i=e.createVNode(_y,r,Yn(r.message)||e.isVNode(r.message)?{default:Yn(r.message)?r.message:()=>r.message}:null);i.appContext=o||Jt._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},Jt=(t={},n)=>{if(!qt)return{close:()=>{}};const o=_r(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=xy(o,n);return et.push(a),a.handler};ur.forEach(t=>{Jt[t]=(n={},o)=>{const a=_r(n);return Jt({...a,type:t},o)}});function ky(t){for(const n of et)(!t||t===n.props.type)&&n.handler.close()}Jt.closeAll=ky,Jt._context=null;const Se=Og(Jt,"$message");function Ny({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:"内容错误"}),u=e.computed(()=>{const w=Number(f.value.lng);return w<=180&&w>=-180?w:"内容错误"});function y(){m.value&&m.value!=="内容错误"&&u&&u.value!=="内容错误"&&_(f.value)}function _(w){if(w.lng&&w.lat){t.h.setView(t.map,[w.lat,w.lng],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),b(1)}}function k(w,D){return S=>{if(!s.value)return!1;s.value=!1,setTimeout(()=>{w(S),s.value=!0},D)}}function N(){console.log("触发加载"),!c.value&&(p.value=!0,r.value++,e.nextTick(()=>{T()}))}function E(){n.value=null,f.value={lat:"",lng:""},b()}function b(w){o.value=[],r.value=1,c.value=!1,p.value=!1,a.value!==5&&e.nextTick(()=>{w!==1&&T()})}function T(){n.value&&n.value.length?a.value===1?V():a.value===4?h():a.value===6&&$():b(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,S=[];for(let L=0;L<D.length;L++){const A=D[L];S.push({...A,id:je.buildUUID(),address:A.address||A.name,title:g(A.name)})}e.nextTick(()=>{p.value=!1,o.value.push(...S)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}async function $(){const w=await Pu({page:r.value-1,size:10,query:n.value});if(w.code===200){const D=w.data.content,S=[];if(D!=null&&D.length){for(let L=0;L<D.length;L++){const A=D[L];S.push({id:A.id,address:A.address||A.pointName,...A,title:g(A.pointName)})}e.nextTick(()=>{p.value=!1,o.value.push(...S),r.value===w.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}async function h(){const w=await Hf({page:r.value-1,size:10,query:n.value});if(w.code===200){const D=w.data.content,S=[];if(D!=null&&D.length){for(let L=0;L<D.length;L++){const A=D[L];S.push({id:A.id,address:A.address||A.companyName,...A,title:g(A.companyName)})}e.nextTick(()=>{p.value=!1,o.value.push(...S),r.value===w.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}function g(w){const D=[];for(let S=0;S<w.length;S++){const L=w[S],A=n.value.indexOf(L),j={content:w[S]};A===-1?j.type=1:j.type=2,D.push(j)}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:_,throttle:k,load:N,resetFn:b,searchAddressTypeFn:E,placeholderFn:C,inputSearch:f,showSearchLat:m,showSearchLng:u,searchLngLat:y}}const by={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"},Cy=["src"],wy={class:"ml_10 ml-[10px]",style:{width:"calc(100% - 34px)"}},Ey={class:"title fs_14 c_fff over_one_line fw_600 text-[14px] text-hy-text-main truncate font-bold"},Sy={class:"address over_one_line fs_12 c_fff truncate text-[12px] text-hy-text-main"},Ty={class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"},Dy={class:"ml_20 ml-[20px]"},Vy=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",by,[e.createElementVNode("img",{src:e.unref(l).orgTypeIcon,class:"w-full h-full"},null,8,Cy)])):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",wy,[e.createElementVNode("div",Ey,[(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",Sy,e.toDisplayString(e.unref(l).address),1),e.createElementVNode("div",Ty,[e.createElementVNode("span",null,"经度:"+e.toDisplayString(e.unref(l).lng),1),e.createElementVNode("span",Dy,"维度:"+e.toDisplayString(e.unref(l).lat),1)])])])}}}),[["__scopeId","data-v-393b9954"]]),$y=t=>(e.pushScopeId("data-v-5856b649"),t=t(),e.popScopeId(),t),By={style:{display:"inline-block","flex-direction":"column",width:"300px"},class:"search_lightColor pos_r relative"},Iy={class:"r-f flex"},Ay={class:"flex",style:{width:"calc(100% - 42px)"}},Ly={key:1,class:"w-[58%] flex justify-between ml-[4px]"},Fy={class:"flex flex-col leading-[20px] ml-[10px]"},Oy=$y(()=>e.createElementVNode("span",{class:"text-[14px] font-[600] text-hy-text-main mb-[5px]"},"填写经纬度",-1)),Ry={class:"text-[12px] text-hy-text-secondary"},Py={class:"text-[12px] text-hy-text-secondary"},My={key:2,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},Uy={key:3,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},na=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:u,placeholderFn:y,load:_,throttle:k,searchLngLat:N}=Ny({props:n});return e.onMounted(()=>{var E;a.value=(E=n.searchTypes[0])==null?void 0:E.value}),(E,b)=>{const T=e.resolveComponent("el-option"),V=e.resolveComponent("el-select"),$=e.resolveComponent("el-input"),h=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",By,[e.createElementVNode("div",Iy,[e.createElementVNode("div",Ay,[e.createVNode(V,{modelValue:e.unref(a),"onUpdate:modelValue":b[0]||(b[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(T,{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":b[1]||(b[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:b[2]||(b[2]=e.unref(k)(e.unref(d),1e3))},null,8,["modelValue","placeholder"])):(e.openBlock(),e.createElementBlock("div",Ly,[e.createVNode($,{modelValue:e.unref(r).lng,"onUpdate:modelValue":b[3]||(b[3]=g=>e.unref(r).lng=g),placeholder:"经度",class:"!w-[47.5%]",clearable:"",onInput:b[4]||(b[4]=g=>e.unref(je.onlyNumber)(e.unref(r),"lng"))},null,8,["modelValue"]),e.createVNode($,{modelValue:e.unref(r).lat,"onUpdate:modelValue":b[5]||(b[5]=g=>e.unref(r).lat=g),placeholder:"纬度",class:"!w-[47.5%]",clearable:"",onInput:b[6]||(b[6]=g=>e.unref(je.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:b[7]||(b[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(js),{key:0,"infinite-scroll-disabled":"disabled",class:"filterContentList",style:{height:"400px","overflow-y":"auto"},"data-key":"id","data-sources":e.unref(p),"data-component":Vy,keeps:10,"extra-props":{mapJumpLocationFn:e.unref(u),searchAddressType:e.unref(a)},"estimate-size":88,onTobottom:e.unref(_)},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:b[8]||(b[8]=(...g)=>e.unref(N)&&e.unref(N)(...g))},[e.createVNode(h,{name:"base-maplocation","class-name":"w-[26px] h-[26px] ml-[10px]"}),e.createElementVNode("div",Fy,[Oy,e.createElementVNode("span",Ry,[e.createTextVNode("经度:"),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)==="内容错误"?"text-hy-danger":"")},e.toDisplayString(e.unref(l)||"请输入经度"),3)]),e.createElementVNode("span",Py,[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",My," 加载中... ")):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createElementBlock("p",Uy," 没有更多了 ")):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-5856b649"]]);function Zt(t=je.sessionCache.getCache("mapConfig")){function n(){if(!t){je.logger.warning("use-map","initHyMap","地图配置不能为空");return}const i=Nn.MapProviderFactory.createMapProvider(t.mapType);return new Nn.HyMap(i,t)}function o(){if(!t){je.logger.warning("use-map","initHyPoi","地图配置不能为空");return}const i=Nn.PoiProviderFactory.createMapProvider(t.mapPoiType);return new Nn.HyPoi(i,t)}let a=null,s=null;const l=!!(t.mapKey&&t.mapType);let r=[];return l&&(a=n(),s=o(),t.layersUrl&&(r=t.layersUrl.replace(/\{mapKey\}/g,t.mapKey).split(","))),{H:a,POI:s,isShowMap:l,layersUrlList:r,mapConfig:t}}function zy(t){return oe.post({url:"mapRail/findAllWithDevice",data:t,isFormData:!0})}function Wy(t){return oe.post({url:"mapRail/deleteBatch",data:t,isFormData:!0})}function jy(t){return oe.post({url:t.id?"mapRail/update":"mapRail/insert",data:t,isJson:!0})}function gr(t){return oe.post({url:"mapRail/select",data:t,isFormData:!0})}function Hy(t){const n=t.emit,{mapConfig:o,isShowMap:a,layersUrlList:s,H:l,POI:r}=Zt(),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),u=e.ref(!1),y=e.ref(100),_=e.ref("fixedPoint"),k=e.ref(null),N=e.ref(!1),E=e.shallowRef(null);e.watch(()=>y.value,P=>{y.value=P.replace(/\D/g,"")});function b(P,z){return U=>{if(!m.value)return!1;m.value=!1,setTimeout(()=>{P(U),m.value=!0},z)}}function T(){let P="";_.value==="fixedPoint"?P=x("mouseClicksOnTheMapAndReleasesToEnd"):_.value==="circle"?P=x("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):P=x("mouseClicksOnTheMapAndRightClicksToEnd"),k.value=P}async function V(){const P=He.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((M=f.value.pointList)!=null&&M.length){const Y=f.value.pointList.map(F=>({lat:F.lat,lng:F.lng}));C(Y)}}),p.value.on("left-click",U=>{D(U)})}function $(){w(),E.value&&(l.removePolygon(p.value,E.value),E.value=null)}function h(){$(),_.value!=="fixedPoint"?g():N.value=!0}function g(){const P={templineStyle:{color:"#2DF2FF"},hintlineStyle:{color:"#2DF2FF",dashArray:[5,5]}};l.pm(p.value,_.value,P,C);let z="";_.value==="circle"?z=x("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):_.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])),console.log(E.value),w()}function w(){p.value&&l.removePM(p.value)}function D(P){if(N.value){const z=l.searchByCircle({lat:P.latlng.lat,lng:P.latlng.lng},y.value/2);C(z),N.value=!1}}async function S(P){const z=await gr({id:P});z.code===200&&(f.value={...z.data},u.value=!0,e.nextTick(()=>{V()}))}function L(P){var z;f.value={},y.value=100,N.value=!1,$(),_.value="fixedPoint",T(),c.value&&((z=c.value)==null||z.resetFields()),P?S(P):(u.value=!0,e.nextTick(()=>{V()}))}function A(){console.log(E.value)}function j(){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 jy(M)).code===200&&(Se.success(`${x("operationSuccessful")} !`),n("on-submit"),u.value=!1)}})}function O(){n("on-close"),u.value=!1}return{addElectronicFenceContainerRef:i,formRef:c,H:l,map:p,POI:r,isShowMap:a,rules:d,form:f,valid:m,dialogVisible:u,radius:y,mouseToolName:_,tips:k,onClose:O,show:L,onSubmit:j,tipsFn:T,initMap:V,mapRailSelectFn:S,throttle:b,startDraw:h,removePolygon:$}}const Yy=t=>(e.pushScopeId("data-v-b8fbad8e"),t=t(),e.popScopeId(),t),Gy={class:"text-hy-text-main"},qy={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]"},Ky={class:"dialog_body"},Xy={class:""},Jy={class:"form-label"},Zy={class:"relative flex flex-row h-[50px]"},Qy={class:"z-[1]"},vy={class:"form-label"},e1={class:"w-full flex items-center form-item"},t1={class:"form-label"},n1={class:"flex items-center form-item"},o1=Yy(()=>e.createElementVNode("span",{class:"text-sm ml-[10px] text-hy-text-secondary flex-shrink"},"M",-1)),a1={class:"flex items-center form-item"},s1={class:"text-xs text-hy-text-secondary flex items-center"},l1={class:"text-hy-main"},r1={class:"text-right mt-[10px]"},i1=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:u,POI:y,isShowMap:_,onClose:k,tipsFn:N,show:E,startDraw:b,removePolygon:T,onSubmit:V}=Hy({emit:a});return n({show:E}),e.onUnmounted(()=>{m.removeMap(u.value)}),($,h)=>{const g=e.resolveComponent("svg-icon"),C=e.resolveComponent("el-input"),w=e.resolveComponent("el-form-item"),D=e.resolveComponent("el-col"),S=e.resolveComponent("el-option"),L=e.resolveComponent("el-select"),A=e.resolveComponent("el-button"),j=$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",Gy,[e.createElementVNode("div",qy,[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",Ky,[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",Xy,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",Jy,e.toDisplayString(e.unref(x)("electronicFenceRange")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",Zy,[e.createElementVNode("div",Qy,[e.unref(_)&&e.unref(u)?(e.openBlock(),e.createBlock(na,{key:0,h:e.unref(m),map:e.unref(u),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",vy,e.toDisplayString(e.unref(x)("drawingMethod")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",e1,[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(N)},{default:e.withCtx(()=>[e.createVNode(S,{label:e.unref(x)("fixedPointRange"),value:"fixedPoint"},null,8,["label"]),e.createVNode(S,{label:e.unref(x)("customCircle"),value:"circle"},null,8,["label"]),e.createVNode(S,{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",t1,e.toDisplayString(e.unref(x)("rangeDistance")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",n1,[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"]),o1])]),_: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",a1,[e.createVNode(A,{class:"button_function",onClick:e.unref(b)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("startDrawing")),1)]),_:1},8,["onClick"]),e.createVNode(A,{type:"danger",class:"",onClick:e.unref(T)},{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(_)?(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",s1,[e.createVNode(O,{class:"text-sm"},{default:e.withCtx(()=>[e.createVNode(j)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("afterClickingToStartDrawing"))+" ",1),e.createElementVNode("span",l1,e.toDisplayString(e.unref(f)),1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"]),e.createElementVNode("div",r1,[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 c1(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 Wy({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 d1={class:"w-full h-full"},p1={class:"flex items-center justify-center"},f1={class:"ml-[6px]"},m1={class:"flex"},h1=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}=c1({emit:a,props:o});return e.onMounted(()=>{r.value={...o.initParams}}),(m,u)=>{const y=e.resolveComponent("svg-icon"),_=e.resolveComponent("el-button"),k=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock("div",d1,[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(_,{type:"success",class:"",onClick:u[0]||(u[0]=N=>e.unref(p)())},{default:e.withCtx(()=>[e.createElementVNode("div",p1,[e.createVNode(y,{width:"16",height:"16",name:"base-add-3"}),e.createElementVNode("span",f1,e.toDisplayString(e.unref(x)("addElectronicFence")),1)])]),_:1}),e.renderSlot(m.$slots,"operator-left-box")])]),mapDisplay:e.withCtx(({row:N})=>[e.createElementVNode("div",null,[e.createVNode(k,{class:"switch_custom switch_width_60","model-value":e.unref(c)(N.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)(N.id,e.unref(c)(N.id))},null,8,["model-value","active-text","inactive-text","onClick"])])]),isDefault:e.withCtx(({row:N})=>[e.renderSlot(m.$slots,"isDefault",{row:N})]),operator:e.withCtx(({row:N})=>[e.createElementVNode("div",m1,[e.createVNode(Me,{name:"icon-edit",tips:e.unref(x)("edit"),onClick:E=>e.unref(p)(N.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)(N.id)},null,8,["tips","onClick"])])]),_:3},8,["search-arr","column-list","search-form"]),e.createVNode(i1,{ref_key:"addElectronicFenceRef",ref:s,onOnSubmit:e.unref(d)},null,8,["onOnSubmit"])])}}});var Ke=(t=>(t.NO_LOAD="NO_LOAD",t.IS_LOAD="IS_LOAD",t.PLAYING="PLAYING",t.PAUSE="PAUSE",t.PLAY_END="PLAY_END",t.CAN_NOT_PLAY="CAN_NOT_PLAY",t))(Ke||{});function u1(t){return oe.post({url:"/mediaFile/location/findAll",data:{mediaFileId:t},isFormData:!0})}function _1(t){return oe.get({url:t,xAmzAcl:!0,isFileUpload:!0,fileType:""})}function yr(t){return oe.post({url:"/mediaFile/getFileScore",data:{id:t},isFormData:!0})}function g1(t){return oe.post({url:"/mediaFile/fileScore",data:t,isJson:!0})}function y1(t){return oe.post({url:"/mediaFile/remark/findAll",data:t,isFormData:!0})}function x1(t){return oe.post({url:"/mediaFile/saveRemark",data:t,isJson:!0})}function xr(t){return oe.post({url:"/mediaFile/remark/deleteBatch",data:t,isFormData:!0})}function k1(t){return oe.post({url:"/mediaFile/point/findAll",data:t,isFormData:!0})}function N1(t){return oe.post({url:"/mediaFile/savePoint",data:t,isJson:!0})}function b1(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref([{value:.5,label:"0.5 X"},{value:1,label:"1.0 X"},{value:1.5,label:"1.5 X"},{value:2,label:"2.0 X"},{value:3,label:"3.0 X"}]),s=e.ref(1),l=e.ref([{value:1,label:x("stopAfterPlayback"),svgName:"media-center-stop-playing"},{value:2,label:x("continuousPlayback"),svgName:"media-center-autoplay"},{value:3,label:x("loopPlayback"),svgName:"media-center-loop-playback"}]),r=e.ref(1),i=e.ref(null),c=e.ref(0),p=e.ref(""),d=e.ref({}),f=e.ref(0),m=e.ref(0),u=e.ref(!1),y=e.ref(Ke.NO_LOAD),_=e.ref(100),k=e.computed(()=>y.value!==Ke.NO_LOAD&&y.value!==Ke.CAN_NOT_PLAY),N=e.computed(()=>o.value.playList.find(U=>U.id===d.value.id));function E(U,M){return new Promise((Y,F)=>{const Q=new XMLHttpRequest;Q.open("GET",M),Q.responseType="blob",Q.onload=function(){const ne=Q.response;Y({name:U,blob:ne})},Q.onerror=function(){console.error("could not download file")},Q.send()})}function b(){d.value&&d.value.id&&(pe.ElMessage.warning(x("startDownloading")),E(d.value.fileName,d.value.filePath).then(U=>{const M=U.blob,Y=new FileReader;Y.readAsDataURL(M),Y.onload=F=>{const Q=URL.createObjectURL(new Blob([M])),ne=document.createElement("a");document.body.appendChild(ne),ne.href=Q,ne.download=U.name,ne.target="_blank",ne.click(),ne.remove()}}))}function T(U){U===3?r.value=1:r.value=U+1}function V(U){s.value=U;const M=document.querySelector("#audio-el");M&&M.playbackRate&&(M.playbackRate=U)}function $(){i.value=document.querySelector("#audio-el"),i.value.addEventListener("canplay",()=>{z(Ke.IS_LOAD),f.value=Math.floor(i.value.duration),n("can-play",f.value)}),i.value.addEventListener("play",()=>{i.value.playbackRate=s.value,z(Ke.PLAYING),p.value&&N.value&&n("play-start",{audioUrl:p.value,playItem:N.value})}),i.value.addEventListener("pause",()=>{z(Ke.PAUSE)}),i.value.addEventListener("volumechange",()=>{_.value=i.value.volume*100}),i.value.addEventListener("ended",()=>{z(Ke.PLAY_END),r.value===2?g().then(()=>{n("play-end")}):r.value===3&&(i.value.load(),i.value.play(),n("play-end"))}),i.value.addEventListener("timeupdate",()=>{z(Ke.PLAYING),!u.value&&i.value&&(m.value=Math.floor(i.value.currentTime),c.value=m.value/f.value*100,n("on-time-update",m.value))},!1)}function h(){return o.value.playList.findIndex(U=>U.id===d.value.id)}function g(){return new Promise((U,M)=>{const Y=h();if(Y!==o.value.playList.length-1){const F=o.value.playList[Y+1];w(F.filePath,F),U({code:200})}else pe.ElMessage.warning(x("currentIsTheLastItem"))})}function C(){const U=h();if(U>0&&U!==o.value.playList.length){const M=o.value.playList[U-1];w(M.filePath,M)}else pe.ElMessage.warning(x("currentIsTheFirstItem"))}function w(U,M){if(M)M.id!==d.value.id&&(p.value="",d.value=M,i.value.src=U,o.value.getAudioContextType?P(M.id):(p.value=U,i.value.play()));else{if(p.value==="")return!1;i.value.play()}}function D(){i.value.play()}function S(){i.value.pause()}function L(){m.value=f.value*(c.value/100),i.value.currentTime=m.value,u.value=!1}function A(){i.value.volume=_.value/100}function j(U,M){return U=Number.parseFloat(`${U}`),M=Number.parseFloat(`${M}`),Number.isNaN(U)||Number.isNaN(M)||M<=0?0:Math.round(U/M*1e4)/100}function O(U){i.value.currentTime=U}async function P(U){const M=await _1(`/mediaFile/redirect?mediaFileId=${U}`);i.value.src=URL.createObjectURL(M),p.value=URL.createObjectURL(M),i.value.play()}function z(U){y.value=U,n("on-audio-state",U)}return{isDrop:u,speedList:a,speed:s,playRuleslist:l,playRules:r,audioEl:i,value:c,audioUrl:p,totalTime:f,curTime:m,audioState:y,volumeValue:_,downloadFn:b,playRulesFn:T,speedFn:V,initPlayer:$,playNext:g,playPrevious:C,playAudio:w,resumePlay:D,pauseAudio:S,getNowWh:L,changeVolume:A,getPercent:j,jumpDuration:O,canPlay:k}}const C1=t=>(e.pushScopeId("data-v-27a5006a"),t=t(),e.popScopeId(),t),w1={class:"w-full flex items-center box-border"},E1=C1(()=>e.createElementVNode("audio",{id:"audio-el"},null,-1)),S1={class:"flex-grow w-0 mx-3 progress-box"},T1={class:"flex justify-between items-center text-xs text-hy-text-secondary mt-1"},D1={class:"flex-shrink-0 flex"},V1={class:"flex items-center justify-center p-[10px_0]"},$1={class:"text-hy-text-secondary text-xs w-full"},B1=["onClick"],I1={class:"flex items-center click-box"},A1={class:"border h-[24px] box-border mr-1 border-hy-border-2 rounded text-xs text-hy-text-secondary px-2 flex items-center justify-center"},L1={class:"click-box"},F1={key:1},O1=["onClick"],R1={class:"click-box mx-1"},P1={class:"flex items-center justify-center"},M1={class:"click-box click-box"},kr=be(e.defineComponent({__name:"audio-player",props:{downloadFilesType:{type:Boolean,default:!0},playRulesType:{type:Boolean,default:!0},getAudioContextType:{type:Boolean,default:!0},playList:{default:()=>[]}},emits:["can-play","play-start","play-end","play-end","on-time-update","on-audio-state"],setup(t,{expose:n,emit:o}){const a=t,s=o,{isDrop:l,speedList:r,speed:i,playRuleslist:c,playRules:p,audioEl:d,value:f,audioUrl:m,totalTime:u,curTime:y,audioState:_,volumeValue:k,downloadFn:N,playRulesFn:E,speedFn:b,initPlayer:T,playNext:V,playPrevious:$,playAudio:h,resumePlay:g,pauseAudio:C,getNowWh:w,changeVolume:D,getPercent:S,jumpDuration:L,canPlay:A}=b1({emit:s,props:a});return e.onBeforeUnmount(()=>{d.value=null}),e.onMounted(()=>{E(3),b(1),T()}),n({jumpDuration:L,resumePlay:g,pauseAudio:C,playAudio:h}),(j,O)=>{const P=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-popover"),U=e.resolveComponent("el-tooltip"),M=e.resolveComponent("el-slider");return e.openBlock(),e.createElementBlock("div",w1,[E1,e.createElementVNode("div",null,[e.createElementVNode("span",{onClick:O[0]||(O[0]=(...Y)=>e.unref($)&&e.unref($)(...Y))},[e.createVNode(P,{width:"26",height:"26",name:"media-center-audio-previous-btn"})]),e.unref(_)!==e.unref(Ke).PLAYING&&e.unref(A)?(e.openBlock(),e.createElementBlock("span",{key:0,class:"mx-1",onClick:O[1]||(O[1]=Y=>e.unref(h)(e.unref(m)))},[e.createVNode(P,{width:"26",height:"26",name:"media-center-audio-play-btn"})])):e.createCommentVNode("",!0),e.unref(_)===e.unref(Ke).PLAYING?(e.openBlock(),e.createElementBlock("span",{key:1,class:"mx-1",onClick:O[2]||(O[2]=(...Y)=>e.unref(C)&&e.unref(C)(...Y))},[e.createVNode(P,{width:"26",height:"26",name:"media-center-audio-pause-btn"})])):e.createCommentVNode("",!0),e.createElementVNode("span",{onClick:O[3]||(O[3]=(...Y)=>e.unref(V)&&e.unref(V)(...Y))},[e.createVNode(P,{width:"26",height:"26",name:"media-center-audio-next-btn"})])]),e.createElementVNode("div",S1,[e.withDirectives(e.createElementVNode("input",{id:"progress",ref:"progressRef","onUpdate:modelValue":O[4]||(O[4]=Y=>e.isRef(f)?f.value=Y:null),max:"100",style:e.normalizeStyle({background:`linear-gradient(to right, var(--hy-main) ${e.unref(S)(e.unref(f),100)}%, var(--hy-main-alpha-50) ${e.unref(S)(e.unref(f),100)}% `}),type:"range",class:"relative w-full",onMouseup:O[5]||(O[5]=Y=>e.unref(w)()),onMousedown:O[6]||(O[6]=Y=>l.value=!0)},null,36),[[e.vModelText,e.unref(f)]]),e.createElementVNode("div",T1,[e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(y)))+'"',1),e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(u)))+'"',1)])]),e.createElementVNode("div",D1,[e.createVNode(z,{placement:"top",width:"62px","popper-class":"!p-0",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",I1,[e.createElementVNode("div",A1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(Y,F)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:F},e.toDisplayString(Y.value===1?e.unref(x)("multiples"):Y.label),1)),[[e.vShow,Y.value===e.unref(i)]])),128))])])]),default:e.withCtx(()=>[e.createElementVNode("div",V1,[e.createElementVNode("ul",$1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(Y,F)=>(e.openBlock(),e.createElementBlock("li",{key:F,class:e.normalizeClass(["click-box h-[26px] flex items-center justify-center hover:text-hy-main hover:bg-hy-page-bg-3",{"text-hy-main bg-hy-page-bg-3":Y.value===e.unref(i)}]),onClick:Q=>e.unref(b)(Y.value)},e.toDisplayString(Y.label),11,B1))),128))])])]),_:1}),j.downloadFilesType?(e.openBlock(),e.createBlock(U,{key:0,effect:"dark",content:e.unref(x)("downloadFile"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",L1,[e.createVNode(P,{width:"26",height:"26",name:"media-center-audio-down-btn",onClick:e.unref(N)},null,8,["onClick"])])]),_:1},8,["content"])):e.createCommentVNode("",!0),j.playRulesType?(e.openBlock(),e.createElementBlock("span",F1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(Y,F)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:`${F}playRuleslist`,onClick:Q=>e.unref(E)(Y.value)},[e.createVNode(U,{effect:"dark",content:Y.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",R1,[e.createVNode(P,{width:"26",height:"26",name:Y.svgName},null,8,["name"])])]),_:2},1032,["content"])],8,O1)),[[e.vShow,e.unref(p)===Y.value]])),128))])):e.createCommentVNode("",!0),e.createVNode(z,{"open-delay":500,placement:"top",trigger:"click",width:"40"},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(U,{effect:"dark",content:e.unref(x)("adjustPlaybackVolume"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",M1,[e.createVNode(P,{width:"26",height:"26",name:"media-center-audio-volumn"})])]),_:1},8,["content"])])]),default:e.withCtx(()=>[e.createElementVNode("div",P1,[e.createVNode(M,{modelValue:e.unref(k),"onUpdate:modelValue":O[7]||(O[7]=Y=>e.isRef(k)?k.value=Y:null),class:"volume-slider",vertical:"",height:"105px",onInput:O[8]||(O[8]=Y=>e.unref(D)())},null,8,["modelValue"])])]),_:1})])])}}}),[["__scopeId","data-v-27a5006a"]]);function U1(t){const n=t.emit,o=e.ref(t.props),a=e.ref([{value:.5,label:"0.5 X"},{value:1,label:"1.0 X"},{value:1.5,label:"1.5 X"},{value:2,label:"2.0 X"},{value:3,label:"3.0 X"}]),s=e.ref(1),l=e.ref([{value:1,label:x("stopAfterPlayback"),svgName:"media-center-stop-playing"},{value:2,label:x("continuousPlayback"),svgName:"media-center-autoplay"},{value:3,label:x("loopPlayback"),svgName:"media-center-loop-playback"}]),r=e.ref(1),i=e.ref({}),c=e.ref(""),p=e.ref(0),d=e.ref(null),f=e.ref("NO_LOAD"),m=e.ref(0),u=e.ref(0),y=e.ref(!1),_=e.ref(!1),k=e.ref(100);e.ref(!1);const N=e.computed(()=>f.value!=="NO_LOAD"&&f.value!=="CAN_NOT_PLAY"),E=e.computed(()=>o.value.playList.find(F=>F.id===i.value.id));function b(F){F===3?r.value=1:r.value=F+1}function T(F){s.value=F;const Q=document.getElementById("videoPlayer");Q&&(Q.playbackRate=F)}function V(){return o.value.playList.findIndex(F=>F.id===i.value.id)}function $(){const F=V();if(F!==o.value.playList.length-1){const Q=o.value.playList[F+1];g(Q.filePath,Q)}else pe.ElMessage.warning(x("currentIsTheLastItem"))}function h(){const F=V();if(F>0&&F!==o.value.playList.length){const Q=o.value.playList[F-1];g(Q.filePath,Q)}else pe.ElMessage.warning(x("currentIsTheFirstItem"))}function g(F,Q){if(Q)Q.id!==i.value.id&&(i.value=Q,c.value=F,d.value.src=F);else if(c.value==="")return!1;d.value.play(),f.value="PLAYING"}function C(F,Q){return new Promise((ne,Te)=>{const he=new XMLHttpRequest;he.open("GET",Q),he.responseType="blob",he.onload=function(){const ke=he.response;ne({name:F,blob:ke})},he.onerror=function(){console.error("could not download file")},he.send()})}function w(){i.value&&i.value.id&&(pe.ElMessage.warning(x("startDownloading")),C(i.value.fileName,i.value.filePath).then(F=>{const Q=F.blob,ne=new FileReader;ne.readAsDataURL(Q),ne.onload=Te=>{const he=URL.createObjectURL(new Blob([Q])),ke=document.createElement("a");document.body.appendChild(ke),ke.href=he,ke.download=F.name,ke.target="_blank",ke.click(),ke.remove()}}))}function D(){d.value.volume=k.value/100}function S(){m.value=u.value*(p.value/100),d.value.currentTime=m.value,y.value=!1}function L(F,Q){return F=Number.parseFloat(F),Q=Number.parseFloat(Q),Number.isNaN(F)||Number.isNaN(Q)||Q<=0?0:Math.round(F/Q*1e4)/100}function A(){d.value.play()}function j(){d.value&&d.value.pause(),f.value="PAUSE"}function O(){d.value=document.querySelector("#videoPlayer"),d.value.addEventListener("canplay",()=>{f.value="IS_LOAD",u.value=Math.floor(d.value.duration),n("can-play",u.value)}),d.value.addEventListener("play",()=>{d.value.playbackRate=s.value,f.value="PLAYING",c.value&&E.value&&n("play-start",{audioUrl:c.value,playItem:E.value})}),d.value.addEventListener("pause",()=>{f.value="PAUSE"}),d.value.addEventListener("ended",()=>{f.value="PLAY_END",r.value===2?$():r.value===3&&(d.value.load(),d.value.play()),n("play-end")}),d.value.addEventListener("timeupdate",()=>{f.value="PLAYING",y.value||(d.value?m.value=Math.floor(d.value.currentTime):setTimeout(()=>{d.value&&(m.value=Math.floor(d.value.currentTime))},1e3),p.value=m.value/u.value*100,n("on-time-update",m.value))},!1)}function P(){document.addEventListener("fullscreenchange",F=>{document.fullscreenElement?_.value=!0:_.value=!1})}function z(F){d.value.currentTime=F}function U(){_.value?Y():M()}function M(){const F=document.documentElement;F.requestFullscreen&&F.requestFullscreen()}function Y(){const F=document;F.exitFullscreen&&F.exitFullscreen()}return{canPlay:N,speedList:a,speed:s,playRuleslist:l,playRules:r,videoUrl:c,value:p,videoEl:d,videoState:f,curTime:m,totalTime:u,isDrop:y,isFullScreen:_,volumeValue:k,playRulesFn:b,speedFn:T,playNext:$,playPrevious:h,playVideo:g,downloadFn:w,changeVolume:D,getNowWh:S,getPercent:L,resumePlay:A,pauseVideo:j,initVideo:O,initFullScreenEvent:P,jumpDuration:z,clickFullScreen:U}}const z1=t=>(e.pushScopeId("data-v-d0d3957a"),t=t(),e.popScopeId(),t),W1={class:"flex-grow h-0 relative"},j1={key:0,class:"absolute right-[10px] top-[4px] z-[2]"},H1={key:0,class:"my-2 click-box"},Y1={key:1},G1=["onClick"],q1={class:"click-box"},K1=z1(()=>e.createElementVNode("video",{id:"videoPlayer",width:"100%",header:"100%"},[e.createElementVNode("source",{type:"video/mp4"})],-1)),X1={class:"progress-box px-2"},J1={class:"my-2 flex items-center justify-between px-2 relative"},Z1={class:"text-xs text-hy-text-secondary"},Q1={key:0,class:"mx-2 flex items-center justify-center absolute left-1/2 -translate-x-1/2"},v1={class:"flex items-center"},ex={class:"flex items-center justify-center p-[10px_0]"},tx={class:"text-hy-text-secondary text-xs w-full"},nx=["onClick"],ox={class:"flex items-center click-box"},ax={class:"border h-[24px] box-border border-hy-border-2 rounded text-xs text-hy-text-secondary px-2 flex items-center justify-center"},sx={class:"flex items-center justify-center"},lx={class:"mx-2"},rx={class:"click-box"},ix={class:"text-hy-info"},oa=be(e.defineComponent({__name:"video-player",props:{downloadFilesType:{type:Boolean,default:!0},playRulesType:{type:Boolean,default:!0},playList:{}},emits:["can-play","play-start","play-end","on-time-update"],setup(t,{expose:n,emit:o}){const a=t,s=o,{canPlay:l,speedList:r,speed:i,playRuleslist:c,playRules:p,videoUrl:d,value:f,videoEl:m,videoState:u,curTime:y,totalTime:_,isDrop:k,isFullScreen:N,volumeValue:E,playRulesFn:b,speedFn:T,playNext:V,playPrevious:$,playVideo:h,downloadFn:g,changeVolume:C,getNowWh:w,getPercent:D,resumePlay:S,pauseVideo:L,initVideo:A,initFullScreenEvent:j,jumpDuration:O,clickFullScreen:P}=U1({emit:s,props:a});return e.onBeforeUnmount(()=>{m.value=null}),e.onMounted(()=>{b(3),T(1),A(),j()}),n({jumpDuration:O,resumePlay:S,pauseVideo:L,playVideo:h}),(z,U)=>{const M=e.resolveComponent("svg-icon"),Y=e.resolveComponent("el-tooltip"),F=e.resolveComponent("el-popover"),Q=e.resolveComponent("el-slider");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([{"fixed top-0 left-0 z-[10]":e.unref(N)},"w-full h-full rounded border border-hy-border-2 flex flex-col bg-hy-page-bg"])},[e.createElementVNode("div",W1,[z.downloadFilesType||z.playRulesType?(e.openBlock(),e.createElementBlock("div",j1,[z.downloadFilesType?(e.openBlock(),e.createElementBlock("div",H1,[e.createVNode(M,{width:"26",height:"26",class:"click-box",name:"media-center-audio-down-btn",onClick:e.unref(g)},null,8,["onClick"])])):e.createCommentVNode("",!0),z.playRulesType?(e.openBlock(),e.createElementBlock("div",Y1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(ne,Te)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:`${Te}playRuleslist`,onClick:he=>e.unref(b)(ne.value)},[e.createVNode(Y,{class:"item click-box",effect:"dark",content:ne.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",q1,[e.createVNode(M,{width:"26",height:"26",name:ne.svgName},null,8,["name"])])]),_:2},1032,["content"])],8,G1)),[[e.vShow,e.unref(p)===ne.value]])),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),K1]),e.createElementVNode("div",X1,[e.withDirectives(e.createElementVNode("input",{id:"progress",ref:"progressRef","onUpdate:modelValue":U[0]||(U[0]=ne=>e.isRef(f)?f.value=ne:null),max:"100",style:e.normalizeStyle({background:`linear-gradient(to right, var(--hy-main) ${e.unref(D)(e.unref(f),100)}%, var(--hy-main-alpha-50) ${e.unref(D)(e.unref(f),100)}% `}),type:"range",class:"relative w-full",onMouseup:U[1]||(U[1]=ne=>e.unref(w)()),onMousedown:U[2]||(U[2]=ne=>k.value=!0)},null,36),[[e.vModelText,e.unref(f)]])]),e.createElementVNode("div",J1,[e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",Z1,[e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(y)))+'"',1),e.createTextVNode("/ "),e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(_)))+'"',1)],512),[[e.vShow,e.unref(_)!==1/0]])]),e.unref(l)?(e.openBlock(),e.createElementBlock("div",Q1,[e.createElementVNode("span",{onClick:U[3]||(U[3]=(...ne)=>e.unref($)&&e.unref($)(...ne))},[e.createVNode(M,{class:"click-box",width:"26",height:"26",name:"media-center-audio-previous-btn"})]),e.unref(u)!=="PLAYING"&&e.unref(l)?(e.openBlock(),e.createElementBlock("span",{key:0,class:"mx-1",onClick:U[4]||(U[4]=ne=>e.unref(h)(e.unref(d)))},[e.createVNode(M,{class:"click-box",width:"26",height:"26",name:"media-center-audio-play-btn"})])):e.createCommentVNode("",!0),e.unref(u)==="PLAYING"?(e.openBlock(),e.createElementBlock("span",{key:1,class:"mx-1",onClick:U[5]||(U[5]=(...ne)=>e.unref(L)&&e.unref(L)(...ne))},[e.createVNode(M,{class:"click-box",width:"26",height:"26",name:"media-center-audio-pause-btn"})])):e.createCommentVNode("",!0),e.createElementVNode("span",{onClick:U[6]||(U[6]=(...ne)=>e.unref(V)&&e.unref(V)(...ne))},[e.createVNode(M,{class:"click-box",width:"26",height:"26",name:"media-center-audio-next-btn"})])])):e.createCommentVNode("",!0),e.createElementVNode("div",v1,[e.createVNode(F,{placement:"top",width:"62px","popper-class":"!p-0",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",ox,[e.createElementVNode("div",ax,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(ne,Te)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:Te},e.toDisplayString(ne.value===1?e.unref(x)("multiples"):ne.label),1)),[[e.vShow,ne.value===e.unref(i)]])),128))])])]),default:e.withCtx(()=>[e.createElementVNode("div",ex,[e.createElementVNode("ul",tx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(ne,Te)=>(e.openBlock(),e.createElementBlock("li",{key:Te,class:e.normalizeClass(["click-box h-[26px] flex items-center justify-center hover:text-hy-main hover:bg-hy-page-bg-3",{"text-hy-main bg-hy-page-bg-3":ne.value===e.unref(i)}]),onClick:he=>e.unref(T)(ne.value)},e.toDisplayString(ne.label),11,nx))),128))])])]),_:1}),e.createVNode(F,{placement:"top",trigger:"click",width:"40px"},{reference:e.withCtx(()=>[e.createElementVNode("div",lx,[e.createVNode(Y,{effect:"dark",content:e.unref(x)("adjustPlaybackVolume"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",rx,[e.createVNode(M,{width:"24",height:"24",name:"media-center-audio-volumn"})])]),_:1},8,["content"])])]),default:e.withCtx(()=>[e.createElementVNode("div",sx,[e.createVNode(Q,{modelValue:e.unref(E),"onUpdate:modelValue":U[7]||(U[7]=ne=>e.isRef(E)?E.value=ne:null),class:"volume-slider",vertical:"",height:"105px",onInput:U[8]||(U[8]=ne=>e.unref(C)())},null,8,["modelValue"])])]),_:1}),e.createVNode(Y,{class:"item click-box",effect:"dark",content:e.unref(x)("fullScreenSwitch"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",ix,[e.createVNode(M,{width:"18",height:"18",class:"click-box",name:e.unref(N)?"media-center-audio-reduce":"media-center-audio-enlarge",onClick:e.unref(P)},null,8,["name","onClick"])])]),_:1},8,["content"])])])],2)}}}),[["__scopeId","data-v-d0d3957a"]]),cx={beforeMount(t,n,o){var c;const a=(c=n.value)==null?void 0:c.change,s=t.querySelector(".hy-dialog_header"),l=t;s.style.cssText+=";cursor:move;";const r=function(){return window.document.currentStyle?(p,d)=>p.currentStyle[d]:(p,d)=>getComputedStyle(p,!1)[d]}(),i=p=>{const d=p.clientX-s.offsetLeft,f=p.clientY-s.offsetTop,m=l.offsetWidth,u=l.offsetHeight,y=document.body.clientWidth,_=document.body.clientHeight,k=l.offsetLeft,N=y-l.offsetLeft-m,E=l.offsetTop,b=_-l.offsetTop-u;let T=r(l,"left"),V=r(l,"top"),$=null,h=null,g=null,C=null;T.includes("%")?(T=+document.body.clientWidth*(+T.replace(/%/g,"")/100),V=+document.body.clientHeight*(+V.replace(/%/g,"")/100)):(T=+T.replace(/\px/g,""),V=+V.replace(/\px/g,""));const w=function(L){let A=L.clientX-d,j=L.clientY-f;-A>k?(A=-k,$="left"):A>N?(A=N,$="right"):$=null,-j>E?(j=-E,g="top"):j>b?(j=b,g="bottom"):g=null,h=A+T,C=j+V,l.style.cssText+=`;left:${h}px;top:${C}px;`},D=function(L){a&&a({left:h,leftType:$,top:C,topType:g}),document.onmousemove=null,document.onmouseup=null};document.onmousemove=w,document.touchmove=w,document.onmouseup=D,document.touchend=D;const S=je.sessionCache.getCache("plus-draggable")||{};Number.parseInt(t.style.zIndex)!==Number.parseInt(S.index)&&(S.index+=1,t.style.zIndex=S.index,je.sessionCache.setCache("plus-draggable",S))};s.onmousedown=i,s.touchstart=i},mounted:t=>{const n=je.sessionCache.getCache("plus-draggable")||{};n.index=n.index?n.index+1:1e3,n.num=n.num?n.num+1:1,t.style.zIndex=n.index,je.sessionCache.setCache("plus-draggable",n)},beforeUnmount:()=>{const t=je.sessionCache.getCache("plus-draggable")||{};t.num=t.num-1,t.num===0&&(t.index=1e3),je.sessionCache.setCache("plus-draggable",t)}},dx={class:"relative w-full h-full"},px=e.createElementVNode("div",{class:"w-full h-full relative z-[1]"},[e.createElementVNode("div",{id:"amap-test",class:"w-full h-full"})],-1),Nr=e.defineComponent({__name:"map-file-track",setup(t,{expose:n}){const o=e.shallowRef(),a=e.shallowRef(),{mapConfig:s,isShowMap:l,layersUrlList:r,H:i}=Zt(),c=e.ref({}),p=e.reactive(je.sessionCache.getCache("userInfo")),d=e.reactive(je.sessionCache.getCache("colorObject")),f=e.ref([]);e.onMounted(async()=>{l&&e.nextTick(()=>{m()})});async function m(){let _=[0,0];p.lng&&p.lat&&(_=[p.lat,p.lng]),o.value=await i.map("amap-test",{maxZoom:s.maxZoom||18,minZoom:s.minZoom||13,zoom:s.zoom||13,center:_,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:r,layerType:s.satelliteMap}),o.value.on("complete",k=>u())}function u(){if(!l||f.value.length===0)return;const _=f.value.map(k=>[k.lat,k.lng]);a.value=i.trackPlayer(o.value,_,{speed:600,weight:6,passedLineColor:d.success||"#9AF454",notPassedLineColor:d.theme||"#A7DDFC",markerRotation:!0,markerRotationOffset:130,iconUrl:"https://webapi.amap.com/images/car.png",iconAnchor:[27,10]}),i.fitBounds(o.value,_)}async function y(_){if(c.value=_,c.value){const k=await u1(c.value.id);if(k.code===200){const N=k.data||[];N&&N.length!==0?f.value=N:c.value.lng&&c.value.lat?f.value=[{lng:c.value.lng,lat:c.value.lat}]:f.value=[],e.nextTick(()=>{u()})}}}return n({setPlayItem:y}),(_,k)=>(e.openBlock(),e.createElementBlock("div",dx,[e.withDirectives(e.createVNode(pn,{ref:"mapNoPermissions",class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(l)]]),px]))}});function fx(t){const n=t.emit,o=e.ref(null),a=e.ref(null),s=e.ref(null),l=e.ref(!1);function r(p,d){return new Promise((f,m)=>{if(!p)return m(new Error(x("fileIDNotPassedIn")));o.value=d||null,a.value=p,s.value=f,e.nextTick(()=>{l.value=!0})})}function i(){l.value=!1,n("on-close")}async function c(){if(!o.value)return pe.ElMessage.error(x("pleaseScoreTheCurrentFile"));const p={fileScore:o.value,ids:[a.value]};(await g1(p)).code===200&&(s.value(o.value),n("on-submit",o.value),pe.ElMessage.success(x("successfulScoring")),l.value=!1)}return{fileScore:o,dialogVisible:l,show:r,onClose:i,onSubmit:c}}const mx={class:"box-border text-hy-text-main el-drag-dialog w-full h-full rounded overflow-hidden border border-hy-main shadow-[0_0_6px_0] shadow-hy-main flex flex-col"},hx={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},ux={class:"absolute right-[10px]"},_x={class:"dialog_body"},gx={class:"text-center m-[20px_0_40px_0]"},yx={class:"flex items-center justify-center mb-[10px] text-sm"},xx={class:"text-hy-text-main mr-[6px]"},kx={class:"text-hy-text-secondary text-xs"},Nx={class:"operator-button flex items-center justify-center mt-[20px]"},aa=e.defineComponent({__name:"file-score",emits:["on-close","on-submit"],setup(t,{expose:n,emit:o}){const a=o,s=e.reactive(He.getCache("colorObject")),l=e.computed(()=>({2:s.auxiliary,3:s.warning,4:s.success,5:s.theme})),{fileScore:r,dialogVisible:i,show:c,onClose:p,onSubmit:d}=fx({emit:a});return n({show:c}),e.onMounted(()=>{}),(f,m)=>{const u=e.resolveComponent("svg-icon"),y=e.resolveComponent("el-rate"),_=e.resolveComponent("el-button"),k=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(k,{"model-value":e.unref(i),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"!p-0 border-[0] shadow-[0_0_0_0] w-[440px]"},{default:e.withCtx(()=>[e.createVNode($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",mx,[e.createElementVNode("div",hx,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("confirmScore")),1),e.createElementVNode("div",ux,[e.createVNode(u,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(p),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",_x,[e.createElementVNode("div",gx,[e.createElementVNode("div",yx,[e.createElementVNode("span",xx,e.toDisplayString(e.unref(x)("confirmAs")),1),e.createVNode(y,{modelValue:e.unref(r),"onUpdate:modelValue":m[0]||(m[0]=N=>e.isRef(r)?r.value=N:null),"void-color":s.main,colors:l.value},null,8,["modelValue","void-color","colors"])]),e.createElementVNode("span",kx,e.toDisplayString(e.unref(x)("noSecondaryModificationAfterScoring")),1)]),e.createElementVNode("div",Nx,[e.createVNode(_,{type:"primary",class:"w-[100px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("close")),1)]),_:1},8,["onClick"]),e.createVNode(_,{class:"w-[100px]",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("confirm")),1)]),_:1},8,["onClick"])])])])]),_:1})]),_:1},8,["model-value"])}}});function bx(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(null),s=e.ref(null),l=e.ref([]),r=e.ref({content:""}),i=e.reactive({content:[{required:!0,message:x("pleaseEnterTheDotName"),trigger:"blur"}]}),c=e.ref(!1),p=e.ref(""),d=e.reactive(He.getCache("userInfo"));function f(){c.value=!1,n("on-close"),r.value={content:""},p.value=""}async function m(){if(o.value.mediaFileId){const b=await k1({mediaFileId:o.value.mediaFileId});b.code===200&&(l.value=b.data,l.value.sort((T,V)=>T.time-V.time))}}function u(){var b;(b=a.value)==null||b.validate(async T=>{if(T){if(r.value.content.trim()==="")return pe.ElMessage.error(x("pleaseEnterTheDotContent")),!1;(await N1({id:r.value.id,content:r.value.content,mediaFileId:o.value.mediaFileId,time:r.value.time||o.value.mediaFileCurTime})).code===200&&(m(),f())}})}function y(b){n("play-point",b.time)}function _(){r.value={},n("on-edit"),c.value=!0}function k(b){r.value=JSON.parse(JSON.stringify(b)),c.value=!0,n("on-edit")}function N(b){p.value=b,n("on-edit"),mt({tipsTitle:x("deleteDot"),tipsContent:`<div class="text-center"><p>${x("deleteDotPositionCannotBeRestored")}</p><p>${x("confirmDeletion")}?</p></div>`,submitBtnText:x("confirm-0")},()=>{E()},()=>{f()})}async function E(){(await xr({ids:p.value})).code===200&&(m(),f())}return{formRef:a,userId:s,pointList:l,form:r,rules:i,dialogVisible:c,deleteIds:p,onClose:f,getData:m,savePoint:u,playPoint:y,addPoint:_,editPoint:k,showDeleteDialog:N,deletePoint:E,userInfo:d}}const sa=t=>(e.pushScopeId("data-v-ae4b4f28"),t=t(),e.popScopeId(),t),Cx={class:"w-full h-full"},wx={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},Ex={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},Sx={class:"text-hy-text-main font-bold text-sm"},Tx={class:"flex items-center justify-center"},Dx={class:"ml-[6px]"},Vx={class:"flex-grow h-0"},$x={class:"h-full flex flex-col"},Bx={class:"p-3 pb-0"},Ix={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col text-xs"},Ax={class:"flex-grow h-0"},Lx={class:"flex items-center justify-between"},Fx={class:"text-hy-text-secondary mr-1"},Ox=sa(()=>e.createElementVNode("span",null,"/",-1)),Rx={key:0,class:"px-3 py-1 text-hy-text-main text-xs flex-grow h-0 overflow-auto"},Px={class:"flex items-center justify-between"},Mx={class:"flex-grow w-0 mr-1 flex items-center"},Ux={class:"ml-2 flex-grow w-0"},zx={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},Wx={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},jx={key:0,class:"flex-shrink-0 flex"},Hx={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},Yx={class:"flex-grow h-0"},Gx={class:"flex items-center justify-between"},qx={class:"text-hy-text-secondary mr-1"},Kx=sa(()=>e.createElementVNode("span",null,"/",-1)),Xx={class:"px-2 mt-3 mb-1 text-xs"},Jx={class:"flex items-center justify-between"},Zx={class:"text-hy-text-secondary mr-1"},Qx=sa(()=>e.createElementVNode("span",null,"/",-1)),vx={class:"flex items-center mt-1"},ek={class:"text-hy-text-secondary mr-1"},tk={class:"flex-grow w-0 ml-1"},nk={key:1,class:"w-full flex-grow h-0 flex items-center justify-center rounded"},ok={class:"text-center text-xs text-hy-text-secondary"},ak={class:"mt-3"},br=be(e.defineComponent({__name:"mark",props:{mediaFileId:{},mediaFileTotalTime:{},mediaFileCurTime:{}},emits:["on-close","play-point","on-edit","on-edit","on-edit"],setup(t,{emit:n}){const o=t,a=n,{formRef:s,userId:l,pointList:r,form:i,rules:c,dialogVisible:p,deleteIds:d,onClose:f,getData:m,savePoint:u,playPoint:y,addPoint:_,editPoint:k,showDeleteDialog:N,deletePoint:E,userInfo:b}=bx({emit:a,props:o});return e.watch(()=>o.mediaFileId,()=>{m()}),e.onMounted(()=>{l.value=b.id}),(T,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-button"),g=e.resolveComponent("el-input"),C=e.resolveComponent("el-form-item"),w=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",Cx,[e.createElementVNode("div",wx,[e.createElementVNode("div",Ex,[e.createElementVNode("div",Sx,e.toDisplayString(e.unref(x)("dotList")),1),e.createElementVNode("div",null,[e.withDirectives(e.createVNode(h,{type:"success",class:"",onClick:V[0]||(V[0]=D=>e.unref(_)())},{default:e.withCtx(()=>[e.createElementVNode("div",Tx,[e.createVNode($,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),e.createElementVNode("span",Dx,e.toDisplayString(e.unref(x)("addDot-0")),1)])]),_:1},512),[[e.vShow,T.mediaFileId]])])]),e.createElementVNode("div",Vx,[e.createVNode(w,{ref_key:"formRef",ref:s,class:"h-full","label-position":"top",model:e.unref(i),rules:e.unref(c),"label-width":"0px"},{default:e.withCtx(()=>[e.createElementVNode("div",$x,[e.withDirectives(e.createElementVNode("div",Bx,[e.createElementVNode("div",Ix,[e.createElementVNode("div",Ax,[e.createVNode(C,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(i).content,"onUpdate:modelValue":V[1]||(V[1]=D=>e.unref(i).content=D),type:"textarea",placeholder:e.unref(x)("pleaseEnterTheDotName"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),e.createElementVNode("div",Lx,[e.createElementVNode("div",null,[e.createElementVNode("span",Fx,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(ot)(Number(e.unref(i).time||o.mediaFileCurTime)))+" ",1),Ox,e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(T.mediaFileTotalTime))),1)])]),e.createElementVNode("div",null,[e.createVNode(h,{type:"primary",onClick:e.unref(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(h,{onClick:e.unref(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("save")),1)]),_:1},8,["onClick"])])])])],512),[[e.vShow,e.unref(p)&&!e.unref(i).id]]),e.unref(r).length?(e.openBlock(),e.createElementBlock("ul",Rx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),D=>(e.openBlock(),e.createElementBlock("li",{key:D.id,class:"bg-hy-page-bg-3 rounded my-2 p-2 box-hy-border-2"},[e.createElementVNode("div",Px,[e.createElementVNode("div",Mx,[e.createVNode(xt,{url:D.remarkUserHeadImg},null,8,["url"]),e.createElementVNode("div",Ux,[e.createElementVNode("p",zx,e.toDisplayString(D.remarkUserName),1),e.createElementVNode("p",Wx,e.toDisplayString(D.remarkUserSerialNum),1)])]),D.remarkUserId===e.unref(l)&&e.unref(i).id!==D.id?(e.openBlock(),e.createElementBlock("div",jx,[e.createVNode(Me,{"class-nmae":"HyRoundButtonV2",name:"media-center-2-audio-play-2",tips:e.unref(x)("play"),onClick:S=>e.unref(y)(D)},null,8,["tips","onClick"]),e.createVNode(Me,{class:"!mx-0","class-nmae":"HyRoundButtonV2",name:"icon-edit",tips:e.unref(x)("edit"),onClick:S=>e.unref(k)(D)},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:S=>e.unref(N)(D.id)},null,8,["tips","onClick"])])):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",Hx,[e.createElementVNode("div",Yx,[e.createVNode(C,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(i).content,"onUpdate:modelValue":V[2]||(V[2]=S=>e.unref(i).content=S),type:"textarea",placeholder:e.unref(x)("pleaseEnterTheDotName"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),e.createElementVNode("div",Gx,[e.createElementVNode("div",null,[e.createElementVNode("span",qx,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(ot)(Number(e.unref(i).time||o.mediaFileCurTime)))+" ",1),Kx,e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(T.mediaFileTotalTime))),1)])]),e.createElementVNode("div",null,[e.createVNode(h,{type:"primary",onClick:e.unref(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(h,{onClick:e.unref(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("save")),1)]),_:1},8,["onClick"])])])],512),[[e.vShow,e.unref(i).id===D.id&&e.unref(p)]]),e.withDirectives(e.createElementVNode("div",Xx,[e.createElementVNode("div",Jx,[e.createElementVNode("div",null,[e.createElementVNode("span",Zx,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(D.time)))+" ",1),Qx,e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(T.mediaFileTotalTime))),1)]),e.createElementVNode("div",null,[e.createElementVNode("p",null,e.toDisplayString(D.updateDtm||D.createDtm),1)])]),e.createElementVNode("div",vx,[e.createElementVNode("span",ek,e.toDisplayString(e.unref(x)("dotName")),1),e.createElementVNode("div",tk,e.toDisplayString(D.content),1)])],512),[[e.vShow,!(e.unref(i).id===D.id&&e.unref(p))]])]))),128))])):(e.openBlock(),e.createElementBlock("div",nk,[e.createElementVNode("div",ok,[e.createVNode($,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),e.createElementVNode("div",ak,e.toDisplayString(e.unref(x)("noData")),1)])]))])]),_:1},8,["model","rules"])])])])}}}),[["__scopeId","data-v-ae4b4f28"]]);function sk(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(null),s=e.ref(null),l=e.ref(!1),r=e.ref({content:""}),i=e.reactive({content:[{required:!0,message:x("pleaseFillInTheRemarks"),trigger:"blur"}]}),c=e.ref([]),p=e.ref(""),d=e.reactive(He.getCache("userInfo"));function f(){l.value=!1,n("on-close"),r.value={content:""}}async function m(){if(o.value.mediaFileId){const b=await y1({mediaFileId:o.value.mediaFileId});b.code===200&&(c.value=b.data,n("on-getData",c.value))}}function u(){var b;(b=a.value)==null||b.clearValidate(),r.value={},n("on-edit"),l.value=!0}function y(){a.value.validate(async b=>{if(b){if(r.value.content==="")return pe.ElMessage.error(x("pleaseEnterTheRemarks")),!1;r.value.mediaFileId=o.value.mediaFileId,(await x1(r.value)).code===200&&(m(),f())}})}function _(b){p.value=b,mt({tipsTitle:x("deleteRemarks"),tipsContent:`<div class="text-center"><p>${x("reminderCannotBeRestoredAfterDeletion")}</p><p>${x("confirmDeletion")}?</p></div>`,submitBtnText:x("confirm-0")},()=>{N()})}function k(){p.value=""}async function N(){(await xr({ids:p.value})).code===200&&(m(),k(),n("on-delete"))}function E(b){var T;(T=a.value)==null||T.clearValidate(),r.value=JSON.parse(JSON.stringify(b)),l.value=!0,n("on-edit")}return{formRef:a,userId:s,dialogVisible:l,form:r,rules:i,markList:c,deleteIds:p,onClose:f,getData:m,addMark:u,onSubmit:y,showDeleteDialog:_,onCloseDeleteMark:k,deleteMark:N,editMark:E,userInfo:d}}const lk={class:"w-full h-full"},rk={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},ik={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},ck={class:"text-hy-text-main font-bold text-sm"},dk={class:"flex items-center justify-center"},pk={class:"ml-[6px]"},fk={class:"flex-grow h-0"},mk={class:"h-full flex flex-col"},hk={class:"p-3 pb-0"},uk={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col"},_k={class:"flex-grow h-0"},gk={class:"h-[40px] flex items-end justify-end"},yk={key:0,class:"px-3 py-1 text-hy-text-main text-xs flex-grow h-0 overflow-auto"},xk={class:"flex items-center justify-between"},kk={class:"flex-grow w-0 mr-1 flex items-center"},Nk={class:"ml-2 flex-grow w-0"},bk={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},Ck={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},wk={key:0,class:"flex-shrink-0 flex items-center"},Ek={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},Sk={class:"flex-grow h-0"},Tk={class:"h-[40px] flex items-end justify-end"},Dk={key:1,class:"w-full flex-grow h-0 flex items-center justify-center rounded"},Vk={class:"text-center text-xs text-hy-text-secondary"},$k={class:"mt-3"},la=e.defineComponent({__name:"remark",props:{mediaFileId:{default:null}},emits:["on-close","on-getData","on-edit","on-delete","on-edit"],setup(t,{emit:n}){const o=t,a=n,{formRef:s,userId:l,dialogVisible:r,form:i,rules:c,markList:p,onClose:d,getData:f,addMark:m,onSubmit:u,showDeleteDialog:y,onCloseDeleteMark:_,deleteMark:k,editMark:N,userInfo:E}=sk({emit:a,props:o});return e.watch(()=>o.mediaFileId,()=>{f()}),e.onMounted(()=>{l.value=E.id}),(b,T)=>{const V=e.resolveComponent("svg-icon"),$=e.resolveComponent("el-button"),h=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),C=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",lk,[e.createElementVNode("div",rk,[e.createElementVNode("div",ik,[e.createElementVNode("div",ck,e.toDisplayString(e.unref(x)("reminderList")),1),e.createElementVNode("div",null,[e.withDirectives(e.createVNode($,{type:"success",class:"",onClick:T[0]||(T[0]=w=>e.unref(m)())},{default:e.withCtx(()=>[e.createElementVNode("div",dk,[e.createVNode(V,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),e.createElementVNode("span",pk,e.toDisplayString(e.unref(x)("addRemarks-0")),1)])]),_:1},512),[[e.vShow,b.mediaFileId]])])]),e.createElementVNode("div",fk,[e.createVNode(C,{ref_key:"formRef",ref:s,class:"h-full","label-position":"top",model:e.unref(i),rules:e.unref(c),"label-width":"0px"},{default:e.withCtx(()=>[e.createElementVNode("div",mk,[e.withDirectives(e.createElementVNode("div",hk,[e.createElementVNode("div",uk,[e.createElementVNode("div",_k,[e.createVNode(g,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(i).content,"onUpdate:modelValue":T[1]||(T[1]=w=>e.unref(i).content=w),type:"textarea",placeholder:e.unref(x)("pleaseFillInTheRemarks"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),e.createElementVNode("div",gk,[e.createVNode($,{type:"primary",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode($,{onClick:e.unref(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("save")),1)]),_:1},8,["onClick"])])])],512),[[e.vShow,e.unref(r)&&!e.unref(i).id]]),e.unref(p).length?(e.openBlock(),e.createElementBlock("ul",yk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),w=>(e.openBlock(),e.createElementBlock("li",{key:w.id,class:"bg-hy-page-bg-3 rounded my-2 p-2 box-hy-border-2"},[e.createElementVNode("div",xk,[e.createElementVNode("div",kk,[e.createVNode(xt,{url:w.remarkUserHeadImg},null,8,["url"]),e.createElementVNode("div",Nk,[e.createElementVNode("p",bk,e.toDisplayString(w.remarkUserName),1),e.createElementVNode("p",Ck,e.toDisplayString(w.remarkUserSerialNum),1)])]),w.remarkUserId===e.unref(l)&&e.unref(i).id!==w.id?(e.openBlock(),e.createElementBlock("div",wk,[e.createVNode(Me,{class:"!mx-0","class-nmae":"HyRoundButtonV2",name:"icon-edit",tips:e.unref(x)("edit"),onClick:D=>e.unref(N)(w)},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:D=>e.unref(y)(w.id)},null,8,["tips","onClick"])])):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",Ek,[e.createElementVNode("div",Sk,[e.createVNode(g,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(i).content,"onUpdate:modelValue":T[2]||(T[2]=D=>e.unref(i).content=D),type:"textarea",placeholder:e.unref(x)("pleaseFillInTheRemarks"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),e.createElementVNode("div",Tk,[e.createVNode($,{type:"primary",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode($,{onClick:e.unref(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("save")),1)]),_:1},8,["onClick"])])],512),[[e.vShow,e.unref(i).id===w.id&&e.unref(r)]]),e.withDirectives(e.createElementVNode("div",{class:"px-2 mt-3 mb-1"},e.toDisplayString(w.content),513),[[e.vShow,!(e.unref(i).id===w.id&&e.unref(r))]])]))),128))])):(e.openBlock(),e.createElementBlock("div",Dk,[e.createElementVNode("div",Vk,[e.createVNode(V,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),e.createElementVNode("div",$k,e.toDisplayString(e.unref(x)("noData")),1)])]))])]),_:1},8,["model","rules"])])])])}}});function Cr(t){const n=t.emit,o=e.ref(Ke.NO_LOAD),a=e.ref(null),s=e.ref(null),l=e.ref(!0),r=e.ref(null),i=e.ref({}),c=e.ref(0),p=e.ref(0),d=e.reactive(He.getCache("colorObject")),f=e.computed(()=>({2:d.auxiliary,3:d.warning,4:d.success,5:d.theme}));function m(){var g;(g=a.value)==null||g.show(i.value.id,r.value).then(C=>{i.value.fileScore=C,r.value=C})}function u(){n("closeDrawer")}function y(){}function _(g){k(g.playItem)}async function k(g){const C=g.id;if(i.value.id!==C){i.value={...g},l.value=!0;const w=await yr(C);w.code===200&&(r.value=w.data,i.value.fileScore=r.value,l.value=!1,e.nextTick(()=>{var D;(D=s.value)==null||D.setPlayItem(i.value)}))}}function N(g){c.value=g}function E(g){p.value=g}function b(){if(t.params.getPlayerRef)return t.params.getPlayerRef()}function T(g){b().jumpDuration(g),b().resumePlay()}function V(){if(t.params.onEditMark){t.params.onEditMark();return}b().pauseAudio()}function $(){b().resumePlay()}function h(g){o.value=g}return{fileScoreRef:a,mapFileTrackRef:s,colorObject:d,colors:f,audioState:o,fileScoreLoading:l,fileScore:r,playItem:i,playerTotalTime:c,audioCurTime:p,fileScoreShow:m,closeDrawer:u,playEnd:y,onPlayStart:_,playStart:k,canPlay:N,onTimeUpdate:E,playPoint:T,onEditMark:V,onEditorClose:$,setAudioState:h}}const ra=t=>(e.pushScopeId("data-v-e67170d8"),t=t(),e.popScopeId(),t),Bk={class:"h-full text-hy-text-main flex flex-col"},Ik={class:"h-[60px] flex justify-between items-center px-5 hy-dialog_header"},Ak={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},Lk={class:"text-hy-danger"},Fk={class:"flex-grow h-0 overflow-y-auto"},Ok={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},Rk={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},Pk={class:"audio-play-icon-box flex"},Mk={class:"relative"},Uk={class:"point_area"},zk={class:"point point_dot relative"},Wk={class:"w-full h-full rounded-full bg-hy-page-bg-2 flex items-center justify-center text-hy-text-main"},jk={class:"duration-1000"},Hk=[ra(()=>e.createElementVNode("div",{class:"point point_10"},null,-1)),ra(()=>e.createElementVNode("div",{class:"point point_40"},null,-1)),ra(()=>e.createElementVNode("div",{class:"point point_shadow point_80"},null,-1))],Yk={key:0,class:"w-full file-info"},Gk={class:"info-item"},qk={class:"info-label"},Kk={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Xk={class:"info-item"},Jk={class:"info-label"},Zk={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Qk={key:0,class:"flex items-center"},vk={key:1,class:"text-hy-text-secondary"},eN={class:"info-item"},tN={class:"info-label"},nN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},oN={class:"info-item"},aN={class:"info-label"},sN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},lN={key:0},rN={key:1},iN={key:2,class:"text-hy-danger"},cN={key:3,class:"text-hy-text-secondary"},dN={class:"info-item"},pN={class:"info-label"},fN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},mN={class:"info-item"},hN={class:"info-label"},uN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},_N={class:"info-item"},gN={class:"info-label"},yN={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},xN={key:1,class:"text-hy-text-secondary"},kN={class:"info-item"},NN={class:"info-label"},bN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},CN={class:"info-item flex items-center text-xs"},wN={class:"info-label"},EN={class:"flex items-center rateBox"},SN={key:0,class:"text-hy-text-secondary"},TN={key:1,class:"text-hy-text-main"},DN={class:"info-item"},VN={class:"info-label"},$N={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},BN={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},IN={class:"mb-1"},AN={class:"w-[60%] flex"},LN={class:"flex-grow w-0 ml-2"},FN={class:"flex-grow w-0 ml-2"},ON=be(e.defineComponent({__name:"audio-details",props:{item:{},playList:{}},emits:["closeDrawer"],setup(t,{emit:n}){const o=t,a=n,s=e.ref(null),{fileScoreRef:l,mapFileTrackRef:r,colorObject:i,colors:c,audioState:p,fileScoreLoading:d,fileScore:f,playItem:m,playerTotalTime:u,audioCurTime:y,fileScoreShow:_,closeDrawer:k,playEnd:N,onPlayStart:E,playStart:b,canPlay:T,onTimeUpdate:V,playPoint:$,onEditMark:h,onEditorClose:g,setAudioState:C}=Cr({emit:a,params:{getPlayerRef:()=>s.value,onEditMark:()=>{s.value.pauseAudio()}}});return e.onBeforeUnmount(()=>{k()}),e.onMounted(()=>{e.nextTick(()=>{m.value={},b(o.item),e.nextTick(()=>{var w;(w=s.value)==null||w.playAudio(o.item.filePath,o.item)})})}),(w,D)=>{const S=e.resolveComponent("svg-icon"),L=e.resolveComponent("el-col"),A=e.resolveComponent("el-rate"),j=e.resolveComponent("el-row"),O=Nr;return e.openBlock(),e.createElementBlock("div",Bk,[e.createVNode(aa,{ref_key:"fileScoreRef",ref:l,onOnClose:D[0]||(D[0]=P=>f.value=null)},null,512),e.createElementVNode("div",Ik,[e.createElementVNode("div",Ak,[e.unref(m).mark?(e.openBlock(),e.createBlock(S,{key:0,width:"16",height:"16",name:"media-center-mark-file",class:"pos_r mr-1"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(e.unref(m).fileName),1)]),e.createElementVNode("div",Lk,[e.createVNode(S,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(k)},null,8,["onClick"])])]),e.createElementVNode("div",Fk,[e.createElementVNode("div",Ok,[e.createElementVNode("div",Rk,[e.createElementVNode("div",Pk,[e.createElementVNode("div",Mk,[e.createElementVNode("div",Uk,[e.createElementVNode("div",zk,[e.createElementVNode("div",Wk,[e.createVNode(S,{width:"60%",height:"60%",name:"menu-micphone--2-select"})])]),e.withDirectives(e.createElementVNode("div",jk,Hk,512),[[e.vShow,e.unref(p)===e.unref(Ke).PLAYING]])])])]),e.unref(m)&&e.unref(m).id?(e.openBlock(),e.createElementBlock("div",Yk,[e.createVNode(j,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:e.withCtx(()=>[e.createVNode(L,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",Gk,[e.createElementVNode("span",qk,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",Kk,e.toDisplayString(e.unref(m).uploadDateStr),1)])]),_:1}),e.createVNode(L,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",Xk,[e.createElementVNode("span",Jk,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",Zk,[e.unref(m).mark?(e.openBlock(),e.createElementBlock("span",Qk,[e.createTextVNode(e.toDisplayString(e.unref(x)("star"))+" ",1),e.createVNode(S,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-[4px] -top-[2px]"})])):(e.openBlock(),e.createElementBlock("span",vk,"-"))])])]),_:1}),e.createVNode(L,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",eN,[e.createElementVNode("span",tN,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",nN,e.toDisplayString(e.unref(m).devUserName),1)])]),_:1}),e.createVNode(L,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",oN,[e.createElementVNode("span",aN,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",sN,[e.unref(m).type===1?(e.openBlock(),e.createElementBlock("span",lN,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(m).type===2?(e.openBlock(),e.createElementBlock("span",rN,e.toDisplayString(e.unref(x)("task")),1)):e.unref(m).type===3?(e.openBlock(),e.createElementBlock("span",iN,"SOS")):(e.openBlock(),e.createElementBlock("span",cN,"-"))])])]),_:1}),e.createVNode(L,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",dN,[e.createElementVNode("span",pN,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",fN,e.toDisplayString(e.unref(m).deviceId),1)])]),_:1}),e.createVNode(L,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",mN,[e.createElementVNode("span",hN,e.toDisplayString(e.unref(x)("audioDuration")),1),e.createElementVNode("span",uN,e.toDisplayString(e.unref(u))+"s ",1)])]),_:1}),e.createVNode(L,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",_N,[e.createElementVNode("span",gN,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(m).expiredDtm?(e.openBlock(),e.createElementBlock("span",yN,e.toDisplayString(e.unref(m).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",xN,"-"))])]),_:1}),e.createVNode(L,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",kN,[e.createElementVNode("span",NN,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",bN,e.toDisplayString(e.unref(Ho)(e.unref(m).fileSize)),1)])]),_:1}),e.withDirectives(e.createVNode(L,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",CN,[e.createElementVNode("span",wN,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",EN,[e.createVNode(A,{modelValue:e.unref(f),"onUpdate:modelValue":D[1]||(D[1]=P=>e.isRef(f)?f.value=P:null),disabled:!!e.unref(m).fileScore,"void-color":e.unref(i).main,"disabled-void-color":e.unref(i).auxiliary,"disabled-void-icon-class":"el-icon-star-off",colors:e.unref(c),onChange:e.unref(_)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),e.unref(m).fileScore?(e.openBlock(),e.createElementBlock("span",SN,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",TN,e.toDisplayString(e.unref(x)("unrated")),1))])])]),_:1},512),[[e.vShow,!e.unref(d)]]),e.createVNode(L,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",DN,[e.createElementVNode("span",VN,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",$N,e.toDisplayString(e.unref(m).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",BN,[e.createVNode(O,{ref_key:"mapFileTrackRef",ref:r},null,512)]),e.createElementVNode("div",IN,[e.createVNode(kr,{ref_key:"audioPlayerRef",ref:s,"play-list":w.playList,onOnTimeUpdate:e.unref(V),onCanPlay:e.unref(T),onPlayEnd:e.unref(N),onPlayStart:e.unref(E),onOnAudioState:e.unref(C)},null,8,["play-list","onOnTimeUpdate","onCanPlay","onPlayEnd","onPlayStart","onOnAudioState"])])]),e.createElementVNode("div",AN,[e.createElementVNode("div",LN,[e.createVNode(la,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":e.unref(m).id,onOnEdit:e.unref(h),onOnClose:e.unref(g)},null,8,["media-file-id","onOnEdit","onOnClose"])]),e.createElementVNode("div",FN,[e.createVNode(br,{class:"bg-hy-page-bg-2","media-file-cur-time":e.unref(y),"media-file-id":e.unref(m).id,"media-file-total-time":e.unref(u),onPlayPoint:e.unref($),onOnEdit:e.unref(h),onOnClose:e.unref(g)},null,8,["media-file-cur-time","media-file-id","media-file-total-time","onPlayPoint","onOnEdit","onOnClose"])])])])])])}}}),[["__scopeId","data-v-e67170d8"]]);function RN(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(null),s=e.ref(null),l=e.ref(!0),r=e.ref(null),i=e.ref(!1),c=e.ref([]),p=e.ref(!1),d=e.ref({});async function f(V){pe.ElMessage.warning(x("fileIsDownloading"));const $=jo(new Date,"Y-M-h D:m:s"),h=await Yo(`/mediaFile/mediaFileZip?mediaFileIds=${V.toString()}`),g=new FileReader;g.readAsDataURL(h),g.onload=C=>{const w=URL.createObjectURL(new Blob([h])),D=document.createElement("a");document.body.appendChild(D),D.href=w,D.download=`${x("fileCompressionPackage_")}${$}.zip`,D.target="_blank",D.click(),D.remove()}}function m(){const V=o.value.playList.findIndex($=>$.id===d.value.id);V!==0?T(o.value.playList[V-1]):pe.ElMessage.warning(x("currentIsTheFirstItem"))}function u(){const V=o.value.playList.findIndex($=>$.id===d.value.id);V!==o.value.playList.length-1?T(o.value.playList[V+1]):pe.ElMessage.warning(x("currentIsTheLastItem"))}function y(){pe.ElMessage.success(x("detectionIsCorrect"))}function _(){a.value.show(d.value.id,r.value).then(V=>{d.value.fileScore=V,r.value=V})}function k(V){i.value=!0,c.value=[],s.value.onShowViewer(V)}function N(){i.value=!1}function E(){n("closeDrawer")}function b(V){console.log("error",V)}async function T(V){const $=V.id;d.value={...V},l.value=!0;const h=await yr($);h.code===200&&(r.value=h.data||null,d.value.fileScore=r.value,l.value=!1)}return{imageViewerRef:s,fileScoreRef:a,fileScoreLoading:l,fileScore:r,imageviewerType:i,imageviewerUrl:c,videoDialogVisible:p,playItem:d,pictureDownloadFn:f,previousSheet:m,nextSheet:u,detectingHashValues:y,fileScoreShow:_,onShowViewer:k,imageviewerClose:N,closeDrawer:E,error:b,playStart:T}}const PN={class:"h-full pic-detail-box flex flex-col"},MN={class:"detail-box flex-shrink-0 hy-dialog_header"},UN={class:"box-header flex flex-row m-0"},zN={class:"flex flex-row left-header-box"},WN={class:"group-hy-info flex items-center text-base font-bold w-full"},jN={key:1,class:"ml-1 flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap"},HN={class:"flex flex-row right-header-box flex-shrink text-hy-danger"},YN={class:"flex-grow h-0 overflow-y-auto"},GN={class:"content flex flex-row h-full min-h-[700px]"},qN={class:"left-content-box relative"},KN=["src"],XN={class:"flex items-center justify-between h-[60px] box-hy-border-2"},JN={class:"text-xs"},ZN={class:"text-xs"},QN={class:"flex items-center"},vN={class:"text-xs text-hy-text-secondary mr-2 flex items-center"},e0={class:"flex items-center justify-center"},t0={class:"ml-1 text-xs"},n0={key:0,class:"w-full file-info mb-[10px]"},o0={class:"info-item"},a0={class:"info-label"},s0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},l0={class:"info-item"},r0={class:"info-label"},i0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},c0={class:"info-item"},d0={class:"info-label"},p0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},f0={class:"info-item"},m0={class:"info-label"},h0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},u0={key:0},_0={key:1},g0={key:2,class:"text-hy-danger"},y0={key:3,class:"text-hy-text-secondary"},x0={class:"info-item"},k0={class:"info-label"},N0={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},b0={key:1,class:"text-hy-text-secondary"},C0={class:"info-item"},w0={class:"info-label"},E0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},S0={key:0,class:"flex items-center"},T0={key:1,class:"text-hy-text-secondary"},D0={class:"info-item"},V0={class:"info-label"},$0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},B0={class:"info-item flex items-center text-xs"},I0={class:"info-label"},A0={class:"flex items-center rateBox"},L0={key:0,class:"text-hy-text-secondary"},F0={key:1,class:"text-hy-text-main"},O0={class:"info-item"},R0={class:"info-label"},P0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},M0={key:0,class:"w-[30%] ml-2 flex-shrink-0 relative"},U0=be(e.defineComponent({__name:"image-details",props:{item:{},playList:{default:()=>[]}},emits:["closeDrawer"],setup(t,{emit:n}){const o=t,a=n,s=e.reactive(He.getCache("colorObject")),l=e.computed(()=>({2:s.auxiliary,3:s.warning,4:s.success,5:s.theme})),{imageViewerRef:r,fileScoreRef:i,fileScoreLoading:c,fileScore:p,playItem:d,pictureDownloadFn:f,previousSheet:m,nextSheet:u,fileScoreShow:y,onShowViewer:_,closeDrawer:k,error:N,playStart:E}=RN({emit:a,props:o});return e.onMounted(()=>{E(o.item)}),(b,T)=>{const V=e.resolveComponent("svg-icon"),$=e.resolveComponent("el-button"),h=e.resolveComponent("el-icon"),g=e.resolveComponent("el-col"),C=e.resolveComponent("el-rate"),w=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",PN,[e.createVNode(aa,{ref_key:"fileScoreRef",ref:i,onOnClose:T[0]||(T[0]=D=>p.value=null)},null,512),e.createElementVNode("div",MN,[e.createElementVNode("div",UN,[e.createElementVNode("div",zN,[e.createElementVNode("div",WN,[e.unref(d).mark?(e.openBlock(),e.createBlock(V,{key:0,width:"16",height:"16",name:"media-center-mark-file",class:"pos_r"})):e.createCommentVNode("",!0),e.unref(d)?(e.openBlock(),e.createElementBlock("div",jN,e.toDisplayString(e.unref(d).fileName),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",HN,[e.createVNode(V,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(k)},null,8,["onClick"])])])]),e.createElementVNode("div",YN,[e.createElementVNode("div",GN,[e.createElementVNode("div",qN,[e.createElementVNode("div",{class:"pic-img relative flex items-center justify-center",onClick:T[1]||(T[1]=D=>e.unref(_)(e.unref(d).filePath))},[e.createElementVNode("img",{src:e.unref(d).filePath,class:"h-full"},null,8,KN)]),e.createElementVNode("div",XN,[e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",null,[e.createVNode($,{type:"primary",class:"",onClick:e.unref(m)},{default:e.withCtx(()=>[e.createElementVNode("span",JN,e.toDisplayString(e.unref(x)("previous")),1)]),_:1},8,["onClick"]),e.createVNode($,{type:"primary",class:"",onClick:e.unref(u)},{default:e.withCtx(()=>[e.createElementVNode("span",ZN,e.toDisplayString(e.unref(x)("next")),1)]),_:1},8,["onClick"])],512),[[e.vShow,o.playList.length>1]])]),e.createElementVNode("div",QN,[e.createElementVNode("p",vN,[e.createVNode(h,{class:"text-sm mr-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(Wd))]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("clickOnTheImageToEnlargeAndView")),1)]),e.createVNode($,{class:"button_function",onClick:T[2]||(T[2]=D=>e.unref(f)(e.unref(d).id))},{default:e.withCtx(()=>[e.createElementVNode("div",e0,[e.createVNode(V,{class:"w-[12px] h-[12px]",name:"media-download"}),e.createElementVNode("span",t0,e.toDisplayString(e.unref(x)("download-0")),1)])]),_:1})])]),e.unref(d)&&e.unref(d).id?(e.openBlock(),e.createElementBlock("div",n0,[e.createVNode(w,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:e.withCtx(()=>[e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",o0,[e.createElementVNode("span",a0,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",s0,e.toDisplayString(e.unref(d).uploadDateStr),1)])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",l0,[e.createElementVNode("span",r0,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",i0,e.toDisplayString(e.unref(Ho)(e.unref(d).fileSize)),1)])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",c0,[e.createElementVNode("span",d0,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",p0,e.toDisplayString(e.unref(d).devUserName),1)])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",f0,[e.createElementVNode("span",m0,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",h0,[e.unref(d).type===1?(e.openBlock(),e.createElementBlock("span",u0,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(d).type===2?(e.openBlock(),e.createElementBlock("span",_0,e.toDisplayString(e.unref(x)("task")),1)):e.unref(d).type===3?(e.openBlock(),e.createElementBlock("span",g0,"SOS")):(e.openBlock(),e.createElementBlock("span",y0,"-"))])])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",x0,[e.createElementVNode("span",k0,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(d).expiredDtm?(e.openBlock(),e.createElementBlock("span",N0,e.toDisplayString(e.unref(d).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",b0,"-"))])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",C0,[e.createElementVNode("span",w0,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",E0,[e.unref(d).mark?(e.openBlock(),e.createElementBlock("span",S0,[e.createTextVNode(e.toDisplayString(e.unref(x)("star"))+" ",1),e.createVNode(V,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-1 -top-[2px]"})])):(e.openBlock(),e.createElementBlock("span",T0,"-"))])])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",D0,[e.createElementVNode("span",V0,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",$0,e.toDisplayString(e.unref(d).deviceId),1)])]),_:1}),e.withDirectives(e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",B0,[e.createElementVNode("span",I0,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",A0,[e.createVNode(C,{modelValue:e.unref(p),"onUpdate:modelValue":T[3]||(T[3]=D=>e.isRef(p)?p.value=D:null),disabled:!!e.unref(d).fileScore,"void-color":s.main,"disabled-void-color":s.auxiliary,"disabled-void-icon-class":"el-icon-star-off",colors:l.value,onChange:e.unref(y)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),e.unref(d).fileScore?(e.openBlock(),e.createElementBlock("span",L0,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",F0,e.toDisplayString(e.unref(x)("unrated")),1))])])]),_:1},512),[[e.vShow,!e.unref(c)]]),e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",O0,[e.createElementVNode("span",R0,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",P0,e.toDisplayString(e.unref(d).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0)]),e.unref(d).id?(e.openBlock(),e.createElementBlock("div",M0,[e.createVNode(la,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":e.unref(d).id},null,8,["media-file-id"])])):e.createCommentVNode("",!0)])]),e.createVNode(Wo,{ref_key:"imageViewerRef",ref:r},null,512)])}}}),[["__scopeId","data-v-04b34f5b"]]),z0={class:"h-full text-hy-text-main flex flex-col"},W0={class:"h-[60px] flex justify-between items-center px-5 hy-dialog_header"},j0={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},H0={class:"text-hy-danger"},Y0={class:"flex-grow h-0 overflow-y-auto"},G0={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},q0={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},K0={class:"h-[240px] video-player-box mt-[20px] flex"},X0={key:0,class:"w-full file-info m-[10px_0]"},J0={class:"info-item"},Z0={class:"info-label"},Q0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},v0={class:"info-item"},eb={class:"info-label"},tb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},nb={key:0,class:"flex items-center"},ob={key:1,class:"text-hy-text-secondary"},ab={class:"info-item"},sb={class:"info-label"},lb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},rb={class:"info-item"},ib={class:"info-label"},cb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},db={class:"info-item"},pb={class:"info-label"},fb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},mb={class:"info-item"},hb={class:"info-label"},ub={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},_b={key:0},gb={key:1},yb={key:2,class:"text-hy-danger"},xb={key:3,class:"text-hy-text-secondary"},kb={class:"info-item"},Nb={class:"info-label"},bb={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Cb={key:1,class:"text-hy-text-secondary"},wb={class:"info-item"},Eb={class:"info-label"},Sb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Tb={class:"info-item flex items-center text-xs"},Db={class:"info-label"},Vb={class:"flex items-center rateBox"},$b={key:0,class:"text-hy-text-secondary"},Bb={key:1,class:"text-hy-text-main"},Ib={class:"info-item"},Ab={class:"info-label"},Lb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Fb={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},Ob={class:"w-[60%] flex"},Rb={class:"flex-grow w-0 ml-2"},Pb={class:"flex-grow w-0 ml-2"},Mb=be(e.defineComponent({__name:"video-details",props:{item:{},playList:{}},emits:["closeDrawer"],setup(t,{emit:n}){const o=t,a=n,s=e.ref(),{fileScoreRef:l,mapFileTrackRef:r,colorObject:i,colors:c,audioState:p,fileScoreLoading:d,fileScore:f,playItem:m,playerTotalTime:u,audioCurTime:y,fileScoreShow:_,closeDrawer:k,playEnd:N,onPlayStart:E,playStart:b,canPlay:T,onTimeUpdate:V,playPoint:$,onEditMark:h,onEditorClose:g,setAudioState:C}=Cr({emit:a,params:{getPlayerRef:()=>s.value,onEditMark:()=>{s.value.pauseVideo()}}});return e.onBeforeUnmount(()=>{k()}),e.onMounted(()=>{e.nextTick(()=>{m.value={},b(o.item),e.nextTick(()=>{var w;(w=s.value)==null||w.playVideo(o.item.filePath,o.item)})})}),(w,D)=>{const S=e.resolveComponent("svg-icon"),L=e.resolveComponent("el-col"),A=e.resolveComponent("el-rate"),j=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",z0,[e.createVNode(aa,{ref_key:"fileScoreRef",ref:l,onOnClose:D[0]||(D[0]=O=>f.value=null)},null,512),e.createElementVNode("div",W0,[e.createElementVNode("div",j0,[e.unref(m).mark?(e.openBlock(),e.createBlock(S,{key:0,width:"16",height:"16",name:"media-center-mark-file",class:"pos_r mr-1"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(e.unref(m).fileName),1)]),e.createElementVNode("div",H0,[e.createVNode(S,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(k)},null,8,["onClick"])])]),e.createElementVNode("div",Y0,[e.createElementVNode("div",G0,[e.createElementVNode("div",q0,[e.createElementVNode("div",K0,[e.createVNode(oa,{ref_key:"videoPlayerRef",ref:s,"play-list":w.playList,onCanPlay:e.unref(T),onOnTimeUpdate:e.unref(V),onPlayStart:e.unref(E)},null,8,["play-list","onCanPlay","onOnTimeUpdate","onPlayStart"])]),e.unref(m)&&e.unref(m).id?(e.openBlock(),e.createElementBlock("div",X0,[e.createVNode(j,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:e.withCtx(()=>[e.createVNode(L,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",J0,[e.createElementVNode("span",Z0,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",Q0,e.toDisplayString(e.unref(m).uploadDateStr),1)])]),_:1}),e.createVNode(L,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",v0,[e.createElementVNode("span",eb,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",tb,[e.unref(m).mark?(e.openBlock(),e.createElementBlock("span",nb,[e.createTextVNode(e.toDisplayString(e.unref(x)("star"))+" ",1),e.createVNode(S,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-[4px] -top-[2px]"})])):(e.openBlock(),e.createElementBlock("span",ob,"-"))])])]),_:1}),e.createVNode(L,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",ab,[e.createElementVNode("span",sb,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",lb,e.toDisplayString(e.unref(m).devUserName),1)])]),_:1}),e.createVNode(L,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",rb,[e.createElementVNode("span",ib,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",cb,e.toDisplayString(e.unref(Ho)(e.unref(m).fileSize)),1)])]),_:1}),e.createVNode(L,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",db,[e.createElementVNode("span",pb,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",fb,e.toDisplayString(e.unref(m).deviceId),1)])]),_:1}),e.createVNode(L,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",mb,[e.createElementVNode("span",hb,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",ub,[e.unref(m).type===1?(e.openBlock(),e.createElementBlock("span",_b,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(m).type===2?(e.openBlock(),e.createElementBlock("span",gb,e.toDisplayString(e.unref(x)("task")),1)):e.unref(m).type===3?(e.openBlock(),e.createElementBlock("span",yb,"SOS")):(e.openBlock(),e.createElementBlock("span",xb,"-"))])])]),_:1}),e.createVNode(L,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",kb,[e.createElementVNode("span",Nb,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(m).expiredDtm?(e.openBlock(),e.createElementBlock("span",bb,e.toDisplayString(e.unref(m).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",Cb,"-"))])]),_:1}),e.createVNode(L,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",wb,[e.createElementVNode("span",Eb,e.toDisplayString(e.unref(x)("videoDuration")),1),e.createElementVNode("span",Sb,e.toDisplayString(e.unref(u))+"s ",1)])]),_:1}),e.withDirectives(e.createVNode(L,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",Tb,[e.createElementVNode("span",Db,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",Vb,[e.createVNode(A,{modelValue:e.unref(f),"onUpdate:modelValue":D[1]||(D[1]=O=>e.isRef(f)?f.value=O:null),disabled:!!e.unref(m).fileScore,"void-color":e.unref(i).main,"disabled-void-color":e.unref(i).auxiliary,"disabled-void-icon-class":"el-icon-star-off",colors:e.unref(c),onChange:e.unref(_)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),e.unref(m).fileScore?(e.openBlock(),e.createElementBlock("span",$b,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",Bb,e.toDisplayString(e.unref(x)("unrated")),1))])])]),_:1},512),[[e.vShow,!e.unref(d)]]),e.createVNode(L,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",Ib,[e.createElementVNode("span",Ab,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",Lb,e.toDisplayString(e.unref(m).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",Fb,[e.createVNode(Nr,{ref_key:"mapFileTrackRef",ref:r},null,512)])]),e.createElementVNode("div",Ob,[e.createElementVNode("div",Rb,[e.createVNode(la,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":e.unref(m).id,onOnEdit:e.unref(h),onOnClose:e.unref(g)},null,8,["media-file-id","onOnEdit","onOnClose"])]),e.createElementVNode("div",Pb,[e.createVNode(br,{class:"bg-hy-page-bg-2","media-file-cur-time":e.unref(y),"media-file-id":e.unref(m).id,"media-file-total-time":e.unref(u),onPlayPoint:e.unref($),onOnEdit:e.unref(h),onOnClose:e.unref(g)},null,8,["media-file-cur-time","media-file-id","media-file-total-time","onPlayPoint","onOnEdit","onOnClose"])])])])])])}}}),[["__scopeId","data-v-e7e174d1"]]),Ub={key:0,class:"fixed top-[10%] left-[25%]"},zb={class:"!p-0 !w-[1200px]"},Wb={class:"h-[780px] px-1 box-border bg-hy-page-bg-2 text-hy-text-main el-drag-dialog rounded overflow-hidden border border-hy-main shadow-[0_0_6px_0] shadow-hy-main flex flex-col"},jb=e.defineComponent({__name:"file-details",setup(t,{expose:n}){const o=cx,a=e.ref(!1),s=e.ref(!1),l=e.ref(1),r=e.ref({}),i=e.ref([]);function c(){a.value=!1,console.log("closeDrawer")}function p(d){a.value=!0,s.value=d.draggable,l.value=d.curMediaType,r.value=d.curItem,i.value=d.playList||[]}return e.onMounted(()=>{}),n({show:p}),(d,f)=>e.unref(a)?e.withDirectives((e.openBlock(),e.createElementBlock("div",Ub,[e.createElementVNode("div",zb,[e.createVNode($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",Wb,[e.unref(l)===2?(e.openBlock(),e.createBlock(ON,{key:0,item:e.unref(r),"play-list":e.unref(i),onCloseDrawer:c},null,8,["item","play-list"])):e.unref(l)===3?(e.openBlock(),e.createBlock(Mb,{key:1,item:e.unref(r),"play-list":e.unref(i),onCloseDrawer:c},null,8,["item","play-list"])):e.unref(l)===4?(e.openBlock(),e.createBlock(U0,{key:2,item:e.unref(r),"play-list":e.unref(i),onCloseDrawer:c},null,8,["item","play-list"])):e.createCommentVNode("",!0)])]),_:1})])])),[[e.unref(o)]]):e.createCommentVNode("",!0)}});function Hb(t){return oe.post({url:"/file/abortMultipartUpload",data:t,showLoading:!1,isJson:!0})}function Yb(t){return oe.post({url:"/file/multipartUploadAuth",data:t,showLoading:!1,isFormData:!0})}function Gb(t){return oe.post({url:"/file/completeMultipartUpload",data:t,showLoading:!1,isJson:!0})}function qb(t){return oe.post({url:"/mediaFile/mediaFile/save",data:t,showLoading:!1,isJson:!0})}function Kb(t){return oe.post({url:"/mediaFile/findByFileCloudKey",data:{fileCloudKey:t},showLoading:!1,isFormData:!0})}const Xb="/admin",Jb=new Nl({baseURL:`${He.getCache("host")||""}${Xb}`,timeout:Hs,headers:{"Content-Type":ct.JSON},interceptors:{requestSuccessFn:t=>{const n=He.getCache("userInfo");return t.headers.token=n==null?void 0:n.token,t.headers&&t.isJson?t.headers["Content-Type"]=ct.JSON:t.headers&&t.isFormData?t.headers["Content-Type"]=ct.FORM_DATA:t.headers&&t.isFileUpload&&(t.responseType="blob",t.headers["Content-Type"]=ct.FILE_UPLOAD),t.headers&&t.xAmzAcl&&(t.headers["Content-Type"]=t.fileType,t.headers["x-amz-acl"]="public-read"),t},requestFailureFn:t=>t,responseSuccessFn:t=>t.headers.etag?t.headers.etag:t.data,responseFailureFn:t=>t}});var wr={exports:{}};(function(t,n){(function(o){t.exports=o()})(function(o){var a=function(h,g){return h+g&4294967295},s=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function l(h,g,C,w,D,S){return g=a(a(g,h),a(w,S)),a(g<<D|g>>>32-D,C)}function r(h,g,C,w,D,S,L){return l(g&C|~g&w,h,g,D,S,L)}function i(h,g,C,w,D,S,L){return l(g&w|C&~w,h,g,D,S,L)}function c(h,g,C,w,D,S,L){return l(g^C^w,h,g,D,S,L)}function p(h,g,C,w,D,S,L){return l(C^(g|~w),h,g,D,S,L)}function d(h,g){var C=h[0],w=h[1],D=h[2],S=h[3];C=r(C,w,D,S,g[0],7,-680876936),S=r(S,C,w,D,g[1],12,-389564586),D=r(D,S,C,w,g[2],17,606105819),w=r(w,D,S,C,g[3],22,-1044525330),C=r(C,w,D,S,g[4],7,-176418897),S=r(S,C,w,D,g[5],12,1200080426),D=r(D,S,C,w,g[6],17,-1473231341),w=r(w,D,S,C,g[7],22,-45705983),C=r(C,w,D,S,g[8],7,1770035416),S=r(S,C,w,D,g[9],12,-1958414417),D=r(D,S,C,w,g[10],17,-42063),w=r(w,D,S,C,g[11],22,-1990404162),C=r(C,w,D,S,g[12],7,1804603682),S=r(S,C,w,D,g[13],12,-40341101),D=r(D,S,C,w,g[14],17,-1502002290),w=r(w,D,S,C,g[15],22,1236535329),C=i(C,w,D,S,g[1],5,-165796510),S=i(S,C,w,D,g[6],9,-1069501632),D=i(D,S,C,w,g[11],14,643717713),w=i(w,D,S,C,g[0],20,-373897302),C=i(C,w,D,S,g[5],5,-701558691),S=i(S,C,w,D,g[10],9,38016083),D=i(D,S,C,w,g[15],14,-660478335),w=i(w,D,S,C,g[4],20,-405537848),C=i(C,w,D,S,g[9],5,568446438),S=i(S,C,w,D,g[14],9,-1019803690),D=i(D,S,C,w,g[3],14,-187363961),w=i(w,D,S,C,g[8],20,1163531501),C=i(C,w,D,S,g[13],5,-1444681467),S=i(S,C,w,D,g[2],9,-51403784),D=i(D,S,C,w,g[7],14,1735328473),w=i(w,D,S,C,g[12],20,-1926607734),C=c(C,w,D,S,g[5],4,-378558),S=c(S,C,w,D,g[8],11,-2022574463),D=c(D,S,C,w,g[11],16,1839030562),w=c(w,D,S,C,g[14],23,-35309556),C=c(C,w,D,S,g[1],4,-1530992060),S=c(S,C,w,D,g[4],11,1272893353),D=c(D,S,C,w,g[7],16,-155497632),w=c(w,D,S,C,g[10],23,-1094730640),C=c(C,w,D,S,g[13],4,681279174),S=c(S,C,w,D,g[0],11,-358537222),D=c(D,S,C,w,g[3],16,-722521979),w=c(w,D,S,C,g[6],23,76029189),C=c(C,w,D,S,g[9],4,-640364487),S=c(S,C,w,D,g[12],11,-421815835),D=c(D,S,C,w,g[15],16,530742520),w=c(w,D,S,C,g[2],23,-995338651),C=p(C,w,D,S,g[0],6,-198630844),S=p(S,C,w,D,g[7],10,1126891415),D=p(D,S,C,w,g[14],15,-1416354905),w=p(w,D,S,C,g[5],21,-57434055),C=p(C,w,D,S,g[12],6,1700485571),S=p(S,C,w,D,g[3],10,-1894986606),D=p(D,S,C,w,g[10],15,-1051523),w=p(w,D,S,C,g[1],21,-2054922799),C=p(C,w,D,S,g[8],6,1873313359),S=p(S,C,w,D,g[15],10,-30611744),D=p(D,S,C,w,g[6],15,-1560198380),w=p(w,D,S,C,g[13],21,1309151649),C=p(C,w,D,S,g[4],6,-145523070),S=p(S,C,w,D,g[11],10,-1120210379),D=p(D,S,C,w,g[2],15,718787259),w=p(w,D,S,C,g[9],21,-343485551),h[0]=a(C,h[0]),h[1]=a(w,h[1]),h[2]=a(D,h[2]),h[3]=a(S,h[3])}function f(h){var g=[],C;for(C=0;C<64;C+=4)g[C>>2]=h.charCodeAt(C)+(h.charCodeAt(C+1)<<8)+(h.charCodeAt(C+2)<<16)+(h.charCodeAt(C+3)<<24);return g}function m(h){var g=[],C;for(C=0;C<64;C+=4)g[C>>2]=h[C]+(h[C+1]<<8)+(h[C+2]<<16)+(h[C+3]<<24);return g}function u(h){var g=h.length,C=[1732584193,-271733879,-1732584194,271733878],w,D,S,L,A,j;for(w=64;w<=g;w+=64)d(C,f(h.substring(w-64,w)));for(h=h.substring(w-64),D=h.length,S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<D;w+=1)S[w>>2]|=h.charCodeAt(w)<<(w%4<<3);if(S[w>>2]|=128<<(w%4<<3),w>55)for(d(C,S),w=0;w<16;w+=1)S[w]=0;return L=g*8,L=L.toString(16).match(/(.*?)(.{0,8})$/),A=parseInt(L[2],16),j=parseInt(L[1],16)||0,S[14]=A,S[15]=j,d(C,S),C}function y(h){var g=h.length,C=[1732584193,-271733879,-1732584194,271733878],w,D,S,L,A,j;for(w=64;w<=g;w+=64)d(C,m(h.subarray(w-64,w)));for(h=w-64<g?h.subarray(w-64):new Uint8Array(0),D=h.length,S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<D;w+=1)S[w>>2]|=h[w]<<(w%4<<3);if(S[w>>2]|=128<<(w%4<<3),w>55)for(d(C,S),w=0;w<16;w+=1)S[w]=0;return L=g*8,L=L.toString(16).match(/(.*?)(.{0,8})$/),A=parseInt(L[2],16),j=parseInt(L[1],16)||0,S[14]=A,S[15]=j,d(C,S),C}function _(h){var g="",C;for(C=0;C<4;C+=1)g+=s[h>>C*8+4&15]+s[h>>C*8&15];return g}function k(h){var g;for(g=0;g<h.length;g+=1)h[g]=_(h[g]);return h.join("")}k(u("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(a=function(h,g){var C=(h&65535)+(g&65535),w=(h>>16)+(g>>16)+(C>>16);return w<<16|C&65535}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function h(g,C){return g=g|0||0,g<0?Math.max(g+C,0):Math.min(g,C)}ArrayBuffer.prototype.slice=function(g,C){var w=this.byteLength,D=h(g,w),S=w,L,A,j,O;return C!==o&&(S=h(C,w)),D>S?new ArrayBuffer(0):(L=S-D,A=new ArrayBuffer(L),j=new Uint8Array(A),O=new Uint8Array(this,D,L),j.set(O),A)}}();function N(h){return/[\u0080-\uFFFF]/.test(h)&&(h=unescape(encodeURIComponent(h))),h}function E(h,g){var C=h.length,w=new ArrayBuffer(C),D=new Uint8Array(w),S;for(S=0;S<C;S+=1)D[S]=h.charCodeAt(S);return g?D:w}function b(h){return String.fromCharCode.apply(null,new Uint8Array(h))}function T(h,g,C){var w=new Uint8Array(h.byteLength+g.byteLength);return w.set(new Uint8Array(h)),w.set(new Uint8Array(g),h.byteLength),C?w:w.buffer}function V(h){var g=[],C=h.length,w;for(w=0;w<C-1;w+=2)g.push(parseInt(h.substr(w,2),16));return String.fromCharCode.apply(String,g)}function $(){this.reset()}return $.prototype.append=function(h){return this.appendBinary(N(h)),this},$.prototype.appendBinary=function(h){this._buff+=h,this._length+=h.length;var g=this._buff.length,C;for(C=64;C<=g;C+=64)d(this._hash,f(this._buff.substring(C-64,C)));return this._buff=this._buff.substring(C-64),this},$.prototype.end=function(h){var g=this._buff,C=g.length,w,D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],S;for(w=0;w<C;w+=1)D[w>>2]|=g.charCodeAt(w)<<(w%4<<3);return this._finish(D,C),S=k(this._hash),h&&(S=V(S)),this.reset(),S},$.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},$.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},$.prototype.setState=function(h){return this._buff=h.buff,this._length=h.length,this._hash=h.hash,this},$.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},$.prototype._finish=function(h,g){var C=g,w,D,S;if(h[C>>2]|=128<<(C%4<<3),C>55)for(d(this._hash,h),C=0;C<16;C+=1)h[C]=0;w=this._length*8,w=w.toString(16).match(/(.*?)(.{0,8})$/),D=parseInt(w[2],16),S=parseInt(w[1],16)||0,h[14]=D,h[15]=S,d(this._hash,h)},$.hash=function(h,g){return $.hashBinary(N(h),g)},$.hashBinary=function(h,g){var C=u(h),w=k(C);return g?V(w):w},$.ArrayBuffer=function(){this.reset()},$.ArrayBuffer.prototype.append=function(h){var g=T(this._buff.buffer,h,!0),C=g.length,w;for(this._length+=h.byteLength,w=64;w<=C;w+=64)d(this._hash,m(g.subarray(w-64,w)));return this._buff=w-64<C?new Uint8Array(g.buffer.slice(w-64)):new Uint8Array(0),this},$.ArrayBuffer.prototype.end=function(h){var g=this._buff,C=g.length,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],D,S;for(D=0;D<C;D+=1)w[D>>2]|=g[D]<<(D%4<<3);return this._finish(w,C),S=k(this._hash),h&&(S=V(S)),this.reset(),S},$.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},$.ArrayBuffer.prototype.getState=function(){var h=$.prototype.getState.call(this);return h.buff=b(h.buff),h},$.ArrayBuffer.prototype.setState=function(h){return h.buff=E(h.buff,!0),$.prototype.setState.call(this,h)},$.ArrayBuffer.prototype.destroy=$.prototype.destroy,$.ArrayBuffer.prototype._finish=$.prototype._finish,$.ArrayBuffer.hash=function(h,g){var C=y(new Uint8Array(h)),w=k(C);return g?V(w):w},$})})(wr);var Zb=wr.exports;const Qb=nl(Zb);class vb{md5(n,o,a){this.aborted=!1,this.progress=0;let s=0;const l=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,r=2097152,i=Math.ceil(n.size/r),c=new Qb.ArrayBuffer,p=new FileReader;d(),p.onloadend=f=>{if(c.append(f.target.result),s++,this.progress=s/i,a&&typeof a=="function"&&a(this.progress),this.aborted){o("aborted");return}s<i?d():o(null,c.end())};function d(){const f=s*r,m=f+r>=n.size?n.size:f+r;p.readAsArrayBuffer(l.call(n,f,m))}}abort(){this.aborted=!0}}function eC(t){const n=t.emit,o=e.ref(null),a=e.ref(null),s=e.ref(null),l=e.ref(null),r=e.ref(null),i=e.ref(!1),c=e.ref(0),p=e.ref(!1),d=e.ref([]),f=e.ref(!1),m=e.ref(!1),u=e.ref({1:".png,.jpg,.gif",2:".mp4",4:".mp3,.aac",5:".apk",6:".zip"}),y=e.ref([{label:x("imageFiles"),value:1},{label:x("videoFile"),value:2},{label:x("audioFiles"),value:4},{label:`APK${x("upgradePackage")}`,value:5},{label:x("softwarePackage"),value:6}]),_=e.ref([]),k=e.ref(null),N=e.ref(null),E=e.ref([]),b=e.ref([]),T=e.ref(File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice),V=e.ref(1024*1024*5);function $(){n("on-fileUploadNum",_.value.length)}function h(){p.value=!1}function g(){C(!0)}function C(R){p.value=R}function w(R){i.value=R}function D(R){l.value=R.startUploadingCallback||null,r.value=R.fileShardingCallback||null,a.value=R.onSubmit||null}function S(R,G){if(y.value=[{label:x("softwarePackage"),value:6}],k.value=6,s.value=G||null,D(R),f.value)return pe.ElMessage.error(x("fileReadingInProgressPleaseWait"));d.value=[],m.value=!0}function L(R,G){if(y.value=[{label:`APK${x("upgradePackage")}`,value:5}],k.value=5,s.value=G||null,D(R),f.value)return pe.ElMessage.error(x("fileReadingInProgressPleaseWait"));d.value=[],m.value=!0}function A(R,G){y.value=[{label:x("imageFiles"),value:1},{label:x("videoFile"),value:2},{label:x("audioFiles"),value:4}];const te=R.folderId;if(te){if(s.value=G||null,D({}),N.value=te,D(R),f.value)return pe.ElMessage.error(x("fileReadingInProgressPleaseWait"));k.value=2,d.value=[],m.value=!0}}function j(){w(!1),m.value=!1}function O(){if(d.value.length===0)return pe.ElMessage.error(x("pleaseSelectAFile"));d.value.length>1&&pe.ElMessage.warning(x("pleaseWaitForTheFilesToBeUploadedInSequence")),m.value=!1,g(),f.value=!0,l.value&&l.value();const R=(G,te)=>new Promise((de,_e)=>{const Ve=G[te];Ve&&ne(Ve.file,{fileType:k.value,folderId:N.value,onSubmit:a.value}).then(B=>{pe.ElMessage.success(`${x("startUploading")} ${B}`),G.length-1!==te?R(G,te+1).then(()=>{de({code:200})}):de({code:200})}).catch(()=>{G.length-1!==te?R(G,te+1).then(()=>{de({code:200})}):de({code:200})})});R(d.value,0).then(()=>{f.value=!1,r.value&&r.value(),d.value=[]})}function P(R){const G=R.type||"";if(k.value===1){if(!G.includes("image"))return pe.ElMessage.error(x("theUploadedFileIsNotOfImageType")),!1}else if(k.value===2){if(!G.includes("video"))return pe.ElMessage.error(x("theUploadedFileIsNotOfVideoType")),!1}else if(k.value===4){if(!G.includes("audio"))return pe.ElMessage.error(x("theUploadedFileIsNotOfAudioType")),!1}else if(k.value===5){if(!R.name.includes(`${u.value[5]}`))return pe.ElMessage.error(x("theUploadedFileIsNotAnAPKUpgradePackage")),!1}else if(k.value===6&&!R.name.includes(`${u.value[6]}`))return pe.ElMessage.error(x("theUploadedFileIsNotASoftwarePackage")),!1;return!0}function z(){E.value=[],b.value=[];const R=He.getCache("fileUploadList");R&&(_.value=R.map(G=>(G.status==="uploading"&&(G.status="error"),G)),e.nextTick(()=>{$(),_.value.forEach(G=>{G.status!=="error"&&ke(G.md5)})}))}function U(){window.sessionStorage.setItem("fileUploadList",JSON.stringify(_.value))}function M(R){return new Promise((G,te)=>{new vb().md5(R,(_e,Ve)=>{_e?te(_e):G({md5:Ve})})})}function Y(R){return new Promise(G=>{const te=R.size;let de=0,_e=null;const Ve=Math.ceil(te/V.value),B=[],I=()=>{const H=de*V.value,ee=H+V.value>=te?te:H+V.value;if(_e=T.value.call(R,H,ee),B.push(_e),de++,de<Ve)return I();G(B)};I()})}function F(R){const G=new File([R.file],R.file.name.replace(/\s*/g,""));d.value.push({name:G.name,file:G})}function Q(R,G){if(R.file.name===G.fileName){const te=new File([R.file],R.file.name.replace(/\s*/g,""));ne(te,{fileType:G.fileType,folderId:G.folderId,onSubmit:a.value,md5:G.md5}).then(de=>{pe.ElMessage.success(`${x("startUploading")} ${de}文件`)})}else pe.ElMessage.error(x("pleaseSelectTheSameFileForUploading"))}function ne(R,G){return new Promise(async(te,de)=>{const _e=G.md5||Hn(1);await Y(R).then(async(Ve=[])=>{const B=_.value.find(I=>I.md5===_e);if(he(_e,Ve),B){const I=B.status,H=B.errorReason;I==="error"&&!H?(te(R.name),ke(B.md5)):de()}else{const I=await Yb({cannedACL:i.value?"public-read":"",fileName:R.name,contentLength:R.size,contentType:R.type,partSize:V.value});if(I.code===200){const H=I.data;if(H){const ee=H.list||[],Ne={md5:_e,fileType:G.fileType,folderId:G.folderId,onSubmit:G.onSubmit,fileName:R.name,size:R.size,type:R.type,key:H.key,uploadId:H.uploadId,status:"uploading",completionTime:null,progress:0,finishNum:0,totalNum:ee.length,shardingList:ee.map((me,ue)=>({key:me.key,url:me.url,partNumber:ue+1,isUpload:!1,etag:null}))};te(R.name),_.value.unshift(Ne),$(),e.nextTick(()=>{U(),ke(Ne.md5)})}}}})})}function Te(R){return new Promise(async(G,te)=>{const de=await Kb(R);de.code===200&&(de.data?te(new Error(x("prohibitUploadingFilesWithTheSameNameOnThePlatform"))):G({code:200}))})}function he(R,G){const te=E.value.findIndex(de=>de.md5===R);te===-1?E.value.push({md5:R,fileChunkList:G}):E.value[te].fileChunkList=G}function ke(R){const G=_.value.find(te=>te.md5===R);if(G.status==="amalgamation")v(G);else if(G.status==="sharding")X(G);else{const te=E.value.findIndex(I=>I.md5===G.md5);if(te===-1){pe.ElMessage.error(x("errorInUploadingFile"));return}const de=E.value[te].fileChunkList,_e=(I,H)=>new Promise((ee,Ne)=>{const me=I[H];if(me)if(me.isUpload)I.length-1!==H?_e(I,H+1).then(()=>{ee({code:200})}):ee({code:200});else{const ue=de[H],W=new File([ue],G.name,{type:G.type,lastModified:Date.now()});Oe(me.url,W).then(K=>{me.etag=K,me.isUpload=!0;const ce=G.finishNum+1,we=G.totalNum;G.finishNum=ce,G.progress=Number.parseInt(String(ce/we*80)),U(),I[H]=me,I.length-1!==H?_e(I,H+1).then(()=>{ee({code:200})}):ee({code:200})})}}),Ve=G.shardingList,B=Ve.findIndex(I=>I.isUpload===!1);B!==-1?(G.status="uploading",_e(Ve,B).then(()=>{G.status="sharding",X(G)})):(G.status="sharding",X(G))}}function Oe(R,G){return new Promise((te,de)=>{Jb.put({url:R,data:G}).then(_e=>{te(_e)}).catch(()=>{de(new Error(x("uploadError")))})})}async function X(R){U();const G=await Gb({key:R.key,uploadId:R.uploadId,partETagList:R.shardingList.map(te=>({partNumber:te.partNumber,etag:te.etag}))});(G.code===200||G.code===10020)&&(R.status="amalgamation",R.progress=80,v(R))}async function v(R){U();const G=()=>{R.completionTime=jo(new Date,"Y-M-h D:m:s"),R.status="success",b.value.unshift(R),J(R.md5),R.onSubmit&&R.onSubmit(R),e.nextTick(()=>{U()})};s.value?s.value(R,()=>{G()}):(await qb({fileType:R.fileType,folderId:R.folderId,key:R.key,size:R.size})).code===200&&(pe.ElMessage.success(x("uploadSuccessful")),G())}function ie(R,G){G.splice(R,1)}function le(R){var G;(G=o.value)==null||G.show(R.fileCloudKey).then(()=>{R.onSubmit&&R.onSubmit()})}async function J(R){if(!R)return;const G=_.value.findIndex(te=>te.md5===R);if(G!==-1){const te=_.value[G];_.value.splice(G,1);const de=E.value.findIndex(_e=>_e.md5===R);de!==-1&&E.value.splice(de,1),$(),te.key&&te.uploadId?(await Hb({key:te.key,uploadId:te.uploadId})).code===200&&U():U()}}return{apkConfirmUploadRef:o,onSubmit:a,publicRea:i,customFileSave:s,startUploadingCallback:l,fileShardingCallback:r,dragLevel:c,dialogVisible:p,uploadList:d,loading:f,fileUploadVisible:m,uploadAccept:u,fileTypeList:y,fileType:k,folderId:N,fileList:E,fileUploadList:_,successFileList:b,blobSlice:T,defaultChunkSize:V,fileUploadNumFn:$,onClose:h,show:g,setDialogVisible:C,setPublicRea:w,setCallback:D,fileUploadVersionShow:S,fileUploadAPkShow:L,fileUploadShow:A,fileUploadClose:j,fileUploadSubmit:O,beforeAvatarUpload:P,getData:z,saveData:U,getFileMd5:M,sliceFile:Y,uploadListRequestFn:F,handleHttpRequestImg:Q,fileRequestFn:ne,findByFileCloudKey:Te,fileListPushFn:he,uploadSliceFile:ke,uploadPart:Oe,completeMultipartUpload:X,mediaFileFn:v,deleteListFn:ie,apkConfirmUploadShow:le,deleteFileUpload:J}}const tC=t=>(e.pushScopeId("data-v-396f7126"),t=t(),e.popScopeId(),t),nC={class:"box-border text-hy-text-main el-drag-dialog w-full h-full rounded overflow-hidden border border-hy-main shadow-[0_0_6px_0] shadow-hy-main flex flex-col"},oC={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},aC={class:"absolute right-[10px]"},sC={class:"dialog_body"},lC={class:"mb-[10px]"},rC={class:"text-sm leading-[30px]"},iC={class:"mb-[10px]"},cC={class:"text-sm leading-[30px]"},dC={class:"text-center"},pC={class:"text-xs text-hy-text-secondary"},fC={class:"uploadList select-none"},mC={class:"flex-grow w-0"},hC={class:"text-right mt-[20px]"},uC={class:"box-border text-hy-text-main el-drag-dialog w-full h-full rounded overflow-hidden border border-hy-main shadow-[0_0_6px_0] shadow-hy-main flex flex-col"},_C={class:"relative border-b border-hy-border-2 pl-2 text-[18px] font-bold h-[50px] flex items-center justify-between"},gC={class:"absolute right-[10px]"},yC={class:"dialog_body el-dialog__body !p-[0_0_10px_0]"},xC={class:"progressBox text-hy-text-main el-progress-bar__outer_backgroundv3"},kC={class:"flex items-center"},NC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},bC={key:0,class:"flex items-center justify-center"},CC={key:0,class:"select-none click-box"},wC={class:"iconCloseBox click-box ml-[4px]"},EC={class:"flex flex-row leading-[20px] text-hy-danger select-none"},SC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},TC={class:"flex flex-row mb-[4px]"},DC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},VC=tC(()=>e.createElementVNode("span",null,[e.createElementVNode("i",{class:"el-icon-loading text-hy-main"})],-1)),$C={class:"flex flex-row leading-[20px]"},BC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},IC={class:"text-hy-main"},AC={class:"flex flex-row mb-[4px]"},LC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},FC={class:"iconCloseBox click-box"},OC={class:"flex flex-row leading-[20px]"},RC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},PC={class:"text-hy-success"},MC={key:0,class:"text-hy-text-secondary flex items-center justify-center text-xs noData h-full"},UC={class:"text-center"},zC={class:"mt-[10px]"},WC=be(e.defineComponent({__name:"file-upload",emits:["on-fileUploadNum"],setup(t,{expose:n,emit:o}){const a=o,{apkConfirmUploadRef:s,onSubmit:l,publicRea:r,customFileSave:i,startUploadingCallback:c,fileShardingCallback:p,dragLevel:d,dialogVisible:f,uploadList:m,loading:u,fileUploadVisible:y,uploadAccept:_,fileTypeList:k,fileType:N,folderId:E,fileList:b,fileUploadList:T,successFileList:V,blobSlice:$,defaultChunkSize:h,fileUploadNumFn:g,onClose:C,show:w,setDialogVisible:D,setPublicRea:S,setCallback:L,fileUploadVersionShow:A,fileUploadAPkShow:j,fileUploadShow:O,fileUploadClose:P,fileUploadSubmit:z,beforeAvatarUpload:U,getData:M,saveData:Y,getFileMd5:F,sliceFile:Q,uploadListRequestFn:ne,handleHttpRequestImg:Te,fileRequestFn:he,findByFileCloudKey:ke,fileListPushFn:Oe,uploadSliceFile:X,uploadPart:v,completeMultipartUpload:ie,mediaFileFn:le,deleteListFn:J,apkConfirmUploadShow:R,deleteFileUpload:G}=eC({emit:a});return e.onMounted(()=>{M()}),n({fileUploadShow:O,fileUploadAPkShow:j,fileUploadVersionShow:A,show:w}),(te,de)=>{const _e=e.resolveComponent("svg-icon"),Ve=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),I=e.resolveComponent("el-icon"),H=e.resolveComponent("el-upload"),ee=e.resolveComponent("el-button"),Ne=e.resolveComponent("el-dialog"),me=e.resolveComponent("el-tooltip"),ue=e.resolveComponent("el-progress"),W=e.resolveDirective("draggable");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(Ne,{"model-value":e.unref(y),"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"w-[420px] !p-0 border-[0] shadow-[0_0_0_0]"},{default:e.withCtx(()=>[e.createVNode($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",nC,[e.createElementVNode("div",oC,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("fileUpload")),1),e.createElementVNode("div",aC,[e.createVNode(_e,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(P),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",sC,[e.createElementVNode("div",lC,[e.createElementVNode("div",rC,e.toDisplayString(e.unref(x)("fileType")),1),e.createVNode(B,{modelValue:e.unref(N),"onUpdate:modelValue":de[0]||(de[0]=K=>e.isRef(N)?N.value=K:null),class:"!w-full",placeholder:e.unref(x)("fileType")},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(K,ce)=>(e.openBlock(),e.createBlock(Ve,{key:ce,label:K.label,value:K.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",iC,[e.createElementVNode("div",cC,e.toDisplayString(e.unref(x)("uploadFiles")),1),e.createElementVNode("div",null,[e.createVNode(H,{"before-upload":e.unref(U),"http-request":e.unref(ne),accept:e.unref(_)[`${e.unref(N)}`],action:"",drag:"","show-file-list":!1,multiple:""},{default:e.withCtx(()=>[e.createElementVNode("div",dC,[e.createVNode(I,{class:"text-[60px] text-hy-text-secondary"},{default:e.withCtx(()=>[e.createVNode(e.unref(Md))]),_:1}),e.createElementVNode("div",pC,[e.createTextVNode(e.toDisplayString(e.unref(x)("dragFilesHereOr")),1),e.createElementVNode("em",null,e.toDisplayString(e.unref(x)("clickToUpload")),1)])])]),_:1},8,["before-upload","http-request","accept"]),e.createElementVNode("ul",fC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(K,ce)=>(e.openBlock(),e.createElementBlock("li",{key:`${ce}uploadList`},[e.createElementVNode("span",mC,e.toDisplayString(K.name),1),e.createVNode(_e,{width:"16",height:"16",name:"icon-close",class:"click-box iconCloseBox clickBox text-hy-danger",onClick:we=>e.unref(J)(ce,e.unref(m))},null,8,["onClick"])]))),128))])])]),e.createElementVNode("div",hC,[e.createVNode(ee,{type:"primary",class:"w-[100px]",onClick:e.unref(P)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("close")),1)]),_:1},8,["onClick"]),e.createVNode(ee,{class:"w-[100px]",onClick:e.unref(z)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("confirm")),1)]),_:1},8,["onClick"])])])])]),_:1})]),_:1},8,["model-value"]),e.createVNode(Ne,{"model-value":e.unref(f),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,modal:!1,draggable:!0,"modal-class":"custom-transparent",class:"w-[300px] !p-0 border-[0] shadow-[0_0_0_0] mr-[100px]",top:"15vh"},{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",uC,[e.createElementVNode("div",_C,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("fileUpload")),1),e.createElementVNode("div",gC,[e.createVNode(_e,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(C),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",yC,[e.createElementVNode("ul",xC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(T),(K,ce)=>(e.openBlock(),e.createElementBlock("li",{key:`${ce}fileUploadList`},[e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",kC,[e.createElementVNode("div",NC,e.toDisplayString(K.fileName),1),K.fileType!==5?(e.openBlock(),e.createElementBlock("div",bC,[e.createVNode(H,{class:"flex items-center justify-center","before-upload":e.unref(U),"http-request":we=>e.unref(Te)(we,K),action:"","show-file-list":!1},{default:e.withCtx(()=>[e.createVNode(me,{placement:"top","open-delay":500,class:"item",effect:"dark",content:e.unref(x)("selectTheSameFileAgainForUploading")},{default:e.withCtx(()=>[K.errorReason?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",CC,[e.createVNode(_e,{width:"16",height:"16",name:"live-broadcast-refresh-v3"})]))]),_:2},1032,["content"])]),_:2},1032,["before-upload","http-request"]),e.createElementVNode("div",wC,[e.createVNode(_e,{width:"16",height:"16",name:"icon-close",class:"text-hy-danger",onClick:we=>e.unref(G)(K.md5)},null,8,["onClick"])])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",EC,[e.createElementVNode("div",SC,e.toDisplayString(K.errorReason||e.unref(x)("uploadFailed")),1),e.createElementVNode("span",null,e.toDisplayString(K.progress)+"%",1)]),e.createVNode(ue,{"show-text":!1,status:"exception","text-inside":!0,"stroke-width":9,percentage:K.progress},null,8,["percentage"])],512),[[e.vShow,K.status==="error"]]),e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",TC,[e.createElementVNode("div",DC,e.toDisplayString(K.fileName),1),VC]),e.createElementVNode("div",$C,[e.createElementVNode("div",BC,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("uploadingPatientWait"))+"…",1)]),e.createElementVNode("span",IC,e.toDisplayString(K.progress)+"%",1)]),e.createVNode(ue,{"show-text":!1,"text-inside":!0,"stroke-width":9,percentage:K.progress},null,8,["percentage"])],512),[[e.vShow,K.status!=="error"]])]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(V),(K,ce)=>(e.openBlock(),e.createElementBlock("li",{key:`${ce}successFileList`},[e.createElementVNode("div",AC,[e.createElementVNode("div",LC,e.toDisplayString(K.fileName),1),e.createElementVNode("div",FC,[e.createVNode(_e,{width:"16",height:"16",class:"text-hy-danger",name:"icon-close",onClick:we=>e.unref(J)(ce,e.unref(V))},null,8,["onClick"])])]),e.createElementVNode("div",OC,[e.createElementVNode("div",RC,[e.createElementVNode("span",null,e.toDisplayString(K.completionTime),1)]),e.createElementVNode("span",PC,e.toDisplayString(e.unref(x)("success")),1)]),e.createVNode(ue,{"show-text":!1,status:"success","text-inside":!0,"stroke-width":9,percentage:100})]))),128)),e.unref(T).length===0&&e.unref(V).length===0?(e.openBlock(),e.createElementBlock("li",MC,[e.createElementVNode("div",UC,[e.createVNode(_e,{name:"base-no-data",class:"!w-[50px] !h-[50px]"}),e.createElementVNode("div",zC,e.toDisplayString(e.unref(x)("noData-3")),1)])])):e.createCommentVNode("",!0)])])])]),_:1})),[[W]])]),_:1},8,["model-value"])])}}}),[["__scopeId","data-v-396f7126"]]);function jC({emit:t,props:n}){const o=e.shallowRef(),a=e.shallowRef(),s=e.ref(),{H:l,POI:r,isShowMap:i,layersUrlList:c,mapConfig:p}=Zt();function d(){i&&e.nextTick(async()=>{const N=He.getCache("userInfo");let E=[];N!=null&&N.lng&&(N!=null&&N.lat)&&(E=[N.lat,N.lng]),E.length===0&&(E=null),o.value=await l.map("selectMapLocation",{maxZoom:p.maxZoom||18,minZoom:p.minZoom||13,zoom:p.zoom||13,center:E,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&&y(n.latlng)}),o.value.on("left-click",b=>{s.value=null,m({lng:b.latlng.lng,lat:b.latlng.lat})})})}async function f(N){const E=await r.placeSearch({keywords:N,offset:10,page:1});if(E){const b=E[0];m({lng:b.lng,lat:b.lat})}else t("on-geographical-position",{})}async function m(N){var b;const E=await r.reverseGeocoder(N);E&&((b=E.address)!=null&&b.length)||Se({type:"warning",message:"未获取到地址信息"}),u({lng:N.lng,lat:N.lat,address:E.formatted_address,name:E.formatted_address,...E})}function u(N){s.value=N,t("on-geographical-position",N),y()}function y(N){a.value&&l.removeMarker(o.value,a.value);let E,b;N?(E=N.lat,b=N.lng):(E=s.value.lat,b=s.value.lng);let T={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:[10,32]};n.markerItemFn&&(T=n.markerItemFn()),l.setView(o.value,[E,b],18),a.value=l.marker(o.value,[E,b],T)}function _(){a.value&&l.removeMarker(o.value,a.value)}function k(N){a.value&&l.updateMarkerIcon(a.value,N)}return{H:l,map:o,POI:r,marker:a,isShowMap:i,initMap:d,geographicalPositionFn:u,throughCoordinatePosition:m,placeSearchFn:f,setContentFn:k,removeMarker:_}}const HC={class:"w-full h-full relative"},YC={key:1,id:"selectMapLocation",ref:"selectMapLocation",class:"w-full h-full"},GC=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:u}=jC({emit:s,props:a});return e.onMounted(()=>{r()}),n({throughCoordinatePosition:i,placeSearchFn:c,setContentFn:p,removeMarker:d,H:f,map:m,POI:u}),(y,_)=>(e.openBlock(),e.createElementBlock("div",HC,[e.unref(l)?(e.openBlock(),e.createElementBlock("div",YC,null,512)):(e.openBlock(),e.createBlock(pn,{key:0,class:"absolute top-0 left-0 z-[2]"}))]))}}),[["__scopeId","data-v-e69b3725"]]);function qC({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 ju({taskId:o.value,deviceUserId:n.value});if(m.code===200){const u=m.data||{};a.value=u||{},a.value.imageList&&(a.value.imageListV2=a.value.imageList.map(y=>y.filePath)),d(0)}}else if(t.formType===2){const m=await Bl({recordId:l.value});if(m.code===200){const u=m.data||{};a.value=u||{},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 KC={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},XC={key:0},JC={key:1},ZC={class:"absolute right-[12px] top-[12px]"},QC={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg relative z-[20]"},vC={style:{height:"500px"},class:"c_fff fs_12 dialog_body text-hy-text-main text-[12px]"},ew={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},tw={class:"information"},nw={class:"flex_vertically_center flex items-center"},ow={style:{"margin-left":"6px"}},aw={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},sw={class:"flex_vertically_center flex items-center"},lw={style:{"margin-left":"6px"}},rw={key:0,class:"type_box success"},iw={key:1,class:"type_box"},cw={class:"form fs_12 text-[12px]"},dw={key:0},pw={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},fw={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"},mw={key:1},hw={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},uw={class:"r-f mb_10 flex_vertically_center flex mb-[10px] items-center"},_w={class:"mr_10 label flex-shrink mr-[10px]"},gw={class:"r-f flex_vertically_center flex items-center"},yw={class:"mr_10 label label_answer flex-shrink mr-[10px]"},xw={key:0,class:"c_theme text-hy-text-primary"},kw={key:1,class:"c_9DA7B2 text-hy-text-secondary"},Nw={key:2},bw={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px]"},Cw={class:"group-item"},ww=["onClick"],Ew={key:0,class:"c-f-i group-content r-f flex"},Sw={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},Tw=["src"],Dw={key:1,style:{"flex-grow":"1"}},Vw={class:"icon-box c-f-i flex"},$w={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},Bw={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},Iw={key:0,class:"information-type"},Aw={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},Lw={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},Fw={key:0,class:"c_9DA7B2 text-hy-text-secondary"},Ow={key:1},Rw={key:1,class:"c-f-i group-content r-f flex"},Pw={style:{"flex-grow":"1"}},Mw={class:"icon-box c-f-i flex"},Uw={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},zw={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},Ww={key:0,class:"information-type"},jw={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},Hw={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},Yw={key:0,class:"c_9DA7B2 text-hy-text-secondary"},Gw={key:1},qw={key:2,class:"c-f-i group-content r-f flex"},Kw={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},Xw=["src"],Jw={key:1,style:{"flex-grow":"1"}},Zw={class:"icon-box c-f-i flex"},Qw={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},vw={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},eE={key:0,class:"information-type"},tE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},nE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},oE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},aE={key:1},sE={key:3},lE={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},rE={class:"group-item"},iE=["onClick"],cE={key:0,class:"c-f-i group-content r-f flex"},dE={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},pE=["src"],fE={key:1,style:{"flex-grow":"1"}},mE={class:"icon-box c-f-i flex"},hE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},uE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},_E={key:0,class:"information-type"},gE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},yE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},xE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},kE={key:1},NE={key:1,class:"c-f-i group-content r-f flex"},bE={style:{"flex-grow":"1"}},CE={class:"icon-box c-f-i flex"},wE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},EE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},SE={key:0,class:"information-type"},TE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},DE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},VE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},$E={key:1},BE={key:2,class:"c-f-i group-content r-f flex"},IE={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},AE=["src"],LE={key:1,style:{"flex-grow":"1"}},FE={class:"icon-box c-f-i"},OE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},RE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},PE={key:0,class:"information-type"},ME={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},UE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},zE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},WE={key:1},Er=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}=qC({props:o});return n({show:s}),(p,d)=>{const f=e.resolveComponent("svg-icon"),m=e.resolveComponent("el-dialog"),u=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.createElementBlock("div",KC,[o.formType===1?(e.openBlock(),e.createElementBlock("span",XC,e.toDisplayString(e.unref(a)("exception")),1)):o.formType===2?(e.openBlock(),e.createElementBlock("span",JC,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",ZC,[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"])])])),[[u]])]),default:e.withCtx(()=>[e.createElementVNode("div",QC,[e.createElementVNode("div",vC,[e.createElementVNode("div",ew,[e.createElementVNode("div",tw,[e.createElementVNode("div",nw,[e.createVNode(f,{style:{width:"14px",height:"14px"},name:"icon-user","class-name":"text-hy-text-main"}),e.createElementVNode("span",ow,[e.createTextVNode(e.toDisplayString(e.unref(r).name),1),e.unref(r).jobNum?(e.openBlock(),e.createElementBlock("span",aw,"("+e.toDisplayString(e.unref(r).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",sw,[e.createVNode(f,{name:"base-every-day-time",class:"w-[16px] h-[16px]"}),e.createElementVNode("span",lw,e.toDisplayString(e.unref(r).executeDtm),1)]),e.unref(r).checkState===1?(e.openBlock(),e.createElementBlock("div",rw,e.toDisplayString(e.unref(a)("normal")),1)):e.unref(r).checkState===2?(e.openBlock(),e.createElementBlock("div",iw,e.toDisplayString(e.unref(a)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",cw,[e.unref(r).dealSituation?(e.openBlock(),e.createElementBlock("div",dw,[e.createElementVNode("div",pw,e.toDisplayString(e.unref(a)("handling")),1),e.createElementVNode("p",fw,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",mw,[e.createElementVNode("div",hw,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,_)=>(e.openBlock(),e.createElementBlock("li",{key:_,class:"border-top ptb_10 p-[10px_0px]"},[e.createElementVNode("div",uw,[e.createElementVNode("p",_w,e.toDisplayString(e.unref(a)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(y.optionTitle),1)]),e.createElementVNode("div",gw,[e.createElementVNode("p",yw,e.toDisplayString(e.unref(a)("answer")),1),y.optionValue?(e.openBlock(),e.createElementBlock("span",xw,e.toDisplayString(y.optionValue),1)):(e.openBlock(),e.createElementBlock("span",kw,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",Nw,[e.createElementVNode("div",bw,e.toDisplayString(e.unref(a)("picture")),1),e.createElementVNode("div",Cw,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).imageList,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,onClick:_=>e.unref(c)(y)},[y.fileType===1?(e.openBlock(),e.createElementBlock("div",Ew,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.filePath&&y.del!==1?(e.openBlock(),e.createElementBlock("div",Sw,[e.createElementVNode("img",{src:y.filePath,class:"h_100vh h-full"},null,8,Tw)])):(e.openBlock(),e.createElementBlock("div",Dw,[e.createElementVNode("div",Vw,[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",$w,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",Bw,[y.type===1?(e.openBlock(),e.createElementBlock("div",Iw,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",Aw,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",Lw," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",Fw,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",Ow,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",Rw,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[e.createElementVNode("div",Pw,[e.createElementVNode("div",Mw,[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",Uw,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",zw,[y.type===1?(e.openBlock(),e.createElementBlock("div",Ww,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",jw,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",Hw," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",Yw,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",Gw,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",qw,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.screenshot1?(e.openBlock(),e.createElementBlock("div",Kw,[e.createElementVNode("img",{src:y.screenshot1,class:"h_100vh h-full"},null,8,Xw)])):(e.openBlock(),e.createElementBlock("div",Jw,[e.createElementVNode("div",Zw,[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",Qw,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",vw,[y.type===1?(e.openBlock(),e.createElementBlock("div",eE,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",tE,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",nE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",oE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",aE,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,ww))),128))])])):e.createCommentVNode("",!0),e.unref(r).videoList&&e.unref(r).videoList.length?(e.openBlock(),e.createElementBlock("div",sE,[e.createElementVNode("div",lE,e.toDisplayString(e.unref(a)("video")),1),e.createElementVNode("div",rE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).videoList,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,onClick:_=>e.unref(c)(y)},[y.fileType===1?(e.openBlock(),e.createElementBlock("div",cE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.filePath&&y.del!==1?(e.openBlock(),e.createElementBlock("div",dE,[e.createElementVNode("img",{src:y.filePath,class:"h_100vh h-full"},null,8,pE)])):(e.openBlock(),e.createElementBlock("div",fE,[e.createElementVNode("div",mE,[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",hE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",uE,[y.type===1?(e.openBlock(),e.createElementBlock("div",_E,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",gE,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",yE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",xE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",kE,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",NE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[e.createElementVNode("div",bE,[e.createElementVNode("div",CE,[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",wE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",EE,[y.type===1?(e.openBlock(),e.createElementBlock("div",SE,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",TE,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",DE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",VE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",$E,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",BE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.screenshot1?(e.openBlock(),e.createElementBlock("div",IE,[e.createElementVNode("img",{src:y.screenshot1,class:"h_100vh h-full"},null,8,AE)])):(e.openBlock(),e.createElementBlock("div",LE,[e.createElementVNode("div",FE,[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",OE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",RE,[y.type===1?(e.openBlock(),e.createElementBlock("div",PE,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",ME,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",UE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",zE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",WE,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,iE))),128))])])):e.createCommentVNode("",!0)])])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-98f845d7"]]);function jE(t){return oe.post({url:"taskAssign/v2/taskItem/select",data:t,isFormData:!0})}function ia(t){return oe.post({url:"taskAssign/v2/taskItemView",data:t,isFormData:!0})}function HE(t){return oe.post({url:"taskAssign/taskExample/select",data:t,isFormData:!0})}function YE({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(N,E)=>{const b=await(t.controller==="taskAssign/taskExample"?HE({id:k}):Mu({id:k}));if(b.code===200){const T=b.data;o.value=[],a.value=[],n.value=T;const V=T.images;V&&V.length&&(o.value=V.split(","));const $=T.videos;$&&$.length&&(a.value=$.split(",").map((h,g)=>({filePath:h,fileName:`任务示例视频${g+1}.${h.split(".").reverse()[0]}`,id:g+1}))),N(0)}})}function u(k={}){m(k.id).then(()=>{s.value=!0})}function y(k){console.log(k),o.value=[],a.value=[],n.value=k;const N=k.images;N&&N.length&&(o.value=N.split(","));const E=k.videos;E&&E.length&&(a.value=E.split(",").map((b,T)=>({filePath:b,fileName:`任务示例视频${T+1}.${b.split(".").reverse()[0]}`,id:T+1}))),s.value=!0,console.log(s.value)}function _(){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:u,taskExampleFn:y,onClose:_,videoPlayerShow:p,videoDialogClose:d,selVideo:c}}const GE={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},qE={class:"absolute right-[12px] top-[12px]"},KE={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg-1 relative z-[20]"},XE={class:"dialog_body"},JE={class:"dialog_body_content lh_20 leading-[20px]"},ZE={class:"mb_20 mb-[20px]"},QE={class:"requiredTitle"},vE={class:"plr_20 p-[0_20px]",style:{"max-height":"200px",overflow:"auto"}},eS=["innerHTML"],tS={key:0,class:"mb_20 mb-[20px]"},nS={class:"requiredTitle"},oS={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},aS={class:"imgBox"},sS={class:"centerBox deleteBox flex items-center justify-center"},lS=["src"],rS={key:1,class:"mb_20 mb-[20px]"},iS={class:"requiredTitle"},cS={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},dS={class:"imgBox"},pS={class:"centerBox deleteBox flex items-center justify-center"},fS={class:"pos_a w_100vh centerBox absolute w-full flex justify-center items-center"},mS={class:"operator-button centerBox mt_20 mt-[20px] flex justify-center items-center"},hS={class:"c_fff activatedImei text-hy-text-main"},uS={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},_S={class:"dialog_body",style:{height:"500px"}},gS={class:"pos_r w_100vh h_100vh w-full h-full relative"},Sr=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:u,videoPlayerShow:y,videoDialogVisible:_,videoDialogClose:k,selVideo:N}=YE({props:o});return n({show:s,taskExampleFn:l}),(E,b)=>{const T=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":b[2]||(b[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.createElementBlock("div",GE,[e.createElementVNode("span",null,e.toDisplayString(e.unref(p).exampleName||e.unref(a)("missionExample")),1),e.createElementVNode("div",qE,[e.createVNode(T,{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"])])])),[[h]])]),default:e.withCtx(()=>[e.createElementVNode("div",KE,[e.createElementVNode("div",XE,[e.createElementVNode("div",JE,[e.createElementVNode("div",ZE,[e.createElementVNode("div",QE,e.toDisplayString(e.unref(a)("sampleContent")),1),e.createElementVNode("div",vE,[e.createElementVNode("div",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(p).exampleContent},null,8,eS)])]),e.unref(f).length?(e.openBlock(),e.createElementBlock("div",tS,[e.createElementVNode("div",nS,e.toDisplayString(e.unref(a)("exampleImage")),1),e.createElementVNode("ul",oS,[(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",aS,[e.createElementVNode("div",sS,[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,lS)])]))),128))])])):e.createCommentVNode("",!0),e.unref(u).length?(e.openBlock(),e.createElementBlock("div",rS,[e.createElementVNode("div",iS,e.toDisplayString(e.unref(a)("exampleVideo")),1),e.createElementVNode("ul",cS,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(g,C)=>(e.openBlock(),e.createElementBlock("li",{key:`${C}videoList`},[e.createElementVNode("div",dS,[e.createElementVNode("div",pS,[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",fS,[e.createVNode(T,{name:"base-video-cover",style:{height:"40px",width:"40px"}})])])]))),128))])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",mS,[e.createVNode(Wo,{ref_key:"hyImageViewerRef",ref:r},null,512),e.createVNode(V,{modelValue:e.unref(_),"onUpdate:modelValue":b[1]||(b[1]=g=>e.isRef(_)?_.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",hS,[e.createElementVNode("div",uS,[e.createTextVNode(e.toDisplayString(e.unref(a)("videoView"))+" ",1),e.createElementVNode("div",{class:"absolute right-[12px] top-[12px] cursor-pointer",onClick:b[0]||(b[0]=e.withModifiers((...g)=>e.unref(k)&&e.unref(k)(...g),["stop"]))},[e.createVNode(T,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",_S,[e.createElementVNode("div",gS,[e.createVNode(oa,{ref_key:"videoPlayerRef",ref:i,"border-color":"transparent",item:e.unref(N),"play-list":e.unref(u)},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"])])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-120cdcda"]]);function yS(){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}=Zt(),m=e.shallowRef(null),u=e.ref([]),y=e.ref([]),_=e.ref(),k=e.ref(),N=e.computed(()=>a.value.findIndex(j=>j.lat&&j.lng)!==-1);function E(A){m.value&&A.lat&&A.lng&&c.setView(m.value,[A.lat,A.lng],18)}function b(){if(!m.value)return;u.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 Y=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}},qg=tr({type:String,values:Pg,required:!1}),Kg=Symbol("size"),Xg=Symbol("emptyValuesContextKey"),Jg=_n({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>Yn(t)?!t():!t}}),pr=Symbol(),Jn=e.ref();function fr(t,n=void 0){const o=e.getCurrentInstance()?e.inject(pr,Jn):Jn;return t?e.computed(()=>{var a,s;return(s=(a=o.value)==null?void 0:a[t])!=null?s:n}):o}function Zg(t,n){const o=fr(),a=ea(t,e.computed(()=>{var i;return((i=o.value)==null?void 0:i.namespace)||Xn})),s=jg(e.computed(()=>{var i;return(i=o.value)==null?void 0:i.locale})),l=Gg(e.computed(()=>{var i;return((i=o.value)==null?void 0:i.zIndex)||ir})),r=e.computed(()=>{var i;return e.unref(n)||((i=o.value)==null?void 0:i.size)||""});return mr(e.computed(()=>e.unref(o)||{})),{ns:a,locale:s,zIndex:l,size:r}}const mr=(t,n,o=!1)=>{var a;const s=!!e.getCurrentInstance(),l=s?fr():void 0,r=(a=n==null?void 0:n.provide)!=null?a:s?e.provide:void 0;if(!r){Kn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const i=e.computed(()=>{const c=e.unref(t);return l!=null&&l.value?Qg(l.value,c):c});return r(pr,i),r(ar,e.computed(()=>i.value.locale)),r(sr,e.computed(()=>i.value.namespace)),r(dr,e.computed(()=>i.value.zIndex)),r(Kg,{size:e.computed(()=>i.value.size||"")}),r(Xg,e.computed(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(o||!Jn.value)&&(Jn.value=i.value),i},Qg=(t,n)=>{const o=[...new Set([...vl(t),...vl(n)])],a={};for(const s of o)a[s]=n[s]!==void 0?n[s]:t[s];return a},vg=_n({a11y:{type:Boolean,default:!0},locale:{type:at(Object)},size:qg,button:{type:at(Object)},experimentalFeatures:{type:at(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:at(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Jg}),ve={};e.defineComponent({name:"ElConfigProvider",props:vg,setup(t,{slots:n}){e.watch(()=>t.message,a=>{Object.assign(ve,a??{})},{immediate:!0,deep:!0});const o=mr(t);return()=>e.renderSlot(n,"default",{config:o==null?void 0:o.value})}});var ta=(t,n)=>{const o=t.__vccOpts||t;for(const[a,s]of n)o[a]=s;return o};const ey=_n({size:{type:at([Number,String])},color:{type:String}}),ty=e.defineComponent({name:"ElIcon",inheritAttrs:!1}),ny=e.defineComponent({...ty,props:ey,setup(t){const n=t,o=ea("icon"),a=e.computed(()=>{const{size:s,color:l}=n;return!s&&!l?{}:{fontSize:Dg(s)?void 0:vo(s),"--color":l}});return(s,l)=>(e.openBlock(),e.createElementBlock("i",e.mergeProps({class:e.unref(o).b(),style:e.unref(a)},s.$attrs),[e.renderSlot(s.$slots,"default")],16))}});var oy=ta(ny,[["__file","icon.vue"]]);const hr=or(oy),ay=_n({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:at([String,Object,Array])},offset:{type:at(Array),default:[0,0]},badgeClass:{type:String}}),sy=e.defineComponent({name:"ElBadge"}),ly=e.defineComponent({...sy,props:ay,setup(t,{expose:n}){const o=t,a=ea("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:vo(-((i=(r=o.offset)==null?void 0:r[0])!=null?i:0)),marginTop:vo((p=(c=o.offset)==null?void 0:c[1])!=null?p:0)},(d=o.badgeStyle)!=null?d:{}]});return n({content:s}),(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a).b())},[e.renderSlot(r.$slots,"default"),e.createVNode(e.Transition,{name:`${e.unref(a).namespace.value}-zoom-in-center`,persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("sup",{class:e.normalizeClass([e.unref(a).e("content"),e.unref(a).em("content",r.type),e.unref(a).is("fixed",!!r.$slots.default),e.unref(a).is("dot",r.isDot),r.badgeClass]),style:e.normalizeStyle(e.unref(l)),textContent:e.toDisplayString(e.unref(s))},null,14,["textContent"]),[[e.vShow,!r.hidden&&(e.unref(s)||r.isDot)]])]),_:1},8,["name"])],2))}});var ry=ta(ly,[["__file","badge.vue"]]);const iy=or(ry),ur=["success","info","warning","error"],Ue=Mg({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:qt?document.body:void 0}),cy=_n({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:Lg,default:Ue.icon},id:{type:String,default:Ue.id},message:{type:at([String,Object,Function]),default:Ue.message},onClose:{type:at(Function),default:Ue.onClose},showClose:{type:Boolean,default:Ue.showClose},type:{type:String,values:ur,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}}),dy={destroy:()=>!0},et=e.shallowReactive([]),py=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}},fy=t=>{const{prev:n}=py(t);return n?n.vm.exposed.bottom.value:0},my=(t,n)=>et.findIndex(a=>a.id===t)>0?16:n,hy=e.defineComponent({name:"ElMessage"}),uy=e.defineComponent({...hy,props:cy,emits:dy,setup(t,{expose:n}){const o=t,{Close:a}=Fg,{ns:s,zIndex:l}=Zg("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"),u=e.computed(()=>{const h=o.type;return{[s.bm("icon",h)]:h&&nr[h]}}),y=e.computed(()=>o.icon||nr[o.type]||""),_=e.computed(()=>fy(o.id)),k=e.computed(()=>my(o.id,o.offset)+_.value),N=e.computed(()=>d.value+k.value),E=e.computed(()=>({top:`${k.value}px`,zIndex:r.value}));function b(){o.duration!==0&&({stop:f}=Ju(()=>{V()},o.duration))}function T(){f==null||f()}function V(){p.value=!1}function $({code:h}){h===Rg.esc&&V()}return e.onMounted(()=>{b(),i(),p.value=!0}),e.watch(()=>o.repeatNum,()=>{T(),b()}),Zu(document,"keydown",$),n_(c,()=>{d.value=c.value.getBoundingClientRect().height}),n({visible:p,bottom:N,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:T,onMouseleave:b},[h.repeatNum>1?(e.openBlock(),e.createBlock(e.unref(iy),{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(hr),{key:1,class:e.normalizeClass([e.unref(s).e("icon"),e.unref(u)])},{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(hr),{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 _y=ta(uy,[["__file","message.vue"]]);let gy=1;const _r=t=>{const n=!t||mn(t)||e.isVNode(t)||Yn(t)?{message:t}:t,o={...Ue,...n};if(!o.appendTo)o.appendTo=document.body;else if(mn(o.appendTo)){let a=document.querySelector(o.appendTo);Vg(a)||(Kn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),o.appendTo=a}return Ql(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),Ql(ve.showClose)&&!o.showClose&&(o.showClose=ve.showClose),o},yy=t=>{const n=et.indexOf(t);if(n===-1)return;et.splice(n,1);const{handler:o}=t;o.close()},xy=({appendTo:t,...n},o)=>{const a=`message_${gy++}`,s=n.onClose,l=document.createElement("div"),r={...n,id:a,onClose:()=>{s==null||s(),yy(d)},onDestroy:()=>{e.render(null,l)}},i=e.createVNode(_y,r,Yn(r.message)||e.isVNode(r.message)?{default:Yn(r.message)?r.message:()=>r.message}:null);i.appContext=o||Jt._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},Jt=(t={},n)=>{if(!qt)return{close:()=>{}};const o=_r(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=xy(o,n);return et.push(a),a.handler};ur.forEach(t=>{Jt[t]=(n={},o)=>{const a=_r(n);return Jt({...a,type:t},o)}});function ky(t){for(const n of et)(!t||t===n.props.type)&&n.handler.close()}Jt.closeAll=ky,Jt._context=null;const Se=Og(Jt,"$message");function Ny({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:"内容错误"}),u=e.computed(()=>{const w=Number(f.value.lng);return w<=180&&w>=-180?w:"内容错误"});function y(){m.value&&m.value!=="内容错误"&&u&&u.value!=="内容错误"&&_(f.value)}function _(w){if(w.lng&&w.lat){t.h.setView(t.map,[w.lat,w.lng],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),b(1)}}function k(w,D){return S=>{if(!s.value)return!1;s.value=!1,setTimeout(()=>{w(S),s.value=!0},D)}}function N(){console.log("触发加载"),!c.value&&(p.value=!0,r.value++,e.nextTick(()=>{T()}))}function E(){n.value=null,f.value={lat:"",lng:""},b()}function b(w){o.value=[],r.value=1,c.value=!1,p.value=!1,a.value!==5&&e.nextTick(()=>{w!==1&&T()})}function T(){n.value&&n.value.length?a.value===1?V():a.value===4?h():a.value===6&&$():b(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,S=[];for(let L=0;L<D.length;L++){const A=D[L];S.push({...A,id:je.buildUUID(),address:A.address||A.name,title:g(A.name)})}e.nextTick(()=>{p.value=!1,o.value.push(...S)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}async function $(){const w=await Pu({page:r.value-1,size:10,query:n.value});if(w.code===200){const D=w.data.content,S=[];if(D!=null&&D.length){for(let L=0;L<D.length;L++){const A=D[L];S.push({id:A.id,address:A.address||A.pointName,...A,title:g(A.pointName)})}e.nextTick(()=>{p.value=!1,o.value.push(...S),r.value===w.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}async function h(){const w=await Hf({page:r.value-1,size:10,query:n.value});if(w.code===200){const D=w.data.content,S=[];if(D!=null&&D.length){for(let L=0;L<D.length;L++){const A=D[L];S.push({id:A.id,address:A.address||A.companyName,...A,title:g(A.companyName)})}e.nextTick(()=>{p.value=!1,o.value.push(...S),r.value===w.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}function g(w){const D=[];for(let S=0;S<w.length;S++){const L=w[S],A=n.value.indexOf(L),j={content:w[S]};A===-1?j.type=1:j.type=2,D.push(j)}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:_,throttle:k,load:N,resetFn:b,searchAddressTypeFn:E,placeholderFn:C,inputSearch:f,showSearchLat:m,showSearchLng:u,searchLngLat:y}}const by={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"},Cy=["src"],wy={class:"ml_10 ml-[10px]",style:{width:"calc(100% - 34px)"}},Ey={class:"title fs_14 c_fff over_one_line fw_600 text-[14px] text-hy-text-main truncate font-bold"},Sy={class:"address over_one_line fs_12 c_fff truncate text-[12px] text-hy-text-main"},Ty={class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"},Dy={class:"ml_20 ml-[20px]"},Vy=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",by,[e.createElementVNode("img",{src:e.unref(l).orgTypeIcon,class:"w-full h-full"},null,8,Cy)])):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",wy,[e.createElementVNode("div",Ey,[(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",Sy,e.toDisplayString(e.unref(l).address),1),e.createElementVNode("div",Ty,[e.createElementVNode("span",null,"经度:"+e.toDisplayString(e.unref(l).lng),1),e.createElementVNode("span",Dy,"维度:"+e.toDisplayString(e.unref(l).lat),1)])])])}}}),[["__scopeId","data-v-393b9954"]]),$y=t=>(e.pushScopeId("data-v-5856b649"),t=t(),e.popScopeId(),t),By={style:{display:"inline-block","flex-direction":"column",width:"300px"},class:"search_lightColor pos_r relative"},Iy={class:"r-f flex"},Ay={class:"flex",style:{width:"calc(100% - 42px)"}},Ly={key:1,class:"w-[58%] flex justify-between ml-[4px]"},Fy={class:"flex flex-col leading-[20px] ml-[10px]"},Oy=$y(()=>e.createElementVNode("span",{class:"text-[14px] font-[600] text-hy-text-main mb-[5px]"},"填写经纬度",-1)),Ry={class:"text-[12px] text-hy-text-secondary"},Py={class:"text-[12px] text-hy-text-secondary"},My={key:2,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},Uy={key:3,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},na=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:u,placeholderFn:y,load:_,throttle:k,searchLngLat:N}=Ny({props:n});return e.onMounted(()=>{var E;a.value=(E=n.searchTypes[0])==null?void 0:E.value}),(E,b)=>{const T=e.resolveComponent("el-option"),V=e.resolveComponent("el-select"),$=e.resolveComponent("el-input"),h=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",By,[e.createElementVNode("div",Iy,[e.createElementVNode("div",Ay,[e.createVNode(V,{modelValue:e.unref(a),"onUpdate:modelValue":b[0]||(b[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(T,{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":b[1]||(b[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:b[2]||(b[2]=e.unref(k)(e.unref(d),1e3))},null,8,["modelValue","placeholder"])):(e.openBlock(),e.createElementBlock("div",Ly,[e.createVNode($,{modelValue:e.unref(r).lng,"onUpdate:modelValue":b[3]||(b[3]=g=>e.unref(r).lng=g),placeholder:"经度",class:"!w-[47.5%]",clearable:"",onInput:b[4]||(b[4]=g=>e.unref(je.onlyNumber)(e.unref(r),"lng"))},null,8,["modelValue"]),e.createVNode($,{modelValue:e.unref(r).lat,"onUpdate:modelValue":b[5]||(b[5]=g=>e.unref(r).lat=g),placeholder:"纬度",class:"!w-[47.5%]",clearable:"",onInput:b[6]||(b[6]=g=>e.unref(je.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:b[7]||(b[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(js),{key:0,"infinite-scroll-disabled":"disabled",class:"filterContentList",style:{height:"400px","overflow-y":"auto"},"data-key":"id","data-sources":e.unref(p),"data-component":Vy,keeps:10,"extra-props":{mapJumpLocationFn:e.unref(u),searchAddressType:e.unref(a)},"estimate-size":88,onTobottom:e.unref(_)},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:b[8]||(b[8]=(...g)=>e.unref(N)&&e.unref(N)(...g))},[e.createVNode(h,{name:"base-maplocation","class-name":"w-[26px] h-[26px] ml-[10px]"}),e.createElementVNode("div",Fy,[Oy,e.createElementVNode("span",Ry,[e.createTextVNode("经度:"),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)==="内容错误"?"text-hy-danger":"")},e.toDisplayString(e.unref(l)||"请输入经度"),3)]),e.createElementVNode("span",Py,[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",My," 加载中... ")):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createElementBlock("p",Uy," 没有更多了 ")):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-5856b649"]]);function Zt(t=je.sessionCache.getCache("mapConfig")){function n(){if(!t){je.logger.warning("use-map","initHyMap","地图配置不能为空");return}const i=Nn.MapProviderFactory.createMapProvider(t.mapType);return new Nn.HyMap(i,t)}function o(){if(!t){je.logger.warning("use-map","initHyPoi","地图配置不能为空");return}const i=Nn.PoiProviderFactory.createMapProvider(t.mapPoiType);return new Nn.HyPoi(i,t)}let a=null,s=null;const l=!!(t.mapKey&&t.mapType);let r=[];return l&&(a=n(),s=o(),t.layersUrl&&(r=t.layersUrl.replace(/\{mapKey\}/g,t.mapKey).split(","))),{H:a,POI:s,isShowMap:l,layersUrlList:r,mapConfig:t}}function zy(t){return oe.post({url:"mapRail/findAllWithDevice",data:t,isFormData:!0})}function Wy(t){return oe.post({url:"mapRail/deleteBatch",data:t,isFormData:!0})}function jy(t){return oe.post({url:t.id?"mapRail/update":"mapRail/insert",data:t,isJson:!0})}function gr(t){return oe.post({url:"mapRail/select",data:t,isFormData:!0})}function Hy(t){const n=t.emit,{mapConfig:o,isShowMap:a,layersUrlList:s,H:l,POI:r}=Zt(),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),u=e.ref(!1),y=e.ref(100),_=e.ref("fixedPoint"),k=e.ref(null),N=e.ref(!1),E=e.shallowRef(null);e.watch(()=>y.value,P=>{y.value=P.replace(/\D/g,"")});function b(P,z){return U=>{if(!m.value)return!1;m.value=!1,setTimeout(()=>{P(U),m.value=!0},z)}}function T(){let P="";_.value==="fixedPoint"?P=x("mouseClicksOnTheMapAndReleasesToEnd"):_.value==="circle"?P=x("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):P=x("mouseClicksOnTheMapAndRightClicksToEnd"),k.value=P}async function V(){const P=He.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:o.satelliteMap}),p.value.on("complete",U=>{var M;if((M=f.value.pointList)!=null&&M.length){const Y=f.value.pointList.map(F=>({lat:F.lat,lng:F.lng}));C(Y)}}),p.value.on("left-click",U=>{D(U)})}function $(){w(),E.value&&(l.removePolygon(p.value,E.value),E.value=null)}function h(){$(),_.value!=="fixedPoint"?g():N.value=!0}function g(){const P={templineStyle:{color:"#2DF2FF"},hintlineStyle:{color:"#2DF2FF",dashArray:[5,5]}};l.pm(p.value,_.value,P,C);let z="";_.value==="circle"?z=x("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):_.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])),console.log(E.value),w()}function w(){p.value&&l.removePM(p.value)}function D(P){if(N.value){const z=l.searchByCircle({lat:P.latlng.lat,lng:P.latlng.lng},y.value/2);C(z),N.value=!1}}async function S(P){const z=await gr({id:P});z.code===200&&(f.value={...z.data},u.value=!0,e.nextTick(()=>{V()}))}function L(P){var z;f.value={},y.value=100,N.value=!1,$(),_.value="fixedPoint",T(),c.value&&((z=c.value)==null||z.resetFields()),P?S(P):(u.value=!0,e.nextTick(()=>{V()}))}function A(){console.log(E.value)}function j(){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 jy(M)).code===200&&(Se.success(`${x("operationSuccessful")} !`),n("on-submit"),u.value=!1)}})}function O(){n("on-close"),u.value=!1}return{addElectronicFenceContainerRef:i,formRef:c,H:l,map:p,POI:r,isShowMap:a,rules:d,form:f,valid:m,dialogVisible:u,radius:y,mouseToolName:_,tips:k,onClose:O,show:L,onSubmit:j,tipsFn:T,initMap:V,mapRailSelectFn:S,throttle:b,startDraw:h,removePolygon:$}}const Yy=t=>(e.pushScopeId("data-v-b8fbad8e"),t=t(),e.popScopeId(),t),Gy={class:"text-hy-text-main"},qy={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]"},Ky={class:"dialog_body"},Xy={class:""},Jy={class:"form-label"},Zy={class:"relative flex flex-row h-[50px]"},Qy={class:"z-[1]"},vy={class:"form-label"},e1={class:"w-full flex items-center form-item"},t1={class:"form-label"},n1={class:"flex items-center form-item"},o1=Yy(()=>e.createElementVNode("span",{class:"text-sm ml-[10px] text-hy-text-secondary flex-shrink"},"M",-1)),a1={class:"flex items-center form-item"},s1={class:"text-xs text-hy-text-secondary flex items-center"},l1={class:"text-hy-main"},r1={class:"text-right mt-[10px]"},i1=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:u,POI:y,isShowMap:_,onClose:k,tipsFn:N,show:E,startDraw:b,removePolygon:T,onSubmit:V}=Hy({emit:a});return n({show:E}),e.onUnmounted(()=>{m.removeMap(u.value)}),($,h)=>{const g=e.resolveComponent("svg-icon"),C=e.resolveComponent("el-input"),w=e.resolveComponent("el-form-item"),D=e.resolveComponent("el-col"),S=e.resolveComponent("el-option"),L=e.resolveComponent("el-select"),A=e.resolveComponent("el-button"),j=$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",Gy,[e.createElementVNode("div",qy,[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",Ky,[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",Xy,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",Jy,e.toDisplayString(e.unref(x)("electronicFenceRange")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",Zy,[e.createElementVNode("div",Qy,[e.unref(_)&&e.unref(u)?(e.openBlock(),e.createBlock(na,{key:0,h:e.unref(m),map:e.unref(u),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",vy,e.toDisplayString(e.unref(x)("drawingMethod")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",e1,[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(N)},{default:e.withCtx(()=>[e.createVNode(S,{label:e.unref(x)("fixedPointRange"),value:"fixedPoint"},null,8,["label"]),e.createVNode(S,{label:e.unref(x)("customCircle"),value:"circle"},null,8,["label"]),e.createVNode(S,{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",t1,e.toDisplayString(e.unref(x)("rangeDistance")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",n1,[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"]),o1])]),_: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",a1,[e.createVNode(A,{class:"button_function",onClick:e.unref(b)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("startDrawing")),1)]),_:1},8,["onClick"]),e.createVNode(A,{type:"danger",class:"",onClick:e.unref(T)},{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(_)?(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",s1,[e.createVNode(O,{class:"text-sm"},{default:e.withCtx(()=>[e.createVNode(j)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("afterClickingToStartDrawing"))+" ",1),e.createElementVNode("span",l1,e.toDisplayString(e.unref(f)),1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"]),e.createElementVNode("div",r1,[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 c1(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 Wy({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 d1={class:"w-full h-full"},p1={class:"flex items-center justify-center"},f1={class:"ml-[6px]"},m1={class:"flex"},h1=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}=c1({emit:a,props:o});return e.onMounted(()=>{r.value={...o.initParams}}),(m,u)=>{const y=e.resolveComponent("svg-icon"),_=e.resolveComponent("el-button"),k=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock("div",d1,[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(_,{type:"success",class:"",onClick:u[0]||(u[0]=N=>e.unref(p)())},{default:e.withCtx(()=>[e.createElementVNode("div",p1,[e.createVNode(y,{width:"16",height:"16",name:"base-add-3"}),e.createElementVNode("span",f1,e.toDisplayString(e.unref(x)("addElectronicFence")),1)])]),_:1}),e.renderSlot(m.$slots,"operator-left-box")])]),mapDisplay:e.withCtx(({row:N})=>[e.createElementVNode("div",null,[e.createVNode(k,{class:"switch_custom switch_width_60","model-value":e.unref(c)(N.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)(N.id,e.unref(c)(N.id))},null,8,["model-value","active-text","inactive-text","onClick"])])]),isDefault:e.withCtx(({row:N})=>[e.renderSlot(m.$slots,"isDefault",{row:N})]),operator:e.withCtx(({row:N})=>[e.createElementVNode("div",m1,[e.createVNode(Me,{name:"icon-edit",tips:e.unref(x)("edit"),onClick:E=>e.unref(p)(N.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)(N.id)},null,8,["tips","onClick"])])]),_:3},8,["search-arr","column-list","search-form"]),e.createVNode(i1,{ref_key:"addElectronicFenceRef",ref:s,onOnSubmit:e.unref(d)},null,8,["onOnSubmit"])])}}});var Ke=(t=>(t.NO_LOAD="NO_LOAD",t.IS_LOAD="IS_LOAD",t.PLAYING="PLAYING",t.PAUSE="PAUSE",t.PLAY_END="PLAY_END",t.CAN_NOT_PLAY="CAN_NOT_PLAY",t))(Ke||{});function u1(t){return oe.post({url:"/mediaFile/location/findAll",data:{mediaFileId:t},isFormData:!0})}function _1(t){return oe.get({url:t,xAmzAcl:!0,isFileUpload:!0,fileType:""})}function yr(t){return oe.post({url:"/mediaFile/getFileScore",data:{id:t},isFormData:!0})}function g1(t){return oe.post({url:"/mediaFile/fileScore",data:t,isJson:!0})}function y1(t){return oe.post({url:"/mediaFile/remark/findAll",data:t,isFormData:!0})}function x1(t){return oe.post({url:"/mediaFile/saveRemark",data:t,isJson:!0})}function xr(t){return oe.post({url:"/mediaFile/remark/deleteBatch",data:t,isFormData:!0})}function k1(t){return oe.post({url:"/mediaFile/point/findAll",data:t,isFormData:!0})}function N1(t){return oe.post({url:"/mediaFile/savePoint",data:t,isJson:!0})}function b1(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref([{value:.5,label:"0.5 X"},{value:1,label:"1.0 X"},{value:1.5,label:"1.5 X"},{value:2,label:"2.0 X"},{value:3,label:"3.0 X"}]),s=e.ref(1),l=e.ref([{value:1,label:x("stopAfterPlayback"),svgName:"media-center-stop-playing"},{value:2,label:x("continuousPlayback"),svgName:"media-center-autoplay"},{value:3,label:x("loopPlayback"),svgName:"media-center-loop-playback"}]),r=e.ref(1),i=e.ref(null),c=e.ref(0),p=e.ref(""),d=e.ref({}),f=e.ref(0),m=e.ref(0),u=e.ref(!1),y=e.ref(Ke.NO_LOAD),_=e.ref(100),k=e.computed(()=>y.value!==Ke.NO_LOAD&&y.value!==Ke.CAN_NOT_PLAY),N=e.computed(()=>o.value.playList.find(U=>U.id===d.value.id));function E(U,M){return new Promise((Y,F)=>{const Q=new XMLHttpRequest;Q.open("GET",M),Q.responseType="blob",Q.onload=function(){const ne=Q.response;Y({name:U,blob:ne})},Q.onerror=function(){console.error("could not download file")},Q.send()})}function b(){d.value&&d.value.id&&(pe.ElMessage.warning(x("startDownloading")),E(d.value.fileName,d.value.filePath).then(U=>{const M=U.blob,Y=new FileReader;Y.readAsDataURL(M),Y.onload=F=>{const Q=URL.createObjectURL(new Blob([M])),ne=document.createElement("a");document.body.appendChild(ne),ne.href=Q,ne.download=U.name,ne.target="_blank",ne.click(),ne.remove()}}))}function T(U){U===3?r.value=1:r.value=U+1}function V(U){s.value=U;const M=document.querySelector("#audio-el");M&&M.playbackRate&&(M.playbackRate=U)}function $(){i.value=document.querySelector("#audio-el"),i.value.addEventListener("canplay",()=>{z(Ke.IS_LOAD),f.value=Math.floor(i.value.duration),n("can-play",f.value)}),i.value.addEventListener("play",()=>{i.value.playbackRate=s.value,z(Ke.PLAYING),p.value&&N.value&&n("play-start",{audioUrl:p.value,playItem:N.value})}),i.value.addEventListener("pause",()=>{z(Ke.PAUSE)}),i.value.addEventListener("volumechange",()=>{_.value=i.value.volume*100}),i.value.addEventListener("ended",()=>{z(Ke.PLAY_END),r.value===2?g().then(()=>{n("play-end")}):r.value===3&&(i.value.load(),i.value.play(),n("play-end"))}),i.value.addEventListener("timeupdate",()=>{z(Ke.PLAYING),!u.value&&i.value&&(m.value=Math.floor(i.value.currentTime),c.value=m.value/f.value*100,n("on-time-update",m.value))},!1)}function h(){return o.value.playList.findIndex(U=>U.id===d.value.id)}function g(){return new Promise((U,M)=>{const Y=h();if(Y!==o.value.playList.length-1){const F=o.value.playList[Y+1];w(F.filePath,F),U({code:200})}else pe.ElMessage.warning(x("currentIsTheLastItem"))})}function C(){const U=h();if(U>0&&U!==o.value.playList.length){const M=o.value.playList[U-1];w(M.filePath,M)}else pe.ElMessage.warning(x("currentIsTheFirstItem"))}function w(U,M){if(M)M.id!==d.value.id&&(p.value="",d.value=M,i.value.src=U,o.value.getAudioContextType?P(M.id):(p.value=U,i.value.play()));else{if(p.value==="")return!1;i.value.play()}}function D(){i.value.play()}function S(){i.value.pause()}function L(){m.value=f.value*(c.value/100),i.value.currentTime=m.value,u.value=!1}function A(){i.value.volume=_.value/100}function j(U,M){return U=Number.parseFloat(`${U}`),M=Number.parseFloat(`${M}`),Number.isNaN(U)||Number.isNaN(M)||M<=0?0:Math.round(U/M*1e4)/100}function O(U){i.value.currentTime=U}async function P(U){const M=await _1(`/mediaFile/redirect?mediaFileId=${U}`);i.value.src=URL.createObjectURL(M),p.value=URL.createObjectURL(M),i.value.play()}function z(U){y.value=U,n("on-audio-state",U)}return{isDrop:u,speedList:a,speed:s,playRuleslist:l,playRules:r,audioEl:i,value:c,audioUrl:p,totalTime:f,curTime:m,audioState:y,volumeValue:_,downloadFn:b,playRulesFn:T,speedFn:V,initPlayer:$,playNext:g,playPrevious:C,playAudio:w,resumePlay:D,pauseAudio:S,getNowWh:L,changeVolume:A,getPercent:j,jumpDuration:O,canPlay:k}}const C1=t=>(e.pushScopeId("data-v-27a5006a"),t=t(),e.popScopeId(),t),w1={class:"w-full flex items-center box-border"},E1=C1(()=>e.createElementVNode("audio",{id:"audio-el"},null,-1)),S1={class:"flex-grow w-0 mx-3 progress-box"},T1={class:"flex justify-between items-center text-xs text-hy-text-secondary mt-1"},D1={class:"flex-shrink-0 flex"},V1={class:"flex items-center justify-center p-[10px_0]"},$1={class:"text-hy-text-secondary text-xs w-full"},B1=["onClick"],I1={class:"flex items-center click-box"},A1={class:"border h-[24px] box-border mr-1 border-hy-border-2 rounded text-xs text-hy-text-secondary px-2 flex items-center justify-center"},L1={class:"click-box"},F1={key:1},O1=["onClick"],R1={class:"click-box mx-1"},P1={class:"flex items-center justify-center"},M1={class:"click-box click-box"},kr=be(e.defineComponent({__name:"audio-player",props:{downloadFilesType:{type:Boolean,default:!0},playRulesType:{type:Boolean,default:!0},getAudioContextType:{type:Boolean,default:!0},playList:{default:()=>[]}},emits:["can-play","play-start","play-end","play-end","on-time-update","on-audio-state"],setup(t,{expose:n,emit:o}){const a=t,s=o,{isDrop:l,speedList:r,speed:i,playRuleslist:c,playRules:p,audioEl:d,value:f,audioUrl:m,totalTime:u,curTime:y,audioState:_,volumeValue:k,downloadFn:N,playRulesFn:E,speedFn:b,initPlayer:T,playNext:V,playPrevious:$,playAudio:h,resumePlay:g,pauseAudio:C,getNowWh:w,changeVolume:D,getPercent:S,jumpDuration:L,canPlay:A}=b1({emit:s,props:a});return e.onBeforeUnmount(()=>{d.value=null}),e.onMounted(()=>{E(3),b(1),T()}),n({jumpDuration:L,resumePlay:g,pauseAudio:C,playAudio:h}),(j,O)=>{const P=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-popover"),U=e.resolveComponent("el-tooltip"),M=e.resolveComponent("el-slider");return e.openBlock(),e.createElementBlock("div",w1,[E1,e.createElementVNode("div",null,[e.createElementVNode("span",{onClick:O[0]||(O[0]=(...Y)=>e.unref($)&&e.unref($)(...Y))},[e.createVNode(P,{width:"26",height:"26",name:"media-center-audio-previous-btn"})]),e.unref(_)!==e.unref(Ke).PLAYING&&e.unref(A)?(e.openBlock(),e.createElementBlock("span",{key:0,class:"mx-1",onClick:O[1]||(O[1]=Y=>e.unref(h)(e.unref(m)))},[e.createVNode(P,{width:"26",height:"26",name:"media-center-audio-play-btn"})])):e.createCommentVNode("",!0),e.unref(_)===e.unref(Ke).PLAYING?(e.openBlock(),e.createElementBlock("span",{key:1,class:"mx-1",onClick:O[2]||(O[2]=(...Y)=>e.unref(C)&&e.unref(C)(...Y))},[e.createVNode(P,{width:"26",height:"26",name:"media-center-audio-pause-btn"})])):e.createCommentVNode("",!0),e.createElementVNode("span",{onClick:O[3]||(O[3]=(...Y)=>e.unref(V)&&e.unref(V)(...Y))},[e.createVNode(P,{width:"26",height:"26",name:"media-center-audio-next-btn"})])]),e.createElementVNode("div",S1,[e.withDirectives(e.createElementVNode("input",{id:"progress",ref:"progressRef","onUpdate:modelValue":O[4]||(O[4]=Y=>e.isRef(f)?f.value=Y:null),max:"100",style:e.normalizeStyle({background:`linear-gradient(to right, var(--hy-main) ${e.unref(S)(e.unref(f),100)}%, var(--hy-main-alpha-50) ${e.unref(S)(e.unref(f),100)}% `}),type:"range",class:"relative w-full",onMouseup:O[5]||(O[5]=Y=>e.unref(w)()),onMousedown:O[6]||(O[6]=Y=>l.value=!0)},null,36),[[e.vModelText,e.unref(f)]]),e.createElementVNode("div",T1,[e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(y)))+'"',1),e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(u)))+'"',1)])]),e.createElementVNode("div",D1,[e.createVNode(z,{placement:"top",width:"62px","popper-class":"!p-0",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",I1,[e.createElementVNode("div",A1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(Y,F)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:F},e.toDisplayString(Y.value===1?e.unref(x)("multiples"):Y.label),1)),[[e.vShow,Y.value===e.unref(i)]])),128))])])]),default:e.withCtx(()=>[e.createElementVNode("div",V1,[e.createElementVNode("ul",$1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(Y,F)=>(e.openBlock(),e.createElementBlock("li",{key:F,class:e.normalizeClass(["click-box h-[26px] flex items-center justify-center hover:text-hy-main hover:bg-hy-page-bg-3",{"text-hy-main bg-hy-page-bg-3":Y.value===e.unref(i)}]),onClick:Q=>e.unref(b)(Y.value)},e.toDisplayString(Y.label),11,B1))),128))])])]),_:1}),j.downloadFilesType?(e.openBlock(),e.createBlock(U,{key:0,effect:"dark",content:e.unref(x)("downloadFile"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",L1,[e.createVNode(P,{width:"26",height:"26",name:"media-center-audio-down-btn",onClick:e.unref(N)},null,8,["onClick"])])]),_:1},8,["content"])):e.createCommentVNode("",!0),j.playRulesType?(e.openBlock(),e.createElementBlock("span",F1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(Y,F)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:`${F}playRuleslist`,onClick:Q=>e.unref(E)(Y.value)},[e.createVNode(U,{effect:"dark",content:Y.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",R1,[e.createVNode(P,{width:"26",height:"26",name:Y.svgName},null,8,["name"])])]),_:2},1032,["content"])],8,O1)),[[e.vShow,e.unref(p)===Y.value]])),128))])):e.createCommentVNode("",!0),e.createVNode(z,{"open-delay":500,placement:"top",trigger:"click",width:"40"},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(U,{effect:"dark",content:e.unref(x)("adjustPlaybackVolume"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",M1,[e.createVNode(P,{width:"26",height:"26",name:"media-center-audio-volumn"})])]),_:1},8,["content"])])]),default:e.withCtx(()=>[e.createElementVNode("div",P1,[e.createVNode(M,{modelValue:e.unref(k),"onUpdate:modelValue":O[7]||(O[7]=Y=>e.isRef(k)?k.value=Y:null),class:"volume-slider",vertical:"",height:"105px",onInput:O[8]||(O[8]=Y=>e.unref(D)())},null,8,["modelValue"])])]),_:1})])])}}}),[["__scopeId","data-v-27a5006a"]]);function U1(t){const n=t.emit,o=e.ref(t.props),a=e.ref([{value:.5,label:"0.5 X"},{value:1,label:"1.0 X"},{value:1.5,label:"1.5 X"},{value:2,label:"2.0 X"},{value:3,label:"3.0 X"}]),s=e.ref(1),l=e.ref([{value:1,label:x("stopAfterPlayback"),svgName:"media-center-stop-playing"},{value:2,label:x("continuousPlayback"),svgName:"media-center-autoplay"},{value:3,label:x("loopPlayback"),svgName:"media-center-loop-playback"}]),r=e.ref(1),i=e.ref({}),c=e.ref(""),p=e.ref(0),d=e.ref(null),f=e.ref("NO_LOAD"),m=e.ref(0),u=e.ref(0),y=e.ref(!1),_=e.ref(!1),k=e.ref(100);e.ref(!1);const N=e.computed(()=>f.value!=="NO_LOAD"&&f.value!=="CAN_NOT_PLAY"),E=e.computed(()=>o.value.playList.find(F=>F.id===i.value.id));function b(F){F===3?r.value=1:r.value=F+1}function T(F){s.value=F;const Q=document.getElementById("videoPlayer");Q&&(Q.playbackRate=F)}function V(){return o.value.playList.findIndex(F=>F.id===i.value.id)}function $(){const F=V();if(F!==o.value.playList.length-1){const Q=o.value.playList[F+1];g(Q.filePath,Q)}else pe.ElMessage.warning(x("currentIsTheLastItem"))}function h(){const F=V();if(F>0&&F!==o.value.playList.length){const Q=o.value.playList[F-1];g(Q.filePath,Q)}else pe.ElMessage.warning(x("currentIsTheFirstItem"))}function g(F,Q){if(Q)Q.id!==i.value.id&&(i.value=Q,c.value=F,d.value.src=F);else if(c.value==="")return!1;d.value.play(),f.value="PLAYING"}function C(F,Q){return new Promise((ne,Te)=>{const he=new XMLHttpRequest;he.open("GET",Q),he.responseType="blob",he.onload=function(){const ke=he.response;ne({name:F,blob:ke})},he.onerror=function(){console.error("could not download file")},he.send()})}function w(){i.value&&i.value.id&&(pe.ElMessage.warning(x("startDownloading")),C(i.value.fileName,i.value.filePath).then(F=>{const Q=F.blob,ne=new FileReader;ne.readAsDataURL(Q),ne.onload=Te=>{const he=URL.createObjectURL(new Blob([Q])),ke=document.createElement("a");document.body.appendChild(ke),ke.href=he,ke.download=F.name,ke.target="_blank",ke.click(),ke.remove()}}))}function D(){d.value.volume=k.value/100}function S(){m.value=u.value*(p.value/100),d.value.currentTime=m.value,y.value=!1}function L(F,Q){return F=Number.parseFloat(F),Q=Number.parseFloat(Q),Number.isNaN(F)||Number.isNaN(Q)||Q<=0?0:Math.round(F/Q*1e4)/100}function A(){d.value.play()}function j(){d.value&&d.value.pause(),f.value="PAUSE"}function O(){d.value=document.querySelector("#videoPlayer"),d.value.addEventListener("canplay",()=>{f.value="IS_LOAD",u.value=Math.floor(d.value.duration),n("can-play",u.value)}),d.value.addEventListener("play",()=>{d.value.playbackRate=s.value,f.value="PLAYING",c.value&&E.value&&n("play-start",{audioUrl:c.value,playItem:E.value})}),d.value.addEventListener("pause",()=>{f.value="PAUSE"}),d.value.addEventListener("ended",()=>{f.value="PLAY_END",r.value===2?$():r.value===3&&(d.value.load(),d.value.play()),n("play-end")}),d.value.addEventListener("timeupdate",()=>{f.value="PLAYING",y.value||(d.value?m.value=Math.floor(d.value.currentTime):setTimeout(()=>{d.value&&(m.value=Math.floor(d.value.currentTime))},1e3),p.value=m.value/u.value*100,n("on-time-update",m.value))},!1)}function P(){document.addEventListener("fullscreenchange",F=>{document.fullscreenElement?_.value=!0:_.value=!1})}function z(F){d.value.currentTime=F}function U(){_.value?Y():M()}function M(){const F=document.documentElement;F.requestFullscreen&&F.requestFullscreen()}function Y(){const F=document;F.exitFullscreen&&F.exitFullscreen()}return{canPlay:N,speedList:a,speed:s,playRuleslist:l,playRules:r,videoUrl:c,value:p,videoEl:d,videoState:f,curTime:m,totalTime:u,isDrop:y,isFullScreen:_,volumeValue:k,playRulesFn:b,speedFn:T,playNext:$,playPrevious:h,playVideo:g,downloadFn:w,changeVolume:D,getNowWh:S,getPercent:L,resumePlay:A,pauseVideo:j,initVideo:O,initFullScreenEvent:P,jumpDuration:z,clickFullScreen:U}}const z1=t=>(e.pushScopeId("data-v-d0d3957a"),t=t(),e.popScopeId(),t),W1={class:"flex-grow h-0 relative"},j1={key:0,class:"absolute right-[10px] top-[4px] z-[2]"},H1={key:0,class:"my-2 click-box"},Y1={key:1},G1=["onClick"],q1={class:"click-box"},K1=z1(()=>e.createElementVNode("video",{id:"videoPlayer",width:"100%",header:"100%"},[e.createElementVNode("source",{type:"video/mp4"})],-1)),X1={class:"progress-box px-2"},J1={class:"my-2 flex items-center justify-between px-2 relative"},Z1={class:"text-xs text-hy-text-secondary"},Q1={key:0,class:"mx-2 flex items-center justify-center absolute left-1/2 -translate-x-1/2"},v1={class:"flex items-center"},ex={class:"flex items-center justify-center p-[10px_0]"},tx={class:"text-hy-text-secondary text-xs w-full"},nx=["onClick"],ox={class:"flex items-center click-box"},ax={class:"border h-[24px] box-border border-hy-border-2 rounded text-xs text-hy-text-secondary px-2 flex items-center justify-center"},sx={class:"flex items-center justify-center"},lx={class:"mx-2"},rx={class:"click-box"},ix={class:"text-hy-info"},oa=be(e.defineComponent({__name:"video-player",props:{downloadFilesType:{type:Boolean,default:!0},playRulesType:{type:Boolean,default:!0},playList:{}},emits:["can-play","play-start","play-end","on-time-update"],setup(t,{expose:n,emit:o}){const a=t,s=o,{canPlay:l,speedList:r,speed:i,playRuleslist:c,playRules:p,videoUrl:d,value:f,videoEl:m,videoState:u,curTime:y,totalTime:_,isDrop:k,isFullScreen:N,volumeValue:E,playRulesFn:b,speedFn:T,playNext:V,playPrevious:$,playVideo:h,downloadFn:g,changeVolume:C,getNowWh:w,getPercent:D,resumePlay:S,pauseVideo:L,initVideo:A,initFullScreenEvent:j,jumpDuration:O,clickFullScreen:P}=U1({emit:s,props:a});return e.onBeforeUnmount(()=>{m.value=null}),e.onMounted(()=>{b(3),T(1),A(),j()}),n({jumpDuration:O,resumePlay:S,pauseVideo:L,playVideo:h}),(z,U)=>{const M=e.resolveComponent("svg-icon"),Y=e.resolveComponent("el-tooltip"),F=e.resolveComponent("el-popover"),Q=e.resolveComponent("el-slider");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([{"fixed top-0 left-0 z-[10]":e.unref(N)},"w-full h-full rounded border border-hy-border-2 flex flex-col bg-hy-page-bg"])},[e.createElementVNode("div",W1,[z.downloadFilesType||z.playRulesType?(e.openBlock(),e.createElementBlock("div",j1,[z.downloadFilesType?(e.openBlock(),e.createElementBlock("div",H1,[e.createVNode(M,{width:"26",height:"26",class:"click-box",name:"media-center-audio-down-btn",onClick:e.unref(g)},null,8,["onClick"])])):e.createCommentVNode("",!0),z.playRulesType?(e.openBlock(),e.createElementBlock("div",Y1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(ne,Te)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:`${Te}playRuleslist`,onClick:he=>e.unref(b)(ne.value)},[e.createVNode(Y,{class:"item click-box",effect:"dark",content:ne.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",q1,[e.createVNode(M,{width:"26",height:"26",name:ne.svgName},null,8,["name"])])]),_:2},1032,["content"])],8,G1)),[[e.vShow,e.unref(p)===ne.value]])),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),K1]),e.createElementVNode("div",X1,[e.withDirectives(e.createElementVNode("input",{id:"progress",ref:"progressRef","onUpdate:modelValue":U[0]||(U[0]=ne=>e.isRef(f)?f.value=ne:null),max:"100",style:e.normalizeStyle({background:`linear-gradient(to right, var(--hy-main) ${e.unref(D)(e.unref(f),100)}%, var(--hy-main-alpha-50) ${e.unref(D)(e.unref(f),100)}% `}),type:"range",class:"relative w-full",onMouseup:U[1]||(U[1]=ne=>e.unref(w)()),onMousedown:U[2]||(U[2]=ne=>k.value=!0)},null,36),[[e.vModelText,e.unref(f)]])]),e.createElementVNode("div",J1,[e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",Z1,[e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(y)))+'"',1),e.createTextVNode("/ "),e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(_)))+'"',1)],512),[[e.vShow,e.unref(_)!==1/0]])]),e.unref(l)?(e.openBlock(),e.createElementBlock("div",Q1,[e.createElementVNode("span",{onClick:U[3]||(U[3]=(...ne)=>e.unref($)&&e.unref($)(...ne))},[e.createVNode(M,{class:"click-box",width:"26",height:"26",name:"media-center-audio-previous-btn"})]),e.unref(u)!=="PLAYING"&&e.unref(l)?(e.openBlock(),e.createElementBlock("span",{key:0,class:"mx-1",onClick:U[4]||(U[4]=ne=>e.unref(h)(e.unref(d)))},[e.createVNode(M,{class:"click-box",width:"26",height:"26",name:"media-center-audio-play-btn"})])):e.createCommentVNode("",!0),e.unref(u)==="PLAYING"?(e.openBlock(),e.createElementBlock("span",{key:1,class:"mx-1",onClick:U[5]||(U[5]=(...ne)=>e.unref(L)&&e.unref(L)(...ne))},[e.createVNode(M,{class:"click-box",width:"26",height:"26",name:"media-center-audio-pause-btn"})])):e.createCommentVNode("",!0),e.createElementVNode("span",{onClick:U[6]||(U[6]=(...ne)=>e.unref(V)&&e.unref(V)(...ne))},[e.createVNode(M,{class:"click-box",width:"26",height:"26",name:"media-center-audio-next-btn"})])])):e.createCommentVNode("",!0),e.createElementVNode("div",v1,[e.createVNode(F,{placement:"top",width:"62px","popper-class":"!p-0",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",ox,[e.createElementVNode("div",ax,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(ne,Te)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:Te},e.toDisplayString(ne.value===1?e.unref(x)("multiples"):ne.label),1)),[[e.vShow,ne.value===e.unref(i)]])),128))])])]),default:e.withCtx(()=>[e.createElementVNode("div",ex,[e.createElementVNode("ul",tx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(ne,Te)=>(e.openBlock(),e.createElementBlock("li",{key:Te,class:e.normalizeClass(["click-box h-[26px] flex items-center justify-center hover:text-hy-main hover:bg-hy-page-bg-3",{"text-hy-main bg-hy-page-bg-3":ne.value===e.unref(i)}]),onClick:he=>e.unref(T)(ne.value)},e.toDisplayString(ne.label),11,nx))),128))])])]),_:1}),e.createVNode(F,{placement:"top",trigger:"click",width:"40px"},{reference:e.withCtx(()=>[e.createElementVNode("div",lx,[e.createVNode(Y,{effect:"dark",content:e.unref(x)("adjustPlaybackVolume"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",rx,[e.createVNode(M,{width:"24",height:"24",name:"media-center-audio-volumn"})])]),_:1},8,["content"])])]),default:e.withCtx(()=>[e.createElementVNode("div",sx,[e.createVNode(Q,{modelValue:e.unref(E),"onUpdate:modelValue":U[7]||(U[7]=ne=>e.isRef(E)?E.value=ne:null),class:"volume-slider",vertical:"",height:"105px",onInput:U[8]||(U[8]=ne=>e.unref(C)())},null,8,["modelValue"])])]),_:1}),e.createVNode(Y,{class:"item click-box",effect:"dark",content:e.unref(x)("fullScreenSwitch"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",ix,[e.createVNode(M,{width:"18",height:"18",class:"click-box",name:e.unref(N)?"media-center-audio-reduce":"media-center-audio-enlarge",onClick:e.unref(P)},null,8,["name","onClick"])])]),_:1},8,["content"])])])],2)}}}),[["__scopeId","data-v-d0d3957a"]]),cx={beforeMount(t,n,o){var c;const a=(c=n.value)==null?void 0:c.change,s=t.querySelector(".hy-dialog_header"),l=t;s.style.cssText+=";cursor:move;";const r=function(){return window.document.currentStyle?(p,d)=>p.currentStyle[d]:(p,d)=>getComputedStyle(p,!1)[d]}(),i=p=>{const d=p.clientX-s.offsetLeft,f=p.clientY-s.offsetTop,m=l.offsetWidth,u=l.offsetHeight,y=document.body.clientWidth,_=document.body.clientHeight,k=l.offsetLeft,N=y-l.offsetLeft-m,E=l.offsetTop,b=_-l.offsetTop-u;let T=r(l,"left"),V=r(l,"top"),$=null,h=null,g=null,C=null;T.includes("%")?(T=+document.body.clientWidth*(+T.replace(/%/g,"")/100),V=+document.body.clientHeight*(+V.replace(/%/g,"")/100)):(T=+T.replace(/\px/g,""),V=+V.replace(/\px/g,""));const w=function(L){let A=L.clientX-d,j=L.clientY-f;-A>k?(A=-k,$="left"):A>N?(A=N,$="right"):$=null,-j>E?(j=-E,g="top"):j>b?(j=b,g="bottom"):g=null,h=A+T,C=j+V,l.style.cssText+=`;left:${h}px;top:${C}px;`},D=function(L){a&&a({left:h,leftType:$,top:C,topType:g}),document.onmousemove=null,document.onmouseup=null};document.onmousemove=w,document.touchmove=w,document.onmouseup=D,document.touchend=D;const S=je.sessionCache.getCache("plus-draggable")||{};Number.parseInt(t.style.zIndex)!==Number.parseInt(S.index)&&(S.index+=1,t.style.zIndex=S.index,je.sessionCache.setCache("plus-draggable",S))};s.onmousedown=i,s.touchstart=i},mounted:t=>{const n=je.sessionCache.getCache("plus-draggable")||{};n.index=n.index?n.index+1:1e3,n.num=n.num?n.num+1:1,t.style.zIndex=n.index,je.sessionCache.setCache("plus-draggable",n)},beforeUnmount:()=>{const t=je.sessionCache.getCache("plus-draggable")||{};t.num=t.num-1,t.num===0&&(t.index=1e3),je.sessionCache.setCache("plus-draggable",t)}},dx={class:"relative w-full h-full"},px=e.createElementVNode("div",{class:"w-full h-full relative z-[1]"},[e.createElementVNode("div",{id:"amap-test",class:"w-full h-full"})],-1),Nr=e.defineComponent({__name:"map-file-track",setup(t,{expose:n}){const o=e.shallowRef(),a=e.shallowRef(),{mapConfig:s,isShowMap:l,layersUrlList:r,H:i}=Zt(),c=e.ref({}),p=e.reactive(je.sessionCache.getCache("userInfo")),d=e.reactive(je.sessionCache.getCache("colorObject")),f=e.ref([]);e.onMounted(async()=>{l&&e.nextTick(()=>{m()})});async function m(){let _=[0,0];p.lng&&p.lat&&(_=[p.lat,p.lng]),o.value=await i.map("amap-test",{maxZoom:s.maxZoom||18,minZoom:s.minZoom||13,zoom:s.zoom||13,center:_,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:r,layerType:s.satelliteMap}),o.value.on("complete",k=>u())}function u(){if(!l||f.value.length===0)return;const _=f.value.map(k=>[k.lat,k.lng]);a.value=i.trackPlayer(o.value,_,{speed:600,weight:6,passedLineColor:d.success||"#9AF454",notPassedLineColor:d.theme||"#A7DDFC",markerRotation:!0,markerRotationOffset:130,iconUrl:"https://webapi.amap.com/images/car.png",iconAnchor:[27,10]}),i.fitBounds(o.value,_)}async function y(_){if(c.value=_,c.value){const k=await u1(c.value.id);if(k.code===200){const N=k.data||[];N&&N.length!==0?f.value=N:c.value.lng&&c.value.lat?f.value=[{lng:c.value.lng,lat:c.value.lat}]:f.value=[],e.nextTick(()=>{u()})}}}return n({setPlayItem:y}),(_,k)=>(e.openBlock(),e.createElementBlock("div",dx,[e.withDirectives(e.createVNode(pn,{ref:"mapNoPermissions",class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(l)]]),px]))}});function fx(t){const n=t.emit,o=e.ref(null),a=e.ref(null),s=e.ref(null),l=e.ref(!1);function r(p,d){return new Promise((f,m)=>{if(!p)return m(new Error(x("fileIDNotPassedIn")));o.value=d||null,a.value=p,s.value=f,e.nextTick(()=>{l.value=!0})})}function i(){l.value=!1,n("on-close")}async function c(){if(!o.value)return pe.ElMessage.error(x("pleaseScoreTheCurrentFile"));const p={fileScore:o.value,ids:[a.value]};(await g1(p)).code===200&&(s.value(o.value),n("on-submit",o.value),pe.ElMessage.success(x("successfulScoring")),l.value=!1)}return{fileScore:o,dialogVisible:l,show:r,onClose:i,onSubmit:c}}const mx={class:"box-border text-hy-text-main el-drag-dialog w-full h-full rounded overflow-hidden border border-hy-main shadow-[0_0_6px_0] shadow-hy-main flex flex-col"},hx={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},ux={class:"absolute right-[10px]"},_x={class:"dialog_body"},gx={class:"text-center m-[20px_0_40px_0]"},yx={class:"flex items-center justify-center mb-[10px] text-sm"},xx={class:"text-hy-text-main mr-[6px]"},kx={class:"text-hy-text-secondary text-xs"},Nx={class:"operator-button flex items-center justify-center mt-[20px]"},aa=e.defineComponent({__name:"file-score",emits:["on-close","on-submit"],setup(t,{expose:n,emit:o}){const a=o,s=e.reactive(He.getCache("colorObject")),l=e.computed(()=>({2:s.auxiliary,3:s.warning,4:s.success,5:s.theme})),{fileScore:r,dialogVisible:i,show:c,onClose:p,onSubmit:d}=fx({emit:a});return n({show:c}),e.onMounted(()=>{}),(f,m)=>{const u=e.resolveComponent("svg-icon"),y=e.resolveComponent("el-rate"),_=e.resolveComponent("el-button"),k=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(k,{"model-value":e.unref(i),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"!p-0 border-[0] shadow-[0_0_0_0] w-[440px]"},{default:e.withCtx(()=>[e.createVNode($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",mx,[e.createElementVNode("div",hx,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("confirmScore")),1),e.createElementVNode("div",ux,[e.createVNode(u,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(p),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",_x,[e.createElementVNode("div",gx,[e.createElementVNode("div",yx,[e.createElementVNode("span",xx,e.toDisplayString(e.unref(x)("confirmAs")),1),e.createVNode(y,{modelValue:e.unref(r),"onUpdate:modelValue":m[0]||(m[0]=N=>e.isRef(r)?r.value=N:null),"void-color":s.main,colors:l.value},null,8,["modelValue","void-color","colors"])]),e.createElementVNode("span",kx,e.toDisplayString(e.unref(x)("noSecondaryModificationAfterScoring")),1)]),e.createElementVNode("div",Nx,[e.createVNode(_,{type:"primary",class:"w-[100px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("close")),1)]),_:1},8,["onClick"]),e.createVNode(_,{class:"w-[100px]",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("confirm")),1)]),_:1},8,["onClick"])])])])]),_:1})]),_:1},8,["model-value"])}}});function bx(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(null),s=e.ref(null),l=e.ref([]),r=e.ref({content:""}),i=e.reactive({content:[{required:!0,message:x("pleaseEnterTheDotName"),trigger:"blur"}]}),c=e.ref(!1),p=e.ref(""),d=e.reactive(He.getCache("userInfo"));function f(){c.value=!1,n("on-close"),r.value={content:""},p.value=""}async function m(){if(o.value.mediaFileId){const b=await k1({mediaFileId:o.value.mediaFileId});b.code===200&&(l.value=b.data,l.value.sort((T,V)=>T.time-V.time))}}function u(){var b;(b=a.value)==null||b.validate(async T=>{if(T){if(r.value.content.trim()==="")return pe.ElMessage.error(x("pleaseEnterTheDotContent")),!1;(await N1({id:r.value.id,content:r.value.content,mediaFileId:o.value.mediaFileId,time:r.value.time||o.value.mediaFileCurTime})).code===200&&(m(),f())}})}function y(b){n("play-point",b.time)}function _(){r.value={},n("on-edit"),c.value=!0}function k(b){r.value=JSON.parse(JSON.stringify(b)),c.value=!0,n("on-edit")}function N(b){p.value=b,n("on-edit"),mt({tipsTitle:x("deleteDot"),tipsContent:`<div class="text-center"><p>${x("deleteDotPositionCannotBeRestored")}</p><p>${x("confirmDeletion")}?</p></div>`,submitBtnText:x("confirm-0")},()=>{E()},()=>{f()})}async function E(){(await xr({ids:p.value})).code===200&&(m(),f())}return{formRef:a,userId:s,pointList:l,form:r,rules:i,dialogVisible:c,deleteIds:p,onClose:f,getData:m,savePoint:u,playPoint:y,addPoint:_,editPoint:k,showDeleteDialog:N,deletePoint:E,userInfo:d}}const sa=t=>(e.pushScopeId("data-v-ae4b4f28"),t=t(),e.popScopeId(),t),Cx={class:"w-full h-full"},wx={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},Ex={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},Sx={class:"text-hy-text-main font-bold text-sm"},Tx={class:"flex items-center justify-center"},Dx={class:"ml-[6px]"},Vx={class:"flex-grow h-0"},$x={class:"h-full flex flex-col"},Bx={class:"p-3 pb-0"},Ix={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col text-xs"},Ax={class:"flex-grow h-0"},Lx={class:"flex items-center justify-between"},Fx={class:"text-hy-text-secondary mr-1"},Ox=sa(()=>e.createElementVNode("span",null,"/",-1)),Rx={key:0,class:"px-3 py-1 text-hy-text-main text-xs flex-grow h-0 overflow-auto"},Px={class:"flex items-center justify-between"},Mx={class:"flex-grow w-0 mr-1 flex items-center"},Ux={class:"ml-2 flex-grow w-0"},zx={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},Wx={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},jx={key:0,class:"flex-shrink-0 flex"},Hx={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},Yx={class:"flex-grow h-0"},Gx={class:"flex items-center justify-between"},qx={class:"text-hy-text-secondary mr-1"},Kx=sa(()=>e.createElementVNode("span",null,"/",-1)),Xx={class:"px-2 mt-3 mb-1 text-xs"},Jx={class:"flex items-center justify-between"},Zx={class:"text-hy-text-secondary mr-1"},Qx=sa(()=>e.createElementVNode("span",null,"/",-1)),vx={class:"flex items-center mt-1"},ek={class:"text-hy-text-secondary mr-1"},tk={class:"flex-grow w-0 ml-1"},nk={key:1,class:"w-full flex-grow h-0 flex items-center justify-center rounded"},ok={class:"text-center text-xs text-hy-text-secondary"},ak={class:"mt-3"},br=be(e.defineComponent({__name:"mark",props:{mediaFileId:{},mediaFileTotalTime:{},mediaFileCurTime:{}},emits:["on-close","play-point","on-edit","on-edit","on-edit"],setup(t,{emit:n}){const o=t,a=n,{formRef:s,userId:l,pointList:r,form:i,rules:c,dialogVisible:p,deleteIds:d,onClose:f,getData:m,savePoint:u,playPoint:y,addPoint:_,editPoint:k,showDeleteDialog:N,deletePoint:E,userInfo:b}=bx({emit:a,props:o});return e.watch(()=>o.mediaFileId,()=>{m()}),e.onMounted(()=>{l.value=b.id}),(T,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-button"),g=e.resolveComponent("el-input"),C=e.resolveComponent("el-form-item"),w=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",Cx,[e.createElementVNode("div",wx,[e.createElementVNode("div",Ex,[e.createElementVNode("div",Sx,e.toDisplayString(e.unref(x)("dotList")),1),e.createElementVNode("div",null,[e.withDirectives(e.createVNode(h,{type:"success",class:"",onClick:V[0]||(V[0]=D=>e.unref(_)())},{default:e.withCtx(()=>[e.createElementVNode("div",Tx,[e.createVNode($,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),e.createElementVNode("span",Dx,e.toDisplayString(e.unref(x)("addDot-0")),1)])]),_:1},512),[[e.vShow,T.mediaFileId]])])]),e.createElementVNode("div",Vx,[e.createVNode(w,{ref_key:"formRef",ref:s,class:"h-full","label-position":"top",model:e.unref(i),rules:e.unref(c),"label-width":"0px"},{default:e.withCtx(()=>[e.createElementVNode("div",$x,[e.withDirectives(e.createElementVNode("div",Bx,[e.createElementVNode("div",Ix,[e.createElementVNode("div",Ax,[e.createVNode(C,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(i).content,"onUpdate:modelValue":V[1]||(V[1]=D=>e.unref(i).content=D),type:"textarea",placeholder:e.unref(x)("pleaseEnterTheDotName"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),e.createElementVNode("div",Lx,[e.createElementVNode("div",null,[e.createElementVNode("span",Fx,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(ot)(Number(e.unref(i).time||o.mediaFileCurTime)))+" ",1),Ox,e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(T.mediaFileTotalTime))),1)])]),e.createElementVNode("div",null,[e.createVNode(h,{type:"primary",onClick:e.unref(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(h,{onClick:e.unref(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("save")),1)]),_:1},8,["onClick"])])])])],512),[[e.vShow,e.unref(p)&&!e.unref(i).id]]),e.unref(r).length?(e.openBlock(),e.createElementBlock("ul",Rx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),D=>(e.openBlock(),e.createElementBlock("li",{key:D.id,class:"bg-hy-page-bg-3 rounded my-2 p-2 box-hy-border-2"},[e.createElementVNode("div",Px,[e.createElementVNode("div",Mx,[e.createVNode(xt,{url:D.remarkUserHeadImg},null,8,["url"]),e.createElementVNode("div",Ux,[e.createElementVNode("p",zx,e.toDisplayString(D.remarkUserName),1),e.createElementVNode("p",Wx,e.toDisplayString(D.remarkUserSerialNum),1)])]),D.remarkUserId===e.unref(l)&&e.unref(i).id!==D.id?(e.openBlock(),e.createElementBlock("div",jx,[e.createVNode(Me,{"class-nmae":"HyRoundButtonV2",name:"media-center-2-audio-play-2",tips:e.unref(x)("play"),onClick:S=>e.unref(y)(D)},null,8,["tips","onClick"]),e.createVNode(Me,{class:"!mx-0","class-nmae":"HyRoundButtonV2",name:"icon-edit",tips:e.unref(x)("edit"),onClick:S=>e.unref(k)(D)},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:S=>e.unref(N)(D.id)},null,8,["tips","onClick"])])):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",Hx,[e.createElementVNode("div",Yx,[e.createVNode(C,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(i).content,"onUpdate:modelValue":V[2]||(V[2]=S=>e.unref(i).content=S),type:"textarea",placeholder:e.unref(x)("pleaseEnterTheDotName"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),e.createElementVNode("div",Gx,[e.createElementVNode("div",null,[e.createElementVNode("span",qx,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(ot)(Number(e.unref(i).time||o.mediaFileCurTime)))+" ",1),Kx,e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(T.mediaFileTotalTime))),1)])]),e.createElementVNode("div",null,[e.createVNode(h,{type:"primary",onClick:e.unref(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(h,{onClick:e.unref(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("save")),1)]),_:1},8,["onClick"])])])],512),[[e.vShow,e.unref(i).id===D.id&&e.unref(p)]]),e.withDirectives(e.createElementVNode("div",Xx,[e.createElementVNode("div",Jx,[e.createElementVNode("div",null,[e.createElementVNode("span",Zx,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(D.time)))+" ",1),Qx,e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(T.mediaFileTotalTime))),1)]),e.createElementVNode("div",null,[e.createElementVNode("p",null,e.toDisplayString(D.updateDtm||D.createDtm),1)])]),e.createElementVNode("div",vx,[e.createElementVNode("span",ek,e.toDisplayString(e.unref(x)("dotName")),1),e.createElementVNode("div",tk,e.toDisplayString(D.content),1)])],512),[[e.vShow,!(e.unref(i).id===D.id&&e.unref(p))]])]))),128))])):(e.openBlock(),e.createElementBlock("div",nk,[e.createElementVNode("div",ok,[e.createVNode($,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),e.createElementVNode("div",ak,e.toDisplayString(e.unref(x)("noData")),1)])]))])]),_:1},8,["model","rules"])])])])}}}),[["__scopeId","data-v-ae4b4f28"]]);function sk(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(null),s=e.ref(null),l=e.ref(!1),r=e.ref({content:""}),i=e.reactive({content:[{required:!0,message:x("pleaseFillInTheRemarks"),trigger:"blur"}]}),c=e.ref([]),p=e.ref(""),d=e.reactive(He.getCache("userInfo"));function f(){l.value=!1,n("on-close"),r.value={content:""}}async function m(){if(o.value.mediaFileId){const b=await y1({mediaFileId:o.value.mediaFileId});b.code===200&&(c.value=b.data,n("on-getData",c.value))}}function u(){var b;(b=a.value)==null||b.clearValidate(),r.value={},n("on-edit"),l.value=!0}function y(){a.value.validate(async b=>{if(b){if(r.value.content==="")return pe.ElMessage.error(x("pleaseEnterTheRemarks")),!1;r.value.mediaFileId=o.value.mediaFileId,(await x1(r.value)).code===200&&(m(),f())}})}function _(b){p.value=b,mt({tipsTitle:x("deleteRemarks"),tipsContent:`<div class="text-center"><p>${x("reminderCannotBeRestoredAfterDeletion")}</p><p>${x("confirmDeletion")}?</p></div>`,submitBtnText:x("confirm-0")},()=>{N()})}function k(){p.value=""}async function N(){(await xr({ids:p.value})).code===200&&(m(),k(),n("on-delete"))}function E(b){var T;(T=a.value)==null||T.clearValidate(),r.value=JSON.parse(JSON.stringify(b)),l.value=!0,n("on-edit")}return{formRef:a,userId:s,dialogVisible:l,form:r,rules:i,markList:c,deleteIds:p,onClose:f,getData:m,addMark:u,onSubmit:y,showDeleteDialog:_,onCloseDeleteMark:k,deleteMark:N,editMark:E,userInfo:d}}const lk={class:"w-full h-full"},rk={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},ik={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},ck={class:"text-hy-text-main font-bold text-sm"},dk={class:"flex items-center justify-center"},pk={class:"ml-[6px]"},fk={class:"flex-grow h-0"},mk={class:"h-full flex flex-col"},hk={class:"p-3 pb-0"},uk={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col"},_k={class:"flex-grow h-0"},gk={class:"h-[40px] flex items-end justify-end"},yk={key:0,class:"px-3 py-1 text-hy-text-main text-xs flex-grow h-0 overflow-auto"},xk={class:"flex items-center justify-between"},kk={class:"flex-grow w-0 mr-1 flex items-center"},Nk={class:"ml-2 flex-grow w-0"},bk={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},Ck={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},wk={key:0,class:"flex-shrink-0 flex items-center"},Ek={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},Sk={class:"flex-grow h-0"},Tk={class:"h-[40px] flex items-end justify-end"},Dk={key:1,class:"w-full flex-grow h-0 flex items-center justify-center rounded"},Vk={class:"text-center text-xs text-hy-text-secondary"},$k={class:"mt-3"},la=e.defineComponent({__name:"remark",props:{mediaFileId:{default:null}},emits:["on-close","on-getData","on-edit","on-delete","on-edit"],setup(t,{emit:n}){const o=t,a=n,{formRef:s,userId:l,dialogVisible:r,form:i,rules:c,markList:p,onClose:d,getData:f,addMark:m,onSubmit:u,showDeleteDialog:y,onCloseDeleteMark:_,deleteMark:k,editMark:N,userInfo:E}=sk({emit:a,props:o});return e.watch(()=>o.mediaFileId,()=>{f()}),e.onMounted(()=>{l.value=E.id}),(b,T)=>{const V=e.resolveComponent("svg-icon"),$=e.resolveComponent("el-button"),h=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),C=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",lk,[e.createElementVNode("div",rk,[e.createElementVNode("div",ik,[e.createElementVNode("div",ck,e.toDisplayString(e.unref(x)("reminderList")),1),e.createElementVNode("div",null,[e.withDirectives(e.createVNode($,{type:"success",class:"",onClick:T[0]||(T[0]=w=>e.unref(m)())},{default:e.withCtx(()=>[e.createElementVNode("div",dk,[e.createVNode(V,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),e.createElementVNode("span",pk,e.toDisplayString(e.unref(x)("addRemarks-0")),1)])]),_:1},512),[[e.vShow,b.mediaFileId]])])]),e.createElementVNode("div",fk,[e.createVNode(C,{ref_key:"formRef",ref:s,class:"h-full","label-position":"top",model:e.unref(i),rules:e.unref(c),"label-width":"0px"},{default:e.withCtx(()=>[e.createElementVNode("div",mk,[e.withDirectives(e.createElementVNode("div",hk,[e.createElementVNode("div",uk,[e.createElementVNode("div",_k,[e.createVNode(g,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(i).content,"onUpdate:modelValue":T[1]||(T[1]=w=>e.unref(i).content=w),type:"textarea",placeholder:e.unref(x)("pleaseFillInTheRemarks"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),e.createElementVNode("div",gk,[e.createVNode($,{type:"primary",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode($,{onClick:e.unref(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("save")),1)]),_:1},8,["onClick"])])])],512),[[e.vShow,e.unref(r)&&!e.unref(i).id]]),e.unref(p).length?(e.openBlock(),e.createElementBlock("ul",yk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),w=>(e.openBlock(),e.createElementBlock("li",{key:w.id,class:"bg-hy-page-bg-3 rounded my-2 p-2 box-hy-border-2"},[e.createElementVNode("div",xk,[e.createElementVNode("div",kk,[e.createVNode(xt,{url:w.remarkUserHeadImg},null,8,["url"]),e.createElementVNode("div",Nk,[e.createElementVNode("p",bk,e.toDisplayString(w.remarkUserName),1),e.createElementVNode("p",Ck,e.toDisplayString(w.remarkUserSerialNum),1)])]),w.remarkUserId===e.unref(l)&&e.unref(i).id!==w.id?(e.openBlock(),e.createElementBlock("div",wk,[e.createVNode(Me,{class:"!mx-0","class-nmae":"HyRoundButtonV2",name:"icon-edit",tips:e.unref(x)("edit"),onClick:D=>e.unref(N)(w)},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:D=>e.unref(y)(w.id)},null,8,["tips","onClick"])])):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",Ek,[e.createElementVNode("div",Sk,[e.createVNode(g,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(i).content,"onUpdate:modelValue":T[2]||(T[2]=D=>e.unref(i).content=D),type:"textarea",placeholder:e.unref(x)("pleaseFillInTheRemarks"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),e.createElementVNode("div",Tk,[e.createVNode($,{type:"primary",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode($,{onClick:e.unref(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("save")),1)]),_:1},8,["onClick"])])],512),[[e.vShow,e.unref(i).id===w.id&&e.unref(r)]]),e.withDirectives(e.createElementVNode("div",{class:"px-2 mt-3 mb-1"},e.toDisplayString(w.content),513),[[e.vShow,!(e.unref(i).id===w.id&&e.unref(r))]])]))),128))])):(e.openBlock(),e.createElementBlock("div",Dk,[e.createElementVNode("div",Vk,[e.createVNode(V,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),e.createElementVNode("div",$k,e.toDisplayString(e.unref(x)("noData")),1)])]))])]),_:1},8,["model","rules"])])])])}}});function Cr(t){const n=t.emit,o=e.ref(Ke.NO_LOAD),a=e.ref(null),s=e.ref(null),l=e.ref(!0),r=e.ref(null),i=e.ref({}),c=e.ref(0),p=e.ref(0),d=e.reactive(He.getCache("colorObject")),f=e.computed(()=>({2:d.auxiliary,3:d.warning,4:d.success,5:d.theme}));function m(){var g;(g=a.value)==null||g.show(i.value.id,r.value).then(C=>{i.value.fileScore=C,r.value=C})}function u(){n("closeDrawer")}function y(){}function _(g){k(g.playItem)}async function k(g){const C=g.id;if(i.value.id!==C){i.value={...g},l.value=!0;const w=await yr(C);w.code===200&&(r.value=w.data,i.value.fileScore=r.value,l.value=!1,e.nextTick(()=>{var D;(D=s.value)==null||D.setPlayItem(i.value)}))}}function N(g){c.value=g}function E(g){p.value=g}function b(){if(t.params.getPlayerRef)return t.params.getPlayerRef()}function T(g){b().jumpDuration(g),b().resumePlay()}function V(){if(t.params.onEditMark){t.params.onEditMark();return}b().pauseAudio()}function $(){b().resumePlay()}function h(g){o.value=g}return{fileScoreRef:a,mapFileTrackRef:s,colorObject:d,colors:f,audioState:o,fileScoreLoading:l,fileScore:r,playItem:i,playerTotalTime:c,audioCurTime:p,fileScoreShow:m,closeDrawer:u,playEnd:y,onPlayStart:_,playStart:k,canPlay:N,onTimeUpdate:E,playPoint:T,onEditMark:V,onEditorClose:$,setAudioState:h}}const ra=t=>(e.pushScopeId("data-v-e67170d8"),t=t(),e.popScopeId(),t),Bk={class:"h-full text-hy-text-main flex flex-col"},Ik={class:"h-[60px] flex justify-between items-center px-5 hy-dialog_header"},Ak={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},Lk={class:"text-hy-danger"},Fk={class:"flex-grow h-0 overflow-y-auto"},Ok={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},Rk={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},Pk={class:"audio-play-icon-box flex"},Mk={class:"relative"},Uk={class:"point_area"},zk={class:"point point_dot relative"},Wk={class:"w-full h-full rounded-full bg-hy-page-bg-2 flex items-center justify-center text-hy-text-main"},jk={class:"duration-1000"},Hk=[ra(()=>e.createElementVNode("div",{class:"point point_10"},null,-1)),ra(()=>e.createElementVNode("div",{class:"point point_40"},null,-1)),ra(()=>e.createElementVNode("div",{class:"point point_shadow point_80"},null,-1))],Yk={key:0,class:"w-full file-info"},Gk={class:"info-item"},qk={class:"info-label"},Kk={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Xk={class:"info-item"},Jk={class:"info-label"},Zk={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Qk={key:0,class:"flex items-center"},vk={key:1,class:"text-hy-text-secondary"},eN={class:"info-item"},tN={class:"info-label"},nN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},oN={class:"info-item"},aN={class:"info-label"},sN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},lN={key:0},rN={key:1},iN={key:2,class:"text-hy-danger"},cN={key:3,class:"text-hy-text-secondary"},dN={class:"info-item"},pN={class:"info-label"},fN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},mN={class:"info-item"},hN={class:"info-label"},uN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},_N={class:"info-item"},gN={class:"info-label"},yN={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},xN={key:1,class:"text-hy-text-secondary"},kN={class:"info-item"},NN={class:"info-label"},bN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},CN={class:"info-item flex items-center text-xs"},wN={class:"info-label"},EN={class:"flex items-center rateBox"},SN={key:0,class:"text-hy-text-secondary"},TN={key:1,class:"text-hy-text-main"},DN={class:"info-item"},VN={class:"info-label"},$N={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},BN={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},IN={class:"mb-1"},AN={class:"w-[60%] flex"},LN={class:"flex-grow w-0 ml-2"},FN={class:"flex-grow w-0 ml-2"},ON=be(e.defineComponent({__name:"audio-details",props:{item:{},playList:{}},emits:["closeDrawer"],setup(t,{emit:n}){const o=t,a=n,s=e.ref(null),{fileScoreRef:l,mapFileTrackRef:r,colorObject:i,colors:c,audioState:p,fileScoreLoading:d,fileScore:f,playItem:m,playerTotalTime:u,audioCurTime:y,fileScoreShow:_,closeDrawer:k,playEnd:N,onPlayStart:E,playStart:b,canPlay:T,onTimeUpdate:V,playPoint:$,onEditMark:h,onEditorClose:g,setAudioState:C}=Cr({emit:a,params:{getPlayerRef:()=>s.value,onEditMark:()=>{s.value.pauseAudio()}}});return e.onBeforeUnmount(()=>{k()}),e.onMounted(()=>{e.nextTick(()=>{m.value={},b(o.item),e.nextTick(()=>{var w;(w=s.value)==null||w.playAudio(o.item.filePath,o.item)})})}),(w,D)=>{const S=e.resolveComponent("svg-icon"),L=e.resolveComponent("el-col"),A=e.resolveComponent("el-rate"),j=e.resolveComponent("el-row"),O=Nr;return e.openBlock(),e.createElementBlock("div",Bk,[e.createVNode(aa,{ref_key:"fileScoreRef",ref:l,onOnClose:D[0]||(D[0]=P=>f.value=null)},null,512),e.createElementVNode("div",Ik,[e.createElementVNode("div",Ak,[e.unref(m).mark?(e.openBlock(),e.createBlock(S,{key:0,width:"16",height:"16",name:"media-center-mark-file",class:"pos_r mr-1"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(e.unref(m).fileName),1)]),e.createElementVNode("div",Lk,[e.createVNode(S,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(k)},null,8,["onClick"])])]),e.createElementVNode("div",Fk,[e.createElementVNode("div",Ok,[e.createElementVNode("div",Rk,[e.createElementVNode("div",Pk,[e.createElementVNode("div",Mk,[e.createElementVNode("div",Uk,[e.createElementVNode("div",zk,[e.createElementVNode("div",Wk,[e.createVNode(S,{width:"60%",height:"60%",name:"menu-micphone--2-select"})])]),e.withDirectives(e.createElementVNode("div",jk,Hk,512),[[e.vShow,e.unref(p)===e.unref(Ke).PLAYING]])])])]),e.unref(m)&&e.unref(m).id?(e.openBlock(),e.createElementBlock("div",Yk,[e.createVNode(j,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:e.withCtx(()=>[e.createVNode(L,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",Gk,[e.createElementVNode("span",qk,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",Kk,e.toDisplayString(e.unref(m).uploadDateStr),1)])]),_:1}),e.createVNode(L,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",Xk,[e.createElementVNode("span",Jk,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",Zk,[e.unref(m).mark?(e.openBlock(),e.createElementBlock("span",Qk,[e.createTextVNode(e.toDisplayString(e.unref(x)("star"))+" ",1),e.createVNode(S,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-[4px] -top-[2px]"})])):(e.openBlock(),e.createElementBlock("span",vk,"-"))])])]),_:1}),e.createVNode(L,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",eN,[e.createElementVNode("span",tN,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",nN,e.toDisplayString(e.unref(m).devUserName),1)])]),_:1}),e.createVNode(L,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",oN,[e.createElementVNode("span",aN,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",sN,[e.unref(m).type===1?(e.openBlock(),e.createElementBlock("span",lN,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(m).type===2?(e.openBlock(),e.createElementBlock("span",rN,e.toDisplayString(e.unref(x)("task")),1)):e.unref(m).type===3?(e.openBlock(),e.createElementBlock("span",iN,"SOS")):(e.openBlock(),e.createElementBlock("span",cN,"-"))])])]),_:1}),e.createVNode(L,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",dN,[e.createElementVNode("span",pN,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",fN,e.toDisplayString(e.unref(m).deviceId),1)])]),_:1}),e.createVNode(L,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",mN,[e.createElementVNode("span",hN,e.toDisplayString(e.unref(x)("audioDuration")),1),e.createElementVNode("span",uN,e.toDisplayString(e.unref(u))+"s ",1)])]),_:1}),e.createVNode(L,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",_N,[e.createElementVNode("span",gN,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(m).expiredDtm?(e.openBlock(),e.createElementBlock("span",yN,e.toDisplayString(e.unref(m).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",xN,"-"))])]),_:1}),e.createVNode(L,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",kN,[e.createElementVNode("span",NN,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",bN,e.toDisplayString(e.unref(Ho)(e.unref(m).fileSize)),1)])]),_:1}),e.withDirectives(e.createVNode(L,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",CN,[e.createElementVNode("span",wN,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",EN,[e.createVNode(A,{modelValue:e.unref(f),"onUpdate:modelValue":D[1]||(D[1]=P=>e.isRef(f)?f.value=P:null),disabled:!!e.unref(m).fileScore,"void-color":e.unref(i).main,"disabled-void-color":e.unref(i).auxiliary,"disabled-void-icon-class":"el-icon-star-off",colors:e.unref(c),onChange:e.unref(_)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),e.unref(m).fileScore?(e.openBlock(),e.createElementBlock("span",SN,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",TN,e.toDisplayString(e.unref(x)("unrated")),1))])])]),_:1},512),[[e.vShow,!e.unref(d)]]),e.createVNode(L,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",DN,[e.createElementVNode("span",VN,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",$N,e.toDisplayString(e.unref(m).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",BN,[e.createVNode(O,{ref_key:"mapFileTrackRef",ref:r},null,512)]),e.createElementVNode("div",IN,[e.createVNode(kr,{ref_key:"audioPlayerRef",ref:s,"play-list":w.playList,onOnTimeUpdate:e.unref(V),onCanPlay:e.unref(T),onPlayEnd:e.unref(N),onPlayStart:e.unref(E),onOnAudioState:e.unref(C)},null,8,["play-list","onOnTimeUpdate","onCanPlay","onPlayEnd","onPlayStart","onOnAudioState"])])]),e.createElementVNode("div",AN,[e.createElementVNode("div",LN,[e.createVNode(la,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":e.unref(m).id,onOnEdit:e.unref(h),onOnClose:e.unref(g)},null,8,["media-file-id","onOnEdit","onOnClose"])]),e.createElementVNode("div",FN,[e.createVNode(br,{class:"bg-hy-page-bg-2","media-file-cur-time":e.unref(y),"media-file-id":e.unref(m).id,"media-file-total-time":e.unref(u),onPlayPoint:e.unref($),onOnEdit:e.unref(h),onOnClose:e.unref(g)},null,8,["media-file-cur-time","media-file-id","media-file-total-time","onPlayPoint","onOnEdit","onOnClose"])])])])])])}}}),[["__scopeId","data-v-e67170d8"]]);function RN(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(null),s=e.ref(null),l=e.ref(!0),r=e.ref(null),i=e.ref(!1),c=e.ref([]),p=e.ref(!1),d=e.ref({});async function f(V){pe.ElMessage.warning(x("fileIsDownloading"));const $=jo(new Date,"Y-M-h D:m:s"),h=await Yo(`/mediaFile/mediaFileZip?mediaFileIds=${V.toString()}`),g=new FileReader;g.readAsDataURL(h),g.onload=C=>{const w=URL.createObjectURL(new Blob([h])),D=document.createElement("a");document.body.appendChild(D),D.href=w,D.download=`${x("fileCompressionPackage_")}${$}.zip`,D.target="_blank",D.click(),D.remove()}}function m(){const V=o.value.playList.findIndex($=>$.id===d.value.id);V!==0?T(o.value.playList[V-1]):pe.ElMessage.warning(x("currentIsTheFirstItem"))}function u(){const V=o.value.playList.findIndex($=>$.id===d.value.id);V!==o.value.playList.length-1?T(o.value.playList[V+1]):pe.ElMessage.warning(x("currentIsTheLastItem"))}function y(){pe.ElMessage.success(x("detectionIsCorrect"))}function _(){a.value.show(d.value.id,r.value).then(V=>{d.value.fileScore=V,r.value=V})}function k(V){i.value=!0,c.value=[],s.value.onShowViewer(V)}function N(){i.value=!1}function E(){n("closeDrawer")}function b(V){console.log("error",V)}async function T(V){const $=V.id;d.value={...V},l.value=!0;const h=await yr($);h.code===200&&(r.value=h.data||null,d.value.fileScore=r.value,l.value=!1)}return{imageViewerRef:s,fileScoreRef:a,fileScoreLoading:l,fileScore:r,imageviewerType:i,imageviewerUrl:c,videoDialogVisible:p,playItem:d,pictureDownloadFn:f,previousSheet:m,nextSheet:u,detectingHashValues:y,fileScoreShow:_,onShowViewer:k,imageviewerClose:N,closeDrawer:E,error:b,playStart:T}}const PN={class:"h-full pic-detail-box flex flex-col"},MN={class:"detail-box flex-shrink-0 hy-dialog_header"},UN={class:"box-header flex flex-row m-0"},zN={class:"flex flex-row left-header-box"},WN={class:"group-hy-info flex items-center text-base font-bold w-full"},jN={key:1,class:"ml-1 flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap"},HN={class:"flex flex-row right-header-box flex-shrink text-hy-danger"},YN={class:"flex-grow h-0 overflow-y-auto"},GN={class:"content flex flex-row h-full min-h-[700px]"},qN={class:"left-content-box relative"},KN=["src"],XN={class:"flex items-center justify-between h-[60px] box-hy-border-2"},JN={class:"text-xs"},ZN={class:"text-xs"},QN={class:"flex items-center"},vN={class:"text-xs text-hy-text-secondary mr-2 flex items-center"},e0={class:"flex items-center justify-center"},t0={class:"ml-1 text-xs"},n0={key:0,class:"w-full file-info mb-[10px]"},o0={class:"info-item"},a0={class:"info-label"},s0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},l0={class:"info-item"},r0={class:"info-label"},i0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},c0={class:"info-item"},d0={class:"info-label"},p0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},f0={class:"info-item"},m0={class:"info-label"},h0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},u0={key:0},_0={key:1},g0={key:2,class:"text-hy-danger"},y0={key:3,class:"text-hy-text-secondary"},x0={class:"info-item"},k0={class:"info-label"},N0={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},b0={key:1,class:"text-hy-text-secondary"},C0={class:"info-item"},w0={class:"info-label"},E0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},S0={key:0,class:"flex items-center"},T0={key:1,class:"text-hy-text-secondary"},D0={class:"info-item"},V0={class:"info-label"},$0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},B0={class:"info-item flex items-center text-xs"},I0={class:"info-label"},A0={class:"flex items-center rateBox"},L0={key:0,class:"text-hy-text-secondary"},F0={key:1,class:"text-hy-text-main"},O0={class:"info-item"},R0={class:"info-label"},P0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},M0={key:0,class:"w-[30%] ml-2 flex-shrink-0 relative"},U0=be(e.defineComponent({__name:"image-details",props:{item:{},playList:{default:()=>[]}},emits:["closeDrawer"],setup(t,{emit:n}){const o=t,a=n,s=e.reactive(He.getCache("colorObject")),l=e.computed(()=>({2:s.auxiliary,3:s.warning,4:s.success,5:s.theme})),{imageViewerRef:r,fileScoreRef:i,fileScoreLoading:c,fileScore:p,playItem:d,pictureDownloadFn:f,previousSheet:m,nextSheet:u,fileScoreShow:y,onShowViewer:_,closeDrawer:k,error:N,playStart:E}=RN({emit:a,props:o});return e.onMounted(()=>{E(o.item)}),(b,T)=>{const V=e.resolveComponent("svg-icon"),$=e.resolveComponent("el-button"),h=e.resolveComponent("el-icon"),g=e.resolveComponent("el-col"),C=e.resolveComponent("el-rate"),w=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",PN,[e.createVNode(aa,{ref_key:"fileScoreRef",ref:i,onOnClose:T[0]||(T[0]=D=>p.value=null)},null,512),e.createElementVNode("div",MN,[e.createElementVNode("div",UN,[e.createElementVNode("div",zN,[e.createElementVNode("div",WN,[e.unref(d).mark?(e.openBlock(),e.createBlock(V,{key:0,width:"16",height:"16",name:"media-center-mark-file",class:"pos_r"})):e.createCommentVNode("",!0),e.unref(d)?(e.openBlock(),e.createElementBlock("div",jN,e.toDisplayString(e.unref(d).fileName),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",HN,[e.createVNode(V,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(k)},null,8,["onClick"])])])]),e.createElementVNode("div",YN,[e.createElementVNode("div",GN,[e.createElementVNode("div",qN,[e.createElementVNode("div",{class:"pic-img relative flex items-center justify-center",onClick:T[1]||(T[1]=D=>e.unref(_)(e.unref(d).filePath))},[e.createElementVNode("img",{src:e.unref(d).filePath,class:"h-full"},null,8,KN)]),e.createElementVNode("div",XN,[e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",null,[e.createVNode($,{type:"primary",class:"",onClick:e.unref(m)},{default:e.withCtx(()=>[e.createElementVNode("span",JN,e.toDisplayString(e.unref(x)("previous")),1)]),_:1},8,["onClick"]),e.createVNode($,{type:"primary",class:"",onClick:e.unref(u)},{default:e.withCtx(()=>[e.createElementVNode("span",ZN,e.toDisplayString(e.unref(x)("next")),1)]),_:1},8,["onClick"])],512),[[e.vShow,o.playList.length>1]])]),e.createElementVNode("div",QN,[e.createElementVNode("p",vN,[e.createVNode(h,{class:"text-sm mr-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(Wd))]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("clickOnTheImageToEnlargeAndView")),1)]),e.createVNode($,{class:"button_function",onClick:T[2]||(T[2]=D=>e.unref(f)(e.unref(d).id))},{default:e.withCtx(()=>[e.createElementVNode("div",e0,[e.createVNode(V,{class:"w-[12px] h-[12px]",name:"media-download"}),e.createElementVNode("span",t0,e.toDisplayString(e.unref(x)("download-0")),1)])]),_:1})])]),e.unref(d)&&e.unref(d).id?(e.openBlock(),e.createElementBlock("div",n0,[e.createVNode(w,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:e.withCtx(()=>[e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",o0,[e.createElementVNode("span",a0,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",s0,e.toDisplayString(e.unref(d).uploadDateStr),1)])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",l0,[e.createElementVNode("span",r0,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",i0,e.toDisplayString(e.unref(Ho)(e.unref(d).fileSize)),1)])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",c0,[e.createElementVNode("span",d0,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",p0,e.toDisplayString(e.unref(d).devUserName),1)])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",f0,[e.createElementVNode("span",m0,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",h0,[e.unref(d).type===1?(e.openBlock(),e.createElementBlock("span",u0,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(d).type===2?(e.openBlock(),e.createElementBlock("span",_0,e.toDisplayString(e.unref(x)("task")),1)):e.unref(d).type===3?(e.openBlock(),e.createElementBlock("span",g0,"SOS")):(e.openBlock(),e.createElementBlock("span",y0,"-"))])])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",x0,[e.createElementVNode("span",k0,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(d).expiredDtm?(e.openBlock(),e.createElementBlock("span",N0,e.toDisplayString(e.unref(d).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",b0,"-"))])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",C0,[e.createElementVNode("span",w0,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",E0,[e.unref(d).mark?(e.openBlock(),e.createElementBlock("span",S0,[e.createTextVNode(e.toDisplayString(e.unref(x)("star"))+" ",1),e.createVNode(V,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-1 -top-[2px]"})])):(e.openBlock(),e.createElementBlock("span",T0,"-"))])])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",D0,[e.createElementVNode("span",V0,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",$0,e.toDisplayString(e.unref(d).deviceId),1)])]),_:1}),e.withDirectives(e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",B0,[e.createElementVNode("span",I0,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",A0,[e.createVNode(C,{modelValue:e.unref(p),"onUpdate:modelValue":T[3]||(T[3]=D=>e.isRef(p)?p.value=D:null),disabled:!!e.unref(d).fileScore,"void-color":s.main,"disabled-void-color":s.auxiliary,"disabled-void-icon-class":"el-icon-star-off",colors:l.value,onChange:e.unref(y)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),e.unref(d).fileScore?(e.openBlock(),e.createElementBlock("span",L0,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",F0,e.toDisplayString(e.unref(x)("unrated")),1))])])]),_:1},512),[[e.vShow,!e.unref(c)]]),e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",O0,[e.createElementVNode("span",R0,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",P0,e.toDisplayString(e.unref(d).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0)]),e.unref(d).id?(e.openBlock(),e.createElementBlock("div",M0,[e.createVNode(la,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":e.unref(d).id},null,8,["media-file-id"])])):e.createCommentVNode("",!0)])]),e.createVNode(Wo,{ref_key:"imageViewerRef",ref:r},null,512)])}}}),[["__scopeId","data-v-04b34f5b"]]),z0={class:"h-full text-hy-text-main flex flex-col"},W0={class:"h-[60px] flex justify-between items-center px-5 hy-dialog_header"},j0={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},H0={class:"text-hy-danger"},Y0={class:"flex-grow h-0 overflow-y-auto"},G0={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},q0={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},K0={class:"h-[240px] video-player-box mt-[20px] flex"},X0={key:0,class:"w-full file-info m-[10px_0]"},J0={class:"info-item"},Z0={class:"info-label"},Q0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},v0={class:"info-item"},eb={class:"info-label"},tb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},nb={key:0,class:"flex items-center"},ob={key:1,class:"text-hy-text-secondary"},ab={class:"info-item"},sb={class:"info-label"},lb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},rb={class:"info-item"},ib={class:"info-label"},cb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},db={class:"info-item"},pb={class:"info-label"},fb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},mb={class:"info-item"},hb={class:"info-label"},ub={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},_b={key:0},gb={key:1},yb={key:2,class:"text-hy-danger"},xb={key:3,class:"text-hy-text-secondary"},kb={class:"info-item"},Nb={class:"info-label"},bb={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Cb={key:1,class:"text-hy-text-secondary"},wb={class:"info-item"},Eb={class:"info-label"},Sb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Tb={class:"info-item flex items-center text-xs"},Db={class:"info-label"},Vb={class:"flex items-center rateBox"},$b={key:0,class:"text-hy-text-secondary"},Bb={key:1,class:"text-hy-text-main"},Ib={class:"info-item"},Ab={class:"info-label"},Lb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Fb={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},Ob={class:"w-[60%] flex"},Rb={class:"flex-grow w-0 ml-2"},Pb={class:"flex-grow w-0 ml-2"},Mb=be(e.defineComponent({__name:"video-details",props:{item:{},playList:{}},emits:["closeDrawer"],setup(t,{emit:n}){const o=t,a=n,s=e.ref(),{fileScoreRef:l,mapFileTrackRef:r,colorObject:i,colors:c,audioState:p,fileScoreLoading:d,fileScore:f,playItem:m,playerTotalTime:u,audioCurTime:y,fileScoreShow:_,closeDrawer:k,playEnd:N,onPlayStart:E,playStart:b,canPlay:T,onTimeUpdate:V,playPoint:$,onEditMark:h,onEditorClose:g,setAudioState:C}=Cr({emit:a,params:{getPlayerRef:()=>s.value,onEditMark:()=>{s.value.pauseVideo()}}});return e.onBeforeUnmount(()=>{k()}),e.onMounted(()=>{e.nextTick(()=>{m.value={},b(o.item),e.nextTick(()=>{var w;(w=s.value)==null||w.playVideo(o.item.filePath,o.item)})})}),(w,D)=>{const S=e.resolveComponent("svg-icon"),L=e.resolveComponent("el-col"),A=e.resolveComponent("el-rate"),j=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",z0,[e.createVNode(aa,{ref_key:"fileScoreRef",ref:l,onOnClose:D[0]||(D[0]=O=>f.value=null)},null,512),e.createElementVNode("div",W0,[e.createElementVNode("div",j0,[e.unref(m).mark?(e.openBlock(),e.createBlock(S,{key:0,width:"16",height:"16",name:"media-center-mark-file",class:"pos_r mr-1"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(e.unref(m).fileName),1)]),e.createElementVNode("div",H0,[e.createVNode(S,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(k)},null,8,["onClick"])])]),e.createElementVNode("div",Y0,[e.createElementVNode("div",G0,[e.createElementVNode("div",q0,[e.createElementVNode("div",K0,[e.createVNode(oa,{ref_key:"videoPlayerRef",ref:s,"play-list":w.playList,onCanPlay:e.unref(T),onOnTimeUpdate:e.unref(V),onPlayStart:e.unref(E)},null,8,["play-list","onCanPlay","onOnTimeUpdate","onPlayStart"])]),e.unref(m)&&e.unref(m).id?(e.openBlock(),e.createElementBlock("div",X0,[e.createVNode(j,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:e.withCtx(()=>[e.createVNode(L,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",J0,[e.createElementVNode("span",Z0,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",Q0,e.toDisplayString(e.unref(m).uploadDateStr),1)])]),_:1}),e.createVNode(L,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",v0,[e.createElementVNode("span",eb,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",tb,[e.unref(m).mark?(e.openBlock(),e.createElementBlock("span",nb,[e.createTextVNode(e.toDisplayString(e.unref(x)("star"))+" ",1),e.createVNode(S,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-[4px] -top-[2px]"})])):(e.openBlock(),e.createElementBlock("span",ob,"-"))])])]),_:1}),e.createVNode(L,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",ab,[e.createElementVNode("span",sb,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",lb,e.toDisplayString(e.unref(m).devUserName),1)])]),_:1}),e.createVNode(L,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",rb,[e.createElementVNode("span",ib,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",cb,e.toDisplayString(e.unref(Ho)(e.unref(m).fileSize)),1)])]),_:1}),e.createVNode(L,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",db,[e.createElementVNode("span",pb,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",fb,e.toDisplayString(e.unref(m).deviceId),1)])]),_:1}),e.createVNode(L,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",mb,[e.createElementVNode("span",hb,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",ub,[e.unref(m).type===1?(e.openBlock(),e.createElementBlock("span",_b,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(m).type===2?(e.openBlock(),e.createElementBlock("span",gb,e.toDisplayString(e.unref(x)("task")),1)):e.unref(m).type===3?(e.openBlock(),e.createElementBlock("span",yb,"SOS")):(e.openBlock(),e.createElementBlock("span",xb,"-"))])])]),_:1}),e.createVNode(L,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",kb,[e.createElementVNode("span",Nb,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(m).expiredDtm?(e.openBlock(),e.createElementBlock("span",bb,e.toDisplayString(e.unref(m).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",Cb,"-"))])]),_:1}),e.createVNode(L,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",wb,[e.createElementVNode("span",Eb,e.toDisplayString(e.unref(x)("videoDuration")),1),e.createElementVNode("span",Sb,e.toDisplayString(e.unref(u))+"s ",1)])]),_:1}),e.withDirectives(e.createVNode(L,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",Tb,[e.createElementVNode("span",Db,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",Vb,[e.createVNode(A,{modelValue:e.unref(f),"onUpdate:modelValue":D[1]||(D[1]=O=>e.isRef(f)?f.value=O:null),disabled:!!e.unref(m).fileScore,"void-color":e.unref(i).main,"disabled-void-color":e.unref(i).auxiliary,"disabled-void-icon-class":"el-icon-star-off",colors:e.unref(c),onChange:e.unref(_)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),e.unref(m).fileScore?(e.openBlock(),e.createElementBlock("span",$b,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",Bb,e.toDisplayString(e.unref(x)("unrated")),1))])])]),_:1},512),[[e.vShow,!e.unref(d)]]),e.createVNode(L,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",Ib,[e.createElementVNode("span",Ab,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",Lb,e.toDisplayString(e.unref(m).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",Fb,[e.createVNode(Nr,{ref_key:"mapFileTrackRef",ref:r},null,512)])]),e.createElementVNode("div",Ob,[e.createElementVNode("div",Rb,[e.createVNode(la,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":e.unref(m).id,onOnEdit:e.unref(h),onOnClose:e.unref(g)},null,8,["media-file-id","onOnEdit","onOnClose"])]),e.createElementVNode("div",Pb,[e.createVNode(br,{class:"bg-hy-page-bg-2","media-file-cur-time":e.unref(y),"media-file-id":e.unref(m).id,"media-file-total-time":e.unref(u),onPlayPoint:e.unref($),onOnEdit:e.unref(h),onOnClose:e.unref(g)},null,8,["media-file-cur-time","media-file-id","media-file-total-time","onPlayPoint","onOnEdit","onOnClose"])])])])])])}}}),[["__scopeId","data-v-e7e174d1"]]),Ub={key:0,class:"fixed top-[10%] left-[25%]"},zb={class:"!p-0 !w-[1200px]"},Wb={class:"h-[780px] px-1 box-border bg-hy-page-bg-2 text-hy-text-main el-drag-dialog rounded overflow-hidden border border-hy-main shadow-[0_0_6px_0] shadow-hy-main flex flex-col"},jb=e.defineComponent({__name:"file-details",setup(t,{expose:n}){const o=cx,a=e.ref(!1),s=e.ref(!1),l=e.ref(1),r=e.ref({}),i=e.ref([]);function c(){a.value=!1,console.log("closeDrawer")}function p(d){a.value=!0,s.value=d.draggable,l.value=d.curMediaType,r.value=d.curItem,i.value=d.playList||[]}return e.onMounted(()=>{}),n({show:p}),(d,f)=>e.unref(a)?e.withDirectives((e.openBlock(),e.createElementBlock("div",Ub,[e.createElementVNode("div",zb,[e.createVNode($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",Wb,[e.unref(l)===2?(e.openBlock(),e.createBlock(ON,{key:0,item:e.unref(r),"play-list":e.unref(i),onCloseDrawer:c},null,8,["item","play-list"])):e.unref(l)===3?(e.openBlock(),e.createBlock(Mb,{key:1,item:e.unref(r),"play-list":e.unref(i),onCloseDrawer:c},null,8,["item","play-list"])):e.unref(l)===4?(e.openBlock(),e.createBlock(U0,{key:2,item:e.unref(r),"play-list":e.unref(i),onCloseDrawer:c},null,8,["item","play-list"])):e.createCommentVNode("",!0)])]),_:1})])])),[[e.unref(o)]]):e.createCommentVNode("",!0)}});function Hb(t){return oe.post({url:"/file/abortMultipartUpload",data:t,showLoading:!1,isJson:!0})}function Yb(t){return oe.post({url:"/file/multipartUploadAuth",data:t,showLoading:!1,isFormData:!0})}function Gb(t){return oe.post({url:"/file/completeMultipartUpload",data:t,showLoading:!1,isJson:!0})}function qb(t){return oe.post({url:"/mediaFile/mediaFile/save",data:t,showLoading:!1,isJson:!0})}function Kb(t){return oe.post({url:"/mediaFile/findByFileCloudKey",data:{fileCloudKey:t},showLoading:!1,isFormData:!0})}const Xb="/admin",Jb=new Nl({baseURL:`${He.getCache("host")||""}${Xb}`,timeout:Hs,headers:{"Content-Type":ct.JSON},interceptors:{requestSuccessFn:t=>{const n=He.getCache("userInfo");return t.headers.token=n==null?void 0:n.token,t.headers&&t.isJson?t.headers["Content-Type"]=ct.JSON:t.headers&&t.isFormData?t.headers["Content-Type"]=ct.FORM_DATA:t.headers&&t.isFileUpload&&(t.responseType="blob",t.headers["Content-Type"]=ct.FILE_UPLOAD),t.headers&&t.xAmzAcl&&(t.headers["Content-Type"]=t.fileType,t.headers["x-amz-acl"]="public-read"),t},requestFailureFn:t=>t,responseSuccessFn:t=>t.headers.etag?t.headers.etag:t.data,responseFailureFn:t=>t}});var wr={exports:{}};(function(t,n){(function(o){t.exports=o()})(function(o){var a=function(h,g){return h+g&4294967295},s=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function l(h,g,C,w,D,S){return g=a(a(g,h),a(w,S)),a(g<<D|g>>>32-D,C)}function r(h,g,C,w,D,S,L){return l(g&C|~g&w,h,g,D,S,L)}function i(h,g,C,w,D,S,L){return l(g&w|C&~w,h,g,D,S,L)}function c(h,g,C,w,D,S,L){return l(g^C^w,h,g,D,S,L)}function p(h,g,C,w,D,S,L){return l(C^(g|~w),h,g,D,S,L)}function d(h,g){var C=h[0],w=h[1],D=h[2],S=h[3];C=r(C,w,D,S,g[0],7,-680876936),S=r(S,C,w,D,g[1],12,-389564586),D=r(D,S,C,w,g[2],17,606105819),w=r(w,D,S,C,g[3],22,-1044525330),C=r(C,w,D,S,g[4],7,-176418897),S=r(S,C,w,D,g[5],12,1200080426),D=r(D,S,C,w,g[6],17,-1473231341),w=r(w,D,S,C,g[7],22,-45705983),C=r(C,w,D,S,g[8],7,1770035416),S=r(S,C,w,D,g[9],12,-1958414417),D=r(D,S,C,w,g[10],17,-42063),w=r(w,D,S,C,g[11],22,-1990404162),C=r(C,w,D,S,g[12],7,1804603682),S=r(S,C,w,D,g[13],12,-40341101),D=r(D,S,C,w,g[14],17,-1502002290),w=r(w,D,S,C,g[15],22,1236535329),C=i(C,w,D,S,g[1],5,-165796510),S=i(S,C,w,D,g[6],9,-1069501632),D=i(D,S,C,w,g[11],14,643717713),w=i(w,D,S,C,g[0],20,-373897302),C=i(C,w,D,S,g[5],5,-701558691),S=i(S,C,w,D,g[10],9,38016083),D=i(D,S,C,w,g[15],14,-660478335),w=i(w,D,S,C,g[4],20,-405537848),C=i(C,w,D,S,g[9],5,568446438),S=i(S,C,w,D,g[14],9,-1019803690),D=i(D,S,C,w,g[3],14,-187363961),w=i(w,D,S,C,g[8],20,1163531501),C=i(C,w,D,S,g[13],5,-1444681467),S=i(S,C,w,D,g[2],9,-51403784),D=i(D,S,C,w,g[7],14,1735328473),w=i(w,D,S,C,g[12],20,-1926607734),C=c(C,w,D,S,g[5],4,-378558),S=c(S,C,w,D,g[8],11,-2022574463),D=c(D,S,C,w,g[11],16,1839030562),w=c(w,D,S,C,g[14],23,-35309556),C=c(C,w,D,S,g[1],4,-1530992060),S=c(S,C,w,D,g[4],11,1272893353),D=c(D,S,C,w,g[7],16,-155497632),w=c(w,D,S,C,g[10],23,-1094730640),C=c(C,w,D,S,g[13],4,681279174),S=c(S,C,w,D,g[0],11,-358537222),D=c(D,S,C,w,g[3],16,-722521979),w=c(w,D,S,C,g[6],23,76029189),C=c(C,w,D,S,g[9],4,-640364487),S=c(S,C,w,D,g[12],11,-421815835),D=c(D,S,C,w,g[15],16,530742520),w=c(w,D,S,C,g[2],23,-995338651),C=p(C,w,D,S,g[0],6,-198630844),S=p(S,C,w,D,g[7],10,1126891415),D=p(D,S,C,w,g[14],15,-1416354905),w=p(w,D,S,C,g[5],21,-57434055),C=p(C,w,D,S,g[12],6,1700485571),S=p(S,C,w,D,g[3],10,-1894986606),D=p(D,S,C,w,g[10],15,-1051523),w=p(w,D,S,C,g[1],21,-2054922799),C=p(C,w,D,S,g[8],6,1873313359),S=p(S,C,w,D,g[15],10,-30611744),D=p(D,S,C,w,g[6],15,-1560198380),w=p(w,D,S,C,g[13],21,1309151649),C=p(C,w,D,S,g[4],6,-145523070),S=p(S,C,w,D,g[11],10,-1120210379),D=p(D,S,C,w,g[2],15,718787259),w=p(w,D,S,C,g[9],21,-343485551),h[0]=a(C,h[0]),h[1]=a(w,h[1]),h[2]=a(D,h[2]),h[3]=a(S,h[3])}function f(h){var g=[],C;for(C=0;C<64;C+=4)g[C>>2]=h.charCodeAt(C)+(h.charCodeAt(C+1)<<8)+(h.charCodeAt(C+2)<<16)+(h.charCodeAt(C+3)<<24);return g}function m(h){var g=[],C;for(C=0;C<64;C+=4)g[C>>2]=h[C]+(h[C+1]<<8)+(h[C+2]<<16)+(h[C+3]<<24);return g}function u(h){var g=h.length,C=[1732584193,-271733879,-1732584194,271733878],w,D,S,L,A,j;for(w=64;w<=g;w+=64)d(C,f(h.substring(w-64,w)));for(h=h.substring(w-64),D=h.length,S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<D;w+=1)S[w>>2]|=h.charCodeAt(w)<<(w%4<<3);if(S[w>>2]|=128<<(w%4<<3),w>55)for(d(C,S),w=0;w<16;w+=1)S[w]=0;return L=g*8,L=L.toString(16).match(/(.*?)(.{0,8})$/),A=parseInt(L[2],16),j=parseInt(L[1],16)||0,S[14]=A,S[15]=j,d(C,S),C}function y(h){var g=h.length,C=[1732584193,-271733879,-1732584194,271733878],w,D,S,L,A,j;for(w=64;w<=g;w+=64)d(C,m(h.subarray(w-64,w)));for(h=w-64<g?h.subarray(w-64):new Uint8Array(0),D=h.length,S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<D;w+=1)S[w>>2]|=h[w]<<(w%4<<3);if(S[w>>2]|=128<<(w%4<<3),w>55)for(d(C,S),w=0;w<16;w+=1)S[w]=0;return L=g*8,L=L.toString(16).match(/(.*?)(.{0,8})$/),A=parseInt(L[2],16),j=parseInt(L[1],16)||0,S[14]=A,S[15]=j,d(C,S),C}function _(h){var g="",C;for(C=0;C<4;C+=1)g+=s[h>>C*8+4&15]+s[h>>C*8&15];return g}function k(h){var g;for(g=0;g<h.length;g+=1)h[g]=_(h[g]);return h.join("")}k(u("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(a=function(h,g){var C=(h&65535)+(g&65535),w=(h>>16)+(g>>16)+(C>>16);return w<<16|C&65535}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function h(g,C){return g=g|0||0,g<0?Math.max(g+C,0):Math.min(g,C)}ArrayBuffer.prototype.slice=function(g,C){var w=this.byteLength,D=h(g,w),S=w,L,A,j,O;return C!==o&&(S=h(C,w)),D>S?new ArrayBuffer(0):(L=S-D,A=new ArrayBuffer(L),j=new Uint8Array(A),O=new Uint8Array(this,D,L),j.set(O),A)}}();function N(h){return/[\u0080-\uFFFF]/.test(h)&&(h=unescape(encodeURIComponent(h))),h}function E(h,g){var C=h.length,w=new ArrayBuffer(C),D=new Uint8Array(w),S;for(S=0;S<C;S+=1)D[S]=h.charCodeAt(S);return g?D:w}function b(h){return String.fromCharCode.apply(null,new Uint8Array(h))}function T(h,g,C){var w=new Uint8Array(h.byteLength+g.byteLength);return w.set(new Uint8Array(h)),w.set(new Uint8Array(g),h.byteLength),C?w:w.buffer}function V(h){var g=[],C=h.length,w;for(w=0;w<C-1;w+=2)g.push(parseInt(h.substr(w,2),16));return String.fromCharCode.apply(String,g)}function $(){this.reset()}return $.prototype.append=function(h){return this.appendBinary(N(h)),this},$.prototype.appendBinary=function(h){this._buff+=h,this._length+=h.length;var g=this._buff.length,C;for(C=64;C<=g;C+=64)d(this._hash,f(this._buff.substring(C-64,C)));return this._buff=this._buff.substring(C-64),this},$.prototype.end=function(h){var g=this._buff,C=g.length,w,D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],S;for(w=0;w<C;w+=1)D[w>>2]|=g.charCodeAt(w)<<(w%4<<3);return this._finish(D,C),S=k(this._hash),h&&(S=V(S)),this.reset(),S},$.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},$.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},$.prototype.setState=function(h){return this._buff=h.buff,this._length=h.length,this._hash=h.hash,this},$.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},$.prototype._finish=function(h,g){var C=g,w,D,S;if(h[C>>2]|=128<<(C%4<<3),C>55)for(d(this._hash,h),C=0;C<16;C+=1)h[C]=0;w=this._length*8,w=w.toString(16).match(/(.*?)(.{0,8})$/),D=parseInt(w[2],16),S=parseInt(w[1],16)||0,h[14]=D,h[15]=S,d(this._hash,h)},$.hash=function(h,g){return $.hashBinary(N(h),g)},$.hashBinary=function(h,g){var C=u(h),w=k(C);return g?V(w):w},$.ArrayBuffer=function(){this.reset()},$.ArrayBuffer.prototype.append=function(h){var g=T(this._buff.buffer,h,!0),C=g.length,w;for(this._length+=h.byteLength,w=64;w<=C;w+=64)d(this._hash,m(g.subarray(w-64,w)));return this._buff=w-64<C?new Uint8Array(g.buffer.slice(w-64)):new Uint8Array(0),this},$.ArrayBuffer.prototype.end=function(h){var g=this._buff,C=g.length,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],D,S;for(D=0;D<C;D+=1)w[D>>2]|=g[D]<<(D%4<<3);return this._finish(w,C),S=k(this._hash),h&&(S=V(S)),this.reset(),S},$.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},$.ArrayBuffer.prototype.getState=function(){var h=$.prototype.getState.call(this);return h.buff=b(h.buff),h},$.ArrayBuffer.prototype.setState=function(h){return h.buff=E(h.buff,!0),$.prototype.setState.call(this,h)},$.ArrayBuffer.prototype.destroy=$.prototype.destroy,$.ArrayBuffer.prototype._finish=$.prototype._finish,$.ArrayBuffer.hash=function(h,g){var C=y(new Uint8Array(h)),w=k(C);return g?V(w):w},$})})(wr);var Zb=wr.exports;const Qb=nl(Zb);class vb{md5(n,o,a){this.aborted=!1,this.progress=0;let s=0;const l=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,r=2097152,i=Math.ceil(n.size/r),c=new Qb.ArrayBuffer,p=new FileReader;d(),p.onloadend=f=>{if(c.append(f.target.result),s++,this.progress=s/i,a&&typeof a=="function"&&a(this.progress),this.aborted){o("aborted");return}s<i?d():o(null,c.end())};function d(){const f=s*r,m=f+r>=n.size?n.size:f+r;p.readAsArrayBuffer(l.call(n,f,m))}}abort(){this.aborted=!0}}function eC(t){const n=t.emit,o=e.ref(null),a=e.ref(null),s=e.ref(null),l=e.ref(null),r=e.ref(null),i=e.ref(!1),c=e.ref(0),p=e.ref(!1),d=e.ref([]),f=e.ref(!1),m=e.ref(!1),u=e.ref({1:".png,.jpg,.gif",2:".mp4",4:".mp3,.aac",5:".apk",6:".zip"}),y=e.ref([{label:x("imageFiles"),value:1},{label:x("videoFile"),value:2},{label:x("audioFiles"),value:4},{label:`APK${x("upgradePackage")}`,value:5},{label:x("softwarePackage"),value:6}]),_=e.ref([]),k=e.ref(null),N=e.ref(null),E=e.ref([]),b=e.ref([]),T=e.ref(File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice),V=e.ref(1024*1024*5);function $(){n("on-fileUploadNum",_.value.length)}function h(){p.value=!1}function g(){C(!0)}function C(R){p.value=R}function w(R){i.value=R}function D(R){l.value=R.startUploadingCallback||null,r.value=R.fileShardingCallback||null,a.value=R.onSubmit||null}function S(R,G){if(y.value=[{label:x("softwarePackage"),value:6}],k.value=6,s.value=G||null,D(R),f.value)return pe.ElMessage.error(x("fileReadingInProgressPleaseWait"));d.value=[],m.value=!0}function L(R,G){if(y.value=[{label:`APK${x("upgradePackage")}`,value:5}],k.value=5,s.value=G||null,D(R),f.value)return pe.ElMessage.error(x("fileReadingInProgressPleaseWait"));d.value=[],m.value=!0}function A(R,G){y.value=[{label:x("imageFiles"),value:1},{label:x("videoFile"),value:2},{label:x("audioFiles"),value:4}];const te=R.folderId;if(te){if(s.value=G||null,D({}),N.value=te,D(R),f.value)return pe.ElMessage.error(x("fileReadingInProgressPleaseWait"));k.value=2,d.value=[],m.value=!0}}function j(){w(!1),m.value=!1}function O(){if(d.value.length===0)return pe.ElMessage.error(x("pleaseSelectAFile"));d.value.length>1&&pe.ElMessage.warning(x("pleaseWaitForTheFilesToBeUploadedInSequence")),m.value=!1,g(),f.value=!0,l.value&&l.value();const R=(G,te)=>new Promise((de,_e)=>{const Ve=G[te];Ve&&ne(Ve.file,{fileType:k.value,folderId:N.value,onSubmit:a.value}).then(B=>{pe.ElMessage.success(`${x("startUploading")} ${B}`),G.length-1!==te?R(G,te+1).then(()=>{de({code:200})}):de({code:200})}).catch(()=>{G.length-1!==te?R(G,te+1).then(()=>{de({code:200})}):de({code:200})})});R(d.value,0).then(()=>{f.value=!1,r.value&&r.value(),d.value=[]})}function P(R){const G=R.type||"";if(k.value===1){if(!G.includes("image"))return pe.ElMessage.error(x("theUploadedFileIsNotOfImageType")),!1}else if(k.value===2){if(!G.includes("video"))return pe.ElMessage.error(x("theUploadedFileIsNotOfVideoType")),!1}else if(k.value===4){if(!G.includes("audio"))return pe.ElMessage.error(x("theUploadedFileIsNotOfAudioType")),!1}else if(k.value===5){if(!R.name.includes(`${u.value[5]}`))return pe.ElMessage.error(x("theUploadedFileIsNotAnAPKUpgradePackage")),!1}else if(k.value===6&&!R.name.includes(`${u.value[6]}`))return pe.ElMessage.error(x("theUploadedFileIsNotASoftwarePackage")),!1;return!0}function z(){E.value=[],b.value=[];const R=He.getCache("fileUploadList");R&&(_.value=R.map(G=>(G.status==="uploading"&&(G.status="error"),G)),e.nextTick(()=>{$(),_.value.forEach(G=>{G.status!=="error"&&ke(G.md5)})}))}function U(){window.sessionStorage.setItem("fileUploadList",JSON.stringify(_.value))}function M(R){return new Promise((G,te)=>{new vb().md5(R,(_e,Ve)=>{_e?te(_e):G({md5:Ve})})})}function Y(R){return new Promise(G=>{const te=R.size;let de=0,_e=null;const Ve=Math.ceil(te/V.value),B=[],I=()=>{const H=de*V.value,ee=H+V.value>=te?te:H+V.value;if(_e=T.value.call(R,H,ee),B.push(_e),de++,de<Ve)return I();G(B)};I()})}function F(R){const G=new File([R.file],R.file.name.replace(/\s*/g,""));d.value.push({name:G.name,file:G})}function Q(R,G){if(R.file.name===G.fileName){const te=new File([R.file],R.file.name.replace(/\s*/g,""));ne(te,{fileType:G.fileType,folderId:G.folderId,onSubmit:a.value,md5:G.md5}).then(de=>{pe.ElMessage.success(`${x("startUploading")} ${de}文件`)})}else pe.ElMessage.error(x("pleaseSelectTheSameFileForUploading"))}function ne(R,G){return new Promise(async(te,de)=>{const _e=G.md5||Hn(1);await Y(R).then(async(Ve=[])=>{const B=_.value.find(I=>I.md5===_e);if(he(_e,Ve),B){const I=B.status,H=B.errorReason;I==="error"&&!H?(te(R.name),ke(B.md5)):de()}else{const I=await Yb({cannedACL:i.value?"public-read":"",fileName:R.name,contentLength:R.size,contentType:R.type,partSize:V.value});if(I.code===200){const H=I.data;if(H){const ee=H.list||[],Ne={md5:_e,fileType:G.fileType,folderId:G.folderId,onSubmit:G.onSubmit,fileName:R.name,size:R.size,type:R.type,key:H.key,uploadId:H.uploadId,status:"uploading",completionTime:null,progress:0,finishNum:0,totalNum:ee.length,shardingList:ee.map((me,ue)=>({key:me.key,url:me.url,partNumber:ue+1,isUpload:!1,etag:null}))};te(R.name),_.value.unshift(Ne),$(),e.nextTick(()=>{U(),ke(Ne.md5)})}}}})})}function Te(R){return new Promise(async(G,te)=>{const de=await Kb(R);de.code===200&&(de.data?te(new Error(x("prohibitUploadingFilesWithTheSameNameOnThePlatform"))):G({code:200}))})}function he(R,G){const te=E.value.findIndex(de=>de.md5===R);te===-1?E.value.push({md5:R,fileChunkList:G}):E.value[te].fileChunkList=G}function ke(R){const G=_.value.find(te=>te.md5===R);if(G.status==="amalgamation")v(G);else if(G.status==="sharding")X(G);else{const te=E.value.findIndex(I=>I.md5===G.md5);if(te===-1){pe.ElMessage.error(x("errorInUploadingFile"));return}const de=E.value[te].fileChunkList,_e=(I,H)=>new Promise((ee,Ne)=>{const me=I[H];if(me)if(me.isUpload)I.length-1!==H?_e(I,H+1).then(()=>{ee({code:200})}):ee({code:200});else{const ue=de[H],W=new File([ue],G.name,{type:G.type,lastModified:Date.now()});Oe(me.url,W).then(K=>{me.etag=K,me.isUpload=!0;const ce=G.finishNum+1,we=G.totalNum;G.finishNum=ce,G.progress=Number.parseInt(String(ce/we*80)),U(),I[H]=me,I.length-1!==H?_e(I,H+1).then(()=>{ee({code:200})}):ee({code:200})})}}),Ve=G.shardingList,B=Ve.findIndex(I=>I.isUpload===!1);B!==-1?(G.status="uploading",_e(Ve,B).then(()=>{G.status="sharding",X(G)})):(G.status="sharding",X(G))}}function Oe(R,G){return new Promise((te,de)=>{Jb.put({url:R,data:G}).then(_e=>{te(_e)}).catch(()=>{de(new Error(x("uploadError")))})})}async function X(R){U();const G=await Gb({key:R.key,uploadId:R.uploadId,partETagList:R.shardingList.map(te=>({partNumber:te.partNumber,etag:te.etag}))});(G.code===200||G.code===10020)&&(R.status="amalgamation",R.progress=80,v(R))}async function v(R){U();const G=()=>{R.completionTime=jo(new Date,"Y-M-h D:m:s"),R.status="success",b.value.unshift(R),J(R.md5),R.onSubmit&&R.onSubmit(R),e.nextTick(()=>{U()})};s.value?s.value(R,()=>{G()}):(await qb({fileType:R.fileType,folderId:R.folderId,key:R.key,size:R.size})).code===200&&(pe.ElMessage.success(x("uploadSuccessful")),G())}function ie(R,G){G.splice(R,1)}function le(R){var G;(G=o.value)==null||G.show(R.fileCloudKey).then(()=>{R.onSubmit&&R.onSubmit()})}async function J(R){if(!R)return;const G=_.value.findIndex(te=>te.md5===R);if(G!==-1){const te=_.value[G];_.value.splice(G,1);const de=E.value.findIndex(_e=>_e.md5===R);de!==-1&&E.value.splice(de,1),$(),te.key&&te.uploadId?(await Hb({key:te.key,uploadId:te.uploadId})).code===200&&U():U()}}return{apkConfirmUploadRef:o,onSubmit:a,publicRea:i,customFileSave:s,startUploadingCallback:l,fileShardingCallback:r,dragLevel:c,dialogVisible:p,uploadList:d,loading:f,fileUploadVisible:m,uploadAccept:u,fileTypeList:y,fileType:k,folderId:N,fileList:E,fileUploadList:_,successFileList:b,blobSlice:T,defaultChunkSize:V,fileUploadNumFn:$,onClose:h,show:g,setDialogVisible:C,setPublicRea:w,setCallback:D,fileUploadVersionShow:S,fileUploadAPkShow:L,fileUploadShow:A,fileUploadClose:j,fileUploadSubmit:O,beforeAvatarUpload:P,getData:z,saveData:U,getFileMd5:M,sliceFile:Y,uploadListRequestFn:F,handleHttpRequestImg:Q,fileRequestFn:ne,findByFileCloudKey:Te,fileListPushFn:he,uploadSliceFile:ke,uploadPart:Oe,completeMultipartUpload:X,mediaFileFn:v,deleteListFn:ie,apkConfirmUploadShow:le,deleteFileUpload:J}}const tC=t=>(e.pushScopeId("data-v-396f7126"),t=t(),e.popScopeId(),t),nC={class:"box-border text-hy-text-main el-drag-dialog w-full h-full rounded overflow-hidden border border-hy-main shadow-[0_0_6px_0] shadow-hy-main flex flex-col"},oC={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},aC={class:"absolute right-[10px]"},sC={class:"dialog_body"},lC={class:"mb-[10px]"},rC={class:"text-sm leading-[30px]"},iC={class:"mb-[10px]"},cC={class:"text-sm leading-[30px]"},dC={class:"text-center"},pC={class:"text-xs text-hy-text-secondary"},fC={class:"uploadList select-none"},mC={class:"flex-grow w-0"},hC={class:"text-right mt-[20px]"},uC={class:"box-border text-hy-text-main el-drag-dialog w-full h-full rounded overflow-hidden border border-hy-main shadow-[0_0_6px_0] shadow-hy-main flex flex-col"},_C={class:"relative border-b border-hy-border-2 pl-2 text-[18px] font-bold h-[50px] flex items-center justify-between"},gC={class:"absolute right-[10px]"},yC={class:"dialog_body el-dialog__body !p-[0_0_10px_0]"},xC={class:"progressBox text-hy-text-main el-progress-bar__outer_backgroundv3"},kC={class:"flex items-center"},NC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},bC={key:0,class:"flex items-center justify-center"},CC={key:0,class:"select-none click-box"},wC={class:"iconCloseBox click-box ml-[4px]"},EC={class:"flex flex-row leading-[20px] text-hy-danger select-none"},SC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},TC={class:"flex flex-row mb-[4px]"},DC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},VC=tC(()=>e.createElementVNode("span",null,[e.createElementVNode("i",{class:"el-icon-loading text-hy-main"})],-1)),$C={class:"flex flex-row leading-[20px]"},BC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},IC={class:"text-hy-main"},AC={class:"flex flex-row mb-[4px]"},LC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},FC={class:"iconCloseBox click-box"},OC={class:"flex flex-row leading-[20px]"},RC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},PC={class:"text-hy-success"},MC={key:0,class:"text-hy-text-secondary flex items-center justify-center text-xs noData h-full"},UC={class:"text-center"},zC={class:"mt-[10px]"},WC=be(e.defineComponent({__name:"file-upload",emits:["on-fileUploadNum"],setup(t,{expose:n,emit:o}){const a=o,{apkConfirmUploadRef:s,onSubmit:l,publicRea:r,customFileSave:i,startUploadingCallback:c,fileShardingCallback:p,dragLevel:d,dialogVisible:f,uploadList:m,loading:u,fileUploadVisible:y,uploadAccept:_,fileTypeList:k,fileType:N,folderId:E,fileList:b,fileUploadList:T,successFileList:V,blobSlice:$,defaultChunkSize:h,fileUploadNumFn:g,onClose:C,show:w,setDialogVisible:D,setPublicRea:S,setCallback:L,fileUploadVersionShow:A,fileUploadAPkShow:j,fileUploadShow:O,fileUploadClose:P,fileUploadSubmit:z,beforeAvatarUpload:U,getData:M,saveData:Y,getFileMd5:F,sliceFile:Q,uploadListRequestFn:ne,handleHttpRequestImg:Te,fileRequestFn:he,findByFileCloudKey:ke,fileListPushFn:Oe,uploadSliceFile:X,uploadPart:v,completeMultipartUpload:ie,mediaFileFn:le,deleteListFn:J,apkConfirmUploadShow:R,deleteFileUpload:G}=eC({emit:a});return e.onMounted(()=>{M()}),n({fileUploadShow:O,fileUploadAPkShow:j,fileUploadVersionShow:A,show:w}),(te,de)=>{const _e=e.resolveComponent("svg-icon"),Ve=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),I=e.resolveComponent("el-icon"),H=e.resolveComponent("el-upload"),ee=e.resolveComponent("el-button"),Ne=e.resolveComponent("el-dialog"),me=e.resolveComponent("el-tooltip"),ue=e.resolveComponent("el-progress"),W=e.resolveDirective("draggable");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(Ne,{"model-value":e.unref(y),"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"w-[420px] !p-0 border-[0] shadow-[0_0_0_0]"},{default:e.withCtx(()=>[e.createVNode($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",nC,[e.createElementVNode("div",oC,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("fileUpload")),1),e.createElementVNode("div",aC,[e.createVNode(_e,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(P),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",sC,[e.createElementVNode("div",lC,[e.createElementVNode("div",rC,e.toDisplayString(e.unref(x)("fileType")),1),e.createVNode(B,{modelValue:e.unref(N),"onUpdate:modelValue":de[0]||(de[0]=K=>e.isRef(N)?N.value=K:null),class:"!w-full",placeholder:e.unref(x)("fileType")},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(K,ce)=>(e.openBlock(),e.createBlock(Ve,{key:ce,label:K.label,value:K.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",iC,[e.createElementVNode("div",cC,e.toDisplayString(e.unref(x)("uploadFiles")),1),e.createElementVNode("div",null,[e.createVNode(H,{"before-upload":e.unref(U),"http-request":e.unref(ne),accept:e.unref(_)[`${e.unref(N)}`],action:"",drag:"","show-file-list":!1,multiple:""},{default:e.withCtx(()=>[e.createElementVNode("div",dC,[e.createVNode(I,{class:"text-[60px] text-hy-text-secondary"},{default:e.withCtx(()=>[e.createVNode(e.unref(Md))]),_:1}),e.createElementVNode("div",pC,[e.createTextVNode(e.toDisplayString(e.unref(x)("dragFilesHereOr")),1),e.createElementVNode("em",null,e.toDisplayString(e.unref(x)("clickToUpload")),1)])])]),_:1},8,["before-upload","http-request","accept"]),e.createElementVNode("ul",fC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(K,ce)=>(e.openBlock(),e.createElementBlock("li",{key:`${ce}uploadList`},[e.createElementVNode("span",mC,e.toDisplayString(K.name),1),e.createVNode(_e,{width:"16",height:"16",name:"icon-close",class:"click-box iconCloseBox clickBox text-hy-danger",onClick:we=>e.unref(J)(ce,e.unref(m))},null,8,["onClick"])]))),128))])])]),e.createElementVNode("div",hC,[e.createVNode(ee,{type:"primary",class:"w-[100px]",onClick:e.unref(P)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("close")),1)]),_:1},8,["onClick"]),e.createVNode(ee,{class:"w-[100px]",onClick:e.unref(z)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("confirm")),1)]),_:1},8,["onClick"])])])])]),_:1})]),_:1},8,["model-value"]),e.createVNode(Ne,{"model-value":e.unref(f),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,modal:!1,draggable:!0,"modal-class":"custom-transparent",class:"w-[300px] !p-0 border-[0] shadow-[0_0_0_0] mr-[100px]",top:"15vh"},{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",uC,[e.createElementVNode("div",_C,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("fileUpload")),1),e.createElementVNode("div",gC,[e.createVNode(_e,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(C),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",yC,[e.createElementVNode("ul",xC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(T),(K,ce)=>(e.openBlock(),e.createElementBlock("li",{key:`${ce}fileUploadList`},[e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",kC,[e.createElementVNode("div",NC,e.toDisplayString(K.fileName),1),K.fileType!==5?(e.openBlock(),e.createElementBlock("div",bC,[e.createVNode(H,{class:"flex items-center justify-center","before-upload":e.unref(U),"http-request":we=>e.unref(Te)(we,K),action:"","show-file-list":!1},{default:e.withCtx(()=>[e.createVNode(me,{placement:"top","open-delay":500,class:"item",effect:"dark",content:e.unref(x)("selectTheSameFileAgainForUploading")},{default:e.withCtx(()=>[K.errorReason?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",CC,[e.createVNode(_e,{width:"16",height:"16",name:"live-broadcast-refresh-v3"})]))]),_:2},1032,["content"])]),_:2},1032,["before-upload","http-request"]),e.createElementVNode("div",wC,[e.createVNode(_e,{width:"16",height:"16",name:"icon-close",class:"text-hy-danger",onClick:we=>e.unref(G)(K.md5)},null,8,["onClick"])])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",EC,[e.createElementVNode("div",SC,e.toDisplayString(K.errorReason||e.unref(x)("uploadFailed")),1),e.createElementVNode("span",null,e.toDisplayString(K.progress)+"%",1)]),e.createVNode(ue,{"show-text":!1,status:"exception","text-inside":!0,"stroke-width":9,percentage:K.progress},null,8,["percentage"])],512),[[e.vShow,K.status==="error"]]),e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",TC,[e.createElementVNode("div",DC,e.toDisplayString(K.fileName),1),VC]),e.createElementVNode("div",$C,[e.createElementVNode("div",BC,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("uploadingPatientWait"))+"…",1)]),e.createElementVNode("span",IC,e.toDisplayString(K.progress)+"%",1)]),e.createVNode(ue,{"show-text":!1,"text-inside":!0,"stroke-width":9,percentage:K.progress},null,8,["percentage"])],512),[[e.vShow,K.status!=="error"]])]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(V),(K,ce)=>(e.openBlock(),e.createElementBlock("li",{key:`${ce}successFileList`},[e.createElementVNode("div",AC,[e.createElementVNode("div",LC,e.toDisplayString(K.fileName),1),e.createElementVNode("div",FC,[e.createVNode(_e,{width:"16",height:"16",class:"text-hy-danger",name:"icon-close",onClick:we=>e.unref(J)(ce,e.unref(V))},null,8,["onClick"])])]),e.createElementVNode("div",OC,[e.createElementVNode("div",RC,[e.createElementVNode("span",null,e.toDisplayString(K.completionTime),1)]),e.createElementVNode("span",PC,e.toDisplayString(e.unref(x)("success")),1)]),e.createVNode(ue,{"show-text":!1,status:"success","text-inside":!0,"stroke-width":9,percentage:100})]))),128)),e.unref(T).length===0&&e.unref(V).length===0?(e.openBlock(),e.createElementBlock("li",MC,[e.createElementVNode("div",UC,[e.createVNode(_e,{name:"base-no-data",class:"!w-[50px] !h-[50px]"}),e.createElementVNode("div",zC,e.toDisplayString(e.unref(x)("noData-3")),1)])])):e.createCommentVNode("",!0)])])])]),_:1})),[[W]])]),_:1},8,["model-value"])])}}}),[["__scopeId","data-v-396f7126"]]);function jC({emit:t,props:n}){const o=e.shallowRef(),a=e.shallowRef(),s=e.ref(),{H:l,POI:r,isShowMap:i,layersUrlList:c,mapConfig:p}=Zt();function d(){i&&e.nextTick(async()=>{const N=He.getCache("userInfo");let E=[];N!=null&&N.lng&&(N!=null&&N.lat)&&(E=[N.lat,N.lng]),E.length===0&&(E=null),o.value=await l.map("selectMapLocation",{maxZoom:p.maxZoom||18,minZoom:p.minZoom||13,zoom:p.zoom||13,center:E,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&&y(n.latlng)}),o.value.on("left-click",b=>{s.value=null,m({lng:b.latlng.lng,lat:b.latlng.lat})})})}async function f(N){const E=await r.placeSearch({keywords:N,offset:10,page:1});if(E){const b=E[0];m({lng:b.lng,lat:b.lat})}else t("on-geographical-position",{})}async function m(N){var b;const E=await r.reverseGeocoder(N);E&&((b=E.address)!=null&&b.length)||Se({type:"warning",message:"未获取到地址信息"}),u({lng:N.lng,lat:N.lat,address:E.formatted_address,name:E.formatted_address,...E})}function u(N){s.value=N,t("on-geographical-position",N),y()}function y(N){a.value&&l.removeMarker(o.value,a.value);let E,b;N?(E=N.lat,b=N.lng):(E=s.value.lat,b=s.value.lng);let T={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:[10,32]};n.markerItemFn&&(T=n.markerItemFn()),l.setView(o.value,[E,b],18),a.value=l.marker(o.value,[E,b],T)}function _(){a.value&&l.removeMarker(o.value,a.value)}function k(N){a.value&&l.updateMarkerIcon(a.value,N)}return{H:l,map:o,POI:r,marker:a,isShowMap:i,initMap:d,geographicalPositionFn:u,throughCoordinatePosition:m,placeSearchFn:f,setContentFn:k,removeMarker:_}}const HC={class:"w-full h-full relative"},YC={key:1,id:"selectMapLocation",ref:"selectMapLocation",class:"w-full h-full"},GC=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:u}=jC({emit:s,props:a});return e.onMounted(()=>{r()}),n({throughCoordinatePosition:i,placeSearchFn:c,setContentFn:p,removeMarker:d,H:f,map:m,POI:u}),(y,_)=>(e.openBlock(),e.createElementBlock("div",HC,[e.unref(l)?(e.openBlock(),e.createElementBlock("div",YC,null,512)):(e.openBlock(),e.createBlock(pn,{key:0,class:"absolute top-0 left-0 z-[2]"}))]))}}),[["__scopeId","data-v-e69b3725"]]);function qC({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 ju({taskId:o.value,deviceUserId:n.value});if(m.code===200){const u=m.data||{};a.value=u||{},a.value.imageList&&(a.value.imageListV2=a.value.imageList.map(y=>y.filePath)),d(0)}}else if(t.formType===2){const m=await Bl({recordId:l.value});if(m.code===200){const u=m.data||{};a.value=u||{},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 KC={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},XC={key:0},JC={key:1},ZC={class:"absolute right-[12px] top-[12px]"},QC={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg relative z-[20]"},vC={style:{height:"500px"},class:"c_fff fs_12 dialog_body text-hy-text-main text-[12px]"},ew={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},tw={class:"information"},nw={class:"flex_vertically_center flex items-center"},ow={style:{"margin-left":"6px"}},aw={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},sw={class:"flex_vertically_center flex items-center"},lw={style:{"margin-left":"6px"}},rw={key:0,class:"type_box success"},iw={key:1,class:"type_box"},cw={class:"form fs_12 text-[12px]"},dw={key:0},pw={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},fw={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"},mw={key:1},hw={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},uw={class:"r-f mb_10 flex_vertically_center flex mb-[10px] items-center"},_w={class:"mr_10 label flex-shrink mr-[10px]"},gw={class:"r-f flex_vertically_center flex items-center"},yw={class:"mr_10 label label_answer flex-shrink mr-[10px]"},xw={key:0,class:"c_theme text-hy-text-primary"},kw={key:1,class:"c_9DA7B2 text-hy-text-secondary"},Nw={key:2},bw={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px]"},Cw={class:"group-item"},ww=["onClick"],Ew={key:0,class:"c-f-i group-content r-f flex"},Sw={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},Tw=["src"],Dw={key:1,style:{"flex-grow":"1"}},Vw={class:"icon-box c-f-i flex"},$w={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},Bw={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},Iw={key:0,class:"information-type"},Aw={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},Lw={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},Fw={key:0,class:"c_9DA7B2 text-hy-text-secondary"},Ow={key:1},Rw={key:1,class:"c-f-i group-content r-f flex"},Pw={style:{"flex-grow":"1"}},Mw={class:"icon-box c-f-i flex"},Uw={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},zw={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},Ww={key:0,class:"information-type"},jw={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},Hw={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},Yw={key:0,class:"c_9DA7B2 text-hy-text-secondary"},Gw={key:1},qw={key:2,class:"c-f-i group-content r-f flex"},Kw={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},Xw=["src"],Jw={key:1,style:{"flex-grow":"1"}},Zw={class:"icon-box c-f-i flex"},Qw={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},vw={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},eE={key:0,class:"information-type"},tE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},nE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},oE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},aE={key:1},sE={key:3},lE={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},rE={class:"group-item"},iE=["onClick"],cE={key:0,class:"c-f-i group-content r-f flex"},dE={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},pE=["src"],fE={key:1,style:{"flex-grow":"1"}},mE={class:"icon-box c-f-i flex"},hE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},uE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},_E={key:0,class:"information-type"},gE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},yE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},xE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},kE={key:1},NE={key:1,class:"c-f-i group-content r-f flex"},bE={style:{"flex-grow":"1"}},CE={class:"icon-box c-f-i flex"},wE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},EE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},SE={key:0,class:"information-type"},TE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},DE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},VE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},$E={key:1},BE={key:2,class:"c-f-i group-content r-f flex"},IE={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},AE=["src"],LE={key:1,style:{"flex-grow":"1"}},FE={class:"icon-box c-f-i"},OE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},RE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},PE={key:0,class:"information-type"},ME={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},UE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},zE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},WE={key:1},Er=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}=qC({props:o});return n({show:s}),(p,d)=>{const f=e.resolveComponent("svg-icon"),m=e.resolveComponent("el-dialog"),u=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.createElementBlock("div",KC,[o.formType===1?(e.openBlock(),e.createElementBlock("span",XC,e.toDisplayString(e.unref(a)("exception")),1)):o.formType===2?(e.openBlock(),e.createElementBlock("span",JC,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",ZC,[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"])])])),[[u]])]),default:e.withCtx(()=>[e.createElementVNode("div",QC,[e.createElementVNode("div",vC,[e.createElementVNode("div",ew,[e.createElementVNode("div",tw,[e.createElementVNode("div",nw,[e.createVNode(f,{style:{width:"14px",height:"14px"},name:"icon-user","class-name":"text-hy-text-main"}),e.createElementVNode("span",ow,[e.createTextVNode(e.toDisplayString(e.unref(r).name),1),e.unref(r).jobNum?(e.openBlock(),e.createElementBlock("span",aw,"("+e.toDisplayString(e.unref(r).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",sw,[e.createVNode(f,{name:"base-every-day-time",class:"w-[16px] h-[16px]"}),e.createElementVNode("span",lw,e.toDisplayString(e.unref(r).executeDtm),1)]),e.unref(r).checkState===1?(e.openBlock(),e.createElementBlock("div",rw,e.toDisplayString(e.unref(a)("normal")),1)):e.unref(r).checkState===2?(e.openBlock(),e.createElementBlock("div",iw,e.toDisplayString(e.unref(a)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",cw,[e.unref(r).dealSituation?(e.openBlock(),e.createElementBlock("div",dw,[e.createElementVNode("div",pw,e.toDisplayString(e.unref(a)("handling")),1),e.createElementVNode("p",fw,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",mw,[e.createElementVNode("div",hw,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,_)=>(e.openBlock(),e.createElementBlock("li",{key:_,class:"border-top ptb_10 p-[10px_0px]"},[e.createElementVNode("div",uw,[e.createElementVNode("p",_w,e.toDisplayString(e.unref(a)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(y.optionTitle),1)]),e.createElementVNode("div",gw,[e.createElementVNode("p",yw,e.toDisplayString(e.unref(a)("answer")),1),y.optionValue?(e.openBlock(),e.createElementBlock("span",xw,e.toDisplayString(y.optionValue),1)):(e.openBlock(),e.createElementBlock("span",kw,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",Nw,[e.createElementVNode("div",bw,e.toDisplayString(e.unref(a)("picture")),1),e.createElementVNode("div",Cw,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).imageList,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,onClick:_=>e.unref(c)(y)},[y.fileType===1?(e.openBlock(),e.createElementBlock("div",Ew,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.filePath&&y.del!==1?(e.openBlock(),e.createElementBlock("div",Sw,[e.createElementVNode("img",{src:y.filePath,class:"h_100vh h-full"},null,8,Tw)])):(e.openBlock(),e.createElementBlock("div",Dw,[e.createElementVNode("div",Vw,[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",$w,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",Bw,[y.type===1?(e.openBlock(),e.createElementBlock("div",Iw,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",Aw,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",Lw," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",Fw,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",Ow,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",Rw,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[e.createElementVNode("div",Pw,[e.createElementVNode("div",Mw,[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",Uw,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",zw,[y.type===1?(e.openBlock(),e.createElementBlock("div",Ww,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",jw,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",Hw," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",Yw,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",Gw,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",qw,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.screenshot1?(e.openBlock(),e.createElementBlock("div",Kw,[e.createElementVNode("img",{src:y.screenshot1,class:"h_100vh h-full"},null,8,Xw)])):(e.openBlock(),e.createElementBlock("div",Jw,[e.createElementVNode("div",Zw,[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",Qw,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",vw,[y.type===1?(e.openBlock(),e.createElementBlock("div",eE,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",tE,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",nE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",oE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",aE,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,ww))),128))])])):e.createCommentVNode("",!0),e.unref(r).videoList&&e.unref(r).videoList.length?(e.openBlock(),e.createElementBlock("div",sE,[e.createElementVNode("div",lE,e.toDisplayString(e.unref(a)("video")),1),e.createElementVNode("div",rE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).videoList,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,onClick:_=>e.unref(c)(y)},[y.fileType===1?(e.openBlock(),e.createElementBlock("div",cE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.filePath&&y.del!==1?(e.openBlock(),e.createElementBlock("div",dE,[e.createElementVNode("img",{src:y.filePath,class:"h_100vh h-full"},null,8,pE)])):(e.openBlock(),e.createElementBlock("div",fE,[e.createElementVNode("div",mE,[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",hE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",uE,[y.type===1?(e.openBlock(),e.createElementBlock("div",_E,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",gE,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",yE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",xE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",kE,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",NE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[e.createElementVNode("div",bE,[e.createElementVNode("div",CE,[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",wE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",EE,[y.type===1?(e.openBlock(),e.createElementBlock("div",SE,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",TE,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",DE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",VE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",$E,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",BE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.screenshot1?(e.openBlock(),e.createElementBlock("div",IE,[e.createElementVNode("img",{src:y.screenshot1,class:"h_100vh h-full"},null,8,AE)])):(e.openBlock(),e.createElementBlock("div",LE,[e.createElementVNode("div",FE,[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",OE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",RE,[y.type===1?(e.openBlock(),e.createElementBlock("div",PE,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",ME,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",UE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",zE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",WE,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,iE))),128))])])):e.createCommentVNode("",!0)])])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-98f845d7"]]);function jE(t){return oe.post({url:"taskAssign/v2/taskItem/select",data:t,isFormData:!0})}function ia(t){return oe.post({url:"taskAssign/v2/taskItemView",data:t,isFormData:!0})}function HE(t){return oe.post({url:"taskAssign/taskExample/select",data:t,isFormData:!0})}function YE({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(N,E)=>{const b=await(t.controller==="taskAssign/taskExample"?HE({id:k}):Mu({id:k}));if(b.code===200){const T=b.data;o.value=[],a.value=[],n.value=T;const V=T.images;V&&V.length&&(o.value=V.split(","));const $=T.videos;$&&$.length&&(a.value=$.split(",").map((h,g)=>({filePath:h,fileName:`任务示例视频${g+1}.${h.split(".").reverse()[0]}`,id:g+1}))),N(0)}})}function u(k={}){m(k.id).then(()=>{s.value=!0})}function y(k){console.log(k),o.value=[],a.value=[],n.value=k;const N=k.images;N&&N.length&&(o.value=N.split(","));const E=k.videos;E&&E.length&&(a.value=E.split(",").map((b,T)=>({filePath:b,fileName:`任务示例视频${T+1}.${b.split(".").reverse()[0]}`,id:T+1}))),s.value=!0,console.log(s.value)}function _(){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:u,taskExampleFn:y,onClose:_,videoPlayerShow:p,videoDialogClose:d,selVideo:c}}const GE={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},qE={class:"absolute right-[12px] top-[12px]"},KE={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg-1 relative z-[20]"},XE={class:"dialog_body"},JE={class:"dialog_body_content lh_20 leading-[20px]"},ZE={class:"mb_20 mb-[20px]"},QE={class:"requiredTitle"},vE={class:"plr_20 p-[0_20px]",style:{"max-height":"200px",overflow:"auto"}},eS=["innerHTML"],tS={key:0,class:"mb_20 mb-[20px]"},nS={class:"requiredTitle"},oS={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},aS={class:"imgBox"},sS={class:"centerBox deleteBox flex items-center justify-center"},lS=["src"],rS={key:1,class:"mb_20 mb-[20px]"},iS={class:"requiredTitle"},cS={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},dS={class:"imgBox"},pS={class:"centerBox deleteBox flex items-center justify-center"},fS={class:"pos_a w_100vh centerBox absolute w-full flex justify-center items-center"},mS={class:"operator-button centerBox mt_20 mt-[20px] flex justify-center items-center"},hS={class:"c_fff activatedImei text-hy-text-main"},uS={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},_S={class:"dialog_body",style:{height:"500px"}},gS={class:"pos_r w_100vh h_100vh w-full h-full relative"},Sr=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:u,videoPlayerShow:y,videoDialogVisible:_,videoDialogClose:k,selVideo:N}=YE({props:o});return n({show:s,taskExampleFn:l}),(E,b)=>{const T=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":b[2]||(b[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.createElementBlock("div",GE,[e.createElementVNode("span",null,e.toDisplayString(e.unref(p).exampleName||e.unref(a)("missionExample")),1),e.createElementVNode("div",qE,[e.createVNode(T,{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"])])])),[[h]])]),default:e.withCtx(()=>[e.createElementVNode("div",KE,[e.createElementVNode("div",XE,[e.createElementVNode("div",JE,[e.createElementVNode("div",ZE,[e.createElementVNode("div",QE,e.toDisplayString(e.unref(a)("sampleContent")),1),e.createElementVNode("div",vE,[e.createElementVNode("div",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(p).exampleContent},null,8,eS)])]),e.unref(f).length?(e.openBlock(),e.createElementBlock("div",tS,[e.createElementVNode("div",nS,e.toDisplayString(e.unref(a)("exampleImage")),1),e.createElementVNode("ul",oS,[(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",aS,[e.createElementVNode("div",sS,[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,lS)])]))),128))])])):e.createCommentVNode("",!0),e.unref(u).length?(e.openBlock(),e.createElementBlock("div",rS,[e.createElementVNode("div",iS,e.toDisplayString(e.unref(a)("exampleVideo")),1),e.createElementVNode("ul",cS,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(g,C)=>(e.openBlock(),e.createElementBlock("li",{key:`${C}videoList`},[e.createElementVNode("div",dS,[e.createElementVNode("div",pS,[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",fS,[e.createVNode(T,{name:"base-video-cover",style:{height:"40px",width:"40px"}})])])]))),128))])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",mS,[e.createVNode(Wo,{ref_key:"hyImageViewerRef",ref:r},null,512),e.createVNode(V,{modelValue:e.unref(_),"onUpdate:modelValue":b[1]||(b[1]=g=>e.isRef(_)?_.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",hS,[e.createElementVNode("div",uS,[e.createTextVNode(e.toDisplayString(e.unref(a)("videoView"))+" ",1),e.createElementVNode("div",{class:"absolute right-[12px] top-[12px] cursor-pointer",onClick:b[0]||(b[0]=e.withModifiers((...g)=>e.unref(k)&&e.unref(k)(...g),["stop"]))},[e.createVNode(T,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",_S,[e.createElementVNode("div",gS,[e.createVNode(oa,{ref_key:"videoPlayerRef",ref:i,"border-color":"transparent",item:e.unref(N),"play-list":e.unref(u)},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"])])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-120cdcda"]]);function yS(){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}=Zt(),m=e.shallowRef(null),u=e.ref([]),y=e.ref([]),_=e.ref(),k=e.ref(),N=e.computed(()=>a.value.findIndex(j=>j.lat&&j.lng)!==-1);function E(A){m.value&&A.lat&&A.lng&&c.setView(m.value,[A.lat,A.lng],18)}function b(){if(!m.value)return;u.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 Y=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%;
|
@@ -49,4 +49,4 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,curr
|
|
49
49
|
border: 2px solid var(--hy-text-secondary);
|
50
50
|
background: var(--hy-dialog-bg-1);" class="flex items-center justify-center">
|
51
51
|
</div>`;const M=c.marker(m.value,[P.lat,P.lng],{icon:U,zIndexOffset:10,iconAnchor:[18,18]});u.value.push(M)}),console.log(A);const O=c.polyline(m.value,A.map(P=>[P.lat,P.lng]),{width:4,color:"#5E9DB4",opacity:1});y.value.push(O)}function T(){p&&N.value&&e.nextTick(async()=>{const A=[a.value[0].lat,a.value[0].lng];m.value=await c.map("electronicPatrolDetailsMap",{maxZoom:f.maxZoom||18,minZoom:f.minZoom||13,zoom:f.zoom||13,center:A,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:d,layerType:f.satelliteMap}),m.value.on("complete",()=>{console.log("加载完成"),b()})})}function V(A){_.value.taskExampleFn(A)}function $(A){k.value.show({recordId:A})}async function h(){const A=await zu({id:l.value});A.code===200&&(n.value=A.data||{},t.value=n.value.deviceUser||{})}async function g(){const A=await Uu({id:l.value});if(A.code===200){const j=A.data||[];a.value=j.map((O,P)=>(P!==j.length-1&&(O.hadCheckv2=j[P+1].hadCheck),O))}}async function C(){const A=await Wu({id:l.value});if(A.code===200){s.value=A.data||{};const j=s.value.pointList;o.value=j.map((O,P)=>{if(P!==j.length-1){const z=j[P+1].checkState;z===1?O.backgroundName="hy-success":z===2?O.backgroundName="hy-danger":O.backgroundName="hy-text-secondary"}return O})}}function w(){m.value&&m.value.setFitView()}function D(A){r.value=A}function S(A){if(!A)return Se.error(`id ${x("theParametersAreWrongAndItFailsToOpen")}`);l.value=A,a.value=[],o.value=[],s.value={},n.value={},t.value={},D("pointTrail"),h().then(()=>{i.value=!0,g().then(()=>{T()})}),C()}function L(){i.value=!1}return{$t:x,dialogVisible:i,map:m,markerList:u,polylineList:y,viewTaskExampleRef:_,submissionFormRef:k,deviceUser:t,form:n,pointList:o,pointTrailList:a,taskExecute:s,taskId:l,abnormalState:r,markerClickFn:E,addMarker:b,initMap:T,viewTaskExampleShow:V,submissionFormShow:$,selectFn:h,pointTrailFn:g,deviceSctTaskExecute:C,setFitView:w,abnormalStateFn:D,show:S,onClose:L,tasklatAndlngType:N,isShowMap:p}}const gn=t=>(e.pushScopeId("data-v-6f4fe5db"),t=t(),e.popScopeId(),t),xS={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},kS={class:"absolute right-[12px] top-[12px]"},NS={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg relative z-[20]"},bS={class:"dialog_body"},CS={class:"ovh centerBox overflow-hidden flex items-center justify-center"},wS={class:"r-f navigation flex"},ES={class:"progress_box centerBox fs_12 text-[12px] flex justify-center items-center"},SS={key:0,class:"c_dangerv2 text-hy-danger"},TS={key:1,class:"c_success text-hy-success"},DS={key:2,class:"c_9DA7B2 text-hy-text-secondary"},VS={key:3,class:"c_theme text-hy-text-primary"},$S={style:{width:"108px"},class:"plr_10 p-[0_10px]"},BS={class:"c_theme text-hy-text-primary"},IS={style:{height:"500px"},class:"fs_12 lh_20 text-[12px] leading-[20px]"},AS={class:"h_100vh r-f details flex h-full"},LS={class:"taskDetails fs_12 lh_20 flex-shrink text-[12px] leading-[20px]"},FS={class:"c_dangerv2 fw_600 fs_16 mb_10 text-hy-danger font-[600] text-[16px] mb-[10px]"},OS={key:0,class:"mb_10 mb-[10px]"},RS={class:"c_9DA7B2 text-hy-text-secondary"},PS=["innerHTML"],MS={class:"mb_10 mb-[10px]"},US={class:"c_9DA7B2 text-hy-text-secondary"},zS={class:"mb_10 mb-[10px]"},WS={class:"c_9DA7B2 text-hy-text-secondary"},jS={class:"mb_10 mb-[10px]"},HS={class:"c_9DA7B2 text-hy-text-secondary"},YS={key:1,class:"mb_10 mb-[10px]"},GS={class:"c_9DA7B2 text-hy-text-secondary"},qS={class:"f-g h_100vh c-f flex flex-col h-full flex-grow w-0",style:{"border-radius":"6px",background:"var(--hy-dialog-bg-4)"}},KS={class:"fs_16 h_50 lh_50 pl_20 text-[16px] h-[50px] leading-[50px] pl-[20px]"},XS={class:"pos_r pl_10 relative pl-[10px]"},JS=gn(()=>e.createElementVNode("span",{class:"line"},null,-1)),ZS={style:{"flex-grow":"1"},class:"centerBox flex items-center justify-center"},QS={class:"c_9DA7B2 tac lh_30 text-hy-text-secondary text-center leading-[30px]"},vS={class:"centerBox mb_10 mb-[10px] flex justify-center items-center"},eT={class:"c_fff fs_14 text-hy-text-main text-[14px]"},tT={class:"centerBox flex items-center justify-center"},nT={style:{"margin-left":"6px"}},oT={class:"r-f flex"},aT=gn(()=>e.createElementVNode("p",{class:"mlr_10 linev2 m-[0_10px]"},null,-1)),sT={class:"ecutionRecord"},lT={class:"flex_vertically_center pos_r relative flex items-center"},rT={class:"flex_vertically_center flex items-center"},iT={class:"mr_10 fs_14 mr-[10px] text-[14px]"},cT={key:0,class:"mr_10 status status_theme mr-[10px]"},dT={key:1,class:"mr_10 status mr-[10px]"},pT={key:2,class:"mr_10 status status_success mr-[10px]"},fT={key:3,class:"mr_10 status status_dangerv2 mr-[10px]"},mT={key:4,class:"mr_10 status status_dangerv2 mr-[10px]"},hT={key:5,class:"mr_10 status status_dangerv2 mr-[10px]"},uT={key:6,class:"mr_10 status status_success mr-[10px]"},_T=gn(()=>e.createElementVNode("p",{class:"f-g w-0 flex-grow",style:{background:"var(--hy-dialog-bg-5)",height:"1px",margin:"0 16px"}},null,-1)),gT={class:"c_9DA7B2 fw_600 text-hy-text-secondary font-[600]"},yT={class:"pointTrail r-f h_100vh flex h-full"},xT={class:"pointTrailList c_9DA7B2 text-hy-text-secondary"},kT=["onClick"],NT={class:"c_fff lh_30 pos_r text-hy-text-main leading-[30px] relative"},bT={class:"over_one_line truncate"},CT={key:1,class:"indexBox indexv2Box"},wT={class:"over_one_line truncate"},ET={class:"pos_r relative"},ST=gn(()=>e.createElementVNode("span",{class:"indexBox indexv2Box"},null,-1)),TT={key:0},DT={key:1,class:"text-auxiliary text-hy-text-secondary"},VT={class:"pos_r relative"},$T=gn(()=>e.createElementVNode("span",{class:"indexBox indexv2Box"},null,-1)),BT={class:"over_one_line truncate"},IT={class:"f-g flex-grow w-0 h-full rounded ml-4"},AT={key:0,class:"p-2 box-border w-full h-full rounded bg-hy-dialog-bg-2"},LT={key:1,id:"electronicPatrolDetailsMap",class:"w-full h-full"},FT={key:0,class:"p-2 box-border w-full h-full rounded bg-hy-dialog-bg-2 flex items-center justify-center"},OT={class:"flex flex-col items-center justify-center text-hy-text-secondary"},RT={class:"mt_10 mt-[10px]"},Tr=be(e.defineComponent({__name:"electronic-patrol-detail",props:{draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const{$t:o,show:a,dialogVisible:s,abnormalState:l,onClose:r,abnormalStateFn:i,taskExecute:c,form:p,deviceUser:d,pointList:f,submissionFormShow:m,viewTaskExampleShow:u,pointTrailList:y,markerClickFn:_,tasklatAndlngType:k,viewTaskExampleRef:N,submissionFormRef:E,isShowMap:b}=yS();return n({show:a}),(T,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-progress"),g=e.resolveComponent("el-button"),C=e.resolveComponent("el-tooltip"),w=e.resolveComponent("el-dialog"),D=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(w,{modelValue:e.unref(s),"onUpdate:modelValue":V[3]||(V[3]=S=>e.isRef(s)?s.value=S: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:"1000px",modal:!T.draggable,draggable:T.draggable,"modal-class":T.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",xS,[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("patrol")),1),e.createElementVNode("div",kS,[e.createVNode($,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(r),["stop"])},null,8,["onClick"])])])),[[D]])]),default:e.withCtx(()=>[e.createElementVNode("div",NS,[e.createElementVNode("div",bS,[e.createElementVNode("div",CS,[e.createElementVNode("ul",wS,[e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select cursor-pointer",{selectBox:e.unref(l)==="details"}]),onClick:V[0]||(V[0]=S=>e.unref(i)("details"))},e.toDisplayString(e.unref(o)("inspectionDetails")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(l)==="ecutionRecord"}]),onClick:V[1]||(V[1]=S=>e.unref(i)("ecutionRecord"))},e.toDisplayString(e.unref(o)("implementation")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(l)==="pointTrail"}]),onClick:V[2]||(V[2]=S=>e.unref(i)("pointTrail"))},e.toDisplayString(e.unref(o)("inspectionTrajectory")),3)])]),e.withDirectives(e.createElementVNode("div",ES,[e.unref(c).finishState===0?(e.openBlock(),e.createElementBlock("span",SS,e.toDisplayString(e.unref(o)("unfinished")),1)):e.unref(c).finishState===1?(e.openBlock(),e.createElementBlock("span",TS,e.toDisplayString(e.unref(o)("hasBeenCompleted")),1)):e.unref(c).finishState===2?(e.openBlock(),e.createElementBlock("span",DS,e.toDisplayString(e.unref(o)("notPerformed")),1)):e.unref(c).finishState===3?(e.openBlock(),e.createElementBlock("span",VS,e.toDisplayString(e.unref(o)("execute")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",$S,[e.createVNode(h,{class:e.normalizeClass({"progress-bar_outer":e.unref(c).taskProgress!==100}),color:"var(--hy-success)","text-inside":!0,"stroke-width":16,percentage:e.unref(c).taskProgress},null,8,["class","percentage"])]),e.createElementVNode("span",BS,e.toDisplayString(e.unref(c).finishNum||0)+"/"+e.toDisplayString(e.unref(c).totalNum||0),1)],512),[[e.vShow,e.unref(l)!=="details"]]),e.createElementVNode("div",IS,[e.withDirectives(e.createElementVNode("div",AS,[e.createElementVNode("div",LS,[e.createElementVNode("p",FS,e.toDisplayString(e.unref(p).taskName),1),e.unref(p).taskInfo?(e.openBlock(),e.createElementBlock("div",OS,[e.createElementVNode("p",RS,e.toDisplayString(e.unref(o)("taskDescription")),1),e.createElementVNode("p",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(p).taskInfo},null,8,PS)])):e.createCommentVNode("",!0),e.createElementVNode("div",MS,[e.createElementVNode("p",US,e.toDisplayString(e.unref(o)("inspectionType")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(p).taskType===1?e.unref(o)("ordinaryInspection"):e.unref(o)("electronicInspection")),1)]),e.createElementVNode("div",zS,[e.createElementVNode("p",WS,e.toDisplayString(e.unref(o)("executionTime")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(p).executeDay),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(p).startTime)+" ~ "+e.toDisplayString(e.unref(p).endTime),1)]),e.createElementVNode("div",jS,[e.createElementVNode("p",HS,e.toDisplayString(e.unref(o)("implementRoute")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(p).lineName),1)]),e.unref(p).useTime?(e.openBlock(),e.createElementBlock("div",YS,[e.createElementVNode("p",GS,e.toDisplayString(e.unref(o)("duration")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(p).useTime)+e.toDisplayString(e.unref(o)("minute")),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",qS,[e.createElementVNode("div",KS,[e.createElementVNode("span",XS,[JS,e.createTextVNode(" "+e.toDisplayString(e.unref(o)("executiveInformation")),1)])]),e.createElementVNode("div",ZS,[e.createElementVNode("div",QS,[e.createElementVNode("div",vS,[e.createVNode(xt,e.mergeProps({class:"w-[54px] h-[54px]"},{onlineState:!0}),null,16)]),e.createElementVNode("div",eT,e.toDisplayString(e.unref(d).name),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(d).orgName),1),e.createElementVNode("div",tT,[e.createVNode($,{name:"base-vehicle-electric-arc","class-name":"w-[16px] h-[16px]"}),e.createElementVNode("span",nT,e.toDisplayString(e.unref(d).phone),1)]),e.createElementVNode("div",oT,[e.createElementVNode("div",null,e.toDisplayString(e.unref(o)("shortNumber"))+e.toDisplayString(e.unref(d).jobNum),1),aT,e.createElementVNode("div",null,e.toDisplayString(e.unref(o)("jobNumber"))+e.toDisplayString(e.unref(d).serialNum),1)])])])])],512),[[e.vShow,e.unref(l)==="details"]]),e.withDirectives(e.createElementVNode("ul",sT,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),(S,L)=>(e.openBlock(),e.createElementBlock("li",{key:L},[S.backgroundName?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`background: var(--${S.backgroundName});`),class:"line_box"},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",lT,[e.createElementVNode("div",{class:e.normalizeClass(["indexBox centerBox flex items-center justify-center",{indexBox_success:S.checkState===1,indexBox_dangerv2:S.checkState===2}])},[e.createElementVNode("p",{class:e.normalizeClass([`color_${S.checkState}`,"over_one_line truncate"])},e.toDisplayString(L+1),3)],2),e.createElementVNode("div",rT,[e.createElementVNode("span",iT,e.toDisplayString(S.pointName),1),S.hadCheck===1?(e.openBlock(),e.createElementBlock("span",cT,e.toDisplayString(e.unref(o)("haveBeenInspected")),1)):(e.openBlock(),e.createElementBlock("span",dT,e.toDisplayString(e.unref(o)("unpaidInspection")),1)),S.checkState===1?(e.openBlock(),e.createElementBlock("span",pT,e.toDisplayString(e.unref(o)("normal")),1)):S.checkState===2?(e.openBlock(),e.createElementBlock("span",fT,e.toDisplayString(e.unref(o)("abnormal")),1)):e.createCommentVNode("",!0),S.dealState===1&&S.checkState===2?(e.openBlock(),e.createElementBlock("span",mT,e.toDisplayString(e.unref(o)("pending")),1)):S.dealState===2&&S.checkState===2?(e.openBlock(),e.createElementBlock("span",hT,e.toDisplayString(e.unref(o)("processing")),1)):S.dealState===3&&S.checkState===2?(e.openBlock(),e.createElementBlock("span",uT,e.toDisplayString(e.unref(o)("solved")),1)):e.createCommentVNode("",!0)]),_T,e.createElementVNode("div",null,[S.recordId?(e.openBlock(),e.createBlock(g,{key:0,class:"button_function",onClick:A=>e.unref(m)(S.recordId)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("viewForm")),1)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),S.taskExample&&S.taskExample.exampleName?(e.openBlock(),e.createBlock(g,{key:1,class:"button_default",onClick:A=>e.unref(u)(S.taskExample)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("missionExample")),1)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)])]),e.createElementVNode("p",gT,e.toDisplayString(S.executeDtm),1)]))),128))],512),[[e.vShow,e.unref(l)==="ecutionRecord"]]),e.withDirectives(e.createElementVNode("div",yT,[e.createElementVNode("ul",xT,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),(S,L)=>(e.openBlock(),e.createElementBlock("li",{key:`${L}pointTrailList`,class:"clickBox",onClick:A=>e.unref(_)(S)},[e.createElementVNode("div",NT,[S.hadCheck===1?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([S.checkState===1?"indexBox_success":"indexBox_dangerv2","indexBox centerBox flex items-center justify-center"])},[e.createElementVNode("p",bT,e.toDisplayString(L+1),1)],2)):(e.openBlock(),e.createElementBlock("span",CT)),e.createElementVNode("div",wT,e.toDisplayString(S.pointName),1)]),e.createElementVNode("div",ET,[ST,S.lng&&S.lat?(e.openBlock(),e.createElementBlock("span",TT,e.toDisplayString(S.lng)+","+e.toDisplayString(S.lat),1)):(e.openBlock(),e.createElementBlock("span",DT,e.toDisplayString(e.unref(o)("notSetUpLatitudeAndLongitude")),1))]),S.address?(e.openBlock(),e.createBlock(C,{key:0,class:"item",effect:"dark",content:S.address,placement:"bottom-start"},{default:e.withCtx(()=>[e.createElementVNode("div",VT,[$T,e.createElementVNode("div",BT,e.toDisplayString(S.address),1)])]),_:2},1032,["content"])):e.createCommentVNode("",!0)],8,kT))),128))]),e.createElementVNode("div",IT,[e.unref(b)?(e.openBlock(),e.createElementBlock("div",LT,[e.unref(k)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",FT,[e.createElementVNode("div",OT,[e.createVNode($,{name:"sys-icon-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",RT,e.toDisplayString(e.unref(o)("noSpecificAddressIsSetInThisInspectionTask")),1)])]))])):(e.openBlock(),e.createElementBlock("div",AT,[e.createVNode(pn,{class:"!bg-hy-dialog-bg-3"})]))])],512),[[e.vShow,e.unref(l)==="pointTrail"]])]),e.createVNode(Er,{ref_key:"submissionFormRef",ref:E,"form-type":2,draggable:T.draggable},null,8,["draggable"]),e.createVNode(Sr,{ref_key:"viewTaskExampleRef",ref:N,controller:"scrollCheck/scExample",draggable:T.draggable},null,8,["draggable"])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-6f4fe5db"]]);function PT({emit:t,props:n}){const o=e.ref(null),a=e.ref(null),s=e.ref(!0),l=e.ref(!1),r=e.ref(!0),i=e.ref(""),c=e.ref([]),p=e.ref([]),d=e.ref([]),f=e.ref([]),m=e.ref([]),u=e.ref([]),y=e.ref(null),_=e.ref(null),k=e.ref(),N=e.computed(()=>u.value&&u.value.length?u.value:n.selectedByDefault&&n.selectedByDefault.length?n.selectedByDefault:[]);function E(C){return new Promise((w,D)=>{i.value="",y.value=w,u.value=C||[],l.value=!0,o.value=null,r.value=!0})}function b(){m.value.length?(y.value(m.value),t("on-submit",m.value),l.value=!1):Se.error(x("pleaseSelectPersonnel"))}function T(){l.value=!1}function V(){_.value&&_.value.abort(),_.value=new AbortController}async function $(){const C=await Wf({showDevice:!1,showGroup:!1,isDeviceUser:n.isDeviceUser||null,isPlatformUser:n.isPlatformUser||null,...n.requestParams});if(C.code===200)return C.data}function h(C){m.value=C,t("on-check-tree",C)}function g(C){console.log(C.selectedDataList),m.value=C.selectedDataList}return{$t:x,treeHeight:o,orgGroupId:a,checked:s,dialogVisible:l,loading:r,filterValue:i,dataList:c,departmentList:p,orgTreeDeviceList:d,disableSelection:f,selectDeviceUserList:m,selectedByDefaultv2:u,successfulCallback:y,abortController:_,personnelTreeRef:k,initSelectedDeviceList:N,show:E,onSubmit:b,onClose:T,initAbortController:V,getData:$,onCheckTree:h,onSelectedData:g}}const MT={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},UT={class:"absolute right-[12px] top-[12px]"},zT={class:"dialog_body percent-100 relative z-[20]",style:{"box-sizing":"border-box"}},WT={class:"h-[500px]"},jT={class:"mt-[20px] flex justify-center"},HT=be(e.defineComponent({__name:"select-personnel",props:{selectedByDefault:{default:()=>[]},defaultGetData:{type:Boolean,default:!1},isDeviceUser:{default:null},isPlatformUser:{default:null},requestParams:{default:{}},stylePadding:{default:"padding: 10px 14px 12px;"},deviceList:{default:()=>[]},showCheckbox:{type:Boolean,default:!0},showSinglebox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1}},emits:["on-submit","on-check-tree"],setup(t,{expose:n,emit:o}){const a=t,s=o,{$t:l,dialogVisible:r,filterValue:i,abortController:c,onClose:p,getData:d,onSelectedData:f,onSubmit:m,show:u,selectedByDefaultv2:y}=PT({emit:s,props:a});return e.watch(()=>i.value,_=>{i.value=_.replace(/\s/g,"")}),e.onUnmounted(()=>{c.value&&c.value.abort()}),n({show:u}),(_,k)=>{const N=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button"),b=e.resolveComponent("el-dialog"),T=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(b,{modelValue:e.unref(r),"onUpdate:modelValue":k[0]||(k[0]=V=>e.isRef(r)?r.value=V: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","custom-class":"w-[460px]",modal:!_.draggable,draggable:_.draggable,"modal-class":_.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",MT,[e.createElementVNode("span",null,e.toDisplayString(e.unref(l)("choicePersonnel")),1),e.createElementVNode("div",UT,[e.createVNode(N,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(p),["stop"])},null,8,["onClick"])])])),[[T]])]),default:e.withCtx(()=>[e.createElementVNode("div",zT,[e.createElementVNode("div",WT,[e.createVNode(xt,{"get-data":e.unref(d),"show-checkbox":!0,"parent-checkbox":!0,"default-checked-list":e.unref(y),onOnSelectedData:e.unref(f)},null,8,["get-data","default-checked-list","onOnSelectedData"])]),e.createElementVNode("div",jT,[e.createVNode(E,{class:"min-w-[100px]",type:"primary",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("closure")),1)]),_:1},8,["onClick"]),e.createVNode(E,{class:"min-w-[100px]",onClick:e.unref(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("keep")),1)]),_:1},8,["onClick"])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-fff6426d"]]);function YT({emit:t}){const n=e.ref([]),o=(D,S,L)=>{n.value.length?L():L(new Error(x("pleaseSelectExecutives")))},a={taskName:[{required:!0,message:x("pleaseEnterTheTaskName"),trigger:"blur"}],taskInfo:[{required:!0,message:x("pleaseEnterTheTaskDescription"),trigger:"blur"}],assignUserList:[{validator:o,trigger:"change"}]},s=e.ref(null),l=e.ref([]),r=e.ref(null),i=e.ref(null),c=e.ref(!1),p=e.ref({taskName:null,taskInfo:null}),d=[{label:x("deviceInformation"),width:"200px",customSlot:"userInformation",type:"customSlot"},{label:x("equipmentType"),type:"customSlot",customSlot:"deviceType"},{label:x("deviceModel"),prop:"prodModel"},{label:x("affiliatedDepartment"),prop:"orgName"}],f=e.ref([]),m=e.ref([]),u=e.ref(),y=e.ref(),_=e.ref(),k=e.ref();function N(D){return new Promise((S,L)=>{D&&(r.value=S,i.value=D,p.value={taskName:null,taskInfo:null},l.value=[],n.value=[],u.value&&u.value.resetFields(),c.value=!0)})}function E(){u.value.validate(async D=>{if(D){const S=n.value.map(A=>({deviceUserId:A.id}));(await Yu({...p.value,recordId:i.value,deviceUserList:S})).code===200&&(r.value&&r.value(),t("on-submit"),c.value=!1)}})}function b(D=[]){n.value=D,e.nextTick(()=>{u.value.validateField("assignUserList")}),V()}function T(){y.value.show(n.value).then(D=>{b(D)})}function V(){if(n.value&&n.value.length){const D=[];n.value.forEach(S=>{const L=D.findIndex(A=>A.orgId===S.orgId);L===-1?D.push({orgName:S.orgName,orgId:S.orgId,deviceUserList:[{...S}]}):D[L].deviceUserList.push({...S})}),l.value=D}else l.value=[]}function $(D,S){const L=n.value.findIndex(A=>A.orgId===D.orgId&&A.id===S.id);L!==-1&&(n.value.splice(L,1),V())}function h(){m.value.forEach((D,S)=>{const L=f.value.findIndex(A=>A.deviceId===D.deviceId);L!==-1&&f.value.splice(L,1)}),e.nextTick(()=>{m.value=[],_.value.clearSelection()})}function g(D){m.value=D}function C(){k.value.show([...f.value],D=>{f.value=[...D],_.value.customDataSuccessFn(f.value),m.value=[]})}function w(){c.value=!1,t("on-close"),p.value={taskName:null,taskInfo:null}}return{$t:x,form:p,formRef:u,rules:a,selectPersonnelRef:y,selectList:m,dialogVisible:c,tableData:l,tableColumns:d,assignUserList:n,activeNames:s,deviceIdList:f,personnelFn:V,personnelDeleteFn:$,selectPersonnelShow:T,onSubmit:E,show:N,deleteFn:h,onSelectCheckbox:g,selectDeviceTableShow:C,onClose:w,assignUserListFn:b}}const ca=t=>(e.pushScopeId("data-v-e5ae75d1"),t=t(),e.popScopeId(),t),GT={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},qT={class:"absolute right-[12px] top-[12px]"},KT={class:"deleteBox c_fff handlingException text-hy-text-main bg-hy-dialog-bg relative z-[20]"},XT={class:"dialog_body"},JT={class:"pb_20 pb-[20px]"},ZT={class:"requiredTitle"},QT=ca(()=>e.createElementVNode("i",null,"*",-1)),vT={class:"requiredTitle"},eD=ca(()=>e.createElementVNode("i",null,"*",-1)),tD={class:"w-full"},nD={class:"r-f flex",style:{"justify-content":"space-between"}},oD={class:"requiredTitle"},aD=ca(()=>e.createElementVNode("i",null,"*",-1)),sD={class:"fs_12 text-[12px]"},lD={style:{height:"300px"}},rD={key:0,class:"mt_10 assignUserListBox mt-[10px]"},iD={class:"personnelTitle over_one_line fs_14 c_fff truncate text-[14px] text-hy-text-main"},cD={class:"fs_12 text-[12px]"},dD={class:"c_4477FF text-hy-text-primary"},pD={class:"fs_12 r-f personnelItem_box flex text-[12px]"},fD={class:"c_9DA7B2 text-hy-text-secondary"},mD=["onClick"],hD={key:1,class:"noTaskSelected centerBox c_9DA7B2 mt_10 fs_12 h_100vh flex items-center justify-center text-hy-text-secondary mt-[10px] text-[12px] h-full"},uD={class:"tac text-center"},_D={class:"mt_10 mt-[10px]"},gD={class:"operator-button centerBox mt_20 flex justify-center items-center mt-[20px]"},yD=be(e.defineComponent({__name:"handling-exception",props:{draggable:{type:Boolean,default:!1}},emits:["on-close"],setup(t,{expose:n,emit:o}){const a=o,{$t:s,show:l,dialogVisible:r,onClose:i,form:c,formRef:p,rules:d,selectPersonnelShow:f,assignUserList:m,assignUserListFn:u,activeNames:y,tableData:_,personnelDeleteFn:k,onSubmit:N,selectPersonnelRef:E}=YT({emit:a});return n({show:l}),(b,T)=>{const V=e.resolveComponent("svg-icon"),$=e.resolveComponent("el-input"),h=e.resolveComponent("el-form-item"),g=e.resolveComponent("el-col"),C=e.resolveComponent("el-button"),w=e.resolveComponent("el-collapse-item"),D=e.resolveComponent("el-collapse"),S=e.resolveComponent("el-row"),L=e.resolveComponent("el-form"),A=e.resolveComponent("el-dialog"),j=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(A,{modelValue:e.unref(r),"onUpdate:modelValue":T[4]||(T[4]=O=>e.isRef(r)?r.value=O: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:"860px",modal:!b.draggable,draggable:b.draggable,"modal-class":b.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",GT,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("abnormalTreatment")),1),e.createElementVNode("div",qT,[e.createVNode(V,{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"])])])),[[j]])]),default:e.withCtx(()=>[e.createElementVNode("div",KT,[e.createElementVNode("div",XT,[e.createElementVNode("div",JT,[e.createVNode(L,{ref_key:"formRef",ref:p,"label-position":"top",model:e.unref(c),rules:e.unref(d),"label-width":"0px"},{default:e.withCtx(()=>[e.createVNode(S,{gutter:30},{default:e.withCtx(()=>[e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createVNode(h,{prop:"taskName"},{default:e.withCtx(()=>[e.createElementVNode("div",ZT,[e.createTextVNode(e.toDisplayString(e.unref(s)("abnormalTask")),1),QT]),e.createVNode($,{modelValue:e.unref(c).taskName,"onUpdate:modelValue":T[0]||(T[0]=O=>e.unref(c).taskName=O),"enter-the-mumber":"",maxlength:"20","show-word-limit":"",placeholder:e.unref(s)("pleaseEnterTheTaskName"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})]),_:1}),e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createVNode(h,{prop:"taskInfo"},{default:e.withCtx(()=>[e.createElementVNode("div",vT,[e.createTextVNode(e.toDisplayString(e.unref(s)("taskDescription")),1),eD]),e.createVNode($,{modelValue:e.unref(c).taskInfo,"onUpdate:modelValue":T[1]||(T[1]=O=>e.unref(c).taskInfo=O),type:"textarea",resize:"none",autosize:{minRows:2,maxRows:2},placeholder:e.unref(s)("pleaseEnterTheTaskDescription")},null,8,["modelValue","placeholder"])]),_:1})]),_:1}),e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createVNode(h,{prop:"assignUserList"},{default:e.withCtx(()=>[e.createElementVNode("div",tD,[e.createElementVNode("div",nD,[e.createElementVNode("div",oD,[e.createTextVNode(e.toDisplayString(e.unref(s)("executiveStaff")),1),aD]),e.createElementVNode("div",null,[e.createVNode(C,{class:"button_function",onClick:e.unref(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("choicePersonnel")),1)]),_:1},8,["onClick"]),e.unref(m).length?(e.openBlock(),e.createBlock(C,{key:0,class:"button_delete",onClick:T[2]||(T[2]=O=>e.unref(u)([]))},{default:e.withCtx(()=>[e.createElementVNode("span",sD,e.toDisplayString(e.unref(s)("empty")),1)]),_:1})):e.createCommentVNode("",!0)])]),e.createElementVNode("div",lD,[e.unref(m).length?(e.openBlock(),e.createElementBlock("div",rD,[e.createVNode(D,{modelValue:e.unref(y),"onUpdate:modelValue":T[3]||(T[3]=O=>e.isRef(y)?y.value=O:null),accordion:"",class:"collapse-item__header_darkColor"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(O,P)=>(e.openBlock(),e.createBlock(w,{key:`${P}personnel`,class:"personnelBox",name:O.orgId},{title:e.withCtx(()=>[e.createElementVNode("div",iD,[e.createTextVNode(e.toDisplayString(O.orgName)+" ",1),e.createElementVNode("span",cD,[e.createElementVNode("span",dD,e.toDisplayString(O.deviceUserList.length),1),e.createTextVNode(e.toDisplayString(e.unref(s)("people")),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",pD,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.deviceUserList,(z,U)=>(e.openBlock(),e.createElementBlock("div",{key:`${U}deviceUserList`,class:"personnelItem centerBox flex items-center"},[e.createTextVNode(e.toDisplayString(z.name),1),e.createElementVNode("span",fD,"("+e.toDisplayString(z.jobNum)+")",1),e.createElementVNode("div",{class:"clickBox centerBox flex items-center justify-center cursor-pointer",onClick:M=>e.unref(k)(O,z)},[e.createVNode(V,{name:"base-delete","class-name":"w-[16px] h-[16px]"})],8,mD)]))),128))])]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])])):(e.openBlock(),e.createElementBlock("div",hD,[e.createElementVNode("div",uD,[e.createVNode(V,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",_D,e.toDisplayString(e.unref(s)("pleaseSelectExecutives")),1)])]))])])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),e.createElementVNode("div",gD,[e.createVNode(C,{class:"button_default buttonBox w-[100px]",type:"primary",onClick:e.unref(i)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("closure")),1)]),_:1},8,["onClick"]),e.createVNode(C,{class:"button_function buttonBox w-[100px]",onClick:e.unref(N)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("confirm")),1)]),_:1},8,["onClick"])])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24"},{content:e.withCtx(()=>[]),_:1}),e.createVNode(HT,{ref_key:"selectPersonnelRef",ref:E,"request-params":{isDeviceUser:1},draggable:b.draggable},null,8,["draggable"])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-e5ae75d1"]]);function xD({emit:t}){const n=e.ref([{label:x("personName"),prop:"name"},{label:x("staffNumber"),prop:"jobNum"}]),o=e.ref([{label:x("affiliatedDepartment"),prop:"orgName",headerSlotName:"orgHeader"},{label:x("userInfo"),width:"200px",slotName:"userInformation",type:"customSlot"},{label:x("whetherToReport"),type:"customSlot",headerSlotName:"reportStateHeader",slotName:"reportState"},{label:x("reportTime"),prop:"executeDtm"},{label:x("operate"),slotName:"operator",type:"customSlot",width:"100px"}]),a=e.ref({taskId:null,reportState:null,orgId:null}),s=e.ref(null),l=e.ref({}),r=e.ref({}),i=e.ref(null),{H:c,POI:p,isShowMap:d,layersUrlList:f,mapConfig:m}=Zt(),u=e.shallowRef(null),y=e.ref(null),_=e.ref(!1),k=e.ref(),N=e.ref(),E=e.ref(),b=e.ref();function T(M){k.value.show(M)}function V(M,Y,F){Y[F]=M}function $(M){N.value.show(M)}function h(){l.value.dealState===0||l.value.dealState===1||(E.value?E.value.getTableData():setTimeout(()=>{h()},500))}function g(M){a.value.orgId=M[M.length-1],e.nextTick(()=>{h()})}function C(M){b.value.show(M.id).then(()=>{O().then(()=>{h(),t("on-getData")})})}function w(M){if(M.del===1)return Se.error(x("theFileHasBeenDeletedAndCannotBeViewed-0"));M.fileType===1||M.fileType===2||M.fileType}function D(){e.nextTick(async()=>{let M=[];const Y=He.getCache("userInfo");Y.lng&&Y.lat&&(M=[Y.lat,Y.lng]),M.length===0&&(M=null),l.value.lng&&l.value.lat&&(M=[l.value.lat,l.value.lng]),u.value=await c.map("abnormalDetailsMap",{maxZoom:m.maxZoom||18,minZoom:m.minZoom||13,zoom:m.zoom||13,center:M,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:f,layerType:m.satelliteMap}),u.value.on("complete",()=>{console.log("加载完成"),S()})})}function S(){l.value.lng&&l.value.lat&&(console.log(l.value),c.marker(u.value,[l.value.lat,l.value.lng],{icon:`<svg aria-hidden="true" class="svg-icon" style="width: 60px; height: 60px;">
|
52
|
-
<use data-v-19e5a669="" xlink:href="#icon-marker-abnormal"></use></svg>`,zIndexOffset:10,iconAnchor:[-30,-60]}).on("click",()=>{L(l.value)}))}function L(M,Y=18){c.setView(u.value,[M.lat,M.lng],18)}function A(M){s.value=M}async function j(){return new Promise(async(M,Y)=>{const F=await Bl({recordId:i.value});F.code===200&&(r.value=F.data||{},r.value.imageList&&(r.value.imageListV2=r.value.imageList.map(Q=>Q.filePath)),M(0))})}async function O(){return new Promise(async(M,Y)=>{const F=await Hu({id:i.value});if(F.code===200){const Q=F.data||{};l.value=Q,l.value.id=i.value,a.value.taskId=Q.abnormalTaskId,M(0)}})}function P(){u.value=null}function z(M){if(!M)return Se.error(`recordId ${x("theParametersAreWrong")}`);i.value=M,P(),A("details"),a.value={taskId:null,reportState:null,orgId:null},j(),O().then(()=>{_.value=!0,e.nextTick(()=>{D(),h()})})}function U(){_.value=!1}return{$t:x,searchArr:n,tableColumns:o,requestParams:a,abnormalState:s,form:l,deviceReport:r,recordId:i,map:u,marker:y,dialogVisible:_,electronicPatrolDetailsRef:k,submissionFormRef:N,AppTableRef:E,handlingExceptionRef:b,taskDetailsShow:T,visibleChange:V,submissionFormShow:$,appTableGetData:h,orgCascaderOnChange:g,handlingExceptionShow:C,clickGroupItem:w,initMap:D,addMarker:S,pantoSomeWhere:L,abnormalStateFn:A,deviceReportFn:j,selectFn:O,emptyMap:P,show:z,onClose:U}}const kD=t=>(e.pushScopeId("data-v-15f47add"),t=t(),e.popScopeId(),t),ND={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},bD={class:"absolute right-[12px] top-[12px]"},CD={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg relative z-[20]"},wD={class:"dialog_body"},ED={class:"ovh centerBox overflow-hidden flex items-center justify-center"},SD={class:"r-f navigation flex"},TD={style:{height:"500px"},class:"c_fff fs_12 text-hy-text-main text-[12px]"},DD={class:"w_100vh h_100vh r-f details_box w-full h-full flex"},VD={class:"taskDetails lh_20 flex-shrink leading-[20px]"},$D={class:"c_dangerv2 fw_600 fs_16 mb_10 text-hy-danger font-[600] text-[16px] mb-[10px]"},BD={key:0,class:"mb_10 mb-[10px]"},ID={class:"c_9DA7B2 text-hy-text-secondary"},AD=["innerHTML"],LD={class:"mb_10 mb-[10px]"},FD={class:"c_9DA7B2 text-hy-text-secondary"},OD={class:"mb_10 mb-[10px]"},RD={class:"c_9DA7B2 text-hy-text-secondary"},PD={class:"mb_10 mb-[10px]"},MD={class:"c_9DA7B2 text-hy-text-secondary"},UD={class:"mb_10 mb-[10px]"},zD={class:"c_9DA7B2 text-hy-text-secondary"},WD={class:"f-g c-f flex flex-col w-0 flex-grow"},jD={class:"h_40 lh_40 fs_14 h-[40px] leading-[40px] text-[14px]"},HD={class:"title"},YD=kD(()=>e.createElementVNode("div",{id:"abnormalDetailsMap",class:"w_100vh w-full",style:{height:"0","flex-grow":"1","border-radius":"6px"}},null,-1)),GD={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},qD={class:"information"},KD={class:"flex_vertically_center flex items-center"},XD={style:{"margin-left":"6px"}},JD={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},ZD={class:"flex_vertically_center flex items-center"},QD={style:{"margin-left":"6px"}},vD={key:0,class:"type_box success"},eV={key:1,class:"type_box"},tV={class:"form"},nV={key:0},oV={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},aV={class:"r-f mb_10 flex_vertically_center flex items-center mb-[10px]"},sV={class:"mr_10 label flex-shrink mr-[10px]"},lV={class:"r-f flex_vertically_center flex items-center"},rV={class:"mr_10 label label_answer flex-shrink mr-[10px]"},iV={key:0,class:"c_theme text-hy-text-primary"},cV={key:1,class:"c_9DA7B2 text-hy-text-secondary"},dV={key:1},pV={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},fV={class:"group-item"},mV=["onClick"],hV={key:0,class:"c-f-i group-content r-f flex"},uV={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},_V=["src"],gV={key:1,style:{"flex-grow":"1"}},yV={class:"icon-box c-f-i flex"},xV={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},kV={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},NV={key:0,class:"information-type"},bV={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},CV={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},wV={key:0,class:"c_9DA7B2 text-hy-text-secondary"},EV={key:1},SV={key:1,class:"c-f-i group-content r-f flex"},TV={style:{"flex-grow":"1"}},DV={class:"icon-box c-f-i flex"},VV={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},$V={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},BV={key:0,class:"information-type"},IV={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},AV={key:2,style:{background:"var(--hy-warning)"},class:"information-type font-[600]"},LV={key:0,class:"c_9DA7B2 text-hy-text-secondary"},FV={key:1},OV={key:2,class:"c-f-i group-content r-f flex"},RV={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},PV=["src"],MV={key:1,style:{"flex-grow":"1"}},UV={class:"icon-box c-f-i flex"},zV={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},WV={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},jV={key:0,class:"information-type"},HV={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},YV={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},GV={key:0,class:"c_9DA7B2 text-hy-text-secondary"},qV={key:1},KV={key:2},XV={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},JV={class:"group-item"},ZV=["onClick"],QV={key:0,class:"c-f-i group-content r-f flex"},vV={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},e$=["src"],t$={key:1,style:{"flex-grow":"1"}},n$={class:"icon-box c-f-i flex"},o$={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},a$={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},s$={key:0,class:"information-type"},l$={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},r$={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},i$={key:0,class:"c_9DA7B2 text-hy-text-secondary"},c$={key:1},d$={key:1,class:"c-f-i group-content r-f flex"},p$={style:{"flex-grow":"1"}},f$={class:"icon-box c-f-i flex"},m$={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},h$={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},u$={key:0,class:"information-type"},_$={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},g$={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},y$={key:0,class:"c_9DA7B2 text-hy-text-secondary"},x$={key:1},k$={key:2,class:"c-f-i group-content r-f flex"},N$={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},b$=["src"],C$={key:1,style:{"flex-grow":"1"}},w$={class:"icon-box c-f-i flex"},E$={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},S$={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},T$={key:0,class:"information-type"},D$={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},V$={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},$$={key:0,class:"c_9DA7B2 text-hy-text-secondary"},B$={key:1},I$={class:"c-f w_100vh h_100vh handling_box flex flex-col w-full h-full"},A$={key:0,class:"h_100vh centerBox c_9DA7B2 noTaskSelected h-full flex items-center justify-center text-hy-text-secondary"},L$={class:"tac text-center"},F$={class:"mt_10 mt-[10px]"},O$={class:"fs_12 text-[12px]"},R$={key:1},P$={class:"progress_box centerBox fs_12 flex items-center justify-center text-[12px]"},M$={key:0,class:"c_theme text-hy-text-primary"},U$={key:1,class:"c_success text-hy-success"},z$={style:{width:"108px"},class:"plr_10 p-[0_10px]"},W$={class:"c_theme text-hy-text-primary"},j$={key:0,class:"r-f flex",style:{"flex-wrap":"wrap"}},H$={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},Y$={key:1,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},G$={key:0,class:"c_theme text-hy-text-primary"},q$={key:1,class:"c_9DA7B2 text-hy-text-secondary"},K$={class:"pos_r relative"},X$={key:0,style:{cursor:"pointer"}},J$=be(e.defineComponent({__name:"abnormal-detail",props:{draggable:{type:Boolean,default:!1}},emits:["on-getData"],setup(t,{expose:n,emit:o}){const a=o,{$t:s,show:l,dialogVisible:r,handlingExceptionRef:i,electronicPatrolDetailsRef:c,submissionFormRef:p,onClose:d,abnormalState:f,AppTableRef:m,abnormalStateFn:u,form:y,taskDetailsShow:_,deviceReport:k,clickGroupItem:N,handlingExceptionShow:E,tableColumns:b,searchArr:T,requestParams:V,submissionFormShow:$,orgCascaderOnChange:h,appTableGetData:g,visibleChange:C}=xD({emit:a});return n({show:l}),(w,D)=>{const S=e.resolveComponent("svg-icon"),L=$t,A=e.resolveComponent("el-icon"),j=e.resolveComponent("el-button"),O=e.resolveComponent("el-progress"),P=e.resolveComponent("el-option"),z=e.resolveComponent("el-select"),U=Tl,M=e.resolveComponent("el-dialog"),Y=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(M,{modelValue:e.unref(r),"onUpdate:modelValue":D[8]||(D[8]=F=>e.isRef(r)?r.value=F: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:"1000px",modal:!w.draggable,draggable:w.draggable,"modal-class":w.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",ND,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("abnormalDetail")),1),e.createElementVNode("div",bD,[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"])])])),[[Y]])]),default:e.withCtx(()=>[e.createElementVNode("div",CD,[e.createElementVNode("div",wD,[e.createElementVNode("div",ED,[e.createElementVNode("ul",SD,[e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(f)==="details"}]),onClick:D[0]||(D[0]=F=>e.unref(u)("details"))},e.toDisplayString(e.unref(s)("abnormalDetails")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(f)==="form"}]),onClick:D[1]||(D[1]=F=>e.unref(u)("form"))},e.toDisplayString(e.unref(s)("abnormalForm")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(f)==="handling"}]),onClick:D[2]||(D[2]=F=>e.unref(u)("handling"))},e.toDisplayString(e.unref(s)("handling")),3)])]),e.createElementVNode("div",TD,[e.withDirectives(e.createElementVNode("div",DD,[e.createElementVNode("div",VD,[e.createElementVNode("p",$D,e.toDisplayString(e.unref(y).taskName),1),e.unref(y).taskInfo?(e.openBlock(),e.createElementBlock("div",BD,[e.createElementVNode("p",ID,e.toDisplayString(e.unref(s)("taskDescription")),1),e.createElementVNode("p",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(y).taskInfo},null,8,AD)])):e.createCommentVNode("",!0),e.createElementVNode("div",LD,[e.createElementVNode("p",FD,e.toDisplayString(e.unref(s)("implementRoute")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(y).lineName),1)]),e.createElementVNode("div",OD,[e.createElementVNode("p",RD,e.toDisplayString(e.unref(s)("abnormalLocation")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(y).pointName),1)]),e.createElementVNode("div",PD,[e.createElementVNode("p",MD,e.toDisplayString(e.unref(s)("executionTime")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(y).executeDtm),1)]),e.createElementVNode("div",UD,[e.createElementVNode("p",zD,e.toDisplayString(e.unref(s)("associatedTask")),1),e.createElementVNode("p",{class:"c_theme flex_vertically_center clickBox css-text-no-select text-hy-text-primary flex items-center cursor-pointer",onClick:D[3]||(D[3]=F=>e.unref(_)(e.unref(y).sourceId))},[e.createElementVNode("span",null,e.toDisplayString(e.unref(y).sourceTaskName),1),e.createVNode(A,{class:"ml-[6px] !text-[14px] !text-hy-text-primary"},{default:e.withCtx(()=>[e.createVNode(L)]),_:1})])])]),e.createElementVNode("div",WD,[e.createElementVNode("div",jD,[e.createElementVNode("span",HD,e.toDisplayString(e.unref(s)("abnormalPosition")),1)]),YD])],512),[[e.vShow,e.unref(f)==="details"]]),e.withDirectives(e.createElementVNode("div",GD,[e.createElementVNode("div",qD,[e.createElementVNode("div",KD,[e.createVNode(S,{style:{width:"14px",height:"14px"},name:"base-user-online"}),e.createElementVNode("span",XD,[e.createTextVNode(e.toDisplayString(e.unref(k).name),1),e.unref(k).jobNum?(e.openBlock(),e.createElementBlock("span",JD,"("+e.toDisplayString(e.unref(k).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",ZD,[e.createVNode(S,{name:"base-every-day-time","class-name":"w-[16px] h-[16px]"}),e.createElementVNode("span",QD,e.toDisplayString(e.unref(k).executeDtm),1)]),e.unref(k).checkState===1?(e.openBlock(),e.createElementBlock("div",vD,e.toDisplayString(e.unref(s)("normal")),1)):e.unref(k).checkState===2?(e.openBlock(),e.createElementBlock("div",eV,e.toDisplayString(e.unref(s)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",tV,[e.unref(k).formList&&e.unref(k).formList.length?(e.openBlock(),e.createElementBlock("div",nV,[e.createElementVNode("div",oV,e.toDisplayString(e.unref(s)("formContent")),1),e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k).formList,(F,Q)=>(e.openBlock(),e.createElementBlock("li",{key:Q,class:"border-top ptb_10 p-[10px_0]"},[e.createElementVNode("div",aV,[e.createElementVNode("p",sV,e.toDisplayString(e.unref(s)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(F.optionTitle),1)]),e.createElementVNode("div",lV,[e.createElementVNode("p",rV,e.toDisplayString(e.unref(s)("answer")),1),F.optionValue?(e.openBlock(),e.createElementBlock("span",iV,e.toDisplayString(F.optionValue),1)):(e.openBlock(),e.createElementBlock("span",cV,e.toDisplayString(e.unref(s)("unfilled")),1))])]))),128))])])):e.createCommentVNode("",!0),e.unref(k).imageList&&e.unref(k).imageList.length?(e.openBlock(),e.createElementBlock("div",dV,[e.createElementVNode("div",pV,e.toDisplayString(e.unref(s)("picture")),1),e.createElementVNode("div",fV,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k).imageList,F=>(e.openBlock(),e.createElementBlock("div",{key:F.id,onClick:Q=>e.unref(N)(F)},[F.fileType===1?(e.openBlock(),e.createElementBlock("div",hV,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:F.check},"group-content-item"])},[F.filePath&&F.del!==1?(e.openBlock(),e.createElementBlock("div",uV,[e.createElementVNode("img",{src:F.filePath,class:"h_100vh h-full"},null,8,_V)])):(e.openBlock(),e.createElementBlock("div",gV,[e.createElementVNode("div",yV,[e.createVNode(S,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(S,{style:{margin:"0 4px"},name:"menu-image","class-name":"w-[40px] h-[40px]"}),e.createVNode(S,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",xV,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:F.del===1}])},e.toDisplayString(F.fileName),3)]),e.createElementVNode("div",kV,[F.type===1?(e.openBlock(),e.createElementBlock("div",NV,e.toDisplayString(e.unref(s)("daily")),1)):F.type===2?(e.openBlock(),e.createElementBlock("div",bV,e.toDisplayString(e.unref(s)("task")),1)):F.type===3?(e.openBlock(),e.createElementBlock("div",CV," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[F.hadPoint?(e.openBlock(),e.createElementBlock("li",wV,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),F.hadRemark?(e.openBlock(),e.createElementBlock("li",EV,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),F.mark?(e.openBlock(),e.createBlock(S,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):F.fileType===4?(e.openBlock(),e.createElementBlock("div",SV,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:F.check},"group-content-item"])},[e.createElementVNode("div",TV,[e.createElementVNode("div",DV,[e.createVNode(S,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(S,{name:"menu-micphone","class-name":"w-[40px] h-[40px]"}),e.createVNode(S,{style:{"margin-left":"4px"},name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])]),e.createElementVNode("div",VV,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:F.del===1}])},e.toDisplayString(F.fileName),3)]),e.createElementVNode("div",$V,[F.type===1?(e.openBlock(),e.createElementBlock("div",BV,e.toDisplayString(e.unref(s)("daily")),1)):F.type===2?(e.openBlock(),e.createElementBlock("div",IV,e.toDisplayString(e.unref(s)("task")),1)):F.type===3?(e.openBlock(),e.createElementBlock("div",AV," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[F.hadPoint?(e.openBlock(),e.createElementBlock("li",LV,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),F.hadRemark?(e.openBlock(),e.createElementBlock("li",FV,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),F.mark?(e.openBlock(),e.createBlock(S,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):F.fileType===2?(e.openBlock(),e.createElementBlock("div",OV,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:F.check},"group-content-item"])},[F.screenshot1?(e.openBlock(),e.createElementBlock("div",RV,[e.createElementVNode("img",{src:F.screenshot1,class:"h_100vh h-full"},null,8,PV)])):(e.openBlock(),e.createElementBlock("div",MV,[e.createElementVNode("div",UV,[e.createVNode(S,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(S,{style:{margin:"0 4px"},name:"menu-video","class-name":"w-[40px] h-[40px]"}),e.createVNode(S,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",zV,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:F.del===1}])},e.toDisplayString(F.fileName),3)]),e.createElementVNode("div",WV,[F.type===1?(e.openBlock(),e.createElementBlock("div",jV,e.toDisplayString(e.unref(s)("daily")),1)):F.type===2?(e.openBlock(),e.createElementBlock("div",HV,e.toDisplayString(e.unref(s)("task")),1)):F.type===3?(e.openBlock(),e.createElementBlock("div",YV," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[F.hadPoint?(e.openBlock(),e.createElementBlock("li",GV,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),F.hadRemark?(e.openBlock(),e.createElementBlock("li",qV,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),F.mark?(e.openBlock(),e.createBlock(S,{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,mV))),128))])])):e.createCommentVNode("",!0),e.unref(k).videoList&&e.unref(k).videoList.length?(e.openBlock(),e.createElementBlock("div",KV,[e.createElementVNode("div",XV,e.toDisplayString(e.unref(s)("video")),1),e.createElementVNode("div",JV,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k).videoList,F=>(e.openBlock(),e.createElementBlock("div",{key:F.id,onClick:Q=>e.unref(N)(F)},[F.fileType===1?(e.openBlock(),e.createElementBlock("div",QV,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:F.check},"group-content-item"])},[F.filePath&&F.del!==1?(e.openBlock(),e.createElementBlock("div",vV,[e.createElementVNode("img",{src:F.filePath,class:"h_100vh h-full"},null,8,e$)])):(e.openBlock(),e.createElementBlock("div",t$,[e.createElementVNode("div",n$,[e.createVNode(S,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(S,{style:{margin:"0 4px"},name:"menu-image","class-name":"w-[40px] h-[40px]"}),e.createVNode(S,{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:F.del===1}])},e.toDisplayString(F.fileName),3)]),e.createElementVNode("div",a$,[F.type===1?(e.openBlock(),e.createElementBlock("div",s$,e.toDisplayString(e.unref(s)("daily")),1)):F.type===2?(e.openBlock(),e.createElementBlock("div",l$,e.toDisplayString(e.unref(s)("task")),1)):F.type===3?(e.openBlock(),e.createElementBlock("div",r$," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[F.hadPoint?(e.openBlock(),e.createElementBlock("li",i$,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),F.hadRemark?(e.openBlock(),e.createElementBlock("li",c$,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),F.mark?(e.openBlock(),e.createBlock(S,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):F.fileType===4?(e.openBlock(),e.createElementBlock("div",d$,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:F.check},"group-content-item"])},[e.createElementVNode("div",p$,[e.createElementVNode("div",f$,[e.createVNode(S,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(S,{name:"menu-micphone","class-name":"w-[40px] h-[40px]"}),e.createVNode(S,{style:{"margin-left":"4px"},name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])]),e.createElementVNode("div",m$,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:F.del===1}])},e.toDisplayString(F.fileName),3)]),e.createElementVNode("div",h$,[F.type===1?(e.openBlock(),e.createElementBlock("div",u$,e.toDisplayString(e.unref(s)("daily")),1)):F.type===2?(e.openBlock(),e.createElementBlock("div",_$,e.toDisplayString(e.unref(s)("task")),1)):F.type===3?(e.openBlock(),e.createElementBlock("div",g$," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[F.hadPoint?(e.openBlock(),e.createElementBlock("li",y$,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),F.hadRemark?(e.openBlock(),e.createElementBlock("li",x$,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),F.mark?(e.openBlock(),e.createBlock(S,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},"svg-name":"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):F.fileType===2?(e.openBlock(),e.createElementBlock("div",k$,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:F.check},"group-content-item"])},[F.screenshot1?(e.openBlock(),e.createElementBlock("div",N$,[e.createElementVNode("img",{src:F.screenshot1,class:"h_100vh h-full"},null,8,b$)])):(e.openBlock(),e.createElementBlock("div",C$,[e.createElementVNode("div",w$,[e.createVNode(S,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(S,{style:{margin:"0 4px"},name:"menu-video","class-name":"w-[40px] h-[40px]"}),e.createVNode(S,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",E$,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:F.del===1}])},e.toDisplayString(F.fileName),3)]),e.createElementVNode("div",S$,[F.type===1?(e.openBlock(),e.createElementBlock("div",T$,e.toDisplayString(e.unref(s)("daily")),1)):F.type===2?(e.openBlock(),e.createElementBlock("div",D$,e.toDisplayString(e.unref(s)("task")),1)):F.type===3?(e.openBlock(),e.createElementBlock("div",V$," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[F.hadPoint?(e.openBlock(),e.createElementBlock("li",$$,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),F.hadRemark?(e.openBlock(),e.createElementBlock("li",B$,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),F.mark?(e.openBlock(),e.createBlock(S,{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,ZV))),128))])])):e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(f)==="form"]]),e.withDirectives(e.createElementVNode("div",I$,[e.unref(y).dealState===0||e.unref(y).dealState===1?(e.openBlock(),e.createElementBlock("div",A$,[e.createElementVNode("div",L$,[e.createVNode(S,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",F$,[e.unref(y).dealState===1?(e.openBlock(),e.createBlock(j,{key:0,class:"button_function",onClick:D[4]||(D[4]=F=>e.unref(E)(e.unref(y)))},{default:e.withCtx(()=>[e.createElementVNode("span",O$,e.toDisplayString(e.unref(s)("processedImmediately")),1)]),_:1})):(e.openBlock(),e.createElementBlock("span",R$,e.toDisplayString(e.unref(s)("noNeedToDealWith")),1))])])])):(e.openBlock(),e.createBlock(Yt,{key:1,ref_key:"AppTableRef",ref:m,"column-list":e.unref(b),"search-arr":e.unref(T),"default-get-data":!1,"req-url":"scrollCheck/abnormal/sctUser/page","search-form":e.unref(V),height:"100%"},{tableLeft:e.withCtx(()=>[e.createElementVNode("div",P$,[e.unref(y).dealState===2?(e.openBlock(),e.createElementBlock("span",M$,e.toDisplayString(e.unref(s)("execute")),1)):e.unref(y).dealState===3?(e.openBlock(),e.createElementBlock("span",U$,e.toDisplayString(e.unref(s)("completed")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",z$,[e.createVNode(O,{class:e.normalizeClass({"progress-bar_outer":e.unref(y).taskProgress!==100}),"text-inside":!0,"stroke-width":16,status:e.unref(y).taskProgress!==100?"exception":"success",percentage:e.unref(y).taskProgress},null,8,["class","status","percentage"])]),e.createElementVNode("span",W$,e.toDisplayString(e.unref(y).finishNum||0)+"/"+e.toDisplayString(e.unref(y).totalNum||0),1)])]),userInformation:e.withCtx(({row:F})=>[F.name?(e.openBlock(),e.createElementBlock("div",j$,[e.createTextVNode(e.toDisplayString(F.name)+" ",1),F.jobNum?(e.openBlock(),e.createElementBlock("span",H$,"("+e.toDisplayString(F.jobNum)+")",1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",Y$," -- "))]),reportState:e.withCtx(({row:F})=>[F.reportState===1?(e.openBlock(),e.createElementBlock("span",G$,e.toDisplayString(e.unref(s)("haveBeenReported")),1)):(e.openBlock(),e.createElementBlock("span",q$,e.toDisplayString(e.unref(s)("notReported")),1))]),operator:e.withCtx(({row:F})=>[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(s)("viewForm"),onClick:Q=>e.unref($)(F)},null,8,["tips","onClick"])]),orgHeader:e.withCtx(({column:F})=>[e.createVNode(El,{ref:"orgCascader","content-type":!0,onChange:D[5]||(D[5]=Q=>e.unref(h)(Q))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(F.label),1)]),_:2},1536)]),reportStateHeader:e.withCtx(({column:F})=>[e.createElementVNode("div",K$,[e.createElementVNode("div",{style:e.normalizeStyle([{opacity:F.focusType?1:0,position:F.focusType?"relative":"absolute"},{top:"0",left:"0",right:"0",bottom:"0"}])},[e.createVNode(z,{modelValue:e.unref(V).reportState,"onUpdate:modelValue":D[6]||(D[6]=Q=>e.unref(V).reportState=Q),style:{width:"100%"},clearable:"",placeholder:F.label,onChange:D[7]||(D[7]=Q=>e.unref(g)()),onVisibleChange:Q=>e.unref(C)(Q,F,"focusType")},{default:e.withCtx(()=>[e.createVNode(P,{label:e.unref(s)("notReported"),value:0},null,8,["label"]),e.createVNode(P,{label:e.unref(s)("haveBeenReported"),value:1},null,8,["label"])]),_:2},1032,["modelValue","placeholder","onVisibleChange"])],4),F.focusType?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",X$,[e.createVNode(A,null,{default:e.withCtx(()=>[e.createVNode(U)]),_:1}),e.createTextVNode(" "+e.toDisplayString(F.label)+" ",1),e.withDirectives(e.createElementVNode("span",{class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"}," ("+e.toDisplayString(e.unref(s)("reported")),513),[[e.vShow,e.unref(V).reportState===1]]),e.withDirectives(e.createElementVNode("span",{class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"}," ("+e.toDisplayString(e.unref(s)("notReported-0")),513),[[e.vShow,e.unref(V).reportState===0]])]))])]),_:1},8,["column-list","search-arr","search-form"]))],512),[[e.vShow,e.unref(f)==="handling"]])]),e.createVNode(yD,{ref_key:"handlingExceptionRef",ref:i,draggable:w.draggable},null,8,["draggable"]),e.createVNode(Er,{ref_key:"submissionFormRef",ref:p,draggable:w.draggable},null,8,["draggable"]),e.createVNode(Tr,{ref_key:"electronicPatrolDetailsRef",ref:c,draggable:w.draggable},null,8,["draggable"])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-15f47add"]]);function Z$(){const t=e.ref(!1),n=e.ref(),{H:o,POI:a,isShowMap:s,layersUrlList:l,mapConfig:r}=Zt(),i=e.shallowRef(),c=e.shallowRef();e.ref();const p=e.ref(""),d=[{label:"地理地址",value:1},{label:"部门名称",value:4}];function f({mapRailId:_}){n.value=_,t.value=!0,y()}function m(){t.value=!1}async function u(){p.value=null;const _=await gr({id:n.value});if(_.code===200){const k=_.data.pointList;p.value=_.data.railName;const N=[];k.forEach(E=>{N.push([E.lat,E.lng])}),c.value=o.polygon(i.value,N,{weight:6,color:"#FF33FF",opacity:.2,fillColor:"#1791fc",fillOpacity:.4}),o.fitBounds(i.value,N)}}function y(){e.nextTick(async()=>{let _=[];const k=He.getCache("userInfo");k.lng&&k.lat&&(_=[k.lat,k.lng]),_.length===0&&(_=null),i.value=await o.map("locationArea_container",{maxZoom:r.maxZoom||18,minZoom:r.minZoom||13,zoom:r.zoom||13,center:_,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:l,layerType:r.satelliteMap||1}),i.value.on("complete",()=>{u()})})}return{dialogVisible:t,show:f,close:m,railName:p,POI:a,map:i,H:o,searchTypes:d}}const Q$=t=>(e.pushScopeId("data-v-e3121b24"),t=t(),e.popScopeId(),t),v$={class:"w-full h-[560px] relative p-[10px] box-border"},e2=Q$(()=>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)),t2={class:"absolute top-[20px] right-[20px] w-[300px] z-10"},n2={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"},o2={class:"flex"},a2={class:"flex justify-center items-center"},s2={style:{"margin-left":"8px"}},l2={class:"font-bold"},r2=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}=Z$();return n({show:a}),(d,f)=>{const m=e.resolveComponent("el-button"),u=e.resolveComponent("svg-icon"),y=e.resolveComponent("el-dialog"),_=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",v$,[e2,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",t2,[e.createVNode(na,{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",n2,[e.createElementVNode("div",o2,[e.createElementVNode("div",null,[e.createElementVNode("span",a2,[e.createVNode(u,{name:"police-situation-ps-around",style:{width:"20px",height:"20px"}}),e.createElementVNode("span",s2,e.toDisplayString(e.unref(x)("currentPositioning")),1)])]),e.createElementVNode("div",l2,[e.createElementVNode("span",null,e.toDisplayString(e.unref(l)),1)])])])])]),_:1})),[[_]])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-e3121b24"]]),i2={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},c2=[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 d2(t,n){return e.openBlock(),e.createElementBlock("svg",i2,[...c2])}const Dr={name:"ep-success-filled",render:d2},p2={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},f2=[e.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1)];function m2(t,n){return e.openBlock(),e.createElementBlock("svg",p2,[...f2])}const Vr={name:"ep-caret-right",render:m2};function h2({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 ia({id:t.taskItemId,viewMode:1});if(d.code===200){const f=d.data||{};if(f.deviceUserList){const u=f.deviceUserList,y=[];u.forEach(_=>{const k=y.findIndex(E=>E.orgId===_.orgId),N=_;N.key=Hn(1),k===-1?y.push({orgName:_.orgName,orgId:_.orgId,deviceUserList:[{...N}]}):y[k].deviceUserList.push({...N})}),s.value=y}else s.value=[];a.value=[],s.value.forEach(u=>{u.deviceUserList&&u.deviceUserList.length&&a.value.push(...u.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 u2={class:"r-f h_100vh flex h-full"},_2={class:"background_box information css-text-no-select"},g2=["onClick"],y2={style:{"margin-left":"4px"}},x2=["onClick"],k2={class:"flex-grow flex w-0"},N2={class:"over_one_line flex-grow w-0 truncate"},b2={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},C2={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},w2={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},E2={class:"flex_vertically_center mb_10 flex items-center mb-[10px]"},S2={class:"title_box pl_10 pl-[10px]"},T2={class:"c_9DA7B2 text-hy-text-secondary"},D2={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},V2={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},$2={class:"recordList fs_12 text-[12px] overflow-hidden"},B2={class:"actionList c_fff"},I2={key:0,class:"indexBox centerBox flex items-center justify-center"},A2={key:1,class:"indexBoxv2 centerBox"},L2={class:"mediaFileList c_9DA7B2 text-hy-text-secondary"},F2={key:0,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},O2={key:1},R2=["onClick"],P2={class:"fileDel clickBox"},M2={key:1,class:"file clickBox"},U2={key:2,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},z2=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}=h2({props:o});return e.onMounted(()=>{c()}),n({taskItemViewFn:c}),(m,u)=>{const y=Vr,_=e.resolveComponent("el-icon"),k=$t,N=e.resolveComponent("el-tooltip"),E=Dr;return e.openBlock(),e.createElementBlock("div",u2,[e.createElementVNode("div",_2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(b,T)=>(e.openBlock(),e.createElementBlock("div",{key:`${T}deviceUserList`},[e.createElementVNode("div",{class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:V=>e.unref(p)(b.orgId)},[e.createVNode(_,{style:e.normalizeStyle({transform:b.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",y2,e.toDisplayString(b.orgName),1)],8,g2),e.createElementVNode("div",{class:"transition_05",style:e.normalizeStyle({overflow:b.orgId===e.unref(i)?"inherit":"hidden",height:b.orgId===e.unref(i)?`${b.deviceUserList.length*40}px`:"0px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.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",k2,[e.createElementVNode("div",N2,e.toDisplayString(V.deviceUserName),1),e.createElementVNode("span",b2," ("+e.toDisplayString(V.jobNum)+")",1)]),V.status===0?(e.openBlock(),e.createElementBlock("div",C2,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",w2,e.toDisplayString(e.unref(a)("finish")),1))],8,x2))),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),b=>(e.openBlock(),e.createElementBlock("li",{key:b.key,ref_for:!0,ref:b.key,class:"ovh"},[e.createElementVNode("div",E2,[e.createElementVNode("div",S2,[e.createTextVNode(e.toDisplayString(b.deviceUserName)+" ",1),e.createElementVNode("span",T2,"("+e.toDisplayString(b.jobNum)+")",1)]),b.status===0?(e.openBlock(),e.createElementBlock("div",D2,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",V2,e.toDisplayString(e.unref(a)("finish")),1))]),e.createElementVNode("ul",$2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.recordList,(T,V)=>(e.openBlock(),e.createElementBlock("li",{key:`${V}recordList`,class:e.normalizeClass([`recordItem_${T.status}`,"background_box mb_10 ovh overflow-hidden mb-[10px]"])},[e.createElementVNode("div",B2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.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",I2,e.toDisplayString(V+1),1)):(e.openBlock(),e.createElementBlock("span",A2)),e.createElementVNode("span",null,e.toDisplayString($.actionDetail),1)]))),128))]),e.createElementVNode("div",L2,[T.status===0?(e.openBlock(),e.createElementBlock("div",F2,[e.createVNode(_,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(k)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("unfinishedTask")),1)])):T.status===1&&T.mediaFileList&&T.mediaFileList.length?(e.openBlock(),e.createElementBlock("div",O2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.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(_,{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(N,{key:0,class:"item",effect:"dark",content:e.unref(a)("theFileHasBeenDeletedAndCannotBeViewed"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",P2,e.toDisplayString($.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",M2,e.toDisplayString($.fileName),1))],8,R2))),128))])):(e.openBlock(),e.createElementBlock("div",U2,[e.createVNode(_,{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"]]),W2={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},j2=[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 H2(t,n){return e.openBlock(),e.createElementBlock("svg",W2,[...j2])}const Y2={name:"ep-clock",render:H2};function G2({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 ia({id:t.taskItemId,viewMode:1});if(p.code===200){const d=p.data||{};if(d.deviceUserList){const m=d.deviceUserList,u=[];m.forEach(y=>{const _=u.findIndex(N=>N.orgId===y.orgId),k=y;if(k.key=Hn(1),y.userReport){const N=y.userReport;k.urTemplateName=N.templateName,k.urSubmitDtm=N.submitDtm,k.urOptionList=N.optionList||[]}_===-1?u.push({orgName:y.orgName,orgId:y.orgId,deviceUserList:[{...k}]}):u[_].deviceUserList.push({...k})}),s.value=u}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 q2={class:"r-f h_100vh flex h-full"},K2={class:"background_box information css-text-no-select"},X2=["onClick"],J2={style:{"margin-left":"4px"}},Z2=["onClick"],Q2={class:"flex-grow flex w-0"},v2={class:"over_one_line flex-grow w-0 truncate"},eB={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},tB={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},nB={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},oB={key:0,ref:"reportListRef",class:"f-g reportList w-0 flex-grow"},aB={key:0,class:"background_box h_100vh lh_20 h-full leading-[20px]"},sB={class:"fs_14 plr_20 border-bottom mtb_10 m-[10px_0] p-[0_20px] text-[14px]"},lB={class:"flex_vertically_center flex items-center",style:{"justify-content":"space-between"}},rB={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},iB={class:"c_9DA7B2 r-f lh_30 flex leading-[30px] text-hy-text-secondary",style:{"justify-content":"space-between"}},cB={class:"flex_vertically_center flex items-center"},dB={style:{"margin-left":"4px"}},pB={style:{padding:"0 20px 10px"}},fB={class:"mb_10 r-f mb-[10px] flex"},mB={class:"mr_10 label flex-shrink mr-[10px]"},hB={class:"c_theme r-f flex text-hy-text-primary"},uB={class:"mr_10 label label_answer flex-shrink mr-[10px]"},_B={key:0,class:"c_theme text-hy-text-primary"},gB={key:1,class:"c_theme text-hy-text-primary"},yB={key:1,class:"background_box h_100vh c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary h-full"},xB={class:"fs_14 plr_20 border-bottom text-[14px] p-[0_20px]"},kB={class:"flex_vertically_center lh_40 flex items-center leading-[40px]",style:{"justify-content":"space-between"}},NB={class:"c_9DA7B2 text-hy-text-secondary"},bB={class:"tac ptb_20 p-[20px_0] text-center"},CB={class:"mt_10 mt-[10px]"},wB={key:0},EB={key:1},SB={key:2,class:"c_success text-hy-success"},TB=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}=G2({props:o});return e.onMounted(()=>{i()}),n({taskItemViewFn:i}),(d,f)=>{const m=Vr,u=e.resolveComponent("el-icon"),y=Y2,_=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",q2,[e.createElementVNode("div",K2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(k,N)=>(e.openBlock(),e.createElementBlock("div",{key:`${N}deviceUserList`},[e.createElementVNode("div",{class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:E=>e.unref(c)(k.orgId)},[e.createVNode(u,{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",J2,e.toDisplayString(k.orgName),1)],8,X2),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,b)=>(e.openBlock(),e.createElementBlock("div",{key:`${b}device`,class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:T=>e.unref(p)(E)},[e.createElementVNode("div",Q2,[e.createElementVNode("div",v2,e.toDisplayString(E.deviceUserName),1),e.createElementVNode("span",eB," ("+e.toDisplayString(E.jobNum)+")",1)]),E.taskReportStatus===1?(e.openBlock(),e.createElementBlock("div",tB,e.toDisplayString(e.unref(a)("unfilled")),1)):E.taskReportStatus===2?(e.openBlock(),e.createElementBlock("div",nB,e.toDisplayString(e.unref(a)("haveBeenFilledIn")),1)):e.createCommentVNode("",!0)],8,Z2))),128))],4)]))),128))]),e.unref(l)&&e.unref(l).length?(e.openBlock(),e.createElementBlock("div",oB,[(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",aB,[e.createElementVNode("div",sB,[e.createElementVNode("div",lB,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(k.deviceUserName)+" ",1),e.createElementVNode("span",rB,"("+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",iB,[e.createElementVNode("div",null,e.toDisplayString(k.urTemplateName),1),e.createElementVNode("div",cB,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(y)]),_:1}),e.createElementVNode("span",dB,e.toDisplayString(k.urSubmitDtm),1)])])]),e.createElementVNode("div",pB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.urOptionList,(N,E)=>(e.openBlock(),e.createElementBlock("div",{key:`${E}urOptionList`,class:"reportItem ptb_10 border-bottom p-[10px_0] text-[12px]"},[e.createElementVNode("div",fB,[e.createElementVNode("div",mB,e.toDisplayString(e.unref(a)("ask")),1),e.createTextVNode(" "+e.toDisplayString(N.optionTitle),1)]),e.createElementVNode("div",hB,[e.createElementVNode("div",uB,e.toDisplayString(e.unref(a)("answer")),1),N.optionValue?(e.openBlock(),e.createElementBlock("span",_B,e.toDisplayString(N.optionValue),1)):(e.openBlock(),e.createElementBlock("span",gB,e.toDisplayString(e.unref(a)("none")),1))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",yB,[e.createElementVNode("div",xB,[e.createElementVNode("div",kB,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(k.deviceUserName)+" ",1),e.createElementVNode("span",NB,"("+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",bB,[e.createVNode(_,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",CB,[k.taskReportStatus===0?(e.openBlock(),e.createElementBlock("span",wB,e.toDisplayString(e.unref(a)("noNeedToSubmitATaskReport")),1)):k.taskReportStatus===1?(e.openBlock(),e.createElementBlock("span",EB,e.toDisplayString(e.unref(a)("unpackTaskReport")),1)):k.taskReportStatus===2?(e.openBlock(),e.createElementBlock("span",SB,e.toDisplayString(e.unref(a)("submittedTaskReport")),1)):e.createCommentVNode("",!0)])])]))]))),128))],512)):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-4d03873f"]]);function DB({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 ia({id:t.taskItemId,viewMode:2});if(p.code===200){const d=p.data||{};if(d.opList){const f=d.opList||[],m=[];f.forEach(u=>{const y=u.actionList.map(_=>_.actionDetail);m.push({...u,key:u.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 VB={class:"r-f h_100vh h-full flex"},$B={class:"background_box information css-text-no-select"},BB=["onClick"],IB={class:"r-f f-g flex flex-grow w-0"},AB={class:"indexBox centerBox flex-shrink flex justify-center items-center",style:{left:"4px"}},LB={class:"over_one_line truncate"},FB={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},OB={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},RB={class:"recordList fs_12 text-[12px]"},PB={class:"actionList c_fff text-hy-text-main"},MB={key:0,class:"indexBox centerBox flex justify-center items-center"},UB={key:1,class:"indexBoxv2 centerBox flex justify-center items-center"},zB={class:"mediaFileList"},WB={key:0},jB={class:"flex_vertically_center pos_r relative flex items-center"},HB={class:"c_fff text-hy-text-main"},YB={key:1},GB={class:"flex_vertically_center pos_r relative flex items-center"},qB={class:"c_fff text-hy-text-main"},KB=["onClick"],XB={class:"fileDel clickBox"},JB={key:1,class:"file clickBox"},ZB={key:2},QB={class:"flex_vertically_center pos_r relative flex items-center"},vB={class:"c_fff text-hy-text-main"},eI=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}=DB({props:o});return e.onMounted(()=>{s()}),n({taskItemViewFn:s}),(p,d)=>{const f=$t,m=e.resolveComponent("el-icon"),u=Dr,y=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",VB,[e.createElementVNode("div",$B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(_,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:N=>e.unref(r)(_)},[e.createElementVNode("div",IB,[e.createElementVNode("span",AB,e.toDisplayString(k+1),1),e.createElementVNode("span",LB,e.toDisplayString(_.actionDetail),1)]),_.status===0?(e.openBlock(),e.createElementBlock("div",FB,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",OB,e.toDisplayString(e.unref(a)("finish")),1))],8,BB))),128))]),e.createElementVNode("div",{ref_key:"dataListRef",ref:i,class:"content_box"},[e.createElementVNode("ul",RB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(_,k)=>(e.openBlock(),e.createElementBlock("li",{key:_.key,ref_for:!0,ref:_.key,class:e.normalizeClass([`recordItem_${_.status}`,"background_box mb_10 ovh overflow-hidden mb-[10px]"])},[e.createElementVNode("div",PB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.actionList,(N,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",MB,e.toDisplayString(k+1),1)):(e.openBlock(),e.createElementBlock("span",UB)),e.createElementVNode("span",null,e.toDisplayString(N.actionDetail),1)]))),128))]),e.createElementVNode("div",zB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.recordList,(N,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]"},[N.status===0?(e.openBlock(),e.createElementBlock("div",WB,[e.createElementVNode("div",jB,[e.createVNode(m,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(f)]),_:1}),e.createElementVNode("span",HB,e.toDisplayString(N.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(N.jobNum)+")",1)]),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("unfinishedTask")),1)])):N.status===1&&N.mediaFileList&&N.mediaFileList.length?(e.openBlock(),e.createElementBlock("div",YB,[e.createElementVNode("div",GB,[e.createVNode(m,{class:"!text-hy-success icon_box"},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",qB,e.toDisplayString(N.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(N.jobNum)+")",1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.mediaFileList,(b,T)=>(e.openBlock(),e.createElementBlock("div",{key:`${T}mediaFileList`,class:"css-text-no-select",onClick:V=>e.unref(c)(b)},[e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("uploaded")),1),b.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",XB,e.toDisplayString(b.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",JB,e.toDisplayString(b.fileName),1))],8,KB))),128))])):(e.openBlock(),e.createElementBlock("div",ZB,[e.createElementVNode("div",QB,[e.createVNode(m,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",vB,e.toDisplayString(N.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(N.jobNum)+")",1)]),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("theTaskHasBeenCompletedWaitingForUploading")),1)]))]))),128))])],2))),128))])],512)])}}}),[["__scopeId","data-v-85c188ed"]]);function tI(){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 u(E){o.value=E,E===2&&(t.value.taskMode===2?f(2):f(1))}function y(){s.value=!1}function _(){return new Promise(async(E,b)=>{const T=await jE({id:n.value});T.code===200&&(t.value=T.data||{},E(0))})}function k(E=null){n.value=E,u(1),_().then(()=>{console.log(111),s.value=!0})}function N(){switch(o.value){case 1:_();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:u,onClose:y,selectFn:_,show:k,onRefresh:N}}const nI={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold"},oI={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg-1 relative z-[20]"},aI={class:"dialog_body",style:{"padding-right":"0px"}},sI={class:"ovh centerBox flex items-center justify-center overflow-hidden"},lI={class:"r-f navigation flex"},rI={key:0,class:"r-f flex",style:{height:"540px"}},iI={class:"fs_12 lh_20 h_100vh background_box information text-[12px] leading-[20px] h-full"},cI={class:"fs_16 fw_600 lh_40 text-[16px] font-[600px] leading-[40px]"},dI={key:0,class:"mb_20 mb-[20px]"},pI={class:"c_9DA7B2 text-hy-text-secondary"},fI=["innerHTML"],mI={class:"mb_20 mb-[20px]"},hI={class:"c_9DA7B2 text-hy-text-secondary"},uI={class:"c_9DA7B2 text-hy-text-secondary"},_I={class:"mb_20 mb-[20px]"},gI={class:"c_9DA7B2 text-hy-text-secondary"},yI={class:"h_100vh content_box h-full"},xI={class:"flex_vertically_center title_box flex items-center"},kI={class:"pos_r relative"},NI={class:"fs_12"},bI={class:"actionList"},CI={key:0},wI=["onClick"],EI={key:1,class:"c-f flex flex-col",style:{height:"540px"}},SI={class:"fs_12 r-f mb_10 flex text-[12px] mb-[10px]",style:{"justify-content":"space-between","padding-right":"30px"}},TI={class:"lh_20 flex_vertically_center flex items-center leading-[20px]"},DI={key:0,class:"c_dangerv2 text-hy-danger"},VI={key:1,class:"c_success text-hy-success"},$I={key:2,class:"c_9DA7B2 text-hy-text-secondary"},BI={key:3,class:"c_theme text-hy-text-primary"},II={style:{width:"108px"},class:"plr_10 p-[0_10px]"},AI={class:"c_theme text-hy-text-primary"},LI={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},FI={class:"centerBox flex justify-center items-center"},OI={style:{"margin-left":"6px"}},RI={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary flex items-center"},PI={class:"centerBox flex justify-center items-center"},MI={style:{"margin-left":"6px"}},UI={style:{"flex-grow":"1",height:"0"}},zI=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:u,viewModeFn:y,viewTaskExampleShow:_,seeTaskArea:k,navigationTypeFn:N,onRefresh:E,onClose:b}=tI();return n({show:c}),(T,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"),S=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:!T.draggable,draggable:T.draggable,"modal-class":T.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",nI,[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(b)&&e.unref(b)(...L))},[e.createVNode($,{name:"sys-button-close",style:{width:"26px",height:"26px"},"class-name":"text-hy-text-danger"})])])])),[[S]])]),default:e.withCtx(()=>[e.createElementVNode("div",oI,[e.createElementVNode("div",aI,[e.createVNode(r2,{ref_key:"selectLocationAreaRef",ref:s,draggable:T.draggable},null,8,["draggable"]),e.createElementVNode("div",sI,[e.createElementVNode("ul",lI,[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(N)(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(N)(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(N)(3))},e.toDisplayString(e.unref(o)("missionReport")),3)):e.createCommentVNode("",!0)])]),e.unref(d)===1?(e.openBlock(),e.createElementBlock("div",rI,[e.createElementVNode("div",iI,[e.createElementVNode("div",cI,e.toDisplayString(e.unref(f).taskAction),1),e.unref(f).taskDesc?(e.openBlock(),e.createElementBlock("div",dI,[e.createElementVNode("div",pI,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,fI)])):e.createCommentVNode("",!0),e.createElementVNode("div",mI,[e.createElementVNode("div",hI,e.toDisplayString(e.unref(o)("executionTime")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(f).executeDtmStr)+" ",1),e.createElementVNode("span",uI,"("+e.toDisplayString(e.unref(f).taskDateStartTime)+" ~ "+e.toDisplayString(e.unref(f).taskDateEndTime)+")",1)])]),e.createElementVNode("div",_I,[e.createElementVNode("div",gI,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",yI,[(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",xI,[e.createElementVNode("div",kI,[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:j=>e.unref(k)(L.mapRailId)},{default:e.withCtx(()=>[e.createElementVNode("span",NI,e.toDisplayString(e.unref(o)("missionArea")),1)]),_:2},1032,["onClick"])]),e.createElementVNode("ul",bI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.actionList,(j,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(j.actionDetail)+" ",1),j.taskAction?(e.openBlock(),e.createElementBlock("span",CI,'"'+e.toDisplayString(j.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(_)(L.taskExample)},e.toDisplayString(e.unref(o)("viewExample")),9,wI)):e.createCommentVNode("",!0)]))),128))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",EI,[e.withDirectives(e.createElementVNode("div",SI,[e.createElementVNode("div",TI,[e.unref(f).status===0?(e.openBlock(),e.createElementBlock("span",DI,e.toDisplayString(e.unref(o)("unfinished")),1)):e.unref(f).status===1?(e.openBlock(),e.createElementBlock("span",VI,e.toDisplayString(e.unref(o)("hasBeenCompleted")),1)):e.unref(f).status===2?(e.openBlock(),e.createElementBlock("span",$I,e.toDisplayString(e.unref(o)("notPerformed")),1)):e.unref(f).status===3?(e.openBlock(),e.createElementBlock("span",BI,e.toDisplayString(e.unref(o)("execute")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",II,[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",AI,e.toDisplayString(e.unref(f).finishNum||0)+"/"+e.toDisplayString(e.unref(f).totalNum||0),1)]),e.withDirectives(e.createElementVNode("div",LI,[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",FI,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-download-task"}),e.createElementVNode("span",OI,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",RI,[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",PI,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-user-online"}),e.createElementVNode("span",MI,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",UI,[e.unref(d)===2&&e.unref(m)===1&&e.unref(f).taskMode===1?(e.openBlock(),e.createBlock(z2,{key:0,ref_key:"peopleViewRef",ref:i,"task-item-id":e.unref(u)},null,8,["task-item-id"])):e.createCommentVNode("",!0),e.unref(d)===2&&e.unref(m)===2?(e.openBlock(),e.createBlock(eI,{key:1,ref_key:"taskViewRef",ref:r,"task-item-id":e.unref(u)},null,8,["task-item-id"])):e.unref(d)===3?(e.openBlock(),e.createBlock(TB,{key:2,ref_key:"taskReportRef",ref:l,"task-item-id":e.unref(u)},null,8,["task-item-id"])):e.createCommentVNode("",!0)])])),e.createVNode(Sr,{ref_key:"viewTaskExampleRef",ref:a,draggable:T.draggable},null,8,["draggable"])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-98e4ef70"]]),WI={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},jI=[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 HI(t,n){return e.openBlock(),e.createElementBlock("svg",WI,[...jI])}const YI={name:"ep-arrow-down",render:HI},GI={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},qI=[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 KI(t,n){return e.openBlock(),e.createElementBlock("svg",GI,[...qI])}const XI={name:"ep-arrow-up",render:KI},JI={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},ZI=[e.createElementVNode("path",{fill:"currentColor",d:"M672 192L288 511.936L672 832z"},null,-1)];function QI(t,n){return e.openBlock(),e.createElementBlock("svg",JI,[...ZI])}const vI={name:"ep-caret-left",render:QI};function $r(t){return oe.post({url:"spotCheck/task/detail",data:t,isFormData:!0})}function eA(t){return oe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function tA(t){return oe.post({url:"spotCheck/task/end",data:t,isFormData:!0})}function nA(t){return oe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function oA(t){return oe.post({url:t.id?"spotCheck/timing/update":"spotCheck/timing/insert",data:t,isJson:!0})}function aA(t){return oe.post({url:"spotCheck/template/detail",data:t,isFormData:!0})}function sA(t){return oe.post({url:t.id?"spotCheck/template/update":"spotCheck/template/insert",data:t,isJson:!0})}function lA(t){return oe.post({url:"spotCheck/task/taskExecute",data:t,isJson:!0})}function Br(t){return oe.post({url:"spotCheck/task/pttFile/page",data:t,isFormData:!0})}function rA(t){return oe.post({url:"spotCheck/task/groupBind",data:t,isJson:!0})}function iA({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:N,checkStatus:E}=k||{};if(!N)return;const b=p.value.findIndex(T=>T.deviceId===N);if(b!==-1){switch(p.value[b].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[b].checkStatus=E})}}function f(){let k=0,N=0,E=0,b=0,T=0,V=0;p.value.forEach($=>{const h=$.checkStatus,g=$.intercomGroupTem,C=$.onlineState;switch(g===1&&V++,C===2&&T++,h){case 1:k++;break;case 2:N++;break;case 3:E++;break;case 4:b++;break}}),e.nextTick(()=>{a.value=k,s.value=N,l.value=E,r.value=b,i.value=T,c.value=V,m()})}function m(){n("on-countStatus",{beReceiveNum:a.value,receivingNum:s.value,finishNum:l.value,notFinishNum:r.value,offLineNum:i.value,intercomGroupTemNum:c.value})}function u(){o.value}function y(){}async function _(k){const{code:N,data:E=[]}=await eA({taskId:t.form.id,checkStatus:k||null});N===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:u,spotCheckUnsubscribe:y,getData:_}}const cA={class:"h-[58px] bg-hy-dialog-bg-2 border border-box border-hy-border-2 rounded px-2 box-border flex items-center"},dA={class:"relative"},pA={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"},fA={class:"scale-75"},mA={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"},hA={class:"flex-grow w-0 flex"},uA={class:"mx-2 flex-grow w-0"},_A={class:"truncate"},gA={class:"text-hy-text-secondary truncate"},yA={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"},xA={class:"r-f tac flex items-center justify-center flex-col"},kA={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}=iA({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"),u=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),_=>(e.openBlock(),e.createBlock(u,{key:_.id,span:p.paramsSpan,class:"mb-2"},{default:e.withCtx(()=>[e.createElementVNode("div",cA,[e.createElementVNode("div",dA,[e.createVNode(xt,{class:"w-[36px] h-[36px]"}),_.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",pA,[e.createElementVNode("span",fA,e.toDisplayString(e.unref(x)("lin")),1)])]),_:1},8,["content"])):_.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",mA,[e.createVNode(m,{name:"icon-off-line","class-name":"!w-[10px] !h-[14px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",hA,[e.createElementVNode("div",uA,[e.createElementVNode("p",_A,e.toDisplayString(_.devName),1),e.createElementVNode("p",gA,e.toDisplayString(_.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,_.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,_.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,_.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,_.checkStatus===4]])])])])]),_:2},1032,["span"]))),128)),e.unref(s).length===0?(e.openBlock(),e.createBlock(u,{key:0,span:24,class:"h-full"},{default:e.withCtx(()=>[e.createElementVNode("div",yA,[e.createElementVNode("div",xA,[e.createVNode(m,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",kA,e.toDisplayString(e.unref(x)("noData")),1)])])]),_:1})):e.createCommentVNode("",!0)]),_:1})}}});function NA({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),u=e.ref(),y=e.ref();function _(){n.value=t.orgGroupInsertTemp.id,i.value=[],f.value=!0,N(),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},S=c.value.scrollTop,L=c.value.offsetHeight-46,A=document.querySelector(`#item-${w.id}`);if(A){const j=A.offsetTop,O=await Br(D);if(O.code===200){const{content:P=[],totalElements:z=0}=O.data;l.value=z,e.nextTick(()=>{P.forEach(U=>{i.value.findIndex(Y=>Y.id===U.id)===-1&&i.value.push(U)}),S>=j-L&&T()})}}};m.value&&clearInterval(m.value),m.value=setInterval(()=>{C()},1e4)}async function N(){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 S=await Br(D);if(S.code===200){const{content:A=[],totalElements:j=0}=S.data;l.value=j,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):T(),e.nextTick(()=>{a.value=!1})})}}function E(C){e.nextTick(()=>{c.value.scrollTo(0,document.querySelector(`#item-${C}`).offsetTop-46)})}function b(){l.value!==0&&N()}function T(){e.nextTick(()=>{c.value.scrollTo(0,c.value.scrollHeight)})}function V(){c.value=u.value,p.value=y.value,p.value.addEventListener("ended",()=>{h(),d.value=null}),c.value.onscroll=()=>{c.value.scrollTop===0&&b()}}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:u,audioElRef:y,init:_,getNewData:k,getData:N,scrollToMsg:E,topEvent:b,scrollToBottom:T,initScrollList:V,audioPlay:$,audioPause:h,getAudioContext:g}}const bA=["element-loading-text"],CA={key:0,class:"w-full h-full flex box-border items-center justify-center text-center text-hy-text-secondary"},wA={class:""},EA={class:"mt-5"},SA=["id"],TA={key:0,class:"min-w-[72px] p-1 bg-hy-dialog-bg-4 text-center rounded mb-2"},DA={key:1,class:"h-[50px] flex items-center w-full"},VA={class:"mr-2 flex-grow w-0 flex flex-col items-end"},$A={class:"w-full flex items-center justify-end"},BA=["onClick"],IA=["onClick"],AA={class:"font-bold flex-shrink-0"},LA={class:"flex-shrink-0 ml-1"},FA={key:0},OA={key:2,class:"h-[50px] flex items-center w-full"},RA={class:"ml-2 flex-grow w-0 flex flex-col items-start"},PA={class:"w-full flex items-center"},MA=["onClick"],UA={class:"flex-shrink-0 mr-1"},zA={key:0},WA={class:"font-bold flex-shrink-0"},jA=["onClick"],HA=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}=NA({props:n});return e.onMounted(()=>{p()}),e.onUnmounted(()=>{d.value&&clearInterval(d.value)}),(u,y)=>{const _=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",CA,[e.createElementVNode("div",wA,[e.createElementVNode("div",null,[e.createVNode(_,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"})]),e.createElementVNode("div",EA,[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),(N,E)=>(e.openBlock(),e.createElementBlock("div",{id:`item-${N.id}`,key:N.id,class:"p-2 box-border flex flex-col items-center"},[N.fileDtmEnd.split(" ")[0]!==(E>0&&e.unref(l)[E-1].fileDtmEnd.split(" ")[0])?(e.openBlock(),e.createElementBlock("div",TA,e.toDisplayString(N.fileDtmEnd.split(" ")[0]),1)):e.createCommentVNode("",!0),N.devUserId===o.id?(e.openBlock(),e.createElementBlock("div",DA,[e.createElementVNode("div",VA,[e.createElementVNode("div",null,e.toDisplayString(N.devUserName)+" ("+e.toDisplayString(N.serialNum||N.devUserId)+") ",1),e.createElementVNode("div",$A,[e.unref(r)===N.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:b=>e.unref(c)(N.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,BA)):e.createCommentVNode("",!0),e.createElementVNode("div",{style:e.normalizeStyle({width:N.audioLength>=60?"70%":`calc(${N.audioLength/60*90}px + 160px)`,background:e.unref(r)===N.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)===N.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:b=>e.unref(c)(N.mediaFileId)},[e.createElementVNode("div",AA,e.toDisplayString(N.audioLength)+"” ",1),e.createElementVNode("div",LA,[N.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",FA,e.toDisplayString(N.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)])],14,IA)])]),e.createVNode(xt,{class:"w-[32px] h-[32px]"})])):(e.openBlock(),e.createElementBlock("div",OA,[e.createVNode(xt,{class:"w-[32px] h-[32px]"}),e.createElementVNode("div",RA,[e.createElementVNode("div",null,e.toDisplayString(N.devUserName)+" ("+e.toDisplayString(N.serialNum||N.devUserId)+") ",1),e.createElementVNode("div",PA,[e.createElementVNode("div",{style:e.normalizeStyle({width:N.audioLength>=60?"70%":`calc(${N.audioLength/60*90}px + 160px)`,background:e.unref(r)===N.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)===N.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:b=>e.unref(c)(N.mediaFileId)},[e.createElementVNode("div",UA,[N.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",zA,e.toDisplayString(N.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",WA,e.toDisplayString(N.audioLength)+"” ",1)],14,MA),e.unref(r)===N.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:b=>e.unref(c)(N.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,jA)):e.createCommentVNode("",!0)])])]))],8,SA))),128))],512)],8,bA)),[[k,e.unref(s)]])}}});function YA(){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 rA({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()}),u(!1)}).catch(()=>{o.value=null,n.value=!0,u(!1)}))}function f(h=[]){l.value=h,u(!1),t.value.checkStyle===2&&d()}function m(h={}){const{beReceiveNum:g=0,receivingNum:C=0,finishNum:w=0,notFinishNum:D=0,offLineNum:S=0,intercomGroupTemNum:L=0}=h;t.value.beReceiveNum=g,t.value.receivingNum=C,t.value.finishNum=w,t.value.notFinishNum=D,t.value.offLineNum=S,t.value.intercomGroupTemNum=L}function u(h){s.value=h}function y(){r.value=!r.value}async function _(h){const{code:g,data:C={}}=await $r({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 N(){}function E(h){if(i.value){Se.warning(x("currentlySpotCheckInProgressPleaseProcessLater"));return}o.value=null,n.value=!1,t.value={},u(!0),_(h)}function b(){i.value=!1}function T(){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 tA({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())),b())}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:u,setMsgContentType:y,setDialogVisible:k,show:E,close:b,onClose:T,onSubmit:V,taskEnd:$,setDragLevel:N,$t:x}}const GA=t=>(e.pushScopeId("data-v-e246ad8e"),t=t(),e.popScopeId(),t),qA={class:"el-dialog__header !p-0"},KA={class:"el-dialog__body !p-[8px_0px_8px] sideFoot_content h-[700px] flex flex-col text-main text-xs"},XA={class:"h-[40px] flex items-center px-4 mb-1"},JA={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"},ZA={key:0,class:"ml-3"},QA={class:"text-hy-text-secondary"},vA={key:1,class:"ml-3"},eL={class:"text-hy-text-secondary"},tL={class:"font-bold"},nL=["element-loading-text"],oL={key:0,class:"w-full h-full flex flex-col box-border"},aL={class:"flex-shrink-0 mb-3 px-4"},sL={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},lL={class:"flex w-full"},rL={class:"flex-shrink-0"},iL={class:"text-right font-bold flex-grow w-0"},cL={class:"flex w-full text-hy-text-secondary"},dL={class:"flex-shrink-0"},pL={class:"text-right flex-grow w-0"},fL={class:"flex w-full text-hy-text-secondary"},mL={class:"flex-shrink-0"},hL={class:"text-right flex-grow w-0"},uL={class:"text-xs p-2 leading-[22px]"},_L={class:"flex w-full"},gL={class:"flex-shrink-0 tracking-[4px]"},yL={class:"text-right font-bold flex-grow w-0"},xL={class:"flex w-full"},kL={class:"flex-shrink-0 tracking-[4px]"},NL={class:"text-right font-bold flex-grow w-0"},bL={class:"flex w-full"},CL={class:"flex-shrink-0 tracking-[4px]"},wL={class:"text-right font-bold flex-grow w-0 text-hy-success"},EL={class:"flex w-full"},SL={class:"flex-shrink-0 tracking-[4px]"},TL={class:"text-right font-bold flex-grow w-0 text-hy-danger"},DL={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},VL={class:"flex-1 flex"},$L={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},BL={class:"flex-grow w-0 text-center truncate"},IL={class:"flex-1 flex"},AL={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},LL={class:"flex-grow w-0 text-center text-hy-success truncate"},FL={class:"flex-1 flex"},OL={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},RL={class:"flex-grow w-0 text-center text-hy-danger truncate"},PL={class:"w-full px-2 leading-[22px] box-border rounded bg-hy-dialog-bg-3 h-[28px] flex items-center justify-between"},ML={class:"flex"},UL={key:0,class:"ml-2 bg-hy-dialog-bg-1 h-[22px] px-2 rounded"},zL={class:"w-[400px]"},WL={class:""},jL={key:0,class:"box-border flex-grow h-0 flex px-2"},HL={class:"flex-grow w-0 px-2 overflow-x-hidden overflow-y-auto h-full"},YL={key:0,class:"w-[66%] box-border pr-2"},GL={class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},qL={key:1,class:"flex-grow h-0 px-4"},KL={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"},XL={class:"r-f tac flex text-center"},JL={class:"mt-3"},ZL={class:"mt-1"},QL={key:1,class:"w-full h-full"},vL={key:0,class:"w-full h-full flex px-4 box-border"},eF={class:"flex flex-col w-[33%]"},tF={class:"pr-2"},nF={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},oF={class:"flex w-full"},aF={class:"flex-shrink-0"},sF={class:"text-right font-bold flex-grow w-0"},lF={class:"flex w-full text-hy-text-secondary"},rF={class:"flex-shrink-0"},iF={class:"text-right flex-grow w-0"},cF={class:"flex w-full text-hy-text-secondary"},dF={class:"flex-shrink-0"},pF={class:"text-right flex-grow w-0"},fF={class:"text-xs p-2 leading-[22px]"},mF={key:0,class:"flex w-full"},hF={class:"flex-shrink-0 tracking-[4px]"},uF={class:"text-right font-bold flex-grow w-0"},_F={key:1,class:"flex w-full"},gF={class:"flex-shrink-0 tracking-[4px]"},yF={class:"text-right font-bold flex-grow w-0"},xF={class:"flex w-full"},kF={class:"flex-shrink-0 tracking-[4px]"},NF={class:"text-right font-bold flex-grow w-0 text-hy-success"},bF={class:"flex w-full"},CF={class:"flex-shrink-0 tracking-[4px]"},wF={class:"text-right font-bold flex-grow w-0 text-hy-danger"},EF={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},SF={class:"flex-1 flex"},TF={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},DF={class:"flex-grow w-0 text-center truncate"},VF={class:"flex-1 flex"},$F={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},BF={class:"flex-grow w-0 text-center text-hy-success truncate"},IF={class:"flex-1 flex"},AF={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},LF={class:"flex-grow w-0 text-center text-hy-danger truncate"},FF={class:"flex-grow h-0 mt-2 overflow-x-hidden overflow-y-auto pr-2 box-border"},OF={class:"flex-grow w-0 flex flex-col"},RF=GA(()=>e.createElementVNode("div",{class:"flex-grow h-0 overflow-hidden"},null,-1)),PF={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"},MF={class:"r-f tac flex text-center"},UF={class:"mt-5"},zF={key:1,class:"flex-grow h-full px-4"},WF={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"},jF={class:"r-f tac flex text-center"},HF={class:"mt-3"},YF={class:"mt-1"},GF={class:"h-[50px] flex items-center justify-between flex-shrink-0 px-4 mt-1"},qF={class:"text-hy-text-secondary text-xs"},KF={key:0},XF={key:1},JF={key:0},ZF={key:1},QF={key:2},vF=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:u}=YA();return(y,_)=>{const k=e.resolveComponent("svg-icon"),N=e.resolveComponent("el-popover"),E=e.resolveComponent("el-col"),b=vI,T=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:_[2]||(_[2]=(...w)=>e.unref(a)&&e.unref(a)(...w))},[e.createElementVNode("div",qA,[e.createElementVNode("div",KA,[e.createElementVNode("div",XA,[e.createElementVNode("div",JA,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",ZA,[e.createElementVNode("span",QA,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",vA,[e.createElementVNode("span",eL,e.toDisplayString(e.unref(l)("responseTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",tL,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",oL,[e.createElementVNode("div",aL,[e.createVNode($,{gutter:8},{default:e.withCtx(()=>[e.createVNode(E,{span:8},{default:e.withCtx(()=>[e.createVNode(N,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",DL,[e.createElementVNode("div",VL,[e.createElementVNode("div",$L,[e.createVNode(k,{name:"base-every-day-many-people","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",BL,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("div",IL,[e.createElementVNode("div",AL,[e.createVNode(k,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",LL,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("div",FL,[e.createElementVNode("div",OL,[e.createVNode(k,{name:"base-danger-state","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",RL,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("ul",sL,[e.createElementVNode("li",lL,[e.createElementVNode("span",rL,e.toDisplayString(e.unref(l)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",iL,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("li",cL,[e.createElementVNode("span",dL,e.toDisplayString(e.unref(l)("offlineStatus")),1),e.createElementVNode("div",pL,e.toDisplayString(e.unref(s).offLineNum||"- -"),1)]),e.createElementVNode("li",fL,[e.createElementVNode("span",mL,e.toDisplayString(e.unref(l)("temporaryGroups")),1),e.createElementVNode("div",hL,e.toDisplayString(e.unref(s).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",uL,[e.createElementVNode("li",_L,[e.createElementVNode("span",gL,e.toDisplayString(e.unref(l)("waitingToReceive")),1),e.createElementVNode("div",yL,e.toDisplayString(e.unref(s).beReceiveNum||"- -"),1)]),e.createElementVNode("li",xL,[e.createElementVNode("span",kL,e.toDisplayString(e.unref(l)("receiving")),1),e.createElementVNode("div",NL,e.toDisplayString(e.unref(s).receivingNum||"- -"),1)]),e.createElementVNode("li",bL,[e.createElementVNode("span",CL,e.toDisplayString(e.unref(l)("completed")),1),e.createElementVNode("div",wL,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("li",EL,[e.createElementVNode("span",SL,e.toDisplayString(e.unref(l)("uncompleted")),1),e.createElementVNode("div",TL,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])])]),_:1})]),_:1}),e.createVNode(E,{span:16},{default:e.withCtx(()=>[e.createElementVNode("div",PL,[e.createElementVNode("div",ML,[e.createTextVNode(e.toDisplayString(e.unref(l)("messageContent"))+" ",1),e.unref(s).playMsg===1?(e.openBlock(),e.createElementBlock("div",UL," 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:_[1]||(_[1]=(...w)=>e.unref(i)&&e.unref(i)(...w))},[e.createVNode(V,{modelValue:e.unref(c),"onUpdate:modelValue":_[0]||(_[0]=w=>e.isRef(c)?c.value=w:null),class:"item",placement:"bottom-end",trigger:"manual"},{content:e.withCtx(()=>[e.createElementVNode("div",zL,e.toDisplayString(e.unref(s).msgContent),1)]),default:e.withCtx(()=>[e.createElementVNode("span",WL,[e.createTextVNode(e.toDisplayString(e.unref(l)("viewContent"))+" ",1),e.createVNode(T,{class:e.normalizeClass(["text-sm duration-500",{"-rotate-90":e.unref(c)}])},{default:e.withCtx(()=>[e.createVNode(b)]),_:1},8,["class"])])]),_:1},8,["modelValue"])])])]),_:1})]),_:1})]),e.unref(s).checkNum!==0?(e.openBlock(),e.createElementBlock("div",jL,[e.createElementVNode("div",HL,[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",YL,[e.createElementVNode("div",GL,[e.unref(s).id?(e.openBlock(),e.createBlock(HA,{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",qL,[e.createElementVNode("div",KL,[e.createElementVNode("div",XL,[e.createVNode(k,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",JL,e.toDisplayString(e.unref(l)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",ZL,e.toDisplayString(e.unref(l)("cannotSupportThisSpotCheck")),1)])])]))])):(e.openBlock(),e.createElementBlock("div",QL,[e.unref(s).checkNum!==0?(e.openBlock(),e.createElementBlock("div",vL,[e.createElementVNode("div",eF,[e.createElementVNode("div",tF,[e.createVNode(N,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",EF,[e.createElementVNode("div",SF,[e.createElementVNode("div",TF,[e.createVNode(k,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",DF,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("div",VF,[e.createElementVNode("div",$F,[e.createVNode(k,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",BF,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("div",IF,[e.createElementVNode("div",AF,[e.createVNode(k,{name:"base-danger-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",LF,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("ul",nF,[e.createElementVNode("li",oF,[e.createElementVNode("span",aF,e.toDisplayString(e.unref(l)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",sF,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("li",lF,[e.createElementVNode("span",rF,e.toDisplayString(e.unref(l)("offlineStatus")),1),e.createElementVNode("div",iF,e.toDisplayString(e.unref(s).offLineNum||"- -"),1)]),e.createElementVNode("li",cF,[e.createElementVNode("span",dF,e.toDisplayString(e.unref(l)("temporaryGroups")),1),e.createElementVNode("div",pF,e.toDisplayString(e.unref(s).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",fF,[e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("li",mF,[e.createElementVNode("span",hF,e.toDisplayString(e.unref(l)("waitingToReceive")),1),e.createElementVNode("div",uF,e.toDisplayString(e.unref(s).beReceiveNum||"- -"),1)])):e.createCommentVNode("",!0),e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("li",_F,[e.createElementVNode("span",gF,e.toDisplayString(e.unref(l)("receiving")),1),e.createElementVNode("div",yF,e.toDisplayString(e.unref(s).receivingNum||"- -"),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",xF,[e.createElementVNode("span",kF,e.toDisplayString(e.unref(l)("completed")),1),e.createElementVNode("div",NF,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("li",bF,[e.createElementVNode("span",CF,e.toDisplayString(e.unref(l)("uncompleted")),1),e.createElementVNode("div",wF,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),_:1})]),e.createElementVNode("div",FF,[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",OF,[RF,e.unref(f)?(e.openBlock(),e.createElementBlock("div",PF,[e.createElementVNode("div",MF,[e.createVNode(k,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"}),e.createElementVNode("div",UF,e.toDisplayString(e.unref(l)("groupMemberStatusAbnormalityPreventsSpotCheck")),1)])])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",zF,[e.createElementVNode("div",WF,[e.createElementVNode("div",jF,[e.createVNode(k,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",HF,e.toDisplayString(e.unref(l)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",YF,e.toDisplayString(e.unref(l)("cannotSupportThisSpotCheck")),1)])])]))]))],8,nL)),[[C,e.unref(r)]]),e.createElementVNode("div",GF,[e.createElementVNode("div",qF,[e.createElementVNode("div",null,[e.createVNode(T,{class:"mr-1 text-sm"},{default:e.withCtx(()=>[e.createVNode(h)]),_:1}),e.unref(s).checkType===2?(e.openBlock(),e.createElementBlock("span",KF,e.toDisplayString(e.unref(l)("randomCheck")),1)):(e.openBlock(),e.createElementBlock("span",XF,[e.unref(s).checkScope===1?(e.openBlock(),e.createElementBlock("span",JF,e.toDisplayString(e.unref(l)("regionalSpotCheck")),1)):e.unref(s).checkScope===2?(e.openBlock(),e.createElementBlock("span",ZF,e.toDisplayString(e.unref(l)("departmentSpotCheck")),1)):e.unref(s).checkScope===3?(e.openBlock(),e.createElementBlock("span",QF,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(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("complete")),1)]),_:1},8,["onClick"])])])])])],4)):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-e246ad8e"]]);function eO(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(o.value.itemType),s=e.ref(o.value.itemSelectParam),l=e.ref(),r={value:"onlyId",label:"orgName",children:"children",disabled:"disabled"},i=e.ref([]),c=e.ref(null),p=e.ref(300),d=e.ref([]),f=e.ref([]);function m(h){return d.value.findIndex(g=>g[`${s.value}`]===h)}function u(h,g){let C=null;if(h[`${s.value}`]&&h.type===a.value){if(h.disabled)return;o.value.showRadio?(C=m(h[`${s.value}`]),g?C===-1&&(N([...h]),n("onCurrent",h)):C!==-1&&(d.value.splice(C,1),n("onCurrentDelete",h)),n("onSelectedData",{selectedDataList:d.value,selectedData:d.value})):o.value.showCheckbox&&!o.value.parentCheckbox?(C=m(h[`${s.value}`]),g?C===-1&&(N([...d.value,{...h}]),n("onCurrent",h)):C!==-1&&(d.value.splice(C,1),n("onCurrentDelete",h))):(l.value.setChecked(h[`${s.value}`],g,!0),b(),n("onCurrent",h)),n("onSelectedData",{selectedDataList:d.value,selectedData:d.value})}else l.value.setChecked(`${h.id}`,g,!0),b()}async function y(h){let g=null;await e.nextTick(()=>{h.disabled||(o.value.showRadio?(g=m(h[`${s.value}`]),g===-1?(N([{...h}]),n("onCurrent",h)):(d.value.splice(g,1),n("onCurrentDelete",h)),n("onSelectedData",{selectedDataList:d.value,selectedData:d.value})):o.value.showCheckbox&&!o.value.parentCheckbox?(g=m(h[`${s.value}`]),g===-1?(N([...d.value,{...h}]),n("onCurrent",h)):(d.value.splice(g,1),n("onCurrentDelete",h)),n("onSelectedData",{selectedDataList:d.value,selectedData:d.value})):(l.value.setChecked(`${h[`${s.value}`]}`,k(h[`${s.value}`]),!0),b(),n("onCurrent",h)))})}function _(h){l.value.setCheckedKeys(h||[]),b()}function k(h){return(l.value.getCheckedKeys()||[]).findIndex(w=>w===h||w===`${h}`)===-1}function N(h){o.value.showCheckbox&&o.value.parentCheckbox&&l.value.setCheckedKeys(h.map(g=>`${g[`${o.value.itemSelectParam}`]}`)||[]),d.value=h}function E(h){f.value=h}function b(){const h=l.value.getCheckedNodes()||[],g=[],C=[];h.forEach(w=>{w.type===a.value?g.push(w):C.push(w)}),N([...g]),E(C),n("onSelectedData",{selectedDataList:g,departmentList:C,selectedData:h})}function T(h,g){h.type===a.value?y(h):(c.value&&(clearTimeout(c.value),c.value=null),c.value=setTimeout(()=>{var w;n("onCurrentDepartment",h);const C=i.value.findIndex(D=>D===g.key);C===-1?((w=l.value)==null||w.expandNode(g),i.value.push(`${g.key}`)):(l.value.collapseNode(g),i.value.splice(C,1))},p.value))}function V(h){if(o.value.showCheckbox&&!o.value.parentCheckbox)return;c.value&&(clearTimeout(c.value),c.value=null);const g=`organization_${h.id}`;l.value.setChecked(g,k(g),!0),b()}function $(h){var g;(g=l.value)==null||g.setData(h)}return{departmentDoubleClick:V,selectedList:d,getCurrentNode:b,getSelectedIndex:m,nodeClick:T,setChecked:u,setCheckedKeys:_,setData:$,setSelectedList:N,treeProps:r,treeRef:l}}const Ir=t=>(e.pushScopeId("data-v-0ea0d0e6"),t=t(),e.popScopeId(),t),tO={class:"flex w-full h-full"},nO={key:0,class:"w-full flex items-center"},oO={key:0,class:"mr-[6px]"},aO={class:"el-checkbox"},sO=[Ir(()=>e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1))],lO={key:1,class:"mr-1"},rO={class:"el-radio"},iO=[Ir(()=>e.createElementVNode("span",{class:"el-radio__inner"},null,-1))],cO=["onDblclick"],yn=be(e.defineComponent({__name:"tree-cpns",props:{itemType:{default:1},itemSelectParam:{default:"id"},height:{default:500},itemSize:{default:36},dataList:{default:()=>[]},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!1},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{departmentDoubleClick:l,selectedList:r,getCurrentNode:i,getSelectedIndex:c,nodeClick:p,setChecked:d,setCheckedKeys:f,setData:m,setSelectedList:u,treeProps:y,treeRef:_}=eO({emit:s,props:a});e.watch(()=>a.showCheckbox,N=>{if(N===!1)if(r.value.length){const E=r.value[0];r.value=[E],a.showCheckbox&&a.parentCheckbox&&f([E[`${a.itemSelectParam}`]]),s("onSelectedData",{selectedDataList:r.value,selectedData:r.value})}else f([])}),n({setCheckedKeys:f,setSelectedList:u,setChecked:d,setData:m});const k=e.ref();return e.onMounted(()=>{r.value=a.defaultCheckedList,a.showCheckbox&&a.parentCheckbox&&(k.value=a.defaultCheckedList.map(N=>`${N[`${a.itemSelectParam}`]}`))}),(N,E)=>{const b=e.resolveComponent("el-tree-v2");return e.openBlock(),e.createBlock(b,{ref_key:"treeRef",ref:_,style:{"font-size":"larger"},class:e.normalizeClass({highlightSelected:a.highlightSelected}),"show-checkbox":a.showCheckbox&&a.parentCheckbox,"check-strictly":a.checkStrictly,"default-checked-keys":e.unref(k),"expand-on-click-node":!1,data:a.dataList,props:e.unref(y),height:a.height,"item-size":a.itemSize,onNodeClick:e.unref(p),onCheck:e.unref(i)},{default:e.withCtx(({data:T})=>[e.createElementVNode("div",tO,[T.type===a.itemType?(e.openBlock(),e.createElementBlock("div",nO,[a.showCheckbox&&!a.parentCheckbox?(e.openBlock(),e.createElementBlock("div",oO,[e.withDirectives(e.createElementVNode("div",aO,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)(T[`${a.itemSelectParam}`])!==-1,"is-disabled":T.disabled},"el-checkbox__input"])},sO,2)],512),[[e.vShow,a.showCheckboxButton]])])):e.createCommentVNode("",!0),a.showRadio?(e.openBlock(),e.createElementBlock("div",lO,[e.withDirectives(e.createElementVNode("div",rO,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)(T[`${a.itemSelectParam}`])!==-1,"is-disabled":T.disabled},"el-radio__input"])},iO,2)],512),[[e.vShow,a.showRadioButton]])])):e.createCommentVNode("",!0),e.renderSlot(N.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:T})),void 0,!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"w-0 flex-grow flex text-hy-text-main",onDblclick:e.withModifiers(V=>e.unref(l)(T),["stop"])},[e.renderSlot(N.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:T})),void 0,!0)],40,cO))])]),_:3},8,["class","show-checkbox","check-strictly","default-checked-keys","data","props","height","item-size","onNodeClick","onCheck"])}}}),[["__scopeId","data-v-0ea0d0e6"]]);function xn(t){const n=t.emit,o=e.ref(),a=e.ref(0),s=e.ref([]),l=e.ref(null),r=e.ref([]),i=e.computed(()=>{const T=r.value.find(V=>V.value===l.value);return T&&T.placeholder?T.placeholder:x("pleaseEnterContentToSearch")}),c=e.computed(()=>!!e.useSlots()["check-content"]),p=e.computed(()=>!!e.useSlots()["other-content"]),d=e.ref(null);function f(){const T=new ResizeObserver(()=>{d.value&&(a.value=d.value.clientHeight)});d.value&&T.observe(d.value)}function m(T){n("onCurrentDepartment",T)}function u(T){n("onCurrent",T)}function y(T){n("onCurrentDelete",T)}function _(T){n("onSelectedData",T)}function k(T){s.value=T}function N(T,V){o.value.setChecked(T,V)}function E(T){o.value.setCheckedKeys(T)}function b(T){o.value.setSelectedList(T)}return{checkContentSlotsType:c,otherContentSlotsType:p,currentDepartment:m,currentDevice:u,currentDeviceDelete:y,elementRef:d,selectedData:_,treeComponentHeight:a,treeComponentRef:o,viewDepartmentList:s,watchTreeComponentHeight:f,setChecked:N,setCheckedKeys:E,setSelectedList:b,selectFilterList:r,selectFilterType:l,getInputPlaceholder:i,setViewDepartmentList:k}}function Zn(t,n){return!t||t.length===0?!1:t.includes(`disabled:${n}`)}function Qn(t,n="id"){const o=new Map;return t.forEach(a=>o.set(a[`${n}`],a)),Array.from(o.values())}function st(t,n,o,a){var r;const{selectFilterType:s}=a||{};if(!n)return!0;if(s&&s!==t)return!1;const l=i=>i&&i.toString().includes(n);switch(t){case 7:return o.typeName==="workOrderList"?l(o.workTimeName):l(o.dailyCheckName);case 6:return l(o.deviceUserName)||l((r=o.item)==null?void 0:r.deviceId);case 5:return l(o.jobNum)||l(o.name)||l(o.phone);case 4:return l(o.groupName);case 8:return l(o.sname);case 3:return l(o.deviceId)||l(o.devName)||l(o.name);default:return l(o.companyName)||l(o.orgName)}}async function pa(t,n,o,a){const{hideDevice:s,selectFilterType:l,signal:r,hideOrgNoData:i,disabledIds:c,showOnlineOnly:p}=o||{disabledIds:"",showOnlineOnly:!1,hideOrgNoData:!1,hideDevice:!1,selectFilterType:null,signal:null},d=[],f=[];for(let m=0;m<n.length;m++){const u=n[m],y=m;u.type===3?u.onlyId=`${u.deviceId}`:(u.type=1,u.onlyId=`organization_${u.id}`),s&&u.type===1&&c.length!==0&&(u.disabled=Zn(c,u.id)),u.childrenDeviceList=[],u.onlineCountList=[];const _=a&&a.companyName&&u.type!==3?a.companyName:null;u.parentIdsList=a&&a.parentIdsList?[...a.parentIdsList,{id:u.id,currentSubscript:y}]:[{id:u.id,currentSubscript:y}];let k=!1;a&&a.parentType||u.type===3?k=!0:k=st(1,t,u,{selectFilterType:l});const N=k?u:{};if(u.deviceList&&u.deviceList.length&&!s){const E=[];u.deviceList.forEach((b,T)=>{if((a&&a.parentType||st(3,t,b,{selectFilterType:l})||k)&&(p&&b.onlineState===1||!p)){const V={parentType:!0,...b,isLeaf:!0,label:b.name||b.deviceId,deviceType:b.type,prodModel:b.prodModel?b.prodModel:"",simNum:b.simNum?b.simNum:"",companyName:n[y].companyName,select:!1,expand:!1,type:3,item:b,parentId:b.parentId?b.parentId:"",parentName:b.parentName?b.parentName:"",personnel:b.personnel?"1":"2",parentOrgName:_,disabled:Zn(c,b.deviceId)},$=V;$.parentOrgName=_,$.parentIdsList=u.parentIdsList,u.childrenDeviceList.push($),d.push($),E[b.onlineState===1?"unshift":"push"](V)}}),u.children=u.children.concat(E)}else u.deviceList=[];if(u.children&&u.children.length>0){const E=await pa(t,u.children,o,{...u,parentType:k});if(E){const b=E.deviceList;u.childrenDeviceList.push(...b),d.push(...b);const T=new Map,V=[];u.childrenDeviceList.forEach($=>{T.has($.id)||(T.set($.id,$),$.onlineState===1&&V.push($))}),u.childrenDeviceList=Array.from(T.values()),u.onlineCountList=V,N.children=[...E.children],u.children=E.children}}Object.keys(N).length&&(u.type===3||N.children.length||!i&&(N.companyName||N.orgName))&&f.push(u)}return{children:f,deviceList:Qn(d)}}async function Ar(t,n,o,a){const{hideDevice:s,selectFilterType:l,signal:r,hideOrgNoData:i,hideGroup:c}=o||{hideOrgNoData:!1,hideGroup:!1,hideDevice:!1,selectFilterType:null,signal:null},p=[],d=[];for(let f=0;f<n.length;f++){const m=n[f];m.type===3?m.onlyId=`device_${m.id}`:m.type===4?m.onlyId=`${m.id}`:m.onlyId=`organization_${m.id}`,m.childrenDeviceList=[],m.onlineCountList=[];let u=!1;m.type===3||m.type===4?u=!0:u=st(1,t,m,{selectFilterType:l});const y=u?m:{};if(m.groupList&&m.groupList.length!==0?m.groupList.forEach((_,k)=>{if(_.deviceList&&_.deviceList.length!==0){const N=[];a&&a.parentType||u||st(4,t,_,{selectFilterType:l})?(s||_.deviceList.forEach(E=>{const b={isLeaf:!0,...E,children:[],orgGroupId:_.id,deviceType:E.type,type:3};N[E.onlineState===1?"unshift":"push"](b)}),m.children.push({..._,children:N,type:4})):(s||_.deviceList.forEach(E=>{if(st(3,t,E,{selectFilterType:l})){const b={isLeaf:!0,...E,children:[],orgGroupId:_.id,deviceType:E.type,type:3};N[E.onlineState===1?"unshift":"push"](b)}}),N.length&&m.children.push({..._,children:N,type:4}))}else(a&&a.parentType||u||st(4,t,_,{selectFilterType:l}))&&m.children.push({..._,children:[],type:4})}):m.groupList=[],m.deviceList&&m.deviceList.length&&(m.childrenDeviceList=m.deviceList),m.childrenDeviceList&&m.childrenDeviceList.forEach(_=>{p.findIndex(N=>N.deviceId===_.deviceId)===-1&&p.push(_)}),m.children&&m.children.length!==0){const _=await Ar(t,m.children,o,{...m,parentType:u});if(_){const k=_.deviceList;m.childrenDeviceList.push(...k),p.push(...k);const N=new Map,E=[];m.childrenDeviceList.forEach(b=>{N.has(b.id)||(N.set(b.id,b),b.onlineState===1&&E.push(b))}),m.childrenDeviceList=Array.from(N.values()),m.onlineCountList=E,y.children=_.children}}Object.keys(y).length&&(!c&&m.type===4||m.type===3||y.children.length||!i&&(y.companyName||y.orgName))&&d.push({...m,...y})}return{children:d,deviceList:Qn(p)}}async function Lr(t,n,o,a){const{selectFilterType:s,hideOrgNoData:l,disabledIds:r}=o||{selectFilterType:null,hideOrgNoData:!1,disabledIds:""},i=[],c=[];for(let p=0;p<n.length;p++){const d=n[p],f=p;d.onlyId=d.type===5?`${d.id}`:`organization_${d.id}`,d.childrenDeviceList=[],d.onlineCountList=[],a&&a.parentIdsList?d.parentIdsList=[...a.parentIdsList,{id:d.id,currentSubscript:f}]:d.parentIdsList=[{id:d.id,currentSubscript:f}];let m=!1;d.type===5?m=!0:m=st(1,t,d,{selectFilterType:s});const u=m?d:{};if(d.deviceUserList&&d.deviceUserList.length){const y=[];d.deviceUserList.forEach((_,k)=>{if(a&&a.parentType||st(5,t,_,{selectFilterType:s})||m){const N={..._,parentType:!0,isLeaf:!0,label:_.name||_.id,deviceId:_.id,deviceType:_.type,type:5,item:_,children:[],parentIdsList:d.parentIdsList};d.childrenDeviceList.push(N),i.push(N);const E={..._,parentType:!0,isLeaf:!0,label:_.name||_.id,deviceId:_.id,deviceType:_.type,type:5,children:[],item:_,disabled:Zn(r,_.id)};y[_.onlineState===1?"unshift":"push"](E)}}),d.children=[...d.children,...y]}else d.deviceList=[];if(d.children&&d.children.length>0){const y=await Lr(t,d.children,o,{...d,parentType:m});if(y){const _=y.deviceList;d.childrenDeviceList.push(..._),i.push(..._);const k=new Map,N=[];d.childrenDeviceList.forEach(E=>{k.has(E.id)||(k.set(E.id,E),E.onlineState===1&&N.push(E))}),d.childrenDeviceList=Array.from(k.values()),d.onlineCountList=N,u.children=y.children}}Object.keys(u).length&&(d.type===5||u.children.length||!l&&(u.companyName||u.orgName))&&c.push({...d,...u})}return{children:c,deviceList:Qn(i)}}async function Fr(t,n,o,a){const{selectFilterType:s,hideOrgNoData:l,disabledIds:r}=o||{selectFilterType:null,hideOrgNoData:!1,disabledIds:""},i=[],c=[];for(let p=0;p<n.length;p++){const d=n[p],f=p;d.onlyId=d.type===8?`${d.id}`:`organization_${d.id}`,d.childrenDeviceList=[],d.onlineCountList=[],a&&a.parentIdsList?d.parentIdsList=[...a.parentIdsList,{id:d.id,currentSubscript:f}]:d.parentIdsList=[{id:d.id,currentSubscript:f}];let m=!1;d.type===8?m=!0:m=st(1,t,d,{selectFilterType:s});const u=m?d:{};if(d.csList&&d.csList.length){const y=[];d.csList.forEach((_,k)=>{if(a&&a.parentType||st(8,t,_,{selectFilterType:s})||m){const N={..._,type:8,item:_,children:[]};d.childrenDeviceList.push(N),i.push(N);const E={..._,type:8,item:_,children:[],disabled:Zn(r,_.id)};y[_.onlineState===1?"unshift":"push"](E)}}),d.children=[...d.children,...y]}else d.deviceList=[];if(d.children&&d.children.length>0){const y=await Fr(t,d.children,o,{...d,parentType:m});if(y){const _=y.deviceList;d.childrenDeviceList.push(..._),i.push(..._);const k=new Map,N=[];d.childrenDeviceList.forEach(E=>{k.has(E.id)||(k.set(E.id,E),E.onlineState===1&&N.push(E))}),d.childrenDeviceList=Array.from(k.values()),d.onlineCountList=N,u.children=y.children}}Object.keys(u).length&&(d.type===8||u.children.length||!l&&(u.companyName||u.orgName))&&c.push({...d,...u})}return{children:c,deviceList:Qn(i)}}function dO(t){const n=e.ref(t.props),o=e.ref(t.params.selectFilterType),a=e.ref(""),s=e.ref([]);async function l(){var i;n.value.getData&&((i=n.value.getData())==null||i.then(async c=>{if(!c)return;const p=await pa(a.value,[...c],{disabledIds:n.value.disableDataList.map(d=>`disabled:${d.id}`).toString(),hideDevice:!0,selectFilterType:o.value});s.value=p.children,t.params.setViewDepartmentList(s.value)}))}function r(){a.value.length&&l()}return{getData:l,query:a,selectChange:r}}const pO={class:"flex flex-col h-full text-xs"},fO={class:"flex items-center"},mO={class:"!w-[114px]"},hO={class:"text-hy-text-main"},uO={key:0,class:"w-full text-hy-text-main"},_O={class:"w-full h-full flex items-center"},gO={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},yO={key:0,class:"w-full"},xO={class:"w-full h-full flex items-center"},kO={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},Or=e.defineComponent({__name:"org-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:u,setChecked:y,setCheckedKeys:_,setSelectedList:k,selectFilterList:N,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:T,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=dO({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:T}});return n({setCheckedKeys:_,setSelectedList:k,setChecked:y,getData:h}),e.onMounted(()=>{u(),a.fuzzySearch?(N.value=[{label:x("department"),value:null,placeholder:x("filterByDepartmentName")}],E.value=null):(N.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],E.value=N.value[0].value),a.defaultGetData||h()}),(w,D)=>{const S=e.resolveComponent("el-option"),L=e.resolveComponent("el-select"),A=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),O=e.resolveComponent("el-input"),P=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",pO,[e.createElementVNode("div",fO,[e.createVNode(O,{modelValue:e.unref(g),"onUpdate:modelValue":D[1]||(D[1]=z=>e.isRef(g)?g.value=z:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",hO,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(A,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",mO,[e.createVNode(L,{modelValue:e.unref(E),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(E)?E.value=z:null),class:"!m-0",size:"small",onChange:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),(z,U)=>(e.openBlock(),e.createBlock(S,{key:`${U}_selectFilterList`,label:z.label,value:z.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(w.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":1,"highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,"default-checked-list":a.defaultCheckedList,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:z})=>[e.renderSlot(w.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",uO,[e.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",_O,[e.createElementVNode("div",gO,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)])])]),_:2},1032,["content"])]))]),"other-content":e.withCtx(({row:z})=>[e.renderSlot(w.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",yO,[e.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",xO,[e.createElementVNode("div",kO,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)])])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function NO({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 bO={class:"flex flex-col w-full h-full"},CO={class:"flex justify-between items-center h-[40px]"},wO={class:"flex-1"},EO={class:"text-hy-text-secondary ml-3"},SO={class:"flex-1 flex items-center justify-end"},TO={class:"text-xs"},DO={class:"flex items-center clickBox cursor-pointer"},VO={class:"text-hy-text-primary"},$O=["element-loading-text"],BO={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},IO={class:"flex-grow h-0 w-full equipment vbtTable"},AO={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"},LO={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"},FO={class:"r-f tac flex flex-col items-center justify-center"},OO={class:"mt-3"},RO={class:"flex-grow w-0 pl-2 box-border truncate"},PO={class:"flex-shrink-0"},MO=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}=NO({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList)}),e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(u,y)=>{const _=e.resolveComponent("el-button"),k=e.resolveComponent("svg-icon"),N=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",bO,[e.createElementVNode("div",CO,[e.createElementVNode("div",wO,[e.createTextVNode(e.toDisplayString(e.unref(x)("allDepartments")),1),e.createElementVNode("span",EO,e.toDisplayString(e.unref(x)("doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt")),1)]),e.createElementVNode("div",SO,[e.withDirectives(e.createVNode(_,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("span",TO,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",DO,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",VO,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",BO,[e.createElementVNode("div",IO,[e.createVNode(Or,{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",AO,[e.withDirectives(e.createElementVNode("li",LO,[e.createElementVNode("div",FO,[e.createVNode(k,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",OO,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,b)=>(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",RO,e.toDisplayString(E.companyName||E.groupName||E.orgName),1),e.createElementVNode("div",PO,[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:T=>e.unref(d)(b)},null,8,["tips","onClick"])])]))),128))])],8,$O)),[[N,!1]])])}}});function UO(t){const n=[{type:1,svgName:"sys-deviceIcon-lawEnforcement"},{type:3,svgName:"sys-deviceIcon-dispatchingDesk"},{type:4,svgName:"sys-deviceIcon-dutyDesk"},{type:5,svgName:"sys-deviceIcon-phone"},{type:6,svgName:"sys-deviceIcon-controlTheBall"},{type:7,svgName:"sys-deviceIcon-ipc"},{type:8,svgName:"sys-deviceIcon-safetyHat"},{type:9,svgName:"sys-deviceIcon-flashlight"},{type:10,svgName:"sys-deviceIcon-workCard"},{type:11,svgName:"sys-deviceIcon-vehicle"},{type:12,svgName:"sys-deviceIcon-uav"},{type:13,svgName:"sys-deviceIcon-ipc"},{type:14,svgName:"sys-deviceIcon-obd"}],o=n.findIndex(a=>a.type===t);return o!==-1?n[o].svgName:"sys-deviceIcon-walkieTalkie"}const zO=t=>(e.pushScopeId("data-v-51a5d703"),t=t(),e.popScopeId(),t),WO={class:"flex-shrink-0 mr-1"},jO={class:"flex-grow w-0 overflow-ellipsis overflow-hidden"},HO={class:"deviceName"},YO={key:0,class:"flex-shrink-0 mx-2"},GO={key:0,class:"text-hy-danger text-sm font-bold relative flex-shrink-0"},qO={key:1,class:"deviceType flex-shrink-0"},KO={key:2,class:"deviceType flex-shrink-0"},XO={key:3,class:"deviceType flex-shrink-0"},JO={key:4,class:"deviceType flex-shrink-0"},ZO={key:5,class:"deviceType flex-shrink-0"},QO={key:6,class:"deviceType flex-shrink-0"},vO={key:7,class:"text-hy-success flex-shrink-0"},eR={key:1,class:"flex-shrink-0 mx-2"},tR=[zO(()=>e.createElementVNode("span",{class:"shrink-0"},"离线",-1))],fa=be(e.defineComponent({__name:"device-cpns",props:{device:{}},emits:["onClickDevice"],setup(t,{emit:n}){const o=t,a=n,s=e.ref(null);e.watch(()=>o.device,()=>{s.value=o.device}),e.onMounted(()=>{s.value=o.device});function l(r){a("onClickDevice",r)}return(r,i)=>{const c=e.resolveComponent("svg-icon"),p=e.resolveComponent("el-tooltip");return s.value?(e.openBlock(),e.createBlock(p,{key:0,"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:s.value.devName},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"!text-hy-text-main":s.value.onlineState===1},"w-full h-full flex border-box items-center box-border text-hy-info"]),onClick:i[0]||(i[0]=d=>l(s.value))},[e.createElementVNode("div",WO,[e.createVNode(c,{name:e.unref(UO)(s.value.deviceType||s.value.type),width:"20",height:"20",class:"relative top-[2px]"},null,8,["name"])]),e.createElementVNode("div",jO,[e.createElementVNode("span",HO,e.toDisplayString(s.value.devName),1)]),s.value.onlineState===1?(e.openBlock(),e.createElementBlock("div",YO,[s.value.sos===1?(e.openBlock(),e.createElementBlock("span",GO,"SOS")):s.value.intercomGroupTem===1||s.value.intercomCall===1?(e.openBlock(),e.createElementBlock("span",qO,"音频中")):s.value.monitor===1||s.value.beMonitor===1?(e.openBlock(),e.createElementBlock("span",KO,"监控中")):s.value.videoCall===1?(e.openBlock(),e.createElementBlock("span",XO,"通话中")):s.value.videoRecording===1?(e.openBlock(),e.createElementBlock("span",JO,"录像中")):s.value.audioRecording===1?(e.openBlock(),e.createElementBlock("span",ZO,"录音中")):s.value.broadcast===1?(e.openBlock(),e.createElementBlock("span",QO,"广播中")):(e.openBlock(),e.createElementBlock("span",vO,"在线"))])):(e.openBlock(),e.createElementBlock("div",eR,tR))],2)]),_:1},8,["content"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-51a5d703"]]);function nR(t){const n=e.ref(t.props),o=e.ref(t.params.selectFilterType),a=e.ref(""),s=e.ref([]),l=e.ref([]),r=e.ref(!1);async function i(){var f;n.value.getData&&((f=n.value.getData())==null||f.then(async m=>{if(!m)return;console.log("selectFilterType.value",o.value);const u=await pa(a.value,[...m],{disabledIds:n.value.disableDataList.map(y=>`disabled:${y.deviceId}`).toString(),hideDevice:n.value.hideDevice,showOnlineOnly:n.value.showOnlineOnly,hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});s.value=u.children,l.value=u.deviceList,t.params.setViewDepartmentList(u.children)}))}function c(){r.value||(r.value=!0,setTimeout(async()=>{i(),r.value=!1},1e3))}function p(f){if(f.isofn===1)return c();const m=l.value.find(u=>u.deviceId===f.deviceId);if(m)for(const u in f)m[`${u}`]=f[`${u}`]}function d(){a.value.length&&i()}return{setDeviceStatus:p,getData:i,query:a,selectChange:d,treeDeviceList:l,treeDataList:s}}const oR={class:"flex flex-col h-full text-xs"},aR={class:"flex items-center"},sR={class:"!w-[114px]"},lR={class:"text-hy-text-main"},rR={class:"flex-grow w-0"},iR={class:"flex-shrink-0 mr-2 flex h-full items-center justify-center"},cR={key:0,class:"w-full flex cursor_pointer"},dR={class:"flex items-center flex-grow w-0"},pR={class:"max-w-full overflow-ellipsis overflow-hidden"},fR={class:"flex-shrink-0 mr-2 ml-1"},mR={class:"text-hy-main"},Rr=e.defineComponent({__name:"device-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},hideDevice:{type:Boolean,default:!1},showOnlineOnly:{type:Boolean,default:!1},disableDataList:{default:()=>[]},returnDisableDevice:{type:Boolean,default:!0}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:u,setChecked:y,setCheckedKeys:_,setSelectedList:k,selectFilterList:N,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:T,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,setDeviceStatus:g,query:C,selectChange:w}=nR({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:T}});return e.watch(()=>a.showOnlineOnly,()=>{h()}),n({setCheckedKeys:_,setSelectedList:k,setChecked:y,setDeviceStatus:g,getData:h}),e.onMounted(()=>{u(),a.fuzzySearch?(N.value=[{label:x("department"),value:null,placeholder:"设备名称、部门名称、设备IMEI进行搜索"}],E.value=null):(N.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||N.value.push({label:x("equipment"),value:3,placeholder:x("filterByDeviceNumberAndDeviceName")}),E.value=N.value[0].value),a.defaultGetData||h()}),(D,S)=>{const L=e.resolveComponent("el-option"),A=e.resolveComponent("el-select"),j=e.resolveComponent("svg-icon"),O=e.resolveComponent("el-button"),P=e.resolveComponent("el-input"),z=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",oR,[e.createElementVNode("div",aR,[e.createVNode(P,{modelValue:e.unref(C),"onUpdate:modelValue":S[1]||(S[1]=U=>e.isRef(C)?C.value=U:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",lR,[e.createVNode(O,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(j,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",sR,[e.createVNode(A,{modelValue:e.unref(E),"onUpdate:modelValue":S[0]||(S[0]=U=>e.isRef(E)?E.value=U:null),class:"!m-0",size:"small",onChange:e.unref(w)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),(U,M)=>(e.openBlock(),e.createBlock(L,{key:`${M}_selectFilterList`,label:U.label,value:U.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(D.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":3,"item-select-param":"deviceId","highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"default-checked-list":a.defaultCheckedList,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:U})=>[e.renderSlot(D.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:U}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"text-hy-text-main":U.onlineState===1},"w-full flex h-full"])},[e.createElementVNode("div",rR,[e.createVNode(fa,{device:U},null,8,["device"])]),e.createVNode(z,{"open-delay":1e3,class:"item",content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",iR,[e.createVNode(j,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})],512),[[e.vShow,U.todayFile]])]),_:2},1032,["content"])],2))]),"other-content":e.withCtx(({row:U})=>[e.renderSlot(D.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:U}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",cR,[e.createVNode(z,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:U.companyName||U.groupName||U.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",dR,[e.createElementVNode("span",pR,e.toDisplayString(U.companyName||U.groupName||U.orgName),1),e.withDirectives(e.createElementVNode("span",fR,[e.createTextVNode(" ("),e.createElementVNode("span",mR,e.toDisplayString(U.onlineCountList.length),1),e.createTextVNode("/"+e.toDisplayString(U.childrenDeviceList.length)+") ",1)],512),[[e.vShow,!a.hideDevice]])])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","default-checked-list","show-radio-button","show-checkbox-button","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function hR({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 N=o.value.findIndex(E=>E.deviceId===k.deviceId);N===-1?o.value.push({...k}):o.value.splice(N,1)}else{clearTimeout(l.value);const N={nonExistent:[],existent:[]},E=k.childrenDeviceList||[];E.length&&(E.forEach(b=>{a.value.findIndex(V=>V.deviceId===b.deviceId)===-1&&(o.value.findIndex($=>$.deviceId===b.deviceId)===-1?N.nonExistent.push({...b}):N.existent.push({...b}))}),N.nonExistent.length?N.nonExistent.forEach(b=>{o.value.push({...b})}):N.existent.forEach(b=>{const T=o.value.findIndex(V=>V.deviceId===b.deviceId);o.value.splice(T,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 u(k,N){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"}],b=E.findIndex(T=>T.type===k);return b!==-1?y(E[b],N):"tree-icon-walkie-talkie"}function y(k,N){return k.type===7||k.type===13?N===1?k.svgName:`${k}-off-line`:k.svgName}function _(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:u,onSelectedData:_,hyDeviceTreeRef:i}}const uR={class:"flex flex-col w-full h-full"},_R={class:"flex justify-between items-center h-[40px]"},gR={class:"flex mr-2"},yR={class:"flex items-center"},xR={class:"text-xs"},kR={class:"flex items-center clickBox cursor-pointer"},NR={class:"text-hy-text-primary"},bR=["element-loading-text"],CR={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},wR={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"},ER={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"},SR={class:"flex flex-col justify-center items-center"},TR={class:"mt-3"},DR={class:"flex-grow w-0 pl-2 flex box-border"},VR={class:"truncate flex-grow w-0"},$R={class:"select-none truncate mx-[4px] text-hy-text-main"},BR={class:"flex-shrink-0"},IR=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:u}=hR({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList),r()}),e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(y,_)=>{const k=e.resolveComponent("el-button"),N=e.resolveComponent("svg-icon"),E=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",uR,[e.createElementVNode("div",_R,[e.createElementVNode("div",gR,e.toDisplayString(e.unref(x)("allDevices")),1),e.createElementVNode("div",yR,[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",xR,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",kR,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",NR,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",CR,[e.createVNode(Rr,{ref_key:"hyDeviceTreeRef",ref:u,"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",wR,[e.withDirectives(e.createElementVNode("li",ER,[e.createElementVNode("div",SR,[e.createVNode(N,{name:"base-no-data","class-name":"!w-[50px] !h-[50px]"}),e.createElementVNode("div",TR,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),b=>(e.openBlock(),e.createElementBlock("li",{key:`${b.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",DR,[e.createVNode(N,{name:e.unref(f)(b.deviceType||b.type,b.onlineState),"class-name":"w-[16px] h-[16px]",class:e.normalizeClass(b.onlineState===1?"text-hy-text-main":"text-hy-info")},null,8,["name","class"]),e.createElementVNode("div",VR,[e.createElementVNode("span",$R,e.toDisplayString(b.devName),1)])]),e.createElementVNode("div",BR,[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:T=>e.unref(d)(b)},null,8,["tips","onClick"])])]))),128))])],8,bR)),[[E,!1]])])}}});function AR({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(b=>{r.value.findIndex(V=>V.id===b.id)===-1&&r.value.push(b)}),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 u(E){return r.value.findIndex(T=>T.id===E.id)!==-1?"is-checked":""}async function y(E){const b=r.value.findIndex(T=>T.id===E.id);b===-1?_(E):k(b)}function _(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 N(){o.value=!0;const{code:E,data:b=[]}=await zy({query:i.value,spotCheckSupport:1,onlineState:1});E===200&&(l.value=[],b.forEach(T=>{T.deviceList.length!==0?l.value.unshift(T):l.value.push(T)}),o.value=!1)}return{checkAll:n,loading:o,treeHeight:a,scrollYRenderConfig:s,deviceList:l,selectedDataList:r,filterValue:i,timeOut:c,addSelectedDataList:p,setSelectedDataList:d,getSelectedDataList:f,setCheckAll:m,judgeSelectedFn:u,deviceClick:y,addSelectList:_,deleteSelectList:k,getData:N}}const LR={class:"flex flex-col w-full h-full"},FR={class:"flex justify-between items-center h-[30px]"},OR={class:"el-checkbox !mr-2"},RR=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],PR={class:"text-hy-text-primary"},MR=["element-loading-text"],UR={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},zR={class:"flex items-center justify-center p-[8px_8px_4px]"},WR={class:"text-hy-text-main"},jR={class:"flex-grow h-0 w-full px-2 box-border overflow-y-scroll overflow-x-hidden"},HR=["onClick"],YR={class:"flex items-center justify-center"},GR={class:"el-checkbox relative !mr-[6px]"},qR=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],KR={class:"treeDepartment cursor_pointer flex items-center justify-between w-full text-[14px] font-bold text-hy-text-main"},XR={class:"r-f w_100vh flex w-full"},JR={class:"flex-grow w-0 over_one_line truncate"},ZR={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"},QR={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"},vR={class:"r-f tac flex flex-col justify-center items-center"},e4={class:"mt-3"},t4={class:"flex-grow w-0 pl-2 box-border truncate"},n4={class:"flex-shrink-0"},o4=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:u,judgeSelectedFn:y,deleteSelectList:_}=AR({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList),r()}),n({setSelectedDataList:l,getData:r}),(k,N)=>{const E=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-button"),T=e.resolveComponent("el-input"),V=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",LR,[e.createElementVNode("div",FR,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("electronicFence")),1),e.createElementVNode("div",{class:"flex items-center clickBox",onClick:N[0]||(N[0]=(...$)=>e.unref(i)&&e.unref(i)(...$))},[e.createElementVNode("div",OR,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)},"el-checkbox__input"])},RR,2)]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",PR,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",UR,[e.createElementVNode("div",zR,[e.createVNode(T,{modelValue:e.unref(f),"onUpdate:modelValue":N[1]||(N[1]=$=>e.isRef(f)?f.value=$:null),placeholder:e.unref(x)("filterByElectronicFenceName"),class:"table-search-main w-[254px] text-[12px]",onClear:N[2]||(N[2]=$=>e.unref(r)()),onKeyup:N[3]||(N[3]=e.withKeys($=>e.unref(r)(),["enter"]))},{append:e.withCtx(()=>[e.createElementVNode("div",WR,[e.createVNode(b,{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",jR,[(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(u)($)},[e.createElementVNode("div",YR,[e.createElementVNode("div",GR,[e.createElementVNode("span",{class:e.normalizeClass([e.unref(y)($),"el-checkbox__input"])},qR,2)])]),e.createElementVNode("div",KR,[e.createElementVNode("div",XR,[e.createElementVNode("span",JR,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,HR))),128))])]),e.createElementVNode("ul",ZR,[e.withDirectives(e.createElementVNode("li",QR,[e.createElementVNode("div",vR,[e.createVNode(E,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",e4,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",t4,e.toDisplayString($.railName),1),e.createElementVNode("div",n4,[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(_)(h)},null,8,["tips","onClick"])])]))),128))])],8,MR)),[[V,e.unref(d)]])])}}});function a4({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:u=null}=d||{};o.value.checkStyle=u,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 s4={class:"deleteBox c_fff text-hy-text-main"},l4={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]"},r4={class:"absolute right-[-2px] top-[-2px]"},i4={class:"dialog_body h-[60vh]"},c4=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}=a4({emit:a});return n({show:f}),(m,u)=>{const y=e.resolveComponent("svg-icon"),_=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(_,{modelValue:e.unref(l),"onUpdate:modelValue":u[0]||(u[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",s4,[e.createElementVNode("div",l4,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("spotCheckTemplate")),1),e.createElementVNode("div",r4,[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",i4,[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:N=>e.unref(p)(k)},null,8,["tips","onClick"])]),_:1},8,["column-list","search-form"])])])]),_:1},8,["modelValue"])}}});function d4({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}),u=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"}]}),_=e.ref(),k=e.ref(),N=e.ref(),E=e.ref(),b=e.ref(),T=e.ref();e.watch(()=>u.value.limitNum,X=>{typeof X=="string"&&(X=X.replace(/[^.\d]/g,""),X=X.replace(".",""),u.value.limitNum=X)}),e.watch(()=>p.value,X=>{L()},{immediate:!0});function V(){_.value.validateField("limitNum")}function $(X){if(X!==u.value.onlineStateFlag)return new Promise((v,ie)=>{if(r.value.length!==0&&u.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()),u.value.onlineStateFlag=X,v(0)});else{if(u.value.onlineStateFlag=X,u.value.checkScope===3){const le=A();le&&le.getData()}v(0)}})}function h(X){let v=u.value.limitNum-0;if(X===1)v+=1;else{if(v<=1){Se.error(x("atLeast1RandomDevice"));return}v-=1}u.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===u.value.checkScope){const Ve=A();Ve&&Ve.addSelectedDataList(de)}else S(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,_.value&&_.value.resetFields(),u.value={...m.value},u.value.limitNum=10,u.value.checkScope=ie,u.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(){_.value.clearValidate("everydayJson"),_.value.clearValidate("apDateListV2"),_.value.clearValidate("apDtmV2")}function D(X){var v;(v=S(X))==null||v.then(()=>{O([],!0)})}function S(X){if(u.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"},()=>{u.value.checkScope=X,v(0)}):(u.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=u.value.checkScope;return X===1?k.value:X===2?N.value:X===3?E.value:null}function j(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=u.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(){_.value.validate(X=>{if(X){const v={...u.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=b.value)==null||v.show(X))}function M(){O([],!0),C(!1),a.value=null}function Y(){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 nA({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],u.value={...J,playMsg:J.playMsg===1},v&&(u.value.id=null);const R=j(J);O(R),e.nextTick(()=>{s.value=!1,p.value||C(!0)})}}async function ne(X){if(X.taskDateStartTime=u.value.taskDateTime[0],X.taskDateEndTime=u.value.taskDateTime[1],u.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(u.value.taskDateType===3){if(!u.value.apDateListV2||u.value.apDateListV2.length===0)return Se.error(x("pleaseSelectADate"));X.apDateList=u.value.apDateListV2.map(le=>({apDtm:`${le} 00:00:00`}))}else if(u.value.taskDateType===4){if(!u.value.apDtmV2||u.value.apDtmV2.length===0)return Se.error(x("pleaseSelectATimePeriod"));X.apStartDtm=`${u.value.apDtmV2[0]} 00:00:00`,X.apEndDtm=`${u.value.apDtmV2[1]} 00:00:00`}const{code:v,data:ie={}}=await oA(X);v===200&&(Se.success(x("operationSuccessful")),t("on-submit"),a.value&&a.value(),M())}async function Te(){const{id:X}=await T.value.show({checkStyle:i.value===2?1:null});X&&(_.value&&_.value.resetFields(),u.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 aA({id:X});if(ie===200){u.value={...le,playMsg:le.playMsg===1},v&&(u.value.id=null);const J=j(u.value);O(J),e.nextTick(()=>{s.value=!1,p.value||C(!0)})}}async function ke(X){const{code:v}=await sA(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 lA(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:S,setSelectedDataList:O,getSelectedDataList:P,onSubmit:z,viewSpotCheckShow:U,close:M,onClose:Y,detail:F,selectTemplateShow:Te,taskDateTypeFn:w,changeCheckScope:D,everydayJson:n,formRef:_,loading:s,selectElectronicFenceRef:k,selectDepartmentRef:N,selectDeviceRef:E,selectTemplateRef:T,viewSpotCheckRef:b,contentState:i,title:c,wrapperClosable:l,form:u,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),p4={key:0,class:"fixed top-0 left-0 bg-[rgba(0,0,0,0.5)] w-full h-full z-[100]"},f4={class:"w-[1080px] h-full"},m4={class:"w-full h-full px-[20px] box-border flex flex-col text-hy-text-main text-xs"},h4={class:"flex justify-between items-center h-[60px]"},u4={class:"font-bold text-lg"},_4=["element-loading-text"],g4={key:0,class:"flex mb-2 flex-shrink-0 rounded bg-backgroundv2 px-3 pt-2 h-[90px] box-border items-center"},y4={class:"text-sm h-[30px] flex items-center"},x4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),k4={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"},N4={class:"flex-1 mr-4"},b4={class:"text-sm h-[30px] flex items-center"},C4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),w4={class:"text-sm h-[30px] flex items-center"},E4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),S4={class:"everydayBox leading-[20px]"},T4={class:"text-xs"},D4={class:"text-xs"},V4={class:"text-xs"},$4={class:"text-xs"},B4={class:"text-xs"},I4={class:"text-xs"},A4={class:"text-xs"},L4={class:"text-sm h-[30px] flex items-center"},F4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),O4={class:"w-full"},R4={class:"text-sm h-[30px] flex items-center"},P4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),M4={class:"flex-1 min-w-[220px]"},U4={class:"text-sm h-[30px] flex items-center"},z4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),W4={class:"flex items-center flex-grow h-0"},j4={class:"flex-grow w-0 h-full flex flex-col"},H4={class:"flex"},Y4={class:"text-sm h-[30px] flex items-center"},G4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),q4={class:"text-sm h-[30px] flex items-center"},K4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),X4={class:"text-sm h-[30px] flex items-center"},J4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Z4={class:"test h-[32px] flex border border-hy-border-2 rounded box-border overflow-hidden bg-hy-dialog-bg-2 w-full"},Q4={class:"flex-grow w-0 box-border px-1 flex items-center justify-center"},v4=["placeholder"],eP={class:"flex flex-col w-[32px] text-auxiliary border-l border-hy-border-2"},tP={class:"text-sm h-[30px] flex items-center"},nP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),oP={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"},aP={class:"tac text-hy-text-secondary text-center"},sP={class:"mt_10 mt-[10px]"},lP={class:""},rP={class:"mt-1"},iP={class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},cP={class:"flex justify-between h-[40px] items-center"},dP={class:"fs_12 p-[10px_20px] text-[12px]"},pP={class:"r-f mb_10 flex mb-[10px]"},fP=Fe(()=>e.createElementVNode("span",null,"1、",-1)),mP={class:"r-f mb_10 flex mb-[10px]"},hP=Fe(()=>e.createElementVNode("span",null,"2、",-1)),uP={class:"r-f mb_10 flex mb-[10px]"},_P=Fe(()=>e.createElementVNode("span",null,"3、",-1)),gP={class:"fs_12 cursor_pointer !text-hy-text-primary cursor-pointer text-[12px]"},yP={class:"flex-grow h-0 flex"},xP={class:"flex-1"},kP=Fe(()=>e.createElementVNode("div",{class:"mx-[20px] w-[2px] h-[96%] rounded bg-hy-border-2 flex-shrink-0"},null,-1)),NP={class:"w-[33%] h-full flex flex-col"},bP={class:"text-sm h-[30px] flex items-center"},CP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),wP={class:"text-sm h-[30px] flex items-center"},EP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),SP={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"},TP={class:"tac text-hy-text-secondary text-center"},DP={class:"mt-[10px]"},VP={class:"mt-1"},$P={key:0,class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},BP={class:"flex-grow h-0"},IP={class:"text-xs"},AP={class:"mb-2"},LP={class:"text-sm h-[30px] flex items-center"},FP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),OP={class:"mb-2"},RP={class:"text-sm h-[30px] flex items-center"},PP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),MP={class:"flex items-center justify-between h-[80px]"},UP={class:"text-hy-text-secondary flex items-center"},zP=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:u,taskDateTypeFn:y,everydayJson:_,changeOnlineStateFlag:k,blurLimitNum:N,setRandomNumber:E,changeCheckScope:b,selectedDataList:T,setSelectedDataList:V,selectTemplateShow:$,onSubmit:h,selectElectronicFenceRef:g,selectDepartmentRef:C,selectDeviceRef:w,selectTemplateRef:D,viewSpotCheckRef:S,show:L,formRef:A}=d4({emit:a});return n({show:L}),(j,O)=>{const P=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-input"),U=e.resolveComponent("el-form-item"),M=e.resolveComponent("el-option"),Y=e.resolveComponent("el-select"),F=e.resolveComponent("el-checkbox"),Q=e.resolveComponent("el-date-picker"),ne=e.resolveComponent("el-time-picker"),Te=XI,he=e.resolveComponent("el-icon"),ke=YI,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",p4)):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",f4,[e.createElementVNode("div",m4,[e.createElementVNode("div",h4,[e.createElementVNode("div",u4,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(u)===3?(e.openBlock(),e.createElementBlock("div",g4,[e.createVNode(U,{prop:"templateName",class:"w-full"},{default:e.withCtx(()=>[e.createElementVNode("div",y4,[e.createTextVNode(e.toDisplayString(e.unref(s)("templateName")),1),x4]),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(u)===2?(e.openBlock(),e.createElementBlock("div",k4,[e.createElementVNode("div",N4,[e.createVNode(U,{prop:"taskDateType"},{default:e.withCtx(()=>[e.createElementVNode("div",b4,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionDate")),1),C4]),e.createVNode(Y,{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",w4,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyAWeek")),1),E4]),e.createElementVNode("div",S4,[e.createVNode(F,{modelValue:e.unref(_).everyday1,"onUpdate:modelValue":O[2]||(O[2]=J=>e.unref(_).everyday1=J)},{default:e.withCtx(()=>[e.createElementVNode("span",T4,e.toDisplayString(e.unref(s)("monday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(_).everyday2,"onUpdate:modelValue":O[3]||(O[3]=J=>e.unref(_).everyday2=J)},{default:e.withCtx(()=>[e.createElementVNode("span",D4,e.toDisplayString(e.unref(s)("tuesday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(_).everyday3,"onUpdate:modelValue":O[4]||(O[4]=J=>e.unref(_).everyday3=J)},{default:e.withCtx(()=>[e.createElementVNode("span",V4,e.toDisplayString(e.unref(s)("wednesday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(_).everyday4,"onUpdate:modelValue":O[5]||(O[5]=J=>e.unref(_).everyday4=J)},{default:e.withCtx(()=>[e.createElementVNode("span",$4,e.toDisplayString(e.unref(s)("thursday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(_).everyday5,"onUpdate:modelValue":O[6]||(O[6]=J=>e.unref(_).everyday5=J)},{default:e.withCtx(()=>[e.createElementVNode("span",B4,e.toDisplayString(e.unref(s)("friday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(_).everyday6,"onUpdate:modelValue":O[7]||(O[7]=J=>e.unref(_).everyday6=J)},{default:e.withCtx(()=>[e.createElementVNode("span",I4,e.toDisplayString(e.unref(s)("saturday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(_).everyday7,"onUpdate:modelValue":O[8]||(O[8]=J=>e.unref(_).everyday7=J)},{default:e.withCtx(()=>[e.createElementVNode("span",A4,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",L4,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyADate")),1),F4]),e.createElementVNode("div",O4,[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",R4,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyATimePeriod")),1),P4]),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",M4,[e.createVNode(U,{prop:"taskDateTime"},{default:e.withCtx(()=>[e.createElementVNode("div",U4,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionTime-0")),1),z4]),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",W4,[e.createElementVNode("div",j4,[e.createElementVNode("div",H4,[e.createVNode(U,{class:"flex-1"},{default:e.withCtx(()=>[e.createElementVNode("div",Y4,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckType")),1),G4]),e.createVNode(Y,{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",q4,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckDevice")),1),K4]),e.createVNode(Y,{"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",X4,[e.createTextVNode(e.toDisplayString(e.unref(s)("randomNumber")),1),J4]),e.createElementVNode("div",Z4,[e.createElementVNode("div",Q4,[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(N)&&e.unref(N)(...J))},null,40,v4),[[e.vModelText,e.unref(f).limitNum]])]),e.createElementVNode("div",eP,[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",tP,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckRange")),1),nP]),e.withDirectives(e.createElementVNode("div",oP,[e.createElementVNode("div",aP,[e.createVNode(P,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",sP,[e.createElementVNode("p",lP,e.toDisplayString(e.unref(s)("youDoNotNeedToSelectARangeAndDeviceForRandomCheck")),1),e.createElementVNode("p",rP,e.toDisplayString(e.unref(s)("theSystemWillHelpYouSelectRandomly")),1)])])],512),[[e.vShow,e.unref(f).checkType===2]]),e.withDirectives(e.createElementVNode("div",iP,[e.createElementVNode("div",cP,[e.createElementVNode("div",null,[e.createVNode(Y,{"model-value":e.unref(f).checkScope,class:"w-[160px]",placeholder:e.unref(s)("pleaseSelect"),onChange:e.unref(b)},{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",gP,[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",dP,[e.createElementVNode("li",pP,[fP,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea")),1)]),e.createElementVNode("li",mP,[hP,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment")),1)]),e.createElementVNode("li",uP,[_P,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck")),1)])])]),_:1})])]),e.createElementVNode("div",yP,[e.createElementVNode("div",xP,[e.unref(f).checkScope===1?(e.openBlock(),e.createBlock(o4,{key:0,ref_key:"selectElectronicFenceRef",ref:g,"init-selected-data-list":e.unref(T),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(f).checkScope===2?(e.openBlock(),e.createBlock(MO,{key:1,ref_key:"selectDepartmentRef",ref:C,"init-selected-data-list":e.unref(T),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(f).checkScope===3?(e.openBlock(),e.createBlock(IR,{key:2,ref_key:"selectDeviceRef",ref:w,"init-selected-data-list":e.unref(T),"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]])]),kP,e.createElementVNode("div",NP,[e.createVNode(U,null,{default:e.withCtx(()=>[e.createElementVNode("div",bP,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckMethod")),1),CP]),e.createVNode(Y,{modelValue:e.unref(f).checkStyle,"onUpdate:modelValue":O[17]||(O[17]=J=>e.unref(f).checkStyle=J),class:"w-full",disabled:e.unref(u)===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",wP,[e.createTextVNode(e.toDisplayString(e.unref(s)("messageContent")),1),EP]),e.withDirectives(e.createElementVNode("div",SP,[e.createElementVNode("div",TP,[e.createVNode(P,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",DP,[e.createElementVNode("p",null,e.toDisplayString(e.unref(s)("callDoesNotRequireYouToEnterTheMessageContent")),1),e.createElementVNode("p",VP,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",$P,[e.createElementVNode("div",BP,[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(u)===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",IP,e.toDisplayString(e.unref(s)("requiresTTSVoiceBroadcastOnTheDevice")),1)]),_:1},8,["modelValue"])]),e.createElementVNode("div",AP,[e.createElementVNode("div",LP,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerMethod")),1),FP]),e.createVNode(Y,{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",OP,[e.createElementVNode("div",RP,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerTime")),1),PP]),e.createVNode(Y,{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,_4)),[[le,e.unref(d)]]),e.createElementVNode("div",MP,[e.createElementVNode("div",UP,[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(u)!==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(c4,{ref_key:"selectTemplateRef",ref:D},null,512)],2)):e.createCommentVNode("",!0),e.createVNode(vF,{ref_key:"viewSpotCheckRef",ref:S},null,512)])}}}),[["__scopeId","data-v-1e4e7e93"]]);function WP(t){return oe.post({url:"orgGroup/detail",data:t,isFormData:!0})}function jP(){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 u(h){if(!h)return;const{code:g,data:C}=await WP({id:h});g===200&&(o.value=C)}function y(){var h;(h=d.value)==null||h.getData(l.value)}function _(h){l.value=h,e.nextTick(()=>{y()})}function k(h){a.value=h}function N(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 b(h=[]){}function T(h){t.value={actionType:1,id:12},k(1),_(0),V(h),p.value=!0}async function V(h){const{code:g,data:C={}}=await $r({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,u(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:_,setNavigationStatus:k,setLoading:N,spotCheckTaskDeviceCountStatus:E,spotCheckTaskDeviceChange:b,show:T,detail:V,close:$}}const HP={class:"deleteBox c_fff text-hy-text-main"},YP={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]"},GP={class:"dialog_body pb-[30px] h-[60vh] flex flex-col text-main text-xs !px-0"},qP={class:"flex items-center justify-center mb-[16px]"},KP={class:"relative flex-shrink-0"},XP={class:"relative text-sm h-[36px] !leading-[36px] text-center border border-hy-bg-2 rounded text-hy-text-secondary flex overflow-hidden"},JP=["onClick"],ZP={class:"flex flex-grow h-0 px-4 box-border"},QP={class:"w-full h-full box-border px-2"},vP={class:"w-full h-full bg-hy-dialog-bg-2 rounded px-3 py-1 box-border overflow-x-hidden overflow-y-auto"},e3={class:"mb-2"},t3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},n3={class:"text-hy-text-secondary"},o3={class:"mb-2"},a3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},s3={class:"mb-2"},l3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},r3={class:"mb-2"},i3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},c3={class:"mb-2"},d3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},p3={key:0,class:"mb-2"},f3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},m3={key:0},h3={key:1},u3={key:2},_3={key:0},g3={key:0},y3={key:1},x3={key:0},k3={key:2},N3={key:1,class:"mb-2"},b3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},C3={key:0,class:"py-1 box-border h-full bg-hy-dialog-bg-3 rounded"},w3={class:"w-full h-[34px] px-2 box-border flex justify-between items-center"},E3={key:0,class:"ml-2 border-[2px] box-border border-hy-border-2 flex items-center justify-center h-[26px] px-2 rounded"},S3={class:"h-[40%] box-border px-2 mt-1"},T3={class:"w-full h-full box-border bg-hy-dialog-bg-2 rounded p-2 overflow-y-auto overflow-x-hidden"},D3={class:"flex px-2 mt-1"},V3={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center mr-2"},$3={class:"text-hy-text-secondary"},B3={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center"},I3={class:"text-hy-text-secondary"},A3={class:"font-bold"},L3={key:1,class:"h-full py-1 bg-hy-dialog-bg-3 rounded"},F3={class:"w-full h-full flex items-center justify-center text-hy-text-secondary box-border"},O3={class:"r-f tac flex flex-col items-center justify-center text-center text-sm"},R3={class:"mt-3"},P3={class:"mt-1"},M3={class:"flex flex-grow h-0 px-4 box-border"},U3={class:"text-xs px-2 leading-[22px]"},z3={class:"flex w-full"},W3={class:"flex-shrink-0"},j3={class:"text-right font-bold flex-grow w-0"},H3={class:"flex w-full"},Y3={class:"flex-shrink-0 tracking-[4px]"},G3={class:"text-right font-bold flex-grow w-0"},q3={class:"flex w-full"},K3={class:"flex-shrink-0 tracking-[4px]"},X3={class:"text-right font-bold flex-grow w-0"},J3={class:"flex w-full"},Z3={class:"flex-shrink-0 tracking-[4px]"},Q3={class:"text-right font-bold flex-grow w-0 text-hy-success"},v3={class:"flex w-full"},e8={class:"flex-shrink-0 tracking-[4px]"},t8={class:"text-right font-bold flex-grow w-0 text-hy-danger"},n8={class:"flex-1 flex"},o8={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},a8={class:"flex-grow w-0 text-center truncate"},s8={class:"flex-1 flex"},l8={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},r8={class:"flex-grow w-0 text-center text-hy-success truncate"},i8={class:"flex-1 flex"},c8={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},d8={class:"flex-grow w-0 text-center text-hy-danger truncate"},p8={class:"relative mt-3 mb-2 min-w-[160px]"},f8={class:"relative h-[26px] !leading-[26px] text-center border border-hy-border-2 rounded text-hy-text-secondary text-xs flex overflow-hidden"},m8=["onClick"],h8={class:"flex-grow h-0 px-2 overflow-x-hidden overflow-y-auto"},u8=e.createElementVNode("div",{class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},null,-1),_8={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"},g8={class:"r-f tac flex flex-col justify-center items-center"},y8={class:"mt-3 text-sm"},x8=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:u,setCheckStatus:y,setNavigationStatus:_,spotCheckTaskDeviceChange:k,spotCheckTaskDeviceCountStatus:N,show:E,spotCheckTaskDeviceRef:b}=jP();return n({show:E}),(T,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",HP,[e.createElementVNode("div",YP,[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",GP,[e.createElementVNode("div",qP,[e.createElementVNode("div",KP,[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",XP,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(D,S)=>(e.openBlock(),e.createElementBlock("li",{key:S,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(_)(D.value)},e.toDisplayString(D.label),11,JP))),128))])])]),e.withDirectives(e.createElementVNode("div",ZP,[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",QP,[e.createElementVNode("div",vP,[e.createElementVNode("div",e3,[e.createElementVNode("div",t3,e.toDisplayString(e.unref(x)("spotCheckPersonnel")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(i).name)+" ",1),e.createElementVNode("span",n3," ("+e.toDisplayString(e.unref(i).jobNum)+")",1)])]),e.createElementVNode("div",o3,[e.createElementVNode("div",a3,e.toDisplayString(e.unref(x)("department")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).orgName),1)]),e.createElementVNode("div",s3,[e.createElementVNode("div",l3,e.toDisplayString(e.unref(x)("spotCheckTime")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkDtm),1)]),e.createElementVNode("div",r3,[e.createElementVNode("div",i3,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",c3,[e.createElementVNode("div",d3,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",p3,[e.createElementVNode("div",f3,[e.createTextVNode(e.toDisplayString(e.unref(x)("samplingScope"))+" ",1),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("span",m3,e.toDisplayString(e.unref(x)("regionalSpotCheck")),1)):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("span",h3,e.toDisplayString(e.unref(x)("departmentSpotCheck")),1)):e.unref(i).checkScope===3?(e.openBlock(),e.createElementBlock("span",u3,e.toDisplayString(e.unref(x)("deviceSpotCheck")),1)):e.createCommentVNode("",!0),e.createTextVNode(" ) ")]),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("div",_3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(D,S)=>(e.openBlock(),e.createElementBlock("span",{key:`${S}_orgNameList`},[e.createTextVNode(e.toDisplayString(D)+" ",1),S!==e.unref(u).length-1?(e.openBlock(),e.createElementBlock("span",g3,"、")):e.createCommentVNode("",!0)]))),128))])):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("div",y3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(D,S)=>(e.openBlock(),e.createElementBlock("span",{key:`${S}_orgNameList`},[e.createTextVNode(e.toDisplayString(D)+" ",1),S!==e.unref(m).length-1?(e.openBlock(),e.createElementBlock("span",x3,"、")):e.createCommentVNode("",!0)]))),128))])):(e.openBlock(),e.createElementBlock("div",k3,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).checkNum||0)+" "+e.toDisplayString(e.unref(x)("device")),1)]))])):(e.openBlock(),e.createElementBlock("div",N3,[e.createElementVNode("div",b3,[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",C3,[e.createElementVNode("div",w3,[e.createElementVNode("div",null,e.toDisplayString(e.unref(x)("messageContent")),1),e.unref(i).playMsg===1?(e.openBlock(),e.createElementBlock("div",E3," TTS"+e.toDisplayString(e.unref(x)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",S3,[e.createElementVNode("div",T3,e.toDisplayString(e.unref(i).msgContent),1)]),e.createElementVNode("div",D3,[e.createElementVNode("div",V3,[e.createElementVNode("div",$3,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",B3,[e.createElementVNode("div",I3,e.toDisplayString(e.unref(x)("answerTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",A3,e.toDisplayString(e.unref(i).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("second")),1)])])])])):(e.openBlock(),e.createElementBlock("div",L3,[e.createElementVNode("div",F3,[e.createElementVNode("div",O3,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",R3,e.toDisplayString(e.unref(x)("callSpotCheck")),1),e.createElementVNode("div",P3,e.toDisplayString(e.unref(x)("backupWillBeCheckedByIntercomAnswering")),1)])])]))]),_:1})]),_:1})],512),[[e.vShow,e.unref(p)===1]]),e.withDirectives(e.createElementVNode("div",M3,[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",n8,[e.createElementVNode("div",o8,[e.createVNode($,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",a8,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("div",s8,[e.createElementVNode("div",l8,[e.createVNode($,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),e.createElementVNode("div",r8,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("div",i8,[e.createElementVNode("div",c8,[e.createVNode($,{name:"base-danger-state","class-name":"w-[16px] h-[16px] text-hy-danger"})]),e.createElementVNode("div",d8,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])],2)])]),default:e.withCtx(()=>[e.createElementVNode("ul",U3,[e.createElementVNode("li",z3,[e.createElementVNode("span",W3,e.toDisplayString(e.unref(x)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",j3,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("li",H3,[e.createElementVNode("span",Y3,e.toDisplayString(e.unref(x)("waitingToReceive")),1),e.createElementVNode("div",G3,e.toDisplayString(e.unref(i).beReceiveNum||"- -"),1)]),e.createElementVNode("li",q3,[e.createElementVNode("span",K3,e.toDisplayString(e.unref(x)("receiving")),1),e.createElementVNode("div",X3,e.toDisplayString(e.unref(i).receivingNum||"- -"),1)]),e.createElementVNode("li",J3,[e.createElementVNode("span",Z3,e.toDisplayString(e.unref(x)("completed")),1),e.createElementVNode("div",Q3,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("li",v3,[e.createElementVNode("span",e8,e.toDisplayString(e.unref(x)("uncompleted")),1),e.createElementVNode("div",t8,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])])]),_:1}),e.createElementVNode("div",p8,[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",f8,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(D,S)=>(e.openBlock(),e.createElementBlock("li",{key:`${S}_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,m8))),128))])])],2),e.createElementVNode("div",h8,[e.unref(i).id?(e.openBlock(),e.createBlock(da,{key:0,ref_key:"spotCheckTaskDeviceRef",ref:b,"params-span":e.unref(i).actionType===1?8:24,form:e.unref(i),"subscribe-status":!1,onChange:e.unref(k),onOnCountStatus:e.unref(N)},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(()=>[u8]),_:1})):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createElementBlock("div",_8,[e.createElementVNode("div",g8,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",y8,e.toDisplayString(e.unref(x)("noDeviceSupportsThisSpotCheck")),1)])]))],512),[[e.vShow,e.unref(p)===2]])])])]),_:1},8,["modelValue"])}}});function k8(t){const n=e.ref(t.props),o=e.ref(t.params.selectFilterType),a=e.ref(""),s=e.ref([]);async function l(){var i;n.value.getData&&((i=n.value.getData())==null||i.then(async c=>{if(!c)return;const p=await Fr(a.value,[...c],{disabledIds:n.value.disableDataList.map(d=>`disabled:${d.id}`).toString(),hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});console.log(p),s.value=p.children,t.params.setViewDepartmentList(s.value)}))}function r(){a.value.length&&l()}return{getData:l,query:a,selectChange:r}}const N8={class:"flex flex-col h-full text-xs"},b8={class:"flex items-center"},C8={class:"!w-[114px]"},w8={class:"text-hy-text-main"},E8={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},S8={class:"flex-grow w-0 flex items-center mr-1"},T8={class:"overflow-ellipsis overflow-hidden mx-1"},D8={class:"flex-shrink-0 flex items-center"},V8={key:0,class:"w-full"},$8={class:"w-full h-full flex items-center"},B8={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},I8={class:"flex-shrink-0 text-xs ml-1 mr-2 text-hy-main"},A8=e.defineComponent({__name:"acquisition-station-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:u,setChecked:y,setCheckedKeys:_,setSelectedList:k,selectFilterList:N,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:T,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=k8({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:T}});return n({setCheckedKeys:_,setSelectedList:k,setChecked:y}),e.onMounted(()=>{u(),a.fuzzySearch?(N.value=[{label:x("department"),value:null,placeholder:"采集站名称,群组名称筛选"}],E.value=null):(N.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||N.value.push({label:"采集站",value:8,placeholder:x("采集站名称进行筛选")}),E.value=N.value[0].value),a.defaultGetData||h()}),(w,D)=>{const S=e.resolveComponent("el-option"),L=e.resolveComponent("el-select"),A=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),O=e.resolveComponent("el-input"),P=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",N8,[e.createElementVNode("div",b8,[e.createVNode(O,{modelValue:e.unref(g),"onUpdate:modelValue":D[1]||(D[1]=z=>e.isRef(g)?g.value=z:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",w8,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(A,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",C8,[e.createVNode(L,{modelValue:e.unref(E),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(E)?E.value=z:null),class:"!m-0",size:"small",onChange:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),(z,U)=>(e.openBlock(),e.createBlock(S,{key:`${U}_selectFilterList`,label:z.label,value:z.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(w.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":8,"highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,"default-checked-list":a.defaultCheckedList,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:z})=>[e.renderSlot(w.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",E8,[e.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.sname},{default:e.withCtx(()=>[e.createElementVNode("div",S8,[e.createVNode(A,{name:"menu-acquisition-station-2",class:"!w-[20px] !h-[20px]"}),e.createElementVNode("div",T8,[e.createElementVNode("span",null,e.toDisplayString(z.sname),1)])])]),_:2},1032,["content"]),z.todayFile?(e.openBlock(),e.createBlock(P,{key:0,class:"item","show-after":1e3,content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",D8,[e.createVNode(A,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]))]),"other-content":e.withCtx(({row:z})=>[e.renderSlot(w.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",V8,[e.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",$8,[e.createElementVNode("div",B8,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)]),e.createElementVNode("span",I8,"("+e.toDisplayString(z.childrenDeviceList.length||0)+")",1)])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function L8(t){const n=t.emit,o=e.ref(t.props),a=e.ref(t.params.selectFilterType);e.ref(!1);const s=e.ref(""),l=e.ref([]);async function r(){var d;o.value.getData&&((d=o.value.getData())==null||d.then(async f=>{if(!f)return;const m=await Ar(s.value,[...f],{hideDevice:o.value.hideDevice,hideOrgNoData:o.value.hideOrgNoData,hideGroup:o.value.hideGroup,selectFilterType:a.value});l.value=m.children,t.params.setViewDepartmentList(l.value)}))}function i(){s.value.length&&r()}function c(d){n("onClickDevice",d)}function p(d){n("onClickOrganization",d)}return{getData:r,query:s,selectChange:i,onClickDevice:c,onClickOrganization:p}}const F8={class:"flex flex-col h-full text-xs"},O8={class:"flex items-center"},R8={class:"!w-[114px]"},P8={class:"text-hy-text-main"},M8={key:0,class:"flex items-center w-full h-full click-box"},U8={class:"flex-grow w-0 h-full flex items-center text-hy-text-main"},z8={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},W8={class:"text-hy-text-main"},j8={class:"flex-shrink-0 ml-1 mr-2 h-full flex items-center justify-center"},H8={key:0,class:"w-full h-full"},Y8=["onClick"],G8={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},q8=e.defineComponent({__name:"org-group-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},hideGroup:{type:Boolean,default:!1},hideDevice:{type:Boolean,default:!1}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData","onClickDevice","onClickOrganization"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:u,setChecked:y,setCheckedKeys:_,setSelectedList:k,selectFilterList:N,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:T,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C,onClickDevice:w,onClickOrganization:D}=L8({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:T}});return n({setCheckedKeys:_,setSelectedList:k,setChecked:y,getData:h}),e.onMounted(()=>{u(),a.fuzzySearch?(N.value=[{label:x("department"),value:null,placeholder:"部门、群组名称、设备名称、设备IMEI进行搜索"}],E.value=null):(N.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||N.value.push({label:x("equipment"),value:3,placeholder:x("filterByDeviceNumberAndDeviceName")}),a.hideGroup||N.value.push({label:"群组",value:4,placeholder:"群组名称进行筛选"}),E.value=N.value[0].value),a.defaultGetData||h()}),(S,L)=>{const A=e.resolveComponent("el-option"),j=e.resolveComponent("el-select"),O=e.resolveComponent("svg-icon"),P=e.resolveComponent("el-button"),z=e.resolveComponent("el-input"),U=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",F8,[e.createElementVNode("div",O8,[e.createVNode(z,{modelValue:e.unref(g),"onUpdate:modelValue":L[1]||(L[1]=M=>e.isRef(g)?g.value=M:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",P8,[e.createVNode(P,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(O,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",R8,[e.createVNode(j,{modelValue:e.unref(E),"onUpdate:modelValue":L[0]||(L[0]=M=>e.isRef(E)?E.value=M:null),class:"!m-0",size:"small",onChange:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),(M,Y)=>(e.openBlock(),e.createBlock(A,{key:`${Y}_selectFilterList`,label:M.label,value:M.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(S.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":4,"highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,"default-checked-list":a.defaultCheckedList,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:M})=>[e.renderSlot(S.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:M}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",M8,[e.createVNode(U,{class:"item",content:M.groupName,effect:"dark",placement:"bottom","show-after":1e3},{default:e.withCtx(()=>{var Y;return[e.createElementVNode("div",U8,[e.createElementVNode("div",z8,[e.createElementVNode("span",W8,e.toDisplayString(M.groupName),1)]),e.withDirectives(e.createElementVNode("span",{class:"flex-shrink-0 text-xs mr-2 ml-1 text-hy-main"},"("+e.toDisplayString(((Y=M.deviceList)==null?void 0:Y.length)||0)+")",513),[[e.vShow,!a.hideDevice]])])]}),_:2},1032,["content"]),e.createVNode(U,{class:"item",content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom","show-after":1e3},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",j8,[e.createVNode(O,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})],512),[[e.vShow,M.todayFile]])]),_:2},1032,["content"])]))]),"other-content":e.withCtx(({row:M})=>[e.renderSlot(S.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:M}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",H8,[M.type===3?(e.openBlock(),e.createBlock(fa,{key:0,device:M,onOnClickDevice:e.unref(w)},null,8,["device","onOnClickDevice"])):e.createCommentVNode("",!0),M.type!==3?(e.openBlock(),e.createBlock(U,{key:1,"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:M.companyName||M.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"w-full h-full flex items-center",onClick:Y=>e.unref(D)(M)},[e.createElementVNode("div",G8,[e.createElementVNode("span",null,e.toDisplayString(M.companyName||M.orgName),1)])],8,Y8)]),_:2},1032,["content"])):e.createCommentVNode("",!0)]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function K8(t){const n=e.ref(t.props),o=e.ref(t.params.selectFilterType),a=e.ref(""),s=e.ref([]);async function l(){var i;n.value.getData&&((i=n.value.getData())==null||i.then(async c=>{if(!c)return;const p=await Lr(a.value,[...c],{disabledIds:n.value.disableDataList.map(d=>`disabled:${d.id}`).toString(),hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});s.value=p.children,t.params.setViewDepartmentList(s.value)}))}function r(){a.value.length&&l()}return{getData:l,query:a,selectChange:r}}const X8={class:"flex flex-col h-full text-xs"},J8={class:"flex items-center"},Z8={class:"!w-[114px]"},Q8={class:"text-hy-text-main"},v8={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},eM={class:"flex-grow w-0 flex items-center mr-1"},tM={class:"overflow-ellipsis overflow-hidden mx-1"},nM={class:"flex-shrink-0 flex items-center"},oM={key:0,class:"w-full"},aM={class:"w-full h-full flex items-center"},sM={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},lM={class:"flex-shrink-0 text-xs ml-1 mx-2 text-hy-main"},rM=e.defineComponent({__name:"user-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:u,setChecked:y,setCheckedKeys:_,setSelectedList:k,selectFilterList:N,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:T,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=K8({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:T}});return n({setCheckedKeys:_,setSelectedList:k,setChecked:y,getData:h}),e.onMounted(()=>{u(),a.fuzzySearch?(N.value=[{label:x("department"),value:null,placeholder:"人员名称,部门名称筛选"}],E.value=null):(N.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||N.value.push({label:"人员",value:5,placeholder:x("filterByPersonnelName")}),E.value=N.value[0].value),a.defaultGetData||h()}),(w,D)=>{const S=e.resolveComponent("el-option"),L=e.resolveComponent("el-select"),A=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),O=e.resolveComponent("el-input"),P=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",X8,[e.createElementVNode("div",J8,[e.createVNode(O,{modelValue:e.unref(g),"onUpdate:modelValue":D[1]||(D[1]=z=>e.isRef(g)?g.value=z:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",Q8,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(A,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",Z8,[e.createVNode(L,{modelValue:e.unref(E),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(E)?E.value=z:null),class:"!m-0",size:"small",onChange:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),(z,U)=>(e.openBlock(),e.createBlock(S,{key:`${U}_selectFilterList`,label:z.label,value:z.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(w.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":5,"highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,"default-checked-list":a.defaultCheckedList,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:z})=>[e.renderSlot(w.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",v8,[e.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.name},{default:e.withCtx(()=>[e.createElementVNode("div",eM,[e.createVNode(A,{name:"icon-user",class:"!w-[14px] !h-[14px]"}),e.createElementVNode("div",tM,[e.createElementVNode("span",null,e.toDisplayString(z.name),1)])])]),_:2},1032,["content"]),z.todayFile?(e.openBlock(),e.createBlock(P,{key:0,class:"item","show-after":1e3,content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",nM,[e.createVNode(A,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]))]),"other-content":e.withCtx(({row:z})=>[e.renderSlot(w.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",oM,[e.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",aM,[e.createElementVNode("div",sM,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)]),e.createElementVNode("span",lM,"("+e.toDisplayString(z.childrenDeviceList.length||0)+")",1)])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});var Pr=(t=>(t[t.LAW_ENFORCEMENT_RECORDER=1]="LAW_ENFORCEMENT_RECORDER",t[t.WALKIE_TALKIE=2]="WALKIE_TALKIE",t[t.FIRE_DISPATCH_DESK=3]="FIRE_DISPATCH_DESK",t[t.FIRE_DUTY_DESK=4]="FIRE_DUTY_DESK",t[t.PHONE_APP=5]="PHONE_APP",t[t.CONTROL_THE_BALL=6]="CONTROL_THE_BALL",t[t.IPC_CAMERA=7]="IPC_CAMERA",t[t.HELMET=8]="HELMET",t[t.FLASHLIGHT=9]="FLASHLIGHT",t[t.WORK_LICENSE=10]="WORK_LICENSE",t[t.DRONE=11]="DRONE",t[t.CAR_PTZ=12]="CAR_PTZ",t[t.CASCADE_DEVICE_DOWN=13]="CASCADE_DEVICE_DOWN",t[t.JT808=14]="JT808",t[t.NATIONAL_STANDARD_RECORDER=15]="NATIONAL_STANDARD_RECORDER",t[t.RTOS_DEVICE=16]="RTOS_DEVICE",t[t.WATCH=17]="WATCH",t))(Pr||{});ae.DeviceEnum=Pr,ae.HyAbnormalDetail=J$,ae.HyAcquisitionStationTree=A8,ae.HyAddDepartmentType=Zm,ae.HyAudioPlayer=kr,ae.HyBoxBorder=$e,ae.HyCommonTaskDetailModal=zI,ae.HyDataTimeShortcuts=Td,ae.HyDeviceDetails=Lu,ae.HyDeviceTree=Rr,ae.HyDeviceTreeCpns=fa,ae.HyEditSpotCheck=zP,ae.HyElectronicFence=h1,ae.HyElectronicPatrolDetail=Tr,ae.HyFileDetails=jb,ae.HyFileUpload=WC,ae.HyImageViewer=Wo,ae.HyMapNoPermissions=pn,ae.HyMapSearchPlace=na,ae.HyMenuComponents=zf,ae.HyOrgCascader=El,ae.HyOrgGroupTree=q8,ae.HyOrgTree=Or,ae.HyRoundButton=Me,ae.HySelect=yf,ae.HySelectMapLocation=GC,ae.HySpotCheckDetail=x8,ae.HySvgIcon=Sl,ae.HyTable=Yt,ae.HyTableHead=lm,ae.HyTipsModal=mt,ae.HyUserHead=xt,ae.HyUserTree=rM,ae.HyVideoPlayer=oa,ae.HyVueCropper=Vl,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})});
|
52
|
+
<use data-v-19e5a669="" xlink:href="#icon-marker-abnormal"></use></svg>`,zIndexOffset:10,iconAnchor:[-30,-60]}).on("click",()=>{L(l.value)}))}function L(M,Y=18){c.setView(u.value,[M.lat,M.lng],18)}function A(M){s.value=M}async function j(){return new Promise(async(M,Y)=>{const F=await Bl({recordId:i.value});F.code===200&&(r.value=F.data||{},r.value.imageList&&(r.value.imageListV2=r.value.imageList.map(Q=>Q.filePath)),M(0))})}async function O(){return new Promise(async(M,Y)=>{const F=await Hu({id:i.value});if(F.code===200){const Q=F.data||{};l.value=Q,l.value.id=i.value,a.value.taskId=Q.abnormalTaskId,M(0)}})}function P(){u.value=null}function z(M){if(!M)return Se.error(`recordId ${x("theParametersAreWrong")}`);i.value=M,P(),A("details"),a.value={taskId:null,reportState:null,orgId:null},j(),O().then(()=>{_.value=!0,e.nextTick(()=>{D(),h()})})}function U(){_.value=!1}return{$t:x,searchArr:n,tableColumns:o,requestParams:a,abnormalState:s,form:l,deviceReport:r,recordId:i,map:u,marker:y,dialogVisible:_,electronicPatrolDetailsRef:k,submissionFormRef:N,AppTableRef:E,handlingExceptionRef:b,taskDetailsShow:T,visibleChange:V,submissionFormShow:$,appTableGetData:h,orgCascaderOnChange:g,handlingExceptionShow:C,clickGroupItem:w,initMap:D,addMarker:S,pantoSomeWhere:L,abnormalStateFn:A,deviceReportFn:j,selectFn:O,emptyMap:P,show:z,onClose:U}}const kD=t=>(e.pushScopeId("data-v-15f47add"),t=t(),e.popScopeId(),t),ND={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},bD={class:"absolute right-[12px] top-[12px]"},CD={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg relative z-[20]"},wD={class:"dialog_body"},ED={class:"ovh centerBox overflow-hidden flex items-center justify-center"},SD={class:"r-f navigation flex"},TD={style:{height:"500px"},class:"c_fff fs_12 text-hy-text-main text-[12px]"},DD={class:"w_100vh h_100vh r-f details_box w-full h-full flex"},VD={class:"taskDetails lh_20 flex-shrink leading-[20px]"},$D={class:"c_dangerv2 fw_600 fs_16 mb_10 text-hy-danger font-[600] text-[16px] mb-[10px]"},BD={key:0,class:"mb_10 mb-[10px]"},ID={class:"c_9DA7B2 text-hy-text-secondary"},AD=["innerHTML"],LD={class:"mb_10 mb-[10px]"},FD={class:"c_9DA7B2 text-hy-text-secondary"},OD={class:"mb_10 mb-[10px]"},RD={class:"c_9DA7B2 text-hy-text-secondary"},PD={class:"mb_10 mb-[10px]"},MD={class:"c_9DA7B2 text-hy-text-secondary"},UD={class:"mb_10 mb-[10px]"},zD={class:"c_9DA7B2 text-hy-text-secondary"},WD={class:"f-g c-f flex flex-col w-0 flex-grow"},jD={class:"h_40 lh_40 fs_14 h-[40px] leading-[40px] text-[14px]"},HD={class:"title"},YD=kD(()=>e.createElementVNode("div",{id:"abnormalDetailsMap",class:"w_100vh w-full",style:{height:"0","flex-grow":"1","border-radius":"6px"}},null,-1)),GD={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},qD={class:"information"},KD={class:"flex_vertically_center flex items-center"},XD={style:{"margin-left":"6px"}},JD={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},ZD={class:"flex_vertically_center flex items-center"},QD={style:{"margin-left":"6px"}},vD={key:0,class:"type_box success"},eV={key:1,class:"type_box"},tV={class:"form"},nV={key:0},oV={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},aV={class:"r-f mb_10 flex_vertically_center flex items-center mb-[10px]"},sV={class:"mr_10 label flex-shrink mr-[10px]"},lV={class:"r-f flex_vertically_center flex items-center"},rV={class:"mr_10 label label_answer flex-shrink mr-[10px]"},iV={key:0,class:"c_theme text-hy-text-primary"},cV={key:1,class:"c_9DA7B2 text-hy-text-secondary"},dV={key:1},pV={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},fV={class:"group-item"},mV=["onClick"],hV={key:0,class:"c-f-i group-content r-f flex"},uV={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},_V=["src"],gV={key:1,style:{"flex-grow":"1"}},yV={class:"icon-box c-f-i flex"},xV={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},kV={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},NV={key:0,class:"information-type"},bV={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},CV={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},wV={key:0,class:"c_9DA7B2 text-hy-text-secondary"},EV={key:1},SV={key:1,class:"c-f-i group-content r-f flex"},TV={style:{"flex-grow":"1"}},DV={class:"icon-box c-f-i flex"},VV={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},$V={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},BV={key:0,class:"information-type"},IV={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},AV={key:2,style:{background:"var(--hy-warning)"},class:"information-type font-[600]"},LV={key:0,class:"c_9DA7B2 text-hy-text-secondary"},FV={key:1},OV={key:2,class:"c-f-i group-content r-f flex"},RV={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},PV=["src"],MV={key:1,style:{"flex-grow":"1"}},UV={class:"icon-box c-f-i flex"},zV={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},WV={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},jV={key:0,class:"information-type"},HV={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},YV={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},GV={key:0,class:"c_9DA7B2 text-hy-text-secondary"},qV={key:1},KV={key:2},XV={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},JV={class:"group-item"},ZV=["onClick"],QV={key:0,class:"c-f-i group-content r-f flex"},vV={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},e$=["src"],t$={key:1,style:{"flex-grow":"1"}},n$={class:"icon-box c-f-i flex"},o$={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},a$={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},s$={key:0,class:"information-type"},l$={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},r$={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},i$={key:0,class:"c_9DA7B2 text-hy-text-secondary"},c$={key:1},d$={key:1,class:"c-f-i group-content r-f flex"},p$={style:{"flex-grow":"1"}},f$={class:"icon-box c-f-i flex"},m$={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},h$={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},u$={key:0,class:"information-type"},_$={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},g$={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},y$={key:0,class:"c_9DA7B2 text-hy-text-secondary"},x$={key:1},k$={key:2,class:"c-f-i group-content r-f flex"},N$={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},b$=["src"],C$={key:1,style:{"flex-grow":"1"}},w$={class:"icon-box c-f-i flex"},E$={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},S$={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},T$={key:0,class:"information-type"},D$={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},V$={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},$$={key:0,class:"c_9DA7B2 text-hy-text-secondary"},B$={key:1},I$={class:"c-f w_100vh h_100vh handling_box flex flex-col w-full h-full"},A$={key:0,class:"h_100vh centerBox c_9DA7B2 noTaskSelected h-full flex items-center justify-center text-hy-text-secondary"},L$={class:"tac text-center"},F$={class:"mt_10 mt-[10px]"},O$={class:"fs_12 text-[12px]"},R$={key:1},P$={class:"progress_box centerBox fs_12 flex items-center justify-center text-[12px]"},M$={key:0,class:"c_theme text-hy-text-primary"},U$={key:1,class:"c_success text-hy-success"},z$={style:{width:"108px"},class:"plr_10 p-[0_10px]"},W$={class:"c_theme text-hy-text-primary"},j$={key:0,class:"r-f flex",style:{"flex-wrap":"wrap"}},H$={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},Y$={key:1,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},G$={key:0,class:"c_theme text-hy-text-primary"},q$={key:1,class:"c_9DA7B2 text-hy-text-secondary"},K$={class:"pos_r relative"},X$={key:0,style:{cursor:"pointer"}},J$=be(e.defineComponent({__name:"abnormal-detail",props:{draggable:{type:Boolean,default:!1}},emits:["on-getData"],setup(t,{expose:n,emit:o}){const a=o,{$t:s,show:l,dialogVisible:r,handlingExceptionRef:i,electronicPatrolDetailsRef:c,submissionFormRef:p,onClose:d,abnormalState:f,AppTableRef:m,abnormalStateFn:u,form:y,taskDetailsShow:_,deviceReport:k,clickGroupItem:N,handlingExceptionShow:E,tableColumns:b,searchArr:T,requestParams:V,submissionFormShow:$,orgCascaderOnChange:h,appTableGetData:g,visibleChange:C}=xD({emit:a});return n({show:l}),(w,D)=>{const S=e.resolveComponent("svg-icon"),L=$t,A=e.resolveComponent("el-icon"),j=e.resolveComponent("el-button"),O=e.resolveComponent("el-progress"),P=e.resolveComponent("el-option"),z=e.resolveComponent("el-select"),U=Tl,M=e.resolveComponent("el-dialog"),Y=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(M,{modelValue:e.unref(r),"onUpdate:modelValue":D[8]||(D[8]=F=>e.isRef(r)?r.value=F: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:"1000px",modal:!w.draggable,draggable:w.draggable,"modal-class":w.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",ND,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("abnormalDetail")),1),e.createElementVNode("div",bD,[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"])])])),[[Y]])]),default:e.withCtx(()=>[e.createElementVNode("div",CD,[e.createElementVNode("div",wD,[e.createElementVNode("div",ED,[e.createElementVNode("ul",SD,[e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(f)==="details"}]),onClick:D[0]||(D[0]=F=>e.unref(u)("details"))},e.toDisplayString(e.unref(s)("abnormalDetails")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(f)==="form"}]),onClick:D[1]||(D[1]=F=>e.unref(u)("form"))},e.toDisplayString(e.unref(s)("abnormalForm")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(f)==="handling"}]),onClick:D[2]||(D[2]=F=>e.unref(u)("handling"))},e.toDisplayString(e.unref(s)("handling")),3)])]),e.createElementVNode("div",TD,[e.withDirectives(e.createElementVNode("div",DD,[e.createElementVNode("div",VD,[e.createElementVNode("p",$D,e.toDisplayString(e.unref(y).taskName),1),e.unref(y).taskInfo?(e.openBlock(),e.createElementBlock("div",BD,[e.createElementVNode("p",ID,e.toDisplayString(e.unref(s)("taskDescription")),1),e.createElementVNode("p",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(y).taskInfo},null,8,AD)])):e.createCommentVNode("",!0),e.createElementVNode("div",LD,[e.createElementVNode("p",FD,e.toDisplayString(e.unref(s)("implementRoute")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(y).lineName),1)]),e.createElementVNode("div",OD,[e.createElementVNode("p",RD,e.toDisplayString(e.unref(s)("abnormalLocation")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(y).pointName),1)]),e.createElementVNode("div",PD,[e.createElementVNode("p",MD,e.toDisplayString(e.unref(s)("executionTime")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(y).executeDtm),1)]),e.createElementVNode("div",UD,[e.createElementVNode("p",zD,e.toDisplayString(e.unref(s)("associatedTask")),1),e.createElementVNode("p",{class:"c_theme flex_vertically_center clickBox css-text-no-select text-hy-text-primary flex items-center cursor-pointer",onClick:D[3]||(D[3]=F=>e.unref(_)(e.unref(y).sourceId))},[e.createElementVNode("span",null,e.toDisplayString(e.unref(y).sourceTaskName),1),e.createVNode(A,{class:"ml-[6px] !text-[14px] !text-hy-text-primary"},{default:e.withCtx(()=>[e.createVNode(L)]),_:1})])])]),e.createElementVNode("div",WD,[e.createElementVNode("div",jD,[e.createElementVNode("span",HD,e.toDisplayString(e.unref(s)("abnormalPosition")),1)]),YD])],512),[[e.vShow,e.unref(f)==="details"]]),e.withDirectives(e.createElementVNode("div",GD,[e.createElementVNode("div",qD,[e.createElementVNode("div",KD,[e.createVNode(S,{style:{width:"14px",height:"14px"},name:"base-user-online"}),e.createElementVNode("span",XD,[e.createTextVNode(e.toDisplayString(e.unref(k).name),1),e.unref(k).jobNum?(e.openBlock(),e.createElementBlock("span",JD,"("+e.toDisplayString(e.unref(k).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",ZD,[e.createVNode(S,{name:"base-every-day-time","class-name":"w-[16px] h-[16px]"}),e.createElementVNode("span",QD,e.toDisplayString(e.unref(k).executeDtm),1)]),e.unref(k).checkState===1?(e.openBlock(),e.createElementBlock("div",vD,e.toDisplayString(e.unref(s)("normal")),1)):e.unref(k).checkState===2?(e.openBlock(),e.createElementBlock("div",eV,e.toDisplayString(e.unref(s)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",tV,[e.unref(k).formList&&e.unref(k).formList.length?(e.openBlock(),e.createElementBlock("div",nV,[e.createElementVNode("div",oV,e.toDisplayString(e.unref(s)("formContent")),1),e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k).formList,(F,Q)=>(e.openBlock(),e.createElementBlock("li",{key:Q,class:"border-top ptb_10 p-[10px_0]"},[e.createElementVNode("div",aV,[e.createElementVNode("p",sV,e.toDisplayString(e.unref(s)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(F.optionTitle),1)]),e.createElementVNode("div",lV,[e.createElementVNode("p",rV,e.toDisplayString(e.unref(s)("answer")),1),F.optionValue?(e.openBlock(),e.createElementBlock("span",iV,e.toDisplayString(F.optionValue),1)):(e.openBlock(),e.createElementBlock("span",cV,e.toDisplayString(e.unref(s)("unfilled")),1))])]))),128))])])):e.createCommentVNode("",!0),e.unref(k).imageList&&e.unref(k).imageList.length?(e.openBlock(),e.createElementBlock("div",dV,[e.createElementVNode("div",pV,e.toDisplayString(e.unref(s)("picture")),1),e.createElementVNode("div",fV,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k).imageList,F=>(e.openBlock(),e.createElementBlock("div",{key:F.id,onClick:Q=>e.unref(N)(F)},[F.fileType===1?(e.openBlock(),e.createElementBlock("div",hV,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:F.check},"group-content-item"])},[F.filePath&&F.del!==1?(e.openBlock(),e.createElementBlock("div",uV,[e.createElementVNode("img",{src:F.filePath,class:"h_100vh h-full"},null,8,_V)])):(e.openBlock(),e.createElementBlock("div",gV,[e.createElementVNode("div",yV,[e.createVNode(S,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(S,{style:{margin:"0 4px"},name:"menu-image","class-name":"w-[40px] h-[40px]"}),e.createVNode(S,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",xV,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:F.del===1}])},e.toDisplayString(F.fileName),3)]),e.createElementVNode("div",kV,[F.type===1?(e.openBlock(),e.createElementBlock("div",NV,e.toDisplayString(e.unref(s)("daily")),1)):F.type===2?(e.openBlock(),e.createElementBlock("div",bV,e.toDisplayString(e.unref(s)("task")),1)):F.type===3?(e.openBlock(),e.createElementBlock("div",CV," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[F.hadPoint?(e.openBlock(),e.createElementBlock("li",wV,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),F.hadRemark?(e.openBlock(),e.createElementBlock("li",EV,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),F.mark?(e.openBlock(),e.createBlock(S,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):F.fileType===4?(e.openBlock(),e.createElementBlock("div",SV,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:F.check},"group-content-item"])},[e.createElementVNode("div",TV,[e.createElementVNode("div",DV,[e.createVNode(S,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(S,{name:"menu-micphone","class-name":"w-[40px] h-[40px]"}),e.createVNode(S,{style:{"margin-left":"4px"},name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])]),e.createElementVNode("div",VV,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:F.del===1}])},e.toDisplayString(F.fileName),3)]),e.createElementVNode("div",$V,[F.type===1?(e.openBlock(),e.createElementBlock("div",BV,e.toDisplayString(e.unref(s)("daily")),1)):F.type===2?(e.openBlock(),e.createElementBlock("div",IV,e.toDisplayString(e.unref(s)("task")),1)):F.type===3?(e.openBlock(),e.createElementBlock("div",AV," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[F.hadPoint?(e.openBlock(),e.createElementBlock("li",LV,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),F.hadRemark?(e.openBlock(),e.createElementBlock("li",FV,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),F.mark?(e.openBlock(),e.createBlock(S,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):F.fileType===2?(e.openBlock(),e.createElementBlock("div",OV,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:F.check},"group-content-item"])},[F.screenshot1?(e.openBlock(),e.createElementBlock("div",RV,[e.createElementVNode("img",{src:F.screenshot1,class:"h_100vh h-full"},null,8,PV)])):(e.openBlock(),e.createElementBlock("div",MV,[e.createElementVNode("div",UV,[e.createVNode(S,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(S,{style:{margin:"0 4px"},name:"menu-video","class-name":"w-[40px] h-[40px]"}),e.createVNode(S,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",zV,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:F.del===1}])},e.toDisplayString(F.fileName),3)]),e.createElementVNode("div",WV,[F.type===1?(e.openBlock(),e.createElementBlock("div",jV,e.toDisplayString(e.unref(s)("daily")),1)):F.type===2?(e.openBlock(),e.createElementBlock("div",HV,e.toDisplayString(e.unref(s)("task")),1)):F.type===3?(e.openBlock(),e.createElementBlock("div",YV," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[F.hadPoint?(e.openBlock(),e.createElementBlock("li",GV,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),F.hadRemark?(e.openBlock(),e.createElementBlock("li",qV,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),F.mark?(e.openBlock(),e.createBlock(S,{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,mV))),128))])])):e.createCommentVNode("",!0),e.unref(k).videoList&&e.unref(k).videoList.length?(e.openBlock(),e.createElementBlock("div",KV,[e.createElementVNode("div",XV,e.toDisplayString(e.unref(s)("video")),1),e.createElementVNode("div",JV,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k).videoList,F=>(e.openBlock(),e.createElementBlock("div",{key:F.id,onClick:Q=>e.unref(N)(F)},[F.fileType===1?(e.openBlock(),e.createElementBlock("div",QV,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:F.check},"group-content-item"])},[F.filePath&&F.del!==1?(e.openBlock(),e.createElementBlock("div",vV,[e.createElementVNode("img",{src:F.filePath,class:"h_100vh h-full"},null,8,e$)])):(e.openBlock(),e.createElementBlock("div",t$,[e.createElementVNode("div",n$,[e.createVNode(S,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(S,{style:{margin:"0 4px"},name:"menu-image","class-name":"w-[40px] h-[40px]"}),e.createVNode(S,{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:F.del===1}])},e.toDisplayString(F.fileName),3)]),e.createElementVNode("div",a$,[F.type===1?(e.openBlock(),e.createElementBlock("div",s$,e.toDisplayString(e.unref(s)("daily")),1)):F.type===2?(e.openBlock(),e.createElementBlock("div",l$,e.toDisplayString(e.unref(s)("task")),1)):F.type===3?(e.openBlock(),e.createElementBlock("div",r$," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[F.hadPoint?(e.openBlock(),e.createElementBlock("li",i$,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),F.hadRemark?(e.openBlock(),e.createElementBlock("li",c$,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),F.mark?(e.openBlock(),e.createBlock(S,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):F.fileType===4?(e.openBlock(),e.createElementBlock("div",d$,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:F.check},"group-content-item"])},[e.createElementVNode("div",p$,[e.createElementVNode("div",f$,[e.createVNode(S,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(S,{name:"menu-micphone","class-name":"w-[40px] h-[40px]"}),e.createVNode(S,{style:{"margin-left":"4px"},name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])]),e.createElementVNode("div",m$,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:F.del===1}])},e.toDisplayString(F.fileName),3)]),e.createElementVNode("div",h$,[F.type===1?(e.openBlock(),e.createElementBlock("div",u$,e.toDisplayString(e.unref(s)("daily")),1)):F.type===2?(e.openBlock(),e.createElementBlock("div",_$,e.toDisplayString(e.unref(s)("task")),1)):F.type===3?(e.openBlock(),e.createElementBlock("div",g$," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[F.hadPoint?(e.openBlock(),e.createElementBlock("li",y$,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),F.hadRemark?(e.openBlock(),e.createElementBlock("li",x$,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),F.mark?(e.openBlock(),e.createBlock(S,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},"svg-name":"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):F.fileType===2?(e.openBlock(),e.createElementBlock("div",k$,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:F.check},"group-content-item"])},[F.screenshot1?(e.openBlock(),e.createElementBlock("div",N$,[e.createElementVNode("img",{src:F.screenshot1,class:"h_100vh h-full"},null,8,b$)])):(e.openBlock(),e.createElementBlock("div",C$,[e.createElementVNode("div",w$,[e.createVNode(S,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(S,{style:{margin:"0 4px"},name:"menu-video","class-name":"w-[40px] h-[40px]"}),e.createVNode(S,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",E$,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:F.del===1}])},e.toDisplayString(F.fileName),3)]),e.createElementVNode("div",S$,[F.type===1?(e.openBlock(),e.createElementBlock("div",T$,e.toDisplayString(e.unref(s)("daily")),1)):F.type===2?(e.openBlock(),e.createElementBlock("div",D$,e.toDisplayString(e.unref(s)("task")),1)):F.type===3?(e.openBlock(),e.createElementBlock("div",V$," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[F.hadPoint?(e.openBlock(),e.createElementBlock("li",$$,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),F.hadRemark?(e.openBlock(),e.createElementBlock("li",B$,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),F.mark?(e.openBlock(),e.createBlock(S,{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,ZV))),128))])])):e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(f)==="form"]]),e.withDirectives(e.createElementVNode("div",I$,[e.unref(y).dealState===0||e.unref(y).dealState===1?(e.openBlock(),e.createElementBlock("div",A$,[e.createElementVNode("div",L$,[e.createVNode(S,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",F$,[e.unref(y).dealState===1?(e.openBlock(),e.createBlock(j,{key:0,class:"button_function",onClick:D[4]||(D[4]=F=>e.unref(E)(e.unref(y)))},{default:e.withCtx(()=>[e.createElementVNode("span",O$,e.toDisplayString(e.unref(s)("processedImmediately")),1)]),_:1})):(e.openBlock(),e.createElementBlock("span",R$,e.toDisplayString(e.unref(s)("noNeedToDealWith")),1))])])])):(e.openBlock(),e.createBlock(Yt,{key:1,ref_key:"AppTableRef",ref:m,"column-list":e.unref(b),"search-arr":e.unref(T),"default-get-data":!1,"req-url":"scrollCheck/abnormal/sctUser/page","search-form":e.unref(V),height:"100%"},{tableLeft:e.withCtx(()=>[e.createElementVNode("div",P$,[e.unref(y).dealState===2?(e.openBlock(),e.createElementBlock("span",M$,e.toDisplayString(e.unref(s)("execute")),1)):e.unref(y).dealState===3?(e.openBlock(),e.createElementBlock("span",U$,e.toDisplayString(e.unref(s)("completed")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",z$,[e.createVNode(O,{class:e.normalizeClass({"progress-bar_outer":e.unref(y).taskProgress!==100}),"text-inside":!0,"stroke-width":16,status:e.unref(y).taskProgress!==100?"exception":"success",percentage:e.unref(y).taskProgress},null,8,["class","status","percentage"])]),e.createElementVNode("span",W$,e.toDisplayString(e.unref(y).finishNum||0)+"/"+e.toDisplayString(e.unref(y).totalNum||0),1)])]),userInformation:e.withCtx(({row:F})=>[F.name?(e.openBlock(),e.createElementBlock("div",j$,[e.createTextVNode(e.toDisplayString(F.name)+" ",1),F.jobNum?(e.openBlock(),e.createElementBlock("span",H$,"("+e.toDisplayString(F.jobNum)+")",1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",Y$," -- "))]),reportState:e.withCtx(({row:F})=>[F.reportState===1?(e.openBlock(),e.createElementBlock("span",G$,e.toDisplayString(e.unref(s)("haveBeenReported")),1)):(e.openBlock(),e.createElementBlock("span",q$,e.toDisplayString(e.unref(s)("notReported")),1))]),operator:e.withCtx(({row:F})=>[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(s)("viewForm"),onClick:Q=>e.unref($)(F)},null,8,["tips","onClick"])]),orgHeader:e.withCtx(({column:F})=>[e.createVNode(El,{ref:"orgCascader","content-type":!0,onChange:D[5]||(D[5]=Q=>e.unref(h)(Q))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(F.label),1)]),_:2},1536)]),reportStateHeader:e.withCtx(({column:F})=>[e.createElementVNode("div",K$,[e.createElementVNode("div",{style:e.normalizeStyle([{opacity:F.focusType?1:0,position:F.focusType?"relative":"absolute"},{top:"0",left:"0",right:"0",bottom:"0"}])},[e.createVNode(z,{modelValue:e.unref(V).reportState,"onUpdate:modelValue":D[6]||(D[6]=Q=>e.unref(V).reportState=Q),style:{width:"100%"},clearable:"",placeholder:F.label,onChange:D[7]||(D[7]=Q=>e.unref(g)()),onVisibleChange:Q=>e.unref(C)(Q,F,"focusType")},{default:e.withCtx(()=>[e.createVNode(P,{label:e.unref(s)("notReported"),value:0},null,8,["label"]),e.createVNode(P,{label:e.unref(s)("haveBeenReported"),value:1},null,8,["label"])]),_:2},1032,["modelValue","placeholder","onVisibleChange"])],4),F.focusType?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",X$,[e.createVNode(A,null,{default:e.withCtx(()=>[e.createVNode(U)]),_:1}),e.createTextVNode(" "+e.toDisplayString(F.label)+" ",1),e.withDirectives(e.createElementVNode("span",{class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"}," ("+e.toDisplayString(e.unref(s)("reported")),513),[[e.vShow,e.unref(V).reportState===1]]),e.withDirectives(e.createElementVNode("span",{class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"}," ("+e.toDisplayString(e.unref(s)("notReported-0")),513),[[e.vShow,e.unref(V).reportState===0]])]))])]),_:1},8,["column-list","search-arr","search-form"]))],512),[[e.vShow,e.unref(f)==="handling"]])]),e.createVNode(yD,{ref_key:"handlingExceptionRef",ref:i,draggable:w.draggable},null,8,["draggable"]),e.createVNode(Er,{ref_key:"submissionFormRef",ref:p,draggable:w.draggable},null,8,["draggable"]),e.createVNode(Tr,{ref_key:"electronicPatrolDetailsRef",ref:c,draggable:w.draggable},null,8,["draggable"])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-15f47add"]]);function Z$(){const t=e.ref(!1),n=e.ref(),{H:o,POI:a,isShowMap:s,layersUrlList:l,mapConfig:r}=Zt(),i=e.shallowRef(),c=e.shallowRef();e.ref();const p=e.ref(""),d=[{label:"地理地址",value:1},{label:"部门名称",value:4}];function f({mapRailId:_}){n.value=_,t.value=!0,y()}function m(){t.value=!1}async function u(){p.value=null;const _=await gr({id:n.value});if(_.code===200){const k=_.data.pointList;p.value=_.data.railName;const N=[];k.forEach(E=>{N.push([E.lat,E.lng])}),c.value=o.polygon(i.value,N,{weight:6,color:"#FF33FF",opacity:.2,fillColor:"#1791fc",fillOpacity:.4}),o.fitBounds(i.value,N)}}function y(){e.nextTick(async()=>{let _=[];const k=He.getCache("userInfo");k.lng&&k.lat&&(_=[k.lat,k.lng]),_.length===0&&(_=null),i.value=await o.map("locationArea_container",{maxZoom:r.maxZoom||18,minZoom:r.minZoom||13,zoom:r.zoom||13,center:_,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:l,layerType:r.satelliteMap}),i.value.on("complete",()=>{u()})})}return{dialogVisible:t,show:f,close:m,railName:p,POI:a,map:i,H:o,searchTypes:d}}const Q$=t=>(e.pushScopeId("data-v-e3121b24"),t=t(),e.popScopeId(),t),v$={class:"w-full h-[560px] relative p-[10px] box-border"},e2=Q$(()=>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)),t2={class:"absolute top-[20px] right-[20px] w-[300px] z-10"},n2={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"},o2={class:"flex"},a2={class:"flex justify-center items-center"},s2={style:{"margin-left":"8px"}},l2={class:"font-bold"},r2=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}=Z$();return n({show:a}),(d,f)=>{const m=e.resolveComponent("el-button"),u=e.resolveComponent("svg-icon"),y=e.resolveComponent("el-dialog"),_=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",v$,[e2,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",t2,[e.createVNode(na,{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",n2,[e.createElementVNode("div",o2,[e.createElementVNode("div",null,[e.createElementVNode("span",a2,[e.createVNode(u,{name:"police-situation-ps-around",style:{width:"20px",height:"20px"}}),e.createElementVNode("span",s2,e.toDisplayString(e.unref(x)("currentPositioning")),1)])]),e.createElementVNode("div",l2,[e.createElementVNode("span",null,e.toDisplayString(e.unref(l)),1)])])])])]),_:1})),[[_]])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-e3121b24"]]),i2={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},c2=[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 d2(t,n){return e.openBlock(),e.createElementBlock("svg",i2,[...c2])}const Dr={name:"ep-success-filled",render:d2},p2={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},f2=[e.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1)];function m2(t,n){return e.openBlock(),e.createElementBlock("svg",p2,[...f2])}const Vr={name:"ep-caret-right",render:m2};function h2({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 ia({id:t.taskItemId,viewMode:1});if(d.code===200){const f=d.data||{};if(f.deviceUserList){const u=f.deviceUserList,y=[];u.forEach(_=>{const k=y.findIndex(E=>E.orgId===_.orgId),N=_;N.key=Hn(1),k===-1?y.push({orgName:_.orgName,orgId:_.orgId,deviceUserList:[{...N}]}):y[k].deviceUserList.push({...N})}),s.value=y}else s.value=[];a.value=[],s.value.forEach(u=>{u.deviceUserList&&u.deviceUserList.length&&a.value.push(...u.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 u2={class:"r-f h_100vh flex h-full"},_2={class:"background_box information css-text-no-select"},g2=["onClick"],y2={style:{"margin-left":"4px"}},x2=["onClick"],k2={class:"flex-grow flex w-0"},N2={class:"over_one_line flex-grow w-0 truncate"},b2={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},C2={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},w2={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},E2={class:"flex_vertically_center mb_10 flex items-center mb-[10px]"},S2={class:"title_box pl_10 pl-[10px]"},T2={class:"c_9DA7B2 text-hy-text-secondary"},D2={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},V2={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},$2={class:"recordList fs_12 text-[12px] overflow-hidden"},B2={class:"actionList c_fff"},I2={key:0,class:"indexBox centerBox flex items-center justify-center"},A2={key:1,class:"indexBoxv2 centerBox"},L2={class:"mediaFileList c_9DA7B2 text-hy-text-secondary"},F2={key:0,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},O2={key:1},R2=["onClick"],P2={class:"fileDel clickBox"},M2={key:1,class:"file clickBox"},U2={key:2,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},z2=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}=h2({props:o});return e.onMounted(()=>{c()}),n({taskItemViewFn:c}),(m,u)=>{const y=Vr,_=e.resolveComponent("el-icon"),k=$t,N=e.resolveComponent("el-tooltip"),E=Dr;return e.openBlock(),e.createElementBlock("div",u2,[e.createElementVNode("div",_2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(b,T)=>(e.openBlock(),e.createElementBlock("div",{key:`${T}deviceUserList`},[e.createElementVNode("div",{class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:V=>e.unref(p)(b.orgId)},[e.createVNode(_,{style:e.normalizeStyle({transform:b.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",y2,e.toDisplayString(b.orgName),1)],8,g2),e.createElementVNode("div",{class:"transition_05",style:e.normalizeStyle({overflow:b.orgId===e.unref(i)?"inherit":"hidden",height:b.orgId===e.unref(i)?`${b.deviceUserList.length*40}px`:"0px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.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",k2,[e.createElementVNode("div",N2,e.toDisplayString(V.deviceUserName),1),e.createElementVNode("span",b2," ("+e.toDisplayString(V.jobNum)+")",1)]),V.status===0?(e.openBlock(),e.createElementBlock("div",C2,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",w2,e.toDisplayString(e.unref(a)("finish")),1))],8,x2))),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),b=>(e.openBlock(),e.createElementBlock("li",{key:b.key,ref_for:!0,ref:b.key,class:"ovh"},[e.createElementVNode("div",E2,[e.createElementVNode("div",S2,[e.createTextVNode(e.toDisplayString(b.deviceUserName)+" ",1),e.createElementVNode("span",T2,"("+e.toDisplayString(b.jobNum)+")",1)]),b.status===0?(e.openBlock(),e.createElementBlock("div",D2,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",V2,e.toDisplayString(e.unref(a)("finish")),1))]),e.createElementVNode("ul",$2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.recordList,(T,V)=>(e.openBlock(),e.createElementBlock("li",{key:`${V}recordList`,class:e.normalizeClass([`recordItem_${T.status}`,"background_box mb_10 ovh overflow-hidden mb-[10px]"])},[e.createElementVNode("div",B2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.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",I2,e.toDisplayString(V+1),1)):(e.openBlock(),e.createElementBlock("span",A2)),e.createElementVNode("span",null,e.toDisplayString($.actionDetail),1)]))),128))]),e.createElementVNode("div",L2,[T.status===0?(e.openBlock(),e.createElementBlock("div",F2,[e.createVNode(_,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(k)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("unfinishedTask")),1)])):T.status===1&&T.mediaFileList&&T.mediaFileList.length?(e.openBlock(),e.createElementBlock("div",O2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.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(_,{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(N,{key:0,class:"item",effect:"dark",content:e.unref(a)("theFileHasBeenDeletedAndCannotBeViewed"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",P2,e.toDisplayString($.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",M2,e.toDisplayString($.fileName),1))],8,R2))),128))])):(e.openBlock(),e.createElementBlock("div",U2,[e.createVNode(_,{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"]]),W2={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},j2=[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 H2(t,n){return e.openBlock(),e.createElementBlock("svg",W2,[...j2])}const Y2={name:"ep-clock",render:H2};function G2({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 ia({id:t.taskItemId,viewMode:1});if(p.code===200){const d=p.data||{};if(d.deviceUserList){const m=d.deviceUserList,u=[];m.forEach(y=>{const _=u.findIndex(N=>N.orgId===y.orgId),k=y;if(k.key=Hn(1),y.userReport){const N=y.userReport;k.urTemplateName=N.templateName,k.urSubmitDtm=N.submitDtm,k.urOptionList=N.optionList||[]}_===-1?u.push({orgName:y.orgName,orgId:y.orgId,deviceUserList:[{...k}]}):u[_].deviceUserList.push({...k})}),s.value=u}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 q2={class:"r-f h_100vh flex h-full"},K2={class:"background_box information css-text-no-select"},X2=["onClick"],J2={style:{"margin-left":"4px"}},Z2=["onClick"],Q2={class:"flex-grow flex w-0"},v2={class:"over_one_line flex-grow w-0 truncate"},eB={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},tB={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},nB={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},oB={key:0,ref:"reportListRef",class:"f-g reportList w-0 flex-grow"},aB={key:0,class:"background_box h_100vh lh_20 h-full leading-[20px]"},sB={class:"fs_14 plr_20 border-bottom mtb_10 m-[10px_0] p-[0_20px] text-[14px]"},lB={class:"flex_vertically_center flex items-center",style:{"justify-content":"space-between"}},rB={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},iB={class:"c_9DA7B2 r-f lh_30 flex leading-[30px] text-hy-text-secondary",style:{"justify-content":"space-between"}},cB={class:"flex_vertically_center flex items-center"},dB={style:{"margin-left":"4px"}},pB={style:{padding:"0 20px 10px"}},fB={class:"mb_10 r-f mb-[10px] flex"},mB={class:"mr_10 label flex-shrink mr-[10px]"},hB={class:"c_theme r-f flex text-hy-text-primary"},uB={class:"mr_10 label label_answer flex-shrink mr-[10px]"},_B={key:0,class:"c_theme text-hy-text-primary"},gB={key:1,class:"c_theme text-hy-text-primary"},yB={key:1,class:"background_box h_100vh c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary h-full"},xB={class:"fs_14 plr_20 border-bottom text-[14px] p-[0_20px]"},kB={class:"flex_vertically_center lh_40 flex items-center leading-[40px]",style:{"justify-content":"space-between"}},NB={class:"c_9DA7B2 text-hy-text-secondary"},bB={class:"tac ptb_20 p-[20px_0] text-center"},CB={class:"mt_10 mt-[10px]"},wB={key:0},EB={key:1},SB={key:2,class:"c_success text-hy-success"},TB=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}=G2({props:o});return e.onMounted(()=>{i()}),n({taskItemViewFn:i}),(d,f)=>{const m=Vr,u=e.resolveComponent("el-icon"),y=Y2,_=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",q2,[e.createElementVNode("div",K2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(k,N)=>(e.openBlock(),e.createElementBlock("div",{key:`${N}deviceUserList`},[e.createElementVNode("div",{class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:E=>e.unref(c)(k.orgId)},[e.createVNode(u,{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",J2,e.toDisplayString(k.orgName),1)],8,X2),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,b)=>(e.openBlock(),e.createElementBlock("div",{key:`${b}device`,class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:T=>e.unref(p)(E)},[e.createElementVNode("div",Q2,[e.createElementVNode("div",v2,e.toDisplayString(E.deviceUserName),1),e.createElementVNode("span",eB," ("+e.toDisplayString(E.jobNum)+")",1)]),E.taskReportStatus===1?(e.openBlock(),e.createElementBlock("div",tB,e.toDisplayString(e.unref(a)("unfilled")),1)):E.taskReportStatus===2?(e.openBlock(),e.createElementBlock("div",nB,e.toDisplayString(e.unref(a)("haveBeenFilledIn")),1)):e.createCommentVNode("",!0)],8,Z2))),128))],4)]))),128))]),e.unref(l)&&e.unref(l).length?(e.openBlock(),e.createElementBlock("div",oB,[(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",aB,[e.createElementVNode("div",sB,[e.createElementVNode("div",lB,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(k.deviceUserName)+" ",1),e.createElementVNode("span",rB,"("+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",iB,[e.createElementVNode("div",null,e.toDisplayString(k.urTemplateName),1),e.createElementVNode("div",cB,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(y)]),_:1}),e.createElementVNode("span",dB,e.toDisplayString(k.urSubmitDtm),1)])])]),e.createElementVNode("div",pB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.urOptionList,(N,E)=>(e.openBlock(),e.createElementBlock("div",{key:`${E}urOptionList`,class:"reportItem ptb_10 border-bottom p-[10px_0] text-[12px]"},[e.createElementVNode("div",fB,[e.createElementVNode("div",mB,e.toDisplayString(e.unref(a)("ask")),1),e.createTextVNode(" "+e.toDisplayString(N.optionTitle),1)]),e.createElementVNode("div",hB,[e.createElementVNode("div",uB,e.toDisplayString(e.unref(a)("answer")),1),N.optionValue?(e.openBlock(),e.createElementBlock("span",_B,e.toDisplayString(N.optionValue),1)):(e.openBlock(),e.createElementBlock("span",gB,e.toDisplayString(e.unref(a)("none")),1))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",yB,[e.createElementVNode("div",xB,[e.createElementVNode("div",kB,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(k.deviceUserName)+" ",1),e.createElementVNode("span",NB,"("+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",bB,[e.createVNode(_,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",CB,[k.taskReportStatus===0?(e.openBlock(),e.createElementBlock("span",wB,e.toDisplayString(e.unref(a)("noNeedToSubmitATaskReport")),1)):k.taskReportStatus===1?(e.openBlock(),e.createElementBlock("span",EB,e.toDisplayString(e.unref(a)("unpackTaskReport")),1)):k.taskReportStatus===2?(e.openBlock(),e.createElementBlock("span",SB,e.toDisplayString(e.unref(a)("submittedTaskReport")),1)):e.createCommentVNode("",!0)])])]))]))),128))],512)):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-4d03873f"]]);function DB({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 ia({id:t.taskItemId,viewMode:2});if(p.code===200){const d=p.data||{};if(d.opList){const f=d.opList||[],m=[];f.forEach(u=>{const y=u.actionList.map(_=>_.actionDetail);m.push({...u,key:u.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 VB={class:"r-f h_100vh h-full flex"},$B={class:"background_box information css-text-no-select"},BB=["onClick"],IB={class:"r-f f-g flex flex-grow w-0"},AB={class:"indexBox centerBox flex-shrink flex justify-center items-center",style:{left:"4px"}},LB={class:"over_one_line truncate"},FB={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},OB={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},RB={class:"recordList fs_12 text-[12px]"},PB={class:"actionList c_fff text-hy-text-main"},MB={key:0,class:"indexBox centerBox flex justify-center items-center"},UB={key:1,class:"indexBoxv2 centerBox flex justify-center items-center"},zB={class:"mediaFileList"},WB={key:0},jB={class:"flex_vertically_center pos_r relative flex items-center"},HB={class:"c_fff text-hy-text-main"},YB={key:1},GB={class:"flex_vertically_center pos_r relative flex items-center"},qB={class:"c_fff text-hy-text-main"},KB=["onClick"],XB={class:"fileDel clickBox"},JB={key:1,class:"file clickBox"},ZB={key:2},QB={class:"flex_vertically_center pos_r relative flex items-center"},vB={class:"c_fff text-hy-text-main"},eI=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}=DB({props:o});return e.onMounted(()=>{s()}),n({taskItemViewFn:s}),(p,d)=>{const f=$t,m=e.resolveComponent("el-icon"),u=Dr,y=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",VB,[e.createElementVNode("div",$B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(_,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:N=>e.unref(r)(_)},[e.createElementVNode("div",IB,[e.createElementVNode("span",AB,e.toDisplayString(k+1),1),e.createElementVNode("span",LB,e.toDisplayString(_.actionDetail),1)]),_.status===0?(e.openBlock(),e.createElementBlock("div",FB,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",OB,e.toDisplayString(e.unref(a)("finish")),1))],8,BB))),128))]),e.createElementVNode("div",{ref_key:"dataListRef",ref:i,class:"content_box"},[e.createElementVNode("ul",RB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(_,k)=>(e.openBlock(),e.createElementBlock("li",{key:_.key,ref_for:!0,ref:_.key,class:e.normalizeClass([`recordItem_${_.status}`,"background_box mb_10 ovh overflow-hidden mb-[10px]"])},[e.createElementVNode("div",PB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.actionList,(N,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",MB,e.toDisplayString(k+1),1)):(e.openBlock(),e.createElementBlock("span",UB)),e.createElementVNode("span",null,e.toDisplayString(N.actionDetail),1)]))),128))]),e.createElementVNode("div",zB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.recordList,(N,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]"},[N.status===0?(e.openBlock(),e.createElementBlock("div",WB,[e.createElementVNode("div",jB,[e.createVNode(m,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(f)]),_:1}),e.createElementVNode("span",HB,e.toDisplayString(N.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(N.jobNum)+")",1)]),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("unfinishedTask")),1)])):N.status===1&&N.mediaFileList&&N.mediaFileList.length?(e.openBlock(),e.createElementBlock("div",YB,[e.createElementVNode("div",GB,[e.createVNode(m,{class:"!text-hy-success icon_box"},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",qB,e.toDisplayString(N.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(N.jobNum)+")",1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.mediaFileList,(b,T)=>(e.openBlock(),e.createElementBlock("div",{key:`${T}mediaFileList`,class:"css-text-no-select",onClick:V=>e.unref(c)(b)},[e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("uploaded")),1),b.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",XB,e.toDisplayString(b.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",JB,e.toDisplayString(b.fileName),1))],8,KB))),128))])):(e.openBlock(),e.createElementBlock("div",ZB,[e.createElementVNode("div",QB,[e.createVNode(m,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",vB,e.toDisplayString(N.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(N.jobNum)+")",1)]),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("theTaskHasBeenCompletedWaitingForUploading")),1)]))]))),128))])],2))),128))])],512)])}}}),[["__scopeId","data-v-85c188ed"]]);function tI(){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 u(E){o.value=E,E===2&&(t.value.taskMode===2?f(2):f(1))}function y(){s.value=!1}function _(){return new Promise(async(E,b)=>{const T=await jE({id:n.value});T.code===200&&(t.value=T.data||{},E(0))})}function k(E=null){n.value=E,u(1),_().then(()=>{console.log(111),s.value=!0})}function N(){switch(o.value){case 1:_();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:u,onClose:y,selectFn:_,show:k,onRefresh:N}}const nI={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold"},oI={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg-1 relative z-[20]"},aI={class:"dialog_body",style:{"padding-right":"0px"}},sI={class:"ovh centerBox flex items-center justify-center overflow-hidden"},lI={class:"r-f navigation flex"},rI={key:0,class:"r-f flex",style:{height:"540px"}},iI={class:"fs_12 lh_20 h_100vh background_box information text-[12px] leading-[20px] h-full"},cI={class:"fs_16 fw_600 lh_40 text-[16px] font-[600px] leading-[40px]"},dI={key:0,class:"mb_20 mb-[20px]"},pI={class:"c_9DA7B2 text-hy-text-secondary"},fI=["innerHTML"],mI={class:"mb_20 mb-[20px]"},hI={class:"c_9DA7B2 text-hy-text-secondary"},uI={class:"c_9DA7B2 text-hy-text-secondary"},_I={class:"mb_20 mb-[20px]"},gI={class:"c_9DA7B2 text-hy-text-secondary"},yI={class:"h_100vh content_box h-full"},xI={class:"flex_vertically_center title_box flex items-center"},kI={class:"pos_r relative"},NI={class:"fs_12"},bI={class:"actionList"},CI={key:0},wI=["onClick"],EI={key:1,class:"c-f flex flex-col",style:{height:"540px"}},SI={class:"fs_12 r-f mb_10 flex text-[12px] mb-[10px]",style:{"justify-content":"space-between","padding-right":"30px"}},TI={class:"lh_20 flex_vertically_center flex items-center leading-[20px]"},DI={key:0,class:"c_dangerv2 text-hy-danger"},VI={key:1,class:"c_success text-hy-success"},$I={key:2,class:"c_9DA7B2 text-hy-text-secondary"},BI={key:3,class:"c_theme text-hy-text-primary"},II={style:{width:"108px"},class:"plr_10 p-[0_10px]"},AI={class:"c_theme text-hy-text-primary"},LI={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},FI={class:"centerBox flex justify-center items-center"},OI={style:{"margin-left":"6px"}},RI={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary flex items-center"},PI={class:"centerBox flex justify-center items-center"},MI={style:{"margin-left":"6px"}},UI={style:{"flex-grow":"1",height:"0"}},zI=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:u,viewModeFn:y,viewTaskExampleShow:_,seeTaskArea:k,navigationTypeFn:N,onRefresh:E,onClose:b}=tI();return n({show:c}),(T,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"),S=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:!T.draggable,draggable:T.draggable,"modal-class":T.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",nI,[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(b)&&e.unref(b)(...L))},[e.createVNode($,{name:"sys-button-close",style:{width:"26px",height:"26px"},"class-name":"text-hy-text-danger"})])])])),[[S]])]),default:e.withCtx(()=>[e.createElementVNode("div",oI,[e.createElementVNode("div",aI,[e.createVNode(r2,{ref_key:"selectLocationAreaRef",ref:s,draggable:T.draggable},null,8,["draggable"]),e.createElementVNode("div",sI,[e.createElementVNode("ul",lI,[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(N)(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(N)(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(N)(3))},e.toDisplayString(e.unref(o)("missionReport")),3)):e.createCommentVNode("",!0)])]),e.unref(d)===1?(e.openBlock(),e.createElementBlock("div",rI,[e.createElementVNode("div",iI,[e.createElementVNode("div",cI,e.toDisplayString(e.unref(f).taskAction),1),e.unref(f).taskDesc?(e.openBlock(),e.createElementBlock("div",dI,[e.createElementVNode("div",pI,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,fI)])):e.createCommentVNode("",!0),e.createElementVNode("div",mI,[e.createElementVNode("div",hI,e.toDisplayString(e.unref(o)("executionTime")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(f).executeDtmStr)+" ",1),e.createElementVNode("span",uI,"("+e.toDisplayString(e.unref(f).taskDateStartTime)+" ~ "+e.toDisplayString(e.unref(f).taskDateEndTime)+")",1)])]),e.createElementVNode("div",_I,[e.createElementVNode("div",gI,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",yI,[(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",xI,[e.createElementVNode("div",kI,[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:j=>e.unref(k)(L.mapRailId)},{default:e.withCtx(()=>[e.createElementVNode("span",NI,e.toDisplayString(e.unref(o)("missionArea")),1)]),_:2},1032,["onClick"])]),e.createElementVNode("ul",bI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.actionList,(j,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(j.actionDetail)+" ",1),j.taskAction?(e.openBlock(),e.createElementBlock("span",CI,'"'+e.toDisplayString(j.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(_)(L.taskExample)},e.toDisplayString(e.unref(o)("viewExample")),9,wI)):e.createCommentVNode("",!0)]))),128))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",EI,[e.withDirectives(e.createElementVNode("div",SI,[e.createElementVNode("div",TI,[e.unref(f).status===0?(e.openBlock(),e.createElementBlock("span",DI,e.toDisplayString(e.unref(o)("unfinished")),1)):e.unref(f).status===1?(e.openBlock(),e.createElementBlock("span",VI,e.toDisplayString(e.unref(o)("hasBeenCompleted")),1)):e.unref(f).status===2?(e.openBlock(),e.createElementBlock("span",$I,e.toDisplayString(e.unref(o)("notPerformed")),1)):e.unref(f).status===3?(e.openBlock(),e.createElementBlock("span",BI,e.toDisplayString(e.unref(o)("execute")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",II,[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",AI,e.toDisplayString(e.unref(f).finishNum||0)+"/"+e.toDisplayString(e.unref(f).totalNum||0),1)]),e.withDirectives(e.createElementVNode("div",LI,[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",FI,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-download-task"}),e.createElementVNode("span",OI,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",RI,[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",PI,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-user-online"}),e.createElementVNode("span",MI,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",UI,[e.unref(d)===2&&e.unref(m)===1&&e.unref(f).taskMode===1?(e.openBlock(),e.createBlock(z2,{key:0,ref_key:"peopleViewRef",ref:i,"task-item-id":e.unref(u)},null,8,["task-item-id"])):e.createCommentVNode("",!0),e.unref(d)===2&&e.unref(m)===2?(e.openBlock(),e.createBlock(eI,{key:1,ref_key:"taskViewRef",ref:r,"task-item-id":e.unref(u)},null,8,["task-item-id"])):e.unref(d)===3?(e.openBlock(),e.createBlock(TB,{key:2,ref_key:"taskReportRef",ref:l,"task-item-id":e.unref(u)},null,8,["task-item-id"])):e.createCommentVNode("",!0)])])),e.createVNode(Sr,{ref_key:"viewTaskExampleRef",ref:a,draggable:T.draggable},null,8,["draggable"])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-98e4ef70"]]),WI={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},jI=[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 HI(t,n){return e.openBlock(),e.createElementBlock("svg",WI,[...jI])}const YI={name:"ep-arrow-down",render:HI},GI={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},qI=[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 KI(t,n){return e.openBlock(),e.createElementBlock("svg",GI,[...qI])}const XI={name:"ep-arrow-up",render:KI},JI={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},ZI=[e.createElementVNode("path",{fill:"currentColor",d:"M672 192L288 511.936L672 832z"},null,-1)];function QI(t,n){return e.openBlock(),e.createElementBlock("svg",JI,[...ZI])}const vI={name:"ep-caret-left",render:QI};function $r(t){return oe.post({url:"spotCheck/task/detail",data:t,isFormData:!0})}function eA(t){return oe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function tA(t){return oe.post({url:"spotCheck/task/end",data:t,isFormData:!0})}function nA(t){return oe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function oA(t){return oe.post({url:t.id?"spotCheck/timing/update":"spotCheck/timing/insert",data:t,isJson:!0})}function aA(t){return oe.post({url:"spotCheck/template/detail",data:t,isFormData:!0})}function sA(t){return oe.post({url:t.id?"spotCheck/template/update":"spotCheck/template/insert",data:t,isJson:!0})}function lA(t){return oe.post({url:"spotCheck/task/taskExecute",data:t,isJson:!0})}function Br(t){return oe.post({url:"spotCheck/task/pttFile/page",data:t,isFormData:!0})}function rA(t){return oe.post({url:"spotCheck/task/groupBind",data:t,isJson:!0})}function iA({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:N,checkStatus:E}=k||{};if(!N)return;const b=p.value.findIndex(T=>T.deviceId===N);if(b!==-1){switch(p.value[b].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[b].checkStatus=E})}}function f(){let k=0,N=0,E=0,b=0,T=0,V=0;p.value.forEach($=>{const h=$.checkStatus,g=$.intercomGroupTem,C=$.onlineState;switch(g===1&&V++,C===2&&T++,h){case 1:k++;break;case 2:N++;break;case 3:E++;break;case 4:b++;break}}),e.nextTick(()=>{a.value=k,s.value=N,l.value=E,r.value=b,i.value=T,c.value=V,m()})}function m(){n("on-countStatus",{beReceiveNum:a.value,receivingNum:s.value,finishNum:l.value,notFinishNum:r.value,offLineNum:i.value,intercomGroupTemNum:c.value})}function u(){o.value}function y(){}async function _(k){const{code:N,data:E=[]}=await eA({taskId:t.form.id,checkStatus:k||null});N===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:u,spotCheckUnsubscribe:y,getData:_}}const cA={class:"h-[58px] bg-hy-dialog-bg-2 border border-box border-hy-border-2 rounded px-2 box-border flex items-center"},dA={class:"relative"},pA={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"},fA={class:"scale-75"},mA={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"},hA={class:"flex-grow w-0 flex"},uA={class:"mx-2 flex-grow w-0"},_A={class:"truncate"},gA={class:"text-hy-text-secondary truncate"},yA={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"},xA={class:"r-f tac flex items-center justify-center flex-col"},kA={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}=iA({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"),u=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),_=>(e.openBlock(),e.createBlock(u,{key:_.id,span:p.paramsSpan,class:"mb-2"},{default:e.withCtx(()=>[e.createElementVNode("div",cA,[e.createElementVNode("div",dA,[e.createVNode(xt,{class:"w-[36px] h-[36px]"}),_.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",pA,[e.createElementVNode("span",fA,e.toDisplayString(e.unref(x)("lin")),1)])]),_:1},8,["content"])):_.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",mA,[e.createVNode(m,{name:"icon-off-line","class-name":"!w-[10px] !h-[14px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",hA,[e.createElementVNode("div",uA,[e.createElementVNode("p",_A,e.toDisplayString(_.devName),1),e.createElementVNode("p",gA,e.toDisplayString(_.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,_.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,_.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,_.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,_.checkStatus===4]])])])])]),_:2},1032,["span"]))),128)),e.unref(s).length===0?(e.openBlock(),e.createBlock(u,{key:0,span:24,class:"h-full"},{default:e.withCtx(()=>[e.createElementVNode("div",yA,[e.createElementVNode("div",xA,[e.createVNode(m,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",kA,e.toDisplayString(e.unref(x)("noData")),1)])])]),_:1})):e.createCommentVNode("",!0)]),_:1})}}});function NA({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),u=e.ref(),y=e.ref();function _(){n.value=t.orgGroupInsertTemp.id,i.value=[],f.value=!0,N(),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},S=c.value.scrollTop,L=c.value.offsetHeight-46,A=document.querySelector(`#item-${w.id}`);if(A){const j=A.offsetTop,O=await Br(D);if(O.code===200){const{content:P=[],totalElements:z=0}=O.data;l.value=z,e.nextTick(()=>{P.forEach(U=>{i.value.findIndex(Y=>Y.id===U.id)===-1&&i.value.push(U)}),S>=j-L&&T()})}}};m.value&&clearInterval(m.value),m.value=setInterval(()=>{C()},1e4)}async function N(){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 S=await Br(D);if(S.code===200){const{content:A=[],totalElements:j=0}=S.data;l.value=j,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):T(),e.nextTick(()=>{a.value=!1})})}}function E(C){e.nextTick(()=>{c.value.scrollTo(0,document.querySelector(`#item-${C}`).offsetTop-46)})}function b(){l.value!==0&&N()}function T(){e.nextTick(()=>{c.value.scrollTo(0,c.value.scrollHeight)})}function V(){c.value=u.value,p.value=y.value,p.value.addEventListener("ended",()=>{h(),d.value=null}),c.value.onscroll=()=>{c.value.scrollTop===0&&b()}}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:u,audioElRef:y,init:_,getNewData:k,getData:N,scrollToMsg:E,topEvent:b,scrollToBottom:T,initScrollList:V,audioPlay:$,audioPause:h,getAudioContext:g}}const bA=["element-loading-text"],CA={key:0,class:"w-full h-full flex box-border items-center justify-center text-center text-hy-text-secondary"},wA={class:""},EA={class:"mt-5"},SA=["id"],TA={key:0,class:"min-w-[72px] p-1 bg-hy-dialog-bg-4 text-center rounded mb-2"},DA={key:1,class:"h-[50px] flex items-center w-full"},VA={class:"mr-2 flex-grow w-0 flex flex-col items-end"},$A={class:"w-full flex items-center justify-end"},BA=["onClick"],IA=["onClick"],AA={class:"font-bold flex-shrink-0"},LA={class:"flex-shrink-0 ml-1"},FA={key:0},OA={key:2,class:"h-[50px] flex items-center w-full"},RA={class:"ml-2 flex-grow w-0 flex flex-col items-start"},PA={class:"w-full flex items-center"},MA=["onClick"],UA={class:"flex-shrink-0 mr-1"},zA={key:0},WA={class:"font-bold flex-shrink-0"},jA=["onClick"],HA=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}=NA({props:n});return e.onMounted(()=>{p()}),e.onUnmounted(()=>{d.value&&clearInterval(d.value)}),(u,y)=>{const _=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",CA,[e.createElementVNode("div",wA,[e.createElementVNode("div",null,[e.createVNode(_,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"})]),e.createElementVNode("div",EA,[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),(N,E)=>(e.openBlock(),e.createElementBlock("div",{id:`item-${N.id}`,key:N.id,class:"p-2 box-border flex flex-col items-center"},[N.fileDtmEnd.split(" ")[0]!==(E>0&&e.unref(l)[E-1].fileDtmEnd.split(" ")[0])?(e.openBlock(),e.createElementBlock("div",TA,e.toDisplayString(N.fileDtmEnd.split(" ")[0]),1)):e.createCommentVNode("",!0),N.devUserId===o.id?(e.openBlock(),e.createElementBlock("div",DA,[e.createElementVNode("div",VA,[e.createElementVNode("div",null,e.toDisplayString(N.devUserName)+" ("+e.toDisplayString(N.serialNum||N.devUserId)+") ",1),e.createElementVNode("div",$A,[e.unref(r)===N.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:b=>e.unref(c)(N.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,BA)):e.createCommentVNode("",!0),e.createElementVNode("div",{style:e.normalizeStyle({width:N.audioLength>=60?"70%":`calc(${N.audioLength/60*90}px + 160px)`,background:e.unref(r)===N.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)===N.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:b=>e.unref(c)(N.mediaFileId)},[e.createElementVNode("div",AA,e.toDisplayString(N.audioLength)+"” ",1),e.createElementVNode("div",LA,[N.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",FA,e.toDisplayString(N.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)])],14,IA)])]),e.createVNode(xt,{class:"w-[32px] h-[32px]"})])):(e.openBlock(),e.createElementBlock("div",OA,[e.createVNode(xt,{class:"w-[32px] h-[32px]"}),e.createElementVNode("div",RA,[e.createElementVNode("div",null,e.toDisplayString(N.devUserName)+" ("+e.toDisplayString(N.serialNum||N.devUserId)+") ",1),e.createElementVNode("div",PA,[e.createElementVNode("div",{style:e.normalizeStyle({width:N.audioLength>=60?"70%":`calc(${N.audioLength/60*90}px + 160px)`,background:e.unref(r)===N.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)===N.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:b=>e.unref(c)(N.mediaFileId)},[e.createElementVNode("div",UA,[N.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",zA,e.toDisplayString(N.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",WA,e.toDisplayString(N.audioLength)+"” ",1)],14,MA),e.unref(r)===N.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:b=>e.unref(c)(N.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,jA)):e.createCommentVNode("",!0)])])]))],8,SA))),128))],512)],8,bA)),[[k,e.unref(s)]])}}});function YA(){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 rA({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()}),u(!1)}).catch(()=>{o.value=null,n.value=!0,u(!1)}))}function f(h=[]){l.value=h,u(!1),t.value.checkStyle===2&&d()}function m(h={}){const{beReceiveNum:g=0,receivingNum:C=0,finishNum:w=0,notFinishNum:D=0,offLineNum:S=0,intercomGroupTemNum:L=0}=h;t.value.beReceiveNum=g,t.value.receivingNum=C,t.value.finishNum=w,t.value.notFinishNum=D,t.value.offLineNum=S,t.value.intercomGroupTemNum=L}function u(h){s.value=h}function y(){r.value=!r.value}async function _(h){const{code:g,data:C={}}=await $r({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 N(){}function E(h){if(i.value){Se.warning(x("currentlySpotCheckInProgressPleaseProcessLater"));return}o.value=null,n.value=!1,t.value={},u(!0),_(h)}function b(){i.value=!1}function T(){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 tA({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())),b())}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:u,setMsgContentType:y,setDialogVisible:k,show:E,close:b,onClose:T,onSubmit:V,taskEnd:$,setDragLevel:N,$t:x}}const GA=t=>(e.pushScopeId("data-v-e246ad8e"),t=t(),e.popScopeId(),t),qA={class:"el-dialog__header !p-0"},KA={class:"el-dialog__body !p-[8px_0px_8px] sideFoot_content h-[700px] flex flex-col text-main text-xs"},XA={class:"h-[40px] flex items-center px-4 mb-1"},JA={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"},ZA={key:0,class:"ml-3"},QA={class:"text-hy-text-secondary"},vA={key:1,class:"ml-3"},eL={class:"text-hy-text-secondary"},tL={class:"font-bold"},nL=["element-loading-text"],oL={key:0,class:"w-full h-full flex flex-col box-border"},aL={class:"flex-shrink-0 mb-3 px-4"},sL={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},lL={class:"flex w-full"},rL={class:"flex-shrink-0"},iL={class:"text-right font-bold flex-grow w-0"},cL={class:"flex w-full text-hy-text-secondary"},dL={class:"flex-shrink-0"},pL={class:"text-right flex-grow w-0"},fL={class:"flex w-full text-hy-text-secondary"},mL={class:"flex-shrink-0"},hL={class:"text-right flex-grow w-0"},uL={class:"text-xs p-2 leading-[22px]"},_L={class:"flex w-full"},gL={class:"flex-shrink-0 tracking-[4px]"},yL={class:"text-right font-bold flex-grow w-0"},xL={class:"flex w-full"},kL={class:"flex-shrink-0 tracking-[4px]"},NL={class:"text-right font-bold flex-grow w-0"},bL={class:"flex w-full"},CL={class:"flex-shrink-0 tracking-[4px]"},wL={class:"text-right font-bold flex-grow w-0 text-hy-success"},EL={class:"flex w-full"},SL={class:"flex-shrink-0 tracking-[4px]"},TL={class:"text-right font-bold flex-grow w-0 text-hy-danger"},DL={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},VL={class:"flex-1 flex"},$L={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},BL={class:"flex-grow w-0 text-center truncate"},IL={class:"flex-1 flex"},AL={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},LL={class:"flex-grow w-0 text-center text-hy-success truncate"},FL={class:"flex-1 flex"},OL={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},RL={class:"flex-grow w-0 text-center text-hy-danger truncate"},PL={class:"w-full px-2 leading-[22px] box-border rounded bg-hy-dialog-bg-3 h-[28px] flex items-center justify-between"},ML={class:"flex"},UL={key:0,class:"ml-2 bg-hy-dialog-bg-1 h-[22px] px-2 rounded"},zL={class:"w-[400px]"},WL={class:""},jL={key:0,class:"box-border flex-grow h-0 flex px-2"},HL={class:"flex-grow w-0 px-2 overflow-x-hidden overflow-y-auto h-full"},YL={key:0,class:"w-[66%] box-border pr-2"},GL={class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},qL={key:1,class:"flex-grow h-0 px-4"},KL={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"},XL={class:"r-f tac flex text-center"},JL={class:"mt-3"},ZL={class:"mt-1"},QL={key:1,class:"w-full h-full"},vL={key:0,class:"w-full h-full flex px-4 box-border"},eF={class:"flex flex-col w-[33%]"},tF={class:"pr-2"},nF={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},oF={class:"flex w-full"},aF={class:"flex-shrink-0"},sF={class:"text-right font-bold flex-grow w-0"},lF={class:"flex w-full text-hy-text-secondary"},rF={class:"flex-shrink-0"},iF={class:"text-right flex-grow w-0"},cF={class:"flex w-full text-hy-text-secondary"},dF={class:"flex-shrink-0"},pF={class:"text-right flex-grow w-0"},fF={class:"text-xs p-2 leading-[22px]"},mF={key:0,class:"flex w-full"},hF={class:"flex-shrink-0 tracking-[4px]"},uF={class:"text-right font-bold flex-grow w-0"},_F={key:1,class:"flex w-full"},gF={class:"flex-shrink-0 tracking-[4px]"},yF={class:"text-right font-bold flex-grow w-0"},xF={class:"flex w-full"},kF={class:"flex-shrink-0 tracking-[4px]"},NF={class:"text-right font-bold flex-grow w-0 text-hy-success"},bF={class:"flex w-full"},CF={class:"flex-shrink-0 tracking-[4px]"},wF={class:"text-right font-bold flex-grow w-0 text-hy-danger"},EF={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},SF={class:"flex-1 flex"},TF={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},DF={class:"flex-grow w-0 text-center truncate"},VF={class:"flex-1 flex"},$F={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},BF={class:"flex-grow w-0 text-center text-hy-success truncate"},IF={class:"flex-1 flex"},AF={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},LF={class:"flex-grow w-0 text-center text-hy-danger truncate"},FF={class:"flex-grow h-0 mt-2 overflow-x-hidden overflow-y-auto pr-2 box-border"},OF={class:"flex-grow w-0 flex flex-col"},RF=GA(()=>e.createElementVNode("div",{class:"flex-grow h-0 overflow-hidden"},null,-1)),PF={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"},MF={class:"r-f tac flex text-center"},UF={class:"mt-5"},zF={key:1,class:"flex-grow h-full px-4"},WF={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"},jF={class:"r-f tac flex text-center"},HF={class:"mt-3"},YF={class:"mt-1"},GF={class:"h-[50px] flex items-center justify-between flex-shrink-0 px-4 mt-1"},qF={class:"text-hy-text-secondary text-xs"},KF={key:0},XF={key:1},JF={key:0},ZF={key:1},QF={key:2},vF=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:u}=YA();return(y,_)=>{const k=e.resolveComponent("svg-icon"),N=e.resolveComponent("el-popover"),E=e.resolveComponent("el-col"),b=vI,T=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:_[2]||(_[2]=(...w)=>e.unref(a)&&e.unref(a)(...w))},[e.createElementVNode("div",qA,[e.createElementVNode("div",KA,[e.createElementVNode("div",XA,[e.createElementVNode("div",JA,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",ZA,[e.createElementVNode("span",QA,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",vA,[e.createElementVNode("span",eL,e.toDisplayString(e.unref(l)("responseTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",tL,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",oL,[e.createElementVNode("div",aL,[e.createVNode($,{gutter:8},{default:e.withCtx(()=>[e.createVNode(E,{span:8},{default:e.withCtx(()=>[e.createVNode(N,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",DL,[e.createElementVNode("div",VL,[e.createElementVNode("div",$L,[e.createVNode(k,{name:"base-every-day-many-people","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",BL,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("div",IL,[e.createElementVNode("div",AL,[e.createVNode(k,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",LL,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("div",FL,[e.createElementVNode("div",OL,[e.createVNode(k,{name:"base-danger-state","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",RL,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("ul",sL,[e.createElementVNode("li",lL,[e.createElementVNode("span",rL,e.toDisplayString(e.unref(l)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",iL,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("li",cL,[e.createElementVNode("span",dL,e.toDisplayString(e.unref(l)("offlineStatus")),1),e.createElementVNode("div",pL,e.toDisplayString(e.unref(s).offLineNum||"- -"),1)]),e.createElementVNode("li",fL,[e.createElementVNode("span",mL,e.toDisplayString(e.unref(l)("temporaryGroups")),1),e.createElementVNode("div",hL,e.toDisplayString(e.unref(s).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",uL,[e.createElementVNode("li",_L,[e.createElementVNode("span",gL,e.toDisplayString(e.unref(l)("waitingToReceive")),1),e.createElementVNode("div",yL,e.toDisplayString(e.unref(s).beReceiveNum||"- -"),1)]),e.createElementVNode("li",xL,[e.createElementVNode("span",kL,e.toDisplayString(e.unref(l)("receiving")),1),e.createElementVNode("div",NL,e.toDisplayString(e.unref(s).receivingNum||"- -"),1)]),e.createElementVNode("li",bL,[e.createElementVNode("span",CL,e.toDisplayString(e.unref(l)("completed")),1),e.createElementVNode("div",wL,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("li",EL,[e.createElementVNode("span",SL,e.toDisplayString(e.unref(l)("uncompleted")),1),e.createElementVNode("div",TL,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])])]),_:1})]),_:1}),e.createVNode(E,{span:16},{default:e.withCtx(()=>[e.createElementVNode("div",PL,[e.createElementVNode("div",ML,[e.createTextVNode(e.toDisplayString(e.unref(l)("messageContent"))+" ",1),e.unref(s).playMsg===1?(e.openBlock(),e.createElementBlock("div",UL," 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:_[1]||(_[1]=(...w)=>e.unref(i)&&e.unref(i)(...w))},[e.createVNode(V,{modelValue:e.unref(c),"onUpdate:modelValue":_[0]||(_[0]=w=>e.isRef(c)?c.value=w:null),class:"item",placement:"bottom-end",trigger:"manual"},{content:e.withCtx(()=>[e.createElementVNode("div",zL,e.toDisplayString(e.unref(s).msgContent),1)]),default:e.withCtx(()=>[e.createElementVNode("span",WL,[e.createTextVNode(e.toDisplayString(e.unref(l)("viewContent"))+" ",1),e.createVNode(T,{class:e.normalizeClass(["text-sm duration-500",{"-rotate-90":e.unref(c)}])},{default:e.withCtx(()=>[e.createVNode(b)]),_:1},8,["class"])])]),_:1},8,["modelValue"])])])]),_:1})]),_:1})]),e.unref(s).checkNum!==0?(e.openBlock(),e.createElementBlock("div",jL,[e.createElementVNode("div",HL,[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",YL,[e.createElementVNode("div",GL,[e.unref(s).id?(e.openBlock(),e.createBlock(HA,{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",qL,[e.createElementVNode("div",KL,[e.createElementVNode("div",XL,[e.createVNode(k,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",JL,e.toDisplayString(e.unref(l)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",ZL,e.toDisplayString(e.unref(l)("cannotSupportThisSpotCheck")),1)])])]))])):(e.openBlock(),e.createElementBlock("div",QL,[e.unref(s).checkNum!==0?(e.openBlock(),e.createElementBlock("div",vL,[e.createElementVNode("div",eF,[e.createElementVNode("div",tF,[e.createVNode(N,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",EF,[e.createElementVNode("div",SF,[e.createElementVNode("div",TF,[e.createVNode(k,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",DF,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("div",VF,[e.createElementVNode("div",$F,[e.createVNode(k,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",BF,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("div",IF,[e.createElementVNode("div",AF,[e.createVNode(k,{name:"base-danger-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",LF,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("ul",nF,[e.createElementVNode("li",oF,[e.createElementVNode("span",aF,e.toDisplayString(e.unref(l)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",sF,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("li",lF,[e.createElementVNode("span",rF,e.toDisplayString(e.unref(l)("offlineStatus")),1),e.createElementVNode("div",iF,e.toDisplayString(e.unref(s).offLineNum||"- -"),1)]),e.createElementVNode("li",cF,[e.createElementVNode("span",dF,e.toDisplayString(e.unref(l)("temporaryGroups")),1),e.createElementVNode("div",pF,e.toDisplayString(e.unref(s).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",fF,[e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("li",mF,[e.createElementVNode("span",hF,e.toDisplayString(e.unref(l)("waitingToReceive")),1),e.createElementVNode("div",uF,e.toDisplayString(e.unref(s).beReceiveNum||"- -"),1)])):e.createCommentVNode("",!0),e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("li",_F,[e.createElementVNode("span",gF,e.toDisplayString(e.unref(l)("receiving")),1),e.createElementVNode("div",yF,e.toDisplayString(e.unref(s).receivingNum||"- -"),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",xF,[e.createElementVNode("span",kF,e.toDisplayString(e.unref(l)("completed")),1),e.createElementVNode("div",NF,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("li",bF,[e.createElementVNode("span",CF,e.toDisplayString(e.unref(l)("uncompleted")),1),e.createElementVNode("div",wF,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),_:1})]),e.createElementVNode("div",FF,[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",OF,[RF,e.unref(f)?(e.openBlock(),e.createElementBlock("div",PF,[e.createElementVNode("div",MF,[e.createVNode(k,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"}),e.createElementVNode("div",UF,e.toDisplayString(e.unref(l)("groupMemberStatusAbnormalityPreventsSpotCheck")),1)])])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",zF,[e.createElementVNode("div",WF,[e.createElementVNode("div",jF,[e.createVNode(k,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",HF,e.toDisplayString(e.unref(l)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",YF,e.toDisplayString(e.unref(l)("cannotSupportThisSpotCheck")),1)])])]))]))],8,nL)),[[C,e.unref(r)]]),e.createElementVNode("div",GF,[e.createElementVNode("div",qF,[e.createElementVNode("div",null,[e.createVNode(T,{class:"mr-1 text-sm"},{default:e.withCtx(()=>[e.createVNode(h)]),_:1}),e.unref(s).checkType===2?(e.openBlock(),e.createElementBlock("span",KF,e.toDisplayString(e.unref(l)("randomCheck")),1)):(e.openBlock(),e.createElementBlock("span",XF,[e.unref(s).checkScope===1?(e.openBlock(),e.createElementBlock("span",JF,e.toDisplayString(e.unref(l)("regionalSpotCheck")),1)):e.unref(s).checkScope===2?(e.openBlock(),e.createElementBlock("span",ZF,e.toDisplayString(e.unref(l)("departmentSpotCheck")),1)):e.unref(s).checkScope===3?(e.openBlock(),e.createElementBlock("span",QF,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(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("complete")),1)]),_:1},8,["onClick"])])])])])],4)):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-e246ad8e"]]);function eO(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(o.value.itemType),s=e.ref(o.value.itemSelectParam),l=e.ref(),r={value:"onlyId",label:"orgName",children:"children",disabled:"disabled"},i=e.ref([]),c=e.ref(null),p=e.ref(300),d=e.ref([]),f=e.ref([]);function m(h){return d.value.findIndex(g=>g[`${s.value}`]===h)}function u(h,g){let C=null;if(h[`${s.value}`]&&h.type===a.value){if(h.disabled)return;o.value.showRadio?(C=m(h[`${s.value}`]),g?C===-1&&(N([...h]),n("onCurrent",h)):C!==-1&&(d.value.splice(C,1),n("onCurrentDelete",h)),n("onSelectedData",{selectedDataList:d.value,selectedData:d.value})):o.value.showCheckbox&&!o.value.parentCheckbox?(C=m(h[`${s.value}`]),g?C===-1&&(N([...d.value,{...h}]),n("onCurrent",h)):C!==-1&&(d.value.splice(C,1),n("onCurrentDelete",h))):(l.value.setChecked(h[`${s.value}`],g,!0),b(),n("onCurrent",h)),n("onSelectedData",{selectedDataList:d.value,selectedData:d.value})}else l.value.setChecked(`${h.id}`,g,!0),b()}async function y(h){let g=null;await e.nextTick(()=>{h.disabled||(o.value.showRadio?(g=m(h[`${s.value}`]),g===-1?(N([{...h}]),n("onCurrent",h)):(d.value.splice(g,1),n("onCurrentDelete",h)),n("onSelectedData",{selectedDataList:d.value,selectedData:d.value})):o.value.showCheckbox&&!o.value.parentCheckbox?(g=m(h[`${s.value}`]),g===-1?(N([...d.value,{...h}]),n("onCurrent",h)):(d.value.splice(g,1),n("onCurrentDelete",h)),n("onSelectedData",{selectedDataList:d.value,selectedData:d.value})):(l.value.setChecked(`${h[`${s.value}`]}`,k(h[`${s.value}`]),!0),b(),n("onCurrent",h)))})}function _(h){l.value.setCheckedKeys(h||[]),b()}function k(h){return(l.value.getCheckedKeys()||[]).findIndex(w=>w===h||w===`${h}`)===-1}function N(h){o.value.showCheckbox&&o.value.parentCheckbox&&l.value.setCheckedKeys(h.map(g=>`${g[`${o.value.itemSelectParam}`]}`)||[]),d.value=h}function E(h){f.value=h}function b(){const h=l.value.getCheckedNodes()||[],g=[],C=[];h.forEach(w=>{w.type===a.value?g.push(w):C.push(w)}),N([...g]),E(C),n("onSelectedData",{selectedDataList:g,departmentList:C,selectedData:h})}function T(h,g){h.type===a.value?y(h):(c.value&&(clearTimeout(c.value),c.value=null),c.value=setTimeout(()=>{var w;n("onCurrentDepartment",h);const C=i.value.findIndex(D=>D===g.key);C===-1?((w=l.value)==null||w.expandNode(g),i.value.push(`${g.key}`)):(l.value.collapseNode(g),i.value.splice(C,1))},p.value))}function V(h){if(o.value.showCheckbox&&!o.value.parentCheckbox)return;c.value&&(clearTimeout(c.value),c.value=null);const g=`organization_${h.id}`;l.value.setChecked(g,k(g),!0),b()}function $(h){var g;(g=l.value)==null||g.setData(h)}return{departmentDoubleClick:V,selectedList:d,getCurrentNode:b,getSelectedIndex:m,nodeClick:T,setChecked:u,setCheckedKeys:_,setData:$,setSelectedList:N,treeProps:r,treeRef:l}}const Ir=t=>(e.pushScopeId("data-v-0ea0d0e6"),t=t(),e.popScopeId(),t),tO={class:"flex w-full h-full"},nO={key:0,class:"w-full flex items-center"},oO={key:0,class:"mr-[6px]"},aO={class:"el-checkbox"},sO=[Ir(()=>e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1))],lO={key:1,class:"mr-1"},rO={class:"el-radio"},iO=[Ir(()=>e.createElementVNode("span",{class:"el-radio__inner"},null,-1))],cO=["onDblclick"],yn=be(e.defineComponent({__name:"tree-cpns",props:{itemType:{default:1},itemSelectParam:{default:"id"},height:{default:500},itemSize:{default:36},dataList:{default:()=>[]},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!1},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{departmentDoubleClick:l,selectedList:r,getCurrentNode:i,getSelectedIndex:c,nodeClick:p,setChecked:d,setCheckedKeys:f,setData:m,setSelectedList:u,treeProps:y,treeRef:_}=eO({emit:s,props:a});e.watch(()=>a.showCheckbox,N=>{if(N===!1)if(r.value.length){const E=r.value[0];r.value=[E],a.showCheckbox&&a.parentCheckbox&&f([E[`${a.itemSelectParam}`]]),s("onSelectedData",{selectedDataList:r.value,selectedData:r.value})}else f([])}),n({setCheckedKeys:f,setSelectedList:u,setChecked:d,setData:m});const k=e.ref();return e.onMounted(()=>{r.value=a.defaultCheckedList,a.showCheckbox&&a.parentCheckbox&&(k.value=a.defaultCheckedList.map(N=>`${N[`${a.itemSelectParam}`]}`))}),(N,E)=>{const b=e.resolveComponent("el-tree-v2");return e.openBlock(),e.createBlock(b,{ref_key:"treeRef",ref:_,style:{"font-size":"larger"},class:e.normalizeClass({highlightSelected:a.highlightSelected}),"show-checkbox":a.showCheckbox&&a.parentCheckbox,"check-strictly":a.checkStrictly,"default-checked-keys":e.unref(k),"expand-on-click-node":!1,data:a.dataList,props:e.unref(y),height:a.height,"item-size":a.itemSize,onNodeClick:e.unref(p),onCheck:e.unref(i)},{default:e.withCtx(({data:T})=>[e.createElementVNode("div",tO,[T.type===a.itemType?(e.openBlock(),e.createElementBlock("div",nO,[a.showCheckbox&&!a.parentCheckbox?(e.openBlock(),e.createElementBlock("div",oO,[e.withDirectives(e.createElementVNode("div",aO,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)(T[`${a.itemSelectParam}`])!==-1,"is-disabled":T.disabled},"el-checkbox__input"])},sO,2)],512),[[e.vShow,a.showCheckboxButton]])])):e.createCommentVNode("",!0),a.showRadio?(e.openBlock(),e.createElementBlock("div",lO,[e.withDirectives(e.createElementVNode("div",rO,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)(T[`${a.itemSelectParam}`])!==-1,"is-disabled":T.disabled},"el-radio__input"])},iO,2)],512),[[e.vShow,a.showRadioButton]])])):e.createCommentVNode("",!0),e.renderSlot(N.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:T})),void 0,!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"w-0 flex-grow flex text-hy-text-main",onDblclick:e.withModifiers(V=>e.unref(l)(T),["stop"])},[e.renderSlot(N.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:T})),void 0,!0)],40,cO))])]),_:3},8,["class","show-checkbox","check-strictly","default-checked-keys","data","props","height","item-size","onNodeClick","onCheck"])}}}),[["__scopeId","data-v-0ea0d0e6"]]);function xn(t){const n=t.emit,o=e.ref(),a=e.ref(0),s=e.ref([]),l=e.ref(null),r=e.ref([]),i=e.computed(()=>{const T=r.value.find(V=>V.value===l.value);return T&&T.placeholder?T.placeholder:x("pleaseEnterContentToSearch")}),c=e.computed(()=>!!e.useSlots()["check-content"]),p=e.computed(()=>!!e.useSlots()["other-content"]),d=e.ref(null);function f(){const T=new ResizeObserver(()=>{d.value&&(a.value=d.value.clientHeight)});d.value&&T.observe(d.value)}function m(T){n("onCurrentDepartment",T)}function u(T){n("onCurrent",T)}function y(T){n("onCurrentDelete",T)}function _(T){n("onSelectedData",T)}function k(T){s.value=T}function N(T,V){o.value.setChecked(T,V)}function E(T){o.value.setCheckedKeys(T)}function b(T){o.value.setSelectedList(T)}return{checkContentSlotsType:c,otherContentSlotsType:p,currentDepartment:m,currentDevice:u,currentDeviceDelete:y,elementRef:d,selectedData:_,treeComponentHeight:a,treeComponentRef:o,viewDepartmentList:s,watchTreeComponentHeight:f,setChecked:N,setCheckedKeys:E,setSelectedList:b,selectFilterList:r,selectFilterType:l,getInputPlaceholder:i,setViewDepartmentList:k}}function Zn(t,n){return!t||t.length===0?!1:t.includes(`disabled:${n}`)}function Qn(t,n="id"){const o=new Map;return t.forEach(a=>o.set(a[`${n}`],a)),Array.from(o.values())}function st(t,n,o,a){var r;const{selectFilterType:s}=a||{};if(!n)return!0;if(s&&s!==t)return!1;const l=i=>i&&i.toString().includes(n);switch(t){case 7:return o.typeName==="workOrderList"?l(o.workTimeName):l(o.dailyCheckName);case 6:return l(o.deviceUserName)||l((r=o.item)==null?void 0:r.deviceId);case 5:return l(o.jobNum)||l(o.name)||l(o.phone);case 4:return l(o.groupName);case 8:return l(o.sname);case 3:return l(o.deviceId)||l(o.devName)||l(o.name);default:return l(o.companyName)||l(o.orgName)}}async function pa(t,n,o,a){const{hideDevice:s,selectFilterType:l,signal:r,hideOrgNoData:i,disabledIds:c,showOnlineOnly:p}=o||{disabledIds:"",showOnlineOnly:!1,hideOrgNoData:!1,hideDevice:!1,selectFilterType:null,signal:null},d=[],f=[];for(let m=0;m<n.length;m++){const u=n[m],y=m;u.type===3?u.onlyId=`${u.deviceId}`:(u.type=1,u.onlyId=`organization_${u.id}`),s&&u.type===1&&c.length!==0&&(u.disabled=Zn(c,u.id)),u.childrenDeviceList=[],u.onlineCountList=[];const _=a&&a.companyName&&u.type!==3?a.companyName:null;u.parentIdsList=a&&a.parentIdsList?[...a.parentIdsList,{id:u.id,currentSubscript:y}]:[{id:u.id,currentSubscript:y}];let k=!1;a&&a.parentType||u.type===3?k=!0:k=st(1,t,u,{selectFilterType:l});const N=k?u:{};if(u.deviceList&&u.deviceList.length&&!s){const E=[];u.deviceList.forEach((b,T)=>{if((a&&a.parentType||st(3,t,b,{selectFilterType:l})||k)&&(p&&b.onlineState===1||!p)){const V={parentType:!0,...b,isLeaf:!0,label:b.name||b.deviceId,deviceType:b.type,prodModel:b.prodModel?b.prodModel:"",simNum:b.simNum?b.simNum:"",companyName:n[y].companyName,select:!1,expand:!1,type:3,item:b,parentId:b.parentId?b.parentId:"",parentName:b.parentName?b.parentName:"",personnel:b.personnel?"1":"2",parentOrgName:_,disabled:Zn(c,b.deviceId)},$=V;$.parentOrgName=_,$.parentIdsList=u.parentIdsList,u.childrenDeviceList.push($),d.push($),E[b.onlineState===1?"unshift":"push"](V)}}),u.children=u.children.concat(E)}else u.deviceList=[];if(u.children&&u.children.length>0){const E=await pa(t,u.children,o,{...u,parentType:k});if(E){const b=E.deviceList;u.childrenDeviceList.push(...b),d.push(...b);const T=new Map,V=[];u.childrenDeviceList.forEach($=>{T.has($.id)||(T.set($.id,$),$.onlineState===1&&V.push($))}),u.childrenDeviceList=Array.from(T.values()),u.onlineCountList=V,N.children=[...E.children],u.children=E.children}}Object.keys(N).length&&(u.type===3||N.children.length||!i&&(N.companyName||N.orgName))&&f.push(u)}return{children:f,deviceList:Qn(d)}}async function Ar(t,n,o,a){const{hideDevice:s,selectFilterType:l,signal:r,hideOrgNoData:i,hideGroup:c}=o||{hideOrgNoData:!1,hideGroup:!1,hideDevice:!1,selectFilterType:null,signal:null},p=[],d=[];for(let f=0;f<n.length;f++){const m=n[f];m.type===3?m.onlyId=`device_${m.id}`:m.type===4?m.onlyId=`${m.id}`:m.onlyId=`organization_${m.id}`,m.childrenDeviceList=[],m.onlineCountList=[];let u=!1;m.type===3||m.type===4?u=!0:u=st(1,t,m,{selectFilterType:l});const y=u?m:{};if(m.groupList&&m.groupList.length!==0?m.groupList.forEach((_,k)=>{if(_.deviceList&&_.deviceList.length!==0){const N=[];a&&a.parentType||u||st(4,t,_,{selectFilterType:l})?(s||_.deviceList.forEach(E=>{const b={isLeaf:!0,...E,children:[],orgGroupId:_.id,deviceType:E.type,type:3};N[E.onlineState===1?"unshift":"push"](b)}),m.children.push({..._,children:N,type:4})):(s||_.deviceList.forEach(E=>{if(st(3,t,E,{selectFilterType:l})){const b={isLeaf:!0,...E,children:[],orgGroupId:_.id,deviceType:E.type,type:3};N[E.onlineState===1?"unshift":"push"](b)}}),N.length&&m.children.push({..._,children:N,type:4}))}else(a&&a.parentType||u||st(4,t,_,{selectFilterType:l}))&&m.children.push({..._,children:[],type:4})}):m.groupList=[],m.deviceList&&m.deviceList.length&&(m.childrenDeviceList=m.deviceList),m.childrenDeviceList&&m.childrenDeviceList.forEach(_=>{p.findIndex(N=>N.deviceId===_.deviceId)===-1&&p.push(_)}),m.children&&m.children.length!==0){const _=await Ar(t,m.children,o,{...m,parentType:u});if(_){const k=_.deviceList;m.childrenDeviceList.push(...k),p.push(...k);const N=new Map,E=[];m.childrenDeviceList.forEach(b=>{N.has(b.id)||(N.set(b.id,b),b.onlineState===1&&E.push(b))}),m.childrenDeviceList=Array.from(N.values()),m.onlineCountList=E,y.children=_.children}}Object.keys(y).length&&(!c&&m.type===4||m.type===3||y.children.length||!i&&(y.companyName||y.orgName))&&d.push({...m,...y})}return{children:d,deviceList:Qn(p)}}async function Lr(t,n,o,a){const{selectFilterType:s,hideOrgNoData:l,disabledIds:r}=o||{selectFilterType:null,hideOrgNoData:!1,disabledIds:""},i=[],c=[];for(let p=0;p<n.length;p++){const d=n[p],f=p;d.onlyId=d.type===5?`${d.id}`:`organization_${d.id}`,d.childrenDeviceList=[],d.onlineCountList=[],a&&a.parentIdsList?d.parentIdsList=[...a.parentIdsList,{id:d.id,currentSubscript:f}]:d.parentIdsList=[{id:d.id,currentSubscript:f}];let m=!1;d.type===5?m=!0:m=st(1,t,d,{selectFilterType:s});const u=m?d:{};if(d.deviceUserList&&d.deviceUserList.length){const y=[];d.deviceUserList.forEach((_,k)=>{if(a&&a.parentType||st(5,t,_,{selectFilterType:s})||m){const N={..._,parentType:!0,isLeaf:!0,label:_.name||_.id,deviceId:_.id,deviceType:_.type,type:5,item:_,children:[],parentIdsList:d.parentIdsList};d.childrenDeviceList.push(N),i.push(N);const E={..._,parentType:!0,isLeaf:!0,label:_.name||_.id,deviceId:_.id,deviceType:_.type,type:5,children:[],item:_,disabled:Zn(r,_.id)};y[_.onlineState===1?"unshift":"push"](E)}}),d.children=[...d.children,...y]}else d.deviceList=[];if(d.children&&d.children.length>0){const y=await Lr(t,d.children,o,{...d,parentType:m});if(y){const _=y.deviceList;d.childrenDeviceList.push(..._),i.push(..._);const k=new Map,N=[];d.childrenDeviceList.forEach(E=>{k.has(E.id)||(k.set(E.id,E),E.onlineState===1&&N.push(E))}),d.childrenDeviceList=Array.from(k.values()),d.onlineCountList=N,u.children=y.children}}Object.keys(u).length&&(d.type===5||u.children.length||!l&&(u.companyName||u.orgName))&&c.push({...d,...u})}return{children:c,deviceList:Qn(i)}}async function Fr(t,n,o,a){const{selectFilterType:s,hideOrgNoData:l,disabledIds:r}=o||{selectFilterType:null,hideOrgNoData:!1,disabledIds:""},i=[],c=[];for(let p=0;p<n.length;p++){const d=n[p],f=p;d.onlyId=d.type===8?`${d.id}`:`organization_${d.id}`,d.childrenDeviceList=[],d.onlineCountList=[],a&&a.parentIdsList?d.parentIdsList=[...a.parentIdsList,{id:d.id,currentSubscript:f}]:d.parentIdsList=[{id:d.id,currentSubscript:f}];let m=!1;d.type===8?m=!0:m=st(1,t,d,{selectFilterType:s});const u=m?d:{};if(d.csList&&d.csList.length){const y=[];d.csList.forEach((_,k)=>{if(a&&a.parentType||st(8,t,_,{selectFilterType:s})||m){const N={..._,type:8,item:_,children:[]};d.childrenDeviceList.push(N),i.push(N);const E={..._,type:8,item:_,children:[],disabled:Zn(r,_.id)};y[_.onlineState===1?"unshift":"push"](E)}}),d.children=[...d.children,...y]}else d.deviceList=[];if(d.children&&d.children.length>0){const y=await Fr(t,d.children,o,{...d,parentType:m});if(y){const _=y.deviceList;d.childrenDeviceList.push(..._),i.push(..._);const k=new Map,N=[];d.childrenDeviceList.forEach(E=>{k.has(E.id)||(k.set(E.id,E),E.onlineState===1&&N.push(E))}),d.childrenDeviceList=Array.from(k.values()),d.onlineCountList=N,u.children=y.children}}Object.keys(u).length&&(d.type===8||u.children.length||!l&&(u.companyName||u.orgName))&&c.push({...d,...u})}return{children:c,deviceList:Qn(i)}}function dO(t){const n=e.ref(t.props),o=e.ref(t.params.selectFilterType),a=e.ref(""),s=e.ref([]);async function l(){var i;n.value.getData&&((i=n.value.getData())==null||i.then(async c=>{if(!c)return;const p=await pa(a.value,[...c],{disabledIds:n.value.disableDataList.map(d=>`disabled:${d.id}`).toString(),hideDevice:!0,selectFilterType:o.value});s.value=p.children,t.params.setViewDepartmentList(s.value)}))}function r(){a.value.length&&l()}return{getData:l,query:a,selectChange:r}}const pO={class:"flex flex-col h-full text-xs"},fO={class:"flex items-center"},mO={class:"!w-[114px]"},hO={class:"text-hy-text-main"},uO={key:0,class:"w-full text-hy-text-main"},_O={class:"w-full h-full flex items-center"},gO={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},yO={key:0,class:"w-full"},xO={class:"w-full h-full flex items-center"},kO={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},Or=e.defineComponent({__name:"org-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:u,setChecked:y,setCheckedKeys:_,setSelectedList:k,selectFilterList:N,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:T,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=dO({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:T}});return n({setCheckedKeys:_,setSelectedList:k,setChecked:y,getData:h}),e.onMounted(()=>{u(),a.fuzzySearch?(N.value=[{label:x("department"),value:null,placeholder:x("filterByDepartmentName")}],E.value=null):(N.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],E.value=N.value[0].value),a.defaultGetData||h()}),(w,D)=>{const S=e.resolveComponent("el-option"),L=e.resolveComponent("el-select"),A=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),O=e.resolveComponent("el-input"),P=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",pO,[e.createElementVNode("div",fO,[e.createVNode(O,{modelValue:e.unref(g),"onUpdate:modelValue":D[1]||(D[1]=z=>e.isRef(g)?g.value=z:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",hO,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(A,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",mO,[e.createVNode(L,{modelValue:e.unref(E),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(E)?E.value=z:null),class:"!m-0",size:"small",onChange:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),(z,U)=>(e.openBlock(),e.createBlock(S,{key:`${U}_selectFilterList`,label:z.label,value:z.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(w.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":1,"highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,"default-checked-list":a.defaultCheckedList,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:z})=>[e.renderSlot(w.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",uO,[e.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",_O,[e.createElementVNode("div",gO,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)])])]),_:2},1032,["content"])]))]),"other-content":e.withCtx(({row:z})=>[e.renderSlot(w.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",yO,[e.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",xO,[e.createElementVNode("div",kO,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)])])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function NO({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 bO={class:"flex flex-col w-full h-full"},CO={class:"flex justify-between items-center h-[40px]"},wO={class:"flex-1"},EO={class:"text-hy-text-secondary ml-3"},SO={class:"flex-1 flex items-center justify-end"},TO={class:"text-xs"},DO={class:"flex items-center clickBox cursor-pointer"},VO={class:"text-hy-text-primary"},$O=["element-loading-text"],BO={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},IO={class:"flex-grow h-0 w-full equipment vbtTable"},AO={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"},LO={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"},FO={class:"r-f tac flex flex-col items-center justify-center"},OO={class:"mt-3"},RO={class:"flex-grow w-0 pl-2 box-border truncate"},PO={class:"flex-shrink-0"},MO=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}=NO({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList)}),e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(u,y)=>{const _=e.resolveComponent("el-button"),k=e.resolveComponent("svg-icon"),N=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",bO,[e.createElementVNode("div",CO,[e.createElementVNode("div",wO,[e.createTextVNode(e.toDisplayString(e.unref(x)("allDepartments")),1),e.createElementVNode("span",EO,e.toDisplayString(e.unref(x)("doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt")),1)]),e.createElementVNode("div",SO,[e.withDirectives(e.createVNode(_,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("span",TO,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",DO,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",VO,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",BO,[e.createElementVNode("div",IO,[e.createVNode(Or,{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",AO,[e.withDirectives(e.createElementVNode("li",LO,[e.createElementVNode("div",FO,[e.createVNode(k,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",OO,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,b)=>(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",RO,e.toDisplayString(E.companyName||E.groupName||E.orgName),1),e.createElementVNode("div",PO,[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:T=>e.unref(d)(b)},null,8,["tips","onClick"])])]))),128))])],8,$O)),[[N,!1]])])}}});function UO(t){const n=[{type:1,svgName:"sys-deviceIcon-lawEnforcement"},{type:3,svgName:"sys-deviceIcon-dispatchingDesk"},{type:4,svgName:"sys-deviceIcon-dutyDesk"},{type:5,svgName:"sys-deviceIcon-phone"},{type:6,svgName:"sys-deviceIcon-controlTheBall"},{type:7,svgName:"sys-deviceIcon-ipc"},{type:8,svgName:"sys-deviceIcon-safetyHat"},{type:9,svgName:"sys-deviceIcon-flashlight"},{type:10,svgName:"sys-deviceIcon-workCard"},{type:11,svgName:"sys-deviceIcon-vehicle"},{type:12,svgName:"sys-deviceIcon-uav"},{type:13,svgName:"sys-deviceIcon-ipc"},{type:14,svgName:"sys-deviceIcon-obd"}],o=n.findIndex(a=>a.type===t);return o!==-1?n[o].svgName:"sys-deviceIcon-walkieTalkie"}const zO=t=>(e.pushScopeId("data-v-51a5d703"),t=t(),e.popScopeId(),t),WO={class:"flex-shrink-0 mr-1"},jO={class:"flex-grow w-0 overflow-ellipsis overflow-hidden"},HO={class:"deviceName"},YO={key:0,class:"flex-shrink-0 mx-2"},GO={key:0,class:"text-hy-danger text-sm font-bold relative flex-shrink-0"},qO={key:1,class:"deviceType flex-shrink-0"},KO={key:2,class:"deviceType flex-shrink-0"},XO={key:3,class:"deviceType flex-shrink-0"},JO={key:4,class:"deviceType flex-shrink-0"},ZO={key:5,class:"deviceType flex-shrink-0"},QO={key:6,class:"deviceType flex-shrink-0"},vO={key:7,class:"text-hy-success flex-shrink-0"},eR={key:1,class:"flex-shrink-0 mx-2"},tR=[zO(()=>e.createElementVNode("span",{class:"shrink-0"},"离线",-1))],fa=be(e.defineComponent({__name:"device-cpns",props:{device:{}},emits:["onClickDevice"],setup(t,{emit:n}){const o=t,a=n,s=e.ref(null);e.watch(()=>o.device,()=>{s.value=o.device}),e.onMounted(()=>{s.value=o.device});function l(r){a("onClickDevice",r)}return(r,i)=>{const c=e.resolveComponent("svg-icon"),p=e.resolveComponent("el-tooltip");return s.value?(e.openBlock(),e.createBlock(p,{key:0,"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:s.value.devName},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"!text-hy-text-main":s.value.onlineState===1},"w-full h-full flex border-box items-center box-border text-hy-info"]),onClick:i[0]||(i[0]=d=>l(s.value))},[e.createElementVNode("div",WO,[e.createVNode(c,{name:e.unref(UO)(s.value.deviceType||s.value.type),width:"20",height:"20",class:"relative top-[2px]"},null,8,["name"])]),e.createElementVNode("div",jO,[e.createElementVNode("span",HO,e.toDisplayString(s.value.devName),1)]),s.value.onlineState===1?(e.openBlock(),e.createElementBlock("div",YO,[s.value.sos===1?(e.openBlock(),e.createElementBlock("span",GO,"SOS")):s.value.intercomGroupTem===1||s.value.intercomCall===1?(e.openBlock(),e.createElementBlock("span",qO,"音频中")):s.value.monitor===1||s.value.beMonitor===1?(e.openBlock(),e.createElementBlock("span",KO,"监控中")):s.value.videoCall===1?(e.openBlock(),e.createElementBlock("span",XO,"通话中")):s.value.videoRecording===1?(e.openBlock(),e.createElementBlock("span",JO,"录像中")):s.value.audioRecording===1?(e.openBlock(),e.createElementBlock("span",ZO,"录音中")):s.value.broadcast===1?(e.openBlock(),e.createElementBlock("span",QO,"广播中")):(e.openBlock(),e.createElementBlock("span",vO,"在线"))])):(e.openBlock(),e.createElementBlock("div",eR,tR))],2)]),_:1},8,["content"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-51a5d703"]]);function nR(t){const n=e.ref(t.props),o=e.ref(t.params.selectFilterType),a=e.ref(""),s=e.ref([]),l=e.ref([]),r=e.ref(!1);async function i(){var f;n.value.getData&&((f=n.value.getData())==null||f.then(async m=>{if(!m)return;console.log("selectFilterType.value",o.value);const u=await pa(a.value,[...m],{disabledIds:n.value.disableDataList.map(y=>`disabled:${y.deviceId}`).toString(),hideDevice:n.value.hideDevice,showOnlineOnly:n.value.showOnlineOnly,hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});s.value=u.children,l.value=u.deviceList,t.params.setViewDepartmentList(u.children)}))}function c(){r.value||(r.value=!0,setTimeout(async()=>{i(),r.value=!1},1e3))}function p(f){if(f.isofn===1)return c();const m=l.value.find(u=>u.deviceId===f.deviceId);if(m)for(const u in f)m[`${u}`]=f[`${u}`]}function d(){a.value.length&&i()}return{setDeviceStatus:p,getData:i,query:a,selectChange:d,treeDeviceList:l,treeDataList:s}}const oR={class:"flex flex-col h-full text-xs"},aR={class:"flex items-center"},sR={class:"!w-[114px]"},lR={class:"text-hy-text-main"},rR={class:"flex-grow w-0"},iR={class:"flex-shrink-0 mr-2 flex h-full items-center justify-center"},cR={key:0,class:"w-full flex cursor_pointer"},dR={class:"flex items-center flex-grow w-0"},pR={class:"max-w-full overflow-ellipsis overflow-hidden"},fR={class:"flex-shrink-0 mr-2 ml-1"},mR={class:"text-hy-main"},Rr=e.defineComponent({__name:"device-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},hideDevice:{type:Boolean,default:!1},showOnlineOnly:{type:Boolean,default:!1},disableDataList:{default:()=>[]},returnDisableDevice:{type:Boolean,default:!0}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:u,setChecked:y,setCheckedKeys:_,setSelectedList:k,selectFilterList:N,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:T,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,setDeviceStatus:g,query:C,selectChange:w}=nR({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:T}});return e.watch(()=>a.showOnlineOnly,()=>{h()}),n({setCheckedKeys:_,setSelectedList:k,setChecked:y,setDeviceStatus:g,getData:h}),e.onMounted(()=>{u(),a.fuzzySearch?(N.value=[{label:x("department"),value:null,placeholder:"设备名称、部门名称、设备IMEI进行搜索"}],E.value=null):(N.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||N.value.push({label:x("equipment"),value:3,placeholder:x("filterByDeviceNumberAndDeviceName")}),E.value=N.value[0].value),a.defaultGetData||h()}),(D,S)=>{const L=e.resolveComponent("el-option"),A=e.resolveComponent("el-select"),j=e.resolveComponent("svg-icon"),O=e.resolveComponent("el-button"),P=e.resolveComponent("el-input"),z=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",oR,[e.createElementVNode("div",aR,[e.createVNode(P,{modelValue:e.unref(C),"onUpdate:modelValue":S[1]||(S[1]=U=>e.isRef(C)?C.value=U:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",lR,[e.createVNode(O,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(j,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",sR,[e.createVNode(A,{modelValue:e.unref(E),"onUpdate:modelValue":S[0]||(S[0]=U=>e.isRef(E)?E.value=U:null),class:"!m-0",size:"small",onChange:e.unref(w)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),(U,M)=>(e.openBlock(),e.createBlock(L,{key:`${M}_selectFilterList`,label:U.label,value:U.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(D.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":3,"item-select-param":"deviceId","highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"default-checked-list":a.defaultCheckedList,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:U})=>[e.renderSlot(D.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:U}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"text-hy-text-main":U.onlineState===1},"w-full flex h-full"])},[e.createElementVNode("div",rR,[e.createVNode(fa,{device:U},null,8,["device"])]),e.createVNode(z,{"open-delay":1e3,class:"item",content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",iR,[e.createVNode(j,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})],512),[[e.vShow,U.todayFile]])]),_:2},1032,["content"])],2))]),"other-content":e.withCtx(({row:U})=>[e.renderSlot(D.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:U}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",cR,[e.createVNode(z,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:U.companyName||U.groupName||U.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",dR,[e.createElementVNode("span",pR,e.toDisplayString(U.companyName||U.groupName||U.orgName),1),e.withDirectives(e.createElementVNode("span",fR,[e.createTextVNode(" ("),e.createElementVNode("span",mR,e.toDisplayString(U.onlineCountList.length),1),e.createTextVNode("/"+e.toDisplayString(U.childrenDeviceList.length)+") ",1)],512),[[e.vShow,!a.hideDevice]])])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","default-checked-list","show-radio-button","show-checkbox-button","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function hR({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 N=o.value.findIndex(E=>E.deviceId===k.deviceId);N===-1?o.value.push({...k}):o.value.splice(N,1)}else{clearTimeout(l.value);const N={nonExistent:[],existent:[]},E=k.childrenDeviceList||[];E.length&&(E.forEach(b=>{a.value.findIndex(V=>V.deviceId===b.deviceId)===-1&&(o.value.findIndex($=>$.deviceId===b.deviceId)===-1?N.nonExistent.push({...b}):N.existent.push({...b}))}),N.nonExistent.length?N.nonExistent.forEach(b=>{o.value.push({...b})}):N.existent.forEach(b=>{const T=o.value.findIndex(V=>V.deviceId===b.deviceId);o.value.splice(T,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 u(k,N){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"}],b=E.findIndex(T=>T.type===k);return b!==-1?y(E[b],N):"tree-icon-walkie-talkie"}function y(k,N){return k.type===7||k.type===13?N===1?k.svgName:`${k}-off-line`:k.svgName}function _(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:u,onSelectedData:_,hyDeviceTreeRef:i}}const uR={class:"flex flex-col w-full h-full"},_R={class:"flex justify-between items-center h-[40px]"},gR={class:"flex mr-2"},yR={class:"flex items-center"},xR={class:"text-xs"},kR={class:"flex items-center clickBox cursor-pointer"},NR={class:"text-hy-text-primary"},bR=["element-loading-text"],CR={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},wR={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"},ER={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"},SR={class:"flex flex-col justify-center items-center"},TR={class:"mt-3"},DR={class:"flex-grow w-0 pl-2 flex box-border"},VR={class:"truncate flex-grow w-0"},$R={class:"select-none truncate mx-[4px] text-hy-text-main"},BR={class:"flex-shrink-0"},IR=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:u}=hR({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList),r()}),e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(y,_)=>{const k=e.resolveComponent("el-button"),N=e.resolveComponent("svg-icon"),E=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",uR,[e.createElementVNode("div",_R,[e.createElementVNode("div",gR,e.toDisplayString(e.unref(x)("allDevices")),1),e.createElementVNode("div",yR,[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",xR,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",kR,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",NR,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",CR,[e.createVNode(Rr,{ref_key:"hyDeviceTreeRef",ref:u,"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",wR,[e.withDirectives(e.createElementVNode("li",ER,[e.createElementVNode("div",SR,[e.createVNode(N,{name:"base-no-data","class-name":"!w-[50px] !h-[50px]"}),e.createElementVNode("div",TR,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),b=>(e.openBlock(),e.createElementBlock("li",{key:`${b.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",DR,[e.createVNode(N,{name:e.unref(f)(b.deviceType||b.type,b.onlineState),"class-name":"w-[16px] h-[16px]",class:e.normalizeClass(b.onlineState===1?"text-hy-text-main":"text-hy-info")},null,8,["name","class"]),e.createElementVNode("div",VR,[e.createElementVNode("span",$R,e.toDisplayString(b.devName),1)])]),e.createElementVNode("div",BR,[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:T=>e.unref(d)(b)},null,8,["tips","onClick"])])]))),128))])],8,bR)),[[E,!1]])])}}});function AR({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(b=>{r.value.findIndex(V=>V.id===b.id)===-1&&r.value.push(b)}),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 u(E){return r.value.findIndex(T=>T.id===E.id)!==-1?"is-checked":""}async function y(E){const b=r.value.findIndex(T=>T.id===E.id);b===-1?_(E):k(b)}function _(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 N(){o.value=!0;const{code:E,data:b=[]}=await zy({query:i.value,spotCheckSupport:1,onlineState:1});E===200&&(l.value=[],b.forEach(T=>{T.deviceList.length!==0?l.value.unshift(T):l.value.push(T)}),o.value=!1)}return{checkAll:n,loading:o,treeHeight:a,scrollYRenderConfig:s,deviceList:l,selectedDataList:r,filterValue:i,timeOut:c,addSelectedDataList:p,setSelectedDataList:d,getSelectedDataList:f,setCheckAll:m,judgeSelectedFn:u,deviceClick:y,addSelectList:_,deleteSelectList:k,getData:N}}const LR={class:"flex flex-col w-full h-full"},FR={class:"flex justify-between items-center h-[30px]"},OR={class:"el-checkbox !mr-2"},RR=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],PR={class:"text-hy-text-primary"},MR=["element-loading-text"],UR={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},zR={class:"flex items-center justify-center p-[8px_8px_4px]"},WR={class:"text-hy-text-main"},jR={class:"flex-grow h-0 w-full px-2 box-border overflow-y-scroll overflow-x-hidden"},HR=["onClick"],YR={class:"flex items-center justify-center"},GR={class:"el-checkbox relative !mr-[6px]"},qR=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],KR={class:"treeDepartment cursor_pointer flex items-center justify-between w-full text-[14px] font-bold text-hy-text-main"},XR={class:"r-f w_100vh flex w-full"},JR={class:"flex-grow w-0 over_one_line truncate"},ZR={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"},QR={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"},vR={class:"r-f tac flex flex-col justify-center items-center"},e4={class:"mt-3"},t4={class:"flex-grow w-0 pl-2 box-border truncate"},n4={class:"flex-shrink-0"},o4=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:u,judgeSelectedFn:y,deleteSelectList:_}=AR({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList),r()}),n({setSelectedDataList:l,getData:r}),(k,N)=>{const E=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-button"),T=e.resolveComponent("el-input"),V=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",LR,[e.createElementVNode("div",FR,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("electronicFence")),1),e.createElementVNode("div",{class:"flex items-center clickBox",onClick:N[0]||(N[0]=(...$)=>e.unref(i)&&e.unref(i)(...$))},[e.createElementVNode("div",OR,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)},"el-checkbox__input"])},RR,2)]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",PR,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",UR,[e.createElementVNode("div",zR,[e.createVNode(T,{modelValue:e.unref(f),"onUpdate:modelValue":N[1]||(N[1]=$=>e.isRef(f)?f.value=$:null),placeholder:e.unref(x)("filterByElectronicFenceName"),class:"table-search-main w-[254px] text-[12px]",onClear:N[2]||(N[2]=$=>e.unref(r)()),onKeyup:N[3]||(N[3]=e.withKeys($=>e.unref(r)(),["enter"]))},{append:e.withCtx(()=>[e.createElementVNode("div",WR,[e.createVNode(b,{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",jR,[(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(u)($)},[e.createElementVNode("div",YR,[e.createElementVNode("div",GR,[e.createElementVNode("span",{class:e.normalizeClass([e.unref(y)($),"el-checkbox__input"])},qR,2)])]),e.createElementVNode("div",KR,[e.createElementVNode("div",XR,[e.createElementVNode("span",JR,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,HR))),128))])]),e.createElementVNode("ul",ZR,[e.withDirectives(e.createElementVNode("li",QR,[e.createElementVNode("div",vR,[e.createVNode(E,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",e4,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",t4,e.toDisplayString($.railName),1),e.createElementVNode("div",n4,[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(_)(h)},null,8,["tips","onClick"])])]))),128))])],8,MR)),[[V,e.unref(d)]])])}}});function a4({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:u=null}=d||{};o.value.checkStyle=u,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 s4={class:"deleteBox c_fff text-hy-text-main"},l4={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]"},r4={class:"absolute right-[-2px] top-[-2px]"},i4={class:"dialog_body h-[60vh]"},c4=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}=a4({emit:a});return n({show:f}),(m,u)=>{const y=e.resolveComponent("svg-icon"),_=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(_,{modelValue:e.unref(l),"onUpdate:modelValue":u[0]||(u[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",s4,[e.createElementVNode("div",l4,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("spotCheckTemplate")),1),e.createElementVNode("div",r4,[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",i4,[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:N=>e.unref(p)(k)},null,8,["tips","onClick"])]),_:1},8,["column-list","search-form"])])])]),_:1},8,["modelValue"])}}});function d4({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}),u=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"}]}),_=e.ref(),k=e.ref(),N=e.ref(),E=e.ref(),b=e.ref(),T=e.ref();e.watch(()=>u.value.limitNum,X=>{typeof X=="string"&&(X=X.replace(/[^.\d]/g,""),X=X.replace(".",""),u.value.limitNum=X)}),e.watch(()=>p.value,X=>{L()},{immediate:!0});function V(){_.value.validateField("limitNum")}function $(X){if(X!==u.value.onlineStateFlag)return new Promise((v,ie)=>{if(r.value.length!==0&&u.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()),u.value.onlineStateFlag=X,v(0)});else{if(u.value.onlineStateFlag=X,u.value.checkScope===3){const le=A();le&&le.getData()}v(0)}})}function h(X){let v=u.value.limitNum-0;if(X===1)v+=1;else{if(v<=1){Se.error(x("atLeast1RandomDevice"));return}v-=1}u.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===u.value.checkScope){const Ve=A();Ve&&Ve.addSelectedDataList(de)}else S(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,_.value&&_.value.resetFields(),u.value={...m.value},u.value.limitNum=10,u.value.checkScope=ie,u.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(){_.value.clearValidate("everydayJson"),_.value.clearValidate("apDateListV2"),_.value.clearValidate("apDtmV2")}function D(X){var v;(v=S(X))==null||v.then(()=>{O([],!0)})}function S(X){if(u.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"},()=>{u.value.checkScope=X,v(0)}):(u.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=u.value.checkScope;return X===1?k.value:X===2?N.value:X===3?E.value:null}function j(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=u.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(){_.value.validate(X=>{if(X){const v={...u.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=b.value)==null||v.show(X))}function M(){O([],!0),C(!1),a.value=null}function Y(){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 nA({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],u.value={...J,playMsg:J.playMsg===1},v&&(u.value.id=null);const R=j(J);O(R),e.nextTick(()=>{s.value=!1,p.value||C(!0)})}}async function ne(X){if(X.taskDateStartTime=u.value.taskDateTime[0],X.taskDateEndTime=u.value.taskDateTime[1],u.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(u.value.taskDateType===3){if(!u.value.apDateListV2||u.value.apDateListV2.length===0)return Se.error(x("pleaseSelectADate"));X.apDateList=u.value.apDateListV2.map(le=>({apDtm:`${le} 00:00:00`}))}else if(u.value.taskDateType===4){if(!u.value.apDtmV2||u.value.apDtmV2.length===0)return Se.error(x("pleaseSelectATimePeriod"));X.apStartDtm=`${u.value.apDtmV2[0]} 00:00:00`,X.apEndDtm=`${u.value.apDtmV2[1]} 00:00:00`}const{code:v,data:ie={}}=await oA(X);v===200&&(Se.success(x("operationSuccessful")),t("on-submit"),a.value&&a.value(),M())}async function Te(){const{id:X}=await T.value.show({checkStyle:i.value===2?1:null});X&&(_.value&&_.value.resetFields(),u.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 aA({id:X});if(ie===200){u.value={...le,playMsg:le.playMsg===1},v&&(u.value.id=null);const J=j(u.value);O(J),e.nextTick(()=>{s.value=!1,p.value||C(!0)})}}async function ke(X){const{code:v}=await sA(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 lA(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:S,setSelectedDataList:O,getSelectedDataList:P,onSubmit:z,viewSpotCheckShow:U,close:M,onClose:Y,detail:F,selectTemplateShow:Te,taskDateTypeFn:w,changeCheckScope:D,everydayJson:n,formRef:_,loading:s,selectElectronicFenceRef:k,selectDepartmentRef:N,selectDeviceRef:E,selectTemplateRef:T,viewSpotCheckRef:b,contentState:i,title:c,wrapperClosable:l,form:u,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),p4={key:0,class:"fixed top-0 left-0 bg-[rgba(0,0,0,0.5)] w-full h-full z-[100]"},f4={class:"w-[1080px] h-full"},m4={class:"w-full h-full px-[20px] box-border flex flex-col text-hy-text-main text-xs"},h4={class:"flex justify-between items-center h-[60px]"},u4={class:"font-bold text-lg"},_4=["element-loading-text"],g4={key:0,class:"flex mb-2 flex-shrink-0 rounded bg-backgroundv2 px-3 pt-2 h-[90px] box-border items-center"},y4={class:"text-sm h-[30px] flex items-center"},x4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),k4={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"},N4={class:"flex-1 mr-4"},b4={class:"text-sm h-[30px] flex items-center"},C4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),w4={class:"text-sm h-[30px] flex items-center"},E4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),S4={class:"everydayBox leading-[20px]"},T4={class:"text-xs"},D4={class:"text-xs"},V4={class:"text-xs"},$4={class:"text-xs"},B4={class:"text-xs"},I4={class:"text-xs"},A4={class:"text-xs"},L4={class:"text-sm h-[30px] flex items-center"},F4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),O4={class:"w-full"},R4={class:"text-sm h-[30px] flex items-center"},P4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),M4={class:"flex-1 min-w-[220px]"},U4={class:"text-sm h-[30px] flex items-center"},z4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),W4={class:"flex items-center flex-grow h-0"},j4={class:"flex-grow w-0 h-full flex flex-col"},H4={class:"flex"},Y4={class:"text-sm h-[30px] flex items-center"},G4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),q4={class:"text-sm h-[30px] flex items-center"},K4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),X4={class:"text-sm h-[30px] flex items-center"},J4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Z4={class:"test h-[32px] flex border border-hy-border-2 rounded box-border overflow-hidden bg-hy-dialog-bg-2 w-full"},Q4={class:"flex-grow w-0 box-border px-1 flex items-center justify-center"},v4=["placeholder"],eP={class:"flex flex-col w-[32px] text-auxiliary border-l border-hy-border-2"},tP={class:"text-sm h-[30px] flex items-center"},nP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),oP={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"},aP={class:"tac text-hy-text-secondary text-center"},sP={class:"mt_10 mt-[10px]"},lP={class:""},rP={class:"mt-1"},iP={class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},cP={class:"flex justify-between h-[40px] items-center"},dP={class:"fs_12 p-[10px_20px] text-[12px]"},pP={class:"r-f mb_10 flex mb-[10px]"},fP=Fe(()=>e.createElementVNode("span",null,"1、",-1)),mP={class:"r-f mb_10 flex mb-[10px]"},hP=Fe(()=>e.createElementVNode("span",null,"2、",-1)),uP={class:"r-f mb_10 flex mb-[10px]"},_P=Fe(()=>e.createElementVNode("span",null,"3、",-1)),gP={class:"fs_12 cursor_pointer !text-hy-text-primary cursor-pointer text-[12px]"},yP={class:"flex-grow h-0 flex"},xP={class:"flex-1"},kP=Fe(()=>e.createElementVNode("div",{class:"mx-[20px] w-[2px] h-[96%] rounded bg-hy-border-2 flex-shrink-0"},null,-1)),NP={class:"w-[33%] h-full flex flex-col"},bP={class:"text-sm h-[30px] flex items-center"},CP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),wP={class:"text-sm h-[30px] flex items-center"},EP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),SP={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"},TP={class:"tac text-hy-text-secondary text-center"},DP={class:"mt-[10px]"},VP={class:"mt-1"},$P={key:0,class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},BP={class:"flex-grow h-0"},IP={class:"text-xs"},AP={class:"mb-2"},LP={class:"text-sm h-[30px] flex items-center"},FP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),OP={class:"mb-2"},RP={class:"text-sm h-[30px] flex items-center"},PP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),MP={class:"flex items-center justify-between h-[80px]"},UP={class:"text-hy-text-secondary flex items-center"},zP=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:u,taskDateTypeFn:y,everydayJson:_,changeOnlineStateFlag:k,blurLimitNum:N,setRandomNumber:E,changeCheckScope:b,selectedDataList:T,setSelectedDataList:V,selectTemplateShow:$,onSubmit:h,selectElectronicFenceRef:g,selectDepartmentRef:C,selectDeviceRef:w,selectTemplateRef:D,viewSpotCheckRef:S,show:L,formRef:A}=d4({emit:a});return n({show:L}),(j,O)=>{const P=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-input"),U=e.resolveComponent("el-form-item"),M=e.resolveComponent("el-option"),Y=e.resolveComponent("el-select"),F=e.resolveComponent("el-checkbox"),Q=e.resolveComponent("el-date-picker"),ne=e.resolveComponent("el-time-picker"),Te=XI,he=e.resolveComponent("el-icon"),ke=YI,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",p4)):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",f4,[e.createElementVNode("div",m4,[e.createElementVNode("div",h4,[e.createElementVNode("div",u4,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(u)===3?(e.openBlock(),e.createElementBlock("div",g4,[e.createVNode(U,{prop:"templateName",class:"w-full"},{default:e.withCtx(()=>[e.createElementVNode("div",y4,[e.createTextVNode(e.toDisplayString(e.unref(s)("templateName")),1),x4]),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(u)===2?(e.openBlock(),e.createElementBlock("div",k4,[e.createElementVNode("div",N4,[e.createVNode(U,{prop:"taskDateType"},{default:e.withCtx(()=>[e.createElementVNode("div",b4,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionDate")),1),C4]),e.createVNode(Y,{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",w4,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyAWeek")),1),E4]),e.createElementVNode("div",S4,[e.createVNode(F,{modelValue:e.unref(_).everyday1,"onUpdate:modelValue":O[2]||(O[2]=J=>e.unref(_).everyday1=J)},{default:e.withCtx(()=>[e.createElementVNode("span",T4,e.toDisplayString(e.unref(s)("monday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(_).everyday2,"onUpdate:modelValue":O[3]||(O[3]=J=>e.unref(_).everyday2=J)},{default:e.withCtx(()=>[e.createElementVNode("span",D4,e.toDisplayString(e.unref(s)("tuesday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(_).everyday3,"onUpdate:modelValue":O[4]||(O[4]=J=>e.unref(_).everyday3=J)},{default:e.withCtx(()=>[e.createElementVNode("span",V4,e.toDisplayString(e.unref(s)("wednesday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(_).everyday4,"onUpdate:modelValue":O[5]||(O[5]=J=>e.unref(_).everyday4=J)},{default:e.withCtx(()=>[e.createElementVNode("span",$4,e.toDisplayString(e.unref(s)("thursday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(_).everyday5,"onUpdate:modelValue":O[6]||(O[6]=J=>e.unref(_).everyday5=J)},{default:e.withCtx(()=>[e.createElementVNode("span",B4,e.toDisplayString(e.unref(s)("friday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(_).everyday6,"onUpdate:modelValue":O[7]||(O[7]=J=>e.unref(_).everyday6=J)},{default:e.withCtx(()=>[e.createElementVNode("span",I4,e.toDisplayString(e.unref(s)("saturday")),1)]),_:1},8,["modelValue"]),e.createVNode(F,{modelValue:e.unref(_).everyday7,"onUpdate:modelValue":O[8]||(O[8]=J=>e.unref(_).everyday7=J)},{default:e.withCtx(()=>[e.createElementVNode("span",A4,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",L4,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyADate")),1),F4]),e.createElementVNode("div",O4,[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",R4,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyATimePeriod")),1),P4]),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",M4,[e.createVNode(U,{prop:"taskDateTime"},{default:e.withCtx(()=>[e.createElementVNode("div",U4,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionTime-0")),1),z4]),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",W4,[e.createElementVNode("div",j4,[e.createElementVNode("div",H4,[e.createVNode(U,{class:"flex-1"},{default:e.withCtx(()=>[e.createElementVNode("div",Y4,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckType")),1),G4]),e.createVNode(Y,{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",q4,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckDevice")),1),K4]),e.createVNode(Y,{"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",X4,[e.createTextVNode(e.toDisplayString(e.unref(s)("randomNumber")),1),J4]),e.createElementVNode("div",Z4,[e.createElementVNode("div",Q4,[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(N)&&e.unref(N)(...J))},null,40,v4),[[e.vModelText,e.unref(f).limitNum]])]),e.createElementVNode("div",eP,[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",tP,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckRange")),1),nP]),e.withDirectives(e.createElementVNode("div",oP,[e.createElementVNode("div",aP,[e.createVNode(P,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",sP,[e.createElementVNode("p",lP,e.toDisplayString(e.unref(s)("youDoNotNeedToSelectARangeAndDeviceForRandomCheck")),1),e.createElementVNode("p",rP,e.toDisplayString(e.unref(s)("theSystemWillHelpYouSelectRandomly")),1)])])],512),[[e.vShow,e.unref(f).checkType===2]]),e.withDirectives(e.createElementVNode("div",iP,[e.createElementVNode("div",cP,[e.createElementVNode("div",null,[e.createVNode(Y,{"model-value":e.unref(f).checkScope,class:"w-[160px]",placeholder:e.unref(s)("pleaseSelect"),onChange:e.unref(b)},{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",gP,[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",dP,[e.createElementVNode("li",pP,[fP,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea")),1)]),e.createElementVNode("li",mP,[hP,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment")),1)]),e.createElementVNode("li",uP,[_P,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck")),1)])])]),_:1})])]),e.createElementVNode("div",yP,[e.createElementVNode("div",xP,[e.unref(f).checkScope===1?(e.openBlock(),e.createBlock(o4,{key:0,ref_key:"selectElectronicFenceRef",ref:g,"init-selected-data-list":e.unref(T),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(f).checkScope===2?(e.openBlock(),e.createBlock(MO,{key:1,ref_key:"selectDepartmentRef",ref:C,"init-selected-data-list":e.unref(T),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(f).checkScope===3?(e.openBlock(),e.createBlock(IR,{key:2,ref_key:"selectDeviceRef",ref:w,"init-selected-data-list":e.unref(T),"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]])]),kP,e.createElementVNode("div",NP,[e.createVNode(U,null,{default:e.withCtx(()=>[e.createElementVNode("div",bP,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckMethod")),1),CP]),e.createVNode(Y,{modelValue:e.unref(f).checkStyle,"onUpdate:modelValue":O[17]||(O[17]=J=>e.unref(f).checkStyle=J),class:"w-full",disabled:e.unref(u)===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",wP,[e.createTextVNode(e.toDisplayString(e.unref(s)("messageContent")),1),EP]),e.withDirectives(e.createElementVNode("div",SP,[e.createElementVNode("div",TP,[e.createVNode(P,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",DP,[e.createElementVNode("p",null,e.toDisplayString(e.unref(s)("callDoesNotRequireYouToEnterTheMessageContent")),1),e.createElementVNode("p",VP,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",$P,[e.createElementVNode("div",BP,[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(u)===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",IP,e.toDisplayString(e.unref(s)("requiresTTSVoiceBroadcastOnTheDevice")),1)]),_:1},8,["modelValue"])]),e.createElementVNode("div",AP,[e.createElementVNode("div",LP,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerMethod")),1),FP]),e.createVNode(Y,{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",OP,[e.createElementVNode("div",RP,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerTime")),1),PP]),e.createVNode(Y,{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,_4)),[[le,e.unref(d)]]),e.createElementVNode("div",MP,[e.createElementVNode("div",UP,[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(u)!==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(c4,{ref_key:"selectTemplateRef",ref:D},null,512)],2)):e.createCommentVNode("",!0),e.createVNode(vF,{ref_key:"viewSpotCheckRef",ref:S},null,512)])}}}),[["__scopeId","data-v-1e4e7e93"]]);function WP(t){return oe.post({url:"orgGroup/detail",data:t,isFormData:!0})}function jP(){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 u(h){if(!h)return;const{code:g,data:C}=await WP({id:h});g===200&&(o.value=C)}function y(){var h;(h=d.value)==null||h.getData(l.value)}function _(h){l.value=h,e.nextTick(()=>{y()})}function k(h){a.value=h}function N(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 b(h=[]){}function T(h){t.value={actionType:1,id:12},k(1),_(0),V(h),p.value=!0}async function V(h){const{code:g,data:C={}}=await $r({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,u(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:_,setNavigationStatus:k,setLoading:N,spotCheckTaskDeviceCountStatus:E,spotCheckTaskDeviceChange:b,show:T,detail:V,close:$}}const HP={class:"deleteBox c_fff text-hy-text-main"},YP={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]"},GP={class:"dialog_body pb-[30px] h-[60vh] flex flex-col text-main text-xs !px-0"},qP={class:"flex items-center justify-center mb-[16px]"},KP={class:"relative flex-shrink-0"},XP={class:"relative text-sm h-[36px] !leading-[36px] text-center border border-hy-bg-2 rounded text-hy-text-secondary flex overflow-hidden"},JP=["onClick"],ZP={class:"flex flex-grow h-0 px-4 box-border"},QP={class:"w-full h-full box-border px-2"},vP={class:"w-full h-full bg-hy-dialog-bg-2 rounded px-3 py-1 box-border overflow-x-hidden overflow-y-auto"},e3={class:"mb-2"},t3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},n3={class:"text-hy-text-secondary"},o3={class:"mb-2"},a3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},s3={class:"mb-2"},l3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},r3={class:"mb-2"},i3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},c3={class:"mb-2"},d3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},p3={key:0,class:"mb-2"},f3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},m3={key:0},h3={key:1},u3={key:2},_3={key:0},g3={key:0},y3={key:1},x3={key:0},k3={key:2},N3={key:1,class:"mb-2"},b3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},C3={key:0,class:"py-1 box-border h-full bg-hy-dialog-bg-3 rounded"},w3={class:"w-full h-[34px] px-2 box-border flex justify-between items-center"},E3={key:0,class:"ml-2 border-[2px] box-border border-hy-border-2 flex items-center justify-center h-[26px] px-2 rounded"},S3={class:"h-[40%] box-border px-2 mt-1"},T3={class:"w-full h-full box-border bg-hy-dialog-bg-2 rounded p-2 overflow-y-auto overflow-x-hidden"},D3={class:"flex px-2 mt-1"},V3={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center mr-2"},$3={class:"text-hy-text-secondary"},B3={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center"},I3={class:"text-hy-text-secondary"},A3={class:"font-bold"},L3={key:1,class:"h-full py-1 bg-hy-dialog-bg-3 rounded"},F3={class:"w-full h-full flex items-center justify-center text-hy-text-secondary box-border"},O3={class:"r-f tac flex flex-col items-center justify-center text-center text-sm"},R3={class:"mt-3"},P3={class:"mt-1"},M3={class:"flex flex-grow h-0 px-4 box-border"},U3={class:"text-xs px-2 leading-[22px]"},z3={class:"flex w-full"},W3={class:"flex-shrink-0"},j3={class:"text-right font-bold flex-grow w-0"},H3={class:"flex w-full"},Y3={class:"flex-shrink-0 tracking-[4px]"},G3={class:"text-right font-bold flex-grow w-0"},q3={class:"flex w-full"},K3={class:"flex-shrink-0 tracking-[4px]"},X3={class:"text-right font-bold flex-grow w-0"},J3={class:"flex w-full"},Z3={class:"flex-shrink-0 tracking-[4px]"},Q3={class:"text-right font-bold flex-grow w-0 text-hy-success"},v3={class:"flex w-full"},e8={class:"flex-shrink-0 tracking-[4px]"},t8={class:"text-right font-bold flex-grow w-0 text-hy-danger"},n8={class:"flex-1 flex"},o8={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},a8={class:"flex-grow w-0 text-center truncate"},s8={class:"flex-1 flex"},l8={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},r8={class:"flex-grow w-0 text-center text-hy-success truncate"},i8={class:"flex-1 flex"},c8={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},d8={class:"flex-grow w-0 text-center text-hy-danger truncate"},p8={class:"relative mt-3 mb-2 min-w-[160px]"},f8={class:"relative h-[26px] !leading-[26px] text-center border border-hy-border-2 rounded text-hy-text-secondary text-xs flex overflow-hidden"},m8=["onClick"],h8={class:"flex-grow h-0 px-2 overflow-x-hidden overflow-y-auto"},u8=e.createElementVNode("div",{class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},null,-1),_8={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"},g8={class:"r-f tac flex flex-col justify-center items-center"},y8={class:"mt-3 text-sm"},x8=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:u,setCheckStatus:y,setNavigationStatus:_,spotCheckTaskDeviceChange:k,spotCheckTaskDeviceCountStatus:N,show:E,spotCheckTaskDeviceRef:b}=jP();return n({show:E}),(T,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",HP,[e.createElementVNode("div",YP,[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",GP,[e.createElementVNode("div",qP,[e.createElementVNode("div",KP,[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",XP,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(D,S)=>(e.openBlock(),e.createElementBlock("li",{key:S,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(_)(D.value)},e.toDisplayString(D.label),11,JP))),128))])])]),e.withDirectives(e.createElementVNode("div",ZP,[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",QP,[e.createElementVNode("div",vP,[e.createElementVNode("div",e3,[e.createElementVNode("div",t3,e.toDisplayString(e.unref(x)("spotCheckPersonnel")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(i).name)+" ",1),e.createElementVNode("span",n3," ("+e.toDisplayString(e.unref(i).jobNum)+")",1)])]),e.createElementVNode("div",o3,[e.createElementVNode("div",a3,e.toDisplayString(e.unref(x)("department")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).orgName),1)]),e.createElementVNode("div",s3,[e.createElementVNode("div",l3,e.toDisplayString(e.unref(x)("spotCheckTime")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkDtm),1)]),e.createElementVNode("div",r3,[e.createElementVNode("div",i3,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",c3,[e.createElementVNode("div",d3,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",p3,[e.createElementVNode("div",f3,[e.createTextVNode(e.toDisplayString(e.unref(x)("samplingScope"))+" ",1),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("span",m3,e.toDisplayString(e.unref(x)("regionalSpotCheck")),1)):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("span",h3,e.toDisplayString(e.unref(x)("departmentSpotCheck")),1)):e.unref(i).checkScope===3?(e.openBlock(),e.createElementBlock("span",u3,e.toDisplayString(e.unref(x)("deviceSpotCheck")),1)):e.createCommentVNode("",!0),e.createTextVNode(" ) ")]),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("div",_3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(D,S)=>(e.openBlock(),e.createElementBlock("span",{key:`${S}_orgNameList`},[e.createTextVNode(e.toDisplayString(D)+" ",1),S!==e.unref(u).length-1?(e.openBlock(),e.createElementBlock("span",g3,"、")):e.createCommentVNode("",!0)]))),128))])):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("div",y3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(D,S)=>(e.openBlock(),e.createElementBlock("span",{key:`${S}_orgNameList`},[e.createTextVNode(e.toDisplayString(D)+" ",1),S!==e.unref(m).length-1?(e.openBlock(),e.createElementBlock("span",x3,"、")):e.createCommentVNode("",!0)]))),128))])):(e.openBlock(),e.createElementBlock("div",k3,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).checkNum||0)+" "+e.toDisplayString(e.unref(x)("device")),1)]))])):(e.openBlock(),e.createElementBlock("div",N3,[e.createElementVNode("div",b3,[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",C3,[e.createElementVNode("div",w3,[e.createElementVNode("div",null,e.toDisplayString(e.unref(x)("messageContent")),1),e.unref(i).playMsg===1?(e.openBlock(),e.createElementBlock("div",E3," TTS"+e.toDisplayString(e.unref(x)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",S3,[e.createElementVNode("div",T3,e.toDisplayString(e.unref(i).msgContent),1)]),e.createElementVNode("div",D3,[e.createElementVNode("div",V3,[e.createElementVNode("div",$3,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",B3,[e.createElementVNode("div",I3,e.toDisplayString(e.unref(x)("answerTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",A3,e.toDisplayString(e.unref(i).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("second")),1)])])])])):(e.openBlock(),e.createElementBlock("div",L3,[e.createElementVNode("div",F3,[e.createElementVNode("div",O3,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",R3,e.toDisplayString(e.unref(x)("callSpotCheck")),1),e.createElementVNode("div",P3,e.toDisplayString(e.unref(x)("backupWillBeCheckedByIntercomAnswering")),1)])])]))]),_:1})]),_:1})],512),[[e.vShow,e.unref(p)===1]]),e.withDirectives(e.createElementVNode("div",M3,[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",n8,[e.createElementVNode("div",o8,[e.createVNode($,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",a8,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("div",s8,[e.createElementVNode("div",l8,[e.createVNode($,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),e.createElementVNode("div",r8,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("div",i8,[e.createElementVNode("div",c8,[e.createVNode($,{name:"base-danger-state","class-name":"w-[16px] h-[16px] text-hy-danger"})]),e.createElementVNode("div",d8,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])],2)])]),default:e.withCtx(()=>[e.createElementVNode("ul",U3,[e.createElementVNode("li",z3,[e.createElementVNode("span",W3,e.toDisplayString(e.unref(x)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",j3,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("li",H3,[e.createElementVNode("span",Y3,e.toDisplayString(e.unref(x)("waitingToReceive")),1),e.createElementVNode("div",G3,e.toDisplayString(e.unref(i).beReceiveNum||"- -"),1)]),e.createElementVNode("li",q3,[e.createElementVNode("span",K3,e.toDisplayString(e.unref(x)("receiving")),1),e.createElementVNode("div",X3,e.toDisplayString(e.unref(i).receivingNum||"- -"),1)]),e.createElementVNode("li",J3,[e.createElementVNode("span",Z3,e.toDisplayString(e.unref(x)("completed")),1),e.createElementVNode("div",Q3,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("li",v3,[e.createElementVNode("span",e8,e.toDisplayString(e.unref(x)("uncompleted")),1),e.createElementVNode("div",t8,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])])]),_:1}),e.createElementVNode("div",p8,[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",f8,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(D,S)=>(e.openBlock(),e.createElementBlock("li",{key:`${S}_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,m8))),128))])])],2),e.createElementVNode("div",h8,[e.unref(i).id?(e.openBlock(),e.createBlock(da,{key:0,ref_key:"spotCheckTaskDeviceRef",ref:b,"params-span":e.unref(i).actionType===1?8:24,form:e.unref(i),"subscribe-status":!1,onChange:e.unref(k),onOnCountStatus:e.unref(N)},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(()=>[u8]),_:1})):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createElementBlock("div",_8,[e.createElementVNode("div",g8,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",y8,e.toDisplayString(e.unref(x)("noDeviceSupportsThisSpotCheck")),1)])]))],512),[[e.vShow,e.unref(p)===2]])])])]),_:1},8,["modelValue"])}}});function k8(t){const n=e.ref(t.props),o=e.ref(t.params.selectFilterType),a=e.ref(""),s=e.ref([]);async function l(){var i;n.value.getData&&((i=n.value.getData())==null||i.then(async c=>{if(!c)return;const p=await Fr(a.value,[...c],{disabledIds:n.value.disableDataList.map(d=>`disabled:${d.id}`).toString(),hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});console.log(p),s.value=p.children,t.params.setViewDepartmentList(s.value)}))}function r(){a.value.length&&l()}return{getData:l,query:a,selectChange:r}}const N8={class:"flex flex-col h-full text-xs"},b8={class:"flex items-center"},C8={class:"!w-[114px]"},w8={class:"text-hy-text-main"},E8={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},S8={class:"flex-grow w-0 flex items-center mr-1"},T8={class:"overflow-ellipsis overflow-hidden mx-1"},D8={class:"flex-shrink-0 flex items-center"},V8={key:0,class:"w-full"},$8={class:"w-full h-full flex items-center"},B8={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},I8={class:"flex-shrink-0 text-xs ml-1 mr-2 text-hy-main"},A8=e.defineComponent({__name:"acquisition-station-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:u,setChecked:y,setCheckedKeys:_,setSelectedList:k,selectFilterList:N,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:T,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=k8({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:T}});return n({setCheckedKeys:_,setSelectedList:k,setChecked:y}),e.onMounted(()=>{u(),a.fuzzySearch?(N.value=[{label:x("department"),value:null,placeholder:"采集站名称,群组名称筛选"}],E.value=null):(N.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||N.value.push({label:"采集站",value:8,placeholder:x("采集站名称进行筛选")}),E.value=N.value[0].value),a.defaultGetData||h()}),(w,D)=>{const S=e.resolveComponent("el-option"),L=e.resolveComponent("el-select"),A=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),O=e.resolveComponent("el-input"),P=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",N8,[e.createElementVNode("div",b8,[e.createVNode(O,{modelValue:e.unref(g),"onUpdate:modelValue":D[1]||(D[1]=z=>e.isRef(g)?g.value=z:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",w8,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(A,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",C8,[e.createVNode(L,{modelValue:e.unref(E),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(E)?E.value=z:null),class:"!m-0",size:"small",onChange:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),(z,U)=>(e.openBlock(),e.createBlock(S,{key:`${U}_selectFilterList`,label:z.label,value:z.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(w.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":8,"highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,"default-checked-list":a.defaultCheckedList,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:z})=>[e.renderSlot(w.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",E8,[e.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.sname},{default:e.withCtx(()=>[e.createElementVNode("div",S8,[e.createVNode(A,{name:"menu-acquisition-station-2",class:"!w-[20px] !h-[20px]"}),e.createElementVNode("div",T8,[e.createElementVNode("span",null,e.toDisplayString(z.sname),1)])])]),_:2},1032,["content"]),z.todayFile?(e.openBlock(),e.createBlock(P,{key:0,class:"item","show-after":1e3,content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",D8,[e.createVNode(A,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]))]),"other-content":e.withCtx(({row:z})=>[e.renderSlot(w.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",V8,[e.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",$8,[e.createElementVNode("div",B8,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)]),e.createElementVNode("span",I8,"("+e.toDisplayString(z.childrenDeviceList.length||0)+")",1)])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function L8(t){const n=t.emit,o=e.ref(t.props),a=e.ref(t.params.selectFilterType);e.ref(!1);const s=e.ref(""),l=e.ref([]);async function r(){var d;o.value.getData&&((d=o.value.getData())==null||d.then(async f=>{if(!f)return;const m=await Ar(s.value,[...f],{hideDevice:o.value.hideDevice,hideOrgNoData:o.value.hideOrgNoData,hideGroup:o.value.hideGroup,selectFilterType:a.value});l.value=m.children,t.params.setViewDepartmentList(l.value)}))}function i(){s.value.length&&r()}function c(d){n("onClickDevice",d)}function p(d){n("onClickOrganization",d)}return{getData:r,query:s,selectChange:i,onClickDevice:c,onClickOrganization:p}}const F8={class:"flex flex-col h-full text-xs"},O8={class:"flex items-center"},R8={class:"!w-[114px]"},P8={class:"text-hy-text-main"},M8={key:0,class:"flex items-center w-full h-full click-box"},U8={class:"flex-grow w-0 h-full flex items-center text-hy-text-main"},z8={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},W8={class:"text-hy-text-main"},j8={class:"flex-shrink-0 ml-1 mr-2 h-full flex items-center justify-center"},H8={key:0,class:"w-full h-full"},Y8=["onClick"],G8={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},q8=e.defineComponent({__name:"org-group-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},hideGroup:{type:Boolean,default:!1},hideDevice:{type:Boolean,default:!1}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData","onClickDevice","onClickOrganization"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:u,setChecked:y,setCheckedKeys:_,setSelectedList:k,selectFilterList:N,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:T,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C,onClickDevice:w,onClickOrganization:D}=L8({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:T}});return n({setCheckedKeys:_,setSelectedList:k,setChecked:y,getData:h}),e.onMounted(()=>{u(),a.fuzzySearch?(N.value=[{label:x("department"),value:null,placeholder:"部门、群组名称、设备名称、设备IMEI进行搜索"}],E.value=null):(N.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||N.value.push({label:x("equipment"),value:3,placeholder:x("filterByDeviceNumberAndDeviceName")}),a.hideGroup||N.value.push({label:"群组",value:4,placeholder:"群组名称进行筛选"}),E.value=N.value[0].value),a.defaultGetData||h()}),(S,L)=>{const A=e.resolveComponent("el-option"),j=e.resolveComponent("el-select"),O=e.resolveComponent("svg-icon"),P=e.resolveComponent("el-button"),z=e.resolveComponent("el-input"),U=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",F8,[e.createElementVNode("div",O8,[e.createVNode(z,{modelValue:e.unref(g),"onUpdate:modelValue":L[1]||(L[1]=M=>e.isRef(g)?g.value=M:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",P8,[e.createVNode(P,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(O,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",R8,[e.createVNode(j,{modelValue:e.unref(E),"onUpdate:modelValue":L[0]||(L[0]=M=>e.isRef(E)?E.value=M:null),class:"!m-0",size:"small",onChange:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),(M,Y)=>(e.openBlock(),e.createBlock(A,{key:`${Y}_selectFilterList`,label:M.label,value:M.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(S.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":4,"highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,"default-checked-list":a.defaultCheckedList,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:M})=>[e.renderSlot(S.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:M}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",M8,[e.createVNode(U,{class:"item",content:M.groupName,effect:"dark",placement:"bottom","show-after":1e3},{default:e.withCtx(()=>{var Y;return[e.createElementVNode("div",U8,[e.createElementVNode("div",z8,[e.createElementVNode("span",W8,e.toDisplayString(M.groupName),1)]),e.withDirectives(e.createElementVNode("span",{class:"flex-shrink-0 text-xs mr-2 ml-1 text-hy-main"},"("+e.toDisplayString(((Y=M.deviceList)==null?void 0:Y.length)||0)+")",513),[[e.vShow,!a.hideDevice]])])]}),_:2},1032,["content"]),e.createVNode(U,{class:"item",content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom","show-after":1e3},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",j8,[e.createVNode(O,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})],512),[[e.vShow,M.todayFile]])]),_:2},1032,["content"])]))]),"other-content":e.withCtx(({row:M})=>[e.renderSlot(S.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:M}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",H8,[M.type===3?(e.openBlock(),e.createBlock(fa,{key:0,device:M,onOnClickDevice:e.unref(w)},null,8,["device","onOnClickDevice"])):e.createCommentVNode("",!0),M.type!==3?(e.openBlock(),e.createBlock(U,{key:1,"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:M.companyName||M.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"w-full h-full flex items-center",onClick:Y=>e.unref(D)(M)},[e.createElementVNode("div",G8,[e.createElementVNode("span",null,e.toDisplayString(M.companyName||M.orgName),1)])],8,Y8)]),_:2},1032,["content"])):e.createCommentVNode("",!0)]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function K8(t){const n=e.ref(t.props),o=e.ref(t.params.selectFilterType),a=e.ref(""),s=e.ref([]);async function l(){var i;n.value.getData&&((i=n.value.getData())==null||i.then(async c=>{if(!c)return;const p=await Lr(a.value,[...c],{disabledIds:n.value.disableDataList.map(d=>`disabled:${d.id}`).toString(),hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});s.value=p.children,t.params.setViewDepartmentList(s.value)}))}function r(){a.value.length&&l()}return{getData:l,query:a,selectChange:r}}const X8={class:"flex flex-col h-full text-xs"},J8={class:"flex items-center"},Z8={class:"!w-[114px]"},Q8={class:"text-hy-text-main"},v8={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},eM={class:"flex-grow w-0 flex items-center mr-1"},tM={class:"overflow-ellipsis overflow-hidden mx-1"},nM={class:"flex-shrink-0 flex items-center"},oM={key:0,class:"w-full"},aM={class:"w-full h-full flex items-center"},sM={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},lM={class:"flex-shrink-0 text-xs ml-1 mx-2 text-hy-main"},rM=e.defineComponent({__name:"user-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:u,setChecked:y,setCheckedKeys:_,setSelectedList:k,selectFilterList:N,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:T,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=K8({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:T}});return n({setCheckedKeys:_,setSelectedList:k,setChecked:y,getData:h}),e.onMounted(()=>{u(),a.fuzzySearch?(N.value=[{label:x("department"),value:null,placeholder:"人员名称,部门名称筛选"}],E.value=null):(N.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||N.value.push({label:"人员",value:5,placeholder:x("filterByPersonnelName")}),E.value=N.value[0].value),a.defaultGetData||h()}),(w,D)=>{const S=e.resolveComponent("el-option"),L=e.resolveComponent("el-select"),A=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),O=e.resolveComponent("el-input"),P=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",X8,[e.createElementVNode("div",J8,[e.createVNode(O,{modelValue:e.unref(g),"onUpdate:modelValue":D[1]||(D[1]=z=>e.isRef(g)?g.value=z:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",Q8,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(A,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",Z8,[e.createVNode(L,{modelValue:e.unref(E),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(E)?E.value=z:null),class:"!m-0",size:"small",onChange:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),(z,U)=>(e.openBlock(),e.createBlock(S,{key:`${U}_selectFilterList`,label:z.label,value:z.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(w.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":5,"highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,"default-checked-list":a.defaultCheckedList,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:z})=>[e.renderSlot(w.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",v8,[e.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.name},{default:e.withCtx(()=>[e.createElementVNode("div",eM,[e.createVNode(A,{name:"icon-user",class:"!w-[14px] !h-[14px]"}),e.createElementVNode("div",tM,[e.createElementVNode("span",null,e.toDisplayString(z.name),1)])])]),_:2},1032,["content"]),z.todayFile?(e.openBlock(),e.createBlock(P,{key:0,class:"item","show-after":1e3,content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",nM,[e.createVNode(A,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]))]),"other-content":e.withCtx(({row:z})=>[e.renderSlot(w.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",oM,[e.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",aM,[e.createElementVNode("div",sM,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)]),e.createElementVNode("span",lM,"("+e.toDisplayString(z.childrenDeviceList.length||0)+")",1)])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});var Pr=(t=>(t[t.LAW_ENFORCEMENT_RECORDER=1]="LAW_ENFORCEMENT_RECORDER",t[t.WALKIE_TALKIE=2]="WALKIE_TALKIE",t[t.FIRE_DISPATCH_DESK=3]="FIRE_DISPATCH_DESK",t[t.FIRE_DUTY_DESK=4]="FIRE_DUTY_DESK",t[t.PHONE_APP=5]="PHONE_APP",t[t.CONTROL_THE_BALL=6]="CONTROL_THE_BALL",t[t.IPC_CAMERA=7]="IPC_CAMERA",t[t.HELMET=8]="HELMET",t[t.FLASHLIGHT=9]="FLASHLIGHT",t[t.WORK_LICENSE=10]="WORK_LICENSE",t[t.DRONE=11]="DRONE",t[t.CAR_PTZ=12]="CAR_PTZ",t[t.CASCADE_DEVICE_DOWN=13]="CASCADE_DEVICE_DOWN",t[t.JT808=14]="JT808",t[t.NATIONAL_STANDARD_RECORDER=15]="NATIONAL_STANDARD_RECORDER",t[t.RTOS_DEVICE=16]="RTOS_DEVICE",t[t.WATCH=17]="WATCH",t))(Pr||{});ae.DeviceEnum=Pr,ae.HyAbnormalDetail=J$,ae.HyAcquisitionStationTree=A8,ae.HyAddDepartmentType=Zm,ae.HyAudioPlayer=kr,ae.HyBoxBorder=$e,ae.HyCommonTaskDetailModal=zI,ae.HyDataTimeShortcuts=Td,ae.HyDeviceDetails=Lu,ae.HyDeviceTree=Rr,ae.HyDeviceTreeCpns=fa,ae.HyEditSpotCheck=zP,ae.HyElectronicFence=h1,ae.HyElectronicPatrolDetail=Tr,ae.HyFileDetails=jb,ae.HyFileUpload=WC,ae.HyImageViewer=Wo,ae.HyMapNoPermissions=pn,ae.HyMapSearchPlace=na,ae.HyMenuComponents=zf,ae.HyOrgCascader=El,ae.HyOrgGroupTree=q8,ae.HyOrgTree=Or,ae.HyRoundButton=Me,ae.HySelect=yf,ae.HySelectMapLocation=GC,ae.HySpotCheckDetail=x8,ae.HySvgIcon=Sl,ae.HyTable=Yt,ae.HyTableHead=lm,ae.HyTipsModal=mt,ae.HyUserHead=xt,ae.HyUserTree=rM,ae.HyVideoPlayer=oa,ae.HyVueCropper=Vl,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})});
|