import{h as n,g as h,$ as b,k as C,i as w,j as t,_ as i}from"./main.2.8.10.js";import{u as I,e as S,b as r}from"./react-router.DMwpH23k.js";import{S as _}from"./SnackMsg.7BjcJK1j.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import{S as v,I as N,s as k}from"./Integrations.BFhED4ck.js";import{h as y,c as F}from"./PCloudCommonFunc.CgTQgi5q.js";import{P}from"./PCloudIntegLayout.DftN34Av.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";function G({allIntegURL:d}){const m=I(),{id:c}=S(),[s,a]=n(h),[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:j=>y(j,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{G as default};
