PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / V3.3.2
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder vV3.3.2
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-592-301.js

bf-592-301.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder V3.3.2, at assets/bf-592-301.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 j,g as b,i as $,u as M,m as N,H as w,j as e,_ as h,f as v,bI as A,b1 as C}from"./main-96.js";import{F as a}from"./bf-460-326.js";import{E as y}from"./bf-765-167.js";import{S as T}from"./bf-283-176.js";import"./bf-721-323.js";import"./bf-200-43.js";import"./bf-781-46.js";import"./bf-431-60.js";/* empty css */import"./bf-63-62.js";import"./bf-762-63.js";import"./bf-285-324.js";import"./bf-245-208.js";import"./bf-870-206.js";import"./bf-550-57.js";import"./bf-621-177.js";import"./bf-163-182.js";import"./bf-405-178.js";import"./bf-678-179.js";import"./bf-542-181.js";import"./bf-687-180.js";import"./bf-403-183.js";import"./bf-235-184.js";import"./bf-235-185.js";import"./bf-551-68.js";import"./bf-890-186.js";import"./bf-682-187.js";import"./bf-825-45.js";import"./bf-894-52.js";import"./bf-580-188.js";import"./bf-20-55.js";import"./bf-135-189.js";import"./bf-377-190.js";import"./bf-624-191.js";import"./bf-859-210.js";import"./bf-178-325.js";import"./bf-994-212.js";import"./bf-828-327.js";import"./bf-29-328.js";function ht(){const{css:n}=j(),{fieldKey:o}=b(),[l,V]=$(C),s=M(N);if(!o)return null;const i=w(l[o]),t=(s==null?void 0:s.err)||{},{minValue:u,maxValue:p}=i.config,d=(m,r)=>{var f,c;i.config[r]=m,r==="minValue"?i.err.minValue.dflt=((f=t==null?void 0:t[i.typ])==null?void 0:f.minValue)||(t==null?void 0:t.minValue)||`Invalid amount. The minimum amount allowed is ${m}.`:r==="maxValue"&&(i.err.maxValue.dflt=((c=t==null?void 0:t[i.typ])==null?void 0:c.maxValue)||(t==null?void 0:t.maxValue)||`Invalid amount. The maximum amount allowed is ${m}.`);const x=v(l,g=>{g[o]=i});V(x),A({event:`${S[r]} '${m}': ${i.lbl||o}`,type:`${r}_changed`,state:{fields:x,fldKey:o}})};return e.jsx(T,{id:"nmbr-stng",title:"Input Amount Range(Min/Max):",className:n(a.fieldSection),isPro:!0,proProperty:"minMaxValue",children:e.jsxs("div",{className:n({mx:5}),children:[e.jsxs("div",{className:n(a.fieldNumber,{py:"0px !important"}),children:[e.jsx("span",{children:h("Minimum amount:")}),e.jsx("input",{"data-testid":"nmbr-stng-min-inp",title:"Minimum amount for this field","aria-label":"Minimum amount for this field",placeholder:"Type minimum amount here...",className:n(a.input,a.w140),type:"number",value:u||"",onChange:m=>d(m.target.value,"minValue")})]}),u&&e.jsx(y,{id:"nmbr-stng-min",type:"minValue",title:"Minimum amount Error Message",tipTitle:`By enabling this feature, user will see the error message when input amount is less than ${u}`}),e.jsxs("div",{className:n(a.fieldNumber,{py:"0px !important"}),children:[e.jsx("span",{children:h("Maximum amount:")}),e.jsx("input",{"data-testid":"nmbr-stng-max-inp",title:"Maximum amount for this field","aria-label":"Maximum amount for this field",placeholder:"Type maximum amount here...",className:n(a.input,a.w140),type:"number",value:p||"",onChange:m=>d(m.target.value,"maxValue")})]}),p&&e.jsx(y,{id:"nmbr-stng-max",type:"maxValue",title:"Max Error Message",tipTitle:`By enabling this feature, user will see the error message when input amount is greater than ${p}`})]})})}const S={minValue:"Minimum Amount Changed to",maxValue:"Maximum Amount Changed to"};export{ht as default};
2