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