PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.1.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.1.1
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-711-281.js

bf-711-281.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 3.1.1, at assets/bf-711-281.js

2 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import{a as N,g as F,i as S,aH as T,u as _,k as R,H as A,j as t,_ as c,I as g,f as h,bG as v}from"./main-634.js";import{F as s}from"./bf-767-388.js";import{E as y}from"./bf-178-233.js";import{S as B}from"./bf-982-242.js";import"./bf-692-111.js";import"./bf-400-72.js";import"./bf-25-81.js";import"./bf-438-114.js";import"./bf-486-243.js";import"./bf-497-246.js";import"./bf-723-244.js";import"./bf-299-245.js";import"./bf-534-247.js";import"./bf-962-248.js";import"./bf-343-249.js";import"./bf-791-250.js";import"./bf-641-107.js";import"./bf-570-251.js";import"./bf-838-80.js";import"./bf-297-103.js";import"./bf-284-252.js";import"./bf-17-106.js";import"./bf-671-253.js";import"./bf-334-254.js";import"./bf-710-385.js";import"./bf-676-386.js";import"./bf-638-271.js";import"./bf-247-269.js";import"./bf-423-273.js";import"./bf-457-387.js";import"./bf-577-275.js";import"./bf-288-389.js";import"./bf-939-390.js";function de(){const{css:m}=N(),{fieldKey:r}=F(),[o,u]=S(T),b=_(R);if(!r)return null;const e=A(o[r]),d=e.typ||"text",x=d==="range"?"number":d,f=e.adminLbl||"",M=e.mn||"",j=e.mx||"",a=b.err||{},$=i=>{var l;if(!g)return;i.target.value===""?delete e.mn:(e.mn=i.target.value,e.err||(e.err={}),e.err.mn||(e.err.mn={}),e.err.mn.dflt=((l=a[e.typ])==null?void 0:l.mn)||(a==null?void 0:a.mn)||`<p style="margin:0">Minimum number is ${i.target.value}<p>`,e.err.mn.show=!0);const n=h(o,p=>{p[r]=e});u(n),v({event:`Min value updated to ${i.target.value}: ${e.lbl||f||r}`,type:"set_min",state:{fields:n,fldKey:r}})},w=i=>{var l;if(!g)return;i.target.value===""?delete e.mx:(e.mx=i.target.value,e.err||(e.err={}),e.err.mx||(e.err.mx={}),e.err.mx.dflt=((l=a[e.typ])==null?void 0:l.mx)||(a==null?void 0:a.mx)||`<p style="margin:0">Maximum number is ${i.target.value}</p>`,e.err.mx.show=!0);const n=h(o,p=>{p[r]=e});u(n),v({event:`Max value updated to ${i.target.value}: ${e.lbl||f||r}`,type:"set_max",state:{fields:n,fldKey:r}})};return t.jsx(B,{id:"nmbr-stng",title:"Value Range(Min/Max):",className:m(s.fieldSection),isPro:!0,children:t.jsxs("div",{className:m({mx:5}),children:[t.jsxs("div",{className:m(s.fieldNumber,{py:"0px !important"}),children:[t.jsx("span",{children:c("Minimum:")}),t.jsx("input",{"data-testid":"nmbr-stng-min-inp",title:"Minimum value for this field","aria-label":"Minimum value for this field",placeholder:"Type minimum value here...",className:m(s.input,s.w140),type:x,value:M,onChange:$})]}),e.mn&&t.jsx(y,{id:"nmbr-stng-min",type:"mn",title:"Min Error Message",tipTitle:`By enabling this feature, user will see the error message when input value is less than ${e.mn}`}),t.jsxs("div",{className:m(s.fieldNumber,{py:"0px !important"}),children:[t.jsx("span",{children:c("Maximum:")}),t.jsx("input",{"data-testid":"nmbr-stng-max-inp",title:"Maximum value for this field","aria-label":"Maximum value for this field",placeholder:"Type maximun value here...",className:m(s.input,s.w140),type:x,value:j,onChange:w})]}),e.mx&&t.jsx(y,{id:"nmbr-stng-max",type:"mx",title:"Max Error Message",tipTitle:`By enabling this feature, user will see the error message when input value is greater than ${e.mx}`})]})})}export{de as default};
2