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