import{b as m,h as g,$ as h,k as j,i as C,j as t,_ as d}from"./main.2.8.1.js";import{u as S,h as b,d as c}from"./react-router-dom.9mCuUg3q.js";import{S as I}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S as _,I as w,s as v}from"./Integrations.D2bgBas2.js";import{S as N}from"./SureCartIntegLayout.BHSEK8IX.js";import{h as k,c as y}from"./SureCartCommonFunc.CXfk-Ps-.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";function G({allIntegURL:p}){const l=S(),{formID:f}=b(),[e,a]=m(g),[o,F]=m(h),i=j(C),[n,r]=c.useState(!1),[x,s]=c.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(I,{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:u=>k(u,e,a),name:"name",value:e.name,type:"text",placeholder:d("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(_,{entity:o.triggered_entity,setSnackbar:s}),t.jsx(N,{formID:f,formFields:i,sureCartConf:e,setSureCartConf:a,isLoading:n,setIsLoading:r,setSnackbar:s}),t.jsx(w,{edit:!0,saveConfig:()=>v({flow:o,allIntegURL:p,conf:e,navigate:l,edit:1,setIsLoading:r,setSnackbar:s}),disabled:!e.mainAction||n||!y(e.field_map),isLoading:n,dataConf:e,setDataConf:a,formFields:i}),t.jsx("br",{})]})}export{G as default};
