UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 20.4 kB
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.13.4"}}catch(e){}}(),System.register(["./chunk-legacy-TXBRODOR.js","./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./_MapCache-legacy-DwgdC8YO.js","./src-legacy-Dwzr7bD0.js","./_plugin-vue_export-helper-legacy-DEZAmQqp.js","./sanitize-html-legacy-ChR3ikxn.js","./date-picker-legacy-uAA3gY1d.js","./users.store-legacy-OKuN0qAC.js","./constants-legacy-DNCca_FT.js","./merge-legacy-uu1aGqHK.js","./_baseOrderBy-legacy-PsQY_Pvh.js","./dateformat-legacy-BxdD_OP7.js","./useDebounce-legacy-CT3oYGrC.js","./versions.store-legacy-BoVYiMEK.js","./usePageRedirectionHelper-legacy-dYzA8Va8.js","./executions.store-legacy-z6ytCHo9.js","./ProjectIcon-legacy-Bou4IyeB.js","./dateFormatter-legacy-CmupnmDm.js","./useExecutionHelpers-legacy-L8nz8vaT.js","./folders.store-legacy-D5PytSyG.js","./TagsDropdown-legacy-gwnXmOWc.js","./WorkflowTagsDropdown-legacy-CBAdc9l0.js","./insights.store-legacy-CoDyKxkz.js","./insights.constants-legacy-CEIQi13p.js","./insights.utils-legacy-uA0D6qm5.js","./readyToRun.store-legacy-DjI3ii4i.js","./AnimatedSpinner-legacy-DJhh4l70.js","./ProjectHeader-legacy-CpoNRlY6.js","./InsightsSummary-legacy-BlZQZv-w.js","./SelectedItemsInfo-legacy-Ds5Okbf7.js","./AnnotationTagsDropdown.ee-legacy-D4sPlYie.js","./ExecutionsTime-legacy-CAfxGDXd.js"],(function(e,t){var n,o,s,a,i,l,c,u,r,d,x,y,f,g,p,m,w,b,h,v,k,T,_,L,E,j,C,I,D,S,A,M,$,B,R,W,N,U,H,O,F,P,V,G,z,Z,Q,X,q,J,K,Y,ee,te,ne,oe,se,ae,ie,le,ce,ue,re,de,xe,ye,fe,ge,pe,me,we,be,he,ve,ke,Te,_e,Le,Ee,je,Ce,Ie,De,Se,Ae,Me,$e,Be;return{setters:[function(e){e.o},function(e){n=e.$,o=e.A,s=e.C,a=e.E,i=e.Ft,l=e.K,c=e.N,u=e.S,r=e.Sn,d=e.T,x=e.Wt,y=e.X,f=e._,g=e._n,p=e.at,m=e.c,w=e.gt,b=e.h,h=e.it,v=e.j,k=e.pt,T=e.q,_=e.rt,L=e.w,E=e.yt},function(e){j=e.bt,C=e.j,I=e.xt},function(e){D=e.$i,S=e.Gt,A=e.Ii,M=e.Mi,$=e.Qi,B=e.Qt,R=e.Xt,W=e.Zi,N=e.Zt,U=e.gt,H=e.lt,O=e.wt,F=e.yt},function(e){P=e.t},function(e){},function(e){},function(e){V=e.As,G=e.Dr,z=e.Gr,Z=e.Tr,Q=e._,X=e.en,q=e.jr,J=e.s,K=e.vn},function(e){e.Ps,Y=e.Vo,ee=e.is,te=e.ms,ne=e.pl},function(e){},function(e){oe=e.N},function(e){},function(e){},function(e){},function(e){se=e.t},function(e){ae=e.t},function(e){},function(e){ie=e.t},function(e){le=e.t},function(e){},function(e){},function(e){},function(e){ce=e.t},function(e){},function(e){},function(e){ue=e.r},function(e){re=e.t},function(e){de=e.t},function(e){xe=e.t},function(e){ye=e.t},function(e){},function(e){fe=e.i,ge=e.n,pe=e.r,me=e.t}],execute:function(){(we=document.createElement("style")).textContent="._link_1g7mx_125{margin-top:var(--spacing--xs);display:inline-block}tr._dangerBg_11wla_125{background-color:rgba(215,56,58,.1)}._workflowName_11wla_129{text-overflow:ellipsis;max-width:100%;color:var(--color--text--shade-1);line-height:1.2;font-size:var(--font-size--sm);line-height:var(--line-height--lg);max-width:450px;display:inline-block;overflow:hidden}._execListWrapper_5gyes_125{padding:var(--spacing--lg)var(--spacing--2xl);width:100%;max-width:var(--content-container--width);flex-direction:column;display:flex;overflow:hidden}._execList_5gyes_125{flex-shrink:1;max-height:100%;overflow:auto}._execListHeaderControls_5gyes_140{margin-bottom:var(--spacing--sm);justify-content:flex-start;align-items:center;display:flex}._execTable_5gyes_147{flex:0 auto;height:100%}._execHeaderRight_5gyes_152{align-items:center;gap:var(--spacing--sm);margin-left:auto;display:flex}\n/*$vite$:1*/",document.head.appendChild(we);try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(Re=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[Re]="0caf86b0-ecf0-4af9-bc34-06bc20803245",t._sentryDebugIdIdentifier="sentry-dbid-0caf86b0-ecf0-4af9-bc34-06bc20803245")}catch(t){}var t,Re;be=c({__name:"GlobalExecutionsListItemQueuedTooltip",props:{status:{},concurrencyCap:{},isCloudDeployment:{type:Boolean}},emits:["goToUpgrade"],setup(e,{emit:t}){const s=e,a=t,i=j();return(e,t)=>(n(),L(x(M),{placement:"top"},{content:E((()=>["waiting"===s.status?(n(),L(x(I),{key:0,keypath:"executionsList.statusTooltipText.theWorkflowIsWaitingIndefinitely",scope:"global"})):d("",!0),"new"===s.status?(n(),L(x(I),{key:1,keypath:"executionsList.statusTooltipText.waitingForConcurrencyCapacity",scope:"global"},{instance:E((()=>[s.isCloudDeployment?(n(),L(x(I),{key:0,keypath:"executionsList.statusTooltipText.waitingForConcurrencyCapacity.cloud",scope:"global"},{concurrencyCap:E((()=>[o(r(s.concurrencyCap),1)])),link:E((()=>[v(x(H),{bold:"",size:"small",class:g(e.$style.link),onClick:t[0]||(t[0]=e=>a("goToUpgrade"))},{default:E((()=>[o(r(x(i).baseText("generic.upgradeNow")),1)])),_:1},8,["class"])])),_:1})):(n(),L(x(I),{key:1,keypath:"executionsList.statusTooltipText.waitingForConcurrencyCapacity.self",scope:"global"},{concurrencyCap:E((()=>[o(r(s.concurrencyCap),1)])),link:E((()=>[v(x(H),{class:g(e.$style.link),href:x(i).baseText("executions.concurrency.docsLink"),target:"_blank"},{default:E((()=>[o(r(x(i).baseText("generic.viewDocs")),1)])),_:1},8,["class","href"])])),_:1}))])),_:1})):d("",!0)])),default:E((()=>[h(e.$slots,"default")])),_:3}))}}),he=P(be,[["__cssModules",{$style:{link:"_link_1g7mx_125"}}]]),ve={"data-test-id":"execution-status"},ke={"data-test-id":"execution-time"},Te={key:0},_e={key:1},Le={key:2},Ee=c({__name:"GlobalExecutionsListItem",props:{execution:{},selected:{type:Boolean,default:!1},workflowName:{default:""},workflowPermissions:{},concurrencyCap:{},isCloudDeployment:{type:Boolean}},emits:["stop","select","retrySaved","retryOriginal","delete","goToUpgrade"],setup(e,{emit:t}){const l=t,c=e,y=m(),w=j(),h=le(),k=i(!1),T=u((()=>"running"===c.execution.status)),_=u((()=>!!c.execution.waitTill&&new Date(c.execution.waitTill).getTime()===Y.getTime())),C=u((()=>h.isExecutionRetriable(c.execution))),I="crashed",S="error",U="waiting",H="new",O="running",P={[I]:{icon:"status-error",color:"danger"},[S]:{icon:"status-error",color:"danger"},[U]:{icon:"status-waiting",color:"secondary"},success:{icon:"status-completed",color:"success"},[H]:{icon:"status-new",color:"foreground-xdark"},[O]:{icon:"spinner",color:"secondary"},unknown:{icon:"status-unknown",color:"foreground-xdark"},canceled:{icon:"status-canceled",color:"foreground-xdark"}},V=[S,I],G=u((()=>({[y.dangerBg]:V.includes(c.execution.status)}))),z=u((()=>c.execution.startedAt?q(c.execution.startedAt):w.baseText("executionsList.startingSoon"))),Z=u((()=>c.execution.waitTill?q(c.execution.waitTill):"")),Q=u((()=>c.execution.stoppedAt?w.displayTimer(new Date(c.execution.stoppedAt).getTime()-new Date(c.execution.startedAt??c.execution.createdAt).getTime(),!0):"")),X=u((()=>{return{...P[c.execution.status],label:(e=c.execution.status,e===I?w.baseText("executionsList.error"):w.baseText(`executionsList.${e}`))};var e}));function q(e){const{date:t,time:n}=ie(e);return w.baseText("executionsList.started",{interpolate:{time:n,date:t}})}function J(){k.value=!0,l("stop",c.execution)}function K(){l("select",c.execution)}async function ee(e){l(e,c.execution)}return(t,i)=>{const u=p("RouterLink");return n(),a("tr",{class:g(G.value)},[s("td",null,[v(x(F),{"model-value":e.selected,"data-test-id":"select-execution-checkbox",disabled:!Boolean(e.execution.id&&e.execution.stoppedAt),class:"mb-0",style:{marginTop:"-3px"},"onUpdate:modelValue":K},null,8,["model-value","disabled"])]),s("td",null,[v(x(M),{content:e.execution.workflowName||e.workflowName,placement:"top"},{default:E((()=>[v(u,{to:{name:x(te).EXECUTION_PREVIEW,params:{name:e.execution.workflowId,executionId:e.execution.id}},class:g(t.$style.workflowName),target:"_blank"},{default:E((()=>[o(r(e.execution.workflowName||e.workflowName),1)])),_:1},8,["to","class"])])),_:1},8,["content"])]),s("td",ve,[_.value||e.execution.status===H?(n(),L(he,{key:0,status:c.execution.status,"concurrency-cap":c.concurrencyCap,"is-cloud-deployment":c.isCloudDeployment,onGoToUpgrade:i[0]||(i[0]=e=>l("goToUpgrade"))},{default:E((()=>[s("div",null,[v(x(D),{icon:X.value.icon,color:X.value.color,class:"mr-2xs"},null,8,["icon","color"]),o(" "+r(X.value.label),1)])])),_:1},8,["status","concurrency-cap","is-cloud-deployment"])):(n(),L(x(M),{key:1,disabled:e.execution.status!==U,content:x(w).baseText("executionsList.statusWaiting",{interpolate:{status:e.execution.status,time:Z.value}})},{default:E((()=>[s("div",null,[e.execution.status===O?(n(),L(x(W),{key:0,color:"secondary",class:"mr-2xs"},{default:E((()=>[v(re)])),_:1})):(n(),L(x(D),{key:1,size:"medium",icon:X.value.icon,color:X.value.color,class:"mr-2xs"},null,8,["icon","color"])),o(" "+r(X.value.label),1)])])),_:1},8,["disabled","content"]))]),s("td",null,r(z.value),1),s("td",ke,[Q.value?(n(),a(f,{key:0},[o(r(Q.value),1)],64)):(n(),L(me,{key:1,"start-time":e.execution.startedAt??e.execution.createdAt},null,8,["start-time"]))]),s("td",null,[e.execution.id?(n(),a("span",Te,r(e.execution.id),1)):d("",!0),e.execution.retryOf?(n(),a("span",_e,[i[1]||(i[1]=s("br",null,null,-1)),s("small",null," ("+r(x(w).baseText("executionsList.retryOf"))+" "+r(e.execution.retryOf)+") ",1)])):e.execution.retrySuccessId?(n(),a("span",Le,[i[2]||(i[2]=s("br",null,null,-1)),s("small",null," ("+r(x(w).baseText("executionsList.successRetry"))+" "+r(e.execution.retrySuccessId)+") ",1)])):d("",!0)]),s("td",null,["manual"===e.execution.mode?(n(),L(x(M),{key:0,content:"Manual Execution",placement:"top"},{default:E((()=>[v(x(D),{icon:"flask-conical"})])),_:1})):"chat"===e.execution.mode?(n(),L(x(M),{key:1,content:"Chat Execution",placement:"top"},{default:E((()=>[v(x(D),{icon:"messages-square"})])),_:1})):d("",!0)]),s("td",null,[!e.execution.stoppedAt||e.execution.waitTill?(n(),L(x($),{key:0,variant:"ghost","data-test-id":"stop-execution-button",loading:k.value,disabled:k.value,onClick:b(J,["stop"])},{default:E((()=>[o(r(x(w).baseText("executionsList.stop")),1)])),_:1},8,["loading","disabled"])):d("",!0)]),s("td",null,[T.value?d("",!0):(n(),L(x(R),{key:0,trigger:"click",onCommand:ee},{dropdown:E((()=>[v(x(B),{class:g({[t.$style.actions]:!0,[t.$style.deleteOnly]:!C.value})},{default:E((()=>[C.value?(n(),L(x(N),{key:0,"data-test-id":"execution-retry-saved-dropdown-item",class:g(t.$style.retryAction),command:"retrySaved",disabled:!e.workflowPermissions.execute},{default:E((()=>[o(r(x(w).baseText("executionsList.retryWithCurrentlySavedWorkflow")),1)])),_:1},8,["class","disabled"])):d("",!0),C.value?(n(),L(x(N),{key:1,"data-test-id":"execution-retry-original-dropdown-item",class:g(t.$style.retryAction),command:"retryOriginal",disabled:!e.workflowPermissions.execute},{default:E((()=>[o(r(x(w).baseText("executionsList.retryWithOriginalWorkflow")),1)])),_:1},8,["class","disabled"])):d("",!0),v(x(N),{"data-test-id":"execution-delete-dropdown-item",class:g(t.$style.deleteAction),command:"delete",disabled:!e.workflowPermissions.update},{default:E((()=>[o(r(x(w).baseText("generic.delete")),1)])),_:1},8,["class","disabled"])])),_:1},8,["class"])])),default:E((()=>[v(x(A),{variant:"subtle",icon:"ellipsis-vertical"})])),_:1}))])],2)}}}),je=P(Ee,[["__cssModules",{$style:{dangerBg:"_dangerBg_11wla_125",workflowName:"_workflowName_11wla_129"}}]]),Ce={key:0},Ie={style:{width:"50px"}},De={colspan:"8"},Se={style:{width:"50px"}},Ae={colspan:"9",style:{"text-align":"center"}},Me={key:0,"data-test-id":"execution-list-empty"},$e=c({__name:"GlobalExecutionsList",props:{executions:{},filters:{},total:{default:0},concurrentTotal:{default:0},estimated:{type:Boolean,default:!1}},emits:["update:filters","execution:stop"],setup(e,{emit:t}){const l=e,c=t,y=j(),p=X(),m=J(),b=z(),T=ae(),I=V(),D=se(),A=i(!1),M=i(!1),B=i({}),R=q(),W=Z(),N=u((()=>M.value?l.total:Object.keys(B.value).length)),U=u((()=>[{id:"all",name:y.baseText("executionsList.allWorkflows")},...b.allWorkflows])),H=u((()=>I.isEnterpriseFeatureEnabled[ne.AdvancedExecutionFilters])),P=u((()=>I.isConcurrencyEnabled&&!I.isQueueModeEnabled));function G(){M.value=!M.value,A.value=!M.value,K()}function K(){A.value=!A.value,A.value?re():(M.value=!1,B.value={})}function Y(e){const t=e.id;if(B.value[t]){const{[t]:e,...n}=B.value;B.value=n}else B.value={...B.value,[t]:!0};A.value=Object.keys(B.value).length===l.executions.length,M.value=Object.keys(B.value).length===l.total}async function te(){const e=[H.value&&y.baseText("executionsList.confirmMessage.annotationsNote"),y.baseText("executionsList.confirmMessage.message",{interpolate:{count:N.value.toString()}})].filter(Boolean).join(" ");if("confirm"===await R.confirm(e,y.baseText("executionsList.confirmMessage.headline"),{type:"warning",confirmButtonText:y.baseText("executionsList.confirmMessage.confirmButtonText"),cancelButtonText:y.baseText("executionsList.confirmMessage.cancelButtonText")})){try{await T.deleteExecutions({filters:T.executionsFilters,...M.value?{deleteBefore:new Date}:{ids:Object.keys(B.value)}})}catch(t){return void W.showError(t,y.baseText("executionsList.showError.handleDeleteSelected.title"))}W.showMessage({title:y.baseText("executionsList.showMessage.handleDeleteSelected.title"),type:"success"}),oe()}}function oe(){A.value=!1,M.value=!1,B.value={}}async function ie(e){c("update:filters",e),oe()}function le(e){return t=e.workflowId??"",U.value.find((e=>e.id===t))?.name??y.baseText("executionsList.unsavedWorkflow");var t}function ce(e){return ee(e.scopes).workflow}async function ue(){if("running"===T.filters.status)return;const e=l.executions.at(-1);try{await T.fetchExecutions(T.executionsFilters,e?.id)}catch(t){W.showError(t,y.baseText("executionsList.showError.loadMore.title"))}}function re(){l.executions.forEach((e=>{B.value[e.id]=!0}))}async function de(e){await me(e,!0)}async function xe(e){await me(e,!1)}async function me(e,t){try{const n=Q((await T.retryExecution(e.id,t)).status);n&&W.showMessage(n)}catch(n){W.showError(n,y.baseText("executionsList.showError.retryExecution.title"))}p.track("User clicked retry execution button",{workflow_id:m.workflowId,execution_id:e.id,retry_type:t?"current":"original"})}async function we(e){try{await T.stopCurrentExecution(e.id),W.showMessage({title:y.baseText("executionsList.showMessage.stopExecution.title"),message:y.baseText("executionsList.showMessage.stopExecution.message",{interpolate:{activeExecutionId:e.id}}),type:"success"}),c("execution:stop")}catch(t){W.showError(t,y.baseText("executionsList.showError.stopExecution.title"))}}async function be(e){if(!e.annotation||!(e.annotation.vote||e.annotation.tags.length>0)||"confirm"===await R.confirm(y.baseText("executionsList.confirmMessage.annotatedExecutionMessage"),y.baseText("executionDetails.confirmMessage.headline"),{type:"warning",confirmButtonText:y.baseText("executionDetails.confirmMessage.confirmButtonText"),cancelButtonText:""}))try{if(await T.deleteExecutions({ids:[e.id]}),A.value){const{[e.id]:t,...n}=B.value;B.value=n}}catch(t){W.showError(t,y.baseText("executionsList.showError.handleDeleteSelected.title"))}}async function he(e){e?await T.startAutoRefreshInterval():T.stopAutoRefreshInterval()}w((()=>l.executions),(()=>{0===l.executions.length&&oe(),M.value&&(A.value=!0,re())})),C(k("loadMoreButton"),(([e])=>{e?.isIntersecting&&ue()}));const ve=()=>{D.goToUpgrade("concurrency","upgrade-concurrency")};return(t,i)=>(n(),a("div",{class:g(t.$style.execListWrapper)},[h(t.$slots,"default"),s("div",{class:g(t.$style.execListHeaderControls)},[P.value?(n(),L(fe,{key:0,"running-executions-count":e.concurrentTotal,"concurrency-cap":x(I).concurrency,"is-cloud-deployment":x(I).isCloudDeployment,onGoToUpgrade:ve},null,8,["running-executions-count","concurrency-cap","is-cloud-deployment"])):(n(),L(x(F),{key:1,modelValue:x(T).autoRefresh,"onUpdate:modelValue":[i[0]||(i[0]=e=>x(T).autoRefresh=e),he],"data-test-id":"execution-auto-refresh-checkbox",label:x(y).baseText("executionsList.autoRefresh")},null,8,["modelValue","label"])),s("div",{class:g(t.$style.execHeaderRight)},[v(ge,{executions:l.executions},null,8,["executions"]),v(pe,{workflows:U.value,class:"execFilter",onFilterChanged:ie},null,8,["workflows"])],2)],2),s("div",{class:g(t.$style.execList)},[s("div",{class:g(t.$style.execTable)},[v(x(O),null,{default:E((()=>[s("thead",null,[A.value&&e.total>0?(n(),a("tr",Ce,[s("th",Ie,[v(x(F),{"model-value":M.value,"data-test-id":"select-all-executions-checkbox",class:"mb-0","onUpdate:modelValue":G},null,8,["model-value"])]),s("th",De,r(x(y).baseText("executionsList.selectAll",{adjustToNumber:e.total,interpolate:{count:`${e.total}`}})),1)])):d("",!0),s("tr",null,[s("th",Se,[v(x(F),{"model-value":A.value,disabled:e.total<1,"data-test-id":"select-visible-executions-checkbox",class:"mb-0","onUpdate:modelValue":K},null,8,["model-value","disabled"])]),s("th",null,r(x(y).baseText("generic.workflow")),1),s("th",null,r(x(y).baseText("executionsList.status")),1),s("th",null,r(x(y).baseText("executionsList.startedAt")),1),s("th",null,r(x(y).baseText("executionsList.runTime")),1),s("th",null,r(x(y).baseText("executionsList.id")),1),i[2]||(i[2]=s("th",null,null,-1)),i[3]||(i[3]=s("th",{style:{width:"69px"}},null,-1)),i[4]||(i[4]=s("th",{style:{width:"50px"}},null,-1))])]),s("tbody",null,[(n(!0),a(f,null,_(e.executions,(e=>(n(),L(je,{key:e.id,execution:e,"workflow-name":le(e),"workflow-permissions":ce(e),selected:B.value[e.id]||M.value,"concurrency-cap":x(I).concurrency,"is-cloud-deployment":x(I).isCloudDeployment,"data-test-id":"global-execution-list-item",onStop:we,onDelete:be,onSelect:Y,onRetrySaved:de,onRetryOriginal:xe,onGoToUpgrade:ve},null,8,["execution","workflow-name","workflow-permissions","selected","concurrency-cap","is-cloud-deployment"])))),128)),x(T).loading&&!e.executions.length?(n(!0),a(f,{key:0},_(x(T).itemsPerPage,(e=>(n(),a("tr",{key:e},[(n(),a(f,null,_(9,(e=>s("td",{key:e},[v(x(S))]))),64))])))),128)):d("",!0),s("tr",null,[s("td",Ae,[e.executions.length?e.total>e.executions.length||e.estimated?(n(),L(x($),{key:1,ref:"loadMoreButton",icon:"refresh-cw",title:x(y).baseText("executionsList.loadMore"),label:x(y).baseText("executionsList.loadMore"),loading:x(T).loading,"data-test-id":"load-more-button",onClick:i[1]||(i[1]=e=>ue())},null,8,["title","label","loading"])):(n(),a(f,{key:2},[o(r(x(y).baseText("executionsList.loadedAll")),1)],64)):(n(),a("span",Me,r(x(y).baseText("executionsList.empty")),1))])])])])),_:1})],2)],2),v(ye,{"selected-count":N.value,onDeleteSelected:te,onClearSelection:oe},null,8,["selected-count"])],2))}}),Be=P($e,[["__cssModules",{$style:{execListWrapper:"_execListWrapper_5gyes_125",execList:"_execList_5gyes_125",execListHeaderControls:"_execListHeaderControls_5gyes_140",execTable:"_execTable_5gyes_147",execHeaderRight:"_execHeaderRight_5gyes_152"}}]]),e("default",c({__name:"ExecutionsView",setup(e){const t=U(),o=j(),s=X(),a=G(),i=J(),c=z(),u=ae(),r=ce(),f=K(),g=Z(),p=ue(),{executionsCount:m,executionsCountEstimated:w,concurrentExecutionsCount:b,filters:h,allExecutions:k}=oe(u);function _(){"hidden"===document.visibilityState?u.stopAutoRefreshInterval():u.startAutoRefreshInterval()}async function C(e){u.reset(),u.setFilters(e),await u.initialize()}async function I(){await async function(){try{await u.fetchExecutions()}catch(e){g.showError(e,o.baseText("executionsList.showError.refreshData.title"))}}()}return l((async()=>{await async function(){try{await c.fetchAllWorkflows(t.params?.projectId)}catch(e){g.showError(e,o.baseText("executionsList.showError.loadWorkflows.title"))}}(),a.run("executionsList.openDialog"),s.track("User opened Executions log",{workflow_id:i.workflowId})})),y((async()=>{f.set(o.baseText("executionsList.workflowExecutions")),document.addEventListener("visibilitychange",_),await u.initialize()})),T((()=>{u.reset(),document.removeEventListener("visibilitychange",_)})),(e,t)=>(n(),L(Be,{executions:x(k),filters:x(h),total:x(m),"estimated-total":x(w),"concurrent-total":x(b),"onExecution:stop":I,"onUpdate:filters":C},{default:E((()=>[v(de,null,{default:E((()=>[x(p).isOverviewSubPage&&x(r).isSummaryEnabled?(n(),L(xe,{key:0,loading:x(r).weeklySummary.isLoading,summary:x(r).weeklySummary.state,"time-range":"week"},null,8,["loading","summary"])):d("",!0)])),_:1})])),_:1},8,["executions","filters","total","estimated-total","concurrent-total"]))}}))}}})); //# sourceMappingURL=ExecutionsView-legacy-DoL9MC98.js.map