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-2-453.js

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

2 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var h=Object.defineProperty,b=Object.defineProperties;var p=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var r=(d,e,t)=>e in d?h(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t,n=(d,e)=>{for(var t in e||(e={}))j.call(e,t)&&r(d,t,e[t]);if(a)for(var t of a(e))u.call(e,t)&&r(d,t,e[t]);return d},c=(d,e)=>b(d,p(e));import{a as m,j as l}from"./main-294.js";function C({dataList:d}){const{css:e}=m(),t=d.reduce((s,x)=>s+x.value,0),i=d.map(s=>c(n({},s),{percentage:`${(s.value/t*100).toFixed(1)}%`}));return l.jsx("div",{className:e(o.mainWrap),children:l.jsxs("table",{className:e(o.table),children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:"Option Label"}),l.jsx("th",{children:"Count/Value"}),l.jsx("th",{children:"%"})]})}),l.jsx("tbody",{children:i.map(s=>l.jsxs("tr",{children:[l.jsx("td",{children:s.label}),l.jsx("td",{children:s.value}),l.jsx("td",{children:s.percentage})]},s.label))})]})})}const o={mainWrap:{w:"100%",h:"100%",dy:"flex",fd:"column",jc:"space-between"},table:{b:"1px solid #ddd",borderCollapse:"collapse","& th":{bb:"1px solid #ddd"},"& td":{ta:"center",b:"1px solid #e4e4e4",bxs:"border-box",p:3},"& tr":{b:"1px solid #e4e4e4"},"& tr:nth-child(odd)>td":{bd:"#f1f1f1"}}};export{C as default};
2