command-center-v3-common 0.0.120 → 0.0.122

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
38
38
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
39
39
  * @license MIT
40
40
  **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const g_=Object.prototype.hasOwnProperty,jl=(t,n)=>g_.call(t,n),Gn=t=>typeof t=="function",mn=t=>typeof t=="string",Hl=t=>t!==null&&typeof t=="object";var y_=typeof global=="object"&&global&&global.Object===Object&&global,x_=typeof self=="object"&&self&&self.Object===Object&&self,Ko=y_||x_||Function("return this")(),Xt=Ko.Symbol,Yl=Object.prototype,k_=Yl.hasOwnProperty,N_=Yl.toString,hn=Xt?Xt.toStringTag:void 0;function b_(t){var n=k_.call(t,hn),o=t[hn];try{t[hn]=void 0;var a=!0}catch{}var s=N_.call(t);return a&&(n?t[hn]=o:delete t[hn]),s}var C_=Object.prototype,w_=C_.toString;function E_(t){return w_.call(t)}var S_="[object Null]",T_="[object Undefined]",Gl=Xt?Xt.toStringTag:void 0;function ql(t){return t==null?t===void 0?T_:S_:Gl&&Gl in Object(t)?b_(t):E_(t)}function D_(t){return t!=null&&typeof t=="object"}var V_="[object Symbol]";function Xo(t){return typeof t=="symbol"||D_(t)&&ql(t)==V_}function $_(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,B_=1/0,Kl=Xt?Xt.prototype:void 0,Xl=Kl?Kl.toString:void 0;function Jl(t){if(typeof t=="string")return t;if(Jo(t))return $_(t,Jl)+"";if(Xo(t))return Xl?Xl.call(t):"";var n=t+"";return n=="0"&&1/t==-B_?"-0":n}function Zl(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var I_="[object AsyncFunction]",A_="[object Function]",L_="[object GeneratorFunction]",F_="[object Proxy]";function O_(t){if(!Zl(t))return!1;var n=ql(t);return n==A_||n==L_||n==I_||n==F_}var Zo=Ko["__core-js_shared__"],Ql=function(){var t=/[^.]+$/.exec(Zo&&Zo.keys&&Zo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function R_(t){return!!Ql&&Ql in t}var P_=Function.prototype,M_=P_.toString;function U_(t){if(t!=null){try{return M_.call(t)}catch{}try{return t+""}catch{}}return""}var z_=/[\\^$.*+?()[\]{}|]/g,W_=/^\[object .+?Constructor\]$/,j_=Function.prototype,H_=Object.prototype,Y_=j_.toString,G_=H_.hasOwnProperty,q_=RegExp("^"+Y_.call(G_).replace(z_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function K_(t){if(!Zl(t)||R_(t))return!1;var n=O_(t)?q_:W_;return n.test(U_(t))}function X_(t,n){return t==null?void 0:t[n]}function vl(t,n){var o=X_(t,n);return K_(o)?o:void 0}function J_(t,n){return t===n||t!==t&&n!==n}var Z_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q_=/^\w*$/;function v_(t,n){if(Jo(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||Xo(t)?!0:Q_.test(t)||!Z_.test(t)||n!=null&&t in Object(n)}var un=vl(Object,"create");function eg(){this.__data__=un?un(null):{},this.size=0}function tg(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}var ng="__lodash_hash_undefined__",og=Object.prototype,ag=og.hasOwnProperty;function sg(t){var n=this.__data__;if(un){var o=n[t];return o===ng?void 0:o}return ag.call(n,t)?n[t]:void 0}var lg=Object.prototype,rg=lg.hasOwnProperty;function ig(t){var n=this.__data__;return un?n[t]!==void 0:rg.call(n,t)}var cg="__lodash_hash_undefined__";function dg(t,n){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=un&&n===void 0?cg: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=eg,Bt.prototype.delete=tg,Bt.prototype.get=sg,Bt.prototype.has=ig,Bt.prototype.set=dg;function pg(){this.__data__=[],this.size=0}function qn(t,n){for(var o=t.length;o--;)if(J_(t[o][0],n))return o;return-1}var fg=Array.prototype,mg=fg.splice;function hg(t){var n=this.__data__,o=qn(n,t);if(o<0)return!1;var a=n.length-1;return o==a?n.pop():mg.call(n,o,1),--this.size,!0}function ug(t){var n=this.__data__,o=qn(n,t);return o<0?void 0:n[o][1]}function _g(t){return qn(this.__data__,t)>-1}function gg(t,n){var o=this.__data__,a=qn(o,t);return a<0?(++this.size,o.push([t,n])):o[a][1]=n,this}function Jt(t){var n=-1,o=t==null?0:t.length;for(this.clear();++n<o;){var a=t[n];this.set(a[0],a[1])}}Jt.prototype.clear=pg,Jt.prototype.delete=hg,Jt.prototype.get=ug,Jt.prototype.has=_g,Jt.prototype.set=gg;var yg=vl(Ko,"Map");function xg(){this.size=0,this.__data__={hash:new Bt,map:new(yg||Jt),string:new Bt}}function kg(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function Kn(t,n){var o=t.__data__;return kg(n)?o[typeof n=="string"?"string":"hash"]:o.map}function Ng(t){var n=Kn(this,t).delete(t);return this.size-=n?1:0,n}function bg(t){return Kn(this,t).get(t)}function Cg(t){return Kn(this,t).has(t)}function wg(t,n){var o=Kn(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=xg,It.prototype.delete=Ng,It.prototype.get=bg,It.prototype.has=Cg,It.prototype.set=wg;var Eg="Expected a function";function Qo(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new TypeError(Eg);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 Sg=500;function Tg(t){var n=Qo(t,function(a){return o.size===Sg&&o.clear(),a}),o=n.cache;return n}var Dg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vg=/\\(\\)?/g,$g=Tg(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(Dg,function(o,a,s,l){n.push(s?l.replace(Vg,"$1"):a||o)}),n});function Bg(t){return t==null?"":Jl(t)}function Ig(t,n){return Jo(t)?t:v_(t,n)?[t]:$g(Bg(t))}var Ag=1/0;function Lg(t){if(typeof t=="string"||Xo(t))return t;var n=t+"";return n=="0"&&1/t==-Ag?"-0":n}function Fg(t,n){n=Ig(n,t);for(var o=0,a=n.length;t!=null&&o<a;)t=t[Lg(n[o++])];return o&&o==a?t:void 0}function Og(t,n,o){var a=t==null?void 0:Fg(t,n);return a===void 0?o:a}function Rg(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 Pg=t=>t===void 0,er=t=>typeof t=="boolean",At=t=>typeof t=="number",Mg=t=>typeof Element>"u"?!1:t instanceof Element,Ug=t=>mn(t)?!Number.isNaN(Number(t)):!1,tr=t=>Object.keys(t);class zg extends Error{constructor(n){super(n),this.name="ElementPlusError"}}function Xn(t,n){if(process.env.NODE_ENV!=="production"){const o=mn(t)?new zg(`[${t}] ${n}`):t;console.warn(o)}}const Wg="utils/dom/style";function vo(t,n="px"){if(!t)return"";if(At(t)||Ug(t))return`${t}${n}`;if(mn(t))return t;Xn(Wg,"binding value must be a string or number")}const nr="__epPropKey",st=t=>t,jg=t=>Hl(t)&&!!t[nr],or=(t,n)=>{if(!Hl(t)||jg(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),jl(t,"default")&&f.push(s),d||(d=f.includes(p))),r&&(d||(d=r(p))),!d&&f.length>0){const m=[...new Set(f)].map(_=>JSON.stringify(_)).join(", ");e.warn(`Invalid prop: validation failed${n?` for prop "${n}"`:""}. Expected one of [${m}], got value ${JSON.stringify(p)}.`)}return d}:void 0,[nr]:!0};return jl(t,"default")&&(c.default=s),c},_n=t=>Rg(Object.entries(t).map(([n,o])=>[n,or(o,n)])),Hg=st([String,Object,Function]),Yg={Close:Rd,SuccessFilled:Fs,InfoFilled:Ls,WarningFilled:Os,CircleCloseFilled:As},ar={success:Fs,warning:Os,error:As,info:Ls},sr=(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},Gg=(t,n)=>(t.install=o=>{t._context=o._context,o.config.globalProperties[n]=t},t),qg={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"},Kg=["","default","small","large"],Xg=t=>t,Jg=t=>(n,o)=>Zg(n,o,e.unref(t)),Zg=(t,n,o)=>Og(o,t,t).replace(/\{(\w+)\}/g,(a,s)=>{var l;return`${(l=n==null?void 0:n[s])!=null?l:`{${s}}`}`}),Qg=t=>{const n=e.computed(()=>e.unref(t).name),o=e.isRef(t)?t:e.ref(t);return{lang:n,locale:o,t:Jg(t)}},lr=Symbol("localeContextKey"),vg=t=>{const n=t||e.inject(lr,e.ref());return Qg(e.computed(()=>n.value||Qr))},Jn="el",ey="is-",Lt=(t,n,o,a,s)=>{let l=`${t}-${n}`;return o&&(l+=`-${o}`),a&&(l+=`__${a}`),s&&(l+=`--${s}`),l},rr=Symbol("namespaceContextKey"),ty=t=>{const n=t||(e.getCurrentInstance()?e.inject(rr,e.ref(Jn)):e.ref(Jn));return e.computed(()=>e.unref(n)||Jn)},ea=(t,n)=>{const o=ty(n);return{namespace:o,b:(u="")=>Lt(o.value,t,u,"",""),e:u=>u?Lt(o.value,t,"",u,""):"",m:u=>u?Lt(o.value,t,"","",u):"",be:(u,N)=>u&&N?Lt(o.value,t,u,N,""):"",em:(u,N)=>u&&N?Lt(o.value,t,"",u,N):"",bm:(u,N)=>u&&N?Lt(o.value,t,u,"",N):"",bem:(u,N,k)=>u&&N&&k?Lt(o.value,t,u,N,k):"",is:(u,...N)=>{const k=N.length>=1?N[0]:!0;return u&&k?`${ey}${u}`:""},cssVar:u=>{const N={};for(const k in u)u[k]&&(N[`--${o.value}-${k}`]=u[k]);return N},cssVarName:u=>`--${o.value}-${u}`,cssVarBlock:u=>{const N={};for(const k in u)u[k]&&(N[`--${o.value}-${t}-${k}`]=u[k]);return N},cssVarBlockName:u=>`--${o.value}-${t}-${u}`}},ir={current:0},cr=e.ref(0),dr=2e3,pr=Symbol("elZIndexContextKey"),fr=Symbol("zIndexContextKey"),ny=t=>{const n=e.getCurrentInstance()?e.inject(pr,ir):ir,o=t||(e.getCurrentInstance()?e.inject(fr,void 0):void 0),a=e.computed(()=>{const r=e.unref(o);return At(r)?r:dr}),s=e.computed(()=>a.value+cr.value),l=()=>(n.current++,cr.value=n.current,s.value);return!Kt&&!e.inject(pr)&&Xn("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
41
- usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:s,nextZIndex:l}},oy=or({type:String,values:Kg,required:!1}),ay=Symbol("size"),sy=Symbol("emptyValuesContextKey"),ly=_n({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>Gn(t)?!t():!t}}),mr=Symbol(),Zn=e.ref();function hr(t,n=void 0){const o=e.getCurrentInstance()?e.inject(mr,Zn):Zn;return t?e.computed(()=>{var a,s;return(s=(a=o.value)==null?void 0:a[t])!=null?s:n}):o}function ry(t,n){const o=hr(),a=ea(t,e.computed(()=>{var i;return((i=o.value)==null?void 0:i.namespace)||Jn})),s=vg(e.computed(()=>{var i;return(i=o.value)==null?void 0:i.locale})),l=ny(e.computed(()=>{var i;return((i=o.value)==null?void 0:i.zIndex)||dr})),r=e.computed(()=>{var i;return e.unref(n)||((i=o.value)==null?void 0:i.size)||""});return ur(e.computed(()=>e.unref(o)||{})),{ns:a,locale:s,zIndex:l,size:r}}const ur=(t,n,o=!1)=>{var a;const s=!!e.getCurrentInstance(),l=s?hr():void 0,r=(a=n==null?void 0:n.provide)!=null?a:s?e.provide:void 0;if(!r){Xn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const i=e.computed(()=>{const c=e.unref(t);return l!=null&&l.value?iy(l.value,c):c});return r(mr,i),r(lr,e.computed(()=>i.value.locale)),r(rr,e.computed(()=>i.value.namespace)),r(fr,e.computed(()=>i.value.zIndex)),r(ay,{size:e.computed(()=>i.value.size||"")}),r(sy,e.computed(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(o||!Zn.value)&&(Zn.value=i.value),i},iy=(t,n)=>{const o=[...new Set([...tr(t),...tr(n)])],a={};for(const s of o)a[s]=n[s]!==void 0?n[s]:t[s];return a},cy=_n({a11y:{type:Boolean,default:!0},locale:{type:st(Object)},size:oy,button:{type:st(Object)},experimentalFeatures:{type:st(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:st(Object)},zIndex:Number,namespace:{type:String,default:"el"},...ly}),ve={};e.defineComponent({name:"ElConfigProvider",props:cy,setup(t,{slots:n}){e.watch(()=>t.message,a=>{Object.assign(ve,a??{})},{immediate:!0,deep:!0});const o=ur(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 dy=_n({size:{type:st([Number,String])},color:{type:String}}),py=e.defineComponent({name:"ElIcon",inheritAttrs:!1}),fy=e.defineComponent({...py,props:dy,setup(t){const n=t,o=ea("icon"),a=e.computed(()=>{const{size:s,color:l}=n;return!s&&!l?{}:{fontSize:Pg(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 my=ta(fy,[["__file","icon.vue"]]);const _r=sr(my),hy=_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:st([String,Object,Array])},offset:{type:st(Array),default:[0,0]},badgeClass:{type:String}}),uy=e.defineComponent({name:"ElBadge"}),_y=e.defineComponent({...uy,props:hy,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 gy=ta(_y,[["__file","badge.vue"]]);const yy=sr(gy),gr=["success","info","warning","error"],Ue=Xg({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Kt?document.body:void 0}),xy=_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:Hg,default:Ue.icon},id:{type:String,default:Ue.id},message:{type:st([String,Object,Function]),default:Ue.message},onClose:{type:st(Function),default:Ue.onClose},showClose:{type:Boolean,default:Ue.showClose},type:{type:String,values:gr,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}}),ky={destroy:()=>!0},et=e.shallowReactive([]),Ny=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}},by=t=>{const{prev:n}=Ny(t);return n?n.vm.exposed.bottom.value:0},Cy=(t,n)=>et.findIndex(a=>a.id===t)>0?16:n,wy=e.defineComponent({name:"ElMessage"}),Ey=e.defineComponent({...wy,props:xy,emits:ky,setup(t,{expose:n}){const o=t,{Close:a}=Yg,{ns:s,zIndex:l}=ry("message"),{currentZIndex:r,nextZIndex:i}=l,c=e.ref(),p=e.ref(!1),d=e.ref(0);let f;const m=e.computed(()=>o.type?o.type==="error"?"danger":o.type:"info"),_=e.computed(()=>{const h=o.type;return{[s.bm("icon",h)]:h&&ar[h]}}),y=e.computed(()=>o.icon||ar[o.type]||""),u=e.computed(()=>by(o.id)),N=e.computed(()=>Cy(o.id,o.offset)+u.value),k=e.computed(()=>d.value+N.value),E=e.computed(()=>({top:`${N.value}px`,zIndex:r.value}));function b(){o.duration!==0&&({stop:f}=l_(()=>{V()},o.duration))}function S(){f==null||f()}function V(){p.value=!1}function $({code:h}){h===qg.esc&&V()}return e.onMounted(()=>{b(),i(),p.value=!0}),e.watch(()=>o.repeatNum,()=>{S(),b()}),r_(document,"keydown",$),f_(c,()=>{d.value=c.value.getBoundingClientRect().height}),n({visible:p,bottom:k,close:V}),(h,g)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(s).b("fade"),onBeforeLeave:h.onClose,onAfterLeave:C=>h.$emit("destroy"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:h.id,ref_key:"messageRef",ref:c,class:e.normalizeClass([e.unref(s).b(),{[e.unref(s).m(h.type)]:h.type},e.unref(s).is("center",h.center),e.unref(s).is("closable",h.showClose),e.unref(s).is("plain",h.plain),h.customClass]),style:e.normalizeStyle(e.unref(E)),role:"alert",onMouseenter:S,onMouseleave:b},[h.repeatNum>1?(e.openBlock(),e.createBlock(e.unref(yy),{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(_r),{key:1,class:e.normalizeClass([e.unref(s).e("icon"),e.unref(_)])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(y))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.renderSlot(h.$slots,"default",{},()=>[h.dangerouslyUseHTMLString?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),e.createElementVNode("p",{class:e.normalizeClass(e.unref(s).e("content")),innerHTML:h.message},null,10,["innerHTML"])],2112)):(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(s).e("content"))},e.toDisplayString(h.message),3))]),h.showClose?(e.openBlock(),e.createBlock(e.unref(_r),{key:2,class:e.normalizeClass(e.unref(s).e("closeBtn")),onClick:e.withModifiers(V,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(a))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],46,["id"]),[[e.vShow,p.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var Sy=ta(Ey,[["__file","message.vue"]]);let Ty=1;const yr=t=>{const n=!t||mn(t)||e.isVNode(t)||Gn(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);Mg(a)||(Xn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),o.appendTo=a}return er(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),er(ve.showClose)&&!o.showClose&&(o.showClose=ve.showClose),o},Dy=t=>{const n=et.indexOf(t);if(n===-1)return;et.splice(n,1);const{handler:o}=t;o.close()},Vy=({appendTo:t,...n},o)=>{const a=`message_${Ty++}`,s=n.onClose,l=document.createElement("div"),r={...n,id:a,onClose:()=>{s==null||s(),Dy(d)},onDestroy:()=>{e.render(null,l)}},i=e.createVNode(Sy,r,Gn(r.message)||e.isVNode(r.message)?{default:Gn(r.message)?r.message:()=>r.message}:null);i.appContext=o||Zt._context,e.render(i,l),t.appendChild(l.firstElementChild);const c=i.component,d={id:a,vnode:i,vm:c,handler:{close:()=>{c.exposed.visible.value=!1}},props:i.component.props};return d},Zt=(t={},n)=>{if(!Kt)return{close:()=>{}};const o=yr(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=Vy(o,n);return et.push(a),a.handler};gr.forEach(t=>{Zt[t]=(n={},o)=>{const a=yr(n);return Zt({...a,type:t},o)}});function $y(t){for(const n of et)(!t||t===n.props.type)&&n.handler.close()}Zt.closeAll=$y,Zt._context=null;const Se=Gg(Zt,"$message");function By({props:t}){const n=e.ref(null),o=e.ref([]),a=e.ref(1),s=e.ref(!0),l=e.ref(10),r=e.ref(0),i=e.ref(null),c=e.ref(!1),p=e.ref(!1),d=e.computed(()=>p.value||c.value),f=e.ref({lat:"",lng:""}),m=e.computed(()=>{const w=Number(f.value.lat);return w<=90&&w>=-90?w:"内容错误"}),_=e.computed(()=>{const w=Number(f.value.lng);return w<=180&&w>=-180?w:"内容错误"});function y(){m.value&&m.value!=="内容错误"&&_&&_.value!=="内容错误"&&u(f.value)}function u(w){if(w.lng&&w.lat){t.h.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,60]});t.h.markerAddTo(t.map,D),setTimeout(()=>{t.h.removeMarker(t.map,D)},3e3),b(1)}}function N(w,D){return T=>{if(!s.value)return!1;s.value=!1,setTimeout(()=>{w(T),s.value=!0},D)}}function k(){console.log("触发加载"),!c.value&&(p.value=!0,r.value++,e.nextTick(()=>{S()}))}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&&S()})}function S(){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,T=[];for(let B=0;B<D.length;B++){const L=D[B];T.push({...L,id:He.buildUUID(),address:L.address||L.name,title:g(L.name)})}e.nextTick(()=>{p.value=!1,o.value.push(...T)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}async function $(){const w=await Ku({page:r.value-1,size:10,query:n.value});if(w.code===200){const D=w.data.content,T=[];if(D!=null&&D.length){for(let B=0;B<D.length;B++){const L=D[B];T.push({id:L.id,address:L.address||L.pointName,...L,title:g(L.pointName)})}e.nextTick(()=>{p.value=!1,o.value.push(...T),r.value===w.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}async function h(){const w=await em({page:r.value-1,size:10,query:n.value});if(w.code===200){const D=w.data.content,T=[];if(D!=null&&D.length){for(let B=0;B<D.length;B++){const L=D[B];T.push({id:L.id,address:L.address||L.companyName,...L,title:g(L.companyName)})}e.nextTick(()=>{p.value=!1,o.value.push(...T),r.value===w.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}function g(w){const D=[];for(let T=0;T<w.length;T++){const B=w[T],L=n.value.indexOf(B),j={content:w[T]};L===-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:u,throttle:N,load:k,resetFn:b,searchAddressTypeFn:E,placeholderFn:C,inputSearch:f,showSearchLat:m,showSearchLng:_,searchLngLat:y}}const Iy={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"},Ay=["src"],Ly={class:"ml_10 ml-[10px]",style:{width:"calc(100% - 34px)"}},Fy={class:"title fs_14 c_fff over_one_line fw_600 text-[14px] text-hy-text-main truncate font-bold"},Oy={class:"address over_one_line fs_12 c_fff truncate text-[12px] text-hy-text-main"},Ry={class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"},Py={class:"ml_20 ml-[20px]"},My=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",Iy,[e.createElementVNode("img",{src:e.unref(l).orgTypeIcon,class:"w-full h-full"},null,8,Ay)])):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",Ly,[e.createElementVNode("div",Fy,[(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",Oy,e.toDisplayString(e.unref(l).address),1),e.createElementVNode("div",Ry,[e.createElementVNode("span",null,"经度:"+e.toDisplayString(e.unref(l).lng),1),e.createElementVNode("span",Py,"维度:"+e.toDisplayString(e.unref(l).lat),1)])])])}}}),[["__scopeId","data-v-393b9954"]]),Uy=t=>(e.pushScopeId("data-v-5856b649"),t=t(),e.popScopeId(),t),zy={style:{display:"inline-block","flex-direction":"column",width:"300px"},class:"search_lightColor pos_r relative"},Wy={class:"r-f flex"},jy={class:"flex",style:{width:"calc(100% - 42px)"}},Hy={key:1,class:"w-[58%] flex justify-between ml-[4px]"},Yy={class:"flex flex-col leading-[20px] ml-[10px]"},Gy=Uy(()=>e.createElementVNode("span",{class:"text-[14px] font-[600] text-hy-text-main mb-[5px]"},"填写经纬度",-1)),qy={class:"text-[12px] text-hy-text-secondary"},Ky={class:"text-[12px] text-hy-text-secondary"},Xy={key:2,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},Jy={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:_,placeholderFn:y,load:u,throttle:N,searchLngLat:k}=By({props:n});return e.onMounted(()=>{var E;a.value=(E=n.searchTypes[0])==null?void 0:E.value}),(E,b)=>{const S=e.resolveComponent("el-option"),V=e.resolveComponent("el-select"),$=e.resolveComponent("el-input"),h=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",zy,[e.createElementVNode("div",Wy,[e.createElementVNode("div",jy,[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(S,{key:g.value,value:g.value,label:g.label},null,8,["value","label"]))),128))]),_:1},8,["modelValue","onChange"]),e.unref(a)!==5?(e.openBlock(),e.createBlock($,{key:0,modelValue:e.unref(c),"onUpdate:modelValue":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(N)(e.unref(d),1e3))},null,8,["modelValue","placeholder"])):(e.openBlock(),e.createElementBlock("div",Hy,[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(He.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(He.onlyNumber)(e.unref(r),"lat"))},null,8,["modelValue"])]))]),e.createElementVNode("div",{class:"searchBox centerBox cursor-pointer flex items-center justify-center",style:{"flex-shrink":"0",display:"flex"},onClick: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(Ws),{key:0,"infinite-scroll-disabled":"disabled",class:"filterContentList",style:{height:"400px","overflow-y":"auto"},"data-key":"id","data-sources":e.unref(p),"data-component":My,keeps:10,"extra-props":{mapJumpLocationFn:e.unref(_),searchAddressType:e.unref(a)},"estimate-size":88,onTobottom:e.unref(u)},null,8,["data-sources","extra-props","onTobottom"])):e.createCommentVNode("",!0),e.unref(a)===5?(e.openBlock(),e.createElementBlock("div",{key:1,class:"flex items-center pt-[15px] pb-[10px] mt-[10px] rounded-[4px] cursor-pointer transition-all hover:bg-hy-dialog-bg-5 active:opacity-70",onClick:b[8]||(b[8]=(...g)=>e.unref(k)&&e.unref(k)(...g))},[e.createVNode(h,{name:"base-maplocation","class-name":"w-[26px] h-[26px] ml-[10px]"}),e.createElementVNode("div",Yy,[Gy,e.createElementVNode("span",qy,[e.createTextVNode("经度:"),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)==="内容错误"?"text-hy-danger":"")},e.toDisplayString(e.unref(l)||"请输入经度"),3)]),e.createElementVNode("span",Ky,[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",Xy," 加载中... ")):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createElementBlock("p",Jy," 没有更多了 ")):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-5856b649"]]);function Qt(t=He.sessionCache.getCache("mapConfig")){function n(){if(!t){He.logger.warning("use-map","initHyMap","地图配置不能为空");return}const i=bn.MapProviderFactory.createMapProvider(t.mapType);return new bn.HyMap(i,t)}function o(){if(!t){He.logger.warning("use-map","initHyPoi","地图配置不能为空");return}const i=bn.PoiProviderFactory.createMapProvider(t.mapPoiType);return new bn.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 Qy(t){return oe.post({url:"mapRail/deleteBatch",data:t,isFormData:!0})}function vy(t){return oe.post({url:t.id?"mapRail/update":"mapRail/insert",data:t,isJson:!0})}function xr(t){return oe.post({url:"mapRail/select",data:t,isFormData:!0})}function e1(t){const n=t.emit,{mapConfig:o,isShowMap:a,layersUrlList:s,H:l,POI:r}=Qt(),i=e.ref(null),c=e.ref(null),p=e.shallowRef(null),d=e.ref({railName:[{required:!0,message:x("pleaseEnterTheNameOfTheElectronicFence"),trigger:"blur"}]}),f=e.ref({}),m=e.ref(!0),_=e.ref(!1),y=e.ref(100),u=e.ref("fixedPoint"),N=e.ref(null),k=e.ref(!1),E=e.shallowRef(null);e.watch(()=>y.value,M=>{y.value=M.replace(/\D/g,"")});function b(M,z){return U=>{if(!m.value)return!1;m.value=!1,setTimeout(()=>{M(U),m.value=!0},z)}}function S(){let M="";u.value==="fixedPoint"?M=x("mouseClicksOnTheMapAndReleasesToEnd"):u.value==="circle"?M=x("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):M=x("mouseClicksOnTheMapAndRightClicksToEnd"),N.value=M}async function V(){const M=ze.getCache("userInfo");let z=null;M!=null&&M.lng&&(M!=null&&M.lat)&&(z=[M.lat,M.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 R;if((R=f.value.pointList)!=null&&R.length){const Y=f.value.pointList.map(X=>({lat:X.lat,lng:X.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(){$(),u.value!=="fixedPoint"?g():k.value=!0}function g(){const M={templineStyle:{color:"#2DF2FF"},hintlineStyle:{color:"#2DF2FF",dashArray:[5,5]}};l.pm(p.value,u.value,M,C);let z="";u.value==="circle"?z=x("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):u.value==="polygon"&&(z=x("mouseClicksOnTheMapAndRightClicksToEnd")),z&&Se.success(z)}function C(M){E.value=l.polygon(p.value,M,{weight:2,color:"#2DF2FF",opacity:1,fillColor:"#2DF2FF",fillOpacity:.3}),l.fitBounds(p.value,M.map(z=>[z.lat,z.lng])),console.log(E.value),w()}function w(){p.value&&l.removePM(p.value)}function D(M){if(k.value){const z=l.searchByCircle({lat:M.latlng.lat,lng:M.latlng.lng},y.value/2);C(z),k.value=!1}}async function T(M){const z=await xr({id:M});z.code===200&&(f.value={...z.data},_.value=!0,e.nextTick(()=>{V()}))}function B(M){var z;f.value={},y.value=100,k.value=!1,$(),u.value="fixedPoint",S(),c.value&&((z=c.value)==null||z.resetFields()),M?T(M):(_.value=!0,e.nextTick(()=>{V()}))}function L(){console.log(E.value)}function j(){var z;L();let M=[];if(E.value&&(M=l.getShapeLatLngs(E.value)),(M==null?void 0:M.length)===0||!E.value)return Se.error("请完成电子围栏绘制后再进行保存操作"),!1;(z=c.value)==null||z.validate(async U=>{if(U){const R={railName:f.value.railName};R.pointList=M.map(X=>({lng:X.lng,lat:X.lat})),R.id=f.value.id||null,(await vy(R)).code===200&&(Se.success(`${x("operationSuccessful")} !`),n("on-submit"),_.value=!1)}})}function F(){n("on-close"),_.value=!1,l.removeMap(p.value)}return{addElectronicFenceContainerRef:i,formRef:c,H:l,map:p,POI:r,isShowMap:a,rules:d,form:f,valid:m,dialogVisible:_,radius:y,mouseToolName:u,tips:N,onClose:F,show:B,onSubmit:j,tipsFn:S,initMap:V,mapRailSelectFn:T,throttle:b,startDraw:h,removePolygon:$}}const t1=t=>(e.pushScopeId("data-v-b3493890"),t=t(),e.popScopeId(),t),n1={class:"text-hy-text-main"},o1={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]"},a1={class:"dialog_body"},s1={class:""},l1={class:"form-label"},r1={class:"relative flex flex-row h-[50px]"},i1={class:"z-[1]"},c1={class:"form-label"},d1={class:"w-full flex items-center form-item"},p1={class:"form-label"},f1={class:"flex items-center form-item"},m1=t1(()=>e.createElementVNode("span",{class:"text-sm ml-[10px] text-hy-text-secondary flex-shrink"},"M",-1)),h1={class:"flex items-center form-item"},u1={class:"text-xs text-hy-text-secondary flex items-center"},_1={class:"text-hy-main"},g1={class:"text-right mt-[10px]"},y1=be(e.defineComponent({__name:"add-electronic-fence",emits:["on-submit","on-close"],setup(t,{expose:n,emit:o}){const a=o,{addElectronicFenceContainerRef:s,formRef:l,rules:r,form:i,dialogVisible:c,radius:p,mouseToolName:d,tips:f,H:m,map:_,POI:y,isShowMap:u,onClose:N,tipsFn:k,show:E,startDraw:b,removePolygon:S,onSubmit:V}=e1({emit:a});return n({show:E}),($,h)=>{const g=e.resolveComponent("svg-icon"),C=e.resolveComponent("el-input"),w=e.resolveComponent("el-form-item"),D=e.resolveComponent("el-col"),T=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),L=e.resolveComponent("el-button"),j=$t,F=e.resolveComponent("el-icon"),M=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]=R=>e.isRef(c)?c.value=R: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",n1,[e.createElementVNode("div",o1,[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]=(...R)=>e.unref(N)&&e.unref(N)(...R))},[e.createVNode(g,{name:"icon-close",width:"26",height:"26","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",a1,[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(M,{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",s1,e.toDisplayString(e.unref(x)("electronicFenceName")),1)])]),default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(i).railName,"onUpdate:modelValue":h[1]||(h[1]=R=>e.unref(i).railName=R),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",l1,e.toDisplayString(e.unref(x)("electronicFenceRange")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",r1,[e.createElementVNode("div",i1,[e.unref(u)&&e.unref(_)?(e.openBlock(),e.createBlock(na,{key:0,h:e.unref(m),map:e.unref(_),poi:e.unref(y)},null,8,["h","map","poi"])):e.createCommentVNode("",!0)])])]),_:1})]),_:1}),e.createVNode(D,{span:5},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0 pl-[20px]"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",c1,e.toDisplayString(e.unref(x)("drawingMethod")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",d1,[e.createVNode(B,{modelValue:e.unref(d),"onUpdate:modelValue":h[2]||(h[2]=R=>e.isRef(d)?d.value=R:null),placeholder:e.unref(x)("pleaseSelectTheDrawingMethod"),class:"!w-full",onChange:e.unref(k)},{default:e.withCtx(()=>[e.createVNode(T,{label:e.unref(x)("fixedPointRange"),value:"fixedPoint"},null,8,["label"]),e.createVNode(T,{label:e.unref(x)("customCircle"),value:"circle"},null,8,["label"]),e.createVNode(T,{label:e.unref(x)("customPolygon"),value:"polygon"},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])])]),_:1})]),_:1}),e.unref(d)==="fixedPoint"?(e.openBlock(),e.createBlock(D,{key:0,span:3},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",p1,e.toDisplayString(e.unref(x)("rangeDistance")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",f1,[e.createVNode(C,{modelValue:e.unref(p),"onUpdate:modelValue":h[3]||(h[3]=R=>e.isRef(p)?p.value=R:null),maxlength:"6",placeholder:e.unref(x)("unitMeter"),clearable:""},null,8,["modelValue","placeholder"]),m1])]),_: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",h1,[e.createVNode(L,{class:"button_function",onClick:e.unref(b)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("startDrawing")),1)]),_:1},8,["onClick"]),e.createVNode(L,{type:"danger",class:"",onClick:e.unref(S)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("clearDrawing")),1)]),_:1},8,["onClick"])])]),_:1})]),_:1}),e.createVNode(D,{span:24},{default:e.withCtx(()=>[e.createVNode(w,null,{default:e.withCtx(()=>[e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:1,id:"addElectronicFence_container",ref_key:"addElectronicFenceContainerRef",ref:s,class:"z-[0]"},null,512)):(e.openBlock(),e.createBlock(Gt,{key:0,class:"!h-[400px] rounded"})),e.createElementVNode("div",u1,[e.createVNode(F,{class:"text-sm"},{default:e.withCtx(()=>[e.createVNode(j)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("afterClickingToStartDrawing"))+" ",1),e.createElementVNode("span",_1,e.toDisplayString(e.unref(f)),1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"]),e.createElementVNode("div",g1,[e.createVNode(L,{type:"primary",class:"w-[100px]",onClick:e.unref(N)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("close")),1)]),_:1},8,["onClick"]),e.createVNode(L,{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-b3493890"]]);function x1(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 Qy({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 k1={class:"w-full h-full"},N1={class:"flex items-center justify-center"},b1={class:"ml-[6px]"},C1={class:"flex"},w1=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}=x1({emit:a,props:o});return e.onMounted(()=>{r.value={...o.initParams}}),(m,_)=>{const y=e.resolveComponent("svg-icon"),u=e.resolveComponent("el-button"),N=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock("div",k1,[e.createVNode(Yt,{ref_key:"AppTableRef",ref:l,height:"100%","show-footer":!0,"search-arr":[{label:e.unref(x)("electronicFenceName"),prop:"railName"}],"column-list":m.tableColumns,"req-url":"mapRail/page","search-form":e.unref(r)},{tableLeft:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(u,{type:"success",class:"",onClick:_[0]||(_[0]=k=>e.unref(p)())},{default:e.withCtx(()=>[e.createElementVNode("div",N1,[e.createVNode(y,{width:"16",height:"16",name:"base-add-3"}),e.createElementVNode("span",b1,e.toDisplayString(e.unref(x)("addElectronicFence")),1)])]),_:1}),e.renderSlot(m.$slots,"operator-left-box")])]),mapDisplay:e.withCtx(({row:k})=>[e.createElementVNode("div",null,[e.createVNode(N,{class:"switch_custom switch_width_60","model-value":e.unref(c)(k.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)(k.id,e.unref(c)(k.id))},null,8,["model-value","active-text","inactive-text","onClick"])])]),isDefault:e.withCtx(({row:k})=>[e.renderSlot(m.$slots,"isDefault",{row:k})]),operator:e.withCtx(({row:k})=>[e.createElementVNode("div",C1,[e.createVNode(Me,{name:"icon-edit",tips:e.unref(x)("edit"),onClick:E=>e.unref(p)(k.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)(k.id)},null,8,["tips","onClick"])])]),_:3},8,["search-arr","column-list","search-form"]),e.createVNode(y1,{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 E1(t){return oe.post({url:"/mediaFile/location/findAll",data:{mediaFileId:t},isFormData:!0})}function S1(t){return oe.get({url:t,xAmzAcl:!0,isFileUpload:!0,fileType:""})}function kr(t){return oe.post({url:"/mediaFile/getFileScore",data:{id:t},isFormData:!0})}function T1(t){return oe.post({url:"/mediaFile/fileScore",data:t,isJson:!0})}function D1(t){return oe.post({url:"/mediaFile/remark/findAll",data:t,isFormData:!0})}function V1(t){return oe.post({url:"/mediaFile/saveRemark",data:t,isJson:!0})}function Nr(t){return oe.post({url:"/mediaFile/remark/deleteBatch",data:t,isFormData:!0})}function $1(t){return oe.post({url:"/mediaFile/point/findAll",data:t,isFormData:!0})}function B1(t){return oe.post({url:"/mediaFile/savePoint",data:t,isJson:!0})}function I1(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),_=e.ref(!1),y=e.ref(Ke.NO_LOAD),u=e.ref(100),N=e.computed(()=>y.value!==Ke.NO_LOAD&&y.value!==Ke.CAN_NOT_PLAY),k=e.computed(()=>o.value.playList.find(U=>U.id===d.value.id));function E(U,R){return new Promise((Y,X)=>{const P=new XMLHttpRequest;P.open("GET",R),P.responseType="blob",P.onload=function(){const v=P.response;Y({name:U,blob:v})},P.onerror=function(){console.error("could not download file")},P.send()})}function b(){d.value&&d.value.id&&(pe.ElMessage.warning(x("startDownloading")),E(d.value.fileName,d.value.filePath).then(U=>{const R=U.blob,Y=new FileReader;Y.readAsDataURL(R),Y.onload=X=>{const P=URL.createObjectURL(new Blob([R])),v=document.createElement("a");document.body.appendChild(v),v.href=P,v.download=U.name,v.target="_blank",v.click(),v.remove()}}))}function S(U){U===3?r.value=1:r.value=U+1}function V(U){s.value=U;const R=document.querySelector("#audio-el");R&&R.playbackRate&&(R.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&&k.value&&n("play-start",{audioUrl:p.value,playItem:k.value})}),i.value.addEventListener("pause",()=>{z(Ke.PAUSE)}),i.value.addEventListener("volumechange",()=>{u.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),!_.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,R)=>{const Y=h();if(Y!==o.value.playList.length-1){const X=o.value.playList[Y+1];w(X.filePath,X),U({code:200})}else pe.ElMessage.warning(x("currentIsTheLastItem"))})}function C(){const U=h();if(U>0&&U!==o.value.playList.length){const R=o.value.playList[U-1];w(R.filePath,R)}else pe.ElMessage.warning(x("currentIsTheFirstItem"))}function w(U,R){if(R)R.id!==d.value.id&&(p.value="",d.value=R,i.value.src=U,o.value.getAudioContextType?M(R.id):(p.value=U,i.value.play()));else{if(p.value==="")return!1;i.value.play()}}function D(){i.value.play()}function T(){i.value.pause()}function B(){m.value=f.value*(c.value/100),i.value.currentTime=m.value,_.value=!1}function L(){i.value.volume=u.value/100}function j(U,R){return U=Number.parseFloat(`${U}`),R=Number.parseFloat(`${R}`),Number.isNaN(U)||Number.isNaN(R)||R<=0?0:Math.round(U/R*1e4)/100}function F(U){i.value.currentTime=U}async function M(U){const R=await S1(`/mediaFile/redirect?mediaFileId=${U}`);i.value.src=URL.createObjectURL(R),p.value=URL.createObjectURL(R),i.value.play()}function z(U){y.value=U,n("on-audio-state",U)}return{isDrop:_,speedList:a,speed:s,playRuleslist:l,playRules:r,audioEl:i,value:c,audioUrl:p,totalTime:f,curTime:m,audioState:y,volumeValue:u,downloadFn:b,playRulesFn:S,speedFn:V,initPlayer:$,playNext:g,playPrevious:C,playAudio:w,resumePlay:D,pauseAudio:T,getNowWh:B,changeVolume:L,getPercent:j,jumpDuration:F,canPlay:N}}const A1=t=>(e.pushScopeId("data-v-27a5006a"),t=t(),e.popScopeId(),t),L1={class:"w-full flex items-center box-border"},F1=A1(()=>e.createElementVNode("audio",{id:"audio-el"},null,-1)),O1={class:"flex-grow w-0 mx-3 progress-box"},R1={class:"flex justify-between items-center text-xs text-hy-text-secondary mt-1"},P1={class:"flex-shrink-0 flex"},M1={class:"flex items-center justify-center p-[10px_0]"},U1={class:"text-hy-text-secondary text-xs w-full"},z1=["onClick"],W1={class:"flex items-center click-box"},j1={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"},H1={class:"click-box"},Y1={key:1},G1=["onClick"],q1={class:"click-box mx-1"},K1={class:"flex items-center justify-center"},X1={class:"click-box click-box"},br=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:_,curTime:y,audioState:u,volumeValue:N,downloadFn:k,playRulesFn:E,speedFn:b,initPlayer:S,playNext:V,playPrevious:$,playAudio:h,resumePlay:g,pauseAudio:C,getNowWh:w,changeVolume:D,getPercent:T,jumpDuration:B,canPlay:L}=I1({emit:s,props:a});return e.onBeforeUnmount(()=>{d.value=null}),e.onMounted(()=>{E(3),b(1),S()}),n({jumpDuration:B,resumePlay:g,pauseAudio:C,playAudio:h}),(j,F)=>{const M=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-popover"),U=e.resolveComponent("el-tooltip"),R=e.resolveComponent("el-slider");return e.openBlock(),e.createElementBlock("div",L1,[F1,e.createElementVNode("div",null,[e.createElementVNode("span",{onClick:F[0]||(F[0]=(...Y)=>e.unref($)&&e.unref($)(...Y))},[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-previous-btn"})]),e.unref(u)!==e.unref(Ke).PLAYING&&e.unref(L)?(e.openBlock(),e.createElementBlock("span",{key:0,class:"mx-1",onClick:F[1]||(F[1]=Y=>e.unref(h)(e.unref(m)))},[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-play-btn"})])):e.createCommentVNode("",!0),e.unref(u)===e.unref(Ke).PLAYING?(e.openBlock(),e.createElementBlock("span",{key:1,class:"mx-1",onClick:F[2]||(F[2]=(...Y)=>e.unref(C)&&e.unref(C)(...Y))},[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-pause-btn"})])):e.createCommentVNode("",!0),e.createElementVNode("span",{onClick:F[3]||(F[3]=(...Y)=>e.unref(V)&&e.unref(V)(...Y))},[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-next-btn"})])]),e.createElementVNode("div",O1,[e.withDirectives(e.createElementVNode("input",{id:"progress",ref:"progressRef","onUpdate:modelValue":F[4]||(F[4]=Y=>e.isRef(f)?f.value=Y:null),max:"100",style:e.normalizeStyle({background:`linear-gradient(to right, var(--hy-main) ${e.unref(T)(e.unref(f),100)}%, var(--hy-main-alpha-50) ${e.unref(T)(e.unref(f),100)}% `}),type:"range",class:"relative w-full",onMouseup:F[5]||(F[5]=Y=>e.unref(w)()),onMousedown:F[6]||(F[6]=Y=>l.value=!0)},null,36),[[e.vModelText,e.unref(f)]]),e.createElementVNode("div",R1,[e.createElementVNode("span",null,e.toDisplayString(e.unref(at)(e.unref(y)))+'"',1),e.createElementVNode("span",null,e.toDisplayString(e.unref(at)(e.unref(_)))+'"',1)])]),e.createElementVNode("div",P1,[e.createVNode(z,{placement:"top",width:"62px","popper-class":"!p-0",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",W1,[e.createElementVNode("div",j1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(Y,X)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:X},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",M1,[e.createElementVNode("ul",U1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(Y,X)=>(e.openBlock(),e.createElementBlock("li",{key:X,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:P=>e.unref(b)(Y.value)},e.toDisplayString(Y.label),11,z1))),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",H1,[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-down-btn",onClick:e.unref(k)},null,8,["onClick"])])]),_:1},8,["content"])):e.createCommentVNode("",!0),j.playRulesType?(e.openBlock(),e.createElementBlock("span",Y1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(Y,X)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:`${X}playRuleslist`,onClick:P=>e.unref(E)(Y.value)},[e.createVNode(U,{effect:"dark",content:Y.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",q1,[e.createVNode(M,{width:"26",height:"26",name:Y.svgName},null,8,["name"])])]),_:2},1032,["content"])],8,G1)),[[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",X1,[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-volumn"})])]),_:1},8,["content"])])]),default:e.withCtx(()=>[e.createElementVNode("div",K1,[e.createVNode(R,{modelValue:e.unref(N),"onUpdate:modelValue":F[7]||(F[7]=Y=>e.isRef(N)?N.value=Y:null),class:"volume-slider",vertical:"",height:"105px",onInput:F[8]||(F[8]=Y=>e.unref(D)())},null,8,["modelValue"])])]),_:1})])])}}}),[["__scopeId","data-v-27a5006a"]]);function J1(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),_=e.ref(0),y=e.ref(!1),u=e.ref(!1),N=e.ref(100);e.ref(!1);const k=e.computed(()=>f.value!=="NO_LOAD"&&f.value!=="CAN_NOT_PLAY"),E=e.computed(()=>o.value.playList.find(X=>X.id===i.value.id));function b(X){X===3?r.value=1:r.value=X+1}function S(X){s.value=X;const P=document.getElementById("videoPlayer");P&&(P.playbackRate=X)}function V(){return o.value.playList.findIndex(X=>X.id===i.value.id)}function $(){const X=V();if(X!==o.value.playList.length-1){const P=o.value.playList[X+1];g(P.filePath,P)}else pe.ElMessage.warning(x("currentIsTheLastItem"))}function h(){const X=V();if(X>0&&X!==o.value.playList.length){const P=o.value.playList[X-1];g(P.filePath,P)}else pe.ElMessage.warning(x("currentIsTheFirstItem"))}function g(X,P){if(P)P.id!==i.value.id&&(i.value=P,c.value=X,d.value.src=X);else if(c.value==="")return!1;d.value.play(),f.value="PLAYING"}function C(X,P){return new Promise((v,Te)=>{const he=new XMLHttpRequest;he.open("GET",P),he.responseType="blob",he.onload=function(){const ke=he.response;v({name:X,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(X=>{const P=X.blob,v=new FileReader;v.readAsDataURL(P),v.onload=Te=>{const he=URL.createObjectURL(new Blob([P])),ke=document.createElement("a");document.body.appendChild(ke),ke.href=he,ke.download=X.name,ke.target="_blank",ke.click(),ke.remove()}}))}function D(){d.value.volume=N.value/100}function T(){m.value=_.value*(p.value/100),d.value.currentTime=m.value,y.value=!1}function B(X,P){return X=Number.parseFloat(X),P=Number.parseFloat(P),Number.isNaN(X)||Number.isNaN(P)||P<=0?0:Math.round(X/P*1e4)/100}function L(){d.value.play()}function j(){d.value&&d.value.pause(),f.value="PAUSE"}function F(){d.value=document.querySelector("#videoPlayer"),d.value.addEventListener("canplay",()=>{f.value="IS_LOAD",_.value=Math.floor(d.value.duration),n("can-play",_.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/_.value*100,n("on-time-update",m.value))},!1)}function M(){document.addEventListener("fullscreenchange",X=>{document.fullscreenElement?u.value=!0:u.value=!1})}function z(X){d.value.currentTime=X}function U(){u.value?Y():R()}function R(){const X=document.documentElement;X.requestFullscreen&&X.requestFullscreen()}function Y(){const X=document;X.exitFullscreen&&X.exitFullscreen()}return{canPlay:k,speedList:a,speed:s,playRuleslist:l,playRules:r,videoUrl:c,value:p,videoEl:d,videoState:f,curTime:m,totalTime:_,isDrop:y,isFullScreen:u,volumeValue:N,playRulesFn:b,speedFn:S,playNext:$,playPrevious:h,playVideo:g,downloadFn:w,changeVolume:D,getNowWh:T,getPercent:B,resumePlay:L,pauseVideo:j,initVideo:F,initFullScreenEvent:M,jumpDuration:z,clickFullScreen:U}}const Z1=t=>(e.pushScopeId("data-v-d0d3957a"),t=t(),e.popScopeId(),t),Q1={class:"flex-grow h-0 relative"},v1={key:0,class:"absolute right-[10px] top-[4px] z-[2]"},ex={key:0,class:"my-2 click-box"},tx={key:1},nx=["onClick"],ox={class:"click-box"},ax=Z1(()=>e.createElementVNode("video",{id:"videoPlayer",width:"100%",header:"100%"},[e.createElementVNode("source",{type:"video/mp4"})],-1)),sx={class:"progress-box px-2"},lx={class:"my-2 flex items-center justify-between px-2 relative"},rx={class:"text-xs text-hy-text-secondary"},ix={key:0,class:"mx-2 flex items-center justify-center absolute left-1/2 -translate-x-1/2"},cx={class:"flex items-center"},dx={class:"flex items-center justify-center p-[10px_0]"},px={class:"text-hy-text-secondary text-xs w-full"},fx=["onClick"],mx={class:"flex items-center click-box"},hx={class:"border h-[24px] box-border border-hy-border-2 rounded text-xs text-hy-text-secondary px-2 flex items-center justify-center"},ux={class:"flex items-center justify-center"},_x={class:"mx-2"},gx={class:"click-box"},yx={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:_,curTime:y,totalTime:u,isDrop:N,isFullScreen:k,volumeValue:E,playRulesFn:b,speedFn:S,playNext:V,playPrevious:$,playVideo:h,downloadFn:g,changeVolume:C,getNowWh:w,getPercent:D,resumePlay:T,pauseVideo:B,initVideo:L,initFullScreenEvent:j,jumpDuration:F,clickFullScreen:M}=J1({emit:s,props:a});return e.onBeforeUnmount(()=>{m.value=null}),e.onMounted(()=>{b(3),S(1),L(),j()}),n({jumpDuration:F,resumePlay:T,pauseVideo:B,playVideo:h}),(z,U)=>{const R=e.resolveComponent("svg-icon"),Y=e.resolveComponent("el-tooltip"),X=e.resolveComponent("el-popover"),P=e.resolveComponent("el-slider");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([{"fixed top-0 left-0 z-[10]":e.unref(k)},"w-full h-full rounded border border-hy-border-2 flex flex-col bg-hy-page-bg"])},[e.createElementVNode("div",Q1,[z.downloadFilesType||z.playRulesType?(e.openBlock(),e.createElementBlock("div",v1,[z.downloadFilesType?(e.openBlock(),e.createElementBlock("div",ex,[e.createVNode(R,{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",tx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(v,Te)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:`${Te}playRuleslist`,onClick:he=>e.unref(b)(v.value)},[e.createVNode(Y,{class:"item click-box",effect:"dark",content:v.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",ox,[e.createVNode(R,{width:"26",height:"26",name:v.svgName},null,8,["name"])])]),_:2},1032,["content"])],8,nx)),[[e.vShow,e.unref(p)===v.value]])),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),ax]),e.createElementVNode("div",sx,[e.withDirectives(e.createElementVNode("input",{id:"progress",ref:"progressRef","onUpdate:modelValue":U[0]||(U[0]=v=>e.isRef(f)?f.value=v: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]=v=>e.unref(w)()),onMousedown:U[2]||(U[2]=v=>N.value=!0)},null,36),[[e.vModelText,e.unref(f)]])]),e.createElementVNode("div",lx,[e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",rx,[e.createElementVNode("span",null,e.toDisplayString(e.unref(at)(e.unref(y)))+'"',1),e.createTextVNode("/ "),e.createElementVNode("span",null,e.toDisplayString(e.unref(at)(e.unref(u)))+'"',1)],512),[[e.vShow,e.unref(u)!==1/0]])]),e.unref(l)?(e.openBlock(),e.createElementBlock("div",ix,[e.createElementVNode("span",{onClick:U[3]||(U[3]=(...v)=>e.unref($)&&e.unref($)(...v))},[e.createVNode(R,{class:"click-box",width:"26",height:"26",name:"media-center-audio-previous-btn"})]),e.unref(_)!=="PLAYING"&&e.unref(l)?(e.openBlock(),e.createElementBlock("span",{key:0,class:"mx-1",onClick:U[4]||(U[4]=v=>e.unref(h)(e.unref(d)))},[e.createVNode(R,{class:"click-box",width:"26",height:"26",name:"media-center-audio-play-btn"})])):e.createCommentVNode("",!0),e.unref(_)==="PLAYING"?(e.openBlock(),e.createElementBlock("span",{key:1,class:"mx-1",onClick:U[5]||(U[5]=(...v)=>e.unref(B)&&e.unref(B)(...v))},[e.createVNode(R,{class:"click-box",width:"26",height:"26",name:"media-center-audio-pause-btn"})])):e.createCommentVNode("",!0),e.createElementVNode("span",{onClick:U[6]||(U[6]=(...v)=>e.unref(V)&&e.unref(V)(...v))},[e.createVNode(R,{class:"click-box",width:"26",height:"26",name:"media-center-audio-next-btn"})])])):e.createCommentVNode("",!0),e.createElementVNode("div",cx,[e.createVNode(X,{placement:"top",width:"62px","popper-class":"!p-0",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",mx,[e.createElementVNode("div",hx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(v,Te)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:Te},e.toDisplayString(v.value===1?e.unref(x)("multiples"):v.label),1)),[[e.vShow,v.value===e.unref(i)]])),128))])])]),default:e.withCtx(()=>[e.createElementVNode("div",dx,[e.createElementVNode("ul",px,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(v,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":v.value===e.unref(i)}]),onClick:he=>e.unref(S)(v.value)},e.toDisplayString(v.label),11,fx))),128))])])]),_:1}),e.createVNode(X,{placement:"top",trigger:"click",width:"40px"},{reference:e.withCtx(()=>[e.createElementVNode("div",_x,[e.createVNode(Y,{effect:"dark",content:e.unref(x)("adjustPlaybackVolume"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",gx,[e.createVNode(R,{width:"24",height:"24",name:"media-center-audio-volumn"})])]),_:1},8,["content"])])]),default:e.withCtx(()=>[e.createElementVNode("div",ux,[e.createVNode(P,{modelValue:e.unref(E),"onUpdate:modelValue":U[7]||(U[7]=v=>e.isRef(E)?E.value=v:null),class:"volume-slider",vertical:"",height:"105px",onInput:U[8]||(U[8]=v=>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",yx,[e.createVNode(R,{width:"18",height:"18",class:"click-box",name:e.unref(k)?"media-center-audio-reduce":"media-center-audio-enlarge",onClick:e.unref(M)},null,8,["name","onClick"])])]),_:1},8,["content"])])])],2)}}}),[["__scopeId","data-v-d0d3957a"]]),xx={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,_=l.offsetHeight,y=document.body.clientWidth,u=document.body.clientHeight,N=l.offsetLeft,k=y-l.offsetLeft-m,E=l.offsetTop,b=u-l.offsetTop-_;let S=r(l,"left"),V=r(l,"top"),$=null,h=null,g=null,C=null;S.includes("%")?(S=+document.body.clientWidth*(+S.replace(/%/g,"")/100),V=+document.body.clientHeight*(+V.replace(/%/g,"")/100)):(S=+S.replace(/\px/g,""),V=+V.replace(/\px/g,""));const w=function(B){let L=B.clientX-d,j=B.clientY-f;-L>N?(L=-N,$="left"):L>k?(L=k,$="right"):$=null,-j>E?(j=-E,g="top"):j>b?(j=b,g="bottom"):g=null,h=L+S,C=j+V,l.style.cssText+=`;left:${h}px;top:${C}px;`},D=function(B){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 T=He.sessionCache.getCache("plus-draggable")||{};Number.parseInt(t.style.zIndex)!==Number.parseInt(T.index)&&(T.index+=1,t.style.zIndex=T.index,He.sessionCache.setCache("plus-draggable",T))};s.onmousedown=i,s.touchstart=i},mounted:t=>{const n=He.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,He.sessionCache.setCache("plus-draggable",n)},beforeUnmount:()=>{const t=He.sessionCache.getCache("plus-draggable")||{};t.num=t.num-1,t.num===0&&(t.index=1e3),He.sessionCache.setCache("plus-draggable",t)}},kx={class:"relative w-full h-full"},Nx=e.createElementVNode("div",{class:"w-full h-full relative z-[1]"},[e.createElementVNode("div",{id:"amap-test",class:"w-full h-full"})],-1),Cr=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}=Qt(),c=e.ref({}),p=e.reactive(He.sessionCache.getCache("userInfo")),d=e.reactive(He.sessionCache.getCache("colorObject")),f=e.ref([]);e.onMounted(async()=>{l&&e.nextTick(()=>{m()})});async function m(){let u=[0,0];p.lng&&p.lat&&(u=[p.lat,p.lng]),o.value=await i.map("amap-test",{maxZoom:s.maxZoom||18,minZoom:s.minZoom||13,zoom:s.zoom||13,center:u,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:r,layerType:s.satelliteMap}),o.value.on("complete",N=>_())}function _(){if(!l||f.value.length===0)return;const u=f.value.map(N=>[N.lat,N.lng]);a.value=i.trackPlayer(o.value,u,{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,u)}async function y(u){if(c.value=u,c.value){const N=await E1(c.value.id);if(N.code===200){const k=N.data||[];k&&k.length!==0?f.value=k:c.value.lng&&c.value.lat?f.value=[{lng:c.value.lng,lat:c.value.lat}]:f.value=[],e.nextTick(()=>{_()})}}}return n({setPlayItem:y}),(u,N)=>(e.openBlock(),e.createElementBlock("div",kx,[e.withDirectives(e.createVNode(Gt,{ref:"mapNoPermissions",class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(l)]]),Nx]))}});function bx(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 T1(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 Cx={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"},wx={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},Ex={class:"absolute right-[10px]"},Sx={class:"dialog_body"},Tx={class:"text-center m-[20px_0_40px_0]"},Dx={class:"flex items-center justify-center mb-[10px] text-sm"},Vx={class:"text-hy-text-main mr-[6px]"},$x={class:"text-hy-text-secondary text-xs"},Bx={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(ze.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}=bx({emit:a});return n({show:c}),e.onMounted(()=>{}),(f,m)=>{const _=e.resolveComponent("svg-icon"),y=e.resolveComponent("el-rate"),u=e.resolveComponent("el-button"),N=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(N,{"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",Cx,[e.createElementVNode("div",wx,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("confirmScore")),1),e.createElementVNode("div",Ex,[e.createVNode(_,{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",Sx,[e.createElementVNode("div",Tx,[e.createElementVNode("div",Dx,[e.createElementVNode("span",Vx,e.toDisplayString(e.unref(x)("confirmAs")),1),e.createVNode(y,{modelValue:e.unref(r),"onUpdate:modelValue":m[0]||(m[0]=k=>e.isRef(r)?r.value=k:null),"void-color":s.main,colors:l.value},null,8,["modelValue","void-color","colors"])]),e.createElementVNode("span",$x,e.toDisplayString(e.unref(x)("noSecondaryModificationAfterScoring")),1)]),e.createElementVNode("div",Bx,[e.createVNode(u,{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(u,{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 Ix(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(ze.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 $1({mediaFileId:o.value.mediaFileId});b.code===200&&(l.value=b.data,l.value.sort((S,V)=>S.time-V.time))}}function _(){var b;(b=a.value)==null||b.validate(async S=>{if(S){if(r.value.content.trim()==="")return pe.ElMessage.error(x("pleaseEnterTheDotContent")),!1;(await B1({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 u(){r.value={},n("on-edit"),c.value=!0}function N(b){r.value=JSON.parse(JSON.stringify(b)),c.value=!0,n("on-edit")}function k(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 Nr({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:_,playPoint:y,addPoint:u,editPoint:N,showDeleteDialog:k,deletePoint:E,userInfo:d}}const sa=t=>(e.pushScopeId("data-v-ae4b4f28"),t=t(),e.popScopeId(),t),Ax={class:"w-full h-full"},Lx={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},Fx={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},Ox={class:"text-hy-text-main font-bold text-sm"},Rx={class:"flex items-center justify-center"},Px={class:"ml-[6px]"},Mx={class:"flex-grow h-0"},Ux={class:"h-full flex flex-col"},zx={class:"p-3 pb-0"},Wx={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col text-xs"},jx={class:"flex-grow h-0"},Hx={class:"flex items-center justify-between"},Yx={class:"text-hy-text-secondary mr-1"},Gx=sa(()=>e.createElementVNode("span",null,"/",-1)),qx={key:0,class:"px-3 py-1 text-hy-text-main text-xs flex-grow h-0 overflow-auto"},Kx={class:"flex items-center justify-between"},Xx={class:"flex-grow w-0 mr-1 flex items-center"},Jx={class:"ml-2 flex-grow w-0"},Zx={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},Qx={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},vx={key:0,class:"flex-shrink-0 flex"},ek={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},tk={class:"flex-grow h-0"},nk={class:"flex items-center justify-between"},ok={class:"text-hy-text-secondary mr-1"},ak=sa(()=>e.createElementVNode("span",null,"/",-1)),sk={class:"px-2 mt-3 mb-1 text-xs"},lk={class:"flex items-center justify-between"},rk={class:"text-hy-text-secondary mr-1"},ik=sa(()=>e.createElementVNode("span",null,"/",-1)),ck={class:"flex items-center mt-1"},dk={class:"text-hy-text-secondary mr-1"},pk={class:"flex-grow w-0 ml-1"},fk={key:1,class:"w-full flex-grow h-0 flex items-center justify-center rounded"},mk={class:"text-center text-xs text-hy-text-secondary"},hk={class:"mt-3"},wr=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:_,playPoint:y,addPoint:u,editPoint:N,showDeleteDialog:k,deletePoint:E,userInfo:b}=Ix({emit:a,props:o});return e.watch(()=>o.mediaFileId,()=>{m()}),e.onMounted(()=>{l.value=b.id}),(S,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",Ax,[e.createElementVNode("div",Lx,[e.createElementVNode("div",Fx,[e.createElementVNode("div",Ox,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(u)())},{default:e.withCtx(()=>[e.createElementVNode("div",Rx,[e.createVNode($,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),e.createElementVNode("span",Px,e.toDisplayString(e.unref(x)("addDot-0")),1)])]),_:1},512),[[e.vShow,S.mediaFileId]])])]),e.createElementVNode("div",Mx,[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",Ux,[e.withDirectives(e.createElementVNode("div",zx,[e.createElementVNode("div",Wx,[e.createElementVNode("div",jx,[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",Hx,[e.createElementVNode("div",null,[e.createElementVNode("span",Yx,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(at)(Number(e.unref(i).time||o.mediaFileCurTime)))+" ",1),Gx,e.createTextVNode(" "+e.toDisplayString(e.unref(at)(Number(S.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(_)},{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",qx,[(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",Kx,[e.createElementVNode("div",Xx,[e.createVNode(xt,{url:D.remarkUserHeadImg},null,8,["url"]),e.createElementVNode("div",Jx,[e.createElementVNode("p",Zx,e.toDisplayString(D.remarkUserName),1),e.createElementVNode("p",Qx,e.toDisplayString(D.remarkUserSerialNum),1)])]),D.remarkUserId===e.unref(l)&&e.unref(i).id!==D.id?(e.openBlock(),e.createElementBlock("div",vx,[e.createVNode(Me,{"class-nmae":"HyRoundButtonV2",name:"media-center-2-audio-play-2",tips:e.unref(x)("play"),onClick:T=>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:T=>e.unref(N)(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:T=>e.unref(k)(D.id)},null,8,["tips","onClick"])])):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",ek,[e.createElementVNode("div",tk,[e.createVNode(C,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(i).content,"onUpdate:modelValue":V[2]||(V[2]=T=>e.unref(i).content=T),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",nk,[e.createElementVNode("div",null,[e.createElementVNode("span",ok,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(at)(Number(e.unref(i).time||o.mediaFileCurTime)))+" ",1),ak,e.createTextVNode(" "+e.toDisplayString(e.unref(at)(Number(S.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(_)},{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",sk,[e.createElementVNode("div",lk,[e.createElementVNode("div",null,[e.createElementVNode("span",rk,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(at)(Number(D.time)))+" ",1),ik,e.createTextVNode(" "+e.toDisplayString(e.unref(at)(Number(S.mediaFileTotalTime))),1)]),e.createElementVNode("div",null,[e.createElementVNode("p",null,e.toDisplayString(D.updateDtm||D.createDtm),1)])]),e.createElementVNode("div",ck,[e.createElementVNode("span",dk,e.toDisplayString(e.unref(x)("dotName")),1),e.createElementVNode("div",pk,e.toDisplayString(D.content),1)])],512),[[e.vShow,!(e.unref(i).id===D.id&&e.unref(p))]])]))),128))])):(e.openBlock(),e.createElementBlock("div",fk,[e.createElementVNode("div",mk,[e.createVNode($,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),e.createElementVNode("div",hk,e.toDisplayString(e.unref(x)("noData")),1)])]))])]),_:1},8,["model","rules"])])])])}}}),[["__scopeId","data-v-ae4b4f28"]]);function uk(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(ze.getCache("userInfo"));function f(){l.value=!1,n("on-close"),r.value={content:""}}async function m(){if(o.value.mediaFileId){const b=await D1({mediaFileId:o.value.mediaFileId});b.code===200&&(c.value=b.data,n("on-getData",c.value))}}function _(){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 V1(r.value)).code===200&&(m(),f())}})}function u(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")},()=>{k()})}function N(){p.value=""}async function k(){(await Nr({ids:p.value})).code===200&&(m(),N(),n("on-delete"))}function E(b){var S;(S=a.value)==null||S.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:_,onSubmit:y,showDeleteDialog:u,onCloseDeleteMark:N,deleteMark:k,editMark:E,userInfo:d}}const _k={class:"w-full h-full"},gk={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},yk={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},xk={class:"text-hy-text-main font-bold text-sm"},kk={class:"flex items-center justify-center"},Nk={class:"ml-[6px]"},bk={class:"flex-grow h-0"},Ck={class:"h-full flex flex-col"},wk={class:"p-3 pb-0"},Ek={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col"},Sk={class:"flex-grow h-0"},Tk={class:"h-[40px] flex items-end justify-end"},Dk={key:0,class:"px-3 py-1 text-hy-text-main text-xs flex-grow h-0 overflow-auto"},Vk={class:"flex items-center justify-between"},$k={class:"flex-grow w-0 mr-1 flex items-center"},Bk={class:"ml-2 flex-grow w-0"},Ik={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},Ak={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},Lk={key:0,class:"flex-shrink-0 flex items-center"},Fk={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},Ok={class:"flex-grow h-0"},Rk={class:"h-[40px] flex items-end justify-end"},Pk={key:1,class:"w-full flex-grow h-0 flex items-center justify-center rounded"},Mk={class:"text-center text-xs text-hy-text-secondary"},Uk={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:_,showDeleteDialog:y,onCloseDeleteMark:u,deleteMark:N,editMark:k,userInfo:E}=uk({emit:a,props:o});return e.watch(()=>o.mediaFileId,()=>{f()}),e.onMounted(()=>{l.value=E.id}),(b,S)=>{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",_k,[e.createElementVNode("div",gk,[e.createElementVNode("div",yk,[e.createElementVNode("div",xk,e.toDisplayString(e.unref(x)("reminderList")),1),e.createElementVNode("div",null,[e.withDirectives(e.createVNode($,{type:"success",class:"",onClick:S[0]||(S[0]=w=>e.unref(m)())},{default:e.withCtx(()=>[e.createElementVNode("div",kk,[e.createVNode(V,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),e.createElementVNode("span",Nk,e.toDisplayString(e.unref(x)("addRemarks-0")),1)])]),_:1},512),[[e.vShow,b.mediaFileId]])])]),e.createElementVNode("div",bk,[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",Ck,[e.withDirectives(e.createElementVNode("div",wk,[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":S[1]||(S[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",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(_)},{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",Dk,[(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",Vk,[e.createElementVNode("div",$k,[e.createVNode(xt,{url:w.remarkUserHeadImg},null,8,["url"]),e.createElementVNode("div",Bk,[e.createElementVNode("p",Ik,e.toDisplayString(w.remarkUserName),1),e.createElementVNode("p",Ak,e.toDisplayString(w.remarkUserSerialNum),1)])]),w.remarkUserId===e.unref(l)&&e.unref(i).id!==w.id?(e.openBlock(),e.createElementBlock("div",Lk,[e.createVNode(Me,{class:"!mx-0","class-nmae":"HyRoundButtonV2",name:"icon-edit",tips:e.unref(x)("edit"),onClick:D=>e.unref(k)(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",Fk,[e.createElementVNode("div",Ok,[e.createVNode(g,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(i).content,"onUpdate:modelValue":S[2]||(S[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",Rk,[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(_)},{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",Pk,[e.createElementVNode("div",Mk,[e.createVNode(V,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),e.createElementVNode("div",Uk,e.toDisplayString(e.unref(x)("noData")),1)])]))])]),_:1},8,["model","rules"])])])])}}});function Er(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(ze.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 _(){n("closeDrawer")}function y(){}function u(g){N(g.playItem)}async function N(g){const C=g.id;if(i.value.id!==C){i.value={...g},l.value=!0;const w=await kr(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 k(g){c.value=g}function E(g){p.value=g}function b(){if(t.params.getPlayerRef)return t.params.getPlayerRef()}function S(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:_,playEnd:y,onPlayStart:u,playStart:N,canPlay:k,onTimeUpdate:E,playPoint:S,onEditMark:V,onEditorClose:$,setAudioState:h}}const ra=t=>(e.pushScopeId("data-v-e67170d8"),t=t(),e.popScopeId(),t),zk={class:"h-full text-hy-text-main flex flex-col"},Wk={class:"h-[60px] flex justify-between items-center px-5 hy-dialog_header"},jk={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},Hk={class:"text-hy-danger"},Yk={class:"flex-grow h-0 overflow-y-auto"},Gk={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},qk={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},Kk={class:"audio-play-icon-box flex"},Xk={class:"relative"},Jk={class:"point_area"},Zk={class:"point point_dot relative"},Qk={class:"w-full h-full rounded-full bg-hy-page-bg-2 flex items-center justify-center text-hy-text-main"},vk={class:"duration-1000"},eN=[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))],tN={key:0,class:"w-full file-info"},nN={class:"info-item"},oN={class:"info-label"},aN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},sN={class:"info-item"},lN={class:"info-label"},rN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},iN={key:0,class:"flex items-center"},cN={key:1,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={key:0},gN={key:1},yN={key:2,class:"text-hy-danger"},xN={key:3,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"},wN={class:"info-label"},EN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},SN={class:"info-item"},TN={class:"info-label"},DN={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},VN={key:1,class:"text-hy-text-secondary"},$N={class:"info-item"},BN={class:"info-label"},IN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},AN={class:"info-item flex items-center text-xs"},LN={class:"info-label"},FN={class:"flex items-center rateBox"},ON={key:0,class:"text-hy-text-secondary"},RN={key:1,class:"text-hy-text-main"},PN={class:"info-item"},MN={class:"info-label"},UN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},zN={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},WN={class:"mb-1"},jN={class:"w-[60%] flex"},HN={class:"flex-grow w-0 ml-2"},YN={class:"flex-grow w-0 ml-2"},GN=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:_,audioCurTime:y,fileScoreShow:u,closeDrawer:N,playEnd:k,onPlayStart:E,playStart:b,canPlay:S,onTimeUpdate:V,playPoint:$,onEditMark:h,onEditorClose:g,setAudioState:C}=Er({emit:a,params:{getPlayerRef:()=>s.value,onEditMark:()=>{s.value.pauseAudio()}}});return e.onBeforeUnmount(()=>{N()}),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 T=e.resolveComponent("svg-icon"),B=e.resolveComponent("el-col"),L=e.resolveComponent("el-rate"),j=e.resolveComponent("el-row"),F=Cr;return e.openBlock(),e.createElementBlock("div",zk,[e.createVNode(aa,{ref_key:"fileScoreRef",ref:l,onOnClose:D[0]||(D[0]=M=>f.value=null)},null,512),e.createElementVNode("div",Wk,[e.createElementVNode("div",jk,[e.unref(m).mark?(e.openBlock(),e.createBlock(T,{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",Hk,[e.createVNode(T,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])]),e.createElementVNode("div",Yk,[e.createElementVNode("div",Gk,[e.createElementVNode("div",qk,[e.createElementVNode("div",Kk,[e.createElementVNode("div",Xk,[e.createElementVNode("div",Jk,[e.createElementVNode("div",Zk,[e.createElementVNode("div",Qk,[e.createVNode(T,{width:"60%",height:"60%",name:"menu-micphone--2-select"})])]),e.withDirectives(e.createElementVNode("div",vk,eN,512),[[e.vShow,e.unref(p)===e.unref(Ke).PLAYING]])])])]),e.unref(m)&&e.unref(m).id?(e.openBlock(),e.createElementBlock("div",tN,[e.createVNode(j,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:e.withCtx(()=>[e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",nN,[e.createElementVNode("span",oN,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",aN,e.toDisplayString(e.unref(m).uploadDateStr),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",sN,[e.createElementVNode("span",lN,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",rN,[e.unref(m).mark?(e.openBlock(),e.createElementBlock("span",iN,[e.createTextVNode(e.toDisplayString(e.unref(x)("star"))+" ",1),e.createVNode(T,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-[4px] -top-[2px]"})])):(e.openBlock(),e.createElementBlock("span",cN,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",dN,[e.createElementVNode("span",pN,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",fN,e.toDisplayString(e.unref(m).devUserName),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",mN,[e.createElementVNode("span",hN,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",uN,[e.unref(m).type===1?(e.openBlock(),e.createElementBlock("span",_N,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(m).type===2?(e.openBlock(),e.createElementBlock("span",gN,e.toDisplayString(e.unref(x)("task")),1)):e.unref(m).type===3?(e.openBlock(),e.createElementBlock("span",yN,"SOS")):(e.openBlock(),e.createElementBlock("span",xN,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",kN,[e.createElementVNode("span",NN,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",bN,e.toDisplayString(e.unref(m).deviceId),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",CN,[e.createElementVNode("span",wN,e.toDisplayString(e.unref(x)("audioDuration")),1),e.createElementVNode("span",EN,e.toDisplayString(e.unref(_))+"s ",1)])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",SN,[e.createElementVNode("span",TN,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(m).expiredDtm?(e.openBlock(),e.createElementBlock("span",DN,e.toDisplayString(e.unref(m).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",VN,"-"))])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",$N,[e.createElementVNode("span",BN,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",IN,e.toDisplayString(e.unref(Ho)(e.unref(m).fileSize)),1)])]),_:1}),e.withDirectives(e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",AN,[e.createElementVNode("span",LN,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",FN,[e.createVNode(L,{modelValue:e.unref(f),"onUpdate:modelValue":D[1]||(D[1]=M=>e.isRef(f)?f.value=M: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(u)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),e.unref(m).fileScore?(e.openBlock(),e.createElementBlock("span",ON,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",RN,e.toDisplayString(e.unref(x)("unrated")),1))])])]),_:1},512),[[e.vShow,!e.unref(d)]]),e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",PN,[e.createElementVNode("span",MN,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",UN,e.toDisplayString(e.unref(m).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",zN,[e.createVNode(F,{ref_key:"mapFileTrackRef",ref:r},null,512)]),e.createElementVNode("div",WN,[e.createVNode(br,{ref_key:"audioPlayerRef",ref:s,"play-list":w.playList,onOnTimeUpdate:e.unref(V),onCanPlay:e.unref(S),onPlayEnd:e.unref(k),onPlayStart:e.unref(E),onOnAudioState:e.unref(C)},null,8,["play-list","onOnTimeUpdate","onCanPlay","onPlayEnd","onPlayStart","onOnAudioState"])])]),e.createElementVNode("div",jN,[e.createElementVNode("div",HN,[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",YN,[e.createVNode(wr,{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(_),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 qN(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?S(o.value.playList[V-1]):pe.ElMessage.warning(x("currentIsTheFirstItem"))}function _(){const V=o.value.playList.findIndex($=>$.id===d.value.id);V!==o.value.playList.length-1?S(o.value.playList[V+1]):pe.ElMessage.warning(x("currentIsTheLastItem"))}function y(){pe.ElMessage.success(x("detectionIsCorrect"))}function u(){a.value.show(d.value.id,r.value).then(V=>{d.value.fileScore=V,r.value=V})}function N(V){i.value=!0,c.value=[],s.value.onShowViewer(V)}function k(){i.value=!1}function E(){n("closeDrawer")}function b(V){console.log("error",V)}async function S(V){const $=V.id;d.value={...V},l.value=!0;const h=await kr($);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:_,detectingHashValues:y,fileScoreShow:u,onShowViewer:N,imageviewerClose:k,closeDrawer:E,error:b,playStart:S}}const KN={class:"h-full pic-detail-box flex flex-col"},XN={class:"detail-box flex-shrink-0 hy-dialog_header"},JN={class:"box-header flex flex-row m-0"},ZN={class:"flex flex-row left-header-box"},QN={class:"group-hy-info flex items-center text-base font-bold w-full"},vN={key:1,class:"ml-1 flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap"},e0={class:"flex flex-row right-header-box flex-shrink text-hy-danger"},t0={class:"flex-grow h-0 overflow-y-auto"},n0={class:"content flex flex-row h-full min-h-[700px]"},o0={class:"left-content-box relative"},a0=["src"],s0={class:"flex items-center justify-between h-[60px] box-hy-border-2"},l0={class:"text-xs"},r0={class:"text-xs"},i0={class:"flex items-center"},c0={class:"text-xs text-hy-text-secondary mr-2 flex items-center"},d0={class:"flex items-center justify-center"},p0={class:"ml-1 text-xs"},f0={key:0,class:"w-full file-info mb-[10px]"},m0={class:"info-item"},h0={class:"info-label"},u0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},_0={class:"info-item"},g0={class:"info-label"},y0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},x0={class:"info-item"},k0={class:"info-label"},N0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},b0={class:"info-item"},C0={class:"info-label"},w0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},E0={key:0},S0={key:1},T0={key:2,class:"text-hy-danger"},D0={key:3,class:"text-hy-text-secondary"},V0={class:"info-item"},$0={class:"info-label"},B0={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},I0={key:1,class:"text-hy-text-secondary"},A0={class:"info-item"},L0={class:"info-label"},F0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},O0={key:0,class:"flex items-center"},R0={key:1,class:"text-hy-text-secondary"},P0={class:"info-item"},M0={class:"info-label"},U0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},z0={class:"info-item flex items-center text-xs"},W0={class:"info-label"},j0={class:"flex items-center rateBox"},H0={key:0,class:"text-hy-text-secondary"},Y0={key:1,class:"text-hy-text-main"},G0={class:"info-item"},q0={class:"info-label"},K0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},X0={key:0,class:"w-[30%] ml-2 flex-shrink-0 relative"},J0=be(e.defineComponent({__name:"image-details",props:{item:{},playList:{default:()=>[]}},emits:["closeDrawer"],setup(t,{emit:n}){const o=t,a=n,s=e.reactive(ze.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:_,fileScoreShow:y,onShowViewer:u,closeDrawer:N,error:k,playStart:E}=qN({emit:a,props:o});return e.onMounted(()=>{E(o.item)}),(b,S)=>{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",KN,[e.createVNode(aa,{ref_key:"fileScoreRef",ref:i,onOnClose:S[0]||(S[0]=D=>p.value=null)},null,512),e.createElementVNode("div",XN,[e.createElementVNode("div",JN,[e.createElementVNode("div",ZN,[e.createElementVNode("div",QN,[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",vN,e.toDisplayString(e.unref(d).fileName),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",e0,[e.createVNode(V,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])])]),e.createElementVNode("div",t0,[e.createElementVNode("div",n0,[e.createElementVNode("div",o0,[e.createElementVNode("div",{class:"pic-img relative flex items-center justify-center",onClick:S[1]||(S[1]=D=>e.unref(u)(e.unref(d).filePath))},[e.createElementVNode("img",{src:e.unref(d).filePath,class:"h-full"},null,8,a0)]),e.createElementVNode("div",s0,[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",l0,e.toDisplayString(e.unref(x)("previous")),1)]),_:1},8,["onClick"]),e.createVNode($,{type:"primary",class:"",onClick:e.unref(_)},{default:e.withCtx(()=>[e.createElementVNode("span",r0,e.toDisplayString(e.unref(x)("next")),1)]),_:1},8,["onClick"])],512),[[e.vShow,o.playList.length>1]])]),e.createElementVNode("div",i0,[e.createElementVNode("p",c0,[e.createVNode(h,{class:"text-sm mr-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(Gd))]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("clickOnTheImageToEnlargeAndView")),1)]),e.createVNode($,{class:"button_function",onClick:S[2]||(S[2]=D=>e.unref(f)(e.unref(d).id))},{default:e.withCtx(()=>[e.createElementVNode("div",d0,[e.createVNode(V,{class:"w-[12px] h-[12px]",name:"media-download"}),e.createElementVNode("span",p0,e.toDisplayString(e.unref(x)("download-0")),1)])]),_:1})])]),e.unref(d)&&e.unref(d).id?(e.openBlock(),e.createElementBlock("div",f0,[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",m0,[e.createElementVNode("span",h0,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",u0,e.toDisplayString(e.unref(d).uploadDateStr),1)])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",_0,[e.createElementVNode("span",g0,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",y0,e.toDisplayString(e.unref(Ho)(e.unref(d).fileSize)),1)])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",x0,[e.createElementVNode("span",k0,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",N0,e.toDisplayString(e.unref(d).devUserName),1)])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",b0,[e.createElementVNode("span",C0,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",w0,[e.unref(d).type===1?(e.openBlock(),e.createElementBlock("span",E0,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(d).type===2?(e.openBlock(),e.createElementBlock("span",S0,e.toDisplayString(e.unref(x)("task")),1)):e.unref(d).type===3?(e.openBlock(),e.createElementBlock("span",T0,"SOS")):(e.openBlock(),e.createElementBlock("span",D0,"-"))])])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",V0,[e.createElementVNode("span",$0,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(d).expiredDtm?(e.openBlock(),e.createElementBlock("span",B0,e.toDisplayString(e.unref(d).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",I0,"-"))])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",A0,[e.createElementVNode("span",L0,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",F0,[e.unref(d).mark?(e.openBlock(),e.createElementBlock("span",O0,[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",R0,"-"))])])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",P0,[e.createElementVNode("span",M0,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",U0,e.toDisplayString(e.unref(d).deviceId),1)])]),_:1}),e.withDirectives(e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",z0,[e.createElementVNode("span",W0,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",j0,[e.createVNode(C,{modelValue:e.unref(p),"onUpdate:modelValue":S[3]||(S[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",H0,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",Y0,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",G0,[e.createElementVNode("span",q0,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",K0,e.toDisplayString(e.unref(d).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0)]),e.unref(d).id?(e.openBlock(),e.createElementBlock("div",X0,[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"},Q0={class:"h-[60px] flex justify-between items-center px-5 hy-dialog_header"},v0={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},eb={class:"text-hy-danger"},tb={class:"flex-grow h-0 overflow-y-auto"},nb={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},ob={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},ab={class:"h-[240px] video-player-box mt-[20px] flex"},sb={key:0,class:"w-full file-info m-[10px_0]"},lb={class:"info-item"},rb={class:"info-label"},ib={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},cb={class:"info-item"},db={class:"info-label"},pb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},fb={key:0,class:"flex items-center"},mb={key:1,class:"text-hy-text-secondary"},hb={class:"info-item"},ub={class:"info-label"},_b={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},gb={class:"info-item"},yb={class:"info-label"},xb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},kb={class:"info-item"},Nb={class:"info-label"},bb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Cb={class:"info-item"},wb={class:"info-label"},Eb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Sb={key:0},Tb={key:1},Db={key:2,class:"text-hy-danger"},Vb={key:3,class:"text-hy-text-secondary"},$b={class:"info-item"},Bb={class:"info-label"},Ib={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Ab={key:1,class:"text-hy-text-secondary"},Lb={class:"info-item"},Fb={class:"info-label"},Ob={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Rb={class:"info-item flex items-center text-xs"},Pb={class:"info-label"},Mb={class:"flex items-center rateBox"},Ub={key:0,class:"text-hy-text-secondary"},zb={key:1,class:"text-hy-text-main"},Wb={class:"info-item"},jb={class:"info-label"},Hb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Yb={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},Gb={class:"w-[60%] flex"},qb={class:"flex-grow w-0 ml-2"},Kb={class:"flex-grow w-0 ml-2"},Xb=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:_,audioCurTime:y,fileScoreShow:u,closeDrawer:N,playEnd:k,onPlayStart:E,playStart:b,canPlay:S,onTimeUpdate:V,playPoint:$,onEditMark:h,onEditorClose:g,setAudioState:C}=Er({emit:a,params:{getPlayerRef:()=>s.value,onEditMark:()=>{s.value.pauseVideo()}}});return e.onBeforeUnmount(()=>{N()}),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 T=e.resolveComponent("svg-icon"),B=e.resolveComponent("el-col"),L=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]=F=>f.value=null)},null,512),e.createElementVNode("div",Q0,[e.createElementVNode("div",v0,[e.unref(m).mark?(e.openBlock(),e.createBlock(T,{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",eb,[e.createVNode(T,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])]),e.createElementVNode("div",tb,[e.createElementVNode("div",nb,[e.createElementVNode("div",ob,[e.createElementVNode("div",ab,[e.createVNode(oa,{ref_key:"videoPlayerRef",ref:s,"play-list":w.playList,onCanPlay:e.unref(S),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",sb,[e.createVNode(j,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:e.withCtx(()=>[e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",lb,[e.createElementVNode("span",rb,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",ib,e.toDisplayString(e.unref(m).uploadDateStr),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",cb,[e.createElementVNode("span",db,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",pb,[e.unref(m).mark?(e.openBlock(),e.createElementBlock("span",fb,[e.createTextVNode(e.toDisplayString(e.unref(x)("star"))+" ",1),e.createVNode(T,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-[4px] -top-[2px]"})])):(e.openBlock(),e.createElementBlock("span",mb,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",hb,[e.createElementVNode("span",ub,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",_b,e.toDisplayString(e.unref(m).devUserName),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",gb,[e.createElementVNode("span",yb,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",xb,e.toDisplayString(e.unref(Ho)(e.unref(m).fileSize)),1)])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",kb,[e.createElementVNode("span",Nb,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",bb,e.toDisplayString(e.unref(m).deviceId),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",Cb,[e.createElementVNode("span",wb,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",Eb,[e.unref(m).type===1?(e.openBlock(),e.createElementBlock("span",Sb,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(m).type===2?(e.openBlock(),e.createElementBlock("span",Tb,e.toDisplayString(e.unref(x)("task")),1)):e.unref(m).type===3?(e.openBlock(),e.createElementBlock("span",Db,"SOS")):(e.openBlock(),e.createElementBlock("span",Vb,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",$b,[e.createElementVNode("span",Bb,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(m).expiredDtm?(e.openBlock(),e.createElementBlock("span",Ib,e.toDisplayString(e.unref(m).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",Ab,"-"))])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",Lb,[e.createElementVNode("span",Fb,e.toDisplayString(e.unref(x)("videoDuration")),1),e.createElementVNode("span",Ob,e.toDisplayString(e.unref(_))+"s ",1)])]),_:1}),e.withDirectives(e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",Rb,[e.createElementVNode("span",Pb,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",Mb,[e.createVNode(L,{modelValue:e.unref(f),"onUpdate:modelValue":D[1]||(D[1]=F=>e.isRef(f)?f.value=F: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(u)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),e.unref(m).fileScore?(e.openBlock(),e.createElementBlock("span",Ub,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",zb,e.toDisplayString(e.unref(x)("unrated")),1))])])]),_:1},512),[[e.vShow,!e.unref(d)]]),e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",Wb,[e.createElementVNode("span",jb,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",Hb,e.toDisplayString(e.unref(m).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",Yb,[e.createVNode(Cr,{ref_key:"mapFileTrackRef",ref:r},null,512)])]),e.createElementVNode("div",Gb,[e.createElementVNode("div",qb,[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",Kb,[e.createVNode(wr,{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(_),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"]]),Jb={key:0,class:"fixed top-[10%] left-[25%]"},Zb={class:"!p-0 !w-[1200px]"},Qb={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"},vb=e.defineComponent({__name:"file-details",setup(t,{expose:n}){const o=xx,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",Jb,[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",Qb,[e.unref(l)===2?(e.openBlock(),e.createBlock(GN,{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(Xb,{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(J0,{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 eC(t){return oe.post({url:"/file/abortMultipartUpload",data:t,showLoading:!1,isJson:!0})}function tC(t){return oe.post({url:"/file/multipartUploadAuth",data:t,showLoading:!1,isFormData:!0})}function nC(t){return oe.post({url:"/file/completeMultipartUpload",data:t,showLoading:!1,isJson:!0})}function oC(t){return oe.post({url:"/mediaFile/mediaFile/save",data:t,showLoading:!1,isJson:!0})}function aC(t){return oe.post({url:"/mediaFile/findByFileCloudKey",data:{fileCloudKey:t},showLoading:!1,isFormData:!0})}const sC="/admin",lC=new kl({baseURL:`${ze.getCache("host")||""}${sC}`,timeout:js,headers:{"Content-Type":ct.JSON},interceptors:{requestSuccessFn:t=>{const n=ze.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 Sr={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,T){return g=a(a(g,h),a(w,T)),a(g<<D|g>>>32-D,C)}function r(h,g,C,w,D,T,B){return l(g&C|~g&w,h,g,D,T,B)}function i(h,g,C,w,D,T,B){return l(g&w|C&~w,h,g,D,T,B)}function c(h,g,C,w,D,T,B){return l(g^C^w,h,g,D,T,B)}function p(h,g,C,w,D,T,B){return l(C^(g|~w),h,g,D,T,B)}function d(h,g){var C=h[0],w=h[1],D=h[2],T=h[3];C=r(C,w,D,T,g[0],7,-680876936),T=r(T,C,w,D,g[1],12,-389564586),D=r(D,T,C,w,g[2],17,606105819),w=r(w,D,T,C,g[3],22,-1044525330),C=r(C,w,D,T,g[4],7,-176418897),T=r(T,C,w,D,g[5],12,1200080426),D=r(D,T,C,w,g[6],17,-1473231341),w=r(w,D,T,C,g[7],22,-45705983),C=r(C,w,D,T,g[8],7,1770035416),T=r(T,C,w,D,g[9],12,-1958414417),D=r(D,T,C,w,g[10],17,-42063),w=r(w,D,T,C,g[11],22,-1990404162),C=r(C,w,D,T,g[12],7,1804603682),T=r(T,C,w,D,g[13],12,-40341101),D=r(D,T,C,w,g[14],17,-1502002290),w=r(w,D,T,C,g[15],22,1236535329),C=i(C,w,D,T,g[1],5,-165796510),T=i(T,C,w,D,g[6],9,-1069501632),D=i(D,T,C,w,g[11],14,643717713),w=i(w,D,T,C,g[0],20,-373897302),C=i(C,w,D,T,g[5],5,-701558691),T=i(T,C,w,D,g[10],9,38016083),D=i(D,T,C,w,g[15],14,-660478335),w=i(w,D,T,C,g[4],20,-405537848),C=i(C,w,D,T,g[9],5,568446438),T=i(T,C,w,D,g[14],9,-1019803690),D=i(D,T,C,w,g[3],14,-187363961),w=i(w,D,T,C,g[8],20,1163531501),C=i(C,w,D,T,g[13],5,-1444681467),T=i(T,C,w,D,g[2],9,-51403784),D=i(D,T,C,w,g[7],14,1735328473),w=i(w,D,T,C,g[12],20,-1926607734),C=c(C,w,D,T,g[5],4,-378558),T=c(T,C,w,D,g[8],11,-2022574463),D=c(D,T,C,w,g[11],16,1839030562),w=c(w,D,T,C,g[14],23,-35309556),C=c(C,w,D,T,g[1],4,-1530992060),T=c(T,C,w,D,g[4],11,1272893353),D=c(D,T,C,w,g[7],16,-155497632),w=c(w,D,T,C,g[10],23,-1094730640),C=c(C,w,D,T,g[13],4,681279174),T=c(T,C,w,D,g[0],11,-358537222),D=c(D,T,C,w,g[3],16,-722521979),w=c(w,D,T,C,g[6],23,76029189),C=c(C,w,D,T,g[9],4,-640364487),T=c(T,C,w,D,g[12],11,-421815835),D=c(D,T,C,w,g[15],16,530742520),w=c(w,D,T,C,g[2],23,-995338651),C=p(C,w,D,T,g[0],6,-198630844),T=p(T,C,w,D,g[7],10,1126891415),D=p(D,T,C,w,g[14],15,-1416354905),w=p(w,D,T,C,g[5],21,-57434055),C=p(C,w,D,T,g[12],6,1700485571),T=p(T,C,w,D,g[3],10,-1894986606),D=p(D,T,C,w,g[10],15,-1051523),w=p(w,D,T,C,g[1],21,-2054922799),C=p(C,w,D,T,g[8],6,1873313359),T=p(T,C,w,D,g[15],10,-30611744),D=p(D,T,C,w,g[6],15,-1560198380),w=p(w,D,T,C,g[13],21,1309151649),C=p(C,w,D,T,g[4],6,-145523070),T=p(T,C,w,D,g[11],10,-1120210379),D=p(D,T,C,w,g[2],15,718787259),w=p(w,D,T,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(T,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 _(h){var g=h.length,C=[1732584193,-271733879,-1732584194,271733878],w,D,T,B,L,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,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<D;w+=1)T[w>>2]|=h.charCodeAt(w)<<(w%4<<3);if(T[w>>2]|=128<<(w%4<<3),w>55)for(d(C,T),w=0;w<16;w+=1)T[w]=0;return B=g*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),L=parseInt(B[2],16),j=parseInt(B[1],16)||0,T[14]=L,T[15]=j,d(C,T),C}function y(h){var g=h.length,C=[1732584193,-271733879,-1732584194,271733878],w,D,T,B,L,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,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<D;w+=1)T[w>>2]|=h[w]<<(w%4<<3);if(T[w>>2]|=128<<(w%4<<3),w>55)for(d(C,T),w=0;w<16;w+=1)T[w]=0;return B=g*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),L=parseInt(B[2],16),j=parseInt(B[1],16)||0,T[14]=L,T[15]=j,d(C,T),C}function u(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 N(h){var g;for(g=0;g<h.length;g+=1)h[g]=u(h[g]);return h.join("")}N(_("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),T=w,B,L,j,F;return C!==o&&(T=h(C,w)),D>T?new ArrayBuffer(0):(B=T-D,L=new ArrayBuffer(B),j=new Uint8Array(L),F=new Uint8Array(this,D,B),j.set(F),L)}}();function k(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),T;for(T=0;T<C;T+=1)D[T]=h.charCodeAt(T);return g?D:w}function b(h){return String.fromCharCode.apply(null,new Uint8Array(h))}function S(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(k(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],T;for(w=0;w<C;w+=1)D[w>>2]|=g.charCodeAt(w)<<(w%4<<3);return this._finish(D,C),T=N(this._hash),h&&(T=V(T)),this.reset(),T},$.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,T;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),T=parseInt(w[1],16)||0,h[14]=D,h[15]=T,d(this._hash,h)},$.hash=function(h,g){return $.hashBinary(k(h),g)},$.hashBinary=function(h,g){var C=_(h),w=N(C);return g?V(w):w},$.ArrayBuffer=function(){this.reset()},$.ArrayBuffer.prototype.append=function(h){var g=S(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,T;for(D=0;D<C;D+=1)w[D>>2]|=g[D]<<(D%4<<3);return this._finish(w,C),T=N(this._hash),h&&(T=V(T)),this.reset(),T},$.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=N(C);return g?V(w):w},$})})(Sr);var rC=Sr.exports;const iC=tl(rC);class cC{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 iC.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 dC(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),_=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}]),u=e.ref([]),N=e.ref(null),k=e.ref(null),E=e.ref([]),b=e.ref([]),S=e.ref(File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice),V=e.ref(1024*1024*5);function $(){n("on-fileUploadNum",u.value.length)}function h(){p.value=!1}function g(){C(!0)}function C(O){p.value=O}function w(O){i.value=O}function D(O){l.value=O.startUploadingCallback||null,r.value=O.fileShardingCallback||null,a.value=O.onSubmit||null}function T(O,G){if(y.value=[{label:x("softwarePackage"),value:6}],N.value=6,s.value=G||null,D(O),f.value)return pe.ElMessage.error(x("fileReadingInProgressPleaseWait"));d.value=[],m.value=!0}function B(O,G){if(y.value=[{label:`APK${x("upgradePackage")}`,value:5}],N.value=5,s.value=G||null,D(O),f.value)return pe.ElMessage.error(x("fileReadingInProgressPleaseWait"));d.value=[],m.value=!0}function L(O,G){y.value=[{label:x("imageFiles"),value:1},{label:x("videoFile"),value:2},{label:x("audioFiles"),value:4}];const ne=O.folderId;if(ne){if(s.value=G||null,D({}),k.value=ne,D(O),f.value)return pe.ElMessage.error(x("fileReadingInProgressPleaseWait"));N.value=2,d.value=[],m.value=!0}}function j(){w(!1),m.value=!1}function F(){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 O=(G,ne)=>new Promise((de,_e)=>{const Ve=G[ne];Ve&&v(Ve.file,{fileType:N.value,folderId:k.value,onSubmit:a.value}).then(I=>{pe.ElMessage.success(`${x("startUploading")} ${I}`),G.length-1!==ne?O(G,ne+1).then(()=>{de({code:200})}):de({code:200})}).catch(()=>{G.length-1!==ne?O(G,ne+1).then(()=>{de({code:200})}):de({code:200})})});O(d.value,0).then(()=>{f.value=!1,r.value&&r.value(),d.value=[]})}function M(O){const G=O.type||"";if(N.value===1){if(!G.includes("image"))return pe.ElMessage.error(x("theUploadedFileIsNotOfImageType")),!1}else if(N.value===2){if(!G.includes("video"))return pe.ElMessage.error(x("theUploadedFileIsNotOfVideoType")),!1}else if(N.value===4){if(!G.includes("audio"))return pe.ElMessage.error(x("theUploadedFileIsNotOfAudioType")),!1}else if(N.value===5){if(!O.name.includes(`${_.value[5]}`))return pe.ElMessage.error(x("theUploadedFileIsNotAnAPKUpgradePackage")),!1}else if(N.value===6&&!O.name.includes(`${_.value[6]}`))return pe.ElMessage.error(x("theUploadedFileIsNotASoftwarePackage")),!1;return!0}function z(){E.value=[],b.value=[];const O=ze.getCache("fileUploadList");O&&(u.value=O.map(G=>(G.status==="uploading"&&(G.status="error"),G)),e.nextTick(()=>{$(),u.value.forEach(G=>{G.status!=="error"&&ke(G.md5)})}))}function U(){window.sessionStorage.setItem("fileUploadList",JSON.stringify(u.value))}function R(O){return new Promise((G,ne)=>{new cC().md5(O,(_e,Ve)=>{_e?ne(_e):G({md5:Ve})})})}function Y(O){return new Promise(G=>{const ne=O.size;let de=0,_e=null;const Ve=Math.ceil(ne/V.value),I=[],A=()=>{const H=de*V.value,te=H+V.value>=ne?ne:H+V.value;if(_e=S.value.call(O,H,te),I.push(_e),de++,de<Ve)return A();G(I)};A()})}function X(O){const G=new File([O.file],O.file.name.replace(/\s*/g,""));d.value.push({name:G.name,file:G})}function P(O,G){if(O.file.name===G.fileName){const ne=new File([O.file],O.file.name.replace(/\s*/g,""));v(ne,{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 v(O,G){return new Promise(async(ne,de)=>{const _e=G.md5||Yn(1);await Y(O).then(async(Ve=[])=>{const I=u.value.find(A=>A.md5===_e);if(he(_e,Ve),I){const A=I.status,H=I.errorReason;A==="error"&&!H?(ne(O.name),ke(I.md5)):de()}else{const A=await tC({cannedACL:i.value?"public-read":"",fileName:O.name,contentLength:O.size,contentType:O.type,partSize:V.value});if(A.code===200){const H=A.data;if(H){const te=H.list||[],Ne={md5:_e,fileType:G.fileType,folderId:G.folderId,onSubmit:G.onSubmit,fileName:O.name,size:O.size,type:O.type,key:H.key,uploadId:H.uploadId,status:"uploading",completionTime:null,progress:0,finishNum:0,totalNum:te.length,shardingList:te.map((me,ue)=>({key:me.key,url:me.url,partNumber:ue+1,isUpload:!1,etag:null}))};ne(O.name),u.value.unshift(Ne),$(),e.nextTick(()=>{U(),ke(Ne.md5)})}}}})})}function Te(O){return new Promise(async(G,ne)=>{const de=await aC(O);de.code===200&&(de.data?ne(new Error(x("prohibitUploadingFilesWithTheSameNameOnThePlatform"))):G({code:200}))})}function he(O,G){const ne=E.value.findIndex(de=>de.md5===O);ne===-1?E.value.push({md5:O,fileChunkList:G}):E.value[ne].fileChunkList=G}function ke(O){const G=u.value.find(ne=>ne.md5===O);if(G.status==="amalgamation")ee(G);else if(G.status==="sharding")J(G);else{const ne=E.value.findIndex(A=>A.md5===G.md5);if(ne===-1){pe.ElMessage.error(x("errorInUploadingFile"));return}const de=E.value[ne].fileChunkList,_e=(A,H)=>new Promise((te,Ne)=>{const me=A[H];if(me)if(me.isUpload)A.length-1!==H?_e(A,H+1).then(()=>{te({code:200})}):te({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(),A[H]=me,A.length-1!==H?_e(A,H+1).then(()=>{te({code:200})}):te({code:200})})}}),Ve=G.shardingList,I=Ve.findIndex(A=>A.isUpload===!1);I!==-1?(G.status="uploading",_e(Ve,I).then(()=>{G.status="sharding",J(G)})):(G.status="sharding",J(G))}}function Oe(O,G){return new Promise((ne,de)=>{lC.put({url:O,data:G}).then(_e=>{ne(_e)}).catch(()=>{de(new Error(x("uploadError")))})})}async function J(O){U();const G=await nC({key:O.key,uploadId:O.uploadId,partETagList:O.shardingList.map(ne=>({partNumber:ne.partNumber,etag:ne.etag}))});(G.code===200||G.code===10020)&&(O.status="amalgamation",O.progress=80,ee(O))}async function ee(O){U();const G=()=>{O.completionTime=jo(new Date,"Y-M-h D:m:s"),O.status="success",b.value.unshift(O),Z(O.md5),O.onSubmit&&O.onSubmit(O),e.nextTick(()=>{U()})};s.value?s.value(O,()=>{G()}):(await oC({fileType:O.fileType,folderId:O.folderId,key:O.key,size:O.size})).code===200&&(pe.ElMessage.success(x("uploadSuccessful")),G())}function ie(O,G){G.splice(O,1)}function le(O){var G;(G=o.value)==null||G.show(O.fileCloudKey).then(()=>{O.onSubmit&&O.onSubmit()})}async function Z(O){if(!O)return;const G=u.value.findIndex(ne=>ne.md5===O);if(G!==-1){const ne=u.value[G];u.value.splice(G,1);const de=E.value.findIndex(_e=>_e.md5===O);de!==-1&&E.value.splice(de,1),$(),ne.key&&ne.uploadId?(await eC({key:ne.key,uploadId:ne.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:_,fileTypeList:y,fileType:N,folderId:k,fileList:E,fileUploadList:u,successFileList:b,blobSlice:S,defaultChunkSize:V,fileUploadNumFn:$,onClose:h,show:g,setDialogVisible:C,setPublicRea:w,setCallback:D,fileUploadVersionShow:T,fileUploadAPkShow:B,fileUploadShow:L,fileUploadClose:j,fileUploadSubmit:F,beforeAvatarUpload:M,getData:z,saveData:U,getFileMd5:R,sliceFile:Y,uploadListRequestFn:X,handleHttpRequestImg:P,fileRequestFn:v,findByFileCloudKey:Te,fileListPushFn:he,uploadSliceFile:ke,uploadPart:Oe,completeMultipartUpload:J,mediaFileFn:ee,deleteListFn:ie,apkConfirmUploadShow:le,deleteFileUpload:Z}}const pC=t=>(e.pushScopeId("data-v-396f7126"),t=t(),e.popScopeId(),t),fC={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"},mC={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},hC={class:"absolute right-[10px]"},uC={class:"dialog_body"},_C={class:"mb-[10px]"},gC={class:"text-sm leading-[30px]"},yC={class:"mb-[10px]"},xC={class:"text-sm leading-[30px]"},kC={class:"text-center"},NC={class:"text-xs text-hy-text-secondary"},bC={class:"uploadList select-none"},CC={class:"flex-grow w-0"},wC={class:"text-right mt-[20px]"},EC={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"},SC={class:"relative border-b border-hy-border-2 pl-2 text-[18px] font-bold h-[50px] flex items-center justify-between"},TC={class:"absolute right-[10px]"},DC={class:"dialog_body el-dialog__body !p-[0_0_10px_0]"},VC={class:"progressBox text-hy-text-main el-progress-bar__outer_backgroundv3"},$C={class:"flex items-center"},BC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},IC={key:0,class:"flex items-center justify-center"},AC={key:0,class:"select-none click-box"},LC={class:"iconCloseBox click-box ml-[4px]"},FC={class:"flex flex-row leading-[20px] text-hy-danger select-none"},OC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},RC={class:"flex flex-row mb-[4px]"},PC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},MC=pC(()=>e.createElementVNode("span",null,[e.createElementVNode("i",{class:"el-icon-loading text-hy-main"})],-1)),UC={class:"flex flex-row leading-[20px]"},zC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},WC={class:"text-hy-main"},jC={class:"flex flex-row mb-[4px]"},HC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},YC={class:"iconCloseBox click-box"},GC={class:"flex flex-row leading-[20px]"},qC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},KC={class:"text-hy-success"},XC={key:0,class:"text-hy-text-secondary flex items-center justify-center text-xs noData h-full"},JC={class:"text-center"},ZC={class:"mt-[10px]"},QC=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:_,fileUploadVisible:y,uploadAccept:u,fileTypeList:N,fileType:k,folderId:E,fileList:b,fileUploadList:S,successFileList:V,blobSlice:$,defaultChunkSize:h,fileUploadNumFn:g,onClose:C,show:w,setDialogVisible:D,setPublicRea:T,setCallback:B,fileUploadVersionShow:L,fileUploadAPkShow:j,fileUploadShow:F,fileUploadClose:M,fileUploadSubmit:z,beforeAvatarUpload:U,getData:R,saveData:Y,getFileMd5:X,sliceFile:P,uploadListRequestFn:v,handleHttpRequestImg:Te,fileRequestFn:he,findByFileCloudKey:ke,fileListPushFn:Oe,uploadSliceFile:J,uploadPart:ee,completeMultipartUpload:ie,mediaFileFn:le,deleteListFn:Z,apkConfirmUploadShow:O,deleteFileUpload:G}=dC({emit:a});return e.onMounted(()=>{R()}),n({fileUploadShow:F,fileUploadAPkShow:j,fileUploadVersionShow:L,show:w}),(ne,de)=>{const _e=e.resolveComponent("svg-icon"),Ve=e.resolveComponent("el-option"),I=e.resolveComponent("el-select"),A=e.resolveComponent("el-icon"),H=e.resolveComponent("el-upload"),te=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",fC,[e.createElementVNode("div",mC,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("fileUpload")),1),e.createElementVNode("div",hC,[e.createVNode(_e,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(M),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",uC,[e.createElementVNode("div",_C,[e.createElementVNode("div",gC,e.toDisplayString(e.unref(x)("fileType")),1),e.createVNode(I,{modelValue:e.unref(k),"onUpdate:modelValue":de[0]||(de[0]=K=>e.isRef(k)?k.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(N),(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",yC,[e.createElementVNode("div",xC,e.toDisplayString(e.unref(x)("uploadFiles")),1),e.createElementVNode("div",null,[e.createVNode(H,{"before-upload":e.unref(U),"http-request":e.unref(v),accept:e.unref(u)[`${e.unref(k)}`],action:"",drag:"","show-file-list":!1,multiple:""},{default:e.withCtx(()=>[e.createElementVNode("div",kC,[e.createVNode(A,{class:"text-[60px] text-hy-text-secondary"},{default:e.withCtx(()=>[e.createVNode(e.unref(jd))]),_:1}),e.createElementVNode("div",NC,[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",bC,[(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",CC,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(Z)(ce,e.unref(m))},null,8,["onClick"])]))),128))])])]),e.createElementVNode("div",wC,[e.createVNode(te,{type:"primary",class:"w-[100px]",onClick:e.unref(M)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("close")),1)]),_:1},8,["onClick"]),e.createVNode(te,{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",EC,[e.createElementVNode("div",SC,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("fileUpload")),1),e.createElementVNode("div",TC,[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",DC,[e.createElementVNode("ul",VC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(S),(K,ce)=>(e.openBlock(),e.createElementBlock("li",{key:`${ce}fileUploadList`},[e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",$C,[e.createElementVNode("div",BC,e.toDisplayString(K.fileName),1),K.fileType!==5?(e.openBlock(),e.createElementBlock("div",IC,[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",AC,[e.createVNode(_e,{width:"16",height:"16",name:"live-broadcast-refresh-v3"})]))]),_:2},1032,["content"])]),_:2},1032,["before-upload","http-request"]),e.createElementVNode("div",LC,[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",FC,[e.createElementVNode("div",OC,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",RC,[e.createElementVNode("div",PC,e.toDisplayString(K.fileName),1),MC]),e.createElementVNode("div",UC,[e.createElementVNode("div",zC,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("uploadingPatientWait"))+"…",1)]),e.createElementVNode("span",WC,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",jC,[e.createElementVNode("div",HC,e.toDisplayString(K.fileName),1),e.createElementVNode("div",YC,[e.createVNode(_e,{width:"16",height:"16",class:"text-hy-danger",name:"icon-close",onClick:we=>e.unref(Z)(ce,e.unref(V))},null,8,["onClick"])])]),e.createElementVNode("div",GC,[e.createElementVNode("div",qC,[e.createElementVNode("span",null,e.toDisplayString(K.completionTime),1)]),e.createElementVNode("span",KC,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(S).length===0&&e.unref(V).length===0?(e.openBlock(),e.createElementBlock("li",XC,[e.createElementVNode("div",JC,[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 vC({emit:t,props:n}){const o=e.shallowRef(),a=e.shallowRef(),s=e.ref(),{H:l,POI:r,isShowMap:i,layersUrlList:c,mapConfig:p}=Qt();function d(){i&&e.nextTick(async()=>{const k=ze.getCache("userInfo");let E=[];k!=null&&k.lng&&(k!=null&&k.lat)&&(E=[k.lat,k.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(k){const E=await r.placeSearch({keywords:k,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(k){var b;const E=await r.reverseGeocoder(k);E&&((b=E.address)!=null&&b.length)||Se({type:"warning",message:"未获取到地址信息"}),_({lng:k.lng,lat:k.lat,address:E.formatted_address,name:E.formatted_address,...E})}function _(k){s.value=k,t("on-geographical-position",k),y()}function y(k){a.value&&l.removeMarker(o.value,a.value);let E,b;k?(E=k.lat,b=k.lng):(E=s.value.lat,b=s.value.lng);let S={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&&(S=n.markerItemFn()),l.setView(o.value,[E,b],18),a.value=l.marker(o.value,[E,b],S),l.markerAddTo(o.value,a.value)}function u(){a.value&&l.removeMarker(o.value,a.value)}function N(k){a.value&&l.updateMarkerIcon(a.value,k)}return{H:l,map:o,POI:r,marker:a,isShowMap:i,initMap:d,geographicalPositionFn:_,throughCoordinatePosition:m,placeSearchFn:f,setContentFn:N,removeMarker:u}}const ew={class:"w-full h-full relative"},tw={class:"relative z-[1] w-full h-full"},nw={id:"selectMapLocation",ref:"selectMapLocation",class:"w-full h-full"},ow=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:_}=vC({emit:s,props:a});return e.onMounted(()=>{r()}),n({throughCoordinatePosition:i,placeSearchFn:c,setContentFn:p,removeMarker:d,H:f,map:m,POI:_}),(y,u)=>(e.openBlock(),e.createElementBlock("div",ew,[e.withDirectives(e.createVNode(Gt,{class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(l)]]),e.createElementVNode("div",tw,[e.createElementVNode("div",nw,null,512)])]))}}),[["__scopeId","data-v-8ec3e599"]]);function aw({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 vu({taskId:o.value,deviceUserId:n.value});if(m.code===200){const _=m.data||{};a.value=_||{},a.value.imageList&&(a.value.imageListV2=a.value.imageList.map(y=>y.filePath)),d(0)}}else if(t.formType===2){const m=await Al({recordId:l.value});if(m.code===200){const _=m.data||{};a.value=_||{},a.value.imageList&&(a.value.imageListV2=a.value.imageList.map(y=>y.filePath)),d(0)}}})}function c(d={}){if(!d)return;const f=Se.warning(x("inTheOpeningPleaseWait"));o.value=d.taskId,n.value=d.deviceUserId,l.value=d.recordId||null,i().then(()=>{s.value=!0,setTimeout(()=>{f.close()},1e3)})}function p(){s.value=!1}return{deviceUserId:n,taskId:o,deviceReport:a,dialogVisible:s,recordId:l,clickGroupItem:r,show:c,onClose:p,$t:x}}const sw={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},lw={key:0},rw={key:1},iw={class:"absolute right-[12px] top-[12px]"},cw={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg relative z-10"},dw={style:{height:"500px"},class:"c_fff fs_12 dialog_body text-hy-text-main text-[12px]"},pw={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},fw={class:"information"},mw={class:"flex_vertically_center flex items-center"},hw={style:{"margin-left":"6px"}},uw={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},_w={class:"flex_vertically_center flex items-center"},gw={style:{"margin-left":"6px"}},yw={key:0,class:"type_box success"},xw={key:1,class:"type_box"},kw={class:"form fs_12 text-[12px]"},Nw={key:0},bw={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},Cw={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"},ww={key:1},Ew={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},Sw={class:"r-f mb_10 flex_vertically_center flex mb-[10px] items-center"},Tw={class:"mr_10 label flex-shrink mr-[10px]"},Dw={class:"r-f flex_vertically_center flex items-center"},Vw={class:"mr_10 label label_answer flex-shrink mr-[10px]"},$w={key:0,class:"c_theme text-hy-text-primary"},Bw={key:1,class:"c_9DA7B2 text-hy-text-secondary"},Iw={key:2},Aw={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px]"},Lw={class:"group-item"},Fw=["onClick"],Ow={key:0,class:"c-f-i group-content r-f flex"},Rw={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},Pw=["src"],Mw={key:1,style:{"flex-grow":"1"}},Uw={class:"icon-box c-f-i flex"},zw={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},Ww={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},jw={key:0,class:"information-type"},Hw={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},Yw={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},Gw={key:0,class:"c_9DA7B2 text-hy-text-secondary"},qw={key:1},Kw={key:1,class:"c-f-i group-content r-f flex"},Xw={style:{"flex-grow":"1"}},Jw={class:"icon-box c-f-i flex"},Zw={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},Qw={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},vw={key:0,class:"information-type"},eE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},tE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},nE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},oE={key:1},aE={key:2,class:"c-f-i group-content r-f flex"},sE={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},lE=["src"],rE={key:1,style:{"flex-grow":"1"}},iE={class:"icon-box c-f-i flex"},cE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},dE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},pE={key:0,class:"information-type"},fE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},mE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},hE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},uE={key:1},_E={key:3},gE={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},yE={class:"group-item"},xE=["onClick"],kE={key:0,class:"c-f-i group-content r-f flex"},NE={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},bE=["src"],CE={key:1,style:{"flex-grow":"1"}},wE={class:"icon-box c-f-i flex"},EE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},SE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},TE={key:0,class:"information-type"},DE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},VE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},$E={key:0,class:"c_9DA7B2 text-hy-text-secondary"},BE={key:1},IE={key:1,class:"c-f-i group-content r-f flex"},AE={style:{"flex-grow":"1"}},LE={class:"icon-box c-f-i flex"},FE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},OE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},RE={key:0,class:"information-type"},PE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},ME={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},UE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},zE={key:1},WE={key:2,class:"c-f-i group-content r-f flex"},jE={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},HE=["src"],YE={key:1,style:{"flex-grow":"1"}},GE={class:"icon-box c-f-i"},qE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},KE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},XE={key:0,class:"information-type"},JE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},ZE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},QE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},vE={key:1},Tr=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}=aw({props:o});return n({show:s}),(p,d)=>{const f=e.resolveComponent("svg-icon"),m=e.resolveComponent("el-dialog"),_=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(m,{modelValue:e.unref(l),"onUpdate:modelValue":d[0]||(d[0]=y=>e.isRef(l)?l.value=y:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"530px",modal:!p.draggable,draggable:p.draggable,"modal-class":p.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",sw,[o.formType===1?(e.openBlock(),e.createElementBlock("span",lw,e.toDisplayString(e.unref(a)("exception")),1)):o.formType===2?(e.openBlock(),e.createElementBlock("span",rw,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",iw,[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"])])])),[[_]])]),default:e.withCtx(()=>[e.createElementVNode("div",cw,[e.createElementVNode("div",dw,[e.createElementVNode("div",pw,[e.createElementVNode("div",fw,[e.createElementVNode("div",mw,[e.createVNode(f,{style:{width:"14px",height:"14px"},name:"icon-user","class-name":"text-hy-text-main"}),e.createElementVNode("span",hw,[e.createTextVNode(e.toDisplayString(e.unref(r).name),1),e.unref(r).jobNum?(e.openBlock(),e.createElementBlock("span",uw,"("+e.toDisplayString(e.unref(r).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",_w,[e.createVNode(f,{name:"base-every-day-time",class:"w-[16px] h-[16px]"}),e.createElementVNode("span",gw,e.toDisplayString(e.unref(r).executeDtm),1)]),e.unref(r).checkState===1?(e.openBlock(),e.createElementBlock("div",yw,e.toDisplayString(e.unref(a)("normal")),1)):e.unref(r).checkState===2?(e.openBlock(),e.createElementBlock("div",xw,e.toDisplayString(e.unref(a)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",kw,[e.unref(r).dealSituation?(e.openBlock(),e.createElementBlock("div",Nw,[e.createElementVNode("div",bw,e.toDisplayString(e.unref(a)("handling")),1),e.createElementVNode("p",Cw,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",ww,[e.createElementVNode("div",Ew,e.toDisplayString(e.unref(a)("formContent")),1),e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).formList,(y,u)=>(e.openBlock(),e.createElementBlock("li",{key:u,class:"border-top ptb_10 p-[10px_0px]"},[e.createElementVNode("div",Sw,[e.createElementVNode("p",Tw,e.toDisplayString(e.unref(a)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(y.optionTitle),1)]),e.createElementVNode("div",Dw,[e.createElementVNode("p",Vw,e.toDisplayString(e.unref(a)("answer")),1),y.optionValue?(e.openBlock(),e.createElementBlock("span",$w,e.toDisplayString(y.optionValue),1)):(e.openBlock(),e.createElementBlock("span",Bw,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",Iw,[e.createElementVNode("div",Aw,e.toDisplayString(e.unref(a)("picture")),1),e.createElementVNode("div",Lw,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).imageList,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,onClick:u=>e.unref(c)(y)},[y.fileType===1?(e.openBlock(),e.createElementBlock("div",Ow,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.filePath&&y.del!==1?(e.openBlock(),e.createElementBlock("div",Rw,[e.createElementVNode("img",{src:y.filePath,class:"h_100vh h-full"},null,8,Pw)])):(e.openBlock(),e.createElementBlock("div",Mw,[e.createElementVNode("div",Uw,[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",zw,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",Ww,[y.type===1?(e.openBlock(),e.createElementBlock("div",jw,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",Hw,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",Yw," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",Gw,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",qw,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",Kw,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[e.createElementVNode("div",Xw,[e.createElementVNode("div",Jw,[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",Zw,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",Qw,[y.type===1?(e.openBlock(),e.createElementBlock("div",vw,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",eE,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",tE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",nE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",oE,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",aE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.screenshot1?(e.openBlock(),e.createElementBlock("div",sE,[e.createElementVNode("img",{src:y.screenshot1,class:"h_100vh h-full"},null,8,lE)])):(e.openBlock(),e.createElementBlock("div",rE,[e.createElementVNode("div",iE,[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",cE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",dE,[y.type===1?(e.openBlock(),e.createElementBlock("div",pE,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",fE,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",mE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",hE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",uE,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,Fw))),128))])])):e.createCommentVNode("",!0),e.unref(r).videoList&&e.unref(r).videoList.length?(e.openBlock(),e.createElementBlock("div",_E,[e.createElementVNode("div",gE,e.toDisplayString(e.unref(a)("video")),1),e.createElementVNode("div",yE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).videoList,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,onClick:u=>e.unref(c)(y)},[y.fileType===1?(e.openBlock(),e.createElementBlock("div",kE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.filePath&&y.del!==1?(e.openBlock(),e.createElementBlock("div",NE,[e.createElementVNode("img",{src:y.filePath,class:"h_100vh h-full"},null,8,bE)])):(e.openBlock(),e.createElementBlock("div",CE,[e.createElementVNode("div",wE,[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",EE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",SE,[y.type===1?(e.openBlock(),e.createElementBlock("div",TE,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",DE,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",VE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",$E,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",BE,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",IE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[e.createElementVNode("div",AE,[e.createElementVNode("div",LE,[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",FE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",OE,[y.type===1?(e.openBlock(),e.createElementBlock("div",RE,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",PE,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",ME," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",UE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",zE,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",WE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.screenshot1?(e.openBlock(),e.createElementBlock("div",jE,[e.createElementVNode("img",{src:y.screenshot1,class:"h_100vh h-full"},null,8,HE)])):(e.openBlock(),e.createElementBlock("div",YE,[e.createElementVNode("div",GE,[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",qE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",KE,[y.type===1?(e.openBlock(),e.createElementBlock("div",XE,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",JE,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",ZE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",QE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",vE,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,xE))),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-159e6064"]]);function eS(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 tS(t){return oe.post({url:"taskAssign/taskExample/select",data:t,isFormData:!0})}function nS({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(N){l.value=!0,e.nextTick(()=>{r.value.playVideo(N.filePath,N)})}function d(){r.value.pauseVideo(),l.value=!1}function f(N){i.value.onShowViewer(o.value,N)}function m(N){return new Promise(async(k,E)=>{const b=await(t.controller==="taskAssign/taskExample"?tS({id:N}):Xu({id:N}));if(b.code===200){const S=b.data;o.value=[],a.value=[],n.value=S;const V=S.images;V&&V.length&&(o.value=V.split(","));const $=S.videos;$&&$.length&&(a.value=$.split(",").map((h,g)=>({filePath:h,fileName:`任务示例视频${g+1}.${h.split(".").reverse()[0]}`,id:g+1}))),k(0)}})}function _(N={}){m(N.id).then(()=>{s.value=!0})}function y(N){console.log(N),o.value=[],a.value=[],n.value=N;const k=N.images;k&&k.length&&(o.value=k.split(","));const E=N.videos;E&&E.length&&(a.value=E.split(",").map((b,S)=>({filePath:b,fileName:`任务示例视频${S+1}.${b.split(".").reverse()[0]}`,id:S+1}))),s.value=!0,console.log(s.value)}function u(){s.value=!1}return{$t:x,form:n,hyImageViewerRef:i,imagesList:o,videoList:a,dialogVisible:s,videoDialogVisible:l,videoPlayerRef:r,onShowViewer:f,selectFn:m,show:_,taskExampleFn:y,onClose:u,videoPlayerShow:p,videoDialogClose:d,selVideo:c}}const oS={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},aS={class:"absolute right-[12px] top-[12px]"},sS={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg-1 relative z-10"},lS={class:"dialog_body"},rS={class:"dialog_body_content lh_20 leading-[20px]"},iS={class:"mb_20 mb-[20px]"},cS={class:"requiredTitle"},dS={class:"plr_20 p-[0_20px]",style:{"max-height":"200px",overflow:"auto"}},pS=["innerHTML"],fS={key:0,class:"mb_20 mb-[20px]"},mS={class:"requiredTitle"},hS={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},uS={class:"imgBox"},_S={class:"centerBox deleteBox flex items-center justify-center"},gS=["src"],yS={key:1,class:"mb_20 mb-[20px]"},xS={class:"requiredTitle"},kS={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},NS={class:"imgBox"},bS={class:"centerBox deleteBox flex items-center justify-center"},CS={class:"pos_a w_100vh centerBox absolute w-full flex justify-center items-center"},wS={class:"operator-button centerBox mt_20 mt-[20px] flex justify-center items-center"},ES={class:"c_fff activatedImei text-hy-text-main"},SS={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},TS={class:"dialog_body",style:{height:"500px"}},DS={class:"pos_r w_100vh h_100vh w-full h-full relative"},Dr=be(e.defineComponent({__name:"view-task-example",props:{controller:{default:"taskAssign/taskExample"},draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const o=t,{$t:a,show:s,taskExampleFn:l,hyImageViewerRef:r,videoPlayerRef:i,dialogVisible:c,form:p,onClose:d,imagesList:f,onShowViewer:m,videoList:_,videoPlayerShow:y,videoDialogVisible:u,videoDialogClose:N,selVideo:k}=nS({props:o});return n({show:s,taskExampleFn:l}),(E,b)=>{const S=e.resolveComponent("svg-icon"),V=e.resolveComponent("el-dialog"),$=e.resolveComponent("el-button"),h=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(V,{modelValue:e.unref(c),"onUpdate:modelValue":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",oS,[e.createElementVNode("span",null,e.toDisplayString(e.unref(p).exampleName||e.unref(a)("missionExample")),1),e.createElementVNode("div",aS,[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"])])])),[[h]])]),default:e.withCtx(()=>[e.createElementVNode("div",sS,[e.createElementVNode("div",lS,[e.createElementVNode("div",rS,[e.createElementVNode("div",iS,[e.createElementVNode("div",cS,e.toDisplayString(e.unref(a)("sampleContent")),1),e.createElementVNode("div",dS,[e.createElementVNode("div",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(p).exampleContent},null,8,pS)])]),e.unref(f).length?(e.openBlock(),e.createElementBlock("div",fS,[e.createElementVNode("div",mS,e.toDisplayString(e.unref(a)("exampleImage")),1),e.createElementVNode("ul",hS,[(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",uS,[e.createElementVNode("div",_S,[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,gS)])]))),128))])])):e.createCommentVNode("",!0),e.unref(_).length?(e.openBlock(),e.createElementBlock("div",yS,[e.createElementVNode("div",xS,e.toDisplayString(e.unref(a)("exampleVideo")),1),e.createElementVNode("ul",kS,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(g,C)=>(e.openBlock(),e.createElementBlock("li",{key:`${C}videoList`},[e.createElementVNode("div",NS,[e.createElementVNode("div",bS,[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",CS,[e.createVNode(S,{name:"base-video-cover",style:{height:"40px",width:"40px"}})])])]))),128))])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",wS,[e.createVNode(V,{modelValue:e.unref(u),"onUpdate:modelValue":b[1]||(b[1]=g=>e.isRef(u)?u.value=g:null),"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss_lightColor",width:"800px",modal:!E.draggable,draggable:E.draggable,"modal-class":E.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",ES,[e.createElementVNode("div",SS,[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(N)&&e.unref(N)(...g),["stop"]))},[e.createVNode(S,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",TS,[e.createElementVNode("div",DS,[e.createVNode(oa,{ref_key:"videoPlayerRef",ref:i,"border-color":"transparent",item:e.unref(k),"play-list":e.unref(_)},null,8,["item","play-list"])])])])]),_:1})),[[h]])]),_:1},8,["modelValue","modal","draggable","modal-class"]),e.createVNode($,{class:"button_default buttonBox min-w-[100px]",type:"primary",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("closure")),1)]),_:1},8,["onClick"])])])]),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"}),e.createVNode(Wo,{ref_key:"hyImageViewerRef",ref:r},null,512)]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-d7cac0ec"]]);function VS(){const t=e.ref({}),n=e.ref({}),o=e.ref([]),a=e.ref([]),s=e.ref({}),l=e.ref(null),r=e.ref(null),i=e.ref(!1),{H:c,isShowMap:p,layersUrlList:d,mapConfig:f}=Qt(),m=e.shallowRef(null),_=e.ref([]),y=e.ref([]),u=e.ref(),N=e.ref(),k=e.computed(()=>a.value.findIndex(j=>j.lat&&j.lng)!==-1);function E(L){m.value&&L.lat&&L.lng&&c.setView(m.value,[L.lat,L.lng],18)}function b(){if(!m.value)return;_.value=[],y.value=[];const L=[];a.value.forEach((M,z)=>{if(!(M.lng&&M.lat))return;L.push(M);let U=null;if(M.hadCheck===1){const Y=M.checkState===1?"var(--hy-success)":"var(--hy-danger)";U=`<div style="width: 18px;
41
+ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:s,nextZIndex:l}},oy=or({type:String,values:Kg,required:!1}),ay=Symbol("size"),sy=Symbol("emptyValuesContextKey"),ly=_n({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>Gn(t)?!t():!t}}),mr=Symbol(),Zn=e.ref();function hr(t,n=void 0){const o=e.getCurrentInstance()?e.inject(mr,Zn):Zn;return t?e.computed(()=>{var a,s;return(s=(a=o.value)==null?void 0:a[t])!=null?s:n}):o}function ry(t,n){const o=hr(),a=ea(t,e.computed(()=>{var i;return((i=o.value)==null?void 0:i.namespace)||Jn})),s=vg(e.computed(()=>{var i;return(i=o.value)==null?void 0:i.locale})),l=ny(e.computed(()=>{var i;return((i=o.value)==null?void 0:i.zIndex)||dr})),r=e.computed(()=>{var i;return e.unref(n)||((i=o.value)==null?void 0:i.size)||""});return ur(e.computed(()=>e.unref(o)||{})),{ns:a,locale:s,zIndex:l,size:r}}const ur=(t,n,o=!1)=>{var a;const s=!!e.getCurrentInstance(),l=s?hr():void 0,r=(a=n==null?void 0:n.provide)!=null?a:s?e.provide:void 0;if(!r){Xn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const i=e.computed(()=>{const c=e.unref(t);return l!=null&&l.value?iy(l.value,c):c});return r(mr,i),r(lr,e.computed(()=>i.value.locale)),r(rr,e.computed(()=>i.value.namespace)),r(fr,e.computed(()=>i.value.zIndex)),r(ay,{size:e.computed(()=>i.value.size||"")}),r(sy,e.computed(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(o||!Zn.value)&&(Zn.value=i.value),i},iy=(t,n)=>{const o=[...new Set([...tr(t),...tr(n)])],a={};for(const s of o)a[s]=n[s]!==void 0?n[s]:t[s];return a},cy=_n({a11y:{type:Boolean,default:!0},locale:{type:st(Object)},size:oy,button:{type:st(Object)},experimentalFeatures:{type:st(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:st(Object)},zIndex:Number,namespace:{type:String,default:"el"},...ly}),ve={};e.defineComponent({name:"ElConfigProvider",props:cy,setup(t,{slots:n}){e.watch(()=>t.message,a=>{Object.assign(ve,a??{})},{immediate:!0,deep:!0});const o=ur(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 dy=_n({size:{type:st([Number,String])},color:{type:String}}),py=e.defineComponent({name:"ElIcon",inheritAttrs:!1}),fy=e.defineComponent({...py,props:dy,setup(t){const n=t,o=ea("icon"),a=e.computed(()=>{const{size:s,color:l}=n;return!s&&!l?{}:{fontSize:Pg(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 my=ta(fy,[["__file","icon.vue"]]);const _r=sr(my),hy=_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:st([String,Object,Array])},offset:{type:st(Array),default:[0,0]},badgeClass:{type:String}}),uy=e.defineComponent({name:"ElBadge"}),_y=e.defineComponent({...uy,props:hy,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 gy=ta(_y,[["__file","badge.vue"]]);const yy=sr(gy),gr=["success","info","warning","error"],Ue=Xg({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Kt?document.body:void 0}),xy=_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:Hg,default:Ue.icon},id:{type:String,default:Ue.id},message:{type:st([String,Object,Function]),default:Ue.message},onClose:{type:st(Function),default:Ue.onClose},showClose:{type:Boolean,default:Ue.showClose},type:{type:String,values:gr,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}}),ky={destroy:()=>!0},et=e.shallowReactive([]),Ny=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}},by=t=>{const{prev:n}=Ny(t);return n?n.vm.exposed.bottom.value:0},Cy=(t,n)=>et.findIndex(a=>a.id===t)>0?16:n,wy=e.defineComponent({name:"ElMessage"}),Ey=e.defineComponent({...wy,props:xy,emits:ky,setup(t,{expose:n}){const o=t,{Close:a}=Yg,{ns:s,zIndex:l}=ry("message"),{currentZIndex:r,nextZIndex:i}=l,c=e.ref(),p=e.ref(!1),d=e.ref(0);let f;const m=e.computed(()=>o.type?o.type==="error"?"danger":o.type:"info"),_=e.computed(()=>{const h=o.type;return{[s.bm("icon",h)]:h&&ar[h]}}),y=e.computed(()=>o.icon||ar[o.type]||""),u=e.computed(()=>by(o.id)),N=e.computed(()=>Cy(o.id,o.offset)+u.value),k=e.computed(()=>d.value+N.value),E=e.computed(()=>({top:`${N.value}px`,zIndex:r.value}));function b(){o.duration!==0&&({stop:f}=l_(()=>{V()},o.duration))}function S(){f==null||f()}function V(){p.value=!1}function $({code:h}){h===qg.esc&&V()}return e.onMounted(()=>{b(),i(),p.value=!0}),e.watch(()=>o.repeatNum,()=>{S(),b()}),r_(document,"keydown",$),f_(c,()=>{d.value=c.value.getBoundingClientRect().height}),n({visible:p,bottom:k,close:V}),(h,g)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(s).b("fade"),onBeforeLeave:h.onClose,onAfterLeave:C=>h.$emit("destroy"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:h.id,ref_key:"messageRef",ref:c,class:e.normalizeClass([e.unref(s).b(),{[e.unref(s).m(h.type)]:h.type},e.unref(s).is("center",h.center),e.unref(s).is("closable",h.showClose),e.unref(s).is("plain",h.plain),h.customClass]),style:e.normalizeStyle(e.unref(E)),role:"alert",onMouseenter:S,onMouseleave:b},[h.repeatNum>1?(e.openBlock(),e.createBlock(e.unref(yy),{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(_r),{key:1,class:e.normalizeClass([e.unref(s).e("icon"),e.unref(_)])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(y))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.renderSlot(h.$slots,"default",{},()=>[h.dangerouslyUseHTMLString?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),e.createElementVNode("p",{class:e.normalizeClass(e.unref(s).e("content")),innerHTML:h.message},null,10,["innerHTML"])],2112)):(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(s).e("content"))},e.toDisplayString(h.message),3))]),h.showClose?(e.openBlock(),e.createBlock(e.unref(_r),{key:2,class:e.normalizeClass(e.unref(s).e("closeBtn")),onClick:e.withModifiers(V,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(a))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],46,["id"]),[[e.vShow,p.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var Sy=ta(Ey,[["__file","message.vue"]]);let Ty=1;const yr=t=>{const n=!t||mn(t)||e.isVNode(t)||Gn(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);Mg(a)||(Xn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),o.appendTo=a}return er(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),er(ve.showClose)&&!o.showClose&&(o.showClose=ve.showClose),o},Dy=t=>{const n=et.indexOf(t);if(n===-1)return;et.splice(n,1);const{handler:o}=t;o.close()},Vy=({appendTo:t,...n},o)=>{const a=`message_${Ty++}`,s=n.onClose,l=document.createElement("div"),r={...n,id:a,onClose:()=>{s==null||s(),Dy(d)},onDestroy:()=>{e.render(null,l)}},i=e.createVNode(Sy,r,Gn(r.message)||e.isVNode(r.message)?{default:Gn(r.message)?r.message:()=>r.message}:null);i.appContext=o||Zt._context,e.render(i,l),t.appendChild(l.firstElementChild);const c=i.component,d={id:a,vnode:i,vm:c,handler:{close:()=>{c.exposed.visible.value=!1}},props:i.component.props};return d},Zt=(t={},n)=>{if(!Kt)return{close:()=>{}};const o=yr(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=Vy(o,n);return et.push(a),a.handler};gr.forEach(t=>{Zt[t]=(n={},o)=>{const a=yr(n);return Zt({...a,type:t},o)}});function $y(t){for(const n of et)(!t||t===n.props.type)&&n.handler.close()}Zt.closeAll=$y,Zt._context=null;const Se=Gg(Zt,"$message");function By({props:t}){const n=e.ref(null),o=e.ref([]),a=e.ref(1),s=e.ref(!0),l=e.ref(10),r=e.ref(0),i=e.ref(null),c=e.ref(!1),p=e.ref(!1),d=e.computed(()=>p.value||c.value),f=e.ref({lat:"",lng:""}),m=e.computed(()=>{const w=Number(f.value.lat);return w<=90&&w>=-90?w:"内容错误"}),_=e.computed(()=>{const w=Number(f.value.lng);return w<=180&&w>=-180?w:"内容错误"});function y(){m.value&&m.value!=="内容错误"&&_&&_.value!=="内容错误"&&u(f.value)}function u(w){if(w.lng&&w.lat){t.h.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,60]});t.h.markerAddTo(t.map,D),setTimeout(()=>{t.h.removeMarker(t.map,D)},3e3),b(1)}}function N(w,D){return T=>{if(!s.value)return!1;s.value=!1,setTimeout(()=>{w(T),s.value=!0},D)}}function k(){console.log("触发加载"),!c.value&&(p.value=!0,r.value++,e.nextTick(()=>{S()}))}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&&S()})}function S(){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,T=[];for(let B=0;B<D.length;B++){const L=D[B];T.push({...L,id:He.buildUUID(),address:L.address||L.name,title:g(L.name)})}e.nextTick(()=>{p.value=!1,o.value.push(...T)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}async function $(){const w=await Ku({page:r.value-1,size:10,query:n.value});if(w.code===200){const D=w.data.content,T=[];if(D!=null&&D.length){for(let B=0;B<D.length;B++){const L=D[B];T.push({id:L.id,address:L.address||L.pointName,...L,title:g(L.pointName)})}e.nextTick(()=>{p.value=!1,o.value.push(...T),r.value===w.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}async function h(){const w=await em({page:r.value-1,size:10,query:n.value});if(w.code===200){const D=w.data.content,T=[];if(D!=null&&D.length){for(let B=0;B<D.length;B++){const L=D[B];T.push({id:L.id,address:L.address||L.companyName,...L,title:g(L.companyName)})}e.nextTick(()=>{p.value=!1,o.value.push(...T),r.value===w.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}function g(w){const D=[];for(let T=0;T<w.length;T++){const B=w[T],L=n.value.indexOf(B),j={content:w[T]};L===-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:u,throttle:N,load:k,resetFn:b,searchAddressTypeFn:E,placeholderFn:C,inputSearch:f,showSearchLat:m,showSearchLng:_,searchLngLat:y}}const Iy={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"},Ay=["src"],Ly={class:"ml_10 ml-[10px]",style:{width:"calc(100% - 34px)"}},Fy={class:"title fs_14 c_fff over_one_line fw_600 text-[14px] text-hy-text-main truncate font-bold"},Oy={class:"address over_one_line fs_12 c_fff truncate text-[12px] text-hy-text-main"},Ry={class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"},Py={class:"ml_20 ml-[20px]"},My=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",Iy,[e.createElementVNode("img",{src:e.unref(l).orgTypeIcon,class:"w-full h-full"},null,8,Ay)])):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",Ly,[e.createElementVNode("div",Fy,[(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",Oy,e.toDisplayString(e.unref(l).address),1),e.createElementVNode("div",Ry,[e.createElementVNode("span",null,"经度:"+e.toDisplayString(e.unref(l).lng),1),e.createElementVNode("span",Py,"维度:"+e.toDisplayString(e.unref(l).lat),1)])])])}}}),[["__scopeId","data-v-393b9954"]]),Uy=t=>(e.pushScopeId("data-v-5856b649"),t=t(),e.popScopeId(),t),zy={style:{display:"inline-block","flex-direction":"column",width:"300px"},class:"search_lightColor pos_r relative"},Wy={class:"r-f flex"},jy={class:"flex",style:{width:"calc(100% - 42px)"}},Hy={key:1,class:"w-[58%] flex justify-between ml-[4px]"},Yy={class:"flex flex-col leading-[20px] ml-[10px]"},Gy=Uy(()=>e.createElementVNode("span",{class:"text-[14px] font-[600] text-hy-text-main mb-[5px]"},"填写经纬度",-1)),qy={class:"text-[12px] text-hy-text-secondary"},Ky={class:"text-[12px] text-hy-text-secondary"},Xy={key:2,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},Jy={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:_,placeholderFn:y,load:u,throttle:N,searchLngLat:k}=By({props:n});return e.onMounted(()=>{var E;a.value=(E=n.searchTypes[0])==null?void 0:E.value}),(E,b)=>{const S=e.resolveComponent("el-option"),V=e.resolveComponent("el-select"),$=e.resolveComponent("el-input"),h=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",zy,[e.createElementVNode("div",Wy,[e.createElementVNode("div",jy,[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(S,{key:g.value,value:g.value,label:g.label},null,8,["value","label"]))),128))]),_:1},8,["modelValue","onChange"]),e.unref(a)!==5?(e.openBlock(),e.createBlock($,{key:0,modelValue:e.unref(c),"onUpdate:modelValue":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(N)(e.unref(d),1e3))},null,8,["modelValue","placeholder"])):(e.openBlock(),e.createElementBlock("div",Hy,[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(He.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(He.onlyNumber)(e.unref(r),"lat"))},null,8,["modelValue"])]))]),e.createElementVNode("div",{class:"searchBox centerBox cursor-pointer flex items-center justify-center",style:{"flex-shrink":"0",display:"flex"},onClick: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(Ws),{key:0,"infinite-scroll-disabled":"disabled",class:"filterContentList",style:{height:"400px","overflow-y":"auto"},"data-key":"id","data-sources":e.unref(p),"data-component":My,keeps:10,"extra-props":{mapJumpLocationFn:e.unref(_),searchAddressType:e.unref(a)},"estimate-size":88,onTobottom:e.unref(u)},null,8,["data-sources","extra-props","onTobottom"])):e.createCommentVNode("",!0),e.unref(a)===5?(e.openBlock(),e.createElementBlock("div",{key:1,class:"flex items-center pt-[15px] pb-[10px] mt-[10px] rounded-[4px] cursor-pointer transition-all hover:bg-hy-dialog-bg-5 active:opacity-70",onClick:b[8]||(b[8]=(...g)=>e.unref(k)&&e.unref(k)(...g))},[e.createVNode(h,{name:"base-maplocation","class-name":"w-[26px] h-[26px] ml-[10px]"}),e.createElementVNode("div",Yy,[Gy,e.createElementVNode("span",qy,[e.createTextVNode("经度:"),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)==="内容错误"?"text-hy-danger":"")},e.toDisplayString(e.unref(l)||"请输入经度"),3)]),e.createElementVNode("span",Ky,[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",Xy," 加载中... ")):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createElementBlock("p",Jy," 没有更多了 ")):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-5856b649"]]);function Qt(t=He.sessionCache.getCache("mapConfig")){function n(){if(!t){He.logger.warning("use-map","initHyMap","地图配置不能为空");return}const i=bn.MapProviderFactory.createMapProvider(t.mapType);return new bn.HyMap(i,t)}function o(){if(!t){He.logger.warning("use-map","initHyPoi","地图配置不能为空");return}const i=bn.PoiProviderFactory.createMapProvider(t.mapPoiType);return new bn.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 Qy(t){return oe.post({url:"mapRail/deleteBatch",data:t,isFormData:!0})}function vy(t){return oe.post({url:t.id?"mapRail/update":"mapRail/insert",data:t,isJson:!0})}function xr(t){return oe.post({url:"mapRail/select",data:t,isFormData:!0})}function e1(t){const n=t.emit,{mapConfig:o,isShowMap:a,layersUrlList:s,H:l,POI:r}=Qt(),i=e.ref(null),c=e.ref(null),p=e.shallowRef(null),d=e.ref({railName:[{required:!0,message:x("pleaseEnterTheNameOfTheElectronicFence"),trigger:"blur"}]}),f=e.ref({}),m=e.ref(!0),_=e.ref(!1),y=e.ref(100),u=e.ref("fixedPoint"),N=e.ref(null),k=e.ref(!1),E=e.shallowRef(null);e.watch(()=>y.value,M=>{y.value=M.replace(/\D/g,"")});function b(M,z){return U=>{if(!m.value)return!1;m.value=!1,setTimeout(()=>{M(U),m.value=!0},z)}}function S(){let M="";u.value==="fixedPoint"?M=x("mouseClicksOnTheMapAndReleasesToEnd"):u.value==="circle"?M=x("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):M=x("mouseClicksOnTheMapAndRightClicksToEnd"),N.value=M}async function V(){const M=ze.getCache("userInfo");let z=null;M!=null&&M.lng&&(M!=null&&M.lat)&&(z=[M.lat,M.lng]),(z==null?void 0:z.length)===0&&(z=null),p.value=await l.map("addElectronicFence_container",{maxZoom:o.maxZoom||18,minZoom:o.minZoom||5,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 R;if((R=f.value.pointList)!=null&&R.length){const Y=f.value.pointList.map(X=>({lat:X.lat,lng:X.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(){$(),u.value!=="fixedPoint"?g():k.value=!0}function g(){const M={templineStyle:{color:"#2DF2FF"},hintlineStyle:{color:"#2DF2FF",dashArray:[5,5]}};l.pm(p.value,u.value,M,C);let z="";u.value==="circle"?z=x("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):u.value==="polygon"&&(z=x("mouseClicksOnTheMapAndRightClicksToEnd")),z&&Se.success(z)}function C(M){E.value=l.polygon(p.value,M,{weight:2,color:"#2DF2FF",opacity:1,fillColor:"#2DF2FF",fillOpacity:.3}),l.fitBounds(p.value,M.map(z=>[z.lat,z.lng])),console.log(E.value),w()}function w(){p.value&&l.removePM(p.value)}function D(M){if(k.value){const z=l.searchByCircle({lat:M.latlng.lat,lng:M.latlng.lng},y.value/2);C(z),k.value=!1}}async function T(M){const z=await xr({id:M});z.code===200&&(f.value={...z.data},_.value=!0,e.nextTick(()=>{V()}))}function B(M){var z;f.value={},y.value=100,k.value=!1,$(),u.value="fixedPoint",S(),c.value&&((z=c.value)==null||z.resetFields()),M?T(M):(_.value=!0,e.nextTick(()=>{V()}))}function L(){console.log(E.value)}function j(){var z;L();let M=[];if(E.value&&(M=l.getShapeLatLngs(E.value)),(M==null?void 0:M.length)===0||!E.value)return Se.error("请完成电子围栏绘制后再进行保存操作"),!1;(z=c.value)==null||z.validate(async U=>{if(U){const R={railName:f.value.railName};R.pointList=M.map(X=>({lng:X.lng,lat:X.lat})),R.id=f.value.id||null,(await vy(R)).code===200&&(Se.success(`${x("operationSuccessful")} !`),n("on-submit"),_.value=!1)}})}function F(){n("on-close"),_.value=!1,l.removeMap(p.value)}return{addElectronicFenceContainerRef:i,formRef:c,H:l,map:p,POI:r,isShowMap:a,rules:d,form:f,valid:m,dialogVisible:_,radius:y,mouseToolName:u,tips:N,onClose:F,show:B,onSubmit:j,tipsFn:S,initMap:V,mapRailSelectFn:T,throttle:b,startDraw:h,removePolygon:$}}const t1=t=>(e.pushScopeId("data-v-b3493890"),t=t(),e.popScopeId(),t),n1={class:"text-hy-text-main"},o1={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]"},a1={class:"dialog_body"},s1={class:""},l1={class:"form-label"},r1={class:"relative flex flex-row h-[50px]"},i1={class:"z-[1]"},c1={class:"form-label"},d1={class:"w-full flex items-center form-item"},p1={class:"form-label"},f1={class:"flex items-center form-item"},m1=t1(()=>e.createElementVNode("span",{class:"text-sm ml-[10px] text-hy-text-secondary flex-shrink"},"M",-1)),h1={class:"flex items-center form-item"},u1={class:"text-xs text-hy-text-secondary flex items-center"},_1={class:"text-hy-main"},g1={class:"text-right mt-[10px]"},y1=be(e.defineComponent({__name:"add-electronic-fence",emits:["on-submit","on-close"],setup(t,{expose:n,emit:o}){const a=o,{addElectronicFenceContainerRef:s,formRef:l,rules:r,form:i,dialogVisible:c,radius:p,mouseToolName:d,tips:f,H:m,map:_,POI:y,isShowMap:u,onClose:N,tipsFn:k,show:E,startDraw:b,removePolygon:S,onSubmit:V}=e1({emit:a});return n({show:E}),($,h)=>{const g=e.resolveComponent("svg-icon"),C=e.resolveComponent("el-input"),w=e.resolveComponent("el-form-item"),D=e.resolveComponent("el-col"),T=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),L=e.resolveComponent("el-button"),j=$t,F=e.resolveComponent("el-icon"),M=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]=R=>e.isRef(c)?c.value=R: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",n1,[e.createElementVNode("div",o1,[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]=(...R)=>e.unref(N)&&e.unref(N)(...R))},[e.createVNode(g,{name:"icon-close",width:"26",height:"26","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",a1,[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(M,{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",s1,e.toDisplayString(e.unref(x)("electronicFenceName")),1)])]),default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(i).railName,"onUpdate:modelValue":h[1]||(h[1]=R=>e.unref(i).railName=R),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",l1,e.toDisplayString(e.unref(x)("electronicFenceRange")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",r1,[e.createElementVNode("div",i1,[e.unref(u)&&e.unref(_)?(e.openBlock(),e.createBlock(na,{key:0,h:e.unref(m),map:e.unref(_),poi:e.unref(y)},null,8,["h","map","poi"])):e.createCommentVNode("",!0)])])]),_:1})]),_:1}),e.createVNode(D,{span:5},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0 pl-[20px]"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",c1,e.toDisplayString(e.unref(x)("drawingMethod")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",d1,[e.createVNode(B,{modelValue:e.unref(d),"onUpdate:modelValue":h[2]||(h[2]=R=>e.isRef(d)?d.value=R:null),placeholder:e.unref(x)("pleaseSelectTheDrawingMethod"),class:"!w-full",onChange:e.unref(k)},{default:e.withCtx(()=>[e.createVNode(T,{label:e.unref(x)("fixedPointRange"),value:"fixedPoint"},null,8,["label"]),e.createVNode(T,{label:e.unref(x)("customCircle"),value:"circle"},null,8,["label"]),e.createVNode(T,{label:e.unref(x)("customPolygon"),value:"polygon"},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])])]),_:1})]),_:1}),e.unref(d)==="fixedPoint"?(e.openBlock(),e.createBlock(D,{key:0,span:3},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",p1,e.toDisplayString(e.unref(x)("rangeDistance")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",f1,[e.createVNode(C,{modelValue:e.unref(p),"onUpdate:modelValue":h[3]||(h[3]=R=>e.isRef(p)?p.value=R:null),maxlength:"6",placeholder:e.unref(x)("unitMeter"),clearable:""},null,8,["modelValue","placeholder"]),m1])]),_: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",h1,[e.createVNode(L,{class:"button_function",onClick:e.unref(b)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("startDrawing")),1)]),_:1},8,["onClick"]),e.createVNode(L,{type:"danger",class:"",onClick:e.unref(S)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("clearDrawing")),1)]),_:1},8,["onClick"])])]),_:1})]),_:1}),e.createVNode(D,{span:24},{default:e.withCtx(()=>[e.createVNode(w,null,{default:e.withCtx(()=>[e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:1,id:"addElectronicFence_container",ref_key:"addElectronicFenceContainerRef",ref:s,class:"z-[0]"},null,512)):(e.openBlock(),e.createBlock(Gt,{key:0,class:"!h-[400px] rounded"})),e.createElementVNode("div",u1,[e.createVNode(F,{class:"text-sm"},{default:e.withCtx(()=>[e.createVNode(j)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("afterClickingToStartDrawing"))+" ",1),e.createElementVNode("span",_1,e.toDisplayString(e.unref(f)),1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"]),e.createElementVNode("div",g1,[e.createVNode(L,{type:"primary",class:"w-[100px]",onClick:e.unref(N)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("close")),1)]),_:1},8,["onClick"]),e.createVNode(L,{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-b3493890"]]);function x1(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 Qy({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 k1={class:"w-full h-full"},N1={class:"flex items-center justify-center"},b1={class:"ml-[6px]"},C1={class:"flex"},w1=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}=x1({emit:a,props:o});return e.onMounted(()=>{r.value={...o.initParams}}),(m,_)=>{const y=e.resolveComponent("svg-icon"),u=e.resolveComponent("el-button"),N=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock("div",k1,[e.createVNode(Yt,{ref_key:"AppTableRef",ref:l,height:"100%","show-footer":!0,"search-arr":[{label:e.unref(x)("electronicFenceName"),prop:"railName"}],"column-list":m.tableColumns,"req-url":"mapRail/page","search-form":e.unref(r)},{tableLeft:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(u,{type:"success",class:"",onClick:_[0]||(_[0]=k=>e.unref(p)())},{default:e.withCtx(()=>[e.createElementVNode("div",N1,[e.createVNode(y,{width:"16",height:"16",name:"base-add-3"}),e.createElementVNode("span",b1,e.toDisplayString(e.unref(x)("addElectronicFence")),1)])]),_:1}),e.renderSlot(m.$slots,"operator-left-box")])]),mapDisplay:e.withCtx(({row:k})=>[e.createElementVNode("div",null,[e.createVNode(N,{class:"switch_custom switch_width_60","model-value":e.unref(c)(k.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)(k.id,e.unref(c)(k.id))},null,8,["model-value","active-text","inactive-text","onClick"])])]),isDefault:e.withCtx(({row:k})=>[e.renderSlot(m.$slots,"isDefault",{row:k})]),operator:e.withCtx(({row:k})=>[e.createElementVNode("div",C1,[e.createVNode(Me,{name:"icon-edit",tips:e.unref(x)("edit"),onClick:E=>e.unref(p)(k.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)(k.id)},null,8,["tips","onClick"])])]),_:3},8,["search-arr","column-list","search-form"]),e.createVNode(y1,{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 E1(t){return oe.post({url:"/mediaFile/location/findAll",data:{mediaFileId:t},isFormData:!0})}function S1(t){return oe.get({url:t,xAmzAcl:!0,isFileUpload:!0,fileType:""})}function kr(t){return oe.post({url:"/mediaFile/getFileScore",data:{id:t},isFormData:!0})}function T1(t){return oe.post({url:"/mediaFile/fileScore",data:t,isJson:!0})}function D1(t){return oe.post({url:"/mediaFile/remark/findAll",data:t,isFormData:!0})}function V1(t){return oe.post({url:"/mediaFile/saveRemark",data:t,isJson:!0})}function Nr(t){return oe.post({url:"/mediaFile/remark/deleteBatch",data:t,isFormData:!0})}function $1(t){return oe.post({url:"/mediaFile/point/findAll",data:t,isFormData:!0})}function B1(t){return oe.post({url:"/mediaFile/savePoint",data:t,isJson:!0})}function I1(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),_=e.ref(!1),y=e.ref(Ke.NO_LOAD),u=e.ref(100),N=e.computed(()=>y.value!==Ke.NO_LOAD&&y.value!==Ke.CAN_NOT_PLAY),k=e.computed(()=>o.value.playList.find(U=>U.id===d.value.id));function E(U,R){return new Promise((Y,X)=>{const P=new XMLHttpRequest;P.open("GET",R),P.responseType="blob",P.onload=function(){const v=P.response;Y({name:U,blob:v})},P.onerror=function(){console.error("could not download file")},P.send()})}function b(){d.value&&d.value.id&&(pe.ElMessage.warning(x("startDownloading")),E(d.value.fileName,d.value.filePath).then(U=>{const R=U.blob,Y=new FileReader;Y.readAsDataURL(R),Y.onload=X=>{const P=URL.createObjectURL(new Blob([R])),v=document.createElement("a");document.body.appendChild(v),v.href=P,v.download=U.name,v.target="_blank",v.click(),v.remove()}}))}function S(U){U===3?r.value=1:r.value=U+1}function V(U){s.value=U;const R=document.querySelector("#audio-el");R&&R.playbackRate&&(R.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&&k.value&&n("play-start",{audioUrl:p.value,playItem:k.value})}),i.value.addEventListener("pause",()=>{z(Ke.PAUSE)}),i.value.addEventListener("volumechange",()=>{u.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),!_.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,R)=>{const Y=h();if(Y!==o.value.playList.length-1){const X=o.value.playList[Y+1];w(X.filePath,X),U({code:200})}else pe.ElMessage.warning(x("currentIsTheLastItem"))})}function C(){const U=h();if(U>0&&U!==o.value.playList.length){const R=o.value.playList[U-1];w(R.filePath,R)}else pe.ElMessage.warning(x("currentIsTheFirstItem"))}function w(U,R){if(R)R.id!==d.value.id&&(p.value="",d.value=R,i.value.src=U,o.value.getAudioContextType?M(R.id):(p.value=U,i.value.play()));else{if(p.value==="")return!1;i.value.play()}}function D(){i.value.play()}function T(){i.value.pause()}function B(){m.value=f.value*(c.value/100),i.value.currentTime=m.value,_.value=!1}function L(){i.value.volume=u.value/100}function j(U,R){return U=Number.parseFloat(`${U}`),R=Number.parseFloat(`${R}`),Number.isNaN(U)||Number.isNaN(R)||R<=0?0:Math.round(U/R*1e4)/100}function F(U){i.value.currentTime=U}async function M(U){const R=await S1(`/mediaFile/redirect?mediaFileId=${U}`);i.value.src=URL.createObjectURL(R),p.value=URL.createObjectURL(R),i.value.play()}function z(U){y.value=U,n("on-audio-state",U)}return{isDrop:_,speedList:a,speed:s,playRuleslist:l,playRules:r,audioEl:i,value:c,audioUrl:p,totalTime:f,curTime:m,audioState:y,volumeValue:u,downloadFn:b,playRulesFn:S,speedFn:V,initPlayer:$,playNext:g,playPrevious:C,playAudio:w,resumePlay:D,pauseAudio:T,getNowWh:B,changeVolume:L,getPercent:j,jumpDuration:F,canPlay:N}}const A1=t=>(e.pushScopeId("data-v-27a5006a"),t=t(),e.popScopeId(),t),L1={class:"w-full flex items-center box-border"},F1=A1(()=>e.createElementVNode("audio",{id:"audio-el"},null,-1)),O1={class:"flex-grow w-0 mx-3 progress-box"},R1={class:"flex justify-between items-center text-xs text-hy-text-secondary mt-1"},P1={class:"flex-shrink-0 flex"},M1={class:"flex items-center justify-center p-[10px_0]"},U1={class:"text-hy-text-secondary text-xs w-full"},z1=["onClick"],W1={class:"flex items-center click-box"},j1={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"},H1={class:"click-box"},Y1={key:1},G1=["onClick"],q1={class:"click-box mx-1"},K1={class:"flex items-center justify-center"},X1={class:"click-box click-box"},br=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:_,curTime:y,audioState:u,volumeValue:N,downloadFn:k,playRulesFn:E,speedFn:b,initPlayer:S,playNext:V,playPrevious:$,playAudio:h,resumePlay:g,pauseAudio:C,getNowWh:w,changeVolume:D,getPercent:T,jumpDuration:B,canPlay:L}=I1({emit:s,props:a});return e.onBeforeUnmount(()=>{d.value=null}),e.onMounted(()=>{E(3),b(1),S()}),n({jumpDuration:B,resumePlay:g,pauseAudio:C,playAudio:h}),(j,F)=>{const M=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-popover"),U=e.resolveComponent("el-tooltip"),R=e.resolveComponent("el-slider");return e.openBlock(),e.createElementBlock("div",L1,[F1,e.createElementVNode("div",null,[e.createElementVNode("span",{onClick:F[0]||(F[0]=(...Y)=>e.unref($)&&e.unref($)(...Y))},[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-previous-btn"})]),e.unref(u)!==e.unref(Ke).PLAYING&&e.unref(L)?(e.openBlock(),e.createElementBlock("span",{key:0,class:"mx-1",onClick:F[1]||(F[1]=Y=>e.unref(h)(e.unref(m)))},[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-play-btn"})])):e.createCommentVNode("",!0),e.unref(u)===e.unref(Ke).PLAYING?(e.openBlock(),e.createElementBlock("span",{key:1,class:"mx-1",onClick:F[2]||(F[2]=(...Y)=>e.unref(C)&&e.unref(C)(...Y))},[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-pause-btn"})])):e.createCommentVNode("",!0),e.createElementVNode("span",{onClick:F[3]||(F[3]=(...Y)=>e.unref(V)&&e.unref(V)(...Y))},[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-next-btn"})])]),e.createElementVNode("div",O1,[e.withDirectives(e.createElementVNode("input",{id:"progress",ref:"progressRef","onUpdate:modelValue":F[4]||(F[4]=Y=>e.isRef(f)?f.value=Y:null),max:"100",style:e.normalizeStyle({background:`linear-gradient(to right, var(--hy-main) ${e.unref(T)(e.unref(f),100)}%, var(--hy-main-alpha-50) ${e.unref(T)(e.unref(f),100)}% `}),type:"range",class:"relative w-full",onMouseup:F[5]||(F[5]=Y=>e.unref(w)()),onMousedown:F[6]||(F[6]=Y=>l.value=!0)},null,36),[[e.vModelText,e.unref(f)]]),e.createElementVNode("div",R1,[e.createElementVNode("span",null,e.toDisplayString(e.unref(at)(e.unref(y)))+'"',1),e.createElementVNode("span",null,e.toDisplayString(e.unref(at)(e.unref(_)))+'"',1)])]),e.createElementVNode("div",P1,[e.createVNode(z,{placement:"top",width:"62px","popper-class":"!p-0",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",W1,[e.createElementVNode("div",j1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(Y,X)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:X},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",M1,[e.createElementVNode("ul",U1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(Y,X)=>(e.openBlock(),e.createElementBlock("li",{key:X,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:P=>e.unref(b)(Y.value)},e.toDisplayString(Y.label),11,z1))),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",H1,[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-down-btn",onClick:e.unref(k)},null,8,["onClick"])])]),_:1},8,["content"])):e.createCommentVNode("",!0),j.playRulesType?(e.openBlock(),e.createElementBlock("span",Y1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(Y,X)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:`${X}playRuleslist`,onClick:P=>e.unref(E)(Y.value)},[e.createVNode(U,{effect:"dark",content:Y.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",q1,[e.createVNode(M,{width:"26",height:"26",name:Y.svgName},null,8,["name"])])]),_:2},1032,["content"])],8,G1)),[[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",X1,[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-volumn"})])]),_:1},8,["content"])])]),default:e.withCtx(()=>[e.createElementVNode("div",K1,[e.createVNode(R,{modelValue:e.unref(N),"onUpdate:modelValue":F[7]||(F[7]=Y=>e.isRef(N)?N.value=Y:null),class:"volume-slider",vertical:"",height:"105px",onInput:F[8]||(F[8]=Y=>e.unref(D)())},null,8,["modelValue"])])]),_:1})])])}}}),[["__scopeId","data-v-27a5006a"]]);function J1(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),_=e.ref(0),y=e.ref(!1),u=e.ref(!1),N=e.ref(100);e.ref(!1);const k=e.computed(()=>f.value!=="NO_LOAD"&&f.value!=="CAN_NOT_PLAY"),E=e.computed(()=>o.value.playList.find(X=>X.id===i.value.id));function b(X){X===3?r.value=1:r.value=X+1}function S(X){s.value=X;const P=document.getElementById("videoPlayer");P&&(P.playbackRate=X)}function V(){return o.value.playList.findIndex(X=>X.id===i.value.id)}function $(){const X=V();if(X!==o.value.playList.length-1){const P=o.value.playList[X+1];g(P.filePath,P)}else pe.ElMessage.warning(x("currentIsTheLastItem"))}function h(){const X=V();if(X>0&&X!==o.value.playList.length){const P=o.value.playList[X-1];g(P.filePath,P)}else pe.ElMessage.warning(x("currentIsTheFirstItem"))}function g(X,P){if(P)P.id!==i.value.id&&(i.value=P,c.value=X,d.value.src=X);else if(c.value==="")return!1;d.value.play(),f.value="PLAYING"}function C(X,P){return new Promise((v,Te)=>{const he=new XMLHttpRequest;he.open("GET",P),he.responseType="blob",he.onload=function(){const ke=he.response;v({name:X,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(X=>{const P=X.blob,v=new FileReader;v.readAsDataURL(P),v.onload=Te=>{const he=URL.createObjectURL(new Blob([P])),ke=document.createElement("a");document.body.appendChild(ke),ke.href=he,ke.download=X.name,ke.target="_blank",ke.click(),ke.remove()}}))}function D(){d.value.volume=N.value/100}function T(){m.value=_.value*(p.value/100),d.value.currentTime=m.value,y.value=!1}function B(X,P){return X=Number.parseFloat(X),P=Number.parseFloat(P),Number.isNaN(X)||Number.isNaN(P)||P<=0?0:Math.round(X/P*1e4)/100}function L(){d.value.play()}function j(){d.value&&d.value.pause(),f.value="PAUSE"}function F(){d.value=document.querySelector("#videoPlayer"),d.value.addEventListener("canplay",()=>{f.value="IS_LOAD",_.value=Math.floor(d.value.duration),n("can-play",_.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/_.value*100,n("on-time-update",m.value))},!1)}function M(){document.addEventListener("fullscreenchange",X=>{document.fullscreenElement?u.value=!0:u.value=!1})}function z(X){d.value.currentTime=X}function U(){u.value?Y():R()}function R(){const X=document.documentElement;X.requestFullscreen&&X.requestFullscreen()}function Y(){const X=document;X.exitFullscreen&&X.exitFullscreen()}return{canPlay:k,speedList:a,speed:s,playRuleslist:l,playRules:r,videoUrl:c,value:p,videoEl:d,videoState:f,curTime:m,totalTime:_,isDrop:y,isFullScreen:u,volumeValue:N,playRulesFn:b,speedFn:S,playNext:$,playPrevious:h,playVideo:g,downloadFn:w,changeVolume:D,getNowWh:T,getPercent:B,resumePlay:L,pauseVideo:j,initVideo:F,initFullScreenEvent:M,jumpDuration:z,clickFullScreen:U}}const Z1=t=>(e.pushScopeId("data-v-d0d3957a"),t=t(),e.popScopeId(),t),Q1={class:"flex-grow h-0 relative"},v1={key:0,class:"absolute right-[10px] top-[4px] z-[2]"},ex={key:0,class:"my-2 click-box"},tx={key:1},nx=["onClick"],ox={class:"click-box"},ax=Z1(()=>e.createElementVNode("video",{id:"videoPlayer",width:"100%",header:"100%"},[e.createElementVNode("source",{type:"video/mp4"})],-1)),sx={class:"progress-box px-2"},lx={class:"my-2 flex items-center justify-between px-2 relative"},rx={class:"text-xs text-hy-text-secondary"},ix={key:0,class:"mx-2 flex items-center justify-center absolute left-1/2 -translate-x-1/2"},cx={class:"flex items-center"},dx={class:"flex items-center justify-center p-[10px_0]"},px={class:"text-hy-text-secondary text-xs w-full"},fx=["onClick"],mx={class:"flex items-center click-box"},hx={class:"border h-[24px] box-border border-hy-border-2 rounded text-xs text-hy-text-secondary px-2 flex items-center justify-center"},ux={class:"flex items-center justify-center"},_x={class:"mx-2"},gx={class:"click-box"},yx={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:_,curTime:y,totalTime:u,isDrop:N,isFullScreen:k,volumeValue:E,playRulesFn:b,speedFn:S,playNext:V,playPrevious:$,playVideo:h,downloadFn:g,changeVolume:C,getNowWh:w,getPercent:D,resumePlay:T,pauseVideo:B,initVideo:L,initFullScreenEvent:j,jumpDuration:F,clickFullScreen:M}=J1({emit:s,props:a});return e.onBeforeUnmount(()=>{m.value=null}),e.onMounted(()=>{b(3),S(1),L(),j()}),n({jumpDuration:F,resumePlay:T,pauseVideo:B,playVideo:h}),(z,U)=>{const R=e.resolveComponent("svg-icon"),Y=e.resolveComponent("el-tooltip"),X=e.resolveComponent("el-popover"),P=e.resolveComponent("el-slider");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([{"fixed top-0 left-0 z-[10]":e.unref(k)},"w-full h-full rounded border border-hy-border-2 flex flex-col bg-hy-page-bg"])},[e.createElementVNode("div",Q1,[z.downloadFilesType||z.playRulesType?(e.openBlock(),e.createElementBlock("div",v1,[z.downloadFilesType?(e.openBlock(),e.createElementBlock("div",ex,[e.createVNode(R,{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",tx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(v,Te)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:`${Te}playRuleslist`,onClick:he=>e.unref(b)(v.value)},[e.createVNode(Y,{class:"item click-box",effect:"dark",content:v.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",ox,[e.createVNode(R,{width:"26",height:"26",name:v.svgName},null,8,["name"])])]),_:2},1032,["content"])],8,nx)),[[e.vShow,e.unref(p)===v.value]])),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),ax]),e.createElementVNode("div",sx,[e.withDirectives(e.createElementVNode("input",{id:"progress",ref:"progressRef","onUpdate:modelValue":U[0]||(U[0]=v=>e.isRef(f)?f.value=v: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]=v=>e.unref(w)()),onMousedown:U[2]||(U[2]=v=>N.value=!0)},null,36),[[e.vModelText,e.unref(f)]])]),e.createElementVNode("div",lx,[e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",rx,[e.createElementVNode("span",null,e.toDisplayString(e.unref(at)(e.unref(y)))+'"',1),e.createTextVNode("/ "),e.createElementVNode("span",null,e.toDisplayString(e.unref(at)(e.unref(u)))+'"',1)],512),[[e.vShow,e.unref(u)!==1/0]])]),e.unref(l)?(e.openBlock(),e.createElementBlock("div",ix,[e.createElementVNode("span",{onClick:U[3]||(U[3]=(...v)=>e.unref($)&&e.unref($)(...v))},[e.createVNode(R,{class:"click-box",width:"26",height:"26",name:"media-center-audio-previous-btn"})]),e.unref(_)!=="PLAYING"&&e.unref(l)?(e.openBlock(),e.createElementBlock("span",{key:0,class:"mx-1",onClick:U[4]||(U[4]=v=>e.unref(h)(e.unref(d)))},[e.createVNode(R,{class:"click-box",width:"26",height:"26",name:"media-center-audio-play-btn"})])):e.createCommentVNode("",!0),e.unref(_)==="PLAYING"?(e.openBlock(),e.createElementBlock("span",{key:1,class:"mx-1",onClick:U[5]||(U[5]=(...v)=>e.unref(B)&&e.unref(B)(...v))},[e.createVNode(R,{class:"click-box",width:"26",height:"26",name:"media-center-audio-pause-btn"})])):e.createCommentVNode("",!0),e.createElementVNode("span",{onClick:U[6]||(U[6]=(...v)=>e.unref(V)&&e.unref(V)(...v))},[e.createVNode(R,{class:"click-box",width:"26",height:"26",name:"media-center-audio-next-btn"})])])):e.createCommentVNode("",!0),e.createElementVNode("div",cx,[e.createVNode(X,{placement:"top",width:"62px","popper-class":"!p-0",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",mx,[e.createElementVNode("div",hx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(v,Te)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:Te},e.toDisplayString(v.value===1?e.unref(x)("multiples"):v.label),1)),[[e.vShow,v.value===e.unref(i)]])),128))])])]),default:e.withCtx(()=>[e.createElementVNode("div",dx,[e.createElementVNode("ul",px,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(v,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":v.value===e.unref(i)}]),onClick:he=>e.unref(S)(v.value)},e.toDisplayString(v.label),11,fx))),128))])])]),_:1}),e.createVNode(X,{placement:"top",trigger:"click",width:"40px"},{reference:e.withCtx(()=>[e.createElementVNode("div",_x,[e.createVNode(Y,{effect:"dark",content:e.unref(x)("adjustPlaybackVolume"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",gx,[e.createVNode(R,{width:"24",height:"24",name:"media-center-audio-volumn"})])]),_:1},8,["content"])])]),default:e.withCtx(()=>[e.createElementVNode("div",ux,[e.createVNode(P,{modelValue:e.unref(E),"onUpdate:modelValue":U[7]||(U[7]=v=>e.isRef(E)?E.value=v:null),class:"volume-slider",vertical:"",height:"105px",onInput:U[8]||(U[8]=v=>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",yx,[e.createVNode(R,{width:"18",height:"18",class:"click-box",name:e.unref(k)?"media-center-audio-reduce":"media-center-audio-enlarge",onClick:e.unref(M)},null,8,["name","onClick"])])]),_:1},8,["content"])])])],2)}}}),[["__scopeId","data-v-d0d3957a"]]),xx={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,_=l.offsetHeight,y=document.body.clientWidth,u=document.body.clientHeight,N=l.offsetLeft,k=y-l.offsetLeft-m,E=l.offsetTop,b=u-l.offsetTop-_;let S=r(l,"left"),V=r(l,"top"),$=null,h=null,g=null,C=null;S.includes("%")?(S=+document.body.clientWidth*(+S.replace(/%/g,"")/100),V=+document.body.clientHeight*(+V.replace(/%/g,"")/100)):(S=+S.replace(/\px/g,""),V=+V.replace(/\px/g,""));const w=function(B){let L=B.clientX-d,j=B.clientY-f;-L>N?(L=-N,$="left"):L>k?(L=k,$="right"):$=null,-j>E?(j=-E,g="top"):j>b?(j=b,g="bottom"):g=null,h=L+S,C=j+V,l.style.cssText+=`;left:${h}px;top:${C}px;`},D=function(B){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 T=He.sessionCache.getCache("plus-draggable")||{};Number.parseInt(t.style.zIndex)!==Number.parseInt(T.index)&&(T.index+=1,t.style.zIndex=T.index,He.sessionCache.setCache("plus-draggable",T))};s.onmousedown=i,s.touchstart=i},mounted:t=>{const n=He.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,He.sessionCache.setCache("plus-draggable",n)},beforeUnmount:()=>{const t=He.sessionCache.getCache("plus-draggable")||{};t.num=t.num-1,t.num===0&&(t.index=1e3),He.sessionCache.setCache("plus-draggable",t)}},kx={class:"relative w-full h-full"},Nx=e.createElementVNode("div",{class:"w-full h-full relative z-[1]"},[e.createElementVNode("div",{id:"amap-test",class:"w-full h-full"})],-1),Cr=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}=Qt(),c=e.ref({}),p=e.reactive(He.sessionCache.getCache("userInfo")),d=e.reactive(He.sessionCache.getCache("colorObject")),f=e.ref([]);e.onMounted(async()=>{l&&e.nextTick(()=>{m()})});async function m(){let u=[0,0];p.lng&&p.lat&&(u=[p.lat,p.lng]),o.value=await i.map("amap-test",{maxZoom:s.maxZoom||18,minZoom:s.minZoom||5,zoom:s.zoom||13,center:u,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:r,layerType:s.satelliteMap}),o.value.on("complete",N=>_())}function _(){if(!l||f.value.length===0)return;const u=f.value.map(N=>[N.lat,N.lng]);a.value=i.trackPlayer(o.value,u,{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,u)}async function y(u){if(c.value=u,c.value){const N=await E1(c.value.id);if(N.code===200){const k=N.data||[];k&&k.length!==0?f.value=k:c.value.lng&&c.value.lat?f.value=[{lng:c.value.lng,lat:c.value.lat}]:f.value=[],e.nextTick(()=>{_()})}}}return n({setPlayItem:y}),(u,N)=>(e.openBlock(),e.createElementBlock("div",kx,[e.withDirectives(e.createVNode(Gt,{ref:"mapNoPermissions",class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(l)]]),Nx]))}});function bx(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 T1(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 Cx={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"},wx={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},Ex={class:"absolute right-[10px]"},Sx={class:"dialog_body"},Tx={class:"text-center m-[20px_0_40px_0]"},Dx={class:"flex items-center justify-center mb-[10px] text-sm"},Vx={class:"text-hy-text-main mr-[6px]"},$x={class:"text-hy-text-secondary text-xs"},Bx={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(ze.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}=bx({emit:a});return n({show:c}),e.onMounted(()=>{}),(f,m)=>{const _=e.resolveComponent("svg-icon"),y=e.resolveComponent("el-rate"),u=e.resolveComponent("el-button"),N=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(N,{"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",Cx,[e.createElementVNode("div",wx,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("confirmScore")),1),e.createElementVNode("div",Ex,[e.createVNode(_,{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",Sx,[e.createElementVNode("div",Tx,[e.createElementVNode("div",Dx,[e.createElementVNode("span",Vx,e.toDisplayString(e.unref(x)("confirmAs")),1),e.createVNode(y,{modelValue:e.unref(r),"onUpdate:modelValue":m[0]||(m[0]=k=>e.isRef(r)?r.value=k:null),"void-color":s.main,colors:l.value},null,8,["modelValue","void-color","colors"])]),e.createElementVNode("span",$x,e.toDisplayString(e.unref(x)("noSecondaryModificationAfterScoring")),1)]),e.createElementVNode("div",Bx,[e.createVNode(u,{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(u,{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 Ix(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(ze.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 $1({mediaFileId:o.value.mediaFileId});b.code===200&&(l.value=b.data,l.value.sort((S,V)=>S.time-V.time))}}function _(){var b;(b=a.value)==null||b.validate(async S=>{if(S){if(r.value.content.trim()==="")return pe.ElMessage.error(x("pleaseEnterTheDotContent")),!1;(await B1({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 u(){r.value={},n("on-edit"),c.value=!0}function N(b){r.value=JSON.parse(JSON.stringify(b)),c.value=!0,n("on-edit")}function k(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 Nr({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:_,playPoint:y,addPoint:u,editPoint:N,showDeleteDialog:k,deletePoint:E,userInfo:d}}const sa=t=>(e.pushScopeId("data-v-ae4b4f28"),t=t(),e.popScopeId(),t),Ax={class:"w-full h-full"},Lx={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},Fx={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},Ox={class:"text-hy-text-main font-bold text-sm"},Rx={class:"flex items-center justify-center"},Px={class:"ml-[6px]"},Mx={class:"flex-grow h-0"},Ux={class:"h-full flex flex-col"},zx={class:"p-3 pb-0"},Wx={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col text-xs"},jx={class:"flex-grow h-0"},Hx={class:"flex items-center justify-between"},Yx={class:"text-hy-text-secondary mr-1"},Gx=sa(()=>e.createElementVNode("span",null,"/",-1)),qx={key:0,class:"px-3 py-1 text-hy-text-main text-xs flex-grow h-0 overflow-auto"},Kx={class:"flex items-center justify-between"},Xx={class:"flex-grow w-0 mr-1 flex items-center"},Jx={class:"ml-2 flex-grow w-0"},Zx={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},Qx={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},vx={key:0,class:"flex-shrink-0 flex"},ek={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},tk={class:"flex-grow h-0"},nk={class:"flex items-center justify-between"},ok={class:"text-hy-text-secondary mr-1"},ak=sa(()=>e.createElementVNode("span",null,"/",-1)),sk={class:"px-2 mt-3 mb-1 text-xs"},lk={class:"flex items-center justify-between"},rk={class:"text-hy-text-secondary mr-1"},ik=sa(()=>e.createElementVNode("span",null,"/",-1)),ck={class:"flex items-center mt-1"},dk={class:"text-hy-text-secondary mr-1"},pk={class:"flex-grow w-0 ml-1"},fk={key:1,class:"w-full flex-grow h-0 flex items-center justify-center rounded"},mk={class:"text-center text-xs text-hy-text-secondary"},hk={class:"mt-3"},wr=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:_,playPoint:y,addPoint:u,editPoint:N,showDeleteDialog:k,deletePoint:E,userInfo:b}=Ix({emit:a,props:o});return e.watch(()=>o.mediaFileId,()=>{m()}),e.onMounted(()=>{l.value=b.id}),(S,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",Ax,[e.createElementVNode("div",Lx,[e.createElementVNode("div",Fx,[e.createElementVNode("div",Ox,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(u)())},{default:e.withCtx(()=>[e.createElementVNode("div",Rx,[e.createVNode($,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),e.createElementVNode("span",Px,e.toDisplayString(e.unref(x)("addDot-0")),1)])]),_:1},512),[[e.vShow,S.mediaFileId]])])]),e.createElementVNode("div",Mx,[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",Ux,[e.withDirectives(e.createElementVNode("div",zx,[e.createElementVNode("div",Wx,[e.createElementVNode("div",jx,[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",Hx,[e.createElementVNode("div",null,[e.createElementVNode("span",Yx,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(at)(Number(e.unref(i).time||o.mediaFileCurTime)))+" ",1),Gx,e.createTextVNode(" "+e.toDisplayString(e.unref(at)(Number(S.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(_)},{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",qx,[(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",Kx,[e.createElementVNode("div",Xx,[e.createVNode(xt,{url:D.remarkUserHeadImg},null,8,["url"]),e.createElementVNode("div",Jx,[e.createElementVNode("p",Zx,e.toDisplayString(D.remarkUserName),1),e.createElementVNode("p",Qx,e.toDisplayString(D.remarkUserSerialNum),1)])]),D.remarkUserId===e.unref(l)&&e.unref(i).id!==D.id?(e.openBlock(),e.createElementBlock("div",vx,[e.createVNode(Me,{"class-nmae":"HyRoundButtonV2",name:"media-center-2-audio-play-2",tips:e.unref(x)("play"),onClick:T=>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:T=>e.unref(N)(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:T=>e.unref(k)(D.id)},null,8,["tips","onClick"])])):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",ek,[e.createElementVNode("div",tk,[e.createVNode(C,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(i).content,"onUpdate:modelValue":V[2]||(V[2]=T=>e.unref(i).content=T),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",nk,[e.createElementVNode("div",null,[e.createElementVNode("span",ok,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(at)(Number(e.unref(i).time||o.mediaFileCurTime)))+" ",1),ak,e.createTextVNode(" "+e.toDisplayString(e.unref(at)(Number(S.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(_)},{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",sk,[e.createElementVNode("div",lk,[e.createElementVNode("div",null,[e.createElementVNode("span",rk,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(at)(Number(D.time)))+" ",1),ik,e.createTextVNode(" "+e.toDisplayString(e.unref(at)(Number(S.mediaFileTotalTime))),1)]),e.createElementVNode("div",null,[e.createElementVNode("p",null,e.toDisplayString(D.updateDtm||D.createDtm),1)])]),e.createElementVNode("div",ck,[e.createElementVNode("span",dk,e.toDisplayString(e.unref(x)("dotName")),1),e.createElementVNode("div",pk,e.toDisplayString(D.content),1)])],512),[[e.vShow,!(e.unref(i).id===D.id&&e.unref(p))]])]))),128))])):(e.openBlock(),e.createElementBlock("div",fk,[e.createElementVNode("div",mk,[e.createVNode($,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),e.createElementVNode("div",hk,e.toDisplayString(e.unref(x)("noData")),1)])]))])]),_:1},8,["model","rules"])])])])}}}),[["__scopeId","data-v-ae4b4f28"]]);function uk(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(ze.getCache("userInfo"));function f(){l.value=!1,n("on-close"),r.value={content:""}}async function m(){if(o.value.mediaFileId){const b=await D1({mediaFileId:o.value.mediaFileId});b.code===200&&(c.value=b.data,n("on-getData",c.value))}}function _(){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 V1(r.value)).code===200&&(m(),f())}})}function u(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")},()=>{k()})}function N(){p.value=""}async function k(){(await Nr({ids:p.value})).code===200&&(m(),N(),n("on-delete"))}function E(b){var S;(S=a.value)==null||S.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:_,onSubmit:y,showDeleteDialog:u,onCloseDeleteMark:N,deleteMark:k,editMark:E,userInfo:d}}const _k={class:"w-full h-full"},gk={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},yk={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},xk={class:"text-hy-text-main font-bold text-sm"},kk={class:"flex items-center justify-center"},Nk={class:"ml-[6px]"},bk={class:"flex-grow h-0"},Ck={class:"h-full flex flex-col"},wk={class:"p-3 pb-0"},Ek={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col"},Sk={class:"flex-grow h-0"},Tk={class:"h-[40px] flex items-end justify-end"},Dk={key:0,class:"px-3 py-1 text-hy-text-main text-xs flex-grow h-0 overflow-auto"},Vk={class:"flex items-center justify-between"},$k={class:"flex-grow w-0 mr-1 flex items-center"},Bk={class:"ml-2 flex-grow w-0"},Ik={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},Ak={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},Lk={key:0,class:"flex-shrink-0 flex items-center"},Fk={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},Ok={class:"flex-grow h-0"},Rk={class:"h-[40px] flex items-end justify-end"},Pk={key:1,class:"w-full flex-grow h-0 flex items-center justify-center rounded"},Mk={class:"text-center text-xs text-hy-text-secondary"},Uk={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:_,showDeleteDialog:y,onCloseDeleteMark:u,deleteMark:N,editMark:k,userInfo:E}=uk({emit:a,props:o});return e.watch(()=>o.mediaFileId,()=>{f()}),e.onMounted(()=>{l.value=E.id}),(b,S)=>{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",_k,[e.createElementVNode("div",gk,[e.createElementVNode("div",yk,[e.createElementVNode("div",xk,e.toDisplayString(e.unref(x)("reminderList")),1),e.createElementVNode("div",null,[e.withDirectives(e.createVNode($,{type:"success",class:"",onClick:S[0]||(S[0]=w=>e.unref(m)())},{default:e.withCtx(()=>[e.createElementVNode("div",kk,[e.createVNode(V,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),e.createElementVNode("span",Nk,e.toDisplayString(e.unref(x)("addRemarks-0")),1)])]),_:1},512),[[e.vShow,b.mediaFileId]])])]),e.createElementVNode("div",bk,[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",Ck,[e.withDirectives(e.createElementVNode("div",wk,[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":S[1]||(S[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",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(_)},{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",Dk,[(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",Vk,[e.createElementVNode("div",$k,[e.createVNode(xt,{url:w.remarkUserHeadImg},null,8,["url"]),e.createElementVNode("div",Bk,[e.createElementVNode("p",Ik,e.toDisplayString(w.remarkUserName),1),e.createElementVNode("p",Ak,e.toDisplayString(w.remarkUserSerialNum),1)])]),w.remarkUserId===e.unref(l)&&e.unref(i).id!==w.id?(e.openBlock(),e.createElementBlock("div",Lk,[e.createVNode(Me,{class:"!mx-0","class-nmae":"HyRoundButtonV2",name:"icon-edit",tips:e.unref(x)("edit"),onClick:D=>e.unref(k)(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",Fk,[e.createElementVNode("div",Ok,[e.createVNode(g,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(i).content,"onUpdate:modelValue":S[2]||(S[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",Rk,[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(_)},{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",Pk,[e.createElementVNode("div",Mk,[e.createVNode(V,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),e.createElementVNode("div",Uk,e.toDisplayString(e.unref(x)("noData")),1)])]))])]),_:1},8,["model","rules"])])])])}}});function Er(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(ze.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 _(){n("closeDrawer")}function y(){}function u(g){N(g.playItem)}async function N(g){const C=g.id;if(i.value.id!==C){i.value={...g},l.value=!0;const w=await kr(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 k(g){c.value=g}function E(g){p.value=g}function b(){if(t.params.getPlayerRef)return t.params.getPlayerRef()}function S(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:_,playEnd:y,onPlayStart:u,playStart:N,canPlay:k,onTimeUpdate:E,playPoint:S,onEditMark:V,onEditorClose:$,setAudioState:h}}const ra=t=>(e.pushScopeId("data-v-e67170d8"),t=t(),e.popScopeId(),t),zk={class:"h-full text-hy-text-main flex flex-col"},Wk={class:"h-[60px] flex justify-between items-center px-5 hy-dialog_header"},jk={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},Hk={class:"text-hy-danger"},Yk={class:"flex-grow h-0 overflow-y-auto"},Gk={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},qk={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},Kk={class:"audio-play-icon-box flex"},Xk={class:"relative"},Jk={class:"point_area"},Zk={class:"point point_dot relative"},Qk={class:"w-full h-full rounded-full bg-hy-page-bg-2 flex items-center justify-center text-hy-text-main"},vk={class:"duration-1000"},eN=[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))],tN={key:0,class:"w-full file-info"},nN={class:"info-item"},oN={class:"info-label"},aN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},sN={class:"info-item"},lN={class:"info-label"},rN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},iN={key:0,class:"flex items-center"},cN={key:1,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={key:0},gN={key:1},yN={key:2,class:"text-hy-danger"},xN={key:3,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"},wN={class:"info-label"},EN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},SN={class:"info-item"},TN={class:"info-label"},DN={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},VN={key:1,class:"text-hy-text-secondary"},$N={class:"info-item"},BN={class:"info-label"},IN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},AN={class:"info-item flex items-center text-xs"},LN={class:"info-label"},FN={class:"flex items-center rateBox"},ON={key:0,class:"text-hy-text-secondary"},RN={key:1,class:"text-hy-text-main"},PN={class:"info-item"},MN={class:"info-label"},UN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},zN={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},WN={class:"mb-1"},jN={class:"w-[60%] flex"},HN={class:"flex-grow w-0 ml-2"},YN={class:"flex-grow w-0 ml-2"},GN=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:_,audioCurTime:y,fileScoreShow:u,closeDrawer:N,playEnd:k,onPlayStart:E,playStart:b,canPlay:S,onTimeUpdate:V,playPoint:$,onEditMark:h,onEditorClose:g,setAudioState:C}=Er({emit:a,params:{getPlayerRef:()=>s.value,onEditMark:()=>{s.value.pauseAudio()}}});return e.onBeforeUnmount(()=>{N()}),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 T=e.resolveComponent("svg-icon"),B=e.resolveComponent("el-col"),L=e.resolveComponent("el-rate"),j=e.resolveComponent("el-row"),F=Cr;return e.openBlock(),e.createElementBlock("div",zk,[e.createVNode(aa,{ref_key:"fileScoreRef",ref:l,onOnClose:D[0]||(D[0]=M=>f.value=null)},null,512),e.createElementVNode("div",Wk,[e.createElementVNode("div",jk,[e.unref(m).mark?(e.openBlock(),e.createBlock(T,{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",Hk,[e.createVNode(T,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])]),e.createElementVNode("div",Yk,[e.createElementVNode("div",Gk,[e.createElementVNode("div",qk,[e.createElementVNode("div",Kk,[e.createElementVNode("div",Xk,[e.createElementVNode("div",Jk,[e.createElementVNode("div",Zk,[e.createElementVNode("div",Qk,[e.createVNode(T,{width:"60%",height:"60%",name:"menu-micphone--2-select"})])]),e.withDirectives(e.createElementVNode("div",vk,eN,512),[[e.vShow,e.unref(p)===e.unref(Ke).PLAYING]])])])]),e.unref(m)&&e.unref(m).id?(e.openBlock(),e.createElementBlock("div",tN,[e.createVNode(j,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:e.withCtx(()=>[e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",nN,[e.createElementVNode("span",oN,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",aN,e.toDisplayString(e.unref(m).uploadDateStr),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",sN,[e.createElementVNode("span",lN,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",rN,[e.unref(m).mark?(e.openBlock(),e.createElementBlock("span",iN,[e.createTextVNode(e.toDisplayString(e.unref(x)("star"))+" ",1),e.createVNode(T,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-[4px] -top-[2px]"})])):(e.openBlock(),e.createElementBlock("span",cN,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",dN,[e.createElementVNode("span",pN,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",fN,e.toDisplayString(e.unref(m).devUserName),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",mN,[e.createElementVNode("span",hN,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",uN,[e.unref(m).type===1?(e.openBlock(),e.createElementBlock("span",_N,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(m).type===2?(e.openBlock(),e.createElementBlock("span",gN,e.toDisplayString(e.unref(x)("task")),1)):e.unref(m).type===3?(e.openBlock(),e.createElementBlock("span",yN,"SOS")):(e.openBlock(),e.createElementBlock("span",xN,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",kN,[e.createElementVNode("span",NN,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",bN,e.toDisplayString(e.unref(m).deviceId),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",CN,[e.createElementVNode("span",wN,e.toDisplayString(e.unref(x)("audioDuration")),1),e.createElementVNode("span",EN,e.toDisplayString(e.unref(_))+"s ",1)])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",SN,[e.createElementVNode("span",TN,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(m).expiredDtm?(e.openBlock(),e.createElementBlock("span",DN,e.toDisplayString(e.unref(m).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",VN,"-"))])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",$N,[e.createElementVNode("span",BN,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",IN,e.toDisplayString(e.unref(Ho)(e.unref(m).fileSize)),1)])]),_:1}),e.withDirectives(e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",AN,[e.createElementVNode("span",LN,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",FN,[e.createVNode(L,{modelValue:e.unref(f),"onUpdate:modelValue":D[1]||(D[1]=M=>e.isRef(f)?f.value=M: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(u)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),e.unref(m).fileScore?(e.openBlock(),e.createElementBlock("span",ON,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",RN,e.toDisplayString(e.unref(x)("unrated")),1))])])]),_:1},512),[[e.vShow,!e.unref(d)]]),e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",PN,[e.createElementVNode("span",MN,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",UN,e.toDisplayString(e.unref(m).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",zN,[e.createVNode(F,{ref_key:"mapFileTrackRef",ref:r},null,512)]),e.createElementVNode("div",WN,[e.createVNode(br,{ref_key:"audioPlayerRef",ref:s,"play-list":w.playList,onOnTimeUpdate:e.unref(V),onCanPlay:e.unref(S),onPlayEnd:e.unref(k),onPlayStart:e.unref(E),onOnAudioState:e.unref(C)},null,8,["play-list","onOnTimeUpdate","onCanPlay","onPlayEnd","onPlayStart","onOnAudioState"])])]),e.createElementVNode("div",jN,[e.createElementVNode("div",HN,[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",YN,[e.createVNode(wr,{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(_),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 qN(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?S(o.value.playList[V-1]):pe.ElMessage.warning(x("currentIsTheFirstItem"))}function _(){const V=o.value.playList.findIndex($=>$.id===d.value.id);V!==o.value.playList.length-1?S(o.value.playList[V+1]):pe.ElMessage.warning(x("currentIsTheLastItem"))}function y(){pe.ElMessage.success(x("detectionIsCorrect"))}function u(){a.value.show(d.value.id,r.value).then(V=>{d.value.fileScore=V,r.value=V})}function N(V){i.value=!0,c.value=[],s.value.onShowViewer(V)}function k(){i.value=!1}function E(){n("closeDrawer")}function b(V){console.log("error",V)}async function S(V){const $=V.id;d.value={...V},l.value=!0;const h=await kr($);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:_,detectingHashValues:y,fileScoreShow:u,onShowViewer:N,imageviewerClose:k,closeDrawer:E,error:b,playStart:S}}const KN={class:"h-full pic-detail-box flex flex-col"},XN={class:"detail-box flex-shrink-0 hy-dialog_header"},JN={class:"box-header flex flex-row m-0"},ZN={class:"flex flex-row left-header-box"},QN={class:"group-hy-info flex items-center text-base font-bold w-full"},vN={key:1,class:"ml-1 flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap"},e0={class:"flex flex-row right-header-box flex-shrink text-hy-danger"},t0={class:"flex-grow h-0 overflow-y-auto"},n0={class:"content flex flex-row h-full min-h-[700px]"},o0={class:"left-content-box relative"},a0=["src"],s0={class:"flex items-center justify-between h-[60px] box-hy-border-2"},l0={class:"text-xs"},r0={class:"text-xs"},i0={class:"flex items-center"},c0={class:"text-xs text-hy-text-secondary mr-2 flex items-center"},d0={class:"flex items-center justify-center"},p0={class:"ml-1 text-xs"},f0={key:0,class:"w-full file-info mb-[10px]"},m0={class:"info-item"},h0={class:"info-label"},u0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},_0={class:"info-item"},g0={class:"info-label"},y0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},x0={class:"info-item"},k0={class:"info-label"},N0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},b0={class:"info-item"},C0={class:"info-label"},w0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},E0={key:0},S0={key:1},T0={key:2,class:"text-hy-danger"},D0={key:3,class:"text-hy-text-secondary"},V0={class:"info-item"},$0={class:"info-label"},B0={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},I0={key:1,class:"text-hy-text-secondary"},A0={class:"info-item"},L0={class:"info-label"},F0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},O0={key:0,class:"flex items-center"},R0={key:1,class:"text-hy-text-secondary"},P0={class:"info-item"},M0={class:"info-label"},U0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},z0={class:"info-item flex items-center text-xs"},W0={class:"info-label"},j0={class:"flex items-center rateBox"},H0={key:0,class:"text-hy-text-secondary"},Y0={key:1,class:"text-hy-text-main"},G0={class:"info-item"},q0={class:"info-label"},K0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},X0={key:0,class:"w-[30%] ml-2 flex-shrink-0 relative"},J0=be(e.defineComponent({__name:"image-details",props:{item:{},playList:{default:()=>[]}},emits:["closeDrawer"],setup(t,{emit:n}){const o=t,a=n,s=e.reactive(ze.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:_,fileScoreShow:y,onShowViewer:u,closeDrawer:N,error:k,playStart:E}=qN({emit:a,props:o});return e.onMounted(()=>{E(o.item)}),(b,S)=>{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",KN,[e.createVNode(aa,{ref_key:"fileScoreRef",ref:i,onOnClose:S[0]||(S[0]=D=>p.value=null)},null,512),e.createElementVNode("div",XN,[e.createElementVNode("div",JN,[e.createElementVNode("div",ZN,[e.createElementVNode("div",QN,[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",vN,e.toDisplayString(e.unref(d).fileName),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",e0,[e.createVNode(V,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])])]),e.createElementVNode("div",t0,[e.createElementVNode("div",n0,[e.createElementVNode("div",o0,[e.createElementVNode("div",{class:"pic-img relative flex items-center justify-center",onClick:S[1]||(S[1]=D=>e.unref(u)(e.unref(d).filePath))},[e.createElementVNode("img",{src:e.unref(d).filePath,class:"h-full"},null,8,a0)]),e.createElementVNode("div",s0,[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",l0,e.toDisplayString(e.unref(x)("previous")),1)]),_:1},8,["onClick"]),e.createVNode($,{type:"primary",class:"",onClick:e.unref(_)},{default:e.withCtx(()=>[e.createElementVNode("span",r0,e.toDisplayString(e.unref(x)("next")),1)]),_:1},8,["onClick"])],512),[[e.vShow,o.playList.length>1]])]),e.createElementVNode("div",i0,[e.createElementVNode("p",c0,[e.createVNode(h,{class:"text-sm mr-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(Gd))]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("clickOnTheImageToEnlargeAndView")),1)]),e.createVNode($,{class:"button_function",onClick:S[2]||(S[2]=D=>e.unref(f)(e.unref(d).id))},{default:e.withCtx(()=>[e.createElementVNode("div",d0,[e.createVNode(V,{class:"w-[12px] h-[12px]",name:"media-download"}),e.createElementVNode("span",p0,e.toDisplayString(e.unref(x)("download-0")),1)])]),_:1})])]),e.unref(d)&&e.unref(d).id?(e.openBlock(),e.createElementBlock("div",f0,[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",m0,[e.createElementVNode("span",h0,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",u0,e.toDisplayString(e.unref(d).uploadDateStr),1)])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",_0,[e.createElementVNode("span",g0,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",y0,e.toDisplayString(e.unref(Ho)(e.unref(d).fileSize)),1)])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",x0,[e.createElementVNode("span",k0,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",N0,e.toDisplayString(e.unref(d).devUserName),1)])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",b0,[e.createElementVNode("span",C0,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",w0,[e.unref(d).type===1?(e.openBlock(),e.createElementBlock("span",E0,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(d).type===2?(e.openBlock(),e.createElementBlock("span",S0,e.toDisplayString(e.unref(x)("task")),1)):e.unref(d).type===3?(e.openBlock(),e.createElementBlock("span",T0,"SOS")):(e.openBlock(),e.createElementBlock("span",D0,"-"))])])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",V0,[e.createElementVNode("span",$0,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(d).expiredDtm?(e.openBlock(),e.createElementBlock("span",B0,e.toDisplayString(e.unref(d).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",I0,"-"))])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",A0,[e.createElementVNode("span",L0,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",F0,[e.unref(d).mark?(e.openBlock(),e.createElementBlock("span",O0,[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",R0,"-"))])])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",P0,[e.createElementVNode("span",M0,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",U0,e.toDisplayString(e.unref(d).deviceId),1)])]),_:1}),e.withDirectives(e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",z0,[e.createElementVNode("span",W0,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",j0,[e.createVNode(C,{modelValue:e.unref(p),"onUpdate:modelValue":S[3]||(S[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",H0,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",Y0,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",G0,[e.createElementVNode("span",q0,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",K0,e.toDisplayString(e.unref(d).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0)]),e.unref(d).id?(e.openBlock(),e.createElementBlock("div",X0,[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"},Q0={class:"h-[60px] flex justify-between items-center px-5 hy-dialog_header"},v0={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},eb={class:"text-hy-danger"},tb={class:"flex-grow h-0 overflow-y-auto"},nb={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},ob={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},ab={class:"h-[240px] video-player-box mt-[20px] flex"},sb={key:0,class:"w-full file-info m-[10px_0]"},lb={class:"info-item"},rb={class:"info-label"},ib={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},cb={class:"info-item"},db={class:"info-label"},pb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},fb={key:0,class:"flex items-center"},mb={key:1,class:"text-hy-text-secondary"},hb={class:"info-item"},ub={class:"info-label"},_b={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},gb={class:"info-item"},yb={class:"info-label"},xb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},kb={class:"info-item"},Nb={class:"info-label"},bb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Cb={class:"info-item"},wb={class:"info-label"},Eb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Sb={key:0},Tb={key:1},Db={key:2,class:"text-hy-danger"},Vb={key:3,class:"text-hy-text-secondary"},$b={class:"info-item"},Bb={class:"info-label"},Ib={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Ab={key:1,class:"text-hy-text-secondary"},Lb={class:"info-item"},Fb={class:"info-label"},Ob={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Rb={class:"info-item flex items-center text-xs"},Pb={class:"info-label"},Mb={class:"flex items-center rateBox"},Ub={key:0,class:"text-hy-text-secondary"},zb={key:1,class:"text-hy-text-main"},Wb={class:"info-item"},jb={class:"info-label"},Hb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Yb={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},Gb={class:"w-[60%] flex"},qb={class:"flex-grow w-0 ml-2"},Kb={class:"flex-grow w-0 ml-2"},Xb=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:_,audioCurTime:y,fileScoreShow:u,closeDrawer:N,playEnd:k,onPlayStart:E,playStart:b,canPlay:S,onTimeUpdate:V,playPoint:$,onEditMark:h,onEditorClose:g,setAudioState:C}=Er({emit:a,params:{getPlayerRef:()=>s.value,onEditMark:()=>{s.value.pauseVideo()}}});return e.onBeforeUnmount(()=>{N()}),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 T=e.resolveComponent("svg-icon"),B=e.resolveComponent("el-col"),L=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]=F=>f.value=null)},null,512),e.createElementVNode("div",Q0,[e.createElementVNode("div",v0,[e.unref(m).mark?(e.openBlock(),e.createBlock(T,{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",eb,[e.createVNode(T,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])]),e.createElementVNode("div",tb,[e.createElementVNode("div",nb,[e.createElementVNode("div",ob,[e.createElementVNode("div",ab,[e.createVNode(oa,{ref_key:"videoPlayerRef",ref:s,"play-list":w.playList,onCanPlay:e.unref(S),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",sb,[e.createVNode(j,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:e.withCtx(()=>[e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",lb,[e.createElementVNode("span",rb,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",ib,e.toDisplayString(e.unref(m).uploadDateStr),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",cb,[e.createElementVNode("span",db,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",pb,[e.unref(m).mark?(e.openBlock(),e.createElementBlock("span",fb,[e.createTextVNode(e.toDisplayString(e.unref(x)("star"))+" ",1),e.createVNode(T,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-[4px] -top-[2px]"})])):(e.openBlock(),e.createElementBlock("span",mb,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",hb,[e.createElementVNode("span",ub,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",_b,e.toDisplayString(e.unref(m).devUserName),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",gb,[e.createElementVNode("span",yb,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",xb,e.toDisplayString(e.unref(Ho)(e.unref(m).fileSize)),1)])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",kb,[e.createElementVNode("span",Nb,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",bb,e.toDisplayString(e.unref(m).deviceId),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",Cb,[e.createElementVNode("span",wb,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",Eb,[e.unref(m).type===1?(e.openBlock(),e.createElementBlock("span",Sb,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(m).type===2?(e.openBlock(),e.createElementBlock("span",Tb,e.toDisplayString(e.unref(x)("task")),1)):e.unref(m).type===3?(e.openBlock(),e.createElementBlock("span",Db,"SOS")):(e.openBlock(),e.createElementBlock("span",Vb,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",$b,[e.createElementVNode("span",Bb,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(m).expiredDtm?(e.openBlock(),e.createElementBlock("span",Ib,e.toDisplayString(e.unref(m).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",Ab,"-"))])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",Lb,[e.createElementVNode("span",Fb,e.toDisplayString(e.unref(x)("videoDuration")),1),e.createElementVNode("span",Ob,e.toDisplayString(e.unref(_))+"s ",1)])]),_:1}),e.withDirectives(e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",Rb,[e.createElementVNode("span",Pb,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",Mb,[e.createVNode(L,{modelValue:e.unref(f),"onUpdate:modelValue":D[1]||(D[1]=F=>e.isRef(f)?f.value=F: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(u)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),e.unref(m).fileScore?(e.openBlock(),e.createElementBlock("span",Ub,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",zb,e.toDisplayString(e.unref(x)("unrated")),1))])])]),_:1},512),[[e.vShow,!e.unref(d)]]),e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",Wb,[e.createElementVNode("span",jb,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",Hb,e.toDisplayString(e.unref(m).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",Yb,[e.createVNode(Cr,{ref_key:"mapFileTrackRef",ref:r},null,512)])]),e.createElementVNode("div",Gb,[e.createElementVNode("div",qb,[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",Kb,[e.createVNode(wr,{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(_),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"]]),Jb={key:0,class:"fixed top-[10%] left-[25%]"},Zb={class:"!p-0 !w-[1200px]"},Qb={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"},vb=e.defineComponent({__name:"file-details",setup(t,{expose:n}){const o=xx,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",Jb,[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",Qb,[e.unref(l)===2?(e.openBlock(),e.createBlock(GN,{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(Xb,{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(J0,{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 eC(t){return oe.post({url:"/file/abortMultipartUpload",data:t,showLoading:!1,isJson:!0})}function tC(t){return oe.post({url:"/file/multipartUploadAuth",data:t,showLoading:!1,isFormData:!0})}function nC(t){return oe.post({url:"/file/completeMultipartUpload",data:t,showLoading:!1,isJson:!0})}function oC(t){return oe.post({url:"/mediaFile/mediaFile/save",data:t,showLoading:!1,isJson:!0})}function aC(t){return oe.post({url:"/mediaFile/findByFileCloudKey",data:{fileCloudKey:t},showLoading:!1,isFormData:!0})}const sC="/admin",lC=new kl({baseURL:`${ze.getCache("host")||""}${sC}`,timeout:js,headers:{"Content-Type":ct.JSON},interceptors:{requestSuccessFn:t=>{const n=ze.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 Sr={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,T){return g=a(a(g,h),a(w,T)),a(g<<D|g>>>32-D,C)}function r(h,g,C,w,D,T,B){return l(g&C|~g&w,h,g,D,T,B)}function i(h,g,C,w,D,T,B){return l(g&w|C&~w,h,g,D,T,B)}function c(h,g,C,w,D,T,B){return l(g^C^w,h,g,D,T,B)}function p(h,g,C,w,D,T,B){return l(C^(g|~w),h,g,D,T,B)}function d(h,g){var C=h[0],w=h[1],D=h[2],T=h[3];C=r(C,w,D,T,g[0],7,-680876936),T=r(T,C,w,D,g[1],12,-389564586),D=r(D,T,C,w,g[2],17,606105819),w=r(w,D,T,C,g[3],22,-1044525330),C=r(C,w,D,T,g[4],7,-176418897),T=r(T,C,w,D,g[5],12,1200080426),D=r(D,T,C,w,g[6],17,-1473231341),w=r(w,D,T,C,g[7],22,-45705983),C=r(C,w,D,T,g[8],7,1770035416),T=r(T,C,w,D,g[9],12,-1958414417),D=r(D,T,C,w,g[10],17,-42063),w=r(w,D,T,C,g[11],22,-1990404162),C=r(C,w,D,T,g[12],7,1804603682),T=r(T,C,w,D,g[13],12,-40341101),D=r(D,T,C,w,g[14],17,-1502002290),w=r(w,D,T,C,g[15],22,1236535329),C=i(C,w,D,T,g[1],5,-165796510),T=i(T,C,w,D,g[6],9,-1069501632),D=i(D,T,C,w,g[11],14,643717713),w=i(w,D,T,C,g[0],20,-373897302),C=i(C,w,D,T,g[5],5,-701558691),T=i(T,C,w,D,g[10],9,38016083),D=i(D,T,C,w,g[15],14,-660478335),w=i(w,D,T,C,g[4],20,-405537848),C=i(C,w,D,T,g[9],5,568446438),T=i(T,C,w,D,g[14],9,-1019803690),D=i(D,T,C,w,g[3],14,-187363961),w=i(w,D,T,C,g[8],20,1163531501),C=i(C,w,D,T,g[13],5,-1444681467),T=i(T,C,w,D,g[2],9,-51403784),D=i(D,T,C,w,g[7],14,1735328473),w=i(w,D,T,C,g[12],20,-1926607734),C=c(C,w,D,T,g[5],4,-378558),T=c(T,C,w,D,g[8],11,-2022574463),D=c(D,T,C,w,g[11],16,1839030562),w=c(w,D,T,C,g[14],23,-35309556),C=c(C,w,D,T,g[1],4,-1530992060),T=c(T,C,w,D,g[4],11,1272893353),D=c(D,T,C,w,g[7],16,-155497632),w=c(w,D,T,C,g[10],23,-1094730640),C=c(C,w,D,T,g[13],4,681279174),T=c(T,C,w,D,g[0],11,-358537222),D=c(D,T,C,w,g[3],16,-722521979),w=c(w,D,T,C,g[6],23,76029189),C=c(C,w,D,T,g[9],4,-640364487),T=c(T,C,w,D,g[12],11,-421815835),D=c(D,T,C,w,g[15],16,530742520),w=c(w,D,T,C,g[2],23,-995338651),C=p(C,w,D,T,g[0],6,-198630844),T=p(T,C,w,D,g[7],10,1126891415),D=p(D,T,C,w,g[14],15,-1416354905),w=p(w,D,T,C,g[5],21,-57434055),C=p(C,w,D,T,g[12],6,1700485571),T=p(T,C,w,D,g[3],10,-1894986606),D=p(D,T,C,w,g[10],15,-1051523),w=p(w,D,T,C,g[1],21,-2054922799),C=p(C,w,D,T,g[8],6,1873313359),T=p(T,C,w,D,g[15],10,-30611744),D=p(D,T,C,w,g[6],15,-1560198380),w=p(w,D,T,C,g[13],21,1309151649),C=p(C,w,D,T,g[4],6,-145523070),T=p(T,C,w,D,g[11],10,-1120210379),D=p(D,T,C,w,g[2],15,718787259),w=p(w,D,T,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(T,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 _(h){var g=h.length,C=[1732584193,-271733879,-1732584194,271733878],w,D,T,B,L,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,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<D;w+=1)T[w>>2]|=h.charCodeAt(w)<<(w%4<<3);if(T[w>>2]|=128<<(w%4<<3),w>55)for(d(C,T),w=0;w<16;w+=1)T[w]=0;return B=g*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),L=parseInt(B[2],16),j=parseInt(B[1],16)||0,T[14]=L,T[15]=j,d(C,T),C}function y(h){var g=h.length,C=[1732584193,-271733879,-1732584194,271733878],w,D,T,B,L,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,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<D;w+=1)T[w>>2]|=h[w]<<(w%4<<3);if(T[w>>2]|=128<<(w%4<<3),w>55)for(d(C,T),w=0;w<16;w+=1)T[w]=0;return B=g*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),L=parseInt(B[2],16),j=parseInt(B[1],16)||0,T[14]=L,T[15]=j,d(C,T),C}function u(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 N(h){var g;for(g=0;g<h.length;g+=1)h[g]=u(h[g]);return h.join("")}N(_("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),T=w,B,L,j,F;return C!==o&&(T=h(C,w)),D>T?new ArrayBuffer(0):(B=T-D,L=new ArrayBuffer(B),j=new Uint8Array(L),F=new Uint8Array(this,D,B),j.set(F),L)}}();function k(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),T;for(T=0;T<C;T+=1)D[T]=h.charCodeAt(T);return g?D:w}function b(h){return String.fromCharCode.apply(null,new Uint8Array(h))}function S(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(k(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],T;for(w=0;w<C;w+=1)D[w>>2]|=g.charCodeAt(w)<<(w%4<<3);return this._finish(D,C),T=N(this._hash),h&&(T=V(T)),this.reset(),T},$.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,T;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),T=parseInt(w[1],16)||0,h[14]=D,h[15]=T,d(this._hash,h)},$.hash=function(h,g){return $.hashBinary(k(h),g)},$.hashBinary=function(h,g){var C=_(h),w=N(C);return g?V(w):w},$.ArrayBuffer=function(){this.reset()},$.ArrayBuffer.prototype.append=function(h){var g=S(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,T;for(D=0;D<C;D+=1)w[D>>2]|=g[D]<<(D%4<<3);return this._finish(w,C),T=N(this._hash),h&&(T=V(T)),this.reset(),T},$.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=N(C);return g?V(w):w},$})})(Sr);var rC=Sr.exports;const iC=tl(rC);class cC{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 iC.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 dC(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),_=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}]),u=e.ref([]),N=e.ref(null),k=e.ref(null),E=e.ref([]),b=e.ref([]),S=e.ref(File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice),V=e.ref(1024*1024*5);function $(){n("on-fileUploadNum",u.value.length)}function h(){p.value=!1}function g(){C(!0)}function C(O){p.value=O}function w(O){i.value=O}function D(O){l.value=O.startUploadingCallback||null,r.value=O.fileShardingCallback||null,a.value=O.onSubmit||null}function T(O,G){if(y.value=[{label:x("softwarePackage"),value:6}],N.value=6,s.value=G||null,D(O),f.value)return pe.ElMessage.error(x("fileReadingInProgressPleaseWait"));d.value=[],m.value=!0}function B(O,G){if(y.value=[{label:`APK${x("upgradePackage")}`,value:5}],N.value=5,s.value=G||null,D(O),f.value)return pe.ElMessage.error(x("fileReadingInProgressPleaseWait"));d.value=[],m.value=!0}function L(O,G){y.value=[{label:x("imageFiles"),value:1},{label:x("videoFile"),value:2},{label:x("audioFiles"),value:4}];const ne=O.folderId;if(ne){if(s.value=G||null,D({}),k.value=ne,D(O),f.value)return pe.ElMessage.error(x("fileReadingInProgressPleaseWait"));N.value=2,d.value=[],m.value=!0}}function j(){w(!1),m.value=!1}function F(){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 O=(G,ne)=>new Promise((de,_e)=>{const Ve=G[ne];Ve&&v(Ve.file,{fileType:N.value,folderId:k.value,onSubmit:a.value}).then(I=>{pe.ElMessage.success(`${x("startUploading")} ${I}`),G.length-1!==ne?O(G,ne+1).then(()=>{de({code:200})}):de({code:200})}).catch(()=>{G.length-1!==ne?O(G,ne+1).then(()=>{de({code:200})}):de({code:200})})});O(d.value,0).then(()=>{f.value=!1,r.value&&r.value(),d.value=[]})}function M(O){const G=O.type||"";if(N.value===1){if(!G.includes("image"))return pe.ElMessage.error(x("theUploadedFileIsNotOfImageType")),!1}else if(N.value===2){if(!G.includes("video"))return pe.ElMessage.error(x("theUploadedFileIsNotOfVideoType")),!1}else if(N.value===4){if(!G.includes("audio"))return pe.ElMessage.error(x("theUploadedFileIsNotOfAudioType")),!1}else if(N.value===5){if(!O.name.includes(`${_.value[5]}`))return pe.ElMessage.error(x("theUploadedFileIsNotAnAPKUpgradePackage")),!1}else if(N.value===6&&!O.name.includes(`${_.value[6]}`))return pe.ElMessage.error(x("theUploadedFileIsNotASoftwarePackage")),!1;return!0}function z(){E.value=[],b.value=[];const O=ze.getCache("fileUploadList");O&&(u.value=O.map(G=>(G.status==="uploading"&&(G.status="error"),G)),e.nextTick(()=>{$(),u.value.forEach(G=>{G.status!=="error"&&ke(G.md5)})}))}function U(){window.sessionStorage.setItem("fileUploadList",JSON.stringify(u.value))}function R(O){return new Promise((G,ne)=>{new cC().md5(O,(_e,Ve)=>{_e?ne(_e):G({md5:Ve})})})}function Y(O){return new Promise(G=>{const ne=O.size;let de=0,_e=null;const Ve=Math.ceil(ne/V.value),I=[],A=()=>{const H=de*V.value,te=H+V.value>=ne?ne:H+V.value;if(_e=S.value.call(O,H,te),I.push(_e),de++,de<Ve)return A();G(I)};A()})}function X(O){const G=new File([O.file],O.file.name.replace(/\s*/g,""));d.value.push({name:G.name,file:G})}function P(O,G){if(O.file.name===G.fileName){const ne=new File([O.file],O.file.name.replace(/\s*/g,""));v(ne,{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 v(O,G){return new Promise(async(ne,de)=>{const _e=G.md5||Yn(1);await Y(O).then(async(Ve=[])=>{const I=u.value.find(A=>A.md5===_e);if(he(_e,Ve),I){const A=I.status,H=I.errorReason;A==="error"&&!H?(ne(O.name),ke(I.md5)):de()}else{const A=await tC({cannedACL:i.value?"public-read":"",fileName:O.name,contentLength:O.size,contentType:O.type,partSize:V.value});if(A.code===200){const H=A.data;if(H){const te=H.list||[],Ne={md5:_e,fileType:G.fileType,folderId:G.folderId,onSubmit:G.onSubmit,fileName:O.name,size:O.size,type:O.type,key:H.key,uploadId:H.uploadId,status:"uploading",completionTime:null,progress:0,finishNum:0,totalNum:te.length,shardingList:te.map((me,ue)=>({key:me.key,url:me.url,partNumber:ue+1,isUpload:!1,etag:null}))};ne(O.name),u.value.unshift(Ne),$(),e.nextTick(()=>{U(),ke(Ne.md5)})}}}})})}function Te(O){return new Promise(async(G,ne)=>{const de=await aC(O);de.code===200&&(de.data?ne(new Error(x("prohibitUploadingFilesWithTheSameNameOnThePlatform"))):G({code:200}))})}function he(O,G){const ne=E.value.findIndex(de=>de.md5===O);ne===-1?E.value.push({md5:O,fileChunkList:G}):E.value[ne].fileChunkList=G}function ke(O){const G=u.value.find(ne=>ne.md5===O);if(G.status==="amalgamation")ee(G);else if(G.status==="sharding")J(G);else{const ne=E.value.findIndex(A=>A.md5===G.md5);if(ne===-1){pe.ElMessage.error(x("errorInUploadingFile"));return}const de=E.value[ne].fileChunkList,_e=(A,H)=>new Promise((te,Ne)=>{const me=A[H];if(me)if(me.isUpload)A.length-1!==H?_e(A,H+1).then(()=>{te({code:200})}):te({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(),A[H]=me,A.length-1!==H?_e(A,H+1).then(()=>{te({code:200})}):te({code:200})})}}),Ve=G.shardingList,I=Ve.findIndex(A=>A.isUpload===!1);I!==-1?(G.status="uploading",_e(Ve,I).then(()=>{G.status="sharding",J(G)})):(G.status="sharding",J(G))}}function Oe(O,G){return new Promise((ne,de)=>{lC.put({url:O,data:G}).then(_e=>{ne(_e)}).catch(()=>{de(new Error(x("uploadError")))})})}async function J(O){U();const G=await nC({key:O.key,uploadId:O.uploadId,partETagList:O.shardingList.map(ne=>({partNumber:ne.partNumber,etag:ne.etag}))});(G.code===200||G.code===10020)&&(O.status="amalgamation",O.progress=80,ee(O))}async function ee(O){U();const G=()=>{O.completionTime=jo(new Date,"Y-M-h D:m:s"),O.status="success",b.value.unshift(O),Z(O.md5),O.onSubmit&&O.onSubmit(O),e.nextTick(()=>{U()})};s.value?s.value(O,()=>{G()}):(await oC({fileType:O.fileType,folderId:O.folderId,key:O.key,size:O.size})).code===200&&(pe.ElMessage.success(x("uploadSuccessful")),G())}function ie(O,G){G.splice(O,1)}function le(O){var G;(G=o.value)==null||G.show(O.fileCloudKey).then(()=>{O.onSubmit&&O.onSubmit()})}async function Z(O){if(!O)return;const G=u.value.findIndex(ne=>ne.md5===O);if(G!==-1){const ne=u.value[G];u.value.splice(G,1);const de=E.value.findIndex(_e=>_e.md5===O);de!==-1&&E.value.splice(de,1),$(),ne.key&&ne.uploadId?(await eC({key:ne.key,uploadId:ne.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:_,fileTypeList:y,fileType:N,folderId:k,fileList:E,fileUploadList:u,successFileList:b,blobSlice:S,defaultChunkSize:V,fileUploadNumFn:$,onClose:h,show:g,setDialogVisible:C,setPublicRea:w,setCallback:D,fileUploadVersionShow:T,fileUploadAPkShow:B,fileUploadShow:L,fileUploadClose:j,fileUploadSubmit:F,beforeAvatarUpload:M,getData:z,saveData:U,getFileMd5:R,sliceFile:Y,uploadListRequestFn:X,handleHttpRequestImg:P,fileRequestFn:v,findByFileCloudKey:Te,fileListPushFn:he,uploadSliceFile:ke,uploadPart:Oe,completeMultipartUpload:J,mediaFileFn:ee,deleteListFn:ie,apkConfirmUploadShow:le,deleteFileUpload:Z}}const pC=t=>(e.pushScopeId("data-v-396f7126"),t=t(),e.popScopeId(),t),fC={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"},mC={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},hC={class:"absolute right-[10px]"},uC={class:"dialog_body"},_C={class:"mb-[10px]"},gC={class:"text-sm leading-[30px]"},yC={class:"mb-[10px]"},xC={class:"text-sm leading-[30px]"},kC={class:"text-center"},NC={class:"text-xs text-hy-text-secondary"},bC={class:"uploadList select-none"},CC={class:"flex-grow w-0"},wC={class:"text-right mt-[20px]"},EC={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"},SC={class:"relative border-b border-hy-border-2 pl-2 text-[18px] font-bold h-[50px] flex items-center justify-between"},TC={class:"absolute right-[10px]"},DC={class:"dialog_body el-dialog__body !p-[0_0_10px_0]"},VC={class:"progressBox text-hy-text-main el-progress-bar__outer_backgroundv3"},$C={class:"flex items-center"},BC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},IC={key:0,class:"flex items-center justify-center"},AC={key:0,class:"select-none click-box"},LC={class:"iconCloseBox click-box ml-[4px]"},FC={class:"flex flex-row leading-[20px] text-hy-danger select-none"},OC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},RC={class:"flex flex-row mb-[4px]"},PC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},MC=pC(()=>e.createElementVNode("span",null,[e.createElementVNode("i",{class:"el-icon-loading text-hy-main"})],-1)),UC={class:"flex flex-row leading-[20px]"},zC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},WC={class:"text-hy-main"},jC={class:"flex flex-row mb-[4px]"},HC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},YC={class:"iconCloseBox click-box"},GC={class:"flex flex-row leading-[20px]"},qC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},KC={class:"text-hy-success"},XC={key:0,class:"text-hy-text-secondary flex items-center justify-center text-xs noData h-full"},JC={class:"text-center"},ZC={class:"mt-[10px]"},QC=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:_,fileUploadVisible:y,uploadAccept:u,fileTypeList:N,fileType:k,folderId:E,fileList:b,fileUploadList:S,successFileList:V,blobSlice:$,defaultChunkSize:h,fileUploadNumFn:g,onClose:C,show:w,setDialogVisible:D,setPublicRea:T,setCallback:B,fileUploadVersionShow:L,fileUploadAPkShow:j,fileUploadShow:F,fileUploadClose:M,fileUploadSubmit:z,beforeAvatarUpload:U,getData:R,saveData:Y,getFileMd5:X,sliceFile:P,uploadListRequestFn:v,handleHttpRequestImg:Te,fileRequestFn:he,findByFileCloudKey:ke,fileListPushFn:Oe,uploadSliceFile:J,uploadPart:ee,completeMultipartUpload:ie,mediaFileFn:le,deleteListFn:Z,apkConfirmUploadShow:O,deleteFileUpload:G}=dC({emit:a});return e.onMounted(()=>{R()}),n({fileUploadShow:F,fileUploadAPkShow:j,fileUploadVersionShow:L,show:w}),(ne,de)=>{const _e=e.resolveComponent("svg-icon"),Ve=e.resolveComponent("el-option"),I=e.resolveComponent("el-select"),A=e.resolveComponent("el-icon"),H=e.resolveComponent("el-upload"),te=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",fC,[e.createElementVNode("div",mC,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("fileUpload")),1),e.createElementVNode("div",hC,[e.createVNode(_e,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(M),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",uC,[e.createElementVNode("div",_C,[e.createElementVNode("div",gC,e.toDisplayString(e.unref(x)("fileType")),1),e.createVNode(I,{modelValue:e.unref(k),"onUpdate:modelValue":de[0]||(de[0]=K=>e.isRef(k)?k.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(N),(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",yC,[e.createElementVNode("div",xC,e.toDisplayString(e.unref(x)("uploadFiles")),1),e.createElementVNode("div",null,[e.createVNode(H,{"before-upload":e.unref(U),"http-request":e.unref(v),accept:e.unref(u)[`${e.unref(k)}`],action:"",drag:"","show-file-list":!1,multiple:""},{default:e.withCtx(()=>[e.createElementVNode("div",kC,[e.createVNode(A,{class:"text-[60px] text-hy-text-secondary"},{default:e.withCtx(()=>[e.createVNode(e.unref(jd))]),_:1}),e.createElementVNode("div",NC,[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",bC,[(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",CC,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(Z)(ce,e.unref(m))},null,8,["onClick"])]))),128))])])]),e.createElementVNode("div",wC,[e.createVNode(te,{type:"primary",class:"w-[100px]",onClick:e.unref(M)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)("close")),1)]),_:1},8,["onClick"]),e.createVNode(te,{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",EC,[e.createElementVNode("div",SC,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("fileUpload")),1),e.createElementVNode("div",TC,[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",DC,[e.createElementVNode("ul",VC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(S),(K,ce)=>(e.openBlock(),e.createElementBlock("li",{key:`${ce}fileUploadList`},[e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",$C,[e.createElementVNode("div",BC,e.toDisplayString(K.fileName),1),K.fileType!==5?(e.openBlock(),e.createElementBlock("div",IC,[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",AC,[e.createVNode(_e,{width:"16",height:"16",name:"live-broadcast-refresh-v3"})]))]),_:2},1032,["content"])]),_:2},1032,["before-upload","http-request"]),e.createElementVNode("div",LC,[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",FC,[e.createElementVNode("div",OC,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",RC,[e.createElementVNode("div",PC,e.toDisplayString(K.fileName),1),MC]),e.createElementVNode("div",UC,[e.createElementVNode("div",zC,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("uploadingPatientWait"))+"…",1)]),e.createElementVNode("span",WC,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",jC,[e.createElementVNode("div",HC,e.toDisplayString(K.fileName),1),e.createElementVNode("div",YC,[e.createVNode(_e,{width:"16",height:"16",class:"text-hy-danger",name:"icon-close",onClick:we=>e.unref(Z)(ce,e.unref(V))},null,8,["onClick"])])]),e.createElementVNode("div",GC,[e.createElementVNode("div",qC,[e.createElementVNode("span",null,e.toDisplayString(K.completionTime),1)]),e.createElementVNode("span",KC,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(S).length===0&&e.unref(V).length===0?(e.openBlock(),e.createElementBlock("li",XC,[e.createElementVNode("div",JC,[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 vC({emit:t,props:n}){const o=e.shallowRef(),a=e.shallowRef(),s=e.ref(),{H:l,POI:r,isShowMap:i,layersUrlList:c,mapConfig:p}=Qt();function d(){i&&e.nextTick(async()=>{const k=ze.getCache("userInfo");let E=[];k!=null&&k.lng&&(k!=null&&k.lat)&&(E=[k.lat,k.lng]),E.length===0&&(E=null),o.value=await l.map("selectMapLocation",{maxZoom:p.maxZoom||18,minZoom:p.minZoom||5,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(k){const E=await r.placeSearch({keywords:k,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(k){var b;const E=await r.reverseGeocoder(k);E&&((b=E.address)!=null&&b.length)||Se({type:"warning",message:"未获取到地址信息"}),_({lng:k.lng,lat:k.lat,address:E.formatted_address,name:E.formatted_address,...E})}function _(k){s.value=k,t("on-geographical-position",k),y()}function y(k){a.value&&l.removeMarker(o.value,a.value);let E,b;k?(E=k.lat,b=k.lng):(E=s.value.lat,b=s.value.lng);let S={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&&(S=n.markerItemFn()),l.setView(o.value,[E,b],18),a.value=l.marker(o.value,[E,b],S),l.markerAddTo(o.value,a.value)}function u(){a.value&&l.removeMarker(o.value,a.value)}function N(k){a.value&&l.updateMarkerIcon(a.value,k)}return{H:l,map:o,POI:r,marker:a,isShowMap:i,initMap:d,geographicalPositionFn:_,throughCoordinatePosition:m,placeSearchFn:f,setContentFn:N,removeMarker:u}}const ew={class:"w-full h-full relative"},tw={class:"relative z-[1] w-full h-full"},nw={id:"selectMapLocation",ref:"selectMapLocation",class:"w-full h-full"},ow=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:_}=vC({emit:s,props:a});return e.onMounted(()=>{r()}),n({throughCoordinatePosition:i,placeSearchFn:c,setContentFn:p,removeMarker:d,H:f,map:m,POI:_}),(y,u)=>(e.openBlock(),e.createElementBlock("div",ew,[e.withDirectives(e.createVNode(Gt,{class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(l)]]),e.createElementVNode("div",tw,[e.createElementVNode("div",nw,null,512)])]))}}),[["__scopeId","data-v-8ec3e599"]]);function aw({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 vu({taskId:o.value,deviceUserId:n.value});if(m.code===200){const _=m.data||{};a.value=_||{},a.value.imageList&&(a.value.imageListV2=a.value.imageList.map(y=>y.filePath)),d(0)}}else if(t.formType===2){const m=await Al({recordId:l.value});if(m.code===200){const _=m.data||{};a.value=_||{},a.value.imageList&&(a.value.imageListV2=a.value.imageList.map(y=>y.filePath)),d(0)}}})}function c(d={}){if(!d)return;const f=Se.warning(x("inTheOpeningPleaseWait"));o.value=d.taskId,n.value=d.deviceUserId,l.value=d.recordId||null,i().then(()=>{s.value=!0,setTimeout(()=>{f.close()},1e3)})}function p(){s.value=!1}return{deviceUserId:n,taskId:o,deviceReport:a,dialogVisible:s,recordId:l,clickGroupItem:r,show:c,onClose:p,$t:x}}const sw={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},lw={key:0},rw={key:1},iw={class:"absolute right-[12px] top-[12px]"},cw={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg relative z-10"},dw={style:{height:"500px"},class:"c_fff fs_12 dialog_body text-hy-text-main text-[12px]"},pw={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},fw={class:"information"},mw={class:"flex_vertically_center flex items-center"},hw={style:{"margin-left":"6px"}},uw={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},_w={class:"flex_vertically_center flex items-center"},gw={style:{"margin-left":"6px"}},yw={key:0,class:"type_box success"},xw={key:1,class:"type_box"},kw={class:"form fs_12 text-[12px]"},Nw={key:0},bw={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},Cw={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"},ww={key:1},Ew={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},Sw={class:"r-f mb_10 flex_vertically_center flex mb-[10px] items-center"},Tw={class:"mr_10 label flex-shrink mr-[10px]"},Dw={class:"r-f flex_vertically_center flex items-center"},Vw={class:"mr_10 label label_answer flex-shrink mr-[10px]"},$w={key:0,class:"c_theme text-hy-text-primary"},Bw={key:1,class:"c_9DA7B2 text-hy-text-secondary"},Iw={key:2},Aw={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px]"},Lw={class:"group-item"},Fw=["onClick"],Ow={key:0,class:"c-f-i group-content r-f flex"},Rw={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},Pw=["src"],Mw={key:1,style:{"flex-grow":"1"}},Uw={class:"icon-box c-f-i flex"},zw={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},Ww={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},jw={key:0,class:"information-type"},Hw={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},Yw={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},Gw={key:0,class:"c_9DA7B2 text-hy-text-secondary"},qw={key:1},Kw={key:1,class:"c-f-i group-content r-f flex"},Xw={style:{"flex-grow":"1"}},Jw={class:"icon-box c-f-i flex"},Zw={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},Qw={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},vw={key:0,class:"information-type"},eE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},tE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},nE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},oE={key:1},aE={key:2,class:"c-f-i group-content r-f flex"},sE={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},lE=["src"],rE={key:1,style:{"flex-grow":"1"}},iE={class:"icon-box c-f-i flex"},cE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},dE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},pE={key:0,class:"information-type"},fE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},mE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},hE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},uE={key:1},_E={key:3},gE={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},yE={class:"group-item"},xE=["onClick"],kE={key:0,class:"c-f-i group-content r-f flex"},NE={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},bE=["src"],CE={key:1,style:{"flex-grow":"1"}},wE={class:"icon-box c-f-i flex"},EE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},SE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},TE={key:0,class:"information-type"},DE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},VE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},$E={key:0,class:"c_9DA7B2 text-hy-text-secondary"},BE={key:1},IE={key:1,class:"c-f-i group-content r-f flex"},AE={style:{"flex-grow":"1"}},LE={class:"icon-box c-f-i flex"},FE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},OE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},RE={key:0,class:"information-type"},PE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},ME={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},UE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},zE={key:1},WE={key:2,class:"c-f-i group-content r-f flex"},jE={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},HE=["src"],YE={key:1,style:{"flex-grow":"1"}},GE={class:"icon-box c-f-i"},qE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},KE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},XE={key:0,class:"information-type"},JE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},ZE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},QE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},vE={key:1},Tr=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}=aw({props:o});return n({show:s}),(p,d)=>{const f=e.resolveComponent("svg-icon"),m=e.resolveComponent("el-dialog"),_=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(m,{modelValue:e.unref(l),"onUpdate:modelValue":d[0]||(d[0]=y=>e.isRef(l)?l.value=y:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"530px",modal:!p.draggable,draggable:p.draggable,"modal-class":p.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",sw,[o.formType===1?(e.openBlock(),e.createElementBlock("span",lw,e.toDisplayString(e.unref(a)("exception")),1)):o.formType===2?(e.openBlock(),e.createElementBlock("span",rw,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",iw,[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"])])])),[[_]])]),default:e.withCtx(()=>[e.createElementVNode("div",cw,[e.createElementVNode("div",dw,[e.createElementVNode("div",pw,[e.createElementVNode("div",fw,[e.createElementVNode("div",mw,[e.createVNode(f,{style:{width:"14px",height:"14px"},name:"icon-user","class-name":"text-hy-text-main"}),e.createElementVNode("span",hw,[e.createTextVNode(e.toDisplayString(e.unref(r).name),1),e.unref(r).jobNum?(e.openBlock(),e.createElementBlock("span",uw,"("+e.toDisplayString(e.unref(r).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",_w,[e.createVNode(f,{name:"base-every-day-time",class:"w-[16px] h-[16px]"}),e.createElementVNode("span",gw,e.toDisplayString(e.unref(r).executeDtm),1)]),e.unref(r).checkState===1?(e.openBlock(),e.createElementBlock("div",yw,e.toDisplayString(e.unref(a)("normal")),1)):e.unref(r).checkState===2?(e.openBlock(),e.createElementBlock("div",xw,e.toDisplayString(e.unref(a)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",kw,[e.unref(r).dealSituation?(e.openBlock(),e.createElementBlock("div",Nw,[e.createElementVNode("div",bw,e.toDisplayString(e.unref(a)("handling")),1),e.createElementVNode("p",Cw,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",ww,[e.createElementVNode("div",Ew,e.toDisplayString(e.unref(a)("formContent")),1),e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).formList,(y,u)=>(e.openBlock(),e.createElementBlock("li",{key:u,class:"border-top ptb_10 p-[10px_0px]"},[e.createElementVNode("div",Sw,[e.createElementVNode("p",Tw,e.toDisplayString(e.unref(a)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(y.optionTitle),1)]),e.createElementVNode("div",Dw,[e.createElementVNode("p",Vw,e.toDisplayString(e.unref(a)("answer")),1),y.optionValue?(e.openBlock(),e.createElementBlock("span",$w,e.toDisplayString(y.optionValue),1)):(e.openBlock(),e.createElementBlock("span",Bw,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",Iw,[e.createElementVNode("div",Aw,e.toDisplayString(e.unref(a)("picture")),1),e.createElementVNode("div",Lw,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).imageList,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,onClick:u=>e.unref(c)(y)},[y.fileType===1?(e.openBlock(),e.createElementBlock("div",Ow,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.filePath&&y.del!==1?(e.openBlock(),e.createElementBlock("div",Rw,[e.createElementVNode("img",{src:y.filePath,class:"h_100vh h-full"},null,8,Pw)])):(e.openBlock(),e.createElementBlock("div",Mw,[e.createElementVNode("div",Uw,[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",zw,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",Ww,[y.type===1?(e.openBlock(),e.createElementBlock("div",jw,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",Hw,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",Yw," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",Gw,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",qw,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",Kw,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[e.createElementVNode("div",Xw,[e.createElementVNode("div",Jw,[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",Zw,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",Qw,[y.type===1?(e.openBlock(),e.createElementBlock("div",vw,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",eE,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",tE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",nE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",oE,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",aE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.screenshot1?(e.openBlock(),e.createElementBlock("div",sE,[e.createElementVNode("img",{src:y.screenshot1,class:"h_100vh h-full"},null,8,lE)])):(e.openBlock(),e.createElementBlock("div",rE,[e.createElementVNode("div",iE,[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",cE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",dE,[y.type===1?(e.openBlock(),e.createElementBlock("div",pE,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",fE,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",mE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",hE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",uE,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,Fw))),128))])])):e.createCommentVNode("",!0),e.unref(r).videoList&&e.unref(r).videoList.length?(e.openBlock(),e.createElementBlock("div",_E,[e.createElementVNode("div",gE,e.toDisplayString(e.unref(a)("video")),1),e.createElementVNode("div",yE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).videoList,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,onClick:u=>e.unref(c)(y)},[y.fileType===1?(e.openBlock(),e.createElementBlock("div",kE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.filePath&&y.del!==1?(e.openBlock(),e.createElementBlock("div",NE,[e.createElementVNode("img",{src:y.filePath,class:"h_100vh h-full"},null,8,bE)])):(e.openBlock(),e.createElementBlock("div",CE,[e.createElementVNode("div",wE,[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",EE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",SE,[y.type===1?(e.openBlock(),e.createElementBlock("div",TE,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",DE,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",VE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",$E,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",BE,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",IE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[e.createElementVNode("div",AE,[e.createElementVNode("div",LE,[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",FE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",OE,[y.type===1?(e.openBlock(),e.createElementBlock("div",RE,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",PE,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",ME," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",UE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",zE,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",WE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.screenshot1?(e.openBlock(),e.createElementBlock("div",jE,[e.createElementVNode("img",{src:y.screenshot1,class:"h_100vh h-full"},null,8,HE)])):(e.openBlock(),e.createElementBlock("div",YE,[e.createElementVNode("div",GE,[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",qE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",KE,[y.type===1?(e.openBlock(),e.createElementBlock("div",XE,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",JE,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",ZE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",QE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",vE,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,xE))),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-159e6064"]]);function eS(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 tS(t){return oe.post({url:"taskAssign/taskExample/select",data:t,isFormData:!0})}function nS({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(N){l.value=!0,e.nextTick(()=>{r.value.playVideo(N.filePath,N)})}function d(){r.value.pauseVideo(),l.value=!1}function f(N){i.value.onShowViewer(o.value,N)}function m(N){return new Promise(async(k,E)=>{const b=await(t.controller==="taskAssign/taskExample"?tS({id:N}):Xu({id:N}));if(b.code===200){const S=b.data;o.value=[],a.value=[],n.value=S;const V=S.images;V&&V.length&&(o.value=V.split(","));const $=S.videos;$&&$.length&&(a.value=$.split(",").map((h,g)=>({filePath:h,fileName:`任务示例视频${g+1}.${h.split(".").reverse()[0]}`,id:g+1}))),k(0)}})}function _(N={}){m(N.id).then(()=>{s.value=!0})}function y(N){console.log(N),o.value=[],a.value=[],n.value=N;const k=N.images;k&&k.length&&(o.value=k.split(","));const E=N.videos;E&&E.length&&(a.value=E.split(",").map((b,S)=>({filePath:b,fileName:`任务示例视频${S+1}.${b.split(".").reverse()[0]}`,id:S+1}))),s.value=!0,console.log(s.value)}function u(){s.value=!1}return{$t:x,form:n,hyImageViewerRef:i,imagesList:o,videoList:a,dialogVisible:s,videoDialogVisible:l,videoPlayerRef:r,onShowViewer:f,selectFn:m,show:_,taskExampleFn:y,onClose:u,videoPlayerShow:p,videoDialogClose:d,selVideo:c}}const oS={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},aS={class:"absolute right-[12px] top-[12px]"},sS={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg-1 relative z-10"},lS={class:"dialog_body"},rS={class:"dialog_body_content lh_20 leading-[20px]"},iS={class:"mb_20 mb-[20px]"},cS={class:"requiredTitle"},dS={class:"plr_20 p-[0_20px]",style:{"max-height":"200px",overflow:"auto"}},pS=["innerHTML"],fS={key:0,class:"mb_20 mb-[20px]"},mS={class:"requiredTitle"},hS={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},uS={class:"imgBox"},_S={class:"centerBox deleteBox flex items-center justify-center"},gS=["src"],yS={key:1,class:"mb_20 mb-[20px]"},xS={class:"requiredTitle"},kS={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},NS={class:"imgBox"},bS={class:"centerBox deleteBox flex items-center justify-center"},CS={class:"pos_a w_100vh centerBox absolute w-full flex justify-center items-center"},wS={class:"operator-button centerBox mt_20 mt-[20px] flex justify-center items-center"},ES={class:"c_fff activatedImei text-hy-text-main"},SS={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},TS={class:"dialog_body",style:{height:"500px"}},DS={class:"pos_r w_100vh h_100vh w-full h-full relative"},Dr=be(e.defineComponent({__name:"view-task-example",props:{controller:{default:"taskAssign/taskExample"},draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const o=t,{$t:a,show:s,taskExampleFn:l,hyImageViewerRef:r,videoPlayerRef:i,dialogVisible:c,form:p,onClose:d,imagesList:f,onShowViewer:m,videoList:_,videoPlayerShow:y,videoDialogVisible:u,videoDialogClose:N,selVideo:k}=nS({props:o});return n({show:s,taskExampleFn:l}),(E,b)=>{const S=e.resolveComponent("svg-icon"),V=e.resolveComponent("el-dialog"),$=e.resolveComponent("el-button"),h=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(V,{modelValue:e.unref(c),"onUpdate:modelValue":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",oS,[e.createElementVNode("span",null,e.toDisplayString(e.unref(p).exampleName||e.unref(a)("missionExample")),1),e.createElementVNode("div",aS,[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"])])])),[[h]])]),default:e.withCtx(()=>[e.createElementVNode("div",sS,[e.createElementVNode("div",lS,[e.createElementVNode("div",rS,[e.createElementVNode("div",iS,[e.createElementVNode("div",cS,e.toDisplayString(e.unref(a)("sampleContent")),1),e.createElementVNode("div",dS,[e.createElementVNode("div",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(p).exampleContent},null,8,pS)])]),e.unref(f).length?(e.openBlock(),e.createElementBlock("div",fS,[e.createElementVNode("div",mS,e.toDisplayString(e.unref(a)("exampleImage")),1),e.createElementVNode("ul",hS,[(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",uS,[e.createElementVNode("div",_S,[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,gS)])]))),128))])])):e.createCommentVNode("",!0),e.unref(_).length?(e.openBlock(),e.createElementBlock("div",yS,[e.createElementVNode("div",xS,e.toDisplayString(e.unref(a)("exampleVideo")),1),e.createElementVNode("ul",kS,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(g,C)=>(e.openBlock(),e.createElementBlock("li",{key:`${C}videoList`},[e.createElementVNode("div",NS,[e.createElementVNode("div",bS,[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",CS,[e.createVNode(S,{name:"base-video-cover",style:{height:"40px",width:"40px"}})])])]))),128))])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",wS,[e.createVNode(V,{modelValue:e.unref(u),"onUpdate:modelValue":b[1]||(b[1]=g=>e.isRef(u)?u.value=g:null),"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss_lightColor",width:"800px",modal:!E.draggable,draggable:E.draggable,"modal-class":E.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",ES,[e.createElementVNode("div",SS,[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(N)&&e.unref(N)(...g),["stop"]))},[e.createVNode(S,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",TS,[e.createElementVNode("div",DS,[e.createVNode(oa,{ref_key:"videoPlayerRef",ref:i,"border-color":"transparent",item:e.unref(k),"play-list":e.unref(_)},null,8,["item","play-list"])])])])]),_:1})),[[h]])]),_:1},8,["modelValue","modal","draggable","modal-class"]),e.createVNode($,{class:"button_default buttonBox min-w-[100px]",type:"primary",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("closure")),1)]),_:1},8,["onClick"])])])]),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"}),e.createVNode(Wo,{ref_key:"hyImageViewerRef",ref:r},null,512)]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-d7cac0ec"]]);function VS(){const t=e.ref({}),n=e.ref({}),o=e.ref([]),a=e.ref([]),s=e.ref({}),l=e.ref(null),r=e.ref(null),i=e.ref(!1),{H:c,isShowMap:p,layersUrlList:d,mapConfig:f}=Qt(),m=e.shallowRef(null),_=e.ref([]),y=e.ref([]),u=e.ref(),N=e.ref(),k=e.computed(()=>a.value.findIndex(j=>j.lat&&j.lng)!==-1);function E(L){m.value&&L.lat&&L.lng&&c.setView(m.value,[L.lat,L.lng],18)}function b(){if(!m.value)return;_.value=[],y.value=[];const L=[];a.value.forEach((M,z)=>{if(!(M.lng&&M.lat))return;L.push(M);let U=null;if(M.hadCheck===1){const Y=M.checkState===1?"var(--hy-success)":"var(--hy-danger)";U=`<div style="width: 18px;
42
42
  height: 18px;
43
43
  overflow: hidden;
44
44
  border-radius: 50%;
@@ -52,5 +52,5 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,curr
52
52
  border-radius: 50%;
53
53
  border: 2px solid var(--hy-text-secondary);
54
54
  background: var(--hy-dialog-bg-1);" class="flex items-center justify-center">
55
- </div>`;const R=c.marker(m.value,[M.lat,M.lng],{icon:U,zIndexOffset:10,iconAnchor:[9,18]});c.markerAddTo(m.value,R),_.value.push(R)});const F=c.polyline(m.value,L.map(M=>[M.lat,M.lng]),{width:4,color:"#5E9DB4",opacity:1});y.value.push(F)}function S(){p&&k.value&&e.nextTick(async()=>{const L=[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:L,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(L){u.value.taskExampleFn(L)}function $(L){N.value.show({recordId:L})}async function h(){const L=await Zu({id:l.value});L.code===200&&(n.value=L.data||{},t.value=n.value.deviceUser||{})}async function g(){const L=await Ju({id:l.value});if(L.code===200){const j=L.data||[];a.value=j.map((F,M)=>(M!==j.length-1&&(F.hadCheckv2=j[M+1].hadCheck),F))}}async function C(){const L=await Qu({id:l.value});if(L.code===200){s.value=L.data||{};const j=s.value.pointList;o.value=j.map((F,M)=>{if(M!==j.length-1){const z=j[M+1].checkState;z===1?F.backgroundName="hy-success":z===2?F.backgroundName="hy-danger":F.backgroundName="hy-text-secondary"}return F})}}function w(){m.value&&m.value.setFitView()}function D(L){r.value=L}function T(L){if(!L)return Se.error(`id ${x("theParametersAreWrongAndItFailsToOpen")}`);l.value=L,a.value=[],o.value=[],s.value={},n.value={},t.value={},D("pointTrail"),h().then(()=>{i.value=!0,g().then(()=>{S()})}),C()}function B(){i.value=!1}return{$t:x,dialogVisible:i,map:m,markerList:_,polylineList:y,viewTaskExampleRef:u,submissionFormRef:N,deviceUser:t,form:n,pointList:o,pointTrailList:a,taskExecute:s,taskId:l,abnormalState:r,markerClickFn:E,addMarker:b,initMap:S,viewTaskExampleShow:V,submissionFormShow:$,selectFn:h,pointTrailFn:g,deviceSctTaskExecute:C,setFitView:w,abnormalStateFn:D,show:T,onClose:B,tasklatAndlngType:k,isShowMap:p}}const gn=t=>(e.pushScopeId("data-v-c41097d4"),t=t(),e.popScopeId(),t),$S={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},BS={class:"absolute right-[12px] top-[12px]"},IS={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg relative z-10"},AS={class:"dialog_body"},LS={class:"ovh centerBox overflow-hidden flex items-center justify-center"},FS={class:"r-f navigation flex"},OS={class:"progress_box centerBox fs_12 text-[12px] flex justify-center items-center"},RS={key:0,class:"c_dangerv2 text-hy-danger"},PS={key:1,class:"c_success text-hy-success"},MS={key:2,class:"c_9DA7B2 text-hy-text-secondary"},US={key:3,class:"c_theme text-hy-text-primary"},zS={style:{width:"108px"},class:"plr_10 p-[0_10px]"},WS={class:"c_theme text-hy-text-primary"},jS={style:{height:"500px"},class:"fs_12 lh_20 text-[12px] leading-[20px]"},HS={class:"h_100vh r-f details flex h-full"},YS={class:"taskDetails fs_12 lh_20 flex-shrink text-[12px] leading-[20px]"},GS={class:"c_dangerv2 fw_600 fs_16 mb_10 text-hy-danger font-[600] text-[16px] mb-[10px]"},qS={key:0,class:"mb_10 mb-[10px]"},KS={class:"c_9DA7B2 text-hy-text-secondary"},XS=["innerHTML"],JS={class:"mb_10 mb-[10px]"},ZS={class:"c_9DA7B2 text-hy-text-secondary"},QS={class:"mb_10 mb-[10px]"},vS={class:"c_9DA7B2 text-hy-text-secondary"},eT={class:"mb_10 mb-[10px]"},tT={class:"c_9DA7B2 text-hy-text-secondary"},nT={key:1,class:"mb_10 mb-[10px]"},oT={class:"c_9DA7B2 text-hy-text-secondary"},aT={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)"}},sT={class:"fs_16 h_50 lh_50 pl_20 text-[16px] h-[50px] leading-[50px] pl-[20px]"},lT={class:"pos_r pl_10 relative pl-[10px]"},rT=gn(()=>e.createElementVNode("span",{class:"line"},null,-1)),iT={style:{"flex-grow":"1"},class:"centerBox flex items-center justify-center"},cT={class:"c_9DA7B2 tac lh_30 text-hy-text-secondary text-center leading-[30px]"},dT={class:"centerBox mb_10 mb-[10px] flex justify-center items-center"},pT={class:"c_fff fs_14 text-hy-text-main text-[14px]"},fT={class:"centerBox flex items-center justify-center"},mT={style:{"margin-left":"6px"}},hT={class:"r-f flex"},uT=gn(()=>e.createElementVNode("p",{class:"mlr_10 linev2 m-[0_10px]"},null,-1)),_T={class:"ecutionRecord"},gT={class:"flex_vertically_center pos_r relative flex items-center"},yT={class:"flex_vertically_center flex items-center"},xT={class:"mr_10 fs_14 mr-[10px] text-[14px]"},kT={key:0,class:"mr_10 status status_theme mr-[10px]"},NT={key:1,class:"mr_10 status mr-[10px]"},bT={key:2,class:"mr_10 status status_success mr-[10px]"},CT={key:3,class:"mr_10 status status_dangerv2 mr-[10px]"},wT={key:4,class:"mr_10 status status_dangerv2 mr-[10px]"},ET={key:5,class:"mr_10 status status_dangerv2 mr-[10px]"},ST={key:6,class:"mr_10 status status_success mr-[10px]"},TT=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)),DT={class:"c_9DA7B2 fw_600 text-hy-text-secondary font-[600]"},VT={class:"pointTrail r-f h_100vh flex h-full"},$T={class:"pointTrailList c_9DA7B2 text-hy-text-secondary"},BT=["onClick"],IT={class:"c_fff lh_30 pos_r text-hy-text-main leading-[30px] relative"},AT={class:"over_one_line truncate"},LT={key:1,class:"indexBox indexv2Box"},FT={class:"over_one_line truncate"},OT={class:"pos_r relative"},RT=gn(()=>e.createElementVNode("span",{class:"indexBox indexv2Box"},null,-1)),PT={key:0},MT={key:1,class:"text-auxiliary text-hy-text-secondary"},UT={class:"pos_r relative"},zT=gn(()=>e.createElementVNode("span",{class:"indexBox indexv2Box"},null,-1)),WT={class:"over_one_line truncate"},jT={class:"f-g flex-grow w-0 h-full rounded ml-4"},HT={key:0,class:"p-2 box-border w-full h-full rounded bg-hy-dialog-bg-2"},YT={key:1,id:"electronicPatrolDetailsMap",class:"w-full h-full"},GT={key:0,class:"p-2 box-border w-full h-full rounded bg-hy-dialog-bg-2 flex items-center justify-center"},qT={class:"flex flex-col items-center justify-center text-hy-text-secondary"},KT={class:"mt_10 mt-[10px]"},Vr=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:_,pointTrailList:y,markerClickFn:u,tasklatAndlngType:N,viewTaskExampleRef:k,submissionFormRef:E,isShowMap:b}=VS();return n({show:a}),(S,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]=T=>e.isRef(s)?s.value=T: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:!S.draggable,draggable:S.draggable,"modal-class":S.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",$S,[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("patrol")),1),e.createElementVNode("div",BS,[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",IS,[e.createElementVNode("div",AS,[e.createElementVNode("div",LS,[e.createElementVNode("ul",FS,[e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select cursor-pointer",{selectBox:e.unref(l)==="details"}]),onClick:V[0]||(V[0]=T=>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]=T=>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]=T=>e.unref(i)("pointTrail"))},e.toDisplayString(e.unref(o)("inspectionTrajectory")),3)])]),e.withDirectives(e.createElementVNode("div",OS,[e.unref(c).finishState===0?(e.openBlock(),e.createElementBlock("span",RS,e.toDisplayString(e.unref(o)("unfinished")),1)):e.unref(c).finishState===1?(e.openBlock(),e.createElementBlock("span",PS,e.toDisplayString(e.unref(o)("hasBeenCompleted")),1)):e.unref(c).finishState===2?(e.openBlock(),e.createElementBlock("span",MS,e.toDisplayString(e.unref(o)("notPerformed")),1)):e.unref(c).finishState===3?(e.openBlock(),e.createElementBlock("span",US,e.toDisplayString(e.unref(o)("execute")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",zS,[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",WS,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",jS,[e.withDirectives(e.createElementVNode("div",HS,[e.createElementVNode("div",YS,[e.createElementVNode("p",GS,e.toDisplayString(e.unref(p).taskName),1),e.unref(p).taskInfo?(e.openBlock(),e.createElementBlock("div",qS,[e.createElementVNode("p",KS,e.toDisplayString(e.unref(o)("taskDescription")),1),e.createElementVNode("p",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(p).taskInfo},null,8,XS)])):e.createCommentVNode("",!0),e.createElementVNode("div",JS,[e.createElementVNode("p",ZS,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",QS,[e.createElementVNode("p",vS,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",eT,[e.createElementVNode("p",tT,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",nT,[e.createElementVNode("p",oT,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",aT,[e.createElementVNode("div",sT,[e.createElementVNode("span",lT,[rT,e.createTextVNode(" "+e.toDisplayString(e.unref(o)("executiveInformation")),1)])]),e.createElementVNode("div",iT,[e.createElementVNode("div",cT,[e.createElementVNode("div",dT,[e.createVNode(xt,e.mergeProps({class:"w-[54px] h-[54px]"},{onlineState:!0}),null,16)]),e.createElementVNode("div",pT,e.toDisplayString(e.unref(d).name),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(d).orgName),1),e.createElementVNode("div",fT,[e.createVNode($,{name:"base-vehicle-electric-arc","class-name":"w-[16px] h-[16px]"}),e.createElementVNode("span",mT,e.toDisplayString(e.unref(d).phone),1)]),e.createElementVNode("div",hT,[e.createElementVNode("div",null,e.toDisplayString(e.unref(o)("shortNumber"))+e.toDisplayString(e.unref(d).jobNum),1),uT,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",_T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),(T,B)=>(e.openBlock(),e.createElementBlock("li",{key:B},[T.backgroundName?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`background: var(--${T.backgroundName});`),class:"line_box"},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",gT,[e.createElementVNode("div",{class:e.normalizeClass(["indexBox centerBox flex items-center justify-center",{indexBox_success:T.checkState===1,indexBox_dangerv2:T.checkState===2}])},[e.createElementVNode("p",{class:e.normalizeClass([`color_${T.checkState}`,"over_one_line truncate"])},e.toDisplayString(B+1),3)],2),e.createElementVNode("div",yT,[e.createElementVNode("span",xT,e.toDisplayString(T.pointName),1),T.hadCheck===1?(e.openBlock(),e.createElementBlock("span",kT,e.toDisplayString(e.unref(o)("haveBeenInspected")),1)):(e.openBlock(),e.createElementBlock("span",NT,e.toDisplayString(e.unref(o)("unpaidInspection")),1)),T.checkState===1?(e.openBlock(),e.createElementBlock("span",bT,e.toDisplayString(e.unref(o)("normal")),1)):T.checkState===2?(e.openBlock(),e.createElementBlock("span",CT,e.toDisplayString(e.unref(o)("abnormal")),1)):e.createCommentVNode("",!0),T.dealState===1&&T.checkState===2?(e.openBlock(),e.createElementBlock("span",wT,e.toDisplayString(e.unref(o)("pending")),1)):T.dealState===2&&T.checkState===2?(e.openBlock(),e.createElementBlock("span",ET,e.toDisplayString(e.unref(o)("processing")),1)):T.dealState===3&&T.checkState===2?(e.openBlock(),e.createElementBlock("span",ST,e.toDisplayString(e.unref(o)("solved")),1)):e.createCommentVNode("",!0)]),TT,e.createElementVNode("div",null,[T.recordId?(e.openBlock(),e.createBlock(g,{key:0,class:"button_function",onClick:L=>e.unref(m)(T.recordId)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("viewForm")),1)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),T.taskExample&&T.taskExample.exampleName?(e.openBlock(),e.createBlock(g,{key:1,class:"button_default",onClick:L=>e.unref(_)(T.taskExample)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("missionExample")),1)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)])]),e.createElementVNode("p",DT,e.toDisplayString(T.executeDtm),1)]))),128))],512),[[e.vShow,e.unref(l)==="ecutionRecord"]]),e.withDirectives(e.createElementVNode("div",VT,[e.createElementVNode("ul",$T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),(T,B)=>(e.openBlock(),e.createElementBlock("li",{key:`${B}pointTrailList`,class:"clickBox",onClick:L=>e.unref(u)(T)},[e.createElementVNode("div",IT,[T.hadCheck===1?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([T.checkState===1?"indexBox_success":"indexBox_dangerv2","indexBox centerBox flex items-center justify-center"])},[e.createElementVNode("p",AT,e.toDisplayString(B+1),1)],2)):(e.openBlock(),e.createElementBlock("span",LT)),e.createElementVNode("div",FT,e.toDisplayString(T.pointName),1)]),e.createElementVNode("div",OT,[RT,T.lng&&T.lat?(e.openBlock(),e.createElementBlock("span",PT,e.toDisplayString(T.lng)+","+e.toDisplayString(T.lat),1)):(e.openBlock(),e.createElementBlock("span",MT,e.toDisplayString(e.unref(o)("notSetUpLatitudeAndLongitude")),1))]),T.address?(e.openBlock(),e.createBlock(C,{key:0,class:"item",effect:"dark",content:T.address,placement:"bottom-start"},{default:e.withCtx(()=>[e.createElementVNode("div",UT,[zT,e.createElementVNode("div",WT,e.toDisplayString(T.address),1)])]),_:2},1032,["content"])):e.createCommentVNode("",!0)],8,BT))),128))]),e.createElementVNode("div",jT,[e.unref(b)?(e.openBlock(),e.createElementBlock("div",YT,[e.unref(N)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",GT,[e.createElementVNode("div",qT,[e.createVNode($,{name:"sys-icon-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",KT,e.toDisplayString(e.unref(o)("noSpecificAddressIsSetInThisInspectionTask")),1)])]))])):(e.openBlock(),e.createElementBlock("div",HT,[e.createVNode(Gt,{class:"!bg-hy-dialog-bg-3"})]))])],512),[[e.vShow,e.unref(l)==="pointTrail"]])]),e.createVNode(Tr,{ref_key:"submissionFormRef",ref:E,"form-type":2,draggable:S.draggable},null,8,["draggable"]),e.createVNode(Dr,{ref_key:"viewTaskExampleRef",ref:k,controller:"scrollCheck/scExample",draggable:S.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-c41097d4"]]);function XT({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([]),_=e.ref([]),y=e.ref(null),u=e.ref(null),N=e.ref(),k=e.computed(()=>_.value&&_.value.length?_.value:n.selectedByDefault&&n.selectedByDefault.length?n.selectedByDefault:[]);function E(C){return new Promise((w,D)=>{i.value="",y.value=w,_.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 S(){l.value=!1}function V(){u.value&&u.value.abort(),u.value=new AbortController}async function $(){const C=await Qf({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:_,successfulCallback:y,abortController:u,personnelTreeRef:N,initSelectedDeviceList:k,show:E,onSubmit:b,onClose:S,initAbortController:V,getData:$,onCheckTree:h,onSelectedData:g}}const JT={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},ZT={class:"absolute right-[12px] top-[12px]"},QT={class:"dialog_body percent-100 relative z-10",style:{"box-sizing":"border-box"}},vT={class:"h-[500px]"},eD={class:"mt-[20px] flex justify-center"},tD=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:_,selectedByDefaultv2:y}=XT({emit:s,props:a});return e.watch(()=>i.value,u=>{i.value=u.replace(/\s/g,"")}),e.onUnmounted(()=>{c.value&&c.value.abort()}),n({show:_}),(u,N)=>{const k=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button"),b=e.resolveComponent("el-dialog"),S=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(b,{modelValue:e.unref(r),"onUpdate:modelValue":N[0]||(N[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:!u.draggable,draggable:u.draggable,"modal-class":u.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",JT,[e.createElementVNode("span",null,e.toDisplayString(e.unref(l)("choicePersonnel")),1),e.createElementVNode("div",ZT,[e.createVNode(k,{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"])])])),[[S]])]),default:e.withCtx(()=>[e.createElementVNode("div",QT,[e.createElementVNode("div",vT,[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",eD,[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-72fb9883"]]);function nD({emit:t}){const n=e.ref([]),o=(D,T,B)=>{n.value.length?B():B(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([]),_=e.ref(),y=e.ref(),u=e.ref(),N=e.ref();function k(D){return new Promise((T,B)=>{D&&(r.value=T,i.value=D,p.value={taskName:null,taskInfo:null},l.value=[],n.value=[],_.value&&_.value.resetFields(),c.value=!0)})}function E(){_.value.validate(async D=>{if(D){const T=n.value.map(L=>({deviceUserId:L.id}));(await t_({...p.value,recordId:i.value,deviceUserList:T})).code===200&&(r.value&&r.value(),t("on-submit"),c.value=!1)}})}function b(D=[]){n.value=D,e.nextTick(()=>{_.value.validateField("assignUserList")}),V()}function S(){y.value.show(n.value).then(D=>{b(D)})}function V(){if(n.value&&n.value.length){const D=[];n.value.forEach(T=>{const B=D.findIndex(L=>L.orgId===T.orgId);B===-1?D.push({orgName:T.orgName,orgId:T.orgId,deviceUserList:[{...T}]}):D[B].deviceUserList.push({...T})}),l.value=D}else l.value=[]}function $(D,T){const B=n.value.findIndex(L=>L.orgId===D.orgId&&L.id===T.id);B!==-1&&(n.value.splice(B,1),V())}function h(){m.value.forEach((D,T)=>{const B=f.value.findIndex(L=>L.deviceId===D.deviceId);B!==-1&&f.value.splice(B,1)}),e.nextTick(()=>{m.value=[],u.value.clearSelection()})}function g(D){m.value=D}function C(){N.value.show([...f.value],D=>{f.value=[...D],u.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:_,rules:a,selectPersonnelRef:y,selectList:m,dialogVisible:c,tableData:l,tableColumns:d,assignUserList:n,activeNames:s,deviceIdList:f,personnelFn:V,personnelDeleteFn:$,selectPersonnelShow:S,onSubmit:E,show:k,deleteFn:h,onSelectCheckbox:g,selectDeviceTableShow:C,onClose:w,assignUserListFn:b}}const ca=t=>(e.pushScopeId("data-v-07e4e3ab"),t=t(),e.popScopeId(),t),oD={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},aD={class:"absolute right-[12px] top-[12px]"},sD={class:"deleteBox c_fff handlingException text-hy-text-main bg-hy-dialog-bg relative z-10"},lD={class:"dialog_body"},rD={class:"pb_20 pb-[20px]"},iD={class:"requiredTitle"},cD=ca(()=>e.createElementVNode("i",null,"*",-1)),dD={class:"requiredTitle"},pD=ca(()=>e.createElementVNode("i",null,"*",-1)),fD={class:"w-full"},mD={class:"r-f flex",style:{"justify-content":"space-between"}},hD={class:"requiredTitle"},uD=ca(()=>e.createElementVNode("i",null,"*",-1)),_D={class:"fs_12 text-[12px]"},gD={style:{height:"300px"}},yD={key:0,class:"mt_10 assignUserListBox mt-[10px]"},xD={class:"personnelTitle over_one_line fs_14 c_fff truncate text-[14px] text-hy-text-main"},kD={class:"fs_12 text-[12px]"},ND={class:"c_4477FF text-hy-text-primary"},bD={class:"fs_12 r-f personnelItem_box flex text-[12px]"},CD={class:"c_9DA7B2 text-hy-text-secondary"},wD=["onClick"],ED={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"},SD={class:"tac text-center"},TD={class:"mt_10 mt-[10px]"},DD={class:"operator-button centerBox mt_20 flex justify-center items-center mt-[20px]"},VD=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:_,activeNames:y,tableData:u,personnelDeleteFn:N,onSubmit:k,selectPersonnelRef:E}=nD({emit:a});return n({show:l}),(b,S)=>{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"),T=e.resolveComponent("el-row"),B=e.resolveComponent("el-form"),L=e.resolveComponent("el-dialog"),j=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(L,{modelValue:e.unref(r),"onUpdate:modelValue":S[4]||(S[4]=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:"860px",modal:!b.draggable,draggable:b.draggable,"modal-class":b.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",oD,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("abnormalTreatment")),1),e.createElementVNode("div",aD,[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",sD,[e.createElementVNode("div",lD,[e.createElementVNode("div",rD,[e.createVNode(B,{ref_key:"formRef",ref:p,"label-position":"top",model:e.unref(c),rules:e.unref(d),"label-width":"0px"},{default:e.withCtx(()=>[e.createVNode(T,{gutter:30},{default:e.withCtx(()=>[e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createVNode(h,{prop:"taskName"},{default:e.withCtx(()=>[e.createElementVNode("div",iD,[e.createTextVNode(e.toDisplayString(e.unref(s)("abnormalTask")),1),cD]),e.createVNode($,{modelValue:e.unref(c).taskName,"onUpdate:modelValue":S[0]||(S[0]=F=>e.unref(c).taskName=F),"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",dD,[e.createTextVNode(e.toDisplayString(e.unref(s)("taskDescription")),1),pD]),e.createVNode($,{modelValue:e.unref(c).taskInfo,"onUpdate:modelValue":S[1]||(S[1]=F=>e.unref(c).taskInfo=F),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",fD,[e.createElementVNode("div",mD,[e.createElementVNode("div",hD,[e.createTextVNode(e.toDisplayString(e.unref(s)("executiveStaff")),1),uD]),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:S[2]||(S[2]=F=>e.unref(_)([]))},{default:e.withCtx(()=>[e.createElementVNode("span",_D,e.toDisplayString(e.unref(s)("empty")),1)]),_:1})):e.createCommentVNode("",!0)])]),e.createElementVNode("div",gD,[e.unref(m).length?(e.openBlock(),e.createElementBlock("div",yD,[e.createVNode(D,{modelValue:e.unref(y),"onUpdate:modelValue":S[3]||(S[3]=F=>e.isRef(y)?y.value=F:null),accordion:"",class:"collapse-item__header_darkColor"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(F,M)=>(e.openBlock(),e.createBlock(w,{key:`${M}personnel`,class:"personnelBox",name:F.orgId},{title:e.withCtx(()=>[e.createElementVNode("div",xD,[e.createTextVNode(e.toDisplayString(F.orgName)+" ",1),e.createElementVNode("span",kD,[e.createElementVNode("span",ND,e.toDisplayString(F.deviceUserList.length),1),e.createTextVNode(e.toDisplayString(e.unref(s)("people")),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",bD,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.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",CD,"("+e.toDisplayString(z.jobNum)+")",1),e.createElementVNode("div",{class:"clickBox centerBox flex items-center justify-center cursor-pointer",onClick:R=>e.unref(N)(F,z)},[e.createVNode(V,{name:"base-delete","class-name":"w-[16px] h-[16px]"})],8,wD)]))),128))])]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])])):(e.openBlock(),e.createElementBlock("div",ED,[e.createElementVNode("div",SD,[e.createVNode(V,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",TD,e.toDisplayString(e.unref(s)("pleaseSelectExecutives")),1)])]))])])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),e.createElementVNode("div",DD,[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(k)},{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(tD,{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-07e4e3ab"]]);function $D({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}=Qt(),_=e.shallowRef(null),y=e.ref(null),u=e.ref(!1),N=e.ref(),k=e.ref(),E=e.ref(),b=e.ref();function S(R){N.value.show(R)}function V(R,Y,X){Y[X]=R}function $(R){k.value.show(R)}function h(){l.value.dealState===0||l.value.dealState===1||(E.value?E.value.getTableData():setTimeout(()=>{h()},500))}function g(R){a.value.orgId=R[R.length-1],e.nextTick(()=>{h()})}function C(R){b.value.show(R.id).then(()=>{F().then(()=>{h(),t("on-getData")})})}function w(R){if(R.del===1)return Se.error(x("theFileHasBeenDeletedAndCannotBeViewed-0"));R.fileType===1||R.fileType===2||R.fileType}function D(){d&&e.nextTick(async()=>{let R=[];const Y=ze.getCache("userInfo");Y.lng&&Y.lat&&(R=[Y.lat,Y.lng]),R.length===0&&(R=null),l.value.lng&&l.value.lat&&(R=[l.value.lat,l.value.lng]),_.value=await c.map("abnormalDetailsMap",{maxZoom:m.maxZoom||18,minZoom:m.minZoom||13,zoom:m.zoom||13,center:R,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:f,layerType:m.satelliteMap}),_.value.on("complete",()=>{console.log("加载完成"),T()})})}function T(){if(l.value.lng&&l.value.lat){console.log(l.value);const R=c.marker(_.value,[l.value.lat,l.value.lng],{icon:`<svg aria-hidden="true" class="svg-icon" style="width: 60px; height: 60px;">
56
- <use data-v-19e5a669="" xlink:href="#icon-marker-abnormal"></use></svg>`,zIndexOffset:10,iconAnchor:[30,60]});c.markerAddTo(_.value,R),R.on("click",()=>{B(l.value)})}}function B(R,Y=18){c.setView(_.value,[R.lat,R.lng],18)}function L(R){s.value=R}async function j(){return new Promise(async(R,Y)=>{const X=await Al({recordId:i.value});X.code===200&&(r.value=X.data||{},r.value.imageList&&(r.value.imageListV2=r.value.imageList.map(P=>P.filePath)),R(0))})}async function F(){return new Promise(async(R,Y)=>{const X=await e_({id:i.value});if(X.code===200){const P=X.data||{};l.value=P,l.value.id=i.value,a.value.taskId=P.abnormalTaskId,R(0)}})}function M(){_.value=null}function z(R){if(!R)return Se.error(`recordId ${x("theParametersAreWrong")}`);i.value=R,M(),L("details"),a.value={taskId:null,reportState:null,orgId:null},j(),F().then(()=>{u.value=!0,e.nextTick(()=>{D(),h()})})}function U(){u.value=!1}return{$t:x,searchArr:n,tableColumns:o,requestParams:a,abnormalState:s,form:l,deviceReport:r,recordId:i,map:_,marker:y,dialogVisible:u,electronicPatrolDetailsRef:N,submissionFormRef:k,AppTableRef:E,handlingExceptionRef:b,isShowMap:d,taskDetailsShow:S,visibleChange:V,submissionFormShow:$,appTableGetData:h,orgCascaderOnChange:g,handlingExceptionShow:C,clickGroupItem:w,initMap:D,addMarker:T,pantoSomeWhere:B,abnormalStateFn:L,deviceReportFn:j,selectFn:F,emptyMap:M,show:z,onClose:U}}const BD=t=>(e.pushScopeId("data-v-73e74e7a"),t=t(),e.popScopeId(),t),ID={class:"pos_r dialog_header relative text-[18px] bg-hy-dialog-bg-1 text-center p-[20px] font-bold z-[1] font-['Helvetica']"},AD={class:"absolute right-[12px] top-[12px]"},LD={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg relative z-10"},FD={class:"dialog_body"},OD={class:"ovh centerBox overflow-hidden flex items-center justify-center"},RD={class:"r-f navigation flex"},PD={style:{height:"500px"},class:"c_fff fs_12 text-hy-text-main text-[12px]"},MD={class:"w_100vh h_100vh r-f details_box w-full h-full flex"},UD={class:"taskDetails lh_20 flex-shrink leading-[20px]"},zD={class:"c_dangerv2 fw_600 fs_16 mb_10 text-hy-danger font-[600] text-[16px] mb-[10px]"},WD={key:0,class:"mb_10 mb-[10px]"},jD={class:"c_9DA7B2 text-hy-text-secondary"},HD=["innerHTML"],YD={class:"mb_10 mb-[10px]"},GD={class:"c_9DA7B2 text-hy-text-secondary"},qD={class:"mb_10 mb-[10px]"},KD={class:"c_9DA7B2 text-hy-text-secondary"},XD={class:"mb_10 mb-[10px]"},JD={class:"c_9DA7B2 text-hy-text-secondary"},ZD={class:"mb_10 mb-[10px]"},QD={class:"c_9DA7B2 text-hy-text-secondary"},vD={class:"f-g c-f flex flex-col w-0 flex-grow"},eV={class:"h_40 lh_40 fs_14 h-[40px] leading-[40px] text-[14px]"},tV={class:"title"},nV={class:"w-full h-full relative overflow-hidden",style:{height:"0","flex-grow":"1","border-radius":"6px"}},oV=BD(()=>e.createElementVNode("div",{class:"relative z-[1] w-full h-full"},[e.createElementVNode("div",{id:"abnormalDetailsMap",class:"w_100vh w-full",style:{height:"0","flex-grow":"1","border-radius":"6px"}})],-1)),aV={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},sV={class:"information"},lV={class:"flex_vertically_center flex items-center"},rV={style:{"margin-left":"6px"}},iV={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},cV={class:"flex_vertically_center flex items-center"},dV={style:{"margin-left":"6px"}},pV={key:0,class:"type_box success"},fV={key:1,class:"type_box"},mV={class:"form"},hV={key:0},uV={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},_V={class:"r-f mb_10 flex_vertically_center flex items-center mb-[10px]"},gV={class:"mr_10 label flex-shrink mr-[10px]"},yV={class:"r-f flex_vertically_center flex items-center"},xV={class:"mr_10 label label_answer flex-shrink mr-[10px]"},kV={key:0,class:"c_theme text-hy-text-primary"},NV={key:1,class:"c_9DA7B2 text-hy-text-secondary"},bV={key:1},CV={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},wV={class:"group-item"},EV=["onClick"],SV={key:0,class:"c-f-i group-content r-f flex"},TV={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},DV=["src"],VV={key:1,style:{"flex-grow":"1"}},$V={class:"icon-box c-f-i flex"},BV={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},IV={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},AV={key:0,class:"information-type"},LV={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},FV={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},OV={key:0,class:"c_9DA7B2 text-hy-text-secondary"},RV={key:1},PV={key:1,class:"c-f-i group-content r-f flex"},MV={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 font-[600]"},GV={key:0,class:"c_9DA7B2 text-hy-text-secondary"},qV={key:1},KV={key:2,class:"c-f-i group-content r-f flex"},XV={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},JV=["src"],ZV={key:1,style:{"flex-grow":"1"}},QV={class:"icon-box c-f-i flex"},vV={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},e$={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},t$={key:0,class:"information-type"},n$={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},o$={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},a$={key:0,class:"c_9DA7B2 text-hy-text-secondary"},s$={key:1},l$={key:2},r$={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},i$={class:"group-item"},c$=["onClick"],d$={key:0,class:"c-f-i group-content r-f flex"},p$={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},f$=["src"],m$={key:1,style:{"flex-grow":"1"}},h$={class:"icon-box c-f-i flex"},u$={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},_$={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},g$={key:0,class:"information-type"},y$={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},x$={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},k$={key:0,class:"c_9DA7B2 text-hy-text-secondary"},N$={key:1},b$={key:1,class:"c-f-i group-content r-f flex"},C$={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$={key:2,class:"c-f-i group-content r-f flex"},A$={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},L$=["src"],F$={key:1,style:{"flex-grow":"1"}},O$={class:"icon-box c-f-i flex"},R$={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},P$={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},M$={key:0,class:"information-type"},U$={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},z$={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},W$={key:0,class:"c_9DA7B2 text-hy-text-secondary"},j$={key:1},H$={class:"c-f w_100vh h_100vh handling_box flex flex-col w-full h-full"},Y$={key:0,class:"h_100vh centerBox c_9DA7B2 noTaskSelected h-full flex items-center justify-center text-hy-text-secondary"},G$={class:"tac text-center"},q$={class:"mt_10 mt-[10px]"},K$={class:"fs_12 text-[12px]"},X$={key:1},J$={class:"progress_box centerBox fs_12 flex items-center justify-center text-[12px]"},Z$={key:0,class:"c_theme text-hy-text-primary"},Q$={key:1,class:"c_success text-hy-success"},v$={style:{width:"108px"},class:"plr_10 p-[0_10px]"},e2={class:"c_theme text-hy-text-primary"},t2={key:0,class:"r-f flex",style:{"flex-wrap":"wrap"}},n2={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},o2={key:1,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},a2={key:0,class:"c_theme text-hy-text-primary"},s2={key:1,class:"c_9DA7B2 text-hy-text-secondary"},l2={class:"pos_r relative"},r2={key:0,style:{cursor:"pointer"}},i2=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,isShowMap:i,handlingExceptionRef:c,electronicPatrolDetailsRef:p,submissionFormRef:d,onClose:f,abnormalState:m,AppTableRef:_,abnormalStateFn:y,form:u,taskDetailsShow:N,deviceReport:k,clickGroupItem:E,handlingExceptionShow:b,tableColumns:S,searchArr:V,requestParams:$,submissionFormShow:h,orgCascaderOnChange:g,appTableGetData:C,visibleChange:w}=$D({emit:a});return n({show:l}),(D,T)=>{const B=e.resolveComponent("svg-icon"),L=$t,j=e.resolveComponent("el-icon"),F=e.resolveComponent("el-button"),M=e.resolveComponent("el-progress"),z=e.resolveComponent("el-option"),U=e.resolveComponent("el-select"),R=Vl,Y=e.resolveComponent("el-dialog"),X=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(Y,{modelValue:e.unref(r),"onUpdate:modelValue":T[8]||(T[8]=P=>e.isRef(r)?r.value=P: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:!D.draggable,draggable:D.draggable,"modal-class":D.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",ID,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("abnormalDetail")),1),e.createElementVNode("div",AD,[e.createVNode(B,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(f),["stop"])},null,8,["onClick"])])])),[[X]])]),default:e.withCtx(()=>[e.createElementVNode("div",LD,[e.createElementVNode("div",FD,[e.createElementVNode("div",OD,[e.createElementVNode("ul",RD,[e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(m)==="details"}]),onClick:T[0]||(T[0]=P=>e.unref(y)("details"))},e.toDisplayString(e.unref(s)("abnormalDetails")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(m)==="form"}]),onClick:T[1]||(T[1]=P=>e.unref(y)("form"))},e.toDisplayString(e.unref(s)("abnormalForm")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(m)==="handling"}]),onClick:T[2]||(T[2]=P=>e.unref(y)("handling"))},e.toDisplayString(e.unref(s)("handling")),3)])]),e.createElementVNode("div",PD,[e.withDirectives(e.createElementVNode("div",MD,[e.createElementVNode("div",UD,[e.createElementVNode("p",zD,e.toDisplayString(e.unref(u).taskName),1),e.unref(u).taskInfo?(e.openBlock(),e.createElementBlock("div",WD,[e.createElementVNode("p",jD,e.toDisplayString(e.unref(s)("taskDescription")),1),e.createElementVNode("p",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(u).taskInfo},null,8,HD)])):e.createCommentVNode("",!0),e.createElementVNode("div",YD,[e.createElementVNode("p",GD,e.toDisplayString(e.unref(s)("implementRoute")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).lineName),1)]),e.createElementVNode("div",qD,[e.createElementVNode("p",KD,e.toDisplayString(e.unref(s)("abnormalLocation")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).pointName),1)]),e.createElementVNode("div",XD,[e.createElementVNode("p",JD,e.toDisplayString(e.unref(s)("executionTime")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).executeDtm),1)]),e.createElementVNode("div",ZD,[e.createElementVNode("p",QD,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:T[3]||(T[3]=P=>e.unref(N)(e.unref(u).sourceId))},[e.createElementVNode("span",null,e.toDisplayString(e.unref(u).sourceTaskName),1),e.createVNode(j,{class:"ml-[6px] !text-[14px] !text-hy-text-primary"},{default:e.withCtx(()=>[e.createVNode(L)]),_:1})])])]),e.createElementVNode("div",vD,[e.createElementVNode("div",eV,[e.createElementVNode("span",tV,e.toDisplayString(e.unref(s)("abnormalPosition")),1)]),e.createElementVNode("div",nV,[e.withDirectives(e.createVNode(Gt,{class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(i)]]),oV])]),e.withDirectives(e.createElementVNode("div",aV,[e.createElementVNode("div",sV,[e.createElementVNode("div",lV,[e.createVNode(B,{style:{width:"14px",height:"14px"},name:"base-user-online"}),e.createElementVNode("span",rV,[e.createTextVNode(e.toDisplayString(e.unref(k).name),1),e.unref(k).jobNum?(e.openBlock(),e.createElementBlock("span",iV,"("+e.toDisplayString(e.unref(k).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",cV,[e.createVNode(B,{name:"base-every-day-time","class-name":"w-[16px] h-[16px]"}),e.createElementVNode("span",dV,e.toDisplayString(e.unref(k).executeDtm),1)]),e.unref(k).checkState===1?(e.openBlock(),e.createElementBlock("div",pV,e.toDisplayString(e.unref(s)("normal")),1)):e.unref(k).checkState===2?(e.openBlock(),e.createElementBlock("div",fV,e.toDisplayString(e.unref(s)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",mV,[e.unref(k).formList&&e.unref(k).formList.length?(e.openBlock(),e.createElementBlock("div",hV,[e.createElementVNode("div",uV,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,(P,v)=>(e.openBlock(),e.createElementBlock("li",{key:v,class:"border-top ptb_10 p-[10px_0]"},[e.createElementVNode("div",_V,[e.createElementVNode("p",gV,e.toDisplayString(e.unref(s)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(P.optionTitle),1)]),e.createElementVNode("div",yV,[e.createElementVNode("p",xV,e.toDisplayString(e.unref(s)("answer")),1),P.optionValue?(e.openBlock(),e.createElementBlock("span",kV,e.toDisplayString(P.optionValue),1)):(e.openBlock(),e.createElementBlock("span",NV,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",bV,[e.createElementVNode("div",CV,e.toDisplayString(e.unref(s)("picture")),1),e.createElementVNode("div",wV,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k).imageList,P=>(e.openBlock(),e.createElementBlock("div",{key:P.id,onClick:v=>e.unref(E)(P)},[P.fileType===1?(e.openBlock(),e.createElementBlock("div",SV,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.filePath&&P.del!==1?(e.openBlock(),e.createElementBlock("div",TV,[e.createElementVNode("img",{src:P.filePath,class:"h_100vh h-full"},null,8,DV)])):(e.openBlock(),e.createElementBlock("div",VV,[e.createElementVNode("div",$V,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{style:{margin:"0 4px"},name:"menu-image","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",BV,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",IV,[P.type===1?(e.openBlock(),e.createElementBlock("div",AV,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",LV,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",FV," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",OV,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",RV,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):P.fileType===4?(e.openBlock(),e.createElementBlock("div",PV,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[e.createElementVNode("div",MV,[e.createElementVNode("div",UV,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{name:"menu-micphone","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{style:{"margin-left":"4px"},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:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",WV,[P.type===1?(e.openBlock(),e.createElementBlock("div",jV,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",HV,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",YV," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",GV,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",qV,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):P.fileType===2?(e.openBlock(),e.createElementBlock("div",KV,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.screenshot1?(e.openBlock(),e.createElementBlock("div",XV,[e.createElementVNode("img",{src:P.screenshot1,class:"h_100vh h-full"},null,8,JV)])):(e.openBlock(),e.createElementBlock("div",ZV,[e.createElementVNode("div",QV,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{style:{margin:"0 4px"},name:"menu-video","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{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:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",e$,[P.type===1?(e.openBlock(),e.createElementBlock("div",t$,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",n$,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",o$," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",a$,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",s$,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{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,EV))),128))])])):e.createCommentVNode("",!0),e.unref(k).videoList&&e.unref(k).videoList.length?(e.openBlock(),e.createElementBlock("div",l$,[e.createElementVNode("div",r$,e.toDisplayString(e.unref(s)("video")),1),e.createElementVNode("div",i$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k).videoList,P=>(e.openBlock(),e.createElementBlock("div",{key:P.id,onClick:v=>e.unref(E)(P)},[P.fileType===1?(e.openBlock(),e.createElementBlock("div",d$,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.filePath&&P.del!==1?(e.openBlock(),e.createElementBlock("div",p$,[e.createElementVNode("img",{src:P.filePath,class:"h_100vh h-full"},null,8,f$)])):(e.openBlock(),e.createElementBlock("div",m$,[e.createElementVNode("div",h$,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{style:{margin:"0 4px"},name:"menu-image","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",u$,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",_$,[P.type===1?(e.openBlock(),e.createElementBlock("div",g$,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",y$,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",x$," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",k$,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",N$,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):P.fileType===4?(e.openBlock(),e.createElementBlock("div",b$,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[e.createElementVNode("div",C$,[e.createElementVNode("div",w$,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{name:"menu-micphone","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{style:{"margin-left":"4px"},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:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",S$,[P.type===1?(e.openBlock(),e.createElementBlock("div",T$,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",D$,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",V$," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",$$,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",B$,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},"svg-name":"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):P.fileType===2?(e.openBlock(),e.createElementBlock("div",I$,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.screenshot1?(e.openBlock(),e.createElementBlock("div",A$,[e.createElementVNode("img",{src:P.screenshot1,class:"h_100vh h-full"},null,8,L$)])):(e.openBlock(),e.createElementBlock("div",F$,[e.createElementVNode("div",O$,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{style:{margin:"0 4px"},name:"menu-video","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",R$,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",P$,[P.type===1?(e.openBlock(),e.createElementBlock("div",M$,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",U$,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",z$," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",W$,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",j$,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{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,c$))),128))])])):e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(m)==="form"]]),e.withDirectives(e.createElementVNode("div",H$,[e.unref(u).dealState===0||e.unref(u).dealState===1?(e.openBlock(),e.createElementBlock("div",Y$,[e.createElementVNode("div",G$,[e.createVNode(B,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",q$,[e.unref(u).dealState===1?(e.openBlock(),e.createBlock(F,{key:0,class:"button_function",onClick:T[4]||(T[4]=P=>e.unref(b)(e.unref(u)))},{default:e.withCtx(()=>[e.createElementVNode("span",K$,e.toDisplayString(e.unref(s)("processedImmediately")),1)]),_:1})):(e.openBlock(),e.createElementBlock("span",X$,e.toDisplayString(e.unref(s)("noNeedToDealWith")),1))])])])):(e.openBlock(),e.createBlock(Yt,{key:1,ref_key:"AppTableRef",ref:_,"column-list":e.unref(S),"search-arr":e.unref(V),"default-get-data":!1,"req-url":"scrollCheck/abnormal/sctUser/page","search-form":e.unref($),height:"100%"},{tableLeft:e.withCtx(()=>[e.createElementVNode("div",J$,[e.unref(u).dealState===2?(e.openBlock(),e.createElementBlock("span",Z$,e.toDisplayString(e.unref(s)("execute")),1)):e.unref(u).dealState===3?(e.openBlock(),e.createElementBlock("span",Q$,e.toDisplayString(e.unref(s)("completed")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",v$,[e.createVNode(M,{class:e.normalizeClass({"progress-bar_outer":e.unref(u).taskProgress!==100}),"text-inside":!0,"stroke-width":16,status:e.unref(u).taskProgress!==100?"exception":"success",percentage:e.unref(u).taskProgress},null,8,["class","status","percentage"])]),e.createElementVNode("span",e2,e.toDisplayString(e.unref(u).finishNum||0)+"/"+e.toDisplayString(e.unref(u).totalNum||0),1)])]),userInformation:e.withCtx(({row:P})=>[P.name?(e.openBlock(),e.createElementBlock("div",t2,[e.createTextVNode(e.toDisplayString(P.name)+" ",1),P.jobNum?(e.openBlock(),e.createElementBlock("span",n2,"("+e.toDisplayString(P.jobNum)+")",1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",o2," -- "))]),reportState:e.withCtx(({row:P})=>[P.reportState===1?(e.openBlock(),e.createElementBlock("span",a2,e.toDisplayString(e.unref(s)("haveBeenReported")),1)):(e.openBlock(),e.createElementBlock("span",s2,e.toDisplayString(e.unref(s)("notReported")),1))]),operator:e.withCtx(({row:P})=>[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(s)("viewForm"),onClick:v=>e.unref(h)(P)},null,8,["tips","onClick"])]),orgHeader:e.withCtx(({column:P})=>[e.createVNode(Tl,{ref:"orgCascader","content-type":!0,onChange:T[5]||(T[5]=v=>e.unref(g)(v))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P.label),1)]),_:2},1536)]),reportStateHeader:e.withCtx(({column:P})=>[e.createElementVNode("div",l2,[e.createElementVNode("div",{style:e.normalizeStyle([{opacity:P.focusType?1:0,position:P.focusType?"relative":"absolute"},{top:"0",left:"0",right:"0",bottom:"0"}])},[e.createVNode(U,{modelValue:e.unref($).reportState,"onUpdate:modelValue":T[6]||(T[6]=v=>e.unref($).reportState=v),style:{width:"100%"},clearable:"",placeholder:P.label,onChange:T[7]||(T[7]=v=>e.unref(C)()),onVisibleChange:v=>e.unref(w)(v,P,"focusType")},{default:e.withCtx(()=>[e.createVNode(z,{label:e.unref(s)("notReported"),value:0},null,8,["label"]),e.createVNode(z,{label:e.unref(s)("haveBeenReported"),value:1},null,8,["label"])]),_:2},1032,["modelValue","placeholder","onVisibleChange"])],4),P.focusType?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",r2,[e.createVNode(j,null,{default:e.withCtx(()=>[e.createVNode(R)]),_:1}),e.createTextVNode(" "+e.toDisplayString(P.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($).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($).reportState===0]])]))])]),_:1},8,["column-list","search-arr","search-form"]))],512),[[e.vShow,e.unref(m)==="handling"]])],512),[[e.vShow,e.unref(m)==="details"]]),e.createVNode(VD,{ref_key:"handlingExceptionRef",ref:c,draggable:D.draggable},null,8,["draggable"]),e.createVNode(Tr,{ref_key:"submissionFormRef",ref:d,draggable:D.draggable},null,8,["draggable"]),e.createVNode(Vr,{ref_key:"electronicPatrolDetailsRef",ref:p,draggable:D.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-73e74e7a"]]);function c2(){const t=e.ref(!1),n=e.ref(),{H:o,POI:a,isShowMap:s,layersUrlList:l,mapConfig:r}=Qt(),i=e.shallowRef(),c=e.shallowRef();e.ref();const p=e.ref(""),d=[{label:"地理地址",value:1},{label:"部门名称",value:4}];function f({mapRailId:u}){n.value=u,t.value=!0,y()}function m(){t.value=!1}async function _(){p.value=null;const u=await xr({id:n.value});if(u.code===200){const N=u.data.pointList;p.value=u.data.railName;const k=[];N.forEach(E=>{k.push([E.lat,E.lng])}),c.value=o.polygon(i.value,k,{weight:6,color:"#FF33FF",opacity:.2,fillColor:"#1791fc",fillOpacity:.4}),o.fitBounds(i.value,k)}}function y(){e.nextTick(async()=>{let u=[];const N=ze.getCache("userInfo");N.lng&&N.lat&&(u=[N.lat,N.lng]),u.length===0&&(u=null),i.value=await o.map("locationArea_container",{maxZoom:r.maxZoom||18,minZoom:r.minZoom||13,zoom:r.zoom||13,center:u,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:l,layerType:r.satelliteMap}),i.value.on("complete",()=>{_()})})}return{dialogVisible:t,show:f,close:m,railName:p,POI:a,map:i,H:o,searchTypes:d}}const d2=t=>(e.pushScopeId("data-v-e3121b24"),t=t(),e.popScopeId(),t),p2={class:"w-full h-[560px] relative p-[10px] box-border"},f2=d2(()=>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)),m2={class:"absolute top-[20px] right-[20px] w-[300px] z-10"},h2={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"},u2={class:"flex"},_2={class:"flex justify-center items-center"},g2={style:{"margin-left":"8px"}},y2={class:"font-bold"},x2=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}=c2();return n({show:a}),(d,f)=>{const m=e.resolveComponent("el-button"),_=e.resolveComponent("svg-icon"),y=e.resolveComponent("el-dialog"),u=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(y,{modelValue:e.unref(o),"onUpdate:modelValue":f[0]||(f[0]=N=>e.isRef(o)?o.value=N: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",p2,[f2,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",m2,[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",h2,[e.createElementVNode("div",u2,[e.createElementVNode("div",null,[e.createElementVNode("span",_2,[e.createVNode(_,{name:"police-situation-ps-around",style:{width:"20px",height:"20px"}}),e.createElementVNode("span",g2,e.toDisplayString(e.unref(x)("currentPositioning")),1)])]),e.createElementVNode("div",y2,[e.createElementVNode("span",null,e.toDisplayString(e.unref(l)),1)])])])])]),_:1})),[[u]])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-e3121b24"]]),k2={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},N2=[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 b2(t,n){return e.openBlock(),e.createElementBlock("svg",k2,[...N2])}const $r={name:"ep-success-filled",render:b2},C2={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},w2=[e.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1)];function E2(t,n){return e.openBlock(),e.createElementBlock("svg",C2,[...w2])}const Br={name:"ep-caret-right",render:E2};function S2({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 _=f.deviceUserList,y=[];_.forEach(u=>{const N=y.findIndex(E=>E.orgId===u.orgId),k=u;k.key=Yn(1),N===-1?y.push({orgName:u.orgName,orgId:u.orgId,deviceUserList:[{...k}]}):y[N].deviceUserList.push({...k})}),s.value=y}else s.value=[];a.value=[],s.value.forEach(_=>{_.deviceUserList&&_.deviceUserList.length&&a.value.push(..._.deviceUserList)});const m=s.value[0];m&&c(m.orgId)}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,dataListRef:l,clickGroupItem:r,selectItemFn:i,activeNameFn:c,taskItemViewFn:p}}const T2={class:"r-f h_100vh flex h-full"},D2={class:"background_box information css-text-no-select"},V2=["onClick"],$2={style:{"margin-left":"4px"}},B2=["onClick"],I2={class:"flex-grow flex w-0"},A2={class:"over_one_line flex-grow w-0 truncate"},L2={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},F2={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},O2={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},R2={class:"flex_vertically_center mb_10 flex items-center mb-[10px]"},P2={class:"title_box pl_10 pl-[10px]"},M2={class:"c_9DA7B2 text-hy-text-secondary"},U2={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},z2={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},W2={class:"recordList fs_12 text-[12px] overflow-hidden"},j2={class:"actionList c_fff"},H2={key:0,class:"indexBox centerBox flex items-center justify-center"},Y2={key:1,class:"indexBoxv2 centerBox"},G2={class:"mediaFileList c_9DA7B2 text-hy-text-secondary"},q2={key:0,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},K2={key:1},X2=["onClick"],J2={class:"fileDel clickBox"},Z2={key:1,class:"file clickBox"},Q2={key:2,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},v2=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}=S2({props:o});return e.onMounted(()=>{c()}),n({taskItemViewFn:c}),(m,_)=>{const y=Br,u=e.resolveComponent("el-icon"),N=$t,k=e.resolveComponent("el-tooltip"),E=$r;return e.openBlock(),e.createElementBlock("div",T2,[e.createElementVNode("div",D2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(b,S)=>(e.openBlock(),e.createElementBlock("div",{key:`${S}deviceUserList`},[e.createElementVNode("div",{class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:V=>e.unref(p)(b.orgId)},[e.createVNode(u,{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",$2,e.toDisplayString(b.orgName),1)],8,V2),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",I2,[e.createElementVNode("div",A2,e.toDisplayString(V.deviceUserName),1),e.createElementVNode("span",L2," ("+e.toDisplayString(V.jobNum)+")",1)]),V.status===0?(e.openBlock(),e.createElementBlock("div",F2,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",O2,e.toDisplayString(e.unref(a)("finish")),1))],8,B2))),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",R2,[e.createElementVNode("div",P2,[e.createTextVNode(e.toDisplayString(b.deviceUserName)+" ",1),e.createElementVNode("span",M2,"("+e.toDisplayString(b.jobNum)+")",1)]),b.status===0?(e.openBlock(),e.createElementBlock("div",U2,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",z2,e.toDisplayString(e.unref(a)("finish")),1))]),e.createElementVNode("ul",W2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.recordList,(S,V)=>(e.openBlock(),e.createElementBlock("li",{key:`${V}recordList`,class:e.normalizeClass([`recordItem_${S.status}`,"background_box mb_10 ovh overflow-hidden mb-[10px]"])},[e.createElementVNode("div",j2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.actionList,($,h)=>(e.openBlock(),e.createElementBlock("div",{key:`${h}actionList`,class:"pos_r flex_vertically_center h_30 relative flex items-center h-[30px]",style:{"padding-left":"28px"}},[h===0?(e.openBlock(),e.createElementBlock("span",H2,e.toDisplayString(V+1),1)):(e.openBlock(),e.createElementBlock("span",Y2)),e.createElementVNode("span",null,e.toDisplayString($.actionDetail),1)]))),128))]),e.createElementVNode("div",G2,[S.status===0?(e.openBlock(),e.createElementBlock("div",q2,[e.createVNode(u,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(N)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("unfinishedTask")),1)])):S.status===1&&S.mediaFileList&&S.mediaFileList.length?(e.openBlock(),e.createElementBlock("div",K2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.mediaFileList,($,h)=>(e.openBlock(),e.createElementBlock("div",{key:`${h}mediaFileList`,class:"pos_r flex_vertically_center css-text-no-select mediaFile_item",onClick:g=>e.unref(f)($)},[e.createVNode(u,{class:"!text-hy-success icon_box"},{default:e.withCtx(()=>[e.createVNode(N)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("uploaded")),1),$.del===1?(e.openBlock(),e.createBlock(k,{key:0,class:"item",effect:"dark",content:e.unref(a)("theFileHasBeenDeletedAndCannotBeViewed"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",J2,e.toDisplayString($.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",Z2,e.toDisplayString($.fileName),1))],8,X2))),128))])):(e.openBlock(),e.createElementBlock("div",Q2,[e.createVNode(u,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(E)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("theTaskHasBeenCompletedWaitingForUploading")),1)]))])],2))),128))])]))),128))],512)])}}}),[["__scopeId","data-v-82696267"]]),eB={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},tB=[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 nB(t,n){return e.openBlock(),e.createElementBlock("svg",eB,[...tB])}const oB={name:"ep-clock",render:nB};function aB({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,_=[];m.forEach(y=>{const u=_.findIndex(k=>k.orgId===y.orgId),N=y;if(N.key=Yn(1),y.userReport){const k=y.userReport;N.urTemplateName=k.templateName,N.urSubmitDtm=k.submitDtm,N.urOptionList=k.optionList||[]}u===-1?_.push({orgName:y.orgName,orgId:y.orgId,deviceUserList:[{...N}]}):_[u].deviceUserList.push({...N})}),s.value=_}else s.value=[];a.value=[],s.value.forEach(m=>{m.deviceUserList&&m.deviceUserList.length&&a.value.push(...m.deviceUserList)});const f=s.value[0];f&&i(f.orgId)}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,reportListRef:l,selectItemFn:r,activeNameFn:i,taskItemViewFn:c}}const sB={class:"r-f h_100vh flex h-full"},lB={class:"background_box information css-text-no-select"},rB=["onClick"],iB={style:{"margin-left":"4px"}},cB=["onClick"],dB={class:"flex-grow flex w-0"},pB={class:"over_one_line flex-grow w-0 truncate"},fB={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},mB={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},hB={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},uB={key:0,ref:"reportListRef",class:"f-g reportList w-0 flex-grow"},_B={key:0,class:"background_box h_100vh lh_20 h-full leading-[20px]"},gB={class:"fs_14 plr_20 border-bottom mtb_10 m-[10px_0] p-[0_20px] text-[14px]"},yB={class:"flex_vertically_center flex items-center",style:{"justify-content":"space-between"}},xB={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},kB={class:"c_9DA7B2 r-f lh_30 flex leading-[30px] text-hy-text-secondary",style:{"justify-content":"space-between"}},NB={class:"flex_vertically_center flex items-center"},bB={style:{"margin-left":"4px"}},CB={style:{padding:"0 20px 10px"}},wB={class:"mb_10 r-f mb-[10px] flex"},EB={class:"mr_10 label flex-shrink mr-[10px]"},SB={class:"c_theme r-f flex text-hy-text-primary"},TB={class:"mr_10 label label_answer flex-shrink mr-[10px]"},DB={key:0,class:"c_theme text-hy-text-primary"},VB={key:1,class:"c_theme text-hy-text-primary"},$B={key:1,class:"background_box h_100vh c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary h-full"},BB={class:"fs_14 plr_20 border-bottom text-[14px] p-[0_20px]"},IB={class:"flex_vertically_center lh_40 flex items-center leading-[40px]",style:{"justify-content":"space-between"}},AB={class:"c_9DA7B2 text-hy-text-secondary"},LB={class:"tac ptb_20 p-[20px_0] text-center"},FB={class:"mt_10 mt-[10px]"},OB={key:0},RB={key:1},PB={key:2,class:"c_success text-hy-success"},MB=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}=aB({props:o});return e.onMounted(()=>{i()}),n({taskItemViewFn:i}),(d,f)=>{const m=Br,_=e.resolveComponent("el-icon"),y=oB,u=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",sB,[e.createElementVNode("div",lB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(N,k)=>(e.openBlock(),e.createElementBlock("div",{key:`${k}deviceUserList`},[e.createElementVNode("div",{class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:E=>e.unref(c)(N.orgId)},[e.createVNode(_,{style:e.normalizeStyle({transform:N.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",iB,e.toDisplayString(N.orgName),1)],8,rB),e.createElementVNode("div",{class:"transition_05",style:e.normalizeStyle({overflow:N.orgId===e.unref(r)?"inherit":"hidden",height:N.orgId===e.unref(r)?`${N.deviceUserList.length*40}px`:"0px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.deviceUserList,(E,b)=>(e.openBlock(),e.createElementBlock("div",{key:`${b}device`,class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:S=>e.unref(p)(E)},[e.createElementVNode("div",dB,[e.createElementVNode("div",pB,e.toDisplayString(E.deviceUserName),1),e.createElementVNode("span",fB," ("+e.toDisplayString(E.jobNum)+")",1)]),E.taskReportStatus===1?(e.openBlock(),e.createElementBlock("div",mB,e.toDisplayString(e.unref(a)("unfilled")),1)):E.taskReportStatus===2?(e.openBlock(),e.createElementBlock("div",hB,e.toDisplayString(e.unref(a)("haveBeenFilledIn")),1)):e.createCommentVNode("",!0)],8,cB))),128))],4)]))),128))]),e.unref(l)&&e.unref(l).length?(e.openBlock(),e.createElementBlock("div",uB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),N=>(e.openBlock(),e.createElementBlock("div",{key:N.key,ref_for:!0,ref:N.key,class:"background_box mb_10 mb-[10px]"},[N.userReport?(e.openBlock(),e.createElementBlock("div",_B,[e.createElementVNode("div",gB,[e.createElementVNode("div",yB,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(N.deviceUserName)+" ",1),e.createElementVNode("span",xB,"("+e.toDisplayString(N.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,N.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,N.status===1]])]),e.createElementVNode("div",kB,[e.createElementVNode("div",null,e.toDisplayString(N.urTemplateName),1),e.createElementVNode("div",NB,[e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(y)]),_:1}),e.createElementVNode("span",bB,e.toDisplayString(N.urSubmitDtm),1)])])]),e.createElementVNode("div",CB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.urOptionList,(k,E)=>(e.openBlock(),e.createElementBlock("div",{key:`${E}urOptionList`,class:"reportItem ptb_10 border-bottom p-[10px_0] text-[12px]"},[e.createElementVNode("div",wB,[e.createElementVNode("div",EB,e.toDisplayString(e.unref(a)("ask")),1),e.createTextVNode(" "+e.toDisplayString(k.optionTitle),1)]),e.createElementVNode("div",SB,[e.createElementVNode("div",TB,e.toDisplayString(e.unref(a)("answer")),1),k.optionValue?(e.openBlock(),e.createElementBlock("span",DB,e.toDisplayString(k.optionValue),1)):(e.openBlock(),e.createElementBlock("span",VB,e.toDisplayString(e.unref(a)("none")),1))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",$B,[e.createElementVNode("div",BB,[e.createElementVNode("div",IB,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(N.deviceUserName)+" ",1),e.createElementVNode("span",AB,"("+e.toDisplayString(N.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,N.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,N.status===1]])])]),e.createElementVNode("div",LB,[e.createVNode(u,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",FB,[N.taskReportStatus===0?(e.openBlock(),e.createElementBlock("span",OB,e.toDisplayString(e.unref(a)("noNeedToSubmitATaskReport")),1)):N.taskReportStatus===1?(e.openBlock(),e.createElementBlock("span",RB,e.toDisplayString(e.unref(a)("unpackTaskReport")),1)):N.taskReportStatus===2?(e.openBlock(),e.createElementBlock("span",PB,e.toDisplayString(e.unref(a)("submittedTaskReport")),1)):e.createCommentVNode("",!0)])])]))]))),128))],512)):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-4d03873f"]]);function UB({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(_=>{const y=_.actionList.map(u=>u.actionDetail);m.push({..._,key:_.id,actionDetail:y.toString()})}),a.value=m}else a.value=[]}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,dataListRef:l,clickGroupItem:r,selectItemFn:i,taskItemViewFn:c}}const zB={class:"r-f h_100vh h-full flex"},WB={class:"background_box information css-text-no-select"},jB=["onClick"],HB={class:"r-f f-g flex flex-grow w-0"},YB={class:"indexBox centerBox flex-shrink flex justify-center items-center",style:{left:"4px"}},GB={class:"over_one_line truncate"},qB={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},KB={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},XB={class:"recordList fs_12 text-[12px]"},JB={class:"actionList c_fff text-hy-text-main"},ZB={key:0,class:"indexBox centerBox flex justify-center items-center"},QB={key:1,class:"indexBoxv2 centerBox flex justify-center items-center"},vB={class:"mediaFileList"},eI={key:0},tI={class:"flex_vertically_center pos_r relative flex items-center"},nI={class:"c_fff text-hy-text-main"},oI={key:1},aI={class:"flex_vertically_center pos_r relative flex items-center"},sI={class:"c_fff text-hy-text-main"},lI=["onClick"],rI={class:"fileDel clickBox"},iI={key:1,class:"file clickBox"},cI={key:2},dI={class:"flex_vertically_center pos_r relative flex items-center"},pI={class:"c_fff text-hy-text-main"},fI=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}=UB({props:o});return e.onMounted(()=>{s()}),n({taskItemViewFn:s}),(p,d)=>{const f=$t,m=e.resolveComponent("el-icon"),_=$r,y=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",zB,[e.createElementVNode("div",WB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(u,N)=>(e.openBlock(),e.createElementBlock("div",{key:`${N}device`,class:"clickBox deviceItem background_box c_9DA7B2 flex_vertically_center pos_r relative flex items-center text-hy-text-secondary",onClick:k=>e.unref(r)(u)},[e.createElementVNode("div",HB,[e.createElementVNode("span",YB,e.toDisplayString(N+1),1),e.createElementVNode("span",GB,e.toDisplayString(u.actionDetail),1)]),u.status===0?(e.openBlock(),e.createElementBlock("div",qB,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",KB,e.toDisplayString(e.unref(a)("finish")),1))],8,jB))),128))]),e.createElementVNode("div",{ref_key:"dataListRef",ref:i,class:"content_box"},[e.createElementVNode("ul",XB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(u,N)=>(e.openBlock(),e.createElementBlock("li",{key:u.key,ref_for:!0,ref:u.key,class:e.normalizeClass([`recordItem_${u.status}`,"background_box mb_10 ovh overflow-hidden mb-[10px]"])},[e.createElementVNode("div",JB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.actionList,(k,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",ZB,e.toDisplayString(N+1),1)):(e.openBlock(),e.createElementBlock("span",QB)),e.createElementVNode("span",null,e.toDisplayString(k.actionDetail),1)]))),128))]),e.createElementVNode("div",vB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.recordList,(k,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]"},[k.status===0?(e.openBlock(),e.createElementBlock("div",eI,[e.createElementVNode("div",tI,[e.createVNode(m,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(f)]),_:1}),e.createElementVNode("span",nI,e.toDisplayString(k.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(k.jobNum)+")",1)]),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("unfinishedTask")),1)])):k.status===1&&k.mediaFileList&&k.mediaFileList.length?(e.openBlock(),e.createElementBlock("div",oI,[e.createElementVNode("div",aI,[e.createVNode(m,{class:"!text-hy-success icon_box"},{default:e.withCtx(()=>[e.createVNode(_)]),_:1}),e.createElementVNode("span",sI,e.toDisplayString(k.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(k.jobNum)+")",1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.mediaFileList,(b,S)=>(e.openBlock(),e.createElementBlock("div",{key:`${S}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",rI,e.toDisplayString(b.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",iI,e.toDisplayString(b.fileName),1))],8,lI))),128))])):(e.openBlock(),e.createElementBlock("div",cI,[e.createElementVNode("div",dI,[e.createVNode(m,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(_)]),_:1}),e.createElementVNode("span",pI,e.toDisplayString(k.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(k.jobNum)+")",1)]),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("theTaskHasBeenCompletedWaitingForUploading")),1)]))]))),128))])],2))),128))])],512)])}}}),[["__scopeId","data-v-85c188ed"]]);function mI(){const t=e.ref({}),n=e.ref(""),o=e.ref(1),a=e.ref(1),s=e.ref(!1),l=e.ref(),r=e.ref(),i=e.ref(),c=e.ref(),p=e.ref();function d(E){l.value.taskExampleFn(E)}function f(E){a.value=E}function m(E){if(!E){Se.error(x("checkTheTaskAreaWrong"));return}r.value.show({mapRailId:E})}function _(E){o.value=E,E===2&&(t.value.taskMode===2?f(2):f(1))}function y(){s.value=!1}function u(){return new Promise(async(E,b)=>{const S=await eS({id:n.value});S.code===200&&(t.value=S.data||{},E(0))})}function N(E=null){n.value=E,_(1),u().then(()=>{console.log(111),s.value=!0})}function k(){switch(o.value){case 1:u();break;case 2:a.value===1&&t.value.taskMode===1?i.value.taskItemViewFn():this.viewMode===2&&c.value.taskItemViewFn();break;case 3:p.value.taskItemViewFn();break}}return{$t:x,form:t,taskItemId:n,navigationType:o,viewMode:a,dialogVisible:s,viewTaskExampleRef:l,selectLocationAreaRef:r,peopleViewRef:i,taskViewRef:c,taskReportRef:p,viewTaskExampleShow:d,viewModeFn:f,seeTaskArea:m,navigationTypeFn:_,onClose:y,selectFn:u,show:N,onRefresh:k}}const hI={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold bg-hy-dialog-bg-1"},uI={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg-1 relative z-10"},_I={class:"dialog_body",style:{"padding-right":"0px"}},gI={class:"ovh centerBox flex items-center justify-center overflow-hidden"},yI={class:"r-f navigation flex"},xI={key:0,class:"r-f flex",style:{height:"540px"}},kI={class:"fs_12 lh_20 h_100vh background_box information text-[12px] leading-[20px] h-full"},NI={class:"fs_16 fw_600 lh_40 text-[16px] font-[600px] leading-[40px]"},bI={key:0,class:"mb_20 mb-[20px]"},CI={class:"c_9DA7B2 text-hy-text-secondary"},wI=["innerHTML"],EI={class:"mb_20 mb-[20px]"},SI={class:"c_9DA7B2 text-hy-text-secondary"},TI={class:"c_9DA7B2 text-hy-text-secondary"},DI={class:"mb_20 mb-[20px]"},VI={class:"c_9DA7B2 text-hy-text-secondary"},$I={class:"h_100vh content_box h-full"},BI={class:"flex_vertically_center title_box flex items-center"},II={class:"pos_r relative"},AI={class:"fs_12"},LI={class:"actionList"},FI={key:0},OI=["onClick"],RI={key:1,class:"c-f flex flex-col",style:{height:"540px"}},PI={class:"fs_12 r-f mb_10 flex text-[12px] mb-[10px]",style:{"justify-content":"space-between","padding-right":"30px"}},MI={class:"lh_20 flex_vertically_center flex items-center leading-[20px]"},UI={key:0,class:"c_dangerv2 text-hy-danger"},zI={key:1,class:"c_success text-hy-success"},WI={key:2,class:"c_9DA7B2 text-hy-text-secondary"},jI={key:3,class:"c_theme text-hy-text-primary"},HI={style:{width:"108px"},class:"plr_10 p-[0_10px]"},YI={class:"c_theme text-hy-text-primary"},GI={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},qI={class:"centerBox flex justify-center items-center"},KI={style:{"margin-left":"6px"}},XI={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary flex items-center"},JI={class:"centerBox flex justify-center items-center"},ZI={style:{"margin-left":"6px"}},QI={style:{"flex-grow":"1",height:"0"}},vI=be(e.defineComponent({__name:"common-task-detail",props:{draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const{$t:o,viewTaskExampleRef:a,selectLocationAreaRef:s,taskReportRef:l,taskViewRef:r,peopleViewRef:i,show:c,dialogVisible:p,navigationType:d,form:f,viewMode:m,taskItemId:_,viewModeFn:y,viewTaskExampleShow:u,seeTaskArea:N,navigationTypeFn:k,onRefresh:E,onClose:b}=mI();return n({show:c}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-button"),g=e.resolveComponent("el-progress"),C=$t,w=e.resolveComponent("el-icon"),D=e.resolveComponent("el-dialog"),T=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(D,{modelValue:e.unref(p),"onUpdate:modelValue":V[7]||(V[7]=B=>e.isRef(p)?p.value=B:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"900px",modal:!S.draggable,draggable:S.draggable,"modal-class":S.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",hI,[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]=(...B)=>e.unref(E)&&e.unref(E)(...B))},[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]=(...B)=>e.unref(b)&&e.unref(b)(...B))},[e.createVNode($,{name:"sys-button-close",style:{width:"26px",height:"26px"},"class-name":"text-hy-text-danger"})])])])),[[T]])]),default:e.withCtx(()=>[e.createElementVNode("div",uI,[e.createElementVNode("div",_I,[e.createVNode(x2,{ref_key:"selectLocationAreaRef",ref:s,draggable:!1},null,512),e.createElementVNode("div",gI,[e.createElementVNode("ul",yI,[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]=B=>e.unref(k)(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]=B=>e.unref(k)(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]=B=>e.unref(k)(3))},e.toDisplayString(e.unref(o)("missionReport")),3)):e.createCommentVNode("",!0)])]),e.unref(d)===1?(e.openBlock(),e.createElementBlock("div",xI,[e.createElementVNode("div",kI,[e.createElementVNode("div",NI,e.toDisplayString(e.unref(f).taskAction),1),e.unref(f).taskDesc?(e.openBlock(),e.createElementBlock("div",bI,[e.createElementVNode("div",CI,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,wI)])):e.createCommentVNode("",!0),e.createElementVNode("div",EI,[e.createElementVNode("div",SI,e.toDisplayString(e.unref(o)("executionTime")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(f).executeDtmStr)+" ",1),e.createElementVNode("span",TI,"("+e.toDisplayString(e.unref(f).taskDateStartTime)+" ~ "+e.toDisplayString(e.unref(f).taskDateEndTime)+")",1)])]),e.createElementVNode("div",DI,[e.createElementVNode("div",VI,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",$I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f).opList,(B,L)=>(e.openBlock(),e.createElementBlock("li",{key:`${L}opList`,class:"background_box ovh overflow-hidden"},[e.createElementVNode("div",BI,[e.createElementVNode("div",II,[e.createTextVNode(e.toDisplayString(e.unref(o)("first"))+e.toDisplayString(L+1)+e.toDisplayString(e.unref(o)("strip"))+" ",1),e.createElementVNode("span",null,e.toDisplayString(B.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(N)(B.mapRailId)},{default:e.withCtx(()=>[e.createElementVNode("span",AI,e.toDisplayString(e.unref(o)("missionArea")),1)]),_:2},1032,["onClick"])]),e.createElementVNode("ul",LI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.actionList,(j,F)=>(e.openBlock(),e.createElementBlock("li",{key:`${F}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",FI,'"'+e.toDisplayString(j.taskAction)+'"',1)):e.createCommentVNode("",!0)]),B.taskExample&&B.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:M=>e.unref(u)(B.taskExample)},e.toDisplayString(e.unref(o)("viewExample")),9,OI)):e.createCommentVNode("",!0)]))),128))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",RI,[e.withDirectives(e.createElementVNode("div",PI,[e.createElementVNode("div",MI,[e.unref(f).status===0?(e.openBlock(),e.createElementBlock("span",UI,e.toDisplayString(e.unref(o)("unfinished")),1)):e.unref(f).status===1?(e.openBlock(),e.createElementBlock("span",zI,e.toDisplayString(e.unref(o)("hasBeenCompleted")),1)):e.unref(f).status===2?(e.openBlock(),e.createElementBlock("span",WI,e.toDisplayString(e.unref(o)("notPerformed")),1)):e.unref(f).status===3?(e.openBlock(),e.createElementBlock("span",jI,e.toDisplayString(e.unref(o)("execute")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",HI,[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",YI,e.toDisplayString(e.unref(f).finishNum||0)+"/"+e.toDisplayString(e.unref(f).totalNum||0),1)]),e.withDirectives(e.createElementVNode("div",GI,[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]=B=>e.unref(y)(2))},{default:e.withCtx(()=>[e.createElementVNode("div",qI,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-download-task"}),e.createElementVNode("span",KI,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",XI,[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]=B=>e.unref(y)(1))},{default:e.withCtx(()=>[e.createElementVNode("div",JI,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-user-online"}),e.createElementVNode("span",ZI,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",QI,[e.unref(d)===2&&e.unref(m)===1&&e.unref(f).taskMode===1?(e.openBlock(),e.createBlock(v2,{key:0,ref_key:"peopleViewRef",ref:i,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.createCommentVNode("",!0),e.unref(d)===2&&e.unref(m)===2?(e.openBlock(),e.createBlock(fI,{key:1,ref_key:"taskViewRef",ref:r,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.unref(d)===3?(e.openBlock(),e.createBlock(MB,{key:2,ref_key:"taskReportRef",ref:l,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.createCommentVNode("",!0)])])),e.createVNode(Dr,{ref_key:"viewTaskExampleRef",ref:a,draggable:S.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-8b3c65a6"]]),eA={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},tA=[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 nA(t,n){return e.openBlock(),e.createElementBlock("svg",eA,[...tA])}const oA={name:"ep-arrow-down",render:nA},aA={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},sA=[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 lA(t,n){return e.openBlock(),e.createElementBlock("svg",aA,[...sA])}const rA={name:"ep-arrow-up",render:lA},iA={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},cA=[e.createElementVNode("path",{fill:"currentColor",d:"M672 192L288 511.936L672 832z"},null,-1)];function dA(t,n){return e.openBlock(),e.createElementBlock("svg",iA,[...cA])}const pA={name:"ep-caret-left",render:dA};function Ir(t){return oe.post({url:"spotCheck/task/detail",data:t,isFormData:!0})}function fA(t){return oe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function mA(t){return oe.post({url:"spotCheck/task/end",data:t,isFormData:!0})}function hA(t){return oe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function uA(t){return oe.post({url:t.id?"spotCheck/timing/update":"spotCheck/timing/insert",data:t,isJson:!0})}function _A(t){return oe.post({url:"spotCheck/template/detail",data:t,isFormData:!0})}function gA(t){return oe.post({url:t.id?"spotCheck/template/update":"spotCheck/template/insert",data:t,isJson:!0})}function yA(t){return oe.post({url:"spotCheck/task/taskExecute",data:t,isJson:!0})}function Ar(t){return oe.post({url:"spotCheck/task/pttFile/page",data:t,isFormData:!0})}function xA(t){return oe.post({url:"spotCheck/task/groupBind",data:t,isJson:!0})}function kA({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(N){const{deviceId:k,checkStatus:E}=N||{};if(!k)return;const b=p.value.findIndex(S=>S.deviceId===k);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 N=0,k=0,E=0,b=0,S=0,V=0;p.value.forEach($=>{const h=$.checkStatus,g=$.intercomGroupTem,C=$.onlineState;switch(g===1&&V++,C===2&&S++,h){case 1:N++;break;case 2:k++;break;case 3:E++;break;case 4:b++;break}}),e.nextTick(()=>{a.value=N,s.value=k,l.value=E,r.value=b,i.value=S,c.value=V,m()})}function m(){n("on-countStatus",{beReceiveNum:a.value,receivingNum:s.value,finishNum:l.value,notFinishNum:r.value,offLineNum:i.value,intercomGroupTemNum:c.value})}function _(){o.value}function y(){}async function u(N){const{code:k,data:E=[]}=await fA({taskId:t.form.id,checkStatus:N||null});k===200&&(p.value=E,t.subscribeStatus&&f(),n("change",p.value))}return{uniqueId:o,beReceiveNum:a,receivingNum:s,finishNum:l,notFinishNum:r,offLineNum:i,intercomGroupTemNum:c,taskDeviceList:p,setDeviceStatus:d,initDeviceStatusList:f,onCountStatus:m,spotCheckSubscribe:_,spotCheckUnsubscribe:y,getData:u}}const NA={class:"h-[58px] bg-hy-dialog-bg-2 border border-box border-hy-border-2 rounded px-2 box-border flex items-center"},bA={class:"relative"},CA={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"},wA={class:"scale-75"},EA={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"},SA={class:"flex-grow w-0 flex"},TA={class:"mx-2 flex-grow w-0"},DA={class:"truncate"},VA={class:"text-hy-text-secondary truncate"},$A={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"},BA={class:"r-f tac flex items-center justify-center flex-col"},IA={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}=kA({props:o,emit:a});return e.onMounted(()=>{r.value=o.form.uniqueId,o.subscribeStatus&&i(),c()}),e.onUnmounted(()=>{l()}),(p,d)=>{const f=e.resolveComponent("el-tooltip"),m=e.resolveComponent("svg-icon"),_=e.resolveComponent("el-col"),y=e.resolveComponent("el-row");return e.openBlock(),e.createBlock(y,{gutter:8,class:"h-full"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),u=>(e.openBlock(),e.createBlock(_,{key:u.id,span:p.paramsSpan,class:"mb-2"},{default:e.withCtx(()=>[e.createElementVNode("div",NA,[e.createElementVNode("div",bA,[e.createVNode(xt,{class:"w-[36px] h-[36px]"}),u.intercomGroupTem===1?(e.openBlock(),e.createBlock(f,{key:0,class:"item",effect:"dark",content:e.unref(x)("theDeviceWasInATemporaryGroupWhenTheSpotCheckWasInitiated"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",CA,[e.createElementVNode("span",wA,e.toDisplayString(e.unref(x)("lin")),1)])]),_:1},8,["content"])):u.onlineState===2?(e.openBlock(),e.createBlock(f,{key:1,class:"item",effect:"dark",content:e.unref(x)("theDeviceWasOfflineWhenTheSpotCheckWasInitiated"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",EA,[e.createVNode(m,{name:"icon-off-line","class-name":"!w-[10px] !h-[14px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",SA,[e.createElementVNode("div",TA,[e.createElementVNode("p",DA,e.toDisplayString(u.devName),1),e.createElementVNode("p",VA,e.toDisplayString(u.deviceId),1)]),e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",{class:"border-info bg-hy-info/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(x)("toBeReceived-1")),513),[[e.vShow,u.checkStatus===1]]),e.withDirectives(e.createElementVNode("div",{class:"border-warning bg-hy-warning/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(x)("receiving-1")),513),[[e.vShow,u.checkStatus===2]]),e.withDirectives(e.createElementVNode("div",{class:"w-[54px] border-success bg-hy-success/50 border rounded px-2 flex items-center justify-center h-[24px] box-border whitespace-nowrap"},e.toDisplayString(e.unref(x)("completed-0")),513),[[e.vShow,u.checkStatus===3]]),e.withDirectives(e.createElementVNode("div",{class:"border-hy-danger bg-hy-danger/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(x)("uncompleted-0")),513),[[e.vShow,u.checkStatus===4]])])])])]),_:2},1032,["span"]))),128)),e.unref(s).length===0?(e.openBlock(),e.createBlock(_,{key:0,span:24,class:"h-full"},{default:e.withCtx(()=>[e.createElementVNode("div",$A,[e.createElementVNode("div",BA,[e.createVNode(m,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",IA,e.toDisplayString(e.unref(x)("noData")),1)])])]),_:1})):e.createCommentVNode("",!0)]),_:1})}}});function AA({props:t}){const n=e.ref(null),o=e.ref(""),a=e.ref(!1),s=e.ref(null),l=e.ref(0),r=e.ref(0),i=e.ref([]),c=e.ref(null),p=e.ref(null),d=e.ref(null),f=e.ref(!0),m=e.ref(null),_=e.ref(),y=e.ref();function u(){n.value=t.orgGroupInsertTemp.id,i.value=[],f.value=!0,k(),e.nextTick(()=>{V()})}function N(){if(!t.realtimeRequestType)return;const C=async()=>{const w=i.value[i.value.length-1];if(!w){C();return}const D={page:0,taskId:t.taskId,largeThenTimestamp:w.fileTimestamp},T=c.value.scrollTop,B=c.value.offsetHeight-46,L=document.querySelector(`#item-${w.id}`);if(L){const j=L.offsetTop,F=await Ar(D);if(F.code===200){const{content:M=[],totalElements:z=0}=F.data;l.value=z,e.nextTick(()=>{M.forEach(U=>{i.value.findIndex(Y=>Y.id===U.id)===-1&&i.value.push(U)}),T>=j-B&&S()})}}};m.value&&clearInterval(m.value),m.value=setInterval(()=>{C()},1e4)}async function k(){var B;let C=null;i.value.length&&(C=i[0].value.id);const D={page:0,taskId:t.taskId,lessThenTimestamp:(B=i.value[0])==null?void 0:B.fileTimestamp};s.value=null,a.value=!0,N();const T=await Ar(D);if(T.code===200){const{content:L=[],totalElements:j=0}=T.data;l.value=j,e.nextTick(()=>{var F;C?L.forEach(M=>{const z=i.value.findIndex(U=>U.id===M.id);M.fileDtmEnd||(M.fileDtmEnd=""),z===-1&&i.value.unshift(M)}):i.value=L.reverse(),C?(E(C),s.value=(F=i.value[this.chatMessageList.length-1])==null?void 0:F.id):S(),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&&k()}function S(){e.nextTick(()=>{c.value.scrollTo(0,c.value.scrollHeight)})}function V(){c.value=_.value,p.value=y.value,p.value.addEventListener("ended",()=>{h(),d.value=null}),c.value.onscroll=()=>{c.value.scrollTop===0&&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:_,audioElRef:y,init:u,getNewData:N,getData:k,scrollToMsg:E,topEvent:b,scrollToBottom:S,initScrollList:V,audioPlay:$,audioPause:h,getAudioContext:g}}const LA=["element-loading-text"],FA={key:0,class:"w-full h-full flex box-border items-center justify-center text-center text-hy-text-secondary"},OA={class:""},RA={class:"mt-5"},PA=["id"],MA={key:0,class:"min-w-[72px] p-1 bg-hy-dialog-bg-4 text-center rounded mb-2"},UA={key:1,class:"h-[50px] flex items-center w-full"},zA={class:"mr-2 flex-grow w-0 flex flex-col items-end"},WA={class:"w-full flex items-center justify-end"},jA=["onClick"],HA=["onClick"],YA={class:"font-bold flex-shrink-0"},GA={class:"flex-shrink-0 ml-1"},qA={key:0},KA={key:2,class:"h-[50px] flex items-center w-full"},XA={class:"ml-2 flex-grow w-0 flex flex-col items-start"},JA={class:"w-full flex items-center"},ZA=["onClick"],QA={class:"flex-shrink-0 mr-1"},vA={key:0},eL={class:"font-bold flex-shrink-0"},tL=["onClick"],nL=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}=AA({props:n});return e.onMounted(()=>{p()}),e.onUnmounted(()=>{d.value&&clearInterval(d.value)}),(_,y)=>{const u=e.resolveComponent("svg-icon"),N=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",FA,[e.createElementVNode("div",OA,[e.createElementVNode("div",null,[e.createVNode(u,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"})]),e.createElementVNode("div",RA,[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),(k,E)=>(e.openBlock(),e.createElementBlock("div",{id:`item-${k.id}`,key:k.id,class:"p-2 box-border flex flex-col items-center"},[k.fileDtmEnd.split(" ")[0]!==(E>0&&e.unref(l)[E-1].fileDtmEnd.split(" ")[0])?(e.openBlock(),e.createElementBlock("div",MA,e.toDisplayString(k.fileDtmEnd.split(" ")[0]),1)):e.createCommentVNode("",!0),k.devUserId===o.id?(e.openBlock(),e.createElementBlock("div",UA,[e.createElementVNode("div",zA,[e.createElementVNode("div",null,e.toDisplayString(k.devUserName)+" ("+e.toDisplayString(k.serialNum||k.devUserId)+") ",1),e.createElementVNode("div",WA,[e.unref(r)===k.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)(k.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,jA)):e.createCommentVNode("",!0),e.createElementVNode("div",{style:e.normalizeStyle({width:k.audioLength>=60?"70%":`calc(${k.audioLength/60*90}px + 160px)`,background:e.unref(r)===k.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)===k.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)(k.mediaFileId)},[e.createElementVNode("div",YA,e.toDisplayString(k.audioLength)+"” ",1),e.createElementVNode("div",GA,[k.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",qA,e.toDisplayString(k.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)])],14,HA)])]),e.createVNode(xt,{class:"w-[32px] h-[32px]"})])):(e.openBlock(),e.createElementBlock("div",KA,[e.createVNode(xt,{class:"w-[32px] h-[32px]"}),e.createElementVNode("div",XA,[e.createElementVNode("div",null,e.toDisplayString(k.devUserName)+" ("+e.toDisplayString(k.serialNum||k.devUserId)+") ",1),e.createElementVNode("div",JA,[e.createElementVNode("div",{style:e.normalizeStyle({width:k.audioLength>=60?"70%":`calc(${k.audioLength/60*90}px + 160px)`,background:e.unref(r)===k.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)===k.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)(k.mediaFileId)},[e.createElementVNode("div",QA,[k.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",vA,e.toDisplayString(k.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",eL,e.toDisplayString(k.audioLength)+"” ",1)],14,ZA),e.unref(r)===k.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)(k.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,tL)):e.createCommentVNode("",!0)])])]))],8,PA))),128))],512)],8,LA)),[[N,e.unref(s)]])}}});function oL(){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 xA({groupId:o.value,taskId:t.value.id})}function d(){var h;l.value.length!==0&&((h=c.value)==null||h.orgGroupInsertTempFn([...l.value],{openRecording:1}).then(g=>{o.value=g,e.nextTick(()=>{p()}),_(!1)}).catch(()=>{o.value=null,n.value=!0,_(!1)}))}function f(h=[]){l.value=h,_(!1),t.value.checkStyle===2&&d()}function m(h={}){const{beReceiveNum:g=0,receivingNum:C=0,finishNum:w=0,notFinishNum:D=0,offLineNum:T=0,intercomGroupTemNum:B=0}=h;t.value.beReceiveNum=g,t.value.receivingNum=C,t.value.finishNum=w,t.value.notFinishNum=D,t.value.offLineNum=T,t.value.intercomGroupTemNum=B}function _(h){s.value=h}function y(){r.value=!r.value}async function u(h){const{code:g,data:C={}}=await Ir({id:h});g===200&&(t.value={...C},t.value.checkNum===0&&f([]),t.value.checkStyle===2&&(t.value.actionType=null),N(!0))}function N(h){i.value=h}function k(){}function E(h){if(i.value){Se.warning(x("currentlySpotCheckInProgressPleaseProcessLater"));return}o.value=null,n.value=!1,t.value={},_(!0),u(h)}function b(){i.value=!1}function S(){mt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("cancelSpotCheck"),tipsContent:`<div><p>${x("confirmToCancelThisSpotCheck")}?</p><p>${this.$t("cancelMidwayYouWillNotBeAbleToRetrieveOrViewAnyInformationOfThisSpotCheck")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("returnToSpotCheck"),submitBtnText:x("cancelSpotCheck"),submitBtnType:"danger"},()=>{$(3)})}function V(){let h=x("afterTheCheck,YouCanViewTheSpotCheckInformationInTheSpotCheckModule");(t.value.beReceiveNum!==0||t.value.receivingNum!==0)&&(h=x("thereAreStillDevicesInTheReceivingProcessTheSystemWillMarkTheseDevicesAsUnfinished")),mt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("endSpotCheck"),tipsContent:`<div><p>${x("confirmToEndThisSpotCheck")}?</p><p>${h}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("returnToSpotCheck"),submitBtnText:x("endSpotCheck")},()=>{$(2)})}async function $(h){var C;const{code:g}=await mA({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:_,setMsgContentType:y,setDialogVisible:N,show:E,close:b,onClose:S,onSubmit:V,taskEnd:$,setDragLevel:k,$t:x}}const aL=t=>(e.pushScopeId("data-v-e246ad8e"),t=t(),e.popScopeId(),t),sL={class:"el-dialog__header !p-0"},lL={class:"el-dialog__body !p-[8px_0px_8px] sideFoot_content h-[700px] flex flex-col text-main text-xs"},rL={class:"h-[40px] flex items-center px-4 mb-1"},iL={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"},cL={key:0,class:"ml-3"},dL={class:"text-hy-text-secondary"},pL={key:1,class:"ml-3"},fL={class:"text-hy-text-secondary"},mL={class:"font-bold"},hL=["element-loading-text"],uL={key:0,class:"w-full h-full flex flex-col box-border"},_L={class:"flex-shrink-0 mb-3 px-4"},gL={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},yL={class:"flex w-full"},xL={class:"flex-shrink-0"},kL={class:"text-right font-bold flex-grow w-0"},NL={class:"flex w-full text-hy-text-secondary"},bL={class:"flex-shrink-0"},CL={class:"text-right flex-grow w-0"},wL={class:"flex w-full text-hy-text-secondary"},EL={class:"flex-shrink-0"},SL={class:"text-right flex-grow w-0"},TL={class:"text-xs p-2 leading-[22px]"},DL={class:"flex w-full"},VL={class:"flex-shrink-0 tracking-[4px]"},$L={class:"text-right font-bold flex-grow w-0"},BL={class:"flex w-full"},IL={class:"flex-shrink-0 tracking-[4px]"},AL={class:"text-right font-bold flex-grow w-0"},LL={class:"flex w-full"},FL={class:"flex-shrink-0 tracking-[4px]"},OL={class:"text-right font-bold flex-grow w-0 text-hy-success"},RL={class:"flex w-full"},PL={class:"flex-shrink-0 tracking-[4px]"},ML={class:"text-right font-bold flex-grow w-0 text-hy-danger"},UL={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},zL={class:"flex-1 flex"},WL={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},jL={class:"flex-grow w-0 text-center truncate"},HL={class:"flex-1 flex"},YL={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},GL={class:"flex-grow w-0 text-center text-hy-success truncate"},qL={class:"flex-1 flex"},KL={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},XL={class:"flex-grow w-0 text-center text-hy-danger truncate"},JL={class:"w-full px-2 leading-[22px] box-border rounded bg-hy-dialog-bg-3 h-[28px] flex items-center justify-between"},ZL={class:"flex"},QL={key:0,class:"ml-2 bg-hy-dialog-bg-1 h-[22px] px-2 rounded"},vL={class:"w-[400px]"},eF={class:""},tF={key:0,class:"box-border flex-grow h-0 flex px-2"},nF={class:"flex-grow w-0 px-2 overflow-x-hidden overflow-y-auto h-full"},oF={key:0,class:"w-[66%] box-border pr-2"},aF={class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},sF={key:1,class:"flex-grow h-0 px-4"},lF={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"},rF={class:"r-f tac flex text-center"},iF={class:"mt-3"},cF={class:"mt-1"},dF={key:1,class:"w-full h-full"},pF={key:0,class:"w-full h-full flex px-4 box-border"},fF={class:"flex flex-col w-[33%]"},mF={class:"pr-2"},hF={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},uF={class:"flex w-full"},_F={class:"flex-shrink-0"},gF={class:"text-right font-bold flex-grow w-0"},yF={class:"flex w-full text-hy-text-secondary"},xF={class:"flex-shrink-0"},kF={class:"text-right flex-grow w-0"},NF={class:"flex w-full text-hy-text-secondary"},bF={class:"flex-shrink-0"},CF={class:"text-right flex-grow w-0"},wF={class:"text-xs p-2 leading-[22px]"},EF={key:0,class:"flex w-full"},SF={class:"flex-shrink-0 tracking-[4px]"},TF={class:"text-right font-bold flex-grow w-0"},DF={key:1,class:"flex w-full"},VF={class:"flex-shrink-0 tracking-[4px]"},$F={class:"text-right font-bold flex-grow w-0"},BF={class:"flex w-full"},IF={class:"flex-shrink-0 tracking-[4px]"},AF={class:"text-right font-bold flex-grow w-0 text-hy-success"},LF={class:"flex w-full"},FF={class:"flex-shrink-0 tracking-[4px]"},OF={class:"text-right font-bold flex-grow w-0 text-hy-danger"},RF={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},PF={class:"flex-1 flex"},MF={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},UF={class:"flex-grow w-0 text-center truncate"},zF={class:"flex-1 flex"},WF={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},jF={class:"flex-grow w-0 text-center text-hy-success truncate"},HF={class:"flex-1 flex"},YF={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},GF={class:"flex-grow w-0 text-center text-hy-danger truncate"},qF={class:"flex-grow h-0 mt-2 overflow-x-hidden overflow-y-auto pr-2 box-border"},KF={class:"flex-grow w-0 flex flex-col"},XF=aL(()=>e.createElementVNode("div",{class:"flex-grow h-0 overflow-hidden"},null,-1)),JF={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"},ZF={class:"r-f tac flex text-center"},QF={class:"mt-5"},vF={key:1,class:"flex-grow h-full px-4"},eO={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"},tO={class:"r-f tac flex text-center"},nO={class:"mt-3"},oO={class:"mt-1"},aO={class:"h-[50px] flex items-center justify-between flex-shrink-0 px-4 mt-1"},sO={class:"text-hy-text-secondary text-xs"},lO={key:0},rO={key:1},iO={key:0},cO={key:1},dO={key:2},pO=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:_}=oL();return(y,u)=>{const N=e.resolveComponent("svg-icon"),k=e.resolveComponent("el-popover"),E=e.resolveComponent("el-col"),b=pA,S=e.resolveComponent("el-icon"),V=e.resolveComponent("el-tooltip"),$=e.resolveComponent("el-row"),h=$t,g=e.resolveComponent("el-button"),C=e.resolveDirective("loading");return e.unref(n)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"el-dialog sideFootBox",style:e.normalizeStyle([{width:"830px"},{"z-index":e.unref(o)}]),onClick:u[2]||(u[2]=(...w)=>e.unref(a)&&e.unref(a)(...w))},[e.createElementVNode("div",sL,[e.createElementVNode("div",lL,[e.createElementVNode("div",rL,[e.createElementVNode("div",iL,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",cL,[e.createElementVNode("span",dL,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",pL,[e.createElementVNode("span",fL,e.toDisplayString(e.unref(l)("responseTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",mL,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",uL,[e.createElementVNode("div",_L,[e.createVNode($,{gutter:8},{default:e.withCtx(()=>[e.createVNode(E,{span:8},{default:e.withCtx(()=>[e.createVNode(k,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",UL,[e.createElementVNode("div",zL,[e.createElementVNode("div",WL,[e.createVNode(N,{name:"base-every-day-many-people","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",jL,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("div",HL,[e.createElementVNode("div",YL,[e.createVNode(N,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",GL,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("div",qL,[e.createElementVNode("div",KL,[e.createVNode(N,{name:"base-danger-state","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",XL,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("ul",gL,[e.createElementVNode("li",yL,[e.createElementVNode("span",xL,e.toDisplayString(e.unref(l)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",kL,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("li",NL,[e.createElementVNode("span",bL,e.toDisplayString(e.unref(l)("offlineStatus")),1),e.createElementVNode("div",CL,e.toDisplayString(e.unref(s).offLineNum||"- -"),1)]),e.createElementVNode("li",wL,[e.createElementVNode("span",EL,e.toDisplayString(e.unref(l)("temporaryGroups")),1),e.createElementVNode("div",SL,e.toDisplayString(e.unref(s).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",TL,[e.createElementVNode("li",DL,[e.createElementVNode("span",VL,e.toDisplayString(e.unref(l)("waitingToReceive")),1),e.createElementVNode("div",$L,e.toDisplayString(e.unref(s).beReceiveNum||"- -"),1)]),e.createElementVNode("li",BL,[e.createElementVNode("span",IL,e.toDisplayString(e.unref(l)("receiving")),1),e.createElementVNode("div",AL,e.toDisplayString(e.unref(s).receivingNum||"- -"),1)]),e.createElementVNode("li",LL,[e.createElementVNode("span",FL,e.toDisplayString(e.unref(l)("completed")),1),e.createElementVNode("div",OL,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("li",RL,[e.createElementVNode("span",PL,e.toDisplayString(e.unref(l)("uncompleted")),1),e.createElementVNode("div",ML,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])])]),_:1})]),_:1}),e.createVNode(E,{span:16},{default:e.withCtx(()=>[e.createElementVNode("div",JL,[e.createElementVNode("div",ZL,[e.createTextVNode(e.toDisplayString(e.unref(l)("messageContent"))+" ",1),e.unref(s).playMsg===1?(e.openBlock(),e.createElementBlock("div",QL," TTS"+e.toDisplayString(e.unref(l)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"css-text-no-select cursor-pointer hover:opacity-60",onClick:u[1]||(u[1]=(...w)=>e.unref(i)&&e.unref(i)(...w))},[e.createVNode(V,{modelValue:e.unref(c),"onUpdate:modelValue":u[0]||(u[0]=w=>e.isRef(c)?c.value=w:null),class:"item",placement:"bottom-end",trigger:"manual"},{content:e.withCtx(()=>[e.createElementVNode("div",vL,e.toDisplayString(e.unref(s).msgContent),1)]),default:e.withCtx(()=>[e.createElementVNode("span",eF,[e.createTextVNode(e.toDisplayString(e.unref(l)("viewContent"))+" ",1),e.createVNode(S,{class:e.normalizeClass(["text-sm duration-500",{"-rotate-90":e.unref(c)}])},{default:e.withCtx(()=>[e.createVNode(b)]),_:1},8,["class"])])]),_:1},8,["modelValue"])])])]),_:1})]),_:1})]),e.unref(s).checkNum!==0?(e.openBlock(),e.createElementBlock("div",tF,[e.createElementVNode("div",nF,[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",oF,[e.createElementVNode("div",aF,[e.unref(s).id?(e.openBlock(),e.createBlock(nL,{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",sF,[e.createElementVNode("div",lF,[e.createElementVNode("div",rF,[e.createVNode(N,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",iF,e.toDisplayString(e.unref(l)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",cF,e.toDisplayString(e.unref(l)("cannotSupportThisSpotCheck")),1)])])]))])):(e.openBlock(),e.createElementBlock("div",dF,[e.unref(s).checkNum!==0?(e.openBlock(),e.createElementBlock("div",pF,[e.createElementVNode("div",fF,[e.createElementVNode("div",mF,[e.createVNode(k,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",RF,[e.createElementVNode("div",PF,[e.createElementVNode("div",MF,[e.createVNode(N,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",UF,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("div",zF,[e.createElementVNode("div",WF,[e.createVNode(N,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",jF,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("div",HF,[e.createElementVNode("div",YF,[e.createVNode(N,{name:"base-danger-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",GF,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("ul",hF,[e.createElementVNode("li",uF,[e.createElementVNode("span",_F,e.toDisplayString(e.unref(l)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",gF,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("li",yF,[e.createElementVNode("span",xF,e.toDisplayString(e.unref(l)("offlineStatus")),1),e.createElementVNode("div",kF,e.toDisplayString(e.unref(s).offLineNum||"- -"),1)]),e.createElementVNode("li",NF,[e.createElementVNode("span",bF,e.toDisplayString(e.unref(l)("temporaryGroups")),1),e.createElementVNode("div",CF,e.toDisplayString(e.unref(s).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",wF,[e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("li",EF,[e.createElementVNode("span",SF,e.toDisplayString(e.unref(l)("waitingToReceive")),1),e.createElementVNode("div",TF,e.toDisplayString(e.unref(s).beReceiveNum||"- -"),1)])):e.createCommentVNode("",!0),e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("li",DF,[e.createElementVNode("span",VF,e.toDisplayString(e.unref(l)("receiving")),1),e.createElementVNode("div",$F,e.toDisplayString(e.unref(s).receivingNum||"- -"),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",BF,[e.createElementVNode("span",IF,e.toDisplayString(e.unref(l)("completed")),1),e.createElementVNode("div",AF,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("li",LF,[e.createElementVNode("span",FF,e.toDisplayString(e.unref(l)("uncompleted")),1),e.createElementVNode("div",OF,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),_:1})]),e.createElementVNode("div",qF,[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",KF,[XF,e.unref(f)?(e.openBlock(),e.createElementBlock("div",JF,[e.createElementVNode("div",ZF,[e.createVNode(N,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"}),e.createElementVNode("div",QF,e.toDisplayString(e.unref(l)("groupMemberStatusAbnormalityPreventsSpotCheck")),1)])])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",vF,[e.createElementVNode("div",eO,[e.createElementVNode("div",tO,[e.createVNode(N,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",nO,e.toDisplayString(e.unref(l)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",oO,e.toDisplayString(e.unref(l)("cannotSupportThisSpotCheck")),1)])])]))]))],8,hL)),[[C,e.unref(r)]]),e.createElementVNode("div",aO,[e.createElementVNode("div",sO,[e.createElementVNode("div",null,[e.createVNode(S,{class:"mr-1 text-sm"},{default:e.withCtx(()=>[e.createVNode(h)]),_:1}),e.unref(s).checkType===2?(e.openBlock(),e.createElementBlock("span",lO,e.toDisplayString(e.unref(l)("randomCheck")),1)):(e.openBlock(),e.createElementBlock("span",rO,[e.unref(s).checkScope===1?(e.openBlock(),e.createElementBlock("span",iO,e.toDisplayString(e.unref(l)("regionalSpotCheck")),1)):e.unref(s).checkScope===2?(e.openBlock(),e.createElementBlock("span",cO,e.toDisplayString(e.unref(l)("departmentSpotCheck")),1)):e.unref(s).checkScope===3?(e.openBlock(),e.createElementBlock("span",dO,e.toDisplayString(e.unref(l)("deviceSpotCheck")),1)):e.createCommentVNode("",!0)]))])]),e.createElementVNode("div",null,[e.createVNode(g,{type:"primary",class:"button_default buttonBox min-w-[100px]",onClick:e.unref(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(g,{class:"button_function buttonBox min-w-[100px]",onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("complete")),1)]),_:1},8,["onClick"])])])])])],4)):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-e246ad8e"]]);function fO(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 _(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&&(k([...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&&(k([...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?(k([{...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?(k([...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}`]}`,N(h[`${s.value}`]),!0),b(),n("onCurrent",h)))})}function u(h){l.value.setCheckedKeys(h||[]),b()}function N(h){return(l.value.getCheckedKeys()||[]).findIndex(w=>w===h||w===`${h}`)===-1}function k(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)}),k([...g]),E(C),n("onSelectedData",{selectedDataList:g,departmentList:C,selectedData:h})}function S(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,N(g),!0),b()}function $(h){var g;(g=l.value)==null||g.setData(h)}return{departmentDoubleClick:V,selectedList:d,getCurrentNode:b,getSelectedIndex:m,nodeClick:S,setChecked:_,setCheckedKeys:u,setData:$,setSelectedList:k,treeProps:r,treeRef:l}}const Lr=t=>(e.pushScopeId("data-v-0ea0d0e6"),t=t(),e.popScopeId(),t),mO={class:"flex w-full h-full"},hO={key:0,class:"w-full flex items-center"},uO={key:0,class:"mr-[6px]"},_O={class:"el-checkbox"},gO=[Lr(()=>e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1))],yO={key:1,class:"mr-1"},xO={class:"el-radio"},kO=[Lr(()=>e.createElementVNode("span",{class:"el-radio__inner"},null,-1))],NO=["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:_,treeProps:y,treeRef:u}=fO({emit:s,props:a});e.watch(()=>a.showCheckbox,k=>{if(k===!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:_,setChecked:d,setData:m});const N=e.ref();return e.onMounted(()=>{r.value=a.defaultCheckedList,a.showCheckbox&&a.parentCheckbox&&(N.value=a.defaultCheckedList.map(k=>`${k[`${a.itemSelectParam}`]}`))}),(k,E)=>{const b=e.resolveComponent("el-tree-v2");return e.openBlock(),e.createBlock(b,{ref_key:"treeRef",ref:u,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(N),"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:S})=>[e.createElementVNode("div",mO,[S.type===a.itemType?(e.openBlock(),e.createElementBlock("div",hO,[a.showCheckbox&&!a.parentCheckbox?(e.openBlock(),e.createElementBlock("div",uO,[e.withDirectives(e.createElementVNode("div",_O,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)(S[`${a.itemSelectParam}`])!==-1,"is-disabled":S.disabled},"el-checkbox__input"])},gO,2)],512),[[e.vShow,a.showCheckboxButton]])])):e.createCommentVNode("",!0),a.showRadio?(e.openBlock(),e.createElementBlock("div",yO,[e.withDirectives(e.createElementVNode("div",xO,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)(S[`${a.itemSelectParam}`])!==-1,"is-disabled":S.disabled},"el-radio__input"])},kO,2)],512),[[e.vShow,a.showRadioButton]])])):e.createCommentVNode("",!0),e.renderSlot(k.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:S})),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)(S),["stop"])},[e.renderSlot(k.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:S})),void 0,!0)],40,NO))])]),_: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 S=r.value.find(V=>V.value===l.value);return S&&S.placeholder?S.placeholder:x("pleaseEnterContentToSearch")}),c=e.computed(()=>!!e.useSlots()["check-content"]),p=e.computed(()=>!!e.useSlots()["other-content"]),d=e.ref(null);function f(){const S=new ResizeObserver(()=>{d.value&&(a.value=d.value.clientHeight)});d.value&&S.observe(d.value)}function m(S){n("onCurrentDepartment",S)}function _(S){n("onCurrent",S)}function y(S){n("onCurrentDelete",S)}function u(S){n("onSelectedData",S)}function N(S){s.value=S}function k(S,V){o.value.setChecked(S,V)}function E(S){o.value.setCheckedKeys(S)}function b(S){o.value.setSelectedList(S)}return{checkContentSlotsType:c,otherContentSlotsType:p,currentDepartment:m,currentDevice:_,currentDeviceDelete:y,elementRef:d,selectedData:u,treeComponentHeight:a,treeComponentRef:o,viewDepartmentList:s,watchTreeComponentHeight:f,setChecked:k,setCheckedKeys:E,setSelectedList:b,selectFilterList:r,selectFilterType:l,getInputPlaceholder:i,setViewDepartmentList:N}}function kn(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 tt(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 Fr(t,n,o,a){const{selectFilterType:s,hideOrgNoData:l,disabledIds:r}=o||{disabledIds:"",showOnlineOnly:!1,hideOrgNoData:!1,hideDevice:!1,selectFilterType:null,signal:null},i=[];for(let c=0;c<n.length;c++){const p=n[c];p.type=1,p.onlyId=`${p.id}`,r.length!==0&&(p.disabled=kn(r,p.id));let d=!1;a&&a.parentType||p.type===3?d=!0:d=tt(1,t,p,{selectFilterType:s});const f=d?p:{};if(p.children&&p.children.length>0){const m=await Fr(t,p.children,o,{...p,parentType:d});m&&(f.children=[...m.children],p.children=m.children)}Object.keys(f).length&&(f.children.length||!l&&(f.companyName||f.orgName))&&i.push(p)}return{children:i}}async function Or(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 _=n[m],y=m;_.type===3?_.onlyId=`${_.deviceId}`:(_.type=1,_.onlyId=`organization_${_.id}`),s&&_.type===1&&c.length!==0&&(_.disabled=kn(c,_.id)),_.childrenDeviceList=[],_.onlineCountList=[];const u=a&&a.companyName&&_.type!==3?a.companyName:null;_.parentIdsList=a&&a.parentIdsList?[...a.parentIdsList,{id:_.id,currentSubscript:y}]:[{id:_.id,currentSubscript:y}];let N=!1;a&&a.parentType||_.type===3?N=!0:N=tt(1,t,_,{selectFilterType:l});const k=N?_:{};if(_.deviceList&&_.deviceList.length&&!s){const E=[];_.deviceList.forEach((b,S)=>{if((a&&a.parentType||tt(3,t,b,{selectFilterType:l})||N)&&(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:u,disabled:kn(c,b.deviceId)},$=V;$.parentOrgName=u,$.parentIdsList=_.parentIdsList,_.childrenDeviceList.push($),d.push($),E[b.onlineState===1?"unshift":"push"](V)}}),_.children=_.children.concat(E)}else _.deviceList=[];if(_.children&&_.children.length>0){const E=await Or(t,_.children,o,{..._,parentType:N});if(E){const b=E.deviceList;_.childrenDeviceList.push(...b),d.push(...b);const S=new Map,V=[];_.childrenDeviceList.forEach($=>{S.has($.id)||(S.set($.id,$),$.onlineState===1&&V.push($))}),_.childrenDeviceList=Array.from(S.values()),_.onlineCountList=V,k.children=[...E.children],_.children=E.children}}Object.keys(k).length&&(_.type===3||k.children.length||!i&&(k.companyName||k.orgName))&&f.push(_)}return{children:f,deviceList:Qn(d)}}async function Rr(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 _=!1;m.type===3||m.type===4?_=!0:_=tt(1,t,m,{selectFilterType:l});const y=_?m:{};if(m.groupList&&m.groupList.length!==0?m.groupList.forEach((u,N)=>{if(u.deviceList&&u.deviceList.length!==0){const k=[];a&&a.parentType||_||tt(4,t,u,{selectFilterType:l})?(s||u.deviceList.forEach(E=>{const b={isLeaf:!0,...E,children:[],orgGroupId:u.id,deviceType:E.type,type:3};k[E.onlineState===1?"unshift":"push"](b)}),m.children.push({...u,children:k,type:4})):(s||u.deviceList.forEach(E=>{if(tt(3,t,E,{selectFilterType:l})){const b={isLeaf:!0,...E,children:[],orgGroupId:u.id,deviceType:E.type,type:3};k[E.onlineState===1?"unshift":"push"](b)}}),k.length&&m.children.push({...u,children:k,type:4}))}else(a&&a.parentType||_||tt(4,t,u,{selectFilterType:l}))&&m.children.push({...u,children:[],type:4})}):m.groupList=[],m.deviceList&&m.deviceList.length&&(m.childrenDeviceList=m.deviceList),m.childrenDeviceList&&m.childrenDeviceList.forEach(u=>{p.findIndex(k=>k.deviceId===u.deviceId)===-1&&p.push(u)}),m.children&&m.children.length!==0){const u=await Rr(t,m.children,o,{...m,parentType:_});if(u){const N=u.deviceList;m.childrenDeviceList.push(...N),p.push(...N);const k=new Map,E=[];m.childrenDeviceList.forEach(b=>{k.has(b.id)||(k.set(b.id,b),b.onlineState===1&&E.push(b))}),m.childrenDeviceList=Array.from(k.values()),m.onlineCountList=E,y.children=u.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 Pr(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=tt(1,t,d,{selectFilterType:s});const _=m?d:{};if(d.deviceUserList&&d.deviceUserList.length){const y=[];d.deviceUserList.forEach((u,N)=>{if(a&&a.parentType||tt(5,t,u,{selectFilterType:s})||m){const k={...u,parentType:!0,isLeaf:!0,label:u.name||u.id,deviceId:u.id,deviceType:u.type,type:5,item:u,children:[],parentIdsList:d.parentIdsList};d.childrenDeviceList.push(k),i.push(k);const E={...u,parentType:!0,isLeaf:!0,label:u.name||u.id,deviceId:u.id,deviceType:u.type,type:5,children:[],item:u,disabled:kn(r,u.id)};y[u.onlineState===1?"unshift":"push"](E)}}),d.children=[...d.children,...y]}else d.deviceList=[];if(d.children&&d.children.length>0){const y=await Pr(t,d.children,o,{...d,parentType:m});if(y){const u=y.deviceList;d.childrenDeviceList.push(...u),i.push(...u);const N=new Map,k=[];d.childrenDeviceList.forEach(E=>{N.has(E.id)||(N.set(E.id,E),E.onlineState===1&&k.push(E))}),d.childrenDeviceList=Array.from(N.values()),d.onlineCountList=k,_.children=y.children}}Object.keys(_).length&&(d.type===5||_.children.length||!l&&(_.companyName||_.orgName))&&c.push({...d,..._})}return{children:c,deviceList:Qn(i)}}async function Mr(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=tt(1,t,d,{selectFilterType:s});const _=m?d:{};if(d.csList&&d.csList.length){const y=[];d.csList.forEach((u,N)=>{if(a&&a.parentType||tt(8,t,u,{selectFilterType:s})||m){const k={...u,type:8,item:u,children:[]};d.childrenDeviceList.push(k),i.push(k);const E={...u,type:8,item:u,children:[],disabled:kn(r,u.id)};y[u.onlineState===1?"unshift":"push"](E)}}),d.children=[...d.children,...y]}else d.deviceList=[];if(d.children&&d.children.length>0){const y=await Mr(t,d.children,o,{...d,parentType:m});if(y){const u=y.deviceList;d.childrenDeviceList.push(...u),i.push(...u);const N=new Map,k=[];d.childrenDeviceList.forEach(E=>{N.has(E.id)||(N.set(E.id,E),E.onlineState===1&&k.push(E))}),d.childrenDeviceList=Array.from(N.values()),d.onlineCountList=k,_.children=y.children}}Object.keys(_).length&&(d.type===8||_.children.length||!l&&(_.companyName||_.orgName))&&c.push({...d,..._})}return{children:c,deviceList:Qn(i)}}function bO(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(),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 CO={class:"flex flex-col h-full text-xs"},wO={class:"flex items-center"},EO={class:"!w-[114px]"},SO={class:"text-hy-text-main"},TO={key:0,class:"w-full text-hy-text-main"},DO={class:"w-full h-full flex items-center"},VO={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},$O={key:0,class:"w-full"},BO={class:"w-full h-full flex items-center"},IO={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},Ur=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:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=bO({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:x("filterByDepartmentName")}],E.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],E.value=k.value[0].value),a.defaultGetData||h()}),(w,D)=>{const T=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),L=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),F=e.resolveComponent("el-input"),M=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",CO,[e.createElementVNode("div",wO,[e.createVNode(F,{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",SO,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(L,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",EO,[e.createVNode(B,{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(k),(z,U)=>(e.openBlock(),e.createBlock(T,{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",TO,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",DO,[e.createElementVNode("div",VO,[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",$O,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",BO,[e.createElementVNode("div",IO,[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 AO({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 Sl({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 LO={class:"flex flex-col w-full h-full"},FO={class:"flex justify-between items-center h-[40px]"},OO={class:"flex-1"},RO={class:"text-hy-text-secondary ml-3"},PO={class:"flex-1 flex items-center justify-end"},MO={class:"text-xs"},UO={class:"flex items-center clickBox cursor-pointer"},zO={class:"text-hy-text-primary"},WO=["element-loading-text"],jO={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},HO={class:"flex-grow h-0 w-full equipment vbtTable"},YO={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"},GO={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"},qO={class:"r-f tac flex flex-col items-center justify-center"},KO={class:"mt-3"},XO={class:"flex-grow w-0 pl-2 box-border truncate"},JO={class:"flex-shrink-0"},ZO=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}=AO({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList)}),e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(_,y)=>{const u=e.resolveComponent("el-button"),N=e.resolveComponent("svg-icon"),k=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",LO,[e.createElementVNode("div",FO,[e.createElementVNode("div",OO,[e.createTextVNode(e.toDisplayString(e.unref(x)("allDepartments")),1),e.createElementVNode("span",RO,e.toDisplayString(e.unref(x)("doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt")),1)]),e.createElementVNode("div",PO,[e.withDirectives(e.createVNode(u,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("span",MO,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",UO,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",zO,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",jO,[e.createElementVNode("div",HO,[e.createVNode(Ur,{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",YO,[e.withDirectives(e.createElementVNode("li",GO,[e.createElementVNode("div",qO,[e.createVNode(N,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",KO,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",XO,e.toDisplayString(E.companyName||E.groupName||E.orgName),1),e.createElementVNode("div",JO,[e.createVNode(Me,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(x)("delete"),onClick:S=>e.unref(d)(b)},null,8,["tips","onClick"])])]))),128))])],8,WO)),[[k,!1]])])}}});function QO(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 vO=t=>(e.pushScopeId("data-v-51a5d703"),t=t(),e.popScopeId(),t),eR={class:"flex-shrink-0 mr-1"},tR={class:"flex-grow w-0 overflow-ellipsis overflow-hidden"},nR={class:"deviceName"},oR={key:0,class:"flex-shrink-0 mx-2"},aR={key:0,class:"text-hy-danger text-sm font-bold relative flex-shrink-0"},sR={key:1,class:"deviceType flex-shrink-0"},lR={key:2,class:"deviceType flex-shrink-0"},rR={key:3,class:"deviceType flex-shrink-0"},iR={key:4,class:"deviceType flex-shrink-0"},cR={key:5,class:"deviceType flex-shrink-0"},dR={key:6,class:"deviceType flex-shrink-0"},pR={key:7,class:"text-hy-success flex-shrink-0"},fR={key:1,class:"flex-shrink-0 mx-2"},mR=[vO(()=>e.createElementVNode("span",{class:"shrink-0"},"离线",-1))],pa=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",eR,[e.createVNode(c,{name:e.unref(QO)(s.value.deviceType||s.value.type),width:"20",height:"20",class:"relative top-[2px]"},null,8,["name"])]),e.createElementVNode("div",tR,[e.createElementVNode("span",nR,e.toDisplayString(s.value.devName),1)]),s.value.onlineState===1?(e.openBlock(),e.createElementBlock("div",oR,[s.value.sos===1?(e.openBlock(),e.createElementBlock("span",aR,"SOS")):s.value.intercomGroupTem===1||s.value.intercomCall===1?(e.openBlock(),e.createElementBlock("span",sR,"音频中")):s.value.monitor===1||s.value.beMonitor===1?(e.openBlock(),e.createElementBlock("span",lR,"监控中")):s.value.videoCall===1?(e.openBlock(),e.createElementBlock("span",rR,"通话中")):s.value.videoRecording===1?(e.openBlock(),e.createElementBlock("span",iR,"录像中")):s.value.audioRecording===1?(e.openBlock(),e.createElementBlock("span",cR,"录音中")):s.value.broadcast===1?(e.openBlock(),e.createElementBlock("span",dR,"广播中")):(e.openBlock(),e.createElementBlock("span",pR,"在线"))])):(e.openBlock(),e.createElementBlock("div",fR,mR))],2)]),_:1},8,["content"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-51a5d703"]]);function hR(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 _=await Or(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=_.children,l.value=_.deviceList,t.params.setViewDepartmentList(_.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(_=>_.deviceId===f.deviceId);if(m)for(const _ in f)m[`${_}`]=f[`${_}`]}function d(){a.value.length&&i()}return{setDeviceStatus:p,getData:i,query:a,selectChange:d,treeDeviceList:l,treeDataList:s}}const uR={class:"flex flex-col h-full text-xs"},_R={class:"flex items-center"},gR={class:"!w-[114px]"},yR={class:"text-hy-text-main"},xR={class:"flex-grow w-0"},kR={class:"flex-shrink-0 mr-2 flex h-full items-center justify-center"},NR={key:0,class:"w-full flex cursor_pointer"},bR={class:"flex items-center flex-grow w-0"},CR={class:"max-w-full overflow-ellipsis overflow-hidden"},wR={class:"flex-shrink-0 mr-2 ml-1"},ER={class:"text-hy-main"},zr=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:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,setDeviceStatus:g,query:C,selectChange:w}=hR({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:S}});return e.watch(()=>a.showOnlineOnly,()=>{h()}),n({setCheckedKeys:u,setSelectedList:N,setChecked:y,setDeviceStatus:g,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"设备名称、部门名称、设备IMEI进行搜索"}],E.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:x("equipment"),value:3,placeholder:x("filterByDeviceNumberAndDeviceName")}),E.value=k.value[0].value),a.defaultGetData||h()}),(D,T)=>{const B=e.resolveComponent("el-option"),L=e.resolveComponent("el-select"),j=e.resolveComponent("svg-icon"),F=e.resolveComponent("el-button"),M=e.resolveComponent("el-input"),z=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",uR,[e.createElementVNode("div",_R,[e.createVNode(M,{modelValue:e.unref(C),"onUpdate:modelValue":T[1]||(T[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",yR,[e.createVNode(F,{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",gR,[e.createVNode(L,{modelValue:e.unref(E),"onUpdate:modelValue":T[0]||(T[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(k),(U,R)=>(e.openBlock(),e.createBlock(B,{key:`${R}_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",xR,[e.createVNode(pa,{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",kR,[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",NR,[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",bR,[e.createElementVNode("span",CR,e.toDisplayString(U.companyName||U.groupName||U.orgName),1),e.withDirectives(e.createElementVNode("span",wR,[e.createTextVNode(" ("),e.createElementVNode("span",ER,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 SR({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,N=>{s.value=N.replace(/\s/g,"")});function c(){p([]),i.value.setSelectedList(o.value),t("on-selected-data-list",o.value)}function p(N=[]){o.value=[...N]}function d(N){if(!N.disabled){if(N.type===3){const k=o.value.findIndex(E=>E.deviceId===N.deviceId);k===-1?o.value.push({...N}):o.value.splice(k,1)}else{clearTimeout(l.value);const k={nonExistent:[],existent:[]},E=N.childrenDeviceList||[];E.length&&(E.forEach(b=>{a.value.findIndex(V=>V.deviceId===b.deviceId)===-1&&(o.value.findIndex($=>$.deviceId===b.deviceId)===-1?k.nonExistent.push({...b}):k.existent.push({...b}))}),k.nonExistent.length?k.nonExistent.forEach(b=>{o.value.push({...b})}):k.existent.forEach(b=>{const S=o.value.findIndex(V=>V.deviceId===b.deviceId);o.value.splice(S,1)}))}t("on-selected-data-list",[...o.value])}}function f(){r.value&&r.value.abort(),r.value=new AbortController}async function m(){n.value=!0;const N=await Sl({spotCheckSupport:1});return f(),N.data}function _(N,k){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(S=>S.type===N);return b!==-1?y(E[b],k):"tree-icon-walkie-talkie"}function y(N,k){return N.type===7||N.type===13?k===1?N.svgName:`${N}-off-line`:N.svgName}function u(N){o.value=N.selectedDataList,t("on-selected-data-list",o.value)}return{setSelectedDataList:p,getData:m,abortController:r,selectedDataList:o,clearSelectedData:c,deviceClick:d,checkDeviceTypeFn:_,onSelectedData:u,hyDeviceTreeRef:i}}const TR={class:"flex flex-col w-full h-full"},DR={class:"flex justify-between items-center h-[40px]"},VR={class:"flex mr-2"},$R={class:"flex items-center"},BR={class:"text-xs"},IR={class:"flex items-center clickBox cursor-pointer"},AR={class:"text-hy-text-primary"},LR=["element-loading-text"],FR={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},OR={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"},RR={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"},PR={class:"flex flex-col justify-center items-center"},MR={class:"mt-3"},UR={class:"flex-grow w-0 pl-2 flex box-border"},zR={class:"truncate flex-grow w-0"},WR={class:"select-none truncate mx-[4px] text-hy-text-main"},jR={class:"flex-shrink-0"},HR=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:_}=SR({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList),r()}),e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(y,u)=>{const N=e.resolveComponent("el-button"),k=e.resolveComponent("svg-icon"),E=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",TR,[e.createElementVNode("div",DR,[e.createElementVNode("div",VR,e.toDisplayString(e.unref(x)("allDevices")),1),e.createElementVNode("div",$R,[e.withDirectives(e.createVNode(N,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("span",BR,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",IR,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",AR,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",FR,[e.createVNode(zr,{ref_key:"hyDeviceTreeRef",ref:_,"item-size":36,"get-data":e.unref(r),"show-online-only":a.onlineStateFlag===1,"show-checkbox":!0,"hide-org-no-data":!0,"parent-checkbox":!1,onOnSelectedData:e.unref(m)},null,8,["get-data","show-online-only","onOnSelectedData"])]),e.createElementVNode("ul",OR,[e.withDirectives(e.createElementVNode("li",RR,[e.createElementVNode("div",PR,[e.createVNode(k,{name:"base-no-data","class-name":"!w-[50px] !h-[50px]"}),e.createElementVNode("div",MR,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",UR,[e.createVNode(k,{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",zR,[e.createElementVNode("span",WR,e.toDisplayString(b.devName),1)])]),e.createElementVNode("div",jR,[e.createVNode(Me,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(x)("delete"),onClick:S=>e.unref(d)(b)},null,8,["tips","onClick"])])]))),128))])],8,LR)),[[E,!1]])])}}});function YR({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 _(E){return r.value.findIndex(S=>S.id===E.id)!==-1?"is-checked":""}async function y(E){const b=r.value.findIndex(S=>S.id===E.id);b===-1?u(E):N(b)}function u(E){r.value.push(E),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}function N(E){r.value.splice(E,1),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}async function k(){o.value=!0;const{code:E,data:b=[]}=await Zy({query:i.value,spotCheckSupport:1,onlineState:1});E===200&&(l.value=[],b.forEach(S=>{S.deviceList.length!==0?l.value.unshift(S):l.value.push(S)}),o.value=!1)}return{checkAll:n,loading:o,treeHeight:a,scrollYRenderConfig:s,deviceList:l,selectedDataList:r,filterValue:i,timeOut:c,addSelectedDataList:p,setSelectedDataList:d,getSelectedDataList:f,setCheckAll:m,judgeSelectedFn:_,deviceClick:y,addSelectList:u,deleteSelectList:N,getData:k}}const GR={class:"flex flex-col w-full h-full"},qR={class:"flex justify-between items-center h-[30px]"},KR={class:"el-checkbox !mr-2"},XR=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],JR={class:"text-hy-text-primary"},ZR=["element-loading-text"],QR={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},vR={class:"flex items-center justify-center p-[8px_8px_4px]"},e4={class:"text-hy-text-main"},t4={class:"flex-grow h-0 w-full px-2 box-border overflow-y-scroll overflow-x-hidden"},n4=["onClick"],o4={class:"flex items-center justify-center"},a4={class:"el-checkbox relative !mr-[6px]"},s4=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],l4={class:"treeDepartment cursor_pointer flex items-center justify-between w-full text-[14px] font-bold text-hy-text-main"},r4={class:"r-f w_100vh flex w-full"},i4={class:"flex-grow w-0 over_one_line truncate"},c4={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"},d4={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"},p4={class:"r-f tac flex flex-col justify-center items-center"},f4={class:"mt-3"},m4={class:"flex-grow w-0 pl-2 box-border truncate"},h4={class:"flex-shrink-0"},u4=e.defineComponent({__name:"select-electronic-fence",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=t,s=o,{setSelectedDataList:l,getData:r,setCheckAll:i,checkAll:c,selectedDataList:p,loading:d,filterValue:f,deviceList:m,deviceClick:_,judgeSelectedFn:y,deleteSelectList:u}=YR({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList),r()}),n({setSelectedDataList:l,getData:r}),(N,k)=>{const E=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-button"),S=e.resolveComponent("el-input"),V=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",GR,[e.createElementVNode("div",qR,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("electronicFence")),1),e.createElementVNode("div",{class:"flex items-center clickBox",onClick:k[0]||(k[0]=(...$)=>e.unref(i)&&e.unref(i)(...$))},[e.createElementVNode("div",KR,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)},"el-checkbox__input"])},XR,2)]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",JR,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",QR,[e.createElementVNode("div",vR,[e.createVNode(S,{modelValue:e.unref(f),"onUpdate:modelValue":k[1]||(k[1]=$=>e.isRef(f)?f.value=$:null),placeholder:e.unref(x)("filterByElectronicFenceName"),class:"table-search-main w-[254px] text-[12px]",onClear:k[2]||(k[2]=$=>e.unref(r)()),onKeyup:k[3]||(k[3]=e.withKeys($=>e.unref(r)(),["enter"]))},{append:e.withCtx(()=>[e.createElementVNode("div",e4,[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",t4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),$=>(e.openBlock(),e.createElementBlock("div",{key:$.id,class:"hover:shadow-[0_0_10px_0_inset] bg-hy-dialog-bg-2 hover:shadow-hy-border-1 hover:border-hy-border-1 border-hy-dialog-bg-2 flex-grow flex h-[32px] items-center border rounded my-2 box-border px-2 cursor-pointer",onClick:h=>e.unref(_)($)},[e.createElementVNode("div",o4,[e.createElementVNode("div",a4,[e.createElementVNode("span",{class:e.normalizeClass([e.unref(y)($),"el-checkbox__input"])},s4,2)])]),e.createElementVNode("div",l4,[e.createElementVNode("div",r4,[e.createElementVNode("span",i4,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,n4))),128))])]),e.createElementVNode("ul",c4,[e.withDirectives(e.createElementVNode("li",d4,[e.createElementVNode("div",p4,[e.createVNode(E,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",f4,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",m4,e.toDisplayString($.railName),1),e.createElementVNode("div",h4,[e.createVNode(Me,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(x)("delete"),onClick:g=>e.unref(u)(h)},null,8,["tips","onClick"])])]))),128))])],8,ZR)),[[V,e.unref(d)]])])}}});function _4({emit:t}){const n=e.ref([{label:x("templateName"),prop:"templateName",isSearch:!0},{label:x("operation"),width:80,align:"center",slotName:"operator"}]),o=e.ref({checkStyle:null}),a=e.ref(!1),s=e.ref(null),l=e.ref();function r(d){return new Promise((f,m)=>{const{checkStyle:_=null}=d||{};o.value.checkStyle=_,a.value=!0,s.value=f,e.nextTick(()=>{i()})})}function i(){l.value.getTableData()}function c(d){s.value(d),t("on-selected",d),p()}function p(){a.value=!1}return{$t:x,tableColumns:n,requestParams:o,dialogVisible:a,successfulCallback:s,AppTableRef:l,show:r,selected:c,close:p}}const g4={class:"deleteBox c_fff text-hy-text-main"},y4={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]"},x4={class:"absolute right-[-2px] top-[-2px]"},k4={class:"dialog_body h-[60vh]"},N4=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}=_4({emit:a});return n({show:f}),(m,_)=>{const y=e.resolveComponent("svg-icon"),u=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(u,{modelValue:e.unref(l),"onUpdate:modelValue":_[0]||(_[0]=N=>e.isRef(l)?l.value=N: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",g4,[e.createElementVNode("div",y4,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("spotCheckTemplate")),1),e.createElementVNode("div",x4,[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",k4,[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:N})=>[e.createVNode(Me,{width:12,height:12,name:"icon-choice",class:"!w-[24px] !h-[24px]",tips:e.unref(s)("edit"),onClick:k=>e.unref(p)(N)},null,8,["tips","onClick"])]),_:1},8,["column-list","search-form"])])])]),_:1},8,["modelValue"])}}});function b4({emit:t}){const n=e.ref({everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1}),o=(J,ee,ie)=>{let le="";for(const Z in n.value)n.value[Z]&&(le+=`${Z.replace(/(^everyday)|(everyday$)/g,"")},`);le.length?ie():ie(new Error(x("pleaseSelectASpecificWeek")))},a=e.ref(null),s=e.ref(!1),l=e.ref(!1),r=e.ref([]),i=e.ref(null),c=e.ref(x("immediatelyInitiateARollCallSpotCheck")),p=e.ref(!1),d=e.ref(null),f=e.ref(!1),m=e.ref({limitNum:10,onlineStateFlag:1,checkType:1,checkScope:1,checkStyle:1,actionType:1,actionTime:5,deviceIdList:[],mapRailIdList:[],orgIdList:[],msgContent:"",playMsg:!1,templateName:"",taskDateType:1,apDateListV2:null,apDtmV2:null}),_=e.ref({limitNum:10,onlineStateFlag:1,actionTime:5,actionType:1,checkScope:1,checkStyle:1,checkType:1,deviceIdList:[],mapRailIdList:[],orgIdList:[],msgContent:"",playMsg:!1,templateName:"",taskDateType:1,apDateListV2:null,apDtmV2:null}),y=e.ref({limitNum:[{required:!0,message:x("pleaseEnterTheRandomNumber"),trigger:"blur"}],templateName:[{required:!0,message:x("pleaseEnterTheTemplateName"),trigger:"blur"}],msgContent:[{required:!0,message:x("pleaseFillInTheMessageToBeSent"),trigger:"blur"}],everydayJson:[{required:!0,validator:o,trigger:"change"}],taskDateTime:[{required:!0,message:x("pleaseSelectTheExecutionTime"),trigger:"change"}],taskDateType:[{required:!0,message:x("pleaseSelectTheExecutionDate"),trigger:"change"}],apDateListV2:[{required:!0,message:x("selectOneOrMoreDates"),trigger:"change"}],apDtmV2:[{required:!0,message:x("pleaseSelectASpecificTimePeriod"),trigger:"change"}]}),u=e.ref(),N=e.ref(),k=e.ref(),E=e.ref(),b=e.ref(),S=e.ref();e.watch(()=>_.value.limitNum,J=>{typeof J=="string"&&(J=J.replace(/[^.\d]/g,""),J=J.replace(".",""),_.value.limitNum=J)}),e.watch(()=>p.value,J=>{B()},{immediate:!0});function V(){u.value.validateField("limitNum")}function $(J){if(J!==_.value.onlineStateFlag)return new Promise((ee,ie)=>{if(r.value.length!==0&&_.value.checkScope===3&&J===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=L();le&&(le.clearSelectedData(),le.getData()),_.value.onlineStateFlag=J,ee(0)});else{if(_.value.onlineStateFlag=J,_.value.checkScope===3){const le=L();le&&le.getData()}ee(0)}})}function h(J){let ee=_.value.limitNum-0;if(J===1)ee+=1;else{if(ee<=1){Se.error(x("atLeast1RandomDevice"));return}ee-=1}_.value.limitNum=ee}function g(J,ee){const{checkScope:ie=3,contentState:le=3,onlineStateFlag:Z=1,copyType:O=!1,wrapperClosable:G=!1,title:ne=x("immediatelyInitiateARollCallSpotCheck"),selectedDataList:de=[],successfulCallback:_e=null}=ee||{};if(p.value){if(le===1)if(ie===_.value.checkScope){const Ve=L();Ve&&Ve.addSelectedDataList(de)}else T(ie).then(()=>{F([],!0);const Ve=L();Ve&&Ve.addSelectedDataList(de)});else return Se.warning(x("repeat"));return}a.value=_e,l.value=G,i.value=le,c.value=ne,u.value&&u.value.resetFields(),_.value={...m.value},_.value.limitNum=10,_.value.checkScope=ie,_.value.onlineStateFlag=Z,le===1?de.length&&F(de,!0):F([],!0),n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},J&&typeof J=="number"?X(J,O):C(!0)}function C(J){p.value=typeof J=="boolean"?J:!p.value}function w(){u.value.clearValidate("everydayJson"),u.value.clearValidate("apDateListV2"),u.value.clearValidate("apDtmV2")}function D(J){var ee;(ee=T(J))==null||ee.then(()=>{F([],!0)})}function T(J){if(_.value.checkScope!==J)return new Promise((ee,ie)=>{r.value.length!==0?mt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("prompt"),tipsContent:`<div><p>${x("switchingTheSpotCheckRangeWillClearTheSelectedData")}</p><p>${x("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("cancel-0"),closeBtnType:"primary",submitBtnText:x("confirm-3"),submitBtnType:"default"},()=>{_.value.checkScope=J,ee(0)}):(_.value.checkScope=J,ee(0))})}function B(){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 L(){const J=_.value.checkScope;return J===1?N.value:J===2?k.value:J===3?E.value:null}function j(J){const{checkScope:ee=1,mapRailList:ie=[],orgList:le=[],deviceIdList:Z=[],deviceList:O=[]}=J||{};let G=[];return ee===1&&ie.length?G=ie:ee===2&&le.length?G=le:ee===3&&O.length&&(G=O.map(ne=>({...ne,type:3}))),G||[]}function F(J,ee=!1){if(r.value=J,ee){const ie=L();ie&&ie.setSelectedDataList(J)}}function M(){const J=_.value.checkScope;let ee="",ie=[];return J===1?(ee="mapRailIdList",ie=r.value.map(le=>le.id)):J===2?(ee="orgIdList",ie=r.value.map(le=>le.id)):J===3&&(ee="deviceIdList",ie=r.value.map(le=>le.deviceId)),{dataList:ie,name:ee}}function z(){u.value.validate(J=>{if(J){const ee={..._.value};if(ee.playMsg=ee.playMsg?1:0,ee.checkType===1){const ie=M();if(ee[`${ie.name}`]=ie.dataList,ie.dataList.length===0)return Se.error(x("pleaseSelectTheSpotCheckRange"))}else ee.checkScope=null;e.nextTick(()=>{i.value===2?v(ee):i.value===3?ke(ee):Oe(ee)})}})}function U(J){var ee;J&&((ee=b.value)==null||ee.show(J))}function R(){F([],!0),C(!1),a.value=null}function Y(){R()}function X(J,ee){i.value===2?P(J,ee):i.value===3&&he(J,ee)}async function P(J,ee=!1){s.value=!0;const{code:ie,data:le}=await hA({id:J});if(ie===200){const Z=le;if(le.checkScope,Z.taskDateType===2)Z.weekDate.split(",").forEach(ne=>{ne=Number.parseFloat(ne),ne===1?n.value.everyday1=!0:ne===2?n.value.everyday2=!0:ne===3?n.value.everyday3=!0:ne===4?n.value.everyday4=!0:ne===5?n.value.everyday5=!0:ne===6?n.value.everyday6=!0:ne===7&&(n.value.everyday7=!0)});else if(Z.taskDateType===3){const G=[];Z.apDateList.forEach(ne=>{G.push(ne.apDtm.split(" 00:00:00")[0])}),Z.apDateListV2=G}else Z.taskDateType===4&&(Z.apDtmV2=[Z.apStartDtm,Z.apEndDtm]);Z.taskDateTime=[Z.taskDateStartTime,Z.taskDateEndTime],_.value={...Z,playMsg:Z.playMsg===1},ee&&(_.value.id=null);const O=j(Z);F(O),e.nextTick(()=>{s.value=!1,p.value||C(!0)})}}async function v(J){if(J.taskDateStartTime=_.value.taskDateTime[0],J.taskDateEndTime=_.value.taskDateTime[1],_.value.taskDateType===2){let le="";for(const Z in n.value)n.value[Z]&&(le+=`${Z.replace(/(^everyday)|(everyday$)/g,"")},`);if(le.length===0)return Se.error(x("pleaseSelectASpecificWeek"));J.weekDate=le.substring(le.length-1,0)}else if(_.value.taskDateType===3){if(!_.value.apDateListV2||_.value.apDateListV2.length===0)return Se.error(x("pleaseSelectADate"));J.apDateList=_.value.apDateListV2.map(le=>({apDtm:`${le} 00:00:00`}))}else if(_.value.taskDateType===4){if(!_.value.apDtmV2||_.value.apDtmV2.length===0)return Se.error(x("pleaseSelectATimePeriod"));J.apStartDtm=`${_.value.apDtmV2[0]} 00:00:00`,J.apEndDtm=`${_.value.apDtmV2[1]} 00:00:00`}const{code:ee,data:ie={}}=await uA(J);ee===200&&(Se.success(x("operationSuccessful")),t("on-submit"),a.value&&a.value(),R())}async function Te(){const{id:J}=await S.value.show({checkStyle:i.value===2?1:null});J&&(u.value&&u.value.resetFields(),_.value={...m.value},n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},r.value=[],await he(J,!0),Se.success(x("templateApplied")))}async function he(J,ee=!1){s.value=!0;const{code:ie,data:le}=await _A({id:J});if(ie===200){_.value={...le,playMsg:le.playMsg===1},ee&&(_.value.id=null);const Z=j(_.value);F(Z),e.nextTick(()=>{s.value=!1,p.value||C(!0)})}}async function ke(J){const{code:ee}=await gA(J);ee===200&&(Se.success(x("operationSuccessful")),t("on-submit"),a.value&&a.value(),R())}async function Oe(J){const{code:ee,data:ie={}}=await yA(J);ee===200&&(Se.success(x("operationSuccessful")),a.value&&a.value(),t("on-submit"),U(ie.id),R())}return{dialogVisible:p,animationVisible:f,animationTime:d,setDialogVisible:C,setAnimationVisible:B,setCheckScope:T,setSelectedDataList:F,getSelectedDataList:M,onSubmit:z,viewSpotCheckShow:U,close:R,onClose:Y,detail:X,selectTemplateShow:Te,taskDateTypeFn:w,changeCheckScope:D,everydayJson:n,formRef:u,loading:s,selectElectronicFenceRef:N,selectDepartmentRef:k,selectDeviceRef:E,selectTemplateRef:S,viewSpotCheckRef:b,contentState:i,title:c,wrapperClosable:l,form:_,rules:y,$t:x,changeOnlineStateFlag:$,blurLimitNum:V,setRandomNumber:h,selectedDataList:r,show:g}}const Fe=t=>(e.pushScopeId("data-v-1e4e7e93"),t=t(),e.popScopeId(),t),C4={key:0,class:"fixed top-0 left-0 bg-[rgba(0,0,0,0.5)] w-full h-full z-[100]"},w4={class:"w-[1080px] h-full"},E4={class:"w-full h-full px-[20px] box-border flex flex-col text-hy-text-main text-xs"},S4={class:"flex justify-between items-center h-[60px]"},T4={class:"font-bold text-lg"},D4=["element-loading-text"],V4={key:0,class:"flex mb-2 flex-shrink-0 rounded bg-backgroundv2 px-3 pt-2 h-[90px] box-border items-center"},$4={class:"text-sm h-[30px] flex items-center"},B4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),I4={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"},A4={class:"flex-1 mr-4"},L4={class:"text-sm h-[30px] flex items-center"},F4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),O4={class:"text-sm h-[30px] flex items-center"},R4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),P4={class:"everydayBox leading-[20px]"},M4={class:"text-xs"},U4={class:"text-xs"},z4={class:"text-xs"},W4={class:"text-xs"},j4={class:"text-xs"},H4={class:"text-xs"},Y4={class:"text-xs"},G4={class:"text-sm h-[30px] flex items-center"},q4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),K4={class:"w-full"},X4={class:"text-sm h-[30px] flex items-center"},J4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Z4={class:"flex-1 min-w-[220px]"},Q4={class:"text-sm h-[30px] flex items-center"},v4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),e3={class:"flex items-center flex-grow h-0"},t3={class:"flex-grow w-0 h-full flex flex-col"},n3={class:"flex"},o3={class:"text-sm h-[30px] flex items-center"},a3=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),s3={class:"text-sm h-[30px] flex items-center"},l3=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),r3={class:"text-sm h-[30px] flex items-center"},i3=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),c3={class:"test h-[32px] flex border border-hy-border-2 rounded box-border overflow-hidden bg-hy-dialog-bg-2 w-full"},d3={class:"flex-grow w-0 box-border px-1 flex items-center justify-center"},p3=["placeholder"],f3={class:"flex flex-col w-[32px] text-auxiliary border-l border-hy-border-2"},m3={class:"text-sm h-[30px] flex items-center"},h3=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),u3={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"},_3={class:"tac text-hy-text-secondary text-center"},g3={class:"mt_10 mt-[10px]"},y3={class:""},x3={class:"mt-1"},k3={class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},N3={class:"flex justify-between h-[40px] items-center"},b3={class:"fs_12 p-[10px_20px] text-[12px]"},C3={class:"r-f mb_10 flex mb-[10px]"},w3=Fe(()=>e.createElementVNode("span",null,"1、",-1)),E3={class:"r-f mb_10 flex mb-[10px]"},S3=Fe(()=>e.createElementVNode("span",null,"2、",-1)),T3={class:"r-f mb_10 flex mb-[10px]"},D3=Fe(()=>e.createElementVNode("span",null,"3、",-1)),V3={class:"fs_12 cursor_pointer !text-hy-text-primary cursor-pointer text-[12px]"},$3={class:"flex-grow h-0 flex"},B3={class:"flex-1"},I3=Fe(()=>e.createElementVNode("div",{class:"mx-[20px] w-[2px] h-[96%] rounded bg-hy-border-2 flex-shrink-0"},null,-1)),A3={class:"w-[33%] h-full flex flex-col"},L3={class:"text-sm h-[30px] flex items-center"},F3=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),O3={class:"text-sm h-[30px] flex items-center"},R3=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),P3={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"},M3={class:"tac text-hy-text-secondary text-center"},U3={class:"mt-[10px]"},z3={class:"mt-1"},W3={key:0,class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},j3={class:"flex-grow h-0"},H3={class:"text-xs"},Y3={class:"mb-2"},G3={class:"text-sm h-[30px] flex items-center"},q3=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),K3={class:"mb-2"},X3={class:"text-sm h-[30px] flex items-center"},J3=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Z3={class:"flex items-center justify-between h-[80px]"},Q3={class:"text-hy-text-secondary flex items-center"},v3=be(e.defineComponent({__name:"edit-spot-check",emits:["on-submit"],setup(t,{expose:n,emit:o}){const a=o,{$t:s,dialogVisible:l,wrapperClosable:r,animationVisible:i,title:c,onClose:p,loading:d,form:f,rules:m,contentState:_,taskDateTypeFn:y,everydayJson:u,changeOnlineStateFlag:N,blurLimitNum:k,setRandomNumber:E,changeCheckScope:b,selectedDataList:S,setSelectedDataList:V,selectTemplateShow:$,onSubmit:h,selectElectronicFenceRef:g,selectDepartmentRef:C,selectDeviceRef:w,selectTemplateRef:D,viewSpotCheckRef:T,show:B,formRef:L}=b4({emit:a});return n({show:B}),(j,F)=>{const M=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-input"),U=e.resolveComponent("el-form-item"),R=e.resolveComponent("el-option"),Y=e.resolveComponent("el-select"),X=e.resolveComponent("el-checkbox"),P=e.resolveComponent("el-date-picker"),v=e.resolveComponent("el-time-picker"),Te=rA,he=e.resolveComponent("el-icon"),ke=oA,Oe=e.resolveComponent("el-popover"),J=e.resolveComponent("el-form"),ee=$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",C4)):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",w4,[e.createElementVNode("div",E4,[e.createElementVNode("div",S4,[e.createElementVNode("div",T4,e.toDisplayString(e.unref(c)),1),e.createVNode(M,{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(J,{ref_key:"formRef",ref:L,model:e.unref(f),rules:e.unref(m),"label-width":"0px",class:"w-full h-full flex flex-col"},{default:e.withCtx(()=>[e.unref(_)===3?(e.openBlock(),e.createElementBlock("div",V4,[e.createVNode(U,{prop:"templateName",class:"w-full"},{default:e.withCtx(()=>[e.createElementVNode("div",$4,[e.createTextVNode(e.toDisplayString(e.unref(s)("templateName")),1),B4]),e.createVNode(z,{modelValue:e.unref(f).templateName,"onUpdate:modelValue":F[0]||(F[0]=Z=>e.unref(f).templateName=Z),placeholder:e.unref(s)("pleaseEnterTheTemplateName"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})])):e.unref(_)===2?(e.openBlock(),e.createElementBlock("div",I4,[e.createElementVNode("div",A4,[e.createVNode(U,{prop:"taskDateType"},{default:e.withCtx(()=>[e.createElementVNode("div",L4,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionDate")),1),F4]),e.createVNode(Y,{modelValue:e.unref(f).taskDateType,"onUpdate:modelValue":F[1]||(F[1]=Z=>e.unref(f).taskDateType=Z),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheExecutionDate"),onChange:e.unref(y)},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("everyday"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("specifyAWeek"),value:2},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("specifyADate"),value:3},null,8,["label"]),e.createVNode(R,{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",O4,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyAWeek")),1),R4]),e.createElementVNode("div",P4,[e.createVNode(X,{modelValue:e.unref(u).everyday1,"onUpdate:modelValue":F[2]||(F[2]=Z=>e.unref(u).everyday1=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",M4,e.toDisplayString(e.unref(s)("monday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday2,"onUpdate:modelValue":F[3]||(F[3]=Z=>e.unref(u).everyday2=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",U4,e.toDisplayString(e.unref(s)("tuesday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday3,"onUpdate:modelValue":F[4]||(F[4]=Z=>e.unref(u).everyday3=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",z4,e.toDisplayString(e.unref(s)("wednesday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday4,"onUpdate:modelValue":F[5]||(F[5]=Z=>e.unref(u).everyday4=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",W4,e.toDisplayString(e.unref(s)("thursday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday5,"onUpdate:modelValue":F[6]||(F[6]=Z=>e.unref(u).everyday5=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",j4,e.toDisplayString(e.unref(s)("friday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday6,"onUpdate:modelValue":F[7]||(F[7]=Z=>e.unref(u).everyday6=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",H4,e.toDisplayString(e.unref(s)("saturday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday7,"onUpdate:modelValue":F[8]||(F[8]=Z=>e.unref(u).everyday7=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",Y4,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",G4,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyADate")),1),q4]),e.createElementVNode("div",K4,[e.createVNode(P,{modelValue:e.unref(f).apDateListV2,"onUpdate:modelValue":F[9]||(F[9]=Z=>e.unref(f).apDateListV2=Z),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",X4,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyATimePeriod")),1),J4]),e.createElementVNode("div",null,[e.createVNode(P,{modelValue:e.unref(f).apDtmV2,"onUpdate:modelValue":F[10]||(F[10]=Z=>e.unref(f).apDtmV2=Z),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",Z4,[e.createVNode(U,{prop:"taskDateTime"},{default:e.withCtx(()=>[e.createElementVNode("div",Q4,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionTime-0")),1),v4]),e.createVNode(v,{modelValue:e.unref(f).taskDateTime,"onUpdate:modelValue":F[11]||(F[11]=Z=>e.unref(f).taskDateTime=Z),"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",e3,[e.createElementVNode("div",t3,[e.createElementVNode("div",n3,[e.createVNode(U,{class:"flex-1"},{default:e.withCtx(()=>[e.createElementVNode("div",o3,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckType")),1),a3]),e.createVNode(Y,{modelValue:e.unref(f).checkType,"onUpdate:modelValue":F[12]||(F[12]=Z=>e.unref(f).checkType=Z),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheSpotCheckType")},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("rangeCheck"),value:1},null,8,["label"]),e.createVNode(R,{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",s3,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckDevice")),1),l3]),e.createVNode(Y,{"model-value":e.unref(f).onlineStateFlag,class:"w-full",placeholder:e.unref(s)("pleaseSelectTheSpotCheckDevice"),onChange:e.unref(N)},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("spotCheckOnlyOnlineDevices"),value:1},null,8,["label"]),e.createVNode(R,{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",r3,[e.createTextVNode(e.toDisplayString(e.unref(s)("randomNumber")),1),i3]),e.createElementVNode("div",c3,[e.createElementVNode("div",d3,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":F[13]||(F[13]=Z=>e.unref(f).limitNum=Z),type:"text",style:{outline:"none"},class:"bg-hy-dialog-bg-2 w-full h-full",placeholder:e.unref(s)("pleaseEnterTheRandomNumber"),onBlur:F[14]||(F[14]=(...Z)=>e.unref(k)&&e.unref(k)(...Z))},null,40,p3),[[e.vModelText,e.unref(f).limitNum]])]),e.createElementVNode("div",f3,[e.createElementVNode("div",{class:"flex-1 flex items-center justify-center clickBox cursor-pointer",onClick:F[15]||(F[15]=Z=>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:F[16]||(F[16]=Z=>e.unref(E)(2))},[e.createVNode(he,null,{default:e.withCtx(()=>[e.createVNode(ke)]),_:1})])])])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",m3,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckRange")),1),h3]),e.withDirectives(e.createElementVNode("div",u3,[e.createElementVNode("div",_3,[e.createVNode(M,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",g3,[e.createElementVNode("p",y3,e.toDisplayString(e.unref(s)("youDoNotNeedToSelectARangeAndDeviceForRandomCheck")),1),e.createElementVNode("p",x3,e.toDisplayString(e.unref(s)("theSystemWillHelpYouSelectRandomly")),1)])])],512),[[e.vShow,e.unref(f).checkType===2]]),e.withDirectives(e.createElementVNode("div",k3,[e.createElementVNode("div",N3,[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(R,{label:e.unref(s)("selectAnArea"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("selectADepartment"),value:2},null,8,["label"]),e.createVNode(R,{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",V3,[e.createVNode(M,{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",b3,[e.createElementVNode("li",C3,[w3,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea")),1)]),e.createElementVNode("li",E3,[S3,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment")),1)]),e.createElementVNode("li",T3,[D3,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck")),1)])])]),_:1})])]),e.createElementVNode("div",$3,[e.createElementVNode("div",B3,[e.unref(f).checkScope===1?(e.openBlock(),e.createBlock(u4,{key:0,ref_key:"selectElectronicFenceRef",ref:g,"init-selected-data-list":e.unref(S),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(f).checkScope===2?(e.openBlock(),e.createBlock(ZO,{key:1,ref_key:"selectDepartmentRef",ref:C,"init-selected-data-list":e.unref(S),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(f).checkScope===3?(e.openBlock(),e.createBlock(HR,{key:2,ref_key:"selectDeviceRef",ref:w,"init-selected-data-list":e.unref(S),"online-state-flag":e.unref(f).onlineStateFlag,onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","online-state-flag","onOnSelectedDataList"])):e.createCommentVNode("",!0)])])],512),[[e.vShow,e.unref(f).checkType===1]])]),I3,e.createElementVNode("div",A3,[e.createVNode(U,null,{default:e.withCtx(()=>[e.createElementVNode("div",L3,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckMethod")),1),F3]),e.createVNode(Y,{modelValue:e.unref(f).checkStyle,"onUpdate:modelValue":F[17]||(F[17]=Z=>e.unref(f).checkStyle=Z),class:"w-full",disabled:e.unref(_)===2,placeholder:e.unref(s)("pleaseSelectTheSpotCheckMethod")},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("message"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("call"),value:2},null,8,["label"])]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),e.createElementVNode("div",O3,[e.createTextVNode(e.toDisplayString(e.unref(s)("messageContent")),1),R3]),e.withDirectives(e.createElementVNode("div",P3,[e.createElementVNode("div",M3,[e.createVNode(M,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",U3,[e.createElementVNode("p",null,e.toDisplayString(e.unref(s)("callDoesNotRequireYouToEnterTheMessageContent")),1),e.createElementVNode("p",z3,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",W3,[e.createElementVNode("div",j3,[e.createVNode(U,{prop:"msgContent"},{default:e.withCtx(()=>[e.createVNode(z,{modelValue:e.unref(f).msgContent,"onUpdate:modelValue":F[18]||(F[18]=Z=>e.unref(f).msgContent=Z),type:"textarea",placeholder:e.unref(s)("pleaseFillInTheMessageToBeSent"),maxlength:"100",resize:"none",autosize:{minRows:e.unref(_)===1?14:10},"show-word-limit":""},null,8,["modelValue","placeholder","autosize"])]),_:1}),e.createVNode(X,{modelValue:e.unref(f).playMsg,"onUpdate:modelValue":F[19]||(F[19]=Z=>e.unref(f).playMsg=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",H3,e.toDisplayString(e.unref(s)("requiresTTSVoiceBroadcastOnTheDevice")),1)]),_:1},8,["modelValue"])]),e.createElementVNode("div",Y3,[e.createElementVNode("div",G3,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerMethod")),1),q3]),e.createVNode(Y,{modelValue:e.unref(f).actionType,"onUpdate:modelValue":F[20]||(F[20]=Z=>e.unref(f).actionType=Z),class:"w-full",placeholder:e.unref(s)("pleaseSelect")},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("punchIn"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("reply"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",K3,[e.createElementVNode("div",X3,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerTime")),1),J3]),e.createVNode(Y,{modelValue:e.unref(f).actionTime,"onUpdate:modelValue":F[21]||(F[21]=Z=>e.unref(f).actionTime=Z),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheAnswerTime")},{default:e.withCtx(()=>[e.createVNode(R,{label:"5s",value:5}),e.createVNode(R,{label:"10s",value:10}),e.createVNode(R,{label:"15s",value:15}),e.createVNode(R,{label:"30s",value:30}),e.createVNode(R,{label:"60s",value:60})]),_:1},8,["modelValue","placeholder"])])])):e.createCommentVNode("",!0)])])]),_:1},8,["model","rules"])],8,D4)),[[le,e.unref(d)]]),e.createElementVNode("div",Z3,[e.createElementVNode("div",Q3,[e.createVNode(he,{class:"text-sm mr-1"},{default:e.withCtx(()=>[e.createVNode(ee)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("youCanApplyTheSpotCheckTemplateToQuicklyFillInTheContent")),1)]),e.createElementVNode("div",null,[e.unref(_)!==3?(e.openBlock(),e.createBlock(ie,{key:0,class:"button_function buttonBox",onClick:e.unref($)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckTemplate")),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.createVNode(ie,{type:"primary",class:"button_default buttonBox",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(ie,{class:"button_function buttonBox",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("confirm")),1)]),_:1},8,["onClick"])])])])]),e.createVNode(N4,{ref_key:"selectTemplateRef",ref:D},null,512)],2)):e.createCommentVNode("",!0),e.createVNode(pO,{ref_key:"viewSpotCheckRef",ref:T},null,512)])}}}),[["__scopeId","data-v-1e4e7e93"]]);function eP(t){return oe.post({url:"orgGroup/detail",data:t,isFormData:!0})}function tP(){const t=e.ref({}),n=e.ref(null),o=e.ref({}),a=e.ref(1),s=e.ref([{label:x("spotCheckInformation"),value:1},{label:x("spotCheckStatus"),value:2}]),l=e.ref(0),r=e.ref([{label:x("all"),value:0},{label:x("completed-0"),value:3},{label:x("uncompleted-0"),value:4}]),i=e.ref([]),c=e.ref([]),p=e.ref(!1),d=e.ref(),f=e.computed(()=>{const h=r.value.findIndex(g=>g.value===l.value);return h!==-1?Math.ceil(h*(100/r.value.length)):0}),m=e.computed(()=>{const h=s.value.findIndex(g=>g.value===a.value);return h!==-1?Math.ceil(h*(100/s.value.length)):0});async function _(h){if(!h)return;const{code:g,data:C}=await eP({id:h});g===200&&(o.value=C)}function y(){var h;(h=d.value)==null||h.getData(l.value)}function u(h){l.value=h,e.nextTick(()=>{y()})}function N(h){a.value=h}function k(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 S(h){t.value={actionType:1,id:12},N(1),u(0),V(h),p.value=!0}async function V(h){const{code:g,data:C={}}=await Ir({id:h,getMapRail:1,getOrg:1});g===200&&(t.value=C,i.value=C.orgNameList||[],c.value=C.railNameList||[],t.value.checkNum,e.nextTick(()=>{C.checkStyle===2&&(n.value=C.groupId,_(n.value),t.value.actionType=null),p.value=!0}))}function $(){p.value=!1}return{form:t,groupId:n,orgGroupInsertTemp:o,navigationStatus:a,navigationList:s,checkStatus:l,checkStatusList:r,orgNameList:i,railNameList:c,dialogVisible:p,spotCheckTaskDeviceRef:d,checkStatusProgress:f,navigationStatusProgress:m,setCheckStatus:u,setNavigationStatus:N,setLoading:k,spotCheckTaskDeviceCountStatus:E,spotCheckTaskDeviceChange:b,show:S,detail:V,close:$}}const nP={class:"deleteBox c_fff text-hy-text-main"},oP={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]"},aP={class:"dialog_body pb-[30px] h-[60vh] flex flex-col text-main text-xs !px-0"},sP={class:"flex items-center justify-center mb-[16px]"},lP={class:"relative flex-shrink-0"},rP={class:"relative text-sm h-[36px] !leading-[36px] text-center border border-hy-bg-2 rounded text-hy-text-secondary flex overflow-hidden"},iP=["onClick"],cP={class:"flex flex-grow h-0 px-4 box-border"},dP={class:"w-full h-full box-border px-2"},pP={class:"w-full h-full bg-hy-dialog-bg-2 rounded px-3 py-1 box-border overflow-x-hidden overflow-y-auto"},fP={class:"mb-2"},mP={class:"text-hy-text-secondary h-[30px] leading-[30px]"},hP={class:"text-hy-text-secondary"},uP={class:"mb-2"},_P={class:"text-hy-text-secondary h-[30px] leading-[30px]"},gP={class:"mb-2"},yP={class:"text-hy-text-secondary h-[30px] leading-[30px]"},xP={class:"mb-2"},kP={class:"text-hy-text-secondary h-[30px] leading-[30px]"},NP={class:"mb-2"},bP={class:"text-hy-text-secondary h-[30px] leading-[30px]"},CP={key:0,class:"mb-2"},wP={class:"text-hy-text-secondary h-[30px] leading-[30px]"},EP={key:0},SP={key:1},TP={key:2},DP={key:0},VP={key:0},$P={key:1},BP={key:0},IP={key:2},AP={key:1,class:"mb-2"},LP={class:"text-hy-text-secondary h-[30px] leading-[30px]"},FP={key:0,class:"py-1 box-border h-full bg-hy-dialog-bg-3 rounded"},OP={class:"w-full h-[34px] px-2 box-border flex justify-between items-center"},RP={key:0,class:"ml-2 border-[2px] box-border border-hy-border-2 flex items-center justify-center h-[26px] px-2 rounded"},PP={class:"h-[40%] box-border px-2 mt-1"},MP={class:"w-full h-full box-border bg-hy-dialog-bg-2 rounded p-2 overflow-y-auto overflow-x-hidden"},UP={class:"flex px-2 mt-1"},zP={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center mr-2"},WP={class:"text-hy-text-secondary"},jP={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center"},HP={class:"text-hy-text-secondary"},YP={class:"font-bold"},GP={key:1,class:"h-full py-1 bg-hy-dialog-bg-3 rounded"},qP={class:"w-full h-full flex items-center justify-center text-hy-text-secondary box-border"},KP={class:"r-f tac flex flex-col items-center justify-center text-center text-sm"},XP={class:"mt-3"},JP={class:"mt-1"},ZP={class:"flex flex-grow h-0 px-4 box-border"},QP={class:"text-xs px-2 leading-[22px]"},vP={class:"flex w-full"},e8={class:"flex-shrink-0"},t8={class:"text-right font-bold flex-grow w-0"},n8={class:"flex w-full"},o8={class:"flex-shrink-0 tracking-[4px]"},a8={class:"text-right font-bold flex-grow w-0"},s8={class:"flex w-full"},l8={class:"flex-shrink-0 tracking-[4px]"},r8={class:"text-right font-bold flex-grow w-0"},i8={class:"flex w-full"},c8={class:"flex-shrink-0 tracking-[4px]"},d8={class:"text-right font-bold flex-grow w-0 text-hy-success"},p8={class:"flex w-full"},f8={class:"flex-shrink-0 tracking-[4px]"},m8={class:"text-right font-bold flex-grow w-0 text-hy-danger"},h8={class:"flex-1 flex"},u8={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},_8={class:"flex-grow w-0 text-center truncate"},g8={class:"flex-1 flex"},y8={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},x8={class:"flex-grow w-0 text-center text-hy-success truncate"},k8={class:"flex-1 flex"},N8={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},b8={class:"flex-grow w-0 text-center text-hy-danger truncate"},C8={class:"relative mt-3 mb-2 min-w-[160px]"},w8={class:"relative h-[26px] !leading-[26px] text-center border border-hy-border-2 rounded text-hy-text-secondary text-xs flex overflow-hidden"},E8=["onClick"],S8={class:"flex-grow h-0 px-2 overflow-x-hidden overflow-y-auto"},T8=e.createElementVNode("div",{class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},null,-1),D8={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"},V8={class:"r-f tac flex flex-col justify-center items-center"},$8={class:"mt-3 text-sm"},B8=e.defineComponent({__name:"spot-check-details",setup(t,{expose:n}){const{dialogVisible:o,checkStatus:a,checkStatusList:s,checkStatusProgress:l,close:r,form:i,navigationList:c,navigationStatus:p,navigationStatusProgress:d,orgGroupInsertTemp:f,orgNameList:m,railNameList:_,setCheckStatus:y,setNavigationStatus:u,spotCheckTaskDeviceChange:N,spotCheckTaskDeviceCountStatus:k,show:E,spotCheckTaskDeviceRef:b}=tP();return n({show:E}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-col"),g=e.resolveComponent("el-row"),C=e.resolveComponent("el-popover"),w=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(w,{modelValue:e.unref(o),"onUpdate:modelValue":V[1]||(V[1]=D=>e.isRef(o)?o.value=D:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"820px"},{default:e.withCtx(()=>[e.createElementVNode("div",nP,[e.createElementVNode("div",oP,[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",aP,[e.createElementVNode("div",sP,[e.createElementVNode("div",lP,[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",rP,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(D,T)=>(e.openBlock(),e.createElementBlock("li",{key:T,class:e.normalizeClass([{"text-hy-text-main font-bold":D.value===e.unref(p)},"clickBox cursor-pointer px-2 w-[96px] box-border"]),onClick:B=>e.unref(u)(D.value)},e.toDisplayString(D.label),11,iP))),128))])])]),e.withDirectives(e.createElementVNode("div",cP,[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",dP,[e.createElementVNode("div",pP,[e.createElementVNode("div",fP,[e.createElementVNode("div",mP,e.toDisplayString(e.unref(x)("spotCheckPersonnel")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(i).name)+" ",1),e.createElementVNode("span",hP," ("+e.toDisplayString(e.unref(i).jobNum)+")",1)])]),e.createElementVNode("div",uP,[e.createElementVNode("div",_P,e.toDisplayString(e.unref(x)("department")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).orgName),1)]),e.createElementVNode("div",gP,[e.createElementVNode("div",yP,e.toDisplayString(e.unref(x)("spotCheckTime")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkDtm),1)]),e.createElementVNode("div",xP,[e.createElementVNode("div",kP,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",NP,[e.createElementVNode("div",bP,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",CP,[e.createElementVNode("div",wP,[e.createTextVNode(e.toDisplayString(e.unref(x)("samplingScope"))+" ",1),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("span",EP,e.toDisplayString(e.unref(x)("regionalSpotCheck")),1)):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("span",SP,e.toDisplayString(e.unref(x)("departmentSpotCheck")),1)):e.unref(i).checkScope===3?(e.openBlock(),e.createElementBlock("span",TP,e.toDisplayString(e.unref(x)("deviceSpotCheck")),1)):e.createCommentVNode("",!0),e.createTextVNode(" ) ")]),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("div",DP,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(D,T)=>(e.openBlock(),e.createElementBlock("span",{key:`${T}_orgNameList`},[e.createTextVNode(e.toDisplayString(D)+" ",1),T!==e.unref(_).length-1?(e.openBlock(),e.createElementBlock("span",VP,"、")):e.createCommentVNode("",!0)]))),128))])):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("div",$P,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(D,T)=>(e.openBlock(),e.createElementBlock("span",{key:`${T}_orgNameList`},[e.createTextVNode(e.toDisplayString(D)+" ",1),T!==e.unref(m).length-1?(e.openBlock(),e.createElementBlock("span",BP,"、")):e.createCommentVNode("",!0)]))),128))])):(e.openBlock(),e.createElementBlock("div",IP,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).checkNum||0)+" "+e.toDisplayString(e.unref(x)("device")),1)]))])):(e.openBlock(),e.createElementBlock("div",AP,[e.createElementVNode("div",LP,[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",FP,[e.createElementVNode("div",OP,[e.createElementVNode("div",null,e.toDisplayString(e.unref(x)("messageContent")),1),e.unref(i).playMsg===1?(e.openBlock(),e.createElementBlock("div",RP," TTS"+e.toDisplayString(e.unref(x)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",PP,[e.createElementVNode("div",MP,e.toDisplayString(e.unref(i).msgContent),1)]),e.createElementVNode("div",UP,[e.createElementVNode("div",zP,[e.createElementVNode("div",WP,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",jP,[e.createElementVNode("div",HP,e.toDisplayString(e.unref(x)("answerTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",YP,e.toDisplayString(e.unref(i).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("second")),1)])])])])):(e.openBlock(),e.createElementBlock("div",GP,[e.createElementVNode("div",qP,[e.createElementVNode("div",KP,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",XP,e.toDisplayString(e.unref(x)("callSpotCheck")),1),e.createElementVNode("div",JP,e.toDisplayString(e.unref(x)("backupWillBeCheckedByIntercomAnswering")),1)])])]))]),_:1})]),_:1})],512),[[e.vShow,e.unref(p)===1]]),e.withDirectives(e.createElementVNode("div",ZP,[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",h8,[e.createElementVNode("div",u8,[e.createVNode($,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",_8,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("div",g8,[e.createElementVNode("div",y8,[e.createVNode($,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),e.createElementVNode("div",x8,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("div",k8,[e.createElementVNode("div",N8,[e.createVNode($,{name:"base-danger-state","class-name":"w-[16px] h-[16px] text-hy-danger"})]),e.createElementVNode("div",b8,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])],2)])]),default:e.withCtx(()=>[e.createElementVNode("ul",QP,[e.createElementVNode("li",vP,[e.createElementVNode("span",e8,e.toDisplayString(e.unref(x)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",t8,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("li",n8,[e.createElementVNode("span",o8,e.toDisplayString(e.unref(x)("waitingToReceive")),1),e.createElementVNode("div",a8,e.toDisplayString(e.unref(i).beReceiveNum||"- -"),1)]),e.createElementVNode("li",s8,[e.createElementVNode("span",l8,e.toDisplayString(e.unref(x)("receiving")),1),e.createElementVNode("div",r8,e.toDisplayString(e.unref(i).receivingNum||"- -"),1)]),e.createElementVNode("li",i8,[e.createElementVNode("span",c8,e.toDisplayString(e.unref(x)("completed")),1),e.createElementVNode("div",d8,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("li",p8,[e.createElementVNode("span",f8,e.toDisplayString(e.unref(x)("uncompleted")),1),e.createElementVNode("div",m8,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])])]),_:1}),e.createElementVNode("div",C8,[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",w8,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(D,T)=>(e.openBlock(),e.createElementBlock("li",{key:`${T}_checkStatusList`,class:e.normalizeClass([{"text-hy-text-main":D.value===e.unref(a)},"flex-1 cursor-pointer hover:opacity-60"]),onClick:B=>e.unref(y)(D.value)},e.toDisplayString(D.label),11,E8))),128))])])],2),e.createElementVNode("div",S8,[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(N),onOnCountStatus:e.unref(k)},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(()=>[T8]),_:1})):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createElementBlock("div",D8,[e.createElementVNode("div",V8,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",$8,e.toDisplayString(e.unref(x)("noDeviceSupportsThisSpotCheck")),1)])]))],512),[[e.vShow,e.unref(p)===2]])])])]),_:1},8,["modelValue"])}}});function I8(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 Mr(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 A8={class:"flex flex-col h-full text-xs"},L8={class:"flex items-center"},F8={class:"!w-[114px]"},O8={class:"text-hy-text-main"},R8={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},P8={class:"flex-grow w-0 flex items-center mr-1"},M8={class:"overflow-ellipsis overflow-hidden mx-1"},U8={class:"flex-shrink-0 flex items-center"},z8={key:0,class:"w-full"},W8={class:"w-full h-full flex items-center"},j8={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},H8={class:"flex-shrink-0 text-xs ml-1 mr-2 text-hy-main"},Y8=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:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=I8({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"采集站名称,群组名称筛选"}],E.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:"采集站",value:8,placeholder:x("采集站名称进行筛选")}),E.value=k.value[0].value),a.defaultGetData||h()}),(w,D)=>{const T=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),L=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),F=e.resolveComponent("el-input"),M=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",A8,[e.createElementVNode("div",L8,[e.createVNode(F,{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",O8,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(L,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",F8,[e.createVNode(B,{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(k),(z,U)=>(e.openBlock(),e.createBlock(T,{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",R8,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.sname},{default:e.withCtx(()=>[e.createElementVNode("div",P8,[e.createVNode(L,{name:"menu-acquisition-station-2",class:"!w-[20px] !h-[20px]"}),e.createElementVNode("div",M8,[e.createElementVNode("span",null,e.toDisplayString(z.sname),1)])])]),_:2},1032,["content"]),z.todayFile?(e.openBlock(),e.createBlock(M,{key:0,class:"item","show-after":1e3,content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",U8,[e.createVNode(L,{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",z8,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",W8,[e.createElementVNode("div",j8,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)]),e.createElementVNode("span",H8,"("+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 G8(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 Rr(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 q8={class:"flex flex-col h-full text-xs"},K8={class:"flex items-center"},X8={class:"!w-[114px]"},J8={class:"text-hy-text-main"},Z8={key:0,class:"flex items-center w-full h-full click-box"},Q8={class:"flex-grow w-0 h-full flex items-center text-hy-text-main"},v8={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},eM={class:"text-hy-text-main"},tM={class:"flex-shrink-0 ml-1 mr-2 h-full flex items-center justify-center"},nM={key:0,class:"w-full h-full"},oM=["onClick"],aM={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},sM=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:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C,onClickDevice:w,onClickOrganization:D}=G8({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"部门、群组名称、设备名称、设备IMEI进行搜索"}],E.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:x("equipment"),value:3,placeholder:x("filterByDeviceNumberAndDeviceName")}),a.hideGroup||k.value.push({label:"群组",value:4,placeholder:"群组名称进行筛选"}),E.value=k.value[0].value),a.defaultGetData||h()}),(T,B)=>{const L=e.resolveComponent("el-option"),j=e.resolveComponent("el-select"),F=e.resolveComponent("svg-icon"),M=e.resolveComponent("el-button"),z=e.resolveComponent("el-input"),U=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",q8,[e.createElementVNode("div",K8,[e.createVNode(z,{modelValue:e.unref(g),"onUpdate:modelValue":B[1]||(B[1]=R=>e.isRef(g)?g.value=R: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",J8,[e.createVNode(M,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(F,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",X8,[e.createVNode(j,{modelValue:e.unref(E),"onUpdate:modelValue":B[0]||(B[0]=R=>e.isRef(E)?E.value=R: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(k),(R,Y)=>(e.openBlock(),e.createBlock(L,{key:`${Y}_selectFilterList`,label:R.label,value:R.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(T.$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:R})=>[e.renderSlot(T.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:R}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Z8,[e.createVNode(U,{class:"item",content:R.groupName,effect:"dark",placement:"bottom","show-after":1e3},{default:e.withCtx(()=>{var Y;return[e.createElementVNode("div",Q8,[e.createElementVNode("div",v8,[e.createElementVNode("span",eM,e.toDisplayString(R.groupName),1)]),e.withDirectives(e.createElementVNode("span",{class:"flex-shrink-0 text-xs mr-2 ml-1 text-hy-main"},"("+e.toDisplayString(((Y=R.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",tM,[e.createVNode(F,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})],512),[[e.vShow,R.todayFile]])]),_:2},1032,["content"])]))]),"other-content":e.withCtx(({row:R})=>[e.renderSlot(T.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:R}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",nM,[R.type===3?(e.openBlock(),e.createBlock(pa,{key:0,device:R,onOnClickDevice:e.unref(w)},null,8,["device","onOnClickDevice"])):e.createCommentVNode("",!0),R.type!==3?(e.openBlock(),e.createBlock(U,{key:1,"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:R.companyName||R.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"w-full h-full flex items-center",onClick:Y=>e.unref(D)(R)},[e.createElementVNode("div",aM,[e.createElementVNode("span",null,e.toDisplayString(R.companyName||R.orgName),1)])],8,oM)]),_: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 lM(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 Pr(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 rM={class:"flex flex-col h-full text-xs"},iM={class:"flex items-center"},cM={class:"!w-[114px]"},dM={class:"text-hy-text-main"},pM={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},fM={class:"flex-grow w-0 flex items-center mr-1"},mM={class:"overflow-ellipsis overflow-hidden mx-1"},hM={class:"flex-shrink-0 flex items-center"},uM={key:0,class:"w-full"},_M={class:"w-full h-full flex items-center"},gM={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},yM={class:"flex-shrink-0 text-xs ml-1 mx-2 text-hy-main"},xM=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:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=lM({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"人员名称,部门名称筛选"}],E.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:"人员",value:5,placeholder:x("filterByPersonnelName")}),E.value=k.value[0].value),a.defaultGetData||h()}),(w,D)=>{const T=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),L=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),F=e.resolveComponent("el-input"),M=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",rM,[e.createElementVNode("div",iM,[e.createVNode(F,{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",dM,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(L,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",cM,[e.createVNode(B,{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(k),(z,U)=>(e.openBlock(),e.createBlock(T,{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",pM,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.name},{default:e.withCtx(()=>[e.createElementVNode("div",fM,[e.createVNode(L,{name:"icon-user",class:"!w-[14px] !h-[14px]"}),e.createElementVNode("div",mM,[e.createElementVNode("span",null,e.toDisplayString(z.name),1)])])]),_:2},1032,["content"]),z.todayFile?(e.openBlock(),e.createBlock(M,{key:0,class:"item","show-after":1e3,content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",hM,[e.createVNode(L,{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",uM,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",_M,[e.createElementVNode("div",gM,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)]),e.createElementVNode("span",yM,"("+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 Wr=(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))(Wr||{});ae.DeviceEnum=Wr,ae.HyAbnormalDetail=i2,ae.HyAcquisitionStationTree=Y8,ae.HyAddDepartmentType=rh,ae.HyAudioPlayer=br,ae.HyBoxBorder=$e,ae.HyCommonTaskDetailModal=vI,ae.HyDataTimeShortcuts=Bd,ae.HyDeviceDetails=Hu,ae.HyDeviceTree=zr,ae.HyDeviceTreeCpns=pa,ae.HyEditSpotCheck=v3,ae.HyElectronicFence=w1,ae.HyElectronicPatrolDetail=Vr,ae.HyFileDetails=vb,ae.HyFileUpload=QC,ae.HyImageViewer=Wo,ae.HyMapNoPermissions=Gt,ae.HyMapSearchPlace=na,ae.HyMenuComponents=Kf,ae.HyNoData=Zf,ae.HyOrgCascader=Tl,ae.HyOrgGroupTree=sM,ae.HyOrgTree=Ur,ae.HyRoundButton=Me,ae.HySelect=bf,ae.HySelectMapLocation=ow,ae.HySpotCheckDetail=B8,ae.HySvgIcon=Dl,ae.HyTable=Yt,ae.HyTableHead=_m,ae.HyTipsModal=mt,ae.HyUserHead=xt,ae.HyUserTree=xM,ae.HyVideoPlayer=oa,ae.HyVueCropper=Bl,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})});
55
+ </div>`;const R=c.marker(m.value,[M.lat,M.lng],{icon:U,zIndexOffset:10,iconAnchor:[9,18]});c.markerAddTo(m.value,R),_.value.push(R)});const F=c.polyline(m.value,L.map(M=>[M.lat,M.lng]),{width:4,color:"#5E9DB4",opacity:1});y.value.push(F)}function S(){p&&k.value&&e.nextTick(async()=>{const L=[a.value[0].lat,a.value[0].lng];m.value=await c.map("electronicPatrolDetailsMap",{maxZoom:f.maxZoom||18,minZoom:f.minZoom||5,zoom:f.zoom||13,center:L,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(L){u.value.taskExampleFn(L)}function $(L){N.value.show({recordId:L})}async function h(){const L=await Zu({id:l.value});L.code===200&&(n.value=L.data||{},t.value=n.value.deviceUser||{})}async function g(){const L=await Ju({id:l.value});if(L.code===200){const j=L.data||[];a.value=j.map((F,M)=>(M!==j.length-1&&(F.hadCheckv2=j[M+1].hadCheck),F))}}async function C(){const L=await Qu({id:l.value});if(L.code===200){s.value=L.data||{};const j=s.value.pointList;o.value=j.map((F,M)=>{if(M!==j.length-1){const z=j[M+1].checkState;z===1?F.backgroundName="hy-success":z===2?F.backgroundName="hy-danger":F.backgroundName="hy-text-secondary"}return F})}}function w(){m.value&&m.value.setFitView()}function D(L){r.value=L}function T(L){if(!L)return Se.error(`id ${x("theParametersAreWrongAndItFailsToOpen")}`);l.value=L,a.value=[],o.value=[],s.value={},n.value={},t.value={},D("pointTrail"),h().then(()=>{i.value=!0,g().then(()=>{S()})}),C()}function B(){i.value=!1}return{$t:x,dialogVisible:i,map:m,markerList:_,polylineList:y,viewTaskExampleRef:u,submissionFormRef:N,deviceUser:t,form:n,pointList:o,pointTrailList:a,taskExecute:s,taskId:l,abnormalState:r,markerClickFn:E,addMarker:b,initMap:S,viewTaskExampleShow:V,submissionFormShow:$,selectFn:h,pointTrailFn:g,deviceSctTaskExecute:C,setFitView:w,abnormalStateFn:D,show:T,onClose:B,tasklatAndlngType:k,isShowMap:p}}const gn=t=>(e.pushScopeId("data-v-c41097d4"),t=t(),e.popScopeId(),t),$S={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},BS={class:"absolute right-[12px] top-[12px]"},IS={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg relative z-10"},AS={class:"dialog_body"},LS={class:"ovh centerBox overflow-hidden flex items-center justify-center"},FS={class:"r-f navigation flex"},OS={class:"progress_box centerBox fs_12 text-[12px] flex justify-center items-center"},RS={key:0,class:"c_dangerv2 text-hy-danger"},PS={key:1,class:"c_success text-hy-success"},MS={key:2,class:"c_9DA7B2 text-hy-text-secondary"},US={key:3,class:"c_theme text-hy-text-primary"},zS={style:{width:"108px"},class:"plr_10 p-[0_10px]"},WS={class:"c_theme text-hy-text-primary"},jS={style:{height:"500px"},class:"fs_12 lh_20 text-[12px] leading-[20px]"},HS={class:"h_100vh r-f details flex h-full"},YS={class:"taskDetails fs_12 lh_20 flex-shrink text-[12px] leading-[20px]"},GS={class:"c_dangerv2 fw_600 fs_16 mb_10 text-hy-danger font-[600] text-[16px] mb-[10px]"},qS={key:0,class:"mb_10 mb-[10px]"},KS={class:"c_9DA7B2 text-hy-text-secondary"},XS=["innerHTML"],JS={class:"mb_10 mb-[10px]"},ZS={class:"c_9DA7B2 text-hy-text-secondary"},QS={class:"mb_10 mb-[10px]"},vS={class:"c_9DA7B2 text-hy-text-secondary"},eT={class:"mb_10 mb-[10px]"},tT={class:"c_9DA7B2 text-hy-text-secondary"},nT={key:1,class:"mb_10 mb-[10px]"},oT={class:"c_9DA7B2 text-hy-text-secondary"},aT={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)"}},sT={class:"fs_16 h_50 lh_50 pl_20 text-[16px] h-[50px] leading-[50px] pl-[20px]"},lT={class:"pos_r pl_10 relative pl-[10px]"},rT=gn(()=>e.createElementVNode("span",{class:"line"},null,-1)),iT={style:{"flex-grow":"1"},class:"centerBox flex items-center justify-center"},cT={class:"c_9DA7B2 tac lh_30 text-hy-text-secondary text-center leading-[30px]"},dT={class:"centerBox mb_10 mb-[10px] flex justify-center items-center"},pT={class:"c_fff fs_14 text-hy-text-main text-[14px]"},fT={class:"centerBox flex items-center justify-center"},mT={style:{"margin-left":"6px"}},hT={class:"r-f flex"},uT=gn(()=>e.createElementVNode("p",{class:"mlr_10 linev2 m-[0_10px]"},null,-1)),_T={class:"ecutionRecord"},gT={class:"flex_vertically_center pos_r relative flex items-center"},yT={class:"flex_vertically_center flex items-center"},xT={class:"mr_10 fs_14 mr-[10px] text-[14px]"},kT={key:0,class:"mr_10 status status_theme mr-[10px]"},NT={key:1,class:"mr_10 status mr-[10px]"},bT={key:2,class:"mr_10 status status_success mr-[10px]"},CT={key:3,class:"mr_10 status status_dangerv2 mr-[10px]"},wT={key:4,class:"mr_10 status status_dangerv2 mr-[10px]"},ET={key:5,class:"mr_10 status status_dangerv2 mr-[10px]"},ST={key:6,class:"mr_10 status status_success mr-[10px]"},TT=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)),DT={class:"c_9DA7B2 fw_600 text-hy-text-secondary font-[600]"},VT={class:"pointTrail r-f h_100vh flex h-full"},$T={class:"pointTrailList c_9DA7B2 text-hy-text-secondary"},BT=["onClick"],IT={class:"c_fff lh_30 pos_r text-hy-text-main leading-[30px] relative"},AT={class:"over_one_line truncate"},LT={key:1,class:"indexBox indexv2Box"},FT={class:"over_one_line truncate"},OT={class:"pos_r relative"},RT=gn(()=>e.createElementVNode("span",{class:"indexBox indexv2Box"},null,-1)),PT={key:0},MT={key:1,class:"text-auxiliary text-hy-text-secondary"},UT={class:"pos_r relative"},zT=gn(()=>e.createElementVNode("span",{class:"indexBox indexv2Box"},null,-1)),WT={class:"over_one_line truncate"},jT={class:"f-g flex-grow w-0 h-full rounded ml-4"},HT={key:0,class:"p-2 box-border w-full h-full rounded bg-hy-dialog-bg-2"},YT={key:1,id:"electronicPatrolDetailsMap",class:"w-full h-full"},GT={key:0,class:"p-2 box-border w-full h-full rounded bg-hy-dialog-bg-2 flex items-center justify-center"},qT={class:"flex flex-col items-center justify-center text-hy-text-secondary"},KT={class:"mt_10 mt-[10px]"},Vr=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:_,pointTrailList:y,markerClickFn:u,tasklatAndlngType:N,viewTaskExampleRef:k,submissionFormRef:E,isShowMap:b}=VS();return n({show:a}),(S,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]=T=>e.isRef(s)?s.value=T: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:!S.draggable,draggable:S.draggable,"modal-class":S.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",$S,[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("patrol")),1),e.createElementVNode("div",BS,[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",IS,[e.createElementVNode("div",AS,[e.createElementVNode("div",LS,[e.createElementVNode("ul",FS,[e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select cursor-pointer",{selectBox:e.unref(l)==="details"}]),onClick:V[0]||(V[0]=T=>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]=T=>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]=T=>e.unref(i)("pointTrail"))},e.toDisplayString(e.unref(o)("inspectionTrajectory")),3)])]),e.withDirectives(e.createElementVNode("div",OS,[e.unref(c).finishState===0?(e.openBlock(),e.createElementBlock("span",RS,e.toDisplayString(e.unref(o)("unfinished")),1)):e.unref(c).finishState===1?(e.openBlock(),e.createElementBlock("span",PS,e.toDisplayString(e.unref(o)("hasBeenCompleted")),1)):e.unref(c).finishState===2?(e.openBlock(),e.createElementBlock("span",MS,e.toDisplayString(e.unref(o)("notPerformed")),1)):e.unref(c).finishState===3?(e.openBlock(),e.createElementBlock("span",US,e.toDisplayString(e.unref(o)("execute")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",zS,[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",WS,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",jS,[e.withDirectives(e.createElementVNode("div",HS,[e.createElementVNode("div",YS,[e.createElementVNode("p",GS,e.toDisplayString(e.unref(p).taskName),1),e.unref(p).taskInfo?(e.openBlock(),e.createElementBlock("div",qS,[e.createElementVNode("p",KS,e.toDisplayString(e.unref(o)("taskDescription")),1),e.createElementVNode("p",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(p).taskInfo},null,8,XS)])):e.createCommentVNode("",!0),e.createElementVNode("div",JS,[e.createElementVNode("p",ZS,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",QS,[e.createElementVNode("p",vS,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",eT,[e.createElementVNode("p",tT,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",nT,[e.createElementVNode("p",oT,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",aT,[e.createElementVNode("div",sT,[e.createElementVNode("span",lT,[rT,e.createTextVNode(" "+e.toDisplayString(e.unref(o)("executiveInformation")),1)])]),e.createElementVNode("div",iT,[e.createElementVNode("div",cT,[e.createElementVNode("div",dT,[e.createVNode(xt,e.mergeProps({class:"w-[54px] h-[54px]"},{onlineState:!0}),null,16)]),e.createElementVNode("div",pT,e.toDisplayString(e.unref(d).name),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(d).orgName),1),e.createElementVNode("div",fT,[e.createVNode($,{name:"base-vehicle-electric-arc","class-name":"w-[16px] h-[16px]"}),e.createElementVNode("span",mT,e.toDisplayString(e.unref(d).phone),1)]),e.createElementVNode("div",hT,[e.createElementVNode("div",null,e.toDisplayString(e.unref(o)("shortNumber"))+e.toDisplayString(e.unref(d).jobNum),1),uT,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",_T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),(T,B)=>(e.openBlock(),e.createElementBlock("li",{key:B},[T.backgroundName?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`background: var(--${T.backgroundName});`),class:"line_box"},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",gT,[e.createElementVNode("div",{class:e.normalizeClass(["indexBox centerBox flex items-center justify-center",{indexBox_success:T.checkState===1,indexBox_dangerv2:T.checkState===2}])},[e.createElementVNode("p",{class:e.normalizeClass([`color_${T.checkState}`,"over_one_line truncate"])},e.toDisplayString(B+1),3)],2),e.createElementVNode("div",yT,[e.createElementVNode("span",xT,e.toDisplayString(T.pointName),1),T.hadCheck===1?(e.openBlock(),e.createElementBlock("span",kT,e.toDisplayString(e.unref(o)("haveBeenInspected")),1)):(e.openBlock(),e.createElementBlock("span",NT,e.toDisplayString(e.unref(o)("unpaidInspection")),1)),T.checkState===1?(e.openBlock(),e.createElementBlock("span",bT,e.toDisplayString(e.unref(o)("normal")),1)):T.checkState===2?(e.openBlock(),e.createElementBlock("span",CT,e.toDisplayString(e.unref(o)("abnormal")),1)):e.createCommentVNode("",!0),T.dealState===1&&T.checkState===2?(e.openBlock(),e.createElementBlock("span",wT,e.toDisplayString(e.unref(o)("pending")),1)):T.dealState===2&&T.checkState===2?(e.openBlock(),e.createElementBlock("span",ET,e.toDisplayString(e.unref(o)("processing")),1)):T.dealState===3&&T.checkState===2?(e.openBlock(),e.createElementBlock("span",ST,e.toDisplayString(e.unref(o)("solved")),1)):e.createCommentVNode("",!0)]),TT,e.createElementVNode("div",null,[T.recordId?(e.openBlock(),e.createBlock(g,{key:0,class:"button_function",onClick:L=>e.unref(m)(T.recordId)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("viewForm")),1)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),T.taskExample&&T.taskExample.exampleName?(e.openBlock(),e.createBlock(g,{key:1,class:"button_default",onClick:L=>e.unref(_)(T.taskExample)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("missionExample")),1)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)])]),e.createElementVNode("p",DT,e.toDisplayString(T.executeDtm),1)]))),128))],512),[[e.vShow,e.unref(l)==="ecutionRecord"]]),e.withDirectives(e.createElementVNode("div",VT,[e.createElementVNode("ul",$T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),(T,B)=>(e.openBlock(),e.createElementBlock("li",{key:`${B}pointTrailList`,class:"clickBox",onClick:L=>e.unref(u)(T)},[e.createElementVNode("div",IT,[T.hadCheck===1?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([T.checkState===1?"indexBox_success":"indexBox_dangerv2","indexBox centerBox flex items-center justify-center"])},[e.createElementVNode("p",AT,e.toDisplayString(B+1),1)],2)):(e.openBlock(),e.createElementBlock("span",LT)),e.createElementVNode("div",FT,e.toDisplayString(T.pointName),1)]),e.createElementVNode("div",OT,[RT,T.lng&&T.lat?(e.openBlock(),e.createElementBlock("span",PT,e.toDisplayString(T.lng)+","+e.toDisplayString(T.lat),1)):(e.openBlock(),e.createElementBlock("span",MT,e.toDisplayString(e.unref(o)("notSetUpLatitudeAndLongitude")),1))]),T.address?(e.openBlock(),e.createBlock(C,{key:0,class:"item",effect:"dark",content:T.address,placement:"bottom-start"},{default:e.withCtx(()=>[e.createElementVNode("div",UT,[zT,e.createElementVNode("div",WT,e.toDisplayString(T.address),1)])]),_:2},1032,["content"])):e.createCommentVNode("",!0)],8,BT))),128))]),e.createElementVNode("div",jT,[e.unref(b)?(e.openBlock(),e.createElementBlock("div",YT,[e.unref(N)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",GT,[e.createElementVNode("div",qT,[e.createVNode($,{name:"sys-icon-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",KT,e.toDisplayString(e.unref(o)("noSpecificAddressIsSetInThisInspectionTask")),1)])]))])):(e.openBlock(),e.createElementBlock("div",HT,[e.createVNode(Gt,{class:"!bg-hy-dialog-bg-3"})]))])],512),[[e.vShow,e.unref(l)==="pointTrail"]])]),e.createVNode(Tr,{ref_key:"submissionFormRef",ref:E,"form-type":2,draggable:S.draggable},null,8,["draggable"]),e.createVNode(Dr,{ref_key:"viewTaskExampleRef",ref:k,controller:"scrollCheck/scExample",draggable:S.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-c41097d4"]]);function XT({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([]),_=e.ref([]),y=e.ref(null),u=e.ref(null),N=e.ref(),k=e.computed(()=>_.value&&_.value.length?_.value:n.selectedByDefault&&n.selectedByDefault.length?n.selectedByDefault:[]);function E(C){return new Promise((w,D)=>{i.value="",y.value=w,_.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 S(){l.value=!1}function V(){u.value&&u.value.abort(),u.value=new AbortController}async function $(){const C=await Qf({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:_,successfulCallback:y,abortController:u,personnelTreeRef:N,initSelectedDeviceList:k,show:E,onSubmit:b,onClose:S,initAbortController:V,getData:$,onCheckTree:h,onSelectedData:g}}const JT={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},ZT={class:"absolute right-[12px] top-[12px]"},QT={class:"dialog_body percent-100 relative z-10",style:{"box-sizing":"border-box"}},vT={class:"h-[500px]"},eD={class:"mt-[20px] flex justify-center"},tD=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:_,selectedByDefaultv2:y}=XT({emit:s,props:a});return e.watch(()=>i.value,u=>{i.value=u.replace(/\s/g,"")}),e.onUnmounted(()=>{c.value&&c.value.abort()}),n({show:_}),(u,N)=>{const k=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button"),b=e.resolveComponent("el-dialog"),S=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(b,{modelValue:e.unref(r),"onUpdate:modelValue":N[0]||(N[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:!u.draggable,draggable:u.draggable,"modal-class":u.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",JT,[e.createElementVNode("span",null,e.toDisplayString(e.unref(l)("choicePersonnel")),1),e.createElementVNode("div",ZT,[e.createVNode(k,{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"])])])),[[S]])]),default:e.withCtx(()=>[e.createElementVNode("div",QT,[e.createElementVNode("div",vT,[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",eD,[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-72fb9883"]]);function nD({emit:t}){const n=e.ref([]),o=(D,T,B)=>{n.value.length?B():B(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([]),_=e.ref(),y=e.ref(),u=e.ref(),N=e.ref();function k(D){return new Promise((T,B)=>{D&&(r.value=T,i.value=D,p.value={taskName:null,taskInfo:null},l.value=[],n.value=[],_.value&&_.value.resetFields(),c.value=!0)})}function E(){_.value.validate(async D=>{if(D){const T=n.value.map(L=>({deviceUserId:L.id}));(await t_({...p.value,recordId:i.value,deviceUserList:T})).code===200&&(r.value&&r.value(),t("on-submit"),c.value=!1)}})}function b(D=[]){n.value=D,e.nextTick(()=>{_.value.validateField("assignUserList")}),V()}function S(){y.value.show(n.value).then(D=>{b(D)})}function V(){if(n.value&&n.value.length){const D=[];n.value.forEach(T=>{const B=D.findIndex(L=>L.orgId===T.orgId);B===-1?D.push({orgName:T.orgName,orgId:T.orgId,deviceUserList:[{...T}]}):D[B].deviceUserList.push({...T})}),l.value=D}else l.value=[]}function $(D,T){const B=n.value.findIndex(L=>L.orgId===D.orgId&&L.id===T.id);B!==-1&&(n.value.splice(B,1),V())}function h(){m.value.forEach((D,T)=>{const B=f.value.findIndex(L=>L.deviceId===D.deviceId);B!==-1&&f.value.splice(B,1)}),e.nextTick(()=>{m.value=[],u.value.clearSelection()})}function g(D){m.value=D}function C(){N.value.show([...f.value],D=>{f.value=[...D],u.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:_,rules:a,selectPersonnelRef:y,selectList:m,dialogVisible:c,tableData:l,tableColumns:d,assignUserList:n,activeNames:s,deviceIdList:f,personnelFn:V,personnelDeleteFn:$,selectPersonnelShow:S,onSubmit:E,show:k,deleteFn:h,onSelectCheckbox:g,selectDeviceTableShow:C,onClose:w,assignUserListFn:b}}const ca=t=>(e.pushScopeId("data-v-07e4e3ab"),t=t(),e.popScopeId(),t),oD={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},aD={class:"absolute right-[12px] top-[12px]"},sD={class:"deleteBox c_fff handlingException text-hy-text-main bg-hy-dialog-bg relative z-10"},lD={class:"dialog_body"},rD={class:"pb_20 pb-[20px]"},iD={class:"requiredTitle"},cD=ca(()=>e.createElementVNode("i",null,"*",-1)),dD={class:"requiredTitle"},pD=ca(()=>e.createElementVNode("i",null,"*",-1)),fD={class:"w-full"},mD={class:"r-f flex",style:{"justify-content":"space-between"}},hD={class:"requiredTitle"},uD=ca(()=>e.createElementVNode("i",null,"*",-1)),_D={class:"fs_12 text-[12px]"},gD={style:{height:"300px"}},yD={key:0,class:"mt_10 assignUserListBox mt-[10px]"},xD={class:"personnelTitle over_one_line fs_14 c_fff truncate text-[14px] text-hy-text-main"},kD={class:"fs_12 text-[12px]"},ND={class:"c_4477FF text-hy-text-primary"},bD={class:"fs_12 r-f personnelItem_box flex text-[12px]"},CD={class:"c_9DA7B2 text-hy-text-secondary"},wD=["onClick"],ED={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"},SD={class:"tac text-center"},TD={class:"mt_10 mt-[10px]"},DD={class:"operator-button centerBox mt_20 flex justify-center items-center mt-[20px]"},VD=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:_,activeNames:y,tableData:u,personnelDeleteFn:N,onSubmit:k,selectPersonnelRef:E}=nD({emit:a});return n({show:l}),(b,S)=>{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"),T=e.resolveComponent("el-row"),B=e.resolveComponent("el-form"),L=e.resolveComponent("el-dialog"),j=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(L,{modelValue:e.unref(r),"onUpdate:modelValue":S[4]||(S[4]=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:"860px",modal:!b.draggable,draggable:b.draggable,"modal-class":b.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",oD,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("abnormalTreatment")),1),e.createElementVNode("div",aD,[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",sD,[e.createElementVNode("div",lD,[e.createElementVNode("div",rD,[e.createVNode(B,{ref_key:"formRef",ref:p,"label-position":"top",model:e.unref(c),rules:e.unref(d),"label-width":"0px"},{default:e.withCtx(()=>[e.createVNode(T,{gutter:30},{default:e.withCtx(()=>[e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createVNode(h,{prop:"taskName"},{default:e.withCtx(()=>[e.createElementVNode("div",iD,[e.createTextVNode(e.toDisplayString(e.unref(s)("abnormalTask")),1),cD]),e.createVNode($,{modelValue:e.unref(c).taskName,"onUpdate:modelValue":S[0]||(S[0]=F=>e.unref(c).taskName=F),"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",dD,[e.createTextVNode(e.toDisplayString(e.unref(s)("taskDescription")),1),pD]),e.createVNode($,{modelValue:e.unref(c).taskInfo,"onUpdate:modelValue":S[1]||(S[1]=F=>e.unref(c).taskInfo=F),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",fD,[e.createElementVNode("div",mD,[e.createElementVNode("div",hD,[e.createTextVNode(e.toDisplayString(e.unref(s)("executiveStaff")),1),uD]),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:S[2]||(S[2]=F=>e.unref(_)([]))},{default:e.withCtx(()=>[e.createElementVNode("span",_D,e.toDisplayString(e.unref(s)("empty")),1)]),_:1})):e.createCommentVNode("",!0)])]),e.createElementVNode("div",gD,[e.unref(m).length?(e.openBlock(),e.createElementBlock("div",yD,[e.createVNode(D,{modelValue:e.unref(y),"onUpdate:modelValue":S[3]||(S[3]=F=>e.isRef(y)?y.value=F:null),accordion:"",class:"collapse-item__header_darkColor"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(F,M)=>(e.openBlock(),e.createBlock(w,{key:`${M}personnel`,class:"personnelBox",name:F.orgId},{title:e.withCtx(()=>[e.createElementVNode("div",xD,[e.createTextVNode(e.toDisplayString(F.orgName)+" ",1),e.createElementVNode("span",kD,[e.createElementVNode("span",ND,e.toDisplayString(F.deviceUserList.length),1),e.createTextVNode(e.toDisplayString(e.unref(s)("people")),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",bD,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.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",CD,"("+e.toDisplayString(z.jobNum)+")",1),e.createElementVNode("div",{class:"clickBox centerBox flex items-center justify-center cursor-pointer",onClick:R=>e.unref(N)(F,z)},[e.createVNode(V,{name:"base-delete","class-name":"w-[16px] h-[16px]"})],8,wD)]))),128))])]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])])):(e.openBlock(),e.createElementBlock("div",ED,[e.createElementVNode("div",SD,[e.createVNode(V,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",TD,e.toDisplayString(e.unref(s)("pleaseSelectExecutives")),1)])]))])])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),e.createElementVNode("div",DD,[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(k)},{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(tD,{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-07e4e3ab"]]);function $D({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}=Qt(),_=e.shallowRef(null),y=e.ref(null),u=e.ref(!1),N=e.ref(),k=e.ref(),E=e.ref(),b=e.ref();function S(R){N.value.show(R)}function V(R,Y,X){Y[X]=R}function $(R){k.value.show(R)}function h(){l.value.dealState===0||l.value.dealState===1||(E.value?E.value.getTableData():setTimeout(()=>{h()},500))}function g(R){a.value.orgId=R[R.length-1],e.nextTick(()=>{h()})}function C(R){b.value.show(R.id).then(()=>{F().then(()=>{h(),t("on-getData")})})}function w(R){if(R.del===1)return Se.error(x("theFileHasBeenDeletedAndCannotBeViewed-0"));R.fileType===1||R.fileType===2||R.fileType}function D(){d&&e.nextTick(async()=>{let R=[];const Y=ze.getCache("userInfo");Y.lng&&Y.lat&&(R=[Y.lat,Y.lng]),R.length===0&&(R=null),l.value.lng&&l.value.lat&&(R=[l.value.lat,l.value.lng]),_.value=await c.map("abnormalDetailsMap",{maxZoom:m.maxZoom||18,minZoom:m.minZoom||5,zoom:m.zoom||13,center:R,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:f,layerType:m.satelliteMap}),_.value.on("complete",()=>{console.log("加载完成"),T()})})}function T(){if(l.value.lng&&l.value.lat){console.log(l.value);const R=c.marker(_.value,[l.value.lat,l.value.lng],{icon:`<svg aria-hidden="true" class="svg-icon" style="width: 60px; height: 60px;">
56
+ <use data-v-19e5a669="" xlink:href="#icon-marker-abnormal"></use></svg>`,zIndexOffset:10,iconAnchor:[30,60]});c.markerAddTo(_.value,R),R.on("click",()=>{B(l.value)})}}function B(R,Y=18){c.setView(_.value,[R.lat,R.lng],18)}function L(R){s.value=R}async function j(){return new Promise(async(R,Y)=>{const X=await Al({recordId:i.value});X.code===200&&(r.value=X.data||{},r.value.imageList&&(r.value.imageListV2=r.value.imageList.map(P=>P.filePath)),R(0))})}async function F(){return new Promise(async(R,Y)=>{const X=await e_({id:i.value});if(X.code===200){const P=X.data||{};l.value=P,l.value.id=i.value,a.value.taskId=P.abnormalTaskId,R(0)}})}function M(){_.value=null}function z(R){if(!R)return Se.error(`recordId ${x("theParametersAreWrong")}`);i.value=R,M(),L("details"),a.value={taskId:null,reportState:null,orgId:null},j(),F().then(()=>{u.value=!0,e.nextTick(()=>{D(),h()})})}function U(){u.value=!1}return{$t:x,searchArr:n,tableColumns:o,requestParams:a,abnormalState:s,form:l,deviceReport:r,recordId:i,map:_,marker:y,dialogVisible:u,electronicPatrolDetailsRef:N,submissionFormRef:k,AppTableRef:E,handlingExceptionRef:b,isShowMap:d,taskDetailsShow:S,visibleChange:V,submissionFormShow:$,appTableGetData:h,orgCascaderOnChange:g,handlingExceptionShow:C,clickGroupItem:w,initMap:D,addMarker:T,pantoSomeWhere:B,abnormalStateFn:L,deviceReportFn:j,selectFn:F,emptyMap:M,show:z,onClose:U}}const BD=t=>(e.pushScopeId("data-v-73e74e7a"),t=t(),e.popScopeId(),t),ID={class:"pos_r dialog_header relative text-[18px] bg-hy-dialog-bg-1 text-center p-[20px] font-bold z-[1] font-['Helvetica']"},AD={class:"absolute right-[12px] top-[12px]"},LD={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg relative z-10"},FD={class:"dialog_body"},OD={class:"ovh centerBox overflow-hidden flex items-center justify-center"},RD={class:"r-f navigation flex"},PD={style:{height:"500px"},class:"c_fff fs_12 text-hy-text-main text-[12px]"},MD={class:"w_100vh h_100vh r-f details_box w-full h-full flex"},UD={class:"taskDetails lh_20 flex-shrink leading-[20px]"},zD={class:"c_dangerv2 fw_600 fs_16 mb_10 text-hy-danger font-[600] text-[16px] mb-[10px]"},WD={key:0,class:"mb_10 mb-[10px]"},jD={class:"c_9DA7B2 text-hy-text-secondary"},HD=["innerHTML"],YD={class:"mb_10 mb-[10px]"},GD={class:"c_9DA7B2 text-hy-text-secondary"},qD={class:"mb_10 mb-[10px]"},KD={class:"c_9DA7B2 text-hy-text-secondary"},XD={class:"mb_10 mb-[10px]"},JD={class:"c_9DA7B2 text-hy-text-secondary"},ZD={class:"mb_10 mb-[10px]"},QD={class:"c_9DA7B2 text-hy-text-secondary"},vD={class:"f-g c-f flex flex-col w-0 flex-grow"},eV={class:"h_40 lh_40 fs_14 h-[40px] leading-[40px] text-[14px]"},tV={class:"title"},nV={class:"w-full h-full relative overflow-hidden",style:{height:"0","flex-grow":"1","border-radius":"6px"}},oV=BD(()=>e.createElementVNode("div",{class:"relative z-[1] w-full h-full"},[e.createElementVNode("div",{id:"abnormalDetailsMap",class:"w_100vh w-full",style:{height:"0","flex-grow":"1","border-radius":"6px"}})],-1)),aV={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},sV={class:"information"},lV={class:"flex_vertically_center flex items-center"},rV={style:{"margin-left":"6px"}},iV={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},cV={class:"flex_vertically_center flex items-center"},dV={style:{"margin-left":"6px"}},pV={key:0,class:"type_box success"},fV={key:1,class:"type_box"},mV={class:"form"},hV={key:0},uV={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},_V={class:"r-f mb_10 flex_vertically_center flex items-center mb-[10px]"},gV={class:"mr_10 label flex-shrink mr-[10px]"},yV={class:"r-f flex_vertically_center flex items-center"},xV={class:"mr_10 label label_answer flex-shrink mr-[10px]"},kV={key:0,class:"c_theme text-hy-text-primary"},NV={key:1,class:"c_9DA7B2 text-hy-text-secondary"},bV={key:1},CV={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},wV={class:"group-item"},EV=["onClick"],SV={key:0,class:"c-f-i group-content r-f flex"},TV={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},DV=["src"],VV={key:1,style:{"flex-grow":"1"}},$V={class:"icon-box c-f-i flex"},BV={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},IV={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},AV={key:0,class:"information-type"},LV={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},FV={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},OV={key:0,class:"c_9DA7B2 text-hy-text-secondary"},RV={key:1},PV={key:1,class:"c-f-i group-content r-f flex"},MV={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 font-[600]"},GV={key:0,class:"c_9DA7B2 text-hy-text-secondary"},qV={key:1},KV={key:2,class:"c-f-i group-content r-f flex"},XV={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},JV=["src"],ZV={key:1,style:{"flex-grow":"1"}},QV={class:"icon-box c-f-i flex"},vV={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},e$={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},t$={key:0,class:"information-type"},n$={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},o$={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},a$={key:0,class:"c_9DA7B2 text-hy-text-secondary"},s$={key:1},l$={key:2},r$={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},i$={class:"group-item"},c$=["onClick"],d$={key:0,class:"c-f-i group-content r-f flex"},p$={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},f$=["src"],m$={key:1,style:{"flex-grow":"1"}},h$={class:"icon-box c-f-i flex"},u$={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},_$={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},g$={key:0,class:"information-type"},y$={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},x$={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},k$={key:0,class:"c_9DA7B2 text-hy-text-secondary"},N$={key:1},b$={key:1,class:"c-f-i group-content r-f flex"},C$={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$={key:2,class:"c-f-i group-content r-f flex"},A$={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},L$=["src"],F$={key:1,style:{"flex-grow":"1"}},O$={class:"icon-box c-f-i flex"},R$={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},P$={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},M$={key:0,class:"information-type"},U$={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},z$={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},W$={key:0,class:"c_9DA7B2 text-hy-text-secondary"},j$={key:1},H$={class:"c-f w_100vh h_100vh handling_box flex flex-col w-full h-full"},Y$={key:0,class:"h_100vh centerBox c_9DA7B2 noTaskSelected h-full flex items-center justify-center text-hy-text-secondary"},G$={class:"tac text-center"},q$={class:"mt_10 mt-[10px]"},K$={class:"fs_12 text-[12px]"},X$={key:1},J$={class:"progress_box centerBox fs_12 flex items-center justify-center text-[12px]"},Z$={key:0,class:"c_theme text-hy-text-primary"},Q$={key:1,class:"c_success text-hy-success"},v$={style:{width:"108px"},class:"plr_10 p-[0_10px]"},e2={class:"c_theme text-hy-text-primary"},t2={key:0,class:"r-f flex",style:{"flex-wrap":"wrap"}},n2={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},o2={key:1,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},a2={key:0,class:"c_theme text-hy-text-primary"},s2={key:1,class:"c_9DA7B2 text-hy-text-secondary"},l2={class:"pos_r relative"},r2={key:0,style:{cursor:"pointer"}},i2=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,isShowMap:i,handlingExceptionRef:c,electronicPatrolDetailsRef:p,submissionFormRef:d,onClose:f,abnormalState:m,AppTableRef:_,abnormalStateFn:y,form:u,taskDetailsShow:N,deviceReport:k,clickGroupItem:E,handlingExceptionShow:b,tableColumns:S,searchArr:V,requestParams:$,submissionFormShow:h,orgCascaderOnChange:g,appTableGetData:C,visibleChange:w}=$D({emit:a});return n({show:l}),(D,T)=>{const B=e.resolveComponent("svg-icon"),L=$t,j=e.resolveComponent("el-icon"),F=e.resolveComponent("el-button"),M=e.resolveComponent("el-progress"),z=e.resolveComponent("el-option"),U=e.resolveComponent("el-select"),R=Vl,Y=e.resolveComponent("el-dialog"),X=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(Y,{modelValue:e.unref(r),"onUpdate:modelValue":T[8]||(T[8]=P=>e.isRef(r)?r.value=P: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:!D.draggable,draggable:D.draggable,"modal-class":D.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",ID,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("abnormalDetail")),1),e.createElementVNode("div",AD,[e.createVNode(B,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(f),["stop"])},null,8,["onClick"])])])),[[X]])]),default:e.withCtx(()=>[e.createElementVNode("div",LD,[e.createElementVNode("div",FD,[e.createElementVNode("div",OD,[e.createElementVNode("ul",RD,[e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(m)==="details"}]),onClick:T[0]||(T[0]=P=>e.unref(y)("details"))},e.toDisplayString(e.unref(s)("abnormalDetails")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(m)==="form"}]),onClick:T[1]||(T[1]=P=>e.unref(y)("form"))},e.toDisplayString(e.unref(s)("abnormalForm")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(m)==="handling"}]),onClick:T[2]||(T[2]=P=>e.unref(y)("handling"))},e.toDisplayString(e.unref(s)("handling")),3)])]),e.createElementVNode("div",PD,[e.withDirectives(e.createElementVNode("div",MD,[e.createElementVNode("div",UD,[e.createElementVNode("p",zD,e.toDisplayString(e.unref(u).taskName),1),e.unref(u).taskInfo?(e.openBlock(),e.createElementBlock("div",WD,[e.createElementVNode("p",jD,e.toDisplayString(e.unref(s)("taskDescription")),1),e.createElementVNode("p",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(u).taskInfo},null,8,HD)])):e.createCommentVNode("",!0),e.createElementVNode("div",YD,[e.createElementVNode("p",GD,e.toDisplayString(e.unref(s)("implementRoute")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).lineName),1)]),e.createElementVNode("div",qD,[e.createElementVNode("p",KD,e.toDisplayString(e.unref(s)("abnormalLocation")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).pointName),1)]),e.createElementVNode("div",XD,[e.createElementVNode("p",JD,e.toDisplayString(e.unref(s)("executionTime")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).executeDtm),1)]),e.createElementVNode("div",ZD,[e.createElementVNode("p",QD,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:T[3]||(T[3]=P=>e.unref(N)(e.unref(u).sourceId))},[e.createElementVNode("span",null,e.toDisplayString(e.unref(u).sourceTaskName),1),e.createVNode(j,{class:"ml-[6px] !text-[14px] !text-hy-text-primary"},{default:e.withCtx(()=>[e.createVNode(L)]),_:1})])])]),e.createElementVNode("div",vD,[e.createElementVNode("div",eV,[e.createElementVNode("span",tV,e.toDisplayString(e.unref(s)("abnormalPosition")),1)]),e.createElementVNode("div",nV,[e.withDirectives(e.createVNode(Gt,{class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(i)]]),oV])]),e.withDirectives(e.createElementVNode("div",aV,[e.createElementVNode("div",sV,[e.createElementVNode("div",lV,[e.createVNode(B,{style:{width:"14px",height:"14px"},name:"base-user-online"}),e.createElementVNode("span",rV,[e.createTextVNode(e.toDisplayString(e.unref(k).name),1),e.unref(k).jobNum?(e.openBlock(),e.createElementBlock("span",iV,"("+e.toDisplayString(e.unref(k).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",cV,[e.createVNode(B,{name:"base-every-day-time","class-name":"w-[16px] h-[16px]"}),e.createElementVNode("span",dV,e.toDisplayString(e.unref(k).executeDtm),1)]),e.unref(k).checkState===1?(e.openBlock(),e.createElementBlock("div",pV,e.toDisplayString(e.unref(s)("normal")),1)):e.unref(k).checkState===2?(e.openBlock(),e.createElementBlock("div",fV,e.toDisplayString(e.unref(s)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",mV,[e.unref(k).formList&&e.unref(k).formList.length?(e.openBlock(),e.createElementBlock("div",hV,[e.createElementVNode("div",uV,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,(P,v)=>(e.openBlock(),e.createElementBlock("li",{key:v,class:"border-top ptb_10 p-[10px_0]"},[e.createElementVNode("div",_V,[e.createElementVNode("p",gV,e.toDisplayString(e.unref(s)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(P.optionTitle),1)]),e.createElementVNode("div",yV,[e.createElementVNode("p",xV,e.toDisplayString(e.unref(s)("answer")),1),P.optionValue?(e.openBlock(),e.createElementBlock("span",kV,e.toDisplayString(P.optionValue),1)):(e.openBlock(),e.createElementBlock("span",NV,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",bV,[e.createElementVNode("div",CV,e.toDisplayString(e.unref(s)("picture")),1),e.createElementVNode("div",wV,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k).imageList,P=>(e.openBlock(),e.createElementBlock("div",{key:P.id,onClick:v=>e.unref(E)(P)},[P.fileType===1?(e.openBlock(),e.createElementBlock("div",SV,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.filePath&&P.del!==1?(e.openBlock(),e.createElementBlock("div",TV,[e.createElementVNode("img",{src:P.filePath,class:"h_100vh h-full"},null,8,DV)])):(e.openBlock(),e.createElementBlock("div",VV,[e.createElementVNode("div",$V,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{style:{margin:"0 4px"},name:"menu-image","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",BV,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",IV,[P.type===1?(e.openBlock(),e.createElementBlock("div",AV,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",LV,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",FV," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",OV,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",RV,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):P.fileType===4?(e.openBlock(),e.createElementBlock("div",PV,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[e.createElementVNode("div",MV,[e.createElementVNode("div",UV,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{name:"menu-micphone","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{style:{"margin-left":"4px"},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:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",WV,[P.type===1?(e.openBlock(),e.createElementBlock("div",jV,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",HV,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",YV," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",GV,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",qV,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):P.fileType===2?(e.openBlock(),e.createElementBlock("div",KV,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.screenshot1?(e.openBlock(),e.createElementBlock("div",XV,[e.createElementVNode("img",{src:P.screenshot1,class:"h_100vh h-full"},null,8,JV)])):(e.openBlock(),e.createElementBlock("div",ZV,[e.createElementVNode("div",QV,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{style:{margin:"0 4px"},name:"menu-video","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{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:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",e$,[P.type===1?(e.openBlock(),e.createElementBlock("div",t$,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",n$,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",o$," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",a$,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",s$,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{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,EV))),128))])])):e.createCommentVNode("",!0),e.unref(k).videoList&&e.unref(k).videoList.length?(e.openBlock(),e.createElementBlock("div",l$,[e.createElementVNode("div",r$,e.toDisplayString(e.unref(s)("video")),1),e.createElementVNode("div",i$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k).videoList,P=>(e.openBlock(),e.createElementBlock("div",{key:P.id,onClick:v=>e.unref(E)(P)},[P.fileType===1?(e.openBlock(),e.createElementBlock("div",d$,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.filePath&&P.del!==1?(e.openBlock(),e.createElementBlock("div",p$,[e.createElementVNode("img",{src:P.filePath,class:"h_100vh h-full"},null,8,f$)])):(e.openBlock(),e.createElementBlock("div",m$,[e.createElementVNode("div",h$,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{style:{margin:"0 4px"},name:"menu-image","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",u$,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",_$,[P.type===1?(e.openBlock(),e.createElementBlock("div",g$,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",y$,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",x$," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",k$,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",N$,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):P.fileType===4?(e.openBlock(),e.createElementBlock("div",b$,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[e.createElementVNode("div",C$,[e.createElementVNode("div",w$,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{name:"menu-micphone","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{style:{"margin-left":"4px"},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:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",S$,[P.type===1?(e.openBlock(),e.createElementBlock("div",T$,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",D$,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",V$," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",$$,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",B$,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},"svg-name":"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):P.fileType===2?(e.openBlock(),e.createElementBlock("div",I$,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.screenshot1?(e.openBlock(),e.createElementBlock("div",A$,[e.createElementVNode("img",{src:P.screenshot1,class:"h_100vh h-full"},null,8,L$)])):(e.openBlock(),e.createElementBlock("div",F$,[e.createElementVNode("div",O$,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{style:{margin:"0 4px"},name:"menu-video","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",R$,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",P$,[P.type===1?(e.openBlock(),e.createElementBlock("div",M$,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",U$,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",z$," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",W$,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",j$,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{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,c$))),128))])])):e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(m)==="form"]]),e.withDirectives(e.createElementVNode("div",H$,[e.unref(u).dealState===0||e.unref(u).dealState===1?(e.openBlock(),e.createElementBlock("div",Y$,[e.createElementVNode("div",G$,[e.createVNode(B,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",q$,[e.unref(u).dealState===1?(e.openBlock(),e.createBlock(F,{key:0,class:"button_function",onClick:T[4]||(T[4]=P=>e.unref(b)(e.unref(u)))},{default:e.withCtx(()=>[e.createElementVNode("span",K$,e.toDisplayString(e.unref(s)("processedImmediately")),1)]),_:1})):(e.openBlock(),e.createElementBlock("span",X$,e.toDisplayString(e.unref(s)("noNeedToDealWith")),1))])])])):(e.openBlock(),e.createBlock(Yt,{key:1,ref_key:"AppTableRef",ref:_,"column-list":e.unref(S),"search-arr":e.unref(V),"default-get-data":!1,"req-url":"scrollCheck/abnormal/sctUser/page","search-form":e.unref($),height:"100%"},{tableLeft:e.withCtx(()=>[e.createElementVNode("div",J$,[e.unref(u).dealState===2?(e.openBlock(),e.createElementBlock("span",Z$,e.toDisplayString(e.unref(s)("execute")),1)):e.unref(u).dealState===3?(e.openBlock(),e.createElementBlock("span",Q$,e.toDisplayString(e.unref(s)("completed")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",v$,[e.createVNode(M,{class:e.normalizeClass({"progress-bar_outer":e.unref(u).taskProgress!==100}),"text-inside":!0,"stroke-width":16,status:e.unref(u).taskProgress!==100?"exception":"success",percentage:e.unref(u).taskProgress},null,8,["class","status","percentage"])]),e.createElementVNode("span",e2,e.toDisplayString(e.unref(u).finishNum||0)+"/"+e.toDisplayString(e.unref(u).totalNum||0),1)])]),userInformation:e.withCtx(({row:P})=>[P.name?(e.openBlock(),e.createElementBlock("div",t2,[e.createTextVNode(e.toDisplayString(P.name)+" ",1),P.jobNum?(e.openBlock(),e.createElementBlock("span",n2,"("+e.toDisplayString(P.jobNum)+")",1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",o2," -- "))]),reportState:e.withCtx(({row:P})=>[P.reportState===1?(e.openBlock(),e.createElementBlock("span",a2,e.toDisplayString(e.unref(s)("haveBeenReported")),1)):(e.openBlock(),e.createElementBlock("span",s2,e.toDisplayString(e.unref(s)("notReported")),1))]),operator:e.withCtx(({row:P})=>[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(s)("viewForm"),onClick:v=>e.unref(h)(P)},null,8,["tips","onClick"])]),orgHeader:e.withCtx(({column:P})=>[e.createVNode(Tl,{ref:"orgCascader","content-type":!0,onChange:T[5]||(T[5]=v=>e.unref(g)(v))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P.label),1)]),_:2},1536)]),reportStateHeader:e.withCtx(({column:P})=>[e.createElementVNode("div",l2,[e.createElementVNode("div",{style:e.normalizeStyle([{opacity:P.focusType?1:0,position:P.focusType?"relative":"absolute"},{top:"0",left:"0",right:"0",bottom:"0"}])},[e.createVNode(U,{modelValue:e.unref($).reportState,"onUpdate:modelValue":T[6]||(T[6]=v=>e.unref($).reportState=v),style:{width:"100%"},clearable:"",placeholder:P.label,onChange:T[7]||(T[7]=v=>e.unref(C)()),onVisibleChange:v=>e.unref(w)(v,P,"focusType")},{default:e.withCtx(()=>[e.createVNode(z,{label:e.unref(s)("notReported"),value:0},null,8,["label"]),e.createVNode(z,{label:e.unref(s)("haveBeenReported"),value:1},null,8,["label"])]),_:2},1032,["modelValue","placeholder","onVisibleChange"])],4),P.focusType?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",r2,[e.createVNode(j,null,{default:e.withCtx(()=>[e.createVNode(R)]),_:1}),e.createTextVNode(" "+e.toDisplayString(P.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($).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($).reportState===0]])]))])]),_:1},8,["column-list","search-arr","search-form"]))],512),[[e.vShow,e.unref(m)==="handling"]])],512),[[e.vShow,e.unref(m)==="details"]]),e.createVNode(VD,{ref_key:"handlingExceptionRef",ref:c,draggable:D.draggable},null,8,["draggable"]),e.createVNode(Tr,{ref_key:"submissionFormRef",ref:d,draggable:D.draggable},null,8,["draggable"]),e.createVNode(Vr,{ref_key:"electronicPatrolDetailsRef",ref:p,draggable:D.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-73e74e7a"]]);function c2(){const t=e.ref(!1),n=e.ref(),{H:o,POI:a,isShowMap:s,layersUrlList:l,mapConfig:r}=Qt(),i=e.shallowRef(),c=e.shallowRef();e.ref();const p=e.ref(""),d=[{label:"地理地址",value:1},{label:"部门名称",value:4}];function f({mapRailId:u}){n.value=u,t.value=!0,y()}function m(){t.value=!1}async function _(){p.value=null;const u=await xr({id:n.value});if(u.code===200){const N=u.data.pointList;p.value=u.data.railName;const k=[];N.forEach(E=>{k.push([E.lat,E.lng])}),c.value=o.polygon(i.value,k,{weight:6,color:"#FF33FF",opacity:.2,fillColor:"#1791fc",fillOpacity:.4}),o.fitBounds(i.value,k)}}function y(){e.nextTick(async()=>{let u=[];const N=ze.getCache("userInfo");N.lng&&N.lat&&(u=[N.lat,N.lng]),u.length===0&&(u=null),i.value=await o.map("locationArea_container",{maxZoom:r.maxZoom||18,minZoom:r.minZoom||5,zoom:r.zoom||13,center:u,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:l,layerType:r.satelliteMap}),i.value.on("complete",()=>{_()})})}return{dialogVisible:t,show:f,close:m,railName:p,POI:a,map:i,H:o,searchTypes:d}}const d2=t=>(e.pushScopeId("data-v-e3121b24"),t=t(),e.popScopeId(),t),p2={class:"w-full h-[560px] relative p-[10px] box-border"},f2=d2(()=>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)),m2={class:"absolute top-[20px] right-[20px] w-[300px] z-10"},h2={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"},u2={class:"flex"},_2={class:"flex justify-center items-center"},g2={style:{"margin-left":"8px"}},y2={class:"font-bold"},x2=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}=c2();return n({show:a}),(d,f)=>{const m=e.resolveComponent("el-button"),_=e.resolveComponent("svg-icon"),y=e.resolveComponent("el-dialog"),u=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(y,{modelValue:e.unref(o),"onUpdate:modelValue":f[0]||(f[0]=N=>e.isRef(o)?o.value=N: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",p2,[f2,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",m2,[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",h2,[e.createElementVNode("div",u2,[e.createElementVNode("div",null,[e.createElementVNode("span",_2,[e.createVNode(_,{name:"police-situation-ps-around",style:{width:"20px",height:"20px"}}),e.createElementVNode("span",g2,e.toDisplayString(e.unref(x)("currentPositioning")),1)])]),e.createElementVNode("div",y2,[e.createElementVNode("span",null,e.toDisplayString(e.unref(l)),1)])])])])]),_:1})),[[u]])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-e3121b24"]]),k2={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},N2=[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 b2(t,n){return e.openBlock(),e.createElementBlock("svg",k2,[...N2])}const $r={name:"ep-success-filled",render:b2},C2={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},w2=[e.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1)];function E2(t,n){return e.openBlock(),e.createElementBlock("svg",C2,[...w2])}const Br={name:"ep-caret-right",render:E2};function S2({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 _=f.deviceUserList,y=[];_.forEach(u=>{const N=y.findIndex(E=>E.orgId===u.orgId),k=u;k.key=Yn(1),N===-1?y.push({orgName:u.orgName,orgId:u.orgId,deviceUserList:[{...k}]}):y[N].deviceUserList.push({...k})}),s.value=y}else s.value=[];a.value=[],s.value.forEach(_=>{_.deviceUserList&&_.deviceUserList.length&&a.value.push(..._.deviceUserList)});const m=s.value[0];m&&c(m.orgId)}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,dataListRef:l,clickGroupItem:r,selectItemFn:i,activeNameFn:c,taskItemViewFn:p}}const T2={class:"r-f h_100vh flex h-full"},D2={class:"background_box information css-text-no-select"},V2=["onClick"],$2={style:{"margin-left":"4px"}},B2=["onClick"],I2={class:"flex-grow flex w-0"},A2={class:"over_one_line flex-grow w-0 truncate"},L2={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},F2={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},O2={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},R2={class:"flex_vertically_center mb_10 flex items-center mb-[10px]"},P2={class:"title_box pl_10 pl-[10px]"},M2={class:"c_9DA7B2 text-hy-text-secondary"},U2={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},z2={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},W2={class:"recordList fs_12 text-[12px] overflow-hidden"},j2={class:"actionList c_fff"},H2={key:0,class:"indexBox centerBox flex items-center justify-center"},Y2={key:1,class:"indexBoxv2 centerBox"},G2={class:"mediaFileList c_9DA7B2 text-hy-text-secondary"},q2={key:0,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},K2={key:1},X2=["onClick"],J2={class:"fileDel clickBox"},Z2={key:1,class:"file clickBox"},Q2={key:2,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},v2=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}=S2({props:o});return e.onMounted(()=>{c()}),n({taskItemViewFn:c}),(m,_)=>{const y=Br,u=e.resolveComponent("el-icon"),N=$t,k=e.resolveComponent("el-tooltip"),E=$r;return e.openBlock(),e.createElementBlock("div",T2,[e.createElementVNode("div",D2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(b,S)=>(e.openBlock(),e.createElementBlock("div",{key:`${S}deviceUserList`},[e.createElementVNode("div",{class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:V=>e.unref(p)(b.orgId)},[e.createVNode(u,{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",$2,e.toDisplayString(b.orgName),1)],8,V2),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",I2,[e.createElementVNode("div",A2,e.toDisplayString(V.deviceUserName),1),e.createElementVNode("span",L2," ("+e.toDisplayString(V.jobNum)+")",1)]),V.status===0?(e.openBlock(),e.createElementBlock("div",F2,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",O2,e.toDisplayString(e.unref(a)("finish")),1))],8,B2))),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",R2,[e.createElementVNode("div",P2,[e.createTextVNode(e.toDisplayString(b.deviceUserName)+" ",1),e.createElementVNode("span",M2,"("+e.toDisplayString(b.jobNum)+")",1)]),b.status===0?(e.openBlock(),e.createElementBlock("div",U2,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",z2,e.toDisplayString(e.unref(a)("finish")),1))]),e.createElementVNode("ul",W2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.recordList,(S,V)=>(e.openBlock(),e.createElementBlock("li",{key:`${V}recordList`,class:e.normalizeClass([`recordItem_${S.status}`,"background_box mb_10 ovh overflow-hidden mb-[10px]"])},[e.createElementVNode("div",j2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.actionList,($,h)=>(e.openBlock(),e.createElementBlock("div",{key:`${h}actionList`,class:"pos_r flex_vertically_center h_30 relative flex items-center h-[30px]",style:{"padding-left":"28px"}},[h===0?(e.openBlock(),e.createElementBlock("span",H2,e.toDisplayString(V+1),1)):(e.openBlock(),e.createElementBlock("span",Y2)),e.createElementVNode("span",null,e.toDisplayString($.actionDetail),1)]))),128))]),e.createElementVNode("div",G2,[S.status===0?(e.openBlock(),e.createElementBlock("div",q2,[e.createVNode(u,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(N)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("unfinishedTask")),1)])):S.status===1&&S.mediaFileList&&S.mediaFileList.length?(e.openBlock(),e.createElementBlock("div",K2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.mediaFileList,($,h)=>(e.openBlock(),e.createElementBlock("div",{key:`${h}mediaFileList`,class:"pos_r flex_vertically_center css-text-no-select mediaFile_item",onClick:g=>e.unref(f)($)},[e.createVNode(u,{class:"!text-hy-success icon_box"},{default:e.withCtx(()=>[e.createVNode(N)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("uploaded")),1),$.del===1?(e.openBlock(),e.createBlock(k,{key:0,class:"item",effect:"dark",content:e.unref(a)("theFileHasBeenDeletedAndCannotBeViewed"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",J2,e.toDisplayString($.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",Z2,e.toDisplayString($.fileName),1))],8,X2))),128))])):(e.openBlock(),e.createElementBlock("div",Q2,[e.createVNode(u,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(E)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("theTaskHasBeenCompletedWaitingForUploading")),1)]))])],2))),128))])]))),128))],512)])}}}),[["__scopeId","data-v-82696267"]]),eB={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},tB=[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 nB(t,n){return e.openBlock(),e.createElementBlock("svg",eB,[...tB])}const oB={name:"ep-clock",render:nB};function aB({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,_=[];m.forEach(y=>{const u=_.findIndex(k=>k.orgId===y.orgId),N=y;if(N.key=Yn(1),y.userReport){const k=y.userReport;N.urTemplateName=k.templateName,N.urSubmitDtm=k.submitDtm,N.urOptionList=k.optionList||[]}u===-1?_.push({orgName:y.orgName,orgId:y.orgId,deviceUserList:[{...N}]}):_[u].deviceUserList.push({...N})}),s.value=_}else s.value=[];a.value=[],s.value.forEach(m=>{m.deviceUserList&&m.deviceUserList.length&&a.value.push(...m.deviceUserList)});const f=s.value[0];f&&i(f.orgId)}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,reportListRef:l,selectItemFn:r,activeNameFn:i,taskItemViewFn:c}}const sB={class:"r-f h_100vh flex h-full"},lB={class:"background_box information css-text-no-select"},rB=["onClick"],iB={style:{"margin-left":"4px"}},cB=["onClick"],dB={class:"flex-grow flex w-0"},pB={class:"over_one_line flex-grow w-0 truncate"},fB={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},mB={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},hB={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},uB={key:0,ref:"reportListRef",class:"f-g reportList w-0 flex-grow"},_B={key:0,class:"background_box h_100vh lh_20 h-full leading-[20px]"},gB={class:"fs_14 plr_20 border-bottom mtb_10 m-[10px_0] p-[0_20px] text-[14px]"},yB={class:"flex_vertically_center flex items-center",style:{"justify-content":"space-between"}},xB={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},kB={class:"c_9DA7B2 r-f lh_30 flex leading-[30px] text-hy-text-secondary",style:{"justify-content":"space-between"}},NB={class:"flex_vertically_center flex items-center"},bB={style:{"margin-left":"4px"}},CB={style:{padding:"0 20px 10px"}},wB={class:"mb_10 r-f mb-[10px] flex"},EB={class:"mr_10 label flex-shrink mr-[10px]"},SB={class:"c_theme r-f flex text-hy-text-primary"},TB={class:"mr_10 label label_answer flex-shrink mr-[10px]"},DB={key:0,class:"c_theme text-hy-text-primary"},VB={key:1,class:"c_theme text-hy-text-primary"},$B={key:1,class:"background_box h_100vh c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary h-full"},BB={class:"fs_14 plr_20 border-bottom text-[14px] p-[0_20px]"},IB={class:"flex_vertically_center lh_40 flex items-center leading-[40px]",style:{"justify-content":"space-between"}},AB={class:"c_9DA7B2 text-hy-text-secondary"},LB={class:"tac ptb_20 p-[20px_0] text-center"},FB={class:"mt_10 mt-[10px]"},OB={key:0},RB={key:1},PB={key:2,class:"c_success text-hy-success"},MB=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}=aB({props:o});return e.onMounted(()=>{i()}),n({taskItemViewFn:i}),(d,f)=>{const m=Br,_=e.resolveComponent("el-icon"),y=oB,u=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",sB,[e.createElementVNode("div",lB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(N,k)=>(e.openBlock(),e.createElementBlock("div",{key:`${k}deviceUserList`},[e.createElementVNode("div",{class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:E=>e.unref(c)(N.orgId)},[e.createVNode(_,{style:e.normalizeStyle({transform:N.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",iB,e.toDisplayString(N.orgName),1)],8,rB),e.createElementVNode("div",{class:"transition_05",style:e.normalizeStyle({overflow:N.orgId===e.unref(r)?"inherit":"hidden",height:N.orgId===e.unref(r)?`${N.deviceUserList.length*40}px`:"0px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.deviceUserList,(E,b)=>(e.openBlock(),e.createElementBlock("div",{key:`${b}device`,class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:S=>e.unref(p)(E)},[e.createElementVNode("div",dB,[e.createElementVNode("div",pB,e.toDisplayString(E.deviceUserName),1),e.createElementVNode("span",fB," ("+e.toDisplayString(E.jobNum)+")",1)]),E.taskReportStatus===1?(e.openBlock(),e.createElementBlock("div",mB,e.toDisplayString(e.unref(a)("unfilled")),1)):E.taskReportStatus===2?(e.openBlock(),e.createElementBlock("div",hB,e.toDisplayString(e.unref(a)("haveBeenFilledIn")),1)):e.createCommentVNode("",!0)],8,cB))),128))],4)]))),128))]),e.unref(l)&&e.unref(l).length?(e.openBlock(),e.createElementBlock("div",uB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),N=>(e.openBlock(),e.createElementBlock("div",{key:N.key,ref_for:!0,ref:N.key,class:"background_box mb_10 mb-[10px]"},[N.userReport?(e.openBlock(),e.createElementBlock("div",_B,[e.createElementVNode("div",gB,[e.createElementVNode("div",yB,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(N.deviceUserName)+" ",1),e.createElementVNode("span",xB,"("+e.toDisplayString(N.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,N.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,N.status===1]])]),e.createElementVNode("div",kB,[e.createElementVNode("div",null,e.toDisplayString(N.urTemplateName),1),e.createElementVNode("div",NB,[e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(y)]),_:1}),e.createElementVNode("span",bB,e.toDisplayString(N.urSubmitDtm),1)])])]),e.createElementVNode("div",CB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.urOptionList,(k,E)=>(e.openBlock(),e.createElementBlock("div",{key:`${E}urOptionList`,class:"reportItem ptb_10 border-bottom p-[10px_0] text-[12px]"},[e.createElementVNode("div",wB,[e.createElementVNode("div",EB,e.toDisplayString(e.unref(a)("ask")),1),e.createTextVNode(" "+e.toDisplayString(k.optionTitle),1)]),e.createElementVNode("div",SB,[e.createElementVNode("div",TB,e.toDisplayString(e.unref(a)("answer")),1),k.optionValue?(e.openBlock(),e.createElementBlock("span",DB,e.toDisplayString(k.optionValue),1)):(e.openBlock(),e.createElementBlock("span",VB,e.toDisplayString(e.unref(a)("none")),1))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",$B,[e.createElementVNode("div",BB,[e.createElementVNode("div",IB,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(N.deviceUserName)+" ",1),e.createElementVNode("span",AB,"("+e.toDisplayString(N.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,N.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,N.status===1]])])]),e.createElementVNode("div",LB,[e.createVNode(u,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",FB,[N.taskReportStatus===0?(e.openBlock(),e.createElementBlock("span",OB,e.toDisplayString(e.unref(a)("noNeedToSubmitATaskReport")),1)):N.taskReportStatus===1?(e.openBlock(),e.createElementBlock("span",RB,e.toDisplayString(e.unref(a)("unpackTaskReport")),1)):N.taskReportStatus===2?(e.openBlock(),e.createElementBlock("span",PB,e.toDisplayString(e.unref(a)("submittedTaskReport")),1)):e.createCommentVNode("",!0)])])]))]))),128))],512)):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-4d03873f"]]);function UB({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(_=>{const y=_.actionList.map(u=>u.actionDetail);m.push({..._,key:_.id,actionDetail:y.toString()})}),a.value=m}else a.value=[]}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,dataListRef:l,clickGroupItem:r,selectItemFn:i,taskItemViewFn:c}}const zB={class:"r-f h_100vh h-full flex"},WB={class:"background_box information css-text-no-select"},jB=["onClick"],HB={class:"r-f f-g flex flex-grow w-0"},YB={class:"indexBox centerBox flex-shrink flex justify-center items-center",style:{left:"4px"}},GB={class:"over_one_line truncate"},qB={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},KB={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},XB={class:"recordList fs_12 text-[12px]"},JB={class:"actionList c_fff text-hy-text-main"},ZB={key:0,class:"indexBox centerBox flex justify-center items-center"},QB={key:1,class:"indexBoxv2 centerBox flex justify-center items-center"},vB={class:"mediaFileList"},eI={key:0},tI={class:"flex_vertically_center pos_r relative flex items-center"},nI={class:"c_fff text-hy-text-main"},oI={key:1},aI={class:"flex_vertically_center pos_r relative flex items-center"},sI={class:"c_fff text-hy-text-main"},lI=["onClick"],rI={class:"fileDel clickBox"},iI={key:1,class:"file clickBox"},cI={key:2},dI={class:"flex_vertically_center pos_r relative flex items-center"},pI={class:"c_fff text-hy-text-main"},fI=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}=UB({props:o});return e.onMounted(()=>{s()}),n({taskItemViewFn:s}),(p,d)=>{const f=$t,m=e.resolveComponent("el-icon"),_=$r,y=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",zB,[e.createElementVNode("div",WB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(u,N)=>(e.openBlock(),e.createElementBlock("div",{key:`${N}device`,class:"clickBox deviceItem background_box c_9DA7B2 flex_vertically_center pos_r relative flex items-center text-hy-text-secondary",onClick:k=>e.unref(r)(u)},[e.createElementVNode("div",HB,[e.createElementVNode("span",YB,e.toDisplayString(N+1),1),e.createElementVNode("span",GB,e.toDisplayString(u.actionDetail),1)]),u.status===0?(e.openBlock(),e.createElementBlock("div",qB,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",KB,e.toDisplayString(e.unref(a)("finish")),1))],8,jB))),128))]),e.createElementVNode("div",{ref_key:"dataListRef",ref:i,class:"content_box"},[e.createElementVNode("ul",XB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(u,N)=>(e.openBlock(),e.createElementBlock("li",{key:u.key,ref_for:!0,ref:u.key,class:e.normalizeClass([`recordItem_${u.status}`,"background_box mb_10 ovh overflow-hidden mb-[10px]"])},[e.createElementVNode("div",JB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.actionList,(k,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",ZB,e.toDisplayString(N+1),1)):(e.openBlock(),e.createElementBlock("span",QB)),e.createElementVNode("span",null,e.toDisplayString(k.actionDetail),1)]))),128))]),e.createElementVNode("div",vB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.recordList,(k,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]"},[k.status===0?(e.openBlock(),e.createElementBlock("div",eI,[e.createElementVNode("div",tI,[e.createVNode(m,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(f)]),_:1}),e.createElementVNode("span",nI,e.toDisplayString(k.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(k.jobNum)+")",1)]),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("unfinishedTask")),1)])):k.status===1&&k.mediaFileList&&k.mediaFileList.length?(e.openBlock(),e.createElementBlock("div",oI,[e.createElementVNode("div",aI,[e.createVNode(m,{class:"!text-hy-success icon_box"},{default:e.withCtx(()=>[e.createVNode(_)]),_:1}),e.createElementVNode("span",sI,e.toDisplayString(k.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(k.jobNum)+")",1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.mediaFileList,(b,S)=>(e.openBlock(),e.createElementBlock("div",{key:`${S}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",rI,e.toDisplayString(b.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",iI,e.toDisplayString(b.fileName),1))],8,lI))),128))])):(e.openBlock(),e.createElementBlock("div",cI,[e.createElementVNode("div",dI,[e.createVNode(m,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(_)]),_:1}),e.createElementVNode("span",pI,e.toDisplayString(k.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(k.jobNum)+")",1)]),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("theTaskHasBeenCompletedWaitingForUploading")),1)]))]))),128))])],2))),128))])],512)])}}}),[["__scopeId","data-v-85c188ed"]]);function mI(){const t=e.ref({}),n=e.ref(""),o=e.ref(1),a=e.ref(1),s=e.ref(!1),l=e.ref(),r=e.ref(),i=e.ref(),c=e.ref(),p=e.ref();function d(E){l.value.taskExampleFn(E)}function f(E){a.value=E}function m(E){if(!E){Se.error(x("checkTheTaskAreaWrong"));return}r.value.show({mapRailId:E})}function _(E){o.value=E,E===2&&(t.value.taskMode===2?f(2):f(1))}function y(){s.value=!1}function u(){return new Promise(async(E,b)=>{const S=await eS({id:n.value});S.code===200&&(t.value=S.data||{},E(0))})}function N(E=null){n.value=E,_(1),u().then(()=>{console.log(111),s.value=!0})}function k(){switch(o.value){case 1:u();break;case 2:a.value===1&&t.value.taskMode===1?i.value.taskItemViewFn():this.viewMode===2&&c.value.taskItemViewFn();break;case 3:p.value.taskItemViewFn();break}}return{$t:x,form:t,taskItemId:n,navigationType:o,viewMode:a,dialogVisible:s,viewTaskExampleRef:l,selectLocationAreaRef:r,peopleViewRef:i,taskViewRef:c,taskReportRef:p,viewTaskExampleShow:d,viewModeFn:f,seeTaskArea:m,navigationTypeFn:_,onClose:y,selectFn:u,show:N,onRefresh:k}}const hI={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold bg-hy-dialog-bg-1"},uI={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg-1 relative z-10"},_I={class:"dialog_body",style:{"padding-right":"0px"}},gI={class:"ovh centerBox flex items-center justify-center overflow-hidden"},yI={class:"r-f navigation flex"},xI={key:0,class:"r-f flex",style:{height:"540px"}},kI={class:"fs_12 lh_20 h_100vh background_box information text-[12px] leading-[20px] h-full"},NI={class:"fs_16 fw_600 lh_40 text-[16px] font-[600px] leading-[40px]"},bI={key:0,class:"mb_20 mb-[20px]"},CI={class:"c_9DA7B2 text-hy-text-secondary"},wI=["innerHTML"],EI={class:"mb_20 mb-[20px]"},SI={class:"c_9DA7B2 text-hy-text-secondary"},TI={class:"c_9DA7B2 text-hy-text-secondary"},DI={class:"mb_20 mb-[20px]"},VI={class:"c_9DA7B2 text-hy-text-secondary"},$I={class:"h_100vh content_box h-full"},BI={class:"flex_vertically_center title_box flex items-center"},II={class:"pos_r relative"},AI={class:"fs_12"},LI={class:"actionList"},FI={key:0},OI=["onClick"],RI={key:1,class:"c-f flex flex-col",style:{height:"540px"}},PI={class:"fs_12 r-f mb_10 flex text-[12px] mb-[10px]",style:{"justify-content":"space-between","padding-right":"30px"}},MI={class:"lh_20 flex_vertically_center flex items-center leading-[20px]"},UI={key:0,class:"c_dangerv2 text-hy-danger"},zI={key:1,class:"c_success text-hy-success"},WI={key:2,class:"c_9DA7B2 text-hy-text-secondary"},jI={key:3,class:"c_theme text-hy-text-primary"},HI={style:{width:"108px"},class:"plr_10 p-[0_10px]"},YI={class:"c_theme text-hy-text-primary"},GI={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},qI={class:"centerBox flex justify-center items-center"},KI={style:{"margin-left":"6px"}},XI={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary flex items-center"},JI={class:"centerBox flex justify-center items-center"},ZI={style:{"margin-left":"6px"}},QI={style:{"flex-grow":"1",height:"0"}},vI=be(e.defineComponent({__name:"common-task-detail",props:{draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const{$t:o,viewTaskExampleRef:a,selectLocationAreaRef:s,taskReportRef:l,taskViewRef:r,peopleViewRef:i,show:c,dialogVisible:p,navigationType:d,form:f,viewMode:m,taskItemId:_,viewModeFn:y,viewTaskExampleShow:u,seeTaskArea:N,navigationTypeFn:k,onRefresh:E,onClose:b}=mI();return n({show:c}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-button"),g=e.resolveComponent("el-progress"),C=$t,w=e.resolveComponent("el-icon"),D=e.resolveComponent("el-dialog"),T=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(D,{modelValue:e.unref(p),"onUpdate:modelValue":V[7]||(V[7]=B=>e.isRef(p)?p.value=B:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"900px",modal:!S.draggable,draggable:S.draggable,"modal-class":S.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",hI,[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]=(...B)=>e.unref(E)&&e.unref(E)(...B))},[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]=(...B)=>e.unref(b)&&e.unref(b)(...B))},[e.createVNode($,{name:"sys-button-close",style:{width:"26px",height:"26px"},"class-name":"text-hy-text-danger"})])])])),[[T]])]),default:e.withCtx(()=>[e.createElementVNode("div",uI,[e.createElementVNode("div",_I,[e.createVNode(x2,{ref_key:"selectLocationAreaRef",ref:s,draggable:!1},null,512),e.createElementVNode("div",gI,[e.createElementVNode("ul",yI,[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]=B=>e.unref(k)(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]=B=>e.unref(k)(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]=B=>e.unref(k)(3))},e.toDisplayString(e.unref(o)("missionReport")),3)):e.createCommentVNode("",!0)])]),e.unref(d)===1?(e.openBlock(),e.createElementBlock("div",xI,[e.createElementVNode("div",kI,[e.createElementVNode("div",NI,e.toDisplayString(e.unref(f).taskAction),1),e.unref(f).taskDesc?(e.openBlock(),e.createElementBlock("div",bI,[e.createElementVNode("div",CI,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,wI)])):e.createCommentVNode("",!0),e.createElementVNode("div",EI,[e.createElementVNode("div",SI,e.toDisplayString(e.unref(o)("executionTime")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(f).executeDtmStr)+" ",1),e.createElementVNode("span",TI,"("+e.toDisplayString(e.unref(f).taskDateStartTime)+" ~ "+e.toDisplayString(e.unref(f).taskDateEndTime)+")",1)])]),e.createElementVNode("div",DI,[e.createElementVNode("div",VI,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",$I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f).opList,(B,L)=>(e.openBlock(),e.createElementBlock("li",{key:`${L}opList`,class:"background_box ovh overflow-hidden"},[e.createElementVNode("div",BI,[e.createElementVNode("div",II,[e.createTextVNode(e.toDisplayString(e.unref(o)("first"))+e.toDisplayString(L+1)+e.toDisplayString(e.unref(o)("strip"))+" ",1),e.createElementVNode("span",null,e.toDisplayString(B.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(N)(B.mapRailId)},{default:e.withCtx(()=>[e.createElementVNode("span",AI,e.toDisplayString(e.unref(o)("missionArea")),1)]),_:2},1032,["onClick"])]),e.createElementVNode("ul",LI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.actionList,(j,F)=>(e.openBlock(),e.createElementBlock("li",{key:`${F}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",FI,'"'+e.toDisplayString(j.taskAction)+'"',1)):e.createCommentVNode("",!0)]),B.taskExample&&B.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:M=>e.unref(u)(B.taskExample)},e.toDisplayString(e.unref(o)("viewExample")),9,OI)):e.createCommentVNode("",!0)]))),128))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",RI,[e.withDirectives(e.createElementVNode("div",PI,[e.createElementVNode("div",MI,[e.unref(f).status===0?(e.openBlock(),e.createElementBlock("span",UI,e.toDisplayString(e.unref(o)("unfinished")),1)):e.unref(f).status===1?(e.openBlock(),e.createElementBlock("span",zI,e.toDisplayString(e.unref(o)("hasBeenCompleted")),1)):e.unref(f).status===2?(e.openBlock(),e.createElementBlock("span",WI,e.toDisplayString(e.unref(o)("notPerformed")),1)):e.unref(f).status===3?(e.openBlock(),e.createElementBlock("span",jI,e.toDisplayString(e.unref(o)("execute")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",HI,[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",YI,e.toDisplayString(e.unref(f).finishNum||0)+"/"+e.toDisplayString(e.unref(f).totalNum||0),1)]),e.withDirectives(e.createElementVNode("div",GI,[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]=B=>e.unref(y)(2))},{default:e.withCtx(()=>[e.createElementVNode("div",qI,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-download-task"}),e.createElementVNode("span",KI,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",XI,[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]=B=>e.unref(y)(1))},{default:e.withCtx(()=>[e.createElementVNode("div",JI,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-user-online"}),e.createElementVNode("span",ZI,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",QI,[e.unref(d)===2&&e.unref(m)===1&&e.unref(f).taskMode===1?(e.openBlock(),e.createBlock(v2,{key:0,ref_key:"peopleViewRef",ref:i,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.createCommentVNode("",!0),e.unref(d)===2&&e.unref(m)===2?(e.openBlock(),e.createBlock(fI,{key:1,ref_key:"taskViewRef",ref:r,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.unref(d)===3?(e.openBlock(),e.createBlock(MB,{key:2,ref_key:"taskReportRef",ref:l,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.createCommentVNode("",!0)])])),e.createVNode(Dr,{ref_key:"viewTaskExampleRef",ref:a,draggable:S.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-8b3c65a6"]]),eA={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},tA=[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 nA(t,n){return e.openBlock(),e.createElementBlock("svg",eA,[...tA])}const oA={name:"ep-arrow-down",render:nA},aA={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},sA=[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 lA(t,n){return e.openBlock(),e.createElementBlock("svg",aA,[...sA])}const rA={name:"ep-arrow-up",render:lA},iA={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},cA=[e.createElementVNode("path",{fill:"currentColor",d:"M672 192L288 511.936L672 832z"},null,-1)];function dA(t,n){return e.openBlock(),e.createElementBlock("svg",iA,[...cA])}const pA={name:"ep-caret-left",render:dA};function Ir(t){return oe.post({url:"spotCheck/task/detail",data:t,isFormData:!0})}function fA(t){return oe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function mA(t){return oe.post({url:"spotCheck/task/end",data:t,isFormData:!0})}function hA(t){return oe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function uA(t){return oe.post({url:t.id?"spotCheck/timing/update":"spotCheck/timing/insert",data:t,isJson:!0})}function _A(t){return oe.post({url:"spotCheck/template/detail",data:t,isFormData:!0})}function gA(t){return oe.post({url:t.id?"spotCheck/template/update":"spotCheck/template/insert",data:t,isJson:!0})}function yA(t){return oe.post({url:"spotCheck/task/taskExecute",data:t,isJson:!0})}function Ar(t){return oe.post({url:"spotCheck/task/pttFile/page",data:t,isFormData:!0})}function xA(t){return oe.post({url:"spotCheck/task/groupBind",data:t,isJson:!0})}function kA({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(N){const{deviceId:k,checkStatus:E}=N||{};if(!k)return;const b=p.value.findIndex(S=>S.deviceId===k);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 N=0,k=0,E=0,b=0,S=0,V=0;p.value.forEach($=>{const h=$.checkStatus,g=$.intercomGroupTem,C=$.onlineState;switch(g===1&&V++,C===2&&S++,h){case 1:N++;break;case 2:k++;break;case 3:E++;break;case 4:b++;break}}),e.nextTick(()=>{a.value=N,s.value=k,l.value=E,r.value=b,i.value=S,c.value=V,m()})}function m(){n("on-countStatus",{beReceiveNum:a.value,receivingNum:s.value,finishNum:l.value,notFinishNum:r.value,offLineNum:i.value,intercomGroupTemNum:c.value})}function _(){o.value}function y(){}async function u(N){const{code:k,data:E=[]}=await fA({taskId:t.form.id,checkStatus:N||null});k===200&&(p.value=E,t.subscribeStatus&&f(),n("change",p.value))}return{uniqueId:o,beReceiveNum:a,receivingNum:s,finishNum:l,notFinishNum:r,offLineNum:i,intercomGroupTemNum:c,taskDeviceList:p,setDeviceStatus:d,initDeviceStatusList:f,onCountStatus:m,spotCheckSubscribe:_,spotCheckUnsubscribe:y,getData:u}}const NA={class:"h-[58px] bg-hy-dialog-bg-2 border border-box border-hy-border-2 rounded px-2 box-border flex items-center"},bA={class:"relative"},CA={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"},wA={class:"scale-75"},EA={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"},SA={class:"flex-grow w-0 flex"},TA={class:"mx-2 flex-grow w-0"},DA={class:"truncate"},VA={class:"text-hy-text-secondary truncate"},$A={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"},BA={class:"r-f tac flex items-center justify-center flex-col"},IA={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}=kA({props:o,emit:a});return e.onMounted(()=>{r.value=o.form.uniqueId,o.subscribeStatus&&i(),c()}),e.onUnmounted(()=>{l()}),(p,d)=>{const f=e.resolveComponent("el-tooltip"),m=e.resolveComponent("svg-icon"),_=e.resolveComponent("el-col"),y=e.resolveComponent("el-row");return e.openBlock(),e.createBlock(y,{gutter:8,class:"h-full"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),u=>(e.openBlock(),e.createBlock(_,{key:u.id,span:p.paramsSpan,class:"mb-2"},{default:e.withCtx(()=>[e.createElementVNode("div",NA,[e.createElementVNode("div",bA,[e.createVNode(xt,{class:"w-[36px] h-[36px]"}),u.intercomGroupTem===1?(e.openBlock(),e.createBlock(f,{key:0,class:"item",effect:"dark",content:e.unref(x)("theDeviceWasInATemporaryGroupWhenTheSpotCheckWasInitiated"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",CA,[e.createElementVNode("span",wA,e.toDisplayString(e.unref(x)("lin")),1)])]),_:1},8,["content"])):u.onlineState===2?(e.openBlock(),e.createBlock(f,{key:1,class:"item",effect:"dark",content:e.unref(x)("theDeviceWasOfflineWhenTheSpotCheckWasInitiated"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",EA,[e.createVNode(m,{name:"icon-off-line","class-name":"!w-[10px] !h-[14px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",SA,[e.createElementVNode("div",TA,[e.createElementVNode("p",DA,e.toDisplayString(u.devName),1),e.createElementVNode("p",VA,e.toDisplayString(u.deviceId),1)]),e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",{class:"border-info bg-hy-info/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(x)("toBeReceived-1")),513),[[e.vShow,u.checkStatus===1]]),e.withDirectives(e.createElementVNode("div",{class:"border-warning bg-hy-warning/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(x)("receiving-1")),513),[[e.vShow,u.checkStatus===2]]),e.withDirectives(e.createElementVNode("div",{class:"w-[54px] border-success bg-hy-success/50 border rounded px-2 flex items-center justify-center h-[24px] box-border whitespace-nowrap"},e.toDisplayString(e.unref(x)("completed-0")),513),[[e.vShow,u.checkStatus===3]]),e.withDirectives(e.createElementVNode("div",{class:"border-hy-danger bg-hy-danger/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(x)("uncompleted-0")),513),[[e.vShow,u.checkStatus===4]])])])])]),_:2},1032,["span"]))),128)),e.unref(s).length===0?(e.openBlock(),e.createBlock(_,{key:0,span:24,class:"h-full"},{default:e.withCtx(()=>[e.createElementVNode("div",$A,[e.createElementVNode("div",BA,[e.createVNode(m,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",IA,e.toDisplayString(e.unref(x)("noData")),1)])])]),_:1})):e.createCommentVNode("",!0)]),_:1})}}});function AA({props:t}){const n=e.ref(null),o=e.ref(""),a=e.ref(!1),s=e.ref(null),l=e.ref(0),r=e.ref(0),i=e.ref([]),c=e.ref(null),p=e.ref(null),d=e.ref(null),f=e.ref(!0),m=e.ref(null),_=e.ref(),y=e.ref();function u(){n.value=t.orgGroupInsertTemp.id,i.value=[],f.value=!0,k(),e.nextTick(()=>{V()})}function N(){if(!t.realtimeRequestType)return;const C=async()=>{const w=i.value[i.value.length-1];if(!w){C();return}const D={page:0,taskId:t.taskId,largeThenTimestamp:w.fileTimestamp},T=c.value.scrollTop,B=c.value.offsetHeight-46,L=document.querySelector(`#item-${w.id}`);if(L){const j=L.offsetTop,F=await Ar(D);if(F.code===200){const{content:M=[],totalElements:z=0}=F.data;l.value=z,e.nextTick(()=>{M.forEach(U=>{i.value.findIndex(Y=>Y.id===U.id)===-1&&i.value.push(U)}),T>=j-B&&S()})}}};m.value&&clearInterval(m.value),m.value=setInterval(()=>{C()},1e4)}async function k(){var B;let C=null;i.value.length&&(C=i[0].value.id);const D={page:0,taskId:t.taskId,lessThenTimestamp:(B=i.value[0])==null?void 0:B.fileTimestamp};s.value=null,a.value=!0,N();const T=await Ar(D);if(T.code===200){const{content:L=[],totalElements:j=0}=T.data;l.value=j,e.nextTick(()=>{var F;C?L.forEach(M=>{const z=i.value.findIndex(U=>U.id===M.id);M.fileDtmEnd||(M.fileDtmEnd=""),z===-1&&i.value.unshift(M)}):i.value=L.reverse(),C?(E(C),s.value=(F=i.value[this.chatMessageList.length-1])==null?void 0:F.id):S(),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&&k()}function S(){e.nextTick(()=>{c.value.scrollTo(0,c.value.scrollHeight)})}function V(){c.value=_.value,p.value=y.value,p.value.addEventListener("ended",()=>{h(),d.value=null}),c.value.onscroll=()=>{c.value.scrollTop===0&&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:_,audioElRef:y,init:u,getNewData:N,getData:k,scrollToMsg:E,topEvent:b,scrollToBottom:S,initScrollList:V,audioPlay:$,audioPause:h,getAudioContext:g}}const LA=["element-loading-text"],FA={key:0,class:"w-full h-full flex box-border items-center justify-center text-center text-hy-text-secondary"},OA={class:""},RA={class:"mt-5"},PA=["id"],MA={key:0,class:"min-w-[72px] p-1 bg-hy-dialog-bg-4 text-center rounded mb-2"},UA={key:1,class:"h-[50px] flex items-center w-full"},zA={class:"mr-2 flex-grow w-0 flex flex-col items-end"},WA={class:"w-full flex items-center justify-end"},jA=["onClick"],HA=["onClick"],YA={class:"font-bold flex-shrink-0"},GA={class:"flex-shrink-0 ml-1"},qA={key:0},KA={key:2,class:"h-[50px] flex items-center w-full"},XA={class:"ml-2 flex-grow w-0 flex flex-col items-start"},JA={class:"w-full flex items-center"},ZA=["onClick"],QA={class:"flex-shrink-0 mr-1"},vA={key:0},eL={class:"font-bold flex-shrink-0"},tL=["onClick"],nL=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}=AA({props:n});return e.onMounted(()=>{p()}),e.onUnmounted(()=>{d.value&&clearInterval(d.value)}),(_,y)=>{const u=e.resolveComponent("svg-icon"),N=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",FA,[e.createElementVNode("div",OA,[e.createElementVNode("div",null,[e.createVNode(u,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"})]),e.createElementVNode("div",RA,[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),(k,E)=>(e.openBlock(),e.createElementBlock("div",{id:`item-${k.id}`,key:k.id,class:"p-2 box-border flex flex-col items-center"},[k.fileDtmEnd.split(" ")[0]!==(E>0&&e.unref(l)[E-1].fileDtmEnd.split(" ")[0])?(e.openBlock(),e.createElementBlock("div",MA,e.toDisplayString(k.fileDtmEnd.split(" ")[0]),1)):e.createCommentVNode("",!0),k.devUserId===o.id?(e.openBlock(),e.createElementBlock("div",UA,[e.createElementVNode("div",zA,[e.createElementVNode("div",null,e.toDisplayString(k.devUserName)+" ("+e.toDisplayString(k.serialNum||k.devUserId)+") ",1),e.createElementVNode("div",WA,[e.unref(r)===k.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)(k.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,jA)):e.createCommentVNode("",!0),e.createElementVNode("div",{style:e.normalizeStyle({width:k.audioLength>=60?"70%":`calc(${k.audioLength/60*90}px + 160px)`,background:e.unref(r)===k.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)===k.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)(k.mediaFileId)},[e.createElementVNode("div",YA,e.toDisplayString(k.audioLength)+"” ",1),e.createElementVNode("div",GA,[k.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",qA,e.toDisplayString(k.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)])],14,HA)])]),e.createVNode(xt,{class:"w-[32px] h-[32px]"})])):(e.openBlock(),e.createElementBlock("div",KA,[e.createVNode(xt,{class:"w-[32px] h-[32px]"}),e.createElementVNode("div",XA,[e.createElementVNode("div",null,e.toDisplayString(k.devUserName)+" ("+e.toDisplayString(k.serialNum||k.devUserId)+") ",1),e.createElementVNode("div",JA,[e.createElementVNode("div",{style:e.normalizeStyle({width:k.audioLength>=60?"70%":`calc(${k.audioLength/60*90}px + 160px)`,background:e.unref(r)===k.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)===k.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)(k.mediaFileId)},[e.createElementVNode("div",QA,[k.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",vA,e.toDisplayString(k.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",eL,e.toDisplayString(k.audioLength)+"” ",1)],14,ZA),e.unref(r)===k.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)(k.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,tL)):e.createCommentVNode("",!0)])])]))],8,PA))),128))],512)],8,LA)),[[N,e.unref(s)]])}}});function oL(){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 xA({groupId:o.value,taskId:t.value.id})}function d(){var h;l.value.length!==0&&((h=c.value)==null||h.orgGroupInsertTempFn([...l.value],{openRecording:1}).then(g=>{o.value=g,e.nextTick(()=>{p()}),_(!1)}).catch(()=>{o.value=null,n.value=!0,_(!1)}))}function f(h=[]){l.value=h,_(!1),t.value.checkStyle===2&&d()}function m(h={}){const{beReceiveNum:g=0,receivingNum:C=0,finishNum:w=0,notFinishNum:D=0,offLineNum:T=0,intercomGroupTemNum:B=0}=h;t.value.beReceiveNum=g,t.value.receivingNum=C,t.value.finishNum=w,t.value.notFinishNum=D,t.value.offLineNum=T,t.value.intercomGroupTemNum=B}function _(h){s.value=h}function y(){r.value=!r.value}async function u(h){const{code:g,data:C={}}=await Ir({id:h});g===200&&(t.value={...C},t.value.checkNum===0&&f([]),t.value.checkStyle===2&&(t.value.actionType=null),N(!0))}function N(h){i.value=h}function k(){}function E(h){if(i.value){Se.warning(x("currentlySpotCheckInProgressPleaseProcessLater"));return}o.value=null,n.value=!1,t.value={},_(!0),u(h)}function b(){i.value=!1}function S(){mt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("cancelSpotCheck"),tipsContent:`<div><p>${x("confirmToCancelThisSpotCheck")}?</p><p>${this.$t("cancelMidwayYouWillNotBeAbleToRetrieveOrViewAnyInformationOfThisSpotCheck")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("returnToSpotCheck"),submitBtnText:x("cancelSpotCheck"),submitBtnType:"danger"},()=>{$(3)})}function V(){let h=x("afterTheCheck,YouCanViewTheSpotCheckInformationInTheSpotCheckModule");(t.value.beReceiveNum!==0||t.value.receivingNum!==0)&&(h=x("thereAreStillDevicesInTheReceivingProcessTheSystemWillMarkTheseDevicesAsUnfinished")),mt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("endSpotCheck"),tipsContent:`<div><p>${x("confirmToEndThisSpotCheck")}?</p><p>${h}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("returnToSpotCheck"),submitBtnText:x("endSpotCheck")},()=>{$(2)})}async function $(h){var C;const{code:g}=await mA({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:_,setMsgContentType:y,setDialogVisible:N,show:E,close:b,onClose:S,onSubmit:V,taskEnd:$,setDragLevel:k,$t:x}}const aL=t=>(e.pushScopeId("data-v-e246ad8e"),t=t(),e.popScopeId(),t),sL={class:"el-dialog__header !p-0"},lL={class:"el-dialog__body !p-[8px_0px_8px] sideFoot_content h-[700px] flex flex-col text-main text-xs"},rL={class:"h-[40px] flex items-center px-4 mb-1"},iL={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"},cL={key:0,class:"ml-3"},dL={class:"text-hy-text-secondary"},pL={key:1,class:"ml-3"},fL={class:"text-hy-text-secondary"},mL={class:"font-bold"},hL=["element-loading-text"],uL={key:0,class:"w-full h-full flex flex-col box-border"},_L={class:"flex-shrink-0 mb-3 px-4"},gL={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},yL={class:"flex w-full"},xL={class:"flex-shrink-0"},kL={class:"text-right font-bold flex-grow w-0"},NL={class:"flex w-full text-hy-text-secondary"},bL={class:"flex-shrink-0"},CL={class:"text-right flex-grow w-0"},wL={class:"flex w-full text-hy-text-secondary"},EL={class:"flex-shrink-0"},SL={class:"text-right flex-grow w-0"},TL={class:"text-xs p-2 leading-[22px]"},DL={class:"flex w-full"},VL={class:"flex-shrink-0 tracking-[4px]"},$L={class:"text-right font-bold flex-grow w-0"},BL={class:"flex w-full"},IL={class:"flex-shrink-0 tracking-[4px]"},AL={class:"text-right font-bold flex-grow w-0"},LL={class:"flex w-full"},FL={class:"flex-shrink-0 tracking-[4px]"},OL={class:"text-right font-bold flex-grow w-0 text-hy-success"},RL={class:"flex w-full"},PL={class:"flex-shrink-0 tracking-[4px]"},ML={class:"text-right font-bold flex-grow w-0 text-hy-danger"},UL={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},zL={class:"flex-1 flex"},WL={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},jL={class:"flex-grow w-0 text-center truncate"},HL={class:"flex-1 flex"},YL={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},GL={class:"flex-grow w-0 text-center text-hy-success truncate"},qL={class:"flex-1 flex"},KL={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},XL={class:"flex-grow w-0 text-center text-hy-danger truncate"},JL={class:"w-full px-2 leading-[22px] box-border rounded bg-hy-dialog-bg-3 h-[28px] flex items-center justify-between"},ZL={class:"flex"},QL={key:0,class:"ml-2 bg-hy-dialog-bg-1 h-[22px] px-2 rounded"},vL={class:"w-[400px]"},eF={class:""},tF={key:0,class:"box-border flex-grow h-0 flex px-2"},nF={class:"flex-grow w-0 px-2 overflow-x-hidden overflow-y-auto h-full"},oF={key:0,class:"w-[66%] box-border pr-2"},aF={class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},sF={key:1,class:"flex-grow h-0 px-4"},lF={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"},rF={class:"r-f tac flex text-center"},iF={class:"mt-3"},cF={class:"mt-1"},dF={key:1,class:"w-full h-full"},pF={key:0,class:"w-full h-full flex px-4 box-border"},fF={class:"flex flex-col w-[33%]"},mF={class:"pr-2"},hF={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},uF={class:"flex w-full"},_F={class:"flex-shrink-0"},gF={class:"text-right font-bold flex-grow w-0"},yF={class:"flex w-full text-hy-text-secondary"},xF={class:"flex-shrink-0"},kF={class:"text-right flex-grow w-0"},NF={class:"flex w-full text-hy-text-secondary"},bF={class:"flex-shrink-0"},CF={class:"text-right flex-grow w-0"},wF={class:"text-xs p-2 leading-[22px]"},EF={key:0,class:"flex w-full"},SF={class:"flex-shrink-0 tracking-[4px]"},TF={class:"text-right font-bold flex-grow w-0"},DF={key:1,class:"flex w-full"},VF={class:"flex-shrink-0 tracking-[4px]"},$F={class:"text-right font-bold flex-grow w-0"},BF={class:"flex w-full"},IF={class:"flex-shrink-0 tracking-[4px]"},AF={class:"text-right font-bold flex-grow w-0 text-hy-success"},LF={class:"flex w-full"},FF={class:"flex-shrink-0 tracking-[4px]"},OF={class:"text-right font-bold flex-grow w-0 text-hy-danger"},RF={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},PF={class:"flex-1 flex"},MF={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},UF={class:"flex-grow w-0 text-center truncate"},zF={class:"flex-1 flex"},WF={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},jF={class:"flex-grow w-0 text-center text-hy-success truncate"},HF={class:"flex-1 flex"},YF={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},GF={class:"flex-grow w-0 text-center text-hy-danger truncate"},qF={class:"flex-grow h-0 mt-2 overflow-x-hidden overflow-y-auto pr-2 box-border"},KF={class:"flex-grow w-0 flex flex-col"},XF=aL(()=>e.createElementVNode("div",{class:"flex-grow h-0 overflow-hidden"},null,-1)),JF={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"},ZF={class:"r-f tac flex text-center"},QF={class:"mt-5"},vF={key:1,class:"flex-grow h-full px-4"},eO={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"},tO={class:"r-f tac flex text-center"},nO={class:"mt-3"},oO={class:"mt-1"},aO={class:"h-[50px] flex items-center justify-between flex-shrink-0 px-4 mt-1"},sO={class:"text-hy-text-secondary text-xs"},lO={key:0},rO={key:1},iO={key:0},cO={key:1},dO={key:2},pO=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:_}=oL();return(y,u)=>{const N=e.resolveComponent("svg-icon"),k=e.resolveComponent("el-popover"),E=e.resolveComponent("el-col"),b=pA,S=e.resolveComponent("el-icon"),V=e.resolveComponent("el-tooltip"),$=e.resolveComponent("el-row"),h=$t,g=e.resolveComponent("el-button"),C=e.resolveDirective("loading");return e.unref(n)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"el-dialog sideFootBox",style:e.normalizeStyle([{width:"830px"},{"z-index":e.unref(o)}]),onClick:u[2]||(u[2]=(...w)=>e.unref(a)&&e.unref(a)(...w))},[e.createElementVNode("div",sL,[e.createElementVNode("div",lL,[e.createElementVNode("div",rL,[e.createElementVNode("div",iL,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",cL,[e.createElementVNode("span",dL,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",pL,[e.createElementVNode("span",fL,e.toDisplayString(e.unref(l)("responseTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",mL,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",uL,[e.createElementVNode("div",_L,[e.createVNode($,{gutter:8},{default:e.withCtx(()=>[e.createVNode(E,{span:8},{default:e.withCtx(()=>[e.createVNode(k,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",UL,[e.createElementVNode("div",zL,[e.createElementVNode("div",WL,[e.createVNode(N,{name:"base-every-day-many-people","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",jL,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("div",HL,[e.createElementVNode("div",YL,[e.createVNode(N,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",GL,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("div",qL,[e.createElementVNode("div",KL,[e.createVNode(N,{name:"base-danger-state","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",XL,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("ul",gL,[e.createElementVNode("li",yL,[e.createElementVNode("span",xL,e.toDisplayString(e.unref(l)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",kL,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("li",NL,[e.createElementVNode("span",bL,e.toDisplayString(e.unref(l)("offlineStatus")),1),e.createElementVNode("div",CL,e.toDisplayString(e.unref(s).offLineNum||"- -"),1)]),e.createElementVNode("li",wL,[e.createElementVNode("span",EL,e.toDisplayString(e.unref(l)("temporaryGroups")),1),e.createElementVNode("div",SL,e.toDisplayString(e.unref(s).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",TL,[e.createElementVNode("li",DL,[e.createElementVNode("span",VL,e.toDisplayString(e.unref(l)("waitingToReceive")),1),e.createElementVNode("div",$L,e.toDisplayString(e.unref(s).beReceiveNum||"- -"),1)]),e.createElementVNode("li",BL,[e.createElementVNode("span",IL,e.toDisplayString(e.unref(l)("receiving")),1),e.createElementVNode("div",AL,e.toDisplayString(e.unref(s).receivingNum||"- -"),1)]),e.createElementVNode("li",LL,[e.createElementVNode("span",FL,e.toDisplayString(e.unref(l)("completed")),1),e.createElementVNode("div",OL,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("li",RL,[e.createElementVNode("span",PL,e.toDisplayString(e.unref(l)("uncompleted")),1),e.createElementVNode("div",ML,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])])]),_:1})]),_:1}),e.createVNode(E,{span:16},{default:e.withCtx(()=>[e.createElementVNode("div",JL,[e.createElementVNode("div",ZL,[e.createTextVNode(e.toDisplayString(e.unref(l)("messageContent"))+" ",1),e.unref(s).playMsg===1?(e.openBlock(),e.createElementBlock("div",QL," TTS"+e.toDisplayString(e.unref(l)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"css-text-no-select cursor-pointer hover:opacity-60",onClick:u[1]||(u[1]=(...w)=>e.unref(i)&&e.unref(i)(...w))},[e.createVNode(V,{modelValue:e.unref(c),"onUpdate:modelValue":u[0]||(u[0]=w=>e.isRef(c)?c.value=w:null),class:"item",placement:"bottom-end",trigger:"manual"},{content:e.withCtx(()=>[e.createElementVNode("div",vL,e.toDisplayString(e.unref(s).msgContent),1)]),default:e.withCtx(()=>[e.createElementVNode("span",eF,[e.createTextVNode(e.toDisplayString(e.unref(l)("viewContent"))+" ",1),e.createVNode(S,{class:e.normalizeClass(["text-sm duration-500",{"-rotate-90":e.unref(c)}])},{default:e.withCtx(()=>[e.createVNode(b)]),_:1},8,["class"])])]),_:1},8,["modelValue"])])])]),_:1})]),_:1})]),e.unref(s).checkNum!==0?(e.openBlock(),e.createElementBlock("div",tF,[e.createElementVNode("div",nF,[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",oF,[e.createElementVNode("div",aF,[e.unref(s).id?(e.openBlock(),e.createBlock(nL,{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",sF,[e.createElementVNode("div",lF,[e.createElementVNode("div",rF,[e.createVNode(N,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",iF,e.toDisplayString(e.unref(l)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",cF,e.toDisplayString(e.unref(l)("cannotSupportThisSpotCheck")),1)])])]))])):(e.openBlock(),e.createElementBlock("div",dF,[e.unref(s).checkNum!==0?(e.openBlock(),e.createElementBlock("div",pF,[e.createElementVNode("div",fF,[e.createElementVNode("div",mF,[e.createVNode(k,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",RF,[e.createElementVNode("div",PF,[e.createElementVNode("div",MF,[e.createVNode(N,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",UF,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("div",zF,[e.createElementVNode("div",WF,[e.createVNode(N,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",jF,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("div",HF,[e.createElementVNode("div",YF,[e.createVNode(N,{name:"base-danger-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",GF,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("ul",hF,[e.createElementVNode("li",uF,[e.createElementVNode("span",_F,e.toDisplayString(e.unref(l)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",gF,e.toDisplayString(e.unref(s).checkNum||"- -"),1)]),e.createElementVNode("li",yF,[e.createElementVNode("span",xF,e.toDisplayString(e.unref(l)("offlineStatus")),1),e.createElementVNode("div",kF,e.toDisplayString(e.unref(s).offLineNum||"- -"),1)]),e.createElementVNode("li",NF,[e.createElementVNode("span",bF,e.toDisplayString(e.unref(l)("temporaryGroups")),1),e.createElementVNode("div",CF,e.toDisplayString(e.unref(s).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",wF,[e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("li",EF,[e.createElementVNode("span",SF,e.toDisplayString(e.unref(l)("waitingToReceive")),1),e.createElementVNode("div",TF,e.toDisplayString(e.unref(s).beReceiveNum||"- -"),1)])):e.createCommentVNode("",!0),e.unref(s).checkStyle===1?(e.openBlock(),e.createElementBlock("li",DF,[e.createElementVNode("span",VF,e.toDisplayString(e.unref(l)("receiving")),1),e.createElementVNode("div",$F,e.toDisplayString(e.unref(s).receivingNum||"- -"),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",BF,[e.createElementVNode("span",IF,e.toDisplayString(e.unref(l)("completed")),1),e.createElementVNode("div",AF,e.toDisplayString(e.unref(s).finishNum||"- -"),1)]),e.createElementVNode("li",LF,[e.createElementVNode("span",FF,e.toDisplayString(e.unref(l)("uncompleted")),1),e.createElementVNode("div",OF,e.toDisplayString(e.unref(s).notFinishNum||"- -"),1)])])]),_:1})]),e.createElementVNode("div",qF,[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",KF,[XF,e.unref(f)?(e.openBlock(),e.createElementBlock("div",JF,[e.createElementVNode("div",ZF,[e.createVNode(N,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"}),e.createElementVNode("div",QF,e.toDisplayString(e.unref(l)("groupMemberStatusAbnormalityPreventsSpotCheck")),1)])])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",vF,[e.createElementVNode("div",eO,[e.createElementVNode("div",tO,[e.createVNode(N,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",nO,e.toDisplayString(e.unref(l)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",oO,e.toDisplayString(e.unref(l)("cannotSupportThisSpotCheck")),1)])])]))]))],8,hL)),[[C,e.unref(r)]]),e.createElementVNode("div",aO,[e.createElementVNode("div",sO,[e.createElementVNode("div",null,[e.createVNode(S,{class:"mr-1 text-sm"},{default:e.withCtx(()=>[e.createVNode(h)]),_:1}),e.unref(s).checkType===2?(e.openBlock(),e.createElementBlock("span",lO,e.toDisplayString(e.unref(l)("randomCheck")),1)):(e.openBlock(),e.createElementBlock("span",rO,[e.unref(s).checkScope===1?(e.openBlock(),e.createElementBlock("span",iO,e.toDisplayString(e.unref(l)("regionalSpotCheck")),1)):e.unref(s).checkScope===2?(e.openBlock(),e.createElementBlock("span",cO,e.toDisplayString(e.unref(l)("departmentSpotCheck")),1)):e.unref(s).checkScope===3?(e.openBlock(),e.createElementBlock("span",dO,e.toDisplayString(e.unref(l)("deviceSpotCheck")),1)):e.createCommentVNode("",!0)]))])]),e.createElementVNode("div",null,[e.createVNode(g,{type:"primary",class:"button_default buttonBox min-w-[100px]",onClick:e.unref(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(g,{class:"button_function buttonBox min-w-[100px]",onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("complete")),1)]),_:1},8,["onClick"])])])])])],4)):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-e246ad8e"]]);function fO(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 _(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&&(k([...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&&(k([...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?(k([{...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?(k([...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}`]}`,N(h[`${s.value}`]),!0),b(),n("onCurrent",h)))})}function u(h){l.value.setCheckedKeys(h||[]),b()}function N(h){return(l.value.getCheckedKeys()||[]).findIndex(w=>w===h||w===`${h}`)===-1}function k(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)}),k([...g]),E(C),n("onSelectedData",{selectedDataList:g,departmentList:C,selectedData:h})}function S(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,N(g),!0),b()}function $(h){var g;(g=l.value)==null||g.setData(h)}return{departmentDoubleClick:V,selectedList:d,getCurrentNode:b,getSelectedIndex:m,nodeClick:S,setChecked:_,setCheckedKeys:u,setData:$,setSelectedList:k,treeProps:r,treeRef:l}}const Lr=t=>(e.pushScopeId("data-v-0ea0d0e6"),t=t(),e.popScopeId(),t),mO={class:"flex w-full h-full"},hO={key:0,class:"w-full flex items-center"},uO={key:0,class:"mr-[6px]"},_O={class:"el-checkbox"},gO=[Lr(()=>e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1))],yO={key:1,class:"mr-1"},xO={class:"el-radio"},kO=[Lr(()=>e.createElementVNode("span",{class:"el-radio__inner"},null,-1))],NO=["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:_,treeProps:y,treeRef:u}=fO({emit:s,props:a});e.watch(()=>a.showCheckbox,k=>{if(k===!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:_,setChecked:d,setData:m});const N=e.ref();return e.onMounted(()=>{r.value=a.defaultCheckedList,a.showCheckbox&&a.parentCheckbox&&(N.value=a.defaultCheckedList.map(k=>`${k[`${a.itemSelectParam}`]}`))}),(k,E)=>{const b=e.resolveComponent("el-tree-v2");return e.openBlock(),e.createBlock(b,{ref_key:"treeRef",ref:u,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(N),"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:S})=>[e.createElementVNode("div",mO,[S.type===a.itemType?(e.openBlock(),e.createElementBlock("div",hO,[a.showCheckbox&&!a.parentCheckbox?(e.openBlock(),e.createElementBlock("div",uO,[e.withDirectives(e.createElementVNode("div",_O,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)(S[`${a.itemSelectParam}`])!==-1,"is-disabled":S.disabled},"el-checkbox__input"])},gO,2)],512),[[e.vShow,a.showCheckboxButton]])])):e.createCommentVNode("",!0),a.showRadio?(e.openBlock(),e.createElementBlock("div",yO,[e.withDirectives(e.createElementVNode("div",xO,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)(S[`${a.itemSelectParam}`])!==-1,"is-disabled":S.disabled},"el-radio__input"])},kO,2)],512),[[e.vShow,a.showRadioButton]])])):e.createCommentVNode("",!0),e.renderSlot(k.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:S})),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)(S),["stop"])},[e.renderSlot(k.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:S})),void 0,!0)],40,NO))])]),_: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 S=r.value.find(V=>V.value===l.value);return S&&S.placeholder?S.placeholder:x("pleaseEnterContentToSearch")}),c=e.computed(()=>!!e.useSlots()["check-content"]),p=e.computed(()=>!!e.useSlots()["other-content"]),d=e.ref(null);function f(){const S=new ResizeObserver(()=>{d.value&&(a.value=d.value.clientHeight)});d.value&&S.observe(d.value)}function m(S){n("onCurrentDepartment",S)}function _(S){n("onCurrent",S)}function y(S){n("onCurrentDelete",S)}function u(S){n("onSelectedData",S)}function N(S){s.value=S}function k(S,V){o.value.setChecked(S,V)}function E(S){o.value.setCheckedKeys(S)}function b(S){o.value.setSelectedList(S)}return{checkContentSlotsType:c,otherContentSlotsType:p,currentDepartment:m,currentDevice:_,currentDeviceDelete:y,elementRef:d,selectedData:u,treeComponentHeight:a,treeComponentRef:o,viewDepartmentList:s,watchTreeComponentHeight:f,setChecked:k,setCheckedKeys:E,setSelectedList:b,selectFilterList:r,selectFilterType:l,getInputPlaceholder:i,setViewDepartmentList:N}}function kn(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 tt(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 Fr(t,n,o,a){const{selectFilterType:s,hideOrgNoData:l,disabledIds:r}=o||{disabledIds:"",showOnlineOnly:!1,hideOrgNoData:!1,hideDevice:!1,selectFilterType:null,signal:null},i=[];for(let c=0;c<n.length;c++){const p=n[c];p.type=1,p.onlyId=`${p.id}`,r.length!==0&&(p.disabled=kn(r,p.id));let d=!1;a&&a.parentType||p.type===3?d=!0:d=tt(1,t,p,{selectFilterType:s});const f=d?p:{};if(p.children&&p.children.length>0){const m=await Fr(t,p.children,o,{...p,parentType:d});m&&(f.children=[...m.children],p.children=m.children)}Object.keys(f).length&&(f.children.length||!l&&(f.companyName||f.orgName))&&i.push(p)}return{children:i}}async function Or(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 _=n[m],y=m;_.type===3?_.onlyId=`${_.deviceId}`:(_.type=1,_.onlyId=`organization_${_.id}`),s&&_.type===1&&c.length!==0&&(_.disabled=kn(c,_.id)),_.childrenDeviceList=[],_.onlineCountList=[];const u=a&&a.companyName&&_.type!==3?a.companyName:null;_.parentIdsList=a&&a.parentIdsList?[...a.parentIdsList,{id:_.id,currentSubscript:y}]:[{id:_.id,currentSubscript:y}];let N=!1;a&&a.parentType||_.type===3?N=!0:N=tt(1,t,_,{selectFilterType:l});const k=N?_:{};if(_.deviceList&&_.deviceList.length&&!s){const E=[];_.deviceList.forEach((b,S)=>{if((a&&a.parentType||tt(3,t,b,{selectFilterType:l})||N)&&(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:u,disabled:kn(c,b.deviceId)},$=V;$.parentOrgName=u,$.parentIdsList=_.parentIdsList,_.childrenDeviceList.push($),d.push($),E[b.onlineState===1?"unshift":"push"](V)}}),_.children=_.children.concat(E)}else _.deviceList=[];if(_.children&&_.children.length>0){const E=await Or(t,_.children,o,{..._,parentType:N});if(E){const b=E.deviceList;_.childrenDeviceList.push(...b),d.push(...b);const S=new Map,V=[];_.childrenDeviceList.forEach($=>{S.has($.id)||(S.set($.id,$),$.onlineState===1&&V.push($))}),_.childrenDeviceList=Array.from(S.values()),_.onlineCountList=V,k.children=[...E.children],_.children=E.children}}Object.keys(k).length&&(_.type===3||k.children.length||!i&&(k.companyName||k.orgName))&&f.push(_)}return{children:f,deviceList:Qn(d)}}async function Rr(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 _=!1;m.type===3||m.type===4?_=!0:_=tt(1,t,m,{selectFilterType:l});const y=_?m:{};if(m.groupList&&m.groupList.length!==0?m.groupList.forEach((u,N)=>{if(u.deviceList&&u.deviceList.length!==0){const k=[];a&&a.parentType||_||tt(4,t,u,{selectFilterType:l})?(s||u.deviceList.forEach(E=>{const b={isLeaf:!0,...E,children:[],orgGroupId:u.id,deviceType:E.type,type:3};k[E.onlineState===1?"unshift":"push"](b)}),m.children.push({...u,children:k,type:4})):(s||u.deviceList.forEach(E=>{if(tt(3,t,E,{selectFilterType:l})){const b={isLeaf:!0,...E,children:[],orgGroupId:u.id,deviceType:E.type,type:3};k[E.onlineState===1?"unshift":"push"](b)}}),k.length&&m.children.push({...u,children:k,type:4}))}else(a&&a.parentType||_||tt(4,t,u,{selectFilterType:l}))&&m.children.push({...u,children:[],type:4})}):m.groupList=[],m.deviceList&&m.deviceList.length&&(m.childrenDeviceList=m.deviceList),m.childrenDeviceList&&m.childrenDeviceList.forEach(u=>{p.findIndex(k=>k.deviceId===u.deviceId)===-1&&p.push(u)}),m.children&&m.children.length!==0){const u=await Rr(t,m.children,o,{...m,parentType:_});if(u){const N=u.deviceList;m.childrenDeviceList.push(...N),p.push(...N);const k=new Map,E=[];m.childrenDeviceList.forEach(b=>{k.has(b.id)||(k.set(b.id,b),b.onlineState===1&&E.push(b))}),m.childrenDeviceList=Array.from(k.values()),m.onlineCountList=E,y.children=u.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 Pr(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=tt(1,t,d,{selectFilterType:s});const _=m?d:{};if(d.deviceUserList&&d.deviceUserList.length){const y=[];d.deviceUserList.forEach((u,N)=>{if(a&&a.parentType||tt(5,t,u,{selectFilterType:s})||m){const k={...u,parentType:!0,isLeaf:!0,label:u.name||u.id,deviceId:u.id,deviceType:u.type,type:5,item:u,children:[],parentIdsList:d.parentIdsList};d.childrenDeviceList.push(k),i.push(k);const E={...u,parentType:!0,isLeaf:!0,label:u.name||u.id,deviceId:u.id,deviceType:u.type,type:5,children:[],item:u,disabled:kn(r,u.id)};y[u.onlineState===1?"unshift":"push"](E)}}),d.children=[...d.children,...y]}else d.deviceList=[];if(d.children&&d.children.length>0){const y=await Pr(t,d.children,o,{...d,parentType:m});if(y){const u=y.deviceList;d.childrenDeviceList.push(...u),i.push(...u);const N=new Map,k=[];d.childrenDeviceList.forEach(E=>{N.has(E.id)||(N.set(E.id,E),E.onlineState===1&&k.push(E))}),d.childrenDeviceList=Array.from(N.values()),d.onlineCountList=k,_.children=y.children}}Object.keys(_).length&&(d.type===5||_.children.length||!l&&(_.companyName||_.orgName))&&c.push({...d,..._})}return{children:c,deviceList:Qn(i)}}async function Mr(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=tt(1,t,d,{selectFilterType:s});const _=m?d:{};if(d.csList&&d.csList.length){const y=[];d.csList.forEach((u,N)=>{if(a&&a.parentType||tt(8,t,u,{selectFilterType:s})||m){const k={...u,type:8,item:u,children:[]};d.childrenDeviceList.push(k),i.push(k);const E={...u,type:8,item:u,children:[],disabled:kn(r,u.id)};y[u.onlineState===1?"unshift":"push"](E)}}),d.children=[...d.children,...y]}else d.deviceList=[];if(d.children&&d.children.length>0){const y=await Mr(t,d.children,o,{...d,parentType:m});if(y){const u=y.deviceList;d.childrenDeviceList.push(...u),i.push(...u);const N=new Map,k=[];d.childrenDeviceList.forEach(E=>{N.has(E.id)||(N.set(E.id,E),E.onlineState===1&&k.push(E))}),d.childrenDeviceList=Array.from(N.values()),d.onlineCountList=k,_.children=y.children}}Object.keys(_).length&&(d.type===8||_.children.length||!l&&(_.companyName||_.orgName))&&c.push({...d,..._})}return{children:c,deviceList:Qn(i)}}function bO(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(),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 CO={class:"flex flex-col h-full text-xs"},wO={class:"flex items-center"},EO={class:"!w-[114px]"},SO={class:"text-hy-text-main"},TO={key:0,class:"w-full text-hy-text-main"},DO={class:"w-full h-full flex items-center"},VO={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},$O={key:0,class:"w-full"},BO={class:"w-full h-full flex items-center"},IO={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},Ur=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:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=bO({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:x("filterByDepartmentName")}],E.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],E.value=k.value[0].value),a.defaultGetData||h()}),(w,D)=>{const T=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),L=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),F=e.resolveComponent("el-input"),M=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",CO,[e.createElementVNode("div",wO,[e.createVNode(F,{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",SO,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(L,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",EO,[e.createVNode(B,{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(k),(z,U)=>(e.openBlock(),e.createBlock(T,{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",TO,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",DO,[e.createElementVNode("div",VO,[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",$O,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",BO,[e.createElementVNode("div",IO,[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 AO({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 Sl({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 LO={class:"flex flex-col w-full h-full"},FO={class:"flex justify-between items-center h-[40px]"},OO={class:"flex-1"},RO={class:"text-hy-text-secondary ml-3"},PO={class:"flex-1 flex items-center justify-end"},MO={class:"text-xs"},UO={class:"flex items-center clickBox cursor-pointer"},zO={class:"text-hy-text-primary"},WO=["element-loading-text"],jO={class:"flex-1 bg-hy-dialog-bg-1 rounded flex flex-col"},HO={class:"flex-grow h-0 w-full box-border p-2 equipment vbtTable"},YO={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded flex flex-col ml-2"},GO={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"},qO={class:"r-f tac flex flex-col items-center justify-center"},KO={class:"mt-3"},XO={class:"flex-grow w-0 pl-2 box-border truncate"},JO={class:"flex-shrink-0"},ZO=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}=AO({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList)}),e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(_,y)=>{const u=e.resolveComponent("el-button"),N=e.resolveComponent("svg-icon"),k=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",LO,[e.createElementVNode("div",FO,[e.createElementVNode("div",OO,[e.createTextVNode(e.toDisplayString(e.unref(x)("allDepartments")),1),e.createElementVNode("span",RO,e.toDisplayString(e.unref(x)("doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt")),1)]),e.createElementVNode("div",PO,[e.withDirectives(e.createVNode(u,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("span",MO,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",UO,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",zO,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",jO,[e.createElementVNode("div",HO,[e.createVNode(Ur,{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",YO,[e.withDirectives(e.createElementVNode("li",GO,[e.createElementVNode("div",qO,[e.createVNode(N,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",KO,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",XO,e.toDisplayString(E.companyName||E.groupName||E.orgName),1),e.createElementVNode("div",JO,[e.createVNode(Me,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(x)("delete"),onClick:S=>e.unref(d)(b)},null,8,["tips","onClick"])])]))),128))])],8,WO)),[[k,!1]])])}}});function QO(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 vO=t=>(e.pushScopeId("data-v-51a5d703"),t=t(),e.popScopeId(),t),eR={class:"flex-shrink-0 mr-1"},tR={class:"flex-grow w-0 overflow-ellipsis overflow-hidden"},nR={class:"deviceName"},oR={key:0,class:"flex-shrink-0 mx-2"},aR={key:0,class:"text-hy-danger text-sm font-bold relative flex-shrink-0"},sR={key:1,class:"deviceType flex-shrink-0"},lR={key:2,class:"deviceType flex-shrink-0"},rR={key:3,class:"deviceType flex-shrink-0"},iR={key:4,class:"deviceType flex-shrink-0"},cR={key:5,class:"deviceType flex-shrink-0"},dR={key:6,class:"deviceType flex-shrink-0"},pR={key:7,class:"text-hy-success flex-shrink-0"},fR={key:1,class:"flex-shrink-0 mx-2"},mR=[vO(()=>e.createElementVNode("span",{class:"shrink-0"},"离线",-1))],pa=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",eR,[e.createVNode(c,{name:e.unref(QO)(s.value.deviceType||s.value.type),width:"20",height:"20",class:"relative top-[2px]"},null,8,["name"])]),e.createElementVNode("div",tR,[e.createElementVNode("span",nR,e.toDisplayString(s.value.devName),1)]),s.value.onlineState===1?(e.openBlock(),e.createElementBlock("div",oR,[s.value.sos===1?(e.openBlock(),e.createElementBlock("span",aR,"SOS")):s.value.intercomGroupTem===1||s.value.intercomCall===1?(e.openBlock(),e.createElementBlock("span",sR,"音频中")):s.value.monitor===1||s.value.beMonitor===1?(e.openBlock(),e.createElementBlock("span",lR,"监控中")):s.value.videoCall===1?(e.openBlock(),e.createElementBlock("span",rR,"通话中")):s.value.videoRecording===1?(e.openBlock(),e.createElementBlock("span",iR,"录像中")):s.value.audioRecording===1?(e.openBlock(),e.createElementBlock("span",cR,"录音中")):s.value.broadcast===1?(e.openBlock(),e.createElementBlock("span",dR,"广播中")):(e.openBlock(),e.createElementBlock("span",pR,"在线"))])):(e.openBlock(),e.createElementBlock("div",fR,mR))],2)]),_:1},8,["content"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-51a5d703"]]);function hR(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 _=await Or(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=_.children,l.value=_.deviceList,t.params.setViewDepartmentList(_.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(_=>_.deviceId===f.deviceId);if(m)for(const _ in f)m[`${_}`]=f[`${_}`]}function d(){a.value.length&&i()}return{setDeviceStatus:p,getData:i,query:a,selectChange:d,treeDeviceList:l,treeDataList:s}}const uR={class:"flex flex-col h-full text-xs"},_R={class:"flex items-center"},gR={class:"!w-[114px]"},yR={class:"text-hy-text-main"},xR={class:"flex-grow w-0"},kR={class:"flex-shrink-0 mr-2 flex h-full items-center justify-center"},NR={key:0,class:"w-full flex cursor_pointer"},bR={class:"flex items-center flex-grow w-0"},CR={class:"max-w-full overflow-ellipsis overflow-hidden"},wR={class:"flex-shrink-0 mr-2 ml-1"},ER={class:"text-hy-main"},zr=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:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,setDeviceStatus:g,query:C,selectChange:w}=hR({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:S}});return e.watch(()=>a.showOnlineOnly,()=>{h()}),n({setCheckedKeys:u,setSelectedList:N,setChecked:y,setDeviceStatus:g,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"设备名称、部门名称、设备IMEI进行搜索"}],E.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:x("equipment"),value:3,placeholder:x("filterByDeviceNumberAndDeviceName")}),E.value=k.value[0].value),a.defaultGetData||h()}),(D,T)=>{const B=e.resolveComponent("el-option"),L=e.resolveComponent("el-select"),j=e.resolveComponent("svg-icon"),F=e.resolveComponent("el-button"),M=e.resolveComponent("el-input"),z=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",uR,[e.createElementVNode("div",_R,[e.createVNode(M,{modelValue:e.unref(C),"onUpdate:modelValue":T[1]||(T[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",yR,[e.createVNode(F,{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",gR,[e.createVNode(L,{modelValue:e.unref(E),"onUpdate:modelValue":T[0]||(T[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(k),(U,R)=>(e.openBlock(),e.createBlock(B,{key:`${R}_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",xR,[e.createVNode(pa,{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",kR,[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",NR,[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",bR,[e.createElementVNode("span",CR,e.toDisplayString(U.companyName||U.groupName||U.orgName),1),e.withDirectives(e.createElementVNode("span",wR,[e.createTextVNode(" ("),e.createElementVNode("span",ER,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 SR({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,N=>{s.value=N.replace(/\s/g,"")});function c(){p([]),i.value.setSelectedList(o.value),t("on-selected-data-list",o.value)}function p(N=[]){o.value=[...N]}function d(N){if(!N.disabled){if(N.type===3){const k=o.value.findIndex(E=>E.deviceId===N.deviceId);k===-1?o.value.push({...N}):o.value.splice(k,1)}else{clearTimeout(l.value);const k={nonExistent:[],existent:[]},E=N.childrenDeviceList||[];E.length&&(E.forEach(b=>{a.value.findIndex(V=>V.deviceId===b.deviceId)===-1&&(o.value.findIndex($=>$.deviceId===b.deviceId)===-1?k.nonExistent.push({...b}):k.existent.push({...b}))}),k.nonExistent.length?k.nonExistent.forEach(b=>{o.value.push({...b})}):k.existent.forEach(b=>{const S=o.value.findIndex(V=>V.deviceId===b.deviceId);o.value.splice(S,1)}))}t("on-selected-data-list",[...o.value])}}function f(){r.value&&r.value.abort(),r.value=new AbortController}async function m(){n.value=!0;const N=await Sl({spotCheckSupport:1});return f(),N.data}function _(N,k){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(S=>S.type===N);return b!==-1?y(E[b],k):"tree-icon-walkie-talkie"}function y(N,k){return N.type===7||N.type===13?k===1?N.svgName:`${N}-off-line`:N.svgName}function u(N){o.value=N.selectedDataList,t("on-selected-data-list",o.value)}return{setSelectedDataList:p,getData:m,abortController:r,selectedDataList:o,clearSelectedData:c,deviceClick:d,checkDeviceTypeFn:_,onSelectedData:u,hyDeviceTreeRef:i}}const TR={class:"flex flex-col w-full h-full"},DR={class:"flex justify-between items-center h-[40px]"},VR={class:"flex mr-2"},$R={class:"flex items-center"},BR={class:"text-xs"},IR={class:"flex items-center clickBox cursor-pointer"},AR={class:"text-hy-text-primary"},LR=["element-loading-text"],FR={class:"flex-1 bg-hy-dialog-bg-1 rounded box-border p-2 flex flex-col"},OR={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded flex flex-col ml-2"},RR={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"},PR={class:"flex flex-col justify-center items-center"},MR={class:"mt-3"},UR={class:"flex-grow w-0 pl-2 flex box-border"},zR={class:"truncate flex-grow w-0"},WR={class:"select-none truncate mx-[4px] text-hy-text-main"},jR={class:"flex-shrink-0"},HR=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:_}=SR({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList),r()}),e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(y,u)=>{const N=e.resolveComponent("el-button"),k=e.resolveComponent("svg-icon"),E=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",TR,[e.createElementVNode("div",DR,[e.createElementVNode("div",VR,e.toDisplayString(e.unref(x)("allDevices")),1),e.createElementVNode("div",$R,[e.withDirectives(e.createVNode(N,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("span",BR,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",IR,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",AR,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",FR,[e.createVNode(zr,{ref_key:"hyDeviceTreeRef",ref:_,"item-size":36,"get-data":e.unref(r),"show-online-only":a.onlineStateFlag===1,"show-checkbox":!0,"hide-org-no-data":!0,"parent-checkbox":!1,onOnSelectedData:e.unref(m)},null,8,["get-data","show-online-only","onOnSelectedData"])]),e.createElementVNode("ul",OR,[e.withDirectives(e.createElementVNode("li",RR,[e.createElementVNode("div",PR,[e.createVNode(k,{name:"base-no-data","class-name":"!w-[50px] !h-[50px]"}),e.createElementVNode("div",MR,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",UR,[e.createVNode(k,{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",zR,[e.createElementVNode("span",WR,e.toDisplayString(b.devName),1)])]),e.createElementVNode("div",jR,[e.createVNode(Me,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(x)("delete"),onClick:S=>e.unref(d)(b)},null,8,["tips","onClick"])])]))),128))])],8,LR)),[[E,!1]])])}}});function YR({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 _(E){return r.value.findIndex(S=>S.id===E.id)!==-1?"is-checked":""}async function y(E){const b=r.value.findIndex(S=>S.id===E.id);b===-1?u(E):N(b)}function u(E){r.value.push(E),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}function N(E){r.value.splice(E,1),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}async function k(){o.value=!0;const{code:E,data:b=[]}=await Zy({query:i.value,spotCheckSupport:1,onlineState:1});E===200&&(l.value=[],b.forEach(S=>{S.deviceList.length!==0?l.value.unshift(S):l.value.push(S)}),o.value=!1)}return{checkAll:n,loading:o,treeHeight:a,scrollYRenderConfig:s,deviceList:l,selectedDataList:r,filterValue:i,timeOut:c,addSelectedDataList:p,setSelectedDataList:d,getSelectedDataList:f,setCheckAll:m,judgeSelectedFn:_,deviceClick:y,addSelectList:u,deleteSelectList:N,getData:k}}const GR={class:"flex flex-col w-full h-full"},qR={class:"flex justify-between items-center h-[30px]"},KR={class:"el-checkbox !mr-2"},XR=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],JR={class:"text-hy-text-primary"},ZR=["element-loading-text"],QR={class:"flex-1 bg-hy-dialog-bg-1 rounded flex flex-col"},vR={class:"flex items-center justify-center box-border p-[8px_8px_4px]"},e4={class:"text-hy-text-main"},t4={class:"flex-grow h-0 w-full px-2 pb-2 box-border overflow-y-scroll overflow-x-hidden"},n4=["onClick"],o4={class:"flex items-center justify-center"},a4={class:"el-checkbox relative !mr-[6px]"},s4=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],l4={class:"treeDepartment cursor_pointer flex items-center justify-between w-full text-[14px] font-bold text-hy-text-main"},r4={class:"r-f w_100vh flex w-full"},i4={class:"flex-grow w-0 over_one_line truncate"},c4={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded flex flex-col ml-2"},d4={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"},p4={class:"r-f tac flex flex-col justify-center items-center"},f4={class:"mt-3"},m4={class:"flex-grow w-0 pl-2 box-border truncate"},h4={class:"flex-shrink-0"},u4=e.defineComponent({__name:"select-electronic-fence",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=t,s=o,{setSelectedDataList:l,getData:r,setCheckAll:i,checkAll:c,selectedDataList:p,loading:d,filterValue:f,deviceList:m,deviceClick:_,judgeSelectedFn:y,deleteSelectList:u}=YR({emit:s});return e.onMounted(()=>{l(a.initSelectedDataList),r()}),n({setSelectedDataList:l,getData:r}),(N,k)=>{const E=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-button"),S=e.resolveComponent("el-input"),V=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",GR,[e.createElementVNode("div",qR,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("electronicFence")),1),e.createElementVNode("div",{class:"flex items-center clickBox",onClick:k[0]||(k[0]=(...$)=>e.unref(i)&&e.unref(i)(...$))},[e.createElementVNode("div",KR,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)},"el-checkbox__input"])},XR,2)]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",JR,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",QR,[e.createElementVNode("div",vR,[e.createVNode(S,{modelValue:e.unref(f),"onUpdate:modelValue":k[1]||(k[1]=$=>e.isRef(f)?f.value=$:null),placeholder:e.unref(x)("filterByElectronicFenceName"),class:"table-search-main w-[254px] text-[12px]",onClear:k[2]||(k[2]=$=>e.unref(r)()),onKeyup:k[3]||(k[3]=e.withKeys($=>e.unref(r)(),["enter"]))},{append:e.withCtx(()=>[e.createElementVNode("div",e4,[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",t4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),$=>(e.openBlock(),e.createElementBlock("div",{key:$.id,class:"hover:shadow-[0_0_10px_0_inset] bg-hy-dialog-bg-2 hover:shadow-hy-border-1 hover:border-hy-border-1 border-hy-dialog-bg-2 flex-grow flex h-[32px] items-center border rounded my-2 box-border px-2 cursor-pointer",onClick:h=>e.unref(_)($)},[e.createElementVNode("div",o4,[e.createElementVNode("div",a4,[e.createElementVNode("span",{class:e.normalizeClass([e.unref(y)($),"el-checkbox__input"])},s4,2)])]),e.createElementVNode("div",l4,[e.createElementVNode("div",r4,[e.createElementVNode("span",i4,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,n4))),128))])]),e.createElementVNode("ul",c4,[e.withDirectives(e.createElementVNode("li",d4,[e.createElementVNode("div",p4,[e.createVNode(E,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",f4,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",m4,e.toDisplayString($.railName),1),e.createElementVNode("div",h4,[e.createVNode(Me,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(x)("delete"),onClick:g=>e.unref(u)(h)},null,8,["tips","onClick"])])]))),128))])],8,ZR)),[[V,e.unref(d)]])])}}});function _4({emit:t}){const n=e.ref([{label:x("templateName"),prop:"templateName",isSearch:!0},{label:x("operation"),width:80,align:"center",slotName:"operator"}]),o=e.ref({checkStyle:null}),a=e.ref(!1),s=e.ref(null),l=e.ref();function r(d){return new Promise((f,m)=>{const{checkStyle:_=null}=d||{};o.value.checkStyle=_,a.value=!0,s.value=f,e.nextTick(()=>{i()})})}function i(){l.value.getTableData()}function c(d){s.value(d),t("on-selected",d),p()}function p(){a.value=!1}return{$t:x,tableColumns:n,requestParams:o,dialogVisible:a,successfulCallback:s,AppTableRef:l,show:r,selected:c,close:p}}const g4={class:"deleteBox c_fff text-hy-text-main"},y4={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]"},x4={class:"absolute right-[-2px] top-[-2px]"},k4={class:"dialog_body h-[60vh]"},N4=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}=_4({emit:a});return n({show:f}),(m,_)=>{const y=e.resolveComponent("svg-icon"),u=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(u,{modelValue:e.unref(l),"onUpdate:modelValue":_[0]||(_[0]=N=>e.isRef(l)?l.value=N: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",g4,[e.createElementVNode("div",y4,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("spotCheckTemplate")),1),e.createElementVNode("div",x4,[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",k4,[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:N})=>[e.createVNode(Me,{width:12,height:12,name:"icon-choice",class:"!w-[24px] !h-[24px]",tips:e.unref(s)("edit"),onClick:k=>e.unref(p)(N)},null,8,["tips","onClick"])]),_:1},8,["column-list","search-form"])])])]),_:1},8,["modelValue"])}}});function b4({emit:t}){const n=e.ref({everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1}),o=(J,ee,ie)=>{let le="";for(const Z in n.value)n.value[Z]&&(le+=`${Z.replace(/(^everyday)|(everyday$)/g,"")},`);le.length?ie():ie(new Error(x("pleaseSelectASpecificWeek")))},a=e.ref(null),s=e.ref(!1),l=e.ref(!1),r=e.ref([]),i=e.ref(null),c=e.ref(x("immediatelyInitiateARollCallSpotCheck")),p=e.ref(!1),d=e.ref(null),f=e.ref(!1),m=e.ref({limitNum:10,onlineStateFlag:1,checkType:1,checkScope:1,checkStyle:1,actionType:1,actionTime:5,deviceIdList:[],mapRailIdList:[],orgIdList:[],msgContent:"",playMsg:!1,templateName:"",taskDateType:1,apDateListV2:null,apDtmV2:null}),_=e.ref({limitNum:10,onlineStateFlag:1,actionTime:5,actionType:1,checkScope:1,checkStyle:1,checkType:1,deviceIdList:[],mapRailIdList:[],orgIdList:[],msgContent:"",playMsg:!1,templateName:"",taskDateType:1,apDateListV2:null,apDtmV2:null}),y=e.ref({limitNum:[{required:!0,message:x("pleaseEnterTheRandomNumber"),trigger:"blur"}],templateName:[{required:!0,message:x("pleaseEnterTheTemplateName"),trigger:"blur"}],msgContent:[{required:!0,message:x("pleaseFillInTheMessageToBeSent"),trigger:"blur"}],everydayJson:[{required:!0,validator:o,trigger:"change"}],taskDateTime:[{required:!0,message:x("pleaseSelectTheExecutionTime"),trigger:"change"}],taskDateType:[{required:!0,message:x("pleaseSelectTheExecutionDate"),trigger:"change"}],apDateListV2:[{required:!0,message:x("selectOneOrMoreDates"),trigger:"change"}],apDtmV2:[{required:!0,message:x("pleaseSelectASpecificTimePeriod"),trigger:"change"}]}),u=e.ref(),N=e.ref(),k=e.ref(),E=e.ref(),b=e.ref(),S=e.ref();e.watch(()=>_.value.limitNum,J=>{typeof J=="string"&&(J=J.replace(/[^.\d]/g,""),J=J.replace(".",""),_.value.limitNum=J)}),e.watch(()=>p.value,J=>{B()},{immediate:!0});function V(){u.value.validateField("limitNum")}function $(J){if(J!==_.value.onlineStateFlag)return new Promise((ee,ie)=>{if(r.value.length!==0&&_.value.checkScope===3&&J===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=L();le&&(le.clearSelectedData(),le.getData()),_.value.onlineStateFlag=J,ee(0)});else{if(_.value.onlineStateFlag=J,_.value.checkScope===3){const le=L();le&&le.getData()}ee(0)}})}function h(J){let ee=_.value.limitNum-0;if(J===1)ee+=1;else{if(ee<=1){Se.error(x("atLeast1RandomDevice"));return}ee-=1}_.value.limitNum=ee}function g(J){const{id:ee=null,checkScope:ie=3,contentState:le=3,onlineStateFlag:Z=1,copyType:O=!1,wrapperClosable:G=!1,title:ne=x("immediatelyInitiateARollCallSpotCheck"),selectedDataList:de=[],successfulCallback:_e=null}=J||{};if(p.value){if(le===1)if(ie===_.value.checkScope){const Ve=L();Ve&&Ve.addSelectedDataList(de)}else T(ie).then(()=>{F([],!0);const Ve=L();Ve&&Ve.addSelectedDataList(de)});else return Se.warning(x("repeat"));return}a.value=_e,l.value=G,i.value=le,c.value=ne,u.value&&u.value.resetFields(),_.value={...m.value},_.value.limitNum=10,_.value.checkScope=ie,_.value.onlineStateFlag=Z,le===1?de.length&&F(de,!0):F([],!0),n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},ee?X(ee,O):C(!0)}function C(J){p.value=typeof J=="boolean"?J:!p.value}function w(){u.value.clearValidate("everydayJson"),u.value.clearValidate("apDateListV2"),u.value.clearValidate("apDtmV2")}function D(J){var ee;(ee=T(J))==null||ee.then(()=>{F([],!0)})}function T(J){if(_.value.checkScope!==J)return new Promise((ee,ie)=>{r.value.length!==0?mt({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("prompt"),tipsContent:`<div><p>${x("switchingTheSpotCheckRangeWillClearTheSelectedData")}</p><p>${x("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("cancel-0"),closeBtnType:"primary",submitBtnText:x("confirm-3"),submitBtnType:"default"},()=>{_.value.checkScope=J,ee(0)}):(_.value.checkScope=J,ee(0))})}function B(){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 L(){const J=_.value.checkScope;return J===1?N.value:J===2?k.value:J===3?E.value:null}function j(J){const{checkScope:ee=1,mapRailList:ie=[],orgList:le=[],deviceIdList:Z=[],deviceList:O=[]}=J||{};let G=[];return ee===1&&ie.length?G=ie:ee===2&&le.length?G=le:ee===3&&O.length&&(G=O.map(ne=>({...ne,type:3}))),G||[]}function F(J,ee=!1){if(r.value=J,ee){const ie=L();ie&&ie.setSelectedDataList(J)}}function M(){const J=_.value.checkScope;let ee="",ie=[];return J===1?(ee="mapRailIdList",ie=r.value.map(le=>le.id)):J===2?(ee="orgIdList",ie=r.value.map(le=>le.id)):J===3&&(ee="deviceIdList",ie=r.value.map(le=>le.deviceId)),{dataList:ie,name:ee}}function z(){u.value.validate(J=>{if(J){const ee={..._.value};if(ee.playMsg=ee.playMsg?1:0,ee.checkType===1){const ie=M();if(ee[`${ie.name}`]=ie.dataList,ie.dataList.length===0)return Se.error(x("pleaseSelectTheSpotCheckRange"))}else ee.checkScope=null;e.nextTick(()=>{i.value===2?v(ee):i.value===3?ke(ee):Oe(ee)})}})}function U(J){var ee;J&&((ee=b.value)==null||ee.show(J))}function R(){F([],!0),C(!1),a.value=null}function Y(){R()}function X(J,ee){i.value===2?P(J,ee):i.value===3&&he(J,ee)}async function P(J,ee=!1){s.value=!0;const{code:ie,data:le}=await hA({id:J});if(ie===200){const Z=le;if(le.checkScope,Z.taskDateType===2)Z.weekDate.split(",").forEach(ne=>{ne=Number.parseFloat(ne),ne===1?n.value.everyday1=!0:ne===2?n.value.everyday2=!0:ne===3?n.value.everyday3=!0:ne===4?n.value.everyday4=!0:ne===5?n.value.everyday5=!0:ne===6?n.value.everyday6=!0:ne===7&&(n.value.everyday7=!0)});else if(Z.taskDateType===3){const G=[];Z.apDateList.forEach(ne=>{G.push(ne.apDtm.split(" 00:00:00")[0])}),Z.apDateListV2=G}else Z.taskDateType===4&&(Z.apDtmV2=[Z.apStartDtm,Z.apEndDtm]);Z.taskDateTime=[Z.taskDateStartTime,Z.taskDateEndTime],_.value={...Z,playMsg:Z.playMsg===1},ee&&(_.value.id=null);const O=j(Z);F(O),e.nextTick(()=>{s.value=!1,p.value||C(!0)})}}async function v(J){if(J.taskDateStartTime=_.value.taskDateTime[0],J.taskDateEndTime=_.value.taskDateTime[1],_.value.taskDateType===2){let le="";for(const Z in n.value)n.value[Z]&&(le+=`${Z.replace(/(^everyday)|(everyday$)/g,"")},`);if(le.length===0)return Se.error(x("pleaseSelectASpecificWeek"));J.weekDate=le.substring(le.length-1,0)}else if(_.value.taskDateType===3){if(!_.value.apDateListV2||_.value.apDateListV2.length===0)return Se.error(x("pleaseSelectADate"));J.apDateList=_.value.apDateListV2.map(le=>({apDtm:`${le} 00:00:00`}))}else if(_.value.taskDateType===4){if(!_.value.apDtmV2||_.value.apDtmV2.length===0)return Se.error(x("pleaseSelectATimePeriod"));J.apStartDtm=`${_.value.apDtmV2[0]} 00:00:00`,J.apEndDtm=`${_.value.apDtmV2[1]} 00:00:00`}const{code:ee,data:ie={}}=await uA(J);ee===200&&(Se.success(x("operationSuccessful")),t("on-submit"),a.value&&a.value(),R())}async function Te(){const{id:J}=await S.value.show({checkStyle:i.value===2?1:null});J&&(u.value&&u.value.resetFields(),_.value={...m.value},n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},r.value=[],await he(J,!0),Se.success(x("templateApplied")))}async function he(J,ee=!1){s.value=!0;const{code:ie,data:le}=await _A({id:J});if(ie===200){_.value={...le,playMsg:le.playMsg===1},ee&&(_.value.id=null);const Z=j(_.value);F(Z),e.nextTick(()=>{s.value=!1,p.value||C(!0)})}}async function ke(J){const{code:ee}=await gA(J);ee===200&&(Se.success(x("operationSuccessful")),t("on-submit"),a.value&&a.value(),R())}async function Oe(J){const{code:ee,data:ie={}}=await yA(J);ee===200&&(Se.success(x("operationSuccessful")),a.value&&a.value(),t("on-submit"),U(ie.id),R())}return{dialogVisible:p,animationVisible:f,animationTime:d,setDialogVisible:C,setAnimationVisible:B,setCheckScope:T,setSelectedDataList:F,getSelectedDataList:M,onSubmit:z,viewSpotCheckShow:U,close:R,onClose:Y,detail:X,selectTemplateShow:Te,taskDateTypeFn:w,changeCheckScope:D,everydayJson:n,formRef:u,loading:s,selectElectronicFenceRef:N,selectDepartmentRef:k,selectDeviceRef:E,selectTemplateRef:S,viewSpotCheckRef:b,contentState:i,title:c,wrapperClosable:l,form:_,rules:y,$t:x,changeOnlineStateFlag:$,blurLimitNum:V,setRandomNumber:h,selectedDataList:r,show:g}}const Fe=t=>(e.pushScopeId("data-v-1e4e7e93"),t=t(),e.popScopeId(),t),C4={key:0,class:"fixed top-0 left-0 bg-[rgba(0,0,0,0.5)] w-full h-full z-[100]"},w4={class:"w-[1080px] h-full"},E4={class:"w-full h-full px-[20px] box-border flex flex-col text-hy-text-main text-xs"},S4={class:"flex justify-between items-center h-[60px]"},T4={class:"font-bold text-lg"},D4=["element-loading-text"],V4={key:0,class:"flex mb-2 flex-shrink-0 rounded bg-backgroundv2 px-3 pt-2 h-[90px] box-border items-center"},$4={class:"text-sm h-[30px] flex items-center"},B4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),I4={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"},A4={class:"flex-1 mr-4"},L4={class:"text-sm h-[30px] flex items-center"},F4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),O4={class:"text-sm h-[30px] flex items-center"},R4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),P4={class:"everydayBox leading-[20px]"},M4={class:"text-xs"},U4={class:"text-xs"},z4={class:"text-xs"},W4={class:"text-xs"},j4={class:"text-xs"},H4={class:"text-xs"},Y4={class:"text-xs"},G4={class:"text-sm h-[30px] flex items-center"},q4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),K4={class:"w-full"},X4={class:"text-sm h-[30px] flex items-center"},J4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Z4={class:"flex-1 min-w-[220px]"},Q4={class:"text-sm h-[30px] flex items-center"},v4=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),eP={class:"flex items-center flex-grow h-0"},tP={class:"flex-grow w-0 h-full flex flex-col"},nP={class:"flex"},oP={class:"text-sm h-[30px] flex items-center"},aP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),sP={class:"text-sm h-[30px] flex items-center"},lP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),rP={class:"text-sm h-[30px] flex items-center"},iP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),cP={class:"test h-[32px] flex border border-hy-border-2 rounded box-border overflow-hidden bg-hy-dialog-bg-2 w-full"},dP={class:"flex-grow w-0 box-border px-1 flex items-center justify-center"},pP=["placeholder"],fP={class:"flex flex-col w-[32px] text-auxiliary border-l border-hy-border-2"},mP={class:"text-sm h-[30px] flex items-center"},hP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),uP={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"},_P={class:"tac text-hy-text-secondary text-center"},gP={class:"mt_10 mt-[10px]"},yP={class:""},xP={class:"mt-1"},kP={class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},NP={class:"flex justify-between h-[40px] items-center"},bP={class:"fs_12 p-[10px_20px] text-[12px]"},CP={class:"r-f mb_10 flex mb-[10px]"},wP=Fe(()=>e.createElementVNode("span",null,"1、",-1)),EP={class:"r-f mb_10 flex mb-[10px]"},SP=Fe(()=>e.createElementVNode("span",null,"2、",-1)),TP={class:"r-f mb_10 flex mb-[10px]"},DP=Fe(()=>e.createElementVNode("span",null,"3、",-1)),VP={class:"fs_12 cursor_pointer !text-hy-text-primary cursor-pointer text-[12px]"},$P={class:"flex-grow h-0 flex"},BP={class:"flex-1"},IP=Fe(()=>e.createElementVNode("div",{class:"mx-[20px] w-[2px] h-[96%] rounded bg-hy-border-2 flex-shrink-0"},null,-1)),AP={class:"w-[33%] h-full flex flex-col"},LP={class:"text-sm h-[30px] flex items-center"},FP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),OP={class:"text-sm h-[30px] flex items-center"},RP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),PP={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"},MP={class:"tac text-hy-text-secondary text-center"},UP={class:"mt-[10px]"},zP={class:"mt-1"},WP={key:0,class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},jP={class:"flex-grow h-0"},HP={class:"text-xs"},YP={class:"mb-2"},GP={class:"text-sm h-[30px] flex items-center"},qP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),KP={class:"mb-2"},XP={class:"text-sm h-[30px] flex items-center"},JP=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),ZP={class:"flex items-center justify-between h-[80px]"},QP={class:"text-hy-text-secondary flex items-center"},vP=be(e.defineComponent({__name:"edit-spot-check",emits:["on-submit"],setup(t,{expose:n,emit:o}){const a=o,{$t:s,dialogVisible:l,wrapperClosable:r,animationVisible:i,title:c,onClose:p,loading:d,form:f,rules:m,contentState:_,taskDateTypeFn:y,everydayJson:u,changeOnlineStateFlag:N,blurLimitNum:k,setRandomNumber:E,changeCheckScope:b,selectedDataList:S,setSelectedDataList:V,selectTemplateShow:$,onSubmit:h,selectElectronicFenceRef:g,selectDepartmentRef:C,selectDeviceRef:w,selectTemplateRef:D,viewSpotCheckRef:T,show:B,formRef:L}=b4({emit:a});return n({show:B}),(j,F)=>{const M=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-input"),U=e.resolveComponent("el-form-item"),R=e.resolveComponent("el-option"),Y=e.resolveComponent("el-select"),X=e.resolveComponent("el-checkbox"),P=e.resolveComponent("el-date-picker"),v=e.resolveComponent("el-time-picker"),Te=rA,he=e.resolveComponent("el-icon"),ke=oA,Oe=e.resolveComponent("el-popover"),J=e.resolveComponent("el-form"),ee=$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",C4)):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",w4,[e.createElementVNode("div",E4,[e.createElementVNode("div",S4,[e.createElementVNode("div",T4,e.toDisplayString(e.unref(c)),1),e.createVNode(M,{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(J,{ref_key:"formRef",ref:L,model:e.unref(f),rules:e.unref(m),"label-width":"0px",class:"w-full h-full flex flex-col"},{default:e.withCtx(()=>[e.unref(_)===3?(e.openBlock(),e.createElementBlock("div",V4,[e.createVNode(U,{prop:"templateName",class:"w-full"},{default:e.withCtx(()=>[e.createElementVNode("div",$4,[e.createTextVNode(e.toDisplayString(e.unref(s)("templateName")),1),B4]),e.createVNode(z,{modelValue:e.unref(f).templateName,"onUpdate:modelValue":F[0]||(F[0]=Z=>e.unref(f).templateName=Z),placeholder:e.unref(s)("pleaseEnterTheTemplateName"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})])):e.unref(_)===2?(e.openBlock(),e.createElementBlock("div",I4,[e.createElementVNode("div",A4,[e.createVNode(U,{prop:"taskDateType"},{default:e.withCtx(()=>[e.createElementVNode("div",L4,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionDate")),1),F4]),e.createVNode(Y,{modelValue:e.unref(f).taskDateType,"onUpdate:modelValue":F[1]||(F[1]=Z=>e.unref(f).taskDateType=Z),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheExecutionDate"),onChange:e.unref(y)},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("everyday"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("specifyAWeek"),value:2},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("specifyADate"),value:3},null,8,["label"]),e.createVNode(R,{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",O4,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyAWeek")),1),R4]),e.createElementVNode("div",P4,[e.createVNode(X,{modelValue:e.unref(u).everyday1,"onUpdate:modelValue":F[2]||(F[2]=Z=>e.unref(u).everyday1=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",M4,e.toDisplayString(e.unref(s)("monday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday2,"onUpdate:modelValue":F[3]||(F[3]=Z=>e.unref(u).everyday2=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",U4,e.toDisplayString(e.unref(s)("tuesday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday3,"onUpdate:modelValue":F[4]||(F[4]=Z=>e.unref(u).everyday3=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",z4,e.toDisplayString(e.unref(s)("wednesday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday4,"onUpdate:modelValue":F[5]||(F[5]=Z=>e.unref(u).everyday4=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",W4,e.toDisplayString(e.unref(s)("thursday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday5,"onUpdate:modelValue":F[6]||(F[6]=Z=>e.unref(u).everyday5=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",j4,e.toDisplayString(e.unref(s)("friday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday6,"onUpdate:modelValue":F[7]||(F[7]=Z=>e.unref(u).everyday6=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",H4,e.toDisplayString(e.unref(s)("saturday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday7,"onUpdate:modelValue":F[8]||(F[8]=Z=>e.unref(u).everyday7=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",Y4,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",G4,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyADate")),1),q4]),e.createElementVNode("div",K4,[e.createVNode(P,{modelValue:e.unref(f).apDateListV2,"onUpdate:modelValue":F[9]||(F[9]=Z=>e.unref(f).apDateListV2=Z),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",X4,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyATimePeriod")),1),J4]),e.createElementVNode("div",null,[e.createVNode(P,{modelValue:e.unref(f).apDtmV2,"onUpdate:modelValue":F[10]||(F[10]=Z=>e.unref(f).apDtmV2=Z),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",Z4,[e.createVNode(U,{prop:"taskDateTime"},{default:e.withCtx(()=>[e.createElementVNode("div",Q4,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionTime-0")),1),v4]),e.createVNode(v,{modelValue:e.unref(f).taskDateTime,"onUpdate:modelValue":F[11]||(F[11]=Z=>e.unref(f).taskDateTime=Z),"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",eP,[e.createElementVNode("div",tP,[e.createElementVNode("div",nP,[e.createVNode(U,{class:"flex-1"},{default:e.withCtx(()=>[e.createElementVNode("div",oP,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckType")),1),aP]),e.createVNode(Y,{modelValue:e.unref(f).checkType,"onUpdate:modelValue":F[12]||(F[12]=Z=>e.unref(f).checkType=Z),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheSpotCheckType")},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("rangeCheck"),value:1},null,8,["label"]),e.createVNode(R,{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",sP,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckDevice")),1),lP]),e.createVNode(Y,{"model-value":e.unref(f).onlineStateFlag,class:"w-full",placeholder:e.unref(s)("pleaseSelectTheSpotCheckDevice"),onChange:e.unref(N)},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("spotCheckOnlyOnlineDevices"),value:1},null,8,["label"]),e.createVNode(R,{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",rP,[e.createTextVNode(e.toDisplayString(e.unref(s)("randomNumber")),1),iP]),e.createElementVNode("div",cP,[e.createElementVNode("div",dP,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":F[13]||(F[13]=Z=>e.unref(f).limitNum=Z),type:"text",style:{outline:"none"},class:"bg-hy-dialog-bg-2 w-full h-full",placeholder:e.unref(s)("pleaseEnterTheRandomNumber"),onBlur:F[14]||(F[14]=(...Z)=>e.unref(k)&&e.unref(k)(...Z))},null,40,pP),[[e.vModelText,e.unref(f).limitNum]])]),e.createElementVNode("div",fP,[e.createElementVNode("div",{class:"flex-1 flex items-center justify-center clickBox cursor-pointer",onClick:F[15]||(F[15]=Z=>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:F[16]||(F[16]=Z=>e.unref(E)(2))},[e.createVNode(he,null,{default:e.withCtx(()=>[e.createVNode(ke)]),_:1})])])])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",mP,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckRange")),1),hP]),e.withDirectives(e.createElementVNode("div",uP,[e.createElementVNode("div",_P,[e.createVNode(M,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",gP,[e.createElementVNode("p",yP,e.toDisplayString(e.unref(s)("youDoNotNeedToSelectARangeAndDeviceForRandomCheck")),1),e.createElementVNode("p",xP,e.toDisplayString(e.unref(s)("theSystemWillHelpYouSelectRandomly")),1)])])],512),[[e.vShow,e.unref(f).checkType===2]]),e.withDirectives(e.createElementVNode("div",kP,[e.createElementVNode("div",NP,[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(R,{label:e.unref(s)("selectAnArea"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("selectADepartment"),value:2},null,8,["label"]),e.createVNode(R,{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",VP,[e.createVNode(M,{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",bP,[e.createElementVNode("li",CP,[wP,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea")),1)]),e.createElementVNode("li",EP,[SP,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment")),1)]),e.createElementVNode("li",TP,[DP,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck")),1)])])]),_:1})])]),e.createElementVNode("div",$P,[e.createElementVNode("div",BP,[e.unref(f).checkScope===1?(e.openBlock(),e.createBlock(u4,{key:0,ref_key:"selectElectronicFenceRef",ref:g,"init-selected-data-list":e.unref(S),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(f).checkScope===2?(e.openBlock(),e.createBlock(ZO,{key:1,ref_key:"selectDepartmentRef",ref:C,"init-selected-data-list":e.unref(S),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(f).checkScope===3?(e.openBlock(),e.createBlock(HR,{key:2,ref_key:"selectDeviceRef",ref:w,"init-selected-data-list":e.unref(S),"online-state-flag":e.unref(f).onlineStateFlag,onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","online-state-flag","onOnSelectedDataList"])):e.createCommentVNode("",!0)])])],512),[[e.vShow,e.unref(f).checkType===1]])]),IP,e.createElementVNode("div",AP,[e.createVNode(U,null,{default:e.withCtx(()=>[e.createElementVNode("div",LP,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckMethod")),1),FP]),e.createVNode(Y,{modelValue:e.unref(f).checkStyle,"onUpdate:modelValue":F[17]||(F[17]=Z=>e.unref(f).checkStyle=Z),class:"w-full",disabled:e.unref(_)===2,placeholder:e.unref(s)("pleaseSelectTheSpotCheckMethod")},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("message"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("call"),value:2},null,8,["label"])]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),e.createElementVNode("div",OP,[e.createTextVNode(e.toDisplayString(e.unref(s)("messageContent")),1),RP]),e.withDirectives(e.createElementVNode("div",PP,[e.createElementVNode("div",MP,[e.createVNode(M,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",UP,[e.createElementVNode("p",null,e.toDisplayString(e.unref(s)("callDoesNotRequireYouToEnterTheMessageContent")),1),e.createElementVNode("p",zP,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",WP,[e.createElementVNode("div",jP,[e.createVNode(U,{prop:"msgContent"},{default:e.withCtx(()=>[e.createVNode(z,{modelValue:e.unref(f).msgContent,"onUpdate:modelValue":F[18]||(F[18]=Z=>e.unref(f).msgContent=Z),type:"textarea",placeholder:e.unref(s)("pleaseFillInTheMessageToBeSent"),maxlength:"100",resize:"none",autosize:{minRows:e.unref(_)===1?14:10},"show-word-limit":""},null,8,["modelValue","placeholder","autosize"])]),_:1}),e.createVNode(X,{modelValue:e.unref(f).playMsg,"onUpdate:modelValue":F[19]||(F[19]=Z=>e.unref(f).playMsg=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",HP,e.toDisplayString(e.unref(s)("requiresTTSVoiceBroadcastOnTheDevice")),1)]),_:1},8,["modelValue"])]),e.createElementVNode("div",YP,[e.createElementVNode("div",GP,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerMethod")),1),qP]),e.createVNode(Y,{modelValue:e.unref(f).actionType,"onUpdate:modelValue":F[20]||(F[20]=Z=>e.unref(f).actionType=Z),class:"w-full",placeholder:e.unref(s)("pleaseSelect")},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("punchIn"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("reply"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",KP,[e.createElementVNode("div",XP,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerTime")),1),JP]),e.createVNode(Y,{modelValue:e.unref(f).actionTime,"onUpdate:modelValue":F[21]||(F[21]=Z=>e.unref(f).actionTime=Z),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheAnswerTime")},{default:e.withCtx(()=>[e.createVNode(R,{label:"5s",value:5}),e.createVNode(R,{label:"10s",value:10}),e.createVNode(R,{label:"15s",value:15}),e.createVNode(R,{label:"30s",value:30}),e.createVNode(R,{label:"60s",value:60})]),_:1},8,["modelValue","placeholder"])])])):e.createCommentVNode("",!0)])])]),_:1},8,["model","rules"])],8,D4)),[[le,e.unref(d)]]),e.createElementVNode("div",ZP,[e.createElementVNode("div",QP,[e.createVNode(he,{class:"text-sm mr-1"},{default:e.withCtx(()=>[e.createVNode(ee)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("youCanApplyTheSpotCheckTemplateToQuicklyFillInTheContent")),1)]),e.createElementVNode("div",null,[e.unref(_)!==3?(e.openBlock(),e.createBlock(ie,{key:0,class:"button_function buttonBox",onClick:e.unref($)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckTemplate")),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.createVNode(ie,{type:"primary",class:"button_default buttonBox",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(ie,{class:"button_function buttonBox",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("confirm")),1)]),_:1},8,["onClick"])])])])]),e.createVNode(N4,{ref_key:"selectTemplateRef",ref:D},null,512)],2)):e.createCommentVNode("",!0),e.createVNode(pO,{ref_key:"viewSpotCheckRef",ref:T},null,512)])}}}),[["__scopeId","data-v-1e4e7e93"]]);function e3(t){return oe.post({url:"orgGroup/detail",data:t,isFormData:!0})}function t3(){const t=e.ref({}),n=e.ref(null),o=e.ref({}),a=e.ref(1),s=e.ref([{label:x("spotCheckInformation"),value:1},{label:x("spotCheckStatus"),value:2}]),l=e.ref(0),r=e.ref([{label:x("all"),value:0},{label:x("completed-0"),value:3},{label:x("uncompleted-0"),value:4}]),i=e.ref([]),c=e.ref([]),p=e.ref(!1),d=e.ref(),f=e.computed(()=>{const h=r.value.findIndex(g=>g.value===l.value);return h!==-1?Math.ceil(h*(100/r.value.length)):0}),m=e.computed(()=>{const h=s.value.findIndex(g=>g.value===a.value);return h!==-1?Math.ceil(h*(100/s.value.length)):0});async function _(h){if(!h)return;const{code:g,data:C}=await e3({id:h});g===200&&(o.value=C)}function y(){var h;(h=d.value)==null||h.getData(l.value)}function u(h){l.value=h,e.nextTick(()=>{y()})}function N(h){a.value=h}function k(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 S(h){t.value={actionType:1,id:12},N(1),u(0),V(h),p.value=!0}async function V(h){const{code:g,data:C={}}=await Ir({id:h,getMapRail:1,getOrg:1});g===200&&(t.value=C,i.value=C.orgNameList||[],c.value=C.railNameList||[],t.value.checkNum,e.nextTick(()=>{C.checkStyle===2&&(n.value=C.groupId,_(n.value),t.value.actionType=null),p.value=!0}))}function $(){p.value=!1}return{form:t,groupId:n,orgGroupInsertTemp:o,navigationStatus:a,navigationList:s,checkStatus:l,checkStatusList:r,orgNameList:i,railNameList:c,dialogVisible:p,spotCheckTaskDeviceRef:d,checkStatusProgress:f,navigationStatusProgress:m,setCheckStatus:u,setNavigationStatus:N,setLoading:k,spotCheckTaskDeviceCountStatus:E,spotCheckTaskDeviceChange:b,show:S,detail:V,close:$}}const n3={class:"deleteBox c_fff text-hy-text-main"},o3={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]"},a3={class:"dialog_body pb-[30px] h-[60vh] flex flex-col text-main text-xs !px-0"},s3={class:"flex items-center justify-center mb-[16px]"},l3={class:"relative flex-shrink-0"},r3={class:"relative text-sm h-[36px] !leading-[36px] text-center border border-hy-bg-2 rounded text-hy-text-secondary flex overflow-hidden"},i3=["onClick"],c3={class:"flex flex-grow h-0 px-4 box-border"},d3={class:"w-full h-full box-border px-2"},p3={class:"w-full h-full bg-hy-dialog-bg-2 rounded px-3 py-1 box-border overflow-x-hidden overflow-y-auto"},f3={class:"mb-2"},m3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},h3={class:"text-hy-text-secondary"},u3={class:"mb-2"},_3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},g3={class:"mb-2"},y3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},x3={class:"mb-2"},k3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},N3={class:"mb-2"},b3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},C3={key:0,class:"mb-2"},w3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},E3={key:0},S3={key:1},T3={key:2},D3={key:0},V3={key:0},$3={key:1},B3={key:0},I3={key:2},A3={key:1,class:"mb-2"},L3={class:"text-hy-text-secondary h-[30px] leading-[30px]"},F3={key:0,class:"py-1 box-border h-full bg-hy-dialog-bg-3 rounded"},O3={class:"w-full h-[34px] px-2 box-border flex justify-between items-center"},R3={key:0,class:"ml-2 border-[2px] box-border border-hy-border-2 flex items-center justify-center h-[26px] px-2 rounded"},P3={class:"h-[40%] box-border px-2 mt-1"},M3={class:"w-full h-full box-border bg-hy-dialog-bg-2 rounded p-2 overflow-y-auto overflow-x-hidden"},U3={class:"flex px-2 mt-1"},z3={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center mr-2"},W3={class:"text-hy-text-secondary"},j3={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center"},H3={class:"text-hy-text-secondary"},Y3={class:"font-bold"},G3={key:1,class:"h-full py-1 bg-hy-dialog-bg-3 rounded"},q3={class:"w-full h-full flex items-center justify-center text-hy-text-secondary box-border"},K3={class:"r-f tac flex flex-col items-center justify-center text-center text-sm"},X3={class:"mt-3"},J3={class:"mt-1"},Z3={class:"flex flex-grow h-0 px-4 box-border"},Q3={class:"text-xs px-2 leading-[22px]"},v3={class:"flex w-full"},e8={class:"flex-shrink-0"},t8={class:"text-right font-bold flex-grow w-0"},n8={class:"flex w-full"},o8={class:"flex-shrink-0 tracking-[4px]"},a8={class:"text-right font-bold flex-grow w-0"},s8={class:"flex w-full"},l8={class:"flex-shrink-0 tracking-[4px]"},r8={class:"text-right font-bold flex-grow w-0"},i8={class:"flex w-full"},c8={class:"flex-shrink-0 tracking-[4px]"},d8={class:"text-right font-bold flex-grow w-0 text-hy-success"},p8={class:"flex w-full"},f8={class:"flex-shrink-0 tracking-[4px]"},m8={class:"text-right font-bold flex-grow w-0 text-hy-danger"},h8={class:"flex-1 flex"},u8={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},_8={class:"flex-grow w-0 text-center truncate"},g8={class:"flex-1 flex"},y8={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},x8={class:"flex-grow w-0 text-center text-hy-success truncate"},k8={class:"flex-1 flex"},N8={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},b8={class:"flex-grow w-0 text-center text-hy-danger truncate"},C8={class:"relative mt-3 mb-2 min-w-[160px]"},w8={class:"relative h-[26px] !leading-[26px] text-center border border-hy-border-2 rounded text-hy-text-secondary text-xs flex overflow-hidden"},E8=["onClick"],S8={class:"flex-grow h-0 px-2 overflow-x-hidden overflow-y-auto"},T8=e.createElementVNode("div",{class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},null,-1),D8={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"},V8={class:"r-f tac flex flex-col justify-center items-center"},$8={class:"mt-3 text-sm"},B8=e.defineComponent({__name:"spot-check-details",setup(t,{expose:n}){const{dialogVisible:o,checkStatus:a,checkStatusList:s,checkStatusProgress:l,close:r,form:i,navigationList:c,navigationStatus:p,navigationStatusProgress:d,orgGroupInsertTemp:f,orgNameList:m,railNameList:_,setCheckStatus:y,setNavigationStatus:u,spotCheckTaskDeviceChange:N,spotCheckTaskDeviceCountStatus:k,show:E,spotCheckTaskDeviceRef:b}=t3();return n({show:E}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-col"),g=e.resolveComponent("el-row"),C=e.resolveComponent("el-popover"),w=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(w,{modelValue:e.unref(o),"onUpdate:modelValue":V[1]||(V[1]=D=>e.isRef(o)?o.value=D:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"820px"},{default:e.withCtx(()=>[e.createElementVNode("div",n3,[e.createElementVNode("div",o3,[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",a3,[e.createElementVNode("div",s3,[e.createElementVNode("div",l3,[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",r3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(D,T)=>(e.openBlock(),e.createElementBlock("li",{key:T,class:e.normalizeClass([{"text-hy-text-main font-bold":D.value===e.unref(p)},"clickBox cursor-pointer px-2 w-[96px] box-border"]),onClick:B=>e.unref(u)(D.value)},e.toDisplayString(D.label),11,i3))),128))])])]),e.withDirectives(e.createElementVNode("div",c3,[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",d3,[e.createElementVNode("div",p3,[e.createElementVNode("div",f3,[e.createElementVNode("div",m3,e.toDisplayString(e.unref(x)("spotCheckPersonnel")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(i).name)+" ",1),e.createElementVNode("span",h3," ("+e.toDisplayString(e.unref(i).jobNum)+")",1)])]),e.createElementVNode("div",u3,[e.createElementVNode("div",_3,e.toDisplayString(e.unref(x)("department")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).orgName),1)]),e.createElementVNode("div",g3,[e.createElementVNode("div",y3,e.toDisplayString(e.unref(x)("spotCheckTime")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkDtm),1)]),e.createElementVNode("div",x3,[e.createElementVNode("div",k3,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",N3,[e.createElementVNode("div",b3,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",C3,[e.createElementVNode("div",w3,[e.createTextVNode(e.toDisplayString(e.unref(x)("samplingScope"))+" ",1),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("span",E3,e.toDisplayString(e.unref(x)("regionalSpotCheck")),1)):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("span",S3,e.toDisplayString(e.unref(x)("departmentSpotCheck")),1)):e.unref(i).checkScope===3?(e.openBlock(),e.createElementBlock("span",T3,e.toDisplayString(e.unref(x)("deviceSpotCheck")),1)):e.createCommentVNode("",!0),e.createTextVNode(" ) ")]),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("div",D3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(D,T)=>(e.openBlock(),e.createElementBlock("span",{key:`${T}_orgNameList`},[e.createTextVNode(e.toDisplayString(D)+" ",1),T!==e.unref(_).length-1?(e.openBlock(),e.createElementBlock("span",V3,"、")):e.createCommentVNode("",!0)]))),128))])):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("div",$3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(D,T)=>(e.openBlock(),e.createElementBlock("span",{key:`${T}_orgNameList`},[e.createTextVNode(e.toDisplayString(D)+" ",1),T!==e.unref(m).length-1?(e.openBlock(),e.createElementBlock("span",B3,"、")):e.createCommentVNode("",!0)]))),128))])):(e.openBlock(),e.createElementBlock("div",I3,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).checkNum||0)+" "+e.toDisplayString(e.unref(x)("device")),1)]))])):(e.openBlock(),e.createElementBlock("div",A3,[e.createElementVNode("div",L3,[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",F3,[e.createElementVNode("div",O3,[e.createElementVNode("div",null,e.toDisplayString(e.unref(x)("messageContent")),1),e.unref(i).playMsg===1?(e.openBlock(),e.createElementBlock("div",R3," TTS"+e.toDisplayString(e.unref(x)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",P3,[e.createElementVNode("div",M3,e.toDisplayString(e.unref(i).msgContent),1)]),e.createElementVNode("div",U3,[e.createElementVNode("div",z3,[e.createElementVNode("div",W3,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",j3,[e.createElementVNode("div",H3,e.toDisplayString(e.unref(x)("answerTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",Y3,e.toDisplayString(e.unref(i).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("second")),1)])])])])):(e.openBlock(),e.createElementBlock("div",G3,[e.createElementVNode("div",q3,[e.createElementVNode("div",K3,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",X3,e.toDisplayString(e.unref(x)("callSpotCheck")),1),e.createElementVNode("div",J3,e.toDisplayString(e.unref(x)("backupWillBeCheckedByIntercomAnswering")),1)])])]))]),_:1})]),_:1})],512),[[e.vShow,e.unref(p)===1]]),e.withDirectives(e.createElementVNode("div",Z3,[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",h8,[e.createElementVNode("div",u8,[e.createVNode($,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",_8,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("div",g8,[e.createElementVNode("div",y8,[e.createVNode($,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),e.createElementVNode("div",x8,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("div",k8,[e.createElementVNode("div",N8,[e.createVNode($,{name:"base-danger-state","class-name":"w-[16px] h-[16px] text-hy-danger"})]),e.createElementVNode("div",b8,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])],2)])]),default:e.withCtx(()=>[e.createElementVNode("ul",Q3,[e.createElementVNode("li",v3,[e.createElementVNode("span",e8,e.toDisplayString(e.unref(x)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",t8,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("li",n8,[e.createElementVNode("span",o8,e.toDisplayString(e.unref(x)("waitingToReceive")),1),e.createElementVNode("div",a8,e.toDisplayString(e.unref(i).beReceiveNum||"- -"),1)]),e.createElementVNode("li",s8,[e.createElementVNode("span",l8,e.toDisplayString(e.unref(x)("receiving")),1),e.createElementVNode("div",r8,e.toDisplayString(e.unref(i).receivingNum||"- -"),1)]),e.createElementVNode("li",i8,[e.createElementVNode("span",c8,e.toDisplayString(e.unref(x)("completed")),1),e.createElementVNode("div",d8,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("li",p8,[e.createElementVNode("span",f8,e.toDisplayString(e.unref(x)("uncompleted")),1),e.createElementVNode("div",m8,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])])]),_:1}),e.createElementVNode("div",C8,[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",w8,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(D,T)=>(e.openBlock(),e.createElementBlock("li",{key:`${T}_checkStatusList`,class:e.normalizeClass([{"text-hy-text-main":D.value===e.unref(a)},"flex-1 cursor-pointer hover:opacity-60"]),onClick:B=>e.unref(y)(D.value)},e.toDisplayString(D.label),11,E8))),128))])])],2),e.createElementVNode("div",S8,[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(N),onOnCountStatus:e.unref(k)},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(()=>[T8]),_:1})):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createElementBlock("div",D8,[e.createElementVNode("div",V8,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",$8,e.toDisplayString(e.unref(x)("noDeviceSupportsThisSpotCheck")),1)])]))],512),[[e.vShow,e.unref(p)===2]])])])]),_:1},8,["modelValue"])}}});function I8(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 Mr(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 A8={class:"flex flex-col h-full text-xs"},L8={class:"flex items-center"},F8={class:"!w-[114px]"},O8={class:"text-hy-text-main"},R8={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},P8={class:"flex-grow w-0 flex items-center mr-1"},M8={class:"overflow-ellipsis overflow-hidden mx-1"},U8={class:"flex-shrink-0 flex items-center"},z8={key:0,class:"w-full"},W8={class:"w-full h-full flex items-center"},j8={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},H8={class:"flex-shrink-0 text-xs ml-1 mr-2 text-hy-main"},Y8=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:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=I8({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"采集站名称,群组名称筛选"}],E.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:"采集站",value:8,placeholder:x("采集站名称进行筛选")}),E.value=k.value[0].value),a.defaultGetData||h()}),(w,D)=>{const T=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),L=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),F=e.resolveComponent("el-input"),M=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",A8,[e.createElementVNode("div",L8,[e.createVNode(F,{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",O8,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(L,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",F8,[e.createVNode(B,{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(k),(z,U)=>(e.openBlock(),e.createBlock(T,{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",R8,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.sname},{default:e.withCtx(()=>[e.createElementVNode("div",P8,[e.createVNode(L,{name:"menu-acquisition-station-2",class:"!w-[20px] !h-[20px]"}),e.createElementVNode("div",M8,[e.createElementVNode("span",null,e.toDisplayString(z.sname),1)])])]),_:2},1032,["content"]),z.todayFile?(e.openBlock(),e.createBlock(M,{key:0,class:"item","show-after":1e3,content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",U8,[e.createVNode(L,{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",z8,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",W8,[e.createElementVNode("div",j8,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)]),e.createElementVNode("span",H8,"("+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 G8(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 Rr(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 q8={class:"flex flex-col h-full text-xs"},K8={class:"flex items-center"},X8={class:"!w-[114px]"},J8={class:"text-hy-text-main"},Z8={key:0,class:"flex items-center w-full h-full click-box"},Q8={class:"flex-grow w-0 h-full flex items-center text-hy-text-main"},v8={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},eM={class:"text-hy-text-main"},tM={class:"flex-shrink-0 ml-1 mr-2 h-full flex items-center justify-center"},nM={key:0,class:"w-full h-full"},oM=["onClick"],aM={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},sM=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:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C,onClickDevice:w,onClickOrganization:D}=G8({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"部门、群组名称、设备名称、设备IMEI进行搜索"}],E.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:x("equipment"),value:3,placeholder:x("filterByDeviceNumberAndDeviceName")}),a.hideGroup||k.value.push({label:"群组",value:4,placeholder:"群组名称进行筛选"}),E.value=k.value[0].value),a.defaultGetData||h()}),(T,B)=>{const L=e.resolveComponent("el-option"),j=e.resolveComponent("el-select"),F=e.resolveComponent("svg-icon"),M=e.resolveComponent("el-button"),z=e.resolveComponent("el-input"),U=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",q8,[e.createElementVNode("div",K8,[e.createVNode(z,{modelValue:e.unref(g),"onUpdate:modelValue":B[1]||(B[1]=R=>e.isRef(g)?g.value=R: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",J8,[e.createVNode(M,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(F,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",X8,[e.createVNode(j,{modelValue:e.unref(E),"onUpdate:modelValue":B[0]||(B[0]=R=>e.isRef(E)?E.value=R: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(k),(R,Y)=>(e.openBlock(),e.createBlock(L,{key:`${Y}_selectFilterList`,label:R.label,value:R.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(T.$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:R})=>[e.renderSlot(T.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:R}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Z8,[e.createVNode(U,{class:"item",content:R.groupName,effect:"dark",placement:"bottom","show-after":1e3},{default:e.withCtx(()=>{var Y;return[e.createElementVNode("div",Q8,[e.createElementVNode("div",v8,[e.createElementVNode("span",eM,e.toDisplayString(R.groupName),1)]),e.withDirectives(e.createElementVNode("span",{class:"flex-shrink-0 text-xs mr-2 ml-1 text-hy-main"},"("+e.toDisplayString(((Y=R.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",tM,[e.createVNode(F,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})],512),[[e.vShow,R.todayFile]])]),_:2},1032,["content"])]))]),"other-content":e.withCtx(({row:R})=>[e.renderSlot(T.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:R}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",nM,[R.type===3?(e.openBlock(),e.createBlock(pa,{key:0,device:R,onOnClickDevice:e.unref(w)},null,8,["device","onOnClickDevice"])):e.createCommentVNode("",!0),R.type!==3?(e.openBlock(),e.createBlock(U,{key:1,"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:R.companyName||R.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"w-full h-full flex items-center",onClick:Y=>e.unref(D)(R)},[e.createElementVNode("div",aM,[e.createElementVNode("span",null,e.toDisplayString(R.companyName||R.orgName),1)])],8,oM)]),_: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 lM(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 Pr(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 rM={class:"flex flex-col h-full text-xs"},iM={class:"flex items-center"},cM={class:"!w-[114px]"},dM={class:"text-hy-text-main"},pM={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},fM={class:"flex-grow w-0 flex items-center mr-1"},mM={class:"overflow-ellipsis overflow-hidden mx-1"},hM={class:"flex-shrink-0 flex items-center"},uM={key:0,class:"w-full"},_M={class:"w-full h-full flex items-center"},gM={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},yM={class:"flex-shrink-0 text-xs ml-1 mx-2 text-hy-main"},xM=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:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:E,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=lM({emit:s,props:a,params:{selectFilterType:E,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"人员名称,部门名称筛选"}],E.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:"人员",value:5,placeholder:x("filterByPersonnelName")}),E.value=k.value[0].value),a.defaultGetData||h()}),(w,D)=>{const T=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),L=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),F=e.resolveComponent("el-input"),M=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",rM,[e.createElementVNode("div",iM,[e.createVNode(F,{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",dM,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(L,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",cM,[e.createVNode(B,{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(k),(z,U)=>(e.openBlock(),e.createBlock(T,{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",pM,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.name},{default:e.withCtx(()=>[e.createElementVNode("div",fM,[e.createVNode(L,{name:"icon-user",class:"!w-[14px] !h-[14px]"}),e.createElementVNode("div",mM,[e.createElementVNode("span",null,e.toDisplayString(z.name),1)])])]),_:2},1032,["content"]),z.todayFile?(e.openBlock(),e.createBlock(M,{key:0,class:"item","show-after":1e3,content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",hM,[e.createVNode(L,{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",uM,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",_M,[e.createElementVNode("div",gM,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)]),e.createElementVNode("span",yM,"("+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 Wr=(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))(Wr||{});ae.DeviceEnum=Wr,ae.HyAbnormalDetail=i2,ae.HyAcquisitionStationTree=Y8,ae.HyAddDepartmentType=rh,ae.HyAudioPlayer=br,ae.HyBoxBorder=$e,ae.HyCommonTaskDetailModal=vI,ae.HyDataTimeShortcuts=Bd,ae.HyDeviceDetails=Hu,ae.HyDeviceTree=zr,ae.HyDeviceTreeCpns=pa,ae.HyEditSpotCheck=vP,ae.HyElectronicFence=w1,ae.HyElectronicPatrolDetail=Vr,ae.HyFileDetails=vb,ae.HyFileUpload=QC,ae.HyImageViewer=Wo,ae.HyMapNoPermissions=Gt,ae.HyMapSearchPlace=na,ae.HyMenuComponents=Kf,ae.HyNoData=Zf,ae.HyOrgCascader=Tl,ae.HyOrgGroupTree=sM,ae.HyOrgTree=Ur,ae.HyRoundButton=Me,ae.HySelect=bf,ae.HySelectMapLocation=ow,ae.HySpotCheckDetail=B8,ae.HySvgIcon=Dl,ae.HyTable=Yt,ae.HyTableHead=_m,ae.HyTipsModal=mt,ae.HyUserHead=xt,ae.HyUserTree=xM,ae.HyVideoPlayer=oa,ae.HyVueCropper=Bl,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})});