import{b as n}from"./useflows-BpG3C9m1.js";import{e}from"./main-few-lands-burn.js";import{s as r}from"./machine.-BRuqPpdF.js";import{h as t}from"./commonut-D3rqJBtm.js";import"./mutative-C6xjlr6O.js";import"./lodash-YpNkAOPN.js";import"./machineh-D8WlVdMZ.js";const l=n(({helpers:o})=>({states:{components:[{componentName:o.componentName.mixInput,id:"post-id",label:e("Post Id"),onChange:"HANDLE_ID",path:"postId",render:!0,required:!0,value:void 0},{componentName:o.componentName.mixInput,id:"taxonomy",label:e("Taxonomy Name"),onChange:"HANDLE_TAXONOMY",path:"taxonomy",render:!0,required:!0,value:void 0},{componentName:o.componentName.mixInput,helperText:e('Provide one or more Taxonomy Terms as a comma-separated list or array. Accepted formats: wordpress, manage_options, read (string input) ["wordpress", "manage_options", "read"] (array input)'),id:"term",label:e("Taxonomy Term"),onChange:"HANDLE_TERM",path:"term",render:!0,required:!0,value:void 0},{componentName:o.componentName.switch,helperText:e("If true, don’t delete existing terms, just add on. If false, replace the terms with the new terms."),id:"append",label:e("Append"),onChange:"HANDLE_APPEND",path:"append",render:!0,value:!1}]},actions:{ON_MACHINE_LOAD:({$:a})=>{r(a,[{db:"postId",id:"post-id"},{db:"taxonomy",id:"taxonomy"},{db:"term",id:"term"},{db:"append",id:"append"}])},HANDLE_APPEND:t("append"),HANDLE_ID:t("postId"),HANDLE_TAXONOMY:t("taxonomy"),HANDLE_TERM:t("term")}}));export{l as default};
