| 1 |
"use strict";(self.webpackChunk_bitforms=self.webpackChunk_bitforms||[]).push([[3234],{3234:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var s=n(7462),a=n(7294),i=n(5256),r=n(5637),o=n(5001),l=n(4383),d=n(5813),m=n(1212),f=n(1371),u=n(5893);const c=function(e){var t=e.formFields,n=e.setIntegration,c=e.integrations,b=e.allIntegURL,g=(0,i.k6)(),h=(0,i.UO)(),x=h.id,p=h.formID,k=(0,a.useState)((0,s.Z)({},c[x])),j=k[0],_=k[1],w=(0,a.useState)(!1),I=w[0],v=w[1],C=(0,a.useState)({show:!1}),N=C[0],S=C[1];return(0,u.jsxs)("div",{style:{width:900},children:[(0,u.jsx)(o.Z,{snack:N,setSnackbar:S}),(0,u.jsxs)("div",{className:"flx mt-3",children:[(0,u.jsx)("b",{className:"wdt-100 d-in-b",children:(0,r.__)("Integration Name:","bitform")}),(0,u.jsx)("input",{className:"btcd-paper-inp w-7",onChange:function(e){return(0,m.Rx)(e,p,j,_)},name:"name",value:j.name,type:"text",placeholder:(0,r.__)("Integration Name...","bitform")})]}),(0,u.jsx)("br",{}),(0,u.jsx)("br",{}),(0,u.jsx)(f.Z,{formID:p,formFields:t,handleInput:function(e){return(0,m.Rx)(e,p,j,_,v,S)},marketingHubConf:j,setMarketingHubConf:_,isLoading:I,setisLoading:v,setSnackbar:S}),(0,u.jsx)(d.Z,{edit:!0,saveConfig:function(){(0,m.Pd)(j)?(0,l.Mm)(c,n,b,j,g,x,1):S({show:!0,msg:(0,r.__)("Please map mandatory fields","bitform")})},disabled:""===j.list||""===j.table||j.field_map.length<1})]})}}}]); |