import{c as f,a as b,j as r,_ as i,aF as T,F as I,z as j}from"./main-tangy-colts-beg.js";import{q as v}from"./_applist-tangy-colts-beg-36.js";import{I as C}from"./index-tangy-colts-beg-545.js";import{M as y}from"./index-tangy-colts-beg-123.js";import"./index-tangy-colts-beg-650.js";import{A as x}from"./appheade-tangy-colts-beg-249.js";import{T as F}from"./index-tangy-colts-beg-131.js";import"./lodash-tangy-colts-beg-516.js";import"./index-tangy-colts-beg-216.js";import"./index-tangy-colts-beg-837.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"./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 m,n,l,c,h,u;const[t,A]=f(v(e)),s=(a,p)=>{typeof p=="number"&&(a==="end"||a==="start")&&p<1||A(d=>j(d,o=>{var g;o.states||(o.states={components:[]}),(g=o.states)!=null&&g.iterator||(o.states.iterator={}),o.states.iterator[a]=p}))};return b(I,{children:[r(x,{appColor:t.appColor,appIcon:t.appIcon,appTitle:t.appTitle,machineLabel:t.machineLabel}),r(y,{label:i("Array"),onChange:a=>s("value",a),value:(n=(m=t==null?void 0:t.states)==null?void 0:m.iterator)==null?void 0:n.value}),r(T,{bordered:!1,items:[{children:b("div",{className:"space-y-4",children:[r(C,{label:i("Iteration start from"),min:1,onChange:a=>s("start",a.target.valueAsNumber),placeholder:"1",type:"number",value:(c=(l=t==null?void 0:t.states)==null?void 0:l.iterator)==null?void 0:c.start}),r(C,{label:i("Iteration end at"),min:1,onChange:a=>s("end",a.target.valueAsNumber),type:"number",value:(u=(h=t==null?void 0:t.states)==null?void 0:h.iterator)==null?void 0:u.end})]}),key:"1",label:r(F.Text,{children:i("Advance options")})}],size:"small"})]})}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};
