PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 1.4.18
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v1.4.18
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
bit-form / assets / js / 2574.js

2574.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 1.4.18, at assets/js/2574.js

1 lines 4.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 "use strict";(self.webpackChunk_bitforms=self.webpackChunk_bitforms||[]).push([[2574],{2574:(t,e,s)=>{s.r(e),s.d(e,{default:()=>g});var n=s(7294),a=(s(8774),s(5256)),i=s(1238),r=s(5637),l=s(5001),c=s(3231),o=s(4383),m=s(5813),d=s(7462),u=s(9492),f=s(5257),x=s(5893);function b(t){t.formID;var e=t.autonamiConf,s=t.setAutonamiConf,a=t.step,l=t.nextPage,c=t.setSnackbar,o=t.isInfo,m=(0,n.useState)(!1),b=m[0],h=m[1],p=(0,n.useState)({integrationName:""}),g=p[0],j=p[1],v=(0,n.useState)(!1),N=v[0],_=v[1],C=(0,n.useState)(!1),S=C[0],I=C[1],k=(0,n.useState)(!0),y=k[0],Z=k[1];(0,n.useEffect)((function(){return function(){Z(!1)}}),[]);return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)("div",{className:"btcd-stp-page",style:(0,d.Z)({},{width:1===a&&900},{height:1===a&&"100%"}),children:[(0,x.jsx)("div",{className:"mt-3",children:(0,x.jsx)("b",{children:(0,r.__)("Integration Name:","bitform")})}),(0,x.jsx)("input",{className:"btcd-paper-inp w-5 mt-1",onChange:function(t){var n=(0,d.Z)({},e),a=(0,d.Z)({},g);a[t.target.name]="",n[t.target.name]=t.target.value,j(a),s(n)},name:"name",value:e.name,type:"text",placeholder:(0,r.__)("Integration Name...","bitform"),disabled:o}),N&&!b&&!S&&(0,x.jsxs)("div",{className:"flx mt-4",style:{color:"red"},children:[(0,x.jsx)("span",{className:"btcd-icn mr-2",style:{fontSize:30,marginTop:-5},children:"×"}),"Please! First Install or Active Autonami Pro Plugin"]}),(0,x.jsxs)("button",{onClick:function(){I("auth"),(0,u.Z)({},"bitforms_autonami_authorize").then((function(t){y&&(null!=t&&t.success&&(h(!0),c({show:!0,msg:(0,r.__)("Connect Successfully","bitfrom")})),_(!0),I(!1))}))},className:"btn btcd-btn-lg green sh-sm flx",type:"button",disabled:b,children:[b?(0,r.__)("Connected ✔","bitform"):(0,r.__)("Connect to Autonami","bitform"),S&&(0,x.jsx)(f.Z,{size:20,clr:"#022217",className:"ml-2"})]}),(0,x.jsx)("br",{}),(0,x.jsxs)("button",{onClick:function(){return l(2)},className:"btn f-right btcd-btn-lg green sh-sm flx",type:"button",disabled:!b,children:[(0,r.__)("Next","bitform"),(0,x.jsx)(i.Z,{className:"ml-1 rev-icn"})]})]})})}var h=s(7301),p=s(4153);function g(t){var e=t.formFields,s=t.setIntegration,d=t.integrations,u=t.allIntegURL,f=(0,a.k6)(),g=(0,a.UO)().formID,j=(0,n.useState)(!1),v=j[0],N=j[1],_=(0,n.useState)(1),C=_[0],S=_[1],I=(0,n.useState)({show:!1}),k=I[0],y=I[1],Z=(0,n.useState)({name:"Autonami API",type:"Autonami",field_map:[{formField:"",autonamiField:""}],actions:{}}),A=Z[0],w=Z[1],F=function(t){if(2==t&&""!==A.name)(0,h.OC)(A,w,N,y),S(t);else if(3==t){if(!(0,h.Pd)(A))return void y({show:!0,msg:"Please map all required fields to continue."});A.field_map.length>0&&S(t)}document.getElementById("btcd-settings-wrp").scrollTop=0};return(0,x.jsxs)("div",{children:[(0,x.jsx)(l.Z,{snack:k,setSnackbar:y}),(0,x.jsx)("div",{className:"txt-center w-9 mt-2",children:(0,x.jsx)(c.Z,{step:3,active:C})}),(0,x.jsx)(b,{formID:g,autonamiConf:A,setAutonamiConf:w,step:C,nextPage:F,isLoading:v,setIsLoading:N,setSnackbar:y}),(0,x.jsxs)("div",{className:"btcd-stp-page",style:{width:2===C&&900,height:2===C&&"100%",minHeight:2===C&&"200px"},children:[(0,x.jsx)(p.Z,{formID:g,formFields:e,autonamiConf:A,setAutonamiConf:w,setIsLoading:N,setSnackbar:y}),(0,x.jsx)("br",{}),(0,x.jsx)("br",{}),(0,x.jsx)("br",{}),(0,x.jsxs)("button",{onClick:function(){return F(3)},disabled:A.field_map.length<1,className:"btn f-right btcd-btn-lg green sh-sm flx",type:"button",children:[(0,r.__)("Next","bitform"),(0,x.jsx)(i.Z,{className:"ml-1 rev-icn"})]})]}),(0,x.jsx)(m.Z,{step:C,saveConfig:function(){return(0,o.Mm)(d,s,u,A,f)}})]})}},3231:(t,e,s)=>{s.d(e,{Z:()=>i});var n=s(7294),a=s(5893);const i=function(t){var e=t.step,s=t.active,i=t.className;return(0,a.jsx)("div",{className:"d-in-b "+i,children:(0,a.jsxs)("div",{className:"flx flx-center",children:[Array(s).fill(0).map((function(t,e){return(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)("div",{className:"btcd-stp flx flx-center stp-a txt-center",children:e+1}),s-1!==e&&(0,a.jsx)("div",{className:"btcd-stp-line stp-line-a"})]},"stp-"+(e+21))})),e-s!==0&&(0,a.jsx)("div",{className:"btcd-stp-line"}),Array(e-s).fill(0).map((function(t,i){return(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)("div",{className:"btcd-stp flx flx-center txt-center",children:i+s+1}),e-s-1!==i&&(0,a.jsx)("div",{className:"btcd-stp-line "})]},"stp-"+(i+23))}))]})})}}}]);