import{h as d,g as b,$ as u,k as j,i as I,j as e,_ as p}from"./main.2.8.10.js";import{u as C,e as P,b as c}from"./react-router.DMwpH23k.js";import{S as v}from"./SnackMsg.7BjcJK1j.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import{S as w,I as S,s as _}from"./Integrations.BFhED4ck.js";import{h as l,P as M}from"./PaidMembershipProIntegLayout.BBaYcz7P.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";function q({allIntegURL:f}){const x=C(),{formID:g}=P(),[t,s]=d(b),[r,N]=d(u),m=j(I),[i,n]=c.useState(!1),[h,a]=c.useState({show:!1});return e.jsxs("div",{style:{width:900},children:[e.jsx(v,{snack:h,setSnackbar:a}),e.jsxs("div",{className:"flx mt-3",children:[e.jsx("b",{className:"wdt-200 d-in-b",children:p("Integration Name:","bit-integrations")}),e.jsx("input",{className:"btcd-paper-inp w-5",onChange:o=>l(o,t,s),name:"name",value:t.name,type:"text",placeholder:p("Integration Name...","bit-integrations")})]}),e.jsx("br",{}),e.jsx("br",{}),e.jsx(w,{entity:r.triggered_entity,setSnackbar:a}),e.jsx(M,{formID:g,formFields:m,handleInput:o=>l(o,t,s,n),paidMembershipProConf:t,setPaidMembershipProConf:s,isLoading:i,setIsLoading:n,setSnackbar:a}),e.jsx(S,{edit:!0,saveConfig:()=>_({flow:r,allIntegURL:f,conf:t,navigate:x,edit:1,setIsLoading:n,setSnackbar:a}),disabled:!t.mainAction||i||t.selectedMembership===void 0,isLoading:i,dataConf:t,setDataConf:s,formFields:m}),e.jsx("br",{})]})}export{q as default};
