import{b as n}from"./useflows-BpG3C9m1.js";import{e as t}from"./main-few-lands-burn.js";import{s as r}from"./machine.-BRuqPpdF.js";import{h as o}from"./commonut-D3rqJBtm.js";import{e as m}from"./machineh-D8WlVdMZ.js";import"./mutative-C6xjlr6O.js";import"./lodash-YpNkAOPN.js";const _=n(({helpers:a})=>({states:{components:[{componentName:a.componentName.select,fieldType:"config",id:"post-type",label:t("Post Type"),mode:"multiple",onChange:"SELECT_POST_TYPE",onRefetch:"REFETCH_POST_TYPES",optionFilterProp:"label",options:[],placeholder:t("any post type"),render:!0,required:!0,showSearch:!0,value:void 0},{componentName:a.componentName.mixInput,id:"meta-key",label:t("Post Meta Key"),onChange:"HANDLE_META_KEY",path:"metaKey",render:!0,required:!0,value:void 0},{componentName:a.componentName.mixInput,id:"meta-value",label:t("Post Meta value"),onChange:"HANDLE_META_VALUE",path:"metaValue",render:!0,required:!0,value:void 0}]},actions:{ON_MACHINE_LOAD:async({$:e})=>{r(e,[{db:"postType",id:"post-type"},{db:"metaKey",id:"meta-key"},{db:"metaValue",id:"meta-value"}]),await m(e)},REFETCH_POST_TYPES:async({$:e})=>await m(e),HANDLE_META_KEY:o("metaKey"),HANDLE_META_VALUE:o("metaValue"),SELECT_POST_TYPE:o("postType")}}));export{_ as default};
