import{f as n,j as t,e as h,F as d}from"./main-few-lands-burn.js";import{a as u}from"./useflows-BpG3C9m1.js";import{M as o}from"./mixinput-CX5xeb4d.js";import{S as l,a as v}from"./select-D5cwRnoD.js";import{c as f}from"./mutative-C6xjlr6O.js";import{A as C}from"./appheade-BErcWjPn.js";import"./lodash-YpNkAOPN.js";import"./index-Budcgb8A.js";import"./index-ubWv-fhI.js";import"./index-CyNIBchZ.js";import"./usedebou-9GKFiQAC.js";import"./utilscss-IoKwGUy7.js";import"./tabpanel-DvU0ks7q.js";import"./index-BcDJZYeX.js";import"./index-CB2KTxNj.js";import"./useclosa-m-cf8k_D.js";import"./context-Ba3TiTex.js";import"./index-DAhFlZRY.js";import"./index-28_Ul1Wv.js";import"./usebreak-DJkppNCB.js";import"./index-CTlEl9RP.js";import"./index-Cj8-kItB.js";import"./index-wzUEm29P.js";import"./isobject-D8hieKPs.js";import"./index-Vx_YZd5N.js";import"./index-XyHDR-91.js";import"./index-btcdg7gz.js";import"./flowstat-BxuW8LT8.js";import"./useflows-BbAh-zeS.js";import"./import-Cn4VUyaV.js";import"./paginati-DuhDnQhP.js";import"./index-DkD03DCM.js";import"./index-DLjoOpJs.js";function Y({nodeId:i}){const[a,m]=u(i),s=(e,c)=>{m(p=>f(p,r=>{r.states||(r.states={components:[]}),r.states?.csv||(r.states.csv={contains_headers:!1,csv_header:[],csv_mode:"file",csv_source:"file",delimiter:"comma",delimiter_character:[],file_path:[]}),r.states.csv[e]=c}))};return n(d,{children:[t(C,{nodeId:i}),t(l,{label:"CSV source",onChange:e=>s("csv_source",e),options:[{label:t("span",{children:"Get from file"}),value:"file"}],placeholder:"CSV Source",style:{width:"100%"},value:a?.states?.csv?.csv_source||"file"}),t(v,{checked:a?.states?.csv?.contains_headers||!1,direction:"horizontal",helperText:"Enable this if the first row of your CSV contains column headers instead of data.",label:h("CSV contains headers"),onChange:e=>s("contains_headers",e)}),a?.states?.csv?.contains_headers===!0&&t(o,{helperText:"Enter the column headers as a delimiter-separated list (for example: firstname,lastname,address) to display them correctly in the output. If left empty, column numbers will be shown instead.",label:"CSV headers (recommended)",onChange:e=>s("csv_header",e),value:a?.states?.csv?.csv_header}),t(l,{className:"mb-1",helperText:"Choose the character that separates values in your CSV. Most CSV files use commas.",label:"Delimiter",onChange:e=>s("delimiter",e),options:[{label:t("span",{children:"Comma"}),value:"comma"},{label:t("span",{children:"Tab"}),value:"tab"},{label:t("span",{children:"Other"}),value:"other"}],placeholder:"Delimiter",style:{width:"100%"},value:a?.states?.csv?.delimiter||"comma"}),a?.states?.csv?.delimiter==="other"&&t(o,{helperText:"Enter the character used to separate values in your CSV. For example, if your CSV uses semicolons, enter ; here.",label:"Delimiter character",onChange:e=>s("delimiter_character",e),value:a?.states?.csv?.delimiter_character}),t(o,{helperText:"Enter the full path to your CSV file on the server or a public URL. Examples: /uploads/data.csv or https://example.com/data.csv",label:"File path/URL",onChange:e=>s("file_path",e),value:a?.states?.csv?.file_path})]})}export{Y as default};
