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-214-254.js

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

2 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var I=Object.defineProperty;var j=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var f=(i,a,o)=>a in i?I(i,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[a]=o,c=(i,a)=>{for(var o in a||(a={}))L.call(a,o)&&f(i,o,a[o]);if(j)for(var o of j(a))z.call(a,o)&&f(i,o,a[o]);return i};import{i as M,r as S,a as F,q as R,_ as l,j as e,a2 as T,an as V,E as O,X as P,d as B,s as H,b as q,bm as G,h as E,aQ as Q,f as X,c as Y,z as y,V as J,u as K,A as U,B as W,D as u,bx as C,G as w,N as Z}from"./main-294.js";import{L as ee}from"./bf-838-400.js";import{S as te}from"./bf-952-401.js";import{t as _}from"./bf-582-82.js";import{k as N}from"./bf-176-80.js";import{F as k}from"./bf-487-72.js";import"./bf-867-113.js";function se({formID:i}){const[a,o]=M(Q),[t,m]=S.useState({show:!1}),{css:x}=F(),{pathname:d}=R(),D=s=>{const r=X(a,n=>{n.splice(s+1,0,{title:n[s].title,sub:n[s].sub,body:n[s].body}),n.push({updateTem:1})});o(r)},$=(s,r)=>{if(r.original.id){const n=Y({formID:i,id:r.original.id},"bitforms_delete_mailtemplate").then(h=>{if(h!==void 0&&h.success){const b=y(a);b.splice(s,1),o(b)}});J.promise(n,{loading:"Deleting",success:"Successfully Deleted",error:"Error Occurred"})}else{const n=y(a);n.splice(s,1),o(n)}},p=()=>{t.show=!1,m(c({},t))},g=(s,r)=>{t.btnTxt=l("Delete"),t.body=l("Are you sure to delete this template"),t.btnClass="",t.action=()=>{$(s,r),p()},t.show=!0,m(c({},t))},v=s=>{t.btnTxt=l("Duplicate"),t.body=l("Are you sure to duplicate this template?"),t.btnClass="blue",t.action=()=>{D(s),p()},t.show=!0,m(c({},t))},A=[{Header:l("Template Name"),accessor:"title",Cell:s=>e.jsx(T,{to:`${d}/${s.row.index}`,children:e.jsx("b",{children:s.cell.value})})},{Header:l("Action"),accessor:"action",Cell:s=>e.jsxs(e.Fragment,{children:[e.jsx(N,{onClick:()=>v(s.row.index),className:"icn-btn mr-2 tooltip pos-rel",style:{"--tooltip-txt":`'${l("Duplicate")}'`},children:e.jsx(V,{size:"22"})}),e.jsx(T,{to:`${d}/${s.row.index}`,className:"icn-btn mr-2 flx flx-center tooltip pos-rel",style:{"--tooltip-txt":`'${l("Edit")}'`},children:e.jsx(O,{size:"22"})}),e.jsx(N,{onClick:()=>g(s.row.index,s.row),className:"icn-btn tooltip pos-rel",style:{"--tooltip-txt":`'${l("Delete")}'`},children:e.jsx(P,{size:"21"})})]})}];return e.jsxs("div",{className:"w-7",children:[e.jsx(B,{show:t.show,close:p,btnTxt:t.btnTxt,btnClass:t.btnClass,body:t.body,action:t.action}),e.jsx("h2",{children:l("Email Templates")}),e.jsxs("h5",{children:[l("How to setup Email Templates & Send Email Notification:")," ",e.jsx("a",{href:_.emailTemplates.link,target:"_blank",rel:"noreferrer",className:"yt-txt ml-1 mr-1",children:l("YouTube")}),e.jsx("a",{href:_.emailTemplatesDoc.link,target:"_blank",rel:"noreferrer",className:"doc-txt",children:l("Documentation")})]}),e.jsxs("div",{className:"",children:[e.jsxs(H,{to:`${d}/new`,className:`${x(q.btn)} tertiary`,children:[e.jsx(ee,{size:"20"})," ",l("Add New Template")]}),a.length>0?e.jsx(G,{height:"60vh",className:"btcd-neu-table mr-1",columns:A,data:a}):e.jsxs("div",{className:x(E.btcdEmpty,E.txCenter),children:[e.jsx(te,{size:"50"}),l("Empty")]})]})]})}const ae=C(()=>w(()=>import("./bf-389-398.js"),["./bf-389-398.js","./main-294.js","./main-294.css","./bf-176-80.js","./bf-293-475.css"],import.meta.url),{fallback:e.jsx(k,{})}),le=C(()=>w(()=>import("./bf-111-399.js"),["./bf-111-399.js","./main-294.js","./main-294.css","./bf-176-80.js","./bf-293-475.css"],import.meta.url),{fallback:e.jsx(k,{})});function ue(){const i=K(Z);return e.jsx(U,{children:e.jsxs(W,{children:[e.jsx(u,{index:!0,element:e.jsx(se,{formID:i})}),e.jsx(u,{path:"/new",element:e.jsx(ae,{})}),e.jsx(u,{path:"/:id",element:e.jsx(le,{})})]})})}export{ue as default};
2