import{h as n,g as h,$ as b,k as C,i as w,j as t,_ as i}from"./main.2.9.0.js";import{u as I,e as S,b as r}from"./react-router.DMwpH23k.js";import{S as _}from"./SnackMsg.DYSD96P4.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import{S as v,I as N,s as k}from"./Integrations.DL8wqGct.js";import{h as y,c as F}from"./PCloudCommonFunc.C4W2SJmV.js";import{P}from"./PCloudIntegLayout.BAzk10UA.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.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};
