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