var w=Object.defineProperty;var p=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var j=(i,t,e)=>t in i?w(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,c=(i,t)=>{for(var e in t||(t={}))E.call(t,e)&&j(i,e,t[e]);if(p)for(var e of p(t))_.call(t,e)&&j(i,e,t[e]);return i};import{j as s,_ as n}from"./main.2.8.1.js";import{d as N}from"./react-router-dom.9mCuUg3q.js";import{z as A}from"./Note.BeM7sN-p.js";import{b as F,a as I}from"./FluentSupportCommonFunc.CaYVWEWn.js";import{t as f}from"./tutorialLinks.kMkIDzcD.js";import{T as k}from"./TutorialLink.BAFX--T3.js";import"./CopyIcn.3gZpHton.js";function K({formID:i,fluentSupportConf:t,setFluentSupportConf:e,step:m,setstep:y,isLoading:l,setIsLoading:d,setSnackbar:b,redirectLocation:C,isInfo:u}){const[r,v]=N.useState(!1),[z,x]=N.useState({api_key:""}),{fluentSupport:a}=f,L=()=>{setTimeout(()=>{document.getElementById("btcd-settings-wrp").scrollTop=0},300),I(t,e,d,b),y(2)},T=o=>{const h=c({},t),g=c({},z);g[o.target.name]="",h[o.target.name]=o.target.value,x(g),e(h)};return s.jsxs("div",{className:"btcd-stp-page",style:{width:m===1&&900,height:m===1&&"auto"},children:[s.jsx(k,{title:"Fluent Support",youTubeLink:a==null?void 0:a.youTubeLink}),s.jsx(k,{title:"Fluent Support",docLink:a==null?void 0:a.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:T,name:"name",value:t.name,type:"text",placeholder:n("Integration Name...","bit-integrations"),disabled:u}),!u&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:()=>F(t,e,x,v,d,b),className:"btn btcd-btn-lg purple sh-sm flx",type:"button",disabled:r||l,children:[r?n("Connected ✔","bit-integrations"):n("Connect to Fluent Support","bit-integrations"),l&&s.jsx(A,{size:"20",clr:"#022217",className:"ml-2"})]}),s.jsx("br",{}),s.jsxs("button",{onClick:L,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{K as default};
