import{h as m,g,$ as j,k as C,i as h,j as t,_ as c}from"./main.2.9.0.js";import{u as S,e as b,b as d}from"./react-router.DMwpH23k.js";import{S as I}from"./SnackMsg.DYSD96P4.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import{S as _,I as w,s as v}from"./Integrations.DL8wqGct.js";import{S as N}from"./SureCartIntegLayout.BIS4JzRT.js";import{h as k,c as y}from"./SureCartCommonFunc.Dg-L9hYE.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./TagifyInput.KPPRQJ1B.js";import"./lodash.DCvQBX3r.js";function H({allIntegURL:p}){const l=S(),{formID:f}=b(),[e,a]=m(g),[n,F]=m(j),i=C(h),[o,r]=d.useState(!1),[x,s]=d.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:c("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:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(_,{entity:n.triggered_entity,setSnackbar:s}),t.jsx(N,{formID:f,formFields:i,sureCartConf:e,setSureCartConf:a,isLoading:o,setIsLoading:r,setSnackbar:s}),t.jsx(w,{edit:!0,saveConfig:()=>v({flow:n,allIntegURL:p,conf:e,navigate:l,edit:1,setIsLoading:r,setSnackbar:s}),disabled:!e.mainAction||o||!y(e.field_map),isLoading:o,dataConf:e,setDataConf:a,formFields:i}),t.jsx("br",{})]})}export{H as default};
