# bit-form/3.3.1/assets/bf-350-311.js

Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator &amp; Custom Form Builder, version 3.3.1. 2 lines.

- Page: https://pluginprobe.com/plugins/bit-form/3.3.1/code/assets/bf-350-311.js
- Raw: https://pluginprobe.com/plugins/bit-form/3.3.1/raw/assets/bf-350-311.js
- Modified: 2026-09-16T12:36:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/bit-form/3.3.1/code/assets/bf-350-311.js#L10-L20`.

```javascript
import{i as T,g as U,u as h,ay as $,at as N,r as y,a as C,H as L,j as n,_ as p,M as R,em as S,f as m,aY as c,bI as b,eo as w,dg as z,ep as E,b1 as K}from"./main-762.js";import{t as V,F}from"./bf-842-324.js";import{F as d}from"./bf-850-326.js";import{A as q}from"./bf-968-323.js";import{I as Y}from"./bf-466-325.js";import{S as k}from"./bf-45-176.js";import"./bf-747-208.js";import"./bf-537-206.js";import"./bf-685-46.js";import"./bf-610-181.js";import"./bf-734-179.js";import"./bf-111-180.js";import"./bf-848-68.js";import"./bf-81-43.js";import"./bf-871-60.js";/* empty css         */import"./bf-435-62.js";import"./bf-653-63.js";import"./bf-775-182.js";function ue(){const[r,a]=T(K),{fieldKey:t}=U(),I=h($),j=h(N),[v,u]=y.useState(!1),[H,_]=y.useState(""),{css:l}=C(),e=L(r[t]),f=(e==null?void 0:e.undoBtn)||"",x=e.adminLbl||"",M=({target:{checked:o}})=>{o?(e.undoBtn=p("Undo"),e.undoBtnHide=!1,S(I,"undoBtn")):(delete e.undoBtn,delete e.undoPreIcn,delete e.undoSufIcn,e.undoBtnHide=!0);const s=o?"on":"off",i=m(r,A=>{A[t]=e});a(i),c(t),b({event:`Undo Button ${s}:  ${f||x||t}`,type:`undo_btn_${s}`,state:{fields:i,fldKey:t}})},P=({target:{value:o}})=>{o===""?(delete e.undoBtn,c(t)):e.undoBtn=o;const s=m(r,i=>{i[t]=e});a(s),c(t),b({event:`Undo btn text updated: ${x||e.undoBtn||t}`,type:"change_undo_btn_txt",state:{fields:s,fldKey:t}})},g=o=>{w(j,t,z[o])||S(I,o),E(o,t),_(o),u(!0)},B=o=>{if(e[o]){delete e[o];const s=m(r,i=>{i[t]=e});a(s),c(t)}};return n.jsxs("div",{children:[n.jsxs(k,{id:"undo-button-stng",title:p("Undo Button"),className:l(d.fieldSection,d.hover_tip),switching:!0,tip:V.undoBtn,tipProps:{width:250,icnSize:17},toggleAction:M,toggleChecked:!(e!=null&&e.undoBtnHide),open:!(e!=null&&e.undoBtnHide),disable:e==null?void 0:e.undoBtnHide,children:[n.jsx("div",{className:l(d.placeholder),children:n.jsx(q,{id:"undo-btn-stng",ariaLabel:"Undo Button for this Field",placeholder:"Type undo button txt here...",value:f,changeAction:P})}),n.jsxs("div",{className:l(d.iconLayoutHorizontal),children:[n.jsx(F,{label:"Leading Icon",iconSrc:e==null?void 0:e.undoPreIcn,styleRoute:"undo-btn-pre-i",setIcon:()=>g("undoPreIcn"),removeIcon:()=>B("undoPreIcn"),proProperty:"leadingIcon",position:"prefix"}),n.jsx("span",{className:l(d.iconSeparator),children:"|"}),n.jsx(F,{label:"Trailing Icon",iconSrc:e==null?void 0:e.undoSufIcn,styleRoute:"undo-btn-suf-i",setIcon:()=>g("undoSufIcn"),removeIcon:()=>B("undoSufIcn"),proProperty:"trailingIcon",position:"suffix"})]})]}),n.jsxs(R,{md:!0,autoHeight:!0,show:v,setModal:u,className:"o-v",title:p("Icons"),children:[n.jsx("div",{className:"pos-rel"}),n.jsx(Y,{iconType:H,setModal:u})]})]})}export{ue as default};

```
