import{aa as o}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{h as a,s as m}from"./machine.-tangy-colts-beg-869.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,n){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,n),n)}};const c=o(({helpers:t})=>({states:{components:[{componentName:t.componentName.mixInput,helperText:e("Enter the title of the post"),id:"title",label:e("Post Title"),onChange:"SET_TITLE",path:"title",placeholder:e("Enter post title"),render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Enter the content/message for the post"),id:"message",label:e("Post Content"),onChange:"SET_MESSAGE",path:"message",placeholder:e("Enter post content"),render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Enter the space ID where the post will be created"),id:"space-id",label:e("Space ID"),onChange:"SET_SPACE_ID",path:"space_id",placeholder:e("Enter space ID"),render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Enter the user ID who will create the post"),id:"user-id",label:e("User ID"),onChange:"SET_USER_ID",path:"user_id",placeholder:e("Enter user ID"),render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Enter the media URL (image, video, etc.)"),id:"image-url",label:e("Media URL"),onChange:"SET_IMAGE_URL",path:"image_url",placeholder:e("Enter media URL"),render:!0,value:void 0},{componentName:t.componentName.select,helperText:e("Select the type of embedded content"),id:"embed-content-type",label:e("Embed Content Type"),onChange:"SET_EMBED_CONTENT_TYPE",options:[{label:e("Image"),value:"image"},{label:e("Video"),value:"video"},{label:e("Giphy"),value:"giphy"},{label:e("Iframe HTML"),value:"iframe_html"}],path:"embed_content_type",render:!0,value:"image"},{componentName:t.componentName.mixInput,helperText:e("Enter iframe HTML code (only if embed content type is iframe_html)"),id:"iframe-html",label:e("Iframe HTML"),onChange:"SET_IFRAME_HTML",path:"iframe_html",placeholder:e("Enter iframe HTML code"),render:!0,value:void 0},{componentName:t.componentName.select,helperText:e("Send announcement email to space members"),id:"announcement-email",label:e("Send Announcement Email"),onChange:"SET_ANNOUNCEMENT_EMAIL",options:[{label:e("No"),value:"no"},{label:e("Yes"),value:"yes"}],path:"announcement_email",render:!0,value:"no"},{componentName:t.componentName.mixInput,helperText:e("Enter topic IDs (comma-separated)"),id:"topics",label:e("Topic IDs"),onChange:"SET_TOPICS",path:"topics",placeholder:e("Enter topic IDs"),render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Enter scheduled date/time (YYYY-MM-DD HH:MM:SS)"),id:"scheduled-at",label:e("Schedule Post Date/Time"),onChange:"SET_SCHEDULED_AT",path:"scheduled_at",placeholder:e("YYYY-MM-DD HH:MM:SS"),render:!0,value:void 0}]},actions:{ON_MACHINE_LOAD:async({$:n})=>{m(n,[{db:"title",id:"title"},{db:"message",id:"message"},{db:"spaceId",id:"space-id"},{db:"userId",id:"user-id"},{db:"imageUrl",id:"image-url"},{db:"embedContentType",id:"embed-content-type"},{db:"iframeHtml",id:"iframe-html"},{db:"announcementEmail",id:"announcement-email"},{db:"topics",id:"topics"},{db:"scheduledAt",id:"scheduled-at"}])},SET_ANNOUNCEMENT_EMAIL:a("announcementEmail"),SET_EMBED_CONTENT_TYPE:a("embedContentType"),SET_IFRAME_HTML:a("iframeHtml"),SET_IMAGE_URL:a("imageUrl"),SET_MESSAGE:a("message"),SET_SCHEDULED_AT:a("scheduledAt"),SET_SPACE_ID:a("spaceId"),SET_TITLE:a("title"),SET_TOPICS:a("topics"),SET_USER_ID:a("userId")}}));export{c as default};
