import{b as a}from"./useflows-BpG3C9m1.js";import{e}from"./main-few-lands-burn.js";import{s as i}from"./machine.-BRuqPpdF.js";import{w as r,h as t}from"./commonut-D3rqJBtm.js";import"./mutative-C6xjlr6O.js";import"./lodash-YpNkAOPN.js";import"./machineh-D8WlVdMZ.js";const N=a(({helpers:n})=>({states:{components:[{componentName:n.componentName.mixInput,helperText:e("Post type key. Must not exceed 20 characters and may only contain lowercase alphanumeric characters, dashes, and underscores."),id:"key",label:e("Post Type Key"),onChange:"HANDLE_KEY",path:"key",render:!0,required:!0,value:void 0},{componentName:n.componentName.mixInput,helperText:e("Name of the post type shown in the menu. Usually plural."),id:"label",label:e("Label"),onChange:"HANDLE_LABEL",path:"label",render:!0,value:void 0},{componentName:n.componentName.switch,helperText:e("Whether the post type is hierarchical (e.g. page)."),id:"hierarchy",label:e("Hierarchy (Category Style)"),onChange:"HANDLE_HIERARCHY",path:"hierarchy",render:!0,value:!1},{componentName:n.componentName.switch,helperText:e("Whether a post type is intended for use publicly either via the admin interface or by front-end users."),id:"public",label:e("Public"),onChange:"HANDLE_PUBLIC",path:"public",render:!0,value:!1},{componentName:n.componentName.switch,helperText:e("Whether to generate and allow a UI for managing this post type in the admin."),id:"show-ui",label:e("Show UI"),onChange:"HANDLE_SHOW_UI",path:"showUI",render:!0,value:!1},{componentName:n.componentName.switch,helperText:e("Where to show the post type in the admin menu. To work, Show UI must be true. If true, the post type is shown in its own top level menu. If false, no menu is shown."),id:"show-in-menu",label:e("Show In Menu"),onChange:"HANDLE_SHOW_IN_MENU",path:"showInMenu",render:!0,value:!1},{componentName:n.componentName.switch,helperText:e("Makes this post type available for selection in navigation menus."),id:"show-in-nav-menus",label:e("Show In Nav Menu"),onChange:"HANDLE_SHOW_IN_NAV_MENU",path:"showInNavMenu",render:!0,value:!1},{componentName:n.componentName.switch,helperText:e("Makes this post type available via the admin bar."),id:"show-in-admin-bar",label:e("Show In Admin Bar"),onChange:"HANDLE_SHOW_IN_ADMIN_BAR",path:"showInAdminBar",render:!0,value:!1},{componentName:n.componentName.mixInput,helperText:e("The position in the menu order number the post type should appear. To work, Show In Menu must be true."),id:"menu-position",label:e("Menu Position"),onChange:"HANDLE_MENU_POSITION",path:"menuPosition",render:!0,value:void 0},{componentName:n.componentName.select,id:"supports",label:e("Select Features (Supports)"),mode:"multiple",onChange:"HANDLE_SUPPORTS",options:r,path:"supports",render:!0,value:void 0},{componentName:n.componentName.mixInput,helperText:e("A short descriptive summary of what the post type is."),id:"description",label:e("Description"),onChange:"HANDLE_DESCRIPTION",path:"description",render:!0,value:void 0},{componentName:n.componentName.mixInput,helperText:e("Customize the permastruct slug. Defaults to Post Type key."),id:"rewrite-slug",label:e("Custom URL Slug"),onChange:"HANDLE_REWRITE_SLUG",path:"rewriteSlug",render:!0,value:void 0}]},actions:{ON_MACHINE_LOAD:({$:o})=>{i(o,[{db:"key",id:"key"},{db:"label",id:"label"},{db:"hierarchy",id:"hierarchy"},{db:"public",id:"public"},{db:"showUI",id:"show-ui"},{db:"showInMenu",id:"show-in-menu"},{db:"showInNavMenu",id:"show-in-nav-menus"},{db:"showInAdminBar",id:"show-in-admin-bar"},{db:"menuPosition",id:"menu-position"},{db:"supports",id:"supports"},{db:"description",id:"description"},{db:"rewriteSlug",id:"rewrite-slug"}])},HANDLE_DESCRIPTION:t("description"),HANDLE_HIERARCHY:t("hierarchy"),HANDLE_KEY:t("key"),HANDLE_LABEL:t("label"),HANDLE_MENU_POSITION:t("menuPosition"),HANDLE_PUBLIC:t("public"),HANDLE_REWRITE_SLUG:t("rewriteSlug"),HANDLE_SHOW_IN_ADMIN_BAR:t("showInAdminBar"),HANDLE_SHOW_IN_MENU:t("showInMenu"),HANDLE_SHOW_IN_NAV_MENU:t("showInNavMenu"),HANDLE_SHOW_UI:t("showUI"),HANDLE_SUPPORTS:t("supports")}}));export{N as default};
