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

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

3 lines 264.7 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([[8053],{2159:(e,n,i)=>{"use strict";i.d(n,{Z:()=>r});var t=i(5893);function r(e){var n=e.size;return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 30 30",children:[(0,t.jsx)("polyline",{className:"svg-icn",strokeWidth:"2",points:"15 3.04 15 21.21 7.5 13.61 15 21.21 22.5 13.61"}),(0,t.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M26,21.68v2.57A2.7,2.7,0,0,1,23.34,27H6.66A2.7,2.7,0,0,1,4,24.25v-2"})]})}},523:(e,n,i)=>{"use strict";i.d(n,{Z:()=>r});var t=i(5893);function r(e){var n=e.className,i=e.stroke,r=void 0===i?2:i,a=e.size,l=void 0===a?14:a;return(0,t.jsxs)("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 30 30",children:[(0,t.jsx)("path",{className:"svg-icn",strokeWidth:r,d:"M13.83,6.32H6.11a2.19,2.19,0,0,0-2.2,2.19v15.3A2.19,2.19,0,0,0,6.11,26H21.55a2.19,2.19,0,0,0,2.2-2.19V16.16"}),(0,t.jsx)("path",{className:"svg-icn",strokeWidth:r,d:"M22.1,4.68a2.35,2.35,0,0,1,3.31,0,2.31,2.31,0,0,1,0,3.28L14.93,18.35l-4.41,1.09,1.11-4.37Z"})]})}},9910:(e,n,i)=>{"use strict";i.d(n,{Z:()=>r});var t=i(5893);function r(e){var n=e.size;return(0,t.jsxs)("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 215 215",children:[(0,t.jsx)("rect",{className:"cls-1",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",x:"12.88",y:"38.41",width:"190",height:"138.99",rx:"30"}),(0,t.jsx)("path",{fill:"currentColor",d:"M187.34,158l-39.45-54.23,39.54-49.09a9.84,9.84,0,0,0,0-11.64,4.64,4.64,0,0,0-7.73,0l-65.65,81.51a7.76,7.76,0,0,1-7.33,3,8.31,8.31,0,0,1-5.17-3.19L36.06,43.08A5.05,5.05,0,0,0,32.19,41a5,5,0,0,0-3.86,2.07,9.84,9.84,0,0,0,0,11.64l39.54,49.09L28.42,158a12.41,12.41,0,0,0,0,13.52,4.83,4.83,0,0,0,3.77,2.3,4.86,4.86,0,0,0,3.78-2.3l41-56.41,17,21.07c3.76,4.67,8.7,7.24,13.91,7.24s10.14-2.57,13.9-7.24l17-21.07,41,56.41a4.25,4.25,0,0,0,7.55,0A12.45,12.45,0,0,0,187.34,158Z"})]})}},483:(e,n,i)=>{"use strict";i.d(n,{Z:()=>r});var t=i(5893);function r(e){var n=e.size,i=e.className,r=e.stroke,a=void 0===r?2.5:r;return(0,t.jsxs)("svg",{className:i,width:n,height:n,viewBox:"0 0 30 30",children:[(0,t.jsx)("polyline",{className:"svg-icn",strokeWidth:a,points:"5.49 24.65 5.58 21.03 9.19 21.13"}),(0,t.jsx)("polyline",{className:"svg-icn",strokeWidth:a,points:"8.3 4.27 11.67 5.54 10.41 8.93"}),(0,t.jsx)("polyline",{className:"svg-icn",strokeWidth:a,points:"26 11.63 24.41 14.87 21.18 13.28"}),(0,t.jsx)("path",{className:"svg-icn",strokeWidth:a,d:"M14.85,5.51A10.1,10.1,0,0,1,24,14"}),(0,t.jsx)("path",{className:"svg-icn",strokeWidth:a,d:"M4.3,18.06A10,10,0,0,1,4,15.61a10.12,10.12,0,0,1,7.08-9.67"}),(0,t.jsx)("path",{className:"svg-icn",strokeWidth:a,d:"M19,24.47A10,10,0,0,1,5.63,21.12"})]})}},3312:(e,n,i)=>{"use strict";i.d(n,{Z:()=>r});var t=i(5893);function r(e){var n=e.size,i=void 0===n?15:n,r=e.stroke,a=void 0===r?2:r;return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 30 30",children:[(0,t.jsx)("polyline",{className:"svg-icn",points:"4 7.68 6.44 7.68 26 7.68"}),(0,t.jsx)("path",{className:"svg-icn",strokeWidth:a,d:"M23.56,7.68V24.76a2.45,2.45,0,0,1-2.45,2.44H8.89a2.45,2.45,0,0,1-2.45-2.44V7.68m3.67,0V5.24A2.45,2.45,0,0,1,12.56,2.8h4.88a2.45,2.45,0,0,1,2.45,2.44V7.68"}),(0,t.jsx)("line",{className:"svg-icn",strokeWidth:a,x1:"12.56",y1:"13.78",x2:"12.56",y2:"21.1"}),(0,t.jsx)("line",{className:"svg-icn",strokeWidth:a,x1:"17.44",y1:"13.78",x2:"17.44",y2:"21.1"})]})}},3258:e=>{e.exports=function e(n){for(var i=n,t={},r=function(){for(var n=i.indexOf("{"),r=0,a=r,l=n;l<i.length&&("{"===i[l]&&(r+=1,a=Math.max(r,a)),"}"!==i[l]||0!==(r-=1));)l+=1;var o=i.substring(0,n).trim();t[o]||(t[o]={});var s=a>1?e(i.slice(n+1,l)):function(e,n,i){return function(e){var n={};return e.forEach((function(e){var i=e.indexOf(":"),t=e.substring(0,i).trim(),r=e.substring(i+1).trim();n[t]=r})),n}(e.substring(n+1,i).split(";").map((function(e){return e.trim()})).filter((function(e){return e.length>0})))}(i,n,l);Object.keys(s).forEach((function(e){t[o][e]=s[e]})),i=i.slice(l+1).trim()};i.length>0;)r();return t}},8692:(e,n,i)=>{"use strict";i.d(n,{Z:()=>r});var t=i(5893);const r=function(e){var n=e.className,i=e.disabled,r=e.checked,a=e.onChange,l=e.radio,o=e.name,s=e.title,c=e.value,d=e.sqr;return(0,t.jsxs)("label",{className:"btcd-ck-wrp "+n,children:[s,(0,t.jsx)("input",{type:l?"radio":"checkbox",checked:r,onChange:a,name:o,value:c,disabled:i}),(0,t.jsx)("span",{className:"btcd-mrk "+(!d&&"br-50")+" "+(l?"rdo":"ck")})]})}},8585:(e,n,i)=>{"use strict";i.d(n,{Z:()=>o});var t=i(1736),r=i(3861),a=i(5893);function l(e){var n=e.size,i=e.stroke,t=void 0===i?2:i;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 30 30",children:[(0,a.jsx)("ellipse",{fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:t,cx:"15",cy:"15",rx:"12.75",ry:"12.85"}),(0,a.jsx)("path",{fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:t,strokeLinecap:"round",d:"M11.3,10.73v0a3.58,3.58,0,0,1,1-2.53l.25-.25a3.56,3.56,0,0,1,5,0h0a3.56,3.56,0,0,1,0,5.05l-1.43,1.43a3.85,3.85,0,0,0-1.13,2.75v2.4"}),(0,a.jsx)("line",{fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:t,strokeLinecap:"round",x1:"15",y1:"23.12",x2:"15",y2:"23.12"})]})}i(6592),i(2938),i(5569),i(3339);function o(e){var n=e.className,i=e.children,o=e.width,s=void 0===o?"auto":o,c=e.icnSize,d=void 0===c?20:c;return(0,a.jsx)(t.ZP,{animateFill:!0,plugins:[r.C8],duration:150,theme:"material",animation:"shift-away",interactive:!0,maxWidth:s,content:i,children:(0,a.jsx)("div",{role:"button",tabIndex:"0",className:"popper-icn cp d-in-b ig-c cooltip-icn "+n,children:(0,a.jsx)(l,{size:d})})})}},97:(e,n,i)=>{"use strict";i.d(n,{Z:()=>a});var t=i(7707),r=(i(8774),i(5893));const a=function(e){var n=e.options,i=e.placeholder,a=e.action,l=e.className,o=e.isMultiple,s=e.allowCustomOpt,c=e.value,d=e.addable,u=e.titleClassName,m=e.title,p=e.jsonValue;return(0,r.jsxs)("div",{className:""+u,children:[(0,r.jsx)("span",{children:m}),(0,r.jsx)(t.Z,{width:"100%",defaultValue:c,className:"btcd-paper-drpdwn msl-wrp-options "+l,onChange:a,singleSelect:!o,customValue:s||d,placeholder:i,jsonValue:p,options:n||[]})]})}},8053:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>Si});var t=i(7462),r=i(5256),a=i(9425),l=i.n(a),o=i(2804),s=i(7294),c=i(2248),d=i(5637),u=i(3258),m=i.n(u),p={},h=[],g=p.toString,f=p.hasOwnProperty,x=g.call(p),b=g.call(h),v=g.call("");function _(e,n,i,t,r,a){for(a in t=[],n)if(f.call(n,a))for(r in e)f.call(e,r)&&t.push(j(e[r],n[a],i));return t}function j(e,n,i){return i&&(/^[-\w$]+$/.test(n)&&":-error-bad-sub-selector-"+n||/&/.test(n)&&n.replace(/&/g,e))||e+n}function N(e){return"-"+e.toLowerCase()}function y(e,n,i,t,r,a,l,o,s){if(null!=e)if(/\$/.test(i))for(s in i=i.split("$"))f.call(i,s)&&y(e,n,i[s],t,r,a);else switch(g.call(e=e.valueOf())){case b:for(l=0;l<e.length;l+=1)y(e[l],n,i,t,r,a);break;case x:for(l in i=i&&i+"-",e)if(f.call(e,l))if(o=e[l],/\$/.test(l))for(s in l=l.split("$"))f.call(l,s)&&y(o,n,i+l[s],t,r,a);else y(o,n,i+l,t,r,a);break;default:for(l=i.replace(/_/g,"-").replace(/[A-Z]/g,N),!r||"animation-name"!==l&&"animation"!==l||(e=e.split(",").map((function(e){return e.replace(/()(?::global\(\s*([-\w]+)\s*\)|()([-\w]+))/,a.l)})).join(",")),/^animation|^transition/.test(l)&&(t=["webkit"]),l=l.replace(/^@/,"*"),s=0;s<t.length;s+=1)n.push("-",t[s],"-",l,l?":":"",e,";");n.push(l,l?":":"",e,";")}}var C=/()(?::global\(\s*(\.[-\w]+)\s*\)|(\.)([-\w]+))/g;function A(e,n,i,t,r,a,l,o){var s;if(/^@(?:namespace|import|charset)$/.test(e))if(g.call(n)===b)for(s=0;s<n.length;s+=1)i.push(e," ",n[s],";");else i.push(e," ",n,";");else if(/^@keyframes /.test(e))e=l?e.replace(/( )(?::global\(\s*([-\w]+)\s*\)|()([-\w]+))/,o.l):e,i.push("@-webkit-",e.slice(1)," {"),S(n,i,"","",["webkit"]),i.push("}"),i.push(e," {"),S(n,i,"","",a,l,o),i.push("}");else if(/^@extends?$/.test(e)){for(;s=C.exec(r);)e=s[4];if(null==e||!l)return void i.push("@-error-cannot-extend-in-global-context ",JSON.stringify(r),";");if(/^@extends?$/.test(e))return void i.push("@-error-no-class-to-extend-in ",JSON.stringify(r),";");o.e(g.call(n)===b?n.map((function(e){return e.replace(/()(?::global\(\s*(\.[-\w]+)\s*\)|()\.([-\w]+))/,o.l)})).join(" "):n.replace(/()(?::global\(\s*(\.[-\w]+)\s*\)|()\.([-\w]+))/,o.l),e)}else/^@(?:font-face$|viewport$|page )/.test(e)?S(n,i,e,e,h):/^@global$/.test(e)?S(n,i,t,r,a,0,o):/^@local$/.test(e)?S(n,i,t,r,a,1,o):/^@(?:media |supports |document )./.test(e)?(i.push(e," {"),S(n,i,t,r,a,l,o),i.push("}")):i.push("@-error-unsupported-at-rule ",JSON.stringify(e),";")}function S(e,n,i,t,r,a,l){var o,s,c,d;switch(g.call(e)){case b:for(o=0;o<e.length;o+=1)S(e[o],n,i,t,r,a,l);break;case x:for(o in e)c=e[o],i&&/^[-\w$]+$/.test(o)?(d||(d=1,n.push(i||"*"," {")),y(c,n,o,r,a,l)):/^@/.test(o)?(d=d&&n.push("}")&&0,A(o,c,n,i,t,r,a,l)):(d=d&&n.push("}")&&0,S(c,n,(s=/,/.test(i)||i&&/,/.test(o))?_(i.split(","),(a?o.replace(/()(?::global\(\s*(\.[-\w]+)\s*\)|(\.)([-\w]+))/g,l.l):o).split(","),i).join(","):j(i,a?o.replace(/()(?::global\(\s*(\.[-\w]+)\s*\)|(\.)([-\w]+))/g,l.l):o,i),s?_(t.split(","),o.split(","),t).join(","):j(t,o,t),r,a,l));d&&n.push("}");break;case v:n.push(i||":-error-no-selector"," {"),y(e,n,"",r,a,l),n.push("}")}}function w(e){var n=[];function i(e,i){for(i=0;i<n.length;i+=1)e=n[i](e)||e;return e.join("")}return(e=e||{}).use=function(){for(var i=arguments,t=0;t<i.length;t+=1)n.push(i[t]);return e},e.sheet=function(e,n){1===arguments.length&&(n=e,e={});var t,r={},a=[];for(t in e)t-0!==t-0&&f.call(e,t)&&(r[t]=e[t]);for(t in S(n,a,"","",h,1,{e:function(e,n){var i=r[n];r[n]=i.slice(0,i.lastIndexOf(" ")+1)+e+" "+i.slice(i.lastIndexOf(" ")+1)},l:function(e,n,i,t,a){return i?n+i:(r[a]||(r[a]=a),n+t+r[a].match(/\S+$/))}}),a=new String(i(a)),r)f.call(r,t)&&(a[t]=r[t]);return a},e.inline=function(e,n,t){return 1===arguments.length&&(n=e,e={}),y(n,t=[],"",h,1,{l:function(n,i,t,r,a){return t?i+t:e[a]?i+r+e[a]:a}}),i(t)},e.prefix=function(e,n){return _(n.map((function(e){return"-"+e+"-"})).concat([""]),[e])},e}function I(e,n,i){return(i={})[e]=n,i}w.global=function(e){return":global("+e+")"},w.kv=I,w.at=function e(n,i,t){if(arguments.length<3){var r=e.bind.apply(e,[null].concat([].slice.call(arguments,0)));return r.toString=function(){return"@"+n+" "+i},r}return I("@"+n+" "+i,t)},w(w),delete w.use;const k=w;var R=i(6658),E=i(9968),U=i(8172),T=i(9870),L=i(3938),O=i(7422),M=i(2249),D=i(4017),B=i(5893);function P(e){var n=e.stroke,i=void 0===n?2:n,t=e.height,r=void 0===t?17:t,a=e.width,l=void 0===a?13:a;return(0,B.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 145 205",height:r,width:l,children:[(0,B.jsx)("defs",{}),(0,B.jsx)("g",{stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:8*Number(i),clipPath:"url(#clip0)",children:(0,B.jsx)("path",{d:"M136.7 64.7H8h128.7zM14.1 14.9A11.2 11.2 0 008 24.8v66.7a29.6 29.6 0 0024.3 29.1l13.6 2.5a15.4 15.4 0 0112.5 18.2l-5.7 27c-1.2 5.7.3 11.7 4.2 16a20.9 20.9 0 0030.9 0 18.2 18.2 0 004.2-16l-5.7-27.1A15.4 15.4 0 0198.8 123l13.6-2.4a29.4 29.4 0 0024.3-29.1V18.4c0-3.3-3.5-5.3-6.4-3.8A62.5 62.5 0 0183.6 20c-3.6-1-7-2.4-10.2-4.1a64.5 64.5 0 00-59.3-1z"})}),(0,B.jsx)("defs",{children:(0,B.jsx)("clipPath",{id:"clip0",children:(0,B.jsx)("path",{fill:"#fff",d:"M0 0h144.7v199.1H0z",transform:"rotate(180 72.3 99.5)"})})})]})}var X=i(523);function z(e){var n=e.size,i=e.stroke,t=void 0===i?3:i;return(0,B.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 30 30",children:[(0,B.jsx)("polyline",{className:"svg-icn",strokeWidth:t,points:"23.31 12.31 26 15 23.31 17.69 26 15 4 15 6.69 17.69 4 15 6.69 12.31"}),(0,B.jsx)("polyline",{className:"svg-icn",strokeWidth:t,points:"17.69 23.31 15 26 12.31 23.31 15 26 15 4 12.31 6.69 15 4 17.69 6.69"})]})}var Z=i(3312),H=i(2281);function G(e){var n=e.layoutItem,i=e.removeLayoutItem,t=e.fields,a=e.formID,l=(0,r.k6)(),o=(0,s.useContext)(L.d).reCaptchaV2,c=function(){var e=(0,M.p$)(t[n.i]);return e&&"recaptcha"===e.typ&&(e.siteKey=o.siteKey),(0,B.jsx)(H.Z,{isBuilder:!0,formID:a,atts:e})};return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{className:"blk-icn-wrp pos-abs flx o-h",children:[(0,B.jsx)("button",{type:"button",className:"drag g-c us-n",style:{cursor:"move"},title:(0,d.__)("Move","bitform"),children:(0,B.jsx)(z,{size:"17",stroke:"2"})}),(0,B.jsx)("button",{type:"button",className:"g-c cp us-n",title:(0,d.__)("Style","bitform"),onClick:function(){"paypal"===t[n.i].typ?l.replace(l.location.pathname.replace(/fs|style\/.+|style/g,"style/fl/ppl")):l.replace(l.location.pathname.replace(/fs|style\/.+/g,"style"))},children:(0,B.jsx)(P,{height:"16",width:"14"})}),(0,B.jsx)("button",{type:"button",className:"g-c cp us-n",title:(0,d.__)("Settings","bitform"),onClick:function(){l.replace(l.location.pathname.replace(/style\/.+|style/g,"fs"))},children:(0,B.jsx)(X.Z,{size:"17"})}),(0,B.jsx)("button",{"data-close":!0,type:"button",className:"drag g-c us-n",unselectable:"on",draggable:"false",style:{cursor:"pointer"},onClick:function(){return i(n.i)},title:(0,d.__)("Remove","bitform"),children:(0,B.jsx)(Z.Z,{size:"16"})})]}),(0,B.jsx)(c,{})]})}var F=i(4401);function V(e){var n=e.newData,i=e.setNewData,r=e.style,a=e.gridWidth,l=e.formID,c=(0,s.useContext)(L.d).payments,u=(0,o.sJ)(D.hi).isPro,m=(0,s.useContext)(T.ShowProModalContext),p=(0,o.FV)(D.AK),h=p[0],g=p[1],f=(0,o.FV)(D.ro),x=f[0],b=f[1],v=(0,o.Zl)(D.gx),_=(0,o.sJ)(D.mU),j=(0,s.useState)(x),N=j[0],y=j[1],C=(0,s.useState)("lg"),A=C[0],S=C[1],w=(0,s.useState)(a-32),I=w[0],k=w[1],P={lg:6,md:4,sm:2},X=(0,s.useState)([-.2,0]),z=X[0],Z=X[1],H=(0,s.useState)(43),V=H[0],K=H[1],W=(0,s.useState)({show:!1,msg:""}),$=W[0],q=W[1],Y=(0,o.sJ)(D.Z4),J=(0,o.sJ)(D.Nd);(0,s.useEffect)((function(){!function(){var e=!1;N.lg.map((function(n){if(N.md.find((function(e){return e.i===n.i}))){if(!N.sm.find((function(e){return e.i===n.i}))){var i=(0,t.Z)({},n);i.w>=P.sm&&(i.w=P.sm),N.sm.push(i),e=!0}}else{var r=(0,t.Z)({},n);r.w>=P.md&&(r.w=P.md),N.md.push(r),e=!0}})),e&&y(N)}()}),[]),(0,s.useEffect)((function(){y((0,M.p$)(x))}),[x]),(0,s.useEffect)((function(){null!==n&&re()}),[n,h]),(0,s.useEffect)((function(){var e,n,i,t,o,s,c,d,u,m,p,h=0,g=0;if(null!=(e=r["._frm-"+l])&&e["border-width"]&&(h+=(0,O.QD)(r["._frm-"+l]["border-width"])),null!=(n=r["._frm-"+l])&&n.padding&&(h+=(0,O.QD)(r["._frm-"+l].padding)),null!=(i=r["._frm-"+l])&&i.margin&&(h+=(0,O.QD)(r["._frm-"+l].margin)),null!=(t=r["._frm-bg-"+l])&&t["border-width"]&&(h+=(0,O.QD)(r["._frm-bg-"+l]["border-width"])),null!=(o=r["._frm-bg-"+l])&&o.padding&&(h+=(0,O.QD)(r["._frm-bg-"+l].padding)),null!=(s=r["._frm-bg-"+l])&&s.margin&&(h+=(0,O.QD)(r["._frm-bg-"+l].margin)),k(a-33-h),null!=(c=r["._frm-g-"+l])&&c.gap){var f=r["._frm-g-"+l].gap.replace(/px/g,"").split(" ");Z([Number(f[1]),Number(f[0])])}if(null!=(d=r[".fld-lbl-"+l])&&d["font-size"]){var x,b=1;null!=(x=r[".fld-lbl-"+l])&&x["line-height"]&&(b=Q(r[".fld-lbl-"+l]["line-height"])),g+=Q(r[".fld-lbl-"+l]["font-size"])*b}null!=(u=r[".fld-wrp-"+l])&&u.padding&&(g+=ee(r[".fld-wrp-"+l].padding)),null!=(m=r["input.fld-"+l+",textarea.fld-"+l])&&m.margin&&(g+=ee(r["input.fld-"+l+",textarea.fld-"+l].margin)),null!=(p=r["input.fld-"+l+",textarea.fld-"+l])&&p.height?g+=Q(r["input.fld-"+l+",textarea.fld-"+l].height):g+=40,K(g/2),sessionStorage.setItem("btcd-rh",g/2)}),[r,a,l]);var Q=function(e){return Number(e.replace(/px|em|rem|!important/g,""))},ee=function(e){var n,i;void 0===e&&(e="");var t=null==(n=e)?void 0:n.replace(/px|em|rem|!important/g,"").split(" ");return 1===t.length&&(t=Array(4).fill(t[0])),2===t.length&&(t=[t[0],t[1],t[0],t[1]]),3===t.length&&(t=[t[0],t[1],t[2],t[1]]),(null==(i=t=[t[0],t[2]])?void 0:i.reduce((function(e,n){return Number(e)+Number(n)}),0))||0},ne=function(e,n,i,t){for(var r=n>t?t:n,a=0;a<e.length;a+=1)for(var l=0;l<e[a].length;l+=1)if(e[a][l])e.push(Array(t).fill(0));else{if(i>a&&e.push(Array(t).fill(0)),!(t-l>=r))break;for(var o=!0,s=a;s<a+i;s+=1){s>e.length-1&&e.push(Array(t).fill(0));for(var c=l;c<r+l-1;c+=1)e[s][c]&&(o=!1)}if(o){for(var d=a;d<i+a;d+=1)for(var u=l;u<r+l;u+=1)e[d][u]=1;return{x:l,y:a,vgrid:e,w:r}}}},ie=function(e,n){for(var i=(0,O.nG)(e),r=[],a=Array(Array(n).fill(0)),l=0;l<i.length;l+=1){var o=(0,t.Z)({},i[l]),s=ne(a,o.w,o.h,n),c=s.x,d=s.y,u=s.w;o.x=c,o.y=d,o.w=u,r.push(o)}return r},te=function(e,n,i){for(var r=[],a=Array(Array(n).fill(0)),l=0;l<e.length;l+=1){var o=(0,t.Z)({},e[l]);if(o.i!==i){var s=ne(a,o.w,o.h,n),c=s.x,d=s.y,u=s.w;o.x=c,o.y=d,o.w=u,r.push(o)}}return r},re=function(){var e;i(null);var r=oe(n.fieldData),a=(0,U.P2)(n);if(r&&(0,M.P9)("array",r))"razorpay"===n.fieldData.typ?a.fieldData.options.payIntegID=r[0].id:a.fieldData.payIntegID=r[0].id;else if(!r)return;if(("recaptcha"!==n.fieldData.typ||se())&&("Select Country"!==n.fieldData.lbl||ce())){var o=n.fieldSize,s=o.w,c=o.h,d=o.minH,u=o.maxH,m=o.minW,p={i:"bf"+l+"-"+Y,x:0,y:1/0,w:s,h:c,minH:d,maxH:u,minW:m},f=N;f.lg.push(p),f.md.push(p),f.sm.push(p),f[A]=(0,O.nG)(f[A]),"lg"===A?(f.md=ie(f.md,P.md),f.sm=ie(f.sm,P.sm)):"md"===A?(f.lg=ie(f.lg,P.lg),f.sm=ie(f.sm,P.sm)):"sm"===A&&(f.lg=ie(f.lg,P.lg),f.md=ie(f.md,P.md)),y((0,t.Z)({},f));var x=(0,U._x)(a);g((0,t.Z)({},h,((e={})["bf"+l+"-"+Y]=x.fieldData,e))),sessionStorage.setItem("btcd-lc","-")}};var ae=function(e){var n,i;if("button"===(null==(n=h[e])?void 0:n.typ)&&"submit"===(null==(i=h[e])?void 0:i.btnTyp)&&!(h?Object.values(h).filter((function(e){return e.typ.match(/paypal|razorpay/)})):[]).length)return void q({show:!0,msg:(0,d.__)("Submit button cannot be removed")});var r={},a=(0,t.Z)({},h);r.lg=te(N.lg,P.lg,e),r.md=te(N.md,P.md,e),r.sm=te(N.sm,P.sm,e),delete a[e],y(r),g(a),v(null),sessionStorage.setItem("btcd-lc","-")},le=function(){var e=(0,t.Z)({},$);e.show=!1,q(e)},oe=function(e){var n=e.typ.match(/paypal|razorpay/);if(n){var i,t=h?Object.values(h).filter((function(e){return e.typ===n[0]})):[];if(u?t.length&&(i=(0,d.__)((0,B.jsxs)("p",{children:["You cannot add more than one  ",n[0],"  field in same form."]}),"bitform"),q({show:!0,msg:i})):(i=(0,d.__)(n[0]+" is in Pro Version!","bitform"),m({show:!0,msg:i})),i)return!1;var r=c.filter((function(e){return e.type.toLowerCase()===n[0]}));if(1===r.length)return r}return!0},se=function(){var e,n;null!=J&&null!=(e=J.enabled)&&e.recaptchav3?n=(0,d.__)((0,B.jsx)("p",{children:"You can use either ReCaptchaV2 or ReCaptchaV3 in a form. to use ReCaptchaV2 disable the ReCaptchaV3 from the Form Settings."}),"bitform"):(h?Object.values(h).filter((function(e){return"recaptcha"===e.typ})):[]).length&&(n=(0,d.__)((0,B.jsx)("p",{children:"You cannot add more than one reCaptcha field in same form."}),"bitform"));return!n||(q({show:!0,msg:n}),!1)},ce=function(){var e;return u||(e=(0,d.__)((0,B.jsx)("p",{children:"Country field is in Pro Version!"}),"bitform")),!e||(m({show:!0,msg:e}),!1)};return(0,B.jsxs)("div",{style:{width:a-9},className:"layout-wrapper",onDragOver:function(e){return e.preventDefault()},onDragEnter:function(e){return e.preventDefault()},children:[(0,B.jsx)(R.$B,{autoHide:!0,children:(0,B.jsx)("div",{id:"f-"+l,style:{padding:10,paddingRight:13},className:_?"isDragging":"",children:(0,B.jsx)("div",{className:"_frm-bg-"+l+" _frm-bg",style:{overflow:"auto"},children:(0,B.jsx)("div",{className:"_frm-"+l,children:(0,B.jsx)(E.Responsive,{width:Math.round(I),measureBeforeMount:!1,isDroppable:null!==_,className:"layout",onDrop:function(e,n){var i,r=oe(_.fieldData),a=(0,U.P2)(_);if(r&&(0,M.P9)("array",r))"razorpay"===_.fieldData.typ?a.fieldData.options.payIntegID=r[0].id:a.fieldData.payIntegID=r[0].id;else if(!r)return;if(("recaptcha"!==_.fieldData.typ||se())&&("Select Country"!==_.fieldData.lbl||ce())){var o=_.fieldSize,s=o.w,c=o.h,d=o.minH,u=o.maxH,m=o.minW,p=n.x,f=n.y;0!==f&&(f-=1);var x="bf"+l+"-"+Y,b={i:x,x:p,y:f,w:s,h:c,minH:d,maxH:u,minW:m},v=N;v.lg.push(b),v.md.push(b),v.sm.push(b),v[A]=(0,O.nG)(v[A]),"lg"===A?(v.md=ie(v.md,P.md),v.sm=ie(v.sm,P.sm)):"md"===A?(v.lg=ie(v.lg,P.lg),v.sm=ie(v.sm,P.sm)):"sm"===A&&(v.lg=ie(v.lg,P.lg),v.md=ie(v.md,P.md)),y((0,t.Z)({},v));var j=(0,U._x)(a);g((0,t.Z)({},h,((i={})[x]=j.fieldData,i))),sessionStorage.setItem("btcd-lc","-")}},resizeHandles:["se","e"],onLayoutChange:function(e,n){n.lg.length===N.lg.length&&n.md.length===N.md.length&&n.sm.length===N.sm.length&&(y(n),b((0,M.p$)(n)))},droppingItem:null==_?void 0:_.fieldSize,cols:P,breakpoints:{lg:700,md:420,sm:300},rowHeight:V,margin:z,containerPadding:[1,1],draggableCancel:".no-drg",draggableHandle:".drag",layouts:N,onBreakpointChange:function(e){return S(e)},onDragStop:function(){return sessionStorage.setItem("btcd-lc","-")},onResizeStop:function(){return sessionStorage.setItem("btcd-lc","-")},children:N[A].map((function(e){return(0,B.jsx)("div",{className:"blk",onClick:function(){return v(e.i)},onKeyPress:function(){return v(e.i)},role:"button",tabIndex:0,children:(0,B.jsx)(G,{layoutItem:e,removeLayoutItem:ae,fields:h,formID:l})},e.i)}))})})})})}),(0,B.jsx)(F.Z,{className:"custom-conf-mdl",mainMdlCls:"o-v",btnClass:"red",btnTxt:"Close",show:$.show,close:le,action:le,title:"Sorry",children:(0,B.jsx)("div",{className:"txt-center",children:$.msg})})]})}const K=(0,s.memo)(V);var W=i(3727);function $(e){var n=e.w;return(0,B.jsxs)("svg",{width:n,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 215 215",children:[(0,B.jsx)("rect",{width:"175",height:"175",x:"19.4",y:"20.7",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",rx:"30"}),(0,B.jsx)("path",{fill:"currentColor",d:"M92.2 156.7a19.1 19.1 0 01-13.4-5.4l-37-36.2a6.9 6.9 0 01-.2-9.7 6.9 6.9 0 019.7-.1l37.2 36a5.3 5.3 0 008-.6l60.8-82a6.9 6.9 0 019.7-1.4 6.9 6.9 0 011.4 9.6l-60.9 82a19 19 0 01-13.8 7.7h-1.5z"})]})}function q(e){var n=e.w;return(0,B.jsxs)("svg",{width:n,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 215 215",children:[(0,B.jsx)("rect",{width:"140.1",height:"140.1",x:"37.5",y:"39.6",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",rx:"30",transform:"rotate(-45 107.5 109.6)"}),(0,B.jsx)("path",{fill:"currentColor",d:"M107.5 62.7l3.4 4.7a236.9 236.9 0 0121.6 36.8 38 38 0 013.7 15.5 26.9 26.9 0 01-20.1 26.8 29 29 0 01-29.6-7.4c-6.3-6.2-8.3-14-7.6-22.5.6-6 3.2-11.5 5.8-16.8a244.7 244.7 0 0122.8-37z"})]})}function Y(e){var n=e.w;return(0,B.jsxs)("svg",{width:n,xmlns:"http://www.w3.org/2000/svg",id:"Layer_1","data-name":"Layer 1",viewBox:"0 0 215 215",children:[(0,B.jsx)("rect",{width:"175",height:"175",x:"19.2",y:"20.7",className:"cls-1",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",rx:"30"}),(0,B.jsx)("path",{d:"M24.5 77h164.4",className:"cls-1",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16"}),(0,B.jsx)("rect",{width:"16",height:"37.8",x:"47.6",y:"3.4",className:"cls-2",fill:"currentColor",rx:"8"}),(0,B.jsx)("rect",{width:"16",height:"37.8",x:"149.8",y:"3.4",className:"cls-2",fill:"currentColor",rx:"8"}),(0,B.jsx)("rect",{width:"24.5",height:"24.5",x:"66.9",y:"101.5",className:"cls-2",fill:"currentColor",rx:"12.3"}),(0,B.jsx)("rect",{width:"24.5",height:"24.5",x:"122",y:"101.5",className:"cls-2",fill:"currentColor",rx:"12.3"}),(0,B.jsx)("rect",{width:"24.5",height:"24.5",x:"66.9",y:"149.1",className:"cls-2",fill:"currentColor",rx:"12.3"}),(0,B.jsx)("rect",{width:"24.5",height:"24.5",x:"122",y:"149.1",className:"cls-2",fill:"currentColor",rx:"12.3"})]})}function J(e){var n=e.w;return(0,B.jsxs)("svg",{width:n,xmlns:"http://www.w3.org/2000/svg",id:"Layer_1","data-name":"Layer 1",viewBox:"0 0 215 215",children:[(0,B.jsx)("rect",{width:"175",height:"175",x:"19.2",y:"23.14",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",rx:"30"}),(0,B.jsx)("rect",{fill:"currentColor",width:"16",height:"37.79",x:"47.65",y:"5.88",className:"cls-2",rx:"8"}),(0,B.jsx)("rect",{fill:"currentColor",width:"16",height:"37.79",x:"149.75",y:"5.88",className:"cls-2",rx:"8"}),(0,B.jsx)("rect",{width:"109.57",height:"109.57",x:"54.09",y:"58.23",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"12",rx:"54.78"}),(0,B.jsx)("path",{fill:"currentColor",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"4",d:"M128.64 140.19L104 116.55a3.78 3.78 0 01-1.17-2.73V80.63a3.79 3.79 0 013.79-3.79h0a3.79 3.79 0 013.79 3.79v30a3.79 3.79 0 001.16 2.73l22.28 21.41a3.78 3.78 0 01.11 5.35h0a3.79 3.79 0 01-5.32.07z"})]})}function Q(e){var n=e.size;return(0,B.jsxs)("svg",{width:n,height:n,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 215 215",children:[(0,B.jsx)("rect",{width:"175",height:"175",x:"20",y:"20",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",rx:"87.5"}),(0,B.jsx)("path",{fill:"currentColor",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"7",d:"M96.9 150.2a16.2 16.2 0 01-11.3-4.6L54 115a5.8 5.8 0 01-.1-8.3h0a5.8 5.8 0 018.2 0l31.5 30.5a4.5 4.5 0 006.8-.5L152 67.1a5.9 5.9 0 018.2-1.2h0a5.9 5.9 0 011.2 8.2L110 143.7a16.2 16.2 0 01-11.7 6.5h-1.3z"})]})}var ee=i(3106);function ne(e){var n=e.w;return(0,B.jsxs)("svg",{width:n,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 215 215",children:[(0,B.jsx)("rect",{width:"169.7",height:"169.7",x:"22.7",y:"23.1",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",rx:"30"}),(0,B.jsx)("path",{fill:"currentColor",d:"M107.6 152.4a16.2 16.2 0 01-12.1-5.5L46.8 93.4a7.6 7.6 0 010-10.1 6.1 6.1 0 019.2 0l48.6 53.4a4.2 4.2 0 002.4 1.3 3.9 3.9 0 003.4-1.3L159 83.3a6.1 6.1 0 019.2 0 7.7 7.7 0 010 10.1L119.6 147a16.2 16.2 0 01-12 5.5z"})]})}function ie(e){var n=e.w;return(0,B.jsxs)("svg",{className:"btc-line-icn",viewBox:"0 0 130.2 66.8",width:n,children:[(0,B.jsx)("line",{className:"line-icn",strokeWidth:"16",strokeLinecap:"round",x1:"0",y1:"8",x2:"65.9",y2:"8"}),(0,B.jsx)("line",{className:"line-icn",strokeWidth:"29",strokeLinecap:"round",x1:"1.5",y1:"52.3",x2:"130.2",y2:"52.3"})]})}function te(e){var n=e.w;return(0,B.jsxs)("svg",{width:n,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 215 215",children:[(0,B.jsx)("path",{fill:"currentColor",d:"M155.8 161.4a55 55 0 009.5-.8 50.2 50.2 0 0031.6-19.6c10.4-14 13.1-29.5 8-46.3s-16.3-28-33.2-33.3a2.6 2.6 0 01-1.9-1.9 64.9 64.9 0 00-55.3-43.2l-2.6-.3-1.2-.1H105l-1 .1-2.4.3a67 67 0 00-34 12.7A63.4 63.4 0 0045 59.5a2.9 2.9 0 01-2 1.9 51.7 51.7 0 00-30.3 25.9 47.1 47.1 0 00-5 18 4.2 4.2 0 01-.1.7v6.2a1.6 1.6 0 01.1.5l.2 2 .6 3.9A51.1 51.1 0 0027 149.3a49.8 49.8 0 0032.2 11.1 8.2 8.2 0 008-5.4c1.4-3.8.4-8.2-2.3-10.6-1.6-1.4-3.7-2-6.7-2a31.6 31.6 0 01-19.7-7.1c-10-8.1-14.3-18.5-12.5-31a33 33 0 0126-27 9.7 9.7 0 007.7-7.3 48.3 48.3 0 0116.8-25.1 49.1 49.1 0 0131-10.9 55 55 0 017 .5 47.1 47.1 0 0126 12 48.1 48.1 0 0114.7 24.4 9.6 9.6 0 007.8 7.4 33 33 0 0126 36 33.4 33.4 0 01-32.6 29 9.6 9.6 0 00-6.1 2 9.6 9.6 0 00-2.6 10.5 8.2 8.2 0 008 5.6z"}),(0,B.jsx)("path",{fill:"currentColor",d:"M159.1 119.3a8.9 8.9 0 00-3-6.7l-6.5-6.5-11.4-11.4-23.5-23.4a10 10 0 00-6.4-3.1c-2.6-.2-4.8.7-7 3L80.3 92l-20.8 20.8a8.6 8.6 0 00-2.8 7.5 9 9 0 006.4 7.6c3.3 1.1 6.5.2 9.2-2.6l14-14.6 7.3-7.6 1.6-1.6 2.6-2.6V185c0 5.6 2.7 8.8 8 9.4 3.3.4 7.6-.7 9.2-5a14.2 14.2 0 00.8-4.9V98l2 2 .6.5 5.1 5.1 9.3 9.3 3.2 3.1c2.6 2.7 5.4 5.5 8.2 8.1a7.9 7.9 0 009.2 1.5 8.8 8.8 0 005.6-8.3z"})]})}function re(e){var n=e.w;return(0,B.jsx)("svg",{className:"btc-line-icn",viewBox:"0 0 164.6 192.9",width:n,children:(0,B.jsx)("path",{className:"line-icn",d:"M143.2,184.9H21.4c-7.4,0-13.4-6-13.4-13.4V21.4C8,14,14,8,21.4,8h121.8c7.4,0,13.4,6,13.4,13.4v150.1 C156.6,178.9,150.6,184.9,143.2,184.9z M40.5,49.9h89.9 M40.8,87.7h65.3 M40.8,127.2h46.4"})})}function ae(e){var n=e.w;return(0,B.jsxs)("svg",{className:"btc-line-icn",viewBox:"0 0 172.3 163.8",width:n,children:[(0,B.jsx)("path",{className:"line-icn",d:"M146.6,150.5h-118c-11.4,0-20.7-9.3-20.7-20.7V28.7C8,17.3,17.3,8,28.7,8h118c11.4,0,20.7,9.3,20.7,20.7v101.1 C167.3,141.2,158.1,150.5,146.6,150.5z"}),(0,B.jsx)("path",{className:"line-icn",strokeWidth:"12",d:"M31.5,106.2l34-47.6c2.1-3,6.5-3.1,8.8-0.2l31.4,39.5"}),(0,B.jsx)("path",{className:"line-icn",strokeWidth:"12",d:"M93.2,86l12.8-15.1c2.1-3,6.5-3.1,8.8-0.2l31.4,39.5"}),(0,B.jsx)("path",{className:"line-icn",strokeWidth:"9",d:"M126,38.3L126,38.3c-2.1,0-3.8-1.7-3.8-3.8v0c0-2.1,1.7-3.8,3.8-3.8h0c2.1,0,3.8,1.7,3.8,3.8v0 C129.8,36.6,128.1,38.3,126,38.3z"})]})}function le(e){var n=e.w;return(0,B.jsx)("svg",{className:"btc-line-icn",viewBox:"0 0 178.7 142.4",width:n,children:(0,B.jsx)("path",{className:"line-icn",d:"M160.6,56.8H18.1C12,56.8,7,51.8,7,45.7V18.1C7,12,12,7,18.1,7h142.5c6.1,0,11.1,5,11.1,11.1v27.6 C171.7,51.8,166.7,56.8,160.6,56.8z M91.3,124.3V96.7c0-6.1-5-11.1-11.1-11.1h-62C12,85.6,7,90.6,7,96.7v27.6 c0,6.1,5,11.1,11.1,11.1h62C86.3,135.4,91.3,130.5,91.3,124.3z M170.3,124.3V96.7c0-6.1-5-11.1-11.1-11.1h-31.6 c-6.1,0-11.1,5-11.1,11.1v27.6c0,6.1,5,11.1,11.1,11.1h31.6C165.3,135.4,170.3,130.5,170.3,124.3z"})})}var oe=i(9910);function se(e){var n=e.w;return(0,B.jsxs)("svg",{width:n,xmlns:"http://www.w3.org/2000/svg",id:"Layer_1","data-name":"Layer 1",viewBox:"0 0 215 215",children:[(0,B.jsx)("path",{fill:"currentColor",d:"M165.8 12.7v-1.3a8 8 0 00-16 0v1.3H63.5v-1.3a8 8 0 00-16 0v1.3a38 38 0 00-36.4 38v115a38 38 0 0038 38h115a38 38 0 0038-38v-115a38 38 0 00-36.4-38zm-118.2 16v4.5a8 8 0 0016 0v-4.5h86.2v4.5a8 8 0 0016 0v-4.5a22 22 0 0120.4 22V69h-159V50.7a22 22 0 0120.4-22zm116.6 159h-115a22 22 0 01-22-22V85h159v80.7a22 22 0 01-22 22z",className:"cls-1"}),(0,B.jsx)("path",{fill:"currentColor",d:"M89.8 108.4H78.3q-4 6.4-15.4 8.8v12q4.2-.5 11.7-3.9v25.4H61.4v11.9h41v-12H89.8zM153 135.2a17.8 17.8 0 003-9.8 15.4 15.4 0 00-5.5-12.3q-5.5-4.7-14.2-4.7a22 22 0 00-13.9 4.6q-5.9 4.6-7.4 14l13.5 2.6q.7-9.2 6.6-9.2a5 5 0 013.8 1.5 5.7 5.7 0 011.5 4.1 8.8 8.8 0 01-1.7 5.1q-1.7 2.4-7.1 7t-7.5 5.8l-9 6.4v12.3h40.6l.6-13.1h-20.8q14.5-9.6 17.5-14.3z",className:"cls-1"})]})}function ce(e){var n=e.w;return(0,B.jsxs)("svg",{width:n,xmlns:"http://www.w3.org/2000/svg",id:"Layer_1","data-name":"Layer 1",viewBox:"0 0 215 215",children:[(0,B.jsx)("path",{fill:"currentColor",d:"M175.6 45.6H83.5V20.9h11.1c7.3 0 13.2-4.5 13.2-10s-6-10-13.2-10H52.3c-7.3 0-13.1 4.5-13.1 10s5.8 10 13.1 10h11.2v24.7h-24a38 38 0 00-38 38v47.7a38 38 0 0038 38h24v24.8H52.3c-7.3 0-13.1 4.5-13.1 10s5.8 10 13.1 10h42.3c7.3 0 13.2-4.5 13.2-10s-6-10-13.2-10H83.5v-24.8h92a38 38 0 0038-38V83.6a38 38 0 00-38-38zm22 85.7a22 22 0 01-22 22H39.4a22 22 0 01-22-22V83.6a22 22 0 0122-22h136.2a22 22 0 0122 22z",className:"cls-1"}),(0,B.jsx)("path",{fill:"currentColor",d:"M39.6 85.4h7.8v51.1h11.5V77.9l-19.5 1.7.2 5.8zM106.1 115.1l3.9-3.1q7.5-6 9.8-10a17.1 17.1 0 002.4-8.8 14 14 0 00-5.6-11.6q-5.6-4.4-14.7-4.4a48.7 48.7 0 00-17 3.3V89q8.4-4.3 14.7-4.3a11.3 11.3 0 017.5 2.3 8.3 8.3 0 012.8 6.7 15.1 15.1 0 01-3.3 9.2 61.5 61.5 0 01-8.4 8.9l-4.7 4.2a72.3 72.3 0 00-10.1 11.3v9.2H122v-9.2H96.5a16.1 16.1 0 014-6.8 57.1 57.1 0 015.6-5.4zM168.2 109a22 22 0 00-8.5-3.6q6.4-2 9.6-5.7a12.7 12.7 0 003.2-8.7 12 12 0 00-5-10q-4.9-3.7-14-3.7a57.3 57.3 0 00-10.4 1 43.4 43.4 0 00-5.7 1.6v7.9a32.9 32.9 0 0113.5-3.3c3.4 0 5.8.7 7.4 2.2a7.4 7.4 0 012.4 5.6 9.8 9.8 0 01-6.2 9.1q-3 1.2-9.5 1.2h-3v7h3.5q7 0 10.2 1.4a11 11 0 014.9 4 10.7 10.7 0 011.7 6 8.7 8.7 0 01-3.2 7 12.5 12.5 0 01-8.2 2.7q-5.7 0-14.3-3.3v8.6a51.2 51.2 0 009.4 1.7l6.4.2q11.6 0 16.8-5.2a16 16 0 005.1-11.7 14.6 14.6 0 00-1.5-6.6 15.8 15.8 0 00-4.6-5.4z",className:"cls-1"})]})}function de(e){var n=e.size;return(0,B.jsxs)("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 215 215",children:[(0,B.jsx)("path",{className:"cls-1",fill:"currentColor",d:"M94.61,20.9H52.3c-7.26,0-13.14-4.48-13.14-10h0C39.16,5.38,45,.9,52.3.9H94.61c7.26,0,13.15,4.48,13.15,10h0C107.76,16.42,101.87,20.9,94.61,20.9Z"}),(0,B.jsx)("path",{className:"cls-1",fill:"currentColor",d:"M94.61,214.1H52.3c-7.26,0-13.14-4.48-13.14-10h0c0-5.52,5.88-10,13.14-10H94.61c7.26,0,13.15,4.48,13.15,10h0C107.76,209.62,101.87,214.1,94.61,214.1Z"}),(0,B.jsx)("rect",{className:"cls-1",fill:"currentColor",x:"63.46",y:"161.34",width:"20",height:"35.76"}),(0,B.jsx)("rect",{className:"cls-1",fill:"currentColor",x:"63.46",y:"20.9",width:"20",height:"35.76"}),(0,B.jsx)("rect",{className:"cls-2",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",x:"9.44",y:"53.59",width:"196.13",height:"107.75",rx:"30"}),(0,B.jsx)("text",{className:"cls-3",fill:"currentColor",fontSize:"110.35",fontFamily:"Calibri-Bold, Calibri",fontWeight:"700",transform:"translate(26.36 162.55)",children:"***"})]})}function ue(e){var n=e.w;return(0,B.jsxs)("svg",{width:n,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 163.4 163.6",children:[(0,B.jsx)("defs",{}),(0,B.jsx)("path",{fill:"currentColor",d:"M124.4 28.1A47.8 47.8 0 0081 0H28.4A8.5 8.5 0 0020 7.1L.1 126.4a8.5 8.5 0 008.4 10h27.6l-2.9 17.3a8.5 8.5 0 008.4 10h34a8.5 8.5 0 008.4-7.2l5-30.2a4.3 4.3 0 014.2-3.6h22.4a47.7 47.7 0 008.8-94.6zm-86 94.6H14.5L32 17.2a4.3 4.3 0 014.2-3.6H81a34 34 0 110 68.2H52.4A8.5 8.5 0 0044 89zm111-42.1a34 34 0 01-33.7 28.5H85.3a8.5 8.5 0 00-8.4 7L71.3 150H47.6l8.5-51a4.3 4.3 0 014.2-3.6H81a48.7 48.7 0 005.6-.3A48 48 0 00128 55.6v-.1a46.5 46.5 0 00.6-5.8.8.8 0 000-.1 47.6 47.6 0 00-.1-5.7v-.3a1.2 1.2 0 010-.2 34.4 34.4 0 0114.2 10.8 33.7 33.7 0 016.6 26.4z"})]})}function me(e){var n=e.size;return(0,B.jsxs)("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 215 215",children:[(0,B.jsx)("rect",{className:"cls-1",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",x:"19.91",y:"20.9",width:"174",height:"174",rx:"85"}),(0,B.jsx)("rect",{className:"cls-2",fill:"currentColor",x:"71.6",y:"72.59",width:"70.62",height:"70.62",rx:"34.5"})]})}function pe(e){var n=e.w,i=e.h;return(0,B.jsxs)("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:n,height:i,viewBox:"0 0 176.53 215",children:[(0,B.jsx)("polygon",{fill:"currentColor",fillRule:"evenodd",points:"74.38 65.67 60.27 117.95 110.33 85.52 77.51 207.9 116.45 207.9 170.23 7.1 74.38 65.67"}),(0,B.jsx)("polygon",{fill:"currentColor",fillRule:"evenodd",points:"17.75 165.25 6.3 207.9 62.93 207.9 86.1 121.13 17.79 165.21 17.75 165.25"})]})}var he=i(483);function ge(e){var n=e.size;return(0,B.jsxs)("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 215 215",children:[(0,B.jsx)("path",{className:"cls-1",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",d:"M38.87,53.59H175a30,30,0,0,1,30,30v77.75a0,0,0,0,1,0,0H38.87a30,30,0,0,1-30-30V83.59A30,30,0,0,1,38.87,53.59Z"}),(0,B.jsx)("path",{className:"cls-2",fill:"currentColor",d:"M94.36,20.86H52c-7.25,0-13.14-4.48-13.14-10h0c0-5.52,5.89-10,13.14-10H94.36c7.26,0,13.14,4.48,13.14,10h0C107.5,16.38,101.62,20.86,94.36,20.86Z"}),(0,B.jsx)("path",{className:"cls-2",fill:"currentColor",d:"M94.36,214.07H52c-7.25,0-13.14-4.48-13.14-10h0c0-5.53,5.89-10,13.14-10H94.36c7.26,0,13.14,4.47,13.14,10h0C107.5,209.59,101.62,214.07,94.36,214.07Z"}),(0,B.jsx)("rect",{className:"cls-2",fill:"currentColor",x:"63.2",y:"11.27",width:"20",height:"185.79"}),(0,B.jsx)("polyline",{className:"cls-2",fill:"currentColor",points:"196.96 114.03 154.44 156.55 202.68 156.55 202.68 114.03 199 114.03"})]})}function fe(e){var n=e.size;return(0,B.jsxs)("svg",{width:n,height:n,id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 215 215",children:[(0,B.jsx)("rect",{className:"cls-1",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",x:"9.44",y:"53.59",width:"196.13",height:"107.75",rx:"30"}),(0,B.jsx)("path",{className:"cls-2",fill:"currentColor",d:"M94.36,20.86H52c-7.25,0-13.14-4.48-13.14-10h0c0-5.52,5.89-10,13.14-10H94.36c7.26,0,13.14,4.48,13.14,10h0C107.5,16.38,101.62,20.86,94.36,20.86Z"}),(0,B.jsx)("path",{className:"cls-2",fill:"currentColor",d:"M94.36,214.07H52c-7.25,0-13.14-4.48-13.14-10h0c0-5.53,5.89-10,13.14-10H94.36c7.26,0,13.14,4.47,13.14,10h0C107.5,209.59,101.62,214.07,94.36,214.07Z"}),(0,B.jsx)("rect",{className:"cls-2",fill:"currentColor",x:"63.2",y:"11.27",width:"20",height:"185.79"})]})}var xe=i(1865);function be(e){var n=e.size;return(0,B.jsxs)("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 215 215",children:[(0,B.jsx)("rect",{className:"cls-1",fill:"none",strokeWidth:"16",stroke:"currentColor",strokeMiterlimit:"10",x:"19.91",y:"20.9",width:"174",height:"174",rx:"85"}),(0,B.jsx)("path",{fill:"currentColor",className:"cls-2",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"4",d:"M138.3,151.06,99.23,113.52a6,6,0,0,1-1.85-4.34V56.47a6,6,0,0,1,6-6h0a6,6,0,0,1,6,6v47.59a6,6,0,0,0,1.85,4.33l35.37,34a6,6,0,0,1,.17,8.51h0A6,6,0,0,1,138.3,151.06Z"})]})}function ve(e){var n=e.w;return(0,B.jsxs)("svg",{width:n,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 215 215",children:[(0,B.jsx)("defs",{}),(0,B.jsx)("path",{fill:"currentColor",d:"M175.6 45.6H83.5V20.9h11.1c7.3 0 13.2-4.5 13.2-10s-6-10-13.2-10H52.3c-7.3 0-13.1 4.5-13.1 10s5.8 10 13.1 10h11.2v24.7h-24a38 38 0 00-38 38v47.7a38 38 0 0038 38h24v24.8H52.3c-7.3 0-13.1 4.5-13.1 10s5.8 10 13.1 10h42.3c7.3 0 13.2-4.5 13.2-10s-6-10-13.2-10H83.5v-24.8h92a38 38 0 0038-38V83.6a38 38 0 00-38-38zm22 85.7a22 22 0 01-22 22H39.4a22 22 0 01-22-22V83.6a22 22 0 0122-22h136.2a22 22 0 0122 22z",className:"cls-1"}),(0,B.jsx)("path",{fill:"currentColor",d:"M77 92.4a2.5 2.5 0 00-1-.2h-3.2a4.3 4.3 0 00-1 .2 1.1 1.1 0 00-.5.4 1.8 1.8 0 00-.3.6l-8.3 29v.4-.4l-8.5-29.1a2 2 0 00-.3-.6 1 1 0 00-.5-.3 3.7 3.7 0 00-1-.2h-3.1a3.9 3.9 0 00-1 .2 1 1 0 00-.5.4 1.6 1.6 0 00-.3.6l-7.7 29-.1.3v-.3l-8.5-29a2.8 2.8 0 00-.3-.6 1 1 0 00-.5-.4 4 4 0 00-1-.2H26a3.8 3.8 0 00-1 .1 1.1 1.1 0 00-.5.3 1 1 0 00-.2.6 3 3 0 000 .7 8 8 0 00.4 1L35 128.3a1.8 1.8 0 00.4.6 1.5 1.5 0 00.7.5 6.4 6.4 0 001.3.2 17.8 17.8 0 002 0h2a6.4 6.4 0 001.3-.2 1.8 1.8 0 00.7-.4 1.6 1.6 0 00.4-.7l6.8-25.5.1-.4.1.4 7.4 25.5a1.7 1.7 0 00.3.6 1.6 1.6 0 00.8.5 6.8 6.8 0 001.3.2 19.6 19.6 0 002 0h2a5.3 5.3 0 001.2-.2 1.8 1.8 0 00.7-.4 1.7 1.7 0 00.4-.7l10.3-33.4.2-1a3.5 3.5 0 00.1-.7 1 1 0 00-.1-.5 1.1 1.1 0 00-.5-.3zm57.4 0a2.5 2.5 0 00-.9-.2h-3.2a4.3 4.3 0 00-1 .2 1.1 1.1 0 00-.5.4 1.8 1.8 0 00-.3.6l-8.3 29v.4-.4l-8.5-29.1a2 2 0 00-.3-.6 1 1 0 00-.5-.3 3.7 3.7 0 00-1-.2h-3.1a3.9 3.9 0 00-1 .2 1 1 0 00-.5.4 1.6 1.6 0 00-.3.6l-7.8 29v.3l-.1-.3-8.5-29a2.8 2.8 0 00-.3-.6 1 1 0 00-.5-.4 4 4 0 00-1-.2h-3.3a3.8 3.8 0 00-1 .1 1.1 1.1 0 00-.5.3 1 1 0 00-.1.6 3 3 0 000 .7 8 8 0 00.3 1l10.3 33.4a1.8 1.8 0 00.3.6 1.5 1.5 0 00.8.5 6.4 6.4 0 001.2.2 17.8 17.8 0 002 0h2a6.4 6.4 0 001.3-.2 1.8 1.8 0 00.8-.4 1.6 1.6 0 00.3-.7l6.9-25.5v-.4l.2.4 7.3 25.5a1.7 1.7 0 00.4.6 1.6 1.6 0 00.7.5 6.8 6.8 0 001.3.2 19.6 19.6 0 002 0h2a5.3 5.3 0 001.2-.2 1.8 1.8 0 00.7-.4 1.7 1.7 0 00.4-.7l10.4-33.4.2-1a3.5 3.5 0 00.1-.7 1 1 0 00-.1-.5 1.1 1.1 0 00-.5-.3zm55.1-.3h-1.7a4.3 4.3 0 00-1 .3 1.1 1.1 0 00-.5.4 1.8 1.8 0 00-.3.6l-8.3 29v.3-.3l-8.5-29.1a2 2 0 00-.3-.6 1 1 0 00-.5-.3 3.7 3.7 0 00-1-.2h-3.1a3.9 3.9 0 00-1 .2 1 1 0 00-.5.4 1.6 1.6 0 00-.3.6l-7.7 29-.1.3v-.3l-8.6-29a2.8 2.8 0 00-.2-.6 1 1 0 00-.5-.4 4 4 0 00-1-.2H141a3.8 3.8 0 00-1 .1 1.1 1.1 0 00-.5.3 1 1 0 00-.2.6 3 3 0 000 .7 8 8 0 00.4 1l10.2 33.4a1.8 1.8 0 00.4.6 1.5 1.5 0 00.7.5 6.4 6.4 0 001.3.2 17.8 17.8 0 002 0h2a6.4 6.4 0 001.3-.2 1.8 1.8 0 00.7-.4 1.6 1.6 0 00.4-.7l6.8-25.5.1-.4.1.4 7.4 25.5a1.7 1.7 0 00.3.6 1.6 1.6 0 00.8.5 6.8 6.8 0 001.3.2 19.6 19.6 0 002 0h2a5.3 5.3 0 001.2-.2 1.8 1.8 0 00.7-.4 1.7 1.7 0 00.4-.7l10.3-33.4.3-1a3.5 3.5 0 000-.7 1 1 0 000-.5 1.1 1.1 0 00-.5-.4 2.5 2.5 0 00-1-.2h-1.5z",className:"cls-1"})]})}function _e(e){var n=e.size;return(0,B.jsxs)("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 215 215",children:[(0,B.jsx)("path",{className:"cls-1",fill:"currentColor",d:"M165.75,12.72V11.43a8,8,0,0,0-16,0v1.25H63.65V11.43a8,8,0,0,0-8-8h0a8,8,0,0,0-8,8v1.29a38,38,0,0,0-36.45,38v115a38,38,0,0,0,38,38h115a38,38,0,0,0,38-38v-115A38,38,0,0,0,165.75,12.72Zm-118.1,16v4.48a8,8,0,0,0,8,8h0a8,8,0,0,0,8-8V28.68h86.1v4.54a8,8,0,0,0,16,0V28.74A22,22,0,0,1,186.2,50.68V69H27.2V50.68A22,22,0,0,1,47.65,28.74ZM164.2,187.68H49.2a22,22,0,0,1-22-22V85h159v80.72A22,22,0,0,1,164.2,187.68Z"}),(0,B.jsx)("path",{className:"cls-1",fill:"currentColor",d:"M86.92,122.59h24.73A63.65,63.65,0,0,0,99.32,142q-4.59,11.13-4.59,20.55h17.62c-.1-1.56-.16-2.68-.16-3.36a63.16,63.16,0,0,1,4.18-21.76q4.18-11.37,10-18.2v-10H88.05Z"})]})}var je=i(8585),Ne=i(9151);function ye(e){var n=e.className,i=e.cls,r=e.width,a=e.title,l=e.inpType,o=e.action,s=e.value,c=e.placeholder,d=e.name,u=e.list,m=e.disabled;return(0,B.jsxs)("div",{className:"mt-3 setting-inp "+n,style:(0,t.Z)({},r&&{width:r}),children:[(0,B.jsx)("span",{children:a}),(0,B.jsx)("input",{className:"btcd-paper-inp "+i,type:l,onChange:o,value:s,placeholder:c,name:d,list:u,disabled:m})]})}function Ce(e){var n=e.className,i=e.title,t=e.isChecked,r=e.name,a=e.action,l=e.disabled;return(0,B.jsxs)("div",{className:"flx flx-between "+n,children:[(0,B.jsx)("span",{className:"font-w-m",children:i}),(0,B.jsxs)("label",{htmlFor:"s-ck-"+(i||r)+"-"+t,className:"btcd-label",children:[(0,B.jsxs)("div",{className:"btcd-toggle",children:[(0,B.jsx)("input",{id:"s-ck-"+(i||r)+"-"+t,onChange:a,className:"btcd-toggle-state",type:"checkbox",name:r||"check",value:"check",checked:t,disabled:l}),(0,B.jsx)("div",{className:"btcd-toggle-inner",children:(0,B.jsx)("div",{className:"btcd-indicator"})}),(0,B.jsx)("div",{className:"btcd-active-bg"})]}),(0,B.jsx)("div",{className:"btcd-label-text"})]})]})}var Ae=i(1238);function Se(){var e=(0,o.Zl)(D.gx);return(0,B.jsxs)("div",{className:"flx cp",onClick:function(){return e(null)},type:"button",role:"button",tabIndex:"0",onKeyPress:function(){return e(null)},children:[(0,B.jsx)("button",{className:"icn-btn",type:"button","aria-label":"back to field list",children:(0,B.jsx)(Ae.Z,{})}),(0,B.jsx)("h4",{children:(0,d.__)("All Field List","bitform")})]})}var we=i(8762),Ie=i(3429);function ke(e){var n,i=e.labelModal,r=e.setLabelModal,a=(0,o.sJ)(D.gx),l=(0,o.FV)(D.AK),c=l[0],u=l[1],m=(0,M.p$)(c[a]),p=m.lbl||(null==m||null==(n=m.info)?void 0:n.lbl),h=(0,s.useState)(p),g=h[0],f=h[1];(0,s.useEffect)((function(){i&&f(p)}),[i]);var x=function(){m.lbl=g,u((function(e){var n;return(0,t.Z)({},e,((n={})[a]=m,n))})),r(!1)};return(0,B.jsxs)(we.Z,{md:!0,show:i,setModal:x,title:(0,d.__)("Edit Decision Box Label","bitform"),children:[(0,B.jsx)(Ie.Z,{id:a,value:p,onChangeHandler:function(e){u((function(n){return(0,U.ZP)(n,(function(n){n[a].lbl=e}))}))}}),(0,B.jsxs)("div",{className:"mt-2 f-right",children:[(0,B.jsx)("button",{type:"button",className:"btn mr-2",onClick:x,children:"Cancel"}),(0,B.jsx)("button",{type:"button",className:"btn blue",onClick:function(){return r(!1)},children:"Save"})]})]})}function Re(e){var n=e.className,i=e.cls,t=e.id,r=e.name,a=e.refer,l=e.onChange,o=e.checked,s=e.value,c=e.title,d=t||Math.random();return(0,B.jsxs)("div",{className:"form-check "+n,children:[(0,B.jsx)("input",{type:"checkbox",className:"form-check-input "+i,id:d,name:r,ref:a,onChange:l,checked:o,value:s}),(0,B.jsx)("label",{className:"form-check-label",htmlFor:d,children:c})]})}function Ee(e){var n,i,r,a,l,c,u=e.errorModal,m=e.setErrorModal,p=e.type,h=(0,o.sJ)(D.gx),g=(0,o.FV)(D.AK),f=g[0],x=g[1],b=f[h],v=(0,M.p$)(b),_=null!=v&&null!=(n=v.err)&&null!=(i=n[p])&&i.custom?null==v||null==(r=v.err)||null==(a=r[p])?void 0:a.msg:null==v||null==(l=v.err)||null==(c=l[p])?void 0:c.dflt,j=(0,s.useState)(_),N=j[0],y=j[1];(0,s.useEffect)((function(){u&&y(_)}),[u]);var C=function(){v.err[p].msg=N,setTimeout((function(){x((function(e){var n;return(0,t.Z)({},e,((n={})[h]=v,n))})),m(!1)}))};return(0,B.jsxs)(we.Z,{md:!0,show:u,setModal:C,title:(0,d.__)("Edit Custom Error Message","bitform"),children:[(0,B.jsx)(Ie.Z,{id:h+"-"+p,menubar:!1,value:_,onChangeHandler:function(e){return function(e,n){x((function(i){return(0,U.ZP)(i,(function(i){i[h].err||(i[h].err={}),i[h].err[e]||(i[h].err[e]={}),i[h].err[e].msg=n}))}))}(p,e)}}),(0,B.jsxs)("div",{className:"mt-2 f-right",children:[(0,B.jsx)("button",{type:"button",className:"btn mr-2",onClick:C,children:"Cancel"}),(0,B.jsx)("button",{type:"button",className:"btn blue",onClick:function(){return m(!1)},children:"Save"})]})]})}function Ue(e){var n,i,r,a,l,c,u,m,p,h,g,f,x=e.type,b=e.title,v=e.tipTitle,_=e.defaultMsg,j=(0,s.useState)(!1),N=j[0],y=j[1],C=(0,o.sJ)(D.gx),A=(0,o.FV)(D.AK),S=A[0],w=A[1],I=(0,M.p$)(S[C]),k=null!=I&&null!=(n=I.err)&&null!=(i=n[x])&&i.custom?null==I||null==(r=I.err)||null==(a=r[x])?void 0:a.msg:(null==I||null==(l=I.err)||null==(c=l[x])?void 0:c.dflt)||_,R=function(){I.err||(I.err={}),I.err[x]||(I.err[x]={}),I.err[x].custom=!0,I.err[x].msg||(I.err[x].msg=I.err[x].dflt),setTimeout((function(){w((function(e){var n;return(0,t.Z)({},e,((n={})[C]=I,n))})),y(!0)}))};return(0,B.jsxs)("div",{className:"err-msg-wrapper",children:[(0,B.jsxs)("div",{className:"flx pt-2 flx-between py-1",children:[(0,B.jsxs)("h4",{className:"flx mt-0 mb-0",children:[(0,d.__)(b,"bitform"),(0,B.jsx)(je.Z,{width:250,icnSize:17,className:"ml-2",children:(0,B.jsx)("div",{className:"txt-body",children:(0,d.__)(v,"bitform")})})]}),(0,B.jsx)(Ce,{name:x,action:function(e){var n=e.target,i=n.name,r=n.checked;I.err||(I.err={}),I.err[i]||(I.err[i]={}),r?(I.err[i].show=!0,I.err[i].dflt||(I.err[i].dflt=_)):delete I.err[i].show,w((function(e){var n;return(0,t.Z)({},e,((n={})[C]=I,n))}))},isChecked:null==I||null==(u=I.err)||null==(m=u[x])?void 0:m.show})]}),(null==I||null==(p=I.err)||null==(h=p[x])?void 0:h.show)&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{className:"flx flx-between mt-2 mb-1 mr-2",children:[(0,B.jsxs)("div",{className:"flx",children:[(0,B.jsx)(Re,{className:" mr-2",name:x,checked:(null==I||null==(g=I.err)||null==(f=g[x])?void 0:f.custom)||!1,title:(0,d.__)("Custom Error Message","bitform"),onChange:function(e){var n=e.target,i=n.name,r=n.checked;I.err||(I.err={}),I.err[i]||(I.err[i]={}),r?(I.err[i].custom=!0,I.err[i].msg||(I.err[i].msg=I.err[i].dflt)):delete I.err[i].custom,w((function(e){var n;return(0,t.Z)({},e,((n={})[C]=I,n))}))}}),(0,B.jsx)(je.Z,{width:250,icnSize:17,className:"mr-2",children:(0,B.jsxs)("div",{className:"txt-body",children:["Check the box to enable the custom error message.",(0,B.jsx)("br",{}),"Note: You can edit the message by clicking on edit icon."]})})]}),(0,B.jsx)("span",{role:"button",tabIndex:"-1",className:"cp",onClick:R,onKeyPress:R,children:(0,B.jsx)(X.Z,{size:19})})]}),(0,B.jsx)("div",{dangerouslySetInnerHTML:{__html:k},className:"err-msg-box mt-2"}),(0,B.jsx)(Ee,{errorModal:N,setErrorModal:y,type:x})]})]})}function Te(){var e,n,i=(0,o.sJ)(D.gx),r=(0,o.FV)(D.AK),a=r[0],l=r[1],c=(0,M.p$)(a[i]),u=(0,s.useState)(!1),m=u[0],p=u[1];var h=function(e,n){c.msg[n]=e,l((function(e){var n;return(0,t.Z)({},e,((n={})[i]=c,n))}))};return(0,B.jsxs)("div",{className:"mr-4 ml-2",children:[(0,B.jsx)(Se,{}),(0,B.jsxs)("div",{className:"mb-2",children:[(0,B.jsx)("span",{className:"font-w-m",children:"Field Type :"})," ",c.typ.charAt(0).toUpperCase()+c.typ.slice(1)]}),(0,B.jsxs)("div",{className:"flx",children:[(0,B.jsx)("span",{className:"font-w-m w-4",children:(0,d.__)("Field Key : ","bitform")}),(0,B.jsx)(Ne.Z,{value:i,className:"field-key-cpy m-0"})]}),(0,B.jsxs)("div",{className:"mt-3",children:[(0,B.jsxs)("div",{className:"flx flx-between",children:[(0,B.jsxs)("div",{className:"flx",children:[(0,B.jsx)("b",{children:"Label: "}),(0,B.jsx)(je.Z,{width:250,icnSize:17,className:"ml-2",children:(0,B.jsx)("div",{className:"txt-body",children:(0,d.__)("Edit your decision box label by clicking on edit icon","bitform")})})]}),(0,B.jsx)("span",{role:"button",tabIndex:"-1",className:"mr-2 cp",onClick:function(){return p(!0)},onKeyPress:function(){return p(!0)},children:(0,B.jsx)(X.Z,{size:19})})]}),(0,B.jsx)("div",{dangerouslySetInnerHTML:{__html:c.lbl||(null==c||null==(e=c.info)?void 0:e.lbl)},className:"err-msg-box mt-2"})]}),(0,B.jsx)(ke,{labelModal:m,setLabelModal:p}),(0,B.jsx)(ye,{inpType:"text",title:(0,d.__)("Admin Label:","bitform"),value:c.adminLbl||"",action:function(e){""===e.target.value?delete c.adminLbl:c.adminLbl=e.target.value,l((function(e){var n;return(0,t.Z)({},e,((n={})[i]=c,n))}))}}),(0,B.jsx)(Ce,{title:(0,d.__)("Required:","bitform"),action:function(e){if(e.target.checked){var n=(0,t.Z)({},c.valid);n.req=!0,c.valid=n,c.err||(c.err={}),c.err.req||(c.err.req={}),c.err.req.dflt="<p>This field is required</p>",c.err.req.show=!0}else delete c.valid.req;l((function(e){var n;return(0,t.Z)({},e,((n={})[i]=c,n))}))},isChecked:c.valid.req,className:"mt-3"}),(null==c||null==(n=c.valid)?void 0:n.req)&&(0,B.jsx)(Ue,{type:"req",title:"Error Message",tipTitle:"By enabling this feature, user will see the error message if decision box is not checked"}),(0,B.jsx)(ye,{inpType:"text",title:(0,d.__)("Checked Value:","bitform"),value:c.msg.checked||"",action:function(e){return h(e.target.value,"checked")}}),(0,B.jsx)(ye,{inpType:"text",title:(0,d.__)("Unchecked Value:","bitform"),value:c.msg.unchecked||"",action:function(e){return h(e.target.value,"unchecked")}}),(0,B.jsx)(Ce,{title:(0,d.__)("Checked by Default:","bitform"),action:function(e){if(e.target.checked){var n=(0,t.Z)({},c.valid);n.checked=!0,c.valid=n}else delete c.valid.checked;l((function(e){var n;return(0,t.Z)({},e,((n={})[i]=c,n))}))},isChecked:c.valid.checked,className:"mt-3"})]})}function Le(e){var n,i=e.labelModal,r=e.setLabelModal,a=(0,o.sJ)(D.gx),l=(0,o.FV)(D.AK),c=l[0],u=l[1],m=(0,M.p$)(c[a]),p=m.content||(null==m||null==(n=m.info)?void 0:n.content),h=(0,s.useState)(p),g=h[0],f=h[1];(0,s.useEffect)((function(){i&&f(p)}),[i]);var x=function(){m.content=g,u((function(e){var n;return(0,t.Z)({},e,((n={})[a]=m,n))})),r(!1)};return(0,B.jsxs)(we.Z,{md:!0,show:i,setModal:x,title:(0,d.__)("Edit Decision Box Label","bitform"),children:[(0,B.jsx)(Ie.Z,{id:a,value:p,onChangeHandler:function(e){u((function(n){return(0,U.ZP)(n,(function(n){n[a].content=e}))}))}}),(0,B.jsxs)("div",{className:"mt-2 f-right",children:[(0,B.jsx)("button",{type:"button",className:"btn mr-2",onClick:x,children:"Cancel"}),(0,B.jsx)("button",{type:"button",className:"btn blue",onClick:function(){return r(!1)},children:"Save"})]})]})}function Oe(){var e=(0,o.sJ)(D.gx),n=(0,o.FV)(D.AK),i=n[0],t=(n[1],(0,M.p$)(i[e])),r=(0,s.useState)(!1),a=r[0],l=r[1];return(0,B.jsxs)("div",{className:"mr-4 ml-2",children:[(0,B.jsx)(Se,{}),(0,B.jsxs)("div",{className:"mb-2",children:[(0,B.jsx)("span",{className:"font-w-m",children:"Field Type :"})," ",t.typ.charAt(0).toUpperCase()+t.typ.slice(1)]}),(0,B.jsxs)("div",{className:"mt-3",children:[(0,B.jsxs)("div",{className:"flx flx-between",children:[(0,B.jsxs)("div",{className:"flx",children:[(0,B.jsx)("b",{children:"Content: "}),(0,B.jsx)(je.Z,{width:250,icnSize:17,className:"ml-2",children:(0,B.jsx)("div",{className:"txt-body",children:(0,d.__)("Edit the HTML field content by clicking on edit icon","bitform")})})]}),(0,B.jsx)("span",{role:"button",tabIndex:"-1",className:"mr-2 cp",onClick:function(){return l(!0)},onKeyPress:function(){return l(!0)},children:(0,B.jsx)(X.Z,{size:19})})]}),(0,B.jsx)("div",{dangerouslySetInnerHTML:{__html:t.content},className:"err-msg-box mt-2"})]}),(0,B.jsx)(Le,{labelModal:a,setLabelModal:l})]})}function Me(e){var n=e.title,i=e.value,t=e.action,r=e.name,a=e.options;return(0,B.jsxs)("div",{className:"mt-3 setting-inp",children:[(0,B.jsx)("span",{children:n}),(0,B.jsx)("select",{className:"btcd-paper-inp mt-1",value:i,onChange:t,name:r,children:a.map((function(e){return(0,B.jsx)("option",{value:e.value,children:e.name},"btcd-k-"+e.name)}))})]})}function De(){var e=(0,o.sJ)(D.gx),n=(0,o.FV)(D.AK),i=n[0],r=n[1],a=(0,M.p$)(i[e]),l=(0,s.useState)({}),c=l[0],u=l[1],m=a.txt,p=a.align,h=a.fulW,g=a.btnSiz,f=a.btnTyp,x=[{name:(0,d.__)("Left","bitform"),value:"left"},{name:(0,d.__)("Center","bitform"),value:"center"},{name:(0,d.__)("Right","bitform"),value:"right"}];var b=function(){return Object.values(i).filter((function(e){return"button"===e.typ&&"submit"===e.btnTyp})).length>=1};return(0,B.jsxs)("div",{className:"ml-2 mr-4",children:[(0,B.jsx)(Se,{}),(0,B.jsxs)("div",{children:[(0,B.jsx)("span",{className:"font-w-m",children:(0,d.__)("Field Type : ","bitform")}),(0,d.__)("Button","bitform")]}),(0,B.jsx)(ye,{inpType:"text",title:(0,d.__)("Submit Button Text:","bitform"),value:m,action:function(n){a.txt=n.target.value,r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))}}),(0,B.jsx)(Me,{title:(0,d.__)("Button Align:","bitform"),options:x,value:p,action:function(n){a.align=n.target.value,r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))}}),(0,B.jsx)(Me,{title:(0,d.__)("Button Type:","bitform"),options:[{name:"Submit",value:"submit"},{name:"Reset",value:"reset"},{name:"Button",value:"button"}],value:f,action:function(n){a.btnTyp=n.target.value,"submit"===a.btnTyp&&b()?u({btnTyp:(0,d.__)("Already have a submit button")}):(c.btnTyp&&u({btnTyp:""}),r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))})))}}),c.btnTyp&&(0,B.jsx)("span",{style:{color:"red"},children:c.btnTyp}),(0,B.jsx)(Ce,{title:(0,d.__)("Full Width Button:","bitform"),action:function(n){a.fulW=n.target.checked,r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))},isChecked:h,className:"mt-5"}),(0,B.jsx)(Ce,{title:(0,d.__)("Small Button:","bitform"),action:function(n){n.target.checked?a.btnSiz="sm":a.btnSiz="md",r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))},isChecked:"sm"===g,className:"mt-5"})]})}var Be=i(97);function Pe(){var e=(0,o.sJ)(D.gx),n=(0,o.FV)(D.AK),i=n[0],r=n[1],a=(0,M.p$)(i[e]),l=a.lbl||"";return(0,B.jsxs)("div",{className:"mt-3 setting-inp",children:[(0,B.jsxs)("div",{className:"flx flx-between",children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("span",{children:(0,d.__)("Field Label:","bitform")}),(0,B.jsx)(je.Z,{width:250,icnSize:17,className:"ml-2",children:(0,B.jsx)("div",{className:"txt-body",children:(0,d.__)("By disabling this option, the field label will be hidden","bitform")})})]}),(0,B.jsx)(Ce,{action:function(n){n.target.checked?delete a.valid.hideLbl:a.valid.hideLbl=!0,r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))},isChecked:!a.valid.hideLbl})]}),(0,B.jsx)("input",{className:"btcd-paper-inp",type:"text",onChange:function(n){""===n.target.value?delete a.lbl:a.lbl=n.target.value,r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))},value:l})]})}function Xe(){var e=(0,o.sJ)(D.gx),n=(0,o.FV)(D.AK),i=n[0],r=n[1],a=(0,M.p$)(i[e]),l=void 0!==a.valid.req,s=void 0!==a.mul,c=void 0===a.adminLbl?"":a.adminLbl,u=a.upBtnTxt,m=void 0===a.mxUp?"":a.mxUp,p=void 0===a.exts?[]:a.exts.split(",._RF_,");return(0,B.jsxs)("div",{className:"ml-2 mr-4",children:[(0,B.jsx)(Se,{}),(0,B.jsxs)("div",{className:"mb-2",children:[(0,B.jsx)("span",{className:"font-w-m",children:"Field Type : "}),"File Upload"]}),(0,B.jsxs)("div",{className:"flx",children:[(0,B.jsx)("span",{className:"font-w-m w-4",children:(0,d.__)("Field Key : ","bitform")}),(0,B.jsx)(Ne.Z,{value:e,className:"field-key-cpy m-0"})]}),(0,B.jsx)(Pe,{}),(0,B.jsx)(ye,{inpType:"text",title:(0,d.__)("Admin Label:","bitform"),value:c,action:function(n){""===n.target.value?delete a.adminLbl:a.adminLbl=n.target.value,r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))}}),(0,B.jsx)(ye,{inpType:"text",title:(0,d.__)("Upload Button Text:","bitform"),value:u,action:function(n){a.upBtnTxt=n.target.value,r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))}}),(0,B.jsx)(Ce,{title:(0,d.__)("Required:","bitform"),action:function(n){if(n.target.checked){var i=(0,t.Z)({},a.valid);i.req=!0,a.valid=i,a.err||(a.err={}),a.err.req||(a.err.req={}),a.err.req.dflt="<p>This field is required</p>",a.err.req.show=!0}else delete a.valid.req;r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))},isChecked:l,className:"mt-2"}),l&&(0,B.jsx)(Ue,{type:"req",title:"Error Message",tipTitle:"By enabling this feature, user will see the error message if any file is not uploaded"}),(0,B.jsx)(Ce,{title:(0,d.__)("Allow Multiple:","bitform"),action:function(n){n.target.checked?a.mul=!0:delete a.mul,r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))},isChecked:s,className:"mt-3"}),(0,B.jsxs)("div",{className:"mt-3",children:[(0,B.jsx)("b",{children:(0,d.__)("Max Upload Size:","bitform")}),(0,B.jsx)("br",{}),(0,B.jsx)("div",{className:"flx "+(!s&&"mt-1"),children:(0,B.jsx)("input",{type:"number",className:"btcd-paper-inp",value:m,onChange:function(n){""===n.target.value?(delete a.mxUp,delete a.unit):(a.mxUp=n.target.value,a.unit="MB"),r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))},placeholder:"Any Size"})})]}),(0,B.jsx)(Be.Z,{className:"mt-2 w-10",titleClassName:"mt-3 setting-inp",title:(0,d.__)("Allowed File Type:","bitform"),isMultiple:!0,addable:!0,options:[{label:"Images",value:".xbm,.tif,.pjp,.pjpeg,.svgz,.jpg,.jpeg,.ico,.tiff,.gif,.svg,.bmp,.png,.jfif,.webp,.tif"},{label:"Audios",value:".opus,.flac,.webm,.weba,.wav,.ogg,.m4a,.mp3,.oga,.mid,.amr,.aiff,.wma,.au,.acc,.wpl"},{label:"Videos",value:".ogm,.wmv,.mpg,.webm,.ogv,.mov,.asx,.mpeg,.mp4,.m4v,.avi,.3g2,.3gp,.flv,.mkv,.swf"},{label:"Documents",value:".doc,.docx,.odt,.pdf,.rtf,.tex,.txt,.wks,.wps,.wpd"},{label:"Zip",value:".7z,.arj,.deb,.pkg,.rar,.rpm,.gz,.z,.zip"},{label:"Presentation",value:".key,.odp,.pps,.ppt,.pptx"},{label:"Spreadsheet",value:".ods,.xlr,.xls,.xlsx"},{label:"Databases",value:".csv,.dat,.db,.dbf,.log,.mdb,.sav,.sql,.tar,.sql,.sqlite,.xml"}],placeholder:(0,d.__)("Select File Type","bitform"),jsonValue:!0,action:function(n){var i=n.map((function(e){return e.value}));""===i.join(",")?delete a.exts:a.exts=i.join(",._RF_,"),r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))},value:p})]})}var ze=i(7707),Ze=[{label:"Credit or debit cards",value:"card"},{label:"PayPal Credit",value:"credit"},{label:"Bancontact",value:"bancontact"},{label:"BLIK",value:"blik"},{label:"eps",value:"eps"},{label:"giropay",value:"giropay"},{label:"iDEAL",value:"ideal"},{label:"Mercado Pago",value:"mercadopago"},{label:"MyBank",value:"mybank"},{label:"Przelewy24",value:"p24"},{label:"SEPA-Lastschrift",value:"sepa"},{label:"Sofort",value:"sofort"},{label:"Venmo",value:"venmo"}],He=[{currency:"Australian dollar",code:"AUD"},{currency:"Brazilian real",code:"BRL"},{currency:"Canadian dollar",code:"CAD"},{currency:"Chinese Renmenbi",code:"CNY"},{currency:"Czech koruna",code:"CZK"},{currency:"Danish krone",code:"DKK"},{currency:"Euro",code:"EUR"},{currency:"Hong Kong dollar",code:"HKD"},{currency:"Hungarian forint",code:"HUF"},{currency:"Indian rupee",code:"INR"},{currency:"Israeli new shekel",code:"ILS"},{currency:"Japanese yen",code:"JPY"},{currency:"Malaysian ringgit",code:"MYR"},{currency:"Mexican peso",code:"MXN"},{currency:"New Taiwan dollar",code:"TWD"},{currency:"New Zealand dollar",code:"NZD"},{currency:"Norwegian krone",code:"NOK"},{currency:"Philippine peso",code:"PHP"},{currency:"Polish złoty",code:"PLN"},{currency:"Pound sterling",code:"GBP"},{currency:"Russian ruble",code:"RUB"},{currency:"Singapore dollar",code:"SGD"},{currency:"Swedish krona",code:"SEK"},{currency:"Swiss franc",code:"CHF"},{currency:"Thai baht",code:"THB"},{currency:"United States dollar",code:"USD"}],Ge=[{region:"ALBANIA",code:"en_US"},{region:"ALGERIA",code:"ar_EG"},{region:"ALGERIA",code:"en_US"},{region:"ALGERIA",code:"fr_XC"},{region:"ALGERIA",code:"es_XC"},{region:"ALGERIA",code:"zh_XC"},{region:"ANDORRA",code:"en_US"},{region:"ANDORRA",code:"fr_XC"},{region:"ANDORRA",code:"es_XC"},{region:"ANDORRA",code:"zh_XC"},{region:"ANGOLA",code:"en_US"},{region:"ANGOLA",code:"fr_XC"},{region:"ANGOLA",code:"es_XC"},{region:"ANGOLA",code:"zh_XC"},{region:"ANGUILLA",code:"en_US"},{region:"ANGUILLA",code:"fr_XC"},{region:"ANGUILLA",code:"es_XC"},{region:"ANGUILLA",code:"zh_XC"},{region:"ANTIGUA & BARBUDA",code:"en_US"},{region:"ANTIGUA & BARBUDA",code:"fr_XC"},{region:"ANTIGUA & BARBUDA",code:"es_XC"},{region:"ANTIGUA & BARBUDA",code:"zh_XC"},{region:"ARGENTINA",code:"es_XC"},{region:"ARGENTINA",code:"en_US"},{region:"ARMENIA",code:"en_US"},{region:"ARMENIA",code:"fr_XC"},{region:"ARMENIA",code:"es_XC"},{region:"ARMENIA",code:"zh_XC"},{region:"ARUBA",code:"en_US"},{region:"ARUBA",code:"fr_XC"},{region:"ARUBA",code:"es_XC"},{region:"ARUBA",code:"zh_XC"},{region:"AUSTRALIA",code:"en_AU"},{region:"AUSTRIA",code:"de_DE"},{region:"AUSTRIA",code:"en_US"},{region:"AZERBAIJAN",code:"en_US"},{region:"AZERBAIJAN",code:"fr_XC"},{region:"AZERBAIJAN",code:"es_XC"},{region:"AZERBAIJAN",code:"zh_XC"},{region:"BAHAMAS",code:"en_US"},{region:"BAHAMAS",code:"fr_XC"},{region:"BAHAMAS",code:"es_XC"},{region:"BAHAMAS",code:"zh_XC"},{region:"BAHRAIN",code:"ar_EG"},{region:"BAHRAIN",code:"en_US"},{region:"BAHRAIN",code:"fr_XC"},{region:"BAHRAIN",code:"es_XC"},{region:"BAHRAIN",code:"zh_XC"},{region:"BARBADOS",code:"en_US"},{region:"BARBADOS",code:"fr_XC"},{region:"BARBADOS",code:"es_XC"},{region:"BARBADOS",code:"zh_XC"},{region:"BELARUS",code:"en_US"},{region:"BELGIUM",code:"en_US"},{region:"BELGIUM",code:"nl_NL"},{region:"BELGIUM",code:"fr_FR"},{region:"BELIZE",code:"es_XC"},{region:"BELIZE",code:"en_US"},{region:"BELIZE",code:"fr_XC"},{region:"BELIZE",code:"zh_XC"},{region:"BENIN",code:"fr_XC"},{region:"BENIN",code:"en_US"},{region:"BENIN",code:"es_XC"},{region:"BENIN",code:"zh_XC"},{region:"BERMUDA",code:"en_US"},{region:"BERMUDA",code:"fr_XC"},{region:"BERMUDA",code:"es_XC"},{region:"BERMUDA",code:"zh_XC"},{region:"BHUTAN",code:"en_US"},{region:"BOLIVIA",code:"es_XC"},{region:"BOLIVIA",code:"en_US"},{region:"BOLIVIA",code:"fr_XC"},{region:"BOLIVIA",code:"zh_XC"},{region:"BOSNIA & HERZEGOVINA",code:"en_US"},{region:"BOTSWANA",code:"en_US"},{region:"BOTSWANA",code:"fr_XC"},{region:"BOTSWANA",code:"es_XC"},{region:"BOTSWANA",code:"zh_XC"},{region:"BRAZIL",code:"pt_BR"},{region:"BRAZIL",code:"en_US"},{region:"BRITISH VIRGIN ISLANDS",code:"en_US"},{region:"BRITISH VIRGIN ISLANDS",code:"fr_XC"},{region:"BRITISH VIRGIN ISLANDS",code:"es_XC"},{region:"BRITISH VIRGIN ISLANDS",code:"zh_XC"},{region:"BRUNEI",code:"en_US"},{region:"BULGARIA",code:"en_US"},{region:"BURKINA FASO",code:"fr_XC"},{region:"BURKINA FASO",code:"en_US"},{region:"BURKINA FASO",code:"es_XC"},{region:"BURKINA FASO",code:"zh_XC"},{region:"BURUNDI",code:"fr_XC"},{region:"BURUNDI",code:"en_US"},{region:"BURUNDI",code:"es_XC"},{region:"BURUNDI",code:"zh_XC"},{region:"CAMBODIA",code:"en_US"},{region:"CAMEROON",code:"fr_XC"},{region:"CAMEROON",code:"en_US"},{region:"CANADA",code:"en_US"},{region:"CANADA",code:"fr_CA"},{region:"CAPE VERDE",code:"en_US"},{region:"CAPE VERDE",code:"fr_XC"},{region:"CAPE VERDE",code:"es_XC"},{region:"CAPE VERDE",code:"zh_XC"},{region:"CAYMAN ISLANDS",code:"en_US"},{region:"CAYMAN ISLANDS",code:"fr_XC"},{region:"CAYMAN ISLANDS",code:"es_XC"},{region:"CAYMAN ISLANDS",code:"zh_XC"},{region:"CHAD",code:"fr_XC"},{region:"CHAD",code:"en_US"},{region:"CHAD",code:"es_XC"},{region:"CHAD",code:"zh_XC"},{region:"CHILE",code:"es_XC"},{region:"CHILE",code:"en_US"},{region:"CHILE",code:"fr_XC"},{region:"CHILE",code:"zh_XC"},{region:"CHINA",code:"zh_CN"},{region:"CHINA WORLDWIDE",code:"zh_XC"},{region:"CHINA WORLDWIDE",code:"en_US"},{region:"COLOMBIA",code:"es_XC"},{region:"COLOMBIA",code:"en_US"},{region:"COLOMBIA",code:"fr_XC"},{region:"COLOMBIA",code:"zh_XC"},{region:"COMOROS",code:"fr_XC"},{region:"COMOROS",code:"en_US"},{region:"COMOROS",code:"es_XC"},{region:"COMOROS",code:"zh_XC"},{region:"CONGO - BRAZZAVILLE",code:"en_US"},{region:"CONGO - BRAZZAVILLE",code:"fr_XC"},{region:"CONGO - BRAZZAVILLE",code:"es_XC"},{region:"CONGO - BRAZZAVILLE",code:"zh_XC"},{region:"CONGO - KINSHASA",code:"fr_XC"},{region:"CONGO - KINSHASA",code:"en_US"},{region:"CONGO - KINSHASA",code:"es_XC"},{region:"CONGO - KINSHASA",code:"zh_XC"},{region:"COOK ISLANDS",code:"en_US"},{region:"COOK ISLANDS",code:"fr_XC"},{region:"COOK ISLANDS",code:"es_XC"},{region:"COOK ISLANDS",code:"zh_XC"},{region:"COSTA RICA",code:"es_XC"},{region:"COSTA RICA",code:"en_US"},{region:"COSTA RICA",code:"fr_XC"},{region:"COSTA RICA",code:"zh_XC"},{region:"CÔTE D’IVOIRE",code:"fr_XC"},{region:"CÔTE D’IVOIRE",code:"en_US"},{region:"CROATIA",code:"en_US"},{region:"CYPRUS",code:"en_US"},{region:"CZECH REPUBLIC",code:"cs_CZ"},{region:"CZECH REPUBLIC",code:"en_US"},{region:"CZECH REPUBLIC",code:"fr_XC"},{region:"CZECH REPUBLIC",code:"es_XC"},{region:"CZECH REPUBLIC",code:"zh_XC"},{region:"DENMARK",code:"da_DK"},{region:"DENMARK",code:"en_US"},{region:"DJIBOUTI",code:"fr_XC"},{region:"DJIBOUTI",code:"en_US"},{region:"DJIBOUTI",code:"es_XC"},{region:"DJIBOUTI",code:"zh_XC"},{region:"DOMINICA",code:"en_US"},{region:"DOMINICA",code:"fr_XC"},{region:"DOMINICA",code:"es_XC"},{region:"DOMINICA",code:"zh_XC"},{region:"DOMINICAN REPUBLIC",code:"es_XC"},{region:"DOMINICAN REPUBLIC",code:"en_US"},{region:"DOMINICAN REPUBLIC",code:"fr_XC"},{region:"DOMINICAN REPUBLIC",code:"zh_XC"},{region:"ECUADOR",code:"es_XC"},{region:"ECUADOR",code:"en_US"},{region:"ECUADOR",code:"fr_XC"},{region:"ECUADOR",code:"zh_XC"},{region:"EGYPT",code:"ar_EG"},{region:"EGYPT",code:"en_US"},{region:"EGYPT",code:"fr_XC"},{region:"EGYPT",code:"es_XC"},{region:"EGYPT",code:"zh_XC"},{region:"EL SALVADOR",code:"es_XC"},{region:"EL SALVADOR",code:"en_US"},{region:"EL SALVADOR",code:"fr_XC"},{region:"EL SALVADOR",code:"zh_XC"},{region:"ERITREA",code:"en_US"},{region:"ERITREA",code:"fr_XC"},{region:"ERITREA",code:"es_XC"},{region:"ERITREA",code:"zh_XC"},{region:"ESTONIA",code:"en_US"},{region:"ESTONIA",code:"ru_RU"},{region:"ESTONIA",code:"fr_XC"},{region:"ESTONIA",code:"es_XC"},{region:"ESTONIA",code:"zh_XC"},{region:"ETHIOPIA",code:"en_US"},{region:"ETHIOPIA",code:"fr_XC"},{region:"ETHIOPIA",code:"es_XC"},{region:"ETHIOPIA",code:"zh_XC"},{region:"FALKLAND ISLANDS",code:"en_US"},{region:"FALKLAND ISLANDS",code:"fr_XC"},{region:"FALKLAND ISLANDS",code:"es_XC"},{region:"FALKLAND ISLANDS",code:"zh_XC"},{region:"FAROE ISLANDS",code:"da_DK"},{region:"FAROE ISLANDS",code:"en_US"},{region:"FAROE ISLANDS",code:"fr_XC"},{region:"FAROE ISLANDS",code:"es_XC"},{region:"FAROE ISLANDS",code:"zh_XC"},{region:"FIJI",code:"en_US"},{region:"FIJI",code:"fr_XC"},{region:"FIJI",code:"es_XC"},{region:"FIJI",code:"zh_XC"},{region:"FINLAND",code:"fi_FI"},{region:"FINLAND",code:"en_US"},{region:"FINLAND",code:"fr_XC"},{region:"FINLAND",code:"es_XC"},{region:"FINLAND",code:"zh_XC"},{region:"FRANCE",code:"fr_FR"},{region:"FRANCE",code:"en_US"},{region:"FRENCH GUIANA",code:"en_US"},{region:"FRENCH GUIANA",code:"fr_XC"},{region:"FRENCH GUIANA",code:"es_XC"},{region:"FRENCH GUIANA",code:"zh_XC"},{region:"FRENCH POLYNESIA",code:"en_US"},{region:"FRENCH POLYNESIA",code:"fr_XC"},{region:"FRENCH POLYNESIA",code:"es_XC"},{region:"FRENCH POLYNESIA",code:"zh_XC"},{region:"GABON",code:"fr_XC"},{region:"GABON",code:"en_US"},{region:"GABON",code:"es_XC"},{region:"GABON",code:"zh_XC"},{region:"GAMBIA",code:"en_US"},{region:"GAMBIA",code:"fr_XC"},{region:"GAMBIA",code:"es_XC"},{region:"GAMBIA",code:"zh_XC"},{region:"GEORGIA",code:"en_US"},{region:"GEORGIA",code:"fr_XC"},{region:"GEORGIA",code:"es_XC"},{region:"GEORGIA",code:"zh_XC"},{region:"GERMANY",code:"de_DE"},{region:"GERMANY",code:"en_US"},{region:"GIBRALTAR",code:"en_US"},{region:"GIBRALTAR",code:"fr_XC"},{region:"GIBRALTAR",code:"es_XC"},{region:"GIBRALTAR",code:"zh_XC"},{region:"GREECE",code:"el_GR"},{region:"GREECE",code:"en_US"},{region:"GREECE",code:"fr_XC"},{region:"GREECE",code:"es_XC"},{region:"GREECE",code:"zh_XC"},{region:"GREENLAND",code:"da_DK"},{region:"GREENLAND",code:"en_US"},{region:"GREENLAND",code:"fr_XC"},{region:"GREENLAND",code:"es_XC"},{region:"GREENLAND",code:"zh_XC"},{region:"GRENADA",code:"en_US"},{region:"GRENADA",code:"fr_XC"},{region:"GRENADA",code:"es_XC"},{region:"GRENADA",code:"zh_XC"},{region:"GUADELOUPE",code:"en_US"},{region:"GUADELOUPE",code:"fr_XC"},{region:"GUADELOUPE",code:"es_XC"},{region:"GUADELOUPE",code:"zh_XC"},{region:"GUATEMALA",code:"es_XC"},{region:"GUATEMALA",code:"en_US"},{region:"GUATEMALA",code:"fr_XC"},{region:"GUATEMALA",code:"zh_XC"},{region:"GUINEA",code:"fr_XC"},{region:"GUINEA",code:"en_US"},{region:"GUINEA",code:"es_XC"},{region:"GUINEA",code:"zh_XC"},{region:"GUINEA-BISSAU",code:"en_US"},{region:"GUINEA-BISSAU",code:"fr_XC"},{region:"GUINEA-BISSAU",code:"es_XC"},{region:"GUINEA-BISSAU",code:"zh_XC"},{region:"GUYANA",code:"en_US"},{region:"GUYANA",code:"fr_XC"},{region:"GUYANA",code:"es_XC"},{region:"GUYANA",code:"zh_XC"},{region:"HONDURAS",code:"es_XC"},{region:"HONDURAS",code:"en_US"},{region:"HONDURAS",code:"fr_XC"},{region:"HONDURAS",code:"zh_XC"},{region:"HONG KONG SAR CHINA",code:"en_GB"},{region:"HONG KONG SAR CHINA",code:"zh_HK"},{region:"HUNGARY",code:"hu_HU"},{region:"HUNGARY",code:"en_US"},{region:"HUNGARY",code:"fr_XC"},{region:"HUNGARY",code:"es_XC"},{region:"HUNGARY",code:"zh_XC"},{region:"ICELAND",code:"en_US"},{region:"INDIA",code:"en_IN"},{region:"INDONESIA",code:"id_ID"},{region:"INDONESIA",code:"en_US"},{region:"IRELAND",code:"en_US"},{region:"IRELAND",code:"fr_XC"},{region:"IRELAND",code:"es_XC"},{region:"IRELAND",code:"zh_XC"},{region:"ISRAEL",code:"he_IL"},{region:"ISRAEL",code:"en_US"},{region:"ITALY",code:"it_IT"},{region:"ITALY",code:"en_US"},{region:"JAMAICA",code:"es_XC"},{region:"JAMAICA",code:"en_US"},{region:"JAMAICA",code:"fr_XC"},{region:"JAMAICA",code:"zh_XC"},{region:"JAPAN",code:"ja_JP"},{region:"JAPAN",code:"en_US"},{region:"JORDAN",code:"ar_EG"},{region:"JORDAN",code:"en_US"},{region:"JORDAN",code:"fr_XC"},{region:"JORDAN",code:"es_XC"},{region:"JORDAN",code:"zh_XC"},{region:"KAZAKHSTAN",code:"en_US"},{region:"KAZAKHSTAN",code:"fr_XC"},{region:"KAZAKHSTAN",code:"es_XC"},{region:"KAZAKHSTAN",code:"zh_XC"},{region:"KENYA",code:"en_US"},{region:"KENYA",code:"fr_XC"},{region:"KENYA",code:"es_XC"},{region:"KENYA",code:"zh_XC"},{region:"KIRIBATI",code:"en_US"},{region:"KIRIBATI",code:"fr_XC"},{region:"KIRIBATI",code:"es_XC"},{region:"KIRIBATI",code:"zh_XC"},{region:"KUWAIT",code:"ar_EG"},{region:"KUWAIT",code:"en_US"},{region:"KUWAIT",code:"fr_XC"},{region:"KUWAIT",code:"es_XC"},{region:"KUWAIT",code:"zh_XC"},{region:"KYRGYZSTAN",code:"en_US"},{region:"KYRGYZSTAN",code:"fr_XC"},{region:"KYRGYZSTAN",code:"es_XC"},{region:"KYRGYZSTAN",code:"zh_XC"},{region:"LAOS",code:"en_US"},{region:"LATVIA",code:"en_US"},{region:"LATVIA",code:"ru_RU"},{region:"LATVIA",code:"fr_XC"},{region:"LATVIA",code:"es_XC"},{region:"LATVIA",code:"zh_XC"},{region:"LESOTHO",code:"en_US"},{region:"LESOTHO",code:"fr_XC"},{region:"LESOTHO",code:"es_XC"},{region:"LESOTHO",code:"zh_XC"},{region:"LIECHTENSTEIN",code:"en_US"},{region:"LIECHTENSTEIN",code:"fr_XC"},{region:"LIECHTENSTEIN",code:"es_XC"},{region:"LIECHTENSTEIN",code:"zh_XC"},{region:"LITHUANIA",code:"en_US"},{region:"LITHUANIA",code:"ru_RU"},{region:"LITHUANIA",code:"fr_XC"},{region:"LITHUANIA",code:"es_XC"},{region:"LITHUANIA",code:"zh_XC"},{region:"LUXEMBOURG",code:"en_US"},{region:"LUXEMBOURG",code:"de_DE"},{region:"LUXEMBOURG",code:"fr_XC"},{region:"LUXEMBOURG",code:"es_XC"},{region:"LUXEMBOURG",code:"zh_XC"},{region:"MACEDONIA",code:"en_US"},{region:"MADAGASCAR",code:"en_US"},{region:"MADAGASCAR",code:"fr_XC"},{region:"MADAGASCAR",code:"es_XC"},{region:"MADAGASCAR",code:"zh_XC"},{region:"MALAWI",code:"en_US"},{region:"MALAWI",code:"fr_XC"},{region:"MALAWI",code:"es_XC"},{region:"MALAWI",code:"zh_XC"},{region:"MALAYSIA",code:"en_US"},{region:"MALDIVES",code:"en_US"},{region:"MALI",code:"fr_XC"},{region:"MALI",code:"en_US"},{region:"MALI",code:"es_XC"},{region:"MALI",code:"zh_XC"},{region:"MALTA",code:"en_US"},{region:"MARSHALL ISLANDS",code:"en_US"},{region:"MARSHALL ISLANDS",code:"fr_XC"},{region:"MARSHALL ISLANDS",code:"es_XC"},{region:"MARSHALL ISLANDS",code:"zh_XC"},{region:"MARTINIQUE",code:"en_US"},{region:"MARTINIQUE",code:"fr_XC"},{region:"MARTINIQUE",code:"es_XC"},{region:"MARTINIQUE",code:"zh_XC"},{region:"MAURITANIA",code:"en_US"},{region:"MAURITANIA",code:"fr_XC"},{region:"MAURITANIA",code:"es_XC"},{region:"MAURITANIA",code:"zh_XC"},{region:"MAURITIUS",code:"en_US"},{region:"MAURITIUS",code:"fr_XC"},{region:"MAURITIUS",code:"es_XC"},{region:"MAURITIUS",code:"zh_XC"},{region:"MAYOTTE",code:"en_US"},{region:"MAYOTTE",code:"fr_XC"},{region:"MAYOTTE",code:"es_XC"},{region:"MAYOTTE",code:"zh_XC"},{region:"MEXICO",code:"es_XC"},{region:"MEXICO",code:"en_US"},{region:"MICRONESIA",code:"en_US"},{region:"MOLDOVA",code:"en_US"},{region:"MONACO",code:"fr_XC"},{region:"MONACO",code:"en_US"},{region:"MONGOLIA",code:"en_US"},{region:"MONTENEGRO",code:"en_US"},{region:"MONTSERRAT",code:"en_US"},{region:"MONTSERRAT",code:"fr_XC"},{region:"MONTSERRAT",code:"es_XC"},{region:"MONTSERRAT",code:"zh_XC"},{region:"MOROCCO",code:"ar_EG"},{region:"MOROCCO",code:"en_US"},{region:"MOROCCO",code:"fr_XC"},{region:"MOROCCO",code:"es_XC"},{region:"MOROCCO",code:"zh_XC"},{region:"MOZAMBIQUE",code:"en_US"},{region:"MOZAMBIQUE",code:"fr_XC"},{region:"MOZAMBIQUE",code:"es_XC"},{region:"MOZAMBIQUE",code:"zh_XC"},{region:"NAMIBIA",code:"en_US"},{region:"NAMIBIA",code:"fr_XC"},{region:"NAMIBIA",code:"es_XC"},{region:"NAMIBIA",code:"zh_XC"},{region:"NAURU",code:"en_US"},{region:"NAURU",code:"fr_XC"},{region:"NAURU",code:"es_XC"},{region:"NAURU",code:"zh_XC"},{region:"NEPAL",code:"en_US"},{region:"NETHERLANDS",code:"nl_NL"},{region:"NETHERLANDS",code:"en_US"},{region:"NEW CALEDONIA",code:"en_US"},{region:"NEW CALEDONIA",code:"fr_XC"},{region:"NEW CALEDONIA",code:"es_XC"},{region:"NEW CALEDONIA",code:"zh_XC"},{region:"NEW ZEALAND",code:"en_US"},{region:"NEW ZEALAND",code:"fr_XC"},{region:"NEW ZEALAND",code:"es_XC"},{region:"NEW ZEALAND",code:"zh_XC"},{region:"NICARAGUA",code:"es_XC"},{region:"NICARAGUA",code:"en_US"},{region:"NICARAGUA",code:"fr_XC"},{region:"NICARAGUA",code:"zh_XC"},{region:"NIGER",code:"fr_XC"},{region:"NIGER",code:"en_US"},{region:"NIGER",code:"es_XC"},{region:"NIGER",code:"zh_XC"},{region:"NIGERIA",code:"en_US"},{region:"NIUE",code:"en_US"},{region:"NIUE",code:"fr_XC"},{region:"NIUE",code:"es_XC"},{region:"NIUE",code:"zh_XC"},{region:"NORFOLK ISLAND",code:"en_US"},{region:"NORFOLK ISLAND",code:"fr_XC"},{region:"NORFOLK ISLAND",code:"es_XC"},{region:"NORFOLK ISLAND",code:"zh_XC"},{region:"NORWAY",code:"no_NO"},{region:"NORWAY",code:"en_US"},{region:"OMAN",code:"ar_EG"},{region:"OMAN",code:"en_US"},{region:"OMAN",code:"fr_XC"},{region:"OMAN",code:"es_XC"},{region:"OMAN",code:"zh_XC"},{region:"PALAU",code:"en_US"},{region:"PALAU",code:"fr_XC"},{region:"PALAU",code:"es_XC"},{region:"PALAU",code:"zh_XC"},{region:"PANAMA",code:"es_XC"},{region:"PANAMA",code:"en_US"},{region:"PANAMA",code:"fr_XC"},{region:"PANAMA",code:"zh_XC"},{region:"PAPUA NEW GUINEA",code:"en_US"},{region:"PAPUA NEW GUINEA",code:"fr_XC"},{region:"PAPUA NEW GUINEA",code:"es_XC"},{region:"PAPUA NEW GUINEA",code:"zh_XC"},{region:"PARAGUAY",code:"es_XC"},{region:"PARAGUAY",code:"en_US"},{region:"PERU",code:"es_XC"},{region:"PERU",code:"en_US"},{region:"PERU",code:"fr_XC"},{region:"PERU",code:"zh_XC"},{region:"PHILIPPINES",code:"en_US"},{region:"PITCAIRN ISLANDS",code:"en_US"},{region:"PITCAIRN ISLANDS",code:"fr_XC"},{region:"PITCAIRN ISLANDS",code:"es_XC"},{region:"PITCAIRN ISLANDS",code:"zh_XC"},{region:"POLAND",code:"pl_PL"},{region:"POLAND",code:"en_US"},{region:"PORTUGAL",code:"pt_PT"},{region:"PORTUGAL",code:"en_US"},{region:"QATAR",code:"en_US"},{region:"QATAR",code:"fr_XC"},{region:"QATAR",code:"es_XC"},{region:"QATAR",code:"zh_XC"},{region:"QATAR",code:"ar_EG"},{region:"RÉUNION",code:"en_US"},{region:"RÉUNION",code:"fr_XC"},{region:"RÉUNION",code:"es_XC"},{region:"RÉUNION",code:"zh_XC"},{region:"ROMANIA",code:"en_US"},{region:"ROMANIA",code:"fr_XC"},{region:"ROMANIA",code:"es_XC"},{region:"ROMANIA",code:"zh_XC"},{region:"RUSSIA",code:"ru_RU"},{region:"RUSSIA",code:"en_US"},{region:"RWANDA",code:"fr_XC"},{region:"RWANDA",code:"en_US"},{region:"RWANDA",code:"es_XC"},{region:"RWANDA",code:"zh_XC"},{region:"SAMOA",code:"en_US"},{region:"SAN MARINO",code:"en_US"},{region:"SAN MARINO",code:"fr_XC"},{region:"SAN MARINO",code:"es_XC"},{region:"SAN MARINO",code:"zh_XC"},{region:"SÃO TOMÉ & PRÍNCIPE",code:"en_US"},{region:"SÃO TOMÉ & PRÍNCIPE",code:"fr_XC"},{region:"SÃO TOMÉ & PRÍNCIPE",code:"es_XC"},{region:"SÃO TOMÉ & PRÍNCIPE",code:"zh_XC"},{region:"SAUDI ARABIA",code:"ar_EG"},{region:"SAUDI ARABIA",code:"en_US"},{region:"SAUDI ARABIA",code:"fr_XC"},{region:"SAUDI ARABIA",code:"es_XC"},{region:"SAUDI ARABIA",code:"zh_XC"},{region:"SENEGAL",code:"fr_XC"},{region:"SENEGAL",code:"en_US"},{region:"SENEGAL",code:"es_XC"},{region:"SENEGAL",code:"zh_XC"},{region:"SERBIA",code:"en_US"},{region:"SERBIA",code:"fr_XC"},{region:"SERBIA",code:"es_XC"},{region:"SERBIA",code:"zh_XC"},{region:"SEYCHELLES",code:"fr_XC"},{region:"SEYCHELLES",code:"en_US"},{region:"SEYCHELLES",code:"es_XC"},{region:"SEYCHELLES",code:"zh_XC"},{region:"SIERRA LEONE",code:"en_US"},{region:"SIERRA LEONE",code:"fr_XC"},{region:"SIERRA LEONE",code:"es_XC"},{region:"SIERRA LEONE",code:"zh_XC"},{region:"SINGAPORE",code:"en_GB"},{region:"SLOVAKIA",code:"sk_SK"},{region:"SLOVAKIA",code:"en_US"},{region:"SLOVAKIA",code:"fr_XC"},{region:"SLOVAKIA",code:"es_XC"},{region:"SLOVAKIA",code:"zh_XC"},{region:"SLOVENIA",code:"en_US"},{region:"SLOVENIA",code:"fr_XC"},{region:"SLOVENIA",code:"es_XC"},{region:"SLOVENIA",code:"zh_XC"},{region:"SOLOMON ISLANDS",code:"en_US"},{region:"SOLOMON ISLANDS",code:"fr_XC"},{region:"SOLOMON ISLANDS",code:"es_XC"},{region:"SOLOMON ISLANDS",code:"zh_XC"},{region:"SOMALIA",code:"en_US"},{region:"SOMALIA",code:"fr_XC"},{region:"SOMALIA",code:"es_XC"},{region:"SOMALIA",code:"zh_XC"},{region:"SOUTH AFRICA",code:"en_US"},{region:"SOUTH AFRICA",code:"fr_XC"},{region:"SOUTH AFRICA",code:"es_XC"},{region:"SOUTH AFRICA",code:"zh_XC"},{region:"SOUTH KOREA",code:"ko_KR"},{region:"SOUTH KOREA",code:"en_US"},{region:"SPAIN",code:"es_ES"},{region:"SPAIN",code:"en_US"},{region:"SRI LANKA",code:"en_US"},{region:"ST. HELENA",code:"en_US"},{region:"ST. HELENA",code:"fr_XC"},{region:"ST. HELENA",code:"es_XC"},{region:"ST. HELENA",code:"zh_XC"},{region:"ST. KITTS & NEVIS",code:"en_US"},{region:"ST. KITTS & NEVIS",code:"fr_XC"},{region:"ST. KITTS & NEVIS",code:"es_XC"},{region:"ST. KITTS & NEVIS",code:"zh_XC"},{region:"ST. LUCIA",code:"en_US"},{region:"ST. LUCIA",code:"fr_XC"},{region:"ST. LUCIA",code:"es_XC"},{region:"ST. LUCIA",code:"zh_XC"},{region:"ST. PIERRE & MIQUELON",code:"en_US"},{region:"ST. PIERRE & MIQUELON",code:"fr_XC"},{region:"ST. PIERRE & MIQUELON",code:"es_XC"},{region:"ST. PIERRE & MIQUELON",code:"zh_XC"},{region:"ST. VINCENT & GRENADINES",code:"en_US"},{region:"ST. VINCENT & GRENADINES",code:"fr_XC"},{region:"ST. VINCENT & GRENADINES",code:"es_XC"},{region:"ST. VINCENT & GRENADINES",code:"zh_XC"},{region:"SURINAME",code:"en_US"},{region:"SURINAME",code:"fr_XC"},{region:"SURINAME",code:"es_XC"},{region:"SURINAME",code:"zh_XC"},{region:"SVALBARD & JAN MAYEN",code:"en_US"},{region:"SVALBARD & JAN MAYEN",code:"fr_XC"},{region:"SVALBARD & JAN MAYEN",code:"es_XC"},{region:"SVALBARD & JAN MAYEN",code:"zh_XC"},{region:"SWAZILAND",code:"en_US"},{region:"SWAZILAND",code:"fr_XC"},{region:"SWAZILAND",code:"es_XC"},{region:"SWAZILAND",code:"zh_XC"},{region:"SWEDEN",code:"sv_SE"},{region:"SWEDEN",code:"en_US"},{region:"SWITZERLAND",code:"de_DE"},{region:"SWITZERLAND",code:"fr_FR"},{region:"SWITZERLAND",code:"en_US"},{region:"TAIWAN",code:"zh_TW"},{region:"TAIWAN",code:"en_US"},{region:"TAJIKISTAN",code:"en_US"},{region:"TAJIKISTAN",code:"fr_XC"},{region:"TAJIKISTAN",code:"es_XC"},{region:"TAJIKISTAN",code:"zh_XC"},{region:"TANZANIA",code:"en_US"},{region:"TANZANIA",code:"fr_XC"},{region:"TANZANIA",code:"es_XC"},{region:"TANZANIA",code:"zh_XC"},{region:"THAILAND",code:"th_TH"},{region:"THAILAND",code:"en_GB"},{region:"TOGO",code:"fr_XC"},{region:"TOGO",code:"en_US"},{region:"TOGO",code:"es_XC"},{region:"TOGO",code:"zh_XC"},{region:"TONGA",code:"en_US"},{region:"TRINIDAD & TOBAGO",code:"en_US"},{region:"TRINIDAD & TOBAGO",code:"fr_XC"},{region:"TRINIDAD & TOBAGO",code:"es_XC"},{region:"TRINIDAD & TOBAGO",code:"zh_XC"},{region:"TUNISIA",code:"ar_EG"},{region:"TUNISIA",code:"en_US"},{region:"TUNISIA",code:"fr_XC"},{region:"TUNISIA",code:"es_XC"},{region:"TUNISIA",code:"zh_XC"},{region:"TURKMENISTAN",code:"en_US"},{region:"TURKMENISTAN",code:"fr_XC"},{region:"TURKMENISTAN",code:"es_XC"},{region:"TURKMENISTAN",code:"zh_XC"},{region:"TURKS & CAICOS ISLANDS",code:"en_US"},{region:"TURKS & CAICOS ISLANDS",code:"fr_XC"},{region:"TURKS & CAICOS ISLANDS",code:"es_XC"},{region:"TURKS & CAICOS ISLANDS",code:"zh_XC"},{region:"TUVALU",code:"en_US"},{region:"TUVALU",code:"fr_XC"},{region:"TUVALU",code:"es_XC"},{region:"TUVALU",code:"zh_XC"},{region:"UGANDA",code:"en_US"},{region:"UGANDA",code:"fr_XC"},{region:"UGANDA",code:"es_XC"},{region:"UGANDA",code:"zh_XC"},{region:"UKRAINE",code:"en_US"},{region:"UKRAINE",code:"ru_RU"},{region:"UKRAINE",code:"fr_XC"},{region:"UKRAINE",code:"es_XC"},{region:"UKRAINE",code:"zh_XC"},{region:"UNITED ARAB EMIRATES",code:"en_US"},{region:"UNITED ARAB EMIRATES",code:"fr_XC"},{region:"UNITED ARAB EMIRATES",code:"es_XC"},{region:"UNITED ARAB EMIRATES",code:"zh_XC"},{region:"UNITED ARAB EMIRATES",code:"ar_EG"},{region:"UNITED KINGDOM",code:"en_GB"},{region:"UNITED STATES",code:"en_US"},{region:"UNITED STATES",code:"fr_XC"},{region:"UNITED STATES",code:"es_XC"},{region:"UNITED STATES",code:"zh_XC"},{region:"URUGUAY",code:"es_XC"},{region:"URUGUAY",code:"en_US"},{region:"URUGUAY",code:"fr_XC"},{region:"URUGUAY",code:"zh_XC"},{region:"VANUATU",code:"en_US"},{region:"VANUATU",code:"fr_XC"},{region:"VANUATU",code:"es_XC"},{region:"VANUATU",code:"zh_XC"},{region:"VATICAN CITY",code:"en_US"},{region:"VATICAN CITY",code:"fr_XC"},{region:"VATICAN CITY",code:"es_XC"},{region:"VATICAN CITY",code:"zh_XC"},{region:"VENEZUELA",code:"es_XC"},{region:"VENEZUELA",code:"en_US"},{region:"VENEZUELA",code:"fr_XC"},{region:"VENEZUELA",code:"zh_XC"},{region:"VIETNAM",code:"en_US"},{region:"WALLIS & FUTUNA",code:"en_US"},{region:"WALLIS & FUTUNA",code:"fr_XC"},{region:"WALLIS & FUTUNA",code:"es_XC"},{region:"WALLIS & FUTUNA",code:"zh_XC"},{region:"YEMEN",code:"ar_EG"},{region:"YEMEN",code:"en_US"},{region:"YEMEN",code:"fr_XC"},{region:"YEMEN",code:"es_XC"},{region:"YEMEN",code:"zh_XC"},{region:"ZAMBIA",code:"en_US"},{region:"ZAMBIA",code:"fr_XC"},{region:"ZAMBIA",code:"es_XC"},{region:"ZAMBIA",code:"zh_XC"},{region:"ZIMBABWE",code:"en_US"}],Fe=i(8692);function Ve(){var e=(0,o.sJ)(D.gx),n=(0,o.FV)(D.AK),i=n[0],r=n[1],a=(0,M.p$)(i[e]),l=Object.entries(i),c=(0,s.useContext)(L.d).payments,u="subscription"===(null==a?void 0:a.payType),m="dynamic"===(null==a?void 0:a.descType),p="dynamic"===(null==a?void 0:a.amountType),h="dynamic"===(null==a?void 0:a.shippingType),g="dynamic"===(null==a?void 0:a.taxType),f=function(n,i){if(i?a[n]=i:delete a[n],"locale"===n){var l=a.locale.split(" - ");a.locale=l[l.length-1]}r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))},x=function(n){n.target.value?a.amountType=n.target.value:delete a.amountType,delete a.amount,delete a.amountFld,r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))},b=function(n){n.target.value?a.shippingType=n.target.value:delete a.shippingType,delete a.shipping,delete a.shippingFld,r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))},v=function(n){n.target.value?a.taxType=n.target.value:delete a.taxType,delete a.tax,delete a.taxFld,r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))},_=function(n){n.target.value?a.descType=n.target.value:delete a.descType,delete a.description,delete a.descFld,r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))},j=function(){return l.filter((function(e){return e[1].typ.match(/number|radio/g)})).map((function(e){return(0,B.jsx)("option",{value:e[0],children:e[1].adminLbl||e[1].lbl},e[0])}))};return(0,B.jsxs)("div",{className:"ml-2 mr-4",children:[(0,B.jsx)(Se,{}),(0,B.jsxs)("div",{className:"mb-2",children:[(0,B.jsx)("span",{className:"font-w-m",children:(0,d.__)("Field Type : ","bitform")}),(0,d.__)("Paypal","bitform")]}),(0,B.jsxs)("div",{className:"mt-3",children:[(0,B.jsx)("b",{children:(0,d.__)("Select Config","bitform")}),(0,B.jsx)("br",{}),(0,B.jsxs)("select",{name:"payIntegID",id:"payIntegID",onChange:function(e){return f(e.target.name,e.target.value)},className:"btcd-paper-inp mt-1",value:a.payIntegID,children:[(0,B.jsx)("option",{value:"",children:"Select Config"}),c.filter((function(e){return"PayPal"===e.type})).map((function(e){return(0,B.jsx)("option",{value:e.id,children:e.name},e.id)}))]})]}),a.payIntegID&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)(Ce,{title:(0,d.__)("Subscription:","bitform"),action:function(n){n.target.checked?(a.payType="subscription",delete a.currency):(a.currency="USD",delete a.payType,delete a.planId),delete a.amountType,delete a.amount,delete a.amountFld,r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))},isChecked:u,className:"mt-3"}),u&&(0,B.jsx)(ye,{inpType:"text",title:(0,d.__)("Plan Id","bitform"),value:a.planId||"",action:function(e){return f("planId",e.target.value)}})]}),!u&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("b",{children:(0,d.__)("Language","bitform")}),(0,B.jsx)(ze.Z,{className:"w-10 btcd-paper-drpdwn mt-1",options:Ge.map((function(e){return{label:(0,B.jsxs)("div",{className:"flx flx-between",children:[(0,B.jsx)("span",{className:"btcd-ttl-ellipsis",children:e.region}),(0,B.jsx)("code",{className:"btcd-code",children:e.code})]}),title:e.region+" - "+e.code,value:e.region+" - "+e.code}})),onChange:function(e){return f("locale",e)},largeData:!0,singleSelect:!0})]}),(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("b",{children:(0,d.__)("Disable Card","bitform")}),(0,B.jsx)(ze.Z,{className:"w-10 btcd-paper-drpdwn mt-1 btcd-ttc",options:Ze.map((function(e){return{label:e.label,value:e.value}})),onChange:function(e){return f("disableFunding",e)}})]}),(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("b",{children:(0,d.__)("Amount Type","bitform")}),(0,B.jsx)("br",{}),(0,B.jsx)(Fe.Z,{onChange:x,radio:!0,checked:!p,title:(0,d.__)("Fixed","bitform")}),(0,B.jsx)(Fe.Z,{onChange:x,radio:!0,checked:p,title:(0,d.__)("Dynamic","bitform"),value:"dynamic"})]}),!p&&(0,B.jsx)(ye,{inpType:"number",title:(0,d.__)("Amount","bitform"),value:a.amount||"",action:function(e){return f("amount",e.target.value)}}),p&&(0,B.jsxs)("div",{className:"mt-3",children:[(0,B.jsx)("b",{children:(0,d.__)("Select Amount Field","bitform")}),(0,B.jsxs)("select",{onChange:function(e){return f(e.target.name,e.target.value)},name:"amountFld",className:"btcd-paper-inp mt-1",value:a.amountFld,children:[(0,B.jsx)("option",{value:"",children:(0,d.__)("Select Field","bitform")}),j()]})]}),(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("b",{children:(0,d.__)("Shipping Amount","bitform")}),(0,B.jsx)("br",{}),(0,B.jsx)(Fe.Z,{onChange:b,radio:!0,checked:!h,title:(0,d.__)("Fixed","bitform")}),(0,B.jsx)(Fe.Z,{onChange:b,radio:!0,checked:h,title:(0,d.__)("Dynamic","bitform"),value:"dynamic"})]}),!h&&(0,B.jsx)(ye,{inpType:"number",title:(0,d.__)("Shipping Cost","bitform"),value:a.shipping||"",action:function(e){return f("shipping",e.target.value)}}),h&&(0,B.jsxs)("div",{className:"mt-3",children:[(0,B.jsx)("b",{children:(0,d.__)("Select Shipping Amount Field","bitform")}),(0,B.jsxs)("select",{onChange:function(e){return f(e.target.name,e.target.value)},name:"shippingFld",className:"btcd-paper-inp mt-1",value:a.shippingFld,children:[(0,B.jsx)("option",{value:"",children:(0,d.__)("Select Field","bitform")}),j()]})]}),(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("b",{children:(0,d.__)("Tax Amount Type","bitform")}),(0,B.jsx)("br",{}),(0,B.jsx)(Fe.Z,{onChange:v,radio:!0,checked:!g,title:(0,d.__)("Fixed","bitform")}),(0,B.jsx)(Fe.Z,{onChange:v,radio:!0,checked:g,title:(0,d.__)("Dynamic","bitform"),value:"dynamic"})]}),!g&&(0,B.jsx)(ye,{inpType:"number",title:(0,d.__)("Tax (%)","bitform"),value:a.tax||"",action:function(e){return f("tax",e.target.value)}}),g&&(0,B.jsxs)("div",{className:"mt-3",children:[(0,B.jsx)("b",{children:(0,d.__)("Select Amount Field","bitform")}),(0,B.jsxs)("select",{onChange:function(e){return f(e.target.name,e.target.value)},name:"taxFld",className:"btcd-paper-inp mt-1",value:a.taxFld,children:[(0,B.jsx)("option",{value:"",children:(0,d.__)("Select Field","bitform")}),j()]})]}),(0,B.jsx)("div",{className:"mt-2",children:(0,B.jsxs)("label",{htmlFor:"recap-thm",children:[(0,B.jsx)("b",{children:(0,d.__)("Currency","bitform")}),(0,B.jsx)("select",{onChange:function(e){return f(e.target.name,e.target.value)},name:"currency",value:a.currency,className:"btcd-paper-inp mt-1",children:He.map((function(e){return(0,B.jsx)("option",{value:e.code,children:e.currency+" - "+e.code},e.currency)}))})]})}),(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("b",{children:(0,d.__)("Description","bitform")}),(0,B.jsx)("br",{}),(0,B.jsx)(Fe.Z,{onChange:_,radio:!0,checked:!m,title:(0,d.__)("Static","bitform")}),(0,B.jsx)(Fe.Z,{onChange:_,radio:!0,checked:m,title:(0,d.__)("Dynamic","bitform"),value:"dynamic"})]}),!m&&(0,B.jsx)("textarea",{className:"mt-1 btcd-paper-inp",placeholder:"Order Description",name:"description",rows:"5",onChange:function(e){return f(e.target.name,e.target.value)}}),m&&(0,B.jsxs)("div",{className:"mt-1",children:[(0,B.jsx)("b",{children:(0,d.__)("Select Description Field","bitform")}),(0,B.jsxs)("select",{onChange:function(e){return f(e.target.name,e.target.value)},name:"descFld",className:"btcd-paper-inp mt-1",value:a.descFld,children:[(0,B.jsx)("option",{value:"",children:(0,d.__)("Select Field","bitform")}),l.filter((function(e){return e[1].typ.match(/text/g)})).map((function(e){return(0,B.jsx)("option",{value:e[0],children:e[1].adminLbl||e[1].lbl},e[0])}))]})]})]})]})]})}var Ke=i(7480),We=i(2159),$e=function(e){return e?"string"===typeof e?e.trim():e.toString().trim():""},qe=function(e){return"comma"===e?",":"space"===e?/[ ]+/:/\r?\n/},Ye="undefined"!==typeof bits&&bits.isPro,Je=function(e,n,i){if(!Ye)return[];var t=e.data,r=e.dataTyp,a=e.separator,l=e.lbl,o=e.vlu,s=[];if("txt"===r){var c=Qe(a,e);if(!a||c&&(!l||!o))return[];var d=qe(a),u="value"===l?1:0,m="key"===o?0:1;s=t.split(d).filter((function(e){return $e(e).length})).map((function(e){var t,r=c?e.split(":"):e.split(),a=$e(r[u]),l=$e((null==r?void 0:r[m])||a);return(t={})[n]=a,t[i]=l,t}))}if("json"===r)if((0,M.P9)("object",t)||(0,M.P9)("array",t)&&1===t.length&&(0,M.P9)("object",t[0])){if(!l||!o)return[];var p=(0,M.P9)("array",t)?t[0]:t,h="value"===l?1:0,g="key"===o?0:1;s=Object.entries(p).map((function(e){var t;return(t={})[n]=$e(e[h]),t[i]=$e(e[g]),t}))}else if((0,M.P9)("array",t))if(t.length>1&&(0,M.P9)("object",t[0])){if(!l||!o)return[];s=t.map((function(e){var t;return(t={})[n]=$e(e[l]),t[i]=$e(e[o]),t}))}else s=t.filter((function(e){return $e(e).length>0})).map((function(e){var t;return(t={})[n]=$e(e),t[i]=$e(e),t}));if("xlsx"===r||"xls"===r||"csv"===r||"tsv"===r){if(!l||!o)return[];s=t.map((function(e){var t;return(t={})[n]=$e(e[l]),t[i]=$e(e[o]),t}))}return s},Qe=function(e,n){var i,t=1,r=qe(e),a=(null==n||null==(i=n.data)?void 0:i.split(r))||[],l=a.length;if(l)for(var o=0;o<(l<=10?l:10);o+=1)if($e(a[o])&&a[o].split(":").length<=1){t=0;break}return t};function en(e){var n,i,r=e.importOpts,a=e.setImportOpts,l=(0,o.sJ)(D.hi).isPro,s=function(e,n){return(0,t.Z)({},n,{lbl:e,vlu:e})},c=function(e){var n=u(e[0]);return(0,M.P9)("array",e)&&e.length>1&&(0,M.P9)("object",e[0])?{headers:n,lbl:n[0]||"",vlu:n[0]||""}:(0,M.P9)("object",e)||(0,M.P9)("array",e)&&1===e.length&&(0,M.P9)("object",e[0])?{headers:["key","value"],lbl:"key",vlu:"value"}:void 0},d=function(e){var n=e.target,i=n.name,l=n.value,o=(0,t.Z)({},r);(o[i]=l,"separator"===i)?Qe(l,o)&&(o.headers=["key","value"],o.lbl="key",o.vlu="value"):"sheetName"===i&&(delete o.lbl,delete o.vlu,l?(o.data=XLSX.utils.sheet_to_json(o.workbook.Sheets[l]),o.headers=u(o.data[0])):(delete o.headers,delete o.data));a((0,t.Z)({},o))},u=function(e){return(0,M.P9)("object",e)?Object.keys(e):[]};return(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("b",{children:"Upload File (txt, json, xls, xlsx, csv, tsv)"}),(0,B.jsx)("input",{type:"file",onChange:function(e){var n=(0,t.Z)({},r);if(!l)return[];var i=e.target.files[0];if(null!=i&&i.name){n={show:!0,dataSrc:"fileupload"};var o=(0,M.gT)(i.name),d=new FileReader;"txt"===o||"json"===o||"csv"===o||"tsv"===o?d.readAsText(i):"xlsx"!==o&&"xls"!==o||d.readAsArrayBuffer(i),d.onload=function(){n.dataTyp=o;var e=d.result;if("txt"===o)n.data=e;else if("json"===o){try{n.data=JSON.parse(e)}catch(p){return void a((0,t.Z)({},n))}var i=c(n.data);null!=i&&i.headers&&(n.headers=i.headers),null!=i&&i.lbl&&(n.lbl=i.lbl),null!=i&&i.vlu&&(n.vlu=i.vlu)}else if("csv"===o||"tsv"===o)n.data=(0,M.n5)(e,"tsv"===o?"\t":","),n.headers=u(n.data[0]),n.headers.length&&(n=s(n.headers[0],n));else if("xlsx"===o||"xls"===o){if(!XLSX)return;var r=new Uint8Array(e),l=XLSX.read(r,{type:"array"});n.dataTyp=o;var m=l.SheetNames.length;1===m?(n.data=XLSX.utils.sheet_to_json(l.Sheets[l.SheetNames[0]]),n.headers=u(n.data[0]),n.headers.length&&(n=s(n.headers[0],n))):m>1&&(n.workbook=l)}a((0,t.Z)({},n))}}},accept:".json,.txt,.xls,.xlsx,.csv,.tsv",className:"btcd-paper-inp mt-1"})]}),"txt"===r.dataTyp&&(0,B.jsxs)("div",{className:"mt-3",children:[(0,B.jsx)("b",{children:"Separator"}),(0,B.jsxs)("select",{name:"separator",className:"btcd-paper-inp mt-1",onChange:d,value:r.separator||"",children:[(0,B.jsx)("option",{value:"",children:"Select Separator"}),(0,B.jsx)("option",{value:"comma",children:"Comma"}),(0,B.jsx)("option",{value:"space",children:"Space"}),(0,B.jsx)("option",{value:"newline",children:"New Line"})]})]}),(null==r||null==(n=r.workbook)||null==(i=n.SheetNames)?void 0:i.length)>1&&(0,B.jsxs)("div",{className:"mt-3",children:[(0,B.jsx)("b",{children:"Sheet Name"}),(0,B.jsxs)("select",{name:"sheetName",id:"",className:"btcd-paper-inp mt-1",onChange:d,value:r.sheetName||"",children:[(0,B.jsx)("option",{value:"",children:"Select Sheet"}),r.workbook.SheetNames.map((function(e){return(0,B.jsx)("option",{value:e,children:e},e)}))]})]}),r.headers&&(0,B.jsxs)("div",{className:"flx mt-3 w-10",children:[(0,B.jsxs)("div",{className:"w-5 mr-2",children:[(0,B.jsx)("b",{children:"Label"}),(0,B.jsxs)("select",{name:"lbl",id:"",className:"btcd-paper-inp mt-1",onChange:d,value:r.lbl||"",children:[(0,B.jsx)("option",{value:"",children:"Select Label"}),r.headers.map((function(e){return(0,B.jsx)("option",{value:e,children:e},e)}))]})]}),(0,B.jsxs)("div",{className:"w-5 ",children:[(0,B.jsx)("b",{children:"Value"}),(0,B.jsxs)("select",{name:"vlu",id:"",className:"btcd-paper-inp mt-1",onChange:d,value:r.vlu||"",children:[(0,B.jsx)("option",{value:"",children:"Select Value"}),r.headers.map((function(e){return(0,B.jsx)("option",{value:e,children:e},e)}))]})]})]})]})}var nn=i(160),tn=i(5257),rn=i(5001);function an(e){var n,i,r,a,l,c,u,m,p,h,g,f,x,b=e.importOpts,v=e.setImportOpts,_=(0,o.sJ)(D.hi),j="undefined"!==typeof _&&_.isPro,N=(0,s.useState)({show:!1}),y=N[0],C=N[1];(0,s.useEffect)((function(){if(j){var e=new URL(_.ajaxURL);e.searchParams.append("action","bitforms_get_wp_posts"),e.searchParams.append("_ajax_nonce",_.nonce);var n=fetch(e).then((function(e){return e.json()})).then((function(e){if(e.data){var n=e.data,i=n.posts,r=n.postTypes,a=(0,t.Z)({},b);if(a.data=i,localStorage.setItem("bf-options-posts",JSON.stringify(i)),a.postTypes=Object.values(r),a.headers=Object.keys(a.data[0]),a.lbl=a.headers[6],a.vlu=a.headers[0],null===(null==a?void 0:a.fieldObject))a.data=null==i?void 0:i.filter((function(e){return"post"===(null==e?void 0:e.post_type)})),a.fieldObject={fieldType:"post_field",filter:{orderBy:"ID",order:"ASC",postType:"post",postStatus:"all"},lebel:a.lbl,value:a.vlu,hiddenValue:null==a?void 0:a.vlu,oldOpt:[],type:"post"};else{var l=(0,t.Z)({},a).fieldObject,o=(0,t.Z)({},null==l?void 0:l.filter),s=o.orderBy,c=o.order,d=o.postType,u=o.postStatus,m=(0,M.L1)(a.data,s,c);a.data="all"!==u?null==m?void 0:m.filter((function(e){return(null==e?void 0:e.post_status)===u&&(null==e?void 0:e.post_type)===d})):m,a.lbl=null==l?void 0:l.lebel,a.vlu=null==l?void 0:l.hiddenValue}return v((0,t.Z)({},a)),"Successfully fetched wordpress posts."}return"posts not found"}));nn.ZP.promise(n,{success:function(e){return e},failed:function(e){return e},loading:(0,d.__)("Loading Posts...")})}}),[]);var A=function(e){var n=e.target,i=n.name,r=n.value,a=(0,t.Z)({},b);a[i]=r;var l=a.fieldObject;l.filter[i]=r;var o,s,c=l.filter,d=c.orderBy,u=c.order,m=c.postType,p=c.postStatus,h=localStorage.getItem("bf-options-posts");(h=(0,M.L1)(JSON.parse(h),d,u),"all"!==p)?a.data=null==(o=h)?void 0:o.filter((function(e){return(null==e?void 0:e.post_status)===p&&(null==e?void 0:e.post_type)===m})):a.data=null==(s=h)?void 0:s.filter((function(e){return(null==e?void 0:e.post_type)===m}));a.fieldObject.lebel=null==a?void 0:a.lbl,a.fieldObject.hiddenValue=null==a?void 0:a.vlu,v((0,t.Z)({},a))};return(0,B.jsx)("div",{className:"mt-2",children:(0,B.jsxs)("div",{children:[(0,B.jsx)(rn.Z,{snack:y,setSnackbar:C}),(0,B.jsxs)("div",{children:[!(null==b||!b.data)&&(0,B.jsxs)("div",{className:"flx mt-3 w-10",children:[(0,B.jsxs)("div",{className:"w-5 mr-2",children:[(0,B.jsx)("b",{children:"Filter by Post Type"}),(0,B.jsx)("select",{name:"postType",onChange:A,value:(null==(n=b.fieldObject)||null==(i=n.filter)?void 0:i.postType)||"",className:"btcd-paper-inp mt-1",children:null==b||null==(r=b.postTypes)?void 0:r.map((function(e,n){return(0,B.jsx)("option",{value:e.name,children:e.label},"imp-"+2*n)}))})]}),(0,B.jsxs)("div",{className:"w-5 mr-2",children:[(0,B.jsx)("b",{children:"Filter by Post Status"}),(0,B.jsxs)("select",{name:"postStatus",onChange:A,value:(null==b||null==(a=b.fieldObject)||null==(l=a.filter)?void 0:l.postStatus)||"",className:"btcd-paper-inp mt-1",children:[(0,B.jsx)("option",{disabled:!0,selected:!0,children:"select status"}),(0,B.jsx)("option",{value:"all",children:"All"}),(0,B.jsx)("option",{value:"publish",children:"Publish"}),(0,B.jsx)("option",{value:"draft",children:"Draft"}),(0,B.jsx)("option",{value:"auto-draft",children:"Auto-Draft"}),(0,B.jsx)("option",{value:"private",children:"Private"}),(0,B.jsx)("option",{value:"pending",children:"Pending"}),(0,B.jsx)("option",{value:"trash",children:"Trash"})]})]})]}),!(null==b||null==(c=b.data)||!c.length)&&(0,B.jsxs)("div",{children:[(0,B.jsxs)("div",{className:"flx mt-3 w-10",children:[(0,B.jsxs)("div",{className:"w-5 mr-2",children:[(0,B.jsx)("b",{children:"Order By"}),(0,B.jsx)("select",{name:"orderBy",onChange:A,value:(null==b||null==(u=b.fieldObject)||null==(m=u.filter)?void 0:m.orderBy)||"",className:"btcd-paper-inp mt-1",children:null==b||null==(p=b.headers)?void 0:p.map((function(e){return(0,B.jsx)("option",{value:e,children:e},e)}))})]}),(0,B.jsxs)("div",{className:"w-5 mr-2",children:[(0,B.jsx)("b",{children:"Order"}),(0,B.jsxs)("select",{name:"order",onChange:A,value:(null==(h=b.fieldObject)||null==(g=h.filter)?void 0:g.order)||"",className:"btcd-paper-inp mt-1",children:[(0,B.jsx)("option",{value:"ASC",children:"Ascending"}),(0,B.jsx)("option",{value:"DESC",children:"Descending"})]})]})]}),b.headers&&(0,B.jsxs)("div",{className:"flx mt-3 w-10",children:[(0,B.jsxs)("div",{className:"w-5 mr-2",children:[(0,B.jsx)("b",{children:"Label"}),(0,B.jsxs)("select",{name:"lbl",id:"",className:"btcd-paper-inp mt-1",onChange:A,value:(null==b||null==(f=b.fieldObject)?void 0:f.lebel)||"",children:[(0,B.jsx)("option",{value:"",children:"Select Label"}),b.headers.map((function(e){return(0,B.jsx)("option",{value:e,children:e},e)}))]})]}),(0,B.jsxs)("div",{className:"w-5",children:[(0,B.jsx)("b",{children:"Value"}),(0,B.jsxs)("select",{name:"vlu",id:"",className:"btcd-paper-inp mt-1",onChange:A,value:(null==b||null==(x=b.fieldObject)?void 0:x.hiddenValue)||"",children:[(0,B.jsx)("option",{value:"",children:"Select Value"}),b.headers.map((function(e){return(0,B.jsx)("option",{value:e,children:e},e)}))]})]})]})]})]})]})})}function ln(e){var n=e.importOpts,i=e.setImportOpts,r=(0,o.sJ)(D.hi).isPro,a=(0,s.useState)(!1),l=a[0],c=a[1];(0,s.useEffect)((function(){if(r){var e=localStorage.getItem("bf-options-presets"),a=(0,t.Z)({},n);if(e&&(e=JSON.parse(e)),!e||e&&Number(e.version)<1.1)c(!0),fetch("https://static.bitapps.pro/bitform/options-presets.json").then((function(e){return e.json()})).then((function(e){if(e.data){var n=e.data;a.data=d(n),a.presetOpts=u(n),localStorage.setItem("bf-options-presets",JSON.stringify(e)),i((0,t.Z)({},a))}c(!1)}));else{var l=e.data;a.data=d(l),a.presetOpts=u(l),i((0,t.Z)({},a))}}}),[]);var d=function(e){return e.reduce((function(e,n){return(0,t.Z)({},e,n.childs)}),{})},u=function(e){return e.map((function(e){return{title:e.title,type:"group",childs:Object.keys(e.childs).map((function(e){return{label:e,value:e}}))}}))},m=function(e){var r=(0,t.Z)({},n),a=e.target,l=a.name,o=a.value;r[l]=o,i((0,t.Z)({},r))};return(0,B.jsxs)("div",{className:"mt-2",children:[l&&(0,B.jsxs)("div",{className:"flx mb-2",children:[(0,B.jsx)(tn.Z,{size:20,clr:"#022217",className:"mr-1"}),(0,B.jsx)("p",{className:"m-0",children:"Presets are loading from server. This process is only for the first time."})]}),(0,B.jsxs)("div",{children:[(0,B.jsx)("b",{children:"Preset"}),(0,B.jsx)(ze.Z,{className:"btcd-paper-drpdwn mt-1 w-10",options:n.presetOpts,defaultValue:n.preset,onChange:function(e){var r,a,l=(0,t.Z)({},n);if(l.preset=e,e&&null!=l&&null!=(r=l.data)&&null!=(a=r[e])&&a.length){l.headers=Object.keys(l.data[e][0]);var o=l.headers[0];l.lbl=o,l.vlu=o}else delete l.headers,delete l.lbl,delete l.vlu;i((0,t.Z)({},l))},singleSelect:!0,closeOnSelect:!0})]}),n.headers&&(0,B.jsxs)("div",{className:"flx mt-3 w-10",children:[(0,B.jsxs)("div",{className:"w-5 mr-2",children:[(0,B.jsx)("b",{children:"Label"}),(0,B.jsxs)("select",{name:"lbl",id:"",className:"btcd-paper-inp mt-1",onChange:m,value:n.lbl||"",children:[(0,B.jsx)("option",{value:"",children:"Select Label"}),n.headers.map((function(e){return(0,B.jsx)("option",{value:e,children:e},e)}))]})]}),(0,B.jsxs)("div",{className:"w-5",children:[(0,B.jsx)("b",{children:"Value"}),(0,B.jsxs)("select",{name:"vlu",id:"",className:"btcd-paper-inp mt-1",onChange:m,value:n.vlu||"",children:[(0,B.jsx)("option",{value:"",children:"Select Value"}),n.headers.map((function(e){return(0,B.jsx)("option",{value:e,children:e},e)}))]})]})]})]})}var on=function(e){return"string"===typeof e?null==e?void 0:e.trim():null==e?void 0:e.toString()};function sn(e){var n,i,r,a,l,c,u,m,p,h,g,f,x=e.importOpts,b=e.setImportOpts,v=(0,o.sJ)(D.hi),_=v.isPro,j=(0,s.useState)({show:!1}),N=j[0],y=j[1];(0,s.useEffect)((function(){if(_){localStorage.removeItem("bf-options-taxanomy");var e=new URL(v.ajaxURL);e.searchParams.append("action","bitforms_get_wp_taxonomy"),e.searchParams.append("_ajax_nonce",v.nonce);var n=fetch(e).then((function(e){return e.json()})).then((function(e){if(e.data){var n=e.data,i=n.allCategoreis,r=n.taxonomies,a=(0,t.Z)({},x);a.data=i,localStorage.setItem("bf-options-categories",JSON.stringify(i)),localStorage.setItem("bf-options-taxanomy",JSON.stringify(r)),a.taxonomies=Object.values(r),a.headers=Object.keys(a.data[0]);var l=a.headers,o=l[0],s=l[1];if(a.lbl=s,a.vlu=o,null===(null==a?void 0:a.fieldObject))a.data=null==i?void 0:i.filter((function(e){return"category"===e.taxonomy})),a.fieldObject={fieldType:"taxanomy_field",filter:{orderBy:"term_id",taxanomy:"category",order:"ASC"},lebel:a.lbl,value:a.vlu,hiddenValue:null==a?void 0:a.vlu,oldOpt:[],isTaxonomy:!1,isHierarchical:!0,type:"terms"};else{var c=(0,t.Z)({},a).fieldObject,d=(0,t.Z)({},null==c?void 0:c.filter),u=d.orderBy,m=d.order,p=d.taxanomy;a.data=null==i?void 0:i.filter((function(e){return e.taxonomy===p}));var h=(0,M.L1)(a.data,u,m);a.data=h,a.lbl=null==c?void 0:c.lebel,a.vlu=null==c?void 0:c.hiddenValue,a.fieldObject.isHierarchical=null==c?void 0:c.isHierarchical}return b((0,t.Z)({},a)),"Successfully fetched wordpress terms."}return"terms data not found"}));nn.ZP.promise(n,{success:function(e){return e},failed:function(e){return e},loading:(0,d.__)("Loading Terms...")})}}),[]);var C=function(e){var n,i,r=e.target,a=r.name,l=r.value,o=(0,t.Z)({},x);o[a]=l;var s=o.fieldObject;s.filter[a]=l;var c=s.filter,d=c.orderBy,u=c.taxanomy,m=c.order,p=localStorage.getItem("bf-options-categories"),h=JSON.parse(localStorage.getItem("bf-options-taxanomy"));p=(0,M.L1)(JSON.parse(p),d,m),o.data=null==(n=p)?void 0:n.filter((function(e){return e.taxonomy===u})),o.fieldObject.isHierarchical=null==h||null==(i=h.find((function(e){return e.name===u})))?void 0:i.hierarchical,o.fieldObject.lebel=null==o?void 0:o.lbl,o.fieldObject.hiddenValue=null==o?void 0:o.vlu,b((0,t.Z)({},o))};return(0,B.jsx)("div",{className:"mt-2",children:(0,B.jsxs)("div",{children:[(0,B.jsx)(rn.Z,{snack:N,setSnackbar:y}),(0,B.jsxs)("div",{children:[!(null==x||!x.data)&&(0,B.jsxs)("div",{className:"w-10 mr-2",children:[(0,B.jsx)("b",{children:"Filter by Taxonomy"}),(0,B.jsx)("select",{name:"taxanomy",onChange:C,value:(null==x||null==(n=x.fieldObject)||null==(i=n.filter)?void 0:i.taxanomy)||"",className:"btcd-paper-inp mt-1",children:null==x||null==(r=x.taxonomies)?void 0:r.map((function(e,n){return(0,B.jsx)("option",{value:null==e?void 0:e.name,children:(null==e?void 0:e.singular_name)+"-"+(null==e?void 0:e.name)},"imp-"+2*n)}))})]}),!(null==x||null==(a=x.data)||!a.length)&&(0,B.jsxs)("div",{children:[(0,B.jsxs)("div",{className:"w-5 flx",children:[(0,B.jsx)(Fe.Z,{onChange:function(e){var n=(0,t.Z)({},x);e.target.checked?n.fieldObject.isTaxonomy=!0:n.fieldObject.isTaxonomy=!1,b((0,t.Z)({},n))},title:(0,d.__)("Use Post Taxonomy Fields","bitform"),checked:!0===(null==x||null==(l=x.fieldObject)?void 0:l.isTaxonomy),value:!1}),(0,B.jsx)(je.Z,{width:250,icnSize:17,className:"ml-1",children:(0,B.jsxs)("div",{className:"txt-body",children:["if selected then its work also post taxanomy field.",(0,B.jsx)("br",{})]})})]}),(0,B.jsxs)("div",{className:"flx mt-3 w-10",children:[(0,B.jsxs)("div",{className:"w-5 mr-2",children:[(0,B.jsx)("b",{children:"Order By"}),(0,B.jsx)("select",{name:"orderBy",onChange:C,value:(null==x||null==(c=x.fieldObject)||null==(u=c.filter)?void 0:u.orderBy)||"",className:"btcd-paper-inp mt-1",children:null==x||null==(m=x.headers)?void 0:m.map((function(e){return(0,B.jsx)("option",{value:e,children:e},e)}))})]}),(0,B.jsxs)("div",{className:"w-5 mr-2",children:[(0,B.jsx)("b",{children:"Order"}),(0,B.jsxs)("select",{name:"order",onChange:C,value:(null==x||null==(p=x.fieldObject)||null==(h=p.filter)?void 0:h.order)||"",className:"btcd-paper-inp mt-1",children:[(0,B.jsx)("option",{value:"ASC",children:"Ascending"}),(0,B.jsx)("option",{value:"DESC",children:"Descending"})]})]})]}),x.headers&&(0,B.jsxs)("div",{className:"flx mt-3 w-10",children:[(0,B.jsxs)("div",{className:"w-5 mr-2",children:[(0,B.jsx)("b",{children:"Label"}),(0,B.jsxs)("select",{name:"lbl",id:"",className:"btcd-paper-inp mt-1",onChange:C,value:(null==x||null==(g=x.fieldObject)?void 0:g.lebel)||"",children:[(0,B.jsx)("option",{disabled:!0,children:"Select Label"}),x.headers.map((function(e){return(0,B.jsx)("option",{value:e,children:e},e)}))]})]}),(0,B.jsxs)("div",{className:"w-5",children:[(0,B.jsx)("b",{children:"Value"}),(0,B.jsxs)("select",{name:"vlu",id:"",className:"btcd-paper-inp mt-1",onChange:C,value:(null==x||null==(f=x.fieldObject)?void 0:f.hiddenValue)||"",children:[(0,B.jsx)("option",{disabled:!0,children:"Select Value"}),x.headers.map((function(e){return(0,B.jsx)("option",{value:e,children:e},e)}))]})]})]})]})]})]})})}var cn=function(e){return"string"===typeof e?null==e?void 0:e.trim():null==e?void 0:e.toString()};function dn(e){var n,i,r,a,l,c,u,m,p,h,g,f,x=e.importOpts,b=e.setImportOpts,v=(0,o.sJ)(D.hi),_=v.isPro,j=(0,s.useState)({show:!1}),N=j[0],y=j[1];(0,s.useEffect)((function(){if(_){var e=new URL(v.ajaxURL);e.searchParams.append("action","bitforms_get_wp_users"),e.searchParams.append("_ajax_nonce",v.nonce);var n=fetch(e).then((function(e){return e.json()})).then((function(e){if(e.data){var n=e.data.users,i=(0,t.Z)({},x);i.data=n,localStorage.setItem("bf-options-users",JSON.stringify(n)),i.headers=Object.keys(i.data[0]);var r=i.headers[0];if(i.lbl=r,i.vlu=r,null===(null==i?void 0:i.fieldObject))i.fieldObject={fieldType:"user_field",filter:{orderBy:"ID",role:"all",order:"ASC"},lebel:i.lbl,value:i.vlu,hiddenValue:null==i?void 0:i.vlu,oldOpt:[],type:"user"};else{var a=(0,t.Z)({},i).fieldObject,l=(0,t.Z)({},null==a?void 0:a.filter),o=l.orderBy,s=l.order,c=l.role,d=(0,M.L1)(i.data,o,s);i.data="all"!==c?null==d?void 0:d.filter((function(e){return e.role[0]===c})):d,i.lbl=null==a?void 0:a.lebel,i.vlu=null==a?void 0:a.hiddenValue}return b((0,t.Z)({},i)),"Successfully fetched users data."}return"users data not found"}));nn.ZP.promise(n,{success:function(e){return e},failed:function(e){return e},loading:(0,d.__)("Loading Users...")})}}),[]);var C=function(e){var n,i=e.target,r=i.name,a=i.value,l=(0,t.Z)({},x);"lbl"!==r&&"vlu"!==r||(l[r]=a);var o=l.fieldObject;o.filter[r]=a;var s=o.filter,c=s.orderBy,d=s.order,u=s.role,m=localStorage.getItem("bf-options-users");m=(0,M.L1)(JSON.parse(m),c,d),l.data="all"!==u?null==(n=m)?void 0:n.filter((function(e){return e.role[0]===u})):m,l.fieldObject.lebel=null==l?void 0:l.lbl,l.fieldObject.hiddenValue=null==l?void 0:l.vlu,b((0,t.Z)({},l))};return(0,B.jsx)("div",{className:"mt-2",children:(0,B.jsxs)("div",{children:[(0,B.jsx)(rn.Z,{snack:N,setSnackbar:y}),(0,B.jsxs)("div",{children:[!(null==x||!x.data)&&(0,B.jsxs)("div",{className:"w-10 mr-2",children:[(0,B.jsx)("b",{children:"Filter by Role"}),(0,B.jsxs)("select",{name:"role",onChange:C,value:(null==x||null==(n=x.fieldObject)||null==(i=n.filter)?void 0:i.role)||"",className:"btcd-paper-inp mt-1",children:[(0,B.jsx)("option",{selected:!0,disabled:!0,children:"select role"}),(0,B.jsx)("option",{value:"all",children:"all"}),(0,B.jsx)("option",{value:"administrator",children:"Administrator"}),(0,B.jsx)("option",{value:"author",children:"Author"}),(0,B.jsx)("option",{value:"contributor",children:"Contributor"}),(0,B.jsx)("option",{value:"editor",children:"Editor"}),(0,B.jsx)("option",{value:"subscriber",children:"Subscriber"})]})]}),!(null==x||null==(r=x.data)||!r.length)&&(0,B.jsxs)("div",{children:[(0,B.jsxs)("div",{className:"flx mt-3 w-10",children:[(0,B.jsxs)("div",{className:"w-5 mr-2",children:[(0,B.jsx)("b",{children:"Order By"}),(0,B.jsx)("select",{name:"orderBy",onChange:C,value:(null==x||null==(a=x.fieldObject)||null==(l=a.filter)?void 0:l.orderBy)||"",className:"btcd-paper-inp mt-1",children:null==x||null==(c=x.headers)?void 0:c.map((function(e){return(0,B.jsx)("option",{value:e,children:e},e)}))})]}),(0,B.jsxs)("div",{className:"w-5 mr-2",children:[(0,B.jsx)("b",{children:"Order"}),(0,B.jsxs)("select",{name:"order",onChange:C,value:(null==x||null==(u=x.fieldObject)||null==(m=u.filter)?void 0:m.order)||"",className:"btcd-paper-inp mt-1",children:[(0,B.jsx)("option",{value:"ASC",children:"Ascending"}),(0,B.jsx)("option",{value:"DESC",children:"Descending"})]})]})]}),(null==x?void 0:x.headers)&&(0,B.jsxs)("div",{className:"flx mt-3 w-10",children:[(0,B.jsxs)("div",{className:"w-5 mr-2",children:[(0,B.jsx)("b",{children:"Label"}),(0,B.jsxs)("select",{name:"lbl",id:"",className:"btcd-paper-inp mt-1",onChange:C,value:(null==x||null==(p=x.fieldObject)?void 0:p.lebel)||"",children:[(0,B.jsx)("option",{value:"",children:"Select Label"}),null==x||null==(h=x.headers)?void 0:h.map((function(e){return(0,B.jsx)("option",{value:e,children:e},e)}))]})]}),(0,B.jsxs)("div",{className:"w-5",children:[(0,B.jsx)("b",{children:"Value"}),(0,B.jsxs)("select",{name:"vlu",id:"",className:"btcd-paper-inp mt-1",onChange:C,value:(null==x||null==(g=x.fieldObject)?void 0:g.hiddenValue)||"",children:[(0,B.jsx)("option",{value:"",children:"Select Value"}),null==x||null==(f=x.headers)?void 0:f.map((function(e){return(0,B.jsx)("option",{value:e,children:e},e)}))]})]})]})]})]})]})})}function un(e){var n,i,r,a=e.importOpts,l=e.setImportOpts,c=(0,o.sJ)(D.hi),u="undefined"!==typeof c&&c.isPro,m=(0,s.useState)({show:!1}),p=m[0],h=m[1];(0,s.useEffect)((function(){if(u){var e=new URL(c.ajaxURL);e.searchParams.append("action","bitforms_get_acf_group_fields"),e.searchParams.append("_ajax_nonce",c.nonce);var n=fetch(e).then((function(e){return e.json()})).then((function(e){if(e.data){var n=e.data,i=(0,t.Z)({},a);if(localStorage.setItem("bf-options-acf_field_op",JSON.stringify(n)),i.groups=e.data,i.lbl=1,i.vlu=0,null===(null==i?void 0:i.fieldObject))i.fieldObject={fieldType:"acf_options",filter:{fieldkey:""},type:"acf",oldOpt:[]};else{var r,o=(0,t.Z)({},i).fieldObject,s=(0,t.Z)({},null==o?void 0:o.filter).fieldkey,c=null==(r=i.groups)?void 0:r.find((function(e){return(null==e?void 0:e.key)===s}));i.options=Object.entries(null==c?void 0:c.choices),i.keys=Object.keys(i.options),i.vlu=null==i?void 0:i.keys[null==i?void 0:i.vlu],i.lbl=null==i?void 0:i.keys[null==i?void 0:i.lbl]}return l((0,t.Z)({},i)),"Successfully fetched ACF fields options."}return"ACF fields options not found"}));nn.ZP.promise(n,{success:function(e){return e},failed:function(e){return e},loading:(0,d.__)("Loading ACF fields...")})}}),[]);return(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)(rn.Z,{snack:p,setSnackbar:h}),(0,B.jsx)("div",{children:(0,B.jsx)("div",{children:!(null==a||!a.groups)&&(0,B.jsx)("div",{className:"flx mt-3 w-10",children:(0,B.jsxs)("div",{className:"w-10 mr-2",children:[(0,B.jsx)("b",{children:"ACF Options Field"}),(0,B.jsxs)("select",{name:"fieldkey",onChange:function(e){var n,i,r,o=e.target,s=o.name,c=o.value,d=(0,t.Z)({},a);d.fieldObject.filter[s]=c;var u=localStorage.getItem("bf-options-acf_field_op"),m=null==(n=d.fieldObject)||null==(i=n.filter)?void 0:i.fieldkey,p=null==(r=JSON.parse(u))?void 0:r.find((function(e){return(null==e?void 0:e.key)===m}));d.options=Object.entries(null==p?void 0:p.choices),d.keys=Object.keys(d.options),d.vlu=null==d?void 0:d.keys[null==d?void 0:d.vlu],d.lbl=null==d?void 0:d.keys[null==d?void 0:d.lbl],l((0,t.Z)({},d))},value:(null==a||null==(n=a.fieldObject)||null==(i=n.filter)?void 0:i.fieldkey)||"",className:"btcd-paper-inp mt-1",children:[(0,B.jsx)("option",{value:"",children:"select option"}),null==a||null==(r=a.groups)?void 0:r.map((function(e,n){return(0,B.jsx)("option",{value:e.key,children:e.group_title+"-"+e.name},"imp-"+2*n)}))]})]})})})})]})}function mn(e){var n=e.importOpts,i=e.setImportOpts,r=e.lblKey,a=e.valKey,l=(0,o.sJ)(D.hi).isPro,s=(0,o.sJ)(D.gx),c=(0,o.FV)(D.AK),u=c[0],m=c[1],p=(0,M.p$)(u[s]),h=function(){if(!l)return[];var e=n.dataSrc;return"fileupload"===e?Je(n,r,a):"presets"===e?function(e,n,i){var t=e.data,r=e.preset,a=e.lbl,l=e.vlu;return r&&a&&l?t[r].map((function(e){var t;return(t={})[n]=$e(e[a]),t[i]=$e(e[l]),t})):[]}(n,r,a):"user"===e?function(e,n,i){var t=e.data,r=e.lbl,a=e.vlu;return t&&r&&a?t.map((function(e){var t;return(t={})[n]=cn(e[r]),t[i]=cn(e[a]),t})):[]}(n,r,a):"terms"===e?function(e,n,i){var t=e.data,r=e.lbl,a=e.vlu;return t&&r&&a?t.map((function(e){var t;return(t={})[n]=on(e[r]),t[i]=on(e[a]),t})):[]}(n,r,a):"post"===e?function(e,n,i){var t=e.data,r=e.lbl,a=e.vlu;return t&&r&&a?t.map((function(e){var t;return(t={})[n]=e[r].trim(),t[i]=e[a].trim(),t})):[]}(n,r,a):"acf"===e?function(e,n,i){var t=function(e){return e?"string"===typeof e?e.trim():e.toString().trim():""},r=e.options,a=e.lbl,l=e.vlu;return r&&a&&l?r.map((function(e){var r;return(r={})[n]=t(e[a]),r[i]=t(e[l]),r})):[]}(n,r,a):[]},g=function(e){var r=e.target,a=r.name,l=r.value,o=(0,t.Z)({},n),s=(0,t.Z)({},n),c=s.fieldObject,d=s.disabled;"dataSrc"===a&&(o={show:!0}),o.fieldObject=c,o.disabled=d,o[a]=l,i((0,t.Z)({},o))},f=h();return(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("b",{children:"Data Source"}),(0,B.jsxs)("select",{name:"dataSrc",className:"btcd-paper-inp mt-1",onChange:g,value:n.dataSrc,disabled:null==n?void 0:n.disabled,children:[(0,B.jsx)("option",{value:"fileupload",children:"File Upload"}),(0,B.jsx)("option",{value:"presets",children:"Presets"}),(0,B.jsx)("option",{value:"post",children:"Posts"}),(0,B.jsx)("option",{value:"terms",children:"Terms"}),(0,B.jsx)("option",{value:"user",children:"Users"}),(0,B.jsx)("option",{value:"acf",children:"ACF Field Option"})]})]}),"fileupload"===n.dataSrc&&(0,B.jsx)(en,{importOpts:n,setImportOpts:i}),"presets"===n.dataSrc&&(0,B.jsx)(ln,{importOpts:n,setImportOpts:i}),"post"===n.dataSrc&&(0,B.jsx)(an,{importOpts:n,setImportOpts:i}),"user"===n.dataSrc&&(0,B.jsx)(dn,{importOpts:n,setImportOpts:i}),"terms"===n.dataSrc&&(0,B.jsx)(sn,{importOpts:n,setImportOpts:i}),"acf"===n.dataSrc&&(0,B.jsx)(un,{importOpts:n,setImportOpts:i}),!!f.length&&(0,B.jsxs)("div",{className:"mt-3",children:[(0,B.jsx)("b",{children:"Preview:"}),(0,B.jsxs)("table",{border:"1",className:"btcd-table txt-center mt-3",children:[(0,B.jsx)("thead",{className:"thead",children:(0,B.jsxs)("tr",{className:"tr",children:[(0,B.jsx)("th",{className:"th",children:"Label"}),(0,B.jsx)("th",{className:"th",children:"Value"})]})}),(0,B.jsx)("tbody",{className:"tbody",children:f.slice(0,5).map((function(e,n){return(0,B.jsxs)("tr",{className:"tr",children:[(0,B.jsx)("td",{className:"td",children:e[r]}),(0,B.jsx)("td",{className:"td",children:e[a]})]},"imp-"+2*n)}))}),f.length-5>0&&(0,B.jsx)("tfoot",{className:"tfoot",children:(0,B.jsx)("tr",{className:"tr",children:(0,B.jsx)("td",{className:"td",colSpan:"2",children:"+"+(f.length-5)+" more ( Total "+f.length+" )"})})})]})]}),("presets"===n.dataSrc||"fileupload"===n.dataSrc)&&(0,B.jsxs)("div",{className:"mt-1",children:[(0,B.jsx)(Fe.Z,{name:"type",onChange:g,radio:!0,title:(0,d.__)("Replace Previous Options","bitform"),value:"replace",checked:"merge"!==n.type}),(0,B.jsx)("br",{}),(0,B.jsx)(Fe.Z,{name:"type",onChange:g,radio:!0,title:(0,d.__)("Merge with Previous Options","bitform"),value:"merge",checked:"merge"===n.type})]}),(0,B.jsxs)("button",{onClick:function(){var e,r,a=h();"user"===(null==n?void 0:n.dataSrc)&&(p.customType=null==n?void 0:n.fieldObject),"terms"===(null==n?void 0:n.dataSrc)&&(p.customType=null==n?void 0:n.fieldObject),"post"===(null==n?void 0:n.dataSrc)&&(p.customType=null==n?void 0:n.fieldObject),"acf"===(null==n?void 0:n.dataSrc)&&(p.customType=null==n?void 0:n.fieldObject),"merge"===n.type?(p.custom_type.oldOpt=p.opt,p.opt=p.opt.concat(a)):p.opt=a;var l=(null==p||null==(e=p.customType)?void 0:e.type)||"fileupload",o=null,c=!1;null!=p&&null!=(r=p.customType)&&r.type&&(c=!0,o=null==p?void 0:p.customType),m((function(e){var n;return(0,t.Z)({},e,((n={})[s]=p,n))})),i({dataSrc:l,fieldObject:o,disabled:c})},className:"btn blue",type:"button",disabled:!f.length||!1,children:[(0,B.jsx)(We.Z,{size:"15"})," ",(0,d.__)("Import","bitform")]})]})}function pn(){var e,n,i=(0,o.sJ)(D.hi),r=i.isPro,a=(0,o.sJ)(D.gx),l=(0,o.FV)(D.AK),c=l[0],u=l[1],m=(0,M.p$)(c[a]),p=(0,M.p$)(c[a].opt),h=m.adminLbl||"",g=m.round||!1,f=m.valid.req||!1,x=m.opt.find((function(e){return e.req})),b=m.mn||"",v=m.mx||"",_=(null==m||null==(e=m.customType)?void 0:e.type)||"fileupload",j=null,N=!1;null!=m&&null!=(n=m.customType)&&n.type&&(N=!0,j=null==m?void 0:m.customType);var y=(0,s.useState)({}),C=y[0],A=y[1];(0,s.useEffect)((function(){return A({dataSrc:_,fieldObject:j,disabled:N})}),[a]);var S=function(e){e.target.checked?(m.valid.req=!0,m.err||(m.err={}),m.err.req||(m.err.req={}),m.err.req.dflt="<p>This field is required</p>",m.err.req.show=!0):(delete m.valid.req,delete m.mn),u((function(e){var n;return(0,t.Z)({},e,((n={})[a]=m,n))}))};return(0,B.jsxs)("div",{className:"mr-4 ml-2",children:[(0,B.jsx)(Se,{}),(0,B.jsxs)("div",{className:"mb-2",children:[(0,B.jsx)("span",{className:"font-w-m",children:"Field Type : "}),"check"===m.typ?"Check Box":"Radio"]}),(0,B.jsxs)("div",{className:"flx",children:[(0,B.jsx)("span",{className:"font-w-m w-4",children:(0,d.__)("Field Key : ","bitform")}),(0,B.jsx)(Ne.Z,{value:a,className:"field-key-cpy m-0"})]}),(0,B.jsx)(Pe,{}),(0,B.jsx)(ye,{inpType:"text",title:(0,d.__)("Admin Label:","bitform"),value:h,action:function(e){""===e.target.value?delete m.adminLbl:m.adminLbl=e.target.value,u((function(e){var n;return(0,t.Z)({},e,((n={})[a]=m,n))}))}}),(0,B.jsx)(Ce,{title:(0,d.__)("Required:","bitform"),action:S,isChecked:f||x,disabled:x,className:"mt-3"}),(f||x)&&(0,B.jsx)(Ue,{type:"req",title:"Error Message",tipTitle:"By enabling this feature, user will see the error message when required option is not checked"}),(0,B.jsx)(Ce,{title:(0,d.__)("Rounded:","bitform"),action:function(e){e.target.checked?m.round=!0:delete m.round,u((function(e){var n;return(0,t.Z)({},e,((n={})[a]=m,n))}))},isChecked:g,className:"mt-3"}),"check"===m.typ&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{children:[(0,B.jsxs)("div",{className:"flx mt-2 mb-2",children:[(0,B.jsx)("h4",{className:"m-0",children:(0,d.__)("Minimum:","bitform")}),(0,B.jsx)(je.Z,{width:250,icnSize:17,className:"ml-2",children:(0,B.jsx)("div",{className:"txt-body",children:(0,d.__)("Set minimum number to be selected for checkbox option","bitform")})}),!i.isPro&&(0,B.jsx)("span",{className:"pro-badge ml-2",children:(0,d.__)("Pro","bitform")})]}),(0,B.jsx)("input",{className:"btcd-paper-inp",type:"number",value:b,onChange:function(e){r&&(Number(e.target.value)?(m.mn=e.target.value,m.err||(m.err={}),m.err.mn||(m.err.mn={}),m.err.mn.dflt="<p>Minimum "+e.target.value+" option"+(Number(e.target.value)>1?"s":"")+"<p>",m.err.mn.show=!0,x||S({target:{checked:!0}})):(delete m.mn,S({target:{checked:!1}})),u((function(e){var n;return(0,t.Z)({},e,((n={})[a]=m,n))})))},disabled:!r})]}),m.mn&&(0,B.jsx)(Ue,{type:"mn",title:"Min Error Message",tipTitle:"By enabling this feature, user will see the error message when selected checkbox is less than "+m.mn}),(0,B.jsxs)("div",{children:[(0,B.jsxs)("div",{className:"flx mt-2 mb-2",children:[(0,B.jsx)("h4",{className:"m-0",children:(0,d.__)("Maximum:","bitform")}),(0,B.jsx)(je.Z,{width:250,icnSize:17,className:"ml-2",children:(0,B.jsx)("div",{className:"txt-body",children:(0,d.__)("Set maximum number to be selected for checkbox option","bitform")})}),!i.isPro&&(0,B.jsx)("span",{className:"pro-badge ml-2",children:(0,d.__)("Pro","bitform")})]}),(0,B.jsx)("input",{className:"btcd-paper-inp",type:"number",value:v,onChange:function(e){r&&(""===e.target.value?delete m.mx:(m.mx=e.target.value,m.err||(m.err={}),m.err.mx||(m.err.mx={}),m.err.mx.dflt="<p>Maximum "+e.target.value+" option"+(Number(e.target.value)>1?"s":"")+"</p>",m.err.mx.show=!0),u((function(e){var n;return(0,t.Z)({},e,((n={})[a]=m,n))})))},disabled:!r})]}),m.mx&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(Ue,{type:"mx",title:"Max Error Message",tipTitle:"By enabling this feature, user will see the error message when selected checkbox is greater than "+m.mx}),(0,B.jsx)(Ce,{title:(0,d.__)("Disable if maximum selected:","bitform"),action:function(e){r&&(e.target.checked?m.valid.disableOnMax=!0:delete m.valid.disableOnMax,u((function(e){var n;return(0,t.Z)({},e,((n={})[a]=m,n))})))},isChecked:m.valid.disableOnMax,disabled:!r,className:"mt-3 mb-2"})]})]}),(0,B.jsxs)("div",{className:"pos-rel",children:[!i.isPro&&(0,B.jsx)("div",{className:"pro-blur flx",style:{height:"100%",left:0,width:"100%",marginTop:14},children:(0,B.jsxs)("div",{className:"pro",children:[(0,d.__)("Available On","bitform"),(0,B.jsx)("a",{href:"https://www.bitapps.pro/bit-form",target:"_blank",rel:"noreferrer",children:(0,B.jsxs)("span",{className:"txt-pro",children:[" ",(0,d.__)("Premium","bitform")]})})]})}),(0,B.jsx)(Ue,{type:"entryUnique",title:"Validate as Entry Unique",tipTitle:"Enabling this option will check from the entry database whether its value is duplicate.",defaultMsg:"The value is already taken. Try another."})]}),(0,B.jsxs)("button",{onClick:function(){C.show=!0,A((0,t.Z)({},C))},className:"btn",type:"button",children:[(0,B.jsx)(We.Z,{size:"16"})," ",(0,d.__)("Import Options","bitform")]}),(0,B.jsxs)("div",{className:"opt mt-1",children:[(0,B.jsx)("span",{className:"font-w-m",children:(0,d.__)("Options:","bitform")}),p.map((function(e,n){return(0,B.jsxs)("div",{className:"flx flx-between",children:[(0,B.jsx)(ye,{inpType:"text",value:e.lbl,action:function(e){return function(e,n){var i=(0,t.Z)({},p[n]);i.lbl=e.target.value,p[n]=i,m.opt=p,u((function(e){var n;return(0,t.Z)({},e,((n={})[a]=m,n))}))}(e,n)},width:140,className:"mt-0"}),(0,B.jsxs)("div",{className:"flx mt-1",children:["check"===m.typ&&(0,B.jsxs)("label",{className:"btcd-ck-wrp tooltip m-0",style:{"--tooltip-txt":"'"+(0,d.__)("Required","bitform")+"'"},children:[(0,B.jsx)("input",{onChange:function(e){return function(e,n){if(e.target.checked){var i=(0,t.Z)({},p[n]);i.req=!0,p[n]=i}else delete p[n].req;m.opt=p;var r=p.filter((function(e){return e.req})).map((function(e){return e.lbl})).join(", ");m.err||(m.err={}),m.err.req||(m.err.req={}),m.err.req.dflt=r?"<p>"+r+" is required</p>":"<p>This field is required</p>",m.err.req.show=!0,u((function(e){var n;return(0,t.Z)({},e,((n={})[a]=m,n))}))}(e,n)},type:"checkbox",checked:void 0!==e.req,disabled:f}),(0,B.jsx)("span",{className:"btcd-mrk ck br-50 "})]}),(0,B.jsxs)("label",{className:"btcd-ck-wrp tooltip m-0",style:{"--tooltip-txt":"'"+(0,d.__)("Check by Default","bitform")+"'"},children:[(0,B.jsx)("input",{onChange:function(e){return function(e,n){if("radio"===m.typ)for(var i=0;i<p.length;i+=1)delete p[i].check;if(e.target.checked){var r=(0,t.Z)({},p[n]);r.check=!0,p[n]=r}else delete p[n].check;m.opt=p,u((function(e){var n;return(0,t.Z)({},e,((n={})[a]=m,n))}))}(e,n)},type:"checkbox",checked:void 0!==e.check}),(0,B.jsx)("span",{className:"btcd-mrk ck br-50 "})]}),(0,B.jsx)("button",{onClick:function(){return e=n,p.splice(e,1),m.opt=p,void u((function(e){var n;return(0,t.Z)({},e,((n={})[a]=m,n))}));var e},className:"btn cls-btn",type:"button","aria-label":"close",children:(0,B.jsx)(Ke.Z,{size:"12"})})]})]},"opt-"+(n+8))})),(0,B.jsx)("button",{onClick:function(){p.push({lbl:"Option "+(p.length+1)}),m.opt=p,u((function(e){var n;return(0,t.Z)({},e,((n={})[a]=m,n))}))},className:"btn blue",type:"button",children:(0,d.__)("Add More +","bitform")})]}),(0,B.jsx)(we.Z,{md:!0,autoHeight:!0,show:C.show,setModal:function(){delete C.show,A((0,t.Z)({},C))},className:"o-v",title:(0,d.__)("Import Options","bitform"),children:(0,B.jsxs)("div",{className:"pos-rel",children:[!r&&(0,B.jsx)("div",{className:"pro-blur flx",style:{top:-7,width:"105%",left:-17},children:(0,B.jsxs)("div",{className:"pro",children:[(0,d.__)("Available On","bitform"),(0,B.jsx)("a",{href:"https://www.bitapps.pro/bit-form",target:"_blank",rel:"noreferrer",children:(0,B.jsxs)("span",{className:"txt-pro",children:[" ",(0,d.__)("Premium","bitform")]})})]})}),(0,B.jsx)(mn,{importOpts:C,setImportOpts:A,lblKey:"lbl",valKey:"val",customType:m})]})})]})}const hn=(0,s.memo)(pn);var gn=[{currency:"United Arab Emirates Dirham",code:"AED"},{currency:"Albanian lek",code:"ALL"},{currency:"Armenian dram",code:"AMD"},{currency:"Argentine peso",code:"ARS"},{currency:"Australian dollar",code:"AUD"},{currency:"Aruban florin",code:"AWG"},{currency:"Barbadian dollar",code:"BBD"},{currency:"Bangladeshi taka",code:"BDT"},{currency:"Bermudian dollar",code:"BMD"},{currency:"Brunei dollar",code:"BND"},{currency:"Bolivian boliviano",code:"BOB"},{currency:"Bahamian dollar",code:"BSD"},{currency:"Botswana pula",code:"BWP"},{currency:"Belize dollar",code:"BZD"},{currency:"Canadian dollar",code:"CAD"},{currency:"Swiss franc",code:"CHF"},{currency:"Chinese yuan renminbi",code:"CNY"},{currency:"Colombian peso",code:"COP"},{currency:"Costa Rican colon",code:"CRC"},{currency:"Cuban peso",code:"CUP"},{currency:"Czech koruna",code:"CZK"},{currency:"Danish krone",code:"DKK"},{currency:"Dominican peso",code:"DOP"},{currency:"Algerian dinar",code:"DZD"},{currency:"Egyptian pound",code:"EGP"},{currency:"Ethiopian birr",code:"ETB"},{currency:"European euro",code:"EUR"},{currency:"Fijian dollar",code:"FJD"},{currency:"Pound sterling",code:"GBP"},{currency:"Gibraltar pound",code:"GIP"},{currency:"Ghanian Cedi",code:"GHS"},{currency:"Gambian dalasi",code:"GMD"},{currency:"Guatemalan quetzal",code:"GTQ"},{currency:"Guyanese dollar",code:"GYD"},{currency:"Hong Kong dollar",code:"HKD"},{currency:"Honduran lempira",code:"HNL"},{currency:"Croatian kuna",code:"HRK"},{currency:"Haitian gourde",code:"HTG"},{currency:"Hungarian forint",code:"HUF"},{currency:"Indonesian rupiah",code:"IDR"},{currency:"Israeli new shekel",code:"ILS"},{currency:"Indian rupee",code:"INR"},{currency:"Jamaican dollar",code:"JMD"},{currency:"Kenyan shilling",code:"KES"},{currency:"Kyrgyzstani som",code:"KGS"},{currency:"Cambodian riel",code:"KHR"},{currency:"Cayman Islands dollar",code:"KYD"},{currency:"Kazakhstani tenge",code:"KZT"},{currency:"Lao kip",code:"LAK"},{currency:"Lebanese pound",code:"LBP"},{currency:"Sri Lankan rupee",code:"LKR"},{currency:"Liberian dollar",code:"LRD"},{currency:"Lesotho loti",code:"LSL"},{currency:"Moroccan dirham",code:"MAD"},{currency:"Moldovan leu",code:"MDL"},{currency:"Macedonian denar",code:"MKD"},{currency:"Myanmar kyat",code:"MMK"},{currency:"Mongolian tugrik",code:"MNT"},{currency:"Macanese pataca",code:"MOP"},{currency:"Mauritian rupee",code:"MUR"},{currency:"Maldivian rufiyaa",code:"MVR"},{currency:"Malawian kwacha",code:"MWK"},{currency:"Mexican peso",code:"MXN"},{currency:"Malaysian ringgit",code:"MYR"},{currency:"Namibian dollar",code:"NAD"},{currency:"Nigerian naira",code:"NGN"},{currency:"Nicaraguan cordoba",code:"NIO"},{currency:"Norwegian krone",code:"NOK"},{currency:"Nepalese rupee",code:"NPR"},{currency:"New Zealand dollar",code:"NZD"},{currency:"Peruvian sol",code:"PEN"},{currency:"Papua New Guinean kina",code:"PGK"},{currency:"Philippine peso",code:"PHP"},{currency:"Pakistani rupee",code:"PKR"},{currency:"Qatari riyal",code:"QAR"},{currency:"Russian ruble",code:"RUB"},{currency:"Saudi Arabian riyal",code:"SAR"},{currency:"Seychellois rupee",code:"SCR"},{currency:"Swedish krona",code:"SEK"},{currency:"Singapore dollar",code:"SGD"},{currency:"Sierra Leonean leone",code:"SLL"},{currency:"Somali shilling",code:"SOS"},{currency:"South Sudanese pound",code:"SSP"},{currency:"Salvadoran colón",code:"SVC"},{currency:"Swazi lilangeni",code:"SZL"},{currency:"Thai baht",code:"THB"},{currency:"Trinidad and Tobago dollar",code:"TTD"},{currency:"Tanzanian shilling",code:"TZS"},{currency:"United States dollar",code:"USD"},{currency:"Uruguayan peso",code:"UYU"},{currency:"Uzbekistani so'm",code:"UZS"},{currency:"Yemeni rial",code:"YER"},{currency:"South African rand",code:"ZAR"}],fn=i(7919);function xn(e){var n=e.className,i=e.title,t=e.children,r=e.open,a=e.onOpen,l=(0,s.useState)(r),o=l[0],c=l[1],d=(0,s.useState)(0),u=d[0],m=d[1],p=function(e){c(e),e&&a()};return(0,s.useEffect)((function(){p(r)}),[r]),(0,B.jsxs)("div",{className:n+" "+(o&&"active"),children:[(0,B.jsx)("div",{className:"btgl",tabIndex:"0",role:"button",onClick:function(){return p(!o)},onKeyPress:function(){return p(!o)},children:(0,B.jsxs)("div",{className:"flx flx-between",children:[(0,B.jsx)("span",{children:i}),(0,B.jsx)("span",{className:"btcd-icn icn-"+(o?"keyboard_arrow_up":"keyboard_arrow_down")})]})}),(0,B.jsx)("div",{style:{height:u,transition:"height 300ms"},children:(0,B.jsx)(fn.Z,{in:o,timeout:300,onEntering:function(e){return m(e.offsetHeight)},onEntered:function(){return m("auto")},onExit:function(e){return m(e.offsetHeight)},onExiting:function(){return m(0)},unmountOnExit:!0,children:(0,B.jsx)("div",{className:"body",children:t})})})]})}function bn(){var e,n=(0,o.sJ)(D.gx),i=(0,o.FV)(D.AK),r=i[0],a=i[1],l=(0,M.p$)(r[n]),c=Object.entries(r),u=(0,s.useContext)(L.d).payments,m=(0,s.useState)([{}]),p=m[0],h=m[1],g="subscription"===(null==l?void 0:l.payType),f="dynamic"===l.options.amountType,x=[{name:(0,d.__)("Left","bitform"),value:"left"},{name:(0,d.__)("Center","bitform"),value:"center"},{name:(0,d.__)("Right","bitform"),value:"right"}],b=function(e,i,r){r?(l.options[r]||(l.options[r]={}),i?l.options[r][e]=i:delete l.options[r][e]):i?l.options[e]=i:delete l.options[e],"invoice"===r&&"generate"===e&&(l.options.invoice.itemName="Due Amount"),a((function(e){var i;return(0,t.Z)({},e,((i={})[n]=l,i))}))},v=function(e){e.target.value?l.options.amountType=e.target.value:delete l.options.amountType,delete l.options.amount,delete l.options.amountFld,a((function(e){var i;return(0,t.Z)({},e,((i={})[n]=l,i))}))},_=function(e){l[e.target.name]=e.target.value,a((function(e){var i;return(0,t.Z)({},e,((i={})[n]=l,i))}))},j=function(e,n,i,t){var r=[].concat(p);return"add"===e?(r.push({}),h(r),N(r)):"delete"===e?(r.splice(n,1),h(r),N(r)):(r[n][i]=t,h(r),void N(r))},N=function(e){for(var i={},r=-1,o=p.length;++r<o;){var s,c;null!=(s=e[r])&&s.key&&null!=(c=e[r])&&c.value&&(i[e[r].key]=e[r].value)}l.options.notes=i,a((function(e){var i;return(0,t.Z)({},e,((i={})[n]=l,i))}))},y=function(e){var n;return"amount"===e?n=/number|radio/g:"desc"===e?n=/text/g:"email"===e?n=/text|email/g:"number"===e&&(n=/number/g),c.filter((function(e){return e[1].typ.match(n)})).map((function(e){return(0,B.jsx)("option",{value:e[0],children:e[1].adminLbl||e[1].lbl},e[0])}))};return(0,B.jsxs)("div",{className:"ml-2 mr-4",children:[(0,B.jsx)(Se,{}),(0,B.jsxs)("div",{className:"mb-2",children:[(0,B.jsx)("span",{className:"font-w-m",children:(0,d.__)("Field Type : ","bitform")}),(0,d.__)("Razor Pay","bitform")]}),(0,B.jsxs)("div",{className:"mt-3",children:[(0,B.jsx)("b",{children:(0,d.__)("Select Config","bitform")}),(0,B.jsx)("br",{}),(0,B.jsxs)("select",{name:"payIntegID",id:"payIntegID",onChange:function(e){return b(e.target.name,e.target.value)},className:"btcd-paper-inp mt-1",value:l.options.payIntegID,children:[(0,B.jsx)("option",{value:"",children:"Select Config"}),u.filter((function(e){return"Razorpay"===e.type})).map((function(e){return(0,B.jsx)("option",{value:e.id,children:e.name},e.id)}))]})]}),(null==l||null==(e=l.options)?void 0:e.payIntegID)&&(0,B.jsxs)(B.Fragment,{children:[!g&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{children:[(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("b",{children:(0,d.__)("Amount Type","bitform")}),(0,B.jsx)("br",{}),(0,B.jsx)(Fe.Z,{onChange:v,radio:!0,checked:!f,title:(0,d.__)("Fixed","bitform")}),(0,B.jsx)(Fe.Z,{onChange:v,radio:!0,checked:f,title:(0,d.__)("Dynamic","bitform"),value:"dynamic"})]}),!f&&(0,B.jsx)(ye,{inpType:"number",title:(0,d.__)("Amount","bitform"),value:l.options.amount||"",action:function(e){return b("amount",e.target.value)}}),f&&(0,B.jsxs)("div",{className:"mt-3",children:[(0,B.jsx)("b",{children:(0,d.__)("Select Amount Field","bitform")}),(0,B.jsxs)("select",{onChange:function(e){return b(e.target.name,e.target.value)},name:"amountFld",className:"btcd-paper-inp mt-1",value:l.options.amountFld,children:[(0,B.jsx)("option",{value:"",children:(0,d.__)("Select Field","bitform")}),y("amount")]})]})]}),(0,B.jsx)("div",{className:"mt-2",children:(0,B.jsxs)("label",{htmlFor:"recap-thm",children:[(0,B.jsx)("b",{children:(0,d.__)("Currency","bitform")}),(0,B.jsx)("select",{onChange:function(e){return b(e.target.name,e.target.value)},name:"currency",value:l.options.currency,className:"btcd-paper-inp mt-1",children:(0,M.SI)(gn,"currency").map((function(e){return(0,B.jsx)("option",{value:e.code,children:e.currency+" - "+e.code},e.currency)}))})]})}),(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("b",{children:(0,d.__)("Account Name","bitform")}),(0,B.jsx)("br",{}),(0,B.jsx)("input",{type:"text",className:"mt-1 btcd-paper-inp",placeholder:"Account Name",name:"name",value:l.options.name||"",onChange:function(e){return b(e.target.name,e.target.value)}})]}),(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("b",{children:(0,d.__)("Description","bitform")}),(0,B.jsx)("br",{}),(0,B.jsx)("textarea",{className:"mt-1 btcd-paper-inp",placeholder:"Order Description",name:"description",rows:"5",value:l.options.description||"",onChange:function(e){return b(e.target.name,e.target.value)}})]})]}),(0,B.jsxs)(xn,{title:"Additional Settings",className:"style-acc",children:[(0,B.jsxs)(xn,{title:"Button",className:"style-acc",children:[(0,B.jsx)(ye,{inpType:"text",title:(0,d.__)("Button Text","bitform"),value:l.btnTxt||"",name:"btnTxt",action:_,className:"mt-0"}),(0,B.jsx)(Me,{title:(0,d.__)("Button Align:","bitform"),options:x,value:l.align,action:_,name:"align"}),(0,B.jsx)(Ce,{title:(0,d.__)("Full Width Button:","bitform"),action:function(e){l.fulW=e.target.checked,a((function(e){var i;return(0,t.Z)({},e,((i={})[n]=l,i))}))},isChecked:l.fulW,className:"mt-5"}),(0,B.jsx)(Ce,{title:(0,d.__)("Small Button:","bitform"),action:function(e){e.target.checked?l.btnSiz="sm":l.btnSiz="md",a((function(e){var i;return(0,t.Z)({},e,((i={})[n]=l,i))}))},isChecked:"sm"===l.btnSiz,className:"mt-5"})]}),(0,B.jsx)("div",{className:"btcd-hr"}),(0,B.jsxs)(xn,{title:"Theme",className:"style-acc",children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("b",{children:(0,d.__)("Theme Color:","bitform")}),(0,B.jsx)("input",{className:"ml-2",type:"color",value:l.options.theme.color,onChange:function(e){return b("color",e.target.value,"theme")}})]}),(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("b",{children:(0,d.__)("Background Color:","bitform")}),(0,B.jsx)("input",{className:"ml-2",type:"color",value:l.options.theme.backdrop_color,onChange:function(e){return b("backdrop_color",e.target.value,"theme")}})]})]}),(0,B.jsx)("div",{className:"btcd-hr"}),(0,B.jsx)(xn,{title:"Modal",className:"style-acc",children:(0,B.jsx)(Ce,{title:(0,d.__)("Confirm on Close:","bitform"),action:function(e){return b("confirm_close",e.target.checked,"modal")},isChecked:l.options.modal.confirm_close})}),(0,B.jsx)("div",{className:"btcd-hr"}),(0,B.jsxs)(xn,{title:"Prefill",className:"style-acc",children:[(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("b",{children:(0,d.__)("Name :","bitform")}),(0,B.jsxs)("select",{onChange:function(e){return b(e.target.name,e.target.value,"prefill")},name:"prefillNameFld",className:"btcd-paper-inp mt-1",value:l.options.prefill.prefillNameFld,children:[(0,B.jsx)("option",{value:"",children:(0,d.__)("Select Field","bitform")}),y("desc")]})]}),(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("b",{children:(0,d.__)("Email :","bitform")}),(0,B.jsxs)("select",{onChange:function(e){return b(e.target.name,e.target.value,"prefill")},name:"prefillEmailFld",className:"btcd-paper-inp mt-1",value:l.options.prefill.prefillEmailFld,children:[(0,B.jsx)("option",{value:"",children:(0,d.__)("Select Field","bitform")}),y("email")]})]}),(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("b",{children:(0,d.__)("Contact :","bitform")}),(0,B.jsxs)("select",{onChange:function(e){return b(e.target.name,e.target.value,"prefill")},name:"prefillContactFld",className:"btcd-paper-inp mt-1",value:l.options.prefill.prefillContactFld,children:[(0,B.jsx)("option",{value:"",children:(0,d.__)("Select Field","bitform")}),y("number")]})]})]}),(0,B.jsx)("div",{className:"btcd-hr"}),(0,B.jsxs)(xn,{title:"Notes",className:"style-acc",children:[(0,B.jsxs)("div",{className:"flx",children:[(0,B.jsx)("div",{className:"w-10",children:(0,B.jsx)("b",{children:(0,d.__)("Key :","bitform")})}),(0,B.jsx)("div",{className:"w-10",children:(0,B.jsx)("b",{children:(0,d.__)("Value :","bitform")})})]}),p.map((function(e,n){return(0,B.jsxs)("div",{className:"flx",children:[(0,B.jsx)("div",{children:(0,B.jsx)("input",{className:"btcd-paper-inp mt-1",type:"text",value:e.key,onChange:function(e){return j("edit",n,"key",e.target.value)}})}),(0,B.jsx)("div",{className:"ml-1",children:(0,B.jsx)("input",{className:"btcd-paper-inp mt-1",type:"text",value:e.value,onChange:function(e){return j("edit",n,"value",e.target.value)}})}),(0,B.jsx)("button",{className:"icn-btn ml-1 mt-3",type:"button","aria-label":"btn",onClick:function(){return j("delete",n)},children:(0,B.jsx)(Z.Z,{})})]},"rp"+2*n)})),(0,B.jsx)("div",{className:"txt-center mt-2",children:(0,B.jsx)("button",{className:"icn-btn",type:"button",onClick:function(){return j("add")},children:"+"})})]}),(0,B.jsx)("div",{className:"btcd-hr"})]})]})]})}function vn(){var e=(0,o.sJ)(D.gx),n=(0,o.FV)(D.AK),i=n[0],r=n[1],a=(0,M.p$)(i[e]);return(0,B.jsxs)("div",{className:"ml-2 mr-4",children:[(0,B.jsx)(Se,{}),(0,B.jsxs)("div",{className:"mb-2",children:[(0,B.jsx)("span",{className:"font-w-m",children:(0,d.__)("Field Type :","bitform")}),(0,d.__)("reCAPTCHA","bitform")]}),(0,B.jsx)("div",{children:(0,B.jsxs)("label",{htmlFor:"recap-thm",children:[(0,d.__)("Theme","bitform"),(0,B.jsxs)("select",{onChange:function(n){var i=n.target,l=i.name,o=i.value;a[l]=o,r((function(n){var i;return(0,t.Z)({},n,((i={})[e]=a,i))}))},name:"theme",value:a.theme,className:"btcd-paper-inp mt-1",children:[(0,B.jsx)("option",{value:"dark",children:(0,d.__)("Dark","bitform")}),(0,B.jsx)("option",{value:"light",children:(0,d.__)("Light","bitform")})]})]})})]})}function _n(){var e,n,i,r=(0,o.sJ)(D.hi),a=r.isPro,l=(0,o.sJ)(D.gx),c=(0,o.FV)(D.AK),u=c[0],m=c[1],p=(0,M.p$)(u[l]),h=p.opt,g=void 0!==p.valid.req,f=p.mul,x=void 0!==p.customOpt,b=void 0===p.adminLbl?"":p.adminLbl,v=void 0===p.ph?"":p.ph,_=p.mn||"",j=p.mx||"",N=(null==p||null==(e=p.customType)?void 0:e.type)||"fileupload",y=null,C=!1;null!=p&&null!=(n=p.customType)&&n.type&&(y=null==p?void 0:p.customType,C=!0);var A=(0,s.useState)({}),S=A[0],w=A[1];function I(e){if(e.target.checked){var n=(0,t.Z)({},p.valid);n.req=!0,p.valid=n,p.err||(p.err={}),p.err.req||(p.err.req={}),p.err.req.dflt="<p>This field is required</p>",p.err.req.show=!0}else delete p.valid.req,delete p.mn;m((function(e){var n;return(0,t.Z)({},e,((n={})[l]=p,n))}))}function k(e){e.target.checked?f?(Array.isArray(p.val)||(p.val=[]),p.val=[].concat(p.val,[e.target.getAttribute("data-value")])):p.val=e.target.getAttribute("data-value"):f?p.val=[].concat(p.val.filter((function(n){return n!==e.target.getAttribute("data-value")}))):delete p.val,m((function(e){var n;return(0,t.Z)({},e,((n={})[l]=p,n))}))}(0,s.useEffect)((function(){return w({dataSrc:N,fieldObject:y,disabled:C})}),[l]),f&&("val"in p?Array.isArray(p.val)||(p.val=[p.val]):p.val=[]);return(0,B.jsxs)("div",{className:"ml-2 mr-4",children:[(0,B.jsx)(Se,{}),(0,B.jsxs)("div",{className:"mb-2",children:[(0,B.jsx)("span",{className:"font-w-m",children:"Field Type : "}),p.typ.charAt(0).toUpperCase()+p.typ.slice(1)]}),(0,B.jsxs)("div",{className:"flx",children:[(0,B.jsx)("span",{className:"font-w-m mr-1",children:(0,d.__)("Field Key : ","bitform")}),(0,B.jsx)(Ne.Z,{value:l,className:"field-key-cpy m-0 w-7"})]}),(0,B.jsx)(Pe,{}),(0,B.jsx)(ye,{inpType:"text",title:(0,d.__)("Admin Label:","bitform"),value:b,action:function(e){""===e.target.value?delete p.adminLbl:p.adminLbl=e.target.value,m((function(e){var n;return(0,t.Z)({},e,((n={})[l]=p,n))}))}}),p.typ.match(/^(text|url|password|number|email|select)$/)&&(0,B.jsx)(ye,{inpType:"text",title:(0,d.__)("Placeholder:","bitform"),value:v,action:function(e){""===e.target.value?delete p.ph:p.ph=e.target.value,m((function(e){var n;return(0,t.Z)({},e,((n={})[l]=p,n))}))}}),(0,B.jsx)(Ce,{title:(0,d.__)("Required:","bitform"),action:I,isChecked:g,className:"mt-3"}),(null==p||null==(i=p.valid)?void 0:i.req)&&(0,B.jsx)(Ue,{type:"req",title:"Error Message",tipTitle:"By enabling this feature, user will see the error message if select box is empty"}),(0,B.jsxs)("div",{className:"pos-rel",children:[!r.isPro&&(0,B.jsx)("div",{className:"pro-blur flx",style:{height:"100%",left:0,width:"100%",marginTop:14},children:(0,B.jsxs)("div",{className:"pro",children:[(0,d.__)("Available On","bitform"),(0,B.jsx)("a",{href:"https://www.bitapps.pro/bit-form",target:"_blank",rel:"noreferrer",children:(0,B.jsxs)("span",{className:"txt-pro",children:[" ",(0,d.__)("Premium","bitform")]})})]})}),(0,B.jsx)(Ue,{type:"entryUnique",title:"Validate as Entry Unique",tipTitle:"Enabling this option will check from the entry database whether its value is duplicate."})]}),(0,B.jsx)(Ce,{title:(0,d.__)("Multiple Select:","bitform"),action:function(e){e.target.checked?p.mul=!0:(delete p.mul,delete p.mn,delete p.mx,p.err&&(delete p.err.mn,delete p.err.mx)),m((function(e){var n;return(0,t.Z)({},e,((n={})[l]=p,n))}))},isChecked:f,className:"mt-3"}),(0,B.jsx)(Ce,{title:(0,d.__)("Allow Other Option:","bitform"),action:function(e){e.target.checked?p.customOpt=!0:delete p.customOpt,m((function(e){var n;return(0,t.Z)({},e,((n={})[l]=p,n))}))},isChecked:x,className:"mt-3 mb-2"}),p.mul&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{children:[(0,B.jsxs)("div",{className:"flx mt-2 mb-2",children:[(0,B.jsx)("h4",{className:"m-0",children:(0,d.__)("Minimum:","bitform")}),(0,B.jsx)(je.Z,{width:250,icnSize:17,className:"ml-2",children:(0,B.jsx)("div",{className:"txt-body",children:(0,d.__)("Set minimum number to be selected for dropdown option","bitform")})}),!a&&(0,B.jsx)("span",{className:"pro-badge ml-2",children:(0,d.__)("Pro","bitform")})]}),(0,B.jsx)("input",{className:"btcd-paper-inp",type:"number",value:_,onChange:function(e){a&&(Number(e.target.value)?(p.mn=e.target.value,p.err||(p.err={}),p.err.mn||(p.err.mn={}),p.err.mn.dflt="<p>Minimum "+e.target.value+" option"+(Number(e.target.value)>1?"s":"")+"<p>",p.err.mn.show=!0,I({target:{checked:!0}})):(delete p.mn,I({target:{checked:!1}})),m((function(e){var n;return(0,t.Z)({},e,((n={})[l]=p,n))})))},disabled:!a})]}),p.mn&&(0,B.jsx)(Ue,{type:"mn",title:"Min Error Message",tipTitle:"By enabling this feature, user will see the error message when selected options is less than "+p.mn}),(0,B.jsxs)("div",{children:[(0,B.jsxs)("div",{className:"flx mt-2 mb-2",children:[(0,B.jsx)("h4",{className:"m-0",children:(0,d.__)("Maximum:","bitform")}),(0,B.jsx)(je.Z,{width:250,icnSize:17,className:"ml-2",children:(0,B.jsx)("div",{className:"txt-body",children:(0,d.__)("Set maximum number to be selected for dropdown option","bitform")})}),!r.isPro&&(0,B.jsx)("span",{className:"pro-badge ml-2",children:(0,d.__)("Pro","bitform")})]}),(0,B.jsx)("input",{className:"btcd-paper-inp",type:"number",value:j,onChange:function(e){a&&(""===e.target.value?delete p.mx:(p.mx=e.target.value,p.err||(p.err={}),p.err.mx||(p.err.mx={}),p.err.mx.dflt="<p>Maximum "+e.target.value+" option"+(Number(e.target.value)>1?"s":"")+"</p>",p.err.mx.show=!0),m((function(e){var n;return(0,t.Z)({},e,((n={})[l]=p,n))})))},disabled:!a})]}),p.mx&&(0,B.jsx)(B.Fragment,{children:(0,B.jsx)(Ue,{type:"mx",title:"Max Error Message",tipTitle:"By enabling this feature, user will see the error message when selected options is greater than "+p.mx,defaultMsg:"The value is already taken. Try another."})})]}),(0,B.jsxs)("button",{onClick:function(){S.show=!0,w((0,t.Z)({},S))},className:"btn",type:"button",children:[(0,B.jsx)(We.Z,{size:"16"})," ",(0,d.__)("Import Options","bitform")]}),(0,B.jsxs)("div",{className:"opt",children:[(0,B.jsx)("span",{className:"font-w-m",children:(0,d.__)("Options:","bitform")}),p.opt.map((function(e,n){var i;return(0,B.jsxs)("div",{className:"flx flx-between",children:[(0,B.jsx)(ye,{inpType:"text",value:e.label,action:function(e){return function(e,n){var i=e.target.value,r=(0,t.Z)({},h[n]);r.label=i,r.value=i.replace(",","_"),p.opt[n]=r,m((function(e){var n;return(0,t.Z)({},e,((n={})[l]=p,n))}))}(e,n)},width:140,className:"mt-0"}),(0,B.jsxs)("div",{className:"flx mt-2",children:[(0,B.jsxs)("label",{className:"btcd-ck-wrp tooltip",style:{"--tooltip-txt":"'"+(0,d.__)("Check by Default","bitform")+"'"},children:[(0,B.jsx)("input",{onChange:k,type:"checkbox","data-value":e.value,checked:"string"===typeof p.val?p.val===e.value:null==p||null==(i=p.val)?void 0:i.some((function(n){return n===e.value}))}),(0,B.jsx)("span",{className:"btcd-mrk ck br-50"})]}),(0,B.jsx)("button",{onClick:function(){return e=n,h.splice(e,1),p.opt=h,void m((function(e){var n;return(0,t.Z)({},e,((n={})[l]=p,n))}));var e},className:"btn cls-btn",type:"button","aria-label":"remove option",children:(0,B.jsx)(Ke.Z,{size:"14"})})]})]},"opt-"+(n+8))})),(0,B.jsx)("button",{onClick:function(){h.push({label:"Option "+(p.opt.length+1),value:"Option "+(p.opt.length+1)}),p.opt=h,m((function(e){var n;return(0,t.Z)({},e,((n={})[l]=p,n))}))},className:"btn blue",type:"button",children:(0,d.__)("Add More +","bitform")})]}),(0,B.jsx)(we.Z,{md:!0,autoHeight:!0,show:S.show,setModal:function(){delete S.show,w((0,t.Z)({},S))},className:"o-v",title:(0,d.__)("Import Options","bitform"),children:(0,B.jsxs)("div",{className:"pos-rel",children:[!a&&(0,B.jsx)("div",{className:"pro-blur flx",style:{top:-7,width:"105%",left:-17},children:(0,B.jsxs)("div",{className:"pro",children:[(0,d.__)("Available On","bitform"),(0,B.jsx)("a",{href:"https://www.bitapps.pro/bit-form",target:"_blank",rel:"noreferrer",children:(0,B.jsxs)("span",{className:"txt-pro",children:[" ",(0,d.__)("Premium","bitform")]})})]})}),(0,B.jsx)(mn,{importOpts:S,setImportOpts:w,lblKey:"label",valKey:"value"})]})})]})}function jn(e){var n=e.borderWidth,i=e.borderRadius;return(0,B.jsx)("div",{className:"border-icn",style:{borderWidth:n,borderRadius:i}})}function Nn(e){var n=e.h;return(0,B.jsx)("svg",{height:n,style:{height:n},xmlns:"http://www.w3.org/2000/svg",baseProfile:"tiny",version:"1.2",viewBox:"0 0 65.4 261.2",children:(0,B.jsx)("path",{d:"M3.6 261.2L2 260c-1.8-1.5-2.4-3.5-1.8-5.7a5.1 5.1 0 014.5-3.9l1.8-.1h52.3c4.5 0 7.4 2.8 6.3 6.5-.5 1.7-2.2 3-3.4 4.4H3.6zM27 49.7L12.2 61.5c-1.1.9-2.2 1.9-3.4 2.7C6.1 66 3 65.5 1.1 63.1a5.3 5.3 0 011-7.5c9-7.3 18-14.5 27.1-21.6 2.4-1.9 4.7-1.8 7.2.2l26.5 21.2c2.9 2.3 3.3 5.6 1.2 8.1-2.1 2.3-5.3 2.5-8.1.2L40.7 51.5l-2.2-1.6v161.6l2.1-1.5 15.3-12.3c3-2.4 6.2-2.2 8.3.3 2.1 2.5 1.5 5.8-1.5 8.2l-25.9 20.7c-3.1 2.5-5.1 2.4-8.2 0l-26.3-21c-2.6-2.1-3-5.3-1.2-7.7 1.9-2.5 5.2-3 7.9-.9l15.8 12.5 2.2 1.7V49.7zM32.7 0h26.5c3.8 0 6.1 2 6.1 5.3.1 3.3-2.2 5.6-5.9 5.6H5.9C2.2 10.9 0 8.6 0 5.3.1 2 2.4 0 6.2 0h26.5z"})})}xn.defaultProps={onOpen:function(){},open:!1};var yn=i(1766),Cn=function(e){return parseInt(e.repeat(2/e.length),16)},An=function(e,n){return"undefined"!==typeof e?e/255:"number"!=typeof n||n<0||n>1?1:n};function Sn(e,n){if(!function(e){return/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e)}(e))throw new Error("Invalid HEX");var i=Math.floor((e.length-1)/3),t=function(e,n){return e.match(new RegExp(".{"+n+"}","g"))}(e.slice(1),i),r=t.map(Cn),a=r[0],l=r[1],o=r[2],s=r[3];return{red:a,green:l,blue:o,alpha:An(s,n)}}i(303);function wn(e){var n=e.value,i=e.onChange,r=e.alwGradient,a=function(e){var n=(0,s.useState)(e),i=n[0],t=n[1],r=(0,s.useRef)(null),a=function(e){"Escape"===e.key&&t(!1)},l=function(e){r.current&&!r.current.contains(e.target)&&t(!1)};return(0,s.useEffect)((function(){return document.addEventListener("keydown",a,!0),document.addEventListener("click",l,!0),function(){document.removeEventListener("keydown",a,!0),document.removeEventListener("click",l,!0)}})),{ref:r,isComponentVisible:i,setIsComponentVisible:t}}(!1),l=a.ref,o=a.isComponentVisible,c=a.setIsComponentVisible,u=(0,s.useState)(!1),m=u[0],p=u[1],h=!1,g={red:0,green:0,blue:0,alpha:0};if(void 0===n||n.match(/gradient/g)||"#"===(null==n?void 0:n[0])){if("#"===(null==n?void 0:n[0]))g=Sn(n);else if(void 0!==n){h=!0;var f=1,x=n.split(","),b={degree:0,type:"linear",points:[]};for(x[0].match(/radial/g)&&(b.type="radial",f=0);f<x.length-1;f+=4){var v={};v.red=parseInt(x[f].replace(/\D/g,""),10),v.green=parseInt(x[f+1],10),v.blue=parseInt(x[f+2],10);var _=x[f+3].split(")"),j=_[0],N=_[1];v.alpha=parseInt(j,10),v.left=parseInt(N,10),b.points.push((0,t.Z)({},v))}b.degree=Number(x[0].replace(/\D/g,"")),g=b}}else{var y=n.replace(/!important|rgba?|\(|\)/g,"").split(","),C=y[0],A=y[1],S=y[2],w=y[3];g={red:Number(C),green:Number(A),blue:Number(S),alpha:Number(w)}}return(0,B.jsxs)("div",{ref:l,className:"pos-rel",children:[(0,B.jsx)("div",{"aria-label":"color picker",title:(0,d.__)("Color Picker","bitform"),onClick:function(){return c(!o)},onKeyPress:function(){return c(!o)},tabIndex:"0",role:"button",className:"br-50 clr-pick",style:{background:n.replace("!important","")}}),(0,B.jsx)(fn.Z,{in:o,timeout:150,classNames:"btc-pk",unmountOnExit:!0,onEntered:function(){return h&&p(!0)},onExit:function(){return p(!1)},children:(0,B.jsx)("div",{className:"pos-rel",children:(0,B.jsxs)("div",{className:"btc-pick",children:[(0,B.jsxs)("div",{className:"txt-center",children:[(0,B.jsx)("button",{onClick:function(){return p(!1)},className:"btcd-btn-sm btn mr-1 "+(m?"btcd-btn-o-blue":"blue"),type:"button",children:(0,d.__)("Solid","bitform")}),r&&(0,B.jsx)("button",{onClick:function(){return p(!0)},className:"btcd-btn-sm btn "+(m?"blue":"btcd-btn-o-blue"),type:"button",children:(0,d.__)("Gradient","bitform")})]}),(0,B.jsx)(yn.z,(0,t.Z)({onChange:i,onEndChange:i},h&&{gradient:g},!h&&{color:g},{isGradient:m}))]})})})]})}function In(e){var n=e.className,i=e.value,t=e.step,r=e.onChange,a=e.maxRange,l=e.minRange,o=e.info,c=e.unit,d=e.master;i=i.replace(/px|em|rem|!important|%/g,"").split(" ");var u=(0,s.useState)(0===i.reduce((function(e,n){return n-e}))?i[0]:""),m=u[0],p=u[1],h=function(e){return t&&parseFloat(t)%1!==0?parseFloat(e).toFixed(2):parseInt(e,10)};return(0,B.jsxs)("div",{className:n,children:[i&&d&&(0,B.jsx)(kn,{step:t,icn:o[o.length-1].icn,lbl:o[o.length-1].lbl,action:function(e){i.fill(e.target.value),r(i.join(c+" ")+c),p(e.target.value)},rVal:h(m),unit:c,max:a,min:l,parseNumber:h}),i&&i.length>0&&i.map((function(e,n){return(0,B.jsx)(kn,{icn:o[n].icn,lbl:o[n].lbl,action:function(e){return t=e.target.value,i[n]=t,r(i.join(c+" ")+c),void p("");var t},rVal:h(e),unit:c,max:a,min:l,parseNumber:h,step:t},o[n].lbl)}))]})}wn.defaultProps={alwGradient:!0},In.defaultProps={unit:"",master:!0,minRange:0,step:1};var kn=function(e){var n=e.icn,i=e.lbl,t=e.action,r=e.rVal,a=e.unit,l=e.max,o=e.min,s=e.parseNumber,c=e.step;return(0,B.jsxs)("div",{className:"flx flx-between mt-1 inp-grp",children:[(0,B.jsx)("span",{className:"icn tooltip pos-rel br-50 flx mr-1",style:{"--tooltip-txt":'"'+i+'"',"--tt-left":"100%"},children:n}),(0,B.jsx)("input",{step:c,title:i+" "+r+" "+a,onChange:t,className:"btc-range mr-1",type:"range",min:o,max:l,value:r}),(0,B.jsx)("input",{step:c,onChange:t,className:"ml-1",type:"number",placeholder:"auto",value:s(r),min:"0"})]})};function Rn(e){var n=e.btns,i=e.value,t=e.onChange,r=e.className;return(0,B.jsx)("div",{className:"btc-btn-grp flx "+r,children:n.map((function(e){return(0,B.jsx)("button",{onClick:function(){return t(e.lbl)},className:"tooltip "+(i===e.lbl&&"active"),style:{"--tooltip-txt":'"'+e.lbl+'"'},type:"button",children:e.icn},e.lbl)}))})}function En(e){var n=(0,s.useState)("Default"),i=n[0],t=n[1],r=(0,s.useState)(e||""),a=r[0],l=r[1];return[i,a,function(n){if(t(n),"Default"===n&&l(e.replace(/:focus|:hover/g,"")),"On Mouse Over"===n)if(e.match(/,/g)){var i=e.split(",");l(i.join(":hover,")+":hover")}else l(e+":hover");if("On Focus"===n)if(e.match(/,/g)){var r=e.split(",");l(r.join(":focus,")+":focus")}else l(e+":focus")}]}function Un(e){var n=e.brkPoint,i=e.setResponsiveView;return(0,B.jsx)("div",{className:"resp-btn pos-rel flx",children:[{lbl:"sm",icn:"phone_android",tip:(0,d.__)("Phone View","bitform")},{lbl:"md",icn:"tablet_android",tip:(0,d.__)("Tablet View","bitform")},{lbl:"lg",icn:"laptop_mac",tip:(0,d.__)("Laptop View","bitform")}].map((function(e){return(0,B.jsx)("button",{title:e.tip,onClick:function(){return i(e.lbl)},className:"br-50 flx mr-1 "+(e.lbl===n&&"blue"),type:"button","aria-label":"reponcive view",children:(0,B.jsx)("span",{className:"btcd-icn icn-"+e.icn})},e.icn)}))})}var Tn=i(3921);function Ln(e){var n=e.h,i=e.w,t=e.className,r=e.style;return(0,B.jsx)("svg",{width:i,height:n,className:t,style:r,viewBox:"0 0 189.2 189.2",children:(0,B.jsx)("path",{className:"fill-icn",d:"M178.1,67.7l-56.6-56.6C114.3,4,104.8,0,94.6,0C84.5,0,74.9,4,67.7,11.1L11.1,67.7C4,74.9,0,84.5,0,94.6s4,19.7,11.1,26.9 l56.6,56.6c7.2,7.2,16.7,11.1,26.9,11.1c10.1,0,19.7-4,26.9-11.1l56.6-56.6c7.2-7.2,11.1-16.7,11.1-26.9S185.3,74.9,178.1,67.7z M166.8,110.2l-56.6,56.6c-4.2,4.2-9.7,6.4-15.6,6.4c-5.9,0-11.4-2.3-15.6-6.4l-56.6-56.6c-4.2-4.2-6.4-9.7-6.4-15.6 s2.3-11.4,6.4-15.6l56.6-56.6c4.2-4.2,9.7-6.4,15.6-6.4c5.9,0,11.4,2.3,15.6,6.4l56.6,56.6c4.2,4.2,6.4,9.7,6.4,15.6 S170.9,106,166.8,110.2z M119.6,89.1c2.2,4.9,3.7,10.1,3.7,15.5c0.1,12.8-7.8,23.5-20.2,26.8c-11.1,3-21.2,0.8-29.6-7.4 c-6.3-6.2-8.3-13.9-7.5-22.5c0.5-6,3.1-11.5,5.7-16.8c6.1-12.6,13.6-24.3,21.7-35.6c0.3-0.4,0.6-0.8,1.2-1.4 c1.2,1.7,2.3,3.2,3.4,4.7C106.2,64.1,113.7,76.1,119.6,89.1z"})})}function On(){return(0,B.jsx)("svg",{className:"btc-line-icn",viewBox:"0 0 170.2 170.2",children:(0,B.jsx)("path",{className:"line-icn",style:{strokeMiterlimit:10},d:"M139.6,30.6c30.1,30.1,30.1,78.9,0,109s-78.9,30.1-109,0s-30.1-78.9,0-109S109.5,0.5,139.6,30.6z M31.1,139.1 l108-108"})})}function Mn(){return(0,B.jsx)("svg",{className:"btc-line-icn",viewBox:"0 0 136.4 140.1",children:(0,B.jsx)("path",{className:"line-icn",style:{strokeMiterlimit:10},d:"M24.2,9.8v110.3 M5.7,30.3L30.3,5.7 M43.3,30.3L18.6,5.7 M126.6,115.4H16.3 M106.1,96.8l24.7,24.7 M130.7,109.8 l-24.7,24.7"})})}function Dn(e){var n=e.h,i=e.w,t=e.className,r=e.style;return(0,B.jsx)("svg",{width:i,height:n,className:t,style:r,viewBox:"0 0 171.2 171.2",children:(0,B.jsx)("path",{className:"fill-icn",d:"M176.2,88.2c0,2.2-1.3,4.3-3.9,6.3c-3.7,2.9-7.6,5.8-11.3,8.5c-3.5,2.6-7.1,5.3-10.6,8c-5.5,4.2-9.1,1-10.4-0.6 c-1.3-1.6-1.9-3.3-1.7-5c0.2-1.9,1.4-3.7,3.5-5.4c2-1.6,4-3.1,6.2-4.8H95.3v52.6c1.4-1.9,2.8-3.6,4.2-5.5c1.4-2,3.3-4,5.9-4.3 c1.7-0.2,3.4,0.3,5.1,1.7c2,1.6,4.7,5.2,0.3,10.9c-3,3.9-6,7.8-8.8,11.7c-2.4,3.2-4.9,6.6-7.4,9.8c-2.1,2.7-4.2,4-6.4,4c0,0,0,0,0,0 c-2.2,0-4.3-1.3-6.3-3.9c-2.9-3.7-5.8-7.6-8.5-11.3c-2.6-3.5-5.3-7.1-8-10.6c-4.2-5.5-1-9.1,0.6-10.4c1.6-1.3,3.3-1.9,5-1.7 c1.9,0.2,3.7,1.4,5.4,3.5c1.6,2,3.1,4,4.8,6.2V95.3H28.3c1.9,1.5,3.8,2.9,5.6,4.3c1.8,1.4,3.7,3.1,4.1,5.6c0.2,1.7-0.3,3.3-1.5,4.9 c-1.3,1.7-2.8,2.6-4.5,2.9c-2.6,0.3-4.9-1.1-6.3-2.3c-4-3.1-8-6.1-12-9.1c-3.2-2.4-6.3-4.8-9.5-7.2C2.3,93.2,0,91.1,0,88.1 c0-2.2,1.3-4.2,3.9-6.2C8.4,78.4,13,75,17.4,71.6c2.8-2.1,5.6-4.2,8.4-6.3c2.4-1.8,4.5-2.5,6.5-2.2c1.7,0.2,3.2,1.2,4.4,2.8 c1.2,1.6,1.7,3.3,1.4,5c-0.4,2.6-2.5,4.5-4.1,5.6c-1.9,1.4-3.8,2.9-5.8,4.4h52.6V28.2c-1.5,1.9-2.9,3.8-4.3,5.6 c-1,1.4-2.3,2.8-4.1,3.6c-1.5,0.6-3.8,1-6.5-1.1c-1.7-1.3-2.6-2.8-2.9-4.5c-0.3-2.6,1.1-4.9,2.3-6.3c3.1-4,6.1-8,9.1-12 c2.4-3.2,4.8-6.3,7.2-9.5C82.9,2.3,85.1,0,88,0c0,0,0,0,0,0c2.2,0,4.2,1.3,6.2,3.9c3.5,4.5,6.9,9.1,10.2,13.5 c2.1,2.8,4.2,5.6,6.3,8.4c1.8,2.4,2.5,4.5,2.2,6.5c-0.2,1.7-1.2,3.2-2.8,4.4c-1.6,1.2-3.3,1.7-5,1.4c-2.6-0.4-4.4-2.5-5.6-4.1 c-1.4-1.9-2.9-3.8-4.4-5.8v52.6h52.6c-1.9-1.4-3.6-2.8-5.5-4.2c-2-1.4-4-3.3-4.3-5.9c-0.2-1.7,0.3-3.4,1.7-5.1 c1.6-2,5.2-4.7,10.9-0.3c3.8,3,7.8,6,11.7,8.8c3.2,2.4,6.6,4.9,9.8,7.4C174.8,83.9,176.2,85.9,176.2,88.2z"})})}function Bn(){return(0,B.jsx)("svg",{className:"btc-line-icn",viewBox:"0 0 111.6 180.6",children:(0,B.jsx)("path",{className:"line-icn",d:"M50.9,0c2.2,3,4.1,5.6,6,8.3C71.3,29,84.6,50.4,95.1,73.4c4,8.7,6.5,17.9,6.6,27.5c0.2,22.7-13.8,41.6-35.7,47.5 c-19.7,5.3-37.5,1.4-52.4-13.1C2.4,124.3-1.1,110.5,0.3,95.4c1-10.7,5.5-20.3,10.1-29.8c10.7-22.3,24.1-43,38.5-63.1 C49.4,1.8,50,1.1,50.9,0z"})})}function Pn(e){var n,i,t,r,a,l,o,c,u,m,p,h,g,f,x,b,v,_=e.style,j=e.cls,N=e.styleConfig,y=e.styleDispatch,C=e.brkPoint,A=e.setResponsiveView,S=En(j),w=S[0],I=S[1],k=S[2],R=(null==_||null==(n=_[I])?void 0:n["background-color"])||(null==_||null==(i=_[j])?void 0:i["background-color"]);if(null!=_&&null!=(t=_[I])&&t["background-image"]&&null!=_&&null!=(r=_[I])&&r["background-image"].indexOf("gradient"))R=null==_||null==(v=_[I])?void 0:v["background-image"];else if(null!=_&&null!=(a=_[j])&&a["background-image"]&&null!=_&&null!=(l=_[j])&&l["background-image"].indexOf("gradient")){var E;R=null==_||null==(E=_[j])?void 0:E["background-image"]}var U=R?"Color":"None",T=(null==_||null==(o=_[I])?void 0:o["background-blend-mode"])||(null==_||null==(c=_[j])?void 0:c["background-blend-mode"]),L=(null==_||null==(u=_[I])?void 0:u["background-repeat"])||(null==_||null==(m=_[j])?void 0:m["background-repeat"]),O=(null==_||null==(p=_[I])?void 0:p["background-position"])||(null==_||null==(h=_[j])?void 0:h["background-position"])||"0% 0%",M=(null==_||null==(g=_[I])?void 0:g["background-size"])||(null==_||null==(f=_[j])?void 0:f["background-size"])||"auto auto",D=(null==_||null==(x=_[I])?void 0:x["backdrop-filter"])||(null==_||null==(b=_[j])?void 0:b["backdrop-filter"])||"",P=(0,s.useState)(""),X=P[0],z=P[1],Z=(0,s.useState)(""),H=Z[0],G=Z[1],F=(0,s.useState)(""),V=F[0],K=F[1];(0,s.useEffect)((function(){var e,n,i="None";null!=_&&null!=(e=_[j])&&e["background-image"]&&(G(_[j]["background-image"].replace(/^url\(|\)$/g,"")),i=null!=(n=_[j])&&n["background-image"].match(new RegExp(window.origin,"g"))?"Upload":"Link");z(i)}),[j,_]);var W=function(e,n){var i={apply:[{cls:I,property:e,delProp:!1,value:n}],brkPoint:C};"None"===n&&(i.apply[0].delProp=!0),y(i)},$=function(e,n){var i=D,t=!1;e.target.checked?i+=" "+n:""!==(i=(i=i.replace(new RegExp(e.target.value.toLowerCase()+"\\(\\d+(px|%)\\)","g"),"")).trim())&&void 0!==i||(t=!0),y({apply:[{cls:I,property:"backdrop-filter",delProp:t,value:i},{cls:I,property:"-webkit-backdrop-filter",delProp:t,value:i}],brkPoint:C})},q=function(e,n){var i=e+"("+n+")",t=D;t=t.replace(new RegExp(e+"\\(\\d+(px|%)\\)","g"),i),y({apply:[{cls:I,property:"backdrop-filter",delProp:!1,value:t},{cls:I,property:"-webkit-backdrop-filter",delProp:!1,value:t}],brkPoint:C})};return(0,B.jsxs)(xn,{className:"style-acc w-9",title:(0,d.__)("Background","bitform"),children:[("hover"in N||"focus"in N||"responsive"in N)&&(0,B.jsxs)("div",{className:"flx flx-between",children:["responsive"in N&&(0,B.jsx)(Un,{brkPoint:C,setResponsiveView:A}),("hover"in N||"focus"in N)&&(0,B.jsx)(Rn,{className:"txt-center",value:w,onChange:k,btns:[{lbl:"Default",icn:"Default"}].concat("hover"in N?[{lbl:"On Mouse Over",icn:"Hover"}]:[],"focus"in N?[{lbl:"On Focus",icn:"Focus"}]:[])})]}),(0,B.jsxs)("div",{className:"flx flx-between mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Background Color","bitform")}),(0,B.jsx)(Rn,{value:U,onChange:function(e){var n,i,t={apply:[{cls:I,property:"background-color",delProp:!1,value:"rgba(242, 246, 249, 1)"}],brkPoint:C};"None"===e&&(t.apply[0].delProp=!0,null!=(n=_[j])&&null!=(i=n["background-image"])&&i.match(/gradient/g)&&t.apply.push({cls:I,property:"background-image",delProp:!0,value:"rgba(242, 246, 249, 1)"}));y(t)},btns:[{lbl:"Color",icn:(0,B.jsx)(Ln,{})},{lbl:"None",icn:(0,B.jsx)(On,{})}]})]}),"None"!==U&&(0,B.jsxs)("div",{className:"flx flx-between mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Color Fill","bitform")}),(0,B.jsx)(wn,{value:R,onChange:function(e){var n="background-color",i=N.important?e.style+"!important":e.style;"type"in e&&(n="background-image"),y({apply:[{cls:I,property:n,delProp:!1,value:i}],brkPoint:C})}})]}),"picture"in N&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{className:"flx flx-between mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Picture","bitform")}),(0,B.jsx)(Rn,{value:X,onChange:function(e){var n;"None"===e&&null!=(n=_[j])&&n["background-image"]?(y({apply:[{cls:I,property:"background-image",delProp:!0,value:""}],brkPoint:C}),z(e)):z(e)},btns:[{lbl:"Upload",icn:"Upload"},{lbl:"Link",icn:"Link"},{lbl:"None",icn:"None"}]})]}),"Upload"===X&&(0,B.jsxs)("div",{children:[(0,B.jsxs)("div",{className:"flx flx-between mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Picture Upload","bitform")}),(0,B.jsx)("button",{onClick:function(){if("undefined"!==typeof wp&&wp.media){var e=wp.media({title:"Media",button:{text:"Select picture"},library:{type:"image"},multiple:!1});e.on("select",(function(){var n=e.state().get("selection").first().toJSON(),i="url('"+n.url+"')";n.filesizeInBytes>512e3&&K("⚠ Larger size image might slow down this form load time"),y({apply:[{cls:j,property:"background-image",delProp:!1,value:i}],brkPoint:C})})),e.open()}},className:"btn",type:"button",children:(0,d.__)("Browse...","bitform")})]}),""!==V&&(0,B.jsx)("small",{className:"txt-center",style:{color:"#efbb28"},children:V})]}),"Link"===X&&(0,B.jsxs)("div",{children:[(0,B.jsxs)("div",{className:"flx flx-between mt-2",children:[(0,B.jsxs)("span",{className:"f-5",children:[(0,d.__)("Link:","bitform")," "]}),(0,B.jsx)("input",{defaultValue:H,onChange:function(e){var n=new Image;n.src=e.target.value,n.addEventListener("load",(function(){K("⚠ Larger size image might slow down this form load time")}));var i="url("+e.target.value+")";y({apply:[{cls:I,property:"background-image",delProp:!1,value:i}],brkPoint:C})},className:"btcd-paper-inp ml-1",type:"text",placeholder:(0,d.__)("Image Link....","bitform")})]}),""!==V&&(0,B.jsx)("small",{className:"txt-center",style:{color:"#efbb28"},children:V})]}),(0,B.jsxs)("div",{className:"flx flx-between mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Background Blend Mode","bitform")}),(0,B.jsxs)("select",{value:T,onChange:function(e){return W("background-blend-mode",e.target.value)},className:"btcd-paper-inp w-5",children:[(0,B.jsx)("option",{value:"None",children:(0,d.__)("None","bitform")}),(0,B.jsx)("option",{value:"multiply",children:(0,d.__)("Multiply","bitform")}),(0,B.jsx)("option",{value:"screen",children:(0,d.__)("Screen","bitform")}),(0,B.jsx)("option",{value:"overlay",children:(0,d.__)("Overlay","bitform")}),(0,B.jsx)("option",{value:"darken",children:(0,d.__)("Darken","bitform")}),(0,B.jsx)("option",{value:"lighten",children:(0,d.__)("Lighten","bitform")}),(0,B.jsx)("option",{value:"color=dodge",children:(0,d.__)("Color-dodge","bitform")}),(0,B.jsx)("option",{value:"saturation",children:(0,d.__)("Saturation","bitform")}),(0,B.jsx)("option",{value:"color",children:(0,d.__)("Color","bitform")}),(0,B.jsx)("option",{value:"luminosity",children:(0,d.__)("Luminosity","bitform")})]})]}),(0,B.jsxs)("div",{className:"flx flx-between mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Background Img Repeat","bitform")}),(0,B.jsxs)("select",{value:L,onChange:function(e){return W("background-repeat",e.target.value)},className:"btcd-paper-inp w-5",children:[(0,B.jsx)("option",{value:"None",children:(0,d.__)("None","bitform")}),(0,B.jsx)("option",{value:"repeat",children:(0,d.__)("Repeat","bitform")}),(0,B.jsx)("option",{value:"repeat-x",children:(0,d.__)("Repeat-X","bitform")}),(0,B.jsx)("option",{value:"repeat-y",children:(0,d.__)("Repeat-Y","bitform")}),(0,B.jsx)("option",{value:"no-repeat",children:(0,d.__)("Np Repeat","bitform")}),(0,B.jsx)("option",{value:"space",children:(0,d.__)("Space","bitform")}),(0,B.jsx)("option",{value:"round",children:(0,d.__)("Round","bitform")})]})]}),(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Background Img Position","bitform")}),(0,B.jsx)(In,{info:[{icn:(0,B.jsx)("i",{className:"font-w-m",children:"X"}),lbl:"BG Position X"},{icn:(0,B.jsx)("i",{className:"font-w-m",children:"Y"}),lbl:"BG Position Y"},{icn:(0,B.jsx)(Mn,{}),lbl:"XY Both"}],className:"btc-range",unit:"%",maxRange:100,minRange:-10,value:O,onChange:function(e){return W("background-position",e)}})]}),(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Background Img Size","bitform")}),(0,B.jsx)(In,{info:[{icn:(0,B.jsx)("i",{className:"font-w-m",children:"H"}),lbl:(0,d.__)("BG Width","bitform")},{icn:(0,B.jsx)("i",{className:"font-w-m",children:"w"}),lbl:(0,d.__)("BG Height","bitform")},{icn:(0,B.jsx)(Dn,{}),lbl:(0,d.__)("BG Height/Width","bitform")}],className:"btc-range",unit:"%",maxRange:100,value:M,onChange:function(e){return W("background-size",e)}})]})]}),"backdropFilter"in N&&(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Background Filter","bitform")}),(0,B.jsxs)("div",{className:"mt-2 col-2",style:{columnWidth:110},children:[(0,B.jsx)(Tn.Z,{onChange:function(e){return $(e,"blur(5px)")},checked:null!==D.match(/blur/g),value:"Blur",className:"mr-1 mt-1",title:(0,d.__)("Blur","bitform")}),(0,B.jsx)(Tn.Z,{onChange:function(e){return $(e,"brightness(120%)")},checked:null!==D.match(/brightness/g),value:"Brightness",className:"mr-1 mt-1",title:(0,d.__)("Brightness","bitform")}),(0,B.jsx)(Tn.Z,{onChange:function(e){return $(e,"contrast(10%)")},checked:null!==D.match(/contrast/g),value:"Contrast",className:"mr-1 mt-1",title:(0,d.__)("Contrast","bitform")}),(0,B.jsx)(Tn.Z,{onChange:function(e){return $(e,"grayscale(50%)")},checked:null!==D.match(/grayscale/g),value:"Grayscale",className:"mr-1 mt-1",title:(0,d.__)("Grayscale","bitform")}),(0,B.jsx)(Tn.Z,{onChange:function(e){return $(e,"invert(10%)")},checked:null!==D.match(/invert/g),value:"Invert",className:"mr-1 mt-1",title:(0,d.__)("Invert","bitform")}),(0,B.jsx)(Tn.Z,{onChange:function(e){return $(e,"opacity(10%)")},checked:null!==D.match(/opacity/g),value:"Opacity",className:"mr-1 mt-1",title:(0,d.__)("Opacity","bitform")}),(0,B.jsx)(Tn.Z,{onChange:function(e){return $(e,"sepia(10%)")},checked:null!==D.match(/sepia/g),value:"Sepia",className:"mr-1 mt-1",title:(0,d.__)("Sepia","bitform")}),(0,B.jsx)(Tn.Z,{onChange:function(e){return $(e,"saturate(110%)")},checked:null!==D.match(/saturate/g),value:"Saturate",className:"mr-1 mt-1",title:(0,d.__)("Saturate","bitform")})]}),(null==D?void 0:D.match(/blur/g))&&(0,B.jsx)(In,{info:[{icn:(0,B.jsx)(Bn,{}),lbl:"Blur"}],className:"btc-range",unit:"px",master:!1,maxRange:50,value:D.match(/blur\(\d+(px|%)\)/g)[0].match(/\d+/g)[0],onChange:function(e){return q("blur",e)}}),(null==D?void 0:D.match(/brightness/g))&&(0,B.jsx)(In,{info:[{icn:(0,B.jsx)("b",{children:"B"}),lbl:"Brightness"}],className:"btc-range",unit:"%",master:!1,maxRange:200,value:D.match(/brightness\(\d+(px|%)\)/g)[0].match(/\d+/g)[0],onChange:function(e){return q("brightness",e)}}),(null==D?void 0:D.match(/contrast/g))&&(0,B.jsx)(In,{info:[{icn:(0,B.jsx)("b",{children:"C"}),lbl:"contrast"}],className:"btc-range",master:!1,unit:"%",maxRange:200,value:D.match(/contrast\(\d+(px|%)\)/g)[0].match(/\d+/g)[0],onChange:function(e){return q("contrast",e)}}),(null==D?void 0:D.match(/grayscale/g))&&(0,B.jsx)(In,{info:[{icn:(0,B.jsx)("b",{children:"G"}),lbl:"grayscale"}],className:"btc-range",unit:"%",master:!1,maxRange:100,value:D.match(/grayscale\(\d+(px|%)\)/g)[0].match(/\d+/g)[0],onChange:function(e){return q("grayscale",e)}}),(null==D?void 0:D.match(/invert/g))&&(0,B.jsx)(In,{info:[{icn:(0,B.jsx)("b",{children:"I"}),lbl:"invert"}],className:"btc-range",unit:"%",master:!1,maxRange:100,value:D.match(/invert\(\d+(px|%)\)/g)[0].match(/\d+/g)[0],onChange:function(e){return q("invert",e)}}),(null==D?void 0:D.match(/opacity/g))&&(0,B.jsx)(In,{info:[{icn:(0,B.jsx)("b",{children:"O"}),lbl:"opacity"}],className:"btc-range",master:!1,unit:"%",maxRange:200,value:D.match(/opacity\(\d+(px|%)\)/g)[0].match(/\d+/g)[0],onChange:function(e){return q("opacity",e)}}),(null==D?void 0:D.match(/sepia/g))&&(0,B.jsx)(In,{info:[{icn:(0,B.jsx)("b",{children:"S"}),lbl:"sepia"}],className:"btc-range",master:!1,unit:"%",maxRange:100,value:D.match(/sepia\(\d+(px|%)\)/g)[0].match(/\d+/g)[0],onChange:function(e){return q("sepia",e)}}),(null==D?void 0:D.match(/saturate/g))&&(0,B.jsx)(In,{info:[{icn:(0,B.jsx)("b",{children:"S"}),lbl:"saturate"}],className:"btc-range",master:!1,unit:"%",maxRange:200,value:D.match(/saturate\(\d+(px|%)\)/g)[0].match(/\d+/g)[0],onChange:function(e){return q("saturate",e)}})]})]})}function Xn(){return(0,B.jsxs)("svg",{className:"btc-line-icn",viewBox:"0 0 175.7 66.1",children:[(0,B.jsx)("g",{children:(0,B.jsx)("polygon",{className:"fill-icn",points:"175.6,20 0,19.3 0.2,0 175.7,0.7"})}),(0,B.jsx)("g",{children:(0,B.jsx)("polygon",{className:"fill-icn",points:"175.6,66.1 0,65.4 0.2,46.2 175.7,46.9"})})]})}function zn(){return(0,B.jsxs)("svg",{className:"btc-line-icn",viewBox:"0 0 184.6 39.8",children:[(0,B.jsx)("rect",{className:"fill-icn",width:"30.6",height:"39.8"}),(0,B.jsx)("rect",{className:"fill-icn",x:"51.3",width:"30.6",height:"39.8"}),(0,B.jsx)("rect",{className:"fill-icn",x:"102.6",width:"30.6",height:"39.8"}),(0,B.jsx)("rect",{className:"fill-icn",x:"154",width:"30.6",height:"39.8"})]})}function Zn(){return(0,B.jsx)("svg",{className:"btc-line-icn",viewBox:"-10 0 200 45",children:(0,B.jsx)("path",{className:"fill-icn",d:"M22.2,45.5L22.2,45.5C10,45.5,0,35.5,0,23.2l0-1C0,10,10,0,22.2,0h0c12.3,0,22.2,10,22.2,22.2v1 C44.5,35.5,34.5,45.5,22.2,45.5z M115.6,23.2v-1C115.6,10,105.7,0,93.4,0h0C81.1,0,71.1,10,71.1,22.2v1c0,12.3,10,22.2,22.2,22.2h0 C105.7,45.5,115.6,35.5,115.6,23.2z M186.7,23.2v-1c0-12.3-10-22.2-22.2-22.2h0c-12.3,0-22.2,10-22.2,22.2v1 c0,12.3,10,22.2,22.2,22.2h0C176.8,45.5,186.7,35.5,186.7,23.2z"})})}function Hn(){return(0,B.jsx)("svg",{className:"btc-line-icn",viewBox:"0 0 175.7 28",children:(0,B.jsx)("g",{children:(0,B.jsx)("rect",{className:"fill-icn",x:"74.4",y:"-73.8",transform:"matrix(5.695473e-03 -1 1 5.695473e-03 73.3645 101.7836)",width:"27",height:"175.6"})})})}function Gn(e){var n,i,t,r,a,l,o,s,c,u,m=e.style,p=e.cls,h=e.styleConfig,g=e.styleDispatch,f=e.brkPoint,x=e.setResponsiveView,b=En(p),v=b[0],_=b[1],j=b[2],N=(null==m||null==(n=m[_])||null==(i=n["border-style"])?void 0:i.replace(/!important/g,""))||(null==m||null==(t=m[p])||null==(r=t["border-style"])?void 0:r.replace(/!important/g,""))||"None",y=(null==m||null==(a=m[_])?void 0:a["border-color"])||(null==m||null==(l=m[p])?void 0:l["border-color"]),C=(null==m||null==(o=m[_])?void 0:o["border-width"])||(null==m||null==(s=m[p])?void 0:s["border-width"]),A=(null==m||null==(c=m[_])?void 0:c["border-radius"])||(null==m||null==(u=m[p])?void 0:u["border-radius"]);C=(0,M.Y5)(C),A=(0,M.Y5)(A);var S=function(e,n){var i=h.important?n+"!important":n;g({apply:[{cls:_,property:e,delProp:!1,value:i}],brkPoint:f})};return(0,B.jsxs)(xn,{className:"style-acc w-9",title:(0,d.__)("Border","bitform"),children:[("hover"in h||"focus"in h||"responsive"in h)&&(0,B.jsxs)("div",{className:"flx flx-between",children:["responsive"in h&&(0,B.jsx)(Un,{brkPoint:f,setResponsiveView:x}),(0,B.jsx)(Rn,{className:"txt-center",value:v,onChange:j,btns:[{lbl:"Default",icn:"Default"}].concat("hover"in h?[{lbl:"On Mouse Over",icn:"Hover"}]:[],"focus"in h?[{lbl:"On Focus",icn:"Focus"}]:[])})]}),(0,B.jsxs)("div",{className:"flx flx-between mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Type","bitform")}),(0,B.jsx)(Rn,{value:N,onChange:function(e){var n=[{cls:_,property:"border-style",delProp:!1,value:"solid"},{cls:_,property:"border-width",delProp:!1,value:"1px 1px 1px 1px"},{cls:_,property:"border-color",delProp:!1,value:"rgba(0, 0, 0, 1)"},{cls:_,property:"border-radius",delProp:!1,value:"0px 0px 0px 0px"}];if("None"===e&&null!=m&&m[_])n[0].delProp=!0,n[1].delProp=!0,n[2].delProp=!0,n[3].delProp=!0;else{var i,t,r,a,l,o;if(n[0].value=h.important?e+"!important":e,null!=m&&null!=(i=m[_])&&i["border-width"])n[1].value=null==m||null==(a=m[_])?void 0:a["border-width"];if(null!=m&&null!=(t=m[_])&&t["border-color"])n[2].value=null==m||null==(l=m[_])?void 0:l["border-color"];if(null!=m&&null!=(r=m[_])&&r["border-radius"])n[3].value=null==m||null==(o=m[_])?void 0:o["border-radius"]}g({apply:n,brkPoint:f})},btns:[{lbl:"solid",icn:(0,B.jsx)(Hn,{})},{lbl:"dotted",icn:(0,B.jsx)(Zn,{})},{lbl:"dashed",icn:(0,B.jsx)(zn,{})},{lbl:"double",icn:(0,B.jsx)(Xn,{})},{lbl:"None",icn:(0,B.jsx)(On,{})}]})]}),y&&(0,B.jsxs)("div",{className:"flx flx-between mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Border Color","bitform")}),(0,B.jsx)(wn,{alwGradient:!1,value:y,onChange:function(e){return S("border-color",e.style)}})]}),h.width&&C&&(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Border Width","bitform")}),(0,B.jsx)(In,{info:[{icn:(0,B.jsx)(jn,{borderWidth:"3px 1px 1px 1px"}),lbl:"Border Top"},{icn:(0,B.jsx)(jn,{borderWidth:"1px 3px 1px 1px"}),lbl:"Border Right"},{icn:(0,B.jsx)(jn,{borderWidth:"1px 1px 3px 1px"}),lbl:"Border Bottom"},{icn:(0,B.jsx)(jn,{borderWidth:"1px 1px 1px 3px"}),lbl:"Border Left"},{icn:(0,B.jsx)(jn,{borderWidth:"3px 3px 3px 3px"}),lbl:"All Side"}],className:"btc-range",unit:"px",maxRange:20,value:C,onChange:function(e){return S("border-width",e)}})]}),h.radius&&A&&(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Border Radius","bitform")}),(0,B.jsx)(In,{info:[{icn:(0,B.jsx)(jn,{borderRadius:"6px 1px 1px 1px"}),lbl:"Radius Top Left"},{icn:(0,B.jsx)(jn,{borderRadius:"1px 6px 1px 1px"}),lbl:"Radius Top Right"},{icn:(0,B.jsx)(jn,{borderRadius:"1px 1px 6px 1px"}),lbl:"Radius Bottom Right"},{icn:(0,B.jsx)(jn,{borderRadius:"1px 1px 1px 6px"}),lbl:"Radius Bottom Left"},{icn:(0,B.jsx)(jn,{}),lbl:"All Side"}],className:"btc-range",unit:"px",maxRange:30,value:A,onChange:function(e){return S("border-radius",e)}})]})]})}function Fn(e){var n,i=e.style,t=e.cls,r=e.styleConfig,a=e.styleDispatch,l=e.brkPoint,o=e.setResponsiveView,s=(null==i||null==(n=i[t])?void 0:n.padding)||"0px 0px 0px 0px";s=(0,M.Y5)(s);return(0,B.jsxs)(xn,{className:"style-acc w-9",title:(0,d.__)("Padding","bitform"),children:["responsive"in r&&(0,B.jsx)(Un,{brkPoint:l,setResponsiveView:o}),(0,B.jsx)(In,{info:[{icn:(0,B.jsx)(jn,{borderWidth:"3px 1px 1px 1px"}),lbl:(0,d.__)("Padding Top","bitform")},{icn:(0,B.jsx)(jn,{borderWidth:"1px 3px 1px 1px"}),lbl:(0,d.__)("Padding Right","bitform")},{icn:(0,B.jsx)(jn,{borderWidth:"1px 1px 3px 1px"}),lbl:(0,d.__)("Padding Bottom","bitform")},{icn:(0,B.jsx)(jn,{borderWidth:"1px 1px 1px 3px"}),lbl:(0,d.__)("Padding Left","bitform")},{icn:(0,B.jsx)(jn,{borderWidth:"3px 3px 3px 3px"}),lbl:(0,d.__)("All Side","bitform")}],className:"btc-range",unit:"px",maxRange:50,value:s,onChange:function(e){var n=r.important?e+"!important":e;a({apply:[{cls:t,property:"padding",delProp:!1,value:n}],brkPoint:l})}})]})}function Vn(e){var n,i=e.style,t=e.cls,r=e.styleConfig,a=e.styleDispatch,l=e.brkPoint,o=e.setResponsiveView,s=(null==i||null==(n=i[t])?void 0:n.margin)||"0px 0px 0px 0px";s=(0,M.Y5)(s);return(0,B.jsxs)(xn,{className:"style-acc w-9",title:(0,d.__)("Margin","bitform"),children:["responsive"in r&&(0,B.jsx)(Un,{brkPoint:l,setResponsiveView:o}),(0,B.jsx)(In,{info:[{icn:(0,B.jsx)(jn,{borderWidth:"3px 1px 1px 1px"}),lbl:(0,d.__)("Margin Top","bitform")},{icn:(0,B.jsx)(jn,{borderWidth:"1px 3px 1px 1px"}),lbl:(0,d.__)("Margin Right","bitform")},{icn:(0,B.jsx)(jn,{borderWidth:"1px 1px 3px 1px"}),lbl:(0,d.__)("Margin Bottom","bitform")},{icn:(0,B.jsx)(jn,{borderWidth:"1px 1px 1px 3px"}),lbl:(0,d.__)("Margin Left","bitform")},{icn:(0,B.jsx)(jn,{borderWidth:"3px 3px 3px 3px"}),lbl:(0,d.__)("All Side","bitform")}],className:"btc-range",unit:"px",maxRange:50,value:s,onChange:function(e){var n=r.important?e+"!important":e;a({apply:[{cls:t,property:"margin",delProp:!1,value:n}],brkPoint:l})}})]})}function Kn(){return(0,B.jsx)("svg",{className:"fill-icn",viewBox:"0 0 133 132.9",children:(0,B.jsx)("path",{d:"M0,132.9c0-13.3,0-26.5,0-39.7c4.4,0,8.7,0,13.1,0c0,5.5,0,11.1,0,17c0.6-0.5,1-0.7,1.3-1c9.4-9.4,18.7-18.8,28.1-28.1 c0.8-0.8,0.8-1.4,0.3-2.4c-4.1-8.1-4.1-16.3,0-24.4c0.4-0.8,0.7-1.4-0.2-2.3C33.1,42.5,23.6,33,14,23.4c-0.2-0.2-0.3-0.3-0.7-0.6 c0,5.7,0,11.3,0,16.9c-4.5,0-8.8,0-13.3,0C0,26.5,0,13.4,0,0c13.2,0,26.5,0,39.8,0c0,4.3,0,8.6,0,13.2c-5.5,0-11.1,0-17,0 c0.6,0.6,0.9,1,1.2,1.3c9.3,9.3,18.6,18.6,27.8,27.9c0.9,0.9,1.6,1,2.7,0.4c8.1-4,16.2-4,24.2,0c0.8,0.4,1.4,0.7,2.3-0.2 c9.5-9.5,19-19,28.5-28.5c0.2-0.2,0.4-0.4,0.7-0.9c-5.8,0-11.3,0-16.9,0c0-4.5,0-8.8,0-13.3c13.2,0,26.4,0,39.7,0 c0,13.3,0,26.5,0,39.8c-4.4,0-8.7,0-13.1,0c0-5.6,0-11.1,0-17c-0.6,0.5-1,0.8-1.4,1.2c-9.3,9.3-18.7,18.7-28,28 c-0.8,0.8-0.9,1.4-0.3,2.4c4.1,8.2,4.1,16.4,0,24.5c-0.4,0.8-0.5,1.4,0.2,2.1c9.6,9.5,19.1,19.1,28.6,28.6c0.2,0.2,0.3,0.3,0.7,0.6 c0-5.7,0-11.3,0-16.9c4.5,0,8.9,0,13.3,0c0,13.2,0,26.4,0,39.7c-13.3,0-26.5,0-39.8,0c0-4.4,0-8.7,0-13.1c5.6,0,11.1,0,17,0 c-0.5-0.6-0.7-1-1-1.3c-9.4-9.4-18.8-18.7-28.1-28.1c-0.7-0.7-1.3-0.9-2.3-0.4c-8.2,4.2-16.5,4.2-24.7,0c-0.7-0.4-1.3-0.6-2,0.2 c-9.6,9.7-19.2,19.3-28.9,28.9c-0.1,0.1-0.2,0.3-0.4,0.6c5.7,0,11.2,0,16.8,0c0,4.5,0,8.8,0,13.3C26.5,132.9,13.4,132.9,0,132.9z M53.2,66.5c0,7.3,6,13.3,13.4,13.3c7.3,0,13.2-6,13.2-13.2c0-7.3-5.9-13.4-13.3-13.4C59.2,53.2,53.2,59.2,53.2,66.5z"})})}function Wn(){return(0,B.jsxs)("svg",{className:"btc-line-icn",viewBox:"0 0 172.3 163.8",children:[(0,B.jsxs)("g",{children:[(0,B.jsx)("line",{className:"line-icn",x1:"55.3",y1:"108.5",x2:"5.7",y2:"158.1"}),(0,B.jsx)("polyline",{className:"line-icn",points:"62.8,132 63.2,100.6 32.6,100.2 "})]}),(0,B.jsxs)("g",{children:[(0,B.jsx)("line",{className:"line-icn",x1:"56.3",y1:"55.5",x2:"6.6",y2:"5.9"}),(0,B.jsx)("polyline",{className:"line-icn",points:"32.7,63 64.2,63.4 64.6,32.8 "})]}),(0,B.jsxs)("g",{children:[(0,B.jsx)("line",{className:"line-icn",x1:"117",y1:"55.3",x2:"166.6",y2:"5.7"}),(0,B.jsx)("polyline",{className:"line-icn",points:"109.5,31.8 109.1,63.2 139.7,63.6"})]}),(0,B.jsxs)("g",{children:[(0,B.jsx)("line",{className:"line-icn",x1:"116.7",y1:"108.3",x2:"166.3",y2:"157.9"}),(0,B.jsx)("polyline",{className:"line-icn",points:"140.2,100.8 108.7,100.4 108.3,131 "})]})]})}function $n(e){var n,i,t=e.style,r=e.cls,a=e.styleConfig,l=e.styleDispatch,o=e.brkPoint,s=e.setResponsiveView,c=En(r),u=c[0],m=c[1],p=c[2],h=(null==t||null==(n=t[m])?void 0:n["box-shadow"])||(null==t||null==(i=t[r])?void 0:i["box-shadow"]),g="",f="None",x="";if(void 0!==h){h.match(/inset/g)?(f="Inside",x="inset"):f="Outside";var b=h.replace("inset","").trim().split(" ");h=b.slice(0,4).join(" "),g=b.slice(4,b.length).join(" ")}var v=function(e){var n=a.important&&!e.match(/!important/g)?e+"!important":e;l({apply:[{cls:m,property:"box-shadow",delProp:!1,value:n}],brkPoint:o})};return(0,B.jsxs)(xn,{className:"style-acc w-9",title:(0,d.__)("Shadow","bitform"),children:[("hover"in a||"focus"in a||"responsive"in a)&&(0,B.jsxs)("div",{className:"flx flx-between",children:["responsive"in a&&(0,B.jsx)(Un,{brkPoint:o,setResponsiveView:s}),(0,B.jsx)(Rn,{className:"txt-center",value:u,onChange:p,btns:[{lbl:(0,d.__)("Default","bitform"),icn:"Default"}].concat("hover"in a?[{lbl:(0,d.__)("On Mouse Over","bitform"),icn:"Hover"}]:[],"focus"in a?[{lbl:(0,d.__)("On Focus","bitform"),icn:"Focus"}]:[])})]}),(0,B.jsxs)("div",{className:"flx flx-between mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Type","bitform")}),(0,B.jsx)(Rn,{value:f,onChange:function(e){var n,i=a.important?"!important":"";if("Outside"===e)if(void 0===(null==t||null==(n=t[m])?void 0:n["box-shadow"]))l({apply:[{cls:m,property:"box-shadow",delProp:!1,value:"0px 0px 8px -5px rgba(0, 0, 0, 1)"+i}],brkPoint:o});else{var r,s=null==t||null==(r=t[m])?void 0:r["box-shadow"].replace("inset","");l({apply:[{cls:m,property:"box-shadow",delProp:!1,value:s}],brkPoint:o})}else if("Inside"===e){var c,d;if(void 0===(null==t||null==(c=t[m])?void 0:c["box-shadow"]))l({apply:[{cls:m,property:"box-shadow",delProp:!1,value:"0px 0px 8px -5px rgba(0, 0, 0, 1) inset"+i}],brkPoint:o});else if(null==t||null==(d=t[m])||!d["box-shadow"].match(/inset/g)){var u,p=(null==t||null==(u=t[m])?void 0:u["box-shadow"])+" inset";l({apply:[{cls:m,property:"box-shadow",delProp:!1,value:p}],brkPoint:o})}}else"None"===e&&l({apply:[{cls:m,property:"box-shadow",delProp:!0,value:""}],brkPoint:o})},btns:[{lbl:(0,d.__)("Inside","bitform"),icn:(0,B.jsx)(Wn,{})},{lbl:(0,d.__)("Outside","bitform"),icn:(0,B.jsx)(Kn,{})},{lbl:(0,d.__)("None","bitform"),icn:(0,B.jsx)(On,{})}]})]}),"None"!==f&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{className:"flx flx-between mb-2 mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Shadow Color","bitform")}),(0,B.jsx)(wn,{alwGradient:!1,value:g,onChange:function(e){return v(h+" "+e.style+" "+x)}})]}),(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Shadow Style","bitform")}),(0,B.jsx)(In,{info:[{icn:(0,B.jsx)(jn,{borderWidth:"1px 4px 1px 4px"}),lbl:"X-axis"},{icn:(0,B.jsx)(jn,{borderWidth:"4px 1px 4px 1px"}),lbl:"Y-axis"},{icn:(0,B.jsx)(Bn,{}),lbl:"Blur"},{icn:(0,B.jsx)(Kn,{}),lbl:"Spread"}],className:"btc-range",unit:"px",master:!1,maxRange:10,minRange:-10,value:h,onChange:function(e){return v(e+" "+g+" "+x)}})]})]})}var qn=function(e,n){return n.split(",").join(":"+e+"placeholder,")+":"+e+"placeholder"};function Yn(e){var n,i,t,r,a=e.style,l=e.cls,o=e.styleConfig,s=e.styleDispatch,c=e.brkPoint,u=e.setResponsiveView,m=e.formID,p=En(l),h=p[0],g=p[1],f=p[2],x=(null==a||null==(n=a[g])?void 0:n.color)||(null==a||null==(i=a[l])?void 0:i.color),b=(null==a||null==(t=a[qn(":",g)])?void 0:t.color)||(null==a||null==(r=a[qn(":",l)])?void 0:r.color),v=x?"Color":"None",_=b?"Color":"None";return(0,B.jsxs)(xn,{className:"style-acc w-9",title:(0,d.__)("Color","bitform"),children:[("hover"in o||"focus"in o||"responsive"in o)&&(0,B.jsxs)("div",{className:"flx flx-between",children:["responsive"in o&&(0,B.jsx)(Un,{brkPoint:c,setResponsiveView:u}),("hover"in o||"focus"in o)&&(0,B.jsx)(Rn,{className:"txt-center",value:h,onChange:f,btns:[{lbl:(0,d.__)("Default","bitform"),icn:"Default"}].concat("hover"in o?[{lbl:(0,d.__)("On Mouse Over","bitform"),icn:"Hover"}]:[],"focus"in o?[{lbl:(0,d.__)("On Focus","bitform"),icn:"Focus"}]:[])})]}),(0,B.jsxs)("div",{className:"flx flx-between mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Text Color","bitform")}),(0,B.jsx)(Rn,{value:v,onChange:function(e){var n={apply:[{cls:g,property:"color",delProp:!1,value:"rgba(0, 0, 0, 1)"}],brkPoint:c};"None"===e&&a[l].color&&(n.apply[0].delProp=!0),s(n)},btns:[{lbl:(0,d.__)("Color","bitform"),icn:(0,B.jsx)(Ln,{})},{lbl:(0,d.__)("None","bitform"),icn:(0,B.jsx)(On,{})}]})]}),"None"!==v&&(0,B.jsxs)("div",{className:"flx flx-between mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Color","bitform")}),(0,B.jsx)(wn,{alwGradient:!1,value:x,onChange:function(e){var n=o.important?e.style+"!important":e.style,i={apply:[{cls:g,property:"color",delProp:!1,value:n}],brkPoint:c};o.checkBoxColor&&i.apply.push({cls:".fld-"+m+">.btcd-ck-wrp span:first-child",property:"color",delProp:!1,value:n}),s(i)}})]}),"placeholder"in o&&(0,B.jsxs)("div",{className:"flx flx-between mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Placeholder Color","bitform")}),(0,B.jsx)(Rn,{value:_,onChange:function(e){var n=!1;"None"===e&&a[qn(":",g)].color&&(n=!0);var i={apply:[{cls:qn(":",g),property:"color",delProp:n,value:"rgba(0, 0, 0, 1)!important"},{cls:qn(":-webkit-input-",g),property:"color",delProp:n,value:"rgba(0, 0, 0, 1)!important"},{cls:qn(":-ms-input-",g),property:"color",delProp:n,value:"rgba(0, 0, 0, 1)!important"},{cls:qn("-ms-input-",g),property:"color",delProp:n,value:"rgba(0, 0, 0, 1)!important"}],brkPoint:c};s(i)},btns:[{lbl:(0,d.__)("Color","bitform"),icn:(0,B.jsx)(Ln,{})},{lbl:(0,d.__)("None","bitform"),icn:(0,B.jsx)(On,{})}]})]}),"placeholder"in o&&"None"!==_&&(0,B.jsxs)("div",{className:"flx flx-between mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Placeholder Color","bitform")}),(0,B.jsx)(wn,{alwGradient:!1,value:b,onChange:function(e){s({apply:[{cls:qn(":",g),property:"color",delProp:!1,value:e.style+"!important"},{cls:qn(":-webkit-input-",g),property:"color",delProp:!1,value:e.style+"!important"},{cls:qn(":-ms-input-",g),property:"color",delProp:!1,value:e.style+"!important"},{cls:qn("-ms-input-",g),property:"color",delProp:!1,value:e.style+"!important"}],brkPoint:c})}})]})]})}function Jn(e){var n,i,t,r,a=e.style,l=e.cls,o=e.styleConfig,s=e.styleDispatch,c=e.brkPoint,u=En(l)[1],m=(null==a||null==(n=a[u])?void 0:n["font-size"])||(null==a||null==(i=a[l])?void 0:i["font-size"])||"16px",p=(null==a||null==(t=a[u])?void 0:t["line-height"])||(null==a||null==(r=a[l])?void 0:r["line-height"])||"1";return(0,B.jsxs)(xn,{className:"style-acc w-9",title:(0,d.__)("Font","bitform"),children:["size"in o&&(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Font Size","bitform")}),(0,B.jsx)(In,{info:[{icn:(0,B.jsx)("i",{className:"font-w-m",children:(0,B.jsx)("b",{children:"T"})}),lbl:(0,d.__)("Font Size","bitform")}],className:"btc-range",unit:"px",master:!1,maxRange:30,minRange:5,value:m,onChange:function(e){var n=o.important?e+"!important":e;s({apply:[{cls:u,property:"font-size",delProp:!1,value:n}],brkPoint:c})}})]}),"lineHeight"in o&&(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:"Line height"}),(0,B.jsx)(In,{info:[{icn:(0,B.jsxs)("span",{children:[(0,B.jsx)("b",{children:"T"}),(0,B.jsx)(Nn,{h:"12"})]}),lbl:"Text line height"}],className:"btc-range",master:!1,maxRange:5,minRange:1,value:p,onChange:function(e){var n=o.important?e+"!important":e;s({apply:[{cls:u,property:"line-height",delProp:!1,value:n}],brkPoint:c})},step:.1})]})]})}function Qn(e){var n,i=e.style,t=e.cls,r=(e.styleConfig,e.styleDispatch),a=e.brkPoint,l=(null==i||null==(n=i[t])?void 0:n.direction)||"ltr";return(0,B.jsx)(xn,{className:"style-acc w-9",title:(0,d.__)("Direction","bitform"),children:(0,B.jsxs)("div",{className:"mt-2 flx flx-between",children:[(0,B.jsx)("span",{className:"f-5",children:(0,d.__)("Content Direction","bitform")}),(0,B.jsxs)("select",{value:l,className:"btcd-paper-inp w-7",onChange:function(e){return n=e.target.value,void r({apply:[{cls:t,property:"direction",delProp:!1,value:n}],brkPoint:a});var n},children:[(0,B.jsx)("option",{value:"ltr",children:(0,d.__)("Left to Right","bitform")}),(0,B.jsx)("option",{value:"rtl",children:(0,d.__)("Right to Left","bitform")})]})]})})}function ei(e){var n,i=e.style,t=(e.cls,e.styleConfig),r=e.styleDispatch,a=e.brkPoint,l=e.setResponsiveView,o=e.formID,s=(null==(n=i["._frm-g-"+o])?void 0:n.gap)||"0px 0px";s=function(e){var n=e.split(" ");return 2===n.length?e:1===n.length?Array(2).fill(n[0]).join(" "):e}(s);return(0,B.jsxs)(xn,{className:"style-acc w-9",title:(0,d.__)("Block Gap","bitform"),children:["responsive"in t&&(0,B.jsx)(Un,{brkPoint:a,setResponsiveView:l}),(0,B.jsx)(In,{info:[{icn:(0,B.jsx)("b",{children:"R"}),lbl:(0,d.__)("Row Gap","bitform")},{icn:(0,B.jsx)("b",{children:"C"}),lbl:(0,d.__)("Column Gap","bitform")},{icn:(0,B.jsx)(Mn,{}),lbl:(0,d.__)("Both Side Gap","bitform")}],className:"btc-range",unit:"px",maxRange:50,value:s,onChange:function(e){r({apply:[{cls:"._frm-g-"+o,property:"gap",delProp:!1,value:e}],brkPoint:a})}})]})}function ni(e){var n,i,t=e.style,r=e.cls,a=e.styleConfig,l=e.styleDispatch,o=e.brkPoint,s=En(r)[1],c=(null==t||null==(n=t[s])?void 0:n.height)||(null==t||null==(i=t[r])?void 0:i.height)||"40px";return(0,B.jsx)(xn,{className:"style-acc w-9",title:"Height",children:(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)("span",{className:"f-5",children:"Input Height"}),(0,B.jsx)(In,{info:[{icn:(0,B.jsx)("i",{className:"font-w-m",children:"H"}),lbl:"Height"}],className:"btc-range",unit:"px",master:!1,maxRange:100,minRange:40,value:c,onChange:function(e){var n=a.important?e+"!important":e;l({apply:[{cls:s,property:"height",delProp:!1,value:n}],brkPoint:o})}})]})})}const ii=function(e){var n=e.editorLabel,i=e.title,t=e.noBack,a=e.compStyle,l=e.styleDispatch,o=e.brkPoint,s=e.setResponsiveView,c=e.cls,u=e.styleConfig,m=e.formID,p=(0,r.k6)();return(0,B.jsxs)("div",{className:"mt-2",children:[!t&&(0,B.jsxs)(W.rU,{to:""+(p.location.pathname.match(/style\/fl\/.+/g)?p.location.pathname.replace(/style\/fl\/.+/g,"style/fl"):p.location.pathname.replace(/style\/.+/g,"style")),children:[(0,B.jsxs)("h4",{className:"w-9 m-a flx txt-dp",children:[(0,B.jsx)("button",{className:"icn-btn",type:"button","aria-label":"back btn",children:(0,B.jsx)(Ae.Z,{})}),(0,B.jsxs)("div",{className:"flx w-10",children:[(0,B.jsx)("span",{children:(0,d.__)("Back","bitform")}),(0,B.jsx)("div",{className:"txt-center w-10 f-5",children:n})]})]}),(0,B.jsx)("div",{className:"btcd-hr m-a"}),(0,B.jsx)("div",{className:"btcd-hr m-a"})]}),i&&(0,B.jsx)("h4",{className:"ml-2 txt-blue",children:i}),"background"in u&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(Pn,{cls:c,style:a,brkPoint:o,styleConfig:u.background,styleDispatch:l,setResponsiveView:s}),(0,B.jsx)("div",{className:"btcd-hr w-9 m-a"})]}),"color"in u&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(Yn,{cls:c,style:a,brkPoint:o,formID:m,styleConfig:u.color,styleDispatch:l,setResponsiveView:s}),(0,B.jsx)("div",{className:"btcd-hr w-9 m-a"})]}),"font"in u&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(Jn,{cls:c,style:a,brkPoint:o,styleConfig:u.font,styleDispatch:l,setResponsiveView:s}),(0,B.jsx)("div",{className:"btcd-hr w-9 m-a"})]}),"border"in u&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(Gn,{cls:c,style:a,brkPoint:o,styleDispatch:l,styleConfig:u.border,setResponsiveView:s}),(0,B.jsx)("div",{className:"btcd-hr w-9 m-a"})]}),"height"in u&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(ni,{cls:c,style:a,brkPoint:o,formID:m,styleDispatch:l,styleConfig:u.height,setResponsiveView:s}),(0,B.jsx)("div",{className:"btcd-hr w-9 m-a"})]}),"padding"in u&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(Fn,{cls:c,style:a,brkPoint:o,styleDispatch:l,styleConfig:u.padding,setResponsiveView:s}),(0,B.jsx)("div",{className:"btcd-hr w-9 m-a"})]}),"gap"in u&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(ei,{cls:c,style:a,brkPoint:o,formID:m,styleDispatch:l,styleConfig:u.gap,setResponsiveView:s}),(0,B.jsx)("div",{className:"btcd-hr w-9 m-a"})]}),"margin"in u&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(Vn,{cls:c,style:a,brkPoint:o,styleDispatch:l,styleConfig:u.margin,setResponsiveView:s}),(0,B.jsx)("div",{className:"btcd-hr w-9 m-a"})]}),"shadow"in u&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)($n,{cls:c,style:a,brkPoint:o,styleDispatch:l,styleConfig:u.shadow,setResponsiveView:s}),(0,B.jsx)("div",{className:"btcd-hr w-9 m-a"})]}),"direction"in u&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(Qn,{cls:c,style:a,brkPoint:o,styleDispatch:l,styleConfig:u.direction}),(0,B.jsx)("div",{className:"btcd-hr w-9 m-a"})]})]})};function ti(e){var n,i,t,a,l,o,c=e.editorLabel,d=e.style,u=e.styleDispatch,m=e.brkPoint,p=e.setResponsiveView,h=e.styleEditorConfig,g=e.formID,f=(0,r.k6)(),x=(0,s.useState)(!1),b=x[0],v=x[1],_=(null==d||null==(n=d[".fld-"+g+".dpd"])?void 0:n["--border-radius"])||"5px 5px 5px 5px",j=(null==d||null==(i=d[".fld-"+g+".dpd"])?void 0:i["--font-size"])||"16px",N=(null==d||null==(t=d[".fld-"+g+".dpd"])?void 0:t["--line-height"])||"1.4",y=(null==d||null==(a=d[".fld-"+g+".dpd .msl"])?void 0:a["min-height"])||"40px",C=(null==d||null==(l=d[".fld-"+g+".dpd"])?void 0:l["--active-menu-background"])||"rgba(255, 255, 255, 1)",A=(null==d||null==(o=d[".fld-"+g+".dpd"])?void 0:o["--active-menu-radius"])||_,S=function(e,n,i){u({apply:[{cls:i||".fld-"+g+".dpd",property:n,delProp:!1,value:e}],brkPoint:m})};return(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsxs)(W.rU,{to:""+(f.location.pathname.match(/style\/fl\/.+/g)?f.location.pathname.replace(/style\/fl\/.+/g,"style/fl"):f.location.pathname.replace(/style\/.+/g,"style")),children:[(0,B.jsxs)("h4",{className:"w-9 m-a flx txt-dp",children:[(0,B.jsx)("button",{className:"icn-btn",type:"button","aria-label":"back btn",children:(0,B.jsx)(Ae.Z,{})}),(0,B.jsxs)("div",{className:"flx w-10",children:[(0,B.jsx)("span",{children:"Back"}),(0,B.jsx)("div",{className:"txt-center w-10 f-5",children:c})]})]}),(0,B.jsx)("div",{className:"btcd-hr m-a"}),(0,B.jsx)("div",{className:"btcd-hr m-a"})]}),(0,B.jsxs)(xn,{open:1===b,onOpen:function(){return v(1)},title:(0,B.jsx)("span",{className:"txt-blue",style:{fontSize:16},children:"Dropdown Input Style"}),className:"style-acc",children:[(0,B.jsx)(ii,{noBack:!0,compStyle:d,cls:".fld-"+g+".dpd .msl",styleDispatch:u,brkPoint:m,setResponsiveView:p,styleConfig:h.dropdown,formID:g}),(0,B.jsx)(xn,{title:"Min Height",className:"style-acc w-9",children:(0,B.jsx)(In,{info:[{icn:(0,B.jsx)(Nn,{h:"20"}),lbl:"Minimum Height"}],className:"btc-range",unit:"px",master:!1,maxRange:80,minRange:0,value:y,onChange:function(e){return S(e,"min-height",".fld-"+g+".dpd .msl")}})}),(0,B.jsx)("div",{className:"btcd-hr m-a"}),(0,B.jsx)(xn,{title:"Border Radius",className:"style-acc w-9",children:(0,B.jsx)(In,{info:[{icn:(0,B.jsx)(jn,{borderRadius:"6px 1px 1px 1px"}),lbl:"Radius Top Left"},{icn:(0,B.jsx)(jn,{borderRadius:"1px 6px 1px 1px"}),lbl:"Radius Top Right"},{icn:(0,B.jsx)(jn,{borderRadius:"1px 1px 6px 1px"}),lbl:"Radius Bottom Right"},{icn:(0,B.jsx)(jn,{borderRadius:"1px 1px 1px 6px"}),lbl:"Radius Bottom Left"},{icn:(0,B.jsx)(jn,{}),lbl:"All Side"}],className:"btc-range",unit:"px",maxRange:20,minRange:0,value:_,onChange:function(e){return S(e,"--border-radius")}})}),(0,B.jsx)("div",{className:"btcd-hr m-a"}),(0,B.jsx)(xn,{title:"Font Size",className:"style-acc w-9",children:(0,B.jsx)(In,{info:[{icn:(0,B.jsx)("b",{children:"T"}),lbl:"Font Size"}],className:"btc-range",unit:"px",master:!1,maxRange:50,minRange:0,value:j,onChange:function(e){return S(e,"--font-size")}})}),(0,B.jsx)("div",{className:"btcd-hr m-a"}),(0,B.jsx)(xn,{title:"Line Height",className:"style-acc w-9",children:(0,B.jsx)(In,{info:[{icn:(0,B.jsxs)("span",{children:[(0,B.jsx)("b",{children:"T"}),(0,B.jsx)(Nn,{h:"12"})]}),lbl:"Text Line Height"}],className:"btc-range",master:!1,maxRange:8,minRange:0,value:N,step:.1,onChange:function(e){return S(e,"--line-height")}})}),(0,B.jsx)("div",{className:"btcd-hr m-a"})]}),(0,B.jsx)("div",{className:"btcd-hr m-a"}),(0,B.jsxs)(xn,{open:2===b,onOpen:function(){return v(2)},title:(0,B.jsx)("span",{className:"txt-blue",style:{fontSize:16},children:"Dropdowns Active Menu"}),className:"style-acc",children:[(0,B.jsxs)("div",{className:"flx flx-between w-9 p-2 m-a",children:[(0,B.jsx)("b",{children:"Background Color"}),(0,B.jsx)(wn,{value:C,onChange:function(e){return S(e.style,"--active-menu-background",".fld-"+g+".dpd")}})]}),(0,B.jsx)("div",{className:"btcd-hr m-a"}),(0,B.jsx)(xn,{title:"Border Radius",className:"style-acc w-9",children:(0,B.jsx)(In,{info:[{icn:(0,B.jsx)(jn,{borderRadius:"6px 1px 1px 1px"}),lbl:"Radius Top Left"},{icn:(0,B.jsx)(jn,{borderRadius:"1px 6px 1px 1px"}),lbl:"Radius Top Right"},{icn:(0,B.jsx)(jn,{borderRadius:"1px 1px 6px 1px"}),lbl:"Radius Bottom Right"},{icn:(0,B.jsx)(jn,{borderRadius:"1px 1px 1px 6px"}),lbl:"Radius Bottom Left"},{icn:(0,B.jsx)(jn,{}),lbl:"All Side"}],className:"btc-range",unit:"px",maxRange:20,minRange:0,value:A,onChange:function(e){return S(e,"--active-menu-radius",".fld-"+g+".dpd")}})}),(0,B.jsx)("div",{className:"btcd-hr m-a"})]}),(0,B.jsx)("div",{className:"btcd-hr m-a"}),(0,B.jsx)(xn,{open:3===b,onOpen:function(){return v(3)},title:(0,B.jsx)("span",{className:"txt-blue",style:{fontSize:16},children:"Dropdowns Options Style"}),className:"style-acc",children:(0,B.jsx)(ii,{noBack:!0,compStyle:d,cls:".fld-"+g+".dpd .msl-option",styleDispatch:u,brkPoint:m,setResponsiveView:p,styleConfig:h.dropdownOptions,formID:g})}),(0,B.jsx)("div",{className:"btcd-hr m-a"}),(0,B.jsxs)(xn,{open:4===b,onOpen:function(){return v(4)},title:(0,B.jsx)("span",{className:"txt-blue",style:{fontSize:16},children:"Dropdowns Chips Style"}),className:"style-acc",children:[(0,B.jsx)(ii,{noBack:!0,compStyle:d,cls:".fld-"+g+".dpd .msl-chip",styleDispatch:u,brkPoint:m,setResponsiveView:p,styleConfig:h.dropdownChip,formID:g}),(0,B.jsx)(ii,{title:"Chip Delete Button",noBack:!0,compStyle:d,cls:".fld-"+g+'.dpd .msl-chip div[aria-label="delete-value"]',styleDispatch:u,brkPoint:m,setResponsiveView:p,styleConfig:h.dropdownChipButton,formID:g})]}),(0,B.jsx)("div",{className:"btcd-hr m-a"})]})}function ri(){var e,n,i,a,l,c,u,m,p,h=(0,r.UO)(),g=h.formID,f=h.formType,x=(0,o.FV)(D.ro),b=x[0],v=x[1],_=(0,o.Zl)(D.gx),j=(0,o.sJ)(D.gx),N=(0,o.FV)(D.AK),y=N[0],C=N[1],A=(0,M.p$)(y[j]),S=(0,s.useState)((null==A||null==(e=A.style)?void 0:e.height)||""),w=S[0],I=S[1],k=((0,s.useState)((null==A||null==(n=A.style)?void 0:n.width)||"")[1],function(e){return Object.entries(e).filter((function(e){return"paypal"===e[1].typ})).length});if(y&&k(y)&&null===j){var R=Object.entries(y).filter((function(e){return"paypal"===e[1].typ}));R.length&&_(R[0][0])}var E=function(e,n){if(n?A.style[e]=n:delete A.style[e],"layout"===e){var i=(0,M.p$)(b),r=i.lg.findIndex((function(e){return e.i===j})),a=i.md.findIndex((function(e){return e.i===j})),l=i.sm.findIndex((function(e){return e.i===j})),o=i.lg[r],s=i.md[a],c=i.sm[l];"vertical"===n?(o.h=4,o.minH=3,o.maxH=7,o.w=2,o.minW=2,s.h=5,s.minH=3,s.maxH=7,s.w=4,s.minW=2,c.h=4,c.minH=4,c.maxH=6,c.w=2,c.minW=2):"horizontal"===n?(o.h=2,o.minH=2,o.maxH=4,o.w=3,o.minW=3,s.h=2,s.minH=2,s.maxH=4,s.w=3,s.minW=3,c.h=1,c.minH=1,c.maxH=2,c.w=2,c.minW=2):"standalone"===n&&(o.h=1,o.minH=1,o.maxH=2,o.w=2,o.minW=2,s.h=1,s.minH=1,s.maxH=2,s.w=2,s.minW=2,c.h=1,c.minH=1,c.maxH=2,c.w=2,c.minW=2),i.lg.splice(r,1,o),i.md.splice(a,1,s),i.sm.splice(l,1,c),v(i)}"layout"===e&&"standalone"===n&&(A.style.payBtn="PAYPAL"),"payBtn"===e&&"CARD"===n&&(A.style.color="white"),C((function(e){var n;return(0,t.Z)({},e,((n={})[j]=A,n))}))},U=function(e){e>=25&&e<=55&&(A.style.height=e,C((function(e){var n;return(0,t.Z)({},e,((n={})[j]=A,n))}))),I(e)};return(0,B.jsxs)("div",{className:"mt-2",children:[(0,B.jsx)(W.rU,{to:"/form/builder/"+f+"/"+g+"/style/fl",children:(0,B.jsxs)("h4",{className:"w-9 m-a flx txt-dp",children:[(0,B.jsx)("button",{className:"icn-btn",type:"button","aria-label":"back btn",children:(0,B.jsx)(Ae.Z,{})}),(0,B.jsxs)("div",{className:"flx w-10",children:[(0,B.jsx)("span",{children:(0,d.__)("Back","bitform")}),(0,B.jsx)("div",{className:"txt-center w-10 f-5",children:(0,d.__)("Paypal Style","bitform")})]})]})}),(0,B.jsx)("div",{className:"w-9 m-a",children:null!==y&&k(y)?null===j&&k(y)>1?(0,B.jsxs)("div",{className:"mt-2",style:{fontSize:16,lineHeight:1.5},children:[(0,d.__)("There is more than one paypal field in your form. please select the style icon","bitform"),(0,B.jsx)(P,{style:{height:15,width:20}})," ",(0,d.__)("in paypal field to customize the style.","bitform")]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("div",{className:"mt-2",children:(0,B.jsxs)("label",{htmlFor:"recap-thm",children:[(0,B.jsx)("b",{children:(0,d.__)("Layout","bitform")}),(0,B.jsxs)("select",{onChange:function(e){return E(e.target.name,e.target.value)},name:"layout",value:null==A||null==(i=A.style)?void 0:i.layout,className:"btcd-paper-inp mt-1",children:[(0,B.jsx)("option",{value:"vertical",children:(0,d.__)("Vertical","bitform")}),(0,B.jsx)("option",{value:"horizontal",children:(0,d.__)("Horizontal","bitform")}),(0,B.jsx)("option",{value:"standalone",children:(0,d.__)("Standalone","bitform")})]})]})}),"standalone"===(null==A||null==(a=A.style)?void 0:a.layout)&&(0,B.jsx)("div",{className:"mt-2",children:(0,B.jsxs)("label",{htmlFor:"recap-thm",children:[(0,B.jsx)("b",{children:(0,d.__)("Pay Button","bitform")}),(0,B.jsxs)("select",{onChange:function(e){return E(e.target.name,e.target.value)},name:"payBtn",value:A.payBtn,className:"btcd-paper-inp mt-1",children:[(0,B.jsx)("option",{value:"PAYPAL",children:(0,d.__)("PAYPAL","bitform")}),(0,B.jsx)("option",{value:"PAYLATER",children:(0,d.__)("PAYLATER","bitform")}),(0,B.jsx)("option",{value:"CARD",children:(0,d.__)("CARD","bitform")})]})]})}),(0,B.jsx)("div",{className:"mt-2",children:(0,B.jsxs)("label",{htmlFor:"recap-thm",children:[(0,B.jsx)("b",{children:(0,d.__)("Color","bitform")}),(0,B.jsxs)("select",{onChange:function(e){return E(e.target.name,e.target.value)},name:"color",value:null==A||null==(l=A.style)?void 0:l.color,className:"btcd-paper-inp mt-1",children:["CARD"!==(null==A||null==(c=A.style)?void 0:c.payBtn)&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("option",{value:"gold",children:(0,d.__)("Gold","bitform")}),(0,B.jsx)("option",{value:"blue",children:(0,d.__)("Blue","bitform")}),(0,B.jsxs)("option",{value:"silver",children:[(0,d.__)("Silver","bitform")," "]})]}),(0,B.jsx)("option",{value:"white",children:(0,d.__)("White","bitform")}),(0,B.jsx)("option",{value:"black",children:(0,d.__)("Black","bitform")})]})]})}),(0,B.jsx)("div",{className:"mt-2",children:(0,B.jsxs)("label",{htmlFor:"recap-thm",children:[(0,B.jsx)("b",{children:(0,d.__)("Shape","bitform")}),(0,B.jsxs)("select",{onChange:function(e){return E(e.target.name,e.target.value)},name:"shape",value:null==A||null==(u=A.style)?void 0:u.shape,className:"btcd-paper-inp mt-1",children:[(0,B.jsx)("option",{value:"rect",children:(0,d.__)("Rectangle","bitform")}),(0,B.jsx)("option",{value:"pill",children:(0,d.__)("Pill","bitform")})]})]})}),(0,B.jsx)("div",{className:"mt-2",children:(0,B.jsxs)("label",{htmlFor:"recap-thm",children:[(0,B.jsx)("b",{children:(0,d.__)("Paypal Button Text","bitform")}),(0,B.jsxs)("select",{onChange:function(e){return E(e.target.name,e.target.value)},name:"label",value:null==A||null==(m=A.style)?void 0:m.label,className:"btcd-paper-inp mt-1",children:[(0,B.jsx)("option",{value:"paypal",children:(0,d.__)("Paypal","bitform")}),(0,B.jsx)("option",{value:"checkout",children:(0,d.__)("Paypal Checkout","bitform")}),(0,B.jsx)("option",{value:"buynow",children:(0,d.__)("Paypal Buy Now","bitform")}),(0,B.jsx)("option",{value:"pay",children:(0,d.__)("Pay with Paypal","bitform")})]})]})}),(0,B.jsx)("div",{className:"mt-2",children:(0,B.jsxs)("div",{className:"flx flx-between mt-1 inp-grp",children:[(0,B.jsx)("b",{className:"icn br-50 mr-1",children:(0,d.__)("Height","bitform")}),(0,B.jsx)("input",{title:(0,d.__)("Height","bitform"),className:"btc-range mr-1",type:"range",min:"25",max:"55",onChange:function(e){return U(e.target.value)},value:(null==A||null==(p=A.style)?void 0:p.height)||""}),(0,B.jsx)("input",{className:"ml-1 btcd-paper-inp",type:"number",placeholder:"auto",onBlur:function(e){return(n=e.target.value)>=25&&n<=55?(A.style.height=n,I(n)):n<25?(A.style.height=25,I(25)):(A.style.height=55,I(55)),void C((function(e){var n;return(0,t.Z)({},e,((n={})[j]=A,n))}));var n},onChange:function(e){return U(e.target.value)},min:"25",max:"55",value:w})]})})]}):(0,B.jsx)("div",{className:"mt-2",children:(0,d.__)("There is no paypal field in your form.","bitform")})})]})}const ai={formbg:{background:{responsive:!0,picture:!0},border:{responsive:!0,hover:!0,type:!0,radius:!0,color:!0,width:!0},padding:{responsive:!0},margin:{responsive:!0},shadow:{responsive:!0,hover:!0,type:!0,color:!0,style:!0}},form:{background:{hover:!0,responsive:!0,backdropFilter:!0},border:{responsive:!0,hover:!0,type:!0,radius:!0,color:!0,width:!0},padding:{responsive:!0},margin:{responsive:!0},shadow:{responsive:!0,hover:!0,type:!0,color:!0,style:!0}},field_block:{gap:{responsive:!0},direction:{},padding:{responsive:!0},background:{hover:!0,responsive:!0,backdropFilter:!0},border:{responsive:!0,hover:!0,type:!0,radius:!0,color:!0,width:!0},shadow:{responsive:!0,hover:!0,type:!0,color:!0,style:!0}},field:{color:{checkBoxColor:!0,hover:!0,focus:!0,placeholder:!0,important:!0},background:{focus:!0,hover:!0,responsive:!0,backdropFilter:!0,important:!0},border:{focus:!0,responsive:!0,hover:!0,type:!0,radius:!0,color:!0,width:!0,important:!0},padding:{focus:!0,responsive:!0,important:!0},margin:{focus:!0,responsive:!0,important:!0},font:{size:!0,important:!0,lineHeight:!0},shadow:{focus:!0,responsive:!0,hover:!0,type:!0,color:!0,style:!0,important:!0},height:{important:!0}},button:{color:{hover:!0,focus:!0,important:!0},background:{focus:!0,hover:!0,responsive:!0,backdropFilter:!0,important:!0},border:{focus:!0,responsive:!0,hover:!0,type:!0,radius:!0,color:!0,width:!0,important:!0},padding:{focus:!0,responsive:!0,important:!0},margin:{focus:!0,responsive:!0,important:!0},font:{size:!0,important:!0,lineHeight:!0},shadow:{focus:!0,responsive:!0,hover:!0,type:!0,color:!0,style:!0,important:!0}},field_label:{color:{important:!0},font:{size:!0,important:!0,lineHeight:!0}},dropdown:{background:{hover:!0,responsive:!0,backdropFilter:!0},border:{responsive:!0,hover:!0,type:!0,color:!0,width:!0},padding:{responsive:!0},margin:{responsive:!0},shadow:{responsive:!0,hover:!0,type:!0,color:!0,style:!0},color:{checkBoxColor:!0,hover:!0,important:!0}},dropdownOptions:{background:{hover:!0,responsive:!0},border:{responsive:!0,hover:!0,type:!0,color:!0,width:!0,radius:!0},padding:{responsive:!0},margin:{responsive:!0},shadow:{responsive:!0,hover:!0,type:!0,color:!0,style:!0},font:{size:!0,lineHeight:!0},color:{hover:!0,important:!0}},dropdownChip:{background:{responsive:!0,hover:!0},border:{responsive:!0,hover:!0,type:!0,color:!0,width:!0,radius:!0},padding:{responsive:!0},margin:{responsive:!0},shadow:{responsive:!0,hover:!0,type:!0,color:!0,style:!0},font:{size:!0,lineHeight:!0},color:{hover:!0}},dropdownChipButton:{background:{hover:!0},border:{hover:!0,type:!0,color:!0,width:!0,radius:!0},padding:{responsive:!0},margin:{responsive:!0},shadow:{responsive:!0,hover:!0,type:!0,color:!0,style:!0},color:{hover:!0}}},li=JSON.parse('[{"lbl":"Only Characters","val":"^[a-zA-Z]+$","msg":"Only characters allowed"},{"lbl":"Only Digits","val":"^[0-9]+(^[.])?$","msg":"Only digits allowed"},{"lbl":"Name","val":"^[a-zA-Z .]+$","msg":"Name cannot contain any number or special characters"},{"lbl":"Username","val":"^[a-z0-9_.]+$","msg":"Username cannot contain any space or special characters"},{"lbl":"Character Limit","val":"^.{0,100}$","msg":"Maximum 100 characters allowed"},{"lbl":"Word Limit","val":"^(?:$_bf_$b$_bf_$w+$_bf_$b[$_bf_$s$_bf_$r$_bf_$n]*){1,30}$","msg":"Maximum 30 words allowed"},{"lbl":"Only Gmail","val":"^[a-z0-9]($_bf_$.?[a-z0-9]){0,}@(gmail)$_bf_$.com$","msg":"Only Gmail is allowed"}]');function oi(){var e,n,i,r,a,l,s,c,u,m,p,h,g,f,x,b,v,_,j,N=(0,o.sJ)(D.hi),y=(0,o.sJ)(D.gx),C=(0,o.FV)(D.AK),A=C[0],S=C[1],w=(0,M.p$)(A[y]),I=w.valid.req||!1,k="on"===w.ac,R=w.adminLbl||"",E=w.ph||"",U=w.mn||"",T=w.mx||"",L=w.valid.regexr||"",O=w.valid.flags||"",P=function(e){return e.replaceAll("$_bf_$","\\")};var X=function(e){var n,i;return"^"+(e.digit||"")+(e.lower||"")+(e.upper||"")+(e.special||"")+".{"+((null==e||null==(n=e.limit)?void 0:n.mn)||0)+","+((null==e||null==(i=e.limit)?void 0:i.mx)||"")+"}$"},z=function(e){return"<p>Password must consist at least "+Object.keys(e).map((function(n){return"digit"===n?"one number":"lower"===n?"one lowercase character":"upper"===n?"one uppercase character":"special"===n?"one special character":"limit"===n?e.limit.mn+(e.limit.mx?" to "+e.limit.mx:"")+" characters":void 0})).join(", ").replace(/, ([^,]*)$/," and $1")+"</p>"},Z=function(e){if(N.isPro){var n=e.target,i=n.checked,r=n.name,a=n.value;w.err||(w.err={}),w.err.regexr||(w.err.regexr={}),w.valid.validations||(w.valid.validations={});var l=w.valid.validations;i?"limit"===r?(l.limit={},l.limit.mn=8,l.limit.mx=32):l[r]=a:delete l[r],w.valid.validations=l,Object.keys(l).length?(w.valid.regexr=X(l),w.err.regexr.dflt=z(l),w.err.regexr.show=!0):(w.err.regexr.dflt="<p>Pattern not matched</p>",delete w.valid.regexr,delete w.err.regexr.show),S((function(e){var n;return(0,t.Z)({},e,((n={})[y]=w,n))}))}},H=function(e){if(N.isPro){var n=e.target,i=n.name,r=n.value,a=w.valid.validations;r?w.valid.validations.limit[i]=r:delete w.valid.validations.limit[i],w.valid.regexr=X(a),w.err.regexr.dflt=z(a),S((function(e){var n;return(0,t.Z)({},e,((n={})[y]=w,n))}))}};return(0,B.jsxs)("div",{className:"mr-4 ml-2",children:[(0,B.jsx)(Se,{}),(0,B.jsxs)("div",{className:"mb-2",children:[(0,B.jsx)("span",{className:"font-w-m",children:"Field Type :"}),w.typ.charAt(0).toUpperCase()+w.typ.slice(1)]}),(0,B.jsxs)("div",{className:"flx",children:[(0,B.jsx)("span",{className:"font-w-m mr-1",children:(0,d.__)("Field Key : ","bitform")}),(0,B.jsx)(Ne.Z,{value:y,className:"field-key-cpy m-0 w-7"})]}),(0,B.jsx)(Pe,{}),(0,B.jsx)(ye,{inpType:"text",title:(0,d.__)("Admin Label:","bitform"),value:R,action:function(e){""===e.target.value?delete w.adminLbl:w.adminLbl=e.target.value,S((function(e){var n;return(0,t.Z)({},e,((n={})[y]=w,n))}))}}),(0,B.jsx)(Ce,{title:(0,d.__)("Required:","bitform"),action:function(e){if(e.target.checked){var n=(0,t.Z)({},w.valid);n.req=!0,w.valid=n,w.err||(w.err={}),w.err.req||(w.err.req={}),w.err.req.dflt="<p>This field is required</p>",w.err.req.show=!0}else delete w.valid.req;S((function(e){var n;return(0,t.Z)({},e,((n={})[y]=w,n))}))},isChecked:I,className:"mt-3"}),(null==w||null==(e=w.valid)?void 0:e.req)&&(0,B.jsx)(Ue,{type:"req",title:"Error Message",tipTitle:"By enabling this feature, user will see the error message when input is empty"}),w.typ.match(/^(text|url|password|number|email|)$/)&&(0,B.jsx)(Ce,{title:(0,d.__)("Auto Fill:","bitform"),action:function(e){e.target.checked?w.ac="on":delete w.ac,S((function(e){var n;return(0,t.Z)({},e,((n={})[y]=w,n))}))},isChecked:k,className:"mt-3"}),w.typ.match(/^(username|text|url|textarea|password|number|email|)$/)&&(0,B.jsx)(ye,{inpType:"text",title:(0,d.__)("Placeholder:","bitform"),value:E,action:function(e){""===e.target.value?delete w.ph:w.ph=e.target.value,S((function(e){var n;return(0,t.Z)({},e,((n={})[y]=w,n))}))}}),"number"===w.typ&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(ye,{inpType:"number",title:(0,d.__)("Min Value:","bitform"),value:U,action:function(e){""===e.target.value?delete w.mn:(w.mn=e.target.value,w.err||(w.err={}),w.err.mn||(w.err.mn={}),w.err.mn.dflt="<p>Minimum number is "+e.target.value+"<p>",w.err.mn.show=!0),S((function(e){var n;return(0,t.Z)({},e,((n={})[y]=w,n))}))},className:"w-10"}),w.mn&&(0,B.jsx)(Ue,{type:"mn",title:"Min Error Message",tipTitle:"By enabling this feature, user will see the error message when input number is less than "+w.mn}),(0,B.jsx)(ye,{inpType:"number",title:(0,d.__)("Max Value:","bitform"),value:T,action:function(e){""===e.target.value?delete w.mx:(w.mx=e.target.value,w.err||(w.err={}),w.err.mx||(w.err.mx={}),w.err.mx.dflt="<p>Maximum number is "+e.target.value+"</p>",w.err.mx.show=!0),S((function(e){var n;return(0,t.Z)({},e,((n={})[y]=w,n))}))},className:"w-10"}),w.mx&&(0,B.jsx)(Ue,{type:"mx",title:"Max Error Message",tipTitle:"By enabling this feature, user will see the error message when input number is greater than "+w.mx})]}),w.typ.match(/^(url|number|email|)$/)&&(0,B.jsx)(Ue,{type:"invalid",title:"Invalid Error Message",tipTitle:"By enabling this feature, user will see the error message when input value is not any "+w.typ}),"password"===w.typ&&(0,B.jsxs)("div",{children:[(0,B.jsxs)("div",{className:"flx mt-2 mb-2",children:[(0,B.jsx)("h4",{className:"m-0",children:(0,d.__)("Validations:","bitform")}),!N.isPro&&(0,B.jsx)("span",{className:"pro-badge ml-2",children:(0,d.__)("Pro","bitform")})]}),(0,B.jsx)(Tn.Z,{className:"w-10",name:"digit",checked:(null==(n=w.valid)||null==(i=n.validations)?void 0:i.digit)||!1,value:"(?=.*[0-9])",title:(0,d.__)("At least one digit (0-9)","bitform"),onChange:Z,disabled:!N.isPro}),(0,B.jsx)(Tn.Z,{className:"w-10 mt-2",name:"lower",checked:(null==(r=w.valid)||null==(a=r.validations)?void 0:a.lower)||!1,value:"(?=.*[a-z])",title:(0,d.__)("At least one lowercase character (a-z)","bitform"),onChange:Z,disabled:!N.isPro}),(0,B.jsx)(Tn.Z,{className:"w-10 mt-2",name:"upper",checked:(null==(l=w.valid)||null==(s=l.validations)?void 0:s.upper)||!1,value:"(?=.*[A-Z])",title:(0,d.__)("At least one uppercase character (A-Z)","bitform"),onChange:Z,disabled:!N.isPro}),(0,B.jsx)(Tn.Z,{className:"w-10 mt-2",name:"special",checked:(null==(c=w.valid)||null==(u=c.validations)?void 0:u.special)||!1,value:"(?=.*[~!@#$%^&*(){}[$_bf_$]<>+$_bf_$-_=$_bf_$$_bf_$/|;:,.])",title:(0,d.__)("At least one special character (~!@#$%^&*(){}[]<>+-_=/\\|;:,.)","bitform"),onChange:Z,disabled:!N.isPro}),(0,B.jsx)(Tn.Z,{className:"w-10 mt-2",name:"limit",checked:(null==(m=w.valid)||null==(p=m.validations)?void 0:p.limit)||!1,value:".{8,32}",title:(0,d.__)("Limit Password Length","bitform"),onChange:Z,disabled:!N.isPro}),(null==(h=w.valid)||null==(g=h.validations)?void 0:g.limit)&&(0,B.jsxs)("div",{children:[(0,B.jsx)(ye,{inpType:"number",name:"mn",title:(0,d.__)("Min:","bitform"),value:null==(f=w.valid)||null==(x=f.validations)||null==(b=x.limit)?void 0:b.mn,action:H,width:100,className:"mr-4"}),(0,B.jsx)(ye,{inpType:"number",name:"mx",title:(0,d.__)("Max:","bitform"),value:null==(v=w.valid)||null==(_=v.validations)||null==(j=_.limit)?void 0:j.mx,action:H,width:100})]})]}),w.typ.match(/^(text|url|textarea|password|number|email|username|)$/)&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{className:"flx",children:[(0,B.jsxs)("div",{className:"w-7 mr-2 mt-3",children:[(0,B.jsxs)("div",{className:"flx",children:[(0,B.jsx)("h4",{className:"m-0",children:(0,d.__)("Pattern:","bitform")}),!N.isPro&&(0,B.jsx)("span",{className:"pro-badge ml-2",children:(0,d.__)("Pro","bitform")})]}),(0,B.jsx)("input",{className:"btcd-paper-inp mt-1",type:"text",placeholder:"e.g. ([A-Z])\\w+",list:"patterns",disabled:!N.isPro,value:P(L),onChange:function(e){if(N.isPro){var n=e.target.value;if(""===n)delete w.valid.regexr;else{var i=n.replaceAll("\\","$_bf_$");w.valid.regexr=i,w.err||(w.err={}),w.err.regexr||(w.err.regexr={});var r=li.find((function(e){return e.val===i}));w.err.regexr.dflt="<p>"+(r?r.msg:"Pattern not matched")+"</p>",w.err.regexr.show=!0,"password"===w.typ&&delete w.valid.validations}S((function(e){var n;return(0,t.Z)({},e,((n={})[y]=w,n))}))}}}),(0,B.jsx)("datalist",{id:"patterns",children:li.map((function(e,n){return(0,B.jsx)("option",{value:P(e.val),children:e.lbl},""+2*n)}))})]}),(0,B.jsx)(ye,{inpType:"text",title:(0,d.__)("Flags:","bitform"),value:O,action:function(e){N.isPro&&(""===e.target.value?delete w.valid.flags:w.valid.flags=e.target.value,S((function(e){var n;return(0,t.Z)({},e,((n={})[y]=w,n))})))},placeholder:"e.g. g",className:"w-2",cls:"mt-2",disabled:!N.isPro})]}),L&&(0,B.jsx)(Ue,{type:"regexr",title:"Error Message",tipTitle:"By enabling this feature, user will see the error message when input value does not match the pattern"})]}),(0,B.jsx)("div",{className:"pos-rel",children:w.typ.match(/^(text|url|textarea|password|number|email|color|date|username|)$/)&&(0,B.jsxs)("div",{children:[!N.isPro&&(0,B.jsx)("div",{className:"pro-blur flx",style:{height:"100%",left:0,width:"100%",marginTop:14},children:(0,B.jsxs)("div",{className:"pro",children:[(0,d.__)("Available On","bitform"),(0,B.jsx)("a",{href:"https://www.bitapps.pro/bit-form",target:"_blank",rel:"noreferrer",children:(0,B.jsxs)("span",{className:"txt-pro",children:[" ",(0,d.__)("Premium","bitform")]})})]})}),(0,B.jsx)(Ue,{type:"entryUnique",title:"Validate as Entry Unique",tipTitle:"Enabling this option will check from the entry database whether its value is duplicate.",defaultMsg:"The value is already taken. Try another."})]})}),(0,B.jsx)("div",{className:"pos-rel",children:w.typ.match(/^(email|username)$/)&&(0,B.jsxs)("div",{children:[!N.isPro&&(0,B.jsx)("div",{className:"pro-blur flx",style:{height:"100%",left:0,width:"100%",marginTop:14},children:(0,B.jsxs)("div",{className:"pro",children:[(0,d.__)("Available On","bitform"),(0,B.jsx)("a",{href:"https://www.bitapps.pro/bit-form",target:"_blank",rel:"noreferrer",children:(0,B.jsxs)("span",{className:"txt-pro",children:[" ",(0,d.__)("Premium","bitform")]})})]})}),(0,B.jsx)(Ue,{type:"userUnique",title:"Validate as User Unique",tipTitle:"Enabling this option will check from the user database whether its value is duplicate.",defaultMsg:"The value is already taken. Try another."})]})})]})}const si=(0,s.memo)(oi);function ci(e){var n=e.size;return(0,B.jsxs)("svg",{width:n,height:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 215 215",children:[(0,B.jsx)("path",{className:"svg-icn",strokeWidth:"12",d:"M46.3 135a10.6 10.6 0 01-.6-15.1l.6-.6a11.4 11.4 0 0112.8-1.3 11 11 0 012.3 1.7l20.5 19V53.1A12.2 12.2 0 0188 42.4a11.9 11.9 0 015.5-1.4h.8A11.6 11.6 0 01105 52.7v34.5a11.8 11.8 0 0123.1 3.5 12 12 0 0122.7 4 11.1 11.1 0 0112.4-8.4 11 11 0 019 10.2v61a41.1 41.1 0 01-7.2 23.4 43.2 43.2 0 01-27.1 17.7 40.2 40.2 0 01-11.2.5 42 42 0 01-24.6-11.5z"}),(0,B.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"12px",strokeMiterlimit:"10",d:"M105 87.2V103M128.1 87.2v23.1M150.8 91.5v26.9M66.3 63.3A31.1 31.1 0 0162 48.5a31.8 31.8 0 0163.4-2.7 31.1 31.1 0 01-4.3 17.3"})]})}const di=function(e){var n=e.style,i=e.styleDispatch,a=e.brkPoint,l=e.setResponsiveView,o=(0,r.$B)().path,c=(0,r.UO)(),u=c.formType,m=c.formID,p=(0,s.useState)(!1),h=p[0],g=p[1],f=function(e){var n=e.title,i=e.sub,t=e.icn,r=e.link;return(0,B.jsxs)(W.OL,{to:"/form/builder/"+u+"/"+m+"/"+r,activeClassName:"s-t-l-active",className:"btcd-s-tab-link active flx w-5 ",children:["string"===typeof t?(0,B.jsx)("span",{className:"btcd-icn icn-"+t+" mr-2"}):t,(0,B.jsxs)("div",{className:"d-in-b",children:[(0,B.jsx)("div",{className:"title",children:n}),(0,B.jsx)("div",{className:"sub",children:i})]})]})};return(0,B.jsxs)("div",{className:"elm-settings",children:[(0,B.jsxs)("div",{className:"elm-settings-title pos-rel flx",style:(0,t.Z)({},h&&{boxShadow:"0 0px 16px 2px #b0b7d8"}),children:[(0,B.jsx)(f,{title:(0,d.__)("Field","bitform"),sub:(0,d.__)("Settings","bitform"),icn:"settings",link:"fs"}),(0,B.jsx)(f,{title:(0,d.__)("Style","bitform"),sub:(0,d.__)("Customize","bitform"),icn:(0,B.jsx)("i",{className:"mr-2",children:(0,B.jsx)(P,{height:"22",width:"22"})}),link:"style"})]}),(0,B.jsx)("div",{className:"btcd-hr"}),(0,B.jsx)("div",{className:"settings",children:(0,B.jsxs)(R.$B,{onScroll:function(e){var n=e.target.scrollTop;g(n>20)},autoHide:!0,children:[(0,B.jsxs)(r.rs,{children:[(0,B.jsx)(r.AW,{path:o+"/fs",children:(0,B.jsx)(ui,{})}),(0,B.jsxs)(r.AW,{exact:!0,path:o+"/style",children:[(0,B.jsx)(W.rU,{to:"/form/builder/"+u+"/"+m+"/style/bg",children:(0,B.jsx)(hi,{icn:(0,B.jsx)(ae,{w:"20"}),title:(0,d.__)("Background Customize","bitform")})}),(0,B.jsx)(W.rU,{to:"/form/builder/"+u+"/"+m+"/style/f",children:(0,B.jsx)(hi,{icn:(0,B.jsx)(re,{w:"20"}),title:(0,d.__)("Form Customize","bitform")})}),(0,B.jsx)(W.rU,{to:"/form/builder/"+u+"/"+m+"/style/fb",children:(0,B.jsx)(hi,{icn:(0,B.jsx)(le,{w:"20"}),title:(0,d.__)("Field Block Customize","bitform")})}),(0,B.jsx)(W.rU,{to:"/form/builder/"+u+"/"+m+"/style/fl",children:(0,B.jsx)(hi,{icn:(0,B.jsx)(ie,{w:"20"}),title:(0,d.__)("Field Customize","bitform")})})]}),(0,B.jsx)(r.AW,{path:o+"/style/bg",children:(0,B.jsx)(ii,{editorLabel:(0,d.__)("Form Background","bitform"),compStyle:n,cls:"._frm-bg-"+m,styleDispatch:i,brkPoint:a,setResponsiveView:l,styleConfig:ai.formbg,formID:m})}),(0,B.jsx)(r.AW,{path:o+"/style/f",children:(0,B.jsx)(ii,{editorLabel:(0,d.__)("Form style","bitform"),compStyle:n,cls:"._frm-"+m,styleDispatch:i,brkPoint:a,setResponsiveView:l,styleConfig:ai.form,formID:m})}),(0,B.jsx)(r.AW,{path:o+"/style/fb",children:(0,B.jsx)(ii,{editorLabel:(0,d.__)("Field Block","bitform"),compStyle:n,cls:".fld-wrp-"+m,styleDispatch:i,brkPoint:a,setResponsiveView:l,styleConfig:ai.field_block,formID:m})}),(0,B.jsxs)(r.AW,{exact:!0,path:o+"/style/fl",children:[(0,B.jsx)(W.rU,{to:"/form/builder/"+u+"/"+m+"/style",children:(0,B.jsxs)("h4",{className:"w-9 mt-2 m-a flx txt-dp",children:[(0,B.jsx)("button",{className:"icn-btn",type:"button","aria-label":"back btn",children:(0,B.jsx)(Ae.Z,{})}),(0,B.jsxs)("div",{className:"flx w-10",children:[(0,B.jsx)("span",{children:(0,d.__)("Back","bitform")}),(0,B.jsx)("div",{className:"txt-center w-10 f-5",children:(0,d.__)("Field Customize","bitform")})]})]})}),(0,B.jsx)(W.rU,{to:"/form/builder/"+u+"/"+m+"/style/fl/fld",children:(0,B.jsx)(hi,{icn:(0,B.jsx)(ie,{w:"20"}),title:(0,d.__)("Field Style","bitform")})}),(0,B.jsx)(W.rU,{to:"/form/builder/"+u+"/"+m+"/style/fl/dpd",children:(0,B.jsx)(hi,{icn:(0,B.jsx)(ne,{w:"20"}),title:"Dropdown Style"})}),(0,B.jsx)(W.rU,{to:"/form/builder/"+u+"/"+m+"/style/fl/ppl",children:(0,B.jsx)(hi,{icn:(0,B.jsx)(ue,{w:"20"}),title:(0,d.__)("Paypal Style","bitform")})}),(0,B.jsx)(W.rU,{to:"/form/builder/"+u+"/"+m+"/style/fl/btn",children:(0,B.jsx)(hi,{icn:(0,B.jsx)(ci,{size:"24"}),title:"Button Style"})})]}),(0,B.jsxs)(r.AW,{path:o+"/style/fl/fld",children:[(0,B.jsx)(ii,{editorLabel:(0,d.__)("Field Style","bitform"),title:(0,d.__)("Label Style","bitform"),compStyle:n,cls:".fld-lbl-"+m,styleDispatch:i,brkPoint:a,setResponsiveView:l,styleConfig:ai.field_label,formID:m}),(0,B.jsx)(ii,{title:(0,d.__)("Field Style","bitform"),noBack:!0,compStyle:n,cls:"input.fld-"+m+",textarea.fld-"+m,styleDispatch:i,brkPoint:a,setResponsiveView:l,styleConfig:ai.field,formID:m})]}),(0,B.jsx)(r.AW,{path:o+"/style/fl/ppl",children:(0,B.jsx)(ri,{})}),(0,B.jsx)(r.AW,{path:o+"/style/fl/dpd",children:(0,B.jsx)(ti,{editorLabel:"Dropdown Style",style:n,styleDispatch:i,brkPoint:a,setResponsiveView:l,styleEditorConfig:ai,formID:m})}),(0,B.jsx)(r.AW,{path:o+"/style/fl/btn",children:(0,B.jsx)(ii,{title:""+(0,d.__)("Button Style","bitform"),noBack:!0,compStyle:n,cls:".btcd-sub-btn",styleDispatch:i,brkPoint:a,setResponsiveView:l,styleConfig:ai.button,formID:m})})]}),(0,B.jsx)("div",{className:"mb-50"})]})})]})};var ui=function(){var e,n=(0,o.sJ)(D.AK),i=(0,o.sJ)(D.gx);switch(null==n||null==(e=n[i])?void 0:e.typ){case"text":case"username":case"number":case"password":case"email":case"url":case"textarea":case"date":case"datetime-local":case"time":case"month":case"week":case"color":return(0,B.jsx)(si,{});case"check":case"radio":return(0,B.jsx)(hn,{});case"select":case"dropdown":return(0,B.jsx)(_n,{});case"file-up":return(0,B.jsx)(Xe,{});case"recaptcha":return(0,B.jsx)(vn,{});case"decision-box":return(0,B.jsx)(Te,{});case"html":return(0,B.jsx)(Oe,{});case"button":return(0,B.jsx)(De,{});case"paypal":return(0,B.jsx)(Ve,{});case"razorpay":return(0,B.jsx)(bn,{});default:return(0,B.jsx)(mi,{})}};function mi(){var e=(0,o.sJ)(D.AK),n=(0,o.Zl)(D.gx),i=[],t=function(t){if(Object.prototype.hasOwnProperty.call(e,t)){var r=e[t],a=r.typ,l=r.lbl,o=r.adminLbl;"decision-box"===e[t].typ&&(l=e[t].adminLbl),i.push((0,B.jsx)(hi,{icn:e[t].typ,title:l||o||a,sub:t,action:function(){return n(t)}},t))}};for(var r in e)t(r);return i}var pi=function(e){switch(e){case"text":return(0,B.jsx)(fe,{size:"23"});case"username":return(0,B.jsx)(xe.Z,{size:"23"});case"textarea":return(0,B.jsx)(ge,{size:"23"});case"check":return(0,B.jsx)($,{w:"23"});case"radio":return(0,B.jsx)(me,{size:"23"});case"number":return(0,B.jsx)(ce,{w:"23"});case"select":return(0,B.jsx)(ne,{w:"23"});case"password":return(0,B.jsx)(de,{size:"23"});case"email":return(0,B.jsx)(oe.Z,{size:"23"});case"url":return(0,B.jsx)(ve,{w:"23"});case"file-up":return(0,B.jsx)(te,{w:"23"});case"date":return(0,B.jsx)(Y,{w:"23"});case"time":return(0,B.jsx)(be,{size:"23"});case"datetime-local":return(0,B.jsx)(J,{w:"23"});case"month":return(0,B.jsx)(se,{w:"23"});case"week":return(0,B.jsx)(_e,{size:"23"});case"color":return(0,B.jsx)(q,{w:"23"});case"recaptcha":return(0,B.jsx)(he.Z,{size:"23"});case"decision-box":return(0,B.jsx)(Q,{size:"23"});case"button":return(0,B.jsx)(ci,{size:"26"});case"html":return(0,B.jsx)(ee.Z,{size:"23"});case"paypal":return(0,B.jsx)(ue,{w:"23"});case"razorpay":return(0,B.jsx)(pe,{w:"17",h:"23"});default:return!1}};function hi(e){var n=e.icn,i=e.title,r=e.sub,a=e.action,l={};return void 0!==a&&(l.role="button",l.tabIndex=0,l.onKeyPress=a,l.onClick=a),(0,B.jsx)("div",(0,t.Z)({className:"btc-s-l mt-2"},l,{children:(0,B.jsxs)("div",{className:"flx flx-between ",children:[(0,B.jsxs)("div",{className:"flx w-9",children:[(0,B.jsx)("span",{className:"lft-icn mr-2 btcd-icn-lg flx br-50",children:"string"===typeof n?pi(n):n}),(0,B.jsxs)("div",{className:"w-nwrp o-h",children:[(0,B.jsx)("div",{className:"txt-o o-h mb-1",children:i}),r&&(0,B.jsxs)("small",{children:[(0,d.__)("Key:","bitform")," "+r]})]})]}),(0,B.jsx)("span",{className:"btcd-icn icn-chevron-right btc-icn-md"})]})}))}var gi=function(e){var n;return(n={})["._frm-bg-"+e]={"border-radius":"10px 10px 10px 10px","background-size":"100% 100%","background-color":"rgba(255, 255, 255, 1)"},n["._frm-g-"+e]={},n["._frm-"+e]={margin:"0px 0px 0px 0px",padding:"15px 15px 15px 15px"},n[".fld-wrp-"+e]={padding:"10px 10px 10px 10px"},n[".fld-lbl-"+e]={"font-size":"16px",color:"rgba(42, 49, 99, 1)!important","line-height":"1.4!important"},n["input.fld-"+e+",textarea.fld-"+e]={"background-color":"rgba(0, 0, 0, 0)!important","border-color":"rgba(199, 212, 221, 1)!important","border-radius":"6px 6px 6px 6px!important","border-style":"solid!important","border-width":"1px 1px 1px 1px!important","font-size":"15px!important",color:"rgba(0, 0, 0, 1)!important",margin:"5px 0 0 0!important",padding:"10px 8px 10px 8px!important","line-height":"1.4!important"},n["input.fld-"+e+":focus,textarea.fld-"+e+":focus"]={"box-shadow":"0px 0px 0px 3px rgba(151, 203, 252, 0.38) !important","border-color":"rgba(29, 158, 249, 1)!important"},n[".fld-"+e+">.btcd-ck-wrp span:first-child"]={color:"rgba(0, 0, 0, 1) !important"},n["input.fld-"+e+"::placeholder,textarea.fld-"+e+"::placeholder"]={color:"rgba(213, 212, 221, 1)!important"},n["input.fld-"+e+"::-webkit-input-placeholder,textarea.fld-"+e+"::-webkit-input-placeholder"]={color:"rgba(213, 212, 221, 1)!important"},n["input.fld-"+e+"::-ms-input-placeholder,textarea.fld-"+e+"::-ms-input-placeholder"]={color:"rgba(213, 212, 221, 1)!important"},n["input.fld-"+e+":-ms-input-placeholder,textarea.fld-"+e+":-ms-input-placeholder"]={color:"rgba(213, 212, 221, 1)!important"},n["input.fld-"+e+":hover,textarea.fld-"+e+":hover"]={"border-color":"rgba(29, 158, 249, 1)!important"},n[".fld-"+e+".dpd"]={"--border-radius":"8px"},n[".fld-"+e+".dpd .msl"]={"border-color":"rgba(199, 212, 221, 1)!important"},n["@media only screen and (max-width:600px)"]={},n["@media only screen and (max-width:400px)"]={},n},fi=i(4561);const xi=function(){var e=window.innerWidth-480;return(0,B.jsxs)(fi.ZP,{speed:.5,width:"100%",height:430,viewBox:"0 0 1000 430",backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb",children:[(0,B.jsx)("rect",{x:"10",y:"10",rx:"0",ry:"0",width:e-555,height:"80"}),(0,B.jsx)("rect",{x:"521",y:"10",rx:"0",ry:"0",width:e-530,height:"80"}),(0,B.jsx)("rect",{x:"10",y:"100",rx:"0",ry:"0",width:62.7*e/100,height:"80"}),(0,B.jsx)("rect",{x:"680",y:"100",rx:"0",ry:"0",width:35*e/100,height:"80"}),(0,B.jsx)("rect",{x:"10",y:"193",rx:"0",ry:"0",width:40*e/100,height:"80"}),(0,B.jsx)("rect",{x:"440",y:"193",rx:"0",ry:"0",width:57.7*e/100,height:"80"}),(0,B.jsx)("rect",{x:"10",y:"283",rx:"0",ry:"0",width:23.5*e/100,height:"80"}),(0,B.jsx)("rect",{x:"265",y:"283",rx:"0",ry:"0",width:74.3*e/100,height:"80"}),(0,B.jsx)("rect",{x:"870",y:"389",rx:"5",ry:"5",width:"143",height:"36"}),(0,B.jsx)("rect",{x:"725",y:"389",rx:"5",ry:"5",width:"122",height:"36"})]})};function bi(e){var n=e.setNewData,i=(e.setDrgElm,e.value),t=(e.setisToolDragging,e.children),r=e.title,a=(0,o.Zl)(D.mU);return(0,s.useEffect)((function(){var e=document.createElement("div");e.innerHTML="asd",e.classList.add("tools"),document.body.appendChild(e)}),[]),(0,B.jsx)("div",{tabIndex:0,title:r,type:"button",role:"button",className:"tools",draggable:!0,unselectable:"on",onClick:function(){return n(i)},onKeyPress:function(){return n(i)},onDragStart:function(e){e.dataTransfer.setData("text/plain",""),a(i)},onDragEnd:function(){return a(null)},children:t})}const vi=(0,s.memo)(bi),_i=JSON.parse('[{"label":"Afghanistan","value":"Afghanistan","code":"AF","prefix_img":"/../static/countries/af.png"},{"label":"Albania","value":"Albania","code":"AL","prefix_img":"/../static/countries/al.png"},{"label":"Algeria","value":"Algeria","code":"DZ","prefix_img":"/../static/countries/dz.png"},{"label":"American Samoa","value":"American Samoa","code":"AS","prefix_img":"/../static/countries/as.png"},{"label":"Andorra","value":"Andorra","code":"AD","prefix_img":"/../static/countries/ad.png"},{"label":"Angola","value":"Angola","code":"AO","prefix_img":"/../static/countries/ao.png"},{"label":"Anguilla","value":"Anguilla","code":"AI","prefix_img":"/../static/countries/ai.png"},{"label":"Antarctica","value":"Antarctica","code":"AQ","prefix_img":"/../static/countries/aq.png"},{"label":"Antigua and Barbuda","value":"Antigua and Barbuda","code":"AG","prefix_img":"/../static/countries/ag.png"},{"label":"Argentina","value":"Argentina","code":"AR","prefix_img":"/../static/countries/ar.png"},{"label":"Armenia","value":"Armenia","code":"AM","prefix_img":"/../static/countries/am.png"},{"label":"Aruba","value":"Aruba","code":"AW","prefix_img":"/../static/countries/aw.png"},{"label":"Australia","value":"Australia","code":"AU","prefix_img":"/../static/countries/au.png"},{"label":"Austria","value":"Austria","code":"AT","prefix_img":"/../static/countries/at.png"},{"label":"Azerbaijan","value":"Azerbaijan","code":"AZ","prefix_img":"/../static/countries/az.png"},{"label":"Bahamas","value":"Bahamas","code":"BS","prefix_img":"/../static/countries/bs.png"},{"label":"Bahrain","value":"Bahrain","code":"BH","prefix_img":"/../static/countries/bh.png"},{"label":"Bangladesh","value":"Bangladesh","code":"BD","prefix_img":"/../static/countries/bd.png"},{"label":"Barbados","value":"Barbados","code":"BB","prefix_img":"/../static/countries/bb.png"},{"label":"Belarus","value":"Belarus","code":"BY","prefix_img":"/../static/countries/by.png"},{"label":"Belgium","value":"Belgium","code":"BE","prefix_img":"/../static/countries/be.png"},{"label":"Belize","value":"Belize","code":"BZ","prefix_img":"/../static/countries/bz.png"},{"label":"Benin","value":"Benin","code":"BJ","prefix_img":"/../static/countries/bj.png"},{"label":"Bermuda","value":"Bermuda","code":"BM","prefix_img":"/../static/countries/bm.png"},{"label":"Bhutan","value":"Bhutan","code":"BT","prefix_img":"/../static/countries/bt.png"},{"label":"Bolivia, Plurinational State of","value":"Bolivia, Plurinational State of","code":"BO","prefix_img":"/../static/countries/bo.png"},{"label":"Bosnia and Herzegovina","value":"Bosnia and Herzegovina","code":"BA","prefix_img":"/../static/countries/ba.png"},{"label":"Botswana","value":"Botswana","code":"BW","prefix_img":"/../static/countries/bw.png"},{"label":"Bouvet Island","value":"Bouvet Island","code":"BV","prefix_img":"/../static/countries/bv.png"},{"label":"Brazil","value":"Brazil","code":"BR","prefix_img":"/../static/countries/br.png"},{"label":"British Indian Ocean Territory","value":"British Indian Ocean Territory","code":"IO","prefix_img":"/../static/countries/io.png"},{"label":"Brunei Darussalam","value":"Brunei Darussalam","code":"BN","prefix_img":"/../static/countries/bn.png"},{"label":"Bulgaria","value":"Bulgaria","code":"BG","prefix_img":"/../static/countries/bg.png"},{"label":"Burkina Faso","value":"Burkina Faso","code":"BF","prefix_img":"/../static/countries/bf.png"},{"label":"Burundi","value":"Burundi","code":"BI","prefix_img":"/../static/countries/bi.png"},{"label":"Cambodia","value":"Cambodia","code":"KH","prefix_img":"/../static/countries/kh.png"},{"label":"Cameroon","value":"Cameroon","code":"CM","prefix_img":"/../static/countries/cm.png"},{"label":"Canada","value":"Canada","code":"CA","prefix_img":"/../static/countries/ca.png"},{"label":"Cape Verde","value":"Cape Verde","code":"CV","prefix_img":"/../static/countries/cv.png"},{"label":"Caribbean Netherlands","value":"Caribbean Netherlands","code":"BQ","prefix_img":"/../static/countries/bq.png"},{"label":"Cayman Islands","value":"Cayman Islands","code":"KY","prefix_img":"/../static/countries/ky.png"},{"label":"Central African Republic","value":"Central African Republic","code":"CF","prefix_img":"/../static/countries/cf.png"},{"label":"Chad","value":"Chad","code":"TD","prefix_img":"/../static/countries/td.png"},{"label":"Chile","value":"Chile","code":"CL","prefix_img":"/../static/countries/cl.png"},{"label":"China (People\'s Republic of China)","value":"China (People\'s Republic of China)","code":"CN","prefix_img":"/../static/countries/cn.png"},{"label":"Christmas Island","value":"Christmas Island","code":"CX","prefix_img":"/../static/countries/cx.png"},{"label":"Cocos (Keeling) Islands","value":"Cocos (Keeling) Islands","code":"CC","prefix_img":"/../static/countries/cc.png"},{"label":"Colombia","value":"Colombia","code":"CO","prefix_img":"/../static/countries/co.png"},{"label":"Comoros","value":"Comoros","code":"KM","prefix_img":"/../static/countries/km.png"},{"label":"Congo, the Democratic Republic of the","value":"Congo, the Democratic Republic of the","code":"CD","prefix_img":"/../static/countries/cd.png"},{"label":"Cook Islands","value":"Cook Islands","code":"CK","prefix_img":"/../static/countries/ck.png"},{"label":"Costa Rica","value":"Costa Rica","code":"CR","prefix_img":"/../static/countries/cr.png"},{"label":"Croatia","value":"Croatia","code":"HR","prefix_img":"/../static/countries/hr.png"},{"label":"Cuba","value":"Cuba","code":"CU","prefix_img":"/../static/countries/cu.png"},{"label":"Curaçao","value":"Curaçao","code":"CW","prefix_img":"/../static/countries/cw.png"},{"label":"Cyprus","value":"Cyprus","code":"CY","prefix_img":"/../static/countries/cy.png"},{"label":"Czech Republic","value":"Czech Republic","code":"CZ","prefix_img":"/../static/countries/cz.png"},{"label":"Côte d\'Ivoire","value":"Côte d\'Ivoire","code":"CI","prefix_img":"/../static/countries/ci.png"},{"label":"Denmark","value":"Denmark","code":"DK","prefix_img":"/../static/countries/dk.png"},{"label":"Djibouti","value":"Djibouti","code":"DJ","prefix_img":"/../static/countries/dj.png"},{"label":"Dominica","value":"Dominica","code":"DM","prefix_img":"/../static/countries/dm.png"},{"label":"Dominican Republic","value":"Dominican Republic","code":"DO","prefix_img":"/../static/countries/do.png"},{"label":"Ecuador","value":"Ecuador","code":"EC","prefix_img":"/../static/countries/ec.png"},{"label":"Egypt","value":"Egypt","code":"EG","prefix_img":"/../static/countries/eg.png"},{"label":"El Salvador","value":"El Salvador","code":"SV","prefix_img":"/../static/countries/sv.png"},{"label":"England","value":"England","code":"GB-ENG","prefix_img":"/../static/countries/gb-eng.png"},{"label":"Equatorial Guinea","value":"Equatorial Guinea","code":"GQ","prefix_img":"/../static/countries/gq.png"},{"label":"Eritrea","value":"Eritrea","code":"ER","prefix_img":"/../static/countries/er.png"},{"label":"Estonia","value":"Estonia","code":"EE","prefix_img":"/../static/countries/ee.png"},{"label":"Ethiopia","value":"Ethiopia","code":"ET","prefix_img":"/../static/countries/et.png"},{"label":"Europe","value":"Europe","code":"EU","prefix_img":"/../static/countries/eu.png"},{"label":"Falkland Islands (Malvinas)","value":"Falkland Islands (Malvinas)","code":"FK","prefix_img":"/../static/countries/fk.png"},{"label":"Faroe Islands","value":"Faroe Islands","code":"FO","prefix_img":"/../static/countries/fo.png"},{"label":"Fiji","value":"Fiji","code":"FJ","prefix_img":"/../static/countries/fj.png"},{"label":"Finland","value":"Finland","code":"FI","prefix_img":"/../static/countries/fi.png"},{"label":"France","value":"France","code":"FR","prefix_img":"/../static/countries/fr.png"},{"label":"French Guiana","value":"French Guiana","code":"GF","prefix_img":"/../static/countries/gf.png"},{"label":"French Polynesia","value":"French Polynesia","code":"PF","prefix_img":"/../static/countries/pf.png"},{"label":"French Southern Territories","value":"French Southern Territories","code":"TF","prefix_img":"/../static/countries/tf.png"},{"label":"Gabon","value":"Gabon","code":"GA","prefix_img":"/../static/countries/ga.png"},{"label":"Gambia","value":"Gambia","code":"GM","prefix_img":"/../static/countries/gm.png"},{"label":"Georgia","value":"Georgia","code":"GE","prefix_img":"/../static/countries/ge.png"},{"label":"Germany","value":"Germany","code":"DE","prefix_img":"/../static/countries/de.png"},{"label":"Ghana","value":"Ghana","code":"GH","prefix_img":"/../static/countries/gh.png"},{"label":"Gibraltar","value":"Gibraltar","code":"GI","prefix_img":"/../static/countries/gi.png"},{"label":"Greece","value":"Greece","code":"GR","prefix_img":"/../static/countries/gr.png"},{"label":"Greenland","value":"Greenland","code":"GL","prefix_img":"/../static/countries/gl.png"},{"label":"Grenada","value":"Grenada","code":"GD","prefix_img":"/../static/countries/gd.png"},{"label":"Guadeloupe","value":"Guadeloupe","code":"GP","prefix_img":"/../static/countries/gp.png"},{"label":"Guam","value":"Guam","code":"GU","prefix_img":"/../static/countries/gu.png"},{"label":"Guatemala","value":"Guatemala","code":"GT","prefix_img":"/../static/countries/gt.png"},{"label":"Guernsey","value":"Guernsey","code":"GG","prefix_img":"/../static/countries/gg.png"},{"label":"Guinea","value":"Guinea","code":"GN","prefix_img":"/../static/countries/gn.png"},{"label":"Guinea-Bissau","value":"Guinea-Bissau","code":"GW","prefix_img":"/../static/countries/gw.png"},{"label":"Guyana","value":"Guyana","code":"GY","prefix_img":"/../static/countries/gy.png"},{"label":"Haiti","value":"Haiti","code":"HT","prefix_img":"/../static/countries/ht.png"},{"label":"Heard Island and McDonald Islands","value":"Heard Island and McDonald Islands","code":"HM","prefix_img":"/../static/countries/hm.png"},{"label":"Holy See (Vatican City State)","value":"Holy See (Vatican City State)","code":"VA","prefix_img":"/../static/countries/va.png"},{"label":"Honduras","value":"Honduras","code":"HN","prefix_img":"/../static/countries/hn.png"},{"label":"Hong Kong","value":"Hong Kong","code":"HK","prefix_img":"/../static/countries/hk.png"},{"label":"Hungary","value":"Hungary","code":"HU","prefix_img":"/../static/countries/hu.png"},{"label":"Iceland","value":"Iceland","code":"IS","prefix_img":"/../static/countries/is.png"},{"label":"India","value":"India","code":"IN","prefix_img":"/../static/countries/in.png"},{"label":"Indonesia","value":"Indonesia","code":"ID","prefix_img":"/../static/countries/id.png"},{"label":"Iran, Islamic Republic of","value":"Iran, Islamic Republic of","code":"IR","prefix_img":"/../static/countries/ir.png"},{"label":"Iraq","value":"Iraq","code":"IQ","prefix_img":"/../static/countries/iq.png"},{"label":"Ireland","value":"Ireland","code":"IE","prefix_img":"/../static/countries/ie.png"},{"label":"Isle of Man","value":"Isle of Man","code":"IM","prefix_img":"/../static/countries/im.png"},{"label":"Israel","value":"Israel","code":"IL","prefix_img":"/../static/countries/il.png"},{"label":"Italy","value":"Italy","code":"IT","prefix_img":"/../static/countries/it.png"},{"label":"Jamaica","value":"Jamaica","code":"JM","prefix_img":"/../static/countries/jm.png"},{"label":"Japan","value":"Japan","code":"JP","prefix_img":"/../static/countries/jp.png"},{"label":"Jersey","value":"Jersey","code":"JE","prefix_img":"/../static/countries/je.png"},{"label":"Jordan","value":"Jordan","code":"JO","prefix_img":"/../static/countries/jo.png"},{"label":"Kazakhstan","value":"Kazakhstan","code":"KZ","prefix_img":"/../static/countries/kz.png"},{"label":"Kenya","value":"Kenya","code":"KE","prefix_img":"/../static/countries/ke.png"},{"label":"Kiribati","value":"Kiribati","code":"KI","prefix_img":"/../static/countries/ki.png"},{"label":"Korea, Democratic People\'s Republic of","value":"Korea, Democratic People\'s Republic of","code":"KP","prefix_img":"/../static/countries/kp.png"},{"label":"Korea, Republic of","value":"Korea, Republic of","code":"KR","prefix_img":"/../static/countries/kr.png"},{"label":"Kosovo","value":"Kosovo","code":"XK","prefix_img":"/../static/countries/xk.png"},{"label":"Kuwait","value":"Kuwait","code":"KW","prefix_img":"/../static/countries/kw.png"},{"label":"Kyrgyzstan","value":"Kyrgyzstan","code":"KG","prefix_img":"/../static/countries/kg.png"},{"label":"Laos (Lao People\'s Democratic Republic)","value":"Laos (Lao People\'s Democratic Republic)","code":"LA","prefix_img":"/../static/countries/la.png"},{"label":"Latvia","value":"Latvia","code":"LV","prefix_img":"/../static/countries/lv.png"},{"label":"Lebanon","value":"Lebanon","code":"LB","prefix_img":"/../static/countries/lb.png"},{"label":"Lesotho","value":"Lesotho","code":"LS","prefix_img":"/../static/countries/ls.png"},{"label":"Liberia","value":"Liberia","code":"LR","prefix_img":"/../static/countries/lr.png"},{"label":"Libya","value":"Libya","code":"LY","prefix_img":"/../static/countries/ly.png"},{"label":"Liechtenstein","value":"Liechtenstein","code":"LI","prefix_img":"/../static/countries/li.png"},{"label":"Lithuania","value":"Lithuania","code":"LT","prefix_img":"/../static/countries/lt.png"},{"label":"Luxembourg","value":"Luxembourg","code":"LU","prefix_img":"/../static/countries/lu.png"},{"label":"Macao","value":"Macao","code":"MO","prefix_img":"/../static/countries/mo.png"},{"label":"Macedonia, the former Yugoslav Republic of","value":"Macedonia, the former Yugoslav Republic of","code":"MK","prefix_img":"/../static/countries/mk.png"},{"label":"Madagascar","value":"Madagascar","code":"MG","prefix_img":"/../static/countries/mg.png"},{"label":"Malawi","value":"Malawi","code":"MW","prefix_img":"/../static/countries/mw.png"},{"label":"Malaysia","value":"Malaysia","code":"MY","prefix_img":"/../static/countries/my.png"},{"label":"Maldives","value":"Maldives","code":"MV","prefix_img":"/../static/countries/mv.png"},{"label":"Mali","value":"Mali","code":"ML","prefix_img":"/../static/countries/ml.png"},{"label":"Malta","value":"Malta","code":"MT","prefix_img":"/../static/countries/mt.png"},{"label":"Marshall Islands","value":"Marshall Islands","code":"MH","prefix_img":"/../static/countries/mh.png"},{"label":"Martinique","value":"Martinique","code":"MQ","prefix_img":"/../static/countries/mq.png"},{"label":"Mauritania","value":"Mauritania","code":"MR","prefix_img":"/../static/countries/mr.png"},{"label":"Mauritius","value":"Mauritius","code":"MU","prefix_img":"/../static/countries/mu.png"},{"label":"Mayotte","value":"Mayotte","code":"YT","prefix_img":"/../static/countries/yt.png"},{"label":"Mexico","value":"Mexico","code":"MX","prefix_img":"/../static/countries/mx.png"},{"label":"Micronesia, Federated States of","value":"Micronesia, Federated States of","code":"FM","prefix_img":"/../static/countries/fm.png"},{"label":"Moldova, Republic of","value":"Moldova, Republic of","code":"MD","prefix_img":"/../static/countries/md.png"},{"label":"Monaco","value":"Monaco","code":"MC","prefix_img":"/../static/countries/mc.png"},{"label":"Mongolia","value":"Mongolia","code":"MN","prefix_img":"/../static/countries/mn.png"},{"label":"Montenegro","value":"Montenegro","code":"ME","prefix_img":"/../static/countries/me.png"},{"label":"Montserrat","value":"Montserrat","code":"MS","prefix_img":"/../static/countries/ms.png"},{"label":"Morocco","value":"Morocco","code":"MA","prefix_img":"/../static/countries/ma.png"},{"label":"Mozambique","value":"Mozambique","code":"MZ","prefix_img":"/../static/countries/mz.png"},{"label":"Myanmar","value":"Myanmar","code":"MM","prefix_img":"/../static/countries/mm.png"},{"label":"Namibia","value":"Namibia","code":"NA","prefix_img":"/../static/countries/na.png"},{"label":"Nauru","value":"Nauru","code":"NR","prefix_img":"/../static/countries/nr.png"},{"label":"Nepal","value":"Nepal","code":"NP","prefix_img":"/../static/countries/np.png"},{"label":"Netherlands","value":"Netherlands","code":"NL","prefix_img":"/../static/countries/nl.png"},{"label":"New Caledonia","value":"New Caledonia","code":"NC","prefix_img":"/../static/countries/nc.png"},{"label":"New Zealand","value":"New Zealand","code":"NZ","prefix_img":"/../static/countries/nz.png"},{"label":"Nicaragua","value":"Nicaragua","code":"NI","prefix_img":"/../static/countries/ni.png"},{"label":"Niger","value":"Niger","code":"NE","prefix_img":"/../static/countries/ne.png"},{"label":"Nigeria","value":"Nigeria","code":"NG","prefix_img":"/../static/countries/ng.png"},{"label":"Niue","value":"Niue","code":"NU","prefix_img":"/../static/countries/nu.png"},{"label":"Norfolk Island","value":"Norfolk Island","code":"NF","prefix_img":"/../static/countries/nf.png"},{"label":"Northern Ireland","value":"Northern Ireland","code":"GB-NIR","prefix_img":"/../static/countries/gb-nir.png"},{"label":"Northern Mariana Islands","value":"Northern Mariana Islands","code":"MP","prefix_img":"/../static/countries/mp.png"},{"label":"Norway","value":"Norway","code":"NO","prefix_img":"/../static/countries/no.png"},{"label":"Oman","value":"Oman","code":"OM","prefix_img":"/../static/countries/om.png"},{"label":"Pakistan","value":"Pakistan","code":"PK","prefix_img":"/../static/countries/pk.png"},{"label":"Palau","value":"Palau","code":"PW","prefix_img":"/../static/countries/pw.png"},{"label":"Palestine","value":"Palestine","code":"PS","prefix_img":"/../static/countries/ps.png"},{"label":"Panama","value":"Panama","code":"PA","prefix_img":"/../static/countries/pa.png"},{"label":"Papua New Guinea","value":"Papua New Guinea","code":"PG","prefix_img":"/../static/countries/pg.png"},{"label":"Paraguay","value":"Paraguay","code":"PY","prefix_img":"/../static/countries/py.png"},{"label":"Peru","value":"Peru","code":"PE","prefix_img":"/../static/countries/pe.png"},{"label":"Philippines","value":"Philippines","code":"PH","prefix_img":"/../static/countries/ph.png"},{"label":"Pitcairn","value":"Pitcairn","code":"PN","prefix_img":"/../static/countries/pn.png"},{"label":"Poland","value":"Poland","code":"PL","prefix_img":"/../static/countries/pl.png"},{"label":"Portugal","value":"Portugal","code":"PT","prefix_img":"/../static/countries/pt.png"},{"label":"Puerto Rico","value":"Puerto Rico","code":"PR","prefix_img":"/../static/countries/pr.png"},{"label":"Qatar","value":"Qatar","code":"QA","prefix_img":"/../static/countries/qa.png"},{"label":"Republic of the Congo","value":"Republic of the Congo","code":"CG","prefix_img":"/../static/countries/cg.png"},{"label":"Romania","value":"Romania","code":"RO","prefix_img":"/../static/countries/ro.png"},{"label":"Russian Federation","value":"Russian Federation","code":"RU","prefix_img":"/../static/countries/ru.png"},{"label":"Rwanda","value":"Rwanda","code":"RW","prefix_img":"/../static/countries/rw.png"},{"label":"Réunion","value":"Réunion","code":"RE","prefix_img":"/../static/countries/re.png"},{"label":"Saint Barthélemy","value":"Saint Barthélemy","code":"BL","prefix_img":"/../static/countries/bl.png"},{"label":"Saint Helena, Ascension and Tristan da Cunha","value":"Saint Helena, Ascension and Tristan da Cunha","code":"SH","prefix_img":"/../static/countries/sh.png"},{"label":"Saint Kitts and Nevis","value":"Saint Kitts and Nevis","code":"KN","prefix_img":"/../static/countries/kn.png"},{"label":"Saint Lucia","value":"Saint Lucia","code":"LC","prefix_img":"/../static/countries/lc.png"},{"label":"Saint Martin","value":"Saint Martin","code":"MF","prefix_img":"/../static/countries/mf.png"},{"label":"Saint Pierre and Miquelon","value":"Saint Pierre and Miquelon","code":"PM","prefix_img":"/../static/countries/pm.png"},{"label":"Saint Vincent and the Grenadines","value":"Saint Vincent and the Grenadines","code":"VC","prefix_img":"/../static/countries/vc.png"},{"label":"Samoa","value":"Samoa","code":"WS","prefix_img":"/../static/countries/ws.png"},{"label":"San Marino","value":"San Marino","code":"SM","prefix_img":"/../static/countries/sm.png"},{"label":"Sao Tome and Principe","value":"Sao Tome and Principe","code":"ST","prefix_img":"/../static/countries/st.png"},{"label":"Saudi Arabia","value":"Saudi Arabia","code":"SA","prefix_img":"/../static/countries/sa.png"},{"label":"Scotland","value":"Scotland","code":"GB-SCT","prefix_img":"/../static/countries/gb-sct.png"},{"label":"Senegal","value":"Senegal","code":"SN","prefix_img":"/../static/countries/sn.png"},{"label":"Serbia","value":"Serbia","code":"RS","prefix_img":"/../static/countries/rs.png"},{"label":"Seychelles","value":"Seychelles","code":"SC","prefix_img":"/../static/countries/sc.png"},{"label":"Sierra Leone","value":"Sierra Leone","code":"SL","prefix_img":"/../static/countries/sl.png"},{"label":"Singapore","value":"Singapore","code":"SG","prefix_img":"/../static/countries/sg.png"},{"label":"Sint Maarten (Dutch part)","value":"Sint Maarten (Dutch part)","code":"SX","prefix_img":"/../static/countries/sx.png"},{"label":"Slovakia","value":"Slovakia","code":"SK","prefix_img":"/../static/countries/sk.png"},{"label":"Slovenia","value":"Slovenia","code":"SI","prefix_img":"/../static/countries/si.png"},{"label":"Solomon Islands","value":"Solomon Islands","code":"SB","prefix_img":"/../static/countries/sb.png"},{"label":"Somalia","value":"Somalia","code":"SO","prefix_img":"/../static/countries/so.png"},{"label":"South Africa","value":"South Africa","code":"ZA","prefix_img":"/../static/countries/za.png"},{"label":"South Georgia and the South Sandwich Islands","value":"South Georgia and the South Sandwich Islands","code":"GS","prefix_img":"/../static/countries/gs.png"},{"label":"South Sudan","value":"South Sudan","code":"SS","prefix_img":"/../static/countries/ss.png"},{"label":"Spain","value":"Spain","code":"ES","prefix_img":"/../static/countries/es.png"},{"label":"Sri Lanka","value":"Sri Lanka","code":"LK","prefix_img":"/../static/countries/lk.png"},{"label":"Sudan","value":"Sudan","code":"SD","prefix_img":"/../static/countries/sd.png"},{"label":"Suriname","value":"Suriname","code":"SR","prefix_img":"/../static/countries/sr.png"},{"label":"Svalbard and Jan Mayen Islands","value":"Svalbard and Jan Mayen Islands","code":"SJ","prefix_img":"/../static/countries/sj.png"},{"label":"Swaziland","value":"Swaziland","code":"SZ","prefix_img":"/../static/countries/sz.png"},{"label":"Sweden","value":"Sweden","code":"SE","prefix_img":"/../static/countries/se.png"},{"label":"Switzerland","value":"Switzerland","code":"CH","prefix_img":"/../static/countries/ch.png"},{"label":"Syrian Arab Republic","value":"Syrian Arab Republic","code":"SY","prefix_img":"/../static/countries/sy.png"},{"label":"Taiwan (Republic of China)","value":"Taiwan (Republic of China)","code":"TW","prefix_img":"/../static/countries/tw.png"},{"label":"Tajikistan","value":"Tajikistan","code":"TJ","prefix_img":"/../static/countries/tj.png"},{"label":"Tanzania, United Republic of","value":"Tanzania, United Republic of","code":"TZ","prefix_img":"/../static/countries/tz.png"},{"label":"Thailand","value":"Thailand","code":"TH","prefix_img":"/../static/countries/th.png"},{"label":"Timor-Leste","value":"Timor-Leste","code":"TL","prefix_img":"/../static/countries/tl.png"},{"label":"Togo","value":"Togo","code":"TG","prefix_img":"/../static/countries/tg.png"},{"label":"Tokelau","value":"Tokelau","code":"TK","prefix_img":"/../static/countries/tk.png"},{"label":"Tonga","value":"Tonga","code":"TO","prefix_img":"/../static/countries/to.png"},{"label":"Trinidad and Tobago","value":"Trinidad and Tobago","code":"TT","prefix_img":"/../static/countries/tt.png"},{"label":"Tunisia","value":"Tunisia","code":"TN","prefix_img":"/../static/countries/tn.png"},{"label":"Turkey","value":"Turkey","code":"TR","prefix_img":"/../static/countries/tr.png"},{"label":"Turkmenistan","value":"Turkmenistan","code":"TM","prefix_img":"/../static/countries/tm.png"},{"label":"Turks and Caicos Islands","value":"Turks and Caicos Islands","code":"TC","prefix_img":"/../static/countries/tc.png"},{"label":"Tuvalu","value":"Tuvalu","code":"TV","prefix_img":"/../static/countries/tv.png"},{"label":"Uganda","value":"Uganda","code":"UG","prefix_img":"/../static/countries/ug.png"},{"label":"Ukraine","value":"Ukraine","code":"UA","prefix_img":"/../static/countries/ua.png"},{"label":"United Arab Emirates","value":"United Arab Emirates","code":"AE","prefix_img":"/../static/countries/ae.png"},{"label":"United Kingdom","value":"United Kingdom","code":"GB","prefix_img":"/../static/countries/gb.png"},{"label":"United States","value":"United States","code":"US","prefix_img":"/../static/countries/us.png"},{"label":"Uruguay","value":"Uruguay","code":"UY","prefix_img":"/../static/countries/uy.png"},{"label":"US Minor Outlying Islands","value":"US Minor Outlying Islands","code":"UM","prefix_img":"/../static/countries/um.png"},{"label":"Uzbekistan","value":"Uzbekistan","code":"UZ","prefix_img":"/../static/countries/uz.png"},{"label":"Vanuatu","value":"Vanuatu","code":"VU","prefix_img":"/../static/countries/vu.png"},{"label":"Venezuela, Bolivarian Republic of","value":"Venezuela, Bolivarian Republic of","code":"VE","prefix_img":"/../static/countries/ve.png"},{"label":"Vietnam","value":"Vietnam","code":"VN","prefix_img":"/../static/countries/vn.png"},{"label":"Virgin Islands, British","value":"Virgin Islands, British","code":"VG","prefix_img":"/../static/countries/vg.png"},{"label":"Virgin Islands, U.S.","value":"Virgin Islands, U.S.","code":"VI","prefix_img":"/../static/countries/vi.png"},{"label":"Wales","value":"Wales","code":"GB-WLS","prefix_img":"/../static/countries/gb-wls.png"},{"label":"Wallis and Futuna Islands","value":"Wallis and Futuna Islands","code":"WF","prefix_img":"/../static/countries/wf.png"},{"label":"Western Sahara","value":"Western Sahara","code":"EH","prefix_img":"/../static/countries/eh.png"},{"label":"Yemen","value":"Yemen","code":"YE","prefix_img":"/../static/countries/ye.png"},{"label":"Zambia","value":"Zambia","code":"ZM","prefix_img":"/../static/countries/zm.png"},{"label":"Zimbabwe","value":"Zimbabwe","code":"ZW","prefix_img":"/../static/countries/zw.png"},{"label":"�
2 land Islands","value":"�
3 land Islands","code":"AX","prefix_img":"/../static/countries/ax.png"}]');function ji(e){var n=e.size;return(0,B.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,viewBox:"0 0 215 215",children:(0,B.jsx)("path",{fill:"none",strokeWidth:"16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M37 134s8.8-8.8 35.3-8.8 44 17.6 70.5 17.6 35.3-8.8 35.3-8.8V28.1s-8.9 8.9-35.3 8.9-44.1-17.7-70.6-17.7S37 28.1 37 28.1zM37 195.7V134"})})}function Ni(e){var n=e.tolbarSiz,i=e.setNewData,t=e.setTolbar,r=[{name:(0,d.__)("Text","bitform"),icn:(0,B.jsx)(fe,{size:"23"}),pos:{h:2,w:6,i:"n_blk",maxH:2,minH:2},elm:{typ:"text",lbl:(0,d.__)("Text Field","bitform"),ph:(0,d.__)("Placeholder Text...","bitform"),valid:{},err:{}}},{name:(0,d.__)("User Name","bitform"),icn:(0,B.jsx)(xe.Z,{size:"23"}),pos:{h:2,w:6,i:"n_blk",maxH:2,minH:2},elm:{typ:"username",lbl:(0,d.__)("User Name","bitform"),ph:(0,d.__)("Placeholder Text...","bitform"),valid:{},err:{entryUnique:{dflt:"That User Name is taken. Try another.",show:!0}}}},{name:(0,d.__)("Multiline Text","bitform"),icn:(0,B.jsx)(ge,{size:"23"}),pos:{h:3,w:6,i:"block-5",minH:3},elm:{typ:"textarea",lbl:(0,d.__)("Multi-Line Text","bitform"),ph:(0,d.__)("Placeholder Text...","bitform"),valid:{},err:{}}},{name:(0,d.__)("Check Box","bitform"),icn:(0,B.jsx)($,{w:"23"}),pos:{h:2,w:6,i:"n_blk",minH:2},elm:{typ:"check",lbl:(0,d.__)("Check Boxs","bitform"),opt:[{lbl:(0,d.__)("Option 1","bitform")},{lbl:(0,d.__)("Option 2","bitform")},{lbl:(0,d.__)("Option 3","bitform")}],valid:{},err:{}}},{name:(0,d.__)("Radio Button","bitform"),icn:(0,B.jsx)(me,{size:"23"}),pos:{h:2,w:6,i:"n_blk",minH:2},elm:{typ:"radio",lbl:(0,d.__)("Radio","bitform"),round:!0,opt:[{lbl:(0,d.__)("Option 1","bitform")},{lbl:(0,d.__)("Option 2","bitform")},{lbl:(0,d.__)("Option 3","bitform")}],valid:{},err:{}}},{name:(0,d.__)("Number","bitform"),icn:(0,B.jsx)(ce,{w:"23"}),pos:{h:2,w:6,i:"n_blk",maxH:2,minH:2},elm:{typ:"number",lbl:(0,d.__)("Number Field","bitform"),ph:(0,d.__)("Number Input","bitform"),valid:{},err:{invalid:{dflt:"Number is invalid",show:!0}}}},{name:(0,d.__)("Dropdown","bitform"),icn:(0,B.jsx)(ne,{w:"23"}),pos:{h:2,w:6,i:"n_blk",minH:2},elm:{typ:"select",lbl:(0,d.__)("Drop-Down","bitform"),mul:!1,opt:[{label:"Option 1",value:"Option 1"},{label:"Option 2",value:"Option 2"},{label:"Option 3",value:"Option 3"}],valid:{},err:{}}},{name:(0,d.__)("Country","bitform"),icn:(0,B.jsx)(ji,{size:"23"}),pos:{h:2,w:6,i:"n_blk",minH:2},elm:{typ:"select",lbl:(0,d.__)("Select Country","bitform"),mul:!1,opt:_i,valid:{}}},{name:(0,d.__)("Password","bitform"),icn:(0,B.jsx)(de,{size:"23"}),pos:{h:2,w:6,i:"n_blk",maxH:2,minH:2},elm:{typ:"password",lbl:(0,d.__)("Password Field","bitform"),ph:(0,d.__)("Placeholder...","bitform"),valid:{},err:{}}},{name:(0,d.__)("Email","bitform"),icn:(0,B.jsx)(oe.Z,{size:"23"}),pos:{h:2,w:6,i:"n_blk",maxH:2,minH:2},elm:{typ:"email",lbl:(0,d.__)("Email Field","bitform"),ph:(0,d.__)("example@mail.com","bitform"),pattern:"^[^$_bf_$s@]+@[^$_bf_$s@]+$_bf_$.[^$_bf_$s@]+$",valid:{},err:{invalid:{dflt:"Email is invalid",show:!0}}}},{name:(0,d.__)("URL","bitform"),icn:(0,B.jsx)(ve,{w:"23"}),pos:{h:2,w:6,i:"n_blk",maxH:2,minH:2},elm:{typ:"url",attr:{title:"https://www.example.com or www.example.com",pattern:"^(?:(?:https?|ftp):$_bf_$/$_bf_$/)?(?:(?!(?:10|127)(?:$_bf_$.$_bf_$d{1,3}){3})(?!(?:169$_bf_$.254|192$_bf_$.168)(?:$_bf_$.$_bf_$d{1,3}){2})(?!172$_bf_$.(?:1[6-9]|2$_bf_$d|3[0-1])(?:$_bf_$.$_bf_$d{1,3}){2})(?:[1-9]$_bf_$d?|1$_bf_$d$_bf_$d|2[01]$_bf_$d|22[0-3])(?:$_bf_$.(?:1?$_bf_$d{1,2}|2[0-4]$_bf_$d|25[0-5])){2}(?:$_bf_$.(?:[1-9]$_bf_$d?|1$_bf_$d$_bf_$d|2[0-4]$_bf_$d|25[0-4]))|(?:(?:[a-z$_bf_$u00a1-$_bf_$uffff0-9]-*)*[a-z$_bf_$u00a1-$_bf_$uffff0-9]+)(?:$_bf_$.(?:[a-z$_bf_$u00a1-$_bf_$uffff0-9]-*)*[a-z$_bf_$u00a1-$_bf_$uffff0-9]+)*(?:$_bf_$.(?:[a-z$_bf_$u00a1-$_bf_$uffff]{2,})))(?::$_bf_$d{2,5})?(?:$_bf_$/$_bf_$S*)?$"},lbl:(0,d.__)("URL Field","bitform"),ph:(0,d.__)("https://www.example.com","bitform"),valid:{},err:{invalid:{dflt:"URL is invalid",show:!0}}}},{name:(0,d.__)("File Upload","bitform"),icn:(0,B.jsx)(te,{w:"23"}),pos:{h:2,w:6,i:"n_blk",minH:2,minW:2},elm:{typ:"file-up",lbl:(0,d.__)("File Upload","bitform"),upBtnTxt:"Attach File",valid:{},err:{}}},{name:(0,d.__)("Date","bitform"),icn:(0,B.jsx)(Y,{w:"23"}),pos:{h:2,w:6,i:"n_blk",maxH:2,minH:2},elm:{typ:"date",lbl:(0,d.__)("Date Input","bitform"),valid:{},err:{}}},{name:(0,d.__)("Time","bitform"),icn:(0,B.jsx)(be,{size:"23"}),pos:{h:2,w:6,i:"n_blk",maxH:2,minH:2},elm:{typ:"time",lbl:(0,d.__)("Time Input","bitform"),valid:{},err:{}}},{name:(0,d.__)("Date-Time","bitform"),icn:(0,B.jsx)(J,{w:"23"}),pos:{h:2,w:6,i:"n_blk",maxH:2,minH:2},elm:{typ:"datetime-local",lbl:(0,d.__)("Date-Time Input","bitform"),valid:{},err:{}}},{name:(0,d.__)("Month","bitform"),icn:(0,B.jsx)(se,{w:"23"}),pos:{h:2,w:6,i:"n_blk",maxH:2,minH:2},elm:{typ:"month",lbl:(0,d.__)("Month Input","bitform"),valid:{},err:{}}},{name:(0,d.__)("Week","bitform"),icn:(0,B.jsx)(_e,{size:"23"}),pos:{h:2,w:6,i:"n_blk",maxH:2,minH:2},elm:{typ:"week",lbl:(0,d.__)("Week Input","bitform"),valid:{},err:{}}},{name:(0,d.__)("Color Picker","bitform"),icn:(0,B.jsx)(q,{w:"23"}),pos:{h:2,w:6,i:"n_blk",maxH:2,minH:2},elm:{typ:"color",lbl:(0,d.__)("Color Picker","bitform"),valid:{},err:{}}},{name:(0,d.__)("reCaptcha v2","bitform"),icn:(0,B.jsx)(he.Z,{size:"23"}),pos:{h:2,w:6,i:"n_blk",maxH:2,minH:2,minW:2},elm:{typ:"recaptcha",theme:"light",lbl:(0,d.__)("ReCaptcha","bitform"),valid:{}}},{name:(0,d.__)("Decision Box","bitform"),icn:(0,B.jsx)(Q,{size:"23"}),pos:{h:2,w:6,i:"n_blk",minH:1},elm:{typ:"decision-box",adminLbl:(0,d.__)("Decision Box","bitform"),lbl:'<p><span style="font-size: 12pt">'+(0,d.__)("Decision Box","bitform")+"</span></p>",msg:{checked:"Accepted",unchecked:"Not Accepted"},valid:{req:!0},err:{req:{dflt:"This field is required",show:!0}}}},{name:"HTML",icn:(0,B.jsx)(ee.Z,{size:"23"}),pos:{h:2,w:6,i:"n_blk"},elm:{typ:"html",lbl:"HTML Content",content:'<b>Html Field</b><p><span style="font-size: 12pt">Add html content on editor</span></p>',valid:{}}},{name:"Button",icn:(0,B.jsx)(ci,{size:"23"}),pos:{h:2,w:6,i:"n_blk",minH:2,maxH:2},elm:{typ:"button",btnTyp:"button",btnSiz:"md",txt:(0,d.__)("Button"),icn:{pos:"",url:""},valid:{}}},{name:(0,d.__)("Paypal","bitform"),icn:(0,B.jsx)(ue,{w:"23"}),pos:{h:5,w:6,i:"n_blk",minH:3,maxH:7,minW:2},elm:{typ:"paypal",currency:"USD",lbl:(0,d.__)("PayPal","bitform"),style:{layout:"vertical",color:"gold",shape:"rect",label:"paypal"},valid:{}}},{name:(0,d.__)("Razorpay","bitform"),icn:(0,B.jsx)(pe,{w:"17",h:"23"}),pos:{h:2,w:6,i:"n_blk",minH:2,maxH:7,minW:2},elm:{typ:"razorpay",lbl:(0,d.__)("Razorpay","bitform"),btnSiz:"md",fulW:!1,align:"left",btnTxt:"Pay with Razorpay",options:{currency:"INR",theme:{},modal:{},prefill:{},notes:{}},valid:{}}}];return(0,B.jsxs)("div",{className:"toolBar-wrp",style:{width:n&&58},children:[(0,B.jsxs)("div",{className:"btcd-toolbar-title",children:[!n&&"Tool Bar",(0,B.jsx)("button",{className:"icn-btn",onClick:t,type:"button","aria-label":"Toggle Toolbar",children:(0,B.jsx)("span",{className:"btcd-icn icn-"+(n?"chevron-right":"chevron-left")})})]}),(0,s.useMemo)((function(){return(0,B.jsx)(R.$B,{autoHide:!0,style:{maxWidth:400},children:(0,B.jsx)("div",{className:"toolBar",children:r.map((function(e){return(0,B.jsxs)(vi,{setNewData:i,value:{fieldData:e.elm,fieldSize:e.pos},children:[(0,B.jsx)("span",{className:"mr-1",children:e.icn}),!n&&e.name]},e.name)}))})})}),[n])]})}const yi=(0,s.memo)(Ni);var Ci=function(e,n){if("lg"===n.brkPoint)return(0,M.Yg)(e,n.apply),sessionStorage.setItem("btcd-fs",(0,M.BN)(k.sheet(e))),(0,t.Z)({},e);if("md"===n.brkPoint){var i=e["@media only screen and (max-width:600px)"]||e["@media only screen and (max-width: 600px)"];return(0,M.Yg)(i,n.apply),sessionStorage.setItem("btcd-fs",(0,M.BN)(k.sheet(e))),(0,t.Z)({},e)}if("sm"===n.brkPoint){var r=e["@media only screen and (max-width:400px)"]||e["@media only screen and (max-width: 400px)"];return(0,M.Yg)(r,n.apply),sessionStorage.setItem("btcd-fs",(0,M.BN)(k.sheet(e))),(0,t.Z)({},e)}return"init"===n.type?n.style:e},Ai=(0,s.memo)((function(e){var n=e.formType,i=e.formID,t=e.isLoading,r=(0,o.sJ)(D.bt),a="new"===n?r:i,u=JSON.parse(localStorage.getItem("bit-form-config")||"{}").toolbarOff,p=(0,s.useState)(u),h=p[0],g=p[1],f=(0,s.useState)(window.innerWidth-468),x=f[0],b=f[1],v=(0,s.useState)(null),_=v[0],j=v[1],N=(0,s.useState)("lg"),y=N[0],C=N[1],A=(0,s.useReducer)(Ci,gi(a)),S=A[0],w=A[1],I=(0,s.useState)(k.sheet(S)),R=I[0],E=I[1],U=(0,s.useState)(!0),T=U[0],L=U[1],P=(0,s.useState)(null),X=P[0],z=P[1],Z=(0,o.sJ)(D.hi),H=(0,s.createRef)(null),G=!window.document.documentMode;(0,s.useEffect)((function(){"new"===n?(sessionStorage.setItem("btcd-fs",(0,M.BN)(k.sheet(gi(a)))),L(!1)):V()}),[]),(0,s.useEffect)((function(){if("md"===y){var e=S["@media only screen and (max-width:600px)"]||S["@media only screen and (max-width: 600px)"];E(k.sheet(l()(S,e)))}else if("sm"===y){var n=S["@media only screen and (max-width:400px)"]||S["@media only screen and (max-width: 400px)"];E(k.sheet(l()(S,n)))}else"lg"===y&&E(k.sheet(S))}),[y,S]);var F=function(){if("md"===y){var e=S["@media only screen and (max-width:600px)"]||S["@media only screen and (max-width: 600px)"];return l()(S,e)}if("sm"===y){var n=S["@media only screen and (max-width:400px)"]||S["@media only screen and (max-width: 400px)"];return l()(S,n)}return S},V=function(){var e=new Headers;e.append("pragma","no-cache"),e.append("cache-control","no-cache");var n=new URL(Z.styleURL);n.protocol!==window.location.protocol&&(n.protocol=window.location.protocol);var i=(new Date).getTime();fetch(n+"/bitform-"+a+".css?ver="+i,{cache:"no-store",headers:e}).then((function(e){return e.ok?e.text():(L(!1),Promise.reject(e.statusText))})).then((function(e){var n=m()(e);w({type:"init",style:n}),L(!1),W(e)})).catch((function(){var e=gi(a);w({type:"init",style:e}),sessionStorage.setItem("btcd-fs",(0,M.BN)(k.sheet(e)))}))},W=function(e){var n;if(!new RegExp("._frm-bg-"+a+"|._frm-"+a,"g").test(e)||(null==(n=e.match(/._frm-bg-\d+/g))?void 0:n[0])!=="._frm-bg-"+a){var i,t;if(/._frm-bg-Blank/gi.test(e))i="Blank";else i=null==(t=e.match(/._frm-bg-\d+/g))?void 0:t[0].replace(/._frm-bg-/g,"");void 0!==i&&(e=e.replaceAll(new RegExp("-"+i,"g"),"-"+a))}var r=m()(e);w({type:"init",style:r}),sessionStorage.setItem("btcd-fs",(0,M.BN)(e))},$=(0,s.useCallback)((function(){var e=H.current.getResizer();e.getSectionSize(0)>=160?(e.resizeSection(0,{toSize:50}),g(!0),localStorage.setItem("bit-form-config",JSON.stringify({toolbarOff:!0}))):(e.resizeSection(0,{toSize:160}),g(!1),localStorage.setItem("bit-form-config",JSON.stringify({toolbarOff:!1}))),H.current.applyResizer(e)}),[H]),q=(0,s.useCallback)((function(e){j(e)}),[]),Y=(0,s.useCallback)((function(e){e.isBarActivated(1)&&e.resizeSection(0,{toSize:e.getSectionSize(2)-135})}),[]),J=(0,s.useCallback)((function(){document.querySelector(".tool-sec").style.transition="flex-grow 0ms"}),[]),Q=(0,s.useCallback)((function(){document.querySelector(".tool-sec").style.transition="flex-grow 500ms"}),[]),ee=(0,s.useCallback)((function(e){var n=H.current.getResizer(),i=u?50:165,t=307;if("lg"===e)C("lg"),n.resizeSection(0,{toSize:i}),n.resizeSection(2,{toSize:t});else if("md"===e){C("md");var r=(window.innerWidth-590)/2,a=r-i,l=r-t;n.resizeSection(0,{toSize:i+a}),n.resizeSection(2,{toSize:t+l})}else if("sm"===e){C("sm");var o=(window.innerWidth-400)/2,s=o-i,c=o-t;n.resizeSection(0,{toSize:i+s}),n.resizeSection(2,{toSize:t+c})}H.current.applyResizer(n)}),[H]);return(0,B.jsxs)(c.Container,{ref:H,style:{height:"100vh"},beforeApplyResizer:Y,afterResizing:Q,onActivate:J,children:[(0,B.jsx)("style",{children:R}),(0,B.jsx)(c.Section,{className:"tool-sec",defaultSize:u?50:165,minSize:G&&58,children:(0,B.jsx)(yi,{setNewData:q,className:"tile",tolbarSiz:h,setTolbar:$})}),(0,B.jsx)(c.Bar,{className:"bar bar-l"}),(0,B.jsx)(c.Section,{onSizeChanged:function(e){clearTimeout(X),z(setTimeout((function(){var n,i,t,r,l,o;b(e);var s=0;null!=(n=S["._frm-"+a])&&n["border-width"]&&(s+=(0,O.QD)(S["._frm-"+a]["border-width"])),null!=(i=S["._frm-"+a])&&i.padding&&(s+=(0,O.QD)(S["._frm-"+a].padding)),null!=(t=S["._frm-"+a])&&t.margin&&(s+=(0,O.QD)(S["._frm-"+a].margin)),null!=(r=S["._frm-bg-"+a])&&r["border-width"]&&(s+=(0,O.QD)(S["._frm-bg-"+a]["border-width"])),null!=(l=S["._frm-bg-"+a])&&l.padding&&(s+=(0,O.QD)(S["._frm-bg-"+a].padding)),null!=(o=S["._frm-bg-"+a])&&o.margin&&(s+=(0,O.QD)(S["._frm-bg-"+a].margin));var c=Math.round(e-33-s);c<=510?C("sm"):c>420&&c<=700?C("md"):c>700&&C("lg")}),100))},minSize:G&&320,defaultSize:x,children:t||T?(0,B.jsx)(xi,{}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("div",{className:"btcd-device-btn flx",children:[{lbl:"sm",icn:"phone_android",tip:(0,d.__)("Phone View","bitform")},{lbl:"md",icn:"tablet_android",tip:(0,d.__)("Tablet View","bitform")},{lbl:"lg",icn:"laptop_mac",tip:(0,d.__)("Laptop View","bitform")}].map((function(e){return(0,B.jsx)("button",{onClick:function(){return ee(e.lbl)},className:"flx pos-rel tooltip phone "+(y===e.lbl&&"active"),style:{"--tooltip-txt":'"'+e.tip+'"'},"aria-label":"responsive butoon",type:"button",children:(0,B.jsx)("span",{className:"btcd-icn icn-"+e.icn})},e.icn)}))}),(0,B.jsx)(K,{style:F(),gridWidth:x,newData:_,setNewData:j,formType:n,formID:a})]})}),(0,B.jsx)(c.Bar,{className:"bar bar-r"}),(0,B.jsx)(c.Section,{id:"settings-menu",defaultSize:300,children:(0,B.jsx)(di,{brkPoint:y,style:F(),setResponsiveView:ee,styleDispatch:w,formID:a})})]})}));function Si(e){var n=e.isLoading,i=(0,r.UO)(),t=i.formType,a=i.formID;return(0,B.jsx)(Ai,{formType:t,formID:a,isLoading:n})}}}]);