PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 1.1.8
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v1.1.8
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 / js / 71.js

71.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 1.1.8, 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(5893),o=n(9713),i=n.n(o),s=n(319),r=n.n(s),l=n(3038),a=n.n(l),b=n(7294),u=n(4866),m=n(5977),f=n(3727),d=n(1770),p=n(2694),h=n(9492),x=n(6);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){i()(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,o=t.formID,i=(0,b.useState)({show:!1}),s=a()(i,2),l=s[0],_=s[1],y=(0,m.$B)().url,w=function(){l.show=!1,_(j({},l))},O=function(t,c){l.btnTxt=(0,u.__)("Delete","bitform"),l.body=(0,u.__)("Are you sure to delete this template","bitform"),l.btnClass="",l.action=function(){!function(t,c){c.original.id?(0,h.Z)({formID:o,id:c.original.id},"bitforms_delete_mailtemplate").then((function(c){void 0!==c&&c.success&&(e.splice(t,1),n(r()(e)))})):(e.splice(t,1),n(r()(e)))}(t,c),w()},l.show=!0,_(j({},l))},N=function(t){l.btnTxt=(0,u.__)("Dulicate","bitform"),l.body=(0,u.__)("Are you sure to duplicate this template?","bitform"),l.btnClass="blue",l.action=function(){!function(t){e.splice(t+1,0,{title:e[t].title,sub:e[t].sub,body:e[t].body}),n(r()(e))}(t),w()},l.show=!0,_(j({},l))},g=[{Header:(0,u.__)("Template Name","bitform"),accessor:"title",Cell:function(t){return(0,c.jsx)(f.OL,{to:"".concat(y,"/").concat(t.row.index),children:t.cell.value})}},{Header:(0,u.__)("Action","bitform"),accessor:"action",Cell:function(t){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(p.Z,{onClick:function(){return N(t.row.index)},className:"icn-btn mr-2 tooltip pos-rel",style:{"--tooltip-txt":"'".concat((0,u.__)("Duplicate","bitform"),"'")},children:(0,c.jsx)("span",{className:"btcd-icn icn-file_copy"})}),(0,c.jsx)(f.OL,{to:"".concat(y,"/").concat(t.row.index),className:"icn-btn mr-2 flx flx-center tooltip pos-rel",style:{"--tooltip-txt":"'".concat((0,u.__)("Edit","bitform"),"'")},children:(0,c.jsx)("span",{className:"btcd-icn icn-document-edit"})}),(0,c.jsx)(p.Z,{onClick:function(){return O(t.row.index,t.row)},className:"icn-btn tooltip pos-rel",style:{"--tooltip-txt":"'".concat((0,u.__)("Delete","bitform"),"'")},children:(0,c.jsx)("span",{className:"btcd-icn icn-trash-fill"})})]})}}];return(0,c.jsxs)("div",{className:"w-7",children:[(0,c.jsx)(x.Z,{show:l.show,close:w,btnTxt:l.btnTxt,btnClass:l.btnClass,body:l.body,action:l.action}),(0,c.jsx)("h2",{children:(0,u.__)("Email Templates","bitform")}),(0,c.jsxs)("div",{className:"",children:[(0,c.jsxs)(f.rU,{to:"".concat(y,"/new"),className:"btn blue",children:[(0,c.jsx)("span",{className:"btcd-icn icn-layout"})," ",(0,u.__)("Add New Template","bitform")]}),e.length>0?(0,c.jsx)(d.Z,{height:"60vh",className:"btcd-neu-table mr-1",columns:g,data:e}):(0,c.jsxs)("div",{className:"txt-center btcd-empty",children:[(0,c.jsx)("span",{className:"btcd-icn icn-stack"}),(0,u.__)("Empty","bitform")]})]})]})}}}]);