import{aa as a}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{h as i,s as n}from"./machine.-tangy-colts-beg-869.js";import{c as r}from"./machineh-tangy-colts-beg-426.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};const d=a(({helpers:e})=>({states:{components:[{allowClear:!0,componentName:e.componentName.select,fieldType:"config",helperText:t("Select the forum where you want to post the topic."),id:"forum-id",label:t("Select Forum"),onChange:"HANDLE_FORUM_ID",onRefetch:"REFETCH_FORUMS",options:[],render:!0,required:!0,value:void 0},{componentName:e.componentName.mixInput,helperText:t("Enter the title of the topic."),id:"topic-title",label:t("Topic Title"),onChange:"HANDLE_TOPIC_TITLE",path:"topic_title",render:!0,required:!0,value:void 0},{componentName:e.componentName.mixInput,helperText:t("Enter the content of the topic."),id:"topic-content",label:t("Topic Content"),onChange:"HANDLE_TOPIC_CONTENT",path:"topic_content",render:!0,required:!0,value:void 0},{componentName:e.componentName.mixInput,helperText:t("Enter the email address of the user who will create the topic."),id:"topic-creator-email",label:t("Topic Creator Email"),onChange:"HANDLE_TOPIC_CREATOR_EMAIL",path:"topic_creator_email",render:!0,required:!0,value:void 0}]},actions:{HANDLE_FORUM_ID:i("forumId"),HANDLE_TOPIC_CONTENT:i("topicContent"),HANDLE_TOPIC_CREATOR_EMAIL:i("topicCreatorEmail"),HANDLE_TOPIC_TITLE:i("topicTitle"),REFETCH_FORUMS:({$:o})=>r(o),ON_MACHINE_LOAD:({$:o})=>{n(o,[{db:"forumId",id:"forum-id"},{db:"topicTitle",id:"topic-title"},{db:"topicContent",id:"topic-content"},{db:"topicCreatorEmail",id:"topic-creator-email"}]),r(o)}}}));export{d as default};
