import{b as m,h,$ as C,k as j,i as b,j as t,_ as d}from"./main.2.8.1.js";import{u as F,h as I,d as c}from"./react-router-dom.9mCuUg3q.js";import{S as w}from"./SnackMsg.S8DrwLlT.js";import{S,I as _,s as v}from"./Integrations.D2bgBas2.js";import{h as N,F as k,c as y}from"./FluentCartIntegLayout.CRvbHaiM.js";import"./Note.BeM7sN-p.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./ProUtilHelpers.fQlR3mWW.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";import"./GlobalIntegrationHelper.CgnhJgll.js";function J({allIntegURL:l}){const p=F(),{id:E,formID:f}=I(),[e,a]=m(h),[n,u]=m(C),o=j(b),[i,r]=c.useState(!1),[x,s]=c.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:x,setSnackbar:s}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:d("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:g=>N(g,e,a),name:"name",value:e.name,type:"text",placeholder:d("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(S,{entity:n.triggered_entity,setSnackbar:s}),t.jsx(k,{formID:f,formFields:o,fluentCartConf:e,setFluentCartConf:a,setSnackbar:s,setIsLoading:r,isLoading:i}),t.jsx(_,{edit:!0,saveConfig:()=>v({flow:n,setFlow:u,allIntegURL:l,conf:e,navigate:p,edit:1,setIsLoading:r,setSnackbar:s}),disabled:!y(e),isLoading:i,dataConf:e,setDataConf:a,formFields:o}),t.jsx("br",{})]})}export{J as default};
