import{aa as n}from"./_applist-tangy-colts-beg-36.js";import{_ as a}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{e as m}from"./machineh-tangy-colts-beg-110.js";import"./lodash-tangy-colts-beg-516.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 u=n(({helpers:e})=>({states:{components:[{componentName:e.componentName.select,fieldType:"config",id:"post-type",label:a("Post Type"),mode:"multiple",onChange:"SELECT_POST_TYPE",onRefetch:"REFETCH_POST_TYPES",optionFilterProp:"label",options:[],placeholder:a("any post type"),render:!0,required:!0,showSearch:!0,value:void 0},{componentName:e.componentName.mixInput,id:"meta-key",label:a("Post Meta Key"),onChange:"HANDLE_META_KEY",path:"metaKey",render:!0,required:!0,value:void 0},{componentName:e.componentName.mixInput,id:"meta-value",label:a("Post Meta value"),onChange:"HANDLE_META_VALUE",path:"metaValue",render:!0,required:!0,value:void 0}]},actions:{ON_MACHINE_LOAD:async({$:t})=>{r(t,[{db:"postType",id:"post-type"},{db:"metaKey",id:"meta-key"},{db:"metaValue",id:"meta-value"}]),await m(t)},REFETCH_POST_TYPES:async({$:t})=>await m(t),HANDLE_META_KEY:o("metaKey"),HANDLE_META_VALUE:o("metaValue"),SELECT_POST_TYPE:o("postType")}}));export{u as default};
