import{aa as n}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{s as d}from"./machine.-tangy-colts-beg-869.js";import{h as o}from"./commonut-tangy-colts-beg-953.js";import{b as s}from"./machineh-tangy-colts-beg-110.js";import"./lodash-tangy-colts-beg-516.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)}};const l=n(({helpers:e})=>({states:{components:[{componentName:e.componentName.mixInput,id:"post-id",label:a("Post Id"),onChange:"HANDLE_ID",path:"postId",render:!0,required:!0,value:void 0},{componentName:e.componentName.select,id:"tags",label:a("Select Post tags"),mode:"tags",onChange:"SELECT_POST_TAGS",onRefetch:"REFETCH_POST_TAGS",options:[],path:"tags",render:!0,required:!0,value:void 0},{componentName:e.componentName.switch,helperText:a("If true, don’t delete existing terms, just add on. If false, replace the terms with the new terms."),id:"append",label:a("Append"),onChange:"HANDLE_APPEND",path:"append",render:!0,value:!1}]},actions:{ON_MACHINE_LOAD:async({$:t})=>{d(t,[{db:"postId",id:"post-id"},{db:"tags",id:"tags"},{db:"append",id:"append"}]),await s(t)},REFETCH_POST_TAGS:async({$:t})=>{await s(t)},HANDLE_APPEND:o("append"),HANDLE_ID:o("postId"),SELECT_POST_TAGS:o("tags")}}));export{l as default};
