var f=Object.defineProperty;var x=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var h=(t,a,e)=>a in t?f(t,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[a]=e,m=(t,a)=>{for(var e in a||(a={}))z.call(a,e)&&h(t,e,a[e]);if(x)for(var e of x(a))L.call(a,e)&&h(t,e,a[e]);return t};import{j as s,_ as i}from"./main.2.8.1.js";import{d as g}from"./react-router-dom.9mCuUg3q.js";import{z as w}from"./Note.BeM7sN-p.js";import{k as T}from"./jetEngineCommonFunctions.DB_uIAts.js";import{t as A}from"./tutorialLinks.kMkIDzcD.js";import{T as I}from"./TutorialLink.BAFX--T3.js";import"./CopyIcn.3gZpHton.js";function F({jetEngineConf:t,setJetEngineConf:a,step:e,setStep:N,loading:n,setLoading:k,isInfo:d}){const[o,v]=g.useState(!1),[c,u]=g.useState({name:""}),{jetEngine:r}=A,j=()=>{setTimeout(()=>{document.getElementById("btcd-settings-wrp").scrollTop=0},300),t!=null&&t.default,N(2)},y=l=>{const b=m({},t),p=m({},c);p[l.target.name]="",b[l.target.name]=l.target.value,u(p),a(b)};return s.jsxs("div",{className:"btcd-stp-page",style:{width:e===1&&900,height:e===1&&"auto"},children:[r==null?void 0:r.youTubeLink,s.jsx(I,{title:"jet Engine",docLink:r==null?void 0:r.docLink}),s.jsx("div",{className:"mt-3",children:s.jsx("b",{children:i("Integration Name:","bit-integrations")})}),s.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:y,name:"name",value:t.name,type:"text",placeholder:i("Integration Name...","bit-integrations"),disabled:d}),c.name&&s.jsx("div",{style:{color:"red",fontSize:"15px"},children:c.name}),s.jsx("br",{}),!d&&s.jsxs("div",{children:[s.jsxs("button",{onClick:()=>T(t,u,v,n,k),className:"btn btcd-btn-lg purple sh-sm flx",type:"button",disabled:o||n.auth,children:[o?i("Connected ✔","bit-integrations"):i("Connect to JetEngine","bit-integrations"),n.auth&&s.jsx(w,{size:"20",clr:"#022217",className:"ml-2"})]}),s.jsx("br",{}),s.jsxs("button",{onClick:j,className:"btn ml-auto btcd-btn-lg purple sh-sm flx",type:"button",disabled:!o,children:[i("Next","bit-integrations"),s.jsx("div",{className:"btcd-icn icn-arrow_back rev-icn d-in-b"})]})]})]})}export{F as default};
