import{aa as i,ab as d}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{s as E}from"./machine.-tangy-colts-beg-869.js";import{h as a,a as c,b as l,c as r,d as N,r as m}from"./whatsapp-tangy-colts-beg-275.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,n){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,n),n)}};const _=i(({helpers:e})=>({states:{components:[N(e),m(e),{componentName:e.componentName.mixInput,helperText:t("Enter the latitude of the location in decimal format. Ex: 23.810331"),id:"latitude",label:t("Latitude"),onChange:"SET_LATITUDE",path:"location.latitude",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:e.componentName.mixInput,helperText:t("Enter the longitude of the location in decimal format. Ex: 90.412521"),id:"longitude",label:t("Longitude"),onChange:"SET_LONGITUDE",path:"location.longitude",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:e.componentName.mixInput,helperText:t("Enter the name of the location. Ex: Dhaka City"),id:"location-name",label:t("Name"),onChange:"SET_LOCATION_NAME",path:"location.name",render:"IF_CONNECTION_SELECTED",value:[]},{componentName:e.componentName.mixInput,helperText:t("Enter the full address of the location. Ex: Dhaka, Bangladesh"),id:"address",label:t("Address"),onChange:"SET_ADDRESS",path:"location.address",render:"IF_CONNECTION_SELECTED",value:[]}]},actions:{CONNECTION_ADD_CHANGE:r,HANDLE_BUSINESS_ID:l,IF_CONNECTION_SELECTED:({$:n})=>{var o;return d((o=n.getComponent("connection-id"))==null?void 0:o.value)},SET_ADDRESS:a("address"),SET_CONNECTION:a("connectionId"),SET_LATITUDE:a("latitude"),SET_LOCATION_NAME:a("locationName"),SET_LONGITUDE:a("longitude"),SET_PHONE_NUMBER_ID:c,SET_RECIPIENT_NUMBER:a("recipientNumber"),ON_MACHINE_LOAD:async({$:n})=>{E(n,[{db:"connectionId",id:"connection-id"},{db:"recipientNumber",id:"recipient-phone-number"},{db:"longitude",id:"longitude"},{db:"latitude",id:"latitude"},{db:"locationName",id:"location-name"},{db:"address",id:"address"}])}}}));export{_ as default};
