import{c as j,a as A,j as m,_ as o,F as M,z as T}from"./main-tangy-colts-beg.js";import{q as X}from"./_applist-tangy-colts-beg-36.js";import{M as C}from"./index-tangy-colts-beg-123.js";import{S as v}from"./index-tangy-colts-beg-430.js";import"./index-tangy-colts-beg-650.js";import{A as P}from"./appheade-tangy-colts-beg-249.js";import"./lodash-tangy-colts-beg-516.js";import"./index-tangy-colts-beg-837.js";import"./index-tangy-colts-beg-131.js";import"./index-tangy-colts-beg-472.js";import"./index-tangy-colts-beg-4.js";import"./usedebou-tangy-colts-beg-721.js";import"./import-tangy-colts-beg-35.js";import"./index-tangy-colts-beg-987.js";import"./usebreak-tangy-colts-beg-501.js";import"./index-tangy-colts-beg-596.js";import"./index-tangy-colts-beg-216.js";import"./utilscss-tangy-colts-beg-788.js";import"./index-tangy-colts-beg-827.js";import"./index-tangy-colts-beg-73.js";import"./index-tangy-colts-beg-916.js";import"./exporthe-tangy-colts-beg-840.js";import"./index-tangy-colts-beg-660.js";import"./dropdown-tangy-colts-beg-845.js";import"./index.es-tangy-colts-beg-4.js";import"./paginati-tangy-colts-beg-302.js";import"./index-tangy-colts-beg-26.js";import"./index-tangy-colts-beg-245.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function et({nodeId:e}){var i,p,l,h,c,n,x,u;const[t,b]=j(X(e)),s=(a,_)=>{b(y=>T(y,r=>{var g;r.states||(r.states={components:[]}),(g=r.states)!=null&&g.xml||(r.states.xml={}),r.states.xml[a]=_}))};return A(M,{children:[m(P,{appColor:t.appColor,appIcon:t.appIcon,appTitle:t.appTitle,machineLabel:t.machineLabel}),m(v,{label:o("Mode"),onChange:a=>s("xml_mode",a),options:[{label:o("Parse XML"),value:"parse_xml"},{label:o("Perform XPath Query"),value:"xpath"}],style:{width:"100%"},value:((p=(i=t==null?void 0:t.states)==null?void 0:i.xml)==null?void 0:p.xml_mode)||"parse_xml"}),m(C,{label:o("Content"),onChange:a=>s("content",a),value:(h=(l=t==null?void 0:t.states)==null?void 0:l.xml)==null?void 0:h.content}),((n=(c=t==null?void 0:t.states)==null?void 0:c.xml)==null?void 0:n.xml_mode)==="xpath"&&m(C,{helperText:o("Query to extract data from XML using XPath syntax. Example: /root/element."),label:o("XPath Query"),onChange:a=>s("xpath_query",a),value:(u=(x=t==null?void 0:t.states)==null?void 0:x.xml)==null?void 0:u.xpath_query})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};export{et as default};
