"use strict";(self.webpackChunkdami=self.webpackChunkdami||[]).push([[2409],{82409:(e,a,t)=>{t.r(a),t.d(a,{default:()=>o});var s=t(57460),n=t.n(s),i=t(31263),c=t(24325),l=t(43210);const o=async function({id:e,data:a},{refData:t}){const s={};for(const e of a.dataList){let a="";if(e.isFile){const i=await(0,l.Z)(e.filePath||"",t),o=i.value,d=o.endsWith(".json"),u=o.endsWith(".csv");let r=await(0,c.Z)(o,{returnValue:!0,responseType:d?"json":"text"});if(r&&u&&e.csvAction&&e.csvAction.includes("json")){r=n().parse(r,{header:e.csvAction.includes("header")}).data||[]}a=r,Object.assign(s,i.list)}else{const n=await(0,l.Z)(e.value,t);a=(0,i.Rx)(n.value,n.value),Object.assign(s,n.list)}"table"===e.type?this.addDataToColumn(e.name,a):this.setVariable(e.name,a)}return{data:"",replacedValue:s,nextBlockId:this.getBlockConnections(e)}}}}]);