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