Файловый менеджер - Редактировать - /home/admin/domains/octawebtools.com/public_html/wp-content/plugins/kadence-blocks/dist/blocks-form.js
�азад
(()=>{var e,t={3072:(e,t)=>{"use strict";var a="function"==typeof Symbol&&Symbol.for,o=a?Symbol.for("react.element"):60103,i=a?Symbol.for("react.portal"):60106,n=a?Symbol.for("react.fragment"):60107,r=a?Symbol.for("react.strict_mode"):60108,l=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,d=a?Symbol.for("react.context"):60110,c=a?Symbol.for("react.async_mode"):60111,u=a?Symbol.for("react.concurrent_mode"):60111,p=a?Symbol.for("react.forward_ref"):60112,b=a?Symbol.for("react.suspense"):60113,h=a?Symbol.for("react.suspense_list"):60120,v=a?Symbol.for("react.memo"):60115,g=a?Symbol.for("react.lazy"):60116,m=a?Symbol.for("react.block"):60121,f=a?Symbol.for("react.fundamental"):60117,k=a?Symbol.for("react.responder"):60118,y=a?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case c:case u:case n:case l:case r:case b:return e;default:switch(e=e&&e.$$typeof){case d:case p:case g:case v:case s:return e;default:return t}}case i:return t}}}function _(e){return x(e)===u}t.AsyncMode=c,t.ConcurrentMode=u,t.ContextConsumer=d,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=n,t.Lazy=g,t.Memo=v,t.Portal=i,t.Profiler=l,t.StrictMode=r,t.Suspense=b,t.isAsyncMode=function(e){return _(e)||x(e)===c},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===d},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===n},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===l},t.isStrictMode=function(e){return x(e)===r},t.isSuspense=function(e){return x(e)===b},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===l||e===r||e===b||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===s||e.$$typeof===d||e.$$typeof===p||e.$$typeof===f||e.$$typeof===k||e.$$typeof===y||e.$$typeof===m)},t.typeOf=x},3404:(e,t,a)=>{"use strict";e.exports=a(3072)},4146:(e,t,a)=>{"use strict";var o=a(3404),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return o.isMemo(e)?r:l[e.$$typeof]||i}l[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[o.Memo]=r;var d=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,a,o){if("string"!=typeof a){if(h){var i=b(a);i&&i!==h&&e(t,i,o)}var r=c(a);u&&(r=r.concat(u(a)));for(var l=s(t),v=s(a),g=0;g<r.length;++g){var m=r[g];if(!(n[m]||o&&o[m]||v&&v[m]||l&&l[m])){var f=p(a,m);try{d(t,m,f)}catch(e){}}}}return t}},5842:(e,t,a)=>{"use strict";var o=a(6942),i=a.n(o);const n=window.kadence.icons,r=window.lodash,l=window.kadence.components;function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function d(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,"string");if("object"!=s(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function c(e,t,a){return(t=d(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,o)}return a}function p(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach(function(t){c(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,o=Array(t);a<t;a++)o[a]=e[a];return o}function h(e,t){if(e){if("string"==typeof e)return b(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?b(e,t):void 0}}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o,i,n,r,l=[],s=!0,d=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;s=!1}else for(;!(s=(o=n.call(a)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){d=!0,i=e}finally{try{if(!s&&null!=a.return&&(r=a.return(),Object(r)!==r))return}finally{if(d)throw i}}return l}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(null==e)return{};var a,o,i=function(e,t){if(null==e)return{};var a={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;a[o]=e[o]}return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(o=0;o<n.length;o++)a=n[o],-1===t.indexOf(a)&&{}.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}const m=window.React;var f=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)({}).hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},k.apply(null,arguments)}function y(e,t){for(var a=0;a<t.length;a++){var o=t[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function x(e,t){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x(e,t)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}function S(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var C=function(){function e(e){var t=this;this._insertTag=function(e){var a;a=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,a),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{a.insertRule(e,a.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),j=Math.abs,O=String.fromCharCode,T=Object.assign;function $(e){return e.trim()}function P(e,t,a){return e.replace(t,a)}function F(e,t){return e.indexOf(t)}function A(e,t){return 0|e.charCodeAt(t)}function N(e,t,a){return e.slice(t,a)}function H(e){return e.length}function M(e){return e.length}function z(e,t){return t.push(e),e}var L=1,R=1,E=0,I=0,q=0,V="";function D(e,t,a,o,i,n,r){return{value:e,root:t,parent:a,type:o,props:i,children:n,line:L,column:R,length:r,return:""}}function W(e,t){return T(D("",null,null,"",null,null,0),e,{length:-e.length},t)}function B(){return q=I>0?A(V,--I):0,R--,10===q&&(R=1,L--),q}function G(){return q=I<E?A(V,I++):0,R++,10===q&&(R=1,L++),q}function K(){return A(V,I)}function U(){return I}function Y(e,t){return N(V,e,t)}function X(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function J(e){return L=R=1,E=H(V=e),I=0,[]}function Q(e){return V="",e}function Z(e){return $(Y(I-1,ae(91===e?e+2:40===e?e+1:e)))}function ee(e){for(;(q=K())&&q<33;)G();return X(e)>2||X(q)>3?"":" "}function te(e,t){for(;--t&&G()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return Y(e,U()+(t<6&&32==K()&&32==G()))}function ae(e){for(;G();)switch(q){case e:return I;case 34:case 39:34!==e&&39!==e&&ae(q);break;case 40:41===e&&ae(e);break;case 92:G()}return I}function oe(e,t){for(;G()&&e+q!==57&&(e+q!==84||47!==K()););return"/*"+Y(t,I-1)+"*"+O(47===e?e:G())}function ie(e){for(;!X(K());)G();return Y(e,I)}var ne="-ms-",re="-moz-",le="-webkit-",se="comm",de="rule",ce="decl",ue="@keyframes";function pe(e,t){for(var a="",o=M(e),i=0;i<o;i++)a+=t(e[i],i,e,t)||"";return a}function be(e,t,a,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ce:return e.return=e.return||e.value;case se:return"";case ue:return e.return=e.value+"{"+pe(e.children,o)+"}";case de:e.value=e.props.join(",")}return H(a=pe(e.children,o))?e.return=e.value+"{"+a+"}":""}function he(e){return Q(ve("",null,null,null,[""],e=J(e),0,[0],e))}function ve(e,t,a,o,i,n,r,l,s){for(var d=0,c=0,u=r,p=0,b=0,h=0,v=1,g=1,m=1,f=0,k="",y=i,x=n,_=o,w=k;g;)switch(h=f,f=G()){case 40:if(108!=h&&58==A(w,u-1)){-1!=F(w+=P(Z(f),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:w+=Z(f);break;case 9:case 10:case 13:case 32:w+=ee(h);break;case 92:w+=te(U()-1,7);continue;case 47:switch(K()){case 42:case 47:z(me(oe(G(),U()),t,a),s);break;default:w+="/"}break;case 123*v:l[d++]=H(w)*m;case 125*v:case 59:case 0:switch(f){case 0:case 125:g=0;case 59+c:-1==m&&(w=P(w,/\f/g,"")),b>0&&H(w)-u&&z(b>32?fe(w+";",o,a,u-1):fe(P(w," ","")+";",o,a,u-2),s);break;case 59:w+=";";default:if(z(_=ge(w,t,a,d,c,i,l,k,y=[],x=[],u),n),123===f)if(0===c)ve(w,t,_,_,y,n,u,l,x);else switch(99===p&&110===A(w,3)?100:p){case 100:case 108:case 109:case 115:ve(e,_,_,o&&z(ge(e,_,_,0,0,i,l,k,i,y=[],u),x),i,x,u,l,o?y:x);break;default:ve(w,_,_,_,[""],x,0,l,x)}}d=c=b=0,v=m=1,k=w="",u=r;break;case 58:u=1+H(w),b=h;default:if(v<1)if(123==f)--v;else if(125==f&&0==v++&&125==B())continue;switch(w+=O(f),f*v){case 38:m=c>0?1:(w+="\f",-1);break;case 44:l[d++]=(H(w)-1)*m,m=1;break;case 64:45===K()&&(w+=Z(G())),p=K(),c=u=H(k=w+=ie(U())),f++;break;case 45:45===h&&2==H(w)&&(v=0)}}return n}function ge(e,t,a,o,i,n,r,l,s,d,c){for(var u=i-1,p=0===i?n:[""],b=M(p),h=0,v=0,g=0;h<o;++h)for(var m=0,f=N(e,u+1,u=j(v=r[h])),k=e;m<b;++m)(k=$(v>0?p[m]+" "+f:P(f,/&\f/g,p[m])))&&(s[g++]=k);return D(e,t,a,0===i?de:l,s,d,c)}function me(e,t,a){return D(e,t,a,se,O(q),N(e,2,-2),0)}function fe(e,t,a,o){return D(e,t,a,ce,N(e,0,o),N(e,o+1,-1),o)}var ke=function(e,t,a){for(var o=0,i=0;o=i,i=K(),38===o&&12===i&&(t[a]=1),!X(i);)G();return Y(e,I)},ye=new WeakMap,xe=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,a=e.parent,o=e.column===a.column&&e.line===a.line;"rule"!==a.type;)if(!(a=a.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ye.get(a))&&!o){ye.set(e,!0);for(var i=[],n=function(e,t){return Q(function(e,t){var a=-1,o=44;do{switch(X(o)){case 0:38===o&&12===K()&&(t[a]=1),e[a]+=ke(I-1,t,a);break;case 2:e[a]+=Z(o);break;case 4:if(44===o){e[++a]=58===K()?"&\f":"",t[a]=e[a].length;break}default:e[a]+=O(o)}}while(o=G());return e}(J(e),t))}(t,i),r=a.props,l=0,s=0;l<n.length;l++)for(var d=0;d<r.length;d++,s++)e.props[s]=i[l]?n[l].replace(/&\f/g,r[d]):r[d]+" "+n[l]}}},_e=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function we(e,t){switch(function(e,t){return 45^A(e,0)?(((t<<2^A(e,0))<<2^A(e,1))<<2^A(e,2))<<2^A(e,3):0}(e,t)){case 5103:return le+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return le+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return le+e+re+e+ne+e+e;case 6828:case 4268:return le+e+ne+e+e;case 6165:return le+e+ne+"flex-"+e+e;case 5187:return le+e+P(e,/(\w+).+(:[^]+)/,le+"box-$1$2"+ne+"flex-$1$2")+e;case 5443:return le+e+ne+"flex-item-"+P(e,/flex-|-self/,"")+e;case 4675:return le+e+ne+"flex-line-pack"+P(e,/align-content|flex-|-self/,"")+e;case 5548:return le+e+ne+P(e,"shrink","negative")+e;case 5292:return le+e+ne+P(e,"basis","preferred-size")+e;case 6060:return le+"box-"+P(e,"-grow","")+le+e+ne+P(e,"grow","positive")+e;case 4554:return le+P(e,/([^-])(transform)/g,"$1"+le+"$2")+e;case 6187:return P(P(P(e,/(zoom-|grab)/,le+"$1"),/(image-set)/,le+"$1"),e,"")+e;case 5495:case 3959:return P(e,/(image-set\([^]*)/,le+"$1$`$1");case 4968:return P(P(e,/(.+:)(flex-)?(.*)/,le+"box-pack:$3"+ne+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+le+e+e;case 4095:case 3583:case 4068:case 2532:return P(e,/(.+)-inline(.+)/,le+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(H(e)-1-t>6)switch(A(e,t+1)){case 109:if(45!==A(e,t+4))break;case 102:return P(e,/(.+:)(.+)-([^]+)/,"$1"+le+"$2-$3$1"+re+(108==A(e,t+3)?"$3":"$2-$3"))+e;case 115:return~F(e,"stretch")?we(P(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==A(e,t+1))break;case 6444:switch(A(e,H(e)-3-(~F(e,"!important")&&10))){case 107:return P(e,":",":"+le)+e;case 101:return P(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+le+(45===A(e,14)?"inline-":"")+"box$3$1"+le+"$2$3$1"+ne+"$2box$3")+e}break;case 5936:switch(A(e,t+11)){case 114:return le+e+ne+P(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return le+e+ne+P(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return le+e+ne+P(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return le+e+ne+e+e}return e}var Se=[function(e,t,a,o){if(e.length>-1&&!e.return)switch(e.type){case ce:e.return=we(e.value,e.length);break;case ue:return pe([W(e,{value:P(e.value,"@","@"+le)})],o);case de:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return pe([W(e,{props:[P(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return pe([W(e,{props:[P(t,/:(plac\w+)/,":"+le+"input-$1")]}),W(e,{props:[P(t,/:(plac\w+)/,":-moz-$1")]}),W(e,{props:[P(t,/:(plac\w+)/,ne+"input-$1")]})],o)}return""})}}],Ce=function(e){var t=e.key;if("css"===t){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var o,i,n=e.stylisPlugins||Se,r={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),a=1;a<t.length;a++)r[t[a]]=!0;l.push(e)});var s,d,c,u,p=[be,(u=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],b=(d=[xe,_e].concat(n,p),c=M(d),function(e,t,a,o){for(var i="",n=0;n<c;n++)i+=d[n](e,t,a,o)||"";return i});i=function(e,t,a,o){s=a,pe(he(e?e+"{"+t.styles+"}":t.styles),b),o&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new C({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:r,registered:{},insert:i};return h.sheet.hydrate(l),h},je=function(e,t,a){var o=e.key+"-"+t.name;!1===a&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},Oe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Te(e){var t=Object.create(null);return function(a){return void 0===t[a]&&(t[a]=e(a)),t[a]}}var $e=/[A-Z]|^ms/g,Pe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fe=function(e){return 45===e.charCodeAt(1)},Ae=function(e){return null!=e&&"boolean"!=typeof e},Ne=Te(function(e){return Fe(e)?e:e.replace($e,"-$&").toLowerCase()}),He=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Pe,function(e,t,a){return ze={name:t,styles:a,next:ze},t})}return 1===Oe[e]||Fe(e)||"number"!=typeof t||0===t?t:t+"px"};function Me(e,t,a){if(null==a)return"";var o=a;if(void 0!==o.__emotion_styles)return o;switch(typeof a){case"boolean":return"";case"object":var i=a;if(1===i.anim)return ze={name:i.name,styles:i.styles,next:ze},i.name;var n=a;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ze={name:r.name,styles:r.styles,next:ze},r=r.next;return n.styles+";"}return function(e,t,a){var o="";if(Array.isArray(a))for(var i=0;i<a.length;i++)o+=Me(e,t,a[i])+";";else for(var n in a){var r=a[n];if("object"!=typeof r){var l=r;null!=t&&void 0!==t[l]?o+=n+"{"+t[l]+"}":Ae(l)&&(o+=Ne(n)+":"+He(n,l)+";")}else if(!Array.isArray(r)||"string"!=typeof r[0]||null!=t&&void 0!==t[r[0]]){var s=Me(e,t,r);switch(n){case"animation":case"animationName":o+=Ne(n)+":"+s+";";break;default:o+=n+"{"+s+"}"}}else for(var d=0;d<r.length;d++)Ae(r[d])&&(o+=Ne(n)+":"+He(n,r[d])+";")}return o}(e,t,a);case"function":if(void 0!==e){var l=ze,s=a(e);return ze=l,Me(e,t,s)}}var d=a;if(null==t)return d;var c=t[d];return void 0!==c?c:d}var ze,Le=/label:\s*([^\s;{]+)\s*(;|$)/g;function Re(e,t,a){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";ze=void 0;var n=e[0];null==n||void 0===n.raw?(o=!1,i+=Me(a,t,n)):i+=n[0];for(var r=1;r<e.length;r++)i+=Me(a,t,e[r]),o&&(i+=n[r]);Le.lastIndex=0;for(var l,s="";null!==(l=Le.exec(i));)s+="-"+l[1];var d=function(e){for(var t,a=0,o=0,i=e.length;i>=4;++o,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),a=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&a)+(59797*(a>>>16)<<16);switch(i){case 3:a^=(255&e.charCodeAt(o+2))<<16;case 2:a^=(255&e.charCodeAt(o+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(o)))+(59797*(a>>>16)<<16)}return(((a=1540483477*(65535&(a^=a>>>13))+(59797*(a>>>16)<<16))^a>>>15)>>>0).toString(36)}(i)+s;return{name:d,styles:i,next:ze}}var Ee,Ie,qe=!!m.useInsertionEffect&&m.useInsertionEffect,Ve=qe||function(e){return e()},De=(qe||m.useLayoutEffect,m.createContext("undefined"!=typeof HTMLElement?Ce({key:"css"}):null)),We=(De.Provider,function(e){return(0,m.forwardRef)(function(t,a){var o=(0,m.useContext)(De);return e(t,o,a)})}),Be=m.createContext({}),Ge={}.hasOwnProperty,Ke="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ue=function(e){var t=e.cache,a=e.serialized,o=e.isStringTag;return je(t,a,o),Ve(function(){return function(e,t,a){je(e,t,a);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+o:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,a,o)}),null},Ye=We(function(e,t,a){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[Ke],n=[o],r="";"string"==typeof e.className?r=function(e,t,a){var o="";return a.split(" ").forEach(function(a){void 0!==e[a]?t.push(e[a]+";"):a&&(o+=a+" ")}),o}(t.registered,n,e.className):null!=e.className&&(r=e.className+" ");var l=Re(n,void 0,m.useContext(Be));r+=t.key+"-"+l.name;var s={};for(var d in e)Ge.call(e,d)&&"css"!==d&&d!==Ke&&(s[d]=e[d]);return s.className=r,a&&(s.ref=a),m.createElement(m.Fragment,null,m.createElement(Ue,{cache:t,serialized:l,isStringTag:"string"==typeof i}),m.createElement(i,s))}),Xe=Ye,Je=(a(4146),function(e,t){var a=arguments;if(null==t||!Ge.call(t,"css"))return m.createElement.apply(void 0,a);var o=a.length,i=new Array(o);i[0]=Xe,i[1]=function(e,t){var a={};for(var o in t)Ge.call(t,o)&&(a[o]=t[o]);return a[Ke]=e,a}(e,t);for(var n=2;n<o;n++)i[n]=a[n];return m.createElement.apply(null,i)});function Qe(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Re(t)}Ee=Je||(Je={}),Ie||(Ie=Ee.JSX||(Ee.JSX={}));const Ze=window.ReactDOM,et=Math.min,tt=Math.max,at=Math.round,ot=Math.floor,it=e=>({x:e,y:e});function nt(){return"undefined"!=typeof window}function rt(e){return dt(e)?(e.nodeName||"").toLowerCase():"#document"}function lt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function st(e){var t;return null==(t=(dt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function dt(e){return!!nt()&&(e instanceof Node||e instanceof lt(e).Node)}function ct(e){return!!nt()&&(e instanceof Element||e instanceof lt(e).Element)}function ut(e){return!!nt()&&(e instanceof HTMLElement||e instanceof lt(e).HTMLElement)}function pt(e){return!(!nt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof lt(e).ShadowRoot)}const bt=new Set(["inline","contents"]);function ht(e){const{overflow:t,overflowX:a,overflowY:o,display:i}=gt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&!bt.has(i)}const vt=new Set(["html","body","#document"]);function gt(e){return lt(e).getComputedStyle(e)}function mt(e){const t=function(e){if("html"===rt(e))return e;const t=e.assignedSlot||e.parentNode||pt(e)&&e.host||st(e);return pt(t)?t.host:t}(e);return function(e){return vt.has(rt(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:ut(t)&&ht(t)?t:mt(t)}function ft(e,t,a){var o;void 0===t&&(t=[]),void 0===a&&(a=!0);const i=mt(e),n=i===(null==(o=e.ownerDocument)?void 0:o.body),r=lt(i);if(n){const e=kt(r);return t.concat(r,r.visualViewport||[],ht(i)?i:[],e&&a?ft(e):[])}return t.concat(i,ft(i,[],a))}function kt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yt(e){return ct(e)?e:e.contextElement}function xt(e){const t=yt(e);if(!ut(t))return it(1);const a=t.getBoundingClientRect(),{width:o,height:i,$:n}=function(e){const t=gt(e);let a=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=ut(e),n=i?e.offsetWidth:a,r=i?e.offsetHeight:o,l=at(a)!==n||at(o)!==r;return l&&(a=n,o=r),{width:a,height:o,$:l}}(t);let r=(n?at(a.width):a.width)/o,l=(n?at(a.height):a.height)/i;return r&&Number.isFinite(r)||(r=1),l&&Number.isFinite(l)||(l=1),{x:r,y:l}}const _t=it(0);function wt(e){const t=lt(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:_t}function St(e,t,a,o){void 0===t&&(t=!1),void 0===a&&(a=!1);const i=e.getBoundingClientRect(),n=yt(e);let r=it(1);t&&(o?ct(o)&&(r=xt(o)):r=xt(e));const l=function(e,t,a){return void 0===t&&(t=!1),!(!a||t&&a!==lt(e))&&t}(n,a,o)?wt(n):it(0);let s=(i.left+l.x)/r.x,d=(i.top+l.y)/r.y,c=i.width/r.x,u=i.height/r.y;if(n){const e=lt(n),t=o&&ct(o)?lt(o):o;let a=e,i=kt(a);for(;i&&o&&t!==a;){const e=xt(i),t=i.getBoundingClientRect(),o=gt(i),n=t.left+(i.clientLeft+parseFloat(o.paddingLeft))*e.x,r=t.top+(i.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,d*=e.y,c*=e.x,u*=e.y,s+=n,d+=r,a=lt(i),i=kt(a)}}return function(e){const{x:t,y:a,width:o,height:i}=e;return{width:o,height:i,top:a,left:t,right:t+o,bottom:a+i,x:t,y:a}}({width:c,height:u,x:s,y:d})}function Ct(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var jt=m.useLayoutEffect,Ot=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Tt=function(){};function $t(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Pt(e,t){for(var a=arguments.length,o=new Array(a>2?a-2:0),i=2;i<a;i++)o[i-2]=arguments[i];var n=[].concat(o);if(t&&e)for(var r in t)t.hasOwnProperty(r)&&t[r]&&n.push("".concat($t(e,r)));return n.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var Ft=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===s(e)&&null!==e?[e]:[];var t},At=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,p({},g(e,Ot))},Nt=function(e,t,a){var o=e.cx,i=e.getStyles,n=e.getClassNames,r=e.className;return{css:i(t,e),className:o(null!=a?a:{},n(t,e),r)}};function Ht(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Mt(e){return Ht(e)?window.pageYOffset:e.scrollTop}function zt(e,t){Ht(e)?window.scrollTo(0,t):e.scrollTop=t}function Lt(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Tt,i=Mt(e),n=t-i,r=0;!function t(){var l,s=n*((l=(l=r+=10)/a-1)*l*l+1)+i;zt(e,s),r<a?window.requestAnimationFrame(t):o(e)}()}function Rt(e,t){var a=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=t.offsetHeight/3;o.bottom+i>a.bottom?zt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):o.top-i<a.top&&zt(e,Math.max(t.offsetTop-i,0))}function Et(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var It=!1,qt={get passive(){return It=!0}},Vt="undefined"!=typeof window?window:{};Vt.addEventListener&&Vt.removeEventListener&&(Vt.addEventListener("p",Tt,qt),Vt.removeEventListener("p",Tt,!1));var Dt=It;function Wt(e){return null!=e}function Bt(e,t,a){return e?t:a}var Gt=["children","innerProps"],Kt=["children","innerProps"];var Ut,Yt,Xt,Jt=function(e){return"auto"===e?"bottom":e},Qt=(0,m.createContext)(null),Zt=function(e){var t=e.children,a=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,n=e.menuPosition,r=e.menuShouldScrollIntoView,l=e.theme,s=((0,m.useContext)(Qt)||{}).setPortalPlacement,d=(0,m.useRef)(null),c=v((0,m.useState)(o),2),u=c[0],b=c[1],h=v((0,m.useState)(null),2),g=h[0],f=h[1],k=l.spacing.controlHeight;return jt(function(){var e=d.current;if(e){var t="fixed"===n,l=function(e){var t=e.maxHeight,a=e.menuEl,o=e.minHeight,i=e.placement,n=e.shouldScroll,r=e.isFixedPosition,l=e.controlHeight,s=function(e){var t=getComputedStyle(e),a="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!a||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(a),d={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return d;var c,u=s.getBoundingClientRect().height,p=a.getBoundingClientRect(),b=p.bottom,h=p.height,v=p.top,g=a.offsetParent.getBoundingClientRect().top,m=r||Ht(c=s)?window.innerHeight:c.clientHeight,f=Mt(s),k=parseInt(getComputedStyle(a).marginBottom,10),y=parseInt(getComputedStyle(a).marginTop,10),x=g-y,_=m-v,w=x+f,S=u-f-v,C=b-m+f+k,j=f+v-y,O=160;switch(i){case"auto":case"bottom":if(_>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!r)return n&&Lt(s,C,O),{placement:"bottom",maxHeight:t};if(!r&&S>=o||r&&_>=o)return n&&Lt(s,C,O),{placement:"bottom",maxHeight:r?_-k:S-k};if("auto"===i||r){var T=t,$=r?x:w;return $>=o&&(T=Math.min($-k-l,t)),{placement:"top",maxHeight:T}}if("bottom"===i)return n&&zt(s,C),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(w>=h&&!r)return n&&Lt(s,j,O),{placement:"top",maxHeight:t};if(!r&&w>=o||r&&x>=o){var P=t;return(!r&&w>=o||r&&x>=o)&&(P=r?x-y:w-y),n&&Lt(s,j,O),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return d}({maxHeight:o,menuEl:e,minHeight:a,placement:i,shouldScroll:r&&!t,isFixedPosition:t,controlHeight:k});b(l.maxHeight),f(l.placement),null==s||s(l.placement)}},[o,i,n,r,a,s,k]),t({ref:d,placerProps:p(p({},e),{},{placement:g||Jt(i),maxHeight:u})})},ea=function(e,t){var a=e.theme,o=a.spacing.baseUnit,i=a.colors;return p({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},ta=ea,aa=ea,oa=["size"],ia=["innerProps","isRtl","size"],na={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ra=function(e){var t=e.size,a=g(e,oa);return Je("svg",k({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:na},a))},la=function(e){return Je(ra,k({size:20},e),Je("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},sa=function(e){return Je(ra,k({size:20},e),Je("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},da=function(e,t){var a=e.isFocused,o=e.theme,i=o.spacing.baseUnit,n=o.colors;return p({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:a?n.neutral60:n.neutral20,padding:2*i,":hover":{color:a?n.neutral80:n.neutral40}})},ca=da,ua=da,pa=function(){var e=Qe.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Ut||(Yt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Xt||(Xt=Yt.slice(0)),Ut=Object.freeze(Object.defineProperties(Yt,{raw:{value:Object.freeze(Xt)}})))),ba=function(e){var t=e.delay,a=e.offset;return Je("span",{css:Qe({animation:"".concat(pa," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ha=["data"],va=["innerRef","isDisabled","isHidden","inputClassName"],ga={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ma={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":p({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ga)},fa=function(e){return p({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},ga)},ka=function(e){var t=e.children,a=e.innerProps;return Je("div",a,t)},ya={ClearIndicator:function(e){var t=e.children,a=e.innerProps;return Je("div",k({},Nt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),t||Je(la,null))},Control:function(e){var t=e.children,a=e.isDisabled,o=e.isFocused,i=e.innerRef,n=e.innerProps,r=e.menuIsOpen;return Je("div",k({ref:i},Nt(e,"control",{control:!0,"control--is-disabled":a,"control--is-focused":o,"control--menu-is-open":r}),n,{"aria-disabled":a||void 0}),t)},DropdownIndicator:function(e){var t=e.children,a=e.innerProps;return Je("div",k({},Nt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),t||Je(sa,null))},DownChevron:sa,CrossIcon:la,Group:function(e){var t=e.children,a=e.cx,o=e.getStyles,i=e.getClassNames,n=e.Heading,r=e.headingProps,l=e.innerProps,s=e.label,d=e.theme,c=e.selectProps;return Je("div",k({},Nt(e,"group",{group:!0}),l),Je(n,k({},r,{selectProps:c,theme:d,getStyles:o,getClassNames:i,cx:a}),s),Je("div",null,t))},GroupHeading:function(e){var t=At(e);t.data;var a=g(t,ha);return Je("div",k({},Nt(e,"groupHeading",{"group-heading":!0}),a))},IndicatorsContainer:function(e){var t=e.children,a=e.innerProps;return Je("div",k({},Nt(e,"indicatorsContainer",{indicators:!0}),a),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Je("span",k({},t,Nt(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,a=e.value,o=At(e),i=o.innerRef,n=o.isDisabled,r=o.isHidden,l=o.inputClassName,s=g(o,va);return Je("div",k({},Nt(e,"input",{"input-container":!0}),{"data-value":a||""}),Je("input",k({className:t({input:!0},l),ref:i,style:fa(r),disabled:n},s)))},LoadingIndicator:function(e){var t=e.innerProps,a=e.isRtl,o=e.size,i=void 0===o?4:o,n=g(e,ia);return Je("div",k({},Nt(p(p({},n),{},{innerProps:t,isRtl:a,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Je(ba,{delay:0,offset:a}),Je(ba,{delay:160,offset:!0}),Je(ba,{delay:320,offset:!a}))},Menu:function(e){var t=e.children,a=e.innerRef,o=e.innerProps;return Je("div",k({},Nt(e,"menu",{menu:!0}),{ref:a},o),t)},MenuList:function(e){var t=e.children,a=e.innerProps,o=e.innerRef,i=e.isMulti;return Je("div",k({},Nt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},a),t)},MenuPortal:function(e){var t=e.appendTo,a=e.children,o=e.controlElement,i=e.innerProps,n=e.menuPlacement,r=e.menuPosition,l=(0,m.useRef)(null),s=(0,m.useRef)(null),d=v((0,m.useState)(Jt(n)),2),c=d[0],u=d[1],b=(0,m.useMemo)(function(){return{setPortalPlacement:u}},[]),h=v((0,m.useState)(null),2),g=h[0],f=h[1],y=(0,m.useCallback)(function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===r?0:window.pageYOffset,a=e[c]+t;a===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||f({offset:a,rect:e})}},[o,r,c,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);jt(function(){y()},[y]);var x=(0,m.useCallback)(function(){"function"==typeof s.current&&(s.current(),s.current=null),o&&l.current&&(s.current=function(e,t,a,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:n=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,d=yt(e),c=i||n?[...d?ft(d):[],...ft(t)]:[];c.forEach(e=>{i&&e.addEventListener("scroll",a,{passive:!0}),n&&e.addEventListener("resize",a)});const u=d&&l?function(e,t){let a,o=null;const i=st(e);function n(){var e;clearTimeout(a),null==(e=o)||e.disconnect(),o=null}return function r(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),n();const d=e.getBoundingClientRect(),{left:c,top:u,width:p,height:b}=d;if(l||t(),!p||!b)return;const h={rootMargin:-ot(u)+"px "+-ot(i.clientWidth-(c+p))+"px "+-ot(i.clientHeight-(u+b))+"px "+-ot(c)+"px",threshold:tt(0,et(1,s))||1};let v=!0;function g(t){const o=t[0].intersectionRatio;if(o!==s){if(!v)return r();o?r(!1,o):a=setTimeout(()=>{r(!1,1e-7)},1e3)}1!==o||Ct(d,e.getBoundingClientRect())||r(),v=!1}try{o=new IntersectionObserver(g,{...h,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(g,h)}o.observe(e)}(!0),n}(d,a):null;let p,b=-1,h=null;r&&(h=new ResizeObserver(e=>{let[o]=e;o&&o.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),a()}),d&&!s&&h.observe(d),h.observe(t));let v=s?St(e):null;return s&&function t(){const o=St(e);v&&!Ct(v,o)&&a(),v=o,p=requestAnimationFrame(t)}(),a(),()=>{var e;c.forEach(e=>{i&&e.removeEventListener("scroll",a),n&&e.removeEventListener("resize",a)}),null==u||u(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(p)}}(o,l.current,y,{elementResize:"ResizeObserver"in window}))},[o,y]);jt(function(){x()},[x]);var _=(0,m.useCallback)(function(e){l.current=e,x()},[x]);if(!t&&"fixed"!==r||!g)return null;var w=Je("div",k({ref:_},Nt(p(p({},e),{},{offset:g.offset,position:r,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),a);return Je(Qt.Provider,{value:b},t?(0,Ze.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,a=void 0===t?"Loading...":t,o=e.innerProps,i=g(e,Kt);return Je("div",k({},Nt(p(p({},i),{},{children:a,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),a)},NoOptionsMessage:function(e){var t=e.children,a=void 0===t?"No options":t,o=e.innerProps,i=g(e,Gt);return Je("div",k({},Nt(p(p({},i),{},{children:a,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),a)},MultiValue:function(e){var t=e.children,a=e.components,o=e.data,i=e.innerProps,n=e.isDisabled,r=e.removeProps,l=e.selectProps,s=a.Container,d=a.Label,c=a.Remove;return Je(s,{data:o,innerProps:p(p({},Nt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":n})),i),selectProps:l},Je(d,{data:o,innerProps:p({},Nt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),Je(c,{data:o,innerProps:p(p({},Nt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},r),selectProps:l}))},MultiValueContainer:ka,MultiValueLabel:ka,MultiValueRemove:function(e){var t=e.children,a=e.innerProps;return Je("div",k({role:"button"},a),t||Je(la,{size:14}))},Option:function(e){var t=e.children,a=e.isDisabled,o=e.isFocused,i=e.isSelected,n=e.innerRef,r=e.innerProps;return Je("div",k({},Nt(e,"option",{option:!0,"option--is-disabled":a,"option--is-focused":o,"option--is-selected":i}),{ref:n,"aria-disabled":a},r),t)},Placeholder:function(e){var t=e.children,a=e.innerProps;return Je("div",k({},Nt(e,"placeholder",{placeholder:!0}),a),t)},SelectContainer:function(e){var t=e.children,a=e.innerProps,o=e.isDisabled,i=e.isRtl;return Je("div",k({},Nt(e,"container",{"--is-disabled":o,"--is-rtl":i}),a),t)},SingleValue:function(e){var t=e.children,a=e.isDisabled,o=e.innerProps;return Je("div",k({},Nt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),o),t)},ValueContainer:function(e){var t=e.children,a=e.innerProps,o=e.isMulti,i=e.hasValue;return Je("div",k({},Nt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),a),t)}},xa=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function _a(e,t){return e===t||!(!xa(e)||!xa(t))}function wa(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!_a(e[a],t[a]))return!1;return!0}for(var Sa={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Ca=function(e){return Je("span",k({css:Sa},e))},ja={guidance:function(e){var t=e.isSearchable,a=e.isMulti,o=e.tabSelectsValue,i=e.context,n=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return n?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,a=e.label,o=void 0===a?"":a,i=e.labels,n=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(o,n?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,a=e.focused,o=e.options,i=e.label,n=void 0===i?"":i,r=e.selectValue,l=e.isDisabled,s=e.isSelected,d=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&r)return"value ".concat(n," focused, ").concat(c(r,a),".");if("menu"===t&&d){var u=l?" disabled":"",p="".concat(s?" selected":"").concat(u);return"".concat(n).concat(p,", ").concat(c(o,a),".")}return""},onFilter:function(e){var t=e.inputValue,a=e.resultsMessage;return"".concat(a).concat(t?" for search term "+t:"",".")}},Oa=function(e){var t=e.ariaSelection,a=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,n=e.isFocused,r=e.selectValue,l=e.selectProps,s=e.id,d=e.isAppleDevice,c=l.ariaLiveMessages,u=l.getOptionLabel,b=l.inputValue,h=l.isMulti,v=l.isOptionDisabled,g=l.isSearchable,f=l.menuIsOpen,k=l.options,y=l.screenReaderStatus,x=l.tabSelectsValue,_=l.isLoading,w=l["aria-label"],S=l["aria-live"],C=(0,m.useMemo)(function(){return p(p({},ja),c||{})},[c]),j=(0,m.useMemo)(function(){var e,a="";if(t&&C.onChange){var o=t.option,i=t.options,n=t.removedValue,l=t.removedValues,s=t.value,d=n||o||(e=s,Array.isArray(e)?null:e),c=d?u(d):"",b=i||l||void 0,h=b?b.map(u):[],g=p({isDisabled:d&&v(d,r),label:c,labels:h},t);a=C.onChange(g)}return a},[t,C,v,r,u]),O=(0,m.useMemo)(function(){var e="",t=a||o,n=!!(a&&r&&r.includes(a));if(t&&C.onFocus){var l={focused:t,label:u(t),isDisabled:v(t,r),isSelected:n,options:i,context:t===a?"menu":"value",selectValue:r,isAppleDevice:d};e=C.onFocus(l)}return e},[a,o,u,v,C,i,r,d]),T=(0,m.useMemo)(function(){var e="";if(f&&k.length&&!_&&C.onFilter){var t=y({count:i.length});e=C.onFilter({inputValue:b,resultsMessage:t})}return e},[i,b,f,C,k,y,_]),$="initial-input-focus"===(null==t?void 0:t.action),P=(0,m.useMemo)(function(){var e="";if(C.guidance){var t=o?"value":f?"menu":"input";e=C.guidance({"aria-label":w,context:t,isDisabled:a&&v(a,r),isMulti:h,isSearchable:g,tabSelectsValue:x,isInitialFocus:$})}return e},[w,a,o,h,v,g,f,C,r,x,$]),F=Je(m.Fragment,null,Je("span",{id:"aria-selection"},j),Je("span",{id:"aria-focused"},O),Je("span",{id:"aria-results"},T),Je("span",{id:"aria-guidance"},P));return Je(m.Fragment,null,Je(Ca,{id:s},$&&F),Je(Ca,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},n&&!$&&F))},Ta=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],$a=new RegExp("["+Ta.map(function(e){return e.letters}).join("")+"]","g"),Pa={},Fa=0;Fa<Ta.length;Fa++)for(var Aa=Ta[Fa],Na=0;Na<Aa.letters.length;Na++)Pa[Aa.letters[Na]]=Aa.base;var Ha=function(e){return e.replace($a,function(e){return Pa[e]})},Ma=function(e,t){void 0===t&&(t=wa);var a=null;function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(a&&a.lastThis===this&&t(o,a.lastArgs))return a.lastResult;var n=e.apply(this,o);return a={lastResult:n,lastArgs:o,lastThis:this},n}return o.clear=function(){a=null},o}(Ha),za=function(e){return e.replace(/^\s+|\s+$/g,"")},La=function(e){return"".concat(e.label," ").concat(e.value)},Ra=["innerRef"];function Ea(e){var t=e.innerRef,a=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),o=1;o<t;o++)a[o-1]=arguments[o];var i=Object.entries(e).filter(function(e){var t=v(e,1)[0];return!a.includes(t)});return i.reduce(function(e,t){var a=v(t,2),o=a[0],i=a[1];return e[o]=i,e},{})}(g(e,Ra),"onExited","in","enter","exit","appear");return Je("input",k({ref:t},a,{css:Qe({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Ia=["boxSizing","height","overflow","paddingRight","position"],qa={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Va(e){e.cancelable&&e.preventDefault()}function Da(e){e.stopPropagation()}function Wa(){var e=this.scrollTop,t=this.scrollHeight,a=e+this.offsetHeight;0===e?this.scrollTop=1:a===t&&(this.scrollTop=e-1)}function Ba(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ga=!("undefined"==typeof window||!window.document||!window.document.createElement),Ka=0,Ua={capture:!1,passive:!1},Ya=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Xa={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ja(e){var t=e.children,a=e.lockEnabled,o=e.captureEnabled,i=function(e){var t=e.isEnabled,a=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,n=e.onTopLeave,r=(0,m.useRef)(!1),l=(0,m.useRef)(!1),s=(0,m.useRef)(0),d=(0,m.useRef)(null),c=(0,m.useCallback)(function(e,t){if(null!==d.current){var s=d.current,c=s.scrollTop,u=s.scrollHeight,p=s.clientHeight,b=d.current,h=t>0,v=u-p-c,g=!1;v>t&&r.current&&(o&&o(e),r.current=!1),h&&l.current&&(n&&n(e),l.current=!1),h&&t>v?(a&&!r.current&&a(e),b.scrollTop=u,g=!0,r.current=!0):!h&&-t>c&&(i&&!l.current&&i(e),b.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[a,o,i,n]),u=(0,m.useCallback)(function(e){c(e,e.deltaY)},[c]),p=(0,m.useCallback)(function(e){s.current=e.changedTouches[0].clientY},[]),b=(0,m.useCallback)(function(e){var t=s.current-e.changedTouches[0].clientY;c(e,t)},[c]),h=(0,m.useCallback)(function(e){if(e){var t=!!Dt&&{passive:!1};e.addEventListener("wheel",u,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",b,t)}},[b,p,u]),v=(0,m.useCallback)(function(e){e&&(e.removeEventListener("wheel",u,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",b,!1))},[b,p,u]);return(0,m.useEffect)(function(){if(t){var e=d.current;return h(e),function(){v(e)}}},[t,h,v]),function(e){d.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),n=function(e){var t=e.isEnabled,a=e.accountForScrollbars,o=void 0===a||a,i=(0,m.useRef)({}),n=(0,m.useRef)(null),r=(0,m.useCallback)(function(e){if(Ga){var t=document.body,a=t&&t.style;if(o&&Ia.forEach(function(e){var t=a&&a[e];i.current[e]=t}),o&&Ka<1){var n=parseInt(i.current.paddingRight,10)||0,r=document.body?document.body.clientWidth:0,l=window.innerWidth-r+n||0;Object.keys(qa).forEach(function(e){var t=qa[e];a&&(a[e]=t)}),a&&(a.paddingRight="".concat(l,"px"))}t&&Ba()&&(t.addEventListener("touchmove",Va,Ua),e&&(e.addEventListener("touchstart",Wa,Ua),e.addEventListener("touchmove",Da,Ua))),Ka+=1}},[o]),l=(0,m.useCallback)(function(e){if(Ga){var t=document.body,a=t&&t.style;Ka=Math.max(Ka-1,0),o&&Ka<1&&Ia.forEach(function(e){var t=i.current[e];a&&(a[e]=t)}),t&&Ba()&&(t.removeEventListener("touchmove",Va,Ua),e&&(e.removeEventListener("touchstart",Wa,Ua),e.removeEventListener("touchmove",Da,Ua)))}},[o]);return(0,m.useEffect)(function(){if(t){var e=n.current;return r(e),function(){l(e)}}},[t,r,l]),function(e){n.current=e}}({isEnabled:a});return Je(m.Fragment,null,a&&Je("div",{onClick:Ya,css:Xa}),t(function(e){i(e),n(e)}))}var Qa={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Za=function(e){var t=e.name,a=e.onFocus;return Je("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:Qa,value:"",onChange:function(){}})};function eo(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function to(){return eo(/^Mac/i)}var ao={clearIndicator:ua,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var a=e.isDisabled,o=e.isFocused,i=e.theme,n=i.colors,r=i.borderRadius;return p({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:a?n.neutral5:n.neutral0,borderColor:a?n.neutral10:o?n.primary:n.neutral20,borderRadius:r,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(n.primary):void 0,"&:hover":{borderColor:o?n.primary:n.neutral30}})},dropdownIndicator:ca,group:function(e,t){var a=e.theme.spacing;return t?{}:{paddingBottom:2*a.baseUnit,paddingTop:2*a.baseUnit}},groupHeading:function(e,t){var a=e.theme,o=a.colors,i=a.spacing;return p({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var a=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,n=o.colors;return p({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:a?n.neutral10:n.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var a=e.isDisabled,o=e.value,i=e.theme,n=i.spacing,r=i.colors;return p(p({visibility:a?"hidden":"visible",transform:o?"translateZ(0)":""},ma),t?{}:{margin:n.baseUnit/2,paddingBottom:n.baseUnit/2,paddingTop:n.baseUnit/2,color:r.neutral80})},loadingIndicator:function(e,t){var a=e.isFocused,o=e.size,i=e.theme,n=i.colors,r=i.spacing.baseUnit;return p({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:a?n.neutral60:n.neutral20,padding:2*r})},loadingMessage:aa,menu:function(e,t){var a,o=e.placement,i=e.theme,n=i.borderRadius,r=i.spacing,l=i.colors;return p((c(a={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),c(a,"position","absolute"),c(a,"width","100%"),c(a,"zIndex",1),a),t?{}:{backgroundColor:l.neutral0,borderRadius:n,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:r.menuGutter,marginTop:r.menuGutter})},menuList:function(e,t){var a=e.maxHeight,o=e.theme.spacing.baseUnit;return p({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,a=e.offset,o=e.position;return{left:t.left,position:o,top:a,width:t.width,zIndex:1}},multiValue:function(e,t){var a=e.theme,o=a.spacing,i=a.borderRadius,n=a.colors;return p({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:n.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var a=e.theme,o=a.borderRadius,i=a.colors,n=e.cropWithEllipsis;return p({overflow:"hidden",textOverflow:n||void 0===n?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var a=e.theme,o=a.spacing,i=a.borderRadius,n=a.colors,r=e.isFocused;return p({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:r?n.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:n.dangerLight,color:n.danger}})},noOptionsMessage:ta,option:function(e,t){var a=e.isDisabled,o=e.isFocused,i=e.isSelected,n=e.theme,r=n.spacing,l=n.colors;return p({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:a?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(2*r.baseUnit,"px ").concat(3*r.baseUnit,"px"),":active":{backgroundColor:a?void 0:i?l.primary:l.primary50}})},placeholder:function(e,t){var a=e.theme,o=a.spacing,i=a.colors;return p({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var a=e.isDisabled,o=e.theme,i=o.spacing,n=o.colors;return p({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:a?n.neutral40:n.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var a=e.theme.spacing,o=e.isMulti,i=e.hasValue,n=e.selectProps.controlShouldRenderValue;return p({alignItems:"center",display:o&&i&&n?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(2*a.baseUnit,"px")})}},oo={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},io={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Et(),captureMenuScroll:!Et(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var a=p({ignoreCase:!0,ignoreAccents:!0,stringify:La,trim:!0,matchFrom:"any"},undefined),o=a.ignoreCase,i=a.ignoreAccents,n=a.stringify,r=a.trim,l=a.matchFrom,s=r?za(t):t,d=r?za(n(e)):n(e);return o&&(s=s.toLowerCase(),d=d.toLowerCase()),i&&(s=Ma(s),d=Ha(d)),"start"===l?d.substr(0,s.length)===s:d.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function no(e,t,a,o){return{type:"option",data:t,isDisabled:ho(e,t,a),isSelected:vo(e,t,a),label:po(e,t),value:bo(e,t),index:o}}function ro(e,t){return e.options.map(function(a,o){if("options"in a){var i=a.options.map(function(a,o){return no(e,a,t,o)}).filter(function(t){return co(e,t)});return i.length>0?{type:"group",data:a,options:i,index:o}:void 0}var n=no(e,a,t,o);return co(e,n)?n:void 0}).filter(Wt)}function lo(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,S(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function so(e,t){return e.reduce(function(e,a){return"group"===a.type?e.push.apply(e,S(a.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(a.index,"-").concat(e.index)}}))):e.push({data:a.data,id:"".concat(t,"-").concat(a.index)}),e},[])}function co(e,t){var a=e.inputValue,o=void 0===a?"":a,i=t.data,n=t.isSelected,r=t.label,l=t.value;return(!mo(e)||!n)&&go(e,{label:r,value:l,data:i},o)}var uo=function(e,t){var a;return(null===(a=e.find(function(e){return e.data===t}))||void 0===a?void 0:a.id)||null},po=function(e,t){return e.getOptionLabel(t)},bo=function(e,t){return e.getOptionValue(t)};function ho(e,t,a){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,a)}function vo(e,t,a){if(a.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,a);var o=bo(e,t);return a.some(function(t){return bo(e,t)===o})}function go(e,t,a){return!e.filterOption||e.filterOption(t,a)}var mo=function(e){var t=e.hideSelectedOptions,a=e.isMulti;return void 0===t?a:t},fo=1,ko=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(a,e);var t=function(e){var t=w();return function(){var a,o=_(e);if(t){var i=_(this).constructor;a=Reflect.construct(o,arguments,i)}else a=o.apply(this,arguments);return function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,a)}}(a);function a(e){var o;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(o=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var a=o.props,i=a.onChange,n=a.name;t.name=n,o.ariaOnChange(e,t),i(e,t)},o.setValue=function(e,t,a){var i=o.props,n=i.closeMenuOnSelect,r=i.isMulti,l=i.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:l}),n&&(o.setState({inputIsHiddenAfterUpdate:!r}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:a})},o.selectOption=function(e){var t=o.props,a=t.blurInputOnSelect,i=t.isMulti,n=t.name,r=o.state.selectValue,l=i&&o.isOptionSelected(e,r),s=o.isOptionDisabled(e,r);if(l){var d=o.getOptionValue(e);o.setValue(r.filter(function(e){return o.getOptionValue(e)!==d}),"deselect-option",e)}else{if(s)return void o.ariaOnChange(e,{action:"select-option",option:e,name:n});i?o.setValue([].concat(S(r),[e]),"select-option",e):o.setValue(e,"select-option")}a&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,a=o.state.selectValue,i=o.getOptionValue(e),n=a.filter(function(e){return o.getOptionValue(e)!==i}),r=Bt(t,n,n[0]||null);o.onChange(r,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange(Bt(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,a=t[t.length-1],i=t.slice(0,t.length-1),n=Bt(e,i,i[0]||null);a&&o.onChange(n,{action:"pop-value",removedValue:a})},o.getFocusedOptionId=function(e){return uo(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return so(ro(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Pt.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return po(o.props,e)},o.getOptionValue=function(e){return bo(o.props,e)},o.getStyles=function(e,t){var a=o.props.unstyled,i=ao[e](t,a);i.boxSizing="border-box";var n=o.props.styles[e];return n?n(i,t):i},o.getClassNames=function(e,t){var a,i;return null===(a=(i=o.props.classNames)[e])||void 0===a?void 0:a.call(i,t)},o.getElementId=function(e){return"".concat(o.state.instancePrefix,"-").concat(e)},o.getComponents=function(){return e=o.props,p(p({},ya),e.components);var e},o.buildCategorizedOptions=function(){return ro(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return lo(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:p({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,a=t.isMulti,i=t.menuIsOpen;o.focusInput(),i?(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Ht(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,a=t&&t.item(0);a&&(o.initialTouchX=a.clientX,o.initialTouchY=a.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,a=t&&t.item(0);if(a){var i=Math.abs(a.clientX-o.initialTouchX),n=Math.abs(a.clientY-o.initialTouchY);o.userIsDragging=i>5||n>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,a=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(a,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null})}},o.shouldHideSelectedOptions=function(){return mo(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,a=t.isMulti,i=t.backspaceRemovesValue,n=t.escapeClearsValue,r=t.inputValue,l=t.isClearable,s=t.isDisabled,d=t.menuIsOpen,c=t.onKeyDown,u=t.tabSelectsValue,p=t.openMenuOnFocus,b=o.state,h=b.focusedOption,v=b.focusedValue,g=b.selectValue;if(!(s||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!a||r)return;o.focusValue("previous");break;case"ArrowRight":if(!a||r)return;o.focusValue("next");break;case"Delete":case"Backspace":if(r)return;if(v)o.removeValue(v);else{if(!i)return;a?o.popValue():l&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!d||!u||!h||p&&o.isOptionSelected(h,g))return;o.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(d){if(!h)return;if(o.isComposing)return;o.selectOption(h);break}return;case"Escape":d?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:r}),o.onMenuClose()):l&&n&&o.clearValue();break;case" ":if(r)return;if(!d){o.openMenu("first");break}if(!h)return;o.selectOption(h);break;case"ArrowUp":d?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":d?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!d)return;o.focusOption("pageup");break;case"PageDown":if(!d)return;o.focusOption("pagedown");break;case"Home":if(!d)return;o.focusOption("first");break;case"End":if(!d)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++fo),o.state.selectValue=Ft(e.value),e.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),n=o.buildFocusableOptions(),r=n.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=n[r],o.state.focusedOptionId=uo(i,n[r])}return o}return function(e,t,a){t&&y(e.prototype,t),a&&y(e,a),Object.defineProperty(e,"prototype",{writable:!1})}(a,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Rt(this.menuListRef,this.focusedOptionRef),(to()||eo(/^iPhone/i)||eo(/^iPad/i)||to()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,a=t.isDisabled,o=t.menuIsOpen,i=this.state.isFocused;(i&&!a&&e.isDisabled||i&&o&&!e.menuIsOpen)&&this.focusInput(),i&&a&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||a||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Rt(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,a=this.state,o=a.selectValue,i=a.isFocused,n=this.buildFocusableOptions(),r="first"===e?0:n.length-1;if(!this.props.isMulti){var l=n.indexOf(o[0]);l>-1&&(r=l)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:n[r],focusedOptionId:this.getFocusedOptionId(n[r])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,a=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=a.indexOf(o);o||(i=-1);var n=a.length-1,r=-1;if(a.length){switch(e){case"previous":r=0===i?0:-1===i?n:i-1;break;case"next":i>-1&&i<n&&(r=i+1)}this.setState({inputIsHidden:-1!==r,focusedValue:a[r]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,a=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var i=0,n=o.indexOf(a);a||(n=-1),"up"===e?i=n>0?n-1:o.length-1:"down"===e?i=(n+1)%o.length:"pageup"===e?(i=n-t)<0&&(i=0):"pagedown"===e?(i=n+t)>o.length-1&&(i=o.length-1):"last"===e&&(i=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(oo):p(p({},oo),this.props.theme):oo}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,a=this.getStyles,o=this.getClassNames,i=this.getValue,n=this.selectOption,r=this.setValue,l=this.props,s=l.isMulti,d=l.isRtl,c=l.options;return{clearValue:e,cx:t,getStyles:a,getClassNames:o,getValue:i,hasValue:this.hasValue(),isMulti:s,isRtl:d,options:c,selectOption:n,selectProps:l,setValue:r,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,a=e.isMulti;return void 0===t?a:t}},{key:"isOptionDisabled",value:function(e,t){return ho(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return vo(this.props,e,t)}},{key:"filterOption",value:function(e,t){return go(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var a=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:a,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,a=e.isSearchable,o=e.inputId,i=e.inputValue,n=e.tabIndex,r=e.form,l=e.menuIsOpen,s=e.required,d=this.getComponents().Input,c=this.state,u=c.inputIsHidden,b=c.ariaSelection,h=this.commonProps,v=o||this.getElementId("input"),g=p(p(p({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==b?void 0:b.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?m.createElement(d,k({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:u,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:n,form:r,type:"text",value:i},g)):m.createElement(Ea,k({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Tt,onFocus:this.onInputFocus,disabled:t,tabIndex:n,inputMode:"none",form:r,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),a=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,n=t.MultiValueRemove,r=t.SingleValue,l=t.Placeholder,s=this.commonProps,d=this.props,c=d.controlShouldRenderValue,u=d.isDisabled,p=d.isMulti,b=d.inputValue,h=d.placeholder,v=this.state,g=v.selectValue,f=v.focusedValue,y=v.isFocused;if(!this.hasValue()||!c)return b?null:m.createElement(l,k({},s,{key:"placeholder",isDisabled:u,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return g.map(function(t,r){var l=t===f,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return m.createElement(a,k({},s,{components:{Container:o,Label:i,Remove:n},isFocused:l,isDisabled:u,key:d,index:r,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(b)return null;var x=g[0];return m.createElement(r,k({},s,{data:x,isDisabled:u}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,a=this.props,o=a.isDisabled,i=a.isLoading,n=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var r={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return m.createElement(e,k({},t,{innerProps:r,isFocused:n}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,a=this.props,o=a.isDisabled,i=a.isLoading,n=this.state.isFocused;return e&&i?m.createElement(e,k({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:n})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,a=e.IndicatorSeparator;if(!t||!a)return null;var o=this.commonProps,i=this.props.isDisabled,n=this.state.isFocused;return m.createElement(a,k({},o,{isDisabled:i,isFocused:n}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,a=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return m.createElement(e,k({},t,{innerProps:i,isDisabled:a,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),a=t.Group,o=t.GroupHeading,i=t.Menu,n=t.MenuList,r=t.MenuPortal,l=t.LoadingMessage,s=t.NoOptionsMessage,d=t.Option,c=this.commonProps,u=this.state.focusedOption,p=this.props,b=p.captureMenuScroll,h=p.inputValue,v=p.isLoading,g=p.loadingMessage,f=p.minMenuHeight,y=p.maxMenuHeight,x=p.menuIsOpen,_=p.menuPlacement,w=p.menuPosition,S=p.menuPortalTarget,C=p.menuShouldBlockScroll,j=p.menuShouldScrollIntoView,O=p.noOptionsMessage,T=p.onMenuScrollToTop,$=p.onMenuScrollToBottom;if(!x)return null;var P,F=function(t,a){var o=t.type,i=t.data,n=t.isDisabled,r=t.isSelected,l=t.label,s=t.value,p=u===i,b=n?void 0:function(){return e.onOptionHover(i)},h=n?void 0:function(){return e.selectOption(i)},v="".concat(e.getElementId("option"),"-").concat(a),g={id:v,onClick:h,onMouseMove:b,onMouseOver:b,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:r};return m.createElement(d,k({},c,{innerProps:g,data:i,isDisabled:n,isSelected:r,key:v,label:l,type:o,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map(function(t){if("group"===t.type){var i=t.data,n=t.options,r=t.index,l="".concat(e.getElementId("group"),"-").concat(r),s="".concat(l,"-heading");return m.createElement(a,k({},c,{key:l,data:i,options:n,Heading:o,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return F(e,"".concat(r,"-").concat(e.index))}))}if("option"===t.type)return F(t,"".concat(t.index))});else if(v){var A=g({inputValue:h});if(null===A)return null;P=m.createElement(l,c,A)}else{var N=O({inputValue:h});if(null===N)return null;P=m.createElement(s,c,N)}var H={minMenuHeight:f,maxMenuHeight:y,menuPlacement:_,menuPosition:w,menuShouldScrollIntoView:j},M=m.createElement(Zt,k({},c,H),function(t){var a=t.ref,o=t.placerProps,r=o.placement,l=o.maxHeight;return m.createElement(i,k({},c,H,{innerRef:a,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:r}),m.createElement(Ja,{captureEnabled:b,onTopArrive:T,onBottomArrive:$,lockEnabled:C},function(t){return m.createElement(n,k({},c,{innerRef:function(a){e.getMenuListRef(a),t(a)},innerProps:{role:"listbox","aria-multiselectable":c.isMulti,id:e.getElementId("listbox")},isLoading:v,maxHeight:l,focusedOption:u}),P)}))});return S||"fixed"===w?m.createElement(r,k({},c,{appendTo:S,controlElement:this.controlRef,menuPlacement:_,menuPosition:w}),M):M}},{key:"renderFormField",value:function(){var e=this,t=this.props,a=t.delimiter,o=t.isDisabled,i=t.isMulti,n=t.name,r=t.required,l=this.state.selectValue;if(r&&!this.hasValue()&&!o)return m.createElement(Za,{name:n,onFocus:this.onValueInputFocus});if(n&&!o){if(i){if(a){var s=l.map(function(t){return e.getOptionValue(t)}).join(a);return m.createElement("input",{name:n,type:"hidden",value:s})}var d=l.length>0?l.map(function(t,a){return m.createElement("input",{key:"i-".concat(a),name:n,type:"hidden",value:e.getOptionValue(t)})}):m.createElement("input",{name:n,type:"hidden",value:""});return m.createElement("div",null,d)}var c=l[0]?this.getOptionValue(l[0]):"";return m.createElement("input",{name:n,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,a=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,n=t.isFocused,r=t.selectValue,l=this.getFocusableOptions();return m.createElement(Oa,k({},e,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:o,focusedValue:i,isFocused:n,selectValue:r,focusableOptions:l,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,a=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,n=this.props,r=n.className,l=n.id,s=n.isDisabled,d=n.menuIsOpen,c=this.state.isFocused,u=this.commonProps=this.getCommonProps();return m.createElement(o,k({},u,{className:r,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:c}),this.renderLiveRegion(),m.createElement(t,k({},u,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:c,menuIsOpen:d}),m.createElement(i,k({},u,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),m.createElement(a,k({},u,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a=t.prevProps,o=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,n=t.ariaSelection,r=t.isFocused,l=t.prevWasFocused,s=t.instancePrefix,d=e.options,c=e.value,u=e.menuIsOpen,b=e.inputValue,h=e.isMulti,v=Ft(c),g={};if(a&&(c!==a.value||d!==a.options||u!==a.menuIsOpen||b!==a.inputValue)){var m=u?function(e,t){return lo(ro(e,t))}(e,v):[],f=u?so(ro(e,v),"".concat(s,"-option")):[],k=o?function(e,t){var a=e.focusedValue,o=e.selectValue.indexOf(a);if(o>-1){if(t.indexOf(a)>-1)return a;if(o<t.length)return t[o]}return null}(t,v):null,y=function(e,t){var a=e.focusedOption;return a&&t.indexOf(a)>-1?a:t[0]}(t,m);g={selectValue:v,focusedOption:y,focusedOptionId:uo(f,y),focusableOptionsWithIds:f,focusedValue:k,clearFocusValueOnUpdate:!1}}var x=null!=i&&e!==a?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},_=n,w=r&&l;return r&&!w&&(_={value:Bt(h,v,v[0]||null),options:v,action:"initial-input-focus"},w=!l),"initial-input-focus"===(null==n?void 0:n.action)&&(_=null),p(p(p({},g),x),{},{prevProps:e,ariaSelection:_,prevWasFocused:w})}}]),a}(m.Component);ko.defaultProps=io;var yo=(0,m.forwardRef)(function(e,t){var a=function(e){var t=e.defaultInputValue,a=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,n=e.defaultValue,r=void 0===n?null:n,l=e.inputValue,s=e.menuIsOpen,d=e.onChange,c=e.onInputChange,u=e.onMenuClose,b=e.onMenuOpen,h=e.value,k=g(e,f),y=v((0,m.useState)(void 0!==l?l:a),2),x=y[0],_=y[1],w=v((0,m.useState)(void 0!==s?s:i),2),S=w[0],C=w[1],j=v((0,m.useState)(void 0!==h?h:r),2),O=j[0],T=j[1],$=(0,m.useCallback)(function(e,t){"function"==typeof d&&d(e,t),T(e)},[d]),P=(0,m.useCallback)(function(e,t){var a;"function"==typeof c&&(a=c(e,t)),_(void 0!==a?a:e)},[c]),F=(0,m.useCallback)(function(){"function"==typeof b&&b(),C(!0)},[b]),A=(0,m.useCallback)(function(){"function"==typeof u&&u(),C(!1)},[u]),N=void 0!==l?l:x,H=void 0!==s?s:S,M=void 0!==h?h:O;return p(p({},k),{},{inputValue:N,menuIsOpen:H,onChange:$,onInputChange:P,onMenuClose:A,onMenuOpen:F,value:M})}(e);return m.createElement(ko,k({ref:t},a))}),xo=yo;const _o=window.wp.apiFetch;var wo=a.n(_o);const So=window.wp.i18n,Co=window.wp.components,jo=window.ReactJSXRuntime,{addQueryArgs:Oo}=wp.url,{Component:To}=wp.element,$o=class extends To{constructor(e,t,a){super(...arguments),this.getMailerLiteGroup=this.getMailerLiteGroup.bind(this),this.getMailerLiteFields=this.getMailerLiteFields.bind(this),this.removeAPI=this.removeAPI.bind(this),this.saveAPI=this.saveAPI.bind(this),this.state={api:"",isSavedAPI:!1,isSaving:!1,group:!1,isFetching:!1,groupsLoaded:!1,isFetchingFields:!1,groupFields:!1,groupFieldsLoaded:!1,groupError:""}}componentDidMount(){wo()({path:"/wp/v2/settings",method:"GET"}).then(e=>{this.setState({api:e.kadence_blocks_mailerlite_api}),""!==this.state.api&&this.setState({isSavedAPI:!0})})}getMailerLiteGroup(){let e=(0,So.__)("Groups could not be accessed using API key","kadence-blocks");this.state.api?(this.setState({isFetching:!0}),wo()({path:Oo("/kb-mailerlite/v1/get",{apikey:this.state.api,endpoint:"groups",queryargs:["limit=250"]})}).then(t=>{if(Array.isArray(t)){const e=[];t.map(t=>{e.push({value:t.id,label:t.name})}),this.setState({group:e,groupError:"",groupsLoaded:!0,isFetching:!1})}else if(void 0!==t?.data&&Array.isArray(t.data)){const e=[];t.data.map(t=>{e.push({value:t.id,label:t.name})}),this.setState({group:e,groupError:"",groupsLoaded:!0,isFetching:!1})}else"Forbidden"===t?e=(0,So.__)("Retrieving groups was denied (403) for that API token or because of Mailerlite firewall. Contact MailerLite for support.","kadence-blocks"):"Unauthorized"===t&&(e=(0,So.__)("Retrieving groups was denied because the provided API token is invalid.","kadence-blocks")),this.setState({group:[],groupError:e,groupsLoaded:!0,isFetching:!1})}).catch(()=>{this.setState({group:[],groupError:e,groupsLoaded:!0,isFetching:!1})})):this.setState({group:[],groupError:e,groupsLoaded:!0})}getMailerLiteFields(){if(!this.state.api){const e=[];return e.push({value:null,label:"None"}),e.push({value:"email",label:"Email *"}),void this.setState({groupFields:e,groupFieldsLoaded:!0})}this.setState({isFetchingFields:!0}),wo()({path:Oo("/kb-mailerlite/v1/get",{apikey:this.state.api,endpoint:"fields"})}).then(e=>{if(Array.isArray(e)){const t=[];t.push({value:null,label:"None"}),t.push({value:"email",label:"Email *"}),e.map((e,a)=>{"email"!==e.key&&t.push({value:e.key,label:e.title})}),this.setState({groupFields:t,groupFieldsLoaded:!0,isFetchingFields:!1})}else if(void 0!==e?.data&&Array.isArray(e.data)){const t=[];t.push({value:null,label:"None"}),t.push({value:"email",label:"Email *"}),e.data.map((e,a)=>{"email"!==e.key&&t.push({value:e.key,label:e.name})}),this.setState({groupFields:t,groupFieldsLoaded:!0,isFetchingFields:!1})}else{const e=[];e.push({value:null,label:"None"}),e.push({value:"email",label:"Email *"}),this.setState({groupFields:e,groupFieldsLoaded:!0,isFetchingFields:!1})}}).catch(()=>{const e=[];e.push({value:null,label:"None"}),e.push({value:"email",label:"Email *"}),this.setState({groupFields:e,groupFieldsLoaded:!0,isFetchingFields:!1})})}removeAPI(){this.setState({api:""}),this.state.isSavedAPI&&(this.setState({isSaving:!0}),new wp.api.models.Settings({kadence_blocks_mailerlite_api:""}).save().then(()=>{this.setState({isSavedAPI:!1,isSaving:!1})}))}saveAPI(){this.setState({isSaving:!0}),new wp.api.models.Settings({kadence_blocks_mailerlite_api:this.state.api}).save().then(e=>{this.setState({isSaving:!1,isSavedAPI:!0})})}render(){const{group:e,groupsLoaded:t,isFetching:a,isSavedAPI:o,groupFields:i,groupError:n,isFetchingFields:r,groupFieldsLoaded:s}=this.state,d=!(!Array.isArray(e)||!e.length),c=!(!Array.isArray(this.state.groupFields)||!this.state.groupFields.length);return(0,jo.jsxs)(l.KadencePanelBody,{title:(0,So.__)("MailerLite Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-mailerlite-settings",children:[(0,jo.jsx)("p",{children:(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)(Co.ExternalLink,{href:"https://dashboard.mailerlite.com/integrations/api",children:(0,So.__)("Get API Key","kadence-blocks")}),"| ",(0,jo.jsx)(Co.ExternalLink,{href:"https://www.mailerlite.com/help/where-to-find-the-mailerlite-api-key-groupid-and-documentation",children:(0,So.__)("Get help","kadence-blocks")})]})}),(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("API Key","kadence-blocks"),value:this.state.api,onChange:e=>this.setState({api:e})}),(0,jo.jsxs)("div",{className:"components-base-control",children:[(0,jo.jsx)(Co.Button,{isPrimary:!0,onClick:this.saveAPI,disabled:""===this.state.api,children:this.state.isSaving?(0,So.__)("Saving","kadence-blocks"):(0,So.__)("Save","kadence-blocks")}),this.state.isSavedKey&&(0,jo.jsxs)(jo.Fragment,{children:[" ",(0,jo.jsx)(Co.Button,{isSecondary:!0,onClick:this.removeAPI,children:(0,So.__)("Remove","kadence-blocks")})]})]}),o&&(0,jo.jsxs)(jo.Fragment,{children:[a&&(0,jo.jsx)(Co.Spinner,{}),!a&&!d&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)("h2",{className:"kt-heading-size-title",children:(0,So.__)("Select Group","kadence-blocks")}),t?"":this.getMailerLiteGroup(),t?n:(0,jo.jsx)(Co.Spinner,{})]}),!a&&!0===d&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)("h2",{className:"kt-heading-size-title",children:(0,So.__)("Select Group","kadence-blocks")}),(0,jo.jsx)("div",{className:"mailerlite-select-form-row",children:(0,jo.jsx)(xo,{value:e?e.filter(({value:e})=>e.toString()===(void 0!==this.props.settings[0].group&&this.props.settings[0].group[0]?this.props.settings[0].group[0].toString():"")):"",onChange:e=>{this.props.save({group:e.value?[e.value]:[]})},placeholder:(0,So.__)("Select a Group","kadence-blocks"),maxMenuHeight:300,options:e})}),!this.props.settings[0].group&&(0,jo.jsx)("div",{style:{height:"100px"}}),this.props.settings[0].group&&(0,jo.jsxs)(jo.Fragment,{children:[r&&(0,jo.jsx)(Co.Spinner,{}),!r&&!c&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)("h2",{className:"kt-heading-size-title",children:(0,So.__)("Map Fields","kadence-blocks")}),s?"":this.getMailerLiteFields(),Array.isArray(i)?(0,So.__)("No Fields found.","kadence-blocks"):(0,jo.jsx)(Co.Spinner,{})]}),!r&&!0===c&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)("h2",{className:"kt-heading-size-title",children:(0,So.__)("Map Fields","kadence-blocks")}),this.props.fields&&this.props.fields.map((e,t)=>(0,jo.jsxs)("div",{className:"kb-field-map-item",children:[(0,jo.jsxs)("div",{className:"kb-field-map-item-form",children:[(0,jo.jsx)("p",{className:"kb-field-map-item-label",children:(0,So.__)("Form Field","kadence-blocks")}),(0,jo.jsx)("p",{className:"kb-field-map-item-name",children:e.label})]}),(0,jo.jsx)(Co.SelectControl,{label:(0,So.__)("Select Field:","kadence-blocks"),options:i,value:void 0!==this.props.settings[0].map&&void 0!==this.props.settings[0].map[t]&&this.props.settings[0].map[t]?this.props.settings[0].map[t]:"",onChange:e=>{this.props.saveMap(e,t)}})]},t))]})]})]})]})]})}},Po=window.wp.url,{Component:Fo,Fragment:Ao}=wp.element,No=class extends Fo{constructor(e,t,a){super(...arguments),this.getLists=this.getLists.bind(this),this.getFields=this.getFields.bind(this),this.getTags=this.getTags.bind(this),this.state={isActive:!1,isSaving:!1,list:!1,listTags:!1,isFetching:!1,isFetchingTags:!1,listsLoaded:!1,isFetchingFields:!1,listFields:!1,listFieldsLoaded:!1}}componentDidMount(){void 0!==kadence_blocks_params.fluentCRM&&kadence_blocks_params.fluentCRM&&this.setState({isActive:!0})}getLists(){this.setState({isFetching:!0}),wo()({path:(0,Po.addQueryArgs)("/kb-fluentcrm/v1/get",{endpoint:"lists"})}).then(e=>{const t=[];e.map(e=>{t.push({value:e.id,label:e.title})}),this.setState({list:t,listsLoaded:!0,isFetching:!1})}).catch(()=>{this.setState({list:[],listsLoaded:!0,isFetching:!1})})}getTags(){this.setState({isFetchingTags:!0}),wo()({path:(0,Po.addQueryArgs)("/kb-fluentcrm/v1/get",{endpoint:"tags"})}).then(e=>{const t=[];e.map(e=>{t.push({value:e.id,label:e.title})}),this.setState({listTags:t,tagsLoaded:!0,isFetchingTags:!1})}).catch(()=>{this.setState({listTags:[],tagsLoaded:!0,isFetchingTags:!1})})}getFields(){this.setState({isFetchingFields:!0}),wo()({path:(0,Po.addQueryArgs)("/kb-fluentcrm/v1/get",{endpoint:"fields"})}).then(e=>{const t=[];t.push({value:null,label:"None"}),t.push({value:"email",label:"Email *"}),e.map((e,a)=>{"email"!==e.key&&t.push({value:e.key,label:e.title})}),this.setState({listFields:t,listFieldsLoaded:!0,isFetchingFields:!1})}).catch(()=>{const e=[];e.push({value:null,label:"None"}),e.push({value:"email",label:"Email *"}),this.setState({listFields:e,listFieldsLoaded:!0,isFetchingFields:!1})})}render(){const{list:e,listsLoaded:t,isFetching:a,isActive:o,listFields:i,isFetchingFields:n,listFieldsLoaded:r,tagsLoaded:s,isFetchingTags:d,listTags:c}=this.state,u=Array.isArray(e)&&e.length,p=Array.isArray(this.state.listFields)&&this.state.listFields.length,b=Array.isArray(this.state.listTags)&&this.state.listTags.length;return(0,jo.jsxs)(l.KadencePanelBody,{title:(0,So.__)("FluentCRM Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-fluent-crm-settings",children:[!o&&(0,jo.jsx)(jo.Fragment,{children:(0,So.__)("FluentCRM is not setup/active.","kadence-blocks")}),o&&(0,jo.jsxs)(jo.Fragment,{children:[a&&(0,jo.jsx)(Co.Spinner,{}),!a&&!u&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)("h2",{className:"kt-heading-size-title",children:(0,So.__)("Select List","kadence-blocks")}),t?"":this.getLists(),Array.isArray(e)?(0,So.__)("No lists found.","kadence-blocks"):(0,jo.jsx)(Co.Spinner,{})]}),!a&&u&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)("h2",{className:"kb-heading-fln-list-title",children:(0,So.__)("Select List","kadence-blocks")}),(0,jo.jsx)(xo,{value:void 0!==this.props.settings[0].lists?this.props.settings[0].lists:"",onChange:e=>{this.props.save({lists:e||[]})},id:"fln-list-selection",options:e,isMulti:!0,maxMenuHeight:200,placeholder:(0,So.__)("Select List","kadence-blocks")}),!this.props.settings[0].lists&&(0,jo.jsx)("div",{style:{height:"100px"}}),void 0!==this.props.settings&&void 0!==this.props.settings[0]&&this.props.settings[0].lists&&this.props.settings[0].lists[0]&&(0,jo.jsxs)(jo.Fragment,{children:[d&&(0,jo.jsx)(Co.Spinner,{}),!d&&!b&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)("h2",{className:"kt-heading-size-title",children:(0,So.__)("Select Tags","kadence-blocks")}),s?"":this.getTags(),Array.isArray(c)?(0,So.__)("No Tags found.","kadence-blocks"):(0,jo.jsx)(Co.Spinner,{})]}),!d&&b&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)("h2",{className:"kt-heading-size-title",children:(0,So.__)("Select Tags","kadence-blocks")}),(0,jo.jsx)(xo,{value:void 0!==this.props.settings&&void 0!==this.props.settings[0]&&void 0!==this.props.settings[0].tags?this.props.settings[0].tags:"",onChange:e=>{this.props.save({tags:e||[]})},id:"fln-tag-selection",isClearable:!0,options:c,isMulti:!0,maxMenuHeight:200,placeholder:(0,So.__)("Select Tags","kadence-blocks")})]}),n&&(0,jo.jsx)(Co.Spinner,{}),!n&&!p&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)("h2",{className:"kt-heading-size-title",children:(0,So.__)("Map Fields","kadence-blocks")}),r?"":this.getFields(),Array.isArray(i)?(0,So.__)("No Fields found.","kadence-blocks"):(0,jo.jsx)(Co.Spinner,{})]}),!n&&p&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)("h2",{className:"kt-heading-size-title",children:(0,So.__)("Map Fields","kadence-blocks")}),this.props.fields&&this.props.fields.map((e,t)=>(0,jo.jsxs)("div",{className:"kb-field-map-item",children:[(0,jo.jsxs)("div",{className:"kb-field-map-item-form",children:[(0,jo.jsx)("p",{className:"kb-field-map-item-label",children:(0,So.__)("Form Field","kadence-blocks")}),(0,jo.jsx)("p",{className:"kb-field-map-item-name",children:e.label})]}),(0,jo.jsx)(Co.SelectControl,{label:(0,So.__)("Select Field:","kadence-blocks"),options:i,value:void 0!==this.props.settings[0].map&&void 0!==this.props.settings[0].map[t]&&this.props.settings[0].map[t]?this.props.settings[0].map[t]:"",onChange:e=>{this.props.saveMap(e,t)}})]},t))]}),(0,jo.jsx)("div",{style:{height:"10px"}}),(0,jo.jsx)(Co.ToggleControl,{label:(0,So.__)("Require Double Opt In?","kadence-blocks"),checked:void 0!==this.props.settings&&void 0!==this.props.settings[0]&&void 0!==this.props.settings[0].doubleOptin&&this.props.settings[0].doubleOptin,onChange:e=>this.props.save({doubleOptin:e})})]})]})]})]})}},Ho=window.kadence.helpers,Mo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"title":"Form","name":"kadence/form","category":"kadence-blocks","textdomain":"kadence-blocks","keywords":["contact","marketing","KB"],"attributes":{"uniqueID":{"type":"string","default":""},"postID":{"type":"string","default":""},"hAlign":{"type":"string","default":""},"fields":{"type":"array","default":[{"label":"Name","showLabel":true,"placeholder":"","default":"","description":"","rows":4,"options":[{"value":"","label":""}],"multiSelect":false,"inline":false,"showLink":false,"min":"","max":"","type":"text","required":false,"width":["100","",""],"auto":"","errorMessage":"","requiredMessage":"","slug":"","ariaLabel":""},{"label":"Email","showLabel":true,"placeholder":"","default":"","description":"","rows":4,"options":[{"value":"","label":""}],"multiSelect":false,"inline":false,"showLink":false,"min":"","max":"","type":"email","required":true,"width":["100","",""],"auto":"","errorMessage":"","requiredMessage":"","slug":"","ariaLabel":""},{"label":"Message","showLabel":true,"placeholder":"","default":"","description":"","rows":4,"options":[{"value":"","label":""}],"multiSelect":false,"inline":false,"showLink":false,"min":"","max":"","type":"textarea","required":true,"width":["100","",""],"auto":"","errorMessage":"","requiredMessage":"","slug":"","ariaLabel":""}]},"messages":{"type":"array","default":[{"success":"","error":"","required":"","invalid":"","recaptchaerror":"","preError":""}]},"messageFont":{"type":"array","default":[{"colorSuccess":"","colorError":"","borderSuccess":"","borderError":"","backgroundSuccess":"","backgroundSuccessOpacity":1,"backgroundError":"","backgroundErrorOpacity":1,"borderWidth":["","","",""],"borderRadius":"","size":["","",""],"sizeType":"px","lineHeight":["","",""],"lineType":"px","letterSpacing":"","textTransform":"","family":"","google":"","style":"","weight":"","variant":"","subset":"","loadGoogle":true,"padding":["","","",""],"margin":["","","",""]}]},"style":{"type":"array","default":[{"showRequired":true,"size":"standard","deskPadding":["","","",""],"tabletPadding":["","","",""],"mobilePadding":["","","",""],"color":"","requiredColor":"","background":"","border":"","backgroundOpacity":1,"borderOpacity":1,"borderRadius":"","borderWidth":["","","",""],"colorActive":"","backgroundActive":"","borderActive":"","backgroundActiveOpacity":1,"borderActiveOpacity":1,"gradient":["#999999",1,0,100,"linear",180,"center center"],"gradientActive":["#777777",1,0,100,"linear",180,"center center"],"backgroundType":"solid","backgroundActiveType":"solid","boxShadow":[false,"#000000",0.2,1,1,2,0,false],"boxShadowActive":[false,"#000000",0.4,2,2,3,0,false],"fontSize":["","",""],"fontSizeType":"px","lineHeight":["","",""],"lineType":"px","rowGap":"","rowGapType":"px","gutter":"","gutterType":"px","tabletRowGap":"","mobileRowGap":"","tabletGutter":"","mobileGutter":""}]},"labelFont":{"type":"array","default":[{"color":"","size":["","",""],"sizeType":"px","lineHeight":["","",""],"lineType":"px","letterSpacing":"","textTransform":"","family":"","google":"","style":"","weight":"","variant":"","subset":"","loadGoogle":true,"padding":["","","",""],"margin":["","","",""]}]},"submit":{"type":"array","default":[{"label":"","width":["100","",""],"size":"standard","widthType":"auto","fixedWidth":["","",""],"align":["","",""],"deskPadding":["","","",""],"tabletPadding":["","","",""],"mobilePadding":["","","",""],"color":"","background":"","border":"","backgroundOpacity":1,"borderOpacity":1,"borderRadius":"","borderWidth":["","","",""],"colorHover":"","backgroundHover":"","borderHover":"","backgroundHoverOpacity":1,"borderHoverOpacity":1,"icon":"","iconSide":"right","iconHover":false,"cssClass":"","gradient":["#999999",1,0,100,"linear",180,"center center"],"gradientHover":["#777777",1,0,100,"linear",180,"center center"],"btnStyle":"basic","btnSize":"standard","backgroundType":"solid","backgroundHoverType":"solid","boxShadow":[false,"#000000",0.2,1,1,2,0,false],"boxShadowHover":[false,"#000000",0.4,2,2,3,0,false]}]},"submitMargin":{"type":"array","default":[{"desk":["","","",""],"tablet":["","","",""],"mobile":["","","",""],"unit":"px","control":"linked"}]},"submitFont":{"type":"array","default":[{"size":["","",""],"sizeType":"px","lineHeight":["","",""],"lineType":"px","letterSpacing":"","textTransform":"","family":"","google":"","style":"","weight":"","variant":"","subset":"","loadGoogle":true}]},"actions":{"type":"array","default":["email"]},"email":{"type":"array","default":[{"emailTo":"","subject":"","fromEmail":"","fromName":"","replyTo":"email_field","cc":"","bcc":"","html":true}]},"redirect":{"type":"string","default":""},"recaptcha":{"type":"boolean","default":false},"recaptchaVersion":{"type":"string","default":"v3"},"honeyPot":{"type":"boolean","default":true},"mailerlite":{"type":"array","default":[{"group":[],"map":[]}]},"fluentcrm":{"type":"array","default":[{"lists":[],"tags":[],"map":[],"doubleOptin":false}]},"containerMarginType":{"type":"string","default":"px"},"containerMargin":{"type":"array","default":["","","",""]},"tabletContainerMargin":{"type":"array","default":["","","",""]},"mobileContainerMargin":{"type":"array","default":["","","",""]},"submitLabel":{"type":"string","default":""},"hAlignFormFeilds":{"type":"boolean","default":false}},"supports":{"anchor":true,"align":["wide","full"],"ktanimate":true,"ktanimateadd":true,"ktanimatepreview":true,"ktanimateswipe":true,"kbMetadata":true},"usesContext":["postId"]}'),zo=(window.wp.widgets,window.wp.data),Lo=window.wp.element,Ro=window.wp.blockEditor,Eo=window.wp.hooks,Io=window.wp.keycodes,qo=[{value:"email",label:(0,So.__)("Email","kadence-blocks"),help:"",isDisabled:!1},{value:"redirect",label:(0,So.__)("Redirect","kadence-blocks"),help:"",isDisabled:!1},{value:"mailerlite",label:(0,So.__)("Mailerlite","kadence-blocks"),help:(0,So.__)("Add User to MailerLite list","kadence-blocks"),isDisabled:!1},{value:"fluentCRM",label:(0,So.__)("FluentCRM","kadence-blocks"),help:(0,So.__)("Add User to FluentCRM list","kadence-blocks"),isDisabled:!1},{value:"autoEmail",label:(0,So.__)("Auto Respond Email (Pro addon)","kadence-blocks"),help:(0,So.__)("Send instant response to form entrant","kadence-blocks"),isDisabled:!0},{value:"entry",label:(0,So.__)("Database Entry (Pro addon)","kadence-blocks"),help:(0,So.__)("Log each form submission","kadence-blocks"),isDisabled:!0},{value:"sendinblue",label:(0,So.__)("Brevo (SendInBlue) (Pro addon)","kadence-blocks"),help:(0,So.__)("Add user to Brevo list","kadence-blocks"),isDisabled:!0},{value:"mailchimp",label:(0,So.__)("MailChimp (Pro addon)","kadence-blocks"),help:(0,So.__)("Add user to MailChimp list","kadence-blocks"),isDisabled:!0},{value:"mailchimp",label:(0,So.__)("MailChimp (Pro addon)","kadence-blocks"),help:(0,So.__)("Add user to MailChimp list","kadence-blocks"),isDisabled:!0},{value:"webhook",label:(0,So.__)("WebHook (Pro addon)","kadence-blocks"),help:(0,So.__)("Send form information to any third party webhook","kadence-blocks"),isDisabled:!0}];(0,window.wp.blocks.registerBlockType)("kadence/form",{...Mo,title:(0,So._x)("Form","block title","kadence-blocks"),description:(0,So.__)("Create a contact or marketing form for your website.","kadence-blocks"),keywords:[(0,So.__)("contact","kadence-blocks"),(0,So.__)("marketing","kadence-blocks"),"KB"],icon:{src:n.formBlockIcon},edit:function(e){const{attributes:t,className:a,isSelected:o,setAttributes:n,clientId:s}=e,{uniqueID:d,style:c,fields:u,submit:p,actions:b,align:h,labelFont:v,recaptcha:g,redirect:m,messages:f,messageFont:k,email:y,hAlign:x,honeyPot:_,submitFont:w,kadenceAnimation:S,kadenceAOSOptions:C,submitMargin:j,recaptchaVersion:O,mailerlite:T,fluentcrm:$,containerMargin:P,tabletContainerMargin:F,mobileContainerMargin:A,containerMarginType:N,submitLabel:H,postID:M,hAlignFormFeilds:z}=t,{previewDevice:L}=(0,zo.useSelect)(e=>({previewDevice:e("kadenceblocks/data").getPreviewDeviceType()}),[s]);(0,Ho.uniqueIdHelper)(e),(0,Lo.useEffect)(()=>{(0,Ho.setBlockDefaults)("kadence/form",t)},[]),(0,Lo.useEffect)(()=>{E((0,Eo.applyFilters)("kadence.actionOptions",qo)),c&&c[0]&&(c[0].deskPadding[0]===c[0].deskPadding[1]&&c[0].deskPadding[0]===c[0].deskPadding[2]&&c[0].deskPadding[0]===c[0].deskPadding[3]?D("linked"):D("individual"),c[0].tabletPadding[0]===c[0].tabletPadding[1]&&c[0].tabletPadding[0]===c[0].tabletPadding[2]&&c[0].tabletPadding[0]===c[0].tabletPadding[3]?B("linked"):B("individual"),c[0].mobilePadding[0]===c[0].mobilePadding[1]&&c[0].mobilePadding[0]===c[0].mobilePadding[2]&&c[0].mobilePadding[0]===c[0].mobilePadding[3]?K("linked"):K("individual"),c[0].borderWidth[0]===c[0].borderWidth[1]&&c[0].borderWidth[0]===c[0].borderWidth[2]&&c[0].borderWidth[0]===c[0].borderWidth[3]?Y("linked"):Y("individual")),p&&p[0]&&(p[0].deskPadding[0]===p[0].deskPadding[1]&&p[0].deskPadding[0]===p[0].deskPadding[2]&&p[0].deskPadding[0]===p[0].deskPadding[3]?oe("linked"):oe("individual"),p[0].tabletPadding[0]===p[0].tabletPadding[1]&&p[0].tabletPadding[0]===p[0].tabletPadding[2]&&p[0].tabletPadding[0]===p[0].tabletPadding[3]?ne("linked"):ne("individual"),p[0].mobilePadding[0]===p[0].mobilePadding[1]&&p[0].mobilePadding[0]===p[0].mobilePadding[2]&&p[0].mobilePadding[0]===p[0].mobilePadding[3]?le("linked"):le("individual"),p[0].borderWidth[0]===p[0].borderWidth[1]&&p[0].borderWidth[0]===p[0].borderWidth[2]&&p[0].borderWidth[0]===p[0].borderWidth[3]?te("linked"):te("individual")),k&&k[0]&&(k[0].borderWidth[0]===k[0].borderWidth[1]&&k[0].borderWidth[0]===k[0].borderWidth[2]&&k[0].borderWidth[0]===k[0].borderWidth[3]?de("linked"):de("individual")),wo()({path:"/wp/v2/settings",method:"GET"}).then(e=>{xe(e.kadence_blocks_recaptcha_site_key),we(e.kadence_blocks_recaptcha_secret_key),Ce(e.kadence_blocks_recaptcha_language),""!==ye&&""!==_e&&Oe(!0)})},[]);const[R,E]=(0,Lo.useState)(null),[I,q]=(0,Lo.useState)(null),[V,D]=(0,Lo.useState)("linked"),[W,B]=(0,Lo.useState)("linked"),[G,K]=(0,Lo.useState)("linked"),[U,Y]=(0,Lo.useState)("linked"),[X,J]=(0,Lo.useState)("individual"),[Q,Z]=(0,Lo.useState)("individual"),[ee,te]=(0,Lo.useState)("linked"),[ae,oe]=(0,Lo.useState)("linked"),[ie,ne]=(0,Lo.useState)("linked"),[re,le]=(0,Lo.useState)("linked"),[se,de]=(0,Lo.useState)("linked"),[ce,ue]=(0,Lo.useState)("individual"),[pe,be]=(0,Lo.useState)("individual"),[he,ve]=(0,Lo.useState)("individual"),[ge,me]=(0,Lo.useState)("individual"),[fe,ke]=(0,Lo.useState)("individual"),[ye,xe]=(0,Lo.useState)(""),[_e,we]=(0,Lo.useState)(""),[Se,Ce]=(0,Lo.useState)(""),[je,Oe]=(0,Lo.useState)(!1),[Te,$e]=(0,Lo.useState)(!1),[Pe,Fe]=(0,Lo.useState)("general"),Ae=(0,Ho.mouseOverVisualizer)(),Ne=["postID"],He=()=>{q(null)},Me=e=>{I!==e&&q(e)},ze=(e,t)=>{const a=[...u];a.splice(t,1,u[e]),a.splice(e,1,u[t]),q(t),n({fields:a})},Le=(e,t)=>{const a=u.map((a,o)=>(t===o&&(a={...a,...e}),a));n({fields:a})},Re=e=>{const t=p.map((t,a)=>(0===a&&(t={...t,...e}),t));n({submit:t})},Ee=e=>{let t;t=void 0===j||void 0!==j&&void 0===j[0]?[{desk:["","","",""],tablet:["","","",""],mobile:["","","",""],unit:"px",control:"linked"}]:j;const a=t.map((t,a)=>(0===a&&(t={...t,...e}),t));n({submitMargin:a})},Ie=(e,t)=>{const a=p[0].gradient.map((a,o)=>(t===o&&(a=e),a));Re({gradient:a})},qe=(e,t)=>{const a=p[0].gradientHover.map((a,o)=>(t===o&&(a=e),a));Re({gradientHover:a})},Ve=(e,t)=>{const a=p[0].boxShadow.map((a,o)=>(t===o&&(a=e),a));Re({boxShadow:a})},De=(e,t)=>{const a=p[0].boxShadowHover.map((a,o)=>(t===o&&(a=e),a));Re({boxShadowHover:a})},We=e=>{const t=w.map((t,a)=>(0===a&&(t={...t,...e}),t));n({submitFont:t})},Be=e=>{const t=y.map((t,a)=>(0===a&&(t={...t,...e}),t));n({email:t})},Ge=e=>{const t=c.map((t,a)=>(0===a&&(t={...t,...e}),t));n({style:t})},Ke=(e,t)=>{const a=c[0].gradient.map((a,o)=>(t===o&&(a=e),a));Ge({gradient:a})},Ue=(e,t)=>{const a=c[0].gradientActive.map((a,o)=>(t===o&&(a=e),a));Ge({gradientActive:a})},Ye=(e,t)=>{const a=c[0].boxShadow.map((a,o)=>(t===o&&(a=e),a));Ge({boxShadow:a})},Xe=(e,t)=>{const a=c[0].boxShadowActive.map((a,o)=>(t===o&&(a=e),a));Ge({boxShadowActive:a})},Je=e=>{const t=v.map((t,a)=>(0===a&&(t={...t,...e}),t));n({labelFont:t})},Qe=e=>{const t=k.map((t,a)=>(0===a&&(t={...t,...e}),t));n({messageFont:t})},Ze=e=>{const t=f.map((t,a)=>(0===a&&(t={...t,...e}),t));n({messages:t})},et=(e,t,a)=>{const o=u[a]&&u[a].options?[...u[a].options]:[];o&&(o.splice(t,1,u[a].options[e]),o.splice(e,1,u[a].options[t]),Le({options:o},a))},tt=void 0!==j&&void 0!==j[0]&&j[0].unit?j[0].unit:"px",at=(0,Ho.getPreviewSize)(L,void 0!==j&&void 0!==j[0]&&j[0].desk?j[0].desk[0]:"",void 0!==j&&void 0!==j[0]&&j[0].tablet?j[0].tablet[0]:"",void 0!==j&&void 0!==j[0]&&j[0].mobile?j[0].mobile[0]:""),ot=(0,Ho.getPreviewSize)(L,void 0!==j&&void 0!==j[0]&&j[0].desk?j[0].desk[1]:"",void 0!==j&&void 0!==j[0]&&j[0].tablet?j[0].tablet[1]:"",void 0!==j&&void 0!==j[0]&&j[0].mobile?j[0].mobile[1]:""),it=(0,Ho.getPreviewSize)(L,void 0!==j&&void 0!==j[0]&&j[0].desk?j[0].desk[2]:"",void 0!==j&&void 0!==j[0]&&j[0].tablet?j[0].tablet[2]:"",void 0!==j&&void 0!==j[0]&&j[0].mobile?j[0].mobile[2]:""),nt=(0,Ho.getPreviewSize)(L,void 0!==j&&void 0!==j[0]&&j[0].desk?j[0].desk[3]:"",void 0!==j&&void 0!==j[0]&&j[0].tablet?j[0].tablet[3]:"",void 0!==j&&void 0!==j[0]&&j[0].mobile?j[0].mobile[3]:""),rt=((0,Ho.getPreviewSize)(L,void 0!==p&&void 0!==p[0]&&p[0].width?p[0].width[0]:"",void 0!==p&&void 0!==p[0]&&p[0].width?p[0].width[1]:"",void 0!==p&&void 0!==p[0]&&p[0].width?p[0].width[2]:""),void 0!==w&&void 0!==w[0]&&w[0].lineType?w[0].lineType:"px"),lt=(0,Ho.getPreviewSize)(L,void 0!==w&&void 0!==w[0]&&w[0].lineHeight?w[0].lineHeight[0]:"",void 0!==w&&void 0!==w[0]&&w[0].lineHeight?w[0].lineHeight[1]:"",void 0!==w&&void 0!==w[0]&&w[0].lineHeight?w[0].lineHeight[2]:""),st=void 0!==N?N:"px",dt=(0,Ho.getPreviewSize)(L,void 0!==P&&void 0!==P[0]?P[0]:"",void 0!==F&&void 0!==F[0]?F[0]:"",void 0!==A&&void 0!==A[0]?A[0]:""),ct=(0,Ho.getPreviewSize)(L,void 0!==P&&void 0!==P[1]?P[1]:"",void 0!==F&&void 0!==F[1]?F[1]:"",void 0!==A&&void 0!==A[1]?A[1]:""),ut=(0,Ho.getPreviewSize)(L,void 0!==P&&void 0!==P[2]?P[2]:"",void 0!==F&&void 0!==F[2]?F[2]:"",void 0!==A&&void 0!==A[2]?A[2]:""),pt=(0,Ho.getPreviewSize)(L,void 0!==P&&void 0!==P[3]?P[3]:"",void 0!==F&&void 0!==F[3]?F[3]:"",void 0!==A&&void 0!==A[3]?A[3]:""),bt=(0,Ho.getPreviewSize)(L,c[0].fontSize[0],c[0].fontSize[1],c[0].fontSize[2]),ht=c[0].fontSizeType,vt=(0,Ho.getPreviewSize)(L,c[0].lineHeight[0],c[0].lineHeight[1],c[0].lineHeight[2]),gt=c[0].lineType,mt=(0,Ho.getPreviewSize)(L,v[0].size[0],v[0].size[1],v[0].size[2]),ft=v[0].sizeType,kt=(0,Ho.getPreviewSize)(L,v[0].lineHeight[0],v[0].lineHeight[1],v[0].lineHeight[2]),yt=v[0].lineType,xt=(0,Ho.getPreviewSize)(L,w[0].size[0],w[0].size[1],w[0].size[2]),_t=w[0].sizeType,wt=(0,Ho.getPreviewSize)(L,void 0!==c[0].rowGap&&""!==c[0].rowGap?c[0].rowGap+"px":"",void 0!==c[0].tabletRowGap&&""!==c[0].tabletRowGap?c[0].tabletRowGap+"px":"",void 0!==c[0].mobileRowGap&&""!==c[0].mobileRowGap?c[0].mobileRowGap+"px":""),St=(0,Ho.getPreviewSize)(L,void 0!==c[0].gutter&&""!==c[0].gutter?c[0].gutter:"",void 0!==c[0].tabletGutter&&""!==c[0].tabletGutter?c[0].tabletGutter:"",void 0!==c[0].mobileGutter&&""!==c[0].mobileGutter?c[0].mobileGutter:""),Ct="em"===N||"rem"===N?-25:-999,jt="em"===N||"rem"===N?25:999,Ot="em"===N||"rem"===N?.1:1,Tt=e=>{const t=T.map((t,a)=>(0===a&&(t={...t,...e}),t));n({mailerlite:t})},$t=e=>{const t=$.map((t,a)=>(0===a&&(t={...t,...e}),t));n({fluentcrm:t})},Pt=[{key:"small",name:(0,So.__)("S","kadence-blocks")},{key:"standard",name:(0,So.__)("M","kadence-blocks")},{key:"large",name:(0,So.__)("L","kadence-blocks")},{key:"custom",name:(0,jo.jsx)(Co.Dashicon,{icon:"admin-generic"})}],Ft=[{key:"v3",name:(0,So.__)("V3","kadence-blocks")},{key:"v2",name:(0,So.__)("V2","kadence-blocks")}],At=[{key:"auto",name:(0,So.__)("Auto","kadence-blocks")},{key:"fixed",name:(0,So.__)("Fixed","kadence-blocks")},{key:"full",name:(0,So.__)("Full","kadence-blocks")}],Nt=[{key:"linear",name:(0,So.__)("Linear","kadence-blocks")},{key:"radial",name:(0,So.__)("Radial","kadence-blocks")}],Ht=[{key:"solid",name:(0,So.__)("Solid","kadence-blocks")},{key:"gradient",name:(0,So.__)("Gradient","kadence-blocks")}],Mt=void 0!==j&&void 0!==j[0]&&j[0].unit?j[0].unit:"px",zt="em"===Mt||"rem"===Mt?-12:-100,Lt="em"===Mt||"rem"===Mt?12:100,Rt="em"===Mt||"rem"===Mt?.1:1,Et={google:{families:[v[0].family+(v[0].variant?":"+v[0].variant:"")]}},It=v[0].google?Et:"",qt={google:{families:[w[0].family+(w[0].variant?":"+w[0].variant:"")]}},Vt=w[0].google?qt:"";let Dt,Wt,Bt,Gt,Kt,Ut;void 0!==p[0].backgroundType&&"gradient"===p[0].backgroundType?(Wt=void 0===p[0].background?"rgba(255,255,255,0)":(0,Ho.KadenceColorOutput)(p[0].background,void 0!==p[0].backgroundOpacity?p[0].backgroundOpacity:1),Bt=void 0!==p[0].gradient&&void 0!==p[0].gradient[0]&&""!==p[0].gradient[0]?(0,Ho.KadenceColorOutput)(p[0].gradient[0],void 0!==p[0].gradient&&void 0!==p[0].gradient[1]?p[0].gradient[1]:1):(0,Ho.KadenceColorOutput)("#999999",void 0!==p[0].gradient&&void 0!==p[0].gradient[1]?p[0].gradient[1]:1),void 0!==p[0].gradient&&"radial"===p[0].gradient[4]?Dt=`radial-gradient(at ${void 0===p[0].gradient[6]?"center center":p[0].gradient[6]}, ${Wt} ${void 0===p[0].gradient[2]?"0":p[0].gradient[2]}%, ${Bt} ${void 0===p[0].gradient[3]?"100":p[0].gradient[3]}%)`:void 0!==p[0].gradient&&"radial"===p[0].gradient[4]||(Dt=`linear-gradient(${void 0!==p[0].gradient&&void 0!==p[0].gradient[5]?p[0].gradient[5]:"180"}deg, ${Wt} ${void 0!==p[0].gradient&&void 0!==p[0].gradient[2]?p[0].gradient[2]:"0"}%, ${Bt} ${void 0!==p[0].gradient&&void 0!==p[0].gradient[3]?p[0].gradient[3]:"100"}%)`)):Dt=void 0===p[0].background?void 0:(0,Ho.KadenceColorOutput)(p[0].background,void 0!==p[0].backgroundOpacity?p[0].backgroundOpacity:1),void 0!==c[0].backgroundType&&"gradient"===c[0].backgroundType?(Kt=void 0===c[0].background?"rgba(255,255,255,0)":(0,Ho.KadenceColorOutput)(c[0].background,void 0!==c[0].backgroundOpacity?c[0].backgroundOpacity:1),Ut=void 0!==c[0].gradient&&void 0!==c[0].gradient[0]&&""!==c[0].gradient[0]?(0,Ho.KadenceColorOutput)(c[0].gradient[0],void 0!==c[0].gradient&&void 0!==c[0].gradient[1]?c[0].gradient[1]:1):(0,Ho.KadenceColorOutput)("#999999",void 0!==c[0].gradient&&void 0!==c[0].gradient[1]?c[0].gradient[1]:1),void 0!==c[0].gradient&&"radial"===c[0].gradient[4]?Gt=`radial-gradient(at ${void 0===c[0].gradient[6]?"center center":c[0].gradient[6]}, ${Kt} ${void 0===c[0].gradient[2]?"0":c[0].gradient[2]}%, ${Ut} ${void 0===c[0].gradient[3]?"100":c[0].gradient[3]}%)`:void 0!==c[0].gradient&&"radial"===c[0].gradient[4]||(Gt=`linear-gradient(${void 0!==c[0].gradient&&void 0!==c[0].gradient[5]?c[0].gradient[5]:"180"}deg, ${Kt} ${void 0!==c[0].gradient&&void 0!==c[0].gradient[2]?c[0].gradient[2]:"0"}%, ${Ut} ${void 0!==c[0].gradient&&void 0!==c[0].gradient[3]?c[0].gradient[3]:"100"}%)`)):Gt=void 0===c[0].background?void 0:(0,Ho.KadenceColorOutput)(c[0].background,void 0!==c[0].backgroundOpacity?c[0].backgroundOpacity:1);const Yt=(0,jo.jsx)(jo.Fragment,{children:(0,r.times)(u.length,t=>(t=>{const a=o&&I===t;return"hidden"===u[t].type?(0,jo.jsxs)(l.KadencePanelBody,{title:(void 0!==u[t].label&&null!==u[t].label&&""!==u[t].label?u[t].label:(0,So.__)("Field","kadence-blocks")+" "+(t+1))+" "+(0,So.__)("Settings","kadence-blocks"),initialOpen:!1,opened:!0===a||void 0,panelName:"kb-form-field-"+t,children:[(0,jo.jsx)(Co.SelectControl,{label:(0,So.__)("Field Type","kadence-blocks"),value:u[t].type,options:[{value:"text",label:(0,So.__)("Text","kadence-blocks")},{value:"email",label:(0,So.__)("Email","kadence-blocks")},{value:"textarea",label:(0,So.__)("Textarea","kadence-blocks")},{value:"accept",label:(0,So.__)("Accept","kadence-blocks")},{value:"select",label:(0,So.__)("Select","kadence-blocks")},{value:"tel",label:(0,So.__)("Telephone","kadence-blocks")},{value:"checkbox",label:(0,So.__)("Checkboxes","kadence-blocks")},{value:"radio",label:(0,So.__)("Radio","kadence-blocks")},{value:"hidden",label:(0,So.__)("Hidden","kadence-blocks")}],onChange:e=>{Le({type:e},t)}}),(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Field Name","kadence-blocks"),placeholder:(0,So.__)("Field Name","kadence-blocks"),value:void 0!==u[t].label?u[t].label:"",onChange:e=>Le({label:e},t)}),(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Field Input","kadence-blocks"),value:void 0!==u[t].default?u[t].default:"",onChange:e=>Le({default:e},t)})]},"field-panel-"+t.toString()):(0,jo.jsxs)(l.KadencePanelBody,{title:(void 0!==u[t].label&&null!==u[t].label&&""!==u[t].label?u[t].label:(0,So.__)("Field","kadence-blocks")+" "+(t+1))+" "+(0,So.__)("Settings","kadence-blocks"),initialOpen:!1,opened:!0===a||void 0,panelName:"kb-form-field-label-"+t,children:[(0,jo.jsx)(Co.SelectControl,{label:(0,So.__)("Field Type","kadence-blocks"),value:u[t].type,options:[{value:"text",label:(0,So.__)("Text","kadence-blocks")},{value:"email",label:(0,So.__)("Email","kadence-blocks")},{value:"textarea",label:(0,So.__)("Textarea","kadence-blocks")},{value:"accept",label:(0,So.__)("Accept","kadence-blocks")},{value:"select",label:(0,So.__)("Select","kadence-blocks")},{value:"tel",label:(0,So.__)("Telephone","kadence-blocks")},{value:"checkbox",label:(0,So.__)("Checkboxes","kadence-blocks")},{value:"radio",label:(0,So.__)("Radio","kadence-blocks")},{value:"hidden",label:(0,So.__)("Hidden","kadence-blocks")}],onChange:e=>{Le({type:e},t)}}),(0,jo.jsx)(Co.ToggleControl,{label:(0,So.__)("Required?","kadence-blocks"),checked:void 0!==u[t].required&&u[t].required,onChange:e=>Le({required:e},t)}),"textarea"===u[t].type&&(0,jo.jsx)(Co.RangeControl,{label:(0,So.__)("Textarea Rows","kadence-blocks"),value:void 0!==u[t].rows?u[t].rows:"4",onChange:e=>Le({rows:e},t),min:1,max:100,step:1}),("select"===u[t].type||"radio"===u[t].type||"checkbox"===u[t].type)&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)("div",{className:"kb-field-options-wrap",children:(0,r.times)(u[t].options.length,e=>(0,jo.jsxs)("div",{className:"field-options-wrap",children:[(0,jo.jsx)(Co.TextControl,{className:"kb-option-text-control",label:(0,So.__)("Option","kadence-blocks")+" "+(e+1),placeholder:(0,So.__)("Option","kadence-blocks"),value:void 0!==u[t].options[e].label?u[t].options[e].label:"",onChange:a=>((e,t,a)=>{const o=u[t].options.map((t,o)=>(a===o&&(t={...t,...e}),t));Le({options:o},t)})({label:a,value:a},t,e)},e),(0,jo.jsxs)("div",{className:"kadence-blocks-list-item__control-menu",children:[(0,jo.jsx)(Co.Button,{icon:"arrow-up",onClick:()=>{return 0===e?void 0:void(0!==(a=e)&&et(a,a-1,t));var a},className:"kadence-blocks-list-item__move-up",label:(0,So.__)("Move Item Up","kadence-blocks"),"aria-disabled":0===e,disabled:0===e}),(0,jo.jsx)(Co.Button,{icon:"arrow-down",onClick:()=>{return e+1===u[t].options.length?void 0:void((a=e)!==u[o=t].options.length-1&&et(a,a+1,o));var a,o},className:"kadence-blocks-list-item__move-down",label:(0,So.__)("Move Item Down","kadence-blocks"),"aria-disabled":e+1===u[t].options.length,disabled:e+1===u[t].options.length}),(0,jo.jsx)(Co.Button,{icon:"no-alt",onClick:()=>((e,t)=>{if(1===Math.abs(u[t].options.length))return;const a=(0,r.filter)(u[t].options,(t,a)=>e!==a);Le({options:a},t)})(e,t),className:"kadence-blocks-list-item__remove",label:(0,So.__)("Remove Item","kadence-blocks"),disabled:1===u[t].options.length})]})]}))}),(0,jo.jsxs)(Co.Button,{className:"kb-add-option",isPrimary:!0,onClick:()=>{const e=u[t].options;e.push({value:"",label:""}),Le({options:e},t)},children:[(0,jo.jsx)(Co.Dashicon,{icon:"plus"}),(0,So.__)("Add Option","kadence-blocks")]})]}),"select"===u[t].type&&(0,jo.jsx)(Co.ToggleControl,{label:(0,So.__)("Multi Select?","kadence-blocks"),checked:void 0!==u[t].multiSelect&&u[t].multiSelect,onChange:e=>Le({multiSelect:e},t)}),("checkbox"===u[t].type||"radio"===u[t].type)&&(0,jo.jsx)(Co.ToggleControl,{label:(0,So.__)("Show inline?","kadence-blocks"),checked:void 0!==u[t].inline&&u[t].inline,onChange:e=>Le({inline:e},t)}),"accept"===u[t].type&&(0,jo.jsx)(Co.ToggleControl,{label:(0,So.__)("Show Policy Link","kadence-blocks"),checked:void 0!==u[t].showLink&&u[t].showLink,onChange:e=>Le({showLink:e},t)}),"accept"===u[t].type&&u[t].showLink&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Link Text","kadence-blocks"),placeholder:(0,So.__)("View Privacy Policy","kadence-blocks"),value:void 0!==u[t].placeholder?u[t].placeholder:"",onChange:e=>Le({placeholder:e},t)}),(0,jo.jsx)(l.URLInputControl,{label:(0,So.__)("Link URL","kadence-blocks"),url:void 0!==u[t].default?u[t].default:"",onChangeUrl:e=>Le({default:e},t),additionalControls:!1,...e})]}),"accept"===u[t].type&&(0,jo.jsx)(Co.ToggleControl,{label:(0,So.__)("Start checked?","kadence-blocks"),checked:void 0!==u[t].inline&&u[t].inline,onChange:e=>Le({inline:e},t)}),(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Field Label","kadence-blocks"),placeholder:(0,So.__)("Field Label","kadence-blocks"),value:void 0!==u[t].label?u[t].label:"",onChange:e=>Le({label:e},t)}),(0,jo.jsx)(Co.ToggleControl,{label:(0,So.__)("Show Label","kadence-blocks"),checked:void 0===u[t].showLabel||u[t].showLabel,onChange:e=>Le({showLabel:e},t)}),("accept"!==u[t].type||"select"!==u[t].type)&&(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Field Placeholder","kadence-blocks"),value:void 0!==u[t].placeholder?u[t].placeholder:"",onChange:e=>Le({placeholder:e},t)}),"accept"!==u[t].type&&(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Input Default","kadence-blocks"),value:void 0!==u[t].default?u[t].default:"",onChange:e=>Le({default:e},t)}),(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Help Text","kadence-blocks"),value:void 0!==u[t].description?u[t].description:"",onChange:e=>Le({description:e},t)}),(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Input aria description","kadence-blocks"),help:(0,So.__)("Provide more context for screen readers","kadence-blocks"),value:void 0!==u[t].ariaLabel?u[t].ariaLabel:"",onChange:e=>Le({ariaLabel:e},t)}),("text"===u[t].type||"email"===u[t].type||"tel"===u[t].type)&&(0,jo.jsx)(Co.SelectControl,{label:(0,So.__)("Field Auto Fill","kadence-blocks"),value:u[t].auto,options:[{value:"",label:(0,So.__)("Default","kadence-blocks")},{value:"name",label:(0,So.__)("Name","kadence-blocks")},{value:"given-name",label:(0,So.__)("First Name","kadence-blocks")},{value:"family-name",label:(0,So.__)("Last Name","kadence-blocks")},{value:"email",label:(0,So.__)("Email","kadence-blocks")},{value:"organization",label:(0,So.__)("Organization","kadence-blocks")},{value:"street-address",label:(0,So.__)("Street Address","kadence-blocks")},{value:"address-line1",label:(0,So.__)("Address Line 1","kadence-blocks")},{value:"address-line2",label:(0,So.__)("Address Line 1","kadence-blocks")},{value:"country-name",label:(0,So.__)("Country Name","kadence-blocks")},{value:"postal-code",label:(0,So.__)("Postal Code","kadence-blocks")},{value:"tel",label:(0,So.__)("Telephone","kadence-blocks")},{value:"off",label:(0,So.__)("Off","kadence-blocks")}],onChange:e=>{Le({auto:e},t)}}),(0,jo.jsx)("h2",{className:"kt-heading-size-title kt-secondary-color-size",children:(0,So.__)("Column Width","kadence-blocks")}),(0,jo.jsx)(Co.TabPanel,{className:"kt-size-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:(0,jo.jsx)(Co.Dashicon,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:(0,jo.jsx)(Co.Dashicon,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:(0,jo.jsx)(Co.Dashicon,{icon:"smartphone"}),className:"kt-mobile-tab"}],children:e=>{let a;return e.name&&(a="mobile"===e.name?(0,jo.jsx)(jo.Fragment,{children:(0,jo.jsx)(Co.SelectControl,{value:u[t].width[2],options:[{value:"20",label:(0,So.__)("20%","kadence-blocks")},{value:"25",label:(0,So.__)("25%","kadence-blocks")},{value:"33",label:(0,So.__)("33%","kadence-blocks")},{value:"40",label:(0,So.__)("40%","kadence-blocks")},{value:"50",label:(0,So.__)("50%","kadence-blocks")},{value:"60",label:(0,So.__)("60%","kadence-blocks")},{value:"66",label:(0,So.__)("66%","kadence-blocks")},{value:"75",label:(0,So.__)("75%","kadence-blocks")},{value:"80",label:(0,So.__)("80%","kadence-blocks")},{value:"100",label:(0,So.__)("100%","kadence-blocks")},{value:"",label:(0,So.__)("Unset","kadence-blocks")}],onChange:e=>{Le({width:[u[t].width[0]?u[t].width[0]:"100",u[t].width[1]?u[t].width[1]:"",e]},t)}})}):"tablet"===e.name?(0,jo.jsx)(jo.Fragment,{children:(0,jo.jsx)(Co.SelectControl,{value:u[t].width[1],options:[{value:"20",label:(0,So.__)("20%","kadence-blocks")},{value:"25",label:(0,So.__)("25%","kadence-blocks")},{value:"33",label:(0,So.__)("33%","kadence-blocks")},{value:"40",label:(0,So.__)("40%","kadence-blocks")},{value:"50",label:(0,So.__)("50%","kadence-blocks")},{value:"60",label:(0,So.__)("60%","kadence-blocks")},{value:"66",label:(0,So.__)("66%","kadence-blocks")},{value:"75",label:(0,So.__)("75%","kadence-blocks")},{value:"80",label:(0,So.__)("80%","kadence-blocks")},{value:"100",label:(0,So.__)("100%","kadence-blocks")},{value:"",label:(0,So.__)("Unset","kadence-blocks")}],onChange:e=>{Le({width:[u[t].width[0]?u[t].width[0]:"100",e,u[t].width[2]?u[t].width[2]:""]},t)}})}):(0,jo.jsx)(jo.Fragment,{children:(0,jo.jsx)(Co.SelectControl,{value:u[t].width[0],options:[{value:"20",label:(0,So.__)("20%","kadence-blocks")},{value:"25",label:(0,So.__)("25%","kadence-blocks")},{value:"33",label:(0,So.__)("33%","kadence-blocks")},{value:"40",label:(0,So.__)("40%","kadence-blocks")},{value:"50",label:(0,So.__)("50%","kadence-blocks")},{value:"60",label:(0,So.__)("60%","kadence-blocks")},{value:"66",label:(0,So.__)("66%","kadence-blocks")},{value:"75",label:(0,So.__)("75%","kadence-blocks")},{value:"80",label:(0,So.__)("80%","kadence-blocks")},{value:"100",label:(0,So.__)("100%","kadence-blocks")},{value:"unset",label:(0,So.__)("Unset","kadence-blocks")}],onChange:e=>{Le({width:[e,u[t].width[1]?u[t].width[1]:"",u[t].width[2]?u[t].width[2]:""]},t)}})})),(0,jo.jsx)("div",{className:e.className,children:a},e.className)}}),void 0!==u[t].required&&u[t].required&&(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Field error message when required","kadence-blocks"),value:void 0!==u[t].requiredMessage?u[t].requiredMessage:"",onChange:e=>Le({requiredMessage:e},t),placeholder:(void 0!==u[t].label?u[t].label:"")+" "+(0,So.__)("is required","kadence-blocks")}),("tel"===u[t].type||"email"===u[t].type)&&(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Field error message when invalid","kadence-blocks"),value:void 0!==u[t].errorMessage?u[t].errorMessage:"",onChange:e=>Le({errorMessage:e},t),placeholder:(void 0!==u[t].label?u[t].label:"")+" "+(0,So.__)("is not valid","kadence-blocks")})]},"field-panel-"+t.toString())})(t))}),Xt=(0,jo.jsx)(jo.Fragment,{children:(0,r.times)(u.length,e=>(e=>{if("hidden"===u[e].type)return(0,jo.jsx)("input",{type:"hidden",name:`kb_field_${e}`,value:u[e].default});const t=o&&I===e,a=i()({"kadence-blocks-form-field":!0,"is-selected":t,[`kb-input-size-${c[0].size}`]:c[0].size}),l=(0,So.sprintf)(/* translators: %1$d: field number %2$d: max amount of fields */ /* translators: %1$d: field number %2$d: max amount of fields */ (0,So.__)("Field %1$d of %2$d in form","kadence-blocks"),e+1,u.length);let s,d,p;return u[e].label&&u[e].label.includes("{privacy_policy}")?(d=u[e].label.split("{")[0],p=u[e].label.split("}")[1],s=(0,jo.jsxs)(jo.Fragment,{children:[d,(0,jo.jsx)("a",{href:""!==kadence_blocks_params.privacy_link?kadence_blocks_params.privacy_link:"#",target:"blank",rel:"noopener noreferrer",children:""!==kadence_blocks_params.privacy_title?kadence_blocks_params.privacy_title:"Privacy policy"}),p]})):s=u[e].label,(0,jo.jsxs)("div",{className:a,style:{width:("33"===u[e].width[0]?"33.33":u[e].width[0])+"%",marginBottom:wt||void 0,paddingRight:void 0!==St&&""!==St?St/2+"px":void 0,paddingLeft:void 0!==St&&""!==St?St/2+"px":void 0},tabIndex:"0","aria-label":l,role:"button",onClick:()=>Me(e),onFocus:()=>Me(e),onKeyDown:t=>{const{keyCode:a}=t;a===Io.DELETE&&(e=>{const t=(0,r.filter)(u,(t,a)=>e!==a);q(null),n({fields:t})})(e)},children:["accept"===u[e].type&&(0,jo.jsxs)(jo.Fragment,{children:[u[e].showLink&&(0,jo.jsx)("a",{href:void 0!==u[e].default&&""!==u[e].default?u[e].default:"#",className:"kb-accept-link",children:void 0!==u[e].placeholder&&""!==u[e].placeholder?u[e].placeholder:(0,jo.jsx)("span",{className:"kb-placeholder",children:"View Privacy Policy"})}),(0,jo.jsx)("input",{type:"checkbox",name:`kb_field_${e}`,id:`kb_field_${e}`,className:`kb-field kb-checkbox-style kb-${u[e].type}`,value:"accept",checked:!!u[e].inline,style:{borderColor:void 0===c[0].border?void 0:(0,Ho.KadenceColorOutput)(c[0].border,void 0!==c[0].borderOpacity?c[0].borderOpacity:1)}}),(0,jo.jsxs)("label",{htmlFor:`kb_field_${e}`,style:{fontWeight:v[0].weight,fontStyle:v[0].style,color:(0,Ho.KadenceColorOutput)(v[0].color),fontSize:(0,Ho.getFontSizeOptionOutput)(mt,ft),lineHeight:kt+yt,letterSpacing:v[0].letterSpacing+"px",textTransform:v[0].textTransform?v[0].textTransform:void 0,fontFamily:v[0].family?v[0].family:void 0,paddingTop:""!==v[0].padding[0]?v[0].padding[0]+"px":void 0,paddingRight:""!==v[0].padding[1]?v[0].padding[1]+"px":void 0,paddingBottom:""!==v[0].padding[2]?v[0].padding[2]+"px":void 0,paddingLeft:""!==v[0].padding[3]?v[0].padding[3]+"px":void 0,marginTop:""!==v[0].margin[0]?v[0].margin[0]+"px":void 0,marginRight:""!==v[0].margin[1]?v[0].margin[1]+"px":void 0,marginBottom:""!==v[0].margin[2]?v[0].margin[2]+"px":void 0,marginLeft:""!==v[0].margin[3]?v[0].margin[3]+"px":void 0},children:[u[e].label?s:(0,jo.jsx)("span",{className:"kb-placeholder",children:"Field Label"})," ",u[e].required&&c[0].showRequired?(0,jo.jsx)("span",{className:"required",style:{color:(0,Ho.KadenceColorOutput)(c[0].requiredColor)},children:"*"}):""]})]}),"accept"!==u[e].type&&(0,jo.jsxs)(jo.Fragment,{children:[u[e].showLabel&&(0,jo.jsxs)("label",{htmlFor:`kb_field_${e}`,style:{fontWeight:v[0].weight,fontStyle:v[0].style,color:(0,Ho.KadenceColorOutput)(v[0].color),fontSize:(0,Ho.getFontSizeOptionOutput)(mt,ft),lineHeight:kt+yt,letterSpacing:v[0].letterSpacing+"px",textTransform:v[0].textTransform?v[0].textTransform:void 0,fontFamily:v[0].family?v[0].family:void 0,paddingTop:""!==v[0].padding[0]?v[0].padding[0]+"px":void 0,paddingRight:""!==v[0].padding[1]?v[0].padding[1]+"px":void 0,paddingBottom:""!==v[0].padding[2]?v[0].padding[2]+"px":void 0,paddingLeft:""!==v[0].padding[3]?v[0].padding[3]+"px":void 0,marginTop:""!==v[0].margin[0]?v[0].margin[0]+"px":void 0,marginRight:""!==v[0].margin[1]?v[0].margin[1]+"px":void 0,marginBottom:""!==v[0].margin[2]?v[0].margin[2]+"px":void 0,marginLeft:""!==v[0].margin[3]?v[0].margin[3]+"px":void 0},children:[u[e].label?u[e].label:(0,jo.jsx)("span",{className:"kb-placeholder",children:"Field Label"})," ",u[e].required&&c[0].showRequired?(0,jo.jsx)("span",{className:"required",style:{color:(0,Ho.KadenceColorOutput)(c[0].requiredColor)},children:"*"}):""]}),"textarea"===u[e].type&&(0,jo.jsx)("textarea",{name:`kb_field_${e}`,id:`kb_field_${e}`,type:u[e].type,placeholder:u[e].placeholder,value:u[e].default,"data-type":u[e].type,className:`kb-field kb-text-style-field kb-${u[e].type}-field kb-field-${e}`,rows:u[e].rows,"data-required":u[e].required?"yes":void 0,readOnly:!0,style:{paddingTop:"custom"===c[0].size&&""!==c[0].deskPadding[0]?c[0].deskPadding[0]+"px":void 0,paddingRight:"custom"===c[0].size&&""!==c[0].deskPadding[1]?c[0].deskPadding[1]+"px":void 0,paddingBottom:"custom"===c[0].size&&""!==c[0].deskPadding[2]?c[0].deskPadding[2]+"px":void 0,paddingLeft:"custom"===c[0].size&&""!==c[0].deskPadding[3]?c[0].deskPadding[3]+"px":void 0,background:void 0!==Gt?Gt:void 0,color:void 0!==c[0].color?(0,Ho.KadenceColorOutput)(c[0].color):void 0,fontSize:(0,Ho.getFontSizeOptionOutput)(bt,ht),lineHeight:vt+gt,borderRadius:void 0!==c[0].borderRadius?c[0].borderRadius+"px":void 0,borderTopWidth:c[0].borderWidth&&""!==c[0].borderWidth[0]?c[0].borderWidth[0]+"px":void 0,borderRightWidth:c[0].borderWidth&&""!==c[0].borderWidth[1]?c[0].borderWidth[1]+"px":void 0,borderBottomWidth:c[0].borderWidth&&""!==c[0].borderWidth[2]?c[0].borderWidth[2]+"px":void 0,borderLeftWidth:c[0].borderWidth&&""!==c[0].borderWidth[3]?c[0].borderWidth[3]+"px":void 0,borderColor:void 0===c[0].border?void 0:(0,Ho.KadenceColorOutput)(c[0].border,void 0!==c[0].borderOpacity?c[0].borderOpacity:1),boxShadow:void 0!==c[0].boxShadow&&void 0!==c[0].boxShadow[0]&&c[0].boxShadow[0]?(void 0!==c[0].boxShadow[7]&&c[0].boxShadow[7]?"inset ":"")+(void 0!==c[0].boxShadow[3]?c[0].boxShadow[3]:1)+"px "+(void 0!==c[0].boxShadow[4]?c[0].boxShadow[4]:1)+"px "+(void 0!==c[0].boxShadow[5]?c[0].boxShadow[5]:2)+"px "+(void 0!==c[0].boxShadow[6]?c[0].boxShadow[6]:0)+"px "+(0,Ho.KadenceColorOutput)(void 0!==c[0].boxShadow[1]?c[0].boxShadow[1]:"#000000",void 0!==c[0].boxShadow[2]?c[0].boxShadow[2]:1):void 0}}),"select"===u[e].type&&(0,jo.jsxs)("select",{name:`kb_field_${e}`,id:`kb_field_${e}`,type:u[e].type,"data-type":u[e].type,multiple:!!u[e].multiSelect,className:`kb-field kb-select-style-field kb-${u[e].type}-field kb-field-${e}`,"data-required":u[e].required?"yes":void 0,style:{background:void 0!==Gt?Gt:void 0,color:void 0!==c[0].color?(0,Ho.KadenceColorOutput)(c[0].color):void 0,fontSize:(0,Ho.getFontSizeOptionOutput)(bt,ht),lineHeight:vt+gt,borderRadius:void 0!==c[0].borderRadius?c[0].borderRadius+"px":void 0,borderTopWidth:c[0].borderWidth&&""!==c[0].borderWidth[0]?c[0].borderWidth[0]+"px":void 0,borderRightWidth:c[0].borderWidth&&""!==c[0].borderWidth[1]?c[0].borderWidth[1]+"px":void 0,borderBottomWidth:c[0].borderWidth&&""!==c[0].borderWidth[2]?c[0].borderWidth[2]+"px":void 0,borderLeftWidth:c[0].borderWidth&&""!==c[0].borderWidth[3]?c[0].borderWidth[3]+"px":void 0,borderColor:void 0===c[0].border?void 0:(0,Ho.KadenceColorOutput)(c[0].border,void 0!==c[0].borderOpacity?c[0].borderOpacity:1),boxShadow:void 0!==c[0].boxShadow&&void 0!==c[0].boxShadow[0]&&c[0].boxShadow[0]?(void 0!==c[0].boxShadow[7]&&c[0].boxShadow[7]?"inset ":"")+(void 0!==c[0].boxShadow[3]?c[0].boxShadow[3]:1)+"px "+(void 0!==c[0].boxShadow[4]?c[0].boxShadow[4]:1)+"px "+(void 0!==c[0].boxShadow[5]?c[0].boxShadow[5]:2)+"px "+(void 0!==c[0].boxShadow[6]?c[0].boxShadow[6]:0)+"px "+(0,Ho.KadenceColorOutput)(void 0!==c[0].boxShadow[1]?c[0].boxShadow[1]:"#000000",void 0!==c[0].boxShadow[2]?c[0].boxShadow[2]:1):void 0},children:[void 0!==u[e].placeholder&&""!==u[e].placeholder&&(0,jo.jsx)("option",{value:"",disabled:!0,selected:""===u[e].default,children:u[e].placeholder}),(0,r.times)(u[e].options.length,t=>(0,jo.jsx)("option",{selected:void 0!==u[e].options[t].value&&u[e].options[t].value===u[e].default,value:void 0!==u[e].options[t].value?u[e].options[t].value:"",children:void 0!==u[e].options[t].label?u[e].options[t].label:""},t))]}),"checkbox"===u[e].type&&(0,jo.jsx)("div",{"data-type":u[e].type,className:`kb-field kb-checkbox-style-field kb-${u[e].type}-field kb-field-${e} kb-radio-style-${u[e].inline?"inline":"normal"}`,children:(0,r.times)(u[e].options.length,t=>(0,jo.jsxs)("div",{"data-type":u[e].type,className:`kb-checkbox-item kb-checkbox-item-${t}`,children:[(0,jo.jsx)("input",{type:"checkbox",name:`kb_field_${e}[]${t}`,id:`kb_field_${e}[]${t}`,className:"kb-sub-field kb-checkbox-style",value:void 0!==u[e].options[t].value?u[e].options[t].value:"",checked:void 0!==u[e].options[t].value&&u[e].options[t].value===u[e].default,style:{borderColor:void 0===c[0].border?void 0:(0,Ho.KadenceColorOutput)(c[0].border,void 0!==c[0].borderOpacity?c[0].borderOpacity:1)}}),(0,jo.jsx)("label",{htmlFor:`kb_field_${e}[]${t}`,children:void 0!==u[e].options[t].label?u[e].options[t].label:""})]},t))}),"radio"===u[e].type&&(0,jo.jsx)("div",{"data-type":u[e].type,className:`kb-field kb-radio-style-field kb-${u[e].type}-field kb-field-${e} kb-radio-style-${u[e].inline?"inline":"normal"}`,children:(0,r.times)(u[e].options.length,t=>(0,jo.jsxs)("div",{"data-type":u[e].type,className:`kb-radio-item kb-radio-item-${t}`,children:[(0,jo.jsx)("input",{type:"radio",name:`kb_field_${e}[]${t}`,id:`kb_field_${e}[]${t}`,className:"kb-sub-field kb-radio-style",value:void 0!==u[e].options[t].value?u[e].options[t].value:"",checked:void 0!==u[e].options[t].value&&u[e].options[t].value===u[e].default,style:{borderColor:void 0===c[0].border?void 0:(0,Ho.KadenceColorOutput)(c[0].border,void 0!==c[0].borderOpacity?c[0].borderOpacity:1)}}),(0,jo.jsx)("label",{htmlFor:`kb_field_${e}[]${t}`,children:void 0!==u[e].options[t].label?u[e].options[t].label:""})]},t))}),"email"===u[e].type&&(0,jo.jsx)("input",{name:`kb_field_${e}`,id:`kb_field_${e}`,type:"text",readOnly:!0,placeholder:u[e].placeholder,value:u[e].default,"data-type":u[e].type,className:`kb-field kb-text-style-field kb-${u[e].type}-field kb-field-${e}`,autoComplete:"off","data-required":u[e].required?"yes":void 0,style:{paddingTop:"custom"===c[0].size&&""!==c[0].deskPadding[0]?c[0].deskPadding[0]+"px":void 0,paddingRight:"custom"===c[0].size&&""!==c[0].deskPadding[1]?c[0].deskPadding[1]+"px":void 0,paddingBottom:"custom"===c[0].size&&""!==c[0].deskPadding[2]?c[0].deskPadding[2]+"px":void 0,paddingLeft:"custom"===c[0].size&&""!==c[0].deskPadding[3]?c[0].deskPadding[3]+"px":void 0,background:void 0!==Gt?Gt:void 0,color:void 0!==c[0].color?(0,Ho.KadenceColorOutput)(c[0].color):void 0,fontSize:(0,Ho.getFontSizeOptionOutput)(bt,ht),lineHeight:vt+gt,borderRadius:void 0!==c[0].borderRadius?c[0].borderRadius+"px":void 0,borderTopWidth:c[0].borderWidth&&""!==c[0].borderWidth[0]?c[0].borderWidth[0]+"px":void 0,borderRightWidth:c[0].borderWidth&&""!==c[0].borderWidth[1]?c[0].borderWidth[1]+"px":void 0,borderBottomWidth:c[0].borderWidth&&""!==c[0].borderWidth[2]?c[0].borderWidth[2]+"px":void 0,borderLeftWidth:c[0].borderWidth&&""!==c[0].borderWidth[3]?c[0].borderWidth[3]+"px":void 0,borderColor:void 0===c[0].border?void 0:(0,Ho.KadenceColorOutput)(c[0].border,void 0!==c[0].borderOpacity?c[0].borderOpacity:1),boxShadow:void 0!==c[0].boxShadow&&void 0!==c[0].boxShadow[0]&&c[0].boxShadow[0]?(void 0!==c[0].boxShadow[7]&&c[0].boxShadow[7]?"inset ":"")+(void 0!==c[0].boxShadow[3]?c[0].boxShadow[3]:1)+"px "+(void 0!==c[0].boxShadow[4]?c[0].boxShadow[4]:1)+"px "+(void 0!==c[0].boxShadow[5]?c[0].boxShadow[5]:2)+"px "+(void 0!==c[0].boxShadow[6]?c[0].boxShadow[6]:0)+"px "+(0,Ho.KadenceColorOutput)(void 0!==c[0].boxShadow[1]?c[0].boxShadow[1]:"#000000",void 0!==c[0].boxShadow[2]?c[0].boxShadow[2]:1):void 0}}),"textarea"!==u[e].type&&"select"!==u[e].type&&"checkbox"!==u[e].type&&"radio"!==u[e].type&&"email"!==u[e].type&&(0,jo.jsx)("input",{name:`kb_field_${e}`,id:`kb_field_${e}`,type:u[e].type,placeholder:u[e].placeholder,value:u[e].default,"data-type":u[e].type,className:`kb-field kb-text-style-field kb-${u[e].type}-field kb-field-${e}`,autoComplete:"off",readOnly:!0,"data-required":u[e].required?"yes":void 0,style:{paddingTop:"custom"===c[0].size&&""!==c[0].deskPadding[0]?c[0].deskPadding[0]+"px":void 0,paddingRight:"custom"===c[0].size&&""!==c[0].deskPadding[1]?c[0].deskPadding[1]+"px":void 0,paddingBottom:"custom"===c[0].size&&""!==c[0].deskPadding[2]?c[0].deskPadding[2]+"px":void 0,paddingLeft:"custom"===c[0].size&&""!==c[0].deskPadding[3]?c[0].deskPadding[3]+"px":void 0,background:void 0!==Gt?Gt:void 0,color:void 0!==c[0].color?(0,Ho.KadenceColorOutput)(c[0].color):void 0,fontSize:(0,Ho.getFontSizeOptionOutput)(bt,ht),lineHeight:vt+gt,borderRadius:void 0!==c[0].borderRadius?c[0].borderRadius+"px":void 0,borderTopWidth:c[0].borderWidth&&""!==c[0].borderWidth[0]?c[0].borderWidth[0]+"px":void 0,borderRightWidth:c[0].borderWidth&&""!==c[0].borderWidth[1]?c[0].borderWidth[1]+"px":void 0,borderBottomWidth:c[0].borderWidth&&""!==c[0].borderWidth[2]?c[0].borderWidth[2]+"px":void 0,borderLeftWidth:c[0].borderWidth&&""!==c[0].borderWidth[3]?c[0].borderWidth[3]+"px":void 0,borderColor:void 0===c[0].border?void 0:(0,Ho.KadenceColorOutput)(c[0].border,void 0!==c[0].borderOpacity?c[0].borderOpacity:1),boxShadow:void 0!==c[0].boxShadow&&void 0!==c[0].boxShadow[0]&&c[0].boxShadow[0]?(void 0!==c[0].boxShadow[7]&&c[0].boxShadow[7]?"inset ":"")+(void 0!==c[0].boxShadow[3]?c[0].boxShadow[3]:1)+"px "+(void 0!==c[0].boxShadow[4]?c[0].boxShadow[4]:1)+"px "+(void 0!==c[0].boxShadow[5]?c[0].boxShadow[5]:2)+"px "+(void 0!==c[0].boxShadow[6]?c[0].boxShadow[6]:0)+"px "+(0,Ho.KadenceColorOutput)(void 0!==c[0].boxShadow[1]?c[0].boxShadow[1]:"#000000",void 0!==c[0].boxShadow[2]?c[0].boxShadow[2]:1):void 0}})]}),void 0!==u[e].description&&""!==u[e].description&&(0,jo.jsx)("span",{className:"kb-field-help",children:u[e].description?u[e].description:""}),t&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsxs)("div",{className:"kadence-blocks-field-item-controls kadence-blocks-field-item__move-menu",children:[(0,jo.jsx)(Co.Button,{icon:"arrow-up",onClick:()=>{return 0===e?void 0:void(0!==(t=e)&&ze(t,t-1));var t},className:"kadence-blocks-field-item__move-backward",label:(0,So.__)("Move Field Up","kadence-blocks"),"aria-disabled":0===e,disabled:!t||0===e}),(0,jo.jsx)(Co.Button,{icon:"arrow-down",onClick:()=>{return e+1===u.length?void 0:void((t=e)!==u.length-1&&ze(t,t+1));var t},className:"kadence-blocks-field-item__move-forward",label:(0,So.__)("Move Field Down","kadence-blocks"),"aria-disabled":e+1===u.length,disabled:!t||e+1===u.length})]}),(0,jo.jsxs)("div",{className:"kadence-blocks-field-item-controls kadence-blocks-field-item__inline-menu",children:[(0,jo.jsx)(Co.Button,{icon:"admin-page",onClick:()=>(e=>{const t=u,a=t[e];t.splice(e+1,0,a),q(e+1),n({fields:t})})(e),className:"kadence-blocks-field-item__duplicate",label:(0,So.__)("Duplicate Field","kadence-blocks"),disabled:!t}),(0,jo.jsx)(Co.Button,{icon:"no-alt",onClick:()=>(e=>{const t=(0,r.filter)(u,(t,a)=>e!==a);q(null),n({fields:t})})(e),className:"kadence-blocks-field-item__remove",label:(0,So.__)("Remove Field","kadence-blocks"),disabled:!t||1===u.length})]})]})]},"field-"+e.toString())})(e))}),Jt=(0,Ro.useBlockProps)({className:a});return(0,jo.jsxs)("div",{...Jt,children:[(0,jo.jsx)("style",{children:(()=>{let e,t,a,o,i,n="",r="",l="",s="",u="0",b="";return void 0!==c[0].backgroundActiveType&&"gradient"===c[0].backgroundActiveType&&void 0!==c[0].gradientActive?(e=void 0===c[0].backgroundActive?(0,Ho.KadenceColorOutput)("#ffffff",void 0!==c[0].backgroundActiveOpacity?c[0].backgroundActiveOpacity:1):(0,Ho.KadenceColorOutput)(c[0].backgroundActive,void 0!==c[0].backgroundActiveOpacity?c[0].backgroundActiveOpacity:1),t=void 0===c[0].gradientActive[0]?(0,Ho.KadenceColorOutput)("#777777",void 0!==c[0].gradientActive[1]?c[0].gradientActive[1]:1):(0,Ho.KadenceColorOutput)(c[0].gradientActive[0],void 0!==c[0].gradientActive[1]?c[0].gradientActive[1]:1),"radial"===c[0].gradientActive[4]?n=`radial-gradient(at ${void 0===c[0].gradientActive[6]?"center center":c[0].gradientActive[6]}, ${e} ${void 0===c[0].gradientActive[2]?"0":c[0].gradientActive[2]}%, ${t} ${void 0===c[0].gradientActive[3]?"100":c[0].gradientActive[3]}%)`:"linear"===c[0].gradientActive[4]&&(n=`linear-gradient(${void 0===c[0].gradientActive[5]?"180":c[0].gradientActive[5]}deg, ${e} ${void 0===c[0].gradientActive[2]?"0":c[0].gradientActive[2]}%, ${t} ${void 0===c[0].gradientActive[3]?"100":c[0].gradientActive[3]}%)`)):void 0!==c[0].backgroundActive&&""!==c[0].backgroundActive&&(n=(0,Ho.KadenceColorOutput)(c[0].backgroundActive,void 0!==c[0].backgroundActiveOpacity?c[0].backgroundActiveOpacity:1)),void 0!==c[0].boxShadowActive&&void 0!==c[0].boxShadowActive[0]&&c[0].boxShadowActive[0]&&(r=`${void 0!==c[0].boxShadowActive&&void 0!==c[0].boxShadowActive[0]&&c[0].boxShadowActive[0]?(void 0!==c[0].boxShadowActive[7]&&c[0].boxShadowActive[7]?"inset ":"")+(void 0!==c[0].boxShadowActive[3]?c[0].boxShadowActive[3]:1)+"px "+(void 0!==c[0].boxShadowActive[4]?c[0].boxShadowActive[4]:1)+"px "+(void 0!==c[0].boxShadowActive[5]?c[0].boxShadowActive[5]:2)+"px "+(void 0!==c[0].boxShadowActive[6]?c[0].boxShadowActive[6]:0)+"px "+(0,Ho.KadenceColorOutput)(void 0!==c[0].boxShadowActive[1]?c[0].boxShadowActive[1]:"#000000",void 0!==c[0].boxShadowActive[2]?c[0].boxShadowActive[2]:1):void 0}`),void 0!==p[0].backgroundHoverType&&"gradient"===p[0].backgroundHoverType&&void 0!==p[0].gradientHover?(o=void 0===p[0].backgroundHover?(0,Ho.KadenceColorOutput)("#ffffff",void 0!==p[0].backgroundHoverOpacity?p[0].backgroundHoverOpacity:1):(0,Ho.KadenceColorOutput)(p[0].backgroundHover,void 0!==p[0].backgroundHoverOpacity?p[0].backgroundHoverOpacity:1),i=void 0===p[0].gradientHover[0]?(0,Ho.KadenceColorOutput)("#777777",void 0!==p[0].gradientHover[1]?p[0].gradientHover[1]:1):(0,Ho.KadenceColorOutput)(p[0].gradientHover[0],void 0!==p[0].gradientHover[1]?p[0].gradientHover[1]:1),"radial"===p[0].gradientHover[4]?l=`radial-gradient(at ${void 0===p[0].gradientHover[6]?"center center":p[0].gradientHover[6]}, ${o} ${void 0===p[0].gradientHover[2]?"0":p[0].gradientHover[2]}%, ${i} ${void 0===p[0].gradientHover[3]?"100":p[0].gradientHover[3]}%)`:"linear"===p[0].gradientHover[4]&&(l=`linear-gradient(${void 0===p[0].gradientHover[5]?"180":p[0].gradientHover[5]}deg, ${o} ${void 0===p[0].gradientHover[2]?"0":p[0].gradientHover[2]}%, ${i} ${void 0===p[0].gradientHover[3]?"100":p[0].gradientHover[3]}%)`)):void 0!==p[0].backgroundHover&&""!==p[0].backgroundHover&&(a=(0,Ho.KadenceColorOutput)(p[0].backgroundHover,void 0!==p[0].backgroundHoverOpacity?p[0].backgroundHoverOpacity:1)),void 0!==p[0].boxShadowHover&&void 0!==p[0].boxShadowHover[0]&&p[0].boxShadowHover[0]&&void 0!==p[0].boxShadowHover[7]&&!1===p[0].boxShadowHover[7]&&(s=`${void 0!==p[0].boxShadowHover&&void 0!==p[0].boxShadowHover[0]&&p[0].boxShadowHover[0]?(void 0!==p[0].boxShadowHover[7]&&p[0].boxShadowHover[7]?"inset ":"")+(void 0!==p[0].boxShadowHover[3]?p[0].boxShadowHover[3]:1)+"px "+(void 0!==p[0].boxShadowHover[4]?p[0].boxShadowHover[4]:1)+"px "+(void 0!==p[0].boxShadowHover[5]?p[0].boxShadowHover[5]:2)+"px "+(void 0!==p[0].boxShadowHover[6]?p[0].boxShadowHover[6]:0)+"px "+(0,Ho.KadenceColorOutput)(void 0!==p[0].boxShadowHover[1]?p[0].boxShadowHover[1]:"#000000",void 0!==p[0].boxShadowHover[2]?p[0].boxShadowHover[2]:1):void 0}`,b="none",u="0"),void 0!==p[0].boxShadowHover&&void 0!==p[0].boxShadowHover[0]&&p[0].boxShadowHover[0]&&void 0!==p[0].boxShadowHover[7]&&!0===p[0].boxShadowHover[7]&&(b=`${void 0!==p[0].boxShadowHover&&void 0!==p[0].boxShadowHover[0]&&p[0].boxShadowHover[0]?(void 0!==p[0].boxShadowHover[7]&&p[0].boxShadowHover[7]?"inset ":"")+(void 0!==p[0].boxShadowHover[3]?p[0].boxShadowHover[3]:1)+"px "+(void 0!==p[0].boxShadowHover[4]?p[0].boxShadowHover[4]:1)+"px "+(void 0!==p[0].boxShadowHover[5]?p[0].boxShadowHover[5]:2)+"px "+(void 0!==p[0].boxShadowHover[6]?p[0].boxShadowHover[6]:0)+"px "+(0,Ho.KadenceColorOutput)(void 0!==p[0].boxShadowHover[1]?p[0].boxShadowHover[1]:"#000000",void 0!==p[0].boxShadowHover[2]?p[0].boxShadowHover[2]:1):void 0}`,u=void 0!==p[0].borderRadius?p[0].borderRadius:void 0,s="none"),`#kb-form-${d} .kadence-blocks-form-field input.kb-field:focus, #kb-form-${d} .kadence-blocks-form-field textarea:focus {\n\t\t\t\t\t${c[0].colorActive?"color:"+(0,Ho.KadenceColorOutput)(c[0].colorActive)+"!important;":""}\n\t\t\t\t\t${n?"background:"+n+"!important;":""}\n\t\t\t\t\t${r?"box-shadow:"+r+"!important;":""}\n\t\t\t\t\t${c[0].borderActive?"border-color:"+(0,Ho.KadenceColorOutput)(c[0].borderActive)+"!important;":""}\n\t\t\t\t}\n\t\t\t\t#kb-form-${d} .kadence-blocks-form-field .kb-forms-submit:hover {\n\t\t\t\t\t${p[0].colorHover?"color:"+(0,Ho.KadenceColorOutput)(p[0].colorHover)+"!important;":""}\n\t\t\t\t\t${a?"background:"+a+"!important;":""}\n\t\t\t\t\t${s?"box-shadow:"+s+"!important;":""}\n\t\t\t\t\t${p[0].borderHover?"border-color:"+(0,Ho.KadenceColorOutput)(p[0].borderHover)+"!important;":""}\n\t\t\t\t}\n\t\t\t\t#kb-form-${d} .kadence-blocks-form-field .kb-forms-submit::before {\n\t\t\t\t\t${l?"background:"+l+";":""}\n\t\t\t\t\t${b?"box-shadow:"+b+";":""}\n\t\t\t\t\t${u?"border-radius:"+u+"px;":""}\n\t\t\t\t}`})()}),v[0].google&&(0,jo.jsx)(l.WebfontLoader,{config:It}),w[0].google&&(0,jo.jsx)(l.WebfontLoader,{config:Vt}),(0,jo.jsxs)(Ro.BlockControls,{children:[(0,jo.jsx)(Ro.AlignmentToolbar,{value:x,label:(0,So.__)("Align Submit","kadence-blocks"),onChange:e=>n({hAlign:e})}),(0,jo.jsx)(l.CopyPasteAttributes,{attributes:t,excludedAttrs:Ne,defaultAttributes:Mo.attributes,blockSlug:Mo.name,onPaste:e=>n(e)})]},"controls"),(0,jo.jsxs)(l.KadenceInspectorControls,{blockSlug:"kadence/form",children:[(0,jo.jsx)(l.InspectorControlTabs,{panelName:"form",setActiveTab:e=>Fe(e),activeTab:Pe}),"general"===Pe&&(0,jo.jsxs)(jo.Fragment,{children:[Yt,(0,jo.jsx)(Co.PanelRow,{children:(0,jo.jsxs)(Co.Button,{className:"kb-add-field",isPrimary:!0,onClick:()=>{const e=u;e.push({label:"",showLabel:!0,placeholder:"",default:"",rows:4,options:[],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"text",required:!1,width:["100","",""],auto:"",errorMessage:"",requiredMessage:""}),n({fields:e}),Le({multiSelect:u[0].multiSelect},0)},children:[(0,jo.jsx)(Co.Dashicon,{icon:"plus"}),(0,So.__)("Add Field","kadence-blocks")]})}),(0,jo.jsx)(l.KadencePanelBody,{title:(0,So.__)("Actions After Submit","kadence-blocks"),initialOpen:!1,panelName:"kb-form-action-after-submit",children:R&&(0,r.times)(R.length,e=>(e=>(0,jo.jsx)(Co.CheckboxControl,{label:R[e].label,help:""!==R[e].help?R[e].help:void 0,checked:b.includes(R[e].value),disabled:R[e].isDisabled,onChange:t=>{t&&!R[e].isDisabled?(e=>{const t=b.map((e,t)=>e);t.push(e),n({actions:t})})(R[e].value):(e=>{const t=b.filter(t=>t!==e);n({actions:t})})(R[e].value)}},"action-controls-"+e.toString()))(e))}),b.includes("email")&&(0,jo.jsxs)(l.KadencePanelBody,{title:(0,So.__)("Email Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-form-email-settings",children:[(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Email To Address","kadence-blocks"),placeholder:(0,So.__)("name@example.com","kadence-blocks"),value:void 0!==y[0].emailTo?y[0].emailTo:"",onChange:e=>Be({emailTo:e}),help:(0,So.__)("Separate with a comma for more than one email address.","kadence-blocks")}),(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Email Subject","kadence-blocks"),value:void 0!==y[0].subject?y[0].subject:"",onChange:e=>Be({subject:e})}),(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("From Email","kadence-blocks"),value:void 0!==y[0].fromEmail?y[0].fromEmail:"",onChange:e=>Be({fromEmail:e})}),(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("From Name","kadence-blocks"),value:void 0!==y[0].fromName?y[0].fromName:"",onChange:e=>Be({fromName:e})}),(0,jo.jsx)(Co.SelectControl,{label:(0,So.__)("Reply To","kadence-blocks"),value:y[0].replyTo,options:[{value:"email_field",label:(0,So.__)("Email Field","kadence-blocks")},{value:"from_email",label:(0,So.__)("From Email","kadence-blocks")}],onChange:e=>{Be({replyTo:e})}}),(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Cc","kadence-blocks"),value:void 0!==y[0].cc?y[0].cc:"",onChange:e=>Be({cc:e})}),(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Bcc","kadence-blocks"),value:void 0!==y[0].bcc?y[0].bcc:"",onChange:e=>Be({bcc:e})}),(0,jo.jsx)(Co.ToggleControl,{label:(0,So.__)("Send as HTML email?","kadence-blocks"),help:(0,So.__)("If off, plain text is used.","kadence-blocks"),checked:void 0===y[0].html||y[0].html,onChange:e=>Be({html:e})})]}),b.includes("redirect")&&(0,jo.jsx)(l.KadencePanelBody,{title:(0,So.__)("Redirect Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-form-redirect-settings",children:(0,jo.jsx)(l.URLInputControl,{label:(0,So.__)("Redirect to","kadence-blocks"),url:m,onChangeUrl:e=>n({redirect:e}),additionalControls:!1,...e})}),(0,jo.jsx)(l.KadencePanelBody,{title:(0,So.__)("Basic Spam Check","kadence-blocks"),initialOpen:!1,panelName:"kb-form-basic-spam-check",children:(0,jo.jsx)(Co.ToggleControl,{label:(0,So.__)("Enable Basic Honey Pot Spam Check","kadence-blocks"),help:(0,So.__)("This adds a hidden field that if filled out prevents the form from submitting.","kadence-blocks"),checked:_,onChange:e=>n({honeyPot:e})})}),(0,jo.jsxs)(l.KadencePanelBody,{title:(0,So.__)("Google reCAPTCHA","kadence-blocks"),initialOpen:!1,panelname:"kb-form-google-recaptcha",children:[(0,jo.jsx)(Co.ToggleControl,{label:(0,So.__)("Enable Google reCAPTCHA","kadence-blocks"),checked:g,onChange:e=>n({recaptcha:e})}),g&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsxs)("div",{className:"kt-btn-recaptch-settings-container components-base-control",children:[(0,jo.jsx)("p",{className:"kb-component-label",children:(0,So.__)("Recaptcha Version","kadence-blocks")}),(0,jo.jsx)(Co.ButtonGroup,{className:"kb-radio-button-flex-fill","aria-label":(0,So.__)("Recaptcha Version","kadence-blocks"),children:(0,r.map)(Ft,({name:e,key:t})=>(0,jo.jsx)(Co.Button,{className:"kt-btn-size-btn",isSmall:!0,isPrimary:O===t,"aria-pressed":O===t,onClick:()=>n({recaptchaVersion:t}),children:e},t))})]}),(0,jo.jsxs)("p",{children:[(0,jo.jsx)(Co.ExternalLink,{href:"https://www.google.com/recaptcha/admin",children:(0,So.__)("Get keys","kadence-blocks")}),"| ",(0,jo.jsx)(Co.ExternalLink,{href:"https://developers.google.com/recaptcha/docs/v3",children:(0,So.__)("Get help","kadence-blocks")}),(0,jo.jsx)("br",{}),(0,jo.jsx)(Co.ExternalLink,{href:"https://developers.google.com/recaptcha/docs/language",children:(0,So.__)("Language Codes","kadence-blocks")})]}),(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Force Specific Language","kadence-blocks"),value:Se,onChange:e=>Ce(e)}),(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Site Key","kadence-blocks"),value:ye,onChange:e=>xe(e)}),(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Secret Key","kadence-blocks"),value:_e,onChange:e=>we(e)}),(0,jo.jsxs)("div",{className:"components-base-control",children:[(0,jo.jsx)(Co.Button,{isPrimary:!0,onClick:()=>($e(!0),void new wp.api.models.Settings({kadence_blocks_recaptcha_site_key:ye,kadence_blocks_recaptcha_secret_key:_e,kadence_blocks_recaptcha_language:Se}).save().then(e=>{$e(!1),Oe(!0)})),disabled:""===ye||""===_e,children:Te?(0,So.__)("Saving","kadence-blocks"):(0,So.__)("Save","kadence-blocks")}),je&&(0,jo.jsxs)(jo.Fragment,{children:[" ",(0,jo.jsx)(Co.Button,{isSecondary:!0,onClick:()=>(xe(""),we(""),void(je&&($e(!0),new wp.api.models.Settings({kadence_blocks_recaptcha_site_key:"",kadence_blocks_recaptcha_secret_key:"",kadence_blocks_recaptcha_language:""}).save().then(()=>{Oe(!1),$e(!1)})))),children:(0,So.__)("Remove","kadence-blocks")})]})]})]})]}),(0,jo.jsxs)(l.KadencePanelBody,{title:(0,So.__)("Message Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-form-message-settings",children:[(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Success Message","kadence-blocks"),placeholder:(0,So.__)("Submission Success, Thanks for getting in touch!","kadence-blocks"),value:void 0!==f[0].success?f[0].success:"",onChange:e=>Ze({success:e})}),(0,jo.jsxs)(l.KadencePanelBody,{title:(0,So.__)("Success Message Colors","kadence-blocks"),initialOpen:!1,panelName:"kb-form-success-message-colors",children:[(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Success Message Color","kadence-blocks"),value:k[0].colorSuccess?k[0].colorSuccess:"",default:"",onChange:e=>{Qe({colorSuccess:e})}}),(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Success Message Background","kadence-blocks"),value:k[0].backgroundSuccess?k[0].backgroundSuccess:"",default:"",onChange:e=>{Qe({backgroundSuccess:e})},opacityValue:k[0].backgroundSuccessOpacity,onOpacityChange:e=>Qe({backgroundSuccessOpacity:e})}),(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Success Message Border","kadence-blocks"),value:k[0].borderSuccess?k[0].borderSuccess:"",default:"",onChange:e=>{Qe({borderSuccess:e})}})]}),(0,jo.jsx)(Co.PanelRow,{children:(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Pre Submit Form Validation Error Message","kadence-blocks"),placeholder:(0,So.__)("Please fix the errors to proceed","kadence-blocks"),value:void 0!==f[0].preError?f[0].preError:"",onChange:e=>Ze({preError:e})})}),(0,jo.jsx)(Co.PanelRow,{children:(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Error Message","kadence-blocks"),placeholder:(0,So.__)("Submission Failed","kadence-blocks"),value:void 0!==f[0].error?f[0].error:"",onChange:e=>Ze({error:e})})}),g&&(0,jo.jsx)(Co.PanelRow,{children:(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Recapcha Error Message","kadence-blocks"),placeholder:(0,So.__)("Submission Failed, reCaptcha spam prevention.","kadence-blocks"),value:void 0!==f[0].recaptchaerror?f[0].recaptchaerror:"",onChange:e=>Ze({recaptchaerror:e})})}),(0,jo.jsxs)(l.KadencePanelBody,{title:(0,So.__)("Error Message Colors","kadence-blocks"),initialOpen:!1,panelName:"kb-form-error-message-colors",children:[(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Error Message Color","kadence-blocks"),value:k[0].colorError?k[0].colorError:"",default:"",onChange:e=>{Qe({colorError:e})}}),(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Error Message Background","kadence-blocks"),value:k[0].backgroundError?k[0].backgroundError:"",default:"",onChange:e=>{Qe({backgroundError:e})},opacityValue:k[0].backgroundErrorOpacity,onOpacityChange:e=>Qe({backgroundErrorOpacity:e})}),(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Error Message Border","kadence-blocks"),value:k[0].borderError?k[0].borderError:"",default:"",onChange:e=>{Qe({borderError:e})}})]}),(0,jo.jsx)(l.TypographyControls,{fontGroup:"body",fontSize:k[0].size,onFontSize:e=>Qe({size:e}),fontSizeType:k[0].sizeType,onFontSizeType:e=>Qe({sizeType:e}),lineHeight:k[0].lineHeight,onLineHeight:e=>Qe({lineHeight:e}),lineHeightType:k[0].lineType,onLineHeightType:e=>Qe({lineType:e})}),(0,jo.jsx)("h2",{children:(0,So.__)("Border Settings","kadence-blocks")}),(0,jo.jsx)(l.MeasurementControls,{label:(0,So.__)("Border Width","kadence-blocks"),measurement:k[0].borderWidth,control:se,onChange:e=>Qe({borderWidth:e}),onControl:e=>de(e),min:0,max:20,step:1}),(0,jo.jsx)(Co.RangeControl,{label:(0,So.__)("Border Radius","kadence-blocks"),value:k[0].borderRadius,onChange:e=>{Qe({borderRadius:e})},min:0,max:50}),(0,jo.jsx)(l.KadencePanelBody,{title:(0,So.__)("Advanced Message Font Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-form-advanced-message-font-settings",children:(0,jo.jsx)(l.TypographyControls,{fontGroup:"body",letterSpacing:k[0].letterSpacing,onLetterSpacing:e=>Qe({letterSpacing:e}),fontFamily:k[0].family,onFontFamily:e=>Qe({family:e}),onFontChange:e=>{Qe({family:e.value,google:e.google})},onFontArrayChange:e=>Qe(e),googleFont:k[0].google,onGoogleFont:e=>Qe({google:e}),loadGoogleFont:k[0].loadGoogle,onLoadGoogleFont:e=>Qe({loadGoogle:e}),fontVariant:k[0].variant,onFontVariant:e=>Qe({variant:e}),fontWeight:k[0].weight,onFontWeight:e=>Qe({weight:e}),fontStyle:k[0].style,onFontStyle:e=>Qe({style:e}),fontSubset:k[0].subset,onFontSubset:e=>Qe({subset:e}),padding:k[0].padding,onPadding:e=>Qe({padding:e}),paddingControl:ce,onPaddingControl:e=>ue(e),margin:k[0].margin,onMargin:e=>Qe({margin:e}),marginControl:pe,onMarginControl:e=>be(e)})})]}),b.includes("mailerlite")&&(0,jo.jsx)($o,{fields:u,settings:T,save:e=>Tt(e),saveMap:(e,t)=>((e,t)=>{const a=u.map((a,o)=>{let i="";return i=t===o?e:void 0!==T[0].map&&void 0!==T[0].map[o]?T[0].map[o]:"",i});Tt({map:a})})(e,t)}),b.includes("fluentCRM")&&(0,jo.jsx)(No,{fields:u,settings:$,save:e=>$t(e),saveMap:(e,t)=>((e,t)=>{const a=u.map((a,o)=>{let i="";return i=t===o?e:void 0!==$[0].map&&void 0!==$[0].map[o]?$[0].map[o]:"",i});$t({map:a})})(e,t)}),(0,Eo.applyFilters)("kadence.formGeneralControls",null,e)]}),"style"===Pe&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsxs)(l.KadencePanelBody,{title:(0,So.__)("Field Styles","kadence-blocks"),panelName:"kb-form-field-styles",children:[(0,jo.jsx)(l.TypographyControls,{fontSize:c[0].fontSize,onFontSize:e=>Ge({fontSize:e}),fontSizeType:c[0].fontSizeType,onFontSizeType:e=>Ge({fontSizeType:e}),lineHeight:c[0].lineHeight,onLineHeight:e=>Ge({lineHeight:e}),lineHeightType:c[0].lineType,onLineHeightType:e=>Ge({lineType:e})}),(0,jo.jsxs)("div",{className:"kt-btn-size-settings-container",children:[(0,jo.jsx)("h2",{className:"kt-beside-btn-group",children:(0,So.__)("Input Size","kadence-blocks")}),(0,jo.jsx)(Co.ButtonGroup,{className:"kt-button-size-type-options","aria-label":(0,So.__)("Input Size","kadence-blocks"),children:(0,r.map)(Pt,({name:e,key:t})=>(0,jo.jsx)(Co.Button,{className:"kt-btn-size-btn",isSmall:!0,isPrimary:c[0].size===t,"aria-pressed":c[0].size===t,onClick:()=>Ge({size:t}),children:e},t))})]}),"custom"===c[0].size&&(0,jo.jsxs)("div",{className:"kt-inner-sub-section",children:[(0,jo.jsx)("h2",{className:"kt-heading-size-title kt-secondary-color-size",children:(0,So.__)("Input Padding","kadence-blocks")}),(0,jo.jsx)(Co.TabPanel,{className:"kt-size-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:(0,jo.jsx)(Co.Dashicon,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:(0,jo.jsx)(Co.Dashicon,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:(0,jo.jsx)(Co.Dashicon,{icon:"smartphone"}),className:"kt-mobile-tab"}],children:e=>{let t;return e.name&&(t="mobile"===e.name?(0,jo.jsx)(jo.Fragment,{children:(0,jo.jsx)(l.MeasurementControls,{label:(0,So.__)("Mobile Padding","kadence-blocks"),measurement:c[0].mobilePadding,control:G,onChange:e=>Ge({mobilePadding:e}),onControl:e=>K(e),min:0,max:100,step:1})}):"tablet"===e.name?(0,jo.jsx)(l.MeasurementControls,{label:(0,So.__)("Tablet Padding","kadence-blocks"),measurement:c[0].tabletPadding,control:W,onChange:e=>Ge({tabletPadding:e}),onControl:e=>B(e),min:0,max:100,step:1}):(0,jo.jsx)(l.MeasurementControls,{label:(0,So.__)("Desktop Padding","kadence-blocks"),measurement:c[0].deskPadding,control:V,onChange:e=>Ge({deskPadding:e}),onControl:e=>D(e),min:0,max:100,step:1})),(0,jo.jsx)("div",{className:e.className,children:t},e.className)}})]}),(0,jo.jsx)("h2",{className:"kt-heading-size-title kt-secondary-color-size",children:(0,So.__)("Input Colors","kadence-blocks")}),(0,jo.jsx)(Co.TabPanel,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:(0,So.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"focus",title:(0,So.__)("Focus","kadence-blocks"),className:"kt-focus-tab"}],children:e=>{let t;return e.name&&(t="focus"===e.name?(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Input Focus Color","kadence-blocks"),value:c[0].colorActive?c[0].colorActive:"",default:"",onChange:e=>{Ge({colorActive:e})}}),(0,jo.jsxs)("div",{className:"kt-btn-size-settings-container",children:[(0,jo.jsx)("h2",{className:"kt-beside-btn-group",children:(0,So.__)("Background Type","kadence-blocks")}),(0,jo.jsx)(Co.ButtonGroup,{className:"kt-button-size-type-options","aria-label":(0,So.__)("Background Type","kadence-blocks"),children:(0,r.map)(Ht,({name:e,key:t})=>(0,jo.jsx)(Co.Button,{className:"kt-btn-size-btn",isSmall:!0,isPrimary:(void 0!==c[0].backgroundActiveType?c[0].backgroundActiveType:"solid")===t,"aria-pressed":(void 0!==c[0].backgroundActiveType?c[0].backgroundActiveType:"solid")===t,onClick:()=>Ge({backgroundActiveType:t}),children:e},t))})]}),"gradient"!==c[0].backgroundActiveType&&(0,jo.jsx)("div",{className:"kt-inner-sub-section",children:(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Input Focus Background","kadence-blocks"),value:c[0].backgroundActive?c[0].backgroundActive:"",default:"",onChange:e=>{Ge({backgroundActive:e})},opacityValue:c[0].backgroundActiveOpacity,onOpacityChange:e=>Ge({backgroundActiveOpacity:e}),onArrayChange:(e,t)=>Ge({backgroundActive:e,backgroundActiveOpacity:t})})}),"gradient"===c[0].backgroundActiveType&&(0,jo.jsxs)("div",{className:"kt-inner-sub-section",children:[(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Gradient Color 1","kadence-blocks"),value:c[0].backgroundActive?c[0].backgroundActive:"",default:"",onChange:e=>{Ge({backgroundActive:e})},opacityValue:c[0].backgroundActiveOpacity,onOpacityChange:e=>Ge({backgroundActiveOpacity:e}),onArrayChange:(e,t)=>Ge({backgroundActive:e,backgroundActiveOpacity:t})}),(0,jo.jsx)(Co.RangeControl,{label:(0,So.__)("Location","kadence-blocks"),value:c[0].gradientActive&&void 0!==c[0].gradientActive[2]?c[0].gradientActive[2]:0,onChange:e=>{Ue(e,2)},min:0,max:100}),(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Gradient Color 2","kadence-blocks"),value:c[0].gradientActive&&void 0!==c[0].gradientActive[0]?c[0].gradientActive[0]:"#999999",default:"#999999",opacityValue:c[0].gradientActive&&void 0!==c[0].gradientActive[1]?c[0].gradientActive[1]:1,onChange:e=>{Ue(e,0)},onOpacityChange:e=>{Ue(e,1)}}),(0,jo.jsx)(Co.RangeControl,{label:(0,So.__)("Location","kadence-blocks"),value:c[0].gradientActive&&void 0!==c[0].gradientActive[3]?c[0].gradientActive[3]:100,onChange:e=>{Ue(e,3)},min:0,max:100}),(0,jo.jsxs)("div",{className:"kt-btn-size-settings-container",children:[(0,jo.jsx)("h2",{className:"kt-beside-btn-group",children:(0,So.__)("Gradient Type","kadence-blocks")}),(0,jo.jsx)(Co.ButtonGroup,{className:"kt-button-size-type-options","aria-label":(0,So.__)("Gradient Type","kadence-blocks"),children:(0,r.map)(Nt,({name:e,key:t})=>(0,jo.jsx)(Co.Button,{className:"kt-btn-size-btn",isSmall:!0,isPrimary:(c[0].gradientActive&&void 0!==c[0].gradientActive[4]?c[0].gradientActive[4]:"linear")===t,"aria-pressed":(c[0].gradientActive&&void 0!==c[0].gradientActive[4]?c[0].gradientActive[4]:"linear")===t,onClick:()=>{Ue(t,4)},children:e},t))})]}),"radial"!==(c[0].gradientActive&&void 0!==c[0].gradientActive[4]?c[0].gradientActive[4]:"linear")&&(0,jo.jsx)(Co.RangeControl,{label:(0,So.__)("Gradient Angle","kadence-blocks"),value:c[0].gradientActive&&void 0!==c[0].gradientActive[5]?c[0].gradientActive[5]:180,onChange:e=>{Ue(e,5)},min:0,max:360}),"radial"===(c[0].gradientActive&&void 0!==c[0].gradientActive[4]?c[0].gradientActive[4]:"linear")&&(0,jo.jsx)(Co.SelectControl,{label:(0,So.__)("Gradient Position","kadence-blocks"),value:c[0].gradientActive&&void 0!==c[0].gradientActive[6]?c[0].gradientActive[6]:"center center",options:[{value:"center top",label:(0,So.__)("Center Top","kadence-blocks")},{value:"center center",label:(0,So.__)("Center Center","kadence-blocks")},{value:"center bottom",label:(0,So.__)("Center Bottom","kadence-blocks")},{value:"left top",label:(0,So.__)("Left Top","kadence-blocks")},{value:"left center",label:(0,So.__)("Left Center","kadence-blocks")},{value:"left bottom",label:(0,So.__)("Left Bottom","kadence-blocks")},{value:"right top",label:(0,So.__)("Right Top","kadence-blocks")},{value:"right center",label:(0,So.__)("Right Center","kadence-blocks")},{value:"right bottom",label:(0,So.__)("Right Bottom","kadence-blocks")}],onChange:e=>{Ue(e,6)}})]}),(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Input Focus Border","kadence-blocks"),value:c[0].borderActive?c[0].borderActive:"",default:"",onChange:e=>{Ge({borderActive:e})},opacityValue:c[0].borderActiveOpacity,onOpacityChange:e=>Ge({borderActiveOpacity:e}),onArrayChange:(e,t)=>Ge({borderActive:e,borderActiveOpacity:t})}),(0,jo.jsx)(l.BoxShadowControl,{label:(0,So.__)("Input Focus Box Shadow","kadence-blocks"),enable:void 0!==c[0].boxShadowActive&&void 0!==c[0].boxShadowActive[0]&&c[0].boxShadowActive[0],color:void 0!==c[0].boxShadowActive&&void 0!==c[0].boxShadowActive[1]?c[0].boxShadowActive[1]:"#000000",default:"#000000",opacity:void 0!==c[0].boxShadowActive&&void 0!==c[0].boxShadowActive[2]?c[0].boxShadowActive[2]:.4,hOffset:void 0!==c[0].boxShadowActive&&void 0!==c[0].boxShadowActive[3]?c[0].boxShadowActive[3]:2,vOffset:void 0!==c[0].boxShadowActive&&void 0!==c[0].boxShadowActive[4]?c[0].boxShadowActive[4]:2,blur:void 0!==c[0].boxShadowActive&&void 0!==c[0].boxShadowActive[5]?c[0].boxShadowActive[5]:3,spread:void 0!==c[0].boxShadowActive&&void 0!==c[0].boxShadowActive[6]?c[0].boxShadowActive[6]:0,inset:void 0!==c[0].boxShadowActive&&void 0!==c[0].boxShadowActive[7]&&c[0].boxShadowActive[7],onEnableChange:e=>{Xe(e,0)},onColorChange:e=>{Xe(e,1)},onOpacityChange:e=>{Xe(e,2)},onHOffsetChange:e=>{Xe(e,3)},onVOffsetChange:e=>{Xe(e,4)},onBlurChange:e=>{Xe(e,5)},onSpreadChange:e=>{Xe(e,6)},onInsetChange:e=>{Xe(e,7)}})]}):(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Input Color","kadence-blocks"),value:c[0].color?c[0].color:"",default:"",onChange:e=>{Ge({color:e})}}),(0,jo.jsxs)("div",{className:"kt-btn-size-settings-container",children:[(0,jo.jsx)("h2",{className:"kt-beside-btn-group",children:(0,So.__)("Background Type","kadence-blocks")}),(0,jo.jsx)(Co.ButtonGroup,{className:"kt-button-size-type-options","aria-label":(0,So.__)("Background Type","kadence-blocks"),children:(0,r.map)(Ht,({name:e,key:t})=>(0,jo.jsx)(Co.Button,{className:"kt-btn-size-btn",isSmall:!0,isPrimary:(void 0!==c[0].backgroundType?c[0].backgroundType:"solid")===t,"aria-pressed":(void 0!==c[0].backgroundType?c[0].backgroundType:"solid")===t,onClick:()=>Ge({backgroundType:t}),children:e},t))})]}),"gradient"!==c[0].backgroundType&&(0,jo.jsx)("div",{className:"kt-inner-sub-section",children:(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Input Background","kadence-blocks"),value:c[0].background?c[0].background:"",default:"",onChange:e=>{Ge({background:e})},opacityValue:c[0].backgroundOpacity,onOpacityChange:e=>Ge({backgroundOpacity:e}),onArrayChange:(e,t)=>Ge({background:e,backgroundOpacity:t})})}),"gradient"===c[0].backgroundType&&(0,jo.jsxs)("div",{className:"kt-inner-sub-section",children:[(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Gradient Color 1","kadence-blocks"),value:c[0].background?c[0].background:"",default:"",onChange:e=>{Ge({background:e})},opacityValue:c[0].backgroundOpacity,onOpacityChange:e=>Ge({backgroundOpacity:e}),onArrayChange:(e,t)=>Ge({background:e,backgroundOpacity:t})}),(0,jo.jsx)(Co.RangeControl,{label:(0,So.__)("Location","kadence-blocks"),value:c[0].gradient&&void 0!==c[0].gradient[2]?c[0].gradient[2]:0,onChange:e=>{Ke(e,2)},min:0,max:100}),(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Gradient Color 2","kadence-blocks"),value:c[0].gradient&&void 0!==c[0].gradient[0]?c[0].gradient[0]:"#999999",default:"#999999",opacityValue:c[0].gradient&&void 0!==c[0].gradient[1]?c[0].gradient[1]:1,onChange:e=>{Ke(e,0)},onOpacityChange:e=>{Ke(e,1)}}),(0,jo.jsx)(Co.RangeControl,{label:(0,So.__)("Location","kadence-blocks"),value:c[0].gradient&&void 0!==c[0].gradient[3]?c[0].gradient[3]:100,onChange:e=>{Ke(e,3)},min:0,max:100}),(0,jo.jsxs)("div",{className:"kt-btn-size-settings-container",children:[(0,jo.jsx)("h2",{className:"kt-beside-btn-group",children:(0,So.__)("Gradient Type","kadence-blocks")}),(0,jo.jsx)(Co.ButtonGroup,{className:"kt-button-size-type-options","aria-label":(0,So.__)("Gradient Type","kadence-blocks"),children:(0,r.map)(Nt,({name:e,key:t})=>(0,jo.jsx)(Co.Button,{className:"kt-btn-size-btn",isSmall:!0,isPrimary:(c[0].gradient&&void 0!==c[0].gradient[4]?c[0].gradient[4]:"linear")===t,"aria-pressed":(c[0].gradient&&void 0!==c[0].gradient[4]?c[0].gradient[4]:"linear")===t,onClick:()=>{Ke(t,4)},children:e},t))})]}),"radial"!==(c[0].gradient&&void 0!==c[0].gradient[4]?c[0].gradient[4]:"linear")&&(0,jo.jsx)(Co.RangeControl,{label:(0,So.__)("Gradient Angle","kadence-blocks"),value:c[0].gradient&&void 0!==c[0].gradient[5]?c[0].gradient[5]:180,onChange:e=>{Ke(e,5)},min:0,max:360}),"radial"===(c[0].gradient&&void 0!==c[0].gradient[4]?c[0].gradient[4]:"linear")&&(0,jo.jsx)(Co.SelectControl,{label:(0,So.__)("Gradient Position","kadence-blocks"),value:c[0].gradient&&void 0!==c[0].gradient[6]?c[0].gradient[6]:"center center",options:[{value:"center top",label:(0,So.__)("Center Top","kadence-blocks")},{value:"center center",label:(0,So.__)("Center Center","kadence-blocks")},{value:"center bottom",label:(0,So.__)("Center Bottom","kadence-blocks")},{value:"left top",label:(0,So.__)("Left Top","kadence-blocks")},{value:"left center",label:(0,So.__)("Left Center","kadence-blocks")},{value:"left bottom",label:(0,So.__)("Left Bottom","kadence-blocks")},{value:"right top",label:(0,So.__)("Right Top","kadence-blocks")},{value:"right center",label:(0,So.__)("Right Center","kadence-blocks")},{value:"right bottom",label:(0,So.__)("Right Bottom","kadence-blocks")}],onChange:e=>{Ke(e,6)}})]}),(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Input Border","kadence-blocks"),value:c[0].border?c[0].border:"",default:"",onChange:e=>{Ge({border:e})},opacityValue:c[0].borderOpacity,onOpacityChange:e=>Ge({borderOpacity:e}),onArrayChange:(e,t)=>Ge({border:e,borderOpacity:t})}),(0,jo.jsx)(l.BoxShadowControl,{label:(0,So.__)("Input Box Shadow","kadence-blocks"),enable:void 0!==c[0].boxShadow&&void 0!==c[0].boxShadow[0]&&c[0].boxShadow[0],color:void 0!==c[0].boxShadow&&void 0!==c[0].boxShadow[1]?c[0].boxShadow[1]:"#000000",default:"#000000",opacity:void 0!==c[0].boxShadow&&void 0!==c[0].boxShadow[2]?c[0].boxShadow[2]:.4,hOffset:void 0!==c[0].boxShadow&&void 0!==c[0].boxShadow[3]?c[0].boxShadow[3]:2,vOffset:void 0!==c[0].boxShadow&&void 0!==c[0].boxShadow[4]?c[0].boxShadow[4]:2,blur:void 0!==c[0].boxShadow&&void 0!==c[0].boxShadow[5]?c[0].boxShadow[5]:3,spread:void 0!==c[0].boxShadow&&void 0!==c[0].boxShadow[6]?c[0].boxShadow[6]:0,inset:void 0!==c[0].boxShadow&&void 0!==c[0].boxShadow[7]&&c[0].boxShadow[7],onEnableChange:e=>{Ye(e,0)},onColorChange:e=>{Ye(e,1)},onOpacityChange:e=>{Ye(e,2)},onHOffsetChange:e=>{Ye(e,3)},onVOffsetChange:e=>{Ye(e,4)},onBlurChange:e=>{Ye(e,5)},onSpreadChange:e=>{Ye(e,6)},onInsetChange:e=>{Ye(e,7)}})]})),(0,jo.jsx)("div",{className:e.className,children:t},e.className)}}),(0,jo.jsx)("h2",{children:(0,So.__)("Border Settings","kadence-blocks")}),(0,jo.jsx)(l.MeasurementControls,{label:(0,So.__)("Border Width","kadence-blocks"),measurement:c[0].borderWidth,control:U,onChange:e=>Ge({borderWidth:e}),onControl:e=>Y(e),min:0,max:20,step:1}),(0,jo.jsx)(Co.RangeControl,{label:(0,So.__)("Border Radius","kadence-blocks"),value:c[0].borderRadius,onChange:e=>{Ge({borderRadius:e})},min:0,max:50}),(0,jo.jsx)(l.ResponsiveRangeControls,{label:(0,So.__)("Field Row Gap","kadence-blocks"),value:void 0!==c[0].rowGap?c[0].rowGap:"",onChange:e=>{Ge({rowGap:e})},tabletValue:void 0!==c[0].tabletRowGap?c[0].tabletRowGap:"",onChangeTablet:e=>{Ge({tabletRowGap:e})},mobileValue:void 0!==c[0].mobileRowGap?c[0].mobileRowGap:"",onChangeMobile:e=>{Ge({mobileRowGap:e})},min:0,max:100,step:1,showUnit:!0,unit:"px",units:["px"]}),(0,jo.jsx)(l.ResponsiveRangeControls,{label:(0,So.__)("Field Column Gutter","kadence-blocks"),value:void 0!==c[0].gutter?c[0].gutter:"",onChange:e=>{Ge({gutter:e})},tabletValue:void 0!==c[0].tabletGutter?c[0].tabletGutter:"",onChangeTablet:e=>{Ge({tabletGutter:e})},mobileValue:void 0!==c[0].mobileGutter?c[0].mobileGutter:"",onChangeMobile:e=>{Ge({mobileGutter:e})},min:0,max:50,step:2,showUnit:!0,unit:"px",units:["px"]})]}),(0,jo.jsxs)(l.KadencePanelBody,{title:(0,So.__)("Label Styles","kadence-blocks"),initialOpen:!1,panelName:"kb-form-label-styles",children:[(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Label Color","kadence-blocks"),value:v[0].color?v[0].color:"",default:"",onChange:e=>{Je({color:e})}}),(0,jo.jsx)(Co.ToggleControl,{label:(0,So.__)("Show Required?","kadence-blocks"),help:(0,So.__)("If off required asterisk is removed.","kadence-blocks"),checked:void 0===c[0].showRequired||c[0].showRequired,onChange:e=>Ge({showRequired:e})}),c[0].showRequired&&(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Required Color","kadence-blocks"),value:c[0].requiredColor?c[0].requiredColor:"",default:"",onChange:e=>{Ge({requiredColor:e})}}),(0,jo.jsx)(l.TypographyControls,{fontSize:v[0].size,onFontSize:e=>Je({size:e}),fontSizeType:v[0].sizeType,onFontSizeType:e=>Je({sizeType:e}),lineHeight:v[0].lineHeight,onLineHeight:e=>Je({lineHeight:e}),lineHeightType:v[0].lineType,onLineHeightType:e=>Je({lineType:e})}),(0,jo.jsx)(l.KadencePanelBody,{title:(0,So.__)("Advanced Label Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-form-advanced-label-settings",children:(0,jo.jsx)(l.TypographyControls,{fontGroup:"body",letterSpacing:v[0].letterSpacing,onLetterSpacing:e=>Je({letterSpacing:e}),textTransform:v[0].textTransform,onTextTransform:e=>Je({textTransform:e}),fontFamily:v[0].family,onFontFamily:e=>Je({family:e}),onFontChange:e=>{Je({family:e.value,google:e.google})},onFontArrayChange:e=>Je(e),googleFont:v[0].google,onGoogleFont:e=>Je({google:e}),loadGoogleFont:v[0].loadGoogle,onLoadGoogleFont:e=>Je({loadGoogle:e}),fontVariant:v[0].variant,onFontVariant:e=>Je({variant:e}),fontWeight:v[0].weight,onFontWeight:e=>Je({weight:e}),fontStyle:v[0].style,onFontStyle:e=>Je({style:e}),fontSubset:v[0].subset,onFontSubset:e=>Je({subset:e}),padding:v[0].padding,onPadding:e=>Je({padding:e}),paddingControl:X,onPaddingControl:e=>J(e),margin:v[0].margin,onMargin:e=>Je({margin:e}),marginControl:Q,onMarginControl:e=>Z(e)})})]}),(0,jo.jsxs)(l.KadencePanelBody,{title:(0,So.__)("Submit Styles","kadence-blocks"),initialOpen:!1,panelName:"kb-form-submit-styles",children:[(0,jo.jsx)("h2",{className:"kt-heading-size-title kt-secondary-color-size",children:(0,So.__)("Column Width","kadence-blocks")}),(0,jo.jsx)(Co.TabPanel,{className:"kt-size-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:(0,jo.jsx)(Co.Dashicon,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:(0,jo.jsx)(Co.Dashicon,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:(0,jo.jsx)(Co.Dashicon,{icon:"smartphone"}),className:"kt-mobile-tab"}],children:e=>{let t;return e.name&&(t="mobile"===e.name?(0,jo.jsx)(jo.Fragment,{children:(0,jo.jsx)(Co.SelectControl,{value:p[0].width[2],options:[{value:"20",label:(0,So.__)("20%","kadence-blocks")},{value:"25",label:(0,So.__)("25%","kadence-blocks")},{value:"33",label:(0,So.__)("33%","kadence-blocks")},{value:"40",label:(0,So.__)("40%","kadence-blocks")},{value:"50",label:(0,So.__)("50%","kadence-blocks")},{value:"60",label:(0,So.__)("60%","kadence-blocks")},{value:"66",label:(0,So.__)("66%","kadence-blocks")},{value:"75",label:(0,So.__)("75%","kadence-blocks")},{value:"80",label:(0,So.__)("80%","kadence-blocks")},{value:"100",label:(0,So.__)("100%","kadence-blocks")},{value:"unset",label:(0,So.__)("Unset","kadence-blocks")}],onChange:e=>{Re({width:[p[0].width[0]?p[0].width[0]:"100",p[0].width[1]?p[0].width[1]:"",e]})}})}):"tablet"===e.name?(0,jo.jsx)(jo.Fragment,{children:(0,jo.jsx)(Co.SelectControl,{value:p[0].width[1],options:[{value:"20",label:(0,So.__)("20%","kadence-blocks")},{value:"25",label:(0,So.__)("25%","kadence-blocks")},{value:"33",label:(0,So.__)("33%","kadence-blocks")},{value:"40",label:(0,So.__)("40%","kadence-blocks")},{value:"50",label:(0,So.__)("50%","kadence-blocks")},{value:"60",label:(0,So.__)("60%","kadence-blocks")},{value:"66",label:(0,So.__)("66%","kadence-blocks")},{value:"75",label:(0,So.__)("75%","kadence-blocks")},{value:"80",label:(0,So.__)("80%","kadence-blocks")},{value:"100",label:(0,So.__)("100%","kadence-blocks")},{value:"unset",label:(0,So.__)("Unset","kadence-blocks")}],onChange:e=>{Re({width:[p[0].width[0]?p[0].width[0]:"100",e,p[0].width[2]?p[0].width[2]:""]})}})}):(0,jo.jsx)(jo.Fragment,{children:(0,jo.jsx)(Co.SelectControl,{value:p[0].width[0],options:[{value:"20",label:(0,So.__)("20%","kadence-blocks")},{value:"25",label:(0,So.__)("25%","kadence-blocks")},{value:"33",label:(0,So.__)("33%","kadence-blocks")},{value:"40",label:(0,So.__)("40%","kadence-blocks")},{value:"50",label:(0,So.__)("50%","kadence-blocks")},{value:"60",label:(0,So.__)("60%","kadence-blocks")},{value:"66",label:(0,So.__)("66%","kadence-blocks")},{value:"75",label:(0,So.__)("75%","kadence-blocks")},{value:"80",label:(0,So.__)("80%","kadence-blocks")},{value:"100",label:(0,So.__)("100%","kadence-blocks")},{value:"unset",label:(0,So.__)("Unset","kadence-blocks")}],onChange:e=>{Re({width:[e,p[0].width[1]?p[0].width[1]:"",p[0].width[2]?p[0].width[2]:""]})}})})),(0,jo.jsx)("div",{className:e.className,children:t},e.className)}}),(0,jo.jsxs)("div",{className:"kt-btn-size-settings-container",children:[(0,jo.jsx)("h2",{className:"kt-beside-btn-group",children:(0,So.__)("Button Size","kadence-blocks")}),(0,jo.jsx)(Co.ButtonGroup,{className:"kt-button-size-type-options","aria-label":(0,So.__)("Button Size","kadence-blocks"),children:(0,r.map)(Pt,({name:e,key:t})=>(0,jo.jsx)(Co.Button,{className:"kt-btn-size-btn",isSmall:!0,isPrimary:p[0].size===t,"aria-pressed":p[0].size===t,onClick:()=>Re({size:t}),children:e},t))})]}),"custom"===p[0].size&&(0,jo.jsxs)("div",{className:"kt-inner-sub-section",children:[(0,jo.jsx)("h2",{className:"kt-heading-size-title kt-secondary-color-size",children:(0,So.__)("Input Padding","kadence-blocks")}),(0,jo.jsx)(Co.TabPanel,{className:"kt-size-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:(0,jo.jsx)(Co.Dashicon,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:(0,jo.jsx)(Co.Dashicon,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:(0,jo.jsx)(Co.Dashicon,{icon:"smartphone"}),className:"kt-mobile-tab"}],children:e=>{let t;return e.name&&(t="mobile"===e.name?(0,jo.jsx)(jo.Fragment,{children:(0,jo.jsx)(l.MeasurementControls,{label:(0,So.__)("Mobile Padding","kadence-blocks"),measurement:p[0].mobilePadding,control:re,onChange:e=>Re({mobilePadding:e}),onControl:e=>le(e),min:0,max:100,step:1})}):"tablet"===e.name?(0,jo.jsx)(l.MeasurementControls,{label:(0,So.__)("Tablet Padding","kadence-blocks"),measurement:p[0].tabletPadding,control:ie,onChange:e=>Re({tabletPadding:e}),onControl:e=>ne(e),min:0,max:100,step:1}):(0,jo.jsx)(l.MeasurementControls,{label:(0,So.__)("Desktop Padding","kadence-blocks"),measurement:p[0].deskPadding,control:ae,onChange:e=>Re({deskPadding:e}),onControl:e=>oe(e),min:0,max:100,step:1})),(0,jo.jsx)("div",{className:e.className,children:t},e.className)}})]}),(0,jo.jsxs)("div",{className:"kt-btn-size-settings-container",children:[(0,jo.jsx)("h2",{className:"kt-beside-btn-group",children:(0,So.__)("Button Width","kadence-blocks")}),(0,jo.jsx)(Co.ButtonGroup,{className:"kt-button-size-type-options","aria-label":(0,So.__)("Button Width","kadence-blocks"),children:(0,r.map)(At,({name:e,key:t})=>(0,jo.jsx)(Co.Button,{className:"kt-btn-size-btn",isSmall:!0,isPrimary:p[0].widthType===t,"aria-pressed":p[0].widthType===t,onClick:()=>Re({widthType:t}),children:e},t))})]}),"fixed"===p[0].widthType&&(0,jo.jsxs)("div",{className:"kt-inner-sub-section",children:[(0,jo.jsx)("h2",{className:"kt-heading-size-title kt-secondary-color-size",children:(0,So.__)("Fixed Width","kadence-blocks")}),(0,jo.jsx)(Co.TabPanel,{className:"kt-size-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:(0,jo.jsx)(Co.Dashicon,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:(0,jo.jsx)(Co.Dashicon,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:(0,jo.jsx)(Co.Dashicon,{icon:"smartphone"}),className:"kt-mobile-tab"}],children:e=>{let t;return e.name&&(t="mobile"===e.name?(0,jo.jsx)(Co.RangeControl,{value:p[0].fixedWidth&&void 0!==p[0].fixedWidth[2]?p[0].fixedWidth[2]:void 0,onChange:e=>{Re({fixedWidth:[void 0!==p[0].fixedWidth&&void 0!==p[0].fixedWidth[0]?p[0].fixedWidth[0]:"",void 0!==p[0].fixedWidth&&void 0!==p[0].fixedWidth[1]?p[0].fixedWidth[1]:"",e]})},min:10,max:500}):"tablet"===e.name?(0,jo.jsx)(Co.RangeControl,{value:p[0].fixedWidth&&void 0!==p[0].fixedWidth[1]?p[0].fixedWidth[1]:void 0,onChange:e=>{Re({fixedWidth:[void 0!==p[0].fixedWidth&&void 0!==p[0].fixedWidth[0]?p[0].fixedWidth[0]:"",e,void 0!==p[0].fixedWidth&&void 0!==p[0].fixedWidth[2]?p[0].fixedWidth[2]:""]})},min:10,max:500}):(0,jo.jsx)(Co.RangeControl,{value:p[0].fixedWidth&&void 0!==p[0].fixedWidth[0]?p[0].fixedWidth[0]:void 0,onChange:e=>{Re({fixedWidth:[e,void 0!==p[0].fixedWidth&&void 0!==p[0].fixedWidth[1]?p[0].fixedWidth[1]:"",void 0!==p[0].fixedWidth&&void 0!==p[0].fixedWidth[2]?p[0].fixedWidth[2]:""]})},min:10,max:500})),(0,jo.jsx)("div",{className:e.className,children:t},e.className)}})]}),(0,jo.jsx)("h2",{className:"kt-heading-size-title kt-secondary-color-size",children:(0,So.__)("Button Colors","kadence-blocks")}),(0,jo.jsx)(Co.TabPanel,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:(0,So.__)("Normal","kadence-blocks"),className:"kt-normal-tab"},{name:"hover",title:(0,So.__)("Hover","kadence-blocks"),className:"kt-hover-tab"}],children:e=>{let t;return e.name&&(t="hover"===e.name?(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Text Hover Color","kadence-blocks"),value:p[0].colorHover?p[0].colorHover:"",default:"",onChange:e=>{Re({colorHover:e})}}),(0,jo.jsxs)("div",{className:"kt-btn-size-settings-container",children:[(0,jo.jsx)("h2",{className:"kt-beside-btn-group",children:(0,So.__)("Background Type","kadence-blocks")}),(0,jo.jsx)(Co.ButtonGroup,{className:"kt-button-size-type-options","aria-label":(0,So.__)("Background Type","kadence-blocks"),children:(0,r.map)(Ht,({name:e,key:t})=>(0,jo.jsx)(Co.Button,{className:"kt-btn-size-btn",isSmall:!0,isPrimary:(void 0!==p[0].backgroundHoverType?p[0].backgroundHoverType:"solid")===t,"aria-pressed":(void 0!==p[0].backgroundHoverType?p[0].backgroundHoverType:"solid")===t,onClick:()=>Re({backgroundHoverType:t}),children:e},t))})]}),"gradient"!==p[0].backgroundHoverType&&(0,jo.jsx)("div",{className:"kt-inner-sub-section",children:(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Button Hover Background","kadence-blocks"),value:p[0].backgroundHover?p[0].backgroundHover:"",default:"",onChange:e=>{Re({backgroundHover:e})},opacityValue:p[0].backgroundHoverOpacity,onOpacityChange:e=>Re({backgroundHoverOpacity:e}),onArrayChange:(e,t)=>Re({backgroundHover:e,backgroundHoverOpacity:t})})}),"gradient"===p[0].backgroundHoverType&&(0,jo.jsxs)("div",{className:"kt-inner-sub-section",children:[(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Gradient Color 1","kadence-blocks"),value:p[0].backgroundHover?p[0].backgroundHover:"",default:"",onChange:e=>{Re({backgroundHover:e})},opacityValue:p[0].backgroundHoverOpacity,onOpacityChange:e=>Re({backgroundHoverOpacity:e}),onArrayChange:(e,t)=>Re({backgroundHover:e,backgroundHoverOpacity:t})}),(0,jo.jsx)(Co.RangeControl,{label:(0,So.__)("Location","kadence-blocks"),value:p[0].gradientHover&&void 0!==p[0].gradientHover[2]?p[0].gradientHover[2]:0,onChange:e=>{qe(e,2)},min:0,max:100}),(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Gradient Color 2","kadence-blocks"),value:p[0].gradientHover&&void 0!==p[0].gradientHover[0]?p[0].gradientHover[0]:"#999999",default:"#999999",opacityValue:p[0].gradientHover&&void 0!==p[0].gradientHover[1]?p[0].gradientHover[1]:1,onChange:e=>{qe(e,0)},onOpacityChange:e=>{qe(e,1)}}),(0,jo.jsx)(Co.RangeControl,{label:(0,So.__)("Location","kadence-blocks"),value:p[0].gradientHover&&void 0!==p[0].gradientHover[3]?p[0].gradientHover[3]:100,onChange:e=>{qe(e,3)},min:0,max:100}),(0,jo.jsxs)("div",{className:"kt-btn-size-settings-container",children:[(0,jo.jsx)("h2",{className:"kt-beside-btn-group",children:(0,So.__)("Gradient Type","kadence-blocks")}),(0,jo.jsx)(Co.ButtonGroup,{className:"kt-button-size-type-options","aria-label":(0,So.__)("Gradient Type","kadence-blocks"),children:(0,r.map)(Nt,({name:e,key:t})=>(0,jo.jsx)(Co.Button,{className:"kt-btn-size-btn",isSmall:!0,isPrimary:(p[0].gradientHover&&void 0!==p[0].gradientHover[4]?p[0].gradientHover[4]:"linear")===t,"aria-pressed":(p[0].gradientHover&&void 0!==p[0].gradientHover[4]?p[0].gradientHover[4]:"linear")===t,onClick:()=>{qe(t,4)},children:e},t))})]}),"radial"!==(p[0].gradientHover&&void 0!==p[0].gradientHover[4]?p[0].gradientHover[4]:"linear")&&(0,jo.jsx)(Co.RangeControl,{label:(0,So.__)("Gradient Angle","kadence-blocks"),value:p[0].gradientHover&&void 0!==p[0].gradientHover[5]?p[0].gradientHover[5]:180,onChange:e=>{qe(e,5)},min:0,max:360}),"radial"===(p[0].gradientHover&&void 0!==p[0].gradientHover[4]?p[0].gradientHover[4]:"linear")&&(0,jo.jsx)(Co.SelectControl,{label:(0,So.__)("Gradient Position","kadence-blocks"),value:p[0].gradientHover&&void 0!==p[0].gradientHover[6]?p[0].gradientHover[6]:"center center",options:[{value:"center top",label:(0,So.__)("Center Top","kadence-blocks")},{value:"center center",label:(0,So.__)("Center Center","kadence-blocks")},{value:"center bottom",label:(0,So.__)("Center Bottom","kadence-blocks")},{value:"left top",label:(0,So.__)("Left Top","kadence-blocks")},{value:"left center",label:(0,So.__)("Left Center","kadence-blocks")},{value:"left bottom",label:(0,So.__)("Left Bottom","kadence-blocks")},{value:"right top",label:(0,So.__)("Right Top","kadence-blocks")},{value:"right center",label:(0,So.__)("Right Center","kadence-blocks")},{value:"right bottom",label:(0,So.__)("Right Bottom","kadence-blocks")}],onChange:e=>{qe(e,6)}})]}),(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Button Hover Border","kadence-blocks"),value:p[0].borderHover?p[0].borderHover:"",default:"",onChange:e=>{Re({borderHover:e})},opacityValue:p[0].borderHoverOpacity,onOpacityChange:e=>Re({borderHoverOpacity:e}),onArrayChange:(e,t)=>Re({borderHover:e,borderHoverOpacity:t})}),(0,jo.jsx)(l.BoxShadowControl,{label:(0,So.__)("Button Hover Box Shadow","kadence-blocks"),enable:void 0!==p[0].boxShadowHover&&void 0!==p[0].boxShadowHover[0]&&p[0].boxShadowHover[0],color:void 0!==p[0].boxShadowHover&&void 0!==p[0].boxShadowHover[1]?p[0].boxShadowHover[1]:"#000000",default:"#000000",opacity:void 0!==p[0].boxShadowHover&&void 0!==p[0].boxShadowHover[2]?p[0].boxShadowHover[2]:.4,hOffset:void 0!==p[0].boxShadowHover&&void 0!==p[0].boxShadowHover[3]?p[0].boxShadowHover[3]:2,vOffset:void 0!==p[0].boxShadowHover&&void 0!==p[0].boxShadowHover[4]?p[0].boxShadowHover[4]:2,blur:void 0!==p[0].boxShadowHover&&void 0!==p[0].boxShadowHover[5]?p[0].boxShadowHover[5]:3,spread:void 0!==p[0].boxShadowHover&&void 0!==p[0].boxShadowHover[6]?p[0].boxShadowHover[6]:0,inset:void 0!==p[0].boxShadowHover&&void 0!==p[0].boxShadowHover[7]&&p[0].boxShadowHover[7],onEnableChange:e=>{De(e,0)},onColorChange:e=>{De(e,1)},onOpacityChange:e=>{De(e,2)},onHOffsetChange:e=>{De(e,3)},onVOffsetChange:e=>{De(e,4)},onBlurChange:e=>{De(e,5)},onSpreadChange:e=>{De(e,6)},onInsetChange:e=>{De(e,7)}})]}):(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Text Color","kadence-blocks"),value:p[0].color?p[0].color:"",default:"",onChange:e=>{Re({color:e})}}),(0,jo.jsxs)("div",{className:"kt-btn-size-settings-container",children:[(0,jo.jsx)("h2",{className:"kt-beside-btn-group",children:(0,So.__)("Background Type","kadence-blocks")}),(0,jo.jsx)(Co.ButtonGroup,{className:"kt-button-size-type-options","aria-label":(0,So.__)("Background Type","kadence-blocks"),children:(0,r.map)(Ht,({name:e,key:t})=>(0,jo.jsx)(Co.Button,{className:"kt-btn-size-btn",isSmall:!0,isPrimary:(void 0!==p[0].backgroundType?p[0].backgroundType:"solid")===t,"aria-pressed":(void 0!==p[0].backgroundType?p[0].backgroundType:"solid")===t,onClick:()=>Re({backgroundType:t}),children:e},t))})]}),"gradient"!==p[0].backgroundType&&(0,jo.jsx)("div",{className:"kt-inner-sub-section",children:(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Button Background","kadence-blocks"),value:p[0].background?p[0].background:"",default:"",onChange:e=>{Re({background:e})},opacityValue:p[0].backgroundOpacity,onOpacityChange:e=>Re({backgroundOpacity:e}),onArrayChange:(e,t)=>Re({background:e,backgroundOpacity:t})})}),"gradient"===p[0].backgroundType&&(0,jo.jsxs)("div",{className:"kt-inner-sub-section",children:[(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Gradient Color 1","kadence-blocks"),value:p[0].background?p[0].background:"",default:"",onChange:e=>{Re({background:e})},opacityValue:p[0].backgroundOpacity,onOpacityChange:e=>Re({backgroundOpacity:e}),onArrayChange:(e,t)=>Re({background:e,backgroundOpacity:t})}),(0,jo.jsx)(Co.RangeControl,{label:(0,So.__)("Location","kadence-blocks"),value:p[0].gradient&&void 0!==p[0].gradient[2]?p[0].gradient[2]:0,onChange:e=>{Ie(e,2)},min:0,max:100}),(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Gradient Color 2","kadence-blocks"),value:p[0].gradient&&void 0!==p[0].gradient[0]?p[0].gradient[0]:"#999999",default:"#999999",opacityValue:p[0].gradient&&void 0!==p[0].gradient[1]?p[0].gradient[1]:1,onChange:e=>{Ie(e,0)},onOpacityChange:e=>{Ie(e,1)}}),(0,jo.jsx)(Co.RangeControl,{label:(0,So.__)("Location","kadence-blocks"),value:p[0].gradient&&void 0!==p[0].gradient[3]?p[0].gradient[3]:100,onChange:e=>{Ie(e,3)},min:0,max:100}),(0,jo.jsxs)("div",{className:"kt-btn-size-settings-container",children:[(0,jo.jsx)("h2",{className:"kt-beside-btn-group",children:(0,So.__)("Gradient Type","kadence-blocks")}),(0,jo.jsx)(Co.ButtonGroup,{className:"kt-button-size-type-options","aria-label":(0,So.__)("Gradient Type","kadence-blocks"),children:(0,r.map)(Nt,({name:e,key:t})=>(0,jo.jsx)(Co.Button,{className:"kt-btn-size-btn",isSmall:!0,isPrimary:(p[0].gradient&&void 0!==p[0].gradient[4]?p[0].gradient[4]:"linear")===t,"aria-pressed":(p[0].gradient&&void 0!==p[0].gradient[4]?p[0].gradient[4]:"linear")===t,onClick:()=>{Ie(t,4)},children:e},t))})]}),"radial"!==(p[0].gradient&&void 0!==p[0].gradient[4]?p[0].gradient[4]:"linear")&&(0,jo.jsx)(Co.RangeControl,{label:(0,So.__)("Gradient Angle","kadence-blocks"),value:p[0].gradient&&void 0!==p[0].gradient[5]?p[0].gradient[5]:180,onChange:e=>{Ie(e,5)},min:0,max:360}),"radial"===(p[0].gradient&&void 0!==p[0].gradient[4]?p[0].gradient[4]:"linear")&&(0,jo.jsx)(Co.SelectControl,{label:(0,So.__)("Gradient Position","kadence-blocks"),value:p[0].gradient&&void 0!==p[0].gradient[6]?p[0].gradient[6]:"center center",options:[{value:"center top",label:(0,So.__)("Center Top","kadence-blocks")},{value:"center center",label:(0,So.__)("Center Center","kadence-blocks")},{value:"center bottom",label:(0,So.__)("Center Bottom","kadence-blocks")},{value:"left top",label:(0,So.__)("Left Top","kadence-blocks")},{value:"left center",label:(0,So.__)("Left Center","kadence-blocks")},{value:"left bottom",label:(0,So.__)("Left Bottom","kadence-blocks")},{value:"right top",label:(0,So.__)("Right Top","kadence-blocks")},{value:"right center",label:(0,So.__)("Right Center","kadence-blocks")},{value:"right bottom",label:(0,So.__)("Right Bottom","kadence-blocks")}],onChange:e=>{Ie(e,6)}})]}),(0,jo.jsx)(l.PopColorControl,{label:(0,So.__)("Button Border","kadence-blocks"),value:p[0].border?p[0].border:"",default:"",onChange:e=>{Re({border:e})},opacityValue:p[0].borderOpacity,onOpacityChange:e=>Re({borderOpacity:e}),onArrayChange:(e,t)=>Re({border:e,borderOpacity:t})}),(0,jo.jsx)(l.BoxShadowControl,{label:(0,So.__)("Button Box Shadow","kadence-blocks"),enable:void 0!==p[0].boxShadow&&void 0!==p[0].boxShadow[0]&&p[0].boxShadow[0],color:void 0!==p[0].boxShadow&&void 0!==p[0].boxShadow[1]?p[0].boxShadow[1]:"#000000",default:"#000000",opacity:void 0!==p[0].boxShadow&&void 0!==p[0].boxShadow[2]?p[0].boxShadow[2]:.4,hOffset:void 0!==p[0].boxShadow&&void 0!==p[0].boxShadow[3]?p[0].boxShadow[3]:2,vOffset:void 0!==p[0].boxShadow&&void 0!==p[0].boxShadow[4]?p[0].boxShadow[4]:2,blur:void 0!==p[0].boxShadow&&void 0!==p[0].boxShadow[5]?p[0].boxShadow[5]:3,spread:void 0!==p[0].boxShadow&&void 0!==p[0].boxShadow[6]?p[0].boxShadow[6]:0,inset:void 0!==p[0].boxShadow&&void 0!==p[0].boxShadow[7]&&p[0].boxShadow[7],onEnableChange:e=>{Ve(e,0)},onColorChange:e=>{Ve(e,1)},onOpacityChange:e=>{Ve(e,2)},onHOffsetChange:e=>{Ve(e,3)},onVOffsetChange:e=>{Ve(e,4)},onBlurChange:e=>{Ve(e,5)},onSpreadChange:e=>{Ve(e,6)},onInsetChange:e=>{Ve(e,7)}})]})),(0,jo.jsx)("div",{className:e.className,children:t},e.className)}}),(0,jo.jsx)("h2",{children:(0,So.__)("Border Settings","kadence-blocks")}),(0,jo.jsx)(l.MeasurementControls,{label:(0,So.__)("Border Width","kadence-blocks"),measurement:p[0].borderWidth,control:ee,onChange:e=>Re({borderWidth:e}),onControl:e=>te(e),min:0,max:20,step:1}),(0,jo.jsx)(Co.RangeControl,{label:(0,So.__)("Border Radius","kadence-blocks"),value:p[0].borderRadius,onChange:e=>{Re({borderRadius:e})},min:0,max:50}),(0,jo.jsx)(l.TypographyControls,{fontSize:w[0].size,onFontSize:e=>We({size:e}),fontSizeType:w[0].sizeType,onFontSizeType:e=>We({sizeType:e}),lineHeight:w[0].lineHeight,onLineHeight:e=>We({lineHeight:e}),lineHeightType:w[0].lineType,onLineHeightType:e=>We({lineType:e})}),(0,jo.jsxs)(l.KadencePanelBody,{title:(0,So.__)("Advanced Button Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-form-advanced-button-settings",children:[(0,jo.jsx)(l.TypographyControls,{fontGroup:"body",letterSpacing:w[0].letterSpacing,onLetterSpacing:e=>We({letterSpacing:e}),textTransform:w[0].textTransform,onTextTransform:e=>We({textTransform:e}),fontFamily:w[0].family,onFontFamily:e=>We({family:e}),onFontChange:e=>{We({family:e.value,google:e.google})},onFontArrayChange:e=>We(e),googleFont:w[0].google,onGoogleFont:e=>We({google:e}),loadGoogleFont:w[0].loadGoogle,onLoadGoogleFont:e=>We({loadGoogle:e}),fontVariant:w[0].variant,onFontVariant:e=>We({variant:e}),fontWeight:w[0].weight,onFontWeight:e=>We({weight:e}),fontStyle:w[0].style,onFontStyle:e=>We({style:e}),fontSubset:w[0].subset,onFontSubset:e=>We({subset:e})}),(0,jo.jsx)(Co.ButtonGroup,{className:"kt-size-type-options kt-row-size-type-options","aria-label":(0,So.__)("Margin Type","kadence-blocks"),children:(0,r.map)([{key:"px",name:"px"},{key:"em",name:"em"},{key:"%",name:"%"},{key:"vh",name:"vh"},{key:"rem",name:"rem"}],({name:e,key:t})=>(0,jo.jsx)(Co.Button,{className:"kt-size-btn",isSmall:!0,isPrimary:Mt===t,"aria-pressed":Mt===t,onClick:()=>Ee({unit:t}),children:e},t))}),(0,jo.jsx)("h2",{className:"kt-heading-size-title kt-secondary-color-size",children:(0,So.__)("Margin Unit","kadence-blocks")}),(0,jo.jsx)("h2",{className:"kt-heading-size-title",children:(0,So.__)("Margin","kadence-blocks")}),(0,jo.jsx)(Co.TabPanel,{className:"kt-size-tabs",activeClass:"active-tab",tabs:[{name:"desk",title:(0,jo.jsx)(Co.Dashicon,{icon:"desktop"}),className:"kt-desk-tab"},{name:"tablet",title:(0,jo.jsx)(Co.Dashicon,{icon:"tablet"}),className:"kt-tablet-tab"},{name:"mobile",title:(0,jo.jsx)(Co.Dashicon,{icon:"smartphone"}),className:"kt-mobile-tab"}],children:e=>{let t;return e.name&&(t="mobile"===e.name?(0,jo.jsx)(l.MeasurementControls,{label:(0,So.__)("Mobile Margin","kadence-blocks"),measurement:void 0!==j&&void 0!==j[0]&&j[0].mobile?j[0].mobile:["","","",""],control:void 0!==j&&void 0!==j[0]&&j[0].control?j[0].control:"linked",onChange:e=>Ee({mobile:e}),onControl:e=>Ee({control:e}),min:zt,max:Lt,step:Rt,allowEmpty:!0}):"tablet"===e.name?(0,jo.jsx)(l.MeasurementControls,{label:(0,So.__)("Tablet Margin","kadence-blocks"),measurement:void 0!==j&&void 0!==j[0]&&j[0].tablet?j[0].tablet:["","","",""],control:void 0!==j&&void 0!==j[0]&&j[0].control?j[0].control:"linked",onChange:e=>Ee({tablet:e}),onControl:e=>Ee({control:e}),min:zt,max:Lt,step:Rt,allowEmpty:!0}):(0,jo.jsx)(l.MeasurementControls,{label:(0,So.__)("Desktop Margin","kadence-blocks"),measurement:void 0!==j&&void 0!==j[0]&&j[0].desk?j[0].desk:["","","",""],control:void 0!==j&&void 0!==j[0]&&j[0].control?j[0].control:"linked",onChange:e=>Ee({desk:e}),onControl:e=>Ee({control:e}),min:zt,max:Lt,step:Rt,allowEmpty:!0})),(0,jo.jsx)("div",{className:e.className,children:t},e.className)}})]}),(0,jo.jsx)(Co.TextControl,{label:(0,So.__)("Submit aria description","kadence-blocks"),help:(0,So.__)("Provide more context for screen readers","kadence-blocks"),value:void 0!==H?H:"",onChange:e=>n({submitLabel:e})})]})]}),"advanced"===Pe&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsxs)(l.KadencePanelBody,{panelName:"kb-row-padding",children:[(0,jo.jsx)(l.ResponsiveMeasureRangeControl,{label:(0,So.__)("Margin","kadence-blocks"),tabletControl:ge,mobileControl:fe,value:void 0!==P?P:["","","",""],tabletValue:void 0!==F?F:["","","",""],mobileValue:void 0!==A?A:["","","",""],onChange:e=>{n({containerMargin:e})},onChangeTablet:e=>{n({tabletContainerMargin:e})},onChangeMobile:e=>{n({mobileContainerMargin:e})},min:Ct,max:jt,step:Ot,unit:N,units:["px","em","rem","%","vh"],onUnit:e=>n({containerMarginType:e}),onMouseOver:Ae.onMouseOver,onMouseOut:Ae.onMouseOut,allowAuto:!0}),(0,jo.jsx)(Co.ToggleControl,{label:(0,So.__)("Align field labels with submit alignment?","kadence-blocks"),checked:void 0!==z&&z,onChange:e=>n({hAlignFormFeilds:e})})]}),(0,jo.jsx)("div",{className:"kt-sidebar-settings-spacer"}),(0,jo.jsx)(l.KadenceBlockDefaults,{attributes:t,defaultAttributes:Mo.attributes,blockSlug:Mo.name,excludedAttrs:Ne})]})]}),(0,jo.jsxs)("div",{id:`animate-id${d}`,className:`kb-form-wrap aos-animate${x?" kb-form-align-"+x:""}${z?" kb-form-field-align":""}`,"data-aos":S||void 0,"data-aos-duration":C&&C[0]&&C[0].duration?C[0].duration:void 0,"data-aos-easing":C&&C[0]&&C[0].easing?C[0].easing:void 0,style:{marginLeft:void 0!==pt?(0,Ho.getSpacingOptionOutput)(pt,st):void 0,marginRight:void 0!==ct?(0,Ho.getSpacingOptionOutput)(ct,st):void 0,marginTop:void 0!==dt?(0,Ho.getSpacingOptionOutput)(dt,st):void 0,marginBottom:void 0!==ut?(0,Ho.getSpacingOptionOutput)(ut,st):void 0},children:[(0,jo.jsx)(l.SpacingVisualizer,{type:"outside",forceShow:Ae.isMouseOver,spacing:[(0,Ho.getSpacingOptionOutput)(dt,st),(0,Ho.getSpacingOptionOutput)(ct,st),(0,Ho.getSpacingOptionOutput)(ut,st),(0,Ho.getSpacingOptionOutput)(pt,st)]}),(0,jo.jsxs)("div",{id:`kb-form-${d}`,className:"kb-form",style:{marginRight:void 0!==c[0].gutter&&""!==c[0].gutter?"-"+c[0].gutter/2+"px":void 0,marginLeft:void 0!==c[0].gutter&&""!==c[0].gutter?"-"+c[0].gutter/2+"px":void 0},children:[Xt,(0,jo.jsx)("div",{className:"kadence-blocks-form-field kb-submit-field",style:{width:p[0].width[0]+"%",paddingRight:void 0!==c[0].gutter&&""!==c[0].gutter?c[0].gutter/2+"px":void 0,paddingLeft:void 0!==c[0].gutter&&""!==c[0].gutter?c[0].gutter/2+"px":void 0},tabIndex:"0",role:"button",onClick:()=>He,onFocus:()=>He,onKeyDown:()=>He,children:(0,jo.jsx)(Ro.RichText,{tagName:"div",placeholder:(0,So.__)("Submit","kadence-blocks"),onFocus:()=>He,value:p[0].label,onChange:e=>{Re({label:e})},allowedFormats:(0,Eo.applyFilters)("kadence.whitelist_richtext_formats",["kadence/insert-dynamic","core/bold","core/italic","core/strikethrough","toolset/inline-field"]),className:`kb-forms-submit kb-button-size-${p[0].size} kb-button-width-${p[0].widthType}`,style:{background:void 0!==Dt?Dt:void 0,color:void 0!==p[0].color?(0,Ho.KadenceColorOutput)(p[0].color):void 0,fontSize:(0,Ho.getFontSizeOptionOutput)(xt,_t),lineHeight:lt+rt,fontWeight:w[0].weight,fontStyle:w[0].style,letterSpacing:w[0].letterSpacing+"px",textTransform:w[0].textTransform?w[0].textTransform:void 0,fontFamily:w[0].family?w[0].family:"",borderRadius:void 0!==p[0].borderRadius?p[0].borderRadius+"px":void 0,borderColor:void 0===p[0].border?void 0:(0,Ho.KadenceColorOutput)(p[0].border,void 0!==p[0].borderOpacity?p[0].borderOpacity:1),width:void 0!==p[0].widthType&&"fixed"===p[0].widthType&&void 0!==p[0].fixedWidth&&void 0!==p[0].fixedWidth[0]?p[0].fixedWidth[0]+"px":void 0,paddingTop:"custom"===p[0].size&&""!==p[0].deskPadding[0]?p[0].deskPadding[0]+"px":void 0,paddingRight:"custom"===p[0].size&&""!==p[0].deskPadding[1]?p[0].deskPadding[1]+"px":void 0,paddingBottom:"custom"===p[0].size&&""!==p[0].deskPadding[2]?p[0].deskPadding[2]+"px":void 0,paddingLeft:"custom"===p[0].size&&""!==p[0].deskPadding[3]?p[0].deskPadding[3]+"px":void 0,borderTopWidth:p[0].borderWidth&&""!==p[0].borderWidth[0]?p[0].borderWidth[0]+"px":void 0,borderRightWidth:p[0].borderWidth&&""!==p[0].borderWidth[1]?p[0].borderWidth[1]+"px":void 0,borderBottomWidth:p[0].borderWidth&&""!==p[0].borderWidth[2]?p[0].borderWidth[2]+"px":void 0,borderLeftWidth:p[0].borderWidth&&""!==p[0].borderWidth[3]?p[0].borderWidth[3]+"px":void 0,boxShadow:void 0!==p[0].boxShadow&&void 0!==p[0].boxShadow[0]&&p[0].boxShadow[0]?(void 0!==p[0].boxShadow[7]&&p[0].boxShadow[7]?"inset ":"")+(void 0!==p[0].boxShadow[3]?p[0].boxShadow[3]:1)+"px "+(void 0!==p[0].boxShadow[4]?p[0].boxShadow[4]:1)+"px "+(void 0!==p[0].boxShadow[5]?p[0].boxShadow[5]:2)+"px "+(void 0!==p[0].boxShadow[6]?p[0].boxShadow[6]:0)+"px "+(0,Ho.KadenceColorOutput)(void 0!==p[0].boxShadow[1]?p[0].boxShadow[1]:"#000000",void 0!==p[0].boxShadow[2]?p[0].boxShadow[2]:1):void 0,marginTop:at+tt,marginRight:ot+tt,marginBottom:it+tt,marginLeft:nt+tt}})})]})]})]})},save:e=>{const{attributes:{uniqueID:t,fields:a,submit:o,style:n,postID:l,hAlign:s,recaptcha:d,recaptchaVersion:c,honeyPot:u,messages:p,submitLabel:b,hAlignFormFeilds:h}}=e,v=(0,jo.jsx)(Lo.Fragment,{children:(0,r.times)(a.length,e=>(e=>{if("hidden"===a[e].type)return(0,jo.jsx)("input",{type:"hidden",name:`kb_field_${e}`,value:a[e].default});const o=i()({"kadence-blocks-form-field":!0,[`kb-form-field-${e}`]:e,[`kb-field-desk-width-${a[e].width[0]}`]:a[e].width&&a[e].width[0],[`kb-field-tablet-width-${a[e].width[1]}`]:a[e].width&&a[e].width[1],[`kb-field-mobile-width-${a[e].width[2]}`]:a[e].width&&a[e].width[2],[`kb-input-size-${n[0].size}`]:n[0].size,"kb-accept-form-field":"accept"===a[e].type});let l,s,d;return a[e].label&&a[e].label.includes("{privacy_policy}")?(s=a[e].label.split("{")[0],d=a[e].label.split("}")[1],l=(0,jo.jsxs)(Lo.Fragment,{children:[s,(0,jo.jsx)("a",{href:void 0!==kadence_blocks_params.privacy_link&&""!==kadence_blocks_params.privacy_link?kadence_blocks_params.privacy_link:"#",target:"blank",rel:"noopener noreferrer",children:void 0!==kadence_blocks_params.privacy_title&&""!==kadence_blocks_params.privacy_title?kadence_blocks_params.privacy_title:"Privacy policy"}),d]})):l=a[e].label,(0,jo.jsxs)("div",{className:o,children:["accept"===a[e].type&&(0,jo.jsxs)(Lo.Fragment,{children:[a[e].showLink&&(0,jo.jsx)("a",{href:void 0!==a[e].default&&""!==a[e].default?a[e].default:"#",target:"_blank",rel:"noopener noreferrer",className:"kb-accept-link",children:void 0!==a[e].placeholder&&""!==a[e].placeholder?a[e].placeholder:"View Privacy Policy"}),void 0!==a[e].ariaLabel&&a[e].ariaLabel&&(0,jo.jsx)("span",{id:`kb_field_desc_${t}_${e}`,className:"screen-reader-text kb-field-desc-label",children:a[e].ariaLabel}),(0,jo.jsx)("input",{type:"checkbox",name:`kb_field_${e}`,id:`kb_field_${t}_${e}`,className:`kb-field kb-checkbox-style kb-${a[e].type}`,value:"accept",checked:!!a[e].inline,"data-type":a[e].type,"data-required":a[e].required?"yes":void 0,"data-required-message":a[e].requiredMessage?a[e].requiredMessage:void 0,"data-validation-message":a[e].errorMessage?a[e].errorMessage:void 0,"aria-describedby":void 0!==a[e].ariaLabel&&a[e].ariaLabel?`kb_field_desc_${t}_${e}`:void 0}),(0,jo.jsxs)("label",{htmlFor:`kb_field_${t}_${e}`,children:[a[e].label?l:"",a[e].required&&n[0].showRequired?(0,jo.jsx)("span",{className:"required",children:"*"}):""]})]}),"accept"!==a[e].type&&(0,jo.jsxs)(Lo.Fragment,{children:[a[e].showLabel&&(0,jo.jsxs)("label",{htmlFor:`kb_field_${t}_${e}`,children:[a[e].label?a[e].label:"",a[e].required&&n[0].showRequired?(0,jo.jsx)("span",{className:"required",children:"*"}):""]}),void 0!==a[e].ariaLabel&&a[e].ariaLabel&&(0,jo.jsx)("span",{id:`kb_field_desc_${t}_${e}`,className:"screen-reader-text",children:a[e].ariaLabel}),"textarea"===a[e].type&&(0,jo.jsx)("textarea",{name:`kb_field_${e}`,id:`kb_field_${t}_${e}`,"data-label":a[e].label,type:a[e].type,placeholder:a[e].placeholder,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-text-style-field kb-${a[e].type}-field kb-field-${e}`,rows:a[e].rows,"data-required":a[e].required?"yes":void 0,"data-required-message":a[e].requiredMessage?a[e].requiredMessage:void 0,"data-validation-message":a[e].errorMessage?a[e].errorMessage:void 0,"aria-describedby":void 0!==a[e].ariaLabel&&a[e].ariaLabel?`kb_field_desc_${t}_${e}`:void 0}),"select"===a[e].type&&(0,jo.jsxs)("select",{name:a[e].multiSelect?`kb_field_${e}[]`:`kb_field_${e}`,id:`kb_field_${t}_${e}`,multiple:!!a[e].multiSelect,"data-label":a[e].label,type:a[e].type,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-select-style-field kb-${a[e].type}-field kb-field-${e}`,"data-required":a[e].required?"yes":void 0,"data-required-message":a[e].requiredMessage?a[e].requiredMessage:void 0,"data-validation-message":a[e].errorMessage?a[e].errorMessage:void 0,"aria-describedby":void 0!==a[e].ariaLabel&&a[e].ariaLabel?`kb_field_desc_${t}_${e}`:void 0,children:[void 0!==a[e].placeholder&&""!==a[e].placeholder&&(0,jo.jsx)("option",{value:"",disabled:!0,selected:""===a[e].default,children:a[e].placeholder}),(0,r.times)(a[e].options.length,t=>(0,jo.jsx)("option",{selected:void 0!==a[e].options[t].value&&a[e].options[t].value===a[e].default,value:void 0!==a[e].options[t].value?a[e].options[t].value:"",children:void 0!==a[e].options[t].label?a[e].options[t].label:""},t))]}),"checkbox"===a[e].type&&(0,jo.jsx)("div",{"data-type":a[e].type,"data-label":a[e].label,id:`kb_field_${t}_${e}`,className:`kb-field kb-checkbox-style-field kb-${a[e].type}-field kb-field-${e} kb-radio-style-${a[e].inline?"inline":"normal"}`,"data-required":a[e].required?"yes":void 0,"data-required-message":a[e].requiredMessage?a[e].requiredMessage:void 0,"data-validation-message":a[e].errorMessage?a[e].errorMessage:void 0,children:(0,r.times)(a[e].options.length,t=>(0,jo.jsxs)("div",{"data-type":a[e].type,className:`kb-checkbox-item kb-checkbox-item-${t}`,children:[(0,jo.jsx)("input",{type:"checkbox",name:`kb_field_${e}[]`,id:`kb_field_${e}_${t}`,className:"kb-sub-field kb-checkbox-style",value:void 0!==a[e].options[t].value?a[e].options[t].value:"",checked:void 0!==a[e].options[t].value&&a[e].options[t].value===a[e].default}),(0,jo.jsx)("label",{htmlFor:`kb_field_${e}_${t}`,children:void 0!==a[e].options[t].label?a[e].options[t].label:""})]},t))}),"radio"===a[e].type&&(0,jo.jsx)("div",{"data-type":a[e].type,"data-label":a[e].label,id:`kb_field_${t}_${e}`,className:`kb-field kb-radio-style-field kb-${a[e].type}-field kb-field-${e} kb-radio-style-${a[e].inline?"inline":"normal"}`,"data-required":a[e].required?"yes":void 0,"data-required-message":a[e].requiredMessage?a[e].requiredMessage:void 0,"data-validation-message":a[e].errorMessage?a[e].errorMessage:void 0,children:(0,r.times)(a[e].options.length,t=>(0,jo.jsxs)("div",{"data-type":a[e].type,className:`kb-radio-item kb-radio-item-${t}`,children:[(0,jo.jsx)("input",{type:"radio",name:`kb_field_${e}[]`,id:`kb_field_${e}_${t}`,className:"kb-sub-field kb-radio-style",value:void 0!==a[e].options[t].value?a[e].options[t].value:"",checked:void 0!==a[e].options[t].value&&a[e].options[t].value===a[e].default}),(0,jo.jsx)("label",{htmlFor:`kb_field_${e}_${t}`,children:void 0!==a[e].options[t].label?a[e].options[t].label:""})]},t))}),"textarea"!==a[e].type&&"select"!==a[e].type&&"checkbox"!==a[e].type&&"radio"!==a[e].type&&(0,jo.jsx)("input",{name:`kb_field_${e}`,id:`kb_field_${t}_${e}`,"data-label":a[e].label,type:a[e].type,placeholder:a[e].placeholder,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-text-style-field kb-${a[e].type}-field kb-field-${e}`,autoComplete:""!==a[e].auto?a[e].auto:void 0,"data-required":a[e].required?"yes":void 0,"data-required-message":a[e].requiredMessage?a[e].requiredMessage:void 0,"data-validation-message":a[e].errorMessage?a[e].errorMessage:void 0,"aria-describedby":void 0!==a[e].ariaLabel&&a[e].ariaLabel?`kb_field_desc_${t}_${e}`:void 0})]}),void 0!==a[e].description&&""!==a[e].description&&(0,jo.jsx)("span",{className:"kb-field-help",children:a[e].description?a[e].description:""})]})})(e))}),g=i()({"kadence-blocks-form-field":!0,"kb-submit-field":!0,[`kb-field-desk-width-${o[0].width[0]}`]:o[0].width&&o[0].width[0],[`kb-field-tablet-width-${o[0].width[1]}`]:o[0].width&&o[0].width[1],[`kb-field-mobile-width-${o[0].width[2]}`]:o[0].width&&o[0].width[2]}),m=Ro.useBlockProps.save({className:`kadence-form-${t} kb-form-wrap${s?" kb-form-align-"+s:""}${h?" kb-form-field-align":""}`});return(0,jo.jsx)("div",{...m,children:(0,jo.jsxs)("form",{className:"kb-form",action:"",method:"post","data-error-message":p&&p[0]&&p[0].preError?p[0].preError:void 0,children:[v,(0,jo.jsx)("input",{type:"hidden",name:"_kb_form_id",value:t}),(0,jo.jsx)("input",{type:"hidden",name:"_kb_form_post_id",value:l}),(0,jo.jsx)("input",{type:"hidden",name:"action",value:"kb_process_ajax_submit"}),d&&(0,jo.jsxs)(Lo.Fragment,{children:["v2"===c&&(0,jo.jsx)("div",{className:"kadence-blocks-form-field google-recaptcha-checkout-wrap",children:(0,jo.jsx)("p",{id:"kb-container-g-recaptcha",className:"google-recaptcha-container",children:(0,jo.jsx)("span",{id:`kb_recaptcha_${t}`,className:`kadence-blocks-g-recaptcha-v2 g-recaptcha kb_recaptcha_${t}`,style:{display:"inline-block"}})})}),"v2"!==c&&(0,jo.jsx)("input",{type:"hidden",name:"recaptcha_response",className:`kb_recaptcha_response kb_recaptcha_${t}`})]}),u&&(0,jo.jsx)("input",{className:"kadence-blocks-field verify",type:"text",name:"_kb_verify_email",autoComplete:"off","aria-hidden":"true",placeholder:"Email",tabIndex:"-1"}),(0,jo.jsxs)("div",{className:g,children:[b&&(0,jo.jsx)("span",{id:`kb_submit_label_${t}`,className:"screen-reader-text kb-submit-desc-label",children:b}),(0,jo.jsx)(Ro.RichText.Content,{tagName:"button","aria-describedby":b?`kb_submit_label_${t}`:void 0,value:""!==o[0].label?o[0].label:"Submit",className:`kb-forms-submit button kb-button-size-${o[0].size?o[0].size:"standard"} kb-button-width-${o[0].widthType?o[0].widthType:"auto"}`})]})]})})},deprecated:[{attributes:{uniqueID:{type:"string",default:""},postID:{type:"number",default:""},hAlign:{type:"string",default:""},fields:{type:"array",default:[{label:"Name",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"text",required:!1,width:["100","",""],auto:"",errorMessage:"",requiredMessage:""},{label:"Email",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"email",required:!0,width:["100","",""],auto:"",errorMessage:"",requiredMessage:""},{label:"Message",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"textarea",required:!0,width:["100","",""],auto:"",errorMessage:"",requiredMessage:""}]},messages:{type:"array",default:[{success:"",error:"",required:"",invalid:"",recaptchaerror:"",preError:""}]},messageFont:{type:"array",default:[{colorSuccess:"",colorError:"",borderSuccess:"",borderError:"",backgroundSuccess:"",backgroundSuccessOpacity:1,backgroundError:"",backgroundErrorOpacity:1,borderWidth:["","","",""],borderRadius:"",size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:["","","",""],margin:["","","",""]}]},style:{type:"array",default:[{showRequired:!0,size:"standard",deskPadding:["","","",""],tabletPadding:["","","",""],mobilePadding:["","","",""],color:"",requiredColor:"",background:"",border:"",backgroundOpacity:1,borderOpacity:1,borderRadius:"",borderWidth:["","","",""],colorActive:"",backgroundActive:"",borderActive:"",backgroundActiveOpacity:1,borderActiveOpacity:1,gradient:["#999999",1,0,100,"linear",180,"center center"],gradientActive:["#777777",1,0,100,"linear",180,"center center"],backgroundType:"solid",backgroundActiveType:"solid",boxShadow:[!1,"#000000",.2,1,1,2,0,!1],boxShadowActive:[!1,"#000000",.4,2,2,3,0,!1],fontSize:["","",""],fontSizeType:"px",lineHeight:["","",""],lineType:"px",rowGap:"",rowGapType:"px",gutter:"",gutterType:"px"}]},labelFont:{type:"array",default:[{color:"",size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:["","","",""],margin:["","","",""]}]},submit:{type:"array",default:[{label:"",width:["100","",""],size:"standard",widthType:"auto",fixedWidth:["","",""],align:["","",""],deskPadding:["","","",""],tabletPadding:["","","",""],mobilePadding:["","","",""],color:"",background:"",border:"",backgroundOpacity:1,borderOpacity:1,borderRadius:"",borderWidth:["","","",""],colorHover:"",backgroundHover:"",borderHover:"",backgroundHoverOpacity:1,borderHoverOpacity:1,icon:"",iconSide:"right",iconHover:!1,cssClass:"",gradient:["#999999",1,0,100,"linear",180,"center center"],gradientHover:["#777777",1,0,100,"linear",180,"center center"],btnStyle:"basic",btnSize:"standard",backgroundType:"solid",backgroundHoverType:"solid",boxShadow:[!1,"#000000",.2,1,1,2,0,!1],boxShadowHover:[!1,"#000000",.4,2,2,3,0,!1]}]},submitMargin:{type:"array",default:[{desk:["","","",""],tablet:["","","",""],mobile:["","","",""],unit:"px",control:"linked"}]},submitFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},actions:{type:"array",default:["email"]},email:{type:"array",default:[{emailTo:"",subject:"",fromEmail:"",fromName:"",replyTo:"email_field",cc:"",bcc:"",html:!0}]},redirect:{type:"string",default:""},recaptcha:{type:"boolean",default:!1},recaptchaVersion:{type:"string",default:"v3"},honeyPot:{type:"boolean",default:!0},mailerlite:{type:"array",default:[{group:[],map:[]}]},fluentcrm:{type:"array",default:[{lists:[],tags:[],map:[],doubleOptin:!1}]},containerMarginType:{type:"string",default:"px"},containerMargin:{type:"array",default:["","","",""]},tabletContainerMargin:{type:"array",default:["","","",""]},mobileContainerMargin:{type:"array",default:["","","",""]}},save:({attributes:e})=>{const{uniqueID:t,fields:a,submit:o,style:n,postID:l,hAlign:s,recaptcha:d,recaptchaVersion:c,honeyPot:u,messages:p}=e,b=(0,jo.jsx)(Lo.Fragment,{children:(0,r.times)(a.length,e=>(e=>{if("hidden"===a[e].type)return(0,jo.jsx)("input",{type:"hidden",name:`kb_field_${e}`,value:a[e].default});const o=i()({"kadence-blocks-form-field":!0,[`kb-form-field-${e}`]:e,[`kb-field-desk-width-${a[e].width[0]}`]:a[e].width&&a[e].width[0],[`kb-field-tablet-width-${a[e].width[1]}`]:a[e].width&&a[e].width[1],[`kb-field-mobile-width-${a[e].width[2]}`]:a[e].width&&a[e].width[2],[`kb-input-size-${n[0].size}`]:n[0].size});let l,s,d;return a[e].label&&a[e].label.includes("{privacy_policy}")?(s=a[e].label.split("{")[0],d=a[e].label.split("}")[1],l=(0,jo.jsxs)(Lo.Fragment,{children:[s,(0,jo.jsx)("a",{href:void 0!==kadence_blocks_params.privacy_link&&""!==kadence_blocks_params.privacy_link?kadence_blocks_params.privacy_link:"#",target:"blank",rel:"noopener noreferrer",children:void 0!==kadence_blocks_params.privacy_title&&""!==kadence_blocks_params.privacy_title?kadence_blocks_params.privacy_title:"Privacy policy"}),d]})):l=a[e].label,(0,jo.jsxs)("div",{className:o,children:["accept"===a[e].type&&(0,jo.jsxs)(Lo.Fragment,{children:[a[e].showLink&&(0,jo.jsx)("a",{href:void 0!==a[e].default&&""!==a[e].default?a[e].default:"#",target:"_blank",rel:"noopener noreferrer",className:"kb-accept-link",children:void 0!==a[e].placeholder&&""!==a[e].placeholder?a[e].placeholder:"View Privacy Policy"}),(0,jo.jsx)("input",{type:"checkbox",name:`kb_field_${e}`,id:`kb_field_${t}_${e}`,className:`kb-field kb-checkbox-style kb-${a[e].type}`,value:"accept",checked:!!a[e].inline,"data-type":a[e].type,"data-required":a[e].required?"yes":void 0,"data-required-message":a[e].requiredMessage?a[e].requiredMessage:void 0,"data-validation-message":a[e].errorMessage?a[e].errorMessage:void 0}),(0,jo.jsxs)("label",{htmlFor:`kb_field_${t}_${e}`,children:[a[e].label?l:"",a[e].required&&n[0].showRequired?(0,jo.jsx)("span",{className:"required",children:"*"}):""]})]}),"accept"!==a[e].type&&(0,jo.jsxs)(Lo.Fragment,{children:[a[e].showLabel&&(0,jo.jsxs)("label",{htmlFor:`kb_field_${t}_${e}`,children:[a[e].label?a[e].label:"",a[e].required&&n[0].showRequired?(0,jo.jsx)("span",{className:"required",children:"*"}):""]}),"textarea"===a[e].type&&(0,jo.jsx)("textarea",{name:`kb_field_${e}`,id:`kb_field_${t}_${e}`,"data-label":a[e].label,type:a[e].type,placeholder:a[e].placeholder,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-text-style-field kb-${a[e].type}-field kb-field-${e}`,rows:a[e].rows,"data-required":a[e].required?"yes":void 0,"data-required-message":a[e].requiredMessage?a[e].requiredMessage:void 0,"data-validation-message":a[e].errorMessage?a[e].errorMessage:void 0}),"select"===a[e].type&&(0,jo.jsxs)("select",{name:a[e].multiSelect?`kb_field_${e}[]`:`kb_field_${e}`,id:`kb_field_${t}_${e}`,multiple:!!a[e].multiSelect,"data-label":a[e].label,type:a[e].type,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-select-style-field kb-${a[e].type}-field kb-field-${e}`,"data-required":a[e].required?"yes":void 0,"data-required-message":a[e].requiredMessage?a[e].requiredMessage:void 0,"data-validation-message":a[e].errorMessage?a[e].errorMessage:void 0,children:[void 0!==a[e].placeholder&&""!==a[e].placeholder&&(0,jo.jsx)("option",{value:"",disabled:!0,selected:""===a[e].default,children:a[e].placeholder}),(0,r.times)(a[e].options.length,t=>(0,jo.jsx)("option",{selected:void 0!==a[e].options[t].value&&a[e].options[t].value===a[e].default,value:void 0!==a[e].options[t].value?a[e].options[t].value:"",children:void 0!==a[e].options[t].label?a[e].options[t].label:""},t))]}),"checkbox"===a[e].type&&(0,jo.jsx)("div",{"data-type":a[e].type,"data-label":a[e].label,id:`kb_field_${t}_${e}`,className:`kb-field kb-checkbox-style-field kb-${a[e].type}-field kb-field-${e} kb-radio-style-${a[e].inline?"inline":"normal"}`,"data-required":a[e].required?"yes":void 0,"data-required-message":a[e].requiredMessage?a[e].requiredMessage:void 0,"data-validation-message":a[e].errorMessage?a[e].errorMessage:void 0,children:(0,r.times)(a[e].options.length,t=>(0,jo.jsxs)("div",{"data-type":a[e].type,className:`kb-checkbox-item kb-checkbox-item-${t}`,children:[(0,jo.jsx)("input",{type:"checkbox",name:`kb_field_${e}[]`,id:`kb_field_${e}_${t}`,className:"kb-sub-field kb-checkbox-style",value:void 0!==a[e].options[t].value?a[e].options[t].value:"",checked:void 0!==a[e].options[t].value&&a[e].options[t].value===a[e].default}),(0,jo.jsx)("label",{htmlFor:`kb_field_${e}_${t}`,children:void 0!==a[e].options[t].label?a[e].options[t].label:""})]},t))}),"radio"===a[e].type&&(0,jo.jsx)("div",{"data-type":a[e].type,"data-label":a[e].label,id:`kb_field_${t}_${e}`,className:`kb-field kb-radio-style-field kb-${a[e].type}-field kb-field-${e} kb-radio-style-${a[e].inline?"inline":"normal"}`,"data-required":a[e].required?"yes":void 0,"data-required-message":a[e].requiredMessage?a[e].requiredMessage:void 0,"data-validation-message":a[e].errorMessage?a[e].errorMessage:void 0,children:(0,r.times)(a[e].options.length,t=>(0,jo.jsxs)("div",{"data-type":a[e].type,className:`kb-radio-item kb-radio-item-${t}`,children:[(0,jo.jsx)("input",{type:"radio",name:`kb_field_${e}[]`,id:`kb_field_${e}_${t}`,className:"kb-sub-field kb-radio-style",value:void 0!==a[e].options[t].value?a[e].options[t].value:"",checked:void 0!==a[e].options[t].value&&a[e].options[t].value===a[e].default}),(0,jo.jsx)("label",{htmlFor:`kb_field_${e}_${t}`,children:void 0!==a[e].options[t].label?a[e].options[t].label:""})]},t))}),"textarea"!==a[e].type&&"select"!==a[e].type&&"checkbox"!==a[e].type&&"radio"!==a[e].type&&(0,jo.jsx)("input",{name:`kb_field_${e}`,id:`kb_field_${t}_${e}`,"data-label":a[e].label,type:a[e].type,placeholder:a[e].placeholder,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-text-style-field kb-${a[e].type}-field kb-field-${e}`,autoComplete:""!==a[e].auto?a[e].auto:void 0,"data-required":a[e].required?"yes":void 0,"data-required-message":a[e].requiredMessage?a[e].requiredMessage:void 0,"data-validation-message":a[e].errorMessage?a[e].errorMessage:void 0})]}),void 0!==a[e].description&&""!==a[e].description&&(0,jo.jsx)("span",{className:"kb-field-help",children:a[e].description?a[e].description:""})]})})(e))}),h=i()({"kadence-blocks-form-field":!0,"kb-submit-field":!0,[`kb-field-desk-width-${o[0].width[0]}`]:o[0].width&&o[0].width[0],[`kb-field-tablet-width-${o[0].width[1]}`]:o[0].width&&o[0].width[1],[`kb-field-mobile-width-${o[0].width[2]}`]:o[0].width&&o[0].width[2]});return(0,jo.jsx)("div",{className:`kadence-form-${t} kb-form-wrap${s?" kb-form-align-"+s:""}`,children:(0,jo.jsxs)("form",{className:"kb-form",action:"",method:"post","data-error-message":p&&p[0]&&p[0].preError?p[0].preError:void 0,children:[b,(0,jo.jsx)("input",{type:"hidden",name:"_kb_form_id",value:t}),(0,jo.jsx)("input",{type:"hidden",name:"_kb_form_post_id",value:l}),(0,jo.jsx)("input",{type:"hidden",name:"action",value:"kb_process_ajax_submit"}),d&&(0,jo.jsxs)(Lo.Fragment,{children:["v2"===c&&(0,jo.jsx)("div",{className:"kadence-blocks-form-field google-recaptcha-checkout-wrap",children:(0,jo.jsx)("p",{id:"kb-container-g-recaptcha",className:"google-recaptcha-container",children:(0,jo.jsx)("span",{id:`kb_recaptcha_${t}`,className:`kadence-blocks-g-recaptcha-v2 g-recaptcha kb_recaptcha_${t}`,style:{display:"inline-block"}})})}),"v2"!==c&&(0,jo.jsx)("input",{type:"hidden",name:"recaptcha_response",className:`kb_recaptcha_response kb_recaptcha_${t}`})]}),u&&(0,jo.jsx)("input",{className:"kadence-blocks-field verify",type:"text",name:"_kb_verify_email",autoComplete:"off",placeholder:"Email",tabIndex:"-1"}),(0,jo.jsx)("div",{className:h,children:(0,jo.jsx)(Ro.RichText.Content,{tagName:"button",value:""!==o[0].label?o[0].label:"Submit",className:`kb-forms-submit button kb-button-size-${o[0].size?o[0].size:"standard"} kb-button-width-${o[0].widthType?o[0].widthType:"auto"}`})})]})})}},{attributes:{uniqueID:{type:"string",default:""},postID:{type:"number",default:""},hAlign:{type:"string",default:""},fields:{type:"array",default:[{label:"Name",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"text",required:!1,width:["100","",""],auto:"",errorMessage:""},{label:"Email",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"email",required:!0,width:["100","",""],auto:"",errorMessage:""},{label:"Message",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"textarea",required:!0,width:["100","",""],auto:"",errorMessage:""}]},messages:{type:"array",default:[{success:"",error:"",required:"",invalid:"",recaptchaerror:""}]},messageFont:{type:"array",default:[{colorSuccess:"",colorError:"",borderSuccess:"",borderError:"",backgroundSuccess:"",backgroundSuccessOpacity:1,backgroundError:"",backgroundErrorOpacity:1,borderWidth:["","","",""],borderRadius:"",size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:["","","",""],margin:["","","",""]}]},style:{type:"array",default:[{showRequired:!0,size:"standard",deskPadding:["","","",""],tabletPadding:["","","",""],mobilePadding:["","","",""],color:"",requiredColor:"",background:"",border:"",backgroundOpacity:1,borderOpacity:1,borderRadius:"",borderWidth:["","","",""],colorActive:"",backgroundActive:"",borderActive:"",backgroundActiveOpacity:1,borderActiveOpacity:1,gradient:["#999999",1,0,100,"linear",180,"center center"],gradientActive:["#777777",1,0,100,"linear",180,"center center"],backgroundType:"solid",backgroundActiveType:"solid",boxShadow:[!1,"#000000",.2,1,1,2,0,!1],boxShadowActive:[!1,"#000000",.4,2,2,3,0,!1],fontSize:["","",""],fontSizeType:"px",lineHeight:["","",""],lineType:"px",rowGap:"",rowGapType:"px",gutter:"",gutterType:"px"}]},labelFont:{type:"array",default:[{color:"",size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:["","","",""],margin:["","","",""]}]},submit:{type:"array",default:[{label:"",width:["100","",""],size:"standard",widthType:"auto",fixedWidth:["","",""],align:["","",""],deskPadding:["","","",""],tabletPadding:["","","",""],mobilePadding:["","","",""],color:"",background:"",border:"",backgroundOpacity:1,borderOpacity:1,borderRadius:"",borderWidth:["","","",""],colorHover:"",backgroundHover:"",borderHover:"",backgroundHoverOpacity:1,borderHoverOpacity:1,icon:"",iconSide:"right",iconHover:!1,cssClass:"",gradient:["#999999",1,0,100,"linear",180,"center center"],gradientHover:["#777777",1,0,100,"linear",180,"center center"],btnStyle:"basic",btnSize:"standard",backgroundType:"solid",backgroundHoverType:"solid",boxShadow:[!1,"#000000",.2,1,1,2,0,!1],boxShadowHover:[!1,"#000000",.4,2,2,3,0,!1]}]},submitMargin:{type:"array",default:[{desk:["","","",""],tablet:["","","",""],mobile:["","","",""],unit:"px",control:"linked"}]},submitFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},actions:{type:"array",default:["email"]},email:{type:"array",default:[{emailTo:"",subject:"",fromEmail:"",fromName:"",replyTo:"email_field",cc:"",bcc:"",html:!0}]},redirect:{type:"string",default:""},recaptcha:{type:"boolean",default:!1},recaptchaVersion:{type:"string",default:"v3"},honeyPot:{type:"boolean",default:!0},mailerlite:{type:"array",default:[{group:[],map:[]}]},fluentcrm:{type:"array",default:[{lists:[],tags:[],map:[],doubleOptin:!1}]},containerMarginType:{type:"string",default:"px"},containerMargin:{type:"array",default:["","","",""]},tabletContainerMargin:{type:"array",default:["","","",""]},mobileContainerMargin:{type:"array",default:["","","",""]}},save:({attributes:e})=>{const{uniqueID:t,fields:a,submit:o,style:n,postID:l,hAlign:s,recaptcha:d,recaptchaVersion:c,honeyPot:u}=e,p=(0,jo.jsx)(Lo.Fragment,{children:(0,r.times)(a.length,e=>(e=>{const o=i()({"kadence-blocks-form-field":!0,[`kb-form-field-${e}`]:e,[`kb-field-desk-width-${a[e].width[0]}`]:a[e].width&&a[e].width[0],[`kb-field-tablet-width-${a[e].width[1]}`]:a[e].width&&a[e].width[1],[`kb-field-mobile-width-${a[e].width[2]}`]:a[e].width&&a[e].width[2],[`kb-input-size-${n[0].size}`]:n[0].size});let l,s,d;return a[e].label&&a[e].label.includes("{privacy_policy}")?(s=a[e].label.split("{")[0],d=a[e].label.split("}")[1],l=(0,jo.jsxs)(Lo.Fragment,{children:[s,(0,jo.jsx)("a",{href:void 0!==kadence_blocks_params.privacy_link&&""!==kadence_blocks_params.privacy_link?kadence_blocks_params.privacy_link:"#",target:"blank",rel:"noopener noreferrer",children:void 0!==kadence_blocks_params.privacy_title&&""!==kadence_blocks_params.privacy_title?kadence_blocks_params.privacy_title:"Privacy policy"}),d]})):l=a[e].label,(0,jo.jsxs)("div",{className:o,children:["accept"===a[e].type&&(0,jo.jsxs)(Lo.Fragment,{children:[a[e].showLink&&(0,jo.jsx)("a",{href:void 0!==a[e].default&&""!==a[e].default?a[e].default:"#",target:"_blank",rel:"noopener noreferrer",className:"kb-accept-link",children:void 0!==a[e].placeholder&&""!==a[e].placeholder?a[e].placeholder:"View Privacy Policy"}),(0,jo.jsx)("input",{type:"checkbox",name:`kb_field_${e}`,id:`kb_field_${t}_${e}`,className:`kb-field kb-checkbox-style kb-${a[e].type}`,value:"accept",checked:!!a[e].inline,"data-type":a[e].type,"data-required":a[e].required?"yes":void 0}),(0,jo.jsxs)("label",{htmlFor:`kb_field_${t}_${e}`,children:[a[e].label?l:"",a[e].required&&n[0].showRequired?(0,jo.jsx)("span",{className:"required",children:"*"}):""]})]}),"accept"!==a[e].type&&(0,jo.jsxs)(Lo.Fragment,{children:[a[e].showLabel&&(0,jo.jsxs)("label",{htmlFor:`kb_field_${t}_${e}`,children:[a[e].label?a[e].label:"",a[e].required&&n[0].showRequired?(0,jo.jsx)("span",{className:"required",children:"*"}):""]}),"textarea"===a[e].type&&(0,jo.jsx)("textarea",{name:`kb_field_${e}`,id:`kb_field_${t}_${e}`,"data-label":a[e].label,type:a[e].type,placeholder:a[e].placeholder,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-text-style-field kb-${a[e].type}-field kb-field-${e}`,rows:a[e].rows,"data-required":a[e].required?"yes":void 0}),"select"===a[e].type&&(0,jo.jsxs)("select",{name:a[e].multiSelect?`kb_field_${e}[]`:`kb_field_${e}`,id:`kb_field_${t}_${e}`,multiple:!!a[e].multiSelect,"data-label":a[e].label,type:a[e].type,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-select-style-field kb-${a[e].type}-field kb-field-${e}`,"data-required":a[e].required?"yes":void 0,children:[void 0!==a[e].placeholder&&""!==a[e].placeholder&&(0,jo.jsx)("option",{value:"",disabled:!0,selected:""===a[e].default,children:a[e].placeholder}),(0,r.times)(a[e].options.length,t=>(0,jo.jsx)("option",{selected:void 0!==a[e].options[t].value&&a[e].options[t].value===a[e].default,value:void 0!==a[e].options[t].value?a[e].options[t].value:"",children:void 0!==a[e].options[t].label?a[e].options[t].label:""},t))]}),"checkbox"===a[e].type&&(0,jo.jsx)("div",{"data-type":a[e].type,"data-label":a[e].label,id:`kb_field_${t}_${e}`,className:`kb-field kb-checkbox-style-field kb-${a[e].type}-field kb-field-${e}`,"data-required":a[e].required?"yes":void 0,children:(0,r.times)(a[e].options.length,t=>(0,jo.jsxs)("div",{"data-type":a[e].type,className:`kb-checkbox-item kb-checkbox-item-${t}`,children:[(0,jo.jsx)("input",{type:"checkbox",name:`kb_field_${e}[]`,id:`kb_field_${e}_${t}`,className:"kb-sub-field kb-checkbox-style",value:void 0!==a[e].options[t].value?a[e].options[t].value:"",checked:void 0!==a[e].options[t].value&&a[e].options[t].value===a[e].default}),(0,jo.jsx)("label",{htmlFor:`kb_field_${e}_${t}`,children:void 0!==a[e].options[t].label?a[e].options[t].label:""})]},t))}),"radio"===a[e].type&&(0,jo.jsx)("div",{"data-type":a[e].type,"data-label":a[e].label,id:`kb_field_${t}_${e}`,className:`kb-field kb-radio-style-field kb-${a[e].type}-field kb-field-${e}`,"data-required":a[e].required?"yes":void 0,children:(0,r.times)(a[e].options.length,t=>(0,jo.jsxs)("div",{"data-type":a[e].type,className:`kb-radio-item kb-radio-item-${t}`,children:[(0,jo.jsx)("input",{type:"radio",name:`kb_field_${e}[]`,id:`kb_field_${e}_${t}`,className:"kb-sub-field kb-radio-style",value:void 0!==a[e].options[t].value?a[e].options[t].value:"",checked:void 0!==a[e].options[t].value&&a[e].options[t].value===a[e].default}),(0,jo.jsx)("label",{htmlFor:`kb_field_${e}_${t}`,children:void 0!==a[e].options[t].label?a[e].options[t].label:""})]},t))}),"textarea"!==a[e].type&&"select"!==a[e].type&&"checkbox"!==a[e].type&&"radio"!==a[e].type&&(0,jo.jsx)("input",{name:`kb_field_${e}`,id:`kb_field_${t}_${e}`,"data-label":a[e].label,type:a[e].type,placeholder:a[e].placeholder,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-text-style-field kb-${a[e].type}-field kb-field-${e}`,autoComplete:""!==a[e].auto?a[e].auto:void 0,"data-required":a[e].required?"yes":void 0})]}),void 0!==a[e].description&&""!==a[e].description&&(0,jo.jsx)("span",{className:"kb-field-help",children:a[e].description?a[e].description:""})]})})(e))}),b=i()({"kadence-blocks-form-field":!0,"kb-submit-field":!0,[`kb-field-desk-width-${o[0].width[0]}`]:o[0].width&&o[0].width[0],[`kb-field-tablet-width-${o[0].width[1]}`]:o[0].width&&o[0].width[1],[`kb-field-mobile-width-${o[0].width[2]}`]:o[0].width&&o[0].width[2]});return(0,jo.jsx)("div",{className:`kadence-form-${t} kb-form-wrap${s?" kb-form-align-"+s:""}`,children:(0,jo.jsxs)("form",{className:"kb-form",action:"",method:"post",children:[p,(0,jo.jsx)("input",{type:"hidden",name:"_kb_form_id",value:t}),(0,jo.jsx)("input",{type:"hidden",name:"_kb_form_post_id",value:l}),(0,jo.jsx)("input",{type:"hidden",name:"action",value:"kb_process_ajax_submit"}),d&&(0,jo.jsxs)(Lo.Fragment,{children:["v2"===c&&(0,jo.jsx)("div",{className:"kadence-blocks-form-field google-recaptcha-checkout-wrap",children:(0,jo.jsx)("p",{id:"kb-container-g-recaptcha",className:"google-recaptcha-container",children:(0,jo.jsx)("span",{id:`kb_recaptcha_${t}`,className:`kadence-blocks-g-recaptcha-v2 g-recaptcha kb_recaptcha_${t}`,style:{display:"inline-block"}})})}),"v2"!==c&&(0,jo.jsx)("input",{type:"hidden",name:"recaptcha_response",className:`kb_recaptcha_response kb_recaptcha_${t}`})]}),u&&(0,jo.jsx)("input",{className:"kadence-blocks-field verify",type:"text",name:"_kb_verify_email",autoComplete:"off",placeholder:"Email",tabIndex:"-1"}),(0,jo.jsx)("div",{className:b,children:(0,jo.jsx)(Ro.RichText.Content,{tagName:"button",value:""!==o[0].label?o[0].label:"Submit",className:`kb-forms-submit button kb-button-size-${o[0].size?o[0].size:"standard"} kb-button-width-${o[0].widthType?o[0].widthType:"auto"}`})})]})})}},{attributes:{uniqueID:{type:"string",default:""},postID:{type:"number",default:""},hAlign:{type:"string",default:""},fields:{type:"array",default:[{label:"Name",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"text",required:!1,width:["100","",""],auto:""},{label:"Email",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"email",required:!0,width:["100","",""],auto:""},{label:"Message",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"textarea",required:!0,width:["100","",""],auto:""}]},messages:{type:"array",default:[{success:"",error:"",required:"",invalid:"",recaptchaerror:""}]},messageFont:{type:"array",default:[{colorSuccess:"",colorError:"",borderSuccess:"",borderError:"",backgroundSuccess:"",backgroundSuccessOpacity:1,backgroundError:"",backgroundErrorOpacity:1,borderWidth:["","","",""],borderRadius:"",size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:["","","",""],margin:["","","",""]}]},style:{type:"array",default:[{showRequired:!0,size:"standard",deskPadding:["","","",""],tabletPadding:["","","",""],mobilePadding:["","","",""],color:"",requiredColor:"",background:"",border:"",backgroundOpacity:1,borderOpacity:1,borderRadius:"",borderWidth:["","","",""],colorActive:"",backgroundActive:"",borderActive:"",backgroundActiveOpacity:1,borderActiveOpacity:1,gradient:["#999999",1,0,100,"linear",180,"center center"],gradientActive:["#777777",1,0,100,"linear",180,"center center"],backgroundType:"solid",backgroundActiveType:"solid",boxShadow:[!1,"#000000",.2,1,1,2,0,!1],boxShadowActive:[!1,"#000000",.4,2,2,3,0,!1],fontSize:["","",""],fontSizeType:"px",lineHeight:["","",""],lineType:"px",rowGap:"",rowGapType:"px",gutter:"",gutterType:"px"}]},labelFont:{type:"array",default:[{color:"",size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:["","","",""],margin:["","","",""]}]},submit:{type:"array",default:[{label:"",width:["100","",""],size:"standard",widthType:"auto",fixedWidth:["","",""],align:["","",""],deskPadding:["","","",""],tabletPadding:["","","",""],mobilePadding:["","","",""],color:"",background:"",border:"",backgroundOpacity:1,borderOpacity:1,borderRadius:"",borderWidth:["","","",""],colorHover:"",backgroundHover:"",borderHover:"",backgroundHoverOpacity:1,borderHoverOpacity:1,icon:"",iconSide:"right",iconHover:!1,cssClass:"",gradient:["#999999",1,0,100,"linear",180,"center center"],gradientHover:["#777777",1,0,100,"linear",180,"center center"],btnStyle:"basic",btnSize:"standard",backgroundType:"solid",backgroundHoverType:"solid",boxShadow:[!1,"#000000",.2,1,1,2,0,!1],boxShadowHover:[!1,"#000000",.4,2,2,3,0,!1]}]},submitMargin:{type:"array",default:[{desk:["","","",""],tablet:["","","",""],mobile:["","","",""],unit:"px",control:"linked"}]},submitFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},actions:{type:"array",default:["email"]},email:{type:"array",default:[{emailTo:"",subject:"",fromEmail:"",fromName:"",replyTo:"email_field",cc:"",bcc:"",html:!0}]},redirect:{type:"string",default:""},recaptcha:{type:"boolean",default:!1},recaptchaVersion:{type:"string",default:"v3"},honeyPot:{type:"boolean",default:!0}},save:({attributes:e})=>{const{uniqueID:t,fields:a,submit:o,style:n,postID:l,hAlign:s,recaptcha:d,recaptchaVersion:c,honeyPot:u}=e,p=(0,jo.jsx)(Lo.Fragment,{children:(0,r.times)(a.length,e=>(e=>{const o=i()({"kadence-blocks-form-field":!0,[`kb-form-field-${e}`]:e,[`kb-field-desk-width-${a[e].width[0]}`]:a[e].width&&a[e].width[0],[`kb-field-tablet-width-${a[e].width[1]}`]:a[e].width&&a[e].width[1],[`kb-field-mobile-width-${a[e].width[2]}`]:a[e].width&&a[e].width[2],[`kb-input-size-${n[0].size}`]:n[0].size});let l,s,d;return a[e].label&&a[e].label.includes("{privacy_policy}")?(s=a[e].label.split("{")[0],d=a[e].label.split("}")[1],l=(0,jo.jsxs)(Lo.Fragment,{children:[s,(0,jo.jsx)("a",{href:void 0!==kadence_blocks_params.privacy_link&&""!==kadence_blocks_params.privacy_link?kadence_blocks_params.privacy_link:"#",target:"blank",rel:"noopener noreferrer",children:void 0!==kadence_blocks_params.privacy_title&&""!==kadence_blocks_params.privacy_title?kadence_blocks_params.privacy_title:"Privacy policy"}),d]})):l=a[e].label,(0,jo.jsxs)("div",{className:o,children:["accept"===a[e].type&&(0,jo.jsxs)(Lo.Fragment,{children:[a[e].showLink&&(0,jo.jsx)("a",{href:void 0!==a[e].default&&""!==a[e].default?a[e].default:"#",target:"_blank",rel:"noopener noreferrer",className:"kb-accept-link",children:void 0!==a[e].placeholder&&""!==a[e].placeholder?a[e].placeholder:"View Privacy Policy"}),(0,jo.jsx)("input",{type:"checkbox",name:`kb_field_${e}`,id:`kb_field_${t}_${e}`,className:`kb-field kb-checkbox-style kb-${a[e].type}`,value:"accept",checked:!!a[e].inline,"data-type":a[e].type,"data-required":a[e].required?"yes":void 0}),(0,jo.jsxs)("label",{htmlFor:`kb_field_${t}_${e}`,children:[a[e].label?l:"",a[e].required&&n[0].showRequired?(0,jo.jsx)("span",{className:"required",children:"*"}):""]})]}),"accept"!==a[e].type&&(0,jo.jsxs)(Lo.Fragment,{children:[a[e].showLabel&&(0,jo.jsxs)("label",{htmlFor:`kb_field_${t}_${e}`,children:[a[e].label?a[e].label:"",a[e].required&&n[0].showRequired?(0,jo.jsx)("span",{className:"required",children:"*"}):""]}),"textarea"===a[e].type&&(0,jo.jsx)("textarea",{name:`kb_field_${e}`,id:`kb_field_${t}_${e}`,"data-label":a[e].label,type:a[e].type,placeholder:a[e].placeholder,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-text-style-field kb-${a[e].type}-field kb-field-${e}`,rows:a[e].rows,"data-required":a[e].required?"yes":void 0}),"select"===a[e].type&&(0,jo.jsx)("select",{name:a[e].multiSelect?`kb_field_${e}[]`:`kb_field_${e}`,id:`kb_field_${t}_${e}`,multiple:!!a[e].multiSelect,"data-label":a[e].label,type:a[e].type,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-select-style-field kb-${a[e].type}-field kb-field-${e}`,"data-required":a[e].required?"yes":void 0,children:(0,r.times)(a[e].options.length,t=>(0,jo.jsx)("option",{selected:void 0!==a[e].options[t].value&&a[e].options[t].value===a[e].default,value:void 0!==a[e].options[t].value?a[e].options[t].value:"",children:void 0!==a[e].options[t].label?a[e].options[t].label:""},t))}),"checkbox"===a[e].type&&(0,jo.jsx)("div",{"data-type":a[e].type,"data-label":a[e].label,id:`kb_field_${t}_${e}`,className:`kb-field kb-checkbox-style-field kb-${a[e].type}-field kb-field-${e}`,"data-required":a[e].required?"yes":void 0,children:(0,r.times)(a[e].options.length,t=>(0,jo.jsxs)("div",{"data-type":a[e].type,className:`kb-checkbox-item kb-checkbox-item-${t}`,children:[(0,jo.jsx)("input",{type:"checkbox",name:`kb_field_${e}[]`,id:`kb_field_${e}_${t}`,className:"kb-sub-field kb-checkbox-style",value:void 0!==a[e].options[t].value?a[e].options[t].value:"",checked:void 0!==a[e].options[t].value&&a[e].options[t].value===a[e].default}),(0,jo.jsx)("label",{htmlFor:`kb_field_${e}_${t}`,children:void 0!==a[e].options[t].label?a[e].options[t].label:""})]},t))}),"textarea"!==a[e].type&&"select"!==a[e].type&&"checkbox"!==a[e].type&&(0,jo.jsx)("input",{name:`kb_field_${e}`,id:`kb_field_${t}_${e}`,"data-label":a[e].label,type:a[e].type,placeholder:a[e].placeholder,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-text-style-field kb-${a[e].type}-field kb-field-${e}`,autoComplete:""!==a[e].auto?a[e].auto:void 0,"data-required":a[e].required?"yes":void 0})]}),void 0!==a[e].description&&""!==a[e].description&&(0,jo.jsx)("span",{className:"kb-field-help",children:a[e].description?a[e].description:""})]})})(e))}),b=i()({"kadence-blocks-form-field":!0,"kb-submit-field":!0,[`kb-field-desk-width-${o[0].width[0]}`]:o[0].width&&o[0].width[0],[`kb-field-tablet-width-${o[0].width[1]}`]:o[0].width&&o[0].width[1],[`kb-field-mobile-width-${o[0].width[2]}`]:o[0].width&&o[0].width[2]});return(0,jo.jsx)("div",{className:`kadence-form-${t} kb-form-wrap${s?" kb-form-align-"+s:""}`,children:(0,jo.jsxs)("form",{className:"kb-form",action:"",method:"post",children:[p,(0,jo.jsx)("input",{type:"hidden",name:"_kb_form_id",value:t}),(0,jo.jsx)("input",{type:"hidden",name:"_kb_form_post_id",value:l}),(0,jo.jsx)("input",{type:"hidden",name:"action",value:"kb_process_ajax_submit"}),d&&(0,jo.jsxs)(Lo.Fragment,{children:["v2"===c&&(0,jo.jsx)("div",{className:"kadence-blocks-form-field google-recaptcha-checkout-wrap",children:(0,jo.jsx)("p",{id:"kb-container-g-recaptcha",className:"google-recaptcha-container",children:(0,jo.jsx)("span",{id:`kb_recaptcha_${t}`,className:`kadence-blocks-g-recaptcha-v2 g-recaptcha kb_recaptcha_${t}`,style:{display:"inline-block"}})})}),"v2"!==c&&(0,jo.jsx)("input",{type:"hidden",name:"recaptcha_response",className:`kb_recaptcha_response kb_recaptcha_${t}`})]}),u&&(0,jo.jsx)("input",{className:"kadence-blocks-field verify",type:"text",name:"_kb_verify_email",autoComplete:"off",placeholder:"Email",tabIndex:"-1"}),(0,jo.jsx)("div",{className:b,children:(0,jo.jsx)(Ro.RichText.Content,{tagName:"button",value:""!==o[0].label?o[0].label:"Submit",className:`kb-forms-submit button kb-button-size-${o[0].size?o[0].size:"standard"} kb-button-width-${o[0].widthType?o[0].widthType:"auto"}`})})]})})}},{attributes:{uniqueID:{type:"string",default:""},postID:{type:"number",default:""},hAlign:{type:"string",default:""},fields:{type:"array",default:[{label:"Name",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"text",required:!1,width:["100","",""],auto:""},{label:"Email",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"email",required:!0,width:["100","",""],auto:""},{label:"Message",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"textarea",required:!0,width:["100","",""],auto:""}]},messages:{type:"array",default:[{success:"",error:"",required:"",invalid:""}]},messageFont:{type:"array",default:[{colorSuccess:"",colorError:"",borderSuccess:"",borderError:"",backgroundSuccess:"",backgroundSuccessOpacity:1,backgroundError:"",backgroundErrorOpacity:1,borderWidth:["","","",""],borderRadius:"",size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:["","","",""],margin:["","","",""]}]},style:{type:"array",default:[{showRequired:!0,size:"standard",deskPadding:["","","",""],tabletPadding:["","","",""],mobilePadding:["","","",""],color:"",requiredColor:"",background:"",border:"",backgroundOpacity:1,borderOpacity:1,borderRadius:"",borderWidth:["","","",""],colorActive:"",backgroundActive:"",borderActive:"",backgroundActiveOpacity:1,borderActiveOpacity:1,gradient:["#999999",1,0,100,"linear",180,"center center"],gradientActive:["#777777",1,0,100,"linear",180,"center center"],backgroundType:"solid",backgroundActiveType:"solid",boxShadow:[!1,"#000000",.2,1,1,2,0,!1],boxShadowActive:[!1,"#000000",.4,2,2,3,0,!1],fontSize:["","",""],fontSizeType:"px",lineHeight:["","",""],lineType:"px",rowGap:"",rowGapType:"px",gutter:"",gutterType:"px"}]},labelFont:{type:"array",default:[{color:"",size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:["","","",""],margin:["","","",""]}]},submit:{type:"array",default:[{label:"",width:["100","",""],size:"standard",widthType:"auto",fixedWidth:["","",""],align:["","",""],deskPadding:["","","",""],tabletPadding:["","","",""],mobilePadding:["","","",""],color:"",background:"",border:"",backgroundOpacity:1,borderOpacity:1,borderRadius:"",borderWidth:["","","",""],colorHover:"",backgroundHover:"",borderHover:"",backgroundHoverOpacity:1,borderHoverOpacity:1,icon:"",iconSide:"right",iconHover:!1,cssClass:"",gradient:["#999999",1,0,100,"linear",180,"center center"],gradientHover:["#777777",1,0,100,"linear",180,"center center"],btnStyle:"basic",btnSize:"standard",backgroundType:"solid",backgroundHoverType:"solid",boxShadow:[!1,"#000000",.2,1,1,2,0,!1],boxShadowHover:[!1,"#000000",.4,2,2,3,0,!1]}]},submitMargin:{type:"array",default:[{desk:["","","",""],tablet:["","","",""],mobile:["","","",""],unit:"px",control:"linked"}]},submitFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},actions:{type:"array",default:["email"]},email:{type:"array",default:[{emailTo:"",subject:"",fromEmail:"",fromName:"",replyTo:"email_field",cc:"",bcc:"",html:!0}]},redirect:{type:"string",default:""},recaptcha:{type:"boolean",default:!1},honeyPot:{type:"boolean",default:!0}},save:({attributes:e})=>{const{uniqueID:t,fields:a,submit:o,style:n,postID:l,hAlign:s,recaptcha:d,honeyPot:c}=e,u=(0,jo.jsx)(Lo.Fragment,{children:(0,r.times)(a.length,e=>(e=>{const o=i()({"kadence-blocks-form-field":!0,[`kb-form-field-${e}`]:e,[`kb-field-desk-width-${a[e].width[0]}`]:a[e].width&&a[e].width[0],[`kb-field-tablet-width-${a[e].width[1]}`]:a[e].width&&a[e].width[1],[`kb-field-mobile-width-${a[e].width[2]}`]:a[e].width&&a[e].width[2],[`kb-input-size-${n[0].size}`]:n[0].size});let l,s,d;return a[e].label&&a[e].label.includes("{privacy_policy}")?(s=a[e].label.split("{")[0],d=a[e].label.split("}")[1],l=(0,jo.jsxs)(Lo.Fragment,{children:[s,(0,jo.jsx)("a",{href:void 0!==kadence_blocks_params.privacy_link&&""!==kadence_blocks_params.privacy_link?kadence_blocks_params.privacy_link:"#",target:"blank",rel:"noopener noreferrer",children:void 0!==kadence_blocks_params.privacy_title&&""!==kadence_blocks_params.privacy_title?kadence_blocks_params.privacy_title:"Privacy policy"}),d]})):l=a[e].label,(0,jo.jsxs)("div",{className:o,children:["accept"===a[e].type&&(0,jo.jsxs)(Lo.Fragment,{children:[a[e].showLink&&(0,jo.jsx)("a",{href:void 0!==a[e].default&&""!==a[e].default?a[e].default:"#",target:"_blank",rel:"noopener noreferrer",className:"kb-accept-link",children:void 0!==a[e].placeholder&&""!==a[e].placeholder?a[e].placeholder:"View Privacy Policy"}),(0,jo.jsx)("input",{type:"checkbox",name:`kb_field_${e}`,id:`kb_field_${t}_${e}`,className:`kb-field kb-checkbox-style kb-${a[e].type}`,value:"accept",checked:!!a[e].inline,"data-type":a[e].type,"data-required":a[e].required?"yes":void 0}),(0,jo.jsxs)("label",{htmlFor:`kb_field_${t}_${e}`,children:[a[e].label?l:"",a[e].required&&n[0].showRequired?(0,jo.jsx)("span",{className:"required",children:"*"}):""]})]}),"accept"!==a[e].type&&(0,jo.jsxs)(Lo.Fragment,{children:[a[e].showLabel&&(0,jo.jsxs)("label",{htmlFor:`kb_field_${t}_${e}`,children:[a[e].label?a[e].label:"",a[e].required&&n[0].showRequired?(0,jo.jsx)("span",{className:"required",children:"*"}):""]}),"textarea"===a[e].type&&(0,jo.jsx)("textarea",{name:`kb_field_${e}`,id:`kb_field_${t}_${e}`,"data-label":a[e].label,type:a[e].type,placeholder:a[e].placeholder,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-text-style-field kb-${a[e].type}-field kb-field-${e}`,rows:a[e].rows,"data-required":a[e].required?"yes":void 0}),"select"===a[e].type&&(0,jo.jsx)("select",{name:a[e].multiSelect?`kb_field_${e}[]`:`kb_field_${e}`,id:`kb_field_${t}_${e}`,multiple:!!a[e].multiSelect,"data-label":a[e].label,type:a[e].type,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-select-style-field kb-${a[e].type}-field kb-field-${e}`,"data-required":a[e].required?"yes":void 0,children:(0,r.times)(a[e].options.length,t=>(0,jo.jsx)("option",{selected:void 0!==a[e].options[t].value&&a[e].options[t].value===a[e].default,value:void 0!==a[e].options[t].value?a[e].options[t].value:"",children:void 0!==a[e].options[t].label?a[e].options[t].label:""},t))}),"textarea"!==a[e].type&&"select"!==a[e].type&&(0,jo.jsx)("input",{name:`kb_field_${e}`,id:`kb_field_${t}_${e}`,"data-label":a[e].label,type:a[e].type,placeholder:a[e].placeholder,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-text-style-field kb-${a[e].type}-field kb-field-${e}`,autoComplete:""!==a[e].auto?a[e].auto:void 0,"data-required":a[e].required?"yes":void 0})]}),void 0!==a[e].description&&""!==a[e].description&&(0,jo.jsx)("span",{className:"kb-field-help",children:a[e].description?a[e].description:""})]})})(e))}),p=i()({"kadence-blocks-form-field":!0,"kb-submit-field":!0,[`kb-field-desk-width-${o[0].width[0]}`]:o[0].width&&o[0].width[0],[`kb-field-tablet-width-${o[0].width[1]}`]:o[0].width&&o[0].width[1],[`kb-field-mobile-width-${o[0].width[2]}`]:o[0].width&&o[0].width[2]});return(0,jo.jsx)("div",{className:`kadence-form-${t} kb-form-wrap${s?" kb-form-align-"+s:""}`,children:(0,jo.jsxs)("form",{className:"kb-form",action:"",method:"post",children:[u,(0,jo.jsx)("input",{type:"hidden",name:"_kb_form_id",value:t}),(0,jo.jsx)("input",{type:"hidden",name:"_kb_form_post_id",value:l}),(0,jo.jsx)("input",{type:"hidden",name:"action",value:"kb_process_ajax_submit"}),d&&(0,jo.jsx)("input",{type:"hidden",name:"recaptcha_response",className:`kb_recaptcha_response kb_recaptcha_${t}`}),c&&(0,jo.jsx)("input",{className:"kadence-blocks-field verify",type:"email",name:"_kb_verify_email",autoComplete:"off",placeholder:"Email",tabIndex:"-1"}),(0,jo.jsx)("div",{className:p,children:(0,jo.jsx)(Ro.RichText.Content,{tagName:"button",value:""!==o[0].label?o[0].label:"Submit",className:`kb-forms-submit button kb-button-size-${o[0].size?o[0].size:"standard"} kb-button-width-${o[0].widthType?o[0].widthType:"auto"}`})})]})})}},{attributes:{uniqueID:{type:"string",default:""},postID:{type:"number",default:""},hAlign:{type:"string",default:""},fields:{type:"array",default:[{label:"Name",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"text",required:!1,width:["100","",""],auto:""},{label:"Email",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"email",required:!0,width:["100","",""],auto:""},{label:"Message",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"textarea",required:!0,width:["100","",""],auto:""}]},messages:{type:"array",default:[{success:"",error:"",required:"",invalid:""}]},messageFont:{type:"array",default:[{colorSuccess:"",colorError:"",borderSuccess:"",borderError:"",backgroundSuccess:"",backgroundSuccessOpacity:1,backgroundError:"",backgroundErrorOpacity:1,borderWidth:["","","",""],borderRadius:"",size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:["","","",""],margin:["","","",""]}]},style:{type:"array",default:[{showRequired:!0,size:"standard",deskPadding:["","","",""],tabletPadding:["","","",""],mobilePadding:["","","",""],color:"",requiredColor:"",background:"",border:"",backgroundOpacity:1,borderOpacity:1,borderRadius:"",borderWidth:["","","",""],colorActive:"",backgroundActive:"",borderActive:"",backgroundActiveOpacity:1,borderActiveOpacity:1,gradient:["#999999",1,0,100,"linear",180,"center center"],gradientActive:["#777777",1,0,100,"linear",180,"center center"],backgroundType:"solid",backgroundActiveType:"solid",boxShadow:[!1,"#000000",.2,1,1,2,0,!1],boxShadowActive:[!1,"#000000",.4,2,2,3,0,!1],fontSize:["","",""],fontSizeType:"px",lineHeight:["","",""],lineType:"px",rowGap:"",rowGapType:"px",gutter:"",gutterType:"px"}]},labelFont:{type:"array",default:[{color:"",size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:["","","",""],margin:["","","",""]}]},submit:{type:"array",default:[{label:"",width:["100","",""],size:"standard",widthType:"auto",fixedWidth:["","",""],align:["","",""],deskPadding:["","","",""],tabletPadding:["","","",""],mobilePadding:["","","",""],color:"",background:"",border:"",backgroundOpacity:1,borderOpacity:1,borderRadius:"",borderWidth:["","","",""],colorHover:"",backgroundHover:"",borderHover:"",backgroundHoverOpacity:1,borderHoverOpacity:1,icon:"",iconSide:"right",iconHover:!1,cssClass:"",gradient:["#999999",1,0,100,"linear",180,"center center"],gradientHover:["#777777",1,0,100,"linear",180,"center center"],btnStyle:"basic",btnSize:"standard",backgroundType:"solid",backgroundHoverType:"solid",boxShadow:[!1,"#000000",.2,1,1,2,0,!1],boxShadowHover:[!1,"#000000",.4,2,2,3,0,!1]}]},submitFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},actions:{type:"array",default:["email"]},email:{type:"array",default:[{emailTo:"",subject:"",fromEmail:"",fromName:"",replyTo:"email_field",cc:"",bcc:"",html:!0}]},redirect:{type:"string",default:""},recaptcha:{type:"boolean",default:!1},honeyPot:{type:"boolean",default:!0}},save:({attributes:e})=>{const{uniqueID:t,fields:a,submit:o,style:n,postID:l,hAlign:s,recaptcha:d,honeyPot:c}=e,u=(0,jo.jsx)(Lo.Fragment,{children:(0,r.times)(a.length,e=>(e=>{const t=i()({"kadence-blocks-form-field":!0,[`kb-form-field-${e}`]:e,[`kb-field-desk-width-${a[e].width[0]}`]:a[e].width&&a[e].width[0],[`kb-field-tablet-width-${a[e].width[1]}`]:a[e].width&&a[e].width[1],[`kb-field-mobile-width-${a[e].width[2]}`]:a[e].width&&a[e].width[2],[`kb-input-size-${n[0].size}`]:n[0].size});let o,l,s;return a[e].label&&a[e].label.includes("{privacy_policy}")?(l=a[e].label.split("{")[0],s=a[e].label.split("}")[1],o=(0,jo.jsxs)(Lo.Fragment,{children:[l,(0,jo.jsx)("a",{href:void 0!==kadence_blocks_params.privacy_link&&""!==kadence_blocks_params.privacy_link?kadence_blocks_params.privacy_link:"#",target:"blank",rel:"noopener noreferrer",children:void 0!==kadence_blocks_params.privacy_title&&""!==kadence_blocks_params.privacy_title?kadence_blocks_params.privacy_title:"Privacy policy"}),s]})):o=a[e].label,(0,jo.jsxs)("div",{className:t,children:["accept"===a[e].type&&(0,jo.jsxs)(Lo.Fragment,{children:[a[e].showLink&&(0,jo.jsx)("a",{href:void 0!==a[e].default&&""!==a[e].default?a[e].default:"#",target:"_blank",rel:"noopener noreferrer",className:"kb-accept-link",children:void 0!==a[e].placeholder&&""!==a[e].placeholder?a[e].placeholder:"View Privacy Policy"}),(0,jo.jsx)("input",{type:"checkbox",name:`kb_field_${e}`,id:`kb_field_${e}`,className:`kb-field kb-checkbox-style kb-${a[e].type}`,value:"accept",checked:!!a[e].inline,"data-type":a[e].type,"data-required":a[e].required?"yes":void 0}),(0,jo.jsxs)("label",{htmlFor:`kb_field_${e}`,children:[a[e].label?o:"",a[e].required&&n[0].showRequired?(0,jo.jsx)("span",{className:"required",children:"*"}):""]})]}),"accept"!==a[e].type&&(0,jo.jsxs)(Lo.Fragment,{children:[a[e].showLabel&&(0,jo.jsxs)("label",{htmlFor:`kb_field_${e}`,children:[a[e].label?a[e].label:"",a[e].required&&n[0].showRequired?(0,jo.jsx)("span",{className:"required",children:"*"}):""]}),"textarea"===a[e].type&&(0,jo.jsx)("textarea",{name:`kb_field_${e}`,id:`kb_field_${e}`,"data-label":a[e].label,type:a[e].type,placeholder:a[e].placeholder,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-text-style-field kb-${a[e].type}-field kb-field-${e}`,rows:a[e].rows,"data-required":a[e].required?"yes":void 0}),"select"===a[e].type&&(0,jo.jsx)("select",{name:a[e].multiSelect?`kb_field_${e}[]`:`kb_field_${e}`,id:`kb_field_${e}`,multiple:!!a[e].multiSelect,"data-label":a[e].label,type:a[e].type,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-select-style-field kb-${a[e].type}-field kb-field-${e}`,"data-required":a[e].required?"yes":void 0,children:(0,r.times)(a[e].options.length,t=>(0,jo.jsx)("option",{selected:void 0!==a[e].options[t].value&&a[e].options[t].value===a[e].default,value:void 0!==a[e].options[t].value?a[e].options[t].value:"",children:void 0!==a[e].options[t].label?a[e].options[t].label:""},t))}),"textarea"!==a[e].type&&"select"!==a[e].type&&(0,jo.jsx)("input",{name:`kb_field_${e}`,id:`kb_field_${e}`,"data-label":a[e].label,type:a[e].type,placeholder:a[e].placeholder,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-text-style-field kb-${a[e].type}-field kb-field-${e}`,autoComplete:""!==a[e].auto?a[e].auto:void 0,"data-required":a[e].required?"yes":void 0})]}),void 0!==a[e].description&&""!==a[e].description&&(0,jo.jsx)("span",{className:"kb-field-help",children:a[e].description?a[e].description:""})]})})(e))}),p=i()({"kadence-blocks-form-field":!0,"kb-submit-field":!0,[`kb-field-desk-width-${o[0].width[0]}`]:o[0].width&&o[0].width[0],[`kb-field-tablet-width-${o[0].width[1]}`]:o[0].width&&o[0].width[1],[`kb-field-mobile-width-${o[0].width[2]}`]:o[0].width&&o[0].width[2]});return(0,jo.jsx)("div",{className:`kadence-form-${t} kb-form-wrap${s?" kb-form-align-"+s:""}`,children:(0,jo.jsxs)("form",{className:"kb-form",action:"",method:"post",children:[u,(0,jo.jsx)("input",{type:"hidden",name:"_kb_form_id",value:t}),(0,jo.jsx)("input",{type:"hidden",name:"_kb_form_post_id",value:l}),(0,jo.jsx)("input",{type:"hidden",name:"action",value:"kb_process_ajax_submit"}),d&&(0,jo.jsx)("input",{type:"hidden",name:"recaptcha_response",className:"kb_recaptcha_response"}),c&&(0,jo.jsx)("input",{className:"kadence-blocks-field verify",type:"email",name:"_kb_verify_email",autoComplete:"off",placeholder:"Email",tabIndex:"-1"}),(0,jo.jsx)("div",{className:p,children:(0,jo.jsx)(Ro.RichText.Content,{tagName:"button",value:""!==o[0].label?o[0].label:"Submit",className:`kb-forms-submit button kb-button-size-${o[0].size?o[0].size:"standard"} kb-button-width-${o[0].widthType?o[0].widthType:"auto"}`})})]})})}},{attributes:{uniqueID:{type:"string",default:""},postID:{type:"number",default:""},hAlign:{type:"string",default:""},fields:{type:"array",default:[{label:"Name",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"text",required:!1,width:["100","",""],auto:""},{label:"Email",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"email",required:!0,width:["100","",""],auto:""},{label:"Message",showLabel:!0,placeholder:"",default:"",description:"",rows:4,options:[{value:"",label:""}],multiSelect:!1,inline:!1,showLink:!1,min:"",max:"",type:"textarea",required:!0,width:["100","",""],auto:""}]},messages:{type:"array",default:[{success:"",error:"",required:"",invalid:""}]},messageFont:{type:"array",default:[{colorSuccess:"",colorError:"",borderSuccess:"",borderError:"",backgroundSuccess:"",backgroundSuccessOpacity:1,backgroundError:"",backgroundErrorOpacity:1,borderWidth:["","","",""],borderRadius:"",size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:["","","",""],margin:["","","",""]}]},style:{type:"array",default:[{showRequired:!0,size:"standard",deskPadding:["","","",""],tabletPadding:["","","",""],mobilePadding:["","","",""],color:"",requiredColor:"",background:"",border:"",backgroundOpacity:1,borderOpacity:1,borderRadius:"",borderWidth:["","","",""],colorActive:"",backgroundActive:"",borderActive:"",backgroundActiveOpacity:1,borderActiveOpacity:1,gradient:["#999999",1,0,100,"linear",180,"center center"],gradientActive:["#777777",1,0,100,"linear",180,"center center"],backgroundType:"solid",backgroundActiveType:"solid",boxShadow:[!1,"#000000",.2,1,1,2,0,!1],boxShadowActive:[!1,"#000000",.4,2,2,3,0,!1],fontSize:["","",""],fontSizeType:"px",lineHeight:["","",""],lineType:"px",rowGap:"",rowGapType:"px",gutter:"",gutterType:"px"}]},labelFont:{type:"array",default:[{color:"",size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:["","","",""],margin:["","","",""]}]},submit:{type:"array",default:[{label:"",width:["100","",""],size:"standard",widthType:"auto",fixedWidth:["","",""],align:["","",""],deskPadding:["","","",""],tabletPadding:["","","",""],mobilePadding:["","","",""],color:"",background:"",border:"",backgroundOpacity:1,borderOpacity:1,borderRadius:"",borderWidth:["","","",""],colorHover:"",backgroundHover:"",borderHover:"",backgroundHoverOpacity:1,borderHoverOpacity:1,icon:"",iconSide:"right",iconHover:!1,cssClass:"",gradient:["#999999",1,0,100,"linear",180,"center center"],gradientHover:["#777777",1,0,100,"linear",180,"center center"],btnStyle:"basic",btnSize:"standard",backgroundType:"solid",backgroundHoverType:"solid",boxShadow:[!1,"#000000",.2,1,1,2,0,!1],boxShadowHover:[!1,"#000000",.4,2,2,3,0,!1]}]},submitFont:{type:"array",default:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:"",textTransform:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},actions:{type:"array",default:["email"]},email:{type:"array",default:[{emailTo:"",subject:"",fromEmail:"",fromName:"",replyTo:"email_field",cc:"",bcc:"",html:!0}]},redirect:{type:"string",default:""},recaptcha:{type:"boolean",default:!1}},save:({attributes:e})=>{const{uniqueID:t,fields:a,submit:o,style:n,postID:l,hAlign:s,recaptcha:d}=e,c=(0,jo.jsx)(Lo.Fragment,{children:(0,r.times)(a.length,e=>(e=>{const t=i()({"kadence-blocks-form-field":!0,[`kb-form-field-${e}`]:e,[`kb-field-desk-width-${a[e].width[0]}`]:a[e].width&&a[e].width[0],[`kb-field-tablet-width-${a[e].width[1]}`]:a[e].width&&a[e].width[1],[`kb-field-mobile-width-${a[e].width[2]}`]:a[e].width&&a[e].width[2],[`kb-input-size-${n[0].size}`]:n[0].size});let o,l,s;return a[e].label&&a[e].label.includes("{privacy_policy}")?(l=a[e].label.split("{")[0],s=a[e].label.split("}")[1],o=(0,jo.jsxs)(Lo.Fragment,{children:[l,(0,jo.jsx)("a",{href:void 0!==kadence_blocks_params.privacy_link&&""!==kadence_blocks_params.privacy_link?kadence_blocks_params.privacy_link:"#",target:"blank",rel:"noopener noreferrer",children:void 0!==kadence_blocks_params.privacy_title&&""!==kadence_blocks_params.privacy_title?kadence_blocks_params.privacy_title:"Privacy policy"}),s]})):o=a[e].label,(0,jo.jsxs)("div",{className:t,children:["accept"===a[e].type&&(0,jo.jsxs)(Lo.Fragment,{children:[a[e].showLink&&(0,jo.jsx)("a",{href:void 0!==a[e].default&&""!==a[e].default?a[e].default:"#",target:"_blank",rel:"noopener noreferrer",className:"kb-accept-link",children:void 0!==a[e].placeholder&&""!==a[e].placeholder?a[e].placeholder:"View Privacy Policy"}),(0,jo.jsx)("input",{type:"checkbox",name:`kb_field_${e}`,id:`kb_field_${e}`,className:`kb-field kb-checkbox-style kb-${a[e].type}`,value:"accept",checked:!!a[e].inline,"data-type":a[e].type,"data-required":a[e].required?"yes":void 0}),(0,jo.jsxs)("label",{htmlFor:`kb_field_${e}`,children:[a[e].label?o:"",a[e].required&&n[0].showRequired?(0,jo.jsx)("span",{className:"required",children:"*"}):""]})]}),"accept"!==a[e].type&&(0,jo.jsxs)(Lo.Fragment,{children:[a[e].showLabel&&(0,jo.jsxs)("label",{htmlFor:`kb_field_${e}`,children:[a[e].label?a[e].label:"",a[e].required&&n[0].showRequired?(0,jo.jsx)("span",{className:"required",children:"*"}):""]}),"textarea"===a[e].type&&(0,jo.jsx)("textarea",{name:`kb_field_${e}`,id:`kb_field_${e}`,"data-label":a[e].label,type:a[e].type,placeholder:a[e].placeholder,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-text-style-field kb-${a[e].type}-field kb-field-${e}`,rows:a[e].rows,"data-required":a[e].required?"yes":void 0}),"select"===a[e].type&&(0,jo.jsx)("select",{name:a[e].multiSelect?`kb_field_${e}[]`:`kb_field_${e}`,id:`kb_field_${e}`,multiple:!!a[e].multiSelect,"data-label":a[e].label,type:a[e].type,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-select-style-field kb-${a[e].type}-field kb-field-${e}`,"data-required":a[e].required?"yes":void 0,children:(0,r.times)(a[e].options.length,t=>(0,jo.jsx)("option",{selected:void 0!==a[e].options[t].value&&a[e].options[t].value===a[e].default,value:void 0!==a[e].options[t].value?a[e].options[t].value:"",children:void 0!==a[e].options[t].label?a[e].options[t].label:""},t))}),"textarea"!==a[e].type&&"select"!==a[e].type&&(0,jo.jsx)("input",{name:`kb_field_${e}`,id:`kb_field_${e}`,"data-label":a[e].label,type:a[e].type,placeholder:a[e].placeholder,value:a[e].default,"data-type":a[e].type,className:`kb-field kb-text-style-field kb-${a[e].type}-field kb-field-${e}`,autoComplete:""!==a[e].auto?a[e].auto:void 0,"data-required":a[e].required?"yes":void 0})]}),void 0!==a[e].description&&""!==a[e].description&&(0,jo.jsx)("span",{className:"kb-field-help",children:a[e].description?a[e].description:""})]})})(e))}),u=i()({"kadence-blocks-form-field":!0,"kb-submit-field":!0,[`kb-field-desk-width-${o[0].width[0]}`]:o[0].width&&o[0].width[0],[`kb-field-tablet-width-${o[0].width[1]}`]:o[0].width&&o[0].width[1],[`kb-field-mobile-width-${o[0].width[2]}`]:o[0].width&&o[0].width[2]});return(0,jo.jsx)("div",{className:`kadence-form-${t} kb-form-wrap${s?" kb-form-align-"+s:""}`,children:(0,jo.jsxs)("form",{className:"kb-form",action:"",method:"post",children:[c,(0,jo.jsx)("input",{type:"hidden",name:"_kb_form_id",value:t}),(0,jo.jsx)("input",{type:"hidden",name:"_kb_form_post_id",value:l}),(0,jo.jsx)("input",{type:"hidden",name:"action",value:"kb_process_ajax_submit"}),d&&(0,jo.jsx)("input",{type:"hidden",name:"recaptcha_response",id:"kb_recaptcha_response"}),(0,jo.jsx)("input",{className:"kadence-blocks-field verify",type:"email",name:"_kb_verify_email",autoComplete:"off",placeholder:"Email",tabIndex:"-1"}),(0,jo.jsx)("div",{className:u,children:(0,jo.jsx)(Ro.RichText.Content,{tagName:"button",value:""!==o[0].label?o[0].label:"Submit",className:`kb-forms-submit button kb-button-size-${o[0].size?o[0].size:"standard"} kb-button-width-${o[0].widthType?o[0].widthType:"auto"}`})})]})})}}],example:{}})},6942:(e,t)=>{var a;!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=r(e,n(a)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var a in e)o.call(e,a)&&e[a]&&(t=r(t,a));return t}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(a=function(){return i}.apply(t,[]))||(e.exports=a)}()}},a={};function o(e){var i=a[e];if(void 0!==i)return i.exports;var n=a[e]={exports:{}};return t[e](n,n.exports,o),n.exports}o.m=t,e=[],o.O=(t,a,i,n)=>{if(!a){var r=1/0;for(c=0;c<e.length;c++){for(var[a,i,n]=e[c],l=!0,s=0;s<a.length;s++)(!1&n||r>=n)&&Object.keys(o.O).every(e=>o.O[e](a[s]))?a.splice(s--,1):(l=!1,n<r&&(r=n));if(l){e.splice(c--,1);var d=i();void 0!==d&&(t=d)}}return t}n=n||0;for(var c=e.length;c>0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[a,i,n]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={8020:0,6455:0};o.O.j=t=>0===e[t];var t=(t,a)=>{var i,n,[r,l,s]=a,d=0;if(r.some(t=>0!==e[t])){for(i in l)o.o(l,i)&&(o.m[i]=l[i]);if(s)var c=s(o)}for(t&&t(a);d<r.length;d++)n=r[d],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return o.O(c)},a=globalThis.webpackChunkkadence=globalThis.webpackChunkkadence||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var i=o.O(void 0,[6455],()=>o(5842));i=o.O(i),(this.kadence=this.kadence||{})["blocks-form"]=i})();
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генераци� �траницы: 0.01 |
proxy
|
phpinfo
|
�а�тройка