var b=Object.defineProperty,w=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var u=(a,e,t)=>e in a?b(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,g=(a,e)=>{for(var t in e||(e={}))I.call(e,t)&&u(a,t,e[t]);if(f)for(var t of f(e))N.call(e,t)&&u(a,t,e[t]);return a},x=(a,e)=>w(a,y(e));import{u as S,r as d,h,d as E,j as s}from"./main-406.js";import{$ as M,g as L,h as $,d as k,_ as j,i as F,I as R}from"./bi.394.85.js";import{h as U,s as D}from"./bi.938.823.js";import{M as K}from"./bi.515.824.js";import"./bi.968.816.js";import"./bi.704.707.js";import"./bi.701.708.js";function O({allIntegURL:a}){const e=S(),[t,l]=d.useState({show:!1}),c=h(M),[n,i]=E(L),[C,_]=d.useState({name:"",authKey:""}),m=h($),[o,p]=d.useState({auth:!1,list:!1,page:!1,update:!1}),v=r=>{p(x(g({},o),{update:r}))};return s.jsxs("div",{style:{width:900},children:[s.jsx(k,{snack:t,setSnackbar:l}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:j("Integration Name:","bit-integrations")}),s.jsx("input",{className:"btcd-paper-inp w-5",name:"name",onChange:r=>U(r,n,i,C,_),value:n.name,type:"text",placeholder:j("Integration Name...","bit-integrations")})]}),s.jsx("div",{className:"my-3",children:s.jsx(F,{entity:c.triggered_entity,setSnackbar:l})}),s.jsx(K,{mailercloudConf:n,setMailercloudConf:i,formFields:m,loading:o,setLoading:p}),s.jsx(R,{edit:!0,saveConfig:()=>{D(c,a,n,e,{edit:1},v)},isLoading:o.update,disabled:n.field_map.length<1,dataConf:n,setDataConf:i,formFields:m})]})}export{O as default};
