command-center-v3-common 0.0.103 → 0.0.105
Sign up to get free protection for your applications and to get access to all the features.
@@ -34,7 +34,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
34
34
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
35
35
|
* @license MIT
|
36
36
|
**/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const r_=Object.prototype.hasOwnProperty,zl=(t,n)=>r_.call(t,n),Yn=t=>typeof t=="function",mn=t=>typeof t=="string",Wl=t=>t!==null&&typeof t=="object";var i_=typeof global=="object"&&global&&global.Object===Object&&global,c_=typeof self=="object"&&self&&self.Object===Object&&self,Ko=i_||c_||Function("return this")(),Xt=Ko.Symbol,jl=Object.prototype,d_=jl.hasOwnProperty,p_=jl.toString,hn=Xt?Xt.toStringTag:void 0;function f_(t){var n=d_.call(t,hn),o=t[hn];try{t[hn]=void 0;var a=!0}catch{}var s=p_.call(t);return a&&(n?t[hn]=o:delete t[hn]),s}var m_=Object.prototype,h_=m_.toString;function u_(t){return h_.call(t)}var __="[object Null]",g_="[object Undefined]",Hl=Xt?Xt.toStringTag:void 0;function Yl(t){return t==null?t===void 0?g_:__:Hl&&Hl in Object(t)?f_(t):u_(t)}function y_(t){return t!=null&&typeof t=="object"}var x_="[object Symbol]";function Xo(t){return typeof t=="symbol"||y_(t)&&Yl(t)==x_}function k_(t,n){for(var o=-1,a=t==null?0:t.length,s=Array(a);++o<a;)s[o]=n(t[o],o,t);return s}var Jo=Array.isArray,N_=1/0,Gl=Xt?Xt.prototype:void 0,ql=Gl?Gl.toString:void 0;function Kl(t){if(typeof t=="string")return t;if(Jo(t))return k_(t,Kl)+"";if(Xo(t))return ql?ql.call(t):"";var n=t+"";return n=="0"&&1/t==-N_?"-0":n}function Xl(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var b_="[object AsyncFunction]",C_="[object Function]",w_="[object GeneratorFunction]",E_="[object Proxy]";function S_(t){if(!Xl(t))return!1;var n=Yl(t);return n==C_||n==w_||n==b_||n==E_}var Zo=Ko["__core-js_shared__"],Jl=function(){var t=/[^.]+$/.exec(Zo&&Zo.keys&&Zo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function T_(t){return!!Jl&&Jl in t}var D_=Function.prototype,V_=D_.toString;function $_(t){if(t!=null){try{return V_.call(t)}catch{}try{return t+""}catch{}}return""}var B_=/[\\^$.*+?()[\]{}|]/g,I_=/^\[object .+?Constructor\]$/,A_=Function.prototype,L_=Object.prototype,F_=A_.toString,O_=L_.hasOwnProperty,R_=RegExp("^"+F_.call(O_).replace(B_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function P_(t){if(!Xl(t)||T_(t))return!1;var n=S_(t)?R_:I_;return n.test($_(t))}function M_(t,n){return t==null?void 0:t[n]}function Zl(t,n){var o=M_(t,n);return P_(o)?o:void 0}function U_(t,n){return t===n||t!==t&&n!==n}var z_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W_=/^\w*$/;function j_(t,n){if(Jo(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||Xo(t)?!0:W_.test(t)||!z_.test(t)||n!=null&&t in Object(n)}var un=Zl(Object,"create");function H_(){this.__data__=un?un(null):{},this.size=0}function Y_(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}var G_="__lodash_hash_undefined__",q_=Object.prototype,K_=q_.hasOwnProperty;function X_(t){var n=this.__data__;if(un){var o=n[t];return o===G_?void 0:o}return K_.call(n,t)?n[t]:void 0}var J_=Object.prototype,Z_=J_.hasOwnProperty;function Q_(t){var n=this.__data__;return un?n[t]!==void 0:Z_.call(n,t)}var v_="__lodash_hash_undefined__";function eg(t,n){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=un&&n===void 0?v_:n,this}function Bt(t){var n=-1,o=t==null?0:t.length;for(this.clear();++n<o;){var a=t[n];this.set(a[0],a[1])}}Bt.prototype.clear=H_,Bt.prototype.delete=Y_,Bt.prototype.get=X_,Bt.prototype.has=Q_,Bt.prototype.set=eg;function tg(){this.__data__=[],this.size=0}function Gn(t,n){for(var o=t.length;o--;)if(U_(t[o][0],n))return o;return-1}var ng=Array.prototype,og=ng.splice;function ag(t){var n=this.__data__,o=Gn(n,t);if(o<0)return!1;var a=n.length-1;return o==a?n.pop():og.call(n,o,1),--this.size,!0}function sg(t){var n=this.__data__,o=Gn(n,t);return o<0?void 0:n[o][1]}function lg(t){return Gn(this.__data__,t)>-1}function rg(t,n){var o=this.__data__,a=Gn(o,t);return a<0?(++this.size,o.push([t,n])):o[a][1]=n,this}function 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=tg,Jt.prototype.delete=ag,Jt.prototype.get=sg,Jt.prototype.has=lg,Jt.prototype.set=rg;var ig=Zl(Ko,"Map");function cg(){this.size=0,this.__data__={hash:new Bt,map:new(ig||Jt),string:new Bt}}function dg(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function qn(t,n){var o=t.__data__;return dg(n)?o[typeof n=="string"?"string":"hash"]:o.map}function pg(t){var n=qn(this,t).delete(t);return this.size-=n?1:0,n}function fg(t){return qn(this,t).get(t)}function mg(t){return qn(this,t).has(t)}function hg(t,n){var o=qn(this,t),a=o.size;return o.set(t,n),this.size+=o.size==a?0:1,this}function It(t){var n=-1,o=t==null?0:t.length;for(this.clear();++n<o;){var a=t[n];this.set(a[0],a[1])}}It.prototype.clear=cg,It.prototype.delete=pg,It.prototype.get=fg,It.prototype.has=mg,It.prototype.set=hg;var ug="Expected a function";function Qo(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new TypeError(ug);var o=function(){var a=arguments,s=n?n.apply(this,a):a[0],l=o.cache;if(l.has(s))return l.get(s);var r=t.apply(this,a);return o.cache=l.set(s,r)||l,r};return o.cache=new(Qo.Cache||It),o}Qo.Cache=It;var _g=500;function gg(t){var n=Qo(t,function(a){return o.size===_g&&o.clear(),a}),o=n.cache;return n}var yg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xg=/\\(\\)?/g,kg=gg(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(yg,function(o,a,s,l){n.push(s?l.replace(xg,"$1"):a||o)}),n});function Ng(t){return t==null?"":Kl(t)}function bg(t,n){return Jo(t)?t:j_(t,n)?[t]:kg(Ng(t))}var Cg=1/0;function wg(t){if(typeof t=="string"||Xo(t))return t;var n=t+"";return n=="0"&&1/t==-Cg?"-0":n}function Eg(t,n){n=bg(n,t);for(var o=0,a=n.length;t!=null&&o<a;)t=t[wg(n[o++])];return o&&o==a?t:void 0}function Sg(t,n,o){var a=t==null?void 0:Eg(t,n);return a===void 0?o:a}function Tg(t){for(var n=-1,o=t==null?0:t.length,a={};++n<o;){var s=t[n];a[s[0]]=s[1]}return a}const Dg=t=>t===void 0,Ql=t=>typeof t=="boolean",At=t=>typeof t=="number",Vg=t=>typeof Element>"u"?!1:t instanceof Element,$g=t=>mn(t)?!Number.isNaN(Number(t)):!1,vl=t=>Object.keys(t);class Bg extends Error{constructor(n){super(n),this.name="ElementPlusError"}}function Kn(t,n){if(process.env.NODE_ENV!=="production"){const o=mn(t)?new Bg(`[${t}] ${n}`):t;console.warn(o)}}const Ig="utils/dom/style";function vo(t,n="px"){if(!t)return"";if(At(t)||$g(t))return`${t}${n}`;if(mn(t))return t;Kn(Ig,"binding value must be a string or number")}const er="__epPropKey",at=t=>t,Ag=t=>Wl(t)&&!!t[er],tr=(t,n)=>{if(!Wl(t)||Ag(t))return t;const{values:o,required:a,default:s,type:l,validator:r}=t,c={type:l,required:!!a,validator:o||r?p=>{let d=!1,f=[];if(o&&(f=Array.from(o),zl(t,"default")&&f.push(s),d||(d=f.includes(p))),r&&(d||(d=r(p))),!d&&f.length>0){const m=[...new Set(f)].map(_=>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,[er]:!0};return zl(t,"default")&&(c.default=s),c},_n=t=>Tg(Object.entries(t).map(([n,o])=>[n,tr(o,n)])),Lg=at([String,Object,Function]),Fg={Close:Ad,SuccessFilled:Os,InfoFilled:Fs,WarningFilled:Rs,CircleCloseFilled:Ls},nr={success:Os,warning:Rs,error:Ls,info:Fs},or=(t,n)=>{if(t.install=o=>{for(const a of[t,...Object.values(n??{})])o.component(a.name,a)},n)for(const[o,a]of Object.entries(n))t[o]=a;return t},Og=(t,n)=>(t.install=o=>{t._context=o._context,o.config.globalProperties[n]=t},t),Rg={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Pg=["","default","small","large"],Mg=t=>t,Ug=t=>(n,o)=>zg(n,o,e.unref(t)),zg=(t,n,o)=>Sg(o,t,t).replace(/\{(\w+)\}/g,(a,s)=>{var l;return`${(l=n==null?void 0:n[s])!=null?l:`{${s}}`}`}),Wg=t=>{const n=e.computed(()=>e.unref(t).name),o=e.isRef(t)?t:e.ref(t);return{lang:n,locale:o,t:Ug(t)}},ar=Symbol("localeContextKey"),jg=t=>{const n=t||e.inject(ar,e.ref());return Wg(e.computed(()=>n.value||Kr))},Xn="el",Hg="is-",Lt=(t,n,o,a,s)=>{let l=`${t}-${n}`;return o&&(l+=`-${o}`),a&&(l+=`__${a}`),s&&(l+=`--${s}`),l},sr=Symbol("namespaceContextKey"),Yg=t=>{const n=t||(e.getCurrentInstance()?e.inject(sr,e.ref(Xn)):e.ref(Xn));return e.computed(()=>e.unref(n)||Xn)},ea=(t,n)=>{const o=Yg(n);return{namespace:o,b:(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,x)=>u&&N&&x?Lt(o.value,t,u,N,x):"",is:(u,...N)=>{const x=N.length>=1?N[0]:!0;return u&&x?`${Hg}${u}`:""},cssVar:u=>{const N={};for(const x in u)u[x]&&(N[`--${o.value}-${x}`]=u[x]);return N},cssVarName:u=>`--${o.value}-${u}`,cssVarBlock:u=>{const N={};for(const x in u)u[x]&&(N[`--${o.value}-${t}-${x}`]=u[x]);return N},cssVarBlockName:u=>`--${o.value}-${t}-${u}`}},lr={current:0},rr=e.ref(0),ir=2e3,cr=Symbol("elZIndexContextKey"),dr=Symbol("zIndexContextKey"),Gg=t=>{const n=e.getCurrentInstance()?e.inject(cr,lr):lr,o=t||(e.getCurrentInstance()?e.inject(dr,void 0):void 0),a=e.computed(()=>{const r=e.unref(o);return At(r)?r:ir}),s=e.computed(()=>a.value+rr.value),l=()=>(n.current++,rr.value=n.current,s.value);return!Kt&&!e.inject(cr)&&Kn("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
37
|
-
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:s,nextZIndex:l}},qg=tr({type:String,values:Pg,required:!1}),Kg=Symbol("size"),Xg=Symbol("emptyValuesContextKey"),Jg=_n({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>Yn(t)?!t():!t}}),pr=Symbol(),Jn=e.ref();function fr(t,n=void 0){const o=e.getCurrentInstance()?e.inject(pr,Jn):Jn;return t?e.computed(()=>{var a,s;return(s=(a=o.value)==null?void 0:a[t])!=null?s:n}):o}function Zg(t,n){const o=fr(),a=ea(t,e.computed(()=>{var i;return((i=o.value)==null?void 0:i.namespace)||Xn})),s=jg(e.computed(()=>{var i;return(i=o.value)==null?void 0:i.locale})),l=Gg(e.computed(()=>{var i;return((i=o.value)==null?void 0:i.zIndex)||ir})),r=e.computed(()=>{var i;return e.unref(n)||((i=o.value)==null?void 0:i.size)||""});return mr(e.computed(()=>e.unref(o)||{})),{ns:a,locale:s,zIndex:l,size:r}}const mr=(t,n,o=!1)=>{var a;const s=!!e.getCurrentInstance(),l=s?fr():void 0,r=(a=n==null?void 0:n.provide)!=null?a:s?e.provide:void 0;if(!r){Kn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const i=e.computed(()=>{const c=e.unref(t);return l!=null&&l.value?Qg(l.value,c):c});return r(pr,i),r(ar,e.computed(()=>i.value.locale)),r(sr,e.computed(()=>i.value.namespace)),r(dr,e.computed(()=>i.value.zIndex)),r(Kg,{size:e.computed(()=>i.value.size||"")}),r(Xg,e.computed(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(o||!Jn.value)&&(Jn.value=i.value),i},Qg=(t,n)=>{const o=[...new Set([...vl(t),...vl(n)])],a={};for(const s of o)a[s]=n[s]!==void 0?n[s]:t[s];return a},vg=_n({a11y:{type:Boolean,default:!0},locale:{type:at(Object)},size:qg,button:{type:at(Object)},experimentalFeatures:{type:at(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:at(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Jg}),ve={};e.defineComponent({name:"ElConfigProvider",props:vg,setup(t,{slots:n}){e.watch(()=>t.message,a=>{Object.assign(ve,a??{})},{immediate:!0,deep:!0});const o=mr(t);return()=>e.renderSlot(n,"default",{config:o==null?void 0:o.value})}});var ta=(t,n)=>{const o=t.__vccOpts||t;for(const[a,s]of n)o[a]=s;return o};const ey=_n({size:{type:at([Number,String])},color:{type:String}}),ty=e.defineComponent({name:"ElIcon",inheritAttrs:!1}),ny=e.defineComponent({...ty,props:ey,setup(t){const n=t,o=ea("icon"),a=e.computed(()=>{const{size:s,color:l}=n;return!s&&!l?{}:{fontSize:Dg(s)?void 0:vo(s),"--color":l}});return(s,l)=>(e.openBlock(),e.createElementBlock("i",e.mergeProps({class:e.unref(o).b(),style:e.unref(a)},s.$attrs),[e.renderSlot(s.$slots,"default")],16))}});var oy=ta(ny,[["__file","icon.vue"]]);const hr=or(oy),ay=_n({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:at([String,Object,Array])},offset:{type:at(Array),default:[0,0]},badgeClass:{type:String}}),sy=e.defineComponent({name:"ElBadge"}),ly=e.defineComponent({...sy,props:ay,setup(t,{expose:n}){const o=t,a=ea("badge"),s=e.computed(()=>o.isDot?"":At(o.value)&&At(o.max)?o.max<o.value?`${o.max}+`:o.value===0&&!o.showZero?"":`${o.value}`:`${o.value}`),l=e.computed(()=>{var r,i,c,p,d;return[{backgroundColor:o.color,marginRight:vo(-((i=(r=o.offset)==null?void 0:r[0])!=null?i:0)),marginTop:vo((p=(c=o.offset)==null?void 0:c[1])!=null?p:0)},(d=o.badgeStyle)!=null?d:{}]});return n({content:s}),(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a).b())},[e.renderSlot(r.$slots,"default"),e.createVNode(e.Transition,{name:`${e.unref(a).namespace.value}-zoom-in-center`,persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("sup",{class:e.normalizeClass([e.unref(a).e("content"),e.unref(a).em("content",r.type),e.unref(a).is("fixed",!!r.$slots.default),e.unref(a).is("dot",r.isDot),r.badgeClass]),style:e.normalizeStyle(e.unref(l)),textContent:e.toDisplayString(e.unref(s))},null,14,["textContent"]),[[e.vShow,!r.hidden&&(e.unref(s)||r.isDot)]])]),_:1},8,["name"])],2))}});var ry=ta(ly,[["__file","badge.vue"]]);const iy=or(ry),ur=["success","info","warning","error"],Ue=Mg({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Kt?document.body:void 0}),cy=_n({customClass:{type:String,default:Ue.customClass},center:{type:Boolean,default:Ue.center},dangerouslyUseHTMLString:{type:Boolean,default:Ue.dangerouslyUseHTMLString},duration:{type:Number,default:Ue.duration},icon:{type:Lg,default:Ue.icon},id:{type:String,default:Ue.id},message:{type:at([String,Object,Function]),default:Ue.message},onClose:{type:at(Function),default:Ue.onClose},showClose:{type:Boolean,default:Ue.showClose},type:{type:String,values:ur,default:Ue.type},plain:{type:Boolean,default:Ue.plain},offset:{type:Number,default:Ue.offset},zIndex:{type:Number,default:Ue.zIndex},grouping:{type:Boolean,default:Ue.grouping},repeatNum:{type:Number,default:Ue.repeatNum}}),dy={destroy:()=>!0},et=e.shallowReactive([]),py=t=>{const n=et.findIndex(s=>s.id===t),o=et[n];let a;return n>0&&(a=et[n-1]),{current:o,prev:a}},fy=t=>{const{prev:n}=py(t);return n?n.vm.exposed.bottom.value:0},my=(t,n)=>et.findIndex(a=>a.id===t)>0?16:n,hy=e.defineComponent({name:"ElMessage"}),uy=e.defineComponent({...hy,props:cy,emits:dy,setup(t,{expose:n}){const o=t,{Close:a}=Fg,{ns:s,zIndex:l}=Zg("message"),{currentZIndex:r,nextZIndex:i}=l,c=e.ref(),p=e.ref(!1),d=e.ref(0);let f;const m=e.computed(()=>o.type?o.type==="error"?"danger":o.type:"info"),_=e.computed(()=>{const h=o.type;return{[s.bm("icon",h)]:h&&nr[h]}}),k=e.computed(()=>o.icon||nr[o.type]||""),u=e.computed(()=>fy(o.id)),N=e.computed(()=>my(o.id,o.offset)+u.value),x=e.computed(()=>d.value+N.value),E=e.computed(()=>({top:`${N.value}px`,zIndex:r.value}));function b(){o.duration!==0&&({stop:f}=Ju(()=>{V()},o.duration))}function S(){f==null||f()}function V(){p.value=!1}function $({code:h}){h===Rg.esc&&V()}return e.onMounted(()=>{b(),i(),p.value=!0}),e.watch(()=>o.repeatNum,()=>{S(),b()}),Zu(document,"keydown",$),n_(c,()=>{d.value=c.value.getBoundingClientRect().height}),n({visible:p,bottom:x,close:V}),(h,g)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(s).b("fade"),onBeforeLeave:h.onClose,onAfterLeave:C=>h.$emit("destroy"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:h.id,ref_key:"messageRef",ref:c,class:e.normalizeClass([e.unref(s).b(),{[e.unref(s).m(h.type)]:h.type},e.unref(s).is("center",h.center),e.unref(s).is("closable",h.showClose),e.unref(s).is("plain",h.plain),h.customClass]),style:e.normalizeStyle(e.unref(E)),role:"alert",onMouseenter:S,onMouseleave:b},[h.repeatNum>1?(e.openBlock(),e.createBlock(e.unref(iy),{key:0,value:h.repeatNum,type:e.unref(m),class:e.normalizeClass(e.unref(s).e("badge"))},null,8,["value","type","class"])):e.createCommentVNode("v-if",!0),e.unref(k)?(e.openBlock(),e.createBlock(e.unref(hr),{key:1,class:e.normalizeClass([e.unref(s).e("icon"),e.unref(_)])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(k))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.renderSlot(h.$slots,"default",{},()=>[h.dangerouslyUseHTMLString?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),e.createElementVNode("p",{class:e.normalizeClass(e.unref(s).e("content")),innerHTML:h.message},null,10,["innerHTML"])],2112)):(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(s).e("content"))},e.toDisplayString(h.message),3))]),h.showClose?(e.openBlock(),e.createBlock(e.unref(hr),{key:2,class:e.normalizeClass(e.unref(s).e("closeBtn")),onClick:e.withModifiers(V,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(a))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],46,["id"]),[[e.vShow,p.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var _y=ta(uy,[["__file","message.vue"]]);let gy=1;const _r=t=>{const n=!t||mn(t)||e.isVNode(t)||Yn(t)?{message:t}:t,o={...Ue,...n};if(!o.appendTo)o.appendTo=document.body;else if(mn(o.appendTo)){let a=document.querySelector(o.appendTo);Vg(a)||(Kn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),o.appendTo=a}return Ql(ve.grouping)&&!o.grouping&&(o.grouping=ve.grouping),At(ve.duration)&&o.duration===3e3&&(o.duration=ve.duration),At(ve.offset)&&o.offset===16&&(o.offset=ve.offset),Ql(ve.showClose)&&!o.showClose&&(o.showClose=ve.showClose),o},yy=t=>{const n=et.indexOf(t);if(n===-1)return;et.splice(n,1);const{handler:o}=t;o.close()},xy=({appendTo:t,...n},o)=>{const a=`message_${gy++}`,s=n.onClose,l=document.createElement("div"),r={...n,id:a,onClose:()=>{s==null||s(),yy(d)},onDestroy:()=>{e.render(null,l)}},i=e.createVNode(_y,r,Yn(r.message)||e.isVNode(r.message)?{default:Yn(r.message)?r.message:()=>r.message}:null);i.appContext=o||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=_r(t);if(o.grouping&&et.length){const s=et.find(({vnode:l})=>{var r;return((r=l.props)==null?void 0:r.message)===o.message});if(s)return s.props.repeatNum+=1,s.props.type=o.type,s.handler}if(At(ve.max)&&et.length>=ve.max)return{close:()=>{}};const a=xy(o,n);return et.push(a),a.handler};ur.forEach(t=>{Zt[t]=(n={},o)=>{const a=_r(n);return Zt({...a,type:t},o)}});function ky(t){for(const n of et)(!t||t===n.props.type)&&n.handler.close()}Zt.closeAll=ky,Zt._context=null;const Se=Og(Zt,"$message");function Ny({props:t}){const n=e.ref(null),o=e.ref([]),a=e.ref(1),s=e.ref(!0),l=e.ref(10),r=e.ref(0),i=e.ref(null),c=e.ref(!1),p=e.ref(!1),d=e.computed(()=>p.value||c.value),f=e.ref({lat:"",lng:""}),m=e.computed(()=>{const w=Number(f.value.lat);return w<=90&&w>=-90?w:"内容错误"}),_=e.computed(()=>{const w=Number(f.value.lng);return w<=180&&w>=-180?w:"内容错误"});function k(){m.value&&m.value!=="内容错误"&&_&&_.value!=="内容错误"&&u(f.value)}function u(w){if(w.lng&&w.lat){t.h.setView(t.map,[w.lat,w.lng],18);const D=t.h.marker(t.map,[w.lat,w.lng],{icon:'<svg aria-hidden="true" class="animation-marker" style="width: 40px; height: 60px;"><use data-v-19e5a669="" xlink:href="#icon-base-trajectory-personnel"></use></svg>',zIndexOffset:100,iconAnchor:[20,60]});t.h.markerAddTo(t.map,D),setTimeout(()=>{t.h.removeMarker(t.map,D)},3e3),b(1)}}function N(w,D){return T=>{if(!s.value)return!1;s.value=!1,setTimeout(()=>{w(T),s.value=!0},D)}}function x(){console.log("触发加载"),!c.value&&(p.value=!0,r.value++,e.nextTick(()=>{S()}))}function E(){n.value=null,f.value={lat:"",lng:""},b()}function b(w){o.value=[],r.value=1,c.value=!1,p.value=!1,a.value!==5&&e.nextTick(()=>{w!==1&&S()})}function S(){n.value&&n.value.length?a.value===1?V():a.value===4?h():a.value===6&&$():b(1)}async function V(){const w=await t.poi.placeSearch({keywords:n.value,offset:l.value,page:r.value});if(console.log(w),w){const D=w,T=[];for(let B=0;B<D.length;B++){const L=D[B];T.push({...L,id:je.buildUUID(),address:L.address||L.name,title:g(L.name)})}e.nextTick(()=>{p.value=!1,o.value.push(...T)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}async function $(){const w=await Pu({page:r.value-1,size:10,query:n.value});if(w.code===200){const D=w.data.content,T=[];if(D!=null&&D.length){for(let B=0;B<D.length;B++){const L=D[B];T.push({id:L.id,address:L.address||L.pointName,...L,title:g(L.pointName)})}e.nextTick(()=>{p.value=!1,o.value.push(...T),r.value===w.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}async function h(){const w=await Hf({page:r.value-1,size:10,query:n.value});if(w.code===200){const D=w.data.content,T=[];if(D!=null&&D.length){for(let B=0;B<D.length;B++){const L=D[B];T.push({id:L.id,address:L.address||L.companyName,...L,title:g(L.companyName)})}e.nextTick(()=>{p.value=!1,o.value.push(...T),r.value===w.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}function g(w){const D=[];for(let T=0;T<w.length;T++){const B=w[T],L=n.value.indexOf(B),j={content:w[T]};L===-1?j.type=1:j.type=2,D.push(j)}return D}function C(){if(a.value===1)return"请输入地址";if(a.value===4)return"请输入部门名称";if(a.value===6)return"请输入巡查点"}return{$t:y,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:x,resetFn:b,searchAddressTypeFn:E,placeholderFn:C,inputSearch:f,showSearchLat:m,showSearchLng:_,searchLngLat:k}}const by={key:1,style:{width:"26px",height:"26px"},class:"el-markerImgBox centerBox flex items-center justify-center overflow-hidden border border-hy-border-1 rounded-full box-border flex-shrink-0"},Cy=["src"],wy={class:"ml_10 ml-[10px]",style:{width:"calc(100% - 34px)"}},Ey={class:"title fs_14 c_fff over_one_line fw_600 text-[14px] text-hy-text-main truncate font-bold"},Sy={class:"address over_one_line fs_12 c_fff truncate text-[12px] text-hy-text-main"},Ty={class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"},Dy={class:"ml_20 ml-[20px]"},Vy=be(e.defineComponent({__name:"map-search-place-item",props:{mapJumpLocationFn:{type:Function,default:()=>null},index:{default:null},searchAddressType:{default:1},source:{default:()=>{}}},setup(t){const n=t,{mapJumpLocationFn:o,index:a,searchAddressType:s,source:l}=n;return(r,i)=>{const c=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("li",{class:"clickBox css-text-no-select cursor-pointer",onClick:i[0]||(i[0]=p=>e.unref(o)(e.unref(l)))},[e.unref(s)===1?(e.openBlock(),e.createBlock(c,{key:0,name:"base-maplocation"})):e.unref(s)===4?(e.openBlock(),e.createElementBlock("div",by,[e.createElementVNode("img",{src:e.unref(l).orgTypeIcon,class:"w-full h-full"},null,8,Cy)])):e.unref(s)===6?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle([{width:"26px",height:"26px"},{backgroundColor:e.unref(l).color}]),class:"el-markerImgBox rounded-full flex-shrink-0"},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",wy,[e.createElementVNode("div",Ey,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).title,(p,d)=>(e.openBlock(),e.createElementBlock("span",{key:d,style:e.normalizeStyle({color:p.type===2?"var(--hy-text-primary)":"var(--hy-text-secondary)"})},e.toDisplayString(p.content),5))),128))]),e.createElementVNode("div",Sy,e.toDisplayString(e.unref(l).address),1),e.createElementVNode("div",Ty,[e.createElementVNode("span",null,"经度:"+e.toDisplayString(e.unref(l).lng),1),e.createElementVNode("span",Dy,"维度:"+e.toDisplayString(e.unref(l).lat),1)])])])}}}),[["__scopeId","data-v-393b9954"]]),$y=t=>(e.pushScopeId("data-v-5856b649"),t=t(),e.popScopeId(),t),By={style:{display:"inline-block","flex-direction":"column",width:"300px"},class:"search_lightColor pos_r relative"},Iy={class:"r-f flex"},Ay={class:"flex",style:{width:"calc(100% - 42px)"}},Ly={key:1,class:"w-[58%] flex justify-between ml-[4px]"},Fy={class:"flex flex-col leading-[20px] ml-[10px]"},Oy=$y(()=>e.createElementVNode("span",{class:"text-[14px] font-[600] text-hy-text-main mb-[5px]"},"填写经纬度",-1)),Ry={class:"text-[12px] text-hy-text-secondary"},Py={class:"text-[12px] text-hy-text-secondary"},My={key:2,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},Uy={key:3,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},na=be(e.defineComponent({__name:"map-search-place",props:{map:{default:()=>null},h:{default:()=>null},poi:{default:()=>null},searchTypes:{default:()=>[{label:"地理地址",value:1},{label:"部门名称",value:4},{label:"查经纬度",value:5},{label:"查巡查点",value:6}]}},setup(t){const n=t,{$t:o,searchAddressType:a,showSearchLat:s,showSearchLng:l,inputSearch:r,searchAddressTypeFn:i,searchAddress:c,searchResultList:p,resetFn:d,loading:f,noMore:m,mapJumpLocationFn:_,placeholderFn:k,load:u,throttle:N,searchLngLat:x}=Ny({props:n});return e.onMounted(()=>{var E;a.value=(E=n.searchTypes[0])==null?void 0:E.value}),(E,b)=>{const S=e.resolveComponent("el-option"),V=e.resolveComponent("el-select"),$=e.resolveComponent("el-input"),h=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",By,[e.createElementVNode("div",Iy,[e.createElementVNode("div",Ay,[e.createVNode(V,{modelValue:e.unref(a),"onUpdate:modelValue":b[0]||(b[0]=g=>e.isRef(a)?a.value=g:null),style:{width:"38%",border:"1px solid var(--hy-border-2)","box-sizing":"border-box","border-radius":"6px","font-size":"12px"},placeholder:"请选择",onChange:e.unref(i)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.searchTypes,g=>(e.openBlock(),e.createBlock(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(k)(),onInput:b[2]||(b[2]=e.unref(N)(e.unref(d),1e3))},null,8,["modelValue","placeholder"])):(e.openBlock(),e.createElementBlock("div",Ly,[e.createVNode($,{modelValue:e.unref(r).lng,"onUpdate:modelValue":b[3]||(b[3]=g=>e.unref(r).lng=g),placeholder:"经度",class:"!w-[47.5%]",clearable:"",onInput:b[4]||(b[4]=g=>e.unref(je.onlyNumber)(e.unref(r),"lng"))},null,8,["modelValue"]),e.createVNode($,{modelValue:e.unref(r).lat,"onUpdate:modelValue":b[5]||(b[5]=g=>e.unref(r).lat=g),placeholder:"纬度",class:"!w-[47.5%]",clearable:"",onInput:b[6]||(b[6]=g=>e.unref(je.onlyNumber)(e.unref(r),"lat"))},null,8,["modelValue"])]))]),e.createElementVNode("div",{class:"searchBox centerBox cursor-pointer flex items-center justify-center",style:{"flex-shrink":"0",display:"flex"},onClick:b[7]||(b[7]=(...g)=>e.unref(d)&&e.unref(d)(...g))},[e.createVNode(h,{name:"base-search","class-name":"w-[16px] h-[16px] text-hy-text-main"})])]),e.unref(p).length?(e.openBlock(),e.createBlock(e.unref(js),{key:0,"infinite-scroll-disabled":"disabled",class:"filterContentList",style:{height:"400px","overflow-y":"auto"},"data-key":"id","data-sources":e.unref(p),"data-component":Vy,keeps:10,"extra-props":{mapJumpLocationFn:e.unref(_),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(x)&&e.unref(x)(...g))},[e.createVNode(h,{name:"base-maplocation","class-name":"w-[26px] h-[26px] ml-[10px]"}),e.createElementVNode("div",Fy,[Oy,e.createElementVNode("span",Ry,[e.createTextVNode("经度:"),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)==="内容错误"?"text-hy-danger":"")},e.toDisplayString(e.unref(l)||"请输入经度"),3)]),e.createElementVNode("span",Py,[e.createTextVNode("纬度:"),e.createElementVNode("span",{class:e.normalizeClass(e.unref(s)==="内容错误"?"text-hy-danger":"")},e.toDisplayString(e.unref(s)||"请输入纬度"),3)])])])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("p",My," 加载中... ")):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createElementBlock("p",Uy," 没有更多了 ")):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-5856b649"]]);function Qt(t=je.sessionCache.getCache("mapConfig")){function n(){if(!t){je.logger.warning("use-map","initHyMap","地图配置不能为空");return}const i=Nn.MapProviderFactory.createMapProvider(t.mapType);return new Nn.HyMap(i,t)}function o(){if(!t){je.logger.warning("use-map","initHyPoi","地图配置不能为空");return}const i=Nn.PoiProviderFactory.createMapProvider(t.mapPoiType);return new Nn.HyPoi(i,t)}let a=null,s=null;const l=!!(t.mapKey&&t.mapType);let r=[];return l&&(a=n(),s=o(),t.layersUrl&&(r=t.layersUrl.replace(/\{mapKey\}/g,t.mapKey).split(","))),{H:a,POI:s,isShowMap:l,layersUrlList:r,mapConfig:t}}function zy(t){return oe.post({url:"mapRail/findAllWithDevice",data:t,isFormData:!0})}function Wy(t){return oe.post({url:"mapRail/deleteBatch",data:t,isFormData:!0})}function jy(t){return oe.post({url:t.id?"mapRail/update":"mapRail/insert",data:t,isJson:!0})}function gr(t){return oe.post({url:"mapRail/select",data:t,isFormData:!0})}function Hy(t){const n=t.emit,{mapConfig:o,isShowMap:a,layersUrlList:s,H:l,POI:r}=Qt(),i=e.ref(null),c=e.ref(null),p=e.shallowRef(null),d=e.ref({railName:[{required:!0,message:y("pleaseEnterTheNameOfTheElectronicFence"),trigger:"blur"}]}),f=e.ref({}),m=e.ref(!0),_=e.ref(!1),k=e.ref(100),u=e.ref("fixedPoint"),N=e.ref(null),x=e.ref(!1),E=e.shallowRef(null);e.watch(()=>k.value,M=>{k.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=y("mouseClicksOnTheMapAndReleasesToEnd"):u.value==="circle"?M=y("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):M=y("mouseClicksOnTheMapAndRightClicksToEnd"),N.value=M}async function V(){const M=He.getCache("userInfo");let z=null;M!=null&&M.lng&&(M!=null&&M.lat)&&(z=[M.lat,M.lng]),(z==null?void 0:z.length)===0&&(z=null),p.value=await l.map("addElectronicFence_container",{maxZoom:o.maxZoom||18,minZoom:o.minZoom||13,zoom:o.zoom||13,center:z,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:s,layerType:o.satelliteMap}),p.value.on("complete",U=>{var R;if((R=f.value.pointList)!=null&&R.length){const Y=f.value.pointList.map(X=>({lat:X.lat,lng:X.lng}));C(Y)}}),p.value.on("left-click",U=>{D(U)})}function $(){w(),E.value&&(l.removePolygon(p.value,E.value),E.value=null)}function h(){$(),u.value!=="fixedPoint"?g():x.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=y("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):u.value==="polygon"&&(z=y("mouseClicksOnTheMapAndRightClicksToEnd")),z&&Se.success(z)}function C(M){E.value=l.polygon(p.value,M,{weight:2,color:"#2DF2FF",opacity:1,fillColor:"#2DF2FF",fillOpacity:.3}),l.fitBounds(p.value,M.map(z=>[z.lat,z.lng])),console.log(E.value),w()}function w(){p.value&&l.removePM(p.value)}function D(M){if(x.value){const z=l.searchByCircle({lat:M.latlng.lat,lng:M.latlng.lng},k.value/2);C(z),x.value=!1}}async function T(M){const z=await gr({id:M});z.code===200&&(f.value={...z.data},_.value=!0,e.nextTick(()=>{V()}))}function B(M){var z;f.value={},k.value=100,x.value=!1,$(),u.value="fixedPoint",S(),c.value&&((z=c.value)==null||z.resetFields()),M?T(M):(_.value=!0,e.nextTick(()=>{V()}))}function L(){console.log(E.value)}function j(){var z;L();let M=[];if(E.value&&(M=l.getShapeLatLngs(E.value)),(M==null?void 0:M.length)===0||!E.value)return Se.error("请完成电子围栏绘制后再进行保存操作"),!1;(z=c.value)==null||z.validate(async U=>{if(U){const R={railName:f.value.railName};R.pointList=M.map(X=>({lng:X.lng,lat:X.lat})),R.id=f.value.id||null,(await jy(R)).code===200&&(Se.success(`${y("operationSuccessful")} !`),n("on-submit"),_.value=!1)}})}function F(){n("on-close"),_.value=!1}return{addElectronicFenceContainerRef:i,formRef:c,H:l,map:p,POI:r,isShowMap:a,rules:d,form:f,valid:m,dialogVisible:_,radius:k,mouseToolName:u,tips:N,onClose:F,show:B,onSubmit:j,tipsFn:S,initMap:V,mapRailSelectFn:T,throttle:b,startDraw:h,removePolygon:$}}const Yy=t=>(e.pushScopeId("data-v-b8fbad8e"),t=t(),e.popScopeId(),t),Gy={class:"text-hy-text-main"},qy={class:"relative text-hy-text-main text-[18px] text-center p-[20px] font-bold z-[1px] bg-hy-dialog-bg-1 rounded-[12px_12px_0_0] font-[Helvetica]"},Ky={class:"dialog_body"},Xy={class:""},Jy={class:"form-label"},Zy={class:"relative flex flex-row h-[50px]"},Qy={class:"z-[1]"},vy={class:"form-label"},e1={class:"w-full flex items-center form-item"},t1={class:"form-label"},n1={class:"flex items-center form-item"},o1=Yy(()=>e.createElementVNode("span",{class:"text-sm ml-[10px] text-hy-text-secondary flex-shrink"},"M",-1)),a1={class:"flex items-center form-item"},s1={class:"text-xs text-hy-text-secondary flex items-center"},l1={class:"text-hy-main"},r1={class:"text-right mt-[10px]"},i1=be(e.defineComponent({__name:"add-electronic-fence",emits:["on-submit","on-close"],setup(t,{expose:n,emit:o}){const a=o,{addElectronicFenceContainerRef:s,formRef:l,rules:r,form:i,dialogVisible:c,radius:p,mouseToolName:d,tips:f,H:m,map:_,POI:k,isShowMap:u,onClose:N,tipsFn:x,show:E,startDraw:b,removePolygon:S,onSubmit:V}=Hy({emit:a});return n({show:E}),e.onUnmounted(()=>{m.removeMap(_.value)}),($,h)=>{const g=e.resolveComponent("svg-icon"),C=e.resolveComponent("el-input"),w=e.resolveComponent("el-form-item"),D=e.resolveComponent("el-col"),T=e.resolveComponent("el-option"),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",Gy,[e.createElementVNode("div",qy,[e.createElementVNode("span",null,e.toDisplayString(e.unref(y)("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",Ky,[e.createVNode(z,{ref_key:"formRef",ref:l,model:e.unref(i),rules:e.unref(r),"label-width":"0px","label-position":"top",class:"demo-ruleForm"},{default:e.withCtx(()=>[e.createVNode(M,{gutter:20},{default:e.withCtx(()=>[e.createVNode(D,{span:24},{default:e.withCtx(()=>[e.createVNode(w,{prop:"railName"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",Xy,e.toDisplayString(e.unref(y)("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(y)("pleaseEnterTheNameOfTheElectronicFence"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})]),_:1}),e.createVNode(D,{span:10},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",Jy,e.toDisplayString(e.unref(y)("electronicFenceRange")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",Zy,[e.createElementVNode("div",Qy,[e.unref(u)&&e.unref(_)?(e.openBlock(),e.createBlock(na,{key:0,h:e.unref(m),map:e.unref(_),poi:e.unref(k)},null,8,["h","map","poi"])):e.createCommentVNode("",!0)])])]),_:1})]),_:1}),e.createVNode(D,{span:5},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0 pl-[20px]"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",vy,e.toDisplayString(e.unref(y)("drawingMethod")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",e1,[e.createVNode(B,{modelValue:e.unref(d),"onUpdate:modelValue":h[2]||(h[2]=R=>e.isRef(d)?d.value=R:null),placeholder:e.unref(y)("pleaseSelectTheDrawingMethod"),class:"!w-full",onChange:e.unref(x)},{default:e.withCtx(()=>[e.createVNode(T,{label:e.unref(y)("fixedPointRange"),value:"fixedPoint"},null,8,["label"]),e.createVNode(T,{label:e.unref(y)("customCircle"),value:"circle"},null,8,["label"]),e.createVNode(T,{label:e.unref(y)("customPolygon"),value:"polygon"},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])])]),_:1})]),_:1}),e.unref(d)==="fixedPoint"?(e.openBlock(),e.createBlock(D,{key:0,span:3},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",t1,e.toDisplayString(e.unref(y)("rangeDistance")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",n1,[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(y)("unitMeter"),clearable:""},null,8,["modelValue","placeholder"]),o1])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(D,{span:6},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(y)("operationButton")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",a1,[e.createVNode(L,{class:"button_function",onClick:e.unref(b)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("startDrawing")),1)]),_:1},8,["onClick"]),e.createVNode(L,{type:"danger",class:"",onClick:e.unref(S)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("clearDrawing")),1)]),_:1},8,["onClick"])])]),_:1})]),_:1}),e.createVNode(D,{span:24},{default:e.withCtx(()=>[e.createVNode(w,null,{default:e.withCtx(()=>[e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:1,id:"addElectronicFence_container",ref_key:"addElectronicFenceContainerRef",ref:s,class:"z-[0]"},null,512)):(e.openBlock(),e.createBlock(Gt,{key:0,class:"!h-[400px] rounded"})),e.createElementVNode("div",s1,[e.createVNode(F,{class:"text-sm"},{default:e.withCtx(()=>[e.createVNode(j)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(y)("afterClickingToStartDrawing"))+" ",1),e.createElementVNode("span",l1,e.toDisplayString(e.unref(f)),1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"]),e.createElementVNode("div",r1,[e.createVNode(L,{type:"primary",class:"w-[100px]",onClick:e.unref(N)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("close")),1)]),_:1},8,["onClick"]),e.createVNode(L,{class:"w-[100px]",onClick:e.unref(V)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("save")),1)]),_:1},8,["onClick"])])])])]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-b8fbad8e"]]);function c1(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(null),s=e.ref(null),l=e.ref({groupId:null,waterPointTypeId:null});function r(f,m){n("on-map-display-fn",{id:f,type:!m})}const i=e.computed(()=>f=>{var m;return(m=o.value.mapDisplayList)!=null&&m.length?o.value.mapDisplayList.findIndex(k=>k===f)!==-1:!1});function c(f){var m;(m=a.value)==null||m.show(f)}function p(){var f;(f=s.value)==null||f.getTableData(),n("on-get-data")}function d(f){mt({tipsTitle:y("deleteElectronicFence"),tipsContent:`<div><p>${y("confirmToDeleteTheCurrentDeletedElectronicFence")}?</p></div>`,submitBtnText:y("confirm-0")},async()=>{(await Wy({ids:f})).code===200&&(n("on-delete",f),pe.ElMessage.success(y("deletedSuccessfully")),p())})}return{addElectronicFenceRef:a,AppTableRef:s,requestParams:l,changeFn:r,mapDisplayFn:i,addElectronicFenceShow:c,getData:p,deleteShow:d}}const d1={class:"w-full h-full"},p1={class:"flex items-center justify-center"},f1={class:"ml-[6px]"},m1={class:"flex"},h1=e.defineComponent({__name:"electronic-fence",props:{initParams:{default:()=>{}},mapDisplayList:{default:()=>[]},tableColumns:{default:()=>[{label:y("electronicFenceName"),prop:"railName"},{label:y("operation"),slotName:"operator",width:"200px"}]}},emits:["on-map-display-fn","on-get-data","on-delete"],setup(t,{emit:n}){const o=t,a=n,{addElectronicFenceRef:s,AppTableRef:l,requestParams:r,changeFn:i,mapDisplayFn:c,addElectronicFenceShow:p,getData:d,deleteShow:f}=c1({emit:a,props:o});return e.onMounted(()=>{r.value={...o.initParams}}),(m,_)=>{const k=e.resolveComponent("svg-icon"),u=e.resolveComponent("el-button"),N=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock("div",d1,[e.createVNode(Yt,{ref_key:"AppTableRef",ref:l,height:"100%","show-footer":!0,"search-arr":[{label:e.unref(y)("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]=x=>e.unref(p)())},{default:e.withCtx(()=>[e.createElementVNode("div",p1,[e.createVNode(k,{width:"16",height:"16",name:"base-add-3"}),e.createElementVNode("span",f1,e.toDisplayString(e.unref(y)("addElectronicFence")),1)])]),_:1}),e.renderSlot(m.$slots,"operator-left-box")])]),mapDisplay:e.withCtx(({row:x})=>[e.createElementVNode("div",null,[e.createVNode(N,{class:"switch_custom switch_width_60","model-value":e.unref(c)(x.id),"active-text":e.unref(y)("show"),"inactive-text":e.unref(y)("hide"),"inline-prompt":"","active-color":"#5AB95F","inactive-color":"var(--hy-dialog-bg-1)",onClick:E=>e.unref(i)(x.id,e.unref(c)(x.id))},null,8,["model-value","active-text","inactive-text","onClick"])])]),isDefault:e.withCtx(({row:x})=>[e.renderSlot(m.$slots,"isDefault",{row:x})]),operator:e.withCtx(({row:x})=>[e.createElementVNode("div",m1,[e.createVNode(Me,{name:"icon-edit",tips:e.unref(y)("edit"),onClick:E=>e.unref(p)(x.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(y)("delete"),onClick:E=>e.unref(f)(x.id)},null,8,["tips","onClick"])])]),_:3},8,["search-arr","column-list","search-form"]),e.createVNode(i1,{ref_key:"addElectronicFenceRef",ref:s,onOnSubmit:e.unref(d)},null,8,["onOnSubmit"])])}}});var Ke=(t=>(t.NO_LOAD="NO_LOAD",t.IS_LOAD="IS_LOAD",t.PLAYING="PLAYING",t.PAUSE="PAUSE",t.PLAY_END="PLAY_END",t.CAN_NOT_PLAY="CAN_NOT_PLAY",t))(Ke||{});function u1(t){return oe.post({url:"/mediaFile/location/findAll",data:{mediaFileId:t},isFormData:!0})}function _1(t){return oe.get({url:t,xAmzAcl:!0,isFileUpload:!0,fileType:""})}function yr(t){return oe.post({url:"/mediaFile/getFileScore",data:{id:t},isFormData:!0})}function g1(t){return oe.post({url:"/mediaFile/fileScore",data:t,isJson:!0})}function y1(t){return oe.post({url:"/mediaFile/remark/findAll",data:t,isFormData:!0})}function x1(t){return oe.post({url:"/mediaFile/saveRemark",data:t,isJson:!0})}function xr(t){return oe.post({url:"/mediaFile/remark/deleteBatch",data:t,isFormData:!0})}function k1(t){return oe.post({url:"/mediaFile/point/findAll",data:t,isFormData:!0})}function N1(t){return oe.post({url:"/mediaFile/savePoint",data:t,isJson:!0})}function b1(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref([{value:.5,label:"0.5 X"},{value:1,label:"1.0 X"},{value:1.5,label:"1.5 X"},{value:2,label:"2.0 X"},{value:3,label:"3.0 X"}]),s=e.ref(1),l=e.ref([{value:1,label:y("stopAfterPlayback"),svgName:"media-center-stop-playing"},{value:2,label:y("continuousPlayback"),svgName:"media-center-autoplay"},{value:3,label:y("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),k=e.ref(Ke.NO_LOAD),u=e.ref(100),N=e.computed(()=>k.value!==Ke.NO_LOAD&&k.value!==Ke.CAN_NOT_PLAY),x=e.computed(()=>o.value.playList.find(U=>U.id===d.value.id));function E(U,R){return new Promise((Y,X)=>{const P=new XMLHttpRequest;P.open("GET",R),P.responseType="blob",P.onload=function(){const v=P.response;Y({name:U,blob:v})},P.onerror=function(){console.error("could not download file")},P.send()})}function b(){d.value&&d.value.id&&(pe.ElMessage.warning(y("startDownloading")),E(d.value.fileName,d.value.filePath).then(U=>{const R=U.blob,Y=new FileReader;Y.readAsDataURL(R),Y.onload=X=>{const P=URL.createObjectURL(new Blob([R])),v=document.createElement("a");document.body.appendChild(v),v.href=P,v.download=U.name,v.target="_blank",v.click(),v.remove()}}))}function S(U){U===3?r.value=1:r.value=U+1}function V(U){s.value=U;const R=document.querySelector("#audio-el");R&&R.playbackRate&&(R.playbackRate=U)}function $(){i.value=document.querySelector("#audio-el"),i.value.addEventListener("canplay",()=>{z(Ke.IS_LOAD),f.value=Math.floor(i.value.duration),n("can-play",f.value)}),i.value.addEventListener("play",()=>{i.value.playbackRate=s.value,z(Ke.PLAYING),p.value&&x.value&&n("play-start",{audioUrl:p.value,playItem:x.value})}),i.value.addEventListener("pause",()=>{z(Ke.PAUSE)}),i.value.addEventListener("volumechange",()=>{u.value=i.value.volume*100}),i.value.addEventListener("ended",()=>{z(Ke.PLAY_END),r.value===2?g().then(()=>{n("play-end")}):r.value===3&&(i.value.load(),i.value.play(),n("play-end"))}),i.value.addEventListener("timeupdate",()=>{z(Ke.PLAYING),!_.value&&i.value&&(m.value=Math.floor(i.value.currentTime),c.value=m.value/f.value*100,n("on-time-update",m.value))},!1)}function h(){return o.value.playList.findIndex(U=>U.id===d.value.id)}function g(){return new Promise((U,R)=>{const Y=h();if(Y!==o.value.playList.length-1){const X=o.value.playList[Y+1];w(X.filePath,X),U({code:200})}else pe.ElMessage.warning(y("currentIsTheLastItem"))})}function C(){const U=h();if(U>0&&U!==o.value.playList.length){const R=o.value.playList[U-1];w(R.filePath,R)}else pe.ElMessage.warning(y("currentIsTheFirstItem"))}function w(U,R){if(R)R.id!==d.value.id&&(p.value="",d.value=R,i.value.src=U,o.value.getAudioContextType?M(R.id):(p.value=U,i.value.play()));else{if(p.value==="")return!1;i.value.play()}}function D(){i.value.play()}function T(){i.value.pause()}function B(){m.value=f.value*(c.value/100),i.value.currentTime=m.value,_.value=!1}function L(){i.value.volume=u.value/100}function j(U,R){return U=Number.parseFloat(`${U}`),R=Number.parseFloat(`${R}`),Number.isNaN(U)||Number.isNaN(R)||R<=0?0:Math.round(U/R*1e4)/100}function F(U){i.value.currentTime=U}async function M(U){const R=await _1(`/mediaFile/redirect?mediaFileId=${U}`);i.value.src=URL.createObjectURL(R),p.value=URL.createObjectURL(R),i.value.play()}function z(U){k.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:k,volumeValue:u,downloadFn:b,playRulesFn:S,speedFn:V,initPlayer:$,playNext:g,playPrevious:C,playAudio:w,resumePlay:D,pauseAudio:T,getNowWh:B,changeVolume:L,getPercent:j,jumpDuration:F,canPlay:N}}const C1=t=>(e.pushScopeId("data-v-27a5006a"),t=t(),e.popScopeId(),t),w1={class:"w-full flex items-center box-border"},E1=C1(()=>e.createElementVNode("audio",{id:"audio-el"},null,-1)),S1={class:"flex-grow w-0 mx-3 progress-box"},T1={class:"flex justify-between items-center text-xs text-hy-text-secondary mt-1"},D1={class:"flex-shrink-0 flex"},V1={class:"flex items-center justify-center p-[10px_0]"},$1={class:"text-hy-text-secondary text-xs w-full"},B1=["onClick"],I1={class:"flex items-center click-box"},A1={class:"border h-[24px] box-border mr-1 border-hy-border-2 rounded text-xs text-hy-text-secondary px-2 flex items-center justify-center"},L1={class:"click-box"},F1={key:1},O1=["onClick"],R1={class:"click-box mx-1"},P1={class:"flex items-center justify-center"},M1={class:"click-box click-box"},kr=be(e.defineComponent({__name:"audio-player",props:{downloadFilesType:{type:Boolean,default:!0},playRulesType:{type:Boolean,default:!0},getAudioContextType:{type:Boolean,default:!0},playList:{default:()=>[]}},emits:["can-play","play-start","play-end","play-end","on-time-update","on-audio-state"],setup(t,{expose:n,emit:o}){const a=t,s=o,{isDrop:l,speedList:r,speed:i,playRuleslist:c,playRules:p,audioEl:d,value:f,audioUrl:m,totalTime:_,curTime:k,audioState:u,volumeValue:N,downloadFn:x,playRulesFn:E,speedFn:b,initPlayer:S,playNext:V,playPrevious:$,playAudio:h,resumePlay:g,pauseAudio:C,getNowWh:w,changeVolume:D,getPercent:T,jumpDuration:B,canPlay:L}=b1({emit:s,props:a});return e.onBeforeUnmount(()=>{d.value=null}),e.onMounted(()=>{E(3),b(1),S()}),n({jumpDuration:B,resumePlay:g,pauseAudio:C,playAudio:h}),(j,F)=>{const M=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-popover"),U=e.resolveComponent("el-tooltip"),R=e.resolveComponent("el-slider");return e.openBlock(),e.createElementBlock("div",w1,[E1,e.createElementVNode("div",null,[e.createElementVNode("span",{onClick:F[0]||(F[0]=(...Y)=>e.unref($)&&e.unref($)(...Y))},[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-previous-btn"})]),e.unref(u)!==e.unref(Ke).PLAYING&&e.unref(L)?(e.openBlock(),e.createElementBlock("span",{key:0,class:"mx-1",onClick:F[1]||(F[1]=Y=>e.unref(h)(e.unref(m)))},[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-play-btn"})])):e.createCommentVNode("",!0),e.unref(u)===e.unref(Ke).PLAYING?(e.openBlock(),e.createElementBlock("span",{key:1,class:"mx-1",onClick:F[2]||(F[2]=(...Y)=>e.unref(C)&&e.unref(C)(...Y))},[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-pause-btn"})])):e.createCommentVNode("",!0),e.createElementVNode("span",{onClick:F[3]||(F[3]=(...Y)=>e.unref(V)&&e.unref(V)(...Y))},[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-next-btn"})])]),e.createElementVNode("div",S1,[e.withDirectives(e.createElementVNode("input",{id:"progress",ref:"progressRef","onUpdate:modelValue":F[4]||(F[4]=Y=>e.isRef(f)?f.value=Y:null),max:"100",style:e.normalizeStyle({background:`linear-gradient(to right, var(--hy-main) ${e.unref(T)(e.unref(f),100)}%, var(--hy-main-alpha-50) ${e.unref(T)(e.unref(f),100)}% `}),type:"range",class:"relative w-full",onMouseup:F[5]||(F[5]=Y=>e.unref(w)()),onMousedown:F[6]||(F[6]=Y=>l.value=!0)},null,36),[[e.vModelText,e.unref(f)]]),e.createElementVNode("div",T1,[e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(k)))+'"',1),e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(_)))+'"',1)])]),e.createElementVNode("div",D1,[e.createVNode(z,{placement:"top",width:"62px","popper-class":"!p-0",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",I1,[e.createElementVNode("div",A1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(Y,X)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:X},e.toDisplayString(Y.value===1?e.unref(y)("multiples"):Y.label),1)),[[e.vShow,Y.value===e.unref(i)]])),128))])])]),default:e.withCtx(()=>[e.createElementVNode("div",V1,[e.createElementVNode("ul",$1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(Y,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,B1))),128))])])]),_:1}),j.downloadFilesType?(e.openBlock(),e.createBlock(U,{key:0,effect:"dark",content:e.unref(y)("downloadFile"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",L1,[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-down-btn",onClick:e.unref(x)},null,8,["onClick"])])]),_:1},8,["content"])):e.createCommentVNode("",!0),j.playRulesType?(e.openBlock(),e.createElementBlock("span",F1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(Y,X)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:`${X}playRuleslist`,onClick:P=>e.unref(E)(Y.value)},[e.createVNode(U,{effect:"dark",content:Y.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",R1,[e.createVNode(M,{width:"26",height:"26",name:Y.svgName},null,8,["name"])])]),_:2},1032,["content"])],8,O1)),[[e.vShow,e.unref(p)===Y.value]])),128))])):e.createCommentVNode("",!0),e.createVNode(z,{"open-delay":500,placement:"top",trigger:"click",width:"40"},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(U,{effect:"dark",content:e.unref(y)("adjustPlaybackVolume"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",M1,[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-volumn"})])]),_:1},8,["content"])])]),default:e.withCtx(()=>[e.createElementVNode("div",P1,[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 U1(t){const n=t.emit,o=e.ref(t.props),a=e.ref([{value:.5,label:"0.5 X"},{value:1,label:"1.0 X"},{value:1.5,label:"1.5 X"},{value:2,label:"2.0 X"},{value:3,label:"3.0 X"}]),s=e.ref(1),l=e.ref([{value:1,label:y("stopAfterPlayback"),svgName:"media-center-stop-playing"},{value:2,label:y("continuousPlayback"),svgName:"media-center-autoplay"},{value:3,label:y("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),k=e.ref(!1),u=e.ref(!1),N=e.ref(100);e.ref(!1);const x=e.computed(()=>f.value!=="NO_LOAD"&&f.value!=="CAN_NOT_PLAY"),E=e.computed(()=>o.value.playList.find(X=>X.id===i.value.id));function b(X){X===3?r.value=1:r.value=X+1}function S(X){s.value=X;const P=document.getElementById("videoPlayer");P&&(P.playbackRate=X)}function V(){return o.value.playList.findIndex(X=>X.id===i.value.id)}function $(){const X=V();if(X!==o.value.playList.length-1){const P=o.value.playList[X+1];g(P.filePath,P)}else pe.ElMessage.warning(y("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(y("currentIsTheFirstItem"))}function g(X,P){if(P)P.id!==i.value.id&&(i.value=P,c.value=X,d.value.src=X);else if(c.value==="")return!1;d.value.play(),f.value="PLAYING"}function C(X,P){return new Promise((v,Te)=>{const he=new XMLHttpRequest;he.open("GET",P),he.responseType="blob",he.onload=function(){const ke=he.response;v({name:X,blob:ke})},he.onerror=function(){console.error("could not download file")},he.send()})}function w(){i.value&&i.value.id&&(pe.ElMessage.warning(y("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,k.value=!1}function B(X,P){return X=Number.parseFloat(X),P=Number.parseFloat(P),Number.isNaN(X)||Number.isNaN(P)||P<=0?0:Math.round(X/P*1e4)/100}function L(){d.value.play()}function j(){d.value&&d.value.pause(),f.value="PAUSE"}function F(){d.value=document.querySelector("#videoPlayer"),d.value.addEventListener("canplay",()=>{f.value="IS_LOAD",_.value=Math.floor(d.value.duration),n("can-play",_.value)}),d.value.addEventListener("play",()=>{d.value.playbackRate=s.value,f.value="PLAYING",c.value&&E.value&&n("play-start",{audioUrl:c.value,playItem:E.value})}),d.value.addEventListener("pause",()=>{f.value="PAUSE"}),d.value.addEventListener("ended",()=>{f.value="PLAY_END",r.value===2?$():r.value===3&&(d.value.load(),d.value.play()),n("play-end")}),d.value.addEventListener("timeupdate",()=>{f.value="PLAYING",k.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:x,speedList:a,speed:s,playRuleslist:l,playRules:r,videoUrl:c,value:p,videoEl:d,videoState:f,curTime:m,totalTime:_,isDrop:k,isFullScreen:u,volumeValue:N,playRulesFn:b,speedFn:S,playNext:$,playPrevious:h,playVideo:g,downloadFn:w,changeVolume:D,getNowWh:T,getPercent:B,resumePlay:L,pauseVideo:j,initVideo:F,initFullScreenEvent:M,jumpDuration:z,clickFullScreen:U}}const z1=t=>(e.pushScopeId("data-v-d0d3957a"),t=t(),e.popScopeId(),t),W1={class:"flex-grow h-0 relative"},j1={key:0,class:"absolute right-[10px] top-[4px] z-[2]"},H1={key:0,class:"my-2 click-box"},Y1={key:1},G1=["onClick"],q1={class:"click-box"},K1=z1(()=>e.createElementVNode("video",{id:"videoPlayer",width:"100%",header:"100%"},[e.createElementVNode("source",{type:"video/mp4"})],-1)),X1={class:"progress-box px-2"},J1={class:"my-2 flex items-center justify-between px-2 relative"},Z1={class:"text-xs text-hy-text-secondary"},Q1={key:0,class:"mx-2 flex items-center justify-center absolute left-1/2 -translate-x-1/2"},v1={class:"flex items-center"},ex={class:"flex items-center justify-center p-[10px_0]"},tx={class:"text-hy-text-secondary text-xs w-full"},nx=["onClick"],ox={class:"flex items-center click-box"},ax={class:"border h-[24px] box-border border-hy-border-2 rounded text-xs text-hy-text-secondary px-2 flex items-center justify-center"},sx={class:"flex items-center justify-center"},lx={class:"mx-2"},rx={class:"click-box"},ix={class:"text-hy-info"},oa=be(e.defineComponent({__name:"video-player",props:{downloadFilesType:{type:Boolean,default:!0},playRulesType:{type:Boolean,default:!0},playList:{}},emits:["can-play","play-start","play-end","on-time-update"],setup(t,{expose:n,emit:o}){const a=t,s=o,{canPlay:l,speedList:r,speed:i,playRuleslist:c,playRules:p,videoUrl:d,value:f,videoEl:m,videoState:_,curTime:k,totalTime:u,isDrop:N,isFullScreen:x,volumeValue:E,playRulesFn:b,speedFn:S,playNext:V,playPrevious:$,playVideo:h,downloadFn:g,changeVolume:C,getNowWh:w,getPercent:D,resumePlay:T,pauseVideo:B,initVideo:L,initFullScreenEvent:j,jumpDuration:F,clickFullScreen:M}=U1({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(x)},"w-full h-full rounded border border-hy-border-2 flex flex-col bg-hy-page-bg"])},[e.createElementVNode("div",W1,[z.downloadFilesType||z.playRulesType?(e.openBlock(),e.createElementBlock("div",j1,[z.downloadFilesType?(e.openBlock(),e.createElementBlock("div",H1,[e.createVNode(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",Y1,[(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",q1,[e.createVNode(R,{width:"26",height:"26",name:v.svgName},null,8,["name"])])]),_:2},1032,["content"])],8,G1)),[[e.vShow,e.unref(p)===v.value]])),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),K1]),e.createElementVNode("div",X1,[e.withDirectives(e.createElementVNode("input",{id:"progress",ref:"progressRef","onUpdate:modelValue":U[0]||(U[0]=v=>e.isRef(f)?f.value=v:null),max:"100",style:e.normalizeStyle({background:`linear-gradient(to right, var(--hy-main) ${e.unref(D)(e.unref(f),100)}%, var(--hy-main-alpha-50) ${e.unref(D)(e.unref(f),100)}% `}),type:"range",class:"relative w-full",onMouseup:U[1]||(U[1]=v=>e.unref(w)()),onMousedown:U[2]||(U[2]=v=>N.value=!0)},null,36),[[e.vModelText,e.unref(f)]])]),e.createElementVNode("div",J1,[e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",Z1,[e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(k)))+'"',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",Q1,[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",v1,[e.createVNode(X,{placement:"top",width:"62px","popper-class":"!p-0",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",ox,[e.createElementVNode("div",ax,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(v,Te)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:Te},e.toDisplayString(v.value===1?e.unref(y)("multiples"):v.label),1)),[[e.vShow,v.value===e.unref(i)]])),128))])])]),default:e.withCtx(()=>[e.createElementVNode("div",ex,[e.createElementVNode("ul",tx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(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,nx))),128))])])]),_:1}),e.createVNode(X,{placement:"top",trigger:"click",width:"40px"},{reference:e.withCtx(()=>[e.createElementVNode("div",lx,[e.createVNode(Y,{effect:"dark",content:e.unref(y)("adjustPlaybackVolume"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",rx,[e.createVNode(R,{width:"24",height:"24",name:"media-center-audio-volumn"})])]),_:1},8,["content"])])]),default:e.withCtx(()=>[e.createElementVNode("div",sx,[e.createVNode(P,{modelValue:e.unref(E),"onUpdate:modelValue":U[7]||(U[7]=v=>e.isRef(E)?E.value=v:null),class:"volume-slider",vertical:"",height:"105px",onInput:U[8]||(U[8]=v=>e.unref(C)())},null,8,["modelValue"])])]),_:1}),e.createVNode(Y,{class:"item click-box",effect:"dark",content:e.unref(y)("fullScreenSwitch"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",ix,[e.createVNode(R,{width:"18",height:"18",class:"click-box",name:e.unref(x)?"media-center-audio-reduce":"media-center-audio-enlarge",onClick:e.unref(M)},null,8,["name","onClick"])])]),_:1},8,["content"])])])],2)}}}),[["__scopeId","data-v-d0d3957a"]]),cx={beforeMount(t,n,o){var c;const a=(c=n.value)==null?void 0:c.change,s=t.querySelector(".hy-dialog_header"),l=t;s.style.cssText+=";cursor:move;";const r=function(){return window.document.currentStyle?(p,d)=>p.currentStyle[d]:(p,d)=>getComputedStyle(p,!1)[d]}(),i=p=>{const d=p.clientX-s.offsetLeft,f=p.clientY-s.offsetTop,m=l.offsetWidth,_=l.offsetHeight,k=document.body.clientWidth,u=document.body.clientHeight,N=l.offsetLeft,x=k-l.offsetLeft-m,E=l.offsetTop,b=u-l.offsetTop-_;let S=r(l,"left"),V=r(l,"top"),$=null,h=null,g=null,C=null;S.includes("%")?(S=+document.body.clientWidth*(+S.replace(/%/g,"")/100),V=+document.body.clientHeight*(+V.replace(/%/g,"")/100)):(S=+S.replace(/\px/g,""),V=+V.replace(/\px/g,""));const w=function(B){let L=B.clientX-d,j=B.clientY-f;-L>N?(L=-N,$="left"):L>x?(L=x,$="right"):$=null,-j>E?(j=-E,g="top"):j>b?(j=b,g="bottom"):g=null,h=L+S,C=j+V,l.style.cssText+=`;left:${h}px;top:${C}px;`},D=function(B){a&&a({left:h,leftType:$,top:C,topType:g}),document.onmousemove=null,document.onmouseup=null};document.onmousemove=w,document.touchmove=w,document.onmouseup=D,document.touchend=D;const T=je.sessionCache.getCache("plus-draggable")||{};Number.parseInt(t.style.zIndex)!==Number.parseInt(T.index)&&(T.index+=1,t.style.zIndex=T.index,je.sessionCache.setCache("plus-draggable",T))};s.onmousedown=i,s.touchstart=i},mounted:t=>{const n=je.sessionCache.getCache("plus-draggable")||{};n.index=n.index?n.index+1:1e3,n.num=n.num?n.num+1:1,t.style.zIndex=n.index,je.sessionCache.setCache("plus-draggable",n)},beforeUnmount:()=>{const t=je.sessionCache.getCache("plus-draggable")||{};t.num=t.num-1,t.num===0&&(t.index=1e3),je.sessionCache.setCache("plus-draggable",t)}},dx={class:"relative w-full h-full"},px=e.createElementVNode("div",{class:"w-full h-full relative z-[1]"},[e.createElementVNode("div",{id:"amap-test",class:"w-full h-full"})],-1),Nr=e.defineComponent({__name:"map-file-track",setup(t,{expose:n}){const o=e.shallowRef(),a=e.shallowRef(),{mapConfig:s,isShowMap:l,layersUrlList:r,H:i}=Qt(),c=e.ref({}),p=e.reactive(je.sessionCache.getCache("userInfo")),d=e.reactive(je.sessionCache.getCache("colorObject")),f=e.ref([]);e.onMounted(async()=>{l&&e.nextTick(()=>{m()})});async function m(){let u=[0,0];p.lng&&p.lat&&(u=[p.lat,p.lng]),o.value=await i.map("amap-test",{maxZoom:s.maxZoom||18,minZoom:s.minZoom||13,zoom:s.zoom||13,center:u,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:r,layerType:s.satelliteMap}),o.value.on("complete",N=>_())}function _(){if(!l||f.value.length===0)return;const u=f.value.map(N=>[N.lat,N.lng]);a.value=i.trackPlayer(o.value,u,{speed:600,weight:6,passedLineColor:d.success||"#9AF454",notPassedLineColor:d.theme||"#A7DDFC",markerRotation:!0,markerRotationOffset:130,iconUrl:"https://webapi.amap.com/images/car.png",iconAnchor:[27,10]}),i.fitBounds(o.value,u)}async function k(u){if(c.value=u,c.value){const N=await u1(c.value.id);if(N.code===200){const x=N.data||[];x&&x.length!==0?f.value=x:c.value.lng&&c.value.lat?f.value=[{lng:c.value.lng,lat:c.value.lat}]:f.value=[],e.nextTick(()=>{_()})}}}return n({setPlayItem:k}),(u,N)=>(e.openBlock(),e.createElementBlock("div",dx,[e.withDirectives(e.createVNode(Gt,{ref:"mapNoPermissions",class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(l)]]),px]))}});function fx(t){const n=t.emit,o=e.ref(null),a=e.ref(null),s=e.ref(null),l=e.ref(!1);function r(p,d){return new Promise((f,m)=>{if(!p)return m(new Error(y("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(y("pleaseScoreTheCurrentFile"));const p={fileScore:o.value,ids:[a.value]};(await g1(p)).code===200&&(s.value(o.value),n("on-submit",o.value),pe.ElMessage.success(y("successfulScoring")),l.value=!1)}return{fileScore:o,dialogVisible:l,show:r,onClose:i,onSubmit:c}}const mx={class:"box-border text-hy-text-main el-drag-dialog w-full h-full rounded overflow-hidden border border-hy-main shadow-[0_0_6px_0] shadow-hy-main flex flex-col"},hx={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},ux={class:"absolute right-[10px]"},_x={class:"dialog_body"},gx={class:"text-center m-[20px_0_40px_0]"},yx={class:"flex items-center justify-center mb-[10px] text-sm"},xx={class:"text-hy-text-main mr-[6px]"},kx={class:"text-hy-text-secondary text-xs"},Nx={class:"operator-button flex items-center justify-center mt-[20px]"},aa=e.defineComponent({__name:"file-score",emits:["on-close","on-submit"],setup(t,{expose:n,emit:o}){const a=o,s=e.reactive(He.getCache("colorObject")),l=e.computed(()=>({2:s.auxiliary,3:s.warning,4:s.success,5:s.theme})),{fileScore:r,dialogVisible:i,show:c,onClose:p,onSubmit:d}=fx({emit:a});return n({show:c}),e.onMounted(()=>{}),(f,m)=>{const _=e.resolveComponent("svg-icon"),k=e.resolveComponent("el-rate"),u=e.resolveComponent("el-button"),N=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(N,{"model-value":e.unref(i),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"!p-0 border-[0] shadow-[0_0_0_0] w-[440px]"},{default:e.withCtx(()=>[e.createVNode($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",mx,[e.createElementVNode("div",hx,[e.createElementVNode("span",null,e.toDisplayString(e.unref(y)("confirmScore")),1),e.createElementVNode("div",ux,[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",_x,[e.createElementVNode("div",gx,[e.createElementVNode("div",yx,[e.createElementVNode("span",xx,e.toDisplayString(e.unref(y)("confirmAs")),1),e.createVNode(k,{modelValue:e.unref(r),"onUpdate:modelValue":m[0]||(m[0]=x=>e.isRef(r)?r.value=x:null),"void-color":s.main,colors:l.value},null,8,["modelValue","void-color","colors"])]),e.createElementVNode("span",kx,e.toDisplayString(e.unref(y)("noSecondaryModificationAfterScoring")),1)]),e.createElementVNode("div",Nx,[e.createVNode(u,{type:"primary",class:"w-[100px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("close")),1)]),_:1},8,["onClick"]),e.createVNode(u,{class:"w-[100px]",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("confirm")),1)]),_:1},8,["onClick"])])])])]),_:1})]),_:1},8,["model-value"])}}});function bx(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(null),s=e.ref(null),l=e.ref([]),r=e.ref({content:""}),i=e.reactive({content:[{required:!0,message:y("pleaseEnterTheDotName"),trigger:"blur"}]}),c=e.ref(!1),p=e.ref(""),d=e.reactive(He.getCache("userInfo"));function f(){c.value=!1,n("on-close"),r.value={content:""},p.value=""}async function m(){if(o.value.mediaFileId){const b=await k1({mediaFileId:o.value.mediaFileId});b.code===200&&(l.value=b.data,l.value.sort((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(y("pleaseEnterTheDotContent")),!1;(await N1({id:r.value.id,content:r.value.content,mediaFileId:o.value.mediaFileId,time:r.value.time||o.value.mediaFileCurTime})).code===200&&(m(),f())}})}function k(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 x(b){p.value=b,n("on-edit"),mt({tipsTitle:y("deleteDot"),tipsContent:`<div class="text-center"><p>${y("deleteDotPositionCannotBeRestored")}</p><p>${y("confirmDeletion")}?</p></div>`,submitBtnText:y("confirm-0")},()=>{E()},()=>{f()})}async function E(){(await xr({ids:p.value})).code===200&&(m(),f())}return{formRef:a,userId:s,pointList:l,form:r,rules:i,dialogVisible:c,deleteIds:p,onClose:f,getData:m,savePoint:_,playPoint:k,addPoint:u,editPoint:N,showDeleteDialog:x,deletePoint:E,userInfo:d}}const sa=t=>(e.pushScopeId("data-v-ae4b4f28"),t=t(),e.popScopeId(),t),Cx={class:"w-full h-full"},wx={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},Ex={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},Sx={class:"text-hy-text-main font-bold text-sm"},Tx={class:"flex items-center justify-center"},Dx={class:"ml-[6px]"},Vx={class:"flex-grow h-0"},$x={class:"h-full flex flex-col"},Bx={class:"p-3 pb-0"},Ix={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col text-xs"},Ax={class:"flex-grow h-0"},Lx={class:"flex items-center justify-between"},Fx={class:"text-hy-text-secondary mr-1"},Ox=sa(()=>e.createElementVNode("span",null,"/",-1)),Rx={key:0,class:"px-3 py-1 text-hy-text-main text-xs flex-grow h-0 overflow-auto"},Px={class:"flex items-center justify-between"},Mx={class:"flex-grow w-0 mr-1 flex items-center"},Ux={class:"ml-2 flex-grow w-0"},zx={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},Wx={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},jx={key:0,class:"flex-shrink-0 flex"},Hx={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},Yx={class:"flex-grow h-0"},Gx={class:"flex items-center justify-between"},qx={class:"text-hy-text-secondary mr-1"},Kx=sa(()=>e.createElementVNode("span",null,"/",-1)),Xx={class:"px-2 mt-3 mb-1 text-xs"},Jx={class:"flex items-center justify-between"},Zx={class:"text-hy-text-secondary mr-1"},Qx=sa(()=>e.createElementVNode("span",null,"/",-1)),vx={class:"flex items-center mt-1"},ek={class:"text-hy-text-secondary mr-1"},tk={class:"flex-grow w-0 ml-1"},nk={key:1,class:"w-full flex-grow h-0 flex items-center justify-center rounded"},ok={class:"text-center text-xs text-hy-text-secondary"},ak={class:"mt-3"},br=be(e.defineComponent({__name:"mark",props:{mediaFileId:{},mediaFileTotalTime:{},mediaFileCurTime:{}},emits:["on-close","play-point","on-edit","on-edit","on-edit"],setup(t,{emit:n}){const o=t,a=n,{formRef:s,userId:l,pointList:r,form:i,rules:c,dialogVisible:p,deleteIds:d,onClose:f,getData:m,savePoint:_,playPoint:k,addPoint:u,editPoint:N,showDeleteDialog:x,deletePoint:E,userInfo:b}=bx({emit:a,props:o});return e.watch(()=>o.mediaFileId,()=>{m()}),e.onMounted(()=>{l.value=b.id}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-button"),g=e.resolveComponent("el-input"),C=e.resolveComponent("el-form-item"),w=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",Cx,[e.createElementVNode("div",wx,[e.createElementVNode("div",Ex,[e.createElementVNode("div",Sx,e.toDisplayString(e.unref(y)("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",Tx,[e.createVNode($,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),e.createElementVNode("span",Dx,e.toDisplayString(e.unref(y)("addDot-0")),1)])]),_:1},512),[[e.vShow,S.mediaFileId]])])]),e.createElementVNode("div",Vx,[e.createVNode(w,{ref_key:"formRef",ref:s,class:"h-full","label-position":"top",model:e.unref(i),rules:e.unref(c),"label-width":"0px"},{default:e.withCtx(()=>[e.createElementVNode("div",$x,[e.withDirectives(e.createElementVNode("div",Bx,[e.createElementVNode("div",Ix,[e.createElementVNode("div",Ax,[e.createVNode(C,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(i).content,"onUpdate:modelValue":V[1]||(V[1]=D=>e.unref(i).content=D),type:"textarea",placeholder:e.unref(y)("pleaseEnterTheDotName"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),e.createElementVNode("div",Lx,[e.createElementVNode("div",null,[e.createElementVNode("span",Fx,e.toDisplayString(e.unref(y)("dotPosition")),1),e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(ot)(Number(e.unref(i).time||o.mediaFileCurTime)))+" ",1),Ox,e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(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(y)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(h,{onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("save")),1)]),_:1},8,["onClick"])])])])],512),[[e.vShow,e.unref(p)&&!e.unref(i).id]]),e.unref(r).length?(e.openBlock(),e.createElementBlock("ul",Rx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),D=>(e.openBlock(),e.createElementBlock("li",{key:D.id,class:"bg-hy-page-bg-3 rounded my-2 p-2 box-hy-border-2"},[e.createElementVNode("div",Px,[e.createElementVNode("div",Mx,[e.createVNode(xt,{url:D.remarkUserHeadImg},null,8,["url"]),e.createElementVNode("div",Ux,[e.createElementVNode("p",zx,e.toDisplayString(D.remarkUserName),1),e.createElementVNode("p",Wx,e.toDisplayString(D.remarkUserSerialNum),1)])]),D.remarkUserId===e.unref(l)&&e.unref(i).id!==D.id?(e.openBlock(),e.createElementBlock("div",jx,[e.createVNode(Me,{"class-nmae":"HyRoundButtonV2",name:"media-center-2-audio-play-2",tips:e.unref(y)("play"),onClick:T=>e.unref(k)(D)},null,8,["tips","onClick"]),e.createVNode(Me,{class:"!mx-0","class-nmae":"HyRoundButtonV2",name:"icon-edit",tips:e.unref(y)("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(y)("delete"),onClick:T=>e.unref(x)(D.id)},null,8,["tips","onClick"])])):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",Hx,[e.createElementVNode("div",Yx,[e.createVNode(C,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(i).content,"onUpdate:modelValue":V[2]||(V[2]=T=>e.unref(i).content=T),type:"textarea",placeholder:e.unref(y)("pleaseEnterTheDotName"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),e.createElementVNode("div",Gx,[e.createElementVNode("div",null,[e.createElementVNode("span",qx,e.toDisplayString(e.unref(y)("dotPosition")),1),e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(ot)(Number(e.unref(i).time||o.mediaFileCurTime)))+" ",1),Kx,e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(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(y)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(h,{onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("save")),1)]),_:1},8,["onClick"])])])],512),[[e.vShow,e.unref(i).id===D.id&&e.unref(p)]]),e.withDirectives(e.createElementVNode("div",Xx,[e.createElementVNode("div",Jx,[e.createElementVNode("div",null,[e.createElementVNode("span",Zx,e.toDisplayString(e.unref(y)("dotPosition")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(D.time)))+" ",1),Qx,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",vx,[e.createElementVNode("span",ek,e.toDisplayString(e.unref(y)("dotName")),1),e.createElementVNode("div",tk,e.toDisplayString(D.content),1)])],512),[[e.vShow,!(e.unref(i).id===D.id&&e.unref(p))]])]))),128))])):(e.openBlock(),e.createElementBlock("div",nk,[e.createElementVNode("div",ok,[e.createVNode($,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),e.createElementVNode("div",ak,e.toDisplayString(e.unref(y)("noData")),1)])]))])]),_:1},8,["model","rules"])])])])}}}),[["__scopeId","data-v-ae4b4f28"]]);function sk(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(null),s=e.ref(null),l=e.ref(!1),r=e.ref({content:""}),i=e.reactive({content:[{required:!0,message:y("pleaseFillInTheRemarks"),trigger:"blur"}]}),c=e.ref([]),p=e.ref(""),d=e.reactive(He.getCache("userInfo"));function f(){l.value=!1,n("on-close"),r.value={content:""}}async function m(){if(o.value.mediaFileId){const b=await y1({mediaFileId:o.value.mediaFileId});b.code===200&&(c.value=b.data,n("on-getData",c.value))}}function _(){var b;(b=a.value)==null||b.clearValidate(),r.value={},n("on-edit"),l.value=!0}function k(){a.value.validate(async b=>{if(b){if(r.value.content==="")return pe.ElMessage.error(y("pleaseEnterTheRemarks")),!1;r.value.mediaFileId=o.value.mediaFileId,(await x1(r.value)).code===200&&(m(),f())}})}function u(b){p.value=b,mt({tipsTitle:y("deleteRemarks"),tipsContent:`<div class="text-center"><p>${y("reminderCannotBeRestoredAfterDeletion")}</p><p>${y("confirmDeletion")}?</p></div>`,submitBtnText:y("confirm-0")},()=>{x()})}function N(){p.value=""}async function x(){(await xr({ids:p.value})).code===200&&(m(),N(),n("on-delete"))}function E(b){var S;(S=a.value)==null||S.clearValidate(),r.value=JSON.parse(JSON.stringify(b)),l.value=!0,n("on-edit")}return{formRef:a,userId:s,dialogVisible:l,form:r,rules:i,markList:c,deleteIds:p,onClose:f,getData:m,addMark:_,onSubmit:k,showDeleteDialog:u,onCloseDeleteMark:N,deleteMark:x,editMark:E,userInfo:d}}const lk={class:"w-full h-full"},rk={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},ik={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},ck={class:"text-hy-text-main font-bold text-sm"},dk={class:"flex items-center justify-center"},pk={class:"ml-[6px]"},fk={class:"flex-grow h-0"},mk={class:"h-full flex flex-col"},hk={class:"p-3 pb-0"},uk={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col"},_k={class:"flex-grow h-0"},gk={class:"h-[40px] flex items-end justify-end"},yk={key:0,class:"px-3 py-1 text-hy-text-main text-xs flex-grow h-0 overflow-auto"},xk={class:"flex items-center justify-between"},kk={class:"flex-grow w-0 mr-1 flex items-center"},Nk={class:"ml-2 flex-grow w-0"},bk={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},Ck={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},wk={key:0,class:"flex-shrink-0 flex items-center"},Ek={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},Sk={class:"flex-grow h-0"},Tk={class:"h-[40px] flex items-end justify-end"},Dk={key:1,class:"w-full flex-grow h-0 flex items-center justify-center rounded"},Vk={class:"text-center text-xs text-hy-text-secondary"},$k={class:"mt-3"},la=e.defineComponent({__name:"remark",props:{mediaFileId:{default:null}},emits:["on-close","on-getData","on-edit","on-delete","on-edit"],setup(t,{emit:n}){const o=t,a=n,{formRef:s,userId:l,dialogVisible:r,form:i,rules:c,markList:p,onClose:d,getData:f,addMark:m,onSubmit:_,showDeleteDialog:k,onCloseDeleteMark:u,deleteMark:N,editMark:x,userInfo:E}=sk({emit:a,props:o});return e.watch(()=>o.mediaFileId,()=>{f()}),e.onMounted(()=>{l.value=E.id}),(b,S)=>{const V=e.resolveComponent("svg-icon"),$=e.resolveComponent("el-button"),h=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),C=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",lk,[e.createElementVNode("div",rk,[e.createElementVNode("div",ik,[e.createElementVNode("div",ck,e.toDisplayString(e.unref(y)("reminderList")),1),e.createElementVNode("div",null,[e.withDirectives(e.createVNode($,{type:"success",class:"",onClick:S[0]||(S[0]=w=>e.unref(m)())},{default:e.withCtx(()=>[e.createElementVNode("div",dk,[e.createVNode(V,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),e.createElementVNode("span",pk,e.toDisplayString(e.unref(y)("addRemarks-0")),1)])]),_:1},512),[[e.vShow,b.mediaFileId]])])]),e.createElementVNode("div",fk,[e.createVNode(C,{ref_key:"formRef",ref:s,class:"h-full","label-position":"top",model:e.unref(i),rules:e.unref(c),"label-width":"0px"},{default:e.withCtx(()=>[e.createElementVNode("div",mk,[e.withDirectives(e.createElementVNode("div",hk,[e.createElementVNode("div",uk,[e.createElementVNode("div",_k,[e.createVNode(g,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(i).content,"onUpdate:modelValue":S[1]||(S[1]=w=>e.unref(i).content=w),type:"textarea",placeholder:e.unref(y)("pleaseFillInTheRemarks"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),e.createElementVNode("div",gk,[e.createVNode($,{type:"primary",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode($,{onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("save")),1)]),_:1},8,["onClick"])])])],512),[[e.vShow,e.unref(r)&&!e.unref(i).id]]),e.unref(p).length?(e.openBlock(),e.createElementBlock("ul",yk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),w=>(e.openBlock(),e.createElementBlock("li",{key:w.id,class:"bg-hy-page-bg-3 rounded my-2 p-2 box-hy-border-2"},[e.createElementVNode("div",xk,[e.createElementVNode("div",kk,[e.createVNode(xt,{url:w.remarkUserHeadImg},null,8,["url"]),e.createElementVNode("div",Nk,[e.createElementVNode("p",bk,e.toDisplayString(w.remarkUserName),1),e.createElementVNode("p",Ck,e.toDisplayString(w.remarkUserSerialNum),1)])]),w.remarkUserId===e.unref(l)&&e.unref(i).id!==w.id?(e.openBlock(),e.createElementBlock("div",wk,[e.createVNode(Me,{class:"!mx-0","class-nmae":"HyRoundButtonV2",name:"icon-edit",tips:e.unref(y)("edit"),onClick:D=>e.unref(x)(w)},null,8,["tips","onClick"]),e.createVNode(Me,{class:"hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-text-danger",name:"base-delete",tips:e.unref(y)("delete"),onClick:D=>e.unref(k)(w.id)},null,8,["tips","onClick"])])):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",Ek,[e.createElementVNode("div",Sk,[e.createVNode(g,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(i).content,"onUpdate:modelValue":S[2]||(S[2]=D=>e.unref(i).content=D),type:"textarea",placeholder:e.unref(y)("pleaseFillInTheRemarks"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),e.createElementVNode("div",Tk,[e.createVNode($,{type:"primary",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode($,{onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("save")),1)]),_:1},8,["onClick"])])],512),[[e.vShow,e.unref(i).id===w.id&&e.unref(r)]]),e.withDirectives(e.createElementVNode("div",{class:"px-2 mt-3 mb-1"},e.toDisplayString(w.content),513),[[e.vShow,!(e.unref(i).id===w.id&&e.unref(r))]])]))),128))])):(e.openBlock(),e.createElementBlock("div",Dk,[e.createElementVNode("div",Vk,[e.createVNode(V,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),e.createElementVNode("div",$k,e.toDisplayString(e.unref(y)("noData")),1)])]))])]),_:1},8,["model","rules"])])])])}}});function Cr(t){const n=t.emit,o=e.ref(Ke.NO_LOAD),a=e.ref(null),s=e.ref(null),l=e.ref(!0),r=e.ref(null),i=e.ref({}),c=e.ref(0),p=e.ref(0),d=e.reactive(He.getCache("colorObject")),f=e.computed(()=>({2:d.auxiliary,3:d.warning,4:d.success,5:d.theme}));function m(){var g;(g=a.value)==null||g.show(i.value.id,r.value).then(C=>{i.value.fileScore=C,r.value=C})}function _(){n("closeDrawer")}function k(){}function u(g){N(g.playItem)}async function N(g){const C=g.id;if(i.value.id!==C){i.value={...g},l.value=!0;const w=await yr(C);w.code===200&&(r.value=w.data,i.value.fileScore=r.value,l.value=!1,e.nextTick(()=>{var D;(D=s.value)==null||D.setPlayItem(i.value)}))}}function x(g){c.value=g}function E(g){p.value=g}function b(){if(t.params.getPlayerRef)return t.params.getPlayerRef()}function S(g){b().jumpDuration(g),b().resumePlay()}function V(){if(t.params.onEditMark){t.params.onEditMark();return}b().pauseAudio()}function $(){b().resumePlay()}function h(g){o.value=g}return{fileScoreRef:a,mapFileTrackRef:s,colorObject:d,colors:f,audioState:o,fileScoreLoading:l,fileScore:r,playItem:i,playerTotalTime:c,audioCurTime:p,fileScoreShow:m,closeDrawer:_,playEnd:k,onPlayStart:u,playStart:N,canPlay:x,onTimeUpdate:E,playPoint:S,onEditMark:V,onEditorClose:$,setAudioState:h}}const ra=t=>(e.pushScopeId("data-v-e67170d8"),t=t(),e.popScopeId(),t),Bk={class:"h-full text-hy-text-main flex flex-col"},Ik={class:"h-[60px] flex justify-between items-center px-5 hy-dialog_header"},Ak={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},Lk={class:"text-hy-danger"},Fk={class:"flex-grow h-0 overflow-y-auto"},Ok={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},Rk={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},Pk={class:"audio-play-icon-box flex"},Mk={class:"relative"},Uk={class:"point_area"},zk={class:"point point_dot relative"},Wk={class:"w-full h-full rounded-full bg-hy-page-bg-2 flex items-center justify-center text-hy-text-main"},jk={class:"duration-1000"},Hk=[ra(()=>e.createElementVNode("div",{class:"point point_10"},null,-1)),ra(()=>e.createElementVNode("div",{class:"point point_40"},null,-1)),ra(()=>e.createElementVNode("div",{class:"point point_shadow point_80"},null,-1))],Yk={key:0,class:"w-full file-info"},Gk={class:"info-item"},qk={class:"info-label"},Kk={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Xk={class:"info-item"},Jk={class:"info-label"},Zk={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Qk={key:0,class:"flex items-center"},vk={key:1,class:"text-hy-text-secondary"},eN={class:"info-item"},tN={class:"info-label"},nN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},oN={class:"info-item"},aN={class:"info-label"},sN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},lN={key:0},rN={key:1},iN={key:2,class:"text-hy-danger"},cN={key:3,class:"text-hy-text-secondary"},dN={class:"info-item"},pN={class:"info-label"},fN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},mN={class:"info-item"},hN={class:"info-label"},uN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},_N={class:"info-item"},gN={class:"info-label"},yN={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},xN={key:1,class:"text-hy-text-secondary"},kN={class:"info-item"},NN={class:"info-label"},bN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},CN={class:"info-item flex items-center text-xs"},wN={class:"info-label"},EN={class:"flex items-center rateBox"},SN={key:0,class:"text-hy-text-secondary"},TN={key:1,class:"text-hy-text-main"},DN={class:"info-item"},VN={class:"info-label"},$N={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},BN={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},IN={class:"mb-1"},AN={class:"w-[60%] flex"},LN={class:"flex-grow w-0 ml-2"},FN={class:"flex-grow w-0 ml-2"},ON=be(e.defineComponent({__name:"audio-details",props:{item:{},playList:{}},emits:["closeDrawer"],setup(t,{emit:n}){const o=t,a=n,s=e.ref(null),{fileScoreRef:l,mapFileTrackRef:r,colorObject:i,colors:c,audioState:p,fileScoreLoading:d,fileScore:f,playItem:m,playerTotalTime:_,audioCurTime:k,fileScoreShow:u,closeDrawer:N,playEnd:x,onPlayStart:E,playStart:b,canPlay:S,onTimeUpdate:V,playPoint:$,onEditMark:h,onEditorClose:g,setAudioState:C}=Cr({emit:a,params:{getPlayerRef:()=>s.value,onEditMark:()=>{s.value.pauseAudio()}}});return e.onBeforeUnmount(()=>{N()}),e.onMounted(()=>{e.nextTick(()=>{m.value={},b(o.item),e.nextTick(()=>{var w;(w=s.value)==null||w.playAudio(o.item.filePath,o.item)})})}),(w,D)=>{const T=e.resolveComponent("svg-icon"),B=e.resolveComponent("el-col"),L=e.resolveComponent("el-rate"),j=e.resolveComponent("el-row"),F=Nr;return e.openBlock(),e.createElementBlock("div",Bk,[e.createVNode(aa,{ref_key:"fileScoreRef",ref:l,onOnClose:D[0]||(D[0]=M=>f.value=null)},null,512),e.createElementVNode("div",Ik,[e.createElementVNode("div",Ak,[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",Lk,[e.createVNode(T,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])]),e.createElementVNode("div",Fk,[e.createElementVNode("div",Ok,[e.createElementVNode("div",Rk,[e.createElementVNode("div",Pk,[e.createElementVNode("div",Mk,[e.createElementVNode("div",Uk,[e.createElementVNode("div",zk,[e.createElementVNode("div",Wk,[e.createVNode(T,{width:"60%",height:"60%",name:"menu-micphone--2-select"})])]),e.withDirectives(e.createElementVNode("div",jk,Hk,512),[[e.vShow,e.unref(p)===e.unref(Ke).PLAYING]])])])]),e.unref(m)&&e.unref(m).id?(e.openBlock(),e.createElementBlock("div",Yk,[e.createVNode(j,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:e.withCtx(()=>[e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",Gk,[e.createElementVNode("span",qk,e.toDisplayString(e.unref(y)("creationTime")),1),e.createElementVNode("span",Kk,e.toDisplayString(e.unref(m).uploadDateStr),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",Xk,[e.createElementVNode("span",Jk,e.toDisplayString(e.unref(y)("fileAttributes")),1),e.createElementVNode("span",Zk,[e.unref(m).mark?(e.openBlock(),e.createElementBlock("span",Qk,[e.createTextVNode(e.toDisplayString(e.unref(y)("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",vk,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",eN,[e.createElementVNode("span",tN,e.toDisplayString(e.unref(y)("user-3")),1),e.createElementVNode("span",nN,e.toDisplayString(e.unref(m).devUserName),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",oN,[e.createElementVNode("span",aN,e.toDisplayString(e.unref(y)("fileSource")),1),e.createElementVNode("span",sN,[e.unref(m).type===1?(e.openBlock(),e.createElementBlock("span",lN,e.toDisplayString(e.unref(y)("daily")),1)):e.unref(m).type===2?(e.openBlock(),e.createElementBlock("span",rN,e.toDisplayString(e.unref(y)("task")),1)):e.unref(m).type===3?(e.openBlock(),e.createElementBlock("span",iN,"SOS")):(e.openBlock(),e.createElementBlock("span",cN,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",dN,[e.createElementVNode("span",pN,e.toDisplayString(e.unref(y)("deviceID")),1),e.createElementVNode("span",fN,e.toDisplayString(e.unref(m).deviceId),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",mN,[e.createElementVNode("span",hN,e.toDisplayString(e.unref(y)("audioDuration")),1),e.createElementVNode("span",uN,e.toDisplayString(e.unref(_))+"s ",1)])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",_N,[e.createElementVNode("span",gN,e.toDisplayString(e.unref(y)("expirationTime")),1),e.unref(m).expiredDtm?(e.openBlock(),e.createElementBlock("span",yN,e.toDisplayString(e.unref(m).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",xN,"-"))])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",kN,[e.createElementVNode("span",NN,e.toDisplayString(e.unref(y)("fileSize")),1),e.createElementVNode("span",bN,e.toDisplayString(e.unref(Ho)(e.unref(m).fileSize)),1)])]),_:1}),e.withDirectives(e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",CN,[e.createElementVNode("span",wN,e.toDisplayString(e.unref(y)("rating")),1),e.createElementVNode("div",EN,[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",SN,e.toDisplayString(e.unref(y)("rated")),1)):(e.openBlock(),e.createElementBlock("span",TN,e.toDisplayString(e.unref(y)("unrated")),1))])])]),_:1},512),[[e.vShow,!e.unref(d)]]),e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",DN,[e.createElementVNode("span",VN,e.toDisplayString(e.unref(y)("location")),1),e.createElementVNode("span",$N,e.toDisplayString(e.unref(m).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",BN,[e.createVNode(F,{ref_key:"mapFileTrackRef",ref:r},null,512)]),e.createElementVNode("div",IN,[e.createVNode(kr,{ref_key:"audioPlayerRef",ref:s,"play-list":w.playList,onOnTimeUpdate:e.unref(V),onCanPlay:e.unref(S),onPlayEnd:e.unref(x),onPlayStart:e.unref(E),onOnAudioState:e.unref(C)},null,8,["play-list","onOnTimeUpdate","onCanPlay","onPlayEnd","onPlayStart","onOnAudioState"])])]),e.createElementVNode("div",AN,[e.createElementVNode("div",LN,[e.createVNode(la,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":e.unref(m).id,onOnEdit:e.unref(h),onOnClose:e.unref(g)},null,8,["media-file-id","onOnEdit","onOnClose"])]),e.createElementVNode("div",FN,[e.createVNode(br,{class:"bg-hy-page-bg-2","media-file-cur-time":e.unref(k),"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 RN(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(null),s=e.ref(null),l=e.ref(!0),r=e.ref(null),i=e.ref(!1),c=e.ref([]),p=e.ref(!1),d=e.ref({});async function f(V){pe.ElMessage.warning(y("fileIsDownloading"));const $=jo(new Date,"Y-M-h D:m:s"),h=await Yo(`/mediaFile/mediaFileZip?mediaFileIds=${V.toString()}`),g=new FileReader;g.readAsDataURL(h),g.onload=C=>{const w=URL.createObjectURL(new Blob([h])),D=document.createElement("a");document.body.appendChild(D),D.href=w,D.download=`${y("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(y("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(y("currentIsTheLastItem"))}function k(){pe.ElMessage.success(y("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 x(){i.value=!1}function E(){n("closeDrawer")}function b(V){console.log("error",V)}async function S(V){const $=V.id;d.value={...V},l.value=!0;const h=await yr($);h.code===200&&(r.value=h.data||null,d.value.fileScore=r.value,l.value=!1)}return{imageViewerRef:s,fileScoreRef:a,fileScoreLoading:l,fileScore:r,imageviewerType:i,imageviewerUrl:c,videoDialogVisible:p,playItem:d,pictureDownloadFn:f,previousSheet:m,nextSheet:_,detectingHashValues:k,fileScoreShow:u,onShowViewer:N,imageviewerClose:x,closeDrawer:E,error:b,playStart:S}}const PN={class:"h-full pic-detail-box flex flex-col"},MN={class:"detail-box flex-shrink-0 hy-dialog_header"},UN={class:"box-header flex flex-row m-0"},zN={class:"flex flex-row left-header-box"},WN={class:"group-hy-info flex items-center text-base font-bold w-full"},jN={key:1,class:"ml-1 flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap"},HN={class:"flex flex-row right-header-box flex-shrink text-hy-danger"},YN={class:"flex-grow h-0 overflow-y-auto"},GN={class:"content flex flex-row h-full min-h-[700px]"},qN={class:"left-content-box relative"},KN=["src"],XN={class:"flex items-center justify-between h-[60px] box-hy-border-2"},JN={class:"text-xs"},ZN={class:"text-xs"},QN={class:"flex items-center"},vN={class:"text-xs text-hy-text-secondary mr-2 flex items-center"},e0={class:"flex items-center justify-center"},t0={class:"ml-1 text-xs"},n0={key:0,class:"w-full file-info mb-[10px]"},o0={class:"info-item"},a0={class:"info-label"},s0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},l0={class:"info-item"},r0={class:"info-label"},i0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},c0={class:"info-item"},d0={class:"info-label"},p0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},f0={class:"info-item"},m0={class:"info-label"},h0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},u0={key:0},_0={key:1},g0={key:2,class:"text-hy-danger"},y0={key:3,class:"text-hy-text-secondary"},x0={class:"info-item"},k0={class:"info-label"},N0={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},b0={key:1,class:"text-hy-text-secondary"},C0={class:"info-item"},w0={class:"info-label"},E0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},S0={key:0,class:"flex items-center"},T0={key:1,class:"text-hy-text-secondary"},D0={class:"info-item"},V0={class:"info-label"},$0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},B0={class:"info-item flex items-center text-xs"},I0={class:"info-label"},A0={class:"flex items-center rateBox"},L0={key:0,class:"text-hy-text-secondary"},F0={key:1,class:"text-hy-text-main"},O0={class:"info-item"},R0={class:"info-label"},P0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},M0={key:0,class:"w-[30%] ml-2 flex-shrink-0 relative"},U0=be(e.defineComponent({__name:"image-details",props:{item:{},playList:{default:()=>[]}},emits:["closeDrawer"],setup(t,{emit:n}){const o=t,a=n,s=e.reactive(He.getCache("colorObject")),l=e.computed(()=>({2:s.auxiliary,3:s.warning,4:s.success,5:s.theme})),{imageViewerRef:r,fileScoreRef:i,fileScoreLoading:c,fileScore:p,playItem:d,pictureDownloadFn:f,previousSheet:m,nextSheet:_,fileScoreShow:k,onShowViewer:u,closeDrawer:N,error:x,playStart:E}=RN({emit:a,props:o});return e.onMounted(()=>{E(o.item)}),(b,S)=>{const V=e.resolveComponent("svg-icon"),$=e.resolveComponent("el-button"),h=e.resolveComponent("el-icon"),g=e.resolveComponent("el-col"),C=e.resolveComponent("el-rate"),w=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",PN,[e.createVNode(aa,{ref_key:"fileScoreRef",ref:i,onOnClose:S[0]||(S[0]=D=>p.value=null)},null,512),e.createElementVNode("div",MN,[e.createElementVNode("div",UN,[e.createElementVNode("div",zN,[e.createElementVNode("div",WN,[e.unref(d).mark?(e.openBlock(),e.createBlock(V,{key:0,width:"16",height:"16",name:"media-center-mark-file",class:"pos_r"})):e.createCommentVNode("",!0),e.unref(d)?(e.openBlock(),e.createElementBlock("div",jN,e.toDisplayString(e.unref(d).fileName),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",HN,[e.createVNode(V,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])])]),e.createElementVNode("div",YN,[e.createElementVNode("div",GN,[e.createElementVNode("div",qN,[e.createElementVNode("div",{class:"pic-img relative flex items-center justify-center",onClick: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,KN)]),e.createElementVNode("div",XN,[e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",null,[e.createVNode($,{type:"primary",class:"",onClick:e.unref(m)},{default:e.withCtx(()=>[e.createElementVNode("span",JN,e.toDisplayString(e.unref(y)("previous")),1)]),_:1},8,["onClick"]),e.createVNode($,{type:"primary",class:"",onClick:e.unref(_)},{default:e.withCtx(()=>[e.createElementVNode("span",ZN,e.toDisplayString(e.unref(y)("next")),1)]),_:1},8,["onClick"])],512),[[e.vShow,o.playList.length>1]])]),e.createElementVNode("div",QN,[e.createElementVNode("p",vN,[e.createVNode(h,{class:"text-sm mr-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(Wd))]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(y)("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",e0,[e.createVNode(V,{class:"w-[12px] h-[12px]",name:"media-download"}),e.createElementVNode("span",t0,e.toDisplayString(e.unref(y)("download-0")),1)])]),_:1})])]),e.unref(d)&&e.unref(d).id?(e.openBlock(),e.createElementBlock("div",n0,[e.createVNode(w,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:e.withCtx(()=>[e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",o0,[e.createElementVNode("span",a0,e.toDisplayString(e.unref(y)("creationTime")),1),e.createElementVNode("span",s0,e.toDisplayString(e.unref(d).uploadDateStr),1)])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",l0,[e.createElementVNode("span",r0,e.toDisplayString(e.unref(y)("fileSize")),1),e.createElementVNode("span",i0,e.toDisplayString(e.unref(Ho)(e.unref(d).fileSize)),1)])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",c0,[e.createElementVNode("span",d0,e.toDisplayString(e.unref(y)("user-3")),1),e.createElementVNode("span",p0,e.toDisplayString(e.unref(d).devUserName),1)])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",f0,[e.createElementVNode("span",m0,e.toDisplayString(e.unref(y)("fileSource")),1),e.createElementVNode("span",h0,[e.unref(d).type===1?(e.openBlock(),e.createElementBlock("span",u0,e.toDisplayString(e.unref(y)("daily")),1)):e.unref(d).type===2?(e.openBlock(),e.createElementBlock("span",_0,e.toDisplayString(e.unref(y)("task")),1)):e.unref(d).type===3?(e.openBlock(),e.createElementBlock("span",g0,"SOS")):(e.openBlock(),e.createElementBlock("span",y0,"-"))])])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",x0,[e.createElementVNode("span",k0,e.toDisplayString(e.unref(y)("expirationTime")),1),e.unref(d).expiredDtm?(e.openBlock(),e.createElementBlock("span",N0,e.toDisplayString(e.unref(d).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",b0,"-"))])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",C0,[e.createElementVNode("span",w0,e.toDisplayString(e.unref(y)("fileAttributes")),1),e.createElementVNode("span",E0,[e.unref(d).mark?(e.openBlock(),e.createElementBlock("span",S0,[e.createTextVNode(e.toDisplayString(e.unref(y)("star"))+" ",1),e.createVNode(V,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-1 -top-[2px]"})])):(e.openBlock(),e.createElementBlock("span",T0,"-"))])])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",D0,[e.createElementVNode("span",V0,e.toDisplayString(e.unref(y)("deviceID")),1),e.createElementVNode("span",$0,e.toDisplayString(e.unref(d).deviceId),1)])]),_:1}),e.withDirectives(e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",B0,[e.createElementVNode("span",I0,e.toDisplayString(e.unref(y)("rating")),1),e.createElementVNode("div",A0,[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(k)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),e.unref(d).fileScore?(e.openBlock(),e.createElementBlock("span",L0,e.toDisplayString(e.unref(y)("rated")),1)):(e.openBlock(),e.createElementBlock("span",F0,e.toDisplayString(e.unref(y)("unrated")),1))])])]),_:1},512),[[e.vShow,!e.unref(c)]]),e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",O0,[e.createElementVNode("span",R0,e.toDisplayString(e.unref(y)("location")),1),e.createElementVNode("span",P0,e.toDisplayString(e.unref(d).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0)]),e.unref(d).id?(e.openBlock(),e.createElementBlock("div",M0,[e.createVNode(la,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":e.unref(d).id},null,8,["media-file-id"])])):e.createCommentVNode("",!0)])]),e.createVNode(Wo,{ref_key:"imageViewerRef",ref:r},null,512)])}}}),[["__scopeId","data-v-04b34f5b"]]),z0={class:"h-full text-hy-text-main flex flex-col"},W0={class:"h-[60px] flex justify-between items-center px-5 hy-dialog_header"},j0={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},H0={class:"text-hy-danger"},Y0={class:"flex-grow h-0 overflow-y-auto"},G0={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},q0={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},K0={class:"h-[240px] video-player-box mt-[20px] flex"},X0={key:0,class:"w-full file-info m-[10px_0]"},J0={class:"info-item"},Z0={class:"info-label"},Q0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},v0={class:"info-item"},eb={class:"info-label"},tb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},nb={key:0,class:"flex items-center"},ob={key:1,class:"text-hy-text-secondary"},ab={class:"info-item"},sb={class:"info-label"},lb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},rb={class:"info-item"},ib={class:"info-label"},cb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},db={class:"info-item"},pb={class:"info-label"},fb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},mb={class:"info-item"},hb={class:"info-label"},ub={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},_b={key:0},gb={key:1},yb={key:2,class:"text-hy-danger"},xb={key:3,class:"text-hy-text-secondary"},kb={class:"info-item"},Nb={class:"info-label"},bb={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Cb={key:1,class:"text-hy-text-secondary"},wb={class:"info-item"},Eb={class:"info-label"},Sb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Tb={class:"info-item flex items-center text-xs"},Db={class:"info-label"},Vb={class:"flex items-center rateBox"},$b={key:0,class:"text-hy-text-secondary"},Bb={key:1,class:"text-hy-text-main"},Ib={class:"info-item"},Ab={class:"info-label"},Lb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Fb={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},Ob={class:"w-[60%] flex"},Rb={class:"flex-grow w-0 ml-2"},Pb={class:"flex-grow w-0 ml-2"},Mb=be(e.defineComponent({__name:"video-details",props:{item:{},playList:{}},emits:["closeDrawer"],setup(t,{emit:n}){const o=t,a=n,s=e.ref(),{fileScoreRef:l,mapFileTrackRef:r,colorObject:i,colors:c,audioState:p,fileScoreLoading:d,fileScore:f,playItem:m,playerTotalTime:_,audioCurTime:k,fileScoreShow:u,closeDrawer:N,playEnd:x,onPlayStart:E,playStart:b,canPlay:S,onTimeUpdate:V,playPoint:$,onEditMark:h,onEditorClose:g,setAudioState:C}=Cr({emit:a,params:{getPlayerRef:()=>s.value,onEditMark:()=>{s.value.pauseVideo()}}});return e.onBeforeUnmount(()=>{N()}),e.onMounted(()=>{e.nextTick(()=>{m.value={},b(o.item),e.nextTick(()=>{var w;(w=s.value)==null||w.playVideo(o.item.filePath,o.item)})})}),(w,D)=>{const T=e.resolveComponent("svg-icon"),B=e.resolveComponent("el-col"),L=e.resolveComponent("el-rate"),j=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",z0,[e.createVNode(aa,{ref_key:"fileScoreRef",ref:l,onOnClose:D[0]||(D[0]=F=>f.value=null)},null,512),e.createElementVNode("div",W0,[e.createElementVNode("div",j0,[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",H0,[e.createVNode(T,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])]),e.createElementVNode("div",Y0,[e.createElementVNode("div",G0,[e.createElementVNode("div",q0,[e.createElementVNode("div",K0,[e.createVNode(oa,{ref_key:"videoPlayerRef",ref:s,"play-list":w.playList,onCanPlay:e.unref(S),onOnTimeUpdate:e.unref(V),onPlayStart:e.unref(E)},null,8,["play-list","onCanPlay","onOnTimeUpdate","onPlayStart"])]),e.unref(m)&&e.unref(m).id?(e.openBlock(),e.createElementBlock("div",X0,[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",J0,[e.createElementVNode("span",Z0,e.toDisplayString(e.unref(y)("creationTime")),1),e.createElementVNode("span",Q0,e.toDisplayString(e.unref(m).uploadDateStr),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",v0,[e.createElementVNode("span",eb,e.toDisplayString(e.unref(y)("fileAttributes")),1),e.createElementVNode("span",tb,[e.unref(m).mark?(e.openBlock(),e.createElementBlock("span",nb,[e.createTextVNode(e.toDisplayString(e.unref(y)("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",ob,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",ab,[e.createElementVNode("span",sb,e.toDisplayString(e.unref(y)("user-3")),1),e.createElementVNode("span",lb,e.toDisplayString(e.unref(m).devUserName),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",rb,[e.createElementVNode("span",ib,e.toDisplayString(e.unref(y)("fileSize")),1),e.createElementVNode("span",cb,e.toDisplayString(e.unref(Ho)(e.unref(m).fileSize)),1)])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",db,[e.createElementVNode("span",pb,e.toDisplayString(e.unref(y)("deviceID")),1),e.createElementVNode("span",fb,e.toDisplayString(e.unref(m).deviceId),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",mb,[e.createElementVNode("span",hb,e.toDisplayString(e.unref(y)("fileSource")),1),e.createElementVNode("span",ub,[e.unref(m).type===1?(e.openBlock(),e.createElementBlock("span",_b,e.toDisplayString(e.unref(y)("daily")),1)):e.unref(m).type===2?(e.openBlock(),e.createElementBlock("span",gb,e.toDisplayString(e.unref(y)("task")),1)):e.unref(m).type===3?(e.openBlock(),e.createElementBlock("span",yb,"SOS")):(e.openBlock(),e.createElementBlock("span",xb,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",kb,[e.createElementVNode("span",Nb,e.toDisplayString(e.unref(y)("expirationTime")),1),e.unref(m).expiredDtm?(e.openBlock(),e.createElementBlock("span",bb,e.toDisplayString(e.unref(m).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",Cb,"-"))])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",wb,[e.createElementVNode("span",Eb,e.toDisplayString(e.unref(y)("videoDuration")),1),e.createElementVNode("span",Sb,e.toDisplayString(e.unref(_))+"s ",1)])]),_:1}),e.withDirectives(e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",Tb,[e.createElementVNode("span",Db,e.toDisplayString(e.unref(y)("rating")),1),e.createElementVNode("div",Vb,[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",$b,e.toDisplayString(e.unref(y)("rated")),1)):(e.openBlock(),e.createElementBlock("span",Bb,e.toDisplayString(e.unref(y)("unrated")),1))])])]),_:1},512),[[e.vShow,!e.unref(d)]]),e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",Ib,[e.createElementVNode("span",Ab,e.toDisplayString(e.unref(y)("location")),1),e.createElementVNode("span",Lb,e.toDisplayString(e.unref(m).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",Fb,[e.createVNode(Nr,{ref_key:"mapFileTrackRef",ref:r},null,512)])]),e.createElementVNode("div",Ob,[e.createElementVNode("div",Rb,[e.createVNode(la,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":e.unref(m).id,onOnEdit:e.unref(h),onOnClose:e.unref(g)},null,8,["media-file-id","onOnEdit","onOnClose"])]),e.createElementVNode("div",Pb,[e.createVNode(br,{class:"bg-hy-page-bg-2","media-file-cur-time":e.unref(k),"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"]]),Ub={key:0,class:"fixed top-[10%] left-[25%]"},zb={class:"!p-0 !w-[1200px]"},Wb={class:"h-[780px] px-1 box-border bg-hy-page-bg-2 text-hy-text-main el-drag-dialog rounded overflow-hidden border border-hy-main shadow-[0_0_6px_0] shadow-hy-main flex flex-col"},jb=e.defineComponent({__name:"file-details",setup(t,{expose:n}){const o=cx,a=e.ref(!1),s=e.ref(!1),l=e.ref(1),r=e.ref({}),i=e.ref([]);function c(){a.value=!1,console.log("closeDrawer")}function p(d){a.value=!0,s.value=d.draggable,l.value=d.curMediaType,r.value=d.curItem,i.value=d.playList||[]}return e.onMounted(()=>{}),n({show:p}),(d,f)=>e.unref(a)?e.withDirectives((e.openBlock(),e.createElementBlock("div",Ub,[e.createElementVNode("div",zb,[e.createVNode($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",Wb,[e.unref(l)===2?(e.openBlock(),e.createBlock(ON,{key:0,item:e.unref(r),"play-list":e.unref(i),onCloseDrawer:c},null,8,["item","play-list"])):e.unref(l)===3?(e.openBlock(),e.createBlock(Mb,{key:1,item:e.unref(r),"play-list":e.unref(i),onCloseDrawer:c},null,8,["item","play-list"])):e.unref(l)===4?(e.openBlock(),e.createBlock(U0,{key:2,item:e.unref(r),"play-list":e.unref(i),onCloseDrawer:c},null,8,["item","play-list"])):e.createCommentVNode("",!0)])]),_:1})])])),[[e.unref(o)]]):e.createCommentVNode("",!0)}});function Hb(t){return oe.post({url:"/file/abortMultipartUpload",data:t,showLoading:!1,isJson:!0})}function Yb(t){return oe.post({url:"/file/multipartUploadAuth",data:t,showLoading:!1,isFormData:!0})}function Gb(t){return oe.post({url:"/file/completeMultipartUpload",data:t,showLoading:!1,isJson:!0})}function qb(t){return oe.post({url:"/mediaFile/mediaFile/save",data:t,showLoading:!1,isJson:!0})}function Kb(t){return oe.post({url:"/mediaFile/findByFileCloudKey",data:{fileCloudKey:t},showLoading:!1,isFormData:!0})}const Xb="/admin",Jb=new Nl({baseURL:`${He.getCache("host")||""}${Xb}`,timeout:Hs,headers:{"Content-Type":ct.JSON},interceptors:{requestSuccessFn:t=>{const n=He.getCache("userInfo");return t.headers.token=n==null?void 0:n.token,t.headers&&t.isJson?t.headers["Content-Type"]=ct.JSON:t.headers&&t.isFormData?t.headers["Content-Type"]=ct.FORM_DATA:t.headers&&t.isFileUpload&&(t.responseType="blob",t.headers["Content-Type"]=ct.FILE_UPLOAD),t.headers&&t.xAmzAcl&&(t.headers["Content-Type"]=t.fileType,t.headers["x-amz-acl"]="public-read"),t},requestFailureFn:t=>t,responseSuccessFn:t=>t.headers.etag?t.headers.etag:t.data,responseFailureFn:t=>t}});var wr={exports:{}};(function(t,n){(function(o){t.exports=o()})(function(o){var a=function(h,g){return h+g&4294967295},s=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function l(h,g,C,w,D,T){return g=a(a(g,h),a(w,T)),a(g<<D|g>>>32-D,C)}function r(h,g,C,w,D,T,B){return l(g&C|~g&w,h,g,D,T,B)}function i(h,g,C,w,D,T,B){return l(g&w|C&~w,h,g,D,T,B)}function c(h,g,C,w,D,T,B){return l(g^C^w,h,g,D,T,B)}function p(h,g,C,w,D,T,B){return l(C^(g|~w),h,g,D,T,B)}function d(h,g){var C=h[0],w=h[1],D=h[2],T=h[3];C=r(C,w,D,T,g[0],7,-680876936),T=r(T,C,w,D,g[1],12,-389564586),D=r(D,T,C,w,g[2],17,606105819),w=r(w,D,T,C,g[3],22,-1044525330),C=r(C,w,D,T,g[4],7,-176418897),T=r(T,C,w,D,g[5],12,1200080426),D=r(D,T,C,w,g[6],17,-1473231341),w=r(w,D,T,C,g[7],22,-45705983),C=r(C,w,D,T,g[8],7,1770035416),T=r(T,C,w,D,g[9],12,-1958414417),D=r(D,T,C,w,g[10],17,-42063),w=r(w,D,T,C,g[11],22,-1990404162),C=r(C,w,D,T,g[12],7,1804603682),T=r(T,C,w,D,g[13],12,-40341101),D=r(D,T,C,w,g[14],17,-1502002290),w=r(w,D,T,C,g[15],22,1236535329),C=i(C,w,D,T,g[1],5,-165796510),T=i(T,C,w,D,g[6],9,-1069501632),D=i(D,T,C,w,g[11],14,643717713),w=i(w,D,T,C,g[0],20,-373897302),C=i(C,w,D,T,g[5],5,-701558691),T=i(T,C,w,D,g[10],9,38016083),D=i(D,T,C,w,g[15],14,-660478335),w=i(w,D,T,C,g[4],20,-405537848),C=i(C,w,D,T,g[9],5,568446438),T=i(T,C,w,D,g[14],9,-1019803690),D=i(D,T,C,w,g[3],14,-187363961),w=i(w,D,T,C,g[8],20,1163531501),C=i(C,w,D,T,g[13],5,-1444681467),T=i(T,C,w,D,g[2],9,-51403784),D=i(D,T,C,w,g[7],14,1735328473),w=i(w,D,T,C,g[12],20,-1926607734),C=c(C,w,D,T,g[5],4,-378558),T=c(T,C,w,D,g[8],11,-2022574463),D=c(D,T,C,w,g[11],16,1839030562),w=c(w,D,T,C,g[14],23,-35309556),C=c(C,w,D,T,g[1],4,-1530992060),T=c(T,C,w,D,g[4],11,1272893353),D=c(D,T,C,w,g[7],16,-155497632),w=c(w,D,T,C,g[10],23,-1094730640),C=c(C,w,D,T,g[13],4,681279174),T=c(T,C,w,D,g[0],11,-358537222),D=c(D,T,C,w,g[3],16,-722521979),w=c(w,D,T,C,g[6],23,76029189),C=c(C,w,D,T,g[9],4,-640364487),T=c(T,C,w,D,g[12],11,-421815835),D=c(D,T,C,w,g[15],16,530742520),w=c(w,D,T,C,g[2],23,-995338651),C=p(C,w,D,T,g[0],6,-198630844),T=p(T,C,w,D,g[7],10,1126891415),D=p(D,T,C,w,g[14],15,-1416354905),w=p(w,D,T,C,g[5],21,-57434055),C=p(C,w,D,T,g[12],6,1700485571),T=p(T,C,w,D,g[3],10,-1894986606),D=p(D,T,C,w,g[10],15,-1051523),w=p(w,D,T,C,g[1],21,-2054922799),C=p(C,w,D,T,g[8],6,1873313359),T=p(T,C,w,D,g[15],10,-30611744),D=p(D,T,C,w,g[6],15,-1560198380),w=p(w,D,T,C,g[13],21,1309151649),C=p(C,w,D,T,g[4],6,-145523070),T=p(T,C,w,D,g[11],10,-1120210379),D=p(D,T,C,w,g[2],15,718787259),w=p(w,D,T,C,g[9],21,-343485551),h[0]=a(C,h[0]),h[1]=a(w,h[1]),h[2]=a(D,h[2]),h[3]=a(T,h[3])}function f(h){var g=[],C;for(C=0;C<64;C+=4)g[C>>2]=h.charCodeAt(C)+(h.charCodeAt(C+1)<<8)+(h.charCodeAt(C+2)<<16)+(h.charCodeAt(C+3)<<24);return g}function m(h){var g=[],C;for(C=0;C<64;C+=4)g[C>>2]=h[C]+(h[C+1]<<8)+(h[C+2]<<16)+(h[C+3]<<24);return g}function _(h){var g=h.length,C=[1732584193,-271733879,-1732584194,271733878],w,D,T,B,L,j;for(w=64;w<=g;w+=64)d(C,f(h.substring(w-64,w)));for(h=h.substring(w-64),D=h.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<D;w+=1)T[w>>2]|=h.charCodeAt(w)<<(w%4<<3);if(T[w>>2]|=128<<(w%4<<3),w>55)for(d(C,T),w=0;w<16;w+=1)T[w]=0;return B=g*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),L=parseInt(B[2],16),j=parseInt(B[1],16)||0,T[14]=L,T[15]=j,d(C,T),C}function k(h){var g=h.length,C=[1732584193,-271733879,-1732584194,271733878],w,D,T,B,L,j;for(w=64;w<=g;w+=64)d(C,m(h.subarray(w-64,w)));for(h=w-64<g?h.subarray(w-64):new Uint8Array(0),D=h.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<D;w+=1)T[w>>2]|=h[w]<<(w%4<<3);if(T[w>>2]|=128<<(w%4<<3),w>55)for(d(C,T),w=0;w<16;w+=1)T[w]=0;return B=g*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),L=parseInt(B[2],16),j=parseInt(B[1],16)||0,T[14]=L,T[15]=j,d(C,T),C}function u(h){var g="",C;for(C=0;C<4;C+=1)g+=s[h>>C*8+4&15]+s[h>>C*8&15];return g}function N(h){var g;for(g=0;g<h.length;g+=1)h[g]=u(h[g]);return h.join("")}N(_("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(a=function(h,g){var C=(h&65535)+(g&65535),w=(h>>16)+(g>>16)+(C>>16);return w<<16|C&65535}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function h(g,C){return g=g|0||0,g<0?Math.max(g+C,0):Math.min(g,C)}ArrayBuffer.prototype.slice=function(g,C){var w=this.byteLength,D=h(g,w),T=w,B,L,j,F;return C!==o&&(T=h(C,w)),D>T?new ArrayBuffer(0):(B=T-D,L=new ArrayBuffer(B),j=new Uint8Array(L),F=new Uint8Array(this,D,B),j.set(F),L)}}();function x(h){return/[\u0080-\uFFFF]/.test(h)&&(h=unescape(encodeURIComponent(h))),h}function E(h,g){var C=h.length,w=new ArrayBuffer(C),D=new Uint8Array(w),T;for(T=0;T<C;T+=1)D[T]=h.charCodeAt(T);return g?D:w}function b(h){return String.fromCharCode.apply(null,new Uint8Array(h))}function S(h,g,C){var w=new Uint8Array(h.byteLength+g.byteLength);return w.set(new Uint8Array(h)),w.set(new Uint8Array(g),h.byteLength),C?w:w.buffer}function V(h){var g=[],C=h.length,w;for(w=0;w<C-1;w+=2)g.push(parseInt(h.substr(w,2),16));return String.fromCharCode.apply(String,g)}function $(){this.reset()}return $.prototype.append=function(h){return this.appendBinary(x(h)),this},$.prototype.appendBinary=function(h){this._buff+=h,this._length+=h.length;var g=this._buff.length,C;for(C=64;C<=g;C+=64)d(this._hash,f(this._buff.substring(C-64,C)));return this._buff=this._buff.substring(C-64),this},$.prototype.end=function(h){var g=this._buff,C=g.length,w,D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],T;for(w=0;w<C;w+=1)D[w>>2]|=g.charCodeAt(w)<<(w%4<<3);return this._finish(D,C),T=N(this._hash),h&&(T=V(T)),this.reset(),T},$.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},$.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},$.prototype.setState=function(h){return this._buff=h.buff,this._length=h.length,this._hash=h.hash,this},$.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},$.prototype._finish=function(h,g){var C=g,w,D,T;if(h[C>>2]|=128<<(C%4<<3),C>55)for(d(this._hash,h),C=0;C<16;C+=1)h[C]=0;w=this._length*8,w=w.toString(16).match(/(.*?)(.{0,8})$/),D=parseInt(w[2],16),T=parseInt(w[1],16)||0,h[14]=D,h[15]=T,d(this._hash,h)},$.hash=function(h,g){return $.hashBinary(x(h),g)},$.hashBinary=function(h,g){var C=_(h),w=N(C);return g?V(w):w},$.ArrayBuffer=function(){this.reset()},$.ArrayBuffer.prototype.append=function(h){var g=S(this._buff.buffer,h,!0),C=g.length,w;for(this._length+=h.byteLength,w=64;w<=C;w+=64)d(this._hash,m(g.subarray(w-64,w)));return this._buff=w-64<C?new Uint8Array(g.buffer.slice(w-64)):new Uint8Array(0),this},$.ArrayBuffer.prototype.end=function(h){var g=this._buff,C=g.length,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],D,T;for(D=0;D<C;D+=1)w[D>>2]|=g[D]<<(D%4<<3);return this._finish(w,C),T=N(this._hash),h&&(T=V(T)),this.reset(),T},$.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},$.ArrayBuffer.prototype.getState=function(){var h=$.prototype.getState.call(this);return h.buff=b(h.buff),h},$.ArrayBuffer.prototype.setState=function(h){return h.buff=E(h.buff,!0),$.prototype.setState.call(this,h)},$.ArrayBuffer.prototype.destroy=$.prototype.destroy,$.ArrayBuffer.prototype._finish=$.prototype._finish,$.ArrayBuffer.hash=function(h,g){var C=k(new Uint8Array(h)),w=N(C);return g?V(w):w},$})})(wr);var Zb=wr.exports;const Qb=nl(Zb);class vb{md5(n,o,a){this.aborted=!1,this.progress=0;let s=0;const l=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,r=2097152,i=Math.ceil(n.size/r),c=new Qb.ArrayBuffer,p=new FileReader;d(),p.onloadend=f=>{if(c.append(f.target.result),s++,this.progress=s/i,a&&typeof a=="function"&&a(this.progress),this.aborted){o("aborted");return}s<i?d():o(null,c.end())};function d(){const f=s*r,m=f+r>=n.size?n.size:f+r;p.readAsArrayBuffer(l.call(n,f,m))}}abort(){this.aborted=!0}}function eC(t){const n=t.emit,o=e.ref(null),a=e.ref(null),s=e.ref(null),l=e.ref(null),r=e.ref(null),i=e.ref(!1),c=e.ref(0),p=e.ref(!1),d=e.ref([]),f=e.ref(!1),m=e.ref(!1),_=e.ref({1:".png,.jpg,.gif",2:".mp4",4:".mp3,.aac",5:".apk",6:".zip"}),k=e.ref([{label:y("imageFiles"),value:1},{label:y("videoFile"),value:2},{label:y("audioFiles"),value:4},{label:`APK${y("upgradePackage")}`,value:5},{label:y("softwarePackage"),value:6}]),u=e.ref([]),N=e.ref(null),x=e.ref(null),E=e.ref([]),b=e.ref([]),S=e.ref(File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice),V=e.ref(1024*1024*5);function $(){n("on-fileUploadNum",u.value.length)}function h(){p.value=!1}function g(){C(!0)}function C(O){p.value=O}function w(O){i.value=O}function D(O){l.value=O.startUploadingCallback||null,r.value=O.fileShardingCallback||null,a.value=O.onSubmit||null}function T(O,G){if(k.value=[{label:y("softwarePackage"),value:6}],N.value=6,s.value=G||null,D(O),f.value)return pe.ElMessage.error(y("fileReadingInProgressPleaseWait"));d.value=[],m.value=!0}function B(O,G){if(k.value=[{label:`APK${y("upgradePackage")}`,value:5}],N.value=5,s.value=G||null,D(O),f.value)return pe.ElMessage.error(y("fileReadingInProgressPleaseWait"));d.value=[],m.value=!0}function L(O,G){k.value=[{label:y("imageFiles"),value:1},{label:y("videoFile"),value:2},{label:y("audioFiles"),value:4}];const ne=O.folderId;if(ne){if(s.value=G||null,D({}),x.value=ne,D(O),f.value)return pe.ElMessage.error(y("fileReadingInProgressPleaseWait"));N.value=2,d.value=[],m.value=!0}}function j(){w(!1),m.value=!1}function F(){if(d.value.length===0)return pe.ElMessage.error(y("pleaseSelectAFile"));d.value.length>1&&pe.ElMessage.warning(y("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:x.value,onSubmit:a.value}).then(I=>{pe.ElMessage.success(`${y("startUploading")} ${I}`),G.length-1!==ne?O(G,ne+1).then(()=>{de({code:200})}):de({code:200})}).catch(()=>{G.length-1!==ne?O(G,ne+1).then(()=>{de({code:200})}):de({code:200})})});O(d.value,0).then(()=>{f.value=!1,r.value&&r.value(),d.value=[]})}function M(O){const G=O.type||"";if(N.value===1){if(!G.includes("image"))return pe.ElMessage.error(y("theUploadedFileIsNotOfImageType")),!1}else if(N.value===2){if(!G.includes("video"))return pe.ElMessage.error(y("theUploadedFileIsNotOfVideoType")),!1}else if(N.value===4){if(!G.includes("audio"))return pe.ElMessage.error(y("theUploadedFileIsNotOfAudioType")),!1}else if(N.value===5){if(!O.name.includes(`${_.value[5]}`))return pe.ElMessage.error(y("theUploadedFileIsNotAnAPKUpgradePackage")),!1}else if(N.value===6&&!O.name.includes(`${_.value[6]}`))return pe.ElMessage.error(y("theUploadedFileIsNotASoftwarePackage")),!1;return!0}function z(){E.value=[],b.value=[];const O=He.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 vb().md5(O,(_e,Ve)=>{_e?ne(_e):G({md5:Ve})})})}function Y(O){return new Promise(G=>{const ne=O.size;let de=0,_e=null;const Ve=Math.ceil(ne/V.value),I=[],A=()=>{const H=de*V.value,te=H+V.value>=ne?ne:H+V.value;if(_e=S.value.call(O,H,te),I.push(_e),de++,de<Ve)return A();G(I)};A()})}function X(O){const G=new File([O.file],O.file.name.replace(/\s*/g,""));d.value.push({name:G.name,file:G})}function P(O,G){if(O.file.name===G.fileName){const ne=new File([O.file],O.file.name.replace(/\s*/g,""));v(ne,{fileType:G.fileType,folderId:G.folderId,onSubmit:a.value,md5:G.md5}).then(de=>{pe.ElMessage.success(`${y("startUploading")} ${de}文件`)})}else pe.ElMessage.error(y("pleaseSelectTheSameFileForUploading"))}function v(O,G){return new Promise(async(ne,de)=>{const _e=G.md5||Hn(1);await Y(O).then(async(Ve=[])=>{const I=u.value.find(A=>A.md5===_e);if(he(_e,Ve),I){const A=I.status,H=I.errorReason;A==="error"&&!H?(ne(O.name),ke(I.md5)):de()}else{const A=await Yb({cannedACL:i.value?"public-read":"",fileName:O.name,contentLength:O.size,contentType:O.type,partSize:V.value});if(A.code===200){const H=A.data;if(H){const te=H.list||[],Ne={md5:_e,fileType:G.fileType,folderId:G.folderId,onSubmit:G.onSubmit,fileName:O.name,size:O.size,type:O.type,key:H.key,uploadId:H.uploadId,status:"uploading",completionTime:null,progress:0,finishNum:0,totalNum:te.length,shardingList:te.map((me,ue)=>({key:me.key,url:me.url,partNumber:ue+1,isUpload:!1,etag:null}))};ne(O.name),u.value.unshift(Ne),$(),e.nextTick(()=>{U(),ke(Ne.md5)})}}}})})}function Te(O){return new Promise(async(G,ne)=>{const de=await Kb(O);de.code===200&&(de.data?ne(new Error(y("prohibitUploadingFilesWithTheSameNameOnThePlatform"))):G({code:200}))})}function he(O,G){const ne=E.value.findIndex(de=>de.md5===O);ne===-1?E.value.push({md5:O,fileChunkList:G}):E.value[ne].fileChunkList=G}function ke(O){const G=u.value.find(ne=>ne.md5===O);if(G.status==="amalgamation")ee(G);else if(G.status==="sharding")J(G);else{const ne=E.value.findIndex(A=>A.md5===G.md5);if(ne===-1){pe.ElMessage.error(y("errorInUploadingFile"));return}const de=E.value[ne].fileChunkList,_e=(A,H)=>new Promise((te,Ne)=>{const me=A[H];if(me)if(me.isUpload)A.length-1!==H?_e(A,H+1).then(()=>{te({code:200})}):te({code:200});else{const ue=de[H],W=new File([ue],G.name,{type:G.type,lastModified:Date.now()});Oe(me.url,W).then(K=>{me.etag=K,me.isUpload=!0;const ce=G.finishNum+1,we=G.totalNum;G.finishNum=ce,G.progress=Number.parseInt(String(ce/we*80)),U(),A[H]=me,A.length-1!==H?_e(A,H+1).then(()=>{te({code:200})}):te({code:200})})}}),Ve=G.shardingList,I=Ve.findIndex(A=>A.isUpload===!1);I!==-1?(G.status="uploading",_e(Ve,I).then(()=>{G.status="sharding",J(G)})):(G.status="sharding",J(G))}}function Oe(O,G){return new Promise((ne,de)=>{Jb.put({url:O,data:G}).then(_e=>{ne(_e)}).catch(()=>{de(new Error(y("uploadError")))})})}async function J(O){U();const G=await Gb({key:O.key,uploadId:O.uploadId,partETagList:O.shardingList.map(ne=>({partNumber:ne.partNumber,etag:ne.etag}))});(G.code===200||G.code===10020)&&(O.status="amalgamation",O.progress=80,ee(O))}async function ee(O){U();const G=()=>{O.completionTime=jo(new Date,"Y-M-h D:m:s"),O.status="success",b.value.unshift(O),Z(O.md5),O.onSubmit&&O.onSubmit(O),e.nextTick(()=>{U()})};s.value?s.value(O,()=>{G()}):(await qb({fileType:O.fileType,folderId:O.folderId,key:O.key,size:O.size})).code===200&&(pe.ElMessage.success(y("uploadSuccessful")),G())}function ie(O,G){G.splice(O,1)}function le(O){var G;(G=o.value)==null||G.show(O.fileCloudKey).then(()=>{O.onSubmit&&O.onSubmit()})}async function Z(O){if(!O)return;const G=u.value.findIndex(ne=>ne.md5===O);if(G!==-1){const ne=u.value[G];u.value.splice(G,1);const de=E.value.findIndex(_e=>_e.md5===O);de!==-1&&E.value.splice(de,1),$(),ne.key&&ne.uploadId?(await Hb({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:k,fileType:N,folderId:x,fileList:E,fileUploadList:u,successFileList:b,blobSlice:S,defaultChunkSize:V,fileUploadNumFn:$,onClose:h,show:g,setDialogVisible:C,setPublicRea:w,setCallback:D,fileUploadVersionShow:T,fileUploadAPkShow:B,fileUploadShow:L,fileUploadClose:j,fileUploadSubmit:F,beforeAvatarUpload:M,getData:z,saveData:U,getFileMd5:R,sliceFile:Y,uploadListRequestFn:X,handleHttpRequestImg:P,fileRequestFn:v,findByFileCloudKey:Te,fileListPushFn:he,uploadSliceFile:ke,uploadPart:Oe,completeMultipartUpload:J,mediaFileFn:ee,deleteListFn:ie,apkConfirmUploadShow:le,deleteFileUpload:Z}}const tC=t=>(e.pushScopeId("data-v-396f7126"),t=t(),e.popScopeId(),t),nC={class:"box-border text-hy-text-main el-drag-dialog w-full h-full rounded overflow-hidden border border-hy-main shadow-[0_0_6px_0] shadow-hy-main flex flex-col"},oC={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},aC={class:"absolute right-[10px]"},sC={class:"dialog_body"},lC={class:"mb-[10px]"},rC={class:"text-sm leading-[30px]"},iC={class:"mb-[10px]"},cC={class:"text-sm leading-[30px]"},dC={class:"text-center"},pC={class:"text-xs text-hy-text-secondary"},fC={class:"uploadList select-none"},mC={class:"flex-grow w-0"},hC={class:"text-right mt-[20px]"},uC={class:"box-border text-hy-text-main el-drag-dialog w-full h-full rounded overflow-hidden border border-hy-main shadow-[0_0_6px_0] shadow-hy-main flex flex-col"},_C={class:"relative border-b border-hy-border-2 pl-2 text-[18px] font-bold h-[50px] flex items-center justify-between"},gC={class:"absolute right-[10px]"},yC={class:"dialog_body el-dialog__body !p-[0_0_10px_0]"},xC={class:"progressBox text-hy-text-main el-progress-bar__outer_backgroundv3"},kC={class:"flex items-center"},NC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},bC={key:0,class:"flex items-center justify-center"},CC={key:0,class:"select-none click-box"},wC={class:"iconCloseBox click-box ml-[4px]"},EC={class:"flex flex-row leading-[20px] text-hy-danger select-none"},SC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},TC={class:"flex flex-row mb-[4px]"},DC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},VC=tC(()=>e.createElementVNode("span",null,[e.createElementVNode("i",{class:"el-icon-loading text-hy-main"})],-1)),$C={class:"flex flex-row leading-[20px]"},BC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},IC={class:"text-hy-main"},AC={class:"flex flex-row mb-[4px]"},LC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},FC={class:"iconCloseBox click-box"},OC={class:"flex flex-row leading-[20px]"},RC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},PC={class:"text-hy-success"},MC={key:0,class:"text-hy-text-secondary flex items-center justify-center text-xs noData h-full"},UC={class:"text-center"},zC={class:"mt-[10px]"},WC=be(e.defineComponent({__name:"file-upload",emits:["on-fileUploadNum"],setup(t,{expose:n,emit:o}){const a=o,{apkConfirmUploadRef:s,onSubmit:l,publicRea:r,customFileSave:i,startUploadingCallback:c,fileShardingCallback:p,dragLevel:d,dialogVisible:f,uploadList:m,loading:_,fileUploadVisible:k,uploadAccept:u,fileTypeList:N,fileType:x,folderId:E,fileList:b,fileUploadList:S,successFileList:V,blobSlice:$,defaultChunkSize:h,fileUploadNumFn:g,onClose:C,show:w,setDialogVisible:D,setPublicRea:T,setCallback:B,fileUploadVersionShow:L,fileUploadAPkShow:j,fileUploadShow:F,fileUploadClose:M,fileUploadSubmit:z,beforeAvatarUpload:U,getData:R,saveData:Y,getFileMd5:X,sliceFile:P,uploadListRequestFn:v,handleHttpRequestImg:Te,fileRequestFn:he,findByFileCloudKey:ke,fileListPushFn:Oe,uploadSliceFile:J,uploadPart:ee,completeMultipartUpload:ie,mediaFileFn:le,deleteListFn:Z,apkConfirmUploadShow:O,deleteFileUpload:G}=eC({emit:a});return e.onMounted(()=>{R()}),n({fileUploadShow:F,fileUploadAPkShow:j,fileUploadVersionShow:L,show:w}),(ne,de)=>{const _e=e.resolveComponent("svg-icon"),Ve=e.resolveComponent("el-option"),I=e.resolveComponent("el-select"),A=e.resolveComponent("el-icon"),H=e.resolveComponent("el-upload"),te=e.resolveComponent("el-button"),Ne=e.resolveComponent("el-dialog"),me=e.resolveComponent("el-tooltip"),ue=e.resolveComponent("el-progress"),W=e.resolveDirective("draggable");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(Ne,{"model-value":e.unref(k),"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"w-[420px] !p-0 border-[0] shadow-[0_0_0_0]"},{default:e.withCtx(()=>[e.createVNode($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",nC,[e.createElementVNode("div",oC,[e.createElementVNode("span",null,e.toDisplayString(e.unref(y)("fileUpload")),1),e.createElementVNode("div",aC,[e.createVNode(_e,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(M),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",sC,[e.createElementVNode("div",lC,[e.createElementVNode("div",rC,e.toDisplayString(e.unref(y)("fileType")),1),e.createVNode(I,{modelValue:e.unref(x),"onUpdate:modelValue":de[0]||(de[0]=K=>e.isRef(x)?x.value=K:null),class:"!w-full",placeholder:e.unref(y)("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",iC,[e.createElementVNode("div",cC,e.toDisplayString(e.unref(y)("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(x)}`],action:"",drag:"","show-file-list":!1,multiple:""},{default:e.withCtx(()=>[e.createElementVNode("div",dC,[e.createVNode(A,{class:"text-[60px] text-hy-text-secondary"},{default:e.withCtx(()=>[e.createVNode(e.unref(Md))]),_:1}),e.createElementVNode("div",pC,[e.createTextVNode(e.toDisplayString(e.unref(y)("dragFilesHereOr")),1),e.createElementVNode("em",null,e.toDisplayString(e.unref(y)("clickToUpload")),1)])])]),_:1},8,["before-upload","http-request","accept"]),e.createElementVNode("ul",fC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(K,ce)=>(e.openBlock(),e.createElementBlock("li",{key:`${ce}uploadList`},[e.createElementVNode("span",mC,e.toDisplayString(K.name),1),e.createVNode(_e,{width:"16",height:"16",name:"icon-close",class:"click-box iconCloseBox clickBox text-hy-danger",onClick:we=>e.unref(Z)(ce,e.unref(m))},null,8,["onClick"])]))),128))])])]),e.createElementVNode("div",hC,[e.createVNode(te,{type:"primary",class:"w-[100px]",onClick:e.unref(M)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("close")),1)]),_:1},8,["onClick"]),e.createVNode(te,{class:"w-[100px]",onClick:e.unref(z)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("confirm")),1)]),_:1},8,["onClick"])])])])]),_:1})]),_:1},8,["model-value"]),e.createVNode(Ne,{"model-value":e.unref(f),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,modal:!1,draggable:!0,"modal-class":"custom-transparent",class:"w-[300px] !p-0 border-[0] shadow-[0_0_0_0] mr-[100px]",top:"15vh"},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",uC,[e.createElementVNode("div",_C,[e.createElementVNode("span",null,e.toDisplayString(e.unref(y)("fileUpload")),1),e.createElementVNode("div",gC,[e.createVNode(_e,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(C),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",yC,[e.createElementVNode("ul",xC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(S),(K,ce)=>(e.openBlock(),e.createElementBlock("li",{key:`${ce}fileUploadList`},[e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",kC,[e.createElementVNode("div",NC,e.toDisplayString(K.fileName),1),K.fileType!==5?(e.openBlock(),e.createElementBlock("div",bC,[e.createVNode(H,{class:"flex items-center justify-center","before-upload":e.unref(U),"http-request":we=>e.unref(Te)(we,K),action:"","show-file-list":!1},{default:e.withCtx(()=>[e.createVNode(me,{placement:"top","open-delay":500,class:"item",effect:"dark",content:e.unref(y)("selectTheSameFileAgainForUploading")},{default:e.withCtx(()=>[K.errorReason?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",CC,[e.createVNode(_e,{width:"16",height:"16",name:"live-broadcast-refresh-v3"})]))]),_:2},1032,["content"])]),_:2},1032,["before-upload","http-request"]),e.createElementVNode("div",wC,[e.createVNode(_e,{width:"16",height:"16",name:"icon-close",class:"text-hy-danger",onClick:we=>e.unref(G)(K.md5)},null,8,["onClick"])])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",EC,[e.createElementVNode("div",SC,e.toDisplayString(K.errorReason||e.unref(y)("uploadFailed")),1),e.createElementVNode("span",null,e.toDisplayString(K.progress)+"%",1)]),e.createVNode(ue,{"show-text":!1,status:"exception","text-inside":!0,"stroke-width":9,percentage:K.progress},null,8,["percentage"])],512),[[e.vShow,K.status==="error"]]),e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",TC,[e.createElementVNode("div",DC,e.toDisplayString(K.fileName),1),VC]),e.createElementVNode("div",$C,[e.createElementVNode("div",BC,[e.createElementVNode("span",null,e.toDisplayString(e.unref(y)("uploadingPatientWait"))+"…",1)]),e.createElementVNode("span",IC,e.toDisplayString(K.progress)+"%",1)]),e.createVNode(ue,{"show-text":!1,"text-inside":!0,"stroke-width":9,percentage:K.progress},null,8,["percentage"])],512),[[e.vShow,K.status!=="error"]])]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(V),(K,ce)=>(e.openBlock(),e.createElementBlock("li",{key:`${ce}successFileList`},[e.createElementVNode("div",AC,[e.createElementVNode("div",LC,e.toDisplayString(K.fileName),1),e.createElementVNode("div",FC,[e.createVNode(_e,{width:"16",height:"16",class:"text-hy-danger",name:"icon-close",onClick:we=>e.unref(Z)(ce,e.unref(V))},null,8,["onClick"])])]),e.createElementVNode("div",OC,[e.createElementVNode("div",RC,[e.createElementVNode("span",null,e.toDisplayString(K.completionTime),1)]),e.createElementVNode("span",PC,e.toDisplayString(e.unref(y)("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",MC,[e.createElementVNode("div",UC,[e.createVNode(_e,{name:"base-no-data",class:"!w-[50px] !h-[50px]"}),e.createElementVNode("div",zC,e.toDisplayString(e.unref(y)("noData-3")),1)])])):e.createCommentVNode("",!0)])])])]),_:1})),[[W]])]),_:1},8,["model-value"])])}}}),[["__scopeId","data-v-396f7126"]]);function jC({emit:t,props:n}){const o=e.shallowRef(),a=e.shallowRef(),s=e.ref(),{H:l,POI:r,isShowMap:i,layersUrlList:c,mapConfig:p}=Qt();function d(){i&&e.nextTick(async()=>{const x=He.getCache("userInfo");let E=[];x!=null&&x.lng&&(x!=null&&x.lat)&&(E=[x.lat,x.lng]),E.length===0&&(E=null),o.value=await l.map("selectMapLocation",{maxZoom:p.maxZoom||18,minZoom:p.minZoom||13,zoom:p.zoom||13,center:E,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:c,layerType:p.satelliteMap}),o.value.on("complete",()=>{t("on-map-ready"),n.latlng&&k(n.latlng)}),o.value.on("left-click",b=>{s.value=null,m({lng:b.latlng.lng,lat:b.latlng.lat})})})}async function f(x){const E=await r.placeSearch({keywords:x,offset:10,page:1});if(E){const b=E[0];m({lng:b.lng,lat:b.lat})}else t("on-geographical-position",{})}async function m(x){var b;const E=await r.reverseGeocoder(x);E&&((b=E.address)!=null&&b.length)||Se({type:"warning",message:"未获取到地址信息"}),_({lng:x.lng,lat:x.lat,address:E.formatted_address,name:E.formatted_address,...E})}function _(x){s.value=x,t("on-geographical-position",x),k()}function k(x){a.value&&l.removeMarker(o.value,a.value);let E,b;x?(E=x.lat,b=x.lng):(E=s.value.lat,b=s.value.lng);let S={icon:'<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAgCAYAAAASYli2AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAFKADAAQAAAABAAAAIAAAAADmfO67AAAEgklEQVRIDbVVXWhcVRCeuXuT3SSmmzQEhFYfRBEapGgfYuiPqYkI/rQBjQo+iK1JLdqKtD6IL3kv9CFBitsKCqYPaRHRVokhJoRKVRQpEsGXPpTkqZifxmw22XvO+M25e9Z7N6lPepa7M2fmmzkzc+acw7TFGBIJbl+nZyzRiyzUKUQ7FMZM8+B/DIgut3fR10PMgKQHp6dEb30vB4ylYRHZrUo4IA/yvKPMNzIBnfxwL88kfXiskw1Oy3EhGSGRTBJ0d54NM58odPM5j6k6HJiUAUu24BWOCmJBnlggFivah6mSCo8SDJ7vCc+ryDk8OiGPijXXhSXrQaqM1QkPmxaIF2MO1vF1ffwU/xqqmYnMGaSarS7pvKpGRyW6eFIz9zqbZZIzUPby6+MbnVGZfnD4mpRY2EogF8gG40FADVZsL6J+DSVwmbn8EgkgusfDjXXpqwaRcMjE1oocGX2u/tNqcESjr34ZjSGaK8gIpUsYABSR9AViqMeim9xn/qFGaHj0cMqZ8zt6KPzGWnvOAmAibGOFKm8M9wSRsfep0CkSFFl9nogsxQJ21WJx3SNPlY+s3RmS4TaL4+AGiKsOqLFSTHlJTDjKLEc2qkkYAOa2AIVaMJGGjyiRuqeYdCV8pNiyNZ2iWITqqfLW2IUAkczBKezhFGfO0ygyH7wwWnoo5QmT/jFpl8i+ryVSZ5463tJ8iMinEPseZ6iZVzYO7L2W7VTfZ6UjdfXZyVyJcn/J+sFyaW0Eu98eL5QwUNMg+I4PfVLcK2KvKaD2IMRG+s8RTiCWkozHqDTtjijgYJ/GQ89eWJmBcn+6qzYvgIsAiwpq78zgEDx+jjLNXD3a/ASaU7PMnBbDZVdktINSV+RK4X2fxjVWvfacJfRwhXKZJfOe+nIOr7zR+BMuh9PaU84I1PWXbhZ4AY0/zyuNF3ZU5JT6iIPT/8roHblzllne1TptPWqqFhf27MTb+VMeHxfDz0CfHF4q4FIYUFGyRglIlYVxYfKdlmNVARiXclJw4ET+TfTWRZ+6p5q69pynqN/F/Sfzx5O2ym+KUIXdUxLan5cuQ3u42ksVsCYdMH9Bj+X7pw9ypPjk2BShKhXYlG15GdFMuB3WY6nHU09HJN821OVf2cqZ2m4ZoSp0PP+RNC4sLI7jZOzTOSK7tn1769NfHeO7XxwKTA/cN0PE3bC/PUvBjg5qWalbGlNMczl8aX72nqX2DrLTKClwqIC/qhRRE+GeQalrbqSmKEvbgg3K53LUiHszizxwu2MIRWFA66USFW09LYfrdGelSKu/FLjs9PiLgTrrl0xLG21Doz6M1+oRaB5A/VrxQOMtiXEoOO5QWqsLaREWN/Gs/dbSQH/AdokuMfog4bC7A0d0kZoyObofh2A3otqFrw1NjheN3MOP/AxkeDLpT9g2Q7hsizQH2+XpS+ou4XB6lqTnQVpFirfg4AbSW0F1WsE3YAGXiUaIBdbwLcLxTfTMLW6kVbWN3f0PNdyibdK7vGsnZUp5xIORWyb5fY7Mv+2yj/Q/o38DhqCjJovBnOsAAAAASUVORK5CYII=" style="width: 20px; height: 32px;" />',zIndexOffset:10,iconAnchor:[10,32]};n.markerItemFn&&(S=n.markerItemFn()),l.setView(o.value,[E,b],18),a.value=l.marker(o.value,[E,b],S),l.markerAddTo(o.value,a.value)}function u(){a.value&&l.removeMarker(o.value,a.value)}function N(x){a.value&&l.updateMarkerIcon(a.value,x)}return{H:l,map:o,POI:r,marker:a,isShowMap:i,initMap:d,geographicalPositionFn:_,throughCoordinatePosition:m,placeSearchFn:f,setContentFn:N,removeMarker:u}}const HC={class:"w-full h-full relative"},YC={class:"relative z-[1] w-full h-full"},GC={id:"selectMapLocation",ref:"selectMapLocation",class:"w-full h-full"},qC=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:_}=jC({emit:s,props:a});return e.onMounted(()=>{r()}),n({throughCoordinatePosition:i,placeSearchFn:c,setContentFn:p,removeMarker:d,H:f,map:m,POI:_}),(k,u)=>(e.openBlock(),e.createElementBlock("div",HC,[e.withDirectives(e.createVNode(Gt,{class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(l)]]),e.createElementVNode("div",YC,[e.createElementVNode("div",GC,null,512)])]))}}),[["__scopeId","data-v-8ec3e599"]]);function KC({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(y("theFileHasBeenDeletedAndCannotBeViewed-0"));d.fileType===1||d.fileType===2||d.fileType}function i(){return new Promise(async(d,f)=>{if(t.formType===1){const m=await ju({taskId:o.value,deviceUserId:n.value});if(m.code===200){const _=m.data||{};a.value=_||{},a.value.imageList&&(a.value.imageListV2=a.value.imageList.map(k=>k.filePath)),d(0)}}else if(t.formType===2){const m=await Bl({recordId:l.value});if(m.code===200){const _=m.data||{};a.value=_||{},a.value.imageList&&(a.value.imageListV2=a.value.imageList.map(k=>k.filePath)),d(0)}}})}function c(d={}){if(!d)return;const f=Se.warning(y("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:y}}const XC={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},JC={key:0},ZC={key:1},QC={class:"absolute right-[12px] top-[12px]"},vC={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg relative z-10"},ew={style:{height:"500px"},class:"c_fff fs_12 dialog_body text-hy-text-main text-[12px]"},tw={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},nw={class:"information"},ow={class:"flex_vertically_center flex items-center"},aw={style:{"margin-left":"6px"}},sw={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},lw={class:"flex_vertically_center flex items-center"},rw={style:{"margin-left":"6px"}},iw={key:0,class:"type_box success"},cw={key:1,class:"type_box"},dw={class:"form fs_12 text-[12px]"},pw={key:0},fw={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},mw={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"},hw={key:1},uw={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},_w={class:"r-f mb_10 flex_vertically_center flex mb-[10px] items-center"},gw={class:"mr_10 label flex-shrink mr-[10px]"},yw={class:"r-f flex_vertically_center flex items-center"},xw={class:"mr_10 label label_answer flex-shrink mr-[10px]"},kw={key:0,class:"c_theme text-hy-text-primary"},Nw={key:1,class:"c_9DA7B2 text-hy-text-secondary"},bw={key:2},Cw={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px]"},ww={class:"group-item"},Ew=["onClick"],Sw={key:0,class:"c-f-i group-content r-f flex"},Tw={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},Dw=["src"],Vw={key:1,style:{"flex-grow":"1"}},$w={class:"icon-box c-f-i flex"},Bw={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},Iw={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},Aw={key:0,class:"information-type"},Lw={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},Fw={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},Ow={key:0,class:"c_9DA7B2 text-hy-text-secondary"},Rw={key:1},Pw={key:1,class:"c-f-i group-content r-f flex"},Mw={style:{"flex-grow":"1"}},Uw={class:"icon-box c-f-i flex"},zw={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},Ww={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},jw={key:0,class:"information-type"},Hw={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},Yw={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},Gw={key:0,class:"c_9DA7B2 text-hy-text-secondary"},qw={key:1},Kw={key:2,class:"c-f-i group-content r-f flex"},Xw={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},Jw=["src"],Zw={key:1,style:{"flex-grow":"1"}},Qw={class:"icon-box c-f-i flex"},vw={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},eE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},tE={key:0,class:"information-type"},nE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},oE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},aE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},sE={key:1},lE={key:3},rE={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},iE={class:"group-item"},cE=["onClick"],dE={key:0,class:"c-f-i group-content r-f flex"},pE={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},fE=["src"],mE={key:1,style:{"flex-grow":"1"}},hE={class:"icon-box c-f-i flex"},uE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},_E={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},gE={key:0,class:"information-type"},yE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},xE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},kE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},NE={key:1},bE={key:1,class:"c-f-i group-content r-f flex"},CE={style:{"flex-grow":"1"}},wE={class:"icon-box c-f-i flex"},EE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},SE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},TE={key:0,class:"information-type"},DE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},VE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},$E={key:0,class:"c_9DA7B2 text-hy-text-secondary"},BE={key:1},IE={key:2,class:"c-f-i group-content r-f flex"},AE={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},LE=["src"],FE={key:1,style:{"flex-grow":"1"}},OE={class:"icon-box c-f-i"},RE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},PE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},ME={key:0,class:"information-type"},UE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},zE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},WE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},jE={key:1},Er=be(e.defineComponent({__name:"submission-form",props:{formType:{default:1},draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const o=t,{$t:a,show:s,dialogVisible:l,deviceReport:r,onClose:i,clickGroupItem:c}=KC({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]=k=>e.isRef(l)?l.value=k:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"530px",modal:!p.draggable,draggable:p.draggable,"modal-class":p.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",XC,[o.formType===1?(e.openBlock(),e.createElementBlock("span",JC,e.toDisplayString(e.unref(a)("exception")),1)):o.formType===2?(e.openBlock(),e.createElementBlock("span",ZC,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",QC,[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",vC,[e.createElementVNode("div",ew,[e.createElementVNode("div",tw,[e.createElementVNode("div",nw,[e.createElementVNode("div",ow,[e.createVNode(f,{style:{width:"14px",height:"14px"},name:"icon-user","class-name":"text-hy-text-main"}),e.createElementVNode("span",aw,[e.createTextVNode(e.toDisplayString(e.unref(r).name),1),e.unref(r).jobNum?(e.openBlock(),e.createElementBlock("span",sw,"("+e.toDisplayString(e.unref(r).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",lw,[e.createVNode(f,{name:"base-every-day-time",class:"w-[16px] h-[16px]"}),e.createElementVNode("span",rw,e.toDisplayString(e.unref(r).executeDtm),1)]),e.unref(r).checkState===1?(e.openBlock(),e.createElementBlock("div",iw,e.toDisplayString(e.unref(a)("normal")),1)):e.unref(r).checkState===2?(e.openBlock(),e.createElementBlock("div",cw,e.toDisplayString(e.unref(a)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",dw,[e.unref(r).dealSituation?(e.openBlock(),e.createElementBlock("div",pw,[e.createElementVNode("div",fw,e.toDisplayString(e.unref(a)("handling")),1),e.createElementVNode("p",mw,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",hw,[e.createElementVNode("div",uw,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,(k,u)=>(e.openBlock(),e.createElementBlock("li",{key:u,class:"border-top ptb_10 p-[10px_0px]"},[e.createElementVNode("div",_w,[e.createElementVNode("p",gw,e.toDisplayString(e.unref(a)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(k.optionTitle),1)]),e.createElementVNode("div",yw,[e.createElementVNode("p",xw,e.toDisplayString(e.unref(a)("answer")),1),k.optionValue?(e.openBlock(),e.createElementBlock("span",kw,e.toDisplayString(k.optionValue),1)):(e.openBlock(),e.createElementBlock("span",Nw,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",bw,[e.createElementVNode("div",Cw,e.toDisplayString(e.unref(a)("picture")),1),e.createElementVNode("div",ww,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).imageList,k=>(e.openBlock(),e.createElementBlock("div",{key:k.id,onClick:u=>e.unref(c)(k)},[k.fileType===1?(e.openBlock(),e.createElementBlock("div",Sw,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:k.check},"group-content-item"])},[k.filePath&&k.del!==1?(e.openBlock(),e.createElementBlock("div",Tw,[e.createElementVNode("img",{src:k.filePath,class:"h_100vh h-full"},null,8,Dw)])):(e.openBlock(),e.createElementBlock("div",Vw,[e.createElementVNode("div",$w,[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",Bw,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:k.del===1}])},e.toDisplayString(k.fileName),3)]),e.createElementVNode("div",Iw,[k.type===1?(e.openBlock(),e.createElementBlock("div",Aw,e.toDisplayString(e.unref(a)("daily")),1)):k.type===2?(e.openBlock(),e.createElementBlock("div",Lw,e.toDisplayString(e.unref(a)("task")),1)):k.type===3?(e.openBlock(),e.createElementBlock("div",Fw," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[k.hadPoint?(e.openBlock(),e.createElementBlock("li",Ow,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),k.hadRemark?(e.openBlock(),e.createElementBlock("li",Rw,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),k.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)])):k.fileType===4?(e.openBlock(),e.createElementBlock("div",Pw,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:k.check},"group-content-item"])},[e.createElementVNode("div",Mw,[e.createElementVNode("div",Uw,[e.createVNode(f,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(f,{name:"menu-micphone--2","class-name":"w-[40px] h-[40px]"}),e.createVNode(f,{style:{"margin-left":"4px"},name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])]),e.createElementVNode("div",zw,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:k.del===1}])},e.toDisplayString(k.fileName),3)]),e.createElementVNode("div",Ww,[k.type===1?(e.openBlock(),e.createElementBlock("div",jw,e.toDisplayString(e.unref(a)("daily")),1)):k.type===2?(e.openBlock(),e.createElementBlock("div",Hw,e.toDisplayString(e.unref(a)("task")),1)):k.type===3?(e.openBlock(),e.createElementBlock("div",Yw," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[k.hadPoint?(e.openBlock(),e.createElementBlock("li",Gw,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),k.hadRemark?(e.openBlock(),e.createElementBlock("li",qw,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),k.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)])):k.fileType===2?(e.openBlock(),e.createElementBlock("div",Kw,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:k.check},"group-content-item"])},[k.screenshot1?(e.openBlock(),e.createElementBlock("div",Xw,[e.createElementVNode("img",{src:k.screenshot1,class:"h_100vh h-full"},null,8,Jw)])):(e.openBlock(),e.createElementBlock("div",Zw,[e.createElementVNode("div",Qw,[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",vw,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:k.del===1}])},e.toDisplayString(k.fileName),3)]),e.createElementVNode("div",eE,[k.type===1?(e.openBlock(),e.createElementBlock("div",tE,e.toDisplayString(e.unref(a)("daily")),1)):k.type===2?(e.openBlock(),e.createElementBlock("div",nE,e.toDisplayString(e.unref(a)("task")),1)):k.type===3?(e.openBlock(),e.createElementBlock("div",oE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[k.hadPoint?(e.openBlock(),e.createElementBlock("li",aE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),k.hadRemark?(e.openBlock(),e.createElementBlock("li",sE,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),k.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,Ew))),128))])])):e.createCommentVNode("",!0),e.unref(r).videoList&&e.unref(r).videoList.length?(e.openBlock(),e.createElementBlock("div",lE,[e.createElementVNode("div",rE,e.toDisplayString(e.unref(a)("video")),1),e.createElementVNode("div",iE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).videoList,k=>(e.openBlock(),e.createElementBlock("div",{key:k.id,onClick:u=>e.unref(c)(k)},[k.fileType===1?(e.openBlock(),e.createElementBlock("div",dE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:k.check},"group-content-item"])},[k.filePath&&k.del!==1?(e.openBlock(),e.createElementBlock("div",pE,[e.createElementVNode("img",{src:k.filePath,class:"h_100vh h-full"},null,8,fE)])):(e.openBlock(),e.createElementBlock("div",mE,[e.createElementVNode("div",hE,[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",uE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:k.del===1}])},e.toDisplayString(k.fileName),3)]),e.createElementVNode("div",_E,[k.type===1?(e.openBlock(),e.createElementBlock("div",gE,e.toDisplayString(e.unref(a)("daily")),1)):k.type===2?(e.openBlock(),e.createElementBlock("div",yE,e.toDisplayString(e.unref(a)("task")),1)):k.type===3?(e.openBlock(),e.createElementBlock("div",xE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[k.hadPoint?(e.openBlock(),e.createElementBlock("li",kE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),k.hadRemark?(e.openBlock(),e.createElementBlock("li",NE,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),k.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)])):k.fileType===4?(e.openBlock(),e.createElementBlock("div",bE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:k.check},"group-content-item"])},[e.createElementVNode("div",CE,[e.createElementVNode("div",wE,[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",EE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:k.del===1}])},e.toDisplayString(k.fileName),3)]),e.createElementVNode("div",SE,[k.type===1?(e.openBlock(),e.createElementBlock("div",TE,e.toDisplayString(e.unref(a)("daily")),1)):k.type===2?(e.openBlock(),e.createElementBlock("div",DE,e.toDisplayString(e.unref(a)("task")),1)):k.type===3?(e.openBlock(),e.createElementBlock("div",VE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[k.hadPoint?(e.openBlock(),e.createElementBlock("li",$E,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),k.hadRemark?(e.openBlock(),e.createElementBlock("li",BE,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),k.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)])):k.fileType===2?(e.openBlock(),e.createElementBlock("div",IE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:k.check},"group-content-item"])},[k.screenshot1?(e.openBlock(),e.createElementBlock("div",AE,[e.createElementVNode("img",{src:k.screenshot1,class:"h_100vh h-full"},null,8,LE)])):(e.openBlock(),e.createElementBlock("div",FE,[e.createElementVNode("div",OE,[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",RE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:k.del===1}])},e.toDisplayString(k.fileName),3)]),e.createElementVNode("div",PE,[k.type===1?(e.openBlock(),e.createElementBlock("div",ME,e.toDisplayString(e.unref(a)("daily")),1)):k.type===2?(e.openBlock(),e.createElementBlock("div",UE,e.toDisplayString(e.unref(a)("task")),1)):k.type===3?(e.openBlock(),e.createElementBlock("div",zE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[k.hadPoint?(e.openBlock(),e.createElementBlock("li",WE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),k.hadRemark?(e.openBlock(),e.createElementBlock("li",jE,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),k.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,cE))),128))])])):e.createCommentVNode("",!0)])])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-159e6064"]]);function HE(t){return oe.post({url:"taskAssign/v2/taskItem/select",data:t,isFormData:!0})}function ia(t){return oe.post({url:"taskAssign/v2/taskItemView",data:t,isFormData:!0})}function YE(t){return oe.post({url:"taskAssign/taskExample/select",data:t,isFormData:!0})}function GE({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(x,E)=>{const b=await(t.controller==="taskAssign/taskExample"?YE({id:N}):Mu({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}))),x(0)}})}function _(N={}){m(N.id).then(()=>{s.value=!0})}function k(N){console.log(N),o.value=[],a.value=[],n.value=N;const x=N.images;x&&x.length&&(o.value=x.split(","));const E=N.videos;E&&E.length&&(a.value=E.split(",").map((b,S)=>({filePath:b,fileName:`任务示例视频${S+1}.${b.split(".").reverse()[0]}`,id:S+1}))),s.value=!0,console.log(s.value)}function u(){s.value=!1}return{$t:y,form:n,hyImageViewerRef:i,imagesList:o,videoList:a,dialogVisible:s,videoDialogVisible:l,videoPlayerRef:r,onShowViewer:f,selectFn:m,show:_,taskExampleFn:k,onClose:u,videoPlayerShow:p,videoDialogClose:d,selVideo:c}}const qE={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},KE={class:"absolute right-[12px] top-[12px]"},XE={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg-1 relative z-10"},JE={class:"dialog_body"},ZE={class:"dialog_body_content lh_20 leading-[20px]"},QE={class:"mb_20 mb-[20px]"},vE={class:"requiredTitle"},eS={class:"plr_20 p-[0_20px]",style:{"max-height":"200px",overflow:"auto"}},tS=["innerHTML"],nS={key:0,class:"mb_20 mb-[20px]"},oS={class:"requiredTitle"},aS={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},sS={class:"imgBox"},lS={class:"centerBox deleteBox flex items-center justify-center"},rS=["src"],iS={key:1,class:"mb_20 mb-[20px]"},cS={class:"requiredTitle"},dS={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},pS={class:"imgBox"},fS={class:"centerBox deleteBox flex items-center justify-center"},mS={class:"pos_a w_100vh centerBox absolute w-full flex justify-center items-center"},hS={class:"operator-button centerBox mt_20 mt-[20px] flex justify-center items-center"},uS={class:"c_fff activatedImei text-hy-text-main"},_S={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},gS={class:"dialog_body",style:{height:"500px"}},yS={class:"pos_r w_100vh h_100vh w-full h-full relative"},Sr=be(e.defineComponent({__name:"view-task-example",props:{controller:{default:"taskAssign/taskExample"},draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const o=t,{$t:a,show:s,taskExampleFn:l,hyImageViewerRef:r,videoPlayerRef:i,dialogVisible:c,form:p,onClose:d,imagesList:f,onShowViewer:m,videoList:_,videoPlayerShow:k,videoDialogVisible:u,videoDialogClose:N,selVideo:x}=GE({props:o});return n({show:s,taskExampleFn:l}),(E,b)=>{const S=e.resolveComponent("svg-icon"),V=e.resolveComponent("el-dialog"),$=e.resolveComponent("el-button"),h=e.resolveDirective("draggable");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(V,{modelValue:e.unref(c),"onUpdate:modelValue":b[2]||(b[2]=g=>e.isRef(c)?c.value=g:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",top:"6vh",width:"570px",modal:!E.draggable,draggable:E.draggable,"modal-class":E.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",qE,[e.createElementVNode("span",null,e.toDisplayString(e.unref(p).exampleName||e.unref(a)("missionExample")),1),e.createElementVNode("div",KE,[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",XE,[e.createElementVNode("div",JE,[e.createElementVNode("div",ZE,[e.createElementVNode("div",QE,[e.createElementVNode("div",vE,e.toDisplayString(e.unref(a)("sampleContent")),1),e.createElementVNode("div",eS,[e.createElementVNode("div",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(p).exampleContent},null,8,tS)])]),e.unref(f).length?(e.openBlock(),e.createElementBlock("div",nS,[e.createElementVNode("div",oS,e.toDisplayString(e.unref(a)("exampleImage")),1),e.createElementVNode("ul",aS,[(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",sS,[e.createElementVNode("div",lS,[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(a)("check-0"),onClick:w=>e.unref(m)(C)},null,8,["tips","onClick"])]),e.createElementVNode("img",{src:g,alt:""},null,8,rS)])]))),128))])])):e.createCommentVNode("",!0),e.unref(_).length?(e.openBlock(),e.createElementBlock("div",iS,[e.createElementVNode("div",cS,e.toDisplayString(e.unref(a)("exampleVideo")),1),e.createElementVNode("ul",dS,[(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",pS,[e.createElementVNode("div",fS,[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(a)("check-0"),onClick:w=>e.unref(k)(g)},null,8,["tips","onClick"])]),e.createElementVNode("div",mS,[e.createVNode(S,{name:"base-video-cover",style:{height:"40px",width:"40px"}})])])]))),128))])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",hS,[e.createVNode(V,{modelValue:e.unref(u),"onUpdate:modelValue":b[1]||(b[1]=g=>e.isRef(u)?u.value=g:null),"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss_lightColor",width:"800px",modal:!E.draggable,draggable:E.draggable,"modal-class":E.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",uS,[e.createElementVNode("div",_S,[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",gS,[e.createElementVNode("div",yS,[e.createVNode(oa,{ref_key:"videoPlayerRef",ref:i,"border-color":"transparent",item:e.unref(x),"play-list":e.unref(_)},null,8,["item","play-list"])])])])]),_:1})),[[h]])]),_:1},8,["modelValue","modal","draggable","modal-class"]),e.createVNode($,{class:"button_default buttonBox min-w-[100px]",type:"primary",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("closure")),1)]),_:1},8,["onClick"])])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"]),e.createVNode(Wo,{ref_key:"hyImageViewerRef",ref:r},null,512)],64)}}}),[["__scopeId","data-v-3714ab2a"]]);function xS(){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([]),k=e.ref([]),u=e.ref(),N=e.ref(),x=e.computed(()=>a.value.findIndex(j=>j.lat&&j.lng)!==-1);function E(L){m.value&&L.lat&&L.lng&&c.setView(m.value,[L.lat,L.lng],18)}function b(){if(!m.value)return;_.value=[],k.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;
|
37
|
+
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:s,nextZIndex:l}},qg=tr({type:String,values:Pg,required:!1}),Kg=Symbol("size"),Xg=Symbol("emptyValuesContextKey"),Jg=_n({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>Yn(t)?!t():!t}}),pr=Symbol(),Jn=e.ref();function fr(t,n=void 0){const o=e.getCurrentInstance()?e.inject(pr,Jn):Jn;return t?e.computed(()=>{var a,s;return(s=(a=o.value)==null?void 0:a[t])!=null?s:n}):o}function Zg(t,n){const o=fr(),a=ea(t,e.computed(()=>{var i;return((i=o.value)==null?void 0:i.namespace)||Xn})),s=jg(e.computed(()=>{var i;return(i=o.value)==null?void 0:i.locale})),l=Gg(e.computed(()=>{var i;return((i=o.value)==null?void 0:i.zIndex)||ir})),r=e.computed(()=>{var i;return e.unref(n)||((i=o.value)==null?void 0:i.size)||""});return mr(e.computed(()=>e.unref(o)||{})),{ns:a,locale:s,zIndex:l,size:r}}const mr=(t,n,o=!1)=>{var a;const s=!!e.getCurrentInstance(),l=s?fr():void 0,r=(a=n==null?void 0:n.provide)!=null?a:s?e.provide:void 0;if(!r){Kn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const i=e.computed(()=>{const c=e.unref(t);return l!=null&&l.value?Qg(l.value,c):c});return r(pr,i),r(ar,e.computed(()=>i.value.locale)),r(sr,e.computed(()=>i.value.namespace)),r(dr,e.computed(()=>i.value.zIndex)),r(Kg,{size:e.computed(()=>i.value.size||"")}),r(Xg,e.computed(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(o||!Jn.value)&&(Jn.value=i.value),i},Qg=(t,n)=>{const o=[...new Set([...vl(t),...vl(n)])],a={};for(const s of o)a[s]=n[s]!==void 0?n[s]:t[s];return a},vg=_n({a11y:{type:Boolean,default:!0},locale:{type:at(Object)},size:qg,button:{type:at(Object)},experimentalFeatures:{type:at(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:at(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Jg}),ve={};e.defineComponent({name:"ElConfigProvider",props:vg,setup(t,{slots:n}){e.watch(()=>t.message,a=>{Object.assign(ve,a??{})},{immediate:!0,deep:!0});const o=mr(t);return()=>e.renderSlot(n,"default",{config:o==null?void 0:o.value})}});var ta=(t,n)=>{const o=t.__vccOpts||t;for(const[a,s]of n)o[a]=s;return o};const ey=_n({size:{type:at([Number,String])},color:{type:String}}),ty=e.defineComponent({name:"ElIcon",inheritAttrs:!1}),ny=e.defineComponent({...ty,props:ey,setup(t){const n=t,o=ea("icon"),a=e.computed(()=>{const{size:s,color:l}=n;return!s&&!l?{}:{fontSize:Dg(s)?void 0:vo(s),"--color":l}});return(s,l)=>(e.openBlock(),e.createElementBlock("i",e.mergeProps({class:e.unref(o).b(),style:e.unref(a)},s.$attrs),[e.renderSlot(s.$slots,"default")],16))}});var oy=ta(ny,[["__file","icon.vue"]]);const hr=or(oy),ay=_n({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:at([String,Object,Array])},offset:{type:at(Array),default:[0,0]},badgeClass:{type:String}}),sy=e.defineComponent({name:"ElBadge"}),ly=e.defineComponent({...sy,props:ay,setup(t,{expose:n}){const o=t,a=ea("badge"),s=e.computed(()=>o.isDot?"":At(o.value)&&At(o.max)?o.max<o.value?`${o.max}+`:o.value===0&&!o.showZero?"":`${o.value}`:`${o.value}`),l=e.computed(()=>{var r,i,c,p,d;return[{backgroundColor:o.color,marginRight:vo(-((i=(r=o.offset)==null?void 0:r[0])!=null?i:0)),marginTop:vo((p=(c=o.offset)==null?void 0:c[1])!=null?p:0)},(d=o.badgeStyle)!=null?d:{}]});return n({content:s}),(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a).b())},[e.renderSlot(r.$slots,"default"),e.createVNode(e.Transition,{name:`${e.unref(a).namespace.value}-zoom-in-center`,persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("sup",{class:e.normalizeClass([e.unref(a).e("content"),e.unref(a).em("content",r.type),e.unref(a).is("fixed",!!r.$slots.default),e.unref(a).is("dot",r.isDot),r.badgeClass]),style:e.normalizeStyle(e.unref(l)),textContent:e.toDisplayString(e.unref(s))},null,14,["textContent"]),[[e.vShow,!r.hidden&&(e.unref(s)||r.isDot)]])]),_:1},8,["name"])],2))}});var ry=ta(ly,[["__file","badge.vue"]]);const iy=or(ry),ur=["success","info","warning","error"],Ue=Mg({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Kt?document.body:void 0}),cy=_n({customClass:{type:String,default:Ue.customClass},center:{type:Boolean,default:Ue.center},dangerouslyUseHTMLString:{type:Boolean,default:Ue.dangerouslyUseHTMLString},duration:{type:Number,default:Ue.duration},icon:{type:Lg,default:Ue.icon},id:{type:String,default:Ue.id},message:{type:at([String,Object,Function]),default:Ue.message},onClose:{type:at(Function),default:Ue.onClose},showClose:{type:Boolean,default:Ue.showClose},type:{type:String,values:ur,default:Ue.type},plain:{type:Boolean,default:Ue.plain},offset:{type:Number,default:Ue.offset},zIndex:{type:Number,default:Ue.zIndex},grouping:{type:Boolean,default:Ue.grouping},repeatNum:{type:Number,default:Ue.repeatNum}}),dy={destroy:()=>!0},et=e.shallowReactive([]),py=t=>{const n=et.findIndex(s=>s.id===t),o=et[n];let a;return n>0&&(a=et[n-1]),{current:o,prev:a}},fy=t=>{const{prev:n}=py(t);return n?n.vm.exposed.bottom.value:0},my=(t,n)=>et.findIndex(a=>a.id===t)>0?16:n,hy=e.defineComponent({name:"ElMessage"}),uy=e.defineComponent({...hy,props:cy,emits:dy,setup(t,{expose:n}){const o=t,{Close:a}=Fg,{ns:s,zIndex:l}=Zg("message"),{currentZIndex:r,nextZIndex:i}=l,c=e.ref(),p=e.ref(!1),d=e.ref(0);let f;const m=e.computed(()=>o.type?o.type==="error"?"danger":o.type:"info"),_=e.computed(()=>{const h=o.type;return{[s.bm("icon",h)]:h&&nr[h]}}),k=e.computed(()=>o.icon||nr[o.type]||""),u=e.computed(()=>fy(o.id)),N=e.computed(()=>my(o.id,o.offset)+u.value),x=e.computed(()=>d.value+N.value),E=e.computed(()=>({top:`${N.value}px`,zIndex:r.value}));function b(){o.duration!==0&&({stop:f}=Ju(()=>{V()},o.duration))}function S(){f==null||f()}function V(){p.value=!1}function $({code:h}){h===Rg.esc&&V()}return e.onMounted(()=>{b(),i(),p.value=!0}),e.watch(()=>o.repeatNum,()=>{S(),b()}),Zu(document,"keydown",$),n_(c,()=>{d.value=c.value.getBoundingClientRect().height}),n({visible:p,bottom:x,close:V}),(h,g)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(s).b("fade"),onBeforeLeave:h.onClose,onAfterLeave:C=>h.$emit("destroy"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:h.id,ref_key:"messageRef",ref:c,class:e.normalizeClass([e.unref(s).b(),{[e.unref(s).m(h.type)]:h.type},e.unref(s).is("center",h.center),e.unref(s).is("closable",h.showClose),e.unref(s).is("plain",h.plain),h.customClass]),style:e.normalizeStyle(e.unref(E)),role:"alert",onMouseenter:S,onMouseleave:b},[h.repeatNum>1?(e.openBlock(),e.createBlock(e.unref(iy),{key:0,value:h.repeatNum,type:e.unref(m),class:e.normalizeClass(e.unref(s).e("badge"))},null,8,["value","type","class"])):e.createCommentVNode("v-if",!0),e.unref(k)?(e.openBlock(),e.createBlock(e.unref(hr),{key:1,class:e.normalizeClass([e.unref(s).e("icon"),e.unref(_)])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(k))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.renderSlot(h.$slots,"default",{},()=>[h.dangerouslyUseHTMLString?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),e.createElementVNode("p",{class:e.normalizeClass(e.unref(s).e("content")),innerHTML:h.message},null,10,["innerHTML"])],2112)):(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(s).e("content"))},e.toDisplayString(h.message),3))]),h.showClose?(e.openBlock(),e.createBlock(e.unref(hr),{key:2,class:e.normalizeClass(e.unref(s).e("closeBtn")),onClick:e.withModifiers(V,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(a))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],46,["id"]),[[e.vShow,p.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var _y=ta(uy,[["__file","message.vue"]]);let gy=1;const _r=t=>{const n=!t||mn(t)||e.isVNode(t)||Yn(t)?{message:t}:t,o={...Ue,...n};if(!o.appendTo)o.appendTo=document.body;else if(mn(o.appendTo)){let a=document.querySelector(o.appendTo);Vg(a)||(Kn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),o.appendTo=a}return Ql(ve.grouping)&&!o.grouping&&(o.grouping=ve.grouping),At(ve.duration)&&o.duration===3e3&&(o.duration=ve.duration),At(ve.offset)&&o.offset===16&&(o.offset=ve.offset),Ql(ve.showClose)&&!o.showClose&&(o.showClose=ve.showClose),o},yy=t=>{const n=et.indexOf(t);if(n===-1)return;et.splice(n,1);const{handler:o}=t;o.close()},xy=({appendTo:t,...n},o)=>{const a=`message_${gy++}`,s=n.onClose,l=document.createElement("div"),r={...n,id:a,onClose:()=>{s==null||s(),yy(d)},onDestroy:()=>{e.render(null,l)}},i=e.createVNode(_y,r,Yn(r.message)||e.isVNode(r.message)?{default:Yn(r.message)?r.message:()=>r.message}:null);i.appContext=o||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=_r(t);if(o.grouping&&et.length){const s=et.find(({vnode:l})=>{var r;return((r=l.props)==null?void 0:r.message)===o.message});if(s)return s.props.repeatNum+=1,s.props.type=o.type,s.handler}if(At(ve.max)&&et.length>=ve.max)return{close:()=>{}};const a=xy(o,n);return et.push(a),a.handler};ur.forEach(t=>{Zt[t]=(n={},o)=>{const a=_r(n);return Zt({...a,type:t},o)}});function ky(t){for(const n of et)(!t||t===n.props.type)&&n.handler.close()}Zt.closeAll=ky,Zt._context=null;const Se=Og(Zt,"$message");function Ny({props:t}){const n=e.ref(null),o=e.ref([]),a=e.ref(1),s=e.ref(!0),l=e.ref(10),r=e.ref(0),i=e.ref(null),c=e.ref(!1),p=e.ref(!1),d=e.computed(()=>p.value||c.value),f=e.ref({lat:"",lng:""}),m=e.computed(()=>{const w=Number(f.value.lat);return w<=90&&w>=-90?w:"内容错误"}),_=e.computed(()=>{const w=Number(f.value.lng);return w<=180&&w>=-180?w:"内容错误"});function k(){m.value&&m.value!=="内容错误"&&_&&_.value!=="内容错误"&&u(f.value)}function u(w){if(w.lng&&w.lat){t.h.setView(t.map,[w.lat,w.lng],18);const D=t.h.marker(t.map,[w.lat,w.lng],{icon:'<svg aria-hidden="true" class="animation-marker" style="width: 40px; height: 60px;"><use data-v-19e5a669="" xlink:href="#icon-base-trajectory-personnel"></use></svg>',zIndexOffset:100,iconAnchor:[20,60]});t.h.markerAddTo(t.map,D),setTimeout(()=>{t.h.removeMarker(t.map,D)},3e3),b(1)}}function N(w,D){return T=>{if(!s.value)return!1;s.value=!1,setTimeout(()=>{w(T),s.value=!0},D)}}function x(){console.log("触发加载"),!c.value&&(p.value=!0,r.value++,e.nextTick(()=>{S()}))}function E(){n.value=null,f.value={lat:"",lng:""},b()}function b(w){o.value=[],r.value=1,c.value=!1,p.value=!1,a.value!==5&&e.nextTick(()=>{w!==1&&S()})}function S(){n.value&&n.value.length?a.value===1?V():a.value===4?h():a.value===6&&$():b(1)}async function V(){const w=await t.poi.placeSearch({keywords:n.value,offset:l.value,page:r.value});if(console.log(w),w){const D=w,T=[];for(let B=0;B<D.length;B++){const L=D[B];T.push({...L,id:je.buildUUID(),address:L.address||L.name,title:g(L.name)})}e.nextTick(()=>{p.value=!1,o.value.push(...T)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}async function $(){const w=await Pu({page:r.value-1,size:10,query:n.value});if(w.code===200){const D=w.data.content,T=[];if(D!=null&&D.length){for(let B=0;B<D.length;B++){const L=D[B];T.push({id:L.id,address:L.address||L.pointName,...L,title:g(L.pointName)})}e.nextTick(()=>{p.value=!1,o.value.push(...T),r.value===w.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}async function h(){const w=await Hf({page:r.value-1,size:10,query:n.value});if(w.code===200){const D=w.data.content,T=[];if(D!=null&&D.length){for(let B=0;B<D.length;B++){const L=D[B];T.push({id:L.id,address:L.address||L.companyName,...L,title:g(L.companyName)})}e.nextTick(()=>{p.value=!1,o.value.push(...T),r.value===w.data.totalPages&&(c.value=!0)})}else p.value=!1,c.value=!0,Se.error("没有搜索到内容")}}function g(w){const D=[];for(let T=0;T<w.length;T++){const B=w[T],L=n.value.indexOf(B),j={content:w[T]};L===-1?j.type=1:j.type=2,D.push(j)}return D}function C(){if(a.value===1)return"请输入地址";if(a.value===4)return"请输入部门名称";if(a.value===6)return"请输入巡查点"}return{$t:y,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:x,resetFn:b,searchAddressTypeFn:E,placeholderFn:C,inputSearch:f,showSearchLat:m,showSearchLng:_,searchLngLat:k}}const by={key:1,style:{width:"26px",height:"26px"},class:"el-markerImgBox centerBox flex items-center justify-center overflow-hidden border border-hy-border-1 rounded-full box-border flex-shrink-0"},Cy=["src"],wy={class:"ml_10 ml-[10px]",style:{width:"calc(100% - 34px)"}},Ey={class:"title fs_14 c_fff over_one_line fw_600 text-[14px] text-hy-text-main truncate font-bold"},Sy={class:"address over_one_line fs_12 c_fff truncate text-[12px] text-hy-text-main"},Ty={class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"},Dy={class:"ml_20 ml-[20px]"},Vy=be(e.defineComponent({__name:"map-search-place-item",props:{mapJumpLocationFn:{type:Function,default:()=>null},index:{default:null},searchAddressType:{default:1},source:{default:()=>{}}},setup(t){const n=t,{mapJumpLocationFn:o,index:a,searchAddressType:s,source:l}=n;return(r,i)=>{const c=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("li",{class:"clickBox css-text-no-select cursor-pointer",onClick:i[0]||(i[0]=p=>e.unref(o)(e.unref(l)))},[e.unref(s)===1?(e.openBlock(),e.createBlock(c,{key:0,name:"base-maplocation"})):e.unref(s)===4?(e.openBlock(),e.createElementBlock("div",by,[e.createElementVNode("img",{src:e.unref(l).orgTypeIcon,class:"w-full h-full"},null,8,Cy)])):e.unref(s)===6?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle([{width:"26px",height:"26px"},{backgroundColor:e.unref(l).color}]),class:"el-markerImgBox rounded-full flex-shrink-0"},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",wy,[e.createElementVNode("div",Ey,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).title,(p,d)=>(e.openBlock(),e.createElementBlock("span",{key:d,style:e.normalizeStyle({color:p.type===2?"var(--hy-text-primary)":"var(--hy-text-secondary)"})},e.toDisplayString(p.content),5))),128))]),e.createElementVNode("div",Sy,e.toDisplayString(e.unref(l).address),1),e.createElementVNode("div",Ty,[e.createElementVNode("span",null,"经度:"+e.toDisplayString(e.unref(l).lng),1),e.createElementVNode("span",Dy,"维度:"+e.toDisplayString(e.unref(l).lat),1)])])])}}}),[["__scopeId","data-v-393b9954"]]),$y=t=>(e.pushScopeId("data-v-5856b649"),t=t(),e.popScopeId(),t),By={style:{display:"inline-block","flex-direction":"column",width:"300px"},class:"search_lightColor pos_r relative"},Iy={class:"r-f flex"},Ay={class:"flex",style:{width:"calc(100% - 42px)"}},Ly={key:1,class:"w-[58%] flex justify-between ml-[4px]"},Fy={class:"flex flex-col leading-[20px] ml-[10px]"},Oy=$y(()=>e.createElementVNode("span",{class:"text-[14px] font-[600] text-hy-text-main mb-[5px]"},"填写经纬度",-1)),Ry={class:"text-[12px] text-hy-text-secondary"},Py={class:"text-[12px] text-hy-text-secondary"},My={key:2,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},Uy={key:3,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},na=be(e.defineComponent({__name:"map-search-place",props:{map:{default:()=>null},h:{default:()=>null},poi:{default:()=>null},searchTypes:{default:()=>[{label:"地理地址",value:1},{label:"部门名称",value:4},{label:"查经纬度",value:5},{label:"查巡查点",value:6}]}},setup(t){const n=t,{$t:o,searchAddressType:a,showSearchLat:s,showSearchLng:l,inputSearch:r,searchAddressTypeFn:i,searchAddress:c,searchResultList:p,resetFn:d,loading:f,noMore:m,mapJumpLocationFn:_,placeholderFn:k,load:u,throttle:N,searchLngLat:x}=Ny({props:n});return e.onMounted(()=>{var E;a.value=(E=n.searchTypes[0])==null?void 0:E.value}),(E,b)=>{const S=e.resolveComponent("el-option"),V=e.resolveComponent("el-select"),$=e.resolveComponent("el-input"),h=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",By,[e.createElementVNode("div",Iy,[e.createElementVNode("div",Ay,[e.createVNode(V,{modelValue:e.unref(a),"onUpdate:modelValue":b[0]||(b[0]=g=>e.isRef(a)?a.value=g:null),style:{width:"38%",border:"1px solid var(--hy-border-2)","box-sizing":"border-box","border-radius":"6px","font-size":"12px"},placeholder:"请选择",onChange:e.unref(i)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.searchTypes,g=>(e.openBlock(),e.createBlock(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(k)(),onInput:b[2]||(b[2]=e.unref(N)(e.unref(d),1e3))},null,8,["modelValue","placeholder"])):(e.openBlock(),e.createElementBlock("div",Ly,[e.createVNode($,{modelValue:e.unref(r).lng,"onUpdate:modelValue":b[3]||(b[3]=g=>e.unref(r).lng=g),placeholder:"经度",class:"!w-[47.5%]",clearable:"",onInput:b[4]||(b[4]=g=>e.unref(je.onlyNumber)(e.unref(r),"lng"))},null,8,["modelValue"]),e.createVNode($,{modelValue:e.unref(r).lat,"onUpdate:modelValue":b[5]||(b[5]=g=>e.unref(r).lat=g),placeholder:"纬度",class:"!w-[47.5%]",clearable:"",onInput:b[6]||(b[6]=g=>e.unref(je.onlyNumber)(e.unref(r),"lat"))},null,8,["modelValue"])]))]),e.createElementVNode("div",{class:"searchBox centerBox cursor-pointer flex items-center justify-center",style:{"flex-shrink":"0",display:"flex"},onClick:b[7]||(b[7]=(...g)=>e.unref(d)&&e.unref(d)(...g))},[e.createVNode(h,{name:"base-search","class-name":"w-[16px] h-[16px] text-hy-text-main"})])]),e.unref(p).length?(e.openBlock(),e.createBlock(e.unref(js),{key:0,"infinite-scroll-disabled":"disabled",class:"filterContentList",style:{height:"400px","overflow-y":"auto"},"data-key":"id","data-sources":e.unref(p),"data-component":Vy,keeps:10,"extra-props":{mapJumpLocationFn:e.unref(_),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(x)&&e.unref(x)(...g))},[e.createVNode(h,{name:"base-maplocation","class-name":"w-[26px] h-[26px] ml-[10px]"}),e.createElementVNode("div",Fy,[Oy,e.createElementVNode("span",Ry,[e.createTextVNode("经度:"),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)==="内容错误"?"text-hy-danger":"")},e.toDisplayString(e.unref(l)||"请输入经度"),3)]),e.createElementVNode("span",Py,[e.createTextVNode("纬度:"),e.createElementVNode("span",{class:e.normalizeClass(e.unref(s)==="内容错误"?"text-hy-danger":"")},e.toDisplayString(e.unref(s)||"请输入纬度"),3)])])])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("p",My," 加载中... ")):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createElementBlock("p",Uy," 没有更多了 ")):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-5856b649"]]);function Qt(t=je.sessionCache.getCache("mapConfig")){function n(){if(!t){je.logger.warning("use-map","initHyMap","地图配置不能为空");return}const i=Nn.MapProviderFactory.createMapProvider(t.mapType);return new Nn.HyMap(i,t)}function o(){if(!t){je.logger.warning("use-map","initHyPoi","地图配置不能为空");return}const i=Nn.PoiProviderFactory.createMapProvider(t.mapPoiType);return new Nn.HyPoi(i,t)}let a=null,s=null;const l=!!(t.mapKey&&t.mapType);let r=[];return l&&(a=n(),s=o(),t.layersUrl&&(r=t.layersUrl.replace(/\{mapKey\}/g,t.mapKey).split(","))),{H:a,POI:s,isShowMap:l,layersUrlList:r,mapConfig:t}}function zy(t){return oe.post({url:"mapRail/findAllWithDevice",data:t,isFormData:!0})}function Wy(t){return oe.post({url:"mapRail/deleteBatch",data:t,isFormData:!0})}function jy(t){return oe.post({url:t.id?"mapRail/update":"mapRail/insert",data:t,isJson:!0})}function gr(t){return oe.post({url:"mapRail/select",data:t,isFormData:!0})}function Hy(t){const n=t.emit,{mapConfig:o,isShowMap:a,layersUrlList:s,H:l,POI:r}=Qt(),i=e.ref(null),c=e.ref(null),p=e.shallowRef(null),d=e.ref({railName:[{required:!0,message:y("pleaseEnterTheNameOfTheElectronicFence"),trigger:"blur"}]}),f=e.ref({}),m=e.ref(!0),_=e.ref(!1),k=e.ref(100),u=e.ref("fixedPoint"),N=e.ref(null),x=e.ref(!1),E=e.shallowRef(null);e.watch(()=>k.value,M=>{k.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=y("mouseClicksOnTheMapAndReleasesToEnd"):u.value==="circle"?M=y("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):M=y("mouseClicksOnTheMapAndRightClicksToEnd"),N.value=M}async function V(){const M=He.getCache("userInfo");let z=null;M!=null&&M.lng&&(M!=null&&M.lat)&&(z=[M.lat,M.lng]),(z==null?void 0:z.length)===0&&(z=null),p.value=await l.map("addElectronicFence_container",{maxZoom:o.maxZoom||18,minZoom:o.minZoom||13,zoom:o.zoom||13,center:z,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:s,layerType:o.satelliteMap}),p.value.on("complete",U=>{var R;if((R=f.value.pointList)!=null&&R.length){const Y=f.value.pointList.map(X=>({lat:X.lat,lng:X.lng}));C(Y)}}),p.value.on("left-click",U=>{D(U)})}function $(){w(),E.value&&(l.removePolygon(p.value,E.value),E.value=null)}function h(){$(),u.value!=="fixedPoint"?g():x.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=y("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):u.value==="polygon"&&(z=y("mouseClicksOnTheMapAndRightClicksToEnd")),z&&Se.success(z)}function C(M){E.value=l.polygon(p.value,M,{weight:2,color:"#2DF2FF",opacity:1,fillColor:"#2DF2FF",fillOpacity:.3}),l.fitBounds(p.value,M.map(z=>[z.lat,z.lng])),console.log(E.value),w()}function w(){p.value&&l.removePM(p.value)}function D(M){if(x.value){const z=l.searchByCircle({lat:M.latlng.lat,lng:M.latlng.lng},k.value/2);C(z),x.value=!1}}async function T(M){const z=await gr({id:M});z.code===200&&(f.value={...z.data},_.value=!0,e.nextTick(()=>{V()}))}function B(M){var z;f.value={},k.value=100,x.value=!1,$(),u.value="fixedPoint",S(),c.value&&((z=c.value)==null||z.resetFields()),M?T(M):(_.value=!0,e.nextTick(()=>{V()}))}function L(){console.log(E.value)}function j(){var z;L();let M=[];if(E.value&&(M=l.getShapeLatLngs(E.value)),(M==null?void 0:M.length)===0||!E.value)return Se.error("请完成电子围栏绘制后再进行保存操作"),!1;(z=c.value)==null||z.validate(async U=>{if(U){const R={railName:f.value.railName};R.pointList=M.map(X=>({lng:X.lng,lat:X.lat})),R.id=f.value.id||null,(await jy(R)).code===200&&(Se.success(`${y("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:k,mouseToolName:u,tips:N,onClose:F,show:B,onSubmit:j,tipsFn:S,initMap:V,mapRailSelectFn:T,throttle:b,startDraw:h,removePolygon:$}}const Yy=t=>(e.pushScopeId("data-v-b3493890"),t=t(),e.popScopeId(),t),Gy={class:"text-hy-text-main"},qy={class:"relative text-hy-text-main text-[18px] text-center p-[20px] font-bold z-[1px] bg-hy-dialog-bg-1 rounded-[12px_12px_0_0] font-[Helvetica]"},Ky={class:"dialog_body"},Xy={class:""},Jy={class:"form-label"},Zy={class:"relative flex flex-row h-[50px]"},Qy={class:"z-[1]"},vy={class:"form-label"},e1={class:"w-full flex items-center form-item"},t1={class:"form-label"},n1={class:"flex items-center form-item"},o1=Yy(()=>e.createElementVNode("span",{class:"text-sm ml-[10px] text-hy-text-secondary flex-shrink"},"M",-1)),a1={class:"flex items-center form-item"},s1={class:"text-xs text-hy-text-secondary flex items-center"},l1={class:"text-hy-main"},r1={class:"text-right mt-[10px]"},i1=be(e.defineComponent({__name:"add-electronic-fence",emits:["on-submit","on-close"],setup(t,{expose:n,emit:o}){const a=o,{addElectronicFenceContainerRef:s,formRef:l,rules:r,form:i,dialogVisible:c,radius:p,mouseToolName:d,tips:f,H:m,map:_,POI:k,isShowMap:u,onClose:N,tipsFn:x,show:E,startDraw:b,removePolygon:S,onSubmit:V}=Hy({emit:a});return n({show:E}),($,h)=>{const g=e.resolveComponent("svg-icon"),C=e.resolveComponent("el-input"),w=e.resolveComponent("el-form-item"),D=e.resolveComponent("el-col"),T=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),L=e.resolveComponent("el-button"),j=$t,F=e.resolveComponent("el-icon"),M=e.resolveComponent("el-row"),z=e.resolveComponent("el-form"),U=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(U,{modelValue:e.unref(c),"onUpdate:modelValue":h[4]||(h[4]=R=>e.isRef(c)?c.value=R:null),"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0,"show-close":!1,class:"dialog_clsss",top:"6vh",width:"1200"},{default:e.withCtx(()=>[e.createElementVNode("div",Gy,[e.createElementVNode("div",qy,[e.createElementVNode("span",null,e.toDisplayString(e.unref(y)("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",Ky,[e.createVNode(z,{ref_key:"formRef",ref:l,model:e.unref(i),rules:e.unref(r),"label-width":"0px","label-position":"top",class:"demo-ruleForm"},{default:e.withCtx(()=>[e.createVNode(M,{gutter:20},{default:e.withCtx(()=>[e.createVNode(D,{span:24},{default:e.withCtx(()=>[e.createVNode(w,{prop:"railName"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",Xy,e.toDisplayString(e.unref(y)("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(y)("pleaseEnterTheNameOfTheElectronicFence"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})]),_:1}),e.createVNode(D,{span:10},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",Jy,e.toDisplayString(e.unref(y)("electronicFenceRange")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",Zy,[e.createElementVNode("div",Qy,[e.unref(u)&&e.unref(_)?(e.openBlock(),e.createBlock(na,{key:0,h:e.unref(m),map:e.unref(_),poi:e.unref(k)},null,8,["h","map","poi"])):e.createCommentVNode("",!0)])])]),_:1})]),_:1}),e.createVNode(D,{span:5},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0 pl-[20px]"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",vy,e.toDisplayString(e.unref(y)("drawingMethod")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",e1,[e.createVNode(B,{modelValue:e.unref(d),"onUpdate:modelValue":h[2]||(h[2]=R=>e.isRef(d)?d.value=R:null),placeholder:e.unref(y)("pleaseSelectTheDrawingMethod"),class:"!w-full",onChange:e.unref(x)},{default:e.withCtx(()=>[e.createVNode(T,{label:e.unref(y)("fixedPointRange"),value:"fixedPoint"},null,8,["label"]),e.createVNode(T,{label:e.unref(y)("customCircle"),value:"circle"},null,8,["label"]),e.createVNode(T,{label:e.unref(y)("customPolygon"),value:"polygon"},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])])]),_:1})]),_:1}),e.unref(d)==="fixedPoint"?(e.openBlock(),e.createBlock(D,{key:0,span:3},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",t1,e.toDisplayString(e.unref(y)("rangeDistance")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",n1,[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(y)("unitMeter"),clearable:""},null,8,["modelValue","placeholder"]),o1])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(D,{span:6},{default:e.withCtx(()=>[e.createVNode(w,{class:"m-0"},{label:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(y)("operationButton")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",a1,[e.createVNode(L,{class:"button_function",onClick:e.unref(b)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("startDrawing")),1)]),_:1},8,["onClick"]),e.createVNode(L,{type:"danger",class:"",onClick:e.unref(S)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("clearDrawing")),1)]),_:1},8,["onClick"])])]),_:1})]),_:1}),e.createVNode(D,{span:24},{default:e.withCtx(()=>[e.createVNode(w,null,{default:e.withCtx(()=>[e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:1,id:"addElectronicFence_container",ref_key:"addElectronicFenceContainerRef",ref:s,class:"z-[0]"},null,512)):(e.openBlock(),e.createBlock(Gt,{key:0,class:"!h-[400px] rounded"})),e.createElementVNode("div",s1,[e.createVNode(F,{class:"text-sm"},{default:e.withCtx(()=>[e.createVNode(j)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(y)("afterClickingToStartDrawing"))+" ",1),e.createElementVNode("span",l1,e.toDisplayString(e.unref(f)),1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"]),e.createElementVNode("div",r1,[e.createVNode(L,{type:"primary",class:"w-[100px]",onClick:e.unref(N)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("close")),1)]),_:1},8,["onClick"]),e.createVNode(L,{class:"w-[100px]",onClick:e.unref(V)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("save")),1)]),_:1},8,["onClick"])])])])]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-b3493890"]]);function c1(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(null),s=e.ref(null),l=e.ref({groupId:null,waterPointTypeId:null});function r(f,m){n("on-map-display-fn",{id:f,type:!m})}const i=e.computed(()=>f=>{var m;return(m=o.value.mapDisplayList)!=null&&m.length?o.value.mapDisplayList.findIndex(k=>k===f)!==-1:!1});function c(f){var m;(m=a.value)==null||m.show(f)}function p(){var f;(f=s.value)==null||f.getTableData(),n("on-get-data")}function d(f){mt({tipsTitle:y("deleteElectronicFence"),tipsContent:`<div><p>${y("confirmToDeleteTheCurrentDeletedElectronicFence")}?</p></div>`,submitBtnText:y("confirm-0")},async()=>{(await Wy({ids:f})).code===200&&(n("on-delete",f),pe.ElMessage.success(y("deletedSuccessfully")),p())})}return{addElectronicFenceRef:a,AppTableRef:s,requestParams:l,changeFn:r,mapDisplayFn:i,addElectronicFenceShow:c,getData:p,deleteShow:d}}const d1={class:"w-full h-full"},p1={class:"flex items-center justify-center"},f1={class:"ml-[6px]"},m1={class:"flex"},h1=e.defineComponent({__name:"electronic-fence",props:{initParams:{default:()=>{}},mapDisplayList:{default:()=>[]},tableColumns:{default:()=>[{label:y("electronicFenceName"),prop:"railName"},{label:y("operation"),slotName:"operator",width:"200px"}]}},emits:["on-map-display-fn","on-get-data","on-delete"],setup(t,{emit:n}){const o=t,a=n,{addElectronicFenceRef:s,AppTableRef:l,requestParams:r,changeFn:i,mapDisplayFn:c,addElectronicFenceShow:p,getData:d,deleteShow:f}=c1({emit:a,props:o});return e.onMounted(()=>{r.value={...o.initParams}}),(m,_)=>{const k=e.resolveComponent("svg-icon"),u=e.resolveComponent("el-button"),N=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock("div",d1,[e.createVNode(Yt,{ref_key:"AppTableRef",ref:l,height:"100%","show-footer":!0,"search-arr":[{label:e.unref(y)("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]=x=>e.unref(p)())},{default:e.withCtx(()=>[e.createElementVNode("div",p1,[e.createVNode(k,{width:"16",height:"16",name:"base-add-3"}),e.createElementVNode("span",f1,e.toDisplayString(e.unref(y)("addElectronicFence")),1)])]),_:1}),e.renderSlot(m.$slots,"operator-left-box")])]),mapDisplay:e.withCtx(({row:x})=>[e.createElementVNode("div",null,[e.createVNode(N,{class:"switch_custom switch_width_60","model-value":e.unref(c)(x.id),"active-text":e.unref(y)("show"),"inactive-text":e.unref(y)("hide"),"inline-prompt":"","active-color":"#5AB95F","inactive-color":"var(--hy-dialog-bg-1)",onClick:E=>e.unref(i)(x.id,e.unref(c)(x.id))},null,8,["model-value","active-text","inactive-text","onClick"])])]),isDefault:e.withCtx(({row:x})=>[e.renderSlot(m.$slots,"isDefault",{row:x})]),operator:e.withCtx(({row:x})=>[e.createElementVNode("div",m1,[e.createVNode(Me,{name:"icon-edit",tips:e.unref(y)("edit"),onClick:E=>e.unref(p)(x.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(y)("delete"),onClick:E=>e.unref(f)(x.id)},null,8,["tips","onClick"])])]),_:3},8,["search-arr","column-list","search-form"]),e.createVNode(i1,{ref_key:"addElectronicFenceRef",ref:s,onOnSubmit:e.unref(d)},null,8,["onOnSubmit"])])}}});var Ke=(t=>(t.NO_LOAD="NO_LOAD",t.IS_LOAD="IS_LOAD",t.PLAYING="PLAYING",t.PAUSE="PAUSE",t.PLAY_END="PLAY_END",t.CAN_NOT_PLAY="CAN_NOT_PLAY",t))(Ke||{});function u1(t){return oe.post({url:"/mediaFile/location/findAll",data:{mediaFileId:t},isFormData:!0})}function _1(t){return oe.get({url:t,xAmzAcl:!0,isFileUpload:!0,fileType:""})}function yr(t){return oe.post({url:"/mediaFile/getFileScore",data:{id:t},isFormData:!0})}function g1(t){return oe.post({url:"/mediaFile/fileScore",data:t,isJson:!0})}function y1(t){return oe.post({url:"/mediaFile/remark/findAll",data:t,isFormData:!0})}function x1(t){return oe.post({url:"/mediaFile/saveRemark",data:t,isJson:!0})}function xr(t){return oe.post({url:"/mediaFile/remark/deleteBatch",data:t,isFormData:!0})}function k1(t){return oe.post({url:"/mediaFile/point/findAll",data:t,isFormData:!0})}function N1(t){return oe.post({url:"/mediaFile/savePoint",data:t,isJson:!0})}function b1(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref([{value:.5,label:"0.5 X"},{value:1,label:"1.0 X"},{value:1.5,label:"1.5 X"},{value:2,label:"2.0 X"},{value:3,label:"3.0 X"}]),s=e.ref(1),l=e.ref([{value:1,label:y("stopAfterPlayback"),svgName:"media-center-stop-playing"},{value:2,label:y("continuousPlayback"),svgName:"media-center-autoplay"},{value:3,label:y("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),k=e.ref(Ke.NO_LOAD),u=e.ref(100),N=e.computed(()=>k.value!==Ke.NO_LOAD&&k.value!==Ke.CAN_NOT_PLAY),x=e.computed(()=>o.value.playList.find(U=>U.id===d.value.id));function E(U,R){return new Promise((Y,X)=>{const P=new XMLHttpRequest;P.open("GET",R),P.responseType="blob",P.onload=function(){const v=P.response;Y({name:U,blob:v})},P.onerror=function(){console.error("could not download file")},P.send()})}function b(){d.value&&d.value.id&&(pe.ElMessage.warning(y("startDownloading")),E(d.value.fileName,d.value.filePath).then(U=>{const R=U.blob,Y=new FileReader;Y.readAsDataURL(R),Y.onload=X=>{const P=URL.createObjectURL(new Blob([R])),v=document.createElement("a");document.body.appendChild(v),v.href=P,v.download=U.name,v.target="_blank",v.click(),v.remove()}}))}function S(U){U===3?r.value=1:r.value=U+1}function V(U){s.value=U;const R=document.querySelector("#audio-el");R&&R.playbackRate&&(R.playbackRate=U)}function $(){i.value=document.querySelector("#audio-el"),i.value.addEventListener("canplay",()=>{z(Ke.IS_LOAD),f.value=Math.floor(i.value.duration),n("can-play",f.value)}),i.value.addEventListener("play",()=>{i.value.playbackRate=s.value,z(Ke.PLAYING),p.value&&x.value&&n("play-start",{audioUrl:p.value,playItem:x.value})}),i.value.addEventListener("pause",()=>{z(Ke.PAUSE)}),i.value.addEventListener("volumechange",()=>{u.value=i.value.volume*100}),i.value.addEventListener("ended",()=>{z(Ke.PLAY_END),r.value===2?g().then(()=>{n("play-end")}):r.value===3&&(i.value.load(),i.value.play(),n("play-end"))}),i.value.addEventListener("timeupdate",()=>{z(Ke.PLAYING),!_.value&&i.value&&(m.value=Math.floor(i.value.currentTime),c.value=m.value/f.value*100,n("on-time-update",m.value))},!1)}function h(){return o.value.playList.findIndex(U=>U.id===d.value.id)}function g(){return new Promise((U,R)=>{const Y=h();if(Y!==o.value.playList.length-1){const X=o.value.playList[Y+1];w(X.filePath,X),U({code:200})}else pe.ElMessage.warning(y("currentIsTheLastItem"))})}function C(){const U=h();if(U>0&&U!==o.value.playList.length){const R=o.value.playList[U-1];w(R.filePath,R)}else pe.ElMessage.warning(y("currentIsTheFirstItem"))}function w(U,R){if(R)R.id!==d.value.id&&(p.value="",d.value=R,i.value.src=U,o.value.getAudioContextType?M(R.id):(p.value=U,i.value.play()));else{if(p.value==="")return!1;i.value.play()}}function D(){i.value.play()}function T(){i.value.pause()}function B(){m.value=f.value*(c.value/100),i.value.currentTime=m.value,_.value=!1}function L(){i.value.volume=u.value/100}function j(U,R){return U=Number.parseFloat(`${U}`),R=Number.parseFloat(`${R}`),Number.isNaN(U)||Number.isNaN(R)||R<=0?0:Math.round(U/R*1e4)/100}function F(U){i.value.currentTime=U}async function M(U){const R=await _1(`/mediaFile/redirect?mediaFileId=${U}`);i.value.src=URL.createObjectURL(R),p.value=URL.createObjectURL(R),i.value.play()}function z(U){k.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:k,volumeValue:u,downloadFn:b,playRulesFn:S,speedFn:V,initPlayer:$,playNext:g,playPrevious:C,playAudio:w,resumePlay:D,pauseAudio:T,getNowWh:B,changeVolume:L,getPercent:j,jumpDuration:F,canPlay:N}}const C1=t=>(e.pushScopeId("data-v-27a5006a"),t=t(),e.popScopeId(),t),w1={class:"w-full flex items-center box-border"},E1=C1(()=>e.createElementVNode("audio",{id:"audio-el"},null,-1)),S1={class:"flex-grow w-0 mx-3 progress-box"},T1={class:"flex justify-between items-center text-xs text-hy-text-secondary mt-1"},D1={class:"flex-shrink-0 flex"},V1={class:"flex items-center justify-center p-[10px_0]"},$1={class:"text-hy-text-secondary text-xs w-full"},B1=["onClick"],I1={class:"flex items-center click-box"},A1={class:"border h-[24px] box-border mr-1 border-hy-border-2 rounded text-xs text-hy-text-secondary px-2 flex items-center justify-center"},L1={class:"click-box"},F1={key:1},O1=["onClick"],R1={class:"click-box mx-1"},P1={class:"flex items-center justify-center"},M1={class:"click-box click-box"},kr=be(e.defineComponent({__name:"audio-player",props:{downloadFilesType:{type:Boolean,default:!0},playRulesType:{type:Boolean,default:!0},getAudioContextType:{type:Boolean,default:!0},playList:{default:()=>[]}},emits:["can-play","play-start","play-end","play-end","on-time-update","on-audio-state"],setup(t,{expose:n,emit:o}){const a=t,s=o,{isDrop:l,speedList:r,speed:i,playRuleslist:c,playRules:p,audioEl:d,value:f,audioUrl:m,totalTime:_,curTime:k,audioState:u,volumeValue:N,downloadFn:x,playRulesFn:E,speedFn:b,initPlayer:S,playNext:V,playPrevious:$,playAudio:h,resumePlay:g,pauseAudio:C,getNowWh:w,changeVolume:D,getPercent:T,jumpDuration:B,canPlay:L}=b1({emit:s,props:a});return e.onBeforeUnmount(()=>{d.value=null}),e.onMounted(()=>{E(3),b(1),S()}),n({jumpDuration:B,resumePlay:g,pauseAudio:C,playAudio:h}),(j,F)=>{const M=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-popover"),U=e.resolveComponent("el-tooltip"),R=e.resolveComponent("el-slider");return e.openBlock(),e.createElementBlock("div",w1,[E1,e.createElementVNode("div",null,[e.createElementVNode("span",{onClick:F[0]||(F[0]=(...Y)=>e.unref($)&&e.unref($)(...Y))},[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-previous-btn"})]),e.unref(u)!==e.unref(Ke).PLAYING&&e.unref(L)?(e.openBlock(),e.createElementBlock("span",{key:0,class:"mx-1",onClick:F[1]||(F[1]=Y=>e.unref(h)(e.unref(m)))},[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-play-btn"})])):e.createCommentVNode("",!0),e.unref(u)===e.unref(Ke).PLAYING?(e.openBlock(),e.createElementBlock("span",{key:1,class:"mx-1",onClick:F[2]||(F[2]=(...Y)=>e.unref(C)&&e.unref(C)(...Y))},[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-pause-btn"})])):e.createCommentVNode("",!0),e.createElementVNode("span",{onClick:F[3]||(F[3]=(...Y)=>e.unref(V)&&e.unref(V)(...Y))},[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-next-btn"})])]),e.createElementVNode("div",S1,[e.withDirectives(e.createElementVNode("input",{id:"progress",ref:"progressRef","onUpdate:modelValue":F[4]||(F[4]=Y=>e.isRef(f)?f.value=Y:null),max:"100",style:e.normalizeStyle({background:`linear-gradient(to right, var(--hy-main) ${e.unref(T)(e.unref(f),100)}%, var(--hy-main-alpha-50) ${e.unref(T)(e.unref(f),100)}% `}),type:"range",class:"relative w-full",onMouseup:F[5]||(F[5]=Y=>e.unref(w)()),onMousedown:F[6]||(F[6]=Y=>l.value=!0)},null,36),[[e.vModelText,e.unref(f)]]),e.createElementVNode("div",T1,[e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(k)))+'"',1),e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(_)))+'"',1)])]),e.createElementVNode("div",D1,[e.createVNode(z,{placement:"top",width:"62px","popper-class":"!p-0",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",I1,[e.createElementVNode("div",A1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(Y,X)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:X},e.toDisplayString(Y.value===1?e.unref(y)("multiples"):Y.label),1)),[[e.vShow,Y.value===e.unref(i)]])),128))])])]),default:e.withCtx(()=>[e.createElementVNode("div",V1,[e.createElementVNode("ul",$1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(Y,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,B1))),128))])])]),_:1}),j.downloadFilesType?(e.openBlock(),e.createBlock(U,{key:0,effect:"dark",content:e.unref(y)("downloadFile"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",L1,[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-down-btn",onClick:e.unref(x)},null,8,["onClick"])])]),_:1},8,["content"])):e.createCommentVNode("",!0),j.playRulesType?(e.openBlock(),e.createElementBlock("span",F1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(Y,X)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:`${X}playRuleslist`,onClick:P=>e.unref(E)(Y.value)},[e.createVNode(U,{effect:"dark",content:Y.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",R1,[e.createVNode(M,{width:"26",height:"26",name:Y.svgName},null,8,["name"])])]),_:2},1032,["content"])],8,O1)),[[e.vShow,e.unref(p)===Y.value]])),128))])):e.createCommentVNode("",!0),e.createVNode(z,{"open-delay":500,placement:"top",trigger:"click",width:"40"},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(U,{effect:"dark",content:e.unref(y)("adjustPlaybackVolume"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",M1,[e.createVNode(M,{width:"26",height:"26",name:"media-center-audio-volumn"})])]),_:1},8,["content"])])]),default:e.withCtx(()=>[e.createElementVNode("div",P1,[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 U1(t){const n=t.emit,o=e.ref(t.props),a=e.ref([{value:.5,label:"0.5 X"},{value:1,label:"1.0 X"},{value:1.5,label:"1.5 X"},{value:2,label:"2.0 X"},{value:3,label:"3.0 X"}]),s=e.ref(1),l=e.ref([{value:1,label:y("stopAfterPlayback"),svgName:"media-center-stop-playing"},{value:2,label:y("continuousPlayback"),svgName:"media-center-autoplay"},{value:3,label:y("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),k=e.ref(!1),u=e.ref(!1),N=e.ref(100);e.ref(!1);const x=e.computed(()=>f.value!=="NO_LOAD"&&f.value!=="CAN_NOT_PLAY"),E=e.computed(()=>o.value.playList.find(X=>X.id===i.value.id));function b(X){X===3?r.value=1:r.value=X+1}function S(X){s.value=X;const P=document.getElementById("videoPlayer");P&&(P.playbackRate=X)}function V(){return o.value.playList.findIndex(X=>X.id===i.value.id)}function $(){const X=V();if(X!==o.value.playList.length-1){const P=o.value.playList[X+1];g(P.filePath,P)}else pe.ElMessage.warning(y("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(y("currentIsTheFirstItem"))}function g(X,P){if(P)P.id!==i.value.id&&(i.value=P,c.value=X,d.value.src=X);else if(c.value==="")return!1;d.value.play(),f.value="PLAYING"}function C(X,P){return new Promise((v,Te)=>{const he=new XMLHttpRequest;he.open("GET",P),he.responseType="blob",he.onload=function(){const ke=he.response;v({name:X,blob:ke})},he.onerror=function(){console.error("could not download file")},he.send()})}function w(){i.value&&i.value.id&&(pe.ElMessage.warning(y("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,k.value=!1}function B(X,P){return X=Number.parseFloat(X),P=Number.parseFloat(P),Number.isNaN(X)||Number.isNaN(P)||P<=0?0:Math.round(X/P*1e4)/100}function L(){d.value.play()}function j(){d.value&&d.value.pause(),f.value="PAUSE"}function F(){d.value=document.querySelector("#videoPlayer"),d.value.addEventListener("canplay",()=>{f.value="IS_LOAD",_.value=Math.floor(d.value.duration),n("can-play",_.value)}),d.value.addEventListener("play",()=>{d.value.playbackRate=s.value,f.value="PLAYING",c.value&&E.value&&n("play-start",{audioUrl:c.value,playItem:E.value})}),d.value.addEventListener("pause",()=>{f.value="PAUSE"}),d.value.addEventListener("ended",()=>{f.value="PLAY_END",r.value===2?$():r.value===3&&(d.value.load(),d.value.play()),n("play-end")}),d.value.addEventListener("timeupdate",()=>{f.value="PLAYING",k.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:x,speedList:a,speed:s,playRuleslist:l,playRules:r,videoUrl:c,value:p,videoEl:d,videoState:f,curTime:m,totalTime:_,isDrop:k,isFullScreen:u,volumeValue:N,playRulesFn:b,speedFn:S,playNext:$,playPrevious:h,playVideo:g,downloadFn:w,changeVolume:D,getNowWh:T,getPercent:B,resumePlay:L,pauseVideo:j,initVideo:F,initFullScreenEvent:M,jumpDuration:z,clickFullScreen:U}}const z1=t=>(e.pushScopeId("data-v-d0d3957a"),t=t(),e.popScopeId(),t),W1={class:"flex-grow h-0 relative"},j1={key:0,class:"absolute right-[10px] top-[4px] z-[2]"},H1={key:0,class:"my-2 click-box"},Y1={key:1},G1=["onClick"],q1={class:"click-box"},K1=z1(()=>e.createElementVNode("video",{id:"videoPlayer",width:"100%",header:"100%"},[e.createElementVNode("source",{type:"video/mp4"})],-1)),X1={class:"progress-box px-2"},J1={class:"my-2 flex items-center justify-between px-2 relative"},Z1={class:"text-xs text-hy-text-secondary"},Q1={key:0,class:"mx-2 flex items-center justify-center absolute left-1/2 -translate-x-1/2"},v1={class:"flex items-center"},ex={class:"flex items-center justify-center p-[10px_0]"},tx={class:"text-hy-text-secondary text-xs w-full"},nx=["onClick"],ox={class:"flex items-center click-box"},ax={class:"border h-[24px] box-border border-hy-border-2 rounded text-xs text-hy-text-secondary px-2 flex items-center justify-center"},sx={class:"flex items-center justify-center"},lx={class:"mx-2"},rx={class:"click-box"},ix={class:"text-hy-info"},oa=be(e.defineComponent({__name:"video-player",props:{downloadFilesType:{type:Boolean,default:!0},playRulesType:{type:Boolean,default:!0},playList:{}},emits:["can-play","play-start","play-end","on-time-update"],setup(t,{expose:n,emit:o}){const a=t,s=o,{canPlay:l,speedList:r,speed:i,playRuleslist:c,playRules:p,videoUrl:d,value:f,videoEl:m,videoState:_,curTime:k,totalTime:u,isDrop:N,isFullScreen:x,volumeValue:E,playRulesFn:b,speedFn:S,playNext:V,playPrevious:$,playVideo:h,downloadFn:g,changeVolume:C,getNowWh:w,getPercent:D,resumePlay:T,pauseVideo:B,initVideo:L,initFullScreenEvent:j,jumpDuration:F,clickFullScreen:M}=U1({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(x)},"w-full h-full rounded border border-hy-border-2 flex flex-col bg-hy-page-bg"])},[e.createElementVNode("div",W1,[z.downloadFilesType||z.playRulesType?(e.openBlock(),e.createElementBlock("div",j1,[z.downloadFilesType?(e.openBlock(),e.createElementBlock("div",H1,[e.createVNode(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",Y1,[(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",q1,[e.createVNode(R,{width:"26",height:"26",name:v.svgName},null,8,["name"])])]),_:2},1032,["content"])],8,G1)),[[e.vShow,e.unref(p)===v.value]])),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),K1]),e.createElementVNode("div",X1,[e.withDirectives(e.createElementVNode("input",{id:"progress",ref:"progressRef","onUpdate:modelValue":U[0]||(U[0]=v=>e.isRef(f)?f.value=v:null),max:"100",style:e.normalizeStyle({background:`linear-gradient(to right, var(--hy-main) ${e.unref(D)(e.unref(f),100)}%, var(--hy-main-alpha-50) ${e.unref(D)(e.unref(f),100)}% `}),type:"range",class:"relative w-full",onMouseup:U[1]||(U[1]=v=>e.unref(w)()),onMousedown:U[2]||(U[2]=v=>N.value=!0)},null,36),[[e.vModelText,e.unref(f)]])]),e.createElementVNode("div",J1,[e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",Z1,[e.createElementVNode("span",null,e.toDisplayString(e.unref(ot)(e.unref(k)))+'"',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",Q1,[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",v1,[e.createVNode(X,{placement:"top",width:"62px","popper-class":"!p-0",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",ox,[e.createElementVNode("div",ax,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(v,Te)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:Te},e.toDisplayString(v.value===1?e.unref(y)("multiples"):v.label),1)),[[e.vShow,v.value===e.unref(i)]])),128))])])]),default:e.withCtx(()=>[e.createElementVNode("div",ex,[e.createElementVNode("ul",tx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(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,nx))),128))])])]),_:1}),e.createVNode(X,{placement:"top",trigger:"click",width:"40px"},{reference:e.withCtx(()=>[e.createElementVNode("div",lx,[e.createVNode(Y,{effect:"dark",content:e.unref(y)("adjustPlaybackVolume"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",rx,[e.createVNode(R,{width:"24",height:"24",name:"media-center-audio-volumn"})])]),_:1},8,["content"])])]),default:e.withCtx(()=>[e.createElementVNode("div",sx,[e.createVNode(P,{modelValue:e.unref(E),"onUpdate:modelValue":U[7]||(U[7]=v=>e.isRef(E)?E.value=v:null),class:"volume-slider",vertical:"",height:"105px",onInput:U[8]||(U[8]=v=>e.unref(C)())},null,8,["modelValue"])])]),_:1}),e.createVNode(Y,{class:"item click-box",effect:"dark",content:e.unref(y)("fullScreenSwitch"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",ix,[e.createVNode(R,{width:"18",height:"18",class:"click-box",name:e.unref(x)?"media-center-audio-reduce":"media-center-audio-enlarge",onClick:e.unref(M)},null,8,["name","onClick"])])]),_:1},8,["content"])])])],2)}}}),[["__scopeId","data-v-d0d3957a"]]),cx={beforeMount(t,n,o){var c;const a=(c=n.value)==null?void 0:c.change,s=t.querySelector(".hy-dialog_header"),l=t;s.style.cssText+=";cursor:move;";const r=function(){return window.document.currentStyle?(p,d)=>p.currentStyle[d]:(p,d)=>getComputedStyle(p,!1)[d]}(),i=p=>{const d=p.clientX-s.offsetLeft,f=p.clientY-s.offsetTop,m=l.offsetWidth,_=l.offsetHeight,k=document.body.clientWidth,u=document.body.clientHeight,N=l.offsetLeft,x=k-l.offsetLeft-m,E=l.offsetTop,b=u-l.offsetTop-_;let S=r(l,"left"),V=r(l,"top"),$=null,h=null,g=null,C=null;S.includes("%")?(S=+document.body.clientWidth*(+S.replace(/%/g,"")/100),V=+document.body.clientHeight*(+V.replace(/%/g,"")/100)):(S=+S.replace(/\px/g,""),V=+V.replace(/\px/g,""));const w=function(B){let L=B.clientX-d,j=B.clientY-f;-L>N?(L=-N,$="left"):L>x?(L=x,$="right"):$=null,-j>E?(j=-E,g="top"):j>b?(j=b,g="bottom"):g=null,h=L+S,C=j+V,l.style.cssText+=`;left:${h}px;top:${C}px;`},D=function(B){a&&a({left:h,leftType:$,top:C,topType:g}),document.onmousemove=null,document.onmouseup=null};document.onmousemove=w,document.touchmove=w,document.onmouseup=D,document.touchend=D;const T=je.sessionCache.getCache("plus-draggable")||{};Number.parseInt(t.style.zIndex)!==Number.parseInt(T.index)&&(T.index+=1,t.style.zIndex=T.index,je.sessionCache.setCache("plus-draggable",T))};s.onmousedown=i,s.touchstart=i},mounted:t=>{const n=je.sessionCache.getCache("plus-draggable")||{};n.index=n.index?n.index+1:1e3,n.num=n.num?n.num+1:1,t.style.zIndex=n.index,je.sessionCache.setCache("plus-draggable",n)},beforeUnmount:()=>{const t=je.sessionCache.getCache("plus-draggable")||{};t.num=t.num-1,t.num===0&&(t.index=1e3),je.sessionCache.setCache("plus-draggable",t)}},dx={class:"relative w-full h-full"},px=e.createElementVNode("div",{class:"w-full h-full relative z-[1]"},[e.createElementVNode("div",{id:"amap-test",class:"w-full h-full"})],-1),Nr=e.defineComponent({__name:"map-file-track",setup(t,{expose:n}){const o=e.shallowRef(),a=e.shallowRef(),{mapConfig:s,isShowMap:l,layersUrlList:r,H:i}=Qt(),c=e.ref({}),p=e.reactive(je.sessionCache.getCache("userInfo")),d=e.reactive(je.sessionCache.getCache("colorObject")),f=e.ref([]);e.onMounted(async()=>{l&&e.nextTick(()=>{m()})});async function m(){let u=[0,0];p.lng&&p.lat&&(u=[p.lat,p.lng]),o.value=await i.map("amap-test",{maxZoom:s.maxZoom||18,minZoom:s.minZoom||13,zoom:s.zoom||13,center:u,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:r,layerType:s.satelliteMap}),o.value.on("complete",N=>_())}function _(){if(!l||f.value.length===0)return;const u=f.value.map(N=>[N.lat,N.lng]);a.value=i.trackPlayer(o.value,u,{speed:600,weight:6,passedLineColor:d.success||"#9AF454",notPassedLineColor:d.theme||"#A7DDFC",markerRotation:!0,markerRotationOffset:130,iconUrl:"https://webapi.amap.com/images/car.png",iconAnchor:[27,10]}),i.fitBounds(o.value,u)}async function k(u){if(c.value=u,c.value){const N=await u1(c.value.id);if(N.code===200){const x=N.data||[];x&&x.length!==0?f.value=x:c.value.lng&&c.value.lat?f.value=[{lng:c.value.lng,lat:c.value.lat}]:f.value=[],e.nextTick(()=>{_()})}}}return n({setPlayItem:k}),(u,N)=>(e.openBlock(),e.createElementBlock("div",dx,[e.withDirectives(e.createVNode(Gt,{ref:"mapNoPermissions",class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(l)]]),px]))}});function fx(t){const n=t.emit,o=e.ref(null),a=e.ref(null),s=e.ref(null),l=e.ref(!1);function r(p,d){return new Promise((f,m)=>{if(!p)return m(new Error(y("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(y("pleaseScoreTheCurrentFile"));const p={fileScore:o.value,ids:[a.value]};(await g1(p)).code===200&&(s.value(o.value),n("on-submit",o.value),pe.ElMessage.success(y("successfulScoring")),l.value=!1)}return{fileScore:o,dialogVisible:l,show:r,onClose:i,onSubmit:c}}const mx={class:"box-border text-hy-text-main el-drag-dialog w-full h-full rounded overflow-hidden border border-hy-main shadow-[0_0_6px_0] shadow-hy-main flex flex-col"},hx={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},ux={class:"absolute right-[10px]"},_x={class:"dialog_body"},gx={class:"text-center m-[20px_0_40px_0]"},yx={class:"flex items-center justify-center mb-[10px] text-sm"},xx={class:"text-hy-text-main mr-[6px]"},kx={class:"text-hy-text-secondary text-xs"},Nx={class:"operator-button flex items-center justify-center mt-[20px]"},aa=e.defineComponent({__name:"file-score",emits:["on-close","on-submit"],setup(t,{expose:n,emit:o}){const a=o,s=e.reactive(He.getCache("colorObject")),l=e.computed(()=>({2:s.auxiliary,3:s.warning,4:s.success,5:s.theme})),{fileScore:r,dialogVisible:i,show:c,onClose:p,onSubmit:d}=fx({emit:a});return n({show:c}),e.onMounted(()=>{}),(f,m)=>{const _=e.resolveComponent("svg-icon"),k=e.resolveComponent("el-rate"),u=e.resolveComponent("el-button"),N=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(N,{"model-value":e.unref(i),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"!p-0 border-[0] shadow-[0_0_0_0] w-[440px]"},{default:e.withCtx(()=>[e.createVNode($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",mx,[e.createElementVNode("div",hx,[e.createElementVNode("span",null,e.toDisplayString(e.unref(y)("confirmScore")),1),e.createElementVNode("div",ux,[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",_x,[e.createElementVNode("div",gx,[e.createElementVNode("div",yx,[e.createElementVNode("span",xx,e.toDisplayString(e.unref(y)("confirmAs")),1),e.createVNode(k,{modelValue:e.unref(r),"onUpdate:modelValue":m[0]||(m[0]=x=>e.isRef(r)?r.value=x:null),"void-color":s.main,colors:l.value},null,8,["modelValue","void-color","colors"])]),e.createElementVNode("span",kx,e.toDisplayString(e.unref(y)("noSecondaryModificationAfterScoring")),1)]),e.createElementVNode("div",Nx,[e.createVNode(u,{type:"primary",class:"w-[100px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("close")),1)]),_:1},8,["onClick"]),e.createVNode(u,{class:"w-[100px]",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("confirm")),1)]),_:1},8,["onClick"])])])])]),_:1})]),_:1},8,["model-value"])}}});function bx(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(null),s=e.ref(null),l=e.ref([]),r=e.ref({content:""}),i=e.reactive({content:[{required:!0,message:y("pleaseEnterTheDotName"),trigger:"blur"}]}),c=e.ref(!1),p=e.ref(""),d=e.reactive(He.getCache("userInfo"));function f(){c.value=!1,n("on-close"),r.value={content:""},p.value=""}async function m(){if(o.value.mediaFileId){const b=await k1({mediaFileId:o.value.mediaFileId});b.code===200&&(l.value=b.data,l.value.sort((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(y("pleaseEnterTheDotContent")),!1;(await N1({id:r.value.id,content:r.value.content,mediaFileId:o.value.mediaFileId,time:r.value.time||o.value.mediaFileCurTime})).code===200&&(m(),f())}})}function k(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 x(b){p.value=b,n("on-edit"),mt({tipsTitle:y("deleteDot"),tipsContent:`<div class="text-center"><p>${y("deleteDotPositionCannotBeRestored")}</p><p>${y("confirmDeletion")}?</p></div>`,submitBtnText:y("confirm-0")},()=>{E()},()=>{f()})}async function E(){(await xr({ids:p.value})).code===200&&(m(),f())}return{formRef:a,userId:s,pointList:l,form:r,rules:i,dialogVisible:c,deleteIds:p,onClose:f,getData:m,savePoint:_,playPoint:k,addPoint:u,editPoint:N,showDeleteDialog:x,deletePoint:E,userInfo:d}}const sa=t=>(e.pushScopeId("data-v-ae4b4f28"),t=t(),e.popScopeId(),t),Cx={class:"w-full h-full"},wx={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},Ex={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},Sx={class:"text-hy-text-main font-bold text-sm"},Tx={class:"flex items-center justify-center"},Dx={class:"ml-[6px]"},Vx={class:"flex-grow h-0"},$x={class:"h-full flex flex-col"},Bx={class:"p-3 pb-0"},Ix={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col text-xs"},Ax={class:"flex-grow h-0"},Lx={class:"flex items-center justify-between"},Fx={class:"text-hy-text-secondary mr-1"},Ox=sa(()=>e.createElementVNode("span",null,"/",-1)),Rx={key:0,class:"px-3 py-1 text-hy-text-main text-xs flex-grow h-0 overflow-auto"},Px={class:"flex items-center justify-between"},Mx={class:"flex-grow w-0 mr-1 flex items-center"},Ux={class:"ml-2 flex-grow w-0"},zx={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},Wx={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},jx={key:0,class:"flex-shrink-0 flex"},Hx={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},Yx={class:"flex-grow h-0"},Gx={class:"flex items-center justify-between"},qx={class:"text-hy-text-secondary mr-1"},Kx=sa(()=>e.createElementVNode("span",null,"/",-1)),Xx={class:"px-2 mt-3 mb-1 text-xs"},Jx={class:"flex items-center justify-between"},Zx={class:"text-hy-text-secondary mr-1"},Qx=sa(()=>e.createElementVNode("span",null,"/",-1)),vx={class:"flex items-center mt-1"},ek={class:"text-hy-text-secondary mr-1"},tk={class:"flex-grow w-0 ml-1"},nk={key:1,class:"w-full flex-grow h-0 flex items-center justify-center rounded"},ok={class:"text-center text-xs text-hy-text-secondary"},ak={class:"mt-3"},br=be(e.defineComponent({__name:"mark",props:{mediaFileId:{},mediaFileTotalTime:{},mediaFileCurTime:{}},emits:["on-close","play-point","on-edit","on-edit","on-edit"],setup(t,{emit:n}){const o=t,a=n,{formRef:s,userId:l,pointList:r,form:i,rules:c,dialogVisible:p,deleteIds:d,onClose:f,getData:m,savePoint:_,playPoint:k,addPoint:u,editPoint:N,showDeleteDialog:x,deletePoint:E,userInfo:b}=bx({emit:a,props:o});return e.watch(()=>o.mediaFileId,()=>{m()}),e.onMounted(()=>{l.value=b.id}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-button"),g=e.resolveComponent("el-input"),C=e.resolveComponent("el-form-item"),w=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",Cx,[e.createElementVNode("div",wx,[e.createElementVNode("div",Ex,[e.createElementVNode("div",Sx,e.toDisplayString(e.unref(y)("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",Tx,[e.createVNode($,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),e.createElementVNode("span",Dx,e.toDisplayString(e.unref(y)("addDot-0")),1)])]),_:1},512),[[e.vShow,S.mediaFileId]])])]),e.createElementVNode("div",Vx,[e.createVNode(w,{ref_key:"formRef",ref:s,class:"h-full","label-position":"top",model:e.unref(i),rules:e.unref(c),"label-width":"0px"},{default:e.withCtx(()=>[e.createElementVNode("div",$x,[e.withDirectives(e.createElementVNode("div",Bx,[e.createElementVNode("div",Ix,[e.createElementVNode("div",Ax,[e.createVNode(C,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(i).content,"onUpdate:modelValue":V[1]||(V[1]=D=>e.unref(i).content=D),type:"textarea",placeholder:e.unref(y)("pleaseEnterTheDotName"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),e.createElementVNode("div",Lx,[e.createElementVNode("div",null,[e.createElementVNode("span",Fx,e.toDisplayString(e.unref(y)("dotPosition")),1),e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(ot)(Number(e.unref(i).time||o.mediaFileCurTime)))+" ",1),Ox,e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(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(y)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(h,{onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("save")),1)]),_:1},8,["onClick"])])])])],512),[[e.vShow,e.unref(p)&&!e.unref(i).id]]),e.unref(r).length?(e.openBlock(),e.createElementBlock("ul",Rx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),D=>(e.openBlock(),e.createElementBlock("li",{key:D.id,class:"bg-hy-page-bg-3 rounded my-2 p-2 box-hy-border-2"},[e.createElementVNode("div",Px,[e.createElementVNode("div",Mx,[e.createVNode(xt,{url:D.remarkUserHeadImg},null,8,["url"]),e.createElementVNode("div",Ux,[e.createElementVNode("p",zx,e.toDisplayString(D.remarkUserName),1),e.createElementVNode("p",Wx,e.toDisplayString(D.remarkUserSerialNum),1)])]),D.remarkUserId===e.unref(l)&&e.unref(i).id!==D.id?(e.openBlock(),e.createElementBlock("div",jx,[e.createVNode(Me,{"class-nmae":"HyRoundButtonV2",name:"media-center-2-audio-play-2",tips:e.unref(y)("play"),onClick:T=>e.unref(k)(D)},null,8,["tips","onClick"]),e.createVNode(Me,{class:"!mx-0","class-nmae":"HyRoundButtonV2",name:"icon-edit",tips:e.unref(y)("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(y)("delete"),onClick:T=>e.unref(x)(D.id)},null,8,["tips","onClick"])])):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",Hx,[e.createElementVNode("div",Yx,[e.createVNode(C,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(i).content,"onUpdate:modelValue":V[2]||(V[2]=T=>e.unref(i).content=T),type:"textarea",placeholder:e.unref(y)("pleaseEnterTheDotName"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),e.createElementVNode("div",Gx,[e.createElementVNode("div",null,[e.createElementVNode("span",qx,e.toDisplayString(e.unref(y)("dotPosition")),1),e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(e.unref(ot)(Number(e.unref(i).time||o.mediaFileCurTime)))+" ",1),Kx,e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(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(y)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(h,{onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("save")),1)]),_:1},8,["onClick"])])])],512),[[e.vShow,e.unref(i).id===D.id&&e.unref(p)]]),e.withDirectives(e.createElementVNode("div",Xx,[e.createElementVNode("div",Jx,[e.createElementVNode("div",null,[e.createElementVNode("span",Zx,e.toDisplayString(e.unref(y)("dotPosition")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(ot)(Number(D.time)))+" ",1),Qx,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",vx,[e.createElementVNode("span",ek,e.toDisplayString(e.unref(y)("dotName")),1),e.createElementVNode("div",tk,e.toDisplayString(D.content),1)])],512),[[e.vShow,!(e.unref(i).id===D.id&&e.unref(p))]])]))),128))])):(e.openBlock(),e.createElementBlock("div",nk,[e.createElementVNode("div",ok,[e.createVNode($,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),e.createElementVNode("div",ak,e.toDisplayString(e.unref(y)("noData")),1)])]))])]),_:1},8,["model","rules"])])])])}}}),[["__scopeId","data-v-ae4b4f28"]]);function sk(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(null),s=e.ref(null),l=e.ref(!1),r=e.ref({content:""}),i=e.reactive({content:[{required:!0,message:y("pleaseFillInTheRemarks"),trigger:"blur"}]}),c=e.ref([]),p=e.ref(""),d=e.reactive(He.getCache("userInfo"));function f(){l.value=!1,n("on-close"),r.value={content:""}}async function m(){if(o.value.mediaFileId){const b=await y1({mediaFileId:o.value.mediaFileId});b.code===200&&(c.value=b.data,n("on-getData",c.value))}}function _(){var b;(b=a.value)==null||b.clearValidate(),r.value={},n("on-edit"),l.value=!0}function k(){a.value.validate(async b=>{if(b){if(r.value.content==="")return pe.ElMessage.error(y("pleaseEnterTheRemarks")),!1;r.value.mediaFileId=o.value.mediaFileId,(await x1(r.value)).code===200&&(m(),f())}})}function u(b){p.value=b,mt({tipsTitle:y("deleteRemarks"),tipsContent:`<div class="text-center"><p>${y("reminderCannotBeRestoredAfterDeletion")}</p><p>${y("confirmDeletion")}?</p></div>`,submitBtnText:y("confirm-0")},()=>{x()})}function N(){p.value=""}async function x(){(await xr({ids:p.value})).code===200&&(m(),N(),n("on-delete"))}function E(b){var S;(S=a.value)==null||S.clearValidate(),r.value=JSON.parse(JSON.stringify(b)),l.value=!0,n("on-edit")}return{formRef:a,userId:s,dialogVisible:l,form:r,rules:i,markList:c,deleteIds:p,onClose:f,getData:m,addMark:_,onSubmit:k,showDeleteDialog:u,onCloseDeleteMark:N,deleteMark:x,editMark:E,userInfo:d}}const lk={class:"w-full h-full"},rk={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},ik={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},ck={class:"text-hy-text-main font-bold text-sm"},dk={class:"flex items-center justify-center"},pk={class:"ml-[6px]"},fk={class:"flex-grow h-0"},mk={class:"h-full flex flex-col"},hk={class:"p-3 pb-0"},uk={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col"},_k={class:"flex-grow h-0"},gk={class:"h-[40px] flex items-end justify-end"},yk={key:0,class:"px-3 py-1 text-hy-text-main text-xs flex-grow h-0 overflow-auto"},xk={class:"flex items-center justify-between"},kk={class:"flex-grow w-0 mr-1 flex items-center"},Nk={class:"ml-2 flex-grow w-0"},bk={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},Ck={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},wk={key:0,class:"flex-shrink-0 flex items-center"},Ek={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},Sk={class:"flex-grow h-0"},Tk={class:"h-[40px] flex items-end justify-end"},Dk={key:1,class:"w-full flex-grow h-0 flex items-center justify-center rounded"},Vk={class:"text-center text-xs text-hy-text-secondary"},$k={class:"mt-3"},la=e.defineComponent({__name:"remark",props:{mediaFileId:{default:null}},emits:["on-close","on-getData","on-edit","on-delete","on-edit"],setup(t,{emit:n}){const o=t,a=n,{formRef:s,userId:l,dialogVisible:r,form:i,rules:c,markList:p,onClose:d,getData:f,addMark:m,onSubmit:_,showDeleteDialog:k,onCloseDeleteMark:u,deleteMark:N,editMark:x,userInfo:E}=sk({emit:a,props:o});return e.watch(()=>o.mediaFileId,()=>{f()}),e.onMounted(()=>{l.value=E.id}),(b,S)=>{const V=e.resolveComponent("svg-icon"),$=e.resolveComponent("el-button"),h=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),C=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",lk,[e.createElementVNode("div",rk,[e.createElementVNode("div",ik,[e.createElementVNode("div",ck,e.toDisplayString(e.unref(y)("reminderList")),1),e.createElementVNode("div",null,[e.withDirectives(e.createVNode($,{type:"success",class:"",onClick:S[0]||(S[0]=w=>e.unref(m)())},{default:e.withCtx(()=>[e.createElementVNode("div",dk,[e.createVNode(V,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),e.createElementVNode("span",pk,e.toDisplayString(e.unref(y)("addRemarks-0")),1)])]),_:1},512),[[e.vShow,b.mediaFileId]])])]),e.createElementVNode("div",fk,[e.createVNode(C,{ref_key:"formRef",ref:s,class:"h-full","label-position":"top",model:e.unref(i),rules:e.unref(c),"label-width":"0px"},{default:e.withCtx(()=>[e.createElementVNode("div",mk,[e.withDirectives(e.createElementVNode("div",hk,[e.createElementVNode("div",uk,[e.createElementVNode("div",_k,[e.createVNode(g,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(i).content,"onUpdate:modelValue":S[1]||(S[1]=w=>e.unref(i).content=w),type:"textarea",placeholder:e.unref(y)("pleaseFillInTheRemarks"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),e.createElementVNode("div",gk,[e.createVNode($,{type:"primary",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode($,{onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("save")),1)]),_:1},8,["onClick"])])])],512),[[e.vShow,e.unref(r)&&!e.unref(i).id]]),e.unref(p).length?(e.openBlock(),e.createElementBlock("ul",yk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),w=>(e.openBlock(),e.createElementBlock("li",{key:w.id,class:"bg-hy-page-bg-3 rounded my-2 p-2 box-hy-border-2"},[e.createElementVNode("div",xk,[e.createElementVNode("div",kk,[e.createVNode(xt,{url:w.remarkUserHeadImg},null,8,["url"]),e.createElementVNode("div",Nk,[e.createElementVNode("p",bk,e.toDisplayString(w.remarkUserName),1),e.createElementVNode("p",Ck,e.toDisplayString(w.remarkUserSerialNum),1)])]),w.remarkUserId===e.unref(l)&&e.unref(i).id!==w.id?(e.openBlock(),e.createElementBlock("div",wk,[e.createVNode(Me,{class:"!mx-0","class-nmae":"HyRoundButtonV2",name:"icon-edit",tips:e.unref(y)("edit"),onClick:D=>e.unref(x)(w)},null,8,["tips","onClick"]),e.createVNode(Me,{class:"hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-text-danger",name:"base-delete",tips:e.unref(y)("delete"),onClick:D=>e.unref(k)(w.id)},null,8,["tips","onClick"])])):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",Ek,[e.createElementVNode("div",Sk,[e.createVNode(g,{prop:"content"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(i).content,"onUpdate:modelValue":S[2]||(S[2]=D=>e.unref(i).content=D),type:"textarea",placeholder:e.unref(y)("pleaseFillInTheRemarks"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),e.createElementVNode("div",Tk,[e.createVNode($,{type:"primary",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode($,{onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("save")),1)]),_:1},8,["onClick"])])],512),[[e.vShow,e.unref(i).id===w.id&&e.unref(r)]]),e.withDirectives(e.createElementVNode("div",{class:"px-2 mt-3 mb-1"},e.toDisplayString(w.content),513),[[e.vShow,!(e.unref(i).id===w.id&&e.unref(r))]])]))),128))])):(e.openBlock(),e.createElementBlock("div",Dk,[e.createElementVNode("div",Vk,[e.createVNode(V,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),e.createElementVNode("div",$k,e.toDisplayString(e.unref(y)("noData")),1)])]))])]),_:1},8,["model","rules"])])])])}}});function Cr(t){const n=t.emit,o=e.ref(Ke.NO_LOAD),a=e.ref(null),s=e.ref(null),l=e.ref(!0),r=e.ref(null),i=e.ref({}),c=e.ref(0),p=e.ref(0),d=e.reactive(He.getCache("colorObject")),f=e.computed(()=>({2:d.auxiliary,3:d.warning,4:d.success,5:d.theme}));function m(){var g;(g=a.value)==null||g.show(i.value.id,r.value).then(C=>{i.value.fileScore=C,r.value=C})}function _(){n("closeDrawer")}function k(){}function u(g){N(g.playItem)}async function N(g){const C=g.id;if(i.value.id!==C){i.value={...g},l.value=!0;const w=await yr(C);w.code===200&&(r.value=w.data,i.value.fileScore=r.value,l.value=!1,e.nextTick(()=>{var D;(D=s.value)==null||D.setPlayItem(i.value)}))}}function x(g){c.value=g}function E(g){p.value=g}function b(){if(t.params.getPlayerRef)return t.params.getPlayerRef()}function S(g){b().jumpDuration(g),b().resumePlay()}function V(){if(t.params.onEditMark){t.params.onEditMark();return}b().pauseAudio()}function $(){b().resumePlay()}function h(g){o.value=g}return{fileScoreRef:a,mapFileTrackRef:s,colorObject:d,colors:f,audioState:o,fileScoreLoading:l,fileScore:r,playItem:i,playerTotalTime:c,audioCurTime:p,fileScoreShow:m,closeDrawer:_,playEnd:k,onPlayStart:u,playStart:N,canPlay:x,onTimeUpdate:E,playPoint:S,onEditMark:V,onEditorClose:$,setAudioState:h}}const ra=t=>(e.pushScopeId("data-v-e67170d8"),t=t(),e.popScopeId(),t),Bk={class:"h-full text-hy-text-main flex flex-col"},Ik={class:"h-[60px] flex justify-between items-center px-5 hy-dialog_header"},Ak={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},Lk={class:"text-hy-danger"},Fk={class:"flex-grow h-0 overflow-y-auto"},Ok={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},Rk={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},Pk={class:"audio-play-icon-box flex"},Mk={class:"relative"},Uk={class:"point_area"},zk={class:"point point_dot relative"},Wk={class:"w-full h-full rounded-full bg-hy-page-bg-2 flex items-center justify-center text-hy-text-main"},jk={class:"duration-1000"},Hk=[ra(()=>e.createElementVNode("div",{class:"point point_10"},null,-1)),ra(()=>e.createElementVNode("div",{class:"point point_40"},null,-1)),ra(()=>e.createElementVNode("div",{class:"point point_shadow point_80"},null,-1))],Yk={key:0,class:"w-full file-info"},Gk={class:"info-item"},qk={class:"info-label"},Kk={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Xk={class:"info-item"},Jk={class:"info-label"},Zk={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Qk={key:0,class:"flex items-center"},vk={key:1,class:"text-hy-text-secondary"},eN={class:"info-item"},tN={class:"info-label"},nN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},oN={class:"info-item"},aN={class:"info-label"},sN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},lN={key:0},rN={key:1},iN={key:2,class:"text-hy-danger"},cN={key:3,class:"text-hy-text-secondary"},dN={class:"info-item"},pN={class:"info-label"},fN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},mN={class:"info-item"},hN={class:"info-label"},uN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},_N={class:"info-item"},gN={class:"info-label"},yN={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},xN={key:1,class:"text-hy-text-secondary"},kN={class:"info-item"},NN={class:"info-label"},bN={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},CN={class:"info-item flex items-center text-xs"},wN={class:"info-label"},EN={class:"flex items-center rateBox"},SN={key:0,class:"text-hy-text-secondary"},TN={key:1,class:"text-hy-text-main"},DN={class:"info-item"},VN={class:"info-label"},$N={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},BN={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},IN={class:"mb-1"},AN={class:"w-[60%] flex"},LN={class:"flex-grow w-0 ml-2"},FN={class:"flex-grow w-0 ml-2"},ON=be(e.defineComponent({__name:"audio-details",props:{item:{},playList:{}},emits:["closeDrawer"],setup(t,{emit:n}){const o=t,a=n,s=e.ref(null),{fileScoreRef:l,mapFileTrackRef:r,colorObject:i,colors:c,audioState:p,fileScoreLoading:d,fileScore:f,playItem:m,playerTotalTime:_,audioCurTime:k,fileScoreShow:u,closeDrawer:N,playEnd:x,onPlayStart:E,playStart:b,canPlay:S,onTimeUpdate:V,playPoint:$,onEditMark:h,onEditorClose:g,setAudioState:C}=Cr({emit:a,params:{getPlayerRef:()=>s.value,onEditMark:()=>{s.value.pauseAudio()}}});return e.onBeforeUnmount(()=>{N()}),e.onMounted(()=>{e.nextTick(()=>{m.value={},b(o.item),e.nextTick(()=>{var w;(w=s.value)==null||w.playAudio(o.item.filePath,o.item)})})}),(w,D)=>{const T=e.resolveComponent("svg-icon"),B=e.resolveComponent("el-col"),L=e.resolveComponent("el-rate"),j=e.resolveComponent("el-row"),F=Nr;return e.openBlock(),e.createElementBlock("div",Bk,[e.createVNode(aa,{ref_key:"fileScoreRef",ref:l,onOnClose:D[0]||(D[0]=M=>f.value=null)},null,512),e.createElementVNode("div",Ik,[e.createElementVNode("div",Ak,[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",Lk,[e.createVNode(T,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])]),e.createElementVNode("div",Fk,[e.createElementVNode("div",Ok,[e.createElementVNode("div",Rk,[e.createElementVNode("div",Pk,[e.createElementVNode("div",Mk,[e.createElementVNode("div",Uk,[e.createElementVNode("div",zk,[e.createElementVNode("div",Wk,[e.createVNode(T,{width:"60%",height:"60%",name:"menu-micphone--2-select"})])]),e.withDirectives(e.createElementVNode("div",jk,Hk,512),[[e.vShow,e.unref(p)===e.unref(Ke).PLAYING]])])])]),e.unref(m)&&e.unref(m).id?(e.openBlock(),e.createElementBlock("div",Yk,[e.createVNode(j,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:e.withCtx(()=>[e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",Gk,[e.createElementVNode("span",qk,e.toDisplayString(e.unref(y)("creationTime")),1),e.createElementVNode("span",Kk,e.toDisplayString(e.unref(m).uploadDateStr),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",Xk,[e.createElementVNode("span",Jk,e.toDisplayString(e.unref(y)("fileAttributes")),1),e.createElementVNode("span",Zk,[e.unref(m).mark?(e.openBlock(),e.createElementBlock("span",Qk,[e.createTextVNode(e.toDisplayString(e.unref(y)("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",vk,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",eN,[e.createElementVNode("span",tN,e.toDisplayString(e.unref(y)("user-3")),1),e.createElementVNode("span",nN,e.toDisplayString(e.unref(m).devUserName),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",oN,[e.createElementVNode("span",aN,e.toDisplayString(e.unref(y)("fileSource")),1),e.createElementVNode("span",sN,[e.unref(m).type===1?(e.openBlock(),e.createElementBlock("span",lN,e.toDisplayString(e.unref(y)("daily")),1)):e.unref(m).type===2?(e.openBlock(),e.createElementBlock("span",rN,e.toDisplayString(e.unref(y)("task")),1)):e.unref(m).type===3?(e.openBlock(),e.createElementBlock("span",iN,"SOS")):(e.openBlock(),e.createElementBlock("span",cN,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",dN,[e.createElementVNode("span",pN,e.toDisplayString(e.unref(y)("deviceID")),1),e.createElementVNode("span",fN,e.toDisplayString(e.unref(m).deviceId),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",mN,[e.createElementVNode("span",hN,e.toDisplayString(e.unref(y)("audioDuration")),1),e.createElementVNode("span",uN,e.toDisplayString(e.unref(_))+"s ",1)])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",_N,[e.createElementVNode("span",gN,e.toDisplayString(e.unref(y)("expirationTime")),1),e.unref(m).expiredDtm?(e.openBlock(),e.createElementBlock("span",yN,e.toDisplayString(e.unref(m).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",xN,"-"))])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",kN,[e.createElementVNode("span",NN,e.toDisplayString(e.unref(y)("fileSize")),1),e.createElementVNode("span",bN,e.toDisplayString(e.unref(Ho)(e.unref(m).fileSize)),1)])]),_:1}),e.withDirectives(e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",CN,[e.createElementVNode("span",wN,e.toDisplayString(e.unref(y)("rating")),1),e.createElementVNode("div",EN,[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",SN,e.toDisplayString(e.unref(y)("rated")),1)):(e.openBlock(),e.createElementBlock("span",TN,e.toDisplayString(e.unref(y)("unrated")),1))])])]),_:1},512),[[e.vShow,!e.unref(d)]]),e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",DN,[e.createElementVNode("span",VN,e.toDisplayString(e.unref(y)("location")),1),e.createElementVNode("span",$N,e.toDisplayString(e.unref(m).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",BN,[e.createVNode(F,{ref_key:"mapFileTrackRef",ref:r},null,512)]),e.createElementVNode("div",IN,[e.createVNode(kr,{ref_key:"audioPlayerRef",ref:s,"play-list":w.playList,onOnTimeUpdate:e.unref(V),onCanPlay:e.unref(S),onPlayEnd:e.unref(x),onPlayStart:e.unref(E),onOnAudioState:e.unref(C)},null,8,["play-list","onOnTimeUpdate","onCanPlay","onPlayEnd","onPlayStart","onOnAudioState"])])]),e.createElementVNode("div",AN,[e.createElementVNode("div",LN,[e.createVNode(la,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":e.unref(m).id,onOnEdit:e.unref(h),onOnClose:e.unref(g)},null,8,["media-file-id","onOnEdit","onOnClose"])]),e.createElementVNode("div",FN,[e.createVNode(br,{class:"bg-hy-page-bg-2","media-file-cur-time":e.unref(k),"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 RN(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(null),s=e.ref(null),l=e.ref(!0),r=e.ref(null),i=e.ref(!1),c=e.ref([]),p=e.ref(!1),d=e.ref({});async function f(V){pe.ElMessage.warning(y("fileIsDownloading"));const $=jo(new Date,"Y-M-h D:m:s"),h=await Yo(`/mediaFile/mediaFileZip?mediaFileIds=${V.toString()}`),g=new FileReader;g.readAsDataURL(h),g.onload=C=>{const w=URL.createObjectURL(new Blob([h])),D=document.createElement("a");document.body.appendChild(D),D.href=w,D.download=`${y("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(y("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(y("currentIsTheLastItem"))}function k(){pe.ElMessage.success(y("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 x(){i.value=!1}function E(){n("closeDrawer")}function b(V){console.log("error",V)}async function S(V){const $=V.id;d.value={...V},l.value=!0;const h=await yr($);h.code===200&&(r.value=h.data||null,d.value.fileScore=r.value,l.value=!1)}return{imageViewerRef:s,fileScoreRef:a,fileScoreLoading:l,fileScore:r,imageviewerType:i,imageviewerUrl:c,videoDialogVisible:p,playItem:d,pictureDownloadFn:f,previousSheet:m,nextSheet:_,detectingHashValues:k,fileScoreShow:u,onShowViewer:N,imageviewerClose:x,closeDrawer:E,error:b,playStart:S}}const PN={class:"h-full pic-detail-box flex flex-col"},MN={class:"detail-box flex-shrink-0 hy-dialog_header"},UN={class:"box-header flex flex-row m-0"},zN={class:"flex flex-row left-header-box"},WN={class:"group-hy-info flex items-center text-base font-bold w-full"},jN={key:1,class:"ml-1 flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap"},HN={class:"flex flex-row right-header-box flex-shrink text-hy-danger"},YN={class:"flex-grow h-0 overflow-y-auto"},GN={class:"content flex flex-row h-full min-h-[700px]"},qN={class:"left-content-box relative"},KN=["src"],XN={class:"flex items-center justify-between h-[60px] box-hy-border-2"},JN={class:"text-xs"},ZN={class:"text-xs"},QN={class:"flex items-center"},vN={class:"text-xs text-hy-text-secondary mr-2 flex items-center"},e0={class:"flex items-center justify-center"},t0={class:"ml-1 text-xs"},n0={key:0,class:"w-full file-info mb-[10px]"},o0={class:"info-item"},a0={class:"info-label"},s0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},l0={class:"info-item"},r0={class:"info-label"},i0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},c0={class:"info-item"},d0={class:"info-label"},p0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},f0={class:"info-item"},m0={class:"info-label"},h0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},u0={key:0},_0={key:1},g0={key:2,class:"text-hy-danger"},y0={key:3,class:"text-hy-text-secondary"},x0={class:"info-item"},k0={class:"info-label"},N0={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},b0={key:1,class:"text-hy-text-secondary"},C0={class:"info-item"},w0={class:"info-label"},E0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},S0={key:0,class:"flex items-center"},T0={key:1,class:"text-hy-text-secondary"},D0={class:"info-item"},V0={class:"info-label"},$0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},B0={class:"info-item flex items-center text-xs"},I0={class:"info-label"},A0={class:"flex items-center rateBox"},L0={key:0,class:"text-hy-text-secondary"},F0={key:1,class:"text-hy-text-main"},O0={class:"info-item"},R0={class:"info-label"},P0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},M0={key:0,class:"w-[30%] ml-2 flex-shrink-0 relative"},U0=be(e.defineComponent({__name:"image-details",props:{item:{},playList:{default:()=>[]}},emits:["closeDrawer"],setup(t,{emit:n}){const o=t,a=n,s=e.reactive(He.getCache("colorObject")),l=e.computed(()=>({2:s.auxiliary,3:s.warning,4:s.success,5:s.theme})),{imageViewerRef:r,fileScoreRef:i,fileScoreLoading:c,fileScore:p,playItem:d,pictureDownloadFn:f,previousSheet:m,nextSheet:_,fileScoreShow:k,onShowViewer:u,closeDrawer:N,error:x,playStart:E}=RN({emit:a,props:o});return e.onMounted(()=>{E(o.item)}),(b,S)=>{const V=e.resolveComponent("svg-icon"),$=e.resolveComponent("el-button"),h=e.resolveComponent("el-icon"),g=e.resolveComponent("el-col"),C=e.resolveComponent("el-rate"),w=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",PN,[e.createVNode(aa,{ref_key:"fileScoreRef",ref:i,onOnClose:S[0]||(S[0]=D=>p.value=null)},null,512),e.createElementVNode("div",MN,[e.createElementVNode("div",UN,[e.createElementVNode("div",zN,[e.createElementVNode("div",WN,[e.unref(d).mark?(e.openBlock(),e.createBlock(V,{key:0,width:"16",height:"16",name:"media-center-mark-file",class:"pos_r"})):e.createCommentVNode("",!0),e.unref(d)?(e.openBlock(),e.createElementBlock("div",jN,e.toDisplayString(e.unref(d).fileName),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",HN,[e.createVNode(V,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])])]),e.createElementVNode("div",YN,[e.createElementVNode("div",GN,[e.createElementVNode("div",qN,[e.createElementVNode("div",{class:"pic-img relative flex items-center justify-center",onClick: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,KN)]),e.createElementVNode("div",XN,[e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",null,[e.createVNode($,{type:"primary",class:"",onClick:e.unref(m)},{default:e.withCtx(()=>[e.createElementVNode("span",JN,e.toDisplayString(e.unref(y)("previous")),1)]),_:1},8,["onClick"]),e.createVNode($,{type:"primary",class:"",onClick:e.unref(_)},{default:e.withCtx(()=>[e.createElementVNode("span",ZN,e.toDisplayString(e.unref(y)("next")),1)]),_:1},8,["onClick"])],512),[[e.vShow,o.playList.length>1]])]),e.createElementVNode("div",QN,[e.createElementVNode("p",vN,[e.createVNode(h,{class:"text-sm mr-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(Wd))]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(y)("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",e0,[e.createVNode(V,{class:"w-[12px] h-[12px]",name:"media-download"}),e.createElementVNode("span",t0,e.toDisplayString(e.unref(y)("download-0")),1)])]),_:1})])]),e.unref(d)&&e.unref(d).id?(e.openBlock(),e.createElementBlock("div",n0,[e.createVNode(w,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:e.withCtx(()=>[e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",o0,[e.createElementVNode("span",a0,e.toDisplayString(e.unref(y)("creationTime")),1),e.createElementVNode("span",s0,e.toDisplayString(e.unref(d).uploadDateStr),1)])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",l0,[e.createElementVNode("span",r0,e.toDisplayString(e.unref(y)("fileSize")),1),e.createElementVNode("span",i0,e.toDisplayString(e.unref(Ho)(e.unref(d).fileSize)),1)])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",c0,[e.createElementVNode("span",d0,e.toDisplayString(e.unref(y)("user-3")),1),e.createElementVNode("span",p0,e.toDisplayString(e.unref(d).devUserName),1)])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",f0,[e.createElementVNode("span",m0,e.toDisplayString(e.unref(y)("fileSource")),1),e.createElementVNode("span",h0,[e.unref(d).type===1?(e.openBlock(),e.createElementBlock("span",u0,e.toDisplayString(e.unref(y)("daily")),1)):e.unref(d).type===2?(e.openBlock(),e.createElementBlock("span",_0,e.toDisplayString(e.unref(y)("task")),1)):e.unref(d).type===3?(e.openBlock(),e.createElementBlock("span",g0,"SOS")):(e.openBlock(),e.createElementBlock("span",y0,"-"))])])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",x0,[e.createElementVNode("span",k0,e.toDisplayString(e.unref(y)("expirationTime")),1),e.unref(d).expiredDtm?(e.openBlock(),e.createElementBlock("span",N0,e.toDisplayString(e.unref(d).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",b0,"-"))])]),_:1}),e.createVNode(g,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",C0,[e.createElementVNode("span",w0,e.toDisplayString(e.unref(y)("fileAttributes")),1),e.createElementVNode("span",E0,[e.unref(d).mark?(e.openBlock(),e.createElementBlock("span",S0,[e.createTextVNode(e.toDisplayString(e.unref(y)("star"))+" ",1),e.createVNode(V,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-1 -top-[2px]"})])):(e.openBlock(),e.createElementBlock("span",T0,"-"))])])]),_:1}),e.createVNode(g,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",D0,[e.createElementVNode("span",V0,e.toDisplayString(e.unref(y)("deviceID")),1),e.createElementVNode("span",$0,e.toDisplayString(e.unref(d).deviceId),1)])]),_:1}),e.withDirectives(e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",B0,[e.createElementVNode("span",I0,e.toDisplayString(e.unref(y)("rating")),1),e.createElementVNode("div",A0,[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(k)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),e.unref(d).fileScore?(e.openBlock(),e.createElementBlock("span",L0,e.toDisplayString(e.unref(y)("rated")),1)):(e.openBlock(),e.createElementBlock("span",F0,e.toDisplayString(e.unref(y)("unrated")),1))])])]),_:1},512),[[e.vShow,!e.unref(c)]]),e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",O0,[e.createElementVNode("span",R0,e.toDisplayString(e.unref(y)("location")),1),e.createElementVNode("span",P0,e.toDisplayString(e.unref(d).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0)]),e.unref(d).id?(e.openBlock(),e.createElementBlock("div",M0,[e.createVNode(la,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":e.unref(d).id},null,8,["media-file-id"])])):e.createCommentVNode("",!0)])]),e.createVNode(Wo,{ref_key:"imageViewerRef",ref:r},null,512)])}}}),[["__scopeId","data-v-04b34f5b"]]),z0={class:"h-full text-hy-text-main flex flex-col"},W0={class:"h-[60px] flex justify-between items-center px-5 hy-dialog_header"},j0={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},H0={class:"text-hy-danger"},Y0={class:"flex-grow h-0 overflow-y-auto"},G0={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},q0={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},K0={class:"h-[240px] video-player-box mt-[20px] flex"},X0={key:0,class:"w-full file-info m-[10px_0]"},J0={class:"info-item"},Z0={class:"info-label"},Q0={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},v0={class:"info-item"},eb={class:"info-label"},tb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},nb={key:0,class:"flex items-center"},ob={key:1,class:"text-hy-text-secondary"},ab={class:"info-item"},sb={class:"info-label"},lb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},rb={class:"info-item"},ib={class:"info-label"},cb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},db={class:"info-item"},pb={class:"info-label"},fb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},mb={class:"info-item"},hb={class:"info-label"},ub={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},_b={key:0},gb={key:1},yb={key:2,class:"text-hy-danger"},xb={key:3,class:"text-hy-text-secondary"},kb={class:"info-item"},Nb={class:"info-label"},bb={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Cb={key:1,class:"text-hy-text-secondary"},wb={class:"info-item"},Eb={class:"info-label"},Sb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Tb={class:"info-item flex items-center text-xs"},Db={class:"info-label"},Vb={class:"flex items-center rateBox"},$b={key:0,class:"text-hy-text-secondary"},Bb={key:1,class:"text-hy-text-main"},Ib={class:"info-item"},Ab={class:"info-label"},Lb={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Fb={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},Ob={class:"w-[60%] flex"},Rb={class:"flex-grow w-0 ml-2"},Pb={class:"flex-grow w-0 ml-2"},Mb=be(e.defineComponent({__name:"video-details",props:{item:{},playList:{}},emits:["closeDrawer"],setup(t,{emit:n}){const o=t,a=n,s=e.ref(),{fileScoreRef:l,mapFileTrackRef:r,colorObject:i,colors:c,audioState:p,fileScoreLoading:d,fileScore:f,playItem:m,playerTotalTime:_,audioCurTime:k,fileScoreShow:u,closeDrawer:N,playEnd:x,onPlayStart:E,playStart:b,canPlay:S,onTimeUpdate:V,playPoint:$,onEditMark:h,onEditorClose:g,setAudioState:C}=Cr({emit:a,params:{getPlayerRef:()=>s.value,onEditMark:()=>{s.value.pauseVideo()}}});return e.onBeforeUnmount(()=>{N()}),e.onMounted(()=>{e.nextTick(()=>{m.value={},b(o.item),e.nextTick(()=>{var w;(w=s.value)==null||w.playVideo(o.item.filePath,o.item)})})}),(w,D)=>{const T=e.resolveComponent("svg-icon"),B=e.resolveComponent("el-col"),L=e.resolveComponent("el-rate"),j=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",z0,[e.createVNode(aa,{ref_key:"fileScoreRef",ref:l,onOnClose:D[0]||(D[0]=F=>f.value=null)},null,512),e.createElementVNode("div",W0,[e.createElementVNode("div",j0,[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",H0,[e.createVNode(T,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:e.unref(N)},null,8,["onClick"])])]),e.createElementVNode("div",Y0,[e.createElementVNode("div",G0,[e.createElementVNode("div",q0,[e.createElementVNode("div",K0,[e.createVNode(oa,{ref_key:"videoPlayerRef",ref:s,"play-list":w.playList,onCanPlay:e.unref(S),onOnTimeUpdate:e.unref(V),onPlayStart:e.unref(E)},null,8,["play-list","onCanPlay","onOnTimeUpdate","onPlayStart"])]),e.unref(m)&&e.unref(m).id?(e.openBlock(),e.createElementBlock("div",X0,[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",J0,[e.createElementVNode("span",Z0,e.toDisplayString(e.unref(y)("creationTime")),1),e.createElementVNode("span",Q0,e.toDisplayString(e.unref(m).uploadDateStr),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",v0,[e.createElementVNode("span",eb,e.toDisplayString(e.unref(y)("fileAttributes")),1),e.createElementVNode("span",tb,[e.unref(m).mark?(e.openBlock(),e.createElementBlock("span",nb,[e.createTextVNode(e.toDisplayString(e.unref(y)("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",ob,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",ab,[e.createElementVNode("span",sb,e.toDisplayString(e.unref(y)("user-3")),1),e.createElementVNode("span",lb,e.toDisplayString(e.unref(m).devUserName),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",rb,[e.createElementVNode("span",ib,e.toDisplayString(e.unref(y)("fileSize")),1),e.createElementVNode("span",cb,e.toDisplayString(e.unref(Ho)(e.unref(m).fileSize)),1)])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",db,[e.createElementVNode("span",pb,e.toDisplayString(e.unref(y)("deviceID")),1),e.createElementVNode("span",fb,e.toDisplayString(e.unref(m).deviceId),1)])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",mb,[e.createElementVNode("span",hb,e.toDisplayString(e.unref(y)("fileSource")),1),e.createElementVNode("span",ub,[e.unref(m).type===1?(e.openBlock(),e.createElementBlock("span",_b,e.toDisplayString(e.unref(y)("daily")),1)):e.unref(m).type===2?(e.openBlock(),e.createElementBlock("span",gb,e.toDisplayString(e.unref(y)("task")),1)):e.unref(m).type===3?(e.openBlock(),e.createElementBlock("span",yb,"SOS")):(e.openBlock(),e.createElementBlock("span",xb,"-"))])])]),_:1}),e.createVNode(B,{span:14},{default:e.withCtx(()=>[e.createElementVNode("div",kb,[e.createElementVNode("span",Nb,e.toDisplayString(e.unref(y)("expirationTime")),1),e.unref(m).expiredDtm?(e.openBlock(),e.createElementBlock("span",bb,e.toDisplayString(e.unref(m).expiredDtm),1)):(e.openBlock(),e.createElementBlock("span",Cb,"-"))])]),_:1}),e.createVNode(B,{span:10},{default:e.withCtx(()=>[e.createElementVNode("div",wb,[e.createElementVNode("span",Eb,e.toDisplayString(e.unref(y)("videoDuration")),1),e.createElementVNode("span",Sb,e.toDisplayString(e.unref(_))+"s ",1)])]),_:1}),e.withDirectives(e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",Tb,[e.createElementVNode("span",Db,e.toDisplayString(e.unref(y)("rating")),1),e.createElementVNode("div",Vb,[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",$b,e.toDisplayString(e.unref(y)("rated")),1)):(e.openBlock(),e.createElementBlock("span",Bb,e.toDisplayString(e.unref(y)("unrated")),1))])])]),_:1},512),[[e.vShow,!e.unref(d)]]),e.createVNode(B,{span:24},{default:e.withCtx(()=>[e.createElementVNode("div",Ib,[e.createElementVNode("span",Ab,e.toDisplayString(e.unref(y)("location")),1),e.createElementVNode("span",Lb,e.toDisplayString(e.unref(m).address),1)])]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",Fb,[e.createVNode(Nr,{ref_key:"mapFileTrackRef",ref:r},null,512)])]),e.createElementVNode("div",Ob,[e.createElementVNode("div",Rb,[e.createVNode(la,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":e.unref(m).id,onOnEdit:e.unref(h),onOnClose:e.unref(g)},null,8,["media-file-id","onOnEdit","onOnClose"])]),e.createElementVNode("div",Pb,[e.createVNode(br,{class:"bg-hy-page-bg-2","media-file-cur-time":e.unref(k),"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"]]),Ub={key:0,class:"fixed top-[10%] left-[25%]"},zb={class:"!p-0 !w-[1200px]"},Wb={class:"h-[780px] px-1 box-border bg-hy-page-bg-2 text-hy-text-main el-drag-dialog rounded overflow-hidden border border-hy-main shadow-[0_0_6px_0] shadow-hy-main flex flex-col"},jb=e.defineComponent({__name:"file-details",setup(t,{expose:n}){const o=cx,a=e.ref(!1),s=e.ref(!1),l=e.ref(1),r=e.ref({}),i=e.ref([]);function c(){a.value=!1,console.log("closeDrawer")}function p(d){a.value=!0,s.value=d.draggable,l.value=d.curMediaType,r.value=d.curItem,i.value=d.playList||[]}return e.onMounted(()=>{}),n({show:p}),(d,f)=>e.unref(a)?e.withDirectives((e.openBlock(),e.createElementBlock("div",Ub,[e.createElementVNode("div",zb,[e.createVNode($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",Wb,[e.unref(l)===2?(e.openBlock(),e.createBlock(ON,{key:0,item:e.unref(r),"play-list":e.unref(i),onCloseDrawer:c},null,8,["item","play-list"])):e.unref(l)===3?(e.openBlock(),e.createBlock(Mb,{key:1,item:e.unref(r),"play-list":e.unref(i),onCloseDrawer:c},null,8,["item","play-list"])):e.unref(l)===4?(e.openBlock(),e.createBlock(U0,{key:2,item:e.unref(r),"play-list":e.unref(i),onCloseDrawer:c},null,8,["item","play-list"])):e.createCommentVNode("",!0)])]),_:1})])])),[[e.unref(o)]]):e.createCommentVNode("",!0)}});function Hb(t){return oe.post({url:"/file/abortMultipartUpload",data:t,showLoading:!1,isJson:!0})}function Yb(t){return oe.post({url:"/file/multipartUploadAuth",data:t,showLoading:!1,isFormData:!0})}function Gb(t){return oe.post({url:"/file/completeMultipartUpload",data:t,showLoading:!1,isJson:!0})}function qb(t){return oe.post({url:"/mediaFile/mediaFile/save",data:t,showLoading:!1,isJson:!0})}function Kb(t){return oe.post({url:"/mediaFile/findByFileCloudKey",data:{fileCloudKey:t},showLoading:!1,isFormData:!0})}const Xb="/admin",Jb=new Nl({baseURL:`${He.getCache("host")||""}${Xb}`,timeout:Hs,headers:{"Content-Type":ct.JSON},interceptors:{requestSuccessFn:t=>{const n=He.getCache("userInfo");return t.headers.token=n==null?void 0:n.token,t.headers&&t.isJson?t.headers["Content-Type"]=ct.JSON:t.headers&&t.isFormData?t.headers["Content-Type"]=ct.FORM_DATA:t.headers&&t.isFileUpload&&(t.responseType="blob",t.headers["Content-Type"]=ct.FILE_UPLOAD),t.headers&&t.xAmzAcl&&(t.headers["Content-Type"]=t.fileType,t.headers["x-amz-acl"]="public-read"),t},requestFailureFn:t=>t,responseSuccessFn:t=>t.headers.etag?t.headers.etag:t.data,responseFailureFn:t=>t}});var wr={exports:{}};(function(t,n){(function(o){t.exports=o()})(function(o){var a=function(h,g){return h+g&4294967295},s=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function l(h,g,C,w,D,T){return g=a(a(g,h),a(w,T)),a(g<<D|g>>>32-D,C)}function r(h,g,C,w,D,T,B){return l(g&C|~g&w,h,g,D,T,B)}function i(h,g,C,w,D,T,B){return l(g&w|C&~w,h,g,D,T,B)}function c(h,g,C,w,D,T,B){return l(g^C^w,h,g,D,T,B)}function p(h,g,C,w,D,T,B){return l(C^(g|~w),h,g,D,T,B)}function d(h,g){var C=h[0],w=h[1],D=h[2],T=h[3];C=r(C,w,D,T,g[0],7,-680876936),T=r(T,C,w,D,g[1],12,-389564586),D=r(D,T,C,w,g[2],17,606105819),w=r(w,D,T,C,g[3],22,-1044525330),C=r(C,w,D,T,g[4],7,-176418897),T=r(T,C,w,D,g[5],12,1200080426),D=r(D,T,C,w,g[6],17,-1473231341),w=r(w,D,T,C,g[7],22,-45705983),C=r(C,w,D,T,g[8],7,1770035416),T=r(T,C,w,D,g[9],12,-1958414417),D=r(D,T,C,w,g[10],17,-42063),w=r(w,D,T,C,g[11],22,-1990404162),C=r(C,w,D,T,g[12],7,1804603682),T=r(T,C,w,D,g[13],12,-40341101),D=r(D,T,C,w,g[14],17,-1502002290),w=r(w,D,T,C,g[15],22,1236535329),C=i(C,w,D,T,g[1],5,-165796510),T=i(T,C,w,D,g[6],9,-1069501632),D=i(D,T,C,w,g[11],14,643717713),w=i(w,D,T,C,g[0],20,-373897302),C=i(C,w,D,T,g[5],5,-701558691),T=i(T,C,w,D,g[10],9,38016083),D=i(D,T,C,w,g[15],14,-660478335),w=i(w,D,T,C,g[4],20,-405537848),C=i(C,w,D,T,g[9],5,568446438),T=i(T,C,w,D,g[14],9,-1019803690),D=i(D,T,C,w,g[3],14,-187363961),w=i(w,D,T,C,g[8],20,1163531501),C=i(C,w,D,T,g[13],5,-1444681467),T=i(T,C,w,D,g[2],9,-51403784),D=i(D,T,C,w,g[7],14,1735328473),w=i(w,D,T,C,g[12],20,-1926607734),C=c(C,w,D,T,g[5],4,-378558),T=c(T,C,w,D,g[8],11,-2022574463),D=c(D,T,C,w,g[11],16,1839030562),w=c(w,D,T,C,g[14],23,-35309556),C=c(C,w,D,T,g[1],4,-1530992060),T=c(T,C,w,D,g[4],11,1272893353),D=c(D,T,C,w,g[7],16,-155497632),w=c(w,D,T,C,g[10],23,-1094730640),C=c(C,w,D,T,g[13],4,681279174),T=c(T,C,w,D,g[0],11,-358537222),D=c(D,T,C,w,g[3],16,-722521979),w=c(w,D,T,C,g[6],23,76029189),C=c(C,w,D,T,g[9],4,-640364487),T=c(T,C,w,D,g[12],11,-421815835),D=c(D,T,C,w,g[15],16,530742520),w=c(w,D,T,C,g[2],23,-995338651),C=p(C,w,D,T,g[0],6,-198630844),T=p(T,C,w,D,g[7],10,1126891415),D=p(D,T,C,w,g[14],15,-1416354905),w=p(w,D,T,C,g[5],21,-57434055),C=p(C,w,D,T,g[12],6,1700485571),T=p(T,C,w,D,g[3],10,-1894986606),D=p(D,T,C,w,g[10],15,-1051523),w=p(w,D,T,C,g[1],21,-2054922799),C=p(C,w,D,T,g[8],6,1873313359),T=p(T,C,w,D,g[15],10,-30611744),D=p(D,T,C,w,g[6],15,-1560198380),w=p(w,D,T,C,g[13],21,1309151649),C=p(C,w,D,T,g[4],6,-145523070),T=p(T,C,w,D,g[11],10,-1120210379),D=p(D,T,C,w,g[2],15,718787259),w=p(w,D,T,C,g[9],21,-343485551),h[0]=a(C,h[0]),h[1]=a(w,h[1]),h[2]=a(D,h[2]),h[3]=a(T,h[3])}function f(h){var g=[],C;for(C=0;C<64;C+=4)g[C>>2]=h.charCodeAt(C)+(h.charCodeAt(C+1)<<8)+(h.charCodeAt(C+2)<<16)+(h.charCodeAt(C+3)<<24);return g}function m(h){var g=[],C;for(C=0;C<64;C+=4)g[C>>2]=h[C]+(h[C+1]<<8)+(h[C+2]<<16)+(h[C+3]<<24);return g}function _(h){var g=h.length,C=[1732584193,-271733879,-1732584194,271733878],w,D,T,B,L,j;for(w=64;w<=g;w+=64)d(C,f(h.substring(w-64,w)));for(h=h.substring(w-64),D=h.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<D;w+=1)T[w>>2]|=h.charCodeAt(w)<<(w%4<<3);if(T[w>>2]|=128<<(w%4<<3),w>55)for(d(C,T),w=0;w<16;w+=1)T[w]=0;return B=g*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),L=parseInt(B[2],16),j=parseInt(B[1],16)||0,T[14]=L,T[15]=j,d(C,T),C}function k(h){var g=h.length,C=[1732584193,-271733879,-1732584194,271733878],w,D,T,B,L,j;for(w=64;w<=g;w+=64)d(C,m(h.subarray(w-64,w)));for(h=w-64<g?h.subarray(w-64):new Uint8Array(0),D=h.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<D;w+=1)T[w>>2]|=h[w]<<(w%4<<3);if(T[w>>2]|=128<<(w%4<<3),w>55)for(d(C,T),w=0;w<16;w+=1)T[w]=0;return B=g*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),L=parseInt(B[2],16),j=parseInt(B[1],16)||0,T[14]=L,T[15]=j,d(C,T),C}function u(h){var g="",C;for(C=0;C<4;C+=1)g+=s[h>>C*8+4&15]+s[h>>C*8&15];return g}function N(h){var g;for(g=0;g<h.length;g+=1)h[g]=u(h[g]);return h.join("")}N(_("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(a=function(h,g){var C=(h&65535)+(g&65535),w=(h>>16)+(g>>16)+(C>>16);return w<<16|C&65535}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function h(g,C){return g=g|0||0,g<0?Math.max(g+C,0):Math.min(g,C)}ArrayBuffer.prototype.slice=function(g,C){var w=this.byteLength,D=h(g,w),T=w,B,L,j,F;return C!==o&&(T=h(C,w)),D>T?new ArrayBuffer(0):(B=T-D,L=new ArrayBuffer(B),j=new Uint8Array(L),F=new Uint8Array(this,D,B),j.set(F),L)}}();function x(h){return/[\u0080-\uFFFF]/.test(h)&&(h=unescape(encodeURIComponent(h))),h}function E(h,g){var C=h.length,w=new ArrayBuffer(C),D=new Uint8Array(w),T;for(T=0;T<C;T+=1)D[T]=h.charCodeAt(T);return g?D:w}function b(h){return String.fromCharCode.apply(null,new Uint8Array(h))}function S(h,g,C){var w=new Uint8Array(h.byteLength+g.byteLength);return w.set(new Uint8Array(h)),w.set(new Uint8Array(g),h.byteLength),C?w:w.buffer}function V(h){var g=[],C=h.length,w;for(w=0;w<C-1;w+=2)g.push(parseInt(h.substr(w,2),16));return String.fromCharCode.apply(String,g)}function $(){this.reset()}return $.prototype.append=function(h){return this.appendBinary(x(h)),this},$.prototype.appendBinary=function(h){this._buff+=h,this._length+=h.length;var g=this._buff.length,C;for(C=64;C<=g;C+=64)d(this._hash,f(this._buff.substring(C-64,C)));return this._buff=this._buff.substring(C-64),this},$.prototype.end=function(h){var g=this._buff,C=g.length,w,D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],T;for(w=0;w<C;w+=1)D[w>>2]|=g.charCodeAt(w)<<(w%4<<3);return this._finish(D,C),T=N(this._hash),h&&(T=V(T)),this.reset(),T},$.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},$.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},$.prototype.setState=function(h){return this._buff=h.buff,this._length=h.length,this._hash=h.hash,this},$.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},$.prototype._finish=function(h,g){var C=g,w,D,T;if(h[C>>2]|=128<<(C%4<<3),C>55)for(d(this._hash,h),C=0;C<16;C+=1)h[C]=0;w=this._length*8,w=w.toString(16).match(/(.*?)(.{0,8})$/),D=parseInt(w[2],16),T=parseInt(w[1],16)||0,h[14]=D,h[15]=T,d(this._hash,h)},$.hash=function(h,g){return $.hashBinary(x(h),g)},$.hashBinary=function(h,g){var C=_(h),w=N(C);return g?V(w):w},$.ArrayBuffer=function(){this.reset()},$.ArrayBuffer.prototype.append=function(h){var g=S(this._buff.buffer,h,!0),C=g.length,w;for(this._length+=h.byteLength,w=64;w<=C;w+=64)d(this._hash,m(g.subarray(w-64,w)));return this._buff=w-64<C?new Uint8Array(g.buffer.slice(w-64)):new Uint8Array(0),this},$.ArrayBuffer.prototype.end=function(h){var g=this._buff,C=g.length,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],D,T;for(D=0;D<C;D+=1)w[D>>2]|=g[D]<<(D%4<<3);return this._finish(w,C),T=N(this._hash),h&&(T=V(T)),this.reset(),T},$.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},$.ArrayBuffer.prototype.getState=function(){var h=$.prototype.getState.call(this);return h.buff=b(h.buff),h},$.ArrayBuffer.prototype.setState=function(h){return h.buff=E(h.buff,!0),$.prototype.setState.call(this,h)},$.ArrayBuffer.prototype.destroy=$.prototype.destroy,$.ArrayBuffer.prototype._finish=$.prototype._finish,$.ArrayBuffer.hash=function(h,g){var C=k(new Uint8Array(h)),w=N(C);return g?V(w):w},$})})(wr);var Zb=wr.exports;const Qb=nl(Zb);class vb{md5(n,o,a){this.aborted=!1,this.progress=0;let s=0;const l=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,r=2097152,i=Math.ceil(n.size/r),c=new Qb.ArrayBuffer,p=new FileReader;d(),p.onloadend=f=>{if(c.append(f.target.result),s++,this.progress=s/i,a&&typeof a=="function"&&a(this.progress),this.aborted){o("aborted");return}s<i?d():o(null,c.end())};function d(){const f=s*r,m=f+r>=n.size?n.size:f+r;p.readAsArrayBuffer(l.call(n,f,m))}}abort(){this.aborted=!0}}function eC(t){const n=t.emit,o=e.ref(null),a=e.ref(null),s=e.ref(null),l=e.ref(null),r=e.ref(null),i=e.ref(!1),c=e.ref(0),p=e.ref(!1),d=e.ref([]),f=e.ref(!1),m=e.ref(!1),_=e.ref({1:".png,.jpg,.gif",2:".mp4",4:".mp3,.aac",5:".apk",6:".zip"}),k=e.ref([{label:y("imageFiles"),value:1},{label:y("videoFile"),value:2},{label:y("audioFiles"),value:4},{label:`APK${y("upgradePackage")}`,value:5},{label:y("softwarePackage"),value:6}]),u=e.ref([]),N=e.ref(null),x=e.ref(null),E=e.ref([]),b=e.ref([]),S=e.ref(File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice),V=e.ref(1024*1024*5);function $(){n("on-fileUploadNum",u.value.length)}function h(){p.value=!1}function g(){C(!0)}function C(O){p.value=O}function w(O){i.value=O}function D(O){l.value=O.startUploadingCallback||null,r.value=O.fileShardingCallback||null,a.value=O.onSubmit||null}function T(O,G){if(k.value=[{label:y("softwarePackage"),value:6}],N.value=6,s.value=G||null,D(O),f.value)return pe.ElMessage.error(y("fileReadingInProgressPleaseWait"));d.value=[],m.value=!0}function B(O,G){if(k.value=[{label:`APK${y("upgradePackage")}`,value:5}],N.value=5,s.value=G||null,D(O),f.value)return pe.ElMessage.error(y("fileReadingInProgressPleaseWait"));d.value=[],m.value=!0}function L(O,G){k.value=[{label:y("imageFiles"),value:1},{label:y("videoFile"),value:2},{label:y("audioFiles"),value:4}];const ne=O.folderId;if(ne){if(s.value=G||null,D({}),x.value=ne,D(O),f.value)return pe.ElMessage.error(y("fileReadingInProgressPleaseWait"));N.value=2,d.value=[],m.value=!0}}function j(){w(!1),m.value=!1}function F(){if(d.value.length===0)return pe.ElMessage.error(y("pleaseSelectAFile"));d.value.length>1&&pe.ElMessage.warning(y("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:x.value,onSubmit:a.value}).then(I=>{pe.ElMessage.success(`${y("startUploading")} ${I}`),G.length-1!==ne?O(G,ne+1).then(()=>{de({code:200})}):de({code:200})}).catch(()=>{G.length-1!==ne?O(G,ne+1).then(()=>{de({code:200})}):de({code:200})})});O(d.value,0).then(()=>{f.value=!1,r.value&&r.value(),d.value=[]})}function M(O){const G=O.type||"";if(N.value===1){if(!G.includes("image"))return pe.ElMessage.error(y("theUploadedFileIsNotOfImageType")),!1}else if(N.value===2){if(!G.includes("video"))return pe.ElMessage.error(y("theUploadedFileIsNotOfVideoType")),!1}else if(N.value===4){if(!G.includes("audio"))return pe.ElMessage.error(y("theUploadedFileIsNotOfAudioType")),!1}else if(N.value===5){if(!O.name.includes(`${_.value[5]}`))return pe.ElMessage.error(y("theUploadedFileIsNotAnAPKUpgradePackage")),!1}else if(N.value===6&&!O.name.includes(`${_.value[6]}`))return pe.ElMessage.error(y("theUploadedFileIsNotASoftwarePackage")),!1;return!0}function z(){E.value=[],b.value=[];const O=He.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 vb().md5(O,(_e,Ve)=>{_e?ne(_e):G({md5:Ve})})})}function Y(O){return new Promise(G=>{const ne=O.size;let de=0,_e=null;const Ve=Math.ceil(ne/V.value),I=[],A=()=>{const H=de*V.value,te=H+V.value>=ne?ne:H+V.value;if(_e=S.value.call(O,H,te),I.push(_e),de++,de<Ve)return A();G(I)};A()})}function X(O){const G=new File([O.file],O.file.name.replace(/\s*/g,""));d.value.push({name:G.name,file:G})}function P(O,G){if(O.file.name===G.fileName){const ne=new File([O.file],O.file.name.replace(/\s*/g,""));v(ne,{fileType:G.fileType,folderId:G.folderId,onSubmit:a.value,md5:G.md5}).then(de=>{pe.ElMessage.success(`${y("startUploading")} ${de}文件`)})}else pe.ElMessage.error(y("pleaseSelectTheSameFileForUploading"))}function v(O,G){return new Promise(async(ne,de)=>{const _e=G.md5||Hn(1);await Y(O).then(async(Ve=[])=>{const I=u.value.find(A=>A.md5===_e);if(he(_e,Ve),I){const A=I.status,H=I.errorReason;A==="error"&&!H?(ne(O.name),ke(I.md5)):de()}else{const A=await Yb({cannedACL:i.value?"public-read":"",fileName:O.name,contentLength:O.size,contentType:O.type,partSize:V.value});if(A.code===200){const H=A.data;if(H){const te=H.list||[],Ne={md5:_e,fileType:G.fileType,folderId:G.folderId,onSubmit:G.onSubmit,fileName:O.name,size:O.size,type:O.type,key:H.key,uploadId:H.uploadId,status:"uploading",completionTime:null,progress:0,finishNum:0,totalNum:te.length,shardingList:te.map((me,ue)=>({key:me.key,url:me.url,partNumber:ue+1,isUpload:!1,etag:null}))};ne(O.name),u.value.unshift(Ne),$(),e.nextTick(()=>{U(),ke(Ne.md5)})}}}})})}function Te(O){return new Promise(async(G,ne)=>{const de=await Kb(O);de.code===200&&(de.data?ne(new Error(y("prohibitUploadingFilesWithTheSameNameOnThePlatform"))):G({code:200}))})}function he(O,G){const ne=E.value.findIndex(de=>de.md5===O);ne===-1?E.value.push({md5:O,fileChunkList:G}):E.value[ne].fileChunkList=G}function ke(O){const G=u.value.find(ne=>ne.md5===O);if(G.status==="amalgamation")ee(G);else if(G.status==="sharding")J(G);else{const ne=E.value.findIndex(A=>A.md5===G.md5);if(ne===-1){pe.ElMessage.error(y("errorInUploadingFile"));return}const de=E.value[ne].fileChunkList,_e=(A,H)=>new Promise((te,Ne)=>{const me=A[H];if(me)if(me.isUpload)A.length-1!==H?_e(A,H+1).then(()=>{te({code:200})}):te({code:200});else{const ue=de[H],W=new File([ue],G.name,{type:G.type,lastModified:Date.now()});Oe(me.url,W).then(K=>{me.etag=K,me.isUpload=!0;const ce=G.finishNum+1,we=G.totalNum;G.finishNum=ce,G.progress=Number.parseInt(String(ce/we*80)),U(),A[H]=me,A.length-1!==H?_e(A,H+1).then(()=>{te({code:200})}):te({code:200})})}}),Ve=G.shardingList,I=Ve.findIndex(A=>A.isUpload===!1);I!==-1?(G.status="uploading",_e(Ve,I).then(()=>{G.status="sharding",J(G)})):(G.status="sharding",J(G))}}function Oe(O,G){return new Promise((ne,de)=>{Jb.put({url:O,data:G}).then(_e=>{ne(_e)}).catch(()=>{de(new Error(y("uploadError")))})})}async function J(O){U();const G=await Gb({key:O.key,uploadId:O.uploadId,partETagList:O.shardingList.map(ne=>({partNumber:ne.partNumber,etag:ne.etag}))});(G.code===200||G.code===10020)&&(O.status="amalgamation",O.progress=80,ee(O))}async function ee(O){U();const G=()=>{O.completionTime=jo(new Date,"Y-M-h D:m:s"),O.status="success",b.value.unshift(O),Z(O.md5),O.onSubmit&&O.onSubmit(O),e.nextTick(()=>{U()})};s.value?s.value(O,()=>{G()}):(await qb({fileType:O.fileType,folderId:O.folderId,key:O.key,size:O.size})).code===200&&(pe.ElMessage.success(y("uploadSuccessful")),G())}function ie(O,G){G.splice(O,1)}function le(O){var G;(G=o.value)==null||G.show(O.fileCloudKey).then(()=>{O.onSubmit&&O.onSubmit()})}async function Z(O){if(!O)return;const G=u.value.findIndex(ne=>ne.md5===O);if(G!==-1){const ne=u.value[G];u.value.splice(G,1);const de=E.value.findIndex(_e=>_e.md5===O);de!==-1&&E.value.splice(de,1),$(),ne.key&&ne.uploadId?(await Hb({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:k,fileType:N,folderId:x,fileList:E,fileUploadList:u,successFileList:b,blobSlice:S,defaultChunkSize:V,fileUploadNumFn:$,onClose:h,show:g,setDialogVisible:C,setPublicRea:w,setCallback:D,fileUploadVersionShow:T,fileUploadAPkShow:B,fileUploadShow:L,fileUploadClose:j,fileUploadSubmit:F,beforeAvatarUpload:M,getData:z,saveData:U,getFileMd5:R,sliceFile:Y,uploadListRequestFn:X,handleHttpRequestImg:P,fileRequestFn:v,findByFileCloudKey:Te,fileListPushFn:he,uploadSliceFile:ke,uploadPart:Oe,completeMultipartUpload:J,mediaFileFn:ee,deleteListFn:ie,apkConfirmUploadShow:le,deleteFileUpload:Z}}const tC=t=>(e.pushScopeId("data-v-396f7126"),t=t(),e.popScopeId(),t),nC={class:"box-border text-hy-text-main el-drag-dialog w-full h-full rounded overflow-hidden border border-hy-main shadow-[0_0_6px_0] shadow-hy-main flex flex-col"},oC={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},aC={class:"absolute right-[10px]"},sC={class:"dialog_body"},lC={class:"mb-[10px]"},rC={class:"text-sm leading-[30px]"},iC={class:"mb-[10px]"},cC={class:"text-sm leading-[30px]"},dC={class:"text-center"},pC={class:"text-xs text-hy-text-secondary"},fC={class:"uploadList select-none"},mC={class:"flex-grow w-0"},hC={class:"text-right mt-[20px]"},uC={class:"box-border text-hy-text-main el-drag-dialog w-full h-full rounded overflow-hidden border border-hy-main shadow-[0_0_6px_0] shadow-hy-main flex flex-col"},_C={class:"relative border-b border-hy-border-2 pl-2 text-[18px] font-bold h-[50px] flex items-center justify-between"},gC={class:"absolute right-[10px]"},yC={class:"dialog_body el-dialog__body !p-[0_0_10px_0]"},xC={class:"progressBox text-hy-text-main el-progress-bar__outer_backgroundv3"},kC={class:"flex items-center"},NC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},bC={key:0,class:"flex items-center justify-center"},CC={key:0,class:"select-none click-box"},wC={class:"iconCloseBox click-box ml-[4px]"},EC={class:"flex flex-row leading-[20px] text-hy-danger select-none"},SC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},TC={class:"flex flex-row mb-[4px]"},DC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},VC=tC(()=>e.createElementVNode("span",null,[e.createElementVNode("i",{class:"el-icon-loading text-hy-main"})],-1)),$C={class:"flex flex-row leading-[20px]"},BC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},IC={class:"text-hy-main"},AC={class:"flex flex-row mb-[4px]"},LC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},FC={class:"iconCloseBox click-box"},OC={class:"flex flex-row leading-[20px]"},RC={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},PC={class:"text-hy-success"},MC={key:0,class:"text-hy-text-secondary flex items-center justify-center text-xs noData h-full"},UC={class:"text-center"},zC={class:"mt-[10px]"},WC=be(e.defineComponent({__name:"file-upload",emits:["on-fileUploadNum"],setup(t,{expose:n,emit:o}){const a=o,{apkConfirmUploadRef:s,onSubmit:l,publicRea:r,customFileSave:i,startUploadingCallback:c,fileShardingCallback:p,dragLevel:d,dialogVisible:f,uploadList:m,loading:_,fileUploadVisible:k,uploadAccept:u,fileTypeList:N,fileType:x,folderId:E,fileList:b,fileUploadList:S,successFileList:V,blobSlice:$,defaultChunkSize:h,fileUploadNumFn:g,onClose:C,show:w,setDialogVisible:D,setPublicRea:T,setCallback:B,fileUploadVersionShow:L,fileUploadAPkShow:j,fileUploadShow:F,fileUploadClose:M,fileUploadSubmit:z,beforeAvatarUpload:U,getData:R,saveData:Y,getFileMd5:X,sliceFile:P,uploadListRequestFn:v,handleHttpRequestImg:Te,fileRequestFn:he,findByFileCloudKey:ke,fileListPushFn:Oe,uploadSliceFile:J,uploadPart:ee,completeMultipartUpload:ie,mediaFileFn:le,deleteListFn:Z,apkConfirmUploadShow:O,deleteFileUpload:G}=eC({emit:a});return e.onMounted(()=>{R()}),n({fileUploadShow:F,fileUploadAPkShow:j,fileUploadVersionShow:L,show:w}),(ne,de)=>{const _e=e.resolveComponent("svg-icon"),Ve=e.resolveComponent("el-option"),I=e.resolveComponent("el-select"),A=e.resolveComponent("el-icon"),H=e.resolveComponent("el-upload"),te=e.resolveComponent("el-button"),Ne=e.resolveComponent("el-dialog"),me=e.resolveComponent("el-tooltip"),ue=e.resolveComponent("el-progress"),W=e.resolveDirective("draggable");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(Ne,{"model-value":e.unref(k),"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"w-[420px] !p-0 border-[0] shadow-[0_0_0_0]"},{default:e.withCtx(()=>[e.createVNode($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",nC,[e.createElementVNode("div",oC,[e.createElementVNode("span",null,e.toDisplayString(e.unref(y)("fileUpload")),1),e.createElementVNode("div",aC,[e.createVNode(_e,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(M),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",sC,[e.createElementVNode("div",lC,[e.createElementVNode("div",rC,e.toDisplayString(e.unref(y)("fileType")),1),e.createVNode(I,{modelValue:e.unref(x),"onUpdate:modelValue":de[0]||(de[0]=K=>e.isRef(x)?x.value=K:null),class:"!w-full",placeholder:e.unref(y)("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",iC,[e.createElementVNode("div",cC,e.toDisplayString(e.unref(y)("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(x)}`],action:"",drag:"","show-file-list":!1,multiple:""},{default:e.withCtx(()=>[e.createElementVNode("div",dC,[e.createVNode(A,{class:"text-[60px] text-hy-text-secondary"},{default:e.withCtx(()=>[e.createVNode(e.unref(Md))]),_:1}),e.createElementVNode("div",pC,[e.createTextVNode(e.toDisplayString(e.unref(y)("dragFilesHereOr")),1),e.createElementVNode("em",null,e.toDisplayString(e.unref(y)("clickToUpload")),1)])])]),_:1},8,["before-upload","http-request","accept"]),e.createElementVNode("ul",fC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(K,ce)=>(e.openBlock(),e.createElementBlock("li",{key:`${ce}uploadList`},[e.createElementVNode("span",mC,e.toDisplayString(K.name),1),e.createVNode(_e,{width:"16",height:"16",name:"icon-close",class:"click-box iconCloseBox clickBox text-hy-danger",onClick:we=>e.unref(Z)(ce,e.unref(m))},null,8,["onClick"])]))),128))])])]),e.createElementVNode("div",hC,[e.createVNode(te,{type:"primary",class:"w-[100px]",onClick:e.unref(M)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("close")),1)]),_:1},8,["onClick"]),e.createVNode(te,{class:"w-[100px]",onClick:e.unref(z)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("confirm")),1)]),_:1},8,["onClick"])])])])]),_:1})]),_:1},8,["model-value"]),e.createVNode(Ne,{"model-value":e.unref(f),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,modal:!1,draggable:!0,"modal-class":"custom-transparent",class:"w-[300px] !p-0 border-[0] shadow-[0_0_0_0] mr-[100px]",top:"15vh"},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",uC,[e.createElementVNode("div",_C,[e.createElementVNode("span",null,e.toDisplayString(e.unref(y)("fileUpload")),1),e.createElementVNode("div",gC,[e.createVNode(_e,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(C),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",yC,[e.createElementVNode("ul",xC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(S),(K,ce)=>(e.openBlock(),e.createElementBlock("li",{key:`${ce}fileUploadList`},[e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",kC,[e.createElementVNode("div",NC,e.toDisplayString(K.fileName),1),K.fileType!==5?(e.openBlock(),e.createElementBlock("div",bC,[e.createVNode(H,{class:"flex items-center justify-center","before-upload":e.unref(U),"http-request":we=>e.unref(Te)(we,K),action:"","show-file-list":!1},{default:e.withCtx(()=>[e.createVNode(me,{placement:"top","open-delay":500,class:"item",effect:"dark",content:e.unref(y)("selectTheSameFileAgainForUploading")},{default:e.withCtx(()=>[K.errorReason?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",CC,[e.createVNode(_e,{width:"16",height:"16",name:"live-broadcast-refresh-v3"})]))]),_:2},1032,["content"])]),_:2},1032,["before-upload","http-request"]),e.createElementVNode("div",wC,[e.createVNode(_e,{width:"16",height:"16",name:"icon-close",class:"text-hy-danger",onClick:we=>e.unref(G)(K.md5)},null,8,["onClick"])])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",EC,[e.createElementVNode("div",SC,e.toDisplayString(K.errorReason||e.unref(y)("uploadFailed")),1),e.createElementVNode("span",null,e.toDisplayString(K.progress)+"%",1)]),e.createVNode(ue,{"show-text":!1,status:"exception","text-inside":!0,"stroke-width":9,percentage:K.progress},null,8,["percentage"])],512),[[e.vShow,K.status==="error"]]),e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",TC,[e.createElementVNode("div",DC,e.toDisplayString(K.fileName),1),VC]),e.createElementVNode("div",$C,[e.createElementVNode("div",BC,[e.createElementVNode("span",null,e.toDisplayString(e.unref(y)("uploadingPatientWait"))+"…",1)]),e.createElementVNode("span",IC,e.toDisplayString(K.progress)+"%",1)]),e.createVNode(ue,{"show-text":!1,"text-inside":!0,"stroke-width":9,percentage:K.progress},null,8,["percentage"])],512),[[e.vShow,K.status!=="error"]])]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(V),(K,ce)=>(e.openBlock(),e.createElementBlock("li",{key:`${ce}successFileList`},[e.createElementVNode("div",AC,[e.createElementVNode("div",LC,e.toDisplayString(K.fileName),1),e.createElementVNode("div",FC,[e.createVNode(_e,{width:"16",height:"16",class:"text-hy-danger",name:"icon-close",onClick:we=>e.unref(Z)(ce,e.unref(V))},null,8,["onClick"])])]),e.createElementVNode("div",OC,[e.createElementVNode("div",RC,[e.createElementVNode("span",null,e.toDisplayString(K.completionTime),1)]),e.createElementVNode("span",PC,e.toDisplayString(e.unref(y)("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",MC,[e.createElementVNode("div",UC,[e.createVNode(_e,{name:"base-no-data",class:"!w-[50px] !h-[50px]"}),e.createElementVNode("div",zC,e.toDisplayString(e.unref(y)("noData-3")),1)])])):e.createCommentVNode("",!0)])])])]),_:1})),[[W]])]),_:1},8,["model-value"])])}}}),[["__scopeId","data-v-396f7126"]]);function jC({emit:t,props:n}){const o=e.shallowRef(),a=e.shallowRef(),s=e.ref(),{H:l,POI:r,isShowMap:i,layersUrlList:c,mapConfig:p}=Qt();function d(){i&&e.nextTick(async()=>{const x=He.getCache("userInfo");let E=[];x!=null&&x.lng&&(x!=null&&x.lat)&&(E=[x.lat,x.lng]),E.length===0&&(E=null),o.value=await l.map("selectMapLocation",{maxZoom:p.maxZoom||18,minZoom:p.minZoom||13,zoom:p.zoom||13,center:E,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:c,layerType:p.satelliteMap}),o.value.on("complete",()=>{t("on-map-ready"),n.latlng&&k(n.latlng)}),o.value.on("left-click",b=>{s.value=null,m({lng:b.latlng.lng,lat:b.latlng.lat})})})}async function f(x){const E=await r.placeSearch({keywords:x,offset:10,page:1});if(E){const b=E[0];m({lng:b.lng,lat:b.lat})}else t("on-geographical-position",{})}async function m(x){var b;const E=await r.reverseGeocoder(x);E&&((b=E.address)!=null&&b.length)||Se({type:"warning",message:"未获取到地址信息"}),_({lng:x.lng,lat:x.lat,address:E.formatted_address,name:E.formatted_address,...E})}function _(x){s.value=x,t("on-geographical-position",x),k()}function k(x){a.value&&l.removeMarker(o.value,a.value);let E,b;x?(E=x.lat,b=x.lng):(E=s.value.lat,b=s.value.lng);let S={icon:'<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAgCAYAAAASYli2AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAFKADAAQAAAABAAAAIAAAAADmfO67AAAEgklEQVRIDbVVXWhcVRCeuXuT3SSmmzQEhFYfRBEapGgfYuiPqYkI/rQBjQo+iK1JLdqKtD6IL3kv9CFBitsKCqYPaRHRVokhJoRKVRQpEsGXPpTkqZifxmw22XvO+M25e9Z7N6lPepa7M2fmmzkzc+acw7TFGBIJbl+nZyzRiyzUKUQ7FMZM8+B/DIgut3fR10PMgKQHp6dEb30vB4ylYRHZrUo4IA/yvKPMNzIBnfxwL88kfXiskw1Oy3EhGSGRTBJ0d54NM58odPM5j6k6HJiUAUu24BWOCmJBnlggFivah6mSCo8SDJ7vCc+ryDk8OiGPijXXhSXrQaqM1QkPmxaIF2MO1vF1ffwU/xqqmYnMGaSarS7pvKpGRyW6eFIz9zqbZZIzUPby6+MbnVGZfnD4mpRY2EogF8gG40FADVZsL6J+DSVwmbn8EgkgusfDjXXpqwaRcMjE1oocGX2u/tNqcESjr34ZjSGaK8gIpUsYABSR9AViqMeim9xn/qFGaHj0cMqZ8zt6KPzGWnvOAmAibGOFKm8M9wSRsfep0CkSFFl9nogsxQJ21WJx3SNPlY+s3RmS4TaL4+AGiKsOqLFSTHlJTDjKLEc2qkkYAOa2AIVaMJGGjyiRuqeYdCV8pNiyNZ2iWITqqfLW2IUAkczBKezhFGfO0ygyH7wwWnoo5QmT/jFpl8i+ryVSZ5463tJ8iMinEPseZ6iZVzYO7L2W7VTfZ6UjdfXZyVyJcn/J+sFyaW0Eu98eL5QwUNMg+I4PfVLcK2KvKaD2IMRG+s8RTiCWkozHqDTtjijgYJ/GQ89eWJmBcn+6qzYvgIsAiwpq78zgEDx+jjLNXD3a/ASaU7PMnBbDZVdktINSV+RK4X2fxjVWvfacJfRwhXKZJfOe+nIOr7zR+BMuh9PaU84I1PWXbhZ4AY0/zyuNF3ZU5JT6iIPT/8roHblzllne1TptPWqqFhf27MTb+VMeHxfDz0CfHF4q4FIYUFGyRglIlYVxYfKdlmNVARiXclJw4ET+TfTWRZ+6p5q69pynqN/F/Sfzx5O2ym+KUIXdUxLan5cuQ3u42ksVsCYdMH9Bj+X7pw9ypPjk2BShKhXYlG15GdFMuB3WY6nHU09HJN821OVf2cqZ2m4ZoSp0PP+RNC4sLI7jZOzTOSK7tn1769NfHeO7XxwKTA/cN0PE3bC/PUvBjg5qWalbGlNMczl8aX72nqX2DrLTKClwqIC/qhRRE+GeQalrbqSmKEvbgg3K53LUiHszizxwu2MIRWFA66USFW09LYfrdGelSKu/FLjs9PiLgTrrl0xLG21Doz6M1+oRaB5A/VrxQOMtiXEoOO5QWqsLaREWN/Gs/dbSQH/AdokuMfog4bC7A0d0kZoyObofh2A3otqFrw1NjheN3MOP/AxkeDLpT9g2Q7hsizQH2+XpS+ou4XB6lqTnQVpFirfg4AbSW0F1WsE3YAGXiUaIBdbwLcLxTfTMLW6kVbWN3f0PNdyibdK7vGsnZUp5xIORWyb5fY7Mv+2yj/Q/o38DhqCjJovBnOsAAAAASUVORK5CYII=" style="width: 20px; height: 32px;" />',zIndexOffset:10,iconAnchor:[10,32]};n.markerItemFn&&(S=n.markerItemFn()),l.setView(o.value,[E,b],18),a.value=l.marker(o.value,[E,b],S),l.markerAddTo(o.value,a.value)}function u(){a.value&&l.removeMarker(o.value,a.value)}function N(x){a.value&&l.updateMarkerIcon(a.value,x)}return{H:l,map:o,POI:r,marker:a,isShowMap:i,initMap:d,geographicalPositionFn:_,throughCoordinatePosition:m,placeSearchFn:f,setContentFn:N,removeMarker:u}}const HC={class:"w-full h-full relative"},YC={class:"relative z-[1] w-full h-full"},GC={id:"selectMapLocation",ref:"selectMapLocation",class:"w-full h-full"},qC=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:_}=jC({emit:s,props:a});return e.onMounted(()=>{r()}),n({throughCoordinatePosition:i,placeSearchFn:c,setContentFn:p,removeMarker:d,H:f,map:m,POI:_}),(k,u)=>(e.openBlock(),e.createElementBlock("div",HC,[e.withDirectives(e.createVNode(Gt,{class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(l)]]),e.createElementVNode("div",YC,[e.createElementVNode("div",GC,null,512)])]))}}),[["__scopeId","data-v-8ec3e599"]]);function KC({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(y("theFileHasBeenDeletedAndCannotBeViewed-0"));d.fileType===1||d.fileType===2||d.fileType}function i(){return new Promise(async(d,f)=>{if(t.formType===1){const m=await ju({taskId:o.value,deviceUserId:n.value});if(m.code===200){const _=m.data||{};a.value=_||{},a.value.imageList&&(a.value.imageListV2=a.value.imageList.map(k=>k.filePath)),d(0)}}else if(t.formType===2){const m=await Bl({recordId:l.value});if(m.code===200){const _=m.data||{};a.value=_||{},a.value.imageList&&(a.value.imageListV2=a.value.imageList.map(k=>k.filePath)),d(0)}}})}function c(d={}){if(!d)return;const f=Se.warning(y("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:y}}const XC={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},JC={key:0},ZC={key:1},QC={class:"absolute right-[12px] top-[12px]"},vC={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg relative z-10"},ew={style:{height:"500px"},class:"c_fff fs_12 dialog_body text-hy-text-main text-[12px]"},tw={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},nw={class:"information"},ow={class:"flex_vertically_center flex items-center"},aw={style:{"margin-left":"6px"}},sw={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},lw={class:"flex_vertically_center flex items-center"},rw={style:{"margin-left":"6px"}},iw={key:0,class:"type_box success"},cw={key:1,class:"type_box"},dw={class:"form fs_12 text-[12px]"},pw={key:0},fw={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},mw={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"},hw={key:1},uw={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},_w={class:"r-f mb_10 flex_vertically_center flex mb-[10px] items-center"},gw={class:"mr_10 label flex-shrink mr-[10px]"},yw={class:"r-f flex_vertically_center flex items-center"},xw={class:"mr_10 label label_answer flex-shrink mr-[10px]"},kw={key:0,class:"c_theme text-hy-text-primary"},Nw={key:1,class:"c_9DA7B2 text-hy-text-secondary"},bw={key:2},Cw={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px]"},ww={class:"group-item"},Ew=["onClick"],Sw={key:0,class:"c-f-i group-content r-f flex"},Tw={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},Dw=["src"],Vw={key:1,style:{"flex-grow":"1"}},$w={class:"icon-box c-f-i flex"},Bw={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},Iw={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},Aw={key:0,class:"information-type"},Lw={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},Fw={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},Ow={key:0,class:"c_9DA7B2 text-hy-text-secondary"},Rw={key:1},Pw={key:1,class:"c-f-i group-content r-f flex"},Mw={style:{"flex-grow":"1"}},Uw={class:"icon-box c-f-i flex"},zw={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},Ww={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},jw={key:0,class:"information-type"},Hw={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},Yw={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},Gw={key:0,class:"c_9DA7B2 text-hy-text-secondary"},qw={key:1},Kw={key:2,class:"c-f-i group-content r-f flex"},Xw={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},Jw=["src"],Zw={key:1,style:{"flex-grow":"1"}},Qw={class:"icon-box c-f-i flex"},vw={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},eE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},tE={key:0,class:"information-type"},nE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},oE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},aE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},sE={key:1},lE={key:3},rE={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},iE={class:"group-item"},cE=["onClick"],dE={key:0,class:"c-f-i group-content r-f flex"},pE={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},fE=["src"],mE={key:1,style:{"flex-grow":"1"}},hE={class:"icon-box c-f-i flex"},uE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},_E={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},gE={key:0,class:"information-type"},yE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},xE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},kE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},NE={key:1},bE={key:1,class:"c-f-i group-content r-f flex"},CE={style:{"flex-grow":"1"}},wE={class:"icon-box c-f-i flex"},EE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},SE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},TE={key:0,class:"information-type"},DE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},VE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},$E={key:0,class:"c_9DA7B2 text-hy-text-secondary"},BE={key:1},IE={key:2,class:"c-f-i group-content r-f flex"},AE={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},LE=["src"],FE={key:1,style:{"flex-grow":"1"}},OE={class:"icon-box c-f-i"},RE={class:"item-name h_40 c-f-i centerBox flex justify-center items-center h-[40px]"},PE={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},ME={key:0,class:"information-type"},UE={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},zE={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},WE={key:0,class:"c_9DA7B2 text-hy-text-secondary"},jE={key:1},Er=be(e.defineComponent({__name:"submission-form",props:{formType:{default:1},draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const o=t,{$t:a,show:s,dialogVisible:l,deviceReport:r,onClose:i,clickGroupItem:c}=KC({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]=k=>e.isRef(l)?l.value=k:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"530px",modal:!p.draggable,draggable:p.draggable,"modal-class":p.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",XC,[o.formType===1?(e.openBlock(),e.createElementBlock("span",JC,e.toDisplayString(e.unref(a)("exception")),1)):o.formType===2?(e.openBlock(),e.createElementBlock("span",ZC,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",QC,[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",vC,[e.createElementVNode("div",ew,[e.createElementVNode("div",tw,[e.createElementVNode("div",nw,[e.createElementVNode("div",ow,[e.createVNode(f,{style:{width:"14px",height:"14px"},name:"icon-user","class-name":"text-hy-text-main"}),e.createElementVNode("span",aw,[e.createTextVNode(e.toDisplayString(e.unref(r).name),1),e.unref(r).jobNum?(e.openBlock(),e.createElementBlock("span",sw,"("+e.toDisplayString(e.unref(r).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",lw,[e.createVNode(f,{name:"base-every-day-time",class:"w-[16px] h-[16px]"}),e.createElementVNode("span",rw,e.toDisplayString(e.unref(r).executeDtm),1)]),e.unref(r).checkState===1?(e.openBlock(),e.createElementBlock("div",iw,e.toDisplayString(e.unref(a)("normal")),1)):e.unref(r).checkState===2?(e.openBlock(),e.createElementBlock("div",cw,e.toDisplayString(e.unref(a)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",dw,[e.unref(r).dealSituation?(e.openBlock(),e.createElementBlock("div",pw,[e.createElementVNode("div",fw,e.toDisplayString(e.unref(a)("handling")),1),e.createElementVNode("p",mw,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",hw,[e.createElementVNode("div",uw,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,(k,u)=>(e.openBlock(),e.createElementBlock("li",{key:u,class:"border-top ptb_10 p-[10px_0px]"},[e.createElementVNode("div",_w,[e.createElementVNode("p",gw,e.toDisplayString(e.unref(a)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(k.optionTitle),1)]),e.createElementVNode("div",yw,[e.createElementVNode("p",xw,e.toDisplayString(e.unref(a)("answer")),1),k.optionValue?(e.openBlock(),e.createElementBlock("span",kw,e.toDisplayString(k.optionValue),1)):(e.openBlock(),e.createElementBlock("span",Nw,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",bw,[e.createElementVNode("div",Cw,e.toDisplayString(e.unref(a)("picture")),1),e.createElementVNode("div",ww,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).imageList,k=>(e.openBlock(),e.createElementBlock("div",{key:k.id,onClick:u=>e.unref(c)(k)},[k.fileType===1?(e.openBlock(),e.createElementBlock("div",Sw,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:k.check},"group-content-item"])},[k.filePath&&k.del!==1?(e.openBlock(),e.createElementBlock("div",Tw,[e.createElementVNode("img",{src:k.filePath,class:"h_100vh h-full"},null,8,Dw)])):(e.openBlock(),e.createElementBlock("div",Vw,[e.createElementVNode("div",$w,[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",Bw,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:k.del===1}])},e.toDisplayString(k.fileName),3)]),e.createElementVNode("div",Iw,[k.type===1?(e.openBlock(),e.createElementBlock("div",Aw,e.toDisplayString(e.unref(a)("daily")),1)):k.type===2?(e.openBlock(),e.createElementBlock("div",Lw,e.toDisplayString(e.unref(a)("task")),1)):k.type===3?(e.openBlock(),e.createElementBlock("div",Fw," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[k.hadPoint?(e.openBlock(),e.createElementBlock("li",Ow,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),k.hadRemark?(e.openBlock(),e.createElementBlock("li",Rw,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),k.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)])):k.fileType===4?(e.openBlock(),e.createElementBlock("div",Pw,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:k.check},"group-content-item"])},[e.createElementVNode("div",Mw,[e.createElementVNode("div",Uw,[e.createVNode(f,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(f,{name:"menu-micphone--2","class-name":"w-[40px] h-[40px]"}),e.createVNode(f,{style:{"margin-left":"4px"},name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])]),e.createElementVNode("div",zw,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:k.del===1}])},e.toDisplayString(k.fileName),3)]),e.createElementVNode("div",Ww,[k.type===1?(e.openBlock(),e.createElementBlock("div",jw,e.toDisplayString(e.unref(a)("daily")),1)):k.type===2?(e.openBlock(),e.createElementBlock("div",Hw,e.toDisplayString(e.unref(a)("task")),1)):k.type===3?(e.openBlock(),e.createElementBlock("div",Yw," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[k.hadPoint?(e.openBlock(),e.createElementBlock("li",Gw,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),k.hadRemark?(e.openBlock(),e.createElementBlock("li",qw,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),k.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)])):k.fileType===2?(e.openBlock(),e.createElementBlock("div",Kw,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:k.check},"group-content-item"])},[k.screenshot1?(e.openBlock(),e.createElementBlock("div",Xw,[e.createElementVNode("img",{src:k.screenshot1,class:"h_100vh h-full"},null,8,Jw)])):(e.openBlock(),e.createElementBlock("div",Zw,[e.createElementVNode("div",Qw,[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",vw,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:k.del===1}])},e.toDisplayString(k.fileName),3)]),e.createElementVNode("div",eE,[k.type===1?(e.openBlock(),e.createElementBlock("div",tE,e.toDisplayString(e.unref(a)("daily")),1)):k.type===2?(e.openBlock(),e.createElementBlock("div",nE,e.toDisplayString(e.unref(a)("task")),1)):k.type===3?(e.openBlock(),e.createElementBlock("div",oE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[k.hadPoint?(e.openBlock(),e.createElementBlock("li",aE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),k.hadRemark?(e.openBlock(),e.createElementBlock("li",sE,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),k.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,Ew))),128))])])):e.createCommentVNode("",!0),e.unref(r).videoList&&e.unref(r).videoList.length?(e.openBlock(),e.createElementBlock("div",lE,[e.createElementVNode("div",rE,e.toDisplayString(e.unref(a)("video")),1),e.createElementVNode("div",iE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).videoList,k=>(e.openBlock(),e.createElementBlock("div",{key:k.id,onClick:u=>e.unref(c)(k)},[k.fileType===1?(e.openBlock(),e.createElementBlock("div",dE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:k.check},"group-content-item"])},[k.filePath&&k.del!==1?(e.openBlock(),e.createElementBlock("div",pE,[e.createElementVNode("img",{src:k.filePath,class:"h_100vh h-full"},null,8,fE)])):(e.openBlock(),e.createElementBlock("div",mE,[e.createElementVNode("div",hE,[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",uE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:k.del===1}])},e.toDisplayString(k.fileName),3)]),e.createElementVNode("div",_E,[k.type===1?(e.openBlock(),e.createElementBlock("div",gE,e.toDisplayString(e.unref(a)("daily")),1)):k.type===2?(e.openBlock(),e.createElementBlock("div",yE,e.toDisplayString(e.unref(a)("task")),1)):k.type===3?(e.openBlock(),e.createElementBlock("div",xE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[k.hadPoint?(e.openBlock(),e.createElementBlock("li",kE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),k.hadRemark?(e.openBlock(),e.createElementBlock("li",NE,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),k.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)])):k.fileType===4?(e.openBlock(),e.createElementBlock("div",bE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:k.check},"group-content-item"])},[e.createElementVNode("div",CE,[e.createElementVNode("div",wE,[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",EE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:k.del===1}])},e.toDisplayString(k.fileName),3)]),e.createElementVNode("div",SE,[k.type===1?(e.openBlock(),e.createElementBlock("div",TE,e.toDisplayString(e.unref(a)("daily")),1)):k.type===2?(e.openBlock(),e.createElementBlock("div",DE,e.toDisplayString(e.unref(a)("task")),1)):k.type===3?(e.openBlock(),e.createElementBlock("div",VE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[k.hadPoint?(e.openBlock(),e.createElementBlock("li",$E,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),k.hadRemark?(e.openBlock(),e.createElementBlock("li",BE,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),k.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)])):k.fileType===2?(e.openBlock(),e.createElementBlock("div",IE,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:k.check},"group-content-item"])},[k.screenshot1?(e.openBlock(),e.createElementBlock("div",AE,[e.createElementVNode("img",{src:k.screenshot1,class:"h_100vh h-full"},null,8,LE)])):(e.openBlock(),e.createElementBlock("div",FE,[e.createElementVNode("div",OE,[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",RE,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:k.del===1}])},e.toDisplayString(k.fileName),3)]),e.createElementVNode("div",PE,[k.type===1?(e.openBlock(),e.createElementBlock("div",ME,e.toDisplayString(e.unref(a)("daily")),1)):k.type===2?(e.openBlock(),e.createElementBlock("div",UE,e.toDisplayString(e.unref(a)("task")),1)):k.type===3?(e.openBlock(),e.createElementBlock("div",zE," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[k.hadPoint?(e.openBlock(),e.createElementBlock("li",WE,e.toDisplayString(e.unref(a)("point")),1)):e.createCommentVNode("",!0),k.hadRemark?(e.openBlock(),e.createElementBlock("li",jE,e.toDisplayString(e.unref(a)("note")),1)):e.createCommentVNode("",!0),k.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,cE))),128))])])):e.createCommentVNode("",!0)])])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-159e6064"]]);function HE(t){return oe.post({url:"taskAssign/v2/taskItem/select",data:t,isFormData:!0})}function ia(t){return oe.post({url:"taskAssign/v2/taskItemView",data:t,isFormData:!0})}function YE(t){return oe.post({url:"taskAssign/taskExample/select",data:t,isFormData:!0})}function GE({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(x,E)=>{const b=await(t.controller==="taskAssign/taskExample"?YE({id:N}):Mu({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}))),x(0)}})}function _(N={}){m(N.id).then(()=>{s.value=!0})}function k(N){console.log(N),o.value=[],a.value=[],n.value=N;const x=N.images;x&&x.length&&(o.value=x.split(","));const E=N.videos;E&&E.length&&(a.value=E.split(",").map((b,S)=>({filePath:b,fileName:`任务示例视频${S+1}.${b.split(".").reverse()[0]}`,id:S+1}))),s.value=!0,console.log(s.value)}function u(){s.value=!1}return{$t:y,form:n,hyImageViewerRef:i,imagesList:o,videoList:a,dialogVisible:s,videoDialogVisible:l,videoPlayerRef:r,onShowViewer:f,selectFn:m,show:_,taskExampleFn:k,onClose:u,videoPlayerShow:p,videoDialogClose:d,selVideo:c}}const qE={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},KE={class:"absolute right-[12px] top-[12px]"},XE={class:"deleteBox c_fff text-hy-text-main bg-hy-dialog-bg-1 relative z-10"},JE={class:"dialog_body"},ZE={class:"dialog_body_content lh_20 leading-[20px]"},QE={class:"mb_20 mb-[20px]"},vE={class:"requiredTitle"},eS={class:"plr_20 p-[0_20px]",style:{"max-height":"200px",overflow:"auto"}},tS=["innerHTML"],nS={key:0,class:"mb_20 mb-[20px]"},oS={class:"requiredTitle"},aS={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},sS={class:"imgBox"},lS={class:"centerBox deleteBox flex items-center justify-center"},rS=["src"],iS={key:1,class:"mb_20 mb-[20px]"},cS={class:"requiredTitle"},dS={class:"fileListBox css-text-no-select plr_20 p-[0px_20px]"},pS={class:"imgBox"},fS={class:"centerBox deleteBox flex items-center justify-center"},mS={class:"pos_a w_100vh centerBox absolute w-full flex justify-center items-center"},hS={class:"operator-button centerBox mt_20 mt-[20px] flex justify-center items-center"},uS={class:"c_fff activatedImei text-hy-text-main"},_S={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica']"},gS={class:"dialog_body",style:{height:"500px"}},yS={class:"pos_r w_100vh h_100vh w-full h-full relative"},Sr=be(e.defineComponent({__name:"view-task-example",props:{controller:{default:"taskAssign/taskExample"},draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const o=t,{$t:a,show:s,taskExampleFn:l,hyImageViewerRef:r,videoPlayerRef:i,dialogVisible:c,form:p,onClose:d,imagesList:f,onShowViewer:m,videoList:_,videoPlayerShow:k,videoDialogVisible:u,videoDialogClose:N,selVideo:x}=GE({props:o});return n({show:s,taskExampleFn:l}),(E,b)=>{const S=e.resolveComponent("svg-icon"),V=e.resolveComponent("el-dialog"),$=e.resolveComponent("el-button"),h=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(V,{modelValue:e.unref(c),"onUpdate:modelValue":b[2]||(b[2]=g=>e.isRef(c)?c.value=g:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",top:"6vh",width:"570px",modal:!E.draggable,draggable:E.draggable,"modal-class":E.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",qE,[e.createElementVNode("span",null,e.toDisplayString(e.unref(p).exampleName||e.unref(a)("missionExample")),1),e.createElementVNode("div",KE,[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",XE,[e.createElementVNode("div",JE,[e.createElementVNode("div",ZE,[e.createElementVNode("div",QE,[e.createElementVNode("div",vE,e.toDisplayString(e.unref(a)("sampleContent")),1),e.createElementVNode("div",eS,[e.createElementVNode("div",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(p).exampleContent},null,8,tS)])]),e.unref(f).length?(e.openBlock(),e.createElementBlock("div",nS,[e.createElementVNode("div",oS,e.toDisplayString(e.unref(a)("exampleImage")),1),e.createElementVNode("ul",aS,[(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",sS,[e.createElementVNode("div",lS,[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(a)("check-0"),onClick:w=>e.unref(m)(C)},null,8,["tips","onClick"])]),e.createElementVNode("img",{src:g,alt:""},null,8,rS)])]))),128))])])):e.createCommentVNode("",!0),e.unref(_).length?(e.openBlock(),e.createElementBlock("div",iS,[e.createElementVNode("div",cS,e.toDisplayString(e.unref(a)("exampleVideo")),1),e.createElementVNode("ul",dS,[(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",pS,[e.createElementVNode("div",fS,[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(a)("check-0"),onClick:w=>e.unref(k)(g)},null,8,["tips","onClick"])]),e.createElementVNode("div",mS,[e.createVNode(S,{name:"base-video-cover",style:{height:"40px",width:"40px"}})])])]))),128))])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",hS,[e.createVNode(V,{modelValue:e.unref(u),"onUpdate:modelValue":b[1]||(b[1]=g=>e.isRef(u)?u.value=g:null),"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss_lightColor",width:"800px",modal:!E.draggable,draggable:E.draggable,"modal-class":E.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",uS,[e.createElementVNode("div",_S,[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",gS,[e.createElementVNode("div",yS,[e.createVNode(oa,{ref_key:"videoPlayerRef",ref:i,"border-color":"transparent",item:e.unref(x),"play-list":e.unref(_)},null,8,["item","play-list"])])])])]),_:1})),[[h]])]),_:1},8,["modelValue","modal","draggable","modal-class"]),e.createVNode($,{class:"button_default buttonBox min-w-[100px]",type:"primary",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("closure")),1)]),_:1},8,["onClick"])])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"}),e.createVNode(Wo,{ref_key:"hyImageViewerRef",ref:r},null,512)]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-d7cac0ec"]]);function xS(){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([]),k=e.ref([]),u=e.ref(),N=e.ref(),x=e.computed(()=>a.value.findIndex(j=>j.lat&&j.lng)!==-1);function E(L){m.value&&L.lat&&L.lng&&c.setView(m.value,[L.lat,L.lng],18)}function b(){if(!m.value)return;_.value=[],k.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;
|
38
38
|
height: 18px;
|
39
39
|
overflow: hidden;
|
40
40
|
border-radius: 50%;
|