PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 1.5.2
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v1.5.2
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 2.10.2 All 137 releases
bit-form / assets / js / 7903.js

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

1 lines 5.7 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([[7903,117],{97903:(e,t,s)=>{s.r(t),s.d(t,{default:()=>g});var a=s(87462),i=s(67294),n=(s(78774),s(5977)),r=s(80160),l=s(35637),c=s(35001),d=s(33231),o=s(14383),m=s(85813),u=s(70117),b=s(21801),p=s(66918),f=s(85893);const g=function(e){var t=e.formFields,s=e.setIntegration,g=e.integrations,x=e.allIntegURL,h=(0,n.k6)(),y=(0,i.useState)(!1),_=y[0],j=y[1],v=(0,i.useState)(1),k=v[0],N=v[1],C=(0,i.useState)({show:!1}),I=C[0],S=C[1],Z=(0,i.useState)({name:"Getgist",type:"Getgist",api_key:"",field_map:[{formField:"",getgistFormField:""}],actions:{},gistFields:[{key:"name",label:"Name",required:!1},{key:"email",label:"Email",required:!0},{key:"phone",label:"Phone",required:!1},{key:"gender",label:"Gender",required:!1},{key:"country",label:"Country",required:!1},{key:"city",label:"City",required:!1},{key:"company_name",label:"Company Name",required:!1},{key:"industry",label:"Industry",required:!1},{key:"job_title",label:"Job Title",required:!1},{key:"last_name",label:"Last Name",required:!1},{key:"postal_code",label:"Postal Code",required:!1},{key:"state",label:"State",required:!1}]}),q=Z[0],w=Z[1];return document.querySelector(".btcd-s-wrp").scrollTop=0,(0,f.jsxs)("div",{children:[(0,f.jsx)(c.Z,{snack:I,setSnackbar:S}),(0,f.jsx)("div",{className:"txt-center w-9 mt-2",children:(0,f.jsx)(d.Z,{step:3,active:k})}),(0,f.jsx)(u.default,{getgistConf:q,setGetgistConf:w,step:k,setstep:N,isLoading:_,setIsLoading:j}),(0,f.jsxs)("div",{className:"btcd-stp-page",style:(0,a.Z)({},2===k&&{width:900,height:"auto",overflow:"visible"}),children:[(0,f.jsx)(p.Z,{formFields:t,handleInput:function(e){return(0,b.Rx)(e,q,w,j)},getgistConf:q,setGetgistConf:w,isLoading:_,setIsLoading:j}),(0,f.jsxs)("button",{onClick:function(){return e=3,void((0,b.Pd)(q)?q.field_map.length>0&&N(e):r.ZP.error("Please map mandatory fields"));var e},className:"btn f-right btcd-btn-lg green sh-sm flx",type:"button",children:[(0,l.__)("Next","bitform")," "," ",(0,f.jsx)("div",{className:"btcd-icn icn-arrow_back rev-icn d-in-b"})]})]}),(0,f.jsx)(m.Z,{step:k,saveConfig:function(){(0,o.Mm)(g,s,x,q,h)},isLoading:_,dataConf:q,setDataConf:w,formFields:t})]})}},70117:(e,t,s)=>{s.r(t),s.d(t,{default:()=>o});var a=s(87462),i=s(67294),n=s(41238),r=s(39492),l=s(35637),c=s(75257),d=s(85893);function o(e){var t=e.getgistConf,s=e.setGetgistConf,o=e.step,m=e.setstep,u=e.isInfo,b=(0,i.useState)(!1),p=b[0],f=b[1],g=(0,i.useState)({name:"",api_key:""}),x=g[0],h=g[1],y=(0,i.useState)(!1),_=y[0],j=y[1],v=(0,i.useState)(!1),k=v[0],N=v[1],C=function(e){var i=(0,a.Z)({},t),n=(0,a.Z)({},x);n[e.target.name]="",i[e.target.name]=e.target.value,h(n),s(i)};return(0,d.jsxs)("div",{className:"btcd-stp-page",style:(0,a.Z)({},{width:1===o&&900},{height:1===o&&"auto"}),children:[(0,d.jsx)("div",{className:"mt-3",children:(0,d.jsx)("b",{children:(0,l.__)("Integration Name:","bitform")})}),(0,d.jsx)("input",{className:"btcd-paper-inp w-6 mt-1",onChange:C,name:"name",value:t.name,type:"text",placeholder:(0,l.__)("Integration Name...","bitform"),disabled:u}),(0,d.jsx)("div",{style:{color:"red",fontSize:"15px"},children:x.name}),(0,d.jsx)("div",{className:"mt-3",children:(0,d.jsx)("b",{children:(0,l.__)("API Key:","bitform")})}),(0,d.jsx)("input",{className:"btcd-paper-inp w-6 mt-1",onChange:C,name:"api_key",value:t.api_key,type:"text",placeholder:(0,l.__)("Integration Name...","bitform"),disabled:u}),(0,d.jsx)("div",{style:{color:"red",fontSize:"15px"},children:x.api_key}),(0,d.jsxs)("small",{className:"d-blk mt-5",children:[(0,l.__)("To get API , Please Visit","bitform")," ",(0,d.jsx)("a",{className:"btcd-link",href:"https://app.getgist.com/projects/jgmmrszy/settings/api-key",target:"_blank",rel:"noreferrer",children:(0,l.__)("Getgist API Console","bitform")})]}),"auth"===k&&(0,d.jsxs)("div",{className:"flx mt-5",children:[(0,d.jsx)(c.Z,{size:25,clr:"#022217",className:"mr-2"}),"Checking API Key!!!"]}),_&&!p&&!k&&(0,d.jsxs)("div",{className:"flx mt-5",style:{color:"red"},children:[(0,d.jsx)("span",{className:"btcd-icn mr-2",style:{fontSize:30,marginTop:-5},children:"×"}),"Sorry, API key is invalid"]}),!u&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("button",{onClick:function(){var e=(0,a.Z)({},t);if(e.name&&e.api_key){N("auth");var s={api_key:e.api_key};(0,r.Z)(s,"bitforms_getgist_authorize").then((function(e){null!=e&&e.success&&f(!0),j(!0),N(!1)}))}else h({name:e.name?"":(0,l.__)("Integration name cann't be empty","bitform"),api_key:e.api_key?"":(0,l.__)("API Key cann't be empty","bitform")})},className:"btn btcd-btn-lg green sh-sm flx",type:"button",disabled:p||k,children:[p?(0,l.__)("Authorized ✔","bitform"):(0,l.__)("Authorize","bitform"),k&&(0,d.jsx)(c.Z,{size:20,clr:"#022217",className:"ml-2"})]}),(0,d.jsx)("br",{}),(0,d.jsxs)("button",{onClick:function(){return setTimeout((function(){document.getElementById("btcd-settings-wrp").scrollTop=0}),300),void m(2)},className:"btn f-right btcd-btn-lg green sh-sm flx",type:"button",disabled:!p,children:[(0,l.__)("Next","bitform"),(0,d.jsx)(n.Z,{className:"ml-1 rev-icn"})]})]})]})}},33231:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(67294),i=s(85893);const n=function(e){var t=e.step,s=e.active,n=e.className;return(0,i.jsx)("div",{className:"d-in-b "+n,children:(0,i.jsxs)("div",{className:"flx flx-center",children:[Array(s).fill(0).map((function(e,t){return(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)("div",{className:"btcd-stp flx flx-center stp-a txt-center",children:t+1}),s-1!==t&&(0,i.jsx)("div",{className:"btcd-stp-line stp-line-a"})]},"stp-"+(t+21))})),t-s!==0&&(0,i.jsx)("div",{className:"btcd-stp-line"}),Array(t-s).fill(0).map((function(e,n){return(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)("div",{className:"btcd-stp flx flx-center txt-center",children:n+s+1}),t-s-1!==n&&(0,i.jsx)("div",{className:"btcd-stp-line "})]},"stp-"+(n+23))}))]})})}}}]);