var w=Object.defineProperty;var x=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var g=(r,t,e)=>t in r?w(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,o=(r,t)=>{for(var e in t||(t={}))z.call(t,e)&&g(r,e,t[e]);if(x)for(var e of x(t))E.call(t,e)&&g(r,e,t[e]);return r};import{j as s,_ as a}from"./main.2.8.10.js";import{b as j}from"./react-router.DMwpH23k.js";import{y as _}from"./Note.DalStCGz.js";import{b as A,a as T}from"./FluentSupportCommonFunc.BqpnS96O.js";import{T as I}from"./TutorialLink.D6K_DiHL.js";import"./react-vendor.P7K3d6op.js";import"./CopyIcn.BnhKHfEP.js";function G({formID:r,fluentSupportConf:t,setFluentSupportConf:e,step:c,setstep:N,isLoading:m,setIsLoading:l,setSnackbar:d,redirectLocation:C,isInfo:b}){const[i,y]=j.useState(!1),[v,p]=j.useState({api_key:""}),f=()=>{setTimeout(()=>{document.getElementById("btcd-settings-wrp").scrollTop=0},300),T(t,e,l,d),N(2)},k=n=>{const u=o({},t),h=o({},v);h[n.target.name]="",u[n.target.name]=n.target.value,p(h),e(u)};return s.jsxs("div",{className:"btcd-stp-page",style:{width:c===1&&900,height:c===1&&"auto"},children:[s.jsx(I,{linkKey:"fluentSupport"}),s.jsx("div",{className:"mt-3",children:s.jsx("b",{children:a("Integration Name:","bit-integrations")})}),s.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:k,name:"name",value:t.name,type:"text",placeholder:a("Integration Name...","bit-integrations"),disabled:b}),!b&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:()=>A(t,e,p,y,l,d),className:"btn btcd-btn-lg purple sh-sm flx",type:"button",disabled:i||m,children:[i?a("Connected ✔","bit-integrations"):a("Connect to Fluent Support","bit-integrations"),m&&s.jsx(_,{size:"20",clr:"#022217",className:"ml-2"})]}),s.jsx("br",{}),s.jsxs("button",{onClick:f,className:"btn f-right btcd-btn-lg purple sh-sm flx",type:"button",disabled:!i,children:[a("Next","bit-integrations"),s.jsx("div",{className:"btcd-icn icn-arrow_back rev-icn d-in-b"})]})]})]})}export{G as default};
