import{aa as i,ab as d}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{s as m}from"./machine.-tangy-colts-beg-869.js";import{h as t,a as r,c as N}from"./commonut-tangy-colts-beg-867.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(n,a){return this.cache.has(n)?this.cache.get(n):(this.cache.set(n,a),a)}};const D=i(({helpers:n})=>({states:{components:[N(n),{componentName:n.componentName.mixInput,helperText:e("Enter email address of the customer"),id:"email",label:e("Email Address"),onChange:"HANDLE_EMAIL",path:"email",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:n.componentName.mixInput,helperText:e("Enter description of the customer"),id:"description",label:e("Description"),onChange:"HANDLE_DESCRIPTION",path:"description",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:n.componentName.mixInput,helperText:e("Enter the customer full name or business name"),id:"name",label:e("Name"),onChange:"HANDLE_NAME",path:"name",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:n.componentName.mixInput,helperText:e("Enter phone-number of the customer"),id:"phone-number",label:e("Phone"),onChange:"HANDLE_PHONE_NUMBER",path:"phone",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:n.componentName.mixInput,helperText:e("Enter address line 1"),id:"address-line1",label:e("Address Line 1"),onChange:"HANDLE_ADDRESS_LINE1",path:"address-line1",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:n.componentName.mixInput,helperText:e("Enter address line 2, (e.g., apartment, suite, unit, or building)"),id:"address-line2",label:e("Address Line 2"),onChange:"HANDLE_ADDRESS_LINE2",path:"address-line2",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:n.componentName.mixInput,helperText:e("Enter city, district, suburb, town, or village"),id:"city",label:e("city"),onChange:"HANDLE_CITY",path:"city",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:n.componentName.mixInput,helperText:e("Enter a Two-letter country code (ISO 3166-1 alpha-2) e.g., US, BD"),id:"country",label:e("Country"),onChange:"HANDLE_COUNTRY",path:"country",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:n.componentName.mixInput,helperText:e("Enter postal-code"),id:"postal-code",label:e("Postal Code"),onChange:"HANDLE_POSTAL_CODE",path:"postal-code",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:n.componentName.mixInput,helperText:e("Enter State, county, province, or region of the customer"),id:"state",label:e("State"),onChange:"HANDLE_STATE",path:"state",render:"IF_CONNECTION_SELECTED",value:void 0},{addItemButtonLabel:"Metadata",componentName:n.componentName.repeaterField,fieldsMetaData:[{componentName:n.componentName.mixInput,label:e("Key"),name:"key",value:[],wrapperClassName:"w-100"},{componentName:n.componentName.mixInput,label:e("Value"),name:"value",value:[],wrapperClassName:"w-100"}],id:"metaData-field-properties",label:e("Meta Data"),onChange:"HANDLE_META_DATA",path:"metaDataFieldProperties",render:"IF_CONNECTION_SELECTED",value:[]}]},actions:{IF_CONNECTION_SELECTED:({$:a})=>{var o;return d((o=a.getComponent("connection-id"))==null?void 0:o.value)},CONNECTION_ADD_CHANGE:r,HANDLE_ADDRESS_LINE1:t("addressLine1Db"),HANDLE_ADDRESS_LINE2:t("addressLine2Db"),HANDLE_CITY:t("cityDb"),HANDLE_COUNTRY:t("countryDb"),HANDLE_DESCRIPTION:t("descriptionDb"),HANDLE_EMAIL:t("emailDb"),HANDLE_META_DATA:t("metaDataFieldProperties"),HANDLE_NAME:t("nameDb"),HANDLE_PHONE_NUMBER:t("phoneNumberDb"),HANDLE_POSTAL_CODE:t("postalCodeDb"),HANDLE_STATE:t("stateDb"),SET_CONNECTION:t("connectionId"),ON_MACHINE_LOAD:async({$:a})=>{m(a,[{db:"connectionId",id:"connection-id"},{db:"nameDb",id:"name"},{db:"emailDb",id:"email"},{db:"phoneNumberDb",id:"phone-number"},{db:"countryDb",id:"country"},{db:"cityDb",id:"city"},{db:"metaDataFieldProperties",id:"metaData-field-properties"},{db:"postalCodeDb",id:"postal-code"},{db:"addressLine1Db",id:"address-line1"},{db:"addressLine2Db",id:"address-line2"},{db:"stateDb",id:"state"},{db:"descriptionDb",id:"description"}])}}}));export{D as default};
