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-573-395.js

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

2 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var O=Object.defineProperty,q=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var S=(e,s,t)=>s in e?O(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,V=(e,s)=>{for(var t in s||(s={}))P.call(s,t)&&S(e,t,s[t]);if(A)for(var t of A(s))_.call(s,t)&&S(e,t,s[t]);return e},$=(e,s)=>q(e,x(s));var T=(e,s,t)=>new Promise((u,f)=>{var w=a=>{try{y(t.next(a))}catch(d){f(d)}},g=a=>{try{y(t.throw(a))}catch(d){f(d)}},y=a=>a.done?u(a.value):Promise.resolve(a.value).then(w,g);y((t=t.apply(e,s)).next())});import{u as i,aq as p,b1 as b,a$ as v,b0 as L,aH as j,N as B,ai as E,bG as G,ct as R,ba as U,V as h,er as N}from"./main-294.js";import{c as k,r as D}from"./bf-487-72.js";function X(){const e=i(b),s=i(v),t=i(L),u=i(k),f=i(j),w=i(B),g=p(v),y=p(L),a=p(b),d=Object.entries(f),I=()=>`custom_${Date.now()}`;return{resetTheme:(c,l)=>T(this,null,function*(){var m;if(window.confirm("This will reset all styles to the theme defaults. Continue?"))try{const{themeColors:o,themeVars:n,styles:r}=E(c,d,w,u);(m=e.lgLightStyles)!=null&&m.confirmations&&r.lgLightStyles&&(r.lgLightStyles.confirmations=[...e.lgLightStyles.confirmations]),g(o),y(n),a(r),G(R("","","Reset Theme",c,{allThemeColors:o,allThemeVars:n,allStyles:r})),U(),h.success("Theme styles reset successfully!"),l&&l()}catch(o){h.error("Failed to reset theme")}}),updateTheme:(c,l)=>T(this,null,function*(){var o;const m=u[c];if(!m){h.error('Only custom themes can be updated. Use "Save as New Theme" instead.');return}if(window.confirm("This will update the current custom theme with your current style changes. Continue?"))try{const n=N(e),r=$(V({},m),{themeColors:s,themeVars:t,styles:n,font:((o=e.lgLightStyles)==null?void 0:o.font)||{}});yield D.saveTheme(r),h.success("Theme updated successfully!"),l&&l()}catch(n){h.error("Failed to update theme")}}),saveAsNewTheme:(c,l)=>T(this,null,function*(){var o;const m=window.prompt("Enter theme name:",`Custom Theme ${Date.now()}`);if(m)try{const n=N(e),r=I(),C=u[c],F=C?C.basedOn:c,H={id:r,slug:r,name:m,type:"custom",basedOn:F,thumbnail:"",is_default:!1,font:((o=e.lgLightStyles)==null?void 0:o.font)||{},themeColors:s,themeVars:t,styles:n};yield D.saveTheme(H),h.success("New theme created successfully!"),l&&l()}catch(n){h.error("Failed to create theme")}})}}export{X as u};
2