import{b as n,h as j,$ as b,k as C,i as w,j as t,_ as i}from"./main.2.8.1.js";import{u as I,h as S,d as r}from"./react-router-dom.9mCuUg3q.js";import{S as _}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S as v,I as N,s as k}from"./Integrations.D2bgBas2.js";import{h as y,c as F}from"./PCloudCommonFunc.Cqma_rgn.js";import{P}from"./PCloudIntegLayout.CAylrS1f.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";function B({allIntegURL:d}){const m=I(),{id:c}=S(),[s,a]=n(j),[o,l]=n(b),p=C(w),[f,x]=r.useState(!1),[u,e]=r.useState({show:!1}),g=()=>{k({flow:o,setFlow:l,allIntegURL:d,conf:s,navigate:m,edit:1,setIsLoading:x,setSnackbar:e})};return t.jsxs("div",{style:{width:900},children:[t.jsx(_,{snack:u,setSnackbar:e}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:i("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:h=>y(h,s,a),name:"name",value:s.name,type:"text",placeholder:i("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(v,{entity:o.triggered_entity,setSnackbar:e}),t.jsx(P,{flowID:c,formFields:p,pCloudConf:s,setPCloudConf:a}),t.jsx(N,{edit:!0,saveConfig:g,disabled:!F(s),isLoading:f}),t.jsx("br",{})]})}export{B as default};
