var i=Object.defineProperty;var u=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var p=(n,s,a)=>s in n?i(n,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[s]=a,l=(n,s)=>{for(var a in s||(s={}))j.call(s,a)&&p(n,a,s[a]);if(u)for(var a of u(s))h.call(s,a)&&p(n,a,s[a]);return n};import{j as t,_ as o}from"./main.2.8.10.js";import{u as b}from"./CopyIcn.BnhKHfEP.js";import{f as N}from"./Integrations.BFhED4ck.js";import{b as f}from"./react-router.DMwpH23k.js";function w({formFields:n,handleInput:s,twilioConf:a,setTwilioConf:c,isLoading:v,setIsLoading:y,setSnackbar:I}){const d=f.useRef(null),x=e=>{const r=l({},a);r[e.target.name]=e.target.value,c(r)},g=(e,r)=>{const m=l({},a);m[r]=e,c(l({},m))};return t.jsxs(t.Fragment,{children:[t.jsx("br",{}),t.jsxs("div",{className:"flx mt-4",children:[t.jsx("b",{className:"wdt-135 d-in-b",children:o("Select Number:","bit-integrations")}),t.jsx(b,{defaultValue:a==null?void 0:a.to,options:n.filter(e=>e.type!=="file").map(e=>({label:e.label,value:`\${${e.name}}`})),className:"btcd-paper-drpdwn wdt-400 ml-2",onChange:e=>g(e,"to"),customValue:!0,singleSelect:!0})]}),t.jsxs("div",{className:"flx mt-4",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:o("Messages:","bit-integrations")}),t.jsx("textarea",{ref:d,className:"w-7",onChange:x,name:"body",rows:"5",value:a.body}),t.jsx(b,{options:n.filter(e=>e.type!=="file").map(e=>({label:e.label,value:`\${${e.name}}`})),className:"btcd-paper-drpdwn wdt-400 ml-2",onChange:e=>N(e,c,d),singleSelect:!0,selectOnClose:!0})]}),t.jsx("br",{})]})}export{w as T};
