PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 1.2
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v1.2
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 2.10.2 All 137 releases
bit-form / assets / js / 71.js

71.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 1.2, at assets/js/71.js

1 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (self.webpackChunk_bitforms=self.webpackChunk_bitforms||[]).push([[71],{5071:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return y}});var c=n(9713),o=n.n(c),i=n(319),s=n.n(i),r=n(3038),l=n.n(r),a=n(7294),b=n(4866),u=n(5977),m=n(3727),f=n(4364),d=n(2694),p=n(9492),h=n(6),x=n(5893);function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);e&&(c=c.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,c)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t){var e=t.mailTem,n=t.setMailTem,c=t.formID,o=(0,a.useState)({show:!1}),i=l()(o,2),r=i[0],_=i[1],y=(0,u.$B)().url,w=function(){r.show=!1,_(j({},r))},O=function(t,o){r.btnTxt=(0,b.__)("Delete","bitform"),r.body=(0,b.__)("Are you sure to delete this template","bitform"),r.btnClass="",r.action=function(){!function(t,o){o.original.id?(0,p.Z)({formID:c,id:o.original.id},"bitforms_delete_mailtemplate").then((function(c){void 0!==c&&c.success&&(e.splice(t,1),n(s()(e)))})):(e.splice(t,1),n(s()(e)))}(t,o),w()},r.show=!0,_(j({},r))},N=function(t){r.btnTxt=(0,b.__)("Dulicate","bitform"),r.body=(0,b.__)("Are you sure to duplicate this template?","bitform"),r.btnClass="blue",r.action=function(){!function(t){e.splice(t+1,0,{title:e[t].title,sub:e[t].sub,body:e[t].body}),n(s()(e))}(t),w()},r.show=!0,_(j({},r))},g=[{Header:(0,b.__)("Template Name","bitform"),accessor:"title",Cell:function(t){return(0,x.jsx)(m.OL,{to:"".concat(y,"/").concat(t.row.index),children:t.cell.value})}},{Header:(0,b.__)("Action","bitform"),accessor:"action",Cell:function(t){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(d.Z,{onClick:function(){return N(t.row.index)},className:"icn-btn mr-2 tooltip pos-rel",style:{"--tooltip-txt":"'".concat((0,b.__)("Duplicate","bitform"),"'")},children:(0,x.jsx)("span",{className:"btcd-icn icn-file_copy"})}),(0,x.jsx)(m.OL,{to:"".concat(y,"/").concat(t.row.index),className:"icn-btn mr-2 flx flx-center tooltip pos-rel",style:{"--tooltip-txt":"'".concat((0,b.__)("Edit","bitform"),"'")},children:(0,x.jsx)("span",{className:"btcd-icn icn-document-edit"})}),(0,x.jsx)(d.Z,{onClick:function(){return O(t.row.index,t.row)},className:"icn-btn tooltip pos-rel",style:{"--tooltip-txt":"'".concat((0,b.__)("Delete","bitform"),"'")},children:(0,x.jsx)("span",{className:"btcd-icn icn-trash-fill"})})]})}}];return(0,x.jsxs)("div",{className:"w-7",children:[(0,x.jsx)(h.Z,{show:r.show,close:w,btnTxt:r.btnTxt,btnClass:r.btnClass,body:r.body,action:r.action}),(0,x.jsx)("h2",{children:(0,b.__)("Email Templates","bitform")}),(0,x.jsxs)("div",{className:"",children:[(0,x.jsxs)(m.rU,{to:"".concat(y,"/new"),className:"btn blue",children:[(0,x.jsx)("span",{className:"btcd-icn icn-layout"})," ",(0,b.__)("Add New Template","bitform")]}),e.length>0?(0,x.jsx)(f.Z,{height:"60vh",className:"btcd-neu-table mr-1",columns:g,data:e}):(0,x.jsxs)("div",{className:"txt-center btcd-empty",children:[(0,x.jsx)("span",{className:"btcd-icn icn-stack"}),(0,b.__)("Empty","bitform")]})]})]})}}}]);