import{b as s}from"./useflows-BpG3C9m1.js";import{e as t}from"./main-few-lands-burn.js";import{s as d}from"./machine.-BRuqPpdF.js";import{h as o}from"./commonut-D3rqJBtm.js";import{b as n}from"./machineh-D8WlVdMZ.js";import"./mutative-C6xjlr6O.js";import"./lodash-YpNkAOPN.js";const E=s(({helpers:a})=>({states:{components:[{componentName:a.componentName.mixInput,id:"post-id",label:t("Post Id"),onChange:"HANDLE_ID",path:"postId",render:!0,required:!0,value:void 0},{componentName:a.componentName.select,id:"tags",label:t("Select Post tags"),mode:"tags",onChange:"SELECT_POST_TAGS",onRefetch:"REFETCH_POST_TAGS",options:[],path:"tags",render:!0,required:!0,value:void 0},{componentName:a.componentName.switch,helperText:t("If true, don’t delete existing terms, just add on. If false, replace the terms with the new terms."),id:"append",label:t("Append"),onChange:"HANDLE_APPEND",path:"append",render:!0,value:!1}]},actions:{ON_MACHINE_LOAD:async({$:e})=>{d(e,[{db:"postId",id:"post-id"},{db:"tags",id:"tags"},{db:"append",id:"append"}]),await n(e)},REFETCH_POST_TAGS:async({$:e})=>{await n(e)},HANDLE_APPEND:o("append"),HANDLE_ID:o("postId"),SELECT_POST_TAGS:o("tags")}}));export{E as default};
