PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / V_3.0.0
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder vV_3.0.0
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 / bf-421-225.js

bf-421-225.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder V_3.0.0, at assets/bf-421-225.js

2 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var j=Object.defineProperty;var u=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var x=(s,a,l)=>a in s?j(s,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):s[a]=l,d=(s,a)=>{for(var l in a||(a={}))b.call(a,l)&&x(s,l,a[l]);if(u)for(var l of u(a))v.call(a,l)&&x(s,l,a[l]);return s};import{u as g,j as e,_ as c,$ as F}from"./main-294.js";import{l as N}from"./bf-176-80.js";import{M as V}from"./bf-867-113.js";const o=(s,a,l,m)=>{const r=d({},l);r.field_map[a][s.target.name]=s.target.value,s.target.value==="custom"&&(r.field_map[a].customValue=""),m(d({},r))},_=(s,a,l,m)=>{const r=d({},l);r.field_map[a].customValue=s.target.value,m(d({},r))};function $({i:s,formFields:a,field:l,twilioConf:m,setTwilioConf:r}){var p;const n=g(F),{isPro:i}=n;return e.jsx("div",{className:"flx mt-2 mb-2 btcbi-field-map",children:e.jsx("div",{className:"pos-rel flx",children:e.jsxs("div",{className:"flx integ-fld-wrp",children:[e.jsxs("select",{className:"btcd-paper-inp mr-2",name:"formField",value:l.formField||"",onChange:t=>o(t,s,m,r),children:[e.jsx("option",{value:"",children:c("Select Field")}),e.jsx("optgroup",{label:"Form Fields",children:a==null?void 0:a.map(t=>e.jsx("option",{value:t.key,children:t.name},`ff-rm-${t.key}`))}),e.jsx("option",{value:"custom",children:c("Custom...")}),e.jsx("optgroup",{label:`General Smart Codes ${i?"":"(PRO)"}`,children:i&&((p=N)==null?void 0:p.map(t=>e.jsx("option",{value:t.name,children:t.label},`ff-rm-${t.name}`)))})]}),l.formField==="custom"&&e.jsx(V,{onChange:t=>_(t,s,m,r),label:c("Custom Value"),className:"mr-2",type:"text",value:l.customValue,placeholder:c("Custom Value")}),e.jsxs("select",{className:"btcd-paper-inp",disabled:!0,name:"twilioField",value:l.twilioField,onChange:t=>o(t,s,m,r),children:[e.jsx("option",{value:"",children:c("Select Field")}),m==null?void 0:m.twilioFields.map(({key:t,label:h})=>e.jsx("option",{value:t,children:h},t))]})]})})})}function T({formFields:s,twilioConf:a,setTwilioConf:l,setSnackbar:m}){return e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx("div",{className:"mt-5",children:e.jsx("b",{className:"wdt-100",children:c("Field Map")})}),e.jsx("div",{className:"btcd-hr mt-1"}),e.jsxs("div",{className:"flx flx-around mt-2 mb-2 btcbi-field-map-label",children:[e.jsx("div",{className:"txt-dp",children:e.jsx("b",{children:c("Form Fields")})}),e.jsx("div",{className:"txt-dp",children:e.jsx("b",{children:c("Twilio Fields")})})]}),a==null?void 0:a.field_map.map((r,n)=>e.jsx($,{i:n,field:r,twilioConf:a,formFields:s,setTwilioConf:l,setSnackbar:m},`rp-m-${n+9}`)),e.jsx("br",{})]})}export{T};
2