command-center-v3-common 0.0.135 → 0.0.136

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 F1=Object.prototype.hasOwnProperty,Yl=(t,n)=>F1.call(t,n),Gn=t=>typeof t=="function",mn=t=>typeof t=="string",Gl=t=>t!==null&&typeof t=="object";var O1=typeof global=="object"&&global&&global.Object===Object&&global,R1=typeof self=="object"&&self&&self.Object===Object&&self,Xo=O1||R1||Function("return this")(),Xt=Xo.Symbol,ql=Object.prototype,P1=ql.hasOwnProperty,M1=ql.toString,hn=Xt?Xt.toStringTag:void 0;function U1(t){var n=P1.call(t,hn),o=t[hn];try{t[hn]=void 0;var a=!0}catch{}var s=M1.call(t);return a&&(n?t[hn]=o:delete t[hn]),s}var z1=Object.prototype,W1=z1.toString;function j1(t){return W1.call(t)}var H1="[object Null]",Y1="[object Undefined]",Kl=Xt?Xt.toStringTag:void 0;function Xl(t){return t==null?t===void 0?Y1:H1:Kl&&Kl in Object(t)?U1(t):j1(t)}function G1(t){return t!=null&&typeof t=="object"}var q1="[object Symbol]";function Jo(t){return typeof t=="symbol"||G1(t)&&Xl(t)==q1}function K1(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 Zo=Array.isArray,X1=1/0,Jl=Xt?Xt.prototype:void 0,Zl=Jl?Jl.toString:void 0;function Ql(t){if(typeof t=="string")return t;if(Zo(t))return K1(t,Ql)+"";if(Jo(t))return Zl?Zl.call(t):"";var n=t+"";return n=="0"&&1/t==-X1?"-0":n}function vl(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var J1="[object AsyncFunction]",Z1="[object Function]",Q1="[object GeneratorFunction]",v1="[object Proxy]";function ex(t){if(!vl(t))return!1;var n=Xl(t);return n==Z1||n==Q1||n==J1||n==v1}var Qo=Xo["__core-js_shared__"],er=function(){var t=/[^.]+$/.exec(Qo&&Qo.keys&&Qo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function tx(t){return!!er&&er in t}var nx=Function.prototype,ox=nx.toString;function ax(t){if(t!=null){try{return ox.call(t)}catch{}try{return t+""}catch{}}return""}var sx=/[\\^$.*+?()[\]{}|]/g,lx=/^\[object .+?Constructor\]$/,rx=Function.prototype,ix=Object.prototype,cx=rx.toString,dx=ix.hasOwnProperty,px=RegExp("^"+cx.call(dx).replace(sx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fx(t){if(!vl(t)||tx(t))return!1;var n=ex(t)?px:lx;return n.test(ax(t))}function mx(t,n){return t==null?void 0:t[n]}function tr(t,n){var o=mx(t,n);return fx(o)?o:void 0}function hx(t,n){return t===n||t!==t&&n!==n}var ux=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_x=/^\w*$/;function gx(t,n){if(Zo(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||Jo(t)?!0:_x.test(t)||!ux.test(t)||n!=null&&t in Object(n)}var un=tr(Object,"create");function yx(){this.__data__=un?un(null):{},this.size=0}function xx(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}var kx="__lodash_hash_undefined__",Nx=Object.prototype,bx=Nx.hasOwnProperty;function Cx(t){var n=this.__data__;if(un){var o=n[t];return o===kx?void 0:o}return bx.call(n,t)?n[t]:void 0}var wx=Object.prototype,Ex=wx.hasOwnProperty;function Sx(t){var n=this.__data__;return un?n[t]!==void 0:Ex.call(n,t)}var Tx="__lodash_hash_undefined__";function Dx(t,n){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=un&&n===void 0?Tx: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=yx,Bt.prototype.delete=xx,Bt.prototype.get=Cx,Bt.prototype.has=Sx,Bt.prototype.set=Dx;function Vx(){this.__data__=[],this.size=0}function qn(t,n){for(var o=t.length;o--;)if(hx(t[o][0],n))return o;return-1}var $x=Array.prototype,Bx=$x.splice;function Ax(t){var n=this.__data__,o=qn(n,t);if(o<0)return!1;var a=n.length-1;return o==a?n.pop():Bx.call(n,o,1),--this.size,!0}function Ix(t){var n=this.__data__,o=qn(n,t);return o<0?void 0:n[o][1]}function Lx(t){return qn(this.__data__,t)>-1}function Fx(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=Vx,Jt.prototype.delete=Ax,Jt.prototype.get=Ix,Jt.prototype.has=Lx,Jt.prototype.set=Fx;var Ox=tr(Xo,"Map");function Rx(){this.size=0,this.__data__={hash:new Bt,map:new(Ox||Jt),string:new Bt}}function Px(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 Px(n)?o[typeof n=="string"?"string":"hash"]:o.map}function Mx(t){var n=Kn(this,t).delete(t);return this.size-=n?1:0,n}function Ux(t){return Kn(this,t).get(t)}function zx(t){return Kn(this,t).has(t)}function Wx(t,n){var o=Kn(this,t),a=o.size;return o.set(t,n),this.size+=o.size==a?0:1,this}function At(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])}}At.prototype.clear=Rx,At.prototype.delete=Mx,At.prototype.get=Ux,At.prototype.has=zx,At.prototype.set=Wx;var jx="Expected a function";function vo(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new TypeError(jx);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(vo.Cache||At),o}vo.Cache=At;var Hx=500;function Yx(t){var n=vo(t,function(a){return o.size===Hx&&o.clear(),a}),o=n.cache;return n}var Gx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qx=/\\(\\)?/g,Kx=Yx(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(Gx,function(o,a,s,l){n.push(s?l.replace(qx,"$1"):a||o)}),n});function Xx(t){return t==null?"":Ql(t)}function Jx(t,n){return Zo(t)?t:gx(t,n)?[t]:Kx(Xx(t))}var Zx=1/0;function Qx(t){if(typeof t=="string"||Jo(t))return t;var n=t+"";return n=="0"&&1/t==-Zx?"-0":n}function vx(t,n){n=Jx(n,t);for(var o=0,a=n.length;t!=null&&o<a;)t=t[Qx(n[o++])];return o&&o==a?t:void 0}function ek(t,n,o){var a=t==null?void 0:vx(t,n);return a===void 0?o:a}function tk(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 nk=t=>t===void 0,nr=t=>typeof t=="boolean",It=t=>typeof t=="number",ok=t=>typeof Element>"u"?!1:t instanceof Element,ak=t=>mn(t)?!Number.isNaN(Number(t)):!1,or=t=>Object.keys(t);class sk extends Error{constructor(n){super(n),this.name="ElementPlusError"}}function Xn(t,n){if(process.env.NODE_ENV!=="production"){const o=mn(t)?new sk(`[${t}] ${n}`):t;console.warn(o)}}const lk="utils/dom/style";function ea(t,n="px"){if(!t)return"";if(It(t)||ak(t))return`${t}${n}`;if(mn(t))return t;Xn(lk,"binding value must be a string or number")}const ar="__epPropKey",at=t=>t,rk=t=>Gl(t)&&!!t[ar],sr=(t,n)=>{if(!Gl(t)||rk(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),Yl(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,[ar]:!0};return Yl(t,"default")&&(c.default=s),c},_n=t=>tk(Object.entries(t).map(([n,o])=>[n,sr(o,n)])),ik=at([String,Object,Function]),ck={Close:th,SuccessFilled:Rs,InfoFilled:Os,WarningFilled:Ps,CircleCloseFilled:Fs},lr={success:Rs,warning:Ps,error:Fs,info:Os},rr=(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},dk=(t,n)=>(t.install=o=>{t._context=o._context,o.config.globalProperties[n]=t},t),pk={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"},fk=["","default","small","large"],mk=t=>t,hk=t=>(n,o)=>uk(n,o,e.unref(t)),uk=(t,n,o)=>ek(o,t,t).replace(/\{(\w+)\}/g,(a,s)=>{var l;return`${(l=n==null?void 0:n[s])!=null?l:`{${s}}`}`}),_k=t=>{const n=e.computed(()=>e.unref(t).name),o=e.isRef(t)?t:e.ref(t);return{lang:n,locale:o,t:hk(t)}},ir=Symbol("localeContextKey"),gk=t=>{const n=t||e.inject(ir,e.ref());return _k(e.computed(()=>n.value||ei))},Jn="el",yk="is-",Lt=(t,n,o,a,s)=>{let l=`${t}-${n}`;return o&&(l+=`-${o}`),a&&(l+=`__${a}`),s&&(l+=`--${s}`),l},cr=Symbol("namespaceContextKey"),xk=t=>{const n=t||(e.getCurrentInstance()?e.inject(cr,e.ref(Jn)):e.ref(Jn));return e.computed(()=>e.unref(n)||Jn)},ta=(t,n)=>{const o=xk(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?`${yk}${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}`}},dr={current:0},pr=e.ref(0),fr=2e3,mr=Symbol("elZIndexContextKey"),hr=Symbol("zIndexContextKey"),kk=t=>{const n=e.getCurrentInstance()?e.inject(mr,dr):dr,o=t||(e.getCurrentInstance()?e.inject(hr,void 0):void 0),a=e.computed(()=>{const r=e.unref(o);return It(r)?r:fr}),s=e.computed(()=>a.value+pr.value),l=()=>(n.current++,pr.value=n.current,s.value);return!Kt&&!e.inject(mr)&&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}},Nk=sr({type:String,values:fk,required:!1}),bk=Symbol("size"),Ck=Symbol("emptyValuesContextKey"),wk=_n({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>Gn(t)?!t():!t}}),ur=Symbol(),Zn=e.ref();function _r(t,n=void 0){const o=e.getCurrentInstance()?e.inject(ur,Zn):Zn;return t?e.computed(()=>{var a,s;return(s=(a=o.value)==null?void 0:a[t])!=null?s:n}):o}function Ek(t,n){const o=_r(),a=ta(t,e.computed(()=>{var i;return((i=o.value)==null?void 0:i.namespace)||Jn})),s=gk(e.computed(()=>{var i;return(i=o.value)==null?void 0:i.locale})),l=kk(e.computed(()=>{var i;return((i=o.value)==null?void 0:i.zIndex)||fr})),r=e.computed(()=>{var i;return e.unref(n)||((i=o.value)==null?void 0:i.size)||""});return gr(e.computed(()=>e.unref(o)||{})),{ns:a,locale:s,zIndex:l,size:r}}const gr=(t,n,o=!1)=>{var a;const s=!!e.getCurrentInstance(),l=s?_r():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?Sk(l.value,c):c});return r(ur,i),r(ir,e.computed(()=>i.value.locale)),r(cr,e.computed(()=>i.value.namespace)),r(hr,e.computed(()=>i.value.zIndex)),r(bk,{size:e.computed(()=>i.value.size||"")}),r(Ck,e.computed(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(o||!Zn.value)&&(Zn.value=i.value),i},Sk=(t,n)=>{const o=[...new Set([...or(t),...or(n)])],a={};for(const s of o)a[s]=n[s]!==void 0?n[s]:t[s];return a},Tk=_n({a11y:{type:Boolean,default:!0},locale:{type:at(Object)},size:Nk,button:{type:at(Object)},experimentalFeatures:{type:at(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:at(Object)},zIndex:Number,namespace:{type:String,default:"el"},...wk}),Qe={};e.defineComponent({name:"ElConfigProvider",props:Tk,setup(t,{slots:n}){e.watch(()=>t.message,a=>{Object.assign(Qe,a??{})},{immediate:!0,deep:!0});const o=gr(t);return()=>e.renderSlot(n,"default",{config:o==null?void 0:o.value})}});var na=(t,n)=>{const o=t.__vccOpts||t;for(const[a,s]of n)o[a]=s;return o};const Dk=_n({size:{type:at([Number,String])},color:{type:String}}),Vk=e.defineComponent({name:"ElIcon",inheritAttrs:!1}),$k=e.defineComponent({...Vk,props:Dk,setup(t){const n=t,o=ta("icon"),a=e.computed(()=>{const{size:s,color:l}=n;return!s&&!l?{}:{fontSize:nk(s)?void 0:ea(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 Bk=na($k,[["__file","icon.vue"]]);const yr=rr(Bk),Ak=_n({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:at([String,Object,Array])},offset:{type:at(Array),default:[0,0]},badgeClass:{type:String}}),Ik=e.defineComponent({name:"ElBadge"}),Lk=e.defineComponent({...Ik,props:Ak,setup(t,{expose:n}){const o=t,a=ta("badge"),s=e.computed(()=>o.isDot?"":It(o.value)&&It(o.max)?o.max<o.value?`${o.max}+`:o.value===0&&!o.showZero?"":`${o.value}`:`${o.value}`),l=e.computed(()=>{var r,i,c,p,d;return[{backgroundColor:o.color,marginRight:ea(-((i=(r=o.offset)==null?void 0:r[0])!=null?i:0)),marginTop:ea((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 Fk=na(Lk,[["__file","badge.vue"]]);const Ok=rr(Fk),xr=["success","info","warning","error"],ze=mk({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}),Rk=_n({customClass:{type:String,default:ze.customClass},center:{type:Boolean,default:ze.center},dangerouslyUseHTMLString:{type:Boolean,default:ze.dangerouslyUseHTMLString},duration:{type:Number,default:ze.duration},icon:{type:ik,default:ze.icon},id:{type:String,default:ze.id},message:{type:at([String,Object,Function]),default:ze.message},onClose:{type:at(Function),default:ze.onClose},showClose:{type:Boolean,default:ze.showClose},type:{type:String,values:xr,default:ze.type},plain:{type:Boolean,default:ze.plain},offset:{type:Number,default:ze.offset},zIndex:{type:Number,default:ze.zIndex},grouping:{type:Boolean,default:ze.grouping},repeatNum:{type:Number,default:ze.repeatNum}}),Pk={destroy:()=>!0},ve=e.shallowReactive([]),Mk=t=>{const n=ve.findIndex(s=>s.id===t),o=ve[n];let a;return n>0&&(a=ve[n-1]),{current:o,prev:a}},Uk=t=>{const{prev:n}=Mk(t);return n?n.vm.exposed.bottom.value:0},zk=(t,n)=>ve.findIndex(a=>a.id===t)>0?16:n,Wk=e.defineComponent({name:"ElMessage"}),jk=e.defineComponent({...Wk,props:Rk,emits:Pk,setup(t,{expose:n}){const o=t,{Close:a}=ck,{ns:s,zIndex:l}=Ek("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&&lr[h]}}),y=e.computed(()=>o.icon||lr[o.type]||""),u=e.computed(()=>Uk(o.id)),N=e.computed(()=>zk(o.id,o.offset)+u.value),k=e.computed(()=>d.value+N.value),w=e.computed(()=>({top:`${N.value}px`,zIndex:r.value}));function b(){o.duration!==0&&({stop:f}=w1(()=>{V()},o.duration))}function S(){f==null||f()}function V(){p.value=!1}function $({code:h}){h===pk.esc&&V()}return e.onMounted(()=>{b(),i(),p.value=!0}),e.watch(()=>o.repeatNum,()=>{S(),b()}),E1(document,"keydown",$),$1(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(w)),role:"alert",onMouseenter:S,onMouseleave:b},[h.repeatNum>1?(e.openBlock(),e.createBlock(e.unref(Ok),{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(yr),{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(yr),{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 Hk=na(jk,[["__file","message.vue"]]);let Yk=1;const kr=t=>{const n=!t||mn(t)||e.isVNode(t)||Gn(t)?{message:t}:t,o={...ze,...n};if(!o.appendTo)o.appendTo=document.body;else if(mn(o.appendTo)){let a=document.querySelector(o.appendTo);ok(a)||(Xn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),o.appendTo=a}return nr(Qe.grouping)&&!o.grouping&&(o.grouping=Qe.grouping),It(Qe.duration)&&o.duration===3e3&&(o.duration=Qe.duration),It(Qe.offset)&&o.offset===16&&(o.offset=Qe.offset),nr(Qe.showClose)&&!o.showClose&&(o.showClose=Qe.showClose),o},Gk=t=>{const n=ve.indexOf(t);if(n===-1)return;ve.splice(n,1);const{handler:o}=t;o.close()},qk=({appendTo:t,...n},o)=>{const a=`message_${Yk++}`,s=n.onClose,l=document.createElement("div"),r={...n,id:a,onClose:()=>{s==null||s(),Gk(d)},onDestroy:()=>{e.render(null,l)}},i=e.createVNode(Hk,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=kr(t);if(o.grouping&&ve.length){const s=ve.find(({vnode:l})=>{var r;return((r=l.props)==null?void 0:r.message)===o.message});if(s)return s.props.repeatNum+=1,s.props.type=o.type,s.handler}if(It(Qe.max)&&ve.length>=Qe.max)return{close:()=>{}};const a=qk(o,n);return ve.push(a),a.handler};xr.forEach(t=>{Zt[t]=(n={},o)=>{const a=kr(n);return Zt({...a,type:t},o)}});function Kk(t){for(const n of ve)(!t||t===n.props.type)&&n.handler.close()}Zt.closeAll=Kk,Zt._context=null;const Se=dk(Zt,"$message");function Xk({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 E=Number(f.value.lat);return E<=90&&E>=-90?E:"内容错误"}),_=e.computed(()=>{const E=Number(f.value.lng);return E<=180&&E>=-180?E:"内容错误"});function y(){m.value&&m.value!=="内容错误"&&_&&_.value!=="内容错误"&&u(f.value)}function u(E){if(E.lng&&E.lat){t.h.setView(t.map,[E.lat,E.lng],18);const D=t.h.marker(t.map,[E.lat,E.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(E,D){return T=>{if(!s.value)return!1;s.value=!1,setTimeout(()=>{E(T),s.value=!0},D)}}function k(){console.log("触发加载"),!c.value&&(p.value=!0,r.value++,e.nextTick(()=>{S()}))}function w(){n.value=null,f.value={lat:"",lng:""},b()}function b(E){o.value=[],r.value=1,c.value=!1,p.value=!1,a.value!==5&&e.nextTick(()=>{E!==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 E=await t.poi.placeSearch({keywords:n.value,offset:l.value,page:r.value});if(console.log(E),E){const D=E,T=[];for(let B=0;B<D.length;B++){const L=D[B];T.push({...L,id:mt.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 E=await f1({page:r.value-1,size:10,query:n.value});if(E.code===200){const D=E.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===E.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}async function h(){const E=await g_({page:r.value-1,size:10,query:n.value});if(E.code===200){const D=E.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===E.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}function g(E){const D=[];for(let T=0;T<E.length;T++){const B=E[T],L=n.value.indexOf(B),j={content:E[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:w,placeholderFn:C,inputSearch:f,showSearchLat:m,showSearchLng:_,searchLngLat:y}}const Jk={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"},Zk=["src"],Qk={class:"ml_10 ml-[10px]",style:{width:"calc(100% - 34px)"}},vk={class:"title fs_14 c_fff over_one_line fw_600 text-[14px] text-hy-text-main truncate font-bold"},eN={class:"address over_one_line fs_12 c_fff truncate text-[12px] text-hy-text-main"},tN={class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"},nN={class:"ml_20 ml-[20px]"},oN=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",Jk,[e.createElementVNode("img",{src:e.unref(l).orgTypeIcon,class:"w-full h-full"},null,8,Zk)])):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",Qk,[e.createElementVNode("div",vk,[(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",eN,e.toDisplayString(e.unref(l).address),1),e.createElementVNode("div",tN,[e.createElementVNode("span",null,"经度:"+e.toDisplayString(e.unref(l).lng),1),e.createElementVNode("span",nN,"维度:"+e.toDisplayString(e.unref(l).lat),1)])])])}}}),[["__scopeId","data-v-393b9954"]]),aN=t=>(e.pushScopeId("data-v-5856b649"),t=t(),e.popScopeId(),t),sN={style:{display:"inline-block","flex-direction":"column",width:"300px"},class:"search_lightColor pos_r relative"},lN={class:"r-f flex"},rN={class:"flex",style:{width:"calc(100% - 42px)"}},iN={key:1,class:"w-[58%] flex justify-between ml-[4px]"},cN={class:"flex flex-col leading-[20px] ml-[10px]"},dN=aN(()=>e.createElementVNode("span",{class:"text-[14px] font-[600] text-hy-text-main mb-[5px]"},"填写经纬度",-1)),pN={class:"text-[12px] text-hy-text-secondary"},fN={class:"text-[12px] text-hy-text-secondary"},mN={key:2,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},hN={key:3,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},oa=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}=Xk({props:n});return e.onMounted(()=>{var w;a.value=(w=n.searchTypes[0])==null?void 0:w.value}),(w,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",sN,[e.createElementVNode("div",lN,[e.createElementVNode("div",rN,[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(w.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",iN,[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(mt.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(mt.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(Hs),{key:0,"infinite-scroll-disabled":"disabled",class:"filterContentList",style:{height:"400px","overflow-y":"auto"},"data-key":"id","data-sources":e.unref(p),"data-component":oN,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",cN,[dN,e.createElementVNode("span",pN,[e.createTextVNode("经度:"),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)==="内容错误"?"text-hy-danger":"")},e.toDisplayString(e.unref(l)||"请输入经度"),3)]),e.createElementVNode("span",fN,[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",mN," 加载中... ")):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createElementBlock("p",hN," 没有更多了 ")):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-5856b649"]]);function Qt(t=mt.sessionCache.getCache("mapConfig")){function n(){if(!t){mt.logger.warning("use-map","initHyMap","地图配置不能为空");return}const i=bn.MapProviderFactory.createMapProvider(t.mapType);return new bn.HyMap(i,t)}function o(){if(!t){mt.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 uN(t){return oe.post({url:"mapRail/findAllWithDevice",data:t,isFormData:!0})}function _N(t){return oe.post({url:"mapRail/deleteBatch",data:t,isFormData:!0})}function gN(t){return oe.post({url:t.id?"mapRail/update":"mapRail/insert",data:t,isJson:!0})}function Nr(t){return oe.post({url:"mapRail/select",data:t,isFormData:!0})}function yN(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),w=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=Ue.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 $(){E(),w.value&&(l.removePolygon(p.value,w.value),w.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){w.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(w.value),E()}function E(){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 Nr({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(w.value)}function j(){var z;L();let M=[];if(w.value&&(M=l.getShapeLatLngs(w.value)),(M==null?void 0:M.length)===0||!w.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 gN(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 xN=t=>(e.pushScopeId("data-v-b3493890"),t=t(),e.popScopeId(),t),kN={class:"text-hy-text-main"},NN={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]"},bN={class:"dialog_body"},CN={class:""},wN={class:"form-label"},EN={class:"relative flex flex-row h-[50px]"},SN={class:"z-[1]"},TN={class:"form-label"},DN={class:"w-full flex items-center form-item"},VN={class:"form-label"},$N={class:"flex items-center form-item"},BN=xN(()=>e.createElementVNode("span",{class:"text-sm ml-[10px] text-hy-text-secondary flex-shrink"},"M",-1)),AN={class:"flex items-center form-item"},IN={class:"text-xs text-hy-text-secondary flex items-center"},LN={class:"text-hy-main"},FN={class:"text-right mt-[10px]"},ON=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:w,startDraw:b,removePolygon:S,onSubmit:V}=yN({emit:a});return n({show:w}),($,h)=>{const g=e.resolveComponent("svg-icon"),C=e.resolveComponent("el-input"),E=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",kN,[e.createElementVNode("div",NN,[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",bN,[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(E,{prop:"railName"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",CN,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(E,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",wN,e.toDisplayString(e.unref(x)("electronicFenceRange")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",EN,[e.createElementVNode("div",SN,[e.unref(u)&&e.unref(_)?(e.openBlock(),e.createBlock(oa,{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(E,{class:"m-0 pl-[20px]"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",TN,e.toDisplayString(e.unref(x)("drawingMethod")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",DN,[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(E,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",VN,e.toDisplayString(e.unref(x)("rangeDistance")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",$N,[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"]),BN])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(D,{span:6},{default:e.withCtx(()=>[e.createVNode(E,{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",AN,[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(E,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",IN,[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",LN,e.toDisplayString(e.unref(f)),1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"]),e.createElementVNode("div",FN,[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 RN(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){ft({tipsTitle:x("deleteElectronicFence"),tipsContent:`<div><p>${x("confirmToDeleteTheCurrentDeletedElectronicFence")}?</p></div>`,submitBtnText:x("confirm-0")},async()=>{(await _N({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 PN={class:"w-full h-full"},MN={class:"flex items-center justify-center"},UN={class:"ml-[6px]"},zN={class:"flex"},WN=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}=RN({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",PN,[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",MN,[e.createVNode(y,{width:"16",height:"16",name:"base-add-3"}),e.createElementVNode("span",UN,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:w=>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",zN,[e.createVNode(Me,{name:"icon-edit",tips:e.unref(x)("edit"),onClick:w=>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:w=>e.unref(f)(k.id)},null,8,["tips","onClick"])])]),_:3},8,["search-arr","column-list","search-form"]),e.createVNode(ON,{ref_key:"addElectronicFenceRef",ref:s,onOnSubmit:e.unref(d)},null,8,["onOnSubmit"])])}}});var qe=(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))(qe||{});function jN(t){return oe.post({url:"/mediaFile/location/findAll",data:{mediaFileId:t},isFormData:!0})}function HN(t){return oe.get({url:t,xAmzAcl:!0,isFileUpload:!0,fileType:""})}function br(t){return oe.post({url:"/mediaFile/getFileScore",data:{id:t},isFormData:!0})}function YN(t){return oe.post({url:"/mediaFile/fileScore",data:t,isJson:!0})}function GN(t){return oe.post({url:"/mediaFile/remark/findAll",data:t,isFormData:!0})}function qN(t){return oe.post({url:"/mediaFile/saveRemark",data:t,isJson:!0})}function Cr(t){return oe.post({url:"/mediaFile/remark/deleteBatch",data:t,isFormData:!0})}function KN(t){return oe.post({url:"/mediaFile/point/findAll",data:t,isFormData:!0})}function XN(t){return oe.post({url:"/mediaFile/savePoint",data:t,isJson:!0})}function JN(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(qe.NO_LOAD),u=e.ref(100),N=e.computed(()=>y.value!==qe.NO_LOAD&&y.value!==qe.CAN_NOT_PLAY),k=e.computed(()=>o.value.playList.find(U=>U.id===d.value.id));function w(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")),w(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(qe.IS_LOAD),f.value=Math.floor(i.value.duration),n("can-play",f.value)}),i.value.addEventListener("play",()=>{i.value.playbackRate=s.value,z(qe.PLAYING),p.value&&k.value&&n("play-start",{audioUrl:p.value,playItem:k.value})}),i.value.addEventListener("pause",()=>{z(qe.PAUSE)}),i.value.addEventListener("volumechange",()=>{u.value=i.value.volume*100}),i.value.addEventListener("ended",()=>{z(qe.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(qe.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];E(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];E(R.filePath,R)}else pe.ElMessage.warning(x("currentIsTheFirstItem"))}function E(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 HN(`/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:E,resumePlay:D,pauseAudio:T,getNowWh:B,changeVolume:L,getPercent:j,jumpDuration:F,canPlay:N}}const ZN=t=>(e.pushScopeId("data-v-27a5006a"),t=t(),e.popScopeId(),t),QN={class:"w-full flex items-center box-border"},vN=ZN(()=>e.createElementVNode("audio",{id:"audio-el"},null,-1)),e0={class:"flex-grow w-0 mx-3 progress-box"},t0={class:"flex justify-between items-center text-xs text-hy-text-secondary mt-1"},n0={class:"flex-shrink-0 flex"},o0={class:"flex items-center justify-center p-[10px_0]"},a0={class:"text-hy-text-secondary text-xs w-full"},s0=["onClick"],l0={class:"flex items-center click-box"},r0={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"},i0={class:"click-box"},c0={key:1},d0=["onClick"],p0={class:"click-box mx-1"},f0={class:"flex items-center justify-center"},m0={class:"click-box click-box"},wr=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:w,speedFn:b,initPlayer:S,playNext:V,playPrevious:$,playAudio:h,resumePlay:g,pauseAudio:C,getNowWh:E,changeVolume:D,getPercent:T,jumpDuration:B,canPlay:L}=JN({emit:s,props:a});return e.onBeforeUnmount(()=>{d.value=null}),e.onMounted(()=>{w(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",QN,[vN,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(qe).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(qe).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",e0,[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(E)()),onMousedown:F[6]||(F[6]=Y=>l.value=!0)},null,36),[[e.vModelText,e.unref(f)]]),e.createElementVNode("div",t0,[e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(y)))+'"',1),e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(_)))+'"',1)])]),e.createElementVNode("div",n0,[e.createVNode(z,{placement:"top",width:"62px","popper-class":"!p-0",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",l0,[e.createElementVNode("div",r0,[(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",o0,[e.createElementVNode("ul",a0,[(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,s0))),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",i0,[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",c0,[(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(w)(Y.value)},[e.createVNode(U,{effect:"dark",content:Y.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",p0,[e.createVNode(M,{width:"26",height:"26",name:Y.svgName},null,8,["name"])])]),_:2},1032,["content"])],8,d0)),[[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",m0,[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-volumn"})])]),_:1},8,["content"])])]),default:e.withCtx(()=>[e.createElementVNode("div",f0,[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 h0(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"),w=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 E(){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&&w.value&&n("play-start",{audioUrl:c.value,playItem:w.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:E,changeVolume:D,getNowWh:T,getPercent:B,resumePlay:L,pauseVideo:j,initVideo:F,initFullScreenEvent:M,jumpDuration:z,clickFullScreen:U}}const u0=t=>(e.pushScopeId("data-v-d0d3957a"),t=t(),e.popScopeId(),t),_0={class:"flex-grow h-0 relative"},g0={key:0,class:"absolute right-[10px] top-[4px] z-[2]"},y0={key:0,class:"my-2 click-box"},x0={key:1},k0=["onClick"],N0={class:"click-box"},b0=u0(()=>e.createElementVNode("video",{id:"videoPlayer",width:"100%",header:"100%"},[e.createElementVNode("source",{type:"video/mp4"})],-1)),C0={class:"progress-box px-2"},w0={class:"my-2 flex items-center justify-between px-2 relative"},E0={class:"text-xs text-hy-text-secondary"},S0={key:0,class:"mx-2 flex items-center justify-center absolute left-1/2 -translate-x-1/2"},T0={class:"flex items-center"},D0={class:"flex items-center justify-center p-[10px_0]"},V0={class:"text-hy-text-secondary text-xs w-full"},$0=["onClick"],B0={class:"flex items-center click-box"},A0={class:"border h-[24px] box-border border-hy-border-2 rounded text-xs text-hy-text-secondary px-2 flex items-center justify-center"},I0={class:"flex items-center justify-center"},L0={class:"mx-2"},F0={class:"click-box"},O0={class:"text-hy-info"},aa=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:w,playRulesFn:b,speedFn:S,playNext:V,playPrevious:$,playVideo:h,downloadFn:g,changeVolume:C,getNowWh:E,getPercent:D,resumePlay:T,pauseVideo:B,initVideo:L,initFullScreenEvent:j,jumpDuration:F,clickFullScreen:M}=h0({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",_0,[z.downloadFilesType||z.playRulesType?(e.openBlock(),e.createElementBlock("div",g0,[z.downloadFilesType?(e.openBlock(),e.createElementBlock("div",y0,[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",x0,[(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",N0,[e.createVNode(R,{width:"26",height:"26",name:v.svgName},null,8,["name"])])]),_:2},1032,["content"])],8,k0)),[[e.vShow,e.unref(p)===v.value]])),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),b0]),e.createElementVNode("div",C0,[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(E)()),onMousedown:U[2]||(U[2]=v=>N.value=!0)},null,36),[[e.vModelText,e.unref(f)]])]),e.createElementVNode("div",w0,[e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",E0,[e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(y)))+'"',1),e.createTextVNode("/ "),e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(u)))+'"',1)],512),[[e.vShow,e.unref(u)!==1/0]])]),e.unref(l)?(e.openBlock(),e.createElementBlock("div",S0,[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",T0,[e.createVNode(X,{placement:"top",width:"62px","popper-class":"!p-0",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",B0,[e.createElementVNode("div",A0,[(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",D0,[e.createElementVNode("ul",V0,[(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,$0))),128))])])]),_:1}),e.createVNode(X,{placement:"top",trigger:"click",width:"40px"},{reference:e.withCtx(()=>[e.createElementVNode("div",L0,[e.createVNode(Y,{effect:"dark",content:e.unref(x)("adjustPlaybackVolume"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",F0,[e.createVNode(R,{width:"24",height:"24",name:"media-center-audio-volumn"})])]),_:1},8,["content"])])]),default:e.withCtx(()=>[e.createElementVNode("div",I0,[e.createVNode(P,{modelValue:e.unref(w),"onUpdate:modelValue":U[7]||(U[7]=v=>e.isRef(w)?w.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",O0,[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"]]),R0={class:"relative w-full h-full"},P0=e.createElementVNode("div",{class:"w-full h-full relative z-[1]"},[e.createElementVNode("div",{id:"amap-test",class:"w-full h-full"})],-1),Er=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(mt.sessionCache.getCache("userInfo")),d=e.reactive(mt.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:4,passedLineColor:d.success||"#9AF454",notPassedLineColor:d.theme||"#A7DDFC",markerRotation:!1,markerRotationOffset:-80,iconUrl:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAA+CAYAAABHuGlYAAAABmJLR0QA/wD/AP+gvaeTAAAMuElEQVRo3s2ZeYzd1XXHP+fe3/Lemzeb1/GCbbDNboxjR2WR2AthCZUQVZpWJG3U1N3SNC1KEFJIoZuiVkmkRMVGatr8kaSFQFJicENFw9YCVWxgbGNs4wWPl7E99syb5c37Lfee/vFm9ayAkfhJP/1+unN/537nbN9zzhPex6WqIVD62mM9nzjU6a+rDur6JGNlluti52kAsIaBKJCjUciBUlG2rWgzL33zD1q2A1URyWZ7lswSULxlW23hD5+pfqGr1392oKYXZhlkTlGdQrBAaIUwhIaC7J3TZH50352lf7lrfaFTRNIPBUxVzdGjtN7/gzN/fKJL/7y/6uckmRJHwvIFlkVzLXObDU0lIQoEYyDNlP6a0tPnOXba03HSURnwxJFQiuXM4nn2W//we62bliyhW0T8+wamqtFD/9a77vW30s09/aytpcq8JmHdqpDzFwZYM1vzQ+cZR/uBnIPHc+JQaGngrV9bG2985L6mN6bSnkwBqrDxe7337OnINlWqvrEYCldfErFqkUUQvCpHuzxHTjlOdDsqfZ4kU9RDFAqNRWFuk2HpfMvyhZYorB9zqsfzcnvCqYqnucH0Xnxe9Ieb/rLppyJSmxGYqha+8N3K5/cdc9/tq/qwrcVw27qYYiRkTtl1KKf9UMbAoMKwf4196tDL0Fpg4KLzQj6xOqRcFLzCqztTdhzMaCyZbPUS+6Xvf631B2eDk7PNt/Gx3nvfPpz/a2/VhxcvDrju0ghr4PApx4u7UvqrOuHwUUBMsaYEFjasjrhyVYgAu9/Leak9oVw02eXLos89en/TU2PNKmMd/eGf9W745Vvuv3oGfNOFbQE3XR4ByttHcl7eleL9TEB0GnD1xwVtlpuujAktHOp0PPerGk0l03vzhuiWr/9O07bhgBhx4aNHaX11j9tUSXxT2xzD9ZeHIPDSnowXd2d4I2AFjIBl/G2G32X0Ht5/1r4DJx0/e61GksOKRQFXXRZTqWnT/+zMHj3SS8swHjNswvuf7t7YXWNdsWC4bW2MtcJbRzJ2HcvPOpwZDx8PfOy++t6ufs/W7TUcypqVAecttPQM6voHHq38vqpGI8BeeHdwwYl++UrNKddcFFIsCB09ntcO5BOEzu5wmWIfI/uOV5TX92WIEa65LCJxyrHu7P4X2gcXABhVDR97wX2+P2PevGbLqraAzMMLe1O8mVzoeJMxhWln3rfjcE5P1dPSaLhkRUh/JvM3/yL9nKqGAVDqqua/naqybkXdr3Z1OvqzIeFnOfXjf9SMEdjanrK1PeFYt580VSxuNdy+Nub2tTHOK5/5TmVCQHhVXns341NXxmxYHfLO8ZzTA/6zwPeCh57pu2LAyaVRJJw/3+BR2juH/GokomREqAisXmhZ/etFvnRLkbc6cp5tT3huVwoKt14Wc8cVMWuXBcjQZ/s63Vnyht+Fg12e0wPK3LJh2fyAU73u8gd/2Lcm2HdGrs+AZfMM1gpHejwDU2gL4Kk3Ex64rTRC1FcuC7hyWcADdzTUo2kSqnryV8kYeRNz4N4TOVc3RZzfZjlW8Rzs8tebvlQ3ZKosbjUg0FHx06aAn+9KGcwmlhTGTA4qyZRndibTRnVHt4LAknmGTJX+RD9pUljpjTC3bMAIJ6o6bQroz+EXu2ddVrF1V0ZvyrTReqbmyRXKRUMYGVK4wKSqi7HQVBAQ6M10xhTwxI5k1sB+8mYyY7SqgUrNg4HGspB6XWLUSBkr9QrAQE11xhSw86Rn90k3I6i9pxw7Ot2s2CJxdaeNIkGNlI0aZGSjgJ6tpSmE/mTnjEUoj7+ZTsyBZpLcZsBL/XxjwRsxxoZSxQi51v8QhpNkdzORgp7dmzGQ6pSgqpny7J5sGu2PN+uwxTIFG9JvbMAJLAzkCkZoLJpZZfWqh2f3TR0Ez+7JGHA6K2LHQlOp7uP9OQRWOk0hMAfFQndaD9n5ZTPrauHxt6cG9uTb2ay5taFoKERC4qHqlCjmkGmI2R6EwrHBuimXNJtZVwt7ezw7JgmCXScdb592syb2pa0GRDje5wkjoVwy28zSVl6JQqFjwKMCy5sNQTj7auGJPRO19sQ76SyJvS531fy6lQ73esJQOK9FXjEPXVt6tRRJR8VBZ02JArhorpm10P88lNE7JggGMuW5Q27SgBkbhcOy5zQYlrZYnMK7FU+pQMfX72z4P9MM1dayPB4G0N7tQYR1C4IxWmNKoRghQdiyPx8BtmV/zoDXWZdBVy0LMBZ2dTlUoLVB/r0ZqkZEkluW2++XCtQO9HtOpZ5yLKxfaNFZ1mBP7M9GOPnJ/dmMOXDYV5e2WJa3WhIP2056SrGp3nlJ/M8ikhiAjauiA/OKweYoEl46Wfe1dfMtK1sNahm9p4jWA/3K8x05/30kZ0/Fz1CG18EWY+HGFQEYeOOkQ42yoFEe/d010aFxXdLP9+uyb+8ffLlrUJetaTVcu8CSefiP93JODepoWz1J9yOTdkQ6ZTcVCty9MmRBUTg+oGzZn9IamUNf3WCuu21VqWNcl3TXBRy7dI79cmPB5O29nt29ntDCp5cHtJVlWmJXwzjNTleGF2Ph7tUhCxqESqY8dzinFJvsirbgz25dWTw2VcNb/K3/Tf/ivQH3N4MObm2znN9g6iXwKceOHj91bzmDtgRYWhJuXBJQDoVKomw5lOE8rCjz4I8+1fAdERmcbkRQvvfV5JGjVf+VQQdXz7Fc0VJn2J5Eee2042CfTmuqs9fmRHDVfMvyRgMKx6ue5zocRmFJWf7xiVuLD4tI/2yGKo2feT396pGaPtiferOsKFwzz9IyNBw5nSj7ej2Hq8qZmo4oaawPlgNhaUlYWTac1yAIkHrY3uVoP+0pBbhlZfPwj28sfPtsUDONoUpffCO7991+961KxlwPXFI2fLLFUAxGtZF7pZJBbWiIFxuhMYCClRGtOoWd3Z7tpx1OoTmUExeW7Zc3XRs9PdZ872dwF24+nK7ecpxHTqd6T9WpoLC8KJxfMiwpCOVg7Aejr6lTjg0qhweUd/s8uYeSFTc34sefbpO//uLF8QERyT/wqFNVBSjdvzu/5p1+96c9KXckToPUM6QhaLRCXO9lSF29hBrIFQNEBgqGweZAnlrTHGz+uyuCbSJSPScz2LEAN3emy188zt09ud40kOv63Mscr0ri6sIKRjCQxaKHiobt8wv2l/csCrfetYguYFBE9JwNhycBGQAxEP7T8XTRK538xv5B/XsULi+z8W9Xxj9tK5MAGZBMN2ud6go+CLAh3xj2j54/eSdfsz/Noe783Ysa5RQf8go4V9dQM4E9N+LODbBhuuJjCWwoXXysgDFmCIP5mGnM8DE0Jefexz6E3lXQ+q3B6JhBYWR9dOL3UQHTURD8lRpUDYoMfW88yEihGIyuowiqZuibMYA/rClHhcjI/Y2Rf2h4jSQg0CHnrwUEQDiuOvsG48vL4fJoGnoKZgnKjHkawNwNpgomrmCMEA3/GhcK0Z0VikkzvgT+afCMv3XkqSpTgQtmCare93QREGBvsAQnDDYQbF+EaREp+Kx+ZNVQ6IpoCKr4PsXd4HEvOHJyHPPIgeGZwrTgghlIZhhUAAQ3x4Q9lqjPECZCKCmhE2wipuSDurUGhYY+R7NVnEZkuZKtt2QtlvT5UfPn48DNSmMT/crefoZgMCSqBsRJSkEtcZMh9kqcQ5ArZTOULhxaLiqtgZIbR9LrScSRVCPMDX1IMYOtc0Y6A5lKa2YGSja/eQrrA4LMEvWlFJylmHnKNU9TDZozaB0Qyk7ACVStacigtQbNNU9T5ik7S7EvpZBZIh8Q3DdqCZmq9JopwUq/xVQNtmYI5hnCqqOQWYq5p6SGonrixBD7ocSaCgWnlMWQeI9pMBA6fMmQ9xkyY7CVUVAfKF0IQCaIA3E1TBZgRQhwhCVD5CDyQhwrx0tWTqAQw/G4XnGrFVwqpCIEmWBdDeMCJBsFJR8pJVWE00XhmwhUlCr60XKlAoQ61PkX8GGGy5QcS1b1pCpYVaRf8d1CAiCKDyETIRUlDZRclTxUnC3gbY6GE9vk960xLTu89zjvybs8mbPU3JDveIdTQ+YhML4eSN7gA8hwpMaSDHgGraVWdWTNnrzkcc3TpImpm5HRdDGSw24/QzgYEiUBcZ4SVy2FJkOc5kQIoResHZLlQO2QlqKAtNeTlBy1ICKJc5JiRrp1DtlQLhtmgwn0JNNk/okJto/QGcK+lCgxhMYQ5ELgBRMMycrrwJzVupZjT9YYkVpP9nzjCKB8HEVNkvnlfVESWHoIbrbYQcEmBhvUsL6I+FpdlimgAfhU8bHHFRX3vMPRMkJH7izenJTM/x9H3imgJH3ZugAAAABJRU5ErkJggg==",typeof document>"u"&&typeof Eo>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?Eo.href:ma&&ma.src||new URL("command-center-v3-common.umd.cjs",document.baseURI).href).href,iconAnchor:[19,62]}),i.fitBounds(o.value,u)}async function y(u){if(c.value=u,c.value){const N=await jN(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",R0,[e.withDirectives(e.createVNode(Gt,{ref:"mapNoPermissions",class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(l)]]),P0]))}});function M0(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 YN(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 U0={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"},z0={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},W0={class:"absolute right-[10px]"},j0={class:"dialog_body"},H0={class:"text-center m-[20px_0_40px_0]"},Y0={class:"flex items-center justify-center mb-[10px] text-sm"},G0={class:"text-hy-text-main mr-[6px]"},q0={class:"text-hy-text-secondary text-xs"},K0={class:"operator-button flex items-center justify-center mt-[20px]"},sa=e.defineComponent({__name:"file-score",emits:["on-close","on-submit"],setup(t,{expose:n,emit:o}){const a=o,s=e.reactive(Ue.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}=M0({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(Ie,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",U0,[e.createElementVNode("div",z0,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("confirmScore")),1),e.createElementVNode("div",W0,[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",j0,[e.createElementVNode("div",H0,[e.createElementVNode("div",Y0,[e.createElementVNode("span",G0,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",q0,e.toDisplayString(e.unref(x)("noSecondaryModificationAfterScoring")),1)]),e.createElementVNode("div",K0,[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 X0(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(Ue.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 KN({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 XN({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"),ft({tipsTitle:x("deleteDot"),tipsContent:`<div class="text-center"><p>${x("deleteDotPositionCannotBeRestored")}</p><p>${x("confirmDeletion")}?</p></div>`,submitBtnText:x("confirm-0")},()=>{w()},()=>{f()})}async function w(){(await Cr({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:w,userInfo:d}}const la=t=>(e.pushScopeId("data-v-ae4b4f28"),t=t(),e.popScopeId(),t),J0={class:"w-full h-full"},Z0={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},Q0={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},v0={class:"text-hy-text-main font-bold text-sm"},eb={class:"flex items-center justify-center"},tb={class:"ml-[6px]"},nb={class:"flex-grow h-0"},ob={class:"h-full flex flex-col"},ab={class:"p-3 pb-0"},sb={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col text-xs"},lb={class:"flex-grow h-0"},rb={class:"flex items-center justify-between"},ib={class:"text-hy-text-secondary mr-1"},cb=la(()=>e.createElementVNode("span",null,"/",-1)),db={key:0,class:"px-3 py-1 text-hy-text-main text-xs flex-grow h-0 overflow-auto"},pb={class:"flex items-center justify-between"},fb={class:"flex-grow w-0 mr-1 flex items-center"},mb={class:"ml-2 flex-grow w-0"},hb={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},ub={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},_b={key:0,class:"flex-shrink-0 flex"},gb={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},yb={class:"flex-grow h-0"},xb={class:"flex items-center justify-between"},kb={class:"text-hy-text-secondary mr-1"},Nb=la(()=>e.createElementVNode("span",null,"/",-1)),bb={class:"px-2 mt-3 mb-1 text-xs"},Cb={class:"flex items-center justify-between"},wb={class:"text-hy-text-secondary mr-1"},Eb=la(()=>e.createElementVNode("span",null,"/",-1)),Sb={class:"flex items-center mt-1"},Tb={class:"text-hy-text-secondary mr-1"},Db={class:"flex-grow w-0 ml-1"},Vb={key:1,class:"w-full flex-grow h-0 flex items-center justify-center rounded"},$b={class:"text-center text-xs text-hy-text-secondary"},Bb={class:"mt-3"},Sr=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:w,userInfo:b}=X0({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"),E=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",J0,[e.createElementVNode("div",Z0,[e.createElementVNode("div",Q0,[e.createElementVNode("div",v0,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",eb,[e.createVNode($,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),e.createElementVNode("span",tb,e.toDisplayString(e.unref(x)("addDot-0")),1)])]),_:1},512),[[e.vShow,S.mediaFileId]])])]),e.createElementVNode("div",nb,[e.createVNode(E,{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",ob,[e.withDirectives(e.createElementVNode("div",ab,[e.createElementVNode("div",sb,[e.createElementVNode("div",lb,[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",rb,[e.createElementVNode("div",null,[e.createElementVNode("span",ib,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(ot)(Number(e.unref(i).time||o.mediaFileCurTime)))+" ",1),cb,e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(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",db,[(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",pb,[e.createElementVNode("div",fb,[e.createVNode(xt,{url:D.remarkUserHeadImg},null,8,["url"]),e.createElementVNode("div",mb,[e.createElementVNode("p",hb,e.toDisplayString(D.remarkUserName),1),e.createElementVNode("p",ub,e.toDisplayString(D.remarkUserSerialNum),1)])]),D.remarkUserId===e.unref(l)&&e.unref(i).id!==D.id?(e.openBlock(),e.createElementBlock("div",_b,[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",gb,[e.createElementVNode("div",yb,[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",xb,[e.createElementVNode("div",null,[e.createElementVNode("span",kb,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(ot)(Number(e.unref(i).time||o.mediaFileCurTime)))+" ",1),Nb,e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(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",bb,[e.createElementVNode("div",Cb,[e.createElementVNode("div",null,[e.createElementVNode("span",wb,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(D.time)))+" ",1),Eb,e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(S.mediaFileTotalTime))),1)]),e.createElementVNode("div",null,[e.createElementVNode("p",null,e.toDisplayString(D.updateDtm||D.createDtm),1)])]),e.createElementVNode("div",Sb,[e.createElementVNode("span",Tb,e.toDisplayString(e.unref(x)("dotName")),1),e.createElementVNode("div",Db,e.toDisplayString(D.content),1)])],512),[[e.vShow,!(e.unref(i).id===D.id&&e.unref(p))]])]))),128))])):(e.openBlock(),e.createElementBlock("div",Vb,[e.createElementVNode("div",$b,[e.createVNode($,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),e.createElementVNode("div",Bb,e.toDisplayString(e.unref(x)("noData")),1)])]))])]),_:1},8,["model","rules"])])])])}}}),[["__scopeId","data-v-ae4b4f28"]]);function Ab(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(Ue.getCache("userInfo"));function f(){l.value=!1,n("on-close"),r.value={content:""}}async function m(){if(o.value.mediaFileId){const b=await GN({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 qN(r.value)).code===200&&(m(),f())}})}function u(b){p.value=b,ft({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 Cr({ids:p.value})).code===200&&(m(),N(),n("on-delete"))}function w(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:w,userInfo:d}}const Ib={class:"w-full h-full"},Lb={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},Fb={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},Ob={class:"text-hy-text-main font-bold text-sm"},Rb={class:"flex items-center justify-center"},Pb={class:"ml-[6px]"},Mb={class:"flex-grow h-0"},Ub={class:"h-full flex flex-col"},zb={class:"p-3 pb-0"},Wb={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col"},jb={class:"flex-grow h-0"},Hb={class:"h-[40px] flex items-end justify-end"},Yb={key:0,class:"px-3 py-1 text-hy-text-main text-xs flex-grow h-0 overflow-auto"},Gb={class:"flex items-center justify-between"},qb={class:"flex-grow w-0 mr-1 flex items-center"},Kb={class:"ml-2 flex-grow w-0"},Xb={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},Jb={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},Zb={key:0,class:"flex-shrink-0 flex items-center"},Qb={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},vb={class:"flex-grow h-0"},eC={class:"h-[40px] flex items-end justify-end"},tC={key:1,class:"w-full flex-grow h-0 flex items-center justify-center rounded"},nC={class:"text-center text-xs text-hy-text-secondary"},oC={class:"mt-3"},ra=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:w}=Ab({emit:a,props:o});return e.watch(()=>o.mediaFileId,()=>{f()}),e.onMounted(()=>{l.value=w.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",Ib,[e.createElementVNode("div",Lb,[e.createElementVNode("div",Fb,[e.createElementVNode("div",Ob,e.toDisplayString(e.unref(x)("reminderList")),1),e.createElementVNode("div",null,[e.withDirectives(e.createVNode($,{type:"success",class:"",onClick:S[0]||(S[0]=E=>e.unref(m)())},{default:e.withCtx(()=>[e.createElementVNode("div",Rb,[e.createVNode(V,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),e.createElementVNode("span",Pb,e.toDisplayString(e.unref(x)("addRemarks-0")),1)])]),_:1},512),[[e.vShow,b.mediaFileId]])])]),e.createElementVNode("div",Mb,[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",Ub,[e.withDirectives(e.createElementVNode("div",zb,[e.createElementVNode("div",Wb,[e.createElementVNode("div",jb,[e.createVNode(g,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(i).content,"onUpdate:modelValue":S[1]||(S[1]=E=>e.unref(i).content=E),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",Hb,[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",Yb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),E=>(e.openBlock(),e.createElementBlock("li",{key:E.id,class:"bg-hy-page-bg-3 rounded my-2 p-2 box-hy-border-2"},[e.createElementVNode("div",Gb,[e.createElementVNode("div",qb,[e.createVNode(xt,{url:E.remarkUserHeadImg},null,8,["url"]),e.createElementVNode("div",Kb,[e.createElementVNode("p",Xb,e.toDisplayString(E.remarkUserName),1),e.createElementVNode("p",Jb,e.toDisplayString(E.remarkUserSerialNum),1)])]),E.remarkUserId===e.unref(l)&&e.unref(i).id!==E.id?(e.openBlock(),e.createElementBlock("div",Zb,[e.createVNode(Me,{class:"!mx-0","class-nmae":"HyRoundButtonV2",name:"icon-edit",tips:e.unref(x)("edit"),onClick:D=>e.unref(k)(E)},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)(E.id)},null,8,["tips","onClick"])])):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",Qb,[e.createElementVNode("div",vb,[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",eC,[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===E.id&&e.unref(r)]]),e.withDirectives(e.createElementVNode("div",{class:"px-2 mt-3 mb-1"},e.toDisplayString(E.content),513),[[e.vShow,!(e.unref(i).id===E.id&&e.unref(r))]])]))),128))])):(e.openBlock(),e.createElementBlock("div",tC,[e.createElementVNode("div",nC,[e.createVNode(V,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),e.createElementVNode("div",oC,e.toDisplayString(e.unref(x)("noData")),1)])]))])]),_:1},8,["model","rules"])])])])}}});function Tr(t){const n=t.emit,o=e.ref(qe.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(Ue.getCache("colorObject"));console.log("colorObject",d,Ue.getCache("colorObject"));const 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 E=await br(C);E.code===200&&(r.value=E.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 w(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:w,playPoint:S,onEditMark:V,onEditorClose:$,setAudioState:h}}const ia=t=>(e.pushScopeId("data-v-e67170d8"),t=t(),e.popScopeId(),t),aC={class:"h-full text-hy-text-main flex flex-col"},sC={class:"h-[60px] flex justify-between items-center px-5 hy-dialog_header"},lC={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},rC={class:"text-hy-danger"},iC={class:"flex-grow h-0 overflow-y-auto"},cC={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},dC={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},pC={class:"audio-play-icon-box flex"},fC={class:"relative"},mC={class:"point_area"},hC={class:"point point_dot relative"},uC={class:"w-full h-full rounded-full bg-hy-page-bg-2 flex items-center justify-center text-hy-text-main"},_C={class:"duration-1000"},gC=[ia(()=>e.createElementVNode("div",{class:"point point_10"},null,-1)),ia(()=>e.createElementVNode("div",{class:"point point_40"},null,-1)),ia(()=>e.createElementVNode("div",{class:"point point_shadow point_80"},null,-1))],yC={key:0,class:"w-full file-info"},xC={class:"info-item"},kC={class:"info-label"},NC={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},bC={class:"info-item"},CC={class:"info-label"},wC={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},EC={key:0,class:"flex items-center"},SC={key:1,class:"text-hy-text-secondary"},TC={class:"info-item"},DC={class:"info-label"},VC={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},$C={class:"info-item"},BC={class:"info-label"},AC={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},IC={key:0},LC={key:1},FC={key:2,class:"text-hy-danger"},OC={key:3,class:"text-hy-text-secondary"},RC={class:"info-item"},PC={class:"info-label"},MC={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},UC={class:"info-item"},zC={class:"info-label"},WC={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},jC={class:"info-item"},HC={class:"info-label"},YC={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},GC={key:1,class:"text-hy-text-secondary"},qC={class:"info-item"},KC={class:"info-label"},XC={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},JC={class:"info-item flex items-center text-xs"},ZC={class:"info-label"},QC={class:"flex items-center rateBox"},vC={key:0,class:"text-hy-text-secondary"},ew={key:1,class:"text-hy-text-main"},tw={class:"info-item"},nw={class:"info-label"},ow={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},aw={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},sw={class:"mb-1"},lw={class:"w-[60%] flex"},rw={class:"flex-grow w-0 ml-2"},iw={class:"flex-grow w-0 ml-2"},cw=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:w,playStart:b,canPlay:S,onTimeUpdate:V,playPoint:$,onEditMark:h,onEditorClose:g,setAudioState:C}=Tr({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 E;(E=s.value)==null||E.playAudio(o.item.filePath,o.item)})})}),(E,D)=>{const T=e.resolveComponent("svg-icon"),B=e.resolveComponent("el-col"),L=e.resolveComponent("el-rate"),j=e.resolveComponent("el-row"),F=Er;return e.openBlock(),e.createElementBlock("div",aC,[e.createVNode(sa,{ref_key:"fileScoreRef",ref:l,onOnClose:D[0]||(D[0]=M=>f.value=null)},null,512),e.createElementVNode("div",sC,[e.createElementVNode("div",lC,[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",rC,[e.createVNode(T,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])]),e.createElementVNode("div",iC,[e.createElementVNode("div",cC,[e.createElementVNode("div",dC,[e.createElementVNode("div",pC,[e.createElementVNode("div",fC,[e.createElementVNode("div",mC,[e.createElementVNode("div",hC,[e.createElementVNode("div",uC,[e.createVNode(T,{width:"60%",height:"60%",name:"menu-micphone--2-select"})])]),e.withDirectives(e.createElementVNode("div",_C,gC,512),[[e.vShow,e.unref(p)===e.unref(qe).PLAYING]])])])]),e.unref(m)&&e.unref(m).id?(e.openBlock(),e.createElementBlock("div",yC,[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",xC,[e.createElementVNode("span",kC,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",NC,e.toDisplayString(e.unref(m).uploadDateStr),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",bC,[e.createElementVNode("span",CC,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",wC,[e.unref(m).mark?(e.openBlock(),e.createElementBlock("span",EC,[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",SC,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",TC,[e.createElementVNode("span",DC,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",VC,e.toDisplayString(e.unref(m).devUserName),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",$C,[e.createElementVNode("span",BC,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",AC,[e.unref(m).type===1?(e.openBlock(),e.createElementBlock("span",IC,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(m).type===2?(e.openBlock(),e.createElementBlock("span",LC,e.toDisplayString(e.unref(x)("task")),1)):e.unref(m).type===3?(e.openBlock(),e.createElementBlock("span",FC,"SOS")):(e.openBlock(),e.createElementBlock("span",OC,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",RC,[e.createElementVNode("span",PC,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",MC,e.toDisplayString(e.unref(m).deviceId),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",UC,[e.createElementVNode("span",zC,e.toDisplayString(e.unref(x)("audioDuration")),1),e.createElementVNode("span",WC,e.toDisplayString(e.unref(_))+"s ",1)])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",jC,[e.createElementVNode("span",HC,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(m).expiredDtm?(e.openBlock(),e.createElementBlock("span",YC,e.toDisplayString(e.unref(m).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",GC,"-"))])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",qC,[e.createElementVNode("span",KC,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",XC,e.toDisplayString(e.unref(Yo)(e.unref(m).fileSize)),1)])]),_:1}),e.withDirectives(e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",JC,[e.createElementVNode("span",ZC,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",QC,[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",vC,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",ew,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",tw,[e.createElementVNode("span",nw,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",ow,e.toDisplayString(e.unref(m).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",aw,[e.createVNode(F,{ref_key:"mapFileTrackRef",ref:r},null,512)]),e.createElementVNode("div",sw,[e.createVNode(wr,{ref_key:"audioPlayerRef",ref:s,"play-list":E.playList,onOnTimeUpdate:e.unref(V),onCanPlay:e.unref(S),onPlayEnd:e.unref(k),onPlayStart:e.unref(w),onOnAudioState:e.unref(C)},null,8,["play-list","onOnTimeUpdate","onCanPlay","onPlayEnd","onPlayStart","onOnAudioState"])])]),e.createElementVNode("div",lw,[e.createElementVNode("div",rw,[e.createVNode(ra,{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",iw,[e.createVNode(Sr,{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 dw(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 $=Ho(new Date,"Y-M-h D:m:s"),h=await Go(`/mediaFile/mediaFileZip?mediaFileIds=${V.toString()}`),g=new FileReader;g.readAsDataURL(h),g.onload=C=>{const E=URL.createObjectURL(new Blob([h])),D=document.createElement("a");document.body.appendChild(D),D.href=E,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 w(){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 br($);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:w,error:b,playStart:S}}const pw={class:"h-full pic-detail-box flex flex-col"},fw={class:"detail-box flex-shrink-0 hy-dialog_header"},mw={class:"box-header flex flex-row m-0"},hw={class:"flex flex-row left-header-box"},uw={class:"group-hy-info flex items-center text-base font-bold w-full"},_w={key:1,class:"ml-1 flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap"},gw={class:"flex flex-row right-header-box flex-shrink text-hy-danger"},yw={class:"flex-grow h-0 overflow-y-auto"},xw={class:"content flex flex-row h-full min-h-[700px]"},kw={class:"left-content-box relative"},Nw=["src"],bw={class:"flex items-center justify-between h-[60px] box-hy-border-2"},Cw={class:"text-xs"},ww={class:"text-xs"},Ew={class:"flex items-center"},Sw={class:"text-xs text-hy-text-secondary mr-2 flex items-center"},Tw={class:"flex items-center justify-center"},Dw={class:"ml-1 text-xs"},Vw={key:0,class:"w-full file-info mb-[10px]"},$w={class:"info-item"},Bw={class:"info-label"},Aw={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Iw={class:"info-item"},Lw={class:"info-label"},Fw={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Ow={class:"info-item"},Rw={class:"info-label"},Pw={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Mw={class:"info-item"},Uw={class:"info-label"},zw={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Ww={key:0},jw={key:1},Hw={key:2,class:"text-hy-danger"},Yw={key:3,class:"text-hy-text-secondary"},Gw={class:"info-item"},qw={class:"info-label"},Kw={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Xw={key:1,class:"text-hy-text-secondary"},Jw={class:"info-item"},Zw={class:"info-label"},Qw={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},vw={key:0,class:"flex items-center"},eE={key:1,class:"text-hy-text-secondary"},tE={class:"info-item"},nE={class:"info-label"},oE={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},aE={class:"info-item flex items-center text-xs"},sE={class:"info-label"},lE={class:"flex items-center rateBox"},rE={key:0,class:"text-hy-text-secondary"},iE={key:1,class:"text-hy-text-main"},cE={class:"info-item"},dE={class:"info-label"},pE={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},fE={key:0,class:"w-[30%] ml-2 flex-shrink-0 relative"},mE=be(e.defineComponent({__name:"image-details",props:{item:{},playList:{default:()=>[]}},emits:["closeDrawer"],setup(t,{emit:n}){const o=t,a=n,s=e.reactive(Ue.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:w}=dw({emit:a,props:o});return e.onMounted(()=>{w(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"),E=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",pw,[e.createVNode(sa,{ref_key:"fileScoreRef",ref:i,onOnClose:S[0]||(S[0]=D=>p.value=null)},null,512),e.createElementVNode("div",fw,[e.createElementVNode("div",mw,[e.createElementVNode("div",hw,[e.createElementVNode("div",uw,[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",_w,e.toDisplayString(e.unref(d).fileName),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",gw,[e.createVNode(V,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])])]),e.createElementVNode("div",yw,[e.createElementVNode("div",xw,[e.createElementVNode("div",kw,[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,Nw)]),e.createElementVNode("div",bw,[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",Cw,e.toDisplayString(e.unref(x)("previous")),1)]),_:1},8,["onClick"]),e.createVNode($,{type:"primary",class:"",onClick:e.unref(_)},{default:e.withCtx(()=>[e.createElementVNode("span",ww,e.toDisplayString(e.unref(x)("next")),1)]),_:1},8,["onClick"])],512),[[e.vShow,o.playList.length>1]])]),e.createElementVNode("div",Ew,[e.createElementVNode("p",Sw,[e.createVNode(h,{class:"text-sm mr-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(dh))]),_: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",Tw,[e.createVNode(V,{class:"w-[12px] h-[12px]",name:"media-download"}),e.createElementVNode("span",Dw,e.toDisplayString(e.unref(x)("download-0")),1)])]),_:1})])]),e.unref(d)&&e.unref(d).id?(e.openBlock(),e.createElementBlock("div",Vw,[e.createVNode(E,{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",$w,[e.createElementVNode("span",Bw,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",Aw,e.toDisplayString(e.unref(d).uploadDateStr),1)])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",Iw,[e.createElementVNode("span",Lw,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",Fw,e.toDisplayString(e.unref(Yo)(e.unref(d).fileSize)),1)])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",Ow,[e.createElementVNode("span",Rw,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",Pw,e.toDisplayString(e.unref(d).devUserName),1)])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",Mw,[e.createElementVNode("span",Uw,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",zw,[e.unref(d).type===1?(e.openBlock(),e.createElementBlock("span",Ww,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(d).type===2?(e.openBlock(),e.createElementBlock("span",jw,e.toDisplayString(e.unref(x)("task")),1)):e.unref(d).type===3?(e.openBlock(),e.createElementBlock("span",Hw,"SOS")):(e.openBlock(),e.createElementBlock("span",Yw,"-"))])])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",Gw,[e.createElementVNode("span",qw,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(d).expiredDtm?(e.openBlock(),e.createElementBlock("span",Kw,e.toDisplayString(e.unref(d).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",Xw,"-"))])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",Jw,[e.createElementVNode("span",Zw,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",Qw,[e.unref(d).mark?(e.openBlock(),e.createElementBlock("span",vw,[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",eE,"-"))])])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",tE,[e.createElementVNode("span",nE,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",oE,e.toDisplayString(e.unref(d).deviceId),1)])]),_:1}),e.withDirectives(e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",aE,[e.createElementVNode("span",sE,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",lE,[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",rE,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",iE,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",cE,[e.createElementVNode("span",dE,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",pE,e.toDisplayString(e.unref(d).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0)]),e.unref(d).id?(e.openBlock(),e.createElementBlock("div",fE,[e.createVNode(ra,{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(jo,{ref_key:"imageViewerRef",ref:r},null,512)])}}}),[["__scopeId","data-v-04b34f5b"]]),hE={class:"h-full text-hy-text-main flex flex-col"},uE={class:"h-[60px] flex justify-between items-center px-5 hy-dialog_header"},_E={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},gE={class:"text-hy-danger"},yE={class:"flex-grow h-0 overflow-y-auto"},xE={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},kE={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},NE={class:"h-[240px] video-player-box mt-[20px] flex"},bE={key:0,class:"w-full file-info m-[10px_0]"},CE={class:"info-item"},wE={class:"info-label"},EE={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},SE={class:"info-item"},TE={class:"info-label"},DE={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},VE={key:0,class:"flex items-center"},$E={key:1,class:"text-hy-text-secondary"},BE={class:"info-item"},AE={class:"info-label"},IE={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},LE={class:"info-item"},FE={class:"info-label"},OE={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},RE={class:"info-item"},PE={class:"info-label"},ME={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},UE={class:"info-item"},zE={class:"info-label"},WE={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},jE={key:0},HE={key:1},YE={key:2,class:"text-hy-danger"},GE={key:3,class:"text-hy-text-secondary"},qE={class:"info-item"},KE={class:"info-label"},XE={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},JE={key:1,class:"text-hy-text-secondary"},ZE={class:"info-item"},QE={class:"info-label"},vE={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},eS={class:"info-item flex items-center text-xs"},tS={class:"info-label"},nS={class:"flex items-center rateBox"},oS={key:0,class:"text-hy-text-secondary"},aS={key:1,class:"text-hy-text-main"},sS={class:"info-item"},lS={class:"info-label"},rS={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},iS={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},cS={class:"w-[60%] flex"},dS={class:"flex-grow w-0 ml-2"},pS={class:"flex-grow w-0 ml-2"},fS=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:w,playStart:b,canPlay:S,onTimeUpdate:V,playPoint:$,onEditMark:h,onEditorClose:g,setAudioState:C}=Tr({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 E;(E=s.value)==null||E.playVideo(o.item.filePath,o.item)})})}),(E,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",hE,[e.createVNode(sa,{ref_key:"fileScoreRef",ref:l,onOnClose:D[0]||(D[0]=F=>f.value=null)},null,512),e.createElementVNode("div",uE,[e.createElementVNode("div",_E,[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",gE,[e.createVNode(T,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])]),e.createElementVNode("div",yE,[e.createElementVNode("div",xE,[e.createElementVNode("div",kE,[e.createElementVNode("div",NE,[e.createVNode(aa,{ref_key:"videoPlayerRef",ref:s,"play-list":E.playList,onCanPlay:e.unref(S),onOnTimeUpdate:e.unref(V),onPlayStart:e.unref(w)},null,8,["play-list","onCanPlay","onOnTimeUpdate","onPlayStart"])]),e.unref(m)&&e.unref(m).id?(e.openBlock(),e.createElementBlock("div",bE,[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",CE,[e.createElementVNode("span",wE,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",EE,e.toDisplayString(e.unref(m).uploadDateStr),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",SE,[e.createElementVNode("span",TE,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",DE,[e.unref(m).mark?(e.openBlock(),e.createElementBlock("span",VE,[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",$E,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",BE,[e.createElementVNode("span",AE,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",IE,e.toDisplayString(e.unref(m).devUserName),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",LE,[e.createElementVNode("span",FE,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",OE,e.toDisplayString(e.unref(Yo)(e.unref(m).fileSize)),1)])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",RE,[e.createElementVNode("span",PE,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",ME,e.toDisplayString(e.unref(m).deviceId),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",UE,[e.createElementVNode("span",zE,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",WE,[e.unref(m).type===1?(e.openBlock(),e.createElementBlock("span",jE,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(m).type===2?(e.openBlock(),e.createElementBlock("span",HE,e.toDisplayString(e.unref(x)("task")),1)):e.unref(m).type===3?(e.openBlock(),e.createElementBlock("span",YE,"SOS")):(e.openBlock(),e.createElementBlock("span",GE,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",qE,[e.createElementVNode("span",KE,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(m).expiredDtm?(e.openBlock(),e.createElementBlock("span",XE,e.toDisplayString(e.unref(m).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",JE,"-"))])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",ZE,[e.createElementVNode("span",QE,e.toDisplayString(e.unref(x)("videoDuration")),1),e.createElementVNode("span",vE,e.toDisplayString(e.unref(_))+"s ",1)])]),_:1}),e.withDirectives(e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",eS,[e.createElementVNode("span",tS,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",nS,[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",oS,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",aS,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",sS,[e.createElementVNode("span",lS,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",rS,e.toDisplayString(e.unref(m).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",iS,[e.createVNode(Er,{ref_key:"mapFileTrackRef",ref:r},null,512)])]),e.createElementVNode("div",cS,[e.createElementVNode("div",dS,[e.createVNode(ra,{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",pS,[e.createVNode(Sr,{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"]]),mS={key:0,class:"w-full h-full"},hS=e.defineComponent({__name:"file-details",emits:["onClose"],setup(t,{expose:n,emit:o}){const a=o,s=e.ref(!1),l=e.ref(1),r=e.ref({}),i=e.ref([]);function c(){s.value=!1,a("onClose")}function p(d){l.value=d.curMediaType,r.value=d.curItem,i.value=d.playList||[],s.value=!0}return e.onMounted(()=>{}),n({show:p}),(d,f)=>e.unref(s)?(e.openBlock(),e.createElementBlock("div",mS,[e.unref(l)===2?(e.openBlock(),e.createBlock(cw,{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(fS,{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(mE,{key:2,item:e.unref(r),"play-list":e.unref(i),onCloseDrawer:c},null,8,["item","play-list"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}});function uS(t){return oe.post({url:"/file/abortMultipartUpload",data:t,showLoading:!1,isJson:!0})}function _S(t){return oe.post({url:"/file/multipartUploadAuth",data:t,showLoading:!1,isFormData:!0})}function gS(t){return oe.post({url:"/file/completeMultipartUpload",data:t,showLoading:!1,isJson:!0})}function yS(t){return oe.post({url:"/mediaFile/mediaFile/save",data:t,showLoading:!1,isJson:!0})}function xS(t){return oe.post({url:"/mediaFile/findByFileCloudKey",data:{fileCloudKey:t},showLoading:!1,isFormData:!0})}const kS="/admin",NS=new bl({baseURL:`${Ue.getCache("host")||""}${kS}`,timeout:Ys,headers:{"Content-Type":it.JSON},interceptors:{requestSuccessFn:t=>{const n=Ue.getCache("userInfo");return t.headers.token=n==null?void 0:n.token,t.headers&&t.isJson?t.headers["Content-Type"]=it.JSON:t.headers&&t.isFormData?t.headers["Content-Type"]=it.FORM_DATA:t.headers&&t.isFileUpload&&(t.responseType="blob",t.headers["Content-Type"]=it.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 Dr={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,E,D,T){return g=a(a(g,h),a(E,T)),a(g<<D|g>>>32-D,C)}function r(h,g,C,E,D,T,B){return l(g&C|~g&E,h,g,D,T,B)}function i(h,g,C,E,D,T,B){return l(g&E|C&~E,h,g,D,T,B)}function c(h,g,C,E,D,T,B){return l(g^C^E,h,g,D,T,B)}function p(h,g,C,E,D,T,B){return l(C^(g|~E),h,g,D,T,B)}function d(h,g){var C=h[0],E=h[1],D=h[2],T=h[3];C=r(C,E,D,T,g[0],7,-680876936),T=r(T,C,E,D,g[1],12,-389564586),D=r(D,T,C,E,g[2],17,606105819),E=r(E,D,T,C,g[3],22,-1044525330),C=r(C,E,D,T,g[4],7,-176418897),T=r(T,C,E,D,g[5],12,1200080426),D=r(D,T,C,E,g[6],17,-1473231341),E=r(E,D,T,C,g[7],22,-45705983),C=r(C,E,D,T,g[8],7,1770035416),T=r(T,C,E,D,g[9],12,-1958414417),D=r(D,T,C,E,g[10],17,-42063),E=r(E,D,T,C,g[11],22,-1990404162),C=r(C,E,D,T,g[12],7,1804603682),T=r(T,C,E,D,g[13],12,-40341101),D=r(D,T,C,E,g[14],17,-1502002290),E=r(E,D,T,C,g[15],22,1236535329),C=i(C,E,D,T,g[1],5,-165796510),T=i(T,C,E,D,g[6],9,-1069501632),D=i(D,T,C,E,g[11],14,643717713),E=i(E,D,T,C,g[0],20,-373897302),C=i(C,E,D,T,g[5],5,-701558691),T=i(T,C,E,D,g[10],9,38016083),D=i(D,T,C,E,g[15],14,-660478335),E=i(E,D,T,C,g[4],20,-405537848),C=i(C,E,D,T,g[9],5,568446438),T=i(T,C,E,D,g[14],9,-1019803690),D=i(D,T,C,E,g[3],14,-187363961),E=i(E,D,T,C,g[8],20,1163531501),C=i(C,E,D,T,g[13],5,-1444681467),T=i(T,C,E,D,g[2],9,-51403784),D=i(D,T,C,E,g[7],14,1735328473),E=i(E,D,T,C,g[12],20,-1926607734),C=c(C,E,D,T,g[5],4,-378558),T=c(T,C,E,D,g[8],11,-2022574463),D=c(D,T,C,E,g[11],16,1839030562),E=c(E,D,T,C,g[14],23,-35309556),C=c(C,E,D,T,g[1],4,-1530992060),T=c(T,C,E,D,g[4],11,1272893353),D=c(D,T,C,E,g[7],16,-155497632),E=c(E,D,T,C,g[10],23,-1094730640),C=c(C,E,D,T,g[13],4,681279174),T=c(T,C,E,D,g[0],11,-358537222),D=c(D,T,C,E,g[3],16,-722521979),E=c(E,D,T,C,g[6],23,76029189),C=c(C,E,D,T,g[9],4,-640364487),T=c(T,C,E,D,g[12],11,-421815835),D=c(D,T,C,E,g[15],16,530742520),E=c(E,D,T,C,g[2],23,-995338651),C=p(C,E,D,T,g[0],6,-198630844),T=p(T,C,E,D,g[7],10,1126891415),D=p(D,T,C,E,g[14],15,-1416354905),E=p(E,D,T,C,g[5],21,-57434055),C=p(C,E,D,T,g[12],6,1700485571),T=p(T,C,E,D,g[3],10,-1894986606),D=p(D,T,C,E,g[10],15,-1051523),E=p(E,D,T,C,g[1],21,-2054922799),C=p(C,E,D,T,g[8],6,1873313359),T=p(T,C,E,D,g[15],10,-30611744),D=p(D,T,C,E,g[6],15,-1560198380),E=p(E,D,T,C,g[13],21,1309151649),C=p(C,E,D,T,g[4],6,-145523070),T=p(T,C,E,D,g[11],10,-1120210379),D=p(D,T,C,E,g[2],15,718787259),E=p(E,D,T,C,g[9],21,-343485551),h[0]=a(C,h[0]),h[1]=a(E,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],E,D,T,B,L,j;for(E=64;E<=g;E+=64)d(C,f(h.substring(E-64,E)));for(h=h.substring(E-64),D=h.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],E=0;E<D;E+=1)T[E>>2]|=h.charCodeAt(E)<<(E%4<<3);if(T[E>>2]|=128<<(E%4<<3),E>55)for(d(C,T),E=0;E<16;E+=1)T[E]=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],E,D,T,B,L,j;for(E=64;E<=g;E+=64)d(C,m(h.subarray(E-64,E)));for(h=E-64<g?h.subarray(E-64):new Uint8Array(0),D=h.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],E=0;E<D;E+=1)T[E>>2]|=h[E]<<(E%4<<3);if(T[E>>2]|=128<<(E%4<<3),E>55)for(d(C,T),E=0;E<16;E+=1)T[E]=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),E=(h>>16)+(g>>16)+(C>>16);return E<<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 E=this.byteLength,D=h(g,E),T=E,B,L,j,F;return C!==o&&(T=h(C,E)),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 w(h,g){var C=h.length,E=new ArrayBuffer(C),D=new Uint8Array(E),T;for(T=0;T<C;T+=1)D[T]=h.charCodeAt(T);return g?D:E}function b(h){return String.fromCharCode.apply(null,new Uint8Array(h))}function S(h,g,C){var E=new Uint8Array(h.byteLength+g.byteLength);return E.set(new Uint8Array(h)),E.set(new Uint8Array(g),h.byteLength),C?E:E.buffer}function V(h){var g=[],C=h.length,E;for(E=0;E<C-1;E+=2)g.push(parseInt(h.substr(E,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,E,D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],T;for(E=0;E<C;E+=1)D[E>>2]|=g.charCodeAt(E)<<(E%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,E,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;E=this._length*8,E=E.toString(16).match(/(.*?)(.{0,8})$/),D=parseInt(E[2],16),T=parseInt(E[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),E=N(C);return g?V(E):E},$.ArrayBuffer=function(){this.reset()},$.ArrayBuffer.prototype.append=function(h){var g=S(this._buff.buffer,h,!0),C=g.length,E;for(this._length+=h.byteLength,E=64;E<=C;E+=64)d(this._hash,m(g.subarray(E-64,E)));return this._buff=E-64<C?new Uint8Array(g.buffer.slice(E-64)):new Uint8Array(0),this},$.ArrayBuffer.prototype.end=function(h){var g=this._buff,C=g.length,E=[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)E[D>>2]|=g[D]<<(D%4<<3);return this._finish(E,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=w(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)),E=N(C);return g?V(E):E},$})})(Dr);var bS=Dr.exports;const CS=ol(bS);class wS{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 CS.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 ES(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),w=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 E(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(){E(!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(A=>{pe.ElMessage.success(`${x("startUploading")} ${A}`),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(){w.value=[],b.value=[];const O=Ue.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 wS().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),A=[],I=()=>{const H=de*V.value,te=H+V.value>=ne?ne:H+V.value;if(_e=S.value.call(O,H,te),A.push(_e),de++,de<Ve)return I();G(A)};I()})}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 A=u.value.find(I=>I.md5===_e);if(he(_e,Ve),A){const I=A.status,H=A.errorReason;I==="error"&&!H?(ne(O.name),ke(A.md5)):de()}else{const I=await _S({cannedACL:i.value?"public-read":"",fileName:O.name,contentLength:O.size,contentType:O.type,partSize:V.value});if(I.code===200){const H=I.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 xS(O);de.code===200&&(de.data?ne(new Error(x("prohibitUploadingFilesWithTheSameNameOnThePlatform"))):G({code:200}))})}function he(O,G){const ne=w.value.findIndex(de=>de.md5===O);ne===-1?w.value.push({md5:O,fileChunkList:G}):w.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=w.value.findIndex(I=>I.md5===G.md5);if(ne===-1){pe.ElMessage.error(x("errorInUploadingFile"));return}const de=w.value[ne].fileChunkList,_e=(I,H)=>new Promise((te,Ne)=>{const me=I[H];if(me)if(me.isUpload)I.length-1!==H?_e(I,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(),I[H]=me,I.length-1!==H?_e(I,H+1).then(()=>{te({code:200})}):te({code:200})})}}),Ve=G.shardingList,A=Ve.findIndex(I=>I.isUpload===!1);A!==-1?(G.status="uploading",_e(Ve,A).then(()=>{G.status="sharding",J(G)})):(G.status="sharding",J(G))}}function Oe(O,G){return new Promise((ne,de)=>{NS.put({url:O,data:G}).then(_e=>{ne(_e)}).catch(()=>{de(new Error(x("uploadError")))})})}async function J(O){U();const G=await gS({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=Ho(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 yS({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=w.value.findIndex(_e=>_e.md5===O);de!==-1&&w.value.splice(de,1),$(),ne.key&&ne.uploadId?(await uS({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:w,fileUploadList:u,successFileList:b,blobSlice:S,defaultChunkSize:V,fileUploadNumFn:$,onClose:h,show:g,setDialogVisible:C,setPublicRea:E,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 SS=t=>(e.pushScopeId("data-v-396f7126"),t=t(),e.popScopeId(),t),TS={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"},DS={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},VS={class:"absolute right-[10px]"},$S={class:"dialog_body"},BS={class:"mb-[10px]"},AS={class:"text-sm leading-[30px]"},IS={class:"mb-[10px]"},LS={class:"text-sm leading-[30px]"},FS={class:"text-center"},OS={class:"text-xs text-hy-text-secondary"},RS={class:"uploadList select-none"},PS={class:"flex-grow w-0"},MS={class:"text-right mt-[20px]"},US={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"},zS={class:"relative border-b border-hy-border-2 pl-2 text-[18px] font-bold h-[50px] flex items-center justify-between"},WS={class:"absolute right-[10px]"},jS={class:"dialog_body el-dialog__body !p-[0_0_10px_0]"},HS={class:"progressBox text-hy-text-main el-progress-bar__outer_backgroundv3"},YS={class:"flex items-center"},GS={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},qS={key:0,class:"flex items-center justify-center"},KS={key:0,class:"select-none click-box"},XS={class:"iconCloseBox click-box ml-[4px]"},JS={class:"flex flex-row leading-[20px] text-hy-danger select-none"},ZS={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},QS={class:"flex flex-row mb-[4px]"},vS={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},eT=SS(()=>e.createElementVNode("span",null,[e.createElementVNode("i",{class:"el-icon-loading text-hy-main"})],-1)),tT={class:"flex flex-row leading-[20px]"},nT={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},oT={class:"text-hy-main"},aT={class:"flex flex-row mb-[4px]"},sT={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},lT={class:"iconCloseBox click-box"},rT={class:"flex flex-row leading-[20px]"},iT={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},cT={class:"text-hy-success"},dT={key:0,class:"text-hy-text-secondary flex items-center justify-center text-xs noData h-full"},pT={class:"text-center"},fT={class:"mt-[10px]"},mT=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:w,fileList:b,fileUploadList:S,successFileList:V,blobSlice:$,defaultChunkSize:h,fileUploadNumFn:g,onClose:C,show:E,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}=ES({emit:a});return e.onMounted(()=>{R()}),n({fileUploadShow:F,fileUploadAPkShow:j,fileUploadVersionShow:L,show:E}),(ne,de)=>{const _e=e.resolveComponent("svg-icon"),Ve=e.resolveComponent("el-option"),A=e.resolveComponent("el-select"),I=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(Ie,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",TS,[e.createElementVNode("div",DS,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("fileUpload")),1),e.createElementVNode("div",VS,[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",$S,[e.createElementVNode("div",BS,[e.createElementVNode("div",AS,e.toDisplayString(e.unref(x)("fileType")),1),e.createVNode(A,{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",IS,[e.createElementVNode("div",LS,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",FS,[e.createVNode(I,{class:"text-[60px] text-hy-text-secondary"},{default:e.withCtx(()=>[e.createVNode(e.unref(rh))]),_:1}),e.createElementVNode("div",OS,[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",RS,[(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",PS,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",MS,[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(Ie,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",US,[e.createElementVNode("div",zS,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("fileUpload")),1),e.createElementVNode("div",WS,[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",jS,[e.createElementVNode("ul",HS,[(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",YS,[e.createElementVNode("div",GS,e.toDisplayString(K.fileName),1),K.fileType!==5?(e.openBlock(),e.createElementBlock("div",qS,[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",KS,[e.createVNode(_e,{width:"16",height:"16",name:"live-broadcast-refresh-v3"})]))]),_:2},1032,["content"])]),_:2},1032,["before-upload","http-request"]),e.createElementVNode("div",XS,[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",JS,[e.createElementVNode("div",ZS,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",QS,[e.createElementVNode("div",vS,e.toDisplayString(K.fileName),1),eT]),e.createElementVNode("div",tT,[e.createElementVNode("div",nT,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("uploadingPatientWait"))+"…",1)]),e.createElementVNode("span",oT,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",aT,[e.createElementVNode("div",sT,e.toDisplayString(K.fileName),1),e.createElementVNode("div",lT,[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",rT,[e.createElementVNode("div",iT,[e.createElementVNode("span",null,e.toDisplayString(K.completionTime),1)]),e.createElementVNode("span",cT,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",dT,[e.createElementVNode("div",pT,[e.createVNode(_e,{name:"base-no-data",class:"!w-[50px] !h-[50px]"}),e.createElementVNode("div",fT,e.toDisplayString(e.unref(x)("noData-3")),1)])])):e.createCommentVNode("",!0)])])])]),_:1})),[[W]])]),_:1},8,["model-value"])])}}}),[["__scopeId","data-v-396f7126"]]);function hT({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=Ue.getCache("userInfo");let w=[];k!=null&&k.lng&&(k!=null&&k.lat)&&(w=[k.lat,k.lng]),w.length===0&&(w=null),o.value=await l.map("selectMapLocation",{maxZoom:p.maxZoom||18,minZoom:p.minZoom||5,zoom:p.zoom||13,center:w,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 w=await r.placeSearch({keywords:k,offset:10,page:1});if(w){const b=w[0];m({lng:b.lng,lat:b.lat})}else t("on-geographical-position",{})}async function m(k){var b;const w=await r.reverseGeocoder(k);w&&((b=w.address)!=null&&b.length)||Se({type:"warning",message:"未获取到地址信息"}),_({lng:k.lng,lat:k.lat,address:w.formatted_address,name:w.formatted_address,...w})}function _(k){s.value=k,t("on-geographical-position",k),y()}function y(k){a.value&&l.removeMarker(o.value,a.value);let w,b;k?(w=k.lat,b=k.lng):(w=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,[w,b],18),a.value=l.marker(o.value,[w,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 uT={class:"w-full h-full relative"},_T={class:"relative z-[1] w-full h-full"},gT={id:"selectMapLocation",ref:"selectMapLocation",class:"w-full h-full"},yT=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:_}=hT({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",uT,[e.withDirectives(e.createVNode(Gt,{class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(l)]]),e.createElementVNode("div",_T,[e.createElementVNode("div",gT,null,512)])]))}}),[["__scopeId","data-v-8ec3e599"]]);function xT({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 g1({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 Fl({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 kT={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},NT={key:0},bT={key:1},CT={class:"absolute right-[12px] top-[12px]"},wT={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg relative z-10"},ET={style:{height:"500px"},class:"c_fff fs_12 dialog_body text-hy-text-main text-[12px]"},ST={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},TT={class:"information"},DT={class:"flex_vertically_center flex items-center"},VT={style:{"margin-left":"6px"}},$T={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},BT={class:"flex_vertically_center flex items-center"},AT={style:{"margin-left":"6px"}},IT={key:0,class:"type_box success"},LT={key:1,class:"type_box"},FT={class:"form fs_12 text-[12px]"},OT={key:0},RT={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},PT={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"},MT={key:1},UT={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},zT={class:"r-f mb_10 flex_vertically_center flex mb-[10px] items-center"},WT={class:"mr_10 label flex-shrink mr-[10px]"},jT={class:"r-f flex_vertically_center flex items-center"},HT={class:"mr_10 label label_answer flex-shrink mr-[10px]"},YT={key:0,class:"c_theme text-hy-text-primary"},GT={key:1,class:"c_9DA7B2 text-hy-text-secondary"},qT={key:2},KT={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px]"},XT={class:"group-item"},JT=["onClick"],ZT={key:0,class:"c-f-i group-content r-f flex"},QT={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},vT=["src"],eD={key:1,style:{"flex-grow":"1"}},tD={class:"icon-box c-f-i flex"},nD={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},oD={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},aD={key:0,class:"information-type"},sD={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},lD={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},rD={key:0,class:"c_9DA7B2 text-hy-text-secondary"},iD={key:1},cD={key:1,class:"c-f-i group-content r-f flex"},dD={style:{"flex-grow":"1"}},pD={class:"icon-box c-f-i flex"},fD={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},mD={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},hD={key:0,class:"information-type"},uD={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},_D={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},gD={key:0,class:"c_9DA7B2 text-hy-text-secondary"},yD={key:1},xD={key:2,class:"c-f-i group-content r-f flex"},kD={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},ND=["src"],bD={key:1,style:{"flex-grow":"1"}},CD={class:"icon-box c-f-i flex"},wD={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},ED={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},SD={key:0,class:"information-type"},TD={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},DD={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},VD={key:0,class:"c_9DA7B2 text-hy-text-secondary"},$D={key:1},BD={key:3},AD={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},ID={class:"group-item"},LD=["onClick"],FD={key:0,class:"c-f-i group-content r-f flex"},OD={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},RD=["src"],PD={key:1,style:{"flex-grow":"1"}},MD={class:"icon-box c-f-i flex"},UD={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},zD={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},WD={key:0,class:"information-type"},jD={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},HD={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},YD={key:0,class:"c_9DA7B2 text-hy-text-secondary"},GD={key:1},qD={key:1,class:"c-f-i group-content r-f flex"},KD={style:{"flex-grow":"1"}},XD={class:"icon-box c-f-i flex"},JD={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},ZD={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},QD={key:0,class:"information-type"},vD={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},eV={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},tV={key:0,class:"c_9DA7B2 text-hy-text-secondary"},nV={key:1},oV={key:2,class:"c-f-i group-content r-f flex"},aV={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},sV=["src"],lV={key:1,style:{"flex-grow":"1"}},rV={class:"icon-box c-f-i"},iV={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},cV={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},dV={key:0,class:"information-type"},pV={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]"},mV={key:0,class:"c_9DA7B2 text-hy-text-secondary"},hV={key:1},Vr=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}=xT({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",kT,[o.formType===1?(e.openBlock(),e.createElementBlock("span",NT,e.toDisplayString(e.unref(a)("exception")),1)):o.formType===2?(e.openBlock(),e.createElementBlock("span",bT,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",CT,[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",wT,[e.createElementVNode("div",ET,[e.createElementVNode("div",ST,[e.createElementVNode("div",TT,[e.createElementVNode("div",DT,[e.createVNode(f,{style:{width:"14px",height:"14px"},name:"icon-user","class-name":"text-hy-text-main"}),e.createElementVNode("span",VT,[e.createTextVNode(e.toDisplayString(e.unref(r).name),1),e.unref(r).jobNum?(e.openBlock(),e.createElementBlock("span",$T,"("+e.toDisplayString(e.unref(r).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",BT,[e.createVNode(f,{name:"base-every-day-time",class:"w-[16px] h-[16px]"}),e.createElementVNode("span",AT,e.toDisplayString(e.unref(r).executeDtm),1)]),e.unref(r).checkState===1?(e.openBlock(),e.createElementBlock("div",IT,e.toDisplayString(e.unref(a)("normal")),1)):e.unref(r).checkState===2?(e.openBlock(),e.createElementBlock("div",LT,e.toDisplayString(e.unref(a)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",FT,[e.unref(r).dealSituation?(e.openBlock(),e.createElementBlock("div",OT,[e.createElementVNode("div",RT,e.toDisplayString(e.unref(a)("handling")),1),e.createElementVNode("p",PT,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",MT,[e.createElementVNode("div",UT,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",zT,[e.createElementVNode("p",WT,e.toDisplayString(e.unref(a)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(y.optionTitle),1)]),e.createElementVNode("div",jT,[e.createElementVNode("p",HT,e.toDisplayString(e.unref(a)("answer")),1),y.optionValue?(e.openBlock(),e.createElementBlock("span",YT,e.toDisplayString(y.optionValue),1)):(e.openBlock(),e.createElementBlock("span",GT,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",qT,[e.createElementVNode("div",KT,e.toDisplayString(e.unref(a)("picture")),1),e.createElementVNode("div",XT,[(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",ZT,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.filePath&&y.del!==1?(e.openBlock(),e.createElementBlock("div",QT,[e.createElementVNode("img",{src:y.filePath,class:"h_100vh h-full"},null,8,vT)])):(e.openBlock(),e.createElementBlock("div",eD,[e.createElementVNode("div",tD,[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",nD,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",oD,[y.type===1?(e.openBlock(),e.createElementBlock("div",aD,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",sD,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",lD," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",rD,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",iD,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",cD,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[e.createElementVNode("div",dD,[e.createElementVNode("div",pD,[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",fD,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",mD,[y.type===1?(e.openBlock(),e.createElementBlock("div",hD,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",uD,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",_D," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",gD,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",yD,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",xD,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.screenshot1?(e.openBlock(),e.createElementBlock("div",kD,[e.createElementVNode("img",{src:y.screenshot1,class:"h_100vh h-full"},null,8,ND)])):(e.openBlock(),e.createElementBlock("div",bD,[e.createElementVNode("div",CD,[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",wD,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",ED,[y.type===1?(e.openBlock(),e.createElementBlock("div",SD,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",TD,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",DD," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",VD,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",$D,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,JT))),128))])])):e.createCommentVNode("",!0),e.unref(r).videoList&&e.unref(r).videoList.length?(e.openBlock(),e.createElementBlock("div",BD,[e.createElementVNode("div",AD,e.toDisplayString(e.unref(a)("video")),1),e.createElementVNode("div",ID,[(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",FD,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.filePath&&y.del!==1?(e.openBlock(),e.createElementBlock("div",OD,[e.createElementVNode("img",{src:y.filePath,class:"h_100vh h-full"},null,8,RD)])):(e.openBlock(),e.createElementBlock("div",PD,[e.createElementVNode("div",MD,[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",UD,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",zD,[y.type===1?(e.openBlock(),e.createElementBlock("div",WD,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",jD,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",HD," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",YD,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",GD,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",qD,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[e.createElementVNode("div",KD,[e.createElementVNode("div",XD,[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",JD,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",ZD,[y.type===1?(e.openBlock(),e.createElementBlock("div",QD,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",vD,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",eV," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",tV,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",nV,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",oV,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.screenshot1?(e.openBlock(),e.createElementBlock("div",aV,[e.createElementVNode("img",{src:y.screenshot1,class:"h_100vh h-full"},null,8,sV)])):(e.openBlock(),e.createElementBlock("div",lV,[e.createElementVNode("div",rV,[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",iV,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",cV,[y.type===1?(e.openBlock(),e.createElementBlock("div",dV,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",pV,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",fV," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",mV,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",hV,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,LD))),128))])])):e.createCommentVNode("",!0)])])])]),e.createVNode(Ie,{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 uV(t){return oe.post({url:"taskAssign/v2/taskItem/select",data:t,isFormData:!0})}function ca(t){return oe.post({url:"taskAssign/v2/taskItemView",data:t,isFormData:!0})}function _V(t){return oe.post({url:"taskAssign/taskExample/select",data:t,isFormData:!0})}function gV({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,w)=>{const b=await(t.controller==="taskAssign/taskExample"?_V({id:N}):m1({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 w=N.videos;w&&w.length&&(a.value=w.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 yV={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},xV={class:"absolute right-[12px] top-[12px]"},kV={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg-1 relative z-10"},NV={class:"dialog_body"},bV={class:"dialog_body_content lh_20 leading-[20px]"},CV={class:"mb_20 mb-[20px]"},wV={class:"requiredTitle"},EV={class:"plr_20 p-[0_20px]",style:{"max-height":"200px",overflow:"auto"}},SV=["innerHTML"],TV={key:0,class:"mb_20 mb-[20px]"},DV={class:"requiredTitle"},VV={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},$V={class:"imgBox"},BV={class:"centerBox deleteBox flex items-center justify-center"},AV=["src"],IV={key:1,class:"mb_20 mb-[20px]"},LV={class:"requiredTitle"},FV={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},OV={class:"imgBox"},RV={class:"centerBox deleteBox flex items-center justify-center"},PV={class:"pos_a w_100vh centerBox absolute w-full flex justify-center items-center"},MV={class:"operator-button centerBox mt_20 mt-[20px] flex justify-center items-center"},UV={class:"c_fff activatedImei text-hy-text-main"},zV={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},WV={class:"dialog_body",style:{height:"500px"}},jV={class:"pos_r w_100vh h_100vh w-full h-full relative"},$r=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}=gV({props:o});return n({show:s,taskExampleFn:l}),(w,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:!w.draggable,draggable:w.draggable,"modal-class":w.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",yV,[e.createElementVNode("span",null,e.toDisplayString(e.unref(p).exampleName||e.unref(a)("missionExample")),1),e.createElementVNode("div",xV,[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",kV,[e.createElementVNode("div",NV,[e.createElementVNode("div",bV,[e.createElementVNode("div",CV,[e.createElementVNode("div",wV,e.toDisplayString(e.unref(a)("sampleContent")),1),e.createElementVNode("div",EV,[e.createElementVNode("div",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(p).exampleContent},null,8,SV)])]),e.unref(f).length?(e.openBlock(),e.createElementBlock("div",TV,[e.createElementVNode("div",DV,e.toDisplayString(e.unref(a)("exampleImage")),1),e.createElementVNode("ul",VV,[(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",$V,[e.createElementVNode("div",BV,[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(a)("check-0"),onClick:E=>e.unref(m)(C)},null,8,["tips","onClick"])]),e.createElementVNode("img",{src:g,alt:""},null,8,AV)])]))),128))])])):e.createCommentVNode("",!0),e.unref(_).length?(e.openBlock(),e.createElementBlock("div",IV,[e.createElementVNode("div",LV,e.toDisplayString(e.unref(a)("exampleVideo")),1),e.createElementVNode("ul",FV,[(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",OV,[e.createElementVNode("div",RV,[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(a)("check-0"),onClick:E=>e.unref(y)(g)},null,8,["tips","onClick"])]),e.createElementVNode("div",PV,[e.createVNode(S,{name:"base-video-cover",style:{height:"40px",width:"40px"}})])])]))),128))])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",MV,[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:!w.draggable,draggable:w.draggable,"modal-class":w.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(Ie,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",UV,[e.createElementVNode("div",zV,[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",WV,[e.createElementVNode("div",jV,[e.createVNode(aa,{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(Ie,{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(jo,{ref_key:"hyImageViewerRef",ref:r},null,512)]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-d7cac0ec"]]);function HV(){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 w(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}},Nk=sr({type:String,values:fk,required:!1}),bk=Symbol("size"),Ck=Symbol("emptyValuesContextKey"),wk=_n({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>Gn(t)?!t():!t}}),ur=Symbol(),Zn=e.ref();function _r(t,n=void 0){const o=e.getCurrentInstance()?e.inject(ur,Zn):Zn;return t?e.computed(()=>{var a,s;return(s=(a=o.value)==null?void 0:a[t])!=null?s:n}):o}function Ek(t,n){const o=_r(),a=ta(t,e.computed(()=>{var i;return((i=o.value)==null?void 0:i.namespace)||Jn})),s=gk(e.computed(()=>{var i;return(i=o.value)==null?void 0:i.locale})),l=kk(e.computed(()=>{var i;return((i=o.value)==null?void 0:i.zIndex)||fr})),r=e.computed(()=>{var i;return e.unref(n)||((i=o.value)==null?void 0:i.size)||""});return gr(e.computed(()=>e.unref(o)||{})),{ns:a,locale:s,zIndex:l,size:r}}const gr=(t,n,o=!1)=>{var a;const s=!!e.getCurrentInstance(),l=s?_r():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?Sk(l.value,c):c});return r(ur,i),r(ir,e.computed(()=>i.value.locale)),r(cr,e.computed(()=>i.value.namespace)),r(hr,e.computed(()=>i.value.zIndex)),r(bk,{size:e.computed(()=>i.value.size||"")}),r(Ck,e.computed(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(o||!Zn.value)&&(Zn.value=i.value),i},Sk=(t,n)=>{const o=[...new Set([...or(t),...or(n)])],a={};for(const s of o)a[s]=n[s]!==void 0?n[s]:t[s];return a},Tk=_n({a11y:{type:Boolean,default:!0},locale:{type:at(Object)},size:Nk,button:{type:at(Object)},experimentalFeatures:{type:at(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:at(Object)},zIndex:Number,namespace:{type:String,default:"el"},...wk}),Qe={};e.defineComponent({name:"ElConfigProvider",props:Tk,setup(t,{slots:n}){e.watch(()=>t.message,a=>{Object.assign(Qe,a??{})},{immediate:!0,deep:!0});const o=gr(t);return()=>e.renderSlot(n,"default",{config:o==null?void 0:o.value})}});var na=(t,n)=>{const o=t.__vccOpts||t;for(const[a,s]of n)o[a]=s;return o};const Dk=_n({size:{type:at([Number,String])},color:{type:String}}),Vk=e.defineComponent({name:"ElIcon",inheritAttrs:!1}),$k=e.defineComponent({...Vk,props:Dk,setup(t){const n=t,o=ta("icon"),a=e.computed(()=>{const{size:s,color:l}=n;return!s&&!l?{}:{fontSize:nk(s)?void 0:ea(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 Bk=na($k,[["__file","icon.vue"]]);const yr=rr(Bk),Ak=_n({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:at([String,Object,Array])},offset:{type:at(Array),default:[0,0]},badgeClass:{type:String}}),Ik=e.defineComponent({name:"ElBadge"}),Lk=e.defineComponent({...Ik,props:Ak,setup(t,{expose:n}){const o=t,a=ta("badge"),s=e.computed(()=>o.isDot?"":It(o.value)&&It(o.max)?o.max<o.value?`${o.max}+`:o.value===0&&!o.showZero?"":`${o.value}`:`${o.value}`),l=e.computed(()=>{var r,i,c,p,d;return[{backgroundColor:o.color,marginRight:ea(-((i=(r=o.offset)==null?void 0:r[0])!=null?i:0)),marginTop:ea((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 Fk=na(Lk,[["__file","badge.vue"]]);const Ok=rr(Fk),xr=["success","info","warning","error"],ze=mk({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}),Rk=_n({customClass:{type:String,default:ze.customClass},center:{type:Boolean,default:ze.center},dangerouslyUseHTMLString:{type:Boolean,default:ze.dangerouslyUseHTMLString},duration:{type:Number,default:ze.duration},icon:{type:ik,default:ze.icon},id:{type:String,default:ze.id},message:{type:at([String,Object,Function]),default:ze.message},onClose:{type:at(Function),default:ze.onClose},showClose:{type:Boolean,default:ze.showClose},type:{type:String,values:xr,default:ze.type},plain:{type:Boolean,default:ze.plain},offset:{type:Number,default:ze.offset},zIndex:{type:Number,default:ze.zIndex},grouping:{type:Boolean,default:ze.grouping},repeatNum:{type:Number,default:ze.repeatNum}}),Pk={destroy:()=>!0},ve=e.shallowReactive([]),Mk=t=>{const n=ve.findIndex(s=>s.id===t),o=ve[n];let a;return n>0&&(a=ve[n-1]),{current:o,prev:a}},Uk=t=>{const{prev:n}=Mk(t);return n?n.vm.exposed.bottom.value:0},zk=(t,n)=>ve.findIndex(a=>a.id===t)>0?16:n,Wk=e.defineComponent({name:"ElMessage"}),jk=e.defineComponent({...Wk,props:Rk,emits:Pk,setup(t,{expose:n}){const o=t,{Close:a}=ck,{ns:s,zIndex:l}=Ek("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&&lr[h]}}),y=e.computed(()=>o.icon||lr[o.type]||""),u=e.computed(()=>Uk(o.id)),N=e.computed(()=>zk(o.id,o.offset)+u.value),k=e.computed(()=>d.value+N.value),w=e.computed(()=>({top:`${N.value}px`,zIndex:r.value}));function b(){o.duration!==0&&({stop:f}=w1(()=>{V()},o.duration))}function S(){f==null||f()}function V(){p.value=!1}function $({code:h}){h===pk.esc&&V()}return e.onMounted(()=>{b(),i(),p.value=!0}),e.watch(()=>o.repeatNum,()=>{S(),b()}),E1(document,"keydown",$),$1(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(w)),role:"alert",onMouseenter:S,onMouseleave:b},[h.repeatNum>1?(e.openBlock(),e.createBlock(e.unref(Ok),{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(yr),{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(yr),{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 Hk=na(jk,[["__file","message.vue"]]);let Yk=1;const kr=t=>{const n=!t||mn(t)||e.isVNode(t)||Gn(t)?{message:t}:t,o={...ze,...n};if(!o.appendTo)o.appendTo=document.body;else if(mn(o.appendTo)){let a=document.querySelector(o.appendTo);ok(a)||(Xn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),o.appendTo=a}return nr(Qe.grouping)&&!o.grouping&&(o.grouping=Qe.grouping),It(Qe.duration)&&o.duration===3e3&&(o.duration=Qe.duration),It(Qe.offset)&&o.offset===16&&(o.offset=Qe.offset),nr(Qe.showClose)&&!o.showClose&&(o.showClose=Qe.showClose),o},Gk=t=>{const n=ve.indexOf(t);if(n===-1)return;ve.splice(n,1);const{handler:o}=t;o.close()},qk=({appendTo:t,...n},o)=>{const a=`message_${Yk++}`,s=n.onClose,l=document.createElement("div"),r={...n,id:a,onClose:()=>{s==null||s(),Gk(d)},onDestroy:()=>{e.render(null,l)}},i=e.createVNode(Hk,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=kr(t);if(o.grouping&&ve.length){const s=ve.find(({vnode:l})=>{var r;return((r=l.props)==null?void 0:r.message)===o.message});if(s)return s.props.repeatNum+=1,s.props.type=o.type,s.handler}if(It(Qe.max)&&ve.length>=Qe.max)return{close:()=>{}};const a=qk(o,n);return ve.push(a),a.handler};xr.forEach(t=>{Zt[t]=(n={},o)=>{const a=kr(n);return Zt({...a,type:t},o)}});function Kk(t){for(const n of ve)(!t||t===n.props.type)&&n.handler.close()}Zt.closeAll=Kk,Zt._context=null;const Se=dk(Zt,"$message");function Xk({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 E=Number(f.value.lat);return E<=90&&E>=-90?E:"内容错误"}),_=e.computed(()=>{const E=Number(f.value.lng);return E<=180&&E>=-180?E:"内容错误"});function y(){m.value&&m.value!=="内容错误"&&_&&_.value!=="内容错误"&&u(f.value)}function u(E){if(E.lng&&E.lat){t.h.setView(t.map,[E.lat,E.lng],18);const D=t.h.marker(t.map,[E.lat,E.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(E,D){return T=>{if(!s.value)return!1;s.value=!1,setTimeout(()=>{E(T),s.value=!0},D)}}function k(){console.log("触发加载"),!c.value&&(p.value=!0,r.value++,e.nextTick(()=>{S()}))}function w(){n.value=null,f.value={lat:"",lng:""},b()}function b(E){o.value=[],r.value=1,c.value=!1,p.value=!1,a.value!==5&&e.nextTick(()=>{E!==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 E=await t.poi.placeSearch({keywords:n.value,offset:l.value,page:r.value});if(console.log(E),E){const D=E,T=[];for(let B=0;B<D.length;B++){const L=D[B];T.push({...L,id:mt.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 E=await f1({page:r.value-1,size:10,query:n.value});if(E.code===200){const D=E.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===E.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}async function h(){const E=await g_({page:r.value-1,size:10,query:n.value});if(E.code===200){const D=E.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===E.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}function g(E){const D=[];for(let T=0;T<E.length;T++){const B=E[T],L=n.value.indexOf(B),j={content:E[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:w,placeholderFn:C,inputSearch:f,showSearchLat:m,showSearchLng:_,searchLngLat:y}}const Jk={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"},Zk=["src"],Qk={class:"ml_10 ml-[10px]",style:{width:"calc(100% - 34px)"}},vk={class:"title fs_14 c_fff over_one_line fw_600 text-[14px] text-hy-text-main truncate font-bold"},eN={class:"address over_one_line fs_12 c_fff truncate text-[12px] text-hy-text-main"},tN={class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"},nN={class:"ml_20 ml-[20px]"},oN=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",Jk,[e.createElementVNode("img",{src:e.unref(l).orgTypeIcon,class:"w-full h-full"},null,8,Zk)])):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",Qk,[e.createElementVNode("div",vk,[(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",eN,e.toDisplayString(e.unref(l).address),1),e.createElementVNode("div",tN,[e.createElementVNode("span",null,"经度:"+e.toDisplayString(e.unref(l).lng),1),e.createElementVNode("span",nN,"维度:"+e.toDisplayString(e.unref(l).lat),1)])])])}}}),[["__scopeId","data-v-393b9954"]]),aN=t=>(e.pushScopeId("data-v-5856b649"),t=t(),e.popScopeId(),t),sN={style:{display:"inline-block","flex-direction":"column",width:"300px"},class:"search_lightColor pos_r relative"},lN={class:"r-f flex"},rN={class:"flex",style:{width:"calc(100% - 42px)"}},iN={key:1,class:"w-[58%] flex justify-between ml-[4px]"},cN={class:"flex flex-col leading-[20px] ml-[10px]"},dN=aN(()=>e.createElementVNode("span",{class:"text-[14px] font-[600] text-hy-text-main mb-[5px]"},"填写经纬度",-1)),pN={class:"text-[12px] text-hy-text-secondary"},fN={class:"text-[12px] text-hy-text-secondary"},mN={key:2,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},hN={key:3,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},oa=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}=Xk({props:n});return e.onMounted(()=>{var w;a.value=(w=n.searchTypes[0])==null?void 0:w.value}),(w,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",sN,[e.createElementVNode("div",lN,[e.createElementVNode("div",rN,[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(w.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",iN,[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(mt.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(mt.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(Hs),{key:0,"infinite-scroll-disabled":"disabled",class:"filterContentList",style:{height:"400px","overflow-y":"auto"},"data-key":"id","data-sources":e.unref(p),"data-component":oN,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",cN,[dN,e.createElementVNode("span",pN,[e.createTextVNode("经度:"),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)==="内容错误"?"text-hy-danger":"")},e.toDisplayString(e.unref(l)||"请输入经度"),3)]),e.createElementVNode("span",fN,[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",mN," 加载中... ")):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createElementBlock("p",hN," 没有更多了 ")):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-5856b649"]]);function Qt(t=mt.sessionCache.getCache("mapConfig")){function n(){if(!t){mt.logger.warning("use-map","initHyMap","地图配置不能为空");return}const i=bn.MapProviderFactory.createMapProvider(t.mapType);return new bn.HyMap(i,t)}function o(){if(!t){mt.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 uN(t){return oe.post({url:"mapRail/findAllWithDevice",data:t,isFormData:!0})}function _N(t){return oe.post({url:"mapRail/deleteBatch",data:t,isFormData:!0})}function gN(t){return oe.post({url:t.id?"mapRail/update":"mapRail/insert",data:t,isJson:!0})}function Nr(t){return oe.post({url:"mapRail/select",data:t,isFormData:!0})}function yN(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),w=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=Ue.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 $(){E(),w.value&&(l.removePolygon(p.value,w.value),w.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){w.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(w.value),E()}function E(){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 Nr({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(w.value)}function j(){var z;L();let M=[];if(w.value&&(M=l.getShapeLatLngs(w.value)),(M==null?void 0:M.length)===0||!w.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 gN(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 xN=t=>(e.pushScopeId("data-v-b3493890"),t=t(),e.popScopeId(),t),kN={class:"text-hy-text-main"},NN={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]"},bN={class:"dialog_body"},CN={class:""},wN={class:"form-label"},EN={class:"relative flex flex-row h-[50px]"},SN={class:"z-[1]"},TN={class:"form-label"},DN={class:"w-full flex items-center form-item"},VN={class:"form-label"},$N={class:"flex items-center form-item"},BN=xN(()=>e.createElementVNode("span",{class:"text-sm ml-[10px] text-hy-text-secondary flex-shrink"},"M",-1)),AN={class:"flex items-center form-item"},IN={class:"text-xs text-hy-text-secondary flex items-center"},LN={class:"text-hy-main"},FN={class:"text-right mt-[10px]"},ON=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:w,startDraw:b,removePolygon:S,onSubmit:V}=yN({emit:a});return n({show:w}),($,h)=>{const g=e.resolveComponent("svg-icon"),C=e.resolveComponent("el-input"),E=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",kN,[e.createElementVNode("div",NN,[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",bN,[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(E,{prop:"railName"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",CN,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(E,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",wN,e.toDisplayString(e.unref(x)("electronicFenceRange")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",EN,[e.createElementVNode("div",SN,[e.unref(u)&&e.unref(_)?(e.openBlock(),e.createBlock(oa,{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(E,{class:"m-0 pl-[20px]"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",TN,e.toDisplayString(e.unref(x)("drawingMethod")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",DN,[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(E,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",VN,e.toDisplayString(e.unref(x)("rangeDistance")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",$N,[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"]),BN])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(D,{span:6},{default:e.withCtx(()=>[e.createVNode(E,{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",AN,[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(E,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",IN,[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",LN,e.toDisplayString(e.unref(f)),1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"]),e.createElementVNode("div",FN,[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 RN(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){ft({tipsTitle:x("deleteElectronicFence"),tipsContent:`<div><p>${x("confirmToDeleteTheCurrentDeletedElectronicFence")}?</p></div>`,submitBtnText:x("confirm-0")},async()=>{(await _N({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 PN={class:"w-full h-full"},MN={class:"flex items-center justify-center"},UN={class:"ml-[6px]"},zN={class:"flex"},WN=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}=RN({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",PN,[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",MN,[e.createVNode(y,{width:"16",height:"16",name:"base-add-3"}),e.createElementVNode("span",UN,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:w=>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",zN,[e.createVNode(Me,{name:"icon-edit",tips:e.unref(x)("edit"),onClick:w=>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:w=>e.unref(f)(k.id)},null,8,["tips","onClick"])])]),_:3},8,["search-arr","column-list","search-form"]),e.createVNode(ON,{ref_key:"addElectronicFenceRef",ref:s,onOnSubmit:e.unref(d)},null,8,["onOnSubmit"])])}}});var qe=(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))(qe||{});function jN(t){return oe.post({url:"/mediaFile/location/findAll",data:{mediaFileId:t},isFormData:!0})}function HN(t){return oe.get({url:t,xAmzAcl:!0,isFileUpload:!0,fileType:""})}function br(t){return oe.post({url:"/mediaFile/getFileScore",data:{id:t},isFormData:!0})}function YN(t){return oe.post({url:"/mediaFile/fileScore",data:t,isJson:!0})}function GN(t){return oe.post({url:"/mediaFile/remark/findAll",data:t,isFormData:!0})}function qN(t){return oe.post({url:"/mediaFile/saveRemark",data:t,isJson:!0})}function Cr(t){return oe.post({url:"/mediaFile/remark/deleteBatch",data:t,isFormData:!0})}function KN(t){return oe.post({url:"/mediaFile/point/findAll",data:t,isFormData:!0})}function XN(t){return oe.post({url:"/mediaFile/savePoint",data:t,isJson:!0})}function JN(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(qe.NO_LOAD),u=e.ref(100),N=e.computed(()=>y.value!==qe.NO_LOAD&&y.value!==qe.CAN_NOT_PLAY),k=e.computed(()=>o.value.playList.find(U=>U.id===d.value.id));function w(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")),w(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(qe.IS_LOAD),f.value=Math.floor(i.value.duration),n("can-play",f.value)}),i.value.addEventListener("play",()=>{i.value.playbackRate=s.value,z(qe.PLAYING),p.value&&k.value&&n("play-start",{audioUrl:p.value,playItem:k.value})}),i.value.addEventListener("pause",()=>{z(qe.PAUSE)}),i.value.addEventListener("volumechange",()=>{u.value=i.value.volume*100}),i.value.addEventListener("ended",()=>{z(qe.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(qe.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];E(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];E(R.filePath,R)}else pe.ElMessage.warning(x("currentIsTheFirstItem"))}function E(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 HN(`/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:E,resumePlay:D,pauseAudio:T,getNowWh:B,changeVolume:L,getPercent:j,jumpDuration:F,canPlay:N}}const ZN=t=>(e.pushScopeId("data-v-27a5006a"),t=t(),e.popScopeId(),t),QN={class:"w-full flex items-center box-border"},vN=ZN(()=>e.createElementVNode("audio",{id:"audio-el"},null,-1)),e0={class:"flex-grow w-0 mx-3 progress-box"},t0={class:"flex justify-between items-center text-xs text-hy-text-secondary mt-1"},n0={class:"flex-shrink-0 flex"},o0={class:"flex items-center justify-center p-[10px_0]"},a0={class:"text-hy-text-secondary text-xs w-full"},s0=["onClick"],l0={class:"flex items-center click-box"},r0={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"},i0={class:"click-box"},c0={key:1},d0=["onClick"],p0={class:"click-box mx-1"},f0={class:"flex items-center justify-center"},m0={class:"click-box click-box"},wr=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:w,speedFn:b,initPlayer:S,playNext:V,playPrevious:$,playAudio:h,resumePlay:g,pauseAudio:C,getNowWh:E,changeVolume:D,getPercent:T,jumpDuration:B,canPlay:L}=JN({emit:s,props:a});return e.onBeforeUnmount(()=>{d.value=null}),e.onMounted(()=>{w(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",QN,[vN,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(qe).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(qe).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",e0,[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(E)()),onMousedown:F[6]||(F[6]=Y=>l.value=!0)},null,36),[[e.vModelText,e.unref(f)]]),e.createElementVNode("div",t0,[e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(y)))+'"',1),e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(_)))+'"',1)])]),e.createElementVNode("div",n0,[e.createVNode(z,{placement:"top",width:"62px","popper-class":"!p-0",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",l0,[e.createElementVNode("div",r0,[(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",o0,[e.createElementVNode("ul",a0,[(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,s0))),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",i0,[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",c0,[(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(w)(Y.value)},[e.createVNode(U,{effect:"dark",content:Y.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",p0,[e.createVNode(M,{width:"26",height:"26",name:Y.svgName},null,8,["name"])])]),_:2},1032,["content"])],8,d0)),[[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",m0,[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-volumn"})])]),_:1},8,["content"])])]),default:e.withCtx(()=>[e.createElementVNode("div",f0,[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 h0(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"),w=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 E(){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&&w.value&&n("play-start",{audioUrl:c.value,playItem:w.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:E,changeVolume:D,getNowWh:T,getPercent:B,resumePlay:L,pauseVideo:j,initVideo:F,initFullScreenEvent:M,jumpDuration:z,clickFullScreen:U}}const u0=t=>(e.pushScopeId("data-v-d0d3957a"),t=t(),e.popScopeId(),t),_0={class:"flex-grow h-0 relative"},g0={key:0,class:"absolute right-[10px] top-[4px] z-[2]"},y0={key:0,class:"my-2 click-box"},x0={key:1},k0=["onClick"],N0={class:"click-box"},b0=u0(()=>e.createElementVNode("video",{id:"videoPlayer",width:"100%",header:"100%"},[e.createElementVNode("source",{type:"video/mp4"})],-1)),C0={class:"progress-box px-2"},w0={class:"my-2 flex items-center justify-between px-2 relative"},E0={class:"text-xs text-hy-text-secondary"},S0={key:0,class:"mx-2 flex items-center justify-center absolute left-1/2 -translate-x-1/2"},T0={class:"flex items-center"},D0={class:"flex items-center justify-center p-[10px_0]"},V0={class:"text-hy-text-secondary text-xs w-full"},$0=["onClick"],B0={class:"flex items-center click-box"},A0={class:"border h-[24px] box-border border-hy-border-2 rounded text-xs text-hy-text-secondary px-2 flex items-center justify-center"},I0={class:"flex items-center justify-center"},L0={class:"mx-2"},F0={class:"click-box"},O0={class:"text-hy-info"},aa=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:w,playRulesFn:b,speedFn:S,playNext:V,playPrevious:$,playVideo:h,downloadFn:g,changeVolume:C,getNowWh:E,getPercent:D,resumePlay:T,pauseVideo:B,initVideo:L,initFullScreenEvent:j,jumpDuration:F,clickFullScreen:M}=h0({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",_0,[z.downloadFilesType||z.playRulesType?(e.openBlock(),e.createElementBlock("div",g0,[z.downloadFilesType?(e.openBlock(),e.createElementBlock("div",y0,[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",x0,[(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",N0,[e.createVNode(R,{width:"26",height:"26",name:v.svgName},null,8,["name"])])]),_:2},1032,["content"])],8,k0)),[[e.vShow,e.unref(p)===v.value]])),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),b0]),e.createElementVNode("div",C0,[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(E)()),onMousedown:U[2]||(U[2]=v=>N.value=!0)},null,36),[[e.vModelText,e.unref(f)]])]),e.createElementVNode("div",w0,[e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",E0,[e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(y)))+'"',1),e.createTextVNode("/ "),e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(u)))+'"',1)],512),[[e.vShow,e.unref(u)!==1/0]])]),e.unref(l)?(e.openBlock(),e.createElementBlock("div",S0,[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",T0,[e.createVNode(X,{placement:"top",width:"62px","popper-class":"!p-0",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",B0,[e.createElementVNode("div",A0,[(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",D0,[e.createElementVNode("ul",V0,[(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,$0))),128))])])]),_:1}),e.createVNode(X,{placement:"top",trigger:"click",width:"40px"},{reference:e.withCtx(()=>[e.createElementVNode("div",L0,[e.createVNode(Y,{effect:"dark",content:e.unref(x)("adjustPlaybackVolume"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",F0,[e.createVNode(R,{width:"24",height:"24",name:"media-center-audio-volumn"})])]),_:1},8,["content"])])]),default:e.withCtx(()=>[e.createElementVNode("div",I0,[e.createVNode(P,{modelValue:e.unref(w),"onUpdate:modelValue":U[7]||(U[7]=v=>e.isRef(w)?w.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",O0,[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"]]),R0={class:"relative w-full h-full"},P0=e.createElementVNode("div",{class:"w-full h-full relative z-[1]"},[e.createElementVNode("div",{id:"amap-test",class:"w-full h-full"})],-1),Er=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(mt.sessionCache.getCache("userInfo")),d=e.reactive(mt.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:4,passedLineColor:d.success||"#9AF454",notPassedLineColor:d.theme||"#A7DDFC",markerRotation:!0,markerRotationOffset:-80,iconUrl:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAA+CAYAAABHuGlYAAAABmJLR0QA/wD/AP+gvaeTAAAMuElEQVRo3s2ZeYzd1XXHP+fe3/Lemzeb1/GCbbDNboxjR2WR2AthCZUQVZpWJG3U1N3SNC1KEFJIoZuiVkmkRMVGatr8kaSFQFJicENFw9YCVWxgbGNs4wWPl7E99syb5c37Lfee/vFm9ayAkfhJP/1+unN/537nbN9zzhPex6WqIVD62mM9nzjU6a+rDur6JGNlluti52kAsIaBKJCjUciBUlG2rWgzL33zD1q2A1URyWZ7lswSULxlW23hD5+pfqGr1392oKYXZhlkTlGdQrBAaIUwhIaC7J3TZH50352lf7lrfaFTRNIPBUxVzdGjtN7/gzN/fKJL/7y/6uckmRJHwvIFlkVzLXObDU0lIQoEYyDNlP6a0tPnOXba03HSURnwxJFQiuXM4nn2W//we62bliyhW0T8+wamqtFD/9a77vW30s09/aytpcq8JmHdqpDzFwZYM1vzQ+cZR/uBnIPHc+JQaGngrV9bG2985L6mN6bSnkwBqrDxe7337OnINlWqvrEYCldfErFqkUUQvCpHuzxHTjlOdDsqfZ4kU9RDFAqNRWFuk2HpfMvyhZYorB9zqsfzcnvCqYqnucH0Xnxe9Ieb/rLppyJSmxGYqha+8N3K5/cdc9/tq/qwrcVw27qYYiRkTtl1KKf9UMbAoMKwf4196tDL0Fpg4KLzQj6xOqRcFLzCqztTdhzMaCyZbPUS+6Xvf631B2eDk7PNt/Gx3nvfPpz/a2/VhxcvDrju0ghr4PApx4u7UvqrOuHwUUBMsaYEFjasjrhyVYgAu9/Leak9oVw02eXLos89en/TU2PNKmMd/eGf9W745Vvuv3oGfNOFbQE3XR4ByttHcl7eleL9TEB0GnD1xwVtlpuujAktHOp0PPerGk0l03vzhuiWr/9O07bhgBhx4aNHaX11j9tUSXxT2xzD9ZeHIPDSnowXd2d4I2AFjIBl/G2G32X0Ht5/1r4DJx0/e61GksOKRQFXXRZTqWnT/+zMHj3SS8swHjNswvuf7t7YXWNdsWC4bW2MtcJbRzJ2HcvPOpwZDx8PfOy++t6ufs/W7TUcypqVAecttPQM6voHHq38vqpGI8BeeHdwwYl++UrNKddcFFIsCB09ntcO5BOEzu5wmWIfI/uOV5TX92WIEa65LCJxyrHu7P4X2gcXABhVDR97wX2+P2PevGbLqraAzMMLe1O8mVzoeJMxhWln3rfjcE5P1dPSaLhkRUh/JvM3/yL9nKqGAVDqqua/naqybkXdr3Z1OvqzIeFnOfXjf9SMEdjanrK1PeFYt580VSxuNdy+Nub2tTHOK5/5TmVCQHhVXns341NXxmxYHfLO8ZzTA/6zwPeCh57pu2LAyaVRJJw/3+BR2juH/GokomREqAisXmhZ/etFvnRLkbc6cp5tT3huVwoKt14Wc8cVMWuXBcjQZ/s63Vnyht+Fg12e0wPK3LJh2fyAU73u8gd/2Lcm2HdGrs+AZfMM1gpHejwDU2gL4Kk3Ex64rTRC1FcuC7hyWcADdzTUo2kSqnryV8kYeRNz4N4TOVc3RZzfZjlW8Rzs8tebvlQ3ZKosbjUg0FHx06aAn+9KGcwmlhTGTA4qyZRndibTRnVHt4LAknmGTJX+RD9pUljpjTC3bMAIJ6o6bQroz+EXu2ddVrF1V0ZvyrTReqbmyRXKRUMYGVK4wKSqi7HQVBAQ6M10xhTwxI5k1sB+8mYyY7SqgUrNg4HGspB6XWLUSBkr9QrAQE11xhSw86Rn90k3I6i9pxw7Ot2s2CJxdaeNIkGNlI0aZGSjgJ6tpSmE/mTnjEUoj7+ZTsyBZpLcZsBL/XxjwRsxxoZSxQi51v8QhpNkdzORgp7dmzGQ6pSgqpny7J5sGu2PN+uwxTIFG9JvbMAJLAzkCkZoLJpZZfWqh2f3TR0Ez+7JGHA6K2LHQlOp7uP9OQRWOk0hMAfFQndaD9n5ZTPrauHxt6cG9uTb2ay5taFoKERC4qHqlCjmkGmI2R6EwrHBuimXNJtZVwt7ezw7JgmCXScdb592syb2pa0GRDje5wkjoVwy28zSVl6JQqFjwKMCy5sNQTj7auGJPRO19sQ76SyJvS531fy6lQ73esJQOK9FXjEPXVt6tRRJR8VBZ02JArhorpm10P88lNE7JggGMuW5Q27SgBkbhcOy5zQYlrZYnMK7FU+pQMfX72z4P9MM1dayPB4G0N7tQYR1C4IxWmNKoRghQdiyPx8BtmV/zoDXWZdBVy0LMBZ2dTlUoLVB/r0ZqkZEkluW2++XCtQO9HtOpZ5yLKxfaNFZ1mBP7M9GOPnJ/dmMOXDYV5e2WJa3WhIP2056SrGp3nlJ/M8ikhiAjauiA/OKweYoEl46Wfe1dfMtK1sNahm9p4jWA/3K8x05/30kZ0/Fz1CG18EWY+HGFQEYeOOkQ42yoFEe/d010aFxXdLP9+uyb+8ffLlrUJetaTVcu8CSefiP93JODepoWz1J9yOTdkQ6ZTcVCty9MmRBUTg+oGzZn9IamUNf3WCuu21VqWNcl3TXBRy7dI79cmPB5O29nt29ntDCp5cHtJVlWmJXwzjNTleGF2Ph7tUhCxqESqY8dzinFJvsirbgz25dWTw2VcNb/K3/Tf/ivQH3N4MObm2znN9g6iXwKceOHj91bzmDtgRYWhJuXBJQDoVKomw5lOE8rCjz4I8+1fAdERmcbkRQvvfV5JGjVf+VQQdXz7Fc0VJn2J5Eee2042CfTmuqs9fmRHDVfMvyRgMKx6ue5zocRmFJWf7xiVuLD4tI/2yGKo2feT396pGaPtiferOsKFwzz9IyNBw5nSj7ej2Hq8qZmo4oaawPlgNhaUlYWTac1yAIkHrY3uVoP+0pBbhlZfPwj28sfPtsUDONoUpffCO7991+961KxlwPXFI2fLLFUAxGtZF7pZJBbWiIFxuhMYCClRGtOoWd3Z7tpx1OoTmUExeW7Zc3XRs9PdZ872dwF24+nK7ecpxHTqd6T9WpoLC8KJxfMiwpCOVg7Aejr6lTjg0qhweUd/s8uYeSFTc34sefbpO//uLF8QERyT/wqFNVBSjdvzu/5p1+96c9KXckToPUM6QhaLRCXO9lSF29hBrIFQNEBgqGweZAnlrTHGz+uyuCbSJSPScz2LEAN3emy188zt09ud40kOv63Mscr0ri6sIKRjCQxaKHiobt8wv2l/csCrfetYguYFBE9JwNhycBGQAxEP7T8XTRK538xv5B/XsULi+z8W9Xxj9tK5MAGZBMN2ud6go+CLAh3xj2j54/eSdfsz/Noe783Ysa5RQf8go4V9dQM4E9N+LODbBhuuJjCWwoXXysgDFmCIP5mGnM8DE0Jefexz6E3lXQ+q3B6JhBYWR9dOL3UQHTURD8lRpUDYoMfW88yEihGIyuowiqZuibMYA/rClHhcjI/Y2Rf2h4jSQg0CHnrwUEQDiuOvsG48vL4fJoGnoKZgnKjHkawNwNpgomrmCMEA3/GhcK0Z0VikkzvgT+afCMv3XkqSpTgQtmCare93QREGBvsAQnDDYQbF+EaREp+Kx+ZNVQ6IpoCKr4PsXd4HEvOHJyHPPIgeGZwrTgghlIZhhUAAQ3x4Q9lqjPECZCKCmhE2wipuSDurUGhYY+R7NVnEZkuZKtt2QtlvT5UfPn48DNSmMT/crefoZgMCSqBsRJSkEtcZMh9kqcQ5ArZTOULhxaLiqtgZIbR9LrScSRVCPMDX1IMYOtc0Y6A5lKa2YGSja/eQrrA4LMEvWlFJylmHnKNU9TDZozaB0Qyk7ACVStacigtQbNNU9T5ik7S7EvpZBZIh8Q3DdqCZmq9JopwUq/xVQNtmYI5hnCqqOQWYq5p6SGonrixBD7ocSaCgWnlMWQeI9pMBA6fMmQ9xkyY7CVUVAfKF0IQCaIA3E1TBZgRQhwhCVD5CDyQhwrx0tWTqAQw/G4XnGrFVwqpCIEmWBdDeMCJBsFJR8pJVWE00XhmwhUlCr60XKlAoQ61PkX8GGGy5QcS1b1pCpYVaRf8d1CAiCKDyETIRUlDZRclTxUnC3gbY6GE9vk960xLTu89zjvybs8mbPU3JDveIdTQ+YhML4eSN7gA8hwpMaSDHgGraVWdWTNnrzkcc3TpImpm5HRdDGSw24/QzgYEiUBcZ4SVy2FJkOc5kQIoResHZLlQO2QlqKAtNeTlBy1ICKJc5JiRrp1DtlQLhtmgwn0JNNk/okJto/QGcK+lCgxhMYQ5ELgBRMMycrrwJzVupZjT9YYkVpP9nzjCKB8HEVNkvnlfVESWHoIbrbYQcEmBhvUsL6I+FpdlimgAfhU8bHHFRX3vMPRMkJH7izenJTM/x9H3imgJH3ZugAAAABJRU5ErkJggg==",typeof document>"u"&&typeof Eo>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?Eo.href:ma&&ma.src||new URL("command-center-v3-common.umd.cjs",document.baseURI).href).href,iconAnchor:[19,62]}),i.fitBounds(o.value,u)}async function y(u){if(c.value=u,c.value){const N=await jN(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",R0,[e.withDirectives(e.createVNode(Gt,{ref:"mapNoPermissions",class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(l)]]),P0]))}});function M0(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 YN(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 U0={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"},z0={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},W0={class:"absolute right-[10px]"},j0={class:"dialog_body"},H0={class:"text-center m-[20px_0_40px_0]"},Y0={class:"flex items-center justify-center mb-[10px] text-sm"},G0={class:"text-hy-text-main mr-[6px]"},q0={class:"text-hy-text-secondary text-xs"},K0={class:"operator-button flex items-center justify-center mt-[20px]"},sa=e.defineComponent({__name:"file-score",emits:["on-close","on-submit"],setup(t,{expose:n,emit:o}){const a=o,s=e.reactive(Ue.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}=M0({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(Ie,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",U0,[e.createElementVNode("div",z0,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("confirmScore")),1),e.createElementVNode("div",W0,[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",j0,[e.createElementVNode("div",H0,[e.createElementVNode("div",Y0,[e.createElementVNode("span",G0,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",q0,e.toDisplayString(e.unref(x)("noSecondaryModificationAfterScoring")),1)]),e.createElementVNode("div",K0,[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 X0(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(Ue.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 KN({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 XN({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"),ft({tipsTitle:x("deleteDot"),tipsContent:`<div class="text-center"><p>${x("deleteDotPositionCannotBeRestored")}</p><p>${x("confirmDeletion")}?</p></div>`,submitBtnText:x("confirm-0")},()=>{w()},()=>{f()})}async function w(){(await Cr({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:w,userInfo:d}}const la=t=>(e.pushScopeId("data-v-ae4b4f28"),t=t(),e.popScopeId(),t),J0={class:"w-full h-full"},Z0={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},Q0={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},v0={class:"text-hy-text-main font-bold text-sm"},eb={class:"flex items-center justify-center"},tb={class:"ml-[6px]"},nb={class:"flex-grow h-0"},ob={class:"h-full flex flex-col"},ab={class:"p-3 pb-0"},sb={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col text-xs"},lb={class:"flex-grow h-0"},rb={class:"flex items-center justify-between"},ib={class:"text-hy-text-secondary mr-1"},cb=la(()=>e.createElementVNode("span",null,"/",-1)),db={key:0,class:"px-3 py-1 text-hy-text-main text-xs flex-grow h-0 overflow-auto"},pb={class:"flex items-center justify-between"},fb={class:"flex-grow w-0 mr-1 flex items-center"},mb={class:"ml-2 flex-grow w-0"},hb={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},ub={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},_b={key:0,class:"flex-shrink-0 flex"},gb={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},yb={class:"flex-grow h-0"},xb={class:"flex items-center justify-between"},kb={class:"text-hy-text-secondary mr-1"},Nb=la(()=>e.createElementVNode("span",null,"/",-1)),bb={class:"px-2 mt-3 mb-1 text-xs"},Cb={class:"flex items-center justify-between"},wb={class:"text-hy-text-secondary mr-1"},Eb=la(()=>e.createElementVNode("span",null,"/",-1)),Sb={class:"flex items-center mt-1"},Tb={class:"text-hy-text-secondary mr-1"},Db={class:"flex-grow w-0 ml-1"},Vb={key:1,class:"w-full flex-grow h-0 flex items-center justify-center rounded"},$b={class:"text-center text-xs text-hy-text-secondary"},Bb={class:"mt-3"},Sr=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:w,userInfo:b}=X0({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"),E=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",J0,[e.createElementVNode("div",Z0,[e.createElementVNode("div",Q0,[e.createElementVNode("div",v0,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",eb,[e.createVNode($,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),e.createElementVNode("span",tb,e.toDisplayString(e.unref(x)("addDot-0")),1)])]),_:1},512),[[e.vShow,S.mediaFileId]])])]),e.createElementVNode("div",nb,[e.createVNode(E,{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",ob,[e.withDirectives(e.createElementVNode("div",ab,[e.createElementVNode("div",sb,[e.createElementVNode("div",lb,[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",rb,[e.createElementVNode("div",null,[e.createElementVNode("span",ib,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(ot)(Number(e.unref(i).time||o.mediaFileCurTime)))+" ",1),cb,e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(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",db,[(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",pb,[e.createElementVNode("div",fb,[e.createVNode(xt,{url:D.remarkUserHeadImg},null,8,["url"]),e.createElementVNode("div",mb,[e.createElementVNode("p",hb,e.toDisplayString(D.remarkUserName),1),e.createElementVNode("p",ub,e.toDisplayString(D.remarkUserSerialNum),1)])]),D.remarkUserId===e.unref(l)&&e.unref(i).id!==D.id?(e.openBlock(),e.createElementBlock("div",_b,[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",gb,[e.createElementVNode("div",yb,[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",xb,[e.createElementVNode("div",null,[e.createElementVNode("span",kb,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(ot)(Number(e.unref(i).time||o.mediaFileCurTime)))+" ",1),Nb,e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(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",bb,[e.createElementVNode("div",Cb,[e.createElementVNode("div",null,[e.createElementVNode("span",wb,e.toDisplayString(e.unref(x)("dotPosition")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(D.time)))+" ",1),Eb,e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(S.mediaFileTotalTime))),1)]),e.createElementVNode("div",null,[e.createElementVNode("p",null,e.toDisplayString(D.updateDtm||D.createDtm),1)])]),e.createElementVNode("div",Sb,[e.createElementVNode("span",Tb,e.toDisplayString(e.unref(x)("dotName")),1),e.createElementVNode("div",Db,e.toDisplayString(D.content),1)])],512),[[e.vShow,!(e.unref(i).id===D.id&&e.unref(p))]])]))),128))])):(e.openBlock(),e.createElementBlock("div",Vb,[e.createElementVNode("div",$b,[e.createVNode($,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),e.createElementVNode("div",Bb,e.toDisplayString(e.unref(x)("noData")),1)])]))])]),_:1},8,["model","rules"])])])])}}}),[["__scopeId","data-v-ae4b4f28"]]);function Ab(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(Ue.getCache("userInfo"));function f(){l.value=!1,n("on-close"),r.value={content:""}}async function m(){if(o.value.mediaFileId){const b=await GN({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 qN(r.value)).code===200&&(m(),f())}})}function u(b){p.value=b,ft({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 Cr({ids:p.value})).code===200&&(m(),N(),n("on-delete"))}function w(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:w,userInfo:d}}const Ib={class:"w-full h-full"},Lb={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},Fb={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},Ob={class:"text-hy-text-main font-bold text-sm"},Rb={class:"flex items-center justify-center"},Pb={class:"ml-[6px]"},Mb={class:"flex-grow h-0"},Ub={class:"h-full flex flex-col"},zb={class:"p-3 pb-0"},Wb={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col"},jb={class:"flex-grow h-0"},Hb={class:"h-[40px] flex items-end justify-end"},Yb={key:0,class:"px-3 py-1 text-hy-text-main text-xs flex-grow h-0 overflow-auto"},Gb={class:"flex items-center justify-between"},qb={class:"flex-grow w-0 mr-1 flex items-center"},Kb={class:"ml-2 flex-grow w-0"},Xb={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},Jb={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},Zb={key:0,class:"flex-shrink-0 flex items-center"},Qb={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},vb={class:"flex-grow h-0"},eC={class:"h-[40px] flex items-end justify-end"},tC={key:1,class:"w-full flex-grow h-0 flex items-center justify-center rounded"},nC={class:"text-center text-xs text-hy-text-secondary"},oC={class:"mt-3"},ra=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:w}=Ab({emit:a,props:o});return e.watch(()=>o.mediaFileId,()=>{f()}),e.onMounted(()=>{l.value=w.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",Ib,[e.createElementVNode("div",Lb,[e.createElementVNode("div",Fb,[e.createElementVNode("div",Ob,e.toDisplayString(e.unref(x)("reminderList")),1),e.createElementVNode("div",null,[e.withDirectives(e.createVNode($,{type:"success",class:"",onClick:S[0]||(S[0]=E=>e.unref(m)())},{default:e.withCtx(()=>[e.createElementVNode("div",Rb,[e.createVNode(V,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),e.createElementVNode("span",Pb,e.toDisplayString(e.unref(x)("addRemarks-0")),1)])]),_:1},512),[[e.vShow,b.mediaFileId]])])]),e.createElementVNode("div",Mb,[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",Ub,[e.withDirectives(e.createElementVNode("div",zb,[e.createElementVNode("div",Wb,[e.createElementVNode("div",jb,[e.createVNode(g,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(i).content,"onUpdate:modelValue":S[1]||(S[1]=E=>e.unref(i).content=E),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",Hb,[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",Yb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),E=>(e.openBlock(),e.createElementBlock("li",{key:E.id,class:"bg-hy-page-bg-3 rounded my-2 p-2 box-hy-border-2"},[e.createElementVNode("div",Gb,[e.createElementVNode("div",qb,[e.createVNode(xt,{url:E.remarkUserHeadImg},null,8,["url"]),e.createElementVNode("div",Kb,[e.createElementVNode("p",Xb,e.toDisplayString(E.remarkUserName),1),e.createElementVNode("p",Jb,e.toDisplayString(E.remarkUserSerialNum),1)])]),E.remarkUserId===e.unref(l)&&e.unref(i).id!==E.id?(e.openBlock(),e.createElementBlock("div",Zb,[e.createVNode(Me,{class:"!mx-0","class-nmae":"HyRoundButtonV2",name:"icon-edit",tips:e.unref(x)("edit"),onClick:D=>e.unref(k)(E)},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)(E.id)},null,8,["tips","onClick"])])):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",Qb,[e.createElementVNode("div",vb,[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",eC,[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===E.id&&e.unref(r)]]),e.withDirectives(e.createElementVNode("div",{class:"px-2 mt-3 mb-1"},e.toDisplayString(E.content),513),[[e.vShow,!(e.unref(i).id===E.id&&e.unref(r))]])]))),128))])):(e.openBlock(),e.createElementBlock("div",tC,[e.createElementVNode("div",nC,[e.createVNode(V,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),e.createElementVNode("div",oC,e.toDisplayString(e.unref(x)("noData")),1)])]))])]),_:1},8,["model","rules"])])])])}}});function Tr(t){const n=t.emit,o=e.ref(qe.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(Ue.getCache("colorObject"));console.log("colorObject",d,Ue.getCache("colorObject"));const 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 E=await br(C);E.code===200&&(r.value=E.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 w(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:w,playPoint:S,onEditMark:V,onEditorClose:$,setAudioState:h}}const ia=t=>(e.pushScopeId("data-v-e67170d8"),t=t(),e.popScopeId(),t),aC={class:"h-full text-hy-text-main flex flex-col"},sC={class:"h-[60px] flex justify-between items-center px-5 hy-dialog_header"},lC={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},rC={class:"text-hy-danger"},iC={class:"flex-grow h-0 overflow-y-auto"},cC={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},dC={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},pC={class:"audio-play-icon-box flex"},fC={class:"relative"},mC={class:"point_area"},hC={class:"point point_dot relative"},uC={class:"w-full h-full rounded-full bg-hy-page-bg-2 flex items-center justify-center text-hy-text-main"},_C={class:"duration-1000"},gC=[ia(()=>e.createElementVNode("div",{class:"point point_10"},null,-1)),ia(()=>e.createElementVNode("div",{class:"point point_40"},null,-1)),ia(()=>e.createElementVNode("div",{class:"point point_shadow point_80"},null,-1))],yC={key:0,class:"w-full file-info"},xC={class:"info-item"},kC={class:"info-label"},NC={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},bC={class:"info-item"},CC={class:"info-label"},wC={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},EC={key:0,class:"flex items-center"},SC={key:1,class:"text-hy-text-secondary"},TC={class:"info-item"},DC={class:"info-label"},VC={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},$C={class:"info-item"},BC={class:"info-label"},AC={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},IC={key:0},LC={key:1},FC={key:2,class:"text-hy-danger"},OC={key:3,class:"text-hy-text-secondary"},RC={class:"info-item"},PC={class:"info-label"},MC={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},UC={class:"info-item"},zC={class:"info-label"},WC={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},jC={class:"info-item"},HC={class:"info-label"},YC={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},GC={key:1,class:"text-hy-text-secondary"},qC={class:"info-item"},KC={class:"info-label"},XC={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},JC={class:"info-item flex items-center text-xs"},ZC={class:"info-label"},QC={class:"flex items-center rateBox"},vC={key:0,class:"text-hy-text-secondary"},ew={key:1,class:"text-hy-text-main"},tw={class:"info-item"},nw={class:"info-label"},ow={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},aw={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},sw={class:"mb-1"},lw={class:"w-[60%] flex"},rw={class:"flex-grow w-0 ml-2"},iw={class:"flex-grow w-0 ml-2"},cw=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:w,playStart:b,canPlay:S,onTimeUpdate:V,playPoint:$,onEditMark:h,onEditorClose:g,setAudioState:C}=Tr({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 E;(E=s.value)==null||E.playAudio(o.item.filePath,o.item)})})}),(E,D)=>{const T=e.resolveComponent("svg-icon"),B=e.resolveComponent("el-col"),L=e.resolveComponent("el-rate"),j=e.resolveComponent("el-row"),F=Er;return e.openBlock(),e.createElementBlock("div",aC,[e.createVNode(sa,{ref_key:"fileScoreRef",ref:l,onOnClose:D[0]||(D[0]=M=>f.value=null)},null,512),e.createElementVNode("div",sC,[e.createElementVNode("div",lC,[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",rC,[e.createVNode(T,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])]),e.createElementVNode("div",iC,[e.createElementVNode("div",cC,[e.createElementVNode("div",dC,[e.createElementVNode("div",pC,[e.createElementVNode("div",fC,[e.createElementVNode("div",mC,[e.createElementVNode("div",hC,[e.createElementVNode("div",uC,[e.createVNode(T,{width:"60%",height:"60%",name:"menu-micphone--2-select"})])]),e.withDirectives(e.createElementVNode("div",_C,gC,512),[[e.vShow,e.unref(p)===e.unref(qe).PLAYING]])])])]),e.unref(m)&&e.unref(m).id?(e.openBlock(),e.createElementBlock("div",yC,[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",xC,[e.createElementVNode("span",kC,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",NC,e.toDisplayString(e.unref(m).uploadDateStr),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",bC,[e.createElementVNode("span",CC,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",wC,[e.unref(m).mark?(e.openBlock(),e.createElementBlock("span",EC,[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",SC,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",TC,[e.createElementVNode("span",DC,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",VC,e.toDisplayString(e.unref(m).devUserName),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",$C,[e.createElementVNode("span",BC,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",AC,[e.unref(m).type===1?(e.openBlock(),e.createElementBlock("span",IC,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(m).type===2?(e.openBlock(),e.createElementBlock("span",LC,e.toDisplayString(e.unref(x)("task")),1)):e.unref(m).type===3?(e.openBlock(),e.createElementBlock("span",FC,"SOS")):(e.openBlock(),e.createElementBlock("span",OC,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",RC,[e.createElementVNode("span",PC,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",MC,e.toDisplayString(e.unref(m).deviceId),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",UC,[e.createElementVNode("span",zC,e.toDisplayString(e.unref(x)("audioDuration")),1),e.createElementVNode("span",WC,e.toDisplayString(e.unref(_))+"s ",1)])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",jC,[e.createElementVNode("span",HC,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(m).expiredDtm?(e.openBlock(),e.createElementBlock("span",YC,e.toDisplayString(e.unref(m).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",GC,"-"))])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",qC,[e.createElementVNode("span",KC,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",XC,e.toDisplayString(e.unref(Yo)(e.unref(m).fileSize)),1)])]),_:1}),e.withDirectives(e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",JC,[e.createElementVNode("span",ZC,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",QC,[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",vC,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",ew,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",tw,[e.createElementVNode("span",nw,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",ow,e.toDisplayString(e.unref(m).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",aw,[e.createVNode(F,{ref_key:"mapFileTrackRef",ref:r},null,512)]),e.createElementVNode("div",sw,[e.createVNode(wr,{ref_key:"audioPlayerRef",ref:s,"play-list":E.playList,onOnTimeUpdate:e.unref(V),onCanPlay:e.unref(S),onPlayEnd:e.unref(k),onPlayStart:e.unref(w),onOnAudioState:e.unref(C)},null,8,["play-list","onOnTimeUpdate","onCanPlay","onPlayEnd","onPlayStart","onOnAudioState"])])]),e.createElementVNode("div",lw,[e.createElementVNode("div",rw,[e.createVNode(ra,{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",iw,[e.createVNode(Sr,{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 dw(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 $=Ho(new Date,"Y-M-h D:m:s"),h=await Go(`/mediaFile/mediaFileZip?mediaFileIds=${V.toString()}`),g=new FileReader;g.readAsDataURL(h),g.onload=C=>{const E=URL.createObjectURL(new Blob([h])),D=document.createElement("a");document.body.appendChild(D),D.href=E,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 w(){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 br($);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:w,error:b,playStart:S}}const pw={class:"h-full pic-detail-box flex flex-col"},fw={class:"detail-box flex-shrink-0 hy-dialog_header"},mw={class:"box-header flex flex-row m-0"},hw={class:"flex flex-row left-header-box"},uw={class:"group-hy-info flex items-center text-base font-bold w-full"},_w={key:1,class:"ml-1 flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap"},gw={class:"flex flex-row right-header-box flex-shrink text-hy-danger"},yw={class:"flex-grow h-0 overflow-y-auto"},xw={class:"content flex flex-row h-full min-h-[700px]"},kw={class:"left-content-box relative"},Nw=["src"],bw={class:"flex items-center justify-between h-[60px] box-hy-border-2"},Cw={class:"text-xs"},ww={class:"text-xs"},Ew={class:"flex items-center"},Sw={class:"text-xs text-hy-text-secondary mr-2 flex items-center"},Tw={class:"flex items-center justify-center"},Dw={class:"ml-1 text-xs"},Vw={key:0,class:"w-full file-info mb-[10px]"},$w={class:"info-item"},Bw={class:"info-label"},Aw={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Iw={class:"info-item"},Lw={class:"info-label"},Fw={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Ow={class:"info-item"},Rw={class:"info-label"},Pw={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Mw={class:"info-item"},Uw={class:"info-label"},zw={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Ww={key:0},jw={key:1},Hw={key:2,class:"text-hy-danger"},Yw={key:3,class:"text-hy-text-secondary"},Gw={class:"info-item"},qw={class:"info-label"},Kw={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Xw={key:1,class:"text-hy-text-secondary"},Jw={class:"info-item"},Zw={class:"info-label"},Qw={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},vw={key:0,class:"flex items-center"},eE={key:1,class:"text-hy-text-secondary"},tE={class:"info-item"},nE={class:"info-label"},oE={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},aE={class:"info-item flex items-center text-xs"},sE={class:"info-label"},lE={class:"flex items-center rateBox"},rE={key:0,class:"text-hy-text-secondary"},iE={key:1,class:"text-hy-text-main"},cE={class:"info-item"},dE={class:"info-label"},pE={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},fE={key:0,class:"w-[30%] ml-2 flex-shrink-0 relative"},mE=be(e.defineComponent({__name:"image-details",props:{item:{},playList:{default:()=>[]}},emits:["closeDrawer"],setup(t,{emit:n}){const o=t,a=n,s=e.reactive(Ue.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:w}=dw({emit:a,props:o});return e.onMounted(()=>{w(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"),E=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",pw,[e.createVNode(sa,{ref_key:"fileScoreRef",ref:i,onOnClose:S[0]||(S[0]=D=>p.value=null)},null,512),e.createElementVNode("div",fw,[e.createElementVNode("div",mw,[e.createElementVNode("div",hw,[e.createElementVNode("div",uw,[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",_w,e.toDisplayString(e.unref(d).fileName),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",gw,[e.createVNode(V,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])])]),e.createElementVNode("div",yw,[e.createElementVNode("div",xw,[e.createElementVNode("div",kw,[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,Nw)]),e.createElementVNode("div",bw,[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",Cw,e.toDisplayString(e.unref(x)("previous")),1)]),_:1},8,["onClick"]),e.createVNode($,{type:"primary",class:"",onClick:e.unref(_)},{default:e.withCtx(()=>[e.createElementVNode("span",ww,e.toDisplayString(e.unref(x)("next")),1)]),_:1},8,["onClick"])],512),[[e.vShow,o.playList.length>1]])]),e.createElementVNode("div",Ew,[e.createElementVNode("p",Sw,[e.createVNode(h,{class:"text-sm mr-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(dh))]),_: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",Tw,[e.createVNode(V,{class:"w-[12px] h-[12px]",name:"media-download"}),e.createElementVNode("span",Dw,e.toDisplayString(e.unref(x)("download-0")),1)])]),_:1})])]),e.unref(d)&&e.unref(d).id?(e.openBlock(),e.createElementBlock("div",Vw,[e.createVNode(E,{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",$w,[e.createElementVNode("span",Bw,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",Aw,e.toDisplayString(e.unref(d).uploadDateStr),1)])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",Iw,[e.createElementVNode("span",Lw,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",Fw,e.toDisplayString(e.unref(Yo)(e.unref(d).fileSize)),1)])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",Ow,[e.createElementVNode("span",Rw,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",Pw,e.toDisplayString(e.unref(d).devUserName),1)])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",Mw,[e.createElementVNode("span",Uw,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",zw,[e.unref(d).type===1?(e.openBlock(),e.createElementBlock("span",Ww,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(d).type===2?(e.openBlock(),e.createElementBlock("span",jw,e.toDisplayString(e.unref(x)("task")),1)):e.unref(d).type===3?(e.openBlock(),e.createElementBlock("span",Hw,"SOS")):(e.openBlock(),e.createElementBlock("span",Yw,"-"))])])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",Gw,[e.createElementVNode("span",qw,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(d).expiredDtm?(e.openBlock(),e.createElementBlock("span",Kw,e.toDisplayString(e.unref(d).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",Xw,"-"))])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",Jw,[e.createElementVNode("span",Zw,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",Qw,[e.unref(d).mark?(e.openBlock(),e.createElementBlock("span",vw,[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",eE,"-"))])])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",tE,[e.createElementVNode("span",nE,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",oE,e.toDisplayString(e.unref(d).deviceId),1)])]),_:1}),e.withDirectives(e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",aE,[e.createElementVNode("span",sE,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",lE,[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",rE,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",iE,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",cE,[e.createElementVNode("span",dE,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",pE,e.toDisplayString(e.unref(d).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0)]),e.unref(d).id?(e.openBlock(),e.createElementBlock("div",fE,[e.createVNode(ra,{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(jo,{ref_key:"imageViewerRef",ref:r},null,512)])}}}),[["__scopeId","data-v-04b34f5b"]]),hE={class:"h-full text-hy-text-main flex flex-col"},uE={class:"h-[60px] flex justify-between items-center px-5 hy-dialog_header"},_E={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},gE={class:"text-hy-danger"},yE={class:"flex-grow h-0 overflow-y-auto"},xE={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},kE={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},NE={class:"h-[240px] video-player-box mt-[20px] flex"},bE={key:0,class:"w-full file-info m-[10px_0]"},CE={class:"info-item"},wE={class:"info-label"},EE={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},SE={class:"info-item"},TE={class:"info-label"},DE={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},VE={key:0,class:"flex items-center"},$E={key:1,class:"text-hy-text-secondary"},BE={class:"info-item"},AE={class:"info-label"},IE={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},LE={class:"info-item"},FE={class:"info-label"},OE={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},RE={class:"info-item"},PE={class:"info-label"},ME={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},UE={class:"info-item"},zE={class:"info-label"},WE={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},jE={key:0},HE={key:1},YE={key:2,class:"text-hy-danger"},GE={key:3,class:"text-hy-text-secondary"},qE={class:"info-item"},KE={class:"info-label"},XE={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},JE={key:1,class:"text-hy-text-secondary"},ZE={class:"info-item"},QE={class:"info-label"},vE={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},eS={class:"info-item flex items-center text-xs"},tS={class:"info-label"},nS={class:"flex items-center rateBox"},oS={key:0,class:"text-hy-text-secondary"},aS={key:1,class:"text-hy-text-main"},sS={class:"info-item"},lS={class:"info-label"},rS={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},iS={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},cS={class:"w-[60%] flex"},dS={class:"flex-grow w-0 ml-2"},pS={class:"flex-grow w-0 ml-2"},fS=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:w,playStart:b,canPlay:S,onTimeUpdate:V,playPoint:$,onEditMark:h,onEditorClose:g,setAudioState:C}=Tr({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 E;(E=s.value)==null||E.playVideo(o.item.filePath,o.item)})})}),(E,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",hE,[e.createVNode(sa,{ref_key:"fileScoreRef",ref:l,onOnClose:D[0]||(D[0]=F=>f.value=null)},null,512),e.createElementVNode("div",uE,[e.createElementVNode("div",_E,[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",gE,[e.createVNode(T,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])]),e.createElementVNode("div",yE,[e.createElementVNode("div",xE,[e.createElementVNode("div",kE,[e.createElementVNode("div",NE,[e.createVNode(aa,{ref_key:"videoPlayerRef",ref:s,"play-list":E.playList,onCanPlay:e.unref(S),onOnTimeUpdate:e.unref(V),onPlayStart:e.unref(w)},null,8,["play-list","onCanPlay","onOnTimeUpdate","onPlayStart"])]),e.unref(m)&&e.unref(m).id?(e.openBlock(),e.createElementBlock("div",bE,[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",CE,[e.createElementVNode("span",wE,e.toDisplayString(e.unref(x)("creationTime")),1),e.createElementVNode("span",EE,e.toDisplayString(e.unref(m).uploadDateStr),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",SE,[e.createElementVNode("span",TE,e.toDisplayString(e.unref(x)("fileAttributes")),1),e.createElementVNode("span",DE,[e.unref(m).mark?(e.openBlock(),e.createElementBlock("span",VE,[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",$E,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",BE,[e.createElementVNode("span",AE,e.toDisplayString(e.unref(x)("user-3")),1),e.createElementVNode("span",IE,e.toDisplayString(e.unref(m).devUserName),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",LE,[e.createElementVNode("span",FE,e.toDisplayString(e.unref(x)("fileSize")),1),e.createElementVNode("span",OE,e.toDisplayString(e.unref(Yo)(e.unref(m).fileSize)),1)])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",RE,[e.createElementVNode("span",PE,e.toDisplayString(e.unref(x)("deviceID")),1),e.createElementVNode("span",ME,e.toDisplayString(e.unref(m).deviceId),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",UE,[e.createElementVNode("span",zE,e.toDisplayString(e.unref(x)("fileSource")),1),e.createElementVNode("span",WE,[e.unref(m).type===1?(e.openBlock(),e.createElementBlock("span",jE,e.toDisplayString(e.unref(x)("daily")),1)):e.unref(m).type===2?(e.openBlock(),e.createElementBlock("span",HE,e.toDisplayString(e.unref(x)("task")),1)):e.unref(m).type===3?(e.openBlock(),e.createElementBlock("span",YE,"SOS")):(e.openBlock(),e.createElementBlock("span",GE,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",qE,[e.createElementVNode("span",KE,e.toDisplayString(e.unref(x)("expirationTime")),1),e.unref(m).expiredDtm?(e.openBlock(),e.createElementBlock("span",XE,e.toDisplayString(e.unref(m).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",JE,"-"))])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",ZE,[e.createElementVNode("span",QE,e.toDisplayString(e.unref(x)("videoDuration")),1),e.createElementVNode("span",vE,e.toDisplayString(e.unref(_))+"s ",1)])]),_:1}),e.withDirectives(e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",eS,[e.createElementVNode("span",tS,e.toDisplayString(e.unref(x)("rating")),1),e.createElementVNode("div",nS,[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",oS,e.toDisplayString(e.unref(x)("rated")),1)):(e.openBlock(),e.createElementBlock("span",aS,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",sS,[e.createElementVNode("span",lS,e.toDisplayString(e.unref(x)("location")),1),e.createElementVNode("span",rS,e.toDisplayString(e.unref(m).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",iS,[e.createVNode(Er,{ref_key:"mapFileTrackRef",ref:r},null,512)])]),e.createElementVNode("div",cS,[e.createElementVNode("div",dS,[e.createVNode(ra,{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",pS,[e.createVNode(Sr,{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"]]),mS={key:0,class:"w-full h-full"},hS=e.defineComponent({__name:"file-details",emits:["onClose"],setup(t,{expose:n,emit:o}){const a=o,s=e.ref(!1),l=e.ref(1),r=e.ref({}),i=e.ref([]);function c(){s.value=!1,a("onClose")}function p(d){l.value=d.curMediaType,r.value=d.curItem,i.value=d.playList||[],s.value=!0}return e.onMounted(()=>{}),n({show:p}),(d,f)=>e.unref(s)?(e.openBlock(),e.createElementBlock("div",mS,[e.unref(l)===2?(e.openBlock(),e.createBlock(cw,{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(fS,{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(mE,{key:2,item:e.unref(r),"play-list":e.unref(i),onCloseDrawer:c},null,8,["item","play-list"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}});function uS(t){return oe.post({url:"/file/abortMultipartUpload",data:t,showLoading:!1,isJson:!0})}function _S(t){return oe.post({url:"/file/multipartUploadAuth",data:t,showLoading:!1,isFormData:!0})}function gS(t){return oe.post({url:"/file/completeMultipartUpload",data:t,showLoading:!1,isJson:!0})}function yS(t){return oe.post({url:"/mediaFile/mediaFile/save",data:t,showLoading:!1,isJson:!0})}function xS(t){return oe.post({url:"/mediaFile/findByFileCloudKey",data:{fileCloudKey:t},showLoading:!1,isFormData:!0})}const kS="/admin",NS=new bl({baseURL:`${Ue.getCache("host")||""}${kS}`,timeout:Ys,headers:{"Content-Type":it.JSON},interceptors:{requestSuccessFn:t=>{const n=Ue.getCache("userInfo");return t.headers.token=n==null?void 0:n.token,t.headers&&t.isJson?t.headers["Content-Type"]=it.JSON:t.headers&&t.isFormData?t.headers["Content-Type"]=it.FORM_DATA:t.headers&&t.isFileUpload&&(t.responseType="blob",t.headers["Content-Type"]=it.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 Dr={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,E,D,T){return g=a(a(g,h),a(E,T)),a(g<<D|g>>>32-D,C)}function r(h,g,C,E,D,T,B){return l(g&C|~g&E,h,g,D,T,B)}function i(h,g,C,E,D,T,B){return l(g&E|C&~E,h,g,D,T,B)}function c(h,g,C,E,D,T,B){return l(g^C^E,h,g,D,T,B)}function p(h,g,C,E,D,T,B){return l(C^(g|~E),h,g,D,T,B)}function d(h,g){var C=h[0],E=h[1],D=h[2],T=h[3];C=r(C,E,D,T,g[0],7,-680876936),T=r(T,C,E,D,g[1],12,-389564586),D=r(D,T,C,E,g[2],17,606105819),E=r(E,D,T,C,g[3],22,-1044525330),C=r(C,E,D,T,g[4],7,-176418897),T=r(T,C,E,D,g[5],12,1200080426),D=r(D,T,C,E,g[6],17,-1473231341),E=r(E,D,T,C,g[7],22,-45705983),C=r(C,E,D,T,g[8],7,1770035416),T=r(T,C,E,D,g[9],12,-1958414417),D=r(D,T,C,E,g[10],17,-42063),E=r(E,D,T,C,g[11],22,-1990404162),C=r(C,E,D,T,g[12],7,1804603682),T=r(T,C,E,D,g[13],12,-40341101),D=r(D,T,C,E,g[14],17,-1502002290),E=r(E,D,T,C,g[15],22,1236535329),C=i(C,E,D,T,g[1],5,-165796510),T=i(T,C,E,D,g[6],9,-1069501632),D=i(D,T,C,E,g[11],14,643717713),E=i(E,D,T,C,g[0],20,-373897302),C=i(C,E,D,T,g[5],5,-701558691),T=i(T,C,E,D,g[10],9,38016083),D=i(D,T,C,E,g[15],14,-660478335),E=i(E,D,T,C,g[4],20,-405537848),C=i(C,E,D,T,g[9],5,568446438),T=i(T,C,E,D,g[14],9,-1019803690),D=i(D,T,C,E,g[3],14,-187363961),E=i(E,D,T,C,g[8],20,1163531501),C=i(C,E,D,T,g[13],5,-1444681467),T=i(T,C,E,D,g[2],9,-51403784),D=i(D,T,C,E,g[7],14,1735328473),E=i(E,D,T,C,g[12],20,-1926607734),C=c(C,E,D,T,g[5],4,-378558),T=c(T,C,E,D,g[8],11,-2022574463),D=c(D,T,C,E,g[11],16,1839030562),E=c(E,D,T,C,g[14],23,-35309556),C=c(C,E,D,T,g[1],4,-1530992060),T=c(T,C,E,D,g[4],11,1272893353),D=c(D,T,C,E,g[7],16,-155497632),E=c(E,D,T,C,g[10],23,-1094730640),C=c(C,E,D,T,g[13],4,681279174),T=c(T,C,E,D,g[0],11,-358537222),D=c(D,T,C,E,g[3],16,-722521979),E=c(E,D,T,C,g[6],23,76029189),C=c(C,E,D,T,g[9],4,-640364487),T=c(T,C,E,D,g[12],11,-421815835),D=c(D,T,C,E,g[15],16,530742520),E=c(E,D,T,C,g[2],23,-995338651),C=p(C,E,D,T,g[0],6,-198630844),T=p(T,C,E,D,g[7],10,1126891415),D=p(D,T,C,E,g[14],15,-1416354905),E=p(E,D,T,C,g[5],21,-57434055),C=p(C,E,D,T,g[12],6,1700485571),T=p(T,C,E,D,g[3],10,-1894986606),D=p(D,T,C,E,g[10],15,-1051523),E=p(E,D,T,C,g[1],21,-2054922799),C=p(C,E,D,T,g[8],6,1873313359),T=p(T,C,E,D,g[15],10,-30611744),D=p(D,T,C,E,g[6],15,-1560198380),E=p(E,D,T,C,g[13],21,1309151649),C=p(C,E,D,T,g[4],6,-145523070),T=p(T,C,E,D,g[11],10,-1120210379),D=p(D,T,C,E,g[2],15,718787259),E=p(E,D,T,C,g[9],21,-343485551),h[0]=a(C,h[0]),h[1]=a(E,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],E,D,T,B,L,j;for(E=64;E<=g;E+=64)d(C,f(h.substring(E-64,E)));for(h=h.substring(E-64),D=h.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],E=0;E<D;E+=1)T[E>>2]|=h.charCodeAt(E)<<(E%4<<3);if(T[E>>2]|=128<<(E%4<<3),E>55)for(d(C,T),E=0;E<16;E+=1)T[E]=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],E,D,T,B,L,j;for(E=64;E<=g;E+=64)d(C,m(h.subarray(E-64,E)));for(h=E-64<g?h.subarray(E-64):new Uint8Array(0),D=h.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],E=0;E<D;E+=1)T[E>>2]|=h[E]<<(E%4<<3);if(T[E>>2]|=128<<(E%4<<3),E>55)for(d(C,T),E=0;E<16;E+=1)T[E]=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),E=(h>>16)+(g>>16)+(C>>16);return E<<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 E=this.byteLength,D=h(g,E),T=E,B,L,j,F;return C!==o&&(T=h(C,E)),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 w(h,g){var C=h.length,E=new ArrayBuffer(C),D=new Uint8Array(E),T;for(T=0;T<C;T+=1)D[T]=h.charCodeAt(T);return g?D:E}function b(h){return String.fromCharCode.apply(null,new Uint8Array(h))}function S(h,g,C){var E=new Uint8Array(h.byteLength+g.byteLength);return E.set(new Uint8Array(h)),E.set(new Uint8Array(g),h.byteLength),C?E:E.buffer}function V(h){var g=[],C=h.length,E;for(E=0;E<C-1;E+=2)g.push(parseInt(h.substr(E,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,E,D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],T;for(E=0;E<C;E+=1)D[E>>2]|=g.charCodeAt(E)<<(E%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,E,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;E=this._length*8,E=E.toString(16).match(/(.*?)(.{0,8})$/),D=parseInt(E[2],16),T=parseInt(E[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),E=N(C);return g?V(E):E},$.ArrayBuffer=function(){this.reset()},$.ArrayBuffer.prototype.append=function(h){var g=S(this._buff.buffer,h,!0),C=g.length,E;for(this._length+=h.byteLength,E=64;E<=C;E+=64)d(this._hash,m(g.subarray(E-64,E)));return this._buff=E-64<C?new Uint8Array(g.buffer.slice(E-64)):new Uint8Array(0),this},$.ArrayBuffer.prototype.end=function(h){var g=this._buff,C=g.length,E=[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)E[D>>2]|=g[D]<<(D%4<<3);return this._finish(E,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=w(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)),E=N(C);return g?V(E):E},$})})(Dr);var bS=Dr.exports;const CS=ol(bS);class wS{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 CS.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 ES(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),w=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 E(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(){E(!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(A=>{pe.ElMessage.success(`${x("startUploading")} ${A}`),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(){w.value=[],b.value=[];const O=Ue.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 wS().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),A=[],I=()=>{const H=de*V.value,te=H+V.value>=ne?ne:H+V.value;if(_e=S.value.call(O,H,te),A.push(_e),de++,de<Ve)return I();G(A)};I()})}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 A=u.value.find(I=>I.md5===_e);if(he(_e,Ve),A){const I=A.status,H=A.errorReason;I==="error"&&!H?(ne(O.name),ke(A.md5)):de()}else{const I=await _S({cannedACL:i.value?"public-read":"",fileName:O.name,contentLength:O.size,contentType:O.type,partSize:V.value});if(I.code===200){const H=I.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 xS(O);de.code===200&&(de.data?ne(new Error(x("prohibitUploadingFilesWithTheSameNameOnThePlatform"))):G({code:200}))})}function he(O,G){const ne=w.value.findIndex(de=>de.md5===O);ne===-1?w.value.push({md5:O,fileChunkList:G}):w.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=w.value.findIndex(I=>I.md5===G.md5);if(ne===-1){pe.ElMessage.error(x("errorInUploadingFile"));return}const de=w.value[ne].fileChunkList,_e=(I,H)=>new Promise((te,Ne)=>{const me=I[H];if(me)if(me.isUpload)I.length-1!==H?_e(I,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(),I[H]=me,I.length-1!==H?_e(I,H+1).then(()=>{te({code:200})}):te({code:200})})}}),Ve=G.shardingList,A=Ve.findIndex(I=>I.isUpload===!1);A!==-1?(G.status="uploading",_e(Ve,A).then(()=>{G.status="sharding",J(G)})):(G.status="sharding",J(G))}}function Oe(O,G){return new Promise((ne,de)=>{NS.put({url:O,data:G}).then(_e=>{ne(_e)}).catch(()=>{de(new Error(x("uploadError")))})})}async function J(O){U();const G=await gS({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=Ho(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 yS({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=w.value.findIndex(_e=>_e.md5===O);de!==-1&&w.value.splice(de,1),$(),ne.key&&ne.uploadId?(await uS({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:w,fileUploadList:u,successFileList:b,blobSlice:S,defaultChunkSize:V,fileUploadNumFn:$,onClose:h,show:g,setDialogVisible:C,setPublicRea:E,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 SS=t=>(e.pushScopeId("data-v-396f7126"),t=t(),e.popScopeId(),t),TS={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"},DS={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},VS={class:"absolute right-[10px]"},$S={class:"dialog_body"},BS={class:"mb-[10px]"},AS={class:"text-sm leading-[30px]"},IS={class:"mb-[10px]"},LS={class:"text-sm leading-[30px]"},FS={class:"text-center"},OS={class:"text-xs text-hy-text-secondary"},RS={class:"uploadList select-none"},PS={class:"flex-grow w-0"},MS={class:"text-right mt-[20px]"},US={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"},zS={class:"relative border-b border-hy-border-2 pl-2 text-[18px] font-bold h-[50px] flex items-center justify-between"},WS={class:"absolute right-[10px]"},jS={class:"dialog_body el-dialog__body !p-[0_0_10px_0]"},HS={class:"progressBox text-hy-text-main el-progress-bar__outer_backgroundv3"},YS={class:"flex items-center"},GS={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},qS={key:0,class:"flex items-center justify-center"},KS={key:0,class:"select-none click-box"},XS={class:"iconCloseBox click-box ml-[4px]"},JS={class:"flex flex-row leading-[20px] text-hy-danger select-none"},ZS={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},QS={class:"flex flex-row mb-[4px]"},vS={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},eT=SS(()=>e.createElementVNode("span",null,[e.createElementVNode("i",{class:"el-icon-loading text-hy-main"})],-1)),tT={class:"flex flex-row leading-[20px]"},nT={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},oT={class:"text-hy-main"},aT={class:"flex flex-row mb-[4px]"},sT={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},lT={class:"iconCloseBox click-box"},rT={class:"flex flex-row leading-[20px]"},iT={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},cT={class:"text-hy-success"},dT={key:0,class:"text-hy-text-secondary flex items-center justify-center text-xs noData h-full"},pT={class:"text-center"},fT={class:"mt-[10px]"},mT=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:w,fileList:b,fileUploadList:S,successFileList:V,blobSlice:$,defaultChunkSize:h,fileUploadNumFn:g,onClose:C,show:E,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}=ES({emit:a});return e.onMounted(()=>{R()}),n({fileUploadShow:F,fileUploadAPkShow:j,fileUploadVersionShow:L,show:E}),(ne,de)=>{const _e=e.resolveComponent("svg-icon"),Ve=e.resolveComponent("el-option"),A=e.resolveComponent("el-select"),I=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(Ie,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",TS,[e.createElementVNode("div",DS,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("fileUpload")),1),e.createElementVNode("div",VS,[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",$S,[e.createElementVNode("div",BS,[e.createElementVNode("div",AS,e.toDisplayString(e.unref(x)("fileType")),1),e.createVNode(A,{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",IS,[e.createElementVNode("div",LS,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",FS,[e.createVNode(I,{class:"text-[60px] text-hy-text-secondary"},{default:e.withCtx(()=>[e.createVNode(e.unref(rh))]),_:1}),e.createElementVNode("div",OS,[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",RS,[(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",PS,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",MS,[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(Ie,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",US,[e.createElementVNode("div",zS,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("fileUpload")),1),e.createElementVNode("div",WS,[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",jS,[e.createElementVNode("ul",HS,[(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",YS,[e.createElementVNode("div",GS,e.toDisplayString(K.fileName),1),K.fileType!==5?(e.openBlock(),e.createElementBlock("div",qS,[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",KS,[e.createVNode(_e,{width:"16",height:"16",name:"live-broadcast-refresh-v3"})]))]),_:2},1032,["content"])]),_:2},1032,["before-upload","http-request"]),e.createElementVNode("div",XS,[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",JS,[e.createElementVNode("div",ZS,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",QS,[e.createElementVNode("div",vS,e.toDisplayString(K.fileName),1),eT]),e.createElementVNode("div",tT,[e.createElementVNode("div",nT,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("uploadingPatientWait"))+"…",1)]),e.createElementVNode("span",oT,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",aT,[e.createElementVNode("div",sT,e.toDisplayString(K.fileName),1),e.createElementVNode("div",lT,[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",rT,[e.createElementVNode("div",iT,[e.createElementVNode("span",null,e.toDisplayString(K.completionTime),1)]),e.createElementVNode("span",cT,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",dT,[e.createElementVNode("div",pT,[e.createVNode(_e,{name:"base-no-data",class:"!w-[50px] !h-[50px]"}),e.createElementVNode("div",fT,e.toDisplayString(e.unref(x)("noData-3")),1)])])):e.createCommentVNode("",!0)])])])]),_:1})),[[W]])]),_:1},8,["model-value"])])}}}),[["__scopeId","data-v-396f7126"]]);function hT({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=Ue.getCache("userInfo");let w=[];k!=null&&k.lng&&(k!=null&&k.lat)&&(w=[k.lat,k.lng]),w.length===0&&(w=null),o.value=await l.map("selectMapLocation",{maxZoom:p.maxZoom||18,minZoom:p.minZoom||5,zoom:p.zoom||13,center:w,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 w=await r.placeSearch({keywords:k,offset:10,page:1});if(w){const b=w[0];m({lng:b.lng,lat:b.lat})}else t("on-geographical-position",{})}async function m(k){var b;const w=await r.reverseGeocoder(k);w&&((b=w.address)!=null&&b.length)||Se({type:"warning",message:"未获取到地址信息"}),_({lng:k.lng,lat:k.lat,address:w.formatted_address,name:w.formatted_address,...w})}function _(k){s.value=k,t("on-geographical-position",k),y()}function y(k){a.value&&l.removeMarker(o.value,a.value);let w,b;k?(w=k.lat,b=k.lng):(w=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,[w,b],18),a.value=l.marker(o.value,[w,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 uT={class:"w-full h-full relative"},_T={class:"relative z-[1] w-full h-full"},gT={id:"selectMapLocation",ref:"selectMapLocation",class:"w-full h-full"},yT=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:_}=hT({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",uT,[e.withDirectives(e.createVNode(Gt,{class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(l)]]),e.createElementVNode("div",_T,[e.createElementVNode("div",gT,null,512)])]))}}),[["__scopeId","data-v-8ec3e599"]]);function xT({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 g1({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 Fl({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 kT={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},NT={key:0},bT={key:1},CT={class:"absolute right-[12px] top-[12px]"},wT={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg relative z-10"},ET={style:{height:"500px"},class:"c_fff fs_12 dialog_body text-hy-text-main text-[12px]"},ST={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},TT={class:"information"},DT={class:"flex_vertically_center flex items-center"},VT={style:{"margin-left":"6px"}},$T={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},BT={class:"flex_vertically_center flex items-center"},AT={style:{"margin-left":"6px"}},IT={key:0,class:"type_box success"},LT={key:1,class:"type_box"},FT={class:"form fs_12 text-[12px]"},OT={key:0},RT={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},PT={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"},MT={key:1},UT={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},zT={class:"r-f mb_10 flex_vertically_center flex mb-[10px] items-center"},WT={class:"mr_10 label flex-shrink mr-[10px]"},jT={class:"r-f flex_vertically_center flex items-center"},HT={class:"mr_10 label label_answer flex-shrink mr-[10px]"},YT={key:0,class:"c_theme text-hy-text-primary"},GT={key:1,class:"c_9DA7B2 text-hy-text-secondary"},qT={key:2},KT={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px]"},XT={class:"group-item"},JT=["onClick"],ZT={key:0,class:"c-f-i group-content r-f flex"},QT={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},vT=["src"],eD={key:1,style:{"flex-grow":"1"}},tD={class:"icon-box c-f-i flex"},nD={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},oD={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},aD={key:0,class:"information-type"},sD={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},lD={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},rD={key:0,class:"c_9DA7B2 text-hy-text-secondary"},iD={key:1},cD={key:1,class:"c-f-i group-content r-f flex"},dD={style:{"flex-grow":"1"}},pD={class:"icon-box c-f-i flex"},fD={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},mD={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},hD={key:0,class:"information-type"},uD={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},_D={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},gD={key:0,class:"c_9DA7B2 text-hy-text-secondary"},yD={key:1},xD={key:2,class:"c-f-i group-content r-f flex"},kD={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},ND=["src"],bD={key:1,style:{"flex-grow":"1"}},CD={class:"icon-box c-f-i flex"},wD={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},ED={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},SD={key:0,class:"information-type"},TD={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},DD={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},VD={key:0,class:"c_9DA7B2 text-hy-text-secondary"},$D={key:1},BD={key:3},AD={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},ID={class:"group-item"},LD=["onClick"],FD={key:0,class:"c-f-i group-content r-f flex"},OD={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},RD=["src"],PD={key:1,style:{"flex-grow":"1"}},MD={class:"icon-box c-f-i flex"},UD={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},zD={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},WD={key:0,class:"information-type"},jD={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},HD={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},YD={key:0,class:"c_9DA7B2 text-hy-text-secondary"},GD={key:1},qD={key:1,class:"c-f-i group-content r-f flex"},KD={style:{"flex-grow":"1"}},XD={class:"icon-box c-f-i flex"},JD={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},ZD={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},QD={key:0,class:"information-type"},vD={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},eV={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},tV={key:0,class:"c_9DA7B2 text-hy-text-secondary"},nV={key:1},oV={key:2,class:"c-f-i group-content r-f flex"},aV={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},sV=["src"],lV={key:1,style:{"flex-grow":"1"}},rV={class:"icon-box c-f-i"},iV={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},cV={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},dV={key:0,class:"information-type"},pV={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]"},mV={key:0,class:"c_9DA7B2 text-hy-text-secondary"},hV={key:1},Vr=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}=xT({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",kT,[o.formType===1?(e.openBlock(),e.createElementBlock("span",NT,e.toDisplayString(e.unref(a)("exception")),1)):o.formType===2?(e.openBlock(),e.createElementBlock("span",bT,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",CT,[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",wT,[e.createElementVNode("div",ET,[e.createElementVNode("div",ST,[e.createElementVNode("div",TT,[e.createElementVNode("div",DT,[e.createVNode(f,{style:{width:"14px",height:"14px"},name:"icon-user","class-name":"text-hy-text-main"}),e.createElementVNode("span",VT,[e.createTextVNode(e.toDisplayString(e.unref(r).name),1),e.unref(r).jobNum?(e.openBlock(),e.createElementBlock("span",$T,"("+e.toDisplayString(e.unref(r).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",BT,[e.createVNode(f,{name:"base-every-day-time",class:"w-[16px] h-[16px]"}),e.createElementVNode("span",AT,e.toDisplayString(e.unref(r).executeDtm),1)]),e.unref(r).checkState===1?(e.openBlock(),e.createElementBlock("div",IT,e.toDisplayString(e.unref(a)("normal")),1)):e.unref(r).checkState===2?(e.openBlock(),e.createElementBlock("div",LT,e.toDisplayString(e.unref(a)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",FT,[e.unref(r).dealSituation?(e.openBlock(),e.createElementBlock("div",OT,[e.createElementVNode("div",RT,e.toDisplayString(e.unref(a)("handling")),1),e.createElementVNode("p",PT,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",MT,[e.createElementVNode("div",UT,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",zT,[e.createElementVNode("p",WT,e.toDisplayString(e.unref(a)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(y.optionTitle),1)]),e.createElementVNode("div",jT,[e.createElementVNode("p",HT,e.toDisplayString(e.unref(a)("answer")),1),y.optionValue?(e.openBlock(),e.createElementBlock("span",YT,e.toDisplayString(y.optionValue),1)):(e.openBlock(),e.createElementBlock("span",GT,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",qT,[e.createElementVNode("div",KT,e.toDisplayString(e.unref(a)("picture")),1),e.createElementVNode("div",XT,[(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",ZT,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.filePath&&y.del!==1?(e.openBlock(),e.createElementBlock("div",QT,[e.createElementVNode("img",{src:y.filePath,class:"h_100vh h-full"},null,8,vT)])):(e.openBlock(),e.createElementBlock("div",eD,[e.createElementVNode("div",tD,[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",nD,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",oD,[y.type===1?(e.openBlock(),e.createElementBlock("div",aD,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",sD,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",lD," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",rD,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",iD,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",cD,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[e.createElementVNode("div",dD,[e.createElementVNode("div",pD,[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",fD,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",mD,[y.type===1?(e.openBlock(),e.createElementBlock("div",hD,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",uD,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",_D," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",gD,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",yD,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",xD,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.screenshot1?(e.openBlock(),e.createElementBlock("div",kD,[e.createElementVNode("img",{src:y.screenshot1,class:"h_100vh h-full"},null,8,ND)])):(e.openBlock(),e.createElementBlock("div",bD,[e.createElementVNode("div",CD,[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",wD,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",ED,[y.type===1?(e.openBlock(),e.createElementBlock("div",SD,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",TD,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",DD," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",VD,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",$D,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,JT))),128))])])):e.createCommentVNode("",!0),e.unref(r).videoList&&e.unref(r).videoList.length?(e.openBlock(),e.createElementBlock("div",BD,[e.createElementVNode("div",AD,e.toDisplayString(e.unref(a)("video")),1),e.createElementVNode("div",ID,[(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",FD,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.filePath&&y.del!==1?(e.openBlock(),e.createElementBlock("div",OD,[e.createElementVNode("img",{src:y.filePath,class:"h_100vh h-full"},null,8,RD)])):(e.openBlock(),e.createElementBlock("div",PD,[e.createElementVNode("div",MD,[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",UD,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",zD,[y.type===1?(e.openBlock(),e.createElementBlock("div",WD,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",jD,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",HD," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",YD,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",GD,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",qD,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[e.createElementVNode("div",KD,[e.createElementVNode("div",XD,[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",JD,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",ZD,[y.type===1?(e.openBlock(),e.createElementBlock("div",QD,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",vD,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",eV," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",tV,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",nV,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",oV,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:y.check},"group-content-item"])},[y.screenshot1?(e.openBlock(),e.createElementBlock("div",aV,[e.createElementVNode("img",{src:y.screenshot1,class:"h_100vh h-full"},null,8,sV)])):(e.openBlock(),e.createElementBlock("div",lV,[e.createElementVNode("div",rV,[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",iV,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:y.del===1}])},e.toDisplayString(y.fileName),3)]),e.createElementVNode("div",cV,[y.type===1?(e.openBlock(),e.createElementBlock("div",dV,e.toDisplayString(e.unref(a)("daily")),1)):y.type===2?(e.openBlock(),e.createElementBlock("div",pV,e.toDisplayString(e.unref(a)("task")),1)):y.type===3?(e.openBlock(),e.createElementBlock("div",fV," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[y.hadPoint?(e.openBlock(),e.createElementBlock("li",mV,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),y.hadRemark?(e.openBlock(),e.createElementBlock("li",hV,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,LD))),128))])])):e.createCommentVNode("",!0)])])])]),e.createVNode(Ie,{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 uV(t){return oe.post({url:"taskAssign/v2/taskItem/select",data:t,isFormData:!0})}function ca(t){return oe.post({url:"taskAssign/v2/taskItemView",data:t,isFormData:!0})}function _V(t){return oe.post({url:"taskAssign/taskExample/select",data:t,isFormData:!0})}function gV({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,w)=>{const b=await(t.controller==="taskAssign/taskExample"?_V({id:N}):m1({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 w=N.videos;w&&w.length&&(a.value=w.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 yV={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},xV={class:"absolute right-[12px] top-[12px]"},kV={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg-1 relative z-10"},NV={class:"dialog_body"},bV={class:"dialog_body_content lh_20 leading-[20px]"},CV={class:"mb_20 mb-[20px]"},wV={class:"requiredTitle"},EV={class:"plr_20 p-[0_20px]",style:{"max-height":"200px",overflow:"auto"}},SV=["innerHTML"],TV={key:0,class:"mb_20 mb-[20px]"},DV={class:"requiredTitle"},VV={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},$V={class:"imgBox"},BV={class:"centerBox deleteBox flex items-center justify-center"},AV=["src"],IV={key:1,class:"mb_20 mb-[20px]"},LV={class:"requiredTitle"},FV={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},OV={class:"imgBox"},RV={class:"centerBox deleteBox flex items-center justify-center"},PV={class:"pos_a w_100vh centerBox absolute w-full flex justify-center items-center"},MV={class:"operator-button centerBox mt_20 mt-[20px] flex justify-center items-center"},UV={class:"c_fff activatedImei text-hy-text-main"},zV={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},WV={class:"dialog_body",style:{height:"500px"}},jV={class:"pos_r w_100vh h_100vh w-full h-full relative"},$r=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}=gV({props:o});return n({show:s,taskExampleFn:l}),(w,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:!w.draggable,draggable:w.draggable,"modal-class":w.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",yV,[e.createElementVNode("span",null,e.toDisplayString(e.unref(p).exampleName||e.unref(a)("missionExample")),1),e.createElementVNode("div",xV,[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",kV,[e.createElementVNode("div",NV,[e.createElementVNode("div",bV,[e.createElementVNode("div",CV,[e.createElementVNode("div",wV,e.toDisplayString(e.unref(a)("sampleContent")),1),e.createElementVNode("div",EV,[e.createElementVNode("div",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(p).exampleContent},null,8,SV)])]),e.unref(f).length?(e.openBlock(),e.createElementBlock("div",TV,[e.createElementVNode("div",DV,e.toDisplayString(e.unref(a)("exampleImage")),1),e.createElementVNode("ul",VV,[(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",$V,[e.createElementVNode("div",BV,[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(a)("check-0"),onClick:E=>e.unref(m)(C)},null,8,["tips","onClick"])]),e.createElementVNode("img",{src:g,alt:""},null,8,AV)])]))),128))])])):e.createCommentVNode("",!0),e.unref(_).length?(e.openBlock(),e.createElementBlock("div",IV,[e.createElementVNode("div",LV,e.toDisplayString(e.unref(a)("exampleVideo")),1),e.createElementVNode("ul",FV,[(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",OV,[e.createElementVNode("div",RV,[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(a)("check-0"),onClick:E=>e.unref(y)(g)},null,8,["tips","onClick"])]),e.createElementVNode("div",PV,[e.createVNode(S,{name:"base-video-cover",style:{height:"40px",width:"40px"}})])])]))),128))])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",MV,[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:!w.draggable,draggable:w.draggable,"modal-class":w.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(Ie,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",UV,[e.createElementVNode("div",zV,[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",WV,[e.createElementVNode("div",jV,[e.createVNode(aa,{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(Ie,{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(jo,{ref_key:"hyImageViewerRef",ref:r},null,512)]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-d7cac0ec"]]);function HV(){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 w(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%;
@@ -53,4 +53,4 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,curr
53
53
  border: 2px solid var(--hy-text-secondary);
54
54
  background: var(--hy-dialog-bg-1);" class="flex items-center justify-center">
55
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 u1({id:l.value});L.code===200&&(n.value=L.data||{},t.value=n.value.deviceUser||{})}async function g(){const L=await h1({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 _1({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 E(){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:w,addMarker:b,initMap:S,viewTaskExampleShow:V,submissionFormShow:$,selectFn:h,pointTrailFn:g,deviceSctTaskExecute:C,setFitView:E,abnormalStateFn:D,show:T,onClose:B,tasklatAndlngType:k,isShowMap:p}}const gn=t=>(e.pushScopeId("data-v-c41097d4"),t=t(),e.popScopeId(),t),YV={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},GV={class:"absolute right-[12px] top-[12px]"},qV={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg relative z-10"},KV={class:"dialog_body"},XV={class:"ovh centerBox overflow-hidden flex items-center justify-center"},JV={class:"r-f navigation flex"},ZV={class:"progress_box centerBox fs_12 text-[12px] flex justify-center items-center"},QV={key:0,class:"c_dangerv2 text-hy-danger"},vV={key:1,class:"c_success text-hy-success"},e$={key:2,class:"c_9DA7B2 text-hy-text-secondary"},t$={key:3,class:"c_theme text-hy-text-primary"},n$={style:{width:"108px"},class:"plr_10 p-[0_10px]"},o$={class:"c_theme text-hy-text-primary"},a$={style:{height:"500px"},class:"fs_12 lh_20 text-[12px] leading-[20px]"},s$={class:"h_100vh r-f details flex h-full"},l$={class:"taskDetails fs_12 lh_20 flex-shrink text-[12px] leading-[20px]"},r$={class:"c_dangerv2 fw_600 fs_16 mb_10 text-hy-danger font-[600] text-[16px] mb-[10px]"},i$={key:0,class:"mb_10 mb-[10px]"},c$={class:"c_9DA7B2 text-hy-text-secondary"},d$=["innerHTML"],p$={class:"mb_10 mb-[10px]"},f$={class:"c_9DA7B2 text-hy-text-secondary"},m$={class:"mb_10 mb-[10px]"},h$={class:"c_9DA7B2 text-hy-text-secondary"},u$={class:"mb_10 mb-[10px]"},_$={class:"c_9DA7B2 text-hy-text-secondary"},g$={key:1,class:"mb_10 mb-[10px]"},y$={class:"c_9DA7B2 text-hy-text-secondary"},x$={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)"}},k$={class:"fs_16 h_50 lh_50 pl_20 text-[16px] h-[50px] leading-[50px] pl-[20px]"},N$={class:"pos_r pl_10 relative pl-[10px]"},b$=gn(()=>e.createElementVNode("span",{class:"line"},null,-1)),C$={style:{"flex-grow":"1"},class:"centerBox flex items-center justify-center"},w$={class:"c_9DA7B2 tac lh_30 text-hy-text-secondary text-center leading-[30px]"},E$={class:"centerBox mb_10 mb-[10px] flex justify-center items-center"},S$={class:"c_fff fs_14 text-hy-text-main text-[14px]"},T$={class:"centerBox flex items-center justify-center"},D$={style:{"margin-left":"6px"}},V$={class:"r-f flex"},$$=gn(()=>e.createElementVNode("p",{class:"mlr_10 linev2 m-[0_10px]"},null,-1)),B$={class:"ecutionRecord"},A$={class:"flex_vertically_center pos_r relative flex items-center"},I$={class:"flex_vertically_center flex items-center"},L$={class:"mr_10 fs_14 mr-[10px] text-[14px]"},F$={key:0,class:"mr_10 status status_theme mr-[10px]"},O$={key:1,class:"mr_10 status mr-[10px]"},R$={key:2,class:"mr_10 status status_success mr-[10px]"},P$={key:3,class:"mr_10 status status_dangerv2 mr-[10px]"},M$={key:4,class:"mr_10 status status_dangerv2 mr-[10px]"},U$={key:5,class:"mr_10 status status_dangerv2 mr-[10px]"},z$={key:6,class:"mr_10 status status_success mr-[10px]"},W$=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)),j$={class:"c_9DA7B2 fw_600 text-hy-text-secondary font-[600]"},H$={class:"pointTrail r-f h_100vh flex h-full"},Y$={class:"pointTrailList c_9DA7B2 text-hy-text-secondary"},G$=["onClick"],q$={class:"c_fff lh_30 pos_r text-hy-text-main leading-[30px] relative"},K$={class:"over_one_line truncate"},X$={key:1,class:"indexBox indexv2Box"},J$={class:"over_one_line truncate"},Z$={class:"pos_r relative"},Q$=gn(()=>e.createElementVNode("span",{class:"indexBox indexv2Box"},null,-1)),v$={key:0},e2={key:1,class:"text-auxiliary text-hy-text-secondary"},t2={class:"pos_r relative"},n2=gn(()=>e.createElementVNode("span",{class:"indexBox indexv2Box"},null,-1)),o2={class:"over_one_line truncate"},a2={class:"f-g flex-grow w-0 h-full rounded ml-4"},s2={key:0,class:"p-2 box-border w-full h-full rounded bg-hy-dialog-bg-2"},l2={key:1,id:"electronicPatrolDetailsMap",class:"w-full h-full"},r2={key:0,class:"p-2 box-border w-full h-full rounded bg-hy-dialog-bg-2 flex items-center justify-center"},i2={class:"flex flex-col items-center justify-center text-hy-text-secondary"},c2={class:"mt_10 mt-[10px]"},Br=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:w,isShowMap:b}=HV();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"),E=e.resolveComponent("el-dialog"),D=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(E,{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",YV,[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("patrol")),1),e.createElementVNode("div",GV,[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",qV,[e.createElementVNode("div",KV,[e.createElementVNode("div",XV,[e.createElementVNode("ul",JV,[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",ZV,[e.unref(c).finishState===0?(e.openBlock(),e.createElementBlock("span",QV,e.toDisplayString(e.unref(o)("unfinished")),1)):e.unref(c).finishState===1?(e.openBlock(),e.createElementBlock("span",vV,e.toDisplayString(e.unref(o)("hasBeenCompleted")),1)):e.unref(c).finishState===2?(e.openBlock(),e.createElementBlock("span",e$,e.toDisplayString(e.unref(o)("notPerformed")),1)):e.unref(c).finishState===3?(e.openBlock(),e.createElementBlock("span",t$,e.toDisplayString(e.unref(o)("execute")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",n$,[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",o$,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",a$,[e.withDirectives(e.createElementVNode("div",s$,[e.createElementVNode("div",l$,[e.createElementVNode("p",r$,e.toDisplayString(e.unref(p).taskName),1),e.unref(p).taskInfo?(e.openBlock(),e.createElementBlock("div",i$,[e.createElementVNode("p",c$,e.toDisplayString(e.unref(o)("taskDescription")),1),e.createElementVNode("p",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(p).taskInfo},null,8,d$)])):e.createCommentVNode("",!0),e.createElementVNode("div",p$,[e.createElementVNode("p",f$,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",m$,[e.createElementVNode("p",h$,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",u$,[e.createElementVNode("p",_$,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",g$,[e.createElementVNode("p",y$,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",x$,[e.createElementVNode("div",k$,[e.createElementVNode("span",N$,[b$,e.createTextVNode(" "+e.toDisplayString(e.unref(o)("executiveInformation")),1)])]),e.createElementVNode("div",C$,[e.createElementVNode("div",w$,[e.createElementVNode("div",E$,[e.createVNode(xt,e.mergeProps({class:"w-[54px] h-[54px]"},{onlineState:!0}),null,16)]),e.createElementVNode("div",S$,e.toDisplayString(e.unref(d).name),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(d).orgName),1),e.createElementVNode("div",T$,[e.createVNode($,{name:"base-vehicle-electric-arc","class-name":"w-[16px] h-[16px]"}),e.createElementVNode("span",D$,e.toDisplayString(e.unref(d).phone),1)]),e.createElementVNode("div",V$,[e.createElementVNode("div",null,e.toDisplayString(e.unref(o)("shortNumber"))+e.toDisplayString(e.unref(d).jobNum),1),$$,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",B$,[(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",A$,[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",I$,[e.createElementVNode("span",L$,e.toDisplayString(T.pointName),1),T.hadCheck===1?(e.openBlock(),e.createElementBlock("span",F$,e.toDisplayString(e.unref(o)("haveBeenInspected")),1)):(e.openBlock(),e.createElementBlock("span",O$,e.toDisplayString(e.unref(o)("unpaidInspection")),1)),T.checkState===1?(e.openBlock(),e.createElementBlock("span",R$,e.toDisplayString(e.unref(o)("normal")),1)):T.checkState===2?(e.openBlock(),e.createElementBlock("span",P$,e.toDisplayString(e.unref(o)("abnormal")),1)):e.createCommentVNode("",!0),T.dealState===1&&T.checkState===2?(e.openBlock(),e.createElementBlock("span",M$,e.toDisplayString(e.unref(o)("pending")),1)):T.dealState===2&&T.checkState===2?(e.openBlock(),e.createElementBlock("span",U$,e.toDisplayString(e.unref(o)("processing")),1)):T.dealState===3&&T.checkState===2?(e.openBlock(),e.createElementBlock("span",z$,e.toDisplayString(e.unref(o)("solved")),1)):e.createCommentVNode("",!0)]),W$,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",j$,e.toDisplayString(T.executeDtm),1)]))),128))],512),[[e.vShow,e.unref(l)==="ecutionRecord"]]),e.withDirectives(e.createElementVNode("div",H$,[e.createElementVNode("ul",Y$,[(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",q$,[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",K$,e.toDisplayString(B+1),1)],2)):(e.openBlock(),e.createElementBlock("span",X$)),e.createElementVNode("div",J$,e.toDisplayString(T.pointName),1)]),e.createElementVNode("div",Z$,[Q$,T.lng&&T.lat?(e.openBlock(),e.createElementBlock("span",v$,e.toDisplayString(T.lng)+","+e.toDisplayString(T.lat),1)):(e.openBlock(),e.createElementBlock("span",e2,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",t2,[n2,e.createElementVNode("div",o2,e.toDisplayString(T.address),1)])]),_:2},1032,["content"])):e.createCommentVNode("",!0)],8,G$))),128))]),e.createElementVNode("div",a2,[e.unref(b)?(e.openBlock(),e.createElementBlock("div",l2,[e.unref(N)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",r2,[e.createElementVNode("div",i2,[e.createVNode($,{name:"sys-icon-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",c2,e.toDisplayString(e.unref(o)("noSpecificAddressIsSetInThisInspectionTask")),1)])]))])):(e.openBlock(),e.createElementBlock("div",s2,[e.createVNode(Gt,{class:"!bg-hy-dialog-bg-3"})]))])],512),[[e.vShow,e.unref(l)==="pointTrail"]])]),e.createVNode(Vr,{ref_key:"submissionFormRef",ref:w,"form-type":2,draggable:S.draggable},null,8,["draggable"]),e.createVNode($r,{ref_key:"viewTaskExampleRef",ref:k,controller:"scrollCheck/scExample",draggable:S.draggable},null,8,["draggable"])])]),e.createVNode(Ie,{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 d2({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 w(C){return new Promise((E,D)=>{i.value="",y.value=E,_.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 u_({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:w,onSubmit:b,onClose:S,initAbortController:V,getData:$,onCheckTree:h,onSelectedData:g}}const p2={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},f2={class:"absolute right-[12px] top-[12px]"},m2={class:"dialog_body percent-100 relative z-10",style:{"box-sizing":"border-box"}},h2={class:"h-[500px]"},u2={class:"mt-[20px] flex justify-center"},_2=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}=d2({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"),w=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",p2,[e.createElementVNode("span",null,e.toDisplayString(e.unref(l)("choicePersonnel")),1),e.createElementVNode("div",f2,[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",m2,[e.createElementVNode("div",h2,[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",u2,[e.createVNode(w,{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(w,{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(Ie,{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 g2({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 w(){_.value.validate(async D=>{if(D){const T=n.value.map(L=>({deviceUserId:L.id}));(await x1({...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 E(){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:w,show:k,deleteFn:h,onSelectCheckbox:g,selectDeviceTableShow:C,onClose:E,assignUserListFn:b}}const da=t=>(e.pushScopeId("data-v-07e4e3ab"),t=t(),e.popScopeId(),t),y2={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},x2={class:"absolute right-[12px] top-[12px]"},k2={class:"deleteBox c_fff handlingException text-hy-text-main bg-hy-dialog-bg relative z-10"},N2={class:"dialog_body"},b2={class:"pb_20 pb-[20px]"},C2={class:"requiredTitle"},w2=da(()=>e.createElementVNode("i",null,"*",-1)),E2={class:"requiredTitle"},S2=da(()=>e.createElementVNode("i",null,"*",-1)),T2={class:"w-full"},D2={class:"r-f flex",style:{"justify-content":"space-between"}},V2={class:"requiredTitle"},$2=da(()=>e.createElementVNode("i",null,"*",-1)),B2={class:"fs_12 text-[12px]"},A2={style:{height:"300px"}},I2={key:0,class:"mt_10 assignUserListBox mt-[10px]"},L2={class:"personnelTitle over_one_line fs_14 c_fff truncate text-[14px] text-hy-text-main"},F2={class:"fs_12 text-[12px]"},O2={class:"c_4477FF text-hy-text-primary"},R2={class:"fs_12 r-f personnelItem_box flex text-[12px]"},P2={class:"c_9DA7B2 text-hy-text-secondary"},M2=["onClick"],U2={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"},z2={class:"tac text-center"},W2={class:"mt_10 mt-[10px]"},j2={class:"operator-button centerBox mt_20 flex justify-center items-center mt-[20px]"},H2=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:w}=g2({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"),E=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",y2,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("abnormalTreatment")),1),e.createElementVNode("div",x2,[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",k2,[e.createElementVNode("div",N2,[e.createElementVNode("div",b2,[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",C2,[e.createTextVNode(e.toDisplayString(e.unref(s)("abnormalTask")),1),w2]),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",E2,[e.createTextVNode(e.toDisplayString(e.unref(s)("taskDescription")),1),S2]),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",T2,[e.createElementVNode("div",D2,[e.createElementVNode("div",V2,[e.createTextVNode(e.toDisplayString(e.unref(s)("executiveStaff")),1),$2]),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",B2,e.toDisplayString(e.unref(s)("empty")),1)]),_:1})):e.createCommentVNode("",!0)])]),e.createElementVNode("div",A2,[e.unref(m).length?(e.openBlock(),e.createElementBlock("div",I2,[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(E,{key:`${M}personnel`,class:"personnelBox",name:F.orgId},{title:e.withCtx(()=>[e.createElementVNode("div",L2,[e.createTextVNode(e.toDisplayString(F.orgName)+" ",1),e.createElementVNode("span",F2,[e.createElementVNode("span",O2,e.toDisplayString(F.deviceUserList.length),1),e.createTextVNode(e.toDisplayString(e.unref(s)("people")),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",R2,[(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",P2,"("+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,M2)]))),128))])]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])])):(e.openBlock(),e.createElementBlock("div",U2,[e.createElementVNode("div",z2,[e.createVNode(V,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",W2,e.toDisplayString(e.unref(s)("pleaseSelectExecutives")),1)])]))])])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),e.createElementVNode("div",j2,[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(Ie,{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(_2,{ref_key:"selectPersonnelRef",ref:w,"request-params":{isDeviceUser:1},draggable:b.draggable},null,8,["draggable"])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-07e4e3ab"]]);function Y2({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(),w=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||(w.value?w.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 E(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=Ue.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 Fl({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 y1({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:w,handlingExceptionRef:b,isShowMap:d,taskDetailsShow:S,visibleChange:V,submissionFormShow:$,appTableGetData:h,orgCascaderOnChange:g,handlingExceptionShow:C,clickGroupItem:E,initMap:D,addMarker:T,pantoSomeWhere:B,abnormalStateFn:L,deviceReportFn:j,selectFn:F,emptyMap:M,show:z,onClose:U}}const G2=t=>(e.pushScopeId("data-v-73e74e7a"),t=t(),e.popScopeId(),t),q2={class:"pos_r dialog_header relative text-[18px] bg-hy-dialog-bg-1 text-center p-[20px] font-bold z-[1] font-['Helvetica']"},K2={class:"absolute right-[12px] top-[12px]"},X2={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg relative z-10"},J2={class:"dialog_body"},Z2={class:"ovh centerBox overflow-hidden flex items-center justify-center"},Q2={class:"r-f navigation flex"},v2={style:{height:"500px"},class:"c_fff fs_12 text-hy-text-main text-[12px]"},eB={class:"w_100vh h_100vh r-f details_box w-full h-full flex"},tB={class:"taskDetails lh_20 flex-shrink leading-[20px]"},nB={class:"c_dangerv2 fw_600 fs_16 mb_10 text-hy-danger font-[600] text-[16px] mb-[10px]"},oB={key:0,class:"mb_10 mb-[10px]"},aB={class:"c_9DA7B2 text-hy-text-secondary"},sB=["innerHTML"],lB={class:"mb_10 mb-[10px]"},rB={class:"c_9DA7B2 text-hy-text-secondary"},iB={class:"mb_10 mb-[10px]"},cB={class:"c_9DA7B2 text-hy-text-secondary"},dB={class:"mb_10 mb-[10px]"},pB={class:"c_9DA7B2 text-hy-text-secondary"},fB={class:"mb_10 mb-[10px]"},mB={class:"c_9DA7B2 text-hy-text-secondary"},hB={class:"f-g c-f flex flex-col w-0 flex-grow"},uB={class:"h_40 lh_40 fs_14 h-[40px] leading-[40px] text-[14px]"},_B={class:"title"},gB={class:"w-full h-full relative overflow-hidden",style:{height:"0","flex-grow":"1","border-radius":"6px"}},yB=G2(()=>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)),xB={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},kB={class:"information"},NB={class:"flex_vertically_center flex items-center"},bB={style:{"margin-left":"6px"}},CB={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},wB={class:"flex_vertically_center flex items-center"},EB={style:{"margin-left":"6px"}},SB={key:0,class:"type_box success"},TB={key:1,class:"type_box"},DB={class:"form"},VB={key:0},$B={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},BB={class:"r-f mb_10 flex_vertically_center flex items-center mb-[10px]"},AB={class:"mr_10 label flex-shrink mr-[10px]"},IB={class:"r-f flex_vertically_center flex items-center"},LB={class:"mr_10 label label_answer flex-shrink mr-[10px]"},FB={key:0,class:"c_theme text-hy-text-primary"},OB={key:1,class:"c_9DA7B2 text-hy-text-secondary"},RB={key:1},PB={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},MB={class:"group-item"},UB=["onClick"],zB={key:0,class:"c-f-i group-content r-f flex"},WB={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},jB=["src"],HB={key:1,style:{"flex-grow":"1"}},YB={class:"icon-box c-f-i flex"},GB={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},qB={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},KB={key:0,class:"information-type"},XB={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},JB={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},ZB={key:0,class:"c_9DA7B2 text-hy-text-secondary"},QB={key:1},vB={key:1,class:"c-f-i group-content r-f flex"},eA={style:{"flex-grow":"1"}},tA={class:"icon-box c-f-i flex"},nA={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},oA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},aA={key:0,class:"information-type"},sA={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},lA={key:2,style:{background:"var(--hy-warning)"},class:"information-type font-[600]"},rA={key:0,class:"c_9DA7B2 text-hy-text-secondary"},iA={key:1},cA={key:2,class:"c-f-i group-content r-f flex"},dA={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},pA=["src"],fA={key:1,style:{"flex-grow":"1"}},mA={class:"icon-box c-f-i flex"},hA={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},uA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},_A={key:0,class:"information-type"},gA={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},yA={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},xA={key:0,class:"c_9DA7B2 text-hy-text-secondary"},kA={key:1},NA={key:2},bA={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},CA={class:"group-item"},wA=["onClick"],EA={key:0,class:"c-f-i group-content r-f flex"},SA={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},TA=["src"],DA={key:1,style:{"flex-grow":"1"}},VA={class:"icon-box c-f-i flex"},$A={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},BA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},AA={key:0,class:"information-type"},IA={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},LA={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},FA={key:0,class:"c_9DA7B2 text-hy-text-secondary"},OA={key:1},RA={key:1,class:"c-f-i group-content r-f flex"},PA={style:{"flex-grow":"1"}},MA={class:"icon-box c-f-i flex"},UA={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},zA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},WA={key:0,class:"information-type"},jA={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},HA={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},YA={key:0,class:"c_9DA7B2 text-hy-text-secondary"},GA={key:1},qA={key:2,class:"c-f-i group-content r-f flex"},KA={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},XA=["src"],JA={key:1,style:{"flex-grow":"1"}},ZA={class:"icon-box c-f-i flex"},QA={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},vA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},eI={key:0,class:"information-type"},tI={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},nI={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},oI={key:0,class:"c_9DA7B2 text-hy-text-secondary"},aI={key:1},sI={class:"c-f w_100vh h_100vh handling_box flex flex-col w-full h-full"},lI={key:0,class:"h_100vh centerBox c_9DA7B2 noTaskSelected h-full flex items-center justify-center text-hy-text-secondary"},rI={class:"tac text-center"},iI={class:"mt_10 mt-[10px]"},cI={class:"fs_12 text-[12px]"},dI={key:1},pI={class:"progress_box centerBox fs_12 flex items-center justify-center text-[12px]"},fI={key:0,class:"c_theme text-hy-text-primary"},mI={key:1,class:"c_success text-hy-success"},hI={style:{width:"108px"},class:"plr_10 p-[0_10px]"},uI={class:"c_theme text-hy-text-primary"},_I={key:0,class:"r-f flex",style:{"flex-wrap":"wrap"}},gI={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},yI={key:1,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},xI={key:0,class:"c_theme text-hy-text-primary"},kI={key:1,class:"c_9DA7B2 text-hy-text-secondary"},NI={class:"pos_r relative"},bI={key:0,style:{cursor:"pointer"}},CI=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:w,handlingExceptionShow:b,tableColumns:S,searchArr:V,requestParams:$,submissionFormShow:h,orgCascaderOnChange:g,appTableGetData:C,visibleChange:E}=Y2({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=Bl,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",q2,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("abnormalDetail")),1),e.createElementVNode("div",K2,[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",X2,[e.createElementVNode("div",J2,[e.createElementVNode("div",Z2,[e.createElementVNode("ul",Q2,[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",v2,[e.withDirectives(e.createElementVNode("div",eB,[e.createElementVNode("div",tB,[e.createElementVNode("p",nB,e.toDisplayString(e.unref(u).taskName),1),e.unref(u).taskInfo?(e.openBlock(),e.createElementBlock("div",oB,[e.createElementVNode("p",aB,e.toDisplayString(e.unref(s)("taskDescription")),1),e.createElementVNode("p",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(u).taskInfo},null,8,sB)])):e.createCommentVNode("",!0),e.createElementVNode("div",lB,[e.createElementVNode("p",rB,e.toDisplayString(e.unref(s)("implementRoute")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).lineName),1)]),e.createElementVNode("div",iB,[e.createElementVNode("p",cB,e.toDisplayString(e.unref(s)("abnormalLocation")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).pointName),1)]),e.createElementVNode("div",dB,[e.createElementVNode("p",pB,e.toDisplayString(e.unref(s)("executionTime")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).executeDtm),1)]),e.createElementVNode("div",fB,[e.createElementVNode("p",mB,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",hB,[e.createElementVNode("div",uB,[e.createElementVNode("span",_B,e.toDisplayString(e.unref(s)("abnormalPosition")),1)]),e.createElementVNode("div",gB,[e.withDirectives(e.createVNode(Gt,{class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(i)]]),yB])]),e.withDirectives(e.createElementVNode("div",xB,[e.createElementVNode("div",kB,[e.createElementVNode("div",NB,[e.createVNode(B,{style:{width:"14px",height:"14px"},name:"base-user-online"}),e.createElementVNode("span",bB,[e.createTextVNode(e.toDisplayString(e.unref(k).name),1),e.unref(k).jobNum?(e.openBlock(),e.createElementBlock("span",CB,"("+e.toDisplayString(e.unref(k).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",wB,[e.createVNode(B,{name:"base-every-day-time","class-name":"w-[16px] h-[16px]"}),e.createElementVNode("span",EB,e.toDisplayString(e.unref(k).executeDtm),1)]),e.unref(k).checkState===1?(e.openBlock(),e.createElementBlock("div",SB,e.toDisplayString(e.unref(s)("normal")),1)):e.unref(k).checkState===2?(e.openBlock(),e.createElementBlock("div",TB,e.toDisplayString(e.unref(s)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",DB,[e.unref(k).formList&&e.unref(k).formList.length?(e.openBlock(),e.createElementBlock("div",VB,[e.createElementVNode("div",$B,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",BB,[e.createElementVNode("p",AB,e.toDisplayString(e.unref(s)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(P.optionTitle),1)]),e.createElementVNode("div",IB,[e.createElementVNode("p",LB,e.toDisplayString(e.unref(s)("answer")),1),P.optionValue?(e.openBlock(),e.createElementBlock("span",FB,e.toDisplayString(P.optionValue),1)):(e.openBlock(),e.createElementBlock("span",OB,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",RB,[e.createElementVNode("div",PB,e.toDisplayString(e.unref(s)("picture")),1),e.createElementVNode("div",MB,[(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(w)(P)},[P.fileType===1?(e.openBlock(),e.createElementBlock("div",zB,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.filePath&&P.del!==1?(e.openBlock(),e.createElementBlock("div",WB,[e.createElementVNode("img",{src:P.filePath,class:"h_100vh h-full"},null,8,jB)])):(e.openBlock(),e.createElementBlock("div",HB,[e.createElementVNode("div",YB,[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",GB,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",qB,[P.type===1?(e.openBlock(),e.createElementBlock("div",KB,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",XB,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",JB," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",ZB,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",QB,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",vB,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[e.createElementVNode("div",eA,[e.createElementVNode("div",tA,[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",nA,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",oA,[P.type===1?(e.openBlock(),e.createElementBlock("div",aA,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",sA,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",lA," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",rA,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",iA,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",cA,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.screenshot1?(e.openBlock(),e.createElementBlock("div",dA,[e.createElementVNode("img",{src:P.screenshot1,class:"h_100vh h-full"},null,8,pA)])):(e.openBlock(),e.createElementBlock("div",fA,[e.createElementVNode("div",mA,[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",hA,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",uA,[P.type===1?(e.openBlock(),e.createElementBlock("div",_A,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",gA,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",yA," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",xA,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",kA,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,UB))),128))])])):e.createCommentVNode("",!0),e.unref(k).videoList&&e.unref(k).videoList.length?(e.openBlock(),e.createElementBlock("div",NA,[e.createElementVNode("div",bA,e.toDisplayString(e.unref(s)("video")),1),e.createElementVNode("div",CA,[(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(w)(P)},[P.fileType===1?(e.openBlock(),e.createElementBlock("div",EA,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.filePath&&P.del!==1?(e.openBlock(),e.createElementBlock("div",SA,[e.createElementVNode("img",{src:P.filePath,class:"h_100vh h-full"},null,8,TA)])):(e.openBlock(),e.createElementBlock("div",DA,[e.createElementVNode("div",VA,[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",$A,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",BA,[P.type===1?(e.openBlock(),e.createElementBlock("div",AA,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",IA,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",LA," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",FA,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",OA,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",RA,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[e.createElementVNode("div",PA,[e.createElementVNode("div",MA,[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",UA,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",zA,[P.type===1?(e.openBlock(),e.createElementBlock("div",WA,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",jA,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",HA," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",YA,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",GA,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",qA,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.screenshot1?(e.openBlock(),e.createElementBlock("div",KA,[e.createElementVNode("img",{src:P.screenshot1,class:"h_100vh h-full"},null,8,XA)])):(e.openBlock(),e.createElementBlock("div",JA,[e.createElementVNode("div",ZA,[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",QA,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",vA,[P.type===1?(e.openBlock(),e.createElementBlock("div",eI,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",tI,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",nI," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",oI,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",aI,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,wA))),128))])])):e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(m)==="form"]]),e.withDirectives(e.createElementVNode("div",sI,[e.unref(u).dealState===0||e.unref(u).dealState===1?(e.openBlock(),e.createElementBlock("div",lI,[e.createElementVNode("div",rI,[e.createVNode(B,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",iI,[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",cI,e.toDisplayString(e.unref(s)("processedImmediately")),1)]),_:1})):(e.openBlock(),e.createElementBlock("span",dI,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",pI,[e.unref(u).dealState===2?(e.openBlock(),e.createElementBlock("span",fI,e.toDisplayString(e.unref(s)("execute")),1)):e.unref(u).dealState===3?(e.openBlock(),e.createElementBlock("span",mI,e.toDisplayString(e.unref(s)("completed")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",hI,[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",uI,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",_I,[e.createTextVNode(e.toDisplayString(P.name)+" ",1),P.jobNum?(e.openBlock(),e.createElementBlock("span",gI,"("+e.toDisplayString(P.jobNum)+")",1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",yI," -- "))]),reportState:e.withCtx(({row:P})=>[P.reportState===1?(e.openBlock(),e.createElementBlock("span",xI,e.toDisplayString(e.unref(s)("haveBeenReported")),1)):(e.openBlock(),e.createElementBlock("span",kI,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(Vl,{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",NI,[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(E)(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",bI,[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(H2,{ref_key:"handlingExceptionRef",ref:c,draggable:D.draggable},null,8,["draggable"]),e.createVNode(Vr,{ref_key:"submissionFormRef",ref:d,draggable:D.draggable},null,8,["draggable"]),e.createVNode(Br,{ref_key:"electronicPatrolDetailsRef",ref:p,draggable:D.draggable},null,8,["draggable"])])]),e.createVNode(Ie,{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 wI(){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 Nr({id:n.value});if(u.code===200){const N=u.data.pointList;p.value=u.data.railName;const k=[];N.forEach(w=>{k.push([w.lat,w.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=Ue.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 EI=t=>(e.pushScopeId("data-v-e3121b24"),t=t(),e.popScopeId(),t),SI={class:"w-full h-[560px] relative p-[10px] box-border"},TI=EI(()=>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)),DI={class:"absolute top-[20px] right-[20px] w-[300px] z-10"},VI={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"},$I={class:"flex"},BI={class:"flex justify-center items-center"},AI={style:{"margin-left":"8px"}},II={class:"font-bold"},LI=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}=wI();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(Ie,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",SI,[TI,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",DI,[e.createVNode(oa,{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",VI,[e.createElementVNode("div",$I,[e.createElementVNode("div",null,[e.createElementVNode("span",BI,[e.createVNode(_,{name:"police-situation-ps-around",style:{width:"20px",height:"20px"}}),e.createElementVNode("span",AI,e.toDisplayString(e.unref(x)("currentPositioning")),1)])]),e.createElementVNode("div",II,[e.createElementVNode("span",null,e.toDisplayString(e.unref(l)),1)])])])])]),_:1})),[[u]])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-e3121b24"]]),FI={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},OI=[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 RI(t,n){return e.openBlock(),e.createElementBlock("svg",FI,[...OI])}const Ar={name:"ep-success-filled",render:RI},PI={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},MI=[e.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1)];function UI(t,n){return e.openBlock(),e.createElementBlock("svg",PI,[...MI])}const Ir={name:"ep-caret-right",render:UI};function zI({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 ca({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(w=>w.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 WI={class:"r-f h_100vh flex h-full"},jI={class:"background_box information css-text-no-select"},HI=["onClick"],YI={style:{"margin-left":"4px"}},GI=["onClick"],qI={class:"flex-grow flex w-0"},KI={class:"over_one_line flex-grow w-0 truncate"},XI={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},JI={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},ZI={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},QI={class:"flex_vertically_center mb_10 flex items-center mb-[10px]"},vI={class:"title_box pl_10 pl-[10px]"},eL={class:"c_9DA7B2 text-hy-text-secondary"},tL={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},nL={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},oL={class:"recordList fs_12 text-[12px] overflow-hidden"},aL={class:"actionList c_fff"},sL={key:0,class:"indexBox centerBox flex items-center justify-center"},lL={key:1,class:"indexBoxv2 centerBox"},rL={class:"mediaFileList c_9DA7B2 text-hy-text-secondary"},iL={key:0,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},cL={key:1},dL=["onClick"],pL={class:"fileDel clickBox"},fL={key:1,class:"file clickBox"},mL={key:2,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},hL=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}=zI({props:o});return e.onMounted(()=>{c()}),n({taskItemViewFn:c}),(m,_)=>{const y=Ir,u=e.resolveComponent("el-icon"),N=$t,k=e.resolveComponent("el-tooltip"),w=Ar;return e.openBlock(),e.createElementBlock("div",WI,[e.createElementVNode("div",jI,[(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",YI,e.toDisplayString(b.orgName),1)],8,HI),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",qI,[e.createElementVNode("div",KI,e.toDisplayString(V.deviceUserName),1),e.createElementVNode("span",XI," ("+e.toDisplayString(V.jobNum)+")",1)]),V.status===0?(e.openBlock(),e.createElementBlock("div",JI,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",ZI,e.toDisplayString(e.unref(a)("finish")),1))],8,GI))),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",QI,[e.createElementVNode("div",vI,[e.createTextVNode(e.toDisplayString(b.deviceUserName)+" ",1),e.createElementVNode("span",eL,"("+e.toDisplayString(b.jobNum)+")",1)]),b.status===0?(e.openBlock(),e.createElementBlock("div",tL,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",nL,e.toDisplayString(e.unref(a)("finish")),1))]),e.createElementVNode("ul",oL,[(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",aL,[(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",sL,e.toDisplayString(V+1),1)):(e.openBlock(),e.createElementBlock("span",lL)),e.createElementVNode("span",null,e.toDisplayString($.actionDetail),1)]))),128))]),e.createElementVNode("div",rL,[S.status===0?(e.openBlock(),e.createElementBlock("div",iL,[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",cL,[(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",pL,e.toDisplayString($.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",fL,e.toDisplayString($.fileName),1))],8,dL))),128))])):(e.openBlock(),e.createElementBlock("div",mL,[e.createVNode(u,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(w)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("theTaskHasBeenCompletedWaitingForUploading")),1)]))])],2))),128))])]))),128))],512)])}}}),[["__scopeId","data-v-82696267"]]),uL={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_L=[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 gL(t,n){return e.openBlock(),e.createElementBlock("svg",uL,[..._L])}const yL={name:"ep-clock",render:gL};function xL({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 ca({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 kL={class:"r-f h_100vh flex h-full"},NL={class:"background_box information css-text-no-select"},bL=["onClick"],CL={style:{"margin-left":"4px"}},wL=["onClick"],EL={class:"flex-grow flex w-0"},SL={class:"over_one_line flex-grow w-0 truncate"},TL={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},DL={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},VL={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},$L={key:0,ref:"reportListRef",class:"f-g reportList w-0 flex-grow"},BL={key:0,class:"background_box h_100vh lh_20 h-full leading-[20px]"},AL={class:"fs_14 plr_20 border-bottom mtb_10 m-[10px_0] p-[0_20px] text-[14px]"},IL={class:"flex_vertically_center flex items-center",style:{"justify-content":"space-between"}},LL={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},FL={class:"c_9DA7B2 r-f lh_30 flex leading-[30px] text-hy-text-secondary",style:{"justify-content":"space-between"}},OL={class:"flex_vertically_center flex items-center"},RL={style:{"margin-left":"4px"}},PL={style:{padding:"0 20px 10px"}},ML={class:"mb_10 r-f mb-[10px] flex"},UL={class:"mr_10 label flex-shrink mr-[10px]"},zL={class:"c_theme r-f flex text-hy-text-primary"},WL={class:"mr_10 label label_answer flex-shrink mr-[10px]"},jL={key:0,class:"c_theme text-hy-text-primary"},HL={key:1,class:"c_theme text-hy-text-primary"},YL={key:1,class:"background_box h_100vh c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary h-full"},GL={class:"fs_14 plr_20 border-bottom text-[14px] p-[0_20px]"},qL={class:"flex_vertically_center lh_40 flex items-center leading-[40px]",style:{"justify-content":"space-between"}},KL={class:"c_9DA7B2 text-hy-text-secondary"},XL={class:"tac ptb_20 p-[20px_0] text-center"},JL={class:"mt_10 mt-[10px]"},ZL={key:0},QL={key:1},vL={key:2,class:"c_success text-hy-success"},eF=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}=xL({props:o});return e.onMounted(()=>{i()}),n({taskItemViewFn:i}),(d,f)=>{const m=Ir,_=e.resolveComponent("el-icon"),y=yL,u=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",kL,[e.createElementVNode("div",NL,[(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:w=>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",CL,e.toDisplayString(N.orgName),1)],8,bL),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,(w,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)(w)},[e.createElementVNode("div",EL,[e.createElementVNode("div",SL,e.toDisplayString(w.deviceUserName),1),e.createElementVNode("span",TL," ("+e.toDisplayString(w.jobNum)+")",1)]),w.taskReportStatus===1?(e.openBlock(),e.createElementBlock("div",DL,e.toDisplayString(e.unref(a)("unfilled")),1)):w.taskReportStatus===2?(e.openBlock(),e.createElementBlock("div",VL,e.toDisplayString(e.unref(a)("haveBeenFilledIn")),1)):e.createCommentVNode("",!0)],8,wL))),128))],4)]))),128))]),e.unref(l)&&e.unref(l).length?(e.openBlock(),e.createElementBlock("div",$L,[(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",BL,[e.createElementVNode("div",AL,[e.createElementVNode("div",IL,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(N.deviceUserName)+" ",1),e.createElementVNode("span",LL,"("+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",FL,[e.createElementVNode("div",null,e.toDisplayString(N.urTemplateName),1),e.createElementVNode("div",OL,[e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(y)]),_:1}),e.createElementVNode("span",RL,e.toDisplayString(N.urSubmitDtm),1)])])]),e.createElementVNode("div",PL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.urOptionList,(k,w)=>(e.openBlock(),e.createElementBlock("div",{key:`${w}urOptionList`,class:"reportItem ptb_10 border-bottom p-[10px_0] text-[12px]"},[e.createElementVNode("div",ML,[e.createElementVNode("div",UL,e.toDisplayString(e.unref(a)("ask")),1),e.createTextVNode(" "+e.toDisplayString(k.optionTitle),1)]),e.createElementVNode("div",zL,[e.createElementVNode("div",WL,e.toDisplayString(e.unref(a)("answer")),1),k.optionValue?(e.openBlock(),e.createElementBlock("span",jL,e.toDisplayString(k.optionValue),1)):(e.openBlock(),e.createElementBlock("span",HL,e.toDisplayString(e.unref(a)("none")),1))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",YL,[e.createElementVNode("div",GL,[e.createElementVNode("div",qL,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(N.deviceUserName)+" ",1),e.createElementVNode("span",KL,"("+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",XL,[e.createVNode(u,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",JL,[N.taskReportStatus===0?(e.openBlock(),e.createElementBlock("span",ZL,e.toDisplayString(e.unref(a)("noNeedToSubmitATaskReport")),1)):N.taskReportStatus===1?(e.openBlock(),e.createElementBlock("span",QL,e.toDisplayString(e.unref(a)("unpackTaskReport")),1)):N.taskReportStatus===2?(e.openBlock(),e.createElementBlock("span",vL,e.toDisplayString(e.unref(a)("submittedTaskReport")),1)):e.createCommentVNode("",!0)])])]))]))),128))],512)):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-4d03873f"]]);function tF({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 ca({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 nF={class:"r-f h_100vh h-full flex"},oF={class:"background_box information css-text-no-select"},aF=["onClick"],sF={class:"r-f f-g flex flex-grow w-0"},lF={class:"indexBox centerBox flex-shrink flex justify-center items-center",style:{left:"4px"}},rF={class:"over_one_line truncate"},iF={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},cF={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},dF={class:"recordList fs_12 text-[12px]"},pF={class:"actionList c_fff text-hy-text-main"},fF={key:0,class:"indexBox centerBox flex justify-center items-center"},mF={key:1,class:"indexBoxv2 centerBox flex justify-center items-center"},hF={class:"mediaFileList"},uF={key:0},_F={class:"flex_vertically_center pos_r relative flex items-center"},gF={class:"c_fff text-hy-text-main"},yF={key:1},xF={class:"flex_vertically_center pos_r relative flex items-center"},kF={class:"c_fff text-hy-text-main"},NF=["onClick"],bF={class:"fileDel clickBox"},CF={key:1,class:"file clickBox"},wF={key:2},EF={class:"flex_vertically_center pos_r relative flex items-center"},SF={class:"c_fff text-hy-text-main"},TF=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}=tF({props:o});return e.onMounted(()=>{s()}),n({taskItemViewFn:s}),(p,d)=>{const f=$t,m=e.resolveComponent("el-icon"),_=Ar,y=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",nF,[e.createElementVNode("div",oF,[(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",sF,[e.createElementVNode("span",lF,e.toDisplayString(N+1),1),e.createElementVNode("span",rF,e.toDisplayString(u.actionDetail),1)]),u.status===0?(e.openBlock(),e.createElementBlock("div",iF,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",cF,e.toDisplayString(e.unref(a)("finish")),1))],8,aF))),128))]),e.createElementVNode("div",{ref_key:"dataListRef",ref:i,class:"content_box"},[e.createElementVNode("ul",dF,[(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",pF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.actionList,(k,w)=>(e.openBlock(),e.createElementBlock("div",{key:`${w}actionList`,class:"pos_r flex_vertically_center h_30 relative flex items-center h-[30px]",style:{"padding-left":"28px"}},[w===0?(e.openBlock(),e.createElementBlock("span",fF,e.toDisplayString(N+1),1)):(e.openBlock(),e.createElementBlock("span",mF)),e.createElementVNode("span",null,e.toDisplayString(k.actionDetail),1)]))),128))]),e.createElementVNode("div",hF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.recordList,(k,w)=>(e.openBlock(),e.createElementBlock("div",{key:`${w}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",uF,[e.createElementVNode("div",_F,[e.createVNode(m,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(f)]),_:1}),e.createElementVNode("span",gF,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",yF,[e.createElementVNode("div",xF,[e.createVNode(m,{class:"!text-hy-success icon_box"},{default:e.withCtx(()=>[e.createVNode(_)]),_:1}),e.createElementVNode("span",kF,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",bF,e.toDisplayString(b.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",CF,e.toDisplayString(b.fileName),1))],8,NF))),128))])):(e.openBlock(),e.createElementBlock("div",wF,[e.createElementVNode("div",EF,[e.createVNode(m,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(_)]),_:1}),e.createElementVNode("span",SF,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 DF(){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(w){l.value.taskExampleFn(w)}function f(w){a.value=w}function m(w){if(!w){Se.error(x("checkTheTaskAreaWrong"));return}r.value.show({mapRailId:w})}function _(w){o.value=w,w===2&&(t.value.taskMode===2?f(2):f(1))}function y(){s.value=!1}function u(){return new Promise(async(w,b)=>{const S=await uV({id:n.value});S.code===200&&(t.value=S.data||{},w(0))})}function N(w=null){n.value=w,_(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 VF={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold bg-hy-dialog-bg-1"},$F={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg-1 relative z-10"},BF={class:"dialog_body",style:{"padding-right":"0px"}},AF={class:"ovh centerBox flex items-center justify-center overflow-hidden"},IF={class:"r-f navigation flex"},LF={key:0,class:"r-f flex",style:{height:"540px"}},FF={class:"fs_12 lh_20 h_100vh background_box information text-[12px] leading-[20px] h-full"},OF={class:"fs_16 fw_600 lh_40 text-[16px] font-[600px] leading-[40px]"},RF={key:0,class:"mb_20 mb-[20px]"},PF={class:"c_9DA7B2 text-hy-text-secondary"},MF=["innerHTML"],UF={class:"mb_20 mb-[20px]"},zF={class:"c_9DA7B2 text-hy-text-secondary"},WF={class:"c_9DA7B2 text-hy-text-secondary"},jF={class:"mb_20 mb-[20px]"},HF={class:"c_9DA7B2 text-hy-text-secondary"},YF={class:"h_100vh content_box h-full"},GF={class:"flex_vertically_center title_box flex items-center"},qF={class:"pos_r relative"},KF={class:"fs_12"},XF={class:"actionList"},JF={key:0},ZF=["onClick"],QF={key:1,class:"c-f flex flex-col",style:{height:"540px"}},vF={class:"fs_12 r-f mb_10 flex text-[12px] mb-[10px]",style:{"justify-content":"space-between","padding-right":"30px"}},eO={class:"lh_20 flex_vertically_center flex items-center leading-[20px]"},tO={key:0,class:"c_dangerv2 text-hy-danger"},nO={key:1,class:"c_success text-hy-success"},oO={key:2,class:"c_9DA7B2 text-hy-text-secondary"},aO={key:3,class:"c_theme text-hy-text-primary"},sO={style:{width:"108px"},class:"plr_10 p-[0_10px]"},lO={class:"c_theme text-hy-text-primary"},rO={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},iO={class:"centerBox flex justify-center items-center"},cO={style:{"margin-left":"6px"}},dO={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary flex items-center"},pO={class:"centerBox flex justify-center items-center"},fO={style:{"margin-left":"6px"}},mO={style:{"flex-grow":"1",height:"0"}},hO=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:w,onClose:b}=DF();return n({show:c}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-button"),g=e.resolveComponent("el-progress"),C=$t,E=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",VF,[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(w)&&e.unref(w)(...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",$F,[e.createElementVNode("div",BF,[e.createVNode(LI,{ref_key:"selectLocationAreaRef",ref:s,draggable:!1},null,512),e.createElementVNode("div",AF,[e.createElementVNode("ul",IF,[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",LF,[e.createElementVNode("div",FF,[e.createElementVNode("div",OF,e.toDisplayString(e.unref(f).taskAction),1),e.unref(f).taskDesc?(e.openBlock(),e.createElementBlock("div",RF,[e.createElementVNode("div",PF,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,MF)])):e.createCommentVNode("",!0),e.createElementVNode("div",UF,[e.createElementVNode("div",zF,e.toDisplayString(e.unref(o)("executionTime")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(f).executeDtmStr)+" ",1),e.createElementVNode("span",WF,"("+e.toDisplayString(e.unref(f).taskDateStartTime)+" ~ "+e.toDisplayString(e.unref(f).taskDateEndTime)+")",1)])]),e.createElementVNode("div",jF,[e.createElementVNode("div",HF,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",YF,[(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",GF,[e.createElementVNode("div",qF,[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",KF,e.toDisplayString(e.unref(o)("missionArea")),1)]),_:2},1032,["onClick"])]),e.createElementVNode("ul",XF,[(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",JF,'"'+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,ZF)):e.createCommentVNode("",!0)]))),128))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",QF,[e.withDirectives(e.createElementVNode("div",vF,[e.createElementVNode("div",eO,[e.unref(f).status===0?(e.openBlock(),e.createElementBlock("span",tO,e.toDisplayString(e.unref(o)("unfinished")),1)):e.unref(f).status===1?(e.openBlock(),e.createElementBlock("span",nO,e.toDisplayString(e.unref(o)("hasBeenCompleted")),1)):e.unref(f).status===2?(e.openBlock(),e.createElementBlock("span",oO,e.toDisplayString(e.unref(o)("notPerformed")),1)):e.unref(f).status===3?(e.openBlock(),e.createElementBlock("span",aO,e.toDisplayString(e.unref(o)("execute")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",sO,[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",lO,e.toDisplayString(e.unref(f).finishNum||0)+"/"+e.toDisplayString(e.unref(f).totalNum||0),1)]),e.withDirectives(e.createElementVNode("div",rO,[e.createVNode(E,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",iO,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-download-task"}),e.createElementVNode("span",cO,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",dO,[e.createVNode(E,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",pO,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-user-online"}),e.createElementVNode("span",fO,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",mO,[e.unref(d)===2&&e.unref(m)===1&&e.unref(f).taskMode===1?(e.openBlock(),e.createBlock(hL,{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(TF,{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(eF,{key:2,ref_key:"taskReportRef",ref:l,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.createCommentVNode("",!0)])])),e.createVNode($r,{ref_key:"viewTaskExampleRef",ref:a,draggable:S.draggable},null,8,["draggable"])])]),e.createVNode(Ie,{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"]]),uO={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_O=[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 gO(t,n){return e.openBlock(),e.createElementBlock("svg",uO,[..._O])}const yO={name:"ep-arrow-down",render:gO},xO={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},kO=[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 NO(t,n){return e.openBlock(),e.createElementBlock("svg",xO,[...kO])}const bO={name:"ep-arrow-up",render:NO},CO={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},wO=[e.createElementVNode("path",{fill:"currentColor",d:"M672 192L288 511.936L672 832z"},null,-1)];function EO(t,n){return e.openBlock(),e.createElementBlock("svg",CO,[...wO])}const SO={name:"ep-caret-left",render:EO};function Lr(t){return oe.post({url:"spotCheck/task/detail",data:t,isFormData:!0})}function TO(t){return oe.post({url:"spotCheck/task/taskDevice/findAll",data:t,isFormData:!0})}function DO(t){return oe.post({url:"spotCheck/task/end",data:t,isFormData:!0})}function VO(t){return oe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function $O(t){return oe.post({url:t.id?"spotCheck/timing/update":"spotCheck/timing/insert",data:t,isJson:!0})}function BO(t){return oe.post({url:"spotCheck/template/detail",data:t,isFormData:!0})}function AO(t){return oe.post({url:t.id?"spotCheck/template/update":"spotCheck/template/insert",data:t,isJson:!0})}function IO(t){return oe.post({url:"spotCheck/task/taskExecute",data:t,isJson:!0})}function Fr(t){return oe.post({url:"spotCheck/task/pttFile/page",data:t,isFormData:!0})}function LO(t){return oe.post({url:"spotCheck/task/groupBind",data:t,isJson:!0})}function FO({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:w}=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(w){case 2:s.value++;break;case 3:l.value++;break;case 4:r.value++;break}e.nextTick(()=>{m(),p.value[b].checkStatus=w})}}function f(){let N=0,k=0,w=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:w++;break;case 4:b++;break}}),e.nextTick(()=>{a.value=N,s.value=k,l.value=w,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:w=[]}=await TO({taskId:t.form.id,checkStatus:N||null});k===200&&(p.value=w,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 OO={class:"h-[58px] bg-hy-dialog-bg-2 border border-box border-hy-border-2 rounded px-2 box-border flex items-center"},RO={class:"relative"},PO={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"},MO={class:"scale-75"},UO={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"},zO={class:"flex-grow w-0 flex"},WO={class:"mx-2 flex-grow w-0"},jO={class:"truncate"},HO={class:"text-hy-text-secondary truncate"},YO={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"},GO={class:"r-f tac flex items-center justify-center flex-col"},qO={class:"mt-3"},pa=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}=FO({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",OO,[e.createElementVNode("div",RO,[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",PO,[e.createElementVNode("span",MO,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",UO,[e.createVNode(m,{name:"icon-off-line","class-name":"!w-[10px] !h-[14px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",zO,[e.createElementVNode("div",WO,[e.createElementVNode("p",jO,e.toDisplayString(u.devName),1),e.createElementVNode("p",HO,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",YO,[e.createElementVNode("div",GO,[e.createVNode(m,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",qO,e.toDisplayString(e.unref(x)("noData")),1)])])]),_:1})):e.createCommentVNode("",!0)]),_:1})}}});function KO({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 E=i.value[i.value.length-1];if(!E){C();return}const D={page:0,taskId:t.taskId,largeThenTimestamp:E.fileTimestamp},T=c.value.scrollTop,B=c.value.offsetHeight-46,L=document.querySelector(`#item-${E.id}`);if(L){const j=L.offsetTop,F=await Fr(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 Fr(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?(w(C),s.value=(F=i.value[this.chatMessageList.length-1])==null?void 0:F.id):S(),e.nextTick(()=>{a.value=!1})})}}function w(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:w,topEvent:b,scrollToBottom:S,initScrollList:V,audioPlay:$,audioPause:h,getAudioContext:g}}const XO=["element-loading-text"],JO={key:0,class:"w-full h-full flex box-border items-center justify-center text-center text-hy-text-secondary"},ZO={class:""},QO={class:"mt-5"},vO=["id"],eR={key:0,class:"min-w-[72px] p-1 bg-hy-dialog-bg-4 text-center rounded mb-2"},tR={key:1,class:"h-[50px] flex items-center w-full"},nR={class:"mr-2 flex-grow w-0 flex flex-col items-end"},oR={class:"w-full flex items-center justify-end"},aR=["onClick"],sR=["onClick"],lR={class:"font-bold flex-shrink-0"},rR={class:"flex-shrink-0 ml-1"},iR={key:0},cR={key:2,class:"h-[50px] flex items-center w-full"},dR={class:"ml-2 flex-grow w-0 flex flex-col items-start"},pR={class:"w-full flex items-center"},fR=["onClick"],mR={class:"flex-shrink-0 mr-1"},hR={key:0},uR={class:"font-bold flex-shrink-0"},_R=["onClick"],gR=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}=KO({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",JO,[e.createElementVNode("div",ZO,[e.createElementVNode("div",null,[e.createVNode(u,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"})]),e.createElementVNode("div",QO,[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,w)=>(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]!==(w>0&&e.unref(l)[w-1].fileDtmEnd.split(" ")[0])?(e.openBlock(),e.createElementBlock("div",eR,e.toDisplayString(k.fileDtmEnd.split(" ")[0]),1)):e.createCommentVNode("",!0),k.devUserId===o.id?(e.openBlock(),e.createElementBlock("div",tR,[e.createElementVNode("div",nR,[e.createElementVNode("div",null,e.toDisplayString(k.devUserName)+" ("+e.toDisplayString(k.serialNum||k.devUserId)+") ",1),e.createElementVNode("div",oR,[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,aR)):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",lR,e.toDisplayString(k.audioLength)+"” ",1),e.createElementVNode("div",rR,[k.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",iR,e.toDisplayString(k.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)])],14,sR)])]),e.createVNode(xt,{class:"w-[32px] h-[32px]"})])):(e.openBlock(),e.createElementBlock("div",cR,[e.createVNode(xt,{class:"w-[32px] h-[32px]"}),e.createElementVNode("div",dR,[e.createElementVNode("div",null,e.toDisplayString(k.devUserName)+" ("+e.toDisplayString(k.serialNum||k.devUserId)+") ",1),e.createElementVNode("div",pR,[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",mR,[k.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",hR,e.toDisplayString(k.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",uR,e.toDisplayString(k.audioLength)+"” ",1)],14,fR),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,_R)):e.createCommentVNode("",!0)])])]))],8,vO))),128))],512)],8,XO)),[[N,e.unref(s)]])}}});function yR(){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 LO({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:E=0,notFinishNum:D=0,offLineNum:T=0,intercomGroupTemNum:B=0}=h;t.value.beReceiveNum=g,t.value.receivingNum=C,t.value.finishNum=E,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 Lr({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 w(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(){ft({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("cancelSpotCheck"),tipsContent:`<div style="text-align: center;"><p>${x("confirmToCancelThisSpotCheck")}?</p><p>${x("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")),ft({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 DO({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:w,close:b,onClose:S,onSubmit:V,taskEnd:$,setDragLevel:k,$t:x}}const xR=t=>(e.pushScopeId("data-v-ecc43ee8"),t=t(),e.popScopeId(),t),kR={class:"el-dialog__header !p-0"},NR={class:"el-dialog__body !p-[8px_0px_8px] sideFoot_content h-[700px] flex flex-col text-hy-text-main text-xs"},bR={class:"h-[40px] flex items-center px-4 mb-1"},CR={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"},wR={key:0,class:"ml-3"},ER={class:"text-hy-text-secondary"},SR={key:1,class:"ml-3"},TR={class:"text-hy-text-secondary"},DR={class:"font-bold"},VR=["element-loading-text"],$R={key:0,class:"w-full h-full flex flex-col box-border"},BR={class:"flex-shrink-0 mb-3 px-4"},AR={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},IR={class:"flex w-full"},LR={class:"flex-shrink-0"},FR={class:"text-right font-bold flex-grow w-0"},OR={class:"flex w-full text-hy-text-secondary"},RR={class:"flex-shrink-0"},PR={class:"text-right flex-grow w-0"},MR={class:"flex w-full text-hy-text-secondary"},UR={class:"flex-shrink-0"},zR={class:"text-right flex-grow w-0"},WR={class:"text-xs p-2 leading-[22px]"},jR={class:"flex w-full"},HR={class:"flex-shrink-0 tracking-[4px]"},YR={class:"text-right font-bold flex-grow w-0"},GR={class:"flex w-full"},qR={class:"flex-shrink-0 tracking-[4px]"},KR={class:"text-right font-bold flex-grow w-0"},XR={class:"flex w-full"},JR={class:"flex-shrink-0 tracking-[4px]"},ZR={class:"text-right font-bold flex-grow w-0 text-hy-success"},QR={class:"flex w-full"},vR={class:"flex-shrink-0 tracking-[4px]"},e4={class:"text-right font-bold flex-grow w-0 text-hy-danger"},t4={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},n4={class:"flex-1 flex"},o4={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},a4={class:"flex-grow w-0 text-center truncate"},s4={class:"flex-1 flex"},l4={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},r4={class:"flex-grow w-0 text-center text-hy-success truncate"},i4={class:"flex-1 flex"},c4={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},d4={class:"flex-grow w-0 text-center text-hy-danger truncate"},p4={class:"w-full px-2 leading-[22px] box-border rounded bg-hy-dialog-bg-3 h-[28px] flex items-center justify-between"},f4={class:"flex"},m4={key:0,class:"ml-2 bg-hy-dialog-bg-1 h-[22px] px-2 rounded"},h4={class:"w-[400px]"},u4={class:""},_4={key:0,class:"box-border flex-grow h-0 flex px-2"},g4={class:"flex-grow w-0 px-2 overflow-x-hidden overflow-y-auto h-full"},y4={key:0,class:"w-[66%] box-border pr-2"},x4={class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},k4={key:1,class:"flex-grow h-0 px-4"},N4={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"},b4={class:"r-f tac flex text-center"},C4={class:"mt-3"},w4={class:"mt-1"},E4={key:1,class:"w-full h-full"},S4={key:0,class:"w-full h-full flex px-4 box-border"},T4={class:"flex flex-col w-[33%]"},D4={class:"pr-2"},V4={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},$4={class:"flex w-full"},B4={class:"flex-shrink-0"},A4={class:"text-right font-bold flex-grow w-0"},I4={class:"flex w-full text-hy-text-secondary"},L4={class:"flex-shrink-0"},F4={class:"text-right flex-grow w-0"},O4={class:"flex w-full text-hy-text-secondary"},R4={class:"flex-shrink-0"},P4={class:"text-right flex-grow w-0"},M4={class:"text-xs p-2 leading-[22px]"},U4={key:0,class:"flex w-full"},z4={class:"flex-shrink-0 tracking-[4px]"},W4={class:"text-right font-bold flex-grow w-0"},j4={key:1,class:"flex w-full"},H4={class:"flex-shrink-0 tracking-[4px]"},Y4={class:"text-right font-bold flex-grow w-0"},G4={class:"flex w-full"},q4={class:"flex-shrink-0 tracking-[4px]"},K4={class:"text-right font-bold flex-grow w-0 text-hy-success"},X4={class:"flex w-full"},J4={class:"flex-shrink-0 tracking-[4px]"},Z4={class:"text-right font-bold flex-grow w-0 text-hy-danger"},Q4={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},v4={class:"flex-1 flex"},e3={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},t3={class:"flex-grow w-0 text-center truncate"},n3={class:"flex-1 flex"},o3={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},a3={class:"flex-grow w-0 text-center text-hy-success truncate"},s3={class:"flex-1 flex"},l3={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},r3={class:"flex-grow w-0 text-center text-hy-danger truncate"},i3={class:"flex-grow h-0 mt-2 overflow-x-hidden overflow-y-auto pr-2 box-border"},c3={class:"flex-grow w-0 flex flex-col"},d3=xR(()=>e.createElementVNode("div",{class:"flex-grow h-0 overflow-hidden"},null,-1)),p3={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"},f3={class:"r-f tac flex text-center"},m3={class:"mt-5"},h3={key:1,class:"flex-grow h-full px-4"},u3={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"},_3={class:"r-f tac flex text-center"},g3={class:"mt-3"},y3={class:"mt-1"},x3={class:"h-[50px] flex items-center justify-between flex-shrink-0 px-4 mt-1"},k3={class:"text-hy-text-secondary text-xs"},N3={key:0},b3={key:1},C3={key:0},w3={key:1},E3={key:2},S3=be(e.defineComponent({__name:"view-spot-check",setup(t,{expose:n}){const{dialogVisible:o,dragLevel:a,setDragLevel:s,form:l,$t:r,loading:i,setMsgContentType:c,msgContentType:p,spotCheckTaskDeviceChange:d,spotCheckTaskDeviceCountStatus:f,groupType:m,onClose:_,onSubmit:y,show:u}=yR();return n({show:u}),(N,k)=>{const w=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-popover"),S=e.resolveComponent("el-col"),V=SO,$=e.resolveComponent("el-icon"),h=e.resolveComponent("el-tooltip"),g=e.resolveComponent("el-row"),C=$t,E=e.resolveComponent("el-button"),D=e.resolveComponent("HyBoxBorder"),T=e.resolveComponent("el-dialog"),B=e.resolveDirective("loading"),L=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(T,{modelValue:e.unref(o),"onUpdate:modelValue":k[2]||(k[2]=j=>e.isRef(o)?o.value=j:null),"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-[830px] ml-[100px]",top:"5vh",width:830},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",kR,[e.createElementVNode("div",NR,[e.createElementVNode("div",bR,[e.createElementVNode("div",CR,e.toDisplayString(e.unref(r)("initiate"))+e.toDisplayString(e.unref(l).checkStyle===1?e.unref(r)("message"):e.unref(r)("call"))+e.toDisplayString(e.unref(r)("spotCheck")),1),e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("div",wR,[e.createElementVNode("span",ER,e.toDisplayString(e.unref(r)("responseMethod")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(l).actionType===1?e.unref(r)("punchIn"):e.unref(r)("reply")),1)])):e.createCommentVNode("",!0),e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("div",SR,[e.createElementVNode("span",TR,e.toDisplayString(e.unref(r)("responseTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",DR,e.toDisplayString(e.unref(l).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("second")),1)])])):e.createCommentVNode("",!0)]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(r)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0"},[e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("div",$R,[e.createElementVNode("div",BR,[e.createVNode(g,{gutter:8},{default:e.withCtx(()=>[e.createVNode(S,{span:8},{default:e.withCtx(()=>[e.createVNode(b,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",t4,[e.createElementVNode("div",n4,[e.createElementVNode("div",o4,[e.createVNode(w,{name:"base-every-day-many-people","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",a4,e.toDisplayString(e.unref(l).checkNum||"- -"),1)]),e.createElementVNode("div",s4,[e.createElementVNode("div",l4,[e.createVNode(w,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),e.createElementVNode("div",r4,e.toDisplayString(e.unref(l).finishNum||"- -"),1)]),e.createElementVNode("div",i4,[e.createElementVNode("div",c4,[e.createVNode(w,{name:"base-danger-state","class-name":"svgBox w-[16px] h-[16px] text-hy-danger"})]),e.createElementVNode("div",d4,e.toDisplayString(e.unref(l).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("ul",AR,[e.createElementVNode("li",IR,[e.createElementVNode("span",LR,e.toDisplayString(e.unref(r)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",FR,e.toDisplayString(e.unref(l).checkNum||"- -"),1)]),e.createElementVNode("li",OR,[e.createElementVNode("span",RR,e.toDisplayString(e.unref(r)("offlineStatus")),1),e.createElementVNode("div",PR,e.toDisplayString(e.unref(l).offLineNum||"- -"),1)]),e.createElementVNode("li",MR,[e.createElementVNode("span",UR,e.toDisplayString(e.unref(r)("temporaryGroups")),1),e.createElementVNode("div",zR,e.toDisplayString(e.unref(l).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",WR,[e.createElementVNode("li",jR,[e.createElementVNode("span",HR,e.toDisplayString(e.unref(r)("waitingToReceive")),1),e.createElementVNode("div",YR,e.toDisplayString(e.unref(l).beReceiveNum||"- -"),1)]),e.createElementVNode("li",GR,[e.createElementVNode("span",qR,e.toDisplayString(e.unref(r)("receiving")),1),e.createElementVNode("div",KR,e.toDisplayString(e.unref(l).receivingNum||"- -"),1)]),e.createElementVNode("li",XR,[e.createElementVNode("span",JR,e.toDisplayString(e.unref(r)("completed")),1),e.createElementVNode("div",ZR,e.toDisplayString(e.unref(l).finishNum||"- -"),1)]),e.createElementVNode("li",QR,[e.createElementVNode("span",vR,e.toDisplayString(e.unref(r)("uncompleted")),1),e.createElementVNode("div",e4,e.toDisplayString(e.unref(l).notFinishNum||"- -"),1)])])])]),_:1})]),_:1}),e.createVNode(S,{span:16},{default:e.withCtx(()=>[e.createElementVNode("div",p4,[e.createElementVNode("div",f4,[e.createTextVNode(e.toDisplayString(e.unref(r)("messageContent"))+" ",1),e.unref(l).playMsg===1?(e.openBlock(),e.createElementBlock("div",m4," TTS"+e.toDisplayString(e.unref(r)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"css-text-no-select cursor-pointer hover:opacity-60",onClick:k[1]||(k[1]=(...j)=>e.unref(c)&&e.unref(c)(...j))},[e.createVNode(h,{visible:e.unref(p),"onUpdate:visible":k[0]||(k[0]=j=>e.isRef(p)?p.value=j:null),class:"item",placement:"bottom-end",trigger:"manual"},{content:e.withCtx(()=>[e.createElementVNode("div",h4,e.toDisplayString(e.unref(l).msgContent),1)]),default:e.withCtx(()=>[e.createElementVNode("span",u4,[e.createTextVNode(e.toDisplayString(e.unref(r)("viewContent"))+" ",1),e.createVNode($,{class:e.normalizeClass(["text-sm duration-500",{"-rotate-90":e.unref(p)}])},{default:e.withCtx(()=>[e.createVNode(V)]),_:1},8,["class"])])]),_:1},8,["visible"])])])]),_:1})]),_:1})]),e.unref(l).checkNum!==0?(e.openBlock(),e.createElementBlock("div",_4,[e.createElementVNode("div",g4,[e.unref(l).id?(e.openBlock(),e.createBlock(pa,{key:0,ref:"spotCheckTaskDeviceRef","params-span":e.unref(l).actionType===1?8:24,form:e.unref(l),onChange:e.unref(d),onOnCountStatus:e.unref(f)},null,8,["params-span","form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)]),e.unref(l).actionType===2?(e.openBlock(),e.createElementBlock("div",y4,[e.createElementVNode("div",x4,[e.unref(l).id?(e.openBlock(),e.createBlock(gR,{key:0,ref:"talkbackReplyRef","task-id":e.unref(l).id},null,8,["task-id"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",k4,[e.createElementVNode("div",N4,[e.createElementVNode("div",b4,[e.createVNode(w,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",C4,e.toDisplayString(e.unref(r)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",w4,e.toDisplayString(e.unref(r)("cannotSupportThisSpotCheck")),1)])])]))])):(e.openBlock(),e.createElementBlock("div",E4,[e.unref(l).checkNum!==0?(e.openBlock(),e.createElementBlock("div",S4,[e.createElementVNode("div",T4,[e.createElementVNode("div",D4,[e.createVNode(b,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",Q4,[e.createElementVNode("div",v4,[e.createElementVNode("div",e3,[e.createVNode(w,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",t3,e.toDisplayString(e.unref(l).checkNum||"- -"),1)]),e.createElementVNode("div",n3,[e.createElementVNode("div",o3,[e.createVNode(w,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",a3,e.toDisplayString(e.unref(l).finishNum||"- -"),1)]),e.createElementVNode("div",s3,[e.createElementVNode("div",l3,[e.createVNode(w,{name:"base-danger-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",r3,e.toDisplayString(e.unref(l).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("ul",V4,[e.createElementVNode("li",$4,[e.createElementVNode("span",B4,e.toDisplayString(e.unref(r)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",A4,e.toDisplayString(e.unref(l).checkNum||"- -"),1)]),e.createElementVNode("li",I4,[e.createElementVNode("span",L4,e.toDisplayString(e.unref(r)("offlineStatus")),1),e.createElementVNode("div",F4,e.toDisplayString(e.unref(l).offLineNum||"- -"),1)]),e.createElementVNode("li",O4,[e.createElementVNode("span",R4,e.toDisplayString(e.unref(r)("temporaryGroups")),1),e.createElementVNode("div",P4,e.toDisplayString(e.unref(l).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",M4,[e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("li",U4,[e.createElementVNode("span",z4,e.toDisplayString(e.unref(r)("waitingToReceive")),1),e.createElementVNode("div",W4,e.toDisplayString(e.unref(l).beReceiveNum||"- -"),1)])):e.createCommentVNode("",!0),e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("li",j4,[e.createElementVNode("span",H4,e.toDisplayString(e.unref(r)("receiving")),1),e.createElementVNode("div",Y4,e.toDisplayString(e.unref(l).receivingNum||"- -"),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",G4,[e.createElementVNode("span",q4,e.toDisplayString(e.unref(r)("completed")),1),e.createElementVNode("div",K4,e.toDisplayString(e.unref(l).finishNum||"- -"),1)]),e.createElementVNode("li",X4,[e.createElementVNode("span",J4,e.toDisplayString(e.unref(r)("uncompleted")),1),e.createElementVNode("div",Z4,e.toDisplayString(e.unref(l).notFinishNum||"- -"),1)])])]),_:1})]),e.createElementVNode("div",i3,[e.unref(l).id?(e.openBlock(),e.createBlock(pa,{key:0,ref:"spotCheckTaskDeviceRef","params-span":24,form:e.unref(l),onChange:e.unref(d),onOnCountStatus:e.unref(f)},null,8,["form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",c3,[d3,e.unref(m)?(e.openBlock(),e.createElementBlock("div",p3,[e.createElementVNode("div",f3,[e.createVNode(w,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"}),e.createElementVNode("div",m3,e.toDisplayString(e.unref(r)("groupMemberStatusAbnormalityPreventsSpotCheck")),1)])])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",h3,[e.createElementVNode("div",u3,[e.createElementVNode("div",_3,[e.createVNode(w,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",g3,e.toDisplayString(e.unref(r)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",y3,e.toDisplayString(e.unref(r)("cannotSupportThisSpotCheck")),1)])])]))]))],8,VR)),[[B,e.unref(i)]]),e.createElementVNode("div",x3,[e.createElementVNode("div",k3,[e.createElementVNode("div",null,[e.createVNode($,{class:"mr-1 text-sm"},{default:e.withCtx(()=>[e.createVNode(C)]),_:1}),e.unref(l).checkType===2?(e.openBlock(),e.createElementBlock("span",N3,e.toDisplayString(e.unref(r)("randomCheck")),1)):(e.openBlock(),e.createElementBlock("span",b3,[e.unref(l).checkScope===1?(e.openBlock(),e.createElementBlock("span",C3,e.toDisplayString(e.unref(r)("regionalSpotCheck")),1)):e.unref(l).checkScope===2?(e.openBlock(),e.createElementBlock("span",w3,e.toDisplayString(e.unref(r)("departmentSpotCheck")),1)):e.unref(l).checkScope===3?(e.openBlock(),e.createElementBlock("span",E3,e.toDisplayString(e.unref(r)("deviceSpotCheck")),1)):e.createCommentVNode("",!0)]))])]),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",class:"button_default buttonBox min-w-[100px]",onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(E,{class:"button_function buttonBox min-w-[100px]",onClick:e.unref(y)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("complete")),1)]),_:1},8,["onClick"])])])])])),[[L]])]),default:e.withCtx(()=>[e.createVNode(D,{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"])}}}),[["__scopeId","data-v-ecc43ee8"]]);function T3(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(E=>E===h||E===`${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 w(h){f.value=h}function b(){const h=l.value.getCheckedNodes()||[],g=[],C=[];h.forEach(E=>{E.type===a.value?g.push(E):C.push(E)}),k([...g]),w(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 E;n("onCurrentDepartment",h);const C=i.value.findIndex(D=>D===g.key);C===-1?((E=l.value)==null||E.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 Or=t=>(e.pushScopeId("data-v-0ea0d0e6"),t=t(),e.popScopeId(),t),D3={class:"flex w-full h-full"},V3={key:0,class:"w-full flex items-center"},$3={key:0,class:"mr-[6px]"},B3={class:"el-checkbox"},A3=[Or(()=>e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1))],I3={key:1,class:"mr-1"},L3={class:"el-radio"},F3=[Or(()=>e.createElementVNode("span",{class:"el-radio__inner"},null,-1))],O3=["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}=T3({emit:s,props:a});e.watch(()=>a.showCheckbox,k=>{if(k===!1)if(r.value.length){const w=r.value[0];r.value=[w],a.showCheckbox&&a.parentCheckbox&&f([w[`${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,w)=>{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",D3,[S.type===a.itemType?(e.openBlock(),e.createElementBlock("div",V3,[a.showCheckbox&&!a.parentCheckbox?(e.openBlock(),e.createElementBlock("div",$3,[e.withDirectives(e.createElementVNode("div",B3,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)(S[`${a.itemSelectParam}`])!==-1,"is-disabled":S.disabled},"el-checkbox__input"])},A3,2)],512),[[e.vShow,a.showCheckboxButton]])])):e.createCommentVNode("",!0),a.showRadio?(e.openBlock(),e.createElementBlock("div",I3,[e.withDirectives(e.createElementVNode("div",L3,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)(S[`${a.itemSelectParam}`])!==-1,"is-disabled":S.disabled},"el-radio__input"])},F3,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,O3))])]),_: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 w(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:w,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 et(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 Rr(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=et(1,t,p,{selectFilterType:s});const f=d?p:{};if(p.children&&p.children.length>0){const m=await Rr(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 Pr(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=et(1,t,_,{selectFilterType:l});const k=N?_:{};if(_.deviceList&&_.deviceList.length&&!s){const w=[];_.deviceList.forEach((b,S)=>{if((a&&a.parentType||et(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($),w[b.onlineState===1?"unshift":"push"](V)}}),_.children=_.children.concat(w)}else _.deviceList=[];if(_.children&&_.children.length>0){const w=await Pr(t,_.children,o,{..._,parentType:N});if(w){const b=w.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=[...w.children],_.children=w.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 Mr(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:_=et(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||_||et(4,t,u,{selectFilterType:l})?(s||u.deviceList.forEach(w=>{const b={isLeaf:!0,...w,children:[],orgGroupId:u.id,deviceType:w.type,type:3};k[w.onlineState===1?"unshift":"push"](b)}),m.children.push({...u,children:k,type:4})):(s||u.deviceList.forEach(w=>{if(et(3,t,w,{selectFilterType:l})){const b={isLeaf:!0,...w,children:[],orgGroupId:u.id,deviceType:w.type,type:3};k[w.onlineState===1?"unshift":"push"](b)}}),k.length&&m.children.push({...u,children:k,type:4}))}else(a&&a.parentType||_||et(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 Mr(t,m.children,o,{...m,parentType:_});if(u){const N=u.deviceList;m.childrenDeviceList.push(...N),p.push(...N);const k=new Map,w=[];m.childrenDeviceList.forEach(b=>{k.has(b.id)||(k.set(b.id,b),b.onlineState===1&&w.push(b))}),m.childrenDeviceList=Array.from(k.values()),m.onlineCountList=w,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 Ur(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=et(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||et(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 w={...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"](w)}}),d.children=[...d.children,...y]}else d.deviceList=[];if(d.children&&d.children.length>0){const y=await Ur(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(w=>{N.has(w.id)||(N.set(w.id,w),w.onlineState===1&&k.push(w))}),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 zr(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=et(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||et(8,t,u,{selectFilterType:s})||m){const k={...u,type:8,item:u,children:[]};d.childrenDeviceList.push(k),i.push(k);const w={...u,type:8,item:u,children:[],disabled:kn(r,u.id)};y[u.onlineState===1?"unshift":"push"](w)}}),d.children=[...d.children,...y]}else d.deviceList=[];if(d.children&&d.children.length>0){const y=await zr(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(w=>{N.has(w.id)||(N.set(w.id,w),w.onlineState===1&&k.push(w))}),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 R3(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 Rr(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 P3={class:"flex flex-col h-full text-xs"},M3={class:"flex items-center"},U3={class:"!w-[114px]"},z3={class:"text-hy-text-main"},W3={key:0,class:"w-full text-hy-text-main"},j3={class:"w-full h-full flex items-center"},H3={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},Y3={key:0,class:"w-full"},G3={class:"w-full h-full flex items-center"},q3={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},Wr=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:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=R3({emit:s,props:a,params:{selectFilterType:w,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")}],w.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],w.value=k.value[0].value),a.defaultGetData||h()}),(E,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",P3,[e.createElementVNode("div",M3,[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",z3,[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",U3,[e.createVNode(B,{modelValue:e.unref(w),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(w)?w.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(E.$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(E.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",W3,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",j3,[e.createElementVNode("div",H3,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)])])]),_:2},1032,["content"])]))]),"other-content":e.withCtx(({row:z})=>[e.renderSlot(E.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Y3,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",G3,[e.createElementVNode("div",q3,[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 K3({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],l.value.setSelectedList(o.value)}function p(m){n.value=typeof m=="boolean"?m:!n.value,t("on-selectedDataList",o.value)}async function d(){const m=await Dl({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 X3={class:"flex flex-col w-full h-full"},J3={class:"flex justify-between items-center h-[40px]"},Z3={class:"flex-1"},Q3={class:"text-hy-text-secondary ml-3"},v3={class:"flex-1 flex items-center justify-end"},eP={class:"text-xs"},tP={class:"flex items-center clickBox cursor-pointer"},nP={class:"text-hy-text-primary"},oP=["element-loading-text"],aP={class:"flex-1 bg-hy-dialog-bg-1 rounded flex flex-col"},sP={class:"flex-grow h-0 w-full box-border p-2 equipment vbtTable"},lP={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded flex flex-col ml-2"},rP={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"},iP={class:"r-f tac flex flex-col items-center justify-center"},cP={class:"mt-3"},dP={class:"flex-grow w-0 pl-2 box-border truncate"},pP={class:"flex-shrink-0"},fP=e.defineComponent({__name:"select-depart-ment",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=o,{setSelectedDataList:s,getData:l,abortController:r,selectedDataList:i,clearSelectedData:c,deleteSelectList:p,onSelectedData:d,hyOrgTreeRef:f}=K3({emit:a});return e.onUnmounted(()=>{r.value&&r.value.abort()}),n({setSelectedDataList:s,clearSelectedData:c,getData:l}),(m,_)=>{const y=e.resolveComponent("el-button"),u=e.resolveComponent("svg-icon"),N=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",X3,[e.createElementVNode("div",J3,[e.createElementVNode("div",Z3,[e.createTextVNode(e.toDisplayString(e.unref(x)("allDepartments")),1),e.createElementVNode("span",Q3,e.toDisplayString(e.unref(x)("doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt")),1)]),e.createElementVNode("div",v3,[e.withDirectives(e.createVNode(y,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(c)},{default:e.withCtx(()=>[e.createElementVNode("span",eP,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(i).length!==0]]),e.createElementVNode("div",tP,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",nP,e.toDisplayString(e.unref(i).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",aP,[e.createElementVNode("div",sP,[e.createVNode(Wr,{ref_key:"hyOrgTreeRef",ref:f,"show-checkbox":!0,"parent-checkbox":!1,"get-data":e.unref(l),"default-checked-list":e.unref(i),onOnSelectedData:e.unref(d)},null,8,["get-data","default-checked-list","onOnSelectedData"])])]),e.createElementVNode("ul",lP,[e.withDirectives(e.createElementVNode("li",rP,[e.createElementVNode("div",iP,[e.createVNode(u,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",cP,e.toDisplayString(e.unref(x)("youHaveNotSelectedADepartmentYet")),1)])],512),[[e.vShow,e.unref(i).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(k,w)=>(e.openBlock(),e.createElementBlock("li",{key:`${k.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border clickBox border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[e.createElementVNode("div",dP,e.toDisplayString(k.companyName||k.groupName||k.orgName),1),e.createElementVNode("div",pP,[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:b=>e.unref(p)(w)},null,8,["tips","onClick"])])]))),128))])],8,oP)),[[N,!1]])])}}});function mP(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 hP=t=>(e.pushScopeId("data-v-51a5d703"),t=t(),e.popScopeId(),t),uP={class:"flex-shrink-0 mr-1"},_P={class:"flex-grow w-0 overflow-ellipsis overflow-hidden"},gP={class:"deviceName"},yP={key:0,class:"flex-shrink-0 mx-2"},xP={key:0,class:"text-hy-danger text-sm font-bold relative flex-shrink-0"},kP={key:1,class:"deviceType flex-shrink-0"},NP={key:2,class:"deviceType flex-shrink-0"},bP={key:3,class:"deviceType flex-shrink-0"},CP={key:4,class:"deviceType flex-shrink-0"},wP={key:5,class:"deviceType flex-shrink-0"},EP={key:6,class:"deviceType flex-shrink-0"},SP={key:7,class:"text-hy-success flex-shrink-0"},TP={key:1,class:"flex-shrink-0 mx-2"},DP=[hP(()=>e.createElementVNode("span",{class:"shrink-0"},"离线",-1))],fa=be(e.defineComponent({__name:"device-cpns",props:{device:{}},emits:["onClickDevice"],setup(t,{emit:n}){const o=t,a=n,s=e.ref(null);e.watch(()=>o.device,()=>{s.value=o.device}),e.onMounted(()=>{s.value=o.device});function l(r){a("onClickDevice",r)}return(r,i)=>{const c=e.resolveComponent("svg-icon"),p=e.resolveComponent("el-tooltip");return s.value?(e.openBlock(),e.createBlock(p,{key:0,"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:s.value.devName},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"!text-hy-text-main":s.value.onlineState===1},"w-full h-full flex border-box items-center box-border text-hy-info"]),onClick:i[0]||(i[0]=d=>l(s.value))},[e.createElementVNode("div",uP,[e.createVNode(c,{name:e.unref(mP)(s.value.deviceType||s.value.type),width:"20",height:"20",class:"relative top-[2px]"},null,8,["name"])]),e.createElementVNode("div",_P,[e.createElementVNode("span",gP,e.toDisplayString(s.value.devName),1)]),s.value.onlineState===1?(e.openBlock(),e.createElementBlock("div",yP,[s.value.sos===1?(e.openBlock(),e.createElementBlock("span",xP,"SOS")):s.value.intercomGroupTem===1||s.value.intercomCall===1?(e.openBlock(),e.createElementBlock("span",kP,"音频中")):s.value.monitor===1||s.value.beMonitor===1?(e.openBlock(),e.createElementBlock("span",NP,"监控中")):s.value.videoCall===1?(e.openBlock(),e.createElementBlock("span",bP,"通话中")):s.value.videoRecording===1?(e.openBlock(),e.createElementBlock("span",CP,"录像中")):s.value.audioRecording===1?(e.openBlock(),e.createElementBlock("span",wP,"录音中")):s.value.broadcast===1?(e.openBlock(),e.createElementBlock("span",EP,"广播中")):(e.openBlock(),e.createElementBlock("span",SP,"在线"))])):(e.openBlock(),e.createElementBlock("div",TP,DP))],2)]),_:1},8,["content"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-51a5d703"]]);function VP(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 Pr(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 $P={class:"flex flex-col h-full text-xs"},BP={class:"flex items-center"},AP={class:"!w-[114px]"},IP={class:"text-hy-text-main"},LP={class:"flex-grow w-0"},FP={class:"flex-shrink-0 mr-2 flex h-full items-center justify-center"},OP={key:0,class:"w-full flex cursor_pointer"},RP={class:"flex items-center flex-grow w-0"},PP={class:"max-w-full overflow-ellipsis overflow-hidden"},MP={class:"flex-shrink-0 mr-2 ml-1"},UP={class:"text-hy-main"},jr=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:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,setDeviceStatus:g,query:C,selectChange:E}=VP({emit:s,props:a,params:{selectFilterType:w,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进行搜索"}],w.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")}),w.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",$P,[e.createElementVNode("div",BP,[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",IP,[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",AP,[e.createVNode(L,{modelValue:e.unref(w),"onUpdate:modelValue":T[0]||(T[0]=U=>e.isRef(w)?w.value=U:null),class:"!m-0",size:"small",onChange:e.unref(E)},{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",LP,[e.createVNode(fa,{device:U},null,8,["device"])]),e.createVNode(z,{"open-delay":1e3,class:"item",content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",FP,[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",OP,[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",RP,[e.createElementVNode("span",PP,e.toDisplayString(U.companyName||U.groupName||U.orgName),1),e.withDirectives(e.createElementVNode("span",MP,[e.createTextVNode(" ("),e.createElementVNode("span",UP,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 zP({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=[]){console.log("通知",N),o.value=[...N],i.value.setSelectedList(N)}function d(N){if(!N.disabled){if(N.type===3){const k=o.value.findIndex(w=>w.deviceId===N.deviceId);k===-1?o.value.push({...N}):o.value.splice(k,1)}else{clearTimeout(l.value);const k={nonExistent:[],existent:[]},w=N.childrenDeviceList||[];w.length&&(w.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 Dl({spotCheckSupport:1});return f(),N.data}function _(N,k){const w=[{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=w.findIndex(S=>S.type===N);return b!==-1?y(w[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 WP={class:"flex flex-col w-full h-full"},jP={class:"flex justify-between items-center h-[40px]"},HP={class:"flex mr-2"},YP={class:"flex items-center"},GP={class:"text-xs"},qP={class:"flex items-center clickBox cursor-pointer"},KP={class:"text-hy-text-primary"},XP=["element-loading-text"],JP={class:"flex-1 bg-hy-dialog-bg-1 rounded box-border p-2 flex flex-col"},ZP={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded flex flex-col ml-2"},QP={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"},vP={class:"flex flex-col justify-center items-center"},e8={class:"mt-3"},t8={class:"flex-grow w-0 pl-2 flex box-border"},n8={class:"truncate flex-grow w-0"},o8={class:"select-none truncate mx-[4px] text-hy-text-main"},a8={class:"flex-shrink-0"},s8=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:_}=zP({emit:s});return 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"),w=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",WP,[e.createElementVNode("div",jP,[e.createElementVNode("div",HP,e.toDisplayString(e.unref(x)("allDevices")),1),e.createElementVNode("div",YP,[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",GP,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",qP,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",KP,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",JP,[e.createVNode(jr,{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",ZP,[e.withDirectives(e.createElementVNode("li",QP,[e.createElementVNode("div",vP,[e.createVNode(k,{name:"base-no-data","class-name":"!w-[50px] !h-[50px]"}),e.createElementVNode("div",e8,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",t8,[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",n8,[e.createElementVNode("span",o8,e.toDisplayString(b.devName),1)])]),e.createElementVNode("div",a8,[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,XP)),[[w,!1]])])}}});function l8({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,w=>{i.value=w.replace(/\s/g,"")});function p(w=[]){w.length!==0&&(w.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(w=[]){r.value=l.value.filter(b=>w.some(S=>S.id===b.id)),t("on-selected-data-list",r.value)}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 _(w){return r.value.findIndex(S=>S.id===w.id)!==-1?"is-checked":""}async function y(w){const b=r.value.findIndex(S=>S.id===w.id);b===-1?u(w):N(b)}function u(w){r.value.push(w),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}function N(w){r.value.splice(w,1),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}async function k(){o.value=!0;const{code:w,data:b=[]}=await uN({query:i.value,spotCheckSupport:1,onlineState:1});w===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 r8={class:"flex flex-col w-full h-full"},i8={class:"flex justify-between items-center h-[30px]"},c8={class:"el-checkbox !mr-2"},d8=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],p8={class:"text-hy-text-primary"},f8=["element-loading-text"],m8={class:"flex-1 bg-hy-dialog-bg-1 rounded flex flex-col"},h8={class:"flex items-center justify-center box-border p-[8px_8px_4px]"},u8={class:"text-hy-text-main"},_8={class:"flex-grow h-0 w-full px-2 pb-2 box-border overflow-y-scroll overflow-x-hidden"},g8=["onClick"],y8={class:"flex items-center justify-center"},x8={class:"el-checkbox relative !mr-[6px]"},k8=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],N8={class:"treeDepartment cursor_pointer flex items-center justify-between w-full text-[14px] font-bold text-hy-text-main"},b8={class:"r-f w_100vh flex w-full"},C8={class:"flex-grow w-0 over_one_line truncate"},w8={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded flex flex-col ml-2"},E8={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"},S8={class:"r-f tac flex flex-col justify-center items-center"},T8={class:"mt-3"},D8={class:"flex-grow w-0 pl-2 box-border truncate"},V8={class:"flex-shrink-0"},$8=e.defineComponent({__name:"select-electronic-fence",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=o,{setSelectedDataList:s,getData:l,setCheckAll:r,checkAll:i,selectedDataList:c,loading:p,filterValue:d,deviceList:f,deviceClick:m,judgeSelectedFn:_,deleteSelectList:y}=l8({emit:a});return e.onMounted(async()=>{await l()}),n({setSelectedDataList:s,getData:l}),(u,N)=>{const k=e.resolveComponent("svg-icon"),w=e.resolveComponent("el-button"),b=e.resolveComponent("el-input"),S=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",r8,[e.createElementVNode("div",i8,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("electronicFence")),1),e.createElementVNode("div",{class:"flex items-center clickBox",onClick:N[0]||(N[0]=(...V)=>e.unref(r)&&e.unref(r)(...V))},[e.createElementVNode("div",c8,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(i)},"el-checkbox__input"])},d8,2)]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",p8,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",m8,[e.createElementVNode("div",h8,[e.createVNode(b,{modelValue:e.unref(d),"onUpdate:modelValue":N[1]||(N[1]=V=>e.isRef(d)?d.value=V:null),placeholder:e.unref(x)("filterByElectronicFenceName"),class:"table-search-main w-[254px] text-[12px]",onClear:N[2]||(N[2]=V=>e.unref(l)()),onKeyup:N[3]||(N[3]=e.withKeys(V=>e.unref(l)(),["enter"]))},{append:e.withCtx(()=>[e.createElementVNode("div",u8,[e.createVNode(w,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(l)},{default:e.withCtx(()=>[e.createVNode(k,{name:"sys-button-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",_8,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),V=>(e.openBlock(),e.createElementBlock("div",{key:V.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:$=>e.unref(m)(V)},[e.createElementVNode("div",y8,[e.createElementVNode("div",x8,[e.createElementVNode("span",{class:e.normalizeClass([e.unref(_)(V),"el-checkbox__input"])},k8,2)])]),e.createElementVNode("div",N8,[e.createElementVNode("div",b8,[e.createElementVNode("span",C8,e.toDisplayString(V.railName),1),e.withDirectives(e.createElementVNode("span",{class:"flex-shrink-0 ml-1 text-hy-text-main"}," ("+e.toDisplayString(V.deviceList.length)+") ",513),[[e.vShow,V.deviceList.length]])])])],8,g8))),128))])]),e.createElementVNode("ul",w8,[e.withDirectives(e.createElementVNode("li",E8,[e.createElementVNode("div",S8,[e.createVNode(k,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",T8,e.toDisplayString(e.unref(x)("youHavenTSelectedAFenceYet")),1)])],512),[[e.vShow,e.unref(c).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(V,$)=>(e.openBlock(),e.createElementBlock("li",{key:`${V.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",D8,e.toDisplayString(V.railName),1),e.createElementVNode("div",V8,[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:h=>e.unref(y)($)},null,8,["tips","onClick"])])]))),128))])],8,f8)),[[S,e.unref(p)]])])}}});function B8({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 A8={class:"deleteBox c_fff text-hy-text-main"},I8={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]"},L8={class:"absolute right-[-2px] top-[-2px]"},F8={class:"dialog_body h-[60vh]"},O8=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}=B8({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",A8,[e.createElementVNode("div",I8,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("spotCheckTemplate")),1),e.createElementVNode("div",L8,[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",F8,[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 R8({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(),w=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)ft({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 E(){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?ft({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?w.value:null}function j(J){const{checkScope:ee=1,mapRailList:ie=[],orgList:le=[],deviceList:Z=[]}=J||{};let O=[];return ee===1&&ie.length?O=ie:ee===2&&le.length?O=le:ee===3&&Z.length&&(O=Z.map(G=>({...G,type:3}))),O||[]}function F(J,ee=!1){r.value=[...J],ee&&e.nextTick(()=>{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 VO({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,!0),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 $O(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 BO({id:J});if(ie===200){_.value={...le,playMsg:le.playMsg===1},ee&&(_.value.id=null),console.log("详情数据",_.value);const Z=j(_.value);console.log("模板回显数据",Z),e.nextTick(()=>{s.value=!1,p.value||C(!0),e.nextTick(()=>{F(Z,!0)})})}}async function ke(J){const{code:ee}=await AO(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 IO(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:E,changeCheckScope:D,everydayJson:n,formRef:u,loading:s,selectElectronicFenceRef:N,selectDepartmentRef:k,selectDeviceRef:w,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),P8={key:0,class:"fixed top-0 left-0 bg-[rgba(0,0,0,0.5)] w-full h-full z-[100]"},M8={class:"w-[1080px] h-full"},U8={class:"w-full h-full px-[20px] box-border flex flex-col text-hy-text-main text-xs"},z8={class:"flex justify-between items-center h-[60px]"},W8={class:"font-bold text-lg"},j8=["element-loading-text"],H8={key:0,class:"flex mb-2 flex-shrink-0 rounded bg-backgroundv2 px-3 pt-2 h-[90px] box-border items-center"},Y8={class:"text-sm h-[30px] flex items-center"},G8=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),q8={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"},K8={class:"flex-1 mr-4"},X8={class:"text-sm h-[30px] flex items-center"},J8=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Z8={class:"text-sm h-[30px] flex items-center"},Q8=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),v8={class:"everydayBox leading-[20px]"},eM={class:"text-xs"},tM={class:"text-xs"},nM={class:"text-xs"},oM={class:"text-xs"},aM={class:"text-xs"},sM={class:"text-xs"},lM={class:"text-xs"},rM={class:"text-sm h-[30px] flex items-center"},iM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),cM={class:"w-full"},dM={class:"text-sm h-[30px] flex items-center"},pM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),fM={class:"flex-1 min-w-[220px]"},mM={class:"text-sm h-[30px] flex items-center"},hM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),uM={class:"flex items-center flex-grow h-0"},_M={class:"flex-grow w-0 h-full flex flex-col"},gM={class:"flex"},yM={class:"text-sm h-[30px] flex items-center"},xM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),kM={class:"text-sm h-[30px] flex items-center"},NM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),bM={class:"text-sm h-[30px] flex items-center"},CM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),wM={class:"test h-[32px] flex border border-hy-border-2 rounded box-border overflow-hidden bg-hy-dialog-bg-2 w-full"},EM={class:"flex-grow w-0 box-border px-1 flex items-center justify-center"},SM=["placeholder"],TM={class:"flex flex-col w-[32px] text-auxiliary border-l border-hy-border-2"},DM={class:"text-sm h-[30px] flex items-center"},VM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),$M={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"},BM={class:"tac text-hy-text-secondary text-center"},AM={class:"mt_10 mt-[10px]"},IM={class:""},LM={class:"mt-1"},FM={class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},OM={class:"flex justify-between h-[40px] items-center"},RM={class:"fs_12 p-[10px_20px] text-[12px]"},PM={class:"r-f mb_10 flex mb-[10px]"},MM=Fe(()=>e.createElementVNode("span",null,"1、",-1)),UM={class:"r-f mb_10 flex mb-[10px]"},zM=Fe(()=>e.createElementVNode("span",null,"2、",-1)),WM={class:"r-f mb_10 flex mb-[10px]"},jM=Fe(()=>e.createElementVNode("span",null,"3、",-1)),HM={class:"fs_12 cursor_pointer !text-hy-text-primary cursor-pointer text-[12px]"},YM={class:"flex-grow h-0 flex"},GM={class:"flex-1"},qM=Fe(()=>e.createElementVNode("div",{class:"mx-[20px] w-[2px] h-[96%] rounded bg-hy-border-2 flex-shrink-0"},null,-1)),KM={class:"w-[33%] h-full flex flex-col"},XM={class:"text-sm h-[30px] flex items-center"},JM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),ZM={class:"text-sm h-[30px] flex items-center"},QM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),vM={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"},e6={class:"tac text-hy-text-secondary text-center"},t6={class:"mt-[10px]"},n6={class:"mt-1"},o6={key:0,class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},a6={class:"flex-grow h-0"},s6={class:"text-xs"},l6={class:"mb-2"},r6={class:"text-sm h-[30px] flex items-center"},i6=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),c6={class:"mb-2"},d6={class:"text-sm h-[30px] flex items-center"},p6=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),f6={class:"flex items-center justify-between h-[80px]"},m6={class:"text-hy-text-secondary flex items-center"},h6=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:w,changeCheckScope:b,selectedDataList:S,setSelectedDataList:V,selectTemplateShow:$,onSubmit:h,selectElectronicFenceRef:g,selectDepartmentRef:C,selectDeviceRef:E,selectTemplateRef:D,viewSpotCheckRef:T,show:B,formRef:L}=R8({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=bO,he=e.resolveComponent("el-icon"),ke=yO,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",P8)):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",M8,[e.createElementVNode("div",U8,[e.createElementVNode("div",z8,[e.createElementVNode("div",W8,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",H8,[e.createVNode(U,{prop:"templateName",class:"w-full"},{default:e.withCtx(()=>[e.createElementVNode("div",Y8,[e.createTextVNode(e.toDisplayString(e.unref(s)("templateName")),1),G8]),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",q8,[e.createElementVNode("div",K8,[e.createVNode(U,{prop:"taskDateType"},{default:e.withCtx(()=>[e.createElementVNode("div",X8,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionDate")),1),J8]),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",Z8,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyAWeek")),1),Q8]),e.createElementVNode("div",v8,[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",eM,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",tM,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",nM,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",oM,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",aM,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",sM,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",lM,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",rM,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyADate")),1),iM]),e.createElementVNode("div",cM,[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",dM,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyATimePeriod")),1),pM]),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",fM,[e.createVNode(U,{prop:"taskDateTime"},{default:e.withCtx(()=>[e.createElementVNode("div",mM,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionTime-0")),1),hM]),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",uM,[e.createElementVNode("div",_M,[e.createElementVNode("div",gM,[e.createVNode(U,{class:"flex-1"},{default:e.withCtx(()=>[e.createElementVNode("div",yM,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckType")),1),xM]),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",kM,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckDevice")),1),NM]),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",bM,[e.createTextVNode(e.toDisplayString(e.unref(s)("randomNumber")),1),CM]),e.createElementVNode("div",wM,[e.createElementVNode("div",EM,[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,SM),[[e.vModelText,e.unref(f).limitNum]])]),e.createElementVNode("div",TM,[e.createElementVNode("div",{class:"flex-1 flex items-center justify-center clickBox cursor-pointer",onClick:F[15]||(F[15]=Z=>e.unref(w)(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(w)(2))},[e.createVNode(he,null,{default:e.withCtx(()=>[e.createVNode(ke)]),_:1})])])])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",DM,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckRange")),1),VM]),e.withDirectives(e.createElementVNode("div",$M,[e.createElementVNode("div",BM,[e.createVNode(M,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",AM,[e.createElementVNode("p",IM,e.toDisplayString(e.unref(s)("youDoNotNeedToSelectARangeAndDeviceForRandomCheck")),1),e.createElementVNode("p",LM,e.toDisplayString(e.unref(s)("theSystemWillHelpYouSelectRandomly")),1)])])],512),[[e.vShow,e.unref(f).checkType===2]]),e.withDirectives(e.createElementVNode("div",FM,[e.createElementVNode("div",OM,[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",HM,[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",RM,[e.createElementVNode("li",PM,[MM,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea")),1)]),e.createElementVNode("li",UM,[zM,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment")),1)]),e.createElementVNode("li",WM,[jM,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck")),1)])])]),_:1})])]),e.createElementVNode("div",YM,[e.createElementVNode("div",GM,[e.unref(f).checkScope===1?(e.openBlock(),e.createBlock($8,{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(fP,{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(s8,{key:2,ref_key:"selectDeviceRef",ref:E,"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]])]),qM,e.createElementVNode("div",KM,[e.createVNode(U,null,{default:e.withCtx(()=>[e.createElementVNode("div",XM,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckMethod")),1),JM]),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",ZM,[e.createTextVNode(e.toDisplayString(e.unref(s)("messageContent")),1),QM]),e.withDirectives(e.createElementVNode("div",vM,[e.createElementVNode("div",e6,[e.createVNode(M,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",t6,[e.createElementVNode("p",null,e.toDisplayString(e.unref(s)("callDoesNotRequireYouToEnterTheMessageContent")),1),e.createElementVNode("p",n6,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",o6,[e.createElementVNode("div",a6,[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",s6,e.toDisplayString(e.unref(s)("requiresTTSVoiceBroadcastOnTheDevice")),1)]),_:1},8,["modelValue"])]),e.createElementVNode("div",l6,[e.createElementVNode("div",r6,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerMethod")),1),i6]),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",c6,[e.createElementVNode("div",d6,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerTime")),1),p6]),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,j8)),[[le,e.unref(d)]]),e.createElementVNode("div",f6,[e.createElementVNode("div",m6,[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(O8,{ref_key:"selectTemplateRef",ref:D},null,512)],2)):e.createCommentVNode("",!0),e.createVNode(S3,{ref_key:"viewSpotCheckRef",ref:T},null,512)])}}}),[["__scopeId","data-v-1e4e7e93"]]);function u6(t){return oe.post({url:"orgGroup/detail",data:t,isFormData:!0})}function _6(){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 u6({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 w(h={}){const{beReceiveNum:g=0,receivingNum:C=0,finishNum:E=0,notFinishNum:D=0}=h;t.value.beReceiveNum=g,t.value.receivingNum=C,t.value.finishNum=E,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 Lr({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:w,spotCheckTaskDeviceChange:b,show:S,detail:V,close:$}}const g6={class:"deleteBox c_fff text-hy-text-main"},y6={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]"},x6={class:"dialog_body pb-[30px] h-[60vh] flex flex-col text-main text-xs !px-0"},k6={class:"flex items-center justify-center mb-[16px]"},N6={class:"relative flex-shrink-0"},b6={class:"relative text-sm h-[36px] !leading-[36px] text-center border border-hy-bg-2 rounded text-hy-text-secondary flex overflow-hidden"},C6=["onClick"],w6={class:"flex flex-grow h-0 px-4 box-border"},E6={class:"w-full h-full box-border px-2"},S6={class:"w-full h-full bg-hy-dialog-bg-2 rounded px-3 py-1 box-border overflow-x-hidden overflow-y-auto"},T6={class:"mb-2"},D6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},V6={class:"text-hy-text-secondary"},$6={class:"mb-2"},B6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},A6={class:"mb-2"},I6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},L6={class:"mb-2"},F6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},O6={class:"mb-2"},R6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},P6={key:0,class:"mb-2"},M6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},U6={key:0},z6={key:1},W6={key:2},j6={key:0},H6={key:0},Y6={key:1},G6={key:0},q6={key:2},K6={key:1,class:"mb-2"},X6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},J6={key:0,class:"py-1 box-border h-full bg-hy-dialog-bg-3 rounded"},Z6={class:"w-full h-[34px] px-2 box-border flex justify-between items-center"},Q6={key:0,class:"ml-2 border-[2px] box-border border-hy-border-2 flex items-center justify-center h-[26px] px-2 rounded"},v6={class:"h-[40%] box-border px-2 mt-1"},e5={class:"w-full h-full box-border bg-hy-dialog-bg-2 rounded p-2 overflow-y-auto overflow-x-hidden"},t5={class:"flex px-2 mt-1"},n5={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center mr-2"},o5={class:"text-hy-text-secondary"},a5={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center"},s5={class:"text-hy-text-secondary"},l5={class:"font-bold"},r5={key:1,class:"h-full py-1 bg-hy-dialog-bg-3 rounded"},i5={class:"w-full h-full flex items-center justify-center text-hy-text-secondary box-border"},c5={class:"r-f tac flex flex-col items-center justify-center text-center text-sm"},d5={class:"mt-3"},p5={class:"mt-1"},f5={class:"flex flex-grow h-0 px-4 box-border"},m5={class:"text-xs px-2 leading-[22px]"},h5={class:"flex w-full"},u5={class:"flex-shrink-0"},_5={class:"text-right font-bold flex-grow w-0"},g5={class:"flex w-full"},y5={class:"flex-shrink-0 tracking-[4px]"},x5={class:"text-right font-bold flex-grow w-0"},k5={class:"flex w-full"},N5={class:"flex-shrink-0 tracking-[4px]"},b5={class:"text-right font-bold flex-grow w-0"},C5={class:"flex w-full"},w5={class:"flex-shrink-0 tracking-[4px]"},E5={class:"text-right font-bold flex-grow w-0 text-hy-success"},S5={class:"flex w-full"},T5={class:"flex-shrink-0 tracking-[4px]"},D5={class:"text-right font-bold flex-grow w-0 text-hy-danger"},V5={class:"flex-1 flex"},$5={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},B5={class:"flex-grow w-0 text-center truncate"},A5={class:"flex-1 flex"},I5={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},L5={class:"flex-grow w-0 text-center text-hy-success truncate"},F5={class:"flex-1 flex"},O5={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},R5={class:"flex-grow w-0 text-center text-hy-danger truncate"},P5={class:"relative mt-3 mb-2 min-w-[160px]"},M5={class:"relative h-[26px] !leading-[26px] text-center border border-hy-border-2 rounded text-hy-text-secondary text-xs flex overflow-hidden"},U5=["onClick"],z5={class:"flex-grow h-0 px-2 overflow-x-hidden overflow-y-auto"},W5=e.createElementVNode("div",{class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},null,-1),j5={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"},H5={class:"r-f tac flex flex-col justify-center items-center"},Y5={class:"mt-3 text-sm"},G5=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:w,spotCheckTaskDeviceRef:b}=_6();return n({show:w}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-col"),g=e.resolveComponent("el-row"),C=e.resolveComponent("el-popover"),E=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(E,{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",g6,[e.createElementVNode("div",y6,[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",x6,[e.createElementVNode("div",k6,[e.createElementVNode("div",N6,[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",b6,[(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,C6))),128))])])]),e.withDirectives(e.createElementVNode("div",w6,[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",E6,[e.createElementVNode("div",S6,[e.createElementVNode("div",T6,[e.createElementVNode("div",D6,e.toDisplayString(e.unref(x)("spotCheckPersonnel")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(i).name)+" ",1),e.createElementVNode("span",V6," ("+e.toDisplayString(e.unref(i).jobNum)+")",1)])]),e.createElementVNode("div",$6,[e.createElementVNode("div",B6,e.toDisplayString(e.unref(x)("department")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).orgName),1)]),e.createElementVNode("div",A6,[e.createElementVNode("div",I6,e.toDisplayString(e.unref(x)("spotCheckTime")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkDtm),1)]),e.createElementVNode("div",L6,[e.createElementVNode("div",F6,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",O6,[e.createElementVNode("div",R6,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",P6,[e.createElementVNode("div",M6,[e.createTextVNode(e.toDisplayString(e.unref(x)("samplingScope"))+" ",1),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("span",U6,e.toDisplayString(e.unref(x)("regionalSpotCheck")),1)):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("span",z6,e.toDisplayString(e.unref(x)("departmentSpotCheck")),1)):e.unref(i).checkScope===3?(e.openBlock(),e.createElementBlock("span",W6,e.toDisplayString(e.unref(x)("deviceSpotCheck")),1)):e.createCommentVNode("",!0),e.createTextVNode(" ) ")]),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("div",j6,[(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",H6,"、")):e.createCommentVNode("",!0)]))),128))])):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("div",Y6,[(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",G6,"、")):e.createCommentVNode("",!0)]))),128))])):(e.openBlock(),e.createElementBlock("div",q6,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).checkNum||0)+" "+e.toDisplayString(e.unref(x)("device")),1)]))])):(e.openBlock(),e.createElementBlock("div",K6,[e.createElementVNode("div",X6,[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",J6,[e.createElementVNode("div",Z6,[e.createElementVNode("div",null,e.toDisplayString(e.unref(x)("messageContent")),1),e.unref(i).playMsg===1?(e.openBlock(),e.createElementBlock("div",Q6," TTS"+e.toDisplayString(e.unref(x)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",v6,[e.createElementVNode("div",e5,e.toDisplayString(e.unref(i).msgContent),1)]),e.createElementVNode("div",t5,[e.createElementVNode("div",n5,[e.createElementVNode("div",o5,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",a5,[e.createElementVNode("div",s5,e.toDisplayString(e.unref(x)("answerTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",l5,e.toDisplayString(e.unref(i).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("second")),1)])])])])):(e.openBlock(),e.createElementBlock("div",r5,[e.createElementVNode("div",i5,[e.createElementVNode("div",c5,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",d5,e.toDisplayString(e.unref(x)("callSpotCheck")),1),e.createElementVNode("div",p5,e.toDisplayString(e.unref(x)("backupWillBeCheckedByIntercomAnswering")),1)])])]))]),_:1})]),_:1})],512),[[e.vShow,e.unref(p)===1]]),e.withDirectives(e.createElementVNode("div",f5,[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",V5,[e.createElementVNode("div",$5,[e.createVNode($,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",B5,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("div",A5,[e.createElementVNode("div",I5,[e.createVNode($,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),e.createElementVNode("div",L5,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("div",F5,[e.createElementVNode("div",O5,[e.createVNode($,{name:"base-danger-state","class-name":"w-[16px] h-[16px] text-hy-danger"})]),e.createElementVNode("div",R5,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])],2)])]),default:e.withCtx(()=>[e.createElementVNode("ul",m5,[e.createElementVNode("li",h5,[e.createElementVNode("span",u5,e.toDisplayString(e.unref(x)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",_5,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("li",g5,[e.createElementVNode("span",y5,e.toDisplayString(e.unref(x)("waitingToReceive")),1),e.createElementVNode("div",x5,e.toDisplayString(e.unref(i).beReceiveNum||"- -"),1)]),e.createElementVNode("li",k5,[e.createElementVNode("span",N5,e.toDisplayString(e.unref(x)("receiving")),1),e.createElementVNode("div",b5,e.toDisplayString(e.unref(i).receivingNum||"- -"),1)]),e.createElementVNode("li",C5,[e.createElementVNode("span",w5,e.toDisplayString(e.unref(x)("completed")),1),e.createElementVNode("div",E5,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("li",S5,[e.createElementVNode("span",T5,e.toDisplayString(e.unref(x)("uncompleted")),1),e.createElementVNode("div",D5,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])])]),_:1}),e.createElementVNode("div",P5,[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",M5,[(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,U5))),128))])])],2),e.createElementVNode("div",z5,[e.unref(i).id?(e.openBlock(),e.createBlock(pa,{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(()=>[W5]),_:1})):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createElementBlock("div",j5,[e.createElementVNode("div",H5,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",Y5,e.toDisplayString(e.unref(x)("noDeviceSupportsThisSpotCheck")),1)])]))],512),[[e.vShow,e.unref(p)===2]])])])]),_:1},8,["modelValue"])}}});function q5(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 zr(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 K5={class:"flex flex-col h-full text-xs"},X5={class:"flex items-center"},J5={class:"!w-[114px]"},Z5={class:"text-hy-text-main"},Q5={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},v5={class:"flex-grow w-0 flex items-center mr-1"},eU={class:"overflow-ellipsis overflow-hidden mx-1"},tU={class:"flex-shrink-0 flex items-center"},nU={key:0,class:"w-full"},oU={class:"w-full h-full flex items-center"},aU={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},sU={class:"flex-shrink-0 text-xs ml-1 mr-2 text-hy-main"},lU=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:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=q5({emit:s,props:a,params:{selectFilterType:w,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"采集站名称,群组名称筛选"}],w.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:"采集站",value:8,placeholder:x("采集站名称进行筛选")}),w.value=k.value[0].value),a.defaultGetData||h()}),(E,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",K5,[e.createElementVNode("div",X5,[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",Z5,[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",J5,[e.createVNode(B,{modelValue:e.unref(w),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(w)?w.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(E.$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(E.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Q5,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.sname},{default:e.withCtx(()=>[e.createElementVNode("div",v5,[e.createVNode(L,{name:"menu-acquisition-station-2",class:"!w-[20px] !h-[20px]"}),e.createElementVNode("div",eU,[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",tU,[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(E.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",nU,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",oU,[e.createElementVNode("div",aU,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)]),e.createElementVNode("span",sU,"("+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 rU(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 Mr(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 iU={class:"flex flex-col h-full text-xs"},cU={class:"flex items-center"},dU={class:"!w-[114px]"},pU={class:"text-hy-text-main"},fU={key:0,class:"flex items-center w-full h-full click-box"},mU={class:"flex-grow w-0 h-full flex items-center text-hy-text-main"},hU={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},uU={class:"text-hy-text-main"},_U={class:"flex-shrink-0 ml-1 mr-2 h-full flex items-center justify-center"},gU={key:0,class:"w-full h-full"},yU=["onClick"],xU={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},kU=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:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C,onClickDevice:E,onClickOrganization:D}=rU({emit:s,props:a,params:{selectFilterType:w,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进行搜索"}],w.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:"群组名称进行筛选"}),w.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",iU,[e.createElementVNode("div",cU,[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",pU,[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",dU,[e.createVNode(j,{modelValue:e.unref(w),"onUpdate:modelValue":B[0]||(B[0]=R=>e.isRef(w)?w.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",fU,[e.createVNode(U,{class:"item",content:R.groupName,effect:"dark",placement:"bottom","show-after":1e3},{default:e.withCtx(()=>{var Y;return[e.createElementVNode("div",mU,[e.createElementVNode("div",hU,[e.createElementVNode("span",uU,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",_U,[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",gU,[R.type===3?(e.openBlock(),e.createBlock(fa,{key:0,device:R,onOnClickDevice:e.unref(E)},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",xU,[e.createElementVNode("span",null,e.toDisplayString(R.companyName||R.orgName),1)])],8,yU)]),_: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 NU(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 Ur(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 bU={class:"flex flex-col h-full text-xs"},CU={class:"flex items-center"},wU={class:"!w-[114px]"},EU={class:"text-hy-text-main"},SU={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},TU={class:"flex-grow w-0 flex items-center mr-1"},DU={class:"overflow-ellipsis overflow-hidden mx-1"},VU={class:"flex-shrink-0 flex items-center"},$U={key:0,class:"w-full"},BU={class:"w-full h-full flex items-center"},AU={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},IU={class:"flex-shrink-0 text-xs ml-1 mx-2 text-hy-main"},LU=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:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=NU({emit:s,props:a,params:{selectFilterType:w,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"人员名称,部门名称筛选"}],w.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:"人员",value:5,placeholder:x("filterByPersonnelName")}),w.value=k.value[0].value),a.defaultGetData||h()}),(E,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",bU,[e.createElementVNode("div",CU,[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",EU,[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",wU,[e.createVNode(B,{modelValue:e.unref(w),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(w)?w.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(E.$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(E.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",SU,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.name},{default:e.withCtx(()=>[e.createElementVNode("div",TU,[e.createVNode(L,{name:"icon-user",class:"!w-[14px] !h-[14px]"}),e.createElementVNode("div",DU,[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",VU,[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(E.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",$U,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",BU,[e.createElementVNode("div",AU,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)]),e.createElementVNode("span",IU,"("+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 Hr=(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))(Hr||{});ae.DeviceEnum=Hr,ae.HyAbnormalDetail=CI,ae.HyAcquisitionStationTree=lU,ae.HyAddDepartmentType=Eg,ae.HyAudioPlayer=wr,ae.HyBoxBorder=Ie,ae.HyCommonTaskDetailModal=hO,ae.HyDataTimeShortcuts=Xm,ae.HyDeviceDetails=i1,ae.HyDeviceTree=jr,ae.HyDeviceTreeCpns=fa,ae.HyEditSpotCheck=h6,ae.HyElectronicFence=WN,ae.HyElectronicPatrolDetail=Br,ae.HyFileDetails=hS,ae.HyFileUpload=mT,ae.HyImageViewer=jo,ae.HyMapNoPermissions=Gt,ae.HyMapSearchPlace=oa,ae.HyMenuComponents=p_,ae.HyNoData=h_,ae.HyOrgCascader=Vl,ae.HyOrgGroupTree=kU,ae.HyOrgTree=Wr,ae.HyRoundButton=Me,ae.HySelect=Mu,ae.HySelectMapLocation=yT,ae.HySpotCheckDetail=G5,ae.HySvgIcon=$l,ae.HyTable=Yt,ae.HyTableHead=L_,ae.HyTipsModal=ft,ae.HyUserHead=xt,ae.HyUserTree=LU,ae.HyVideoPlayer=aa,ae.HyVueCropper=Il,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})});
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 Fl({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 y1({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:w,handlingExceptionRef:b,isShowMap:d,taskDetailsShow:S,visibleChange:V,submissionFormShow:$,appTableGetData:h,orgCascaderOnChange:g,handlingExceptionShow:C,clickGroupItem:E,initMap:D,addMarker:T,pantoSomeWhere:B,abnormalStateFn:L,deviceReportFn:j,selectFn:F,emptyMap:M,show:z,onClose:U}}const G2=t=>(e.pushScopeId("data-v-73e74e7a"),t=t(),e.popScopeId(),t),q2={class:"pos_r dialog_header relative text-[18px] bg-hy-dialog-bg-1 text-center p-[20px] font-bold z-[1] font-['Helvetica']"},K2={class:"absolute right-[12px] top-[12px]"},X2={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg relative z-10"},J2={class:"dialog_body"},Z2={class:"ovh centerBox overflow-hidden flex items-center justify-center"},Q2={class:"r-f navigation flex"},v2={style:{height:"500px"},class:"c_fff fs_12 text-hy-text-main text-[12px]"},eB={class:"w_100vh h_100vh r-f details_box w-full h-full flex"},tB={class:"taskDetails lh_20 flex-shrink leading-[20px]"},nB={class:"c_dangerv2 fw_600 fs_16 mb_10 text-hy-danger font-[600] text-[16px] mb-[10px]"},oB={key:0,class:"mb_10 mb-[10px]"},aB={class:"c_9DA7B2 text-hy-text-secondary"},sB=["innerHTML"],lB={class:"mb_10 mb-[10px]"},rB={class:"c_9DA7B2 text-hy-text-secondary"},iB={class:"mb_10 mb-[10px]"},cB={class:"c_9DA7B2 text-hy-text-secondary"},dB={class:"mb_10 mb-[10px]"},pB={class:"c_9DA7B2 text-hy-text-secondary"},fB={class:"mb_10 mb-[10px]"},mB={class:"c_9DA7B2 text-hy-text-secondary"},hB={class:"f-g c-f flex flex-col w-0 flex-grow"},uB={class:"h_40 lh_40 fs_14 h-[40px] leading-[40px] text-[14px]"},_B={class:"title"},gB={class:"w-full h-full relative overflow-hidden",style:{height:"0","flex-grow":"1","border-radius":"6px"}},yB=G2(()=>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)),xB={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},kB={class:"information"},NB={class:"flex_vertically_center flex items-center"},bB={style:{"margin-left":"6px"}},CB={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},wB={class:"flex_vertically_center flex items-center"},EB={style:{"margin-left":"6px"}},SB={key:0,class:"type_box success"},TB={key:1,class:"type_box"},DB={class:"form"},VB={key:0},$B={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},BB={class:"r-f mb_10 flex_vertically_center flex items-center mb-[10px]"},AB={class:"mr_10 label flex-shrink mr-[10px]"},IB={class:"r-f flex_vertically_center flex items-center"},LB={class:"mr_10 label label_answer flex-shrink mr-[10px]"},FB={key:0,class:"c_theme text-hy-text-primary"},OB={key:1,class:"c_9DA7B2 text-hy-text-secondary"},RB={key:1},PB={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},MB={class:"group-item"},UB=["onClick"],zB={key:0,class:"c-f-i group-content r-f flex"},WB={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},jB=["src"],HB={key:1,style:{"flex-grow":"1"}},YB={class:"icon-box c-f-i flex"},GB={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},qB={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},KB={key:0,class:"information-type"},XB={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},JB={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},ZB={key:0,class:"c_9DA7B2 text-hy-text-secondary"},QB={key:1},vB={key:1,class:"c-f-i group-content r-f flex"},eA={style:{"flex-grow":"1"}},tA={class:"icon-box c-f-i flex"},nA={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},oA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},aA={key:0,class:"information-type"},sA={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},lA={key:2,style:{background:"var(--hy-warning)"},class:"information-type font-[600]"},rA={key:0,class:"c_9DA7B2 text-hy-text-secondary"},iA={key:1},cA={key:2,class:"c-f-i group-content r-f flex"},dA={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},pA=["src"],fA={key:1,style:{"flex-grow":"1"}},mA={class:"icon-box c-f-i flex"},hA={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},uA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},_A={key:0,class:"information-type"},gA={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},yA={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},xA={key:0,class:"c_9DA7B2 text-hy-text-secondary"},kA={key:1},NA={key:2},bA={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},CA={class:"group-item"},wA=["onClick"],EA={key:0,class:"c-f-i group-content r-f flex"},SA={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},TA=["src"],DA={key:1,style:{"flex-grow":"1"}},VA={class:"icon-box c-f-i flex"},$A={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},BA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},AA={key:0,class:"information-type"},IA={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},LA={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},FA={key:0,class:"c_9DA7B2 text-hy-text-secondary"},OA={key:1},RA={key:1,class:"c-f-i group-content r-f flex"},PA={style:{"flex-grow":"1"}},MA={class:"icon-box c-f-i flex"},UA={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},zA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},WA={key:0,class:"information-type"},jA={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},HA={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},YA={key:0,class:"c_9DA7B2 text-hy-text-secondary"},GA={key:1},qA={key:2,class:"c-f-i group-content r-f flex"},KA={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},XA=["src"],JA={key:1,style:{"flex-grow":"1"}},ZA={class:"icon-box c-f-i flex"},QA={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},vA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},eI={key:0,class:"information-type"},tI={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},nI={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},oI={key:0,class:"c_9DA7B2 text-hy-text-secondary"},aI={key:1},sI={class:"c-f w_100vh h_100vh handling_box flex flex-col w-full h-full"},lI={key:0,class:"h_100vh centerBox c_9DA7B2 noTaskSelected h-full flex items-center justify-center text-hy-text-secondary"},rI={class:"tac text-center"},iI={class:"mt_10 mt-[10px]"},cI={class:"fs_12 text-[12px]"},dI={key:1},pI={class:"progress_box centerBox fs_12 flex items-center justify-center text-[12px]"},fI={key:0,class:"c_theme text-hy-text-primary"},mI={key:1,class:"c_success text-hy-success"},hI={style:{width:"108px"},class:"plr_10 p-[0_10px]"},uI={class:"c_theme text-hy-text-primary"},_I={key:0,class:"r-f flex",style:{"flex-wrap":"wrap"}},gI={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},yI={key:1,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},xI={key:0,class:"c_theme text-hy-text-primary"},kI={key:1,class:"c_9DA7B2 text-hy-text-secondary"},NI={class:"pos_r relative"},bI={key:0,style:{cursor:"pointer"}},CI=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:w,handlingExceptionShow:b,tableColumns:S,searchArr:V,requestParams:$,submissionFormShow:h,orgCascaderOnChange:g,appTableGetData:C,visibleChange:E}=Y2({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=Bl,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",q2,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("abnormalDetail")),1),e.createElementVNode("div",K2,[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",X2,[e.createElementVNode("div",J2,[e.createElementVNode("div",Z2,[e.createElementVNode("ul",Q2,[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",v2,[e.withDirectives(e.createElementVNode("div",eB,[e.createElementVNode("div",tB,[e.createElementVNode("p",nB,e.toDisplayString(e.unref(u).taskName),1),e.unref(u).taskInfo?(e.openBlock(),e.createElementBlock("div",oB,[e.createElementVNode("p",aB,e.toDisplayString(e.unref(s)("taskDescription")),1),e.createElementVNode("p",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(u).taskInfo},null,8,sB)])):e.createCommentVNode("",!0),e.createElementVNode("div",lB,[e.createElementVNode("p",rB,e.toDisplayString(e.unref(s)("implementRoute")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).lineName),1)]),e.createElementVNode("div",iB,[e.createElementVNode("p",cB,e.toDisplayString(e.unref(s)("abnormalLocation")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).pointName),1)]),e.createElementVNode("div",dB,[e.createElementVNode("p",pB,e.toDisplayString(e.unref(s)("executionTime")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).executeDtm),1)]),e.createElementVNode("div",fB,[e.createElementVNode("p",mB,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",hB,[e.createElementVNode("div",uB,[e.createElementVNode("span",_B,e.toDisplayString(e.unref(s)("abnormalPosition")),1)]),e.createElementVNode("div",gB,[e.withDirectives(e.createVNode(Gt,{class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(i)]]),yB])]),e.withDirectives(e.createElementVNode("div",xB,[e.createElementVNode("div",kB,[e.createElementVNode("div",NB,[e.createVNode(B,{style:{width:"14px",height:"14px"},name:"base-user-online"}),e.createElementVNode("span",bB,[e.createTextVNode(e.toDisplayString(e.unref(k).name),1),e.unref(k).jobNum?(e.openBlock(),e.createElementBlock("span",CB,"("+e.toDisplayString(e.unref(k).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",wB,[e.createVNode(B,{name:"base-every-day-time","class-name":"w-[16px] h-[16px]"}),e.createElementVNode("span",EB,e.toDisplayString(e.unref(k).executeDtm),1)]),e.unref(k).checkState===1?(e.openBlock(),e.createElementBlock("div",SB,e.toDisplayString(e.unref(s)("normal")),1)):e.unref(k).checkState===2?(e.openBlock(),e.createElementBlock("div",TB,e.toDisplayString(e.unref(s)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",DB,[e.unref(k).formList&&e.unref(k).formList.length?(e.openBlock(),e.createElementBlock("div",VB,[e.createElementVNode("div",$B,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",BB,[e.createElementVNode("p",AB,e.toDisplayString(e.unref(s)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(P.optionTitle),1)]),e.createElementVNode("div",IB,[e.createElementVNode("p",LB,e.toDisplayString(e.unref(s)("answer")),1),P.optionValue?(e.openBlock(),e.createElementBlock("span",FB,e.toDisplayString(P.optionValue),1)):(e.openBlock(),e.createElementBlock("span",OB,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",RB,[e.createElementVNode("div",PB,e.toDisplayString(e.unref(s)("picture")),1),e.createElementVNode("div",MB,[(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(w)(P)},[P.fileType===1?(e.openBlock(),e.createElementBlock("div",zB,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.filePath&&P.del!==1?(e.openBlock(),e.createElementBlock("div",WB,[e.createElementVNode("img",{src:P.filePath,class:"h_100vh h-full"},null,8,jB)])):(e.openBlock(),e.createElementBlock("div",HB,[e.createElementVNode("div",YB,[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",GB,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",qB,[P.type===1?(e.openBlock(),e.createElementBlock("div",KB,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",XB,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",JB," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",ZB,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",QB,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",vB,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[e.createElementVNode("div",eA,[e.createElementVNode("div",tA,[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",nA,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",oA,[P.type===1?(e.openBlock(),e.createElementBlock("div",aA,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",sA,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",lA," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",rA,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",iA,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",cA,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.screenshot1?(e.openBlock(),e.createElementBlock("div",dA,[e.createElementVNode("img",{src:P.screenshot1,class:"h_100vh h-full"},null,8,pA)])):(e.openBlock(),e.createElementBlock("div",fA,[e.createElementVNode("div",mA,[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",hA,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",uA,[P.type===1?(e.openBlock(),e.createElementBlock("div",_A,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",gA,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",yA," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",xA,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",kA,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,UB))),128))])])):e.createCommentVNode("",!0),e.unref(k).videoList&&e.unref(k).videoList.length?(e.openBlock(),e.createElementBlock("div",NA,[e.createElementVNode("div",bA,e.toDisplayString(e.unref(s)("video")),1),e.createElementVNode("div",CA,[(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(w)(P)},[P.fileType===1?(e.openBlock(),e.createElementBlock("div",EA,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.filePath&&P.del!==1?(e.openBlock(),e.createElementBlock("div",SA,[e.createElementVNode("img",{src:P.filePath,class:"h_100vh h-full"},null,8,TA)])):(e.openBlock(),e.createElementBlock("div",DA,[e.createElementVNode("div",VA,[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",$A,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",BA,[P.type===1?(e.openBlock(),e.createElementBlock("div",AA,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",IA,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",LA," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",FA,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",OA,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",RA,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[e.createElementVNode("div",PA,[e.createElementVNode("div",MA,[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",UA,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",zA,[P.type===1?(e.openBlock(),e.createElementBlock("div",WA,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",jA,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",HA," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",YA,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",GA,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",qA,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.screenshot1?(e.openBlock(),e.createElementBlock("div",KA,[e.createElementVNode("img",{src:P.screenshot1,class:"h_100vh h-full"},null,8,XA)])):(e.openBlock(),e.createElementBlock("div",JA,[e.createElementVNode("div",ZA,[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",QA,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",vA,[P.type===1?(e.openBlock(),e.createElementBlock("div",eI,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",tI,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",nI," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",oI,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",aI,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,wA))),128))])])):e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(m)==="form"]]),e.withDirectives(e.createElementVNode("div",sI,[e.unref(u).dealState===0||e.unref(u).dealState===1?(e.openBlock(),e.createElementBlock("div",lI,[e.createElementVNode("div",rI,[e.createVNode(B,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",iI,[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",cI,e.toDisplayString(e.unref(s)("processedImmediately")),1)]),_:1})):(e.openBlock(),e.createElementBlock("span",dI,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",pI,[e.unref(u).dealState===2?(e.openBlock(),e.createElementBlock("span",fI,e.toDisplayString(e.unref(s)("execute")),1)):e.unref(u).dealState===3?(e.openBlock(),e.createElementBlock("span",mI,e.toDisplayString(e.unref(s)("completed")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",hI,[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",uI,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",_I,[e.createTextVNode(e.toDisplayString(P.name)+" ",1),P.jobNum?(e.openBlock(),e.createElementBlock("span",gI,"("+e.toDisplayString(P.jobNum)+")",1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",yI," -- "))]),reportState:e.withCtx(({row:P})=>[P.reportState===1?(e.openBlock(),e.createElementBlock("span",xI,e.toDisplayString(e.unref(s)("haveBeenReported")),1)):(e.openBlock(),e.createElementBlock("span",kI,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(Vl,{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",NI,[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(E)(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",bI,[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(H2,{ref_key:"handlingExceptionRef",ref:c,draggable:D.draggable},null,8,["draggable"]),e.createVNode(Vr,{ref_key:"submissionFormRef",ref:d,draggable:D.draggable},null,8,["draggable"]),e.createVNode(Br,{ref_key:"electronicPatrolDetailsRef",ref:p,draggable:D.draggable},null,8,["draggable"])])]),e.createVNode(Ie,{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 wI(){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 Nr({id:n.value});if(u.code===200){const N=u.data.pointList;p.value=u.data.railName;const k=[];N.forEach(w=>{k.push([w.lat,w.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=Ue.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 EI=t=>(e.pushScopeId("data-v-e3121b24"),t=t(),e.popScopeId(),t),SI={class:"w-full h-[560px] relative p-[10px] box-border"},TI=EI(()=>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)),DI={class:"absolute top-[20px] right-[20px] w-[300px] z-10"},VI={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"},$I={class:"flex"},BI={class:"flex justify-center items-center"},AI={style:{"margin-left":"8px"}},II={class:"font-bold"},LI=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}=wI();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(Ie,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",SI,[TI,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",DI,[e.createVNode(oa,{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",VI,[e.createElementVNode("div",$I,[e.createElementVNode("div",null,[e.createElementVNode("span",BI,[e.createVNode(_,{name:"police-situation-ps-around",style:{width:"20px",height:"20px"}}),e.createElementVNode("span",AI,e.toDisplayString(e.unref(x)("currentPositioning")),1)])]),e.createElementVNode("div",II,[e.createElementVNode("span",null,e.toDisplayString(e.unref(l)),1)])])])])]),_:1})),[[u]])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-e3121b24"]]),FI={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},OI=[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 RI(t,n){return e.openBlock(),e.createElementBlock("svg",FI,[...OI])}const Ar={name:"ep-success-filled",render:RI},PI={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},MI=[e.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1)];function UI(t,n){return e.openBlock(),e.createElementBlock("svg",PI,[...MI])}const Ir={name:"ep-caret-right",render:UI};function zI({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 ca({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(w=>w.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 WI={class:"r-f h_100vh flex h-full"},jI={class:"background_box information css-text-no-select"},HI=["onClick"],YI={style:{"margin-left":"4px"}},GI=["onClick"],qI={class:"flex-grow flex w-0"},KI={class:"over_one_line flex-grow w-0 truncate"},XI={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},JI={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},ZI={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},QI={class:"flex_vertically_center mb_10 flex items-center mb-[10px]"},vI={class:"title_box pl_10 pl-[10px]"},eL={class:"c_9DA7B2 text-hy-text-secondary"},tL={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},nL={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},oL={class:"recordList fs_12 text-[12px] overflow-hidden"},aL={class:"actionList c_fff"},sL={key:0,class:"indexBox centerBox flex items-center justify-center"},lL={key:1,class:"indexBoxv2 centerBox"},rL={class:"mediaFileList c_9DA7B2 text-hy-text-secondary"},iL={key:0,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},cL={key:1},dL=["onClick"],pL={class:"fileDel clickBox"},fL={key:1,class:"file clickBox"},mL={key:2,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},hL=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}=zI({props:o});return e.onMounted(()=>{c()}),n({taskItemViewFn:c}),(m,_)=>{const y=Ir,u=e.resolveComponent("el-icon"),N=$t,k=e.resolveComponent("el-tooltip"),w=Ar;return e.openBlock(),e.createElementBlock("div",WI,[e.createElementVNode("div",jI,[(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",YI,e.toDisplayString(b.orgName),1)],8,HI),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",qI,[e.createElementVNode("div",KI,e.toDisplayString(V.deviceUserName),1),e.createElementVNode("span",XI," ("+e.toDisplayString(V.jobNum)+")",1)]),V.status===0?(e.openBlock(),e.createElementBlock("div",JI,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",ZI,e.toDisplayString(e.unref(a)("finish")),1))],8,GI))),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",QI,[e.createElementVNode("div",vI,[e.createTextVNode(e.toDisplayString(b.deviceUserName)+" ",1),e.createElementVNode("span",eL,"("+e.toDisplayString(b.jobNum)+")",1)]),b.status===0?(e.openBlock(),e.createElementBlock("div",tL,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",nL,e.toDisplayString(e.unref(a)("finish")),1))]),e.createElementVNode("ul",oL,[(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",aL,[(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",sL,e.toDisplayString(V+1),1)):(e.openBlock(),e.createElementBlock("span",lL)),e.createElementVNode("span",null,e.toDisplayString($.actionDetail),1)]))),128))]),e.createElementVNode("div",rL,[S.status===0?(e.openBlock(),e.createElementBlock("div",iL,[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",cL,[(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",pL,e.toDisplayString($.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",fL,e.toDisplayString($.fileName),1))],8,dL))),128))])):(e.openBlock(),e.createElementBlock("div",mL,[e.createVNode(u,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(w)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("theTaskHasBeenCompletedWaitingForUploading")),1)]))])],2))),128))])]))),128))],512)])}}}),[["__scopeId","data-v-82696267"]]),uL={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_L=[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 gL(t,n){return e.openBlock(),e.createElementBlock("svg",uL,[..._L])}const yL={name:"ep-clock",render:gL};function xL({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 ca({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 kL={class:"r-f h_100vh flex h-full"},NL={class:"background_box information css-text-no-select"},bL=["onClick"],CL={style:{"margin-left":"4px"}},wL=["onClick"],EL={class:"flex-grow flex w-0"},SL={class:"over_one_line flex-grow w-0 truncate"},TL={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},DL={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},VL={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},$L={key:0,ref:"reportListRef",class:"f-g reportList w-0 flex-grow"},BL={key:0,class:"background_box h_100vh lh_20 h-full leading-[20px]"},AL={class:"fs_14 plr_20 border-bottom mtb_10 m-[10px_0] p-[0_20px] text-[14px]"},IL={class:"flex_vertically_center flex items-center",style:{"justify-content":"space-between"}},LL={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},FL={class:"c_9DA7B2 r-f lh_30 flex leading-[30px] text-hy-text-secondary",style:{"justify-content":"space-between"}},OL={class:"flex_vertically_center flex items-center"},RL={style:{"margin-left":"4px"}},PL={style:{padding:"0 20px 10px"}},ML={class:"mb_10 r-f mb-[10px] flex"},UL={class:"mr_10 label flex-shrink mr-[10px]"},zL={class:"c_theme r-f flex text-hy-text-primary"},WL={class:"mr_10 label label_answer flex-shrink mr-[10px]"},jL={key:0,class:"c_theme text-hy-text-primary"},HL={key:1,class:"c_theme text-hy-text-primary"},YL={key:1,class:"background_box h_100vh c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary h-full"},GL={class:"fs_14 plr_20 border-bottom text-[14px] p-[0_20px]"},qL={class:"flex_vertically_center lh_40 flex items-center leading-[40px]",style:{"justify-content":"space-between"}},KL={class:"c_9DA7B2 text-hy-text-secondary"},XL={class:"tac ptb_20 p-[20px_0] text-center"},JL={class:"mt_10 mt-[10px]"},ZL={key:0},QL={key:1},vL={key:2,class:"c_success text-hy-success"},eF=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}=xL({props:o});return e.onMounted(()=>{i()}),n({taskItemViewFn:i}),(d,f)=>{const m=Ir,_=e.resolveComponent("el-icon"),y=yL,u=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",kL,[e.createElementVNode("div",NL,[(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:w=>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",CL,e.toDisplayString(N.orgName),1)],8,bL),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,(w,b)=>(e.openBlock(),e.createElementBlock("div",{key:`${b}device`,class:"clickBox deviceItem background_box flex_vertically_center flex items-center text-xs",onClick:S=>e.unref(p)(w)},[e.createElementVNode("div",EL,[e.createElementVNode("div",SL,e.toDisplayString(w.deviceUserName),1),e.createElementVNode("span",TL," ("+e.toDisplayString(w.jobNum)+")",1)]),w.taskReportStatus===1?(e.openBlock(),e.createElementBlock("div",DL,e.toDisplayString(e.unref(a)("unfilled")),1)):w.taskReportStatus===2?(e.openBlock(),e.createElementBlock("div",VL,e.toDisplayString(e.unref(a)("haveBeenFilledIn")),1)):e.createCommentVNode("",!0)],8,wL))),128))],4)]))),128))]),e.unref(l)&&e.unref(l).length?(e.openBlock(),e.createElementBlock("div",$L,[(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",BL,[e.createElementVNode("div",AL,[e.createElementVNode("div",IL,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(N.deviceUserName)+" ",1),e.createElementVNode("span",LL,"("+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",FL,[e.createElementVNode("div",null,e.toDisplayString(N.urTemplateName),1),e.createElementVNode("div",OL,[e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(y)]),_:1}),e.createElementVNode("span",RL,e.toDisplayString(N.urSubmitDtm),1)])])]),e.createElementVNode("div",PL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.urOptionList,(k,w)=>(e.openBlock(),e.createElementBlock("div",{key:`${w}urOptionList`,class:"reportItem ptb_10 border-bottom p-[10px_0] text-[12px]"},[e.createElementVNode("div",ML,[e.createElementVNode("div",UL,e.toDisplayString(e.unref(a)("ask")),1),e.createTextVNode(" "+e.toDisplayString(k.optionTitle),1)]),e.createElementVNode("div",zL,[e.createElementVNode("div",WL,e.toDisplayString(e.unref(a)("answer")),1),k.optionValue?(e.openBlock(),e.createElementBlock("span",jL,e.toDisplayString(k.optionValue),1)):(e.openBlock(),e.createElementBlock("span",HL,e.toDisplayString(e.unref(a)("none")),1))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",YL,[e.createElementVNode("div",GL,[e.createElementVNode("div",qL,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(N.deviceUserName)+" ",1),e.createElementVNode("span",KL,"("+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",XL,[e.createVNode(u,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",JL,[N.taskReportStatus===0?(e.openBlock(),e.createElementBlock("span",ZL,e.toDisplayString(e.unref(a)("noNeedToSubmitATaskReport")),1)):N.taskReportStatus===1?(e.openBlock(),e.createElementBlock("span",QL,e.toDisplayString(e.unref(a)("unpackTaskReport")),1)):N.taskReportStatus===2?(e.openBlock(),e.createElementBlock("span",vL,e.toDisplayString(e.unref(a)("submittedTaskReport")),1)):e.createCommentVNode("",!0)])])]))]))),128))],512)):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-6b18d733"]]);function tF({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 ca({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 nF={class:"r-f h_100vh h-full flex"},oF={class:"background_box information css-text-no-select"},aF=["onClick"],sF={class:"r-f f-g flex flex-grow w-0"},lF={class:"indexBox centerBox flex-shrink flex justify-center items-center",style:{left:"4px"}},rF={class:"over_one_line truncate"},iF={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},cF={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},dF={class:"recordList fs_12 text-[12px]"},pF={class:"actionList c_fff text-hy-text-main"},fF={key:0,class:"indexBox centerBox flex justify-center items-center"},mF={key:1,class:"indexBoxv2 centerBox flex justify-center items-center"},hF={class:"mediaFileList"},uF={key:0},_F={class:"flex_vertically_center pos_r relative flex items-center"},gF={class:"c_fff text-hy-text-main"},yF={key:1},xF={class:"flex_vertically_center pos_r relative flex items-center"},kF={class:"c_fff text-hy-text-main"},NF=["onClick"],bF={class:"fileDel clickBox"},CF={key:1,class:"file clickBox"},wF={key:2},EF={class:"flex_vertically_center pos_r relative flex items-center"},SF={class:"c_fff text-hy-text-main"},TF=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}=tF({props:o});return e.onMounted(()=>{s()}),n({taskItemViewFn:s}),(p,d)=>{const f=$t,m=e.resolveComponent("el-icon"),_=Ar,y=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",nF,[e.createElementVNode("div",oF,[(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",sF,[e.createElementVNode("span",lF,e.toDisplayString(N+1),1),e.createElementVNode("span",rF,e.toDisplayString(u.actionDetail),1)]),u.status===0?(e.openBlock(),e.createElementBlock("div",iF,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",cF,e.toDisplayString(e.unref(a)("finish")),1))],8,aF))),128))]),e.createElementVNode("div",{ref_key:"dataListRef",ref:i,class:"content_box"},[e.createElementVNode("ul",dF,[(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",pF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.actionList,(k,w)=>(e.openBlock(),e.createElementBlock("div",{key:`${w}actionList`,class:"pos_r flex_vertically_center h_30 relative flex items-center h-[30px]",style:{"padding-left":"28px"}},[w===0?(e.openBlock(),e.createElementBlock("span",fF,e.toDisplayString(N+1),1)):(e.openBlock(),e.createElementBlock("span",mF)),e.createElementVNode("span",null,e.toDisplayString(k.actionDetail),1)]))),128))]),e.createElementVNode("div",hF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.recordList,(k,w)=>(e.openBlock(),e.createElementBlock("div",{key:`${w}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",uF,[e.createElementVNode("div",_F,[e.createVNode(m,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(f)]),_:1}),e.createElementVNode("span",gF,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",yF,[e.createElementVNode("div",xF,[e.createVNode(m,{class:"!text-hy-success icon_box"},{default:e.withCtx(()=>[e.createVNode(_)]),_:1}),e.createElementVNode("span",kF,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",bF,e.toDisplayString(b.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",CF,e.toDisplayString(b.fileName),1))],8,NF))),128))])):(e.openBlock(),e.createElementBlock("div",wF,[e.createElementVNode("div",EF,[e.createVNode(m,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(_)]),_:1}),e.createElementVNode("span",SF,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 DF(){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(w){l.value.taskExampleFn(w)}function f(w){a.value=w}function m(w){if(!w){Se.error(x("checkTheTaskAreaWrong"));return}r.value.show({mapRailId:w})}function _(w){o.value=w,w===2&&(t.value.taskMode===2?f(2):f(1))}function y(){s.value=!1}function u(){return new Promise(async(w,b)=>{const S=await uV({id:n.value});S.code===200&&(t.value=S.data||{},w(0))})}function N(w=null){n.value=w,_(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 VF={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold bg-hy-dialog-bg-1"},$F={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg-1 relative z-10"},BF={class:"dialog_body",style:{"padding-right":"0px"}},AF={class:"ovh centerBox flex items-center justify-center overflow-hidden"},IF={class:"r-f navigation flex"},LF={key:0,class:"r-f flex",style:{height:"540px"}},FF={class:"fs_12 lh_20 h_100vh background_box information text-[12px] leading-[20px] h-full"},OF={class:"fs_16 fw_600 lh_40 text-[16px] font-[600px] leading-[40px]"},RF={key:0,class:"mb_20 mb-[20px]"},PF={class:"c_9DA7B2 text-hy-text-secondary"},MF=["innerHTML"],UF={class:"mb_20 mb-[20px]"},zF={class:"c_9DA7B2 text-hy-text-secondary"},WF={class:"c_9DA7B2 text-hy-text-secondary"},jF={class:"mb_20 mb-[20px]"},HF={class:"c_9DA7B2 text-hy-text-secondary"},YF={class:"h_100vh content_box h-full"},GF={class:"flex_vertically_center title_box flex items-center"},qF={class:"pos_r relative"},KF={class:"fs_12"},XF={class:"actionList"},JF={key:0},ZF=["onClick"],QF={key:1,class:"c-f flex flex-col",style:{height:"540px"}},vF={class:"fs_12 r-f mb_10 flex text-[12px] mb-[10px]",style:{"justify-content":"space-between","padding-right":"30px"}},eO={class:"lh_20 flex_vertically_center flex items-center leading-[20px]"},tO={key:0,class:"c_dangerv2 text-hy-danger"},nO={key:1,class:"c_success text-hy-success"},oO={key:2,class:"c_9DA7B2 text-hy-text-secondary"},aO={key:3,class:"c_theme text-hy-text-primary"},sO={style:{width:"108px"},class:"plr_10 p-[0_10px]"},lO={class:"c_theme text-hy-text-primary"},rO={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},iO={class:"centerBox flex justify-center items-center"},cO={style:{"margin-left":"6px"}},dO={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary flex items-center"},pO={class:"centerBox flex justify-center items-center"},fO={style:{"margin-left":"6px"}},mO={style:{"flex-grow":"1",height:"0"}},hO=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:w,onClose:b}=DF();return n({show:c}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-button"),g=e.resolveComponent("el-progress"),C=$t,E=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",VF,[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(w)&&e.unref(w)(...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",$F,[e.createElementVNode("div",BF,[e.createVNode(LI,{ref_key:"selectLocationAreaRef",ref:s,draggable:!1},null,512),e.createElementVNode("div",AF,[e.createElementVNode("ul",IF,[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",LF,[e.createElementVNode("div",FF,[e.createElementVNode("div",OF,e.toDisplayString(e.unref(f).taskAction),1),e.unref(f).taskDesc?(e.openBlock(),e.createElementBlock("div",RF,[e.createElementVNode("div",PF,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,MF)])):e.createCommentVNode("",!0),e.createElementVNode("div",UF,[e.createElementVNode("div",zF,e.toDisplayString(e.unref(o)("executionTime")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(f).executeDtmStr)+" ",1),e.createElementVNode("span",WF,"("+e.toDisplayString(e.unref(f).taskDateStartTime)+" ~ "+e.toDisplayString(e.unref(f).taskDateEndTime)+")",1)])]),e.createElementVNode("div",jF,[e.createElementVNode("div",HF,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",YF,[(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",GF,[e.createElementVNode("div",qF,[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",KF,e.toDisplayString(e.unref(o)("missionArea")),1)]),_:2},1032,["onClick"])]),e.createElementVNode("ul",XF,[(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",JF,'"'+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,ZF)):e.createCommentVNode("",!0)]))),128))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",QF,[e.withDirectives(e.createElementVNode("div",vF,[e.createElementVNode("div",eO,[e.unref(f).status===0?(e.openBlock(),e.createElementBlock("span",tO,e.toDisplayString(e.unref(o)("unfinished")),1)):e.unref(f).status===1?(e.openBlock(),e.createElementBlock("span",nO,e.toDisplayString(e.unref(o)("hasBeenCompleted")),1)):e.unref(f).status===2?(e.openBlock(),e.createElementBlock("span",oO,e.toDisplayString(e.unref(o)("notPerformed")),1)):e.unref(f).status===3?(e.openBlock(),e.createElementBlock("span",aO,e.toDisplayString(e.unref(o)("execute")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",sO,[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",lO,e.toDisplayString(e.unref(f).finishNum||0)+"/"+e.toDisplayString(e.unref(f).totalNum||0),1)]),e.withDirectives(e.createElementVNode("div",rO,[e.createVNode(E,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",iO,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-download-task"}),e.createElementVNode("span",cO,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",dO,[e.createVNode(E,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",pO,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-user-online"}),e.createElementVNode("span",fO,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",mO,[e.unref(d)===2&&e.unref(m)===1&&e.unref(f).taskMode===1?(e.openBlock(),e.createBlock(hL,{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(TF,{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(eF,{key:2,ref_key:"taskReportRef",ref:l,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.createCommentVNode("",!0)])])),e.createVNode($r,{ref_key:"viewTaskExampleRef",ref:a,draggable:S.draggable},null,8,["draggable"])])]),e.createVNode(Ie,{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"]]),uO={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_O=[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 gO(t,n){return e.openBlock(),e.createElementBlock("svg",uO,[..._O])}const yO={name:"ep-arrow-down",render:gO},xO={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},kO=[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 NO(t,n){return e.openBlock(),e.createElementBlock("svg",xO,[...kO])}const bO={name:"ep-arrow-up",render:NO},CO={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},wO=[e.createElementVNode("path",{fill:"currentColor",d:"M672 192L288 511.936L672 832z"},null,-1)];function EO(t,n){return e.openBlock(),e.createElementBlock("svg",CO,[...wO])}const SO={name:"ep-caret-left",render:EO};function Lr(t){return oe.post({url:"spotCheck/task/detail",data:t,isFormData:!0})}function TO(t){return oe.post({url:"spotCheck/task/taskDevice/findAll",data:t,isFormData:!0})}function DO(t){return oe.post({url:"spotCheck/task/end",data:t,isFormData:!0})}function VO(t){return oe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function $O(t){return oe.post({url:t.id?"spotCheck/timing/update":"spotCheck/timing/insert",data:t,isJson:!0})}function BO(t){return oe.post({url:"spotCheck/template/detail",data:t,isFormData:!0})}function AO(t){return oe.post({url:t.id?"spotCheck/template/update":"spotCheck/template/insert",data:t,isJson:!0})}function IO(t){return oe.post({url:"spotCheck/task/taskExecute",data:t,isJson:!0})}function Fr(t){return oe.post({url:"spotCheck/task/pttFile/page",data:t,isFormData:!0})}function LO(t){return oe.post({url:"spotCheck/task/groupBind",data:t,isJson:!0})}function FO({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:w}=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(w){case 2:s.value++;break;case 3:l.value++;break;case 4:r.value++;break}e.nextTick(()=>{m(),p.value[b].checkStatus=w})}}function f(){let N=0,k=0,w=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:w++;break;case 4:b++;break}}),e.nextTick(()=>{a.value=N,s.value=k,l.value=w,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:w=[]}=await TO({taskId:t.form.id,checkStatus:N||null});k===200&&(p.value=w,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 OO={class:"h-[58px] bg-hy-dialog-bg-2 border border-box border-hy-border-2 rounded px-2 box-border flex items-center"},RO={class:"relative"},PO={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"},MO={class:"scale-75"},UO={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"},zO={class:"flex-grow w-0 flex"},WO={class:"mx-2 flex-grow w-0"},jO={class:"truncate"},HO={class:"text-hy-text-secondary truncate"},YO={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"},GO={class:"r-f tac flex items-center justify-center flex-col"},qO={class:"mt-3"},pa=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}=FO({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",OO,[e.createElementVNode("div",RO,[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",PO,[e.createElementVNode("span",MO,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",UO,[e.createVNode(m,{name:"icon-off-line","class-name":"!w-[10px] !h-[14px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",zO,[e.createElementVNode("div",WO,[e.createElementVNode("p",jO,e.toDisplayString(u.devName),1),e.createElementVNode("p",HO,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",YO,[e.createElementVNode("div",GO,[e.createVNode(m,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",qO,e.toDisplayString(e.unref(x)("noData")),1)])])]),_:1})):e.createCommentVNode("",!0)]),_:1})}}});function KO({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 E=i.value[i.value.length-1];if(!E){C();return}const D={page:0,taskId:t.taskId,largeThenTimestamp:E.fileTimestamp},T=c.value.scrollTop,B=c.value.offsetHeight-46,L=document.querySelector(`#item-${E.id}`);if(L){const j=L.offsetTop,F=await Fr(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 Fr(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?(w(C),s.value=(F=i.value[this.chatMessageList.length-1])==null?void 0:F.id):S(),e.nextTick(()=>{a.value=!1})})}}function w(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:w,topEvent:b,scrollToBottom:S,initScrollList:V,audioPlay:$,audioPause:h,getAudioContext:g}}const XO=["element-loading-text"],JO={key:0,class:"w-full h-full flex box-border items-center justify-center text-center text-hy-text-secondary"},ZO={class:""},QO={class:"mt-5"},vO=["id"],eR={key:0,class:"min-w-[72px] p-1 bg-hy-dialog-bg-4 text-center rounded mb-2"},tR={key:1,class:"h-[50px] flex items-center w-full"},nR={class:"mr-2 flex-grow w-0 flex flex-col items-end"},oR={class:"w-full flex items-center justify-end"},aR=["onClick"],sR=["onClick"],lR={class:"font-bold flex-shrink-0"},rR={class:"flex-shrink-0 ml-1"},iR={key:0},cR={key:2,class:"h-[50px] flex items-center w-full"},dR={class:"ml-2 flex-grow w-0 flex flex-col items-start"},pR={class:"w-full flex items-center"},fR=["onClick"],mR={class:"flex-shrink-0 mr-1"},hR={key:0},uR={class:"font-bold flex-shrink-0"},_R=["onClick"],gR=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}=KO({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",JO,[e.createElementVNode("div",ZO,[e.createElementVNode("div",null,[e.createVNode(u,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"})]),e.createElementVNode("div",QO,[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,w)=>(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]!==(w>0&&e.unref(l)[w-1].fileDtmEnd.split(" ")[0])?(e.openBlock(),e.createElementBlock("div",eR,e.toDisplayString(k.fileDtmEnd.split(" ")[0]),1)):e.createCommentVNode("",!0),k.devUserId===o.id?(e.openBlock(),e.createElementBlock("div",tR,[e.createElementVNode("div",nR,[e.createElementVNode("div",null,e.toDisplayString(k.devUserName)+" ("+e.toDisplayString(k.serialNum||k.devUserId)+") ",1),e.createElementVNode("div",oR,[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,aR)):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",lR,e.toDisplayString(k.audioLength)+"” ",1),e.createElementVNode("div",rR,[k.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",iR,e.toDisplayString(k.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)])],14,sR)])]),e.createVNode(xt,{class:"w-[32px] h-[32px]"})])):(e.openBlock(),e.createElementBlock("div",cR,[e.createVNode(xt,{class:"w-[32px] h-[32px]"}),e.createElementVNode("div",dR,[e.createElementVNode("div",null,e.toDisplayString(k.devUserName)+" ("+e.toDisplayString(k.serialNum||k.devUserId)+") ",1),e.createElementVNode("div",pR,[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",mR,[k.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",hR,e.toDisplayString(k.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",uR,e.toDisplayString(k.audioLength)+"” ",1)],14,fR),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,_R)):e.createCommentVNode("",!0)])])]))],8,vO))),128))],512)],8,XO)),[[N,e.unref(s)]])}}});function yR(){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 LO({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:E=0,notFinishNum:D=0,offLineNum:T=0,intercomGroupTemNum:B=0}=h;t.value.beReceiveNum=g,t.value.receivingNum=C,t.value.finishNum=E,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 Lr({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 w(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(){ft({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("cancelSpotCheck"),tipsContent:`<div style="text-align: center;"><p>${x("confirmToCancelThisSpotCheck")}?</p><p>${x("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")),ft({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 DO({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:w,close:b,onClose:S,onSubmit:V,taskEnd:$,setDragLevel:k,$t:x}}const xR=t=>(e.pushScopeId("data-v-ecc43ee8"),t=t(),e.popScopeId(),t),kR={class:"el-dialog__header !p-0"},NR={class:"el-dialog__body !p-[8px_0px_8px] sideFoot_content h-[700px] flex flex-col text-hy-text-main text-xs"},bR={class:"h-[40px] flex items-center px-4 mb-1"},CR={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"},wR={key:0,class:"ml-3"},ER={class:"text-hy-text-secondary"},SR={key:1,class:"ml-3"},TR={class:"text-hy-text-secondary"},DR={class:"font-bold"},VR=["element-loading-text"],$R={key:0,class:"w-full h-full flex flex-col box-border"},BR={class:"flex-shrink-0 mb-3 px-4"},AR={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},IR={class:"flex w-full"},LR={class:"flex-shrink-0"},FR={class:"text-right font-bold flex-grow w-0"},OR={class:"flex w-full text-hy-text-secondary"},RR={class:"flex-shrink-0"},PR={class:"text-right flex-grow w-0"},MR={class:"flex w-full text-hy-text-secondary"},UR={class:"flex-shrink-0"},zR={class:"text-right flex-grow w-0"},WR={class:"text-xs p-2 leading-[22px]"},jR={class:"flex w-full"},HR={class:"flex-shrink-0 tracking-[4px]"},YR={class:"text-right font-bold flex-grow w-0"},GR={class:"flex w-full"},qR={class:"flex-shrink-0 tracking-[4px]"},KR={class:"text-right font-bold flex-grow w-0"},XR={class:"flex w-full"},JR={class:"flex-shrink-0 tracking-[4px]"},ZR={class:"text-right font-bold flex-grow w-0 text-hy-success"},QR={class:"flex w-full"},vR={class:"flex-shrink-0 tracking-[4px]"},e4={class:"text-right font-bold flex-grow w-0 text-hy-danger"},t4={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},n4={class:"flex-1 flex"},o4={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},a4={class:"flex-grow w-0 text-center truncate"},s4={class:"flex-1 flex"},l4={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},r4={class:"flex-grow w-0 text-center text-hy-success truncate"},i4={class:"flex-1 flex"},c4={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},d4={class:"flex-grow w-0 text-center text-hy-danger truncate"},p4={class:"w-full px-2 leading-[22px] box-border rounded bg-hy-dialog-bg-3 h-[28px] flex items-center justify-between"},f4={class:"flex"},m4={key:0,class:"ml-2 bg-hy-dialog-bg-1 h-[22px] px-2 rounded"},h4={class:"w-[400px]"},u4={class:""},_4={key:0,class:"box-border flex-grow h-0 flex px-2"},g4={class:"flex-grow w-0 px-2 overflow-x-hidden overflow-y-auto h-full"},y4={key:0,class:"w-[66%] box-border pr-2"},x4={class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},k4={key:1,class:"flex-grow h-0 px-4"},N4={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"},b4={class:"r-f tac flex text-center"},C4={class:"mt-3"},w4={class:"mt-1"},E4={key:1,class:"w-full h-full"},S4={key:0,class:"w-full h-full flex px-4 box-border"},T4={class:"flex flex-col w-[33%]"},D4={class:"pr-2"},V4={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},$4={class:"flex w-full"},B4={class:"flex-shrink-0"},A4={class:"text-right font-bold flex-grow w-0"},I4={class:"flex w-full text-hy-text-secondary"},L4={class:"flex-shrink-0"},F4={class:"text-right flex-grow w-0"},O4={class:"flex w-full text-hy-text-secondary"},R4={class:"flex-shrink-0"},P4={class:"text-right flex-grow w-0"},M4={class:"text-xs p-2 leading-[22px]"},U4={key:0,class:"flex w-full"},z4={class:"flex-shrink-0 tracking-[4px]"},W4={class:"text-right font-bold flex-grow w-0"},j4={key:1,class:"flex w-full"},H4={class:"flex-shrink-0 tracking-[4px]"},Y4={class:"text-right font-bold flex-grow w-0"},G4={class:"flex w-full"},q4={class:"flex-shrink-0 tracking-[4px]"},K4={class:"text-right font-bold flex-grow w-0 text-hy-success"},X4={class:"flex w-full"},J4={class:"flex-shrink-0 tracking-[4px]"},Z4={class:"text-right font-bold flex-grow w-0 text-hy-danger"},Q4={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},v4={class:"flex-1 flex"},e3={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},t3={class:"flex-grow w-0 text-center truncate"},n3={class:"flex-1 flex"},o3={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},a3={class:"flex-grow w-0 text-center text-hy-success truncate"},s3={class:"flex-1 flex"},l3={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},r3={class:"flex-grow w-0 text-center text-hy-danger truncate"},i3={class:"flex-grow h-0 mt-2 overflow-x-hidden overflow-y-auto pr-2 box-border"},c3={class:"flex-grow w-0 flex flex-col"},d3=xR(()=>e.createElementVNode("div",{class:"flex-grow h-0 overflow-hidden"},null,-1)),p3={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"},f3={class:"r-f tac flex text-center"},m3={class:"mt-5"},h3={key:1,class:"flex-grow h-full px-4"},u3={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"},_3={class:"r-f tac flex text-center"},g3={class:"mt-3"},y3={class:"mt-1"},x3={class:"h-[50px] flex items-center justify-between flex-shrink-0 px-4 mt-1"},k3={class:"text-hy-text-secondary text-xs"},N3={key:0},b3={key:1},C3={key:0},w3={key:1},E3={key:2},S3=be(e.defineComponent({__name:"view-spot-check",setup(t,{expose:n}){const{dialogVisible:o,dragLevel:a,setDragLevel:s,form:l,$t:r,loading:i,setMsgContentType:c,msgContentType:p,spotCheckTaskDeviceChange:d,spotCheckTaskDeviceCountStatus:f,groupType:m,onClose:_,onSubmit:y,show:u}=yR();return n({show:u}),(N,k)=>{const w=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-popover"),S=e.resolveComponent("el-col"),V=SO,$=e.resolveComponent("el-icon"),h=e.resolveComponent("el-tooltip"),g=e.resolveComponent("el-row"),C=$t,E=e.resolveComponent("el-button"),D=e.resolveComponent("HyBoxBorder"),T=e.resolveComponent("el-dialog"),B=e.resolveDirective("loading"),L=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(T,{modelValue:e.unref(o),"onUpdate:modelValue":k[2]||(k[2]=j=>e.isRef(o)?o.value=j:null),"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-[830px] ml-[100px]",top:"5vh",width:830},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",kR,[e.createElementVNode("div",NR,[e.createElementVNode("div",bR,[e.createElementVNode("div",CR,e.toDisplayString(e.unref(r)("initiate"))+e.toDisplayString(e.unref(l).checkStyle===1?e.unref(r)("message"):e.unref(r)("call"))+e.toDisplayString(e.unref(r)("spotCheck")),1),e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("div",wR,[e.createElementVNode("span",ER,e.toDisplayString(e.unref(r)("responseMethod")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(l).actionType===1?e.unref(r)("punchIn"):e.unref(r)("reply")),1)])):e.createCommentVNode("",!0),e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("div",SR,[e.createElementVNode("span",TR,e.toDisplayString(e.unref(r)("responseTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",DR,e.toDisplayString(e.unref(l).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("second")),1)])])):e.createCommentVNode("",!0)]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(r)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0"},[e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("div",$R,[e.createElementVNode("div",BR,[e.createVNode(g,{gutter:8},{default:e.withCtx(()=>[e.createVNode(S,{span:8},{default:e.withCtx(()=>[e.createVNode(b,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",t4,[e.createElementVNode("div",n4,[e.createElementVNode("div",o4,[e.createVNode(w,{name:"base-every-day-many-people","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",a4,e.toDisplayString(e.unref(l).checkNum||"- -"),1)]),e.createElementVNode("div",s4,[e.createElementVNode("div",l4,[e.createVNode(w,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),e.createElementVNode("div",r4,e.toDisplayString(e.unref(l).finishNum||"- -"),1)]),e.createElementVNode("div",i4,[e.createElementVNode("div",c4,[e.createVNode(w,{name:"base-danger-state","class-name":"svgBox w-[16px] h-[16px] text-hy-danger"})]),e.createElementVNode("div",d4,e.toDisplayString(e.unref(l).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("ul",AR,[e.createElementVNode("li",IR,[e.createElementVNode("span",LR,e.toDisplayString(e.unref(r)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",FR,e.toDisplayString(e.unref(l).checkNum||"- -"),1)]),e.createElementVNode("li",OR,[e.createElementVNode("span",RR,e.toDisplayString(e.unref(r)("offlineStatus")),1),e.createElementVNode("div",PR,e.toDisplayString(e.unref(l).offLineNum||"- -"),1)]),e.createElementVNode("li",MR,[e.createElementVNode("span",UR,e.toDisplayString(e.unref(r)("temporaryGroups")),1),e.createElementVNode("div",zR,e.toDisplayString(e.unref(l).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",WR,[e.createElementVNode("li",jR,[e.createElementVNode("span",HR,e.toDisplayString(e.unref(r)("waitingToReceive")),1),e.createElementVNode("div",YR,e.toDisplayString(e.unref(l).beReceiveNum||"- -"),1)]),e.createElementVNode("li",GR,[e.createElementVNode("span",qR,e.toDisplayString(e.unref(r)("receiving")),1),e.createElementVNode("div",KR,e.toDisplayString(e.unref(l).receivingNum||"- -"),1)]),e.createElementVNode("li",XR,[e.createElementVNode("span",JR,e.toDisplayString(e.unref(r)("completed")),1),e.createElementVNode("div",ZR,e.toDisplayString(e.unref(l).finishNum||"- -"),1)]),e.createElementVNode("li",QR,[e.createElementVNode("span",vR,e.toDisplayString(e.unref(r)("uncompleted")),1),e.createElementVNode("div",e4,e.toDisplayString(e.unref(l).notFinishNum||"- -"),1)])])])]),_:1})]),_:1}),e.createVNode(S,{span:16},{default:e.withCtx(()=>[e.createElementVNode("div",p4,[e.createElementVNode("div",f4,[e.createTextVNode(e.toDisplayString(e.unref(r)("messageContent"))+" ",1),e.unref(l).playMsg===1?(e.openBlock(),e.createElementBlock("div",m4," TTS"+e.toDisplayString(e.unref(r)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"css-text-no-select cursor-pointer hover:opacity-60",onClick:k[1]||(k[1]=(...j)=>e.unref(c)&&e.unref(c)(...j))},[e.createVNode(h,{visible:e.unref(p),"onUpdate:visible":k[0]||(k[0]=j=>e.isRef(p)?p.value=j:null),class:"item",placement:"bottom-end",trigger:"manual"},{content:e.withCtx(()=>[e.createElementVNode("div",h4,e.toDisplayString(e.unref(l).msgContent),1)]),default:e.withCtx(()=>[e.createElementVNode("span",u4,[e.createTextVNode(e.toDisplayString(e.unref(r)("viewContent"))+" ",1),e.createVNode($,{class:e.normalizeClass(["text-sm duration-500",{"-rotate-90":e.unref(p)}])},{default:e.withCtx(()=>[e.createVNode(V)]),_:1},8,["class"])])]),_:1},8,["visible"])])])]),_:1})]),_:1})]),e.unref(l).checkNum!==0?(e.openBlock(),e.createElementBlock("div",_4,[e.createElementVNode("div",g4,[e.unref(l).id?(e.openBlock(),e.createBlock(pa,{key:0,ref:"spotCheckTaskDeviceRef","params-span":e.unref(l).actionType===1?8:24,form:e.unref(l),onChange:e.unref(d),onOnCountStatus:e.unref(f)},null,8,["params-span","form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)]),e.unref(l).actionType===2?(e.openBlock(),e.createElementBlock("div",y4,[e.createElementVNode("div",x4,[e.unref(l).id?(e.openBlock(),e.createBlock(gR,{key:0,ref:"talkbackReplyRef","task-id":e.unref(l).id},null,8,["task-id"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",k4,[e.createElementVNode("div",N4,[e.createElementVNode("div",b4,[e.createVNode(w,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",C4,e.toDisplayString(e.unref(r)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",w4,e.toDisplayString(e.unref(r)("cannotSupportThisSpotCheck")),1)])])]))])):(e.openBlock(),e.createElementBlock("div",E4,[e.unref(l).checkNum!==0?(e.openBlock(),e.createElementBlock("div",S4,[e.createElementVNode("div",T4,[e.createElementVNode("div",D4,[e.createVNode(b,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",Q4,[e.createElementVNode("div",v4,[e.createElementVNode("div",e3,[e.createVNode(w,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",t3,e.toDisplayString(e.unref(l).checkNum||"- -"),1)]),e.createElementVNode("div",n3,[e.createElementVNode("div",o3,[e.createVNode(w,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",a3,e.toDisplayString(e.unref(l).finishNum||"- -"),1)]),e.createElementVNode("div",s3,[e.createElementVNode("div",l3,[e.createVNode(w,{name:"base-danger-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",r3,e.toDisplayString(e.unref(l).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("ul",V4,[e.createElementVNode("li",$4,[e.createElementVNode("span",B4,e.toDisplayString(e.unref(r)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",A4,e.toDisplayString(e.unref(l).checkNum||"- -"),1)]),e.createElementVNode("li",I4,[e.createElementVNode("span",L4,e.toDisplayString(e.unref(r)("offlineStatus")),1),e.createElementVNode("div",F4,e.toDisplayString(e.unref(l).offLineNum||"- -"),1)]),e.createElementVNode("li",O4,[e.createElementVNode("span",R4,e.toDisplayString(e.unref(r)("temporaryGroups")),1),e.createElementVNode("div",P4,e.toDisplayString(e.unref(l).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",M4,[e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("li",U4,[e.createElementVNode("span",z4,e.toDisplayString(e.unref(r)("waitingToReceive")),1),e.createElementVNode("div",W4,e.toDisplayString(e.unref(l).beReceiveNum||"- -"),1)])):e.createCommentVNode("",!0),e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("li",j4,[e.createElementVNode("span",H4,e.toDisplayString(e.unref(r)("receiving")),1),e.createElementVNode("div",Y4,e.toDisplayString(e.unref(l).receivingNum||"- -"),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",G4,[e.createElementVNode("span",q4,e.toDisplayString(e.unref(r)("completed")),1),e.createElementVNode("div",K4,e.toDisplayString(e.unref(l).finishNum||"- -"),1)]),e.createElementVNode("li",X4,[e.createElementVNode("span",J4,e.toDisplayString(e.unref(r)("uncompleted")),1),e.createElementVNode("div",Z4,e.toDisplayString(e.unref(l).notFinishNum||"- -"),1)])])]),_:1})]),e.createElementVNode("div",i3,[e.unref(l).id?(e.openBlock(),e.createBlock(pa,{key:0,ref:"spotCheckTaskDeviceRef","params-span":24,form:e.unref(l),onChange:e.unref(d),onOnCountStatus:e.unref(f)},null,8,["form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",c3,[d3,e.unref(m)?(e.openBlock(),e.createElementBlock("div",p3,[e.createElementVNode("div",f3,[e.createVNode(w,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"}),e.createElementVNode("div",m3,e.toDisplayString(e.unref(r)("groupMemberStatusAbnormalityPreventsSpotCheck")),1)])])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",h3,[e.createElementVNode("div",u3,[e.createElementVNode("div",_3,[e.createVNode(w,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",g3,e.toDisplayString(e.unref(r)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",y3,e.toDisplayString(e.unref(r)("cannotSupportThisSpotCheck")),1)])])]))]))],8,VR)),[[B,e.unref(i)]]),e.createElementVNode("div",x3,[e.createElementVNode("div",k3,[e.createElementVNode("div",null,[e.createVNode($,{class:"mr-1 text-sm"},{default:e.withCtx(()=>[e.createVNode(C)]),_:1}),e.unref(l).checkType===2?(e.openBlock(),e.createElementBlock("span",N3,e.toDisplayString(e.unref(r)("randomCheck")),1)):(e.openBlock(),e.createElementBlock("span",b3,[e.unref(l).checkScope===1?(e.openBlock(),e.createElementBlock("span",C3,e.toDisplayString(e.unref(r)("regionalSpotCheck")),1)):e.unref(l).checkScope===2?(e.openBlock(),e.createElementBlock("span",w3,e.toDisplayString(e.unref(r)("departmentSpotCheck")),1)):e.unref(l).checkScope===3?(e.openBlock(),e.createElementBlock("span",E3,e.toDisplayString(e.unref(r)("deviceSpotCheck")),1)):e.createCommentVNode("",!0)]))])]),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",class:"button_default buttonBox min-w-[100px]",onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(E,{class:"button_function buttonBox min-w-[100px]",onClick:e.unref(y)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("complete")),1)]),_:1},8,["onClick"])])])])])),[[L]])]),default:e.withCtx(()=>[e.createVNode(D,{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"])}}}),[["__scopeId","data-v-ecc43ee8"]]);function T3(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(E=>E===h||E===`${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 w(h){f.value=h}function b(){const h=l.value.getCheckedNodes()||[],g=[],C=[];h.forEach(E=>{E.type===a.value?g.push(E):C.push(E)}),k([...g]),w(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 E;n("onCurrentDepartment",h);const C=i.value.findIndex(D=>D===g.key);C===-1?((E=l.value)==null||E.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 Or=t=>(e.pushScopeId("data-v-0ea0d0e6"),t=t(),e.popScopeId(),t),D3={class:"flex w-full h-full"},V3={key:0,class:"w-full flex items-center"},$3={key:0,class:"mr-[6px]"},B3={class:"el-checkbox"},A3=[Or(()=>e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1))],I3={key:1,class:"mr-1"},L3={class:"el-radio"},F3=[Or(()=>e.createElementVNode("span",{class:"el-radio__inner"},null,-1))],O3=["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}=T3({emit:s,props:a});e.watch(()=>a.showCheckbox,k=>{if(k===!1)if(r.value.length){const w=r.value[0];r.value=[w],a.showCheckbox&&a.parentCheckbox&&f([w[`${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,w)=>{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",D3,[S.type===a.itemType?(e.openBlock(),e.createElementBlock("div",V3,[a.showCheckbox&&!a.parentCheckbox?(e.openBlock(),e.createElementBlock("div",$3,[e.withDirectives(e.createElementVNode("div",B3,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)(S[`${a.itemSelectParam}`])!==-1,"is-disabled":S.disabled},"el-checkbox__input"])},A3,2)],512),[[e.vShow,a.showCheckboxButton]])])):e.createCommentVNode("",!0),a.showRadio?(e.openBlock(),e.createElementBlock("div",I3,[e.withDirectives(e.createElementVNode("div",L3,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)(S[`${a.itemSelectParam}`])!==-1,"is-disabled":S.disabled},"el-radio__input"])},F3,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,O3))])]),_: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 w(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:w,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 et(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 Rr(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=et(1,t,p,{selectFilterType:s});const f=d?p:{};if(p.children&&p.children.length>0){const m=await Rr(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 Pr(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=et(1,t,_,{selectFilterType:l});const k=N?_:{};if(_.deviceList&&_.deviceList.length&&!s){const w=[];_.deviceList.forEach((b,S)=>{if((a&&a.parentType||et(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($),w[b.onlineState===1?"unshift":"push"](V)}}),_.children=_.children.concat(w)}else _.deviceList=[];if(_.children&&_.children.length>0){const w=await Pr(t,_.children,o,{..._,parentType:N});if(w){const b=w.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=[...w.children],_.children=w.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 Mr(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:_=et(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||_||et(4,t,u,{selectFilterType:l})?(s||u.deviceList.forEach(w=>{const b={isLeaf:!0,...w,children:[],orgGroupId:u.id,deviceType:w.type,type:3};k[w.onlineState===1?"unshift":"push"](b)}),m.children.push({...u,children:k,type:4})):(s||u.deviceList.forEach(w=>{if(et(3,t,w,{selectFilterType:l})){const b={isLeaf:!0,...w,children:[],orgGroupId:u.id,deviceType:w.type,type:3};k[w.onlineState===1?"unshift":"push"](b)}}),k.length&&m.children.push({...u,children:k,type:4}))}else(a&&a.parentType||_||et(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 Mr(t,m.children,o,{...m,parentType:_});if(u){const N=u.deviceList;m.childrenDeviceList.push(...N),p.push(...N);const k=new Map,w=[];m.childrenDeviceList.forEach(b=>{k.has(b.id)||(k.set(b.id,b),b.onlineState===1&&w.push(b))}),m.childrenDeviceList=Array.from(k.values()),m.onlineCountList=w,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 Ur(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=et(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||et(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 w={...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"](w)}}),d.children=[...d.children,...y]}else d.deviceList=[];if(d.children&&d.children.length>0){const y=await Ur(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(w=>{N.has(w.id)||(N.set(w.id,w),w.onlineState===1&&k.push(w))}),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 zr(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=et(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||et(8,t,u,{selectFilterType:s})||m){const k={...u,type:8,item:u,children:[]};d.childrenDeviceList.push(k),i.push(k);const w={...u,type:8,item:u,children:[],disabled:kn(r,u.id)};y[u.onlineState===1?"unshift":"push"](w)}}),d.children=[...d.children,...y]}else d.deviceList=[];if(d.children&&d.children.length>0){const y=await zr(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(w=>{N.has(w.id)||(N.set(w.id,w),w.onlineState===1&&k.push(w))}),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 R3(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 Rr(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 P3={class:"flex flex-col h-full text-xs"},M3={class:"flex items-center"},U3={class:"!w-[114px]"},z3={class:"text-hy-text-main"},W3={key:0,class:"w-full text-hy-text-main"},j3={class:"w-full h-full flex items-center"},H3={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},Y3={key:0,class:"w-full"},G3={class:"w-full h-full flex items-center"},q3={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},Wr=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:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=R3({emit:s,props:a,params:{selectFilterType:w,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")}],w.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],w.value=k.value[0].value),a.defaultGetData||h()}),(E,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",P3,[e.createElementVNode("div",M3,[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",z3,[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",U3,[e.createVNode(B,{modelValue:e.unref(w),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(w)?w.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(E.$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(E.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",W3,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",j3,[e.createElementVNode("div",H3,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)])])]),_:2},1032,["content"])]))]),"other-content":e.withCtx(({row:z})=>[e.renderSlot(E.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Y3,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",G3,[e.createElementVNode("div",q3,[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 K3({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],l.value.setSelectedList(o.value)}function p(m){n.value=typeof m=="boolean"?m:!n.value,t("on-selectedDataList",o.value)}async function d(){const m=await Dl({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 X3={class:"flex flex-col w-full h-full"},J3={class:"flex justify-between items-center h-[40px]"},Z3={class:"flex-1"},Q3={class:"text-hy-text-secondary ml-3"},v3={class:"flex-1 flex items-center justify-end"},eP={class:"text-xs"},tP={class:"flex items-center clickBox cursor-pointer"},nP={class:"text-hy-text-primary"},oP=["element-loading-text"],aP={class:"flex-1 bg-hy-dialog-bg-1 rounded flex flex-col"},sP={class:"flex-grow h-0 w-full box-border p-2 equipment vbtTable"},lP={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded flex flex-col ml-2"},rP={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"},iP={class:"r-f tac flex flex-col items-center justify-center"},cP={class:"mt-3"},dP={class:"flex-grow w-0 pl-2 box-border truncate"},pP={class:"flex-shrink-0"},fP=e.defineComponent({__name:"select-depart-ment",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=o,{setSelectedDataList:s,getData:l,abortController:r,selectedDataList:i,clearSelectedData:c,deleteSelectList:p,onSelectedData:d,hyOrgTreeRef:f}=K3({emit:a});return e.onUnmounted(()=>{r.value&&r.value.abort()}),n({setSelectedDataList:s,clearSelectedData:c,getData:l}),(m,_)=>{const y=e.resolveComponent("el-button"),u=e.resolveComponent("svg-icon"),N=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",X3,[e.createElementVNode("div",J3,[e.createElementVNode("div",Z3,[e.createTextVNode(e.toDisplayString(e.unref(x)("allDepartments")),1),e.createElementVNode("span",Q3,e.toDisplayString(e.unref(x)("doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt")),1)]),e.createElementVNode("div",v3,[e.withDirectives(e.createVNode(y,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(c)},{default:e.withCtx(()=>[e.createElementVNode("span",eP,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(i).length!==0]]),e.createElementVNode("div",tP,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",nP,e.toDisplayString(e.unref(i).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",aP,[e.createElementVNode("div",sP,[e.createVNode(Wr,{ref_key:"hyOrgTreeRef",ref:f,"show-checkbox":!0,"parent-checkbox":!1,"get-data":e.unref(l),"default-checked-list":e.unref(i),onOnSelectedData:e.unref(d)},null,8,["get-data","default-checked-list","onOnSelectedData"])])]),e.createElementVNode("ul",lP,[e.withDirectives(e.createElementVNode("li",rP,[e.createElementVNode("div",iP,[e.createVNode(u,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",cP,e.toDisplayString(e.unref(x)("youHaveNotSelectedADepartmentYet")),1)])],512),[[e.vShow,e.unref(i).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(k,w)=>(e.openBlock(),e.createElementBlock("li",{key:`${k.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border clickBox border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[e.createElementVNode("div",dP,e.toDisplayString(k.companyName||k.groupName||k.orgName),1),e.createElementVNode("div",pP,[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:b=>e.unref(p)(w)},null,8,["tips","onClick"])])]))),128))])],8,oP)),[[N,!1]])])}}});function mP(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 hP=t=>(e.pushScopeId("data-v-51a5d703"),t=t(),e.popScopeId(),t),uP={class:"flex-shrink-0 mr-1"},_P={class:"flex-grow w-0 overflow-ellipsis overflow-hidden"},gP={class:"deviceName"},yP={key:0,class:"flex-shrink-0 mx-2"},xP={key:0,class:"text-hy-danger text-sm font-bold relative flex-shrink-0"},kP={key:1,class:"deviceType flex-shrink-0"},NP={key:2,class:"deviceType flex-shrink-0"},bP={key:3,class:"deviceType flex-shrink-0"},CP={key:4,class:"deviceType flex-shrink-0"},wP={key:5,class:"deviceType flex-shrink-0"},EP={key:6,class:"deviceType flex-shrink-0"},SP={key:7,class:"text-hy-success flex-shrink-0"},TP={key:1,class:"flex-shrink-0 mx-2"},DP=[hP(()=>e.createElementVNode("span",{class:"shrink-0"},"离线",-1))],fa=be(e.defineComponent({__name:"device-cpns",props:{device:{}},emits:["onClickDevice"],setup(t,{emit:n}){const o=t,a=n,s=e.ref(null);e.watch(()=>o.device,()=>{s.value=o.device}),e.onMounted(()=>{s.value=o.device});function l(r){a("onClickDevice",r)}return(r,i)=>{const c=e.resolveComponent("svg-icon"),p=e.resolveComponent("el-tooltip");return s.value?(e.openBlock(),e.createBlock(p,{key:0,"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:s.value.devName},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"!text-hy-text-main":s.value.onlineState===1},"w-full h-full flex border-box items-center box-border text-hy-info"]),onClick:i[0]||(i[0]=d=>l(s.value))},[e.createElementVNode("div",uP,[e.createVNode(c,{name:e.unref(mP)(s.value.deviceType||s.value.type),width:"20",height:"20",class:"relative top-[2px]"},null,8,["name"])]),e.createElementVNode("div",_P,[e.createElementVNode("span",gP,e.toDisplayString(s.value.devName),1)]),s.value.onlineState===1?(e.openBlock(),e.createElementBlock("div",yP,[s.value.sos===1?(e.openBlock(),e.createElementBlock("span",xP,"SOS")):s.value.intercomGroupTem===1||s.value.intercomCall===1?(e.openBlock(),e.createElementBlock("span",kP,"音频中")):s.value.monitor===1||s.value.beMonitor===1?(e.openBlock(),e.createElementBlock("span",NP,"监控中")):s.value.videoCall===1?(e.openBlock(),e.createElementBlock("span",bP,"通话中")):s.value.videoRecording===1?(e.openBlock(),e.createElementBlock("span",CP,"录像中")):s.value.audioRecording===1?(e.openBlock(),e.createElementBlock("span",wP,"录音中")):s.value.broadcast===1?(e.openBlock(),e.createElementBlock("span",EP,"广播中")):(e.openBlock(),e.createElementBlock("span",SP,"在线"))])):(e.openBlock(),e.createElementBlock("div",TP,DP))],2)]),_:1},8,["content"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-51a5d703"]]);function VP(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 Pr(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 $P={class:"flex flex-col h-full text-xs"},BP={class:"flex items-center"},AP={class:"!w-[114px]"},IP={class:"text-hy-text-main"},LP={class:"flex-grow w-0"},FP={class:"flex-shrink-0 mr-2 flex h-full items-center justify-center"},OP={key:0,class:"w-full flex cursor_pointer"},RP={class:"flex items-center flex-grow w-0"},PP={class:"max-w-full overflow-ellipsis overflow-hidden"},MP={class:"flex-shrink-0 mr-2 ml-1"},UP={class:"text-hy-main"},jr=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:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,setDeviceStatus:g,query:C,selectChange:E}=VP({emit:s,props:a,params:{selectFilterType:w,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进行搜索"}],w.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")}),w.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",$P,[e.createElementVNode("div",BP,[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",IP,[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",AP,[e.createVNode(L,{modelValue:e.unref(w),"onUpdate:modelValue":T[0]||(T[0]=U=>e.isRef(w)?w.value=U:null),class:"!m-0",size:"small",onChange:e.unref(E)},{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",LP,[e.createVNode(fa,{device:U},null,8,["device"])]),e.createVNode(z,{"open-delay":1e3,class:"item",content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",FP,[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",OP,[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",RP,[e.createElementVNode("span",PP,e.toDisplayString(U.companyName||U.groupName||U.orgName),1),e.withDirectives(e.createElementVNode("span",MP,[e.createTextVNode(" ("),e.createElementVNode("span",UP,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 zP({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=[]){console.log("通知",N),o.value=[...N],i.value.setSelectedList(N)}function d(N){if(!N.disabled){if(N.type===3){const k=o.value.findIndex(w=>w.deviceId===N.deviceId);k===-1?o.value.push({...N}):o.value.splice(k,1)}else{clearTimeout(l.value);const k={nonExistent:[],existent:[]},w=N.childrenDeviceList||[];w.length&&(w.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 Dl({spotCheckSupport:1});return f(),N.data}function _(N,k){const w=[{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=w.findIndex(S=>S.type===N);return b!==-1?y(w[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 WP={class:"flex flex-col w-full h-full"},jP={class:"flex justify-between items-center h-[40px]"},HP={class:"flex mr-2"},YP={class:"flex items-center"},GP={class:"text-xs"},qP={class:"flex items-center clickBox cursor-pointer"},KP={class:"text-hy-text-primary"},XP=["element-loading-text"],JP={class:"flex-1 bg-hy-dialog-bg-1 rounded box-border p-2 flex flex-col"},ZP={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded flex flex-col ml-2"},QP={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"},vP={class:"flex flex-col justify-center items-center"},e8={class:"mt-3"},t8={class:"flex-grow w-0 pl-2 flex box-border"},n8={class:"truncate flex-grow w-0"},o8={class:"select-none truncate mx-[4px] text-hy-text-main"},a8={class:"flex-shrink-0"},s8=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:_}=zP({emit:s});return 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"),w=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",WP,[e.createElementVNode("div",jP,[e.createElementVNode("div",HP,e.toDisplayString(e.unref(x)("allDevices")),1),e.createElementVNode("div",YP,[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",GP,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",qP,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",KP,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",JP,[e.createVNode(jr,{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",ZP,[e.withDirectives(e.createElementVNode("li",QP,[e.createElementVNode("div",vP,[e.createVNode(k,{name:"base-no-data","class-name":"!w-[50px] !h-[50px]"}),e.createElementVNode("div",e8,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",t8,[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",n8,[e.createElementVNode("span",o8,e.toDisplayString(b.devName),1)])]),e.createElementVNode("div",a8,[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,XP)),[[w,!1]])])}}});function l8({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,w=>{i.value=w.replace(/\s/g,"")});function p(w=[]){w.length!==0&&(w.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(w=[]){r.value=l.value.filter(b=>w.some(S=>S.id===b.id)),t("on-selected-data-list",r.value)}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 _(w){return r.value.findIndex(S=>S.id===w.id)!==-1?"is-checked":""}async function y(w){const b=r.value.findIndex(S=>S.id===w.id);b===-1?u(w):N(b)}function u(w){r.value.push(w),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}function N(w){r.value.splice(w,1),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}async function k(){o.value=!0;const{code:w,data:b=[]}=await uN({query:i.value,spotCheckSupport:1,onlineState:1});w===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 r8={class:"flex flex-col w-full h-full"},i8={class:"flex justify-between items-center h-[30px]"},c8={class:"el-checkbox !mr-2"},d8=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],p8={class:"text-hy-text-primary"},f8=["element-loading-text"],m8={class:"flex-1 bg-hy-dialog-bg-1 rounded flex flex-col"},h8={class:"flex items-center justify-center box-border p-[8px_8px_4px]"},u8={class:"text-hy-text-main"},_8={class:"flex-grow h-0 w-full px-2 pb-2 box-border overflow-y-scroll overflow-x-hidden"},g8=["onClick"],y8={class:"flex items-center justify-center"},x8={class:"el-checkbox relative !mr-[6px]"},k8=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],N8={class:"treeDepartment cursor_pointer flex items-center justify-between w-full text-[14px] font-bold text-hy-text-main"},b8={class:"r-f w_100vh flex w-full"},C8={class:"flex-grow w-0 over_one_line truncate"},w8={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded flex flex-col ml-2"},E8={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"},S8={class:"r-f tac flex flex-col justify-center items-center"},T8={class:"mt-3"},D8={class:"flex-grow w-0 pl-2 box-border truncate"},V8={class:"flex-shrink-0"},$8=e.defineComponent({__name:"select-electronic-fence",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=o,{setSelectedDataList:s,getData:l,setCheckAll:r,checkAll:i,selectedDataList:c,loading:p,filterValue:d,deviceList:f,deviceClick:m,judgeSelectedFn:_,deleteSelectList:y}=l8({emit:a});return e.onMounted(async()=>{await l()}),n({setSelectedDataList:s,getData:l}),(u,N)=>{const k=e.resolveComponent("svg-icon"),w=e.resolveComponent("el-button"),b=e.resolveComponent("el-input"),S=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",r8,[e.createElementVNode("div",i8,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("electronicFence")),1),e.createElementVNode("div",{class:"flex items-center clickBox",onClick:N[0]||(N[0]=(...V)=>e.unref(r)&&e.unref(r)(...V))},[e.createElementVNode("div",c8,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(i)},"el-checkbox__input"])},d8,2)]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",p8,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",m8,[e.createElementVNode("div",h8,[e.createVNode(b,{modelValue:e.unref(d),"onUpdate:modelValue":N[1]||(N[1]=V=>e.isRef(d)?d.value=V:null),placeholder:e.unref(x)("filterByElectronicFenceName"),class:"table-search-main w-[254px] text-[12px]",onClear:N[2]||(N[2]=V=>e.unref(l)()),onKeyup:N[3]||(N[3]=e.withKeys(V=>e.unref(l)(),["enter"]))},{append:e.withCtx(()=>[e.createElementVNode("div",u8,[e.createVNode(w,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(l)},{default:e.withCtx(()=>[e.createVNode(k,{name:"sys-button-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",_8,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),V=>(e.openBlock(),e.createElementBlock("div",{key:V.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:$=>e.unref(m)(V)},[e.createElementVNode("div",y8,[e.createElementVNode("div",x8,[e.createElementVNode("span",{class:e.normalizeClass([e.unref(_)(V),"el-checkbox__input"])},k8,2)])]),e.createElementVNode("div",N8,[e.createElementVNode("div",b8,[e.createElementVNode("span",C8,e.toDisplayString(V.railName),1),e.withDirectives(e.createElementVNode("span",{class:"flex-shrink-0 ml-1 text-hy-text-main"}," ("+e.toDisplayString(V.deviceList.length)+") ",513),[[e.vShow,V.deviceList.length]])])])],8,g8))),128))])]),e.createElementVNode("ul",w8,[e.withDirectives(e.createElementVNode("li",E8,[e.createElementVNode("div",S8,[e.createVNode(k,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",T8,e.toDisplayString(e.unref(x)("youHavenTSelectedAFenceYet")),1)])],512),[[e.vShow,e.unref(c).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(V,$)=>(e.openBlock(),e.createElementBlock("li",{key:`${V.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",D8,e.toDisplayString(V.railName),1),e.createElementVNode("div",V8,[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:h=>e.unref(y)($)},null,8,["tips","onClick"])])]))),128))])],8,f8)),[[S,e.unref(p)]])])}}});function B8({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 A8={class:"deleteBox c_fff text-hy-text-main"},I8={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]"},L8={class:"absolute right-[-2px] top-[-2px]"},F8={class:"dialog_body h-[60vh]"},O8=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}=B8({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",A8,[e.createElementVNode("div",I8,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("spotCheckTemplate")),1),e.createElementVNode("div",L8,[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",F8,[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 R8({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(),w=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)ft({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 E(){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?ft({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?w.value:null}function j(J){const{checkScope:ee=1,mapRailList:ie=[],orgList:le=[],deviceList:Z=[]}=J||{};let O=[];return ee===1&&ie.length?O=ie:ee===2&&le.length?O=le:ee===3&&Z.length&&(O=Z.map(G=>({...G,type:3}))),O||[]}function F(J,ee=!1){r.value=[...J],ee&&e.nextTick(()=>{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 VO({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,!0),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 $O(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 BO({id:J});if(ie===200){_.value={...le,playMsg:le.playMsg===1},ee&&(_.value.id=null),console.log("详情数据",_.value);const Z=j(_.value);console.log("模板回显数据",Z),e.nextTick(()=>{s.value=!1,p.value||C(!0),e.nextTick(()=>{F(Z,!0)})})}}async function ke(J){const{code:ee}=await AO(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 IO(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:E,changeCheckScope:D,everydayJson:n,formRef:u,loading:s,selectElectronicFenceRef:N,selectDepartmentRef:k,selectDeviceRef:w,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),P8={key:0,class:"fixed top-0 left-0 bg-[rgba(0,0,0,0.5)] w-full h-full z-[100]"},M8={class:"w-[1080px] h-full"},U8={class:"w-full h-full px-[20px] box-border flex flex-col text-hy-text-main text-xs"},z8={class:"flex justify-between items-center h-[60px]"},W8={class:"font-bold text-lg"},j8=["element-loading-text"],H8={key:0,class:"flex mb-2 flex-shrink-0 rounded bg-backgroundv2 px-3 pt-2 h-[90px] box-border items-center"},Y8={class:"text-sm h-[30px] flex items-center"},G8=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),q8={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"},K8={class:"flex-1 mr-4"},X8={class:"text-sm h-[30px] flex items-center"},J8=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Z8={class:"text-sm h-[30px] flex items-center"},Q8=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),v8={class:"everydayBox leading-[20px]"},eM={class:"text-xs"},tM={class:"text-xs"},nM={class:"text-xs"},oM={class:"text-xs"},aM={class:"text-xs"},sM={class:"text-xs"},lM={class:"text-xs"},rM={class:"text-sm h-[30px] flex items-center"},iM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),cM={class:"w-full"},dM={class:"text-sm h-[30px] flex items-center"},pM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),fM={class:"flex-1 min-w-[220px]"},mM={class:"text-sm h-[30px] flex items-center"},hM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),uM={class:"flex items-center flex-grow h-0"},_M={class:"flex-grow w-0 h-full flex flex-col"},gM={class:"flex"},yM={class:"text-sm h-[30px] flex items-center"},xM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),kM={class:"text-sm h-[30px] flex items-center"},NM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),bM={class:"text-sm h-[30px] flex items-center"},CM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),wM={class:"test h-[32px] flex border border-hy-border-2 rounded box-border overflow-hidden bg-hy-dialog-bg-2 w-full"},EM={class:"flex-grow w-0 box-border px-1 flex items-center justify-center"},SM=["placeholder"],TM={class:"flex flex-col w-[32px] text-auxiliary border-l border-hy-border-2"},DM={class:"text-sm h-[30px] flex items-center"},VM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),$M={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"},BM={class:"tac text-hy-text-secondary text-center"},AM={class:"mt_10 mt-[10px]"},IM={class:""},LM={class:"mt-1"},FM={class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},OM={class:"flex justify-between h-[40px] items-center"},RM={class:"fs_12 p-[10px_20px] text-[12px]"},PM={class:"r-f mb_10 flex mb-[10px]"},MM=Fe(()=>e.createElementVNode("span",null,"1、",-1)),UM={class:"r-f mb_10 flex mb-[10px]"},zM=Fe(()=>e.createElementVNode("span",null,"2、",-1)),WM={class:"r-f mb_10 flex mb-[10px]"},jM=Fe(()=>e.createElementVNode("span",null,"3、",-1)),HM={class:"fs_12 cursor_pointer !text-hy-text-primary cursor-pointer text-[12px]"},YM={class:"flex-grow h-0 flex"},GM={class:"flex-1"},qM=Fe(()=>e.createElementVNode("div",{class:"mx-[20px] w-[2px] h-[96%] rounded bg-hy-border-2 flex-shrink-0"},null,-1)),KM={class:"w-[33%] h-full flex flex-col"},XM={class:"text-sm h-[30px] flex items-center"},JM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),ZM={class:"text-sm h-[30px] flex items-center"},QM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),vM={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"},e6={class:"tac text-hy-text-secondary text-center"},t6={class:"mt-[10px]"},n6={class:"mt-1"},o6={key:0,class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},a6={class:"flex-grow h-0"},s6={class:"text-xs"},l6={class:"mb-2"},r6={class:"text-sm h-[30px] flex items-center"},i6=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),c6={class:"mb-2"},d6={class:"text-sm h-[30px] flex items-center"},p6=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),f6={class:"flex items-center justify-between h-[80px]"},m6={class:"text-hy-text-secondary flex items-center"},h6=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:w,changeCheckScope:b,selectedDataList:S,setSelectedDataList:V,selectTemplateShow:$,onSubmit:h,selectElectronicFenceRef:g,selectDepartmentRef:C,selectDeviceRef:E,selectTemplateRef:D,viewSpotCheckRef:T,show:B,formRef:L}=R8({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=bO,he=e.resolveComponent("el-icon"),ke=yO,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",P8)):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",M8,[e.createElementVNode("div",U8,[e.createElementVNode("div",z8,[e.createElementVNode("div",W8,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",H8,[e.createVNode(U,{prop:"templateName",class:"w-full"},{default:e.withCtx(()=>[e.createElementVNode("div",Y8,[e.createTextVNode(e.toDisplayString(e.unref(s)("templateName")),1),G8]),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",q8,[e.createElementVNode("div",K8,[e.createVNode(U,{prop:"taskDateType"},{default:e.withCtx(()=>[e.createElementVNode("div",X8,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionDate")),1),J8]),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",Z8,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyAWeek")),1),Q8]),e.createElementVNode("div",v8,[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",eM,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",tM,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",nM,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",oM,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",aM,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",sM,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",lM,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",rM,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyADate")),1),iM]),e.createElementVNode("div",cM,[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",dM,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyATimePeriod")),1),pM]),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",fM,[e.createVNode(U,{prop:"taskDateTime"},{default:e.withCtx(()=>[e.createElementVNode("div",mM,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionTime-0")),1),hM]),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",uM,[e.createElementVNode("div",_M,[e.createElementVNode("div",gM,[e.createVNode(U,{class:"flex-1"},{default:e.withCtx(()=>[e.createElementVNode("div",yM,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckType")),1),xM]),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",kM,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckDevice")),1),NM]),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",bM,[e.createTextVNode(e.toDisplayString(e.unref(s)("randomNumber")),1),CM]),e.createElementVNode("div",wM,[e.createElementVNode("div",EM,[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,SM),[[e.vModelText,e.unref(f).limitNum]])]),e.createElementVNode("div",TM,[e.createElementVNode("div",{class:"flex-1 flex items-center justify-center clickBox cursor-pointer",onClick:F[15]||(F[15]=Z=>e.unref(w)(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(w)(2))},[e.createVNode(he,null,{default:e.withCtx(()=>[e.createVNode(ke)]),_:1})])])])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",DM,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckRange")),1),VM]),e.withDirectives(e.createElementVNode("div",$M,[e.createElementVNode("div",BM,[e.createVNode(M,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",AM,[e.createElementVNode("p",IM,e.toDisplayString(e.unref(s)("youDoNotNeedToSelectARangeAndDeviceForRandomCheck")),1),e.createElementVNode("p",LM,e.toDisplayString(e.unref(s)("theSystemWillHelpYouSelectRandomly")),1)])])],512),[[e.vShow,e.unref(f).checkType===2]]),e.withDirectives(e.createElementVNode("div",FM,[e.createElementVNode("div",OM,[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",HM,[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",RM,[e.createElementVNode("li",PM,[MM,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea")),1)]),e.createElementVNode("li",UM,[zM,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment")),1)]),e.createElementVNode("li",WM,[jM,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck")),1)])])]),_:1})])]),e.createElementVNode("div",YM,[e.createElementVNode("div",GM,[e.unref(f).checkScope===1?(e.openBlock(),e.createBlock($8,{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(fP,{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(s8,{key:2,ref_key:"selectDeviceRef",ref:E,"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]])]),qM,e.createElementVNode("div",KM,[e.createVNode(U,null,{default:e.withCtx(()=>[e.createElementVNode("div",XM,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckMethod")),1),JM]),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",ZM,[e.createTextVNode(e.toDisplayString(e.unref(s)("messageContent")),1),QM]),e.withDirectives(e.createElementVNode("div",vM,[e.createElementVNode("div",e6,[e.createVNode(M,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",t6,[e.createElementVNode("p",null,e.toDisplayString(e.unref(s)("callDoesNotRequireYouToEnterTheMessageContent")),1),e.createElementVNode("p",n6,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",o6,[e.createElementVNode("div",a6,[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",s6,e.toDisplayString(e.unref(s)("requiresTTSVoiceBroadcastOnTheDevice")),1)]),_:1},8,["modelValue"])]),e.createElementVNode("div",l6,[e.createElementVNode("div",r6,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerMethod")),1),i6]),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",c6,[e.createElementVNode("div",d6,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerTime")),1),p6]),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,j8)),[[le,e.unref(d)]]),e.createElementVNode("div",f6,[e.createElementVNode("div",m6,[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(O8,{ref_key:"selectTemplateRef",ref:D},null,512)],2)):e.createCommentVNode("",!0),e.createVNode(S3,{ref_key:"viewSpotCheckRef",ref:T},null,512)])}}}),[["__scopeId","data-v-1e4e7e93"]]);function u6(t){return oe.post({url:"orgGroup/detail",data:t,isFormData:!0})}function _6(){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 u6({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 w(h={}){const{beReceiveNum:g=0,receivingNum:C=0,finishNum:E=0,notFinishNum:D=0}=h;t.value.beReceiveNum=g,t.value.receivingNum=C,t.value.finishNum=E,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 Lr({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:w,spotCheckTaskDeviceChange:b,show:S,detail:V,close:$}}const g6={class:"deleteBox c_fff text-hy-text-main"},y6={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]"},x6={class:"dialog_body pb-[30px] h-[60vh] flex flex-col text-main text-xs !px-0"},k6={class:"flex items-center justify-center mb-[16px]"},N6={class:"relative flex-shrink-0"},b6={class:"relative text-sm h-[36px] !leading-[36px] text-center border border-hy-bg-2 rounded text-hy-text-secondary flex overflow-hidden"},C6=["onClick"],w6={class:"flex flex-grow h-0 px-4 box-border"},E6={class:"w-full h-full box-border px-2"},S6={class:"w-full h-full bg-hy-dialog-bg-2 rounded px-3 py-1 box-border overflow-x-hidden overflow-y-auto"},T6={class:"mb-2"},D6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},V6={class:"text-hy-text-secondary"},$6={class:"mb-2"},B6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},A6={class:"mb-2"},I6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},L6={class:"mb-2"},F6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},O6={class:"mb-2"},R6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},P6={key:0,class:"mb-2"},M6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},U6={key:0},z6={key:1},W6={key:2},j6={key:0},H6={key:0},Y6={key:1},G6={key:0},q6={key:2},K6={key:1,class:"mb-2"},X6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},J6={key:0,class:"py-1 box-border h-full bg-hy-dialog-bg-3 rounded"},Z6={class:"w-full h-[34px] px-2 box-border flex justify-between items-center"},Q6={key:0,class:"ml-2 border-[2px] box-border border-hy-border-2 flex items-center justify-center h-[26px] px-2 rounded"},v6={class:"h-[40%] box-border px-2 mt-1"},e5={class:"w-full h-full box-border bg-hy-dialog-bg-2 rounded p-2 overflow-y-auto overflow-x-hidden"},t5={class:"flex px-2 mt-1"},n5={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center mr-2"},o5={class:"text-hy-text-secondary"},a5={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center"},s5={class:"text-hy-text-secondary"},l5={class:"font-bold"},r5={key:1,class:"h-full py-1 bg-hy-dialog-bg-3 rounded"},i5={class:"w-full h-full flex items-center justify-center text-hy-text-secondary box-border"},c5={class:"r-f tac flex flex-col items-center justify-center text-center text-sm"},d5={class:"mt-3"},p5={class:"mt-1"},f5={class:"flex flex-grow h-0 px-4 box-border"},m5={class:"text-xs px-2 leading-[22px]"},h5={class:"flex w-full"},u5={class:"flex-shrink-0"},_5={class:"text-right font-bold flex-grow w-0"},g5={class:"flex w-full"},y5={class:"flex-shrink-0 tracking-[4px]"},x5={class:"text-right font-bold flex-grow w-0"},k5={class:"flex w-full"},N5={class:"flex-shrink-0 tracking-[4px]"},b5={class:"text-right font-bold flex-grow w-0"},C5={class:"flex w-full"},w5={class:"flex-shrink-0 tracking-[4px]"},E5={class:"text-right font-bold flex-grow w-0 text-hy-success"},S5={class:"flex w-full"},T5={class:"flex-shrink-0 tracking-[4px]"},D5={class:"text-right font-bold flex-grow w-0 text-hy-danger"},V5={class:"flex-1 flex"},$5={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},B5={class:"flex-grow w-0 text-center truncate"},A5={class:"flex-1 flex"},I5={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},L5={class:"flex-grow w-0 text-center text-hy-success truncate"},F5={class:"flex-1 flex"},O5={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},R5={class:"flex-grow w-0 text-center text-hy-danger truncate"},P5={class:"relative mt-3 mb-2 min-w-[160px]"},M5={class:"relative h-[26px] !leading-[26px] text-center border border-hy-border-2 rounded text-hy-text-secondary text-xs flex overflow-hidden"},U5=["onClick"],z5={class:"flex-grow h-0 px-2 overflow-x-hidden overflow-y-auto"},W5=e.createElementVNode("div",{class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},null,-1),j5={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"},H5={class:"r-f tac flex flex-col justify-center items-center"},Y5={class:"mt-3 text-sm"},G5=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:w,spotCheckTaskDeviceRef:b}=_6();return n({show:w}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-col"),g=e.resolveComponent("el-row"),C=e.resolveComponent("el-popover"),E=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(E,{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",g6,[e.createElementVNode("div",y6,[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",x6,[e.createElementVNode("div",k6,[e.createElementVNode("div",N6,[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",b6,[(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,C6))),128))])])]),e.withDirectives(e.createElementVNode("div",w6,[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",E6,[e.createElementVNode("div",S6,[e.createElementVNode("div",T6,[e.createElementVNode("div",D6,e.toDisplayString(e.unref(x)("spotCheckPersonnel")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(i).name)+" ",1),e.createElementVNode("span",V6," ("+e.toDisplayString(e.unref(i).jobNum)+")",1)])]),e.createElementVNode("div",$6,[e.createElementVNode("div",B6,e.toDisplayString(e.unref(x)("department")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).orgName),1)]),e.createElementVNode("div",A6,[e.createElementVNode("div",I6,e.toDisplayString(e.unref(x)("spotCheckTime")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkDtm),1)]),e.createElementVNode("div",L6,[e.createElementVNode("div",F6,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",O6,[e.createElementVNode("div",R6,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",P6,[e.createElementVNode("div",M6,[e.createTextVNode(e.toDisplayString(e.unref(x)("samplingScope"))+" ",1),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("span",U6,e.toDisplayString(e.unref(x)("regionalSpotCheck")),1)):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("span",z6,e.toDisplayString(e.unref(x)("departmentSpotCheck")),1)):e.unref(i).checkScope===3?(e.openBlock(),e.createElementBlock("span",W6,e.toDisplayString(e.unref(x)("deviceSpotCheck")),1)):e.createCommentVNode("",!0),e.createTextVNode(" ) ")]),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("div",j6,[(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",H6,"、")):e.createCommentVNode("",!0)]))),128))])):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("div",Y6,[(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",G6,"、")):e.createCommentVNode("",!0)]))),128))])):(e.openBlock(),e.createElementBlock("div",q6,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).checkNum||0)+" "+e.toDisplayString(e.unref(x)("device")),1)]))])):(e.openBlock(),e.createElementBlock("div",K6,[e.createElementVNode("div",X6,[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",J6,[e.createElementVNode("div",Z6,[e.createElementVNode("div",null,e.toDisplayString(e.unref(x)("messageContent")),1),e.unref(i).playMsg===1?(e.openBlock(),e.createElementBlock("div",Q6," TTS"+e.toDisplayString(e.unref(x)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",v6,[e.createElementVNode("div",e5,e.toDisplayString(e.unref(i).msgContent),1)]),e.createElementVNode("div",t5,[e.createElementVNode("div",n5,[e.createElementVNode("div",o5,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",a5,[e.createElementVNode("div",s5,e.toDisplayString(e.unref(x)("answerTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",l5,e.toDisplayString(e.unref(i).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("second")),1)])])])])):(e.openBlock(),e.createElementBlock("div",r5,[e.createElementVNode("div",i5,[e.createElementVNode("div",c5,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",d5,e.toDisplayString(e.unref(x)("callSpotCheck")),1),e.createElementVNode("div",p5,e.toDisplayString(e.unref(x)("backupWillBeCheckedByIntercomAnswering")),1)])])]))]),_:1})]),_:1})],512),[[e.vShow,e.unref(p)===1]]),e.withDirectives(e.createElementVNode("div",f5,[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",V5,[e.createElementVNode("div",$5,[e.createVNode($,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",B5,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("div",A5,[e.createElementVNode("div",I5,[e.createVNode($,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),e.createElementVNode("div",L5,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("div",F5,[e.createElementVNode("div",O5,[e.createVNode($,{name:"base-danger-state","class-name":"w-[16px] h-[16px] text-hy-danger"})]),e.createElementVNode("div",R5,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])],2)])]),default:e.withCtx(()=>[e.createElementVNode("ul",m5,[e.createElementVNode("li",h5,[e.createElementVNode("span",u5,e.toDisplayString(e.unref(x)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",_5,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("li",g5,[e.createElementVNode("span",y5,e.toDisplayString(e.unref(x)("waitingToReceive")),1),e.createElementVNode("div",x5,e.toDisplayString(e.unref(i).beReceiveNum||"- -"),1)]),e.createElementVNode("li",k5,[e.createElementVNode("span",N5,e.toDisplayString(e.unref(x)("receiving")),1),e.createElementVNode("div",b5,e.toDisplayString(e.unref(i).receivingNum||"- -"),1)]),e.createElementVNode("li",C5,[e.createElementVNode("span",w5,e.toDisplayString(e.unref(x)("completed")),1),e.createElementVNode("div",E5,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("li",S5,[e.createElementVNode("span",T5,e.toDisplayString(e.unref(x)("uncompleted")),1),e.createElementVNode("div",D5,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])])]),_:1}),e.createElementVNode("div",P5,[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",M5,[(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,U5))),128))])])],2),e.createElementVNode("div",z5,[e.unref(i).id?(e.openBlock(),e.createBlock(pa,{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(()=>[W5]),_:1})):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createElementBlock("div",j5,[e.createElementVNode("div",H5,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",Y5,e.toDisplayString(e.unref(x)("noDeviceSupportsThisSpotCheck")),1)])]))],512),[[e.vShow,e.unref(p)===2]])])])]),_:1},8,["modelValue"])}}});function q5(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 zr(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 K5={class:"flex flex-col h-full text-xs"},X5={class:"flex items-center"},J5={class:"!w-[114px]"},Z5={class:"text-hy-text-main"},Q5={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},v5={class:"flex-grow w-0 flex items-center mr-1"},eU={class:"overflow-ellipsis overflow-hidden mx-1"},tU={class:"flex-shrink-0 flex items-center"},nU={key:0,class:"w-full"},oU={class:"w-full h-full flex items-center"},aU={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},sU={class:"flex-shrink-0 text-xs ml-1 mr-2 text-hy-main"},lU=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:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=q5({emit:s,props:a,params:{selectFilterType:w,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"采集站名称,群组名称筛选"}],w.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:"采集站",value:8,placeholder:x("采集站名称进行筛选")}),w.value=k.value[0].value),a.defaultGetData||h()}),(E,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",K5,[e.createElementVNode("div",X5,[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",Z5,[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",J5,[e.createVNode(B,{modelValue:e.unref(w),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(w)?w.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(E.$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(E.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Q5,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.sname},{default:e.withCtx(()=>[e.createElementVNode("div",v5,[e.createVNode(L,{name:"menu-acquisition-station-2",class:"!w-[20px] !h-[20px]"}),e.createElementVNode("div",eU,[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",tU,[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(E.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",nU,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",oU,[e.createElementVNode("div",aU,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)]),e.createElementVNode("span",sU,"("+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 rU(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 Mr(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 iU={class:"flex flex-col h-full text-xs"},cU={class:"flex items-center"},dU={class:"!w-[114px]"},pU={class:"text-hy-text-main"},fU={key:0,class:"flex items-center w-full h-full click-box"},mU={class:"flex-grow w-0 h-full flex items-center text-hy-text-main"},hU={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},uU={class:"text-hy-text-main"},_U={class:"flex-shrink-0 ml-1 mr-2 h-full flex items-center justify-center"},gU={key:0,class:"w-full h-full"},yU=["onClick"],xU={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},kU=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:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C,onClickDevice:E,onClickOrganization:D}=rU({emit:s,props:a,params:{selectFilterType:w,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进行搜索"}],w.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:"群组名称进行筛选"}),w.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",iU,[e.createElementVNode("div",cU,[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",pU,[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",dU,[e.createVNode(j,{modelValue:e.unref(w),"onUpdate:modelValue":B[0]||(B[0]=R=>e.isRef(w)?w.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",fU,[e.createVNode(U,{class:"item",content:R.groupName,effect:"dark",placement:"bottom","show-after":1e3},{default:e.withCtx(()=>{var Y;return[e.createElementVNode("div",mU,[e.createElementVNode("div",hU,[e.createElementVNode("span",uU,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",_U,[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",gU,[R.type===3?(e.openBlock(),e.createBlock(fa,{key:0,device:R,onOnClickDevice:e.unref(E)},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",xU,[e.createElementVNode("span",null,e.toDisplayString(R.companyName||R.orgName),1)])],8,yU)]),_: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 NU(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 Ur(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 bU={class:"flex flex-col h-full text-xs"},CU={class:"flex items-center"},wU={class:"!w-[114px]"},EU={class:"text-hy-text-main"},SU={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},TU={class:"flex-grow w-0 flex items-center mr-1"},DU={class:"overflow-ellipsis overflow-hidden mx-1"},VU={class:"flex-shrink-0 flex items-center"},$U={key:0,class:"w-full"},BU={class:"w-full h-full flex items-center"},AU={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},IU={class:"flex-shrink-0 text-xs ml-1 mx-2 text-hy-main"},LU=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:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=NU({emit:s,props:a,params:{selectFilterType:w,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"人员名称,部门名称筛选"}],w.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:"人员",value:5,placeholder:x("filterByPersonnelName")}),w.value=k.value[0].value),a.defaultGetData||h()}),(E,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",bU,[e.createElementVNode("div",CU,[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",EU,[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",wU,[e.createVNode(B,{modelValue:e.unref(w),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(w)?w.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(E.$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(E.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",SU,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.name},{default:e.withCtx(()=>[e.createElementVNode("div",TU,[e.createVNode(L,{name:"icon-user",class:"!w-[14px] !h-[14px]"}),e.createElementVNode("div",DU,[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",VU,[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(E.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",$U,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",BU,[e.createElementVNode("div",AU,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)]),e.createElementVNode("span",IU,"("+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 Hr=(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))(Hr||{});ae.DeviceEnum=Hr,ae.HyAbnormalDetail=CI,ae.HyAcquisitionStationTree=lU,ae.HyAddDepartmentType=Eg,ae.HyAudioPlayer=wr,ae.HyBoxBorder=Ie,ae.HyCommonTaskDetailModal=hO,ae.HyDataTimeShortcuts=Xm,ae.HyDeviceDetails=i1,ae.HyDeviceTree=jr,ae.HyDeviceTreeCpns=fa,ae.HyEditSpotCheck=h6,ae.HyElectronicFence=WN,ae.HyElectronicPatrolDetail=Br,ae.HyFileDetails=hS,ae.HyFileUpload=mT,ae.HyImageViewer=jo,ae.HyMapNoPermissions=Gt,ae.HyMapSearchPlace=oa,ae.HyMenuComponents=p_,ae.HyNoData=h_,ae.HyOrgCascader=Vl,ae.HyOrgGroupTree=kU,ae.HyOrgTree=Wr,ae.HyRoundButton=Me,ae.HySelect=Mu,ae.HySelectMapLocation=yT,ae.HySpotCheckDetail=G5,ae.HySvgIcon=$l,ae.HyTable=Yt,ae.HyTableHead=L_,ae.HyTipsModal=ft,ae.HyUserHead=xt,ae.HyUserTree=LU,ae.HyVideoPlayer=aa,ae.HyVueCropper=Il,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})});