import{b as r}from"./useflows-BpG3C9m1.js";import{e}from"./main-few-lands-burn.js";import{s as a}from"./machine.-BRuqPpdF.js";import{h as o}from"./commonut-D3rqJBtm.js";import"./mutative-C6xjlr6O.js";import"./lodash-YpNkAOPN.js";import"./machineh-D8WlVdMZ.js";const h=r(({helpers:t})=>({states:{components:[{componentName:t.componentName.mixInput,helperText:e("A unique, lowercase slug (no spaces) used internally by WordPress. Example: automation_trigger. Once set, this should not be changed."),id:"slug",label:e("Taxonomy Identifier"),onChange:"HANDLE_SLUG",path:"slug",render:!0,required:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The display name for your taxonomy shown in the admin menu and meta boxes. Example: Trigger Type, Flow Category."),id:"name",label:e("Taxonomy Name"),onChange:"HANDLE_NAME",path:"name",render:!0,required:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Select the content types (like posts, pages, or custom post types) this taxonomy should apply to."),id:"post-types",label:e("Assign To Post Types"),onChange:"HANDLE_POST_TYPES",path:"postTypes",render:!0,required:!0,value:void 0},{componentName:t.componentName.switch,helperText:e("Enable this if you want terms to support parent–child relationships (like categories). Disable for flat structures (like tags)."),id:"hierarchy",label:e("Hierarchy (Category Style)"),onChange:"HANDLE_HIERARCHY",path:"hierarchy",render:!0,value:!0},{componentName:t.componentName.switch,helperText:e("Enable this if you want terms to support parent–child relationships (like categories). Disable for flat structures (like tags)."),id:"public",label:e("Publicly Queryable"),onChange:"HANDLE_PUBLIC",path:"public",render:!0,value:!0},{componentName:t.componentName.switch,helperText:e("Toggle to show or hide this taxonomy in the WordPress dashboard. If off, it will still function but not be visible in menus."),id:"admin-ui",label:e("Show in Admin Interface"),onChange:"HANDLE_ADMIN_UI",path:"adminUI",render:!0,value:void 0},{componentName:t.componentName.switch,helperText:e("Required if you are using the block editor (Gutenberg) or building headless features via the REST API."),id:"rest-api",label:e("Enable for REST API"),onChange:"HANDLE_REST_API",path:"restApi",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Optional. Describe the purpose of this taxonomy. This appears in the admin area and helps other users understand its use."),id:"description",label:e("Description"),onChange:"HANDLE_DESCRIPTION",path:"description",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Customize the URL used for term archive pages. For example, trigger makes term links look like /trigger/form-submit/. Leave blank to use the default."),id:"rewrite-slug",label:e("Custom URL Slug"),onChange:"HANDLE_REWRITE_SLUG",path:"rewriteSlug",render:!0,value:void 0}]},actions:{ON_MACHINE_LOAD:({$:i})=>{a(i,[{db:"slug",id:"slug"},{db:"name",id:"name"},{db:"postTypes",id:"post-types"},{db:"hierarchy",id:"hierarchy"},{db:"public",id:"public"},{db:"adminUI",id:"admin-ui"},{db:"restApi",id:"rest-api"},{db:"description",id:"description"},{db:"rewriteSlug",id:"rewrite-slug"}])},HANDLE_ADMIN_UI:o("adminUI"),HANDLE_DESCRIPTION:o("description"),HANDLE_HIERARCHY:o("hierarchy"),HANDLE_NAME:o("name"),HANDLE_POST_TYPES:o("postTypes"),HANDLE_PUBLIC:o("public"),HANDLE_REST_API:o("restApi"),HANDLE_REWRITE_SLUG:o("rewriteSlug"),HANDLE_SLUG:o("slug")}}));export{h as default};
