import{u as h,k as j,d as l,h as b,r as m,j as t}from"./main-406.js";import{g as I,$ as C,h as M,d as w,_ as c,i as _,I as v,s as N}from"./bi.394.85.js";import{M as S}from"./bi.840.881.js";import{h as f}from"./bi.99.882.js";import"./bi.704.707.js";import"./bi.701.708.js";function A({allIntegURL:p}){const x=h(),{formID:g}=j(),[s,a]=l(I),[r,y]=l(C),d=b(M),[n,i]=m.useState(!1),[u,e]=m.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:u,setSnackbar:e}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:o=>f(o,s,a),name:"name",value:s.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(_,{entity:r.triggered_entity,setSnackbar:e}),t.jsx(S,{formID:g,formFields:d,handleInput:o=>f(o,s,a,i),mailMintConf:s,setMailMintConf:a,isLoading:n,setIsLoading:i,setSnackbar:e}),t.jsx(v,{edit:!0,saveConfig:()=>N({flow:r,allIntegURL:p,conf:s,navigate:x,edit:1,setIsLoading:i,setSnackbar:e}),disabled:!s.mainAction||n,isLoading:n,dataConf:s,setDataConf:a,formFields:d}),t.jsx("br",{})]})}export{A as default};
