import{a5 as C,bL as P,b as g,r as m,o as s,y as f,q as A,c as S,F as W,A as D,n as o,ab as E,t as k,s as w,D as x}from"./index.8d733f79.js";import{E as $,a as B}from"./el-tab-pane.27bff4fc.js";import L from"./trendAnalysis.ca75b1b0.js";import M from"./trendWaveSpectrum.aa3ebf01.js";import R from"./envelopeAnalysis.03f59002.js";import V from"./envelopeDemodulate.a1c94995.js";import O from"./waterfallPlot.5a844b96.js";import F from"./domainMultiTrend.c4a59f6f.js";import N from"./orderAnalysis.aac19ad2.js";import j from"./crossPhase.759c6bec.js";import q from"./cepstrum.0505dec6.js";import H from"./multiWaveform.77669c37.js";import U from"./multiSpectrum.d94d22f6.js";import z from"./trendWaveSpectrumAudio.c837a0fe.js";import"./snapshot.c42a7ddb.js";import"./exporting.83037eec.js";import"./annotations.d7724f2a.js";import"./xlsx.030dfc28.js";import"./faultType.8bb3732b.js";import"./deviceAnalysis.ce7ce4e7.js";import"./common.d6f7c05a.js";import"./timePicker.140359bf.js";import"./el-date-picker-panel.089dbe6d.js";import"./panel-time-pick.b2dd8e75.js";import"./index.28f6da25.js";import"./boost.ce41cdde.js";import"./addMarker.dcd7eb99.js";import"./peakSpectralLine.0c14ecfb.js";import"./domainIndicator.0f0d3f21.js";import"./setFreqNum.0945eb14.js";import"./el-input-number.60463ef8.js";import"./faultLib.09636fba.js";import"./bearingLib.05230f01.js";import"./filterWave.e3fbfb2d.js";const G=C({name:"TabContent"}),Ee=Object.assign(G,{setup(J,{expose:b}){P.setOptions({lang:{noData:""}});const{proxy:c}=x(),{t}=g(),r=m(""),h=m(),v=m();let l={};const n=m([]),y={trendAnalysis:L,trendWaveSpectrum:M,envelopeAnalysis:R,envelopeDemodulate:V,waterfallPlot:O,domainMultiTrend:F,orderAnalysis:N,crossPhase:j,cepstrum:q,multiWaveform:H,multiSpectrum:U,trendWaveSpectrumAudio:z},_=[{name:t("trendAnalysis"),hasAuth:!0,identifier:"trendAnalysis"},{name:t("trendWaveSpectrum"),hasAuth:!0,identifier:"trendWaveSpectrum"},{name:t("envelopeAnalysis"),hasAuth:!0,identifier:"envelopeAnalysis"},{name:t("envelopeDemodulate"),hasAuth:!0,identifier:"envelopeDemodulate"},{name:t("waterfallPlot"),hasAuth:!0,identifier:"waterfallPlot"},{name:t("multiWaveform"),hasAuth:!0,identifier:"multiWaveform"},{name:t("multiSpectrum"),hasAuth:!0,identifier:"multiSpectrum"},{name:t("domainMultiTrend"),hasAuth:!0,identifier:"domainMultiTrend"},{name:t("cepstrum"),hasAuth:!0,identifier:"cepstrum"},{name:t("orderAnalysis"),hasAuth:!0,identifier:"orderAnalysis"},{name:t("crossPhase"),hasAuth:!0,identifier:"crossPhase"},{name:t("trendWaveSpectrumAudio"),hasAuth:!0,identifier:"trendWaveSpectrumAudio"}];let u;function T(a,i,d){h.value=a.pointId,v.value=a.deviceId,l=a,n.value=[],_.forEach(e=>{i.indexOf(e.identifier)!==-1&&n.value.push(e)}),n.value.some(e=>e.identifier===r.value)||(r.value=n.value[0].identifier),u=d;const p=u.find(e=>e.tabIdentifier===r.value);setTimeout(()=>{c.$refs[`${r.value}Ref`][0].loadChart(l,p)},0)}const I=()=>{const a=u.find(i=>i.tabIdentifier===r.value);setTimeout(()=>{c.$refs[`${r.value}Ref`][0].loadChart(l,a)},0),document.getElementById(`tab-${r.value}`).blur()};return b({initData:T}),(a,i)=>{const d=$,p=B;return s(),f(p,{style:{height:"100%"},modelValue:o(r),"onUpdate:modelValue":i[0]||(i[0]=e=>w(r)?r.value=e:null),type:"card",class:"cardLineTab",onTabChange:I},{default:A(()=>[(s(!0),S(W,null,D(o(n),e=>(s(),f(d,{key:e.identifier,label:e.name,name:e.identifier,style:{width:"100%"}},{default:A(()=>[o(r)===e.identifier?(s(),f(E(y[e.identifier]),{key:0,ref_for:!0,ref:e.identifier+"Ref",pointId:o(h),deviceId:o(v)},null,8,["pointId","deviceId"])):k("",!0)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])}}});export{Ee as default};
