import{b as d,h as g,$ as u,k as j,i as I,j as e,_ as p}from"./main.2.8.1.js";import{u as C,h as P,d as c}from"./react-router-dom.9mCuUg3q.js";import{S as v}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S as w,I as S,s as _}from"./Integrations.D2bgBas2.js";import{h as l,P as M}from"./PaidMembershipProIntegLayout.Bp_SPT83.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";function T({allIntegURL:f}){const x=C(),{formID:h}=P(),[t,s]=d(g),[r,N]=d(u),m=j(I),[i,n]=c.useState(!1),[b,a]=c.useState({show:!1});return e.jsxs("div",{style:{width:900},children:[e.jsx(v,{snack:b,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:h,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{T as default};
