import{h as d,g as h,$ as j,k as S,i as b,j as t,_ as i}from"./main.2.8.10.js";import{u as _,b as p}from"./react-router.DMwpH23k.js";import{S as w}from"./SnackMsg.7BjcJK1j.js";import{S as C,I,s as v}from"./Integrations.BFhED4ck.js";import{h as y,S as N,c}from"./SeoPressIntegLayout.m5ab2Ez6.js";import"./react-vendor.P7K3d6op.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.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:l}){const f=_(),[e,a]=d(h),[o,k]=d(j),n=S(b),[r,m]=p.useState(!1),[g,s]=p.useState({show:!1}),x=()=>{if(!c(e)){s({show:!0,msg:i("Please map mandatory fields","bit-integrations")});return}v({flow:o,allIntegURL:l,conf:e,navigate:f,edit:1,setIsLoading:m,setSnackbar:s})};return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:g,setSnackbar:s}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:i("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:u=>y(u,e,a),name:"name",value:e.name,type:"text",placeholder:i("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(C,{entity:o.triggered_entity_id}),t.jsx(N,{formID:o.triggered_entity_id,formFields:n,seoPressConf:e,setSeoPressConf:a,isLoading:r,setIsLoading:m,setSnackbar:s}),t.jsx(I,{edit:!0,saveConfig:x,disabled:!c(e),isLoading:r,dataConf:e,setDataConf:a,formFields:n}),t.jsx("br",{})]})}export{H as default};
