import{b as a,i}from"./useflows-BpG3C9m1.js";import{e}from"./main-few-lands-burn.js";import{s as d}from"./machine.-BRuqPpdF.js";import{h as E,a as m,b as N,c as t,d as l,r}from"./whatsapp-lSZheXFS.js";import"./mutative-C6xjlr6O.js";import"./lodash-YpNkAOPN.js";const p=a(({helpers:n})=>({states:{components:[l(n),r(n),{componentName:n.componentName.mixInput,helperText:e("Enter the latitude of the location in decimal format. Ex: 23.810331"),id:"latitude",label:e("Latitude"),onChange:"SET_LATITUDE",path:"location.latitude",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:n.componentName.mixInput,helperText:e("Enter the longitude of the location in decimal format. Ex: 90.412521"),id:"longitude",label:e("Longitude"),onChange:"SET_LONGITUDE",path:"location.longitude",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:n.componentName.mixInput,helperText:e("Enter the name of the location. Ex: Dhaka City"),id:"location-name",label:e("Name"),onChange:"SET_LOCATION_NAME",path:"location.name",render:"IF_CONNECTION_SELECTED",value:[]},{componentName:n.componentName.mixInput,helperText:e("Enter the full address of the location. Ex: Dhaka, Bangladesh"),id:"address",label:e("Address"),onChange:"SET_ADDRESS",path:"location.address",render:"IF_CONNECTION_SELECTED",value:[]}]},actions:{CONNECTION_ADD_CHANGE:N,HANDLE_BUSINESS_ID:m,IF_CONNECTION_SELECTED:({$:o})=>i(o.getComponent("connection-id")?.value),SET_ADDRESS:t("address"),SET_CONNECTION:t("connectionId"),SET_LATITUDE:t("latitude"),SET_LOCATION_NAME:t("locationName"),SET_LONGITUDE:t("longitude"),SET_PHONE_NUMBER_ID:E,SET_RECIPIENT_NUMBER:t("recipientNumber"),ON_MACHINE_LOAD:async({$:o})=>{d(o,[{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{p as default};
