import{aa as a}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{s as i}from"./machine.-tangy-colts-beg-869.js";import{h as n,w as r}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,o){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,o),o)}};const d=a(({helpers:t})=>({states:{components:[{componentName:t.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:t.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:t.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:t.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:t.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:t.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:t.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:t.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:t.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:t.componentName.select,id:"supports",label:e("Select Features (Supports)"),mode:"multiple",onChange:"HANDLE_SUPPORTS",options:r,path:"supports",render:!0,value:void 0},{componentName:t.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:t.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:n("description"),HANDLE_HIERARCHY:n("hierarchy"),HANDLE_KEY:n("key"),HANDLE_LABEL:n("label"),HANDLE_MENU_POSITION:n("menuPosition"),HANDLE_PUBLIC:n("public"),HANDLE_REWRITE_SLUG:n("rewriteSlug"),HANDLE_SHOW_IN_ADMIN_BAR:n("showInAdminBar"),HANDLE_SHOW_IN_MENU:n("showInMenu"),HANDLE_SHOW_IN_NAV_MENU:n("showInNavMenu"),HANDLE_SHOW_UI:n("showUI"),HANDLE_SUPPORTS:n("supports")}}));export{d as default};
