command-center-v3-common 0.0.140 → 0.0.142

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.
@@ -1,4 +1,4 @@
1
- (function(ae,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("debug"),require("element-plus"),require("command-center-v3-utils"),require("hy-map-hub"),require("wujie-vue3")):typeof define=="function"&&define.amd?define(["exports","vue","debug","element-plus","command-center-v3-utils","hy-map-hub","wujie-vue3"],e):(ae=typeof globalThis<"u"?globalThis:ae||self,e(ae["command-center-v3-common"]={},ae.Vue,ae.debug,ae.ElementPlus,ae.commandCenterV3Utils,ae.hyMapHub))})(this,function(ae,e,Nt,pe,mt,bn){"use strict";var OU=Object.defineProperty;var RU=(ae,e,Nt)=>e in ae?OU(ae,e,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):ae[e]=Nt;var Nn=(ae,e,Nt)=>(RU(ae,typeof e!="symbol"?e+"":e,Nt),Nt);var ma=typeof document<"u"?document.currentScript:null;const Gr={class:"relative"},$e=e.defineComponent({__name:"index",props:{prefix:{default:"icon"},name:{default:""},className:{default:""},color:{default:""},width:{default:""},height:{default:""},zIndex:{default:10},top:{default:-1},left:{default:-1},right:{default:-1},bottom:{default:-1}},setup(t){return(n,o)=>{const a=e.resolveComponent("SvgIcon");return e.openBlock(),e.createElementBlock("div",Gr,[e.createElementVNode("div",{class:"absolute w-5 h-5 top-[-1px] left-[-1px]",style:e.normalizeStyle(`z-index: ${n.zIndex}; top: ${n.top}px; left: ${n.left}px`)},[e.createVNode(a,{name:n.name,color:n.color,width:n.width,height:n.height,"class-name":n.className},null,8,["name","color","width","height","class-name"])],4),e.createElementVNode("div",{class:"absolute w-5 h-5 top-[-1px] right-[-1px] rotate-90",style:e.normalizeStyle(`z-index: ${n.zIndex}; top: ${n.top}px; right: ${n.right}px`)},[e.createVNode(a,{name:n.name,color:n.color,width:n.width,height:n.height,"class-name":n.className},null,8,["name","color","width","height","class-name"])],4),e.createElementVNode("div",{class:"absolute w-5 h-5 bottom-[-1px] left-[-1px] rotate-[-90deg]",style:e.normalizeStyle(`z-index: ${n.zIndex}; bottom: ${n.bottom}px; left: ${n.left}px`)},[e.createVNode(a,{name:n.name,color:n.color,width:n.width,height:n.height,"class-name":n.className},null,8,["name","color","width","height","class-name"])],4),e.createElementVNode("div",{class:"absolute w-5 h-5 bottom-[-1px] right-[-1px] rotate-180",style:e.normalizeStyle(`z-index: ${n.zIndex}; bottom: ${n.bottom}px; right: ${n.right}px`)},[e.createVNode(a,{name:n.name,color:n.color,width:n.width,height:n.height,"class-name":n.className},null,8,["name","color","width","height","class-name"])],4),e.renderSlot(n.$slots,"content")])}}}),qr=["primary","success","info","warning","danger","error"],Kr={primary:"#2d8cf0",success:"#19be6b",info:"#909399",warning:"#ff9900",danger:"#35495E",error:"#FF0000"},Xr=t=>Kr[t];function Jr(t){return qr.reduce((n,o)=>(n[o]=(...a)=>t(o,...a),n),{})}function Zr(t,n,o,a,...s){const l=Xr(t),r=Nt(n),i=`%c ${o} %c ${a} %c ${s.length?"%o":""}`,c=`background:${l};border:1px solid ${l}; padding: 1px; border-radius: 4px 0 0 4px; color: #fff;`,p=`border:1px solid ${l}; padding: 1px; border-radius: 0 4px 4px 0; color: ${l};`;r(i,c,p,"background:transparent",...s),localStorage.debug=`${n}*`}const Qr=Jr(Zr);class ha{constructor(n){Nn(this,"storage");this.storage=n===0?localStorage:sessionStorage}setCache(n,o){o&&this.storage.setItem(n,JSON.stringify(o))}getCache(n){const o=this.storage.getItem(n);if(o)return JSON.parse(o)}removeCache(n){this.storage.removeItem(n)}clear(){this.storage.clear()}}const vr=new ha(0),Ue=new ha(1);var ei={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};/*!
1
+ (function(ae,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("debug"),require("element-plus"),require("command-center-v3-utils"),require("hy-map-hub"),require("wujie-vue3")):typeof define=="function"&&define.amd?define(["exports","vue","debug","element-plus","command-center-v3-utils","hy-map-hub","wujie-vue3"],e):(ae=typeof globalThis<"u"?globalThis:ae||self,e(ae["command-center-v3-common"]={},ae.Vue,ae.debug,ae.ElementPlus,ae.commandCenterV3Utils,ae.hyMapHub))})(this,function(ae,e,Nt,pe,mt,bn){"use strict";var RU=Object.defineProperty;var PU=(ae,e,Nt)=>e in ae?RU(ae,e,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):ae[e]=Nt;var Nn=(ae,e,Nt)=>(PU(ae,typeof e!="symbol"?e+"":e,Nt),Nt);var ma=typeof document<"u"?document.currentScript:null;const Gr={class:"relative"},$e=e.defineComponent({__name:"index",props:{prefix:{default:"icon"},name:{default:""},className:{default:""},color:{default:""},width:{default:""},height:{default:""},zIndex:{default:10},top:{default:-1},left:{default:-1},right:{default:-1},bottom:{default:-1}},setup(t){return(n,o)=>{const a=e.resolveComponent("SvgIcon");return e.openBlock(),e.createElementBlock("div",Gr,[e.createElementVNode("div",{class:"absolute w-5 h-5 top-[-1px] left-[-1px]",style:e.normalizeStyle(`z-index: ${n.zIndex}; top: ${n.top}px; left: ${n.left}px`)},[e.createVNode(a,{name:n.name,color:n.color,width:n.width,height:n.height,"class-name":n.className},null,8,["name","color","width","height","class-name"])],4),e.createElementVNode("div",{class:"absolute w-5 h-5 top-[-1px] right-[-1px] rotate-90",style:e.normalizeStyle(`z-index: ${n.zIndex}; top: ${n.top}px; right: ${n.right}px`)},[e.createVNode(a,{name:n.name,color:n.color,width:n.width,height:n.height,"class-name":n.className},null,8,["name","color","width","height","class-name"])],4),e.createElementVNode("div",{class:"absolute w-5 h-5 bottom-[-1px] left-[-1px] rotate-[-90deg]",style:e.normalizeStyle(`z-index: ${n.zIndex}; bottom: ${n.bottom}px; left: ${n.left}px`)},[e.createVNode(a,{name:n.name,color:n.color,width:n.width,height:n.height,"class-name":n.className},null,8,["name","color","width","height","class-name"])],4),e.createElementVNode("div",{class:"absolute w-5 h-5 bottom-[-1px] right-[-1px] rotate-180",style:e.normalizeStyle(`z-index: ${n.zIndex}; bottom: ${n.bottom}px; right: ${n.right}px`)},[e.createVNode(a,{name:n.name,color:n.color,width:n.width,height:n.height,"class-name":n.className},null,8,["name","color","width","height","class-name"])],4),e.renderSlot(n.$slots,"content")])}}}),qr=["primary","success","info","warning","danger","error"],Kr={primary:"#2d8cf0",success:"#19be6b",info:"#909399",warning:"#ff9900",danger:"#35495E",error:"#FF0000"},Xr=t=>Kr[t];function Jr(t){return qr.reduce((n,o)=>(n[o]=(...a)=>t(o,...a),n),{})}function Zr(t,n,o,a,...s){const l=Xr(t),r=Nt(n),i=`%c ${o} %c ${a} %c ${s.length?"%o":""}`,c=`background:${l};border:1px solid ${l}; padding: 1px; border-radius: 4px 0 0 4px; color: #fff;`,p=`border:1px solid ${l}; padding: 1px; border-radius: 0 4px 4px 0; color: ${l};`;r(i,c,p,"background:transparent",...s),localStorage.debug=`${n}*`}const Qr=Jr(Zr);class ha{constructor(n){Nn(this,"storage");this.storage=n===0?localStorage:sessionStorage}setCache(n,o){o&&this.storage.setItem(n,JSON.stringify(o))}getCache(n){const o=this.storage.getItem(n);if(o)return JSON.parse(o)}removeCache(n){this.storage.removeItem(n)}clear(){this.storage.clear()}}const vr=new ha(0),Ue=new ha(1);var ei={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};/*!
2
2
  * shared v9.13.1
3
3
  * (c) 2024 kazuya kawaguchi
4
4
  * Released under the MIT License.
@@ -20,7 +20,7 @@ ${p}`:c)}else throw r},onCacheKey:r=>ni(n,o,r)}}function $c(t){if(Q(t))return t;
20
20
  * vue-i18n v9.13.1
21
21
  * (c) 2024 kazuya kawaguchi
22
22
  * Released under the MIT License.
23
- */const Uc="9.13.1";function zc(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(st().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(st().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(st().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(st().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(st().__INTLIFY_PROD_DEVTOOLS__=!1)}const ps=je.__EXTEND_POINT__,rt=En(ps),De={FALLBACK_TO_ROOT:ps,NOT_SUPPORTED_PRESERVE:rt(),NOT_SUPPORTED_FORMATTER:rt(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:rt(),NOT_SUPPORTED_GET_CHOICE_INDEX:rt(),COMPONENT_NAME_LEGACY_COMPATIBLE:rt(),NOT_FOUND_PARENT_SCOPE:rt(),IGNORE_OBJ_FLATTEN:rt(),NOTICE_DROP_ALLOW_COMPOSITION:rt(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:rt()},Wc={[De.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[De.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[De.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[De.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[De.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[De.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[De.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[De.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[De.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[De.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function He(t,...n){return eo(Wc[t],...n)}const fs=Le.__EXTEND_POINT__,Ye=En(fs),ge={UNEXPECTED_RETURN_TYPE:fs,INVALID_ARGUMENT:Ye(),MUST_BE_CALL_SETUP_TOP:Ye(),NOT_INSTALLED:Ye(),NOT_AVAILABLE_IN_LEGACY_MODE:Ye(),REQUIRED_VALUE:Ye(),INVALID_VALUE:Ye(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ye(),NOT_INSTALLED_WITH_PROVIDE:Ye(),UNEXPECTED_ERROR:Ye(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ye(),BRIDGE_SUPPORT_VUE_2_ONLY:Ye(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ye(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ye(),__EXTEND_POINT__:Ye()};function Ie(t,...n){return Ot(t,null,process.env.NODE_ENV!=="production"?{messages:jc,args:n}:void 0)}const jc={[ge.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[ge.INVALID_ARGUMENT]:"Invalid argument",[ge.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[ge.NOT_INSTALLED]:"Need to install with `app.use` function",[ge.UNEXPECTED_ERROR]:"Unexpected error",[ge.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[ge.REQUIRED_VALUE]:"Required in value: {0}",[ge.INVALID_VALUE]:"Invalid value",[ge.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[ge.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[ge.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[ge.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[ge.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[ge.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},mo=tt("__translateVNode"),ho=tt("__datetimeParts"),uo=tt("__numberParts"),St=tt("__enableEmitter"),nn=tt("__disableEmitter"),ms=tt("__setPluralRules"),hs=tt("__injectWithOption"),_o=tt("__dispose");function on(t){if(!ye(t))return t;for(const n in t)if(wn(t,n))if(!n.includes("."))ye(t[n])&&on(t[n]);else{const o=n.split("."),a=o.length-1;let s=t,l=!1;for(let r=0;r<a;r++){if(o[r]in s||(s[o[r]]={}),!ye(s[o[r]])){process.env.NODE_ENV!=="production"&&Ae(He(De.IGNORE_OBJ_FLATTEN,{key:o[r]})),l=!0;break}s=s[o[r]]}l||(s[o[a]]=t[n],delete t[n]),ye(s[o[a]])&&on(s[o[a]])}return t}function In(t,n){const{messages:o,__i18n:a,messageResolver:s,flatJson:l}=n,r=re(o)?o:Ee(a)?{}:{[t]:{}};if(Ee(a)&&a.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:c,resource:p}=i;c?(r[c]=r[c]||{},Tn(p,r[c])):Tn(p,r)}else Q(i)&&Tn(JSON.parse(i),r)}),s==null&&l)for(const i in r)wn(r,i)&&on(r[i]);return r}function us(t){return t.type}function _s(t,n,o){let a=ye(n.messages)?n.messages:{};"__i18nGlobal"in o&&(a=In(t.locale.value,{messages:a,__i18n:o.__i18nGlobal}));const s=Object.keys(a);s.length&&s.forEach(l=>{t.mergeLocaleMessage(l,a[l])});{if(ye(n.datetimeFormats)){const l=Object.keys(n.datetimeFormats);l.length&&l.forEach(r=>{t.mergeDateTimeFormat(r,n.datetimeFormats[r])})}if(ye(n.numberFormats)){const l=Object.keys(n.numberFormats);l.length&&l.forEach(r=>{t.mergeNumberFormat(r,n.numberFormats[r])})}}}function gs(t){return e.createVNode(e.Text,null,t,0)}const ys="__INTLIFY_META__",xs=()=>[],Hc=()=>!1;let ks=0;function Ns(t){return(n,o,a,s)=>t(o,a,e.getCurrentInstance()||void 0,s)}const Yc=()=>{const t=e.getCurrentInstance();let n=null;return t&&(n=us(t)[ys])?{[ys]:n}:null};function go(t={},n){const{__root:o,__injectWithOption:a}=t,s=o===void 0,l=t.flatJson,r=Je?e.ref:e.shallowRef,i=!!t.translateExistCompatible;process.env.NODE_ENV!=="production"&&i&&Na(He(De.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=fe(t.inheritLocale)?t.inheritLocale:!0;const p=r(o&&c?o.locale.value:Q(t.locale)?t.locale:Mt),d=r(o&&c?o.fallbackLocale.value:Q(t.fallbackLocale)||Ee(t.fallbackLocale)||re(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:p.value),f=r(In(p.value,t)),m=r(re(t.datetimeFormats)?t.datetimeFormats:{[p.value]:{}}),_=r(re(t.numberFormats)?t.numberFormats:{[p.value]:{}});let y=o?o.missingWarn:fe(t.missingWarn)||ht(t.missingWarn)?t.missingWarn:!0,u=o?o.fallbackWarn:fe(t.fallbackWarn)||ht(t.fallbackWarn)?t.fallbackWarn:!0,N=o?o.fallbackRoot:fe(t.fallbackRoot)?t.fallbackRoot:!0,k=!!t.fallbackFormat,w=Ce(t.missing)?t.missing:null,b=Ce(t.missing)?Ns(t.missing):null,S=Ce(t.postTranslation)?t.postTranslation:null,V=o?o.warnHtmlMessage:fe(t.warnHtmlMessage)?t.warnHtmlMessage:!0,$=!!t.escapeParameter;const h=o?o.modifiers:re(t.modifiers)?t.modifiers:{};let g=t.pluralRules||o&&o.pluralRules,C;C=(()=>{s&&ja(null);const W={version:Uc,locale:p.value,fallbackLocale:d.value,messages:f.value,modifiers:h,pluralRules:g,missing:b===null?void 0:b,missingWarn:y,fallbackWarn:u,fallbackFormat:k,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:V,escapeParameter:$,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};W.datetimeFormats=m.value,W.numberFormats=_.value,W.__datetimeFormatters=re(C)?C.__datetimeFormatters:void 0,W.__numberFormatters=re(C)?C.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(W.__v_emitter=re(C)?C.__v_emitter:void 0);const K=Nc(W);return s&&ja(K),K})(),tn(C,p.value,d.value);function D(){return[p.value,d.value,f.value,m.value,_.value]}const T=e.computed({get:()=>p.value,set:W=>{p.value=W,C.locale=p.value}}),B=e.computed({get:()=>d.value,set:W=>{d.value=W,C.fallbackLocale=d.value,tn(C,p.value,W)}}),L=e.computed(()=>f.value),j=e.computed(()=>m.value),F=e.computed(()=>_.value);function M(){return Ce(S)?S:null}function z(W){S=W,C.postTranslation=W}function U(){return w}function R(W){W!==null&&(b=Ns(W)),w=W,C.missing=b}function Y(W,K){return W!=="translate"||!K.resolvedMessage}const X=(W,K,ce,we,kt,vn)=>{D();let vt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(C.fallbackContext=o?kc():void 0),vt=W(C)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(C.fallbackContext=void 0)}if(ce!=="translate exists"&&Be(vt)&&vt===$n||ce==="translate exists"&&!vt){const[Ft,FU]=K();if(process.env.NODE_ENV!=="production"&&o&&Q(Ft)&&Y(ce,FU)&&(N&&(An(u,Ft)||Ya(y,Ft))&&Ae(He(De.FALLBACK_TO_ROOT,{key:Ft,type:ce})),process.env.NODE_ENV!=="production")){const{__v_emitter:Yr}=C;Yr&&N&&Yr.emit("fallback",{type:ce,key:Ft,to:"global",groupId:`${ce}:${Ft}`})}return o&&N?we(o):kt(Ft)}else{if(vn(vt))return vt;throw Ie(ge.UNEXPECTED_RETURN_TYPE)}};function P(...W){return X(K=>Reflect.apply(va,null,[K,...W]),()=>io(...W),"translate",K=>Reflect.apply(K.t,K,[...W]),K=>K,K=>Q(K))}function v(...W){const[K,ce,we]=W;if(we&&!ye(we))throw Ie(ge.INVALID_ARGUMENT);return P(K,ce,Re({resolvedMessage:!0},we||{}))}function Te(...W){return X(K=>Reflect.apply(as,null,[K,...W]),()=>co(...W),"datetime format",K=>Reflect.apply(K.d,K,[...W]),()=>Bn,K=>Q(K))}function he(...W){return X(K=>Reflect.apply(rs,null,[K,...W]),()=>po(...W),"number format",K=>Reflect.apply(K.n,K,[...W]),()=>Bn,K=>Q(K))}function ke(W){return W.map(K=>Q(K)||Be(K)||fe(K)?gs(String(K)):K)}const J={normalize:ke,interpolate:W=>W,type:"vnode"};function ee(...W){return X(K=>{let ce;const we=K;try{we.processor=J,ce=Reflect.apply(va,null,[we,...W])}finally{we.processor=null}return ce},()=>io(...W),"translate",K=>K[mo](...W),K=>[gs(K)],K=>Ee(K))}function ie(...W){return X(K=>Reflect.apply(rs,null,[K,...W]),()=>po(...W),"number format",K=>K[uo](...W),xs,K=>Q(K)||Ee(K))}function le(...W){return X(K=>Reflect.apply(as,null,[K,...W]),()=>co(...W),"datetime format",K=>K[ho](...W),xs,K=>Q(K)||Ee(K))}function Z(W){g=W,C.pluralRules=g}function O(W,K){return X(()=>{if(!W)return!1;const ce=Q(K)?K:p.value,we=de(ce),kt=C.messageResolver(we,W);return i?kt!=null:gt(kt)||Ke(kt)||Q(kt)},()=>[W],"translate exists",ce=>Reflect.apply(ce.te,ce,[W,K]),Hc,ce=>fe(ce))}function G(W){let K=null;const ce=La(C,d.value,p.value);for(let we=0;we<ce.length;we++){const kt=f.value[ce[we]]||{},vn=C.messageResolver(kt,W);if(vn!=null){K=vn;break}}return K}function ne(W){const K=G(W);return K??(o?o.tm(W)||{}:{})}function de(W){return f.value[W]||{}}function _e(W,K){if(l){const ce={[W]:K};for(const we in ce)wn(ce,we)&&on(ce[we]);K=ce[W]}f.value[W]=K,C.messages=f.value}function Ve(W,K){f.value[W]=f.value[W]||{};const ce={[W]:K};if(l)for(const we in ce)wn(ce,we)&&on(ce[we]);K=ce[W],Tn(K,f.value[W]),C.messages=f.value}function A(W){return m.value[W]||{}}function I(W,K){m.value[W]=K,C.datetimeFormats=m.value,ls(C,W,K)}function H(W,K){m.value[W]=Re(m.value[W]||{},K),C.datetimeFormats=m.value,ls(C,W,K)}function te(W){return _.value[W]||{}}function Ne(W,K){_.value[W]=K,C.numberFormats=_.value,cs(C,W,K)}function me(W,K){_.value[W]=Re(_.value[W]||{},K),C.numberFormats=_.value,cs(C,W,K)}ks++,o&&Je&&(e.watch(o.locale,W=>{c&&(p.value=W,C.locale=W,tn(C,p.value,d.value))}),e.watch(o.fallbackLocale,W=>{c&&(d.value=W,C.fallbackLocale=W,tn(C,p.value,d.value))}));const ue={id:ks,locale:T,fallbackLocale:B,get inheritLocale(){return c},set inheritLocale(W){c=W,W&&o&&(p.value=o.locale.value,d.value=o.fallbackLocale.value,tn(C,p.value,d.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:L,get modifiers(){return h},get pluralRules(){return g||{}},get isGlobal(){return s},get missingWarn(){return y},set missingWarn(W){y=W,C.missingWarn=y},get fallbackWarn(){return u},set fallbackWarn(W){u=W,C.fallbackWarn=u},get fallbackRoot(){return N},set fallbackRoot(W){N=W},get fallbackFormat(){return k},set fallbackFormat(W){k=W,C.fallbackFormat=k},get warnHtmlMessage(){return V},set warnHtmlMessage(W){V=W,C.warnHtmlMessage=W},get escapeParameter(){return $},set escapeParameter(W){$=W,C.escapeParameter=W},t:P,getLocaleMessage:de,setLocaleMessage:_e,mergeLocaleMessage:Ve,getPostTranslationHandler:M,setPostTranslationHandler:z,getMissingHandler:U,setMissingHandler:R,[ms]:Z};return ue.datetimeFormats=j,ue.numberFormats=F,ue.rt=v,ue.te=O,ue.tm=ne,ue.d=Te,ue.n=he,ue.getDateTimeFormat=A,ue.setDateTimeFormat=I,ue.mergeDateTimeFormat=H,ue.getNumberFormat=te,ue.setNumberFormat=Ne,ue.mergeNumberFormat=me,ue[hs]=a,ue[mo]=ee,ue[ho]=le,ue[uo]=ie,process.env.NODE_ENV!=="production"&&(ue[St]=W=>{C.__v_emitter=W},ue[nn]=()=>{C.__v_emitter=void 0}),ue}function Gc(t){const n=Q(t.locale)?t.locale:Mt,o=Q(t.fallbackLocale)||Ee(t.fallbackLocale)||re(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,a=Ce(t.missing)?t.missing:void 0,s=fe(t.silentTranslationWarn)||ht(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,l=fe(t.silentFallbackWarn)||ht(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,r=fe(t.fallbackRoot)?t.fallbackRoot:!0,i=!!t.formatFallbackMessages,c=re(t.modifiers)?t.modifiers:{},p=t.pluralizationRules,d=Ce(t.postTranslation)?t.postTranslation:void 0,f=Q(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,m=!!t.escapeParameterHtml,_=fe(t.sync)?t.sync:!0;process.env.NODE_ENV!=="production"&&t.formatter&&Ae(He(De.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&t.preserveDirectiveContent&&Ae(He(De.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let y=t.messages;if(re(t.sharedMessages)){const $=t.sharedMessages;y=Object.keys($).reduce((g,C)=>{const E=g[C]||(g[C]={});return Re(E,$[C]),g},y||{})}const{__i18n:u,__root:N,__injectWithOption:k}=t,w=t.datetimeFormats,b=t.numberFormats,S=t.flatJson,V=t.translateExistCompatible;return{locale:n,fallbackLocale:o,messages:y,flatJson:S,datetimeFormats:w,numberFormats:b,missing:a,missingWarn:s,fallbackWarn:l,fallbackRoot:r,fallbackFormat:i,modifiers:c,pluralRules:p,postTranslation:d,warnHtmlMessage:f,escapeParameter:m,messageResolver:t.messageResolver,inheritLocale:_,translateExistCompatible:V,__i18n:u,__root:N,__injectWithOption:k}}function yo(t={},n){{const o=go(Gc(t)),{__extender:a}=t,s={id:o.id,get locale(){return o.locale.value},set locale(l){o.locale.value=l},get fallbackLocale(){return o.fallbackLocale.value},set fallbackLocale(l){o.fallbackLocale.value=l},get messages(){return o.messages.value},get datetimeFormats(){return o.datetimeFormats.value},get numberFormats(){return o.numberFormats.value},get availableLocales(){return o.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&Ae(He(De.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(l){process.env.NODE_ENV!=="production"&&Ae(He(De.NOT_SUPPORTED_FORMATTER))},get missing(){return o.getMissingHandler()},set missing(l){o.setMissingHandler(l)},get silentTranslationWarn(){return fe(o.missingWarn)?!o.missingWarn:o.missingWarn},set silentTranslationWarn(l){o.missingWarn=fe(l)?!l:l},get silentFallbackWarn(){return fe(o.fallbackWarn)?!o.fallbackWarn:o.fallbackWarn},set silentFallbackWarn(l){o.fallbackWarn=fe(l)?!l:l},get modifiers(){return o.modifiers},get formatFallbackMessages(){return o.fallbackFormat},set formatFallbackMessages(l){o.fallbackFormat=l},get postTranslation(){return o.getPostTranslationHandler()},set postTranslation(l){o.setPostTranslationHandler(l)},get sync(){return o.inheritLocale},set sync(l){o.inheritLocale=l},get warnHtmlInMessage(){return o.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(l){o.warnHtmlMessage=l!=="off"},get escapeParameterHtml(){return o.escapeParameter},set escapeParameterHtml(l){o.escapeParameter=l},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&Ae(He(De.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(l){process.env.NODE_ENV!=="production"&&Ae(He(De.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return o.pluralRules||{}},__composer:o,t(...l){const[r,i,c]=l,p={};let d=null,f=null;if(!Q(r))throw Ie(ge.INVALID_ARGUMENT);const m=r;return Q(i)?p.locale=i:Ee(i)?d=i:re(i)&&(f=i),Ee(c)?d=c:re(c)&&(f=c),Reflect.apply(o.t,o,[m,d||f||{},p])},rt(...l){return Reflect.apply(o.rt,o,[...l])},tc(...l){const[r,i,c]=l,p={plural:1};let d=null,f=null;if(!Q(r))throw Ie(ge.INVALID_ARGUMENT);const m=r;return Q(i)?p.locale=i:Be(i)?p.plural=i:Ee(i)?d=i:re(i)&&(f=i),Q(c)?p.locale=c:Ee(c)?d=c:re(c)&&(f=c),Reflect.apply(o.t,o,[m,d||f||{},p])},te(l,r){return o.te(l,r)},tm(l){return o.tm(l)},getLocaleMessage(l){return o.getLocaleMessage(l)},setLocaleMessage(l,r){o.setLocaleMessage(l,r)},mergeLocaleMessage(l,r){o.mergeLocaleMessage(l,r)},d(...l){return Reflect.apply(o.d,o,[...l])},getDateTimeFormat(l){return o.getDateTimeFormat(l)},setDateTimeFormat(l,r){o.setDateTimeFormat(l,r)},mergeDateTimeFormat(l,r){o.mergeDateTimeFormat(l,r)},n(...l){return Reflect.apply(o.n,o,[...l])},getNumberFormat(l){return o.getNumberFormat(l)},setNumberFormat(l,r){o.setNumberFormat(l,r)},mergeNumberFormat(l,r){o.mergeNumberFormat(l,r)},getChoiceIndex(l,r){return process.env.NODE_ENV!=="production"&&Ae(He(De.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return s.__extender=a,process.env.NODE_ENV!=="production"&&(s.__enableEmitter=l=>{const r=o;r[St]&&r[St](l)},s.__disableEmitter=()=>{const l=o;l[nn]&&l[nn]()}),s}}const xo={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function qc({slots:t},n){return n.length===1&&n[0]==="default"?(t.default?t.default():[]).reduce((a,s)=>[...a,...s.type===e.Fragment?s.children:[s]],[]):n.reduce((o,a)=>{const s=t[a];return s&&(o[a]=s()),o},{})}function bs(t){return e.Fragment}const ko=e.defineComponent({name:"i18n-t",props:Re({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Be(t)||!isNaN(t)}},xo),setup(t,n){const{slots:o,attrs:a}=n,s=t.i18n||wo({useScope:t.scope,__useComponent:!0});return()=>{const l=Object.keys(o).filter(f=>f!=="_"),r={};t.locale&&(r.locale=t.locale),t.plural!==void 0&&(r.plural=Q(t.plural)?+t.plural:t.plural);const i=qc(n,l),c=s[mo](t.keypath,i,r),p=Re({},a),d=Q(t.tag)||ye(t.tag)?t.tag:bs();return e.h(d,p,c)}}});function Kc(t){return Ee(t)&&!Q(t[0])}function Cs(t,n,o,a){const{slots:s,attrs:l}=n;return()=>{const r={part:!0};let i={};t.locale&&(r.locale=t.locale),Q(t.format)?r.key=t.format:ye(t.format)&&(Q(t.format.key)&&(r.key=t.format.key),i=Object.keys(t.format).reduce((m,_)=>o.includes(_)?Re({},m,{[_]:t.format[_]}):m,{}));const c=a(t.value,r,i);let p=[r.key];Ee(c)?p=c.map((m,_)=>{const y=s[m.type],u=y?y({[m.type]:m.value,index:_,parts:c}):[m.value];return Kc(u)&&(u[0].key=`${m.type}-${_}`),u}):Q(c)&&(p=[c]);const d=Re({},l),f=Q(t.tag)||ye(t.tag)?t.tag:bs();return e.h(f,d,p)}}const ws=e.defineComponent({name:"i18n-n",props:Re({value:{type:Number,required:!0},format:{type:[String,Object]}},xo),setup(t,n){const o=t.i18n||wo({useScope:t.scope,__useComponent:!0});return Cs(t,n,is,(...a)=>o[uo](...a))}}),Es=e.defineComponent({name:"i18n-d",props:Re({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},xo),setup(t,n){const o=t.i18n||wo({useScope:t.scope,__useComponent:!0});return Cs(t,n,ss,(...a)=>o[ho](...a))}});function Xc(t,n){const o=t;if(t.mode==="composition")return o.__getInstance(n)||t.global;{const a=o.__getInstance(n);return a!=null?a.__composer:t.global.__composer}}function Jc(t){const n=r=>{const{instance:i,modifiers:c,value:p}=r;if(!i||!i.$)throw Ie(ge.UNEXPECTED_ERROR);const d=Xc(t,i.$);process.env.NODE_ENV!=="production"&&c.preserve&&Ae(He(De.NOT_SUPPORTED_PRESERVE));const f=Ss(p);return[Reflect.apply(d.t,d,[...Ts(f)]),d]};return{created:(r,i)=>{const[c,p]=n(i);Je&&t.global===p&&(r.__i18nWatcher=e.watch(p.locale,()=>{i.instance&&i.instance.$forceUpdate()})),r.__composer=p,r.textContent=c},unmounted:r=>{Je&&r.__i18nWatcher&&(r.__i18nWatcher(),r.__i18nWatcher=void 0,delete r.__i18nWatcher),r.__composer&&(r.__composer=void 0,delete r.__composer)},beforeUpdate:(r,{value:i})=>{if(r.__composer){const c=r.__composer,p=Ss(i);r.textContent=Reflect.apply(c.t,c,[...Ts(p)])}},getSSRProps:r=>{const[i]=n(r);return{textContent:i}}}}function Ss(t){if(Q(t))return{path:t};if(re(t)){if(!("path"in t))throw Ie(ge.REQUIRED_VALUE,"path");return t}else throw Ie(ge.INVALID_VALUE)}function Ts(t){const{path:n,locale:o,args:a,choice:s,plural:l}=t,r={},i=a||{};return Q(o)&&(r.locale=o),Be(s)&&(r.plural=s),Be(l)&&(r.plural=l),[n,i,r]}function Zc(t,n,...o){const a=re(o[0])?o[0]:{},s=!!a.useI18nComponentName,l=fe(a.globalInstall)?a.globalInstall:!0;process.env.NODE_ENV!=="production"&&l&&s&&Ae(He(De.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:ko.name})),l&&([s?"i18n":ko.name,"I18nT"].forEach(r=>t.component(r,ko)),[ws.name,"I18nN"].forEach(r=>t.component(r,ws)),[Es.name,"I18nD"].forEach(r=>t.component(r,Es))),t.directive("t",Jc(n))}const No={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},Qc={"vue-i18n-resource-inspector":"Search for scopes ..."},vc={"vue-i18n-timeline":16764185},Ds="vue-i18n: composer properties";let bo;async function ed(t,n){return new Promise((o,a)=>{try{Mc({id:"vue-devtools-plugin-vue-i18n",label:No["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Ds],app:t},s=>{bo=s,s.on.visitComponentTree(({componentInstance:r,treeNode:i})=>{td(r,i,n)}),s.on.inspectComponent(({componentInstance:r,instanceData:i})=>{r.vnode.el&&r.vnode.el.__VUE_I18N__&&i&&(n.mode==="legacy"?r.vnode.el.__VUE_I18N__!==n.global.__composer&&$s(i,r.vnode.el.__VUE_I18N__):$s(i,r.vnode.el.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:No["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Qc["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(r=>{r.app===t&&r.inspectorId==="vue-i18n-resource-inspector"&&ld(r,n)});const l=new Map;s.on.getInspectorState(async r=>{if(r.app===t&&r.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),id(r,n),r.nodeId==="global"){if(!l.has(r.app)){const[i]=await s.getComponentInstances(r.app);l.set(r.app,i)}s.highlightElement(l.get(r.app))}else{const i=rd(r.nodeId,n);i&&s.highlightElement(i)}}),s.on.editInspectorState(r=>{r.app===t&&r.inspectorId==="vue-i18n-resource-inspector"&&dd(r,n)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:No["vue-i18n-timeline"],color:vc["vue-i18n-timeline"]}),o(!0)})}catch(s){console.error(s),a(!1)}})}function Vs(t){return t.type.name||t.type.displayName||t.type.__file||"Anonymous"}function td(t,n,o){const a=o.mode==="composition"?o.global:o.global.__composer;if(t&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&t.vnode.el.__VUE_I18N__!==a){const s={label:`i18n (${Vs(t)} Scope)`,textColor:0,backgroundColor:16764185};n.tags.push(s)}}function $s(t,n){const o=Ds;t.state.push({type:o,key:"locale",editable:!0,value:n.locale.value}),t.state.push({type:o,key:"availableLocales",editable:!1,value:n.availableLocales}),t.state.push({type:o,key:"fallbackLocale",editable:!0,value:n.fallbackLocale.value}),t.state.push({type:o,key:"inheritLocale",editable:!0,value:n.inheritLocale}),t.state.push({type:o,key:"messages",editable:!1,value:Co(n.messages.value)}),t.state.push({type:o,key:"datetimeFormats",editable:!1,value:n.datetimeFormats.value}),t.state.push({type:o,key:"numberFormats",editable:!1,value:n.numberFormats.value})}function Co(t){const n={};return Object.keys(t).forEach(o=>{const a=t[o];Ce(a)&&"source"in a?n[o]=sd(a):gt(a)&&a.loc&&a.loc.source?n[o]=a.loc.source:ye(a)?n[o]=Co(a):n[o]=a}),n}const nd={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function od(t){return t.replace(/[<>"&]/g,ad)}function ad(t){return nd[t]||t}function sd(t){return{_custom:{type:"function",display:`<span>ƒ</span> ${t.source?`("${od(t.source)}")`:"(?)"}`}}}function ld(t,n){t.rootNodes.push({id:"global",label:"Global Scope"});const o=n.mode==="composition"?n.global:n.global.__composer;for(const[a,s]of n.__instances){const l=n.mode==="composition"?s:s.__composer;o!==l&&t.rootNodes.push({id:l.id.toString(),label:`${Vs(a)} Scope`})}}function rd(t,n){let o=null;if(t!=="global"){for(const[a,s]of n.__instances.entries())if(s.id.toString()===t){o=a;break}}return o}function Bs(t,n){if(t==="global")return n.mode==="composition"?n.global:n.global.__composer;{const o=Array.from(n.__instances.values()).find(a=>a.id.toString()===t);return o?n.mode==="composition"?o:o.__composer:null}}function id(t,n){const o=Bs(t.nodeId,n);return o&&(t.state=cd(o)),null}function cd(t){const n={},o="Locale related info",a=[{type:o,key:"locale",editable:!0,value:t.locale.value},{type:o,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value},{type:o,key:"availableLocales",editable:!1,value:t.availableLocales},{type:o,key:"inheritLocale",editable:!0,value:t.inheritLocale}];n[o]=a;const s="Locale messages info",l=[{type:s,key:"messages",editable:!1,value:Co(t.messages.value)}];n[s]=l;{const r="Datetime formats info",i=[{type:r,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}];n[r]=i;const c="Datetime formats info",p=[{type:c,key:"numberFormats",editable:!1,value:t.numberFormats.value}];n[c]=p}return n}function an(t,n){if(bo){let o;n&&"groupId"in n&&(o=n.groupId,delete n.groupId),bo.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:t,groupId:o,time:Date.now(),meta:{},data:n||{},logType:t==="compile-error"?"error":t==="fallback"||t==="missing"?"warning":"default"}})}}function dd(t,n){const o=Bs(t.nodeId,n);if(o){const[a]=t.path;a==="locale"&&Q(t.state.value)?o.locale.value=t.state.value:a==="fallbackLocale"&&(Q(t.state.value)||Ee(t.state.value)||ye(t.state.value))?o.fallbackLocale.value=t.state.value:a==="inheritLocale"&&fe(t.state.value)&&(o.inheritLocale=t.state.value)}}function pd(t,n,o){return{beforeCreate(){const a=e.getCurrentInstance();if(!a)throw Ie(ge.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const l=s.i18n;if(s.__i18n&&(l.__i18n=s.__i18n),l.__root=n,this===this.$root)this.$i18n=As(t,l);else{l.__injectWithOption=!0,l.__extender=o.__vueI18nExtend,this.$i18n=yo(l);const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=As(t,s);else{this.$i18n=yo({__i18n:s.__i18n,__injectWithOption:!0,__extender:o.__vueI18nExtend,__root:n});const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}else this.$i18n=t;s.__i18nGlobal&&_s(n,s,s),this.$t=(...l)=>this.$i18n.t(...l),this.$rt=(...l)=>this.$i18n.rt(...l),this.$tc=(...l)=>this.$i18n.tc(...l),this.$te=(l,r)=>this.$i18n.te(l,r),this.$d=(...l)=>this.$i18n.d(...l),this.$n=(...l)=>this.$i18n.n(...l),this.$tm=l=>this.$i18n.tm(l),o.__setInstance(a,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const a=this.$i18n;this.$el.__VUE_I18N__=a.__composer;const s=this.__v_emitter=to();a.__enableEmitter&&a.__enableEmitter(s),s.on("*",an)}},unmounted(){const a=e.getCurrentInstance();if(!a)throw Ie(ge.UNEXPECTED_ERROR);const s=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",an),delete this.__v_emitter),this.$i18n&&(s.__disableEmitter&&s.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),o.__deleteInstance(a),delete this.$i18n}}}function As(t,n){t.locale=n.locale||t.locale,t.fallbackLocale=n.fallbackLocale||t.fallbackLocale,t.missing=n.missing||t.missing,t.silentTranslationWarn=n.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=n.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=n.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=n.postTranslation||t.postTranslation,t.warnHtmlInMessage=n.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=n.escapeParameterHtml||t.escapeParameterHtml,t.sync=n.sync||t.sync,t.__composer[ms](n.pluralizationRules||t.pluralizationRules);const o=In(t.locale,{messages:n.messages,__i18n:n.__i18n});return Object.keys(o).forEach(a=>t.mergeLocaleMessage(a,o[a])),n.datetimeFormats&&Object.keys(n.datetimeFormats).forEach(a=>t.mergeDateTimeFormat(a,n.datetimeFormats[a])),n.numberFormats&&Object.keys(n.numberFormats).forEach(a=>t.mergeNumberFormat(a,n.numberFormats[a])),t}const fd=tt("global-vue-i18n");function md(t={},n){const o=__VUE_I18N_LEGACY_API__&&fe(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,a=fe(t.globalInjection)?t.globalInjection:!0,s=__VUE_I18N_LEGACY_API__&&o?!!t.allowComposition:!0,l=new Map,[r,i]=hd(t,o),c=tt(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&o&&s&&Ae(He(De.NOTICE_DROP_ALLOW_COMPOSITION));function p(m){return l.get(m)||null}function d(m,_){l.set(m,_)}function f(m){l.delete(m)}{const m={get mode(){return __VUE_I18N_LEGACY_API__&&o?"legacy":"composition"},get allowComposition(){return s},async install(_,...y){if(process.env.NODE_ENV!=="production"&&(_.__VUE_I18N__=m),_.__VUE_I18N_SYMBOL__=c,_.provide(_.__VUE_I18N_SYMBOL__,m),re(y[0])){const k=y[0];m.__composerExtend=k.__composerExtend,m.__vueI18nExtend=k.__vueI18nExtend}let u=null;!o&&a&&(u=Cd(_,m.global)),__VUE_I18N_FULL_INSTALL__&&Zc(_,m,...y),__VUE_I18N_LEGACY_API__&&o&&_.mixin(pd(i,i.__composer,m));const N=_.unmount;if(_.unmount=()=>{u&&u(),m.dispose(),N()},process.env.NODE_ENV!=="production"){if(!await ed(_,m))throw Ie(ge.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const w=to();if(o){const b=i;b.__enableEmitter&&b.__enableEmitter(w)}else{const b=i;b[St]&&b[St](w)}w.on("*",an)}},get global(){return i},dispose(){r.stop()},__instances:l,__getInstance:p,__setInstance:d,__deleteInstance:f};return m}}function wo(t={}){const n=e.getCurrentInstance();if(n==null)throw Ie(ge.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Ie(ge.NOT_INSTALLED);const o=ud(n),a=gd(o),s=us(n),l=_d(t,s);if(__VUE_I18N_LEGACY_API__&&o.mode==="legacy"&&!t.__useComponent){if(!o.allowComposition)throw Ie(ge.NOT_AVAILABLE_IN_LEGACY_MODE);return Nd(n,l,a,t)}if(l==="global")return _s(a,t,s),a;if(l==="parent"){let c=yd(o,n,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Ae(He(De.NOT_FOUND_PARENT_SCOPE)),c=a),c}const r=o;let i=r.__getInstance(n);if(i==null){const c=Re({},t);"__i18n"in s&&(c.__i18n=s.__i18n),a&&(c.__root=a),i=go(c),r.__composerExtend&&(i[_o]=r.__composerExtend(i)),kd(r,n,i),r.__setInstance(n,i)}return i}function hd(t,n,o){const a=e.effectScope();{const s=__VUE_I18N_LEGACY_API__&&n?a.run(()=>yo(t)):a.run(()=>go(t));if(s==null)throw Ie(ge.UNEXPECTED_ERROR);return[a,s]}}function ud(t){{const n=e.inject(t.isCE?fd:t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Ie(t.isCE?ge.NOT_INSTALLED_WITH_PROVIDE:ge.UNEXPECTED_ERROR);return n}}function _d(t,n){return Cn(t)?"__i18n"in n?"local":"global":t.useScope?t.useScope:"local"}function gd(t){return t.mode==="composition"?t.global:t.global.__composer}function yd(t,n,o=!1){let a=null;const s=n.root;let l=xd(n,o);for(;l!=null;){const r=t;if(t.mode==="composition")a=r.__getInstance(l);else if(__VUE_I18N_LEGACY_API__){const i=r.__getInstance(l);i!=null&&(a=i.__composer,o&&a&&!a[hs]&&(a=null))}if(a!=null||s===l)break;l=l.parent}return a}function xd(t,n=!1){return t==null?null:n&&t.vnode.ctx||t.parent}function kd(t,n,o){let a=null;e.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&n.vnode.el){n.vnode.el.__VUE_I18N__=o,a=to();const s=o;s[St]&&s[St](a),a.on("*",an)}},n),e.onUnmounted(()=>{const s=o;process.env.NODE_ENV!=="production"&&n.vnode.el&&n.vnode.el.__VUE_I18N__&&(a&&a.off("*",an),s[nn]&&s[nn](),delete n.vnode.el.__VUE_I18N__),t.__deleteInstance(n);const l=s[_o];l&&(l(),delete s[_o])},n)}function Nd(t,n,o,a={}){const s=n==="local",l=e.shallowRef(null);if(s&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Ie(ge.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const r=fe(a.inheritLocale)?a.inheritLocale:!Q(a.locale),i=e.ref(!s||r?o.locale.value:Q(a.locale)?a.locale:Mt),c=e.ref(!s||r?o.fallbackLocale.value:Q(a.fallbackLocale)||Ee(a.fallbackLocale)||re(a.fallbackLocale)||a.fallbackLocale===!1?a.fallbackLocale:i.value),p=e.ref(In(i.value,a)),d=e.ref(re(a.datetimeFormats)?a.datetimeFormats:{[i.value]:{}}),f=e.ref(re(a.numberFormats)?a.numberFormats:{[i.value]:{}}),m=s?o.missingWarn:fe(a.missingWarn)||ht(a.missingWarn)?a.missingWarn:!0,_=s?o.fallbackWarn:fe(a.fallbackWarn)||ht(a.fallbackWarn)?a.fallbackWarn:!0,y=s?o.fallbackRoot:fe(a.fallbackRoot)?a.fallbackRoot:!0,u=!!a.fallbackFormat,N=Ce(a.missing)?a.missing:null,k=Ce(a.postTranslation)?a.postTranslation:null,w=s?o.warnHtmlMessage:fe(a.warnHtmlMessage)?a.warnHtmlMessage:!0,b=!!a.escapeParameter,S=s?o.modifiers:re(a.modifiers)?a.modifiers:{},V=a.pluralRules||s&&o.pluralRules;function $(){return[i.value,c.value,p.value,d.value,f.value]}const h=e.computed({get:()=>l.value?l.value.locale.value:i.value,set:O=>{l.value&&(l.value.locale.value=O),i.value=O}}),g=e.computed({get:()=>l.value?l.value.fallbackLocale.value:c.value,set:O=>{l.value&&(l.value.fallbackLocale.value=O),c.value=O}}),C=e.computed(()=>l.value?l.value.messages.value:p.value),E=e.computed(()=>d.value),D=e.computed(()=>f.value);function T(){return l.value?l.value.getPostTranslationHandler():k}function B(O){l.value&&l.value.setPostTranslationHandler(O)}function L(){return l.value?l.value.getMissingHandler():N}function j(O){l.value&&l.value.setMissingHandler(O)}function F(O){return $(),O()}function M(...O){return l.value?F(()=>Reflect.apply(l.value.t,null,[...O])):F(()=>"")}function z(...O){return l.value?Reflect.apply(l.value.rt,null,[...O]):""}function U(...O){return l.value?F(()=>Reflect.apply(l.value.d,null,[...O])):F(()=>"")}function R(...O){return l.value?F(()=>Reflect.apply(l.value.n,null,[...O])):F(()=>"")}function Y(O){return l.value?l.value.tm(O):{}}function X(O,G){return l.value?l.value.te(O,G):!1}function P(O){return l.value?l.value.getLocaleMessage(O):{}}function v(O,G){l.value&&(l.value.setLocaleMessage(O,G),p.value[O]=G)}function Te(O,G){l.value&&l.value.mergeLocaleMessage(O,G)}function he(O){return l.value?l.value.getDateTimeFormat(O):{}}function ke(O,G){l.value&&(l.value.setDateTimeFormat(O,G),d.value[O]=G)}function Oe(O,G){l.value&&l.value.mergeDateTimeFormat(O,G)}function J(O){return l.value?l.value.getNumberFormat(O):{}}function ee(O,G){l.value&&(l.value.setNumberFormat(O,G),f.value[O]=G)}function ie(O,G){l.value&&l.value.mergeNumberFormat(O,G)}const le={get id(){return l.value?l.value.id:-1},locale:h,fallbackLocale:g,messages:C,datetimeFormats:E,numberFormats:D,get inheritLocale(){return l.value?l.value.inheritLocale:r},set inheritLocale(O){l.value&&(l.value.inheritLocale=O)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(p.value)},get modifiers(){return l.value?l.value.modifiers:S},get pluralRules(){return l.value?l.value.pluralRules:V},get isGlobal(){return l.value?l.value.isGlobal:!1},get missingWarn(){return l.value?l.value.missingWarn:m},set missingWarn(O){l.value&&(l.value.missingWarn=O)},get fallbackWarn(){return l.value?l.value.fallbackWarn:_},set fallbackWarn(O){l.value&&(l.value.missingWarn=O)},get fallbackRoot(){return l.value?l.value.fallbackRoot:y},set fallbackRoot(O){l.value&&(l.value.fallbackRoot=O)},get fallbackFormat(){return l.value?l.value.fallbackFormat:u},set fallbackFormat(O){l.value&&(l.value.fallbackFormat=O)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:w},set warnHtmlMessage(O){l.value&&(l.value.warnHtmlMessage=O)},get escapeParameter(){return l.value?l.value.escapeParameter:b},set escapeParameter(O){l.value&&(l.value.escapeParameter=O)},t:M,getPostTranslationHandler:T,setPostTranslationHandler:B,getMissingHandler:L,setMissingHandler:j,rt:z,d:U,n:R,tm:Y,te:X,getLocaleMessage:P,setLocaleMessage:v,mergeLocaleMessage:Te,getDateTimeFormat:he,setDateTimeFormat:ke,mergeDateTimeFormat:Oe,getNumberFormat:J,setNumberFormat:ee,mergeNumberFormat:ie};function Z(O){O.locale.value=i.value,O.fallbackLocale.value=c.value,Object.keys(p.value).forEach(G=>{O.mergeLocaleMessage(G,p.value[G])}),Object.keys(d.value).forEach(G=>{O.mergeDateTimeFormat(G,d.value[G])}),Object.keys(f.value).forEach(G=>{O.mergeNumberFormat(G,f.value[G])}),O.escapeParameter=b,O.fallbackFormat=u,O.fallbackRoot=y,O.fallbackWarn=_,O.missingWarn=m,O.warnHtmlMessage=w}return e.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Ie(ge.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const O=l.value=t.proxy.$i18n.__composer;n==="global"?(i.value=O.locale.value,c.value=O.fallbackLocale.value,p.value=O.messages.value,d.value=O.datetimeFormats.value,f.value=O.numberFormats.value):s&&Z(O)}),le}const bd=["locale","fallbackLocale","availableLocales"],Is=["t","rt","d","n","tm","te"];function Cd(t,n){const o=Object.create(null);return bd.forEach(s=>{const l=Object.getOwnPropertyDescriptor(n,s);if(!l)throw Ie(ge.UNEXPECTED_ERROR);const r=e.isRef(l.value)?{get(){return l.value.value},set(i){l.value.value=i}}:{get(){return l.get&&l.get()}};Object.defineProperty(o,s,r)}),t.config.globalProperties.$i18n=o,Is.forEach(s=>{const l=Object.getOwnPropertyDescriptor(n,s);if(!l||!l.value)throw Ie(ge.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${s}`,l)}),()=>{delete t.config.globalProperties.$i18n,Is.forEach(s=>{delete t.config.globalProperties[`$${s}`]})}}if(zc(),__INTLIFY_JIT_COMPILATION__?Pa(Sc):Pa(Ec),_c(Ji),gc(La),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=st();t.__INTLIFY__=!0,sc(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const wd={editDepartmentType:"Edit department type",addDepartmentType:"Add department type",departmentIcon:"Department icon",upload:"Upload",pleaseUploadDepartmentTypeIcon:"Please upload department type icon",iconSize44px:"Icon size 44px",ifNoIconUseTheDefaultIcon:"If no icon, use the default icon",departmentTypeName:"Department type name",pleaseEnterTheDepartmentTypeName:"Please enter the department type name","close-0":"Close","save-0":"Save",imageUploadFailedLogoSizeWithin2M:"Image upload failed, logo size within 2M",operationSuccessful:"Operation successful",department:"Department",filterByDepartmentName:"Filter By Department Name",equipment:"Equipment",filterByDeviceNumberAndDeviceName:"Filter By Device Number And Device Name",pleaseEnterContentToSearch:"Please Enter Content To Search",pleaseSelectThePersonYouWantToViewBelow:"Please Select The Person You Want To View Below",filterByPersonnelName:"Filter By Personnel Name",addedIntercomRecordsToday:"Added Intercom Records Today",allDevices:"All Devices",clear:"Clear",selected:"Selected","individual-0":"Individual",loadingDesperately:"Loading","filterByDeviceNumber,DeviceName,DepartmentName":"Filter By Device Number, Device Name, Department Name",noData:"No Data",online:"Online",offline:"Offline",youHaveNotSelectedADeviceYet:"You Have Not Selected A Device Yet",delete:"Delete",allDepartments:"All Departments",doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt:"(Double-click To Select The Department And All Departments Under It)",youHaveNotSelectedADepartmentYet:"You Have Not Selected A Department",spotCheckDetails:"Spot Check Details",spotCheckPersonnel:"Spot Check Personnel",spotCheckTime:"Spot Check Time",spotCheckType:"Spot Check Type",rangeCheck:"Range Check",randomCheck:"Random Check",spotCheckMethod:"Spot Check Method.",message:"Message",call:"Call.",samplingScope:"Sampling Scope (",regionalSpotCheck:"Regional Spot Check",departmentSpotCheck:"Department Spot Check",deviceSpotCheck:"Device Spot Check",device:"Device",messageContent:"Message Content.",textToSpeech:"Text To Speech",answerMethod:"Answer Method.",punchIn:"Punch In.",reply:"Reply.",answerTime:"Answer Time.",second:"Second",callSpotCheck:"Call Spot Check",backupWillBeCheckedByIntercomAnswering:"Backup Will Be Checked By Intercom Answering",numberOfPeopleToBeChecked:"Number Of People To Be Checked",waitingToReceive:"Waiting To Receive",receiving:"Receiving",completed:"Completed",uncompleted:"Uncompleted",noDeviceSupportsThisSpotCheck:"No Device Supports This Spot Check",spotCheckInformation:"Spot Check Information",spotCheckStatus:"Spot Check Status",all:"All","completed-0":"Completed","uncompleted-0":"Uncompleted",theDeviceWasInATemporaryGroupWhenTheSpotCheckWasInitiated:"The Device Was In A Temporary Group When The Spot Check Was Initiated",lin:"Lin",theDeviceWasOfflineWhenTheSpotCheckWasInitiated:"The Device Was Offline When The Spot Check Was Initiated","toBeReceived-1":"ToBeReceived","receiving-1":"Receiving",change:"Change",noMemberRespondedAtTheMoment:"No Member Responded At The Moment",continuePlaying:"Continue Playing",networkIsNotGoodPleaseTryAgainLater:"Network Is Not Good, Please Try Again Later",initiate:"Initiate",spotCheck:"Spot Check",responseMethod:"Response Method: ",responseTime:"Response Time: ",offlineStatus:"Offline Status",temporaryGroups:"Temporary Groups: ",viewContent:"View Content",theDeviceYouAreSpotCheckingIsOffline:"The Device You Are Spot Checking Is Offline",cannotSupportThisSpotCheck:"Cannot Support This Spot Check",groupMemberStatusAbnormalityPreventsSpotCheck:"Group Member Status Abnormality Prevents Spot Check",cancel:"Cancel",complete:"Complete",currentlySpotCheckInProgressPleaseProcessLater:"Currently Spot Check In Progress, Please Process Later",tips:"Tips",cancelSpotCheck:"Cancel Spot Check",confirmToCancelThisSpotCheck:"Confirm To Cancel This Spot Check",cancelMidwayYouWillNotBeAbleToRetrieveOrViewAnyInformationOfThisSpotCheck:"Cancel Midway, You Will Not Be Able To Retrieve Or View Any Information Of This Spot Check",returnToSpotCheck:"Return To Spot Check","afterTheCheck,YouCanViewTheSpotCheckInformationInTheSpotCheckModule":"After The Check, You Can View The Spot Check Information In The Spot Check Module",thereAreStillDevicesInTheReceivingProcessTheSystemWillMarkTheseDevicesAsUnfinished:"There Are Still Devices In The Receiving Process, The System Will Mark These Devices As Unfinished",endSpotCheck:"End Spot Check",confirmToEndThisSpotCheck:"Confirm To End This Spot Check",theSpotCheckHasBeenCompletedYouCanViewDetailedInformationRecordsInTheSpotCheckModule:"The Spot Check Has Been Completed, You Can View Detailed Information Records In The Spot Check Module",electronicFence:"Electronic Fence",filterByElectronicFenceName:"Filter By Electronic Fence Name",youHavenTSelectedAFenceYet:"You Haven't Selected A Fence Yet",spotCheckTemplate:"Spot Check Template.",edit:"Edit",templateName:"Template Name",operation:"Operation",operator:"Operator: ",pleaseEnterTheTemplateName:"Please Enter The Template Name",executionDate:"Execution Date",pleaseSelectTheExecutionDate:"Please Select The Execution Date",everyday:"Everyday",specifyAWeek:"Specify A Week",specifyADate:"Specify A Date",specifyATimePeriod:"Specify A Time Period",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday",mmDdYyyy:"MM Dd, Yyyy",selectOneOrMoreDates:"Select One Or More Dates",to:"To",startDate:"Start Date",endDate:"End Date","executionTime-0":"Execution Time",startTime:"Start Time",endTime:"End Time",selectATimeRange:"Select A Time Range",pleaseSelectTheSpotCheckType:"Please Select The Spot Check Type",spotCheckDevice:"Spot Check Device",pleaseSelectTheSpotCheckDevice:"Please Select The Spot Check Device",spotCheckOnlyOnlineDevices:"Spot Check Only Online Devices",spotCheckAllDevices:"Spot Check All Devices",randomNumber:"Random Number",pleaseEnterTheRandomNumber:"Please Enter The Random Number",spotCheckRange:"Spot Check Range",youDoNotNeedToSelectARangeAndDeviceForRandomCheck:"In Random Check, You Do Not Need To Select Range And Device.",theSystemWillHelpYouSelectRandomly:"The System Will Help You Select Randomly.",pleaseSelect:"Please Select",selectAnArea:"Select Area.",selectADepartment:"Select Department.",selectADevice:"Select Device.",regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea:"Regional (electronic Fence): Select This Option To Spot-check Devices That Support Spot-check Configuration Within The Specified Electronic Fence Area.",departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment:"Department: Select This Option To Spot-check Devices That Support Spot-check Configuration In The Specified Department.",setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck:"Device: Select This Option To Manually Select Specific Devices That Support Spot-check Configuration For Spot-check.",help:"Help",pleaseSelectTheSpotCheckMethod:"Please Select Spot Check Method.",callDoesNotRequireYouToEnterTheMessageContent:"Calling Does Not Require You To Enter Message Content.",spotCheckWillBeConductedByIntercomAnswering:"Spot Check Will Be Conducted By Intercom Answering.",pleaseFillInTheMessageToBeSent:"Please Fill In The Message To Be Sent",requiresTTSVoiceBroadcastOnTheDevice:"Requires TTS Voice Broadcast On The Device",pleaseSelectTheAnswerTime:"Please Select Answer Time.",youCanApplyTheSpotCheckTemplateToQuicklyFillInTheContent:"You Can Apply The Spot Check Template To Quickly Fill In The Content.",confirm:"Confirm",pleaseSelectASpecificWeek:"Please Select A Specific Week.",immediatelyInitiateARollCallSpotCheck:"Immediately Initiate A Roll Call Spot Check.",pleaseSelectTheExecutionTime:"Please Select The Execution Time",pleaseSelectASpecificTimePeriod:"Please Select A Specific Time Period.",prompt:"Prompt",switchingTheSpotCheckDeviceWillClearTheSelectedData:"Switching The Spot Check Device Will Clear The Selected Data",confirmTheSwitch:"Confirm The Switch","cancel-0":"Cancel","confirm-3":"Confirm",atLeast1RandomDevice:"At Least 1 Random Device",repeat:"Repeat",switchingTheSpotCheckRangeWillClearTheSelectedData:"Switching The Spot Check Range Will Clear The Selected Data",pleaseSelectTheSpotCheckRange:"Please Select The Spot Check Range",pleaseSelectADate:"Please Select A Date",pleaseSelectATimePeriod:"Please Select A Time Period",templateApplied:"Template Applied",yearMMMonthDDDay:"Year MM month DD day",creationTime:"Creation Time",fileAttributes:"File Attributes",star:"Star","user-3":"User",fileSource:"File Source",daily:"Daily",task:"Task",deviceID:"Device ID",audioDuration:"Audio Duration",expirationTime:"Expiration Time",fileSize:"File Size",rating:"Rating",rated:"Rated",unrated:"Unrated",location:"Location",detectionIsCorrect:"Detection Is Correct",confirmScore:"Confirm Score",confirmAs:"Confirm As",noSecondaryModificationAfterScoring:"No Secondary Modification After Scoring",close:"Close",fileIDNotPassedIn:"File ID Not Passed In",pleaseScoreTheCurrentFile:"Please Score The Current File",successfulScoring:"Successful Scoring",previous:"Previous",next:"Next",clickOnTheImageToEnlargeAndView:"Click On The Image To Enlarge And View","download-0":"Download",fileIsDownloading:"File Is Downloading",fileCompressionPackage_:"File Compression Package_",currentIsTheFirstItem:"Current Is The First Item",currentIsTheLastItem:"Current Is The Last Item",pleaseSelectTheUser:"Please Select The User",selectDate:"Select Date",jumpToHere:"Jump To Here",filter:"Filter",youCanEnterTheFileNameAndNoteToQueryTheName:"You Can Enter The File Name, Note, Or Point Name To Query",aTotalOf:"A Total Of",filesSelected:"Files Selected",selectAll:"Select All","selected-0":"Selected",filterConditions:"Filter Conditions",timeFilter:"Time Filter","today-0":"Today",recent3Days:"Recent 3 Days",recent7Days:"Recent 7 Days",recent30Days:"Recent 30 Days",userFilter:"User Filter",note:"Note",dot:"Dot",reset:"Reset",show:"Show",pleaseSelectTheDownloadFile:"Please Select The Download File",videoDuration:"Video Duration",multiples:"Multiples",downloadFile:"Download File",adjustPlaybackVolume:"Adjust Playback Volume",stopAfterPlayback:"Stop After Playback",continuousPlayback:"Continuous Playback",loopPlayback:"Loop Playback",startDownloading:"Start Downloading",play:"Play",imageCutting:"Image Cutting","confirm-0":"Confirm",fullScreenSwitch:"Full Screen Switch",reminderList:"Reminder List",editRemarks:"Edit Remarks",addRemarks:"Add Remarks",pleaseFillInTheRemarks:"Please Fill In The Remarks","addRemarks-0":"Add Remarks",save:"Save",pleaseEnterTheRemarks:"Please Enter The Remarks Content",deleteRemarks:"Delete Remarks",reminderCannotBeRestoredAfterDeletion:"Reminder Cannot Be Restored After Deletion",confirmDeletion:"Confirm Deletion",dotList:"Dot List","addDot-0":"Add Dot",pleaseEnterTheDotName:"Please Enter The Dot Name",dotPosition:"Dot Position",dotName:"Dot Name",editDot:"Edit Dot",addDot:"Add Dot",pleaseEnterTheDotContent:"Please Enter The Dot Content",deleteDot:"Delete Dot",deleteDotPositionCannotBeRestored:"Delete Dot Position Cannot Be Restored",fileUpload:"File Upload",fileType:"File Type",uploadFiles:"Upload Files",dragFilesHereOr:"Drag Files Here, Or",clickToUpload:"Click To Upload",selectTheSameFileAgainForUploading:"Select The Same File Again For Uploading",uploadFailed:"Upload Failed",uploadingPatientWait:"Uploading, Please Wait",success:"Success","noData-3":"No Data",imageFiles:"Image Files",videoFile:"Video File",audioFiles:"Audio Files",upgradePackage:"Upgrade Package",softwarePackage:"Software Package",fail:"Fail",uploading:"Uploading",allShardUploadsCompleted:"All Shard Uploads Completed",completeTheAssembly:"Complete The Assembly",fileReadingInProgressPleaseWait:"File Reading In Progress, Please Wait",pleaseSelectAFile:"Please Select A File",pleaseWaitForTheFilesToBeUploadedInSequence:"Files Are Being Uploaded Sequentially, Please Wait",startUploading:"Start Uploading",theUploadedFileIsNotOfImageType:"The Uploaded File Is Not Of Image Type",video:"Video",theUploadedFileIsNotOfVideoType:"The Uploaded File Is Not Of Video Type",audio:"Audio",theUploadedFileIsNotOfAudioType:"The Uploaded File Is Not Of Audio Type",theUploadedFileIsNotAnAPKUpgradePackage:"The Uploaded File Is Not An APK Upgrade Package",theUploadedFileIsNotASoftwarePackage:"The Uploaded File Is Not A Software Package",pleaseSelectTheSameFileForUploading:"Please Select The Same File For Uploading",prohibitUploadingFilesWithTheSameNameOnThePlatform:"Prohibit Uploading Files With The Same Name On The Platform",errorInUploadingFile:"Error In Uploading File",status:"Status",uploadError:"Upload Error",uploadSuccessful:"Upload Successful",fileUploadProgress:"File Upload Progress",displayTheUploadProgressOfAPKInstallationPackageFiles:"Display The Upload Progress Of APK Installation Package Files",prohibitUploadingFilesWithTheSameName:"Prohibit Uploading Files With The Same Name",automaticallyFilterTheSameFilesBeingUploaded:"Automatically Filter The Same Files Being Uploaded",youDoNotHaveAMapConfigurationForThisModule:"You Do Not Have A Map Configuration For This Module",pleaseContactTheAdministratorToGoToTheSettingsCenterForConfiguration:"Please Contact The Administrator To Go To The Settings Center For Configuration",electronicFenceName:"Electronic Fence Name",addElectronicFence:"Add Electronic Fence",hide:"Hide",deleteElectronicFence:"Delete Electronic Fence",confirmToDeleteTheCurrentDeletedElectronicFence:"Confirm To Delete The Current Deleted Electronic Fence",deletedSuccessfully:"Deleted Successfully",unitMeter:"Unit Meter",operationButton:"Operation Button",startDrawing:"Start Drawing",clearDrawing:"Clear Drawing",afterClickingToStartDrawing:"After Clicking To Start Drawing:",clearCurrentFence:"Clear Current Fence",mouseClicksOnTheMapAndReleasesToEnd:"Mouse Clicks On The Map And Releases To End",mouseClicksOnTheMapAndClicksAgainToEnd:"Mouse Clicks On The Map And Clicks Again To End",mouseClicksOnTheMapAndClicksTheStartingPointToEnd:"Mouse Clicks On The Map And Clicks The Starting Point To End",pleaseEnterTheFixedPointRange:"Please Enter The Fixed Point Range",nextTimeYouNeedToClickAgainToStartDrawing:"Next Time You Need To Click Again To Start Drawing",pleaseDrawTheElectronicFence:"Please Draw The Electronic Fence",pleaseClearAndAbandonTheFenceFirst:"Please Clear And Abandon The Fence First",mouseClicksOnTheMapToDraw:"Mouse Clicks On The Map To Draw",mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd:"Mouse Clicks On The Map, Holds Down, Drags, Draws, And Releases To End",mouseClicksOnTheMapAndRightClicksToEnd:"Mouse Clicks On The Map And Right Clicks To End",pleaseEnterTheNameOfTheElectronicFence:"Please Enter The Name Of The Electronic Fence",electronicFenceRange:"Electronic Fence Range",drawingMethod:"Drawing Method",pleaseSelectTheDrawingMethod:"Please Select The Drawing Method",fixedPointRange:"Fixed Point Range",customCircle:"Custom Circle",customPolygon:"Custom Polygon",rangeDistance:"Range Distance",unfinished:"unfinished",finish:"Finish",unfinishedTask:"Unfinished task",uploaded:"uploaded",theFileHasBeenDeletedAndCannotBeViewed:"The file has been deleted and cannot be viewed",theTaskHasBeenCompletedWaitingForUploading:"The task has been completed, waiting for uploading",missionDetails:"Mission details","missionDetails-0":"Mission details",implementation:"Implementation",missionReport:"Mission report",taskDescription:"Mission Description",executionTime:"execution time",executionMode:"Execution mode",independentExecution:"Independent execution",collaborativeExecution:"Collaborative execution",first:"First",strip:"strip",photograph:"Shooting",record:"Video",missionArea:"Mission area",viewExample:"View example",hasBeenCompleted:"Has been completed",notPerformed:"Not performed",execute:"Execute",currentlyForPersonnelView:"Currently for personnel view",missionView:"Mission view",currentAsAMissionView:"Current as a mission view",personnelView:"Personnel view",unfilled:"unfilled",haveBeenFilledIn:"Have been filled in",ask:"ask",answer:"answer",none:"none",noNeedToSubmitATaskReport:"No need to submit a task report",unpackTaskReport:"Unpack task report",submittedTaskReport:"Submitted task report",checkTheTaskAreaWrong:"Check the task area wrong",missionExample:"Mission example",exampleImage:"Example image",check:"Check",exampleVideo:"Example video",videoView:"Video View",taskFile:"Task file",departmentList:"Department list",pleaseChoose:"Please choose",download:"download",sampleContent:"Sample content","check-0":"Check",closure:"closure",currentPositioning:"Current positioning:",patrol:"Patrol",inspectionDetails:"Inspection details",inspectionTrajectory:"Inspection trajectory",inspectionType:"Inspection type",ordinaryInspection:"Ordinary inspection",electronicInspection:"Electronic inspection",duration:"Duration",minute:"minute",executiveInformation:"Executive information",shortNumber:"Short number:","shortNumber-2":"Short number",jobNumber:"Job number:",haveBeenInspected:"Have been inspected",unpaidInspection:"Unpaid inspection",pending:"Pending",processing:"Processing",solved:"solved",notSetUpLatitudeAndLongitude:"Not set up latitude and longitude",noSpecificAddressIsSetInThisInspectionTask:"No specific address is set in this inspection task",nonDividingTheAbnormalService:"Non -dividing the abnormal service",missionName:"mission name:",whetherToReport:"Whether to report",operate:"operate",abnormalTreatment:"Abnormal treatment",abnormalTask:"Abnormal task",abnormal:"abnormal",viewForm:"View form",implementRoute:"Implement route",theParametersAreWrongAndItFailsToOpen:"The parameters are wrong, and it fails to open",normal:"normal",inTheOpeningPleaseWait:"In the opening, please wait ...","theFileHasBeenDeletedAndCannotBeViewed-0":"The file has been deleted and cannot be viewed",exception:"Exception","inspectionPoint-0":"Inspection point","form-0":"Form",handling:"Handling",formContent:"Form content",picture:"picture",point:"point",abnormalDetail:"Abnormal detail",abnormalDetails:"Abnormal details",abnormalForm:"Abnormal form",abnormalLocation:"Abnormal location",associatedTask:"Associated task",abnormalPosition:"Abnormal position",personName:"Person name",staffNumber:"Staff number",userInfo:"User Info",reportTime:"Report time",processedImmediately:"Processed immediately",noNeedToDealWith:"No need to deal with",haveBeenReported:"Have been reported",notReported:"Not reported",reported:"Reported)","notReported-0":"Not reported)",theParametersAreWrong:"The parameters are wrong",pleaseEnterTheTaskName:"Please enter the task name",pleaseEnterTheTaskDescription:"Please enter the task description",executiveStaff:"executive staff",choicePersonnel:"Choice personnel",empty:"Empty",people:"people",pleaseSelectExecutives:"Please select executives",deviceInformation:"Device Information",equipmentType:"Equipment type",deviceModel:"Device model",affiliatedDepartment:"Affiliated department",viewDevice:"View Device",basicInformation:"Basic Information",connectionInformation:"Connection Information",updateRecord:"Update Record",numberOfPeopleInTheDevice:"Number Of People In The Device",information:"Information",type:"Type",activated:"Activated","activated-0":"Activated",notActivated:"Not Activated",expired:"Expired",boundGroup:"Bound Group",unboundGroup:"Unbound Group",updateTime:"Update Time:",upgrade:"Upgrade",updateCompleted:"Update Completed",user:"User",downloadConnectionInformation:"Download Connection Information",deviceBrand:"Device Brand",deviceManufacturer:"Device Manufacturer",deviceType:"Device Type",firmwareVersion:"Firmware Version",softwareVersion:"Software Version",deviceName:"Device Name",name:"Name",enabledStatus:"Enabled Status",onlineStatus:"Online Status",versionNumberIdentification:"Version Number Identification","updateTime-0":"Update Time",upgradeType:"Upgrade Type",updateStatus:"Update Status",protocolVersion:"Protocol Version",alarmNumberID:"Alarm Number ID",serverID:"Server ID",serverDomain:"Server Domain",serverAddress:"Server Address",serverPort:"Server Port","userName-0":"User Name",userAuthentication:"User Authentication",password:"Password",passwordConfirmation:"Password Confirmation",registrationValidityPeriod:"Registration Validity Period",registrationStatus:"Registration Status",heartbeatCycle:"Heartbeat Cycle",streamIndex:"Stream Index",registrationInterval:"Registration Interval",maximumHeartbeatTimeoutTimes:"Maximum Heartbeat Timeout Times",port:"Port",serverIPAddress:"Server IP Address","connectionInformation-0":"Connection Information",videoChannel:"Video Channel",audioChannel:"Audio Channel",alarmChannel:"Alarm Channel",pleaseEnterTheChannelName:"Please Enter The Channel Name","add-0":"Add",channelName:"Channel Name",channelID:"Channel ID",ifNotFilledInTheChannelIDWillBeAutomaticallyGenerated:"If Not Filled In, The Channel ID Will Be Automatically Generated",editCannotBeModified:"Edit Cannot Be Modified",needToFillInAccordingToTheUnifiedCodingRulesAndRegulationsOfAppendixDOfTheNationalStandardDocument:"Need To Fill In According To The Unified Coding Rules And Regulations Of Appendix D Of The National Standard Document",videoChannel11:"Video Channel 11",position:"Position",audioChannel11:"Audio Channel 11",alarmChannel11:"Alarm Channel 11",videoChannelExample:"Video Channel Example:",pleaseEnterTheChannelID:"Please Enter The Channel ID",createChannel:"Create Channel","edit-0":"Edit",deleteChannel:"Delete Channel","unableToRestoreAfterDeletionAreYouSureToDelete-0":"Unable To Restore After Deletion. Are You Sure To Delete?",successfulDeletion:"Successful Deletion"},Ed="编辑部门类型",Sd="添加部门类型",Td="部门图标",Dd="上 传",Vd="请上传部门类型图标",$d="图标尺寸44px",Bd="若无图标则使用默认图标",Ad="部门类型名称",Id="请输入部门类型名称",Ld="图片上传失败,logo大小2M以内。",Fd="操作成功",Od="星期日",Rd="星期一",Pd="星期二",Md="星期三",Ud="星期四",zd="星期五",Wd="星期六",jd="部门",Hd="部门名称进行筛选",Yd="设备",Gd="设备号、设备名称进行筛选",qd="请输入内容进行搜索",Kd="当前选中:",Xd="请在下方选择需要查看的",Jd="请在下方选择需要查看的人员",Zd="人员名称进行筛选",Qd="今日有新增对讲记录",vd="所有设备",ep="清 空",tp="已选中",np="加载中",op="暂无数据",ap="在线",sp="离线",lp="您还未选择设备",rp="所有部门",ip="(双击选中该部门和部门下全部所属部门)",cp="您还未选择部门",dp="抽查详情",pp="抽查人员",fp="抽查时间",mp="抽查类型",hp="范围抽查",up="随机抽查",_p="抽查方式",gp="消息",yp="呼叫",xp="抽查范围 (",kp="区域抽查",Np="部门抽查",bp="设备抽查",Cp="台设备",wp="消息内容",Ep="文字转语音",Sp="应答方式",Tp="打卡",Dp="答复",Vp="应答时间",$p="秒",Bp="呼叫抽查",Ap="将会采用对讲应答的方式抽查备份",Ip="抽查人数:",Lp="待接收:",Fp="接收中:",Op="已完成:",Rp="未完成:",Pp="没有设备支持本次抽查",Mp="抽查信息",Up="抽查情况",zp="全部",Wp="该设备在发起抽查时处于临时群组",jp="临",Hp="该设备在发起抽查时处于离线状态",Yp="更 换",Gp="暂时没有成员进行答复",qp="继续播放",Kp="网络不佳,请稍后重试",Xp="发起",Jp="抽查",Zp="应答方式:",Qp="应答时间:",vp="离线状态:",ef="临时群组:",tf="查看内容",nf="您所抽查的设备处于离线状态",of="无法支持本次抽查",af="组内成员状态异常,无法进行抽查",sf="取 消",lf="完 成",rf="当前正在抽查,请稍后处理",cf="提示",df="取消抽查",pf="确认取消本次点名抽查",ff="中途取消将无法检索或查看本次抽查的任何信息",mf="返回抽查",hf="还有设备处于接收中,系统将标记这些设备为未完成状态",uf="结束抽查",_f="确认结束本次点名抽查",gf="点名抽查已完成,可在抽查模块中查看详细信息记录。",yf="电子围栏",xf="电子围栏名称进行筛选",kf="您还未选择围栏",Nf="抽查模板",bf="编辑",Cf="模板名称",wf="操作",Ef="操作人:",Sf="请输入模板名称",Tf="执行日期",Df="请选择执行日期",Vf="每日",$f="指定星期",Bf="指定日期",Af="指定时间段",If="年 MM 月 dd 日",Lf="选择一个或多个日期",Ff="至",Of="开始日期",Rf="结束日期",Pf="开始时间",Mf="结束时间",Uf="选择时间范围",zf="请选择抽查类型",Wf="抽查设备",jf="请选择抽查设备",Hf="仅抽查在线设备",Yf="抽查所有设备",Gf="随机数量",qf="请输入随机数量",Kf="抽查范围",Xf="随机抽查下您不需要选择范围与设备",Jf="系统会帮助您随机选择",Zf="请选择",Qf="选择区域",vf="选择部门",em="选择设备",tm="区域(电子围栏):选择此项以在指定的电子围栏区域内对支持抽查配置的设备进行抽查。",nm="部门:选择此项以在指定的部门中对支持抽查配置的设备进行抽查。",om="设备:选择此项以手动选择特定支持抽查配置的设备进行抽查。",am="帮助",sm="请选择抽查方式",lm="呼叫不需要您输入消息内容",rm="将会采用对讲应答的方式抽查",im="请填写要发送的消息",cm="需在设备进行TTS语音播报",dm="请选择应答时间",pm="您可以套用抽查模板快速填写内容",fm="确 认",mm="请选择指定星期",hm="立刻发起点名抽查",um="请选择执行时间",_m="请选择指定时间段",gm="提示",ym="切换抽查设备将会清空已选择数据",xm="是否确认切换",km="最少随机 1 台设备",Nm="重复开启",bm="切换抽查范围将会清空已选择数据",Cm="请选择抽查范围",wm="请选择日期",Em="请选择时间段",Sm="模板已套用",Tm="年 MM 月 DD 日",Dm="创建时间",Vm="文件属性",$m="星标",Bm="文件来源",Am="日常",Im="任务",Lm="设备ID",Fm="音频时长",Om="过期时间",Rm="文件大小",Pm="评分",Mm="已评分",Um="未评分",Eo="位置",zm={editDepartmentType:Ed,addDepartmentType:Sd,departmentIcon:Td,upload:Dd,pleaseUploadDepartmentTypeIcon:Vd,iconSize44px:$d,ifNoIconUseTheDefaultIcon:Bd,departmentTypeName:Ad,pleaseEnterTheDepartmentTypeName:Id,"close-0":"关 闭","save-0":"保 存",imageUploadFailedLogoSizeWithin2M:Ld,operationSuccessful:Fd,sunday:Od,monday:Rd,tuesday:Pd,wednesday:Md,thursday:Ud,friday:zd,saturday:Wd,department:jd,filterByDepartmentName:Hd,equipment:Yd,filterByDeviceNumberAndDeviceName:Gd,pleaseEnterContentToSearch:qd,currentlySelected:Kd,pleaseSelectWhatYouWantToViewBelow:Xd,pleaseSelectThePersonYouWantToViewBelow:Jd,filterByPersonnelName:Zd,addedIntercomRecordsToday:Qd,allDevices:vd,clear:ep,selected:tp,"individual-0":"个",loadingDesperately:np,"filterByDeviceNumber,DeviceName,DepartmentName":"设备号、设备名称、部门名称进行筛选",noData:op,online:ap,offline:sp,youHaveNotSelectedADeviceYet:lp,delete:"删 除",allDepartments:rp,doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt:ip,youHaveNotSelectedADepartmentYet:cp,spotCheckDetails:dp,spotCheckPersonnel:pp,spotCheckTime:fp,spotCheckType:mp,rangeCheck:hp,randomCheck:up,spotCheckMethod:_p,message:gp,call:yp,samplingScope:xp,regionalSpotCheck:kp,departmentSpotCheck:Np,deviceSpotCheck:bp,device:Cp,messageContent:wp,textToSpeech:Ep,answerMethod:Sp,punchIn:Tp,reply:Dp,answerTime:Vp,second:$p,callSpotCheck:Bp,backupWillBeCheckedByIntercomAnswering:Ap,numberOfPeopleToBeChecked:Ip,waitingToReceive:Lp,receiving:Fp,completed:Op,uncompleted:Rp,noDeviceSupportsThisSpotCheck:Pp,spotCheckInformation:Mp,spotCheckStatus:Up,all:zp,"completed-0":"完成","uncompleted-0":"未完成",theDeviceWasInATemporaryGroupWhenTheSpotCheckWasInitiated:Wp,lin:jp,theDeviceWasOfflineWhenTheSpotCheckWasInitiated:Hp,"toBeReceived-1":"待接收","receiving-1":"接收中",change:Yp,noMemberRespondedAtTheMoment:Gp,continuePlaying:qp,networkIsNotGoodPleaseTryAgainLater:Kp,initiate:Xp,spotCheck:Jp,responseMethod:Zp,responseTime:Qp,offlineStatus:vp,temporaryGroups:ef,viewContent:tf,theDeviceYouAreSpotCheckingIsOffline:nf,cannotSupportThisSpotCheck:of,groupMemberStatusAbnormalityPreventsSpotCheck:af,cancel:sf,complete:lf,currentlySpotCheckInProgressPleaseProcessLater:rf,tips:cf,cancelSpotCheck:df,confirmToCancelThisSpotCheck:pf,cancelMidwayYouWillNotBeAbleToRetrieveOrViewAnyInformationOfThisSpotCheck:ff,returnToSpotCheck:mf,"afterTheCheck,YouCanViewTheSpotCheckInformationInTheSpotCheckModule":"结束后可在抽查模块中查看本次抽查信息。",thereAreStillDevicesInTheReceivingProcessTheSystemWillMarkTheseDevicesAsUnfinished:hf,endSpotCheck:uf,confirmToEndThisSpotCheck:_f,theSpotCheckHasBeenCompletedYouCanViewDetailedInformationRecordsInTheSpotCheckModule:gf,electronicFence:yf,filterByElectronicFenceName:xf,youHavenTSelectedAFenceYet:kf,spotCheckTemplate:Nf,edit:bf,templateName:Cf,operation:wf,operator:Ef,pleaseEnterTheTemplateName:Sf,executionDate:Tf,pleaseSelectTheExecutionDate:Df,everyday:Vf,specifyAWeek:$f,specifyADate:Bf,specifyATimePeriod:Af,mmDdYyyy:If,selectOneOrMoreDates:Lf,to:Ff,startDate:Of,endDate:Rf,"executionTime-0":"执行时间",startTime:Pf,endTime:Mf,selectATimeRange:Uf,pleaseSelectTheSpotCheckType:zf,spotCheckDevice:Wf,pleaseSelectTheSpotCheckDevice:jf,spotCheckOnlyOnlineDevices:Hf,spotCheckAllDevices:Yf,randomNumber:Gf,pleaseEnterTheRandomNumber:qf,spotCheckRange:Kf,youDoNotNeedToSelectARangeAndDeviceForRandomCheck:Xf,theSystemWillHelpYouSelectRandomly:Jf,pleaseSelect:Zf,selectAnArea:Qf,selectADepartment:vf,selectADevice:em,regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea:tm,departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment:nm,setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck:om,help:am,pleaseSelectTheSpotCheckMethod:sm,callDoesNotRequireYouToEnterTheMessageContent:lm,spotCheckWillBeConductedByIntercomAnswering:rm,pleaseFillInTheMessageToBeSent:im,requiresTTSVoiceBroadcastOnTheDevice:cm,pleaseSelectTheAnswerTime:dm,youCanApplyTheSpotCheckTemplateToQuicklyFillInTheContent:pm,confirm:fm,pleaseSelectASpecificWeek:mm,immediatelyInitiateARollCallSpotCheck:hm,pleaseSelectTheExecutionTime:um,pleaseSelectASpecificTimePeriod:_m,prompt:gm,switchingTheSpotCheckDeviceWillClearTheSelectedData:ym,confirmTheSwitch:xm,"cancel-0":"取消","confirm-3":"确认",atLeast1RandomDevice:km,repeat:Nm,switchingTheSpotCheckRangeWillClearTheSelectedData:bm,pleaseSelectTheSpotCheckRange:Cm,pleaseSelectADate:wm,pleaseSelectATimePeriod:Em,templateApplied:Sm,yearMMMonthDDDay:Tm,creationTime:Dm,fileAttributes:Vm,star:$m,"user-3":"所属用户",fileSource:Bm,daily:Am,task:Im,deviceID:Lm,audioDuration:Fm,expirationTime:Om,fileSize:Rm,rating:Pm,rated:Mm,unrated:Um,location:Eo,detectionIsCorrect:"检测正确",confirmScore:"确认评分",confirmAs:"确认为",noSecondaryModificationAfterScoring:"评分后不可二次修改",close:"关 闭",fileIDNotPassedIn:"未传入文件ID",pleaseScoreTheCurrentFile:"请对当前的文件评分",successfulScoring:"评分成功",previous:"上一张",next:"下一张",clickOnTheImageToEnlargeAndView:"点击图片即可放大查看","download-0":"下 载",fileIsDownloading:"文件正在下载中",fileCompressionPackage_:"文件压缩包_",currentIsTheFirstItem:"当前是第一条",currentIsTheLastItem:"当前是最后一条",pleaseSelectTheUser:"请选择用户",selectDate:"选择日期",jumpToHere:"跳转至此处",filter:"筛 选",youCanEnterTheFileNameAndNoteToQueryTheName:"可输入文件名、备注、打点名查询",aTotalOf:"共选择了",filesSelected:"个文件",selectAll:"全选","selected-0":"已选择",filterConditions:"筛选条件",timeFilter:"时间筛选","today-0":"今日",recent3Days:"近3天",recent7Days:"近7天",recent30Days:"近30天",userFilter:"用户筛选",note:"备注",dot:"打点",reset:"重 置",show:"显示",pleaseSelectTheDownloadFile:"请选择下载文件",videoDuration:"视频时长",multiples:"倍 数",downloadFile:"下载文件",adjustPlaybackVolume:"调节播放音量",stopAfterPlayback:"播完即停",continuousPlayback:"连续播放",loopPlayback:"循环播放",startDownloading:"开始下载",play:"播 放",imageCutting:"图像切割","confirm-0":"确 定",fullScreenSwitch:"全屏切换",reminderList:"备注列表",editRemarks:"编辑备注",addRemarks:"新增备注",pleaseFillInTheRemarks:"请填写备注","addRemarks-0":"添加备注",save:"保 存",pleaseEnterTheRemarks:"请输入备注内容",deleteRemarks:"删除备注",reminderCannotBeRestoredAfterDeletion:"删除备注后,无法还原",confirmDeletion:"是否确认删除",dotList:"打点列表","addDot-0":"添加打点",pleaseEnterTheDotName:"请输入打点名称",dotPosition:"打点位置",dotName:"打点名称",editDot:"编辑打点",addDot:"新增打点",pleaseEnterTheDotContent:"请输入打点内容",deleteDot:"删除打点",deleteDotPositionCannotBeRestored:"删除打点位置,无法还原",fileUpload:"文件上传",fileType:"文件类型",uploadFiles:"上传文件",dragFilesHereOr:"将文件拖到此处,或",clickToUpload:"点击上传",selectTheSameFileAgainForUploading:"重新选择相同的文件,进行上传",uploadFailed:"上传失败",uploadingPatientWait:"正在上传,耐心等待",success:"成功","noData-3":"暂 无 数 据",imageFiles:"图片文件",videoFile:"视频文件",audioFiles:"音频文件",upgradePackage:"升级包",softwarePackage:"软件包",fail:"失败",uploading:"上传中",allShardUploadsCompleted:"所有分片上传完成",completeTheAssembly:"完成合拼",fileReadingInProgressPleaseWait:"正在进行文件读取,请稍后",pleaseSelectAFile:"请选择文件",pleaseWaitForTheFilesToBeUploadedInSequence:"文件依次上传,请稍等",startUploading:"开始上传",theUploadedFileIsNotOfImageType:"上传的文件不是图片类型",video:"视频",theUploadedFileIsNotOfVideoType:"上传的文件不是视频类型",audio:"音频中",theUploadedFileIsNotOfAudioType:"上传的文件不是音频类型",theUploadedFileIsNotAnAPKUpgradePackage:"上传的文件不是apk升级包",theUploadedFileIsNotASoftwarePackage:"上传的文件不是软件包",pleaseSelectTheSameFileForUploading:"请选择相同的文件,进行上传",prohibitUploadingFilesWithTheSameNameOnThePlatform:"禁止上传平台同名的文件",errorInUploadingFile:"上传文件有误",status:"状态",uploadError:"上传报错",uploadSuccessful:"上传成功",fileUploadProgress:"文件上传进度",displayTheUploadProgressOfAPKInstallationPackageFiles:"显示APK安装包文件的上传进度",prohibitUploadingFilesWithTheSameName:"禁止上传同名的文件",automaticallyFilterTheSameFilesBeingUploaded:"自动过滤正在上传的相同文件",youDoNotHaveAMapConfigurationForThisModule:"您没有该模块的地图配置",pleaseContactTheAdministratorToGoToTheSettingsCenterForConfiguration:"请联系管理员前往设置中心进行配置",electronicFenceName:"电子围栏名称",addElectronicFence:"添加电子围栏",hide:"隐藏",deleteElectronicFence:"删除电子围栏",confirmToDeleteTheCurrentDeletedElectronicFence:"确认删除当前删除电子围栏",deletedSuccessfully:"删除成功",unitMeter:"单位米",operationButton:"操作按钮",startDrawing:"开始绘制",clearDrawing:"清空绘制",afterClickingToStartDrawing:"点击开始绘制后:",clearCurrentFence:"清空当前围栏",mouseClicksOnTheMapAndReleasesToEnd:"鼠标在地图点击位置,松手结束",mouseClicksOnTheMapAndClicksAgainToEnd:"鼠标点击地图绘制,再次点击结束",mouseClicksOnTheMapAndClicksTheStartingPointToEnd:"鼠标点击地图绘制,点击起点结束",pleaseEnterTheFixedPointRange:"请输入定点范围",nextTimeYouNeedToClickAgainToStartDrawing:"下次绘制,需重新点击开始绘制",pleaseDrawTheElectronicFence:"请绘制电子围栏",pleaseClearAndAbandonTheFenceFirst:"请先清空放弃围栏",mouseClicksOnTheMapToDraw:"鼠标点击地图绘制",mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd:"鼠标在地图点击按住拖拽绘制,松手结束",mouseClicksOnTheMapAndRightClicksToEnd:"鼠标点击地图绘制,右键结束",pleaseEnterTheNameOfTheElectronicFence:"请输入电子围栏名称",electronicFenceRange:"电子围栏范围",drawingMethod:"绘制方式",pleaseSelectTheDrawingMethod:"请选择绘制方式",fixedPointRange:"定点范围",customCircle:"自定圆形",customPolygon:"自定多边形",rangeDistance:"范围距离",unfinished:"未完成",finish:"完成",unfinishedTask:"未完成任务",uploaded:"已上传",theFileHasBeenDeletedAndCannotBeViewed:"文件已删除,无法查看",theTaskHasBeenCompletedWaitingForUploading:"已完成任务,等待上传",missionDetails:"任务明细","missionDetails-0":"任务详情",implementation:"执行情况",missionReport:"任务报告",taskDescription:"任务说明",executionTime:"执行时间",executionMode:"执行模式",independentExecution:"独立执行",collaborativeExecution:"协同执行",first:"第",strip:"条",photograph:"拍摄",record:"录像",missionArea:"任务区域",viewExample:"查看示例",hasBeenCompleted:"已经完成",notPerformed:"未执行",execute:"正在执行",currentlyForPersonnelView:"当前为人员视图",missionView:"任务视图",currentAsAMissionView:"当前为任务视图",personnelView:"人员视图",unfilled:"未填写",haveBeenFilledIn:"已填写",ask:"问",answer:"答",none:"无",noNeedToSubmitATaskReport:"无需提交任务报告",unpackTaskReport:"未提交任务报告",submittedTaskReport:"已提交任务报告",checkTheTaskAreaWrong:"查看任务区域有误",missionExample:"任务示例",exampleImage:"示例图片",check:"查 看",exampleVideo:"示例视频",videoView:"视频查看",taskFile:"任务文件",departmentList:"部门列表",pleaseChoose:"请选择人员",download:"下 载",sampleContent:"示例内容","check-0":"查看",closure:"关 闭",currentPositioning:"当前定位:",patrol:"巡检明细",inspectionDetails:"巡检详情",inspectionTrajectory:"巡检轨迹",inspectionType:"巡检类型",ordinaryInspection:"普通巡检",electronicInspection:"电子巡检",duration:"任务时长",minute:"分钟",executiveInformation:"执行人信息",shortNumber:"短号:","shortNumber-2":"短 号",jobNumber:"工号:",haveBeenInspected:"已巡检",unpaidInspection:"未巡检",pending:"待处理",processing:"处理中",solved:"已解决",notSetUpLatitudeAndLongitude:"未设置经纬度",noSpecificAddressIsSetInThisInspectionTask:"本次巡检任务未设置具体地址",nonDividingTheAbnormalService:"未 分 配 异 常 任 务",missionName:"任务名称:",whetherToReport:"是否上报",operate:"操作",abnormalTreatment:"异常处理",abnormalTask:"异常任务",abnormal:"异常",viewForm:"查看表单",implementRoute:"执行路线",theParametersAreWrongAndItFailsToOpen:"参数有误,打开失败",normal:"正常",inTheOpeningPleaseWait:"正在打开中,请稍等...","theFileHasBeenDeletedAndCannotBeViewed-0":"文件已经删除,无法查看",exception:"异常处理上报","inspectionPoint-0":"巡查点","form-0":"表单",handling:"处理情况",formContent:"表单内容",picture:"图片",point:"点",abnormalDetail:"异常明细",abnormalDetails:"异常详情",abnormalForm:"异常表单",abnormalLocation:"异常地点",associatedTask:"关联任务",abnormalPosition:"异常位置",personName:"人员名字",staffNumber:"人员工号",userInfo:"用户信息",reportTime:"上报时间",processedImmediately:"立即处理",noNeedToDealWith:"无需处理",haveBeenReported:"已上报",notReported:"未上报",reported:"已上报)","notReported-0":"未上报)",theParametersAreWrong:"参数有误",pleaseEnterTheTaskName:"请输入任务名称",pleaseEnterTheTaskDescription:"请输入任务说明",executiveStaff:"执行人员",choicePersonnel:"选择人员",empty:"清空",people:"人",pleaseSelectExecutives:"请选择执行人员",deviceInformation:"设备信息",equipmentType:"设备类型",deviceModel:"设备型号",affiliatedDepartment:"所属部门",viewDevice:"查看设备",basicInformation:"基本信息",connectionInformation:"连接信息",updateRecord:"更新记录",numberOfPeopleInTheDevice:"设备人数",information:"信息",type:"型",activated:"已激活","activated-0":"激活",notActivated:"未激活",expired:"已过期",boundGroup:"已绑定群组",unboundGroup:"未绑定群组",updateTime:"更新时间:",upgrade:"升级",updateCompleted:"更新完成",user:"使用者",downloadConnectionInformation:"下载连接信息",deviceBrand:"设备品牌",deviceManufacturer:"设备厂家",deviceType:"设备类型",firmwareVersion:"固件版本",softwareVersion:"软件版本",deviceName:"设备名称",name:"名称",enabledStatus:"启用状态",onlineStatus:"在线状态",versionNumberIdentification:"版本号标识","updateTime-0":"更新时间",upgradeType:"升级类型",updateStatus:"更新状态",protocolVersion:"协议版本",alarmNumberID:"报警编号ID",serverID:"服务器ID",serverDomain:"服务器域",serverAddress:"服务器地址",serverPort:"服务器端口","userName-0":"用户名",userAuthentication:"用户认证",password:"密码",passwordConfirmation:"密码确认",registrationValidityPeriod:"注册有效期",registrationStatus:"注册状态",heartbeatCycle:"心跳周期",streamIndex:"码流索引",registrationInterval:"注册间隔",maximumHeartbeatTimeoutTimes:"最大心跳超时次数",port:"端口",serverIPAddress:"服务器IP地址","connectionInformation-0":"的连接信息",videoChannel:"视频通道",audioChannel:"音频通道",alarmChannel:"报警通道",pleaseEnterTheChannelName:"请输入通道名称","add-0":"添加",channelName:"通道名称",channelID:"通道ID",ifNotFilledInTheChannelIDWillBeAutomaticallyGenerated:"不填写将自动生成通道ID",editCannotBeModified:"编辑无法修改",needToFillInAccordingToTheUnifiedCodingRulesAndRegulationsOfAppendixDOfTheNationalStandardDocument:"需要按国标文档附录D统一编码规则规范填写",videoChannel11:"视频通道11",position:"位为",audioChannel11:"音频通道11",alarmChannel11:"报警通道11",videoChannelExample:"视频通道示例:",pleaseEnterTheChannelID:"请输入通道ID",createChannel:"创建通道","edit-0":"编 辑",deleteChannel:"删除通道","unableToRestoreAfterDeletionAreYouSureToDelete-0":"删除后无法还原,是否确认删除",successfulDeletion:"删除成功"};let Ln=null;function Wm(){return vr.getCache("language")||"zh_CN"}function jm(t={}){const n={en_US:{...t.en,...wd},zh_CN:{...t.zh,...zm}};return Ln=md({locale:Wm(),fallbackLocale:"zh_CN",messages:n}),Ln}function Ls(){return Ln||jm()}const{t:Tt}=Ls().global;function Hm(t="-"){return So(new Date).join(t)}function Ym({today:t,daysCount:n,cutOff:o="-"}){t||(t=Hm("/"));const a=new Date(t),s=[So(a).join(o)];for(let l=0;l<n;l++){const r=a.setDate(a.getDate()-1);s.push(So(new Date(r)).join(o))}return s}function So(t){const n=t.getFullYear(),o=t.getMonth()+1,a=t.getDate();return[n,o,a]}function ot(t){let n=Math.floor(t),o=0,a=0;n>=60&&(o=Math.floor(n/60),n=n%60,o>=60&&(a=Math.floor(o/60),o=o%60));let s=n<10?`00:0${n}`:`00:${n}`;return o>0&&(s=o<10?`0${o}:${s}`:`${o}:${s}`),a>0&&(s=`${a}:${s}`),s}function To(t,n){const o=new Date(t),a=[],s=["Y","M","D","day","h","m","s"],l=[Tt("sunday"),Tt("monday"),Tt("tuesday"),Tt("wednesday"),Tt("thursday"),Tt("sundayFriday"),Tt("saturday")],r=i=>(i=i.toString(),i[1]?i:`0${i}`);a.push(o.getFullYear()),a.push(r(o.getMonth()+1)),a.push(r(o.getHours())),a.push(l[o.getDay()]),a.push(r(o.getDate())),a.push(r(o.getMinutes())),a.push(r(o.getSeconds())),a.push(r(o.getDay()));for(const i in a)n=n.replace(s[i],a[i]);return n}const Gm={class:"flex items-center gap-x-2.5"},qm=["onClick"],Km=e.defineComponent({__name:"index",props:{optionList:{default:()=>[]}},emits:["change"],setup(t,{expose:n,emit:o}){const a=t,s=o,l=e.ref(),r=e.ref({regDtm:[],queryStartDtm:"",queryEndDtm:""});e.onMounted(()=>{a.optionList.length<=0&&Qr.warning("DataTimeShortcuts","props","optionList 是必需的,但未提供")});function i(p){l.value=p;const d=Ym({today:To(new Date().getTime(),"Y-M-h"),daysCount:p-1}),f=`${To(new Date(d[d.length-1]).getTime(),"Y-M-h")} 00:00:00`,m=`${To(new Date(d[0]).getTime(),"Y-M-h")} 23:59:59`;r.value.regDtm=[f,m],r.value.queryStartDtm=f,r.value.queryEndDtm=m,s("change",r.value)}function c(){l.value=null}return e.onMounted(()=>{console.log("111")}),n({removeTimeData:c}),(p,d)=>(e.openBlock(),e.createElementBlock("div",Gm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.optionList,f=>(e.openBlock(),e.createElementBlock("div",{key:f.value,class:e.normalizeClass(["option",{select:e.unref(l)===f.value}]),onClick:m=>i(f.value)},e.toDisplayString(f.label),11,qm))),128))]))}}),be=(t,n)=>{const o=t.__vccOpts||t;for(const[a,s]of n)o[a]=s;return o},Xm=be(Km,[["__scopeId","data-v-028d1bdb"]]),Jm=e.defineComponent({__name:"hy-select-item",props:{optionLabel:{default:""},optionValue:{default:""},source:{default:""}},setup(t){const n=t;return e.onMounted(()=>{}),(o,a)=>{const s=e.resolveComponent("el-option");return e.openBlock(),e.createBlock(s,{key:n.source[`${n.optionValue}`],label:n.source[`${n.optionLabel}`],value:n.source[`${n.optionValue}`]},null,8,["label","value"])}}});/*! Element Plus Icons Vue v2.3.1 */var Zm=e.defineComponent({name:"CaretBottom",__name:"caret-bottom",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),Qm=Zm,vm=e.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Fs=vm,eh=e.defineComponent({name:"Close",__name:"close",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),th=eh,nh=e.defineComponent({name:"DArrowRight",__name:"d-arrow-right",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),oh=nh,ah=e.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Os=ah,sh=e.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Rs=sh,lh=e.defineComponent({name:"UploadFilled",__name:"upload-filled",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),rh=lh,ih=e.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Ps=ih,ch=e.defineComponent({name:"Warning",__name:"warning",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 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"})]))}}),dh=ch;function Ms(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);n&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),o.push.apply(o,a)}return o}function Fn(t){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?arguments[n]:{};n%2?Ms(Object(o),!0).forEach(function(a){mh(t,a,o[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ms(Object(o)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(o,a))})}return t}function ph(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Us(t,n){for(var o=0;o<n.length;o++){var a=n[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function fh(t,n,o){return n&&Us(t.prototype,n),o&&Us(t,o),t}function mh(t,n,o){return n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t}function hh(t){return uh(t)||_h(t)||gh(t)||yh()}function uh(t){if(Array.isArray(t))return Do(t)}function _h(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gh(t,n){if(t){if(typeof t=="string")return Do(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Do(t,n)}}function Do(t,n){(n==null||n>t.length)&&(n=t.length);for(var o=0,a=new Array(n);o<n;o++)a[o]=t[o];return a}function yh(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
23
+ */const Uc="9.13.1";function zc(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(st().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(st().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(st().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(st().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(st().__INTLIFY_PROD_DEVTOOLS__=!1)}const ps=je.__EXTEND_POINT__,rt=En(ps),De={FALLBACK_TO_ROOT:ps,NOT_SUPPORTED_PRESERVE:rt(),NOT_SUPPORTED_FORMATTER:rt(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:rt(),NOT_SUPPORTED_GET_CHOICE_INDEX:rt(),COMPONENT_NAME_LEGACY_COMPATIBLE:rt(),NOT_FOUND_PARENT_SCOPE:rt(),IGNORE_OBJ_FLATTEN:rt(),NOTICE_DROP_ALLOW_COMPOSITION:rt(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:rt()},Wc={[De.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[De.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[De.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[De.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[De.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[De.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[De.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[De.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[De.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[De.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function He(t,...n){return eo(Wc[t],...n)}const fs=Le.__EXTEND_POINT__,Ye=En(fs),ge={UNEXPECTED_RETURN_TYPE:fs,INVALID_ARGUMENT:Ye(),MUST_BE_CALL_SETUP_TOP:Ye(),NOT_INSTALLED:Ye(),NOT_AVAILABLE_IN_LEGACY_MODE:Ye(),REQUIRED_VALUE:Ye(),INVALID_VALUE:Ye(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ye(),NOT_INSTALLED_WITH_PROVIDE:Ye(),UNEXPECTED_ERROR:Ye(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ye(),BRIDGE_SUPPORT_VUE_2_ONLY:Ye(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ye(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ye(),__EXTEND_POINT__:Ye()};function Ie(t,...n){return Ot(t,null,process.env.NODE_ENV!=="production"?{messages:jc,args:n}:void 0)}const jc={[ge.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[ge.INVALID_ARGUMENT]:"Invalid argument",[ge.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[ge.NOT_INSTALLED]:"Need to install with `app.use` function",[ge.UNEXPECTED_ERROR]:"Unexpected error",[ge.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[ge.REQUIRED_VALUE]:"Required in value: {0}",[ge.INVALID_VALUE]:"Invalid value",[ge.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[ge.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[ge.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[ge.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[ge.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[ge.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},mo=tt("__translateVNode"),ho=tt("__datetimeParts"),uo=tt("__numberParts"),St=tt("__enableEmitter"),nn=tt("__disableEmitter"),ms=tt("__setPluralRules"),hs=tt("__injectWithOption"),_o=tt("__dispose");function on(t){if(!ye(t))return t;for(const n in t)if(wn(t,n))if(!n.includes("."))ye(t[n])&&on(t[n]);else{const o=n.split("."),a=o.length-1;let s=t,l=!1;for(let r=0;r<a;r++){if(o[r]in s||(s[o[r]]={}),!ye(s[o[r]])){process.env.NODE_ENV!=="production"&&Ae(He(De.IGNORE_OBJ_FLATTEN,{key:o[r]})),l=!0;break}s=s[o[r]]}l||(s[o[a]]=t[n],delete t[n]),ye(s[o[a]])&&on(s[o[a]])}return t}function In(t,n){const{messages:o,__i18n:a,messageResolver:s,flatJson:l}=n,r=re(o)?o:Ee(a)?{}:{[t]:{}};if(Ee(a)&&a.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:c,resource:p}=i;c?(r[c]=r[c]||{},Tn(p,r[c])):Tn(p,r)}else Q(i)&&Tn(JSON.parse(i),r)}),s==null&&l)for(const i in r)wn(r,i)&&on(r[i]);return r}function us(t){return t.type}function _s(t,n,o){let a=ye(n.messages)?n.messages:{};"__i18nGlobal"in o&&(a=In(t.locale.value,{messages:a,__i18n:o.__i18nGlobal}));const s=Object.keys(a);s.length&&s.forEach(l=>{t.mergeLocaleMessage(l,a[l])});{if(ye(n.datetimeFormats)){const l=Object.keys(n.datetimeFormats);l.length&&l.forEach(r=>{t.mergeDateTimeFormat(r,n.datetimeFormats[r])})}if(ye(n.numberFormats)){const l=Object.keys(n.numberFormats);l.length&&l.forEach(r=>{t.mergeNumberFormat(r,n.numberFormats[r])})}}}function gs(t){return e.createVNode(e.Text,null,t,0)}const ys="__INTLIFY_META__",xs=()=>[],Hc=()=>!1;let ks=0;function Ns(t){return(n,o,a,s)=>t(o,a,e.getCurrentInstance()||void 0,s)}const Yc=()=>{const t=e.getCurrentInstance();let n=null;return t&&(n=us(t)[ys])?{[ys]:n}:null};function go(t={},n){const{__root:o,__injectWithOption:a}=t,s=o===void 0,l=t.flatJson,r=Je?e.ref:e.shallowRef,i=!!t.translateExistCompatible;process.env.NODE_ENV!=="production"&&i&&Na(He(De.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=fe(t.inheritLocale)?t.inheritLocale:!0;const p=r(o&&c?o.locale.value:Q(t.locale)?t.locale:Mt),d=r(o&&c?o.fallbackLocale.value:Q(t.fallbackLocale)||Ee(t.fallbackLocale)||re(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:p.value),f=r(In(p.value,t)),m=r(re(t.datetimeFormats)?t.datetimeFormats:{[p.value]:{}}),_=r(re(t.numberFormats)?t.numberFormats:{[p.value]:{}});let y=o?o.missingWarn:fe(t.missingWarn)||ht(t.missingWarn)?t.missingWarn:!0,u=o?o.fallbackWarn:fe(t.fallbackWarn)||ht(t.fallbackWarn)?t.fallbackWarn:!0,N=o?o.fallbackRoot:fe(t.fallbackRoot)?t.fallbackRoot:!0,k=!!t.fallbackFormat,w=Ce(t.missing)?t.missing:null,b=Ce(t.missing)?Ns(t.missing):null,S=Ce(t.postTranslation)?t.postTranslation:null,V=o?o.warnHtmlMessage:fe(t.warnHtmlMessage)?t.warnHtmlMessage:!0,$=!!t.escapeParameter;const h=o?o.modifiers:re(t.modifiers)?t.modifiers:{};let g=t.pluralRules||o&&o.pluralRules,C;C=(()=>{s&&ja(null);const W={version:Uc,locale:p.value,fallbackLocale:d.value,messages:f.value,modifiers:h,pluralRules:g,missing:b===null?void 0:b,missingWarn:y,fallbackWarn:u,fallbackFormat:k,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:V,escapeParameter:$,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};W.datetimeFormats=m.value,W.numberFormats=_.value,W.__datetimeFormatters=re(C)?C.__datetimeFormatters:void 0,W.__numberFormatters=re(C)?C.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(W.__v_emitter=re(C)?C.__v_emitter:void 0);const K=Nc(W);return s&&ja(K),K})(),tn(C,p.value,d.value);function D(){return[p.value,d.value,f.value,m.value,_.value]}const T=e.computed({get:()=>p.value,set:W=>{p.value=W,C.locale=p.value}}),B=e.computed({get:()=>d.value,set:W=>{d.value=W,C.fallbackLocale=d.value,tn(C,p.value,W)}}),L=e.computed(()=>f.value),j=e.computed(()=>m.value),F=e.computed(()=>_.value);function M(){return Ce(S)?S:null}function z(W){S=W,C.postTranslation=W}function U(){return w}function R(W){W!==null&&(b=Ns(W)),w=W,C.missing=b}function Y(W,K){return W!=="translate"||!K.resolvedMessage}const X=(W,K,ce,we,kt,vn)=>{D();let vt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(C.fallbackContext=o?kc():void 0),vt=W(C)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(C.fallbackContext=void 0)}if(ce!=="translate exists"&&Be(vt)&&vt===$n||ce==="translate exists"&&!vt){const[Ft,OU]=K();if(process.env.NODE_ENV!=="production"&&o&&Q(Ft)&&Y(ce,OU)&&(N&&(An(u,Ft)||Ya(y,Ft))&&Ae(He(De.FALLBACK_TO_ROOT,{key:Ft,type:ce})),process.env.NODE_ENV!=="production")){const{__v_emitter:Yr}=C;Yr&&N&&Yr.emit("fallback",{type:ce,key:Ft,to:"global",groupId:`${ce}:${Ft}`})}return o&&N?we(o):kt(Ft)}else{if(vn(vt))return vt;throw Ie(ge.UNEXPECTED_RETURN_TYPE)}};function P(...W){return X(K=>Reflect.apply(va,null,[K,...W]),()=>io(...W),"translate",K=>Reflect.apply(K.t,K,[...W]),K=>K,K=>Q(K))}function v(...W){const[K,ce,we]=W;if(we&&!ye(we))throw Ie(ge.INVALID_ARGUMENT);return P(K,ce,Re({resolvedMessage:!0},we||{}))}function Te(...W){return X(K=>Reflect.apply(as,null,[K,...W]),()=>co(...W),"datetime format",K=>Reflect.apply(K.d,K,[...W]),()=>Bn,K=>Q(K))}function he(...W){return X(K=>Reflect.apply(rs,null,[K,...W]),()=>po(...W),"number format",K=>Reflect.apply(K.n,K,[...W]),()=>Bn,K=>Q(K))}function ke(W){return W.map(K=>Q(K)||Be(K)||fe(K)?gs(String(K)):K)}const J={normalize:ke,interpolate:W=>W,type:"vnode"};function ee(...W){return X(K=>{let ce;const we=K;try{we.processor=J,ce=Reflect.apply(va,null,[we,...W])}finally{we.processor=null}return ce},()=>io(...W),"translate",K=>K[mo](...W),K=>[gs(K)],K=>Ee(K))}function ie(...W){return X(K=>Reflect.apply(rs,null,[K,...W]),()=>po(...W),"number format",K=>K[uo](...W),xs,K=>Q(K)||Ee(K))}function le(...W){return X(K=>Reflect.apply(as,null,[K,...W]),()=>co(...W),"datetime format",K=>K[ho](...W),xs,K=>Q(K)||Ee(K))}function Z(W){g=W,C.pluralRules=g}function O(W,K){return X(()=>{if(!W)return!1;const ce=Q(K)?K:p.value,we=de(ce),kt=C.messageResolver(we,W);return i?kt!=null:gt(kt)||Ke(kt)||Q(kt)},()=>[W],"translate exists",ce=>Reflect.apply(ce.te,ce,[W,K]),Hc,ce=>fe(ce))}function G(W){let K=null;const ce=La(C,d.value,p.value);for(let we=0;we<ce.length;we++){const kt=f.value[ce[we]]||{},vn=C.messageResolver(kt,W);if(vn!=null){K=vn;break}}return K}function ne(W){const K=G(W);return K??(o?o.tm(W)||{}:{})}function de(W){return f.value[W]||{}}function _e(W,K){if(l){const ce={[W]:K};for(const we in ce)wn(ce,we)&&on(ce[we]);K=ce[W]}f.value[W]=K,C.messages=f.value}function Ve(W,K){f.value[W]=f.value[W]||{};const ce={[W]:K};if(l)for(const we in ce)wn(ce,we)&&on(ce[we]);K=ce[W],Tn(K,f.value[W]),C.messages=f.value}function A(W){return m.value[W]||{}}function I(W,K){m.value[W]=K,C.datetimeFormats=m.value,ls(C,W,K)}function H(W,K){m.value[W]=Re(m.value[W]||{},K),C.datetimeFormats=m.value,ls(C,W,K)}function te(W){return _.value[W]||{}}function Ne(W,K){_.value[W]=K,C.numberFormats=_.value,cs(C,W,K)}function me(W,K){_.value[W]=Re(_.value[W]||{},K),C.numberFormats=_.value,cs(C,W,K)}ks++,o&&Je&&(e.watch(o.locale,W=>{c&&(p.value=W,C.locale=W,tn(C,p.value,d.value))}),e.watch(o.fallbackLocale,W=>{c&&(d.value=W,C.fallbackLocale=W,tn(C,p.value,d.value))}));const ue={id:ks,locale:T,fallbackLocale:B,get inheritLocale(){return c},set inheritLocale(W){c=W,W&&o&&(p.value=o.locale.value,d.value=o.fallbackLocale.value,tn(C,p.value,d.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:L,get modifiers(){return h},get pluralRules(){return g||{}},get isGlobal(){return s},get missingWarn(){return y},set missingWarn(W){y=W,C.missingWarn=y},get fallbackWarn(){return u},set fallbackWarn(W){u=W,C.fallbackWarn=u},get fallbackRoot(){return N},set fallbackRoot(W){N=W},get fallbackFormat(){return k},set fallbackFormat(W){k=W,C.fallbackFormat=k},get warnHtmlMessage(){return V},set warnHtmlMessage(W){V=W,C.warnHtmlMessage=W},get escapeParameter(){return $},set escapeParameter(W){$=W,C.escapeParameter=W},t:P,getLocaleMessage:de,setLocaleMessage:_e,mergeLocaleMessage:Ve,getPostTranslationHandler:M,setPostTranslationHandler:z,getMissingHandler:U,setMissingHandler:R,[ms]:Z};return ue.datetimeFormats=j,ue.numberFormats=F,ue.rt=v,ue.te=O,ue.tm=ne,ue.d=Te,ue.n=he,ue.getDateTimeFormat=A,ue.setDateTimeFormat=I,ue.mergeDateTimeFormat=H,ue.getNumberFormat=te,ue.setNumberFormat=Ne,ue.mergeNumberFormat=me,ue[hs]=a,ue[mo]=ee,ue[ho]=le,ue[uo]=ie,process.env.NODE_ENV!=="production"&&(ue[St]=W=>{C.__v_emitter=W},ue[nn]=()=>{C.__v_emitter=void 0}),ue}function Gc(t){const n=Q(t.locale)?t.locale:Mt,o=Q(t.fallbackLocale)||Ee(t.fallbackLocale)||re(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,a=Ce(t.missing)?t.missing:void 0,s=fe(t.silentTranslationWarn)||ht(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,l=fe(t.silentFallbackWarn)||ht(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,r=fe(t.fallbackRoot)?t.fallbackRoot:!0,i=!!t.formatFallbackMessages,c=re(t.modifiers)?t.modifiers:{},p=t.pluralizationRules,d=Ce(t.postTranslation)?t.postTranslation:void 0,f=Q(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,m=!!t.escapeParameterHtml,_=fe(t.sync)?t.sync:!0;process.env.NODE_ENV!=="production"&&t.formatter&&Ae(He(De.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&t.preserveDirectiveContent&&Ae(He(De.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let y=t.messages;if(re(t.sharedMessages)){const $=t.sharedMessages;y=Object.keys($).reduce((g,C)=>{const E=g[C]||(g[C]={});return Re(E,$[C]),g},y||{})}const{__i18n:u,__root:N,__injectWithOption:k}=t,w=t.datetimeFormats,b=t.numberFormats,S=t.flatJson,V=t.translateExistCompatible;return{locale:n,fallbackLocale:o,messages:y,flatJson:S,datetimeFormats:w,numberFormats:b,missing:a,missingWarn:s,fallbackWarn:l,fallbackRoot:r,fallbackFormat:i,modifiers:c,pluralRules:p,postTranslation:d,warnHtmlMessage:f,escapeParameter:m,messageResolver:t.messageResolver,inheritLocale:_,translateExistCompatible:V,__i18n:u,__root:N,__injectWithOption:k}}function yo(t={},n){{const o=go(Gc(t)),{__extender:a}=t,s={id:o.id,get locale(){return o.locale.value},set locale(l){o.locale.value=l},get fallbackLocale(){return o.fallbackLocale.value},set fallbackLocale(l){o.fallbackLocale.value=l},get messages(){return o.messages.value},get datetimeFormats(){return o.datetimeFormats.value},get numberFormats(){return o.numberFormats.value},get availableLocales(){return o.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&Ae(He(De.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(l){process.env.NODE_ENV!=="production"&&Ae(He(De.NOT_SUPPORTED_FORMATTER))},get missing(){return o.getMissingHandler()},set missing(l){o.setMissingHandler(l)},get silentTranslationWarn(){return fe(o.missingWarn)?!o.missingWarn:o.missingWarn},set silentTranslationWarn(l){o.missingWarn=fe(l)?!l:l},get silentFallbackWarn(){return fe(o.fallbackWarn)?!o.fallbackWarn:o.fallbackWarn},set silentFallbackWarn(l){o.fallbackWarn=fe(l)?!l:l},get modifiers(){return o.modifiers},get formatFallbackMessages(){return o.fallbackFormat},set formatFallbackMessages(l){o.fallbackFormat=l},get postTranslation(){return o.getPostTranslationHandler()},set postTranslation(l){o.setPostTranslationHandler(l)},get sync(){return o.inheritLocale},set sync(l){o.inheritLocale=l},get warnHtmlInMessage(){return o.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(l){o.warnHtmlMessage=l!=="off"},get escapeParameterHtml(){return o.escapeParameter},set escapeParameterHtml(l){o.escapeParameter=l},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&Ae(He(De.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(l){process.env.NODE_ENV!=="production"&&Ae(He(De.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return o.pluralRules||{}},__composer:o,t(...l){const[r,i,c]=l,p={};let d=null,f=null;if(!Q(r))throw Ie(ge.INVALID_ARGUMENT);const m=r;return Q(i)?p.locale=i:Ee(i)?d=i:re(i)&&(f=i),Ee(c)?d=c:re(c)&&(f=c),Reflect.apply(o.t,o,[m,d||f||{},p])},rt(...l){return Reflect.apply(o.rt,o,[...l])},tc(...l){const[r,i,c]=l,p={plural:1};let d=null,f=null;if(!Q(r))throw Ie(ge.INVALID_ARGUMENT);const m=r;return Q(i)?p.locale=i:Be(i)?p.plural=i:Ee(i)?d=i:re(i)&&(f=i),Q(c)?p.locale=c:Ee(c)?d=c:re(c)&&(f=c),Reflect.apply(o.t,o,[m,d||f||{},p])},te(l,r){return o.te(l,r)},tm(l){return o.tm(l)},getLocaleMessage(l){return o.getLocaleMessage(l)},setLocaleMessage(l,r){o.setLocaleMessage(l,r)},mergeLocaleMessage(l,r){o.mergeLocaleMessage(l,r)},d(...l){return Reflect.apply(o.d,o,[...l])},getDateTimeFormat(l){return o.getDateTimeFormat(l)},setDateTimeFormat(l,r){o.setDateTimeFormat(l,r)},mergeDateTimeFormat(l,r){o.mergeDateTimeFormat(l,r)},n(...l){return Reflect.apply(o.n,o,[...l])},getNumberFormat(l){return o.getNumberFormat(l)},setNumberFormat(l,r){o.setNumberFormat(l,r)},mergeNumberFormat(l,r){o.mergeNumberFormat(l,r)},getChoiceIndex(l,r){return process.env.NODE_ENV!=="production"&&Ae(He(De.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return s.__extender=a,process.env.NODE_ENV!=="production"&&(s.__enableEmitter=l=>{const r=o;r[St]&&r[St](l)},s.__disableEmitter=()=>{const l=o;l[nn]&&l[nn]()}),s}}const xo={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function qc({slots:t},n){return n.length===1&&n[0]==="default"?(t.default?t.default():[]).reduce((a,s)=>[...a,...s.type===e.Fragment?s.children:[s]],[]):n.reduce((o,a)=>{const s=t[a];return s&&(o[a]=s()),o},{})}function bs(t){return e.Fragment}const ko=e.defineComponent({name:"i18n-t",props:Re({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Be(t)||!isNaN(t)}},xo),setup(t,n){const{slots:o,attrs:a}=n,s=t.i18n||wo({useScope:t.scope,__useComponent:!0});return()=>{const l=Object.keys(o).filter(f=>f!=="_"),r={};t.locale&&(r.locale=t.locale),t.plural!==void 0&&(r.plural=Q(t.plural)?+t.plural:t.plural);const i=qc(n,l),c=s[mo](t.keypath,i,r),p=Re({},a),d=Q(t.tag)||ye(t.tag)?t.tag:bs();return e.h(d,p,c)}}});function Kc(t){return Ee(t)&&!Q(t[0])}function Cs(t,n,o,a){const{slots:s,attrs:l}=n;return()=>{const r={part:!0};let i={};t.locale&&(r.locale=t.locale),Q(t.format)?r.key=t.format:ye(t.format)&&(Q(t.format.key)&&(r.key=t.format.key),i=Object.keys(t.format).reduce((m,_)=>o.includes(_)?Re({},m,{[_]:t.format[_]}):m,{}));const c=a(t.value,r,i);let p=[r.key];Ee(c)?p=c.map((m,_)=>{const y=s[m.type],u=y?y({[m.type]:m.value,index:_,parts:c}):[m.value];return Kc(u)&&(u[0].key=`${m.type}-${_}`),u}):Q(c)&&(p=[c]);const d=Re({},l),f=Q(t.tag)||ye(t.tag)?t.tag:bs();return e.h(f,d,p)}}const ws=e.defineComponent({name:"i18n-n",props:Re({value:{type:Number,required:!0},format:{type:[String,Object]}},xo),setup(t,n){const o=t.i18n||wo({useScope:t.scope,__useComponent:!0});return Cs(t,n,is,(...a)=>o[uo](...a))}}),Es=e.defineComponent({name:"i18n-d",props:Re({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},xo),setup(t,n){const o=t.i18n||wo({useScope:t.scope,__useComponent:!0});return Cs(t,n,ss,(...a)=>o[ho](...a))}});function Xc(t,n){const o=t;if(t.mode==="composition")return o.__getInstance(n)||t.global;{const a=o.__getInstance(n);return a!=null?a.__composer:t.global.__composer}}function Jc(t){const n=r=>{const{instance:i,modifiers:c,value:p}=r;if(!i||!i.$)throw Ie(ge.UNEXPECTED_ERROR);const d=Xc(t,i.$);process.env.NODE_ENV!=="production"&&c.preserve&&Ae(He(De.NOT_SUPPORTED_PRESERVE));const f=Ss(p);return[Reflect.apply(d.t,d,[...Ts(f)]),d]};return{created:(r,i)=>{const[c,p]=n(i);Je&&t.global===p&&(r.__i18nWatcher=e.watch(p.locale,()=>{i.instance&&i.instance.$forceUpdate()})),r.__composer=p,r.textContent=c},unmounted:r=>{Je&&r.__i18nWatcher&&(r.__i18nWatcher(),r.__i18nWatcher=void 0,delete r.__i18nWatcher),r.__composer&&(r.__composer=void 0,delete r.__composer)},beforeUpdate:(r,{value:i})=>{if(r.__composer){const c=r.__composer,p=Ss(i);r.textContent=Reflect.apply(c.t,c,[...Ts(p)])}},getSSRProps:r=>{const[i]=n(r);return{textContent:i}}}}function Ss(t){if(Q(t))return{path:t};if(re(t)){if(!("path"in t))throw Ie(ge.REQUIRED_VALUE,"path");return t}else throw Ie(ge.INVALID_VALUE)}function Ts(t){const{path:n,locale:o,args:a,choice:s,plural:l}=t,r={},i=a||{};return Q(o)&&(r.locale=o),Be(s)&&(r.plural=s),Be(l)&&(r.plural=l),[n,i,r]}function Zc(t,n,...o){const a=re(o[0])?o[0]:{},s=!!a.useI18nComponentName,l=fe(a.globalInstall)?a.globalInstall:!0;process.env.NODE_ENV!=="production"&&l&&s&&Ae(He(De.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:ko.name})),l&&([s?"i18n":ko.name,"I18nT"].forEach(r=>t.component(r,ko)),[ws.name,"I18nN"].forEach(r=>t.component(r,ws)),[Es.name,"I18nD"].forEach(r=>t.component(r,Es))),t.directive("t",Jc(n))}const No={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},Qc={"vue-i18n-resource-inspector":"Search for scopes ..."},vc={"vue-i18n-timeline":16764185},Ds="vue-i18n: composer properties";let bo;async function ed(t,n){return new Promise((o,a)=>{try{Mc({id:"vue-devtools-plugin-vue-i18n",label:No["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Ds],app:t},s=>{bo=s,s.on.visitComponentTree(({componentInstance:r,treeNode:i})=>{td(r,i,n)}),s.on.inspectComponent(({componentInstance:r,instanceData:i})=>{r.vnode.el&&r.vnode.el.__VUE_I18N__&&i&&(n.mode==="legacy"?r.vnode.el.__VUE_I18N__!==n.global.__composer&&$s(i,r.vnode.el.__VUE_I18N__):$s(i,r.vnode.el.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:No["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Qc["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(r=>{r.app===t&&r.inspectorId==="vue-i18n-resource-inspector"&&ld(r,n)});const l=new Map;s.on.getInspectorState(async r=>{if(r.app===t&&r.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),id(r,n),r.nodeId==="global"){if(!l.has(r.app)){const[i]=await s.getComponentInstances(r.app);l.set(r.app,i)}s.highlightElement(l.get(r.app))}else{const i=rd(r.nodeId,n);i&&s.highlightElement(i)}}),s.on.editInspectorState(r=>{r.app===t&&r.inspectorId==="vue-i18n-resource-inspector"&&dd(r,n)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:No["vue-i18n-timeline"],color:vc["vue-i18n-timeline"]}),o(!0)})}catch(s){console.error(s),a(!1)}})}function Vs(t){return t.type.name||t.type.displayName||t.type.__file||"Anonymous"}function td(t,n,o){const a=o.mode==="composition"?o.global:o.global.__composer;if(t&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&t.vnode.el.__VUE_I18N__!==a){const s={label:`i18n (${Vs(t)} Scope)`,textColor:0,backgroundColor:16764185};n.tags.push(s)}}function $s(t,n){const o=Ds;t.state.push({type:o,key:"locale",editable:!0,value:n.locale.value}),t.state.push({type:o,key:"availableLocales",editable:!1,value:n.availableLocales}),t.state.push({type:o,key:"fallbackLocale",editable:!0,value:n.fallbackLocale.value}),t.state.push({type:o,key:"inheritLocale",editable:!0,value:n.inheritLocale}),t.state.push({type:o,key:"messages",editable:!1,value:Co(n.messages.value)}),t.state.push({type:o,key:"datetimeFormats",editable:!1,value:n.datetimeFormats.value}),t.state.push({type:o,key:"numberFormats",editable:!1,value:n.numberFormats.value})}function Co(t){const n={};return Object.keys(t).forEach(o=>{const a=t[o];Ce(a)&&"source"in a?n[o]=sd(a):gt(a)&&a.loc&&a.loc.source?n[o]=a.loc.source:ye(a)?n[o]=Co(a):n[o]=a}),n}const nd={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function od(t){return t.replace(/[<>"&]/g,ad)}function ad(t){return nd[t]||t}function sd(t){return{_custom:{type:"function",display:`<span>ƒ</span> ${t.source?`("${od(t.source)}")`:"(?)"}`}}}function ld(t,n){t.rootNodes.push({id:"global",label:"Global Scope"});const o=n.mode==="composition"?n.global:n.global.__composer;for(const[a,s]of n.__instances){const l=n.mode==="composition"?s:s.__composer;o!==l&&t.rootNodes.push({id:l.id.toString(),label:`${Vs(a)} Scope`})}}function rd(t,n){let o=null;if(t!=="global"){for(const[a,s]of n.__instances.entries())if(s.id.toString()===t){o=a;break}}return o}function Bs(t,n){if(t==="global")return n.mode==="composition"?n.global:n.global.__composer;{const o=Array.from(n.__instances.values()).find(a=>a.id.toString()===t);return o?n.mode==="composition"?o:o.__composer:null}}function id(t,n){const o=Bs(t.nodeId,n);return o&&(t.state=cd(o)),null}function cd(t){const n={},o="Locale related info",a=[{type:o,key:"locale",editable:!0,value:t.locale.value},{type:o,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value},{type:o,key:"availableLocales",editable:!1,value:t.availableLocales},{type:o,key:"inheritLocale",editable:!0,value:t.inheritLocale}];n[o]=a;const s="Locale messages info",l=[{type:s,key:"messages",editable:!1,value:Co(t.messages.value)}];n[s]=l;{const r="Datetime formats info",i=[{type:r,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}];n[r]=i;const c="Datetime formats info",p=[{type:c,key:"numberFormats",editable:!1,value:t.numberFormats.value}];n[c]=p}return n}function an(t,n){if(bo){let o;n&&"groupId"in n&&(o=n.groupId,delete n.groupId),bo.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:t,groupId:o,time:Date.now(),meta:{},data:n||{},logType:t==="compile-error"?"error":t==="fallback"||t==="missing"?"warning":"default"}})}}function dd(t,n){const o=Bs(t.nodeId,n);if(o){const[a]=t.path;a==="locale"&&Q(t.state.value)?o.locale.value=t.state.value:a==="fallbackLocale"&&(Q(t.state.value)||Ee(t.state.value)||ye(t.state.value))?o.fallbackLocale.value=t.state.value:a==="inheritLocale"&&fe(t.state.value)&&(o.inheritLocale=t.state.value)}}function pd(t,n,o){return{beforeCreate(){const a=e.getCurrentInstance();if(!a)throw Ie(ge.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const l=s.i18n;if(s.__i18n&&(l.__i18n=s.__i18n),l.__root=n,this===this.$root)this.$i18n=As(t,l);else{l.__injectWithOption=!0,l.__extender=o.__vueI18nExtend,this.$i18n=yo(l);const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=As(t,s);else{this.$i18n=yo({__i18n:s.__i18n,__injectWithOption:!0,__extender:o.__vueI18nExtend,__root:n});const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}else this.$i18n=t;s.__i18nGlobal&&_s(n,s,s),this.$t=(...l)=>this.$i18n.t(...l),this.$rt=(...l)=>this.$i18n.rt(...l),this.$tc=(...l)=>this.$i18n.tc(...l),this.$te=(l,r)=>this.$i18n.te(l,r),this.$d=(...l)=>this.$i18n.d(...l),this.$n=(...l)=>this.$i18n.n(...l),this.$tm=l=>this.$i18n.tm(l),o.__setInstance(a,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const a=this.$i18n;this.$el.__VUE_I18N__=a.__composer;const s=this.__v_emitter=to();a.__enableEmitter&&a.__enableEmitter(s),s.on("*",an)}},unmounted(){const a=e.getCurrentInstance();if(!a)throw Ie(ge.UNEXPECTED_ERROR);const s=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",an),delete this.__v_emitter),this.$i18n&&(s.__disableEmitter&&s.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),o.__deleteInstance(a),delete this.$i18n}}}function As(t,n){t.locale=n.locale||t.locale,t.fallbackLocale=n.fallbackLocale||t.fallbackLocale,t.missing=n.missing||t.missing,t.silentTranslationWarn=n.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=n.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=n.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=n.postTranslation||t.postTranslation,t.warnHtmlInMessage=n.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=n.escapeParameterHtml||t.escapeParameterHtml,t.sync=n.sync||t.sync,t.__composer[ms](n.pluralizationRules||t.pluralizationRules);const o=In(t.locale,{messages:n.messages,__i18n:n.__i18n});return Object.keys(o).forEach(a=>t.mergeLocaleMessage(a,o[a])),n.datetimeFormats&&Object.keys(n.datetimeFormats).forEach(a=>t.mergeDateTimeFormat(a,n.datetimeFormats[a])),n.numberFormats&&Object.keys(n.numberFormats).forEach(a=>t.mergeNumberFormat(a,n.numberFormats[a])),t}const fd=tt("global-vue-i18n");function md(t={},n){const o=__VUE_I18N_LEGACY_API__&&fe(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,a=fe(t.globalInjection)?t.globalInjection:!0,s=__VUE_I18N_LEGACY_API__&&o?!!t.allowComposition:!0,l=new Map,[r,i]=hd(t,o),c=tt(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&o&&s&&Ae(He(De.NOTICE_DROP_ALLOW_COMPOSITION));function p(m){return l.get(m)||null}function d(m,_){l.set(m,_)}function f(m){l.delete(m)}{const m={get mode(){return __VUE_I18N_LEGACY_API__&&o?"legacy":"composition"},get allowComposition(){return s},async install(_,...y){if(process.env.NODE_ENV!=="production"&&(_.__VUE_I18N__=m),_.__VUE_I18N_SYMBOL__=c,_.provide(_.__VUE_I18N_SYMBOL__,m),re(y[0])){const k=y[0];m.__composerExtend=k.__composerExtend,m.__vueI18nExtend=k.__vueI18nExtend}let u=null;!o&&a&&(u=Cd(_,m.global)),__VUE_I18N_FULL_INSTALL__&&Zc(_,m,...y),__VUE_I18N_LEGACY_API__&&o&&_.mixin(pd(i,i.__composer,m));const N=_.unmount;if(_.unmount=()=>{u&&u(),m.dispose(),N()},process.env.NODE_ENV!=="production"){if(!await ed(_,m))throw Ie(ge.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const w=to();if(o){const b=i;b.__enableEmitter&&b.__enableEmitter(w)}else{const b=i;b[St]&&b[St](w)}w.on("*",an)}},get global(){return i},dispose(){r.stop()},__instances:l,__getInstance:p,__setInstance:d,__deleteInstance:f};return m}}function wo(t={}){const n=e.getCurrentInstance();if(n==null)throw Ie(ge.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Ie(ge.NOT_INSTALLED);const o=ud(n),a=gd(o),s=us(n),l=_d(t,s);if(__VUE_I18N_LEGACY_API__&&o.mode==="legacy"&&!t.__useComponent){if(!o.allowComposition)throw Ie(ge.NOT_AVAILABLE_IN_LEGACY_MODE);return Nd(n,l,a,t)}if(l==="global")return _s(a,t,s),a;if(l==="parent"){let c=yd(o,n,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Ae(He(De.NOT_FOUND_PARENT_SCOPE)),c=a),c}const r=o;let i=r.__getInstance(n);if(i==null){const c=Re({},t);"__i18n"in s&&(c.__i18n=s.__i18n),a&&(c.__root=a),i=go(c),r.__composerExtend&&(i[_o]=r.__composerExtend(i)),kd(r,n,i),r.__setInstance(n,i)}return i}function hd(t,n,o){const a=e.effectScope();{const s=__VUE_I18N_LEGACY_API__&&n?a.run(()=>yo(t)):a.run(()=>go(t));if(s==null)throw Ie(ge.UNEXPECTED_ERROR);return[a,s]}}function ud(t){{const n=e.inject(t.isCE?fd:t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Ie(t.isCE?ge.NOT_INSTALLED_WITH_PROVIDE:ge.UNEXPECTED_ERROR);return n}}function _d(t,n){return Cn(t)?"__i18n"in n?"local":"global":t.useScope?t.useScope:"local"}function gd(t){return t.mode==="composition"?t.global:t.global.__composer}function yd(t,n,o=!1){let a=null;const s=n.root;let l=xd(n,o);for(;l!=null;){const r=t;if(t.mode==="composition")a=r.__getInstance(l);else if(__VUE_I18N_LEGACY_API__){const i=r.__getInstance(l);i!=null&&(a=i.__composer,o&&a&&!a[hs]&&(a=null))}if(a!=null||s===l)break;l=l.parent}return a}function xd(t,n=!1){return t==null?null:n&&t.vnode.ctx||t.parent}function kd(t,n,o){let a=null;e.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&n.vnode.el){n.vnode.el.__VUE_I18N__=o,a=to();const s=o;s[St]&&s[St](a),a.on("*",an)}},n),e.onUnmounted(()=>{const s=o;process.env.NODE_ENV!=="production"&&n.vnode.el&&n.vnode.el.__VUE_I18N__&&(a&&a.off("*",an),s[nn]&&s[nn](),delete n.vnode.el.__VUE_I18N__),t.__deleteInstance(n);const l=s[_o];l&&(l(),delete s[_o])},n)}function Nd(t,n,o,a={}){const s=n==="local",l=e.shallowRef(null);if(s&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Ie(ge.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const r=fe(a.inheritLocale)?a.inheritLocale:!Q(a.locale),i=e.ref(!s||r?o.locale.value:Q(a.locale)?a.locale:Mt),c=e.ref(!s||r?o.fallbackLocale.value:Q(a.fallbackLocale)||Ee(a.fallbackLocale)||re(a.fallbackLocale)||a.fallbackLocale===!1?a.fallbackLocale:i.value),p=e.ref(In(i.value,a)),d=e.ref(re(a.datetimeFormats)?a.datetimeFormats:{[i.value]:{}}),f=e.ref(re(a.numberFormats)?a.numberFormats:{[i.value]:{}}),m=s?o.missingWarn:fe(a.missingWarn)||ht(a.missingWarn)?a.missingWarn:!0,_=s?o.fallbackWarn:fe(a.fallbackWarn)||ht(a.fallbackWarn)?a.fallbackWarn:!0,y=s?o.fallbackRoot:fe(a.fallbackRoot)?a.fallbackRoot:!0,u=!!a.fallbackFormat,N=Ce(a.missing)?a.missing:null,k=Ce(a.postTranslation)?a.postTranslation:null,w=s?o.warnHtmlMessage:fe(a.warnHtmlMessage)?a.warnHtmlMessage:!0,b=!!a.escapeParameter,S=s?o.modifiers:re(a.modifiers)?a.modifiers:{},V=a.pluralRules||s&&o.pluralRules;function $(){return[i.value,c.value,p.value,d.value,f.value]}const h=e.computed({get:()=>l.value?l.value.locale.value:i.value,set:O=>{l.value&&(l.value.locale.value=O),i.value=O}}),g=e.computed({get:()=>l.value?l.value.fallbackLocale.value:c.value,set:O=>{l.value&&(l.value.fallbackLocale.value=O),c.value=O}}),C=e.computed(()=>l.value?l.value.messages.value:p.value),E=e.computed(()=>d.value),D=e.computed(()=>f.value);function T(){return l.value?l.value.getPostTranslationHandler():k}function B(O){l.value&&l.value.setPostTranslationHandler(O)}function L(){return l.value?l.value.getMissingHandler():N}function j(O){l.value&&l.value.setMissingHandler(O)}function F(O){return $(),O()}function M(...O){return l.value?F(()=>Reflect.apply(l.value.t,null,[...O])):F(()=>"")}function z(...O){return l.value?Reflect.apply(l.value.rt,null,[...O]):""}function U(...O){return l.value?F(()=>Reflect.apply(l.value.d,null,[...O])):F(()=>"")}function R(...O){return l.value?F(()=>Reflect.apply(l.value.n,null,[...O])):F(()=>"")}function Y(O){return l.value?l.value.tm(O):{}}function X(O,G){return l.value?l.value.te(O,G):!1}function P(O){return l.value?l.value.getLocaleMessage(O):{}}function v(O,G){l.value&&(l.value.setLocaleMessage(O,G),p.value[O]=G)}function Te(O,G){l.value&&l.value.mergeLocaleMessage(O,G)}function he(O){return l.value?l.value.getDateTimeFormat(O):{}}function ke(O,G){l.value&&(l.value.setDateTimeFormat(O,G),d.value[O]=G)}function Oe(O,G){l.value&&l.value.mergeDateTimeFormat(O,G)}function J(O){return l.value?l.value.getNumberFormat(O):{}}function ee(O,G){l.value&&(l.value.setNumberFormat(O,G),f.value[O]=G)}function ie(O,G){l.value&&l.value.mergeNumberFormat(O,G)}const le={get id(){return l.value?l.value.id:-1},locale:h,fallbackLocale:g,messages:C,datetimeFormats:E,numberFormats:D,get inheritLocale(){return l.value?l.value.inheritLocale:r},set inheritLocale(O){l.value&&(l.value.inheritLocale=O)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(p.value)},get modifiers(){return l.value?l.value.modifiers:S},get pluralRules(){return l.value?l.value.pluralRules:V},get isGlobal(){return l.value?l.value.isGlobal:!1},get missingWarn(){return l.value?l.value.missingWarn:m},set missingWarn(O){l.value&&(l.value.missingWarn=O)},get fallbackWarn(){return l.value?l.value.fallbackWarn:_},set fallbackWarn(O){l.value&&(l.value.missingWarn=O)},get fallbackRoot(){return l.value?l.value.fallbackRoot:y},set fallbackRoot(O){l.value&&(l.value.fallbackRoot=O)},get fallbackFormat(){return l.value?l.value.fallbackFormat:u},set fallbackFormat(O){l.value&&(l.value.fallbackFormat=O)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:w},set warnHtmlMessage(O){l.value&&(l.value.warnHtmlMessage=O)},get escapeParameter(){return l.value?l.value.escapeParameter:b},set escapeParameter(O){l.value&&(l.value.escapeParameter=O)},t:M,getPostTranslationHandler:T,setPostTranslationHandler:B,getMissingHandler:L,setMissingHandler:j,rt:z,d:U,n:R,tm:Y,te:X,getLocaleMessage:P,setLocaleMessage:v,mergeLocaleMessage:Te,getDateTimeFormat:he,setDateTimeFormat:ke,mergeDateTimeFormat:Oe,getNumberFormat:J,setNumberFormat:ee,mergeNumberFormat:ie};function Z(O){O.locale.value=i.value,O.fallbackLocale.value=c.value,Object.keys(p.value).forEach(G=>{O.mergeLocaleMessage(G,p.value[G])}),Object.keys(d.value).forEach(G=>{O.mergeDateTimeFormat(G,d.value[G])}),Object.keys(f.value).forEach(G=>{O.mergeNumberFormat(G,f.value[G])}),O.escapeParameter=b,O.fallbackFormat=u,O.fallbackRoot=y,O.fallbackWarn=_,O.missingWarn=m,O.warnHtmlMessage=w}return e.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Ie(ge.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const O=l.value=t.proxy.$i18n.__composer;n==="global"?(i.value=O.locale.value,c.value=O.fallbackLocale.value,p.value=O.messages.value,d.value=O.datetimeFormats.value,f.value=O.numberFormats.value):s&&Z(O)}),le}const bd=["locale","fallbackLocale","availableLocales"],Is=["t","rt","d","n","tm","te"];function Cd(t,n){const o=Object.create(null);return bd.forEach(s=>{const l=Object.getOwnPropertyDescriptor(n,s);if(!l)throw Ie(ge.UNEXPECTED_ERROR);const r=e.isRef(l.value)?{get(){return l.value.value},set(i){l.value.value=i}}:{get(){return l.get&&l.get()}};Object.defineProperty(o,s,r)}),t.config.globalProperties.$i18n=o,Is.forEach(s=>{const l=Object.getOwnPropertyDescriptor(n,s);if(!l||!l.value)throw Ie(ge.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${s}`,l)}),()=>{delete t.config.globalProperties.$i18n,Is.forEach(s=>{delete t.config.globalProperties[`$${s}`]})}}if(zc(),__INTLIFY_JIT_COMPILATION__?Pa(Sc):Pa(Ec),_c(Ji),gc(La),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=st();t.__INTLIFY__=!0,sc(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const wd={editDepartmentType:"Edit department type",addDepartmentType:"Add department type",departmentIcon:"Department icon",upload:"Upload",pleaseUploadDepartmentTypeIcon:"Please upload department type icon",iconSize44px:"Icon size 44px",ifNoIconUseTheDefaultIcon:"If no icon, use the default icon",departmentTypeName:"Department type name",pleaseEnterTheDepartmentTypeName:"Please enter the department type name","close-0":"Close","save-0":"Save",imageUploadFailedLogoSizeWithin2M:"Image upload failed, logo size within 2M",operationSuccessful:"Operation successful",department:"Department",filterByDepartmentName:"Filter By Department Name",equipment:"Equipment",filterByDeviceNumberAndDeviceName:"Filter By Device Number And Device Name",pleaseEnterContentToSearch:"Please Enter Content To Search",pleaseSelectThePersonYouWantToViewBelow:"Please Select The Person You Want To View Below",filterByPersonnelName:"Filter By Personnel Name",addedIntercomRecordsToday:"Added Intercom Records Today",allDevices:"All Devices",clear:"Clear",selected:"Selected","individual-0":"Individual",loadingDesperately:"Loading","filterByDeviceNumber,DeviceName,DepartmentName":"Filter By Device Number, Device Name, Department Name",noData:"No Data",online:"Online",offline:"Offline",youHaveNotSelectedADeviceYet:"You Have Not Selected A Device Yet",delete:"Delete",allDepartments:"All Departments",doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt:"(Double-click To Select The Department And All Departments Under It)",youHaveNotSelectedADepartmentYet:"You Have Not Selected A Department",spotCheckDetails:"Spot Check Details",spotCheckPersonnel:"Spot Check Personnel",spotCheckTime:"Spot Check Time",spotCheckType:"Spot Check Type",rangeCheck:"Range Check",randomCheck:"Random Check",spotCheckMethod:"Spot Check Method.",message:"Message",call:"Call.",samplingScope:"Sampling Scope (",regionalSpotCheck:"Regional Spot Check",departmentSpotCheck:"Department Spot Check",deviceSpotCheck:"Device Spot Check",device:"Device",messageContent:"Message Content.",textToSpeech:"Text To Speech",answerMethod:"Answer Method.",punchIn:"Punch In.",reply:"Reply.",answerTime:"Answer Time.",second:"Second",callSpotCheck:"Call Spot Check",backupWillBeCheckedByIntercomAnswering:"Backup Will Be Checked By Intercom Answering",numberOfPeopleToBeChecked:"Number Of People To Be Checked",waitingToReceive:"Waiting To Receive",receiving:"Receiving",completed:"Completed",uncompleted:"Uncompleted",noDeviceSupportsThisSpotCheck:"No Device Supports This Spot Check",spotCheckInformation:"Spot Check Information",spotCheckStatus:"Spot Check Status",all:"All","completed-0":"Completed","uncompleted-0":"Uncompleted",theDeviceWasInATemporaryGroupWhenTheSpotCheckWasInitiated:"The Device Was In A Temporary Group When The Spot Check Was Initiated",lin:"Lin",theDeviceWasOfflineWhenTheSpotCheckWasInitiated:"The Device Was Offline When The Spot Check Was Initiated","toBeReceived-1":"ToBeReceived","receiving-1":"Receiving",change:"Change",noMemberRespondedAtTheMoment:"No Member Responded At The Moment",continuePlaying:"Continue Playing",networkIsNotGoodPleaseTryAgainLater:"Network Is Not Good, Please Try Again Later",initiate:"Initiate",spotCheck:"Spot Check",responseMethod:"Response Method: ",responseTime:"Response Time: ",offlineStatus:"Offline Status",temporaryGroups:"Temporary Groups: ",viewContent:"View Content",theDeviceYouAreSpotCheckingIsOffline:"The Device You Are Spot Checking Is Offline",cannotSupportThisSpotCheck:"Cannot Support This Spot Check",groupMemberStatusAbnormalityPreventsSpotCheck:"Group Member Status Abnormality Prevents Spot Check",cancel:"Cancel",complete:"Complete",currentlySpotCheckInProgressPleaseProcessLater:"Currently Spot Check In Progress, Please Process Later",tips:"Tips",cancelSpotCheck:"Cancel Spot Check",confirmToCancelThisSpotCheck:"Confirm To Cancel This Spot Check",cancelMidwayYouWillNotBeAbleToRetrieveOrViewAnyInformationOfThisSpotCheck:"Cancel Midway, You Will Not Be Able To Retrieve Or View Any Information Of This Spot Check",returnToSpotCheck:"Return To Spot Check","afterTheCheck,YouCanViewTheSpotCheckInformationInTheSpotCheckModule":"After The Check, You Can View The Spot Check Information In The Spot Check Module",thereAreStillDevicesInTheReceivingProcessTheSystemWillMarkTheseDevicesAsUnfinished:"There Are Still Devices In The Receiving Process, The System Will Mark These Devices As Unfinished",endSpotCheck:"End Spot Check",confirmToEndThisSpotCheck:"Confirm To End This Spot Check",theSpotCheckHasBeenCompletedYouCanViewDetailedInformationRecordsInTheSpotCheckModule:"The Spot Check Has Been Completed, You Can View Detailed Information Records In The Spot Check Module",electronicFence:"Electronic Fence",filterByElectronicFenceName:"Filter By Electronic Fence Name",youHavenTSelectedAFenceYet:"You Haven't Selected A Fence Yet",spotCheckTemplate:"Spot Check Template.",edit:"Edit",templateName:"Template Name",operation:"Operation",operator:"Operator: ",pleaseEnterTheTemplateName:"Please Enter The Template Name",executionDate:"Execution Date",pleaseSelectTheExecutionDate:"Please Select The Execution Date",everyday:"Everyday",specifyAWeek:"Specify A Week",specifyADate:"Specify A Date",specifyATimePeriod:"Specify A Time Period",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday",mmDdYyyy:"MM Dd, Yyyy",selectOneOrMoreDates:"Select One Or More Dates",to:"To",startDate:"Start Date",endDate:"End Date","executionTime-0":"Execution Time",startTime:"Start Time",endTime:"End Time",selectATimeRange:"Select A Time Range",pleaseSelectTheSpotCheckType:"Please Select The Spot Check Type",spotCheckDevice:"Spot Check Device",pleaseSelectTheSpotCheckDevice:"Please Select The Spot Check Device",spotCheckOnlyOnlineDevices:"Spot Check Only Online Devices",spotCheckAllDevices:"Spot Check All Devices",randomNumber:"Random Number",pleaseEnterTheRandomNumber:"Please Enter The Random Number",spotCheckRange:"Spot Check Range",youDoNotNeedToSelectARangeAndDeviceForRandomCheck:"In Random Check, You Do Not Need To Select Range And Device.",theSystemWillHelpYouSelectRandomly:"The System Will Help You Select Randomly.",pleaseSelect:"Please Select",selectAnArea:"Select Area.",selectADepartment:"Select Department.",selectADevice:"Select Device.",regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea:"Regional (electronic Fence): Select This Option To Spot-check Devices That Support Spot-check Configuration Within The Specified Electronic Fence Area.",departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment:"Department: Select This Option To Spot-check Devices That Support Spot-check Configuration In The Specified Department.",setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck:"Device: Select This Option To Manually Select Specific Devices That Support Spot-check Configuration For Spot-check.",help:"Help",pleaseSelectTheSpotCheckMethod:"Please Select Spot Check Method.",callDoesNotRequireYouToEnterTheMessageContent:"Calling Does Not Require You To Enter Message Content.",spotCheckWillBeConductedByIntercomAnswering:"Spot Check Will Be Conducted By Intercom Answering.",pleaseFillInTheMessageToBeSent:"Please Fill In The Message To Be Sent",requiresTTSVoiceBroadcastOnTheDevice:"Requires TTS Voice Broadcast On The Device",pleaseSelectTheAnswerTime:"Please Select Answer Time.",youCanApplyTheSpotCheckTemplateToQuicklyFillInTheContent:"You Can Apply The Spot Check Template To Quickly Fill In The Content.",confirm:"Confirm",pleaseSelectASpecificWeek:"Please Select A Specific Week.",immediatelyInitiateARollCallSpotCheck:"Immediately Initiate A Roll Call Spot Check.",pleaseSelectTheExecutionTime:"Please Select The Execution Time",pleaseSelectASpecificTimePeriod:"Please Select A Specific Time Period.",prompt:"Prompt",switchingTheSpotCheckDeviceWillClearTheSelectedData:"Switching The Spot Check Device Will Clear The Selected Data",confirmTheSwitch:"Confirm The Switch","cancel-0":"Cancel","confirm-3":"Confirm",atLeast1RandomDevice:"At Least 1 Random Device",repeat:"Repeat",switchingTheSpotCheckRangeWillClearTheSelectedData:"Switching The Spot Check Range Will Clear The Selected Data",pleaseSelectTheSpotCheckRange:"Please Select The Spot Check Range",pleaseSelectADate:"Please Select A Date",pleaseSelectATimePeriod:"Please Select A Time Period",templateApplied:"Template Applied",yearMMMonthDDDay:"Year MM month DD day",creationTime:"Creation Time",fileAttributes:"File Attributes",star:"Star","user-3":"User",fileSource:"File Source",daily:"Daily",task:"Task",deviceID:"Device ID",audioDuration:"Audio Duration",expirationTime:"Expiration Time",fileSize:"File Size",rating:"Rating",rated:"Rated",unrated:"Unrated",location:"Location",detectionIsCorrect:"Detection Is Correct",confirmScore:"Confirm Score",confirmAs:"Confirm As",noSecondaryModificationAfterScoring:"No Secondary Modification After Scoring",close:"Close",fileIDNotPassedIn:"File ID Not Passed In",pleaseScoreTheCurrentFile:"Please Score The Current File",successfulScoring:"Successful Scoring",previous:"Previous",next:"Next",clickOnTheImageToEnlargeAndView:"Click On The Image To Enlarge And View","download-0":"Download",fileIsDownloading:"File Is Downloading",fileCompressionPackage_:"File Compression Package_",currentIsTheFirstItem:"Current Is The First Item",currentIsTheLastItem:"Current Is The Last Item",pleaseSelectTheUser:"Please Select The User",selectDate:"Select Date",jumpToHere:"Jump To Here",filter:"Filter",youCanEnterTheFileNameAndNoteToQueryTheName:"You Can Enter The File Name, Note, Or Point Name To Query",aTotalOf:"A Total Of",filesSelected:"Files Selected",selectAll:"Select All","selected-0":"Selected",filterConditions:"Filter Conditions",timeFilter:"Time Filter","today-0":"Today",recent3Days:"Recent 3 Days",recent7Days:"Recent 7 Days",recent30Days:"Recent 30 Days",userFilter:"User Filter",note:"Note",dot:"Dot",reset:"Reset",show:"Show",pleaseSelectTheDownloadFile:"Please Select The Download File",videoDuration:"Video Duration",multiples:"Multiples",downloadFile:"Download File",adjustPlaybackVolume:"Adjust Playback Volume",stopAfterPlayback:"Stop After Playback",continuousPlayback:"Continuous Playback",loopPlayback:"Loop Playback",startDownloading:"Start Downloading",play:"Play",imageCutting:"Image Cutting","confirm-0":"Confirm",fullScreenSwitch:"Full Screen Switch",reminderList:"Reminder List",editRemarks:"Edit Remarks",addRemarks:"Add Remarks",pleaseFillInTheRemarks:"Please Fill In The Remarks","addRemarks-0":"Add Remarks",save:"Save",pleaseEnterTheRemarks:"Please Enter The Remarks Content",deleteRemarks:"Delete Remarks",reminderCannotBeRestoredAfterDeletion:"Reminder Cannot Be Restored After Deletion",confirmDeletion:"Confirm Deletion",dotList:"Dot List","addDot-0":"Add Dot",pleaseEnterTheDotName:"Please Enter The Dot Name",dotPosition:"Dot Position",dotName:"Dot Name",editDot:"Edit Dot",addDot:"Add Dot",pleaseEnterTheDotContent:"Please Enter The Dot Content",deleteDot:"Delete Dot",deleteDotPositionCannotBeRestored:"Delete Dot Position Cannot Be Restored",fileUpload:"File Upload",fileType:"File Type",uploadFiles:"Upload Files",dragFilesHereOr:"Drag Files Here, Or",clickToUpload:"Click To Upload",selectTheSameFileAgainForUploading:"Select The Same File Again For Uploading",uploadFailed:"Upload Failed",uploadingPatientWait:"Uploading, Please Wait",success:"Success","noData-3":"No Data",imageFiles:"Image Files",videoFile:"Video File",audioFiles:"Audio Files",upgradePackage:"Upgrade Package",softwarePackage:"Software Package",fail:"Fail",uploading:"Uploading",allShardUploadsCompleted:"All Shard Uploads Completed",completeTheAssembly:"Complete The Assembly",fileReadingInProgressPleaseWait:"File Reading In Progress, Please Wait",pleaseSelectAFile:"Please Select A File",pleaseWaitForTheFilesToBeUploadedInSequence:"Files Are Being Uploaded Sequentially, Please Wait",startUploading:"Start Uploading",theUploadedFileIsNotOfImageType:"The Uploaded File Is Not Of Image Type",video:"Video",theUploadedFileIsNotOfVideoType:"The Uploaded File Is Not Of Video Type",audio:"Audio",theUploadedFileIsNotOfAudioType:"The Uploaded File Is Not Of Audio Type",theUploadedFileIsNotAnAPKUpgradePackage:"The Uploaded File Is Not An APK Upgrade Package",theUploadedFileIsNotASoftwarePackage:"The Uploaded File Is Not A Software Package",pleaseSelectTheSameFileForUploading:"Please Select The Same File For Uploading",prohibitUploadingFilesWithTheSameNameOnThePlatform:"Prohibit Uploading Files With The Same Name On The Platform",errorInUploadingFile:"Error In Uploading File",status:"Status",uploadError:"Upload Error",uploadSuccessful:"Upload Successful",fileUploadProgress:"File Upload Progress",displayTheUploadProgressOfAPKInstallationPackageFiles:"Display The Upload Progress Of APK Installation Package Files",prohibitUploadingFilesWithTheSameName:"Prohibit Uploading Files With The Same Name",automaticallyFilterTheSameFilesBeingUploaded:"Automatically Filter The Same Files Being Uploaded",youDoNotHaveAMapConfigurationForThisModule:"You Do Not Have A Map Configuration For This Module",pleaseContactTheAdministratorToGoToTheSettingsCenterForConfiguration:"Please Contact The Administrator To Go To The Settings Center For Configuration",electronicFenceName:"Electronic Fence Name",addElectronicFence:"Add Electronic Fence",hide:"Hide",deleteElectronicFence:"Delete Electronic Fence",confirmToDeleteTheCurrentDeletedElectronicFence:"Confirm To Delete The Current Deleted Electronic Fence",deletedSuccessfully:"Deleted Successfully",unitMeter:"Unit Meter",operationButton:"Operation Button",startDrawing:"Start Drawing",clearDrawing:"Clear Drawing",afterClickingToStartDrawing:"After Clicking To Start Drawing:",clearCurrentFence:"Clear Current Fence",mouseClicksOnTheMapAndReleasesToEnd:"Mouse Clicks On The Map And Releases To End",mouseClicksOnTheMapAndClicksAgainToEnd:"Mouse Clicks On The Map And Clicks Again To End",mouseClicksOnTheMapAndClicksTheStartingPointToEnd:"Mouse Clicks On The Map And Clicks The Starting Point To End",pleaseEnterTheFixedPointRange:"Please Enter The Fixed Point Range",nextTimeYouNeedToClickAgainToStartDrawing:"Next Time You Need To Click Again To Start Drawing",pleaseDrawTheElectronicFence:"Please Draw The Electronic Fence",pleaseClearAndAbandonTheFenceFirst:"Please Clear And Abandon The Fence First",mouseClicksOnTheMapToDraw:"Mouse Clicks On The Map To Draw",mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd:"Mouse Clicks On The Map, Holds Down, Drags, Draws, And Releases To End",mouseClicksOnTheMapAndRightClicksToEnd:"Mouse Clicks On The Map And Right Clicks To End",pleaseEnterTheNameOfTheElectronicFence:"Please Enter The Name Of The Electronic Fence",electronicFenceRange:"Electronic Fence Range",drawingMethod:"Drawing Method",pleaseSelectTheDrawingMethod:"Please Select The Drawing Method",fixedPointRange:"Fixed Point Range",customCircle:"Custom Circle",customPolygon:"Custom Polygon",rangeDistance:"Range Distance",unfinished:"unfinished",finish:"Finish",unfinishedTask:"Unfinished task",uploaded:"uploaded",theFileHasBeenDeletedAndCannotBeViewed:"The file has been deleted and cannot be viewed",theTaskHasBeenCompletedWaitingForUploading:"The task has been completed, waiting for uploading",missionDetails:"Mission details","missionDetails-0":"Mission details",implementation:"Implementation",missionReport:"Mission report",taskDescription:"Mission Description",executionTime:"execution time",executionMode:"Execution mode",independentExecution:"Independent execution",collaborativeExecution:"Collaborative execution",first:"First",strip:"strip",photograph:"Shooting",record:"Video",missionArea:"Mission area",viewExample:"View example",hasBeenCompleted:"Has been completed",notPerformed:"Not performed",execute:"Execute",currentlyForPersonnelView:"Currently for personnel view",missionView:"Mission view",currentAsAMissionView:"Current as a mission view",personnelView:"Personnel view",unfilled:"unfilled",haveBeenFilledIn:"Have been filled in",ask:"ask",answer:"answer",none:"none",noNeedToSubmitATaskReport:"No need to submit a task report",unpackTaskReport:"Unpack task report",submittedTaskReport:"Submitted task report",checkTheTaskAreaWrong:"Check the task area wrong",missionExample:"Mission example",exampleImage:"Example image",check:"Check",exampleVideo:"Example video",videoView:"Video View",taskFile:"Task file",departmentList:"Department list",pleaseChoose:"Please choose",download:"download",sampleContent:"Sample content","check-0":"Check",closure:"closure",currentPositioning:"Current positioning:",patrol:"Patrol",inspectionDetails:"Inspection details",inspectionTrajectory:"Inspection trajectory",inspectionType:"Inspection type",ordinaryInspection:"Ordinary inspection",electronicInspection:"Electronic inspection",duration:"Duration",minute:"minute",executiveInformation:"Executive information",shortNumber:"Short number:","shortNumber-2":"Short number",jobNumber:"Job number:",haveBeenInspected:"Have been inspected",unpaidInspection:"Unpaid inspection",pending:"Pending",processing:"Processing",solved:"solved",notSetUpLatitudeAndLongitude:"Not set up latitude and longitude",noSpecificAddressIsSetInThisInspectionTask:"No specific address is set in this inspection task",nonDividingTheAbnormalService:"Non -dividing the abnormal service",missionName:"mission name:",whetherToReport:"Whether to report",operate:"operate",abnormalTreatment:"Abnormal treatment",abnormalTask:"Abnormal task",abnormal:"abnormal",viewForm:"View form",implementRoute:"Implement route",theParametersAreWrongAndItFailsToOpen:"The parameters are wrong, and it fails to open",normal:"normal",inTheOpeningPleaseWait:"In the opening, please wait ...","theFileHasBeenDeletedAndCannotBeViewed-0":"The file has been deleted and cannot be viewed",exception:"Exception","inspectionPoint-0":"Inspection point","form-0":"Form",handling:"Handling",formContent:"Form content",picture:"picture",point:"point",abnormalDetail:"Abnormal detail",abnormalDetails:"Abnormal details",abnormalForm:"Abnormal form",abnormalLocation:"Abnormal location",associatedTask:"Associated task",abnormalPosition:"Abnormal position",personName:"Person name",staffNumber:"Staff number",userInfo:"User Info",reportTime:"Report time",processedImmediately:"Processed immediately",noNeedToDealWith:"No need to deal with",haveBeenReported:"Have been reported",notReported:"Not reported",reported:"Reported)","notReported-0":"Not reported)",theParametersAreWrong:"The parameters are wrong",pleaseEnterTheTaskName:"Please enter the task name",pleaseEnterTheTaskDescription:"Please enter the task description",executiveStaff:"executive staff",choicePersonnel:"Choice personnel",empty:"Empty",people:"people",pleaseSelectExecutives:"Please select executives",deviceInformation:"Device Information",equipmentType:"Equipment type",deviceModel:"Device model",affiliatedDepartment:"Affiliated department",viewDevice:"View Device",basicInformation:"Basic Information",connectionInformation:"Connection Information",updateRecord:"Update Record",numberOfPeopleInTheDevice:"Number Of People In The Device",information:"Information",type:"Type",activated:"Activated","activated-0":"Activated",notActivated:"Not Activated",expired:"Expired",boundGroup:"Bound Group",unboundGroup:"Unbound Group",updateTime:"Update Time:",upgrade:"Upgrade",updateCompleted:"Update Completed",user:"User",downloadConnectionInformation:"Download Connection Information",deviceBrand:"Device Brand",deviceManufacturer:"Device Manufacturer",deviceType:"Device Type",firmwareVersion:"Firmware Version",softwareVersion:"Software Version",deviceName:"Device Name",name:"Name",enabledStatus:"Enabled Status",onlineStatus:"Online Status",versionNumberIdentification:"Version Number Identification","updateTime-0":"Update Time",upgradeType:"Upgrade Type",updateStatus:"Update Status",protocolVersion:"Protocol Version",alarmNumberID:"Alarm Number ID",serverID:"Server ID",serverDomain:"Server Domain",serverAddress:"Server Address",serverPort:"Server Port","userName-0":"User Name",userAuthentication:"User Authentication",password:"Password",passwordConfirmation:"Password Confirmation",registrationValidityPeriod:"Registration Validity Period",registrationStatus:"Registration Status",heartbeatCycle:"Heartbeat Cycle",streamIndex:"Stream Index",registrationInterval:"Registration Interval",maximumHeartbeatTimeoutTimes:"Maximum Heartbeat Timeout Times",port:"Port",serverIPAddress:"Server IP Address","connectionInformation-0":"Connection Information",videoChannel:"Video Channel",audioChannel:"Audio Channel",alarmChannel:"Alarm Channel",pleaseEnterTheChannelName:"Please Enter The Channel Name","add-0":"Add",channelName:"Channel Name",channelID:"Channel ID",ifNotFilledInTheChannelIDWillBeAutomaticallyGenerated:"If Not Filled In, The Channel ID Will Be Automatically Generated",editCannotBeModified:"Edit Cannot Be Modified",needToFillInAccordingToTheUnifiedCodingRulesAndRegulationsOfAppendixDOfTheNationalStandardDocument:"Need To Fill In According To The Unified Coding Rules And Regulations Of Appendix D Of The National Standard Document",videoChannel11:"Video Channel 11",position:"Position",audioChannel11:"Audio Channel 11",alarmChannel11:"Alarm Channel 11",videoChannelExample:"Video Channel Example:",pleaseEnterTheChannelID:"Please Enter The Channel ID",createChannel:"Create Channel","edit-0":"Edit",deleteChannel:"Delete Channel","unableToRestoreAfterDeletionAreYouSureToDelete-0":"Unable To Restore After Deletion. Are You Sure To Delete?",successfulDeletion:"Successful Deletion"},Ed="编辑部门类型",Sd="添加部门类型",Td="部门图标",Dd="上 传",Vd="请上传部门类型图标",$d="图标尺寸44px",Bd="若无图标则使用默认图标",Ad="部门类型名称",Id="请输入部门类型名称",Ld="图片上传失败,logo大小2M以内。",Fd="操作成功",Od="星期日",Rd="星期一",Pd="星期二",Md="星期三",Ud="星期四",zd="星期五",Wd="星期六",jd="部门",Hd="部门名称进行筛选",Yd="设备",Gd="设备号、设备名称进行筛选",qd="请输入内容进行搜索",Kd="当前选中:",Xd="请在下方选择需要查看的",Jd="请在下方选择需要查看的人员",Zd="人员名称进行筛选",Qd="今日有新增对讲记录",vd="所有设备",ep="清 空",tp="已选中",np="加载中",op="暂无数据",ap="在线",sp="离线",lp="您还未选择设备",rp="所有部门",ip="(双击选中该部门和部门下全部所属部门)",cp="您还未选择部门",dp="抽查详情",pp="抽查人员",fp="抽查时间",mp="抽查类型",hp="范围抽查",up="随机抽查",_p="抽查方式",gp="消息",yp="呼叫",xp="抽查范围 (",kp="区域抽查",Np="部门抽查",bp="设备抽查",Cp="台设备",wp="消息内容",Ep="文字转语音",Sp="应答方式",Tp="打卡",Dp="答复",Vp="应答时间",$p="秒",Bp="呼叫抽查",Ap="将会采用对讲应答的方式抽查备份",Ip="抽查人数:",Lp="待接收:",Fp="接收中:",Op="已完成:",Rp="未完成:",Pp="没有设备支持本次抽查",Mp="抽查信息",Up="抽查情况",zp="全部",Wp="该设备在发起抽查时处于临时群组",jp="临",Hp="该设备在发起抽查时处于离线状态",Yp="更 换",Gp="暂时没有成员进行答复",qp="继续播放",Kp="网络不佳,请稍后重试",Xp="发起",Jp="抽查",Zp="应答方式:",Qp="应答时间:",vp="离线状态:",ef="临时群组:",tf="查看内容",nf="您所抽查的设备处于离线状态",of="无法支持本次抽查",af="组内成员状态异常,无法进行抽查",sf="取 消",lf="完 成",rf="当前正在抽查,请稍后处理",cf="提示",df="取消抽查",pf="确认取消本次点名抽查",ff="中途取消将无法检索或查看本次抽查的任何信息",mf="返回抽查",hf="还有设备处于接收中,系统将标记这些设备为未完成状态",uf="结束抽查",_f="确认结束本次点名抽查",gf="点名抽查已完成,可在抽查模块中查看详细信息记录。",yf="电子围栏",xf="电子围栏名称进行筛选",kf="您还未选择围栏",Nf="抽查模板",bf="编辑",Cf="模板名称",wf="操作",Ef="操作人:",Sf="请输入模板名称",Tf="执行日期",Df="请选择执行日期",Vf="每日",$f="指定星期",Bf="指定日期",Af="指定时间段",If="年 MM 月 dd 日",Lf="选择一个或多个日期",Ff="至",Of="开始日期",Rf="结束日期",Pf="开始时间",Mf="结束时间",Uf="选择时间范围",zf="请选择抽查类型",Wf="抽查设备",jf="请选择抽查设备",Hf="仅抽查在线设备",Yf="抽查所有设备",Gf="随机数量",qf="请输入随机数量",Kf="抽查范围",Xf="随机抽查下您不需要选择范围与设备",Jf="系统会帮助您随机选择",Zf="请选择",Qf="选择区域",vf="选择部门",em="选择设备",tm="区域(电子围栏):选择此项以在指定的电子围栏区域内对支持抽查配置的设备进行抽查。",nm="部门:选择此项以在指定的部门中对支持抽查配置的设备进行抽查。",om="设备:选择此项以手动选择特定支持抽查配置的设备进行抽查。",am="帮助",sm="请选择抽查方式",lm="呼叫不需要您输入消息内容",rm="将会采用对讲应答的方式抽查",im="请填写要发送的消息",cm="需在设备进行TTS语音播报",dm="请选择应答时间",pm="您可以套用抽查模板快速填写内容",fm="确 认",mm="请选择指定星期",hm="立刻发起点名抽查",um="请选择执行时间",_m="请选择指定时间段",gm="提示",ym="切换抽查设备将会清空已选择数据",xm="是否确认切换",km="最少随机 1 台设备",Nm="重复开启",bm="切换抽查范围将会清空已选择数据",Cm="请选择抽查范围",wm="请选择日期",Em="请选择时间段",Sm="模板已套用",Tm="年 MM 月 DD 日",Dm="创建时间",Vm="文件属性",$m="星标",Bm="文件来源",Am="日常",Im="任务",Lm="设备ID",Fm="音频时长",Om="过期时间",Rm="文件大小",Pm="评分",Mm="已评分",Um="未评分",Eo="位置",zm={editDepartmentType:Ed,addDepartmentType:Sd,departmentIcon:Td,upload:Dd,pleaseUploadDepartmentTypeIcon:Vd,iconSize44px:$d,ifNoIconUseTheDefaultIcon:Bd,departmentTypeName:Ad,pleaseEnterTheDepartmentTypeName:Id,"close-0":"关 闭","save-0":"保 存",imageUploadFailedLogoSizeWithin2M:Ld,operationSuccessful:Fd,sunday:Od,monday:Rd,tuesday:Pd,wednesday:Md,thursday:Ud,friday:zd,saturday:Wd,department:jd,filterByDepartmentName:Hd,equipment:Yd,filterByDeviceNumberAndDeviceName:Gd,pleaseEnterContentToSearch:qd,currentlySelected:Kd,pleaseSelectWhatYouWantToViewBelow:Xd,pleaseSelectThePersonYouWantToViewBelow:Jd,filterByPersonnelName:Zd,addedIntercomRecordsToday:Qd,allDevices:vd,clear:ep,selected:tp,"individual-0":"个",loadingDesperately:np,"filterByDeviceNumber,DeviceName,DepartmentName":"设备号、设备名称、部门名称进行筛选",noData:op,online:ap,offline:sp,youHaveNotSelectedADeviceYet:lp,delete:"删 除",allDepartments:rp,doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt:ip,youHaveNotSelectedADepartmentYet:cp,spotCheckDetails:dp,spotCheckPersonnel:pp,spotCheckTime:fp,spotCheckType:mp,rangeCheck:hp,randomCheck:up,spotCheckMethod:_p,message:gp,call:yp,samplingScope:xp,regionalSpotCheck:kp,departmentSpotCheck:Np,deviceSpotCheck:bp,device:Cp,messageContent:wp,textToSpeech:Ep,answerMethod:Sp,punchIn:Tp,reply:Dp,answerTime:Vp,second:$p,callSpotCheck:Bp,backupWillBeCheckedByIntercomAnswering:Ap,numberOfPeopleToBeChecked:Ip,waitingToReceive:Lp,receiving:Fp,completed:Op,uncompleted:Rp,noDeviceSupportsThisSpotCheck:Pp,spotCheckInformation:Mp,spotCheckStatus:Up,all:zp,"completed-0":"完成","uncompleted-0":"未完成",theDeviceWasInATemporaryGroupWhenTheSpotCheckWasInitiated:Wp,lin:jp,theDeviceWasOfflineWhenTheSpotCheckWasInitiated:Hp,"toBeReceived-1":"待接收","receiving-1":"接收中",change:Yp,noMemberRespondedAtTheMoment:Gp,continuePlaying:qp,networkIsNotGoodPleaseTryAgainLater:Kp,initiate:Xp,spotCheck:Jp,responseMethod:Zp,responseTime:Qp,offlineStatus:vp,temporaryGroups:ef,viewContent:tf,theDeviceYouAreSpotCheckingIsOffline:nf,cannotSupportThisSpotCheck:of,groupMemberStatusAbnormalityPreventsSpotCheck:af,cancel:sf,complete:lf,currentlySpotCheckInProgressPleaseProcessLater:rf,tips:cf,cancelSpotCheck:df,confirmToCancelThisSpotCheck:pf,cancelMidwayYouWillNotBeAbleToRetrieveOrViewAnyInformationOfThisSpotCheck:ff,returnToSpotCheck:mf,"afterTheCheck,YouCanViewTheSpotCheckInformationInTheSpotCheckModule":"结束后可在抽查模块中查看本次抽查信息。",thereAreStillDevicesInTheReceivingProcessTheSystemWillMarkTheseDevicesAsUnfinished:hf,endSpotCheck:uf,confirmToEndThisSpotCheck:_f,theSpotCheckHasBeenCompletedYouCanViewDetailedInformationRecordsInTheSpotCheckModule:gf,electronicFence:yf,filterByElectronicFenceName:xf,youHavenTSelectedAFenceYet:kf,spotCheckTemplate:Nf,edit:bf,templateName:Cf,operation:wf,operator:Ef,pleaseEnterTheTemplateName:Sf,executionDate:Tf,pleaseSelectTheExecutionDate:Df,everyday:Vf,specifyAWeek:$f,specifyADate:Bf,specifyATimePeriod:Af,mmDdYyyy:If,selectOneOrMoreDates:Lf,to:Ff,startDate:Of,endDate:Rf,"executionTime-0":"执行时间",startTime:Pf,endTime:Mf,selectATimeRange:Uf,pleaseSelectTheSpotCheckType:zf,spotCheckDevice:Wf,pleaseSelectTheSpotCheckDevice:jf,spotCheckOnlyOnlineDevices:Hf,spotCheckAllDevices:Yf,randomNumber:Gf,pleaseEnterTheRandomNumber:qf,spotCheckRange:Kf,youDoNotNeedToSelectARangeAndDeviceForRandomCheck:Xf,theSystemWillHelpYouSelectRandomly:Jf,pleaseSelect:Zf,selectAnArea:Qf,selectADepartment:vf,selectADevice:em,regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea:tm,departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment:nm,setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck:om,help:am,pleaseSelectTheSpotCheckMethod:sm,callDoesNotRequireYouToEnterTheMessageContent:lm,spotCheckWillBeConductedByIntercomAnswering:rm,pleaseFillInTheMessageToBeSent:im,requiresTTSVoiceBroadcastOnTheDevice:cm,pleaseSelectTheAnswerTime:dm,youCanApplyTheSpotCheckTemplateToQuicklyFillInTheContent:pm,confirm:fm,pleaseSelectASpecificWeek:mm,immediatelyInitiateARollCallSpotCheck:hm,pleaseSelectTheExecutionTime:um,pleaseSelectASpecificTimePeriod:_m,prompt:gm,switchingTheSpotCheckDeviceWillClearTheSelectedData:ym,confirmTheSwitch:xm,"cancel-0":"取消","confirm-3":"确认",atLeast1RandomDevice:km,repeat:Nm,switchingTheSpotCheckRangeWillClearTheSelectedData:bm,pleaseSelectTheSpotCheckRange:Cm,pleaseSelectADate:wm,pleaseSelectATimePeriod:Em,templateApplied:Sm,yearMMMonthDDDay:Tm,creationTime:Dm,fileAttributes:Vm,star:$m,"user-3":"所属用户",fileSource:Bm,daily:Am,task:Im,deviceID:Lm,audioDuration:Fm,expirationTime:Om,fileSize:Rm,rating:Pm,rated:Mm,unrated:Um,location:Eo,detectionIsCorrect:"检测正确",confirmScore:"确认评分",confirmAs:"确认为",noSecondaryModificationAfterScoring:"评分后不可二次修改",close:"关 闭",fileIDNotPassedIn:"未传入文件ID",pleaseScoreTheCurrentFile:"请对当前的文件评分",successfulScoring:"评分成功",previous:"上一张",next:"下一张",clickOnTheImageToEnlargeAndView:"点击图片即可放大查看","download-0":"下 载",fileIsDownloading:"文件正在下载中",fileCompressionPackage_:"文件压缩包_",currentIsTheFirstItem:"当前是第一条",currentIsTheLastItem:"当前是最后一条",pleaseSelectTheUser:"请选择用户",selectDate:"选择日期",jumpToHere:"跳转至此处",filter:"筛 选",youCanEnterTheFileNameAndNoteToQueryTheName:"可输入文件名、备注、打点名查询",aTotalOf:"共选择了",filesSelected:"个文件",selectAll:"全选","selected-0":"已选择",filterConditions:"筛选条件",timeFilter:"时间筛选","today-0":"今日",recent3Days:"近3天",recent7Days:"近7天",recent30Days:"近30天",userFilter:"用户筛选",note:"备注",dot:"打点",reset:"重 置",show:"显示",pleaseSelectTheDownloadFile:"请选择下载文件",videoDuration:"视频时长",multiples:"倍 数",downloadFile:"下载文件",adjustPlaybackVolume:"调节播放音量",stopAfterPlayback:"播完即停",continuousPlayback:"连续播放",loopPlayback:"循环播放",startDownloading:"开始下载",play:"播 放",imageCutting:"图像切割","confirm-0":"确 定",fullScreenSwitch:"全屏切换",reminderList:"备注列表",editRemarks:"编辑备注",addRemarks:"新增备注",pleaseFillInTheRemarks:"请填写备注","addRemarks-0":"添加备注",save:"保 存",pleaseEnterTheRemarks:"请输入备注内容",deleteRemarks:"删除备注",reminderCannotBeRestoredAfterDeletion:"删除备注后,无法还原",confirmDeletion:"是否确认删除",dotList:"打点列表","addDot-0":"添加打点",pleaseEnterTheDotName:"请输入打点名称",dotPosition:"打点位置",dotName:"打点名称",editDot:"编辑打点",addDot:"新增打点",pleaseEnterTheDotContent:"请输入打点内容",deleteDot:"删除打点",deleteDotPositionCannotBeRestored:"删除打点位置,无法还原",fileUpload:"文件上传",fileType:"文件类型",uploadFiles:"上传文件",dragFilesHereOr:"将文件拖到此处,或",clickToUpload:"点击上传",selectTheSameFileAgainForUploading:"重新选择相同的文件,进行上传",uploadFailed:"上传失败",uploadingPatientWait:"正在上传,耐心等待",success:"成功","noData-3":"暂 无 数 据",imageFiles:"图片文件",videoFile:"视频文件",audioFiles:"音频文件",upgradePackage:"升级包",softwarePackage:"软件包",fail:"失败",uploading:"上传中",allShardUploadsCompleted:"所有分片上传完成",completeTheAssembly:"完成合拼",fileReadingInProgressPleaseWait:"正在进行文件读取,请稍后",pleaseSelectAFile:"请选择文件",pleaseWaitForTheFilesToBeUploadedInSequence:"文件依次上传,请稍等",startUploading:"开始上传",theUploadedFileIsNotOfImageType:"上传的文件不是图片类型",video:"视频",theUploadedFileIsNotOfVideoType:"上传的文件不是视频类型",audio:"音频中",theUploadedFileIsNotOfAudioType:"上传的文件不是音频类型",theUploadedFileIsNotAnAPKUpgradePackage:"上传的文件不是apk升级包",theUploadedFileIsNotASoftwarePackage:"上传的文件不是软件包",pleaseSelectTheSameFileForUploading:"请选择相同的文件,进行上传",prohibitUploadingFilesWithTheSameNameOnThePlatform:"禁止上传平台同名的文件",errorInUploadingFile:"上传文件有误",status:"状态",uploadError:"上传报错",uploadSuccessful:"上传成功",fileUploadProgress:"文件上传进度",displayTheUploadProgressOfAPKInstallationPackageFiles:"显示APK安装包文件的上传进度",prohibitUploadingFilesWithTheSameName:"禁止上传同名的文件",automaticallyFilterTheSameFilesBeingUploaded:"自动过滤正在上传的相同文件",youDoNotHaveAMapConfigurationForThisModule:"您没有该模块的地图配置",pleaseContactTheAdministratorToGoToTheSettingsCenterForConfiguration:"请联系管理员前往设置中心进行配置",electronicFenceName:"电子围栏名称",addElectronicFence:"添加电子围栏",hide:"隐藏",deleteElectronicFence:"删除电子围栏",confirmToDeleteTheCurrentDeletedElectronicFence:"确认删除当前删除电子围栏",deletedSuccessfully:"删除成功",unitMeter:"单位米",operationButton:"操作按钮",startDrawing:"开始绘制",clearDrawing:"清空绘制",afterClickingToStartDrawing:"点击开始绘制后:",clearCurrentFence:"清空当前围栏",mouseClicksOnTheMapAndReleasesToEnd:"鼠标在地图点击位置,松手结束",mouseClicksOnTheMapAndClicksAgainToEnd:"鼠标点击地图绘制,再次点击结束",mouseClicksOnTheMapAndClicksTheStartingPointToEnd:"鼠标点击地图绘制,点击起点结束",pleaseEnterTheFixedPointRange:"请输入定点范围",nextTimeYouNeedToClickAgainToStartDrawing:"下次绘制,需重新点击开始绘制",pleaseDrawTheElectronicFence:"请绘制电子围栏",pleaseClearAndAbandonTheFenceFirst:"请先清空放弃围栏",mouseClicksOnTheMapToDraw:"鼠标点击地图绘制",mouseClicksOnTheMapAndClicksHoldsDownDragsAndDrawsAndReleasesToEnd:"鼠标在地图点击按住拖拽绘制,松手结束",mouseClicksOnTheMapAndRightClicksToEnd:"鼠标点击地图绘制,右键结束",pleaseEnterTheNameOfTheElectronicFence:"请输入电子围栏名称",electronicFenceRange:"电子围栏范围",drawingMethod:"绘制方式",pleaseSelectTheDrawingMethod:"请选择绘制方式",fixedPointRange:"定点范围",customCircle:"自定圆形",customPolygon:"自定多边形",rangeDistance:"范围距离",unfinished:"未完成",finish:"完成",unfinishedTask:"未完成任务",uploaded:"已上传",theFileHasBeenDeletedAndCannotBeViewed:"文件已删除,无法查看",theTaskHasBeenCompletedWaitingForUploading:"已完成任务,等待上传",missionDetails:"任务明细","missionDetails-0":"任务详情",implementation:"执行情况",missionReport:"任务报告",taskDescription:"任务说明",executionTime:"执行时间",executionMode:"执行模式",independentExecution:"独立执行",collaborativeExecution:"协同执行",first:"第",strip:"条",photograph:"拍摄",record:"录像",missionArea:"任务区域",viewExample:"查看示例",hasBeenCompleted:"已经完成",notPerformed:"未执行",execute:"正在执行",currentlyForPersonnelView:"当前为人员视图",missionView:"任务视图",currentAsAMissionView:"当前为任务视图",personnelView:"人员视图",unfilled:"未填写",haveBeenFilledIn:"已填写",ask:"问",answer:"答",none:"无",noNeedToSubmitATaskReport:"无需提交任务报告",unpackTaskReport:"未提交任务报告",submittedTaskReport:"已提交任务报告",checkTheTaskAreaWrong:"查看任务区域有误",missionExample:"任务示例",exampleImage:"示例图片",check:"查 看",exampleVideo:"示例视频",videoView:"视频查看",taskFile:"任务文件",departmentList:"部门列表",pleaseChoose:"请选择人员",download:"下 载",sampleContent:"示例内容","check-0":"查看",closure:"关 闭",currentPositioning:"当前定位:",patrol:"巡检明细",inspectionDetails:"巡检详情",inspectionTrajectory:"巡检轨迹",inspectionType:"巡检类型",ordinaryInspection:"普通巡检",electronicInspection:"电子巡检",duration:"任务时长",minute:"分钟",executiveInformation:"执行人信息",shortNumber:"短号:","shortNumber-2":"短 号",jobNumber:"工号:",haveBeenInspected:"已巡检",unpaidInspection:"未巡检",pending:"待处理",processing:"处理中",solved:"已解决",notSetUpLatitudeAndLongitude:"未设置经纬度",noSpecificAddressIsSetInThisInspectionTask:"本次巡检任务未设置具体地址",nonDividingTheAbnormalService:"未 分 配 异 常 任 务",missionName:"任务名称:",whetherToReport:"是否上报",operate:"操作",abnormalTreatment:"异常处理",abnormalTask:"异常任务",abnormal:"异常",viewForm:"查看表单",implementRoute:"执行路线",theParametersAreWrongAndItFailsToOpen:"参数有误,打开失败",normal:"正常",inTheOpeningPleaseWait:"正在打开中,请稍等...","theFileHasBeenDeletedAndCannotBeViewed-0":"文件已经删除,无法查看",exception:"异常处理上报","inspectionPoint-0":"巡查点","form-0":"表单",handling:"处理情况",formContent:"表单内容",picture:"图片",point:"点",abnormalDetail:"异常明细",abnormalDetails:"异常详情",abnormalForm:"异常表单",abnormalLocation:"异常地点",associatedTask:"关联任务",abnormalPosition:"异常位置",personName:"人员名字",staffNumber:"人员工号",userInfo:"用户信息",reportTime:"上报时间",processedImmediately:"立即处理",noNeedToDealWith:"无需处理",haveBeenReported:"已上报",notReported:"未上报",reported:"已上报)","notReported-0":"未上报)",theParametersAreWrong:"参数有误",pleaseEnterTheTaskName:"请输入任务名称",pleaseEnterTheTaskDescription:"请输入任务说明",executiveStaff:"执行人员",choicePersonnel:"选择人员",empty:"清空",people:"人",pleaseSelectExecutives:"请选择执行人员",deviceInformation:"设备信息",equipmentType:"设备类型",deviceModel:"设备型号",affiliatedDepartment:"所属部门",viewDevice:"查看设备",basicInformation:"基本信息",connectionInformation:"连接信息",updateRecord:"更新记录",numberOfPeopleInTheDevice:"设备人数",information:"信息",type:"型",activated:"已激活","activated-0":"激活",notActivated:"未激活",expired:"已过期",boundGroup:"已绑定群组",unboundGroup:"未绑定群组",updateTime:"更新时间:",upgrade:"升级",updateCompleted:"更新完成",user:"使用者",downloadConnectionInformation:"下载连接信息",deviceBrand:"设备品牌",deviceManufacturer:"设备厂家",deviceType:"设备类型",firmwareVersion:"固件版本",softwareVersion:"软件版本",deviceName:"设备名称",name:"名称",enabledStatus:"启用状态",onlineStatus:"在线状态",versionNumberIdentification:"版本号标识","updateTime-0":"更新时间",upgradeType:"升级类型",updateStatus:"更新状态",protocolVersion:"协议版本",alarmNumberID:"报警编号ID",serverID:"服务器ID",serverDomain:"服务器域",serverAddress:"服务器地址",serverPort:"服务器端口","userName-0":"用户名",userAuthentication:"用户认证",password:"密码",passwordConfirmation:"密码确认",registrationValidityPeriod:"注册有效期",registrationStatus:"注册状态",heartbeatCycle:"心跳周期",streamIndex:"码流索引",registrationInterval:"注册间隔",maximumHeartbeatTimeoutTimes:"最大心跳超时次数",port:"端口",serverIPAddress:"服务器IP地址","connectionInformation-0":"的连接信息",videoChannel:"视频通道",audioChannel:"音频通道",alarmChannel:"报警通道",pleaseEnterTheChannelName:"请输入通道名称","add-0":"添加",channelName:"通道名称",channelID:"通道ID",ifNotFilledInTheChannelIDWillBeAutomaticallyGenerated:"不填写将自动生成通道ID",editCannotBeModified:"编辑无法修改",needToFillInAccordingToTheUnifiedCodingRulesAndRegulationsOfAppendixDOfTheNationalStandardDocument:"需要按国标文档附录D统一编码规则规范填写",videoChannel11:"视频通道11",position:"位为",audioChannel11:"音频通道11",alarmChannel11:"报警通道11",videoChannelExample:"视频通道示例:",pleaseEnterTheChannelID:"请输入通道ID",createChannel:"创建通道","edit-0":"编 辑",deleteChannel:"删除通道","unableToRestoreAfterDeletionAreYouSureToDelete-0":"删除后无法还原,是否确认删除",successfulDeletion:"删除成功"};let Ln=null;function Wm(){return vr.getCache("language")||"zh_CN"}function jm(t={}){const n={en_US:{...t.en,...wd},zh_CN:{...t.zh,...zm}};return Ln=md({locale:Wm(),fallbackLocale:"zh_CN",messages:n}),Ln}function Ls(){return Ln||jm()}const{t:Tt}=Ls().global;function Hm(t="-"){return So(new Date).join(t)}function Ym({today:t,daysCount:n,cutOff:o="-"}){t||(t=Hm("/"));const a=new Date(t),s=[So(a).join(o)];for(let l=0;l<n;l++){const r=a.setDate(a.getDate()-1);s.push(So(new Date(r)).join(o))}return s}function So(t){const n=t.getFullYear(),o=t.getMonth()+1,a=t.getDate();return[n,o,a]}function ot(t){let n=Math.floor(t),o=0,a=0;n>=60&&(o=Math.floor(n/60),n=n%60,o>=60&&(a=Math.floor(o/60),o=o%60));let s=n<10?`00:0${n}`:`00:${n}`;return o>0&&(s=o<10?`0${o}:${s}`:`${o}:${s}`),a>0&&(s=`${a}:${s}`),s}function To(t,n){const o=new Date(t),a=[],s=["Y","M","D","day","h","m","s"],l=[Tt("sunday"),Tt("monday"),Tt("tuesday"),Tt("wednesday"),Tt("thursday"),Tt("sundayFriday"),Tt("saturday")],r=i=>(i=i.toString(),i[1]?i:`0${i}`);a.push(o.getFullYear()),a.push(r(o.getMonth()+1)),a.push(r(o.getHours())),a.push(l[o.getDay()]),a.push(r(o.getDate())),a.push(r(o.getMinutes())),a.push(r(o.getSeconds())),a.push(r(o.getDay()));for(const i in a)n=n.replace(s[i],a[i]);return n}const Gm={class:"flex items-center gap-x-2.5"},qm=["onClick"],Km=e.defineComponent({__name:"index",props:{optionList:{default:()=>[]}},emits:["change"],setup(t,{expose:n,emit:o}){const a=t,s=o,l=e.ref(),r=e.ref({regDtm:[],queryStartDtm:"",queryEndDtm:""});e.onMounted(()=>{a.optionList.length<=0&&Qr.warning("DataTimeShortcuts","props","optionList 是必需的,但未提供")});function i(p){l.value=p;const d=Ym({today:To(new Date().getTime(),"Y-M-h"),daysCount:p-1}),f=`${To(new Date(d[d.length-1]).getTime(),"Y-M-h")} 00:00:00`,m=`${To(new Date(d[0]).getTime(),"Y-M-h")} 23:59:59`;r.value.regDtm=[f,m],r.value.queryStartDtm=f,r.value.queryEndDtm=m,s("change",r.value)}function c(){l.value=null}return e.onMounted(()=>{console.log("111")}),n({removeTimeData:c}),(p,d)=>(e.openBlock(),e.createElementBlock("div",Gm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.optionList,f=>(e.openBlock(),e.createElementBlock("div",{key:f.value,class:e.normalizeClass(["option",{select:e.unref(l)===f.value}]),onClick:m=>i(f.value)},e.toDisplayString(f.label),11,qm))),128))]))}}),be=(t,n)=>{const o=t.__vccOpts||t;for(const[a,s]of n)o[a]=s;return o},Xm=be(Km,[["__scopeId","data-v-028d1bdb"]]),Jm=e.defineComponent({__name:"hy-select-item",props:{optionLabel:{default:""},optionValue:{default:""},source:{default:""}},setup(t){const n=t;return e.onMounted(()=>{}),(o,a)=>{const s=e.resolveComponent("el-option");return e.openBlock(),e.createBlock(s,{key:n.source[`${n.optionValue}`],label:n.source[`${n.optionLabel}`],value:n.source[`${n.optionValue}`]},null,8,["label","value"])}}});/*! Element Plus Icons Vue v2.3.1 */var Zm=e.defineComponent({name:"CaretBottom",__name:"caret-bottom",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),Qm=Zm,vm=e.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Fs=vm,eh=e.defineComponent({name:"Close",__name:"close",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),th=eh,nh=e.defineComponent({name:"DArrowRight",__name:"d-arrow-right",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),oh=nh,ah=e.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Os=ah,sh=e.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Rs=sh,lh=e.defineComponent({name:"UploadFilled",__name:"upload-filled",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),rh=lh,ih=e.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Ps=ih,ch=e.defineComponent({name:"Warning",__name:"warning",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 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"})]))}}),dh=ch;function Ms(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);n&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),o.push.apply(o,a)}return o}function Fn(t){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?arguments[n]:{};n%2?Ms(Object(o),!0).forEach(function(a){mh(t,a,o[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ms(Object(o)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(o,a))})}return t}function ph(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Us(t,n){for(var o=0;o<n.length;o++){var a=n[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function fh(t,n,o){return n&&Us(t.prototype,n),o&&Us(t,o),t}function mh(t,n,o){return n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t}function hh(t){return uh(t)||_h(t)||gh(t)||yh()}function uh(t){if(Array.isArray(t))return Do(t)}function _h(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gh(t,n){if(t){if(typeof t=="string")return Do(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Do(t,n)}}function Do(t,n){(n==null||n>t.length)&&(n=t.length);for(var o=0,a=new Array(n);o<n;o++)a[o]=t[o];return a}function yh(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
24
24
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Wt={FRONT:"FRONT",BEHIND:"BEHIND"},Dt={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},zs=2,xh=function(){function t(n,o){ph(this,t),this.init(n,o)}return fh(t,[{key:"init",value:function(o,a){this.param=o,this.callUpdate=a,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=Dt.INIT,this.offset=0,this.direction="",this.range=Object.create(null),o&&this.checkRange(0,o.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){var o=Object.create(null);return o.start=this.range.start,o.end=this.range.end,o.padFront=this.range.padFront,o.padBehind=this.range.padBehind,o}},{key:"isBehind",value:function(){return this.direction===Wt.BEHIND}},{key:"isFront",value:function(){return this.direction===Wt.FRONT}},{key:"getOffset",value:function(o){return(o<1?0:this.getIndexOffset(o))+this.param.slotHeaderSize}},{key:"updateParam",value:function(o,a){var s=this;this.param&&o in this.param&&(o==="uniqueIds"&&this.sizes.forEach(function(l,r){a.includes(r)||s.sizes.delete(r)}),this.param[o]=a)}},{key:"saveSize",value:function(o,a){this.sizes.set(o,a),this.calcType===Dt.INIT?(this.fixedSizeValue=a,this.calcType=Dt.FIXED):this.calcType===Dt.FIXED&&this.fixedSizeValue!==a&&(this.calcType=Dt.DYNAMIC,delete this.fixedSizeValue),this.calcType!==Dt.FIXED&&typeof this.firstRangeTotalSize<"u"&&(this.sizes.size<Math.min(this.param.keeps,this.param.uniqueIds.length)?(this.firstRangeTotalSize=hh(this.sizes.values()).reduce(function(s,l){return s+l},0),this.firstRangeAverageSize=Math.round(this.firstRangeTotalSize/this.sizes.size)):delete this.firstRangeTotalSize)}},{key:"handleDataSourcesChange",value:function(){var o=this.range.start;this.isFront()?o=o-zs:this.isBehind()&&(o=o+zs),o=Math.max(o,0),this.updateRange(this.range.start,this.getEndByStart(o))}},{key:"handleSlotSizeChange",value:function(){this.handleDataSourcesChange()}},{key:"handleScroll",value:function(o){this.direction=o<this.offset?Wt.FRONT:Wt.BEHIND,this.offset=o,this.param&&(this.direction===Wt.FRONT?this.handleFront():this.direction===Wt.BEHIND&&this.handleBehind())}},{key:"handleFront",value:function(){var o=this.getScrollOvers();if(!(o>this.range.start)){var a=Math.max(o-this.param.buffer,0);this.checkRange(a,this.getEndByStart(a))}}},{key:"handleBehind",value:function(){var o=this.getScrollOvers();o<this.range.start+this.param.buffer||this.checkRange(o,this.getEndByStart(o))}},{key:"getScrollOvers",value:function(){var o=this.offset-this.param.slotHeaderSize;if(o<=0)return 0;if(this.isFixedType())return Math.floor(o/this.fixedSizeValue);for(var a=0,s=0,l=0,r=this.param.uniqueIds.length;a<=r;){if(s=a+Math.floor((r-a)/2),l=this.getIndexOffset(s),l===o)return s;l<o?a=s+1:l>o&&(r=s-1)}return a>0?--a:0}},{key:"getIndexOffset",value:function(o){if(!o)return 0;for(var a=0,s=0,l=0;l<o;l++)s=this.sizes.get(this.param.uniqueIds[l]),a=a+(typeof s=="number"?s:this.getEstimateSize());return this.lastCalcIndex=Math.max(this.lastCalcIndex,o-1),this.lastCalcIndex=Math.min(this.lastCalcIndex,this.getLastIndex()),a}},{key:"isFixedType",value:function(){return this.calcType===Dt.FIXED}},{key:"getLastIndex",value:function(){return this.param.uniqueIds.length-1}},{key:"checkRange",value:function(o,a){var s=this.param.keeps,l=this.param.uniqueIds.length;l<=s?(o=0,a=this.getLastIndex()):a-o<s-1&&(o=a-s+1),this.range.start!==o&&this.updateRange(o,a)}},{key:"updateRange",value:function(o,a){this.range.start=o,this.range.end=a,this.range.padFront=this.getPadFront(),this.range.padBehind=this.getPadBehind(),this.callUpdate(this.getRange())}},{key:"getEndByStart",value:function(o){var a=o+this.param.keeps-1,s=Math.min(a,this.getLastIndex());return s}},{key:"getPadFront",value:function(){return this.isFixedType()?this.fixedSizeValue*this.range.start:this.getIndexOffset(this.range.start)}},{key:"getPadBehind",value:function(){var o=this.range.end,a=this.getLastIndex();return this.isFixedType()?(a-o)*this.fixedSizeValue:this.lastCalcIndex===a?this.getIndexOffset(a)-this.getIndexOffset(o):(a-o)*this.getEstimateSize()}},{key:"getEstimateSize",value:function(){return this.isFixedType()?this.fixedSizeValue:this.firstRangeAverageSize||this.param.estimateSize}}]),t}(),kh={dataKey:{type:[String,Function],required:!0},dataSources:{type:Array,required:!0,default:function(){return[]}},dataComponent:{type:[Object,Function],required:!0},keeps:{type:Number,default:30},extraProps:{type:Object},estimateSize:{type:Number,default:50},direction:{type:String,default:"vertical"},start:{type:Number,default:0},offset:{type:Number,default:0},topThreshold:{type:Number,default:0},bottomThreshold:{type:Number,default:0},pageMode:{type:Boolean,default:!1},rootTag:{type:String,default:"div"},wrapTag:{type:String,default:"div"},wrapClass:{type:String,default:"wrap"},wrapStyle:{type:Object},itemTag:{type:String,default:"div"},itemClass:{type:String,default:""},itemClassAdd:{type:Function},itemStyle:{type:Object},headerTag:{type:String,default:"div"},headerClass:{type:String,default:""},headerStyle:{type:Object},footerTag:{type:String,default:"div"},footerClass:{type:String,default:""},footerStyle:{type:Object},itemScopedSlots:{type:Object}},Nh={index:{type:Number},event:{type:String},tag:{type:String},horizontal:{type:Boolean},source:{type:Object},component:{type:[Object,Function]},uniqueKey:{type:[String,Number]},extraProps:{type:Object},scopedSlots:{type:Object}},bh={event:{type:String},uniqueKey:{type:String},tag:{type:String},horizontal:{type:Boolean}},Ws=function(n,o,a){var s=null,l=e.computed(function(){return n.horizontal?"offsetWidth":"offsetHeight"}),r=function(){return o.value?o.value[l.value]:0},i=function(){var p=n.event,d=n.uniqueKey,f=n.hasInitial;a(p,d,r(),f)};e.onMounted(function(){typeof ResizeObserver<"u"&&(s=new ResizeObserver(function(){i()}),o.value&&s.observe(o.value))}),e.onUpdated(function(){i()}),e.onUnmounted(function(){s&&(s.disconnect(),s=null)})},Ch=e.defineComponent({name:"VirtualListItem",props:Nh,emits:["itemResize"],setup:function(n,o){var a=o.emit,s=e.ref(null);return Ws(n,s,a),function(){var l=n.tag,r=n.component,i=n.extraProps,c=i===void 0?{}:i,p=n.index,d=n.source,f=n.scopedSlots,m=f===void 0?{}:f,_=n.uniqueKey,y=Fn(Fn({},c),{},{source:d,index:p});return e.createVNode(l,{key:_,ref:s},{default:function(){return[e.createVNode(r,Fn(Fn({},y),{},{scopedSlots:m}),null)]}})}}}),js=e.defineComponent({name:"VirtualListSlot",props:bh,emits:["slotResize"],setup:function(n,o){var a=o.slots,s=o.emit,l=e.ref(null);return Ws(n,l,s),function(){var r,i=n.tag,c=n.uniqueKey;return e.createVNode(i,{ref:l,key:c},{default:function(){return[(r=a.default)===null||r===void 0?void 0:r.call(a)]}})}}}),sn;(function(t){t.ITEM="itemResize",t.SLOT="slotResize"})(sn||(sn={}));var jt;(function(t){t.HEADER="thead",t.FOOTER="tfoot"})(jt||(jt={}));var Hs=e.defineComponent({name:"VirtualList",props:kh,setup:function(n,o){var a=o.emit,s=o.slots,l=o.expose,r=n.direction==="horizontal",i=r?"scrollLeft":"scrollTop",c=e.ref(null),p=e.ref(),d=e.ref(null),f;e.watch(function(){return n.dataSources.length},function(){f.updateParam("uniqueIds",w()),f.handleDataSourcesChange()}),e.watch(function(){return n.keeps},function(B){f.updateParam("keeps",B),f.handleSlotSizeChange()}),e.watch(function(){return n.start},function(B){V(B)}),e.watch(function(){return n.offset},function(B){return $(B)});var m=function(L){return f.sizes.get(L)},_=function(){return n.pageMode?document.documentElement[i]||document.body[i]:p.value?Math.ceil(p.value[i]):0},y=function(){var L=r?"clientWidth":"clientHeight";return n.pageMode?document.documentElement[L]||document.body[L]:p.value?Math.ceil(p.value[L]):0},u=function(){var L=r?"scrollWidth":"scrollHeight";return n.pageMode?document.documentElement[L]||document.body[L]:p.value?Math.ceil(p.value[L]):0},N=function(L,j,F,M){a("scroll",M,f.getRange()),f.isFront()&&n.dataSources.length&&L-n.topThreshold<=0?a("totop"):f.isBehind()&&L+j+n.bottomThreshold>=F&&a("tobottom")},k=function(L){var j=_(),F=y(),M=u();j<0||j+F>M+1||!M||(f.handleScroll(j),N(j,F,M,L))},w=function(){var L=n.dataKey,j=n.dataSources,F=j===void 0?[]:j;return F.map(function(M){return typeof L=="function"?L(M):M[L]})},b=function(L){c.value=L},S=function(){f=new xh({slotHeaderSize:0,slotFooterSize:0,keeps:n.keeps,estimateSize:n.estimateSize,buffer:Math.round(n.keeps/3),uniqueIds:w()},b),c.value=f.getRange()},V=function(L){if(L>=n.dataSources.length-1)E();else{var j=f.getOffset(L);$(j)}},$=function(L){n.pageMode?(document.body[i]=L,document.documentElement[i]=L):p.value&&(p.value[i]=L)},h=function(){for(var L=[],j=c.value,F=j.start,M=j.end,z=n.dataSources,U=n.dataKey,R=n.itemClass,Y=n.itemTag,X=n.itemStyle,P=n.extraProps,v=n.dataComponent,Te=n.itemScopedSlots,he=F;he<=M;he++){var ke=z[he];if(ke){var Oe=typeof U=="function"?U(ke):ke[U];typeof Oe=="string"||typeof Oe=="number"?L.push(e.createVNode(Ch,{index:he,tag:Y,event:sn.ITEM,horizontal:r,uniqueKey:Oe,source:ke,extraProps:P,component:v,scopedSlots:Te,style:X,class:"".concat(R).concat(n.itemClassAdd?" "+n.itemClassAdd(he):""),onItemResize:g},null)):console.warn("Cannot get the data-key '".concat(U,"' from data-sources."))}else console.warn("Cannot get the index '".concat(he,"' from data-sources."))}return L},g=function(L,j){f.saveSize(L,j),a("resized",L,j)},C=function(L,j,F){L===jt.HEADER?f.updateParam("slotHeaderSize",j):L===jt.FOOTER&&f.updateParam("slotFooterSize",j),F&&f.handleSlotSizeChange()},E=function B(){if(d.value){var L=d.value[r?"offsetLeft":"offsetTop"];$(L),setTimeout(function(){_()+y()<u()&&B()},3)}},D=function(){if(p.value){var L=p.value.getBoundingClientRect(),j=p.value.ownerDocument.defaultView,F=r?L.left+j.pageXOffset:L.top+j.pageYOffset;f.updateParam("slotHeaderSize",F)}},T=function(){return f.sizes.size};return e.onBeforeMount(function(){S()}),e.onActivated(function(){$(f.offset)}),e.onMounted(function(){n.start?V(n.start):n.offset&&$(n.offset),n.pageMode&&(D(),document.addEventListener("scroll",k,{passive:!1}))}),e.onUnmounted(function(){f.destroy(),n.pageMode&&document.removeEventListener("scroll",k)}),l({scrollToBottom:E,getSizes:T,getSize:m,getOffset:_,getScrollSize:u,getClientSize:y,scrollToOffset:$,scrollToIndex:V}),function(){var B=n.pageMode,L=n.rootTag,j=n.wrapTag,F=n.wrapClass,M=n.wrapStyle,z=n.headerTag,U=n.headerClass,R=n.headerStyle,Y=n.footerTag,X=n.footerClass,P=n.footerStyle,v=c.value,Te=v.padFront,he=v.padBehind,ke={padding:r?"0px ".concat(he,"px 0px ").concat(Te,"px"):"".concat(Te,"px 0px ").concat(he,"px")},Oe=M?Object.assign({},M,ke):ke,J=s.header,ee=s.footer;return e.createVNode(L,{ref:p,onScroll:!B&&k},{default:function(){return[J&&e.createVNode(js,{class:U,style:R,tag:z,event:sn.SLOT,uniqueKey:jt.HEADER,onSlotResize:C},{default:function(){return[J()]}}),e.createVNode(j,{class:F,style:Oe},{default:function(){return[h()]}}),ee&&e.createVNode(js,{class:X,style:P,tag:Y,event:sn.SLOT,uniqueKey:jt.FOOTER,onSlotResize:C},{default:function(){return[ee()]}}),e.createVNode("div",{ref:d,style:{width:r?"0px":"100%",height:r?"100%":"0px"}},null)]}})}}});const Ys=1e4;var it=(t=>(t.JSON="application/json;charset=UTF-8",t.FORM_DATA="application/x-www-form-urlencoded;charset=UTF-8",t.FILE_UPLOAD="multipart/form-data;charset=UTF-8",t))(it||{});function Gs(t,n){return function(){return t.apply(n,arguments)}}const{toString:qs}=Object.prototype,{getPrototypeOf:Vo}=Object,$o=(t=>n=>{const o=qs.call(n);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),ct=t=>(t=t.toLowerCase(),n=>$o(n)===t),On=t=>n=>typeof n===t,{isArray:Ht}=Array,ln=On("undefined");function wh(t){return t!==null&&!ln(t)&&t.constructor!==null&&!ln(t.constructor)&&Vt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ks=ct("ArrayBuffer");function Eh(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&Ks(t.buffer),n}const Sh=On("string"),Vt=On("function"),Xs=On("number"),Bo=t=>t!==null&&typeof t=="object",Th=t=>t===!0||t===!1,Rn=t=>{if($o(t)!=="object")return!1;const n=Vo(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Dh=ct("Date"),Vh=ct("File"),$h=ct("Blob"),Bh=ct("FileList"),Ah=t=>Bo(t)&&Vt(t.pipe),Ih=t=>{const n="[object FormData]";return t&&(typeof FormData=="function"&&t instanceof FormData||qs.call(t)===n||Vt(t.toString)&&t.toString()===n)},Lh=ct("URLSearchParams"),Fh=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rn(t,n,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let a,s;if(typeof t!="object"&&(t=[t]),Ht(t))for(a=0,s=t.length;a<s;a++)n.call(null,t[a],a,t);else{const l=o?Object.getOwnPropertyNames(t):Object.keys(t),r=l.length;let i;for(a=0;a<r;a++)i=l[a],n.call(null,t[i],i,t)}}function Js(t,n){n=n.toLowerCase();const o=Object.keys(t);let a=o.length,s;for(;a-- >0;)if(s=o[a],n===s.toLowerCase())return s;return null}const Zs=typeof self>"u"?typeof global>"u"?void 0:global:self,Qs=t=>!ln(t)&&t!==Zs;function Ao(){const{caseless:t}=Qs(this)&&this||{},n={},o=(a,s)=>{const l=t&&Js(n,s)||s;Rn(n[l])&&Rn(a)?n[l]=Ao(n[l],a):Rn(a)?n[l]=Ao({},a):Ht(a)?n[l]=a.slice():n[l]=a};for(let a=0,s=arguments.length;a<s;a++)arguments[a]&&rn(arguments[a],o);return n}const Oh=(t,n,o,{allOwnKeys:a}={})=>(rn(n,(s,l)=>{o&&Vt(s)?t[l]=Gs(s,o):t[l]=s},{allOwnKeys:a}),t),Rh=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ph=(t,n,o,a)=>{t.prototype=Object.create(n.prototype,a),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),o&&Object.assign(t.prototype,o)},Mh=(t,n,o,a)=>{let s,l,r;const i={};if(n=n||{},t==null)return n;do{for(s=Object.getOwnPropertyNames(t),l=s.length;l-- >0;)r=s[l],(!a||a(r,t,n))&&!i[r]&&(n[r]=t[r],i[r]=!0);t=o!==!1&&Vo(t)}while(t&&(!o||o(t,n))&&t!==Object.prototype);return n},Uh=(t,n,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=n.length;const a=t.indexOf(n,o);return a!==-1&&a===o},zh=t=>{if(!t)return null;if(Ht(t))return t;let n=t.length;if(!Xs(n))return null;const o=new Array(n);for(;n-- >0;)o[n]=t[n];return o},Wh=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&Vo(Uint8Array)),jh=(t,n)=>{const a=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=a.next())&&!s.done;){const l=s.value;n.call(t,l[0],l[1])}},Hh=(t,n)=>{let o;const a=[];for(;(o=t.exec(n))!==null;)a.push(o);return a},Yh=ct("HTMLFormElement"),Gh=t=>t.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(o,a,s){return a.toUpperCase()+s}),vs=(({hasOwnProperty:t})=>(n,o)=>t.call(n,o))(Object.prototype),qh=ct("RegExp"),el=(t,n)=>{const o=Object.getOwnPropertyDescriptors(t),a={};rn(o,(s,l)=>{n(s,l,t)!==!1&&(a[l]=s)}),Object.defineProperties(t,a)},q={isArray:Ht,isArrayBuffer:Ks,isBuffer:wh,isFormData:Ih,isArrayBufferView:Eh,isString:Sh,isNumber:Xs,isBoolean:Th,isObject:Bo,isPlainObject:Rn,isUndefined:ln,isDate:Dh,isFile:Vh,isBlob:$h,isRegExp:qh,isFunction:Vt,isStream:Ah,isURLSearchParams:Lh,isTypedArray:Wh,isFileList:Bh,forEach:rn,merge:Ao,extend:Oh,trim:Fh,stripBOM:Rh,inherits:Ph,toFlatObject:Mh,kindOf:$o,kindOfTest:ct,endsWith:Uh,toArray:zh,forEachEntry:jh,matchAll:Hh,isHTMLForm:Yh,hasOwnProperty:vs,hasOwnProp:vs,reduceDescriptors:el,freezeMethods:t=>{el(t,(n,o)=>{if(Vt(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const a=t[o];if(Vt(a)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},toObjectSet:(t,n)=>{const o={},a=s=>{s.forEach(l=>{o[l]=!0})};return Ht(t)?a(t):a(String(t).split(n)),o},toCamelCase:Gh,noop:()=>{},toFiniteNumber:(t,n)=>(t=+t,Number.isFinite(t)?t:n),findKey:Js,global:Zs,isContextDefined:Qs,toJSONObject:t=>{const n=new Array(10),o=(a,s)=>{if(Bo(a)){if(n.indexOf(a)>=0)return;if(!("toJSON"in a)){n[s]=a;const l=Ht(a)?[]:{};return rn(a,(r,i)=>{const c=o(r,s+1);!ln(c)&&(l[i]=c)}),n[s]=void 0,l}}return a};return o(t,0)}};function xe(t,n,o,a,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),o&&(this.config=o),a&&(this.request=a),s&&(this.response=s)}q.inherits(xe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const tl=xe.prototype,nl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{nl[t]={value:t}}),Object.defineProperties(xe,nl),Object.defineProperty(tl,"isAxiosError",{value:!0}),xe.from=(t,n,o,a,s,l)=>{const r=Object.create(tl);return q.toFlatObject(t,r,function(c){return c!==Error.prototype},i=>i!=="isAxiosError"),xe.call(r,t.message,n,o,a,s),r.cause=t,r.name=t.name,l&&Object.assign(r,l),r};function ol(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kh=typeof self=="object"?self.FormData:window.FormData;const Xh=ol(Kh);function Io(t){return q.isPlainObject(t)||q.isArray(t)}function al(t){return q.endsWith(t,"[]")?t.slice(0,-2):t}function sl(t,n,o){return t?t.concat(n).map(function(s,l){return s=al(s),!o&&l?"["+s+"]":s}).join(o?".":""):n}function Jh(t){return q.isArray(t)&&!t.some(Io)}const Zh=q.toFlatObject(q,{},null,function(n){return/^is[A-Z]/.test(n)});function Qh(t){return t&&q.isFunction(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator]}function Pn(t,n,o){if(!q.isObject(t))throw new TypeError("target must be an object");n=n||new(Xh||FormData),o=q.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(u,N){return!q.isUndefined(N[u])});const a=o.metaTokens,s=o.visitor||d,l=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&Qh(n);if(!q.isFunction(s))throw new TypeError("visitor must be a function");function p(y){if(y===null)return"";if(q.isDate(y))return y.toISOString();if(!c&&q.isBlob(y))throw new xe("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(y)||q.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,u,N){let k=y;if(y&&!N&&typeof y=="object"){if(q.endsWith(u,"{}"))u=a?u:u.slice(0,-2),y=JSON.stringify(y);else if(q.isArray(y)&&Jh(y)||q.isFileList(y)||q.endsWith(u,"[]")&&(k=q.toArray(y)))return u=al(u),k.forEach(function(b,S){!(q.isUndefined(b)||b===null)&&n.append(r===!0?sl([u],S,l):r===null?u:u+"[]",p(b))}),!1}return Io(y)?!0:(n.append(sl(N,u,l),p(y)),!1)}const f=[],m=Object.assign(Zh,{defaultVisitor:d,convertValue:p,isVisitable:Io});function _(y,u){if(!q.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+u.join("."));f.push(y),q.forEach(y,function(k,w){(!(q.isUndefined(k)||k===null)&&s.call(n,k,q.isString(w)?w.trim():w,u,m))===!0&&_(k,u?u.concat(w):[w])}),f.pop()}}if(!q.isObject(t))throw new TypeError("data must be an object");return _(t),n}function ll(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return n[a]})}function Lo(t,n){this._pairs=[],t&&Pn(t,this,n)}const rl=Lo.prototype;rl.append=function(n,o){this._pairs.push([n,o])},rl.toString=function(n){const o=n?function(a){return n.call(this,a,ll)}:ll;return this._pairs.map(function(s){return o(s[0])+"="+o(s[1])},"").join("&")};function vh(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function il(t,n,o){if(!n)return t;const a=o&&o.encode||vh,s=o&&o.serialize;let l;if(s?l=s(n,o):l=q.isURLSearchParams(n)?n.toString():new Lo(n,o).toString(a),l){const r=t.indexOf("#");r!==-1&&(t=t.slice(0,r)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t}class cl{constructor(){this.handlers=[]}use(n,o,a){return this.handlers.push({fulfilled:n,rejected:o,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){q.forEach(this.handlers,function(a){a!==null&&n(a)})}}const dl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eu=typeof URLSearchParams<"u"?URLSearchParams:Lo,tu=FormData,nu=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),dt={isBrowser:!0,classes:{URLSearchParams:eu,FormData:tu,Blob},isStandardBrowserEnv:nu,protocols:["http","https","file","blob","url","data"]};function ou(t,n){return Pn(t,new dt.classes.URLSearchParams,Object.assign({visitor:function(o,a,s,l){return dt.isNode&&q.isBuffer(o)?(this.append(a,o.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},n))}function au(t){return q.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function su(t){const n={},o=Object.keys(t);let a;const s=o.length;let l;for(a=0;a<s;a++)l=o[a],n[l]=t[l];return n}function pl(t){function n(o,a,s,l){let r=o[l++];const i=Number.isFinite(+r),c=l>=o.length;return r=!r&&q.isArray(s)?s.length:r,c?(q.hasOwnProp(s,r)?s[r]=[s[r],a]:s[r]=a,!i):((!s[r]||!q.isObject(s[r]))&&(s[r]=[]),n(o,a,s[r],l)&&q.isArray(s[r])&&(s[r]=su(s[r])),!i)}if(q.isFormData(t)&&q.isFunction(t.entries)){const o={};return q.forEachEntry(t,(a,s)=>{n(au(a),s,o,0)}),o}return null}const lu={"Content-Type":void 0};function ru(t,n,o){if(q.isString(t))try{return(n||JSON.parse)(t),q.trim(t)}catch(a){if(a.name!=="SyntaxError")throw a}return(o||JSON.stringify)(t)}const Mn={transitional:dl,adapter:["xhr","http"],transformRequest:[function(n,o){const a=o.getContentType()||"",s=a.indexOf("application/json")>-1,l=q.isObject(n);if(l&&q.isHTMLForm(n)&&(n=new FormData(n)),q.isFormData(n))return s&&s?JSON.stringify(pl(n)):n;if(q.isArrayBuffer(n)||q.isBuffer(n)||q.isStream(n)||q.isFile(n)||q.isBlob(n))return n;if(q.isArrayBufferView(n))return n.buffer;if(q.isURLSearchParams(n))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let i;if(l){if(a.indexOf("application/x-www-form-urlencoded")>-1)return ou(n,this.formSerializer).toString();if((i=q.isFileList(n))||a.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Pn(i?{"files[]":n}:n,c&&new c,this.formSerializer)}}return l||s?(o.setContentType("application/json",!1),ru(n)):n}],transformResponse:[function(n){const o=this.transitional||Mn.transitional,a=o&&o.forcedJSONParsing,s=this.responseType==="json";if(n&&q.isString(n)&&(a&&!this.responseType||s)){const r=!(o&&o.silentJSONParsing)&&s;try{return JSON.parse(n)}catch(i){if(r)throw i.name==="SyntaxError"?xe.from(i,xe.ERR_BAD_RESPONSE,this,null,this.response):i}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};q.forEach(["delete","get","head"],function(n){Mn.headers[n]={}}),q.forEach(["post","put","patch"],function(n){Mn.headers[n]=q.merge(lu)});const Fo=Mn,iu=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),cu=t=>{const n={};let o,a,s;return t&&t.split(`
25
25
  `).forEach(function(r){s=r.indexOf(":"),o=r.substring(0,s).trim().toLowerCase(),a=r.substring(s+1).trim(),!(!o||n[o]&&iu[o])&&(o==="set-cookie"?n[o]?n[o].push(a):n[o]=[a]:n[o]=n[o]?n[o]+", "+a:a)}),n},fl=Symbol("internals");function cn(t){return t&&String(t).trim().toLowerCase()}function Un(t){return t===!1||t==null?t:q.isArray(t)?t.map(Un):String(t)}function du(t){const n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=o.exec(t);)n[a[1]]=a[2];return n}function pu(t){return/^[-_a-zA-Z]+$/.test(t.trim())}function ml(t,n,o,a){if(q.isFunction(a))return a.call(this,n,o);if(q.isString(n)){if(q.isString(a))return n.indexOf(a)!==-1;if(q.isRegExp(a))return a.test(n)}}function fu(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,o,a)=>o.toUpperCase()+a)}function mu(t,n){const o=q.toCamelCase(" "+n);["get","set","has"].forEach(a=>{Object.defineProperty(t,a+o,{value:function(s,l,r){return this[a].call(this,n,s,l,r)},configurable:!0})})}class zn{constructor(n){n&&this.set(n)}set(n,o,a){const s=this;function l(i,c,p){const d=cn(c);if(!d)throw new Error("header name must be a non-empty string");const f=q.findKey(s,d);(!f||s[f]===void 0||p===!0||p===void 0&&s[f]!==!1)&&(s[f||c]=Un(i))}const r=(i,c)=>q.forEach(i,(p,d)=>l(p,d,c));return q.isPlainObject(n)||n instanceof this.constructor?r(n,o):q.isString(n)&&(n=n.trim())&&!pu(n)?r(cu(n),o):n!=null&&l(o,n,a),this}get(n,o){if(n=cn(n),n){const a=q.findKey(this,n);if(a){const s=this[a];if(!o)return s;if(o===!0)return du(s);if(q.isFunction(o))return o.call(this,s,a);if(q.isRegExp(o))return o.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,o){if(n=cn(n),n){const a=q.findKey(this,n);return!!(a&&(!o||ml(this,this[a],a,o)))}return!1}delete(n,o){const a=this;let s=!1;function l(r){if(r=cn(r),r){const i=q.findKey(a,r);i&&(!o||ml(a,a[i],i,o))&&(delete a[i],s=!0)}}return q.isArray(n)?n.forEach(l):l(n),s}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(n){const o=this,a={};return q.forEach(this,(s,l)=>{const r=q.findKey(a,l);if(r){o[r]=Un(s),delete o[l];return}const i=n?fu(l):String(l).trim();i!==l&&delete o[l],o[i]=Un(s),a[i]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const o=Object.create(null);return q.forEach(this,(a,s)=>{a!=null&&a!==!1&&(o[s]=n&&q.isArray(a)?a.join(", "):a)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,o])=>n+": "+o).join(`
26
26
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...o){const a=new this(n);return o.forEach(s=>a.set(s)),a}static accessor(n){const a=(this[fl]=this[fl]={accessors:{}}).accessors,s=this.prototype;function l(r){const i=cn(r);a[i]||(mu(s,r),a[i]=!0)}return q.isArray(n)?n.forEach(l):l(n),this}}zn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),q.freezeMethods(zn.prototype),q.freezeMethods(zn);const pt=zn;function Oo(t,n){const o=this||Fo,a=n||o,s=pt.from(a.headers);let l=a.data;return q.forEach(t,function(i){l=i.call(o,l,s.normalize(),n?n.status:void 0)}),s.normalize(),l}function hl(t){return!!(t&&t.__CANCEL__)}function dn(t,n,o){xe.call(this,t??"canceled",xe.ERR_CANCELED,n,o),this.name="CanceledError"}q.inherits(dn,xe,{__CANCEL__:!0});const hu=null;function uu(t,n,o){const a=o.config.validateStatus;!o.status||!a||a(o.status)?t(o):n(new xe("Request failed with status code "+o.status,[xe.ERR_BAD_REQUEST,xe.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const _u=dt.isStandardBrowserEnv?function(){return{write:function(o,a,s,l,r,i){const c=[];c.push(o+"="+encodeURIComponent(a)),q.isNumber(s)&&c.push("expires="+new Date(s).toGMTString()),q.isString(l)&&c.push("path="+l),q.isString(r)&&c.push("domain="+r),i===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(o){const a=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(o){this.write(o,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function gu(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function yu(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}function ul(t,n){return t&&!gu(n)?yu(t,n):n}const xu=dt.isStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let a;function s(l){let r=l;return n&&(o.setAttribute("href",r),r=o.href),o.setAttribute("href",r),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return a=s(window.location.href),function(r){const i=q.isString(r)?s(r):r;return i.protocol===a.protocol&&i.host===a.host}}():function(){return function(){return!0}}();function ku(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function Nu(t,n){t=t||10;const o=new Array(t),a=new Array(t);let s=0,l=0,r;return n=n!==void 0?n:1e3,function(c){const p=Date.now(),d=a[l];r||(r=p),o[s]=c,a[s]=p;let f=l,m=0;for(;f!==s;)m+=o[f++],f=f%t;if(s=(s+1)%t,s===l&&(l=(l+1)%t),p-r<n)return;const _=d&&p-d;return _?Math.round(m*1e3/_):void 0}}function _l(t,n){let o=0;const a=Nu(50,250);return s=>{const l=s.loaded,r=s.lengthComputable?s.total:void 0,i=l-o,c=a(i),p=l<=r;o=l;const d={loaded:l,total:r,progress:r?l/r:void 0,bytes:i,rate:c||void 0,estimated:c&&r&&p?(r-l)/c:void 0,event:s};d[n?"download":"upload"]=!0,t(d)}}const Wn={http:hu,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(o,a){let s=t.data;const l=pt.from(t.headers).normalize(),r=t.responseType;let i;function c(){t.cancelToken&&t.cancelToken.unsubscribe(i),t.signal&&t.signal.removeEventListener("abort",i)}q.isFormData(s)&&dt.isStandardBrowserEnv&&l.setContentType(!1);let p=new XMLHttpRequest;if(t.auth){const _=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";l.set("Authorization","Basic "+btoa(_+":"+y))}const d=ul(t.baseURL,t.url);p.open(t.method.toUpperCase(),il(d,t.params,t.paramsSerializer),!0),p.timeout=t.timeout;function f(){if(!p)return;const _=pt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),u={data:!r||r==="text"||r==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:_,config:t,request:p};uu(function(k){o(k),c()},function(k){a(k),c()},u),p=null}if("onloadend"in p?p.onloadend=f:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(f)},p.onabort=function(){p&&(a(new xe("Request aborted",xe.ECONNABORTED,t,p)),p=null)},p.onerror=function(){a(new xe("Network Error",xe.ERR_NETWORK,t,p)),p=null},p.ontimeout=function(){let y=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const u=t.transitional||dl;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),a(new xe(y,u.clarifyTimeoutError?xe.ETIMEDOUT:xe.ECONNABORTED,t,p)),p=null},dt.isStandardBrowserEnv){const _=(t.withCredentials||xu(d))&&t.xsrfCookieName&&_u.read(t.xsrfCookieName);_&&l.set(t.xsrfHeaderName,_)}s===void 0&&l.setContentType(null),"setRequestHeader"in p&&q.forEach(l.toJSON(),function(y,u){p.setRequestHeader(u,y)}),q.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),r&&r!=="json"&&(p.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&p.addEventListener("progress",_l(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",_l(t.onUploadProgress)),(t.cancelToken||t.signal)&&(i=_=>{p&&(a(!_||_.type?new dn(null,t,p):_),p.abort(),p=null)},t.cancelToken&&t.cancelToken.subscribe(i),t.signal&&(t.signal.aborted?i():t.signal.addEventListener("abort",i)));const m=ku(d);if(m&&dt.protocols.indexOf(m)===-1){a(new xe("Unsupported protocol "+m+":",xe.ERR_BAD_REQUEST,t));return}p.send(s||null)})}};q.forEach(Wn,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const bu={getAdapter:t=>{t=q.isArray(t)?t:[t];const{length:n}=t;let o,a;for(let s=0;s<n&&(o=t[s],!(a=q.isString(o)?Wn[o.toLowerCase()]:o));s++);if(!a)throw a===!1?new xe(`Adapter ${o} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(q.hasOwnProp(Wn,o)?`Adapter '${o}' is not available in the build`:`Unknown adapter '${o}'`);if(!q.isFunction(a))throw new TypeError("adapter is not a function");return a},adapters:Wn};function Ro(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new dn}function gl(t){return Ro(t),t.headers=pt.from(t.headers),t.data=Oo.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),bu.getAdapter(t.adapter||Fo.adapter)(t).then(function(a){return Ro(t),a.data=Oo.call(t,t.transformResponse,a),a.headers=pt.from(a.headers),a},function(a){return hl(a)||(Ro(t),a&&a.response&&(a.response.data=Oo.call(t,t.transformResponse,a.response),a.response.headers=pt.from(a.response.headers))),Promise.reject(a)})}const yl=t=>t instanceof pt?t.toJSON():t;function pn(t,n){n=n||{};const o={};function a(p,d,f){return q.isPlainObject(p)&&q.isPlainObject(d)?q.merge.call({caseless:f},p,d):q.isPlainObject(d)?q.merge({},d):q.isArray(d)?d.slice():d}function s(p,d,f){if(q.isUndefined(d)){if(!q.isUndefined(p))return a(void 0,p,f)}else return a(p,d,f)}function l(p,d){if(!q.isUndefined(d))return a(void 0,d)}function r(p,d){if(q.isUndefined(d)){if(!q.isUndefined(p))return a(void 0,p)}else return a(void 0,d)}function i(p,d,f){if(f in n)return a(p,d);if(f in t)return a(void 0,p)}const c={url:l,method:l,data:l,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:i,headers:(p,d)=>s(yl(p),yl(d),!0)};return q.forEach(Object.keys(t).concat(Object.keys(n)),function(d){const f=c[d]||s,m=f(t[d],n[d],d);q.isUndefined(m)&&f!==i||(o[d]=m)}),o}const xl="1.2.0",Po={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{Po[t]=function(a){return typeof a===t||"a"+(n<1?"n ":" ")+t}});const kl={};Po.transitional=function(n,o,a){function s(l,r){return"[Axios v"+xl+"] Transitional option '"+l+"'"+r+(a?". "+a:"")}return(l,r,i)=>{if(n===!1)throw new xe(s(r," has been removed"+(o?" in "+o:"")),xe.ERR_DEPRECATED);return o&&!kl[r]&&(kl[r]=!0,console.warn(s(r," has been deprecated since v"+o+" and will be removed in the near future"))),n?n(l,r,i):!0}};function Cu(t,n,o){if(typeof t!="object")throw new xe("options must be an object",xe.ERR_BAD_OPTION_VALUE);const a=Object.keys(t);let s=a.length;for(;s-- >0;){const l=a[s],r=n[l];if(r){const i=t[l],c=i===void 0||r(i,l,t);if(c!==!0)throw new xe("option "+l+" must be "+c,xe.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new xe("Unknown option "+l,xe.ERR_BAD_OPTION)}}const Mo={assertOptions:Cu,validators:Po},yt=Mo.validators;class jn{constructor(n){this.defaults=n,this.interceptors={request:new cl,response:new cl}}request(n,o){typeof n=="string"?(o=o||{},o.url=n):o=n||{},o=pn(this.defaults,o);const{transitional:a,paramsSerializer:s,headers:l}=o;a!==void 0&&Mo.assertOptions(a,{silentJSONParsing:yt.transitional(yt.boolean),forcedJSONParsing:yt.transitional(yt.boolean),clarifyTimeoutError:yt.transitional(yt.boolean)},!1),s!==void 0&&Mo.assertOptions(s,{encode:yt.function,serialize:yt.function},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let r;r=l&&q.merge(l.common,l[o.method]),r&&q.forEach(["delete","get","head","post","put","patch","common"],y=>{delete l[y]}),o.headers=pt.concat(r,l);const i=[];let c=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(o)===!1||(c=c&&u.synchronous,i.unshift(u.fulfilled,u.rejected))});const p=[];this.interceptors.response.forEach(function(u){p.push(u.fulfilled,u.rejected)});let d,f=0,m;if(!c){const y=[gl.bind(this),void 0];for(y.unshift.apply(y,i),y.push.apply(y,p),m=y.length,d=Promise.resolve(o);f<m;)d=d.then(y[f++],y[f++]);return d}m=i.length;let _=o;for(f=0;f<m;){const y=i[f++],u=i[f++];try{_=y(_)}catch(N){u.call(this,N);break}}try{d=gl.call(this,_)}catch(y){return Promise.reject(y)}for(f=0,m=p.length;f<m;)d=d.then(p[f++],p[f++]);return d}getUri(n){n=pn(this.defaults,n);const o=ul(n.baseURL,n.url);return il(o,n.params,n.paramsSerializer)}}q.forEach(["delete","get","head","options"],function(n){jn.prototype[n]=function(o,a){return this.request(pn(a||{},{method:n,url:o,data:(a||{}).data}))}}),q.forEach(["post","put","patch"],function(n){function o(a){return function(l,r,i){return this.request(pn(i||{},{method:n,headers:a?{"Content-Type":"multipart/form-data"}:{},url:l,data:r}))}}jn.prototype[n]=o(),jn.prototype[n+"Form"]=o(!0)});const Hn=jn;class Uo{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(l){o=l});const a=this;this.promise.then(s=>{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](s);a._listeners=null}),this.promise.then=s=>{let l;const r=new Promise(i=>{a.subscribe(i),l=i}).then(s);return r.cancel=function(){a.unsubscribe(l)},r},n(function(l,r,i){a.reason||(a.reason=new dn(l,r,i),o(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const o=this._listeners.indexOf(n);o!==-1&&this._listeners.splice(o,1)}static source(){let n;return{token:new Uo(function(s){n=s}),cancel:n}}}const wu=Uo;function Eu(t){return function(o){return t.apply(null,o)}}function Su(t){return q.isObject(t)&&t.isAxiosError===!0}function Nl(t){const n=new Hn(t),o=Gs(Hn.prototype.request,n);return q.extend(o,Hn.prototype,n,{allOwnKeys:!0}),q.extend(o,n,null,{allOwnKeys:!0}),o.create=function(s){return Nl(pn(t,s))},o}const Pe=Nl(Fo);Pe.Axios=Hn,Pe.CanceledError=dn,Pe.CancelToken=wu,Pe.isCancel=hl,Pe.VERSION=xl,Pe.toFormData=Pn,Pe.AxiosError=xe,Pe.Cancel=Pe.CanceledError,Pe.all=function(n){return Promise.all(n)},Pe.spread=Eu,Pe.isAxiosError=Su,Pe.AxiosHeaders=pt,Pe.formToJSON=t=>pl(q.isHTMLForm(t)?new FormData(t):t),Pe.default=Pe;const zo=!0;class bl{constructor(n){Nn(this,"instance");Nn(this,"loading");Nn(this,"showLoading");var o,a,s,l;this.instance=Pe.create(n),this.showLoading=n.showLoading??zo,this.instance.interceptors.request.use(r=>(this.showLoading&&(this.loading=pe.ElLoading.service({lock:!0,text:"正在请求数据....",background:"rgba(0, 0, 0, 0.5)"})),r),r=>{var i;return(i=this.loading)==null||i.close(),r}),this.instance.interceptors.response.use(r=>{var d;(d=this.loading)==null||d.close();const{data:i}=r,{code:c,msg:p}=i;return c===200?r:(p&&pe.ElNotification({title:"提示",message:p,type:"error"}),Promise.resolve(r))},r=>{var c;(c=this.loading)==null||c.close();const{data:i}=r.response;return i.msg&&pe.ElNotification({title:"提示",message:i.msg,type:"error"}),r.code==="ECONNABORTED"&&pe.ElNotification({title:"提示",message:"请求超时",type:"error"}),Promise.reject(r)}),this.instance.interceptors.request.use((o=n.interceptors)==null?void 0:o.requestSuccessFn,(a=n.interceptors)==null?void 0:a.requestFailureFn),this.instance.interceptors.response.use((s=n.interceptors)==null?void 0:s.responseSuccessFn,(l=n.interceptors)==null?void 0:l.responseFailureFn)}request(n){var o;return(o=n.interceptors)!=null&&o.requestSuccessFn&&(n=n.interceptors.requestSuccessFn(n)),n.showLoading===!1&&(this.showLoading=n.showLoading),new Promise((a,s)=>{this.instance.request(n).then(l=>{var r;(r=n.interceptors)!=null&&r.responseSuccessFn&&(l=n.interceptors.responseSuccessFn(l)),this.showLoading=zo,a(l)}).catch(l=>{this.showLoading=zo,s(l)})})}get(n){return this.request({...n,method:"GET"})}post(n){return this.request({...n,method:"POST"})}delete(n){return this.request({...n,method:"DELETE"})}patch(n){return this.request({...n,method:"PATCH"})}put(n){return this.request({...n,method:"PUT"})}}const Tu="/admin",oe=new bl({baseURL:`${Ue.getCache("host")||""}${Tu}`,timeout:Ys,headers:{"Content-Type":it.JSON},interceptors:{requestSuccessFn:t=>{const n=Ue.getCache("userInfo");return t.headers.token=n==null?void 0:n.token,t.headers&&t.isJson?t.headers["Content-Type"]=it.JSON:t.headers&&t.isFormData?t.headers["Content-Type"]=it.FORM_DATA:t.headers&&t.isFileUpload&&(t.responseType="blob",t.headers["Content-Type"]=it.FILE_UPLOAD),t.headers&&t.xAmzAcl&&(t.headers["Content-Type"]=t.fileType,t.headers["x-amz-acl"]="public-read"),t},requestFailureFn:t=>t,responseSuccessFn:t=>t.data,responseFailureFn:t=>t}});function Cl(t,n,o){return oe.post({url:`${t}/page`,data:n,isFormData:o!==!0,isJson:o===!0})}function Du(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(!1),s=e.ref(""),l=e.ref(""),r=e.ref(""),i=e.ref([]),c=e.ref([]),p=e.ref(""),d=e.ref(!1),f=e.ref(!1),m=e.ref(0),_=e.computed(()=>d.value||f.value);function y(){i.value=[],l.value=o.value.modelValue,(Array.isArray(l.value)?l.value.length:l.value)?(console.log("initSelect_01",o.value.selectedDataList),o.value.selectedDataList.length?i.value=[...o.value.selectedDataList]:u()):i.value=[]}async function u(){i.value=[];const h=await Cl(o.value.controller,{size:1e3,idList:l.value,page:0});if(o.value.multiple){if(h.code===200){const{content:g}=h.data;i.value=g||[],o.value.customDataList&&o.value.customDataList.length&&l.value.forEach(C=>{if(i.value.findIndex(D=>D[`${o.value.optionValue}`]===C)===-1){const D=o.value.customDataList.find(T=>T[`${o.value.optionValue}`]===C);D&&i.value.push(D)}}),n("on-selectItem",i.value)}}else if(h.code===200){const{content:g}=h.data;if(i.value=g||[],o.value.customDataList&&o.value.customDataList.length&&i.value.findIndex(E=>E[`${o.value.optionValue}`]===l)===-1){const E=o.value.customDataList.find(D=>D[`${o.value.optionValue}`]===l);E&&i.value.push(E)}i.value.length?n("on-selectItem",i.value[0]):n("on-selectItem",null)}}function N(h){a.value=h,n("visibleChange",h),a.value&&(o.value.requestimmediately||c.value.length===0)&&b(null)}function k(h){i.value.splice(h,1),l.value.splice&&l.value.splice(h,1)}function w(h){if(!h&&p.value&&b(null),o.value.multiple){const g=[];h&&h.length?(h.forEach(C=>{const E=c.value.find(D=>D[`${o.value.optionValue}`]===C);E&&g.push(E)}),i.value=g,n("on-selectItem",g)):(i.value=[],n("on-selectItem",[])),e.nextTick(()=>{n("on-changeSelectItem",null)})}else if(h){const g=c.value.find(C=>C[`${o.value.optionValue}`]===h);g&&(i.value=[g],n("on-selectItem",g),e.nextTick(()=>{n("on-changeSelectItem",g)}))}else i.value=[],n("on-selectItem",null),e.nextTick(()=>{n("on-changeSelectItem",null)});n("input",h),n("change",h),n("update:modelValue",h)}function b(h){p.value=h,m.value=0,$()}function S(h){(a.value||h)&&b(h)}function V(){!d.value&&!_.value&&c.value.length>=15&&(m.value++,e.nextTick(()=>{$()}))}async function $(){if(d.value=!0,m.value===0&&(o.value.customDataList&&o.value.customDataList.length?c.value=[...o.value.customDataList]:c.value=[]),o.value.controller){const h=await Cl(o.value.controller,{size:15,...o.value.requestParams,page:m.value,query:p.value});if(h.code===200){const{content:g,totalPages:C}=h.data,E=g||[];o.value.filterDataList.length?E.forEach(D=>{const T=D[`${o.value.optionValue}`];(T===o.value.modelValue||o.value.filterDataList.findIndex(L=>L[`${o.value.optionValue}`]===T)===-1)&&c.value.push(D)}):c.value.push(...E),p.value&&c.value.length===0&&(p.value=null),e.nextTick(()=>{d.value=!1,f.value=m.value===C})}}}return{visibleChangeType:a,selectComponent:s,selectValue:l,valueType:r,selectedList:i,options:c,query:p,loading:d,noMore:f,page:m,initSelect:y,getSelectedList:u,visibleChange:N,handleChange:w,remoteMethod:b,filterMethod:S,loadmore:V,getData:$,deleteSelectedList:k}}const Vu={key:0,class:"mb-1 border-b border-hy-border-2 text-xs text-hy-text-secondary flex items-center pl-[20px] box-border justify-between h-[34px]"},$u=e.createElementVNode("div",null,"所有数据",-1),Bu={class:"h-[200px] overflow-x-hidden overflow-y-auto"},Au={class:"w-full h-full flex items-center justify-center flex-col text-xs text-hy-text-secondary"},Iu=e.createElementVNode("span",{class:"mt-4"},"暂 无 数 据",-1),Lu=["onClick"],Fu={class:"text-hy-main flex items-center click-box pr-[10px]"},Ou=e.createElementVNode("span",{class:"mr-1"},"已选中数据",-1),Ru={key:1},Pu={key:3,class:"flex items-center justify-center text-xs text-hy-text-secondary mt-[10px]"},Mu=e.defineComponent({__name:"hy-select",props:{modelValue:{default:""},requestParams:{default:{}},controller:{default:""},filterDataList:{default:()=>[]},customDataList:{default:()=>[]},selectedDataList:{default:()=>[]},requestimmediately:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},optionLabel:{default:"name"},optionValue:{default:"id"},size:{default:""},placeholder:{default:"请选择"}},emits:["update:modelValue","on-selectItem","on-selectItem","on-selectItem","visibleChange","on-selectItem","on-selectItem","on-changeSelectItem","on-selectItem","on-changeSelectItem","on-selectItem","on-changeSelectItem","input","change"],setup(t,{expose:n,emit:o}){const a=t,s=o,{visibleChangeType:l,selectValue:r,valueType:i,selectedList:c,options:p,query:d,loading:f,noMore:m,page:_,initSelect:y,getSelectedList:u,visibleChange:N,handleChange:k,remoteMethod:w,filterMethod:b,loadmore:S,getData:V,deleteSelectedList:$}=Du({emit:s,props:a});return n({remoteMethod:w}),e.watch(()=>a.modelValue,h=>{r.value!==h&&(r.value=h,(Array.isArray(r.value)?r.value.length:r.value)?u():c.value=[])}),e.ref(!1),e.onMounted(()=>{y()}),(h,g)=>{const C=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-icon"),D=e.resolveComponent("el-popover"),T=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),L=e.resolveDirective("infinite-scroll");return e.openBlock(),e.createBlock(B,{modelValue:e.unref(r),"onUpdate:modelValue":g[0]||(g[0]=j=>e.isRef(r)?r.value=j:null),"remote-show-suffix":"","collapse-tags":"",placeholder:a.placeholder,multiple:a.multiple,size:a.size,class:e.normalizeClass(a.clearable&&e.unref(r)?"remoteSelect_have":"remoteSelect_no"),filterable:"",remote:"",loading:e.unref(f)&&e.unref(_)===0||e.unref(p).length===0,"loading-text":e.unref(f)?"加载中":"无数据",clearable:a.clearable,"filter-method":e.unref(b),onVisibleChange:e.unref(N),onChange:e.unref(k)},{default:e.withCtx(()=>[a.multiple?(e.openBlock(),e.createElementBlock("div",Vu,[$u,e.createVNode(D,{placement:"right",teleported:!1,width:200,trigger:"click","popper-class":"!p-1"},{reference:e.withCtx(()=>[e.createElementVNode("div",Fu,[Ou,e.createVNode(E,null,{default:e.withCtx(()=>[e.createVNode(e.unref(oh))]),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",Bu,[e.withDirectives(e.createElementVNode("div",Au,[e.createVNode(C,{width:"40",height:"40",name:"sys-icon-no-data"}),Iu],512),[[e.vShow,e.unref(c).length===0]]),e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(j,F)=>(e.openBlock(),e.createElementBlock("li",{key:`${F}_selectedList1`,class:"el-select-dropdown__item is-selected hover:bg-hy-page-bg-3 click-box",onClick:M=>e.unref($)(F)},e.toDisplayString(j[`${a.optionLabel}`]),9,Lu))),128))])])]),_:1})])):e.withDirectives((e.openBlock(),e.createElementBlock("div",Ru,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(j,F)=>(e.openBlock(),e.createBlock(T,{key:`${F}_selectedList`,label:j[`${h.optionLabel}`],value:j[`${h.optionValue}`]},null,8,["label","value"]))),128))],512)),[[e.vShow,!1]]),e.unref(l)?e.withDirectives((e.openBlock(),e.createBlock(e.unref(Hs),{key:2,"data-key":"id","data-sources":e.unref(p),"data-component":Jm,"extra-props":{optionLabel:a.optionLabel,optionValue:a.optionValue},class:"max-h-[200px] overflow-y-auto",keeps:10,"estimate-size":34},null,8,["data-sources","extra-props"])),[[L,e.unref(S)]]):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("p",Pu," 加载中... ")):e.createCommentVNode("",!0)]),_:1},8,["modelValue","placeholder","multiple","size","class","loading","loading-text","clearable","filter-method","onVisibleChange","onChange"])}}});var Xe=(t=>(t[t.NULL=0]="NULL",t[t.RADIO=1]="RADIO",t[t.CHECKBOX=2]="CHECKBOX",t))(Xe||{});function Wo(t,n){return oe.post({url:t,data:n,isFormData:!0})}const Uu={class:"rounded gap-x-0 flex flex-col w-full h-full"},zu={class:"flex items-center justify-between box-border"},Wu={class:"flex-grow w-0 flex items-center mr-2"},ju={class:"flex items-center"},Hu={class:"text-hy-text-main"},Yu=e.createElementVNode("span",null,null,-1),Gu={key:0},qu={key:1,class:"text-hy-text-secondary"},Ku={class:"flex justify-between text-xs text-hy-text-main h-[34px] items-center px-2"},Xu={key:0},Ju={class:"text-hy-main"},Zu={key:0},Qu={class:"text-hy-main"},vu={key:0,class:"flex justify-center"},Yt=e.defineComponent({__name:"index",props:{height:{default:500},columnList:{default:()=>[]},searchArr:{default:()=>[]},showIndexColumn:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!0},selectColumnType:{default:Xe.NULL},childrenProps:{default:()=>({})},showFooter:{type:Boolean,default:!0},reqUrl:{default:"/api/data"},customUrl:{default:null},showHeader:{type:Boolean,default:()=>!0},cellStyle:{type:Function,default:()=>({})},headerCellStyle:{type:Function,default:()=>({})},disableIds:{default:()=>[]},searchForm:{default:()=>({})},searchKey:{},selectKey:{default:"id"},paginationLayout:{default:"total, sizes, prev, pager, next, jumper"},pagerCount:{default:7},treeProps:{default:()=>({})}},emits:["getTotal","selectionChange","onRowcClick"],setup(t,{expose:n,emit:o}){const a=t,s=o,l=e.ref(),r=e.ref({query:null,size:10,page:0}),i=e.ref({totalElements:0,number:0,totalPages:0,size:0,content:null}),c=e.ref([]);function p(){return a.selectKey}const d=e.computed(()=>{let h="";return a.searchArr.forEach(g=>{h+=`${g.label},`}),a.columnList.forEach(g=>{g.isSearch&&(h+=`${g.label},`)}),h.length===0?null:h.substring(0,h.length-1)}),f=e.computed(()=>({row:h})=>{const g=h[a.selectKey];return typeof c.value!="object"?c.value===g?"selected":"":c.value.findIndex(E=>E[a.selectKey]===h[a.selectKey])!==-1?"selected":""});async function m(h){(Object==null?void 0:Object.keys((a==null?void 0:a.searchForm)||{}).length)>0&&(r.value={...r.value,...a==null?void 0:a.searchForm}),(Object==null?void 0:Object.keys(h||{}).length)>0&&(r.value={...r.value,...h});const g={...r.value,page:r.value.page!==0?r.value.page-1:0};for(const T in g)(g[T]===void 0||g[T]===null||g[T]==="")&&delete g[T];if(a.customUrl){const{data:T}=await Wo(a.customUrl,g);i.value={content:T};return}const E=a.reqUrl.replace(/^\.\/(.*)\.\w+$/,"$1").split("/"),D=E[E.length-1];if(D==="findAll"){const{data:T}=await Wo(a.reqUrl,g);i.value=T;return}if(D==="page"){const{data:T,code:B}=await Wo(a.reqUrl,g);if(B!==200)return;i.value=T,s("getTotal",i.value.totalElements)}}function _(h){if(a.selectColumnType===Xe.CHECKBOX)c.value=h,s("selectionChange",c.value);else if(a.selectColumnType===Xe.RADIO){const g=h[a.selectKey];c.value=c.value===g?"":g,c.value?s("selectionChange",h):s("selectionChange",null)}}function y(h){var g;(g=l.value)==null||g.clearSelection(),console.log(a.selectColumnType,Xe.RADIO,h),a.selectColumnType===Xe.RADIO?h.length?(c.value=h[0][a.selectKey],s("selectionChange",h[0])):(c.value="",s("selectionChange",null)):(c.value=h||[],h.forEach(C=>{var T,B;let E=null;const D=C[a.selectKey];D&&(E=i.value.content.find(L=>L[a.selectKey]===D)),E?(T=l.value)==null||T.toggleRowSelection(E,!0):(B=l.value)==null||B.toggleRowSelection(C,!0)})),console.log("selectedData",c.value)}function u(){var h;(h=l.value)==null||h.clearSelection()}function N(h){r.value.page=h,m()}function k(){m()}function w(h){i.value=h}function b(h){var g;a.selectColumnType===Xe.CHECKBOX?(g=l.value)==null||g.toggleRowSelection(h):a.selectColumnType===Xe.RADIO&&_(h),s("onRowcClick",h)}function S(){return{...a==null?void 0:a.searchForm,...r.value}}function V(){return i.value}function $(){return i.value.totalElements}return e.onMounted(()=>{a.selectColumnType===Xe.CHECKBOX?c.value=[]:a.selectColumnType===Xe.RADIO&&(c.value=""),a.defaultGetData&&m()}),n({getTableData:m,setSelectedData:y,clearSelection:u,selectedData:c,setTableData:w,handleCurrentChange:N,getSearchForm:S,getTableList:V,getTotalElements:$}),(h,g)=>{var F;const C=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button"),D=e.resolveComponent("el-input"),T=e.resolveComponent("el-radio"),B=e.resolveComponent("el-table-column"),L=e.resolveComponent("el-table"),j=e.resolveComponent("el-pagination");return e.openBlock(),e.createElementBlock("div",Uu,[e.createElementVNode("div",zu,[e.createElementVNode("div",Wu,[e.renderSlot(h.$slots,"tableLeft")]),e.createElementVNode("div",ju,[e.renderSlot(h.$slots,"tableRight"),((F=e.unref(d))==null?void 0:F.length)>0?(e.openBlock(),e.createBlock(D,{key:0,modelValue:e.unref(r).query,"onUpdate:modelValue":g[1]||(g[1]=M=>e.unref(r).query=M),placeholder:`输入 ${e.unref(d)} 搜索`,size:"small",clearable:"",class:"my-2 table-search-main w-[260px]",onClear:g[2]||(g[2]=M=>N(0)),onKeyup:g[3]||(g[3]=e.withKeys(M=>N(0),["enter"]))},{append:e.withCtx(()=>[e.createElementVNode("div",Hu,[e.createVNode(E,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:g[0]||(g[0]=M=>N(0))},{default:e.withCtx(()=>[e.createVNode(C,{name:"sys-button-search",width:"14",height:"14"})]),_:1})])]),_:1},8,["modelValue","placeholder"])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",{class:e.normalizeClass(["flex-grow h-0",{noData:!e.unref(i).content||e.unref(i).content.length===0}])},[e.renderSlot(h.$slots,"customContent",{tableData:e.unref(i).content}),e.useSlots().customContent?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(L,e.mergeProps({key:0,ref_key:"tableRef",ref:l,style:{width:"100%"},"empty-text":"暂 无 数 据"},h.childrenProps,{"highlight-current-row":"",height:h.height,"show-header":h.showHeader,data:e.unref(i).content,"cell-style":()=>h.cellStyle,"header-cell-style":()=>h.headerCellStyle,"row-key":p(),"tree-props":h.treeProps,"row-class-name":e.unref(f),onRowClick:b,onSelectionChange:_}),{empty:e.withCtx(()=>[e.renderSlot(h.$slots,"empty")]),default:e.withCtx(()=>[h.selectColumnType===e.unref(Xe).RADIO?(e.openBlock(),e.createBlock(B,{key:0,align:"center",width:"60",label:"选择"},{default:e.withCtx(({row:M})=>[e.createVNode(T,{"model-value":e.unref(c),class:"radio",label:M[a.selectKey]},{default:e.withCtx(()=>[Yu]),_:2},1032,["model-value","label"])]),_:1})):e.createCommentVNode("",!0),h.selectColumnType===e.unref(Xe).CHECKBOX?(e.openBlock(),e.createBlock(B,{key:1,type:"selection",align:"center",width:"60","reserve-selection":!0,selectable:M=>!h.disableIds.includes(M[h.selectKey])},null,8,["selectable"])):e.createCommentVNode("",!0),h.showIndexColumn?(e.openBlock(),e.createBlock(B,{key:2,type:"index",label:"序号",align:"center",width:"80"})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.columnList,M=>(e.openBlock(),e.createBlock(B,e.mergeProps(M,{key:M.prop,label:M.label,"header-align":M.headerAlign,align:M.align,width:M.width,"show-overflow-tooltip":""}),e.createSlots({default:e.withCtx(z=>[e.renderSlot(h.$slots,M.slotName,e.normalizeProps(e.guardReactiveProps({...z,propItem:M})),()=>[z.row[M.prop]?(e.openBlock(),e.createElementBlock("span",Gu,e.toDisplayString(z.row[M.prop]),1)):(e.openBlock(),e.createElementBlock("span",qu,"--"))])]),_:2},[M.headerSlotName?{name:"header",fn:e.withCtx(z=>[e.renderSlot(h.$slots,M.headerSlotName,e.normalizeProps(e.guardReactiveProps(z)))]),key:"0"}:void 0]),1040,["label","header-align","align","width"]))),128))]),_:3},16,["height","show-header","data","cell-style","header-cell-style","row-key","tree-props","row-class-name"]))],2),e.createElementVNode("div",Ku,[e.createElementVNode("div",null,[e.unref(i).content?(e.openBlock(),e.createElementBlock("div",Xu,[e.createTextVNode(" 本页共有 "),e.createElementVNode("span",Ju,e.toDisplayString(e.unref(i).content.length),1),e.createTextVNode(" 条数据 "),e.unref(c)&&e.unref(c).length?(e.openBlock(),e.createElementBlock("span",Zu,[e.createTextVNode(" 已选中 "),e.createElementVNode("span",Qu,e.toDisplayString(e.unref(c).length),1),e.createTextVNode(" 条 ")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(h.$slots,"statisticalQuantityLeft")]),e.createElementVNode("div",null,[e.renderSlot(h.$slots,"statisticalQuantityRight")])]),h.showFooter?(e.openBlock(),e.createElementBlock("div",vu,[e.renderSlot(h.$slots,"footer",{},()=>[e.createVNode(j,{"current-page":e.unref(r).page,"onUpdate:currentPage":g[4]||(g[4]=M=>e.unref(r).page=M),"page-size":e.unref(r).size,"onUpdate:pageSize":g[5]||(g[5]=M=>e.unref(r).size=M),class:"h-[50px]","pager-count":h.pagerCount,"hide-on-single-page":!0,"page-sizes":[10,15,30,50,100],layout:h.paginationLayout,total:e.unref(i).totalElements,onSizeChange:k,onCurrentChange:N},null,8,["current-page","page-size","pager-count","layout","total"])])])):e.createCommentVNode("",!0)])}}});function e_(t){return t&&Array.isArray(t)}const jo=e.defineComponent({__name:"index",setup(t,{expose:n}){const o=e.ref(!1),a=e.ref(0),s=e.ref([]);function l(i,c){o.value=!0,e_(i)?s.value=i:s.value.push(i),a.value=c}function r(){s.value=[],a.value=0,o.value=!1}return n({onShowViewer:l,imageViewerClose:r}),(i,c)=>{const p=e.resolveComponent("el-image-viewer");return e.unref(o)?(e.openBlock(),e.createBlock(p,{key:0,"url-list":e.unref(s),"initial-index":e.unref(a),onClose:r},null,8,["url-list","initial-index"])):e.createCommentVNode("",!0)}}}),wl=Ls(),x=t=>wl.global.t(t);wl.global;const t_={class:"w-full h-full bg-hy-page-bg-2 text-hy-text-secondary text-base flex flex-col items-center justify-center"},n_={class:"text-center mt-[12px]"},Gt=e.defineComponent({__name:"map-no-permissions",setup(t){return(n,o)=>{const a=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",t_,[e.createVNode(a,{width:"16",height:"16",name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",n_,[e.createElementVNode("p",null,e.toDisplayString(e.unref(x)("youDoNotHaveAMapConfigurationForThisModule")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(x)("pleaseContactTheAdministratorToGoToTheSettingsCenterForConfiguration")),1)])])}}});function o_(t){return oe.post({url:"/common/platformLoginCover",data:t,isFormData:!0})}/*!
@@ -53,4 +53,4 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,curr
53
53
  border: 2px solid var(--hy-text-secondary);
54
54
  background: var(--hy-dialog-bg-1);" class="flex items-center justify-center">
55
55
  </div>`;const R=c.marker(m.value,[M.lat,M.lng],{icon:U,zIndexOffset:10,iconAnchor:[9,18]});c.markerAddTo(m.value,R),_.value.push(R)});const F=c.polyline(m.value,L.map(M=>[M.lat,M.lng]),{width:4,color:"#5E9DB4",opacity:1});y.value.push(F)}function S(){p&&k.value&&e.nextTick(async()=>{const L=[a.value[0].lat,a.value[0].lng];m.value=await c.map("electronicPatrolDetailsMap",{maxZoom:f.maxZoom||18,minZoom:f.minZoom||5,zoom:f.zoom||13,center:L,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:d,layerType:f.satelliteMap}),m.value.on("complete",()=>{console.log("加载完成"),b()})})}function V(L){u.value.taskExampleFn(L)}function $(L){N.value.show({recordId:L})}async function h(){const L=await u1({id:l.value});L.code===200&&(n.value=L.data||{},t.value=n.value.deviceUser||{})}async function g(){const L=await h1({id:l.value});if(L.code===200){const j=L.data||[];a.value=j.map((F,M)=>(M!==j.length-1&&(F.hadCheckv2=j[M+1].hadCheck),F))}}async function C(){const L=await _1({id:l.value});if(L.code===200){s.value=L.data||{};const j=s.value.pointList;o.value=j.map((F,M)=>{if(M!==j.length-1){const z=j[M+1].checkState;z===1?F.backgroundName="hy-success":z===2?F.backgroundName="hy-danger":F.backgroundName="hy-text-secondary"}return F})}}function E(){m.value&&m.value.setFitView()}function D(L){r.value=L}function T(L){if(!L)return Se.error(`id ${x("theParametersAreWrongAndItFailsToOpen")}`);l.value=L,a.value=[],o.value=[],s.value={},n.value={},t.value={},D("pointTrail"),h().then(()=>{i.value=!0,g().then(()=>{S()})}),C()}function B(){i.value=!1}return{$t:x,dialogVisible:i,map:m,markerList:_,polylineList:y,viewTaskExampleRef:u,submissionFormRef:N,deviceUser:t,form:n,pointList:o,pointTrailList:a,taskExecute:s,taskId:l,abnormalState:r,markerClickFn:w,addMarker:b,initMap:S,viewTaskExampleShow:V,submissionFormShow:$,selectFn:h,pointTrailFn:g,deviceSctTaskExecute:C,setFitView:E,abnormalStateFn:D,show:T,onClose:B,tasklatAndlngType:k,isShowMap:p}}const gn=t=>(e.pushScopeId("data-v-c41097d4"),t=t(),e.popScopeId(),t),YV={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},GV={class:"absolute right-[12px] top-[12px]"},qV={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg relative z-10"},KV={class:"dialog_body"},XV={class:"ovh centerBox overflow-hidden flex items-center justify-center"},JV={class:"r-f navigation flex"},ZV={class:"progress_box centerBox fs_12 text-[12px] flex justify-center items-center"},QV={key:0,class:"c_dangerv2 text-hy-danger"},vV={key:1,class:"c_success text-hy-success"},e$={key:2,class:"c_9DA7B2 text-hy-text-secondary"},t$={key:3,class:"c_theme text-hy-text-primary"},n$={style:{width:"108px"},class:"plr_10 p-[0_10px]"},o$={class:"c_theme text-hy-text-primary"},a$={style:{height:"500px"},class:"fs_12 lh_20 text-[12px] leading-[20px]"},s$={class:"h_100vh r-f details flex h-full"},l$={class:"taskDetails fs_12 lh_20 flex-shrink text-[12px] leading-[20px]"},r$={class:"c_dangerv2 fw_600 fs_16 mb_10 text-hy-danger font-[600] text-[16px] mb-[10px]"},i$={key:0,class:"mb_10 mb-[10px]"},c$={class:"c_9DA7B2 text-hy-text-secondary"},d$=["innerHTML"],p$={class:"mb_10 mb-[10px]"},f$={class:"c_9DA7B2 text-hy-text-secondary"},m$={class:"mb_10 mb-[10px]"},h$={class:"c_9DA7B2 text-hy-text-secondary"},u$={class:"mb_10 mb-[10px]"},_$={class:"c_9DA7B2 text-hy-text-secondary"},g$={key:1,class:"mb_10 mb-[10px]"},y$={class:"c_9DA7B2 text-hy-text-secondary"},x$={class:"f-g h_100vh c-f flex flex-col h-full flex-grow w-0",style:{"border-radius":"6px",background:"var(--hy-dialog-bg-4)"}},k$={class:"fs_16 h_50 lh_50 pl_20 text-[16px] h-[50px] leading-[50px] pl-[20px]"},N$={class:"pos_r pl_10 relative pl-[10px]"},b$=gn(()=>e.createElementVNode("span",{class:"line"},null,-1)),C$={style:{"flex-grow":"1"},class:"centerBox flex items-center justify-center"},w$={class:"c_9DA7B2 tac lh_30 text-hy-text-secondary text-center leading-[30px]"},E$={class:"centerBox mb_10 mb-[10px] flex justify-center items-center"},S$={class:"c_fff fs_14 text-hy-text-main text-[14px]"},T$={class:"centerBox flex items-center justify-center"},D$={style:{"margin-left":"6px"}},V$={class:"r-f flex"},$$=gn(()=>e.createElementVNode("p",{class:"mlr_10 linev2 m-[0_10px]"},null,-1)),B$={class:"ecutionRecord"},A$={class:"flex_vertically_center pos_r relative flex items-center"},I$={class:"flex_vertically_center flex items-center"},L$={class:"mr_10 fs_14 mr-[10px] text-[14px]"},F$={key:0,class:"mr_10 status status_theme mr-[10px]"},O$={key:1,class:"mr_10 status mr-[10px]"},R$={key:2,class:"mr_10 status status_success mr-[10px]"},P$={key:3,class:"mr_10 status status_dangerv2 mr-[10px]"},M$={key:4,class:"mr_10 status status_dangerv2 mr-[10px]"},U$={key:5,class:"mr_10 status status_dangerv2 mr-[10px]"},z$={key:6,class:"mr_10 status status_success mr-[10px]"},W$=gn(()=>e.createElementVNode("p",{class:"f-g w-0 flex-grow",style:{background:"var(--hy-dialog-bg-5)",height:"1px",margin:"0 16px"}},null,-1)),j$={class:"c_9DA7B2 fw_600 text-hy-text-secondary font-[600]"},H$={class:"pointTrail r-f h_100vh flex h-full"},Y$={class:"pointTrailList c_9DA7B2 text-hy-text-secondary"},G$=["onClick"],q$={class:"c_fff lh_30 pos_r text-hy-text-main leading-[30px] relative"},K$={class:"over_one_line truncate"},X$={key:1,class:"indexBox indexv2Box"},J$={class:"over_one_line truncate"},Z$={class:"pos_r relative"},Q$=gn(()=>e.createElementVNode("span",{class:"indexBox indexv2Box"},null,-1)),v$={key:0},e2={key:1,class:"text-auxiliary text-hy-text-secondary"},t2={class:"pos_r relative"},n2=gn(()=>e.createElementVNode("span",{class:"indexBox indexv2Box"},null,-1)),o2={class:"over_one_line truncate"},a2={class:"f-g flex-grow w-0 h-full rounded ml-4"},s2={key:0,class:"p-2 box-border w-full h-full rounded bg-hy-dialog-bg-2"},l2={key:1,id:"electronicPatrolDetailsMap",class:"w-full h-full"},r2={key:0,class:"p-2 box-border w-full h-full rounded bg-hy-dialog-bg-2 flex items-center justify-center"},i2={class:"flex flex-col items-center justify-center text-hy-text-secondary"},c2={class:"mt_10 mt-[10px]"},Br=be(e.defineComponent({__name:"electronic-patrol-detail",props:{draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const{$t:o,show:a,dialogVisible:s,abnormalState:l,onClose:r,abnormalStateFn:i,taskExecute:c,form:p,deviceUser:d,pointList:f,submissionFormShow:m,viewTaskExampleShow:_,pointTrailList:y,markerClickFn:u,tasklatAndlngType:N,viewTaskExampleRef:k,submissionFormRef:w,isShowMap:b}=HV();return n({show:a}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-progress"),g=e.resolveComponent("el-button"),C=e.resolveComponent("el-tooltip"),E=e.resolveComponent("el-dialog"),D=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(E,{modelValue:e.unref(s),"onUpdate:modelValue":V[3]||(V[3]=T=>e.isRef(s)?s.value=T:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"1000px",modal:!S.draggable,draggable:S.draggable,"modal-class":S.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",YV,[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("patrol")),1),e.createElementVNode("div",GV,[e.createVNode($,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(r),["stop"])},null,8,["onClick"])])])),[[D]])]),default:e.withCtx(()=>[e.createElementVNode("div",qV,[e.createElementVNode("div",KV,[e.createElementVNode("div",XV,[e.createElementVNode("ul",JV,[e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select cursor-pointer",{selectBox:e.unref(l)==="details"}]),onClick:V[0]||(V[0]=T=>e.unref(i)("details"))},e.toDisplayString(e.unref(o)("inspectionDetails")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(l)==="ecutionRecord"}]),onClick:V[1]||(V[1]=T=>e.unref(i)("ecutionRecord"))},e.toDisplayString(e.unref(o)("implementation")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(l)==="pointTrail"}]),onClick:V[2]||(V[2]=T=>e.unref(i)("pointTrail"))},e.toDisplayString(e.unref(o)("inspectionTrajectory")),3)])]),e.withDirectives(e.createElementVNode("div",ZV,[e.unref(c).finishState===0?(e.openBlock(),e.createElementBlock("span",QV,e.toDisplayString(e.unref(o)("unfinished")),1)):e.unref(c).finishState===1?(e.openBlock(),e.createElementBlock("span",vV,e.toDisplayString(e.unref(o)("hasBeenCompleted")),1)):e.unref(c).finishState===2?(e.openBlock(),e.createElementBlock("span",e$,e.toDisplayString(e.unref(o)("notPerformed")),1)):e.unref(c).finishState===3?(e.openBlock(),e.createElementBlock("span",t$,e.toDisplayString(e.unref(o)("execute")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",n$,[e.createVNode(h,{class:e.normalizeClass({"progress-bar_outer":e.unref(c).taskProgress!==100}),color:"var(--hy-success)","text-inside":!0,"stroke-width":16,percentage:e.unref(c).taskProgress},null,8,["class","percentage"])]),e.createElementVNode("span",o$,e.toDisplayString(e.unref(c).finishNum||0)+"/"+e.toDisplayString(e.unref(c).totalNum||0),1)],512),[[e.vShow,e.unref(l)!=="details"]]),e.createElementVNode("div",a$,[e.withDirectives(e.createElementVNode("div",s$,[e.createElementVNode("div",l$,[e.createElementVNode("p",r$,e.toDisplayString(e.unref(p).taskName),1),e.unref(p).taskInfo?(e.openBlock(),e.createElementBlock("div",i$,[e.createElementVNode("p",c$,e.toDisplayString(e.unref(o)("taskDescription")),1),e.createElementVNode("p",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(p).taskInfo},null,8,d$)])):e.createCommentVNode("",!0),e.createElementVNode("div",p$,[e.createElementVNode("p",f$,e.toDisplayString(e.unref(o)("inspectionType")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(p).taskType===1?e.unref(o)("ordinaryInspection"):e.unref(o)("electronicInspection")),1)]),e.createElementVNode("div",m$,[e.createElementVNode("p",h$,e.toDisplayString(e.unref(o)("executionTime")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(p).executeDay),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(p).startTime)+" ~ "+e.toDisplayString(e.unref(p).endTime),1)]),e.createElementVNode("div",u$,[e.createElementVNode("p",_$,e.toDisplayString(e.unref(o)("implementRoute")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(p).lineName),1)]),e.unref(p).useTime?(e.openBlock(),e.createElementBlock("div",g$,[e.createElementVNode("p",y$,e.toDisplayString(e.unref(o)("duration")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(p).useTime)+e.toDisplayString(e.unref(o)("minute")),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",x$,[e.createElementVNode("div",k$,[e.createElementVNode("span",N$,[b$,e.createTextVNode(" "+e.toDisplayString(e.unref(o)("executiveInformation")),1)])]),e.createElementVNode("div",C$,[e.createElementVNode("div",w$,[e.createElementVNode("div",E$,[e.createVNode(xt,e.mergeProps({class:"w-[54px] h-[54px]"},{onlineState:!0}),null,16)]),e.createElementVNode("div",S$,e.toDisplayString(e.unref(d).name),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(d).orgName),1),e.createElementVNode("div",T$,[e.createVNode($,{name:"base-vehicle-electric-arc","class-name":"w-[16px] h-[16px]"}),e.createElementVNode("span",D$,e.toDisplayString(e.unref(d).phone),1)]),e.createElementVNode("div",V$,[e.createElementVNode("div",null,e.toDisplayString(e.unref(o)("shortNumber"))+e.toDisplayString(e.unref(d).jobNum),1),$$,e.createElementVNode("div",null,e.toDisplayString(e.unref(o)("jobNumber"))+e.toDisplayString(e.unref(d).serialNum),1)])])])])],512),[[e.vShow,e.unref(l)==="details"]]),e.withDirectives(e.createElementVNode("ul",B$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),(T,B)=>(e.openBlock(),e.createElementBlock("li",{key:B},[T.backgroundName?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`background: var(--${T.backgroundName});`),class:"line_box"},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",A$,[e.createElementVNode("div",{class:e.normalizeClass(["indexBox centerBox flex items-center justify-center",{indexBox_success:T.checkState===1,indexBox_dangerv2:T.checkState===2}])},[e.createElementVNode("p",{class:e.normalizeClass([`color_${T.checkState}`,"over_one_line truncate"])},e.toDisplayString(B+1),3)],2),e.createElementVNode("div",I$,[e.createElementVNode("span",L$,e.toDisplayString(T.pointName),1),T.hadCheck===1?(e.openBlock(),e.createElementBlock("span",F$,e.toDisplayString(e.unref(o)("haveBeenInspected")),1)):(e.openBlock(),e.createElementBlock("span",O$,e.toDisplayString(e.unref(o)("unpaidInspection")),1)),T.checkState===1?(e.openBlock(),e.createElementBlock("span",R$,e.toDisplayString(e.unref(o)("normal")),1)):T.checkState===2?(e.openBlock(),e.createElementBlock("span",P$,e.toDisplayString(e.unref(o)("abnormal")),1)):e.createCommentVNode("",!0),T.dealState===1&&T.checkState===2?(e.openBlock(),e.createElementBlock("span",M$,e.toDisplayString(e.unref(o)("pending")),1)):T.dealState===2&&T.checkState===2?(e.openBlock(),e.createElementBlock("span",U$,e.toDisplayString(e.unref(o)("processing")),1)):T.dealState===3&&T.checkState===2?(e.openBlock(),e.createElementBlock("span",z$,e.toDisplayString(e.unref(o)("solved")),1)):e.createCommentVNode("",!0)]),W$,e.createElementVNode("div",null,[T.recordId?(e.openBlock(),e.createBlock(g,{key:0,class:"button_function",onClick:L=>e.unref(m)(T.recordId)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("viewForm")),1)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),T.taskExample&&T.taskExample.exampleName?(e.openBlock(),e.createBlock(g,{key:1,class:"button_default",onClick:L=>e.unref(_)(T.taskExample)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("missionExample")),1)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)])]),e.createElementVNode("p",j$,e.toDisplayString(T.executeDtm),1)]))),128))],512),[[e.vShow,e.unref(l)==="ecutionRecord"]]),e.withDirectives(e.createElementVNode("div",H$,[e.createElementVNode("ul",Y$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),(T,B)=>(e.openBlock(),e.createElementBlock("li",{key:`${B}pointTrailList`,class:"clickBox",onClick:L=>e.unref(u)(T)},[e.createElementVNode("div",q$,[T.hadCheck===1?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([T.checkState===1?"indexBox_success":"indexBox_dangerv2","indexBox centerBox flex items-center justify-center"])},[e.createElementVNode("p",K$,e.toDisplayString(B+1),1)],2)):(e.openBlock(),e.createElementBlock("span",X$)),e.createElementVNode("div",J$,e.toDisplayString(T.pointName),1)]),e.createElementVNode("div",Z$,[Q$,T.lng&&T.lat?(e.openBlock(),e.createElementBlock("span",v$,e.toDisplayString(T.lng)+","+e.toDisplayString(T.lat),1)):(e.openBlock(),e.createElementBlock("span",e2,e.toDisplayString(e.unref(o)("notSetUpLatitudeAndLongitude")),1))]),T.address?(e.openBlock(),e.createBlock(C,{key:0,class:"item",effect:"dark",content:T.address,placement:"bottom-start"},{default:e.withCtx(()=>[e.createElementVNode("div",t2,[n2,e.createElementVNode("div",o2,e.toDisplayString(T.address),1)])]),_:2},1032,["content"])):e.createCommentVNode("",!0)],8,G$))),128))]),e.createElementVNode("div",a2,[e.unref(b)?(e.openBlock(),e.createElementBlock("div",l2,[e.unref(N)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",r2,[e.createElementVNode("div",i2,[e.createVNode($,{name:"sys-icon-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",c2,e.toDisplayString(e.unref(o)("noSpecificAddressIsSetInThisInspectionTask")),1)])]))])):(e.openBlock(),e.createElementBlock("div",s2,[e.createVNode(Gt,{class:"!bg-hy-dialog-bg-3"})]))])],512),[[e.vShow,e.unref(l)==="pointTrail"]])]),e.createVNode(Vr,{ref_key:"submissionFormRef",ref:w,"form-type":2,draggable:S.draggable},null,8,["draggable"]),e.createVNode($r,{ref_key:"viewTaskExampleRef",ref:k,controller:"scrollCheck/scExample",draggable:S.draggable},null,8,["draggable"])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-c41097d4"]]);function d2({emit:t,props:n}){const o=e.ref(null),a=e.ref(null),s=e.ref(!0),l=e.ref(!1),r=e.ref(!0),i=e.ref(""),c=e.ref([]),p=e.ref([]),d=e.ref([]),f=e.ref([]),m=e.ref([]),_=e.ref([]),y=e.ref(null),u=e.ref(null),N=e.ref(),k=e.computed(()=>_.value&&_.value.length?_.value:n.selectedByDefault&&n.selectedByDefault.length?n.selectedByDefault:[]);function w(C){return new Promise((E,D)=>{i.value="",y.value=E,_.value=C||[],l.value=!0,o.value=null,r.value=!0})}function b(){m.value.length?(y.value(m.value),t("on-submit",m.value),l.value=!1):Se.error(x("pleaseSelectPersonnel"))}function S(){l.value=!1}function V(){u.value&&u.value.abort(),u.value=new AbortController}async function $(){const C=await u_({showDevice:!1,showGroup:!1,isDeviceUser:n.isDeviceUser||null,isPlatformUser:n.isPlatformUser||null,...n.requestParams});if(C.code===200)return C.data}function h(C){m.value=C,t("on-check-tree",C)}function g(C){console.log(C.selectedDataList),m.value=C.selectedDataList}return{$t:x,treeHeight:o,orgGroupId:a,checked:s,dialogVisible:l,loading:r,filterValue:i,dataList:c,departmentList:p,orgTreeDeviceList:d,disableSelection:f,selectDeviceUserList:m,selectedByDefaultv2:_,successfulCallback:y,abortController:u,personnelTreeRef:N,initSelectedDeviceList:k,show:w,onSubmit:b,onClose:S,initAbortController:V,getData:$,onCheckTree:h,onSelectedData:g}}const p2={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},f2={class:"absolute right-[12px] top-[12px]"},m2={class:"dialog_body percent-100 relative z-10",style:{"box-sizing":"border-box"}},h2={class:"h-[500px]"},u2={class:"mt-[20px] flex justify-center"},_2=be(e.defineComponent({__name:"select-personnel",props:{selectedByDefault:{default:()=>[]},defaultGetData:{type:Boolean,default:!1},isDeviceUser:{default:null},isPlatformUser:{default:null},requestParams:{default:{}},stylePadding:{default:"padding: 10px 14px 12px;"},deviceList:{default:()=>[]},showCheckbox:{type:Boolean,default:!0},showSinglebox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1}},emits:["on-submit","on-check-tree"],setup(t,{expose:n,emit:o}){const a=t,s=o,{$t:l,dialogVisible:r,filterValue:i,abortController:c,onClose:p,getData:d,onSelectedData:f,onSubmit:m,show:_,selectedByDefaultv2:y}=d2({emit:s,props:a});return e.watch(()=>i.value,u=>{i.value=u.replace(/\s/g,"")}),e.onUnmounted(()=>{c.value&&c.value.abort()}),n({show:_}),(u,N)=>{const k=e.resolveComponent("svg-icon"),w=e.resolveComponent("el-button"),b=e.resolveComponent("el-dialog"),S=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(b,{modelValue:e.unref(r),"onUpdate:modelValue":N[0]||(N[0]=V=>e.isRef(r)?r.value=V:null),"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0,"show-close":!1,class:"dialog_clsss","custom-class":"w-[460px]",modal:!u.draggable,draggable:u.draggable,"modal-class":u.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",p2,[e.createElementVNode("span",null,e.toDisplayString(e.unref(l)("choicePersonnel")),1),e.createElementVNode("div",f2,[e.createVNode(k,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(p),["stop"])},null,8,["onClick"])])])),[[S]])]),default:e.withCtx(()=>[e.createElementVNode("div",m2,[e.createElementVNode("div",h2,[e.createVNode(xt,{"get-data":e.unref(d),"show-checkbox":!0,"parent-checkbox":!0,"default-checked-list":e.unref(y),onOnSelectedData:e.unref(f)},null,8,["get-data","default-checked-list","onOnSelectedData"])]),e.createElementVNode("div",u2,[e.createVNode(w,{class:"min-w-[100px]",type:"primary",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("closure")),1)]),_:1},8,["onClick"]),e.createVNode(w,{class:"min-w-[100px]",onClick:e.unref(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("keep")),1)]),_:1},8,["onClick"])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-72fb9883"]]);function g2({emit:t}){const n=e.ref([]),o=(D,T,B)=>{n.value.length?B():B(new Error(x("pleaseSelectExecutives")))},a={taskName:[{required:!0,message:x("pleaseEnterTheTaskName"),trigger:"blur"}],taskInfo:[{required:!0,message:x("pleaseEnterTheTaskDescription"),trigger:"blur"}],assignUserList:[{validator:o,trigger:"change"}]},s=e.ref(null),l=e.ref([]),r=e.ref(null),i=e.ref(null),c=e.ref(!1),p=e.ref({taskName:null,taskInfo:null}),d=[{label:x("deviceInformation"),width:"200px",customSlot:"userInformation",type:"customSlot"},{label:x("equipmentType"),type:"customSlot",customSlot:"deviceType"},{label:x("deviceModel"),prop:"prodModel"},{label:x("affiliatedDepartment"),prop:"orgName"}],f=e.ref([]),m=e.ref([]),_=e.ref(),y=e.ref(),u=e.ref(),N=e.ref();function k(D){return new Promise((T,B)=>{D&&(r.value=T,i.value=D,p.value={taskName:null,taskInfo:null},l.value=[],n.value=[],_.value&&_.value.resetFields(),c.value=!0)})}function w(){_.value.validate(async D=>{if(D){const T=n.value.map(L=>({deviceUserId:L.id}));(await x1({...p.value,recordId:i.value,deviceUserList:T})).code===200&&(r.value&&r.value(),t("on-submit"),c.value=!1)}})}function b(D=[]){n.value=D,e.nextTick(()=>{_.value.validateField("assignUserList")}),V()}function S(){y.value.show(n.value).then(D=>{b(D)})}function V(){if(n.value&&n.value.length){const D=[];n.value.forEach(T=>{const B=D.findIndex(L=>L.orgId===T.orgId);B===-1?D.push({orgName:T.orgName,orgId:T.orgId,deviceUserList:[{...T}]}):D[B].deviceUserList.push({...T})}),l.value=D}else l.value=[]}function $(D,T){const B=n.value.findIndex(L=>L.orgId===D.orgId&&L.id===T.id);B!==-1&&(n.value.splice(B,1),V())}function h(){m.value.forEach((D,T)=>{const B=f.value.findIndex(L=>L.deviceId===D.deviceId);B!==-1&&f.value.splice(B,1)}),e.nextTick(()=>{m.value=[],u.value.clearSelection()})}function g(D){m.value=D}function C(){N.value.show([...f.value],D=>{f.value=[...D],u.value.customDataSuccessFn(f.value),m.value=[]})}function E(){c.value=!1,t("on-close"),p.value={taskName:null,taskInfo:null}}return{$t:x,form:p,formRef:_,rules:a,selectPersonnelRef:y,selectList:m,dialogVisible:c,tableData:l,tableColumns:d,assignUserList:n,activeNames:s,deviceIdList:f,personnelFn:V,personnelDeleteFn:$,selectPersonnelShow:S,onSubmit:w,show:k,deleteFn:h,onSelectCheckbox:g,selectDeviceTableShow:C,onClose:E,assignUserListFn:b}}const da=t=>(e.pushScopeId("data-v-07e4e3ab"),t=t(),e.popScopeId(),t),y2={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold z-[1] font-['Helvetica'] bg-hy-dialog-bg-1"},x2={class:"absolute right-[12px] top-[12px]"},k2={class:"deleteBox c_fff handlingException text-hy-text-main bg-hy-dialog-bg relative z-10"},N2={class:"dialog_body"},b2={class:"pb_20 pb-[20px]"},C2={class:"requiredTitle"},w2=da(()=>e.createElementVNode("i",null,"*",-1)),E2={class:"requiredTitle"},S2=da(()=>e.createElementVNode("i",null,"*",-1)),T2={class:"w-full"},D2={class:"r-f flex",style:{"justify-content":"space-between"}},V2={class:"requiredTitle"},$2=da(()=>e.createElementVNode("i",null,"*",-1)),B2={class:"fs_12 text-[12px]"},A2={style:{height:"300px"}},I2={key:0,class:"mt_10 assignUserListBox mt-[10px]"},L2={class:"personnelTitle over_one_line fs_14 c_fff truncate text-[14px] text-hy-text-main"},F2={class:"fs_12 text-[12px]"},O2={class:"c_4477FF text-hy-text-primary"},R2={class:"fs_12 r-f personnelItem_box flex text-[12px]"},P2={class:"c_9DA7B2 text-hy-text-secondary"},M2=["onClick"],U2={key:1,class:"noTaskSelected centerBox c_9DA7B2 mt_10 fs_12 h_100vh flex items-center justify-center text-hy-text-secondary mt-[10px] text-[12px] h-full"},z2={class:"tac text-center"},W2={class:"mt_10 mt-[10px]"},j2={class:"operator-button centerBox mt_20 flex justify-center items-center mt-[20px]"},H2=be(e.defineComponent({__name:"handling-exception",props:{draggable:{type:Boolean,default:!1}},emits:["on-close"],setup(t,{expose:n,emit:o}){const a=o,{$t:s,show:l,dialogVisible:r,onClose:i,form:c,formRef:p,rules:d,selectPersonnelShow:f,assignUserList:m,assignUserListFn:_,activeNames:y,tableData:u,personnelDeleteFn:N,onSubmit:k,selectPersonnelRef:w}=g2({emit:a});return n({show:l}),(b,S)=>{const V=e.resolveComponent("svg-icon"),$=e.resolveComponent("el-input"),h=e.resolveComponent("el-form-item"),g=e.resolveComponent("el-col"),C=e.resolveComponent("el-button"),E=e.resolveComponent("el-collapse-item"),D=e.resolveComponent("el-collapse"),T=e.resolveComponent("el-row"),B=e.resolveComponent("el-form"),L=e.resolveComponent("el-dialog"),j=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(L,{modelValue:e.unref(r),"onUpdate:modelValue":S[4]||(S[4]=F=>e.isRef(r)?r.value=F:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"860px",modal:!b.draggable,draggable:b.draggable,"modal-class":b.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",y2,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("abnormalTreatment")),1),e.createElementVNode("div",x2,[e.createVNode(V,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(i),["stop"])},null,8,["onClick"])])])),[[j]])]),default:e.withCtx(()=>[e.createElementVNode("div",k2,[e.createElementVNode("div",N2,[e.createElementVNode("div",b2,[e.createVNode(B,{ref_key:"formRef",ref:p,"label-position":"top",model:e.unref(c),rules:e.unref(d),"label-width":"0px"},{default:e.withCtx(()=>[e.createVNode(T,{gutter:30},{default:e.withCtx(()=>[e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createVNode(h,{prop:"taskName"},{default:e.withCtx(()=>[e.createElementVNode("div",C2,[e.createTextVNode(e.toDisplayString(e.unref(s)("abnormalTask")),1),w2]),e.createVNode($,{modelValue:e.unref(c).taskName,"onUpdate:modelValue":S[0]||(S[0]=F=>e.unref(c).taskName=F),"enter-the-mumber":"",maxlength:"20","show-word-limit":"",placeholder:e.unref(s)("pleaseEnterTheTaskName"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})]),_:1}),e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createVNode(h,{prop:"taskInfo"},{default:e.withCtx(()=>[e.createElementVNode("div",E2,[e.createTextVNode(e.toDisplayString(e.unref(s)("taskDescription")),1),S2]),e.createVNode($,{modelValue:e.unref(c).taskInfo,"onUpdate:modelValue":S[1]||(S[1]=F=>e.unref(c).taskInfo=F),type:"textarea",resize:"none",autosize:{minRows:2,maxRows:2},placeholder:e.unref(s)("pleaseEnterTheTaskDescription")},null,8,["modelValue","placeholder"])]),_:1})]),_:1}),e.createVNode(g,{span:24},{default:e.withCtx(()=>[e.createVNode(h,{prop:"assignUserList"},{default:e.withCtx(()=>[e.createElementVNode("div",T2,[e.createElementVNode("div",D2,[e.createElementVNode("div",V2,[e.createTextVNode(e.toDisplayString(e.unref(s)("executiveStaff")),1),$2]),e.createElementVNode("div",null,[e.createVNode(C,{class:"button_function",onClick:e.unref(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("choicePersonnel")),1)]),_:1},8,["onClick"]),e.unref(m).length?(e.openBlock(),e.createBlock(C,{key:0,class:"button_delete",onClick:S[2]||(S[2]=F=>e.unref(_)([]))},{default:e.withCtx(()=>[e.createElementVNode("span",B2,e.toDisplayString(e.unref(s)("empty")),1)]),_:1})):e.createCommentVNode("",!0)])]),e.createElementVNode("div",A2,[e.unref(m).length?(e.openBlock(),e.createElementBlock("div",I2,[e.createVNode(D,{modelValue:e.unref(y),"onUpdate:modelValue":S[3]||(S[3]=F=>e.isRef(y)?y.value=F:null),accordion:"",class:"collapse-item__header_darkColor"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(F,M)=>(e.openBlock(),e.createBlock(E,{key:`${M}personnel`,class:"personnelBox",name:F.orgId},{title:e.withCtx(()=>[e.createElementVNode("div",L2,[e.createTextVNode(e.toDisplayString(F.orgName)+" ",1),e.createElementVNode("span",F2,[e.createElementVNode("span",O2,e.toDisplayString(F.deviceUserList.length),1),e.createTextVNode(e.toDisplayString(e.unref(s)("people")),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",R2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.deviceUserList,(z,U)=>(e.openBlock(),e.createElementBlock("div",{key:`${U}deviceUserList`,class:"personnelItem centerBox flex items-center"},[e.createTextVNode(e.toDisplayString(z.name),1),e.createElementVNode("span",P2,"("+e.toDisplayString(z.jobNum)+")",1),e.createElementVNode("div",{class:"clickBox centerBox flex items-center justify-center cursor-pointer",onClick:R=>e.unref(N)(F,z)},[e.createVNode(V,{name:"base-delete","class-name":"w-[16px] h-[16px]"})],8,M2)]))),128))])]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])])):(e.openBlock(),e.createElementBlock("div",U2,[e.createElementVNode("div",z2,[e.createVNode(V,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",W2,e.toDisplayString(e.unref(s)("pleaseSelectExecutives")),1)])]))])])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),e.createElementVNode("div",j2,[e.createVNode(C,{class:"button_default buttonBox w-[100px]",type:"primary",onClick:e.unref(i)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("closure")),1)]),_:1},8,["onClick"]),e.createVNode(C,{class:"button_function buttonBox w-[100px]",onClick:e.unref(k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("confirm")),1)]),_:1},8,["onClick"])])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24"},{content:e.withCtx(()=>[]),_:1}),e.createVNode(_2,{ref_key:"selectPersonnelRef",ref:w,"request-params":{isDeviceUser:1},draggable:b.draggable},null,8,["draggable"])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-07e4e3ab"]]);function Y2({emit:t}){const n=e.ref([{label:x("personName"),prop:"name"},{label:x("staffNumber"),prop:"jobNum"}]),o=e.ref([{label:x("affiliatedDepartment"),prop:"orgName",headerSlotName:"orgHeader"},{label:x("userInfo"),width:"200px",slotName:"userInformation",type:"customSlot"},{label:x("whetherToReport"),type:"customSlot",headerSlotName:"reportStateHeader",slotName:"reportState"},{label:x("reportTime"),prop:"executeDtm"},{label:x("operate"),slotName:"operator",type:"customSlot",width:"100px"}]),a=e.ref({taskId:null,reportState:null,orgId:null}),s=e.ref(null),l=e.ref({}),r=e.ref({}),i=e.ref(null),{H:c,POI:p,isShowMap:d,layersUrlList:f,mapConfig:m}=Qt(),_=e.shallowRef(null),y=e.ref(null),u=e.ref(!1),N=e.ref(),k=e.ref(),w=e.ref(),b=e.ref();function S(R){N.value.show(R)}function V(R,Y,X){Y[X]=R}function $(R){k.value.show(R)}function h(){l.value.dealState===0||l.value.dealState===1||(w.value?w.value.getTableData():setTimeout(()=>{h()},500))}function g(R){a.value.orgId=R[R.length-1],e.nextTick(()=>{h()})}function C(R){b.value.show(R.id).then(()=>{F().then(()=>{h(),t("on-getData")})})}function E(R){if(R.del===1)return Se.error(x("theFileHasBeenDeletedAndCannotBeViewed-0"));R.fileType===1||R.fileType===2||R.fileType}function D(){d&&e.nextTick(async()=>{let R=[];const Y=Ue.getCache("userInfo");Y.lng&&Y.lat&&(R=[Y.lat,Y.lng]),R.length===0&&(R=null),l.value.lng&&l.value.lat&&(R=[l.value.lat,l.value.lng]),_.value=await c.map("abnormalDetailsMap",{maxZoom:m.maxZoom||18,minZoom:m.minZoom||5,zoom:m.zoom||13,center:R,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:f,layerType:m.satelliteMap}),_.value.on("complete",()=>{console.log("加载完成"),T()})})}function T(){if(l.value.lng&&l.value.lat){console.log(l.value);const R=c.marker(_.value,[l.value.lat,l.value.lng],{icon:`<svg aria-hidden="true" class="svg-icon" style="width: 60px; height: 60px;">
56
- <use data-v-19e5a669="" xlink:href="#icon-marker-abnormal"></use></svg>`,zIndexOffset:10,iconAnchor:[30,60]});c.markerAddTo(_.value,R),R.on("click",()=>{B(l.value)})}}function B(R,Y=18){c.setView(_.value,[R.lat,R.lng],18)}function L(R){s.value=R}async function j(){return new Promise(async(R,Y)=>{const X=await Fl({recordId:i.value});X.code===200&&(r.value=X.data||{},r.value.imageList&&(r.value.imageListV2=r.value.imageList.map(P=>P.filePath)),R(0))})}async function F(){return new Promise(async(R,Y)=>{const X=await y1({id:i.value});if(X.code===200){const P=X.data||{};l.value=P,l.value.id=i.value,a.value.taskId=P.abnormalTaskId,R(0)}})}function M(){_.value=null}function z(R){if(!R)return Se.error(`recordId ${x("theParametersAreWrong")}`);i.value=R,M(),L("details"),a.value={taskId:null,reportState:null,orgId:null},j(),F().then(()=>{u.value=!0,e.nextTick(()=>{D(),h()})})}function U(){u.value=!1}return{$t:x,searchArr:n,tableColumns:o,requestParams:a,abnormalState:s,form:l,deviceReport:r,recordId:i,map:_,marker:y,dialogVisible:u,electronicPatrolDetailsRef:N,submissionFormRef:k,AppTableRef:w,handlingExceptionRef:b,isShowMap:d,taskDetailsShow:S,visibleChange:V,submissionFormShow:$,appTableGetData:h,orgCascaderOnChange:g,handlingExceptionShow:C,clickGroupItem:E,initMap:D,addMarker:T,pantoSomeWhere:B,abnormalStateFn:L,deviceReportFn:j,selectFn:F,emptyMap:M,show:z,onClose:U}}const G2=t=>(e.pushScopeId("data-v-73e74e7a"),t=t(),e.popScopeId(),t),q2={class:"pos_r dialog_header relative text-[18px] bg-hy-dialog-bg-1 text-center p-[20px] font-bold z-[1] font-['Helvetica']"},K2={class:"absolute right-[12px] top-[12px]"},X2={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg relative z-10"},J2={class:"dialog_body"},Z2={class:"ovh centerBox overflow-hidden flex items-center justify-center"},Q2={class:"r-f navigation flex"},v2={style:{height:"500px"},class:"c_fff fs_12 text-hy-text-main text-[12px]"},eB={class:"w_100vh h_100vh r-f details_box w-full h-full flex"},tB={class:"taskDetails lh_20 flex-shrink leading-[20px]"},nB={class:"c_dangerv2 fw_600 fs_16 mb_10 text-hy-danger font-[600] text-[16px] mb-[10px]"},oB={key:0,class:"mb_10 mb-[10px]"},aB={class:"c_9DA7B2 text-hy-text-secondary"},sB=["innerHTML"],lB={class:"mb_10 mb-[10px]"},rB={class:"c_9DA7B2 text-hy-text-secondary"},iB={class:"mb_10 mb-[10px]"},cB={class:"c_9DA7B2 text-hy-text-secondary"},dB={class:"mb_10 mb-[10px]"},pB={class:"c_9DA7B2 text-hy-text-secondary"},fB={class:"mb_10 mb-[10px]"},mB={class:"c_9DA7B2 text-hy-text-secondary"},hB={class:"f-g c-f flex flex-col w-0 flex-grow"},uB={class:"h_40 lh_40 fs_14 h-[40px] leading-[40px] text-[14px]"},_B={class:"title"},gB={class:"w-full h-full relative overflow-hidden",style:{height:"0","flex-grow":"1","border-radius":"6px"}},yB=G2(()=>e.createElementVNode("div",{class:"relative z-[1] w-full h-full"},[e.createElementVNode("div",{id:"abnormalDetailsMap",class:"w_100vh w-full",style:{height:"0","flex-grow":"1","border-radius":"6px"}})],-1)),xB={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},kB={class:"information"},NB={class:"flex_vertically_center flex items-center"},bB={style:{"margin-left":"6px"}},CB={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},wB={class:"flex_vertically_center flex items-center"},EB={style:{"margin-left":"6px"}},SB={key:0,class:"type_box success"},TB={key:1,class:"type_box"},DB={class:"form"},VB={key:0},$B={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},BB={class:"r-f mb_10 flex_vertically_center flex items-center mb-[10px]"},AB={class:"mr_10 label flex-shrink mr-[10px]"},IB={class:"r-f flex_vertically_center flex items-center"},LB={class:"mr_10 label label_answer flex-shrink mr-[10px]"},FB={key:0,class:"c_theme text-hy-text-primary"},OB={key:1,class:"c_9DA7B2 text-hy-text-secondary"},RB={key:1},PB={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},MB={class:"group-item"},UB=["onClick"],zB={key:0,class:"c-f-i group-content r-f flex"},WB={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},jB=["src"],HB={key:1,style:{"flex-grow":"1"}},YB={class:"icon-box c-f-i flex"},GB={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},qB={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},KB={key:0,class:"information-type"},XB={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},JB={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},ZB={key:0,class:"c_9DA7B2 text-hy-text-secondary"},QB={key:1},vB={key:1,class:"c-f-i group-content r-f flex"},eA={style:{"flex-grow":"1"}},tA={class:"icon-box c-f-i flex"},nA={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},oA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},aA={key:0,class:"information-type"},sA={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},lA={key:2,style:{background:"var(--hy-warning)"},class:"information-type font-[600]"},rA={key:0,class:"c_9DA7B2 text-hy-text-secondary"},iA={key:1},cA={key:2,class:"c-f-i group-content r-f flex"},dA={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},pA=["src"],fA={key:1,style:{"flex-grow":"1"}},mA={class:"icon-box c-f-i flex"},hA={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},uA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},_A={key:0,class:"information-type"},gA={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},yA={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},xA={key:0,class:"c_9DA7B2 text-hy-text-secondary"},kA={key:1},NA={key:2},bA={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},CA={class:"group-item"},wA=["onClick"],EA={key:0,class:"c-f-i group-content r-f flex"},SA={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},TA=["src"],DA={key:1,style:{"flex-grow":"1"}},VA={class:"icon-box c-f-i flex"},$A={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},BA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},AA={key:0,class:"information-type"},IA={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},LA={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},FA={key:0,class:"c_9DA7B2 text-hy-text-secondary"},OA={key:1},RA={key:1,class:"c-f-i group-content r-f flex"},PA={style:{"flex-grow":"1"}},MA={class:"icon-box c-f-i flex"},UA={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},zA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},WA={key:0,class:"information-type"},jA={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},HA={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},YA={key:0,class:"c_9DA7B2 text-hy-text-secondary"},GA={key:1},qA={key:2,class:"c-f-i group-content r-f flex"},KA={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},XA=["src"],JA={key:1,style:{"flex-grow":"1"}},ZA={class:"icon-box c-f-i flex"},QA={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},vA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},eI={key:0,class:"information-type"},tI={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},nI={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},oI={key:0,class:"c_9DA7B2 text-hy-text-secondary"},aI={key:1},sI={class:"c-f w_100vh h_100vh handling_box flex flex-col w-full h-full"},lI={key:0,class:"h_100vh centerBox c_9DA7B2 noTaskSelected h-full flex items-center justify-center text-hy-text-secondary"},rI={class:"tac text-center"},iI={class:"mt_10 mt-[10px]"},cI={class:"fs_12 text-[12px]"},dI={key:1},pI={class:"progress_box centerBox fs_12 flex items-center justify-center text-[12px]"},fI={key:0,class:"c_theme text-hy-text-primary"},mI={key:1,class:"c_success text-hy-success"},hI={style:{width:"108px"},class:"plr_10 p-[0_10px]"},uI={class:"c_theme text-hy-text-primary"},_I={key:0,class:"r-f flex",style:{"flex-wrap":"wrap"}},gI={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},yI={key:1,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},xI={key:0,class:"c_theme text-hy-text-primary"},kI={key:1,class:"c_9DA7B2 text-hy-text-secondary"},NI={class:"pos_r relative"},bI={key:0,style:{cursor:"pointer"}},CI=be(e.defineComponent({__name:"abnormal-detail",props:{draggable:{type:Boolean,default:!1}},emits:["on-getData"],setup(t,{expose:n,emit:o}){const a=o,{$t:s,show:l,dialogVisible:r,isShowMap:i,handlingExceptionRef:c,electronicPatrolDetailsRef:p,submissionFormRef:d,onClose:f,abnormalState:m,AppTableRef:_,abnormalStateFn:y,form:u,taskDetailsShow:N,deviceReport:k,clickGroupItem:w,handlingExceptionShow:b,tableColumns:S,searchArr:V,requestParams:$,submissionFormShow:h,orgCascaderOnChange:g,appTableGetData:C,visibleChange:E}=Y2({emit:a});return n({show:l}),(D,T)=>{const B=e.resolveComponent("svg-icon"),L=$t,j=e.resolveComponent("el-icon"),F=e.resolveComponent("el-button"),M=e.resolveComponent("el-progress"),z=e.resolveComponent("el-option"),U=e.resolveComponent("el-select"),R=Bl,Y=e.resolveComponent("el-dialog"),X=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(Y,{modelValue:e.unref(r),"onUpdate:modelValue":T[8]||(T[8]=P=>e.isRef(r)?r.value=P:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"1000px",modal:!D.draggable,draggable:D.draggable,"modal-class":D.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",q2,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("abnormalDetail")),1),e.createElementVNode("div",K2,[e.createVNode(B,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(f),["stop"])},null,8,["onClick"])])])),[[X]])]),default:e.withCtx(()=>[e.createElementVNode("div",X2,[e.createElementVNode("div",J2,[e.createElementVNode("div",Z2,[e.createElementVNode("ul",Q2,[e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(m)==="details"}]),onClick:T[0]||(T[0]=P=>e.unref(y)("details"))},e.toDisplayString(e.unref(s)("abnormalDetails")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(m)==="form"}]),onClick:T[1]||(T[1]=P=>e.unref(y)("form"))},e.toDisplayString(e.unref(s)("abnormalForm")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(m)==="handling"}]),onClick:T[2]||(T[2]=P=>e.unref(y)("handling"))},e.toDisplayString(e.unref(s)("handling")),3)])]),e.createElementVNode("div",v2,[e.withDirectives(e.createElementVNode("div",eB,[e.createElementVNode("div",tB,[e.createElementVNode("p",nB,e.toDisplayString(e.unref(u).taskName),1),e.unref(u).taskInfo?(e.openBlock(),e.createElementBlock("div",oB,[e.createElementVNode("p",aB,e.toDisplayString(e.unref(s)("taskDescription")),1),e.createElementVNode("p",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(u).taskInfo},null,8,sB)])):e.createCommentVNode("",!0),e.createElementVNode("div",lB,[e.createElementVNode("p",rB,e.toDisplayString(e.unref(s)("implementRoute")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).lineName),1)]),e.createElementVNode("div",iB,[e.createElementVNode("p",cB,e.toDisplayString(e.unref(s)("abnormalLocation")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).pointName),1)]),e.createElementVNode("div",dB,[e.createElementVNode("p",pB,e.toDisplayString(e.unref(s)("executionTime")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).executeDtm),1)]),e.createElementVNode("div",fB,[e.createElementVNode("p",mB,e.toDisplayString(e.unref(s)("associatedTask")),1),e.createElementVNode("p",{class:"c_theme flex_vertically_center clickBox css-text-no-select text-hy-text-primary flex items-center cursor-pointer",onClick:T[3]||(T[3]=P=>e.unref(N)(e.unref(u).sourceId))},[e.createElementVNode("span",null,e.toDisplayString(e.unref(u).sourceTaskName),1),e.createVNode(j,{class:"ml-[6px] !text-[14px] !text-hy-text-primary"},{default:e.withCtx(()=>[e.createVNode(L)]),_:1})])])]),e.createElementVNode("div",hB,[e.createElementVNode("div",uB,[e.createElementVNode("span",_B,e.toDisplayString(e.unref(s)("abnormalPosition")),1)]),e.createElementVNode("div",gB,[e.withDirectives(e.createVNode(Gt,{class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(i)]]),yB])]),e.withDirectives(e.createElementVNode("div",xB,[e.createElementVNode("div",kB,[e.createElementVNode("div",NB,[e.createVNode(B,{style:{width:"14px",height:"14px"},name:"base-user-online"}),e.createElementVNode("span",bB,[e.createTextVNode(e.toDisplayString(e.unref(k).name),1),e.unref(k).jobNum?(e.openBlock(),e.createElementBlock("span",CB,"("+e.toDisplayString(e.unref(k).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",wB,[e.createVNode(B,{name:"base-every-day-time","class-name":"w-[16px] h-[16px]"}),e.createElementVNode("span",EB,e.toDisplayString(e.unref(k).executeDtm),1)]),e.unref(k).checkState===1?(e.openBlock(),e.createElementBlock("div",SB,e.toDisplayString(e.unref(s)("normal")),1)):e.unref(k).checkState===2?(e.openBlock(),e.createElementBlock("div",TB,e.toDisplayString(e.unref(s)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",DB,[e.unref(k).formList&&e.unref(k).formList.length?(e.openBlock(),e.createElementBlock("div",VB,[e.createElementVNode("div",$B,e.toDisplayString(e.unref(s)("formContent")),1),e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k).formList,(P,v)=>(e.openBlock(),e.createElementBlock("li",{key:v,class:"border-top ptb_10 p-[10px_0]"},[e.createElementVNode("div",BB,[e.createElementVNode("p",AB,e.toDisplayString(e.unref(s)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(P.optionTitle),1)]),e.createElementVNode("div",IB,[e.createElementVNode("p",LB,e.toDisplayString(e.unref(s)("answer")),1),P.optionValue?(e.openBlock(),e.createElementBlock("span",FB,e.toDisplayString(P.optionValue),1)):(e.openBlock(),e.createElementBlock("span",OB,e.toDisplayString(e.unref(s)("unfilled")),1))])]))),128))])])):e.createCommentVNode("",!0),e.unref(k).imageList&&e.unref(k).imageList.length?(e.openBlock(),e.createElementBlock("div",RB,[e.createElementVNode("div",PB,e.toDisplayString(e.unref(s)("picture")),1),e.createElementVNode("div",MB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k).imageList,P=>(e.openBlock(),e.createElementBlock("div",{key:P.id,onClick:v=>e.unref(w)(P)},[P.fileType===1?(e.openBlock(),e.createElementBlock("div",zB,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.filePath&&P.del!==1?(e.openBlock(),e.createElementBlock("div",WB,[e.createElementVNode("img",{src:P.filePath,class:"h_100vh h-full"},null,8,jB)])):(e.openBlock(),e.createElementBlock("div",HB,[e.createElementVNode("div",YB,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{style:{margin:"0 4px"},name:"menu-image","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",GB,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",qB,[P.type===1?(e.openBlock(),e.createElementBlock("div",KB,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",XB,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",JB," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",ZB,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",QB,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):P.fileType===4?(e.openBlock(),e.createElementBlock("div",vB,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[e.createElementVNode("div",eA,[e.createElementVNode("div",tA,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{name:"menu-micphone","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{style:{"margin-left":"4px"},name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])]),e.createElementVNode("div",nA,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",oA,[P.type===1?(e.openBlock(),e.createElementBlock("div",aA,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",sA,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",lA," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",rA,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",iA,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):P.fileType===2?(e.openBlock(),e.createElementBlock("div",cA,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.screenshot1?(e.openBlock(),e.createElementBlock("div",dA,[e.createElementVNode("img",{src:P.screenshot1,class:"h_100vh h-full"},null,8,pA)])):(e.openBlock(),e.createElementBlock("div",fA,[e.createElementVNode("div",mA,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{style:{margin:"0 4px"},name:"menu-video","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",hA,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",uA,[P.type===1?(e.openBlock(),e.createElementBlock("div",_A,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",gA,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",yA," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",xA,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",kA,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):e.createCommentVNode("",!0)],8,UB))),128))])])):e.createCommentVNode("",!0),e.unref(k).videoList&&e.unref(k).videoList.length?(e.openBlock(),e.createElementBlock("div",NA,[e.createElementVNode("div",bA,e.toDisplayString(e.unref(s)("video")),1),e.createElementVNode("div",CA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k).videoList,P=>(e.openBlock(),e.createElementBlock("div",{key:P.id,onClick:v=>e.unref(w)(P)},[P.fileType===1?(e.openBlock(),e.createElementBlock("div",EA,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.filePath&&P.del!==1?(e.openBlock(),e.createElementBlock("div",SA,[e.createElementVNode("img",{src:P.filePath,class:"h_100vh h-full"},null,8,TA)])):(e.openBlock(),e.createElementBlock("div",DA,[e.createElementVNode("div",VA,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{style:{margin:"0 4px"},name:"menu-image","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",$A,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",BA,[P.type===1?(e.openBlock(),e.createElementBlock("div",AA,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",IA,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",LA," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",FA,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",OA,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):P.fileType===4?(e.openBlock(),e.createElementBlock("div",RA,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[e.createElementVNode("div",PA,[e.createElementVNode("div",MA,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{name:"menu-micphone","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{style:{"margin-left":"4px"},name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])]),e.createElementVNode("div",UA,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",zA,[P.type===1?(e.openBlock(),e.createElementBlock("div",WA,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",jA,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",HA," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",YA,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",GA,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},"svg-name":"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):P.fileType===2?(e.openBlock(),e.createElementBlock("div",qA,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.screenshot1?(e.openBlock(),e.createElementBlock("div",KA,[e.createElementVNode("img",{src:P.screenshot1,class:"h_100vh h-full"},null,8,XA)])):(e.openBlock(),e.createElementBlock("div",JA,[e.createElementVNode("div",ZA,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{style:{margin:"0 4px"},name:"menu-video","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",QA,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",vA,[P.type===1?(e.openBlock(),e.createElementBlock("div",eI,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",tI,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",nI," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",oI,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",aI,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):e.createCommentVNode("",!0)],8,wA))),128))])])):e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(m)==="form"]]),e.withDirectives(e.createElementVNode("div",sI,[e.unref(u).dealState===0||e.unref(u).dealState===1?(e.openBlock(),e.createElementBlock("div",lI,[e.createElementVNode("div",rI,[e.createVNode(B,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",iI,[e.unref(u).dealState===1?(e.openBlock(),e.createBlock(F,{key:0,class:"button_function",onClick:T[4]||(T[4]=P=>e.unref(b)(e.unref(u)))},{default:e.withCtx(()=>[e.createElementVNode("span",cI,e.toDisplayString(e.unref(s)("processedImmediately")),1)]),_:1})):(e.openBlock(),e.createElementBlock("span",dI,e.toDisplayString(e.unref(s)("noNeedToDealWith")),1))])])])):(e.openBlock(),e.createBlock(Yt,{key:1,ref_key:"AppTableRef",ref:_,"column-list":e.unref(S),"search-arr":e.unref(V),"default-get-data":!1,"req-url":"scrollCheck/abnormal/sctUser/page","search-form":e.unref($),height:"100%"},{tableLeft:e.withCtx(()=>[e.createElementVNode("div",pI,[e.unref(u).dealState===2?(e.openBlock(),e.createElementBlock("span",fI,e.toDisplayString(e.unref(s)("execute")),1)):e.unref(u).dealState===3?(e.openBlock(),e.createElementBlock("span",mI,e.toDisplayString(e.unref(s)("completed")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",hI,[e.createVNode(M,{class:e.normalizeClass({"progress-bar_outer":e.unref(u).taskProgress!==100}),"text-inside":!0,"stroke-width":16,status:e.unref(u).taskProgress!==100?"exception":"success",percentage:e.unref(u).taskProgress},null,8,["class","status","percentage"])]),e.createElementVNode("span",uI,e.toDisplayString(e.unref(u).finishNum||0)+"/"+e.toDisplayString(e.unref(u).totalNum||0),1)])]),userInformation:e.withCtx(({row:P})=>[P.name?(e.openBlock(),e.createElementBlock("div",_I,[e.createTextVNode(e.toDisplayString(P.name)+" ",1),P.jobNum?(e.openBlock(),e.createElementBlock("span",gI,"("+e.toDisplayString(P.jobNum)+")",1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",yI," -- "))]),reportState:e.withCtx(({row:P})=>[P.reportState===1?(e.openBlock(),e.createElementBlock("span",xI,e.toDisplayString(e.unref(s)("haveBeenReported")),1)):(e.openBlock(),e.createElementBlock("span",kI,e.toDisplayString(e.unref(s)("notReported")),1))]),operator:e.withCtx(({row:P})=>[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(s)("viewForm"),onClick:v=>e.unref(h)(P)},null,8,["tips","onClick"])]),orgHeader:e.withCtx(({column:P})=>[e.createVNode(Vl,{ref:"orgCascader","content-type":!0,onChange:T[5]||(T[5]=v=>e.unref(g)(v))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P.label),1)]),_:2},1536)]),reportStateHeader:e.withCtx(({column:P})=>[e.createElementVNode("div",NI,[e.createElementVNode("div",{style:e.normalizeStyle([{opacity:P.focusType?1:0,position:P.focusType?"relative":"absolute"},{top:"0",left:"0",right:"0",bottom:"0"}])},[e.createVNode(U,{modelValue:e.unref($).reportState,"onUpdate:modelValue":T[6]||(T[6]=v=>e.unref($).reportState=v),style:{width:"100%"},clearable:"",placeholder:P.label,onChange:T[7]||(T[7]=v=>e.unref(C)()),onVisibleChange:v=>e.unref(E)(v,P,"focusType")},{default:e.withCtx(()=>[e.createVNode(z,{label:e.unref(s)("notReported"),value:0},null,8,["label"]),e.createVNode(z,{label:e.unref(s)("haveBeenReported"),value:1},null,8,["label"])]),_:2},1032,["modelValue","placeholder","onVisibleChange"])],4),P.focusType?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",bI,[e.createVNode(j,null,{default:e.withCtx(()=>[e.createVNode(R)]),_:1}),e.createTextVNode(" "+e.toDisplayString(P.label)+" ",1),e.withDirectives(e.createElementVNode("span",{class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"}," ("+e.toDisplayString(e.unref(s)("reported")),513),[[e.vShow,e.unref($).reportState===1]]),e.withDirectives(e.createElementVNode("span",{class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"}," ("+e.toDisplayString(e.unref(s)("notReported-0")),513),[[e.vShow,e.unref($).reportState===0]])]))])]),_:1},8,["column-list","search-arr","search-form"]))],512),[[e.vShow,e.unref(m)==="handling"]])],512),[[e.vShow,e.unref(m)==="details"]]),e.createVNode(H2,{ref_key:"handlingExceptionRef",ref:c,draggable:D.draggable},null,8,["draggable"]),e.createVNode(Vr,{ref_key:"submissionFormRef",ref:d,draggable:D.draggable},null,8,["draggable"]),e.createVNode(Br,{ref_key:"electronicPatrolDetailsRef",ref:p,draggable:D.draggable},null,8,["draggable"])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-73e74e7a"]]);function wI(){const t=e.ref(!1),n=e.ref(),{H:o,POI:a,isShowMap:s,layersUrlList:l,mapConfig:r}=Qt(),i=e.shallowRef(),c=e.shallowRef();e.ref();const p=e.ref(""),d=[{label:"地理地址",value:1},{label:"部门名称",value:4}];function f({mapRailId:u}){n.value=u,t.value=!0,y()}function m(){t.value=!1}async function _(){p.value=null;const u=await Nr({id:n.value});if(u.code===200){const N=u.data.pointList;p.value=u.data.railName;const k=[];N.forEach(w=>{k.push([w.lat,w.lng])}),c.value=o.polygon(i.value,k,{weight:6,color:"#FF33FF",opacity:.2,fillColor:"#1791fc",fillOpacity:.4}),o.fitBounds(i.value,k)}}function y(){e.nextTick(async()=>{let u=[];const N=Ue.getCache("userInfo");N.lng&&N.lat&&(u=[N.lat,N.lng]),u.length===0&&(u=null),i.value=await o.map("locationArea_container",{maxZoom:r.maxZoom||18,minZoom:r.minZoom||5,zoom:r.zoom||13,center:u,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:l,layerType:r.satelliteMap}),i.value.on("complete",()=>{_()})})}return{dialogVisible:t,show:f,close:m,railName:p,POI:a,map:i,H:o,searchTypes:d}}const EI=t=>(e.pushScopeId("data-v-e3121b24"),t=t(),e.popScopeId(),t),SI={class:"w-full h-[560px] relative p-[10px] box-border"},TI=EI(()=>e.createElementVNode("div",{class:"w-full h-full relative z-[1]",draggable:"false"},[e.createElementVNode("div",{id:"locationArea_container",class:"w-[880px] h-full"})],-1)),DI={class:"absolute top-[20px] right-[20px] w-[300px] z-10"},VI={class:"w-[96%] h-[40px] rounded-[4px] bg-hy-dialog-bg-2 shadow-[0_0_8px_0_var(--hy-dialog-bg-2)] box-border p-[0_20px_0_40px] flex justify-between items-center text-[14px] absolute z-10 bottom-[20px] left-1/2 transform -translate-x-1/2 text-hy-text-main"},$I={class:"flex"},BI={class:"flex justify-center items-center"},AI={style:{"margin-left":"8px"}},II={class:"font-bold"},LI=be(e.defineComponent({__name:"select-location-area",props:{draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const{dialogVisible:o,show:a,close:s,railName:l,POI:r,map:i,H:c,searchTypes:p}=wI();return n({show:a}),(d,f)=>{const m=e.resolveComponent("el-button"),_=e.resolveComponent("svg-icon"),y=e.resolveComponent("el-dialog"),u=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(y,{modelValue:e.unref(o),"onUpdate:modelValue":f[0]||(f[0]=N=>e.isRef(o)?o.value=N:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",top:"10vh",width:"900px",modal:!d.draggable,draggable:d.draggable,"modal-class":d.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",SI,[TI,e.createVNode(m,{class:"w-[80px] absolute top-[20px] left-[20px] z-10",type:"primary",onClick:e.unref(s)},{default:e.withCtx(()=>[e.createTextVNode(" 关闭 ")]),_:1},8,["onClick"]),e.createElementVNode("div",DI,[e.createVNode(oa,{poi:e.unref(r),map:e.unref(i),h:e.unref(c),"search-types":e.unref(p)},null,8,["poi","map","h","search-types"])]),e.createElementVNode("div",VI,[e.createElementVNode("div",$I,[e.createElementVNode("div",null,[e.createElementVNode("span",BI,[e.createVNode(_,{name:"police-situation-ps-around",style:{width:"20px",height:"20px"}}),e.createElementVNode("span",AI,e.toDisplayString(e.unref(x)("currentPositioning")),1)])]),e.createElementVNode("div",II,[e.createElementVNode("span",null,e.toDisplayString(e.unref(l)),1)])])])])]),_:1})),[[u]])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-e3121b24"]]),FI={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},OI=[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m-55.808 536.384l-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"},null,-1)];function RI(t,n){return e.openBlock(),e.createElementBlock("svg",FI,[...OI])}const Ar={name:"ep-success-filled",render:RI},PI={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},MI=[e.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1)];function UI(t,n){return e.openBlock(),e.createElementBlock("svg",PI,[...MI])}const Ir={name:"ep-caret-right",render:UI};function zI({props:t}){const n=e.ref({}),o=e.ref(null),a=e.ref([]),s=e.ref([]),l=e.ref();function r(d){d.del!==1&&(d.fileType===1||d.fileType===2||d.fileType)}function i(d){}function c(d){o.value===d&&s.value.length>1?o.value=null:o.value=d}async function p(){const d=await ca({id:t.taskItemId,viewMode:1});if(d.code===200){const f=d.data||{};if(f.deviceUserList){const _=f.deviceUserList,y=[];_.forEach(u=>{const N=y.findIndex(w=>w.orgId===u.orgId),k=u;k.key=Yn(1),N===-1?y.push({orgName:u.orgName,orgId:u.orgId,deviceUserList:[{...k}]}):y[N].deviceUserList.push({...k})}),s.value=y}else s.value=[];a.value=[],s.value.forEach(_=>{_.deviceUserList&&_.deviceUserList.length&&a.value.push(..._.deviceUserList)});const m=s.value[0];m&&c(m.orgId)}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,dataListRef:l,clickGroupItem:r,selectItemFn:i,activeNameFn:c,taskItemViewFn:p}}const WI={class:"r-f h_100vh flex h-full"},jI={class:"background_box information css-text-no-select"},HI=["onClick"],YI={style:{"margin-left":"4px"}},GI=["onClick"],qI={class:"flex-grow flex w-0"},KI={class:"over_one_line flex-grow w-0 truncate"},XI={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},JI={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},ZI={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},QI={class:"flex_vertically_center mb_10 flex items-center mb-[10px]"},vI={class:"title_box pl_10 pl-[10px]"},eL={class:"c_9DA7B2 text-hy-text-secondary"},tL={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},nL={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},oL={class:"recordList fs_12 text-[12px] overflow-hidden"},aL={class:"actionList c_fff"},sL={key:0,class:"indexBox centerBox flex items-center justify-center"},lL={key:1,class:"indexBoxv2 centerBox"},rL={class:"mediaFileList c_9DA7B2 text-hy-text-secondary"},iL={key:0,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},cL={key:1},dL=["onClick"],pL={class:"fileDel clickBox"},fL={key:1,class:"file clickBox"},mL={key:2,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},hL=be(e.defineComponent({__name:"people-view",props:{taskItemId:{default:"0"}},setup(t,{expose:n}){const o=t,{$t:a,deviceUserList:s,dataListRef:l,dataList:r,activeName:i,taskItemViewFn:c,activeNameFn:p,selectItemFn:d,clickGroupItem:f}=zI({props:o});return e.onMounted(()=>{c()}),n({taskItemViewFn:c}),(m,_)=>{const y=Ir,u=e.resolveComponent("el-icon"),N=$t,k=e.resolveComponent("el-tooltip"),w=Ar;return e.openBlock(),e.createElementBlock("div",WI,[e.createElementVNode("div",jI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(b,S)=>(e.openBlock(),e.createElementBlock("div",{key:`${S}deviceUserList`},[e.createElementVNode("div",{class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:V=>e.unref(p)(b.orgId)},[e.createVNode(u,{style:e.normalizeStyle({transform:b.orgId===e.unref(i)?"rotate(90deg)":"rotate(0deg)"}),class:"!text-[16px] !text-hy-text-primary transition_05"},{default:e.withCtx(()=>[e.createVNode(y)]),_:2},1032,["style"]),e.createElementVNode("span",YI,e.toDisplayString(b.orgName),1)],8,HI),e.createElementVNode("div",{class:"transition_05",style:e.normalizeStyle({overflow:b.orgId===e.unref(i)?"inherit":"hidden",height:b.orgId===e.unref(i)?`${b.deviceUserList.length*40}px`:"0px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.deviceUserList,(V,$)=>(e.openBlock(),e.createElementBlock("div",{key:`${$}device`,class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:h=>e.unref(d)(V)},[e.createElementVNode("div",qI,[e.createElementVNode("div",KI,e.toDisplayString(V.deviceUserName),1),e.createElementVNode("span",XI," ("+e.toDisplayString(V.jobNum)+")",1)]),V.status===0?(e.openBlock(),e.createElementBlock("div",JI,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",ZI,e.toDisplayString(e.unref(a)("finish")),1))],8,GI))),128))],4)]))),128))]),e.createElementVNode("ul",{ref_key:"dataListRef",ref:l,class:"h_100vh content_box h-full"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),b=>(e.openBlock(),e.createElementBlock("li",{key:b.key,ref_for:!0,ref:b.key,class:"ovh"},[e.createElementVNode("div",QI,[e.createElementVNode("div",vI,[e.createTextVNode(e.toDisplayString(b.deviceUserName)+" ",1),e.createElementVNode("span",eL,"("+e.toDisplayString(b.jobNum)+")",1)]),b.status===0?(e.openBlock(),e.createElementBlock("div",tL,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",nL,e.toDisplayString(e.unref(a)("finish")),1))]),e.createElementVNode("ul",oL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.recordList,(S,V)=>(e.openBlock(),e.createElementBlock("li",{key:`${V}recordList`,class:e.normalizeClass([`recordItem_${S.status}`,"background_box mb_10 ovh overflow-hidden mb-[10px]"])},[e.createElementVNode("div",aL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.actionList,($,h)=>(e.openBlock(),e.createElementBlock("div",{key:`${h}actionList`,class:"pos_r flex_vertically_center h_30 relative flex items-center h-[30px]",style:{"padding-left":"28px"}},[h===0?(e.openBlock(),e.createElementBlock("span",sL,e.toDisplayString(V+1),1)):(e.openBlock(),e.createElementBlock("span",lL)),e.createElementVNode("span",null,e.toDisplayString($.actionDetail),1)]))),128))]),e.createElementVNode("div",rL,[S.status===0?(e.openBlock(),e.createElementBlock("div",iL,[e.createVNode(u,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(N)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("unfinishedTask")),1)])):S.status===1&&S.mediaFileList&&S.mediaFileList.length?(e.openBlock(),e.createElementBlock("div",cL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.mediaFileList,($,h)=>(e.openBlock(),e.createElementBlock("div",{key:`${h}mediaFileList`,class:"pos_r flex_vertically_center css-text-no-select mediaFile_item",onClick:g=>e.unref(f)($)},[e.createVNode(u,{class:"!text-hy-success icon_box"},{default:e.withCtx(()=>[e.createVNode(N)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("uploaded")),1),$.del===1?(e.openBlock(),e.createBlock(k,{key:0,class:"item",effect:"dark",content:e.unref(a)("theFileHasBeenDeletedAndCannotBeViewed"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",pL,e.toDisplayString($.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",fL,e.toDisplayString($.fileName),1))],8,dL))),128))])):(e.openBlock(),e.createElementBlock("div",mL,[e.createVNode(u,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(w)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("theTaskHasBeenCompletedWaitingForUploading")),1)]))])],2))),128))])]))),128))],512)])}}}),[["__scopeId","data-v-82696267"]]),uL={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_L=[e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768a384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896a448 448 0 0 1 0 896"},null,-1),e.createElementVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"},null,-1),e.createElementVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"},null,-1)];function gL(t,n){return e.openBlock(),e.createElementBlock("svg",uL,[..._L])}const yL={name:"ep-clock",render:gL};function xL({props:t}){const n=e.ref({}),o=e.ref(null),a=e.ref([]),s=e.ref([]),l=e.ref();function r(p){}function i(p){o.value===p&&s.value.length>1?o.value=null:o.value=p}async function c(){const p=await ca({id:t.taskItemId,viewMode:1});if(p.code===200){const d=p.data||{};if(d.deviceUserList){const m=d.deviceUserList,_=[];m.forEach(y=>{const u=_.findIndex(k=>k.orgId===y.orgId),N=y;if(N.key=Yn(1),y.userReport){const k=y.userReport;N.urTemplateName=k.templateName,N.urSubmitDtm=k.submitDtm,N.urOptionList=k.optionList||[]}u===-1?_.push({orgName:y.orgName,orgId:y.orgId,deviceUserList:[{...N}]}):_[u].deviceUserList.push({...N})}),s.value=_}else s.value=[];a.value=[],s.value.forEach(m=>{m.deviceUserList&&m.deviceUserList.length&&a.value.push(...m.deviceUserList)});const f=s.value[0];f&&i(f.orgId)}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,reportListRef:l,selectItemFn:r,activeNameFn:i,taskItemViewFn:c}}const kL={class:"r-f h_100vh flex h-full"},NL={class:"background_box information css-text-no-select"},bL=["onClick"],CL={style:{"margin-left":"4px"}},wL=["onClick"],EL={class:"flex-grow flex w-0"},SL={class:"over_one_line flex-grow w-0 truncate"},TL={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},DL={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},VL={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},$L={key:0,ref:"reportListRef",class:"f-g reportList w-0 flex-grow"},BL={key:0,class:"background_box h_100vh lh_20 h-full leading-[20px]"},AL={class:"fs_14 plr_20 border-bottom mtb_10 m-[10px_0] p-[0_20px] text-[14px]"},IL={class:"flex_vertically_center flex items-center",style:{"justify-content":"space-between"}},LL={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},FL={class:"c_9DA7B2 r-f lh_30 flex leading-[30px] text-hy-text-secondary",style:{"justify-content":"space-between"}},OL={class:"flex_vertically_center flex items-center"},RL={style:{"margin-left":"4px"}},PL={style:{padding:"0 20px 10px"}},ML={class:"mb_10 r-f mb-[10px] flex"},UL={class:"mr_10 label flex-shrink mr-[10px]"},zL={class:"c_theme r-f flex text-hy-text-primary"},WL={class:"mr_10 label label_answer flex-shrink mr-[10px]"},jL={key:0,class:"c_theme text-hy-text-primary"},HL={key:1,class:"c_theme text-hy-text-primary"},YL={key:1,class:"background_box h_100vh c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary h-full"},GL={class:"fs_14 plr_20 border-bottom text-[14px] p-[0_20px]"},qL={class:"flex_vertically_center lh_40 flex items-center leading-[40px]",style:{"justify-content":"space-between"}},KL={class:"c_9DA7B2 text-hy-text-secondary"},XL={class:"tac ptb_20 p-[20px_0] text-center"},JL={class:"mt_10 mt-[10px]"},ZL={key:0},QL={key:1},vL={key:2,class:"c_success text-hy-success"},eF=be(e.defineComponent({__name:"task-report",props:{taskItemId:{default:"0"}},setup(t,{expose:n}){const o=t,{$t:a,deviceUserList:s,dataList:l,activeName:r,taskItemViewFn:i,activeNameFn:c,selectItemFn:p}=xL({props:o});return e.onMounted(()=>{i()}),n({taskItemViewFn:i}),(d,f)=>{const m=Ir,_=e.resolveComponent("el-icon"),y=yL,u=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",kL,[e.createElementVNode("div",NL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(N,k)=>(e.openBlock(),e.createElementBlock("div",{key:`${k}deviceUserList`},[e.createElementVNode("div",{class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:w=>e.unref(c)(N.orgId)},[e.createVNode(_,{style:e.normalizeStyle({transform:N.orgId===e.unref(r)?"rotate(90deg)":"rotate(0deg)"}),class:"!text-[16px] !text-hy-text-primary transition_05"},{default:e.withCtx(()=>[e.createVNode(m)]),_:2},1032,["style"]),e.createElementVNode("span",CL,e.toDisplayString(N.orgName),1)],8,bL),e.createElementVNode("div",{class:"transition_05",style:e.normalizeStyle({overflow:N.orgId===e.unref(r)?"inherit":"hidden",height:N.orgId===e.unref(r)?`${N.deviceUserList.length*40}px`:"0px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.deviceUserList,(w,b)=>(e.openBlock(),e.createElementBlock("div",{key:`${b}device`,class:"clickBox deviceItem background_box flex_vertically_center flex items-center text-xs",onClick:S=>e.unref(p)(w)},[e.createElementVNode("div",EL,[e.createElementVNode("div",SL,e.toDisplayString(w.deviceUserName),1),e.createElementVNode("span",TL," ("+e.toDisplayString(w.jobNum)+")",1)]),w.taskReportStatus===1?(e.openBlock(),e.createElementBlock("div",DL,e.toDisplayString(e.unref(a)("unfilled")),1)):w.taskReportStatus===2?(e.openBlock(),e.createElementBlock("div",VL,e.toDisplayString(e.unref(a)("haveBeenFilledIn")),1)):e.createCommentVNode("",!0)],8,wL))),128))],4)]))),128))]),e.unref(l)&&e.unref(l).length?(e.openBlock(),e.createElementBlock("div",$L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),N=>(e.openBlock(),e.createElementBlock("div",{key:N.key,ref_for:!0,ref:N.key,class:"background_box mb_10 mb-[10px]"},[N.userReport?(e.openBlock(),e.createElementBlock("div",BL,[e.createElementVNode("div",AL,[e.createElementVNode("div",IL,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(N.deviceUserName)+" ",1),e.createElementVNode("span",LL,"("+e.toDisplayString(N.jobNum)+")",1)]),e.withDirectives(e.createElementVNode("div",{class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},e.toDisplayString(e.unref(a)("unfinished")),513),[[e.vShow,N.status===0]]),e.withDirectives(e.createElementVNode("div",{style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},e.toDisplayString(e.unref(a)("finish")),513),[[e.vShow,N.status===1]])]),e.createElementVNode("div",FL,[e.createElementVNode("div",null,e.toDisplayString(N.urTemplateName),1),e.createElementVNode("div",OL,[e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(y)]),_:1}),e.createElementVNode("span",RL,e.toDisplayString(N.urSubmitDtm),1)])])]),e.createElementVNode("div",PL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.urOptionList,(k,w)=>(e.openBlock(),e.createElementBlock("div",{key:`${w}urOptionList`,class:"reportItem ptb_10 border-bottom p-[10px_0] text-[12px]"},[e.createElementVNode("div",ML,[e.createElementVNode("div",UL,e.toDisplayString(e.unref(a)("ask")),1),e.createTextVNode(" "+e.toDisplayString(k.optionTitle),1)]),e.createElementVNode("div",zL,[e.createElementVNode("div",WL,e.toDisplayString(e.unref(a)("answer")),1),k.optionValue?(e.openBlock(),e.createElementBlock("span",jL,e.toDisplayString(k.optionValue),1)):(e.openBlock(),e.createElementBlock("span",HL,e.toDisplayString(e.unref(a)("none")),1))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",YL,[e.createElementVNode("div",GL,[e.createElementVNode("div",qL,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(N.deviceUserName)+" ",1),e.createElementVNode("span",KL,"("+e.toDisplayString(N.jobNum)+")",1)]),e.withDirectives(e.createElementVNode("div",{class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},e.toDisplayString(e.unref(a)("unfinished")),513),[[e.vShow,N.status===0]]),e.withDirectives(e.createElementVNode("div",{style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},e.toDisplayString(e.unref(a)("finish")),513),[[e.vShow,N.status===1]])])]),e.createElementVNode("div",XL,[e.createVNode(u,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",JL,[N.taskReportStatus===0?(e.openBlock(),e.createElementBlock("span",ZL,e.toDisplayString(e.unref(a)("noNeedToSubmitATaskReport")),1)):N.taskReportStatus===1?(e.openBlock(),e.createElementBlock("span",QL,e.toDisplayString(e.unref(a)("unpackTaskReport")),1)):N.taskReportStatus===2?(e.openBlock(),e.createElementBlock("span",vL,e.toDisplayString(e.unref(a)("submittedTaskReport")),1)):e.createCommentVNode("",!0)])])]))]))),128))],512)):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-6b18d733"]]);function tF({props:t}){const n=e.ref({}),o=e.ref(null),a=e.ref([]),s=e.ref([]),l=e.ref();function r(p){p.del!==1&&(p.fileType===1||p.fileType===2||p.fileType)}function i(p){l.value.offsetTop}async function c(){const p=await ca({id:t.taskItemId,viewMode:2});if(p.code===200){const d=p.data||{};if(d.opList){const f=d.opList||[],m=[];f.forEach(_=>{const y=_.actionList.map(u=>u.actionDetail);m.push({..._,key:_.id,actionDetail:y.toString()})}),a.value=m}else a.value=[]}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,dataListRef:l,clickGroupItem:r,selectItemFn:i,taskItemViewFn:c}}const nF={class:"r-f h_100vh h-full flex"},oF={class:"background_box information css-text-no-select"},aF=["onClick"],sF={class:"r-f f-g flex flex-grow w-0"},lF={class:"indexBox centerBox flex-shrink flex justify-center items-center",style:{left:"4px"}},rF={class:"over_one_line truncate"},iF={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},cF={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},dF={class:"recordList fs_12 text-[12px]"},pF={class:"actionList c_fff text-hy-text-main"},fF={key:0,class:"indexBox centerBox flex justify-center items-center"},mF={key:1,class:"indexBoxv2 centerBox flex justify-center items-center"},hF={class:"mediaFileList"},uF={key:0},_F={class:"flex_vertically_center pos_r relative flex items-center"},gF={class:"c_fff text-hy-text-main"},yF={key:1},xF={class:"flex_vertically_center pos_r relative flex items-center"},kF={class:"c_fff text-hy-text-main"},NF=["onClick"],bF={class:"fileDel clickBox"},CF={key:1,class:"file clickBox"},wF={key:2},EF={class:"flex_vertically_center pos_r relative flex items-center"},SF={class:"c_fff text-hy-text-main"},TF=be(e.defineComponent({__name:"task-view",props:{taskItemId:{default:"0"}},setup(t,{expose:n}){const o=t,{$t:a,taskItemViewFn:s,dataList:l,selectItemFn:r,dataListRef:i,clickGroupItem:c}=tF({props:o});return e.onMounted(()=>{s()}),n({taskItemViewFn:s}),(p,d)=>{const f=$t,m=e.resolveComponent("el-icon"),_=Ar,y=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",nF,[e.createElementVNode("div",oF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(u,N)=>(e.openBlock(),e.createElementBlock("div",{key:`${N}device`,class:"clickBox deviceItem background_box c_9DA7B2 flex_vertically_center pos_r relative flex items-center text-hy-text-secondary",onClick:k=>e.unref(r)(u)},[e.createElementVNode("div",sF,[e.createElementVNode("span",lF,e.toDisplayString(N+1),1),e.createElementVNode("span",rF,e.toDisplayString(u.actionDetail),1)]),u.status===0?(e.openBlock(),e.createElementBlock("div",iF,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",cF,e.toDisplayString(e.unref(a)("finish")),1))],8,aF))),128))]),e.createElementVNode("div",{ref_key:"dataListRef",ref:i,class:"content_box"},[e.createElementVNode("ul",dF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(u,N)=>(e.openBlock(),e.createElementBlock("li",{key:u.key,ref_for:!0,ref:u.key,class:e.normalizeClass([`recordItem_${u.status}`,"background_box mb_10 ovh overflow-hidden mb-[10px]"])},[e.createElementVNode("div",pF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.actionList,(k,w)=>(e.openBlock(),e.createElementBlock("div",{key:`${w}actionList`,class:"pos_r flex_vertically_center h_30 relative flex items-center h-[30px]",style:{"padding-left":"28px"}},[w===0?(e.openBlock(),e.createElementBlock("span",fF,e.toDisplayString(N+1),1)):(e.openBlock(),e.createElementBlock("span",mF)),e.createElementVNode("span",null,e.toDisplayString(k.actionDetail),1)]))),128))]),e.createElementVNode("div",hF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.recordList,(k,w)=>(e.openBlock(),e.createElementBlock("div",{key:`${w}recordList`,class:"pos_r mediaFile_item c_9DA7B2 lh_20 mb_10 relative text-hy-text-secondary leading-[20px] mb-[10px]"},[k.status===0?(e.openBlock(),e.createElementBlock("div",uF,[e.createElementVNode("div",_F,[e.createVNode(m,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(f)]),_:1}),e.createElementVNode("span",gF,e.toDisplayString(k.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(k.jobNum)+")",1)]),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("unfinishedTask")),1)])):k.status===1&&k.mediaFileList&&k.mediaFileList.length?(e.openBlock(),e.createElementBlock("div",yF,[e.createElementVNode("div",xF,[e.createVNode(m,{class:"!text-hy-success icon_box"},{default:e.withCtx(()=>[e.createVNode(_)]),_:1}),e.createElementVNode("span",kF,e.toDisplayString(k.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(k.jobNum)+")",1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.mediaFileList,(b,S)=>(e.openBlock(),e.createElementBlock("div",{key:`${S}mediaFileList`,class:"css-text-no-select",onClick:V=>e.unref(c)(b)},[e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("uploaded")),1),b.del===1?(e.openBlock(),e.createBlock(y,{key:0,class:"item",effect:"dark",content:e.unref(a)("theFileHasBeenDeletedAndCannotBeViewed"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",bF,e.toDisplayString(b.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",CF,e.toDisplayString(b.fileName),1))],8,NF))),128))])):(e.openBlock(),e.createElementBlock("div",wF,[e.createElementVNode("div",EF,[e.createVNode(m,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(_)]),_:1}),e.createElementVNode("span",SF,e.toDisplayString(k.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(k.jobNum)+")",1)]),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("theTaskHasBeenCompletedWaitingForUploading")),1)]))]))),128))])],2))),128))])],512)])}}}),[["__scopeId","data-v-85c188ed"]]);function DF(){const t=e.ref({}),n=e.ref(""),o=e.ref(1),a=e.ref(1),s=e.ref(!1),l=e.ref(),r=e.ref(),i=e.ref(),c=e.ref(),p=e.ref();function d(w){l.value.taskExampleFn(w)}function f(w){a.value=w}function m(w){if(!w){Se.error(x("checkTheTaskAreaWrong"));return}r.value.show({mapRailId:w})}function _(w){o.value=w,w===2&&(t.value.taskMode===2?f(2):f(1))}function y(){s.value=!1}function u(){return new Promise(async(w,b)=>{const S=await uV({id:n.value});S.code===200&&(t.value=S.data||{},w(0))})}function N(w=null){n.value=w,_(1),u().then(()=>{console.log(111),s.value=!0})}function k(){switch(o.value){case 1:u();break;case 2:a.value===1&&t.value.taskMode===1?i.value.taskItemViewFn():this.viewMode===2&&c.value.taskItemViewFn();break;case 3:p.value.taskItemViewFn();break}}return{$t:x,form:t,taskItemId:n,navigationType:o,viewMode:a,dialogVisible:s,viewTaskExampleRef:l,selectLocationAreaRef:r,peopleViewRef:i,taskViewRef:c,taskReportRef:p,viewTaskExampleShow:d,viewModeFn:f,seeTaskArea:m,navigationTypeFn:_,onClose:y,selectFn:u,show:N,onRefresh:k}}const VF={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold bg-hy-dialog-bg-1"},$F={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg-1 relative z-10"},BF={class:"dialog_body",style:{"padding-right":"0px"}},AF={class:"ovh centerBox flex items-center justify-center overflow-hidden"},IF={class:"r-f navigation flex"},LF={key:0,class:"r-f flex",style:{height:"540px"}},FF={class:"fs_12 lh_20 h_100vh background_box information text-[12px] leading-[20px] h-full"},OF={class:"fs_16 fw_600 lh_40 text-[16px] font-[600px] leading-[40px]"},RF={key:0,class:"mb_20 mb-[20px]"},PF={class:"c_9DA7B2 text-hy-text-secondary"},MF=["innerHTML"],UF={class:"mb_20 mb-[20px]"},zF={class:"c_9DA7B2 text-hy-text-secondary"},WF={class:"c_9DA7B2 text-hy-text-secondary"},jF={class:"mb_20 mb-[20px]"},HF={class:"c_9DA7B2 text-hy-text-secondary"},YF={class:"h_100vh content_box h-full"},GF={class:"flex_vertically_center title_box flex items-center"},qF={class:"pos_r relative"},KF={class:"fs_12"},XF={class:"actionList"},JF={key:0},ZF=["onClick"],QF={key:1,class:"c-f flex flex-col",style:{height:"540px"}},vF={class:"fs_12 r-f mb_10 flex text-[12px] mb-[10px]",style:{"justify-content":"space-between","padding-right":"30px"}},eO={class:"lh_20 flex_vertically_center flex items-center leading-[20px]"},tO={key:0,class:"c_dangerv2 text-hy-danger"},nO={key:1,class:"c_success text-hy-success"},oO={key:2,class:"c_9DA7B2 text-hy-text-secondary"},aO={key:3,class:"c_theme text-hy-text-primary"},sO={style:{width:"108px"},class:"plr_10 p-[0_10px]"},lO={class:"c_theme text-hy-text-primary"},rO={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},iO={class:"centerBox flex justify-center items-center"},cO={style:{"margin-left":"6px"}},dO={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary flex items-center"},pO={class:"centerBox flex justify-center items-center"},fO={style:{"margin-left":"6px"}},mO={style:{"flex-grow":"1",height:"0"}},hO=be(e.defineComponent({__name:"common-task-detail",props:{draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const{$t:o,viewTaskExampleRef:a,selectLocationAreaRef:s,taskReportRef:l,taskViewRef:r,peopleViewRef:i,show:c,dialogVisible:p,navigationType:d,form:f,viewMode:m,taskItemId:_,viewModeFn:y,viewTaskExampleShow:u,seeTaskArea:N,navigationTypeFn:k,onRefresh:w,onClose:b}=DF();return n({show:c}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-button"),g=e.resolveComponent("el-progress"),C=$t,E=e.resolveComponent("el-icon"),D=e.resolveComponent("el-dialog"),T=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(D,{modelValue:e.unref(p),"onUpdate:modelValue":V[7]||(V[7]=B=>e.isRef(p)?p.value=B:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"900px",modal:!S.draggable,draggable:S.draggable,"modal-class":S.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",VF,[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("missionDetails")),1),e.createElementVNode("div",null,[e.createElementVNode("div",{class:"cursor-pointer active:opacity-60 refresh",onClick:V[0]||(V[0]=(...B)=>e.unref(w)&&e.unref(w)(...B))},[e.createVNode($,{name:"live-broadcast-refresh-v3",style:{width:"26px",height:"26px"},"class-name":"text-hy-text-primary"})]),e.createElementVNode("div",{class:"clickBox cursor-pointer active:opacity-60 closeBox absolute right-[12px] top-[12px]",onClick:V[1]||(V[1]=(...B)=>e.unref(b)&&e.unref(b)(...B))},[e.createVNode($,{name:"sys-button-close",style:{width:"26px",height:"26px"},"class-name":"text-hy-text-danger"})])])])),[[T]])]),default:e.withCtx(()=>[e.createElementVNode("div",$F,[e.createElementVNode("div",BF,[e.createVNode(LI,{ref_key:"selectLocationAreaRef",ref:s,draggable:!1},null,512),e.createElementVNode("div",AF,[e.createElementVNode("ul",IF,[e.createElementVNode("li",{class:e.normalizeClass(["clickBox cursor-pointer active:opacity-60 css-text-no-select",{selectBox:e.unref(d)===1}]),onClick:V[2]||(V[2]=B=>e.unref(k)(1))},e.toDisplayString(e.unref(o)("missionDetails-0")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox cursor-pointer active:opacity-60 css-text-no-select",{selectBox:e.unref(d)===2}]),onClick:V[3]||(V[3]=B=>e.unref(k)(2))},e.toDisplayString(e.unref(o)("implementation")),3),e.unref(f)&&e.unref(f).templateId?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass(["clickBox cursor-pointer active:opacity-60 css-text-no-select",{selectBox:e.unref(d)===3}]),onClick:V[4]||(V[4]=B=>e.unref(k)(3))},e.toDisplayString(e.unref(o)("missionReport")),3)):e.createCommentVNode("",!0)])]),e.unref(d)===1?(e.openBlock(),e.createElementBlock("div",LF,[e.createElementVNode("div",FF,[e.createElementVNode("div",OF,e.toDisplayString(e.unref(f).taskAction),1),e.unref(f).taskDesc?(e.openBlock(),e.createElementBlock("div",RF,[e.createElementVNode("div",PF,e.toDisplayString(e.unref(o)("taskDescription")),1),e.createElementVNode("div",{class:"mission_content",style:{"white-space":"pre-wrap"},innerHTML:e.unref(f).taskDesc},null,8,MF)])):e.createCommentVNode("",!0),e.createElementVNode("div",UF,[e.createElementVNode("div",zF,e.toDisplayString(e.unref(o)("executionTime")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(f).executeDtmStr)+" ",1),e.createElementVNode("span",WF,"("+e.toDisplayString(e.unref(f).taskDateStartTime)+" ~ "+e.toDisplayString(e.unref(f).taskDateEndTime)+")",1)])]),e.createElementVNode("div",jF,[e.createElementVNode("div",HF,e.toDisplayString(e.unref(o)("executionMode")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(f).taskMode===1?e.unref(o)("independentExecution"):e.unref(o)("collaborativeExecution")),1)])]),e.createElementVNode("ul",YF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f).opList,(B,L)=>(e.openBlock(),e.createElementBlock("li",{key:`${L}opList`,class:"background_box ovh overflow-hidden"},[e.createElementVNode("div",GF,[e.createElementVNode("div",qF,[e.createTextVNode(e.toDisplayString(e.unref(o)("first"))+e.toDisplayString(L+1)+e.toDisplayString(e.unref(o)("strip"))+" ",1),e.createElementVNode("span",null,e.toDisplayString(B.taskOp===1?e.unref(o)("photograph"):e.unref(o)("record")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(o)("task")),1)]),e.createVNode(h,{class:"button_default",type:"primary",onClick:j=>e.unref(N)(B.mapRailId)},{default:e.withCtx(()=>[e.createElementVNode("span",KF,e.toDisplayString(e.unref(o)("missionArea")),1)]),_:2},1032,["onClick"])]),e.createElementVNode("ul",XF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.actionList,(j,F)=>(e.openBlock(),e.createElementBlock("li",{key:`${F}actionList`,class:e.normalizeClass([{clickBox:!1},"flex_vertically_center flex items-center"])},[e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(j.actionDetail)+" ",1),j.taskAction?(e.openBlock(),e.createElementBlock("span",JF,'"'+e.toDisplayString(j.taskAction)+'"',1)):e.createCommentVNode("",!0)]),B.taskExample&&B.taskExample.exampleName?(e.openBlock(),e.createElementBlock("span",{key:0,class:"c_9DA7B2 flex-shrink ml_10 clickBox taskExample css-text-no-select text-hy-text-secondary ml-[10px] cursor-pointer active:opacity-60",onClick:M=>e.unref(u)(B.taskExample)},e.toDisplayString(e.unref(o)("viewExample")),9,ZF)):e.createCommentVNode("",!0)]))),128))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",QF,[e.withDirectives(e.createElementVNode("div",vF,[e.createElementVNode("div",eO,[e.unref(f).status===0?(e.openBlock(),e.createElementBlock("span",tO,e.toDisplayString(e.unref(o)("unfinished")),1)):e.unref(f).status===1?(e.openBlock(),e.createElementBlock("span",nO,e.toDisplayString(e.unref(o)("hasBeenCompleted")),1)):e.unref(f).status===2?(e.openBlock(),e.createElementBlock("span",oO,e.toDisplayString(e.unref(o)("notPerformed")),1)):e.unref(f).status===3?(e.openBlock(),e.createElementBlock("span",aO,e.toDisplayString(e.unref(o)("execute")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",sO,[e.unref(f).status===0?(e.openBlock(),e.createBlock(g,{key:0,class:"progress-bar_outer_errors",color:"var(--hy-danger)","text-inside":!0,"stroke-width":16,status:"exception",percentage:e.unref(f).taskProgress>100?100:e.unref(f).taskProgress},null,8,["percentage"])):(e.openBlock(),e.createBlock(g,{key:1,class:e.normalizeClass({"progress-bar_outer":e.unref(f).taskProgress!==100}),color:"var(--success)","text-inside":!0,"stroke-width":16,status:"success",percentage:e.unref(f).taskProgress},null,8,["class","percentage"]))]),e.createElementVNode("span",lO,e.toDisplayString(e.unref(f).finishNum||0)+"/"+e.toDisplayString(e.unref(f).totalNum||0),1)]),e.withDirectives(e.createElementVNode("div",rO,[e.createVNode(E,null,{default:e.withCtx(()=>[e.createVNode(C)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(o)("currentlyForPersonnelView"))+" ",1),e.createVNode(h,{class:"button_function ml_10 ml-[10px]",onClick:V[5]||(V[5]=B=>e.unref(y)(2))},{default:e.withCtx(()=>[e.createElementVNode("div",iO,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-download-task"}),e.createElementVNode("span",cO,e.toDisplayString(e.unref(o)("missionView")),1)])]),_:1})],512),[[e.vShow,e.unref(m)===1&&e.unref(f).taskMode===1]]),e.withDirectives(e.createElementVNode("div",dO,[e.createVNode(E,null,{default:e.withCtx(()=>[e.createVNode(C)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(o)("currentAsAMissionView"))+" ",1),e.unref(f).taskMode===1?(e.openBlock(),e.createBlock(h,{key:0,class:"button_function ml_10 ml-[10px]",onClick:V[6]||(V[6]=B=>e.unref(y)(1))},{default:e.withCtx(()=>[e.createElementVNode("div",pO,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-user-online"}),e.createElementVNode("span",fO,e.toDisplayString(e.unref(o)("personnelView")),1)])]),_:1})):e.createCommentVNode("",!0)],512),[[e.vShow,e.unref(m)===2]])],512),[[e.vShow,e.unref(d)===2]]),e.createElementVNode("div",mO,[e.unref(d)===2&&e.unref(m)===1&&e.unref(f).taskMode===1?(e.openBlock(),e.createBlock(hL,{key:0,ref_key:"peopleViewRef",ref:i,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.createCommentVNode("",!0),e.unref(d)===2&&e.unref(m)===2?(e.openBlock(),e.createBlock(TF,{key:1,ref_key:"taskViewRef",ref:r,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.unref(d)===3?(e.openBlock(),e.createBlock(eF,{key:2,ref_key:"taskReportRef",ref:l,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.createCommentVNode("",!0)])])),e.createVNode($r,{ref_key:"viewTaskExampleRef",ref:a,draggable:S.draggable},null,8,["draggable"])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-8b3c65a6"]]),uO={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_O=[e.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864L512 652.672L192.128 340.864a30.592 30.592 0 0 0-42.752 0a29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728a30.592 30.592 0 0 0-42.752 0z"},null,-1)];function gO(t,n){return e.openBlock(),e.createElementBlock("svg",uO,[..._O])}const yO={name:"ep-arrow-down",render:gO},xO={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},kO=[e.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32l-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872l319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"},null,-1)];function NO(t,n){return e.openBlock(),e.createElementBlock("svg",xO,[...kO])}const bO={name:"ep-arrow-up",render:NO},CO={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},wO=[e.createElementVNode("path",{fill:"currentColor",d:"M672 192L288 511.936L672 832z"},null,-1)];function EO(t,n){return e.openBlock(),e.createElementBlock("svg",CO,[...wO])}const SO={name:"ep-caret-left",render:EO};function Lr(t){return oe.post({url:"spotCheck/task/detail",data:t,isFormData:!0})}function TO(t){return oe.post({url:"spotCheck/task/taskDevice/findAll",data:t,isFormData:!0})}function DO(t){return oe.post({url:"spotCheck/task/end",data:t,isFormData:!0})}function VO(t){return oe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function $O(t){return oe.post({url:t.id?"spotCheck/timing/update":"spotCheck/timing/insert",data:t,isJson:!0})}function BO(t){return oe.post({url:"spotCheck/template/detail",data:t,isFormData:!0})}function AO(t){return oe.post({url:t.id?"spotCheck/template/update":"spotCheck/template/insert",data:t,isJson:!0})}function IO(t){return oe.post({url:"spotCheck/task/taskExecute",data:t,isJson:!0})}function Fr(t){return oe.post({url:"spotCheck/task/pttFile/page",data:t,isFormData:!0})}function LO(t){return oe.post({url:"spotCheck/task/groupBind",data:t,isJson:!0})}function FO({props:t,emit:n}){const o=e.ref(null),a=e.ref(0),s=e.ref(0),l=e.ref(0),r=e.ref(0),i=e.ref(0),c=e.ref(0),p=e.ref([]);function d(N){const{deviceId:k,checkStatus:w}=N||{};if(!k)return;const b=p.value.findIndex(S=>S.deviceId===k);if(b!==-1){switch(p.value[b].checkStatus){case 1:a.value--;break;case 2:s.value--;break}switch(w){case 2:s.value++;break;case 3:l.value++;break;case 4:r.value++;break}e.nextTick(()=>{m(),p.value[b].checkStatus=w})}}function f(){let N=0,k=0,w=0,b=0,S=0,V=0;p.value.forEach($=>{const h=$.checkStatus,g=$.intercomGroupTem,C=$.onlineState;switch(g===1&&V++,C===2&&S++,h){case 1:N++;break;case 2:k++;break;case 3:w++;break;case 4:b++;break}}),e.nextTick(()=>{a.value=N,s.value=k,l.value=w,r.value=b,i.value=S,c.value=V,m()})}function m(){n("on-countStatus",{beReceiveNum:a.value,receivingNum:s.value,finishNum:l.value,notFinishNum:r.value,offLineNum:i.value,intercomGroupTemNum:c.value})}function _(){o.value}function y(){}async function u(N){const{code:k,data:w=[]}=await TO({taskId:t.form.id,checkStatus:N||null});k===200&&(p.value=w,t.subscribeStatus&&f(),n("change",p.value))}return{uniqueId:o,beReceiveNum:a,receivingNum:s,finishNum:l,notFinishNum:r,offLineNum:i,intercomGroupTemNum:c,taskDeviceList:p,setDeviceStatus:d,initDeviceStatusList:f,onCountStatus:m,spotCheckSubscribe:_,spotCheckUnsubscribe:y,getData:u}}const OO={class:"h-[58px] bg-hy-dialog-bg-2 border border-box border-hy-border-2 rounded px-2 box-border flex items-center"},RO={class:"relative"},PO={class:"w-[16px] text-hy-text-main h-[16px] bg-hy-danger flex items-center justify-center absolute -top-[2px] -right-[4px] rounded-full text-xs font-bold"},MO={class:"scale-75"},UO={class:"w-[16px] text-hy-text-main h-[16px] bg-hy-danger flex items-center justify-center absolute -top-[2px] -right-[4px] rounded-full text-xs font-bold"},zO={class:"flex-grow w-0 flex"},WO={class:"mx-2 flex-grow w-0"},jO={class:"truncate"},HO={class:"text-hy-text-secondary truncate"},YO={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},GO={class:"r-f tac flex items-center justify-center flex-col"},qO={class:"mt-3"},pa=e.defineComponent({__name:"spot-check-task-device",props:{subscribeStatus:{type:Boolean,default:!0},form:{default:{}},paramsSpan:{default:24}},emits:["on-countStatus"],setup(t,{emit:n}){const o=t,a=n,{taskDeviceList:s,spotCheckUnsubscribe:l,uniqueId:r,spotCheckSubscribe:i,getData:c}=FO({props:o,emit:a});return e.onMounted(()=>{r.value=o.form.uniqueId,o.subscribeStatus&&i(),c()}),e.onUnmounted(()=>{l()}),(p,d)=>{const f=e.resolveComponent("el-tooltip"),m=e.resolveComponent("svg-icon"),_=e.resolveComponent("el-col"),y=e.resolveComponent("el-row");return e.openBlock(),e.createBlock(y,{gutter:8,class:"h-full"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),u=>(e.openBlock(),e.createBlock(_,{key:u.id,span:p.paramsSpan,class:"mb-2"},{default:e.withCtx(()=>[e.createElementVNode("div",OO,[e.createElementVNode("div",RO,[e.createVNode(xt,{class:"w-[36px] h-[36px]"}),u.intercomGroupTem===1?(e.openBlock(),e.createBlock(f,{key:0,class:"item",effect:"dark",content:e.unref(x)("theDeviceWasInATemporaryGroupWhenTheSpotCheckWasInitiated"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",PO,[e.createElementVNode("span",MO,e.toDisplayString(e.unref(x)("lin")),1)])]),_:1},8,["content"])):u.onlineState===2?(e.openBlock(),e.createBlock(f,{key:1,class:"item",effect:"dark",content:e.unref(x)("theDeviceWasOfflineWhenTheSpotCheckWasInitiated"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",UO,[e.createVNode(m,{name:"icon-off-line","class-name":"!w-[10px] !h-[14px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",zO,[e.createElementVNode("div",WO,[e.createElementVNode("p",jO,e.toDisplayString(u.devName),1),e.createElementVNode("p",HO,e.toDisplayString(u.deviceId),1)]),e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",{class:"border-info bg-hy-info/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(x)("toBeReceived-1")),513),[[e.vShow,u.checkStatus===1]]),e.withDirectives(e.createElementVNode("div",{class:"border-warning bg-hy-warning/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(x)("receiving-1")),513),[[e.vShow,u.checkStatus===2]]),e.withDirectives(e.createElementVNode("div",{class:"w-[54px] border-success bg-hy-success/50 border rounded px-2 flex items-center justify-center h-[24px] box-border whitespace-nowrap"},e.toDisplayString(e.unref(x)("completed-0")),513),[[e.vShow,u.checkStatus===3]]),e.withDirectives(e.createElementVNode("div",{class:"border-hy-danger bg-hy-danger/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(x)("uncompleted-0")),513),[[e.vShow,u.checkStatus===4]])])])])]),_:2},1032,["span"]))),128)),e.unref(s).length===0?(e.openBlock(),e.createBlock(_,{key:0,span:24,class:"h-full"},{default:e.withCtx(()=>[e.createElementVNode("div",YO,[e.createElementVNode("div",GO,[e.createVNode(m,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",qO,e.toDisplayString(e.unref(x)("noData")),1)])])]),_:1})):e.createCommentVNode("",!0)]),_:1})}}});function KO({props:t}){const n=e.ref(null),o=e.ref(""),a=e.ref(!1),s=e.ref(null),l=e.ref(0),r=e.ref(0),i=e.ref([]),c=e.ref(null),p=e.ref(null),d=e.ref(null),f=e.ref(!0),m=e.ref(null),_=e.ref(),y=e.ref();function u(){n.value=t.orgGroupInsertTemp.id,i.value=[],f.value=!0,k(),e.nextTick(()=>{V()})}function N(){if(!t.realtimeRequestType)return;const C=async()=>{const E=i.value[i.value.length-1];if(!E){C();return}const D={page:0,taskId:t.taskId,largeThenTimestamp:E.fileTimestamp},T=c.value.scrollTop,B=c.value.offsetHeight-46,L=document.querySelector(`#item-${E.id}`);if(L){const j=L.offsetTop,F=await Fr(D);if(F.code===200){const{content:M=[],totalElements:z=0}=F.data;l.value=z,e.nextTick(()=>{M.forEach(U=>{i.value.findIndex(Y=>Y.id===U.id)===-1&&i.value.push(U)}),T>=j-B&&S()})}}};m.value&&clearInterval(m.value),m.value=setInterval(()=>{C()},1e4)}async function k(){var B;let C=null;i.value.length&&(C=i[0].value.id);const D={page:0,taskId:t.taskId,lessThenTimestamp:(B=i.value[0])==null?void 0:B.fileTimestamp};s.value=null,a.value=!0,N();const T=await Fr(D);if(T.code===200){const{content:L=[],totalElements:j=0}=T.data;l.value=j,e.nextTick(()=>{var F;C?L.forEach(M=>{const z=i.value.findIndex(U=>U.id===M.id);M.fileDtmEnd||(M.fileDtmEnd=""),z===-1&&i.value.unshift(M)}):i.value=L.reverse(),C?(w(C),s.value=(F=i.value[this.chatMessageList.length-1])==null?void 0:F.id):S(),e.nextTick(()=>{a.value=!1})})}}function w(C){e.nextTick(()=>{c.value.scrollTo(0,document.querySelector(`#item-${C}`).offsetTop-46)})}function b(){l.value!==0&&k()}function S(){e.nextTick(()=>{c.value.scrollTo(0,c.value.scrollHeight)})}function V(){c.value=_.value,p.value=y.value,p.value.addEventListener("ended",()=>{h(),d.value=null}),c.value.onscroll=()=>{c.value.scrollTop===0&&b()}}function $(){f.value=!1,p.value.play()}function h(){f.value=!0,p.value.pause()}function g(C){}return{$t:x,groupId:n,audioUrl:o,loading:a,newScrollTop:s,totalElements:l,page:r,chatMessageList:i,chatMessageListEl:c,audioEl:p,mediaFileId:d,audioType:f,timer:m,chatMessageListRef:_,audioElRef:y,init:u,getNewData:N,getData:k,scrollToMsg:w,topEvent:b,scrollToBottom:S,initScrollList:V,audioPlay:$,audioPause:h,getAudioContext:g}}const XO=["element-loading-text"],JO={key:0,class:"w-full h-full flex box-border items-center justify-center text-center text-hy-text-secondary"},ZO={class:""},QO={class:"mt-5"},vO=["id"],eR={key:0,class:"min-w-[72px] p-1 bg-hy-dialog-bg-4 text-center rounded mb-2"},tR={key:1,class:"h-[50px] flex items-center w-full"},nR={class:"mr-2 flex-grow w-0 flex flex-col items-end"},oR={class:"w-full flex items-center justify-end"},aR=["onClick"],sR=["onClick"],lR={class:"font-bold flex-shrink-0"},rR={class:"flex-shrink-0 ml-1"},iR={key:0},cR={key:2,class:"h-[50px] flex items-center w-full"},dR={class:"ml-2 flex-grow w-0 flex flex-col items-start"},pR={class:"w-full flex items-center"},fR=["onClick"],mR={class:"flex-shrink-0 mr-1"},hR={key:0},uR={class:"font-bold flex-shrink-0"},_R=["onClick"],gR=e.defineComponent({__name:"talkback-reply",props:{realtimeRequestType:{type:Boolean,default:!0},taskId:{default:null},orgGroupInsertTemp:{default:()=>({id:971})}},setup(t){const n=t,o={},{$t:a,loading:s,chatMessageList:l,mediaFileId:r,audioType:i,getAudioContext:c,init:p,timer:d,chatMessageListRef:f,audioElRef:m}=KO({props:n});return e.onMounted(()=>{p()}),e.onUnmounted(()=>{d.value&&clearInterval(d.value)}),(_,y)=>{const u=e.resolveComponent("svg-icon"),N=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(a)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"w-full h-full p-1 box-border relative z-10"},[e.createElementVNode("audio",{id:"audio-el",ref_key:"audioElRef",ref:m,class:"absolute"},null,512),e.createElementVNode("div",{id:"chatMessageList",ref_key:"chatMessageListRef",ref:f,class:"w-full h-full overflow-auto bg-hy-dialog-bg-2 text-hy-text-main text-xs"},[e.unref(l).length===0?(e.openBlock(),e.createElementBlock("div",JO,[e.createElementVNode("div",ZO,[e.createElementVNode("div",null,[e.createVNode(u,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"})]),e.createElementVNode("div",QO,[e.createElementVNode("p",null,e.toDisplayString(e.unref(a)("noMemberRespondedAtTheMoment")),1)])])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(k,w)=>(e.openBlock(),e.createElementBlock("div",{id:`item-${k.id}`,key:k.id,class:"p-2 box-border flex flex-col items-center"},[k.fileDtmEnd.split(" ")[0]!==(w>0&&e.unref(l)[w-1].fileDtmEnd.split(" ")[0])?(e.openBlock(),e.createElementBlock("div",eR,e.toDisplayString(k.fileDtmEnd.split(" ")[0]),1)):e.createCommentVNode("",!0),k.devUserId===o.id?(e.openBlock(),e.createElementBlock("div",tR,[e.createElementVNode("div",nR,[e.createElementVNode("div",null,e.toDisplayString(k.devUserName)+" ("+e.toDisplayString(k.serialNum||k.devUserId)+") ",1),e.createElementVNode("div",oR,[e.unref(r)===k.mediaFileId&&e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mr-1 mt-1 rounded-[4px] p-[4px_8px] bg-hy-dialog-bg-3/50 text-hy-text-secondary text-xs scale-90 cursor-pointer",onClick:b=>e.unref(c)(k.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,aR)):e.createCommentVNode("",!0),e.createElementVNode("div",{style:e.normalizeStyle({width:k.audioLength>=60?"70%":`calc(${k.audioLength/60*90}px + 160px)`,background:e.unref(r)===k.mediaFileId?"var(--linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%))":"var(--hy-dialog-bg-3)"}),class:e.normalizeClass([{"!border-hy-border-1 !shadow-hy-border-1":e.unref(r)===k.mediaFileId},"max-w-[70%] h-[28px] flex items-center p-[6px] box-border mt-1 rounded-[4px_0_4px_4px] justify-between relative z-10 cursor-pointer border border-hy-border-2 shadow-[0_0_4px_0] shadow-hy-dialog-bg-1"]),onClick:b=>e.unref(c)(k.mediaFileId)},[e.createElementVNode("div",lR,e.toDisplayString(k.audioLength)+"” ",1),e.createElementVNode("div",rR,[k.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",iR,e.toDisplayString(k.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)])],14,sR)])]),e.createVNode(xt,{class:"w-[32px] h-[32px]"})])):(e.openBlock(),e.createElementBlock("div",cR,[e.createVNode(xt,{class:"w-[32px] h-[32px]"}),e.createElementVNode("div",dR,[e.createElementVNode("div",null,e.toDisplayString(k.devUserName)+" ("+e.toDisplayString(k.serialNum||k.devUserId)+") ",1),e.createElementVNode("div",pR,[e.createElementVNode("div",{style:e.normalizeStyle({width:k.audioLength>=60?"70%":`calc(${k.audioLength/60*90}px + 160px)`,background:e.unref(r)===k.mediaFileId?"var(--linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%))":"var(--hy-dialog-bg-3)"}),class:e.normalizeClass([{"!border-hy-border-1 !shadow-hy-border-1":e.unref(r)===k.mediaFileId},"max-w-[70%] h-[28px] flex items-center p-[6px] box-border mt-1 rounded-[0_4px_4px] justify-between relative z-10 cursor-pointer border border-hy-border-2 shadow-[0_0_4px_0] shadow-hy-dialog-bg-1"]),onClick:b=>e.unref(c)(k.mediaFileId)},[e.createElementVNode("div",mR,[k.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",hR,e.toDisplayString(k.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",uR,e.toDisplayString(k.audioLength)+"” ",1)],14,fR),e.unref(r)===k.mediaFileId&&e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"ml-1 mt-1 rounded-[4px] p-[4px_8px] bg-hy-dialog-bg-3/50 text-hy-text-secondary text-xs scale-90 cursor-pointer",onClick:b=>e.unref(c)(k.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,_R)):e.createCommentVNode("",!0)])])]))],8,vO))),128))],512)],8,XO)),[[N,e.unref(s)]])}}});function yR(){const t=e.ref({}),n=e.ref(!1),o=e.ref(null),a=e.ref(0),s=e.ref(!1),l=e.ref([]),r=e.ref(!1),i=e.ref(!1),c=e.ref();async function p(){await LO({groupId:o.value,taskId:t.value.id})}function d(){var h;l.value.length!==0&&((h=c.value)==null||h.orgGroupInsertTempFn([...l.value],{openRecording:1}).then(g=>{o.value=g,e.nextTick(()=>{p()}),_(!1)}).catch(()=>{o.value=null,n.value=!0,_(!1)}))}function f(h=[]){l.value=h,_(!1),t.value.checkStyle===2&&d()}function m(h={}){const{beReceiveNum:g=0,receivingNum:C=0,finishNum:E=0,notFinishNum:D=0,offLineNum:T=0,intercomGroupTemNum:B=0}=h;t.value.beReceiveNum=g,t.value.receivingNum=C,t.value.finishNum=E,t.value.notFinishNum=D,t.value.offLineNum=T,t.value.intercomGroupTemNum=B}function _(h){s.value=h}function y(){r.value=!r.value}async function u(h){const{code:g,data:C={}}=await Lr({id:h});g===200&&(t.value={...C},t.value.checkNum===0&&f([]),t.value.checkStyle===2&&(t.value.actionType=null),N(!0))}function N(h){i.value=h}function k(){}function w(h){if(i.value){Se.warning(x("currentlySpotCheckInProgressPleaseProcessLater"));return}o.value=null,n.value=!1,t.value={},_(!0),u(h)}function b(){i.value=!1}function S(){ft({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("cancelSpotCheck"),tipsContent:`<div style="text-align: center;"><p>${x("confirmToCancelThisSpotCheck")}?</p><p>${x("cancelMidwayYouWillNotBeAbleToRetrieveOrViewAnyInformationOfThisSpotCheck")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("returnToSpotCheck"),submitBtnText:x("cancelSpotCheck"),submitBtnType:"danger"},()=>{$(3)})}function V(){let h=x("afterTheCheck,YouCanViewTheSpotCheckInformationInTheSpotCheckModule");(t.value.beReceiveNum!==0||t.value.receivingNum!==0)&&(h=x("thereAreStillDevicesInTheReceivingProcessTheSystemWillMarkTheseDevicesAsUnfinished")),ft({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("endSpotCheck"),tipsContent:`<div><p>${x("confirmToEndThisSpotCheck")}?</p><p>${h}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("returnToSpotCheck"),submitBtnText:x("endSpotCheck")},()=>{$(2)})}async function $(h){var C;const{code:g}=await DO({taskId:t.value.id,checkStatus:h});g===200&&(h===2&&(Se.success(x("theSpotCheckHasBeenCompletedYouCanViewDetailedInformationRecordsInTheSpotCheckModule")),t.value.checkStyle===2&&o.value&&((C=c.value)==null||C.onClose())),b())}return{form:t,groupType:n,groupId:o,dragLevel:a,loading:s,taskDeviceList:l,msgContentType:r,dialogVisible:i,multiPersonIntercomSpotCheckRef:c,taskGroupBind:p,orgGroupInsertTemp:d,spotCheckTaskDeviceChange:f,spotCheckTaskDeviceCountStatus:m,setLoading:_,setMsgContentType:y,setDialogVisible:N,show:w,close:b,onClose:S,onSubmit:V,taskEnd:$,setDragLevel:k,$t:x}}const xR=t=>(e.pushScopeId("data-v-ecc43ee8"),t=t(),e.popScopeId(),t),kR={class:"el-dialog__header !p-0"},NR={class:"el-dialog__body !p-[8px_0px_8px] sideFoot_content h-[700px] flex flex-col text-hy-text-main text-xs"},bR={class:"h-[40px] flex items-center px-4 mb-1"},CR={class:"font-bold bg-hy-main/20 border border-hy-border-1/50 rounded px-2 flex items-center justify-center h-[24px] flex-shrink-0"},wR={key:0,class:"ml-3"},ER={class:"text-hy-text-secondary"},SR={key:1,class:"ml-3"},TR={class:"text-hy-text-secondary"},DR={class:"font-bold"},VR=["element-loading-text"],$R={key:0,class:"w-full h-full flex flex-col box-border"},BR={class:"flex-shrink-0 mb-3 px-4"},AR={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},IR={class:"flex w-full"},LR={class:"flex-shrink-0"},FR={class:"text-right font-bold flex-grow w-0"},OR={class:"flex w-full text-hy-text-secondary"},RR={class:"flex-shrink-0"},PR={class:"text-right flex-grow w-0"},MR={class:"flex w-full text-hy-text-secondary"},UR={class:"flex-shrink-0"},zR={class:"text-right flex-grow w-0"},WR={class:"text-xs p-2 leading-[22px]"},jR={class:"flex w-full"},HR={class:"flex-shrink-0 tracking-[4px]"},YR={class:"text-right font-bold flex-grow w-0"},GR={class:"flex w-full"},qR={class:"flex-shrink-0 tracking-[4px]"},KR={class:"text-right font-bold flex-grow w-0"},XR={class:"flex w-full"},JR={class:"flex-shrink-0 tracking-[4px]"},ZR={class:"text-right font-bold flex-grow w-0 text-hy-success"},QR={class:"flex w-full"},vR={class:"flex-shrink-0 tracking-[4px]"},e4={class:"text-right font-bold flex-grow w-0 text-hy-danger"},t4={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},n4={class:"flex-1 flex"},o4={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},a4={class:"flex-grow w-0 text-center truncate"},s4={class:"flex-1 flex"},l4={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},r4={class:"flex-grow w-0 text-center text-hy-success truncate"},i4={class:"flex-1 flex"},c4={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},d4={class:"flex-grow w-0 text-center text-hy-danger truncate"},p4={class:"w-full px-2 leading-[22px] box-border rounded bg-hy-dialog-bg-3 h-[28px] flex items-center justify-between"},f4={class:"flex"},m4={key:0,class:"ml-2 bg-hy-dialog-bg-1 h-[22px] px-2 rounded"},h4={class:"w-[400px]"},u4={class:""},_4={key:0,class:"box-border flex-grow h-0 flex px-2"},g4={class:"flex-grow w-0 px-2 overflow-x-hidden overflow-y-auto h-full"},y4={key:0,class:"w-[66%] box-border pr-2"},x4={class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},k4={key:1,class:"flex-grow h-0 px-4"},N4={class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},b4={class:"r-f tac flex text-center"},C4={class:"mt-3"},w4={class:"mt-1"},E4={key:1,class:"w-full h-full"},S4={key:0,class:"w-full h-full flex px-4 box-border"},T4={class:"flex flex-col w-[33%]"},D4={class:"pr-2"},V4={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},$4={class:"flex w-full"},B4={class:"flex-shrink-0"},A4={class:"text-right font-bold flex-grow w-0"},I4={class:"flex w-full text-hy-text-secondary"},L4={class:"flex-shrink-0"},F4={class:"text-right flex-grow w-0"},O4={class:"flex w-full text-hy-text-secondary"},R4={class:"flex-shrink-0"},P4={class:"text-right flex-grow w-0"},M4={class:"text-xs p-2 leading-[22px]"},U4={key:0,class:"flex w-full"},z4={class:"flex-shrink-0 tracking-[4px]"},W4={class:"text-right font-bold flex-grow w-0"},j4={key:1,class:"flex w-full"},H4={class:"flex-shrink-0 tracking-[4px]"},Y4={class:"text-right font-bold flex-grow w-0"},G4={class:"flex w-full"},q4={class:"flex-shrink-0 tracking-[4px]"},K4={class:"text-right font-bold flex-grow w-0 text-hy-success"},X4={class:"flex w-full"},J4={class:"flex-shrink-0 tracking-[4px]"},Z4={class:"text-right font-bold flex-grow w-0 text-hy-danger"},Q4={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},v4={class:"flex-1 flex"},e3={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},t3={class:"flex-grow w-0 text-center truncate"},n3={class:"flex-1 flex"},o3={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},a3={class:"flex-grow w-0 text-center text-hy-success truncate"},s3={class:"flex-1 flex"},l3={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},r3={class:"flex-grow w-0 text-center text-hy-danger truncate"},i3={class:"flex-grow h-0 mt-2 overflow-x-hidden overflow-y-auto pr-2 box-border"},c3={class:"flex-grow w-0 flex flex-col"},d3=xR(()=>e.createElementVNode("div",{class:"flex-grow h-0 overflow-hidden"},null,-1)),p3={key:0,class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-backgroundv2 box-border border border-hy-border-2 rounded"},f3={class:"r-f tac flex text-center"},m3={class:"mt-5"},h3={key:1,class:"flex-grow h-full px-4"},u3={class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},_3={class:"r-f tac flex text-center"},g3={class:"mt-3"},y3={class:"mt-1"},x3={class:"h-[50px] flex items-center justify-between flex-shrink-0 px-4 mt-1"},k3={class:"text-hy-text-secondary text-xs"},N3={key:0},b3={key:1},C3={key:0},w3={key:1},E3={key:2},S3=be(e.defineComponent({__name:"view-spot-check",setup(t,{expose:n}){const{dialogVisible:o,dragLevel:a,setDragLevel:s,form:l,$t:r,loading:i,setMsgContentType:c,msgContentType:p,spotCheckTaskDeviceChange:d,spotCheckTaskDeviceCountStatus:f,groupType:m,onClose:_,onSubmit:y,show:u}=yR();return n({show:u}),(N,k)=>{const w=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-popover"),S=e.resolveComponent("el-col"),V=SO,$=e.resolveComponent("el-icon"),h=e.resolveComponent("el-tooltip"),g=e.resolveComponent("el-row"),C=$t,E=e.resolveComponent("el-button"),D=e.resolveComponent("HyBoxBorder"),T=e.resolveComponent("el-dialog"),B=e.resolveDirective("loading"),L=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(T,{modelValue:e.unref(o),"onUpdate:modelValue":k[2]||(k[2]=j=>e.isRef(o)?o.value=j:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,modal:!1,draggable:!0,"modal-class":"custom-transparent",class:"w-[830px] ml-[100px]",top:"5vh",width:830},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",kR,[e.createElementVNode("div",NR,[e.createElementVNode("div",bR,[e.createElementVNode("div",CR,e.toDisplayString(e.unref(r)("initiate"))+e.toDisplayString(e.unref(l).checkStyle===1?e.unref(r)("message"):e.unref(r)("call"))+e.toDisplayString(e.unref(r)("spotCheck")),1),e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("div",wR,[e.createElementVNode("span",ER,e.toDisplayString(e.unref(r)("responseMethod")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(l).actionType===1?e.unref(r)("punchIn"):e.unref(r)("reply")),1)])):e.createCommentVNode("",!0),e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("div",SR,[e.createElementVNode("span",TR,e.toDisplayString(e.unref(r)("responseTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",DR,e.toDisplayString(e.unref(l).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("second")),1)])])):e.createCommentVNode("",!0)]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(r)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0"},[e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("div",$R,[e.createElementVNode("div",BR,[e.createVNode(g,{gutter:8},{default:e.withCtx(()=>[e.createVNode(S,{span:8},{default:e.withCtx(()=>[e.createVNode(b,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",t4,[e.createElementVNode("div",n4,[e.createElementVNode("div",o4,[e.createVNode(w,{name:"base-every-day-many-people","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",a4,e.toDisplayString(e.unref(l).checkNum||"- -"),1)]),e.createElementVNode("div",s4,[e.createElementVNode("div",l4,[e.createVNode(w,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),e.createElementVNode("div",r4,e.toDisplayString(e.unref(l).finishNum||"- -"),1)]),e.createElementVNode("div",i4,[e.createElementVNode("div",c4,[e.createVNode(w,{name:"base-danger-state","class-name":"svgBox w-[16px] h-[16px] text-hy-danger"})]),e.createElementVNode("div",d4,e.toDisplayString(e.unref(l).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("ul",AR,[e.createElementVNode("li",IR,[e.createElementVNode("span",LR,e.toDisplayString(e.unref(r)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",FR,e.toDisplayString(e.unref(l).checkNum||"- -"),1)]),e.createElementVNode("li",OR,[e.createElementVNode("span",RR,e.toDisplayString(e.unref(r)("offlineStatus")),1),e.createElementVNode("div",PR,e.toDisplayString(e.unref(l).offLineNum||"- -"),1)]),e.createElementVNode("li",MR,[e.createElementVNode("span",UR,e.toDisplayString(e.unref(r)("temporaryGroups")),1),e.createElementVNode("div",zR,e.toDisplayString(e.unref(l).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",WR,[e.createElementVNode("li",jR,[e.createElementVNode("span",HR,e.toDisplayString(e.unref(r)("waitingToReceive")),1),e.createElementVNode("div",YR,e.toDisplayString(e.unref(l).beReceiveNum||"- -"),1)]),e.createElementVNode("li",GR,[e.createElementVNode("span",qR,e.toDisplayString(e.unref(r)("receiving")),1),e.createElementVNode("div",KR,e.toDisplayString(e.unref(l).receivingNum||"- -"),1)]),e.createElementVNode("li",XR,[e.createElementVNode("span",JR,e.toDisplayString(e.unref(r)("completed")),1),e.createElementVNode("div",ZR,e.toDisplayString(e.unref(l).finishNum||"- -"),1)]),e.createElementVNode("li",QR,[e.createElementVNode("span",vR,e.toDisplayString(e.unref(r)("uncompleted")),1),e.createElementVNode("div",e4,e.toDisplayString(e.unref(l).notFinishNum||"- -"),1)])])])]),_:1})]),_:1}),e.createVNode(S,{span:16},{default:e.withCtx(()=>[e.createElementVNode("div",p4,[e.createElementVNode("div",f4,[e.createTextVNode(e.toDisplayString(e.unref(r)("messageContent"))+" ",1),e.unref(l).playMsg===1?(e.openBlock(),e.createElementBlock("div",m4," TTS"+e.toDisplayString(e.unref(r)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"css-text-no-select cursor-pointer hover:opacity-60",onClick:k[1]||(k[1]=(...j)=>e.unref(c)&&e.unref(c)(...j))},[e.createVNode(h,{visible:e.unref(p),"onUpdate:visible":k[0]||(k[0]=j=>e.isRef(p)?p.value=j:null),class:"item",placement:"bottom-end",trigger:"manual"},{content:e.withCtx(()=>[e.createElementVNode("div",h4,e.toDisplayString(e.unref(l).msgContent),1)]),default:e.withCtx(()=>[e.createElementVNode("span",u4,[e.createTextVNode(e.toDisplayString(e.unref(r)("viewContent"))+" ",1),e.createVNode($,{class:e.normalizeClass(["text-sm duration-500",{"-rotate-90":e.unref(p)}])},{default:e.withCtx(()=>[e.createVNode(V)]),_:1},8,["class"])])]),_:1},8,["visible"])])])]),_:1})]),_:1})]),e.unref(l).checkNum!==0?(e.openBlock(),e.createElementBlock("div",_4,[e.createElementVNode("div",g4,[e.unref(l).id?(e.openBlock(),e.createBlock(pa,{key:0,ref:"spotCheckTaskDeviceRef","params-span":e.unref(l).actionType===1?8:24,form:e.unref(l),onChange:e.unref(d),onOnCountStatus:e.unref(f)},null,8,["params-span","form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)]),e.unref(l).actionType===2?(e.openBlock(),e.createElementBlock("div",y4,[e.createElementVNode("div",x4,[e.unref(l).id?(e.openBlock(),e.createBlock(gR,{key:0,ref:"talkbackReplyRef","task-id":e.unref(l).id},null,8,["task-id"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",k4,[e.createElementVNode("div",N4,[e.createElementVNode("div",b4,[e.createVNode(w,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",C4,e.toDisplayString(e.unref(r)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",w4,e.toDisplayString(e.unref(r)("cannotSupportThisSpotCheck")),1)])])]))])):(e.openBlock(),e.createElementBlock("div",E4,[e.unref(l).checkNum!==0?(e.openBlock(),e.createElementBlock("div",S4,[e.createElementVNode("div",T4,[e.createElementVNode("div",D4,[e.createVNode(b,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",Q4,[e.createElementVNode("div",v4,[e.createElementVNode("div",e3,[e.createVNode(w,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",t3,e.toDisplayString(e.unref(l).checkNum||"- -"),1)]),e.createElementVNode("div",n3,[e.createElementVNode("div",o3,[e.createVNode(w,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",a3,e.toDisplayString(e.unref(l).finishNum||"- -"),1)]),e.createElementVNode("div",s3,[e.createElementVNode("div",l3,[e.createVNode(w,{name:"base-danger-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",r3,e.toDisplayString(e.unref(l).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("ul",V4,[e.createElementVNode("li",$4,[e.createElementVNode("span",B4,e.toDisplayString(e.unref(r)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",A4,e.toDisplayString(e.unref(l).checkNum||"- -"),1)]),e.createElementVNode("li",I4,[e.createElementVNode("span",L4,e.toDisplayString(e.unref(r)("offlineStatus")),1),e.createElementVNode("div",F4,e.toDisplayString(e.unref(l).offLineNum||"- -"),1)]),e.createElementVNode("li",O4,[e.createElementVNode("span",R4,e.toDisplayString(e.unref(r)("temporaryGroups")),1),e.createElementVNode("div",P4,e.toDisplayString(e.unref(l).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",M4,[e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("li",U4,[e.createElementVNode("span",z4,e.toDisplayString(e.unref(r)("waitingToReceive")),1),e.createElementVNode("div",W4,e.toDisplayString(e.unref(l).beReceiveNum||"- -"),1)])):e.createCommentVNode("",!0),e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("li",j4,[e.createElementVNode("span",H4,e.toDisplayString(e.unref(r)("receiving")),1),e.createElementVNode("div",Y4,e.toDisplayString(e.unref(l).receivingNum||"- -"),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",G4,[e.createElementVNode("span",q4,e.toDisplayString(e.unref(r)("completed")),1),e.createElementVNode("div",K4,e.toDisplayString(e.unref(l).finishNum||"- -"),1)]),e.createElementVNode("li",X4,[e.createElementVNode("span",J4,e.toDisplayString(e.unref(r)("uncompleted")),1),e.createElementVNode("div",Z4,e.toDisplayString(e.unref(l).notFinishNum||"- -"),1)])])]),_:1})]),e.createElementVNode("div",i3,[e.unref(l).id?(e.openBlock(),e.createBlock(pa,{key:0,ref:"spotCheckTaskDeviceRef","params-span":24,form:e.unref(l),onChange:e.unref(d),onOnCountStatus:e.unref(f)},null,8,["form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",c3,[d3,e.unref(m)?(e.openBlock(),e.createElementBlock("div",p3,[e.createElementVNode("div",f3,[e.createVNode(w,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"}),e.createElementVNode("div",m3,e.toDisplayString(e.unref(r)("groupMemberStatusAbnormalityPreventsSpotCheck")),1)])])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",h3,[e.createElementVNode("div",u3,[e.createElementVNode("div",_3,[e.createVNode(w,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",g3,e.toDisplayString(e.unref(r)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",y3,e.toDisplayString(e.unref(r)("cannotSupportThisSpotCheck")),1)])])]))]))],8,VR)),[[B,e.unref(i)]]),e.createElementVNode("div",x3,[e.createElementVNode("div",k3,[e.createElementVNode("div",null,[e.createVNode($,{class:"mr-1 text-sm"},{default:e.withCtx(()=>[e.createVNode(C)]),_:1}),e.unref(l).checkType===2?(e.openBlock(),e.createElementBlock("span",N3,e.toDisplayString(e.unref(r)("randomCheck")),1)):(e.openBlock(),e.createElementBlock("span",b3,[e.unref(l).checkScope===1?(e.openBlock(),e.createElementBlock("span",C3,e.toDisplayString(e.unref(r)("regionalSpotCheck")),1)):e.unref(l).checkScope===2?(e.openBlock(),e.createElementBlock("span",w3,e.toDisplayString(e.unref(r)("departmentSpotCheck")),1)):e.unref(l).checkScope===3?(e.openBlock(),e.createElementBlock("span",E3,e.toDisplayString(e.unref(r)("deviceSpotCheck")),1)):e.createCommentVNode("",!0)]))])]),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",class:"button_default buttonBox min-w-[100px]",onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(E,{class:"button_function buttonBox min-w-[100px]",onClick:e.unref(y)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("complete")),1)]),_:1},8,["onClick"])])])])])),[[L]])]),default:e.withCtx(()=>[e.createVNode(D,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-ecc43ee8"]]);function T3(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(o.value.itemType),s=e.ref(o.value.itemSelectParam),l=e.ref(),r={value:"onlyId",label:"orgName",children:"children",disabled:"disabled"},i=e.ref([]),c=e.ref(null),p=e.ref(300),d=e.ref([]),f=e.ref([]);function m(h){return d.value.findIndex(g=>g[`${s.value}`]===h)}function _(h,g){let C=null;if(h[`${s.value}`]&&h.type===a.value){if(h.disabled)return;o.value.showRadio?(C=m(h[`${s.value}`]),g?C===-1&&(k([...h]),n("onCurrent",h)):C!==-1&&(d.value.splice(C,1),n("onCurrentDelete",h)),n("onSelectedData",{selectedDataList:d.value,selectedData:d.value})):o.value.showCheckbox&&!o.value.parentCheckbox?(C=m(h[`${s.value}`]),g?C===-1&&(k([...d.value,{...h}]),n("onCurrent",h)):C!==-1&&(d.value.splice(C,1),n("onCurrentDelete",h))):(l.value.setChecked(h[`${s.value}`],g,!0),b(),n("onCurrent",h)),n("onSelectedData",{selectedDataList:d.value,selectedData:d.value})}else l.value.setChecked(`${h.id}`,g,!0),b()}async function y(h){let g=null;await e.nextTick(()=>{h.disabled||(o.value.showRadio?(g=m(h[`${s.value}`]),g===-1?(k([{...h}]),n("onCurrent",h)):(d.value.splice(g,1),n("onCurrentDelete",h)),n("onSelectedData",{selectedDataList:d.value,selectedData:d.value})):o.value.showCheckbox&&!o.value.parentCheckbox?(g=m(h[`${s.value}`]),g===-1?(k([...d.value,{...h}]),n("onCurrent",h)):(d.value.splice(g,1),n("onCurrentDelete",h)),n("onSelectedData",{selectedDataList:d.value,selectedData:d.value})):(l.value.setChecked(`${h[`${s.value}`]}`,N(h[`${s.value}`]),!0),b(),n("onCurrent",h)))})}function u(h){l.value.setCheckedKeys(h||[]),b()}function N(h){return(l.value.getCheckedKeys()||[]).findIndex(E=>E===h||E===`${h}`)===-1}function k(h){o.value.showCheckbox&&o.value.parentCheckbox&&l.value.setCheckedKeys(h.map(g=>`${g[`${o.value.itemSelectParam}`]}`)||[]),d.value=h}function w(h){f.value=h}function b(){const h=l.value.getCheckedNodes()||[],g=[],C=[];h.forEach(E=>{E.type===a.value?g.push(E):C.push(E)}),k([...g]),w(C),n("onSelectedData",{selectedDataList:g,departmentList:C,selectedData:h})}function S(h,g){h.type===a.value?y(h):(c.value&&(clearTimeout(c.value),c.value=null),c.value=setTimeout(()=>{var E;n("onCurrentDepartment",h);const C=i.value.findIndex(D=>D===g.key);C===-1?((E=l.value)==null||E.expandNode(g),i.value.push(`${g.key}`)):(l.value.collapseNode(g),i.value.splice(C,1))},p.value))}function V(h){if(o.value.showCheckbox&&!o.value.parentCheckbox)return;c.value&&(clearTimeout(c.value),c.value=null);const g=`organization_${h.id}`;l.value.setChecked(g,N(g),!0),b()}function $(h){var g;(g=l.value)==null||g.setData(h)}return{departmentDoubleClick:V,selectedList:d,getCurrentNode:b,getSelectedIndex:m,nodeClick:S,setChecked:_,setCheckedKeys:u,setData:$,setSelectedList:k,treeProps:r,treeRef:l}}const Or=t=>(e.pushScopeId("data-v-0ea0d0e6"),t=t(),e.popScopeId(),t),D3={class:"flex w-full h-full"},V3={key:0,class:"w-full flex items-center"},$3={key:0,class:"mr-[6px]"},B3={class:"el-checkbox"},A3=[Or(()=>e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1))],I3={key:1,class:"mr-1"},L3={class:"el-radio"},F3=[Or(()=>e.createElementVNode("span",{class:"el-radio__inner"},null,-1))],O3=["onDblclick"],yn=be(e.defineComponent({__name:"tree-cpns",props:{itemType:{default:1},itemSelectParam:{default:"id"},height:{default:500},itemSize:{default:36},dataList:{default:()=>[]},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!1},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{departmentDoubleClick:l,selectedList:r,getCurrentNode:i,getSelectedIndex:c,nodeClick:p,setChecked:d,setCheckedKeys:f,setData:m,setSelectedList:_,treeProps:y,treeRef:u}=T3({emit:s,props:a});e.watch(()=>a.showCheckbox,k=>{if(k===!1)if(r.value.length){const w=r.value[0];r.value=[w],a.showCheckbox&&a.parentCheckbox&&f([w[`${a.itemSelectParam}`]]),s("onSelectedData",{selectedDataList:r.value,selectedData:r.value})}else f([])}),n({setCheckedKeys:f,setSelectedList:_,setChecked:d,setData:m});const N=e.ref();return e.onMounted(()=>{r.value=a.defaultCheckedList,a.showCheckbox&&a.parentCheckbox&&(N.value=a.defaultCheckedList.map(k=>`${k[`${a.itemSelectParam}`]}`))}),(k,w)=>{const b=e.resolveComponent("el-tree-v2");return e.openBlock(),e.createBlock(b,{ref_key:"treeRef",ref:u,style:{"font-size":"larger"},class:e.normalizeClass({highlightSelected:a.highlightSelected}),"show-checkbox":a.showCheckbox&&a.parentCheckbox,"check-strictly":a.checkStrictly,"default-checked-keys":e.unref(N),"expand-on-click-node":!1,data:a.dataList,props:e.unref(y),height:a.height,"item-size":a.itemSize,onNodeClick:e.unref(p),onCheck:e.unref(i)},{default:e.withCtx(({data:S})=>[e.createElementVNode("div",D3,[S.type===a.itemType?(e.openBlock(),e.createElementBlock("div",V3,[a.showCheckbox&&!a.parentCheckbox?(e.openBlock(),e.createElementBlock("div",$3,[e.withDirectives(e.createElementVNode("div",B3,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)(S[`${a.itemSelectParam}`])!==-1,"is-disabled":S.disabled},"el-checkbox__input"])},A3,2)],512),[[e.vShow,a.showCheckboxButton]])])):e.createCommentVNode("",!0),a.showRadio?(e.openBlock(),e.createElementBlock("div",I3,[e.withDirectives(e.createElementVNode("div",L3,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)(S[`${a.itemSelectParam}`])!==-1,"is-disabled":S.disabled},"el-radio__input"])},F3,2)],512),[[e.vShow,a.showRadioButton]])])):e.createCommentVNode("",!0),e.renderSlot(k.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:S})),void 0,!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"w-0 flex-grow flex text-hy-text-main",onDblclick:e.withModifiers(V=>e.unref(l)(S),["stop"])},[e.renderSlot(k.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:S})),void 0,!0)],40,O3))])]),_:3},8,["class","show-checkbox","check-strictly","default-checked-keys","data","props","height","item-size","onNodeClick","onCheck"])}}}),[["__scopeId","data-v-0ea0d0e6"]]);function xn(t){const n=t.emit,o=e.ref(),a=e.ref(0),s=e.ref([]),l=e.ref(null),r=e.ref([]),i=e.computed(()=>{const S=r.value.find(V=>V.value===l.value);return S&&S.placeholder?S.placeholder:x("pleaseEnterContentToSearch")}),c=e.computed(()=>!!e.useSlots()["check-content"]),p=e.computed(()=>!!e.useSlots()["other-content"]),d=e.ref(null);function f(){const S=new ResizeObserver(()=>{d.value&&(a.value=d.value.clientHeight)});d.value&&S.observe(d.value)}function m(S){n("onCurrentDepartment",S)}function _(S){n("onCurrent",S)}function y(S){n("onCurrentDelete",S)}function u(S){n("onSelectedData",S)}function N(S){s.value=S}function k(S,V){o.value.setChecked(S,V)}function w(S){o.value.setCheckedKeys(S)}function b(S){o.value.setSelectedList(S)}return{checkContentSlotsType:c,otherContentSlotsType:p,currentDepartment:m,currentDevice:_,currentDeviceDelete:y,elementRef:d,selectedData:u,treeComponentHeight:a,treeComponentRef:o,viewDepartmentList:s,watchTreeComponentHeight:f,setChecked:k,setCheckedKeys:w,setSelectedList:b,selectFilterList:r,selectFilterType:l,getInputPlaceholder:i,setViewDepartmentList:N}}function kn(t,n){return!t||t.length===0?!1:t.includes(`disabled:${n}`)}function Qn(t,n="id"){const o=new Map;return t.forEach(a=>o.set(a[`${n}`],a)),Array.from(o.values())}function et(t,n,o,a){var r;const{selectFilterType:s}=a||{};if(!n)return!0;if(s&&s!==t)return!1;const l=i=>i&&i.toString().includes(n);switch(t){case 7:return o.typeName==="workOrderList"?l(o.workTimeName):l(o.dailyCheckName);case 6:return l(o.deviceUserName)||l((r=o.item)==null?void 0:r.deviceId);case 5:return l(o.jobNum)||l(o.name)||l(o.phone);case 4:return l(o.groupName);case 8:return l(o.sname);case 3:return l(o.deviceId)||l(o.devName)||l(o.name);default:return l(o.companyName)||l(o.orgName)}}async function Rr(t,n,o,a){const{selectFilterType:s,hideOrgNoData:l,disabledIds:r}=o||{disabledIds:"",showOnlineOnly:!1,hideOrgNoData:!1,hideDevice:!1,selectFilterType:null,signal:null},i=[];for(let c=0;c<n.length;c++){const p=n[c];p.type=1,p.onlyId=`${p.id}`,r.length!==0&&(p.disabled=kn(r,p.id));let d=!1;a&&a.parentType||p.type===3?d=!0:d=et(1,t,p,{selectFilterType:s});const f=d?p:{};if(p.children&&p.children.length>0){const m=await Rr(t,p.children,o,{...p,parentType:d});m&&(f.children=[...m.children],p.children=m.children)}Object.keys(f).length&&(f.children.length||!l&&(f.companyName||f.orgName))&&i.push(p)}return{children:i}}async function Pr(t,n,o,a){const{hideDevice:s,selectFilterType:l,signal:r,hideOrgNoData:i,disabledIds:c,showOnlineOnly:p}=o||{disabledIds:"",showOnlineOnly:!1,hideOrgNoData:!1,hideDevice:!1,selectFilterType:null,signal:null},d=[],f=[];for(let m=0;m<n.length;m++){const _=n[m],y=m;_.type===3?_.onlyId=`${_.deviceId}`:(_.type=1,_.onlyId=`organization_${_.id}`),s&&_.type===1&&c.length!==0&&(_.disabled=kn(c,_.id)),_.childrenDeviceList=[],_.onlineCountList=[];const u=a&&a.companyName&&_.type!==3?a.companyName:null;_.parentIdsList=a&&a.parentIdsList?[...a.parentIdsList,{id:_.id,currentSubscript:y}]:[{id:_.id,currentSubscript:y}];let N=!1;a&&a.parentType||_.type===3?N=!0:N=et(1,t,_,{selectFilterType:l});const k=N?_:{};if(_.deviceList&&_.deviceList.length&&!s){const w=[];_.deviceList.forEach((b,S)=>{if((a&&a.parentType||et(3,t,b,{selectFilterType:l})||N)&&(p&&b.onlineState===1||!p)){const V={parentType:!0,...b,isLeaf:!0,label:b.name||b.deviceId,deviceType:b.type,prodModel:b.prodModel?b.prodModel:"",simNum:b.simNum?b.simNum:"",companyName:n[y].companyName,select:!1,expand:!1,type:3,item:b,parentId:b.parentId?b.parentId:"",parentName:b.parentName?b.parentName:"",personnel:b.personnel?"1":"2",parentOrgName:u,disabled:kn(c,b.deviceId)},$=V;$.parentOrgName=u,$.parentIdsList=_.parentIdsList,_.childrenDeviceList.push($),d.push($),w[b.onlineState===1?"unshift":"push"](V)}}),_.children=_.children.concat(w)}else _.deviceList=[];if(_.children&&_.children.length>0){const w=await Pr(t,_.children,o,{..._,parentType:N});if(w){const b=w.deviceList;_.childrenDeviceList.push(...b),d.push(...b);const S=new Map,V=[];_.childrenDeviceList.forEach($=>{S.has($.id)||(S.set($.id,$),$.onlineState===1&&V.push($))}),_.childrenDeviceList=Array.from(S.values()),_.onlineCountList=V,k.children=[...w.children],_.children=w.children}}Object.keys(k).length&&(_.type===3||k.children.length||!i&&(k.companyName||k.orgName))&&f.push(_)}return{children:f,deviceList:Qn(d)}}async function Mr(t,n,o,a){const{hideDevice:s,selectFilterType:l,signal:r,hideOrgNoData:i,hideGroup:c}=o||{hideOrgNoData:!1,hideGroup:!1,hideDevice:!1,selectFilterType:null,signal:null},p=[],d=[];for(let f=0;f<n.length;f++){const m=n[f];m.type===3?m.onlyId=`device_${m.id}`:m.type===4?m.onlyId=`${m.id}`:m.onlyId=`organization_${m.id}`,m.childrenDeviceList=[],m.onlineCountList=[];let _=!1;m.type===3||m.type===4?_=!0:_=et(1,t,m,{selectFilterType:l});const y=_?m:{};if(m.groupList&&m.groupList.length!==0?m.groupList.forEach((u,N)=>{if(u.deviceList&&u.deviceList.length!==0){const k=[];a&&a.parentType||_||et(4,t,u,{selectFilterType:l})?(s||u.deviceList.forEach(w=>{const b={isLeaf:!0,...w,children:[],orgGroupId:u.id,deviceType:w.type,type:3};k[w.onlineState===1?"unshift":"push"](b)}),m.children.push({...u,children:k,type:4})):(s||u.deviceList.forEach(w=>{if(et(3,t,w,{selectFilterType:l})){const b={isLeaf:!0,...w,children:[],orgGroupId:u.id,deviceType:w.type,type:3};k[w.onlineState===1?"unshift":"push"](b)}}),k.length&&m.children.push({...u,children:k,type:4}))}else(a&&a.parentType||_||et(4,t,u,{selectFilterType:l}))&&m.children.push({...u,children:[],type:4})}):m.groupList=[],m.deviceList&&m.deviceList.length&&(m.childrenDeviceList=m.deviceList),m.childrenDeviceList&&m.childrenDeviceList.forEach(u=>{p.findIndex(k=>k.deviceId===u.deviceId)===-1&&p.push(u)}),m.children&&m.children.length!==0){const u=await Mr(t,m.children,o,{...m,parentType:_});if(u){const N=u.deviceList;m.childrenDeviceList.push(...N),p.push(...N);const k=new Map,w=[];m.childrenDeviceList.forEach(b=>{k.has(b.id)||(k.set(b.id,b),b.onlineState===1&&w.push(b))}),m.childrenDeviceList=Array.from(k.values()),m.onlineCountList=w,y.children=u.children}}Object.keys(y).length&&(!c&&m.type===4||m.type===3||y.children.length||!i&&(y.companyName||y.orgName))&&d.push({...m,...y})}return{children:d,deviceList:Qn(p)}}async function Ur(t,n,o,a){const{selectFilterType:s,hideOrgNoData:l,disabledIds:r}=o||{selectFilterType:null,hideOrgNoData:!1,disabledIds:""},i=[],c=[];for(let p=0;p<n.length;p++){const d=n[p],f=p;d.onlyId=d.type===5?`${d.id}`:`organization_${d.id}`,d.childrenDeviceList=[],d.onlineCountList=[],a&&a.parentIdsList?d.parentIdsList=[...a.parentIdsList,{id:d.id,currentSubscript:f}]:d.parentIdsList=[{id:d.id,currentSubscript:f}];let m=!1;d.type===5?m=!0:m=et(1,t,d,{selectFilterType:s});const _=m?d:{};if(d.deviceUserList&&d.deviceUserList.length){const y=[];d.deviceUserList.forEach((u,N)=>{if(a&&a.parentType||et(5,t,u,{selectFilterType:s})||m){const k={...u,parentType:!0,isLeaf:!0,label:u.name||u.id,deviceId:u.id,deviceType:u.type,type:5,item:u,children:[],parentIdsList:d.parentIdsList};d.childrenDeviceList.push(k),i.push(k);const w={...u,parentType:!0,isLeaf:!0,label:u.name||u.id,deviceId:u.id,deviceType:u.type,type:5,children:[],item:u,disabled:kn(r,u.id)};y[u.onlineState===1?"unshift":"push"](w)}}),d.children=[...d.children,...y]}else d.deviceList=[];if(d.children&&d.children.length>0){const y=await Ur(t,d.children,o,{...d,parentType:m});if(y){const u=y.deviceList;d.childrenDeviceList.push(...u),i.push(...u);const N=new Map,k=[];d.childrenDeviceList.forEach(w=>{N.has(w.id)||(N.set(w.id,w),w.onlineState===1&&k.push(w))}),d.childrenDeviceList=Array.from(N.values()),d.onlineCountList=k,_.children=y.children}}Object.keys(_).length&&(d.type===5||_.children.length||!l&&(_.companyName||_.orgName))&&c.push({...d,..._})}return{children:c,deviceList:Qn(i)}}async function zr(t,n,o,a){const{selectFilterType:s,hideOrgNoData:l,disabledIds:r}=o||{selectFilterType:null,hideOrgNoData:!1,disabledIds:""},i=[],c=[];for(let p=0;p<n.length;p++){const d=n[p],f=p;d.onlyId=d.type===8?`${d.id}`:`organization_${d.id}`,d.childrenDeviceList=[],d.onlineCountList=[],a&&a.parentIdsList?d.parentIdsList=[...a.parentIdsList,{id:d.id,currentSubscript:f}]:d.parentIdsList=[{id:d.id,currentSubscript:f}];let m=!1;d.type===8?m=!0:m=et(1,t,d,{selectFilterType:s});const _=m?d:{};if(d.csList&&d.csList.length){const y=[];d.csList.forEach((u,N)=>{if(a&&a.parentType||et(8,t,u,{selectFilterType:s})||m){const k={...u,type:8,item:u,children:[]};d.childrenDeviceList.push(k),i.push(k);const w={...u,type:8,item:u,children:[],disabled:kn(r,u.id)};y[u.onlineState===1?"unshift":"push"](w)}}),d.children=[...d.children,...y]}else d.deviceList=[];if(d.children&&d.children.length>0){const y=await zr(t,d.children,o,{...d,parentType:m});if(y){const u=y.deviceList;d.childrenDeviceList.push(...u),i.push(...u);const N=new Map,k=[];d.childrenDeviceList.forEach(w=>{N.has(w.id)||(N.set(w.id,w),w.onlineState===1&&k.push(w))}),d.childrenDeviceList=Array.from(N.values()),d.onlineCountList=k,_.children=y.children}}Object.keys(_).length&&(d.type===8||_.children.length||!l&&(_.companyName||_.orgName))&&c.push({...d,..._})}return{children:c,deviceList:Qn(i)}}function R3(t){const n=e.ref(t.props),o=e.ref(t.params.selectFilterType),a=e.ref(""),s=e.ref([]);async function l(){var i;n.value.getData&&((i=n.value.getData())==null||i.then(async c=>{if(!c)return;const p=await Rr(a.value,[...c],{disabledIds:n.value.disableDataList.map(d=>`disabled:${d.id}`).toString(),hideDevice:!0,selectFilterType:o.value});s.value=p.children,t.params.setViewDepartmentList(s.value)}))}function r(){a.value.length&&l()}return{getData:l,query:a,selectChange:r}}const P3={class:"flex flex-col h-full text-xs"},M3={class:"flex items-center"},U3={class:"!w-[114px]"},z3={class:"text-hy-text-main"},W3={key:0,class:"w-full text-hy-text-main"},j3={class:"w-full h-full flex items-center"},H3={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},Y3={key:0,class:"w-full"},G3={class:"w-full h-full flex items-center"},q3={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},Wr=e.defineComponent({__name:"org-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=R3({emit:s,props:a,params:{selectFilterType:w,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:x("filterByDepartmentName")}],w.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],w.value=k.value[0].value),a.defaultGetData||h()}),(E,D)=>{const T=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),L=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),F=e.resolveComponent("el-input"),M=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",P3,[e.createElementVNode("div",M3,[e.createVNode(F,{modelValue:e.unref(g),"onUpdate:modelValue":D[1]||(D[1]=z=>e.isRef(g)?g.value=z:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",z3,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(L,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",U3,[e.createVNode(B,{modelValue:e.unref(w),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(w)?w.value=z:null),class:"!m-0",size:"small",onChange:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(z,U)=>(e.openBlock(),e.createBlock(T,{key:`${U}_selectFilterList`,label:z.label,value:z.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(E.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":1,"highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,"default-checked-list":a.defaultCheckedList,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:z})=>[e.renderSlot(E.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",W3,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",j3,[e.createElementVNode("div",H3,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)])])]),_:2},1032,["content"])]))]),"other-content":e.withCtx(({row:z})=>[e.renderSlot(E.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Y3,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",G3,[e.createElementVNode("div",q3,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)])])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function K3({emit:t}){const n=e.ref(!1);e.ref([]);const o=e.ref([]),a=e.ref("");e.ref(400),e.ref(null);const s=e.ref(null);e.ref();const l=e.ref();e.watch(()=>a.value,m=>{a.value=m.replace(/\s/g,"")});function r(){c([]),l.value.setSelectedList(o.value),p(!1)}function i(m){o.value.splice(m,1),l.value.setSelectedList(o.value)}function c(m=[]){o.value=[...m],l.value.setSelectedList(o.value)}function p(m){n.value=typeof m=="boolean"?m:!n.value,t("on-selectedDataList",o.value)}async function d(){const m=await Dl({spotCheckSupport:1});if(m.code===200)return m.data}function f(m){o.value=m.selectedDataList,t("on-selected-data-list",o.value)}return{setSelectedDataList:c,getData:d,abortController:s,selectedDataList:o,clearSelectedData:r,deleteSelectList:i,onSelectedData:f,hyOrgTreeRef:l}}const X3={class:"flex flex-col w-full h-full"},J3={class:"flex justify-between items-center h-[40px]"},Z3={class:"flex-1"},Q3={class:"text-hy-text-secondary ml-3"},v3={class:"flex-1 flex items-center justify-end"},eP={class:"text-xs"},tP={class:"flex items-center clickBox cursor-pointer"},nP={class:"text-hy-text-primary"},oP=["element-loading-text"],aP={class:"flex-1 bg-hy-dialog-bg-1 rounded flex flex-col"},sP={class:"flex-grow h-0 w-full box-border p-2 equipment vbtTable"},lP={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded flex flex-col ml-2"},rP={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},iP={class:"r-f tac flex flex-col items-center justify-center"},cP={class:"mt-3"},dP={class:"flex-grow w-0 pl-2 box-border truncate"},pP={class:"flex-shrink-0"},fP=e.defineComponent({__name:"select-depart-ment",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=o,{setSelectedDataList:s,getData:l,abortController:r,selectedDataList:i,clearSelectedData:c,deleteSelectList:p,onSelectedData:d,hyOrgTreeRef:f}=K3({emit:a});return e.onUnmounted(()=>{r.value&&r.value.abort()}),n({setSelectedDataList:s,clearSelectedData:c,getData:l}),(m,_)=>{const y=e.resolveComponent("el-button"),u=e.resolveComponent("svg-icon"),N=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",X3,[e.createElementVNode("div",J3,[e.createElementVNode("div",Z3,[e.createTextVNode(e.toDisplayString(e.unref(x)("allDepartments")),1),e.createElementVNode("span",Q3,e.toDisplayString(e.unref(x)("doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt")),1)]),e.createElementVNode("div",v3,[e.withDirectives(e.createVNode(y,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(c)},{default:e.withCtx(()=>[e.createElementVNode("span",eP,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(i).length!==0]]),e.createElementVNode("div",tP,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",nP,e.toDisplayString(e.unref(i).length),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("individual-0")),1)])])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(x)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[e.createElementVNode("div",aP,[e.createElementVNode("div",sP,[e.createVNode(Wr,{ref_key:"hyOrgTreeRef",ref:f,"show-checkbox":!0,"parent-checkbox":!1,"get-data":e.unref(l),"default-checked-list":e.unref(i),onOnSelectedData:e.unref(d)},null,8,["get-data","default-checked-list","onOnSelectedData"])])]),e.createElementVNode("ul",lP,[e.withDirectives(e.createElementVNode("li",rP,[e.createElementVNode("div",iP,[e.createVNode(u,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",cP,e.toDisplayString(e.unref(x)("youHaveNotSelectedADepartmentYet")),1)])],512),[[e.vShow,e.unref(i).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(k,w)=>(e.openBlock(),e.createElementBlock("li",{key:`${k.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border clickBox border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[e.createElementVNode("div",dP,e.toDisplayString(k.companyName||k.groupName||k.orgName),1),e.createElementVNode("div",pP,[e.createVNode(Me,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(x)("delete"),onClick:b=>e.unref(p)(w)},null,8,["tips","onClick"])])]))),128))])],8,oP)),[[N,!1]])])}}});function mP(t){const n=[{type:1,svgName:"sys-deviceIcon-lawEnforcement"},{type:3,svgName:"sys-deviceIcon-dispatchingDesk"},{type:4,svgName:"sys-deviceIcon-dutyDesk"},{type:5,svgName:"sys-deviceIcon-phone"},{type:6,svgName:"sys-deviceIcon-controlTheBall"},{type:7,svgName:"sys-deviceIcon-ipc"},{type:8,svgName:"sys-deviceIcon-safetyHat"},{type:9,svgName:"sys-deviceIcon-flashlight"},{type:10,svgName:"sys-deviceIcon-workCard"},{type:11,svgName:"sys-deviceIcon-vehicle"},{type:12,svgName:"sys-deviceIcon-uav"},{type:13,svgName:"sys-deviceIcon-ipc"},{type:14,svgName:"sys-deviceIcon-obd"}],o=n.findIndex(a=>a.type===t);return o!==-1?n[o].svgName:"sys-deviceIcon-walkieTalkie"}const hP=t=>(e.pushScopeId("data-v-51a5d703"),t=t(),e.popScopeId(),t),uP={class:"flex-shrink-0 mr-1"},_P={class:"flex-grow w-0 overflow-ellipsis overflow-hidden"},gP={class:"deviceName"},yP={key:0,class:"flex-shrink-0 mx-2"},xP={key:0,class:"text-hy-danger text-sm font-bold relative flex-shrink-0"},kP={key:1,class:"deviceType flex-shrink-0"},NP={key:2,class:"deviceType flex-shrink-0"},bP={key:3,class:"deviceType flex-shrink-0"},CP={key:4,class:"deviceType flex-shrink-0"},wP={key:5,class:"deviceType flex-shrink-0"},EP={key:6,class:"deviceType flex-shrink-0"},SP={key:7,class:"text-hy-success flex-shrink-0"},TP={key:1,class:"flex-shrink-0 mx-2"},DP=[hP(()=>e.createElementVNode("span",{class:"shrink-0"},"离线",-1))],fa=be(e.defineComponent({__name:"device-cpns",props:{device:{}},emits:["onClickDevice"],setup(t,{emit:n}){const o=t,a=n,s=e.ref(null);e.watch(()=>o.device,()=>{s.value=o.device}),e.onMounted(()=>{s.value=o.device});function l(r){a("onClickDevice",r)}return(r,i)=>{const c=e.resolveComponent("svg-icon"),p=e.resolveComponent("el-tooltip");return s.value?(e.openBlock(),e.createBlock(p,{key:0,"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:s.value.devName},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"!text-hy-text-main":s.value.onlineState===1},"w-full h-full flex border-box items-center box-border text-hy-info"]),onClick:i[0]||(i[0]=d=>l(s.value))},[e.createElementVNode("div",uP,[e.createVNode(c,{name:e.unref(mP)(s.value.deviceType||s.value.type),width:"20",height:"20",class:"relative top-[2px]"},null,8,["name"])]),e.createElementVNode("div",_P,[e.createElementVNode("span",gP,e.toDisplayString(s.value.devName),1)]),s.value.onlineState===1?(e.openBlock(),e.createElementBlock("div",yP,[s.value.sos===1?(e.openBlock(),e.createElementBlock("span",xP,"SOS")):s.value.intercomGroupTem===1||s.value.intercomCall===1?(e.openBlock(),e.createElementBlock("span",kP,"音频中")):s.value.monitor===1||s.value.beMonitor===1?(e.openBlock(),e.createElementBlock("span",NP,"监控中")):s.value.videoCall===1?(e.openBlock(),e.createElementBlock("span",bP,"通话中")):s.value.videoRecording===1?(e.openBlock(),e.createElementBlock("span",CP,"录像中")):s.value.audioRecording===1?(e.openBlock(),e.createElementBlock("span",wP,"录音中")):s.value.broadcast===1?(e.openBlock(),e.createElementBlock("span",EP,"广播中")):(e.openBlock(),e.createElementBlock("span",SP,"在线"))])):(e.openBlock(),e.createElementBlock("div",TP,DP))],2)]),_:1},8,["content"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-51a5d703"]]);function VP(t){const n=e.ref(t.props),o=e.ref(t.params.selectFilterType),a=e.ref(""),s=e.ref([]),l=e.ref([]),r=e.ref(!1);async function i(){var f;n.value.getData&&((f=n.value.getData())==null||f.then(async m=>{if(!m)return;console.log("selectFilterType.value",o.value);const _=await Pr(a.value,[...m],{disabledIds:n.value.disableDataList.map(y=>`disabled:${y.deviceId}`).toString(),hideDevice:n.value.hideDevice,showOnlineOnly:n.value.showOnlineOnly,hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});s.value=_.children,l.value=_.deviceList,t.params.setViewDepartmentList(_.children)}))}function c(){r.value||(r.value=!0,setTimeout(async()=>{i(),r.value=!1},1e3))}function p(f){if(f.isofn===1)return c();const m=l.value.find(_=>_.deviceId===f.deviceId);if(m)for(const _ in f)m[`${_}`]=f[`${_}`]}function d(){a.value.length&&i()}return{setDeviceStatus:p,getData:i,query:a,selectChange:d,treeDeviceList:l,treeDataList:s}}const $P={class:"flex flex-col h-full text-xs"},BP={class:"flex items-center"},AP={class:"!w-[114px]"},IP={class:"text-hy-text-main"},LP={class:"flex-grow w-0"},FP={class:"flex-shrink-0 mr-2 flex h-full items-center justify-center"},OP={key:0,class:"w-full flex cursor_pointer"},RP={class:"flex items-center flex-grow w-0"},PP={class:"max-w-full overflow-ellipsis overflow-hidden"},MP={class:"flex-shrink-0 mr-2 ml-1"},UP={class:"text-hy-main"},jr=e.defineComponent({__name:"device-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},hideDevice:{type:Boolean,default:!1},showOnlineOnly:{type:Boolean,default:!1},disableDataList:{default:()=>[]},returnDisableDevice:{type:Boolean,default:!0}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,setDeviceStatus:g,query:C,selectChange:E}=VP({emit:s,props:a,params:{selectFilterType:w,setViewDepartmentList:S}});return e.watch(()=>a.showOnlineOnly,()=>{h()}),n({setCheckedKeys:u,setSelectedList:N,setChecked:y,setDeviceStatus:g,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"设备名称、部门名称、设备IMEI进行搜索"}],w.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:x("equipment"),value:3,placeholder:x("filterByDeviceNumberAndDeviceName")}),w.value=k.value[0].value),a.defaultGetData||h()}),(D,T)=>{const B=e.resolveComponent("el-option"),L=e.resolveComponent("el-select"),j=e.resolveComponent("svg-icon"),F=e.resolveComponent("el-button"),M=e.resolveComponent("el-input"),z=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",$P,[e.createElementVNode("div",BP,[e.createVNode(M,{modelValue:e.unref(C),"onUpdate:modelValue":T[1]||(T[1]=U=>e.isRef(C)?C.value=U:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",IP,[e.createVNode(F,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(j,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",AP,[e.createVNode(L,{modelValue:e.unref(w),"onUpdate:modelValue":T[0]||(T[0]=U=>e.isRef(w)?w.value=U:null),class:"!m-0",size:"small",onChange:e.unref(E)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(U,R)=>(e.openBlock(),e.createBlock(B,{key:`${R}_selectFilterList`,label:U.label,value:U.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(D.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":3,"item-select-param":"deviceId","highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"default-checked-list":a.defaultCheckedList,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:U})=>[e.renderSlot(D.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:U}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"text-hy-text-main":U.onlineState===1},"w-full flex h-full"])},[e.createElementVNode("div",LP,[e.createVNode(fa,{device:U},null,8,["device"])]),e.createVNode(z,{"open-delay":1e3,class:"item",content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",FP,[e.createVNode(j,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})],512),[[e.vShow,U.todayFile]])]),_:2},1032,["content"])],2))]),"other-content":e.withCtx(({row:U})=>[e.renderSlot(D.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:U}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",OP,[e.createVNode(z,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:U.companyName||U.groupName||U.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",RP,[e.createElementVNode("span",PP,e.toDisplayString(U.companyName||U.groupName||U.orgName),1),e.withDirectives(e.createElementVNode("span",MP,[e.createTextVNode(" ("),e.createElementVNode("span",UP,e.toDisplayString(U.onlineCountList.length),1),e.createTextVNode("/"+e.toDisplayString(U.childrenDeviceList.length)+") ",1)],512),[[e.vShow,!a.hideDevice]])])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","default-checked-list","show-radio-button","show-checkbox-button","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function zP({emit:t}){const n=e.ref(!1),o=e.ref([]),a=e.ref([]),s=e.ref(""),l=e.ref(null),r=e.ref(null),i=e.ref();e.watch(()=>s.value,N=>{s.value=N.replace(/\s/g,"")});function c(){p([]),i.value.setSelectedList(o.value),t("on-selected-data-list",o.value)}function p(N=[]){console.log("通知",N),o.value=[...N],i.value.setSelectedList(N)}function d(N){if(!N.disabled){if(N.type===3){const k=o.value.findIndex(w=>w.deviceId===N.deviceId);k===-1?o.value.push({...N}):o.value.splice(k,1)}else{clearTimeout(l.value);const k={nonExistent:[],existent:[]},w=N.childrenDeviceList||[];w.length&&(w.forEach(b=>{a.value.findIndex(V=>V.deviceId===b.deviceId)===-1&&(o.value.findIndex($=>$.deviceId===b.deviceId)===-1?k.nonExistent.push({...b}):k.existent.push({...b}))}),k.nonExistent.length?k.nonExistent.forEach(b=>{o.value.push({...b})}):k.existent.forEach(b=>{const S=o.value.findIndex(V=>V.deviceId===b.deviceId);o.value.splice(S,1)}))}t("on-selected-data-list",[...o.value])}}function f(){r.value&&r.value.abort(),r.value=new AbortController}async function m(){n.value=!0;const N=await Dl({spotCheckSupport:1});return f(),N.data}function _(N,k){const w=[{type:1,svgName:"tree-icon-law-enforcement"},{type:3,svgName:"tree-icon-dispatching-desk"},{type:4,svgName:"tree-icon-duty-desk"},{type:5,svgName:"tree-icon-phone"},{type:6,svgName:"tree-icon-control-the-ball"},{type:7,svgName:"tree-icon-ipc"},{type:8,svgName:"tree-icon-safety-hat"},{type:9,svgName:"tree-icon-flashlight"},{type:10,svgName:"tree-icon-work-card"},{type:11,svgName:"tree-icon-vehicle"},{type:12,svgName:"tree-icon-uav"},{type:13,svgName:"tree-icon-ipc"},{type:14,svgName:"tree-icon-obd"}],b=w.findIndex(S=>S.type===N);return b!==-1?y(w[b],k):"tree-icon-walkie-talkie"}function y(N,k){return N.type===7||N.type===13?k===1?N.svgName:`${N}-off-line`:N.svgName}function u(N){o.value=N.selectedDataList,t("on-selected-data-list",o.value)}return{setSelectedDataList:p,getData:m,abortController:r,selectedDataList:o,clearSelectedData:c,deviceClick:d,checkDeviceTypeFn:_,onSelectedData:u,hyDeviceTreeRef:i}}const WP={class:"flex flex-col w-full h-full"},jP={class:"flex justify-between items-center h-[40px]"},HP={class:"flex mr-2"},YP={class:"flex items-center"},GP={class:"text-xs"},qP={class:"flex items-center clickBox cursor-pointer"},KP={class:"text-hy-text-primary"},XP=["element-loading-text"],JP={class:"flex-1 bg-hy-dialog-bg-1 rounded box-border p-2 flex flex-col"},ZP={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded flex flex-col ml-2"},QP={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},vP={class:"flex flex-col justify-center items-center"},e8={class:"mt-3"},t8={class:"flex-grow w-0 pl-2 flex box-border"},n8={class:"truncate flex-grow w-0"},o8={class:"select-none truncate mx-[4px] text-hy-text-main"},a8={class:"flex-shrink-0"},s8=e.defineComponent({__name:"select-device",props:{onlineStateFlag:{default:1},initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=t,s=o,{setSelectedDataList:l,getData:r,abortController:i,selectedDataList:c,clearSelectedData:p,deviceClick:d,checkDeviceTypeFn:f,onSelectedData:m,hyDeviceTreeRef:_}=zP({emit:s});return e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(y,u)=>{const N=e.resolveComponent("el-button"),k=e.resolveComponent("svg-icon"),w=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",WP,[e.createElementVNode("div",jP,[e.createElementVNode("div",HP,e.toDisplayString(e.unref(x)("allDevices")),1),e.createElementVNode("div",YP,[e.withDirectives(e.createVNode(N,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("span",GP,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",qP,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",KP,e.toDisplayString(e.unref(c).length),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("individual-0")),1)])])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(x)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[e.createElementVNode("div",JP,[e.createVNode(jr,{ref_key:"hyDeviceTreeRef",ref:_,"item-size":36,"get-data":e.unref(r),"show-online-only":a.onlineStateFlag===1,"show-checkbox":!0,"hide-org-no-data":!0,"parent-checkbox":!1,onOnSelectedData:e.unref(m)},null,8,["get-data","show-online-only","onOnSelectedData"])]),e.createElementVNode("ul",ZP,[e.withDirectives(e.createElementVNode("li",QP,[e.createElementVNode("div",vP,[e.createVNode(k,{name:"base-no-data","class-name":"!w-[50px] !h-[50px]"}),e.createElementVNode("div",e8,e.toDisplayString(e.unref(x)("youHaveNotSelectedADeviceYet")),1)])],512),[[e.vShow,e.unref(c).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),b=>(e.openBlock(),e.createElementBlock("li",{key:`${b.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border cursor-pointer border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[e.createElementVNode("div",t8,[e.createVNode(k,{name:e.unref(f)(b.deviceType||b.type,b.onlineState),"class-name":"w-[16px] h-[16px]",class:e.normalizeClass(b.onlineState===1?"text-hy-text-main":"text-hy-info")},null,8,["name","class"]),e.createElementVNode("div",n8,[e.createElementVNode("span",o8,e.toDisplayString(b.devName),1)])]),e.createElementVNode("div",a8,[e.createVNode(Me,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(x)("delete"),onClick:S=>e.unref(d)(b)},null,8,["tips","onClick"])])]))),128))])],8,XP)),[[w,!1]])])}}});function l8({emit:t}){const n=e.ref(!1),o=e.ref(!1),a=e.ref(400),s=e.ref({renderSize:30,offsetSize:10}),l=e.ref([]),r=e.ref([]),i=e.ref("");e.ref(400);const c=e.ref(null);e.watch(()=>i.value,w=>{i.value=w.replace(/\s/g,"")});function p(w=[]){w.length!==0&&(w.forEach(b=>{r.value.findIndex(V=>V.id===b.id)===-1&&r.value.push(b)}),e.nextTick(()=>{n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}))}function d(w=[]){r.value=l.value.filter(b=>w.some(S=>S.id===b.id)),t("on-selected-data-list",r.value)}function f(){return[...r.value]}function m(){n.value=!n.value,n.value?r.value=[...l.value]:r.value=[],t("on-selected-data-list",r.value)}function _(w){return r.value.findIndex(S=>S.id===w.id)!==-1?"is-checked":""}async function y(w){const b=r.value.findIndex(S=>S.id===w.id);b===-1?u(w):N(b)}function u(w){r.value.push(w),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}function N(w){r.value.splice(w,1),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}async function k(){o.value=!0;const{code:w,data:b=[]}=await uN({query:i.value,spotCheckSupport:1,onlineState:1});w===200&&(l.value=[],b.forEach(S=>{var V;((V=S.deviceList)==null?void 0:V.length)!==0?l.value.unshift(S):l.value.push(S)}),o.value=!1)}return{checkAll:n,loading:o,treeHeight:a,scrollYRenderConfig:s,deviceList:l,selectedDataList:r,filterValue:i,timeOut:c,addSelectedDataList:p,setSelectedDataList:d,getSelectedDataList:f,setCheckAll:m,judgeSelectedFn:_,deviceClick:y,addSelectList:u,deleteSelectList:N,getData:k}}const r8={class:"flex flex-col w-full h-full"},i8={class:"flex justify-between items-center h-[30px]"},c8={class:"el-checkbox !mr-2"},d8=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],p8={class:"text-hy-text-primary"},f8=["element-loading-text"],m8={class:"flex-1 bg-hy-dialog-bg-1 rounded flex flex-col"},h8={class:"flex items-center justify-center box-border p-[8px_8px_4px]"},u8={class:"text-hy-text-main"},_8={class:"flex-grow h-0 w-full px-2 pb-2 box-border overflow-y-scroll overflow-x-hidden"},g8=["onClick"],y8={class:"flex items-center justify-center"},x8={class:"el-checkbox relative !mr-[6px]"},k8=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],N8={class:"treeDepartment cursor_pointer flex items-center justify-between w-full text-[14px] font-bold text-hy-text-main"},b8={class:"r-f w_100vh flex w-full"},C8={class:"flex-grow w-0 over_one_line truncate"},w8={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded flex flex-col ml-2"},E8={class:"h-full bg-hy-dialog-bg-2 border rounded px-2 box-border border-hy-bg-2 flex justify-center text-hy-text-secondary items-center"},S8={class:"r-f tac flex flex-col justify-center items-center"},T8={class:"mt-3"},D8={class:"flex-grow w-0 pl-2 box-border truncate"},V8={class:"flex-shrink-0"},$8=e.defineComponent({__name:"select-electronic-fence",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=o,{setSelectedDataList:s,getData:l,setCheckAll:r,checkAll:i,selectedDataList:c,loading:p,filterValue:d,deviceList:f,deviceClick:m,judgeSelectedFn:_,deleteSelectList:y}=l8({emit:a});return e.onMounted(async()=>{await l()}),n({setSelectedDataList:s,getData:l}),(u,N)=>{const k=e.resolveComponent("svg-icon"),w=e.resolveComponent("el-button"),b=e.resolveComponent("el-input"),S=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",r8,[e.createElementVNode("div",i8,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("electronicFence")),1),e.createElementVNode("div",{class:"flex items-center clickBox",onClick:N[0]||(N[0]=(...V)=>e.unref(r)&&e.unref(r)(...V))},[e.createElementVNode("div",c8,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(i)},"el-checkbox__input"])},d8,2)]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",p8,e.toDisplayString(e.unref(c).length||0),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("individual-0")),1)])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(x)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[e.createElementVNode("div",m8,[e.createElementVNode("div",h8,[e.createVNode(b,{modelValue:e.unref(d),"onUpdate:modelValue":N[1]||(N[1]=V=>e.isRef(d)?d.value=V:null),placeholder:e.unref(x)("filterByElectronicFenceName"),class:"table-search-main w-[254px] text-[12px]",onClear:N[2]||(N[2]=V=>e.unref(l)()),onKeyup:N[3]||(N[3]=e.withKeys(V=>e.unref(l)(),["enter"]))},{append:e.withCtx(()=>[e.createElementVNode("div",u8,[e.createVNode(w,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(l)},{default:e.withCtx(()=>[e.createVNode(k,{name:"sys-button-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",_8,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),V=>{var $,h;return e.openBlock(),e.createElementBlock("div",{key:V.id,class:"hover:shadow-[0_0_10px_0_inset] bg-hy-dialog-bg-2 hover:shadow-hy-border-1 hover:border-hy-border-1 border-hy-dialog-bg-2 flex-grow flex h-[32px] items-center border rounded my-2 box-border px-2 cursor-pointer",onClick:g=>e.unref(m)(V)},[e.createElementVNode("div",y8,[e.createElementVNode("div",x8,[e.createElementVNode("span",{class:e.normalizeClass([e.unref(_)(V),"el-checkbox__input"])},k8,2)])]),e.createElementVNode("div",N8,[e.createElementVNode("div",b8,[e.createElementVNode("span",C8,e.toDisplayString(V.railName),1),e.withDirectives(e.createElementVNode("span",{class:"flex-shrink-0 ml-1 text-hy-text-main"}," ("+e.toDisplayString(($=V.deviceList)==null?void 0:$.length)+") ",513),[[e.vShow,(h=V.deviceList)==null?void 0:h.length]])])])],8,g8)}),128))])]),e.createElementVNode("ul",w8,[e.withDirectives(e.createElementVNode("li",E8,[e.createElementVNode("div",S8,[e.createVNode(k,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",T8,e.toDisplayString(e.unref(x)("youHavenTSelectedAFenceYet")),1)])],512),[[e.vShow,e.unref(c).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(V,$)=>(e.openBlock(),e.createElementBlock("li",{key:`${V.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border cursor-pointer border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[e.createElementVNode("div",D8,e.toDisplayString(V.railName),1),e.createElementVNode("div",V8,[e.createVNode(Me,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(x)("delete"),onClick:h=>e.unref(y)($)},null,8,["tips","onClick"])])]))),128))])],8,f8)),[[S,e.unref(p)]])])}}});function B8({emit:t}){const n=e.ref([{label:x("templateName"),prop:"templateName",isSearch:!0},{label:x("operation"),width:60,align:"center",slotName:"operator"}]),o=e.ref({checkStyle:null}),a=e.ref(!1),s=e.ref(null),l=e.ref();function r(d){return new Promise((f,m)=>{const{checkStyle:_=null}=d||{};o.value.checkStyle=_,a.value=!0,s.value=f,e.nextTick(()=>{i()})})}function i(){l.value.getTableData()}function c(d){s.value(d),t("on-selected",d),p()}function p(){a.value=!1}return{$t:x,tableColumns:n,requestParams:o,dialogVisible:a,successfulCallback:s,AppTableRef:l,show:r,selected:c,close:p}}const A8={class:"deleteBox c_fff text-hy-text-main"},I8={class:"pos_r dialog_header relative text-hy-text-main text-[18px] text-center p-5 font-bold z-[1px] bg-hy-dialog-bg-1 rounded-[12px_12px_0_0] font-[Helvetica]"},L8={class:"absolute right-[13px] top-[13px]"},F8={class:"dialog_body h-[60vh]"},O8=e.defineComponent({__name:"select-template",emits:["on-selected"],setup(t,{expose:n,emit:o}){const a=o,{$t:s,dialogVisible:l,close:r,tableColumns:i,requestParams:c,selected:p,AppTableRef:d,show:f}=B8({emit:a});return n({show:f}),(m,_)=>{const y=e.resolveComponent("svg-icon"),u=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(u,{modelValue:e.unref(l),"onUpdate:modelValue":_[0]||(_[0]=N=>e.isRef(l)?l.value=N:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"640px"},{default:e.withCtx(()=>[e.createVNode($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",A8,[e.createElementVNode("div",I8,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("spotCheckTemplate")),1),e.createElementVNode("div",L8,[e.createVNode(y,{width:"26",height:"26",name:"icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(r),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",F8,[e.createVNode(Yt,{ref_key:"AppTableRef",ref:d,"pager-count":5,"column-list":e.unref(i),"search-arr":[],"search-form":e.unref(c),"req-url":"spotCheck/template/page","default-get-data":!1},{tableLeft:e.withCtx(()=>[]),operator:e.withCtx(({row:N})=>[e.createVNode(Me,{width:12,height:12,name:"icon-choice",class:"!w-[24px] !h-[24px]",tips:e.unref(s)("edit"),onClick:k=>e.unref(p)(N)},null,8,["tips","onClick"])]),_:1},8,["column-list","search-form"])])])]),_:1})]),_:1},8,["modelValue"])}}});function R8({emit:t}){const n=e.ref({everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1}),o=(J,ee,ie)=>{let le="";for(const Z in n.value)n.value[Z]&&(le+=`${Z.replace(/(^everyday)|(everyday$)/g,"")},`);le.length?ie():ie(new Error(x("pleaseSelectASpecificWeek")))},a=e.ref(null),s=e.ref(!1),l=e.ref(!1),r=e.ref([]),i=e.ref(null),c=e.ref(x("immediatelyInitiateARollCallSpotCheck")),p=e.ref(!1),d=e.ref(null),f=e.ref(!1),m=e.ref({limitNum:10,onlineStateFlag:1,checkType:1,checkScope:1,checkStyle:1,actionType:1,actionTime:5,deviceIdList:[],mapRailIdList:[],orgIdList:[],msgContent:"",playMsg:!1,templateName:"",taskDateType:1,apDateListV2:null,apDtmV2:null}),_=e.ref({limitNum:10,onlineStateFlag:1,actionTime:5,actionType:1,checkScope:1,checkStyle:1,checkType:1,deviceIdList:[],mapRailIdList:[],orgIdList:[],msgContent:"",playMsg:!1,templateName:"",taskDateType:1,apDateListV2:null,apDtmV2:null}),y=e.ref({limitNum:[{required:!0,message:x("pleaseEnterTheRandomNumber"),trigger:"blur"}],templateName:[{required:!0,message:x("pleaseEnterTheTemplateName"),trigger:"blur"}],msgContent:[{required:!0,message:x("pleaseFillInTheMessageToBeSent"),trigger:"blur"}],everydayJson:[{required:!0,validator:o,trigger:"change"}],taskDateTime:[{required:!0,message:x("pleaseSelectTheExecutionTime"),trigger:"change"}],taskDateType:[{required:!0,message:x("pleaseSelectTheExecutionDate"),trigger:"change"}],apDateListV2:[{required:!0,message:x("selectOneOrMoreDates"),trigger:"change"}],apDtmV2:[{required:!0,message:x("pleaseSelectASpecificTimePeriod"),trigger:"change"}]}),u=e.ref(),N=e.ref(),k=e.ref(),w=e.ref(),b=e.ref(),S=e.ref();e.watch(()=>_.value.limitNum,J=>{typeof J=="string"&&(J=J.replace(/[^.\d]/g,""),J=J.replace(".",""),_.value.limitNum=J)}),e.watch(()=>p.value,J=>{B()},{immediate:!0});function V(){u.value.validateField("limitNum")}function $(J){if(J!==_.value.onlineStateFlag)return new Promise((ee,ie)=>{if(r.value.length!==0&&_.value.checkScope===3&&J===1)ft({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("prompt"),tipsContent:`<div><p>${x("switchingTheSpotCheckDeviceWillClearTheSelectedData")}</p><p>${x("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("cancel-0"),closeBtnType:"primary",submitBtnText:x("confirm-3"),submitBtnType:"default"},()=>{const le=L();le&&(le.clearSelectedData(),le.getData()),_.value.onlineStateFlag=J,ee(0)});else{if(_.value.onlineStateFlag=J,_.value.checkScope===3){const le=L();le&&le.getData()}ee(0)}})}function h(J){let ee=_.value.limitNum-0;if(J===1)ee+=1;else{if(ee<=1){Se.error(x("atLeast1RandomDevice"));return}ee-=1}_.value.limitNum=ee}function g(J){const{id:ee=null,checkScope:ie=3,contentState:le=3,onlineStateFlag:Z=1,copyType:O=!1,wrapperClosable:G=!1,title:ne=x("immediatelyInitiateARollCallSpotCheck"),selectedDataList:de=[],successfulCallback:_e=null}=J||{};if(p.value){if(le===1)if(ie===_.value.checkScope){const Ve=L();Ve&&Ve.addSelectedDataList(de)}else T(ie).then(()=>{F([],!0);const Ve=L();Ve&&Ve.setSelectedDataList(de)});else return Se.warning(x("repeat"));return}a.value=_e,l.value=G,i.value=le,c.value=ne,u.value&&u.value.resetFields(),_.value={...m.value},_.value.limitNum=10,_.value.checkScope=ie,_.value.onlineStateFlag=Z,le===1?de.length&&F(de,!0):F([],!0),n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},ee?X(ee,O):C(!0)}function C(J){p.value=typeof J=="boolean"?J:!p.value}function E(){u.value.clearValidate("everydayJson"),u.value.clearValidate("apDateListV2"),u.value.clearValidate("apDtmV2")}function D(J){var ee;(ee=T(J))==null||ee.then(()=>{F([],!0)})}function T(J){if(_.value.checkScope!==J)return new Promise((ee,ie)=>{r.value.length!==0?ft({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("prompt"),tipsContent:`<div><p>${x("switchingTheSpotCheckRangeWillClearTheSelectedData")}</p><p>${x("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("cancel-0"),closeBtnType:"primary",submitBtnText:x("confirm-3"),submitBtnType:"default"},()=>{_.value.checkScope=J,ee(0)}):(_.value.checkScope=J,ee(0))})}function B(){p.value?f.value=!0:(d.value&&(clearTimeout(d.value),d.value=null),d.value=setTimeout(()=>{f.value=p.value,clearTimeout(d.value),d.value=null},500))}function L(){const J=_.value.checkScope;return J===1?N.value:J===2?k.value:J===3?w.value:null}function j(J){const{checkScope:ee=1,mapRailList:ie=[],orgList:le=[],deviceList:Z=[]}=J||{};let O=[];return ee===1&&ie.length?O=ie:ee===2&&le.length?O=le:ee===3&&Z.length&&(O=Z.map(G=>({...G,type:3}))),O||[]}function F(J,ee=!1){r.value=[...J],ee&&e.nextTick(()=>{const ie=L();ie&&ie.setSelectedDataList(J)})}function M(){const J=_.value.checkScope;let ee="",ie=[];return J===1?(ee="mapRailIdList",ie=r.value.map(le=>le.id)):J===2?(ee="orgIdList",ie=r.value.map(le=>le.id)):J===3&&(ee="deviceIdList",ie=r.value.map(le=>le.deviceId)),{dataList:ie,name:ee}}function z(){u.value.validate(J=>{if(J){const ee={..._.value};if(ee.playMsg=ee.playMsg?1:0,ee.checkType===1){const ie=M();if(ee[`${ie.name}`]=ie.dataList,ie.dataList.length===0)return Se.error(x("pleaseSelectTheSpotCheckRange"))}else ee.checkScope=null;e.nextTick(()=>{i.value===2?v(ee):i.value===3?ke(ee):Oe(ee)})}})}function U(J){var ee;J&&((ee=b.value)==null||ee.show(J))}function R(){F([],!0),C(!1),a.value=null}function Y(){R()}function X(J,ee){i.value===2?P(J,ee):i.value===3&&he(J,ee)}async function P(J,ee=!1){s.value=!0;const{code:ie,data:le}=await VO({id:J});if(ie===200){const Z=le;if(le.checkScope,Z.taskDateType===2)Z.weekDate.split(",").forEach(ne=>{ne=Number.parseFloat(ne),ne===1?n.value.everyday1=!0:ne===2?n.value.everyday2=!0:ne===3?n.value.everyday3=!0:ne===4?n.value.everyday4=!0:ne===5?n.value.everyday5=!0:ne===6?n.value.everyday6=!0:ne===7&&(n.value.everyday7=!0)});else if(Z.taskDateType===3){const G=[];Z.apDateList.forEach(ne=>{G.push(ne.apDtm.split(" 00:00:00")[0])}),Z.apDateListV2=G}else Z.taskDateType===4&&(Z.apDtmV2=[Z.apStartDtm,Z.apEndDtm]);Z.taskDateTime=[Z.taskDateStartTime,Z.taskDateEndTime],_.value={...Z,playMsg:Z.playMsg===1},ee&&(_.value.id=null);const O=j(Z);F(O,!0),e.nextTick(()=>{s.value=!1,p.value||C(!0)})}}async function v(J){if(J.taskDateStartTime=_.value.taskDateTime[0],J.taskDateEndTime=_.value.taskDateTime[1],_.value.taskDateType===2){let le="";for(const Z in n.value)n.value[Z]&&(le+=`${Z.replace(/(^everyday)|(everyday$)/g,"")},`);if(le.length===0)return Se.error(x("pleaseSelectASpecificWeek"));J.weekDate=le.substring(le.length-1,0)}else if(_.value.taskDateType===3){if(!_.value.apDateListV2||_.value.apDateListV2.length===0)return Se.error(x("pleaseSelectADate"));J.apDateList=_.value.apDateListV2.map(le=>({apDtm:`${le} 00:00:00`}))}else if(_.value.taskDateType===4){if(!_.value.apDtmV2||_.value.apDtmV2.length===0)return Se.error(x("pleaseSelectATimePeriod"));J.apStartDtm=`${_.value.apDtmV2[0]} 00:00:00`,J.apEndDtm=`${_.value.apDtmV2[1]} 00:00:00`}const{code:ee,data:ie={}}=await $O(J);ee===200&&(Se.success(x("operationSuccessful")),t("on-submit"),a.value&&a.value(),R())}async function Te(){const{id:J}=await S.value.show({checkStyle:i.value===2?1:null});J&&(u.value&&u.value.resetFields(),_.value={...m.value},n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},r.value=[],await he(J,!0),Se.success(x("templateApplied")))}async function he(J,ee=!1){s.value=!0;const{code:ie,data:le}=await BO({id:J});if(ie===200){_.value={...le,playMsg:le.playMsg===1},ee&&(_.value.id=null),console.log("详情数据",_.value);const Z=j(_.value);console.log("模板回显数据",Z),e.nextTick(()=>{s.value=!1,p.value||C(!0),e.nextTick(()=>{F(Z,!0)})})}}async function ke(J){const{code:ee}=await AO(J);ee===200&&(Se.success(x("operationSuccessful")),t("on-submit"),a.value&&a.value(),R())}async function Oe(J){const{code:ee,data:ie={}}=await IO(J);ee===200&&(Se.success(x("operationSuccessful")),a.value&&a.value(),t("on-submit"),U(ie.id),R())}return{dialogVisible:p,animationVisible:f,animationTime:d,setDialogVisible:C,setAnimationVisible:B,setCheckScope:T,setSelectedDataList:F,getSelectedDataList:M,onSubmit:z,viewSpotCheckShow:U,close:R,onClose:Y,detail:X,selectTemplateShow:Te,taskDateTypeFn:E,changeCheckScope:D,everydayJson:n,formRef:u,loading:s,selectElectronicFenceRef:N,selectDepartmentRef:k,selectDeviceRef:w,selectTemplateRef:S,viewSpotCheckRef:b,contentState:i,title:c,wrapperClosable:l,form:_,rules:y,$t:x,changeOnlineStateFlag:$,blurLimitNum:V,setRandomNumber:h,selectedDataList:r,show:g}}const Fe=t=>(e.pushScopeId("data-v-1e4e7e93"),t=t(),e.popScopeId(),t),P8={key:0,class:"fixed top-0 left-0 bg-[rgba(0,0,0,0.5)] w-full h-full z-[100]"},M8={class:"w-[1080px] h-full"},U8={class:"w-full h-full px-[20px] box-border flex flex-col text-hy-text-main text-xs"},z8={class:"flex justify-between items-center h-[60px]"},W8={class:"font-bold text-lg"},j8=["element-loading-text"],H8={key:0,class:"flex mb-2 flex-shrink-0 rounded bg-backgroundv2 px-3 pt-2 h-[90px] box-border items-center"},Y8={class:"text-sm h-[30px] flex items-center"},G8=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),q8={key:1,class:"flex mb-2 flex-shrink-0 rounded bg-hy-dialog-bg-2 px-3 pt-2 h-[90px] box-border items-center"},K8={class:"flex-1 mr-4"},X8={class:"text-sm h-[30px] flex items-center"},J8=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Z8={class:"text-sm h-[30px] flex items-center"},Q8=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),v8={class:"everydayBox leading-[20px]"},eM={class:"text-xs"},tM={class:"text-xs"},nM={class:"text-xs"},oM={class:"text-xs"},aM={class:"text-xs"},sM={class:"text-xs"},lM={class:"text-xs"},rM={class:"text-sm h-[30px] flex items-center"},iM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),cM={class:"w-full"},dM={class:"text-sm h-[30px] flex items-center"},pM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),fM={class:"flex-1 min-w-[220px]"},mM={class:"text-sm h-[30px] flex items-center"},hM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),uM={class:"flex items-center flex-grow h-0"},_M={class:"flex-grow w-0 h-full flex flex-col"},gM={class:"flex"},yM={class:"text-sm h-[30px] flex items-center"},xM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),kM={class:"text-sm h-[30px] flex items-center"},NM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),bM={class:"text-sm h-[30px] flex items-center"},CM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),wM={class:"test h-[32px] flex border border-hy-border-2 rounded box-border overflow-hidden bg-hy-dialog-bg-2 w-full"},EM={class:"flex-grow w-0 box-border px-1 flex items-center justify-center"},SM=["placeholder"],TM={class:"flex flex-col w-[32px] text-auxiliary border-l border-hy-border-2"},DM={class:"text-sm h-[30px] flex items-center"},VM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),$M={class:"flex-grow h-0 bg-hy-dialog-bg-4 shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 rounded-[6px] flex items-center justify-center"},BM={class:"tac text-hy-text-secondary text-center"},AM={class:"mt_10 mt-[10px]"},IM={class:""},LM={class:"mt-1"},FM={class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},OM={class:"flex justify-between h-[40px] items-center"},RM={class:"fs_12 p-[10px_20px] text-[12px]"},PM={class:"r-f mb_10 flex mb-[10px]"},MM=Fe(()=>e.createElementVNode("span",null,"1、",-1)),UM={class:"r-f mb_10 flex mb-[10px]"},zM=Fe(()=>e.createElementVNode("span",null,"2、",-1)),WM={class:"r-f mb_10 flex mb-[10px]"},jM=Fe(()=>e.createElementVNode("span",null,"3、",-1)),HM={class:"fs_12 cursor_pointer !text-hy-text-primary cursor-pointer text-[12px]"},YM={class:"flex-grow h-0 flex"},GM={class:"flex-1"},qM=Fe(()=>e.createElementVNode("div",{class:"mx-[20px] w-[2px] h-[96%] rounded bg-hy-border-2 flex-shrink-0"},null,-1)),KM={class:"w-[33%] h-full flex flex-col"},XM={class:"text-sm h-[30px] flex items-center"},JM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),ZM={class:"text-sm h-[30px] flex items-center"},QM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),vM={class:"flex-grow h-0 bg-hy-dialog-bg-4 shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 rounded-[6px] flex items-center justify-center"},e6={class:"tac text-hy-text-secondary text-center"},t6={class:"mt-[10px]"},n6={class:"mt-1"},o6={key:0,class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},a6={class:"flex-grow h-0"},s6={class:"text-xs"},l6={class:"mb-2"},r6={class:"text-sm h-[30px] flex items-center"},i6=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),c6={class:"mb-2"},d6={class:"text-sm h-[30px] flex items-center"},p6=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),f6={class:"flex items-center justify-between h-[80px]"},m6={class:"text-hy-text-secondary flex items-center"},h6=be(e.defineComponent({__name:"edit-spot-check",emits:["on-submit"],setup(t,{expose:n,emit:o}){const a=o,{$t:s,dialogVisible:l,wrapperClosable:r,animationVisible:i,title:c,onClose:p,loading:d,form:f,rules:m,contentState:_,taskDateTypeFn:y,everydayJson:u,changeOnlineStateFlag:N,blurLimitNum:k,setRandomNumber:w,changeCheckScope:b,selectedDataList:S,setSelectedDataList:V,selectTemplateShow:$,onSubmit:h,selectElectronicFenceRef:g,selectDepartmentRef:C,selectDeviceRef:E,selectTemplateRef:D,viewSpotCheckRef:T,show:B,formRef:L}=R8({emit:a});return n({show:B}),(j,F)=>{const M=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-input"),U=e.resolveComponent("el-form-item"),R=e.resolveComponent("el-option"),Y=e.resolveComponent("el-select"),X=e.resolveComponent("el-checkbox"),P=e.resolveComponent("el-date-picker"),v=e.resolveComponent("el-time-picker"),Te=bO,he=e.resolveComponent("el-icon"),ke=yO,Oe=e.resolveComponent("el-popover"),J=e.resolveComponent("el-form"),ee=$t,ie=e.resolveComponent("el-button"),le=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",null,[e.unref(r)&&e.unref(l)?(e.openBlock(),e.createElementBlock("div",P8)):e.createCommentVNode("",!0),e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([{hide:!e.unref(l),display:e.unref(l)},"duration-500 bg-hy-dialog-bg-1 rounded-[12px_0_0_12px] border-r-0 border-hy-border-1 fixed right-0 top-[54%] h-[87%] -translate-y-1/2 z-[101] overflow-hidden"]),style:{"animation-iteration-count":"1"}},[e.createElementVNode("div",M8,[e.createElementVNode("div",U8,[e.createElementVNode("div",z8,[e.createElementVNode("div",W8,e.toDisplayString(e.unref(c)),1),e.createVNode(M,{name:"base-sign-out","class-name":"clickBox !w-[28px] !h-[28px]",onClick:e.unref(p)},null,8,["onClick"])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(s)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0"},[e.createVNode(J,{ref_key:"formRef",ref:L,model:e.unref(f),rules:e.unref(m),"label-width":"0px",class:"w-full h-full flex flex-col"},{default:e.withCtx(()=>[e.unref(_)===3?(e.openBlock(),e.createElementBlock("div",H8,[e.createVNode(U,{prop:"templateName",class:"w-full"},{default:e.withCtx(()=>[e.createElementVNode("div",Y8,[e.createTextVNode(e.toDisplayString(e.unref(s)("templateName")),1),G8]),e.createVNode(z,{modelValue:e.unref(f).templateName,"onUpdate:modelValue":F[0]||(F[0]=Z=>e.unref(f).templateName=Z),placeholder:e.unref(s)("pleaseEnterTheTemplateName"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})])):e.unref(_)===2?(e.openBlock(),e.createElementBlock("div",q8,[e.createElementVNode("div",K8,[e.createVNode(U,{prop:"taskDateType"},{default:e.withCtx(()=>[e.createElementVNode("div",X8,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionDate")),1),J8]),e.createVNode(Y,{modelValue:e.unref(f).taskDateType,"onUpdate:modelValue":F[1]||(F[1]=Z=>e.unref(f).taskDateType=Z),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheExecutionDate"),onChange:e.unref(y)},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("everyday"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("specifyAWeek"),value:2},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("specifyADate"),value:3},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("specifyATimePeriod"),value:4},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])]),_:1})]),e.createElementVNode("div",null,[e.unref(f).taskDateType===2?(e.openBlock(),e.createBlock(U,{key:0,prop:"everydayJson",class:"max-w-[360px]"},{default:e.withCtx(()=>[e.createElementVNode("div",Z8,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyAWeek")),1),Q8]),e.createElementVNode("div",v8,[e.createVNode(X,{modelValue:e.unref(u).everyday1,"onUpdate:modelValue":F[2]||(F[2]=Z=>e.unref(u).everyday1=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",eM,e.toDisplayString(e.unref(s)("monday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday2,"onUpdate:modelValue":F[3]||(F[3]=Z=>e.unref(u).everyday2=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",tM,e.toDisplayString(e.unref(s)("tuesday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday3,"onUpdate:modelValue":F[4]||(F[4]=Z=>e.unref(u).everyday3=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",nM,e.toDisplayString(e.unref(s)("wednesday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday4,"onUpdate:modelValue":F[5]||(F[5]=Z=>e.unref(u).everyday4=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",oM,e.toDisplayString(e.unref(s)("thursday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday5,"onUpdate:modelValue":F[6]||(F[6]=Z=>e.unref(u).everyday5=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",aM,e.toDisplayString(e.unref(s)("friday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday6,"onUpdate:modelValue":F[7]||(F[7]=Z=>e.unref(u).everyday6=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",sM,e.toDisplayString(e.unref(s)("saturday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday7,"onUpdate:modelValue":F[8]||(F[8]=Z=>e.unref(u).everyday7=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",lM,e.toDisplayString(e.unref(s)("sunday")),1)]),_:1},8,["modelValue"])])]),_:1})):e.unref(f).taskDateType===3?(e.openBlock(),e.createBlock(U,{key:1,prop:"apDateListV2",class:"mr-4"},{default:e.withCtx(()=>[e.createElementVNode("div",rM,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyADate")),1),iM]),e.createElementVNode("div",cM,[e.createVNode(P,{modelValue:e.unref(f).apDateListV2,"onUpdate:modelValue":F[9]||(F[9]=Z=>e.unref(f).apDateListV2=Z),type:"dates",format:`YYYY ${e.unref(s)("yearMMMonthDDDay")}`,class:"!w-full !box-border","value-format":"YYYY-MM-DD",placeholder:e.unref(s)("selectOneOrMoreDates")},null,8,["modelValue","format","placeholder"])])]),_:1})):e.unref(f).taskDateType===4?(e.openBlock(),e.createBlock(U,{key:2,prop:"apDtmV2",class:"mr-4 w-[340px]"},{default:e.withCtx(()=>[e.createElementVNode("div",dM,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyATimePeriod")),1),pM]),e.createElementVNode("div",null,[e.createVNode(P,{modelValue:e.unref(f).apDtmV2,"onUpdate:modelValue":F[10]||(F[10]=Z=>e.unref(f).apDtmV2=Z),type:"daterange",class:"!w-full !box-border !text-[13px]",format:`YYYY ${e.unref(s)("yearMMMonthDDDay")}`,"value-format":"YYYY-MM-DD","range-separator":e.unref(s)("to"),"start-placeholder":e.unref(s)("startDate"),"end-placeholder":e.unref(s)("endDate")},null,8,["modelValue","format","range-separator","start-placeholder","end-placeholder"])])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",fM,[e.createVNode(U,{prop:"taskDateTime"},{default:e.withCtx(()=>[e.createElementVNode("div",mM,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionTime-0")),1),hM]),e.createVNode(v,{modelValue:e.unref(f).taskDateTime,"onUpdate:modelValue":F[11]||(F[11]=Z=>e.unref(f).taskDateTime=Z),"is-range":"",class:"!w-full","range-separator":e.unref(s)("to"),"value-format":"HH:mm:ss","start-placeholder":e.unref(s)("startTime"),"end-placeholder":e.unref(s)("endTime"),placeholder:e.unref(s)("selectATimeRange")},null,8,["modelValue","range-separator","start-placeholder","end-placeholder","placeholder"])]),_:1})])])):e.createCommentVNode("",!0),e.createElementVNode("div",uM,[e.createElementVNode("div",_M,[e.createElementVNode("div",gM,[e.createVNode(U,{class:"flex-1"},{default:e.withCtx(()=>[e.createElementVNode("div",yM,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckType")),1),xM]),e.createVNode(Y,{modelValue:e.unref(f).checkType,"onUpdate:modelValue":F[12]||(F[12]=Z=>e.unref(f).checkType=Z),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheSpotCheckType")},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("rangeCheck"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("randomCheck"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),_:1}),e.createVNode(U,{class:"flex-1 ml-1 pl-1"},{default:e.withCtx(()=>[e.createElementVNode("div",kM,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckDevice")),1),NM]),e.createVNode(Y,{"model-value":e.unref(f).onlineStateFlag,class:"w-full",placeholder:e.unref(s)("pleaseSelectTheSpotCheckDevice"),onChange:e.unref(N)},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("spotCheckOnlyOnlineDevices"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("spotCheckAllDevices"),value:2},null,8,["label"])]),_:1},8,["model-value","placeholder","onChange"])]),_:1}),e.unref(f).checkType===2?(e.openBlock(),e.createBlock(U,{key:0,class:"flex-1 ml-1 pl-1",prop:"limitNum"},{default:e.withCtx(()=>[e.createElementVNode("div",bM,[e.createTextVNode(e.toDisplayString(e.unref(s)("randomNumber")),1),CM]),e.createElementVNode("div",wM,[e.createElementVNode("div",EM,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":F[13]||(F[13]=Z=>e.unref(f).limitNum=Z),type:"text",style:{outline:"none"},class:"bg-hy-dialog-bg-2 w-full h-full",placeholder:e.unref(s)("pleaseEnterTheRandomNumber"),onBlur:F[14]||(F[14]=(...Z)=>e.unref(k)&&e.unref(k)(...Z))},null,40,SM),[[e.vModelText,e.unref(f).limitNum]])]),e.createElementVNode("div",TM,[e.createElementVNode("div",{class:"flex-1 flex items-center justify-center clickBox cursor-pointer",onClick:F[15]||(F[15]=Z=>e.unref(w)(1))},[e.createVNode(he,null,{default:e.withCtx(()=>[e.createVNode(Te)]),_:1})]),e.createElementVNode("div",{class:"flex-1 border-t border-hy-border-2 flex items-center justify-center cursor-pointer clickBox",onClick:F[16]||(F[16]=Z=>e.unref(w)(2))},[e.createVNode(he,null,{default:e.withCtx(()=>[e.createVNode(ke)]),_:1})])])])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",DM,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckRange")),1),VM]),e.withDirectives(e.createElementVNode("div",$M,[e.createElementVNode("div",BM,[e.createVNode(M,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",AM,[e.createElementVNode("p",IM,e.toDisplayString(e.unref(s)("youDoNotNeedToSelectARangeAndDeviceForRandomCheck")),1),e.createElementVNode("p",LM,e.toDisplayString(e.unref(s)("theSystemWillHelpYouSelectRandomly")),1)])])],512),[[e.vShow,e.unref(f).checkType===2]]),e.withDirectives(e.createElementVNode("div",FM,[e.createElementVNode("div",OM,[e.createElementVNode("div",null,[e.createVNode(Y,{"model-value":e.unref(f).checkScope,class:"w-[160px]",placeholder:e.unref(s)("pleaseSelect"),onChange:e.unref(b)},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("selectAnArea"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("selectADepartment"),value:2},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("selectADevice"),value:3},null,8,["label"])]),_:1},8,["model-value","placeholder","onChange"])]),e.createElementVNode("div",null,[e.createVNode(Oe,{"open-delay":500,placement:"bottom-start","popper-class":"popover_echarts",trigger:"hover",width:"200"},{reference:e.withCtx(()=>[e.createElementVNode("span",HM,[e.createVNode(M,{name:"base-help","class-name":"svgBox ml-1 !w-[12px] !h-[12px]"}),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("help")),1)])]),default:e.withCtx(()=>[e.createElementVNode("ul",RM,[e.createElementVNode("li",PM,[MM,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea")),1)]),e.createElementVNode("li",UM,[zM,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment")),1)]),e.createElementVNode("li",WM,[jM,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck")),1)])])]),_:1})])]),e.createElementVNode("div",YM,[e.createElementVNode("div",GM,[e.unref(f).checkScope===1?(e.openBlock(),e.createBlock($8,{key:0,ref_key:"selectElectronicFenceRef",ref:g,"init-selected-data-list":e.unref(S),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(f).checkScope===2?(e.openBlock(),e.createBlock(fP,{key:1,ref_key:"selectDepartmentRef",ref:C,"init-selected-data-list":e.unref(S),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(f).checkScope===3?(e.openBlock(),e.createBlock(s8,{key:2,ref_key:"selectDeviceRef",ref:E,"init-selected-data-list":e.unref(S),"online-state-flag":e.unref(f).onlineStateFlag,onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","online-state-flag","onOnSelectedDataList"])):e.createCommentVNode("",!0)])])],512),[[e.vShow,e.unref(f).checkType===1]])]),qM,e.createElementVNode("div",KM,[e.createVNode(U,null,{default:e.withCtx(()=>[e.createElementVNode("div",XM,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckMethod")),1),JM]),e.createVNode(Y,{modelValue:e.unref(f).checkStyle,"onUpdate:modelValue":F[17]||(F[17]=Z=>e.unref(f).checkStyle=Z),class:"w-full",disabled:e.unref(_)===2,placeholder:e.unref(s)("pleaseSelectTheSpotCheckMethod")},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("message"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("call"),value:2},null,8,["label"])]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),e.createElementVNode("div",ZM,[e.createTextVNode(e.toDisplayString(e.unref(s)("messageContent")),1),QM]),e.withDirectives(e.createElementVNode("div",vM,[e.createElementVNode("div",e6,[e.createVNode(M,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",t6,[e.createElementVNode("p",null,e.toDisplayString(e.unref(s)("callDoesNotRequireYouToEnterTheMessageContent")),1),e.createElementVNode("p",n6,e.toDisplayString(e.unref(s)("spotCheckWillBeConductedByIntercomAnswering")),1)])])],512),[[e.vShow,e.unref(f).checkStyle===2]]),e.unref(f).checkStyle===1?(e.openBlock(),e.createElementBlock("div",o6,[e.createElementVNode("div",a6,[e.createVNode(U,{prop:"msgContent"},{default:e.withCtx(()=>[e.createVNode(z,{modelValue:e.unref(f).msgContent,"onUpdate:modelValue":F[18]||(F[18]=Z=>e.unref(f).msgContent=Z),type:"textarea",placeholder:e.unref(s)("pleaseFillInTheMessageToBeSent"),maxlength:"100",resize:"none",autosize:{minRows:e.unref(_)===1?14:10},"show-word-limit":""},null,8,["modelValue","placeholder","autosize"])]),_:1}),e.createVNode(X,{modelValue:e.unref(f).playMsg,"onUpdate:modelValue":F[19]||(F[19]=Z=>e.unref(f).playMsg=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",s6,e.toDisplayString(e.unref(s)("requiresTTSVoiceBroadcastOnTheDevice")),1)]),_:1},8,["modelValue"])]),e.createElementVNode("div",l6,[e.createElementVNode("div",r6,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerMethod")),1),i6]),e.createVNode(Y,{modelValue:e.unref(f).actionType,"onUpdate:modelValue":F[20]||(F[20]=Z=>e.unref(f).actionType=Z),class:"w-full",placeholder:e.unref(s)("pleaseSelect")},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("punchIn"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("reply"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",c6,[e.createElementVNode("div",d6,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerTime")),1),p6]),e.createVNode(Y,{modelValue:e.unref(f).actionTime,"onUpdate:modelValue":F[21]||(F[21]=Z=>e.unref(f).actionTime=Z),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheAnswerTime")},{default:e.withCtx(()=>[e.createVNode(R,{label:"5s",value:5}),e.createVNode(R,{label:"10s",value:10}),e.createVNode(R,{label:"15s",value:15}),e.createVNode(R,{label:"30s",value:30}),e.createVNode(R,{label:"60s",value:60})]),_:1},8,["modelValue","placeholder"])])])):e.createCommentVNode("",!0)])])]),_:1},8,["model","rules"])],8,j8)),[[le,e.unref(d)]]),e.createElementVNode("div",f6,[e.createElementVNode("div",m6,[e.createVNode(he,{class:"text-sm mr-1"},{default:e.withCtx(()=>[e.createVNode(ee)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("youCanApplyTheSpotCheckTemplateToQuicklyFillInTheContent")),1)]),e.createElementVNode("div",null,[e.unref(_)!==3?(e.openBlock(),e.createBlock(ie,{key:0,class:"button_function buttonBox",onClick:e.unref($)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckTemplate")),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.createVNode(ie,{type:"primary",class:"button_default buttonBox",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(ie,{class:"button_function buttonBox",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("confirm")),1)]),_:1},8,["onClick"])])])])]),e.createVNode(O8,{ref_key:"selectTemplateRef",ref:D},null,512)],2)):e.createCommentVNode("",!0),e.createVNode(S3,{ref_key:"viewSpotCheckRef",ref:T},null,512)])}}}),[["__scopeId","data-v-1e4e7e93"]]);function u6(t){return oe.post({url:"orgGroup/detail",data:t,isFormData:!0})}function _6(){const t=e.ref({}),n=e.ref(null),o=e.ref({}),a=e.ref(1),s=e.ref([{label:x("spotCheckInformation"),value:1},{label:x("spotCheckStatus"),value:2}]),l=e.ref(0),r=e.ref([{label:x("all"),value:0},{label:x("completed-0"),value:3},{label:x("uncompleted-0"),value:4}]),i=e.ref([]),c=e.ref([]),p=e.ref(!1),d=e.ref(),f=e.computed(()=>{const h=r.value.findIndex(g=>g.value===l.value);return h!==-1?Math.ceil(h*(100/r.value.length)):0}),m=e.computed(()=>{const h=s.value.findIndex(g=>g.value===a.value);return h!==-1?Math.ceil(h*(100/s.value.length)):0});async function _(h){if(!h)return;const{code:g,data:C}=await u6({id:h});g===200&&(o.value=C)}function y(){var h;(h=d.value)==null||h.getData(l.value)}function u(h){l.value=h,e.nextTick(()=>{y()})}function N(h){a.value=h}function k(h){}function w(h={}){const{beReceiveNum:g=0,receivingNum:C=0,finishNum:E=0,notFinishNum:D=0}=h;t.value.beReceiveNum=g,t.value.receivingNum=C,t.value.finishNum=E,t.value.notFinishNum=D}function b(h=[]){}function S(h){t.value={actionType:1,id:12},N(1),u(0),V(h),p.value=!0}async function V(h){const{code:g,data:C={}}=await Lr({id:h,getMapRail:1,getOrg:1});g===200&&(t.value=C,i.value=C.orgNameList||[],c.value=C.railNameList||[],t.value.checkNum,e.nextTick(()=>{C.checkStyle===2&&(n.value=C.groupId,_(n.value),t.value.actionType=null),p.value=!0}))}function $(){p.value=!1}return{form:t,groupId:n,orgGroupInsertTemp:o,navigationStatus:a,navigationList:s,checkStatus:l,checkStatusList:r,orgNameList:i,railNameList:c,dialogVisible:p,spotCheckTaskDeviceRef:d,checkStatusProgress:f,navigationStatusProgress:m,setCheckStatus:u,setNavigationStatus:N,setLoading:k,spotCheckTaskDeviceCountStatus:w,spotCheckTaskDeviceChange:b,show:S,detail:V,close:$}}const g6={class:"deleteBox c_fff text-hy-text-main"},y6={class:"pos_r dialog_header relative text-hy-text-main text-[18px] text-center p-[20px] font-bold z-[1px] bg-hy-dialog-bg-1 rounded-[12px_12px_0_0] font-[Helvetica]"},x6={class:"dialog_body pb-[30px] h-[60vh] flex flex-col text-main text-xs !px-0"},k6={class:"flex items-center justify-center mb-[16px]"},N6={class:"relative flex-shrink-0"},b6={class:"relative text-sm h-[36px] !leading-[36px] text-center border border-hy-bg-2 rounded text-hy-text-secondary flex overflow-hidden"},C6=["onClick"],w6={class:"flex flex-grow h-0 px-4 box-border"},E6={class:"w-full h-full box-border px-2"},S6={class:"w-full h-full bg-hy-dialog-bg-2 rounded px-3 py-1 box-border overflow-x-hidden overflow-y-auto"},T6={class:"mb-2"},D6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},V6={class:"text-hy-text-secondary"},$6={class:"mb-2"},B6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},A6={class:"mb-2"},I6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},L6={class:"mb-2"},F6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},O6={class:"mb-2"},R6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},P6={key:0,class:"mb-2"},M6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},U6={key:0},z6={key:1},W6={key:2},j6={key:0},H6={key:0},Y6={key:1},G6={key:0},q6={key:2},K6={key:1,class:"mb-2"},X6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},J6={key:0,class:"py-1 box-border h-full bg-hy-dialog-bg-3 rounded"},Z6={class:"w-full h-[34px] px-2 box-border flex justify-between items-center"},Q6={key:0,class:"ml-2 border-[2px] box-border border-hy-border-2 flex items-center justify-center h-[26px] px-2 rounded"},v6={class:"h-[40%] box-border px-2 mt-1"},e5={class:"w-full h-full box-border bg-hy-dialog-bg-2 rounded p-2 overflow-y-auto overflow-x-hidden"},t5={class:"flex px-2 mt-1"},n5={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center mr-2"},o5={class:"text-hy-text-secondary"},a5={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center"},s5={class:"text-hy-text-secondary"},l5={class:"font-bold"},r5={key:1,class:"h-full py-1 bg-hy-dialog-bg-3 rounded"},i5={class:"w-full h-full flex items-center justify-center text-hy-text-secondary box-border"},c5={class:"r-f tac flex flex-col items-center justify-center text-center text-sm"},d5={class:"mt-3"},p5={class:"mt-1"},f5={class:"flex flex-grow h-0 px-4 box-border"},m5={class:"text-xs px-2 leading-[22px]"},h5={class:"flex w-full"},u5={class:"flex-shrink-0"},_5={class:"text-right font-bold flex-grow w-0"},g5={class:"flex w-full"},y5={class:"flex-shrink-0 tracking-[4px]"},x5={class:"text-right font-bold flex-grow w-0"},k5={class:"flex w-full"},N5={class:"flex-shrink-0 tracking-[4px]"},b5={class:"text-right font-bold flex-grow w-0"},C5={class:"flex w-full"},w5={class:"flex-shrink-0 tracking-[4px]"},E5={class:"text-right font-bold flex-grow w-0 text-hy-success"},S5={class:"flex w-full"},T5={class:"flex-shrink-0 tracking-[4px]"},D5={class:"text-right font-bold flex-grow w-0 text-hy-danger"},V5={class:"flex-1 flex"},$5={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},B5={class:"flex-grow w-0 text-center truncate"},A5={class:"flex-1 flex"},I5={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},L5={class:"flex-grow w-0 text-center text-hy-success truncate"},F5={class:"flex-1 flex"},O5={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},R5={class:"flex-grow w-0 text-center text-hy-danger truncate"},P5={class:"relative mt-3 mb-2 min-w-[160px]"},M5={class:"relative h-[26px] !leading-[26px] text-center border border-hy-border-2 rounded text-hy-text-secondary text-xs flex overflow-hidden"},U5=["onClick"],z5={class:"flex-grow h-0 px-2 overflow-x-hidden overflow-y-auto"},W5=e.createElementVNode("div",{class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},null,-1),j5={key:1,class:"w-full shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},H5={class:"r-f tac flex flex-col justify-center items-center"},Y5={class:"mt-3 text-sm"},G5=e.defineComponent({__name:"spot-check-details",setup(t,{expose:n}){const{dialogVisible:o,checkStatus:a,checkStatusList:s,checkStatusProgress:l,close:r,form:i,navigationList:c,navigationStatus:p,navigationStatusProgress:d,orgGroupInsertTemp:f,orgNameList:m,railNameList:_,setCheckStatus:y,setNavigationStatus:u,spotCheckTaskDeviceChange:N,spotCheckTaskDeviceCountStatus:k,show:w,spotCheckTaskDeviceRef:b}=_6();return n({show:w}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-col"),g=e.resolveComponent("el-row"),C=e.resolveComponent("el-popover"),E=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(E,{modelValue:e.unref(o),"onUpdate:modelValue":V[1]||(V[1]=D=>e.isRef(o)?o.value=D:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"820px"},{default:e.withCtx(()=>[e.createElementVNode("div",g6,[e.createElementVNode("div",y6,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("spotCheckDetails")),1),e.createElementVNode("div",{class:"iconCloseBox clickBox closeBox absolute top-[-2px] right-[-2px] cursor-pointer",onClick:V[0]||(V[0]=(...D)=>e.unref(r)&&e.unref(r)(...D))},[e.createVNode($,{name:"icon-close",width:"26",height:"26","class-name":"svgBox click-box text-hy-text-danger"})])]),e.createElementVNode("div",x6,[e.createElementVNode("div",k6,[e.createElementVNode("div",N6,[e.createElementVNode("div",{style:e.normalizeStyle([{left:`${e.unref(d)}%`},{background:"linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%)"}]),class:"rounded-[4px_4px_0_0] absolute top-0 left-0 w-[96px] h-full duration-500"},null,4),e.createElementVNode("ul",b6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(D,T)=>(e.openBlock(),e.createElementBlock("li",{key:T,class:e.normalizeClass([{"text-hy-text-main font-bold":D.value===e.unref(p)},"clickBox cursor-pointer px-2 w-[96px] box-border"]),onClick:B=>e.unref(u)(D.value)},e.toDisplayString(D.label),11,C6))),128))])])]),e.withDirectives(e.createElementVNode("div",w6,[e.createVNode(g,{gutter:8,class:"w-full h-full"},{default:e.withCtx(()=>[e.createVNode(h,{span:8,class:"h-full"},{default:e.withCtx(()=>[e.createElementVNode("div",E6,[e.createElementVNode("div",S6,[e.createElementVNode("div",T6,[e.createElementVNode("div",D6,e.toDisplayString(e.unref(x)("spotCheckPersonnel")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(i).name)+" ",1),e.createElementVNode("span",V6," ("+e.toDisplayString(e.unref(i).jobNum)+")",1)])]),e.createElementVNode("div",$6,[e.createElementVNode("div",B6,e.toDisplayString(e.unref(x)("department")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).orgName),1)]),e.createElementVNode("div",A6,[e.createElementVNode("div",I6,e.toDisplayString(e.unref(x)("spotCheckTime")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkDtm),1)]),e.createElementVNode("div",L6,[e.createElementVNode("div",F6,e.toDisplayString(e.unref(x)("spotCheckType")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkType===1?e.unref(x)("rangeCheck"):e.unref(x)("randomCheck")),1)]),e.createElementVNode("div",O6,[e.createElementVNode("div",R6,e.toDisplayString(e.unref(x)("spotCheckMethod")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkStyle===1?e.unref(x)("message"):e.unref(x)("call")),1)]),e.unref(i).checkType===1?(e.openBlock(),e.createElementBlock("div",P6,[e.createElementVNode("div",M6,[e.createTextVNode(e.toDisplayString(e.unref(x)("samplingScope"))+" ",1),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("span",U6,e.toDisplayString(e.unref(x)("regionalSpotCheck")),1)):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("span",z6,e.toDisplayString(e.unref(x)("departmentSpotCheck")),1)):e.unref(i).checkScope===3?(e.openBlock(),e.createElementBlock("span",W6,e.toDisplayString(e.unref(x)("deviceSpotCheck")),1)):e.createCommentVNode("",!0),e.createTextVNode(" ) ")]),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("div",j6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(D,T)=>(e.openBlock(),e.createElementBlock("span",{key:`${T}_orgNameList`},[e.createTextVNode(e.toDisplayString(D)+" ",1),T!==e.unref(_).length-1?(e.openBlock(),e.createElementBlock("span",H6,"、")):e.createCommentVNode("",!0)]))),128))])):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("div",Y6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(D,T)=>(e.openBlock(),e.createElementBlock("span",{key:`${T}_orgNameList`},[e.createTextVNode(e.toDisplayString(D)+" ",1),T!==e.unref(m).length-1?(e.openBlock(),e.createElementBlock("span",G6,"、")):e.createCommentVNode("",!0)]))),128))])):(e.openBlock(),e.createElementBlock("div",q6,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).checkNum||0)+" "+e.toDisplayString(e.unref(x)("device")),1)]))])):(e.openBlock(),e.createElementBlock("div",K6,[e.createElementVNode("div",X6,[e.createTextVNode(e.toDisplayString(e.unref(x)("samplingScope"))+" ",1),e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("randomCheck")),1),e.createTextVNode(" ) ")]),e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).limitNum||0)+" "+e.toDisplayString(e.unref(x)("device")),1)])]))])])]),_:1}),e.createVNode(h,{span:16,class:"h-full"},{default:e.withCtx(()=>[e.unref(i).checkStyle===1?(e.openBlock(),e.createElementBlock("div",J6,[e.createElementVNode("div",Z6,[e.createElementVNode("div",null,e.toDisplayString(e.unref(x)("messageContent")),1),e.unref(i).playMsg===1?(e.openBlock(),e.createElementBlock("div",Q6," TTS"+e.toDisplayString(e.unref(x)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",v6,[e.createElementVNode("div",e5,e.toDisplayString(e.unref(i).msgContent),1)]),e.createElementVNode("div",t5,[e.createElementVNode("div",n5,[e.createElementVNode("div",o5,e.toDisplayString(e.unref(x)("answerMethod")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(i).actionType===1?e.unref(x)("punchIn"):e.unref(x)("reply")),1)]),e.createElementVNode("div",a5,[e.createElementVNode("div",s5,e.toDisplayString(e.unref(x)("answerTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",l5,e.toDisplayString(e.unref(i).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("second")),1)])])])])):(e.openBlock(),e.createElementBlock("div",r5,[e.createElementVNode("div",i5,[e.createElementVNode("div",c5,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",d5,e.toDisplayString(e.unref(x)("callSpotCheck")),1),e.createElementVNode("div",p5,e.toDisplayString(e.unref(x)("backupWillBeCheckedByIntercomAnswering")),1)])])]))]),_:1})]),_:1})],512),[[e.vShow,e.unref(p)===1]]),e.withDirectives(e.createElementVNode("div",f5,[e.unref(i).checkNum!==0?(e.openBlock(),e.createBlock(g,{key:0,gutter:8,class:"w-full h-full"},{default:e.withCtx(()=>[e.createVNode(h,{span:e.unref(i).actionType===1?24:8,class:"h-full !flex flex-col"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"flex-col":e.unref(i).actionType!==1,"justify-between items-center":e.unref(i).actionType===1},"flex-shrink-0 flex px-2"])},[e.createVNode(C,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("span",null,[e.createElementVNode("div",{class:e.normalizeClass([{"min-w-[248px]":e.unref(i).actionType===1},"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-bg-2 rounded flex font-bold"])},[e.createElementVNode("div",V5,[e.createElementVNode("div",$5,[e.createVNode($,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",B5,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("div",A5,[e.createElementVNode("div",I5,[e.createVNode($,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),e.createElementVNode("div",L5,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("div",F5,[e.createElementVNode("div",O5,[e.createVNode($,{name:"base-danger-state","class-name":"w-[16px] h-[16px] text-hy-danger"})]),e.createElementVNode("div",R5,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])],2)])]),default:e.withCtx(()=>[e.createElementVNode("ul",m5,[e.createElementVNode("li",h5,[e.createElementVNode("span",u5,e.toDisplayString(e.unref(x)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",_5,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("li",g5,[e.createElementVNode("span",y5,e.toDisplayString(e.unref(x)("waitingToReceive")),1),e.createElementVNode("div",x5,e.toDisplayString(e.unref(i).beReceiveNum||"- -"),1)]),e.createElementVNode("li",k5,[e.createElementVNode("span",N5,e.toDisplayString(e.unref(x)("receiving")),1),e.createElementVNode("div",b5,e.toDisplayString(e.unref(i).receivingNum||"- -"),1)]),e.createElementVNode("li",C5,[e.createElementVNode("span",w5,e.toDisplayString(e.unref(x)("completed")),1),e.createElementVNode("div",E5,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("li",S5,[e.createElementVNode("span",T5,e.toDisplayString(e.unref(x)("uncompleted")),1),e.createElementVNode("div",D5,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])])]),_:1}),e.createElementVNode("div",P5,[e.createElementVNode("div",{style:e.normalizeStyle([{left:`${e.unref(l)}%`},{background:"linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%)"}]),class:e.normalizeClass([{"w-[75px]":e.unref(i).actionType!==1,"w-[54px]":e.unref(i).actionType===1},"rounded-[4px_4px_0_0] absolute top-0 left-0 h-full duration-500"])},null,6),e.createElementVNode("ul",M5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(D,T)=>(e.openBlock(),e.createElementBlock("li",{key:`${T}_checkStatusList`,class:e.normalizeClass([{"text-hy-text-main":D.value===e.unref(a)},"flex-1 cursor-pointer hover:opacity-60"]),onClick:B=>e.unref(y)(D.value)},e.toDisplayString(D.label),11,U5))),128))])])],2),e.createElementVNode("div",z5,[e.unref(i).id?(e.openBlock(),e.createBlock(pa,{key:0,ref_key:"spotCheckTaskDeviceRef",ref:b,"params-span":e.unref(i).actionType===1?8:24,form:e.unref(i),"subscribe-status":!1,onChange:e.unref(N),onOnCountStatus:e.unref(k)},null,8,["params-span","form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)])]),_:1},8,["span"]),e.unref(i).actionType!==1?(e.openBlock(),e.createBlock(h,{key:0,span:16,class:"h-full"},{default:e.withCtx(()=>[W5]),_:1})):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createElementBlock("div",j5,[e.createElementVNode("div",H5,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",Y5,e.toDisplayString(e.unref(x)("noDeviceSupportsThisSpotCheck")),1)])]))],512),[[e.vShow,e.unref(p)===2]])])])]),_:1},8,["modelValue"])}}});function q5(t){const n=e.ref(t.props),o=e.ref(t.params.selectFilterType),a=e.ref(""),s=e.ref([]);async function l(){var i;n.value.getData&&((i=n.value.getData())==null||i.then(async c=>{if(!c)return;const p=await zr(a.value,[...c],{disabledIds:n.value.disableDataList.map(d=>`disabled:${d.id}`).toString(),hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});console.log(p),s.value=p.children,t.params.setViewDepartmentList(s.value)}))}function r(){a.value.length&&l()}return{getData:l,query:a,selectChange:r}}const K5={class:"flex flex-col h-full text-xs"},X5={class:"flex items-center"},J5={class:"!w-[114px]"},Z5={class:"text-hy-text-main"},Q5={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},v5={class:"flex-grow w-0 flex items-center mr-1"},eU={class:"overflow-ellipsis overflow-hidden mx-1"},tU={class:"flex-shrink-0 flex items-center"},nU={key:0,class:"w-full"},oU={class:"w-full h-full flex items-center"},aU={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},sU={class:"flex-shrink-0 text-xs ml-1 mr-2 text-hy-main"},lU=e.defineComponent({__name:"acquisition-station-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=q5({emit:s,props:a,params:{selectFilterType:w,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"采集站名称,群组名称筛选"}],w.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:"采集站",value:8,placeholder:x("采集站名称进行筛选")}),w.value=k.value[0].value),a.defaultGetData||h()}),(E,D)=>{const T=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),L=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),F=e.resolveComponent("el-input"),M=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",K5,[e.createElementVNode("div",X5,[e.createVNode(F,{modelValue:e.unref(g),"onUpdate:modelValue":D[1]||(D[1]=z=>e.isRef(g)?g.value=z:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",Z5,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(L,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",J5,[e.createVNode(B,{modelValue:e.unref(w),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(w)?w.value=z:null),class:"!m-0",size:"small",onChange:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(z,U)=>(e.openBlock(),e.createBlock(T,{key:`${U}_selectFilterList`,label:z.label,value:z.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(E.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":8,"highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,"default-checked-list":a.defaultCheckedList,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:z})=>[e.renderSlot(E.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Q5,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.sname},{default:e.withCtx(()=>[e.createElementVNode("div",v5,[e.createVNode(L,{name:"menu-acquisition-station-2",class:"!w-[20px] !h-[20px]"}),e.createElementVNode("div",eU,[e.createElementVNode("span",null,e.toDisplayString(z.sname),1)])])]),_:2},1032,["content"]),z.todayFile?(e.openBlock(),e.createBlock(M,{key:0,class:"item","show-after":1e3,content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",tU,[e.createVNode(L,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]))]),"other-content":e.withCtx(({row:z})=>[e.renderSlot(E.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",nU,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",oU,[e.createElementVNode("div",aU,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)]),e.createElementVNode("span",sU,"("+e.toDisplayString(z.childrenDeviceList.length||0)+")",1)])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function rU(t){const n=t.emit,o=e.ref(t.props),a=e.ref(t.params.selectFilterType);e.ref(!1);const s=e.ref(""),l=e.ref([]);async function r(){var d;o.value.getData&&((d=o.value.getData())==null||d.then(async f=>{if(!f)return;const m=await Mr(s.value,[...f],{hideDevice:o.value.hideDevice,hideOrgNoData:o.value.hideOrgNoData,hideGroup:o.value.hideGroup,selectFilterType:a.value});l.value=m.children,t.params.setViewDepartmentList(l.value)}))}function i(){s.value.length&&r()}function c(d){n("onClickDevice",d)}function p(d){n("onClickOrganization",d)}return{getData:r,query:s,selectChange:i,onClickDevice:c,onClickOrganization:p}}const iU={class:"flex flex-col h-full text-xs"},cU={class:"flex items-center"},dU={class:"!w-[114px]"},pU={class:"text-hy-text-main"},fU={key:0,class:"flex items-center w-full h-full click-box"},mU={class:"flex-grow w-0 h-full flex items-center text-hy-text-main"},hU={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},uU={class:"text-hy-text-main"},_U={class:"flex-shrink-0 ml-1 mr-2 h-full flex items-center justify-center"},gU={key:0,class:"w-full h-full"},yU=["onClick"],xU={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},kU=e.defineComponent({__name:"org-group-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},hideGroup:{type:Boolean,default:!1},hideDevice:{type:Boolean,default:!1}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData","onClickDevice","onClickOrganization"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C,onClickDevice:E,onClickOrganization:D}=rU({emit:s,props:a,params:{selectFilterType:w,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"部门、群组名称、设备名称、设备IMEI进行搜索"}],w.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:x("equipment"),value:3,placeholder:x("filterByDeviceNumberAndDeviceName")}),a.hideGroup||k.value.push({label:"群组",value:4,placeholder:"群组名称进行筛选"}),w.value=k.value[0].value),a.defaultGetData||h()}),(T,B)=>{const L=e.resolveComponent("el-option"),j=e.resolveComponent("el-select"),F=e.resolveComponent("svg-icon"),M=e.resolveComponent("el-button"),z=e.resolveComponent("el-input"),U=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",iU,[e.createElementVNode("div",cU,[e.createVNode(z,{modelValue:e.unref(g),"onUpdate:modelValue":B[1]||(B[1]=R=>e.isRef(g)?g.value=R:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",pU,[e.createVNode(M,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(F,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",dU,[e.createVNode(j,{modelValue:e.unref(w),"onUpdate:modelValue":B[0]||(B[0]=R=>e.isRef(w)?w.value=R:null),class:"!m-0",size:"small",onChange:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(R,Y)=>(e.openBlock(),e.createBlock(L,{key:`${Y}_selectFilterList`,label:R.label,value:R.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(T.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":4,"highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,"default-checked-list":a.defaultCheckedList,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:R})=>[e.renderSlot(T.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:R}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",fU,[e.createVNode(U,{class:"item",content:R.groupName,effect:"dark",placement:"bottom","show-after":1e3},{default:e.withCtx(()=>{var Y;return[e.createElementVNode("div",mU,[e.createElementVNode("div",hU,[e.createElementVNode("span",uU,e.toDisplayString(R.groupName),1)]),e.withDirectives(e.createElementVNode("span",{class:"flex-shrink-0 text-xs mr-2 ml-1 text-hy-main"},"("+e.toDisplayString(((Y=R.deviceList)==null?void 0:Y.length)||0)+")",513),[[e.vShow,!a.hideDevice]])])]}),_:2},1032,["content"]),e.createVNode(U,{class:"item",content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom","show-after":1e3},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",_U,[e.createVNode(F,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})],512),[[e.vShow,R.todayFile]])]),_:2},1032,["content"])]))]),"other-content":e.withCtx(({row:R})=>[e.renderSlot(T.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:R}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",gU,[R.type===3?(e.openBlock(),e.createBlock(fa,{key:0,device:R,onOnClickDevice:e.unref(E)},null,8,["device","onOnClickDevice"])):e.createCommentVNode("",!0),R.type!==3?(e.openBlock(),e.createBlock(U,{key:1,"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:R.companyName||R.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"w-full h-full flex items-center",onClick:Y=>e.unref(D)(R)},[e.createElementVNode("div",xU,[e.createElementVNode("span",null,e.toDisplayString(R.companyName||R.orgName),1)])],8,yU)]),_:2},1032,["content"])):e.createCommentVNode("",!0)]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function NU(t){const n=e.ref(t.props),o=e.ref(t.params.selectFilterType),a=e.ref(""),s=e.ref([]);async function l(){var i;n.value.getData&&((i=n.value.getData())==null||i.then(async c=>{if(!c)return;const p=await Ur(a.value,[...c],{disabledIds:n.value.disableDataList.map(d=>`disabled:${d.id}`).toString(),hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});s.value=p.children,t.params.setViewDepartmentList(s.value)}))}function r(){a.value.length&&l()}return{getData:l,query:a,selectChange:r}}const bU={class:"flex flex-col h-full text-xs"},CU={class:"flex items-center"},wU={class:"!w-[114px]"},EU={class:"text-hy-text-main"},SU={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},TU={class:"flex-grow w-0 flex items-center mr-1"},DU={class:"overflow-ellipsis overflow-hidden mx-1"},VU={class:"flex-shrink-0 flex items-center"},$U={key:0,class:"w-full"},BU={class:"w-full h-full flex items-center"},AU={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},IU={class:"flex-shrink-0 text-xs ml-1 mx-2 text-hy-main"},LU=e.defineComponent({__name:"user-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=NU({emit:s,props:a,params:{selectFilterType:w,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"人员名称,部门名称筛选"}],w.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:"人员",value:5,placeholder:x("filterByPersonnelName")}),w.value=k.value[0].value),a.defaultGetData||h()}),(E,D)=>{const T=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),L=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),F=e.resolveComponent("el-input"),M=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",bU,[e.createElementVNode("div",CU,[e.createVNode(F,{modelValue:e.unref(g),"onUpdate:modelValue":D[1]||(D[1]=z=>e.isRef(g)?g.value=z:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",EU,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(L,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",wU,[e.createVNode(B,{modelValue:e.unref(w),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(w)?w.value=z:null),class:"!m-0",size:"small",onChange:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(z,U)=>(e.openBlock(),e.createBlock(T,{key:`${U}_selectFilterList`,label:z.label,value:z.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(E.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":5,"highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,"default-checked-list":a.defaultCheckedList,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:z})=>[e.renderSlot(E.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",SU,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.name},{default:e.withCtx(()=>[e.createElementVNode("div",TU,[e.createVNode(L,{name:"icon-user",class:"!w-[14px] !h-[14px]"}),e.createElementVNode("div",DU,[e.createElementVNode("span",null,e.toDisplayString(z.name),1)])])]),_:2},1032,["content"]),z.todayFile?(e.openBlock(),e.createBlock(M,{key:0,class:"item","show-after":1e3,content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",VU,[e.createVNode(L,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]))]),"other-content":e.withCtx(({row:z})=>[e.renderSlot(E.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",$U,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",BU,[e.createElementVNode("div",AU,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)]),e.createElementVNode("span",IU,"("+e.toDisplayString(z.childrenDeviceList.length||0)+")",1)])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});var Hr=(t=>(t[t.LAW_ENFORCEMENT_RECORDER=1]="LAW_ENFORCEMENT_RECORDER",t[t.WALKIE_TALKIE=2]="WALKIE_TALKIE",t[t.FIRE_DISPATCH_DESK=3]="FIRE_DISPATCH_DESK",t[t.FIRE_DUTY_DESK=4]="FIRE_DUTY_DESK",t[t.PHONE_APP=5]="PHONE_APP",t[t.CONTROL_THE_BALL=6]="CONTROL_THE_BALL",t[t.IPC_CAMERA=7]="IPC_CAMERA",t[t.HELMET=8]="HELMET",t[t.FLASHLIGHT=9]="FLASHLIGHT",t[t.WORK_LICENSE=10]="WORK_LICENSE",t[t.DRONE=11]="DRONE",t[t.CAR_PTZ=12]="CAR_PTZ",t[t.CASCADE_DEVICE_DOWN=13]="CASCADE_DEVICE_DOWN",t[t.JT808=14]="JT808",t[t.NATIONAL_STANDARD_RECORDER=15]="NATIONAL_STANDARD_RECORDER",t[t.RTOS_DEVICE=16]="RTOS_DEVICE",t[t.WATCH=17]="WATCH",t))(Hr||{});ae.DeviceEnum=Hr,ae.HyAbnormalDetail=CI,ae.HyAcquisitionStationTree=lU,ae.HyAddDepartmentType=Eg,ae.HyAudioPlayer=wr,ae.HyBoxBorder=$e,ae.HyCommonTaskDetailModal=hO,ae.HyDataTimeShortcuts=Xm,ae.HyDeviceDetails=i1,ae.HyDeviceTree=jr,ae.HyDeviceTreeCpns=fa,ae.HyEditSpotCheck=h6,ae.HyElectronicFence=WN,ae.HyElectronicPatrolDetail=Br,ae.HyFileDetails=hS,ae.HyFileUpload=mT,ae.HyImageViewer=jo,ae.HyMapNoPermissions=Gt,ae.HyMapSearchPlace=oa,ae.HyMenuComponents=p_,ae.HyNoData=h_,ae.HyOrgCascader=Vl,ae.HyOrgGroupTree=kU,ae.HyOrgTree=Wr,ae.HyRoundButton=Me,ae.HySelect=Mu,ae.HySelectMapLocation=yT,ae.HySpotCheckDetail=G5,ae.HySvgIcon=$l,ae.HyTable=Yt,ae.HyTableHead=L_,ae.HyTipsModal=ft,ae.HyUserHead=xt,ae.HyUserTree=LU,ae.HyVideoPlayer=aa,ae.HyVueCropper=Il,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})});
56
+ <use data-v-19e5a669="" xlink:href="#icon-marker-abnormal"></use></svg>`,zIndexOffset:10,iconAnchor:[30,60]});c.markerAddTo(_.value,R),R.on("click",()=>{B(l.value)})}}function B(R,Y=18){c.setView(_.value,[R.lat,R.lng],18)}function L(R){s.value=R}async function j(){return new Promise(async(R,Y)=>{const X=await Fl({recordId:i.value});X.code===200&&(r.value=X.data||{},r.value.imageList&&(r.value.imageListV2=r.value.imageList.map(P=>P.filePath)),R(0))})}async function F(){return new Promise(async(R,Y)=>{const X=await y1({id:i.value});if(X.code===200){const P=X.data||{};l.value=P,l.value.id=i.value,a.value.taskId=P.abnormalTaskId,R(0)}})}function M(){_.value=null}function z(R){if(!R)return Se.error(`recordId ${x("theParametersAreWrong")}`);i.value=R,M(),L("details"),a.value={taskId:null,reportState:null,orgId:null},j(),F().then(()=>{u.value=!0,e.nextTick(()=>{D(),h()})})}function U(){u.value=!1}return{$t:x,searchArr:n,tableColumns:o,requestParams:a,abnormalState:s,form:l,deviceReport:r,recordId:i,map:_,marker:y,dialogVisible:u,electronicPatrolDetailsRef:N,submissionFormRef:k,AppTableRef:w,handlingExceptionRef:b,isShowMap:d,taskDetailsShow:S,visibleChange:V,submissionFormShow:$,appTableGetData:h,orgCascaderOnChange:g,handlingExceptionShow:C,clickGroupItem:E,initMap:D,addMarker:T,pantoSomeWhere:B,abnormalStateFn:L,deviceReportFn:j,selectFn:F,emptyMap:M,show:z,onClose:U}}const G2=t=>(e.pushScopeId("data-v-73e74e7a"),t=t(),e.popScopeId(),t),q2={class:"pos_r dialog_header relative text-[18px] bg-hy-dialog-bg-1 text-center p-[20px] font-bold z-[1] font-['Helvetica']"},K2={class:"absolute right-[12px] top-[12px]"},X2={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg relative z-10"},J2={class:"dialog_body"},Z2={class:"ovh centerBox overflow-hidden flex items-center justify-center"},Q2={class:"r-f navigation flex"},v2={style:{height:"500px"},class:"c_fff fs_12 text-hy-text-main text-[12px]"},eB={class:"w_100vh h_100vh r-f details_box w-full h-full flex"},tB={class:"taskDetails lh_20 flex-shrink leading-[20px]"},nB={class:"c_dangerv2 fw_600 fs_16 mb_10 text-hy-danger font-[600] text-[16px] mb-[10px]"},oB={key:0,class:"mb_10 mb-[10px]"},aB={class:"c_9DA7B2 text-hy-text-secondary"},sB=["innerHTML"],lB={class:"mb_10 mb-[10px]"},rB={class:"c_9DA7B2 text-hy-text-secondary"},iB={class:"mb_10 mb-[10px]"},cB={class:"c_9DA7B2 text-hy-text-secondary"},dB={class:"mb_10 mb-[10px]"},pB={class:"c_9DA7B2 text-hy-text-secondary"},fB={class:"mb_10 mb-[10px]"},mB={class:"c_9DA7B2 text-hy-text-secondary"},hB={class:"f-g c-f flex flex-col w-0 flex-grow"},uB={class:"h_40 lh_40 fs_14 h-[40px] leading-[40px] text-[14px]"},_B={class:"title"},gB={class:"w-full h-full relative overflow-hidden",style:{height:"0","flex-grow":"1","border-radius":"6px"}},yB=G2(()=>e.createElementVNode("div",{class:"relative z-[1] w-full h-full"},[e.createElementVNode("div",{id:"abnormalDetailsMap",class:"w_100vh w-full",style:{height:"0","flex-grow":"1","border-radius":"6px"}})],-1)),xB={class:"c-f w_100vh h_100vh form_box flex flex-col w-full h-full"},kB={class:"information"},NB={class:"flex_vertically_center flex items-center"},bB={style:{"margin-left":"6px"}},CB={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},wB={class:"flex_vertically_center flex items-center"},EB={style:{"margin-left":"6px"}},SB={key:0,class:"type_box success"},TB={key:1,class:"type_box"},DB={class:"form"},VB={key:0},$B={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},BB={class:"r-f mb_10 flex_vertically_center flex items-center mb-[10px]"},AB={class:"mr_10 label flex-shrink mr-[10px]"},IB={class:"r-f flex_vertically_center flex items-center"},LB={class:"mr_10 label label_answer flex-shrink mr-[10px]"},FB={key:0,class:"c_theme text-hy-text-primary"},OB={key:1,class:"c_9DA7B2 text-hy-text-secondary"},RB={key:1},PB={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},MB={class:"group-item"},UB=["onClick"],zB={key:0,class:"c-f-i group-content r-f flex"},WB={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},jB=["src"],HB={key:1,style:{"flex-grow":"1"}},YB={class:"icon-box c-f-i flex"},GB={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},qB={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},KB={key:0,class:"information-type"},XB={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},JB={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},ZB={key:0,class:"c_9DA7B2 text-hy-text-secondary"},QB={key:1},vB={key:1,class:"c-f-i group-content r-f flex"},eA={style:{"flex-grow":"1"}},tA={class:"icon-box c-f-i flex"},nA={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},oA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},aA={key:0,class:"information-type"},sA={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},lA={key:2,style:{background:"var(--hy-warning)"},class:"information-type font-[600]"},rA={key:0,class:"c_9DA7B2 text-hy-text-secondary"},iA={key:1},cA={key:2,class:"c-f-i group-content r-f flex"},dA={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},pA=["src"],fA={key:1,style:{"flex-grow":"1"}},mA={class:"icon-box c-f-i flex"},hA={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},uA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},_A={key:0,class:"information-type"},gA={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},yA={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},xA={key:0,class:"c_9DA7B2 text-hy-text-secondary"},kA={key:1},NA={key:2},bA={class:"fs_14 fw_600 lh_30 mt_10 text-[14px] font-[600] leading-[30px] mt-[10px]"},CA={class:"group-item"},wA=["onClick"],EA={key:0,class:"c-f-i group-content r-f flex"},SA={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},TA=["src"],DA={key:1,style:{"flex-grow":"1"}},VA={class:"icon-box c-f-i flex"},$A={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},BA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},AA={key:0,class:"information-type"},IA={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},LA={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},FA={key:0,class:"c_9DA7B2 text-hy-text-secondary"},OA={key:1},RA={key:1,class:"c-f-i group-content r-f flex"},PA={style:{"flex-grow":"1"}},MA={class:"icon-box c-f-i flex"},UA={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},zA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},WA={key:0,class:"information-type"},jA={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},HA={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},YA={key:0,class:"c_9DA7B2 text-hy-text-secondary"},GA={key:1},qA={key:2,class:"c-f-i group-content r-f flex"},KA={key:0,class:"icon-box ovh overflow-hidden",style:{"flex-grow":"1",height:"0"}},XA=["src"],JA={key:1,style:{"flex-grow":"1"}},ZA={class:"icon-box c-f-i flex"},QA={class:"item-name h_40 c-f-i centerBox flex items-center justify-center h-[40px]"},vA={class:"item-information fs_12 mt_10 text-[12px] mt-[10px]"},eI={key:0,class:"information-type"},tI={key:1,style:{border:"1px solid var(--hy-border-1)"},class:"information-type"},nI={key:2,style:{background:"var(--hy-warning)"},class:"information-type fw_600 font-[600]"},oI={key:0,class:"c_9DA7B2 text-hy-text-secondary"},aI={key:1},sI={class:"c-f w_100vh h_100vh handling_box flex flex-col w-full h-full"},lI={key:0,class:"h_100vh centerBox c_9DA7B2 noTaskSelected h-full flex items-center justify-center text-hy-text-secondary"},rI={class:"tac text-center"},iI={class:"mt_10 mt-[10px]"},cI={class:"fs_12 text-[12px]"},dI={key:1},pI={class:"progress_box centerBox fs_12 flex items-center justify-center text-[12px]"},fI={key:0,class:"c_theme text-hy-text-primary"},mI={key:1,class:"c_success text-hy-success"},hI={style:{width:"108px"},class:"plr_10 p-[0_10px]"},uI={class:"c_theme text-hy-text-primary"},_I={key:0,class:"r-f flex",style:{"flex-wrap":"wrap"}},gI={key:0,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},yI={key:1,class:"c_9DA7B2 fs_12 text-hy-text-secondary text-[12px]"},xI={key:0,class:"c_theme text-hy-text-primary"},kI={key:1,class:"c_9DA7B2 text-hy-text-secondary"},NI={class:"pos_r relative"},bI={key:0,style:{cursor:"pointer"}},CI=be(e.defineComponent({__name:"abnormal-detail",props:{draggable:{type:Boolean,default:!1}},emits:["on-getData"],setup(t,{expose:n,emit:o}){const a=o,{$t:s,show:l,dialogVisible:r,isShowMap:i,handlingExceptionRef:c,electronicPatrolDetailsRef:p,submissionFormRef:d,onClose:f,abnormalState:m,AppTableRef:_,abnormalStateFn:y,form:u,taskDetailsShow:N,deviceReport:k,clickGroupItem:w,handlingExceptionShow:b,tableColumns:S,searchArr:V,requestParams:$,submissionFormShow:h,orgCascaderOnChange:g,appTableGetData:C,visibleChange:E}=Y2({emit:a});return n({show:l}),(D,T)=>{const B=e.resolveComponent("svg-icon"),L=$t,j=e.resolveComponent("el-icon"),F=e.resolveComponent("el-button"),M=e.resolveComponent("el-progress"),z=e.resolveComponent("el-option"),U=e.resolveComponent("el-select"),R=Bl,Y=e.resolveComponent("el-dialog"),X=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(Y,{modelValue:e.unref(r),"onUpdate:modelValue":T[8]||(T[8]=P=>e.isRef(r)?r.value=P:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"1000px",modal:!D.draggable,draggable:D.draggable,"modal-class":D.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",q2,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("abnormalDetail")),1),e.createElementVNode("div",K2,[e.createVNode(B,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(f),["stop"])},null,8,["onClick"])])])),[[X]])]),default:e.withCtx(()=>[e.createElementVNode("div",X2,[e.createElementVNode("div",J2,[e.createElementVNode("div",Z2,[e.createElementVNode("ul",Q2,[e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(m)==="details"}]),onClick:T[0]||(T[0]=P=>e.unref(y)("details"))},e.toDisplayString(e.unref(s)("abnormalDetails")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(m)==="form"}]),onClick:T[1]||(T[1]=P=>e.unref(y)("form"))},e.toDisplayString(e.unref(s)("abnormalForm")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox css-text-no-select",{selectBox:e.unref(m)==="handling"}]),onClick:T[2]||(T[2]=P=>e.unref(y)("handling"))},e.toDisplayString(e.unref(s)("handling")),3)])]),e.createElementVNode("div",v2,[e.withDirectives(e.createElementVNode("div",eB,[e.createElementVNode("div",tB,[e.createElementVNode("p",nB,e.toDisplayString(e.unref(u).taskName),1),e.unref(u).taskInfo?(e.openBlock(),e.createElementBlock("div",oB,[e.createElementVNode("p",aB,e.toDisplayString(e.unref(s)("taskDescription")),1),e.createElementVNode("p",{style:{"white-space":"pre-wrap"},innerHTML:e.unref(u).taskInfo},null,8,sB)])):e.createCommentVNode("",!0),e.createElementVNode("div",lB,[e.createElementVNode("p",rB,e.toDisplayString(e.unref(s)("implementRoute")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).lineName),1)]),e.createElementVNode("div",iB,[e.createElementVNode("p",cB,e.toDisplayString(e.unref(s)("abnormalLocation")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).pointName),1)]),e.createElementVNode("div",dB,[e.createElementVNode("p",pB,e.toDisplayString(e.unref(s)("executionTime")),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(u).executeDtm),1)]),e.createElementVNode("div",fB,[e.createElementVNode("p",mB,e.toDisplayString(e.unref(s)("associatedTask")),1),e.createElementVNode("p",{class:"c_theme flex_vertically_center clickBox css-text-no-select text-hy-text-primary flex items-center cursor-pointer",onClick:T[3]||(T[3]=P=>e.unref(N)(e.unref(u).sourceId))},[e.createElementVNode("span",null,e.toDisplayString(e.unref(u).sourceTaskName),1),e.createVNode(j,{class:"ml-[6px] !text-[14px] !text-hy-text-primary"},{default:e.withCtx(()=>[e.createVNode(L)]),_:1})])])]),e.createElementVNode("div",hB,[e.createElementVNode("div",uB,[e.createElementVNode("span",_B,e.toDisplayString(e.unref(s)("abnormalPosition")),1)]),e.createElementVNode("div",gB,[e.withDirectives(e.createVNode(Gt,{class:"absolute top-0 left-0 z-[2]"},null,512),[[e.vShow,!e.unref(i)]]),yB])]),e.withDirectives(e.createElementVNode("div",xB,[e.createElementVNode("div",kB,[e.createElementVNode("div",NB,[e.createVNode(B,{style:{width:"14px",height:"14px"},name:"base-user-online"}),e.createElementVNode("span",bB,[e.createTextVNode(e.toDisplayString(e.unref(k).name),1),e.unref(k).jobNum?(e.openBlock(),e.createElementBlock("span",CB,"("+e.toDisplayString(e.unref(k).jobNum)+")",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",wB,[e.createVNode(B,{name:"base-every-day-time","class-name":"w-[16px] h-[16px]"}),e.createElementVNode("span",EB,e.toDisplayString(e.unref(k).executeDtm),1)]),e.unref(k).checkState===1?(e.openBlock(),e.createElementBlock("div",SB,e.toDisplayString(e.unref(s)("normal")),1)):e.unref(k).checkState===2?(e.openBlock(),e.createElementBlock("div",TB,e.toDisplayString(e.unref(s)("abnormal")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",DB,[e.unref(k).formList&&e.unref(k).formList.length?(e.openBlock(),e.createElementBlock("div",VB,[e.createElementVNode("div",$B,e.toDisplayString(e.unref(s)("formContent")),1),e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k).formList,(P,v)=>(e.openBlock(),e.createElementBlock("li",{key:v,class:"border-top ptb_10 p-[10px_0]"},[e.createElementVNode("div",BB,[e.createElementVNode("p",AB,e.toDisplayString(e.unref(s)("ask")),1),e.createElementVNode("span",null,e.toDisplayString(P.optionTitle),1)]),e.createElementVNode("div",IB,[e.createElementVNode("p",LB,e.toDisplayString(e.unref(s)("answer")),1),P.optionValue?(e.openBlock(),e.createElementBlock("span",FB,e.toDisplayString(P.optionValue),1)):(e.openBlock(),e.createElementBlock("span",OB,e.toDisplayString(e.unref(s)("unfilled")),1))])]))),128))])])):e.createCommentVNode("",!0),e.unref(k).imageList&&e.unref(k).imageList.length?(e.openBlock(),e.createElementBlock("div",RB,[e.createElementVNode("div",PB,e.toDisplayString(e.unref(s)("picture")),1),e.createElementVNode("div",MB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k).imageList,P=>(e.openBlock(),e.createElementBlock("div",{key:P.id,onClick:v=>e.unref(w)(P)},[P.fileType===1?(e.openBlock(),e.createElementBlock("div",zB,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.filePath&&P.del!==1?(e.openBlock(),e.createElementBlock("div",WB,[e.createElementVNode("img",{src:P.filePath,class:"h_100vh h-full"},null,8,jB)])):(e.openBlock(),e.createElementBlock("div",HB,[e.createElementVNode("div",YB,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{style:{margin:"0 4px"},name:"menu-image","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",GB,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",qB,[P.type===1?(e.openBlock(),e.createElementBlock("div",KB,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",XB,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",JB," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",ZB,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",QB,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):P.fileType===4?(e.openBlock(),e.createElementBlock("div",vB,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[e.createElementVNode("div",eA,[e.createElementVNode("div",tA,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{name:"menu-micphone","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{style:{"margin-left":"4px"},name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])]),e.createElementVNode("div",nA,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",oA,[P.type===1?(e.openBlock(),e.createElementBlock("div",aA,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",sA,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",lA," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",rA,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",iA,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):P.fileType===2?(e.openBlock(),e.createElementBlock("div",cA,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.screenshot1?(e.openBlock(),e.createElementBlock("div",dA,[e.createElementVNode("img",{src:P.screenshot1,class:"h_100vh h-full"},null,8,pA)])):(e.openBlock(),e.createElementBlock("div",fA,[e.createElementVNode("div",mA,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{style:{margin:"0 4px"},name:"menu-video","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",hA,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",uA,[P.type===1?(e.openBlock(),e.createElementBlock("div",_A,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",gA,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",yA," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",xA,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",kA,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):e.createCommentVNode("",!0)],8,UB))),128))])])):e.createCommentVNode("",!0),e.unref(k).videoList&&e.unref(k).videoList.length?(e.openBlock(),e.createElementBlock("div",NA,[e.createElementVNode("div",bA,e.toDisplayString(e.unref(s)("video")),1),e.createElementVNode("div",CA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k).videoList,P=>(e.openBlock(),e.createElementBlock("div",{key:P.id,onClick:v=>e.unref(w)(P)},[P.fileType===1?(e.openBlock(),e.createElementBlock("div",EA,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.filePath&&P.del!==1?(e.openBlock(),e.createElementBlock("div",SA,[e.createElementVNode("img",{src:P.filePath,class:"h_100vh h-full"},null,8,TA)])):(e.openBlock(),e.createElementBlock("div",DA,[e.createElementVNode("div",VA,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{style:{margin:"0 4px"},name:"menu-image","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",$A,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",BA,[P.type===1?(e.openBlock(),e.createElementBlock("div",AA,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",IA,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",LA," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",FA,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",OA,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):P.fileType===4?(e.openBlock(),e.createElementBlock("div",RA,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[e.createElementVNode("div",PA,[e.createElementVNode("div",MA,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{name:"menu-micphone","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{style:{"margin-left":"4px"},name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])]),e.createElementVNode("div",UA,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",zA,[P.type===1?(e.openBlock(),e.createElementBlock("div",WA,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",jA,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",HA," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",YA,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",GA,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},"svg-name":"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):P.fileType===2?(e.openBlock(),e.createElementBlock("div",qA,[e.createElementVNode("div",{class:e.normalizeClass([{checkBox:P.check},"group-content-item"])},[P.screenshot1?(e.openBlock(),e.createElementBlock("div",KA,[e.createElementVNode("img",{src:P.screenshot1,class:"h_100vh h-full"},null,8,XA)])):(e.openBlock(),e.createElementBlock("div",JA,[e.createElementVNode("div",ZA,[e.createVNode(B,{name:"media-center-right-ripple","class-name":"w-[16px] h-[16px]"}),e.createVNode(B,{style:{margin:"0 4px"},name:"menu-video","class-name":"w-[40px] h-[40px]"}),e.createVNode(B,{name:"media-center-left-ripple","class-name":"w-[16px] h-[16px]"})])])),e.createElementVNode("div",QA,[e.createElementVNode("div",{class:e.normalizeClass(["line-clamp-2",{fileDel:P.del===1}])},e.toDisplayString(P.fileName),3)]),e.createElementVNode("div",vA,[P.type===1?(e.openBlock(),e.createElementBlock("div",eI,e.toDisplayString(e.unref(s)("daily")),1)):P.type===2?(e.openBlock(),e.createElementBlock("div",tI,e.toDisplayString(e.unref(s)("task")),1)):P.type===3?(e.openBlock(),e.createElementBlock("div",nI," SOS ")):e.createCommentVNode("",!0),e.createElementVNode("ul",null,[P.hadPoint?(e.openBlock(),e.createElementBlock("li",oI,e.toDisplayString(e.unref(s)("point")),1)):e.createCommentVNode("",!0),P.hadRemark?(e.openBlock(),e.createElementBlock("li",aI,e.toDisplayString(e.unref(s)("note")),1)):e.createCommentVNode("",!0),P.mark?(e.openBlock(),e.createBlock(B,{key:2,style:{width:"22px",height:"22px","margin-left":"4px"},name:"media-center-mark-file","class-name":"svgBox"})):e.createCommentVNode("",!0)])])],2)])):e.createCommentVNode("",!0)],8,wA))),128))])])):e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(m)==="form"]]),e.withDirectives(e.createElementVNode("div",sI,[e.unref(u).dealState===0||e.unref(u).dealState===1?(e.openBlock(),e.createElementBlock("div",lI,[e.createElementVNode("div",rI,[e.createVNode(B,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",iI,[e.unref(u).dealState===1?(e.openBlock(),e.createBlock(F,{key:0,class:"button_function",onClick:T[4]||(T[4]=P=>e.unref(b)(e.unref(u)))},{default:e.withCtx(()=>[e.createElementVNode("span",cI,e.toDisplayString(e.unref(s)("processedImmediately")),1)]),_:1})):(e.openBlock(),e.createElementBlock("span",dI,e.toDisplayString(e.unref(s)("noNeedToDealWith")),1))])])])):(e.openBlock(),e.createBlock(Yt,{key:1,ref_key:"AppTableRef",ref:_,"column-list":e.unref(S),"search-arr":e.unref(V),"default-get-data":!1,"req-url":"scrollCheck/abnormal/sctUser/page","search-form":e.unref($),height:"100%"},{tableLeft:e.withCtx(()=>[e.createElementVNode("div",pI,[e.unref(u).dealState===2?(e.openBlock(),e.createElementBlock("span",fI,e.toDisplayString(e.unref(s)("execute")),1)):e.unref(u).dealState===3?(e.openBlock(),e.createElementBlock("span",mI,e.toDisplayString(e.unref(s)("completed")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",hI,[e.createVNode(M,{class:e.normalizeClass({"progress-bar_outer":e.unref(u).taskProgress!==100}),"text-inside":!0,"stroke-width":16,status:e.unref(u).taskProgress!==100?"exception":"success",percentage:e.unref(u).taskProgress},null,8,["class","status","percentage"])]),e.createElementVNode("span",uI,e.toDisplayString(e.unref(u).finishNum||0)+"/"+e.toDisplayString(e.unref(u).totalNum||0),1)])]),userInformation:e.withCtx(({row:P})=>[P.name?(e.openBlock(),e.createElementBlock("div",_I,[e.createTextVNode(e.toDisplayString(P.name)+" ",1),P.jobNum?(e.openBlock(),e.createElementBlock("span",gI,"("+e.toDisplayString(P.jobNum)+")",1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",yI," -- "))]),reportState:e.withCtx(({row:P})=>[P.reportState===1?(e.openBlock(),e.createElementBlock("span",xI,e.toDisplayString(e.unref(s)("haveBeenReported")),1)):(e.openBlock(),e.createElementBlock("span",kI,e.toDisplayString(e.unref(s)("notReported")),1))]),operator:e.withCtx(({row:P})=>[e.createVNode(Me,{name:"sys-icon-see",tips:e.unref(s)("viewForm"),onClick:v=>e.unref(h)(P)},null,8,["tips","onClick"])]),orgHeader:e.withCtx(({column:P})=>[e.createVNode(Vl,{ref:"orgCascader","content-type":!0,onChange:T[5]||(T[5]=v=>e.unref(g)(v))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P.label),1)]),_:2},1536)]),reportStateHeader:e.withCtx(({column:P})=>[e.createElementVNode("div",NI,[e.createElementVNode("div",{style:e.normalizeStyle([{opacity:P.focusType?1:0,position:P.focusType?"relative":"absolute"},{top:"0",left:"0",right:"0",bottom:"0"}])},[e.createVNode(U,{modelValue:e.unref($).reportState,"onUpdate:modelValue":T[6]||(T[6]=v=>e.unref($).reportState=v),style:{width:"100%"},clearable:"",placeholder:P.label,onChange:T[7]||(T[7]=v=>e.unref(C)()),onVisibleChange:v=>e.unref(E)(v,P,"focusType")},{default:e.withCtx(()=>[e.createVNode(z,{label:e.unref(s)("notReported"),value:0},null,8,["label"]),e.createVNode(z,{label:e.unref(s)("haveBeenReported"),value:1},null,8,["label"])]),_:2},1032,["modelValue","placeholder","onVisibleChange"])],4),P.focusType?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",bI,[e.createVNode(j,null,{default:e.withCtx(()=>[e.createVNode(R)]),_:1}),e.createTextVNode(" "+e.toDisplayString(P.label)+" ",1),e.withDirectives(e.createElementVNode("span",{class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"}," ("+e.toDisplayString(e.unref(s)("reported")),513),[[e.vShow,e.unref($).reportState===1]]),e.withDirectives(e.createElementVNode("span",{class:"fs_12 c_9DA7B2 text-[12px] text-hy-text-secondary"}," ("+e.toDisplayString(e.unref(s)("notReported-0")),513),[[e.vShow,e.unref($).reportState===0]])]))])]),_:1},8,["column-list","search-arr","search-form"]))],512),[[e.vShow,e.unref(m)==="handling"]])],512),[[e.vShow,e.unref(m)==="details"]]),e.createVNode(H2,{ref_key:"handlingExceptionRef",ref:c,draggable:D.draggable},null,8,["draggable"]),e.createVNode(Vr,{ref_key:"submissionFormRef",ref:d,draggable:D.draggable},null,8,["draggable"]),e.createVNode(Br,{ref_key:"electronicPatrolDetailsRef",ref:p,draggable:D.draggable},null,8,["draggable"])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-73e74e7a"]]);function wI(){const t=e.ref(!1),n=e.ref(),{H:o,POI:a,isShowMap:s,layersUrlList:l,mapConfig:r}=Qt(),i=e.shallowRef(),c=e.shallowRef();e.ref();const p=e.ref(""),d=[{label:"地理地址",value:1},{label:"部门名称",value:4}];function f({mapRailId:u}){n.value=u,t.value=!0,y()}function m(){t.value=!1}async function _(){p.value=null;const u=await Nr({id:n.value});if(u.code===200){const N=u.data.pointList;p.value=u.data.railName;const k=[];N.forEach(w=>{k.push([w.lat,w.lng])}),c.value=o.polygon(i.value,k,{weight:6,color:"#FF33FF",opacity:.2,fillColor:"#1791fc",fillOpacity:.4}),o.fitBounds(i.value,k)}}function y(){e.nextTick(async()=>{let u=[];const N=Ue.getCache("userInfo");N.lng&&N.lat&&(u=[N.lat,N.lng]),u.length===0&&(u=null),i.value=await o.map("locationArea_container",{maxZoom:r.maxZoom||18,minZoom:r.minZoom||5,zoom:r.zoom||13,center:u,zoomControl:!1,doubleClickZoom:!0,attributionControl:!1,dragging:!0,boxZoom:!0,scrollWheelZoom:!0,urlTemplates:l,layerType:r.satelliteMap}),i.value.on("complete",()=>{_()})})}return{dialogVisible:t,show:f,close:m,railName:p,POI:a,map:i,H:o,searchTypes:d}}const EI=t=>(e.pushScopeId("data-v-e3121b24"),t=t(),e.popScopeId(),t),SI={class:"w-full h-[560px] relative p-[10px] box-border"},TI=EI(()=>e.createElementVNode("div",{class:"w-full h-full relative z-[1]",draggable:"false"},[e.createElementVNode("div",{id:"locationArea_container",class:"w-[880px] h-full"})],-1)),DI={class:"absolute top-[20px] right-[20px] w-[300px] z-10"},VI={class:"w-[96%] h-[40px] rounded-[4px] bg-hy-dialog-bg-2 shadow-[0_0_8px_0_var(--hy-dialog-bg-2)] box-border p-[0_20px_0_40px] flex justify-between items-center text-[14px] absolute z-10 bottom-[20px] left-1/2 transform -translate-x-1/2 text-hy-text-main"},$I={class:"flex"},BI={class:"flex justify-center items-center"},AI={style:{"margin-left":"8px"}},II={class:"font-bold"},LI=be(e.defineComponent({__name:"select-location-area",props:{draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const{dialogVisible:o,show:a,close:s,railName:l,POI:r,map:i,H:c,searchTypes:p}=wI();return n({show:a}),(d,f)=>{const m=e.resolveComponent("el-button"),_=e.resolveComponent("svg-icon"),y=e.resolveComponent("el-dialog"),u=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(y,{modelValue:e.unref(o),"onUpdate:modelValue":f[0]||(f[0]=N=>e.isRef(o)?o.value=N:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",top:"10vh",width:"900px",modal:!d.draggable,draggable:d.draggable,"modal-class":d.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",SI,[TI,e.createVNode(m,{class:"w-[80px] absolute top-[20px] left-[20px] z-10",type:"primary",onClick:e.unref(s)},{default:e.withCtx(()=>[e.createTextVNode(" 关闭 ")]),_:1},8,["onClick"]),e.createElementVNode("div",DI,[e.createVNode(oa,{poi:e.unref(r),map:e.unref(i),h:e.unref(c),"search-types":e.unref(p)},null,8,["poi","map","h","search-types"])]),e.createElementVNode("div",VI,[e.createElementVNode("div",$I,[e.createElementVNode("div",null,[e.createElementVNode("span",BI,[e.createVNode(_,{name:"police-situation-ps-around",style:{width:"20px",height:"20px"}}),e.createElementVNode("span",AI,e.toDisplayString(e.unref(x)("currentPositioning")),1)])]),e.createElementVNode("div",II,[e.createElementVNode("span",null,e.toDisplayString(e.unref(l)),1)])])])])]),_:1})),[[u]])]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-e3121b24"]]),FI={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},OI=[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m-55.808 536.384l-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"},null,-1)];function RI(t,n){return e.openBlock(),e.createElementBlock("svg",FI,[...OI])}const Ar={name:"ep-success-filled",render:RI},PI={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},MI=[e.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1)];function UI(t,n){return e.openBlock(),e.createElementBlock("svg",PI,[...MI])}const Ir={name:"ep-caret-right",render:UI};function zI({props:t}){const n=e.ref({}),o=e.ref(null),a=e.ref([]),s=e.ref([]),l=e.ref();function r(d){d.del!==1&&(d.fileType===1||d.fileType===2||d.fileType)}function i(d){}function c(d){o.value===d&&s.value.length>1?o.value=null:o.value=d}async function p(){const d=await ca({id:t.taskItemId,viewMode:1});if(d.code===200){const f=d.data||{};if(f.deviceUserList){const _=f.deviceUserList,y=[];_.forEach(u=>{const N=y.findIndex(w=>w.orgId===u.orgId),k=u;k.key=Yn(1),N===-1?y.push({orgName:u.orgName,orgId:u.orgId,deviceUserList:[{...k}]}):y[N].deviceUserList.push({...k})}),s.value=y}else s.value=[];a.value=[],s.value.forEach(_=>{_.deviceUserList&&_.deviceUserList.length&&a.value.push(..._.deviceUserList)});const m=s.value[0];m&&c(m.orgId)}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,dataListRef:l,clickGroupItem:r,selectItemFn:i,activeNameFn:c,taskItemViewFn:p}}const WI={class:"r-f h_100vh flex h-full"},jI={class:"background_box information css-text-no-select"},HI=["onClick"],YI={style:{"margin-left":"4px"}},GI=["onClick"],qI={class:"flex-grow flex w-0"},KI={class:"over_one_line flex-grow w-0 truncate"},XI={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},JI={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},ZI={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},QI={class:"flex_vertically_center mb_10 flex items-center mb-[10px]"},vI={class:"title_box pl_10 pl-[10px]"},eL={class:"c_9DA7B2 text-hy-text-secondary"},tL={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},nL={key:1,style:{"border-color":"var(--success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},oL={class:"recordList fs_12 text-[12px] overflow-hidden"},aL={class:"actionList c_fff"},sL={key:0,class:"indexBox centerBox flex items-center justify-center"},lL={key:1,class:"indexBoxv2 centerBox"},rL={class:"mediaFileList c_9DA7B2 text-hy-text-secondary"},iL={key:0,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},cL={key:1},dL=["onClick"],pL={class:"fileDel clickBox"},fL={key:1,class:"file clickBox"},mL={key:2,class:"pos_r flex_vertically_center mediaFile_item relative flex items-center"},hL=be(e.defineComponent({__name:"people-view",props:{taskItemId:{default:"0"}},setup(t,{expose:n}){const o=t,{$t:a,deviceUserList:s,dataListRef:l,dataList:r,activeName:i,taskItemViewFn:c,activeNameFn:p,selectItemFn:d,clickGroupItem:f}=zI({props:o});return e.onMounted(()=>{c()}),n({taskItemViewFn:c}),(m,_)=>{const y=Ir,u=e.resolveComponent("el-icon"),N=$t,k=e.resolveComponent("el-tooltip"),w=Ar;return e.openBlock(),e.createElementBlock("div",WI,[e.createElementVNode("div",jI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(b,S)=>(e.openBlock(),e.createElementBlock("div",{key:`${S}deviceUserList`},[e.createElementVNode("div",{class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:V=>e.unref(p)(b.orgId)},[e.createVNode(u,{style:e.normalizeStyle({transform:b.orgId===e.unref(i)?"rotate(90deg)":"rotate(0deg)"}),class:"!text-[16px] !text-hy-text-primary transition_05"},{default:e.withCtx(()=>[e.createVNode(y)]),_:2},1032,["style"]),e.createElementVNode("span",YI,e.toDisplayString(b.orgName),1)],8,HI),e.createElementVNode("div",{class:"transition_05",style:e.normalizeStyle({overflow:b.orgId===e.unref(i)?"inherit":"hidden",height:b.orgId===e.unref(i)?`${b.deviceUserList.length*40}px`:"0px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.deviceUserList,(V,$)=>(e.openBlock(),e.createElementBlock("div",{key:`${$}device`,class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:h=>e.unref(d)(V)},[e.createElementVNode("div",qI,[e.createElementVNode("div",KI,e.toDisplayString(V.deviceUserName),1),e.createElementVNode("span",XI," ("+e.toDisplayString(V.jobNum)+")",1)]),V.status===0?(e.openBlock(),e.createElementBlock("div",JI,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",ZI,e.toDisplayString(e.unref(a)("finish")),1))],8,GI))),128))],4)]))),128))]),e.createElementVNode("ul",{ref_key:"dataListRef",ref:l,class:"h_100vh content_box h-full"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),b=>(e.openBlock(),e.createElementBlock("li",{key:b.key,ref_for:!0,ref:b.key,class:"ovh"},[e.createElementVNode("div",QI,[e.createElementVNode("div",vI,[e.createTextVNode(e.toDisplayString(b.deviceUserName)+" ",1),e.createElementVNode("span",eL,"("+e.toDisplayString(b.jobNum)+")",1)]),b.status===0?(e.openBlock(),e.createElementBlock("div",tL,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",nL,e.toDisplayString(e.unref(a)("finish")),1))]),e.createElementVNode("ul",oL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.recordList,(S,V)=>(e.openBlock(),e.createElementBlock("li",{key:`${V}recordList`,class:e.normalizeClass([`recordItem_${S.status}`,"background_box mb_10 ovh overflow-hidden mb-[10px]"])},[e.createElementVNode("div",aL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.actionList,($,h)=>(e.openBlock(),e.createElementBlock("div",{key:`${h}actionList`,class:"pos_r flex_vertically_center h_30 relative flex items-center h-[30px]",style:{"padding-left":"28px"}},[h===0?(e.openBlock(),e.createElementBlock("span",sL,e.toDisplayString(V+1),1)):(e.openBlock(),e.createElementBlock("span",lL)),e.createElementVNode("span",null,e.toDisplayString($.actionDetail),1)]))),128))]),e.createElementVNode("div",rL,[S.status===0?(e.openBlock(),e.createElementBlock("div",iL,[e.createVNode(u,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(N)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("unfinishedTask")),1)])):S.status===1&&S.mediaFileList&&S.mediaFileList.length?(e.openBlock(),e.createElementBlock("div",cL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.mediaFileList,($,h)=>(e.openBlock(),e.createElementBlock("div",{key:`${h}mediaFileList`,class:"pos_r flex_vertically_center css-text-no-select mediaFile_item",onClick:g=>e.unref(f)($)},[e.createVNode(u,{class:"!text-hy-success icon_box"},{default:e.withCtx(()=>[e.createVNode(N)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("uploaded")),1),$.del===1?(e.openBlock(),e.createBlock(k,{key:0,class:"item",effect:"dark",content:e.unref(a)("theFileHasBeenDeletedAndCannotBeViewed"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",pL,e.toDisplayString($.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",fL,e.toDisplayString($.fileName),1))],8,dL))),128))])):(e.openBlock(),e.createElementBlock("div",mL,[e.createVNode(u,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(w)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("theTaskHasBeenCompletedWaitingForUploading")),1)]))])],2))),128))])]))),128))],512)])}}}),[["__scopeId","data-v-82696267"]]),uL={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_L=[e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768a384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896a448 448 0 0 1 0 896"},null,-1),e.createElementVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"},null,-1),e.createElementVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"},null,-1)];function gL(t,n){return e.openBlock(),e.createElementBlock("svg",uL,[..._L])}const yL={name:"ep-clock",render:gL};function xL({props:t}){const n=e.ref({}),o=e.ref(null),a=e.ref([]),s=e.ref([]),l=e.ref();function r(p){}function i(p){o.value===p&&s.value.length>1?o.value=null:o.value=p}async function c(){const p=await ca({id:t.taskItemId,viewMode:1});if(p.code===200){const d=p.data||{};if(d.deviceUserList){const m=d.deviceUserList,_=[];m.forEach(y=>{const u=_.findIndex(k=>k.orgId===y.orgId),N=y;if(N.key=Yn(1),y.userReport){const k=y.userReport;N.urTemplateName=k.templateName,N.urSubmitDtm=k.submitDtm,N.urOptionList=k.optionList||[]}u===-1?_.push({orgName:y.orgName,orgId:y.orgId,deviceUserList:[{...N}]}):_[u].deviceUserList.push({...N})}),s.value=_}else s.value=[];a.value=[],s.value.forEach(m=>{m.deviceUserList&&m.deviceUserList.length&&a.value.push(...m.deviceUserList)});const f=s.value[0];f&&i(f.orgId)}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,reportListRef:l,selectItemFn:r,activeNameFn:i,taskItemViewFn:c}}const kL={class:"r-f h_100vh flex h-full"},NL={class:"background_box information css-text-no-select"},bL=["onClick"],CL={style:{"margin-left":"4px"}},wL=["onClick"],EL={class:"flex-grow flex w-0"},SL={class:"over_one_line flex-grow w-0 truncate"},TL={class:"c_9DA7B2 flex-shrink text-hy-text-secondary"},DL={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},VL={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},$L={key:0,ref:"reportListRef",class:"f-g reportList w-0 flex-grow"},BL={key:0,class:"background_box h_100vh lh_20 h-full leading-[20px]"},AL={class:"fs_14 plr_20 border-bottom mtb_10 m-[10px_0] p-[0_20px] text-[14px]"},IL={class:"flex_vertically_center flex items-center",style:{"justify-content":"space-between"}},LL={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},FL={class:"c_9DA7B2 r-f lh_30 flex leading-[30px] text-hy-text-secondary",style:{"justify-content":"space-between"}},OL={class:"flex_vertically_center flex items-center"},RL={style:{"margin-left":"4px"}},PL={style:{padding:"0 20px 10px"}},ML={class:"mb_10 r-f mb-[10px] flex"},UL={class:"mr_10 label flex-shrink mr-[10px]"},zL={class:"c_theme r-f flex text-hy-text-primary"},WL={class:"mr_10 label label_answer flex-shrink mr-[10px]"},jL={key:0,class:"c_theme text-hy-text-primary"},HL={key:1,class:"c_theme text-hy-text-primary"},YL={key:1,class:"background_box h_100vh c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary h-full"},GL={class:"fs_14 plr_20 border-bottom text-[14px] p-[0_20px]"},qL={class:"flex_vertically_center lh_40 flex items-center leading-[40px]",style:{"justify-content":"space-between"}},KL={class:"c_9DA7B2 text-hy-text-secondary"},XL={class:"tac ptb_20 p-[20px_0] text-center"},JL={class:"mt_10 mt-[10px]"},ZL={key:0},QL={key:1},vL={key:2,class:"c_success text-hy-success"},eF=be(e.defineComponent({__name:"task-report",props:{taskItemId:{default:"0"}},setup(t,{expose:n}){const o=t,{$t:a,deviceUserList:s,dataList:l,activeName:r,taskItemViewFn:i,activeNameFn:c,selectItemFn:p}=xL({props:o});return e.onMounted(()=>{i()}),n({taskItemViewFn:i}),(d,f)=>{const m=Ir,_=e.resolveComponent("el-icon"),y=yL,u=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",kL,[e.createElementVNode("div",NL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(N,k)=>(e.openBlock(),e.createElementBlock("div",{key:`${k}deviceUserList`},[e.createElementVNode("div",{class:"clickBox deviceItem background_box flex_vertically_center flex items-center",onClick:w=>e.unref(c)(N.orgId)},[e.createVNode(_,{style:e.normalizeStyle({transform:N.orgId===e.unref(r)?"rotate(90deg)":"rotate(0deg)"}),class:"!text-[16px] !text-hy-text-primary transition_05"},{default:e.withCtx(()=>[e.createVNode(m)]),_:2},1032,["style"]),e.createElementVNode("span",CL,e.toDisplayString(N.orgName),1)],8,bL),e.createElementVNode("div",{class:"transition_05",style:e.normalizeStyle({overflow:N.orgId===e.unref(r)?"inherit":"hidden",height:N.orgId===e.unref(r)?`${N.deviceUserList.length*40}px`:"0px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.deviceUserList,(w,b)=>(e.openBlock(),e.createElementBlock("div",{key:`${b}device`,class:"clickBox deviceItem background_box flex_vertically_center flex items-center text-xs",onClick:S=>e.unref(p)(w)},[e.createElementVNode("div",EL,[e.createElementVNode("div",SL,e.toDisplayString(w.deviceUserName),1),e.createElementVNode("span",TL," ("+e.toDisplayString(w.jobNum)+")",1)]),w.taskReportStatus===1?(e.openBlock(),e.createElementBlock("div",DL,e.toDisplayString(e.unref(a)("unfilled")),1)):w.taskReportStatus===2?(e.openBlock(),e.createElementBlock("div",VL,e.toDisplayString(e.unref(a)("haveBeenFilledIn")),1)):e.createCommentVNode("",!0)],8,wL))),128))],4)]))),128))]),e.unref(l)&&e.unref(l).length?(e.openBlock(),e.createElementBlock("div",$L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),N=>(e.openBlock(),e.createElementBlock("div",{key:N.key,ref_for:!0,ref:N.key,class:"background_box mb_10 mb-[10px]"},[N.userReport?(e.openBlock(),e.createElementBlock("div",BL,[e.createElementVNode("div",AL,[e.createElementVNode("div",IL,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(N.deviceUserName)+" ",1),e.createElementVNode("span",LL,"("+e.toDisplayString(N.jobNum)+")",1)]),e.withDirectives(e.createElementVNode("div",{class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},e.toDisplayString(e.unref(a)("unfinished")),513),[[e.vShow,N.status===0]]),e.withDirectives(e.createElementVNode("div",{style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},e.toDisplayString(e.unref(a)("finish")),513),[[e.vShow,N.status===1]])]),e.createElementVNode("div",FL,[e.createElementVNode("div",null,e.toDisplayString(N.urTemplateName),1),e.createElementVNode("div",OL,[e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(y)]),_:1}),e.createElementVNode("span",RL,e.toDisplayString(N.urSubmitDtm),1)])])]),e.createElementVNode("div",PL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.urOptionList,(k,w)=>(e.openBlock(),e.createElementBlock("div",{key:`${w}urOptionList`,class:"reportItem ptb_10 border-bottom p-[10px_0] text-[12px]"},[e.createElementVNode("div",ML,[e.createElementVNode("div",UL,e.toDisplayString(e.unref(a)("ask")),1),e.createTextVNode(" "+e.toDisplayString(k.optionTitle),1)]),e.createElementVNode("div",zL,[e.createElementVNode("div",WL,e.toDisplayString(e.unref(a)("answer")),1),k.optionValue?(e.openBlock(),e.createElementBlock("span",jL,e.toDisplayString(k.optionValue),1)):(e.openBlock(),e.createElementBlock("span",HL,e.toDisplayString(e.unref(a)("none")),1))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",YL,[e.createElementVNode("div",GL,[e.createElementVNode("div",qL,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(N.deviceUserName)+" ",1),e.createElementVNode("span",KL,"("+e.toDisplayString(N.jobNum)+")",1)]),e.withDirectives(e.createElementVNode("div",{class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},e.toDisplayString(e.unref(a)("unfinished")),513),[[e.vShow,N.status===0]]),e.withDirectives(e.createElementVNode("div",{style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},e.toDisplayString(e.unref(a)("finish")),513),[[e.vShow,N.status===1]])])]),e.createElementVNode("div",XL,[e.createVNode(u,{style:{width:"50px",height:"50px"},name:"sys-icon-no-data","class-name":"svgBox"}),e.createElementVNode("div",JL,[N.taskReportStatus===0?(e.openBlock(),e.createElementBlock("span",ZL,e.toDisplayString(e.unref(a)("noNeedToSubmitATaskReport")),1)):N.taskReportStatus===1?(e.openBlock(),e.createElementBlock("span",QL,e.toDisplayString(e.unref(a)("unpackTaskReport")),1)):N.taskReportStatus===2?(e.openBlock(),e.createElementBlock("span",vL,e.toDisplayString(e.unref(a)("submittedTaskReport")),1)):e.createCommentVNode("",!0)])])]))]))),128))],512)):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-6b18d733"]]);function tF({props:t}){const n=e.ref({}),o=e.ref(null),a=e.ref([]),s=e.ref([]),l=e.ref();function r(p){p.del!==1&&(p.fileType===1||p.fileType===2||p.fileType)}function i(p){l.value.offsetTop}async function c(){const p=await ca({id:t.taskItemId,viewMode:2});if(p.code===200){const d=p.data||{};if(d.opList){const f=d.opList||[],m=[];f.forEach(_=>{const y=_.actionList.map(u=>u.actionDetail);m.push({..._,key:_.id,actionDetail:y.toString()})}),a.value=m}else a.value=[]}}return{$t:x,selectItem:n,activeName:o,dataList:a,deviceUserList:s,dataListRef:l,clickGroupItem:r,selectItemFn:i,taskItemViewFn:c}}const nF={class:"r-f h_100vh h-full flex"},oF={class:"background_box information css-text-no-select"},aF=["onClick"],sF={class:"r-f f-g flex flex-grow w-0"},lF={class:"indexBox centerBox flex-shrink flex justify-center items-center",style:{left:"4px"}},rF={class:"over_one_line truncate"},iF={key:0,class:"flex-shrink ml_10 status c_9DA7B2 ml-[10px] text-hy-text-secondary"},cF={key:1,style:{"border-color":"var(--hy-success)"},class:"flex-shrink ml_10 status c_success ml-[10px] text-hy-success"},dF={class:"recordList fs_12 text-[12px]"},pF={class:"actionList c_fff text-hy-text-main"},fF={key:0,class:"indexBox centerBox flex justify-center items-center"},mF={key:1,class:"indexBoxv2 centerBox flex justify-center items-center"},hF={class:"mediaFileList"},uF={key:0},_F={class:"flex_vertically_center pos_r relative flex items-center"},gF={class:"c_fff text-hy-text-main"},yF={key:1},xF={class:"flex_vertically_center pos_r relative flex items-center"},kF={class:"c_fff text-hy-text-main"},NF=["onClick"],bF={class:"fileDel clickBox"},CF={key:1,class:"file clickBox"},wF={key:2},EF={class:"flex_vertically_center pos_r relative flex items-center"},SF={class:"c_fff text-hy-text-main"},TF=be(e.defineComponent({__name:"task-view",props:{taskItemId:{default:"0"}},setup(t,{expose:n}){const o=t,{$t:a,taskItemViewFn:s,dataList:l,selectItemFn:r,dataListRef:i,clickGroupItem:c}=tF({props:o});return e.onMounted(()=>{s()}),n({taskItemViewFn:s}),(p,d)=>{const f=$t,m=e.resolveComponent("el-icon"),_=Ar,y=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",nF,[e.createElementVNode("div",oF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(u,N)=>(e.openBlock(),e.createElementBlock("div",{key:`${N}device`,class:"clickBox deviceItem background_box c_9DA7B2 flex_vertically_center pos_r relative flex items-center text-hy-text-secondary",onClick:k=>e.unref(r)(u)},[e.createElementVNode("div",sF,[e.createElementVNode("span",lF,e.toDisplayString(N+1),1),e.createElementVNode("span",rF,e.toDisplayString(u.actionDetail),1)]),u.status===0?(e.openBlock(),e.createElementBlock("div",iF,e.toDisplayString(e.unref(a)("unfinished")),1)):(e.openBlock(),e.createElementBlock("div",cF,e.toDisplayString(e.unref(a)("finish")),1))],8,aF))),128))]),e.createElementVNode("div",{ref_key:"dataListRef",ref:i,class:"content_box"},[e.createElementVNode("ul",dF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(u,N)=>(e.openBlock(),e.createElementBlock("li",{key:u.key,ref_for:!0,ref:u.key,class:e.normalizeClass([`recordItem_${u.status}`,"background_box mb_10 ovh overflow-hidden mb-[10px]"])},[e.createElementVNode("div",pF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.actionList,(k,w)=>(e.openBlock(),e.createElementBlock("div",{key:`${w}actionList`,class:"pos_r flex_vertically_center h_30 relative flex items-center h-[30px]",style:{"padding-left":"28px"}},[w===0?(e.openBlock(),e.createElementBlock("span",fF,e.toDisplayString(N+1),1)):(e.openBlock(),e.createElementBlock("span",mF)),e.createElementVNode("span",null,e.toDisplayString(k.actionDetail),1)]))),128))]),e.createElementVNode("div",hF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.recordList,(k,w)=>(e.openBlock(),e.createElementBlock("div",{key:`${w}recordList`,class:"pos_r mediaFile_item c_9DA7B2 lh_20 mb_10 relative text-hy-text-secondary leading-[20px] mb-[10px]"},[k.status===0?(e.openBlock(),e.createElementBlock("div",uF,[e.createElementVNode("div",_F,[e.createVNode(m,{class:"!text-hy-danger icon_box"},{default:e.withCtx(()=>[e.createVNode(f)]),_:1}),e.createElementVNode("span",gF,e.toDisplayString(k.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(k.jobNum)+")",1)]),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("unfinishedTask")),1)])):k.status===1&&k.mediaFileList&&k.mediaFileList.length?(e.openBlock(),e.createElementBlock("div",yF,[e.createElementVNode("div",xF,[e.createVNode(m,{class:"!text-hy-success icon_box"},{default:e.withCtx(()=>[e.createVNode(_)]),_:1}),e.createElementVNode("span",kF,e.toDisplayString(k.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(k.jobNum)+")",1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.mediaFileList,(b,S)=>(e.openBlock(),e.createElementBlock("div",{key:`${S}mediaFileList`,class:"css-text-no-select",onClick:V=>e.unref(c)(b)},[e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("uploaded")),1),b.del===1?(e.openBlock(),e.createBlock(y,{key:0,class:"item",effect:"dark",content:e.unref(a)("theFileHasBeenDeletedAndCannotBeViewed"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",bF,e.toDisplayString(b.fileName),1)]),_:2},1032,["content"])):(e.openBlock(),e.createElementBlock("span",CF,e.toDisplayString(b.fileName),1))],8,NF))),128))])):(e.openBlock(),e.createElementBlock("div",wF,[e.createElementVNode("div",EF,[e.createVNode(m,{class:"!text-hy-warning icon_box"},{default:e.withCtx(()=>[e.createVNode(_)]),_:1}),e.createElementVNode("span",SF,e.toDisplayString(k.deviceUserName),1),e.createElementVNode("span",null,"("+e.toDisplayString(k.jobNum)+")",1)]),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("theTaskHasBeenCompletedWaitingForUploading")),1)]))]))),128))])],2))),128))])],512)])}}}),[["__scopeId","data-v-85c188ed"]]);function DF(){const t=e.ref({}),n=e.ref(""),o=e.ref(1),a=e.ref(1),s=e.ref(!1),l=e.ref(),r=e.ref(),i=e.ref(),c=e.ref(),p=e.ref();function d(w){l.value.taskExampleFn(w)}function f(w){a.value=w}function m(w){if(!w){Se.error(x("checkTheTaskAreaWrong"));return}r.value.show({mapRailId:w})}function _(w){o.value=w,w===2&&(t.value.taskMode===2?f(2):f(1))}function y(){s.value=!1}function u(){return new Promise(async(w,b)=>{const S=await uV({id:n.value});S.code===200&&(t.value=S.data||{},w(0))})}function N(w=null){n.value=w,_(1),u().then(()=>{console.log(111),s.value=!0})}function k(){switch(o.value){case 1:u();break;case 2:a.value===1&&t.value.taskMode===1?i.value.taskItemViewFn():this.viewMode===2&&c.value.taskItemViewFn();break;case 3:p.value.taskItemViewFn();break}}return{$t:x,form:t,taskItemId:n,navigationType:o,viewMode:a,dialogVisible:s,viewTaskExampleRef:l,selectLocationAreaRef:r,peopleViewRef:i,taskViewRef:c,taskReportRef:p,viewTaskExampleShow:d,viewModeFn:f,seeTaskArea:m,navigationTypeFn:_,onClose:y,selectFn:u,show:N,onRefresh:k}}const VF={class:"pos_r dialog_header relative text-[18px] text-center p-[20px] font-bold bg-hy-dialog-bg-1"},$F={class:"deleteBox c_fff el-progress-bar__outer_backgroundv3 text-hy-text-main bg-hy-dialog-bg-1 relative z-10"},BF={class:"dialog_body",style:{"padding-right":"0px"}},AF={class:"ovh centerBox flex items-center justify-center overflow-hidden"},IF={class:"r-f navigation flex"},LF={key:0,class:"r-f flex",style:{height:"540px"}},FF={class:"fs_12 lh_20 h_100vh background_box information text-[12px] leading-[20px] h-full"},OF={class:"fs_16 fw_600 lh_40 text-[16px] font-[600px] leading-[40px]"},RF={key:0,class:"mb_20 mb-[20px]"},PF={class:"c_9DA7B2 text-hy-text-secondary"},MF=["innerHTML"],UF={class:"mb_20 mb-[20px]"},zF={class:"c_9DA7B2 text-hy-text-secondary"},WF={class:"c_9DA7B2 text-hy-text-secondary"},jF={class:"mb_20 mb-[20px]"},HF={class:"c_9DA7B2 text-hy-text-secondary"},YF={class:"h_100vh content_box h-full"},GF={class:"flex_vertically_center title_box flex items-center"},qF={class:"pos_r relative"},KF={class:"fs_12"},XF={class:"actionList"},JF={key:0},ZF=["onClick"],QF={key:1,class:"c-f flex flex-col",style:{height:"540px"}},vF={class:"fs_12 r-f mb_10 flex text-[12px] mb-[10px]",style:{"justify-content":"space-between","padding-right":"30px"}},eO={class:"lh_20 flex_vertically_center flex items-center leading-[20px]"},tO={key:0,class:"c_dangerv2 text-hy-danger"},nO={key:1,class:"c_success text-hy-success"},oO={key:2,class:"c_9DA7B2 text-hy-text-secondary"},aO={key:3,class:"c_theme text-hy-text-primary"},sO={style:{width:"108px"},class:"plr_10 p-[0_10px]"},lO={class:"c_theme text-hy-text-primary"},rO={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary"},iO={class:"centerBox flex justify-center items-center"},cO={style:{"margin-left":"6px"}},dO={class:"c_9DA7B2 fs_12 text-[12px] text-hy-text-secondary flex items-center"},pO={class:"centerBox flex justify-center items-center"},fO={style:{"margin-left":"6px"}},mO={style:{"flex-grow":"1",height:"0"}},hO=be(e.defineComponent({__name:"common-task-detail",props:{draggable:{type:Boolean,default:!1}},setup(t,{expose:n}){const{$t:o,viewTaskExampleRef:a,selectLocationAreaRef:s,taskReportRef:l,taskViewRef:r,peopleViewRef:i,show:c,dialogVisible:p,navigationType:d,form:f,viewMode:m,taskItemId:_,viewModeFn:y,viewTaskExampleShow:u,seeTaskArea:N,navigationTypeFn:k,onRefresh:w,onClose:b}=DF();return n({show:c}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-button"),g=e.resolveComponent("el-progress"),C=$t,E=e.resolveComponent("el-icon"),D=e.resolveComponent("el-dialog"),T=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(D,{modelValue:e.unref(p),"onUpdate:modelValue":V[7]||(V[7]=B=>e.isRef(p)?p.value=B:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"900px",modal:!S.draggable,draggable:S.draggable,"modal-class":S.draggable?"custom-transparent":""},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",VF,[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("missionDetails")),1),e.createElementVNode("div",null,[e.createElementVNode("div",{class:"cursor-pointer active:opacity-60 refresh",onClick:V[0]||(V[0]=(...B)=>e.unref(w)&&e.unref(w)(...B))},[e.createVNode($,{name:"live-broadcast-refresh-v3",style:{width:"26px",height:"26px"},"class-name":"text-hy-text-primary"})]),e.createElementVNode("div",{class:"clickBox cursor-pointer active:opacity-60 closeBox absolute right-[12px] top-[12px]",onClick:V[1]||(V[1]=(...B)=>e.unref(b)&&e.unref(b)(...B))},[e.createVNode($,{name:"sys-button-close",style:{width:"26px",height:"26px"},"class-name":"text-hy-text-danger"})])])])),[[T]])]),default:e.withCtx(()=>[e.createElementVNode("div",$F,[e.createElementVNode("div",BF,[e.createVNode(LI,{ref_key:"selectLocationAreaRef",ref:s,draggable:!1},null,512),e.createElementVNode("div",AF,[e.createElementVNode("ul",IF,[e.createElementVNode("li",{class:e.normalizeClass(["clickBox cursor-pointer active:opacity-60 css-text-no-select",{selectBox:e.unref(d)===1}]),onClick:V[2]||(V[2]=B=>e.unref(k)(1))},e.toDisplayString(e.unref(o)("missionDetails-0")),3),e.createElementVNode("li",{class:e.normalizeClass(["clickBox cursor-pointer active:opacity-60 css-text-no-select",{selectBox:e.unref(d)===2}]),onClick:V[3]||(V[3]=B=>e.unref(k)(2))},e.toDisplayString(e.unref(o)("implementation")),3),e.unref(f)&&e.unref(f).templateId?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass(["clickBox cursor-pointer active:opacity-60 css-text-no-select",{selectBox:e.unref(d)===3}]),onClick:V[4]||(V[4]=B=>e.unref(k)(3))},e.toDisplayString(e.unref(o)("missionReport")),3)):e.createCommentVNode("",!0)])]),e.unref(d)===1?(e.openBlock(),e.createElementBlock("div",LF,[e.createElementVNode("div",FF,[e.createElementVNode("div",OF,e.toDisplayString(e.unref(f).taskAction),1),e.unref(f).taskDesc?(e.openBlock(),e.createElementBlock("div",RF,[e.createElementVNode("div",PF,e.toDisplayString(e.unref(o)("taskDescription")),1),e.createElementVNode("div",{class:"mission_content",style:{"white-space":"pre-wrap"},innerHTML:e.unref(f).taskDesc},null,8,MF)])):e.createCommentVNode("",!0),e.createElementVNode("div",UF,[e.createElementVNode("div",zF,e.toDisplayString(e.unref(o)("executionTime")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(f).executeDtmStr)+" ",1),e.createElementVNode("span",WF,"("+e.toDisplayString(e.unref(f).taskDateStartTime)+" ~ "+e.toDisplayString(e.unref(f).taskDateEndTime)+")",1)])]),e.createElementVNode("div",jF,[e.createElementVNode("div",HF,e.toDisplayString(e.unref(o)("executionMode")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(f).taskMode===1?e.unref(o)("independentExecution"):e.unref(o)("collaborativeExecution")),1)])]),e.createElementVNode("ul",YF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f).opList,(B,L)=>(e.openBlock(),e.createElementBlock("li",{key:`${L}opList`,class:"background_box ovh overflow-hidden"},[e.createElementVNode("div",GF,[e.createElementVNode("div",qF,[e.createTextVNode(e.toDisplayString(e.unref(o)("first"))+e.toDisplayString(L+1)+e.toDisplayString(e.unref(o)("strip"))+" ",1),e.createElementVNode("span",null,e.toDisplayString(B.taskOp===1?e.unref(o)("photograph"):e.unref(o)("record")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(o)("task")),1)]),e.createVNode(h,{class:"button_default",type:"primary",onClick:j=>e.unref(N)(B.mapRailId)},{default:e.withCtx(()=>[e.createElementVNode("span",KF,e.toDisplayString(e.unref(o)("missionArea")),1)]),_:2},1032,["onClick"])]),e.createElementVNode("ul",XF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.actionList,(j,F)=>(e.openBlock(),e.createElementBlock("li",{key:`${F}actionList`,class:e.normalizeClass([{clickBox:!1},"flex_vertically_center flex items-center"])},[e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(j.actionDetail)+" ",1),j.taskAction?(e.openBlock(),e.createElementBlock("span",JF,'"'+e.toDisplayString(j.taskAction)+'"',1)):e.createCommentVNode("",!0)]),B.taskExample&&B.taskExample.exampleName?(e.openBlock(),e.createElementBlock("span",{key:0,class:"c_9DA7B2 flex-shrink ml_10 clickBox taskExample css-text-no-select text-hy-text-secondary ml-[10px] cursor-pointer active:opacity-60",onClick:M=>e.unref(u)(B.taskExample)},e.toDisplayString(e.unref(o)("viewExample")),9,ZF)):e.createCommentVNode("",!0)]))),128))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",QF,[e.withDirectives(e.createElementVNode("div",vF,[e.createElementVNode("div",eO,[e.unref(f).status===0?(e.openBlock(),e.createElementBlock("span",tO,e.toDisplayString(e.unref(o)("unfinished")),1)):e.unref(f).status===1?(e.openBlock(),e.createElementBlock("span",nO,e.toDisplayString(e.unref(o)("hasBeenCompleted")),1)):e.unref(f).status===2?(e.openBlock(),e.createElementBlock("span",oO,e.toDisplayString(e.unref(o)("notPerformed")),1)):e.unref(f).status===3?(e.openBlock(),e.createElementBlock("span",aO,e.toDisplayString(e.unref(o)("execute")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",sO,[e.unref(f).status===0?(e.openBlock(),e.createBlock(g,{key:0,class:"progress-bar_outer_errors",color:"var(--hy-danger)","text-inside":!0,"stroke-width":16,status:"exception",percentage:e.unref(f).taskProgress>100?100:e.unref(f).taskProgress},null,8,["percentage"])):(e.openBlock(),e.createBlock(g,{key:1,class:e.normalizeClass({"progress-bar_outer":e.unref(f).taskProgress!==100}),color:"var(--success)","text-inside":!0,"stroke-width":16,status:"success",percentage:e.unref(f).taskProgress},null,8,["class","percentage"]))]),e.createElementVNode("span",lO,e.toDisplayString(e.unref(f).finishNum||0)+"/"+e.toDisplayString(e.unref(f).totalNum||0),1)]),e.withDirectives(e.createElementVNode("div",rO,[e.createVNode(E,null,{default:e.withCtx(()=>[e.createVNode(C)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(o)("currentlyForPersonnelView"))+" ",1),e.createVNode(h,{class:"button_function ml_10 ml-[10px]",onClick:V[5]||(V[5]=B=>e.unref(y)(2))},{default:e.withCtx(()=>[e.createElementVNode("div",iO,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-download-task"}),e.createElementVNode("span",cO,e.toDisplayString(e.unref(o)("missionView")),1)])]),_:1})],512),[[e.vShow,e.unref(m)===1&&e.unref(f).taskMode===1]]),e.withDirectives(e.createElementVNode("div",dO,[e.createVNode(E,null,{default:e.withCtx(()=>[e.createVNode(C)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(o)("currentAsAMissionView"))+" ",1),e.unref(f).taskMode===1?(e.openBlock(),e.createBlock(h,{key:0,class:"button_function ml_10 ml-[10px]",onClick:V[6]||(V[6]=B=>e.unref(y)(1))},{default:e.withCtx(()=>[e.createElementVNode("div",pO,[e.createVNode($,{style:{width:"12px",height:"12px"},name:"base-user-online"}),e.createElementVNode("span",fO,e.toDisplayString(e.unref(o)("personnelView")),1)])]),_:1})):e.createCommentVNode("",!0)],512),[[e.vShow,e.unref(m)===2]])],512),[[e.vShow,e.unref(d)===2]]),e.createElementVNode("div",mO,[e.unref(d)===2&&e.unref(m)===1&&e.unref(f).taskMode===1?(e.openBlock(),e.createBlock(hL,{key:0,ref_key:"peopleViewRef",ref:i,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.createCommentVNode("",!0),e.unref(d)===2&&e.unref(m)===2?(e.openBlock(),e.createBlock(TF,{key:1,ref_key:"taskViewRef",ref:r,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.unref(d)===3?(e.openBlock(),e.createBlock(eF,{key:2,ref_key:"taskReportRef",ref:l,"task-item-id":e.unref(_)},null,8,["task-item-id"])):e.createCommentVNode("",!0)])])),e.createVNode($r,{ref_key:"viewTaskExampleRef",ref:a,draggable:S.draggable},null,8,["draggable"])])]),e.createVNode($e,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue","modal","draggable","modal-class"])}}}),[["__scopeId","data-v-8b3c65a6"]]),uO={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_O=[e.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864L512 652.672L192.128 340.864a30.592 30.592 0 0 0-42.752 0a29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728a30.592 30.592 0 0 0-42.752 0z"},null,-1)];function gO(t,n){return e.openBlock(),e.createElementBlock("svg",uO,[..._O])}const yO={name:"ep-arrow-down",render:gO},xO={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},kO=[e.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32l-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872l319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"},null,-1)];function NO(t,n){return e.openBlock(),e.createElementBlock("svg",xO,[...kO])}const bO={name:"ep-arrow-up",render:NO},CO={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},wO=[e.createElementVNode("path",{fill:"currentColor",d:"M672 192L288 511.936L672 832z"},null,-1)];function EO(t,n){return e.openBlock(),e.createElementBlock("svg",CO,[...wO])}const SO={name:"ep-caret-left",render:EO};function Lr(t){return oe.post({url:"spotCheck/task/detail",data:t,isFormData:!0})}function TO(t){return oe.post({url:"spotCheck/task/taskDevice/findAll",data:t,isFormData:!0})}function DO(t){return oe.post({url:"spotCheck/task/end",data:t,isFormData:!0})}function VO(t){return oe.post({url:"spotCheck/timing/detail",data:t,isFormData:!0})}function $O(t){return oe.post({url:t.id?"spotCheck/timing/update":"spotCheck/timing/insert",data:t,isJson:!0})}function BO(t){return oe.post({url:"spotCheck/template/detail",data:t,isFormData:!0})}function AO(t){return oe.post({url:t.id?"spotCheck/template/update":"spotCheck/template/insert",data:t,isJson:!0})}function IO(t){return oe.post({url:"spotCheck/task/taskExecute",data:t,isJson:!0})}function Fr(t){return oe.post({url:"spotCheck/task/pttFile/page",data:t,isFormData:!0})}function LO(t){return oe.post({url:"spotCheck/task/groupBind",data:t,isJson:!0})}function FO({props:t,emit:n}){const o=e.ref(null),a=e.ref(0),s=e.ref(0),l=e.ref(0),r=e.ref(0),i=e.ref(0),c=e.ref(0),p=e.ref([]);function d(N){const{deviceId:k,checkStatus:w}=N||{};if(!k)return;const b=p.value.findIndex(S=>S.deviceId===k);if(b!==-1){switch(p.value[b].checkStatus){case 1:a.value--;break;case 2:s.value--;break}switch(w){case 2:s.value++;break;case 3:l.value++;break;case 4:r.value++;break}e.nextTick(()=>{m(),p.value[b].checkStatus=w})}}function f(){let N=0,k=0,w=0,b=0,S=0,V=0;p.value.forEach($=>{const h=$.checkStatus,g=$.intercomGroupTem,C=$.onlineState;switch(g===1&&V++,C===2&&S++,h){case 1:N++;break;case 2:k++;break;case 3:w++;break;case 4:b++;break}}),e.nextTick(()=>{a.value=N,s.value=k,l.value=w,r.value=b,i.value=S,c.value=V,m()})}function m(){n("on-countStatus",{beReceiveNum:a.value,receivingNum:s.value,finishNum:l.value,notFinishNum:r.value,offLineNum:i.value,intercomGroupTemNum:c.value})}function _(){o.value}function y(){}async function u(N){const{code:k,data:w=[]}=await TO({taskId:t.form.id,checkStatus:N||null});k===200&&(p.value=w,t.subscribeStatus&&f(),n("change",p.value))}return{uniqueId:o,beReceiveNum:a,receivingNum:s,finishNum:l,notFinishNum:r,offLineNum:i,intercomGroupTemNum:c,taskDeviceList:p,setDeviceStatus:d,initDeviceStatusList:f,onCountStatus:m,spotCheckSubscribe:_,spotCheckUnsubscribe:y,getData:u}}const OO={class:"h-[58px] bg-hy-dialog-bg-2 border border-box border-hy-border-2 rounded px-2 box-border flex items-center"},RO={class:"relative"},PO={class:"w-[16px] text-hy-text-main h-[16px] bg-hy-danger flex items-center justify-center absolute -top-[2px] -right-[4px] rounded-full text-xs font-bold"},MO={class:"scale-75"},UO={class:"w-[16px] text-hy-text-main h-[16px] bg-hy-danger flex items-center justify-center absolute -top-[2px] -right-[4px] rounded-full text-xs font-bold"},zO={class:"flex-grow w-0 flex"},WO={class:"mx-2 flex-grow w-0"},jO={class:"truncate"},HO={class:"text-hy-text-secondary truncate"},YO={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},GO={class:"r-f tac flex items-center justify-center flex-col"},qO={class:"mt-3"},pa=e.defineComponent({__name:"spot-check-task-device",props:{subscribeStatus:{type:Boolean,default:!0},form:{default:{}},paramsSpan:{default:24}},emits:["on-countStatus"],setup(t,{emit:n}){const o=t,a=n,{taskDeviceList:s,spotCheckUnsubscribe:l,uniqueId:r,spotCheckSubscribe:i,getData:c}=FO({props:o,emit:a});return e.onMounted(()=>{r.value=o.form.uniqueId,o.subscribeStatus&&i(),c()}),e.onUnmounted(()=>{l()}),(p,d)=>{const f=e.resolveComponent("el-tooltip"),m=e.resolveComponent("svg-icon"),_=e.resolveComponent("el-col"),y=e.resolveComponent("el-row");return e.openBlock(),e.createBlock(y,{gutter:8,class:"h-full"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),u=>(e.openBlock(),e.createBlock(_,{key:u.id,span:p.paramsSpan,class:"mb-2"},{default:e.withCtx(()=>[e.createElementVNode("div",OO,[e.createElementVNode("div",RO,[e.createVNode(xt,{class:"w-[36px] h-[36px]"}),u.intercomGroupTem===1?(e.openBlock(),e.createBlock(f,{key:0,class:"item",effect:"dark",content:e.unref(x)("theDeviceWasInATemporaryGroupWhenTheSpotCheckWasInitiated"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",PO,[e.createElementVNode("span",MO,e.toDisplayString(e.unref(x)("lin")),1)])]),_:1},8,["content"])):u.onlineState===2?(e.openBlock(),e.createBlock(f,{key:1,class:"item",effect:"dark",content:e.unref(x)("theDeviceWasOfflineWhenTheSpotCheckWasInitiated"),placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",UO,[e.createVNode(m,{name:"icon-off-line","class-name":"!w-[10px] !h-[14px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",zO,[e.createElementVNode("div",WO,[e.createElementVNode("p",jO,e.toDisplayString(u.devName),1),e.createElementVNode("p",HO,e.toDisplayString(u.deviceId),1)]),e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("div",{class:"border-info bg-hy-info/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(x)("toBeReceived-1")),513),[[e.vShow,u.checkStatus===1]]),e.withDirectives(e.createElementVNode("div",{class:"border-warning bg-hy-warning/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(x)("receiving-1")),513),[[e.vShow,u.checkStatus===2]]),e.withDirectives(e.createElementVNode("div",{class:"w-[54px] border-success bg-hy-success/50 border rounded px-2 flex items-center justify-center h-[24px] box-border whitespace-nowrap"},e.toDisplayString(e.unref(x)("completed-0")),513),[[e.vShow,u.checkStatus===3]]),e.withDirectives(e.createElementVNode("div",{class:"border-hy-danger bg-hy-danger/50 border rounded px-2 flex items-center justify-center h-[24px] box-border"},e.toDisplayString(e.unref(x)("uncompleted-0")),513),[[e.vShow,u.checkStatus===4]])])])])]),_:2},1032,["span"]))),128)),e.unref(s).length===0?(e.openBlock(),e.createBlock(_,{key:0,span:24,class:"h-full"},{default:e.withCtx(()=>[e.createElementVNode("div",YO,[e.createElementVNode("div",GO,[e.createVNode(m,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",qO,e.toDisplayString(e.unref(x)("noData")),1)])])]),_:1})):e.createCommentVNode("",!0)]),_:1})}}});function KO({props:t}){const n=e.ref(null),o=e.ref(""),a=e.ref(!1),s=e.ref(null),l=e.ref(0),r=e.ref(0),i=e.ref([]),c=e.ref(null),p=e.ref(null),d=e.ref(null),f=e.ref(!0),m=e.ref(null),_=e.ref(),y=e.ref();function u(){n.value=t.orgGroupInsertTemp.id,i.value=[],f.value=!0,k(),e.nextTick(()=>{V()})}function N(){if(!t.realtimeRequestType)return;const C=async()=>{const E=i.value[i.value.length-1];if(!E){C();return}const D={page:0,taskId:t.taskId,largeThenTimestamp:E.fileTimestamp},T=c.value.scrollTop,B=c.value.offsetHeight-46,L=document.querySelector(`#item-${E.id}`);if(L){const j=L.offsetTop,F=await Fr(D);if(F.code===200){const{content:M=[],totalElements:z=0}=F.data;l.value=z,e.nextTick(()=>{M.forEach(U=>{i.value.findIndex(Y=>Y.id===U.id)===-1&&i.value.push(U)}),T>=j-B&&S()})}}};m.value&&clearInterval(m.value),m.value=setInterval(()=>{C()},1e4)}async function k(){var B;let C=null;i.value.length&&(C=i[0].value.id);const D={page:0,taskId:t.taskId,lessThenTimestamp:(B=i.value[0])==null?void 0:B.fileTimestamp};s.value=null,a.value=!0,N();const T=await Fr(D);if(T.code===200){const{content:L=[],totalElements:j=0}=T.data;l.value=j,e.nextTick(()=>{var F;C?L.forEach(M=>{const z=i.value.findIndex(U=>U.id===M.id);M.fileDtmEnd||(M.fileDtmEnd=""),z===-1&&i.value.unshift(M)}):i.value=L.reverse(),C?(w(C),s.value=(F=i.value[this.chatMessageList.length-1])==null?void 0:F.id):S(),e.nextTick(()=>{a.value=!1})})}}function w(C){e.nextTick(()=>{c.value.scrollTo(0,document.querySelector(`#item-${C}`).offsetTop-46)})}function b(){l.value!==0&&k()}function S(){e.nextTick(()=>{c.value.scrollTo(0,c.value.scrollHeight)})}function V(){c.value=_.value,p.value=y.value,p.value.addEventListener("ended",()=>{h(),d.value=null}),c.value.onscroll=()=>{c.value.scrollTop===0&&b()}}function $(){f.value=!1,p.value.play()}function h(){f.value=!0,p.value.pause()}function g(C){}return{$t:x,groupId:n,audioUrl:o,loading:a,newScrollTop:s,totalElements:l,page:r,chatMessageList:i,chatMessageListEl:c,audioEl:p,mediaFileId:d,audioType:f,timer:m,chatMessageListRef:_,audioElRef:y,init:u,getNewData:N,getData:k,scrollToMsg:w,topEvent:b,scrollToBottom:S,initScrollList:V,audioPlay:$,audioPause:h,getAudioContext:g}}const XO=["element-loading-text"],JO={key:0,class:"w-full h-full flex box-border items-center justify-center text-center text-hy-text-secondary"},ZO={class:""},QO={class:"mt-5"},vO=["id"],eR={key:0,class:"min-w-[72px] p-1 bg-hy-dialog-bg-4 text-center rounded mb-2"},tR={key:1,class:"h-[50px] flex items-center w-full"},nR={class:"mr-2 flex-grow w-0 flex flex-col items-end"},oR={class:"w-full flex items-center justify-end"},aR=["onClick"],sR=["onClick"],lR={class:"font-bold flex-shrink-0"},rR={class:"flex-shrink-0 ml-1"},iR={key:0},cR={key:2,class:"h-[50px] flex items-center w-full"},dR={class:"ml-2 flex-grow w-0 flex flex-col items-start"},pR={class:"w-full flex items-center"},fR=["onClick"],mR={class:"flex-shrink-0 mr-1"},hR={key:0},uR={class:"font-bold flex-shrink-0"},_R=["onClick"],gR=e.defineComponent({__name:"talkback-reply",props:{realtimeRequestType:{type:Boolean,default:!0},taskId:{default:null},orgGroupInsertTemp:{default:()=>({id:971})}},setup(t){const n=t,o={},{$t:a,loading:s,chatMessageList:l,mediaFileId:r,audioType:i,getAudioContext:c,init:p,timer:d,chatMessageListRef:f,audioElRef:m}=KO({props:n});return e.onMounted(()=>{p()}),e.onUnmounted(()=>{d.value&&clearInterval(d.value)}),(_,y)=>{const u=e.resolveComponent("svg-icon"),N=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(a)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"w-full h-full p-1 box-border relative z-10"},[e.createElementVNode("audio",{id:"audio-el",ref_key:"audioElRef",ref:m,class:"absolute"},null,512),e.createElementVNode("div",{id:"chatMessageList",ref_key:"chatMessageListRef",ref:f,class:"w-full h-full overflow-auto bg-hy-dialog-bg-2 text-hy-text-main text-xs"},[e.unref(l).length===0?(e.openBlock(),e.createElementBlock("div",JO,[e.createElementVNode("div",ZO,[e.createElementVNode("div",null,[e.createVNode(u,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"})]),e.createElementVNode("div",QO,[e.createElementVNode("p",null,e.toDisplayString(e.unref(a)("noMemberRespondedAtTheMoment")),1)])])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(k,w)=>(e.openBlock(),e.createElementBlock("div",{id:`item-${k.id}`,key:k.id,class:"p-2 box-border flex flex-col items-center"},[k.fileDtmEnd.split(" ")[0]!==(w>0&&e.unref(l)[w-1].fileDtmEnd.split(" ")[0])?(e.openBlock(),e.createElementBlock("div",eR,e.toDisplayString(k.fileDtmEnd.split(" ")[0]),1)):e.createCommentVNode("",!0),k.devUserId===o.id?(e.openBlock(),e.createElementBlock("div",tR,[e.createElementVNode("div",nR,[e.createElementVNode("div",null,e.toDisplayString(k.devUserName)+" ("+e.toDisplayString(k.serialNum||k.devUserId)+") ",1),e.createElementVNode("div",oR,[e.unref(r)===k.mediaFileId&&e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mr-1 mt-1 rounded-[4px] p-[4px_8px] bg-hy-dialog-bg-3/50 text-hy-text-secondary text-xs scale-90 cursor-pointer",onClick:b=>e.unref(c)(k.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,aR)):e.createCommentVNode("",!0),e.createElementVNode("div",{style:e.normalizeStyle({width:k.audioLength>=60?"70%":`calc(${k.audioLength/60*90}px + 160px)`,background:e.unref(r)===k.mediaFileId?"var(--linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%))":"var(--hy-dialog-bg-3)"}),class:e.normalizeClass([{"!border-hy-border-1 !shadow-hy-border-1":e.unref(r)===k.mediaFileId},"max-w-[70%] h-[28px] flex items-center p-[6px] box-border mt-1 rounded-[4px_0_4px_4px] justify-between relative z-10 cursor-pointer border border-hy-border-2 shadow-[0_0_4px_0] shadow-hy-dialog-bg-1"]),onClick:b=>e.unref(c)(k.mediaFileId)},[e.createElementVNode("div",lR,e.toDisplayString(k.audioLength)+"” ",1),e.createElementVNode("div",rR,[k.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",iR,e.toDisplayString(k.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)])],14,sR)])]),e.createVNode(xt,{class:"w-[32px] h-[32px]"})])):(e.openBlock(),e.createElementBlock("div",cR,[e.createVNode(xt,{class:"w-[32px] h-[32px]"}),e.createElementVNode("div",dR,[e.createElementVNode("div",null,e.toDisplayString(k.devUserName)+" ("+e.toDisplayString(k.serialNum||k.devUserId)+") ",1),e.createElementVNode("div",pR,[e.createElementVNode("div",{style:e.normalizeStyle({width:k.audioLength>=60?"70%":`calc(${k.audioLength/60*90}px + 160px)`,background:e.unref(r)===k.mediaFileId?"var(--linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%))":"var(--hy-dialog-bg-3)"}),class:e.normalizeClass([{"!border-hy-border-1 !shadow-hy-border-1":e.unref(r)===k.mediaFileId},"max-w-[70%] h-[28px] flex items-center p-[6px] box-border mt-1 rounded-[0_4px_4px] justify-between relative z-10 cursor-pointer border border-hy-border-2 shadow-[0_0_4px_0] shadow-hy-dialog-bg-1"]),onClick:b=>e.unref(c)(k.mediaFileId)},[e.createElementVNode("div",mR,[k.fileDtmEnd?(e.openBlock(),e.createElementBlock("span",hR,e.toDisplayString(k.fileDtmEnd.split(" ")[1]),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",uR,e.toDisplayString(k.audioLength)+"” ",1)],14,fR),e.unref(r)===k.mediaFileId&&e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"ml-1 mt-1 rounded-[4px] p-[4px_8px] bg-hy-dialog-bg-3/50 text-hy-text-secondary text-xs scale-90 cursor-pointer",onClick:b=>e.unref(c)(k.mediaFileId)},e.toDisplayString(e.unref(a)("continuePlaying")),9,_R)):e.createCommentVNode("",!0)])])]))],8,vO))),128))],512)],8,XO)),[[N,e.unref(s)]])}}});function yR(){const t=e.ref({}),n=e.ref(!1),o=e.ref(null),a=e.ref(0),s=e.ref(!1),l=e.ref([]),r=e.ref(!1),i=e.ref(!1),c=e.ref();async function p(){await LO({groupId:o.value,taskId:t.value.id})}function d(){var h;l.value.length!==0&&((h=c.value)==null||h.orgGroupInsertTempFn([...l.value],{openRecording:1}).then(g=>{o.value=g,e.nextTick(()=>{p()}),_(!1)}).catch(()=>{o.value=null,n.value=!0,_(!1)}))}function f(h=[]){l.value=h,_(!1),t.value.checkStyle===2&&d()}function m(h={}){const{beReceiveNum:g=0,receivingNum:C=0,finishNum:E=0,notFinishNum:D=0,offLineNum:T=0,intercomGroupTemNum:B=0}=h;t.value.beReceiveNum=g,t.value.receivingNum=C,t.value.finishNum=E,t.value.notFinishNum=D,t.value.offLineNum=T,t.value.intercomGroupTemNum=B}function _(h){s.value=h}function y(){r.value=!r.value}async function u(h){const{code:g,data:C={}}=await Lr({id:h});g===200&&(t.value={...C},t.value.checkNum===0&&f([]),t.value.checkStyle===2&&(t.value.actionType=null),N(!0))}function N(h){i.value=h}function k(){}function w(h){if(i.value){Se.warning(x("currentlySpotCheckInProgressPleaseProcessLater"));return}o.value=null,n.value=!1,t.value={},_(!0),u(h)}function b(){i.value=!1}function S(){ft({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("cancelSpotCheck"),tipsContent:`<div style="text-align: center;"><p>${x("confirmToCancelThisSpotCheck")}?</p><p>${x("cancelMidwayYouWillNotBeAbleToRetrieveOrViewAnyInformationOfThisSpotCheck")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("returnToSpotCheck"),submitBtnText:x("cancelSpotCheck"),submitBtnType:"danger"},()=>{$(3)})}function V(){let h=x("afterTheCheck,YouCanViewTheSpotCheckInformationInTheSpotCheckModule");(t.value.beReceiveNum!==0||t.value.receivingNum!==0)&&(h=x("thereAreStillDevicesInTheReceivingProcessTheSystemWillMarkTheseDevicesAsUnfinished")),ft({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("endSpotCheck"),tipsContent:`<div><p>${x("confirmToEndThisSpotCheck")}?</p><p>${h}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("returnToSpotCheck"),submitBtnText:x("endSpotCheck")},()=>{$(2)})}async function $(h){var C;const{code:g}=await DO({taskId:t.value.id,checkStatus:h});g===200&&(h===2&&(Se.success(x("theSpotCheckHasBeenCompletedYouCanViewDetailedInformationRecordsInTheSpotCheckModule")),t.value.checkStyle===2&&o.value&&((C=c.value)==null||C.onClose())),b())}return{form:t,groupType:n,groupId:o,dragLevel:a,loading:s,taskDeviceList:l,msgContentType:r,dialogVisible:i,multiPersonIntercomSpotCheckRef:c,taskGroupBind:p,orgGroupInsertTemp:d,spotCheckTaskDeviceChange:f,spotCheckTaskDeviceCountStatus:m,setLoading:_,setMsgContentType:y,setDialogVisible:N,show:w,close:b,onClose:S,onSubmit:V,taskEnd:$,setDragLevel:k,$t:x}}const xR=t=>(e.pushScopeId("data-v-ecc43ee8"),t=t(),e.popScopeId(),t),kR={class:"el-dialog__header !p-0"},NR={class:"el-dialog__body !p-[8px_0px_8px] sideFoot_content h-[700px] flex flex-col text-hy-text-main text-xs"},bR={class:"h-[40px] flex items-center px-4 mb-1"},CR={class:"font-bold bg-hy-main/20 border border-hy-border-1/50 rounded px-2 flex items-center justify-center h-[24px] flex-shrink-0"},wR={key:0,class:"ml-3"},ER={class:"text-hy-text-secondary"},SR={key:1,class:"ml-3"},TR={class:"text-hy-text-secondary"},DR={class:"font-bold"},VR=["element-loading-text"],$R={key:0,class:"w-full h-full flex flex-col box-border"},BR={class:"flex-shrink-0 mb-3 px-4"},AR={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},IR={class:"flex w-full"},LR={class:"flex-shrink-0"},FR={class:"text-right font-bold flex-grow w-0"},OR={class:"flex w-full text-hy-text-secondary"},RR={class:"flex-shrink-0"},PR={class:"text-right flex-grow w-0"},MR={class:"flex w-full text-hy-text-secondary"},UR={class:"flex-shrink-0"},zR={class:"text-right flex-grow w-0"},WR={class:"text-xs p-2 leading-[22px]"},jR={class:"flex w-full"},HR={class:"flex-shrink-0 tracking-[4px]"},YR={class:"text-right font-bold flex-grow w-0"},GR={class:"flex w-full"},qR={class:"flex-shrink-0 tracking-[4px]"},KR={class:"text-right font-bold flex-grow w-0"},XR={class:"flex w-full"},JR={class:"flex-shrink-0 tracking-[4px]"},ZR={class:"text-right font-bold flex-grow w-0 text-hy-success"},QR={class:"flex w-full"},vR={class:"flex-shrink-0 tracking-[4px]"},e4={class:"text-right font-bold flex-grow w-0 text-hy-danger"},t4={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},n4={class:"flex-1 flex"},o4={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},a4={class:"flex-grow w-0 text-center truncate"},s4={class:"flex-1 flex"},l4={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},r4={class:"flex-grow w-0 text-center text-hy-success truncate"},i4={class:"flex-1 flex"},c4={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},d4={class:"flex-grow w-0 text-center text-hy-danger truncate"},p4={class:"w-full px-2 leading-[22px] box-border rounded bg-hy-dialog-bg-3 h-[28px] flex items-center justify-between"},f4={class:"flex"},m4={key:0,class:"ml-2 bg-hy-dialog-bg-1 h-[22px] px-2 rounded"},h4={class:"w-[400px]"},u4={class:""},_4={key:0,class:"box-border flex-grow h-0 flex px-2"},g4={class:"flex-grow w-0 px-2 overflow-x-hidden overflow-y-auto h-full"},y4={key:0,class:"w-[66%] box-border pr-2"},x4={class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},k4={key:1,class:"flex-grow h-0 px-4"},N4={class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},b4={class:"r-f tac flex text-center"},C4={class:"mt-3"},w4={class:"mt-1"},E4={key:1,class:"w-full h-full"},S4={key:0,class:"w-full h-full flex px-4 box-border"},T4={class:"flex flex-col w-[33%]"},D4={class:"pr-2"},V4={class:"text-xs p-2 leading-[22px] border-b border-hy-border-2"},$4={class:"flex w-full"},B4={class:"flex-shrink-0"},A4={class:"text-right font-bold flex-grow w-0"},I4={class:"flex w-full text-hy-text-secondary"},L4={class:"flex-shrink-0"},F4={class:"text-right flex-grow w-0"},O4={class:"flex w-full text-hy-text-secondary"},R4={class:"flex-shrink-0"},P4={class:"text-right flex-grow w-0"},M4={class:"text-xs p-2 leading-[22px]"},U4={key:0,class:"flex w-full"},z4={class:"flex-shrink-0 tracking-[4px]"},W4={class:"text-right font-bold flex-grow w-0"},j4={key:1,class:"flex w-full"},H4={class:"flex-shrink-0 tracking-[4px]"},Y4={class:"text-right font-bold flex-grow w-0"},G4={class:"flex w-full"},q4={class:"flex-shrink-0 tracking-[4px]"},K4={class:"text-right font-bold flex-grow w-0 text-hy-success"},X4={class:"flex w-full"},J4={class:"flex-shrink-0 tracking-[4px]"},Z4={class:"text-right font-bold flex-grow w-0 text-hy-danger"},Q4={class:"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded flex font-bold"},v4={class:"flex-1 flex"},e3={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},t3={class:"flex-grow w-0 text-center truncate"},n3={class:"flex-1 flex"},o3={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},a3={class:"flex-grow w-0 text-center text-hy-success truncate"},s3={class:"flex-1 flex"},l3={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},r3={class:"flex-grow w-0 text-center text-hy-danger truncate"},i3={class:"flex-grow h-0 mt-2 overflow-x-hidden overflow-y-auto pr-2 box-border"},c3={class:"flex-grow w-0 flex flex-col"},d3=xR(()=>e.createElementVNode("div",{class:"flex-grow h-0 overflow-hidden"},null,-1)),p3={key:0,class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-backgroundv2 box-border border border-hy-border-2 rounded"},f3={class:"r-f tac flex text-center"},m3={class:"mt-5"},h3={key:1,class:"flex-grow h-full px-4"},u3={class:"w-full h-full flex items-center justify-center text-hy-text-secondary bg-hy-dialog-bg-2 box-border border border-hy-border-2 rounded"},_3={class:"r-f tac flex text-center"},g3={class:"mt-3"},y3={class:"mt-1"},x3={class:"h-[50px] flex items-center justify-between flex-shrink-0 px-4 mt-1"},k3={class:"text-hy-text-secondary text-xs"},N3={key:0},b3={key:1},C3={key:0},w3={key:1},E3={key:2},S3=be(e.defineComponent({__name:"view-spot-check",setup(t,{expose:n}){const{dialogVisible:o,dragLevel:a,setDragLevel:s,form:l,$t:r,loading:i,setMsgContentType:c,msgContentType:p,spotCheckTaskDeviceChange:d,spotCheckTaskDeviceCountStatus:f,groupType:m,onClose:_,onSubmit:y,show:u}=yR();return n({show:u}),(N,k)=>{const w=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-popover"),S=e.resolveComponent("el-col"),V=SO,$=e.resolveComponent("el-icon"),h=e.resolveComponent("el-tooltip"),g=e.resolveComponent("el-row"),C=$t,E=e.resolveComponent("el-button"),D=e.resolveComponent("HyBoxBorder"),T=e.resolveComponent("el-dialog"),B=e.resolveDirective("loading"),L=e.resolveDirective("draggable");return e.openBlock(),e.createBlock(T,{modelValue:e.unref(o),"onUpdate:modelValue":k[2]||(k[2]=j=>e.isRef(o)?o.value=j:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,modal:!1,draggable:!0,"modal-class":"custom-transparent",class:"w-[830px] ml-[100px]",top:"5vh",width:830},{header:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",kR,[e.createElementVNode("div",NR,[e.createElementVNode("div",bR,[e.createElementVNode("div",CR,e.toDisplayString(e.unref(r)("initiate"))+e.toDisplayString(e.unref(l).checkStyle===1?e.unref(r)("message"):e.unref(r)("call"))+e.toDisplayString(e.unref(r)("spotCheck")),1),e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("div",wR,[e.createElementVNode("span",ER,e.toDisplayString(e.unref(r)("responseMethod")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(l).actionType===1?e.unref(r)("punchIn"):e.unref(r)("reply")),1)])):e.createCommentVNode("",!0),e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("div",SR,[e.createElementVNode("span",TR,e.toDisplayString(e.unref(r)("responseTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",DR,e.toDisplayString(e.unref(l).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("second")),1)])])):e.createCommentVNode("",!0)]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(r)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0"},[e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("div",$R,[e.createElementVNode("div",BR,[e.createVNode(g,{gutter:8},{default:e.withCtx(()=>[e.createVNode(S,{span:8},{default:e.withCtx(()=>[e.createVNode(b,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",t4,[e.createElementVNode("div",n4,[e.createElementVNode("div",o4,[e.createVNode(w,{name:"base-every-day-many-people","class-name":"svgBox w-[16px] h-[16px]"})]),e.createElementVNode("div",a4,e.toDisplayString(e.unref(l).checkNum||"- -"),1)]),e.createElementVNode("div",s4,[e.createElementVNode("div",l4,[e.createVNode(w,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),e.createElementVNode("div",r4,e.toDisplayString(e.unref(l).finishNum||"- -"),1)]),e.createElementVNode("div",i4,[e.createElementVNode("div",c4,[e.createVNode(w,{name:"base-danger-state","class-name":"svgBox w-[16px] h-[16px] text-hy-danger"})]),e.createElementVNode("div",d4,e.toDisplayString(e.unref(l).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("ul",AR,[e.createElementVNode("li",IR,[e.createElementVNode("span",LR,e.toDisplayString(e.unref(r)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",FR,e.toDisplayString(e.unref(l).checkNum||"- -"),1)]),e.createElementVNode("li",OR,[e.createElementVNode("span",RR,e.toDisplayString(e.unref(r)("offlineStatus")),1),e.createElementVNode("div",PR,e.toDisplayString(e.unref(l).offLineNum||"- -"),1)]),e.createElementVNode("li",MR,[e.createElementVNode("span",UR,e.toDisplayString(e.unref(r)("temporaryGroups")),1),e.createElementVNode("div",zR,e.toDisplayString(e.unref(l).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",WR,[e.createElementVNode("li",jR,[e.createElementVNode("span",HR,e.toDisplayString(e.unref(r)("waitingToReceive")),1),e.createElementVNode("div",YR,e.toDisplayString(e.unref(l).beReceiveNum||"- -"),1)]),e.createElementVNode("li",GR,[e.createElementVNode("span",qR,e.toDisplayString(e.unref(r)("receiving")),1),e.createElementVNode("div",KR,e.toDisplayString(e.unref(l).receivingNum||"- -"),1)]),e.createElementVNode("li",XR,[e.createElementVNode("span",JR,e.toDisplayString(e.unref(r)("completed")),1),e.createElementVNode("div",ZR,e.toDisplayString(e.unref(l).finishNum||"- -"),1)]),e.createElementVNode("li",QR,[e.createElementVNode("span",vR,e.toDisplayString(e.unref(r)("uncompleted")),1),e.createElementVNode("div",e4,e.toDisplayString(e.unref(l).notFinishNum||"- -"),1)])])])]),_:1})]),_:1}),e.createVNode(S,{span:16},{default:e.withCtx(()=>[e.createElementVNode("div",p4,[e.createElementVNode("div",f4,[e.createTextVNode(e.toDisplayString(e.unref(r)("messageContent"))+" ",1),e.unref(l).playMsg===1?(e.openBlock(),e.createElementBlock("div",m4," TTS"+e.toDisplayString(e.unref(r)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"css-text-no-select cursor-pointer hover:opacity-60",onClick:k[1]||(k[1]=(...j)=>e.unref(c)&&e.unref(c)(...j))},[e.createVNode(h,{visible:e.unref(p),"onUpdate:visible":k[0]||(k[0]=j=>e.isRef(p)?p.value=j:null),class:"item",placement:"bottom-end",trigger:"manual"},{content:e.withCtx(()=>[e.createElementVNode("div",h4,e.toDisplayString(e.unref(l).msgContent),1)]),default:e.withCtx(()=>[e.createElementVNode("span",u4,[e.createTextVNode(e.toDisplayString(e.unref(r)("viewContent"))+" ",1),e.createVNode($,{class:e.normalizeClass(["text-sm duration-500",{"-rotate-90":e.unref(p)}])},{default:e.withCtx(()=>[e.createVNode(V)]),_:1},8,["class"])])]),_:1},8,["visible"])])])]),_:1})]),_:1})]),e.unref(l).checkNum!==0?(e.openBlock(),e.createElementBlock("div",_4,[e.createElementVNode("div",g4,[e.unref(l).id?(e.openBlock(),e.createBlock(pa,{key:0,ref:"spotCheckTaskDeviceRef","params-span":e.unref(l).actionType===1?8:24,form:e.unref(l),onChange:e.unref(d),onOnCountStatus:e.unref(f)},null,8,["params-span","form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)]),e.unref(l).actionType===2?(e.openBlock(),e.createElementBlock("div",y4,[e.createElementVNode("div",x4,[e.unref(l).id?(e.openBlock(),e.createBlock(gR,{key:0,ref:"talkbackReplyRef","task-id":e.unref(l).id},null,8,["task-id"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",k4,[e.createElementVNode("div",N4,[e.createElementVNode("div",b4,[e.createVNode(w,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",C4,e.toDisplayString(e.unref(r)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",w4,e.toDisplayString(e.unref(r)("cannotSupportThisSpotCheck")),1)])])]))])):(e.openBlock(),e.createElementBlock("div",E4,[e.unref(l).checkNum!==0?(e.openBlock(),e.createElementBlock("div",S4,[e.createElementVNode("div",T4,[e.createElementVNode("div",D4,[e.createVNode(b,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",Q4,[e.createElementVNode("div",v4,[e.createElementVNode("div",e3,[e.createVNode(w,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",t3,e.toDisplayString(e.unref(l).checkNum||"- -"),1)]),e.createElementVNode("div",n3,[e.createElementVNode("div",o3,[e.createVNode(w,{name:"base-success-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",a3,e.toDisplayString(e.unref(l).finishNum||"- -"),1)]),e.createElementVNode("div",s3,[e.createElementVNode("div",l3,[e.createVNode(w,{name:"base-danger-state","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",r3,e.toDisplayString(e.unref(l).notFinishNum||"- -"),1)])])]),default:e.withCtx(()=>[e.createElementVNode("ul",V4,[e.createElementVNode("li",$4,[e.createElementVNode("span",B4,e.toDisplayString(e.unref(r)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",A4,e.toDisplayString(e.unref(l).checkNum||"- -"),1)]),e.createElementVNode("li",I4,[e.createElementVNode("span",L4,e.toDisplayString(e.unref(r)("offlineStatus")),1),e.createElementVNode("div",F4,e.toDisplayString(e.unref(l).offLineNum||"- -"),1)]),e.createElementVNode("li",O4,[e.createElementVNode("span",R4,e.toDisplayString(e.unref(r)("temporaryGroups")),1),e.createElementVNode("div",P4,e.toDisplayString(e.unref(l).intercomGroupTemNum||"- -"),1)])]),e.createElementVNode("ul",M4,[e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("li",U4,[e.createElementVNode("span",z4,e.toDisplayString(e.unref(r)("waitingToReceive")),1),e.createElementVNode("div",W4,e.toDisplayString(e.unref(l).beReceiveNum||"- -"),1)])):e.createCommentVNode("",!0),e.unref(l).checkStyle===1?(e.openBlock(),e.createElementBlock("li",j4,[e.createElementVNode("span",H4,e.toDisplayString(e.unref(r)("receiving")),1),e.createElementVNode("div",Y4,e.toDisplayString(e.unref(l).receivingNum||"- -"),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",G4,[e.createElementVNode("span",q4,e.toDisplayString(e.unref(r)("completed")),1),e.createElementVNode("div",K4,e.toDisplayString(e.unref(l).finishNum||"- -"),1)]),e.createElementVNode("li",X4,[e.createElementVNode("span",J4,e.toDisplayString(e.unref(r)("uncompleted")),1),e.createElementVNode("div",Z4,e.toDisplayString(e.unref(l).notFinishNum||"- -"),1)])])]),_:1})]),e.createElementVNode("div",i3,[e.unref(l).id?(e.openBlock(),e.createBlock(pa,{key:0,ref:"spotCheckTaskDeviceRef","params-span":24,form:e.unref(l),onChange:e.unref(d),onOnCountStatus:e.unref(f)},null,8,["form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",c3,[d3,e.unref(m)?(e.openBlock(),e.createElementBlock("div",p3,[e.createElementVNode("div",f3,[e.createVNode(w,{name:"base-no-intercom-record","class-name":"svgBox !w-[160px] !h-[160px]"}),e.createElementVNode("div",m3,e.toDisplayString(e.unref(r)("groupMemberStatusAbnormalityPreventsSpotCheck")),1)])])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",h3,[e.createElementVNode("div",u3,[e.createElementVNode("div",_3,[e.createVNode(w,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",g3,e.toDisplayString(e.unref(r)("theDeviceYouAreSpotCheckingIsOffline")),1),e.createElementVNode("div",y3,e.toDisplayString(e.unref(r)("cannotSupportThisSpotCheck")),1)])])]))]))],8,VR)),[[B,e.unref(i)]]),e.createElementVNode("div",x3,[e.createElementVNode("div",k3,[e.createElementVNode("div",null,[e.createVNode($,{class:"mr-1 text-sm"},{default:e.withCtx(()=>[e.createVNode(C)]),_:1}),e.unref(l).checkType===2?(e.openBlock(),e.createElementBlock("span",N3,e.toDisplayString(e.unref(r)("randomCheck")),1)):(e.openBlock(),e.createElementBlock("span",b3,[e.unref(l).checkScope===1?(e.openBlock(),e.createElementBlock("span",C3,e.toDisplayString(e.unref(r)("regionalSpotCheck")),1)):e.unref(l).checkScope===2?(e.openBlock(),e.createElementBlock("span",w3,e.toDisplayString(e.unref(r)("departmentSpotCheck")),1)):e.unref(l).checkScope===3?(e.openBlock(),e.createElementBlock("span",E3,e.toDisplayString(e.unref(r)("deviceSpotCheck")),1)):e.createCommentVNode("",!0)]))])]),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",class:"button_default buttonBox min-w-[100px]",onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(E,{class:"button_function buttonBox min-w-[100px]",onClick:e.unref(y)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("complete")),1)]),_:1},8,["onClick"])])])])])),[[L]])]),default:e.withCtx(()=>[e.createVNode(D,{class:"!absolute top-0 right-0 left-0 bottom-0",name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"})]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-ecc43ee8"]]);function T3(t){const n=t.emit,o=e.ref(t.props||{}),a=e.ref(o.value.itemType),s=e.ref(o.value.itemSelectParam),l=e.ref(),r={value:"onlyId",label:"orgName",children:"children",disabled:"disabled"},i=e.ref([]),c=e.ref(null),p=e.ref(300),d=e.ref([]),f=e.ref([]);function m(h){return d.value.findIndex(g=>g[`${s.value}`]===h)}function _(h,g){let C=null;if(h[`${s.value}`]&&h.type===a.value){if(h.disabled)return;o.value.showRadio?(C=m(h[`${s.value}`]),g?C===-1&&(k([...h]),n("onCurrent",h)):C!==-1&&(d.value.splice(C,1),n("onCurrentDelete",h)),n("onSelectedData",{selectedDataList:d.value,selectedData:d.value})):o.value.showCheckbox&&!o.value.parentCheckbox?(C=m(h[`${s.value}`]),g?C===-1&&(k([...d.value,{...h}]),n("onCurrent",h)):C!==-1&&(d.value.splice(C,1),n("onCurrentDelete",h))):(l.value.setChecked(h[`${s.value}`],g,!0),b(),n("onCurrent",h)),n("onSelectedData",{selectedDataList:d.value,selectedData:d.value})}else l.value.setChecked(`${h.id}`,g,!0),b()}async function y(h){let g=null;await e.nextTick(()=>{h.disabled||(o.value.showRadio?(g=m(h[`${s.value}`]),g===-1?(k([{...h}]),n("onCurrent",h)):(d.value.splice(g,1),n("onCurrentDelete",h)),n("onSelectedData",{selectedDataList:d.value,selectedData:d.value})):o.value.showCheckbox&&!o.value.parentCheckbox?(g=m(h[`${s.value}`]),g===-1?(k([...d.value,{...h}]),n("onCurrent",h)):(d.value.splice(g,1),n("onCurrentDelete",h)),n("onSelectedData",{selectedDataList:d.value,selectedData:d.value})):(l.value.setChecked(`${h[`${s.value}`]}`,N(h[`${s.value}`]),!0),b(),n("onCurrent",h)))})}function u(h){l.value.setCheckedKeys(h||[]),b()}function N(h){return(l.value.getCheckedKeys()||[]).findIndex(E=>E===h||E===`${h}`)===-1}function k(h){o.value.showCheckbox&&o.value.parentCheckbox&&l.value.setCheckedKeys(h.map(g=>`${g[`${o.value.itemSelectParam}`]}`)||[]),d.value=h}function w(h){f.value=h}function b(){const h=l.value.getCheckedNodes()||[],g=[],C=[];h.forEach(E=>{E.type===a.value?g.push(E):C.push(E)}),k([...g]),w(C),n("onSelectedData",{selectedDataList:g,departmentList:C,selectedData:h})}function S(h,g){h.type===a.value?y(h):(c.value&&(clearTimeout(c.value),c.value=null),c.value=setTimeout(()=>{var E;n("onCurrentDepartment",h);const C=i.value.findIndex(D=>D===g.key);C===-1?((E=l.value)==null||E.expandNode(g),i.value.push(`${g.key}`)):(l.value.collapseNode(g),i.value.splice(C,1))},p.value))}function V(h){if(o.value.showCheckbox&&!o.value.parentCheckbox)return;c.value&&(clearTimeout(c.value),c.value=null);const g=`organization_${h.id}`;l.value.setChecked(g,N(g),!0),b()}function $(h){var g;(g=l.value)==null||g.setData(h)}return{departmentDoubleClick:V,selectedList:d,getCurrentNode:b,getSelectedIndex:m,nodeClick:S,setChecked:_,setCheckedKeys:u,setData:$,setSelectedList:k,treeProps:r,treeRef:l}}const Or=t=>(e.pushScopeId("data-v-0ea0d0e6"),t=t(),e.popScopeId(),t),D3={class:"flex w-full h-full"},V3={key:0,class:"w-full flex items-center"},$3={key:0,class:"mr-[6px]"},B3={class:"el-checkbox"},A3=[Or(()=>e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1))],I3={key:1,class:"mr-1"},L3={class:"el-radio"},F3=[Or(()=>e.createElementVNode("span",{class:"el-radio__inner"},null,-1))],O3=["onDblclick"],yn=be(e.defineComponent({__name:"tree-cpns",props:{itemType:{default:1},itemSelectParam:{default:"id"},height:{default:500},itemSize:{default:36},dataList:{default:()=>[]},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!1},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{departmentDoubleClick:l,selectedList:r,getCurrentNode:i,getSelectedIndex:c,nodeClick:p,setChecked:d,setCheckedKeys:f,setData:m,setSelectedList:_,treeProps:y,treeRef:u}=T3({emit:s,props:a});e.watch(()=>a.showCheckbox,k=>{if(k===!1)if(r.value.length){const w=r.value[0];r.value=[w],a.showCheckbox&&a.parentCheckbox&&f([w[`${a.itemSelectParam}`]]),s("onSelectedData",{selectedDataList:r.value,selectedData:r.value})}else f([])}),n({setCheckedKeys:f,setSelectedList:_,setChecked:d,setData:m});const N=e.ref();return e.onMounted(()=>{r.value=a.defaultCheckedList,a.showCheckbox&&a.parentCheckbox&&(N.value=a.defaultCheckedList.map(k=>`${k[`${a.itemSelectParam}`]}`))}),(k,w)=>{const b=e.resolveComponent("el-tree-v2");return e.openBlock(),e.createBlock(b,{ref_key:"treeRef",ref:u,style:{"font-size":"larger"},class:e.normalizeClass({highlightSelected:a.highlightSelected}),"show-checkbox":a.showCheckbox&&a.parentCheckbox,"check-strictly":a.checkStrictly,"default-checked-keys":e.unref(N),"expand-on-click-node":!1,data:a.dataList,props:e.unref(y),height:a.height,"item-size":a.itemSize,onNodeClick:e.unref(p),onCheck:e.unref(i)},{default:e.withCtx(({data:S})=>[e.createElementVNode("div",D3,[S.type===a.itemType?(e.openBlock(),e.createElementBlock("div",V3,[a.showCheckbox&&!a.parentCheckbox?(e.openBlock(),e.createElementBlock("div",$3,[e.withDirectives(e.createElementVNode("div",B3,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)(S[`${a.itemSelectParam}`])!==-1,"is-disabled":S.disabled},"el-checkbox__input"])},A3,2)],512),[[e.vShow,a.showCheckboxButton]])])):e.createCommentVNode("",!0),a.showRadio?(e.openBlock(),e.createElementBlock("div",I3,[e.withDirectives(e.createElementVNode("div",L3,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(c)(S[`${a.itemSelectParam}`])!==-1,"is-disabled":S.disabled},"el-radio__input"])},F3,2)],512),[[e.vShow,a.showRadioButton]])])):e.createCommentVNode("",!0),e.renderSlot(k.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:S})),void 0,!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"w-0 flex-grow flex text-hy-text-main",onDblclick:e.withModifiers(V=>e.unref(l)(S),["stop"])},[e.renderSlot(k.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:S})),void 0,!0)],40,O3))])]),_:3},8,["class","show-checkbox","check-strictly","default-checked-keys","data","props","height","item-size","onNodeClick","onCheck"])}}}),[["__scopeId","data-v-0ea0d0e6"]]);function xn(t){const n=t.emit,o=e.ref(),a=e.ref(0),s=e.ref([]),l=e.ref(null),r=e.ref([]),i=e.computed(()=>{const S=r.value.find(V=>V.value===l.value);return S&&S.placeholder?S.placeholder:x("pleaseEnterContentToSearch")}),c=e.computed(()=>!!e.useSlots()["check-content"]),p=e.computed(()=>!!e.useSlots()["other-content"]),d=e.ref(null);function f(){const S=new ResizeObserver(()=>{d.value&&(a.value=d.value.clientHeight)});d.value&&S.observe(d.value)}function m(S){n("onCurrentDepartment",S)}function _(S){n("onCurrent",S)}function y(S){n("onCurrentDelete",S)}function u(S){n("onSelectedData",S)}function N(S){s.value=S}function k(S,V){o.value.setChecked(S,V)}function w(S){o.value.setCheckedKeys(S)}function b(S){o.value.setSelectedList(S)}return{checkContentSlotsType:c,otherContentSlotsType:p,currentDepartment:m,currentDevice:_,currentDeviceDelete:y,elementRef:d,selectedData:u,treeComponentHeight:a,treeComponentRef:o,viewDepartmentList:s,watchTreeComponentHeight:f,setChecked:k,setCheckedKeys:w,setSelectedList:b,selectFilterList:r,selectFilterType:l,getInputPlaceholder:i,setViewDepartmentList:N}}function kn(t,n){return!t||t.length===0?!1:t.includes(`disabled:${n}`)}function Qn(t,n="id"){const o=new Map;return t.forEach(a=>o.set(a[`${n}`],a)),Array.from(o.values())}function et(t,n,o,a){var r;const{selectFilterType:s}=a||{};if(!n)return!0;if(s&&s!==t)return!1;const l=i=>i&&i.toString().includes(n);switch(t){case 7:return o.typeName==="workOrderList"?l(o.workTimeName):l(o.dailyCheckName);case 6:return l(o.deviceUserName)||l((r=o.item)==null?void 0:r.deviceId);case 5:return l(o.jobNum)||l(o.name)||l(o.phone);case 4:return l(o.groupName);case 8:return l(o.sname);case 3:return l(o.deviceId)||l(o.devName)||l(o.name);default:return l(o.companyName)||l(o.orgName)}}async function Rr(t,n,o,a){const{selectFilterType:s,hideOrgNoData:l,disabledIds:r}=o||{disabledIds:"",showOnlineOnly:!1,hideOrgNoData:!1,hideDevice:!1,selectFilterType:null,signal:null},i=[];for(let c=0;c<n.length;c++){const p=n[c];p.type=1,p.onlyId=`${p.id}`,r.length!==0&&(p.disabled=kn(r,p.id));let d=!1;a&&a.parentType||p.type===3?d=!0:d=et(1,t,p,{selectFilterType:s});const f=d?p:{};if(p.children&&p.children.length>0){const m=await Rr(t,p.children,o,{...p,parentType:d});m&&(f.children=[...m.children],p.children=m.children)}Object.keys(f).length&&(f.children.length||!l&&(f.companyName||f.orgName))&&i.push(p)}return{children:i}}async function Pr(t,n,o,a){const{hideDevice:s,selectFilterType:l,signal:r,hideOrgNoData:i,disabledIds:c,showOnlineOnly:p}=o||{disabledIds:"",showOnlineOnly:!1,hideOrgNoData:!1,hideDevice:!1,selectFilterType:null,signal:null},d=[],f=[];for(let m=0;m<n.length;m++){const _=n[m],y=m;_.type===3?_.onlyId=`${_.deviceId}`:(_.type=1,_.onlyId=`organization_${_.id}`),s&&_.type===1&&c.length!==0&&(_.disabled=kn(c,_.id)),_.childrenDeviceList=[],_.onlineCountList=[];const u=a&&a.companyName&&_.type!==3?a.companyName:null;_.parentIdsList=a&&a.parentIdsList?[...a.parentIdsList,{id:_.id,currentSubscript:y}]:[{id:_.id,currentSubscript:y}];let N=!1;a&&a.parentType||_.type===3?N=!0:N=et(1,t,_,{selectFilterType:l});const k=N?_:{};if(_.deviceList&&_.deviceList.length&&!s){const w=[];_.deviceList.forEach((b,S)=>{if((a&&a.parentType||et(3,t,b,{selectFilterType:l})||N)&&(p&&b.onlineState===1||!p)){const V={parentType:!0,...b,isLeaf:!0,label:b.name||b.deviceId,deviceType:b.type,prodModel:b.prodModel?b.prodModel:"",simNum:b.simNum?b.simNum:"",companyName:n[y].companyName,select:!1,expand:!1,type:3,item:b,parentId:b.parentId?b.parentId:"",parentName:b.parentName?b.parentName:"",personnel:b.personnel?"1":"2",parentOrgName:u,disabled:kn(c,b.deviceId)},$=V;$.parentOrgName=u,$.parentIdsList=_.parentIdsList,_.childrenDeviceList.push($),d.push($),w[b.onlineState===1?"unshift":"push"](V)}}),_.children=_.children.concat(w)}else _.deviceList=[];if(_.children&&_.children.length>0){const w=await Pr(t,_.children,o,{..._,parentType:N});if(w){const b=w.deviceList;_.childrenDeviceList.push(...b),d.push(...b);const S=new Map,V=[];_.childrenDeviceList.forEach($=>{S.has($.id)||(S.set($.id,$),$.onlineState===1&&V.push($))}),_.childrenDeviceList=Array.from(S.values()),_.onlineCountList=V,k.children=[...w.children],_.children=w.children}}Object.keys(k).length&&(_.type===3||k.children.length||!i&&(k.companyName||k.orgName))&&f.push(_)}return{children:f,deviceList:Qn(d)}}async function Mr(t,n,o,a){const{hideDevice:s,selectFilterType:l,signal:r,hideOrgNoData:i,hideGroup:c}=o||{hideOrgNoData:!1,hideGroup:!1,hideDevice:!1,selectFilterType:null,signal:null},p=[],d=[];for(let f=0;f<n.length;f++){const m=n[f];m.type===3?m.onlyId=`device_${m.id}`:m.type===4?m.onlyId=`${m.id}`:m.onlyId=`organization_${m.id}`,m.childrenDeviceList=[],m.onlineCountList=[];let _=!1;m.type===3||m.type===4?_=!0:_=et(1,t,m,{selectFilterType:l});const y=_?m:{};if(m.groupList&&m.groupList.length!==0?m.groupList.forEach((u,N)=>{if(u.deviceList&&u.deviceList.length!==0){const k=[];a&&a.parentType||_||et(4,t,u,{selectFilterType:l})?(s||u.deviceList.forEach(w=>{const b={isLeaf:!0,...w,children:[],orgGroupId:u.id,deviceType:w.type,type:3};k[w.onlineState===1?"unshift":"push"](b)}),m.children.push({...u,children:k,type:4})):(s||u.deviceList.forEach(w=>{if(et(3,t,w,{selectFilterType:l})){const b={isLeaf:!0,...w,children:[],orgGroupId:u.id,deviceType:w.type,type:3};k[w.onlineState===1?"unshift":"push"](b)}}),k.length&&m.children.push({...u,children:k,type:4}))}else(a&&a.parentType||_||et(4,t,u,{selectFilterType:l}))&&m.children.push({...u,children:[],type:4})}):m.groupList=[],m.deviceList&&m.deviceList.length&&(m.childrenDeviceList=m.deviceList),m.childrenDeviceList&&m.childrenDeviceList.forEach(u=>{p.findIndex(k=>k.deviceId===u.deviceId)===-1&&p.push(u)}),m.children&&m.children.length!==0){const u=await Mr(t,m.children,o,{...m,parentType:_});if(u){const N=u.deviceList;m.childrenDeviceList.push(...N),p.push(...N);const k=new Map,w=[];m.childrenDeviceList.forEach(b=>{k.has(b.id)||(k.set(b.id,b),b.onlineState===1&&w.push(b))}),m.childrenDeviceList=Array.from(k.values()),m.onlineCountList=w,y.children=u.children}}Object.keys(y).length&&(!c&&m.type===4||m.type===3||y.children.length||!i&&(y.companyName||y.orgName))&&d.push({...m,...y})}return{children:d,deviceList:Qn(p)}}async function Ur(t,n,o,a){const{selectFilterType:s,hideOrgNoData:l,disabledIds:r}=o||{selectFilterType:null,hideOrgNoData:!1,disabledIds:""},i=[],c=[];for(let p=0;p<n.length;p++){const d=n[p],f=p;d.onlyId=d.type===5?`${d.id}`:`organization_${d.id}`,d.childrenDeviceList=[],d.onlineCountList=[],a&&a.parentIdsList?d.parentIdsList=[...a.parentIdsList,{id:d.id,currentSubscript:f}]:d.parentIdsList=[{id:d.id,currentSubscript:f}];let m=!1;d.type===5?m=!0:m=et(1,t,d,{selectFilterType:s});const _=m?d:{};if(d.deviceUserList&&d.deviceUserList.length){const y=[];d.deviceUserList.forEach((u,N)=>{if(a&&a.parentType||et(5,t,u,{selectFilterType:s})||m){const k={...u,parentType:!0,isLeaf:!0,label:u.name||u.id,deviceId:u.id,deviceType:u.type,type:5,item:u,children:[],parentIdsList:d.parentIdsList};d.childrenDeviceList.push(k),i.push(k);const w={...u,parentType:!0,isLeaf:!0,label:u.name||u.id,deviceId:u.id,deviceType:u.type,type:5,children:[],item:u,disabled:kn(r,u.id)};y[u.onlineState===1?"unshift":"push"](w)}}),d.children=[...d.children,...y]}else d.deviceList=[];if(d.children&&d.children.length>0){const y=await Ur(t,d.children,o,{...d,parentType:m});if(y){const u=y.deviceList;d.childrenDeviceList.push(...u),i.push(...u);const N=new Map,k=[];d.childrenDeviceList.forEach(w=>{N.has(w.id)||(N.set(w.id,w),w.onlineState===1&&k.push(w))}),d.childrenDeviceList=Array.from(N.values()),d.onlineCountList=k,_.children=y.children}}Object.keys(_).length&&(d.type===5||_.children.length||!l&&(_.companyName||_.orgName))&&c.push({...d,..._})}return{children:c,deviceList:Qn(i)}}async function zr(t,n,o,a){const{selectFilterType:s,hideOrgNoData:l,disabledIds:r}=o||{selectFilterType:null,hideOrgNoData:!1,disabledIds:""},i=[],c=[];for(let p=0;p<n.length;p++){const d=n[p],f=p;d.onlyId=d.type===8?`${d.id}`:`organization_${d.id}`,d.childrenDeviceList=[],d.onlineCountList=[],a&&a.parentIdsList?d.parentIdsList=[...a.parentIdsList,{id:d.id,currentSubscript:f}]:d.parentIdsList=[{id:d.id,currentSubscript:f}];let m=!1;d.type===8?m=!0:m=et(1,t,d,{selectFilterType:s});const _=m?d:{};if(d.csList&&d.csList.length){const y=[];d.csList.forEach((u,N)=>{if(a&&a.parentType||et(8,t,u,{selectFilterType:s})||m){const k={...u,type:8,item:u,children:[]};d.childrenDeviceList.push(k),i.push(k);const w={...u,type:8,item:u,children:[],disabled:kn(r,u.id)};y[u.onlineState===1?"unshift":"push"](w)}}),d.children=[...d.children,...y]}else d.deviceList=[];if(d.children&&d.children.length>0){const y=await zr(t,d.children,o,{...d,parentType:m});if(y){const u=y.deviceList;d.childrenDeviceList.push(...u),i.push(...u);const N=new Map,k=[];d.childrenDeviceList.forEach(w=>{N.has(w.id)||(N.set(w.id,w),w.onlineState===1&&k.push(w))}),d.childrenDeviceList=Array.from(N.values()),d.onlineCountList=k,_.children=y.children}}Object.keys(_).length&&(d.type===8||_.children.length||!l&&(_.companyName||_.orgName))&&c.push({...d,..._})}return{children:c,deviceList:Qn(i)}}function R3(t){const n=e.ref(t.props),o=e.ref(t.params.selectFilterType),a=e.ref(""),s=e.ref([]);async function l(){var i;n.value.getData&&((i=n.value.getData())==null||i.then(async c=>{if(!c)return;const p=await Rr(a.value,[...c],{disabledIds:n.value.disableDataList.map(d=>`disabled:${d.id}`).toString(),hideDevice:!0,selectFilterType:o.value});s.value=p.children,t.params.setViewDepartmentList(s.value)}))}function r(){a.value.length&&l()}return{getData:l,query:a,selectChange:r}}const P3={class:"flex flex-col h-full text-xs"},M3={class:"flex items-center"},U3={class:"!w-[114px]"},z3={class:"text-hy-text-main"},W3={key:0,class:"w-full text-hy-text-main"},j3={class:"w-full h-full flex items-center"},H3={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},Y3={key:0,class:"w-full"},G3={class:"w-full h-full flex items-center"},q3={class:"flex-grow w-0 overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},Wr=e.defineComponent({__name:"org-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=R3({emit:s,props:a,params:{selectFilterType:w,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:x("filterByDepartmentName")}],w.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],w.value=k.value[0].value),a.defaultGetData||h()}),(E,D)=>{const T=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),L=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),F=e.resolveComponent("el-input"),M=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",P3,[e.createElementVNode("div",M3,[e.createVNode(F,{modelValue:e.unref(g),"onUpdate:modelValue":D[1]||(D[1]=z=>e.isRef(g)?g.value=z:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",z3,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(L,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",U3,[e.createVNode(B,{modelValue:e.unref(w),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(w)?w.value=z:null),class:"!m-0",size:"small",onChange:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(z,U)=>(e.openBlock(),e.createBlock(T,{key:`${U}_selectFilterList`,label:z.label,value:z.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(E.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":1,"highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,"default-checked-list":a.defaultCheckedList,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:z})=>[e.renderSlot(E.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",W3,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",j3,[e.createElementVNode("div",H3,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)])])]),_:2},1032,["content"])]))]),"other-content":e.withCtx(({row:z})=>[e.renderSlot(E.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Y3,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",G3,[e.createElementVNode("div",q3,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)])])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function K3({emit:t}){const n=e.ref(!1);e.ref([]);const o=e.ref([]),a=e.ref("");e.ref(400),e.ref(null);const s=e.ref(null);e.ref();const l=e.ref();e.watch(()=>a.value,m=>{a.value=m.replace(/\s/g,"")});function r(){c([]),l.value.setSelectedList(o.value),p(!1)}function i(m){o.value.splice(m,1),l.value.setSelectedList(o.value)}function c(m=[]){o.value=[...m],l.value.setSelectedList(o.value)}function p(m){n.value=typeof m=="boolean"?m:!n.value,t("on-selectedDataList",o.value)}async function d(){const m=await Dl({spotCheckSupport:1});if(m.code===200)return m.data}function f(m){o.value=m.selectedDataList,t("on-selected-data-list",o.value)}return{setSelectedDataList:c,getData:d,abortController:s,selectedDataList:o,clearSelectedData:r,deleteSelectList:i,onSelectedData:f,hyOrgTreeRef:l}}const X3={class:"flex flex-col w-full h-full"},J3={class:"flex justify-between items-center h-[40px]"},Z3={class:"flex-1"},Q3={class:"text-hy-text-secondary ml-3"},v3={class:"flex-1 flex items-center justify-end"},eP={class:"text-xs"},tP={class:"flex items-center clickBox cursor-pointer"},nP={class:"text-hy-text-primary"},oP=["element-loading-text"],aP={class:"flex-1 bg-hy-dialog-bg-1 rounded flex flex-col"},sP={class:"flex-grow h-0 w-full box-border p-2 equipment vbtTable"},lP={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded flex flex-col ml-2"},rP={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},iP={class:"r-f tac flex flex-col items-center justify-center"},cP={class:"mt-3"},dP={class:"flex-grow w-0 pl-2 box-border truncate"},pP={class:"flex-shrink-0"},fP=e.defineComponent({__name:"select-depart-ment",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=o,{setSelectedDataList:s,getData:l,abortController:r,selectedDataList:i,clearSelectedData:c,deleteSelectList:p,onSelectedData:d,hyOrgTreeRef:f}=K3({emit:a});return e.onUnmounted(()=>{r.value&&r.value.abort()}),n({setSelectedDataList:s,clearSelectedData:c,getData:l}),(m,_)=>{const y=e.resolveComponent("el-button"),u=e.resolveComponent("svg-icon"),N=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",X3,[e.createElementVNode("div",J3,[e.createElementVNode("div",Z3,[e.createTextVNode(e.toDisplayString(e.unref(x)("allDepartments")),1),e.createElementVNode("span",Q3,e.toDisplayString(e.unref(x)("doubleClickToSelectTheDepartmentAndAllDepartmentsUnderIt")),1)]),e.createElementVNode("div",v3,[e.withDirectives(e.createVNode(y,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(c)},{default:e.withCtx(()=>[e.createElementVNode("span",eP,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(i).length!==0]]),e.createElementVNode("div",tP,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",nP,e.toDisplayString(e.unref(i).length),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("individual-0")),1)])])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(x)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[e.createElementVNode("div",aP,[e.createElementVNode("div",sP,[e.createVNode(Wr,{ref_key:"hyOrgTreeRef",ref:f,"show-checkbox":!0,"parent-checkbox":!1,"get-data":e.unref(l),"default-checked-list":e.unref(i),onOnSelectedData:e.unref(d)},null,8,["get-data","default-checked-list","onOnSelectedData"])])]),e.createElementVNode("ul",lP,[e.withDirectives(e.createElementVNode("li",rP,[e.createElementVNode("div",iP,[e.createVNode(u,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",cP,e.toDisplayString(e.unref(x)("youHaveNotSelectedADepartmentYet")),1)])],512),[[e.vShow,e.unref(i).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(k,w)=>(e.openBlock(),e.createElementBlock("li",{key:`${k.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border clickBox border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[e.createElementVNode("div",dP,e.toDisplayString(k.companyName||k.groupName||k.orgName),1),e.createElementVNode("div",pP,[e.createVNode(Me,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(x)("delete"),onClick:b=>e.unref(p)(w)},null,8,["tips","onClick"])])]))),128))])],8,oP)),[[N,!1]])])}}});function mP(t){const n=[{type:1,svgName:"sys-deviceIcon-lawEnforcement"},{type:3,svgName:"sys-deviceIcon-dispatchingDesk"},{type:4,svgName:"sys-deviceIcon-dutyDesk"},{type:5,svgName:"sys-deviceIcon-phone"},{type:6,svgName:"sys-deviceIcon-controlTheBall"},{type:7,svgName:"sys-deviceIcon-ipc"},{type:8,svgName:"sys-deviceIcon-safetyHat"},{type:9,svgName:"sys-deviceIcon-flashlight"},{type:10,svgName:"sys-deviceIcon-workCard"},{type:11,svgName:"sys-deviceIcon-vehicle"},{type:12,svgName:"sys-deviceIcon-uav"},{type:13,svgName:"sys-deviceIcon-ipc"},{type:14,svgName:"sys-deviceIcon-obd"}],o=n.findIndex(a=>a.type===t);return o!==-1?n[o].svgName:"sys-deviceIcon-walkieTalkie"}const hP=t=>(e.pushScopeId("data-v-51a5d703"),t=t(),e.popScopeId(),t),uP={class:"flex-shrink-0 mr-1"},_P={class:"flex-grow w-0 overflow-ellipsis overflow-hidden"},gP={class:"deviceName"},yP={key:0,class:"flex-shrink-0 mx-2"},xP={key:0,class:"text-hy-danger text-sm font-bold relative flex-shrink-0"},kP={key:1,class:"deviceType flex-shrink-0"},NP={key:2,class:"deviceType flex-shrink-0"},bP={key:3,class:"deviceType flex-shrink-0"},CP={key:4,class:"deviceType flex-shrink-0"},wP={key:5,class:"deviceType flex-shrink-0"},EP={key:6,class:"deviceType flex-shrink-0"},SP={key:7,class:"text-hy-success flex-shrink-0"},TP={key:1,class:"flex-shrink-0 mx-2"},DP=[hP(()=>e.createElementVNode("span",{class:"shrink-0"},"离线",-1))],fa=be(e.defineComponent({__name:"device-cpns",props:{device:{}},emits:["onClickDevice"],setup(t,{emit:n}){const o=t,a=n,s=e.ref(null);e.watch(()=>o.device,()=>{s.value=o.device}),e.onMounted(()=>{s.value=o.device});function l(r){a("onClickDevice",r)}return(r,i)=>{const c=e.resolveComponent("svg-icon"),p=e.resolveComponent("el-tooltip");return s.value?(e.openBlock(),e.createBlock(p,{key:0,"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:s.value.devName},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"!text-hy-text-main":s.value.onlineState===1},"w-full h-full flex border-box items-center box-border text-hy-info"]),onClick:i[0]||(i[0]=d=>l(s.value))},[e.createElementVNode("div",uP,[e.createVNode(c,{name:e.unref(mP)(s.value.deviceType||s.value.type),width:"20",height:"20",class:"relative top-[2px]"},null,8,["name"])]),e.createElementVNode("div",_P,[e.createElementVNode("span",gP,e.toDisplayString(s.value.devName),1)]),s.value.onlineState===1?(e.openBlock(),e.createElementBlock("div",yP,[s.value.sos===1?(e.openBlock(),e.createElementBlock("span",xP,"SOS")):s.value.intercomGroupTem===1||s.value.intercomCall===1?(e.openBlock(),e.createElementBlock("span",kP,"音频中")):s.value.monitor===1||s.value.beMonitor===1?(e.openBlock(),e.createElementBlock("span",NP,"监控中")):s.value.videoCall===1?(e.openBlock(),e.createElementBlock("span",bP,"通话中")):s.value.videoRecording===1?(e.openBlock(),e.createElementBlock("span",CP,"录像中")):s.value.audioRecording===1?(e.openBlock(),e.createElementBlock("span",wP,"录音中")):s.value.broadcast===1?(e.openBlock(),e.createElementBlock("span",EP,"广播中")):(e.openBlock(),e.createElementBlock("span",SP,"在线"))])):(e.openBlock(),e.createElementBlock("div",TP,DP))],2)]),_:1},8,["content"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-51a5d703"]]);function VP(t){const n=e.ref(t.props),o=e.ref(t.params.selectFilterType),a=e.ref(""),s=e.ref([]),l=e.ref([]),r=e.ref(!1);async function i(){var f;n.value.getData&&((f=n.value.getData())==null||f.then(async m=>{if(!m)return;console.log("selectFilterType.value",o.value);const _=await Pr(a.value,[...m],{disabledIds:n.value.disableDataList.map(y=>`disabled:${y.deviceId}`).toString(),hideDevice:n.value.hideDevice,showOnlineOnly:n.value.showOnlineOnly,hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});s.value=_.children,l.value=_.deviceList,t.params.setViewDepartmentList(_.children)}))}function c(){r.value||(r.value=!0,setTimeout(async()=>{i(),r.value=!1},1e3))}function p(f){if(f.isofn===1)return c();const m=l.value.find(_=>_.deviceId===f.deviceId);if(m)for(const _ in f)m[`${_}`]=f[`${_}`]}function d(){a.value.length&&i()}return{setDeviceStatus:p,getData:i,query:a,selectChange:d,treeDeviceList:l,treeDataList:s}}const $P={class:"flex flex-col h-full text-xs"},BP={class:"flex items-center"},AP={class:"!w-[114px]"},IP={class:"text-hy-text-main"},LP={class:"flex-grow w-0"},FP={class:"flex-shrink-0 mr-2 flex h-full items-center justify-center"},OP={key:0,class:"w-full flex cursor_pointer"},RP={class:"flex items-center flex-grow w-0"},PP={class:"max-w-full overflow-ellipsis overflow-hidden"},MP={class:"flex-shrink-0 mr-2 ml-1"},UP={class:"text-hy-main"},jr=e.defineComponent({__name:"device-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},hideDevice:{type:Boolean,default:!1},showOnlineOnly:{type:Boolean,default:!1},disableDataList:{default:()=>[]},returnDisableDevice:{type:Boolean,default:!0}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,setDeviceStatus:g,query:C,selectChange:E}=VP({emit:s,props:a,params:{selectFilterType:w,setViewDepartmentList:S}});return e.watch(()=>a.showOnlineOnly,()=>{h()}),n({setCheckedKeys:u,setSelectedList:N,setChecked:y,setDeviceStatus:g,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"设备名称、部门名称、设备IMEI进行搜索"}],w.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:x("equipment"),value:3,placeholder:x("filterByDeviceNumberAndDeviceName")}),w.value=k.value[0].value),a.defaultGetData||h()}),(D,T)=>{const B=e.resolveComponent("el-option"),L=e.resolveComponent("el-select"),j=e.resolveComponent("svg-icon"),F=e.resolveComponent("el-button"),M=e.resolveComponent("el-input"),z=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",$P,[e.createElementVNode("div",BP,[e.createVNode(M,{modelValue:e.unref(C),"onUpdate:modelValue":T[1]||(T[1]=U=>e.isRef(C)?C.value=U:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",IP,[e.createVNode(F,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(j,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",AP,[e.createVNode(L,{modelValue:e.unref(w),"onUpdate:modelValue":T[0]||(T[0]=U=>e.isRef(w)?w.value=U:null),class:"!m-0",size:"small",onChange:e.unref(E)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(U,R)=>(e.openBlock(),e.createBlock(B,{key:`${R}_selectFilterList`,label:U.label,value:U.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(D.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":3,"item-select-param":"deviceId","highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"default-checked-list":a.defaultCheckedList,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:U})=>[e.renderSlot(D.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:U}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"text-hy-text-main":U.onlineState===1},"w-full flex h-full"])},[e.createElementVNode("div",LP,[e.createVNode(fa,{device:U},null,8,["device"])]),e.createVNode(z,{"open-delay":1e3,class:"item",content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",FP,[e.createVNode(j,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})],512),[[e.vShow,U.todayFile]])]),_:2},1032,["content"])],2))]),"other-content":e.withCtx(({row:U})=>[e.renderSlot(D.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:U}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",OP,[e.createVNode(z,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:U.companyName||U.groupName||U.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",RP,[e.createElementVNode("span",PP,e.toDisplayString(U.companyName||U.groupName||U.orgName),1),e.withDirectives(e.createElementVNode("span",MP,[e.createTextVNode(" ("),e.createElementVNode("span",UP,e.toDisplayString(U.onlineCountList.length),1),e.createTextVNode("/"+e.toDisplayString(U.childrenDeviceList.length)+") ",1)],512),[[e.vShow,!a.hideDevice]])])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","default-checked-list","show-radio-button","show-checkbox-button","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function zP({emit:t}){const n=e.ref(!1),o=e.ref([]),a=e.ref([]),s=e.ref(""),l=e.ref(null),r=e.ref(null),i=e.ref();e.watch(()=>s.value,N=>{s.value=N.replace(/\s/g,"")});function c(){p([]),i.value.setSelectedList(o.value),t("on-selected-data-list",o.value)}function p(N=[]){console.log("通知",N),o.value=[...N],i.value.setSelectedList(N)}function d(N){if(!N.disabled){if(N.type===3){const k=o.value.findIndex(w=>w.deviceId===N.deviceId);k===-1?o.value.push({...N}):o.value.splice(k,1)}else{clearTimeout(l.value);const k={nonExistent:[],existent:[]},w=N.childrenDeviceList||[];w.length&&(w.forEach(b=>{a.value.findIndex(V=>V.deviceId===b.deviceId)===-1&&(o.value.findIndex($=>$.deviceId===b.deviceId)===-1?k.nonExistent.push({...b}):k.existent.push({...b}))}),k.nonExistent.length?k.nonExistent.forEach(b=>{o.value.push({...b})}):k.existent.forEach(b=>{const S=o.value.findIndex(V=>V.deviceId===b.deviceId);o.value.splice(S,1)}))}t("on-selected-data-list",[...o.value])}}function f(){r.value&&r.value.abort(),r.value=new AbortController}async function m(){n.value=!0;const N=await Dl({spotCheckSupport:1});return f(),N.data}function _(N,k){const w=[{type:1,svgName:"tree-icon-law-enforcement"},{type:3,svgName:"tree-icon-dispatching-desk"},{type:4,svgName:"tree-icon-duty-desk"},{type:5,svgName:"tree-icon-phone"},{type:6,svgName:"tree-icon-control-the-ball"},{type:7,svgName:"tree-icon-ipc"},{type:8,svgName:"tree-icon-safety-hat"},{type:9,svgName:"tree-icon-flashlight"},{type:10,svgName:"tree-icon-work-card"},{type:11,svgName:"tree-icon-vehicle"},{type:12,svgName:"tree-icon-uav"},{type:13,svgName:"tree-icon-ipc"},{type:14,svgName:"tree-icon-obd"}],b=w.findIndex(S=>S.type===N);return b!==-1?y(w[b],k):"tree-icon-walkie-talkie"}function y(N,k){return N.type===7||N.type===13?k===1?N.svgName:`${N}-off-line`:N.svgName}function u(N){o.value=N.selectedDataList,t("on-selected-data-list",o.value)}return{setSelectedDataList:p,getData:m,abortController:r,selectedDataList:o,clearSelectedData:c,deviceClick:d,checkDeviceTypeFn:_,onSelectedData:u,hyDeviceTreeRef:i}}const WP={class:"flex flex-col w-full h-full"},jP={class:"flex justify-between items-center h-[40px]"},HP={class:"flex mr-2"},YP={class:"flex items-center"},GP={class:"text-xs"},qP={class:"flex items-center clickBox cursor-pointer"},KP={class:"text-hy-text-primary"},XP=["element-loading-text"],JP={class:"flex-1 bg-hy-dialog-bg-1 rounded box-border p-2 flex flex-col"},ZP={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded flex flex-col ml-2"},QP={class:"h-full bg-hy-dialog-bg-2 border border-hy-border-2 rounded px-2 box-border flex justify-center text-hy-text-secondary items-center"},vP={class:"flex flex-col justify-center items-center"},e8={class:"mt-3"},t8={class:"flex-grow w-0 pl-2 flex box-border"},n8={class:"truncate flex-grow w-0"},o8={class:"select-none truncate mx-[4px] text-hy-text-main"},a8={class:"flex-shrink-0"},s8=e.defineComponent({__name:"select-device",props:{onlineStateFlag:{default:1},initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=t,s=o,{setSelectedDataList:l,getData:r,abortController:i,selectedDataList:c,clearSelectedData:p,deviceClick:d,checkDeviceTypeFn:f,onSelectedData:m,hyDeviceTreeRef:_}=zP({emit:s});return e.onUnmounted(()=>{i.value&&i.value.abort()}),n({setSelectedDataList:l,clearSelectedData:p,getData:r}),(y,u)=>{const N=e.resolveComponent("el-button"),k=e.resolveComponent("svg-icon"),w=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",WP,[e.createElementVNode("div",jP,[e.createElementVNode("div",HP,e.toDisplayString(e.unref(x)("allDevices")),1),e.createElementVNode("div",YP,[e.withDirectives(e.createVNode(N,{type:"danger",size:"small",class:"button_delete mr-1 !p-[4px_14px]",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("span",GP,e.toDisplayString(e.unref(x)("clear")),1)]),_:1},8,["onClick"]),[[e.vShow,e.unref(c).length!==0]]),e.createElementVNode("div",qP,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",KP,e.toDisplayString(e.unref(c).length),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("individual-0")),1)])])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(x)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[e.createElementVNode("div",JP,[e.createVNode(jr,{ref_key:"hyDeviceTreeRef",ref:_,"item-size":36,"get-data":e.unref(r),"show-online-only":a.onlineStateFlag===1,"show-checkbox":!0,"hide-org-no-data":!0,"parent-checkbox":!1,onOnSelectedData:e.unref(m)},null,8,["get-data","show-online-only","onOnSelectedData"])]),e.createElementVNode("ul",ZP,[e.withDirectives(e.createElementVNode("li",QP,[e.createElementVNode("div",vP,[e.createVNode(k,{name:"base-no-data","class-name":"!w-[50px] !h-[50px]"}),e.createElementVNode("div",e8,e.toDisplayString(e.unref(x)("youHaveNotSelectedADeviceYet")),1)])],512),[[e.vShow,e.unref(c).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),b=>(e.openBlock(),e.createElementBlock("li",{key:`${b.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border cursor-pointer border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[e.createElementVNode("div",t8,[e.createVNode(k,{name:e.unref(f)(b.deviceType||b.type,b.onlineState),"class-name":"w-[16px] h-[16px]",class:e.normalizeClass(b.onlineState===1?"text-hy-text-main":"text-hy-info")},null,8,["name","class"]),e.createElementVNode("div",n8,[e.createElementVNode("span",o8,e.toDisplayString(b.devName),1)])]),e.createElementVNode("div",a8,[e.createVNode(Me,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(x)("delete"),onClick:S=>e.unref(d)(b)},null,8,["tips","onClick"])])]))),128))])],8,XP)),[[w,!1]])])}}});function l8({emit:t}){const n=e.ref(!1),o=e.ref(!1),a=e.ref(400),s=e.ref({renderSize:30,offsetSize:10}),l=e.ref([]),r=e.ref([]),i=e.ref("");e.ref(400);const c=e.ref(null);e.watch(()=>i.value,w=>{i.value=w.replace(/\s/g,"")});function p(w=[]){w.length!==0&&(w.forEach(b=>{r.value.findIndex(V=>V.id===b.id)===-1&&r.value.push(b)}),e.nextTick(()=>{n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}))}function d(w=[]){r.value=l.value.filter(b=>w.some(S=>S.id===b.id)),t("on-selected-data-list",r.value)}function f(){return[...r.value]}function m(){n.value=!n.value,n.value?r.value=[...l.value]:r.value=[],t("on-selected-data-list",r.value)}function _(w){return r.value.findIndex(S=>S.id===w.id)!==-1?"is-checked":""}async function y(w){const b=r.value.findIndex(S=>S.id===w.id);b===-1?u(w):N(b)}function u(w){r.value.push(w),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}function N(w){r.value.splice(w,1),n.value=r.value.length===l.value.length,t("on-selected-data-list",r.value)}async function k(){o.value=!0;const{code:w,data:b=[]}=await uN({query:i.value,spotCheckSupport:1,onlineState:1});w===200&&(l.value=[],b.forEach(S=>{var V;((V=S.deviceList)==null?void 0:V.length)!==0?l.value.unshift(S):l.value.push(S)}),o.value=!1)}return{checkAll:n,loading:o,treeHeight:a,scrollYRenderConfig:s,deviceList:l,selectedDataList:r,filterValue:i,timeOut:c,addSelectedDataList:p,setSelectedDataList:d,getSelectedDataList:f,setCheckAll:m,judgeSelectedFn:_,deviceClick:y,addSelectList:u,deleteSelectList:N,getData:k}}const r8={class:"flex flex-col w-full h-full"},i8={class:"flex justify-between items-center h-[30px]"},c8={class:"el-checkbox !mr-2"},d8=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],p8={class:"text-hy-text-primary"},f8=["element-loading-text"],m8={class:"flex-1 bg-hy-dialog-bg-1 rounded flex flex-col"},h8={class:"flex items-center justify-center box-border p-[8px_8px_4px]"},u8={class:"text-hy-text-main"},_8={class:"flex-grow h-0 w-full px-2 pb-2 box-border overflow-y-scroll overflow-x-hidden"},g8=["onClick"],y8={class:"flex items-center justify-center"},x8={class:"el-checkbox relative !mr-[6px]"},k8=[e.createElementVNode("span",{class:"el-checkbox__inner"},null,-1)],N8={class:"treeDepartment cursor_pointer flex items-center justify-between w-full text-[14px] font-bold text-hy-text-main"},b8={class:"r-f w_100vh flex w-full"},C8={class:"flex-grow w-0 over_one_line truncate"},w8={class:"flex-1 bg-hy-dialog-bg-1 !p-[10px] overflow-y-auto overflow-x-hidden box-border rounded flex flex-col ml-2"},E8={class:"h-full bg-hy-dialog-bg-2 border rounded px-2 box-border border-hy-bg-2 flex justify-center text-hy-text-secondary items-center"},S8={class:"r-f tac flex flex-col justify-center items-center"},T8={class:"mt-3"},D8={class:"flex-grow w-0 pl-2 box-border truncate"},V8={class:"flex-shrink-0"},$8=e.defineComponent({__name:"select-electronic-fence",props:{initSelectedDataList:{default:()=>[]}},emits:["on-selected-data-list"],setup(t,{expose:n,emit:o}){const a=o,{setSelectedDataList:s,getData:l,setCheckAll:r,checkAll:i,selectedDataList:c,loading:p,filterValue:d,deviceList:f,deviceClick:m,judgeSelectedFn:_,deleteSelectList:y}=l8({emit:a});return e.onMounted(async()=>{await l()}),n({setSelectedDataList:s,getData:l}),(u,N)=>{const k=e.resolveComponent("svg-icon"),w=e.resolveComponent("el-button"),b=e.resolveComponent("el-input"),S=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",r8,[e.createElementVNode("div",i8,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("electronicFence")),1),e.createElementVNode("div",{class:"flex items-center clickBox",onClick:N[0]||(N[0]=(...V)=>e.unref(r)&&e.unref(r)(...V))},[e.createElementVNode("div",c8,[e.createElementVNode("span",{class:e.normalizeClass([{"is-checked":e.unref(i)},"el-checkbox__input"])},d8,2)]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(x)("selected"))+" ",1),e.createElementVNode("span",p8,e.toDisplayString(e.unref(c).length||0),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("individual-0")),1)])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(x)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0 flex"},[e.createElementVNode("div",m8,[e.createElementVNode("div",h8,[e.createVNode(b,{modelValue:e.unref(d),"onUpdate:modelValue":N[1]||(N[1]=V=>e.isRef(d)?d.value=V:null),placeholder:e.unref(x)("filterByElectronicFenceName"),class:"table-search-main w-[254px] text-[12px]",onClear:N[2]||(N[2]=V=>e.unref(l)()),onKeyup:N[3]||(N[3]=e.withKeys(V=>e.unref(l)(),["enter"]))},{append:e.withCtx(()=>[e.createElementVNode("div",u8,[e.createVNode(w,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(l)},{default:e.withCtx(()=>[e.createVNode(k,{name:"sys-button-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",_8,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),V=>{var $,h;return e.openBlock(),e.createElementBlock("div",{key:V.id,class:"hover:shadow-[0_0_10px_0_inset] bg-hy-dialog-bg-2 hover:shadow-hy-border-1 hover:border-hy-border-1 border-hy-dialog-bg-2 flex-grow flex h-[32px] items-center border rounded my-2 box-border px-2 cursor-pointer",onClick:g=>e.unref(m)(V)},[e.createElementVNode("div",y8,[e.createElementVNode("div",x8,[e.createElementVNode("span",{class:e.normalizeClass([e.unref(_)(V),"el-checkbox__input"])},k8,2)])]),e.createElementVNode("div",N8,[e.createElementVNode("div",b8,[e.createElementVNode("span",C8,e.toDisplayString(V.railName),1),e.withDirectives(e.createElementVNode("span",{class:"flex-shrink-0 ml-1 text-hy-text-main"}," ("+e.toDisplayString(($=V.deviceList)==null?void 0:$.length)+") ",513),[[e.vShow,(h=V.deviceList)==null?void 0:h.length]])])])],8,g8)}),128))])]),e.createElementVNode("ul",w8,[e.withDirectives(e.createElementVNode("li",E8,[e.createElementVNode("div",S8,[e.createVNode(k,{name:"base-no-data","class-name":"svgBox !w-[50px] !h-[50px]"}),e.createElementVNode("div",T8,e.toDisplayString(e.unref(x)("youHavenTSelectedAFenceYet")),1)])],512),[[e.vShow,e.unref(c).length===0]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(V,$)=>(e.openBlock(),e.createElementBlock("li",{key:`${V.id}_selectedDataList`,class:"w-full flex hover:shadow-[0_0_10px_0_inset] items-center bg-hy-dialog-bg-2 rounded mb-2 box-border cursor-pointer border border-hy-dialog-bg-2 hover:border-hy-border-1 hover:shadow-hy-border-1"},[e.createElementVNode("div",D8,e.toDisplayString(V.railName),1),e.createElementVNode("div",V8,[e.createVNode(Me,{margin:"4px",width:12,height:12,class:"!w-[22px] !h-[22px] m-[4px] hover:!shadow-hy-danger hover:!border-hy-danger/70","class-name":"text-hy-danger",name:"base-delete",tips:e.unref(x)("delete"),onClick:h=>e.unref(y)($)},null,8,["tips","onClick"])])]))),128))])],8,f8)),[[S,e.unref(p)]])])}}});function B8({emit:t}){const n=e.ref([{label:x("templateName"),prop:"templateName",isSearch:!0},{label:x("operation"),width:60,align:"center",slotName:"operator"}]),o=e.ref({checkStyle:null}),a=e.ref(!1),s=e.ref(null),l=e.ref();function r(d){return new Promise((f,m)=>{const{checkStyle:_=null}=d||{};o.value.checkStyle=_,a.value=!0,s.value=f,e.nextTick(()=>{i()})})}function i(){l.value.getTableData()}function c(d){s.value(d),t("on-selected",d),p()}function p(){a.value=!1}return{$t:x,tableColumns:n,requestParams:o,dialogVisible:a,successfulCallback:s,AppTableRef:l,show:r,selected:c,close:p}}const A8={class:"deleteBox c_fff text-hy-text-main"},I8={class:"pos_r dialog_header relative text-hy-text-main text-[18px] text-center p-5 font-bold z-[1px] bg-hy-dialog-bg-1 rounded-[12px_12px_0_0] font-[Helvetica]"},L8={class:"absolute right-[13px] top-[13px]"},F8={class:"dialog_body h-[60vh]"},O8=e.defineComponent({__name:"select-template",emits:["on-selected"],setup(t,{expose:n,emit:o}){const a=o,{$t:s,dialogVisible:l,close:r,tableColumns:i,requestParams:c,selected:p,AppTableRef:d,show:f}=B8({emit:a});return n({show:f}),(m,_)=>{const y=e.resolveComponent("svg-icon"),u=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(u,{modelValue:e.unref(l),"onUpdate:modelValue":_[0]||(_[0]=N=>e.isRef(l)?l.value=N:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"640px"},{default:e.withCtx(()=>[e.createVNode($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",A8,[e.createElementVNode("div",I8,[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("spotCheckTemplate")),1),e.createElementVNode("div",L8,[e.createVNode(y,{width:"26",height:"26",name:"icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(r),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",F8,[e.createVNode(Yt,{ref_key:"AppTableRef",ref:d,"pager-count":5,"column-list":e.unref(i),"search-arr":[],"search-form":e.unref(c),"req-url":"spotCheck/template/page","default-get-data":!1},{tableLeft:e.withCtx(()=>[]),operator:e.withCtx(({row:N})=>[e.createVNode(Me,{width:12,height:12,name:"icon-choice",class:"!w-[24px] !h-[24px]",tips:e.unref(s)("edit"),onClick:k=>e.unref(p)(N)},null,8,["tips","onClick"])]),_:1},8,["column-list","search-form"])])])]),_:1})]),_:1},8,["modelValue"])}}});function R8({emit:t}){const n=e.ref({everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1}),o=(J,ee,ie)=>{let le="";for(const Z in n.value)n.value[Z]&&(le+=`${Z.replace(/(^everyday)|(everyday$)/g,"")},`);le.length?ie():ie(new Error(x("pleaseSelectASpecificWeek")))},a=e.ref(null),s=e.ref(!1),l=e.ref(!1),r=e.ref([]),i=e.ref(null),c=e.ref(x("immediatelyInitiateARollCallSpotCheck")),p=e.ref(!1),d=e.ref(null),f=e.ref(!1),m=e.ref({limitNum:10,onlineStateFlag:1,checkType:1,checkScope:1,checkStyle:1,actionType:1,actionTime:5,deviceIdList:[],mapRailIdList:[],orgIdList:[],msgContent:"",playMsg:!1,templateName:"",taskDateType:1,apDateListV2:null,apDtmV2:null}),_=e.ref({limitNum:10,onlineStateFlag:1,actionTime:5,actionType:1,checkScope:1,checkStyle:1,checkType:1,deviceIdList:[],mapRailIdList:[],orgIdList:[],msgContent:"",playMsg:!1,templateName:"",taskDateType:1,apDateListV2:null,apDtmV2:null}),y=e.ref({limitNum:[{required:!0,message:x("pleaseEnterTheRandomNumber"),trigger:"blur"}],templateName:[{required:!0,message:x("pleaseEnterTheTemplateName"),trigger:"blur"}],msgContent:[{required:!0,message:x("pleaseFillInTheMessageToBeSent"),trigger:"blur"}],everydayJson:[{required:!0,validator:o,trigger:"change"}],taskDateTime:[{required:!0,message:x("pleaseSelectTheExecutionTime"),trigger:"change"}],taskDateType:[{required:!0,message:x("pleaseSelectTheExecutionDate"),trigger:"change"}],apDateListV2:[{required:!0,message:x("selectOneOrMoreDates"),trigger:"change"}],apDtmV2:[{required:!0,message:x("pleaseSelectASpecificTimePeriod"),trigger:"change"}]}),u=e.ref(),N=e.ref(),k=e.ref(),w=e.ref(),b=e.ref(),S=e.ref();e.watch(()=>_.value.limitNum,J=>{typeof J=="string"&&(J=J.replace(/[^.\d]/g,""),J=J.replace(".",""),_.value.limitNum=J)}),e.watch(()=>p.value,J=>{B()},{immediate:!0});function V(){u.value.validateField("limitNum")}function $(J){if(J!==_.value.onlineStateFlag)return new Promise((ee,ie)=>{if(r.value.length!==0&&_.value.checkScope===3&&J===1)ft({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("prompt"),tipsContent:`<div><p>${x("switchingTheSpotCheckDeviceWillClearTheSelectedData")}</p><p>${x("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("cancel-0"),closeBtnType:"primary",submitBtnText:x("confirm-3"),submitBtnType:"default"},()=>{const le=L();le&&(le.clearSelectedData(),le.getData()),_.value.onlineStateFlag=J,ee(0)});else{if(_.value.onlineStateFlag=J,_.value.checkScope===3){const le=L();le&&le.getData()}ee(0)}})}function h(J){let ee=_.value.limitNum-0;if(J===1)ee+=1;else{if(ee<=1){Se.error(x("atLeast1RandomDevice"));return}ee-=1}_.value.limitNum=ee}function g(J){const{id:ee=null,checkScope:ie=3,contentState:le=3,onlineStateFlag:Z=1,copyType:O=!1,wrapperClosable:G=!1,title:ne=x("immediatelyInitiateARollCallSpotCheck"),selectedDataList:de=[],successfulCallback:_e=null}=J||{};if(p.value){if(le===1)if(ie===_.value.checkScope){const Ve=L();Ve&&Ve.addSelectedDataList(de)}else T(ie).then(()=>{F([],!0);const Ve=L();Ve&&Ve.setSelectedDataList(de)});else return Se.warning(x("repeat"));return}a.value=_e,l.value=G,i.value=le,c.value=ne,u.value&&u.value.resetFields(),_.value={...m.value},_.value.limitNum=10,_.value.checkScope=ie,_.value.onlineStateFlag=Z,le===1?de.length&&F(de,!0):F([],!0),n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},ee?X(ee,O):C(!0)}function C(J){p.value=typeof J=="boolean"?J:!p.value}function E(){u.value.clearValidate("everydayJson"),u.value.clearValidate("apDateListV2"),u.value.clearValidate("apDtmV2")}function D(J){var ee;(ee=T(J))==null||ee.then(()=>{F([],!0)})}function T(J){if(_.value.checkScope!==J)return new Promise((ee,ie)=>{r.value.length!==0?ft({tipsTitleIcon:"sys-icon-tips",tipsTitleIconClass:"text-hy-text-main",tipsTitle:x("prompt"),tipsContent:`<div><p>${x("switchingTheSpotCheckRangeWillClearTheSelectedData")}</p><p>${x("confirmTheSwitch")}</p></div>`,isShowClose:!0,isShowSubmit:!0,closeBtnText:x("cancel-0"),closeBtnType:"primary",submitBtnText:x("confirm-3"),submitBtnType:"default"},()=>{_.value.checkScope=J,ee(0)}):(_.value.checkScope=J,ee(0))})}function B(){p.value?f.value=!0:(d.value&&(clearTimeout(d.value),d.value=null),d.value=setTimeout(()=>{f.value=p.value,clearTimeout(d.value),d.value=null},500))}function L(){const J=_.value.checkScope;return J===1?N.value:J===2?k.value:J===3?w.value:null}function j(J){const{checkScope:ee=1,mapRailList:ie=[],orgList:le=[],deviceList:Z=[]}=J||{};let O=[];return ee===1&&ie.length?O=ie:ee===2&&le.length?O=le:ee===3&&Z.length&&(O=Z.map(G=>({...G,type:3}))),O||[]}function F(J,ee=!1){r.value=[...J],ee&&e.nextTick(()=>{const ie=L();ie&&ie.setSelectedDataList(J)})}function M(){const J=_.value.checkScope;let ee="",ie=[];return J===1?(ee="mapRailIdList",ie=r.value.map(le=>le.id)):J===2?(ee="orgIdList",ie=r.value.map(le=>le.id)):J===3&&(ee="deviceIdList",ie=r.value.map(le=>le.deviceId)),{dataList:ie,name:ee}}function z(){u.value.validate(J=>{if(J){const ee={..._.value};if(ee.playMsg=ee.playMsg?1:0,ee.checkType===1){const ie=M();if(ee[`${ie.name}`]=ie.dataList,ie.dataList.length===0)return Se.error(x("pleaseSelectTheSpotCheckRange"))}else ee.checkScope=null;e.nextTick(()=>{i.value===2?v(ee):i.value===3?ke(ee):Oe(ee)})}})}function U(J){var ee;J&&((ee=b.value)==null||ee.show(J))}function R(){F([],!0),C(!1),a.value=null}function Y(){R()}function X(J,ee){i.value===2?P(J,ee):i.value===3&&he(J,ee)}async function P(J,ee=!1){s.value=!0;const{code:ie,data:le}=await VO({id:J});if(ie===200){const Z=le;if(le.checkScope,Z.taskDateType===2)Z.weekDate.split(",").forEach(ne=>{ne=Number.parseFloat(ne),ne===1?n.value.everyday1=!0:ne===2?n.value.everyday2=!0:ne===3?n.value.everyday3=!0:ne===4?n.value.everyday4=!0:ne===5?n.value.everyday5=!0:ne===6?n.value.everyday6=!0:ne===7&&(n.value.everyday7=!0)});else if(Z.taskDateType===3){const G=[];Z.apDateList.forEach(ne=>{G.push(ne.apDtm.split(" 00:00:00")[0])}),Z.apDateListV2=G}else Z.taskDateType===4&&(Z.apDtmV2=[Z.apStartDtm,Z.apEndDtm]);Z.taskDateTime=[Z.taskDateStartTime,Z.taskDateEndTime],_.value={...Z,playMsg:Z.playMsg===1},ee&&(_.value.id=null);const O=j(Z);F(O,!0),e.nextTick(()=>{s.value=!1,p.value||C(!0)})}}async function v(J){if(J.taskDateStartTime=_.value.taskDateTime[0],J.taskDateEndTime=_.value.taskDateTime[1],_.value.taskDateType===2){let le="";for(const Z in n.value)n.value[Z]&&(le+=`${Z.replace(/(^everyday)|(everyday$)/g,"")},`);if(le.length===0)return Se.error(x("pleaseSelectASpecificWeek"));J.weekDate=le.substring(le.length-1,0)}else if(_.value.taskDateType===3){if(!_.value.apDateListV2||_.value.apDateListV2.length===0)return Se.error(x("pleaseSelectADate"));J.apDateList=_.value.apDateListV2.map(le=>({apDtm:`${le} 00:00:00`}))}else if(_.value.taskDateType===4){if(!_.value.apDtmV2||_.value.apDtmV2.length===0)return Se.error(x("pleaseSelectATimePeriod"));J.apStartDtm=`${_.value.apDtmV2[0]} 00:00:00`,J.apEndDtm=`${_.value.apDtmV2[1]} 00:00:00`}const{code:ee,data:ie={}}=await $O(J);ee===200&&(Se.success(x("operationSuccessful")),t("on-submit"),a.value&&a.value(),R())}async function Te(){const{id:J}=await S.value.show({checkStyle:i.value===2?1:null});J&&(u.value&&u.value.resetFields(),_.value={...m.value},n.value={everyday1:!1,everyday2:!1,everyday3:!1,everyday4:!1,everyday5:!1,everyday6:!1,everyday7:!1},r.value=[],await he(J,!0),Se.success(x("templateApplied")))}async function he(J,ee=!1){s.value=!0;const{code:ie,data:le}=await BO({id:J});if(ie===200){_.value={...le,playMsg:le.playMsg===1},ee&&(_.value.id=null),console.log("详情数据",_.value);const Z=j(_.value);console.log("模板回显数据",Z),e.nextTick(()=>{s.value=!1,p.value||C(!0),e.nextTick(()=>{F(Z,!0)})})}}async function ke(J){const{code:ee}=await AO(J);ee===200&&(Se.success(x("operationSuccessful")),t("on-submit"),a.value&&a.value(),R())}async function Oe(J){const{code:ee,data:ie={}}=await IO(J);ee===200&&(Se.success(x("operationSuccessful")),a.value&&a.value(),t("on-submit"),U(ie.id),R())}return{dialogVisible:p,animationVisible:f,animationTime:d,setDialogVisible:C,setAnimationVisible:B,setCheckScope:T,setSelectedDataList:F,getSelectedDataList:M,onSubmit:z,viewSpotCheckShow:U,close:R,onClose:Y,detail:X,selectTemplateShow:Te,taskDateTypeFn:E,changeCheckScope:D,everydayJson:n,formRef:u,loading:s,selectElectronicFenceRef:N,selectDepartmentRef:k,selectDeviceRef:w,selectTemplateRef:S,viewSpotCheckRef:b,contentState:i,title:c,wrapperClosable:l,form:_,rules:y,$t:x,changeOnlineStateFlag:$,blurLimitNum:V,setRandomNumber:h,selectedDataList:r,show:g}}const Fe=t=>(e.pushScopeId("data-v-1e4e7e93"),t=t(),e.popScopeId(),t),P8={key:0,class:"fixed top-0 left-0 bg-[rgba(0,0,0,0.5)] w-full h-full z-[100]"},M8={class:"w-[1080px] h-full"},U8={class:"w-full h-full px-[20px] box-border flex flex-col text-hy-text-main text-xs"},z8={class:"flex justify-between items-center h-[60px]"},W8={class:"font-bold text-lg"},j8=["element-loading-text"],H8={key:0,class:"flex mb-2 flex-shrink-0 rounded bg-backgroundv2 px-3 pt-2 h-[90px] box-border items-center"},Y8={class:"text-sm h-[30px] flex items-center"},G8=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),q8={key:1,class:"flex mb-2 flex-shrink-0 rounded bg-hy-dialog-bg-2 px-3 pt-2 h-[90px] box-border items-center"},K8={class:"flex-1 mr-4"},X8={class:"text-sm h-[30px] flex items-center"},J8=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),Z8={class:"text-sm h-[30px] flex items-center"},Q8=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),v8={class:"everydayBox leading-[20px]"},eM={class:"text-xs"},tM={class:"text-xs"},nM={class:"text-xs"},oM={class:"text-xs"},aM={class:"text-xs"},sM={class:"text-xs"},lM={class:"text-xs"},rM={class:"text-sm h-[30px] flex items-center"},iM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),cM={class:"w-full"},dM={class:"text-sm h-[30px] flex items-center"},pM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),fM={class:"flex-1 min-w-[220px]"},mM={class:"text-sm h-[30px] flex items-center"},hM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),uM={class:"flex items-center flex-grow h-0"},_M={class:"flex-grow w-0 h-full flex flex-col"},gM={class:"flex"},yM={class:"text-sm h-[30px] flex items-center"},xM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),kM={class:"text-sm h-[30px] flex items-center"},NM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),bM={class:"text-sm h-[30px] flex items-center"},CM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),wM={class:"test h-[32px] flex border border-hy-border-2 rounded box-border overflow-hidden bg-hy-dialog-bg-2 w-full"},EM={class:"flex-grow w-0 box-border px-1 flex items-center justify-center"},SM=["placeholder"],TM={class:"flex flex-col w-[32px] text-auxiliary border-l border-hy-border-2"},DM={class:"text-sm h-[30px] flex items-center"},VM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),$M={class:"flex-grow h-0 bg-hy-dialog-bg-4 shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 rounded-[6px] flex items-center justify-center"},BM={class:"tac text-hy-text-secondary text-center"},AM={class:"mt_10 mt-[10px]"},IM={class:""},LM={class:"mt-1"},FM={class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},OM={class:"flex justify-between h-[40px] items-center"},RM={class:"fs_12 p-[10px_20px] text-[12px]"},PM={class:"r-f mb_10 flex mb-[10px]"},MM=Fe(()=>e.createElementVNode("span",null,"1、",-1)),UM={class:"r-f mb_10 flex mb-[10px]"},zM=Fe(()=>e.createElementVNode("span",null,"2、",-1)),WM={class:"r-f mb_10 flex mb-[10px]"},jM=Fe(()=>e.createElementVNode("span",null,"3、",-1)),HM={class:"fs_12 cursor_pointer !text-hy-text-primary cursor-pointer text-[12px]"},YM={class:"flex-grow h-0 flex"},GM={class:"flex-1"},qM=Fe(()=>e.createElementVNode("div",{class:"mx-[20px] w-[2px] h-[96%] rounded bg-hy-border-2 flex-shrink-0"},null,-1)),KM={class:"w-[33%] h-full flex flex-col"},XM={class:"text-sm h-[30px] flex items-center"},JM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),ZM={class:"text-sm h-[30px] flex items-center"},QM=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),vM={class:"flex-grow h-0 bg-hy-dialog-bg-4 shadow-[0_0_10px_0_inset] shadow-hy-border-1/50 rounded-[6px] flex items-center justify-center"},e6={class:"tac text-hy-text-secondary text-center"},t6={class:"mt-[10px]"},n6={class:"mt-1"},o6={key:0,class:"flex-grow h-0 bg-hy-dialog-bg-3 rounded-[6px] flex flex-col p-2"},a6={class:"flex-grow h-0"},s6={class:"text-xs"},l6={class:"mb-2"},r6={class:"text-sm h-[30px] flex items-center"},i6=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),c6={class:"mb-2"},d6={class:"text-sm h-[30px] flex items-center"},p6=Fe(()=>e.createElementVNode("i",{class:"text-[#f00]"},"*",-1)),f6={class:"flex items-center justify-between h-[80px]"},m6={class:"text-hy-text-secondary flex items-center"},h6=be(e.defineComponent({__name:"edit-spot-check",emits:["on-submit"],setup(t,{expose:n,emit:o}){const a=o,{$t:s,dialogVisible:l,wrapperClosable:r,animationVisible:i,title:c,onClose:p,loading:d,form:f,rules:m,contentState:_,taskDateTypeFn:y,everydayJson:u,changeOnlineStateFlag:N,blurLimitNum:k,setRandomNumber:w,changeCheckScope:b,selectedDataList:S,setSelectedDataList:V,selectTemplateShow:$,onSubmit:h,selectElectronicFenceRef:g,selectDepartmentRef:C,selectDeviceRef:E,selectTemplateRef:D,viewSpotCheckRef:T,show:B,formRef:L}=R8({emit:a});return n({show:B}),(j,F)=>{const M=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-input"),U=e.resolveComponent("el-form-item"),R=e.resolveComponent("el-option"),Y=e.resolveComponent("el-select"),X=e.resolveComponent("el-checkbox"),P=e.resolveComponent("el-date-picker"),v=e.resolveComponent("el-time-picker"),Te=bO,he=e.resolveComponent("el-icon"),ke=yO,Oe=e.resolveComponent("el-popover"),J=e.resolveComponent("el-form"),ee=$t,ie=e.resolveComponent("el-button"),le=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",null,[e.unref(r)&&e.unref(l)?(e.openBlock(),e.createElementBlock("div",P8)):e.createCommentVNode("",!0),e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([{hide:!e.unref(l),display:e.unref(l)},"duration-500 bg-hy-dialog-bg-1 rounded-[12px_0_0_12px] border-r-0 border-hy-border-1 fixed right-0 top-[54%] h-[87%] -translate-y-1/2 z-[101] overflow-hidden"]),style:{"animation-iteration-count":"1"}},[e.createElementVNode("div",M8,[e.createElementVNode("div",U8,[e.createElementVNode("div",z8,[e.createElementVNode("div",W8,e.toDisplayString(e.unref(c)),1),e.createVNode(M,{name:"base-sign-out","class-name":"clickBox !w-[28px] !h-[28px]",onClick:e.unref(p)},null,8,["onClick"])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{"element-loading-text":e.unref(s)("loadingDesperately"),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",class:"flex-grow h-0"},[e.createVNode(J,{ref_key:"formRef",ref:L,model:e.unref(f),rules:e.unref(m),"label-width":"0px",class:"w-full h-full flex flex-col"},{default:e.withCtx(()=>[e.unref(_)===3?(e.openBlock(),e.createElementBlock("div",H8,[e.createVNode(U,{prop:"templateName",class:"w-full"},{default:e.withCtx(()=>[e.createElementVNode("div",Y8,[e.createTextVNode(e.toDisplayString(e.unref(s)("templateName")),1),G8]),e.createVNode(z,{modelValue:e.unref(f).templateName,"onUpdate:modelValue":F[0]||(F[0]=Z=>e.unref(f).templateName=Z),placeholder:e.unref(s)("pleaseEnterTheTemplateName"),clearable:""},null,8,["modelValue","placeholder"])]),_:1})])):e.unref(_)===2?(e.openBlock(),e.createElementBlock("div",q8,[e.createElementVNode("div",K8,[e.createVNode(U,{prop:"taskDateType"},{default:e.withCtx(()=>[e.createElementVNode("div",X8,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionDate")),1),J8]),e.createVNode(Y,{modelValue:e.unref(f).taskDateType,"onUpdate:modelValue":F[1]||(F[1]=Z=>e.unref(f).taskDateType=Z),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheExecutionDate"),onChange:e.unref(y)},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("everyday"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("specifyAWeek"),value:2},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("specifyADate"),value:3},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("specifyATimePeriod"),value:4},null,8,["label"])]),_:1},8,["modelValue","placeholder","onChange"])]),_:1})]),e.createElementVNode("div",null,[e.unref(f).taskDateType===2?(e.openBlock(),e.createBlock(U,{key:0,prop:"everydayJson",class:"max-w-[360px]"},{default:e.withCtx(()=>[e.createElementVNode("div",Z8,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyAWeek")),1),Q8]),e.createElementVNode("div",v8,[e.createVNode(X,{modelValue:e.unref(u).everyday1,"onUpdate:modelValue":F[2]||(F[2]=Z=>e.unref(u).everyday1=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",eM,e.toDisplayString(e.unref(s)("monday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday2,"onUpdate:modelValue":F[3]||(F[3]=Z=>e.unref(u).everyday2=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",tM,e.toDisplayString(e.unref(s)("tuesday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday3,"onUpdate:modelValue":F[4]||(F[4]=Z=>e.unref(u).everyday3=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",nM,e.toDisplayString(e.unref(s)("wednesday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday4,"onUpdate:modelValue":F[5]||(F[5]=Z=>e.unref(u).everyday4=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",oM,e.toDisplayString(e.unref(s)("thursday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday5,"onUpdate:modelValue":F[6]||(F[6]=Z=>e.unref(u).everyday5=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",aM,e.toDisplayString(e.unref(s)("friday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday6,"onUpdate:modelValue":F[7]||(F[7]=Z=>e.unref(u).everyday6=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",sM,e.toDisplayString(e.unref(s)("saturday")),1)]),_:1},8,["modelValue"]),e.createVNode(X,{modelValue:e.unref(u).everyday7,"onUpdate:modelValue":F[8]||(F[8]=Z=>e.unref(u).everyday7=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",lM,e.toDisplayString(e.unref(s)("sunday")),1)]),_:1},8,["modelValue"])])]),_:1})):e.unref(f).taskDateType===3?(e.openBlock(),e.createBlock(U,{key:1,prop:"apDateListV2",class:"mr-4"},{default:e.withCtx(()=>[e.createElementVNode("div",rM,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyADate")),1),iM]),e.createElementVNode("div",cM,[e.createVNode(P,{modelValue:e.unref(f).apDateListV2,"onUpdate:modelValue":F[9]||(F[9]=Z=>e.unref(f).apDateListV2=Z),type:"dates",format:`YYYY ${e.unref(s)("yearMMMonthDDDay")}`,class:"!w-full !box-border","value-format":"YYYY-MM-DD",placeholder:e.unref(s)("selectOneOrMoreDates")},null,8,["modelValue","format","placeholder"])])]),_:1})):e.unref(f).taskDateType===4?(e.openBlock(),e.createBlock(U,{key:2,prop:"apDtmV2",class:"mr-4 w-[340px]"},{default:e.withCtx(()=>[e.createElementVNode("div",dM,[e.createTextVNode(e.toDisplayString(e.unref(s)("specifyATimePeriod")),1),pM]),e.createElementVNode("div",null,[e.createVNode(P,{modelValue:e.unref(f).apDtmV2,"onUpdate:modelValue":F[10]||(F[10]=Z=>e.unref(f).apDtmV2=Z),type:"daterange",class:"!w-full !box-border !text-[13px]",format:`YYYY ${e.unref(s)("yearMMMonthDDDay")}`,"value-format":"YYYY-MM-DD","range-separator":e.unref(s)("to"),"start-placeholder":e.unref(s)("startDate"),"end-placeholder":e.unref(s)("endDate")},null,8,["modelValue","format","range-separator","start-placeholder","end-placeholder"])])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",fM,[e.createVNode(U,{prop:"taskDateTime"},{default:e.withCtx(()=>[e.createElementVNode("div",mM,[e.createTextVNode(e.toDisplayString(e.unref(s)("executionTime-0")),1),hM]),e.createVNode(v,{modelValue:e.unref(f).taskDateTime,"onUpdate:modelValue":F[11]||(F[11]=Z=>e.unref(f).taskDateTime=Z),"is-range":"",class:"!w-full","range-separator":e.unref(s)("to"),"value-format":"HH:mm:ss","start-placeholder":e.unref(s)("startTime"),"end-placeholder":e.unref(s)("endTime"),placeholder:e.unref(s)("selectATimeRange")},null,8,["modelValue","range-separator","start-placeholder","end-placeholder","placeholder"])]),_:1})])])):e.createCommentVNode("",!0),e.createElementVNode("div",uM,[e.createElementVNode("div",_M,[e.createElementVNode("div",gM,[e.createVNode(U,{class:"flex-1"},{default:e.withCtx(()=>[e.createElementVNode("div",yM,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckType")),1),xM]),e.createVNode(Y,{modelValue:e.unref(f).checkType,"onUpdate:modelValue":F[12]||(F[12]=Z=>e.unref(f).checkType=Z),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheSpotCheckType")},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("rangeCheck"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("randomCheck"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),_:1}),e.createVNode(U,{class:"flex-1 ml-1 pl-1"},{default:e.withCtx(()=>[e.createElementVNode("div",kM,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckDevice")),1),NM]),e.createVNode(Y,{"model-value":e.unref(f).onlineStateFlag,class:"w-full",placeholder:e.unref(s)("pleaseSelectTheSpotCheckDevice"),onChange:e.unref(N)},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("spotCheckOnlyOnlineDevices"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("spotCheckAllDevices"),value:2},null,8,["label"])]),_:1},8,["model-value","placeholder","onChange"])]),_:1}),e.unref(f).checkType===2?(e.openBlock(),e.createBlock(U,{key:0,class:"flex-1 ml-1 pl-1",prop:"limitNum"},{default:e.withCtx(()=>[e.createElementVNode("div",bM,[e.createTextVNode(e.toDisplayString(e.unref(s)("randomNumber")),1),CM]),e.createElementVNode("div",wM,[e.createElementVNode("div",EM,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":F[13]||(F[13]=Z=>e.unref(f).limitNum=Z),type:"text",style:{outline:"none"},class:"bg-hy-dialog-bg-2 w-full h-full",placeholder:e.unref(s)("pleaseEnterTheRandomNumber"),onBlur:F[14]||(F[14]=(...Z)=>e.unref(k)&&e.unref(k)(...Z))},null,40,SM),[[e.vModelText,e.unref(f).limitNum]])]),e.createElementVNode("div",TM,[e.createElementVNode("div",{class:"flex-1 flex items-center justify-center clickBox cursor-pointer",onClick:F[15]||(F[15]=Z=>e.unref(w)(1))},[e.createVNode(he,null,{default:e.withCtx(()=>[e.createVNode(Te)]),_:1})]),e.createElementVNode("div",{class:"flex-1 border-t border-hy-border-2 flex items-center justify-center cursor-pointer clickBox",onClick:F[16]||(F[16]=Z=>e.unref(w)(2))},[e.createVNode(he,null,{default:e.withCtx(()=>[e.createVNode(ke)]),_:1})])])])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",DM,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckRange")),1),VM]),e.withDirectives(e.createElementVNode("div",$M,[e.createElementVNode("div",BM,[e.createVNode(M,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",AM,[e.createElementVNode("p",IM,e.toDisplayString(e.unref(s)("youDoNotNeedToSelectARangeAndDeviceForRandomCheck")),1),e.createElementVNode("p",LM,e.toDisplayString(e.unref(s)("theSystemWillHelpYouSelectRandomly")),1)])])],512),[[e.vShow,e.unref(f).checkType===2]]),e.withDirectives(e.createElementVNode("div",FM,[e.createElementVNode("div",OM,[e.createElementVNode("div",null,[e.createVNode(Y,{"model-value":e.unref(f).checkScope,class:"w-[160px]",placeholder:e.unref(s)("pleaseSelect"),onChange:e.unref(b)},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("selectAnArea"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("selectADepartment"),value:2},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("selectADevice"),value:3},null,8,["label"])]),_:1},8,["model-value","placeholder","onChange"])]),e.createElementVNode("div",null,[e.createVNode(Oe,{"open-delay":500,placement:"bottom-start","popper-class":"popover_echarts",trigger:"hover",width:"200"},{reference:e.withCtx(()=>[e.createElementVNode("span",HM,[e.createVNode(M,{name:"base-help","class-name":"svgBox ml-1 !w-[12px] !h-[12px]"}),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("help")),1)])]),default:e.withCtx(()=>[e.createElementVNode("ul",RM,[e.createElementVNode("li",PM,[MM,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("regionalElectronicFenceSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationWithinTheSpecifiedElectronicFenceArea")),1)]),e.createElementVNode("li",UM,[zM,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("departmentSelectThisOptionToSpotCheckDevicesThatSupportSpotCheckConfigurationInTheSpecifiedDepartment")),1)]),e.createElementVNode("li",WM,[jM,e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("setSelectThisOptionToManuallySelectSpecificDevicesThatSupportSpotCheckConfigurationForSpotCheck")),1)])])]),_:1})])]),e.createElementVNode("div",YM,[e.createElementVNode("div",GM,[e.unref(f).checkScope===1?(e.openBlock(),e.createBlock($8,{key:0,ref_key:"selectElectronicFenceRef",ref:g,"init-selected-data-list":e.unref(S),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(f).checkScope===2?(e.openBlock(),e.createBlock(fP,{key:1,ref_key:"selectDepartmentRef",ref:C,"init-selected-data-list":e.unref(S),onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","onOnSelectedDataList"])):e.unref(f).checkScope===3?(e.openBlock(),e.createBlock(s8,{key:2,ref_key:"selectDeviceRef",ref:E,"init-selected-data-list":e.unref(S),"online-state-flag":e.unref(f).onlineStateFlag,onOnSelectedDataList:e.unref(V)},null,8,["init-selected-data-list","online-state-flag","onOnSelectedDataList"])):e.createCommentVNode("",!0)])])],512),[[e.vShow,e.unref(f).checkType===1]])]),qM,e.createElementVNode("div",KM,[e.createVNode(U,null,{default:e.withCtx(()=>[e.createElementVNode("div",XM,[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckMethod")),1),JM]),e.createVNode(Y,{modelValue:e.unref(f).checkStyle,"onUpdate:modelValue":F[17]||(F[17]=Z=>e.unref(f).checkStyle=Z),class:"w-full",disabled:e.unref(_)===2,placeholder:e.unref(s)("pleaseSelectTheSpotCheckMethod")},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("message"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("call"),value:2},null,8,["label"])]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),e.createElementVNode("div",ZM,[e.createTextVNode(e.toDisplayString(e.unref(s)("messageContent")),1),QM]),e.withDirectives(e.createElementVNode("div",vM,[e.createElementVNode("div",e6,[e.createVNode(M,{name:"base-no-data","class-name":"svgBox !w-[40px] !h-[40px]"}),e.createElementVNode("div",t6,[e.createElementVNode("p",null,e.toDisplayString(e.unref(s)("callDoesNotRequireYouToEnterTheMessageContent")),1),e.createElementVNode("p",n6,e.toDisplayString(e.unref(s)("spotCheckWillBeConductedByIntercomAnswering")),1)])])],512),[[e.vShow,e.unref(f).checkStyle===2]]),e.unref(f).checkStyle===1?(e.openBlock(),e.createElementBlock("div",o6,[e.createElementVNode("div",a6,[e.createVNode(U,{prop:"msgContent"},{default:e.withCtx(()=>[e.createVNode(z,{modelValue:e.unref(f).msgContent,"onUpdate:modelValue":F[18]||(F[18]=Z=>e.unref(f).msgContent=Z),type:"textarea",placeholder:e.unref(s)("pleaseFillInTheMessageToBeSent"),maxlength:"100",resize:"none",autosize:{minRows:e.unref(_)===1?14:10},"show-word-limit":""},null,8,["modelValue","placeholder","autosize"])]),_:1}),e.createVNode(X,{modelValue:e.unref(f).playMsg,"onUpdate:modelValue":F[19]||(F[19]=Z=>e.unref(f).playMsg=Z)},{default:e.withCtx(()=>[e.createElementVNode("span",s6,e.toDisplayString(e.unref(s)("requiresTTSVoiceBroadcastOnTheDevice")),1)]),_:1},8,["modelValue"])]),e.createElementVNode("div",l6,[e.createElementVNode("div",r6,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerMethod")),1),i6]),e.createVNode(Y,{modelValue:e.unref(f).actionType,"onUpdate:modelValue":F[20]||(F[20]=Z=>e.unref(f).actionType=Z),class:"w-full",placeholder:e.unref(s)("pleaseSelect")},{default:e.withCtx(()=>[e.createVNode(R,{label:e.unref(s)("punchIn"),value:1},null,8,["label"]),e.createVNode(R,{label:e.unref(s)("reply"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),e.createElementVNode("div",c6,[e.createElementVNode("div",d6,[e.createTextVNode(e.toDisplayString(e.unref(s)("answerTime")),1),p6]),e.createVNode(Y,{modelValue:e.unref(f).actionTime,"onUpdate:modelValue":F[21]||(F[21]=Z=>e.unref(f).actionTime=Z),class:"w-full",placeholder:e.unref(s)("pleaseSelectTheAnswerTime")},{default:e.withCtx(()=>[e.createVNode(R,{label:"5s",value:5}),e.createVNode(R,{label:"10s",value:10}),e.createVNode(R,{label:"15s",value:15}),e.createVNode(R,{label:"30s",value:30}),e.createVNode(R,{label:"60s",value:60})]),_:1},8,["modelValue","placeholder"])])])):e.createCommentVNode("",!0)])])]),_:1},8,["model","rules"])],8,j8)),[[le,e.unref(d)]]),e.createElementVNode("div",f6,[e.createElementVNode("div",m6,[e.createVNode(he,{class:"text-sm mr-1"},{default:e.withCtx(()=>[e.createVNode(ee)]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("youCanApplyTheSpotCheckTemplateToQuicklyFillInTheContent")),1)]),e.createElementVNode("div",null,[e.unref(_)!==3?(e.openBlock(),e.createBlock(ie,{key:0,class:"button_function buttonBox",onClick:e.unref($)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("spotCheckTemplate")),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.createVNode(ie,{type:"primary",class:"button_default buttonBox",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("cancel")),1)]),_:1},8,["onClick"]),e.createVNode(ie,{class:"button_function buttonBox",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("confirm")),1)]),_:1},8,["onClick"])])])])]),e.createVNode(O8,{ref_key:"selectTemplateRef",ref:D},null,512)],2)):e.createCommentVNode("",!0),e.createVNode(S3,{ref_key:"viewSpotCheckRef",ref:T},null,512)])}}}),[["__scopeId","data-v-1e4e7e93"]]);function u6(t){return oe.post({url:"orgGroup/detail",data:t,isFormData:!0})}function _6(){const t=e.ref({}),n=e.ref(null),o=e.ref({}),a=e.ref(1),s=e.ref([{label:x("spotCheckInformation"),value:1},{label:x("spotCheckStatus"),value:2}]),l=e.ref(0),r=e.ref([{label:x("all"),value:0},{label:x("completed-0"),value:3},{label:x("uncompleted-0"),value:4}]),i=e.ref([]),c=e.ref([]),p=e.ref(!1),d=e.ref(),f=e.computed(()=>{const h=r.value.findIndex(g=>g.value===l.value);return h!==-1?Math.ceil(h*(100/r.value.length)):0}),m=e.computed(()=>{const h=s.value.findIndex(g=>g.value===a.value);return h!==-1?Math.ceil(h*(100/s.value.length)):0});async function _(h){if(!h)return;const{code:g,data:C}=await u6({id:h});g===200&&(o.value=C)}function y(){var h;(h=d.value)==null||h.getData(l.value)}function u(h){l.value=h,e.nextTick(()=>{y()})}function N(h){a.value=h}function k(h){}function w(h={}){const{beReceiveNum:g=0,receivingNum:C=0,finishNum:E=0,notFinishNum:D=0}=h;t.value.beReceiveNum=g,t.value.receivingNum=C,t.value.finishNum=E,t.value.notFinishNum=D}function b(h=[]){}function S(h){t.value={actionType:1,id:12},N(1),u(0),V(h),p.value=!0}async function V(h){const{code:g,data:C={}}=await Lr({id:h,getMapRail:1,getOrg:1});g===200&&(t.value=C,i.value=C.orgNameList||[],c.value=C.railNameList||[],t.value.checkNum,e.nextTick(()=>{C.checkStyle===2&&(n.value=C.groupId,_(n.value),t.value.actionType=null),p.value=!0}))}function $(){p.value=!1}return{form:t,groupId:n,orgGroupInsertTemp:o,navigationStatus:a,navigationList:s,checkStatus:l,checkStatusList:r,orgNameList:i,railNameList:c,dialogVisible:p,spotCheckTaskDeviceRef:d,checkStatusProgress:f,navigationStatusProgress:m,setCheckStatus:u,setNavigationStatus:N,setLoading:k,spotCheckTaskDeviceCountStatus:w,spotCheckTaskDeviceChange:b,show:S,detail:V,close:$}}const g6={class:"deleteBox c_fff text-hy-text-main"},y6={class:"pos_r dialog_header relative text-hy-text-main text-[18px] text-center p-[20px] font-bold z-[1px] bg-hy-dialog-bg-1 rounded-[12px_12px_0_0] font-[Helvetica]"},x6={class:"absolute right-[12px] top-[12px]"},k6={class:"dialog_body pb-[30px] h-[60vh] flex flex-col text-main text-xs !px-0"},N6={class:"flex items-center justify-center mb-[16px]"},b6={class:"relative flex-shrink-0"},C6={class:"relative text-sm h-[36px] !leading-[36px] text-center border border-hy-bg-2 rounded text-hy-text-secondary flex overflow-hidden"},w6=["onClick"],E6={class:"flex flex-grow h-0 px-4 box-border"},S6={class:"w-full h-full box-border px-2"},T6={class:"w-full h-full bg-hy-dialog-bg-2 rounded px-3 py-1 box-border overflow-x-hidden overflow-y-auto"},D6={class:"mb-2"},V6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},$6={class:"text-hy-text-secondary"},B6={class:"mb-2"},A6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},I6={class:"mb-2"},L6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},F6={class:"mb-2"},O6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},R6={class:"mb-2"},P6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},M6={key:0,class:"mb-2"},U6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},z6={key:0},W6={key:1},j6={key:2},H6={key:0},Y6={key:0},G6={key:1},q6={key:0},K6={key:2},X6={key:1,class:"mb-2"},J6={class:"text-hy-text-secondary h-[30px] leading-[30px]"},Z6={key:0,class:"py-1 box-border h-full bg-hy-dialog-bg-3 rounded"},Q6={class:"w-full h-[34px] px-2 box-border flex justify-between items-center"},v6={key:0,class:"ml-2 border-[2px] box-border border-hy-border-2 flex items-center justify-center h-[26px] px-2 rounded"},e5={class:"h-[40%] box-border px-2 mt-1"},t5={class:"w-full h-full box-border bg-hy-dialog-bg-2 rounded p-2 overflow-y-auto overflow-x-hidden"},n5={class:"flex px-2 mt-1"},o5={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center mr-2"},a5={class:"text-hy-text-secondary"},s5={class:"flex-1 bg-hy-dialog-bg-2 rounded px-2 box-border h-[32px] flex justify-between items-center"},l5={class:"text-hy-text-secondary"},r5={class:"font-bold"},i5={key:1,class:"h-full py-1 bg-hy-dialog-bg-3 rounded"},c5={class:"w-full h-full flex items-center justify-center text-hy-text-secondary box-border"},d5={class:"r-f tac flex flex-col items-center justify-center text-center text-sm"},p5={class:"mt-3"},f5={class:"mt-1"},m5={class:"flex flex-grow h-0 px-4 box-border"},h5={class:"text-xs px-2 leading-[22px]"},u5={class:"flex w-full"},_5={class:"flex-shrink-0"},g5={class:"text-right font-bold flex-grow w-0"},y5={class:"flex w-full"},x5={class:"flex-shrink-0 tracking-[4px]"},k5={class:"text-right font-bold flex-grow w-0"},N5={class:"flex w-full"},b5={class:"flex-shrink-0 tracking-[4px]"},C5={class:"text-right font-bold flex-grow w-0"},w5={class:"flex w-full"},E5={class:"flex-shrink-0 tracking-[4px]"},S5={class:"text-right font-bold flex-grow w-0 text-hy-success"},T5={class:"flex w-full"},D5={class:"flex-shrink-0 tracking-[4px]"},V5={class:"text-right font-bold flex-grow w-0 text-hy-danger"},$5={class:"flex-1 flex"},B5={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},A5={class:"flex-grow w-0 text-center truncate"},I5={class:"flex-1 flex"},L5={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},F5={class:"flex-grow w-0 text-center text-hy-success truncate"},O5={class:"flex-1 flex"},R5={class:"bg-hy-dialog-bg-3 h-full w-[32px] flex items-center justify-center flex-shrink-0"},P5={class:"flex-grow w-0 text-center text-hy-danger truncate"},M5={class:"relative mt-3 mb-2 min-w-[160px]"},U5={class:"relative h-[26px] !leading-[26px] text-center border border-hy-border-2 rounded text-hy-text-secondary text-xs flex overflow-hidden"},z5=["onClick"],W5={class:"flex-grow h-0 px-2 overflow-x-hidden overflow-y-auto"},j5=e.createElementVNode("div",{class:"w-full h-full rounded border border-hy-border-2 bg-hy-dialog-bg-2 overflow-hidden"},null,-1),H5={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"},Y5={class:"r-f tac flex flex-col justify-center items-center"},G5={class:"mt-3 text-sm"},q5=e.defineComponent({__name:"spot-check-details",setup(t,{expose:n}){const{dialogVisible:o,checkStatus:a,checkStatusList:s,checkStatusProgress:l,close:r,form:i,navigationList:c,navigationStatus:p,navigationStatusProgress:d,orgGroupInsertTemp:f,orgNameList:m,railNameList:_,setCheckStatus:y,setNavigationStatus:u,spotCheckTaskDeviceChange:N,spotCheckTaskDeviceCountStatus:k,show:w,spotCheckTaskDeviceRef:b}=_6();return n({show:w}),(S,V)=>{const $=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-col"),g=e.resolveComponent("el-row"),C=e.resolveComponent("el-popover"),E=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(E,{modelValue:e.unref(o),"onUpdate:modelValue":V[0]||(V[0]=D=>e.isRef(o)?o.value=D:null),"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,class:"dialog_clsss filter-dialog",width:"820px"},{default:e.withCtx(()=>[e.createVNode($e,{name:"sys-box-border-login",width:"24",height:"24","class-name":"text-text-hy-main"},{content:e.withCtx(()=>[e.createElementVNode("div",g6,[e.createElementVNode("div",y6,[e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("spotCheckDetails")),1),e.createElementVNode("div",x6,[e.createVNode($,{width:"26",height:"26",name:"sys-icon-close","class-name":"svgBox click-box text-hy-text-danger",onClick:e.withModifiers(e.unref(r),["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",k6,[e.createElementVNode("div",N6,[e.createElementVNode("div",b6,[e.createElementVNode("div",{style:e.normalizeStyle([{left:`${e.unref(d)}%`},{background:"linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%)"}]),class:"rounded-[4px_4px_0_0] absolute top-0 left-0 w-[96px] h-full duration-500"},null,4),e.createElementVNode("ul",C6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(D,T)=>(e.openBlock(),e.createElementBlock("li",{key:T,class:e.normalizeClass([{"text-hy-text-main font-bold":D.value===e.unref(p)},"clickBox cursor-pointer px-2 w-[96px] box-border"]),onClick:B=>e.unref(u)(D.value)},e.toDisplayString(D.label),11,w6))),128))])])]),e.withDirectives(e.createElementVNode("div",E6,[e.createVNode(g,{gutter:8,class:"w-full h-full"},{default:e.withCtx(()=>[e.createVNode(h,{span:8,class:"h-full"},{default:e.withCtx(()=>[e.createElementVNode("div",S6,[e.createElementVNode("div",T6,[e.createElementVNode("div",D6,[e.createElementVNode("div",V6,e.toDisplayString(e.unref(x)("spotCheckPersonnel")),1),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(i).name)+" ",1),e.createElementVNode("span",$6," ("+e.toDisplayString(e.unref(i).jobNum)+")",1)])]),e.createElementVNode("div",B6,[e.createElementVNode("div",A6,e.toDisplayString(e.unref(x)("department")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).orgName),1)]),e.createElementVNode("div",I6,[e.createElementVNode("div",L6,e.toDisplayString(e.unref(x)("spotCheckTime")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkDtm),1)]),e.createElementVNode("div",F6,[e.createElementVNode("div",O6,e.toDisplayString(e.unref(x)("spotCheckType")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkType===1?e.unref(x)("rangeCheck"):e.unref(x)("randomCheck")),1)]),e.createElementVNode("div",R6,[e.createElementVNode("div",P6,e.toDisplayString(e.unref(x)("spotCheckMethod")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(i).checkStyle===1?e.unref(x)("message"):e.unref(x)("call")),1)]),e.unref(i).checkType===1?(e.openBlock(),e.createElementBlock("div",M6,[e.createElementVNode("div",U6,[e.createTextVNode(e.toDisplayString(e.unref(x)("samplingScope"))+" ",1),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("span",z6,e.toDisplayString(e.unref(x)("regionalSpotCheck")),1)):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("span",W6,e.toDisplayString(e.unref(x)("departmentSpotCheck")),1)):e.unref(i).checkScope===3?(e.openBlock(),e.createElementBlock("span",j6,e.toDisplayString(e.unref(x)("deviceSpotCheck")),1)):e.createCommentVNode("",!0),e.createTextVNode(" ) ")]),e.unref(i).checkScope===1?(e.openBlock(),e.createElementBlock("div",H6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(D,T)=>(e.openBlock(),e.createElementBlock("span",{key:`${T}_orgNameList`},[e.createTextVNode(e.toDisplayString(D)+" ",1),T!==e.unref(_).length-1?(e.openBlock(),e.createElementBlock("span",Y6,"、")):e.createCommentVNode("",!0)]))),128))])):e.unref(i).checkScope===2?(e.openBlock(),e.createElementBlock("div",G6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(D,T)=>(e.openBlock(),e.createElementBlock("span",{key:`${T}_orgNameList`},[e.createTextVNode(e.toDisplayString(D)+" ",1),T!==e.unref(m).length-1?(e.openBlock(),e.createElementBlock("span",q6,"、")):e.createCommentVNode("",!0)]))),128))])):(e.openBlock(),e.createElementBlock("div",K6,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).checkNum||0)+" "+e.toDisplayString(e.unref(x)("device")),1)]))])):(e.openBlock(),e.createElementBlock("div",X6,[e.createElementVNode("div",J6,[e.createTextVNode(e.toDisplayString(e.unref(x)("samplingScope"))+" ",1),e.createElementVNode("span",null,e.toDisplayString(e.unref(x)("randomCheck")),1),e.createTextVNode(" ) ")]),e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(i).limitNum||0)+" "+e.toDisplayString(e.unref(x)("device")),1)])]))])])]),_:1}),e.createVNode(h,{span:16,class:"h-full"},{default:e.withCtx(()=>[e.unref(i).checkStyle===1?(e.openBlock(),e.createElementBlock("div",Z6,[e.createElementVNode("div",Q6,[e.createElementVNode("div",null,e.toDisplayString(e.unref(x)("messageContent")),1),e.unref(i).playMsg===1?(e.openBlock(),e.createElementBlock("div",v6," TTS"+e.toDisplayString(e.unref(x)("textToSpeech")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",e5,[e.createElementVNode("div",t5,e.toDisplayString(e.unref(i).msgContent),1)]),e.createElementVNode("div",n5,[e.createElementVNode("div",o5,[e.createElementVNode("div",a5,e.toDisplayString(e.unref(x)("answerMethod")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(i).actionType===1?e.unref(x)("punchIn"):e.unref(x)("reply")),1)]),e.createElementVNode("div",s5,[e.createElementVNode("div",l5,e.toDisplayString(e.unref(x)("answerTime")),1),e.createElementVNode("span",null,[e.createElementVNode("span",r5,e.toDisplayString(e.unref(i).actionTime),1),e.createTextVNode(" "+e.toDisplayString(e.unref(x)("second")),1)])])])])):(e.openBlock(),e.createElementBlock("div",i5,[e.createElementVNode("div",c5,[e.createElementVNode("div",d5,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",p5,e.toDisplayString(e.unref(x)("callSpotCheck")),1),e.createElementVNode("div",f5,e.toDisplayString(e.unref(x)("backupWillBeCheckedByIntercomAnswering")),1)])])]))]),_:1})]),_:1})],512),[[e.vShow,e.unref(p)===1]]),e.withDirectives(e.createElementVNode("div",m5,[e.unref(i).checkNum!==0?(e.openBlock(),e.createBlock(g,{key:0,gutter:8,class:"w-full h-full"},{default:e.withCtx(()=>[e.createVNode(h,{span:e.unref(i).actionType===1?24:8,class:"h-full !flex flex-col"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"flex-col":e.unref(i).actionType!==1,"justify-between items-center":e.unref(i).actionType===1},"flex-shrink-0 flex px-2"])},[e.createVNode(C,{"open-delay":500,placement:"top","popper-class":"popover_echarts w-[130px]",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("span",null,[e.createElementVNode("div",{class:e.normalizeClass([{"min-w-[248px]":e.unref(i).actionType===1},"h-[28px] box-border leading-[28px] w-full bg-hy-dialog-bg-2 border border-hy-bg-2 rounded flex font-bold"])},[e.createElementVNode("div",$5,[e.createElementVNode("div",B5,[e.createVNode($,{name:"base-every-day-many-people","class-name":"w-[16px] h-[16px]"})]),e.createElementVNode("div",A5,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("div",I5,[e.createElementVNode("div",L5,[e.createVNode($,{name:"base-success-state","class-name":"w-[16px] h-[16px] text-hy-success"})]),e.createElementVNode("div",F5,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("div",O5,[e.createElementVNode("div",R5,[e.createVNode($,{name:"base-danger-state","class-name":"w-[16px] h-[16px] text-hy-danger"})]),e.createElementVNode("div",P5,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])],2)])]),default:e.withCtx(()=>[e.createElementVNode("ul",h5,[e.createElementVNode("li",u5,[e.createElementVNode("span",_5,e.toDisplayString(e.unref(x)("numberOfPeopleToBeChecked")),1),e.createElementVNode("div",g5,e.toDisplayString(e.unref(i).checkNum||"- -"),1)]),e.createElementVNode("li",y5,[e.createElementVNode("span",x5,e.toDisplayString(e.unref(x)("waitingToReceive")),1),e.createElementVNode("div",k5,e.toDisplayString(e.unref(i).beReceiveNum||"- -"),1)]),e.createElementVNode("li",N5,[e.createElementVNode("span",b5,e.toDisplayString(e.unref(x)("receiving")),1),e.createElementVNode("div",C5,e.toDisplayString(e.unref(i).receivingNum||"- -"),1)]),e.createElementVNode("li",w5,[e.createElementVNode("span",E5,e.toDisplayString(e.unref(x)("completed")),1),e.createElementVNode("div",S5,e.toDisplayString(e.unref(i).finishNum||"- -"),1)]),e.createElementVNode("li",T5,[e.createElementVNode("span",D5,e.toDisplayString(e.unref(x)("uncompleted")),1),e.createElementVNode("div",V5,e.toDisplayString(e.unref(i).notFinishNum||"- -"),1)])])]),_:1}),e.createElementVNode("div",M5,[e.createElementVNode("div",{style:e.normalizeStyle([{left:`${e.unref(l)}%`},{background:"linear-gradient(180deg,#0ea0bb 0%,var(--hy-dialog-bg-2) 100%)"}]),class:e.normalizeClass([{"w-[75px]":e.unref(i).actionType!==1,"w-[54px]":e.unref(i).actionType===1},"rounded-[4px_4px_0_0] absolute top-0 left-0 h-full duration-500"])},null,6),e.createElementVNode("ul",U5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(D,T)=>(e.openBlock(),e.createElementBlock("li",{key:`${T}_checkStatusList`,class:e.normalizeClass([{"text-hy-text-main":D.value===e.unref(a)},"flex-1 cursor-pointer hover:opacity-60"]),onClick:B=>e.unref(y)(D.value)},e.toDisplayString(D.label),11,z5))),128))])])],2),e.createElementVNode("div",W5,[e.unref(i).id?(e.openBlock(),e.createBlock(pa,{key:0,ref_key:"spotCheckTaskDeviceRef",ref:b,"params-span":e.unref(i).actionType===1?8:24,form:e.unref(i),"subscribe-status":!1,onChange:e.unref(N),onOnCountStatus:e.unref(k)},null,8,["params-span","form","onChange","onOnCountStatus"])):e.createCommentVNode("",!0)])]),_:1},8,["span"]),e.unref(i).actionType!==1?(e.openBlock(),e.createBlock(h,{key:0,span:16,class:"h-full"},{default:e.withCtx(()=>[j5]),_:1})):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createElementBlock("div",H5,[e.createElementVNode("div",Y5,[e.createVNode($,{name:"base-no-data","class-name":"svgBox !w-[46px] !h-[46px]"}),e.createElementVNode("div",G5,e.toDisplayString(e.unref(x)("noDeviceSupportsThisSpotCheck")),1)])]))],512),[[e.vShow,e.unref(p)===2]])])])]),_:1})]),_:1},8,["modelValue"])}}});function K5(t){const n=e.ref(t.props),o=e.ref(t.params.selectFilterType),a=e.ref(""),s=e.ref([]);async function l(){var i;n.value.getData&&((i=n.value.getData())==null||i.then(async c=>{if(!c)return;const p=await zr(a.value,[...c],{disabledIds:n.value.disableDataList.map(d=>`disabled:${d.id}`).toString(),hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});console.log(p),s.value=p.children,t.params.setViewDepartmentList(s.value)}))}function r(){a.value.length&&l()}return{getData:l,query:a,selectChange:r}}const X5={class:"flex flex-col h-full text-xs"},J5={class:"flex items-center"},Z5={class:"!w-[114px]"},Q5={class:"text-hy-text-main"},v5={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},eU={class:"flex-grow w-0 flex items-center mr-1"},tU={class:"overflow-ellipsis overflow-hidden mx-1"},nU={class:"flex-shrink-0 flex items-center"},oU={key:0,class:"w-full"},aU={class:"w-full h-full flex items-center"},sU={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},lU={class:"flex-shrink-0 text-xs ml-1 mr-2 text-hy-main"},rU=e.defineComponent({__name:"acquisition-station-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=K5({emit:s,props:a,params:{selectFilterType:w,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"采集站名称,群组名称筛选"}],w.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:"采集站",value:8,placeholder:x("采集站名称进行筛选")}),w.value=k.value[0].value),a.defaultGetData||h()}),(E,D)=>{const T=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),L=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),F=e.resolveComponent("el-input"),M=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",X5,[e.createElementVNode("div",J5,[e.createVNode(F,{modelValue:e.unref(g),"onUpdate:modelValue":D[1]||(D[1]=z=>e.isRef(g)?g.value=z:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",Q5,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(L,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",Z5,[e.createVNode(B,{modelValue:e.unref(w),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(w)?w.value=z:null),class:"!m-0",size:"small",onChange:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(z,U)=>(e.openBlock(),e.createBlock(T,{key:`${U}_selectFilterList`,label:z.label,value:z.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(E.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":8,"highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,"default-checked-list":a.defaultCheckedList,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:z})=>[e.renderSlot(E.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",v5,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.sname},{default:e.withCtx(()=>[e.createElementVNode("div",eU,[e.createVNode(L,{name:"menu-acquisition-station-2",class:"!w-[20px] !h-[20px]"}),e.createElementVNode("div",tU,[e.createElementVNode("span",null,e.toDisplayString(z.sname),1)])])]),_:2},1032,["content"]),z.todayFile?(e.openBlock(),e.createBlock(M,{key:0,class:"item","show-after":1e3,content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",nU,[e.createVNode(L,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]))]),"other-content":e.withCtx(({row:z})=>[e.renderSlot(E.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",oU,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",aU,[e.createElementVNode("div",sU,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)]),e.createElementVNode("span",lU,"("+e.toDisplayString(z.childrenDeviceList.length||0)+")",1)])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function iU(t){const n=t.emit,o=e.ref(t.props),a=e.ref(t.params.selectFilterType);e.ref(!1);const s=e.ref(""),l=e.ref([]);async function r(){var d;o.value.getData&&((d=o.value.getData())==null||d.then(async f=>{if(!f)return;const m=await Mr(s.value,[...f],{hideDevice:o.value.hideDevice,hideOrgNoData:o.value.hideOrgNoData,hideGroup:o.value.hideGroup,selectFilterType:a.value});l.value=m.children,t.params.setViewDepartmentList(l.value)}))}function i(){s.value.length&&r()}function c(d){n("onClickDevice",d)}function p(d){n("onClickOrganization",d)}return{getData:r,query:s,selectChange:i,onClickDevice:c,onClickOrganization:p}}const cU={class:"flex flex-col h-full text-xs"},dU={class:"flex items-center"},pU={class:"!w-[114px]"},fU={class:"text-hy-text-main"},mU={key:0,class:"flex items-center w-full h-full click-box"},hU={class:"flex-grow w-0 h-full flex items-center text-hy-text-main"},uU={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},_U={class:"text-hy-text-main"},gU={class:"flex-shrink-0 ml-1 mr-2 h-full flex items-center justify-center"},yU={key:0,class:"w-full h-full"},xU=["onClick"],kU={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},NU=e.defineComponent({__name:"org-group-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},hideGroup:{type:Boolean,default:!1},hideDevice:{type:Boolean,default:!1}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData","onClickDevice","onClickOrganization"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C,onClickDevice:E,onClickOrganization:D}=iU({emit:s,props:a,params:{selectFilterType:w,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"部门、群组名称、设备名称、设备IMEI进行搜索"}],w.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:x("equipment"),value:3,placeholder:x("filterByDeviceNumberAndDeviceName")}),a.hideGroup||k.value.push({label:"群组",value:4,placeholder:"群组名称进行筛选"}),w.value=k.value[0].value),a.defaultGetData||h()}),(T,B)=>{const L=e.resolveComponent("el-option"),j=e.resolveComponent("el-select"),F=e.resolveComponent("svg-icon"),M=e.resolveComponent("el-button"),z=e.resolveComponent("el-input"),U=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",cU,[e.createElementVNode("div",dU,[e.createVNode(z,{modelValue:e.unref(g),"onUpdate:modelValue":B[1]||(B[1]=R=>e.isRef(g)?g.value=R:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",fU,[e.createVNode(M,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(F,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",pU,[e.createVNode(j,{modelValue:e.unref(w),"onUpdate:modelValue":B[0]||(B[0]=R=>e.isRef(w)?w.value=R:null),class:"!m-0",size:"small",onChange:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(R,Y)=>(e.openBlock(),e.createBlock(L,{key:`${Y}_selectFilterList`,label:R.label,value:R.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(T.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":4,"highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,"default-checked-list":a.defaultCheckedList,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:R})=>[e.renderSlot(T.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:R}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",mU,[e.createVNode(U,{class:"item",content:R.groupName,effect:"dark",placement:"bottom","show-after":1e3},{default:e.withCtx(()=>{var Y;return[e.createElementVNode("div",hU,[e.createElementVNode("div",uU,[e.createElementVNode("span",_U,e.toDisplayString(R.groupName),1)]),e.withDirectives(e.createElementVNode("span",{class:"flex-shrink-0 text-xs mr-2 ml-1 text-hy-main"},"("+e.toDisplayString(((Y=R.deviceList)==null?void 0:Y.length)||0)+")",513),[[e.vShow,!a.hideDevice]])])]}),_:2},1032,["content"]),e.createVNode(U,{class:"item",content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom","show-after":1e3},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",gU,[e.createVNode(F,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})],512),[[e.vShow,R.todayFile]])]),_:2},1032,["content"])]))]),"other-content":e.withCtx(({row:R})=>[e.renderSlot(T.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:R}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",yU,[R.type===3?(e.openBlock(),e.createBlock(fa,{key:0,device:R,onOnClickDevice:e.unref(E)},null,8,["device","onOnClickDevice"])):e.createCommentVNode("",!0),R.type!==3?(e.openBlock(),e.createBlock(U,{key:1,"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:R.companyName||R.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"w-full h-full flex items-center",onClick:Y=>e.unref(D)(R)},[e.createElementVNode("div",kU,[e.createElementVNode("span",null,e.toDisplayString(R.companyName||R.orgName),1)])],8,xU)]),_:2},1032,["content"])):e.createCommentVNode("",!0)]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});function bU(t){const n=e.ref(t.props),o=e.ref(t.params.selectFilterType),a=e.ref(""),s=e.ref([]);async function l(){var i;n.value.getData&&((i=n.value.getData())==null||i.then(async c=>{if(!c)return;const p=await Ur(a.value,[...c],{disabledIds:n.value.disableDataList.map(d=>`disabled:${d.id}`).toString(),hideOrgNoData:n.value.hideOrgNoData,selectFilterType:o.value});s.value=p.children,t.params.setViewDepartmentList(s.value)}))}function r(){a.value.length&&l()}return{getData:l,query:a,selectChange:r}}const CU={class:"flex flex-col h-full text-xs"},wU={class:"flex items-center"},EU={class:"!w-[114px]"},SU={class:"text-hy-text-main"},TU={key:0,class:"w-full h-full flex click-box text-hy-text-main text-xs"},DU={class:"flex-grow w-0 flex items-center mr-1"},VU={class:"overflow-ellipsis overflow-hidden mx-1"},$U={class:"flex-shrink-0 flex items-center"},BU={key:0,class:"w-full"},AU={class:"w-full h-full flex items-center"},IU={class:"max-w-full overflow-ellipsis overflow-hidden whitespace-nowrap text-sm"},LU={class:"flex-shrink-0 text-xs ml-1 mx-2 text-hy-main"},FU=e.defineComponent({__name:"user-tree",props:{itemType:{},itemSelectParam:{},height:{},itemSize:{default:36},dataList:{},defaultCheckedList:{default:()=>[]},highlightSelected:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},parentCheckbox:{type:Boolean,default:!0},showRadio:{type:Boolean,default:!1},showRadioButton:{type:Boolean,default:!0},showCheckboxButton:{type:Boolean,default:!0},fuzzySearch:{type:Boolean,default:!0},getData:{type:Function,default:Function},hideOrgNoData:{type:Boolean,default:!1},defaultGetData:{type:Boolean,default:!1},disableDataList:{default:()=>[]}},emits:["onCurrentDepartment","onCurrent","onCurrentDelete","onSelectedData"],setup(t,{expose:n,emit:o}){const a=t,s=o,{currentDepartment:l,currentDevice:r,currentDeviceDelete:i,elementRef:c,selectedData:p,treeComponentHeight:d,treeComponentRef:f,viewDepartmentList:m,watchTreeComponentHeight:_,setChecked:y,setCheckedKeys:u,setSelectedList:N,selectFilterList:k,selectFilterType:w,getInputPlaceholder:b,setViewDepartmentList:S,checkContentSlotsType:V,otherContentSlotsType:$}=xn({emit:s,props:a}),{getData:h,query:g,selectChange:C}=bU({emit:s,props:a,params:{selectFilterType:w,setViewDepartmentList:S}});return n({setCheckedKeys:u,setSelectedList:N,setChecked:y,getData:h}),e.onMounted(()=>{_(),a.fuzzySearch?(k.value=[{label:x("department"),value:null,placeholder:"人员名称,部门名称筛选"}],w.value=null):(k.value=[{label:x("department"),value:1,placeholder:x("filterByDepartmentName")}],a.hideDevice||k.value.push({label:"人员",value:5,placeholder:x("filterByPersonnelName")}),w.value=k.value[0].value),a.defaultGetData||h()}),(E,D)=>{const T=e.resolveComponent("el-option"),B=e.resolveComponent("el-select"),L=e.resolveComponent("svg-icon"),j=e.resolveComponent("el-button"),F=e.resolveComponent("el-input"),M=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",CU,[e.createElementVNode("div",wU,[e.createVNode(F,{modelValue:e.unref(g),"onUpdate:modelValue":D[1]||(D[1]=z=>e.isRef(g)?g.value=z:null),placeholder:e.unref(b),class:"my-2",clearable:"",size:"small",onClear:e.unref(h),onKeyup:e.withKeys(e.unref(h),["enter"])},e.createSlots({append:e.withCtx(()=>[e.createElementVNode("div",SU,[e.createVNode(j,{class:"!m-0 h-[28px] w-[36px] !p-[6px_0px]",onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(L,{name:"base-search",width:"14",height:"14"})]),_:1},8,["onClick"])])]),_:2},[a.fuzzySearch?void 0:{name:"prepend",fn:e.withCtx(()=>[e.createElementVNode("div",EU,[e.createVNode(B,{modelValue:e.unref(w),"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(w)?w.value=z:null),class:"!m-0",size:"small",onChange:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(z,U)=>(e.openBlock(),e.createBlock(T,{key:`${U}_selectFilterList`,label:z.label,value:z.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),key:"0"}]),1032,["modelValue","placeholder","onClear","onKeyup"])]),e.renderSlot(E.$slots,"below-the-input"),e.createElementVNode("div",{ref_key:"elementRef",ref:c,class:"w-full flex-grow h-0 box-border"},[e.createVNode(yn,{ref_key:"treeComponentRef",ref:f,"item-type":5,"highlight-selected":a.highlightSelected,"item-size":a.itemSize,"data-list":e.unref(m),height:e.unref(d),"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"parent-checkbox":a.parentCheckbox,"show-radio":a.showRadio,"show-radio-button":a.showRadioButton,"show-checkbox-button":a.showCheckboxButton,"default-checked-list":a.defaultCheckedList,onOnCurrentDepartment:e.unref(l),onOnCurrent:e.unref(r),onOnCurrentDelete:e.unref(i),onOnSelectedData:e.unref(p)},{"check-content":e.withCtx(({row:z})=>[e.renderSlot(E.$slots,"check-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref(V)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",TU,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.name},{default:e.withCtx(()=>[e.createElementVNode("div",DU,[e.createVNode(L,{name:"icon-user",class:"!w-[14px] !h-[14px]"}),e.createElementVNode("div",VU,[e.createElementVNode("span",null,e.toDisplayString(z.name),1)])])]),_:2},1032,["content"]),z.todayFile?(e.openBlock(),e.createBlock(M,{key:0,class:"item","show-after":1e3,content:e.unref(x)("addedIntercomRecordsToday"),effect:"dark",placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",$U,[e.createVNode(L,{name:"media-center-2-intercom-2",class:"!w-[18px] !h-[18px]"})])]),_:1},8,["content"])):e.createCommentVNode("",!0)]))]),"other-content":e.withCtx(({row:z})=>[e.renderSlot(E.$slots,"other-content",e.normalizeProps(e.guardReactiveProps({row:z}))),e.unref($)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",BU,[e.createVNode(M,{"show-after":1e3,class:"item",effect:"dark",placement:"bottom",content:z.companyName||z.orgName},{default:e.withCtx(()=>[e.createElementVNode("div",AU,[e.createElementVNode("div",IU,[e.createElementVNode("span",null,e.toDisplayString(z.companyName||z.orgName),1)]),e.createElementVNode("span",LU,"("+e.toDisplayString(z.childrenDeviceList.length||0)+")",1)])]),_:2},1032,["content"])]))]),_:3},8,["highlight-selected","item-size","data-list","height","check-strictly","show-checkbox","parent-checkbox","show-radio","show-radio-button","show-checkbox-button","default-checked-list","onOnCurrentDepartment","onOnCurrent","onOnCurrentDelete","onOnSelectedData"])],512)])}}});var Hr=(t=>(t[t.LAW_ENFORCEMENT_RECORDER=1]="LAW_ENFORCEMENT_RECORDER",t[t.WALKIE_TALKIE=2]="WALKIE_TALKIE",t[t.FIRE_DISPATCH_DESK=3]="FIRE_DISPATCH_DESK",t[t.FIRE_DUTY_DESK=4]="FIRE_DUTY_DESK",t[t.PHONE_APP=5]="PHONE_APP",t[t.CONTROL_THE_BALL=6]="CONTROL_THE_BALL",t[t.IPC_CAMERA=7]="IPC_CAMERA",t[t.HELMET=8]="HELMET",t[t.FLASHLIGHT=9]="FLASHLIGHT",t[t.WORK_LICENSE=10]="WORK_LICENSE",t[t.DRONE=11]="DRONE",t[t.CAR_PTZ=12]="CAR_PTZ",t[t.CASCADE_DEVICE_DOWN=13]="CASCADE_DEVICE_DOWN",t[t.JT808=14]="JT808",t[t.NATIONAL_STANDARD_RECORDER=15]="NATIONAL_STANDARD_RECORDER",t[t.RTOS_DEVICE=16]="RTOS_DEVICE",t[t.WATCH=17]="WATCH",t))(Hr||{});ae.DeviceEnum=Hr,ae.HyAbnormalDetail=CI,ae.HyAcquisitionStationTree=rU,ae.HyAddDepartmentType=Eg,ae.HyAudioPlayer=wr,ae.HyBoxBorder=$e,ae.HyCommonTaskDetailModal=hO,ae.HyDataTimeShortcuts=Xm,ae.HyDeviceDetails=i1,ae.HyDeviceTree=jr,ae.HyDeviceTreeCpns=fa,ae.HyEditSpotCheck=h6,ae.HyElectronicFence=WN,ae.HyElectronicPatrolDetail=Br,ae.HyFileDetails=hS,ae.HyFileUpload=mT,ae.HyImageViewer=jo,ae.HyMapNoPermissions=Gt,ae.HyMapSearchPlace=oa,ae.HyMenuComponents=p_,ae.HyNoData=h_,ae.HyOrgCascader=Vl,ae.HyOrgGroupTree=NU,ae.HyOrgTree=Wr,ae.HyRoundButton=Me,ae.HySelect=Mu,ae.HySelectMapLocation=yT,ae.HySpotCheckDetail=q5,ae.HySvgIcon=$l,ae.HyTable=Yt,ae.HyTableHead=L_,ae.HyTipsModal=ft,ae.HyUserHead=xt,ae.HyUserTree=FU,ae.HyVideoPlayer=aa,ae.HyVueCropper=Il,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})});