n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 23.3 kB
JavaScript
!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(["./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","./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","./Draggable-legacy-1VY-jpKk.js","./TextWithHighlights-legacy-SPWDY5kZ.js","./useTelemetryContext-legacy-DP-NcoCt.js","./dateFormatter-legacy-CmupnmDm.js","./useExecutionHelpers-legacy-L8nz8vaT.js"],(function(e,a){var t,l,n,o,r,s,i,d,u,c,m,_,g,p,h,v,y,f,b,x,w,C,k,$,D,E,H,M,T,j,R,B,I,A,N,S,O,W,z,L,F,K,P,V,J,U,q,X,Y,G,Q,Z,ee,ae,te,le,ne,oe,re,se,ie;return{setters:[function(e){t=e.$,l=e.A,n=e.C,o=e.E,r=e.Ft,s=e.N,i=e.S,d=e.Sn,u=e.T,c=e.Wt,m=e.X,_=e._,g=e._n,p=e.bt,h=e.gt,v=e.j,y=e.p,f=e.pt,b=e.rt,x=e.w,w=e.yn,C=e.yt},function(e){k=e.bt,$=e.xt},function(e){D=e.$i,E=e.Ii,H=e.Mi,M=e.N,T=e.tt},function(e){j=e.t},function(e){},function(e){R=e.Dr,B=e.Pr,I=e.Sa,A=e.Tr,N=e.en,S=e.ft,O=e.ia,W=e.r,z=e.rn,L=e.s,F=e.sn},function(e){K=e._s},function(e){},function(e){P=e.N},function(e){},function(e){},function(e){V=e.t},function(e){J=e.t},function(e){U=e.n,q=e.t},function(e){},function(e){X=e.t}],execute:function(){(Y=document.createElement("style")).textContent='._container_6ylyr_125{align-items:center;gap:var(--spacing--2xs);width:100%;min-width:150px;min-height:50px;padding-bottom:var(--spacing--4xs);padding-left:var(--spacing--4xs);border-radius:var(--radius);border-style:solid;border-width:1px;border-color:var(--color--foreground--shade-1);display:flex}._container_6ylyr_125:hover ._download_6ylyr_139{opacity:1}._wrapper_6ylyr_143{cursor:pointer;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex;position:relative;overflow:hidden}._iconWrapper_6ylyr_155{width:40px;height:40px;color:var(--color--text--shade-2);justify-content:center;align-items:center;display:flex;overflow:hidden}._imagePreview_6ylyr_165{object-fit:cover;border-radius:var(--radius);width:100%;height:100%}._info_6ylyr_172{justify-content:center;gap:var(--spacing--4xs);flex-direction:column;flex:1;min-width:0;line-height:1.2;display:flex}._filename_6ylyr_182{font-size:var(--font-size--2xs);color:var(--color--text--shade-1);font-weight:var(--font-weight--bold);text-overflow:ellipsis;white-space:nowrap;cursor:pointer;max-width:300px;overflow:hidden}._meta_6ylyr_193{font-size:var(--font-size--3xs);color:var(--color--text--shade-2);text-overflow:ellipsis;white-space:normal;overflow:hidden}._download_6ylyr_139{cursor:pointer;opacity:0;width:48px;height:48px;color:var(--color--text--base);background:0 0;border:none;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:all .2s ease-in-out;display:flex}._download_6ylyr_139:hover{color:var(--color--primary)}._dataDisplay_1ms2m_125{padding-left:var(--spacing--xs);word-break:normal;height:100%;padding-bottom:var(--spacing--3xl);line-height:1.5;position:absolute;top:0;left:0;right:0;overflow-y:auto}._dataDisplay_1ms2m_125._compact_1ms2m_137{padding-left:var(--spacing--2xs)}._table_1ms2m_141{border-collapse:separate;text-align:left;width:100%;font-size:var(--font-size--2xs);color:var(--color--text)}._table_1ms2m_141 th{background-color:var(--color--background);border-top:var(--border);border-bottom:var(--border);border-left:var(--border);color:var(--color--text--shade-1);z-index:1;position:sticky;top:0}._lightHeader_1ms2m_158 ._table_1ms2m_141 th{background-color:var(--color--background--light-2)}._table_1ms2m_141 th._tableRightMargin_1ms2m_161{background-color:transparent}._table_1ms2m_141 td{vertical-align:top;padding:var(--spacing--4xs)var(--spacing--3xs);border-bottom:var(--border);border-left:var(--border);overflow-wrap:break-word;white-space:pre-wrap;vertical-align:top}._table_1ms2m_141 td:first-child,._table_1ms2m_141 td:nth-last-child(2){z-index:0;position:relative}._table_1ms2m_141 td:first-child:after,._table_1ms2m_141 td:nth-last-child(2):after{content:"";width:2px;height:100%;position:absolute;top:0}._table_1ms2m_141 td:nth-last-child(2):after{right:-1px}._table_1ms2m_141 td:first-child:after{left:-1px}._table_1ms2m_141 th:last-child,._table_1ms2m_141 td:last-child{border-right:var(--border)}._hasCollapsingColumn_1ms2m_196 ._table_1ms2m_141{table-layout:fixed}._hasCollapsingColumn_1ms2m_196 ._table_1ms2m_141 td:not(._isCollapsingColumn_1ms2m_199){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._hasCollapsingColumn_1ms2m_196 ._table_1ms2m_141 td:not(._isCollapsingColumn_1ms2m_199) .n8n-tree{height:1.5em;overflow:hidden}th._isCollapsingColumn_1ms2m_199{border-top-color:var(--color--foreground--shade-2);border-left-color:var(--color--foreground--shade-2);border-right-color:var(--color--foreground--shade-2)}td._isCollapsingColumn_1ms2m_199{border-left-color:var(--color--foreground--shade-2);border-right-color:var(--color--foreground--shade-2)}tr:last-child td._isCollapsingColumn_1ms2m_199{border-bottom-color:var(--color--foreground--shade-2)}td._isCollapsingColumn_1ms2m_199+td,th._isCollapsingColumn_1ms2m_199+th{border-left-color:var(--color--foreground--shade-2)}._nodeClass_1ms2m_228{margin-bottom:var(--spacing--5xs)}._emptyCell_1ms2m_232{height:32px}._header_1ms2m_236{padding:var(--spacing--4xs)var(--spacing--3xs);align-items:center;display:flex}._header_1ms2m_236 span{white-space:nowrap;text-overflow:ellipsis;flex-grow:1;overflow:hidden}._draggableHeader_1ms2m_248:hover{cursor:grab;background-color:var(--color--foreground)}._draggableHeader_1ms2m_248:hover ._dragButton_1ms2m_252{opacity:1}._highlight_1ms2m_256 ._draggableHeader_1ms2m_248{color:var(--color--primary)}._draggingHeader_1ms2m_260{color:var(--color--primary);background-color:var(--color--primary--tint-2)}._activeHeader_1ms2m_265 ._dragButton_1ms2m_252{opacity:1}._dragButton_1ms2m_252{opacity:0}._dragButton_1ms2m_252>svg{vertical-align:middle}._dataKey_1ms2m_276{color:var(--color--text--shade-1);line-height:1.7;font-weight:var(--font-weight--bold);border-radius:var(--radius);padding:0 var(--spacing--5xs)0 var(--spacing--5xs);margin-right:var(--spacing--5xs)}._value_1ms2m_285{line-height:var(--line-height--md)}._nestedValue_1ms2m_289{margin-left:var(--spacing--4xs)}._mappable_1ms2m_294{cursor:grab}._empty_1ms2m_232{color:var(--color--danger);font-style:italic}._limitColWidth_1ms2m_303{max-width:300px}._minColWidth_1ms2m_307{min-width:240px}._hoveringKey_1ms2m_311{background-color:var(--color--foreground)}._draggingKey_1ms2m_315{background-color:var(--color--primary--tint-2)}._tableRightMargin_1ms2m_161{width:var(--ndv--spacing);border-top:none!important;border-bottom:none!important;border-right:none!important}._compact_1ms2m_137 ._tableRightMargin_1ms2m_161{min-width:var(--spacing--2xs);max-width:var(--spacing--2xs);padding:0}._hoveringRow_1ms2m_331 td:first-child:after,._hoveringRow_1ms2m_331 td:nth-last-child(2):after{background-color:var(--color--secondary)}._warningTooltip_1ms2m_336{color:var(--color--warning)}._executionLinkCell_1ms2m_340{padding:var(--spacing--3xs)!important}._executionLinkRowHeader_1ms2m_344{width:var(--spacing--md)}._collapseColumnButton_1ms2m_348{opacity:0;margin-block:calc(-2*var(--spacing--2xs))}._collapseColumnButton_1ms2m_348 span{flex-shrink:0}._isCollapsingColumn_1ms2m_199 ._collapseColumnButton_1ms2m_348,th._isHoveredColumn_1ms2m_355 ._collapseColumnButton_1ms2m_348,th:hover ._collapseColumnButton_1ms2m_348{opacity:1}\n/*$vite$:1*/',document.head.appendChild(Y);try{a="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(de=(new a.Error).stack)&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[de]="ef687a3f-f722-4470-970d-0158a3db3107",a._sentryDebugIdIdentifier="sentry-dbid-ef687a3f-f722-4470-970d-0158a3db3107")}catch(a){}var a,de;G=B(),Q=["src","alt"],Z=j(s({__name:"BinaryEntryDataTable",props:{value:{},depth:{}},setup(e){const a=e,l=L(),r=W(),s=k(),m=i((()=>{if(!p.value)return!1;const e=a.value.mimeType,t=Number(a.value.bytes);return(e?.startsWith("image/")??!1)&&void 0!==t&&t<1048576})),_=i((()=>{const{fileName:e,fileExtension:t}=a.value,l=e??"file";return l?.includes(".")?l:t?`${l}.${t}`:l})),p=i((()=>{const{id:e,mimeType:t}=a.value;return l.getBinaryUrl(e,"download",_.value,t??"")})),h=i((()=>{const{mimeType:e,fileSize:t}=a.value;return e+(t?`, ${t}`:"")})),y=async()=>{try{const e=await fetch(p.value);if(!e.ok)throw new Error("Error downloading file");(0,G.saveAs)(await e.blob(),_.value)}catch(e){A().showMessage({title:s.baseText("runData.downloadBinaryData.error.title"),message:s.baseText("runData.downloadBinaryData.error.message"),type:"error"})}},f=()=>{r.openModalWithData({name:K,data:{binaryData:a.value}})},b=i((()=>({marginLeft:a.depth?15*a.depth+"px":"0"}))),x=i((()=>a.value.mimeType?.startsWith("text/")?"file-text":"file"));return(e,a)=>(t(),o("div",{class:g(e.$style.container),style:w(b.value)},[n("div",{class:g(e.$style.wrapper),onClick:f},[m.value?(t(),o("img",{key:0,src:p.value,class:g(e.$style.imagePreview),alt:_.value||"Image preview"},null,10,Q)):(t(),o("div",{key:1,class:g(e.$style.iconWrapper)},[v(c(D),{icon:x.value,size:"xlarge"},null,8,["icon"])],2))],2),n("div",{class:g(e.$style.info)},[n("div",{class:g(e.$style.filename),onClick:f},d(_.value),3),h.value?(t(),o("div",{key:0,class:g(e.$style.meta)},d(h.value),3)):u("",!0)],2),n("button",{class:g(e.$style.download),onClick:y},[v(c(D),{icon:"download",size:"large"})],2)],6))}}),[["__cssModules",{$style:{container:"_container_6ylyr_125",download:"_download_6ylyr_139",wrapper:"_wrapper_6ylyr_143",iconWrapper:"_iconWrapper_6ylyr_155",imagePreview:"_imagePreview_6ylyr_165",info:"_info_6ylyr_172",filename:"_filename_6ylyr_182",meta:"_meta_6ylyr_193"}}]]),ee=["data-row"],ae=["data-row"],te={key:0},le=["width"],ne=["data-test-id"],oe=["data-row"],re=["data-row","data-col"],se={key:1},ie=s({__name:"RunDataTable",props:{node:{},inputData:{},distanceFromActive:{},pageOffset:{},runIndex:{default:0},outputIndex:{default:0},totalRuns:{default:0},mappingEnabled:{type:Boolean,default:!1},hasDefaultHoverState:{type:Boolean,default:!1},search:{default:""},headerBgColor:{default:"base"},compact:{type:Boolean,default:!1},disableHoverHighlight:{type:Boolean,default:!1},collapsingColumnName:{}},emits:["activeRowChanged","displayModeChange","mounted","collapsingColumnChanged"],setup(e,{emit:a}){const s=e,w=a,j=R(),B=f("tableRef"),A=r(-1),W=r(!1),K=r(!1),Y=r(null),G=r(null),Q=r(-1),ie=r(null),de=r(40),ue=r(!1),ce=r(),me=r(),_e=z(),ge=L(),pe=O(),he=k(),ve=N(),ye=q(),{trackOpeningRelatedExecution:fe,resolveRelatedExecutionUrl:be}=X(),{hoveringItem:xe,focusedMappableInput:we,highlightDraggables:Ce}=P(_e),ke=i((()=>_e.canDraggableDrop)),$e=i((()=>_e.draggableStickyPos)),De=i((()=>ge.workflowExecutionPairedItemMappings)),Ee=i((()=>function(e){const a=[],t=[];let l,n,o;const r={hasExecutionIds:!1,data:[]},s={};return e.forEach((e=>{if(!e.hasOwnProperty("json"))return;o=e.json,n=[];const i=Object.keys(o||{});i.length>40?(ue.value=!0,l=i.slice(0,40)):l=i,e.metadata?.subExecution?(r.data.push(e.metadata),r.hasExecutionIds=!0):r.data.push(void 0),t.forEach((e=>{o.hasOwnProperty(e)?(n.push(o[e]),l.splice(l.indexOf(e),1),s[e]=s[e]||"object"==typeof o[e]&&Object.keys(o[e]??{}).length>0||!1):n.push(void 0)})),l.forEach((e=>{t.push(e),n.push(o[e]),s[e]=s[e]||"object"==typeof o[e]&&Object.keys(o[e]??{}).length>0||!1})),a.push(n)})),a.forEach((e=>{t.length>e.length&&e.push(...new Array(t.length-e.length))})),{hasJson:s,columns:t,data:a,metadata:r}}(s.inputData))),He=i((()=>s.collapsingColumnName?Ee.value.columns.indexOf(s.collapsingColumnName):-1));function Me(e){if(s.disableHoverHighlight)return!1;if(e===ie.value)return!0;const a=s.pageOffset+e;if(0===a&&!xe.value&&s.hasDefaultHoverState&&1===s.distanceFromActive)return!0;const t=F(s.node?.name??"",s.runIndex||0,s.outputIndex||0,a);if(!xe.value||!De.value[t])return!1;const l=F(xe.value.nodeName,xe.value.runIndex,xe.value.outputIndex,xe.value.itemIndex);return De.value[t].has(l)}function Te(e){return e===ie.value||null===ie.value&&0===e}function je(e){const a=e.target,t=a.dataset.col,l=t?parseInt(t,10):NaN;if(isNaN(l)||(Q.value=l,a&&s.mappingEnabled&&(A.value=l)),a){const e=a.dataset.row;e&&!isNaN(parseInt(e,10))&&(ie.value=parseInt(e,10),w("activeRowChanged",s.pageOffset+ie.value))}}function Re(){A.value=-1,ie.value=null,w("activeRowChanged",null),Q.value=-1}function Be(){G.value=null}function Ie(e,a){const t=Oe(e,a);return G.value===t}function Ae(e){return s.node?S({nodeName:s.node.name,distanceFromActive:s.distanceFromActive,path:[e],binaryMode:pe?.value?.settings?.binaryMode}):""}function Ne(e){return e?e.dataset.name:""}function Se(e,a){const t=e[e.length-1];return"string"==typeof t?t:e.length>1?`${e[e.length-2]}[${t}]`:`${Ee.value.columns[a]}[${t}]`}function Oe(e,a){if(!s.node)return"";const t=Ee.value.columns[a];return S({nodeName:s.node.name,distanceFromActive:s.distanceFromActive,path:[t,...e],binaryMode:pe?.value?.settings?.binaryMode})}function We(e){return""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&null!==e&&0===Object.keys(e).length||null==e}function ze(e){return""===e?he.baseText("runData.emptyString"):"string"==typeof e?e:Array.isArray(e)&&0===e.length?he.baseText("runData.emptyArray"):"object"==typeof e&&null!==e&&0===Object.keys(e).length?he.baseText("runData.emptyObject"):null==e?`${e}`:!0===e||!1===e||"number"==typeof e?e.toString():JSON.stringify(e)}function Le(e,a){K.value=!0,_e.draggableStartDragging({type:"mapping",data:a??"",dimensions:e?.getBoundingClientRect()??null}),_e.resetMappingTelemetry()}function Fe(e,a){e?.dataset.value&&(Y.value=e.dataset.value),Le(e,a)}function Ke(e){Y.value=null,Ve(e.dataset.name??"","tree",e.dataset.depth??"0")}function Pe(e,a){if(Y.value)return Y.value===Oe(e,a)}function Ve(e,a,t="0"){_e.draggableStopDragging(),setTimeout((()=>{const l=_e.mappingTelemetry,n={src_node_type:s.node.type,src_field_name:e,src_nodes_back:s.distanceFromActive,src_run_index:s.runIndex,src_runs_total:s.totalRuns,src_field_nest_level:parseInt(t,10),src_view:"table",src_element:a,success:!1,view_shown:ye.view_shown,...l};j.run("runDataTable.onDragEnd",n),ve.track("User dragged data for mapping",n)}),1e3)}function Je(e){return"object"!=typeof e||null===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length}function Ue(e){return!Je(e)}function qe(){w("displayModeChange","json")}return m((()=>{if(Ee.value?.columns&&ce.value){const e=ce.value.$refs.wrapper;e&&w("mounted",{avgRowHeight:e.offsetHeight/Ee.value.data.length})}})),h(we,(e=>{setTimeout((()=>{W.value=!!we.value}),e?300:150)})),h([He,B],(([e,a])=>{-1!==e?null!==a&&(me.value=[...a.querySelectorAll("thead tr th")].map((e=>e instanceof HTMLElement?e.getBoundingClientRect().width:0))):me.value=void 0}),{immediate:!0,flush:"post"}),(a,r)=>(t(),o("div",{class:g([a.$style.dataDisplay,{[a.$style.highlight]:c(Ce),[a.$style.lightHeader]:"light"===e.headerBgColor,[a.$style.compact]:s.compact,[a.$style.hasCollapsingColumn]:void 0!==me.value}])},[Ee.value.columns&&0===Ee.value.columns.length?(t(),o("table",{key:0,class:g(a.$style.table)},[n("thead",null,[n("tr",null,[Ee.value.metadata.hasExecutionIds?(t(),o("th",{key:0,class:g(a.$style.executionLinkRowHeader)},null,2)):u("",!0),n("th",{class:g(a.$style.emptyCell)},null,2),n("th",{class:g(a.$style.tableRightMargin)},null,2)])]),n("tbody",null,[(t(!0),o(_,null,b(Ee.value.data,((e,r)=>(t(),o("tr",{key:r,class:g({[a.$style.hoveringRow]:Me(r)})},[Ee.value.metadata.hasExecutionIds?(t(),o("td",{key:0,"data-row":r,class:g(a.$style.executionLinkCell),onMouseenter:je,onMouseleave:Re},[Ee.value.metadata.data[r]?(t(),x(c(H),{key:0,content:c(he).baseText("runData.table.viewSubExecution",{interpolate:{id:`${Ee.value.metadata.data[r]?.subExecution.executionId}`}}),placement:"left","hide-after":0},{default:C((()=>[p(v(c(E),{variant:"subtle",icon:"external-link","data-test-id":"debug-sub-execution",size:"xsmall",target:"_blank",href:c(be)(Ee.value.metadata.data[r]),onClick:e=>c(fe)(Ee.value.metadata.data[r],"table")},null,8,["href","onClick"]),[[y,Te(r)]])])),_:2},1032,["content"])):u("",!0)],42,ee)):u("",!0),n("td",{"data-row":r,"data-col":0,onMouseenter:je,onMouseleave:Re},[v(c(T),null,{default:C((()=>[l(d(c(he).baseText("runData.emptyItemHint")),1)])),_:1})],40,ae),n("td",{class:g(a.$style.tableRightMargin)},null,2)],2)))),128))])],2)):(t(),o("table",{key:1,ref_key:"tableRef",ref:B,class:g(a.$style.table)},[me.value?(t(),o("colgroup",te,[(t(!0),o(_,null,b(me.value,((e,a)=>(t(),o("col",{key:a,width:e},null,8,le)))),128))])):u("",!0),n("thead",null,[n("tr",null,[Ee.value.metadata.hasExecutionIds?(t(),o("th",{key:0,class:g(a.$style.executionLinkRowHeader)},null,2)):u("",!0),(t(!0),o(_,null,b(Ee.value.columns||[],((s,i)=>(t(),o("th",{key:s,class:g({[a.$style.isCollapsingColumn]:He.value===i,[a.$style.isHoveredColumn]:Q.value===i})},[v(c(H),{placement:"bottom-start",disabled:!e.mappingEnabled,"show-after":1e3},{content:C((()=>[n("div",null,[r[0]||(r[0]=n("img",{src:"/%7B%7BBASE_PATH%7D%7D/static/data-mapping-gif.gif"},null,-1)),l(" "+d(c(he).baseText("dataMapping.dragColumnToFieldHint")),1)])])),default:C((()=>[v(V,{type:"mapping",data:Ae(s),disabled:!e.mappingEnabled,"can-drop":ke.value,"sticky-position":$e.value,onDragstart:Le,onDragend:e=>Ve(e?.textContent??"","column")},{preview:C((({canDrop:e})=>[v(U,{html:c(I)(s,16,2),"can-drop":e},null,8,["html","can-drop"])])),default:C((({isDragging:l})=>[n("div",{class:g({[a.$style.header]:!0,[a.$style.draggableHeader]:e.mappingEnabled,[a.$style.activeHeader]:(i===A.value||W.value)&&e.mappingEnabled,[a.$style.draggingHeader]:l})},[v(J,{content:ze(s||""),search:e.search},null,8,["content","search"]),v(c(H),{content:c(he).baseText("dataMapping.tableView.columnCollapsing.tooltip"),disabled:e.mappingEnabled||He.value===i},{default:C((()=>[v(c(E),{variant:"ghost",class:g(a.$style.collapseColumnButton),size:"xsmall",icon:He.value===i?"chevrons-up-down":"chevrons-down-up","aria-label":c(he).baseText("dataMapping.tableView.columnCollapsing"),onClick:e=>{return a=i,void w("collapsingColumnChanged",He.value===a?null:Ee.value.columns[a]??null);var a}},null,8,["class","icon","aria-label","onClick"])])),_:2},1032,["content","disabled"]),e.mappingEnabled?(t(),o("div",{key:0,class:g(a.$style.dragButton)},[v(c(D),{icon:"grip-vertical"})],2)):u("",!0)],2)])),_:2},1032,["data","disabled","can-drop","sticky-position","onDragend"])])),_:2},1032,["disabled"])],2)))),128)),ue.value?(t(),o("th",{key:1,class:g(a.$style.header)},[v(c(H),{placement:"bottom-end"},{content:C((()=>[n("div",null,[v(c($),{tag:"span",keypath:"dataMapping.tableView.tableColumnsExceeded.tooltip",scope:"global"},{columnLimit:C((()=>[l(d(de.value),1)])),link:C((()=>[n("a",{onClick:qe},d(c(he).baseText("dataMapping.tableView.tableColumnsExceeded.tooltip.link")),1)])),_:1})])])),default:C((()=>[n("span",null,[v(c(D),{class:g(a.$style.warningTooltip),icon:"triangle-alert"},null,8,["class"]),l(" "+d(c(he).baseText("dataMapping.tableView.tableColumnsExceeded")),1)])])),_:1})],2)):u("",!0),n("th",{class:g(a.$style.tableRightMargin)},null,2)])]),v(V,{ref_key:"draggableRef",ref:ce,tag:"tbody",type:"mapping","target-data-key":"mappable",disabled:!e.mappingEnabled,onDragstart:Fe,onDragend:Ke},{preview:C((({canDrop:e,el:a})=>[v(U,{html:c(I)(Ne(a)||"",16,2),"can-drop":e},null,8,["html","can-drop"])])),default:C((()=>[(t(!0),o(_,null,b(Ee.value.data,((l,r)=>(t(),o("tr",{key:r,class:g({[a.$style.hoveringRow]:Me(r)}),"data-test-id":Me(r)?"hovering-item":void 0},[Ee.value.metadata.hasExecutionIds?(t(),o("td",{key:0,"data-row":r,class:g(a.$style.executionLinkCell),onMouseenter:je,onMouseleave:Re},[Ee.value.metadata.data[r]?(t(),x(c(H),{key:0,content:c(he).baseText("runData.table.viewSubExecution",{interpolate:{id:`${Ee.value.metadata.data[r]?.subExecution.executionId}`}}),placement:"left","hide-after":0},{default:C((()=>[p(v(c(E),{variant:"subtle",icon:"external-link","data-test-id":"debug-sub-execution",size:"xsmall",target:"_blank",href:c(be)(Ee.value.metadata.data[r]),onClick:e=>c(fe)(Ee.value.metadata.data[r],"table")},null,8,["href","onClick"]),[[y,Te(r)]])])),_:2},1032,["content"])):u("",!0)],42,oe)):u("",!0),(t(!0),o(_,null,b(l,((l,n)=>{return t(),o("td",{key:n,"data-row":r,"data-col":n,class:g([(s=n,Ee.value.hasJson[Ee.value.columns[s]]?a.$style.minColWidth:a.$style.limitColWidth),He.value===n?a.$style.isCollapsingColumn:""]),onMouseenter:je,onMouseleave:Re},[Je(l)?(t(),x(J,{key:0,content:ze(l),search:e.search,class:g({[a.$style.value]:!0,[a.$style.empty]:We(l)})},null,8,["content","search","class"])):Ue(l)?(t(),x(c(M),{key:1,"node-class":a.$style.nodeClass,value:l},{label:C((({label:t,path:l})=>[v(J,{"data-target":"mappable",class:g({[a.$style.hoveringKey]:e.mappingEnabled&&Ie(l,n),[a.$style.draggingKey]:Pe(l,n),[a.$style.dataKey]:!0,[a.$style.mappable]:e.mappingEnabled}),content:t||c(he).baseText("runData.unnamedField"),search:e.search,"data-name":Se(l,n),"data-value":Oe(l,n),"data-depth":l.length,onMouseenter:()=>function(e,a){G.value=Oe(e,a)}(l,n),onMouseleave:Be},null,8,["class","content","search","data-name","data-value","data-depth","onMouseenter"])])),binary:C((({value:e})=>[v(Z,{value:e},null,8,["value"])])),value:C((({value:t})=>[v(J,{content:ze(t),search:e.search,class:g({[a.$style.nestedValue]:!0,[a.$style.empty]:We(t)})},null,8,["content","search","class"])])),_:2},1032,["node-class","value"])):u("",!0)],42,re);var s})),128)),ue.value?(t(),o("td",se)):u("",!0),n("td",{class:g(a.$style.tableRightMargin)},null,2)],10,ne)))),128))])),_:1},8,["disabled"])],2))],2))}}),e("default",j(ie,[["__cssModules",{$style:{dataDisplay:"_dataDisplay_1ms2m_125",compact:"_compact_1ms2m_137",table:"_table_1ms2m_141",lightHeader:"_lightHeader_1ms2m_158",tableRightMargin:"_tableRightMargin_1ms2m_161",hasCollapsingColumn:"_hasCollapsingColumn_1ms2m_196",isCollapsingColumn:"_isCollapsingColumn_1ms2m_199",nodeClass:"_nodeClass_1ms2m_228",emptyCell:"_emptyCell_1ms2m_232",header:"_header_1ms2m_236",draggableHeader:"_draggableHeader_1ms2m_248",dragButton:"_dragButton_1ms2m_252",highlight:"_highlight_1ms2m_256",draggingHeader:"_draggingHeader_1ms2m_260",activeHeader:"_activeHeader_1ms2m_265",dataKey:"_dataKey_1ms2m_276",value:"_value_1ms2m_285",nestedValue:"_nestedValue_1ms2m_289 _value_1ms2m_285",mappable:"_mappable_1ms2m_294",empty:"_empty_1ms2m_232",limitColWidth:"_limitColWidth_1ms2m_303",minColWidth:"_minColWidth_1ms2m_307",hoveringKey:"_hoveringKey_1ms2m_311",draggingKey:"_draggingKey_1ms2m_315",hoveringRow:"_hoveringRow_1ms2m_331",warningTooltip:"_warningTooltip_1ms2m_336",executionLinkCell:"_executionLinkCell_1ms2m_340",executionLinkRowHeader:"_executionLinkRowHeader_1ms2m_344",collapseColumnButton:"_collapseColumnButton_1ms2m_348",isHoveredColumn:"_isHoveredColumn_1ms2m_355"}}]]))}}}));
//# sourceMappingURL=RunDataTable-legacy-B7mMDiPL.js.map