command-center-v3-common 0.0.47 → 0.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -287,7 +287,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
287
287
  window.__WUJIE.proxy,
288
288
  window.__WUJIE.proxy,
289
289
  window.__WUJIE.proxyLocation,
290
- );`));var N=Object.getOwnPropertyDescriptor(h,"src");if(N!=null&&N.configurable||!N)try{Object.defineProperty(h,"src",{get:function(){return i||""}})}catch(D){console.warn(D)}}else i&&h.setAttribute("src",i),l&&h.setAttribute("crossorigin",c);a&&h.setAttribute("type","module"),h.textContent=E||"",g.textContent="if(window.__WUJIE.execQueue && window.__WUJIE.execQueue.length){ window.__WUJIE.execQueue.shift()()}";var S=Hd.call(n.document,"head"),v=function(){return!d&&S.appendChild(g)},x=function(){p==null||p(),v()};if(/^<!DOCTYPE html/i.test(E))return Ai(Xm,e),v();o&&JH(h,XH(o));var T=!s&&i;T&&(h.onload=x,h.onerror=x),S.appendChild(h),u==null||u(n),ha(b,"appendOrInsertElementHook",h,n,o),!T&&x()}function M1(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=window.document.createElement("iframe"),i="height:100%;width:100%";w1(r,I1(I1({},o),{},{src:e,style:[i,o.style].join(";")})),Gd(r,n)}function Y7e(e,n,o,r,i){var a=window.document.createElement("iframe"),s=I1(I1({src:o,style:"display: none"},n),{},Ii({name:e.id},VH,""));w1(a,s),window.document.body.appendChild(a);var l=a.contentWindow;return z9(l,e,r),e.iframeReady=G7e(l).then(function(){l.__WUJIE||z9(l,e,r),H7e(l,e,o,r),qH(l.__WUJIE.id)||l.history.replaceState(null,"",o+i)}),a}function W9(e,n,o){var r=e.contentWindow.__WUJIE,i=r.shadowRoot,a=r.id,s=r.degrade,l=r.document,c=r.degradeAttrs,d=n;if(!/^http/.test(d)){var f=Mi(d);d=o+f.pathname+f.search+f.hash,f=null}if(e.contentWindow.__WUJIE.hrefFlag=!0,s){var u=Hd.call(e.contentDocument,"body");Gd(l.documentElement,u),M1(window.decodeURIComponent(d),KH(a).parentElement,c)}else M1(d,i.host.parentElement,c);return P7e(a,d),!0}function q7e(e,n,o,r){var i=new Proxy(e.contentWindow,{get:function(c,d){if(d==="location")return c.__WUJIE.proxyLocation;if(d==="self"||d==="window"&&Object.getOwnPropertyDescriptor(window,"window").get)return c.__WUJIE.proxy;if(d==="__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__"||d==="__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__")return c[d];var f=Object.getOwnPropertyDescriptor(c,d);return(f==null?void 0:f.configurable)===!1&&(f==null?void 0:f.writable)===!1?c[d]:eg(c,d)},set:function(c,d,f){return C9e(f),c[d]=f,!0},has:function(c,d){return d in c}}),a=new Proxy({},{get:function(c,d){var f=window.document,u=e.contentWindow.__WUJIE,p=u.shadowRoot,h=u.proxyLocation;p||e9();var g=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_ELEMENT__,m=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_TEXT_NODE__;if(d==="createElement"||d==="createTextNode")return new Proxy(f[d],{apply:function(x,T,D){var V=d==="createElement"?g:m,R=V.apply(e.contentDocument,D);return Xl(R,e.contentWindow),R}});if(d==="documentURI"||d==="URL")return h.href;if(d==="getElementsByTagName"||d==="getElementsByClassName"||d==="getElementsByName")return new Proxy(p.querySelectorAll,{apply:function(x,T,D){var V=D[0];if(T!==e.contentDocument)return T[d].apply(T,D);if(d==="getElementsByTagName"&&V==="script")return e.contentDocument.scripts;d==="getElementsByClassName"&&(V="."+V),d==="getElementsByName"&&(V='[name="'.concat(V,'"]'));var R;try{R=x.call(p,V)}catch{R=[]}return R}});if(d==="getElementById")return new Proxy(p.querySelector,{apply:function(x,T,D){if(T!==e.contentDocument){var V;return(V=T[d])===null||V===void 0?void 0:V.apply(T,D)}try{return x.call(p,'[id="'.concat(D[0],'"]'))||e.contentWindow.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__.call(e.contentWindow.document,"#".concat(D[0]))}catch{return ar(_9e),null}}});if(d==="querySelector"||d==="querySelectorAll"){var _={querySelector:"__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__",querySelectorAll:"__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__"};return new Proxy(p[d],{apply:function(x,T,D){if(T!==e.contentDocument){var V;return(V=T[d])===null||V===void 0?void 0:V.apply(T,D)}return x.apply(p,D)||(D[0]==="base"?null:e.contentWindow[_[d]].call(e.contentWindow.document,D[0]))}})}if(d==="documentElement"||d==="scrollingElement")return p.firstElementChild;if(d==="forms")return p.querySelectorAll("form");if(d==="images")return p.querySelectorAll("img");if(d==="links")return p.querySelectorAll("a");var b=lo.ownerProperties,C=lo.shadowProperties,w=lo.shadowMethods,E=lo.documentProperties,N=lo.documentMethods;if(b.concat(C).includes(d.toString()))return d==="activeElement"&&p.activeElement===null?p.body:p[d];if(w.includes(d.toString())){var S;return(S=eg(p,d))!==null&&S!==void 0?S:eg(f,d)}if(E.includes(d.toString()))return f[d];if(N.includes(d.toString()))return eg(f,d)}}),s=new Proxy({},{get:function(c,d){var f=e.contentWindow.location;return d==="host"||d==="hostname"||d==="protocol"||d==="port"||d==="origin"?n[d]:d==="href"?f[d].replace(o,r):d==="reload"?(ar(BH),function(){return null}):d==="replace"?new Proxy(f[d],{apply:function(p,h,g){var m;return p.call(f,(m=g[0])===null||m===void 0?void 0:m.replace(r,o))}}):eg(f,d)},set:function(c,d,f){return d==="href"?W9(e,f,r):(e.contentWindow.location[d]=f,!0)},ownKeys:function(){return Object.keys(e.contentWindow.location).filter(function(c){return c!=="reload"})},getOwnPropertyDescriptor:function(c,d){return{enumerable:!0,configurable:!0,value:this[d]}}});return{proxyWindow:i,proxyDocument:a,proxyLocation:s}}function Z7e(e,n,o,r){var i={},a=e.contentWindow.__WUJIE;Object.defineProperties(i,{createElement:{get:function(){return function(){for(var C=arguments.length,w=new Array(C),E=0;E<C;E++)w[E]=arguments[E];var N=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_ELEMENT__.apply(e.contentDocument,w);return Xl(N,e.contentWindow),N}}},createTextNode:{get:function(){return function(){for(var C=arguments.length,w=new Array(C),E=0;E<C;E++)w[E]=arguments[E];var N=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_TEXT_NODE__.apply(e.contentDocument,w);return Xl(N,e.contentWindow),N}}},documentURI:{get:function(){return a.proxyLocation.href}},URL:{get:function(){return a.proxyLocation.href}},getElementsByTagName:{get:function(){return function(){var C=arguments.length<=0?void 0:arguments[0];return C==="script"?e.contentDocument.scripts:a.document.getElementsByTagName(C)}}}});var s=lo.modifyLocalProperties,l=lo.modifyProperties,c=lo.ownerProperties,d=lo.shadowProperties,f=lo.shadowMethods,u=lo.documentProperties,p=lo.documentMethods;l.filter(function(b){return!s.includes(b)}).concat(c,d,f,u,p).forEach(function(b){Object.defineProperty(i,b,{get:function(){var w,E=(w=a.document)===null||w===void 0?void 0:w[b];return b1(E)?E.bind(a.document):E}})});var h={},g=e.contentWindow.location,m=Object.keys(g),_=["host","hostname","port","protocol","port"];return _.forEach(function(b){h[b]=n[b]}),Object.defineProperties(h,{href:{get:function(){return g.href.replace(o,r)},set:function(C){W9(e,C,r)}},reload:{get:function(){return ar(BH),function(){return null}}}}),m.filter(function(b){return!_.concat(["href","reload"]).includes(b)}).forEach(function(b){Object.defineProperty(h,b,{get:function(){return b1(g[b])?g[b].bind(g):g[b]}})}),{proxyDocument:i,proxyLocation:h}}var Jf=window.__POWERED_BY_WUJIE__?window.__WUJIE.inject.appEventObjMap:new Map,H9=function(){function e(n){aL(this,e),this.id=n,this.$clear(),Jf.get(this.id)||Jf.set(this.id,{}),this.eventObj=Jf.get(this.id)}return iL(e,[{key:"$on",value:function(o,r){var i=this.eventObj[o];return i?(i.includes(r)||i.push(r),this):(this.eventObj[o]=[r],this)}},{key:"$onAll",value:function(o){return this.$on(_1,o)}},{key:"$once",value:function(o,r){var i=(function(){this.$off(o,i),r.apply(void 0,arguments)}).bind(this);this.$on(o,i)}},{key:"$off",value:function(o,r){var i=this.eventObj[o];if(!o||!i||!i.length)return ar("".concat(o," ").concat(zH)),this;for(var a,s=i.length;s--;)if(a=i[s],a===r){i.splice(s,1);break}return this}},{key:"$offAll",value:function(o){return this.$off(_1,o)}},{key:"$emit",value:function(o){var r=[],i=[];if(Jf.forEach(function(g){g[o]&&(r=r.concat(g[o])),g[_1]&&(i=i.concat(g[_1]))}),!o||r.length===0&&i.length===0)ar("".concat(o," ").concat(zH));else try{for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];for(var c=0,d=r.length;c<d;c++){var f;(f=r)[c].apply(f,s)}for(var u=0,p=i.length;u<p;u++){var h;(h=i)[u].apply(h,[o].concat(s))}}catch(g){Ai(g)}return this}},{key:"$clear",value:function(){var o,r=(o=Jf.get(this.id))!==null&&o!==void 0?o:{},i=Object.keys(r);return i.forEach(function(a){return delete r[a]}),this}}]),e}();function G9(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function Ql(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?arguments[n]:{};n%2?G9(Object(o),!0).forEach(function(r){Ii(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):G9(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}var K9=function(){function e(n){aL(this,e),Ii(this,"elementEventCacheMap",new WeakMap),window.__POWERED_BY_WUJIE__?this.inject=window.__WUJIE.inject:this.inject={idToSandboxMap:ma,appEventObjMap:Jf,mainHostPath:window.location.protocol+"//"+window.location.host};var o=n.name,r=n.url,i=n.attrs,a=n.fiber,s=n.degradeAttrs,l=n.degrade,c=n.lifecycles,d=n.plugins;this.id=o,this.fiber=a,this.degrade=l||!WH,this.bus=new H9(this.id),this.url=r,this.degradeAttrs=s,this.provide={bus:this.bus},this.styleSheetElements=[],this.execQueue=[],this.lifecycles=c,this.plugins=l9(d);var f=YH(r),u=f.urlElement,p=f.appHostPath,h=f.appRoutePath,g=this.inject.mainHostPath;if(this.iframe=Y7e(this,i,g,p,h),this.degrade){var m=Z7e(this.iframe,u,g,p),_=m.proxyDocument,b=m.proxyLocation;this.proxyDocument=_,this.proxyLocation=b}else{var C=q7e(this.iframe,u,g,p),w=C.proxyWindow,E=C.proxyDocument,N=C.proxyLocation;this.proxy=w,this.proxyDocument=E,this.proxyLocation=N}this.provide.location=this.proxyLocation,c7e(this.id,this)}return iL(e,[{key:"active",value:function(){var n=$s(_o.mark(function r(i){var a=this,s,l,c,d,f,u,p,h,g,m,_,b,C,w,E,N;return _o.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return s=i.sync,l=i.url,c=i.el,d=i.template,f=i.props,u=i.alive,p=i.prefix,h=i.fetch,g=i.replace,this.url=l,this.sync=s,this.alive=u,this.hrefFlag=!1,this.prefix=p??this.prefix,this.replace=g??this.replace,this.provide.props=f??this.provide.props,this.activeFlag=!0,v.next=11,this.iframeReady;case 11:if(m=this.iframe.contentWindow,_=h?function(x,T){return h(typeof x=="string"?ql(x,a.proxyLocation.href):x,T)}:this.fetch,_&&(m.fetch=_,this.fetch=_),this.execFlag&&this.alive||$7e(m),Zf(m),this.template=d??this.template,!this.degrade){v.next=38;break}if(b=Hd.call(m.document,"body"),C=I9(this.id,c??b,this.degradeAttrs),w=C.iframe,E=C.container,this.el=E,c&&Kd(b),j9(w.contentWindow,m),w.contentWindow.onunload=function(){a.unmount()},!this.document){v.next=34;break}if(!this.alive){v.next=29;break}w.contentDocument.replaceChild(this.document.documentElement,w.contentDocument.documentElement),B7e(w.contentDocument.documentElement,m),v.next=32;break;case 29:return v.next=31,V9(w.contentDocument,this.iframe.contentWindow,this.template);case 31:F7e(this.document.documentElement,w.contentDocument.documentElement,m);case 32:v.next=36;break;case 34:return v.next=36,V9(w.contentDocument,this.iframe.contentWindow,this.template);case 36:return this.document=w.contentDocument,v.abrupt("return");case 38:if(!this.shadowRoot){v.next=44;break}if(this.el=Gd(this.shadowRoot.host,c),!this.alive){v.next=42;break}return v.abrupt("return");case 42:v.next=46;break;case 44:N=Hd.call(m.document,"body"),this.el=Gd(N7e(this.id),c??N);case 46:return v.next=48,T7e(this.shadowRoot,m,this.template);case 48:this.patchCssRules(),this.provide.shadowRoot=this.shadowRoot;case 50:case"end":return v.stop()}},r,this)}));function o(r){return n.apply(this,arguments)}return o}()},{key:"requestIdleCallback",value:function(o){var r=this;return YT(function(){r.iframe&&o.apply(r)})}},{key:"start",value:function(){var n=$s(_o.mark(function r(i){var a=this,s,l,c,d,f,u,p,h,g;return _o.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return this.execFlag=!0,_.next=3,i();case 3:if(s=_.sent,this.iframe){_.next=6;break}return _.abrupt("return");case 6:return l=this.iframe.contentWindow,l.__POWERED_BY_WUJIE__=!0,c=x1("jsBeforeLoaders",this.plugins),d=x1("jsAfterLoaders",this.plugins),f=[],u=[],p=[],s.forEach(function(b){b.defer?p.push(b):b.async?u.push(b):f.push(b)}),c.forEach(function(b){a.execQueue.push(function(){return a.fiber?a.requestIdleCallback(function(){return Qa(b,l)}):Qa(b,l)})}),f.concat(p).forEach(function(b){a.execQueue.push(function(){return b.contentPromise.then(function(C){return a.fiber?a.requestIdleCallback(function(){return Qa(Ql(Ql({},b),{},{content:C}),l)}):Qa(Ql(Ql({},b),{},{content:C}),l)})})}),u.forEach(function(b){b.contentPromise.then(function(C){a.fiber?a.requestIdleCallback(function(){return Qa(Ql(Ql({},b),{},{content:C}),l)}):Qa(Ql(Ql({},b),{},{content:C}),l)})}),this.execQueue.push(this.fiber?function(){return a.requestIdleCallback(function(){return a.mount()})}:function(){return a.mount()}),h=function(){var C;S1(l.document,"DOMContentLoaded"),S1(l,"DOMContentLoaded"),(C=a.execQueue.shift())===null||C===void 0||C()},this.execQueue.push(this.fiber?function(){return a.requestIdleCallback(h)}:h),d.forEach(function(b){a.execQueue.push(function(){return a.fiber?a.requestIdleCallback(function(){return Qa(b,l)}):Qa(b,l)})}),g=function(){var C;S1(l.document,"readystatechange"),S1(l,"load"),(C=a.execQueue.shift())===null||C===void 0||C()},this.execQueue.push(this.fiber?function(){return a.requestIdleCallback(g)}:g),(this.alive||!Ud(this.iframe.contentWindow.__WUJIE_UNMOUNT))&&R9(this.el),this.execQueue.shift()(),_.abrupt("return",new Promise(function(b){a.execQueue.push(function(){var C;b(),(C=a.execQueue.shift())===null||C===void 0||C()})}));case 26:case"end":return _.stop()}},r,this)}));function o(r){return n.apply(this,arguments)}return o}()},{key:"mount",value:function(){var o;if(!this.mountFlag){if(Ud(this.iframe.contentWindow.__WUJIE_MOUNT)){var r,i,a,s;R9(this.el),(r=this.lifecycles)===null||r===void 0||(i=r.beforeMount)===null||i===void 0||i.call(r,this.iframe.contentWindow),this.iframe.contentWindow.__WUJIE_MOUNT(),(a=this.lifecycles)===null||a===void 0||(s=a.afterMount)===null||s===void 0||s.call(a,this.iframe.contentWindow),this.mountFlag=!0}if(this.alive){var l,c;(l=this.lifecycles)===null||l===void 0||(c=l.activated)===null||c===void 0||c.call(l,this.iframe.contentWindow)}(o=this.execQueue.shift())===null||o===void 0||o()}}},{key:"unmount",value:function(){if(this.activeFlag=!1,D7e(),this.alive){var o,r;(o=this.lifecycles)===null||o===void 0||(r=o.deactivated)===null||r===void 0||r.call(o,this.iframe.contentWindow)}if(this.mountFlag&&Ud(this.iframe.contentWindow.__WUJIE_UNMOUNT)&&!this.alive&&!this.hrefFlag){var i,a,s,l;(i=this.lifecycles)===null||i===void 0||(a=i.beforeUnmount)===null||a===void 0||a.call(i,this.iframe.contentWindow),this.iframe.contentWindow.__WUJIE_UNMOUNT(),(s=this.lifecycles)===null||s===void 0||(l=s.afterUnmount)===null||l===void 0||l.call(s,this.iframe.contentWindow),this.mountFlag=!1,this.bus.$clear(),this.degrade||(Kd(this.shadowRoot),O9(this.head),O9(this.body)),Kd(this.head),Kd(this.body)}}},{key:"destroy",value:function(){if(this.unmount(),this.bus.$clear(),this.shadowRoot=null,this.proxy=null,this.proxyDocument=null,this.proxyLocation=null,this.execQueue=null,this.provide=null,this.degradeAttrs=null,this.styleSheetElements=null,this.bus=null,this.replace=null,this.fetch=null,this.execFlag=null,this.mountFlag=null,this.hrefFlag=null,this.document=null,this.head=null,this.body=null,this.elementEventCacheMap=null,this.lifecycles=null,this.plugins=null,this.provide=null,this.inject=null,this.execQueue=null,this.prefix=null,this.el&&(Kd(this.el),this.el=null),this.iframe){var o,r=this.iframe.contentWindow;r!=null&&r.__WUJIE_EVENTLISTENER__&&r.__WUJIE_EVENTLISTENER__.forEach(function(i){r.removeEventListener(i.type,i.listener,i.options)}),(o=this.iframe.parentNode)===null||o===void 0||o.removeChild(this.iframe),this.iframe=null}d7e(this.id)}},{key:"rebuildStyleSheets",value:function(){var o=this;this.styleSheetElements&&this.styleSheetElements.length&&this.styleSheetElements.forEach(function(r){w9.call(o.degrade?o.document.head:o.shadowRoot.head,r)}),this.patchCssRules()}},{key:"patchCssRules",value:function(){if(!this.degrade&&!this.shadowRoot.host.hasAttribute(RH)){var o=B9(Array.from(this.iframe.contentDocument.querySelectorAll("style")).map(function(s){return s.sheet})),r=Zm(o,2),i=r[0],a=r[1];i&&(this.shadowRoot.head.appendChild(i),this.styleSheetElements.push(i)),a&&this.shadowRoot.host.appendChild(a),(i||a)&&this.shadowRoot.host.setAttribute(RH,"")}}}]),e}();function Y9(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function J7e(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?arguments[n]:{};n%2?Y9(Object(o),!0).forEach(function(r){Ii(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Y9(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}var fL=new H9(Date.now().toString());window.__WUJIE&&!window.__POWERED_BY_WUJIE__&&e9(),I7e(),S7e(),WH||ar(g9e);function X7e(e){e.name&&u7e(e.name,e)}function Q7e(e){return pL.apply(this,arguments)}function pL(){return pL=$s(_o.mark(function e(n){var o,r,i,a,s,l,c,d,f,u,p,h,g,m,_,b,C,w,E,N,S,v,x,T,D,V,R,q,K,G,I,P,M,O,$,F,Y,B,U;return _o.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(i=Ds(n.name),a=m9(n.name),s=QH(n,a),l=s.name,c=s.url,d=s.html,f=s.replace,u=s.fetch,p=s.props,h=s.attrs,g=s.degradeAttrs,m=s.fiber,_=s.alive,b=s.degrade,C=s.sync,w=s.prefix,E=s.el,N=s.loading,S=s.plugins,v=s.lifecycles,!i){X.next=39;break}if(i.plugins=l9(S),i.lifecycles=v,x=i.iframe.contentWindow,!i.preload){X.next=11;break}return X.next=11,i.preload;case 11:if(!_){X.next=26;break}return X.next=14,i.active({url:c,sync:C,prefix:w,el:E,props:p,alive:_,fetch:u,replace:f});case 14:if(i.execFlag){X.next=22;break}return(V=i.lifecycles)===null||V===void 0||(R=V.beforeLoad)===null||R===void 0||R.call(V,i.iframe.contentWindow),X.next=18,rL({url:c,html:d,opts:{fetch:u||window.fetch,plugins:i.plugins,loadError:i.lifecycles.loadError,fiber:m}});case 18:return q=X.sent,K=q.getExternalScripts,X.next=22,i.start(K);case 22:return(T=i.lifecycles)===null||T===void 0||(D=T.activated)===null||D===void 0||D.call(T,i.iframe.contentWindow),X.abrupt("return",i.destroy);case 26:if(!Ud(x.__WUJIE_MOUNT)){X.next=38;break}return i.unmount(),X.next=30,i.active({url:c,sync:C,prefix:w,el:E,props:p,alive:_,fetch:u,replace:f});case 30:return i.rebuildStyleSheets(),(G=i.lifecycles)===null||G===void 0||(I=G.beforeMount)===null||I===void 0||I.call(G,i.iframe.contentWindow),x.__WUJIE_MOUNT(),(P=i.lifecycles)===null||P===void 0||(M=P.afterMount)===null||M===void 0||M.call(P,i.iframe.contentWindow),i.mountFlag=!0,X.abrupt("return",i.destroy);case 38:i.destroy();case 39:return O7e(E,N),O=new K9({name:l,url:c,attrs:h,degradeAttrs:g,fiber:m,degrade:b,plugins:S,lifecycles:v}),(o=O.lifecycles)===null||o===void 0||(r=o.beforeLoad)===null||r===void 0||r.call(o,O.iframe.contentWindow),X.next=44,rL({url:c,html:d,opts:{fetch:u||window.fetch,plugins:O.plugins,loadError:O.lifecycles.loadError,fiber:m}});case 44:return $=X.sent,F=$.template,Y=$.getExternalScripts,B=$.getExternalStyleSheets,X.next=50,d9(O,F,B);case 50:return U=X.sent,X.next=53,O.active({url:c,sync:C,prefix:w,template:U,el:E,props:p,alive:_,fetch:u,replace:f});case 53:return X.next=55,O.start(Y);case 55:return X.abrupt("return",O.destroy);case 56:case"end":return X.stop()}},e)})),pL.apply(this,arguments)}function eGe(e){YT(function(){if(!(Ds(e.name)||qH(e.name))){var n=m9(e.name),o=QH(J7e({},e),n),r=o.name,i=o.url,a=o.html,s=o.props,l=o.alive,c=o.replace,d=o.fetch,f=o.exec,u=o.attrs,p=o.degradeAttrs,h=o.fiber,g=o.degrade,m=o.prefix,_=o.plugins,b=o.lifecycles,C=new K9({name:r,url:i,attrs:u,degradeAttrs:p,fiber:h,degrade:g,plugins:_,lifecycles:b});if(C.preload)return C.preload;var w=function(){var E=$s(_o.mark(function N(){var S,v,x,T,D,V,R;return _o.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return(S=C.lifecycles)===null||S===void 0||(v=S.beforeLoad)===null||v===void 0||v.call(S,C.iframe.contentWindow),K.next=3,rL({url:i,html:a,opts:{fetch:d||window.fetch,plugins:C.plugins,loadError:C.lifecycles.loadError,fiber:h}});case 3:return x=K.sent,T=x.template,D=x.getExternalScripts,V=x.getExternalStyleSheets,K.next=9,d9(C,T,V);case 9:return R=K.sent,K.next=12,C.active({url:i,props:s,prefix:m,alive:l,template:R,fetch:d,replace:c});case 12:if(!f){K.next=17;break}return K.next=15,C.start(D);case 15:K.next=19;break;case 17:return K.next=19,D();case 19:case"end":return K.stop()}},N)}));return function(){return E.apply(this,arguments)}}();C.preload=w()}})}function q9(e){var n=Ds(e);n&&n.destroy()}function A1(e){"@babel/helpers - typeof";return A1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},A1(e)}function hL(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */hL=function(){return n};var e,n={},o=Object.prototype,r=o.hasOwnProperty,i=Object.defineProperty||function(I,P,M){I[P]=M.value},a=typeof Symbol=="function"?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function d(I,P,M){return Object.defineProperty(I,P,{value:M,enumerable:!0,configurable:!0,writable:!0}),I[P]}try{d({},"")}catch{d=function(M,O,$){return M[O]=$}}function f(I,P,M,O){var $=P&&P.prototype instanceof b?P:b,F=Object.create($.prototype),Y=new K(O||[]);return i(F,"_invoke",{value:D(I,M,Y)}),F}function u(I,P,M){try{return{type:"normal",arg:I.call(P,M)}}catch(O){return{type:"throw",arg:O}}}n.wrap=f;var p="suspendedStart",h="suspendedYield",g="executing",m="completed",_={};function b(){}function C(){}function w(){}var E={};d(E,s,function(){return this});var N=Object.getPrototypeOf,S=N&&N(N(G([])));S&&S!==o&&r.call(S,s)&&(E=S);var v=w.prototype=b.prototype=Object.create(E);function x(I){["next","throw","return"].forEach(function(P){d(I,P,function(M){return this._invoke(P,M)})})}function T(I,P){function M($,F,Y,B){var U=u(I[$],I,F);if(U.type!=="throw"){var J=U.arg,X=J.value;return X&&A1(X)=="object"&&r.call(X,"__await")?P.resolve(X.__await).then(function(Z){M("next",Z,Y,B)},function(Z){M("throw",Z,Y,B)}):P.resolve(X).then(function(Z){J.value=Z,Y(J)},function(Z){return M("throw",Z,Y,B)})}B(U.arg)}var O;i(this,"_invoke",{value:function(F,Y){function B(){return new P(function(U,J){M(F,Y,U,J)})}return O=O?O.then(B,B):B()}})}function D(I,P,M){var O=p;return function($,F){if(O===g)throw new Error("Generator is already running");if(O===m){if($==="throw")throw F;return{value:e,done:!0}}for(M.method=$,M.arg=F;;){var Y=M.delegate;if(Y){var B=V(Y,M);if(B){if(B===_)continue;return B}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(O===p)throw O=m,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);O=g;var U=u(I,P,M);if(U.type==="normal"){if(O=M.done?m:h,U.arg===_)continue;return{value:U.arg,done:M.done}}U.type==="throw"&&(O=m,M.method="throw",M.arg=U.arg)}}}function V(I,P){var M=P.method,O=I.iterator[M];if(O===e)return P.delegate=null,M==="throw"&&I.iterator.return&&(P.method="return",P.arg=e,V(I,P),P.method==="throw")||M!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+M+"' method")),_;var $=u(O,I.iterator,P.arg);if($.type==="throw")return P.method="throw",P.arg=$.arg,P.delegate=null,_;var F=$.arg;return F?F.done?(P[I.resultName]=F.value,P.next=I.nextLoc,P.method!=="return"&&(P.method="next",P.arg=e),P.delegate=null,_):F:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,_)}function R(I){var P={tryLoc:I[0]};1 in I&&(P.catchLoc=I[1]),2 in I&&(P.finallyLoc=I[2],P.afterLoc=I[3]),this.tryEntries.push(P)}function q(I){var P=I.completion||{};P.type="normal",delete P.arg,I.completion=P}function K(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(R,this),this.reset(!0)}function G(I){if(I||I===""){var P=I[s];if(P)return P.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var M=-1,O=function $(){for(;++M<I.length;)if(r.call(I,M))return $.value=I[M],$.done=!1,$;return $.value=e,$.done=!0,$};return O.next=O}}throw new TypeError(A1(I)+" is not iterable")}return C.prototype=w,i(v,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:C,configurable:!0}),C.displayName=d(w,c,"GeneratorFunction"),n.isGeneratorFunction=function(I){var P=typeof I=="function"&&I.constructor;return!!P&&(P===C||(P.displayName||P.name)==="GeneratorFunction")},n.mark=function(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,w):(I.__proto__=w,d(I,c,"GeneratorFunction")),I.prototype=Object.create(v),I},n.awrap=function(I){return{__await:I}},x(T.prototype),d(T.prototype,l,function(){return this}),n.AsyncIterator=T,n.async=function(I,P,M,O,$){$===void 0&&($=Promise);var F=new T(f(I,P,M,O),$);return n.isGeneratorFunction(P)?F:F.next().then(function(Y){return Y.done?Y.value:F.next()})},x(v),d(v,c,"Generator"),d(v,s,function(){return this}),d(v,"toString",function(){return"[object Generator]"}),n.keys=function(I){var P=Object(I),M=[];for(var O in P)M.push(O);return M.reverse(),function $(){for(;M.length;){var F=M.pop();if(F in P)return $.value=F,$.done=!1,$}return $.done=!0,$}},n.values=G,K.prototype={constructor:K,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(q),!P)for(var M in this)M.charAt(0)==="t"&&r.call(this,M)&&!isNaN(+M.slice(1))&&(this[M]=e)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var M=this;function O(J,X){return Y.type="throw",Y.arg=P,M.next=J,X&&(M.method="next",M.arg=e),!!X}for(var $=this.tryEntries.length-1;$>=0;--$){var F=this.tryEntries[$],Y=F.completion;if(F.tryLoc==="root")return O("end");if(F.tryLoc<=this.prev){var B=r.call(F,"catchLoc"),U=r.call(F,"finallyLoc");if(B&&U){if(this.prev<F.catchLoc)return O(F.catchLoc,!0);if(this.prev<F.finallyLoc)return O(F.finallyLoc)}else if(B){if(this.prev<F.catchLoc)return O(F.catchLoc,!0)}else{if(!U)throw new Error("try statement without catch or finally");if(this.prev<F.finallyLoc)return O(F.finallyLoc)}}}},abrupt:function(P,M){for(var O=this.tryEntries.length-1;O>=0;--O){var $=this.tryEntries[O];if($.tryLoc<=this.prev&&r.call($,"finallyLoc")&&this.prev<$.finallyLoc){var F=$;break}}F&&(P==="break"||P==="continue")&&F.tryLoc<=M&&M<=F.finallyLoc&&(F=null);var Y=F?F.completion:{};return Y.type=P,Y.arg=M,F?(this.method="next",this.next=F.finallyLoc,_):this.complete(Y)},complete:function(P,M){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&M&&(this.next=M),_},finish:function(P){for(var M=this.tryEntries.length-1;M>=0;--M){var O=this.tryEntries[M];if(O.finallyLoc===P)return this.complete(O.completion,O.afterLoc),q(O),_}},catch:function(P){for(var M=this.tryEntries.length-1;M>=0;--M){var O=this.tryEntries[M];if(O.tryLoc===P){var $=O.completion;if($.type==="throw"){var F=$.arg;q(O)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(P,M,O){return this.delegate={iterator:G(P),resultName:M,nextLoc:O},this.method==="next"&&(this.arg=e),_}},n}function Z9(e,n,o,r,i,a,s){try{var l=e[a](s),c=l.value}catch(d){o(d);return}l.done?n(c):Promise.resolve(c).then(r,i)}function tGe(e){return function(){var n=this,o=arguments;return new Promise(function(r,i){var a=e.apply(n,o);function s(c){Z9(a,r,i,s,l,"next",c)}function l(c){Z9(a,r,i,s,l,"throw",c)}s(void 0)})}}var nGe={name:"WujieVue",props:{width:{type:String,default:""},height:{type:String,default:""},name:{type:String,default:""},loading:{type:HTMLElement,default:void 0},url:{type:String,default:""},sync:{type:Boolean,default:void 0},prefix:{type:Object,default:void 0},alive:{type:Boolean,default:void 0},props:{type:Object,default:void 0},attrs:{type:Object,default:void 0},replace:{type:Function,default:void 0},fetch:{type:Function,default:void 0},fiber:{type:Boolean,default:void 0},degrade:{type:Boolean,default:void 0},plugins:{type:Array,default:null},beforeLoad:{type:Function,default:null},beforeMount:{type:Function,default:null},afterMount:{type:Function,default:null},beforeUnmount:{type:Function,default:null},afterUnmount:{type:Function,default:null},activated:{type:Function,default:null},deactivated:{type:Function,default:null},loadError:{type:Function,default:null}},data:function(){return{startAppQueue:Promise.resolve()}},mounted:function(){var n=this;fL.$onAll(this.handleEmit),this.execStartApp(),this.$watch(function(){return n.name+n.url},function(){return n.execStartApp()})},methods:{handleEmit:function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];this.$emit.apply(this,[n].concat(r))},startApp:function(){var n=this;return tGe(hL().mark(function o(){return hL().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,Q7e({name:n.name,url:n.url,el:n.$refs.wujie,loading:n.loading,alive:n.alive,fetch:n.fetch,props:n.props,attrs:n.attrs,replace:n.replace,sync:n.sync,prefix:n.prefix,fiber:n.fiber,degrade:n.degrade,plugins:n.plugins,beforeLoad:n.beforeLoad,beforeMount:n.beforeMount,afterMount:n.afterMount,beforeUnmount:n.beforeUnmount,afterUnmount:n.afterUnmount,activated:n.activated,deactivated:n.deactivated,loadError:n.loadError});case 3:i.next=8;break;case 5:i.prev=5,i.t0=i.catch(0),console.log(i.t0);case 8:case"end":return i.stop()}},o,null,[[0,5]])}))()},execStartApp:function(){this.startAppQueue=this.startAppQueue.then(this.startApp)},destroy:function(){q9(this.name)}},beforeDestroy:function(){fL.$offAll(this.handleEmit)},render:function(){return t.h("div",{style:{width:this.width,height:this.height},ref:"wujie"})}},Xf=t.defineComponent(nGe);Xf.setupApp=X7e,Xf.preloadApp=eGe,Xf.bus=fL,Xf.destroyApp=q9,Xf.install=function(e){e.component("WujieVue",Xf)};function oGe(e){const n=e.emit,o=t.ref(null),r=t.ref(null),i=t.ref(null),a=t.ref(!1);function s(d,f){return new Promise((u,p)=>{if(!d)return p(new Error(le("fileIDNotPassedIn")));o.value=f||null,r.value=d,i.value=u,t.nextTick(()=>{a.value=!0})})}function l(){a.value=!1,n("on-close")}async function c(){if(!o.value)return ft.error(le("pleaseScoreTheCurrentFile"));const d={fileScore:o.value,ids:[r.value]};(await MTe(d)).code===200&&(i.value(o.value),n("on-submit",o.value),ft.success(le("successfulScoring")),a.value=!1)}return{fileScore:o,dialogVisible:a,show:s,onClose:l,onSubmit:c}}const rGe={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"},aGe={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},iGe={class:"absolute right-[10px]"},sGe={class:"dialog_body p-[0_20px_30px]"},lGe={class:"text-center m-[20px_0_40px_0]"},cGe={class:"flex items-center justify-center mb-[10px] text-sm"},dGe={class:"text-hy-text-main mr-[6px]"},uGe={class:"text-hy-text-secondary text-xs"},fGe={class:"operator-button flex items-center justify-center mt-[20px]"},mL=t.defineComponent({__name:"file-score",emits:["on-close","on-submit"],setup(e,{expose:n,emit:o}){const r=o,i=t.reactive(ri.getCache("colorObject")),a=t.computed(()=>({2:i.auxiliary,3:i.warning,4:i.success,5:i.theme})),{fileScore:s,dialogVisible:l,show:c,onClose:d,onSubmit:f}=oGe({emit:r});return n({show:c}),t.onMounted(()=>{}),(u,p)=>{const h=t.resolveComponent("svg-icon"),g=t.resolveComponent("el-rate"),m=t.resolveComponent("el-button"),_=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(_,{"model-value":t.unref(l),"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:t.withCtx(()=>[t.createVNode(Rs,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:t.withCtx(()=>[t.createElementVNode("div",rGe,[t.createElementVNode("div",aGe,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("confirmScore")),1),t.createElementVNode("div",iGe,[t.createVNode(h,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:t.withModifiers(t.unref(d),["stop"])},null,8,["onClick"])])]),t.createElementVNode("div",sGe,[t.createElementVNode("div",lGe,[t.createElementVNode("div",cGe,[t.createElementVNode("span",dGe,t.toDisplayString(t.unref(le)("confirmAs")),1),t.createVNode(g,{modelValue:t.unref(s),"onUpdate:modelValue":p[0]||(p[0]=b=>t.isRef(s)?s.value=b:null),"void-color":i.main,colors:a.value},null,8,["modelValue","void-color","colors"])]),t.createElementVNode("span",uGe,t.toDisplayString(t.unref(le)("noSecondaryModificationAfterScoring")),1)]),t.createElementVNode("div",fGe,[t.createVNode(m,{type:"primary",class:"w-[100px]",onClick:t.unref(d)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("close")),1)]),_:1},8,["onClick"]),t.createVNode(m,{class:"w-[100px]",onClick:t.unref(f)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("confirm")),1)]),_:1},8,["onClick"])])])])]),_:1})]),_:1},8,["model-value"])}}});function pGe(e){const n=e.emit,o=t.ref(e.props||{}),r=t.ref(null),i=t.ref(null),a=t.ref([]),s=t.ref({content:""}),l=t.reactive({content:[{required:!0,message:le("pleaseEnterTheDotName"),trigger:"blur"}]}),c=t.ref(!1),d=t.ref(""),f=t.reactive(ri.getCache("userInfo"));function u(){c.value=!1,n("on-close"),s.value={content:""},d.value=""}async function p(){if(o.value.mediaFileId){const w=await RTe({mediaFileId:o.value.mediaFileId});w.code===200&&(a.value=w.data,a.value.sort((E,N)=>E.time-N.time))}}function h(){var w;(w=r.value)==null||w.validate(async E=>{if(E){if(s.value.content.trim()==="")return ft.error(le("pleaseEnterTheDotContent")),!1;(await BTe({id:s.value.id,content:s.value.content,mediaFileId:o.value.mediaFileId,time:s.value.time||o.value.mediaFileCurTime})).code===200&&(p(),u())}})}function g(w){n("play-point",w.time)}function m(){s.value={},n("on-edit"),c.value=!0}function _(w){s.value=JSON.parse(JSON.stringify(w)),c.value=!0,n("on-edit")}function b(w){d.value=w,n("on-edit"),ll({tipsTitle:le("deleteDot"),tipsContent:`<div class="text-center"><p>${le("deleteDotPositionCannotBeRestored")}</p><p>${le("confirmDeletion")}?</p></div>`,submitBtnText:le("confirm-0")},()=>{C()},()=>{u()})}async function C(){(await iB({ids:d.value})).code===200&&(p(),u())}return{formRef:r,userId:i,pointList:a,form:s,rules:l,dialogVisible:c,deleteIds:d,onClose:u,getData:p,savePoint:h,playPoint:g,addPoint:m,editPoint:_,showDeleteDialog:b,deletePoint:C,userInfo:f}}const gL=e=>(t.pushScopeId("data-v-bb8c9cab"),e=e(),t.popScopeId(),e),hGe={class:"w-full h-full"},mGe={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},gGe={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},yGe={class:"text-hy-text-main font-bold text-sm"},_Ge={class:"flex items-center justify-center"},bGe={class:"ml-[6px]"},wGe={class:"flex-grow h-0 overflow-auto"},CGe={class:"p-3 pb-0"},EGe={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col text-xs"},kGe={class:"flex-grow h-0"},vGe={class:"flex items-center justify-between"},SGe={class:"text-hy-text-secondary mr-1"},NGe=gL(()=>t.createElementVNode("span",null,"/",-1)),xGe={key:0,class:"px-3 py-1 text-hy-text-main text-xs"},TGe={class:"flex items-center justify-between"},LGe={class:"flex-grow w-0 mr-1 flex items-center"},OGe={class:"ml-2 flex-grow w-0"},$Ge={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},DGe={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},PGe={key:0,class:"flex-shrink-0 flex"},IGe={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},MGe={class:"flex-grow h-0"},AGe={class:"flex items-center justify-between"},VGe={class:"text-hy-text-secondary mr-1"},RGe=gL(()=>t.createElementVNode("span",null,"/",-1)),BGe={class:"px-2 mt-3 mb-1 text-xs"},FGe={class:"flex items-center justify-between"},zGe={class:"text-hy-text-secondary mr-1"},UGe=gL(()=>t.createElementVNode("span",null,"/",-1)),jGe={class:"flex items-center mt-1"},WGe={class:"text-hy-text-secondary mr-1"},HGe={class:"flex-grow w-0 ml-1"},GGe={key:1,class:"w-full h-full flex items-center justify-center rounded"},KGe={class:"text-center text-xs text-hy-text-secondary"},YGe={class:"mt-3"},J9=Po(t.defineComponent({__name:"mark",props:{mediaFileId:{},mediaFileTotalTime:{},mediaFileCurTime:{}},emits:["on-close","play-point","on-edit","on-edit","on-edit"],setup(e,{emit:n}){const o=e,r=n,{formRef:i,userId:a,pointList:s,form:l,rules:c,dialogVisible:d,deleteIds:f,onClose:u,getData:p,savePoint:h,playPoint:g,addPoint:m,editPoint:_,showDeleteDialog:b,deletePoint:C,userInfo:w}=pGe({emit:r,props:o});return t.watch(()=>o.mediaFileId,()=>{p()}),t.onMounted(()=>{a.value=w.id}),(E,N)=>{const S=t.resolveComponent("svg-icon"),v=t.resolveComponent("el-button"),x=t.resolveComponent("el-input"),T=t.resolveComponent("el-form-item"),D=t.resolveComponent("el-form");return t.openBlock(),t.createElementBlock("div",hGe,[t.createElementVNode("div",mGe,[t.createElementVNode("div",gGe,[t.createElementVNode("div",yGe,t.toDisplayString(t.unref(le)("dotList")),1),t.createElementVNode("div",null,[t.withDirectives(t.createVNode(v,{type:"success",class:"",onClick:N[0]||(N[0]=V=>t.unref(m)())},{default:t.withCtx(()=>[t.createElementVNode("div",_Ge,[t.createVNode(S,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),t.createElementVNode("span",bGe,t.toDisplayString(t.unref(le)("addDot-0")),1)])]),_:1},512),[[t.vShow,E.mediaFileId]])])]),t.createElementVNode("div",wGe,[t.createVNode(D,{ref_key:"formRef",ref:i,class:"h-full","label-position":"top",model:t.unref(l),rules:t.unref(c),"label-width":"0px"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",CGe,[t.createElementVNode("div",EGe,[t.createElementVNode("div",kGe,[t.createVNode(T,{prop:"content"},{default:t.withCtx(()=>[t.createVNode(x,{modelValue:t.unref(l).content,"onUpdate:modelValue":N[1]||(N[1]=V=>t.unref(l).content=V),type:"textarea",placeholder:t.unref(le)("pleaseEnterTheDotName"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),t.createElementVNode("div",vGe,[t.createElementVNode("div",null,[t.createElementVNode("span",SGe,t.toDisplayString(t.unref(le)("dotPosition")),1),t.createElementVNode("p",null,[t.createTextVNode(t.toDisplayString(t.unref(si)(Number(t.unref(l).time||o.mediaFileCurTime)))+" ",1),NGe,t.createTextVNode(" "+t.toDisplayString(t.unref(si)(Number(E.mediaFileTotalTime))),1)])]),t.createElementVNode("div",null,[t.createVNode(v,{type:"primary",onClick:t.unref(u)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("cancel")),1)]),_:1},8,["onClick"]),t.createVNode(v,{onClick:t.unref(h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("save")),1)]),_:1},8,["onClick"])])])])],512),[[t.vShow,t.unref(d)&&!t.unref(l).id]]),t.unref(s).length?(t.openBlock(),t.createElementBlock("ul",xGe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),V=>(t.openBlock(),t.createElementBlock("li",{key:V.id,class:"bg-hy-page-bg-3 rounded my-2 p-2 box-hy-border-2"},[t.createElementVNode("div",TGe,[t.createElementVNode("div",LGe,[t.createVNode(Zu,{url:V.remarkUserHeadImg},null,8,["url"]),t.createElementVNode("div",OGe,[t.createElementVNode("p",$Ge,t.toDisplayString(V.remarkUserName),1),t.createElementVNode("p",DGe,t.toDisplayString(V.remarkUserSerialNum),1)])]),V.remarkUserId===t.unref(a)&&t.unref(l).id!==V.id?(t.openBlock(),t.createElementBlock("div",PGe,[t.createVNode(ra,{"class-nmae":"HyRoundButtonV2",name:"media-center-2-audio-play-2",tips:t.unref(le)("play"),onClick:R=>t.unref(g)(V)},null,8,["tips","onClick"]),t.createVNode(ra,{class:"!mx-0","class-nmae":"HyRoundButtonV2",name:"icon-edit",tips:t.unref(le)("edit"),onClick:R=>t.unref(_)(V)},null,8,["tips","onClick"]),t.createVNode(ra,{class:"hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-text-danger",name:"base-delete",tips:t.unref(le)("delete"),onClick:R=>t.unref(b)(V.id)},null,8,["tips","onClick"])])):t.createCommentVNode("",!0)]),t.withDirectives(t.createElementVNode("div",IGe,[t.createElementVNode("div",MGe,[t.createVNode(T,{prop:"content"},{default:t.withCtx(()=>[t.createVNode(x,{modelValue:t.unref(l).content,"onUpdate:modelValue":N[2]||(N[2]=R=>t.unref(l).content=R),type:"textarea",placeholder:t.unref(le)("pleaseEnterTheDotName"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),t.createElementVNode("div",AGe,[t.createElementVNode("div",null,[t.createElementVNode("span",VGe,t.toDisplayString(t.unref(le)("dotPosition")),1),t.createElementVNode("p",null,[t.createTextVNode(t.toDisplayString(t.unref(si)(Number(t.unref(l).time||o.mediaFileCurTime)))+" ",1),RGe,t.createTextVNode(" "+t.toDisplayString(t.unref(si)(Number(E.mediaFileTotalTime))),1)])]),t.createElementVNode("div",null,[t.createVNode(v,{type:"primary",onClick:t.unref(u)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("cancel")),1)]),_:1},8,["onClick"]),t.createVNode(v,{onClick:t.unref(h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("save")),1)]),_:1},8,["onClick"])])])],512),[[t.vShow,t.unref(l).id===V.id&&t.unref(d)]]),t.withDirectives(t.createElementVNode("div",BGe,[t.createElementVNode("div",FGe,[t.createElementVNode("div",null,[t.createElementVNode("span",zGe,t.toDisplayString(t.unref(le)("dotPosition")),1),t.createTextVNode(" "+t.toDisplayString(t.unref(si)(Number(V.time)))+" ",1),UGe,t.createTextVNode(" "+t.toDisplayString(t.unref(si)(Number(E.mediaFileTotalTime))),1)]),t.createElementVNode("div",null,[t.createElementVNode("p",null,t.toDisplayString(V.updateDtm||V.createDtm),1)])]),t.createElementVNode("div",jGe,[t.createElementVNode("span",WGe,t.toDisplayString(t.unref(le)("dotName")),1),t.createElementVNode("div",HGe,t.toDisplayString(V.content),1)])],512),[[t.vShow,!(t.unref(l).id===V.id&&t.unref(d))]])]))),128))])):(t.openBlock(),t.createElementBlock("div",GGe,[t.createElementVNode("div",KGe,[t.createVNode(S,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),t.createElementVNode("div",YGe,t.toDisplayString(t.unref(le)("noData")),1)])]))]),_:1},8,["model","rules"])])])])}}}),[["__scopeId","data-v-bb8c9cab"]]);function qGe(e){const n=e.emit,o=t.ref(e.props||{}),r=t.ref(null),i=t.ref(null),a=t.ref(!1),s=t.ref({content:""}),l=t.reactive({content:[{required:!0,message:le("pleaseFillInTheRemarks"),trigger:"blur"}]}),c=t.ref([]),d=t.ref(""),f=t.reactive(ri.getCache("userInfo"));function u(){a.value=!1,n("on-close"),s.value={content:""}}async function p(){if(o.value.mediaFileId){const w=await ATe({mediaFileId:o.value.mediaFileId});w.code===200&&(c.value=w.data,n("on-getData",c.value))}}function h(){var w;(w=r.value)==null||w.clearValidate(),s.value={},n("on-edit"),a.value=!0}function g(){r.value.validate(async w=>{if(w){if(s.value.content==="")return ft.error(le("pleaseEnterTheRemarks")),!1;s.value.mediaFileId=o.value.mediaFileId,(await VTe(s.value)).code===200&&(p(),u())}})}function m(w){d.value=w,ll({tipsTitle:le("deleteRemarks"),tipsContent:`<div class="text-center"><p>${le("reminderCannotBeRestoredAfterDeletion")}</p><p>${le("confirmDeletion")}?</p></div>`,submitBtnText:le("confirm-0")},()=>{b()})}function _(){d.value=""}async function b(){(await iB({ids:d.value})).code===200&&(p(),_(),n("on-delete"))}function C(w){var E;(E=r.value)==null||E.clearValidate(),s.value=JSON.parse(JSON.stringify(w)),a.value=!0,n("on-edit")}return{formRef:r,userId:i,dialogVisible:a,form:s,rules:l,markList:c,deleteIds:d,onClose:u,getData:p,addMark:h,onSubmit:g,showDeleteDialog:m,onCloseDeleteMark:_,deleteMark:b,editMark:C,userInfo:f}}const ZGe={class:"w-full h-full"},JGe={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},XGe={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},QGe={class:"text-hy-text-main font-bold text-sm"},eKe={class:"flex items-center justify-center"},tKe={class:"ml-[6px]"},nKe={class:"flex-grow h-0 overflow-auto"},oKe={class:"p-3 pb-0"},rKe={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col"},aKe={class:"flex-grow h-0"},iKe={class:"h-[40px] flex items-end justify-end"},sKe={key:0,class:"px-3 py-1 text-hy-text-main text-xs"},lKe={class:"flex items-center justify-between"},cKe={class:"flex-grow w-0 mr-1 flex items-center"},dKe={class:"ml-2 flex-grow w-0"},uKe={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},fKe={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},pKe={key:0,class:"flex-shrink-0 flex items-center"},hKe={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},mKe={class:"flex-grow h-0"},gKe={class:"h-[40px] flex items-end justify-end"},yKe={key:1,class:"w-full h-full flex items-center justify-center rounded"},_Ke={class:"text-center text-xs text-hy-text-secondary"},bKe={class:"mt-3"},yL=t.defineComponent({__name:"remark",props:{mediaFileId:{default:null}},emits:["on-close","on-getData","on-edit","on-delete","on-edit"],setup(e,{emit:n}){const o=e,r=n,{formRef:i,userId:a,dialogVisible:s,form:l,rules:c,markList:d,onClose:f,getData:u,addMark:p,onSubmit:h,showDeleteDialog:g,onCloseDeleteMark:m,deleteMark:_,editMark:b,userInfo:C}=qGe({emit:r,props:o});return t.watch(()=>o.mediaFileId,()=>{u()}),t.onMounted(()=>{a.value=C.id}),(w,E)=>{const N=t.resolveComponent("svg-icon"),S=t.resolveComponent("el-button"),v=t.resolveComponent("el-input"),x=t.resolveComponent("el-form-item"),T=t.resolveComponent("el-form");return t.openBlock(),t.createElementBlock("div",ZGe,[t.createElementVNode("div",JGe,[t.createElementVNode("div",XGe,[t.createElementVNode("div",QGe,t.toDisplayString(t.unref(le)("reminderList")),1),t.createElementVNode("div",null,[t.withDirectives(t.createVNode(S,{type:"success",class:"",onClick:E[0]||(E[0]=D=>t.unref(p)())},{default:t.withCtx(()=>[t.createElementVNode("div",eKe,[t.createVNode(N,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),t.createElementVNode("span",tKe,t.toDisplayString(t.unref(le)("addRemarks-0")),1)])]),_:1},512),[[t.vShow,w.mediaFileId]])])]),t.createElementVNode("div",nKe,[t.createVNode(T,{ref_key:"formRef",ref:i,class:"h-full","label-position":"top",model:t.unref(l),rules:t.unref(c),"label-width":"0px"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",oKe,[t.createElementVNode("div",rKe,[t.createElementVNode("div",aKe,[t.createVNode(x,{prop:"content"},{default:t.withCtx(()=>[t.createVNode(v,{modelValue:t.unref(l).content,"onUpdate:modelValue":E[1]||(E[1]=D=>t.unref(l).content=D),type:"textarea",placeholder:t.unref(le)("pleaseFillInTheRemarks"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),t.createElementVNode("div",iKe,[t.createVNode(S,{type:"primary",onClick:t.unref(f)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("cancel")),1)]),_:1},8,["onClick"]),t.createVNode(S,{onClick:t.unref(h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("save")),1)]),_:1},8,["onClick"])])])],512),[[t.vShow,t.unref(s)&&!t.unref(l).id]]),t.unref(d).length?(t.openBlock(),t.createElementBlock("ul",sKe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(d),D=>(t.openBlock(),t.createElementBlock("li",{key:D.id,class:"bg-hy-page-bg-3 rounded my-2 p-2 box-hy-border-2"},[t.createElementVNode("div",lKe,[t.createElementVNode("div",cKe,[t.createVNode(Zu,{url:D.remarkUserHeadImg},null,8,["url"]),t.createElementVNode("div",dKe,[t.createElementVNode("p",uKe,t.toDisplayString(D.remarkUserName),1),t.createElementVNode("p",fKe,t.toDisplayString(D.remarkUserSerialNum),1)])]),D.remarkUserId===t.unref(a)&&t.unref(l).id!==D.id?(t.openBlock(),t.createElementBlock("div",pKe,[t.createVNode(ra,{class:"!mx-0","class-nmae":"HyRoundButtonV2",name:"icon-edit",tips:t.unref(le)("edit"),onClick:V=>t.unref(b)(D)},null,8,["tips","onClick"]),t.createVNode(ra,{class:"hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-text-danger",name:"base-delete",tips:t.unref(le)("delete"),onClick:V=>t.unref(g)(D.id)},null,8,["tips","onClick"])])):t.createCommentVNode("",!0)]),t.withDirectives(t.createElementVNode("div",hKe,[t.createElementVNode("div",mKe,[t.createVNode(x,{prop:"content"},{default:t.withCtx(()=>[t.createVNode(v,{modelValue:t.unref(l).content,"onUpdate:modelValue":E[2]||(E[2]=V=>t.unref(l).content=V),type:"textarea",placeholder:t.unref(le)("pleaseFillInTheRemarks"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),t.createElementVNode("div",gKe,[t.createVNode(S,{type:"primary",onClick:t.unref(f)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("cancel")),1)]),_:1},8,["onClick"]),t.createVNode(S,{onClick:t.unref(h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("save")),1)]),_:1},8,["onClick"])])],512),[[t.vShow,t.unref(l).id===D.id&&t.unref(s)]]),t.withDirectives(t.createElementVNode("div",{class:"px-2 mt-3 mb-1"},t.toDisplayString(D.content),513),[[t.vShow,!(t.unref(l).id===D.id&&t.unref(s))]])]))),128))])):(t.openBlock(),t.createElementBlock("div",yKe,[t.createElementVNode("div",_Ke,[t.createVNode(N,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),t.createElementVNode("div",bKe,t.toDisplayString(t.unref(le)("noData")),1)])]))]),_:1},8,["model","rules"])])])])}}});function Qf(e){return e=e.toString(),e[1]?e:`0${e}`}function X9(e,n){const o=new Date(e),r=[],i=["Y","M","D","day","h","m","s"],a=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];r.push(o.getFullYear()),r.push(Qf(o.getMonth()+1)),r.push(Qf(o.getHours())),r.push(a[o.getDay()]),r.push(Qf(o.getDate())),r.push(Qf(o.getMinutes())),r.push(Qf(o.getSeconds())),r.push(Qf(o.getDay()));for(const s in r)n=n.replace(i[s],r[s]);return n}function Q9(e){const n=function(){return Number(Math.random().toString().substr(2)).toString(36)},o=[];function r(){const a=n();let s=!1;o.forEach(l=>{l===a&&(s=!0)}),s?r():o.push(a)}let i=0;for(;i<e;)r(),i++;return o[0]}function _L(e){const n=/\./;return e?e<1024?`${n.test(`${e}`)?e.toFixed(3):e} B`:(e/=1024,e<1024?`${n.test(`${e}`)?e.toFixed(3):e} KB`:(e/=1024,e<1024?`${n.test(`${e}`)?e.toFixed(3):e} MB`:(e/=1024,e<1024?`${n.test(`${e}`)?e.toFixed(3):e} GB`:(e/=1024,`${n.test(`${e}`)?e.toFixed(3):e} TB`)))):"/"}function e7(e){const n=e.emit,o=t.ref(Ar.NO_LOAD),r=t.ref(null),i=t.ref(null),a=t.ref(null),s=t.ref(!0),l=t.ref(null),c=t.ref({}),d=t.ref(0),f=t.ref(0),u=t.reactive(ri.getCache("colorObject")),p=t.computed(()=>({2:u.auxiliary,3:u.warning,4:u.success,5:u.theme}));function h(){var T;(T=r.value)==null||T.show(c.value.id,l.value).then(D=>{c.value.fileScore=D,l.value=D})}function g(){n("closeDrawer")}function m(){}function _(T){b(T.playItem)}async function b(T){const D=T.id;if(c.value.id!==D){c.value={...T},s.value=!0;const V=await aB(D);V.code===200&&(l.value=V.data,c.value.fileScore=l.value,s.value=!1,t.nextTick(()=>{var R;(R=i.value)==null||R.setPlayItem(c.value)}))}}function C(T){d.value=T}function w(T){f.value=T}function E(){return e.params.getPlayerRef?e.params.getPlayerRef():a.value}function N(T){E().jumpDuration(T),E().resumePlay()}function S(){if(e.params.onEditMark){e.params.onEditMark();return}E().pauseAudio()}function v(){E().resumePlay()}function x(T){o.value=T}return{fileScoreRef:r,mapFileTrackRef:i,audioPlayerRef:a,colorObject:u,colors:p,audioState:o,fileScoreLoading:s,fileScore:l,playItem:c,playerTotalTime:d,audioCurTime:f,fileScoreShow:h,closeDrawer:g,playEnd:m,onPlayStart:_,playStart:b,canPlay:C,onTimeUpdate:w,playPoint:N,onEditMark:S,onEditorClose:v,setAudioState:x}}const bL=e=>(t.pushScopeId("data-v-6fcc23f0"),e=e(),t.popScopeId(),e),wKe={class:"h-full text-hy-text-main flex flex-col"},CKe={class:"h-[60px] flex justify-between items-center px-5"},EKe={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},kKe={class:"text-hy-danger"},vKe={class:"flex-grow h-0 overflow-y-auto"},SKe={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},NKe={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},xKe={class:"audio-play-icon-box flex"},TKe={class:"relative"},LKe={class:"point_area"},OKe={class:"point point_dot relative"},$Ke={class:"w-full h-full rounded-full bg-hy-page-bg-2 flex items-center justify-center text-hy-text-main"},DKe={class:"duration-1000"},PKe=[bL(()=>t.createElementVNode("div",{class:"point point_10"},null,-1)),bL(()=>t.createElementVNode("div",{class:"point point_40"},null,-1)),bL(()=>t.createElementVNode("div",{class:"point point_shadow point_80"},null,-1))],IKe={key:0,class:"w-full file-info"},MKe={class:"info-item"},AKe={class:"info-label"},VKe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},RKe={class:"info-item"},BKe={class:"info-label"},FKe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},zKe={key:0,class:"flex items-center"},UKe={key:1,class:"text-hy-text-secondary"},jKe={class:"info-item"},WKe={class:"info-label"},HKe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},GKe={class:"info-item"},KKe={class:"info-label"},YKe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},qKe={key:0},ZKe={key:1},JKe={key:2,class:"text-hy-danger"},XKe={key:3,class:"text-hy-text-secondary"},QKe={class:"info-item"},eYe={class:"info-label"},tYe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},nYe={class:"info-item"},oYe={class:"info-label"},rYe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},aYe={class:"info-item"},iYe={class:"info-label"},sYe={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},lYe={key:1,class:"text-hy-text-secondary"},cYe={class:"info-item"},dYe={class:"info-label"},uYe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},fYe={class:"info-item flex items-center text-xs"},pYe={class:"info-label"},hYe={class:"flex items-center rateBox"},mYe={key:0,class:"text-hy-text-secondary"},gYe={key:1,class:"text-hy-text-main"},yYe={class:"info-item"},_Ye={class:"info-label"},bYe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},wYe={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},CYe={class:"mb-1"},EYe={class:"w-[60%] flex"},kYe={class:"flex-grow w-0 ml-2"},vYe={class:"flex-grow w-0 ml-2"},SYe=Po(t.defineComponent({__name:"audio-details",props:{item:{},playList:{}},emits:["closeDrawer"],setup(e,{emit:n}){const o=e,r=n,{fileScoreRef:i,mapFileTrackRef:a,audioPlayerRef:s,colorObject:l,colors:c,audioState:d,fileScoreLoading:f,fileScore:u,playItem:p,playerTotalTime:h,audioCurTime:g,fileScoreShow:m,closeDrawer:_,playEnd:b,onPlayStart:C,playStart:w,canPlay:E,onTimeUpdate:N,playPoint:S,onEditMark:v,onEditorClose:x,setAudioState:T}=e7({emit:r});return t.onBeforeUnmount(()=>{_()}),t.onMounted(()=>{t.nextTick(()=>{p.value={},w(o.item),t.nextTick(()=>{var D;(D=s.value)==null||D.playAudio(o.item.filePath,o.item)})})}),(D,V)=>{const R=t.resolveComponent("svg-icon"),q=t.resolveComponent("el-col"),K=t.resolveComponent("el-rate"),G=t.resolveComponent("el-row"),I=$H;return t.openBlock(),t.createElementBlock("div",wKe,[t.createVNode(mL,{ref_key:"fileScoreRef",ref:i,onOnClose:V[0]||(V[0]=P=>u.value=null)},null,512),t.createElementVNode("div",CKe,[t.createElementVNode("div",EKe,[t.unref(p).mark?(t.openBlock(),t.createBlock(R,{key:0,width:"16",height:"16",name:"media-center-mark-file",class:"pos_r mr-1"})):t.createCommentVNode("",!0),t.createElementVNode("span",null,t.toDisplayString(t.unref(p).fileName),1)]),t.createElementVNode("div",kKe,[t.createVNode(R,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:t.unref(_)},null,8,["onClick"])])]),t.createElementVNode("div",vKe,[t.createElementVNode("div",SKe,[t.createElementVNode("div",NKe,[t.createElementVNode("div",xKe,[t.createElementVNode("div",TKe,[t.createElementVNode("div",LKe,[t.createElementVNode("div",OKe,[t.createElementVNode("div",$Ke,[t.createVNode(R,{width:"60%",height:"60%",name:"menu-micphone--2-select"})])]),t.withDirectives(t.createElementVNode("div",DKe,PKe,512),[[t.vShow,t.unref(d)===t.unref(Ar).PLAYING]])])])]),t.unref(p)&&t.unref(p).id?(t.openBlock(),t.createElementBlock("div",IKe,[t.createVNode(G,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:t.withCtx(()=>[t.createVNode(q,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",MKe,[t.createElementVNode("span",AKe,t.toDisplayString(t.unref(le)("creationTime")),1),t.createElementVNode("span",VKe,t.toDisplayString(t.unref(p).uploadDateStr),1)])]),_:1}),t.createVNode(q,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",RKe,[t.createElementVNode("span",BKe,t.toDisplayString(t.unref(le)("fileAttributes")),1),t.createElementVNode("span",FKe,[t.unref(p).mark?(t.openBlock(),t.createElementBlock("span",zKe,[t.createTextVNode(t.toDisplayString(t.unref(le)("star"))+" ",1),t.createVNode(R,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-[4px] -top-[2px]"})])):(t.openBlock(),t.createElementBlock("span",UKe,"-"))])])]),_:1}),t.createVNode(q,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",jKe,[t.createElementVNode("span",WKe,t.toDisplayString(t.unref(le)("user-3")),1),t.createElementVNode("span",HKe,t.toDisplayString(t.unref(p).devUserName),1)])]),_:1}),t.createVNode(q,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",GKe,[t.createElementVNode("span",KKe,t.toDisplayString(t.unref(le)("fileSource")),1),t.createElementVNode("span",YKe,[t.unref(p).type===1?(t.openBlock(),t.createElementBlock("span",qKe,t.toDisplayString(t.unref(le)("daily")),1)):t.unref(p).type===2?(t.openBlock(),t.createElementBlock("span",ZKe,t.toDisplayString(t.unref(le)("task")),1)):t.unref(p).type===3?(t.openBlock(),t.createElementBlock("span",JKe,"SOS")):(t.openBlock(),t.createElementBlock("span",XKe,"-"))])])]),_:1}),t.createVNode(q,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",QKe,[t.createElementVNode("span",eYe,t.toDisplayString(t.unref(le)("deviceID")),1),t.createElementVNode("span",tYe,t.toDisplayString(t.unref(p).deviceId),1)])]),_:1}),t.createVNode(q,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",nYe,[t.createElementVNode("span",oYe,t.toDisplayString(t.unref(le)("audioDuration")),1),t.createElementVNode("span",rYe,t.toDisplayString(t.unref(h))+"s ",1)])]),_:1}),t.createVNode(q,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",aYe,[t.createElementVNode("span",iYe,t.toDisplayString(t.unref(le)("expirationTime")),1),t.unref(p).expiredDtm?(t.openBlock(),t.createElementBlock("span",sYe,t.toDisplayString(t.unref(p).expiredDtm),1)):(t.openBlock(),t.createElementBlock("span",lYe,"-"))])]),_:1}),t.createVNode(q,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",cYe,[t.createElementVNode("span",dYe,t.toDisplayString(t.unref(le)("fileSize")),1),t.createElementVNode("span",uYe,t.toDisplayString(t.unref(_L)(t.unref(p).fileSize)),1)])]),_:1}),t.withDirectives(t.createVNode(q,{span:24},{default:t.withCtx(()=>[t.createElementVNode("div",fYe,[t.createElementVNode("span",pYe,t.toDisplayString(t.unref(le)("rating")),1),t.createElementVNode("div",hYe,[t.createVNode(K,{modelValue:t.unref(u),"onUpdate:modelValue":V[1]||(V[1]=P=>t.isRef(u)?u.value=P:null),disabled:!!t.unref(p).fileScore,"void-color":t.unref(l).main,"disabled-void-color":t.unref(l).auxiliary,"disabled-void-icon-class":"el-icon-star-off",colors:t.unref(c),onChange:t.unref(m)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),t.unref(p).fileScore?(t.openBlock(),t.createElementBlock("span",mYe,t.toDisplayString(t.unref(le)("rated")),1)):(t.openBlock(),t.createElementBlock("span",gYe,t.toDisplayString(t.unref(le)("unrated")),1))])])]),_:1},512),[[t.vShow,!t.unref(f)]]),t.createVNode(q,{span:24},{default:t.withCtx(()=>[t.createElementVNode("div",yYe,[t.createElementVNode("span",_Ye,t.toDisplayString(t.unref(le)("location")),1),t.createElementVNode("span",bYe,t.toDisplayString(t.unref(p).address),1)])]),_:1})]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",wYe,[t.createVNode(I,{ref_key:"mapFileTrackRef",ref:a},null,512)]),t.createElementVNode("div",CYe,[t.createVNode(sB,{ref_key:"audioPlayerRef",ref:s,"play-list":D.playList,onOnTimeUpdate:t.unref(N),onCanPlay:t.unref(E),onPlayEnd:t.unref(b),onPlayStart:t.unref(C),onOnAudioState:t.unref(T)},null,8,["play-list","onOnTimeUpdate","onCanPlay","onPlayEnd","onPlayStart","onOnAudioState"])])]),t.createElementVNode("div",EYe,[t.createElementVNode("div",kYe,[t.createVNode(yL,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":t.unref(p).id,onOnEdit:t.unref(v),onOnClose:t.unref(x)},null,8,["media-file-id","onOnEdit","onOnClose"])]),t.createElementVNode("div",vYe,[t.createVNode(J9,{class:"bg-hy-page-bg-2","media-file-cur-time":t.unref(g),"media-file-id":t.unref(p).id,"media-file-total-time":t.unref(h),onPlayPoint:t.unref(S),onOnEdit:t.unref(v),onOnClose:t.unref(x)},null,8,["media-file-cur-time","media-file-id","media-file-total-time","onPlayPoint","onOnEdit","onOnClose"])])])])])])}}}),[["__scopeId","data-v-6fcc23f0"]]);function NYe(e){return xt.get({url:e,data:{responseType:"blob"},isFileUpload:!0})}function xYe(e){const n=e.emit,o=t.ref(e.props||{}),r=t.ref(null),i=t.ref(null),a=t.ref(!0),s=t.ref(null),l=t.ref(!1),c=t.ref([]),d=t.ref(!1),f=t.ref({id:"",filePath:""});async function u(N){ft.warning(le("fileIsDownloading"));const S=X9(new Date,"Y-M-h D:m:s"),v=await NYe(`/mediaFile/mediaFileZip?mediaFileIds=${N.toString()}`),x=new FileReader;x.readAsDataURL(v),x.onload=T=>{const D=URL.createObjectURL(new Blob([v])),V=document.createElement("a");document.body.appendChild(V),V.href=D,V.download=`${le("fileCompressionPackage_")}${S}.zip`,V.target="_blank",V.click(),V.remove()}}function p(){const N=o.value.playList.findIndex(S=>S.id===f.value.id);N!==0?E(o.value.playList[N-1]):ft.warning(le("currentIsTheFirstItem"))}function h(){const N=o.value.playList.findIndex(S=>S.id===f.value.id);N!==o.value.playList.length-1?E(o.value.playList[N+1]):ft.warning(le("currentIsTheLastItem"))}function g(){ft.success(le("detectionIsCorrect"))}function m(){r.value.show(f.value.id,s.value).then(N=>{f.value.fileScore=N,N.value=N})}function _(N){l.value=!0,c.value=[],i.value.onShowViewer(N)}function b(){l.value=!1}function C(){n("closeDrawer")}function w(N){console.log("error",N)}async function E(N){const S=N.id;f.value={...N},a.value=!0;const v=await aB(S);v.code===200&&(s.value=v.data||null,f.value.fileScore=s.value,a.value=!1)}return{imageViewerRef:i,fileScoreRef:r,fileScoreLoading:a,fileScore:s,imageviewerType:l,imageviewerUrl:c,videoDialogVisible:d,playItem:f,pictureDownloadFn:u,previousSheet:p,nextSheet:h,detectingHashValues:g,fileScoreShow:m,onShowViewer:_,imageviewerClose:b,closeDrawer:C,error:w,playStart:E}}const TYe={class:"h-full pic-detail-box flex flex-col"},LYe={class:"detail-box flex-shrink-0"},OYe={class:"box-header flex flex-row m-0"},$Ye={class:"flex flex-row left-header-box"},DYe={class:"group-hy-info flex items-center text-base font-bold w-full"},PYe={key:1,class:"ml-1 flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap"},IYe={class:"flex flex-row right-header-box flex-shrink text-hy-danger"},MYe={class:"flex-grow h-0 overflow-y-auto"},AYe={class:"content flex flex-row h-full min-h-[700px]"},VYe={class:"left-content-box relative"},RYe=["src"],BYe={class:"flex items-center justify-between h-[60px] box-hy-border-2"},FYe={class:"text-xs"},zYe={class:"text-xs"},UYe={class:"flex items-center"},jYe={class:"text-xs text-hy-text-secondary mr-2 flex items-center"},WYe={class:"flex items-center justify-center"},HYe={class:"ml-1 text-xs"},GYe={key:0,class:"w-full file-info mb-[10px]"},KYe={class:"info-item"},YYe={class:"info-label"},qYe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},ZYe={class:"info-item"},JYe={class:"info-label"},XYe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},QYe={class:"info-item"},eqe={class:"info-label"},tqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},nqe={class:"info-item"},oqe={class:"info-label"},rqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},aqe={key:0},iqe={key:1},sqe={key:2,class:"text-hy-danger"},lqe={key:3,class:"text-hy-text-secondary"},cqe={class:"info-item"},dqe={class:"info-label"},uqe={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},fqe={key:1,class:"text-hy-text-secondary"},pqe={class:"info-item"},hqe={class:"info-label"},mqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},gqe={key:0,class:"flex items-center"},yqe={key:1,class:"text-hy-text-secondary"},_qe={class:"info-item"},bqe={class:"info-label"},wqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Cqe={class:"info-item flex items-center text-xs"},Eqe={class:"info-label"},kqe={class:"flex items-center rateBox"},vqe={key:0,class:"text-hy-text-secondary"},Sqe={key:1,class:"text-hy-text-main"},Nqe={class:"info-item"},xqe={class:"info-label"},Tqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Lqe={key:0,class:"w-[30%] ml-2 flex-shrink-0 relative"},Oqe=Po(t.defineComponent({__name:"image-details",props:{item:{},playList:{default:()=>[]}},emits:["closeDrawer"],setup(e,{emit:n}){const o=e,r=n,i=t.reactive(ri.getCache("colorObject")),a=t.computed(()=>({2:i.auxiliary,3:i.warning,4:i.success,5:i.theme})),{imageViewerRef:s,fileScoreRef:l,fileScoreLoading:c,fileScore:d,playItem:f,pictureDownloadFn:u,previousSheet:p,nextSheet:h,fileScoreShow:g,onShowViewer:m,closeDrawer:_,error:b,playStart:C}=xYe({emit:r,props:o});return t.onMounted(()=>{C(o.item)}),(w,E)=>{const N=t.resolveComponent("svg-icon"),S=t.resolveComponent("el-button"),v=t.resolveComponent("el-icon"),x=t.resolveComponent("el-col"),T=t.resolveComponent("el-rate"),D=t.resolveComponent("el-row");return t.openBlock(),t.createElementBlock("div",TYe,[t.createVNode(mL,{ref_key:"fileScoreRef",ref:l,onOnClose:E[0]||(E[0]=V=>d.value=null)},null,512),t.createElementVNode("div",LYe,[t.createElementVNode("div",OYe,[t.createElementVNode("div",$Ye,[t.createElementVNode("div",DYe,[t.unref(f).mark?(t.openBlock(),t.createBlock(N,{key:0,width:"16",height:"16",name:"media-center-mark-file",class:"pos_r"})):t.createCommentVNode("",!0),t.unref(f)?(t.openBlock(),t.createElementBlock("div",PYe,t.toDisplayString(t.unref(f).fileName),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",IYe,[t.createVNode(N,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:t.unref(_)},null,8,["onClick"])])])]),t.createElementVNode("div",MYe,[t.createElementVNode("div",AYe,[t.createElementVNode("div",VYe,[t.createElementVNode("div",{class:"pic-img relative flex items-center justify-center",onClick:E[1]||(E[1]=V=>t.unref(m)(t.unref(f).filePath))},[t.createElementVNode("img",{src:t.unref(f).filePath,class:"h-full"},null,8,RYe)]),t.createElementVNode("div",BYe,[t.createElementVNode("div",null,[t.withDirectives(t.createElementVNode("div",null,[t.createVNode(S,{type:"primary",class:"",onClick:t.unref(p)},{default:t.withCtx(()=>[t.createElementVNode("span",FYe,t.toDisplayString(t.unref(le)("previous")),1)]),_:1},8,["onClick"]),t.createVNode(S,{type:"primary",class:"",onClick:t.unref(h)},{default:t.withCtx(()=>[t.createElementVNode("span",zYe,t.toDisplayString(t.unref(le)("next")),1)]),_:1},8,["onClick"])],512),[[t.vShow,o.playList.length>1]])]),t.createElementVNode("div",UYe,[t.createElementVNode("p",jYe,[t.createVNode(v,{class:"text-sm mr-1"},{default:t.withCtx(()=>[t.createVNode(t.unref(lZ))]),_:1}),t.createTextVNode(" "+t.toDisplayString(t.unref(le)("clickOnTheImageToEnlargeAndView")),1)]),t.createVNode(S,{class:"button_function",onClick:E[2]||(E[2]=V=>t.unref(u)(t.unref(f).id))},{default:t.withCtx(()=>[t.createElementVNode("div",WYe,[t.createVNode(N,{class:"w-[12px] h-[12px]",name:"media-download"}),t.createElementVNode("span",HYe,t.toDisplayString(t.unref(le)("download-0")),1)])]),_:1})])]),t.unref(f)&&t.unref(f).id?(t.openBlock(),t.createElementBlock("div",GYe,[t.createVNode(D,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:t.withCtx(()=>[t.createVNode(x,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",KYe,[t.createElementVNode("span",YYe,t.toDisplayString(t.unref(le)("creationTime")),1),t.createElementVNode("span",qYe,t.toDisplayString(t.unref(f).uploadDateStr),1)])]),_:1}),t.createVNode(x,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",ZYe,[t.createElementVNode("span",JYe,t.toDisplayString(t.unref(le)("fileSize")),1),t.createElementVNode("span",XYe,t.toDisplayString(t.unref(_L)(t.unref(f).fileSize)),1)])]),_:1}),t.createVNode(x,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",QYe,[t.createElementVNode("span",eqe,t.toDisplayString(t.unref(le)("user-3")),1),t.createElementVNode("span",tqe,t.toDisplayString(t.unref(f).devUserName),1)])]),_:1}),t.createVNode(x,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",nqe,[t.createElementVNode("span",oqe,t.toDisplayString(t.unref(le)("fileSource")),1),t.createElementVNode("span",rqe,[t.unref(f).type===1?(t.openBlock(),t.createElementBlock("span",aqe,t.toDisplayString(t.unref(le)("daily")),1)):t.unref(f).type===2?(t.openBlock(),t.createElementBlock("span",iqe,t.toDisplayString(t.unref(le)("task")),1)):t.unref(f).type===3?(t.openBlock(),t.createElementBlock("span",sqe,"SOS")):(t.openBlock(),t.createElementBlock("span",lqe,"-"))])])]),_:1}),t.createVNode(x,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",cqe,[t.createElementVNode("span",dqe,t.toDisplayString(t.unref(le)("expirationTime")),1),t.unref(f).expiredDtm?(t.openBlock(),t.createElementBlock("span",uqe,t.toDisplayString(t.unref(f).expiredDtm),1)):(t.openBlock(),t.createElementBlock("span",fqe,"-"))])]),_:1}),t.createVNode(x,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",pqe,[t.createElementVNode("span",hqe,t.toDisplayString(t.unref(le)("fileAttributes")),1),t.createElementVNode("span",mqe,[t.unref(f).mark?(t.openBlock(),t.createElementBlock("span",gqe,[t.createTextVNode(t.toDisplayString(t.unref(le)("star"))+" ",1),t.createVNode(N,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-1 -top-[2px]"})])):(t.openBlock(),t.createElementBlock("span",yqe,"-"))])])]),_:1}),t.createVNode(x,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",_qe,[t.createElementVNode("span",bqe,t.toDisplayString(t.unref(le)("deviceID")),1),t.createElementVNode("span",wqe,t.toDisplayString(t.unref(f).deviceId),1)])]),_:1}),t.withDirectives(t.createVNode(x,{span:24},{default:t.withCtx(()=>[t.createElementVNode("div",Cqe,[t.createElementVNode("span",Eqe,t.toDisplayString(t.unref(le)("rating")),1),t.createElementVNode("div",kqe,[t.createVNode(T,{modelValue:t.unref(d),"onUpdate:modelValue":E[3]||(E[3]=V=>t.isRef(d)?d.value=V:null),disabled:!!t.unref(f).fileScore,"void-color":i.main,"disabled-void-color":i.auxiliary,"disabled-void-icon-class":"el-icon-star-off",colors:a.value,onChange:t.unref(g)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),t.unref(f).fileScore?(t.openBlock(),t.createElementBlock("span",vqe,t.toDisplayString(t.unref(le)("rated")),1)):(t.openBlock(),t.createElementBlock("span",Sqe,t.toDisplayString(t.unref(le)("unrated")),1))])])]),_:1},512),[[t.vShow,!t.unref(c)]]),t.createVNode(x,{span:24},{default:t.withCtx(()=>[t.createElementVNode("div",Nqe,[t.createElementVNode("span",xqe,t.toDisplayString(t.unref(le)("location")),1),t.createElementVNode("span",Tqe,t.toDisplayString(t.unref(f).address),1)])]),_:1})]),_:1})])):t.createCommentVNode("",!0)]),t.unref(f).id?(t.openBlock(),t.createElementBlock("div",Lqe,[t.createVNode(yL,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":t.unref(f).id},null,8,["media-file-id"])])):t.createCommentVNode("",!0)])]),t.createVNode(QR,{ref_key:"imageViewerRef",ref:s},null,512)])}}}),[["__scopeId","data-v-b81f01ee"]]),$qe={class:"h-full text-hy-text-main flex flex-col"},Dqe={class:"h-[60px] flex justify-between items-center px-5"},Pqe={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},Iqe={class:"text-hy-danger"},Mqe={class:"flex-grow h-0 overflow-y-auto"},Aqe={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},Vqe={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},Rqe={class:"h-[240px] video-player-box mt-[20px] flex"},Bqe={key:0,class:"w-full file-info m-[10px_0]"},Fqe={class:"info-item"},zqe={class:"info-label"},Uqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},jqe={class:"info-item"},Wqe={class:"info-label"},Hqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Gqe={key:0,class:"flex items-center"},Kqe={key:1,class:"text-hy-text-secondary"},Yqe={class:"info-item"},qqe={class:"info-label"},Zqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Jqe={class:"info-item"},Xqe={class:"info-label"},Qqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},eZe={class:"info-item"},tZe={class:"info-label"},nZe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},oZe={class:"info-item"},rZe={class:"info-label"},aZe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},iZe={key:0},sZe={key:1},lZe={key:2,class:"text-hy-danger"},cZe={key:3,class:"text-hy-text-secondary"},dZe={class:"info-item"},uZe={class:"info-label"},fZe={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},pZe={key:1,class:"text-hy-text-secondary"},hZe={class:"info-item"},mZe={class:"info-label"},gZe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},yZe={class:"info-item flex items-center text-xs"},_Ze={class:"info-label"},bZe={class:"flex items-center rateBox"},wZe={key:0,class:"text-hy-text-secondary"},CZe={key:1,class:"text-hy-text-main"},EZe={class:"info-item"},kZe={class:"info-label"},vZe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},SZe={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},NZe={class:"w-[60%] flex"},xZe={class:"flex-grow w-0 ml-2"},TZe={class:"flex-grow w-0 ml-2"},LZe=Po(t.defineComponent({__name:"video-details",props:{item:{},playList:{}},emits:["closeDrawer"],setup(e,{emit:n}){const o=e,r=n,i=t.ref(),{fileScoreRef:a,mapFileTrackRef:s,colorObject:l,colors:c,audioState:d,fileScoreLoading:f,fileScore:u,playItem:p,playerTotalTime:h,audioCurTime:g,fileScoreShow:m,closeDrawer:_,playEnd:b,onPlayStart:C,playStart:w,canPlay:E,onTimeUpdate:N,playPoint:S,onEditMark:v,onEditorClose:x,setAudioState:T}=e7({emit:r,params:{getPlayerRef:()=>i.value,onEditMark:()=>{i.value.pauseVideo()}}});return t.onBeforeUnmount(()=>{_()}),t.onMounted(()=>{t.nextTick(()=>{p.value={},w(o.item),t.nextTick(()=>{var D;(D=i.value)==null||D.playVideo(o.item.filePath,o.item)})})}),(D,V)=>{const R=t.resolveComponent("svg-icon"),q=t.resolveComponent("el-col"),K=t.resolveComponent("el-rate"),G=t.resolveComponent("el-row");return t.openBlock(),t.createElementBlock("div",$qe,[t.createVNode(mL,{ref_key:"fileScoreRef",ref:a,onOnClose:V[0]||(V[0]=I=>u.value=null)},null,512),t.createElementVNode("div",Dqe,[t.createElementVNode("div",Pqe,[t.unref(p).mark?(t.openBlock(),t.createBlock(R,{key:0,width:"16",height:"16",name:"media-center-mark-file",class:"pos_r mr-1"})):t.createCommentVNode("",!0),t.createElementVNode("span",null,t.toDisplayString(t.unref(p).fileName),1)]),t.createElementVNode("div",Iqe,[t.createVNode(R,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:t.unref(_)},null,8,["onClick"])])]),t.createElementVNode("div",Mqe,[t.createElementVNode("div",Aqe,[t.createElementVNode("div",Vqe,[t.createElementVNode("div",Rqe,[t.createVNode(lB,{ref_key:"videoPlayerRef",ref:i,"play-list":D.playList,onCanPlay:t.unref(E),onOnTimeUpdate:t.unref(N),onPlayStart:t.unref(C)},null,8,["play-list","onCanPlay","onOnTimeUpdate","onPlayStart"])]),t.unref(p)&&t.unref(p).id?(t.openBlock(),t.createElementBlock("div",Bqe,[t.createVNode(G,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:t.withCtx(()=>[t.createVNode(q,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",Fqe,[t.createElementVNode("span",zqe,t.toDisplayString(t.unref(le)("creationTime")),1),t.createElementVNode("span",Uqe,t.toDisplayString(t.unref(p).uploadDateStr),1)])]),_:1}),t.createVNode(q,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",jqe,[t.createElementVNode("span",Wqe,t.toDisplayString(t.unref(le)("fileAttributes")),1),t.createElementVNode("span",Hqe,[t.unref(p).mark?(t.openBlock(),t.createElementBlock("span",Gqe,[t.createTextVNode(t.toDisplayString(t.unref(le)("star"))+" ",1),t.createVNode(R,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-[4px] -top-[2px]"})])):(t.openBlock(),t.createElementBlock("span",Kqe,"-"))])])]),_:1}),t.createVNode(q,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",Yqe,[t.createElementVNode("span",qqe,t.toDisplayString(t.unref(le)("user-3")),1),t.createElementVNode("span",Zqe,t.toDisplayString(t.unref(p).devUserName),1)])]),_:1}),t.createVNode(q,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",Jqe,[t.createElementVNode("span",Xqe,t.toDisplayString(t.unref(le)("fileSize")),1),t.createElementVNode("span",Qqe,t.toDisplayString(t.unref(_L)(t.unref(p).fileSize)),1)])]),_:1}),t.createVNode(q,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",eZe,[t.createElementVNode("span",tZe,t.toDisplayString(t.unref(le)("deviceID")),1),t.createElementVNode("span",nZe,t.toDisplayString(t.unref(p).deviceId),1)])]),_:1}),t.createVNode(q,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",oZe,[t.createElementVNode("span",rZe,t.toDisplayString(t.unref(le)("fileSource")),1),t.createElementVNode("span",aZe,[t.unref(p).type===1?(t.openBlock(),t.createElementBlock("span",iZe,t.toDisplayString(t.unref(le)("daily")),1)):t.unref(p).type===2?(t.openBlock(),t.createElementBlock("span",sZe,t.toDisplayString(t.unref(le)("task")),1)):t.unref(p).type===3?(t.openBlock(),t.createElementBlock("span",lZe,"SOS")):(t.openBlock(),t.createElementBlock("span",cZe,"-"))])])]),_:1}),t.createVNode(q,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",dZe,[t.createElementVNode("span",uZe,t.toDisplayString(t.unref(le)("expirationTime")),1),t.unref(p).expiredDtm?(t.openBlock(),t.createElementBlock("span",fZe,t.toDisplayString(t.unref(p).expiredDtm),1)):(t.openBlock(),t.createElementBlock("span",pZe,"-"))])]),_:1}),t.createVNode(q,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",hZe,[t.createElementVNode("span",mZe,t.toDisplayString(t.unref(le)("videoDuration")),1),t.createElementVNode("span",gZe,t.toDisplayString(t.unref(h))+"s ",1)])]),_:1}),t.withDirectives(t.createVNode(q,{span:24},{default:t.withCtx(()=>[t.createElementVNode("div",yZe,[t.createElementVNode("span",_Ze,t.toDisplayString(t.unref(le)("rating")),1),t.createElementVNode("div",bZe,[t.createVNode(K,{modelValue:t.unref(u),"onUpdate:modelValue":V[1]||(V[1]=I=>t.isRef(u)?u.value=I:null),disabled:!!t.unref(p).fileScore,"void-color":t.unref(l).main,"disabled-void-color":t.unref(l).auxiliary,"disabled-void-icon-class":"el-icon-star-off",colors:t.unref(c),onChange:t.unref(m)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),t.unref(p).fileScore?(t.openBlock(),t.createElementBlock("span",wZe,t.toDisplayString(t.unref(le)("rated")),1)):(t.openBlock(),t.createElementBlock("span",CZe,t.toDisplayString(t.unref(le)("unrated")),1))])])]),_:1},512),[[t.vShow,!t.unref(f)]]),t.createVNode(q,{span:24},{default:t.withCtx(()=>[t.createElementVNode("div",EZe,[t.createElementVNode("span",kZe,t.toDisplayString(t.unref(le)("location")),1),t.createElementVNode("span",vZe,t.toDisplayString(t.unref(p).address),1)])]),_:1})]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",SZe,[t.createVNode($H,{ref_key:"mapFileTrackRef",ref:s},null,512)])]),t.createElementVNode("div",NZe,[t.createElementVNode("div",xZe,[t.createVNode(yL,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":t.unref(p).id,onOnEdit:t.unref(v),onOnClose:t.unref(x)},null,8,["media-file-id","onOnEdit","onOnClose"])]),t.createElementVNode("div",TZe,[t.createVNode(J9,{class:"bg-hy-page-bg-2","media-file-cur-time":t.unref(g),"media-file-id":t.unref(p).id,"media-file-total-time":t.unref(h),onPlayPoint:t.unref(S),onOnEdit:t.unref(v),onOnClose:t.unref(x)},null,8,["media-file-cur-time","media-file-id","media-file-total-time","onPlayPoint","onOnEdit","onOnClose"])])])])])])}}}),[["__scopeId","data-v-03641849"]]),OZe={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"},$Ze={class:"h-[780px]"},DZe=t.defineComponent({__name:"file-details",setup(e,{expose:n}){const o=t.ref(!1),r=t.ref(!1),i=t.ref(1),a=t.ref({}),s=t.ref([]);function l(){o.value=!1,console.log("closeDrawer")}function c(d){o.value=!0,r.value=d.draggable,i.value=d.curMediaType,a.value=d.curItem,s.value=d.playList||[]}return t.onMounted(()=>{}),n({show:c}),(d,f)=>{const u=t.resolveComponent("el-dialog"),p=t.resolveDirective("draggable");return t.openBlock(),t.createBlock(u,{modelValue:t.unref(o),"onUpdate:modelValue":f[0]||(f[0]=h=>t.isRef(o)?o.value=h:null),top:"3vh","modal-class":"custom-transparent",class:"w-[1200px] !p-0 border-[0] shadow-[0_0_0_0]","destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,modal:!1,draggable:t.unref(r)},{header:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createBlock(Rs,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:t.withCtx(()=>[t.createElementVNode("div",OZe,[t.createElementVNode("div",$Ze,[t.unref(i)===2?(t.openBlock(),t.createBlock(SYe,{key:0,item:t.unref(a),"play-list":t.unref(s),onCloseDrawer:l},null,8,["item","play-list"])):t.unref(i)===3?(t.openBlock(),t.createBlock(LZe,{key:1,item:t.unref(a),"play-list":t.unref(s),onCloseDrawer:l},null,8,["item","play-list"])):t.unref(i)===4?(t.openBlock(),t.createBlock(Oqe,{key:2,item:t.unref(a),"play-list":t.unref(s),onCloseDrawer:l},null,8,["item","play-list"])):t.createCommentVNode("",!0)])])]),_:1})),[[p]])]),_:1},8,["modelValue","draggable"])}}});function PZe(e){return xt.post({url:"/file/abortMultipartUpload",data:e,isJson:!0})}function IZe(e){return xt.post({url:"/file/multipartUploadAuth",data:e,isFormData:!0})}function MZe(e){return xt.post({url:"/file/completeMultipartUpload",data:e,isJson:!0})}function AZe(e){return xt.post({url:"/mediaFile/mediaFile/save",data:e,isJson:!0})}function VZe(e){return xt.post({url:"/mediaFile/findByFileCloudKey",data:{fileCloudKey:e},isFormData:!0})}var t7={exports:{}};(function(e,n){(function(o){e.exports=o()})(function(o){var r=function(v,x){return v+x&4294967295},i=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function a(v,x,T,D,V,R){return x=r(r(x,v),r(D,R)),r(x<<V|x>>>32-V,T)}function s(v,x,T,D,V,R,q){return a(x&T|~x&D,v,x,V,R,q)}function l(v,x,T,D,V,R,q){return a(x&D|T&~D,v,x,V,R,q)}function c(v,x,T,D,V,R,q){return a(x^T^D,v,x,V,R,q)}function d(v,x,T,D,V,R,q){return a(T^(x|~D),v,x,V,R,q)}function f(v,x){var T=v[0],D=v[1],V=v[2],R=v[3];T=s(T,D,V,R,x[0],7,-680876936),R=s(R,T,D,V,x[1],12,-389564586),V=s(V,R,T,D,x[2],17,606105819),D=s(D,V,R,T,x[3],22,-1044525330),T=s(T,D,V,R,x[4],7,-176418897),R=s(R,T,D,V,x[5],12,1200080426),V=s(V,R,T,D,x[6],17,-1473231341),D=s(D,V,R,T,x[7],22,-45705983),T=s(T,D,V,R,x[8],7,1770035416),R=s(R,T,D,V,x[9],12,-1958414417),V=s(V,R,T,D,x[10],17,-42063),D=s(D,V,R,T,x[11],22,-1990404162),T=s(T,D,V,R,x[12],7,1804603682),R=s(R,T,D,V,x[13],12,-40341101),V=s(V,R,T,D,x[14],17,-1502002290),D=s(D,V,R,T,x[15],22,1236535329),T=l(T,D,V,R,x[1],5,-165796510),R=l(R,T,D,V,x[6],9,-1069501632),V=l(V,R,T,D,x[11],14,643717713),D=l(D,V,R,T,x[0],20,-373897302),T=l(T,D,V,R,x[5],5,-701558691),R=l(R,T,D,V,x[10],9,38016083),V=l(V,R,T,D,x[15],14,-660478335),D=l(D,V,R,T,x[4],20,-405537848),T=l(T,D,V,R,x[9],5,568446438),R=l(R,T,D,V,x[14],9,-1019803690),V=l(V,R,T,D,x[3],14,-187363961),D=l(D,V,R,T,x[8],20,1163531501),T=l(T,D,V,R,x[13],5,-1444681467),R=l(R,T,D,V,x[2],9,-51403784),V=l(V,R,T,D,x[7],14,1735328473),D=l(D,V,R,T,x[12],20,-1926607734),T=c(T,D,V,R,x[5],4,-378558),R=c(R,T,D,V,x[8],11,-2022574463),V=c(V,R,T,D,x[11],16,1839030562),D=c(D,V,R,T,x[14],23,-35309556),T=c(T,D,V,R,x[1],4,-1530992060),R=c(R,T,D,V,x[4],11,1272893353),V=c(V,R,T,D,x[7],16,-155497632),D=c(D,V,R,T,x[10],23,-1094730640),T=c(T,D,V,R,x[13],4,681279174),R=c(R,T,D,V,x[0],11,-358537222),V=c(V,R,T,D,x[3],16,-722521979),D=c(D,V,R,T,x[6],23,76029189),T=c(T,D,V,R,x[9],4,-640364487),R=c(R,T,D,V,x[12],11,-421815835),V=c(V,R,T,D,x[15],16,530742520),D=c(D,V,R,T,x[2],23,-995338651),T=d(T,D,V,R,x[0],6,-198630844),R=d(R,T,D,V,x[7],10,1126891415),V=d(V,R,T,D,x[14],15,-1416354905),D=d(D,V,R,T,x[5],21,-57434055),T=d(T,D,V,R,x[12],6,1700485571),R=d(R,T,D,V,x[3],10,-1894986606),V=d(V,R,T,D,x[10],15,-1051523),D=d(D,V,R,T,x[1],21,-2054922799),T=d(T,D,V,R,x[8],6,1873313359),R=d(R,T,D,V,x[15],10,-30611744),V=d(V,R,T,D,x[6],15,-1560198380),D=d(D,V,R,T,x[13],21,1309151649),T=d(T,D,V,R,x[4],6,-145523070),R=d(R,T,D,V,x[11],10,-1120210379),V=d(V,R,T,D,x[2],15,718787259),D=d(D,V,R,T,x[9],21,-343485551),v[0]=r(T,v[0]),v[1]=r(D,v[1]),v[2]=r(V,v[2]),v[3]=r(R,v[3])}function u(v){var x=[],T;for(T=0;T<64;T+=4)x[T>>2]=v.charCodeAt(T)+(v.charCodeAt(T+1)<<8)+(v.charCodeAt(T+2)<<16)+(v.charCodeAt(T+3)<<24);return x}function p(v){var x=[],T;for(T=0;T<64;T+=4)x[T>>2]=v[T]+(v[T+1]<<8)+(v[T+2]<<16)+(v[T+3]<<24);return x}function h(v){var x=v.length,T=[1732584193,-271733879,-1732584194,271733878],D,V,R,q,K,G;for(D=64;D<=x;D+=64)f(T,u(v.substring(D-64,D)));for(v=v.substring(D-64),V=v.length,R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],D=0;D<V;D+=1)R[D>>2]|=v.charCodeAt(D)<<(D%4<<3);if(R[D>>2]|=128<<(D%4<<3),D>55)for(f(T,R),D=0;D<16;D+=1)R[D]=0;return q=x*8,q=q.toString(16).match(/(.*?)(.{0,8})$/),K=parseInt(q[2],16),G=parseInt(q[1],16)||0,R[14]=K,R[15]=G,f(T,R),T}function g(v){var x=v.length,T=[1732584193,-271733879,-1732584194,271733878],D,V,R,q,K,G;for(D=64;D<=x;D+=64)f(T,p(v.subarray(D-64,D)));for(v=D-64<x?v.subarray(D-64):new Uint8Array(0),V=v.length,R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],D=0;D<V;D+=1)R[D>>2]|=v[D]<<(D%4<<3);if(R[D>>2]|=128<<(D%4<<3),D>55)for(f(T,R),D=0;D<16;D+=1)R[D]=0;return q=x*8,q=q.toString(16).match(/(.*?)(.{0,8})$/),K=parseInt(q[2],16),G=parseInt(q[1],16)||0,R[14]=K,R[15]=G,f(T,R),T}function m(v){var x="",T;for(T=0;T<4;T+=1)x+=i[v>>T*8+4&15]+i[v>>T*8&15];return x}function _(v){var x;for(x=0;x<v.length;x+=1)v[x]=m(v[x]);return v.join("")}_(h("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(r=function(v,x){var T=(v&65535)+(x&65535),D=(v>>16)+(x>>16)+(T>>16);return D<<16|T&65535}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function v(x,T){return x=x|0||0,x<0?Math.max(x+T,0):Math.min(x,T)}ArrayBuffer.prototype.slice=function(x,T){var D=this.byteLength,V=v(x,D),R=D,q,K,G,I;return T!==o&&(R=v(T,D)),V>R?new ArrayBuffer(0):(q=R-V,K=new ArrayBuffer(q),G=new Uint8Array(K),I=new Uint8Array(this,V,q),G.set(I),K)}}();function b(v){return/[\u0080-\uFFFF]/.test(v)&&(v=unescape(encodeURIComponent(v))),v}function C(v,x){var T=v.length,D=new ArrayBuffer(T),V=new Uint8Array(D),R;for(R=0;R<T;R+=1)V[R]=v.charCodeAt(R);return x?V:D}function w(v){return String.fromCharCode.apply(null,new Uint8Array(v))}function E(v,x,T){var D=new Uint8Array(v.byteLength+x.byteLength);return D.set(new Uint8Array(v)),D.set(new Uint8Array(x),v.byteLength),T?D:D.buffer}function N(v){var x=[],T=v.length,D;for(D=0;D<T-1;D+=2)x.push(parseInt(v.substr(D,2),16));return String.fromCharCode.apply(String,x)}function S(){this.reset()}return S.prototype.append=function(v){return this.appendBinary(b(v)),this},S.prototype.appendBinary=function(v){this._buff+=v,this._length+=v.length;var x=this._buff.length,T;for(T=64;T<=x;T+=64)f(this._hash,u(this._buff.substring(T-64,T)));return this._buff=this._buff.substring(T-64),this},S.prototype.end=function(v){var x=this._buff,T=x.length,D,V=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],R;for(D=0;D<T;D+=1)V[D>>2]|=x.charCodeAt(D)<<(D%4<<3);return this._finish(V,T),R=_(this._hash),v&&(R=N(R)),this.reset(),R},S.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},S.prototype.setState=function(v){return this._buff=v.buff,this._length=v.length,this._hash=v.hash,this},S.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},S.prototype._finish=function(v,x){var T=x,D,V,R;if(v[T>>2]|=128<<(T%4<<3),T>55)for(f(this._hash,v),T=0;T<16;T+=1)v[T]=0;D=this._length*8,D=D.toString(16).match(/(.*?)(.{0,8})$/),V=parseInt(D[2],16),R=parseInt(D[1],16)||0,v[14]=V,v[15]=R,f(this._hash,v)},S.hash=function(v,x){return S.hashBinary(b(v),x)},S.hashBinary=function(v,x){var T=h(v),D=_(T);return x?N(D):D},S.ArrayBuffer=function(){this.reset()},S.ArrayBuffer.prototype.append=function(v){var x=E(this._buff.buffer,v,!0),T=x.length,D;for(this._length+=v.byteLength,D=64;D<=T;D+=64)f(this._hash,p(x.subarray(D-64,D)));return this._buff=D-64<T?new Uint8Array(x.buffer.slice(D-64)):new Uint8Array(0),this},S.ArrayBuffer.prototype.end=function(v){var x=this._buff,T=x.length,D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],V,R;for(V=0;V<T;V+=1)D[V>>2]|=x[V]<<(V%4<<3);return this._finish(D,T),R=_(this._hash),v&&(R=N(R)),this.reset(),R},S.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.ArrayBuffer.prototype.getState=function(){var v=S.prototype.getState.call(this);return v.buff=w(v.buff),v},S.ArrayBuffer.prototype.setState=function(v){return v.buff=C(v.buff,!0),S.prototype.setState.call(this,v)},S.ArrayBuffer.prototype.destroy=S.prototype.destroy,S.ArrayBuffer.prototype._finish=S.prototype._finish,S.ArrayBuffer.hash=function(v,x){var T=g(new Uint8Array(v)),D=_(T);return x?N(D):D},S})})(t7);var RZe=t7.exports;const BZe=Or(RZe);class FZe{md5(n,o,r){this.aborted=!1,this.progress=0;let i=0;const a=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,s=2097152,l=Math.ceil(n.size/s),c=new BZe.ArrayBuffer,d=new FileReader;f(),d.onloadend=u=>{if(c.append(u.target.result),i++,this.progress=i/l,r&&typeof r=="function"&&r(this.progress),this.aborted){o("aborted");return}i<l?f():o(null,c.end())};function f(){const u=i*s,p=u+s>=n.size?n.size:u+s;d.readAsArrayBuffer(a.call(n,u,p))}}abort(){this.aborted=!0}}function zZe(e){const n=e.emit,o=t.ref(null),r=t.ref(null),i=t.ref(null),a=t.ref(null),s=t.ref(null),l=t.ref(!1),c=t.ref(0),d=t.ref(!1),f=t.ref([]),u=t.ref(!1),p=t.ref(!1),h=t.ref({1:".png,.jpg,.gif",2:".mp4",4:".mp3,.aac",5:".apk",6:".zip"}),g=t.ref([{label:le("imageFiles"),value:1},{label:le("videoFile"),value:2},{label:le("audioFiles"),value:4},{label:`APK${le("upgradePackage")}`,value:5},{label:le("softwarePackage"),value:6}]),m=t.ref([]),_=t.ref(null),b=t.ref(null),C=t.ref([]),w=t.ref([]),E=t.ref(File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice),N=t.ref(1024*1024*5);function S(){n("on-fileUploadNum",m.value.length)}function v(){d.value=!1}function x(){T(!0)}function T(W){d.value=W}function D(W){l.value=W}function V(W){a.value=W.startUploadingCallback||null,s.value=W.fileShardingCallback||null,r.value=W.onSubmit||null}function R(W,te){if(g.value=[{label:le("softwarePackage"),value:6}],_.value=6,i.value=te||null,V(W),u.value)return ft.error(le("fileReadingInProgressPleaseWait"));f.value=[],p.value=!0}function q(W,te){if(g.value=[{label:`APK${le("upgradePackage")}`,value:5}],_.value=5,i.value=te||null,V(W),u.value)return ft.error(le("fileReadingInProgressPleaseWait"));f.value=[],p.value=!0}function K(W,te){g.value=[{label:le("imageFiles"),value:1},{label:le("videoFile"),value:2},{label:le("audioFiles"),value:4}];const ue=W.folderId;if(ue){if(i.value=te||null,V({}),b.value=ue,V(W),u.value)return ft.error(le("fileReadingInProgressPleaseWait"));_.value=2,f.value=[],p.value=!0}}function G(){D(!1),p.value=!1}function I(){if(f.value.length===0)return ft.error(le("pleaseSelectAFile"));f.value.length>1&&ft.warning(le("pleaseWaitForTheFilesToBeUploadedInSequence")),p.value=!1,x(),u.value=!0,a.value&&a.value();const W=(te,ue)=>new Promise((de,_e)=>{const Ee=te[ue];Ee&&U(Ee.file,{fileType:_.value,folderId:b.value,onSubmit:r.value}).then(z=>{ft.success(`${le("startUploading")} ${z}`),te.length-1!==ue?W(te,ue+1).then(()=>{de({code:200})}):de({code:200})}).catch(()=>{te.length-1!==ue?W(te,ue+1).then(()=>{de({code:200})}):de({code:200})})});W(f.value,0).then(()=>{u.value=!1,s.value&&s.value(),f.value=[]})}function P(W){const te=W.type||"";if(_.value===1){if(!te.includes("image"))return ft.error(le("theUploadedFileIsNotOfImageType")),!1}else if(_.value===2){if(!te.includes("video"))return ft.error(le("theUploadedFileIsNotOfVideoType")),!1}else if(_.value===4){if(!te.includes("audio"))return ft.error(le("theUploadedFileIsNotOfAudioType")),!1}else if(_.value===5){if(!W.name.includes(`${h.value[5]}`))return ft.error(le("theUploadedFileIsNotAnAPKUpgradePackage")),!1}else if(_.value===6&&!W.name.includes(`${h.value[6]}`))return ft.error(le("theUploadedFileIsNotASoftwarePackage")),!1;return!0}function M(){C.value=[],w.value=[];const W=ri.getCache("fileUploadList");W&&(m.value=W.map(te=>(te.status==="uploading"&&(te.status="error"),te)),t.nextTick(()=>{S(),m.value.forEach(te=>{te.status!=="error"&&Z(te.md5)})}))}function O(){window.sessionStorage.setItem("fileUploadList",JSON.stringify(m.value))}function $(W){return new Promise((te,ue)=>{new FZe().md5(W,(_e,Ee)=>{_e?ue(_e):te({md5:Ee})})})}function F(W){return new Promise(te=>{const ue=W.size;let de=0,_e=null;const Ee=Math.ceil(ue/N.value),z=[],j=()=>{const ne=de*N.value,ce=ne+N.value>=ue?ue:ne+N.value;if(_e=E.value.call(W,ne,ce),z.push(_e),de++,de<Ee)return j();te(z)};j()})}function Y(W){const te=new File([W.file],W.file.name.replace(/\s*/g,""));f.value.push({name:te.name,file:te})}function B(W,te){if(W.file.name===te.fileName){const ue=new File([W.file],W.file.name.replace(/\s*/g,""));U(ue,{fileType:te.fileType,folderId:te.folderId,onSubmit:r.value,md5:te.md5}).then(de=>{ft.success(`${le("startUploading")} ${de}文件`)})}else ft.error(le("pleaseSelectTheSameFileForUploading"))}function U(W,te){return new Promise(async(ue,de)=>{const _e=te.md5||Q9(1);await F(W).then(async(Ee=[])=>{const z=m.value.find(j=>j.md5===_e);if(X(_e,Ee),z){const j=z.status,ne=z.errorReason;j==="error"&&!ne?(ue(W.name),Z(z.md5)):de()}else{const j=await IZe({cannedACL:l.value?"public-read":"",fileName:W.name,contentLength:W.size,contentType:W.type,partSize:N.value});if(j.code===200){const ne=j.data;if(ne){const ce=ne.list||[],be={md5:_e,fileType:te.fileType,folderId:te.folderId,onSubmit:te.onSubmit,fileName:W.name,size:W.size,type:W.type,key:ne.key,uploadId:ne.uploadId,status:"uploading",completionTime:null,progress:0,finishNum:0,totalNum:ce.length,shardingList:ce.map((Q,se)=>({key:Q.key,url:Q.url,partNumber:se+1,isUpload:!1,etag:null}))};ue(W.name),m.value.unshift(be),S(),t.nextTick(()=>{O(),Z(be.md5)})}}}})})}function J(W){return new Promise(async(te,ue)=>{const de=await VZe(W);de.code===200&&(de.data?ue(new Error(le("prohibitUploadingFilesWithTheSameNameOnThePlatform"))):te({code:200}))})}function X(W,te){const ue=C.value.findIndex(de=>de.md5===W);ue===-1?C.value.push({md5:W,fileChunkList:te}):C.value[ue].fileChunkList=te}function Z(W){const te=m.value.find(ue=>ue.md5===W);if(te.status==="amalgamation")re(te);else if(te.status==="sharding")ae(te);else{const ue=C.value.findIndex(j=>j.md5===te.md5);if(ue===-1){ft.error(le("errorInUploadingFile"));return}const de=C.value[ue].fileChunkList,_e=(j,ne)=>new Promise((ce,be)=>{const Q=j[ne];if(Q)if(Q.isUpload)j.length-1!==ne?_e(j,ne+1).then(()=>{ce({code:200})}):ce({code:200});else{const se=de[ne],pe=new File([se],te.name,{type:te.type,lastModified:Date.now()});oe(Q.url,pe).then(Ce=>{Q.etag=Ce,Q.isUpload=!0;const Ae=te.finishNum+1,$e=te.totalNum;te.finishNum=Ae,te.progress=Number.parseInt(String(Ae/$e*80)),O(),j[ne]=Q,j.length-1!==ne?_e(j,ne+1).then(()=>{ce({code:200})}):ce({code:200})})}}),Ee=te.shardingList,z=Ee.findIndex(j=>j.isUpload===!1);z!==-1?(te.status="uploading",_e(Ee,z).then(()=>{te.status="sharding",ae(te)})):(te.status="sharding",ae(te))}}function oe(W,te){return new Promise((ue,de)=>{xt.put({url:W,data:te}).then(_e=>{ue(_e)}).catch(()=>{de(new Error(le("uploadError")))})})}async function ae(W){O();const te=await MZe({key:W.key,uploadId:W.uploadId,partETagList:W.shardingList.map(ue=>({partNumber:ue.partNumber,etag:ue.etag}))});(te.code===200||te.code===10020)&&(W.status="amalgamation",W.progress=80,re(W))}async function re(W){O();const te=()=>{W.completionTime=X9(new Date,"Y-M-h D:m:s"),W.status="success",w.value.unshift(W),he(W.md5),W.onSubmit&&W.onSubmit(W),t.nextTick(()=>{O()})};i.value?i.value(W,()=>{te()}):(await AZe({fileType:W.fileType,folderId:W.folderId,key:W.key,size:W.size})).code===200&&(ft.success(le("uploadSuccessful")),te())}function fe(W,te){te.splice(W,1)}function me(W){var te;(te=o.value)==null||te.show(W.fileCloudKey).then(()=>{W.onSubmit&&W.onSubmit()})}async function he(W){if(!W)return;const te=m.value.findIndex(ue=>ue.md5===W);if(te!==-1){const ue=m.value[te];m.value.splice(te,1);const de=C.value.findIndex(_e=>_e.md5===W);de!==-1&&C.value.splice(de,1),S(),ue.key&&ue.uploadId?(await PZe({key:ue.key,uploadId:ue.uploadId})).code===200&&O():O()}}return{apkConfirmUploadRef:o,onSubmit:r,publicRea:l,customFileSave:i,startUploadingCallback:a,fileShardingCallback:s,dragLevel:c,dialogVisible:d,uploadList:f,loading:u,fileUploadVisible:p,uploadAccept:h,fileTypeList:g,fileType:_,folderId:b,fileList:C,fileUploadList:m,successFileList:w,blobSlice:E,defaultChunkSize:N,fileUploadNumFn:S,onClose:v,show:x,setDialogVisible:T,setPublicRea:D,setCallback:V,fileUploadVersionShow:R,fileUploadAPkShow:q,fileUploadShow:K,fileUploadClose:G,fileUploadSubmit:I,beforeAvatarUpload:P,getData:M,saveData:O,getFileMd5:$,sliceFile:F,uploadListRequestFn:Y,handleHttpRequestImg:B,fileRequestFn:U,findByFileCloudKey:J,fileListPushFn:X,uploadSliceFile:Z,uploadPart:oe,completeMultipartUpload:ae,mediaFileFn:re,deleteListFn:fe,apkConfirmUploadShow:me,deleteFileUpload:he}}const UZe=e=>(t.pushScopeId("data-v-fe9cb75f"),e=e(),t.popScopeId(),e),jZe={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"},WZe={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},HZe={class:"absolute right-[10px]"},GZe={class:"dialog_body p-[0px_30px_20px]"},KZe={class:"mb-[10px]"},YZe={class:"text-sm leading-[30px]"},qZe={class:"mb-[10px]"},ZZe={class:"text-sm leading-[30px]"},JZe={class:"text-center"},XZe={class:"text-xs text-hy-text-secondary"},QZe={class:"uploadList select-none"},eJe={class:"flex-grow w-0"},tJe={class:"text-right mt-[20px]"},nJe={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"},oJe={class:"relative border-b border-hy-border-2 pl-2 text-[18px] font-bold h-[50px] flex items-center justify-between"},rJe={class:"absolute right-[10px]"},aJe={class:"dialog_body el-dialog__body !p-[0_0_10px_0]"},iJe={class:"progressBox text-hy-text-main el-progress-bar__outer_backgroundv3"},sJe={class:"flex items-center"},lJe={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},cJe={key:0,class:"flex items-center justify-center"},dJe={key:0,class:"select-none click-box"},uJe={class:"iconCloseBox click-box ml-[4px]"},fJe={class:"flex flex-row leading-[20px] text-hy-danger select-none"},pJe={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},hJe={class:"flex flex-row mb-[4px]"},mJe={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},gJe=UZe(()=>t.createElementVNode("span",null,[t.createElementVNode("i",{class:"el-icon-loading text-hy-main"})],-1)),yJe={class:"flex flex-row leading-[20px]"},_Je={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},bJe={class:"text-hy-main"},wJe={class:"flex flex-row mb-[4px]"},CJe={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},EJe={class:"iconCloseBox click-box"},kJe={class:"flex flex-row leading-[20px]"},vJe={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},SJe={class:"text-hy-success"},NJe={key:0,class:"text-hy-text-secondary flex items-center justify-center text-xs noData h-full"},xJe={class:"text-center"},TJe={class:"mt-[10px]"},LJe=Po(t.defineComponent({__name:"file-upload",emits:["on-fileUploadNum"],setup(e,{expose:n,emit:o}){const r=o,{apkConfirmUploadRef:i,onSubmit:a,publicRea:s,customFileSave:l,startUploadingCallback:c,fileShardingCallback:d,dragLevel:f,dialogVisible:u,uploadList:p,loading:h,fileUploadVisible:g,uploadAccept:m,fileTypeList:_,fileType:b,folderId:C,fileList:w,fileUploadList:E,successFileList:N,blobSlice:S,defaultChunkSize:v,fileUploadNumFn:x,onClose:T,show:D,setDialogVisible:V,setPublicRea:R,setCallback:q,fileUploadVersionShow:K,fileUploadAPkShow:G,fileUploadShow:I,fileUploadClose:P,fileUploadSubmit:M,beforeAvatarUpload:O,getData:$,saveData:F,getFileMd5:Y,sliceFile:B,uploadListRequestFn:U,handleHttpRequestImg:J,fileRequestFn:X,findByFileCloudKey:Z,fileListPushFn:oe,uploadSliceFile:ae,uploadPart:re,completeMultipartUpload:fe,mediaFileFn:me,deleteListFn:he,apkConfirmUploadShow:W,deleteFileUpload:te}=zZe({emit:r});return t.onMounted(()=>{$()}),n({fileUploadShow:I,fileUploadAPkShow:G,fileUploadVersionShow:K,show:D}),(ue,de)=>{const _e=t.resolveComponent("svg-icon"),Ee=t.resolveComponent("el-option"),z=t.resolveComponent("el-select"),j=t.resolveComponent("el-icon"),ne=t.resolveComponent("el-upload"),ce=t.resolveComponent("el-button"),be=t.resolveComponent("el-dialog"),Q=t.resolveComponent("el-tooltip"),se=t.resolveComponent("el-progress"),pe=t.resolveDirective("draggable");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(be,{"model-value":t.unref(g),"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:t.withCtx(()=>[t.createVNode(Rs,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:t.withCtx(()=>[t.createElementVNode("div",jZe,[t.createElementVNode("div",WZe,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("fileUpload")),1),t.createElementVNode("div",HZe,[t.createVNode(_e,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:t.withModifiers(t.unref(P),["stop"])},null,8,["onClick"])])]),t.createElementVNode("div",GZe,[t.createElementVNode("div",KZe,[t.createElementVNode("div",YZe,t.toDisplayString(t.unref(le)("fileType")),1),t.createVNode(z,{modelValue:t.unref(b),"onUpdate:modelValue":de[0]||(de[0]=Ce=>t.isRef(b)?b.value=Ce:null),class:"!w-full",placeholder:t.unref(le)("fileType")},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(_),(Ce,Ae)=>(t.openBlock(),t.createBlock(Ee,{key:Ae,label:Ce.label,value:Ce.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),t.createElementVNode("div",qZe,[t.createElementVNode("div",ZZe,t.toDisplayString(t.unref(le)("uploadFiles")),1),t.createElementVNode("div",null,[t.createVNode(ne,{"before-upload":t.unref(O),"http-request":t.unref(U),accept:t.unref(m)[`${t.unref(b)}`],action:"",drag:"","show-file-list":!1,multiple:""},{default:t.withCtx(()=>[t.createElementVNode("div",JZe,[t.createVNode(j,{class:"text-[60px] text-hy-text-secondary"},{default:t.withCtx(()=>[t.createVNode(t.unref(oZ))]),_:1}),t.createElementVNode("div",XZe,[t.createTextVNode(t.toDisplayString(t.unref(le)("dragFilesHereOr")),1),t.createElementVNode("em",null,t.toDisplayString(t.unref(le)("clickToUpload")),1)])])]),_:1},8,["before-upload","http-request","accept"]),t.createElementVNode("ul",QZe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(p),(Ce,Ae)=>(t.openBlock(),t.createElementBlock("li",{key:`${Ae}uploadList`},[t.createElementVNode("span",eJe,t.toDisplayString(Ce.name),1),t.createVNode(_e,{width:"16",height:"16",name:"icon-close",class:"click-box iconCloseBox clickBox text-hy-danger",onClick:$e=>t.unref(he)(Ae,t.unref(p))},null,8,["onClick"])]))),128))])])]),t.createElementVNode("div",tJe,[t.createVNode(ce,{type:"primary",class:"w-[100px]",onClick:t.unref(P)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("close")),1)]),_:1},8,["onClick"]),t.createVNode(ce,{class:"w-[100px]",onClick:t.unref(M)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("confirm")),1)]),_:1},8,["onClick"])])])])]),_:1})]),_:1},8,["model-value"]),t.createVNode(be,{"model-value":t.unref(u),"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:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createBlock(Rs,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:t.withCtx(()=>[t.createElementVNode("div",nJe,[t.createElementVNode("div",oJe,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("fileUpload")),1),t.createElementVNode("div",rJe,[t.createVNode(_e,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:t.withModifiers(t.unref(T),["stop"])},null,8,["onClick"])])]),t.createElementVNode("div",aJe,[t.createElementVNode("ul",iJe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(E),(Ce,Ae)=>(t.openBlock(),t.createElementBlock("li",{key:`${Ae}fileUploadList`},[t.withDirectives(t.createElementVNode("div",null,[t.createElementVNode("div",sJe,[t.createElementVNode("div",lJe,t.toDisplayString(Ce.fileName),1),Ce.fileType!==5?(t.openBlock(),t.createElementBlock("div",cJe,[t.createVNode(ne,{class:"flex items-center justify-center","before-upload":t.unref(O),"http-request":$e=>t.unref(J)($e,Ce),action:"","show-file-list":!1},{default:t.withCtx(()=>[t.createVNode(Q,{placement:"top","open-delay":500,class:"item",effect:"dark",content:t.unref(le)("selectTheSameFileAgainForUploading")},{default:t.withCtx(()=>[Ce.errorReason?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",dJe,[t.createVNode(_e,{width:"16",height:"16",name:"live-broadcast-refresh-v3"})]))]),_:2},1032,["content"])]),_:2},1032,["before-upload","http-request"]),t.createElementVNode("div",uJe,[t.createVNode(_e,{width:"16",height:"16",name:"icon-close",class:"text-hy-danger",onClick:$e=>t.unref(te)(Ce.md5)},null,8,["onClick"])])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",fJe,[t.createElementVNode("div",pJe,t.toDisplayString(Ce.errorReason||t.unref(le)("uploadFailed")),1),t.createElementVNode("span",null,t.toDisplayString(Ce.progress)+"%",1)]),t.createVNode(se,{"show-text":!1,status:"exception","text-inside":!0,"stroke-width":9,percentage:Ce.progress},null,8,["percentage"])],512),[[t.vShow,Ce.status==="error"]]),t.withDirectives(t.createElementVNode("div",null,[t.createElementVNode("div",hJe,[t.createElementVNode("div",mJe,t.toDisplayString(Ce.fileName),1),gJe]),t.createElementVNode("div",yJe,[t.createElementVNode("div",_Je,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("uploadingPatientWait"))+"…",1)]),t.createElementVNode("span",bJe,t.toDisplayString(Ce.progress)+"%",1)]),t.createVNode(se,{"show-text":!1,"text-inside":!0,"stroke-width":9,percentage:Ce.progress},null,8,["percentage"])],512),[[t.vShow,Ce.status!=="error"]])]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(N),(Ce,Ae)=>(t.openBlock(),t.createElementBlock("li",{key:`${Ae}successFileList`},[t.createElementVNode("div",wJe,[t.createElementVNode("div",CJe,t.toDisplayString(Ce.fileName),1),t.createElementVNode("div",EJe,[t.createVNode(_e,{width:"16",height:"16",class:"text-hy-danger",name:"icon-close",onClick:$e=>t.unref(he)(Ae,t.unref(N))},null,8,["onClick"])])]),t.createElementVNode("div",kJe,[t.createElementVNode("div",vJe,[t.createElementVNode("span",null,t.toDisplayString(Ce.completionTime),1)]),t.createElementVNode("span",SJe,t.toDisplayString(t.unref(le)("success")),1)]),t.createVNode(se,{"show-text":!1,status:"success","text-inside":!0,"stroke-width":9,percentage:100})]))),128)),t.unref(E).length===0&&t.unref(N).length===0?(t.openBlock(),t.createElementBlock("li",NJe,[t.createElementVNode("div",xJe,[t.createVNode(_e,{name:"base-no-data",class:"!w-[50px] !h-[50px]"}),t.createElementVNode("div",TJe,t.toDisplayString(t.unref(le)("noData-3")),1)])])):t.createCommentVNode("",!0)])])])]),_:1})),[[pe]])]),_:1},8,["model-value"])])}}}),[["__scopeId","data-v-fe9cb75f"]]);function OJe(e){const n=[{type:1,svgName:"lawEnforcement"},{type:3,svgName:"dispatchingDesk"},{type:4,svgName:"dutyDesk"},{type:5,svgName:"phone"},{type:6,svgName:"controlTheBall"},{type:7,svgName:"ipc"},{type:8,svgName:"safetyHat"},{type:9,svgName:"flashlight"},{type:10,svgName:"workCard"},{type:11,svgName:"vehicle"},{type:12,svgName:"uav"},{type:13,svgName:"ipc"},{type:14,svgName:"obd"}],o=n.findIndex(r=>r.type===e);return o!==-1?`sys-deviceIcon-${n[o].svgName}`:"sys-deviceIcon-walkieTalkie"}const $Je={class:"flex-shrink-0 mr-1"},DJe={class:"flex-grow w-0 overflow-ellipsis overflow-hidden"},PJe={class:"deviceName"},IJe={key:0,class:"flex-shrink-0 mx-2"},MJe={key:0,class:"text-hy-danger text-sm font-bold relative flex-shrink-0"},AJe={key:1,class:"deviceType flex-shrink-0"},VJe={key:2,class:"deviceType flex-shrink-0"},RJe={key:3,class:"deviceType flex-shrink-0"},BJe={key:4,class:"deviceType flex-shrink-0"},FJe={key:5,class:"deviceType flex-shrink-0"},zJe={key:6,class:"deviceType flex-shrink-0"},UJe={key:7,class:"text-hy-success flex-shrink-0"},jJe={key:1,class:"flex-shrink-0 mx-2"},WJe=[t.createElementVNode("span",{class:"shrink-0"},"离线",-1)],n7=t.defineComponent({__name:"device-cpns",props:{device:{}},setup(e){const n=e,o=t.ref(n.device);return t.onMounted(()=>{}),(r,i)=>{const a=t.resolveComponent("svg-icon"),s=t.resolveComponent("el-tooltip");return t.openBlock(),t.createBlock(s,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:o.value.devName},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass([{"!text-hy-text-main":o.value.onlineState===1},"w-full h-full flex border-box items-center box-border text-hy-info"])},[t.createElementVNode("div",$Je,[t.createVNode(a,{name:t.unref(OJe)(o.value.deviceType||o.value.type),width:"20",height:"20",class:"relative top-[2px]"},null,8,["name"])]),t.createElementVNode("div",DJe,[t.createElementVNode("span",PJe,t.toDisplayString(o.value.devName),1)]),o.value.onlineState===1?(t.openBlock(),t.createElementBlock("div",IJe,[o.value.sos===1?(t.openBlock(),t.createElementBlock("span",MJe,"SOS")):o.value.intercomGroupTem===1||o.value.intercomCall===1?(t.openBlock(),t.createElementBlock("span",AJe,"音频中")):o.value.monitor===1||o.value.beMonitor===1?(t.openBlock(),t.createElementBlock("span",VJe,"监控中")):o.value.videoCall===1?(t.openBlock(),t.createElementBlock("span",RJe,"通话中")):o.value.videoRecording===1?(t.openBlock(),t.createElementBlock("span",BJe,"录像中")):o.value.audioRecording===1?(t.openBlock(),t.createElementBlock("span",FJe,"录音中")):o.value.broadcast===1?(t.openBlock(),t.createElementBlock("span",zJe,"广播中")):(t.openBlock(),t.createElementBlock("span",UJe,"在线"))])):(t.openBlock(),t.createElementBlock("div",jJe,WJe))],2)]),_:1},8,["content"])}}});function HJe(e){const n=e.emit,o=t.ref(e.props||{}),r=t.ref(o.value.itemType),i=t.ref(o.value.itemSelectParam),a=t.ref(),s={value:"onlyId",label:"orgName",children:"children",disabled:"disabled"},l=t.ref([]),c=t.ref(null),d=t.ref(300),f=t.ref([]),u=t.ref([]);function p(v){return f.value.findIndex(x=>x[`${i.value}`]===v)}function h(v,x){let T=null;if(v[`${i.value}`]&&v.type===r.value){if(v.disabled)return;o.value.showRadio?(T=p(v[`${i.value}`]),x?T===-1&&(b([...v]),n("onCurrent",v)):T!==-1&&(f.value.splice(T,1),n("onCurrentDelete",v)),n("onSelectedData",{selectedDataList:f.value,selectedData:f.value})):o.value.showCheckbox&&!o.value.parentCheckbox?(T=p(v[`${i.value}`]),x?T===-1&&(b([...f.value,{...v}]),n("onCurrent",v)):T!==-1&&(f.value.splice(T,1),n("onCurrentDelete",v))):(a.value.setChecked(v[`${i.value}`],x,!0),w(),n("onCurrent",v)),n("onSelectedData",{selectedDataList:f.value,selectedData:f.value})}else a.value.setChecked(`${v.id}`,x,!0),w()}async function g(v){let x=null;await t.nextTick(()=>{v.disabled||(o.value.showRadio?(x=p(v[`${i.value}`]),x===-1?(b([{...v}]),n("onCurrent",v)):(f.value.splice(x,1),n("onCurrentDelete",v)),n("onSelectedData",{selectedDataList:f.value,selectedData:f.value})):o.value.showCheckbox&&!o.value.parentCheckbox?(x=p(v[`${i.value}`]),x===-1?(b([...f.value,{...v}]),n("onCurrent",v)):(f.value.splice(x,1),n("onCurrentDelete",v)),n("onSelectedData",{selectedDataList:f.value,selectedData:f.value})):(a.value.setChecked(`${v[`${i.value}`]}`,_(v[`${i.value}`]),!0),w(),n("onCurrent",v)))})}function m(v){a.value.setCheckedKeys(v||[]),w()}function _(v){return(a.value.getCheckedKeys()||[]).findIndex(D=>D===v||D===`${v}`)===-1}function b(v){o.value.showCheckbox&&o.value.parentCheckbox&&a.value.setCheckedKeys(v.map(x=>`${x[`${o.value.itemSelectParam}`]}`)||[]),f.value=v}function C(v){u.value=v}function w(){const v=a.value.getCheckedNodes()||[],x=[],T=[];v.forEach(D=>{D.type===r.value?x.push(D):T.push(D)}),b([...x]),C(T),n("onSelectedData",{selectedDataList:x,departmentList:T,selectedData:v})}function E(v,x){v.type===r.value?g(v):(c.value&&(clearTimeout(c.value),c.value=null),c.value=setTimeout(()=>{var D;n("onCurrentDepartment",v);const T=l.value.findIndex(V=>V===x.key);T===-1?((D=a.value)==null||D.expandNode(x),l.value.push(`${x.key}`)):(a.value.collapseNode(x),l.value.splice(T,1))},d.value))}function N(v){if(o.value.showCheckbox&&!o.value.parentCheckbox)return;c.value&&(clearTimeout(c.value),c.value=null);const x=`organization_${v.id}`;a.value.setChecked(x,_(x),!0),w()}function S(v){var x;(x=a.value)==null||x.setData(v)}return{departmentDoubleClick:N,selectedList:f,getCurrentNode:w,getSelectedIndex:p,nodeClick:E,setChecked:h,setCheckedKeys:m,setData:S,setSelectedList:b,treeProps:s,treeRef:a}}const o7=e=>(t.pushScopeId("data-v-30b7bfe2"),e=e(),t.popScopeId(),e),GJe={class:"flex w-full h-full text-sm"},KJe={key:0,class:"w-full flex items-center"},YJe={key:0,class:"mr-[6px]"},qJe={class:"el-checkbox"},ZJe=[o7(()=>t.createElementVNode("span",{class:"el-checkbox__inner"},null,-1))],JJe={key:1,class:"mr-1"},XJe={class:"el-radio"},QJe=[o7(()=>t.createElementVNode("span",{class:"el-radio__inner"},null,-1))],eXe=["onDblclick"],og=Po(t.defineComponent({__name:"tree-cpns",props:{itemType:{default:1},itemSelectParam:{default:"id"},height:{default:500},itemSize:{default:36},dataList:{default:()=>[]},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!1},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(e,{expose:n,emit:o}){const r=e,i=o,{departmentDoubleClick:a,selectedList:s,getCurrentNode:l,getSelectedIndex:c,nodeClick:d,setChecked:f,setCheckedKeys:u,setData:p,setSelectedList:h,treeProps:g,treeRef:m}=HJe({emit:i,props:r});t.watch(()=>r.showCheckbox,b=>{if(b===!1)if(s.value.length){const C=s.value[0];s.value=[C],r.showCheckbox&&r.parentCheckbox&&u([C[`${r.itemSelectParam}`]]),i("onSelectedData",{selectedDataList:s.value,selectedData:s.value})}else u([])}),n({setCheckedKeys:u,setSelectedList:h,setChecked:f,setData:p});const _=t.ref();return t.onMounted(()=>{s.value=r.defaultCheckedList,r.showCheckbox&&r.parentCheckbox&&(_.value=r.defaultCheckedList.map(b=>`${b[`${r.itemSelectParam}`]}`))}),(b,C)=>{const w=t.resolveComponent("el-tree-v2");return t.openBlock(),t.createBlock(w,{ref_key:"treeRef",ref:m,class:t.normalizeClass({highlightSelected:r.highlightSelected}),"show-checkbox":r.showCheckbox&&r.parentCheckbox,"check-strictly":r.checkStrictly,"default-checked-keys":t.unref(_),"expand-on-click-node":!1,data:r.dataList,props:t.unref(g),height:r.height,"item-size":r.itemSize,onNodeClick:t.unref(d),onCheck:t.unref(l)},{default:t.withCtx(({data:E})=>[t.createElementVNode("div",GJe,[E.type===r.itemType?(t.openBlock(),t.createElementBlock("div",KJe,[r.showCheckbox&&!r.parentCheckbox?(t.openBlock(),t.createElementBlock("div",YJe,[t.withDirectives(t.createElementVNode("div",qJe,[t.createElementVNode("span",{class:t.normalizeClass([{"is-checked":t.unref(c)(E[`${r.itemSelectParam}`])!==-1,"is-disabled":E.disabled},"el-checkbox__input"])},ZJe,2)],512),[[t.vShow,r.showCheckboxButton]])])):t.createCommentVNode("",!0),r.showRadio?(t.openBlock(),t.createElementBlock("div",JJe,[t.withDirectives(t.createElementVNode("div",XJe,[t.createElementVNode("span",{class:t.normalizeClass([{"is-checked":t.unref(c)(E[`${r.itemSelectParam}`])!==-1,"is-disabled":E.disabled},"el-radio__input"])},QJe,2)],512),[[t.vShow,r.showRadioButton]])])):t.createCommentVNode("",!0),t.renderSlot(b.$slots,"check-content",t.normalizeProps(t.guardReactiveProps({row:E})),void 0,!0)])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"w-0 flex-grow flex text-hy-text-main",onDblclick:t.withModifiers(N=>t.unref(a)(E),["stop"])},[t.renderSlot(b.$slots,"other-content",t.normalizeProps(t.guardReactiveProps({row:E})),void 0,!0)],40,eXe))])]),_:3},8,["class","show-checkbox","check-strictly","default-checked-keys","data","props","height","item-size","onNodeClick","onCheck"])}}}),[["__scopeId","data-v-30b7bfe2"]]);function rg(e){const n=e.emit,o=t.ref(),r=t.ref(0),i=t.ref([]),a=t.ref(null),s=t.ref([]),l=t.computed(()=>{const E=s.value.find(N=>N.value===a.value);return E&&E.placeholder?E.placeholder:le("pleaseEnterContentToSearch")}),c=t.computed(()=>!!t.useSlots()["check-content"]),d=t.computed(()=>!!t.useSlots()["other-content"]),f=t.ref(null);function u(){const E=new ResizeObserver(()=>{f.value&&(r.value=f.value.clientHeight)});f.value&&E.observe(f.value)}function p(E){n("onCurrentDepartment",E)}function h(E){n("onCurrent",E)}function g(E){n("onCurrentDelete",E)}function m(E){n("onSelectedData",E)}function _(E){i.value=E}function b(E,N){o.value.setChecked(E,N)}function C(E){o.value.setCheckedKeys(E)}function w(E){o.value.setSelectedList(E)}return{checkContentSlotsType:c,otherContentSlotsType:d,currentDepartment:p,currentDevice:h,currentDeviceDelete:g,elementRef:f,selectedData:m,treeComponentHeight:r,treeComponentRef:o,viewDepartmentList:i,watchTreeComponentHeight:u,setChecked:b,setCheckedKeys:C,setSelectedList:w,selectFilterList:s,selectFilterType:a,getInputPlaceholder:l,setViewDepartmentList:_}}function V1(e,n){return!e||e.length===0?!1:e.includes(`disabled:${n}`)}function R1(e,n="id"){const o=new Map;return e.forEach(r=>o.set(r[`${n}`],r)),Array.from(o.values())}function Vi(e,n,o,r){var s;const{selectFilterType:i}=r||{};if(!n)return!0;if(i&&i!==e)return!1;const a=l=>l&&l.toString().includes(n);switch(e){case 7:return o.typeName==="workOrderList"?a(o.workTimeName):a(o.dailyCheckName);case 6:return a(o.deviceUserName)||a((s=o.item)==null?void 0:s.deviceId);case 5:return a(o.jobNum)||a(o.name)||a(o.phone);case 4:return a(o.groupName);case 8:return a(o.sname);case 3:return a(o.deviceId)||a(o.devName)||a(o.name);default:return a(o.companyName)||a(o.orgName)}}async function wL(e,n,o,r){const{hideDevice:i,selectFilterType:a,signal:s,hideOrgNoData:l,disabledIds:c,showOnlineOnly:d}=o||{disabledIds:"",showOnlineOnly:!1,hideOrgNoData:!1,hideDevice:!1,selectFilterType:null,signal:null},f=[],u=[];for(let p=0;p<n.length;p++){const h=n[p],g=p;h.type===3?h.onlyId=`${h.deviceId}`:(h.type=1,h.onlyId=`${h.id}`),i&&h.type===1&&c.length!==0&&(h.disabled=V1(c,h.id)),h.childrenDeviceList=[],h.onlineCountList=[];const m=r&&r.companyName&&h.type!==3?r.companyName:null;h.parentIdsList=r&&r.parentIdsList?[...r.parentIdsList,{id:h.id,currentSubscript:g}]:[{id:h.id,currentSubscript:g}];let _=!1;r&&r.parentType||h.type===3?_=!0:_=Vi(1,e,h,{selectFilterType:a});const b=_?h:{};if(h.deviceList&&h.deviceList.length&&!i){const C=[];h.deviceList.forEach((w,E)=>{if((r&&r.parentType||Vi(3,e,w,{selectFilterType:a})||_)&&(d&&w.onlineState===1||!d)){const N={parentType:!0,...w,isLeaf:!0,label:w.name||w.deviceId,deviceType:w.type,prodModel:w.prodModel?w.prodModel:"",simNum:w.simNum?w.simNum:"",companyName:n[g].companyName,select:!1,expand:!1,type:3,item:w,parentId:w.parentId?w.parentId:"",parentName:w.parentName?w.parentName:"",personnel:w.personnel?"1":"2",parentOrgName:m,disabled:V1(c,w.deviceId)},S=N;S.parentOrgName=m,S.parentIdsList=h.parentIdsList,h.childrenDeviceList.push(S),f.push(S),C[w.onlineState===1?"unshift":"push"](N)}}),h.children=h.children.concat(C)}else h.deviceList=[];if(h.children&&h.children.length>0){const C=await wL(e,h.children,o,{...h,parentType:_});if(C){const w=C.deviceList;h.childrenDeviceList.push(...w),f.push(...w);const E=new Map,N=[];h.childrenDeviceList.forEach(S=>{E.has(S.id)||(E.set(S.id,S),S.onlineState===1&&N.push(S))}),h.childrenDeviceList=Array.from(E.values()),h.onlineCountList=N,h.children=C.children}}Object.keys(b).length&&(h.type===3||b.children.length||!l&&(b.companyName||b.orgName))&&u.push(h)}return{children:u,deviceList:R1(f)}}async function r7(e,n,o,r){const{hideDevice:i,selectFilterType:a,signal:s,hideOrgNoData:l,hideGroup:c}=o||{hideOrgNoData:!1,hideGroup:!1,hideDevice:!1,selectFilterType:null,signal:null},d=[],f=[];for(let u=0;u<n.length;u++){const p=n[u];p.type===3?p.onlyId=`device_${p.id}`:p.type===4?p.onlyId=`${p.id}`:p.onlyId=`organization_${p.id}`,p.childrenDeviceList=[],p.onlineCountList=[];let h=!1;p.type===3||p.type===4?h=!0:h=Vi(1,e,p,{selectFilterType:a});const g=h?p:{};if(p.groupList&&p.groupList.length!==0?p.groupList.forEach((m,_)=>{if(m.deviceList&&m.deviceList.length!==0){const b=[];r&&r.parentType||h||Vi(4,e,m,{selectFilterType:a})?(i||m.deviceList.forEach(C=>{const w={isLeaf:!0,...C,children:[],orgGroupId:m.id,deviceType:C.type,type:3};b[C.onlineState===1?"unshift":"push"](w)}),p.children.push({...m,children:b,type:4})):(i||m.deviceList.forEach(C=>{if(Vi(3,e,C,{selectFilterType:a})){const w={isLeaf:!0,...C,children:[],orgGroupId:m.id,deviceType:C.type,type:3};b[C.onlineState===1?"unshift":"push"](w)}}),b.length&&p.children.push({...m,children:b,type:4}))}else(r&&r.parentType||h||Vi(4,e,m,{selectFilterType:a}))&&p.children.push({...m,children:[],type:4})}):p.groupList=[],p.deviceList&&p.deviceList.length&&(p.childrenDeviceList=p.deviceList),p.childrenDeviceList&&p.childrenDeviceList.forEach(m=>{d.findIndex(b=>b.deviceId===m.deviceId)===-1&&d.push(m)}),p.children&&p.children.length!==0){const m=await r7(e,p.children,o,{...p,parentType:h});if(m){const _=m.deviceList;p.childrenDeviceList.push(..._),d.push(..._);const b=new Map,C=[];p.childrenDeviceList.forEach(w=>{b.has(w.id)||(b.set(w.id,w),w.onlineState===1&&C.push(w))}),p.childrenDeviceList=Array.from(b.values()),p.onlineCountList=C,g.children=m.children}}Object.keys(g).length&&(!c&&p.type===4||p.type===3||g.children.length||!l&&(g.companyName||g.orgName))&&f.push({...p,...g})}return{children:f,deviceList:R1(d)}}async function a7(e,n,o,r){const{selectFilterType:i,hideOrgNoData:a,disabledIds:s}=o||{selectFilterType:null,hideOrgNoData:!1,disabledIds:""},l=[],c=[];for(let d=0;d<n.length;d++){const f=n[d],u=d;f.onlyId=f.type===5?`${f.id}`:`organization_${f.id}`,f.childrenDeviceList=[],f.onlineCountList=[],r&&r.parentIdsList?f.parentIdsList=[...r.parentIdsList,{id:f.id,currentSubscript:u}]:f.parentIdsList=[{id:f.id,currentSubscript:u}];let p=!1;f.type===5?p=!0:p=Vi(1,e,f,{selectFilterType:i});const h=p?f:{};if(f.deviceUserList&&f.deviceUserList.length){const g=[];f.deviceUserList.forEach((m,_)=>{if(r&&r.parentType||Vi(5,e,m,{selectFilterType:i})||p){const b={...m,parentType:!0,isLeaf:!0,label:m.name||m.id,deviceId:m.id,deviceType:m.type,type:5,item:m,children:[],parentIdsList:f.parentIdsList};f.childrenDeviceList.push(b),l.push(b);const C={...m,parentType:!0,isLeaf:!0,label:m.name||m.id,deviceId:m.id,deviceType:m.type,type:5,children:[],item:m,disabled:V1(s,m.id)};g[m.onlineState===1?"unshift":"push"](C)}}),f.children=[...f.children,...g]}else f.deviceList=[];if(f.children&&f.children.length>0){const g=await a7(e,f.children,o,{...f,parentType:p});if(g){const m=g.deviceList;f.childrenDeviceList.push(...m),l.push(...m);const _=new Map,b=[];f.childrenDeviceList.forEach(C=>{_.has(C.id)||(_.set(C.id,C),C.onlineState===1&&b.push(C))}),f.childrenDeviceList=Array.from(_.values()),f.onlineCountList=b,h.children=g.children}}Object.keys(h).length&&(f.type===5||h.children.length||!a&&(h.companyName||h.orgName))&&c.push({...f,...h})}return{children:c,deviceList:R1(l)}}async function i7(e,n,o,r){const{selectFilterType:i,hideOrgNoData:a,disabledIds:s}=o||{selectFilterType:null,hideOrgNoData:!1,disabledIds:""},l=[],c=[];for(let d=0;d<n.length;d++){const f=n[d],u=d;f.onlyId=f.type===8?`${f.id}`:`organization_${f.id}`,f.childrenDeviceList=[],f.onlineCountList=[],r&&r.parentIdsList?f.parentIdsList=[...r.parentIdsList,{id:f.id,currentSubscript:u}]:f.parentIdsList=[{id:f.id,currentSubscript:u}];let p=!1;f.type===8?p=!0:p=Vi(1,e,f,{selectFilterType:i});const h=p?f:{};if(f.csList&&f.csList.length){const g=[];f.csList.forEach((m,_)=>{if(r&&r.parentType||Vi(8,e,m,{selectFilterType:i})||p){const b={...m,type:8,item:m,children:[]};f.childrenDeviceList.push(b),l.push(b);const C={...m,type:8,item:m,children:[],disabled:V1(s,m.id)};g[m.onlineState===1?"unshift":"push"](C)}}),f.children=[...f.children,...g]}else f.deviceList=[];if(f.children&&f.children.length>0){const g=await i7(e,f.children,o,{...f,parentType:p});if(g){const m=g.deviceList;f.childrenDeviceList.push(...m),l.push(...m);const _=new Map,b=[];f.childrenDeviceList.forEach(C=>{_.has(C.id)||(_.set(C.id,C),C.onlineState===1&&b.push(C))}),f.childrenDeviceList=Array.from(_.values()),f.onlineCountList=b,h.children=g.children}}Object.keys(h).length&&(f.type===8||h.children.length||!a&&(h.companyName||h.orgName))&&c.push({...f,...h})}return{children:c,deviceList:R1(l)}}function tXe(e){const n=t.ref(e.props),o=t.ref(e.params.selectFilterType),r=t.ref(""),i=t.ref([]),a=t.ref([]);async function s(){var c;n.value.getData&&((c=n.value.getData())==null||c.then(async d=>{if(!d)return;const f=await wL(r.value,[...d],{disabledIds:n.value.disableDataList.map(u=>`disabled:${u.deviceId}`).toString(),hideDevice:n.value.hideDevice,showOnlineOnly:n.value.showOnlineOnly,hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});i.value=f.children,a.value=f.deviceList,e.params.setViewDepartmentList(f.children)}))}function l(){r.value.length&&s()}return{getData:s,query:r,selectChange:l,treeDeviceList:a,treeDataList:i}}const nXe={class:"text-[#f00] flex flex-col h-full px-2"},oXe={class:"flex items-center"},rXe={class:"!w-[114px]"},aXe={class:"text-hy-text-main"},iXe={class:"flex-grow w-0"},sXe={class:"flex-shrink-0 mr-2 flex h-full items-center justify-center"},lXe={key:0,class:"w-full flex cursor_pointer"},cXe={class:"flex items-center flex-grow w-0"},dXe={class:"max-w-full overflow-ellipsis overflow-hidden"},uXe={class:"flex-shrink-0 mr-2 ml-1"},fXe={class:"text-hy-main"},s7=t.defineComponent({__name:"device-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},hideDevice:{type:Boolean,default:!1},showOnlineOnly:{type:Boolean,default:!1},disableDataList:{default:()=>[]},returnDisableDevice:{type:Boolean,default:!0}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(e,{expose:n,emit:o}){const r=e,i=o,{currentDepartment:a,currentDevice:s,currentDeviceDelete:l,elementRef:c,selectedData:d,treeComponentHeight:f,treeComponentRef:u,viewDepartmentList:p,watchTreeComponentHeight:h,setChecked:g,setCheckedKeys:m,setSelectedList:_,selectFilterList:b,selectFilterType:C,getInputPlaceholder:w,setViewDepartmentList:E,checkContentSlotsType:N,otherContentSlotsType:S}=rg({emit:i,props:r}),{getData:v,query:x,selectChange:T,treeDeviceList:D,treeDataList:V}=tXe({emit:i,props:r,params:{selectFilterType:C,setViewDepartmentList:E}});return t.watch(()=>r.showOnlineOnly,()=>{v()}),n({setCheckedKeys:m,setSelectedList:_,setChecked:g}),t.onMounted(()=>{h(),r.fuzzySearch?(b.value=[{label:le("department"),value:null,placeholder:"设备名称,部门名称镜像筛选"}],C.value=null):(b.value=[{label:le("department"),value:1,placeholder:le("filterByDepartmentName")}],r.hideDevice||b.value.push({label:le("equipment"),value:3,placeholder:le("filterByDeviceNumberAndDeviceName")}),C.value=b.value[0].value),r.defaultGetData||v()}),(R,q)=>{const K=t.resolveComponent("el-option"),G=t.resolveComponent("el-select"),I=t.resolveComponent("svg-icon"),P=t.resolveComponent("el-button"),M=t.resolveComponent("el-input"),O=t.resolveComponent("el-tooltip");return t.openBlock(),t.createElementBlock("div",nXe,[t.createElementVNode("div",oXe,[t.createVNode(M,{modelValue:t.unref(x),"onUpdate:modelValue":q[1]||(q[1]=$=>t.isRef(x)?x.value=$:null),placeholder:t.unref(w),class:"my-2",clearable:"",size:"small",onClear:t.unref(v),onKeyup:t.withKeys(t.unref(v),["enter"])},t.createSlots({append:t.withCtx(()=>[t.createElementVNode("div",aXe,[t.createVNode(P,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:t.unref(v)},{default:t.withCtx(()=>[t.createVNode(I,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[r.fuzzySearch?void 0:{name:"prepend",fn:t.withCtx(()=>[t.createElementVNode("div",rXe,[t.createVNode(G,{modelValue:t.unref(C),"onUpdate:modelValue":q[0]||(q[0]=$=>t.isRef(C)?C.value=$:null),class:"!m-0",size:"small",onChange:t.unref(T)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(b),($,F)=>(t.openBlock(),t.createBlock(K,{key:`${F}_selectFilterList`,label:$.label,value:$.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),t.renderSlot(R.$slots,"below-the-input"),t.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[t.createVNode(og,{ref_key:"treeComponentRef",ref:u,"item-type":3,"item-select-param":"deviceId","highlight-selected":r.highlightSelected,"item-size":r.itemSize,"data-list":t.unref(p),height:t.unref(f),"check-strictly":r.checkStrictly,"show-checkbox":r.showCheckbox,"parent-checkbox":r.parentCheckbox,"show-radio":r.showRadio,"default-checked-list":r.defaultCheckedList,"show-radio-button":r.showRadioButton,"show-checkbox-button":r.showCheckboxButton,onOnCurrentDepartment:t.unref(a),onOnCurrent:t.unref(s),onOnCurrentDelete:t.unref(l),onOnSelectedData:t.unref(d)},{"check-content":t.withCtx(({row:$})=>[t.renderSlot(R.$slots,"check-content",t.normalizeProps(t.guardReactiveProps({row:$}))),t.unref(N)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([{"text-hy-text-main":$.onlineState===1},"w-full flex h-full"])},[t.createElementVNode("div",iXe,[t.createVNode(n7,{device:$},null,8,["device"])]),t.createVNode(O,{"open-delay":1e3,class:"item",content:t.unref(le)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",sXe,[t.createVNode(I,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})],512),[[t.vShow,$.todayFile]])]),_:2},1032,["content"])],2))]),"other-content":t.withCtx(({row:$})=>[t.renderSlot(R.$slots,"other-content",t.normalizeProps(t.guardReactiveProps({row:$}))),t.unref(S)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",lXe,[t.createVNode(O,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:$.companyName||$.groupName||$.orgName},{default:t.withCtx(()=>[t.createElementVNode("div",cXe,[t.createElementVNode("span",dXe,t.toDisplayString($.companyName||$.groupName||$.orgName),1),t.withDirectives(t.createElementVNode("span",uXe,[t.createTextVNode(" ("),t.createElementVNode("span",fXe,t.toDisplayString($.onlineCountList.length),1),t.createTextVNode("/"+t.toDisplayString($.childrenDeviceList.length)+") ",1)],512),[[t.vShow,!r.hideDevice]])])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","default-checked-list","show-radio-button","show-checkbox-button","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function pXe(e){const n=t.ref(e.props),o=t.ref(e.params.selectFilterType),r=t.ref(""),i=t.ref([]);async function a(){var l;n.value.getData&&((l=n.value.getData())==null||l.then(async c=>{if(!c)return;const d=await a7(r.value,[...c],{disabledIds:n.value.disableDataList.map(f=>`disabled:${f.id}`).toString(),hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});i.value=d.children,e.params.setViewDepartmentList(i.value)}))}function s(){r.value.length&&a()}return{getData:a,query:r,selectChange:s}}const hXe={class:"text-[#f00] flex flex-col h-full px-2"},mXe={class:"flex items-center"},gXe={class:"!w-[114px]"},yXe={class:"text-hy-text-main"},_Xe={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},bXe={class:"flex-grow w-0 flex items-center mr-1"},wXe={class:"overflow-ellipsis overflow-hidden mx-1"},CXe={class:"flex-shrink-0 flex items-center"},EXe={key:0,class:"w-full"},kXe={class:"w-full h-full flex items-center"},vXe={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},SXe={class:"flex-shrink-0 text-xs ml-1 mx-2 text-hy-main"},NXe=t.defineComponent({__name:"user-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(e,{expose:n,emit:o}){const r=e,i=o,{currentDepartment:a,currentDevice:s,currentDeviceDelete:l,elementRef:c,selectedData:d,treeComponentHeight:f,treeComponentRef:u,viewDepartmentList:p,watchTreeComponentHeight:h,setChecked:g,setCheckedKeys:m,setSelectedList:_,selectFilterList:b,selectFilterType:C,getInputPlaceholder:w,setViewDepartmentList:E,checkContentSlotsType:N,otherContentSlotsType:S}=rg({emit:i,props:r}),{getData:v,query:x,selectChange:T}=pXe({emit:i,props:r,params:{selectFilterType:C,setViewDepartmentList:E}});return n({setCheckedKeys:m,setSelectedList:_,setChecked:g}),t.onMounted(()=>{h(),r.fuzzySearch?(b.value=[{label:le("department"),value:null,placeholder:"人员名称,群组名称镜像筛选"}],C.value=null):(b.value=[{label:le("department"),value:1,placeholder:le("filterByDepartmentName")}],r.hideDevice||b.value.push({label:le("equipment"),value:5,placeholder:le("filterByPersonnelName")}),C.value=b.value[0].value),r.defaultGetData||v()}),(D,V)=>{const R=t.resolveComponent("el-option"),q=t.resolveComponent("el-select"),K=t.resolveComponent("svg-icon"),G=t.resolveComponent("el-button"),I=t.resolveComponent("el-input"),P=t.resolveComponent("el-tooltip");return t.openBlock(),t.createElementBlock("div",hXe,[t.createElementVNode("div",mXe,[t.createVNode(I,{modelValue:t.unref(x),"onUpdate:modelValue":V[1]||(V[1]=M=>t.isRef(x)?x.value=M:null),placeholder:t.unref(w),class:"my-2",clearable:"",size:"small",onClear:t.unref(v),onKeyup:t.withKeys(t.unref(v),["enter"])},t.createSlots({append:t.withCtx(()=>[t.createElementVNode("div",yXe,[t.createVNode(G,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:t.unref(v)},{default:t.withCtx(()=>[t.createVNode(K,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[r.fuzzySearch?void 0:{name:"prepend",fn:t.withCtx(()=>[t.createElementVNode("div",gXe,[t.createVNode(q,{modelValue:t.unref(C),"onUpdate:modelValue":V[0]||(V[0]=M=>t.isRef(C)?C.value=M:null),class:"!m-0",size:"small",onChange:t.unref(T)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(b),(M,O)=>(t.openBlock(),t.createBlock(R,{key:`${O}_selectFilterList`,label:M.label,value:M.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),t.renderSlot(D.$slots,"below-the-input"),t.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[t.createVNode(og,{ref_key:"treeComponentRef",ref:u,"item-type":5,"highlight-selected":r.highlightSelected,"item-size":r.itemSize,"data-list":t.unref(p),height:t.unref(f),"check-strictly":r.checkStrictly,"show-checkbox":r.showCheckbox,"parent-checkbox":r.parentCheckbox,"show-radio":r.showRadio,"show-radio-button":r.showRadioButton,"show-checkbox-button":r.showCheckboxButton,"default-checked-list":r.defaultCheckedList,onOnCurrentDepartment:t.unref(a),onOnCurrent:t.unref(s),onOnCurrentDelete:t.unref(l),onOnSelectedData:t.unref(d)},{"check-content":t.withCtx(({row:M})=>[t.renderSlot(D.$slots,"check-content",t.normalizeProps(t.guardReactiveProps({row:M}))),t.unref(N)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",_Xe,[t.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:M.name},{default:t.withCtx(()=>[t.createElementVNode("div",bXe,[t.createVNode(K,{name:"icon-user",class:"!w-[14px] !h-[14px]"}),t.createElementVNode("div",wXe,[t.createElementVNode("span",null,t.toDisplayString(M.name),1)])])]),_:2},1032,["content"]),M.todayFile?(t.openBlock(),t.createBlock(P,{key:0,class:"item","show-after":1e3,content:t.unref(le)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:t.withCtx(()=>[t.createElementVNode("div",CXe,[t.createVNode(K,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})])]),_:1},8,["content"])):t.createCommentVNode("",!0)]))]),"other-content":t.withCtx(({row:M})=>[t.renderSlot(D.$slots,"other-content",t.normalizeProps(t.guardReactiveProps({row:M}))),t.unref(S)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",EXe,[t.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:M.companyName||M.orgName},{default:t.withCtx(()=>[t.createElementVNode("div",kXe,[t.createElementVNode("div",vXe,[t.createElementVNode("span",null,t.toDisplayString(M.companyName||M.orgName),1)]),t.createElementVNode("span",SXe,"("+t.toDisplayString(M.childrenDeviceList.length||0)+")",1)])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function xXe(e){const n=t.ref(e.props),o=t.ref(e.params.selectFilterType),r=t.ref(""),i=t.ref([]);async function a(){var l;n.value.getData&&((l=n.value.getData())==null||l.then(async c=>{if(!c)return;const d=await r7(r.value,[...c],{hideDevice:n.value.hideDevice,hideOrgNoData:n.value.hideOrgNoData,hideGroup:n.value.hideGroup,selectFilterType:o.value});console.log("res",d),i.value=d.children,e.params.setViewDepartmentList(i.value)}))}function s(){r.value.length&&a()}return{getData:a,query:r,selectChange:s}}const TXe={class:"text-[#f00] flex flex-col h-full px-2"},LXe={class:"flex items-center"},OXe={class:"!w-[114px]"},$Xe={class:"text-hy-text-main"},DXe={key:0,class:"flex items-center w-full h-full click-box"},PXe={class:"flex-grow w-0 h-full flex items-center text-hy-text-main"},IXe={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},MXe={class:"text-hy-text-main"},AXe={class:"flex-shrink-0 ml-1 mr-2 h-full flex items-center justify-center"},VXe={key:0,class:"w-full h-full"},RXe={class:"w-full h-full flex items-center"},BXe={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},FXe=t.defineComponent({__name:"org-group-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},hideGroup:{type:Boolean,default:!1},hideDevice:{type:Boolean,default:!1}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(e,{expose:n,emit:o}){const r=e,i=o,{currentDepartment:a,currentDevice:s,currentDeviceDelete:l,elementRef:c,selectedData:d,treeComponentHeight:f,treeComponentRef:u,viewDepartmentList:p,watchTreeComponentHeight:h,setChecked:g,setCheckedKeys:m,setSelectedList:_,selectFilterList:b,selectFilterType:C,getInputPlaceholder:w,setViewDepartmentList:E,checkContentSlotsType:N,otherContentSlotsType:S}=rg({emit:i,props:r}),{getData:v,query:x,selectChange:T}=xXe({emit:i,props:r,params:{selectFilterType:C,setViewDepartmentList:E}});return n({setCheckedKeys:m,setSelectedList:_,setChecked:g}),t.onMounted(()=>{h(),r.fuzzySearch?(b.value=[{label:le("department"),value:null,placeholder:"设备名称,群组名称镜像筛选"}],C.value=null):(b.value=[{label:le("department"),value:1,placeholder:le("filterByDepartmentName")}],r.hideDevice||b.value.push({label:le("equipment"),value:3,placeholder:le("filterByDeviceNumberAndDeviceName")}),C.value=b.value[0].value),r.defaultGetData||v()}),(D,V)=>{const R=t.resolveComponent("el-option"),q=t.resolveComponent("el-select"),K=t.resolveComponent("svg-icon"),G=t.resolveComponent("el-button"),I=t.resolveComponent("el-input"),P=t.resolveComponent("el-tooltip");return t.openBlock(),t.createElementBlock("div",TXe,[t.createElementVNode("div",LXe,[t.createVNode(I,{modelValue:t.unref(x),"onUpdate:modelValue":V[1]||(V[1]=M=>t.isRef(x)?x.value=M:null),placeholder:t.unref(w),class:"my-2",clearable:"",size:"small",onClear:t.unref(v),onKeyup:t.withKeys(t.unref(v),["enter"])},t.createSlots({append:t.withCtx(()=>[t.createElementVNode("div",$Xe,[t.createVNode(G,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:t.unref(v)},{default:t.withCtx(()=>[t.createVNode(K,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[r.fuzzySearch?void 0:{name:"prepend",fn:t.withCtx(()=>[t.createElementVNode("div",OXe,[t.createVNode(q,{modelValue:t.unref(C),"onUpdate:modelValue":V[0]||(V[0]=M=>t.isRef(C)?C.value=M:null),class:"!m-0",size:"small",onChange:t.unref(T)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(b),(M,O)=>(t.openBlock(),t.createBlock(R,{key:`${O}_selectFilterList`,label:M.label,value:M.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),t.renderSlot(D.$slots,"below-the-input"),t.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[t.createVNode(og,{ref_key:"treeComponentRef",ref:u,"item-type":4,"highlight-selected":r.highlightSelected,"item-size":r.itemSize,"data-list":t.unref(p),height:t.unref(f),"check-strictly":r.checkStrictly,"show-checkbox":r.showCheckbox,"parent-checkbox":r.parentCheckbox,"show-radio":r.showRadio,"show-radio-button":r.showRadioButton,"show-checkbox-button":r.showCheckboxButton,"default-checked-list":r.defaultCheckedList,onOnCurrentDepartment:t.unref(a),onOnCurrent:t.unref(s),onOnCurrentDelete:t.unref(l),onOnSelectedData:t.unref(d)},{"check-content":t.withCtx(({row:M})=>[t.renderSlot(D.$slots,"check-content",t.normalizeProps(t.guardReactiveProps({row:M}))),t.unref(N)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",DXe,[t.createVNode(P,{class:"item",content:M.groupName,effect:"dark",placement:"bottom","show-after":1e3},{default:t.withCtx(()=>{var O;return[t.createElementVNode("div",PXe,[t.createElementVNode("div",IXe,[t.createElementVNode("span",MXe,t.toDisplayString(M.groupName),1)]),t.withDirectives(t.createElementVNode("span",{class:"flex-shrink-0 text-xs mr-2 ml-1 text-hy-main"},"("+t.toDisplayString(((O=M.deviceList)==null?void 0:O.length)||0)+")",513),[[t.vShow,!r.hideDevice]])])]}),_:2},1032,["content"]),t.createVNode(P,{class:"item",content:t.unref(le)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom","show-after":1e3},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",AXe,[t.createVNode(K,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})],512),[[t.vShow,M.todayFile]])]),_:2},1032,["content"])]))]),"other-content":t.withCtx(({row:M})=>[t.renderSlot(D.$slots,"other-content",t.normalizeProps(t.guardReactiveProps({row:M}))),t.unref(S)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",VXe,[M.type===3?(t.openBlock(),t.createBlock(n7,{key:0,device:M},null,8,["device"])):t.createCommentVNode("",!0),M.type!==3?(t.openBlock(),t.createBlock(P,{key:1,"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:M.companyName||M.orgName},{default:t.withCtx(()=>[t.createElementVNode("div",RXe,[t.createElementVNode("div",BXe,[t.createElementVNode("span",null,t.toDisplayString(M.companyName||M.orgName),1)])])]),_:2},1032,["content"])):t.createCommentVNode("",!0)]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function zXe(e){const n=t.ref(e.props),o=t.ref(e.params.selectFilterType),r=t.ref(""),i=t.ref([]);async function a(){var l;n.value.getData&&((l=n.value.getData())==null||l.then(async c=>{if(!c)return;const d=await wL(r.value,[...c],{disabledIds:n.value.disableDataList.map(f=>`disabled:${f.id}`).toString(),hideDevice:!0,selectFilterType:o.value});i.value=d.children,e.params.setViewDepartmentList(i.value)}))}function s(){r.value.length&&a()}return{getData:a,query:r,selectChange:s}}const UXe={class:"text-[#f00] flex flex-col h-full px-2"},jXe={class:"flex items-center"},WXe={class:"!w-[114px]"},HXe={class:"text-hy-text-main"},GXe={key:0,class:"w-full text-hy-text-main"},KXe={class:"w-full h-full flex items-center"},YXe={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},qXe={key:0,class:"w-full"},ZXe={class:"w-full h-full flex items-center"},JXe={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},l7=t.defineComponent({__name:"org-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(e,{expose:n,emit:o}){const r=e,i=o,{currentDepartment:a,currentDevice:s,currentDeviceDelete:l,elementRef:c,selectedData:d,treeComponentHeight:f,treeComponentRef:u,viewDepartmentList:p,watchTreeComponentHeight:h,setChecked:g,setCheckedKeys:m,setSelectedList:_,selectFilterList:b,selectFilterType:C,getInputPlaceholder:w,setViewDepartmentList:E,checkContentSlotsType:N,otherContentSlotsType:S}=rg({emit:i,props:r}),{getData:v,query:x,selectChange:T}=zXe({emit:i,props:r,params:{selectFilterType:C,setViewDepartmentList:E}});return n({setCheckedKeys:m,setSelectedList:_,setChecked:g}),t.onMounted(()=>{h(),r.fuzzySearch?(b.value=[{label:le("department"),value:null,placeholder:le("filterByDepartmentName")}],C.value=null):(b.value=[{label:le("department"),value:1,placeholder:le("filterByDepartmentName")}],C.value=b.value[0].value),r.defaultGetData||v()}),(D,V)=>{const R=t.resolveComponent("el-option"),q=t.resolveComponent("el-select"),K=t.resolveComponent("svg-icon"),G=t.resolveComponent("el-button"),I=t.resolveComponent("el-input"),P=t.resolveComponent("el-tooltip");return t.openBlock(),t.createElementBlock("div",UXe,[t.createElementVNode("div",jXe,[t.createVNode(I,{modelValue:t.unref(x),"onUpdate:modelValue":V[1]||(V[1]=M=>t.isRef(x)?x.value=M:null),placeholder:t.unref(w),class:"my-2",clearable:"",size:"small",onClear:t.unref(v),onKeyup:t.withKeys(t.unref(v),["enter"])},t.createSlots({append:t.withCtx(()=>[t.createElementVNode("div",HXe,[t.createVNode(G,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:t.unref(v)},{default:t.withCtx(()=>[t.createVNode(K,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[r.fuzzySearch?void 0:{name:"prepend",fn:t.withCtx(()=>[t.createElementVNode("div",WXe,[t.createVNode(q,{modelValue:t.unref(C),"onUpdate:modelValue":V[0]||(V[0]=M=>t.isRef(C)?C.value=M:null),class:"!m-0",size:"small",onChange:t.unref(T)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(b),(M,O)=>(t.openBlock(),t.createBlock(R,{key:`${O}_selectFilterList`,label:M.label,value:M.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),t.renderSlot(D.$slots,"below-the-input"),t.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[t.createVNode(og,{ref_key:"treeComponentRef",ref:u,"item-type":1,"highlight-selected":r.highlightSelected,"item-size":r.itemSize,"data-list":t.unref(p),height:t.unref(f),"check-strictly":r.checkStrictly,"show-checkbox":r.showCheckbox,"parent-checkbox":r.parentCheckbox,"show-radio":r.showRadio,"show-radio-button":r.showRadioButton,"show-checkbox-button":r.showCheckboxButton,"default-checked-list":r.defaultCheckedList,onOnCurrentDepartment:t.unref(a),onOnCurrent:t.unref(s),onOnCurrentDelete:t.unref(l),onOnSelectedData:t.unref(d)},{"check-content":t.withCtx(({row:M})=>[t.renderSlot(D.$slots,"check-content",t.normalizeProps(t.guardReactiveProps({row:M}))),t.unref(N)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",GXe,[t.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:M.companyName||M.orgName},{default:t.withCtx(()=>[t.createElementVNode("div",KXe,[t.createElementVNode("div",YXe,[t.createElementVNode("span",null,t.toDisplayString(M.companyName||M.orgName),1)])])]),_:2},1032,["content"])]))]),"other-content":t.withCtx(({row:M})=>[t.renderSlot(D.$slots,"other-content",t.normalizeProps(t.guardReactiveProps({row:M}))),t.unref(S)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",qXe,[t.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:M.companyName||M.orgName},{default:t.withCtx(()=>[t.createElementVNode("div",ZXe,[t.createElementVNode("div",JXe,[t.createElementVNode("span",null,t.toDisplayString(M.companyName||M.orgName),1)])])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function XXe(e){const n=t.ref(e.props),o=t.ref(e.params.selectFilterType),r=t.ref(""),i=t.ref([]);async function a(){var l;n.value.getData&&((l=n.value.getData())==null||l.then(async c=>{if(!c)return;const d=await i7(r.value,[...c],{disabledIds:n.value.disableDataList.map(f=>`disabled:${f.id}`).toString(),hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});console.log(d),i.value=d.children,e.params.setViewDepartmentList(i.value)}))}function s(){r.value.length&&a()}return{getData:a,query:r,selectChange:s}}const QXe={class:"text-[#f00] flex flex-col h-full px-2"},eQe={class:"flex items-center"},tQe={class:"!w-[114px]"},nQe={class:"text-hy-text-main"},oQe={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},rQe={class:"flex-grow w-0 flex items-center mr-1"},aQe={class:"overflow-ellipsis overflow-hidden mx-1"},iQe={class:"flex-shrink-0 flex items-center"},sQe={key:0,class:"w-full"},lQe={class:"w-full h-full flex items-center"},cQe={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},dQe={class:"flex-shrink-0 text-xs ml-1 mr-2 text-hy-main"},uQe=t.defineComponent({__name:"acquisition-station-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(e,{expose:n,emit:o}){const r=e,i=o,{currentDepartment:a,currentDevice:s,currentDeviceDelete:l,elementRef:c,selectedData:d,treeComponentHeight:f,treeComponentRef:u,viewDepartmentList:p,watchTreeComponentHeight:h,setChecked:g,setCheckedKeys:m,setSelectedList:_,selectFilterList:b,selectFilterType:C,getInputPlaceholder:w,setViewDepartmentList:E,checkContentSlotsType:N,otherContentSlotsType:S}=rg({emit:i,props:r}),{getData:v,query:x,selectChange:T}=XXe({emit:i,props:r,params:{selectFilterType:C,setViewDepartmentList:E}});return n({setCheckedKeys:m,setSelectedList:_,setChecked:g}),t.onMounted(()=>{h(),r.fuzzySearch?(b.value=[{label:le("department"),value:null,placeholder:"采集站名称,群组名称镜像筛选"}],C.value=null):(b.value=[{label:le("department"),value:1,placeholder:le("filterByDepartmentName")}],r.hideDevice||b.value.push({label:"采集站",value:8,placeholder:le("采集站名称进行筛选")}),C.value=b.value[0].value),r.defaultGetData||v()}),(D,V)=>{const R=t.resolveComponent("el-option"),q=t.resolveComponent("el-select"),K=t.resolveComponent("svg-icon"),G=t.resolveComponent("el-button"),I=t.resolveComponent("el-input"),P=t.resolveComponent("el-tooltip");return t.openBlock(),t.createElementBlock("div",QXe,[t.createElementVNode("div",eQe,[t.createVNode(I,{modelValue:t.unref(x),"onUpdate:modelValue":V[1]||(V[1]=M=>t.isRef(x)?x.value=M:null),placeholder:t.unref(w),class:"my-2",clearable:"",size:"small",onClear:t.unref(v),onKeyup:t.withKeys(t.unref(v),["enter"])},t.createSlots({append:t.withCtx(()=>[t.createElementVNode("div",nQe,[t.createVNode(G,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:t.unref(v)},{default:t.withCtx(()=>[t.createVNode(K,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[r.fuzzySearch?void 0:{name:"prepend",fn:t.withCtx(()=>[t.createElementVNode("div",tQe,[t.createVNode(q,{modelValue:t.unref(C),"onUpdate:modelValue":V[0]||(V[0]=M=>t.isRef(C)?C.value=M:null),class:"!m-0",size:"small",onChange:t.unref(T)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(b),(M,O)=>(t.openBlock(),t.createBlock(R,{key:`${O}_selectFilterList`,label:M.label,value:M.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),t.renderSlot(D.$slots,"below-the-input"),t.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[t.createVNode(og,{ref_key:"treeComponentRef",ref:u,"item-type":8,"highlight-selected":r.highlightSelected,"item-size":r.itemSize,"data-list":t.unref(p),height:t.unref(f),"check-strictly":r.checkStrictly,"show-checkbox":r.showCheckbox,"parent-checkbox":r.parentCheckbox,"show-radio":r.showRadio,"show-radio-button":r.showRadioButton,"show-checkbox-button":r.showCheckboxButton,"default-checked-list":r.defaultCheckedList,onOnCurrentDepartment:t.unref(a),onOnCurrent:t.unref(s),onOnCurrentDelete:t.unref(l),onOnSelectedData:t.unref(d)},{"check-content":t.withCtx(({row:M})=>[t.renderSlot(D.$slots,"check-content",t.normalizeProps(t.guardReactiveProps({row:M}))),t.unref(N)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",oQe,[t.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:M.sname},{default:t.withCtx(()=>[t.createElementVNode("div",rQe,[t.createVNode(K,{name:"menu-acquisition-station-2",class:"!w-[20px] !h-[20px]"}),t.createElementVNode("div",aQe,[t.createElementVNode("span",null,t.toDisplayString(M.sname),1)])])]),_:2},1032,["content"]),M.todayFile?(t.openBlock(),t.createBlock(P,{key:0,class:"item","show-after":1e3,content:t.unref(le)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:t.withCtx(()=>[t.createElementVNode("div",iQe,[t.createVNode(K,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})])]),_:1},8,["content"])):t.createCommentVNode("",!0)]))]),"other-content":t.withCtx(({row:M})=>[t.renderSlot(D.$slots,"other-content",t.normalizeProps(t.guardReactiveProps({row:M}))),t.unref(S)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",sQe,[t.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:M.companyName||M.orgName},{default:t.withCtx(()=>[t.createElementVNode("div",lQe,[t.createElementVNode("div",cQe,[t.createElementVNode("span",null,t.toDisplayString(M.companyName||M.orgName),1)]),t.createElementVNode("span",dQe,"("+t.toDisplayString(M.childrenDeviceList.length||0)+")",1)])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function fQe(e){return xt.post({url:"/file/presignedUrl",data:{fileName:Q9(1)+e.name},isFormData:!0})}function pQe(e){return new Promise(n=>{fQe(e).then(({data:o})=>{xt.put({url:o.url,data:e,isFileUpload:!0,xAmzAcl:!0,fileType:null}).then(()=>{n(o)})})})}function hQe(e){const n=e.emit,o=t.ref(null),r=t.ref(null),i=t.ref(!1),a=t.ref({typeName:""}),s=t.reactive({typeName:[{required:!0,message:le("pleaseEnterTheDepartmentTypeName"),trigger:"blur"}]});async function l(g){if(!(g.size/1024/1024<2))return ft.error(le("imageUploadFailedLogoSizeWithin2M")),!1;const b={img:await o.value.getBlobToData(g),outputType:"png",canScale:!0,fixedBox:!0,infoTrue:!1,autoCropWidth:44,autoCropHeight:44,centerBox:!1,original:!0,fixed:!1};await o.value.onShowModal(b);const C=await o.value.getCropBlob();return c(C),!1}async function c(g){const{key:m}=await pQe(g);d(g,_=>{f(_,m)})}function d(g,m){const _=new FileReader;_.onload=function(b){m(b.target.result)},_.readAsDataURL(g)}function f(g,m){a.value.icon=g,a.value.iconKey=m}function u(){var g;(g=r.value)==null||g.validate(async m=>{m&&(a.value.icon||(a.value.iconKey=null),(await Uxe({...a.value,icon:null})).code===200&&(n("on-submit"),i.value=!1,ft.success(le("operationSuccessful"))))})}function p(){i.value=!1}function h(g){g?a.value={...g}:a.value={icon:null,typeName:null},i.value=!0}return{hyVueCropperRef:o,formRef:r,visible:i,form:a,rules:s,beforeAvatarUpload:l,handleHttpRequestImg:c,submit:u,onClose:p,show:h,setHeadImg:f}}const mQe={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"},gQe={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},yQe={key:0},_Qe={key:1},bQe={class:"absolute right-[10px]"},wQe={class:"dialog_body p-[20px_30px]"},CQe={class:"overflow-hidden"},EQe={class:"flex items-center justify-center pr-2"},kQe={class:"click-box h-[60px] w-[60px] rounded-[6px] relative overflow-hidden duration-500 hover:border-hy-main hover:shadow-[0_0_10px_0] hover:shadow-hy-main bg-hy-page-bg-2 text-hy-text-secondary flex items-center justify-center border border-hy-border-2 group"},vQe={class:"text-hy-main group-hover:opacity-100 font-bold absolute top-[50%] left-[50%] text-xs -translate-y-1/2 -translate-x-1/2 opacity-0 duration-500 leading-[20px]"},SQe={class:"flex-grow lh_20 text-hy-text-secondary text-xs ml-2"},NQe={class:"my-1"},xQe={class:"form-label"},TQe={class:"text-right mt-[10px]"},LQe=Po(t.defineComponent({__name:"add-department-type",emits:["on-submit"],setup(e,{expose:n,emit:o}){const r=o,{hyVueCropperRef:i,formRef:a,visible:s,form:l,rules:c,beforeAvatarUpload:d,handleHttpRequestImg:f,submit:u,onClose:p,show:h,setHeadImg:g}=hQe({emit:r});return n({show:h}),(m,_)=>{const b=t.resolveComponent("svg-icon"),C=t.resolveComponent("el-image"),w=t.resolveComponent("el-upload"),E=t.resolveComponent("el-form-item"),N=t.resolveComponent("el-input"),S=t.resolveComponent("el-form"),v=t.resolveComponent("el-button"),x=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(x,{"model-value":t.unref(s),"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"w-[340px] !p-0 border-[0] shadow-[0_0_0_0]"},{default:t.withCtx(()=>[t.createVNode(Rs,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:t.withCtx(()=>[t.createElementVNode("div",mQe,[t.createElementVNode("div",gQe,[t.createElementVNode("span",null,[t.unref(l).id?(t.openBlock(),t.createElementBlock("span",yQe,t.toDisplayString(t.unref(le)("editDepartmentType")),1)):(t.openBlock(),t.createElementBlock("span",_Qe,t.toDisplayString(t.unref(le)("addDepartmentType")),1))]),t.createElementVNode("div",bQe,[t.createVNode(b,{width:"20",height:"20",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:t.withModifiers(t.unref(p),["stop"])},null,8,["onClick"])])]),t.createElementVNode("div",wQe,[t.createElementVNode("div",CQe,[t.createVNode(S,{ref_key:"formRef",ref:a,"label-position":"top",model:t.unref(l),rules:t.unref(c),"label-width":"0px"},{default:t.withCtx(()=>[t.createVNode(E,{prop:"companyName"},{label:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("departmentIcon")),1)])]),default:t.withCtx(()=>[t.createElementVNode("div",EQe,[t.createVNode(w,{class:"flex items-center justify-center group relative overflow-hidden",accept:".png,.jpg,.gif","before-upload":t.unref(d),"http-request":t.unref(f),action:"","show-file-list":!1},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.withDirectives(t.createElementVNode("div",{class:"group-hover:bottom-0 bg-hy-page-bg-1/50 absolute z-[3] left-[0] w-full h-[23px] rounded-[0_0_7px_7px] text-hy-danger duration-500 bottom-[-40%] flex items-center justify-center",onClick:_[0]||(_[0]=t.withModifiers(T=>t.unref(g)(null),["stop"]))},[t.createVNode(b,{name:"sys-button-delete",width:"16",height:"16"})],512),[[t.vShow,t.unref(l).icon]])]),t.createElementVNode("div",kQe,[t.unref(l).icon?(t.openBlock(),t.createBlock(C,{key:0,fit:"contain",class:"w-[44px] h-[44px]",src:t.unref(l).icon},null,8,["src"])):(t.openBlock(),t.createBlock(b,{key:1,width:"70%",height:"70%",name:"sys-icon-user"})),t.createElementVNode("span",vQe,t.toDisplayString(t.unref(le)("upload")),1)])]),_:1},8,["before-upload","http-request"]),t.createElementVNode("div",SQe,[t.createElementVNode("div",null,t.toDisplayString(t.unref(le)("pleaseUploadDepartmentTypeIcon")),1),t.createElementVNode("div",NQe,t.toDisplayString(t.unref(le)("iconSize44px"))+"*44px ",1),t.createElementVNode("div",null,t.toDisplayString(t.unref(le)("ifNoIconUseTheDefaultIcon")),1)])])]),_:1}),t.createVNode(E,{prop:"typeName"},{label:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("span",xQe,t.toDisplayString(t.unref(le)("departmentTypeName")),1)])]),default:t.withCtx(()=>[t.createVNode(N,{modelValue:t.unref(l).typeName,"onUpdate:modelValue":_[1]||(_[1]=T=>t.unref(l).typeName=T),placeholder:t.unref(le)("pleaseEnterTheDepartmentTypeName"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})]),_:1},8,["model","rules"])]),t.createElementVNode("div",TQe,[t.createVNode(v,{type:"primary",class:"buttonBox",onClick:t.unref(p)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("close-0")),1)]),_:1},8,["onClick"]),t.createVNode(v,{class:"button_function buttonBox",onClick:t.unref(u)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("save-0")),1)]),_:1},8,["onClick"])])])])]),_:1}),t.createVNode(rB,{ref_key:"hyVueCropperRef",ref:i},null,512)]),_:1},8,["model-value"])}}}),[["__scopeId","data-v-621e8a6e"]]),OQe={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},$Qe=[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768a384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0a48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"},null,-1)];function DQe(e,n){return t.openBlock(),t.createElementBlock("svg",OQe,[...$Qe])}const CL={name:"ep-warning",render:DQe};function PQe(e){return xt.post({url:"scrollCheck/scp/page",data:e,isFormData:!0})}function IQe({props:e}){const n=t.ref(null),o=t.ref([]),r=t.ref(1),i=t.ref(!0),a=t.ref(10),s=t.ref(0),l=t.ref(null),c=t.ref(!1),d=t.ref(!1),f=t.computed(()=>d.value||c.value),u=t.ref({lat:"",lng:""}),p=t.computed(()=>{const D=Number(u.value.lat);return D<=90&&D>=-90?D:"内容错误"}),h=t.computed(()=>{const D=Number(u.value.lng);return D<=180&&D>=-180?D:"内容错误"});function g(){p.value&&p.value!=="内容错误"&&h&&h.value!=="内容错误"&&m(u.value)}function m(D){if(D.lng&&D.lat){e.h.panTo(e.map,{lng:D.lng,lat:D.lat}),e.h.setZoom(e.map,18);const V=e.h.marker(e.map,[D.lat,D.lng],{icon:'<svg aria-hidden="true" class="animation-marker" style="width: 40px; height: 60px;"><use data-v-19e5a669="" xlink:href="#icon-base-trajectory-personnel"></use></svg>',zIndexOffset:100,iconAnchor:[-20,-30]});setTimeout(()=>{e.h.removeMarker(e.map,V)},3e3),w(1)}}function _(D,V){return R=>{if(!i.value)return!1;i.value=!1,setTimeout(()=>{D(R),i.value=!0},V)}}function b(){console.log("触发加载"),!c.value&&(d.value=!0,s.value++,t.nextTick(()=>{E()}))}function C(){n.value=null,u.value={lat:"",lng:""},w()}function w(D){r.value!==5&&(o.value=[],s.value=1,c.value=!1,d.value=!1,console.log("重置数据",D),t.nextTick(()=>{D!==1&&E()}))}function E(){n.value&&n.value.length?r.value===1?N():r.value===4?v():r.value===6&&S():w(1)}async function N(){const D=await e.poi.placeSearch({keywords:n.value,offset:a.value,page:s.value});if(console.log(D),D){const V=D,R=[];for(let q=0;q<V.length;q++){const K=V[q];R.push({...K.location,id:CIe(),address:K.address||K.name,title:x(K.name)})}t.nextTick(()=>{d.value=!1,o.value.push(...R),R.length<a.value&&(s.value+=1,N())})}else d.value=!1,c.value=!0,ft.error("没有搜索到内容")}async function S(){const D=await PQe({page:s.value-1,size:10,query:n.value});if(D.code===200){const V=D.data.content,R=[];for(let q=0;q<V.length;q++){const K=V[q];R.push({id:K.id,address:K.address||K.pointName,...K,title:x(K.pointName)})}t.nextTick(()=>{d.value=!1,o.value.push(...R),s.value===D.data.totalPages&&(c.value=!0)})}}async function v(){const D=await zxe({page:s.value-1,size:10,query:n.value});if(D.code===200){const V=D.data.content,R=[];for(let q=0;q<V.length;q++){const K=V[q];R.push({id:K.id,address:K.address||K.companyName,...K,title:x(K.companyName)})}t.nextTick(()=>{d.value=!1,o.value.push(...R),s.value===D.data.totalPages&&(c.value=!0)})}}function x(D){const V=[];for(let R=0;R<D.length;R++){const q=D[R],K=n.value.indexOf(q),G={content:D[R]};K===-1?G.type=1:G.type=2,V.push(G)}return V}function T(){if(r.value===1)return"请输入地址";if(r.value===4)return"请输入部门名称";if(r.value===6)return"请输入巡查点"}return{$t:le,searchAddress:n,searchResultList:o,searchAddressType:r,valid:i,size:a,page:s,nextPageParams:l,noMore:c,loading:d,disabled:f,mapJumpLocationFn:m,throttle:_,load:b,resetFn:w,searchAddressTypeFn:C,placeholderFn:T,inputSearch:u,showSearchLat:p,showSearchLng:h,searchLngLat:g}}const MQe={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"},AQe=["src"],VQe={class:"ml_10 ml-[10px]",style:{width:"calc(100% - 34px)"}},RQe={class:"title fs_14 c_fff over_one_line fw_600 text-[14px] text-hy-text-main truncate font-bold"},BQe={class:"address over_one_line fs_12 c_fff truncate text-[12px] text-hy-text-main"},FQe={class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"},zQe={class:"ml_20 ml-[20px]"},UQe=Po(t.defineComponent({__name:"map-search-place-item",props:{mapJumpLocationFn:{type:Function,default:()=>null},index:{default:null},searchAddressType:{default:1},source:{default:()=>{}}},setup(e){const n=e,{mapJumpLocationFn:o,index:r,searchAddressType:i,source:a}=n;return(s,l)=>{const c=t.resolveComponent("svg-icon");return t.openBlock(),t.createElementBlock("li",{class:"clickBox css-text-no-select cursor-pointer",onClick:l[0]||(l[0]=d=>t.unref(o)(t.unref(a)))},[t.unref(i)===1?(t.openBlock(),t.createBlock(c,{key:0,name:"base-maplocation"})):t.unref(i)===4?(t.openBlock(),t.createElementBlock("div",MQe,[t.createElementVNode("img",{src:t.unref(a).orgTypeIcon,class:"w-full h-full"},null,8,AQe)])):t.unref(i)===6?(t.openBlock(),t.createElementBlock("div",{key:2,style:t.normalizeStyle([{width:"26px",height:"26px"},{backgroundColor:t.unref(a).color}]),class:"el-markerImgBox rounded-full flex-shrink-0"},null,4)):t.createCommentVNode("",!0),t.createElementVNode("div",VQe,[t.createElementVNode("div",RQe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a).title,(d,f)=>(t.openBlock(),t.createElementBlock("span",{key:f,style:t.normalizeStyle({color:d.type===2?"var(--hy-text-primary)":"var(--hy-text-secondary)"})},t.toDisplayString(d.content),5))),128))]),t.createElementVNode("div",BQe,t.toDisplayString(t.unref(a).address),1),t.createElementVNode("div",FQe,[t.createElementVNode("span",null,"经度:"+t.toDisplayString(t.unref(a).lat),1),t.createElementVNode("span",zQe,"维度:"+t.toDisplayString(t.unref(a).lng),1)])])])}}}),[["__scopeId","data-v-7d1ddd51"]]),jQe=e=>(t.pushScopeId("data-v-5856b649"),e=e(),t.popScopeId(),e),WQe={style:{display:"inline-block","flex-direction":"column",width:"300px"},class:"search_lightColor pos_r relative"},HQe={class:"r-f flex"},GQe={class:"flex",style:{width:"calc(100% - 42px)"}},KQe={key:1,class:"w-[58%] flex justify-between ml-[4px]"},YQe={class:"flex flex-col leading-[20px] ml-[10px]"},qQe=jQe(()=>t.createElementVNode("span",{class:"text-[14px] font-[600] text-hy-text-main mb-[5px]"},"填写经纬度",-1)),ZQe={class:"text-[12px] text-hy-text-secondary"},JQe={class:"text-[12px] text-hy-text-secondary"},XQe={key:2,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},QQe={key:3,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},c7=Po(t.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(e){const n=e,{$t:o,searchAddressType:r,showSearchLat:i,showSearchLng:a,inputSearch:s,searchAddressTypeFn:l,searchAddress:c,searchResultList:d,resetFn:f,loading:u,noMore:p,mapJumpLocationFn:h,placeholderFn:g,load:m,throttle:_,searchLngLat:b}=IQe({props:n});return t.onMounted(()=>{var C;r.value=(C=n.searchTypes[0])==null?void 0:C.value}),(C,w)=>{const E=t.resolveComponent("el-option"),N=t.resolveComponent("el-select"),S=t.resolveComponent("el-input"),v=t.resolveComponent("svg-icon");return t.openBlock(),t.createElementBlock("div",WQe,[t.createElementVNode("div",HQe,[t.createElementVNode("div",GQe,[t.createVNode(N,{modelValue:t.unref(r),"onUpdate:modelValue":w[0]||(w[0]=x=>t.isRef(r)?r.value=x:null),style:{width:"38%",border:"1px solid var(--hy-border-2)","box-sizing":"border-box","border-radius":"6px","font-size":"12px"},placeholder:"请选择",onChange:t.unref(l)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(C.searchTypes,x=>(t.openBlock(),t.createBlock(E,{key:x.value,value:x.value,label:x.label},null,8,["value","label"]))),128))]),_:1},8,["modelValue","onChange"]),t.unref(r)!==5?(t.openBlock(),t.createBlock(S,{key:0,modelValue:t.unref(c),"onUpdate:modelValue":w[1]||(w[1]=x=>t.isRef(c)?c.value=x:null),clearable:"",style:{width:"58%",border:"1px solid var(--hy-border-2)","box-sizing":"border-box","border-radius":"6px","margin-left":"4px"},placeholder:t.unref(g)(),onInput:w[2]||(w[2]=t.unref(_)(t.unref(f),1e3))},null,8,["modelValue","placeholder"])):(t.openBlock(),t.createElementBlock("div",KQe,[t.createVNode(S,{modelValue:t.unref(s).lng,"onUpdate:modelValue":w[3]||(w[3]=x=>t.unref(s).lng=x),placeholder:"经度",class:"!w-[47.5%]",clearable:"",onInput:w[4]||(w[4]=x=>t.unref(q3)(t.unref(s),"lng"))},null,8,["modelValue"]),t.createVNode(S,{modelValue:t.unref(s).lat,"onUpdate:modelValue":w[5]||(w[5]=x=>t.unref(s).lat=x),placeholder:"纬度",class:"!w-[47.5%]",clearable:"",onInput:w[6]||(w[6]=x=>t.unref(q3)(t.unref(s),"lat"))},null,8,["modelValue"])]))]),t.createElementVNode("div",{class:"searchBox centerBox cursor-pointer flex items-center justify-center",style:{"flex-shrink":"0",display:"flex"},onClick:w[7]||(w[7]=(...x)=>t.unref(f)&&t.unref(f)(...x))},[t.createVNode(v,{name:"base-search","class-name":"w-[16px] h-[16px] text-hy-text-main"})])]),t.unref(d).length?(t.openBlock(),t.createBlock(t.unref(T$),{key:0,"infinite-scroll-disabled":"disabled",class:"filterContentList",style:{height:"400px","overflow-y":"auto"},"data-key":"id","data-sources":t.unref(d),"data-component":UQe,keeps:10,"extra-props":{mapJumpLocationFn:t.unref(h),searchAddressType:t.unref(r)},"estimate-size":88,onTobottom:t.unref(m)},null,8,["data-sources","extra-props","onTobottom"])):t.createCommentVNode("",!0),t.unref(r)===5?(t.openBlock(),t.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:w[8]||(w[8]=(...x)=>t.unref(b)&&t.unref(b)(...x))},[t.createVNode(v,{name:"base-maplocation","class-name":"w-[26px] h-[26px] ml-[10px]"}),t.createElementVNode("div",YQe,[qQe,t.createElementVNode("span",ZQe,[t.createTextVNode("经度:"),t.createElementVNode("span",{class:t.normalizeClass(t.unref(a)==="内容错误"?"text-hy-danger":"")},t.toDisplayString(t.unref(a)||"请输入经度"),3)]),t.createElementVNode("span",JQe,[t.createTextVNode("纬度:"),t.createElementVNode("span",{class:t.normalizeClass(t.unref(i)==="内容错误"?"text-hy-danger":"")},t.toDisplayString(t.unref(i)||"请输入纬度"),3)])])])):t.createCommentVNode("",!0),t.unref(u)?(t.openBlock(),t.createElementBlock("p",XQe," 加载中... ")):t.createCommentVNode("",!0),t.unref(p)?(t.openBlock(),t.createElementBlock("p",QQe," 没有更多了 ")):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-5856b649"]]);function eet(e){return xt.post({url:"mapRail/findAllWithDevice",data:e,isFormData:!0})}function tet(e){return xt.post({url:"mapRail/deleteBatch",data:e,isFormData:!0})}function net(e){return xt.post({url:e.id?"mapRail/update":"mapRail/insert",data:e,isJson:!0})}function oet(e){return xt.post({url:"mapRail/select",data:e,isFormData:!0})}function ret(e){const n=e.emit,{mapConfig:o,isShowMap:r,layersUrlList:i,H:a,POI:s}=FT(),l=t.ref(null),c=t.ref(null),d=t.shallowRef(null),f=t.ref({railName:[{required:!0,message:le("pleaseEnterTheNameOfTheElectronicFence"),trigger:"blur"}]}),u=t.ref({}),p=t.ref(!0),h=t.ref(!1),g=t.ref(100),m=t.ref("fixedPoint"),_=t.ref(null),b=t.ref(!1),C=t.shallowRef(null);t.watch(()=>g.value,P=>{g.value=P.replace(/\D/g,"")});function w(P,M){return O=>{if(!p.value)return!1;p.value=!1,setTimeout(()=>{P(O),p.value=!0},M)}}function E(){let P="";m.value==="fixedPoint"?P=le("mouseClicksOnTheMapAndReleasesToEnd"):m.value==="circle"?P=le("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):P=le("mouseClicksOnTheMapAndRightClicksToEnd"),_.value=P}async function N(){const P=ri.getCache("userInfo");let M=null;P!=null&&P.lng&&(P!=null&&P.lat)&&(M=[P.lat,P.lng]),(M==null?void 0:M.length)===0&&(M=null),d.value=await a.map("addElectronicFence_container",{maxZoom:o.maxZoom||18,minZoom:o.minZoom||13,zoom:o.zoom||13,center:M,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:i,layerType:1}),d.value.on("complete",O=>{var $;if(console.log("加载完成"),($=u.value.pointList)!=null&&$.length){const F=u.value.pointList.map(Y=>({lat:Y.lat,lng:Y.lng}));T(F)}}),d.value.on("left-click",O=>{V(O)})}function S(){C.value&&(a.removePolygon(d.value,C.value),C.value=null)}function v(){S(),m.value!=="fixedPoint"?x():b.value=!0}function x(){const P={templineStyle:{color:"#2DF2FF"},hintlineStyle:{color:"#2DF2FF",dashArray:[5,5]}};a.pm(d.value,m.value,P,T)}function T(P){C.value=a.polygon(d.value,P,{weight:2,color:"#2DF2FF",opacity:1,fillColor:"#2DF2FF",fillOpacity:.3}),a.fitBounds(d.value,P.map(M=>[M.lat,M.lng])),D()}function D(){a.removePM(d.value)}function V(P){if(b.value){const M=a.searchByCircle({lat:P.latlng.lat,lng:P.latlng.lng},g.value/2);T(M),b.value=!1}}async function R(P){const M=await oet({id:P});M.code===200&&(u.value={...M.data},h.value=!0,t.nextTick(()=>{N()}))}function q(P){var M;u.value={},g.value=100,b.value=!1,S(),m.value="fixedPoint",E(),c.value&&((M=c.value)==null||M.resetFields()),P?R(P):(h.value=!0,t.nextTick(()=>{N()}))}function K(){console.log(C.value)}function G(){var M;K();let P=[];if(C.value&&(P=a.getShapeLatLngs(C.value)),(P==null?void 0:P.length)===0||!C.value)return ft.error(le("pleaseDrawTheElectronicFence")),!1;(M=c.value)==null||M.validate(async O=>{if(O){const $={railName:u.value.railName};$.pointList=P.map(Y=>({lng:Y.lng,lat:Y.lat})),$.id=u.value.id||null,(await net($)).code===200&&(ft.success(`${le("operationSuccessful")} !`),n("on-submit"),h.value=!1)}})}function I(){n("on-close"),h.value=!1}return{addElectronicFenceContainerRef:l,formRef:c,H:a,map:d,POI:s,isShowMap:r,rules:f,form:u,valid:p,dialogVisible:h,radius:g,mouseToolName:m,tips:_,onClose:I,show:q,onSubmit:G,tipsFn:E,initMap:N,mapRailSelectFn:R,throttle:w,startDraw:v,removePolygon:S}}const aet=e=>(t.pushScopeId("data-v-2ab41282"),e=e(),t.popScopeId(),e),iet={class:"text-hy-text-main"},set={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]"},cet={class:"dialog_body px-[30px] pb-[30px]"},det={class:""},uet={class:"form-label"},fet={class:"relative flex flex-row h-[50px]"},pet={class:"z-[1]"},het={class:"form-label"},met={class:"w-full flex items-center form-item"},get={class:"form-label"},yet={class:"flex items-center form-item"},_et=aet(()=>t.createElementVNode("span",{class:"text-sm ml-[10px] text-hy-text-secondary flex-shrink"},"M",-1)),bet={class:"flex items-center form-item"},wet={class:"text-xs text-hy-text-secondary flex items-center"},Cet={class:"text-hy-main"},Eet={class:"text-right mt-[10px]"},ket=Po(t.defineComponent({__name:"add-electronic-fence",emits:["on-submit","on-close"],setup(e,{expose:n,emit:o}){const r=o,{addElectronicFenceContainerRef:i,formRef:a,rules:s,form:l,dialogVisible:c,radius:d,mouseToolName:f,tips:u,H:p,map:h,POI:g,isShowMap:m,onClose:_,tipsFn:b,show:C,startDraw:w,removePolygon:E,onSubmit:N}=ret({emit:r});return n({show:C}),t.onUnmounted(()=>{p.removeMap(h.value)}),(S,v)=>{const x=t.resolveComponent("svg-icon"),T=t.resolveComponent("el-input"),D=t.resolveComponent("el-form-item"),V=t.resolveComponent("el-col"),R=t.resolveComponent("el-option"),q=t.resolveComponent("el-select"),K=t.resolveComponent("el-button"),G=CL,I=t.resolveComponent("el-icon"),P=t.resolveComponent("el-row"),M=t.resolveComponent("el-form"),O=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(O,{modelValue:t.unref(c),"onUpdate:modelValue":v[4]||(v[4]=$=>t.isRef(c)?c.value=$: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:t.withCtx(()=>[t.createElementVNode("div",iet,[t.createElementVNode("div",set,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("electronicFence")),1),t.createElementVNode("div",{class:"absolute top-[15px] right-[15px] cursor-pointer",onClick:v[0]||(v[0]=(...$)=>t.unref(_)&&t.unref(_)(...$))},[t.createVNode(x,{name:"icon-close",width:"26",height:"26","class-name":"svgBox click-box text-hy-text-danger"})])]),t.createElementVNode("div",cet,[t.createVNode(M,{ref_key:"formRef",ref:a,model:t.unref(l),rules:t.unref(s),"label-width":"0px","label-position":"top",class:"demo-ruleForm"},{default:t.withCtx(()=>[t.createVNode(P,{gutter:20},{default:t.withCtx(()=>[t.createVNode(V,{span:24},{default:t.withCtx(()=>[t.createVNode(D,{prop:"railName"},{label:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("span",det,t.toDisplayString(t.unref(le)("electronicFenceName")),1)])]),default:t.withCtx(()=>[t.createVNode(T,{modelValue:t.unref(l).railName,"onUpdate:modelValue":v[1]||(v[1]=$=>t.unref(l).railName=$),placeholder:t.unref(le)("pleaseEnterTheNameOfTheElectronicFence"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})]),_:1}),t.createVNode(V,{span:10},{default:t.withCtx(()=>[t.createVNode(D,{class:"m-0"},{label:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("span",uet,t.toDisplayString(t.unref(le)("electronicFenceRange")),1)])]),default:t.withCtx(()=>[t.createElementVNode("div",fet,[t.createElementVNode("div",pet,[t.unref(m)&&t.unref(h)?(t.openBlock(),t.createBlock(c7,{key:0,h:t.unref(p),map:t.unref(h),poi:t.unref(g)},null,8,["h","map","poi"])):t.createCommentVNode("",!0)])])]),_:1})]),_:1}),t.createVNode(V,{span:5},{default:t.withCtx(()=>[t.createVNode(D,{class:"m-0 pl-[20px]"},{label:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("span",het,t.toDisplayString(t.unref(le)("drawingMethod")),1)])]),default:t.withCtx(()=>[t.createElementVNode("div",met,[t.createVNode(q,{modelValue:t.unref(f),"onUpdate:modelValue":v[2]||(v[2]=$=>t.isRef(f)?f.value=$:null),placeholder:t.unref(le)("pleaseSelectTheDrawingMethod"),class:"!w-full",onChange:t.unref(b)},{default:t.withCtx(()=>[t.createVNode(R,{label:t.unref(le)("fixedPointRange"),value:"fixedPoint"},null,8,["label"]),t.createVNode(R,{label:t.unref(le)("customCircle"),value:"circle"},null,8,["label"]),t.createVNode(R,{label:t.unref(le)("customPolygon"),value:"polygon"},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])])]),_:1})]),_:1}),t.unref(f)==="fixedPoint"?(t.openBlock(),t.createBlock(V,{key:0,span:3},{default:t.withCtx(()=>[t.createVNode(D,{class:"m-0"},{label:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("span",get,t.toDisplayString(t.unref(le)("rangeDistance")),1)])]),default:t.withCtx(()=>[t.createElementVNode("div",yet,[t.createVNode(T,{modelValue:t.unref(d),"onUpdate:modelValue":v[3]||(v[3]=$=>t.isRef(d)?d.value=$:null),maxlength:"6",placeholder:t.unref(le)("unitMeter"),clearable:""},null,8,["modelValue","placeholder"]),_et])]),_:1})]),_:1})):t.createCommentVNode("",!0),t.createVNode(V,{span:6},{default:t.withCtx(()=>[t.createVNode(D,{class:"m-0"},{label:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("operationButton")),1)])]),default:t.withCtx(()=>[t.createElementVNode("div",bet,[t.createVNode(K,{class:"button_function",onClick:t.unref(w)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("startDrawing")),1)]),_:1},8,["onClick"]),t.createVNode(K,{type:"danger",class:"",onClick:t.unref(E)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("clearDrawing")),1)]),_:1},8,["onClick"])])]),_:1})]),_:1}),t.createVNode(V,{span:24},{default:t.withCtx(()=>[t.createVNode(D,null,{default:t.withCtx(()=>[t.unref(m)?(t.openBlock(),t.createElementBlock("div",{key:1,id:"addElectronicFence_container",ref_key:"addElectronicFenceContainerRef",ref:i,class:"z-[0]"},null,512)):(t.openBlock(),t.createBlock($_,{key:0,class:"!h-[400px] rounded"})),t.createElementVNode("div",wet,[t.createVNode(I,{class:"text-sm"},{default:t.withCtx(()=>[t.createVNode(G)]),_:1}),t.createTextVNode(" "+t.toDisplayString(t.unref(le)("afterClickingToStartDrawing"))+" ",1),t.createElementVNode("span",Cet,t.toDisplayString(t.unref(u)),1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"]),t.createElementVNode("div",Eet,[t.createVNode(K,{type:"primary",class:"w-[100px]",onClick:t.unref(_)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("close")),1)]),_:1},8,["onClick"]),t.createVNode(K,{class:"w-[100px]",onClick:t.unref(N)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("save")),1)]),_:1},8,["onClick"])])])])]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-2ab41282"]]);function vet(e){const n=e.emit,o=t.ref(e.props||{}),r=t.ref(null),i=t.ref(null),a=t.ref({groupId:null,waterPointTypeId:null});function s(u,p){n("on-map-display-fn",{id:u,type:!p})}const l=t.computed(()=>u=>{var p;return(p=o.value.mapDisplayList)!=null&&p.length?o.value.mapDisplayList.findIndex(g=>g===u)!==-1:!1});function c(u){var p;(p=r.value)==null||p.show(u)}function d(){var u;(u=i.value)==null||u.getTableData(),n("on-get-data")}function f(u){ll({tipsTitle:le("deleteElectronicFence"),tipsContent:`<div><p>${le("confirmToDeleteTheCurrentDeletedElectronicFence")}?</p></div>`,submitBtnText:le("confirm-0")},async()=>{(await tet({ids:u})).code===200&&(n("on-delete",u),ft.success(le("deletedSuccessfully")),d())})}return{addElectronicFenceRef:r,AppTableRef:i,requestParams:a,changeFn:s,mapDisplayFn:l,addElectronicFenceShow:c,getData:d,deleteShow:f}}const Net={class:"w-full h-full"},xet={class:"flex items-center justify-center"},Tet={class:"ml-[6px]"},Let={class:"flex"},Oet=t.defineComponent({__name:"electronic-fence",props:{initParams:{default:()=>{}},mapDisplayList:{default:()=>[]},tableColumns:{default:()=>[{label:le("electronicFenceName"),prop:"railName"},{label:le("operation"),slotName:"operator",width:"200px"}]}},emits:["on-map-display-fn","on-get-data","on-delete"],setup(e,{emit:n}){const o=e,r=n,{addElectronicFenceRef:i,AppTableRef:a,requestParams:s,changeFn:l,mapDisplayFn:c,addElectronicFenceShow:d,getData:f,deleteShow:u}=vet({emit:r,props:o});return t.onMounted(()=>{s.value={...o.initParams}}),(p,h)=>{const g=t.resolveComponent("svg-icon"),m=t.resolveComponent("el-button"),_=t.resolveComponent("el-switch");return t.openBlock(),t.createElementBlock("div",Net,[t.createVNode(wv,{ref_key:"AppTableRef",ref:a,height:"100%","show-footer":!0,"search-arr":[{label:t.unref(le)("electronicFenceName"),prop:"railName"}],"column-list":p.tableColumns,"req-url":"mapRail/page","search-form":t.unref(s)},{tableLeft:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(m,{type:"success",class:"",onClick:h[0]||(h[0]=b=>t.unref(d)())},{default:t.withCtx(()=>[t.createElementVNode("div",xet,[t.createVNode(g,{width:"16",height:"16",name:"base-add-3"}),t.createElementVNode("span",Tet,t.toDisplayString(t.unref(le)("addElectronicFence")),1)])]),_:1}),t.renderSlot(p.$slots,"operator-left-box")])]),mapDisplay:t.withCtx(({row:b})=>[t.createElementVNode("div",null,[t.createVNode(_,{class:"switch_custom switch_width_60","model-value":t.unref(c)(b.id),"active-text":t.unref(le)("show"),"inactive-text":t.unref(le)("hide"),"inline-prompt":"","active-color":"#5AB95F","inactive-color":"var(--hy-dialog-bg-1)",onClick:C=>t.unref(l)(b.id,t.unref(c)(b.id))},null,8,["model-value","active-text","inactive-text","onClick"])])]),isDefault:t.withCtx(({row:b})=>[t.renderSlot(p.$slots,"isDefault",{row:b})]),operator:t.withCtx(({row:b})=>[t.createElementVNode("div",Let,[t.createVNode(ra,{name:"icon-edit",tips:t.unref(le)("edit"),onClick:C=>t.unref(d)(b.id)},null,8,["tips","onClick"]),t.createVNode(ra,{class:"hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-text-danger",name:"base-delete",tips:t.unref(le)("delete"),onClick:C=>t.unref(u)(b.id)},null,8,["tips","onClick"])])]),_:3},8,["search-arr","column-list","search-form"]),t.createVNode(ket,{ref_key:"addElectronicFenceRef",ref:i,onOnSubmit:t.unref(f)},null,8,["onOnSubmit"])])}}});function $et({emit:e,props:n}){const o=t.shallowRef(),r=t.shallowRef(),i=t.ref(),{H:a,POI:s,isShowMap:l,layersUrlList:c,mapConfig:d}=FT();function f(){l&&t.nextTick(async()=>{const _=ri.getCache("userInfo");let b=null;_!=null&&_.lng&&(_!=null&&_.lat)&&(b=[_.lat,_.lng]),b.length===0&&(b=null),o.value=await a.map("selectMapLocation",{maxZoom:d.maxZoom||18,minZoom:d.minZoom||13,zoom:d.zoom||13,center:b,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:c,layerType:d.satelliteMap}),o.value.on("complete",()=>{e("on-map-ready")}),o.value.on("left-click",C=>{i.value=null,p({lng:C.latlng.lng,lat:C.latlng.lat})})})}async function u(_){const b=await s.placeSearch({keywords:_,offset:10,page:1});if(b){const C=b[0];p({lng:C.lng,lat:C.lat})}else e("on-geographical-position",{})}async function p(_){const b=await s.reverseGeocoder(_);if(!b.address.length)return ft({type:"warning",message:"请输入正确的经纬度"});h({lng:_.lng,lat:_.lat,address:b.formatted_address,name:b.formatted_address,...b})}function h(_){i.value=_,e("on-geographical-position",_),g()}function g(){r.value&&a.removeMarker(o.value,r.value);const{lng:_,lat:b}=i.value;let C={icon:'<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAgCAYAAAASYli2AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAFKADAAQAAAABAAAAIAAAAADmfO67AAAEgklEQVRIDbVVXWhcVRCeuXuT3SSmmzQEhFYfRBEapGgfYuiPqYkI/rQBjQo+iK1JLdqKtD6IL3kv9CFBitsKCqYPaRHRVokhJoRKVRQpEsGXPpTkqZifxmw22XvO+M25e9Z7N6lPepa7M2fmmzkzc+acw7TFGBIJbl+nZyzRiyzUKUQ7FMZM8+B/DIgut3fR10PMgKQHp6dEb30vB4ylYRHZrUo4IA/yvKPMNzIBnfxwL88kfXiskw1Oy3EhGSGRTBJ0d54NM58odPM5j6k6HJiUAUu24BWOCmJBnlggFivah6mSCo8SDJ7vCc+ryDk8OiGPijXXhSXrQaqM1QkPmxaIF2MO1vF1ffwU/xqqmYnMGaSarS7pvKpGRyW6eFIz9zqbZZIzUPby6+MbnVGZfnD4mpRY2EogF8gG40FADVZsL6J+DSVwmbn8EgkgusfDjXXpqwaRcMjE1oocGX2u/tNqcESjr34ZjSGaK8gIpUsYABSR9AViqMeim9xn/qFGaHj0cMqZ8zt6KPzGWnvOAmAibGOFKm8M9wSRsfep0CkSFFl9nogsxQJ21WJx3SNPlY+s3RmS4TaL4+AGiKsOqLFSTHlJTDjKLEc2qkkYAOa2AIVaMJGGjyiRuqeYdCV8pNiyNZ2iWITqqfLW2IUAkczBKezhFGfO0ygyH7wwWnoo5QmT/jFpl8i+ryVSZ5463tJ8iMinEPseZ6iZVzYO7L2W7VTfZ6UjdfXZyVyJcn/J+sFyaW0Eu98eL5QwUNMg+I4PfVLcK2KvKaD2IMRG+s8RTiCWkozHqDTtjijgYJ/GQ89eWJmBcn+6qzYvgIsAiwpq78zgEDx+jjLNXD3a/ASaU7PMnBbDZVdktINSV+RK4X2fxjVWvfacJfRwhXKZJfOe+nIOr7zR+BMuh9PaU84I1PWXbhZ4AY0/zyuNF3ZU5JT6iIPT/8roHblzllne1TptPWqqFhf27MTb+VMeHxfDz0CfHF4q4FIYUFGyRglIlYVxYfKdlmNVARiXclJw4ET+TfTWRZ+6p5q69pynqN/F/Sfzx5O2ym+KUIXdUxLan5cuQ3u42ksVsCYdMH9Bj+X7pw9ypPjk2BShKhXYlG15GdFMuB3WY6nHU09HJN821OVf2cqZ2m4ZoSp0PP+RNC4sLI7jZOzTOSK7tn1769NfHeO7XxwKTA/cN0PE3bC/PUvBjg5qWalbGlNMczl8aX72nqX2DrLTKClwqIC/qhRRE+GeQalrbqSmKEvbgg3K53LUiHszizxwu2MIRWFA66USFW09LYfrdGelSKu/FLjs9PiLgTrrl0xLG21Doz6M1+oRaB5A/VrxQOMtiXEoOO5QWqsLaREWN/Gs/dbSQH/AdokuMfog4bC7A0d0kZoyObofh2A3otqFrw1NjheN3MOP/AxkeDLpT9g2Q7hsizQH2+XpS+ou4XB6lqTnQVpFirfg4AbSW0F1WsE3YAGXiUaIBdbwLcLxTfTMLW6kVbWN3f0PNdyibdK7vGsnZUp5xIORWyb5fY7Mv+2yj/Q/o38DhqCjJovBnOsAAAAASUVORK5CYII=" style="width: 20px; height: 32px;" />',zIndexOffset:10,iconAnchor:[-20,-16]};n.markerItemFn&&(C=n.markerItemFn()),o.value.setZoom(18),o.value.panTo([_,b]),r.value=a.marker(o.value,[b,_],C)}function m(_){r.value&&a.updateMarkerIcon(r.value,_)}return{H:a,map:o,marker:r,isShowMap:l,initMap:f,geographicalPositionFn:h,throughCoordinatePosition:p,placeSearchFn:u,setContentFn:m}}const Det={class:"w-full h-full relative"},Pet={key:1,id:"selectMapLocation",ref:"selectMapLocation",class:"w-full h-full"},Iet=Po(t.defineComponent({__name:"select-map-location",props:{markerItemFn:{type:Function,default:null}},emits:["on-geographical-position","on-map-ready"],setup(e,{expose:n,emit:o}){const r=e,i=o,{isShowMap:a,initMap:s,throughCoordinatePosition:l,placeSearchFn:c,setContentFn:d}=$et({emit:i,props:r});return t.onMounted(()=>{s()}),n({throughCoordinatePosition:l,placeSearchFn:c,setContentFn:d}),(f,u)=>(t.openBlock(),t.createElementBlock("div",Det,[t.unref(a)?(t.openBlock(),t.createElementBlock("div",Pet,null,512)):(t.openBlock(),t.createBlock($_,{key:0,class:"absolute top-0 left-0 z-[2]"}))]))}}),[["__scopeId","data-v-05d06bbd"]]),Met={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Aet=[t.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864L512 652.672L192.128 340.864a30.592 30.592 0 0 0-42.752 0a29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728a30.592 30.592 0 0 0-42.752 0z"},null,-1)];function Vet(e,n){return t.openBlock(),t.createElementBlock("svg",Met,[...Aet])}const Ret={name:"ep-arrow-down",render:Vet},Bet={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Fet=[t.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32l-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872l319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"},null,-1)];function zet(e,n){return t.openBlock(),t.createElementBlock("svg",Bet,[...Fet])}const Uet={name:"ep-arrow-up",render:zet},jet={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Wet=[t.createElementVNode("path",{fill:"currentColor",d:"M672 192L288 511.936L672 832z"},null,-1)];function Het(e,n){return t.openBlock(),t.createElementBlock("svg",jet,[...Wet])}const Get={name:"ep-caret-left",render:Het};function d7(e){return xt.post({url:"spotCheck/task/detail",data:e,isFormData:!0})}function Ket(e){return xt.post({url:"spotCheck/timing/detail",data:e,isFormData:!0})}function Yet(e){return xt.post({url:"spotCheck/task/end",data:e,isFormData:!0})}function qet(e){return xt.post({url:"spotCheck/timing/detail",data:e,isFormData:!0})}function Zet(e){return xt.post({url:e.id?"spotCheck/timing/update":"spotCheck/timing/insert",data:e,isJson:!0})}function Jet(e){return xt.post({url:"spotCheck/template/detail",data:e,isFormData:!0})}function Xet(e){return xt.post({url:e.id?"spotCheck/template/update":"spotCheck/template/insert",data:e,isJson:!0})}function Qet(e){return xt.post({url:"spotCheck/task/taskExecute",data:e,isJson:!0})}function u7(e){return xt.post({url:"spotCheck/task/pttFile/page",data:e,isFormData:!0})}function ett(e){return xt.post({url:"spotCheck/task/groupBind",data:e,isJson:!0})}function ttt({props:e,emit:n}){const o=t.ref(null),r=t.ref(0),i=t.ref(0),a=t.ref(0),s=t.ref(0),l=t.ref(0),c=t.ref(0),d=t.ref([]);function f(_){const{deviceId:b,checkStatus:C}=_||{};if(!b)return;const w=d.value.findIndex(E=>E.deviceId===b);if(w!==-1){switch(d.value[w].checkStatus){case 1:r.value--;break;case 2:i.value--;break}switch(C){case 2:i.value++;break;case 3:a.value++;break;case 4:s.value++;break}t.nextTick(()=>{p(),d.value[w].checkStatus=C})}}function u(){let _=0,b=0,C=0,w=0,E=0,N=0;d.value.forEach(S=>{const v=S.checkStatus,x=S.intercomGroupTem,T=S.onlineState;switch(x===1&&N++,T===2&&E++,v){case 1:_++;break;case 2:b++;break;case 3:C++;break;case 4:w++;break}}),t.nextTick(()=>{r.value=_,i.value=b,a.value=C,s.value=w,l.value=E,c.value=N,p()})}function p(){n("on-countStatus",{beReceiveNum:r.value,receivingNum:i.value,finishNum:a.value,notFinishNum:s.value,offLineNum:l.value,intercomGroupTemNum:c.value})}function h(){o.value}function g(){}async function m(_){const{code:b,data:C=[]}=await Ket({taskId:e.form.id,checkStatus:_||null});b===200&&(d.value=C,e.subscribeStatus&&u(),n("change",d.value))}return{uniqueId:o,beReceiveNum:r,receivingNum:i,finishNum:a,notFinishNum:s,offLineNum:l,intercomGroupTemNum:c,taskDeviceList:d,setDeviceStatus:f,initDeviceStatusList:u,onCountStatus:p,spotCheckSubscribe:h,spotCheckUnsubscribe:g,getData:m}}const ntt={class:"h-[58px] bg-hy-dialog-bg-2 border border-box border-hy-border-2 rounded px-2 box-border flex items-center"},ott={class:"relative"},rtt={class:"w-[16px] text-hy-text-main h-[16px] bg-hy-danger flex items-center justify-center absolute -top-[2px] -right-[4px] rounded-full text-xs font-bold"},att={class:"scale-75"},itt={class:"w-[16px] text-hy-text-main h-[16px] bg-hy-danger flex items-center justify-center absolute -top-[2px] -right-[4px] rounded-full text-xs font-bold"},stt={class:"flex-grow w-0 flex"},ltt={class:"mx-2 flex-grow w-0"},ctt={class:"truncate"},dtt={class:"text-hy-text-secondary truncate"},utt={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},ftt={class:"r-f tac flex items-center justify-center flex-col"},ptt={class:"mt-3"},EL=t.defineComponent({__name:"spot-check-task-device",props:{subscribeStatus:{type:Boolean,default:!0},form:{default:{}},paramsSpan:{default:24}},emits:["on-countStatus"],setup(e,{emit:n}){const o=e,r=n,{taskDeviceList:i,spotCheckUnsubscribe:a,uniqueId:s,spotCheckSubscribe:l,getData:c}=ttt({props:o,emit:r});return t.onMounted(()=>{s.value=o.form.uniqueId,o.subscribeStatus&&l(),c()}),t.onUnmounted(()=>{a()}),(d,f)=>{const u=t.resolveComponent("el-tooltip"),p=t.resolveComponent("svg-icon"),h=t.resolveComponent("el-col"),g=t.resolveComponent("el-row");return t.openBlock(),t.createBlock(g,{gutter:8,class:"h-full"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(i),m=>(t.openBlock(),t.createBlock(h,{key:m.id,span:d.paramsSpan,class:"mb-2"},{default:t.withCtx(()=>[t.createElementVNode("div",ntt,[t.createElementVNode("div",ott,[t.createVNode(Zu,{class:"w-[36px] h-[36px]"}),m.intercomGroupTem===1?(t.openBlock(),t.createBlock(u,{key:0,class:"item",effect:"dark",content:t.unref(le)("theDeviceWasInATemporaryGroupWhenTheSpotCheckWasInitiated"),placement:"top"},{default:t.withCtx(()=>[t.createElementVNode("div",rtt,[t.createElementVNode("span",att,t.toDisplayString(t.unref(le)("lin")),1)])]),_:1},8,["content"])):m.onlineState===2?(t.openBlock(),t.createBlock(u,{key:1,class:"item",effect:"dark",content:t.unref(le)("theDeviceWasOfflineWhenTheSpotCheckWasInitiated"),placement:"top"},{default:t.withCtx(()=>[t.createElementVNode("div",itt,[t.createVNode(p,{name:"icon-off-line","class-name":"!w-[10px] !h-[14px]"})])]),_:1},8,["content"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",stt,[t.createElementVNode("div",ltt,[t.createElementVNode("p",ctt,t.toDisplayString(m.devName),1),t.createElementVNode("p",dtt,t.toDisplayString(m.deviceId),1)]),t.createElementVNode("div",null,[t.withDirectives(t.createElementVNode("div",{class:"border-info bg-hy-info/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},t.toDisplayString(t.unref(le)("toBeReceived-1")),513),[[t.vShow,m.checkStatus===1]]),t.withDirectives(t.createElementVNode("div",{class:"border-warning bg-hy-warning/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},t.toDisplayString(t.unref(le)("receiving-1")),513),[[t.vShow,m.checkStatus===2]]),t.withDirectives(t.createElementVNode("div",{class:"w-[54px] border-success bg-hy-success/50 border rounded px-2 flex items-center justify-center h-[24px] box-border whitespace-nowrap"},t.toDisplayString(t.unref(le)("completed-0")),513),[[t.vShow,m.checkStatus===3]]),t.withDirectives(t.createElementVNode("div",{class:"border-hy-danger bg-hy-danger/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},t.toDisplayString(t.unref(le)("uncompleted-0")),513),[[t.vShow,m.checkStatus===4]])])])])]),_:2},1032,["span"]))),128)),t.unref(i).length===0?(t.openBlock(),t.createBlock(h,{key:0,span:24,class:"h-full"},{default:t.withCtx(()=>[t.createElementVNode("div",utt,[t.createElementVNode("div",ftt,[t.createVNode(p,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),t.createElementVNode("div",ptt,t.toDisplayString(t.unref(le)("noData")),1)])])]),_:1})):t.createCommentVNode("",!0)]),_:1})}}});function htt({props:e}){const n=t.ref(null),o=t.ref(""),r=t.ref(!1),i=t.ref(null),a=t.ref(0),s=t.ref(0),l=t.ref([]),c=t.ref(null),d=t.ref(null),f=t.ref(null),u=t.ref(!0),p=t.ref(null),h=t.ref(),g=t.ref();function m(){n.value=e.orgGroupInsertTemp.id,l.value=[],u.value=!0,b(),t.nextTick(()=>{N()})}function _(){if(!e.realtimeRequestType)return;const T=async()=>{const D=l.value[l.value.length-1];if(!D){T();return}const V={page:0,taskId:e.taskId,largeThenTimestamp:D.fileTimestamp},R=c.value.scrollTop,q=c.value.offsetHeight-46,K=document.querySelector(`#item-${D.id}`);if(K){const G=K.offsetTop,I=await u7(V);if(I.code===200){const{content:P=[],totalElements:M=0}=I.data;a.value=M,t.nextTick(()=>{P.forEach(O=>{l.value.findIndex(F=>F.id===O.id)===-1&&l.value.push(O)}),R>=G-q&&E()})}}};p.value&&clearInterval(p.value),p.value=setInterval(()=>{T()},1e4)}async function b(){var q;let T=null;l.value.length&&(T=l[0].value.id);const V={page:0,taskId:e.taskId,lessThenTimestamp:(q=l.value[0])==null?void 0:q.fileTimestamp};i.value=null,r.value=!0,_();const R=await u7(V);if(R.code===200){const{content:K=[],totalElements:G=0}=R.data;a.value=G,t.nextTick(()=>{var I;T?K.forEach(P=>{const M=l.value.findIndex(O=>O.id===P.id);P.fileDtmEnd||(P.fileDtmEnd=""),M===-1&&l.value.unshift(P)}):l.value=K.reverse(),T?(C(T),i.value=(I=l.value[this.chatMessageList.length-1])==null?void 0:I.id):E(),t.nextTick(()=>{r.value=!1})})}}function C(T){t.nextTick(()=>{c.value.scrollTo(0,document.querySelector(`#item-${T}`).offsetTop-46)})}function w(){a.value!==0&&b()}function E(){t.nextTick(()=>{c.value.scrollTo(0,c.value.scrollHeight)})}function N(){c.value=h.value,d.value=g.value,d.value.addEventListener("ended",()=>{v(),f.value=null}),c.value.onscroll=()=>{c.value.scrollTop===0&&w()}}function S(){u.value=!1,d.value.play()}function v(){u.value=!0,d.value.pause()}function x(T){}return{$t:le,groupId:n,audioUrl:o,loading:r,newScrollTop:i,totalElements:a,page:s,chatMessageList:l,chatMessageListEl:c,audioEl:d,mediaFileId:f,audioType:u,timer:p,chatMessageListRef:h,audioElRef:g,init:m,getNewData:_,getData:b,scrollToMsg:C,topEvent:w,scrollToBottom:E,initScrollList:N,audioPlay:S,audioPause:v,getAudioContext:x}}const mtt=["element-loading-text"],gtt={key:0,class:"w-full h-full flex box-border items-center justify-center text-center text-hy-text-secondary"},ytt={class:""},_tt={class:"mt-5"},btt=["id"],wtt={key:0,class:"min-w-[72px] p-1 bg-hy-dialog-bg-4 text-center rounded mb-2"},Ctt={key:1,class:"h-[50px] flex items-center w-full"},Ett={class:"mr-2 flex-grow w-0 flex flex-col items-end"},ktt={class:"w-full flex items-center justify-end"},vtt=["onClick"],Stt=["onClick"],Ntt={class:"font-bold flex-shrink-0"},xtt={class:"flex-shrink-0 ml-1"},Ttt={key:0},Ltt={key:2,class:"h-[50px] flex items-center w-full"},Ott={class:"ml-2 flex-grow w-0 flex flex-col items-start"},$tt={class:"w-full flex items-center"},Dtt=["onClick"],Ptt={class:"flex-shrink-0 mr-1"},Itt={key:0},Mtt={class:"font-bold flex-shrink-0"},Att=["onClick"],Vtt=t.defineComponent({__name:"talkback-reply",props:{realtimeRequestType:{type:Boolean,default:!0},taskId:{default:null},orgGroupInsertTemp:{default:()=>({id:971})}},setup(e){const n=e,o={},{$t:r,loading:i,chatMessageList:a,mediaFileId:s,audioType:l,getAudioContext:c,init:d,timer:f,chatMessageListRef:u,audioElRef:p}=htt({props:n});return t.onMounted(()=>{d()}),t.onUnmounted(()=>{f.value&&clearInterval(f.value)}),(h,g)=>{const m=t.resolveComponent("svg-icon"),_=t.resolveDirective("loading");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":t.unref(r)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"w-full h-full p-1 box-border relative z-10"},[t.createElementVNode("audio",{id:"audio-el",ref_key:"audioElRef",ref:p,class:"absolute"},null,512),t.createElementVNode("div",{id:"chatMessageList",ref_key:"chatMessageListRef",ref:u,class:"w-full h-full overflow-auto bg-hy-dialog-bg-2 text-hy-text-main text-xs"},[t.unref(a).length===0?(t.openBlock(),t.createElementBlock("div",gtt,[t.createElementVNode("div",ytt,[t.createElementVNode("div",null,[t.createVNode(m,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"})]),t.createElementVNode("div",_tt,[t.createElementVNode("p",null,t.toDisplayString(t.unref(r)("noMemberRespondedAtTheMoment")),1)])])])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),(b,C)=>(t.openBlock(),t.createElementBlock("div",{id:`item-${b.id}`,key:b.id,class:"p-2 box-border flex flex-col items-center"},[b.fileDtmEnd.split(" ")[0]!==(C>0&&t.unref(a)[C-1].fileDtmEnd.split(" ")[0])?(t.openBlock(),t.createElementBlock("div",wtt,t.toDisplayString(b.fileDtmEnd.split(" ")[0]),1)):t.createCommentVNode("",!0),b.devUserId===o.id?(t.openBlock(),t.createElementBlock("div",Ctt,[t.createElementVNode("div",Ett,[t.createElementVNode("div",null,t.toDisplayString(b.devUserName)+" ("+t.toDisplayString(b.serialNum||b.devUserId)+") ",1),t.createElementVNode("div",ktt,[t.unref(s)===b.mediaFileId&&t.unref(l)?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mr-1 mt-1 rounded-[4px] p-[4px_8px] bg-hy-dialog-bg-3/50 text-hy-text-secondary text-xs scale-90 cursor-pointer",onClick:w=>t.unref(c)(b.mediaFileId)},t.toDisplayString(t.unref(r)("continuePlaying")),9,vtt)):t.createCommentVNode("",!0),t.createElementVNode("div",{style:t.normalizeStyle({width:b.audioLength>=60?"70%":`calc(${b.audioLength/60*90}px + 160px)`,background:t.unref(s)===b.mediaFileId?"var(--linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%))":"var(--hy-dialog-bg-3)"}),class:t.normalizeClass([{"!border-hy-border-1 !shadow-hy-border-1":t.unref(s)===b.mediaFileId},"max-w-[70%] h-[28px] flex items-center p-[6px] box-border mt-1 rounded-[4px_0_4px_4px] justify-between relative z-10 cursor-pointer border border-hy-border-2 shadow-[0_0_4px_0] shadow-hy-dialog-bg-1"]),onClick:w=>t.unref(c)(b.mediaFileId)},[t.createElementVNode("div",Ntt,t.toDisplayString(b.audioLength)+"” ",1),t.createElementVNode("div",xtt,[b.fileDtmEnd?(t.openBlock(),t.createElementBlock("span",Ttt,t.toDisplayString(b.fileDtmEnd.split(" ")[1]),1)):t.createCommentVNode("",!0)])],14,Stt)])]),t.createVNode(Zu,{class:"w-[32px] h-[32px]"})])):(t.openBlock(),t.createElementBlock("div",Ltt,[t.createVNode(Zu,{class:"w-[32px] h-[32px]"}),t.createElementVNode("div",Ott,[t.createElementVNode("div",null,t.toDisplayString(b.devUserName)+" ("+t.toDisplayString(b.serialNum||b.devUserId)+") ",1),t.createElementVNode("div",$tt,[t.createElementVNode("div",{style:t.normalizeStyle({width:b.audioLength>=60?"70%":`calc(${b.audioLength/60*90}px + 160px)`,background:t.unref(s)===b.mediaFileId?"var(--linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%))":"var(--hy-dialog-bg-3)"}),class:t.normalizeClass([{"!border-hy-border-1 !shadow-hy-border-1":t.unref(s)===b.mediaFileId},"max-w-[70%] h-[28px] flex items-center p-[6px] box-border mt-1 rounded-[0_4px_4px] justify-between relative z-10 cursor-pointer border border-hy-border-2 shadow-[0_0_4px_0] shadow-hy-dialog-bg-1"]),onClick:w=>t.unref(c)(b.mediaFileId)},[t.createElementVNode("div",Ptt,[b.fileDtmEnd?(t.openBlock(),t.createElementBlock("span",Itt,t.toDisplayString(b.fileDtmEnd.split(" ")[1]),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Mtt,t.toDisplayString(b.audioLength)+"” ",1)],14,Dtt),t.unref(s)===b.mediaFileId&&t.unref(l)?(t.openBlock(),t.createElementBlock("div",{key:0,class:"ml-1 mt-1 rounded-[4px] p-[4px_8px] bg-hy-dialog-bg-3/50 text-hy-text-secondary text-xs scale-90 cursor-pointer",onClick:w=>t.unref(c)(b.mediaFileId)},t.toDisplayString(t.unref(r)("continuePlaying")),9,Att)):t.createCommentVNode("",!0)])])]))],8,btt))),128))],512)],8,mtt)),[[_,t.unref(i)]])}}});function Rtt(){const e=t.ref({}),n=t.ref(!1),o=t.ref(null),r=t.ref(0),i=t.ref(!1),a=t.ref([]),s=t.ref(!1),l=t.ref(!1),c=t.ref();async function d(){await ett({groupId:o.value,taskId:e.value.id})}function f(){var v;a.value.length!==0&&((v=c.value)==null||v.orgGroupInsertTempFn([...a.value],{openRecording:1}).then(x=>{o.value=x,t.nextTick(()=>{d()}),h(!1)}).catch(()=>{o.value=null,n.value=!0,h(!1)}))}function u(v=[]){a.value=v,h(!1),e.value.checkStyle===2&&f()}function p(v={}){const{beReceiveNum:x=0,receivingNum:T=0,finishNum:D=0,notFinishNum:V=0,offLineNum:R=0,intercomGroupTemNum:q=0}=v;e.value.beReceiveNum=x,e.value.receivingNum=T,e.value.finishNum=D,e.value.notFinishNum=V,e.value.offLineNum=R,e.value.intercomGroupTemNum=q}function h(v){i.value=v}function g(){s.value=!s.value}async function m(v){const{code:x,data:T={}}=await d7({id:v});x===200&&(e.value={...T},e.value.checkNum===0&&u([]),e.value.checkStyle===2&&(e.value.actionType=null),_(!0))}function _(v){l.value=v}function b(){}function C(v){if(l.value){ft.warning(le("currentlySpotCheckInProgressPleaseProcessLater"));return}o.value=null,n.value=!1,e.value={},h(!0),m(v)}function w(){l.value=!1}function E(){ll({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:le("cancelSpotCheck"),tipsContent:`<div><p>${le("confirmToCancelThisSpotCheck")}?</p><p>${this.$t("cancelMidwayYouWillNotBeAbleToRetrieveOrViewAnyInformationOfThisSpotCheck")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:le("returnToSpotCheck"),submitBtnText:le("cancelSpotCheck"),submitBtnType:"danger"},()=>{S(3)})}function N(){let v=le("afterTheCheck,YouCanViewTheSpotCheckInformationInTheSpotCheckModule");(e.value.beReceiveNum!==0||e.value.receivingNum!==0)&&(v=le("thereAreStillDevicesInTheReceivingProcessTheSystemWillMarkTheseDevicesAsUnfinished")),ll({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:le("endSpotCheck"),tipsContent:`<div><p>${le("confirmToEndThisSpotCheck")}?</p><p>${v}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:le("returnToSpotCheck"),submitBtnText:le("endSpotCheck")},()=>{S(2)})}async function S(v){var T;const{code:x}=await Yet({taskId:e.value.id,checkStatus:v});x===200&&(v===2&&(ft.success(le("theSpotCheckHasBeenCompletedYouCanViewDetailedInformationRecordsInTheSpotCheckModule")),e.value.checkStyle===2&&o.value&&((T=c.value)==null||T.onClose())),w())}return{form:e,groupType:n,groupId:o,dragLevel:r,loading:i,taskDeviceList:a,msgContentType:s,dialogVisible:l,multiPersonIntercomSpotCheckRef:c,taskGroupBind:d,orgGroupInsertTemp:f,spotCheckTaskDeviceChange:u,spotCheckTaskDeviceCountStatus:p,setLoading:h,setMsgContentType:g,setDialogVisible:_,show:C,close:w,onClose:E,onSubmit:N,taskEnd:S,setDragLevel:b,$t:le}}const Btt=e=>(t.pushScopeId("data-v-e246ad8e"),e=e(),t.popScopeId(),e),Ftt={class:"el-dialog__header !p-0"},ztt={class:"el-dialog__body !p-[8px_0px_8px] sideFoot_content h-[700px] flex flex-col text-main text-xs"},Utt={class:"h-[40px] flex items-center px-4 mb-1"},jtt={class:"font-bold bg-hy-main/20 border border-hy-border-1/50 rounded px-2 flex items-center justify-center h-[24px] flex-shrink-0"},Wtt={key:0,class:"ml-3"},Htt={class:"text-hy-text-secondary"},Gtt={key:1,class:"ml-3"},Ktt={class:"text-hy-text-secondary"},Ytt={class:"font-bold"},qtt=["element-loading-text"],Ztt={key:0,class:"w-full h-full flex flex-col box-border"},Jtt={class:"flex-shrink-0 mb-3 px-4"},Xtt={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},Qtt={class:"flex w-full"},ent={class:"flex-shrink-0"},tnt={class:"text-right font-bold flex-grow w-0"},nnt={class:"flex w-full text-hy-text-secondary"},ont={class:"flex-shrink-0"},rnt={class:"text-right flex-grow w-0"},ant={class:"flex w-full text-hy-text-secondary"},int={class:"flex-shrink-0"},snt={class:"text-right flex-grow w-0"},lnt={class:"text-xs p-2 leading-[22px]"},cnt={class:"flex w-full"},dnt={class:"flex-shrink-0 tracking-[4px]"},unt={class:"text-right font-bold flex-grow w-0"},fnt={class:"flex w-full"},pnt={class:"flex-shrink-0 tracking-[4px]"},hnt={class:"text-right font-bold flex-grow w-0"},mnt={class:"flex w-full"},gnt={class:"flex-shrink-0 tracking-[4px]"},ynt={class:"text-right font-bold flex-grow w-0 text-hy-success"},_nt={class:"flex w-full"},bnt={class:"flex-shrink-0 tracking-[4px]"},wnt={class:"text-right font-bold flex-grow w-0 text-hy-danger"},Cnt={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},Ent={class:"flex-1 flex"},knt={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},vnt={class:"flex-grow w-0 text-center truncate"},Snt={class:"flex-1 flex"},Nnt={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},xnt={class:"flex-grow w-0 text-center text-hy-success truncate"},Tnt={class:"flex-1 flex"},Lnt={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},Ont={class:"flex-grow w-0 text-center text-hy-danger truncate"},$nt={class:"w-full px-2 leading-[22px] box-border rounded bg-hy-dialog-bg-3 h-[28px] flex items-center justify-between"},Dnt={class:"flex"},Pnt={key:0,class:"ml-2 bg-hy-dialog-bg-1 h-[22px] px-2 rounded"},Int={class:"w-[400px]"},Mnt={class:""},Ant={key:0,class:"box-border flex-grow h-0 flex px-2"},Vnt={class:"flex-grow w-0 px-2 overflow-x-hidden overflow-y-auto h-full"},Rnt={key:0,class:"w-[66%] box-border pr-2"},Bnt={class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},Fnt={key:1,class:"flex-grow h-0 px-4"},znt={class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},Unt={class:"r-f tac flex text-center"},jnt={class:"mt-3"},Wnt={class:"mt-1"},Hnt={key:1,class:"w-full h-full"},Gnt={key:0,class:"w-full h-full flex px-4 box-border"},Knt={class:"flex flex-col w-[33%]"},Ynt={class:"pr-2"},qnt={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},Znt={class:"flex w-full"},Jnt={class:"flex-shrink-0"},Xnt={class:"text-right font-bold flex-grow w-0"},Qnt={class:"flex w-full text-hy-text-secondary"},eot={class:"flex-shrink-0"},tot={class:"text-right flex-grow w-0"},not={class:"flex w-full text-hy-text-secondary"},oot={class:"flex-shrink-0"},rot={class:"text-right flex-grow w-0"},aot={class:"text-xs p-2 leading-[22px]"},iot={key:0,class:"flex w-full"},sot={class:"flex-shrink-0 tracking-[4px]"},lot={class:"text-right font-bold flex-grow w-0"},cot={key:1,class:"flex w-full"},dot={class:"flex-shrink-0 tracking-[4px]"},uot={class:"text-right font-bold flex-grow w-0"},fot={class:"flex w-full"},pot={class:"flex-shrink-0 tracking-[4px]"},hot={class:"text-right font-bold flex-grow w-0 text-hy-success"},mot={class:"flex w-full"},got={class:"flex-shrink-0 tracking-[4px]"},yot={class:"text-right font-bold flex-grow w-0 text-hy-danger"},_ot={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},bot={class:"flex-1 flex"},wot={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},Cot={class:"flex-grow w-0 text-center truncate"},Eot={class:"flex-1 flex"},kot={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},vot={class:"flex-grow w-0 text-center text-hy-success truncate"},Sot={class:"flex-1 flex"},Not={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},xot={class:"flex-grow w-0 text-center text-hy-danger truncate"},Tot={class:"flex-grow h-0 mt-2 overflow-x-hidden overflow-y-auto pr-2 box-border"},Lot={class:"flex-grow w-0 flex flex-col"},Oot=Btt(()=>t.createElementVNode("div",{class:"flex-grow h-0 overflow-hidden"},null,-1)),$ot={key:0,class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-backgroundv2 box-border border border-hy-border-2 rounded"},Dot={class:"r-f tac flex text-center"},Pot={class:"mt-5"},Iot={key:1,class:"flex-grow h-full px-4"},Mot={class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},Aot={class:"r-f tac flex text-center"},Vot={class:"mt-3"},Rot={class:"mt-1"},Bot={class:"h-[50px] flex items-center justify-between flex-shrink-0 px-4 mt-1"},Fot={class:"text-hy-text-secondary text-xs"},zot={key:0},Uot={key:1},jot={key:0},Wot={key:1},Hot={key:2},Got=Po(t.defineComponent({__name:"view-spot-check",setup(e){const{dialogVisible:n,dragLevel:o,setDragLevel:r,form:i,$t:a,loading:s,setMsgContentType:l,msgContentType:c,spotCheckTaskDeviceChange:d,spotCheckTaskDeviceCountStatus:f,groupType:u,onClose:p,onSubmit:h}=Rtt();return(g,m)=>{const _=t.resolveComponent("svg-icon"),b=t.resolveComponent("el-popover"),C=t.resolveComponent("el-col"),w=Get,E=t.resolveComponent("el-icon"),N=t.resolveComponent("el-tooltip"),S=t.resolveComponent("el-row"),v=CL,x=t.resolveComponent("el-button"),T=t.resolveDirective("loading");return t.unref(n)?(t.openBlock(),t.createElementBlock("div",{key:0,class:"el-dialog sideFootBox",style:t.normalizeStyle([{width:"830px"},{"z-index":t.unref(o)}]),onClick:m[2]||(m[2]=(...D)=>t.unref(r)&&t.unref(r)(...D))},[t.createElementVNode("div",Ftt,[t.createElementVNode("div",ztt,[t.createElementVNode("div",Utt,[t.createElementVNode("div",jtt,t.toDisplayString(t.unref(a)("initiate"))+t.toDisplayString(t.unref(i).checkStyle===1?t.unref(a)("message"):t.unref(a)("call"))+t.toDisplayString(t.unref(a)("spotCheck")),1),t.unref(i).checkStyle===1?(t.openBlock(),t.createElementBlock("div",Wtt,[t.createElementVNode("span",Htt,t.toDisplayString(t.unref(a)("responseMethod")),1),t.createElementVNode("span",null,t.toDisplayString(t.unref(i).actionType===1?t.unref(a)("punchIn"):t.unref(a)("reply")),1)])):t.createCommentVNode("",!0),t.unref(i).checkStyle===1?(t.openBlock(),t.createElementBlock("div",Gtt,[t.createElementVNode("span",Ktt,t.toDisplayString(t.unref(a)("responseTime")),1),t.createElementVNode("span",null,[t.createElementVNode("span",Ytt,t.toDisplayString(t.unref(i).actionTime),1),t.createTextVNode(" "+t.toDisplayString(t.unref(a)("second")),1)])])):t.createCommentVNode("",!0)]),t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":t.unref(a)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0"},[t.unref(i).checkStyle===1?(t.openBlock(),t.createElementBlock("div",Ztt,[t.createElementVNode("div",Jtt,[t.createVNode(S,{gutter:8},{default:t.withCtx(()=>[t.createVNode(C,{span:8},{default:t.withCtx(()=>[t.createVNode(b,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:t.withCtx(()=>[t.createElementVNode("div",Cnt,[t.createElementVNode("div",Ent,[t.createElementVNode("div",knt,[t.createVNode(_,{name:"base-every-day-many-people","class-name":"svgBox w-[16px] h-[16px]"})]),t.createElementVNode("div",vnt,t.toDisplayString(t.unref(i).checkNum||"- -"),1)]),t.createElementVNode("div",Snt,[t.createElementVNode("div",Nnt,[t.createVNode(_,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),t.createElementVNode("div",xnt,t.toDisplayString(t.unref(i).finishNum||"- -"),1)]),t.createElementVNode("div",Tnt,[t.createElementVNode("div",Lnt,[t.createVNode(_,{name:"base-danger-state","class-name":"svgBox w-[16px] h-[16px]"})]),t.createElementVNode("div",Ont,t.toDisplayString(t.unref(i).notFinishNum||"- -"),1)])])]),default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("ul",Xtt,[t.createElementVNode("li",Qtt,[t.createElementVNode("span",ent,t.toDisplayString(t.unref(a)("numberOfPeopleToBeChecked")),1),t.createElementVNode("div",tnt,t.toDisplayString(t.unref(i).checkNum||"- -"),1)]),t.createElementVNode("li",nnt,[t.createElementVNode("span",ont,t.toDisplayString(t.unref(a)("offlineStatus")),1),t.createElementVNode("div",rnt,t.toDisplayString(t.unref(i).offLineNum||"- -"),1)]),t.createElementVNode("li",ant,[t.createElementVNode("span",int,t.toDisplayString(t.unref(a)("temporaryGroups")),1),t.createElementVNode("div",snt,t.toDisplayString(t.unref(i).intercomGroupTemNum||"- -"),1)])]),t.createElementVNode("ul",lnt,[t.createElementVNode("li",cnt,[t.createElementVNode("span",dnt,t.toDisplayString(t.unref(a)("waitingToReceive")),1),t.createElementVNode("div",unt,t.toDisplayString(t.unref(i).beReceiveNum||"- -"),1)]),t.createElementVNode("li",fnt,[t.createElementVNode("span",pnt,t.toDisplayString(t.unref(a)("receiving")),1),t.createElementVNode("div",hnt,t.toDisplayString(t.unref(i).receivingNum||"- -"),1)]),t.createElementVNode("li",mnt,[t.createElementVNode("span",gnt,t.toDisplayString(t.unref(a)("completed")),1),t.createElementVNode("div",ynt,t.toDisplayString(t.unref(i).finishNum||"- -"),1)]),t.createElementVNode("li",_nt,[t.createElementVNode("span",bnt,t.toDisplayString(t.unref(a)("uncompleted")),1),t.createElementVNode("div",wnt,t.toDisplayString(t.unref(i).notFinishNum||"- -"),1)])])])]),_:1})]),_:1}),t.createVNode(C,{span:16},{default:t.withCtx(()=>[t.createElementVNode("div",$nt,[t.createElementVNode("div",Dnt,[t.createTextVNode(t.toDisplayString(t.unref(a)("messageContent"))+" ",1),t.unref(i).playMsg===1?(t.openBlock(),t.createElementBlock("div",Pnt," TTS"+t.toDisplayString(t.unref(a)("textToSpeech")),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"css-text-no-select cursor-pointer hover:opacity-60",onClick:m[1]||(m[1]=(...D)=>t.unref(l)&&t.unref(l)(...D))},[t.createVNode(N,{modelValue:t.unref(c),"onUpdate:modelValue":m[0]||(m[0]=D=>t.isRef(c)?c.value=D:null),class:"item",placement:"bottom-end",trigger:"manual"},{content:t.withCtx(()=>[t.createElementVNode("div",Int,t.toDisplayString(t.unref(i).msgContent),1)]),default:t.withCtx(()=>[t.createElementVNode("span",Mnt,[t.createTextVNode(t.toDisplayString(t.unref(a)("viewContent"))+" ",1),t.createVNode(E,{class:t.normalizeClass(["text-sm duration-500",{"-rotate-90":t.unref(c)}])},{default:t.withCtx(()=>[t.createVNode(w)]),_:1},8,["class"])])]),_:1},8,["modelValue"])])])]),_:1})]),_:1})]),t.unref(i).checkNum!==0?(t.openBlock(),t.createElementBlock("div",Ant,[t.createElementVNode("div",Vnt,[t.unref(i).id?(t.openBlock(),t.createBlock(EL,{key:0,ref:"spotCheckTaskDeviceRef","params-span":t.unref(i).actionType===1?8:24,form:t.unref(i),onChange:t.unref(d),onOnCountStatus:t.unref(f)},null,8,["params-span","form","onChange","onOnCountStatus"])):t.createCommentVNode("",!0)]),t.unref(i).actionType===2?(t.openBlock(),t.createElementBlock("div",Rnt,[t.createElementVNode("div",Bnt,[t.unref(i).id?(t.openBlock(),t.createBlock(Vtt,{key:0,ref:"talkbackReplyRef","task-id":t.unref(i).id},null,8,["task-id"])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",Fnt,[t.createElementVNode("div",znt,[t.createElementVNode("div",Unt,[t.createVNode(_,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),t.createElementVNode("div",jnt,t.toDisplayString(t.unref(a)("theDeviceYouAreSpotCheckingIsOffline")),1),t.createElementVNode("div",Wnt,t.toDisplayString(t.unref(a)("cannotSupportThisSpotCheck")),1)])])]))])):(t.openBlock(),t.createElementBlock("div",Hnt,[t.unref(i).checkNum!==0?(t.openBlock(),t.createElementBlock("div",Gnt,[t.createElementVNode("div",Knt,[t.createElementVNode("div",Ynt,[t.createVNode(b,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:t.withCtx(()=>[t.createElementVNode("div",_ot,[t.createElementVNode("div",bot,[t.createElementVNode("div",wot,[t.createVNode(_,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),t.createElementVNode("div",Cot,t.toDisplayString(t.unref(i).checkNum||"- -"),1)]),t.createElementVNode("div",Eot,[t.createElementVNode("div",kot,[t.createVNode(_,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),t.createElementVNode("div",vot,t.toDisplayString(t.unref(i).finishNum||"- -"),1)]),t.createElementVNode("div",Sot,[t.createElementVNode("div",Not,[t.createVNode(_,{name:"base-danger-state","class-name":"w-[16px] h-[16px]"})]),t.createElementVNode("div",xot,t.toDisplayString(t.unref(i).notFinishNum||"- -"),1)])])]),default:t.withCtx(()=>[t.createElementVNode("ul",qnt,[t.createElementVNode("li",Znt,[t.createElementVNode("span",Jnt,t.toDisplayString(t.unref(a)("numberOfPeopleToBeChecked")),1),t.createElementVNode("div",Xnt,t.toDisplayString(t.unref(i).checkNum||"- -"),1)]),t.createElementVNode("li",Qnt,[t.createElementVNode("span",eot,t.toDisplayString(t.unref(a)("offlineStatus")),1),t.createElementVNode("div",tot,t.toDisplayString(t.unref(i).offLineNum||"- -"),1)]),t.createElementVNode("li",not,[t.createElementVNode("span",oot,t.toDisplayString(t.unref(a)("temporaryGroups")),1),t.createElementVNode("div",rot,t.toDisplayString(t.unref(i).intercomGroupTemNum||"- -"),1)])]),t.createElementVNode("ul",aot,[t.unref(i).checkStyle===1?(t.openBlock(),t.createElementBlock("li",iot,[t.createElementVNode("span",sot,t.toDisplayString(t.unref(a)("waitingToReceive")),1),t.createElementVNode("div",lot,t.toDisplayString(t.unref(i).beReceiveNum||"- -"),1)])):t.createCommentVNode("",!0),t.unref(i).checkStyle===1?(t.openBlock(),t.createElementBlock("li",cot,[t.createElementVNode("span",dot,t.toDisplayString(t.unref(a)("receiving")),1),t.createElementVNode("div",uot,t.toDisplayString(t.unref(i).receivingNum||"- -"),1)])):t.createCommentVNode("",!0),t.createElementVNode("li",fot,[t.createElementVNode("span",pot,t.toDisplayString(t.unref(a)("completed")),1),t.createElementVNode("div",hot,t.toDisplayString(t.unref(i).finishNum||"- -"),1)]),t.createElementVNode("li",mot,[t.createElementVNode("span",got,t.toDisplayString(t.unref(a)("uncompleted")),1),t.createElementVNode("div",yot,t.toDisplayString(t.unref(i).notFinishNum||"- -"),1)])])]),_:1})]),t.createElementVNode("div",Tot,[t.unref(i).id?(t.openBlock(),t.createBlock(EL,{key:0,ref:"spotCheckTaskDeviceRef","params-span":24,form:t.unref(i),onChange:t.unref(d),onOnCountStatus:t.unref(f)},null,8,["form","onChange","onOnCountStatus"])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Lot,[Oot,t.unref(u)?(t.openBlock(),t.createElementBlock("div",$ot,[t.createElementVNode("div",Dot,[t.createVNode(_,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"}),t.createElementVNode("div",Pot,t.toDisplayString(t.unref(a)("groupMemberStatusAbnormalityPreventsSpotCheck")),1)])])):t.createCommentVNode("",!0)])])):(t.openBlock(),t.createElementBlock("div",Iot,[t.createElementVNode("div",Mot,[t.createElementVNode("div",Aot,[t.createVNode(_,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),t.createElementVNode("div",Vot,t.toDisplayString(t.unref(a)("theDeviceYouAreSpotCheckingIsOffline")),1),t.createElementVNode("div",Rot,t.toDisplayString(t.unref(a)("cannotSupportThisSpotCheck")),1)])])]))]))],8,qtt)),[[T,t.unref(s)]]),t.createElementVNode("div",Bot,[t.createElementVNode("div",Fot,[t.createElementVNode("div",null,[t.createVNode(E,{class:"mr-1 text-sm"},{default:t.withCtx(()=>[t.createVNode(v)]),_:1}),t.unref(i).checkType===2?(t.openBlock(),t.createElementBlock("span",zot,t.toDisplayString(t.unref(a)("randomCheck")),1)):(t.openBlock(),t.createElementBlock("span",Uot,[t.unref(i).checkScope===1?(t.openBlock(),t.createElementBlock("span",jot,t.toDisplayString(t.unref(a)("regionalSpotCheck")),1)):t.unref(i).checkScope===2?(t.openBlock(),t.createElementBlock("span",Wot,t.toDisplayString(t.unref(a)("departmentSpotCheck")),1)):t.unref(i).checkScope===3?(t.openBlock(),t.createElementBlock("span",Hot,t.toDisplayString(t.unref(a)("deviceSpotCheck")),1)):t.createCommentVNode("",!0)]))])]),t.createElementVNode("div",null,[t.createVNode(x,{type:"primary",class:"button_default buttonBox min-w-[100px]",onClick:t.unref(p)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("cancel")),1)]),_:1},8,["onClick"]),t.createVNode(x,{class:"button_function buttonBox min-w-[100px]",onClick:t.unref(h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("complete")),1)]),_:1},8,["onClick"])])])])])],4)):t.createCommentVNode("",!0)}}}),[["__scopeId","data-v-e246ad8e"]]);function Kot({emit:e}){const n=t.ref(!1);t.ref([]);const o=t.ref([]),r=t.ref("");t.ref(400),t.ref(null);const i=t.ref(null);t.ref();const a=t.ref();t.watch(()=>r.value,p=>{r.value=p.replace(/\s/g,"")});function s(){c([]),a.value.setSelectedList(o.value),d(!1)}function l(p){o.value.splice(p,1),a.value.setSelectedList(o.value)}function c(p=[]){o.value=[...p]}function d(p){n.value=typeof p=="boolean"?p:!n.value,e("on-selectedDataList",o.value)}async function f(){const p=await tB({spotCheckSupport:1});if(p.code===200)return p.data}function u(p){o.value=p.selectedDataList,e("on-selected-data-list",o.value)}return{setSelectedDataList:c,getData:f,abortController:i,selectedDataList:o,clearSelectedData:s,deleteSelectList:l,onSelectedData:u,hyOrgTreeRef:a}}const Yot={class:"flex flex-col w-full h-full"},qot={class:"flex justify-between items-center h-[40px]"},Zot={class:"flex-1"},Jot={class:"text-hy-text-secondary ml-3"},Xot={class:"flex-1 flex items-center justify-end"},Qot={class:"text-xs"},ert={class:"flex items-center clickBox cursor-pointer"},trt={class:"text-hy-text-primary"},nrt=["element-loading-text"],ort={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},rrt={class:"flex-grow h-0 w-full equipment vbtTable"},art={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col ml-2"},irt={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},srt={class:"r-f tac flex flex-col items-center justify-center"},lrt={class:"mt-3"},crt={class:"flex-grow w-0 pl-2 box-border truncate"},drt={class:"flex-shrink-0"},urt=t.defineComponent({__name:"select-depart-ment",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(e,{expose:n,emit:o}){const r=e,i=o,{setSelectedDataList:a,getData:s,abortController:l,selectedDataList:c,clearSelectedData:d,deleteSelectList:f,onSelectedData:u,hyOrgTreeRef:p}=Kot({emit:i});return t.onMounted(()=>{a(r.initSelectedDataList)}),t.onUnmounted(()=>{l.value&&l.value.abort()}),n({setSelectedDataList:a,clearSelectedData:d,getData:s}),(h,g)=>{const m=t.resolveComponent("el-button"),_=t.resolveComponent("svg-icon"),b=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",Yot,[t.createElementVNode("div",qot,[t.createElementVNode("div",Zot,[t.createTextVNode(t.toDisplayString(t.unref(le)("allDepartments")),1),t.createElementVNode("span",Jot,t.toDisplayString(t.unref(le)("doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt")),1)]),t.createElementVNode("div",Xot,[t.withDirectives(t.createVNode(m,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:t.unref(d)},{default:t.withCtx(()=>[t.createElementVNode("span",Qot,t.toDisplayString(t.unref(le)("clear")),1)]),_:1},8,["onClick"]),[[t.vShow,t.unref(c).length!==0]]),t.createElementVNode("div",ert,[t.createElementVNode("span",null,[t.createTextVNode(t.toDisplayString(t.unref(le)("selected"))+" ",1),t.createElementVNode("span",trt,t.toDisplayString(t.unref(c).length),1),t.createTextVNode(" "+t.toDisplayString(t.unref(le)("individual-0")),1)])])])]),t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":t.unref(le)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[t.createElementVNode("div",ort,[t.createElementVNode("div",rrt,[t.createVNode(l7,{ref_key:"hyOrgTreeRef",ref:p,"show-checkbox":!0,"parent-checkbox":!1,"get-data":t.unref(s),"default-checked-list":t.unref(c),onOnSelectedData:t.unref(u)},null,8,["get-data","default-checked-list","onOnSelectedData"])])]),t.createElementVNode("ul",art,[t.withDirectives(t.createElementVNode("li",irt,[t.createElementVNode("div",srt,[t.createVNode(_,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),t.createElementVNode("div",lrt,t.toDisplayString(t.unref(le)("youHaveNotSelectedADepartmentYet")),1)])],512),[[t.vShow,t.unref(c).length===0]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),(C,w)=>(t.openBlock(),t.createElementBlock("li",{key:`${C.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border clickBox border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[t.createElementVNode("div",crt,t.toDisplayString(C.companyName||C.groupName||C.orgName),1),t.createElementVNode("div",drt,[t.createVNode(ra,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:t.unref(le)("delete"),onClick:E=>t.unref(f)(w)},null,8,["tips","onClick"])])]))),128))])],8,nrt)),[[b,!1]])])}}});function frt({emit:e}){const n=t.ref(!1),o=t.ref([]),r=t.ref([]),i=t.ref(""),a=t.ref(null),s=t.ref(null),l=t.ref();t.watch(()=>i.value,_=>{i.value=_.replace(/\s/g,"")});function c(){d([]),l.value.setSelectedList(o.value),e("on-selected-data-list",o.value)}function d(_=[]){o.value=[..._]}function f(_){if(!_.disabled){if(_.type===3){const b=o.value.findIndex(C=>C.deviceId===_.deviceId);b===-1?o.value.push({..._}):o.value.splice(b,1)}else{clearTimeout(a.value);const b={nonExistent:[],existent:[]},C=_.childrenDeviceList||[];C.length&&(C.forEach(w=>{r.value.findIndex(N=>N.deviceId===w.deviceId)===-1&&(o.value.findIndex(S=>S.deviceId===w.deviceId)===-1?b.nonExistent.push({...w}):b.existent.push({...w}))}),b.nonExistent.length?b.nonExistent.forEach(w=>{o.value.push({...w})}):b.existent.forEach(w=>{const E=o.value.findIndex(N=>N.deviceId===w.deviceId);o.value.splice(E,1)}))}e("on-selected-data-list",[...o.value])}}function u(){s.value&&s.value.abort(),s.value=new AbortController}async function p(){n.value=!0;const _=await tB({spotCheckSupport:1});return u(),_.data}function h(_,b){const C=[{type:1,svgName:"tree-icon-law-enforcement"},{type:3,svgName:"tree-icon-dispatching-desk"},{type:4,svgName:"tree-icon-duty-desk"},{type:5,svgName:"tree-icon-phone"},{type:6,svgName:"tree-icon-control-the-ball"},{type:7,svgName:"tree-icon-ipc"},{type:8,svgName:"tree-icon-safety-hat"},{type:9,svgName:"tree-icon-flashlight"},{type:10,svgName:"tree-icon-work-card"},{type:11,svgName:"tree-icon-vehicle"},{type:12,svgName:"tree-icon-uav"},{type:13,svgName:"tree-icon-ipc"},{type:14,svgName:"tree-icon-obd"}],w=C.findIndex(E=>E.type===_);return w!==-1?g(C[w],b):"tree-icon-walkie-talkie"}function g(_,b){return _.type===7||_.type===13?b===1?_.svgName:`${_}-off-line`:_.svgName}function m(_){o.value=_.selectedDataList,e("on-selected-data-list",o.value)}return{setSelectedDataList:d,getData:p,abortController:s,selectedDataList:o,clearSelectedData:c,deviceClick:f,checkDeviceTypeFn:h,onSelectedData:m,hyDeviceTreeRef:l}}const prt={class:"flex flex-col w-full h-full"},hrt={class:"flex justify-between items-center h-[40px]"},mrt={class:"flex mr-2"},grt={class:"flex items-center"},yrt={class:"text-xs"},_rt={class:"flex items-center clickBox cursor-pointer"},brt={class:"text-hy-text-primary"},wrt=["element-loading-text"],Crt={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},Ert={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col ml-2"},krt={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},vrt={class:"flex flex-col justify-center items-center"},Srt={class:"mt-3"},Nrt={class:"flex-grow w-0 pl-2 flex box-border"},xrt={class:"truncate flex-grow w-0"},Trt={class:"select-none truncate mx-[4px] text-hy-text-main"},Lrt={class:"flex-shrink-0"},Ort=t.defineComponent({__name:"select-device",props:{onlineStateFlag:{default:1},initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(e,{expose:n,emit:o}){const r=e,i=o,{setSelectedDataList:a,getData:s,abortController:l,selectedDataList:c,clearSelectedData:d,deviceClick:f,checkDeviceTypeFn:u,onSelectedData:p,hyDeviceTreeRef:h}=frt({emit:i});return t.onMounted(()=>{a(r.initSelectedDataList),s()}),t.onUnmounted(()=>{l.value&&l.value.abort()}),n({setSelectedDataList:a,clearSelectedData:d,getData:s}),(g,m)=>{const _=t.resolveComponent("el-button"),b=t.resolveComponent("svg-icon"),C=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",prt,[t.createElementVNode("div",hrt,[t.createElementVNode("div",mrt,t.toDisplayString(t.unref(le)("allDevices")),1),t.createElementVNode("div",grt,[t.withDirectives(t.createVNode(_,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:t.unref(d)},{default:t.withCtx(()=>[t.createElementVNode("span",yrt,t.toDisplayString(t.unref(le)("clear")),1)]),_:1},8,["onClick"]),[[t.vShow,t.unref(c).length!==0]]),t.createElementVNode("div",_rt,[t.createElementVNode("span",null,[t.createTextVNode(t.toDisplayString(t.unref(le)("selected"))+" ",1),t.createElementVNode("span",brt,t.toDisplayString(t.unref(c).length),1),t.createTextVNode(" "+t.toDisplayString(t.unref(le)("individual-0")),1)])])])]),t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":t.unref(le)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[t.createElementVNode("div",Crt,[t.createVNode(s7,{ref_key:"hyDeviceTreeRef",ref:h,"item-size":36,"get-data":t.unref(s),"show-online-only":r.onlineStateFlag===1,"show-checkbox":!0,"hide-org-no-data":!0,"parent-checkbox":!1,onOnSelectedData:t.unref(p)},null,8,["get-data","show-online-only","onOnSelectedData"])]),t.createElementVNode("ul",Ert,[t.withDirectives(t.createElementVNode("li",krt,[t.createElementVNode("div",vrt,[t.createVNode(b,{name:"base-no-data","class-name":"!w-[50px] !h-[50px]"}),t.createElementVNode("div",Srt,t.toDisplayString(t.unref(le)("youHaveNotSelectedADeviceYet")),1)])],512),[[t.vShow,t.unref(c).length===0]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),w=>(t.openBlock(),t.createElementBlock("li",{key:`${w.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border cursor-pointer border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[t.createElementVNode("div",Nrt,[t.createVNode(b,{name:t.unref(u)(w.deviceType||w.type,w.onlineState),"class-name":"w-[16px] h-[16px]",class:t.normalizeClass(w.onlineState===1?"text-hy-text-main":"text-hy-info")},null,8,["name","class"]),t.createElementVNode("div",xrt,[t.createElementVNode("span",Trt,t.toDisplayString(w.devName),1)])]),t.createElementVNode("div",Lrt,[t.createVNode(ra,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:t.unref(le)("delete"),onClick:E=>t.unref(f)(w)},null,8,["tips","onClick"])])]))),128))])],8,wrt)),[[C,!1]])])}}});function $rt({emit:e}){const n=t.ref(!1),o=t.ref(!1),r=t.ref(400),i=t.ref({renderSize:30,offsetSize:10}),a=t.ref([]),s=t.ref([]),l=t.ref("");t.ref(400);const c=t.ref(null);t.watch(()=>l.value,C=>{l.value=C.replace(/\s/g,"")});function d(C=[]){C.length!==0&&(C.forEach(w=>{s.value.findIndex(N=>N.id===w.id)===-1&&s.value.push(w)}),t.nextTick(()=>{n.value=s.value.length===a.value.length,e("on-selected-data-list",s.value)}))}function f(C=[]){s.value=[...C]}function u(){return[...s.value]}function p(){n.value=!n.value,n.value?s.value=[...a.value]:s.value=[],e("on-selected-data-list",s.value)}function h(C){return s.value.findIndex(E=>E.id===C.id)!==-1?"is-checked":""}async function g(C){const w=s.value.findIndex(E=>E.id===C.id);w===-1?m(C):_(w)}function m(C){s.value.push(C),n.value=s.value.length===a.value.length,e("on-selected-data-list",s.value)}function _(C){s.value.splice(C,1),n.value=s.value.length===a.value.length,e("on-selected-data-list",s.value)}async function b(){o.value=!0;const{code:C,data:w=[]}=await eet({query:l.value,spotCheckSupport:1,onlineState:1});C===200&&(a.value=[],w.forEach(E=>{E.deviceList.length!==0?a.value.unshift(E):a.value.push(E)}),o.value=!1)}return{checkAll:n,loading:o,treeHeight:r,scrollYRenderConfig:i,deviceList:a,selectedDataList:s,filterValue:l,timeOut:c,addSelectedDataList:d,setSelectedDataList:f,getSelectedDataList:u,setCheckAll:p,judgeSelectedFn:h,deviceClick:g,addSelectList:m,deleteSelectList:_,getData:b}}const Drt={class:"flex flex-col w-full h-full"},Prt={class:"flex justify-between items-center h-[30px]"},Irt={class:"el-checkbox !mr-2"},Mrt=[t.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],Art={class:"text-hy-text-primary"},Vrt=["element-loading-text"],Rrt={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},Brt={class:"flex items-center justify-center p-[8px_8px_4px]"},Frt={class:"text-hy-text-main"},zrt={class:"flex-grow h-0 w-full px-2 box-border overflow-y-scroll overflow-x-hidden"},Urt=["onClick"],jrt={class:"flex items-center justify-center"},Wrt={class:"el-checkbox relative !mr-[6px]"},Hrt=[t.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],Grt={class:"treeDepartment cursor_pointer flex items-center justify-between w-full text-[14px] font-bold text-hy-text-main"},Krt={class:"r-f w_100vh flex w-full"},Yrt={class:"flex-grow w-0 over_one_line truncate"},qrt={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col ml-2"},Zrt={class:"h-full bg-hy-dialog-bg-2 border rounded px-2 box-border border-hy-bg-2 flex justify-center text-hy-text-secondary items-center"},Jrt={class:"r-f tac flex flex-col justify-center items-center"},Xrt={class:"mt-3"},Qrt={class:"flex-grow w-0 pl-2 box-border truncate"},eat={class:"flex-shrink-0"},tat=t.defineComponent({__name:"select-electronic-fence",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(e,{expose:n,emit:o}){const r=e,i=o,{setSelectedDataList:a,getData:s,setCheckAll:l,checkAll:c,selectedDataList:d,loading:f,filterValue:u,deviceList:p,deviceClick:h,judgeSelectedFn:g,deleteSelectList:m}=$rt({emit:i});return t.onMounted(()=>{a(r.initSelectedDataList),s()}),n({setSelectedDataList:a,getData:s}),(_,b)=>{const C=t.resolveComponent("svg-icon"),w=t.resolveComponent("el-button"),E=t.resolveComponent("el-input"),N=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",Drt,[t.createElementVNode("div",Prt,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("electronicFence")),1),t.createElementVNode("div",{class:"flex items-center clickBox",onClick:b[0]||(b[0]=(...S)=>t.unref(l)&&t.unref(l)(...S))},[t.createElementVNode("div",Irt,[t.createElementVNode("span",{class:t.normalizeClass([{"is-checked":t.unref(c)},"el-checkbox__input"])},Mrt,2)]),t.createElementVNode("span",null,[t.createTextVNode(t.toDisplayString(t.unref(le)("selected"))+" ",1),t.createElementVNode("span",Art,t.toDisplayString(t.unref(d).length),1),t.createTextVNode(" "+t.toDisplayString(t.unref(le)("individual-0")),1)])])]),t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":t.unref(le)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[t.createElementVNode("div",Rrt,[t.createElementVNode("div",Brt,[t.createVNode(E,{modelValue:t.unref(u),"onUpdate:modelValue":b[1]||(b[1]=S=>t.isRef(u)?u.value=S:null),placeholder:t.unref(le)("filterByElectronicFenceName"),class:"table-search-main w-[254px] text-[12px]",onClear:b[2]||(b[2]=S=>t.unref(s)()),onKeyup:b[3]||(b[3]=t.withKeys(S=>t.unref(s)(),["enter"]))},{append:t.withCtx(()=>[t.createElementVNode("div",Frt,[t.createVNode(w,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:t.unref(s)},{default:t.withCtx(()=>[t.createVNode(C,{name:"sys-button-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:1},8,["modelValue","placeholder"])]),t.createElementVNode("div",zrt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(p),S=>(t.openBlock(),t.createElementBlock("div",{key:S.id,class:"hover:shadow-[0_0_10px_0_inset] bg-hy-dialog-bg-2 hover:shadow-hy-border-1 hover:border-hy-border-1 border-hy-dialog-bg-2 flex-grow flex h-[32px] items-center border rounded my-2 box-border px-2 cursor-pointer",onClick:v=>t.unref(h)(S)},[t.createElementVNode("div",jrt,[t.createElementVNode("div",Wrt,[t.createElementVNode("span",{class:t.normalizeClass([t.unref(g)(S),"el-checkbox__input"])},Hrt,2)])]),t.createElementVNode("div",Grt,[t.createElementVNode("div",Krt,[t.createElementVNode("span",Yrt,t.toDisplayString(S.railName),1),t.withDirectives(t.createElementVNode("span",{class:"flex-shrink-0 ml-1 text-hy-text-main"}," ("+t.toDisplayString(S.deviceList.length)+") ",513),[[t.vShow,S.deviceList.length]])])])],8,Urt))),128))])]),t.createElementVNode("ul",qrt,[t.withDirectives(t.createElementVNode("li",Zrt,[t.createElementVNode("div",Jrt,[t.createVNode(C,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),t.createElementVNode("div",Xrt,t.toDisplayString(t.unref(le)("youHavenTSelectedAFenceYet")),1)])],512),[[t.vShow,t.unref(d).length===0]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(d),(S,v)=>(t.openBlock(),t.createElementBlock("li",{key:`${S.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border cursor-pointer border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[t.createElementVNode("div",Qrt,t.toDisplayString(S.railName),1),t.createElementVNode("div",eat,[t.createVNode(ra,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:t.unref(le)("delete"),onClick:x=>t.unref(m)(v)},null,8,["tips","onClick"])])]))),128))])],8,Vrt)),[[N,t.unref(f)]])])}}});function nat({emit:e}){const n=t.ref([{label:le("templateName"),prop:"templateName",isSearch:!0},{label:le("operation"),width:80,align:"center",slotName:"operator"}]),o=t.ref({checkStyle:null}),r=t.ref(!1),i=t.ref(null),a=t.ref();function s(f){return new Promise((u,p)=>{const{checkStyle:h=null}=f||{};o.value.checkStyle=h,r.value=!0,i.value=u,t.nextTick(()=>{l()})})}function l(){a.value.getTableData()}function c(f){i.value(f),e("on-selected",f),d()}function d(){r.value=!1}return{$t:le,tableColumns:n,requestParams:o,dialogVisible:r,successfulCallback:i,AppTableRef:a,show:s,selected:c,close:d}}const oat={class:"deleteBox c_fff text-hy-text-main"},rat={class:"pos_r dialog_header relative text-hy-text-main text-[18px] text-center p-[4px] font-bold z-[1px] bg-hy-dialog-bg-1 rounded-[12px_12px_0_0] font-[Helvetica]"},aat={class:"absolute right-[-2px] top-[-2px]"},iat={class:"dialog_body h-[60vh] p-[0_30px_30px]"},sat=t.defineComponent({__name:"select-template",emits:["on-selected"],setup(e,{expose:n,emit:o}){const r=o,{$t:i,dialogVisible:a,close:s,tableColumns:l,requestParams:c,selected:d,AppTableRef:f,show:u}=nat({emit:r});return n({show:u}),(p,h)=>{const g=t.resolveComponent("svg-icon"),m=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(m,{modelValue:t.unref(a),"onUpdate:modelValue":h[0]||(h[0]=_=>t.isRef(a)?a.value=_:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"640px"},{default:t.withCtx(()=>[t.createElementVNode("div",oat,[t.createElementVNode("div",rat,[t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("spotCheckTemplate")),1),t.createElementVNode("div",aat,[t.createVNode(g,{width:"26",height:"26",name:"icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:t.withModifiers(t.unref(s),["stop"])},null,8,["onClick"])])]),t.createElementVNode("div",iat,[t.createVNode(wv,{ref_key:"AppTableRef",ref:f,"pager-count":5,"column-list":t.unref(l),"search-arr":[],"search-form":t.unref(c),"req-url":"spotCheck/template/page","default-get-data":!1},{tableLeft:t.withCtx(()=>[]),operator:t.withCtx(({row:_})=>[t.createVNode(ra,{width:12,height:12,name:"icon-choice",class:"!w-[24px] !h-[24px]",tips:t.unref(i)("edit"),onClick:b=>t.unref(d)(_)},null,8,["tips","onClick"])]),_:1},8,["column-list","search-form"])])])]),_:1},8,["modelValue"])}}});function lat({emit:e}){const n=t.ref({everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1}),o=(ae,re,fe)=>{let me="";for(const he in n.value)n.value[he]&&(me+=`${he.replace(/(^everyday)|(everyday$)/g,"")},`);me.length?fe():fe(new Error(le("pleaseSelectASpecificWeek")))},r=t.ref(null),i=t.ref(!1),a=t.ref(!1),s=t.ref([]),l=t.ref(null),c=t.ref(le("immediatelyInitiateARollCallSpotCheck")),d=t.ref(!1),f=t.ref(null),u=t.ref(!1),p=t.ref({limitNum:10,onlineStateFlag:1,checkType:1,checkScope:1,checkStyle:1,actionType:1,actionTime:5,deviceIdList:[],mapRailIdList:[],orgIdList:[],msgContent:"",playMsg:!1,templateName:"",taskDateType:1,apDateListV2:null,apDtmV2:null}),h=t.ref({limitNum:10,onlineStateFlag:1,actionTime:5,actionType:1,checkScope:1,checkStyle:1,checkType:1,deviceIdList:[],mapRailIdList:[],orgIdList:[],msgContent:"",playMsg:!1,templateName:"",taskDateType:1,apDateListV2:null,apDtmV2:null}),g=t.ref({limitNum:[{required:!0,message:le("pleaseEnterTheRandomNumber"),trigger:"blur"}],templateName:[{required:!0,message:le("pleaseEnterTheTemplateName"),trigger:"blur"}],msgContent:[{required:!0,message:le("pleaseFillInTheMessageToBeSent"),trigger:"blur"}],everydayJson:[{required:!0,validator:o,trigger:"change"}],taskDateTime:[{required:!0,message:le("pleaseSelectTheExecutionTime"),trigger:"change"}],taskDateType:[{required:!0,message:le("pleaseSelectTheExecutionDate"),trigger:"change"}],apDateListV2:[{required:!0,message:le("selectOneOrMoreDates"),trigger:"change"}],apDtmV2:[{required:!0,message:le("pleaseSelectASpecificTimePeriod"),trigger:"change"}]}),m=t.ref(),_=t.ref(),b=t.ref(),C=t.ref(),w=t.ref(),E=t.ref();t.watch(()=>h.value.limitNum,ae=>{typeof ae=="string"&&(ae=ae.replace(/[^.\d]/g,""),ae=ae.replace(".",""),h.value.limitNum=ae)}),t.watch(()=>d.value,ae=>{q()},{immediate:!0});function N(){m.value.validateField("limitNum")}function S(ae){if(ae!==h.value.onlineStateFlag)return new Promise((re,fe)=>{if(s.value.length!==0&&h.value.checkScope===3&&ae===1)ll({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:le("prompt"),tipsContent:`<div><p>${le("switchingTheSpotCheckDeviceWillClearTheSelectedData")}</p><p>${le("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:le("cancel-0"),closeBtnType:"primary",submitBtnText:le("confirm-3"),submitBtnType:"default"},()=>{const me=K();me&&(me.clearSelectedData(),me.getData()),h.value.onlineStateFlag=ae,re(0)});else{if(h.value.onlineStateFlag=ae,h.value.checkScope===3){const me=K();me&&me.getData()}re(0)}})}function v(ae){let re=h.value.limitNum-0;if(ae===1)re+=1;else{if(re<=1){ft.error(le("atLeast1RandomDevice"));return}re-=1}h.value.limitNum=re}function x(ae,re){const{checkScope:fe=3,contentState:me=3,onlineStateFlag:he=1,copyType:W=!1,wrapperClosable:te=!1,title:ue=le("immediatelyInitiateARollCallSpotCheck"),selectedDataList:de=[],successfulCallback:_e=null}=re||{};if(d.value){if(me===1)if(fe===h.value.checkScope){const Ee=K();Ee&&Ee.addSelectedDataList(de)}else R(fe).then(()=>{I([],!0);const Ee=K();Ee&&Ee.addSelectedDataList(de)});else return ft.warning(le("repeat"));return}r.value=_e,a.value=te,l.value=me,c.value=ue,m.value&&m.value.resetFields(),h.value={...p.value},h.value.limitNum=10,h.value.checkScope=fe,h.value.onlineStateFlag=he,me===1?de.length&&I(de,!0):I([],!0),n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},ae&&typeof ae=="number"?Y(ae,W):T(!0)}function T(ae){d.value=typeof ae=="boolean"?ae:!d.value}function D(){m.value.clearValidate("everydayJson"),m.value.clearValidate("apDateListV2"),m.value.clearValidate("apDtmV2")}function V(ae){var re;(re=R(ae))==null||re.then(()=>{I([],!0)})}function R(ae){if(h.value.checkScope!==ae)return new Promise((re,fe)=>{s.value.length!==0?ll({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:le("prompt"),tipsContent:`<div><p>${le("switchingTheSpotCheckRangeWillClearTheSelectedData")}</p><p>${le("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:le("cancel-0"),closeBtnType:"primary",submitBtnText:le("confirm-3"),submitBtnType:"default"},()=>{h.value.checkScope=ae,re(0)}):(h.value.checkScope=ae,re(0))})}function q(){d.value?u.value=!0:(f.value&&(clearTimeout(f.value),f.value=null),f.value=setTimeout(()=>{u.value=d.value,clearTimeout(f.value),f.value=null},500))}function K(){const ae=h.value.checkScope;return ae===1?_.value:ae===2?b.value:ae===3?C.value:null}function G(ae){const{checkScope:re=1,mapRailList:fe=[],orgList:me=[],deviceIdList:he=[],deviceList:W=[]}=ae||{};let te=[];return re===1&&fe.length?te=fe:re===2&&me.length?te=me:re===3&&W.length&&(te=W.map(ue=>({...ue,type:3}))),te||[]}function I(ae,re=!1){if(s.value=ae,re){const fe=K();fe&&fe.setSelectedDataList(ae)}}function P(){const ae=h.value.checkScope;let re="",fe=[];return ae===1?(re="mapRailIdList",fe=s.value.map(me=>me.id)):ae===2?(re="orgIdList",fe=s.value.map(me=>me.id)):ae===3&&(re="deviceIdList",fe=s.value.map(me=>me.deviceId)),{dataList:fe,name:re}}function M(){m.value.validate(ae=>{if(ae){const re={...h.value};if(re.playMsg=re.playMsg?1:0,re.checkType===1){const fe=P();if(re[`${fe.name}`]=fe.dataList,fe.dataList.length===0)return ft.error(le("pleaseSelectTheSpotCheckRange"))}else re.checkScope=null;t.nextTick(()=>{l.value===2?U(re):l.value===3?Z(re):oe(re)})}})}function O(ae){var re;ae&&((re=w.value)==null||re.show(ae))}function $(){I([],!0),T(!1),r.value=null}function F(){$()}function Y(ae,re){l.value===2?B(ae,re):l.value===3&&X(ae,re)}async function B(ae,re=!1){i.value=!0;const{code:fe,data:me}=await qet({id:ae});if(fe===200){const he=me;if(me.checkScope,he.taskDateType===2)he.weekDate.split(",").forEach(ue=>{ue=Number.parseFloat(ue),ue===1?n.value.everyday1=!0:ue===2?n.value.everyday2=!0:ue===3?n.value.everyday3=!0:ue===4?n.value.everyday4=!0:ue===5?n.value.everyday5=!0:ue===6?n.value.everyday6=!0:ue===7&&(n.value.everyday7=!0)});else if(he.taskDateType===3){const te=[];he.apDateList.forEach(ue=>{te.push(ue.apDtm.split(" 00:00:00")[0])}),he.apDateListV2=te}else he.taskDateType===4&&(he.apDtmV2=[he.apStartDtm,he.apEndDtm]);he.taskDateTime=[he.taskDateStartTime,he.taskDateEndTime],h.value={...he,playMsg:he.playMsg===1},re&&(h.value.id=null);const W=G(he);I(W),t.nextTick(()=>{i.value=!1,d.value||T(!0)})}}async function U(ae){if(ae.taskDateStartTime=h.value.taskDateTime[0],ae.taskDateEndTime=h.value.taskDateTime[1],h.value.taskDateType===2){let me="";for(const he in n.value)n.value[he]&&(me+=`${he.replace(/(^everyday)|(everyday$)/g,"")},`);if(me.length===0)return ft.error(le("pleaseSelectASpecificWeek"));ae.weekDate=me.substring(me.length-1,0)}else if(h.value.taskDateType===3){if(!h.value.apDateListV2||h.value.apDateListV2.length===0)return ft.error(le("pleaseSelectADate"));ae.apDateList=h.value.apDateListV2.map(me=>({apDtm:`${me} 00:00:00`}))}else if(h.value.taskDateType===4){if(!h.value.apDtmV2||h.value.apDtmV2.length===0)return ft.error(le("pleaseSelectATimePeriod"));ae.apStartDtm=`${h.value.apDtmV2[0]} 00:00:00`,ae.apEndDtm=`${h.value.apDtmV2[1]} 00:00:00`}const{code:re,data:fe={}}=await Zet(ae);re===200&&(ft.success(le("operationSuccessful")),e("on-submit"),r.value&&r.value(),$())}async function J(){const{id:ae}=await E.value.show({checkStyle:l.value===2?1:null});ae&&(m.value&&m.value.resetFields(),h.value={...p.value},n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},s.value=[],await X(ae,!0),ft.success(le("templateApplied")))}async function X(ae,re=!1){i.value=!0;const{code:fe,data:me}=await Jet({id:ae});if(fe===200){h.value={...me,playMsg:me.playMsg===1},re&&(h.value.id=null);const he=G(h.value);I(he),t.nextTick(()=>{i.value=!1,d.value||T(!0)})}}async function Z(ae){const{code:re}=await Xet(ae);re===200&&(ft.success(le("operationSuccessful")),e("on-submit"),r.value&&r.value(),$())}async function oe(ae){const{code:re,data:fe={}}=await Qet(ae);re===200&&(ft.success(le("operationSuccessful")),r.value&&r.value(),e("on-submit"),O(fe.id),$())}return{dialogVisible:d,animationVisible:u,animationTime:f,setDialogVisible:T,setAnimationVisible:q,setCheckScope:R,setSelectedDataList:I,getSelectedDataList:P,onSubmit:M,viewSpotCheckShow:O,close:$,onClose:F,detail:Y,selectTemplateShow:J,taskDateTypeFn:D,changeCheckScope:V,everydayJson:n,formRef:m,loading:i,selectElectronicFenceRef:_,selectDepartmentRef:b,selectDeviceRef:C,selectTemplateRef:E,viewSpotCheckRef:w,contentState:l,title:c,wrapperClosable:a,form:h,rules:g,$t:le,changeOnlineStateFlag:S,blurLimitNum:N,setRandomNumber:v,selectedDataList:s,show:x}}const bo=e=>(t.pushScopeId("data-v-1e4e7e93"),e=e(),t.popScopeId(),e),cat={key:0,class:"fixed top-0 left-0 bg-[rgba(0,0,0,0.5)] w-full h-full z-[100]"},dat={class:"w-[1080px] h-full"},uat={class:"w-full h-full px-[20px] box-border flex flex-col text-hy-text-main text-xs"},fat={class:"flex justify-between items-center h-[60px]"},pat={class:"font-bold text-lg"},hat=["element-loading-text"],mat={key:0,class:"flex mb-2 flex-shrink-0 rounded bg-backgroundv2 px-3 pt-2 h-[90px] box-border items-center"},gat={class:"text-sm h-[30px] flex items-center"},yat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),_at={key:1,class:"flex mb-2 flex-shrink-0 rounded bg-hy-dialog-bg-2 px-3 pt-2 h-[90px] box-border items-center"},bat={class:"flex-1 mr-4"},wat={class:"text-sm h-[30px] flex items-center"},Cat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Eat={class:"text-sm h-[30px] flex items-center"},kat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),vat={class:"everydayBox leading-[20px]"},Sat={class:"text-xs"},Nat={class:"text-xs"},xat={class:"text-xs"},Tat={class:"text-xs"},Lat={class:"text-xs"},Oat={class:"text-xs"},$at={class:"text-xs"},Dat={class:"text-sm h-[30px] flex items-center"},Pat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Iat={class:"w-full"},Mat={class:"text-sm h-[30px] flex items-center"},Aat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Vat={class:"flex-1 min-w-[220px]"},Rat={class:"text-sm h-[30px] flex items-center"},Bat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Fat={class:"flex items-center flex-grow h-0"},zat={class:"flex-grow w-0 h-full flex flex-col"},Uat={class:"flex"},jat={class:"text-sm h-[30px] flex items-center"},Wat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Hat={class:"text-sm h-[30px] flex items-center"},Gat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Kat={class:"text-sm h-[30px] flex items-center"},Yat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),qat={class:"test h-[32px] flex border border-hy-border-2 rounded box-border overflow-hidden bg-hy-dialog-bg-2 w-full"},Zat={class:"flex-grow w-0 box-border px-1 flex items-center justify-center"},Jat=["placeholder"],Xat={class:"flex flex-col w-[32px] text-auxiliary border-l border-hy-border-2"},Qat={class:"text-sm h-[30px] flex items-center"},eit=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),tit={class:"flex-grow h-0 bg-hy-dialog-bg-4 shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 rounded-[6px] flex items-center justify-center"},nit={class:"tac text-hy-text-secondary text-center"},oit={class:"mt_10 mt-[10px]"},rit={class:""},ait={class:"mt-1"},iit={class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},sit={class:"flex justify-between h-[40px] items-center"},lit={class:"fs_12 p-[10px_20px] text-[12px]"},cit={class:"r-f mb_10 flex mb-[10px]"},dit=bo(()=>t.createElementVNode("span",null,"1、",-1)),uit={class:"r-f mb_10 flex mb-[10px]"},fit=bo(()=>t.createElementVNode("span",null,"2、",-1)),pit={class:"r-f mb_10 flex mb-[10px]"},hit=bo(()=>t.createElementVNode("span",null,"3、",-1)),mit={class:"fs_12 cursor_pointer !text-hy-text-primary cursor-pointer text-[12px]"},git={class:"flex-grow h-0 flex"},yit={class:"flex-1"},_it=bo(()=>t.createElementVNode("div",{class:"mx-[20px] w-[2px] h-[96%] rounded bg-hy-border-2 flex-shrink-0"},null,-1)),bit={class:"w-[33%] h-full flex flex-col"},wit={class:"text-sm h-[30px] flex items-center"},Cit=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Eit={class:"text-sm h-[30px] flex items-center"},kit=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),vit={class:"flex-grow h-0 bg-hy-dialog-bg-4 shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 rounded-[6px] flex items-center justify-center"},Sit={class:"tac text-hy-text-secondary text-center"},Nit={class:"mt-[10px]"},xit={class:"mt-1"},Tit={key:0,class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},Lit={class:"flex-grow h-0"},Oit={class:"text-xs"},$it={class:"mb-2"},Dit={class:"text-sm h-[30px] flex items-center"},Pit=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Iit={class:"mb-2"},Mit={class:"text-sm h-[30px] flex items-center"},Ait=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Vit={class:"flex items-center justify-between h-[80px]"},Rit={class:"text-hy-text-secondary flex items-center"},Bit=Po(t.defineComponent({__name:"edit-spot-check",emits:["on-submit"],setup(e,{expose:n,emit:o}){const r=o,{$t:i,dialogVisible:a,wrapperClosable:s,animationVisible:l,title:c,onClose:d,loading:f,form:u,rules:p,contentState:h,taskDateTypeFn:g,everydayJson:m,changeOnlineStateFlag:_,blurLimitNum:b,setRandomNumber:C,changeCheckScope:w,selectedDataList:E,setSelectedDataList:N,selectTemplateShow:S,onSubmit:v,selectElectronicFenceRef:x,selectDepartmentRef:T,selectDeviceRef:D,selectTemplateRef:V,viewSpotCheckRef:R,show:q,formRef:K}=lat({emit:r});return n({show:q}),(G,I)=>{const P=t.resolveComponent("svg-icon"),M=t.resolveComponent("el-input"),O=t.resolveComponent("el-form-item"),$=t.resolveComponent("el-option"),F=t.resolveComponent("el-select"),Y=t.resolveComponent("el-checkbox"),B=t.resolveComponent("el-date-picker"),U=t.resolveComponent("el-time-picker"),J=Uet,X=t.resolveComponent("el-icon"),Z=Ret,oe=t.resolveComponent("el-popover"),ae=t.resolveComponent("el-form"),re=CL,fe=t.resolveComponent("el-button"),me=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",null,[t.unref(s)&&t.unref(a)?(t.openBlock(),t.createElementBlock("div",cat)):t.createCommentVNode("",!0),t.unref(l)?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass([{hide:!t.unref(a),display:t.unref(a)},"duration-500 bg-hy-dialog-bg-1 rounded-[12px_0_0_12px] border-r-0 border-hy-border-1 fixed right-0 top-[54%] h-[87%] -translate-y-1/2 z-[101] overflow-hidden"]),style:{"animation-iteration-count":"1"}},[t.createElementVNode("div",dat,[t.createElementVNode("div",uat,[t.createElementVNode("div",fat,[t.createElementVNode("div",pat,t.toDisplayString(t.unref(c)),1),t.createVNode(P,{name:"base-sign-out","class-name":"clickBox !w-[28px] !h-[28px]",onClick:t.unref(d)},null,8,["onClick"])]),t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":t.unref(i)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0"},[t.createVNode(ae,{ref_key:"formRef",ref:K,model:t.unref(u),rules:t.unref(p),"label-width":"0px",class:"w-full h-full flex flex-col"},{default:t.withCtx(()=>[t.unref(h)===3?(t.openBlock(),t.createElementBlock("div",mat,[t.createVNode(O,{prop:"templateName",class:"w-full"},{default:t.withCtx(()=>[t.createElementVNode("div",gat,[t.createTextVNode(t.toDisplayString(t.unref(i)("templateName")),1),yat]),t.createVNode(M,{modelValue:t.unref(u).templateName,"onUpdate:modelValue":I[0]||(I[0]=he=>t.unref(u).templateName=he),placeholder:t.unref(i)("pleaseEnterTheTemplateName"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})])):t.unref(h)===2?(t.openBlock(),t.createElementBlock("div",_at,[t.createElementVNode("div",bat,[t.createVNode(O,{prop:"taskDateType"},{default:t.withCtx(()=>[t.createElementVNode("div",wat,[t.createTextVNode(t.toDisplayString(t.unref(i)("executionDate")),1),Cat]),t.createVNode(F,{modelValue:t.unref(u).taskDateType,"onUpdate:modelValue":I[1]||(I[1]=he=>t.unref(u).taskDateType=he),class:"w-full",placeholder:t.unref(i)("pleaseSelectTheExecutionDate"),onChange:t.unref(g)},{default:t.withCtx(()=>[t.createVNode($,{label:t.unref(i)("everyday"),value:1},null,8,["label"]),t.createVNode($,{label:t.unref(i)("specifyAWeek"),value:2},null,8,["label"]),t.createVNode($,{label:t.unref(i)("specifyADate"),value:3},null,8,["label"]),t.createVNode($,{label:t.unref(i)("specifyATimePeriod"),value:4},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])]),_:1})]),t.createElementVNode("div",null,[t.unref(u).taskDateType===2?(t.openBlock(),t.createBlock(O,{key:0,prop:"everydayJson",class:"max-w-[360px]"},{default:t.withCtx(()=>[t.createElementVNode("div",Eat,[t.createTextVNode(t.toDisplayString(t.unref(i)("specifyAWeek")),1),kat]),t.createElementVNode("div",vat,[t.createVNode(Y,{modelValue:t.unref(m).everyday1,"onUpdate:modelValue":I[2]||(I[2]=he=>t.unref(m).everyday1=he)},{default:t.withCtx(()=>[t.createElementVNode("span",Sat,t.toDisplayString(t.unref(i)("monday")),1)]),_:1},8,["modelValue"]),t.createVNode(Y,{modelValue:t.unref(m).everyday2,"onUpdate:modelValue":I[3]||(I[3]=he=>t.unref(m).everyday2=he)},{default:t.withCtx(()=>[t.createElementVNode("span",Nat,t.toDisplayString(t.unref(i)("tuesday")),1)]),_:1},8,["modelValue"]),t.createVNode(Y,{modelValue:t.unref(m).everyday3,"onUpdate:modelValue":I[4]||(I[4]=he=>t.unref(m).everyday3=he)},{default:t.withCtx(()=>[t.createElementVNode("span",xat,t.toDisplayString(t.unref(i)("wednesday")),1)]),_:1},8,["modelValue"]),t.createVNode(Y,{modelValue:t.unref(m).everyday4,"onUpdate:modelValue":I[5]||(I[5]=he=>t.unref(m).everyday4=he)},{default:t.withCtx(()=>[t.createElementVNode("span",Tat,t.toDisplayString(t.unref(i)("thursday")),1)]),_:1},8,["modelValue"]),t.createVNode(Y,{modelValue:t.unref(m).everyday5,"onUpdate:modelValue":I[6]||(I[6]=he=>t.unref(m).everyday5=he)},{default:t.withCtx(()=>[t.createElementVNode("span",Lat,t.toDisplayString(t.unref(i)("friday")),1)]),_:1},8,["modelValue"]),t.createVNode(Y,{modelValue:t.unref(m).everyday6,"onUpdate:modelValue":I[7]||(I[7]=he=>t.unref(m).everyday6=he)},{default:t.withCtx(()=>[t.createElementVNode("span",Oat,t.toDisplayString(t.unref(i)("saturday")),1)]),_:1},8,["modelValue"]),t.createVNode(Y,{modelValue:t.unref(m).everyday7,"onUpdate:modelValue":I[8]||(I[8]=he=>t.unref(m).everyday7=he)},{default:t.withCtx(()=>[t.createElementVNode("span",$at,t.toDisplayString(t.unref(i)("sunday")),1)]),_:1},8,["modelValue"])])]),_:1})):t.unref(u).taskDateType===3?(t.openBlock(),t.createBlock(O,{key:1,prop:"apDateListV2",class:"mr-4"},{default:t.withCtx(()=>[t.createElementVNode("div",Dat,[t.createTextVNode(t.toDisplayString(t.unref(i)("specifyADate")),1),Pat]),t.createElementVNode("div",Iat,[t.createVNode(B,{modelValue:t.unref(u).apDateListV2,"onUpdate:modelValue":I[9]||(I[9]=he=>t.unref(u).apDateListV2=he),type:"dates",format:`YYYY ${t.unref(i)("yearMMMonthDDDay")}`,class:"!w-full !box-border","value-format":"YYYY-MM-DD",placeholder:t.unref(i)("selectOneOrMoreDates")},null,8,["modelValue","format","placeholder"])])]),_:1})):t.unref(u).taskDateType===4?(t.openBlock(),t.createBlock(O,{key:2,prop:"apDtmV2",class:"mr-4 w-[340px]"},{default:t.withCtx(()=>[t.createElementVNode("div",Mat,[t.createTextVNode(t.toDisplayString(t.unref(i)("specifyATimePeriod")),1),Aat]),t.createElementVNode("div",null,[t.createVNode(B,{modelValue:t.unref(u).apDtmV2,"onUpdate:modelValue":I[10]||(I[10]=he=>t.unref(u).apDtmV2=he),type:"daterange",class:"!w-full !box-border !text-[13px]",format:`YYYY ${t.unref(i)("yearMMMonthDDDay")}`,"value-format":"YYYY-MM-DD","range-separator":t.unref(i)("to"),"start-placeholder":t.unref(i)("startDate"),"end-placeholder":t.unref(i)("endDate")},null,8,["modelValue","format","range-separator","start-placeholder","end-placeholder"])])]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("div",Vat,[t.createVNode(O,{prop:"taskDateTime"},{default:t.withCtx(()=>[t.createElementVNode("div",Rat,[t.createTextVNode(t.toDisplayString(t.unref(i)("executionTime-0")),1),Bat]),t.createVNode(U,{modelValue:t.unref(u).taskDateTime,"onUpdate:modelValue":I[11]||(I[11]=he=>t.unref(u).taskDateTime=he),"is-range":"",class:"!w-full","range-separator":t.unref(i)("to"),"value-format":"HH:mm:ss","start-placeholder":t.unref(i)("startTime"),"end-placeholder":t.unref(i)("endTime"),placeholder:t.unref(i)("selectATimeRange")},null,8,["modelValue","range-separator","start-placeholder","end-placeholder","placeholder"])]),_:1})])])):t.createCommentVNode("",!0),t.createElementVNode("div",Fat,[t.createElementVNode("div",zat,[t.createElementVNode("div",Uat,[t.createVNode(O,{class:"flex-1"},{default:t.withCtx(()=>[t.createElementVNode("div",jat,[t.createTextVNode(t.toDisplayString(t.unref(i)("spotCheckType")),1),Wat]),t.createVNode(F,{modelValue:t.unref(u).checkType,"onUpdate:modelValue":I[12]||(I[12]=he=>t.unref(u).checkType=he),class:"w-full",placeholder:t.unref(i)("pleaseSelectTheSpotCheckType")},{default:t.withCtx(()=>[t.createVNode($,{label:t.unref(i)("rangeCheck"),value:1},null,8,["label"]),t.createVNode($,{label:t.unref(i)("randomCheck"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),_:1}),t.createVNode(O,{class:"flex-1 ml-1 pl-1"},{default:t.withCtx(()=>[t.createElementVNode("div",Hat,[t.createTextVNode(t.toDisplayString(t.unref(i)("spotCheckDevice")),1),Gat]),t.createVNode(F,{"model-value":t.unref(u).onlineStateFlag,class:"w-full",placeholder:t.unref(i)("pleaseSelectTheSpotCheckDevice"),onChange:t.unref(_)},{default:t.withCtx(()=>[t.createVNode($,{label:t.unref(i)("spotCheckOnlyOnlineDevices"),value:1},null,8,["label"]),t.createVNode($,{label:t.unref(i)("spotCheckAllDevices"),value:2},null,8,["label"])]),_:1},8,["model-value","placeholder","onChange"])]),_:1}),t.unref(u).checkType===2?(t.openBlock(),t.createBlock(O,{key:0,class:"flex-1 ml-1 pl-1",prop:"limitNum"},{default:t.withCtx(()=>[t.createElementVNode("div",Kat,[t.createTextVNode(t.toDisplayString(t.unref(i)("randomNumber")),1),Yat]),t.createElementVNode("div",qat,[t.createElementVNode("div",Zat,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":I[13]||(I[13]=he=>t.unref(u).limitNum=he),type:"text",style:{outline:"none"},class:"bg-hy-dialog-bg-2 w-full h-full",placeholder:t.unref(i)("pleaseEnterTheRandomNumber"),onBlur:I[14]||(I[14]=(...he)=>t.unref(b)&&t.unref(b)(...he))},null,40,Jat),[[t.vModelText,t.unref(u).limitNum]])]),t.createElementVNode("div",Xat,[t.createElementVNode("div",{class:"flex-1 flex items-center justify-center clickBox cursor-pointer",onClick:I[15]||(I[15]=he=>t.unref(C)(1))},[t.createVNode(X,null,{default:t.withCtx(()=>[t.createVNode(J)]),_:1})]),t.createElementVNode("div",{class:"flex-1 border-t border-hy-border-2 flex items-center justify-center cursor-pointer clickBox",onClick:I[16]||(I[16]=he=>t.unref(C)(2))},[t.createVNode(X,null,{default:t.withCtx(()=>[t.createVNode(Z)]),_:1})])])])]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("div",Qat,[t.createTextVNode(t.toDisplayString(t.unref(i)("spotCheckRange")),1),eit]),t.withDirectives(t.createElementVNode("div",tit,[t.createElementVNode("div",nit,[t.createVNode(P,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),t.createElementVNode("div",oit,[t.createElementVNode("p",rit,t.toDisplayString(t.unref(i)("youDoNotNeedToSelectARangeAndDeviceForRandomCheck")),1),t.createElementVNode("p",ait,t.toDisplayString(t.unref(i)("theSystemWillHelpYouSelectRandomly")),1)])])],512),[[t.vShow,t.unref(u).checkType===2]]),t.withDirectives(t.createElementVNode("div",iit,[t.createElementVNode("div",sit,[t.createElementVNode("div",null,[t.createVNode(F,{"model-value":t.unref(u).checkScope,class:"w-[160px]",placeholder:t.unref(i)("pleaseSelect"),onChange:t.unref(w)},{default:t.withCtx(()=>[t.createVNode($,{label:t.unref(i)("selectAnArea"),value:1},null,8,["label"]),t.createVNode($,{label:t.unref(i)("selectADepartment"),value:2},null,8,["label"]),t.createVNode($,{label:t.unref(i)("selectADevice"),value:3},null,8,["label"])]),_:1},8,["model-value","placeholder","onChange"])]),t.createElementVNode("div",null,[t.createVNode(oe,{"open-delay":500,placement:"bottom-start","popper-class":"popover_echarts",trigger:"hover",width:"200"},{reference:t.withCtx(()=>[t.createElementVNode("span",mit,[t.createVNode(P,{name:"base-help","class-name":"svgBox ml-1 !w-[12px] !h-[12px]"}),t.createTextVNode(" "+t.toDisplayString(t.unref(i)("help")),1)])]),default:t.withCtx(()=>[t.createElementVNode("ul",lit,[t.createElementVNode("li",cit,[dit,t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea")),1)]),t.createElementVNode("li",uit,[fit,t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment")),1)]),t.createElementVNode("li",pit,[hit,t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck")),1)])])]),_:1})])]),t.createElementVNode("div",git,[t.createElementVNode("div",yit,[t.unref(u).checkScope===1?(t.openBlock(),t.createBlock(tat,{key:0,ref_key:"selectElectronicFenceRef",ref:x,"init-selected-data-list":t.unref(E),onOnSelectedDataList:t.unref(N)},null,8,["init-selected-data-list","onOnSelectedDataList"])):t.unref(u).checkScope===2?(t.openBlock(),t.createBlock(urt,{key:1,ref_key:"selectDepartmentRef",ref:T,"init-selected-data-list":t.unref(E),onOnSelectedDataList:t.unref(N)},null,8,["init-selected-data-list","onOnSelectedDataList"])):t.unref(u).checkScope===3?(t.openBlock(),t.createBlock(Ort,{key:2,ref_key:"selectDeviceRef",ref:D,"init-selected-data-list":t.unref(E),"online-state-flag":t.unref(u).onlineStateFlag,onOnSelectedDataList:t.unref(N)},null,8,["init-selected-data-list","online-state-flag","onOnSelectedDataList"])):t.createCommentVNode("",!0)])])],512),[[t.vShow,t.unref(u).checkType===1]])]),_it,t.createElementVNode("div",bit,[t.createVNode(O,null,{default:t.withCtx(()=>[t.createElementVNode("div",wit,[t.createTextVNode(t.toDisplayString(t.unref(i)("spotCheckMethod")),1),Cit]),t.createVNode(F,{modelValue:t.unref(u).checkStyle,"onUpdate:modelValue":I[17]||(I[17]=he=>t.unref(u).checkStyle=he),class:"w-full",disabled:t.unref(h)===2,placeholder:t.unref(i)("pleaseSelectTheSpotCheckMethod")},{default:t.withCtx(()=>[t.createVNode($,{label:t.unref(i)("message"),value:1},null,8,["label"]),t.createVNode($,{label:t.unref(i)("call"),value:2},null,8,["label"])]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),t.createElementVNode("div",Eit,[t.createTextVNode(t.toDisplayString(t.unref(i)("messageContent")),1),kit]),t.withDirectives(t.createElementVNode("div",vit,[t.createElementVNode("div",Sit,[t.createVNode(P,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),t.createElementVNode("div",Nit,[t.createElementVNode("p",null,t.toDisplayString(t.unref(i)("callDoesNotRequireYouToEnterTheMessageContent")),1),t.createElementVNode("p",xit,t.toDisplayString(t.unref(i)("spotCheckWillBeConductedByIntercomAnswering")),1)])])],512),[[t.vShow,t.unref(u).checkStyle===2]]),t.unref(u).checkStyle===1?(t.openBlock(),t.createElementBlock("div",Tit,[t.createElementVNode("div",Lit,[t.createVNode(O,{prop:"msgContent"},{default:t.withCtx(()=>[t.createVNode(M,{modelValue:t.unref(u).msgContent,"onUpdate:modelValue":I[18]||(I[18]=he=>t.unref(u).msgContent=he),type:"textarea",placeholder:t.unref(i)("pleaseFillInTheMessageToBeSent"),maxlength:"100",resize:"none",autosize:{minRows:t.unref(h)===1?14:10},"show-word-limit":""},null,8,["modelValue","placeholder","autosize"])]),_:1}),t.createVNode(Y,{modelValue:t.unref(u).playMsg,"onUpdate:modelValue":I[19]||(I[19]=he=>t.unref(u).playMsg=he)},{default:t.withCtx(()=>[t.createElementVNode("span",Oit,t.toDisplayString(t.unref(i)("requiresTTSVoiceBroadcastOnTheDevice")),1)]),_:1},8,["modelValue"])]),t.createElementVNode("div",$it,[t.createElementVNode("div",Dit,[t.createTextVNode(t.toDisplayString(t.unref(i)("answerMethod")),1),Pit]),t.createVNode(F,{modelValue:t.unref(u).actionType,"onUpdate:modelValue":I[20]||(I[20]=he=>t.unref(u).actionType=he),class:"w-full",placeholder:t.unref(i)("pleaseSelect")},{default:t.withCtx(()=>[t.createVNode($,{label:t.unref(i)("punchIn"),value:1},null,8,["label"]),t.createVNode($,{label:t.unref(i)("reply"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),t.createElementVNode("div",Iit,[t.createElementVNode("div",Mit,[t.createTextVNode(t.toDisplayString(t.unref(i)("answerTime")),1),Ait]),t.createVNode(F,{modelValue:t.unref(u).actionTime,"onUpdate:modelValue":I[21]||(I[21]=he=>t.unref(u).actionTime=he),class:"w-full",placeholder:t.unref(i)("pleaseSelectTheAnswerTime")},{default:t.withCtx(()=>[t.createVNode($,{label:"5s",value:5}),t.createVNode($,{label:"10s",value:10}),t.createVNode($,{label:"15s",value:15}),t.createVNode($,{label:"30s",value:30}),t.createVNode($,{label:"60s",value:60})]),_:1},8,["modelValue","placeholder"])])])):t.createCommentVNode("",!0)])])]),_:1},8,["model","rules"])],8,hat)),[[me,t.unref(f)]]),t.createElementVNode("div",Vit,[t.createElementVNode("div",Rit,[t.createVNode(X,{class:"text-sm mr-1"},{default:t.withCtx(()=>[t.createVNode(re)]),_:1}),t.createTextVNode(" "+t.toDisplayString(t.unref(i)("youCanApplyTheSpotCheckTemplateToQuicklyFillInTheContent")),1)]),t.createElementVNode("div",null,[t.unref(h)!==3?(t.openBlock(),t.createBlock(fe,{key:0,class:"button_function buttonBox",onClick:t.unref(S)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("spotCheckTemplate")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.createVNode(fe,{type:"primary",class:"button_default buttonBox",onClick:t.unref(d)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("cancel")),1)]),_:1},8,["onClick"]),t.createVNode(fe,{class:"button_function buttonBox",onClick:t.unref(v)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("confirm")),1)]),_:1},8,["onClick"])])])])]),t.createVNode(sat,{ref_key:"selectTemplateRef",ref:V},null,512)],2)):t.createCommentVNode("",!0),t.createVNode(Got,{ref_key:"viewSpotCheckRef",ref:R},null,512)])}}}),[["__scopeId","data-v-1e4e7e93"]]);function Fit(e){return xt.post({url:"orgGroup/detail",data:e,isFormData:!0})}function zit(){const e=t.ref({}),n=t.ref(null),o=t.ref({}),r=t.ref(1),i=t.ref([{label:le("spotCheckInformation"),value:1},{label:le("spotCheckStatus"),value:2}]),a=t.ref(0),s=t.ref([{label:le("all"),value:0},{label:le("completed-0"),value:3},{label:le("uncompleted-0"),value:4}]),l=t.ref([]),c=t.ref([]),d=t.ref(!1),f=t.ref(),u=t.computed(()=>{const v=s.value.findIndex(x=>x.value===a.value);return v!==-1?Math.ceil(v*(100/s.value.length)):0}),p=t.computed(()=>{const v=i.value.findIndex(x=>x.value===r.value);return v!==-1?Math.ceil(v*(100/i.value.length)):0});async function h(v){if(!v)return;const{code:x,data:T}=await Fit({id:v});x===200&&(o.value=T)}function g(){var v;(v=f.value)==null||v.getData(a.value)}function m(v){a.value=v,t.nextTick(()=>{g()})}function _(v){r.value=v}function b(v){}function C(v={}){const{beReceiveNum:x=0,receivingNum:T=0,finishNum:D=0,notFinishNum:V=0}=v;e.value.beReceiveNum=x,e.value.receivingNum=T,e.value.finishNum=D,e.value.notFinishNum=V}function w(v=[]){}function E(v){e.value={actionType:1,id:12},_(1),m(0),N(v),d.value=!0}async function N(v){const{code:x,data:T={}}=await d7({id:v,getMapRail:1,getOrg:1});x===200&&(e.value=T,l.value=T.orgNameList||[],c.value=T.railNameList||[],e.value.checkNum,t.nextTick(()=>{T.checkStyle===2&&(n.value=T.groupId,h(n.value),e.value.actionType=null),d.value=!0}))}function S(){d.value=!1}return{form:e,groupId:n,orgGroupInsertTemp:o,navigationStatus:r,navigationList:i,checkStatus:a,checkStatusList:s,orgNameList:l,railNameList:c,dialogVisible:d,spotCheckTaskDeviceRef:f,checkStatusProgress:u,navigationStatusProgress:p,setCheckStatus:m,setNavigationStatus:_,setLoading:b,spotCheckTaskDeviceCountStatus:C,spotCheckTaskDeviceChange:w,show:E,detail:N,close:S}}const Uit={class:"deleteBox c_fff text-hy-text-main"},jit={class:"pos_r dialog_header relative text-hy-text-main text-[18px] text-center p-[20px] font-bold z-[1px] bg-hy-dialog-bg-1 rounded-[12px_12px_0_0] font-[Helvetica]"},Wit={class:"dialog_body pb-[30px] h-[60vh] flex flex-col text-main text-xs !px-0"},Hit={class:"flex items-center justify-center mb-[16px]"},Git={class:"relative flex-shrink-0"},Kit={class:"relative text-sm h-[36px] !leading-[36px] text-center border border-hy-bg-2 rounded text-hy-text-secondary flex overflow-hidden"},Yit=["onClick"],qit={class:"flex flex-grow h-0 px-4 box-border"},Zit={class:"w-full h-full box-border px-2"},Jit={class:"w-full h-full bg-hy-dialog-bg-2 rounded px-3 py-1 box-border overflow-x-hidden overflow-y-auto"},Xit={class:"mb-2"},Qit={class:"text-hy-text-secondary h-[30px] leading-[30px]"},est={class:"text-hy-text-secondary"},tst={class:"mb-2"},nst={class:"text-hy-text-secondary h-[30px] leading-[30px]"},ost={class:"mb-2"},rst={class:"text-hy-text-secondary h-[30px] leading-[30px]"},ast={class:"mb-2"},ist={class:"text-hy-text-secondary h-[30px] leading-[30px]"},sst={class:"mb-2"},lst={class:"text-hy-text-secondary h-[30px] leading-[30px]"},cst={key:0,class:"mb-2"},dst={class:"text-hy-text-secondary h-[30px] leading-[30px]"},ust={key:0},fst={key:1},pst={key:2},hst={key:0},mst={key:0},gst={key:1},yst={key:0},_st={key:2},bst={key:1,class:"mb-2"},wst={class:"text-hy-text-secondary h-[30px] leading-[30px]"},Cst={key:0,class:"py-1 box-border h-full bg-hy-dialog-bg-3 rounded"},Est={class:"w-full h-[34px] px-2 box-border flex justify-between items-center"},kst={key:0,class:"ml-2 border-[2px] box-border border-hy-border-2 flex items-center justify-center h-[26px] px-2 rounded"},vst={class:"h-[40%] box-border px-2 mt-1"},Sst={class:"w-full h-full box-border bg-hy-dialog-bg-2 rounded p-2 overflow-y-auto overflow-x-hidden"},Nst={class:"flex px-2 mt-1"},xst={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center mr-2"},Tst={class:"text-hy-text-secondary"},Lst={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center"},Ost={class:"text-hy-text-secondary"},$st={class:"font-bold"},Dst={key:1,class:"h-full py-1 bg-hy-dialog-bg-3 rounded"},Pst={class:"w-full h-full flex items-center justify-center text-hy-text-secondary box-border"},Ist={class:"r-f tac flex flex-col items-center justify-center text-center text-sm"},Mst={class:"mt-3"},Ast={class:"mt-1"},Vst={class:"flex flex-grow h-0 px-4 box-border"},Rst={class:"text-xs px-2 leading-[22px]"},Bst={class:"flex w-full"},Fst={class:"flex-shrink-0"},zst={class:"text-right font-bold flex-grow w-0"},Ust={class:"flex w-full"},jst={class:"flex-shrink-0 tracking-[4px]"},Wst={class:"text-right font-bold flex-grow w-0"},Hst={class:"flex w-full"},Gst={class:"flex-shrink-0 tracking-[4px]"},Kst={class:"text-right font-bold flex-grow w-0"},Yst={class:"flex w-full"},qst={class:"flex-shrink-0 tracking-[4px]"},Zst={class:"text-right font-bold flex-grow w-0 text-hy-success"},Jst={class:"flex w-full"},Xst={class:"flex-shrink-0 tracking-[4px]"},Qst={class:"text-right font-bold flex-grow w-0 text-hy-danger"},elt={class:"flex-1 flex"},tlt={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},nlt={class:"flex-grow w-0 text-center truncate"},olt={class:"flex-1 flex"},rlt={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},alt={class:"flex-grow w-0 text-center text-hy-success truncate"},ilt={class:"flex-1 flex"},slt={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},llt={class:"flex-grow w-0 text-center text-hy-danger truncate"},clt={class:"relative mt-3 mb-2 min-w-[160px]"},dlt={class:"relative h-[26px] !leading-[26px] text-center border border-hy-border-2 rounded text-hy-text-secondary text-xs flex overflow-hidden"},ult=["onClick"],flt={class:"flex-grow h-0 px-2 overflow-x-hidden overflow-y-auto"},plt=t.createElementVNode("div",{class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},null,-1),hlt={key:1,class:"w-full shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},mlt={class:"r-f tac flex flex-col justify-center items-center"},glt={class:"mt-3 text-sm"},ylt=t.defineComponent({__name:"spot-check-details",setup(e,{expose:n}){const{dialogVisible:o,checkStatus:r,checkStatusList:i,checkStatusProgress:a,close:s,form:l,navigationList:c,navigationStatus:d,navigationStatusProgress:f,orgGroupInsertTemp:u,orgNameList:p,railNameList:h,setCheckStatus:g,setNavigationStatus:m,spotCheckTaskDeviceChange:_,spotCheckTaskDeviceCountStatus:b,show:C,spotCheckTaskDeviceRef:w}=zit();return n({show:C}),(E,N)=>{const S=t.resolveComponent("svg-icon"),v=t.resolveComponent("el-col"),x=t.resolveComponent("el-row"),T=t.resolveComponent("el-popover"),D=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(D,{modelValue:t.unref(o),"onUpdate:modelValue":N[1]||(N[1]=V=>t.isRef(o)?o.value=V:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"820px"},{default:t.withCtx(()=>[t.createElementVNode("div",Uit,[t.createElementVNode("div",jit,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("spotCheckDetails")),1),t.createElementVNode("div",{class:"iconCloseBox clickBox closeBox absolute top-[-2px] right-[-2px] cursor-pointer",onClick:N[0]||(N[0]=(...V)=>t.unref(s)&&t.unref(s)(...V))},[t.createVNode(S,{name:"icon-close",width:"26",height:"26","class-name":"svgBox click-box text-hy-text-danger"})])]),t.createElementVNode("div",Wit,[t.createElementVNode("div",Hit,[t.createElementVNode("div",Git,[t.createElementVNode("div",{style:t.normalizeStyle([{left:`${t.unref(f)}%`},{background:"linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%)"}]),class:"rounded-[4px_4px_0_0] absolute top-0 left-0 w-[96px] h-full duration-500"},null,4),t.createElementVNode("ul",Kit,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),(V,R)=>(t.openBlock(),t.createElementBlock("li",{key:R,class:t.normalizeClass([{"text-hy-text-main font-bold":V.value===t.unref(d)},"clickBox cursor-pointer px-2 w-[96px] box-border"]),onClick:q=>t.unref(m)(V.value)},t.toDisplayString(V.label),11,Yit))),128))])])]),t.withDirectives(t.createElementVNode("div",qit,[t.createVNode(x,{gutter:8,class:"w-full h-full"},{default:t.withCtx(()=>[t.createVNode(v,{span:8,class:"h-full"},{default:t.withCtx(()=>[t.createElementVNode("div",Zit,[t.createElementVNode("div",Jit,[t.createElementVNode("div",Xit,[t.createElementVNode("div",Qit,t.toDisplayString(t.unref(le)("spotCheckPersonnel")),1),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(t.unref(l).name)+" ",1),t.createElementVNode("span",est," ("+t.toDisplayString(t.unref(l).jobNum)+")",1)])]),t.createElementVNode("div",tst,[t.createElementVNode("div",nst,t.toDisplayString(t.unref(le)("department")),1),t.createElementVNode("div",null,t.toDisplayString(t.unref(l).orgName),1)]),t.createElementVNode("div",ost,[t.createElementVNode("div",rst,t.toDisplayString(t.unref(le)("spotCheckTime")),1),t.createElementVNode("div",null,t.toDisplayString(t.unref(l).checkDtm),1)]),t.createElementVNode("div",ast,[t.createElementVNode("div",ist,t.toDisplayString(t.unref(le)("spotCheckType")),1),t.createElementVNode("div",null,t.toDisplayString(t.unref(l).checkType===1?t.unref(le)("rangeCheck"):t.unref(le)("randomCheck")),1)]),t.createElementVNode("div",sst,[t.createElementVNode("div",lst,t.toDisplayString(t.unref(le)("spotCheckMethod")),1),t.createElementVNode("div",null,t.toDisplayString(t.unref(l).checkStyle===1?t.unref(le)("message"):t.unref(le)("call")),1)]),t.unref(l).checkType===1?(t.openBlock(),t.createElementBlock("div",cst,[t.createElementVNode("div",dst,[t.createTextVNode(t.toDisplayString(t.unref(le)("samplingScope"))+" ",1),t.unref(l).checkScope===1?(t.openBlock(),t.createElementBlock("span",ust,t.toDisplayString(t.unref(le)("regionalSpotCheck")),1)):t.unref(l).checkScope===2?(t.openBlock(),t.createElementBlock("span",fst,t.toDisplayString(t.unref(le)("departmentSpotCheck")),1)):t.unref(l).checkScope===3?(t.openBlock(),t.createElementBlock("span",pst,t.toDisplayString(t.unref(le)("deviceSpotCheck")),1)):t.createCommentVNode("",!0),t.createTextVNode(" ) ")]),t.unref(l).checkScope===1?(t.openBlock(),t.createElementBlock("div",hst,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(h),(V,R)=>(t.openBlock(),t.createElementBlock("span",{key:`${R}_orgNameList`},[t.createTextVNode(t.toDisplayString(V)+" ",1),R!==t.unref(h).length-1?(t.openBlock(),t.createElementBlock("span",mst,"、")):t.createCommentVNode("",!0)]))),128))])):t.unref(l).checkScope===2?(t.openBlock(),t.createElementBlock("div",gst,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(p),(V,R)=>(t.openBlock(),t.createElementBlock("span",{key:`${R}_orgNameList`},[t.createTextVNode(t.toDisplayString(V)+" ",1),R!==t.unref(p).length-1?(t.openBlock(),t.createElementBlock("span",yst,"、")):t.createCommentVNode("",!0)]))),128))])):(t.openBlock(),t.createElementBlock("div",_st,[t.createElementVNode("span",null,t.toDisplayString(t.unref(l).checkNum||0)+" "+t.toDisplayString(t.unref(le)("device")),1)]))])):(t.openBlock(),t.createElementBlock("div",bst,[t.createElementVNode("div",wst,[t.createTextVNode(t.toDisplayString(t.unref(le)("samplingScope"))+" ",1),t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("randomCheck")),1),t.createTextVNode(" ) ")]),t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString(t.unref(l).limitNum||0)+" "+t.toDisplayString(t.unref(le)("device")),1)])]))])])]),_:1}),t.createVNode(v,{span:16,class:"h-full"},{default:t.withCtx(()=>[t.unref(l).checkStyle===1?(t.openBlock(),t.createElementBlock("div",Cst,[t.createElementVNode("div",Est,[t.createElementVNode("div",null,t.toDisplayString(t.unref(le)("messageContent")),1),t.unref(l).playMsg===1?(t.openBlock(),t.createElementBlock("div",kst," TTS"+t.toDisplayString(t.unref(le)("textToSpeech")),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",vst,[t.createElementVNode("div",Sst,t.toDisplayString(t.unref(l).msgContent),1)]),t.createElementVNode("div",Nst,[t.createElementVNode("div",xst,[t.createElementVNode("div",Tst,t.toDisplayString(t.unref(le)("answerMethod")),1),t.createElementVNode("span",null,t.toDisplayString(t.unref(l).actionType===1?t.unref(le)("punchIn"):t.unref(le)("reply")),1)]),t.createElementVNode("div",Lst,[t.createElementVNode("div",Ost,t.toDisplayString(t.unref(le)("answerTime")),1),t.createElementVNode("span",null,[t.createElementVNode("span",$st,t.toDisplayString(t.unref(l).actionTime),1),t.createTextVNode(" "+t.toDisplayString(t.unref(le)("second")),1)])])])])):(t.openBlock(),t.createElementBlock("div",Dst,[t.createElementVNode("div",Pst,[t.createElementVNode("div",Ist,[t.createVNode(S,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),t.createElementVNode("div",Mst,t.toDisplayString(t.unref(le)("callSpotCheck")),1),t.createElementVNode("div",Ast,t.toDisplayString(t.unref(le)("backupWillBeCheckedByIntercomAnswering")),1)])])]))]),_:1})]),_:1})],512),[[t.vShow,t.unref(d)===1]]),t.withDirectives(t.createElementVNode("div",Vst,[t.unref(l).checkNum!==0?(t.openBlock(),t.createBlock(x,{key:0,gutter:8,class:"w-full h-full"},{default:t.withCtx(()=>[t.createVNode(v,{span:t.unref(l).actionType===1?24:8,class:"h-full !flex flex-col"},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass([{"flex-col":t.unref(l).actionType!==1,"justify-between items-center":t.unref(l).actionType===1},"flex-shrink-0 flex px-2"])},[t.createVNode(T,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:t.withCtx(()=>[t.createElementVNode("span",null,[t.createElementVNode("div",{class:t.normalizeClass([{"min-w-[248px]":t.unref(l).actionType===1},"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-bg-2 rounded flex font-bold"])},[t.createElementVNode("div",elt,[t.createElementVNode("div",tlt,[t.createVNode(S,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),t.createElementVNode("div",nlt,t.toDisplayString(t.unref(l).checkNum||"- -"),1)]),t.createElementVNode("div",olt,[t.createElementVNode("div",rlt,[t.createVNode(S,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),t.createElementVNode("div",alt,t.toDisplayString(t.unref(l).finishNum||"- -"),1)]),t.createElementVNode("div",ilt,[t.createElementVNode("div",slt,[t.createVNode(S,{name:"base-danger-state","class-name":"w-[16px] h-[16px] text-hy-danger"})]),t.createElementVNode("div",llt,t.toDisplayString(t.unref(l).notFinishNum||"- -"),1)])],2)])]),default:t.withCtx(()=>[t.createElementVNode("ul",Rst,[t.createElementVNode("li",Bst,[t.createElementVNode("span",Fst,t.toDisplayString(t.unref(le)("numberOfPeopleToBeChecked")),1),t.createElementVNode("div",zst,t.toDisplayString(t.unref(l).checkNum||"- -"),1)]),t.createElementVNode("li",Ust,[t.createElementVNode("span",jst,t.toDisplayString(t.unref(le)("waitingToReceive")),1),t.createElementVNode("div",Wst,t.toDisplayString(t.unref(l).beReceiveNum||"- -"),1)]),t.createElementVNode("li",Hst,[t.createElementVNode("span",Gst,t.toDisplayString(t.unref(le)("receiving")),1),t.createElementVNode("div",Kst,t.toDisplayString(t.unref(l).receivingNum||"- -"),1)]),t.createElementVNode("li",Yst,[t.createElementVNode("span",qst,t.toDisplayString(t.unref(le)("completed")),1),t.createElementVNode("div",Zst,t.toDisplayString(t.unref(l).finishNum||"- -"),1)]),t.createElementVNode("li",Jst,[t.createElementVNode("span",Xst,t.toDisplayString(t.unref(le)("uncompleted")),1),t.createElementVNode("div",Qst,t.toDisplayString(t.unref(l).notFinishNum||"- -"),1)])])]),_:1}),t.createElementVNode("div",clt,[t.createElementVNode("div",{style:t.normalizeStyle([{left:`${t.unref(a)}%`},{background:"linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%)"}]),class:t.normalizeClass([{"w-[75px]":t.unref(l).actionType!==1,"w-[54px]":t.unref(l).actionType===1},"rounded-[4px_4px_0_0] absolute top-0 left-0 h-full duration-500"])},null,6),t.createElementVNode("ul",dlt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(i),(V,R)=>(t.openBlock(),t.createElementBlock("li",{key:`${R}_checkStatusList`,class:t.normalizeClass([{"text-hy-text-main":V.value===t.unref(r)},"flex-1 cursor-pointer hover:opacity-60"]),onClick:q=>t.unref(g)(V.value)},t.toDisplayString(V.label),11,ult))),128))])])],2),t.createElementVNode("div",flt,[t.unref(l).id?(t.openBlock(),t.createBlock(EL,{key:0,ref_key:"spotCheckTaskDeviceRef",ref:w,"params-span":t.unref(l).actionType===1?8:24,form:t.unref(l),"subscribe-status":!1,onChange:t.unref(_),onOnCountStatus:t.unref(b)},null,8,["params-span","form","onChange","onOnCountStatus"])):t.createCommentVNode("",!0)])]),_:1},8,["span"]),t.unref(l).actionType!==1?(t.openBlock(),t.createBlock(v,{key:0,span:16,class:"h-full"},{default:t.withCtx(()=>[plt]),_:1})):t.createCommentVNode("",!0)]),_:1})):(t.openBlock(),t.createElementBlock("div",hlt,[t.createElementVNode("div",mlt,[t.createVNode(S,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),t.createElementVNode("div",glt,t.toDisplayString(t.unref(le)("noDeviceSupportsThisSpotCheck")),1)])]))],512),[[t.vShow,t.unref(d)===2]])])])]),_:1},8,["modelValue"])}}});var f7=(e=>(e[e.LAW_ENFORCEMENT_RECORDER=1]="LAW_ENFORCEMENT_RECORDER",e[e.WALKIE_TALKIE=2]="WALKIE_TALKIE",e[e.FIRE_DISPATCH_DESK=3]="FIRE_DISPATCH_DESK",e[e.FIRE_DUTY_DESK=4]="FIRE_DUTY_DESK",e[e.PHONE_APP=5]="PHONE_APP",e[e.CONTROL_THE_BALL=6]="CONTROL_THE_BALL",e[e.IPC_CAMERA=7]="IPC_CAMERA",e[e.HELMET=8]="HELMET",e[e.FLASHLIGHT=9]="FLASHLIGHT",e[e.WORK_LICENSE=10]="WORK_LICENSE",e[e.DRONE=11]="DRONE",e[e.CAR_PTZ=12]="CAR_PTZ",e[e.CASCADE_DEVICE_DOWN=13]="CASCADE_DEVICE_DOWN",e[e.JT808=14]="JT808",e[e.NATIONAL_STANDARD_RECORDER=15]="NATIONAL_STANDARD_RECORDER",e[e.RTOS_DEVICE=16]="RTOS_DEVICE",e[e.WATCH=17]="WATCH",e))(f7||{});Rt([{lng:113.521054,lat:22.234435},{lng:113.525726,lat:22.238109},{lng:113.528097,lat:22.24105},{lng:113.532482,lat:22.240578},{lng:113.54959,lat:22.246714},{lng:113.54959,lat:22.246714},{lng:113.54959,lat:22.246714},{lng:113.549644,lat:22.246729},{lng:113.562078,lat:22.252202},{lng:113.574656,lat:22.257741},{lng:113.583534,lat:22.261878},{lng:113.583547,lat:22.261891},{lng:113.584437,lat:22.260837},{lng:113.58547,lat:22.260161},{lng:113.586306,lat:22.259726},{lng:113.587034,lat:22.259688},{lng:113.587519,lat:22.260056},{lng:113.587914,lat:22.260827},{lng:113.588085,lat:22.261151},{lng:113.587833,lat:22.261577},{lng:113.588067,lat:22.26197},{lng:113.588543,lat:22.26192},{lng:113.588866,lat:22.261501},{lng:113.589477,lat:22.2613},{lng:113.589935,lat:22.260758},{lng:113.59033,lat:22.260491},{lng:113.590851,lat:22.260239},{lng:113.592011,lat:22.260673},{lng:113.593305,lat:22.261541},{lng:113.593727,lat:22.261708},{lng:113.59423,lat:22.261423},{lng:113.594338,lat:22.260671},{lng:113.593637,lat:22.259734},{lng:113.592344,lat:22.258733},{lng:113.591176,lat:22.258249},{lng:113.590942,lat:22.25768},{lng:113.591517,lat:22.257112},{lng:113.592335,lat:22.25701},{lng:113.592312,lat:22.25663},{lng:113.591683,lat:22.256651},{lng:113.591059,lat:22.25648},{lng:113.591023,lat:22.25574},{lng:113.591203,lat:22.254821},{lng:113.591935,lat:22.253252},{lng:113.59282,lat:22.252159},{lng:113.593309,lat:22.252027},{lng:113.594041,lat:22.252158},{lng:113.594487,lat:22.252804},{lng:113.594954,lat:22.252418},{lng:113.594667,lat:22.251883},{lng:113.594577,lat:22.251491},{lng:113.5953,lat:22.251795},{lng:113.596881,lat:22.246408},{lng:113.59587,lat:22.244818},{lng:113.597416,lat:22.244934},{lng:113.599339,lat:22.245585},{lng:113.59977,lat:22.246336},{lng:113.600475,lat:22.246906},{lng:113.601176,lat:22.248661},{lng:113.601787,lat:22.249162},{lng:113.602685,lat:22.249362},{lng:113.603507,lat:22.249042},{lng:113.60455,lat:22.249275},{lng:113.605884,lat:22.248891},{lng:113.605862,lat:22.246698},{lng:113.606419,lat:22.245326},{lng:113.606005,lat:22.244139},{lng:113.60477,lat:22.243573},{lng:113.603962,lat:22.243942},{lng:113.603333,lat:22.245114},{lng:113.602303,lat:22.245247},{lng:113.6018,lat:22.244679},{lng:113.600956,lat:22.244228},{lng:113.600094,lat:22.244463},{lng:113.599608,lat:22.245082},{lng:113.597884,lat:22.244582},{lng:113.595731,lat:22.244318},{lng:113.594366,lat:22.241711},{lng:113.594042,lat:22.236492},{lng:113.593108,lat:22.23753},{lng:113.588903,lat:22.238973},{lng:113.587897,lat:22.235529},{lng:113.589801,lat:22.234958},{lng:113.590485,lat:22.232649},{lng:113.590593,lat:22.230508},{lng:113.585813,lat:22.231751},{lng:113.583153,lat:22.232556},{lng:113.581105,lat:22.232826},{lng:113.577511,lat:22.231759},{lng:113.574204,lat:22.230492},{lng:113.570144,lat:22.230596},{lng:113.566657,lat:22.228526},{lng:113.564645,lat:22.225762},{lng:113.55796,lat:22.214868},{lng:113.562992,lat:22.213993},{lng:113.573828,lat:22.208137},{lng:113.574907,lat:22.208153},{lng:113.577152,lat:22.211697},{lng:113.582229,lat:22.211522},{lng:113.585103,lat:22.211553},{lng:113.587826,lat:22.210989},{lng:113.591025,lat:22.209665},{lng:113.586533,lat:22.202017},{lng:113.586255,lat:22.194888},{lng:113.583847,lat:22.193284},{lng:113.576228,lat:22.193359},{lng:113.576083,lat:22.199784},{lng:113.576479,lat:22.205238},{lng:113.570755,lat:22.208498},{lng:113.563279,lat:22.21252},{lng:113.560691,lat:22.213594},{lng:113.557493,lat:22.214333},{lng:113.552246,lat:22.21387},{lng:113.550179,lat:22.213998},{lng:113.549128,lat:22.214015},{lng:113.547871,lat:22.212537},{lng:113.546361,lat:22.210171},{lng:113.543513,lat:22.210734},{lng:113.541267,lat:22.210796},{lng:113.539667,lat:22.210562},{lng:113.538167,lat:22.209527},{lng:113.539767,lat:22.204833},{lng:113.540081,lat:22.203536},{lng:113.538248,lat:22.200242},{lng:113.537215,lat:22.200204},{lng:113.521067,lat:22.234444},{lng:113.522631,lat:22.232034},{lng:113.523529,lat:22.230628},{lng:113.536514,lat:22.200757}]);const _lt={poiServer:{id:71,tenantId:"4cdd37aa2bc047b4b76f96d564b53d93",configType:4,serverUrl:"https://restapi.amap.com",defaultState:null,defaultSelectIdList:null,showMinZoom:null,showMaxZoom:null,polyIdList:null,polylineIdList:null,layerIdList:null,mapKey:"abce726a2fd9f546e0b4652822c33638",mapSk:null,mapType:null,defaultMapStyle:null,bmHttpsUrl:null,bmUiName:null,bmCorrect:null,maxZoom:null,layersUrl:null,mapPoiType:"gaode",mapBound:null,satelliteMap:null,poiCoordinate:1,city:"广东省-深圳市",citylimit:0,mapPlatform:null,mapServerHost:null,mapServerAk:null,mapServerSk:null,layerName:null,layerId:null,defaultDisplayType:null,boxSearchType:null,markerType:null,layerMaxZoom:null,layerMinZoom:null,markerMinZoom:null,markerMaxZoom:null,layerType:null,typeName:null,icon:null},bmCorrect:1,maxZoom:"18",layersUrl:"http://t7.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk={mapKey},http://t7.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk={mapKey}",mapKey:"f68ec1e89dd79c485d62b2e56974ff65",defaultMapStyle:"amap://styles/b5d280643c6525a8f6b2a07521f639ef",mapSk:"024a144126a2a762fee60e0ca1d0aeeb",bmHttpsUrl:null,bmUiName:null,mapType:Oo.AMAP,mapPoiType:Oo.AMAP,satelliteMap:2},blt={id:"amap-container",class:"w-full h-screen"},wlt={class:"flex gap-x-2 fixed z-[9999]"},Clt=[fn("span",null,"开始",-1)],Elt=[fn("span",null,"暂停",-1)],klt=[fn("span",null,"继续",-1)],vlt=[fn("span",null,"删除",-1)],Slt=zn({__name:"amap-provider",setup(e){const n=Fa();Rt();const o=Fa(null);Fa(),Fa(),Fa(null);const r=Rt();Fa();const i=Fa();Fa();const a=Rt(Rd.DIY_LAYER);yd(()=>{s()});function s(){const d=BT.createMapProvider(Oo.AMAP);n.value=new MT(d,_lt),l()}async function l(){o.value=await n.value.map("amap-container",{minZoom:8,maxZoom:16,center:[22.238567,113.56097],zoom:12.5,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,layerType:a.value}),o.value.on("complete",d=>{c([22.58,113.91])}),o.value.on("left-click",d=>console.log(d)),o.value.on("right-click",d=>console.log(d))}function c(d){var f;r.value&&n.value.removePopup(r.value);const u=`
290
+ );`));var N=Object.getOwnPropertyDescriptor(h,"src");if(N!=null&&N.configurable||!N)try{Object.defineProperty(h,"src",{get:function(){return i||""}})}catch(D){console.warn(D)}}else i&&h.setAttribute("src",i),l&&h.setAttribute("crossorigin",c);a&&h.setAttribute("type","module"),h.textContent=E||"",g.textContent="if(window.__WUJIE.execQueue && window.__WUJIE.execQueue.length){ window.__WUJIE.execQueue.shift()()}";var S=Hd.call(n.document,"head"),v=function(){return!d&&S.appendChild(g)},x=function(){p==null||p(),v()};if(/^<!DOCTYPE html/i.test(E))return Ai(Xm,e),v();o&&JH(h,XH(o));var T=!s&&i;T&&(h.onload=x,h.onerror=x),S.appendChild(h),u==null||u(n),ha(b,"appendOrInsertElementHook",h,n,o),!T&&x()}function M1(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=window.document.createElement("iframe"),i="height:100%;width:100%";w1(r,I1(I1({},o),{},{src:e,style:[i,o.style].join(";")})),Gd(r,n)}function Y7e(e,n,o,r,i){var a=window.document.createElement("iframe"),s=I1(I1({src:o,style:"display: none"},n),{},Ii({name:e.id},VH,""));w1(a,s),window.document.body.appendChild(a);var l=a.contentWindow;return z9(l,e,r),e.iframeReady=G7e(l).then(function(){l.__WUJIE||z9(l,e,r),H7e(l,e,o,r),qH(l.__WUJIE.id)||l.history.replaceState(null,"",o+i)}),a}function W9(e,n,o){var r=e.contentWindow.__WUJIE,i=r.shadowRoot,a=r.id,s=r.degrade,l=r.document,c=r.degradeAttrs,d=n;if(!/^http/.test(d)){var f=Mi(d);d=o+f.pathname+f.search+f.hash,f=null}if(e.contentWindow.__WUJIE.hrefFlag=!0,s){var u=Hd.call(e.contentDocument,"body");Gd(l.documentElement,u),M1(window.decodeURIComponent(d),KH(a).parentElement,c)}else M1(d,i.host.parentElement,c);return P7e(a,d),!0}function q7e(e,n,o,r){var i=new Proxy(e.contentWindow,{get:function(c,d){if(d==="location")return c.__WUJIE.proxyLocation;if(d==="self"||d==="window"&&Object.getOwnPropertyDescriptor(window,"window").get)return c.__WUJIE.proxy;if(d==="__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__"||d==="__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__")return c[d];var f=Object.getOwnPropertyDescriptor(c,d);return(f==null?void 0:f.configurable)===!1&&(f==null?void 0:f.writable)===!1?c[d]:eg(c,d)},set:function(c,d,f){return C9e(f),c[d]=f,!0},has:function(c,d){return d in c}}),a=new Proxy({},{get:function(c,d){var f=window.document,u=e.contentWindow.__WUJIE,p=u.shadowRoot,h=u.proxyLocation;p||e9();var g=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_ELEMENT__,m=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_TEXT_NODE__;if(d==="createElement"||d==="createTextNode")return new Proxy(f[d],{apply:function(x,T,D){var V=d==="createElement"?g:m,R=V.apply(e.contentDocument,D);return Xl(R,e.contentWindow),R}});if(d==="documentURI"||d==="URL")return h.href;if(d==="getElementsByTagName"||d==="getElementsByClassName"||d==="getElementsByName")return new Proxy(p.querySelectorAll,{apply:function(x,T,D){var V=D[0];if(T!==e.contentDocument)return T[d].apply(T,D);if(d==="getElementsByTagName"&&V==="script")return e.contentDocument.scripts;d==="getElementsByClassName"&&(V="."+V),d==="getElementsByName"&&(V='[name="'.concat(V,'"]'));var R;try{R=x.call(p,V)}catch{R=[]}return R}});if(d==="getElementById")return new Proxy(p.querySelector,{apply:function(x,T,D){if(T!==e.contentDocument){var V;return(V=T[d])===null||V===void 0?void 0:V.apply(T,D)}try{return x.call(p,'[id="'.concat(D[0],'"]'))||e.contentWindow.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__.call(e.contentWindow.document,"#".concat(D[0]))}catch{return ar(_9e),null}}});if(d==="querySelector"||d==="querySelectorAll"){var _={querySelector:"__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__",querySelectorAll:"__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__"};return new Proxy(p[d],{apply:function(x,T,D){if(T!==e.contentDocument){var V;return(V=T[d])===null||V===void 0?void 0:V.apply(T,D)}return x.apply(p,D)||(D[0]==="base"?null:e.contentWindow[_[d]].call(e.contentWindow.document,D[0]))}})}if(d==="documentElement"||d==="scrollingElement")return p.firstElementChild;if(d==="forms")return p.querySelectorAll("form");if(d==="images")return p.querySelectorAll("img");if(d==="links")return p.querySelectorAll("a");var b=lo.ownerProperties,C=lo.shadowProperties,w=lo.shadowMethods,E=lo.documentProperties,N=lo.documentMethods;if(b.concat(C).includes(d.toString()))return d==="activeElement"&&p.activeElement===null?p.body:p[d];if(w.includes(d.toString())){var S;return(S=eg(p,d))!==null&&S!==void 0?S:eg(f,d)}if(E.includes(d.toString()))return f[d];if(N.includes(d.toString()))return eg(f,d)}}),s=new Proxy({},{get:function(c,d){var f=e.contentWindow.location;return d==="host"||d==="hostname"||d==="protocol"||d==="port"||d==="origin"?n[d]:d==="href"?f[d].replace(o,r):d==="reload"?(ar(BH),function(){return null}):d==="replace"?new Proxy(f[d],{apply:function(p,h,g){var m;return p.call(f,(m=g[0])===null||m===void 0?void 0:m.replace(r,o))}}):eg(f,d)},set:function(c,d,f){return d==="href"?W9(e,f,r):(e.contentWindow.location[d]=f,!0)},ownKeys:function(){return Object.keys(e.contentWindow.location).filter(function(c){return c!=="reload"})},getOwnPropertyDescriptor:function(c,d){return{enumerable:!0,configurable:!0,value:this[d]}}});return{proxyWindow:i,proxyDocument:a,proxyLocation:s}}function Z7e(e,n,o,r){var i={},a=e.contentWindow.__WUJIE;Object.defineProperties(i,{createElement:{get:function(){return function(){for(var C=arguments.length,w=new Array(C),E=0;E<C;E++)w[E]=arguments[E];var N=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_ELEMENT__.apply(e.contentDocument,w);return Xl(N,e.contentWindow),N}}},createTextNode:{get:function(){return function(){for(var C=arguments.length,w=new Array(C),E=0;E<C;E++)w[E]=arguments[E];var N=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_TEXT_NODE__.apply(e.contentDocument,w);return Xl(N,e.contentWindow),N}}},documentURI:{get:function(){return a.proxyLocation.href}},URL:{get:function(){return a.proxyLocation.href}},getElementsByTagName:{get:function(){return function(){var C=arguments.length<=0?void 0:arguments[0];return C==="script"?e.contentDocument.scripts:a.document.getElementsByTagName(C)}}}});var s=lo.modifyLocalProperties,l=lo.modifyProperties,c=lo.ownerProperties,d=lo.shadowProperties,f=lo.shadowMethods,u=lo.documentProperties,p=lo.documentMethods;l.filter(function(b){return!s.includes(b)}).concat(c,d,f,u,p).forEach(function(b){Object.defineProperty(i,b,{get:function(){var w,E=(w=a.document)===null||w===void 0?void 0:w[b];return b1(E)?E.bind(a.document):E}})});var h={},g=e.contentWindow.location,m=Object.keys(g),_=["host","hostname","port","protocol","port"];return _.forEach(function(b){h[b]=n[b]}),Object.defineProperties(h,{href:{get:function(){return g.href.replace(o,r)},set:function(C){W9(e,C,r)}},reload:{get:function(){return ar(BH),function(){return null}}}}),m.filter(function(b){return!_.concat(["href","reload"]).includes(b)}).forEach(function(b){Object.defineProperty(h,b,{get:function(){return b1(g[b])?g[b].bind(g):g[b]}})}),{proxyDocument:i,proxyLocation:h}}var Jf=window.__POWERED_BY_WUJIE__?window.__WUJIE.inject.appEventObjMap:new Map,H9=function(){function e(n){aL(this,e),this.id=n,this.$clear(),Jf.get(this.id)||Jf.set(this.id,{}),this.eventObj=Jf.get(this.id)}return iL(e,[{key:"$on",value:function(o,r){var i=this.eventObj[o];return i?(i.includes(r)||i.push(r),this):(this.eventObj[o]=[r],this)}},{key:"$onAll",value:function(o){return this.$on(_1,o)}},{key:"$once",value:function(o,r){var i=(function(){this.$off(o,i),r.apply(void 0,arguments)}).bind(this);this.$on(o,i)}},{key:"$off",value:function(o,r){var i=this.eventObj[o];if(!o||!i||!i.length)return ar("".concat(o," ").concat(zH)),this;for(var a,s=i.length;s--;)if(a=i[s],a===r){i.splice(s,1);break}return this}},{key:"$offAll",value:function(o){return this.$off(_1,o)}},{key:"$emit",value:function(o){var r=[],i=[];if(Jf.forEach(function(g){g[o]&&(r=r.concat(g[o])),g[_1]&&(i=i.concat(g[_1]))}),!o||r.length===0&&i.length===0)ar("".concat(o," ").concat(zH));else try{for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];for(var c=0,d=r.length;c<d;c++){var f;(f=r)[c].apply(f,s)}for(var u=0,p=i.length;u<p;u++){var h;(h=i)[u].apply(h,[o].concat(s))}}catch(g){Ai(g)}return this}},{key:"$clear",value:function(){var o,r=(o=Jf.get(this.id))!==null&&o!==void 0?o:{},i=Object.keys(r);return i.forEach(function(a){return delete r[a]}),this}}]),e}();function G9(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function Ql(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?arguments[n]:{};n%2?G9(Object(o),!0).forEach(function(r){Ii(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):G9(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}var K9=function(){function e(n){aL(this,e),Ii(this,"elementEventCacheMap",new WeakMap),window.__POWERED_BY_WUJIE__?this.inject=window.__WUJIE.inject:this.inject={idToSandboxMap:ma,appEventObjMap:Jf,mainHostPath:window.location.protocol+"//"+window.location.host};var o=n.name,r=n.url,i=n.attrs,a=n.fiber,s=n.degradeAttrs,l=n.degrade,c=n.lifecycles,d=n.plugins;this.id=o,this.fiber=a,this.degrade=l||!WH,this.bus=new H9(this.id),this.url=r,this.degradeAttrs=s,this.provide={bus:this.bus},this.styleSheetElements=[],this.execQueue=[],this.lifecycles=c,this.plugins=l9(d);var f=YH(r),u=f.urlElement,p=f.appHostPath,h=f.appRoutePath,g=this.inject.mainHostPath;if(this.iframe=Y7e(this,i,g,p,h),this.degrade){var m=Z7e(this.iframe,u,g,p),_=m.proxyDocument,b=m.proxyLocation;this.proxyDocument=_,this.proxyLocation=b}else{var C=q7e(this.iframe,u,g,p),w=C.proxyWindow,E=C.proxyDocument,N=C.proxyLocation;this.proxy=w,this.proxyDocument=E,this.proxyLocation=N}this.provide.location=this.proxyLocation,c7e(this.id,this)}return iL(e,[{key:"active",value:function(){var n=$s(_o.mark(function r(i){var a=this,s,l,c,d,f,u,p,h,g,m,_,b,C,w,E,N;return _o.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return s=i.sync,l=i.url,c=i.el,d=i.template,f=i.props,u=i.alive,p=i.prefix,h=i.fetch,g=i.replace,this.url=l,this.sync=s,this.alive=u,this.hrefFlag=!1,this.prefix=p??this.prefix,this.replace=g??this.replace,this.provide.props=f??this.provide.props,this.activeFlag=!0,v.next=11,this.iframeReady;case 11:if(m=this.iframe.contentWindow,_=h?function(x,T){return h(typeof x=="string"?ql(x,a.proxyLocation.href):x,T)}:this.fetch,_&&(m.fetch=_,this.fetch=_),this.execFlag&&this.alive||$7e(m),Zf(m),this.template=d??this.template,!this.degrade){v.next=38;break}if(b=Hd.call(m.document,"body"),C=I9(this.id,c??b,this.degradeAttrs),w=C.iframe,E=C.container,this.el=E,c&&Kd(b),j9(w.contentWindow,m),w.contentWindow.onunload=function(){a.unmount()},!this.document){v.next=34;break}if(!this.alive){v.next=29;break}w.contentDocument.replaceChild(this.document.documentElement,w.contentDocument.documentElement),B7e(w.contentDocument.documentElement,m),v.next=32;break;case 29:return v.next=31,V9(w.contentDocument,this.iframe.contentWindow,this.template);case 31:F7e(this.document.documentElement,w.contentDocument.documentElement,m);case 32:v.next=36;break;case 34:return v.next=36,V9(w.contentDocument,this.iframe.contentWindow,this.template);case 36:return this.document=w.contentDocument,v.abrupt("return");case 38:if(!this.shadowRoot){v.next=44;break}if(this.el=Gd(this.shadowRoot.host,c),!this.alive){v.next=42;break}return v.abrupt("return");case 42:v.next=46;break;case 44:N=Hd.call(m.document,"body"),this.el=Gd(N7e(this.id),c??N);case 46:return v.next=48,T7e(this.shadowRoot,m,this.template);case 48:this.patchCssRules(),this.provide.shadowRoot=this.shadowRoot;case 50:case"end":return v.stop()}},r,this)}));function o(r){return n.apply(this,arguments)}return o}()},{key:"requestIdleCallback",value:function(o){var r=this;return YT(function(){r.iframe&&o.apply(r)})}},{key:"start",value:function(){var n=$s(_o.mark(function r(i){var a=this,s,l,c,d,f,u,p,h,g;return _o.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return this.execFlag=!0,_.next=3,i();case 3:if(s=_.sent,this.iframe){_.next=6;break}return _.abrupt("return");case 6:return l=this.iframe.contentWindow,l.__POWERED_BY_WUJIE__=!0,c=x1("jsBeforeLoaders",this.plugins),d=x1("jsAfterLoaders",this.plugins),f=[],u=[],p=[],s.forEach(function(b){b.defer?p.push(b):b.async?u.push(b):f.push(b)}),c.forEach(function(b){a.execQueue.push(function(){return a.fiber?a.requestIdleCallback(function(){return Qa(b,l)}):Qa(b,l)})}),f.concat(p).forEach(function(b){a.execQueue.push(function(){return b.contentPromise.then(function(C){return a.fiber?a.requestIdleCallback(function(){return Qa(Ql(Ql({},b),{},{content:C}),l)}):Qa(Ql(Ql({},b),{},{content:C}),l)})})}),u.forEach(function(b){b.contentPromise.then(function(C){a.fiber?a.requestIdleCallback(function(){return Qa(Ql(Ql({},b),{},{content:C}),l)}):Qa(Ql(Ql({},b),{},{content:C}),l)})}),this.execQueue.push(this.fiber?function(){return a.requestIdleCallback(function(){return a.mount()})}:function(){return a.mount()}),h=function(){var C;S1(l.document,"DOMContentLoaded"),S1(l,"DOMContentLoaded"),(C=a.execQueue.shift())===null||C===void 0||C()},this.execQueue.push(this.fiber?function(){return a.requestIdleCallback(h)}:h),d.forEach(function(b){a.execQueue.push(function(){return a.fiber?a.requestIdleCallback(function(){return Qa(b,l)}):Qa(b,l)})}),g=function(){var C;S1(l.document,"readystatechange"),S1(l,"load"),(C=a.execQueue.shift())===null||C===void 0||C()},this.execQueue.push(this.fiber?function(){return a.requestIdleCallback(g)}:g),(this.alive||!Ud(this.iframe.contentWindow.__WUJIE_UNMOUNT))&&R9(this.el),this.execQueue.shift()(),_.abrupt("return",new Promise(function(b){a.execQueue.push(function(){var C;b(),(C=a.execQueue.shift())===null||C===void 0||C()})}));case 26:case"end":return _.stop()}},r,this)}));function o(r){return n.apply(this,arguments)}return o}()},{key:"mount",value:function(){var o;if(!this.mountFlag){if(Ud(this.iframe.contentWindow.__WUJIE_MOUNT)){var r,i,a,s;R9(this.el),(r=this.lifecycles)===null||r===void 0||(i=r.beforeMount)===null||i===void 0||i.call(r,this.iframe.contentWindow),this.iframe.contentWindow.__WUJIE_MOUNT(),(a=this.lifecycles)===null||a===void 0||(s=a.afterMount)===null||s===void 0||s.call(a,this.iframe.contentWindow),this.mountFlag=!0}if(this.alive){var l,c;(l=this.lifecycles)===null||l===void 0||(c=l.activated)===null||c===void 0||c.call(l,this.iframe.contentWindow)}(o=this.execQueue.shift())===null||o===void 0||o()}}},{key:"unmount",value:function(){if(this.activeFlag=!1,D7e(),this.alive){var o,r;(o=this.lifecycles)===null||o===void 0||(r=o.deactivated)===null||r===void 0||r.call(o,this.iframe.contentWindow)}if(this.mountFlag&&Ud(this.iframe.contentWindow.__WUJIE_UNMOUNT)&&!this.alive&&!this.hrefFlag){var i,a,s,l;(i=this.lifecycles)===null||i===void 0||(a=i.beforeUnmount)===null||a===void 0||a.call(i,this.iframe.contentWindow),this.iframe.contentWindow.__WUJIE_UNMOUNT(),(s=this.lifecycles)===null||s===void 0||(l=s.afterUnmount)===null||l===void 0||l.call(s,this.iframe.contentWindow),this.mountFlag=!1,this.bus.$clear(),this.degrade||(Kd(this.shadowRoot),O9(this.head),O9(this.body)),Kd(this.head),Kd(this.body)}}},{key:"destroy",value:function(){if(this.unmount(),this.bus.$clear(),this.shadowRoot=null,this.proxy=null,this.proxyDocument=null,this.proxyLocation=null,this.execQueue=null,this.provide=null,this.degradeAttrs=null,this.styleSheetElements=null,this.bus=null,this.replace=null,this.fetch=null,this.execFlag=null,this.mountFlag=null,this.hrefFlag=null,this.document=null,this.head=null,this.body=null,this.elementEventCacheMap=null,this.lifecycles=null,this.plugins=null,this.provide=null,this.inject=null,this.execQueue=null,this.prefix=null,this.el&&(Kd(this.el),this.el=null),this.iframe){var o,r=this.iframe.contentWindow;r!=null&&r.__WUJIE_EVENTLISTENER__&&r.__WUJIE_EVENTLISTENER__.forEach(function(i){r.removeEventListener(i.type,i.listener,i.options)}),(o=this.iframe.parentNode)===null||o===void 0||o.removeChild(this.iframe),this.iframe=null}d7e(this.id)}},{key:"rebuildStyleSheets",value:function(){var o=this;this.styleSheetElements&&this.styleSheetElements.length&&this.styleSheetElements.forEach(function(r){w9.call(o.degrade?o.document.head:o.shadowRoot.head,r)}),this.patchCssRules()}},{key:"patchCssRules",value:function(){if(!this.degrade&&!this.shadowRoot.host.hasAttribute(RH)){var o=B9(Array.from(this.iframe.contentDocument.querySelectorAll("style")).map(function(s){return s.sheet})),r=Zm(o,2),i=r[0],a=r[1];i&&(this.shadowRoot.head.appendChild(i),this.styleSheetElements.push(i)),a&&this.shadowRoot.host.appendChild(a),(i||a)&&this.shadowRoot.host.setAttribute(RH,"")}}}]),e}();function Y9(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function J7e(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?arguments[n]:{};n%2?Y9(Object(o),!0).forEach(function(r){Ii(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Y9(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}var fL=new H9(Date.now().toString());window.__WUJIE&&!window.__POWERED_BY_WUJIE__&&e9(),I7e(),S7e(),WH||ar(g9e);function X7e(e){e.name&&u7e(e.name,e)}function Q7e(e){return pL.apply(this,arguments)}function pL(){return pL=$s(_o.mark(function e(n){var o,r,i,a,s,l,c,d,f,u,p,h,g,m,_,b,C,w,E,N,S,v,x,T,D,V,R,q,K,G,I,P,M,O,$,F,Y,B,U;return _o.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(i=Ds(n.name),a=m9(n.name),s=QH(n,a),l=s.name,c=s.url,d=s.html,f=s.replace,u=s.fetch,p=s.props,h=s.attrs,g=s.degradeAttrs,m=s.fiber,_=s.alive,b=s.degrade,C=s.sync,w=s.prefix,E=s.el,N=s.loading,S=s.plugins,v=s.lifecycles,!i){X.next=39;break}if(i.plugins=l9(S),i.lifecycles=v,x=i.iframe.contentWindow,!i.preload){X.next=11;break}return X.next=11,i.preload;case 11:if(!_){X.next=26;break}return X.next=14,i.active({url:c,sync:C,prefix:w,el:E,props:p,alive:_,fetch:u,replace:f});case 14:if(i.execFlag){X.next=22;break}return(V=i.lifecycles)===null||V===void 0||(R=V.beforeLoad)===null||R===void 0||R.call(V,i.iframe.contentWindow),X.next=18,rL({url:c,html:d,opts:{fetch:u||window.fetch,plugins:i.plugins,loadError:i.lifecycles.loadError,fiber:m}});case 18:return q=X.sent,K=q.getExternalScripts,X.next=22,i.start(K);case 22:return(T=i.lifecycles)===null||T===void 0||(D=T.activated)===null||D===void 0||D.call(T,i.iframe.contentWindow),X.abrupt("return",i.destroy);case 26:if(!Ud(x.__WUJIE_MOUNT)){X.next=38;break}return i.unmount(),X.next=30,i.active({url:c,sync:C,prefix:w,el:E,props:p,alive:_,fetch:u,replace:f});case 30:return i.rebuildStyleSheets(),(G=i.lifecycles)===null||G===void 0||(I=G.beforeMount)===null||I===void 0||I.call(G,i.iframe.contentWindow),x.__WUJIE_MOUNT(),(P=i.lifecycles)===null||P===void 0||(M=P.afterMount)===null||M===void 0||M.call(P,i.iframe.contentWindow),i.mountFlag=!0,X.abrupt("return",i.destroy);case 38:i.destroy();case 39:return O7e(E,N),O=new K9({name:l,url:c,attrs:h,degradeAttrs:g,fiber:m,degrade:b,plugins:S,lifecycles:v}),(o=O.lifecycles)===null||o===void 0||(r=o.beforeLoad)===null||r===void 0||r.call(o,O.iframe.contentWindow),X.next=44,rL({url:c,html:d,opts:{fetch:u||window.fetch,plugins:O.plugins,loadError:O.lifecycles.loadError,fiber:m}});case 44:return $=X.sent,F=$.template,Y=$.getExternalScripts,B=$.getExternalStyleSheets,X.next=50,d9(O,F,B);case 50:return U=X.sent,X.next=53,O.active({url:c,sync:C,prefix:w,template:U,el:E,props:p,alive:_,fetch:u,replace:f});case 53:return X.next=55,O.start(Y);case 55:return X.abrupt("return",O.destroy);case 56:case"end":return X.stop()}},e)})),pL.apply(this,arguments)}function eGe(e){YT(function(){if(!(Ds(e.name)||qH(e.name))){var n=m9(e.name),o=QH(J7e({},e),n),r=o.name,i=o.url,a=o.html,s=o.props,l=o.alive,c=o.replace,d=o.fetch,f=o.exec,u=o.attrs,p=o.degradeAttrs,h=o.fiber,g=o.degrade,m=o.prefix,_=o.plugins,b=o.lifecycles,C=new K9({name:r,url:i,attrs:u,degradeAttrs:p,fiber:h,degrade:g,plugins:_,lifecycles:b});if(C.preload)return C.preload;var w=function(){var E=$s(_o.mark(function N(){var S,v,x,T,D,V,R;return _o.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return(S=C.lifecycles)===null||S===void 0||(v=S.beforeLoad)===null||v===void 0||v.call(S,C.iframe.contentWindow),K.next=3,rL({url:i,html:a,opts:{fetch:d||window.fetch,plugins:C.plugins,loadError:C.lifecycles.loadError,fiber:h}});case 3:return x=K.sent,T=x.template,D=x.getExternalScripts,V=x.getExternalStyleSheets,K.next=9,d9(C,T,V);case 9:return R=K.sent,K.next=12,C.active({url:i,props:s,prefix:m,alive:l,template:R,fetch:d,replace:c});case 12:if(!f){K.next=17;break}return K.next=15,C.start(D);case 15:K.next=19;break;case 17:return K.next=19,D();case 19:case"end":return K.stop()}},N)}));return function(){return E.apply(this,arguments)}}();C.preload=w()}})}function q9(e){var n=Ds(e);n&&n.destroy()}function A1(e){"@babel/helpers - typeof";return A1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},A1(e)}function hL(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */hL=function(){return n};var e,n={},o=Object.prototype,r=o.hasOwnProperty,i=Object.defineProperty||function(I,P,M){I[P]=M.value},a=typeof Symbol=="function"?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function d(I,P,M){return Object.defineProperty(I,P,{value:M,enumerable:!0,configurable:!0,writable:!0}),I[P]}try{d({},"")}catch{d=function(M,O,$){return M[O]=$}}function f(I,P,M,O){var $=P&&P.prototype instanceof b?P:b,F=Object.create($.prototype),Y=new K(O||[]);return i(F,"_invoke",{value:D(I,M,Y)}),F}function u(I,P,M){try{return{type:"normal",arg:I.call(P,M)}}catch(O){return{type:"throw",arg:O}}}n.wrap=f;var p="suspendedStart",h="suspendedYield",g="executing",m="completed",_={};function b(){}function C(){}function w(){}var E={};d(E,s,function(){return this});var N=Object.getPrototypeOf,S=N&&N(N(G([])));S&&S!==o&&r.call(S,s)&&(E=S);var v=w.prototype=b.prototype=Object.create(E);function x(I){["next","throw","return"].forEach(function(P){d(I,P,function(M){return this._invoke(P,M)})})}function T(I,P){function M($,F,Y,B){var U=u(I[$],I,F);if(U.type!=="throw"){var J=U.arg,X=J.value;return X&&A1(X)=="object"&&r.call(X,"__await")?P.resolve(X.__await).then(function(Z){M("next",Z,Y,B)},function(Z){M("throw",Z,Y,B)}):P.resolve(X).then(function(Z){J.value=Z,Y(J)},function(Z){return M("throw",Z,Y,B)})}B(U.arg)}var O;i(this,"_invoke",{value:function(F,Y){function B(){return new P(function(U,J){M(F,Y,U,J)})}return O=O?O.then(B,B):B()}})}function D(I,P,M){var O=p;return function($,F){if(O===g)throw new Error("Generator is already running");if(O===m){if($==="throw")throw F;return{value:e,done:!0}}for(M.method=$,M.arg=F;;){var Y=M.delegate;if(Y){var B=V(Y,M);if(B){if(B===_)continue;return B}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(O===p)throw O=m,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);O=g;var U=u(I,P,M);if(U.type==="normal"){if(O=M.done?m:h,U.arg===_)continue;return{value:U.arg,done:M.done}}U.type==="throw"&&(O=m,M.method="throw",M.arg=U.arg)}}}function V(I,P){var M=P.method,O=I.iterator[M];if(O===e)return P.delegate=null,M==="throw"&&I.iterator.return&&(P.method="return",P.arg=e,V(I,P),P.method==="throw")||M!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+M+"' method")),_;var $=u(O,I.iterator,P.arg);if($.type==="throw")return P.method="throw",P.arg=$.arg,P.delegate=null,_;var F=$.arg;return F?F.done?(P[I.resultName]=F.value,P.next=I.nextLoc,P.method!=="return"&&(P.method="next",P.arg=e),P.delegate=null,_):F:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,_)}function R(I){var P={tryLoc:I[0]};1 in I&&(P.catchLoc=I[1]),2 in I&&(P.finallyLoc=I[2],P.afterLoc=I[3]),this.tryEntries.push(P)}function q(I){var P=I.completion||{};P.type="normal",delete P.arg,I.completion=P}function K(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(R,this),this.reset(!0)}function G(I){if(I||I===""){var P=I[s];if(P)return P.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var M=-1,O=function $(){for(;++M<I.length;)if(r.call(I,M))return $.value=I[M],$.done=!1,$;return $.value=e,$.done=!0,$};return O.next=O}}throw new TypeError(A1(I)+" is not iterable")}return C.prototype=w,i(v,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:C,configurable:!0}),C.displayName=d(w,c,"GeneratorFunction"),n.isGeneratorFunction=function(I){var P=typeof I=="function"&&I.constructor;return!!P&&(P===C||(P.displayName||P.name)==="GeneratorFunction")},n.mark=function(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,w):(I.__proto__=w,d(I,c,"GeneratorFunction")),I.prototype=Object.create(v),I},n.awrap=function(I){return{__await:I}},x(T.prototype),d(T.prototype,l,function(){return this}),n.AsyncIterator=T,n.async=function(I,P,M,O,$){$===void 0&&($=Promise);var F=new T(f(I,P,M,O),$);return n.isGeneratorFunction(P)?F:F.next().then(function(Y){return Y.done?Y.value:F.next()})},x(v),d(v,c,"Generator"),d(v,s,function(){return this}),d(v,"toString",function(){return"[object Generator]"}),n.keys=function(I){var P=Object(I),M=[];for(var O in P)M.push(O);return M.reverse(),function $(){for(;M.length;){var F=M.pop();if(F in P)return $.value=F,$.done=!1,$}return $.done=!0,$}},n.values=G,K.prototype={constructor:K,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(q),!P)for(var M in this)M.charAt(0)==="t"&&r.call(this,M)&&!isNaN(+M.slice(1))&&(this[M]=e)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var M=this;function O(J,X){return Y.type="throw",Y.arg=P,M.next=J,X&&(M.method="next",M.arg=e),!!X}for(var $=this.tryEntries.length-1;$>=0;--$){var F=this.tryEntries[$],Y=F.completion;if(F.tryLoc==="root")return O("end");if(F.tryLoc<=this.prev){var B=r.call(F,"catchLoc"),U=r.call(F,"finallyLoc");if(B&&U){if(this.prev<F.catchLoc)return O(F.catchLoc,!0);if(this.prev<F.finallyLoc)return O(F.finallyLoc)}else if(B){if(this.prev<F.catchLoc)return O(F.catchLoc,!0)}else{if(!U)throw new Error("try statement without catch or finally");if(this.prev<F.finallyLoc)return O(F.finallyLoc)}}}},abrupt:function(P,M){for(var O=this.tryEntries.length-1;O>=0;--O){var $=this.tryEntries[O];if($.tryLoc<=this.prev&&r.call($,"finallyLoc")&&this.prev<$.finallyLoc){var F=$;break}}F&&(P==="break"||P==="continue")&&F.tryLoc<=M&&M<=F.finallyLoc&&(F=null);var Y=F?F.completion:{};return Y.type=P,Y.arg=M,F?(this.method="next",this.next=F.finallyLoc,_):this.complete(Y)},complete:function(P,M){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&M&&(this.next=M),_},finish:function(P){for(var M=this.tryEntries.length-1;M>=0;--M){var O=this.tryEntries[M];if(O.finallyLoc===P)return this.complete(O.completion,O.afterLoc),q(O),_}},catch:function(P){for(var M=this.tryEntries.length-1;M>=0;--M){var O=this.tryEntries[M];if(O.tryLoc===P){var $=O.completion;if($.type==="throw"){var F=$.arg;q(O)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(P,M,O){return this.delegate={iterator:G(P),resultName:M,nextLoc:O},this.method==="next"&&(this.arg=e),_}},n}function Z9(e,n,o,r,i,a,s){try{var l=e[a](s),c=l.value}catch(d){o(d);return}l.done?n(c):Promise.resolve(c).then(r,i)}function tGe(e){return function(){var n=this,o=arguments;return new Promise(function(r,i){var a=e.apply(n,o);function s(c){Z9(a,r,i,s,l,"next",c)}function l(c){Z9(a,r,i,s,l,"throw",c)}s(void 0)})}}var nGe={name:"WujieVue",props:{width:{type:String,default:""},height:{type:String,default:""},name:{type:String,default:""},loading:{type:HTMLElement,default:void 0},url:{type:String,default:""},sync:{type:Boolean,default:void 0},prefix:{type:Object,default:void 0},alive:{type:Boolean,default:void 0},props:{type:Object,default:void 0},attrs:{type:Object,default:void 0},replace:{type:Function,default:void 0},fetch:{type:Function,default:void 0},fiber:{type:Boolean,default:void 0},degrade:{type:Boolean,default:void 0},plugins:{type:Array,default:null},beforeLoad:{type:Function,default:null},beforeMount:{type:Function,default:null},afterMount:{type:Function,default:null},beforeUnmount:{type:Function,default:null},afterUnmount:{type:Function,default:null},activated:{type:Function,default:null},deactivated:{type:Function,default:null},loadError:{type:Function,default:null}},data:function(){return{startAppQueue:Promise.resolve()}},mounted:function(){var n=this;fL.$onAll(this.handleEmit),this.execStartApp(),this.$watch(function(){return n.name+n.url},function(){return n.execStartApp()})},methods:{handleEmit:function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];this.$emit.apply(this,[n].concat(r))},startApp:function(){var n=this;return tGe(hL().mark(function o(){return hL().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,Q7e({name:n.name,url:n.url,el:n.$refs.wujie,loading:n.loading,alive:n.alive,fetch:n.fetch,props:n.props,attrs:n.attrs,replace:n.replace,sync:n.sync,prefix:n.prefix,fiber:n.fiber,degrade:n.degrade,plugins:n.plugins,beforeLoad:n.beforeLoad,beforeMount:n.beforeMount,afterMount:n.afterMount,beforeUnmount:n.beforeUnmount,afterUnmount:n.afterUnmount,activated:n.activated,deactivated:n.deactivated,loadError:n.loadError});case 3:i.next=8;break;case 5:i.prev=5,i.t0=i.catch(0),console.log(i.t0);case 8:case"end":return i.stop()}},o,null,[[0,5]])}))()},execStartApp:function(){this.startAppQueue=this.startAppQueue.then(this.startApp)},destroy:function(){q9(this.name)}},beforeDestroy:function(){fL.$offAll(this.handleEmit)},render:function(){return t.h("div",{style:{width:this.width,height:this.height},ref:"wujie"})}},Xf=t.defineComponent(nGe);Xf.setupApp=X7e,Xf.preloadApp=eGe,Xf.bus=fL,Xf.destroyApp=q9,Xf.install=function(e){e.component("WujieVue",Xf)};function oGe(e){const n=e.emit,o=t.ref(null),r=t.ref(null),i=t.ref(null),a=t.ref(!1);function s(d,f){return new Promise((u,p)=>{if(!d)return p(new Error(le("fileIDNotPassedIn")));o.value=f||null,r.value=d,i.value=u,t.nextTick(()=>{a.value=!0})})}function l(){a.value=!1,n("on-close")}async function c(){if(!o.value)return ft.error(le("pleaseScoreTheCurrentFile"));const d={fileScore:o.value,ids:[r.value]};(await MTe(d)).code===200&&(i.value(o.value),n("on-submit",o.value),ft.success(le("successfulScoring")),a.value=!1)}return{fileScore:o,dialogVisible:a,show:s,onClose:l,onSubmit:c}}const rGe={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"},aGe={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},iGe={class:"absolute right-[10px]"},sGe={class:"dialog_body p-[0_20px_30px]"},lGe={class:"text-center m-[20px_0_40px_0]"},cGe={class:"flex items-center justify-center mb-[10px] text-sm"},dGe={class:"text-hy-text-main mr-[6px]"},uGe={class:"text-hy-text-secondary text-xs"},fGe={class:"operator-button flex items-center justify-center mt-[20px]"},mL=t.defineComponent({__name:"file-score",emits:["on-close","on-submit"],setup(e,{expose:n,emit:o}){const r=o,i=t.reactive(ri.getCache("colorObject")),a=t.computed(()=>({2:i.auxiliary,3:i.warning,4:i.success,5:i.theme})),{fileScore:s,dialogVisible:l,show:c,onClose:d,onSubmit:f}=oGe({emit:r});return n({show:c}),t.onMounted(()=>{}),(u,p)=>{const h=t.resolveComponent("svg-icon"),g=t.resolveComponent("el-rate"),m=t.resolveComponent("el-button"),_=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(_,{"model-value":t.unref(l),"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:t.withCtx(()=>[t.createVNode(Rs,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:t.withCtx(()=>[t.createElementVNode("div",rGe,[t.createElementVNode("div",aGe,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("confirmScore")),1),t.createElementVNode("div",iGe,[t.createVNode(h,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:t.withModifiers(t.unref(d),["stop"])},null,8,["onClick"])])]),t.createElementVNode("div",sGe,[t.createElementVNode("div",lGe,[t.createElementVNode("div",cGe,[t.createElementVNode("span",dGe,t.toDisplayString(t.unref(le)("confirmAs")),1),t.createVNode(g,{modelValue:t.unref(s),"onUpdate:modelValue":p[0]||(p[0]=b=>t.isRef(s)?s.value=b:null),"void-color":i.main,colors:a.value},null,8,["modelValue","void-color","colors"])]),t.createElementVNode("span",uGe,t.toDisplayString(t.unref(le)("noSecondaryModificationAfterScoring")),1)]),t.createElementVNode("div",fGe,[t.createVNode(m,{type:"primary",class:"w-[100px]",onClick:t.unref(d)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("close")),1)]),_:1},8,["onClick"]),t.createVNode(m,{class:"w-[100px]",onClick:t.unref(f)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("confirm")),1)]),_:1},8,["onClick"])])])])]),_:1})]),_:1},8,["model-value"])}}});function pGe(e){const n=e.emit,o=t.ref(e.props||{}),r=t.ref(null),i=t.ref(null),a=t.ref([]),s=t.ref({content:""}),l=t.reactive({content:[{required:!0,message:le("pleaseEnterTheDotName"),trigger:"blur"}]}),c=t.ref(!1),d=t.ref(""),f=t.reactive(ri.getCache("userInfo"));function u(){c.value=!1,n("on-close"),s.value={content:""},d.value=""}async function p(){if(o.value.mediaFileId){const w=await RTe({mediaFileId:o.value.mediaFileId});w.code===200&&(a.value=w.data,a.value.sort((E,N)=>E.time-N.time))}}function h(){var w;(w=r.value)==null||w.validate(async E=>{if(E){if(s.value.content.trim()==="")return ft.error(le("pleaseEnterTheDotContent")),!1;(await BTe({id:s.value.id,content:s.value.content,mediaFileId:o.value.mediaFileId,time:s.value.time||o.value.mediaFileCurTime})).code===200&&(p(),u())}})}function g(w){n("play-point",w.time)}function m(){s.value={},n("on-edit"),c.value=!0}function _(w){s.value=JSON.parse(JSON.stringify(w)),c.value=!0,n("on-edit")}function b(w){d.value=w,n("on-edit"),ll({tipsTitle:le("deleteDot"),tipsContent:`<div class="text-center"><p>${le("deleteDotPositionCannotBeRestored")}</p><p>${le("confirmDeletion")}?</p></div>`,submitBtnText:le("confirm-0")},()=>{C()},()=>{u()})}async function C(){(await iB({ids:d.value})).code===200&&(p(),u())}return{formRef:r,userId:i,pointList:a,form:s,rules:l,dialogVisible:c,deleteIds:d,onClose:u,getData:p,savePoint:h,playPoint:g,addPoint:m,editPoint:_,showDeleteDialog:b,deletePoint:C,userInfo:f}}const gL=e=>(t.pushScopeId("data-v-bb8c9cab"),e=e(),t.popScopeId(),e),hGe={class:"w-full h-full"},mGe={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},gGe={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},yGe={class:"text-hy-text-main font-bold text-sm"},_Ge={class:"flex items-center justify-center"},bGe={class:"ml-[6px]"},wGe={class:"flex-grow h-0 overflow-auto"},CGe={class:"p-3 pb-0"},EGe={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col text-xs"},kGe={class:"flex-grow h-0"},vGe={class:"flex items-center justify-between"},SGe={class:"text-hy-text-secondary mr-1"},NGe=gL(()=>t.createElementVNode("span",null,"/",-1)),xGe={key:0,class:"px-3 py-1 text-hy-text-main text-xs"},TGe={class:"flex items-center justify-between"},LGe={class:"flex-grow w-0 mr-1 flex items-center"},OGe={class:"ml-2 flex-grow w-0"},$Ge={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},DGe={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},PGe={key:0,class:"flex-shrink-0 flex"},IGe={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},MGe={class:"flex-grow h-0"},AGe={class:"flex items-center justify-between"},VGe={class:"text-hy-text-secondary mr-1"},RGe=gL(()=>t.createElementVNode("span",null,"/",-1)),BGe={class:"px-2 mt-3 mb-1 text-xs"},FGe={class:"flex items-center justify-between"},zGe={class:"text-hy-text-secondary mr-1"},UGe=gL(()=>t.createElementVNode("span",null,"/",-1)),jGe={class:"flex items-center mt-1"},WGe={class:"text-hy-text-secondary mr-1"},HGe={class:"flex-grow w-0 ml-1"},GGe={key:1,class:"w-full h-full flex items-center justify-center rounded"},KGe={class:"text-center text-xs text-hy-text-secondary"},YGe={class:"mt-3"},J9=Po(t.defineComponent({__name:"mark",props:{mediaFileId:{},mediaFileTotalTime:{},mediaFileCurTime:{}},emits:["on-close","play-point","on-edit","on-edit","on-edit"],setup(e,{emit:n}){const o=e,r=n,{formRef:i,userId:a,pointList:s,form:l,rules:c,dialogVisible:d,deleteIds:f,onClose:u,getData:p,savePoint:h,playPoint:g,addPoint:m,editPoint:_,showDeleteDialog:b,deletePoint:C,userInfo:w}=pGe({emit:r,props:o});return t.watch(()=>o.mediaFileId,()=>{p()}),t.onMounted(()=>{a.value=w.id}),(E,N)=>{const S=t.resolveComponent("svg-icon"),v=t.resolveComponent("el-button"),x=t.resolveComponent("el-input"),T=t.resolveComponent("el-form-item"),D=t.resolveComponent("el-form");return t.openBlock(),t.createElementBlock("div",hGe,[t.createElementVNode("div",mGe,[t.createElementVNode("div",gGe,[t.createElementVNode("div",yGe,t.toDisplayString(t.unref(le)("dotList")),1),t.createElementVNode("div",null,[t.withDirectives(t.createVNode(v,{type:"success",class:"",onClick:N[0]||(N[0]=V=>t.unref(m)())},{default:t.withCtx(()=>[t.createElementVNode("div",_Ge,[t.createVNode(S,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),t.createElementVNode("span",bGe,t.toDisplayString(t.unref(le)("addDot-0")),1)])]),_:1},512),[[t.vShow,E.mediaFileId]])])]),t.createElementVNode("div",wGe,[t.createVNode(D,{ref_key:"formRef",ref:i,class:"h-full","label-position":"top",model:t.unref(l),rules:t.unref(c),"label-width":"0px"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",CGe,[t.createElementVNode("div",EGe,[t.createElementVNode("div",kGe,[t.createVNode(T,{prop:"content"},{default:t.withCtx(()=>[t.createVNode(x,{modelValue:t.unref(l).content,"onUpdate:modelValue":N[1]||(N[1]=V=>t.unref(l).content=V),type:"textarea",placeholder:t.unref(le)("pleaseEnterTheDotName"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),t.createElementVNode("div",vGe,[t.createElementVNode("div",null,[t.createElementVNode("span",SGe,t.toDisplayString(t.unref(le)("dotPosition")),1),t.createElementVNode("p",null,[t.createTextVNode(t.toDisplayString(t.unref(si)(Number(t.unref(l).time||o.mediaFileCurTime)))+" ",1),NGe,t.createTextVNode(" "+t.toDisplayString(t.unref(si)(Number(E.mediaFileTotalTime))),1)])]),t.createElementVNode("div",null,[t.createVNode(v,{type:"primary",onClick:t.unref(u)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("cancel")),1)]),_:1},8,["onClick"]),t.createVNode(v,{onClick:t.unref(h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("save")),1)]),_:1},8,["onClick"])])])])],512),[[t.vShow,t.unref(d)&&!t.unref(l).id]]),t.unref(s).length?(t.openBlock(),t.createElementBlock("ul",xGe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),V=>(t.openBlock(),t.createElementBlock("li",{key:V.id,class:"bg-hy-page-bg-3 rounded my-2 p-2 box-hy-border-2"},[t.createElementVNode("div",TGe,[t.createElementVNode("div",LGe,[t.createVNode(Zu,{url:V.remarkUserHeadImg},null,8,["url"]),t.createElementVNode("div",OGe,[t.createElementVNode("p",$Ge,t.toDisplayString(V.remarkUserName),1),t.createElementVNode("p",DGe,t.toDisplayString(V.remarkUserSerialNum),1)])]),V.remarkUserId===t.unref(a)&&t.unref(l).id!==V.id?(t.openBlock(),t.createElementBlock("div",PGe,[t.createVNode(ra,{"class-nmae":"HyRoundButtonV2",name:"media-center-2-audio-play-2",tips:t.unref(le)("play"),onClick:R=>t.unref(g)(V)},null,8,["tips","onClick"]),t.createVNode(ra,{class:"!mx-0","class-nmae":"HyRoundButtonV2",name:"icon-edit",tips:t.unref(le)("edit"),onClick:R=>t.unref(_)(V)},null,8,["tips","onClick"]),t.createVNode(ra,{class:"hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-text-danger",name:"base-delete",tips:t.unref(le)("delete"),onClick:R=>t.unref(b)(V.id)},null,8,["tips","onClick"])])):t.createCommentVNode("",!0)]),t.withDirectives(t.createElementVNode("div",IGe,[t.createElementVNode("div",MGe,[t.createVNode(T,{prop:"content"},{default:t.withCtx(()=>[t.createVNode(x,{modelValue:t.unref(l).content,"onUpdate:modelValue":N[2]||(N[2]=R=>t.unref(l).content=R),type:"textarea",placeholder:t.unref(le)("pleaseEnterTheDotName"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),t.createElementVNode("div",AGe,[t.createElementVNode("div",null,[t.createElementVNode("span",VGe,t.toDisplayString(t.unref(le)("dotPosition")),1),t.createElementVNode("p",null,[t.createTextVNode(t.toDisplayString(t.unref(si)(Number(t.unref(l).time||o.mediaFileCurTime)))+" ",1),RGe,t.createTextVNode(" "+t.toDisplayString(t.unref(si)(Number(E.mediaFileTotalTime))),1)])]),t.createElementVNode("div",null,[t.createVNode(v,{type:"primary",onClick:t.unref(u)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("cancel")),1)]),_:1},8,["onClick"]),t.createVNode(v,{onClick:t.unref(h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("save")),1)]),_:1},8,["onClick"])])])],512),[[t.vShow,t.unref(l).id===V.id&&t.unref(d)]]),t.withDirectives(t.createElementVNode("div",BGe,[t.createElementVNode("div",FGe,[t.createElementVNode("div",null,[t.createElementVNode("span",zGe,t.toDisplayString(t.unref(le)("dotPosition")),1),t.createTextVNode(" "+t.toDisplayString(t.unref(si)(Number(V.time)))+" ",1),UGe,t.createTextVNode(" "+t.toDisplayString(t.unref(si)(Number(E.mediaFileTotalTime))),1)]),t.createElementVNode("div",null,[t.createElementVNode("p",null,t.toDisplayString(V.updateDtm||V.createDtm),1)])]),t.createElementVNode("div",jGe,[t.createElementVNode("span",WGe,t.toDisplayString(t.unref(le)("dotName")),1),t.createElementVNode("div",HGe,t.toDisplayString(V.content),1)])],512),[[t.vShow,!(t.unref(l).id===V.id&&t.unref(d))]])]))),128))])):(t.openBlock(),t.createElementBlock("div",GGe,[t.createElementVNode("div",KGe,[t.createVNode(S,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),t.createElementVNode("div",YGe,t.toDisplayString(t.unref(le)("noData")),1)])]))]),_:1},8,["model","rules"])])])])}}}),[["__scopeId","data-v-bb8c9cab"]]);function qGe(e){const n=e.emit,o=t.ref(e.props||{}),r=t.ref(null),i=t.ref(null),a=t.ref(!1),s=t.ref({content:""}),l=t.reactive({content:[{required:!0,message:le("pleaseFillInTheRemarks"),trigger:"blur"}]}),c=t.ref([]),d=t.ref(""),f=t.reactive(ri.getCache("userInfo"));function u(){a.value=!1,n("on-close"),s.value={content:""}}async function p(){if(o.value.mediaFileId){const w=await ATe({mediaFileId:o.value.mediaFileId});w.code===200&&(c.value=w.data,n("on-getData",c.value))}}function h(){var w;(w=r.value)==null||w.clearValidate(),s.value={},n("on-edit"),a.value=!0}function g(){r.value.validate(async w=>{if(w){if(s.value.content==="")return ft.error(le("pleaseEnterTheRemarks")),!1;s.value.mediaFileId=o.value.mediaFileId,(await VTe(s.value)).code===200&&(p(),u())}})}function m(w){d.value=w,ll({tipsTitle:le("deleteRemarks"),tipsContent:`<div class="text-center"><p>${le("reminderCannotBeRestoredAfterDeletion")}</p><p>${le("confirmDeletion")}?</p></div>`,submitBtnText:le("confirm-0")},()=>{b()})}function _(){d.value=""}async function b(){(await iB({ids:d.value})).code===200&&(p(),_(),n("on-delete"))}function C(w){var E;(E=r.value)==null||E.clearValidate(),s.value=JSON.parse(JSON.stringify(w)),a.value=!0,n("on-edit")}return{formRef:r,userId:i,dialogVisible:a,form:s,rules:l,markList:c,deleteIds:d,onClose:u,getData:p,addMark:h,onSubmit:g,showDeleteDialog:m,onCloseDeleteMark:_,deleteMark:b,editMark:C,userInfo:f}}const ZGe={class:"w-full h-full"},JGe={class:"w-full box-hy-border-2 h-full flex flex-col rounded overflow-hidden border border-hy-page-bg-3"},XGe={class:"flex items-center justify-between h-[50px] test-sm px-4 bg-hy-page-bg-3"},QGe={class:"text-hy-text-main font-bold text-sm"},eKe={class:"flex items-center justify-center"},tKe={class:"ml-[6px]"},nKe={class:"flex-grow h-0 overflow-auto"},oKe={class:"p-3 pb-0"},rKe={class:"h-[180px] bg-hy-page-bg-3 rounded p-3 flex flex-col"},aKe={class:"flex-grow h-0"},iKe={class:"h-[40px] flex items-end justify-end"},sKe={key:0,class:"px-3 py-1 text-hy-text-main text-xs"},lKe={class:"flex items-center justify-between"},cKe={class:"flex-grow w-0 mr-1 flex items-center"},dKe={class:"ml-2 flex-grow w-0"},uKe={class:"font-bold overflow-ellipsis overflow-hidden whitespace-nowrap"},fKe={class:"text-hy-text-secondary mt-1 overflow-ellipsis overflow-hidden whitespace-nowrap"},pKe={key:0,class:"flex-shrink-0 flex items-center"},hKe={class:"h-[180px] bg-hy-page-bg-3 rounded py-2 px-1 flex flex-col"},mKe={class:"flex-grow h-0"},gKe={class:"h-[40px] flex items-end justify-end"},yKe={key:1,class:"w-full h-full flex items-center justify-center rounded"},_Ke={class:"text-center text-xs text-hy-text-secondary"},bKe={class:"mt-3"},yL=t.defineComponent({__name:"remark",props:{mediaFileId:{default:null}},emits:["on-close","on-getData","on-edit","on-delete","on-edit"],setup(e,{emit:n}){const o=e,r=n,{formRef:i,userId:a,dialogVisible:s,form:l,rules:c,markList:d,onClose:f,getData:u,addMark:p,onSubmit:h,showDeleteDialog:g,onCloseDeleteMark:m,deleteMark:_,editMark:b,userInfo:C}=qGe({emit:r,props:o});return t.watch(()=>o.mediaFileId,()=>{u()}),t.onMounted(()=>{a.value=C.id}),(w,E)=>{const N=t.resolveComponent("svg-icon"),S=t.resolveComponent("el-button"),v=t.resolveComponent("el-input"),x=t.resolveComponent("el-form-item"),T=t.resolveComponent("el-form");return t.openBlock(),t.createElementBlock("div",ZGe,[t.createElementVNode("div",JGe,[t.createElementVNode("div",XGe,[t.createElementVNode("div",QGe,t.toDisplayString(t.unref(le)("reminderList")),1),t.createElementVNode("div",null,[t.withDirectives(t.createVNode(S,{type:"success",class:"",onClick:E[0]||(E[0]=D=>t.unref(p)())},{default:t.withCtx(()=>[t.createElementVNode("div",eKe,[t.createVNode(N,{class:"!w-[14px] !h-[14px]",name:"base-add-3"}),t.createElementVNode("span",tKe,t.toDisplayString(t.unref(le)("addRemarks-0")),1)])]),_:1},512),[[t.vShow,w.mediaFileId]])])]),t.createElementVNode("div",nKe,[t.createVNode(T,{ref_key:"formRef",ref:i,class:"h-full","label-position":"top",model:t.unref(l),rules:t.unref(c),"label-width":"0px"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",oKe,[t.createElementVNode("div",rKe,[t.createElementVNode("div",aKe,[t.createVNode(x,{prop:"content"},{default:t.withCtx(()=>[t.createVNode(v,{modelValue:t.unref(l).content,"onUpdate:modelValue":E[1]||(E[1]=D=>t.unref(l).content=D),type:"textarea",placeholder:t.unref(le)("pleaseFillInTheRemarks"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),t.createElementVNode("div",iKe,[t.createVNode(S,{type:"primary",onClick:t.unref(f)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("cancel")),1)]),_:1},8,["onClick"]),t.createVNode(S,{onClick:t.unref(h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("save")),1)]),_:1},8,["onClick"])])])],512),[[t.vShow,t.unref(s)&&!t.unref(l).id]]),t.unref(d).length?(t.openBlock(),t.createElementBlock("ul",sKe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(d),D=>(t.openBlock(),t.createElementBlock("li",{key:D.id,class:"bg-hy-page-bg-3 rounded my-2 p-2 box-hy-border-2"},[t.createElementVNode("div",lKe,[t.createElementVNode("div",cKe,[t.createVNode(Zu,{url:D.remarkUserHeadImg},null,8,["url"]),t.createElementVNode("div",dKe,[t.createElementVNode("p",uKe,t.toDisplayString(D.remarkUserName),1),t.createElementVNode("p",fKe,t.toDisplayString(D.remarkUserSerialNum),1)])]),D.remarkUserId===t.unref(a)&&t.unref(l).id!==D.id?(t.openBlock(),t.createElementBlock("div",pKe,[t.createVNode(ra,{class:"!mx-0","class-nmae":"HyRoundButtonV2",name:"icon-edit",tips:t.unref(le)("edit"),onClick:V=>t.unref(b)(D)},null,8,["tips","onClick"]),t.createVNode(ra,{class:"hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-text-danger",name:"base-delete",tips:t.unref(le)("delete"),onClick:V=>t.unref(g)(D.id)},null,8,["tips","onClick"])])):t.createCommentVNode("",!0)]),t.withDirectives(t.createElementVNode("div",hKe,[t.createElementVNode("div",mKe,[t.createVNode(x,{prop:"content"},{default:t.withCtx(()=>[t.createVNode(v,{modelValue:t.unref(l).content,"onUpdate:modelValue":E[2]||(E[2]=V=>t.unref(l).content=V),type:"textarea",placeholder:t.unref(le)("pleaseFillInTheRemarks"),maxlength:"80","show-word-limit":"",resize:"none",autosize:{minRows:6,maxRows:6}},null,8,["modelValue","placeholder"])]),_:1})]),t.createElementVNode("div",gKe,[t.createVNode(S,{type:"primary",onClick:t.unref(f)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("cancel")),1)]),_:1},8,["onClick"]),t.createVNode(S,{onClick:t.unref(h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("save")),1)]),_:1},8,["onClick"])])],512),[[t.vShow,t.unref(l).id===D.id&&t.unref(s)]]),t.withDirectives(t.createElementVNode("div",{class:"px-2 mt-3 mb-1"},t.toDisplayString(D.content),513),[[t.vShow,!(t.unref(l).id===D.id&&t.unref(s))]])]))),128))])):(t.openBlock(),t.createElementBlock("div",yKe,[t.createElementVNode("div",_Ke,[t.createVNode(N,{class:"w-[80px] h-[80px]",name:"media-center-2-no-data"}),t.createElementVNode("div",bKe,t.toDisplayString(t.unref(le)("noData")),1)])]))]),_:1},8,["model","rules"])])])])}}});function Qf(e){return e=e.toString(),e[1]?e:`0${e}`}function X9(e,n){const o=new Date(e),r=[],i=["Y","M","D","day","h","m","s"],a=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];r.push(o.getFullYear()),r.push(Qf(o.getMonth()+1)),r.push(Qf(o.getHours())),r.push(a[o.getDay()]),r.push(Qf(o.getDate())),r.push(Qf(o.getMinutes())),r.push(Qf(o.getSeconds())),r.push(Qf(o.getDay()));for(const s in r)n=n.replace(i[s],r[s]);return n}function Q9(e){const n=function(){return Number(Math.random().toString().substr(2)).toString(36)},o=[];function r(){const a=n();let s=!1;o.forEach(l=>{l===a&&(s=!0)}),s?r():o.push(a)}let i=0;for(;i<e;)r(),i++;return o[0]}function _L(e){const n=/\./;return e?e<1024?`${n.test(`${e}`)?e.toFixed(3):e} B`:(e/=1024,e<1024?`${n.test(`${e}`)?e.toFixed(3):e} KB`:(e/=1024,e<1024?`${n.test(`${e}`)?e.toFixed(3):e} MB`:(e/=1024,e<1024?`${n.test(`${e}`)?e.toFixed(3):e} GB`:(e/=1024,`${n.test(`${e}`)?e.toFixed(3):e} TB`)))):"/"}function e7(e){const n=e.emit,o=t.ref(Ar.NO_LOAD),r=t.ref(null),i=t.ref(null),a=t.ref(null),s=t.ref(!0),l=t.ref(null),c=t.ref({}),d=t.ref(0),f=t.ref(0),u=t.reactive(ri.getCache("colorObject")),p=t.computed(()=>({2:u.auxiliary,3:u.warning,4:u.success,5:u.theme}));function h(){var T;(T=r.value)==null||T.show(c.value.id,l.value).then(D=>{c.value.fileScore=D,l.value=D})}function g(){n("closeDrawer")}function m(){}function _(T){b(T.playItem)}async function b(T){const D=T.id;if(c.value.id!==D){c.value={...T},s.value=!0;const V=await aB(D);V.code===200&&(l.value=V.data,c.value.fileScore=l.value,s.value=!1,t.nextTick(()=>{var R;(R=i.value)==null||R.setPlayItem(c.value)}))}}function C(T){d.value=T}function w(T){f.value=T}function E(){return e.params.getPlayerRef?e.params.getPlayerRef():a.value}function N(T){E().jumpDuration(T),E().resumePlay()}function S(){if(e.params.onEditMark){e.params.onEditMark();return}E().pauseAudio()}function v(){E().resumePlay()}function x(T){o.value=T}return{fileScoreRef:r,mapFileTrackRef:i,audioPlayerRef:a,colorObject:u,colors:p,audioState:o,fileScoreLoading:s,fileScore:l,playItem:c,playerTotalTime:d,audioCurTime:f,fileScoreShow:h,closeDrawer:g,playEnd:m,onPlayStart:_,playStart:b,canPlay:C,onTimeUpdate:w,playPoint:N,onEditMark:S,onEditorClose:v,setAudioState:x}}const bL=e=>(t.pushScopeId("data-v-6fcc23f0"),e=e(),t.popScopeId(),e),wKe={class:"h-full text-hy-text-main flex flex-col"},CKe={class:"h-[60px] flex justify-between items-center px-5"},EKe={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},kKe={class:"text-hy-danger"},vKe={class:"flex-grow h-0 overflow-y-auto"},SKe={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},NKe={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},xKe={class:"audio-play-icon-box flex"},TKe={class:"relative"},LKe={class:"point_area"},OKe={class:"point point_dot relative"},$Ke={class:"w-full h-full rounded-full bg-hy-page-bg-2 flex items-center justify-center text-hy-text-main"},DKe={class:"duration-1000"},PKe=[bL(()=>t.createElementVNode("div",{class:"point point_10"},null,-1)),bL(()=>t.createElementVNode("div",{class:"point point_40"},null,-1)),bL(()=>t.createElementVNode("div",{class:"point point_shadow point_80"},null,-1))],IKe={key:0,class:"w-full file-info"},MKe={class:"info-item"},AKe={class:"info-label"},VKe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},RKe={class:"info-item"},BKe={class:"info-label"},FKe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},zKe={key:0,class:"flex items-center"},UKe={key:1,class:"text-hy-text-secondary"},jKe={class:"info-item"},WKe={class:"info-label"},HKe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},GKe={class:"info-item"},KKe={class:"info-label"},YKe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},qKe={key:0},ZKe={key:1},JKe={key:2,class:"text-hy-danger"},XKe={key:3,class:"text-hy-text-secondary"},QKe={class:"info-item"},eYe={class:"info-label"},tYe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},nYe={class:"info-item"},oYe={class:"info-label"},rYe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},aYe={class:"info-item"},iYe={class:"info-label"},sYe={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},lYe={key:1,class:"text-hy-text-secondary"},cYe={class:"info-item"},dYe={class:"info-label"},uYe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},fYe={class:"info-item flex items-center text-xs"},pYe={class:"info-label"},hYe={class:"flex items-center rateBox"},mYe={key:0,class:"text-hy-text-secondary"},gYe={key:1,class:"text-hy-text-main"},yYe={class:"info-item"},_Ye={class:"info-label"},bYe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},wYe={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},CYe={class:"mb-1"},EYe={class:"w-[60%] flex"},kYe={class:"flex-grow w-0 ml-2"},vYe={class:"flex-grow w-0 ml-2"},SYe=Po(t.defineComponent({__name:"audio-details",props:{item:{},playList:{}},emits:["closeDrawer"],setup(e,{emit:n}){const o=e,r=n,{fileScoreRef:i,mapFileTrackRef:a,audioPlayerRef:s,colorObject:l,colors:c,audioState:d,fileScoreLoading:f,fileScore:u,playItem:p,playerTotalTime:h,audioCurTime:g,fileScoreShow:m,closeDrawer:_,playEnd:b,onPlayStart:C,playStart:w,canPlay:E,onTimeUpdate:N,playPoint:S,onEditMark:v,onEditorClose:x,setAudioState:T}=e7({emit:r});return t.onBeforeUnmount(()=>{_()}),t.onMounted(()=>{t.nextTick(()=>{p.value={},w(o.item),t.nextTick(()=>{var D;(D=s.value)==null||D.playAudio(o.item.filePath,o.item)})})}),(D,V)=>{const R=t.resolveComponent("svg-icon"),q=t.resolveComponent("el-col"),K=t.resolveComponent("el-rate"),G=t.resolveComponent("el-row"),I=$H;return t.openBlock(),t.createElementBlock("div",wKe,[t.createVNode(mL,{ref_key:"fileScoreRef",ref:i,onOnClose:V[0]||(V[0]=P=>u.value=null)},null,512),t.createElementVNode("div",CKe,[t.createElementVNode("div",EKe,[t.unref(p).mark?(t.openBlock(),t.createBlock(R,{key:0,width:"16",height:"16",name:"media-center-mark-file",class:"pos_r mr-1"})):t.createCommentVNode("",!0),t.createElementVNode("span",null,t.toDisplayString(t.unref(p).fileName),1)]),t.createElementVNode("div",kKe,[t.createVNode(R,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:t.unref(_)},null,8,["onClick"])])]),t.createElementVNode("div",vKe,[t.createElementVNode("div",SKe,[t.createElementVNode("div",NKe,[t.createElementVNode("div",xKe,[t.createElementVNode("div",TKe,[t.createElementVNode("div",LKe,[t.createElementVNode("div",OKe,[t.createElementVNode("div",$Ke,[t.createVNode(R,{width:"60%",height:"60%",name:"menu-micphone--2-select"})])]),t.withDirectives(t.createElementVNode("div",DKe,PKe,512),[[t.vShow,t.unref(d)===t.unref(Ar).PLAYING]])])])]),t.unref(p)&&t.unref(p).id?(t.openBlock(),t.createElementBlock("div",IKe,[t.createVNode(G,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:t.withCtx(()=>[t.createVNode(q,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",MKe,[t.createElementVNode("span",AKe,t.toDisplayString(t.unref(le)("creationTime")),1),t.createElementVNode("span",VKe,t.toDisplayString(t.unref(p).uploadDateStr),1)])]),_:1}),t.createVNode(q,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",RKe,[t.createElementVNode("span",BKe,t.toDisplayString(t.unref(le)("fileAttributes")),1),t.createElementVNode("span",FKe,[t.unref(p).mark?(t.openBlock(),t.createElementBlock("span",zKe,[t.createTextVNode(t.toDisplayString(t.unref(le)("star"))+" ",1),t.createVNode(R,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-[4px] -top-[2px]"})])):(t.openBlock(),t.createElementBlock("span",UKe,"-"))])])]),_:1}),t.createVNode(q,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",jKe,[t.createElementVNode("span",WKe,t.toDisplayString(t.unref(le)("user-3")),1),t.createElementVNode("span",HKe,t.toDisplayString(t.unref(p).devUserName),1)])]),_:1}),t.createVNode(q,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",GKe,[t.createElementVNode("span",KKe,t.toDisplayString(t.unref(le)("fileSource")),1),t.createElementVNode("span",YKe,[t.unref(p).type===1?(t.openBlock(),t.createElementBlock("span",qKe,t.toDisplayString(t.unref(le)("daily")),1)):t.unref(p).type===2?(t.openBlock(),t.createElementBlock("span",ZKe,t.toDisplayString(t.unref(le)("task")),1)):t.unref(p).type===3?(t.openBlock(),t.createElementBlock("span",JKe,"SOS")):(t.openBlock(),t.createElementBlock("span",XKe,"-"))])])]),_:1}),t.createVNode(q,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",QKe,[t.createElementVNode("span",eYe,t.toDisplayString(t.unref(le)("deviceID")),1),t.createElementVNode("span",tYe,t.toDisplayString(t.unref(p).deviceId),1)])]),_:1}),t.createVNode(q,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",nYe,[t.createElementVNode("span",oYe,t.toDisplayString(t.unref(le)("audioDuration")),1),t.createElementVNode("span",rYe,t.toDisplayString(t.unref(h))+"s ",1)])]),_:1}),t.createVNode(q,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",aYe,[t.createElementVNode("span",iYe,t.toDisplayString(t.unref(le)("expirationTime")),1),t.unref(p).expiredDtm?(t.openBlock(),t.createElementBlock("span",sYe,t.toDisplayString(t.unref(p).expiredDtm),1)):(t.openBlock(),t.createElementBlock("span",lYe,"-"))])]),_:1}),t.createVNode(q,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",cYe,[t.createElementVNode("span",dYe,t.toDisplayString(t.unref(le)("fileSize")),1),t.createElementVNode("span",uYe,t.toDisplayString(t.unref(_L)(t.unref(p).fileSize)),1)])]),_:1}),t.withDirectives(t.createVNode(q,{span:24},{default:t.withCtx(()=>[t.createElementVNode("div",fYe,[t.createElementVNode("span",pYe,t.toDisplayString(t.unref(le)("rating")),1),t.createElementVNode("div",hYe,[t.createVNode(K,{modelValue:t.unref(u),"onUpdate:modelValue":V[1]||(V[1]=P=>t.isRef(u)?u.value=P:null),disabled:!!t.unref(p).fileScore,"void-color":t.unref(l).main,"disabled-void-color":t.unref(l).auxiliary,"disabled-void-icon-class":"el-icon-star-off",colors:t.unref(c),onChange:t.unref(m)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),t.unref(p).fileScore?(t.openBlock(),t.createElementBlock("span",mYe,t.toDisplayString(t.unref(le)("rated")),1)):(t.openBlock(),t.createElementBlock("span",gYe,t.toDisplayString(t.unref(le)("unrated")),1))])])]),_:1},512),[[t.vShow,!t.unref(f)]]),t.createVNode(q,{span:24},{default:t.withCtx(()=>[t.createElementVNode("div",yYe,[t.createElementVNode("span",_Ye,t.toDisplayString(t.unref(le)("location")),1),t.createElementVNode("span",bYe,t.toDisplayString(t.unref(p).address),1)])]),_:1})]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",wYe,[t.createVNode(I,{ref_key:"mapFileTrackRef",ref:a},null,512)]),t.createElementVNode("div",CYe,[t.createVNode(sB,{ref_key:"audioPlayerRef",ref:s,"play-list":D.playList,onOnTimeUpdate:t.unref(N),onCanPlay:t.unref(E),onPlayEnd:t.unref(b),onPlayStart:t.unref(C),onOnAudioState:t.unref(T)},null,8,["play-list","onOnTimeUpdate","onCanPlay","onPlayEnd","onPlayStart","onOnAudioState"])])]),t.createElementVNode("div",EYe,[t.createElementVNode("div",kYe,[t.createVNode(yL,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":t.unref(p).id,onOnEdit:t.unref(v),onOnClose:t.unref(x)},null,8,["media-file-id","onOnEdit","onOnClose"])]),t.createElementVNode("div",vYe,[t.createVNode(J9,{class:"bg-hy-page-bg-2","media-file-cur-time":t.unref(g),"media-file-id":t.unref(p).id,"media-file-total-time":t.unref(h),onPlayPoint:t.unref(S),onOnEdit:t.unref(v),onOnClose:t.unref(x)},null,8,["media-file-cur-time","media-file-id","media-file-total-time","onPlayPoint","onOnEdit","onOnClose"])])])])])])}}}),[["__scopeId","data-v-6fcc23f0"]]);function NYe(e){return xt.get({url:e,data:{responseType:"blob"},isFileUpload:!0})}function xYe(e){const n=e.emit,o=t.ref(e.props||{}),r=t.ref(null),i=t.ref(null),a=t.ref(!0),s=t.ref(null),l=t.ref(!1),c=t.ref([]),d=t.ref(!1),f=t.ref({id:"",filePath:""});async function u(N){ft.warning(le("fileIsDownloading"));const S=X9(new Date,"Y-M-h D:m:s"),v=await NYe(`/mediaFile/mediaFileZip?mediaFileIds=${N.toString()}`),x=new FileReader;x.readAsDataURL(v),x.onload=T=>{const D=URL.createObjectURL(new Blob([v])),V=document.createElement("a");document.body.appendChild(V),V.href=D,V.download=`${le("fileCompressionPackage_")}${S}.zip`,V.target="_blank",V.click(),V.remove()}}function p(){const N=o.value.playList.findIndex(S=>S.id===f.value.id);N!==0?E(o.value.playList[N-1]):ft.warning(le("currentIsTheFirstItem"))}function h(){const N=o.value.playList.findIndex(S=>S.id===f.value.id);N!==o.value.playList.length-1?E(o.value.playList[N+1]):ft.warning(le("currentIsTheLastItem"))}function g(){ft.success(le("detectionIsCorrect"))}function m(){r.value.show(f.value.id,s.value).then(N=>{f.value.fileScore=N,N.value=N})}function _(N){l.value=!0,c.value=[],i.value.onShowViewer(N)}function b(){l.value=!1}function C(){n("closeDrawer")}function w(N){console.log("error",N)}async function E(N){const S=N.id;f.value={...N},a.value=!0;const v=await aB(S);v.code===200&&(s.value=v.data||null,f.value.fileScore=s.value,a.value=!1)}return{imageViewerRef:i,fileScoreRef:r,fileScoreLoading:a,fileScore:s,imageviewerType:l,imageviewerUrl:c,videoDialogVisible:d,playItem:f,pictureDownloadFn:u,previousSheet:p,nextSheet:h,detectingHashValues:g,fileScoreShow:m,onShowViewer:_,imageviewerClose:b,closeDrawer:C,error:w,playStart:E}}const TYe={class:"h-full pic-detail-box flex flex-col"},LYe={class:"detail-box flex-shrink-0"},OYe={class:"box-header flex flex-row m-0"},$Ye={class:"flex flex-row left-header-box"},DYe={class:"group-hy-info flex items-center text-base font-bold w-full"},PYe={key:1,class:"ml-1 flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap"},IYe={class:"flex flex-row right-header-box flex-shrink text-hy-danger"},MYe={class:"flex-grow h-0 overflow-y-auto"},AYe={class:"content flex flex-row h-full min-h-[700px]"},VYe={class:"left-content-box relative"},RYe=["src"],BYe={class:"flex items-center justify-between h-[60px] box-hy-border-2"},FYe={class:"text-xs"},zYe={class:"text-xs"},UYe={class:"flex items-center"},jYe={class:"text-xs text-hy-text-secondary mr-2 flex items-center"},WYe={class:"flex items-center justify-center"},HYe={class:"ml-1 text-xs"},GYe={key:0,class:"w-full file-info mb-[10px]"},KYe={class:"info-item"},YYe={class:"info-label"},qYe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},ZYe={class:"info-item"},JYe={class:"info-label"},XYe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},QYe={class:"info-item"},eqe={class:"info-label"},tqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},nqe={class:"info-item"},oqe={class:"info-label"},rqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},aqe={key:0},iqe={key:1},sqe={key:2,class:"text-hy-danger"},lqe={key:3,class:"text-hy-text-secondary"},cqe={class:"info-item"},dqe={class:"info-label"},uqe={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},fqe={key:1,class:"text-hy-text-secondary"},pqe={class:"info-item"},hqe={class:"info-label"},mqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},gqe={key:0,class:"flex items-center"},yqe={key:1,class:"text-hy-text-secondary"},_qe={class:"info-item"},bqe={class:"info-label"},wqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Cqe={class:"info-item flex items-center text-xs"},Eqe={class:"info-label"},kqe={class:"flex items-center rateBox"},vqe={key:0,class:"text-hy-text-secondary"},Sqe={key:1,class:"text-hy-text-main"},Nqe={class:"info-item"},xqe={class:"info-label"},Tqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Lqe={key:0,class:"w-[30%] ml-2 flex-shrink-0 relative"},Oqe=Po(t.defineComponent({__name:"image-details",props:{item:{},playList:{default:()=>[]}},emits:["closeDrawer"],setup(e,{emit:n}){const o=e,r=n,i=t.reactive(ri.getCache("colorObject")),a=t.computed(()=>({2:i.auxiliary,3:i.warning,4:i.success,5:i.theme})),{imageViewerRef:s,fileScoreRef:l,fileScoreLoading:c,fileScore:d,playItem:f,pictureDownloadFn:u,previousSheet:p,nextSheet:h,fileScoreShow:g,onShowViewer:m,closeDrawer:_,error:b,playStart:C}=xYe({emit:r,props:o});return t.onMounted(()=>{C(o.item)}),(w,E)=>{const N=t.resolveComponent("svg-icon"),S=t.resolveComponent("el-button"),v=t.resolveComponent("el-icon"),x=t.resolveComponent("el-col"),T=t.resolveComponent("el-rate"),D=t.resolveComponent("el-row");return t.openBlock(),t.createElementBlock("div",TYe,[t.createVNode(mL,{ref_key:"fileScoreRef",ref:l,onOnClose:E[0]||(E[0]=V=>d.value=null)},null,512),t.createElementVNode("div",LYe,[t.createElementVNode("div",OYe,[t.createElementVNode("div",$Ye,[t.createElementVNode("div",DYe,[t.unref(f).mark?(t.openBlock(),t.createBlock(N,{key:0,width:"16",height:"16",name:"media-center-mark-file",class:"pos_r"})):t.createCommentVNode("",!0),t.unref(f)?(t.openBlock(),t.createElementBlock("div",PYe,t.toDisplayString(t.unref(f).fileName),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",IYe,[t.createVNode(N,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:t.unref(_)},null,8,["onClick"])])])]),t.createElementVNode("div",MYe,[t.createElementVNode("div",AYe,[t.createElementVNode("div",VYe,[t.createElementVNode("div",{class:"pic-img relative flex items-center justify-center",onClick:E[1]||(E[1]=V=>t.unref(m)(t.unref(f).filePath))},[t.createElementVNode("img",{src:t.unref(f).filePath,class:"h-full"},null,8,RYe)]),t.createElementVNode("div",BYe,[t.createElementVNode("div",null,[t.withDirectives(t.createElementVNode("div",null,[t.createVNode(S,{type:"primary",class:"",onClick:t.unref(p)},{default:t.withCtx(()=>[t.createElementVNode("span",FYe,t.toDisplayString(t.unref(le)("previous")),1)]),_:1},8,["onClick"]),t.createVNode(S,{type:"primary",class:"",onClick:t.unref(h)},{default:t.withCtx(()=>[t.createElementVNode("span",zYe,t.toDisplayString(t.unref(le)("next")),1)]),_:1},8,["onClick"])],512),[[t.vShow,o.playList.length>1]])]),t.createElementVNode("div",UYe,[t.createElementVNode("p",jYe,[t.createVNode(v,{class:"text-sm mr-1"},{default:t.withCtx(()=>[t.createVNode(t.unref(lZ))]),_:1}),t.createTextVNode(" "+t.toDisplayString(t.unref(le)("clickOnTheImageToEnlargeAndView")),1)]),t.createVNode(S,{class:"button_function",onClick:E[2]||(E[2]=V=>t.unref(u)(t.unref(f).id))},{default:t.withCtx(()=>[t.createElementVNode("div",WYe,[t.createVNode(N,{class:"w-[12px] h-[12px]",name:"media-download"}),t.createElementVNode("span",HYe,t.toDisplayString(t.unref(le)("download-0")),1)])]),_:1})])]),t.unref(f)&&t.unref(f).id?(t.openBlock(),t.createElementBlock("div",GYe,[t.createVNode(D,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:t.withCtx(()=>[t.createVNode(x,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",KYe,[t.createElementVNode("span",YYe,t.toDisplayString(t.unref(le)("creationTime")),1),t.createElementVNode("span",qYe,t.toDisplayString(t.unref(f).uploadDateStr),1)])]),_:1}),t.createVNode(x,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",ZYe,[t.createElementVNode("span",JYe,t.toDisplayString(t.unref(le)("fileSize")),1),t.createElementVNode("span",XYe,t.toDisplayString(t.unref(_L)(t.unref(f).fileSize)),1)])]),_:1}),t.createVNode(x,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",QYe,[t.createElementVNode("span",eqe,t.toDisplayString(t.unref(le)("user-3")),1),t.createElementVNode("span",tqe,t.toDisplayString(t.unref(f).devUserName),1)])]),_:1}),t.createVNode(x,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",nqe,[t.createElementVNode("span",oqe,t.toDisplayString(t.unref(le)("fileSource")),1),t.createElementVNode("span",rqe,[t.unref(f).type===1?(t.openBlock(),t.createElementBlock("span",aqe,t.toDisplayString(t.unref(le)("daily")),1)):t.unref(f).type===2?(t.openBlock(),t.createElementBlock("span",iqe,t.toDisplayString(t.unref(le)("task")),1)):t.unref(f).type===3?(t.openBlock(),t.createElementBlock("span",sqe,"SOS")):(t.openBlock(),t.createElementBlock("span",lqe,"-"))])])]),_:1}),t.createVNode(x,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",cqe,[t.createElementVNode("span",dqe,t.toDisplayString(t.unref(le)("expirationTime")),1),t.unref(f).expiredDtm?(t.openBlock(),t.createElementBlock("span",uqe,t.toDisplayString(t.unref(f).expiredDtm),1)):(t.openBlock(),t.createElementBlock("span",fqe,"-"))])]),_:1}),t.createVNode(x,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",pqe,[t.createElementVNode("span",hqe,t.toDisplayString(t.unref(le)("fileAttributes")),1),t.createElementVNode("span",mqe,[t.unref(f).mark?(t.openBlock(),t.createElementBlock("span",gqe,[t.createTextVNode(t.toDisplayString(t.unref(le)("star"))+" ",1),t.createVNode(N,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-1 -top-[2px]"})])):(t.openBlock(),t.createElementBlock("span",yqe,"-"))])])]),_:1}),t.createVNode(x,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",_qe,[t.createElementVNode("span",bqe,t.toDisplayString(t.unref(le)("deviceID")),1),t.createElementVNode("span",wqe,t.toDisplayString(t.unref(f).deviceId),1)])]),_:1}),t.withDirectives(t.createVNode(x,{span:24},{default:t.withCtx(()=>[t.createElementVNode("div",Cqe,[t.createElementVNode("span",Eqe,t.toDisplayString(t.unref(le)("rating")),1),t.createElementVNode("div",kqe,[t.createVNode(T,{modelValue:t.unref(d),"onUpdate:modelValue":E[3]||(E[3]=V=>t.isRef(d)?d.value=V:null),disabled:!!t.unref(f).fileScore,"void-color":i.main,"disabled-void-color":i.auxiliary,"disabled-void-icon-class":"el-icon-star-off",colors:a.value,onChange:t.unref(g)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),t.unref(f).fileScore?(t.openBlock(),t.createElementBlock("span",vqe,t.toDisplayString(t.unref(le)("rated")),1)):(t.openBlock(),t.createElementBlock("span",Sqe,t.toDisplayString(t.unref(le)("unrated")),1))])])]),_:1},512),[[t.vShow,!t.unref(c)]]),t.createVNode(x,{span:24},{default:t.withCtx(()=>[t.createElementVNode("div",Nqe,[t.createElementVNode("span",xqe,t.toDisplayString(t.unref(le)("location")),1),t.createElementVNode("span",Tqe,t.toDisplayString(t.unref(f).address),1)])]),_:1})]),_:1})])):t.createCommentVNode("",!0)]),t.unref(f).id?(t.openBlock(),t.createElementBlock("div",Lqe,[t.createVNode(yL,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":t.unref(f).id},null,8,["media-file-id"])])):t.createCommentVNode("",!0)])]),t.createVNode(QR,{ref_key:"imageViewerRef",ref:s},null,512)])}}}),[["__scopeId","data-v-b81f01ee"]]),$qe={class:"h-full text-hy-text-main flex flex-col"},Dqe={class:"h-[60px] flex justify-between items-center px-5"},Pqe={class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-base font-bold"},Iqe={class:"text-hy-danger"},Mqe={class:"flex-grow h-0 overflow-y-auto"},Aqe={class:"justify-between box-border p-[0_20px_20px] flex flex-row h-full min-h-[700px]"},Vqe={class:"flex flex-col flex-grow w-0 px-3 bg-hy-page-bg-2 border border-hy-border-2 rounded"},Rqe={class:"h-[240px] video-player-box mt-[20px] flex"},Bqe={key:0,class:"w-full file-info m-[10px_0]"},Fqe={class:"info-item"},zqe={class:"info-label"},Uqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},jqe={class:"info-item"},Wqe={class:"info-label"},Hqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Gqe={key:0,class:"flex items-center"},Kqe={key:1,class:"text-hy-text-secondary"},Yqe={class:"info-item"},qqe={class:"info-label"},Zqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},Jqe={class:"info-item"},Xqe={class:"info-label"},Qqe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},eZe={class:"info-item"},tZe={class:"info-label"},nZe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},oZe={class:"info-item"},rZe={class:"info-label"},aZe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},iZe={key:0},sZe={key:1},lZe={key:2,class:"text-hy-danger"},cZe={key:3,class:"text-hy-text-secondary"},dZe={class:"info-item"},uZe={class:"info-label"},fZe={key:0,class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},pZe={key:1,class:"text-hy-text-secondary"},hZe={class:"info-item"},mZe={class:"info-label"},gZe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},yZe={class:"info-item flex items-center text-xs"},_Ze={class:"info-label"},bZe={class:"flex items-center rateBox"},wZe={key:0,class:"text-hy-text-secondary"},CZe={key:1,class:"text-hy-text-main"},EZe={class:"info-item"},kZe={class:"info-label"},vZe={class:"info-value overflow-ellipsis overflow-hidden whitespace-nowrap"},SZe={class:"flex relative z-[2] flex-grow rounded border border-hy-border-2 my-2 overflow-hidden"},NZe={class:"w-[60%] flex"},xZe={class:"flex-grow w-0 ml-2"},TZe={class:"flex-grow w-0 ml-2"},LZe=Po(t.defineComponent({__name:"video-details",props:{item:{},playList:{}},emits:["closeDrawer"],setup(e,{emit:n}){const o=e,r=n,i=t.ref(),{fileScoreRef:a,mapFileTrackRef:s,colorObject:l,colors:c,audioState:d,fileScoreLoading:f,fileScore:u,playItem:p,playerTotalTime:h,audioCurTime:g,fileScoreShow:m,closeDrawer:_,playEnd:b,onPlayStart:C,playStart:w,canPlay:E,onTimeUpdate:N,playPoint:S,onEditMark:v,onEditorClose:x,setAudioState:T}=e7({emit:r,params:{getPlayerRef:()=>i.value,onEditMark:()=>{i.value.pauseVideo()}}});return t.onBeforeUnmount(()=>{_()}),t.onMounted(()=>{t.nextTick(()=>{p.value={},w(o.item),t.nextTick(()=>{var D;(D=i.value)==null||D.playVideo(o.item.filePath,o.item)})})}),(D,V)=>{const R=t.resolveComponent("svg-icon"),q=t.resolveComponent("el-col"),K=t.resolveComponent("el-rate"),G=t.resolveComponent("el-row");return t.openBlock(),t.createElementBlock("div",$qe,[t.createVNode(mL,{ref_key:"fileScoreRef",ref:a,onOnClose:V[0]||(V[0]=I=>u.value=null)},null,512),t.createElementVNode("div",Dqe,[t.createElementVNode("div",Pqe,[t.unref(p).mark?(t.openBlock(),t.createBlock(R,{key:0,width:"16",height:"16",name:"media-center-mark-file",class:"pos_r mr-1"})):t.createCommentVNode("",!0),t.createElementVNode("span",null,t.toDisplayString(t.unref(p).fileName),1)]),t.createElementVNode("div",Iqe,[t.createVNode(R,{name:"base-close",class:"click-box !w-[26px] !h-[26px]",onClick:t.unref(_)},null,8,["onClick"])])]),t.createElementVNode("div",Mqe,[t.createElementVNode("div",Aqe,[t.createElementVNode("div",Vqe,[t.createElementVNode("div",Rqe,[t.createVNode(lB,{ref_key:"videoPlayerRef",ref:i,"play-list":D.playList,onCanPlay:t.unref(E),onOnTimeUpdate:t.unref(N),onPlayStart:t.unref(C)},null,8,["play-list","onCanPlay","onOnTimeUpdate","onPlayStart"])]),t.unref(p)&&t.unref(p).id?(t.openBlock(),t.createElementBlock("div",Bqe,[t.createVNode(G,{gutter:20,class:"text-xs text-hy-text-secondary leading-[20px]"},{default:t.withCtx(()=>[t.createVNode(q,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",Fqe,[t.createElementVNode("span",zqe,t.toDisplayString(t.unref(le)("creationTime")),1),t.createElementVNode("span",Uqe,t.toDisplayString(t.unref(p).uploadDateStr),1)])]),_:1}),t.createVNode(q,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",jqe,[t.createElementVNode("span",Wqe,t.toDisplayString(t.unref(le)("fileAttributes")),1),t.createElementVNode("span",Hqe,[t.unref(p).mark?(t.openBlock(),t.createElementBlock("span",Gqe,[t.createTextVNode(t.toDisplayString(t.unref(le)("star"))+" ",1),t.createVNode(R,{width:"16",height:"16",name:"media-center-mark-file-2",class:"pos_r ml-[4px] -top-[2px]"})])):(t.openBlock(),t.createElementBlock("span",Kqe,"-"))])])]),_:1}),t.createVNode(q,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",Yqe,[t.createElementVNode("span",qqe,t.toDisplayString(t.unref(le)("user-3")),1),t.createElementVNode("span",Zqe,t.toDisplayString(t.unref(p).devUserName),1)])]),_:1}),t.createVNode(q,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",Jqe,[t.createElementVNode("span",Xqe,t.toDisplayString(t.unref(le)("fileSize")),1),t.createElementVNode("span",Qqe,t.toDisplayString(t.unref(_L)(t.unref(p).fileSize)),1)])]),_:1}),t.createVNode(q,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",eZe,[t.createElementVNode("span",tZe,t.toDisplayString(t.unref(le)("deviceID")),1),t.createElementVNode("span",nZe,t.toDisplayString(t.unref(p).deviceId),1)])]),_:1}),t.createVNode(q,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",oZe,[t.createElementVNode("span",rZe,t.toDisplayString(t.unref(le)("fileSource")),1),t.createElementVNode("span",aZe,[t.unref(p).type===1?(t.openBlock(),t.createElementBlock("span",iZe,t.toDisplayString(t.unref(le)("daily")),1)):t.unref(p).type===2?(t.openBlock(),t.createElementBlock("span",sZe,t.toDisplayString(t.unref(le)("task")),1)):t.unref(p).type===3?(t.openBlock(),t.createElementBlock("span",lZe,"SOS")):(t.openBlock(),t.createElementBlock("span",cZe,"-"))])])]),_:1}),t.createVNode(q,{span:14},{default:t.withCtx(()=>[t.createElementVNode("div",dZe,[t.createElementVNode("span",uZe,t.toDisplayString(t.unref(le)("expirationTime")),1),t.unref(p).expiredDtm?(t.openBlock(),t.createElementBlock("span",fZe,t.toDisplayString(t.unref(p).expiredDtm),1)):(t.openBlock(),t.createElementBlock("span",pZe,"-"))])]),_:1}),t.createVNode(q,{span:10},{default:t.withCtx(()=>[t.createElementVNode("div",hZe,[t.createElementVNode("span",mZe,t.toDisplayString(t.unref(le)("videoDuration")),1),t.createElementVNode("span",gZe,t.toDisplayString(t.unref(h))+"s ",1)])]),_:1}),t.withDirectives(t.createVNode(q,{span:24},{default:t.withCtx(()=>[t.createElementVNode("div",yZe,[t.createElementVNode("span",_Ze,t.toDisplayString(t.unref(le)("rating")),1),t.createElementVNode("div",bZe,[t.createVNode(K,{modelValue:t.unref(u),"onUpdate:modelValue":V[1]||(V[1]=I=>t.isRef(u)?u.value=I:null),disabled:!!t.unref(p).fileScore,"void-color":t.unref(l).main,"disabled-void-color":t.unref(l).auxiliary,"disabled-void-icon-class":"el-icon-star-off",colors:t.unref(c),onChange:t.unref(m)},null,8,["modelValue","disabled","void-color","disabled-void-color","colors","onChange"]),t.unref(p).fileScore?(t.openBlock(),t.createElementBlock("span",wZe,t.toDisplayString(t.unref(le)("rated")),1)):(t.openBlock(),t.createElementBlock("span",CZe,t.toDisplayString(t.unref(le)("unrated")),1))])])]),_:1},512),[[t.vShow,!t.unref(f)]]),t.createVNode(q,{span:24},{default:t.withCtx(()=>[t.createElementVNode("div",EZe,[t.createElementVNode("span",kZe,t.toDisplayString(t.unref(le)("location")),1),t.createElementVNode("span",vZe,t.toDisplayString(t.unref(p).address),1)])]),_:1})]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",SZe,[t.createVNode($H,{ref_key:"mapFileTrackRef",ref:s},null,512)])]),t.createElementVNode("div",NZe,[t.createElementVNode("div",xZe,[t.createVNode(yL,{ref:"remarkRef",class:"bg-hy-page-bg-2","media-file-id":t.unref(p).id,onOnEdit:t.unref(v),onOnClose:t.unref(x)},null,8,["media-file-id","onOnEdit","onOnClose"])]),t.createElementVNode("div",TZe,[t.createVNode(J9,{class:"bg-hy-page-bg-2","media-file-cur-time":t.unref(g),"media-file-id":t.unref(p).id,"media-file-total-time":t.unref(h),onPlayPoint:t.unref(S),onOnEdit:t.unref(v),onOnClose:t.unref(x)},null,8,["media-file-cur-time","media-file-id","media-file-total-time","onPlayPoint","onOnEdit","onOnClose"])])])])])])}}}),[["__scopeId","data-v-03641849"]]),OZe={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"},$Ze={class:"h-[780px]"},DZe=t.defineComponent({__name:"file-details",setup(e,{expose:n}){const o=t.ref(!1),r=t.ref(!1),i=t.ref(1),a=t.ref({}),s=t.ref([]);function l(){o.value=!1,console.log("closeDrawer")}function c(d){o.value=!0,r.value=d.draggable,i.value=d.curMediaType,a.value=d.curItem,s.value=d.playList||[]}return t.onMounted(()=>{}),n({show:c}),(d,f)=>{const u=t.resolveComponent("el-dialog"),p=t.resolveDirective("draggable");return t.openBlock(),t.createBlock(u,{modelValue:t.unref(o),"onUpdate:modelValue":f[0]||(f[0]=h=>t.isRef(o)?o.value=h:null),top:"3vh","modal-class":"custom-transparent",class:"w-[1200px] !p-0 border-[0] shadow-[0_0_0_0]","destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,modal:!1,draggable:t.unref(r)},{header:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createBlock(Rs,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:t.withCtx(()=>[t.createElementVNode("div",OZe,[t.createElementVNode("div",$Ze,[t.unref(i)===2?(t.openBlock(),t.createBlock(SYe,{key:0,item:t.unref(a),"play-list":t.unref(s),onCloseDrawer:l},null,8,["item","play-list"])):t.unref(i)===3?(t.openBlock(),t.createBlock(LZe,{key:1,item:t.unref(a),"play-list":t.unref(s),onCloseDrawer:l},null,8,["item","play-list"])):t.unref(i)===4?(t.openBlock(),t.createBlock(Oqe,{key:2,item:t.unref(a),"play-list":t.unref(s),onCloseDrawer:l},null,8,["item","play-list"])):t.createCommentVNode("",!0)])])]),_:1})),[[p]])]),_:1},8,["modelValue","draggable"])}}});function PZe(e){return xt.post({url:"/file/abortMultipartUpload",data:e,isJson:!0})}function IZe(e){return xt.post({url:"/file/multipartUploadAuth",data:e,isFormData:!0})}function MZe(e){return xt.post({url:"/file/completeMultipartUpload",data:e,isJson:!0})}function AZe(e){return xt.post({url:"/mediaFile/mediaFile/save",data:e,isJson:!0})}function VZe(e){return xt.post({url:"/mediaFile/findByFileCloudKey",data:{fileCloudKey:e},isFormData:!0})}var t7={exports:{}};(function(e,n){(function(o){e.exports=o()})(function(o){var r=function(v,x){return v+x&4294967295},i=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function a(v,x,T,D,V,R){return x=r(r(x,v),r(D,R)),r(x<<V|x>>>32-V,T)}function s(v,x,T,D,V,R,q){return a(x&T|~x&D,v,x,V,R,q)}function l(v,x,T,D,V,R,q){return a(x&D|T&~D,v,x,V,R,q)}function c(v,x,T,D,V,R,q){return a(x^T^D,v,x,V,R,q)}function d(v,x,T,D,V,R,q){return a(T^(x|~D),v,x,V,R,q)}function f(v,x){var T=v[0],D=v[1],V=v[2],R=v[3];T=s(T,D,V,R,x[0],7,-680876936),R=s(R,T,D,V,x[1],12,-389564586),V=s(V,R,T,D,x[2],17,606105819),D=s(D,V,R,T,x[3],22,-1044525330),T=s(T,D,V,R,x[4],7,-176418897),R=s(R,T,D,V,x[5],12,1200080426),V=s(V,R,T,D,x[6],17,-1473231341),D=s(D,V,R,T,x[7],22,-45705983),T=s(T,D,V,R,x[8],7,1770035416),R=s(R,T,D,V,x[9],12,-1958414417),V=s(V,R,T,D,x[10],17,-42063),D=s(D,V,R,T,x[11],22,-1990404162),T=s(T,D,V,R,x[12],7,1804603682),R=s(R,T,D,V,x[13],12,-40341101),V=s(V,R,T,D,x[14],17,-1502002290),D=s(D,V,R,T,x[15],22,1236535329),T=l(T,D,V,R,x[1],5,-165796510),R=l(R,T,D,V,x[6],9,-1069501632),V=l(V,R,T,D,x[11],14,643717713),D=l(D,V,R,T,x[0],20,-373897302),T=l(T,D,V,R,x[5],5,-701558691),R=l(R,T,D,V,x[10],9,38016083),V=l(V,R,T,D,x[15],14,-660478335),D=l(D,V,R,T,x[4],20,-405537848),T=l(T,D,V,R,x[9],5,568446438),R=l(R,T,D,V,x[14],9,-1019803690),V=l(V,R,T,D,x[3],14,-187363961),D=l(D,V,R,T,x[8],20,1163531501),T=l(T,D,V,R,x[13],5,-1444681467),R=l(R,T,D,V,x[2],9,-51403784),V=l(V,R,T,D,x[7],14,1735328473),D=l(D,V,R,T,x[12],20,-1926607734),T=c(T,D,V,R,x[5],4,-378558),R=c(R,T,D,V,x[8],11,-2022574463),V=c(V,R,T,D,x[11],16,1839030562),D=c(D,V,R,T,x[14],23,-35309556),T=c(T,D,V,R,x[1],4,-1530992060),R=c(R,T,D,V,x[4],11,1272893353),V=c(V,R,T,D,x[7],16,-155497632),D=c(D,V,R,T,x[10],23,-1094730640),T=c(T,D,V,R,x[13],4,681279174),R=c(R,T,D,V,x[0],11,-358537222),V=c(V,R,T,D,x[3],16,-722521979),D=c(D,V,R,T,x[6],23,76029189),T=c(T,D,V,R,x[9],4,-640364487),R=c(R,T,D,V,x[12],11,-421815835),V=c(V,R,T,D,x[15],16,530742520),D=c(D,V,R,T,x[2],23,-995338651),T=d(T,D,V,R,x[0],6,-198630844),R=d(R,T,D,V,x[7],10,1126891415),V=d(V,R,T,D,x[14],15,-1416354905),D=d(D,V,R,T,x[5],21,-57434055),T=d(T,D,V,R,x[12],6,1700485571),R=d(R,T,D,V,x[3],10,-1894986606),V=d(V,R,T,D,x[10],15,-1051523),D=d(D,V,R,T,x[1],21,-2054922799),T=d(T,D,V,R,x[8],6,1873313359),R=d(R,T,D,V,x[15],10,-30611744),V=d(V,R,T,D,x[6],15,-1560198380),D=d(D,V,R,T,x[13],21,1309151649),T=d(T,D,V,R,x[4],6,-145523070),R=d(R,T,D,V,x[11],10,-1120210379),V=d(V,R,T,D,x[2],15,718787259),D=d(D,V,R,T,x[9],21,-343485551),v[0]=r(T,v[0]),v[1]=r(D,v[1]),v[2]=r(V,v[2]),v[3]=r(R,v[3])}function u(v){var x=[],T;for(T=0;T<64;T+=4)x[T>>2]=v.charCodeAt(T)+(v.charCodeAt(T+1)<<8)+(v.charCodeAt(T+2)<<16)+(v.charCodeAt(T+3)<<24);return x}function p(v){var x=[],T;for(T=0;T<64;T+=4)x[T>>2]=v[T]+(v[T+1]<<8)+(v[T+2]<<16)+(v[T+3]<<24);return x}function h(v){var x=v.length,T=[1732584193,-271733879,-1732584194,271733878],D,V,R,q,K,G;for(D=64;D<=x;D+=64)f(T,u(v.substring(D-64,D)));for(v=v.substring(D-64),V=v.length,R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],D=0;D<V;D+=1)R[D>>2]|=v.charCodeAt(D)<<(D%4<<3);if(R[D>>2]|=128<<(D%4<<3),D>55)for(f(T,R),D=0;D<16;D+=1)R[D]=0;return q=x*8,q=q.toString(16).match(/(.*?)(.{0,8})$/),K=parseInt(q[2],16),G=parseInt(q[1],16)||0,R[14]=K,R[15]=G,f(T,R),T}function g(v){var x=v.length,T=[1732584193,-271733879,-1732584194,271733878],D,V,R,q,K,G;for(D=64;D<=x;D+=64)f(T,p(v.subarray(D-64,D)));for(v=D-64<x?v.subarray(D-64):new Uint8Array(0),V=v.length,R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],D=0;D<V;D+=1)R[D>>2]|=v[D]<<(D%4<<3);if(R[D>>2]|=128<<(D%4<<3),D>55)for(f(T,R),D=0;D<16;D+=1)R[D]=0;return q=x*8,q=q.toString(16).match(/(.*?)(.{0,8})$/),K=parseInt(q[2],16),G=parseInt(q[1],16)||0,R[14]=K,R[15]=G,f(T,R),T}function m(v){var x="",T;for(T=0;T<4;T+=1)x+=i[v>>T*8+4&15]+i[v>>T*8&15];return x}function _(v){var x;for(x=0;x<v.length;x+=1)v[x]=m(v[x]);return v.join("")}_(h("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(r=function(v,x){var T=(v&65535)+(x&65535),D=(v>>16)+(x>>16)+(T>>16);return D<<16|T&65535}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function v(x,T){return x=x|0||0,x<0?Math.max(x+T,0):Math.min(x,T)}ArrayBuffer.prototype.slice=function(x,T){var D=this.byteLength,V=v(x,D),R=D,q,K,G,I;return T!==o&&(R=v(T,D)),V>R?new ArrayBuffer(0):(q=R-V,K=new ArrayBuffer(q),G=new Uint8Array(K),I=new Uint8Array(this,V,q),G.set(I),K)}}();function b(v){return/[\u0080-\uFFFF]/.test(v)&&(v=unescape(encodeURIComponent(v))),v}function C(v,x){var T=v.length,D=new ArrayBuffer(T),V=new Uint8Array(D),R;for(R=0;R<T;R+=1)V[R]=v.charCodeAt(R);return x?V:D}function w(v){return String.fromCharCode.apply(null,new Uint8Array(v))}function E(v,x,T){var D=new Uint8Array(v.byteLength+x.byteLength);return D.set(new Uint8Array(v)),D.set(new Uint8Array(x),v.byteLength),T?D:D.buffer}function N(v){var x=[],T=v.length,D;for(D=0;D<T-1;D+=2)x.push(parseInt(v.substr(D,2),16));return String.fromCharCode.apply(String,x)}function S(){this.reset()}return S.prototype.append=function(v){return this.appendBinary(b(v)),this},S.prototype.appendBinary=function(v){this._buff+=v,this._length+=v.length;var x=this._buff.length,T;for(T=64;T<=x;T+=64)f(this._hash,u(this._buff.substring(T-64,T)));return this._buff=this._buff.substring(T-64),this},S.prototype.end=function(v){var x=this._buff,T=x.length,D,V=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],R;for(D=0;D<T;D+=1)V[D>>2]|=x.charCodeAt(D)<<(D%4<<3);return this._finish(V,T),R=_(this._hash),v&&(R=N(R)),this.reset(),R},S.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},S.prototype.setState=function(v){return this._buff=v.buff,this._length=v.length,this._hash=v.hash,this},S.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},S.prototype._finish=function(v,x){var T=x,D,V,R;if(v[T>>2]|=128<<(T%4<<3),T>55)for(f(this._hash,v),T=0;T<16;T+=1)v[T]=0;D=this._length*8,D=D.toString(16).match(/(.*?)(.{0,8})$/),V=parseInt(D[2],16),R=parseInt(D[1],16)||0,v[14]=V,v[15]=R,f(this._hash,v)},S.hash=function(v,x){return S.hashBinary(b(v),x)},S.hashBinary=function(v,x){var T=h(v),D=_(T);return x?N(D):D},S.ArrayBuffer=function(){this.reset()},S.ArrayBuffer.prototype.append=function(v){var x=E(this._buff.buffer,v,!0),T=x.length,D;for(this._length+=v.byteLength,D=64;D<=T;D+=64)f(this._hash,p(x.subarray(D-64,D)));return this._buff=D-64<T?new Uint8Array(x.buffer.slice(D-64)):new Uint8Array(0),this},S.ArrayBuffer.prototype.end=function(v){var x=this._buff,T=x.length,D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],V,R;for(V=0;V<T;V+=1)D[V>>2]|=x[V]<<(V%4<<3);return this._finish(D,T),R=_(this._hash),v&&(R=N(R)),this.reset(),R},S.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.ArrayBuffer.prototype.getState=function(){var v=S.prototype.getState.call(this);return v.buff=w(v.buff),v},S.ArrayBuffer.prototype.setState=function(v){return v.buff=C(v.buff,!0),S.prototype.setState.call(this,v)},S.ArrayBuffer.prototype.destroy=S.prototype.destroy,S.ArrayBuffer.prototype._finish=S.prototype._finish,S.ArrayBuffer.hash=function(v,x){var T=g(new Uint8Array(v)),D=_(T);return x?N(D):D},S})})(t7);var RZe=t7.exports;const BZe=Or(RZe);class FZe{md5(n,o,r){this.aborted=!1,this.progress=0;let i=0;const a=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,s=2097152,l=Math.ceil(n.size/s),c=new BZe.ArrayBuffer,d=new FileReader;f(),d.onloadend=u=>{if(c.append(u.target.result),i++,this.progress=i/l,r&&typeof r=="function"&&r(this.progress),this.aborted){o("aborted");return}i<l?f():o(null,c.end())};function f(){const u=i*s,p=u+s>=n.size?n.size:u+s;d.readAsArrayBuffer(a.call(n,u,p))}}abort(){this.aborted=!0}}function zZe(e){const n=e.emit,o=t.ref(null),r=t.ref(null),i=t.ref(null),a=t.ref(null),s=t.ref(null),l=t.ref(!1),c=t.ref(0),d=t.ref(!1),f=t.ref([]),u=t.ref(!1),p=t.ref(!1),h=t.ref({1:".png,.jpg,.gif",2:".mp4",4:".mp3,.aac",5:".apk",6:".zip"}),g=t.ref([{label:le("imageFiles"),value:1},{label:le("videoFile"),value:2},{label:le("audioFiles"),value:4},{label:`APK${le("upgradePackage")}`,value:5},{label:le("softwarePackage"),value:6}]),m=t.ref([]),_=t.ref(null),b=t.ref(null),C=t.ref([]),w=t.ref([]),E=t.ref(File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice),N=t.ref(1024*1024*5);function S(){n("on-fileUploadNum",m.value.length)}function v(){d.value=!1}function x(){T(!0)}function T(W){d.value=W}function D(W){l.value=W}function V(W){a.value=W.startUploadingCallback||null,s.value=W.fileShardingCallback||null,r.value=W.onSubmit||null}function R(W,te){if(g.value=[{label:le("softwarePackage"),value:6}],_.value=6,i.value=te||null,V(W),u.value)return ft.error(le("fileReadingInProgressPleaseWait"));f.value=[],p.value=!0}function q(W,te){if(g.value=[{label:`APK${le("upgradePackage")}`,value:5}],_.value=5,i.value=te||null,V(W),u.value)return ft.error(le("fileReadingInProgressPleaseWait"));f.value=[],p.value=!0}function K(W,te){g.value=[{label:le("imageFiles"),value:1},{label:le("videoFile"),value:2},{label:le("audioFiles"),value:4}];const ue=W.folderId;if(ue){if(i.value=te||null,V({}),b.value=ue,V(W),u.value)return ft.error(le("fileReadingInProgressPleaseWait"));_.value=2,f.value=[],p.value=!0}}function G(){D(!1),p.value=!1}function I(){if(f.value.length===0)return ft.error(le("pleaseSelectAFile"));f.value.length>1&&ft.warning(le("pleaseWaitForTheFilesToBeUploadedInSequence")),p.value=!1,x(),u.value=!0,a.value&&a.value();const W=(te,ue)=>new Promise((de,_e)=>{const Ee=te[ue];Ee&&U(Ee.file,{fileType:_.value,folderId:b.value,onSubmit:r.value}).then(z=>{ft.success(`${le("startUploading")} ${z}`),te.length-1!==ue?W(te,ue+1).then(()=>{de({code:200})}):de({code:200})}).catch(()=>{te.length-1!==ue?W(te,ue+1).then(()=>{de({code:200})}):de({code:200})})});W(f.value,0).then(()=>{u.value=!1,s.value&&s.value(),f.value=[]})}function P(W){const te=W.type||"";if(_.value===1){if(!te.includes("image"))return ft.error(le("theUploadedFileIsNotOfImageType")),!1}else if(_.value===2){if(!te.includes("video"))return ft.error(le("theUploadedFileIsNotOfVideoType")),!1}else if(_.value===4){if(!te.includes("audio"))return ft.error(le("theUploadedFileIsNotOfAudioType")),!1}else if(_.value===5){if(!W.name.includes(`${h.value[5]}`))return ft.error(le("theUploadedFileIsNotAnAPKUpgradePackage")),!1}else if(_.value===6&&!W.name.includes(`${h.value[6]}`))return ft.error(le("theUploadedFileIsNotASoftwarePackage")),!1;return!0}function M(){C.value=[],w.value=[];const W=ri.getCache("fileUploadList");W&&(m.value=W.map(te=>(te.status==="uploading"&&(te.status="error"),te)),t.nextTick(()=>{S(),m.value.forEach(te=>{te.status!=="error"&&Z(te.md5)})}))}function O(){window.sessionStorage.setItem("fileUploadList",JSON.stringify(m.value))}function $(W){return new Promise((te,ue)=>{new FZe().md5(W,(_e,Ee)=>{_e?ue(_e):te({md5:Ee})})})}function F(W){return new Promise(te=>{const ue=W.size;let de=0,_e=null;const Ee=Math.ceil(ue/N.value),z=[],j=()=>{const ne=de*N.value,ce=ne+N.value>=ue?ue:ne+N.value;if(_e=E.value.call(W,ne,ce),z.push(_e),de++,de<Ee)return j();te(z)};j()})}function Y(W){const te=new File([W.file],W.file.name.replace(/\s*/g,""));f.value.push({name:te.name,file:te})}function B(W,te){if(W.file.name===te.fileName){const ue=new File([W.file],W.file.name.replace(/\s*/g,""));U(ue,{fileType:te.fileType,folderId:te.folderId,onSubmit:r.value,md5:te.md5}).then(de=>{ft.success(`${le("startUploading")} ${de}文件`)})}else ft.error(le("pleaseSelectTheSameFileForUploading"))}function U(W,te){return new Promise(async(ue,de)=>{const _e=te.md5||Q9(1);await F(W).then(async(Ee=[])=>{const z=m.value.find(j=>j.md5===_e);if(X(_e,Ee),z){const j=z.status,ne=z.errorReason;j==="error"&&!ne?(ue(W.name),Z(z.md5)):de()}else{const j=await IZe({cannedACL:l.value?"public-read":"",fileName:W.name,contentLength:W.size,contentType:W.type,partSize:N.value});if(j.code===200){const ne=j.data;if(ne){const ce=ne.list||[],be={md5:_e,fileType:te.fileType,folderId:te.folderId,onSubmit:te.onSubmit,fileName:W.name,size:W.size,type:W.type,key:ne.key,uploadId:ne.uploadId,status:"uploading",completionTime:null,progress:0,finishNum:0,totalNum:ce.length,shardingList:ce.map((Q,se)=>({key:Q.key,url:Q.url,partNumber:se+1,isUpload:!1,etag:null}))};ue(W.name),m.value.unshift(be),S(),t.nextTick(()=>{O(),Z(be.md5)})}}}})})}function J(W){return new Promise(async(te,ue)=>{const de=await VZe(W);de.code===200&&(de.data?ue(new Error(le("prohibitUploadingFilesWithTheSameNameOnThePlatform"))):te({code:200}))})}function X(W,te){const ue=C.value.findIndex(de=>de.md5===W);ue===-1?C.value.push({md5:W,fileChunkList:te}):C.value[ue].fileChunkList=te}function Z(W){const te=m.value.find(ue=>ue.md5===W);if(te.status==="amalgamation")re(te);else if(te.status==="sharding")ae(te);else{const ue=C.value.findIndex(j=>j.md5===te.md5);if(ue===-1){ft.error(le("errorInUploadingFile"));return}const de=C.value[ue].fileChunkList,_e=(j,ne)=>new Promise((ce,be)=>{const Q=j[ne];if(Q)if(Q.isUpload)j.length-1!==ne?_e(j,ne+1).then(()=>{ce({code:200})}):ce({code:200});else{const se=de[ne],pe=new File([se],te.name,{type:te.type,lastModified:Date.now()});oe(Q.url,pe).then(Ce=>{Q.etag=Ce,Q.isUpload=!0;const Ae=te.finishNum+1,$e=te.totalNum;te.finishNum=Ae,te.progress=Number.parseInt(String(Ae/$e*80)),O(),j[ne]=Q,j.length-1!==ne?_e(j,ne+1).then(()=>{ce({code:200})}):ce({code:200})})}}),Ee=te.shardingList,z=Ee.findIndex(j=>j.isUpload===!1);z!==-1?(te.status="uploading",_e(Ee,z).then(()=>{te.status="sharding",ae(te)})):(te.status="sharding",ae(te))}}function oe(W,te){return new Promise((ue,de)=>{xt.put({url:W,data:te}).then(_e=>{ue(_e)}).catch(()=>{de(new Error(le("uploadError")))})})}async function ae(W){O();const te=await MZe({key:W.key,uploadId:W.uploadId,partETagList:W.shardingList.map(ue=>({partNumber:ue.partNumber,etag:ue.etag}))});(te.code===200||te.code===10020)&&(W.status="amalgamation",W.progress=80,re(W))}async function re(W){O();const te=()=>{W.completionTime=X9(new Date,"Y-M-h D:m:s"),W.status="success",w.value.unshift(W),he(W.md5),W.onSubmit&&W.onSubmit(W),t.nextTick(()=>{O()})};i.value?i.value(W,()=>{te()}):(await AZe({fileType:W.fileType,folderId:W.folderId,key:W.key,size:W.size})).code===200&&(ft.success(le("uploadSuccessful")),te())}function fe(W,te){te.splice(W,1)}function me(W){var te;(te=o.value)==null||te.show(W.fileCloudKey).then(()=>{W.onSubmit&&W.onSubmit()})}async function he(W){if(!W)return;const te=m.value.findIndex(ue=>ue.md5===W);if(te!==-1){const ue=m.value[te];m.value.splice(te,1);const de=C.value.findIndex(_e=>_e.md5===W);de!==-1&&C.value.splice(de,1),S(),ue.key&&ue.uploadId?(await PZe({key:ue.key,uploadId:ue.uploadId})).code===200&&O():O()}}return{apkConfirmUploadRef:o,onSubmit:r,publicRea:l,customFileSave:i,startUploadingCallback:a,fileShardingCallback:s,dragLevel:c,dialogVisible:d,uploadList:f,loading:u,fileUploadVisible:p,uploadAccept:h,fileTypeList:g,fileType:_,folderId:b,fileList:C,fileUploadList:m,successFileList:w,blobSlice:E,defaultChunkSize:N,fileUploadNumFn:S,onClose:v,show:x,setDialogVisible:T,setPublicRea:D,setCallback:V,fileUploadVersionShow:R,fileUploadAPkShow:q,fileUploadShow:K,fileUploadClose:G,fileUploadSubmit:I,beforeAvatarUpload:P,getData:M,saveData:O,getFileMd5:$,sliceFile:F,uploadListRequestFn:Y,handleHttpRequestImg:B,fileRequestFn:U,findByFileCloudKey:J,fileListPushFn:X,uploadSliceFile:Z,uploadPart:oe,completeMultipartUpload:ae,mediaFileFn:re,deleteListFn:fe,apkConfirmUploadShow:me,deleteFileUpload:he}}const UZe=e=>(t.pushScopeId("data-v-fe9cb75f"),e=e(),t.popScopeId(),e),jZe={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"},WZe={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},HZe={class:"absolute right-[10px]"},GZe={class:"dialog_body p-[0px_30px_20px]"},KZe={class:"mb-[10px]"},YZe={class:"text-sm leading-[30px]"},qZe={class:"mb-[10px]"},ZZe={class:"text-sm leading-[30px]"},JZe={class:"text-center"},XZe={class:"text-xs text-hy-text-secondary"},QZe={class:"uploadList select-none"},eJe={class:"flex-grow w-0"},tJe={class:"text-right mt-[20px]"},nJe={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"},oJe={class:"relative border-b border-hy-border-2 pl-2 text-[18px] font-bold h-[50px] flex items-center justify-between"},rJe={class:"absolute right-[10px]"},aJe={class:"dialog_body el-dialog__body !p-[0_0_10px_0]"},iJe={class:"progressBox text-hy-text-main el-progress-bar__outer_backgroundv3"},sJe={class:"flex items-center"},lJe={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},cJe={key:0,class:"flex items-center justify-center"},dJe={key:0,class:"select-none click-box"},uJe={class:"iconCloseBox click-box ml-[4px]"},fJe={class:"flex flex-row leading-[20px] text-hy-danger select-none"},pJe={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},hJe={class:"flex flex-row mb-[4px]"},mJe={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},gJe=UZe(()=>t.createElementVNode("span",null,[t.createElementVNode("i",{class:"el-icon-loading text-hy-main"})],-1)),yJe={class:"flex flex-row leading-[20px]"},_Je={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},bJe={class:"text-hy-main"},wJe={class:"flex flex-row mb-[4px]"},CJe={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px]"},EJe={class:"iconCloseBox click-box"},kJe={class:"flex flex-row leading-[20px]"},vJe={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap pr-[10px] text-hy-text-secondary"},SJe={class:"text-hy-success"},NJe={key:0,class:"text-hy-text-secondary flex items-center justify-center text-xs noData h-full"},xJe={class:"text-center"},TJe={class:"mt-[10px]"},LJe=Po(t.defineComponent({__name:"file-upload",emits:["on-fileUploadNum"],setup(e,{expose:n,emit:o}){const r=o,{apkConfirmUploadRef:i,onSubmit:a,publicRea:s,customFileSave:l,startUploadingCallback:c,fileShardingCallback:d,dragLevel:f,dialogVisible:u,uploadList:p,loading:h,fileUploadVisible:g,uploadAccept:m,fileTypeList:_,fileType:b,folderId:C,fileList:w,fileUploadList:E,successFileList:N,blobSlice:S,defaultChunkSize:v,fileUploadNumFn:x,onClose:T,show:D,setDialogVisible:V,setPublicRea:R,setCallback:q,fileUploadVersionShow:K,fileUploadAPkShow:G,fileUploadShow:I,fileUploadClose:P,fileUploadSubmit:M,beforeAvatarUpload:O,getData:$,saveData:F,getFileMd5:Y,sliceFile:B,uploadListRequestFn:U,handleHttpRequestImg:J,fileRequestFn:X,findByFileCloudKey:Z,fileListPushFn:oe,uploadSliceFile:ae,uploadPart:re,completeMultipartUpload:fe,mediaFileFn:me,deleteListFn:he,apkConfirmUploadShow:W,deleteFileUpload:te}=zZe({emit:r});return t.onMounted(()=>{$()}),n({fileUploadShow:I,fileUploadAPkShow:G,fileUploadVersionShow:K,show:D}),(ue,de)=>{const _e=t.resolveComponent("svg-icon"),Ee=t.resolveComponent("el-option"),z=t.resolveComponent("el-select"),j=t.resolveComponent("el-icon"),ne=t.resolveComponent("el-upload"),ce=t.resolveComponent("el-button"),be=t.resolveComponent("el-dialog"),Q=t.resolveComponent("el-tooltip"),se=t.resolveComponent("el-progress"),pe=t.resolveDirective("draggable");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(be,{"model-value":t.unref(g),"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:t.withCtx(()=>[t.createVNode(Rs,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:t.withCtx(()=>[t.createElementVNode("div",jZe,[t.createElementVNode("div",WZe,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("fileUpload")),1),t.createElementVNode("div",HZe,[t.createVNode(_e,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:t.withModifiers(t.unref(P),["stop"])},null,8,["onClick"])])]),t.createElementVNode("div",GZe,[t.createElementVNode("div",KZe,[t.createElementVNode("div",YZe,t.toDisplayString(t.unref(le)("fileType")),1),t.createVNode(z,{modelValue:t.unref(b),"onUpdate:modelValue":de[0]||(de[0]=Ce=>t.isRef(b)?b.value=Ce:null),class:"!w-full",placeholder:t.unref(le)("fileType")},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(_),(Ce,Ae)=>(t.openBlock(),t.createBlock(Ee,{key:Ae,label:Ce.label,value:Ce.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),t.createElementVNode("div",qZe,[t.createElementVNode("div",ZZe,t.toDisplayString(t.unref(le)("uploadFiles")),1),t.createElementVNode("div",null,[t.createVNode(ne,{"before-upload":t.unref(O),"http-request":t.unref(U),accept:t.unref(m)[`${t.unref(b)}`],action:"",drag:"","show-file-list":!1,multiple:""},{default:t.withCtx(()=>[t.createElementVNode("div",JZe,[t.createVNode(j,{class:"text-[60px] text-hy-text-secondary"},{default:t.withCtx(()=>[t.createVNode(t.unref(oZ))]),_:1}),t.createElementVNode("div",XZe,[t.createTextVNode(t.toDisplayString(t.unref(le)("dragFilesHereOr")),1),t.createElementVNode("em",null,t.toDisplayString(t.unref(le)("clickToUpload")),1)])])]),_:1},8,["before-upload","http-request","accept"]),t.createElementVNode("ul",QZe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(p),(Ce,Ae)=>(t.openBlock(),t.createElementBlock("li",{key:`${Ae}uploadList`},[t.createElementVNode("span",eJe,t.toDisplayString(Ce.name),1),t.createVNode(_e,{width:"16",height:"16",name:"icon-close",class:"click-box iconCloseBox clickBox text-hy-danger",onClick:$e=>t.unref(he)(Ae,t.unref(p))},null,8,["onClick"])]))),128))])])]),t.createElementVNode("div",tJe,[t.createVNode(ce,{type:"primary",class:"w-[100px]",onClick:t.unref(P)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("close")),1)]),_:1},8,["onClick"]),t.createVNode(ce,{class:"w-[100px]",onClick:t.unref(M)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("confirm")),1)]),_:1},8,["onClick"])])])])]),_:1})]),_:1},8,["model-value"]),t.createVNode(be,{"model-value":t.unref(u),"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:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createBlock(Rs,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:t.withCtx(()=>[t.createElementVNode("div",nJe,[t.createElementVNode("div",oJe,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("fileUpload")),1),t.createElementVNode("div",rJe,[t.createVNode(_e,{width:"20",height:"20",name:"base-close","class-name":"svgBox click-box text-hy-text-danger",onClick:t.withModifiers(t.unref(T),["stop"])},null,8,["onClick"])])]),t.createElementVNode("div",aJe,[t.createElementVNode("ul",iJe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(E),(Ce,Ae)=>(t.openBlock(),t.createElementBlock("li",{key:`${Ae}fileUploadList`},[t.withDirectives(t.createElementVNode("div",null,[t.createElementVNode("div",sJe,[t.createElementVNode("div",lJe,t.toDisplayString(Ce.fileName),1),Ce.fileType!==5?(t.openBlock(),t.createElementBlock("div",cJe,[t.createVNode(ne,{class:"flex items-center justify-center","before-upload":t.unref(O),"http-request":$e=>t.unref(J)($e,Ce),action:"","show-file-list":!1},{default:t.withCtx(()=>[t.createVNode(Q,{placement:"top","open-delay":500,class:"item",effect:"dark",content:t.unref(le)("selectTheSameFileAgainForUploading")},{default:t.withCtx(()=>[Ce.errorReason?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",dJe,[t.createVNode(_e,{width:"16",height:"16",name:"live-broadcast-refresh-v3"})]))]),_:2},1032,["content"])]),_:2},1032,["before-upload","http-request"]),t.createElementVNode("div",uJe,[t.createVNode(_e,{width:"16",height:"16",name:"icon-close",class:"text-hy-danger",onClick:$e=>t.unref(te)(Ce.md5)},null,8,["onClick"])])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",fJe,[t.createElementVNode("div",pJe,t.toDisplayString(Ce.errorReason||t.unref(le)("uploadFailed")),1),t.createElementVNode("span",null,t.toDisplayString(Ce.progress)+"%",1)]),t.createVNode(se,{"show-text":!1,status:"exception","text-inside":!0,"stroke-width":9,percentage:Ce.progress},null,8,["percentage"])],512),[[t.vShow,Ce.status==="error"]]),t.withDirectives(t.createElementVNode("div",null,[t.createElementVNode("div",hJe,[t.createElementVNode("div",mJe,t.toDisplayString(Ce.fileName),1),gJe]),t.createElementVNode("div",yJe,[t.createElementVNode("div",_Je,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("uploadingPatientWait"))+"…",1)]),t.createElementVNode("span",bJe,t.toDisplayString(Ce.progress)+"%",1)]),t.createVNode(se,{"show-text":!1,"text-inside":!0,"stroke-width":9,percentage:Ce.progress},null,8,["percentage"])],512),[[t.vShow,Ce.status!=="error"]])]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(N),(Ce,Ae)=>(t.openBlock(),t.createElementBlock("li",{key:`${Ae}successFileList`},[t.createElementVNode("div",wJe,[t.createElementVNode("div",CJe,t.toDisplayString(Ce.fileName),1),t.createElementVNode("div",EJe,[t.createVNode(_e,{width:"16",height:"16",class:"text-hy-danger",name:"icon-close",onClick:$e=>t.unref(he)(Ae,t.unref(N))},null,8,["onClick"])])]),t.createElementVNode("div",kJe,[t.createElementVNode("div",vJe,[t.createElementVNode("span",null,t.toDisplayString(Ce.completionTime),1)]),t.createElementVNode("span",SJe,t.toDisplayString(t.unref(le)("success")),1)]),t.createVNode(se,{"show-text":!1,status:"success","text-inside":!0,"stroke-width":9,percentage:100})]))),128)),t.unref(E).length===0&&t.unref(N).length===0?(t.openBlock(),t.createElementBlock("li",NJe,[t.createElementVNode("div",xJe,[t.createVNode(_e,{name:"base-no-data",class:"!w-[50px] !h-[50px]"}),t.createElementVNode("div",TJe,t.toDisplayString(t.unref(le)("noData-3")),1)])])):t.createCommentVNode("",!0)])])])]),_:1})),[[pe]])]),_:1},8,["model-value"])])}}}),[["__scopeId","data-v-fe9cb75f"]]);function OJe(e){const n=[{type:1,svgName:"lawEnforcement"},{type:3,svgName:"dispatchingDesk"},{type:4,svgName:"dutyDesk"},{type:5,svgName:"phone"},{type:6,svgName:"controlTheBall"},{type:7,svgName:"ipc"},{type:8,svgName:"safetyHat"},{type:9,svgName:"flashlight"},{type:10,svgName:"workCard"},{type:11,svgName:"vehicle"},{type:12,svgName:"uav"},{type:13,svgName:"ipc"},{type:14,svgName:"obd"}],o=n.findIndex(r=>r.type===e);return o!==-1?`sys-deviceIcon-${n[o].svgName}`:"sys-deviceIcon-walkieTalkie"}const $Je={class:"flex-shrink-0 mr-1"},DJe={class:"flex-grow w-0 overflow-ellipsis overflow-hidden"},PJe={class:"deviceName"},IJe={key:0,class:"flex-shrink-0 mx-2"},MJe={key:0,class:"text-hy-danger text-sm font-bold relative flex-shrink-0"},AJe={key:1,class:"deviceType flex-shrink-0"},VJe={key:2,class:"deviceType flex-shrink-0"},RJe={key:3,class:"deviceType flex-shrink-0"},BJe={key:4,class:"deviceType flex-shrink-0"},FJe={key:5,class:"deviceType flex-shrink-0"},zJe={key:6,class:"deviceType flex-shrink-0"},UJe={key:7,class:"text-hy-success flex-shrink-0"},jJe={key:1,class:"flex-shrink-0 mx-2"},WJe=[t.createElementVNode("span",{class:"shrink-0"},"离线",-1)],n7=t.defineComponent({__name:"device-cpns",props:{device:{}},setup(e){const n=e,o=t.ref(n.device);return t.onMounted(()=>{}),(r,i)=>{const a=t.resolveComponent("svg-icon"),s=t.resolveComponent("el-tooltip");return t.openBlock(),t.createBlock(s,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:o.value.devName},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass([{"!text-hy-text-main":o.value.onlineState===1},"w-full h-full flex border-box items-center box-border text-hy-info"])},[t.createElementVNode("div",$Je,[t.createVNode(a,{name:t.unref(OJe)(o.value.deviceType||o.value.type),width:"20",height:"20",class:"relative top-[2px]"},null,8,["name"])]),t.createElementVNode("div",DJe,[t.createElementVNode("span",PJe,t.toDisplayString(o.value.devName),1)]),o.value.onlineState===1?(t.openBlock(),t.createElementBlock("div",IJe,[o.value.sos===1?(t.openBlock(),t.createElementBlock("span",MJe,"SOS")):o.value.intercomGroupTem===1||o.value.intercomCall===1?(t.openBlock(),t.createElementBlock("span",AJe,"音频中")):o.value.monitor===1||o.value.beMonitor===1?(t.openBlock(),t.createElementBlock("span",VJe,"监控中")):o.value.videoCall===1?(t.openBlock(),t.createElementBlock("span",RJe,"通话中")):o.value.videoRecording===1?(t.openBlock(),t.createElementBlock("span",BJe,"录像中")):o.value.audioRecording===1?(t.openBlock(),t.createElementBlock("span",FJe,"录音中")):o.value.broadcast===1?(t.openBlock(),t.createElementBlock("span",zJe,"广播中")):(t.openBlock(),t.createElementBlock("span",UJe,"在线"))])):(t.openBlock(),t.createElementBlock("div",jJe,WJe))],2)]),_:1},8,["content"])}}});function HJe(e){const n=e.emit,o=t.ref(e.props||{}),r=t.ref(o.value.itemType),i=t.ref(o.value.itemSelectParam),a=t.ref(),s={value:"onlyId",label:"orgName",children:"children",disabled:"disabled"},l=t.ref([]),c=t.ref(null),d=t.ref(300),f=t.ref([]),u=t.ref([]);function p(v){return f.value.findIndex(x=>x[`${i.value}`]===v)}function h(v,x){let T=null;if(v[`${i.value}`]&&v.type===r.value){if(v.disabled)return;o.value.showRadio?(T=p(v[`${i.value}`]),x?T===-1&&(b([...v]),n("onCurrent",v)):T!==-1&&(f.value.splice(T,1),n("onCurrentDelete",v)),n("onSelectedData",{selectedDataList:f.value,selectedData:f.value})):o.value.showCheckbox&&!o.value.parentCheckbox?(T=p(v[`${i.value}`]),x?T===-1&&(b([...f.value,{...v}]),n("onCurrent",v)):T!==-1&&(f.value.splice(T,1),n("onCurrentDelete",v))):(a.value.setChecked(v[`${i.value}`],x,!0),w(),n("onCurrent",v)),n("onSelectedData",{selectedDataList:f.value,selectedData:f.value})}else a.value.setChecked(`${v.id}`,x,!0),w()}async function g(v){let x=null;await t.nextTick(()=>{v.disabled||(o.value.showRadio?(x=p(v[`${i.value}`]),x===-1?(b([{...v}]),n("onCurrent",v)):(f.value.splice(x,1),n("onCurrentDelete",v)),n("onSelectedData",{selectedDataList:f.value,selectedData:f.value})):o.value.showCheckbox&&!o.value.parentCheckbox?(x=p(v[`${i.value}`]),x===-1?(b([...f.value,{...v}]),n("onCurrent",v)):(f.value.splice(x,1),n("onCurrentDelete",v)),n("onSelectedData",{selectedDataList:f.value,selectedData:f.value})):(a.value.setChecked(`${v[`${i.value}`]}`,_(v[`${i.value}`]),!0),w(),n("onCurrent",v)))})}function m(v){a.value.setCheckedKeys(v||[]),w()}function _(v){return(a.value.getCheckedKeys()||[]).findIndex(D=>D===v||D===`${v}`)===-1}function b(v){o.value.showCheckbox&&o.value.parentCheckbox&&a.value.setCheckedKeys(v.map(x=>`${x[`${o.value.itemSelectParam}`]}`)||[]),f.value=v}function C(v){u.value=v}function w(){const v=a.value.getCheckedNodes()||[],x=[],T=[];v.forEach(D=>{D.type===r.value?x.push(D):T.push(D)}),b([...x]),C(T),n("onSelectedData",{selectedDataList:x,departmentList:T,selectedData:v})}function E(v,x){v.type===r.value?g(v):(c.value&&(clearTimeout(c.value),c.value=null),c.value=setTimeout(()=>{var D;n("onCurrentDepartment",v);const T=l.value.findIndex(V=>V===x.key);T===-1?((D=a.value)==null||D.expandNode(x),l.value.push(`${x.key}`)):(a.value.collapseNode(x),l.value.splice(T,1))},d.value))}function N(v){if(o.value.showCheckbox&&!o.value.parentCheckbox)return;c.value&&(clearTimeout(c.value),c.value=null);const x=`organization_${v.id}`;a.value.setChecked(x,_(x),!0),w()}function S(v){var x;(x=a.value)==null||x.setData(v)}return{departmentDoubleClick:N,selectedList:f,getCurrentNode:w,getSelectedIndex:p,nodeClick:E,setChecked:h,setCheckedKeys:m,setData:S,setSelectedList:b,treeProps:s,treeRef:a}}const o7=e=>(t.pushScopeId("data-v-30b7bfe2"),e=e(),t.popScopeId(),e),GJe={class:"flex w-full h-full text-sm"},KJe={key:0,class:"w-full flex items-center"},YJe={key:0,class:"mr-[6px]"},qJe={class:"el-checkbox"},ZJe=[o7(()=>t.createElementVNode("span",{class:"el-checkbox__inner"},null,-1))],JJe={key:1,class:"mr-1"},XJe={class:"el-radio"},QJe=[o7(()=>t.createElementVNode("span",{class:"el-radio__inner"},null,-1))],eXe=["onDblclick"],og=Po(t.defineComponent({__name:"tree-cpns",props:{itemType:{default:1},itemSelectParam:{default:"id"},height:{default:500},itemSize:{default:36},dataList:{default:()=>[]},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!1},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(e,{expose:n,emit:o}){const r=e,i=o,{departmentDoubleClick:a,selectedList:s,getCurrentNode:l,getSelectedIndex:c,nodeClick:d,setChecked:f,setCheckedKeys:u,setData:p,setSelectedList:h,treeProps:g,treeRef:m}=HJe({emit:i,props:r});t.watch(()=>r.showCheckbox,b=>{if(b===!1)if(s.value.length){const C=s.value[0];s.value=[C],r.showCheckbox&&r.parentCheckbox&&u([C[`${r.itemSelectParam}`]]),i("onSelectedData",{selectedDataList:s.value,selectedData:s.value})}else u([])}),n({setCheckedKeys:u,setSelectedList:h,setChecked:f,setData:p});const _=t.ref();return t.onMounted(()=>{s.value=r.defaultCheckedList,r.showCheckbox&&r.parentCheckbox&&(_.value=r.defaultCheckedList.map(b=>`${b[`${r.itemSelectParam}`]}`))}),(b,C)=>{const w=t.resolveComponent("el-tree-v2");return t.openBlock(),t.createBlock(w,{ref_key:"treeRef",ref:m,class:t.normalizeClass({highlightSelected:r.highlightSelected}),"show-checkbox":r.showCheckbox&&r.parentCheckbox,"check-strictly":r.checkStrictly,"default-checked-keys":t.unref(_),"expand-on-click-node":!1,data:r.dataList,props:t.unref(g),height:r.height,"item-size":r.itemSize,onNodeClick:t.unref(d),onCheck:t.unref(l)},{default:t.withCtx(({data:E})=>[t.createElementVNode("div",GJe,[E.type===r.itemType?(t.openBlock(),t.createElementBlock("div",KJe,[r.showCheckbox&&!r.parentCheckbox?(t.openBlock(),t.createElementBlock("div",YJe,[t.withDirectives(t.createElementVNode("div",qJe,[t.createElementVNode("span",{class:t.normalizeClass([{"is-checked":t.unref(c)(E[`${r.itemSelectParam}`])!==-1,"is-disabled":E.disabled},"el-checkbox__input"])},ZJe,2)],512),[[t.vShow,r.showCheckboxButton]])])):t.createCommentVNode("",!0),r.showRadio?(t.openBlock(),t.createElementBlock("div",JJe,[t.withDirectives(t.createElementVNode("div",XJe,[t.createElementVNode("span",{class:t.normalizeClass([{"is-checked":t.unref(c)(E[`${r.itemSelectParam}`])!==-1,"is-disabled":E.disabled},"el-radio__input"])},QJe,2)],512),[[t.vShow,r.showRadioButton]])])):t.createCommentVNode("",!0),t.renderSlot(b.$slots,"check-content",t.normalizeProps(t.guardReactiveProps({row:E})),void 0,!0)])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"w-0 flex-grow flex text-hy-text-main",onDblclick:t.withModifiers(N=>t.unref(a)(E),["stop"])},[t.renderSlot(b.$slots,"other-content",t.normalizeProps(t.guardReactiveProps({row:E})),void 0,!0)],40,eXe))])]),_:3},8,["class","show-checkbox","check-strictly","default-checked-keys","data","props","height","item-size","onNodeClick","onCheck"])}}}),[["__scopeId","data-v-30b7bfe2"]]);function rg(e){const n=e.emit,o=t.ref(),r=t.ref(0),i=t.ref([]),a=t.ref(null),s=t.ref([]),l=t.computed(()=>{const E=s.value.find(N=>N.value===a.value);return E&&E.placeholder?E.placeholder:le("pleaseEnterContentToSearch")}),c=t.computed(()=>!!t.useSlots()["check-content"]),d=t.computed(()=>!!t.useSlots()["other-content"]),f=t.ref(null);function u(){const E=new ResizeObserver(()=>{f.value&&(r.value=f.value.clientHeight)});f.value&&E.observe(f.value)}function p(E){n("onCurrentDepartment",E)}function h(E){n("onCurrent",E)}function g(E){n("onCurrentDelete",E)}function m(E){n("onSelectedData",E)}function _(E){i.value=E}function b(E,N){o.value.setChecked(E,N)}function C(E){o.value.setCheckedKeys(E)}function w(E){o.value.setSelectedList(E)}return{checkContentSlotsType:c,otherContentSlotsType:d,currentDepartment:p,currentDevice:h,currentDeviceDelete:g,elementRef:f,selectedData:m,treeComponentHeight:r,treeComponentRef:o,viewDepartmentList:i,watchTreeComponentHeight:u,setChecked:b,setCheckedKeys:C,setSelectedList:w,selectFilterList:s,selectFilterType:a,getInputPlaceholder:l,setViewDepartmentList:_}}function V1(e,n){return!e||e.length===0?!1:e.includes(`disabled:${n}`)}function R1(e,n="id"){const o=new Map;return e.forEach(r=>o.set(r[`${n}`],r)),Array.from(o.values())}function Vi(e,n,o,r){var s;const{selectFilterType:i}=r||{};if(!n)return!0;if(i&&i!==e)return!1;const a=l=>l&&l.toString().includes(n);switch(e){case 7:return o.typeName==="workOrderList"?a(o.workTimeName):a(o.dailyCheckName);case 6:return a(o.deviceUserName)||a((s=o.item)==null?void 0:s.deviceId);case 5:return a(o.jobNum)||a(o.name)||a(o.phone);case 4:return a(o.groupName);case 8:return a(o.sname);case 3:return a(o.deviceId)||a(o.devName)||a(o.name);default:return a(o.companyName)||a(o.orgName)}}async function wL(e,n,o,r){const{hideDevice:i,selectFilterType:a,signal:s,hideOrgNoData:l,disabledIds:c,showOnlineOnly:d}=o||{disabledIds:"",showOnlineOnly:!1,hideOrgNoData:!1,hideDevice:!1,selectFilterType:null,signal:null},f=[],u=[];for(let p=0;p<n.length;p++){const h=n[p],g=p;h.type===3?h.onlyId=`${h.deviceId}`:(h.type=1,h.onlyId=`${h.id}`),i&&h.type===1&&c.length!==0&&(h.disabled=V1(c,h.id)),h.childrenDeviceList=[],h.onlineCountList=[];const m=r&&r.companyName&&h.type!==3?r.companyName:null;h.parentIdsList=r&&r.parentIdsList?[...r.parentIdsList,{id:h.id,currentSubscript:g}]:[{id:h.id,currentSubscript:g}];let _=!1;r&&r.parentType||h.type===3?_=!0:_=Vi(1,e,h,{selectFilterType:a});const b=_?h:{};if(h.deviceList&&h.deviceList.length&&!i){const C=[];h.deviceList.forEach((w,E)=>{if((r&&r.parentType||Vi(3,e,w,{selectFilterType:a})||_)&&(d&&w.onlineState===1||!d)){const N={parentType:!0,...w,isLeaf:!0,label:w.name||w.deviceId,deviceType:w.type,prodModel:w.prodModel?w.prodModel:"",simNum:w.simNum?w.simNum:"",companyName:n[g].companyName,select:!1,expand:!1,type:3,item:w,parentId:w.parentId?w.parentId:"",parentName:w.parentName?w.parentName:"",personnel:w.personnel?"1":"2",parentOrgName:m,disabled:V1(c,w.deviceId)},S=N;S.parentOrgName=m,S.parentIdsList=h.parentIdsList,h.childrenDeviceList.push(S),f.push(S),C[w.onlineState===1?"unshift":"push"](N)}}),h.children=h.children.concat(C)}else h.deviceList=[];if(h.children&&h.children.length>0){const C=await wL(e,h.children,o,{...h,parentType:_});if(C){const w=C.deviceList;h.childrenDeviceList.push(...w),f.push(...w);const E=new Map,N=[];h.childrenDeviceList.forEach(S=>{E.has(S.id)||(E.set(S.id,S),S.onlineState===1&&N.push(S))}),h.childrenDeviceList=Array.from(E.values()),h.onlineCountList=N,h.children=C.children}}Object.keys(b).length&&(h.type===3||b.children.length||!l&&(b.companyName||b.orgName))&&u.push(h)}return{children:u,deviceList:R1(f)}}async function r7(e,n,o,r){const{hideDevice:i,selectFilterType:a,signal:s,hideOrgNoData:l,hideGroup:c}=o||{hideOrgNoData:!1,hideGroup:!1,hideDevice:!1,selectFilterType:null,signal:null},d=[],f=[];for(let u=0;u<n.length;u++){const p=n[u];p.type===3?p.onlyId=`device_${p.id}`:p.type===4?p.onlyId=`${p.id}`:p.onlyId=`organization_${p.id}`,p.childrenDeviceList=[],p.onlineCountList=[];let h=!1;p.type===3||p.type===4?h=!0:h=Vi(1,e,p,{selectFilterType:a});const g=h?p:{};if(p.groupList&&p.groupList.length!==0?p.groupList.forEach((m,_)=>{if(m.deviceList&&m.deviceList.length!==0){const b=[];r&&r.parentType||h||Vi(4,e,m,{selectFilterType:a})?(i||m.deviceList.forEach(C=>{const w={isLeaf:!0,...C,children:[],orgGroupId:m.id,deviceType:C.type,type:3};b[C.onlineState===1?"unshift":"push"](w)}),p.children.push({...m,children:b,type:4})):(i||m.deviceList.forEach(C=>{if(Vi(3,e,C,{selectFilterType:a})){const w={isLeaf:!0,...C,children:[],orgGroupId:m.id,deviceType:C.type,type:3};b[C.onlineState===1?"unshift":"push"](w)}}),b.length&&p.children.push({...m,children:b,type:4}))}else(r&&r.parentType||h||Vi(4,e,m,{selectFilterType:a}))&&p.children.push({...m,children:[],type:4})}):p.groupList=[],p.deviceList&&p.deviceList.length&&(p.childrenDeviceList=p.deviceList),p.childrenDeviceList&&p.childrenDeviceList.forEach(m=>{d.findIndex(b=>b.deviceId===m.deviceId)===-1&&d.push(m)}),p.children&&p.children.length!==0){const m=await r7(e,p.children,o,{...p,parentType:h});if(m){const _=m.deviceList;p.childrenDeviceList.push(..._),d.push(..._);const b=new Map,C=[];p.childrenDeviceList.forEach(w=>{b.has(w.id)||(b.set(w.id,w),w.onlineState===1&&C.push(w))}),p.childrenDeviceList=Array.from(b.values()),p.onlineCountList=C,g.children=m.children}}Object.keys(g).length&&(!c&&p.type===4||p.type===3||g.children.length||!l&&(g.companyName||g.orgName))&&f.push({...p,...g})}return{children:f,deviceList:R1(d)}}async function a7(e,n,o,r){const{selectFilterType:i,hideOrgNoData:a,disabledIds:s}=o||{selectFilterType:null,hideOrgNoData:!1,disabledIds:""},l=[],c=[];for(let d=0;d<n.length;d++){const f=n[d],u=d;f.onlyId=f.type===5?`${f.id}`:`organization_${f.id}`,f.childrenDeviceList=[],f.onlineCountList=[],r&&r.parentIdsList?f.parentIdsList=[...r.parentIdsList,{id:f.id,currentSubscript:u}]:f.parentIdsList=[{id:f.id,currentSubscript:u}];let p=!1;f.type===5?p=!0:p=Vi(1,e,f,{selectFilterType:i});const h=p?f:{};if(f.deviceUserList&&f.deviceUserList.length){const g=[];f.deviceUserList.forEach((m,_)=>{if(r&&r.parentType||Vi(5,e,m,{selectFilterType:i})||p){const b={...m,parentType:!0,isLeaf:!0,label:m.name||m.id,deviceId:m.id,deviceType:m.type,type:5,item:m,children:[],parentIdsList:f.parentIdsList};f.childrenDeviceList.push(b),l.push(b);const C={...m,parentType:!0,isLeaf:!0,label:m.name||m.id,deviceId:m.id,deviceType:m.type,type:5,children:[],item:m,disabled:V1(s,m.id)};g[m.onlineState===1?"unshift":"push"](C)}}),f.children=[...f.children,...g]}else f.deviceList=[];if(f.children&&f.children.length>0){const g=await a7(e,f.children,o,{...f,parentType:p});if(g){const m=g.deviceList;f.childrenDeviceList.push(...m),l.push(...m);const _=new Map,b=[];f.childrenDeviceList.forEach(C=>{_.has(C.id)||(_.set(C.id,C),C.onlineState===1&&b.push(C))}),f.childrenDeviceList=Array.from(_.values()),f.onlineCountList=b,h.children=g.children}}Object.keys(h).length&&(f.type===5||h.children.length||!a&&(h.companyName||h.orgName))&&c.push({...f,...h})}return{children:c,deviceList:R1(l)}}async function i7(e,n,o,r){const{selectFilterType:i,hideOrgNoData:a,disabledIds:s}=o||{selectFilterType:null,hideOrgNoData:!1,disabledIds:""},l=[],c=[];for(let d=0;d<n.length;d++){const f=n[d],u=d;f.onlyId=f.type===8?`${f.id}`:`organization_${f.id}`,f.childrenDeviceList=[],f.onlineCountList=[],r&&r.parentIdsList?f.parentIdsList=[...r.parentIdsList,{id:f.id,currentSubscript:u}]:f.parentIdsList=[{id:f.id,currentSubscript:u}];let p=!1;f.type===8?p=!0:p=Vi(1,e,f,{selectFilterType:i});const h=p?f:{};if(f.csList&&f.csList.length){const g=[];f.csList.forEach((m,_)=>{if(r&&r.parentType||Vi(8,e,m,{selectFilterType:i})||p){const b={...m,type:8,item:m,children:[]};f.childrenDeviceList.push(b),l.push(b);const C={...m,type:8,item:m,children:[],disabled:V1(s,m.id)};g[m.onlineState===1?"unshift":"push"](C)}}),f.children=[...f.children,...g]}else f.deviceList=[];if(f.children&&f.children.length>0){const g=await i7(e,f.children,o,{...f,parentType:p});if(g){const m=g.deviceList;f.childrenDeviceList.push(...m),l.push(...m);const _=new Map,b=[];f.childrenDeviceList.forEach(C=>{_.has(C.id)||(_.set(C.id,C),C.onlineState===1&&b.push(C))}),f.childrenDeviceList=Array.from(_.values()),f.onlineCountList=b,h.children=g.children}}Object.keys(h).length&&(f.type===8||h.children.length||!a&&(h.companyName||h.orgName))&&c.push({...f,...h})}return{children:c,deviceList:R1(l)}}function tXe(e){const n=t.ref(e.props),o=t.ref(e.params.selectFilterType),r=t.ref(""),i=t.ref([]),a=t.ref([]);async function s(){var c;n.value.getData&&((c=n.value.getData())==null||c.then(async d=>{if(!d)return;const f=await wL(r.value,[...d],{disabledIds:n.value.disableDataList.map(u=>`disabled:${u.deviceId}`).toString(),hideDevice:n.value.hideDevice,showOnlineOnly:n.value.showOnlineOnly,hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});i.value=f.children,a.value=f.deviceList,e.params.setViewDepartmentList(f.children)}))}function l(){r.value.length&&s()}return{getData:s,query:r,selectChange:l,treeDeviceList:a,treeDataList:i}}const nXe={class:"text-[#f00] flex flex-col h-full px-2"},oXe={class:"flex items-center"},rXe={class:"!w-[114px]"},aXe={class:"text-hy-text-main"},iXe={class:"flex-grow w-0"},sXe={class:"flex-shrink-0 mr-2 flex h-full items-center justify-center"},lXe={key:0,class:"w-full flex cursor_pointer"},cXe={class:"flex items-center flex-grow w-0"},dXe={class:"max-w-full overflow-ellipsis overflow-hidden"},uXe={class:"flex-shrink-0 mr-2 ml-1"},fXe={class:"text-hy-main"},s7=t.defineComponent({__name:"device-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},hideDevice:{type:Boolean,default:!1},showOnlineOnly:{type:Boolean,default:!1},disableDataList:{default:()=>[]},returnDisableDevice:{type:Boolean,default:!0}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(e,{expose:n,emit:o}){const r=e,i=o,{currentDepartment:a,currentDevice:s,currentDeviceDelete:l,elementRef:c,selectedData:d,treeComponentHeight:f,treeComponentRef:u,viewDepartmentList:p,watchTreeComponentHeight:h,setChecked:g,setCheckedKeys:m,setSelectedList:_,selectFilterList:b,selectFilterType:C,getInputPlaceholder:w,setViewDepartmentList:E,checkContentSlotsType:N,otherContentSlotsType:S}=rg({emit:i,props:r}),{getData:v,query:x,selectChange:T,treeDeviceList:D,treeDataList:V}=tXe({emit:i,props:r,params:{selectFilterType:C,setViewDepartmentList:E}});return t.watch(()=>r.showOnlineOnly,()=>{v()}),n({setCheckedKeys:m,setSelectedList:_,setChecked:g}),t.onMounted(()=>{h(),r.fuzzySearch?(b.value=[{label:le("department"),value:null,placeholder:"设备名称,部门名称镜像筛选"}],C.value=null):(b.value=[{label:le("department"),value:1,placeholder:le("filterByDepartmentName")}],r.hideDevice||b.value.push({label:le("equipment"),value:3,placeholder:le("filterByDeviceNumberAndDeviceName")}),C.value=b.value[0].value),r.defaultGetData||v()}),(R,q)=>{const K=t.resolveComponent("el-option"),G=t.resolveComponent("el-select"),I=t.resolveComponent("svg-icon"),P=t.resolveComponent("el-button"),M=t.resolveComponent("el-input"),O=t.resolveComponent("el-tooltip");return t.openBlock(),t.createElementBlock("div",nXe,[t.createElementVNode("div",oXe,[t.createVNode(M,{modelValue:t.unref(x),"onUpdate:modelValue":q[1]||(q[1]=$=>t.isRef(x)?x.value=$:null),placeholder:t.unref(w),class:"my-2",clearable:"",size:"small",onClear:t.unref(v),onKeyup:t.withKeys(t.unref(v),["enter"])},t.createSlots({append:t.withCtx(()=>[t.createElementVNode("div",aXe,[t.createVNode(P,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:t.unref(v)},{default:t.withCtx(()=>[t.createVNode(I,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[r.fuzzySearch?void 0:{name:"prepend",fn:t.withCtx(()=>[t.createElementVNode("div",rXe,[t.createVNode(G,{modelValue:t.unref(C),"onUpdate:modelValue":q[0]||(q[0]=$=>t.isRef(C)?C.value=$:null),class:"!m-0",size:"small",onChange:t.unref(T)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(b),($,F)=>(t.openBlock(),t.createBlock(K,{key:`${F}_selectFilterList`,label:$.label,value:$.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),t.renderSlot(R.$slots,"below-the-input"),t.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[t.createVNode(og,{ref_key:"treeComponentRef",ref:u,"item-type":3,"item-select-param":"deviceId","highlight-selected":r.highlightSelected,"item-size":r.itemSize,"data-list":t.unref(p),height:t.unref(f),"check-strictly":r.checkStrictly,"show-checkbox":r.showCheckbox,"parent-checkbox":r.parentCheckbox,"show-radio":r.showRadio,"default-checked-list":r.defaultCheckedList,"show-radio-button":r.showRadioButton,"show-checkbox-button":r.showCheckboxButton,onOnCurrentDepartment:t.unref(a),onOnCurrent:t.unref(s),onOnCurrentDelete:t.unref(l),onOnSelectedData:t.unref(d)},{"check-content":t.withCtx(({row:$})=>[t.renderSlot(R.$slots,"check-content",t.normalizeProps(t.guardReactiveProps({row:$}))),t.unref(N)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([{"text-hy-text-main":$.onlineState===1},"w-full flex h-full"])},[t.createElementVNode("div",iXe,[t.createVNode(n7,{device:$},null,8,["device"])]),t.createVNode(O,{"open-delay":1e3,class:"item",content:t.unref(le)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",sXe,[t.createVNode(I,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})],512),[[t.vShow,$.todayFile]])]),_:2},1032,["content"])],2))]),"other-content":t.withCtx(({row:$})=>[t.renderSlot(R.$slots,"other-content",t.normalizeProps(t.guardReactiveProps({row:$}))),t.unref(S)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",lXe,[t.createVNode(O,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:$.companyName||$.groupName||$.orgName},{default:t.withCtx(()=>[t.createElementVNode("div",cXe,[t.createElementVNode("span",dXe,t.toDisplayString($.companyName||$.groupName||$.orgName),1),t.withDirectives(t.createElementVNode("span",uXe,[t.createTextVNode(" ("),t.createElementVNode("span",fXe,t.toDisplayString($.onlineCountList.length),1),t.createTextVNode("/"+t.toDisplayString($.childrenDeviceList.length)+") ",1)],512),[[t.vShow,!r.hideDevice]])])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","default-checked-list","show-radio-button","show-checkbox-button","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function pXe(e){const n=t.ref(e.props),o=t.ref(e.params.selectFilterType),r=t.ref(""),i=t.ref([]);async function a(){var l;n.value.getData&&((l=n.value.getData())==null||l.then(async c=>{if(!c)return;const d=await a7(r.value,[...c],{disabledIds:n.value.disableDataList.map(f=>`disabled:${f.id}`).toString(),hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});i.value=d.children,e.params.setViewDepartmentList(i.value)}))}function s(){r.value.length&&a()}return{getData:a,query:r,selectChange:s}}const hXe={class:"text-[#f00] flex flex-col h-full px-2"},mXe={class:"flex items-center"},gXe={class:"!w-[114px]"},yXe={class:"text-hy-text-main"},_Xe={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},bXe={class:"flex-grow w-0 flex items-center mr-1"},wXe={class:"overflow-ellipsis overflow-hidden mx-1"},CXe={class:"flex-shrink-0 flex items-center"},EXe={key:0,class:"w-full"},kXe={class:"w-full h-full flex items-center"},vXe={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},SXe={class:"flex-shrink-0 text-xs ml-1 mx-2 text-hy-main"},NXe=t.defineComponent({__name:"user-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(e,{expose:n,emit:o}){const r=e,i=o,{currentDepartment:a,currentDevice:s,currentDeviceDelete:l,elementRef:c,selectedData:d,treeComponentHeight:f,treeComponentRef:u,viewDepartmentList:p,watchTreeComponentHeight:h,setChecked:g,setCheckedKeys:m,setSelectedList:_,selectFilterList:b,selectFilterType:C,getInputPlaceholder:w,setViewDepartmentList:E,checkContentSlotsType:N,otherContentSlotsType:S}=rg({emit:i,props:r}),{getData:v,query:x,selectChange:T}=pXe({emit:i,props:r,params:{selectFilterType:C,setViewDepartmentList:E}});return n({setCheckedKeys:m,setSelectedList:_,setChecked:g}),t.onMounted(()=>{h(),r.fuzzySearch?(b.value=[{label:le("department"),value:null,placeholder:"人员名称,群组名称镜像筛选"}],C.value=null):(b.value=[{label:le("department"),value:1,placeholder:le("filterByDepartmentName")}],r.hideDevice||b.value.push({label:le("equipment"),value:5,placeholder:le("filterByPersonnelName")}),C.value=b.value[0].value),r.defaultGetData||v()}),(D,V)=>{const R=t.resolveComponent("el-option"),q=t.resolveComponent("el-select"),K=t.resolveComponent("svg-icon"),G=t.resolveComponent("el-button"),I=t.resolveComponent("el-input"),P=t.resolveComponent("el-tooltip");return t.openBlock(),t.createElementBlock("div",hXe,[t.createElementVNode("div",mXe,[t.createVNode(I,{modelValue:t.unref(x),"onUpdate:modelValue":V[1]||(V[1]=M=>t.isRef(x)?x.value=M:null),placeholder:t.unref(w),class:"my-2",clearable:"",size:"small",onClear:t.unref(v),onKeyup:t.withKeys(t.unref(v),["enter"])},t.createSlots({append:t.withCtx(()=>[t.createElementVNode("div",yXe,[t.createVNode(G,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:t.unref(v)},{default:t.withCtx(()=>[t.createVNode(K,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[r.fuzzySearch?void 0:{name:"prepend",fn:t.withCtx(()=>[t.createElementVNode("div",gXe,[t.createVNode(q,{modelValue:t.unref(C),"onUpdate:modelValue":V[0]||(V[0]=M=>t.isRef(C)?C.value=M:null),class:"!m-0",size:"small",onChange:t.unref(T)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(b),(M,O)=>(t.openBlock(),t.createBlock(R,{key:`${O}_selectFilterList`,label:M.label,value:M.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),t.renderSlot(D.$slots,"below-the-input"),t.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[t.createVNode(og,{ref_key:"treeComponentRef",ref:u,"item-type":5,"highlight-selected":r.highlightSelected,"item-size":r.itemSize,"data-list":t.unref(p),height:t.unref(f),"check-strictly":r.checkStrictly,"show-checkbox":r.showCheckbox,"parent-checkbox":r.parentCheckbox,"show-radio":r.showRadio,"show-radio-button":r.showRadioButton,"show-checkbox-button":r.showCheckboxButton,"default-checked-list":r.defaultCheckedList,onOnCurrentDepartment:t.unref(a),onOnCurrent:t.unref(s),onOnCurrentDelete:t.unref(l),onOnSelectedData:t.unref(d)},{"check-content":t.withCtx(({row:M})=>[t.renderSlot(D.$slots,"check-content",t.normalizeProps(t.guardReactiveProps({row:M}))),t.unref(N)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",_Xe,[t.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:M.name},{default:t.withCtx(()=>[t.createElementVNode("div",bXe,[t.createVNode(K,{name:"icon-user",class:"!w-[14px] !h-[14px]"}),t.createElementVNode("div",wXe,[t.createElementVNode("span",null,t.toDisplayString(M.name),1)])])]),_:2},1032,["content"]),M.todayFile?(t.openBlock(),t.createBlock(P,{key:0,class:"item","show-after":1e3,content:t.unref(le)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:t.withCtx(()=>[t.createElementVNode("div",CXe,[t.createVNode(K,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})])]),_:1},8,["content"])):t.createCommentVNode("",!0)]))]),"other-content":t.withCtx(({row:M})=>[t.renderSlot(D.$slots,"other-content",t.normalizeProps(t.guardReactiveProps({row:M}))),t.unref(S)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",EXe,[t.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:M.companyName||M.orgName},{default:t.withCtx(()=>[t.createElementVNode("div",kXe,[t.createElementVNode("div",vXe,[t.createElementVNode("span",null,t.toDisplayString(M.companyName||M.orgName),1)]),t.createElementVNode("span",SXe,"("+t.toDisplayString(M.childrenDeviceList.length||0)+")",1)])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function xXe(e){const n=t.ref(e.props),o=t.ref(e.params.selectFilterType),r=t.ref(""),i=t.ref([]);async function a(){var l;n.value.getData&&((l=n.value.getData())==null||l.then(async c=>{if(!c)return;const d=await r7(r.value,[...c],{hideDevice:n.value.hideDevice,hideOrgNoData:n.value.hideOrgNoData,hideGroup:n.value.hideGroup,selectFilterType:o.value});console.log("res",d),i.value=d.children,e.params.setViewDepartmentList(i.value)}))}function s(){r.value.length&&a()}return{getData:a,query:r,selectChange:s}}const TXe={class:"text-[#f00] flex flex-col h-full px-2"},LXe={class:"flex items-center"},OXe={class:"!w-[114px]"},$Xe={class:"text-hy-text-main"},DXe={key:0,class:"flex items-center w-full h-full click-box"},PXe={class:"flex-grow w-0 h-full flex items-center text-hy-text-main"},IXe={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},MXe={class:"text-hy-text-main"},AXe={class:"flex-shrink-0 ml-1 mr-2 h-full flex items-center justify-center"},VXe={key:0,class:"w-full h-full"},RXe={class:"w-full h-full flex items-center"},BXe={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},FXe=t.defineComponent({__name:"org-group-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},hideGroup:{type:Boolean,default:!1},hideDevice:{type:Boolean,default:!1}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(e,{expose:n,emit:o}){const r=e,i=o,{currentDepartment:a,currentDevice:s,currentDeviceDelete:l,elementRef:c,selectedData:d,treeComponentHeight:f,treeComponentRef:u,viewDepartmentList:p,watchTreeComponentHeight:h,setChecked:g,setCheckedKeys:m,setSelectedList:_,selectFilterList:b,selectFilterType:C,getInputPlaceholder:w,setViewDepartmentList:E,checkContentSlotsType:N,otherContentSlotsType:S}=rg({emit:i,props:r}),{getData:v,query:x,selectChange:T}=xXe({emit:i,props:r,params:{selectFilterType:C,setViewDepartmentList:E}});return n({setCheckedKeys:m,setSelectedList:_,setChecked:g}),t.onMounted(()=>{h(),r.fuzzySearch?(b.value=[{label:le("department"),value:null,placeholder:"设备名称,群组名称镜像筛选"}],C.value=null):(b.value=[{label:le("department"),value:1,placeholder:le("filterByDepartmentName")}],r.hideDevice||b.value.push({label:le("equipment"),value:3,placeholder:le("filterByDeviceNumberAndDeviceName")}),C.value=b.value[0].value),r.defaultGetData||v()}),(D,V)=>{const R=t.resolveComponent("el-option"),q=t.resolveComponent("el-select"),K=t.resolveComponent("svg-icon"),G=t.resolveComponent("el-button"),I=t.resolveComponent("el-input"),P=t.resolveComponent("el-tooltip");return t.openBlock(),t.createElementBlock("div",TXe,[t.createElementVNode("div",LXe,[t.createVNode(I,{modelValue:t.unref(x),"onUpdate:modelValue":V[1]||(V[1]=M=>t.isRef(x)?x.value=M:null),placeholder:t.unref(w),class:"my-2",clearable:"",size:"small",onClear:t.unref(v),onKeyup:t.withKeys(t.unref(v),["enter"])},t.createSlots({append:t.withCtx(()=>[t.createElementVNode("div",$Xe,[t.createVNode(G,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:t.unref(v)},{default:t.withCtx(()=>[t.createVNode(K,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[r.fuzzySearch?void 0:{name:"prepend",fn:t.withCtx(()=>[t.createElementVNode("div",OXe,[t.createVNode(q,{modelValue:t.unref(C),"onUpdate:modelValue":V[0]||(V[0]=M=>t.isRef(C)?C.value=M:null),class:"!m-0",size:"small",onChange:t.unref(T)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(b),(M,O)=>(t.openBlock(),t.createBlock(R,{key:`${O}_selectFilterList`,label:M.label,value:M.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),t.renderSlot(D.$slots,"below-the-input"),t.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[t.createVNode(og,{ref_key:"treeComponentRef",ref:u,"item-type":4,"highlight-selected":r.highlightSelected,"item-size":r.itemSize,"data-list":t.unref(p),height:t.unref(f),"check-strictly":r.checkStrictly,"show-checkbox":r.showCheckbox,"parent-checkbox":r.parentCheckbox,"show-radio":r.showRadio,"show-radio-button":r.showRadioButton,"show-checkbox-button":r.showCheckboxButton,"default-checked-list":r.defaultCheckedList,onOnCurrentDepartment:t.unref(a),onOnCurrent:t.unref(s),onOnCurrentDelete:t.unref(l),onOnSelectedData:t.unref(d)},{"check-content":t.withCtx(({row:M})=>[t.renderSlot(D.$slots,"check-content",t.normalizeProps(t.guardReactiveProps({row:M}))),t.unref(N)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",DXe,[t.createVNode(P,{class:"item",content:M.groupName,effect:"dark",placement:"bottom","show-after":1e3},{default:t.withCtx(()=>{var O;return[t.createElementVNode("div",PXe,[t.createElementVNode("div",IXe,[t.createElementVNode("span",MXe,t.toDisplayString(M.groupName),1)]),t.withDirectives(t.createElementVNode("span",{class:"flex-shrink-0 text-xs mr-2 ml-1 text-hy-main"},"("+t.toDisplayString(((O=M.deviceList)==null?void 0:O.length)||0)+")",513),[[t.vShow,!r.hideDevice]])])]}),_:2},1032,["content"]),t.createVNode(P,{class:"item",content:t.unref(le)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom","show-after":1e3},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",AXe,[t.createVNode(K,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})],512),[[t.vShow,M.todayFile]])]),_:2},1032,["content"])]))]),"other-content":t.withCtx(({row:M})=>[t.renderSlot(D.$slots,"other-content",t.normalizeProps(t.guardReactiveProps({row:M}))),t.unref(S)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",VXe,[M.type===3?(t.openBlock(),t.createBlock(n7,{key:0,device:M},null,8,["device"])):t.createCommentVNode("",!0),M.type!==3?(t.openBlock(),t.createBlock(P,{key:1,"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:M.companyName||M.orgName},{default:t.withCtx(()=>[t.createElementVNode("div",RXe,[t.createElementVNode("div",BXe,[t.createElementVNode("span",null,t.toDisplayString(M.companyName||M.orgName),1)])])]),_:2},1032,["content"])):t.createCommentVNode("",!0)]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function zXe(e){const n=t.ref(e.props),o=t.ref(e.params.selectFilterType),r=t.ref(""),i=t.ref([]);async function a(){var l;n.value.getData&&((l=n.value.getData())==null||l.then(async c=>{if(!c)return;const d=await wL(r.value,[...c],{disabledIds:n.value.disableDataList.map(f=>`disabled:${f.id}`).toString(),hideDevice:!0,selectFilterType:o.value});i.value=d.children,e.params.setViewDepartmentList(i.value)}))}function s(){r.value.length&&a()}return{getData:a,query:r,selectChange:s}}const UXe={class:"text-[#f00] flex flex-col h-full px-2"},jXe={class:"flex items-center"},WXe={class:"!w-[114px]"},HXe={class:"text-hy-text-main"},GXe={key:0,class:"w-full text-hy-text-main"},KXe={class:"w-full h-full flex items-center"},YXe={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},qXe={key:0,class:"w-full"},ZXe={class:"w-full h-full flex items-center"},JXe={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},l7=t.defineComponent({__name:"org-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(e,{expose:n,emit:o}){const r=e,i=o,{currentDepartment:a,currentDevice:s,currentDeviceDelete:l,elementRef:c,selectedData:d,treeComponentHeight:f,treeComponentRef:u,viewDepartmentList:p,watchTreeComponentHeight:h,setChecked:g,setCheckedKeys:m,setSelectedList:_,selectFilterList:b,selectFilterType:C,getInputPlaceholder:w,setViewDepartmentList:E,checkContentSlotsType:N,otherContentSlotsType:S}=rg({emit:i,props:r}),{getData:v,query:x,selectChange:T}=zXe({emit:i,props:r,params:{selectFilterType:C,setViewDepartmentList:E}});return n({setCheckedKeys:m,setSelectedList:_,setChecked:g}),t.onMounted(()=>{h(),r.fuzzySearch?(b.value=[{label:le("department"),value:null,placeholder:le("filterByDepartmentName")}],C.value=null):(b.value=[{label:le("department"),value:1,placeholder:le("filterByDepartmentName")}],C.value=b.value[0].value),r.defaultGetData||v()}),(D,V)=>{const R=t.resolveComponent("el-option"),q=t.resolveComponent("el-select"),K=t.resolveComponent("svg-icon"),G=t.resolveComponent("el-button"),I=t.resolveComponent("el-input"),P=t.resolveComponent("el-tooltip");return t.openBlock(),t.createElementBlock("div",UXe,[t.createElementVNode("div",jXe,[t.createVNode(I,{modelValue:t.unref(x),"onUpdate:modelValue":V[1]||(V[1]=M=>t.isRef(x)?x.value=M:null),placeholder:t.unref(w),class:"my-2",clearable:"",size:"small",onClear:t.unref(v),onKeyup:t.withKeys(t.unref(v),["enter"])},t.createSlots({append:t.withCtx(()=>[t.createElementVNode("div",HXe,[t.createVNode(G,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:t.unref(v)},{default:t.withCtx(()=>[t.createVNode(K,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[r.fuzzySearch?void 0:{name:"prepend",fn:t.withCtx(()=>[t.createElementVNode("div",WXe,[t.createVNode(q,{modelValue:t.unref(C),"onUpdate:modelValue":V[0]||(V[0]=M=>t.isRef(C)?C.value=M:null),class:"!m-0",size:"small",onChange:t.unref(T)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(b),(M,O)=>(t.openBlock(),t.createBlock(R,{key:`${O}_selectFilterList`,label:M.label,value:M.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),t.renderSlot(D.$slots,"below-the-input"),t.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[t.createVNode(og,{ref_key:"treeComponentRef",ref:u,"item-type":1,"highlight-selected":r.highlightSelected,"item-size":r.itemSize,"data-list":t.unref(p),height:t.unref(f),"check-strictly":r.checkStrictly,"show-checkbox":r.showCheckbox,"parent-checkbox":r.parentCheckbox,"show-radio":r.showRadio,"show-radio-button":r.showRadioButton,"show-checkbox-button":r.showCheckboxButton,"default-checked-list":r.defaultCheckedList,onOnCurrentDepartment:t.unref(a),onOnCurrent:t.unref(s),onOnCurrentDelete:t.unref(l),onOnSelectedData:t.unref(d)},{"check-content":t.withCtx(({row:M})=>[t.renderSlot(D.$slots,"check-content",t.normalizeProps(t.guardReactiveProps({row:M}))),t.unref(N)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",GXe,[t.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:M.companyName||M.orgName},{default:t.withCtx(()=>[t.createElementVNode("div",KXe,[t.createElementVNode("div",YXe,[t.createElementVNode("span",null,t.toDisplayString(M.companyName||M.orgName),1)])])]),_:2},1032,["content"])]))]),"other-content":t.withCtx(({row:M})=>[t.renderSlot(D.$slots,"other-content",t.normalizeProps(t.guardReactiveProps({row:M}))),t.unref(S)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",qXe,[t.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:M.companyName||M.orgName},{default:t.withCtx(()=>[t.createElementVNode("div",ZXe,[t.createElementVNode("div",JXe,[t.createElementVNode("span",null,t.toDisplayString(M.companyName||M.orgName),1)])])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function XXe(e){const n=t.ref(e.props),o=t.ref(e.params.selectFilterType),r=t.ref(""),i=t.ref([]);async function a(){var l;n.value.getData&&((l=n.value.getData())==null||l.then(async c=>{if(!c)return;const d=await i7(r.value,[...c],{disabledIds:n.value.disableDataList.map(f=>`disabled:${f.id}`).toString(),hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});console.log(d),i.value=d.children,e.params.setViewDepartmentList(i.value)}))}function s(){r.value.length&&a()}return{getData:a,query:r,selectChange:s}}const QXe={class:"text-[#f00] flex flex-col h-full px-2"},eQe={class:"flex items-center"},tQe={class:"!w-[114px]"},nQe={class:"text-hy-text-main"},oQe={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},rQe={class:"flex-grow w-0 flex items-center mr-1"},aQe={class:"overflow-ellipsis overflow-hidden mx-1"},iQe={class:"flex-shrink-0 flex items-center"},sQe={key:0,class:"w-full"},lQe={class:"w-full h-full flex items-center"},cQe={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},dQe={class:"flex-shrink-0 text-xs ml-1 mr-2 text-hy-main"},uQe=t.defineComponent({__name:"acquisition-station-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(e,{expose:n,emit:o}){const r=e,i=o,{currentDepartment:a,currentDevice:s,currentDeviceDelete:l,elementRef:c,selectedData:d,treeComponentHeight:f,treeComponentRef:u,viewDepartmentList:p,watchTreeComponentHeight:h,setChecked:g,setCheckedKeys:m,setSelectedList:_,selectFilterList:b,selectFilterType:C,getInputPlaceholder:w,setViewDepartmentList:E,checkContentSlotsType:N,otherContentSlotsType:S}=rg({emit:i,props:r}),{getData:v,query:x,selectChange:T}=XXe({emit:i,props:r,params:{selectFilterType:C,setViewDepartmentList:E}});return n({setCheckedKeys:m,setSelectedList:_,setChecked:g}),t.onMounted(()=>{h(),r.fuzzySearch?(b.value=[{label:le("department"),value:null,placeholder:"采集站名称,群组名称镜像筛选"}],C.value=null):(b.value=[{label:le("department"),value:1,placeholder:le("filterByDepartmentName")}],r.hideDevice||b.value.push({label:"采集站",value:8,placeholder:le("采集站名称进行筛选")}),C.value=b.value[0].value),r.defaultGetData||v()}),(D,V)=>{const R=t.resolveComponent("el-option"),q=t.resolveComponent("el-select"),K=t.resolveComponent("svg-icon"),G=t.resolveComponent("el-button"),I=t.resolveComponent("el-input"),P=t.resolveComponent("el-tooltip");return t.openBlock(),t.createElementBlock("div",QXe,[t.createElementVNode("div",eQe,[t.createVNode(I,{modelValue:t.unref(x),"onUpdate:modelValue":V[1]||(V[1]=M=>t.isRef(x)?x.value=M:null),placeholder:t.unref(w),class:"my-2",clearable:"",size:"small",onClear:t.unref(v),onKeyup:t.withKeys(t.unref(v),["enter"])},t.createSlots({append:t.withCtx(()=>[t.createElementVNode("div",nQe,[t.createVNode(G,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:t.unref(v)},{default:t.withCtx(()=>[t.createVNode(K,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[r.fuzzySearch?void 0:{name:"prepend",fn:t.withCtx(()=>[t.createElementVNode("div",tQe,[t.createVNode(q,{modelValue:t.unref(C),"onUpdate:modelValue":V[0]||(V[0]=M=>t.isRef(C)?C.value=M:null),class:"!m-0",size:"small",onChange:t.unref(T)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(b),(M,O)=>(t.openBlock(),t.createBlock(R,{key:`${O}_selectFilterList`,label:M.label,value:M.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),t.renderSlot(D.$slots,"below-the-input"),t.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[t.createVNode(og,{ref_key:"treeComponentRef",ref:u,"item-type":8,"highlight-selected":r.highlightSelected,"item-size":r.itemSize,"data-list":t.unref(p),height:t.unref(f),"check-strictly":r.checkStrictly,"show-checkbox":r.showCheckbox,"parent-checkbox":r.parentCheckbox,"show-radio":r.showRadio,"show-radio-button":r.showRadioButton,"show-checkbox-button":r.showCheckboxButton,"default-checked-list":r.defaultCheckedList,onOnCurrentDepartment:t.unref(a),onOnCurrent:t.unref(s),onOnCurrentDelete:t.unref(l),onOnSelectedData:t.unref(d)},{"check-content":t.withCtx(({row:M})=>[t.renderSlot(D.$slots,"check-content",t.normalizeProps(t.guardReactiveProps({row:M}))),t.unref(N)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",oQe,[t.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:M.sname},{default:t.withCtx(()=>[t.createElementVNode("div",rQe,[t.createVNode(K,{name:"menu-acquisition-station-2",class:"!w-[20px] !h-[20px]"}),t.createElementVNode("div",aQe,[t.createElementVNode("span",null,t.toDisplayString(M.sname),1)])])]),_:2},1032,["content"]),M.todayFile?(t.openBlock(),t.createBlock(P,{key:0,class:"item","show-after":1e3,content:t.unref(le)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:t.withCtx(()=>[t.createElementVNode("div",iQe,[t.createVNode(K,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})])]),_:1},8,["content"])):t.createCommentVNode("",!0)]))]),"other-content":t.withCtx(({row:M})=>[t.renderSlot(D.$slots,"other-content",t.normalizeProps(t.guardReactiveProps({row:M}))),t.unref(S)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",sQe,[t.createVNode(P,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:M.companyName||M.orgName},{default:t.withCtx(()=>[t.createElementVNode("div",lQe,[t.createElementVNode("div",cQe,[t.createElementVNode("span",null,t.toDisplayString(M.companyName||M.orgName),1)]),t.createElementVNode("span",dQe,"("+t.toDisplayString(M.childrenDeviceList.length||0)+")",1)])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function fQe(e){return xt.post({url:"/file/presignedUrl",data:{fileName:Q9(1)+e.name},isFormData:!0})}function pQe(e){return new Promise(n=>{fQe(e).then(({data:o})=>{xt.put({url:o.url,data:e,isFileUpload:!0,xAmzAcl:!0,fileType:null}).then(()=>{n(o)})})})}function hQe(e){const n=e.emit,o=t.ref(null),r=t.ref(null),i=t.ref(!1),a=t.ref({typeName:""}),s=t.reactive({typeName:[{required:!0,message:le("pleaseEnterTheDepartmentTypeName"),trigger:"blur"}]});async function l(g){if(!(g.size/1024/1024<2))return ft.error(le("imageUploadFailedLogoSizeWithin2M")),!1;const b={img:await o.value.getBlobToData(g),outputType:"png",canScale:!0,fixedBox:!0,infoTrue:!1,autoCropWidth:44,autoCropHeight:44,centerBox:!1,original:!0,fixed:!1};await o.value.onShowModal(b);const C=await o.value.getCropBlob();return c(C),!1}async function c(g){const{key:m}=await pQe(g);d(g,_=>{f(_,m)})}function d(g,m){const _=new FileReader;_.onload=function(b){m(b.target.result)},_.readAsDataURL(g)}function f(g,m){a.value.icon=g,a.value.iconKey=m}function u(){var g;(g=r.value)==null||g.validate(async m=>{m&&(a.value.icon||(a.value.iconKey=null),(await Uxe({...a.value,icon:null})).code===200&&(n("on-submit"),i.value=!1,ft.success(le("operationSuccessful"))))})}function p(){i.value=!1}function h(g){g?a.value={...g}:a.value={icon:null,typeName:null},i.value=!0}return{hyVueCropperRef:o,formRef:r,visible:i,form:a,rules:s,beforeAvatarUpload:l,handleHttpRequestImg:c,submit:u,onClose:p,show:h,setHeadImg:f}}const mQe={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"},gQe={class:"relative dialog_header text-[18px] font-bold h-[50px] flex items-center justify-center"},yQe={key:0},_Qe={key:1},bQe={class:"absolute right-[10px]"},wQe={class:"dialog_body p-[20px_30px]"},CQe={class:"overflow-hidden"},EQe={class:"flex items-center justify-center pr-2"},kQe={class:"click-box h-[60px] w-[60px] rounded-[6px] relative overflow-hidden duration-500 hover:border-hy-main hover:shadow-[0_0_10px_0] hover:shadow-hy-main bg-hy-page-bg-2 text-hy-text-secondary flex items-center justify-center border border-hy-border-2 group"},vQe={class:"text-hy-main group-hover:opacity-100 font-bold absolute top-[50%] left-[50%] text-xs -translate-y-1/2 -translate-x-1/2 opacity-0 duration-500 leading-[20px]"},SQe={class:"flex-grow lh_20 text-hy-text-secondary text-xs ml-2"},NQe={class:"my-1"},xQe={class:"form-label"},TQe={class:"text-right mt-[10px]"},LQe=Po(t.defineComponent({__name:"add-department-type",emits:["on-submit"],setup(e,{expose:n,emit:o}){const r=o,{hyVueCropperRef:i,formRef:a,visible:s,form:l,rules:c,beforeAvatarUpload:d,handleHttpRequestImg:f,submit:u,onClose:p,show:h,setHeadImg:g}=hQe({emit:r});return n({show:h}),(m,_)=>{const b=t.resolveComponent("svg-icon"),C=t.resolveComponent("el-image"),w=t.resolveComponent("el-upload"),E=t.resolveComponent("el-form-item"),N=t.resolveComponent("el-input"),S=t.resolveComponent("el-form"),v=t.resolveComponent("el-button"),x=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(x,{"model-value":t.unref(s),"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"w-[340px] !p-0 border-[0] shadow-[0_0_0_0]"},{default:t.withCtx(()=>[t.createVNode(Rs,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:t.withCtx(()=>[t.createElementVNode("div",mQe,[t.createElementVNode("div",gQe,[t.createElementVNode("span",null,[t.unref(l).id?(t.openBlock(),t.createElementBlock("span",yQe,t.toDisplayString(t.unref(le)("editDepartmentType")),1)):(t.openBlock(),t.createElementBlock("span",_Qe,t.toDisplayString(t.unref(le)("addDepartmentType")),1))]),t.createElementVNode("div",bQe,[t.createVNode(b,{width:"20",height:"20",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:t.withModifiers(t.unref(p),["stop"])},null,8,["onClick"])])]),t.createElementVNode("div",wQe,[t.createElementVNode("div",CQe,[t.createVNode(S,{ref_key:"formRef",ref:a,"label-position":"top",model:t.unref(l),rules:t.unref(c),"label-width":"0px"},{default:t.withCtx(()=>[t.createVNode(E,{prop:"companyName"},{label:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("departmentIcon")),1)])]),default:t.withCtx(()=>[t.createElementVNode("div",EQe,[t.createVNode(w,{class:"flex items-center justify-center group relative overflow-hidden",accept:".png,.jpg,.gif","before-upload":t.unref(d),"http-request":t.unref(f),action:"","show-file-list":!1},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.withDirectives(t.createElementVNode("div",{class:"group-hover:bottom-0 bg-hy-page-bg-1/50 absolute z-[3] left-[0] w-full h-[23px] rounded-[0_0_7px_7px] text-hy-danger duration-500 bottom-[-40%] flex items-center justify-center",onClick:_[0]||(_[0]=t.withModifiers(T=>t.unref(g)(null),["stop"]))},[t.createVNode(b,{name:"sys-button-delete",width:"16",height:"16"})],512),[[t.vShow,t.unref(l).icon]])]),t.createElementVNode("div",kQe,[t.unref(l).icon?(t.openBlock(),t.createBlock(C,{key:0,fit:"contain",class:"w-[44px] h-[44px]",src:t.unref(l).icon},null,8,["src"])):(t.openBlock(),t.createBlock(b,{key:1,width:"70%",height:"70%",name:"sys-icon-user"})),t.createElementVNode("span",vQe,t.toDisplayString(t.unref(le)("upload")),1)])]),_:1},8,["before-upload","http-request"]),t.createElementVNode("div",SQe,[t.createElementVNode("div",null,t.toDisplayString(t.unref(le)("pleaseUploadDepartmentTypeIcon")),1),t.createElementVNode("div",NQe,t.toDisplayString(t.unref(le)("iconSize44px"))+"*44px ",1),t.createElementVNode("div",null,t.toDisplayString(t.unref(le)("ifNoIconUseTheDefaultIcon")),1)])])]),_:1}),t.createVNode(E,{prop:"typeName"},{label:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("span",xQe,t.toDisplayString(t.unref(le)("departmentTypeName")),1)])]),default:t.withCtx(()=>[t.createVNode(N,{modelValue:t.unref(l).typeName,"onUpdate:modelValue":_[1]||(_[1]=T=>t.unref(l).typeName=T),placeholder:t.unref(le)("pleaseEnterTheDepartmentTypeName"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})]),_:1},8,["model","rules"])]),t.createElementVNode("div",TQe,[t.createVNode(v,{type:"primary",class:"buttonBox",onClick:t.unref(p)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("close-0")),1)]),_:1},8,["onClick"]),t.createVNode(v,{class:"button_function buttonBox",onClick:t.unref(u)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("save-0")),1)]),_:1},8,["onClick"])])])])]),_:1}),t.createVNode(rB,{ref_key:"hyVueCropperRef",ref:i},null,512)]),_:1},8,["model-value"])}}}),[["__scopeId","data-v-621e8a6e"]]),OQe={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},$Qe=[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768a384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0a48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"},null,-1)];function DQe(e,n){return t.openBlock(),t.createElementBlock("svg",OQe,[...$Qe])}const CL={name:"ep-warning",render:DQe};function PQe(e){return xt.post({url:"scrollCheck/scp/page",data:e,isFormData:!0})}function IQe({props:e}){const n=t.ref(null),o=t.ref([]),r=t.ref(1),i=t.ref(!0),a=t.ref(10),s=t.ref(0),l=t.ref(null),c=t.ref(!1),d=t.ref(!1),f=t.computed(()=>d.value||c.value),u=t.ref({lat:"",lng:""}),p=t.computed(()=>{const D=Number(u.value.lat);return D<=90&&D>=-90?D:"内容错误"}),h=t.computed(()=>{const D=Number(u.value.lng);return D<=180&&D>=-180?D:"内容错误"});function g(){p.value&&p.value!=="内容错误"&&h&&h.value!=="内容错误"&&m(u.value)}function m(D){if(D.lng&&D.lat){e.h.panTo(e.map,{lng:D.lng,lat:D.lat}),e.h.setZoom(e.map,18);const V=e.h.marker(e.map,[D.lat,D.lng],{icon:'<svg aria-hidden="true" class="animation-marker" style="width: 40px; height: 60px;"><use data-v-19e5a669="" xlink:href="#icon-base-trajectory-personnel"></use></svg>',zIndexOffset:100,iconAnchor:[-20,-30]});setTimeout(()=>{e.h.removeMarker(e.map,V)},3e3),w(1)}}function _(D,V){return R=>{if(!i.value)return!1;i.value=!1,setTimeout(()=>{D(R),i.value=!0},V)}}function b(){console.log("触发加载"),!c.value&&(d.value=!0,s.value++,t.nextTick(()=>{E()}))}function C(){n.value=null,u.value={lat:"",lng:""},w()}function w(D){r.value!==5&&(o.value=[],s.value=1,c.value=!1,d.value=!1,console.log("重置数据",D),t.nextTick(()=>{D!==1&&E()}))}function E(){n.value&&n.value.length?r.value===1?N():r.value===4?v():r.value===6&&S():w(1)}async function N(){const D=await e.poi.placeSearch({keywords:n.value,offset:a.value,page:s.value});if(console.log(D),D){const V=D,R=[];for(let q=0;q<V.length;q++){const K=V[q];R.push({...K.location,id:CIe(),address:K.address||K.name,title:x(K.name)})}t.nextTick(()=>{d.value=!1,o.value.push(...R),R.length<a.value&&(s.value+=1,N())})}else d.value=!1,c.value=!0,ft.error("没有搜索到内容")}async function S(){const D=await PQe({page:s.value-1,size:10,query:n.value});if(D.code===200){const V=D.data.content,R=[];for(let q=0;q<V.length;q++){const K=V[q];R.push({id:K.id,address:K.address||K.pointName,...K,title:x(K.pointName)})}t.nextTick(()=>{d.value=!1,o.value.push(...R),s.value===D.data.totalPages&&(c.value=!0)})}}async function v(){const D=await zxe({page:s.value-1,size:10,query:n.value});if(D.code===200){const V=D.data.content,R=[];for(let q=0;q<V.length;q++){const K=V[q];R.push({id:K.id,address:K.address||K.companyName,...K,title:x(K.companyName)})}t.nextTick(()=>{d.value=!1,o.value.push(...R),s.value===D.data.totalPages&&(c.value=!0)})}}function x(D){const V=[];for(let R=0;R<D.length;R++){const q=D[R],K=n.value.indexOf(q),G={content:D[R]};K===-1?G.type=1:G.type=2,V.push(G)}return V}function T(){if(r.value===1)return"请输入地址";if(r.value===4)return"请输入部门名称";if(r.value===6)return"请输入巡查点"}return{$t:le,searchAddress:n,searchResultList:o,searchAddressType:r,valid:i,size:a,page:s,nextPageParams:l,noMore:c,loading:d,disabled:f,mapJumpLocationFn:m,throttle:_,load:b,resetFn:w,searchAddressTypeFn:C,placeholderFn:T,inputSearch:u,showSearchLat:p,showSearchLng:h,searchLngLat:g}}const MQe={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"},AQe=["src"],VQe={class:"ml_10 ml-[10px]",style:{width:"calc(100% - 34px)"}},RQe={class:"title fs_14 c_fff over_one_line fw_600 text-[14px] text-hy-text-main truncate font-bold"},BQe={class:"address over_one_line fs_12 c_fff truncate text-[12px] text-hy-text-main"},FQe={class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"},zQe={class:"ml_20 ml-[20px]"},UQe=Po(t.defineComponent({__name:"map-search-place-item",props:{mapJumpLocationFn:{type:Function,default:()=>null},index:{default:null},searchAddressType:{default:1},source:{default:()=>{}}},setup(e){const n=e,{mapJumpLocationFn:o,index:r,searchAddressType:i,source:a}=n;return(s,l)=>{const c=t.resolveComponent("svg-icon");return t.openBlock(),t.createElementBlock("li",{class:"clickBox css-text-no-select cursor-pointer",onClick:l[0]||(l[0]=d=>t.unref(o)(t.unref(a)))},[t.unref(i)===1?(t.openBlock(),t.createBlock(c,{key:0,name:"base-maplocation"})):t.unref(i)===4?(t.openBlock(),t.createElementBlock("div",MQe,[t.createElementVNode("img",{src:t.unref(a).orgTypeIcon,class:"w-full h-full"},null,8,AQe)])):t.unref(i)===6?(t.openBlock(),t.createElementBlock("div",{key:2,style:t.normalizeStyle([{width:"26px",height:"26px"},{backgroundColor:t.unref(a).color}]),class:"el-markerImgBox rounded-full flex-shrink-0"},null,4)):t.createCommentVNode("",!0),t.createElementVNode("div",VQe,[t.createElementVNode("div",RQe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a).title,(d,f)=>(t.openBlock(),t.createElementBlock("span",{key:f,style:t.normalizeStyle({color:d.type===2?"var(--hy-text-primary)":"var(--hy-text-secondary)"})},t.toDisplayString(d.content),5))),128))]),t.createElementVNode("div",BQe,t.toDisplayString(t.unref(a).address),1),t.createElementVNode("div",FQe,[t.createElementVNode("span",null,"经度:"+t.toDisplayString(t.unref(a).lat),1),t.createElementVNode("span",zQe,"维度:"+t.toDisplayString(t.unref(a).lng),1)])])])}}}),[["__scopeId","data-v-7d1ddd51"]]),jQe=e=>(t.pushScopeId("data-v-5856b649"),e=e(),t.popScopeId(),e),WQe={style:{display:"inline-block","flex-direction":"column",width:"300px"},class:"search_lightColor pos_r relative"},HQe={class:"r-f flex"},GQe={class:"flex",style:{width:"calc(100% - 42px)"}},KQe={key:1,class:"w-[58%] flex justify-between ml-[4px]"},YQe={class:"flex flex-col leading-[20px] ml-[10px]"},qQe=jQe(()=>t.createElementVNode("span",{class:"text-[14px] font-[600] text-hy-text-main mb-[5px]"},"填写经纬度",-1)),ZQe={class:"text-[12px] text-hy-text-secondary"},JQe={class:"text-[12px] text-hy-text-secondary"},XQe={key:2,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},QQe={key:3,class:"c_fff centerBox fs_12 text-hy-text-main flex items-center justify-center text-[12px]"},c7=Po(t.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(e){const n=e,{$t:o,searchAddressType:r,showSearchLat:i,showSearchLng:a,inputSearch:s,searchAddressTypeFn:l,searchAddress:c,searchResultList:d,resetFn:f,loading:u,noMore:p,mapJumpLocationFn:h,placeholderFn:g,load:m,throttle:_,searchLngLat:b}=IQe({props:n});return t.onMounted(()=>{var C;r.value=(C=n.searchTypes[0])==null?void 0:C.value}),(C,w)=>{const E=t.resolveComponent("el-option"),N=t.resolveComponent("el-select"),S=t.resolveComponent("el-input"),v=t.resolveComponent("svg-icon");return t.openBlock(),t.createElementBlock("div",WQe,[t.createElementVNode("div",HQe,[t.createElementVNode("div",GQe,[t.createVNode(N,{modelValue:t.unref(r),"onUpdate:modelValue":w[0]||(w[0]=x=>t.isRef(r)?r.value=x:null),style:{width:"38%",border:"1px solid var(--hy-border-2)","box-sizing":"border-box","border-radius":"6px","font-size":"12px"},placeholder:"请选择",onChange:t.unref(l)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(C.searchTypes,x=>(t.openBlock(),t.createBlock(E,{key:x.value,value:x.value,label:x.label},null,8,["value","label"]))),128))]),_:1},8,["modelValue","onChange"]),t.unref(r)!==5?(t.openBlock(),t.createBlock(S,{key:0,modelValue:t.unref(c),"onUpdate:modelValue":w[1]||(w[1]=x=>t.isRef(c)?c.value=x:null),clearable:"",style:{width:"58%",border:"1px solid var(--hy-border-2)","box-sizing":"border-box","border-radius":"6px","margin-left":"4px"},placeholder:t.unref(g)(),onInput:w[2]||(w[2]=t.unref(_)(t.unref(f),1e3))},null,8,["modelValue","placeholder"])):(t.openBlock(),t.createElementBlock("div",KQe,[t.createVNode(S,{modelValue:t.unref(s).lng,"onUpdate:modelValue":w[3]||(w[3]=x=>t.unref(s).lng=x),placeholder:"经度",class:"!w-[47.5%]",clearable:"",onInput:w[4]||(w[4]=x=>t.unref(q3)(t.unref(s),"lng"))},null,8,["modelValue"]),t.createVNode(S,{modelValue:t.unref(s).lat,"onUpdate:modelValue":w[5]||(w[5]=x=>t.unref(s).lat=x),placeholder:"纬度",class:"!w-[47.5%]",clearable:"",onInput:w[6]||(w[6]=x=>t.unref(q3)(t.unref(s),"lat"))},null,8,["modelValue"])]))]),t.createElementVNode("div",{class:"searchBox centerBox cursor-pointer flex items-center justify-center",style:{"flex-shrink":"0",display:"flex"},onClick:w[7]||(w[7]=(...x)=>t.unref(f)&&t.unref(f)(...x))},[t.createVNode(v,{name:"base-search","class-name":"w-[16px] h-[16px] text-hy-text-main"})])]),t.unref(d).length?(t.openBlock(),t.createBlock(t.unref(T$),{key:0,"infinite-scroll-disabled":"disabled",class:"filterContentList",style:{height:"400px","overflow-y":"auto"},"data-key":"id","data-sources":t.unref(d),"data-component":UQe,keeps:10,"extra-props":{mapJumpLocationFn:t.unref(h),searchAddressType:t.unref(r)},"estimate-size":88,onTobottom:t.unref(m)},null,8,["data-sources","extra-props","onTobottom"])):t.createCommentVNode("",!0),t.unref(r)===5?(t.openBlock(),t.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:w[8]||(w[8]=(...x)=>t.unref(b)&&t.unref(b)(...x))},[t.createVNode(v,{name:"base-maplocation","class-name":"w-[26px] h-[26px] ml-[10px]"}),t.createElementVNode("div",YQe,[qQe,t.createElementVNode("span",ZQe,[t.createTextVNode("经度:"),t.createElementVNode("span",{class:t.normalizeClass(t.unref(a)==="内容错误"?"text-hy-danger":"")},t.toDisplayString(t.unref(a)||"请输入经度"),3)]),t.createElementVNode("span",JQe,[t.createTextVNode("纬度:"),t.createElementVNode("span",{class:t.normalizeClass(t.unref(i)==="内容错误"?"text-hy-danger":"")},t.toDisplayString(t.unref(i)||"请输入纬度"),3)])])])):t.createCommentVNode("",!0),t.unref(u)?(t.openBlock(),t.createElementBlock("p",XQe," 加载中... ")):t.createCommentVNode("",!0),t.unref(p)?(t.openBlock(),t.createElementBlock("p",QQe," 没有更多了 ")):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-5856b649"]]);function eet(e){return xt.post({url:"mapRail/findAllWithDevice",data:e,isFormData:!0})}function tet(e){return xt.post({url:"mapRail/deleteBatch",data:e,isFormData:!0})}function net(e){return xt.post({url:e.id?"mapRail/update":"mapRail/insert",data:e,isJson:!0})}function oet(e){return xt.post({url:"mapRail/select",data:e,isFormData:!0})}function ret(e){const n=e.emit,{mapConfig:o,isShowMap:r,layersUrlList:i,H:a,POI:s}=FT(),l=t.ref(null),c=t.ref(null),d=t.shallowRef(null),f=t.ref({railName:[{required:!0,message:le("pleaseEnterTheNameOfTheElectronicFence"),trigger:"blur"}]}),u=t.ref({}),p=t.ref(!0),h=t.ref(!1),g=t.ref(100),m=t.ref("fixedPoint"),_=t.ref(null),b=t.ref(!1),C=t.shallowRef(null);t.watch(()=>g.value,P=>{g.value=P.replace(/\D/g,"")});function w(P,M){return O=>{if(!p.value)return!1;p.value=!1,setTimeout(()=>{P(O),p.value=!0},M)}}function E(){let P="";m.value==="fixedPoint"?P=le("mouseClicksOnTheMapAndReleasesToEnd"):m.value==="circle"?P=le("mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd"):P=le("mouseClicksOnTheMapAndRightClicksToEnd"),_.value=P}async function N(){const P=ri.getCache("userInfo");let M=null;P!=null&&P.lng&&(P!=null&&P.lat)&&(M=[P.lat,P.lng]),(M==null?void 0:M.length)===0&&(M=null),d.value=await a.map("addElectronicFence_container",{maxZoom:o.maxZoom||18,minZoom:o.minZoom||13,zoom:o.zoom||13,center:M,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:i,layerType:1}),d.value.on("complete",O=>{var $;if(console.log("加载完成"),($=u.value.pointList)!=null&&$.length){const F=u.value.pointList.map(Y=>({lat:Y.lat,lng:Y.lng}));T(F)}}),d.value.on("left-click",O=>{V(O)})}function S(){C.value&&(a.removePolygon(d.value,C.value),C.value=null)}function v(){S(),m.value!=="fixedPoint"?x():b.value=!0}function x(){const P={templineStyle:{color:"#2DF2FF"},hintlineStyle:{color:"#2DF2FF",dashArray:[5,5]}};a.pm(d.value,m.value,P,T)}function T(P){C.value=a.polygon(d.value,P,{weight:2,color:"#2DF2FF",opacity:1,fillColor:"#2DF2FF",fillOpacity:.3}),a.fitBounds(d.value,P.map(M=>[M.lat,M.lng])),D()}function D(){a.removePM(d.value)}function V(P){if(b.value){const M=a.searchByCircle({lat:P.latlng.lat,lng:P.latlng.lng},g.value/2);T(M),b.value=!1}}async function R(P){const M=await oet({id:P});M.code===200&&(u.value={...M.data},h.value=!0,t.nextTick(()=>{N()}))}function q(P){var M;u.value={},g.value=100,b.value=!1,S(),m.value="fixedPoint",E(),c.value&&((M=c.value)==null||M.resetFields()),P?R(P):(h.value=!0,t.nextTick(()=>{N()}))}function K(){console.log(C.value)}function G(){var M;K();let P=[];if(C.value&&(P=a.getShapeLatLngs(C.value)),(P==null?void 0:P.length)===0||!C.value)return ft.error(le("pleaseDrawTheElectronicFence")),!1;(M=c.value)==null||M.validate(async O=>{if(O){const $={railName:u.value.railName};$.pointList=P.map(Y=>({lng:Y.lng,lat:Y.lat})),$.id=u.value.id||null,(await net($)).code===200&&(ft.success(`${le("operationSuccessful")} !`),n("on-submit"),h.value=!1)}})}function I(){n("on-close"),h.value=!1}return{addElectronicFenceContainerRef:l,formRef:c,H:a,map:d,POI:s,isShowMap:r,rules:f,form:u,valid:p,dialogVisible:h,radius:g,mouseToolName:m,tips:_,onClose:I,show:q,onSubmit:G,tipsFn:E,initMap:N,mapRailSelectFn:R,throttle:w,startDraw:v,removePolygon:S}}const aet=e=>(t.pushScopeId("data-v-2ab41282"),e=e(),t.popScopeId(),e),iet={class:"text-hy-text-main"},set={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]"},cet={class:"dialog_body px-[30px] pb-[30px]"},det={class:""},uet={class:"form-label"},fet={class:"relative flex flex-row h-[50px]"},pet={class:"z-[1]"},het={class:"form-label"},met={class:"w-full flex items-center form-item"},get={class:"form-label"},yet={class:"flex items-center form-item"},_et=aet(()=>t.createElementVNode("span",{class:"text-sm ml-[10px] text-hy-text-secondary flex-shrink"},"M",-1)),bet={class:"flex items-center form-item"},wet={class:"text-xs text-hy-text-secondary flex items-center"},Cet={class:"text-hy-main"},Eet={class:"text-right mt-[10px]"},ket=Po(t.defineComponent({__name:"add-electronic-fence",emits:["on-submit","on-close"],setup(e,{expose:n,emit:o}){const r=o,{addElectronicFenceContainerRef:i,formRef:a,rules:s,form:l,dialogVisible:c,radius:d,mouseToolName:f,tips:u,H:p,map:h,POI:g,isShowMap:m,onClose:_,tipsFn:b,show:C,startDraw:w,removePolygon:E,onSubmit:N}=ret({emit:r});return n({show:C}),t.onUnmounted(()=>{p.removeMap(h.value)}),(S,v)=>{const x=t.resolveComponent("svg-icon"),T=t.resolveComponent("el-input"),D=t.resolveComponent("el-form-item"),V=t.resolveComponent("el-col"),R=t.resolveComponent("el-option"),q=t.resolveComponent("el-select"),K=t.resolveComponent("el-button"),G=CL,I=t.resolveComponent("el-icon"),P=t.resolveComponent("el-row"),M=t.resolveComponent("el-form"),O=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(O,{modelValue:t.unref(c),"onUpdate:modelValue":v[4]||(v[4]=$=>t.isRef(c)?c.value=$: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:t.withCtx(()=>[t.createElementVNode("div",iet,[t.createElementVNode("div",set,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("electronicFence")),1),t.createElementVNode("div",{class:"absolute top-[15px] right-[15px] cursor-pointer",onClick:v[0]||(v[0]=(...$)=>t.unref(_)&&t.unref(_)(...$))},[t.createVNode(x,{name:"icon-close",width:"26",height:"26","class-name":"svgBox click-box text-hy-text-danger"})])]),t.createElementVNode("div",cet,[t.createVNode(M,{ref_key:"formRef",ref:a,model:t.unref(l),rules:t.unref(s),"label-width":"0px","label-position":"top",class:"demo-ruleForm"},{default:t.withCtx(()=>[t.createVNode(P,{gutter:20},{default:t.withCtx(()=>[t.createVNode(V,{span:24},{default:t.withCtx(()=>[t.createVNode(D,{prop:"railName"},{label:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("span",det,t.toDisplayString(t.unref(le)("electronicFenceName")),1)])]),default:t.withCtx(()=>[t.createVNode(T,{modelValue:t.unref(l).railName,"onUpdate:modelValue":v[1]||(v[1]=$=>t.unref(l).railName=$),placeholder:t.unref(le)("pleaseEnterTheNameOfTheElectronicFence"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})]),_:1}),t.createVNode(V,{span:10},{default:t.withCtx(()=>[t.createVNode(D,{class:"m-0"},{label:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("span",uet,t.toDisplayString(t.unref(le)("electronicFenceRange")),1)])]),default:t.withCtx(()=>[t.createElementVNode("div",fet,[t.createElementVNode("div",pet,[t.unref(m)&&t.unref(h)?(t.openBlock(),t.createBlock(c7,{key:0,h:t.unref(p),map:t.unref(h),poi:t.unref(g)},null,8,["h","map","poi"])):t.createCommentVNode("",!0)])])]),_:1})]),_:1}),t.createVNode(V,{span:5},{default:t.withCtx(()=>[t.createVNode(D,{class:"m-0 pl-[20px]"},{label:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("span",het,t.toDisplayString(t.unref(le)("drawingMethod")),1)])]),default:t.withCtx(()=>[t.createElementVNode("div",met,[t.createVNode(q,{modelValue:t.unref(f),"onUpdate:modelValue":v[2]||(v[2]=$=>t.isRef(f)?f.value=$:null),placeholder:t.unref(le)("pleaseSelectTheDrawingMethod"),class:"!w-full",onChange:t.unref(b)},{default:t.withCtx(()=>[t.createVNode(R,{label:t.unref(le)("fixedPointRange"),value:"fixedPoint"},null,8,["label"]),t.createVNode(R,{label:t.unref(le)("customCircle"),value:"circle"},null,8,["label"]),t.createVNode(R,{label:t.unref(le)("customPolygon"),value:"polygon"},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])])]),_:1})]),_:1}),t.unref(f)==="fixedPoint"?(t.openBlock(),t.createBlock(V,{key:0,span:3},{default:t.withCtx(()=>[t.createVNode(D,{class:"m-0"},{label:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("span",get,t.toDisplayString(t.unref(le)("rangeDistance")),1)])]),default:t.withCtx(()=>[t.createElementVNode("div",yet,[t.createVNode(T,{modelValue:t.unref(d),"onUpdate:modelValue":v[3]||(v[3]=$=>t.isRef(d)?d.value=$:null),maxlength:"6",placeholder:t.unref(le)("unitMeter"),clearable:""},null,8,["modelValue","placeholder"]),_et])]),_:1})]),_:1})):t.createCommentVNode("",!0),t.createVNode(V,{span:6},{default:t.withCtx(()=>[t.createVNode(D,{class:"m-0"},{label:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("operationButton")),1)])]),default:t.withCtx(()=>[t.createElementVNode("div",bet,[t.createVNode(K,{class:"button_function",onClick:t.unref(w)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("startDrawing")),1)]),_:1},8,["onClick"]),t.createVNode(K,{type:"danger",class:"",onClick:t.unref(E)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("clearDrawing")),1)]),_:1},8,["onClick"])])]),_:1})]),_:1}),t.createVNode(V,{span:24},{default:t.withCtx(()=>[t.createVNode(D,null,{default:t.withCtx(()=>[t.unref(m)?(t.openBlock(),t.createElementBlock("div",{key:1,id:"addElectronicFence_container",ref_key:"addElectronicFenceContainerRef",ref:i,class:"z-[0]"},null,512)):(t.openBlock(),t.createBlock($_,{key:0,class:"!h-[400px] rounded"})),t.createElementVNode("div",wet,[t.createVNode(I,{class:"text-sm"},{default:t.withCtx(()=>[t.createVNode(G)]),_:1}),t.createTextVNode(" "+t.toDisplayString(t.unref(le)("afterClickingToStartDrawing"))+" ",1),t.createElementVNode("span",Cet,t.toDisplayString(t.unref(u)),1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"]),t.createElementVNode("div",Eet,[t.createVNode(K,{type:"primary",class:"w-[100px]",onClick:t.unref(_)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("close")),1)]),_:1},8,["onClick"]),t.createVNode(K,{class:"w-[100px]",onClick:t.unref(N)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)("save")),1)]),_:1},8,["onClick"])])])])]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-2ab41282"]]);function vet(e){const n=e.emit,o=t.ref(e.props||{}),r=t.ref(null),i=t.ref(null),a=t.ref({groupId:null,waterPointTypeId:null});function s(u,p){n("on-map-display-fn",{id:u,type:!p})}const l=t.computed(()=>u=>{var p;return(p=o.value.mapDisplayList)!=null&&p.length?o.value.mapDisplayList.findIndex(g=>g===u)!==-1:!1});function c(u){var p;(p=r.value)==null||p.show(u)}function d(){var u;(u=i.value)==null||u.getTableData(),n("on-get-data")}function f(u){ll({tipsTitle:le("deleteElectronicFence"),tipsContent:`<div><p>${le("confirmToDeleteTheCurrentDeletedElectronicFence")}?</p></div>`,submitBtnText:le("confirm-0")},async()=>{(await tet({ids:u})).code===200&&(n("on-delete",u),ft.success(le("deletedSuccessfully")),d())})}return{addElectronicFenceRef:r,AppTableRef:i,requestParams:a,changeFn:s,mapDisplayFn:l,addElectronicFenceShow:c,getData:d,deleteShow:f}}const Net={class:"w-full h-full"},xet={class:"flex items-center justify-center"},Tet={class:"ml-[6px]"},Let={class:"flex"},Oet=t.defineComponent({__name:"electronic-fence",props:{initParams:{default:()=>{}},mapDisplayList:{default:()=>[]},tableColumns:{default:()=>[{label:le("electronicFenceName"),prop:"railName"},{label:le("operation"),slotName:"operator",width:"200px"}]}},emits:["on-map-display-fn","on-get-data","on-delete"],setup(e,{emit:n}){const o=e,r=n,{addElectronicFenceRef:i,AppTableRef:a,requestParams:s,changeFn:l,mapDisplayFn:c,addElectronicFenceShow:d,getData:f,deleteShow:u}=vet({emit:r,props:o});return t.onMounted(()=>{s.value={...o.initParams}}),(p,h)=>{const g=t.resolveComponent("svg-icon"),m=t.resolveComponent("el-button"),_=t.resolveComponent("el-switch");return t.openBlock(),t.createElementBlock("div",Net,[t.createVNode(wv,{ref_key:"AppTableRef",ref:a,height:"100%","show-footer":!0,"search-arr":[{label:t.unref(le)("electronicFenceName"),prop:"railName"}],"column-list":p.tableColumns,"req-url":"mapRail/page","search-form":t.unref(s)},{tableLeft:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(m,{type:"success",class:"",onClick:h[0]||(h[0]=b=>t.unref(d)())},{default:t.withCtx(()=>[t.createElementVNode("div",xet,[t.createVNode(g,{width:"16",height:"16",name:"base-add-3"}),t.createElementVNode("span",Tet,t.toDisplayString(t.unref(le)("addElectronicFence")),1)])]),_:1}),t.renderSlot(p.$slots,"operator-left-box")])]),mapDisplay:t.withCtx(({row:b})=>[t.createElementVNode("div",null,[t.createVNode(_,{class:"switch_custom switch_width_60","model-value":t.unref(c)(b.id),"active-text":t.unref(le)("show"),"inactive-text":t.unref(le)("hide"),"inline-prompt":"","active-color":"#5AB95F","inactive-color":"var(--hy-dialog-bg-1)",onClick:C=>t.unref(l)(b.id,t.unref(c)(b.id))},null,8,["model-value","active-text","inactive-text","onClick"])])]),isDefault:t.withCtx(({row:b})=>[t.renderSlot(p.$slots,"isDefault",{row:b})]),operator:t.withCtx(({row:b})=>[t.createElementVNode("div",Let,[t.createVNode(ra,{name:"icon-edit",tips:t.unref(le)("edit"),onClick:C=>t.unref(d)(b.id)},null,8,["tips","onClick"]),t.createVNode(ra,{class:"hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-text-danger",name:"base-delete",tips:t.unref(le)("delete"),onClick:C=>t.unref(u)(b.id)},null,8,["tips","onClick"])])]),_:3},8,["search-arr","column-list","search-form"]),t.createVNode(ket,{ref_key:"addElectronicFenceRef",ref:i,onOnSubmit:t.unref(f)},null,8,["onOnSubmit"])])}}});function $et({emit:e,props:n}){const o=t.shallowRef(),r=t.shallowRef(),i=t.ref(),{H:a,POI:s,isShowMap:l,layersUrlList:c,mapConfig:d}=FT();function f(){l&&t.nextTick(async()=>{const C=ri.getCache("userInfo");let w=null;C!=null&&C.lng&&(C!=null&&C.lat)&&(w=[C.lat,C.lng]),w.length===0&&(w=null),o.value=await a.map("selectMapLocation",{maxZoom:d.maxZoom||18,minZoom:d.minZoom||13,zoom:d.zoom||13,center:w,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:c,layerType:d.satelliteMap}),o.value.on("complete",()=>{e("on-map-ready"),n.latlng&&m(n.latlng)}),o.value.on("left-click",E=>{i.value=null,p({lng:E.latlng.lng,lat:E.latlng.lat})})})}async function u(C){const w=await s.placeSearch({keywords:C,offset:10,page:1});if(w){const E=w[0];p({lng:E.lng,lat:E.lat})}else e("on-geographical-position",{})}async function p(C){const w=await s.reverseGeocoder(C);if(!(w&&w.address.length)){h(C),ft({type:"warning",message:"未获取到地址信息"});return}g({lng:C.lng,lat:C.lat,address:w.formatted_address,name:w.formatted_address,...w})}function h(C){i.value={lng:C.lng,lat:C.lat,address:"",name:""},e("on-geographical-position",i.value),m()}function g(C){i.value=C,e("on-geographical-position",C),m()}function m(C){r.value&&a.removeMarker(o.value,r.value);let w,E;C?(w=C.lat,E=C.lng):(w=i.value.lat,E=i.value.lng);let N={icon:'<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAgCAYAAAASYli2AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAFKADAAQAAAABAAAAIAAAAADmfO67AAAEgklEQVRIDbVVXWhcVRCeuXuT3SSmmzQEhFYfRBEapGgfYuiPqYkI/rQBjQo+iK1JLdqKtD6IL3kv9CFBitsKCqYPaRHRVokhJoRKVRQpEsGXPpTkqZifxmw22XvO+M25e9Z7N6lPepa7M2fmmzkzc+acw7TFGBIJbl+nZyzRiyzUKUQ7FMZM8+B/DIgut3fR10PMgKQHp6dEb30vB4ylYRHZrUo4IA/yvKPMNzIBnfxwL88kfXiskw1Oy3EhGSGRTBJ0d54NM58odPM5j6k6HJiUAUu24BWOCmJBnlggFivah6mSCo8SDJ7vCc+ryDk8OiGPijXXhSXrQaqM1QkPmxaIF2MO1vF1ffwU/xqqmYnMGaSarS7pvKpGRyW6eFIz9zqbZZIzUPby6+MbnVGZfnD4mpRY2EogF8gG40FADVZsL6J+DSVwmbn8EgkgusfDjXXpqwaRcMjE1oocGX2u/tNqcESjr34ZjSGaK8gIpUsYABSR9AViqMeim9xn/qFGaHj0cMqZ8zt6KPzGWnvOAmAibGOFKm8M9wSRsfep0CkSFFl9nogsxQJ21WJx3SNPlY+s3RmS4TaL4+AGiKsOqLFSTHlJTDjKLEc2qkkYAOa2AIVaMJGGjyiRuqeYdCV8pNiyNZ2iWITqqfLW2IUAkczBKezhFGfO0ygyH7wwWnoo5QmT/jFpl8i+ryVSZ5463tJ8iMinEPseZ6iZVzYO7L2W7VTfZ6UjdfXZyVyJcn/J+sFyaW0Eu98eL5QwUNMg+I4PfVLcK2KvKaD2IMRG+s8RTiCWkozHqDTtjijgYJ/GQ89eWJmBcn+6qzYvgIsAiwpq78zgEDx+jjLNXD3a/ASaU7PMnBbDZVdktINSV+RK4X2fxjVWvfacJfRwhXKZJfOe+nIOr7zR+BMuh9PaU84I1PWXbhZ4AY0/zyuNF3ZU5JT6iIPT/8roHblzllne1TptPWqqFhf27MTb+VMeHxfDz0CfHF4q4FIYUFGyRglIlYVxYfKdlmNVARiXclJw4ET+TfTWRZ+6p5q69pynqN/F/Sfzx5O2ym+KUIXdUxLan5cuQ3u42ksVsCYdMH9Bj+X7pw9ypPjk2BShKhXYlG15GdFMuB3WY6nHU09HJN821OVf2cqZ2m4ZoSp0PP+RNC4sLI7jZOzTOSK7tn1769NfHeO7XxwKTA/cN0PE3bC/PUvBjg5qWalbGlNMczl8aX72nqX2DrLTKClwqIC/qhRRE+GeQalrbqSmKEvbgg3K53LUiHszizxwu2MIRWFA66USFW09LYfrdGelSKu/FLjs9PiLgTrrl0xLG21Doz6M1+oRaB5A/VrxQOMtiXEoOO5QWqsLaREWN/Gs/dbSQH/AdokuMfog4bC7A0d0kZoyObofh2A3otqFrw1NjheN3MOP/AxkeDLpT9g2Q7hsizQH2+XpS+ou4XB6lqTnQVpFirfg4AbSW0F1WsE3YAGXiUaIBdbwLcLxTfTMLW6kVbWN3f0PNdyibdK7vGsnZUp5xIORWyb5fY7Mv+2yj/Q/o38DhqCjJovBnOsAAAAASUVORK5CYII=" style="width: 20px; height: 32px;" />',zIndexOffset:10,iconAnchor:[-20,-16]};n.markerItemFn&&(N=n.markerItemFn()),o.value.setZoom(18),o.value.panTo([E,w]),r.value=a.marker(o.value,[w,E],N)}function _(){r.value&&a.removeMarker(o.value,r.value)}function b(C){r.value&&a.updateMarkerIcon(r.value,C)}return{H:a,map:o,POI:s,marker:r,isShowMap:l,initMap:f,geographicalPositionFn:g,throughCoordinatePosition:p,placeSearchFn:u,setContentFn:b,removeMarker:_}}const Det={class:"w-full h-full relative"},Pet={key:1,id:"selectMapLocation",ref:"selectMapLocation",class:"w-full h-full"},Iet=Po(t.defineComponent({__name:"select-map-location",props:{markerItemFn:{type:Function,default:null},latlng:{default:null}},emits:["on-geographical-position","on-map-ready"],setup(e,{expose:n,emit:o}){const r=e,i=o,{isShowMap:a,initMap:s,throughCoordinatePosition:l,placeSearchFn:c,setContentFn:d,removeMarker:f,H:u,map:p,POI:h}=$et({emit:i,props:r});return t.onMounted(()=>{s()}),n({throughCoordinatePosition:l,placeSearchFn:c,setContentFn:d,removeMarker:f,H:u,map:p,POI:h}),(g,m)=>(t.openBlock(),t.createElementBlock("div",Det,[t.unref(a)?(t.openBlock(),t.createElementBlock("div",Pet,null,512)):(t.openBlock(),t.createBlock($_,{key:0,class:"absolute top-0 left-0 z-[2]"}))]))}}),[["__scopeId","data-v-e69b3725"]]),Met={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Aet=[t.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864L512 652.672L192.128 340.864a30.592 30.592 0 0 0-42.752 0a29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728a30.592 30.592 0 0 0-42.752 0z"},null,-1)];function Vet(e,n){return t.openBlock(),t.createElementBlock("svg",Met,[...Aet])}const Ret={name:"ep-arrow-down",render:Vet},Bet={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Fet=[t.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32l-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872l319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"},null,-1)];function zet(e,n){return t.openBlock(),t.createElementBlock("svg",Bet,[...Fet])}const Uet={name:"ep-arrow-up",render:zet},jet={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Wet=[t.createElementVNode("path",{fill:"currentColor",d:"M672 192L288 511.936L672 832z"},null,-1)];function Het(e,n){return t.openBlock(),t.createElementBlock("svg",jet,[...Wet])}const Get={name:"ep-caret-left",render:Het};function d7(e){return xt.post({url:"spotCheck/task/detail",data:e,isFormData:!0})}function Ket(e){return xt.post({url:"spotCheck/timing/detail",data:e,isFormData:!0})}function Yet(e){return xt.post({url:"spotCheck/task/end",data:e,isFormData:!0})}function qet(e){return xt.post({url:"spotCheck/timing/detail",data:e,isFormData:!0})}function Zet(e){return xt.post({url:e.id?"spotCheck/timing/update":"spotCheck/timing/insert",data:e,isJson:!0})}function Jet(e){return xt.post({url:"spotCheck/template/detail",data:e,isFormData:!0})}function Xet(e){return xt.post({url:e.id?"spotCheck/template/update":"spotCheck/template/insert",data:e,isJson:!0})}function Qet(e){return xt.post({url:"spotCheck/task/taskExecute",data:e,isJson:!0})}function u7(e){return xt.post({url:"spotCheck/task/pttFile/page",data:e,isFormData:!0})}function ett(e){return xt.post({url:"spotCheck/task/groupBind",data:e,isJson:!0})}function ttt({props:e,emit:n}){const o=t.ref(null),r=t.ref(0),i=t.ref(0),a=t.ref(0),s=t.ref(0),l=t.ref(0),c=t.ref(0),d=t.ref([]);function f(_){const{deviceId:b,checkStatus:C}=_||{};if(!b)return;const w=d.value.findIndex(E=>E.deviceId===b);if(w!==-1){switch(d.value[w].checkStatus){case 1:r.value--;break;case 2:i.value--;break}switch(C){case 2:i.value++;break;case 3:a.value++;break;case 4:s.value++;break}t.nextTick(()=>{p(),d.value[w].checkStatus=C})}}function u(){let _=0,b=0,C=0,w=0,E=0,N=0;d.value.forEach(S=>{const v=S.checkStatus,x=S.intercomGroupTem,T=S.onlineState;switch(x===1&&N++,T===2&&E++,v){case 1:_++;break;case 2:b++;break;case 3:C++;break;case 4:w++;break}}),t.nextTick(()=>{r.value=_,i.value=b,a.value=C,s.value=w,l.value=E,c.value=N,p()})}function p(){n("on-countStatus",{beReceiveNum:r.value,receivingNum:i.value,finishNum:a.value,notFinishNum:s.value,offLineNum:l.value,intercomGroupTemNum:c.value})}function h(){o.value}function g(){}async function m(_){const{code:b,data:C=[]}=await Ket({taskId:e.form.id,checkStatus:_||null});b===200&&(d.value=C,e.subscribeStatus&&u(),n("change",d.value))}return{uniqueId:o,beReceiveNum:r,receivingNum:i,finishNum:a,notFinishNum:s,offLineNum:l,intercomGroupTemNum:c,taskDeviceList:d,setDeviceStatus:f,initDeviceStatusList:u,onCountStatus:p,spotCheckSubscribe:h,spotCheckUnsubscribe:g,getData:m}}const ntt={class:"h-[58px] bg-hy-dialog-bg-2 border border-box border-hy-border-2 rounded px-2 box-border flex items-center"},ott={class:"relative"},rtt={class:"w-[16px] text-hy-text-main h-[16px] bg-hy-danger flex items-center justify-center absolute -top-[2px] -right-[4px] rounded-full text-xs font-bold"},att={class:"scale-75"},itt={class:"w-[16px] text-hy-text-main h-[16px] bg-hy-danger flex items-center justify-center absolute -top-[2px] -right-[4px] rounded-full text-xs font-bold"},stt={class:"flex-grow w-0 flex"},ltt={class:"mx-2 flex-grow w-0"},ctt={class:"truncate"},dtt={class:"text-hy-text-secondary truncate"},utt={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},ftt={class:"r-f tac flex items-center justify-center flex-col"},ptt={class:"mt-3"},EL=t.defineComponent({__name:"spot-check-task-device",props:{subscribeStatus:{type:Boolean,default:!0},form:{default:{}},paramsSpan:{default:24}},emits:["on-countStatus"],setup(e,{emit:n}){const o=e,r=n,{taskDeviceList:i,spotCheckUnsubscribe:a,uniqueId:s,spotCheckSubscribe:l,getData:c}=ttt({props:o,emit:r});return t.onMounted(()=>{s.value=o.form.uniqueId,o.subscribeStatus&&l(),c()}),t.onUnmounted(()=>{a()}),(d,f)=>{const u=t.resolveComponent("el-tooltip"),p=t.resolveComponent("svg-icon"),h=t.resolveComponent("el-col"),g=t.resolveComponent("el-row");return t.openBlock(),t.createBlock(g,{gutter:8,class:"h-full"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(i),m=>(t.openBlock(),t.createBlock(h,{key:m.id,span:d.paramsSpan,class:"mb-2"},{default:t.withCtx(()=>[t.createElementVNode("div",ntt,[t.createElementVNode("div",ott,[t.createVNode(Zu,{class:"w-[36px] h-[36px]"}),m.intercomGroupTem===1?(t.openBlock(),t.createBlock(u,{key:0,class:"item",effect:"dark",content:t.unref(le)("theDeviceWasInATemporaryGroupWhenTheSpotCheckWasInitiated"),placement:"top"},{default:t.withCtx(()=>[t.createElementVNode("div",rtt,[t.createElementVNode("span",att,t.toDisplayString(t.unref(le)("lin")),1)])]),_:1},8,["content"])):m.onlineState===2?(t.openBlock(),t.createBlock(u,{key:1,class:"item",effect:"dark",content:t.unref(le)("theDeviceWasOfflineWhenTheSpotCheckWasInitiated"),placement:"top"},{default:t.withCtx(()=>[t.createElementVNode("div",itt,[t.createVNode(p,{name:"icon-off-line","class-name":"!w-[10px] !h-[14px]"})])]),_:1},8,["content"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",stt,[t.createElementVNode("div",ltt,[t.createElementVNode("p",ctt,t.toDisplayString(m.devName),1),t.createElementVNode("p",dtt,t.toDisplayString(m.deviceId),1)]),t.createElementVNode("div",null,[t.withDirectives(t.createElementVNode("div",{class:"border-info bg-hy-info/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},t.toDisplayString(t.unref(le)("toBeReceived-1")),513),[[t.vShow,m.checkStatus===1]]),t.withDirectives(t.createElementVNode("div",{class:"border-warning bg-hy-warning/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},t.toDisplayString(t.unref(le)("receiving-1")),513),[[t.vShow,m.checkStatus===2]]),t.withDirectives(t.createElementVNode("div",{class:"w-[54px] border-success bg-hy-success/50 border rounded px-2 flex items-center justify-center h-[24px] box-border whitespace-nowrap"},t.toDisplayString(t.unref(le)("completed-0")),513),[[t.vShow,m.checkStatus===3]]),t.withDirectives(t.createElementVNode("div",{class:"border-hy-danger bg-hy-danger/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},t.toDisplayString(t.unref(le)("uncompleted-0")),513),[[t.vShow,m.checkStatus===4]])])])])]),_:2},1032,["span"]))),128)),t.unref(i).length===0?(t.openBlock(),t.createBlock(h,{key:0,span:24,class:"h-full"},{default:t.withCtx(()=>[t.createElementVNode("div",utt,[t.createElementVNode("div",ftt,[t.createVNode(p,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),t.createElementVNode("div",ptt,t.toDisplayString(t.unref(le)("noData")),1)])])]),_:1})):t.createCommentVNode("",!0)]),_:1})}}});function htt({props:e}){const n=t.ref(null),o=t.ref(""),r=t.ref(!1),i=t.ref(null),a=t.ref(0),s=t.ref(0),l=t.ref([]),c=t.ref(null),d=t.ref(null),f=t.ref(null),u=t.ref(!0),p=t.ref(null),h=t.ref(),g=t.ref();function m(){n.value=e.orgGroupInsertTemp.id,l.value=[],u.value=!0,b(),t.nextTick(()=>{N()})}function _(){if(!e.realtimeRequestType)return;const T=async()=>{const D=l.value[l.value.length-1];if(!D){T();return}const V={page:0,taskId:e.taskId,largeThenTimestamp:D.fileTimestamp},R=c.value.scrollTop,q=c.value.offsetHeight-46,K=document.querySelector(`#item-${D.id}`);if(K){const G=K.offsetTop,I=await u7(V);if(I.code===200){const{content:P=[],totalElements:M=0}=I.data;a.value=M,t.nextTick(()=>{P.forEach(O=>{l.value.findIndex(F=>F.id===O.id)===-1&&l.value.push(O)}),R>=G-q&&E()})}}};p.value&&clearInterval(p.value),p.value=setInterval(()=>{T()},1e4)}async function b(){var q;let T=null;l.value.length&&(T=l[0].value.id);const V={page:0,taskId:e.taskId,lessThenTimestamp:(q=l.value[0])==null?void 0:q.fileTimestamp};i.value=null,r.value=!0,_();const R=await u7(V);if(R.code===200){const{content:K=[],totalElements:G=0}=R.data;a.value=G,t.nextTick(()=>{var I;T?K.forEach(P=>{const M=l.value.findIndex(O=>O.id===P.id);P.fileDtmEnd||(P.fileDtmEnd=""),M===-1&&l.value.unshift(P)}):l.value=K.reverse(),T?(C(T),i.value=(I=l.value[this.chatMessageList.length-1])==null?void 0:I.id):E(),t.nextTick(()=>{r.value=!1})})}}function C(T){t.nextTick(()=>{c.value.scrollTo(0,document.querySelector(`#item-${T}`).offsetTop-46)})}function w(){a.value!==0&&b()}function E(){t.nextTick(()=>{c.value.scrollTo(0,c.value.scrollHeight)})}function N(){c.value=h.value,d.value=g.value,d.value.addEventListener("ended",()=>{v(),f.value=null}),c.value.onscroll=()=>{c.value.scrollTop===0&&w()}}function S(){u.value=!1,d.value.play()}function v(){u.value=!0,d.value.pause()}function x(T){}return{$t:le,groupId:n,audioUrl:o,loading:r,newScrollTop:i,totalElements:a,page:s,chatMessageList:l,chatMessageListEl:c,audioEl:d,mediaFileId:f,audioType:u,timer:p,chatMessageListRef:h,audioElRef:g,init:m,getNewData:_,getData:b,scrollToMsg:C,topEvent:w,scrollToBottom:E,initScrollList:N,audioPlay:S,audioPause:v,getAudioContext:x}}const mtt=["element-loading-text"],gtt={key:0,class:"w-full h-full flex box-border items-center justify-center text-center text-hy-text-secondary"},ytt={class:""},_tt={class:"mt-5"},btt=["id"],wtt={key:0,class:"min-w-[72px] p-1 bg-hy-dialog-bg-4 text-center rounded mb-2"},Ctt={key:1,class:"h-[50px] flex items-center w-full"},Ett={class:"mr-2 flex-grow w-0 flex flex-col items-end"},ktt={class:"w-full flex items-center justify-end"},vtt=["onClick"],Stt=["onClick"],Ntt={class:"font-bold flex-shrink-0"},xtt={class:"flex-shrink-0 ml-1"},Ttt={key:0},Ltt={key:2,class:"h-[50px] flex items-center w-full"},Ott={class:"ml-2 flex-grow w-0 flex flex-col items-start"},$tt={class:"w-full flex items-center"},Dtt=["onClick"],Ptt={class:"flex-shrink-0 mr-1"},Itt={key:0},Mtt={class:"font-bold flex-shrink-0"},Att=["onClick"],Vtt=t.defineComponent({__name:"talkback-reply",props:{realtimeRequestType:{type:Boolean,default:!0},taskId:{default:null},orgGroupInsertTemp:{default:()=>({id:971})}},setup(e){const n=e,o={},{$t:r,loading:i,chatMessageList:a,mediaFileId:s,audioType:l,getAudioContext:c,init:d,timer:f,chatMessageListRef:u,audioElRef:p}=htt({props:n});return t.onMounted(()=>{d()}),t.onUnmounted(()=>{f.value&&clearInterval(f.value)}),(h,g)=>{const m=t.resolveComponent("svg-icon"),_=t.resolveDirective("loading");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":t.unref(r)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"w-full h-full p-1 box-border relative z-10"},[t.createElementVNode("audio",{id:"audio-el",ref_key:"audioElRef",ref:p,class:"absolute"},null,512),t.createElementVNode("div",{id:"chatMessageList",ref_key:"chatMessageListRef",ref:u,class:"w-full h-full overflow-auto bg-hy-dialog-bg-2 text-hy-text-main text-xs"},[t.unref(a).length===0?(t.openBlock(),t.createElementBlock("div",gtt,[t.createElementVNode("div",ytt,[t.createElementVNode("div",null,[t.createVNode(m,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"})]),t.createElementVNode("div",_tt,[t.createElementVNode("p",null,t.toDisplayString(t.unref(r)("noMemberRespondedAtTheMoment")),1)])])])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),(b,C)=>(t.openBlock(),t.createElementBlock("div",{id:`item-${b.id}`,key:b.id,class:"p-2 box-border flex flex-col items-center"},[b.fileDtmEnd.split(" ")[0]!==(C>0&&t.unref(a)[C-1].fileDtmEnd.split(" ")[0])?(t.openBlock(),t.createElementBlock("div",wtt,t.toDisplayString(b.fileDtmEnd.split(" ")[0]),1)):t.createCommentVNode("",!0),b.devUserId===o.id?(t.openBlock(),t.createElementBlock("div",Ctt,[t.createElementVNode("div",Ett,[t.createElementVNode("div",null,t.toDisplayString(b.devUserName)+" ("+t.toDisplayString(b.serialNum||b.devUserId)+") ",1),t.createElementVNode("div",ktt,[t.unref(s)===b.mediaFileId&&t.unref(l)?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mr-1 mt-1 rounded-[4px] p-[4px_8px] bg-hy-dialog-bg-3/50 text-hy-text-secondary text-xs scale-90 cursor-pointer",onClick:w=>t.unref(c)(b.mediaFileId)},t.toDisplayString(t.unref(r)("continuePlaying")),9,vtt)):t.createCommentVNode("",!0),t.createElementVNode("div",{style:t.normalizeStyle({width:b.audioLength>=60?"70%":`calc(${b.audioLength/60*90}px + 160px)`,background:t.unref(s)===b.mediaFileId?"var(--linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%))":"var(--hy-dialog-bg-3)"}),class:t.normalizeClass([{"!border-hy-border-1 !shadow-hy-border-1":t.unref(s)===b.mediaFileId},"max-w-[70%] h-[28px] flex items-center p-[6px] box-border mt-1 rounded-[4px_0_4px_4px] justify-between relative z-10 cursor-pointer border border-hy-border-2 shadow-[0_0_4px_0] shadow-hy-dialog-bg-1"]),onClick:w=>t.unref(c)(b.mediaFileId)},[t.createElementVNode("div",Ntt,t.toDisplayString(b.audioLength)+"” ",1),t.createElementVNode("div",xtt,[b.fileDtmEnd?(t.openBlock(),t.createElementBlock("span",Ttt,t.toDisplayString(b.fileDtmEnd.split(" ")[1]),1)):t.createCommentVNode("",!0)])],14,Stt)])]),t.createVNode(Zu,{class:"w-[32px] h-[32px]"})])):(t.openBlock(),t.createElementBlock("div",Ltt,[t.createVNode(Zu,{class:"w-[32px] h-[32px]"}),t.createElementVNode("div",Ott,[t.createElementVNode("div",null,t.toDisplayString(b.devUserName)+" ("+t.toDisplayString(b.serialNum||b.devUserId)+") ",1),t.createElementVNode("div",$tt,[t.createElementVNode("div",{style:t.normalizeStyle({width:b.audioLength>=60?"70%":`calc(${b.audioLength/60*90}px + 160px)`,background:t.unref(s)===b.mediaFileId?"var(--linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%))":"var(--hy-dialog-bg-3)"}),class:t.normalizeClass([{"!border-hy-border-1 !shadow-hy-border-1":t.unref(s)===b.mediaFileId},"max-w-[70%] h-[28px] flex items-center p-[6px] box-border mt-1 rounded-[0_4px_4px] justify-between relative z-10 cursor-pointer border border-hy-border-2 shadow-[0_0_4px_0] shadow-hy-dialog-bg-1"]),onClick:w=>t.unref(c)(b.mediaFileId)},[t.createElementVNode("div",Ptt,[b.fileDtmEnd?(t.openBlock(),t.createElementBlock("span",Itt,t.toDisplayString(b.fileDtmEnd.split(" ")[1]),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Mtt,t.toDisplayString(b.audioLength)+"” ",1)],14,Dtt),t.unref(s)===b.mediaFileId&&t.unref(l)?(t.openBlock(),t.createElementBlock("div",{key:0,class:"ml-1 mt-1 rounded-[4px] p-[4px_8px] bg-hy-dialog-bg-3/50 text-hy-text-secondary text-xs scale-90 cursor-pointer",onClick:w=>t.unref(c)(b.mediaFileId)},t.toDisplayString(t.unref(r)("continuePlaying")),9,Att)):t.createCommentVNode("",!0)])])]))],8,btt))),128))],512)],8,mtt)),[[_,t.unref(i)]])}}});function Rtt(){const e=t.ref({}),n=t.ref(!1),o=t.ref(null),r=t.ref(0),i=t.ref(!1),a=t.ref([]),s=t.ref(!1),l=t.ref(!1),c=t.ref();async function d(){await ett({groupId:o.value,taskId:e.value.id})}function f(){var v;a.value.length!==0&&((v=c.value)==null||v.orgGroupInsertTempFn([...a.value],{openRecording:1}).then(x=>{o.value=x,t.nextTick(()=>{d()}),h(!1)}).catch(()=>{o.value=null,n.value=!0,h(!1)}))}function u(v=[]){a.value=v,h(!1),e.value.checkStyle===2&&f()}function p(v={}){const{beReceiveNum:x=0,receivingNum:T=0,finishNum:D=0,notFinishNum:V=0,offLineNum:R=0,intercomGroupTemNum:q=0}=v;e.value.beReceiveNum=x,e.value.receivingNum=T,e.value.finishNum=D,e.value.notFinishNum=V,e.value.offLineNum=R,e.value.intercomGroupTemNum=q}function h(v){i.value=v}function g(){s.value=!s.value}async function m(v){const{code:x,data:T={}}=await d7({id:v});x===200&&(e.value={...T},e.value.checkNum===0&&u([]),e.value.checkStyle===2&&(e.value.actionType=null),_(!0))}function _(v){l.value=v}function b(){}function C(v){if(l.value){ft.warning(le("currentlySpotCheckInProgressPleaseProcessLater"));return}o.value=null,n.value=!1,e.value={},h(!0),m(v)}function w(){l.value=!1}function E(){ll({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:le("cancelSpotCheck"),tipsContent:`<div><p>${le("confirmToCancelThisSpotCheck")}?</p><p>${this.$t("cancelMidwayYouWillNotBeAbleToRetrieveOrViewAnyInformationOfThisSpotCheck")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:le("returnToSpotCheck"),submitBtnText:le("cancelSpotCheck"),submitBtnType:"danger"},()=>{S(3)})}function N(){let v=le("afterTheCheck,YouCanViewTheSpotCheckInformationInTheSpotCheckModule");(e.value.beReceiveNum!==0||e.value.receivingNum!==0)&&(v=le("thereAreStillDevicesInTheReceivingProcessTheSystemWillMarkTheseDevicesAsUnfinished")),ll({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:le("endSpotCheck"),tipsContent:`<div><p>${le("confirmToEndThisSpotCheck")}?</p><p>${v}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:le("returnToSpotCheck"),submitBtnText:le("endSpotCheck")},()=>{S(2)})}async function S(v){var T;const{code:x}=await Yet({taskId:e.value.id,checkStatus:v});x===200&&(v===2&&(ft.success(le("theSpotCheckHasBeenCompletedYouCanViewDetailedInformationRecordsInTheSpotCheckModule")),e.value.checkStyle===2&&o.value&&((T=c.value)==null||T.onClose())),w())}return{form:e,groupType:n,groupId:o,dragLevel:r,loading:i,taskDeviceList:a,msgContentType:s,dialogVisible:l,multiPersonIntercomSpotCheckRef:c,taskGroupBind:d,orgGroupInsertTemp:f,spotCheckTaskDeviceChange:u,spotCheckTaskDeviceCountStatus:p,setLoading:h,setMsgContentType:g,setDialogVisible:_,show:C,close:w,onClose:E,onSubmit:N,taskEnd:S,setDragLevel:b,$t:le}}const Btt=e=>(t.pushScopeId("data-v-e246ad8e"),e=e(),t.popScopeId(),e),Ftt={class:"el-dialog__header !p-0"},ztt={class:"el-dialog__body !p-[8px_0px_8px] sideFoot_content h-[700px] flex flex-col text-main text-xs"},Utt={class:"h-[40px] flex items-center px-4 mb-1"},jtt={class:"font-bold bg-hy-main/20 border border-hy-border-1/50 rounded px-2 flex items-center justify-center h-[24px] flex-shrink-0"},Wtt={key:0,class:"ml-3"},Htt={class:"text-hy-text-secondary"},Gtt={key:1,class:"ml-3"},Ktt={class:"text-hy-text-secondary"},Ytt={class:"font-bold"},qtt=["element-loading-text"],Ztt={key:0,class:"w-full h-full flex flex-col box-border"},Jtt={class:"flex-shrink-0 mb-3 px-4"},Xtt={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},Qtt={class:"flex w-full"},ent={class:"flex-shrink-0"},tnt={class:"text-right font-bold flex-grow w-0"},nnt={class:"flex w-full text-hy-text-secondary"},ont={class:"flex-shrink-0"},rnt={class:"text-right flex-grow w-0"},ant={class:"flex w-full text-hy-text-secondary"},int={class:"flex-shrink-0"},snt={class:"text-right flex-grow w-0"},lnt={class:"text-xs p-2 leading-[22px]"},cnt={class:"flex w-full"},dnt={class:"flex-shrink-0 tracking-[4px]"},unt={class:"text-right font-bold flex-grow w-0"},fnt={class:"flex w-full"},pnt={class:"flex-shrink-0 tracking-[4px]"},hnt={class:"text-right font-bold flex-grow w-0"},mnt={class:"flex w-full"},gnt={class:"flex-shrink-0 tracking-[4px]"},ynt={class:"text-right font-bold flex-grow w-0 text-hy-success"},_nt={class:"flex w-full"},bnt={class:"flex-shrink-0 tracking-[4px]"},wnt={class:"text-right font-bold flex-grow w-0 text-hy-danger"},Cnt={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},Ent={class:"flex-1 flex"},knt={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},vnt={class:"flex-grow w-0 text-center truncate"},Snt={class:"flex-1 flex"},Nnt={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},xnt={class:"flex-grow w-0 text-center text-hy-success truncate"},Tnt={class:"flex-1 flex"},Lnt={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},Ont={class:"flex-grow w-0 text-center text-hy-danger truncate"},$nt={class:"w-full px-2 leading-[22px] box-border rounded bg-hy-dialog-bg-3 h-[28px] flex items-center justify-between"},Dnt={class:"flex"},Pnt={key:0,class:"ml-2 bg-hy-dialog-bg-1 h-[22px] px-2 rounded"},Int={class:"w-[400px]"},Mnt={class:""},Ant={key:0,class:"box-border flex-grow h-0 flex px-2"},Vnt={class:"flex-grow w-0 px-2 overflow-x-hidden overflow-y-auto h-full"},Rnt={key:0,class:"w-[66%] box-border pr-2"},Bnt={class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},Fnt={key:1,class:"flex-grow h-0 px-4"},znt={class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},Unt={class:"r-f tac flex text-center"},jnt={class:"mt-3"},Wnt={class:"mt-1"},Hnt={key:1,class:"w-full h-full"},Gnt={key:0,class:"w-full h-full flex px-4 box-border"},Knt={class:"flex flex-col w-[33%]"},Ynt={class:"pr-2"},qnt={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},Znt={class:"flex w-full"},Jnt={class:"flex-shrink-0"},Xnt={class:"text-right font-bold flex-grow w-0"},Qnt={class:"flex w-full text-hy-text-secondary"},eot={class:"flex-shrink-0"},tot={class:"text-right flex-grow w-0"},not={class:"flex w-full text-hy-text-secondary"},oot={class:"flex-shrink-0"},rot={class:"text-right flex-grow w-0"},aot={class:"text-xs p-2 leading-[22px]"},iot={key:0,class:"flex w-full"},sot={class:"flex-shrink-0 tracking-[4px]"},lot={class:"text-right font-bold flex-grow w-0"},cot={key:1,class:"flex w-full"},dot={class:"flex-shrink-0 tracking-[4px]"},uot={class:"text-right font-bold flex-grow w-0"},fot={class:"flex w-full"},pot={class:"flex-shrink-0 tracking-[4px]"},hot={class:"text-right font-bold flex-grow w-0 text-hy-success"},mot={class:"flex w-full"},got={class:"flex-shrink-0 tracking-[4px]"},yot={class:"text-right font-bold flex-grow w-0 text-hy-danger"},_ot={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},bot={class:"flex-1 flex"},wot={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},Cot={class:"flex-grow w-0 text-center truncate"},Eot={class:"flex-1 flex"},kot={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},vot={class:"flex-grow w-0 text-center text-hy-success truncate"},Sot={class:"flex-1 flex"},Not={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},xot={class:"flex-grow w-0 text-center text-hy-danger truncate"},Tot={class:"flex-grow h-0 mt-2 overflow-x-hidden overflow-y-auto pr-2 box-border"},Lot={class:"flex-grow w-0 flex flex-col"},Oot=Btt(()=>t.createElementVNode("div",{class:"flex-grow h-0 overflow-hidden"},null,-1)),$ot={key:0,class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-backgroundv2 box-border border border-hy-border-2 rounded"},Dot={class:"r-f tac flex text-center"},Pot={class:"mt-5"},Iot={key:1,class:"flex-grow h-full px-4"},Mot={class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},Aot={class:"r-f tac flex text-center"},Vot={class:"mt-3"},Rot={class:"mt-1"},Bot={class:"h-[50px] flex items-center justify-between flex-shrink-0 px-4 mt-1"},Fot={class:"text-hy-text-secondary text-xs"},zot={key:0},Uot={key:1},jot={key:0},Wot={key:1},Hot={key:2},Got=Po(t.defineComponent({__name:"view-spot-check",setup(e){const{dialogVisible:n,dragLevel:o,setDragLevel:r,form:i,$t:a,loading:s,setMsgContentType:l,msgContentType:c,spotCheckTaskDeviceChange:d,spotCheckTaskDeviceCountStatus:f,groupType:u,onClose:p,onSubmit:h}=Rtt();return(g,m)=>{const _=t.resolveComponent("svg-icon"),b=t.resolveComponent("el-popover"),C=t.resolveComponent("el-col"),w=Get,E=t.resolveComponent("el-icon"),N=t.resolveComponent("el-tooltip"),S=t.resolveComponent("el-row"),v=CL,x=t.resolveComponent("el-button"),T=t.resolveDirective("loading");return t.unref(n)?(t.openBlock(),t.createElementBlock("div",{key:0,class:"el-dialog sideFootBox",style:t.normalizeStyle([{width:"830px"},{"z-index":t.unref(o)}]),onClick:m[2]||(m[2]=(...D)=>t.unref(r)&&t.unref(r)(...D))},[t.createElementVNode("div",Ftt,[t.createElementVNode("div",ztt,[t.createElementVNode("div",Utt,[t.createElementVNode("div",jtt,t.toDisplayString(t.unref(a)("initiate"))+t.toDisplayString(t.unref(i).checkStyle===1?t.unref(a)("message"):t.unref(a)("call"))+t.toDisplayString(t.unref(a)("spotCheck")),1),t.unref(i).checkStyle===1?(t.openBlock(),t.createElementBlock("div",Wtt,[t.createElementVNode("span",Htt,t.toDisplayString(t.unref(a)("responseMethod")),1),t.createElementVNode("span",null,t.toDisplayString(t.unref(i).actionType===1?t.unref(a)("punchIn"):t.unref(a)("reply")),1)])):t.createCommentVNode("",!0),t.unref(i).checkStyle===1?(t.openBlock(),t.createElementBlock("div",Gtt,[t.createElementVNode("span",Ktt,t.toDisplayString(t.unref(a)("responseTime")),1),t.createElementVNode("span",null,[t.createElementVNode("span",Ytt,t.toDisplayString(t.unref(i).actionTime),1),t.createTextVNode(" "+t.toDisplayString(t.unref(a)("second")),1)])])):t.createCommentVNode("",!0)]),t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":t.unref(a)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0"},[t.unref(i).checkStyle===1?(t.openBlock(),t.createElementBlock("div",Ztt,[t.createElementVNode("div",Jtt,[t.createVNode(S,{gutter:8},{default:t.withCtx(()=>[t.createVNode(C,{span:8},{default:t.withCtx(()=>[t.createVNode(b,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:t.withCtx(()=>[t.createElementVNode("div",Cnt,[t.createElementVNode("div",Ent,[t.createElementVNode("div",knt,[t.createVNode(_,{name:"base-every-day-many-people","class-name":"svgBox w-[16px] h-[16px]"})]),t.createElementVNode("div",vnt,t.toDisplayString(t.unref(i).checkNum||"- -"),1)]),t.createElementVNode("div",Snt,[t.createElementVNode("div",Nnt,[t.createVNode(_,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),t.createElementVNode("div",xnt,t.toDisplayString(t.unref(i).finishNum||"- -"),1)]),t.createElementVNode("div",Tnt,[t.createElementVNode("div",Lnt,[t.createVNode(_,{name:"base-danger-state","class-name":"svgBox w-[16px] h-[16px]"})]),t.createElementVNode("div",Ont,t.toDisplayString(t.unref(i).notFinishNum||"- -"),1)])])]),default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("ul",Xtt,[t.createElementVNode("li",Qtt,[t.createElementVNode("span",ent,t.toDisplayString(t.unref(a)("numberOfPeopleToBeChecked")),1),t.createElementVNode("div",tnt,t.toDisplayString(t.unref(i).checkNum||"- -"),1)]),t.createElementVNode("li",nnt,[t.createElementVNode("span",ont,t.toDisplayString(t.unref(a)("offlineStatus")),1),t.createElementVNode("div",rnt,t.toDisplayString(t.unref(i).offLineNum||"- -"),1)]),t.createElementVNode("li",ant,[t.createElementVNode("span",int,t.toDisplayString(t.unref(a)("temporaryGroups")),1),t.createElementVNode("div",snt,t.toDisplayString(t.unref(i).intercomGroupTemNum||"- -"),1)])]),t.createElementVNode("ul",lnt,[t.createElementVNode("li",cnt,[t.createElementVNode("span",dnt,t.toDisplayString(t.unref(a)("waitingToReceive")),1),t.createElementVNode("div",unt,t.toDisplayString(t.unref(i).beReceiveNum||"- -"),1)]),t.createElementVNode("li",fnt,[t.createElementVNode("span",pnt,t.toDisplayString(t.unref(a)("receiving")),1),t.createElementVNode("div",hnt,t.toDisplayString(t.unref(i).receivingNum||"- -"),1)]),t.createElementVNode("li",mnt,[t.createElementVNode("span",gnt,t.toDisplayString(t.unref(a)("completed")),1),t.createElementVNode("div",ynt,t.toDisplayString(t.unref(i).finishNum||"- -"),1)]),t.createElementVNode("li",_nt,[t.createElementVNode("span",bnt,t.toDisplayString(t.unref(a)("uncompleted")),1),t.createElementVNode("div",wnt,t.toDisplayString(t.unref(i).notFinishNum||"- -"),1)])])])]),_:1})]),_:1}),t.createVNode(C,{span:16},{default:t.withCtx(()=>[t.createElementVNode("div",$nt,[t.createElementVNode("div",Dnt,[t.createTextVNode(t.toDisplayString(t.unref(a)("messageContent"))+" ",1),t.unref(i).playMsg===1?(t.openBlock(),t.createElementBlock("div",Pnt," TTS"+t.toDisplayString(t.unref(a)("textToSpeech")),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"css-text-no-select cursor-pointer hover:opacity-60",onClick:m[1]||(m[1]=(...D)=>t.unref(l)&&t.unref(l)(...D))},[t.createVNode(N,{modelValue:t.unref(c),"onUpdate:modelValue":m[0]||(m[0]=D=>t.isRef(c)?c.value=D:null),class:"item",placement:"bottom-end",trigger:"manual"},{content:t.withCtx(()=>[t.createElementVNode("div",Int,t.toDisplayString(t.unref(i).msgContent),1)]),default:t.withCtx(()=>[t.createElementVNode("span",Mnt,[t.createTextVNode(t.toDisplayString(t.unref(a)("viewContent"))+" ",1),t.createVNode(E,{class:t.normalizeClass(["text-sm duration-500",{"-rotate-90":t.unref(c)}])},{default:t.withCtx(()=>[t.createVNode(w)]),_:1},8,["class"])])]),_:1},8,["modelValue"])])])]),_:1})]),_:1})]),t.unref(i).checkNum!==0?(t.openBlock(),t.createElementBlock("div",Ant,[t.createElementVNode("div",Vnt,[t.unref(i).id?(t.openBlock(),t.createBlock(EL,{key:0,ref:"spotCheckTaskDeviceRef","params-span":t.unref(i).actionType===1?8:24,form:t.unref(i),onChange:t.unref(d),onOnCountStatus:t.unref(f)},null,8,["params-span","form","onChange","onOnCountStatus"])):t.createCommentVNode("",!0)]),t.unref(i).actionType===2?(t.openBlock(),t.createElementBlock("div",Rnt,[t.createElementVNode("div",Bnt,[t.unref(i).id?(t.openBlock(),t.createBlock(Vtt,{key:0,ref:"talkbackReplyRef","task-id":t.unref(i).id},null,8,["task-id"])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",Fnt,[t.createElementVNode("div",znt,[t.createElementVNode("div",Unt,[t.createVNode(_,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),t.createElementVNode("div",jnt,t.toDisplayString(t.unref(a)("theDeviceYouAreSpotCheckingIsOffline")),1),t.createElementVNode("div",Wnt,t.toDisplayString(t.unref(a)("cannotSupportThisSpotCheck")),1)])])]))])):(t.openBlock(),t.createElementBlock("div",Hnt,[t.unref(i).checkNum!==0?(t.openBlock(),t.createElementBlock("div",Gnt,[t.createElementVNode("div",Knt,[t.createElementVNode("div",Ynt,[t.createVNode(b,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:t.withCtx(()=>[t.createElementVNode("div",_ot,[t.createElementVNode("div",bot,[t.createElementVNode("div",wot,[t.createVNode(_,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),t.createElementVNode("div",Cot,t.toDisplayString(t.unref(i).checkNum||"- -"),1)]),t.createElementVNode("div",Eot,[t.createElementVNode("div",kot,[t.createVNode(_,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),t.createElementVNode("div",vot,t.toDisplayString(t.unref(i).finishNum||"- -"),1)]),t.createElementVNode("div",Sot,[t.createElementVNode("div",Not,[t.createVNode(_,{name:"base-danger-state","class-name":"w-[16px] h-[16px]"})]),t.createElementVNode("div",xot,t.toDisplayString(t.unref(i).notFinishNum||"- -"),1)])])]),default:t.withCtx(()=>[t.createElementVNode("ul",qnt,[t.createElementVNode("li",Znt,[t.createElementVNode("span",Jnt,t.toDisplayString(t.unref(a)("numberOfPeopleToBeChecked")),1),t.createElementVNode("div",Xnt,t.toDisplayString(t.unref(i).checkNum||"- -"),1)]),t.createElementVNode("li",Qnt,[t.createElementVNode("span",eot,t.toDisplayString(t.unref(a)("offlineStatus")),1),t.createElementVNode("div",tot,t.toDisplayString(t.unref(i).offLineNum||"- -"),1)]),t.createElementVNode("li",not,[t.createElementVNode("span",oot,t.toDisplayString(t.unref(a)("temporaryGroups")),1),t.createElementVNode("div",rot,t.toDisplayString(t.unref(i).intercomGroupTemNum||"- -"),1)])]),t.createElementVNode("ul",aot,[t.unref(i).checkStyle===1?(t.openBlock(),t.createElementBlock("li",iot,[t.createElementVNode("span",sot,t.toDisplayString(t.unref(a)("waitingToReceive")),1),t.createElementVNode("div",lot,t.toDisplayString(t.unref(i).beReceiveNum||"- -"),1)])):t.createCommentVNode("",!0),t.unref(i).checkStyle===1?(t.openBlock(),t.createElementBlock("li",cot,[t.createElementVNode("span",dot,t.toDisplayString(t.unref(a)("receiving")),1),t.createElementVNode("div",uot,t.toDisplayString(t.unref(i).receivingNum||"- -"),1)])):t.createCommentVNode("",!0),t.createElementVNode("li",fot,[t.createElementVNode("span",pot,t.toDisplayString(t.unref(a)("completed")),1),t.createElementVNode("div",hot,t.toDisplayString(t.unref(i).finishNum||"- -"),1)]),t.createElementVNode("li",mot,[t.createElementVNode("span",got,t.toDisplayString(t.unref(a)("uncompleted")),1),t.createElementVNode("div",yot,t.toDisplayString(t.unref(i).notFinishNum||"- -"),1)])])]),_:1})]),t.createElementVNode("div",Tot,[t.unref(i).id?(t.openBlock(),t.createBlock(EL,{key:0,ref:"spotCheckTaskDeviceRef","params-span":24,form:t.unref(i),onChange:t.unref(d),onOnCountStatus:t.unref(f)},null,8,["form","onChange","onOnCountStatus"])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Lot,[Oot,t.unref(u)?(t.openBlock(),t.createElementBlock("div",$ot,[t.createElementVNode("div",Dot,[t.createVNode(_,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"}),t.createElementVNode("div",Pot,t.toDisplayString(t.unref(a)("groupMemberStatusAbnormalityPreventsSpotCheck")),1)])])):t.createCommentVNode("",!0)])])):(t.openBlock(),t.createElementBlock("div",Iot,[t.createElementVNode("div",Mot,[t.createElementVNode("div",Aot,[t.createVNode(_,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),t.createElementVNode("div",Vot,t.toDisplayString(t.unref(a)("theDeviceYouAreSpotCheckingIsOffline")),1),t.createElementVNode("div",Rot,t.toDisplayString(t.unref(a)("cannotSupportThisSpotCheck")),1)])])]))]))],8,qtt)),[[T,t.unref(s)]]),t.createElementVNode("div",Bot,[t.createElementVNode("div",Fot,[t.createElementVNode("div",null,[t.createVNode(E,{class:"mr-1 text-sm"},{default:t.withCtx(()=>[t.createVNode(v)]),_:1}),t.unref(i).checkType===2?(t.openBlock(),t.createElementBlock("span",zot,t.toDisplayString(t.unref(a)("randomCheck")),1)):(t.openBlock(),t.createElementBlock("span",Uot,[t.unref(i).checkScope===1?(t.openBlock(),t.createElementBlock("span",jot,t.toDisplayString(t.unref(a)("regionalSpotCheck")),1)):t.unref(i).checkScope===2?(t.openBlock(),t.createElementBlock("span",Wot,t.toDisplayString(t.unref(a)("departmentSpotCheck")),1)):t.unref(i).checkScope===3?(t.openBlock(),t.createElementBlock("span",Hot,t.toDisplayString(t.unref(a)("deviceSpotCheck")),1)):t.createCommentVNode("",!0)]))])]),t.createElementVNode("div",null,[t.createVNode(x,{type:"primary",class:"button_default buttonBox min-w-[100px]",onClick:t.unref(p)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("cancel")),1)]),_:1},8,["onClick"]),t.createVNode(x,{class:"button_function buttonBox min-w-[100px]",onClick:t.unref(h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("complete")),1)]),_:1},8,["onClick"])])])])])],4)):t.createCommentVNode("",!0)}}}),[["__scopeId","data-v-e246ad8e"]]);function Kot({emit:e}){const n=t.ref(!1);t.ref([]);const o=t.ref([]),r=t.ref("");t.ref(400),t.ref(null);const i=t.ref(null);t.ref();const a=t.ref();t.watch(()=>r.value,p=>{r.value=p.replace(/\s/g,"")});function s(){c([]),a.value.setSelectedList(o.value),d(!1)}function l(p){o.value.splice(p,1),a.value.setSelectedList(o.value)}function c(p=[]){o.value=[...p]}function d(p){n.value=typeof p=="boolean"?p:!n.value,e("on-selectedDataList",o.value)}async function f(){const p=await tB({spotCheckSupport:1});if(p.code===200)return p.data}function u(p){o.value=p.selectedDataList,e("on-selected-data-list",o.value)}return{setSelectedDataList:c,getData:f,abortController:i,selectedDataList:o,clearSelectedData:s,deleteSelectList:l,onSelectedData:u,hyOrgTreeRef:a}}const Yot={class:"flex flex-col w-full h-full"},qot={class:"flex justify-between items-center h-[40px]"},Zot={class:"flex-1"},Jot={class:"text-hy-text-secondary ml-3"},Xot={class:"flex-1 flex items-center justify-end"},Qot={class:"text-xs"},ert={class:"flex items-center clickBox cursor-pointer"},trt={class:"text-hy-text-primary"},nrt=["element-loading-text"],ort={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},rrt={class:"flex-grow h-0 w-full equipment vbtTable"},art={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col ml-2"},irt={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},srt={class:"r-f tac flex flex-col items-center justify-center"},lrt={class:"mt-3"},crt={class:"flex-grow w-0 pl-2 box-border truncate"},drt={class:"flex-shrink-0"},urt=t.defineComponent({__name:"select-depart-ment",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(e,{expose:n,emit:o}){const r=e,i=o,{setSelectedDataList:a,getData:s,abortController:l,selectedDataList:c,clearSelectedData:d,deleteSelectList:f,onSelectedData:u,hyOrgTreeRef:p}=Kot({emit:i});return t.onMounted(()=>{a(r.initSelectedDataList)}),t.onUnmounted(()=>{l.value&&l.value.abort()}),n({setSelectedDataList:a,clearSelectedData:d,getData:s}),(h,g)=>{const m=t.resolveComponent("el-button"),_=t.resolveComponent("svg-icon"),b=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",Yot,[t.createElementVNode("div",qot,[t.createElementVNode("div",Zot,[t.createTextVNode(t.toDisplayString(t.unref(le)("allDepartments")),1),t.createElementVNode("span",Jot,t.toDisplayString(t.unref(le)("doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt")),1)]),t.createElementVNode("div",Xot,[t.withDirectives(t.createVNode(m,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:t.unref(d)},{default:t.withCtx(()=>[t.createElementVNode("span",Qot,t.toDisplayString(t.unref(le)("clear")),1)]),_:1},8,["onClick"]),[[t.vShow,t.unref(c).length!==0]]),t.createElementVNode("div",ert,[t.createElementVNode("span",null,[t.createTextVNode(t.toDisplayString(t.unref(le)("selected"))+" ",1),t.createElementVNode("span",trt,t.toDisplayString(t.unref(c).length),1),t.createTextVNode(" "+t.toDisplayString(t.unref(le)("individual-0")),1)])])])]),t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":t.unref(le)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[t.createElementVNode("div",ort,[t.createElementVNode("div",rrt,[t.createVNode(l7,{ref_key:"hyOrgTreeRef",ref:p,"show-checkbox":!0,"parent-checkbox":!1,"get-data":t.unref(s),"default-checked-list":t.unref(c),onOnSelectedData:t.unref(u)},null,8,["get-data","default-checked-list","onOnSelectedData"])])]),t.createElementVNode("ul",art,[t.withDirectives(t.createElementVNode("li",irt,[t.createElementVNode("div",srt,[t.createVNode(_,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),t.createElementVNode("div",lrt,t.toDisplayString(t.unref(le)("youHaveNotSelectedADepartmentYet")),1)])],512),[[t.vShow,t.unref(c).length===0]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),(C,w)=>(t.openBlock(),t.createElementBlock("li",{key:`${C.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border clickBox border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[t.createElementVNode("div",crt,t.toDisplayString(C.companyName||C.groupName||C.orgName),1),t.createElementVNode("div",drt,[t.createVNode(ra,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:t.unref(le)("delete"),onClick:E=>t.unref(f)(w)},null,8,["tips","onClick"])])]))),128))])],8,nrt)),[[b,!1]])])}}});function frt({emit:e}){const n=t.ref(!1),o=t.ref([]),r=t.ref([]),i=t.ref(""),a=t.ref(null),s=t.ref(null),l=t.ref();t.watch(()=>i.value,_=>{i.value=_.replace(/\s/g,"")});function c(){d([]),l.value.setSelectedList(o.value),e("on-selected-data-list",o.value)}function d(_=[]){o.value=[..._]}function f(_){if(!_.disabled){if(_.type===3){const b=o.value.findIndex(C=>C.deviceId===_.deviceId);b===-1?o.value.push({..._}):o.value.splice(b,1)}else{clearTimeout(a.value);const b={nonExistent:[],existent:[]},C=_.childrenDeviceList||[];C.length&&(C.forEach(w=>{r.value.findIndex(N=>N.deviceId===w.deviceId)===-1&&(o.value.findIndex(S=>S.deviceId===w.deviceId)===-1?b.nonExistent.push({...w}):b.existent.push({...w}))}),b.nonExistent.length?b.nonExistent.forEach(w=>{o.value.push({...w})}):b.existent.forEach(w=>{const E=o.value.findIndex(N=>N.deviceId===w.deviceId);o.value.splice(E,1)}))}e("on-selected-data-list",[...o.value])}}function u(){s.value&&s.value.abort(),s.value=new AbortController}async function p(){n.value=!0;const _=await tB({spotCheckSupport:1});return u(),_.data}function h(_,b){const C=[{type:1,svgName:"tree-icon-law-enforcement"},{type:3,svgName:"tree-icon-dispatching-desk"},{type:4,svgName:"tree-icon-duty-desk"},{type:5,svgName:"tree-icon-phone"},{type:6,svgName:"tree-icon-control-the-ball"},{type:7,svgName:"tree-icon-ipc"},{type:8,svgName:"tree-icon-safety-hat"},{type:9,svgName:"tree-icon-flashlight"},{type:10,svgName:"tree-icon-work-card"},{type:11,svgName:"tree-icon-vehicle"},{type:12,svgName:"tree-icon-uav"},{type:13,svgName:"tree-icon-ipc"},{type:14,svgName:"tree-icon-obd"}],w=C.findIndex(E=>E.type===_);return w!==-1?g(C[w],b):"tree-icon-walkie-talkie"}function g(_,b){return _.type===7||_.type===13?b===1?_.svgName:`${_}-off-line`:_.svgName}function m(_){o.value=_.selectedDataList,e("on-selected-data-list",o.value)}return{setSelectedDataList:d,getData:p,abortController:s,selectedDataList:o,clearSelectedData:c,deviceClick:f,checkDeviceTypeFn:h,onSelectedData:m,hyDeviceTreeRef:l}}const prt={class:"flex flex-col w-full h-full"},hrt={class:"flex justify-between items-center h-[40px]"},mrt={class:"flex mr-2"},grt={class:"flex items-center"},yrt={class:"text-xs"},_rt={class:"flex items-center clickBox cursor-pointer"},brt={class:"text-hy-text-primary"},wrt=["element-loading-text"],Crt={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},Ert={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col ml-2"},krt={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},vrt={class:"flex flex-col justify-center items-center"},Srt={class:"mt-3"},Nrt={class:"flex-grow w-0 pl-2 flex box-border"},xrt={class:"truncate flex-grow w-0"},Trt={class:"select-none truncate mx-[4px] text-hy-text-main"},Lrt={class:"flex-shrink-0"},Ort=t.defineComponent({__name:"select-device",props:{onlineStateFlag:{default:1},initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(e,{expose:n,emit:o}){const r=e,i=o,{setSelectedDataList:a,getData:s,abortController:l,selectedDataList:c,clearSelectedData:d,deviceClick:f,checkDeviceTypeFn:u,onSelectedData:p,hyDeviceTreeRef:h}=frt({emit:i});return t.onMounted(()=>{a(r.initSelectedDataList),s()}),t.onUnmounted(()=>{l.value&&l.value.abort()}),n({setSelectedDataList:a,clearSelectedData:d,getData:s}),(g,m)=>{const _=t.resolveComponent("el-button"),b=t.resolveComponent("svg-icon"),C=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",prt,[t.createElementVNode("div",hrt,[t.createElementVNode("div",mrt,t.toDisplayString(t.unref(le)("allDevices")),1),t.createElementVNode("div",grt,[t.withDirectives(t.createVNode(_,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:t.unref(d)},{default:t.withCtx(()=>[t.createElementVNode("span",yrt,t.toDisplayString(t.unref(le)("clear")),1)]),_:1},8,["onClick"]),[[t.vShow,t.unref(c).length!==0]]),t.createElementVNode("div",_rt,[t.createElementVNode("span",null,[t.createTextVNode(t.toDisplayString(t.unref(le)("selected"))+" ",1),t.createElementVNode("span",brt,t.toDisplayString(t.unref(c).length),1),t.createTextVNode(" "+t.toDisplayString(t.unref(le)("individual-0")),1)])])])]),t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":t.unref(le)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[t.createElementVNode("div",Crt,[t.createVNode(s7,{ref_key:"hyDeviceTreeRef",ref:h,"item-size":36,"get-data":t.unref(s),"show-online-only":r.onlineStateFlag===1,"show-checkbox":!0,"hide-org-no-data":!0,"parent-checkbox":!1,onOnSelectedData:t.unref(p)},null,8,["get-data","show-online-only","onOnSelectedData"])]),t.createElementVNode("ul",Ert,[t.withDirectives(t.createElementVNode("li",krt,[t.createElementVNode("div",vrt,[t.createVNode(b,{name:"base-no-data","class-name":"!w-[50px] !h-[50px]"}),t.createElementVNode("div",Srt,t.toDisplayString(t.unref(le)("youHaveNotSelectedADeviceYet")),1)])],512),[[t.vShow,t.unref(c).length===0]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),w=>(t.openBlock(),t.createElementBlock("li",{key:`${w.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border cursor-pointer border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[t.createElementVNode("div",Nrt,[t.createVNode(b,{name:t.unref(u)(w.deviceType||w.type,w.onlineState),"class-name":"w-[16px] h-[16px]",class:t.normalizeClass(w.onlineState===1?"text-hy-text-main":"text-hy-info")},null,8,["name","class"]),t.createElementVNode("div",xrt,[t.createElementVNode("span",Trt,t.toDisplayString(w.devName),1)])]),t.createElementVNode("div",Lrt,[t.createVNode(ra,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:t.unref(le)("delete"),onClick:E=>t.unref(f)(w)},null,8,["tips","onClick"])])]))),128))])],8,wrt)),[[C,!1]])])}}});function $rt({emit:e}){const n=t.ref(!1),o=t.ref(!1),r=t.ref(400),i=t.ref({renderSize:30,offsetSize:10}),a=t.ref([]),s=t.ref([]),l=t.ref("");t.ref(400);const c=t.ref(null);t.watch(()=>l.value,C=>{l.value=C.replace(/\s/g,"")});function d(C=[]){C.length!==0&&(C.forEach(w=>{s.value.findIndex(N=>N.id===w.id)===-1&&s.value.push(w)}),t.nextTick(()=>{n.value=s.value.length===a.value.length,e("on-selected-data-list",s.value)}))}function f(C=[]){s.value=[...C]}function u(){return[...s.value]}function p(){n.value=!n.value,n.value?s.value=[...a.value]:s.value=[],e("on-selected-data-list",s.value)}function h(C){return s.value.findIndex(E=>E.id===C.id)!==-1?"is-checked":""}async function g(C){const w=s.value.findIndex(E=>E.id===C.id);w===-1?m(C):_(w)}function m(C){s.value.push(C),n.value=s.value.length===a.value.length,e("on-selected-data-list",s.value)}function _(C){s.value.splice(C,1),n.value=s.value.length===a.value.length,e("on-selected-data-list",s.value)}async function b(){o.value=!0;const{code:C,data:w=[]}=await eet({query:l.value,spotCheckSupport:1,onlineState:1});C===200&&(a.value=[],w.forEach(E=>{E.deviceList.length!==0?a.value.unshift(E):a.value.push(E)}),o.value=!1)}return{checkAll:n,loading:o,treeHeight:r,scrollYRenderConfig:i,deviceList:a,selectedDataList:s,filterValue:l,timeOut:c,addSelectedDataList:d,setSelectedDataList:f,getSelectedDataList:u,setCheckAll:p,judgeSelectedFn:h,deviceClick:g,addSelectList:m,deleteSelectList:_,getData:b}}const Drt={class:"flex flex-col w-full h-full"},Prt={class:"flex justify-between items-center h-[30px]"},Irt={class:"el-checkbox !mr-2"},Mrt=[t.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],Art={class:"text-hy-text-primary"},Vrt=["element-loading-text"],Rrt={class:"flex-1 bg-hy-dialog-bg-1 rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col"},Brt={class:"flex items-center justify-center p-[8px_8px_4px]"},Frt={class:"text-hy-text-main"},zrt={class:"flex-grow h-0 w-full px-2 box-border overflow-y-scroll overflow-x-hidden"},Urt=["onClick"],jrt={class:"flex items-center justify-center"},Wrt={class:"el-checkbox relative !mr-[6px]"},Hrt=[t.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],Grt={class:"treeDepartment cursor_pointer flex items-center justify-between w-full text-[14px] font-bold text-hy-text-main"},Krt={class:"r-f w_100vh flex w-full"},Yrt={class:"flex-grow w-0 over_one_line truncate"},qrt={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded shadow-[0_0_10px_0_inset] shadow-hy-dialog-bg-3 flex flex-col ml-2"},Zrt={class:"h-full bg-hy-dialog-bg-2 border rounded px-2 box-border border-hy-bg-2 flex justify-center text-hy-text-secondary items-center"},Jrt={class:"r-f tac flex flex-col justify-center items-center"},Xrt={class:"mt-3"},Qrt={class:"flex-grow w-0 pl-2 box-border truncate"},eat={class:"flex-shrink-0"},tat=t.defineComponent({__name:"select-electronic-fence",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(e,{expose:n,emit:o}){const r=e,i=o,{setSelectedDataList:a,getData:s,setCheckAll:l,checkAll:c,selectedDataList:d,loading:f,filterValue:u,deviceList:p,deviceClick:h,judgeSelectedFn:g,deleteSelectList:m}=$rt({emit:i});return t.onMounted(()=>{a(r.initSelectedDataList),s()}),n({setSelectedDataList:a,getData:s}),(_,b)=>{const C=t.resolveComponent("svg-icon"),w=t.resolveComponent("el-button"),E=t.resolveComponent("el-input"),N=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",Drt,[t.createElementVNode("div",Prt,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("electronicFence")),1),t.createElementVNode("div",{class:"flex items-center clickBox",onClick:b[0]||(b[0]=(...S)=>t.unref(l)&&t.unref(l)(...S))},[t.createElementVNode("div",Irt,[t.createElementVNode("span",{class:t.normalizeClass([{"is-checked":t.unref(c)},"el-checkbox__input"])},Mrt,2)]),t.createElementVNode("span",null,[t.createTextVNode(t.toDisplayString(t.unref(le)("selected"))+" ",1),t.createElementVNode("span",Art,t.toDisplayString(t.unref(d).length),1),t.createTextVNode(" "+t.toDisplayString(t.unref(le)("individual-0")),1)])])]),t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":t.unref(le)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[t.createElementVNode("div",Rrt,[t.createElementVNode("div",Brt,[t.createVNode(E,{modelValue:t.unref(u),"onUpdate:modelValue":b[1]||(b[1]=S=>t.isRef(u)?u.value=S:null),placeholder:t.unref(le)("filterByElectronicFenceName"),class:"table-search-main w-[254px] text-[12px]",onClear:b[2]||(b[2]=S=>t.unref(s)()),onKeyup:b[3]||(b[3]=t.withKeys(S=>t.unref(s)(),["enter"]))},{append:t.withCtx(()=>[t.createElementVNode("div",Frt,[t.createVNode(w,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:t.unref(s)},{default:t.withCtx(()=>[t.createVNode(C,{name:"sys-button-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:1},8,["modelValue","placeholder"])]),t.createElementVNode("div",zrt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(p),S=>(t.openBlock(),t.createElementBlock("div",{key:S.id,class:"hover:shadow-[0_0_10px_0_inset] bg-hy-dialog-bg-2 hover:shadow-hy-border-1 hover:border-hy-border-1 border-hy-dialog-bg-2 flex-grow flex h-[32px] items-center border rounded my-2 box-border px-2 cursor-pointer",onClick:v=>t.unref(h)(S)},[t.createElementVNode("div",jrt,[t.createElementVNode("div",Wrt,[t.createElementVNode("span",{class:t.normalizeClass([t.unref(g)(S),"el-checkbox__input"])},Hrt,2)])]),t.createElementVNode("div",Grt,[t.createElementVNode("div",Krt,[t.createElementVNode("span",Yrt,t.toDisplayString(S.railName),1),t.withDirectives(t.createElementVNode("span",{class:"flex-shrink-0 ml-1 text-hy-text-main"}," ("+t.toDisplayString(S.deviceList.length)+") ",513),[[t.vShow,S.deviceList.length]])])])],8,Urt))),128))])]),t.createElementVNode("ul",qrt,[t.withDirectives(t.createElementVNode("li",Zrt,[t.createElementVNode("div",Jrt,[t.createVNode(C,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),t.createElementVNode("div",Xrt,t.toDisplayString(t.unref(le)("youHavenTSelectedAFenceYet")),1)])],512),[[t.vShow,t.unref(d).length===0]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(d),(S,v)=>(t.openBlock(),t.createElementBlock("li",{key:`${S.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border cursor-pointer border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[t.createElementVNode("div",Qrt,t.toDisplayString(S.railName),1),t.createElementVNode("div",eat,[t.createVNode(ra,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:t.unref(le)("delete"),onClick:x=>t.unref(m)(v)},null,8,["tips","onClick"])])]))),128))])],8,Vrt)),[[N,t.unref(f)]])])}}});function nat({emit:e}){const n=t.ref([{label:le("templateName"),prop:"templateName",isSearch:!0},{label:le("operation"),width:80,align:"center",slotName:"operator"}]),o=t.ref({checkStyle:null}),r=t.ref(!1),i=t.ref(null),a=t.ref();function s(f){return new Promise((u,p)=>{const{checkStyle:h=null}=f||{};o.value.checkStyle=h,r.value=!0,i.value=u,t.nextTick(()=>{l()})})}function l(){a.value.getTableData()}function c(f){i.value(f),e("on-selected",f),d()}function d(){r.value=!1}return{$t:le,tableColumns:n,requestParams:o,dialogVisible:r,successfulCallback:i,AppTableRef:a,show:s,selected:c,close:d}}const oat={class:"deleteBox c_fff text-hy-text-main"},rat={class:"pos_r dialog_header relative text-hy-text-main text-[18px] text-center p-[4px] font-bold z-[1px] bg-hy-dialog-bg-1 rounded-[12px_12px_0_0] font-[Helvetica]"},aat={class:"absolute right-[-2px] top-[-2px]"},iat={class:"dialog_body h-[60vh] p-[0_30px_30px]"},sat=t.defineComponent({__name:"select-template",emits:["on-selected"],setup(e,{expose:n,emit:o}){const r=o,{$t:i,dialogVisible:a,close:s,tableColumns:l,requestParams:c,selected:d,AppTableRef:f,show:u}=nat({emit:r});return n({show:u}),(p,h)=>{const g=t.resolveComponent("svg-icon"),m=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(m,{modelValue:t.unref(a),"onUpdate:modelValue":h[0]||(h[0]=_=>t.isRef(a)?a.value=_:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"640px"},{default:t.withCtx(()=>[t.createElementVNode("div",oat,[t.createElementVNode("div",rat,[t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("spotCheckTemplate")),1),t.createElementVNode("div",aat,[t.createVNode(g,{width:"26",height:"26",name:"icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:t.withModifiers(t.unref(s),["stop"])},null,8,["onClick"])])]),t.createElementVNode("div",iat,[t.createVNode(wv,{ref_key:"AppTableRef",ref:f,"pager-count":5,"column-list":t.unref(l),"search-arr":[],"search-form":t.unref(c),"req-url":"spotCheck/template/page","default-get-data":!1},{tableLeft:t.withCtx(()=>[]),operator:t.withCtx(({row:_})=>[t.createVNode(ra,{width:12,height:12,name:"icon-choice",class:"!w-[24px] !h-[24px]",tips:t.unref(i)("edit"),onClick:b=>t.unref(d)(_)},null,8,["tips","onClick"])]),_:1},8,["column-list","search-form"])])])]),_:1},8,["modelValue"])}}});function lat({emit:e}){const n=t.ref({everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1}),o=(ae,re,fe)=>{let me="";for(const he in n.value)n.value[he]&&(me+=`${he.replace(/(^everyday)|(everyday$)/g,"")},`);me.length?fe():fe(new Error(le("pleaseSelectASpecificWeek")))},r=t.ref(null),i=t.ref(!1),a=t.ref(!1),s=t.ref([]),l=t.ref(null),c=t.ref(le("immediatelyInitiateARollCallSpotCheck")),d=t.ref(!1),f=t.ref(null),u=t.ref(!1),p=t.ref({limitNum:10,onlineStateFlag:1,checkType:1,checkScope:1,checkStyle:1,actionType:1,actionTime:5,deviceIdList:[],mapRailIdList:[],orgIdList:[],msgContent:"",playMsg:!1,templateName:"",taskDateType:1,apDateListV2:null,apDtmV2:null}),h=t.ref({limitNum:10,onlineStateFlag:1,actionTime:5,actionType:1,checkScope:1,checkStyle:1,checkType:1,deviceIdList:[],mapRailIdList:[],orgIdList:[],msgContent:"",playMsg:!1,templateName:"",taskDateType:1,apDateListV2:null,apDtmV2:null}),g=t.ref({limitNum:[{required:!0,message:le("pleaseEnterTheRandomNumber"),trigger:"blur"}],templateName:[{required:!0,message:le("pleaseEnterTheTemplateName"),trigger:"blur"}],msgContent:[{required:!0,message:le("pleaseFillInTheMessageToBeSent"),trigger:"blur"}],everydayJson:[{required:!0,validator:o,trigger:"change"}],taskDateTime:[{required:!0,message:le("pleaseSelectTheExecutionTime"),trigger:"change"}],taskDateType:[{required:!0,message:le("pleaseSelectTheExecutionDate"),trigger:"change"}],apDateListV2:[{required:!0,message:le("selectOneOrMoreDates"),trigger:"change"}],apDtmV2:[{required:!0,message:le("pleaseSelectASpecificTimePeriod"),trigger:"change"}]}),m=t.ref(),_=t.ref(),b=t.ref(),C=t.ref(),w=t.ref(),E=t.ref();t.watch(()=>h.value.limitNum,ae=>{typeof ae=="string"&&(ae=ae.replace(/[^.\d]/g,""),ae=ae.replace(".",""),h.value.limitNum=ae)}),t.watch(()=>d.value,ae=>{q()},{immediate:!0});function N(){m.value.validateField("limitNum")}function S(ae){if(ae!==h.value.onlineStateFlag)return new Promise((re,fe)=>{if(s.value.length!==0&&h.value.checkScope===3&&ae===1)ll({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:le("prompt"),tipsContent:`<div><p>${le("switchingTheSpotCheckDeviceWillClearTheSelectedData")}</p><p>${le("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:le("cancel-0"),closeBtnType:"primary",submitBtnText:le("confirm-3"),submitBtnType:"default"},()=>{const me=K();me&&(me.clearSelectedData(),me.getData()),h.value.onlineStateFlag=ae,re(0)});else{if(h.value.onlineStateFlag=ae,h.value.checkScope===3){const me=K();me&&me.getData()}re(0)}})}function v(ae){let re=h.value.limitNum-0;if(ae===1)re+=1;else{if(re<=1){ft.error(le("atLeast1RandomDevice"));return}re-=1}h.value.limitNum=re}function x(ae,re){const{checkScope:fe=3,contentState:me=3,onlineStateFlag:he=1,copyType:W=!1,wrapperClosable:te=!1,title:ue=le("immediatelyInitiateARollCallSpotCheck"),selectedDataList:de=[],successfulCallback:_e=null}=re||{};if(d.value){if(me===1)if(fe===h.value.checkScope){const Ee=K();Ee&&Ee.addSelectedDataList(de)}else R(fe).then(()=>{I([],!0);const Ee=K();Ee&&Ee.addSelectedDataList(de)});else return ft.warning(le("repeat"));return}r.value=_e,a.value=te,l.value=me,c.value=ue,m.value&&m.value.resetFields(),h.value={...p.value},h.value.limitNum=10,h.value.checkScope=fe,h.value.onlineStateFlag=he,me===1?de.length&&I(de,!0):I([],!0),n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},ae&&typeof ae=="number"?Y(ae,W):T(!0)}function T(ae){d.value=typeof ae=="boolean"?ae:!d.value}function D(){m.value.clearValidate("everydayJson"),m.value.clearValidate("apDateListV2"),m.value.clearValidate("apDtmV2")}function V(ae){var re;(re=R(ae))==null||re.then(()=>{I([],!0)})}function R(ae){if(h.value.checkScope!==ae)return new Promise((re,fe)=>{s.value.length!==0?ll({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:le("prompt"),tipsContent:`<div><p>${le("switchingTheSpotCheckRangeWillClearTheSelectedData")}</p><p>${le("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:le("cancel-0"),closeBtnType:"primary",submitBtnText:le("confirm-3"),submitBtnType:"default"},()=>{h.value.checkScope=ae,re(0)}):(h.value.checkScope=ae,re(0))})}function q(){d.value?u.value=!0:(f.value&&(clearTimeout(f.value),f.value=null),f.value=setTimeout(()=>{u.value=d.value,clearTimeout(f.value),f.value=null},500))}function K(){const ae=h.value.checkScope;return ae===1?_.value:ae===2?b.value:ae===3?C.value:null}function G(ae){const{checkScope:re=1,mapRailList:fe=[],orgList:me=[],deviceIdList:he=[],deviceList:W=[]}=ae||{};let te=[];return re===1&&fe.length?te=fe:re===2&&me.length?te=me:re===3&&W.length&&(te=W.map(ue=>({...ue,type:3}))),te||[]}function I(ae,re=!1){if(s.value=ae,re){const fe=K();fe&&fe.setSelectedDataList(ae)}}function P(){const ae=h.value.checkScope;let re="",fe=[];return ae===1?(re="mapRailIdList",fe=s.value.map(me=>me.id)):ae===2?(re="orgIdList",fe=s.value.map(me=>me.id)):ae===3&&(re="deviceIdList",fe=s.value.map(me=>me.deviceId)),{dataList:fe,name:re}}function M(){m.value.validate(ae=>{if(ae){const re={...h.value};if(re.playMsg=re.playMsg?1:0,re.checkType===1){const fe=P();if(re[`${fe.name}`]=fe.dataList,fe.dataList.length===0)return ft.error(le("pleaseSelectTheSpotCheckRange"))}else re.checkScope=null;t.nextTick(()=>{l.value===2?U(re):l.value===3?Z(re):oe(re)})}})}function O(ae){var re;ae&&((re=w.value)==null||re.show(ae))}function $(){I([],!0),T(!1),r.value=null}function F(){$()}function Y(ae,re){l.value===2?B(ae,re):l.value===3&&X(ae,re)}async function B(ae,re=!1){i.value=!0;const{code:fe,data:me}=await qet({id:ae});if(fe===200){const he=me;if(me.checkScope,he.taskDateType===2)he.weekDate.split(",").forEach(ue=>{ue=Number.parseFloat(ue),ue===1?n.value.everyday1=!0:ue===2?n.value.everyday2=!0:ue===3?n.value.everyday3=!0:ue===4?n.value.everyday4=!0:ue===5?n.value.everyday5=!0:ue===6?n.value.everyday6=!0:ue===7&&(n.value.everyday7=!0)});else if(he.taskDateType===3){const te=[];he.apDateList.forEach(ue=>{te.push(ue.apDtm.split(" 00:00:00")[0])}),he.apDateListV2=te}else he.taskDateType===4&&(he.apDtmV2=[he.apStartDtm,he.apEndDtm]);he.taskDateTime=[he.taskDateStartTime,he.taskDateEndTime],h.value={...he,playMsg:he.playMsg===1},re&&(h.value.id=null);const W=G(he);I(W),t.nextTick(()=>{i.value=!1,d.value||T(!0)})}}async function U(ae){if(ae.taskDateStartTime=h.value.taskDateTime[0],ae.taskDateEndTime=h.value.taskDateTime[1],h.value.taskDateType===2){let me="";for(const he in n.value)n.value[he]&&(me+=`${he.replace(/(^everyday)|(everyday$)/g,"")},`);if(me.length===0)return ft.error(le("pleaseSelectASpecificWeek"));ae.weekDate=me.substring(me.length-1,0)}else if(h.value.taskDateType===3){if(!h.value.apDateListV2||h.value.apDateListV2.length===0)return ft.error(le("pleaseSelectADate"));ae.apDateList=h.value.apDateListV2.map(me=>({apDtm:`${me} 00:00:00`}))}else if(h.value.taskDateType===4){if(!h.value.apDtmV2||h.value.apDtmV2.length===0)return ft.error(le("pleaseSelectATimePeriod"));ae.apStartDtm=`${h.value.apDtmV2[0]} 00:00:00`,ae.apEndDtm=`${h.value.apDtmV2[1]} 00:00:00`}const{code:re,data:fe={}}=await Zet(ae);re===200&&(ft.success(le("operationSuccessful")),e("on-submit"),r.value&&r.value(),$())}async function J(){const{id:ae}=await E.value.show({checkStyle:l.value===2?1:null});ae&&(m.value&&m.value.resetFields(),h.value={...p.value},n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},s.value=[],await X(ae,!0),ft.success(le("templateApplied")))}async function X(ae,re=!1){i.value=!0;const{code:fe,data:me}=await Jet({id:ae});if(fe===200){h.value={...me,playMsg:me.playMsg===1},re&&(h.value.id=null);const he=G(h.value);I(he),t.nextTick(()=>{i.value=!1,d.value||T(!0)})}}async function Z(ae){const{code:re}=await Xet(ae);re===200&&(ft.success(le("operationSuccessful")),e("on-submit"),r.value&&r.value(),$())}async function oe(ae){const{code:re,data:fe={}}=await Qet(ae);re===200&&(ft.success(le("operationSuccessful")),r.value&&r.value(),e("on-submit"),O(fe.id),$())}return{dialogVisible:d,animationVisible:u,animationTime:f,setDialogVisible:T,setAnimationVisible:q,setCheckScope:R,setSelectedDataList:I,getSelectedDataList:P,onSubmit:M,viewSpotCheckShow:O,close:$,onClose:F,detail:Y,selectTemplateShow:J,taskDateTypeFn:D,changeCheckScope:V,everydayJson:n,formRef:m,loading:i,selectElectronicFenceRef:_,selectDepartmentRef:b,selectDeviceRef:C,selectTemplateRef:E,viewSpotCheckRef:w,contentState:l,title:c,wrapperClosable:a,form:h,rules:g,$t:le,changeOnlineStateFlag:S,blurLimitNum:N,setRandomNumber:v,selectedDataList:s,show:x}}const bo=e=>(t.pushScopeId("data-v-1e4e7e93"),e=e(),t.popScopeId(),e),cat={key:0,class:"fixed top-0 left-0 bg-[rgba(0,0,0,0.5)] w-full h-full z-[100]"},dat={class:"w-[1080px] h-full"},uat={class:"w-full h-full px-[20px] box-border flex flex-col text-hy-text-main text-xs"},fat={class:"flex justify-between items-center h-[60px]"},pat={class:"font-bold text-lg"},hat=["element-loading-text"],mat={key:0,class:"flex mb-2 flex-shrink-0 rounded bg-backgroundv2 px-3 pt-2 h-[90px] box-border items-center"},gat={class:"text-sm h-[30px] flex items-center"},yat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),_at={key:1,class:"flex mb-2 flex-shrink-0 rounded bg-hy-dialog-bg-2 px-3 pt-2 h-[90px] box-border items-center"},bat={class:"flex-1 mr-4"},wat={class:"text-sm h-[30px] flex items-center"},Cat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Eat={class:"text-sm h-[30px] flex items-center"},kat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),vat={class:"everydayBox leading-[20px]"},Sat={class:"text-xs"},Nat={class:"text-xs"},xat={class:"text-xs"},Tat={class:"text-xs"},Lat={class:"text-xs"},Oat={class:"text-xs"},$at={class:"text-xs"},Dat={class:"text-sm h-[30px] flex items-center"},Pat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Iat={class:"w-full"},Mat={class:"text-sm h-[30px] flex items-center"},Aat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Vat={class:"flex-1 min-w-[220px]"},Rat={class:"text-sm h-[30px] flex items-center"},Bat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Fat={class:"flex items-center flex-grow h-0"},zat={class:"flex-grow w-0 h-full flex flex-col"},Uat={class:"flex"},jat={class:"text-sm h-[30px] flex items-center"},Wat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Hat={class:"text-sm h-[30px] flex items-center"},Gat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Kat={class:"text-sm h-[30px] flex items-center"},Yat=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),qat={class:"test h-[32px] flex border border-hy-border-2 rounded box-border overflow-hidden bg-hy-dialog-bg-2 w-full"},Zat={class:"flex-grow w-0 box-border px-1 flex items-center justify-center"},Jat=["placeholder"],Xat={class:"flex flex-col w-[32px] text-auxiliary border-l border-hy-border-2"},Qat={class:"text-sm h-[30px] flex items-center"},eit=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),tit={class:"flex-grow h-0 bg-hy-dialog-bg-4 shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 rounded-[6px] flex items-center justify-center"},nit={class:"tac text-hy-text-secondary text-center"},oit={class:"mt_10 mt-[10px]"},rit={class:""},ait={class:"mt-1"},iit={class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},sit={class:"flex justify-between h-[40px] items-center"},lit={class:"fs_12 p-[10px_20px] text-[12px]"},cit={class:"r-f mb_10 flex mb-[10px]"},dit=bo(()=>t.createElementVNode("span",null,"1、",-1)),uit={class:"r-f mb_10 flex mb-[10px]"},fit=bo(()=>t.createElementVNode("span",null,"2、",-1)),pit={class:"r-f mb_10 flex mb-[10px]"},hit=bo(()=>t.createElementVNode("span",null,"3、",-1)),mit={class:"fs_12 cursor_pointer !text-hy-text-primary cursor-pointer text-[12px]"},git={class:"flex-grow h-0 flex"},yit={class:"flex-1"},_it=bo(()=>t.createElementVNode("div",{class:"mx-[20px] w-[2px] h-[96%] rounded bg-hy-border-2 flex-shrink-0"},null,-1)),bit={class:"w-[33%] h-full flex flex-col"},wit={class:"text-sm h-[30px] flex items-center"},Cit=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Eit={class:"text-sm h-[30px] flex items-center"},kit=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),vit={class:"flex-grow h-0 bg-hy-dialog-bg-4 shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 rounded-[6px] flex items-center justify-center"},Sit={class:"tac text-hy-text-secondary text-center"},Nit={class:"mt-[10px]"},xit={class:"mt-1"},Tit={key:0,class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},Lit={class:"flex-grow h-0"},Oit={class:"text-xs"},$it={class:"mb-2"},Dit={class:"text-sm h-[30px] flex items-center"},Pit=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Iit={class:"mb-2"},Mit={class:"text-sm h-[30px] flex items-center"},Ait=bo(()=>t.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Vit={class:"flex items-center justify-between h-[80px]"},Rit={class:"text-hy-text-secondary flex items-center"},Bit=Po(t.defineComponent({__name:"edit-spot-check",emits:["on-submit"],setup(e,{expose:n,emit:o}){const r=o,{$t:i,dialogVisible:a,wrapperClosable:s,animationVisible:l,title:c,onClose:d,loading:f,form:u,rules:p,contentState:h,taskDateTypeFn:g,everydayJson:m,changeOnlineStateFlag:_,blurLimitNum:b,setRandomNumber:C,changeCheckScope:w,selectedDataList:E,setSelectedDataList:N,selectTemplateShow:S,onSubmit:v,selectElectronicFenceRef:x,selectDepartmentRef:T,selectDeviceRef:D,selectTemplateRef:V,viewSpotCheckRef:R,show:q,formRef:K}=lat({emit:r});return n({show:q}),(G,I)=>{const P=t.resolveComponent("svg-icon"),M=t.resolveComponent("el-input"),O=t.resolveComponent("el-form-item"),$=t.resolveComponent("el-option"),F=t.resolveComponent("el-select"),Y=t.resolveComponent("el-checkbox"),B=t.resolveComponent("el-date-picker"),U=t.resolveComponent("el-time-picker"),J=Uet,X=t.resolveComponent("el-icon"),Z=Ret,oe=t.resolveComponent("el-popover"),ae=t.resolveComponent("el-form"),re=CL,fe=t.resolveComponent("el-button"),me=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",null,[t.unref(s)&&t.unref(a)?(t.openBlock(),t.createElementBlock("div",cat)):t.createCommentVNode("",!0),t.unref(l)?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass([{hide:!t.unref(a),display:t.unref(a)},"duration-500 bg-hy-dialog-bg-1 rounded-[12px_0_0_12px] border-r-0 border-hy-border-1 fixed right-0 top-[54%] h-[87%] -translate-y-1/2 z-[101] overflow-hidden"]),style:{"animation-iteration-count":"1"}},[t.createElementVNode("div",dat,[t.createElementVNode("div",uat,[t.createElementVNode("div",fat,[t.createElementVNode("div",pat,t.toDisplayString(t.unref(c)),1),t.createVNode(P,{name:"base-sign-out","class-name":"clickBox !w-[28px] !h-[28px]",onClick:t.unref(d)},null,8,["onClick"])]),t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":t.unref(i)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0"},[t.createVNode(ae,{ref_key:"formRef",ref:K,model:t.unref(u),rules:t.unref(p),"label-width":"0px",class:"w-full h-full flex flex-col"},{default:t.withCtx(()=>[t.unref(h)===3?(t.openBlock(),t.createElementBlock("div",mat,[t.createVNode(O,{prop:"templateName",class:"w-full"},{default:t.withCtx(()=>[t.createElementVNode("div",gat,[t.createTextVNode(t.toDisplayString(t.unref(i)("templateName")),1),yat]),t.createVNode(M,{modelValue:t.unref(u).templateName,"onUpdate:modelValue":I[0]||(I[0]=he=>t.unref(u).templateName=he),placeholder:t.unref(i)("pleaseEnterTheTemplateName"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})])):t.unref(h)===2?(t.openBlock(),t.createElementBlock("div",_at,[t.createElementVNode("div",bat,[t.createVNode(O,{prop:"taskDateType"},{default:t.withCtx(()=>[t.createElementVNode("div",wat,[t.createTextVNode(t.toDisplayString(t.unref(i)("executionDate")),1),Cat]),t.createVNode(F,{modelValue:t.unref(u).taskDateType,"onUpdate:modelValue":I[1]||(I[1]=he=>t.unref(u).taskDateType=he),class:"w-full",placeholder:t.unref(i)("pleaseSelectTheExecutionDate"),onChange:t.unref(g)},{default:t.withCtx(()=>[t.createVNode($,{label:t.unref(i)("everyday"),value:1},null,8,["label"]),t.createVNode($,{label:t.unref(i)("specifyAWeek"),value:2},null,8,["label"]),t.createVNode($,{label:t.unref(i)("specifyADate"),value:3},null,8,["label"]),t.createVNode($,{label:t.unref(i)("specifyATimePeriod"),value:4},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])]),_:1})]),t.createElementVNode("div",null,[t.unref(u).taskDateType===2?(t.openBlock(),t.createBlock(O,{key:0,prop:"everydayJson",class:"max-w-[360px]"},{default:t.withCtx(()=>[t.createElementVNode("div",Eat,[t.createTextVNode(t.toDisplayString(t.unref(i)("specifyAWeek")),1),kat]),t.createElementVNode("div",vat,[t.createVNode(Y,{modelValue:t.unref(m).everyday1,"onUpdate:modelValue":I[2]||(I[2]=he=>t.unref(m).everyday1=he)},{default:t.withCtx(()=>[t.createElementVNode("span",Sat,t.toDisplayString(t.unref(i)("monday")),1)]),_:1},8,["modelValue"]),t.createVNode(Y,{modelValue:t.unref(m).everyday2,"onUpdate:modelValue":I[3]||(I[3]=he=>t.unref(m).everyday2=he)},{default:t.withCtx(()=>[t.createElementVNode("span",Nat,t.toDisplayString(t.unref(i)("tuesday")),1)]),_:1},8,["modelValue"]),t.createVNode(Y,{modelValue:t.unref(m).everyday3,"onUpdate:modelValue":I[4]||(I[4]=he=>t.unref(m).everyday3=he)},{default:t.withCtx(()=>[t.createElementVNode("span",xat,t.toDisplayString(t.unref(i)("wednesday")),1)]),_:1},8,["modelValue"]),t.createVNode(Y,{modelValue:t.unref(m).everyday4,"onUpdate:modelValue":I[5]||(I[5]=he=>t.unref(m).everyday4=he)},{default:t.withCtx(()=>[t.createElementVNode("span",Tat,t.toDisplayString(t.unref(i)("thursday")),1)]),_:1},8,["modelValue"]),t.createVNode(Y,{modelValue:t.unref(m).everyday5,"onUpdate:modelValue":I[6]||(I[6]=he=>t.unref(m).everyday5=he)},{default:t.withCtx(()=>[t.createElementVNode("span",Lat,t.toDisplayString(t.unref(i)("friday")),1)]),_:1},8,["modelValue"]),t.createVNode(Y,{modelValue:t.unref(m).everyday6,"onUpdate:modelValue":I[7]||(I[7]=he=>t.unref(m).everyday6=he)},{default:t.withCtx(()=>[t.createElementVNode("span",Oat,t.toDisplayString(t.unref(i)("saturday")),1)]),_:1},8,["modelValue"]),t.createVNode(Y,{modelValue:t.unref(m).everyday7,"onUpdate:modelValue":I[8]||(I[8]=he=>t.unref(m).everyday7=he)},{default:t.withCtx(()=>[t.createElementVNode("span",$at,t.toDisplayString(t.unref(i)("sunday")),1)]),_:1},8,["modelValue"])])]),_:1})):t.unref(u).taskDateType===3?(t.openBlock(),t.createBlock(O,{key:1,prop:"apDateListV2",class:"mr-4"},{default:t.withCtx(()=>[t.createElementVNode("div",Dat,[t.createTextVNode(t.toDisplayString(t.unref(i)("specifyADate")),1),Pat]),t.createElementVNode("div",Iat,[t.createVNode(B,{modelValue:t.unref(u).apDateListV2,"onUpdate:modelValue":I[9]||(I[9]=he=>t.unref(u).apDateListV2=he),type:"dates",format:`YYYY ${t.unref(i)("yearMMMonthDDDay")}`,class:"!w-full !box-border","value-format":"YYYY-MM-DD",placeholder:t.unref(i)("selectOneOrMoreDates")},null,8,["modelValue","format","placeholder"])])]),_:1})):t.unref(u).taskDateType===4?(t.openBlock(),t.createBlock(O,{key:2,prop:"apDtmV2",class:"mr-4 w-[340px]"},{default:t.withCtx(()=>[t.createElementVNode("div",Mat,[t.createTextVNode(t.toDisplayString(t.unref(i)("specifyATimePeriod")),1),Aat]),t.createElementVNode("div",null,[t.createVNode(B,{modelValue:t.unref(u).apDtmV2,"onUpdate:modelValue":I[10]||(I[10]=he=>t.unref(u).apDtmV2=he),type:"daterange",class:"!w-full !box-border !text-[13px]",format:`YYYY ${t.unref(i)("yearMMMonthDDDay")}`,"value-format":"YYYY-MM-DD","range-separator":t.unref(i)("to"),"start-placeholder":t.unref(i)("startDate"),"end-placeholder":t.unref(i)("endDate")},null,8,["modelValue","format","range-separator","start-placeholder","end-placeholder"])])]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("div",Vat,[t.createVNode(O,{prop:"taskDateTime"},{default:t.withCtx(()=>[t.createElementVNode("div",Rat,[t.createTextVNode(t.toDisplayString(t.unref(i)("executionTime-0")),1),Bat]),t.createVNode(U,{modelValue:t.unref(u).taskDateTime,"onUpdate:modelValue":I[11]||(I[11]=he=>t.unref(u).taskDateTime=he),"is-range":"",class:"!w-full","range-separator":t.unref(i)("to"),"value-format":"HH:mm:ss","start-placeholder":t.unref(i)("startTime"),"end-placeholder":t.unref(i)("endTime"),placeholder:t.unref(i)("selectATimeRange")},null,8,["modelValue","range-separator","start-placeholder","end-placeholder","placeholder"])]),_:1})])])):t.createCommentVNode("",!0),t.createElementVNode("div",Fat,[t.createElementVNode("div",zat,[t.createElementVNode("div",Uat,[t.createVNode(O,{class:"flex-1"},{default:t.withCtx(()=>[t.createElementVNode("div",jat,[t.createTextVNode(t.toDisplayString(t.unref(i)("spotCheckType")),1),Wat]),t.createVNode(F,{modelValue:t.unref(u).checkType,"onUpdate:modelValue":I[12]||(I[12]=he=>t.unref(u).checkType=he),class:"w-full",placeholder:t.unref(i)("pleaseSelectTheSpotCheckType")},{default:t.withCtx(()=>[t.createVNode($,{label:t.unref(i)("rangeCheck"),value:1},null,8,["label"]),t.createVNode($,{label:t.unref(i)("randomCheck"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),_:1}),t.createVNode(O,{class:"flex-1 ml-1 pl-1"},{default:t.withCtx(()=>[t.createElementVNode("div",Hat,[t.createTextVNode(t.toDisplayString(t.unref(i)("spotCheckDevice")),1),Gat]),t.createVNode(F,{"model-value":t.unref(u).onlineStateFlag,class:"w-full",placeholder:t.unref(i)("pleaseSelectTheSpotCheckDevice"),onChange:t.unref(_)},{default:t.withCtx(()=>[t.createVNode($,{label:t.unref(i)("spotCheckOnlyOnlineDevices"),value:1},null,8,["label"]),t.createVNode($,{label:t.unref(i)("spotCheckAllDevices"),value:2},null,8,["label"])]),_:1},8,["model-value","placeholder","onChange"])]),_:1}),t.unref(u).checkType===2?(t.openBlock(),t.createBlock(O,{key:0,class:"flex-1 ml-1 pl-1",prop:"limitNum"},{default:t.withCtx(()=>[t.createElementVNode("div",Kat,[t.createTextVNode(t.toDisplayString(t.unref(i)("randomNumber")),1),Yat]),t.createElementVNode("div",qat,[t.createElementVNode("div",Zat,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":I[13]||(I[13]=he=>t.unref(u).limitNum=he),type:"text",style:{outline:"none"},class:"bg-hy-dialog-bg-2 w-full h-full",placeholder:t.unref(i)("pleaseEnterTheRandomNumber"),onBlur:I[14]||(I[14]=(...he)=>t.unref(b)&&t.unref(b)(...he))},null,40,Jat),[[t.vModelText,t.unref(u).limitNum]])]),t.createElementVNode("div",Xat,[t.createElementVNode("div",{class:"flex-1 flex items-center justify-center clickBox cursor-pointer",onClick:I[15]||(I[15]=he=>t.unref(C)(1))},[t.createVNode(X,null,{default:t.withCtx(()=>[t.createVNode(J)]),_:1})]),t.createElementVNode("div",{class:"flex-1 border-t border-hy-border-2 flex items-center justify-center cursor-pointer clickBox",onClick:I[16]||(I[16]=he=>t.unref(C)(2))},[t.createVNode(X,null,{default:t.withCtx(()=>[t.createVNode(Z)]),_:1})])])])]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("div",Qat,[t.createTextVNode(t.toDisplayString(t.unref(i)("spotCheckRange")),1),eit]),t.withDirectives(t.createElementVNode("div",tit,[t.createElementVNode("div",nit,[t.createVNode(P,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),t.createElementVNode("div",oit,[t.createElementVNode("p",rit,t.toDisplayString(t.unref(i)("youDoNotNeedToSelectARangeAndDeviceForRandomCheck")),1),t.createElementVNode("p",ait,t.toDisplayString(t.unref(i)("theSystemWillHelpYouSelectRandomly")),1)])])],512),[[t.vShow,t.unref(u).checkType===2]]),t.withDirectives(t.createElementVNode("div",iit,[t.createElementVNode("div",sit,[t.createElementVNode("div",null,[t.createVNode(F,{"model-value":t.unref(u).checkScope,class:"w-[160px]",placeholder:t.unref(i)("pleaseSelect"),onChange:t.unref(w)},{default:t.withCtx(()=>[t.createVNode($,{label:t.unref(i)("selectAnArea"),value:1},null,8,["label"]),t.createVNode($,{label:t.unref(i)("selectADepartment"),value:2},null,8,["label"]),t.createVNode($,{label:t.unref(i)("selectADevice"),value:3},null,8,["label"])]),_:1},8,["model-value","placeholder","onChange"])]),t.createElementVNode("div",null,[t.createVNode(oe,{"open-delay":500,placement:"bottom-start","popper-class":"popover_echarts",trigger:"hover",width:"200"},{reference:t.withCtx(()=>[t.createElementVNode("span",mit,[t.createVNode(P,{name:"base-help","class-name":"svgBox ml-1 !w-[12px] !h-[12px]"}),t.createTextVNode(" "+t.toDisplayString(t.unref(i)("help")),1)])]),default:t.withCtx(()=>[t.createElementVNode("ul",lit,[t.createElementVNode("li",cit,[dit,t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea")),1)]),t.createElementVNode("li",uit,[fit,t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment")),1)]),t.createElementVNode("li",pit,[hit,t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck")),1)])])]),_:1})])]),t.createElementVNode("div",git,[t.createElementVNode("div",yit,[t.unref(u).checkScope===1?(t.openBlock(),t.createBlock(tat,{key:0,ref_key:"selectElectronicFenceRef",ref:x,"init-selected-data-list":t.unref(E),onOnSelectedDataList:t.unref(N)},null,8,["init-selected-data-list","onOnSelectedDataList"])):t.unref(u).checkScope===2?(t.openBlock(),t.createBlock(urt,{key:1,ref_key:"selectDepartmentRef",ref:T,"init-selected-data-list":t.unref(E),onOnSelectedDataList:t.unref(N)},null,8,["init-selected-data-list","onOnSelectedDataList"])):t.unref(u).checkScope===3?(t.openBlock(),t.createBlock(Ort,{key:2,ref_key:"selectDeviceRef",ref:D,"init-selected-data-list":t.unref(E),"online-state-flag":t.unref(u).onlineStateFlag,onOnSelectedDataList:t.unref(N)},null,8,["init-selected-data-list","online-state-flag","onOnSelectedDataList"])):t.createCommentVNode("",!0)])])],512),[[t.vShow,t.unref(u).checkType===1]])]),_it,t.createElementVNode("div",bit,[t.createVNode(O,null,{default:t.withCtx(()=>[t.createElementVNode("div",wit,[t.createTextVNode(t.toDisplayString(t.unref(i)("spotCheckMethod")),1),Cit]),t.createVNode(F,{modelValue:t.unref(u).checkStyle,"onUpdate:modelValue":I[17]||(I[17]=he=>t.unref(u).checkStyle=he),class:"w-full",disabled:t.unref(h)===2,placeholder:t.unref(i)("pleaseSelectTheSpotCheckMethod")},{default:t.withCtx(()=>[t.createVNode($,{label:t.unref(i)("message"),value:1},null,8,["label"]),t.createVNode($,{label:t.unref(i)("call"),value:2},null,8,["label"])]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),t.createElementVNode("div",Eit,[t.createTextVNode(t.toDisplayString(t.unref(i)("messageContent")),1),kit]),t.withDirectives(t.createElementVNode("div",vit,[t.createElementVNode("div",Sit,[t.createVNode(P,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),t.createElementVNode("div",Nit,[t.createElementVNode("p",null,t.toDisplayString(t.unref(i)("callDoesNotRequireYouToEnterTheMessageContent")),1),t.createElementVNode("p",xit,t.toDisplayString(t.unref(i)("spotCheckWillBeConductedByIntercomAnswering")),1)])])],512),[[t.vShow,t.unref(u).checkStyle===2]]),t.unref(u).checkStyle===1?(t.openBlock(),t.createElementBlock("div",Tit,[t.createElementVNode("div",Lit,[t.createVNode(O,{prop:"msgContent"},{default:t.withCtx(()=>[t.createVNode(M,{modelValue:t.unref(u).msgContent,"onUpdate:modelValue":I[18]||(I[18]=he=>t.unref(u).msgContent=he),type:"textarea",placeholder:t.unref(i)("pleaseFillInTheMessageToBeSent"),maxlength:"100",resize:"none",autosize:{minRows:t.unref(h)===1?14:10},"show-word-limit":""},null,8,["modelValue","placeholder","autosize"])]),_:1}),t.createVNode(Y,{modelValue:t.unref(u).playMsg,"onUpdate:modelValue":I[19]||(I[19]=he=>t.unref(u).playMsg=he)},{default:t.withCtx(()=>[t.createElementVNode("span",Oit,t.toDisplayString(t.unref(i)("requiresTTSVoiceBroadcastOnTheDevice")),1)]),_:1},8,["modelValue"])]),t.createElementVNode("div",$it,[t.createElementVNode("div",Dit,[t.createTextVNode(t.toDisplayString(t.unref(i)("answerMethod")),1),Pit]),t.createVNode(F,{modelValue:t.unref(u).actionType,"onUpdate:modelValue":I[20]||(I[20]=he=>t.unref(u).actionType=he),class:"w-full",placeholder:t.unref(i)("pleaseSelect")},{default:t.withCtx(()=>[t.createVNode($,{label:t.unref(i)("punchIn"),value:1},null,8,["label"]),t.createVNode($,{label:t.unref(i)("reply"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),t.createElementVNode("div",Iit,[t.createElementVNode("div",Mit,[t.createTextVNode(t.toDisplayString(t.unref(i)("answerTime")),1),Ait]),t.createVNode(F,{modelValue:t.unref(u).actionTime,"onUpdate:modelValue":I[21]||(I[21]=he=>t.unref(u).actionTime=he),class:"w-full",placeholder:t.unref(i)("pleaseSelectTheAnswerTime")},{default:t.withCtx(()=>[t.createVNode($,{label:"5s",value:5}),t.createVNode($,{label:"10s",value:10}),t.createVNode($,{label:"15s",value:15}),t.createVNode($,{label:"30s",value:30}),t.createVNode($,{label:"60s",value:60})]),_:1},8,["modelValue","placeholder"])])])):t.createCommentVNode("",!0)])])]),_:1},8,["model","rules"])],8,hat)),[[me,t.unref(f)]]),t.createElementVNode("div",Vit,[t.createElementVNode("div",Rit,[t.createVNode(X,{class:"text-sm mr-1"},{default:t.withCtx(()=>[t.createVNode(re)]),_:1}),t.createTextVNode(" "+t.toDisplayString(t.unref(i)("youCanApplyTheSpotCheckTemplateToQuicklyFillInTheContent")),1)]),t.createElementVNode("div",null,[t.unref(h)!==3?(t.openBlock(),t.createBlock(fe,{key:0,class:"button_function buttonBox",onClick:t.unref(S)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("spotCheckTemplate")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.createVNode(fe,{type:"primary",class:"button_default buttonBox",onClick:t.unref(d)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("cancel")),1)]),_:1},8,["onClick"]),t.createVNode(fe,{class:"button_function buttonBox",onClick:t.unref(v)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("confirm")),1)]),_:1},8,["onClick"])])])])]),t.createVNode(sat,{ref_key:"selectTemplateRef",ref:V},null,512)],2)):t.createCommentVNode("",!0),t.createVNode(Got,{ref_key:"viewSpotCheckRef",ref:R},null,512)])}}}),[["__scopeId","data-v-1e4e7e93"]]);function Fit(e){return xt.post({url:"orgGroup/detail",data:e,isFormData:!0})}function zit(){const e=t.ref({}),n=t.ref(null),o=t.ref({}),r=t.ref(1),i=t.ref([{label:le("spotCheckInformation"),value:1},{label:le("spotCheckStatus"),value:2}]),a=t.ref(0),s=t.ref([{label:le("all"),value:0},{label:le("completed-0"),value:3},{label:le("uncompleted-0"),value:4}]),l=t.ref([]),c=t.ref([]),d=t.ref(!1),f=t.ref(),u=t.computed(()=>{const v=s.value.findIndex(x=>x.value===a.value);return v!==-1?Math.ceil(v*(100/s.value.length)):0}),p=t.computed(()=>{const v=i.value.findIndex(x=>x.value===r.value);return v!==-1?Math.ceil(v*(100/i.value.length)):0});async function h(v){if(!v)return;const{code:x,data:T}=await Fit({id:v});x===200&&(o.value=T)}function g(){var v;(v=f.value)==null||v.getData(a.value)}function m(v){a.value=v,t.nextTick(()=>{g()})}function _(v){r.value=v}function b(v){}function C(v={}){const{beReceiveNum:x=0,receivingNum:T=0,finishNum:D=0,notFinishNum:V=0}=v;e.value.beReceiveNum=x,e.value.receivingNum=T,e.value.finishNum=D,e.value.notFinishNum=V}function w(v=[]){}function E(v){e.value={actionType:1,id:12},_(1),m(0),N(v),d.value=!0}async function N(v){const{code:x,data:T={}}=await d7({id:v,getMapRail:1,getOrg:1});x===200&&(e.value=T,l.value=T.orgNameList||[],c.value=T.railNameList||[],e.value.checkNum,t.nextTick(()=>{T.checkStyle===2&&(n.value=T.groupId,h(n.value),e.value.actionType=null),d.value=!0}))}function S(){d.value=!1}return{form:e,groupId:n,orgGroupInsertTemp:o,navigationStatus:r,navigationList:i,checkStatus:a,checkStatusList:s,orgNameList:l,railNameList:c,dialogVisible:d,spotCheckTaskDeviceRef:f,checkStatusProgress:u,navigationStatusProgress:p,setCheckStatus:m,setNavigationStatus:_,setLoading:b,spotCheckTaskDeviceCountStatus:C,spotCheckTaskDeviceChange:w,show:E,detail:N,close:S}}const Uit={class:"deleteBox c_fff text-hy-text-main"},jit={class:"pos_r dialog_header relative text-hy-text-main text-[18px] text-center p-[20px] font-bold z-[1px] bg-hy-dialog-bg-1 rounded-[12px_12px_0_0] font-[Helvetica]"},Wit={class:"dialog_body pb-[30px] h-[60vh] flex flex-col text-main text-xs !px-0"},Hit={class:"flex items-center justify-center mb-[16px]"},Git={class:"relative flex-shrink-0"},Kit={class:"relative text-sm h-[36px] !leading-[36px] text-center border border-hy-bg-2 rounded text-hy-text-secondary flex overflow-hidden"},Yit=["onClick"],qit={class:"flex flex-grow h-0 px-4 box-border"},Zit={class:"w-full h-full box-border px-2"},Jit={class:"w-full h-full bg-hy-dialog-bg-2 rounded px-3 py-1 box-border overflow-x-hidden overflow-y-auto"},Xit={class:"mb-2"},Qit={class:"text-hy-text-secondary h-[30px] leading-[30px]"},est={class:"text-hy-text-secondary"},tst={class:"mb-2"},nst={class:"text-hy-text-secondary h-[30px] leading-[30px]"},ost={class:"mb-2"},rst={class:"text-hy-text-secondary h-[30px] leading-[30px]"},ast={class:"mb-2"},ist={class:"text-hy-text-secondary h-[30px] leading-[30px]"},sst={class:"mb-2"},lst={class:"text-hy-text-secondary h-[30px] leading-[30px]"},cst={key:0,class:"mb-2"},dst={class:"text-hy-text-secondary h-[30px] leading-[30px]"},ust={key:0},fst={key:1},pst={key:2},hst={key:0},mst={key:0},gst={key:1},yst={key:0},_st={key:2},bst={key:1,class:"mb-2"},wst={class:"text-hy-text-secondary h-[30px] leading-[30px]"},Cst={key:0,class:"py-1 box-border h-full bg-hy-dialog-bg-3 rounded"},Est={class:"w-full h-[34px] px-2 box-border flex justify-between items-center"},kst={key:0,class:"ml-2 border-[2px] box-border border-hy-border-2 flex items-center justify-center h-[26px] px-2 rounded"},vst={class:"h-[40%] box-border px-2 mt-1"},Sst={class:"w-full h-full box-border bg-hy-dialog-bg-2 rounded p-2 overflow-y-auto overflow-x-hidden"},Nst={class:"flex px-2 mt-1"},xst={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center mr-2"},Tst={class:"text-hy-text-secondary"},Lst={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center"},Ost={class:"text-hy-text-secondary"},$st={class:"font-bold"},Dst={key:1,class:"h-full py-1 bg-hy-dialog-bg-3 rounded"},Pst={class:"w-full h-full flex items-center justify-center text-hy-text-secondary box-border"},Ist={class:"r-f tac flex flex-col items-center justify-center text-center text-sm"},Mst={class:"mt-3"},Ast={class:"mt-1"},Vst={class:"flex flex-grow h-0 px-4 box-border"},Rst={class:"text-xs px-2 leading-[22px]"},Bst={class:"flex w-full"},Fst={class:"flex-shrink-0"},zst={class:"text-right font-bold flex-grow w-0"},Ust={class:"flex w-full"},jst={class:"flex-shrink-0 tracking-[4px]"},Wst={class:"text-right font-bold flex-grow w-0"},Hst={class:"flex w-full"},Gst={class:"flex-shrink-0 tracking-[4px]"},Kst={class:"text-right font-bold flex-grow w-0"},Yst={class:"flex w-full"},qst={class:"flex-shrink-0 tracking-[4px]"},Zst={class:"text-right font-bold flex-grow w-0 text-hy-success"},Jst={class:"flex w-full"},Xst={class:"flex-shrink-0 tracking-[4px]"},Qst={class:"text-right font-bold flex-grow w-0 text-hy-danger"},elt={class:"flex-1 flex"},tlt={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},nlt={class:"flex-grow w-0 text-center truncate"},olt={class:"flex-1 flex"},rlt={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},alt={class:"flex-grow w-0 text-center text-hy-success truncate"},ilt={class:"flex-1 flex"},slt={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},llt={class:"flex-grow w-0 text-center text-hy-danger truncate"},clt={class:"relative mt-3 mb-2 min-w-[160px]"},dlt={class:"relative h-[26px] !leading-[26px] text-center border border-hy-border-2 rounded text-hy-text-secondary text-xs flex overflow-hidden"},ult=["onClick"],flt={class:"flex-grow h-0 px-2 overflow-x-hidden overflow-y-auto"},plt=t.createElementVNode("div",{class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},null,-1),hlt={key:1,class:"w-full shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},mlt={class:"r-f tac flex flex-col justify-center items-center"},glt={class:"mt-3 text-sm"},ylt=t.defineComponent({__name:"spot-check-details",setup(e,{expose:n}){const{dialogVisible:o,checkStatus:r,checkStatusList:i,checkStatusProgress:a,close:s,form:l,navigationList:c,navigationStatus:d,navigationStatusProgress:f,orgGroupInsertTemp:u,orgNameList:p,railNameList:h,setCheckStatus:g,setNavigationStatus:m,spotCheckTaskDeviceChange:_,spotCheckTaskDeviceCountStatus:b,show:C,spotCheckTaskDeviceRef:w}=zit();return n({show:C}),(E,N)=>{const S=t.resolveComponent("svg-icon"),v=t.resolveComponent("el-col"),x=t.resolveComponent("el-row"),T=t.resolveComponent("el-popover"),D=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(D,{modelValue:t.unref(o),"onUpdate:modelValue":N[1]||(N[1]=V=>t.isRef(o)?o.value=V:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"820px"},{default:t.withCtx(()=>[t.createElementVNode("div",Uit,[t.createElementVNode("div",jit,[t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("spotCheckDetails")),1),t.createElementVNode("div",{class:"iconCloseBox clickBox closeBox absolute top-[-2px] right-[-2px] cursor-pointer",onClick:N[0]||(N[0]=(...V)=>t.unref(s)&&t.unref(s)(...V))},[t.createVNode(S,{name:"icon-close",width:"26",height:"26","class-name":"svgBox click-box text-hy-text-danger"})])]),t.createElementVNode("div",Wit,[t.createElementVNode("div",Hit,[t.createElementVNode("div",Git,[t.createElementVNode("div",{style:t.normalizeStyle([{left:`${t.unref(f)}%`},{background:"linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%)"}]),class:"rounded-[4px_4px_0_0] absolute top-0 left-0 w-[96px] h-full duration-500"},null,4),t.createElementVNode("ul",Kit,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),(V,R)=>(t.openBlock(),t.createElementBlock("li",{key:R,class:t.normalizeClass([{"text-hy-text-main font-bold":V.value===t.unref(d)},"clickBox cursor-pointer px-2 w-[96px] box-border"]),onClick:q=>t.unref(m)(V.value)},t.toDisplayString(V.label),11,Yit))),128))])])]),t.withDirectives(t.createElementVNode("div",qit,[t.createVNode(x,{gutter:8,class:"w-full h-full"},{default:t.withCtx(()=>[t.createVNode(v,{span:8,class:"h-full"},{default:t.withCtx(()=>[t.createElementVNode("div",Zit,[t.createElementVNode("div",Jit,[t.createElementVNode("div",Xit,[t.createElementVNode("div",Qit,t.toDisplayString(t.unref(le)("spotCheckPersonnel")),1),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(t.unref(l).name)+" ",1),t.createElementVNode("span",est," ("+t.toDisplayString(t.unref(l).jobNum)+")",1)])]),t.createElementVNode("div",tst,[t.createElementVNode("div",nst,t.toDisplayString(t.unref(le)("department")),1),t.createElementVNode("div",null,t.toDisplayString(t.unref(l).orgName),1)]),t.createElementVNode("div",ost,[t.createElementVNode("div",rst,t.toDisplayString(t.unref(le)("spotCheckTime")),1),t.createElementVNode("div",null,t.toDisplayString(t.unref(l).checkDtm),1)]),t.createElementVNode("div",ast,[t.createElementVNode("div",ist,t.toDisplayString(t.unref(le)("spotCheckType")),1),t.createElementVNode("div",null,t.toDisplayString(t.unref(l).checkType===1?t.unref(le)("rangeCheck"):t.unref(le)("randomCheck")),1)]),t.createElementVNode("div",sst,[t.createElementVNode("div",lst,t.toDisplayString(t.unref(le)("spotCheckMethod")),1),t.createElementVNode("div",null,t.toDisplayString(t.unref(l).checkStyle===1?t.unref(le)("message"):t.unref(le)("call")),1)]),t.unref(l).checkType===1?(t.openBlock(),t.createElementBlock("div",cst,[t.createElementVNode("div",dst,[t.createTextVNode(t.toDisplayString(t.unref(le)("samplingScope"))+" ",1),t.unref(l).checkScope===1?(t.openBlock(),t.createElementBlock("span",ust,t.toDisplayString(t.unref(le)("regionalSpotCheck")),1)):t.unref(l).checkScope===2?(t.openBlock(),t.createElementBlock("span",fst,t.toDisplayString(t.unref(le)("departmentSpotCheck")),1)):t.unref(l).checkScope===3?(t.openBlock(),t.createElementBlock("span",pst,t.toDisplayString(t.unref(le)("deviceSpotCheck")),1)):t.createCommentVNode("",!0),t.createTextVNode(" ) ")]),t.unref(l).checkScope===1?(t.openBlock(),t.createElementBlock("div",hst,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(h),(V,R)=>(t.openBlock(),t.createElementBlock("span",{key:`${R}_orgNameList`},[t.createTextVNode(t.toDisplayString(V)+" ",1),R!==t.unref(h).length-1?(t.openBlock(),t.createElementBlock("span",mst,"、")):t.createCommentVNode("",!0)]))),128))])):t.unref(l).checkScope===2?(t.openBlock(),t.createElementBlock("div",gst,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(p),(V,R)=>(t.openBlock(),t.createElementBlock("span",{key:`${R}_orgNameList`},[t.createTextVNode(t.toDisplayString(V)+" ",1),R!==t.unref(p).length-1?(t.openBlock(),t.createElementBlock("span",yst,"、")):t.createCommentVNode("",!0)]))),128))])):(t.openBlock(),t.createElementBlock("div",_st,[t.createElementVNode("span",null,t.toDisplayString(t.unref(l).checkNum||0)+" "+t.toDisplayString(t.unref(le)("device")),1)]))])):(t.openBlock(),t.createElementBlock("div",bst,[t.createElementVNode("div",wst,[t.createTextVNode(t.toDisplayString(t.unref(le)("samplingScope"))+" ",1),t.createElementVNode("span",null,t.toDisplayString(t.unref(le)("randomCheck")),1),t.createTextVNode(" ) ")]),t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString(t.unref(l).limitNum||0)+" "+t.toDisplayString(t.unref(le)("device")),1)])]))])])]),_:1}),t.createVNode(v,{span:16,class:"h-full"},{default:t.withCtx(()=>[t.unref(l).checkStyle===1?(t.openBlock(),t.createElementBlock("div",Cst,[t.createElementVNode("div",Est,[t.createElementVNode("div",null,t.toDisplayString(t.unref(le)("messageContent")),1),t.unref(l).playMsg===1?(t.openBlock(),t.createElementBlock("div",kst," TTS"+t.toDisplayString(t.unref(le)("textToSpeech")),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",vst,[t.createElementVNode("div",Sst,t.toDisplayString(t.unref(l).msgContent),1)]),t.createElementVNode("div",Nst,[t.createElementVNode("div",xst,[t.createElementVNode("div",Tst,t.toDisplayString(t.unref(le)("answerMethod")),1),t.createElementVNode("span",null,t.toDisplayString(t.unref(l).actionType===1?t.unref(le)("punchIn"):t.unref(le)("reply")),1)]),t.createElementVNode("div",Lst,[t.createElementVNode("div",Ost,t.toDisplayString(t.unref(le)("answerTime")),1),t.createElementVNode("span",null,[t.createElementVNode("span",$st,t.toDisplayString(t.unref(l).actionTime),1),t.createTextVNode(" "+t.toDisplayString(t.unref(le)("second")),1)])])])])):(t.openBlock(),t.createElementBlock("div",Dst,[t.createElementVNode("div",Pst,[t.createElementVNode("div",Ist,[t.createVNode(S,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),t.createElementVNode("div",Mst,t.toDisplayString(t.unref(le)("callSpotCheck")),1),t.createElementVNode("div",Ast,t.toDisplayString(t.unref(le)("backupWillBeCheckedByIntercomAnswering")),1)])])]))]),_:1})]),_:1})],512),[[t.vShow,t.unref(d)===1]]),t.withDirectives(t.createElementVNode("div",Vst,[t.unref(l).checkNum!==0?(t.openBlock(),t.createBlock(x,{key:0,gutter:8,class:"w-full h-full"},{default:t.withCtx(()=>[t.createVNode(v,{span:t.unref(l).actionType===1?24:8,class:"h-full !flex flex-col"},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass([{"flex-col":t.unref(l).actionType!==1,"justify-between items-center":t.unref(l).actionType===1},"flex-shrink-0 flex px-2"])},[t.createVNode(T,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:t.withCtx(()=>[t.createElementVNode("span",null,[t.createElementVNode("div",{class:t.normalizeClass([{"min-w-[248px]":t.unref(l).actionType===1},"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-bg-2 rounded flex font-bold"])},[t.createElementVNode("div",elt,[t.createElementVNode("div",tlt,[t.createVNode(S,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),t.createElementVNode("div",nlt,t.toDisplayString(t.unref(l).checkNum||"- -"),1)]),t.createElementVNode("div",olt,[t.createElementVNode("div",rlt,[t.createVNode(S,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),t.createElementVNode("div",alt,t.toDisplayString(t.unref(l).finishNum||"- -"),1)]),t.createElementVNode("div",ilt,[t.createElementVNode("div",slt,[t.createVNode(S,{name:"base-danger-state","class-name":"w-[16px] h-[16px] text-hy-danger"})]),t.createElementVNode("div",llt,t.toDisplayString(t.unref(l).notFinishNum||"- -"),1)])],2)])]),default:t.withCtx(()=>[t.createElementVNode("ul",Rst,[t.createElementVNode("li",Bst,[t.createElementVNode("span",Fst,t.toDisplayString(t.unref(le)("numberOfPeopleToBeChecked")),1),t.createElementVNode("div",zst,t.toDisplayString(t.unref(l).checkNum||"- -"),1)]),t.createElementVNode("li",Ust,[t.createElementVNode("span",jst,t.toDisplayString(t.unref(le)("waitingToReceive")),1),t.createElementVNode("div",Wst,t.toDisplayString(t.unref(l).beReceiveNum||"- -"),1)]),t.createElementVNode("li",Hst,[t.createElementVNode("span",Gst,t.toDisplayString(t.unref(le)("receiving")),1),t.createElementVNode("div",Kst,t.toDisplayString(t.unref(l).receivingNum||"- -"),1)]),t.createElementVNode("li",Yst,[t.createElementVNode("span",qst,t.toDisplayString(t.unref(le)("completed")),1),t.createElementVNode("div",Zst,t.toDisplayString(t.unref(l).finishNum||"- -"),1)]),t.createElementVNode("li",Jst,[t.createElementVNode("span",Xst,t.toDisplayString(t.unref(le)("uncompleted")),1),t.createElementVNode("div",Qst,t.toDisplayString(t.unref(l).notFinishNum||"- -"),1)])])]),_:1}),t.createElementVNode("div",clt,[t.createElementVNode("div",{style:t.normalizeStyle([{left:`${t.unref(a)}%`},{background:"linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%)"}]),class:t.normalizeClass([{"w-[75px]":t.unref(l).actionType!==1,"w-[54px]":t.unref(l).actionType===1},"rounded-[4px_4px_0_0] absolute top-0 left-0 h-full duration-500"])},null,6),t.createElementVNode("ul",dlt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(i),(V,R)=>(t.openBlock(),t.createElementBlock("li",{key:`${R}_checkStatusList`,class:t.normalizeClass([{"text-hy-text-main":V.value===t.unref(r)},"flex-1 cursor-pointer hover:opacity-60"]),onClick:q=>t.unref(g)(V.value)},t.toDisplayString(V.label),11,ult))),128))])])],2),t.createElementVNode("div",flt,[t.unref(l).id?(t.openBlock(),t.createBlock(EL,{key:0,ref_key:"spotCheckTaskDeviceRef",ref:w,"params-span":t.unref(l).actionType===1?8:24,form:t.unref(l),"subscribe-status":!1,onChange:t.unref(_),onOnCountStatus:t.unref(b)},null,8,["params-span","form","onChange","onOnCountStatus"])):t.createCommentVNode("",!0)])]),_:1},8,["span"]),t.unref(l).actionType!==1?(t.openBlock(),t.createBlock(v,{key:0,span:16,class:"h-full"},{default:t.withCtx(()=>[plt]),_:1})):t.createCommentVNode("",!0)]),_:1})):(t.openBlock(),t.createElementBlock("div",hlt,[t.createElementVNode("div",mlt,[t.createVNode(S,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),t.createElementVNode("div",glt,t.toDisplayString(t.unref(le)("noDeviceSupportsThisSpotCheck")),1)])]))],512),[[t.vShow,t.unref(d)===2]])])])]),_:1},8,["modelValue"])}}});var f7=(e=>(e[e.LAW_ENFORCEMENT_RECORDER=1]="LAW_ENFORCEMENT_RECORDER",e[e.WALKIE_TALKIE=2]="WALKIE_TALKIE",e[e.FIRE_DISPATCH_DESK=3]="FIRE_DISPATCH_DESK",e[e.FIRE_DUTY_DESK=4]="FIRE_DUTY_DESK",e[e.PHONE_APP=5]="PHONE_APP",e[e.CONTROL_THE_BALL=6]="CONTROL_THE_BALL",e[e.IPC_CAMERA=7]="IPC_CAMERA",e[e.HELMET=8]="HELMET",e[e.FLASHLIGHT=9]="FLASHLIGHT",e[e.WORK_LICENSE=10]="WORK_LICENSE",e[e.DRONE=11]="DRONE",e[e.CAR_PTZ=12]="CAR_PTZ",e[e.CASCADE_DEVICE_DOWN=13]="CASCADE_DEVICE_DOWN",e[e.JT808=14]="JT808",e[e.NATIONAL_STANDARD_RECORDER=15]="NATIONAL_STANDARD_RECORDER",e[e.RTOS_DEVICE=16]="RTOS_DEVICE",e[e.WATCH=17]="WATCH",e))(f7||{});Rt([{lng:113.521054,lat:22.234435},{lng:113.525726,lat:22.238109},{lng:113.528097,lat:22.24105},{lng:113.532482,lat:22.240578},{lng:113.54959,lat:22.246714},{lng:113.54959,lat:22.246714},{lng:113.54959,lat:22.246714},{lng:113.549644,lat:22.246729},{lng:113.562078,lat:22.252202},{lng:113.574656,lat:22.257741},{lng:113.583534,lat:22.261878},{lng:113.583547,lat:22.261891},{lng:113.584437,lat:22.260837},{lng:113.58547,lat:22.260161},{lng:113.586306,lat:22.259726},{lng:113.587034,lat:22.259688},{lng:113.587519,lat:22.260056},{lng:113.587914,lat:22.260827},{lng:113.588085,lat:22.261151},{lng:113.587833,lat:22.261577},{lng:113.588067,lat:22.26197},{lng:113.588543,lat:22.26192},{lng:113.588866,lat:22.261501},{lng:113.589477,lat:22.2613},{lng:113.589935,lat:22.260758},{lng:113.59033,lat:22.260491},{lng:113.590851,lat:22.260239},{lng:113.592011,lat:22.260673},{lng:113.593305,lat:22.261541},{lng:113.593727,lat:22.261708},{lng:113.59423,lat:22.261423},{lng:113.594338,lat:22.260671},{lng:113.593637,lat:22.259734},{lng:113.592344,lat:22.258733},{lng:113.591176,lat:22.258249},{lng:113.590942,lat:22.25768},{lng:113.591517,lat:22.257112},{lng:113.592335,lat:22.25701},{lng:113.592312,lat:22.25663},{lng:113.591683,lat:22.256651},{lng:113.591059,lat:22.25648},{lng:113.591023,lat:22.25574},{lng:113.591203,lat:22.254821},{lng:113.591935,lat:22.253252},{lng:113.59282,lat:22.252159},{lng:113.593309,lat:22.252027},{lng:113.594041,lat:22.252158},{lng:113.594487,lat:22.252804},{lng:113.594954,lat:22.252418},{lng:113.594667,lat:22.251883},{lng:113.594577,lat:22.251491},{lng:113.5953,lat:22.251795},{lng:113.596881,lat:22.246408},{lng:113.59587,lat:22.244818},{lng:113.597416,lat:22.244934},{lng:113.599339,lat:22.245585},{lng:113.59977,lat:22.246336},{lng:113.600475,lat:22.246906},{lng:113.601176,lat:22.248661},{lng:113.601787,lat:22.249162},{lng:113.602685,lat:22.249362},{lng:113.603507,lat:22.249042},{lng:113.60455,lat:22.249275},{lng:113.605884,lat:22.248891},{lng:113.605862,lat:22.246698},{lng:113.606419,lat:22.245326},{lng:113.606005,lat:22.244139},{lng:113.60477,lat:22.243573},{lng:113.603962,lat:22.243942},{lng:113.603333,lat:22.245114},{lng:113.602303,lat:22.245247},{lng:113.6018,lat:22.244679},{lng:113.600956,lat:22.244228},{lng:113.600094,lat:22.244463},{lng:113.599608,lat:22.245082},{lng:113.597884,lat:22.244582},{lng:113.595731,lat:22.244318},{lng:113.594366,lat:22.241711},{lng:113.594042,lat:22.236492},{lng:113.593108,lat:22.23753},{lng:113.588903,lat:22.238973},{lng:113.587897,lat:22.235529},{lng:113.589801,lat:22.234958},{lng:113.590485,lat:22.232649},{lng:113.590593,lat:22.230508},{lng:113.585813,lat:22.231751},{lng:113.583153,lat:22.232556},{lng:113.581105,lat:22.232826},{lng:113.577511,lat:22.231759},{lng:113.574204,lat:22.230492},{lng:113.570144,lat:22.230596},{lng:113.566657,lat:22.228526},{lng:113.564645,lat:22.225762},{lng:113.55796,lat:22.214868},{lng:113.562992,lat:22.213993},{lng:113.573828,lat:22.208137},{lng:113.574907,lat:22.208153},{lng:113.577152,lat:22.211697},{lng:113.582229,lat:22.211522},{lng:113.585103,lat:22.211553},{lng:113.587826,lat:22.210989},{lng:113.591025,lat:22.209665},{lng:113.586533,lat:22.202017},{lng:113.586255,lat:22.194888},{lng:113.583847,lat:22.193284},{lng:113.576228,lat:22.193359},{lng:113.576083,lat:22.199784},{lng:113.576479,lat:22.205238},{lng:113.570755,lat:22.208498},{lng:113.563279,lat:22.21252},{lng:113.560691,lat:22.213594},{lng:113.557493,lat:22.214333},{lng:113.552246,lat:22.21387},{lng:113.550179,lat:22.213998},{lng:113.549128,lat:22.214015},{lng:113.547871,lat:22.212537},{lng:113.546361,lat:22.210171},{lng:113.543513,lat:22.210734},{lng:113.541267,lat:22.210796},{lng:113.539667,lat:22.210562},{lng:113.538167,lat:22.209527},{lng:113.539767,lat:22.204833},{lng:113.540081,lat:22.203536},{lng:113.538248,lat:22.200242},{lng:113.537215,lat:22.200204},{lng:113.521067,lat:22.234444},{lng:113.522631,lat:22.232034},{lng:113.523529,lat:22.230628},{lng:113.536514,lat:22.200757}]);const _lt={poiServer:{id:71,tenantId:"4cdd37aa2bc047b4b76f96d564b53d93",configType:4,serverUrl:"https://restapi.amap.com",defaultState:null,defaultSelectIdList:null,showMinZoom:null,showMaxZoom:null,polyIdList:null,polylineIdList:null,layerIdList:null,mapKey:"abce726a2fd9f546e0b4652822c33638",mapSk:null,mapType:null,defaultMapStyle:null,bmHttpsUrl:null,bmUiName:null,bmCorrect:null,maxZoom:null,layersUrl:null,mapPoiType:"gaode",mapBound:null,satelliteMap:null,poiCoordinate:1,city:"广东省-深圳市",citylimit:0,mapPlatform:null,mapServerHost:null,mapServerAk:null,mapServerSk:null,layerName:null,layerId:null,defaultDisplayType:null,boxSearchType:null,markerType:null,layerMaxZoom:null,layerMinZoom:null,markerMinZoom:null,markerMaxZoom:null,layerType:null,typeName:null,icon:null},bmCorrect:1,maxZoom:"18",layersUrl:"http://t7.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk={mapKey},http://t7.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk={mapKey}",mapKey:"f68ec1e89dd79c485d62b2e56974ff65",defaultMapStyle:"amap://styles/b5d280643c6525a8f6b2a07521f639ef",mapSk:"024a144126a2a762fee60e0ca1d0aeeb",bmHttpsUrl:null,bmUiName:null,mapType:Oo.AMAP,mapPoiType:Oo.AMAP,satelliteMap:2},blt={id:"amap-container",class:"w-full h-screen"},wlt={class:"flex gap-x-2 fixed z-[9999]"},Clt=[fn("span",null,"开始",-1)],Elt=[fn("span",null,"暂停",-1)],klt=[fn("span",null,"继续",-1)],vlt=[fn("span",null,"删除",-1)],Slt=zn({__name:"amap-provider",setup(e){const n=Fa();Rt();const o=Fa(null);Fa(),Fa(),Fa(null);const r=Rt();Fa();const i=Fa();Fa();const a=Rt(Rd.DIY_LAYER);yd(()=>{s()});function s(){const d=BT.createMapProvider(Oo.AMAP);n.value=new MT(d,_lt),l()}async function l(){o.value=await n.value.map("amap-container",{minZoom:8,maxZoom:16,center:[22.238567,113.56097],zoom:12.5,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,layerType:a.value}),o.value.on("complete",d=>{c([22.58,113.91])}),o.value.on("left-click",d=>console.log(d)),o.value.on("right-click",d=>console.log(d))}function c(d){var f;r.value&&n.value.removePopup(r.value);const u=`
291
291
  <div class="flex flex-col" style="width: 18.375rem">
292
292
  <div class="text-[.875rem]" style="padding: .5rem">
293
293
  豪方天际广场