import{c as b,a as d,j as a,_ as o,F as C,z as A}from"./main-tangy-colts-beg.js";import{q as f}from"./_applist-tangy-colts-beg-36.js";import{I as j}from"./index-tangy-colts-beg-545.js";import"./index-tangy-colts-beg-650.js";import{A as x}from"./appheade-tangy-colts-beg-249.js";import{S as r}from"./index-tangy-colts-beg-596.js";import"./lodash-tangy-colts-beg-516.js";import"./index-tangy-colts-beg-131.js";import"./index-tangy-colts-beg-216.js";import"./index-tangy-colts-beg-916.js";import"./exporthe-tangy-colts-beg-840.js";import"./index-tangy-colts-beg-827.js";import"./usebreak-tangy-colts-beg-501.js";import"./index-tangy-colts-beg-660.js";import"./index-tangy-colts-beg-73.js";import"./import-tangy-colts-beg-35.js";import"./index-tangy-colts-beg-987.js";import"./dropdown-tangy-colts-beg-845.js";import"./index-tangy-colts-beg-4.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";import"./utilscss-tangy-colts-beg-788.js";import"./index-tangy-colts-beg-472.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,e){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,e),e)}};function P({nodeId:t}){var n,h,m,c;const[e,y]=b(f(t)),s=(i,p)=>{i==="delayValue"&&typeof p=="number"&&p<1||y(g=>A(g,l=>{var u;(u=l==null?void 0:l.states)!=null&&u.delay&&(l.states.delay[i]=p)}))};return d(C,{children:[a(x,{appColor:e.appColor,appIcon:e.appIcon,appTitle:e.appTitle,machineLabel:e.machineLabel}),a(j,{addonAfter:d(r,{onChange:i=>s("delayUnit",i),value:((h=(n=e==null?void 0:e.states)==null?void 0:n.delay)==null?void 0:h.delayUnit)||"minutes",children:[a(r.Option,{value:"minutes",children:o("Minutes")}),a(r.Option,{value:"hours",children:o("Hours")}),a(r.Option,{value:"days",children:o("Days")}),a(r.Option,{value:"weeks",children:o("Weeks")}),a(r.Option,{value:"months",children:o("Months")})]}),helperText:o("Select time & unit how long the delay should be to execute the next node"),label:o("Execution delay time"),min:1,name:"delayValue",onChange:i=>s("delayValue",i.target.valueAsNumber),placeholder:"1",type:"number",value:(c=(m=e==null?void 0:e.states)==null?void 0:m.delay)==null?void 0:c.delayValue})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,e){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,e),e)}};export{P as default};
