import{aa as m}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{h as a,s as d}from"./machine.-tangy-colts-beg-869.js";import{a as o,f as i}from"./machineh-tangy-colts-beg-234.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 h=m(({helpers:t})=>({states:{components:[{componentName:t.componentName.mixInput,helperText:e("The email address of the contact to create."),id:"email",label:e("Email Address"),onChange:"HANDLE_EMAIL",path:"email",render:!0,required:!0,value:void 0},{componentName:t.componentName.select,helperText:e("Select one or more lists to add the contact to."),id:"lists",label:e("Select Lists"),mode:"multiple",onChange:"SELECT_LISTS",onRefetch:"REFETCH_LISTS",options:[],path:"lists",render:!0,value:void 0},{componentName:t.componentName.select,helperText:e("Select one or more tags to add the contact to."),id:"tags",label:e("Select Tags"),mode:"multiple",onChange:"SELECT_TAGS",onRefetch:"REFETCH_TAGS",options:[],path:"tags",render:!0,value:void 0},{componentName:t.componentName.select,helperText:e("The status of the contact."),id:"status",label:e("Subscription Status"),onChange:"HANDLE_STATUS",options:[{label:e("subscribed"),value:"subscribed"},{label:e("unsubscribed"),value:"unsubscribed"},{label:e("Complained"),value:"complained"},{label:e("pending"),value:"pending"}],path:"status",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The first name of the contact to create."),id:"first-name",label:e("First Name"),onChange:"HANDLE_FIRST_NAME",path:"first_name",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The last name of the contact to create."),id:"last-name",label:e("Last Name"),onChange:"HANDLE_LAST_NAME",path:"last_name",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The phone number of the contact."),id:"phone",label:e("Phone number"),onChange:"HANDLE_PHONE",path:"phone",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The date of birth of the contact."),id:"date-of-birth",label:e("Date of Birth"),onChange:"HANDLE_DATE_OF_BIRTH",path:"date_of_birth",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The timezone of the contact."),id:"timezone",label:e("Timezone"),onChange:"HANDLE_TIMEZONE",path:"timezone",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Address Line 1 of the contact."),id:"address-line-1",label:e("Address Line 1"),onChange:"HANDLE_ADDRESS_LINE_1",path:"address_line_1",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Address Line 2 of the contact."),id:"address-line-2",label:e("Address Line 2"),onChange:"HANDLE_ADDRESS_LINE_2",path:"address_line_2",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("City of the contact."),id:"city",label:e("City"),onChange:"HANDLE_CITY",path:"city",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("State of the contact."),id:"state",label:e("State / Province"),onChange:"HANDLE_STATE",path:"state",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Country of the contact."),id:"country",label:e("Country"),onChange:"HANDLE_COUNTRY",path:"country",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Postal code of the contact."),id:"postal-code",label:e("Postal / Zip Code"),onChange:"HANDLE_POSTAL_CODE",path:"postal_code",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Company name of the contact."),id:"company-name",label:e("Company Name"),onChange:"HANDLE_COMPANY_NAME",path:"company_name",render:!0,value:void 0}]},actions:{HANDLE_ADDRESS_LINE_1:a("addressLine1"),HANDLE_ADDRESS_LINE_2:a("addressLine2"),HANDLE_CITY:a("city"),HANDLE_COMPANY_NAME:a("companyName"),HANDLE_COUNTRY:a("country"),HANDLE_DATE_OF_BIRTH:a("dateOfBirth"),HANDLE_EMAIL:a("email"),HANDLE_FIRST_NAME:a("firstName"),HANDLE_LAST_NAME:a("lastName"),HANDLE_PHONE:a("phone"),HANDLE_POSTAL_CODE:a("postalCode"),HANDLE_STATE:a("state"),HANDLE_STATUS:a("status"),HANDLE_TIMEZONE:a("timezone"),SELECT_LISTS:a("lists"),SELECT_TAGS:a("tags"),ON_MACHINE_LOAD:async({$:n})=>{d(n,[{db:"email",id:"email"},{db:"lists",id:"lists"},{db:"tags",id:"tags"},{db:"firstName",id:"first-name"},{db:"lastName",id:"last-name"},{db:"phone",id:"phone"},{db:"status",id:"status"},{db:"dateOfBirth",id:"date-of-birth"},{db:"timezone",id:"timezone"},{db:"addressLine1",id:"address-line-1"},{db:"addressLine2",id:"address-line-2"},{db:"city",id:"city"},{db:"state",id:"state"},{db:"country",id:"country"},{db:"postalCode",id:"postal-code"},{db:"companyName",id:"company-name"}]),await Promise.all([i(n),o(n)])},REFETCH_LISTS:({$:n})=>{i(n)},REFETCH_TAGS:({$:n})=>{o(n)}}}));export{h as default};
