import{aa as i}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{s as r}from"./machine.-tangy-colts-beg-869.js";import{h as o}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(t,a){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,a),a)}};const d=i(({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:({$:a})=>{r(a,[{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{d as default};
