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

1477.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 2.9.1, at v1/assets/js/1477.js

1 lines 2.6 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([[1477],{41477:(e,t,l)=>{l.r(t),l.d(t,{default:()=>h});var a=l(18846),s=l(83442),n=l(78736),i=l(48291),r=l(90794),o=l(46457),c=l(32198),m=l(51108),d=l(43502),u=l(65362),p=l(4637);const h=function(){var e=(0,s.UO)(),t=e.formType,l=e.formID,h=e.id,b=(0,s.k6)(),f=(0,i.FV)(r.u),x=f[0],j=f[1],v=(0,i.sJ)(r.uJ),_=(0,i.sJ)(r.hi).isPro;return x.length<1?(0,p.jsx)(s.l_,{to:"/form/settings/edit/"+l+"/email-templates"}):(0,p.jsxs)("div",{style:{width:900},children:[(0,p.jsxs)(n.OL,{to:"/form/settings/"+t+"/"+l+"/email-templates",className:"btn btcd-btn-o-gray",children:[(0,p.jsx)(o.Z,{className:"mr-1"}),(0,m.__)("Back","bitform")]}),(0,p.jsx)("button",{id:"secondary-update-btn",onClick:function(){var e=(0,a.ZP)(x,(function(e){e.push({updateTem:1})}));j(e),b.push("/form/settings/"+t+"/"+l+"/email-templates")},className:"btn blue f-right",type:"button",children:(0,m.__)("Update Template","bitform")}),(0,p.jsxs)("div",{className:"mt-3 flx",children:[(0,p.jsx)("b",{style:{width:102},children:(0,m.__)("Template Name:","bitform")}),(0,p.jsx)("input",{onChange:function(e){var t=(0,c.p$)(x);t[h].title=e.target.value,j(t)},type:"text",className:"btcd-paper-inp w-9",placeholder:"Name",value:x[h].title})]}),(0,p.jsxs)("div",{className:"mt-3 flx",children:[(0,p.jsx)("b",{style:{width:100},children:(0,m.__)("Subject:","bitform")}),(0,p.jsx)("input",{onChange:function(e){var t=(0,c.p$)(x);t[h].sub=e.target.value,j(t)},type:"text",className:"btcd-paper-inp w-7",placeholder:(0,m.__)("Email Subject Here","bitform"),value:x[h].sub}),(0,p.jsxs)("select",{onChange:function(e){var t=(0,c.p$)(x);t[h].sub+=e.target.value,j(t)},className:"btcd-paper-inp ml-2",style:{width:150},children:[(0,p.jsx)("option",{value:"",children:(0,m.__)("Add field","bitform")}),(0,p.jsx)("optgroup",{label:"Form Fields",children:null!==v&&v.map((function(e){return!e.type.match(/^(file-up|recaptcha)$/)&&(0,p.jsx)("option",{value:"${"+e.key+"}",children:e.name},e.key)}))}),(0,p.jsx)("optgroup",{label:"General Smart Codes "+(_?"":"(PRO)"),children:_&&(null==d.C?void 0:d.C.map((function(e){return(0,p.jsx)("option",{value:"${"+e.name+"}",children:e.label},"ff-rm-"+e.name)})))})]})]}),(0,p.jsxs)("div",{className:"mt-3",children:[(0,p.jsx)("div",{children:(0,p.jsx)("b",{children:(0,m.__)("Body:","bitform")})}),(0,p.jsx)("label",{htmlFor:"t-m-e-"+h+"-"+l,className:"mt-2 w-10",children:(0,p.jsx)(u.Z,{id:"mail-tem-"+l,formFields:v,value:x[h].body,onChangeHandler:function(e){j((function(t){return(0,a.ZP)(t,(function(t){t[h].body=e}))}))},width:"100%"})})]})]})}}}]);