import{aa as d,ab as s}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{h as o,s as T}from"./machine.-tangy-colts-beg-869.js";import{h as c,c as E}from"./gohighle-tangy-colts-beg-43.js";import{b as i}from"./machineh-tangy-colts-beg-622.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(a,e){return this.cache.has(a)?this.cache.get(a):(this.cache.set(a,e),e)}};const N=d(({helpers:a})=>({states:{components:[E(a),{allowClear:!0,componentName:a.componentName.select,fieldType:"config",helperText:t("Select the contact to associate this task with."),id:"contact-id",label:t("Contact"),onChange:"SET_CONTACT_ID",onRefetch:"REFETCH_CONTACTS",optionFilterProp:"label",options:[],render:"IF_CONNECTION_SELECTED",required:!0,showSearch:!0,value:void 0},{componentName:a.componentName.mixInput,helperText:t("Enter the title of the task."),id:"task-title",label:t("Title"),onChange:"SET_TASK_TITLE",path:"title",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:a.componentName.mixInput,helperText:t("Enter the due date and time in ISO 8601 format (e.g., 2026-01-08T23:59:59+06:00)."),id:"task-due-date",label:t("Due Date"),onChange:"SET_TASK_DUE_DATE",path:"dueDate",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:a.componentName.mixInput,helperText:t("Enter the description or body of the task."),id:"task-body",label:t("Description"),onChange:"SET_TASK_BODY",path:"body",render:"IF_CONNECTION_SELECTED",required:!1,value:[]},{componentName:a.componentName.mixInput,helperText:t("Enter the ID of the user to whom the task is assigned."),id:"task-assigned-to",label:t("Assigned To"),onChange:"SET_TASK_ASSIGNED_TO",path:"assignedTo",render:"IF_CONNECTION_SELECTED",required:!1,value:[]},{componentName:a.componentName.switch,helperText:t("Select whether the task is completed or pending."),id:"task-completed",label:t("Completed"),onChange:"SET_TASK_COMPLETED",path:"completed",render:"IF_CONNECTION_SELECTED",size:"small",value:!1}]},actions:{CONNECTION_ADD_CHANGE:c,IF_CONNECTION_SELECTED:({$:e})=>{var n;return s((n=e.getComponent("connection-id"))==null?void 0:n.value)},REFETCH_CONTACTS:({$:e})=>i(e),SET_CONTACT_ID:o("contactId"),SET_TASK_ASSIGNED_TO:o("taskAssignedTo"),SET_TASK_BODY:o("taskBody"),SET_TASK_COMPLETED:o("taskCompleted"),SET_TASK_DUE_DATE:o("taskDueDate"),SET_TASK_TITLE:o("taskTitle"),SET_CONNECTION:({$:e,e:n})=>{o("connectionId")({$:e,e:n}),i(e)},ON_MACHINE_LOAD:({$:e})=>{T(e,[{db:"connectionId",id:"connection-id"},{db:"contactId",id:"contact-id"},{db:"taskTitle",id:"task-title"},{db:"taskDueDate",id:"task-due-date"},{db:"taskBody",id:"task-body"},{db:"taskAssignedTo",id:"task-assigned-to"},{db:"taskCompleted",id:"task-completed"}]),i(e)}}}));export{N as default};
