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