PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 2.10.0
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v2.10.0
V3.3.2 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 All 139 releases
bit-form / assets / bf-165-269.js

bf-165-269.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 2.10.0, at assets/bf-165-269.js

9 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var T=Object.defineProperty;var x=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var b=(t,s,a)=>s in t?T(t,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[s]=a,l=(t,s)=>{for(var a in s||(s={}))P.call(s,a)&&b(t,a,s[a]);if(x)for(var a of x(s))f.call(s,a)&&b(t,a,s[a]);return t};import{r as j,j as e,_ as r}from"./main-162.js";import{t as v}from"./bf-307-196.js";import{N as z}from"./bf-182-400.js";import{T as I}from"./bf-23-135.js";import{A as _}from"./bf-272-398.js";import{N as M}from"./bf-823-399.js";import{m as S}from"./bf-210-394.js";import"./bf-151-190.js";/* empty css */import"./bf-875-77.js";import"./bf-230-72.js";import"./bf-917-73.js";import"./bf-644-69.js";function U({mailerLiteConf:t,setMailerLiteConf:s,step:a,setstep:k,isLoading:N,setIsLoading:g,isInfo:n}){const[d,A]=j.useState(!1),[c,m]=j.useState({name:"",auth_token:""}),y=()=>{t!=null&&t.default,k(2),document.querySelector(".btcd-s-wrp").scrollTop=0},i=o=>{const p=l({},t),u=l({},c);u[o.target.name]="",p[o.target.name]=o.target.value,m(u),s(p)},h=t.version==="v2"?"https://dashboard.mailerlite.com/integrations/api":"https://app.mailerlite.com/integrations/api/",w=`
2 <h4> Step of generate API token:</h4>
3 <ul>
4 <li>Goto <a href=${h}>Generate API Token</a></li>
5 <li>Copy the <b>Token</b> and paste into <b>API Token</b> field of your authorization form.</li>
6 <li>Finally, click <b>Authorize</b> button.</li>
7 </ul>
8 `;return e.jsxs("div",{className:"btcd-stp-page",style:{width:a===1&&900,height:a===1&&"auto"},children:[e.jsx(I,{title:v.mailerlite.title,youTubeLink:v.mailerlite.link}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:r("Integration Name:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:i,name:"name",value:t.name,type:"text",placeholder:r("Integration Name..."),disabled:n}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:r("Select Version:")})}),e.jsxs("div",{className:"flex items-center w-6 mt-3",children:[e.jsx("input",{id:"MailerLiteClassic",type:"radio",name:"version",value:"v1",className:"hidden",checked:t.version==="v1",onChange:i}),e.jsxs("label",{for:"MailerLiteClassic",children:[e.jsx("span",{className:"w-4 h-4 inline-block mr-1 border border-grey"}),"MailerLite Classic"]})]}),e.jsxs("div",{className:"flex items-center mr-4 mt-2 mb-4",children:[e.jsx("input",{id:"MailerLiteNew",type:"radio",name:"version",value:"v2",className:"hidden",checked:t.version==="v2",onChange:i}),e.jsxs("label",{for:"MailerLiteNew",children:[e.jsx("span",{className:"w-4 h-4 inline-block mr-1 border border-grey"}),"MailerLite New"]})]}),e.jsxs("small",{className:"d-blk mt-3",children:[r("To Get API token, Please Visit")," ",e.jsx("a",{className:"btcd-link",href:h,target:"_blank",rel:"noreferrer",children:r("MailerLite API Token")})]}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:r("API Token:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:i,name:"auth_token",value:t.auth_token,type:"text",placeholder:r("API Token..."),disabled:n}),e.jsx("div",{style:{color:"red",fontSize:"15px"},children:c.auth_token}),!n&&e.jsxs("div",{children:[e.jsx(_,{isAuthorized:d,isLoading:N,disabled:t.version===void 0||t.version==="",handleAuthorize:()=>S(t,s,m,A,g,"authorization")}),e.jsx("br",{}),e.jsx(M,{nextPageHandler:()=>y(),disabled:!d})]}),e.jsx(z,{note:w})]})}export{U as default};
9