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.1.js";import{x}from"./Note.BeM7sN-p.js";import{f as N}from"./Integrations.D2bgBas2.js";import{d as f}from"./react-router-dom.9mCuUg3q.js";function w({formFields:n,handleInput:s,twilioConf:a,setTwilioConf:d,isLoading:v,setIsLoading:y,setSnackbar:I}){const c=f.useRef(null),b=e=>{const r=l({},a);r[e.target.name]=e.target.value,d(r)},g=(e,r)=>{const m=l({},a);m[r]=e,d(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(x,{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:c,className:"w-7",onChange:b,name:"body",rows:"5",value:a.body}),t.jsx(x,{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,d,c),singleSelect:!0,selectOnClose:!0})]}),t.jsx("br",{})]})}export{w as T};
