403Webshell
Server IP : 52.25.153.185  /  Your IP : 216.73.216.95
Web Server : Apache
System : Linux ip-172-26-6-158 5.10.0-45-cloud-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64
User : daemon ( 1)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/fluentform/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/fluentform/assets/js/form-submission.js
/*! For license information please see form-submission.js.LICENSE.txt */
(()=>{"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t(t,n){return function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,n)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t,n)||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.")}()}const n=Object.entries,r=Object.setPrototypeOf,o=Object.isFrozen,i=Object.getPrototypeOf,a=Object.getOwnPropertyDescriptor;let s=Object.freeze,l=Object.seal,c=Object.create,f="undefined"!=typeof Reflect&&Reflect,u=f.apply,d=f.construct;s||(s=function(e){return e}),l||(l=function(e){return e}),u||(u=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),d||(d=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const p=j(Array.prototype.forEach),m=j(Array.prototype.lastIndexOf),h=j(Array.prototype.pop),g=j(Array.prototype.push),v=j(Array.prototype.splice),y=Array.isArray,_=j(String.prototype.toLowerCase),b=j(String.prototype.toString),w=j(String.prototype.match),T=j(String.prototype.replace),S=j(String.prototype.indexOf),A=j(String.prototype.trim),k=j(Number.prototype.toString),E=j(Boolean.prototype.toString),N="undefined"==typeof BigInt?null:j(BigInt.prototype.toString),x="undefined"==typeof Symbol?null:j(Symbol.prototype.toString),C=j(Object.prototype.hasOwnProperty),O=j(Object.prototype.toString),I=j(RegExp.prototype.test),D=(R=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(R,t)});var R;function j(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return u(e,t,r)}}function L(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;if(r&&r(e,null),!y(t))return e;let i=t.length;for(;i--;){let r=t[i];if("string"==typeof r){const e=n(r);e!==r&&(o(t)||(t[i]=e),r=e)}e[r]=!0}return e}function M(e){for(let t=0;t<e.length;t++){C(e,t)||(e[t]=null)}return e}function P(e){const r=c(null);for(const i of n(e)){var o=t(i,2);const n=o[0],a=o[1];C(e,n)&&(y(a)?r[n]=M(a):a&&"object"==typeof a&&a.constructor===Object?r[n]=P(a):r[n]=a)}return r}function z(e,t){for(;null!==e;){const n=a(e,t);if(n){if(n.get)return j(n.get);if("function"==typeof n.value)return j(n.value)}e=i(e)}return function(){return null}}const F=s(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),H=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Q=s(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),B=s(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),W=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),G=s(["#text"]),V=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Y=s(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=s(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),J=l(/{{[\w\W]*|^[\w\W]*}}/g),X=l(/<%[\w\W]*|^[\w\W]*%>/g),$=l(/\${[\w\W]*/g),K=l(/^data-[\-\w.\u00B7-\uFFFF]+$/),ee=l(/^aria-[\-\w]+$/),te=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ne=l(/^(?:\w+script|data):/i),re=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oe=l(/^html$/i),ie=l(/^[a-z][.\w]*(-[.\w]+)+$/i),ae=l(/<[/\w!]/g),se=l(/<[/\w]/g),le=l(/<\/no(script|embed|frames)/i),ce=l(/\/>/i),fe=1,ue=3,de=7,pe=8,me=9,he=11,ge=function(){return"undefined"==typeof window?null:window},ve=function(e,t,n,r){return C(e,t)&&y(e[t])?L(r.base?P(r.base):{},e[t],r.transform):n};var ye=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge();const r=t=>e(t);if(r.version="3.4.13",r.removed=[],!t||!t.document||t.document.nodeType!==me||!t.Element)return r.isSupported=!1,r;let o=t.document;const i=o,a=i.currentScript;t.DocumentFragment;const f=t.HTMLTemplateElement,u=t.Node,d=t.Element,R=t.NodeFilter,j=t.NamedNodeMap;void 0===j&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const M=t.DOMParser,ye=t.trustedTypes,_e=d.prototype,be=z(_e,"cloneNode"),we=z(_e,"remove"),Te=z(_e,"nextSibling"),Se=z(_e,"childNodes"),Ae=z(_e,"parentNode"),ke=z(_e,"shadowRoot"),Ee=z(_e,"attributes"),Ne=u&&u.prototype?z(u.prototype,"nodeType"):null,xe=u&&u.prototype?z(u.prototype,"nodeName"):null,Ce=u&&u.prototype?z(u.prototype,"ownerDocument"):null;if("function"==typeof f){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let Oe,Ie,De="",Re=!1,je=0;const Le=function(){if(je>0)throw D('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Me=function(e){Le(),je++;try{return Oe.createHTML(e)}finally{je--}},Pe=function(){return Re||(Ie=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(ye,a),Re=!0),Ie},ze=o,Fe=ze.implementation,Ue=ze.createNodeIterator,He=ze.createDocumentFragment,Qe=ze.getElementsByTagName,Be=i.importNode;let We={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof n&&"function"==typeof Ae&&Fe&&void 0!==Fe.createHTMLDocument;const Ge=J,Ve=X,Ye=$,qe=K,Ze=ee,Je=ne,Xe=re,$e=ie;let Ke=te,et=null;const tt=L({},[...F,...U,...H,...B,...G]);let nt=null;const rt=L({},[...V,...Y,...q,...Z]);let ot=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),it=null,at=null;const st=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let lt=!0,ct=!0,ft=!1,ut=!0,dt=!1,pt=!0,mt=!1,ht=!1,gt=null,vt=null,yt=!1,_t=!1,bt=!1,wt=!1,Tt=!0,St=!1;const At="user-content-";let kt=!0,Et=!1,Nt={},xt=null;const Ct=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ot=null;const It=L({},["audio","video","img","source","image","track"]);let Dt=null;const Rt=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),jt="http://www.w3.org/1998/Math/MathML",Lt="http://www.w3.org/2000/svg",Mt="http://www.w3.org/1999/xhtml";let Pt=Mt,zt=!1,Ft=null;const Ut=L({},[jt,Lt,Mt],b),Ht=s(["mi","mo","mn","ms","mtext"]);let Qt=L({},Ht);const Bt=s(["annotation-xml"]);let Wt=L({},Bt);const Gt=L({},["title","style","font","a","script"]);let Vt=null;const Yt=["application/xhtml+xml","text/html"];let qt=null,Zt=null;const Jt=o.createElement("form"),Xt=function(e){return e instanceof RegExp||e instanceof Function},$t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Zt&&Zt===e)return;e&&"object"==typeof e||(e={}),e=P(e),Vt=-1===Yt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,qt="application/xhtml+xml"===Vt?b:_,et=ve(e,"ALLOWED_TAGS",tt,{transform:qt}),nt=ve(e,"ALLOWED_ATTR",rt,{transform:qt}),Ft=ve(e,"ALLOWED_NAMESPACES",Ut,{transform:b}),Dt=ve(e,"ADD_URI_SAFE_ATTR",Rt,{transform:qt,base:Rt}),Ot=ve(e,"ADD_DATA_URI_TAGS",It,{transform:qt,base:It}),xt=ve(e,"FORBID_CONTENTS",Ct,{transform:qt}),it=ve(e,"FORBID_TAGS",P({}),{transform:qt}),at=ve(e,"FORBID_ATTR",P({}),{transform:qt}),Nt=!!C(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?P(e.USE_PROFILES):e.USE_PROFILES),lt=!1!==e.ALLOW_ARIA_ATTR,ct=!1!==e.ALLOW_DATA_ATTR,ft=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ut=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,dt=e.SAFE_FOR_TEMPLATES||!1,pt=!1!==e.SAFE_FOR_XML,mt=e.WHOLE_DOCUMENT||!1,_t=e.RETURN_DOM||!1,bt=e.RETURN_DOM_FRAGMENT||!1,wt=e.RETURN_TRUSTED_TYPE||!1,yt=e.FORCE_BODY||!1,Tt=!1!==e.SANITIZE_DOM,St=e.SANITIZE_NAMED_PROPS||!1,kt=!1!==e.KEEP_CONTENT,Et=e.IN_PLACE||!1,Ke=function(e){try{return I(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:te,Pt="string"==typeof e.NAMESPACE?e.NAMESPACE:Mt,Qt=C(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?P(e.MATHML_TEXT_INTEGRATION_POINTS):L({},Ht),Wt=C(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?P(e.HTML_INTEGRATION_POINTS):L({},Bt);const t=C(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?P(e.CUSTOM_ELEMENT_HANDLING):c(null);if(ot=c(null),C(t,"tagNameCheck")&&Xt(t.tagNameCheck)&&(ot.tagNameCheck=t.tagNameCheck),C(t,"attributeNameCheck")&&Xt(t.attributeNameCheck)&&(ot.attributeNameCheck=t.attributeNameCheck),C(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(ot.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),l(ot),dt&&(ct=!1),bt&&(_t=!0),Nt&&(et=L({},G),nt=c(null),!0===Nt.html&&(L(et,F),L(nt,V)),!0===Nt.svg&&(L(et,U),L(nt,Y),L(nt,Z)),!0===Nt.svgFilters&&(L(et,H),L(nt,Y),L(nt,Z)),!0===Nt.mathMl&&(L(et,B),L(nt,q),L(nt,Z))),st.tagCheck=null,st.attributeCheck=null,C(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?st.tagCheck=e.ADD_TAGS:y(e.ADD_TAGS)&&(et===tt&&(et=P(et)),L(et,e.ADD_TAGS,qt))),C(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?st.attributeCheck=e.ADD_ATTR:y(e.ADD_ATTR)&&(nt===rt&&(nt=P(nt)),L(nt,e.ADD_ATTR,qt))),C(e,"ADD_URI_SAFE_ATTR")&&y(e.ADD_URI_SAFE_ATTR)&&L(Dt,e.ADD_URI_SAFE_ATTR,qt),C(e,"FORBID_CONTENTS")&&y(e.FORBID_CONTENTS)&&(xt===Ct&&(xt=P(xt)),L(xt,e.FORBID_CONTENTS,qt)),C(e,"ADD_FORBID_CONTENTS")&&y(e.ADD_FORBID_CONTENTS)&&(xt===Ct&&(xt=P(xt)),L(xt,e.ADD_FORBID_CONTENTS,qt)),kt&&(et["#text"]=!0),mt&&L(et,["html","head","body"]),et.table&&(L(et,["tbody"]),delete it.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=Oe;Oe=e.TRUSTED_TYPES_POLICY;try{De=Me("")}catch(e){throw Oe=t,e}}else null===e.TRUSTED_TYPES_POLICY?(Oe=void 0,De=""):(void 0===Oe&&(Oe=Pe()),Oe&&"string"==typeof De&&(De=Me("")));s&&s(e),Zt=e},Kt=L({},[...U,...H,...Q]),en=L({},[...B,...W]),tn=function(e){let t=Ae(e);t&&t.tagName||(t={namespaceURI:Pt,tagName:"template"});const n=_(e.tagName),r=_(t.tagName);return!!Ft[e.namespaceURI]&&(e.namespaceURI===Lt?function(e,t,n){return t.namespaceURI===Mt?"svg"===e:t.namespaceURI===jt?"svg"===e&&("annotation-xml"===n||Qt[n]):Boolean(Kt[e])}(n,t,r):e.namespaceURI===jt?function(e,t,n){return t.namespaceURI===Mt?"math"===e:t.namespaceURI===Lt?"math"===e&&Wt[n]:Boolean(en[e])}(n,t,r):e.namespaceURI===Mt?function(e,t,n){return!(t.namespaceURI===Lt&&!Wt[n])&&!(t.namespaceURI===jt&&!Qt[n])&&!en[e]&&(Gt[e]||!Kt[e])}(n,t,r):!("application/xhtml+xml"!==Vt||!Ft[e.namespaceURI]))},nn=function(e){g(r.removed,{element:e});try{Ae(e).removeChild(e)}catch(t){if(we(e),!Ae(e))throw D("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},rn=function(e){sn(e);const t=Se(e);if(t){const e=[];p(t,t=>{g(e,t)}),p(e,e=>{try{we(e)}catch(e){}})}const n=Ee(e);if(n)for(let t=n.length-1;t>=0;--t){const r=n[t],o=r&&r.name;if("string"==typeof o)try{e.removeAttribute(o)}catch(e){}}},on=function(e,t){try{g(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(_t||bt)try{nn(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},an=function(e){const t=Ee(e);if(t)for(let n=t.length-1;n>=0;--n){const r=t[n],o=r&&r.name;if("string"==typeof o&&!nt[qt(o)])try{e.removeAttribute(o)}catch(e){}}},sn=function(e){const t=[e];for(;t.length>0;){const e=t.pop();(Ne?Ne(e):e.nodeType)===fe&&an(e);const n=Se(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},ln=function(e){let t=null,n=null;if(yt)e="<remove></remove>"+e;else{const t=w(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Vt&&Pt===Mt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=Oe?Me(e):e;if(Pt===Mt)try{t=(new M).parseFromString(r,Vt)}catch(e){}if(!t||!t.documentElement){t=Fe.createDocument(Pt,"template",null);try{t.documentElement.innerHTML=zt?De:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Pt===Mt?Qe.call(t,mt?"html":"body")[0]:mt?t.documentElement:i},cn=function(e){const t=Ce?Ce(e):e.ownerDocument;return Ue.call(t||e,e,R.SHOW_ELEMENT|R.SHOW_COMMENT|R.SHOW_TEXT|R.SHOW_PROCESSING_INSTRUCTION|R.SHOW_CDATA_SECTION,null)},fn=function(e){return e=T(e,Ge," "),e=T(e,Ve," "),e=T(e,Ye," ")},un=function(e){var t;e.normalize();const n=Ce?Ce(e):e.ownerDocument,r=Ue.call(n||e,e,R.SHOW_TEXT|R.SHOW_COMMENT|R.SHOW_CDATA_SECTION|R.SHOW_PROCESSING_INSTRUCTION,null);let o=r.nextNode();for(;o;)o.data=fn(o.data),o=r.nextNode();const i=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");i&&p(i,e=>{pn(e.content)&&un(e.content)})},dn=function(e){const t=xe?xe(e):null;return"string"==typeof t&&("form"===qt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==Ee(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==Ne(e)||e.childNodes!==Se(e)))},pn=function(e){if(!Ne||"object"!=typeof e||null===e)return!1;try{return Ne(e)===he}catch(e){return!1}},mn=function(e){if(!Ne||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Ne(e)}catch(e){return!1}};function hn(e,t,n){0!==e.length&&p(e,e=>{e.call(r,t,n,Zt)})}const gn=function(e,t,n,r){return 0===e.length?t:t===n||t===r?P(t):t},vn=function(e,t){if(hn(We.beforeSanitizeElements,e,null),e!==t&&null===Ae(e))return Et&&sn(e),!0;if(dn(e))return nn(e),!0;const n=qt(xe?xe(e):e.nodeName);if(et=gn(We.uponSanitizeElement,et,tt,gt),hn(We.uponSanitizeElement,e,{tagName:n,allowedTags:et}),e!==t&&null===Ae(e))return Et&&sn(e),!0;if(function(e,t){return!!(pt&&e.hasChildNodes()&&!mn(e.firstElementChild)&&I(ae,e.textContent)&&I(ae,e.innerHTML))||!(!pt||e.namespaceURI!==Mt||"style"!==t||!mn(e.firstElementChild))||e.nodeType===de||!(!pt||e.nodeType!==pe||!I(se,e.data))}(e,n))return nn(e),!0;if(it[n]||!(st.tagCheck instanceof Function&&st.tagCheck(n))&&!et[n]){const r=function(e,t,n){if(!it[t]&&bn(t)){if(ot.tagNameCheck instanceof RegExp&&I(ot.tagNameCheck,t))return!1;if(ot.tagNameCheck instanceof Function&&ot.tagNameCheck(t))return!1}if(kt&&!xt[t]){const t=Ae(e),r=Se(e);if(r&&t)for(let o=r.length-1;o>=0;--o){const i=e===n?be(r[o],!0):r[o];t.insertBefore(i,Te(e))}}return nn(e),!0}(e,n,t);return!1===r&&hn(We.afterSanitizeElements,e,null),r}if((Ne?Ne(e):e.nodeType)===fe&&!tn(e))return nn(e),!0;if(("noscript"===n||"noembed"===n||"noframes"===n)&&I(le,e.innerHTML))return nn(e),!0;if(dt&&e.nodeType===ue){const t=fn(e.textContent);e.textContent!==t&&(g(r.removed,{element:e.cloneNode()}),e.textContent=t)}return hn(We.afterSanitizeElements,e,null),!1},yn=function(e,t,n){if(at[t])return!1;if(pt&&"patchsrc"===t)return!1;if(pt&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(Tt&&("id"===t||"name"===t)&&(n in o||n in Jt))return!1;const r=nt[t]||st.attributeCheck instanceof Function&&st.attributeCheck(t,e);if(ct&&I(qe,t));else if(lt&&I(Ze,t));else if(r)if(Dt[t]);else if(I(Ke,T(n,Xe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!Ot[e]){if(ft&&!I(Je,T(n,Xe,"")));else if(n)return!1}else;else if(!(bn(e)&&(ot.tagNameCheck instanceof RegExp&&I(ot.tagNameCheck,e)||ot.tagNameCheck instanceof Function&&ot.tagNameCheck(e))&&(ot.attributeNameCheck instanceof RegExp&&I(ot.attributeNameCheck,t)||ot.attributeNameCheck instanceof Function&&ot.attributeNameCheck(t,e))||"is"===t&&ot.allowCustomizedBuiltInElements&&(ot.tagNameCheck instanceof RegExp&&I(ot.tagNameCheck,n)||ot.tagNameCheck instanceof Function&&ot.tagNameCheck(n))))return!1;return!0},_n=L({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),bn=function(e){return!_n[_(e)]&&I($e,e)},wn=function(e,t,n,r){if(Oe&&"object"==typeof ye&&"function"==typeof ye.getAttributeType&&!n)switch(ye.getAttributeType(e,t)){case"TrustedHTML":return Me(r);case"TrustedScriptURL":return function(e){Le(),je++;try{return Oe.createScriptURL(e)}finally{je--}}(r)}return r},Tn=function(e,t,n,o){try{n?e.setAttributeNS(n,t,o):e.setAttribute(t,o),dn(e)?nn(e):h(r.removed)}catch(n){on(t,e)}},Sn=function(e){hn(We.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||dn(e))return;nt=gn(We.uponSanitizeAttribute,nt,rt,vt);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:nt,forceKeepAttr:void 0};let r=t.length;const o=qt(e.nodeName);for(;r--;){const i=t[r],a=i.name,s=i.namespaceURI,l=i.value,c=qt(a),f=l;let u="value"===a?f:A(f);n.attrName=c,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,hn(We.uponSanitizeAttribute,e,n),u=n.attrValue,!St||"id"!==c&&"name"!==c||0===S(u,At)||(on(a,e),u=At+u),pt&&I(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)?on(a,e):"attributename"===c&&w(u,"href")?on(a,e):n.forceKeepAttr||(n.keepAttr&&(ut||!I(ce,u))?(dt&&(u=fn(u)),yn(o,c,u)?(u=wn(o,c,s,u),u!==f&&Tn(e,a,s,u)):on(a,e)):on(a,e))}hn(We.afterSanitizeAttributes,e,null)},An=function(e){let t=null;const n=cn(e);for(hn(We.beforeSanitizeShadowDOM,e,null);t=n.nextNode();){hn(We.uponSanitizeShadowNode,t,null),vn(t,e),Sn(t),pn(t.content)&&An(t.content);if((Ne?Ne(t):t.nodeType)===fe){const e=ke(t);pn(e)&&(kn(e),An(e))}}hn(We.afterSanitizeShadowDOM,e,null)},kn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){An(e.shadow);continue}const n=e.node,r=(Ne?Ne(n):n.nodeType)===fe,o=Se(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){const e=xe?xe(n):null;if("string"==typeof e&&"template"===qt(e)){const e=n.content;pn(e)&&t.push({node:e,shadow:null})}}if(r){const e=ke(n);pn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,a=null,s=null;if(zt=!e,zt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!mn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return k(e);case"boolean":return E(e);case"bigint":return N?N(e):"0";case"symbol":return x?x(e):"Symbol()";case"undefined":default:return O(e);case"function":case"object":{if(null===e)return O(e);const t=e,n=z(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:O(e)}return O(e)}}}(e)))throw D("dirty is not a string, aborting");if(!r.isSupported)return e;ht?(et=gt,nt=vt):$t(t),(We.uponSanitizeElement.length>0||We.uponSanitizeAttribute.length>0)&&(et=P(et)),We.uponSanitizeAttribute.length>0&&(nt=P(nt)),r.removed=[];const l=Et&&"string"!=typeof e&&mn(e);if(l){!function(e){if(!pt)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=Ne?Ne(e):e.nodeType;if(n===de||n===pe&&I(se,e.data)){try{we(e)}catch(e){}continue}if(n===fe){const t=e,n=qt(xe?xe(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&"label"!==n&&"output"!==n&&t.removeAttribute("for")}catch(e){}}const r=Se(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}}(e);const t=xe?xe(e):e.nodeName;if("string"==typeof t){const n=qt(t);if(!et[n]||it[n])throw rn(e),D("root node is forbidden and cannot be sanitized in-place")}if(dn(e))throw rn(e),D("root node is clobbered and cannot be sanitized in-place");try{kn(e)}catch(t){throw rn(e),t}}else if(mn(e))n=ln("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===fe&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o),kn(o);else{if(!_t&&!dt&&!mt&&-1===e.indexOf("<"))return Oe&&wt?Me(e):e;if(n=ln(e),!n)return _t?null:wt?De:""}n&&yt&&nn(n.firstChild);const c=l?e:n;try{const e=cn(c);for(;a=e.nextNode();)vn(a,c),Sn(a),pn(a.content)&&An(a.content)}catch(t){throw l&&(rn(e),p(r.removed,e=>{e.element&&sn(e.element)})),t}if(l)return p(r.removed,e=>{e.element&&sn(e.element)}),dt&&un(e),e;if(_t){if(dt&&un(n),bt)for(s=He.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(nt.shadowroot||nt.shadowrootmode)&&(s=Be.call(i,s,!0)),s}let f=mt?n.outerHTML:n.innerHTML;return mt&&et["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&I(oe,n.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+f),dt&&(f=fn(f)),Oe&&wt?Me(f):f},r.setConfig=function(){$t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ht=!0,gt=et,vt=nt},r.clearConfig=function(){Zt=null,ht=!1,gt=null,vt=null,Oe=Ie,De=""},r.isValidAttribute=function(e,t,n){Zt||$t({});const r=qt(e),o=qt(t);return yn(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&C(We,e)&&g(We[e],t)},r.removeHook=function(e,t){if(C(We,e)){if(void 0!==t){const n=m(We[e],t);return-1===n?void 0:v(We[e],n,1)[0]}return h(We[e])}},r.removeHooks=function(e){C(We,e)&&(We[e]=[])},r.removeAllHooks=function(){We={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}(),_e=["_blank","_self","_parent","_top"],be=["_self","_top","_parent"],we=/^[A-Za-z][A-Za-z0-9_.-]*$/,Te=/^[A-Za-z][A-Za-z-]*$/,Se=["noopener"];function Ae(e){var t=e&&"string"==typeof e.tagName?e.tagName.toUpperCase():"";return"A"===t||"AREA"===t}var ke=ye(window);function Ee(e){return null==e?"":ke.sanitize(String(e))}function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach(function(t){Ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ce(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Oe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Oe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oe(e){return Oe="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},Oe(e)}ke.addHook("uponSanitizeAttribute",function(e,t){var n,r;"target"===t.attrName&&Ae(e)&&(n=t.attrValue,r=String(n||"").trim(),(_e.includes(r.toLowerCase())||we.test(r))&&(t.forceKeepAttr=!0))}),ke.addHook("afterSanitizeAttributes",function(e){if(Ae(e)&&"function"==typeof e.getAttribute&&"function"==typeof e.setAttribute){var t=e.getAttribute("target");if(t&&!be.includes(t.trim().toLowerCase())){var n=(e.getAttribute("rel")||"").split(/\s+/).filter(function(e){return Te.test(e)});Se.forEach(function(e){n.includes(e)||n.push(e)}),e.setAttribute("rel",n.join(" "))}}}),jQuery(document).ready(function(){window.fluentFormrecaptchaSuccessCallback=function(e){if(window.innerWidth<768&&/iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream){var t=jQuery(".g-recaptcha").filter(function(t,n){return grecaptcha.getResponse(t)==e});t.length&&jQuery("html, body").animate({scrollTop:t.first().offset().top-jQuery(window).height()/2},0)}},window.ffValidationError=function(){var e=function(){};return(e.prototype=Object.create(Error.prototype)).constructor=e,e}(),window.ff_helper={numericVal:function(e){if(e.hasClass("ff_numeric")){var t=JSON.parse(e.attr("data-formatter"));return currency(e.val(),t).value}return e.val()||0},formatCurrency:function(e,t){if(e.hasClass("ff_numeric")){var n=JSON.parse(e.attr("data-formatter"));return currency(t,n).format()}return t}},function(e,t){e||(e={}),e.stepAnimationDuration=parseInt(e.stepAnimationDuration);var n={},r={INPUT_SUFFIX:"__ff_other_input__",markerFor:function(e){return"__ff_other_"+e+"__"},isIncomplete:function(e,t,n,r){return!(!r||!Array.isArray(e))&&(-1!==e.indexOf(this.markerFor(t))&&""===String(null==n?"":n).trim())},check:function(e){var t=String(e.prop("type")||"").toLowerCase();if("checkbox"!==t&&"radio"!==t)return!1;var n=String(e.prop("name")||""),r=n.replace("[]",""),o=e.closest("form"),i=o.find('[name="'+r+this.INPUT_SUFFIX+'"]'),a=o.find('[name="'+n+'"]:checked').map(function(){return this.value}).get();return this.isIncomplete(a,r,i.val(),i.length>0)},inputFor:function(e){var t=String(e.prop("name")||"").replace("[]","");return e.closest("form").find('[name="'+t+this.INPUT_SUFFIX+'"]')},setAriaRequired:function(e,t){e&&e.length&&(t?e.attr("aria-required","true"):(e.removeAttr("aria-required"),this.clearAriaInvalid(e)))},clearAriaInvalid:function(e){e&&e.length&&e.removeAttr("aria-invalid").removeAttr("aria-describedby")},markAriaInvalid:function(e,t,n,r){if(t&&t.length){if(t.attr("aria-invalid","true"),n&&n.length){var o=n.attr("id");o||(o="ff_other_error_"+String(t.attr("name")||"field").replace(/[^A-Za-z0-9_-]/g,"_"),n.attr("id",o)),t.attr("aria-describedby",o)}r&&t.trigger("focus")}},message:function(e){var t=String(e.prop("type")||"").toLowerCase();if("checkbox"!==t&&"radio"!==t)return"";var n=String(e.prop("name")||"").replace("[]",""),r=e.closest("form").find('.ff-other-input-wrapper[data-field="'+n+'"]');return String(r.attr("data-required-message")||"").trim()}};window.fluentFormApp=function(o){var a=o.attr("data-form_instance");a=a?a.replace(/[^a-zA-Z0-9_-]/g,""):"";var s=window["fluent_form_"+a],l=s&&"object"===Oe(s)?s:null;if(!l)return console.log("No Fluent form JS vars found!"),!1;if(n[a])return n[a];e.ajaxUrl||(e.ajaxUrl=l.ajaxUrl||window.ajaxurl);var c,f,u,d,p,m,h,g,v,y,_,b,w,T,S,A,k,E,N,x,C,O,I,D,R,j,L,M=l.form_id_selector,P="."+a;return c=i,f={},u=!1,d=function(){return t("body").find("form"+P)},m=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"next";o.trigger("update_slider",{goBackToStep:e,animDuration:t,isScrollTop:n,actionType:r})},h=function(e){try{var n=e.find(":input").filter(function(e,n){return"repeater_container"===t(n).attr("data-type")?!t(n).closest(".ff-repeater-container").hasClass("ff_excluded")&&(t(this).closest(".has-conditions").hasClass("ff_excluded")&&t(this).val(""),!0):!t(n).closest(".has-conditions").hasClass("ff_excluded")});S(n);var r=n.serializeArray(),o=r.map(function(e){return e.name});n=n.filter(function(){return!t(this).closest(".ff-el-input--content").find("table").length});var i={};n.each(function(){var n=t(this).attr("name");o.includes(n)||(t(this).is(":checkbox")||t(this).is(":radio"))&&(i[n]||e.find('input[name="'+n+'"]:checked').length||(r.push({name:n,value:""}),i[n]=!0))});var a={data:t.param(t.map(r,function(e){return{name:e.name,value:e.value}})),action:"fluentform_submit",form_id:e.data("form_id")};if(t.each(e.find("[type=file]"),function(e,n){var r={},o=n.name+"[]";r[o]=[],t(n).closest("div").find(".ff-uploaded-list").find(".ff-upload-preview[data-src]").each(function(e,n){r[o][e]=t(this).data("src")}),t.each(r,function(e,n){if(n.length){var r={};r[e]=n,a.data+="&"+t.param(r)}})}),e.find(".ff_uploading").length){var s=t("<div/>",{class:"error text-danger"}),c=t("<span/>",{class:"error-clear",html:"&times;",click:function(e){return t(P+"_errors").html("")}}),u=t("<span/>",{class:"error-text",text:(h="file_upload_in_progress",y="File upload in progress. Please wait...",_="fluentform_submission_messages_"+l.id,window[_]&&window[_][h]?window[_][h]:y)});return t(P+"_errors").html(s.append(u,c)).show()}if(e.find(".ff-el-recaptcha.g-recaptcha").length){var d=e.find(".ff-el-recaptcha.g-recaptcha").data("g-recaptcha_widget_id");void 0!==d&&(a.data+="&"+t.param({"g-recaptcha-response":grecaptcha.getResponse(d)}))}if(e.find(".ff-el-hcaptcha.h-captcha").length){var p=e.find(".ff-el-hcaptcha.h-captcha").data("h-captcha_widget_id");void 0!==p&&(a.data+="&"+t.param({"h-captcha-response":hcaptcha.getResponse(p)}))}if(e.find(".ff-el-turnstile.cf-turnstile").length){var m=e.find(".ff-el-turnstile.cf-turnstile").data("cf-turnstile_widget_id");void 0!==m&&(a.data+="&"+t.param({"cf-turnstile-response":turnstile.getResponse(m)}))}t(P+"_success").remove(),t(P+"_errors").html(""),e.find(".error").html(""),e.parent().find(".ff-errors-in-stack").hide(),function(e,t){var n=[],r=f;return e.hasClass("ff_has_v3_recptcha")&&(r.ff_v3_recptcha=function(e,t){var n=jQuery.Deferred(),r=e.data("recptcha_key");return grecaptcha.execute(r,{action:"submit"}).then(function(e){t.data+="&"+jQuery.param({"g-recaptcha-response":e}),n.resolve()}),n.promise()}),jQuery.each(r,function(r,o){n.push(o(e,t))}),jQuery.when.apply(jQuery,n)}(e,a).then(function(){v(e),g(e,a)})}catch(t){if(!(t instanceof ffValidationError))throw t;e.trigger("fluentform_validation_failed",{form:e,response:t.messages}),k(t.messages),A(),w(350)}var h,y,_},g=function(n,r){var o,i,a,s=(o="t="+Date.now(),i=e.ajaxUrl,i+=(i.split("?")[1]?"&":"?")+o);u||(u=!0,t.post(s,r).then(function(r){if(!r||!r.data||!r.data.result)return n.trigger("fluentform_submission_failed",{form:n,response:r}),void k(r);if(a=r,r.data.append_data&&j(r.data.append_data),r.data.nextAction)n.trigger("fluentform_next_action_"+r.data.nextAction,{form:n,response:r});else{n.triggerHandler("fluentform_submission_success",{form:n,config:l,response:r}),jQuery(document.body).trigger("fluentform_submission_success",{form:n,config:l,response:r});var o=new CustomEvent("fluentform_submission_success",{detail:{form:n[0],config:l,response:r}});if(document.dispatchEvent(o),"redirectUrl"in r.data.result)return r.data.result.message&&(t("<div/>",{id:M+"_success",class:"ff-message-success",role:"status","aria-live":"polite"}).html(Ee(r.data.result.message)).insertAfter(n).focus(),n.find(".ff-el-is-error").removeClass("ff-el-is-error")),setTimeout(function(){y(n)},500),void(location.href=r.data.result.redirectUrl);var i=M+"_success",s="#"+i;t(s).length&&t(s).slideUp("fast"),t("<div/>",{id:i,class:"ff-message-success",role:"status","aria-live":"polite"}).html(Ee(r.data.result.message)).insertAfter(n).focus(),n.find(".ff-el-is-error").removeClass("ff-el-is-error"),"hide_form"==r.data.result.action?(n.hide().addClass("ff_force_hide"),n[0].reset()):(jQuery(document.body).trigger("fluentform_reset",[n,l]),n[0].reset());var c=t(s);c.length&&!T(c[0])&&t("html, body").animate({scrollTop:c.offset().top-(t("#wpadminbar")?32:0)-20},e.stepAnimationDuration)}}).fail(function(t){n.trigger("fluentform_submission_failed",{form:n,response:t});var r=new CustomEvent("fluentform_submission_failed",{detail:{form:n[0],response:t,config:l}});if(document.dispatchEvent(r),t&&t.responseJSON&&(t.responseJSON.data||t.responseJSON.errors)){if(a=t,t.responseJSON.append_data&&j(t.responseJSON.append_data),k(t.responseJSON.errors||t.responseJSON.data),w(350),n.find(".fluentform-step").length){var o=n.find(".error").not(":empty:first").closest(".fluentform-step");if(o.length){var i=o.index();m(i,e.stepAnimationDuration,!1)}}y(n)}else k(t.responseText)}).always(function(e){var t;if(u=!1,null===(t=a)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.result)||void 0===t||!t.hasOwnProperty("redirectUrl")){if(y(n),window.grecaptcha){var r=n.find(".ff-el-recaptcha.g-recaptcha").data("g-recaptcha_widget_id");void 0!==r&&grecaptcha.reset(r)}if(window.hcaptcha){var o=n.find(".ff-el-hcaptcha.h-captcha").data("h-captcha_widget_id");void 0!==o&&hcaptcha.reset(o)}if(window.turnstile){var i=n.find(".ff-el-turnstile.cf-turnstile").data("cf-turnstile_widget_id");void 0!==i&&turnstile.reset(i)}}}))},_=function(){"yes"!=o.attr("data-ff_reinit")&&(t(document).on("submit",P,function(e){e.preventDefault(),window.ff_sumitting_form||(window.ff_sumitting_form=!0,setTimeout(function(){window.ff_sumitting_form=!1},1500),h(t(this)))}),t(document).on("reset",P,function(n){!function(n){t(".ff-step-body",o).length&&m(0,e.stepAnimationDuration,!1),n.find(".ff-el-repeat .ff-t-cell").each(function(){t(this).find("input").not(":first").remove()}),n.find(".ff-el-repeat .ff-el-repeat-buttons-list").find(".ff-el-repeat-buttons").not(":first").remove();var r=n.find("input[type=checkbox],input[type=radio]");r.length&&r.each(function(e,n){(n=t(n)).prop("defaultChecked")?n.closest(".ff-el-form-check").addClass("ff_item_selected"):n.closest(".ff-el-form-check.ff_item_selected").removeClass("ff_item_selected")}),n.find("input[type=file]").closest("div").find(".ff-uploaded-list").html("").end().closest("div").find(".ff-upload-progress").addClass("ff-hidden").find(".ff-el-progress-bar").css("width","0%");var i=n.find('input[type="range"]');i.length&&i.each(function(e,n){(n=t(n)).val(n.data("calc_value")).change()}),t.each(l.conditionals,function(e,n){t.each(n.conditions,function(e,t){b(O(t.field))})})}(t(this))}),t(document).on("keydown",P+' input[type="radio"], '+P+' input[type="checkbox"]',function(e){if("Enter"===e.key)return e.preventDefault(),"radio"===t(this).attr("type")?t(this).prop("checked",!0):"checkbox"===t(this).attr("type")&&t(this).prop("checked",!t(this).prop("checked")),t(this).trigger("change"),e.stopPropagation(),!1}))},b=function(e){var n=e.prop("type");null!=n&&("checkbox"==n||"radio"==n?e.each(function(e,n){var r=t(this);r.prop("checked",r.prop("defaultChecked"))}):n.startsWith("select")?e.find("option").each(function(e,n){var r=t(this);r.prop("selected",r.prop("defaultSelected"))}):e.val(e.prop("defaultValue")),e.trigger("change"))},w=function(e){var n=l.settings.layout.errorMessagePlacement;if(n&&"stackToBottom"!=n){var r=o.find(".ff-el-is-error").first();r.length&&!T(r[0])&&t("html, body").delay(e).animate({scrollTop:r.offset().top-(t("#wpadminbar")?32:0)-20},e)}},T=function(e){if(!e)return!0;var n=e.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=t(window).height()&&n.right<=t(window).width()},A=function(){var e=!1;o.find('.ff-other-option input[type="checkbox"], .ff-other-option input[type="radio"]').each(function(){var n=t(this),i=r.inputFor(n);if(r.check(n)){String(n.prop("name")||"").replace("[]","");var a=o.find('.error-text[data-name="'+n.prop("name")+'"]').closest(".error");a.length||(a=n.closest(".ff-el-group").find(".error").first()),a.length||(a=o.parent().find(".ff-errors-in-stack .error").first()),r.markAriaInvalid(t,i,a,!e),e=!0}else r.clearAriaInvalid(i)})},k=function(e){if(o.parent().find(".ff-errors-in-stack").empty(),e)if("string"!=typeof e){var n=l.settings.layout.errorMessagePlacement;if(!n||"stackToBottom"==n)return E(e),!1;o.find(".error").empty(),o.find(".ff-el-group").removeClass("ff-el-is-error"),t.each(e,function(e,n){"string"==typeof n&&(n=[n]),t.each(n,function(t,n){N(e,n)})})}else E({error:[e]})},E=function(e,n){var r=d(),o=r.parent().find(".ff-errors-in-stack");e&&(t.isEmptyObject(e)||(t.each(e,function(e,n){"string"==typeof n&&(n=[n]),t.each(n,function(n,i){var a=t("<div/>",{class:"error text-danger"}),s=t("<span/>",{class:"error-clear",html:"&times;"}),l=t("<span/>",{class:"error-text","data-name":O(e).attr("name"),html:i});a.attr("role","alert"),a.append(l,s),t(document.body).trigger("fluentform_error_in_stack",{form:r,element:O(e),message:l}),o.append(a).show()});var i=O(e);if(i){var a=i.attr("name");i.attr("aria-invalid","true");var s=t("[name='"+a+"']",r).first();s&&s.closest(".ff-el-group").addClass("ff-el-is-error")}}),(!n||!1!==n.scroll)&&!T(o[0])&&t("html, body").animate({scrollTop:o.offset().top-100},350),o.on("click",".error-clear",function(){t(this).closest("div").remove(),o.hide()}).on("click",".error-text",function(){var e=t("[name='".concat(t(this).data("name"),"']"),r).first();t("html, body").animate({scrollTop:e.offset()&&e.offset().top-100},350,function(t){return e.focus()})})))},N=function(e,n){var r,i;(r=O(e)).length?(r.attr("aria-invalid","true"),(i=t("<div/>",{class:"error text-danger"})).attr("role","alert"),r.closest(".ff-el-group").addClass("ff-el-is-error"),r.closest(".ff-el-input--content").length?(r.closest(".ff-el-input--content").find("div.error").remove(),t(document.body).trigger("fluentform_error_below_element",{form:o,element:r,message:n}),r.closest(".ff-el-input--content").append(i.html(Ee(n)))):(r.find("div.error").remove(),r.append(i.text(n)))):E([n])},x=function(){o.find(".ff-el-group,.ff_repeater_table, .ff_repeater_container").on("change","input,select,textarea",function(){if(!window.ff_disable_error_clear){t(this).attr("aria-invalid","false");var e=l.settings.layout.errorMessagePlacement;if(e||"stackToBottom"!=e){var n=t(this).closest(".ff-el-group");n.hasClass("ff-el-is-error")&&n.removeClass("ff-el-is-error").find(".error.text-danger").remove()}}})},C=function(){var e=["min_selection","max_selection"];o.on("change","input, select",function(){var n=t(this),r=String(n.prop("name")||"");if(r){var i=r.replace("[]","").replace(/__ff_other_input__$/,""),a=(l.rules||{})[i];if(a&&e.some(function(e){return a[e]&&a[e].value})){var s=n;if(r!==i&&r!==i+"[]"){var f=o.find('[name="'+i+'[]"]');s=f.length?f.first():n}var u=s.closest(".ff-el-group"),d=o.parent().find(".ff-errors-in-stack");window.ff_disable_error_clear||(u.removeClass("ff-el-is-error").find(".error.text-danger").remove(),u.find('[aria-invalid="true"]').attr("aria-invalid","false"),d.find('.error-text[data-name="'+s.prop("name")+'"]').closest(".error.text-danger").remove(),d.children().length||d.hide());var p=null,m=c();if(t.each(e,function(e,t){var n=a[t];!p&&n&&n.value&&!m[t](s,n)&&(p=n)}),p){var h=((l.settings||{}).layout||{}).errorMessagePlacement;if(h&&"stackToBottom"!=h)N(i,p.message);else{var g={};g[i]=[p.message],E(g,{scroll:!1})}}}}})},O=function(e){var n=d(),r=t("[data-name='"+e+"']",n);return(r=r.length?r:t("[name='"+e+"']",n)).length?r:t("[name='"+e+"[]']",n)},I=function(){o.find(".ff-el-recaptcha.g-recaptcha").length&&window.grecaptcha&&"function"==typeof window.grecaptcha.ready&&window.grecaptcha.ready(function(){o.find(".ff-el-recaptcha.g-recaptcha").each(function(){D("g-recaptcha",t(this),grecaptcha.render)})}),o.find(".ff-el-turnstile.cf-turnstile").length&&window.turnstile&&"function"==typeof window.turnstile.ready&&window.turnstile.ready(function(){o.find(".ff-el-turnstile.cf-turnstile").each(function(){D("cf-turnstile",t(this),turnstile.render)})}),o.find(".ff-el-hcaptcha.h-captcha").length&&window.hcaptcha&&o.find(".ff-el-hcaptcha.h-captcha").each(function(){D("h-captcha",t(this),hcaptcha.render)})},D=function(e,t,n){var r=t.data("sitekey"),o=t.attr("id"),i="data-".concat(e,"_widget_id");try{var a=t.attr(i);if("g-recaptcha"===e||"h-captcha"===e){if(a&&t.find("iframe").length>0)return}else if("cf-turnstile"===e){var s=t.find('input[name="cf-turnstile-response"]');if(s.length&&s.val())return;var l=t.attr(i);l&&window.turnstile&&turnstile.remove(l)}var c=o;"cf-turnstile"===e&&(c="#"+o),a=n(c,{sitekey:r}),t.attr(i,a)}catch(t){console.error("Error rendering ".concat(e,":"),t)}},R=function(e,t,n){var r="data-".concat(e,"_widget_id"),o=t.attr(r);if(o)try{return n(o),!0}catch(n){console.error("Error resetting ".concat(e,":"),n),t.removeAttr(r).removeData("".concat(e,"-rendered"))}return!1},j=function(e){jQuery.each(e,function(e,n){if(n){var r=o.find("input[name="+e+"]");r.length?r.attr("value",n):t("<input>").attr({type:"hidden",name:e,value:n}).appendTo(o)}})},L={initFormHandlers:function(){_(),p(),x(),C(),o.removeClass("ff-form-loading").addClass("ff-form-loaded"),o.on("show_element_error",function(e,t){N(t.element,t.message)})},registerFormSubmissionHandler:_,maybeInlineForm:p=function(){o.hasClass("ff-form-inline")&&o.find("button.ff-btn-submit").css("height","50px")},reinitExtras:function(){o.find(".ff-el-recaptcha.g-recaptcha").length&&window.grecaptcha&&"function"==typeof window.grecaptcha.ready&&window.grecaptcha.ready(function(){o.find(".ff-el-recaptcha.g-recaptcha").each(function(){var e=t(this);R("g-recaptcha",e,grecaptcha.reset)||D("g-recaptcha",e,grecaptcha.render)})}),o.find(".ff-el-turnstile.cf-turnstile").length&&window.turnstile&&"function"==typeof window.turnstile.ready&&window.turnstile.ready(function(){o.find(".ff-el-turnstile.cf-turnstile").each(function(){var e=t(this);R("cf-turnstile",e,turnstile.reset)||D("cf-turnstile",e,turnstile.render)})}),o.find(".ff-el-hcaptcha.h-captcha").length&&window.hcaptcha&&o.find(".ff-el-hcaptcha.h-captcha").each(function(){var e=t(this);R("h-captcha",e,hcaptcha.reset)||D("h-captcha",e,hcaptcha.render)})},initTriggers:function(){o=d(),jQuery(document.body).trigger("fluentform_init",[o,l]),jQuery(document.body).trigger("fluentform_init_"+l.id,[o,l]),o.trigger("fluentform_init_single",[this,l]),o.find("input.ff-el-form-control").on("keypress",function(e){return 13!==e.which}),o.data("is_initialized","yes"),o.find("input.ff-read-only").each(function(){t(this).attr({tabindex:"-1",readonly:"readonly"})}),o.find(".ff-el-tooltip").on("mouseenter",function(e){var n=t(this).data("content"),r=t(".ff-el-pop-content");r.length||(t("<div/>",{class:"ff-el-pop-content"}).appendTo(document.body),r=t(".ff-el-pop-content")),r.html(Ee(n));var i=o.innerWidth()-20;r.css("max-width",i);var a=t(this).offset().left,s=r.outerWidth(),l=r.outerHeight(),c=a-s/2+10;c<15&&(c=15),r.css("top",t(this).offset().top-l-5),r.css("left",c)}),o.find(".ff-el-tooltip").on("mouseleave",function(){t(".ff-el-pop-content").remove()}),t(document).on("lity:open",function(){var e;null===(e=window.turnstile)||void 0===e||e.remove(),I()}),o.one("focus",'input, select, textarea, input[type="checkbox"], input[type="radio"]',function(){o.trigger("fluentform_first_interaction")}),o.on("fluentform_first_interaction",function(){I()}),o.on("ff_to_next_page ff_to_prev_page",function(e){I()}),I()},validate:S=function(e){e.length||(e=t("form.frm-fluent-form").find(":input").not(":button").filter(function(e,n){return!t(n).closest(".has-conditions").hasClass("ff_excluded")})),e.each(function(e,n){t(n).closest(".ff-el-group").removeClass("ff-el-is-error").find(".error").remove()}),c().validate(e,l.rules)},showErrorMessages:k,scrollToFirstError:w,settings:l,formSelector:P,sendData:g,addGlobalValidator:function(e,t){f[e]=t},config:l,showFormSubmissionProgress:v=function(e){e.addClass("ff_submitting"),e.find(".ff-btn-submit").addClass("disabled").addClass("ff-working").prop("disabled",!0)},addFieldValidationRule:function(e,t,n){l.rules[e]||(l.rules[e]={}),l.rules[e][t]=n},removeFieldValidationRule:function(e,t){e in l.rules&&t in l.rules[e]&&delete l.rules[e][t]},hideFormSubmissionProgress:y=function(e){e.removeClass("ff_submitting"),e.find(".ff-btn-submit").removeClass("disabled").removeClass("ff-working").attr("disabled",!1),o.parent().find(".ff_msg_temp").remove()}},n[a]=L,L};var o={init:function(){var e=this;setTimeout(function(){e.initMultiSelect()},100),this.initMask(),this.initNumericFormat(),this.initCheckableActive(),this.maybeInitSpamTokenProtection(),this.maybeHandleCleanTalkSubmitTime(),this.initOtherOptionHandlers()},maybeInitSpamTokenProtection:function(){var e=this;jQuery("form.frm-fluent-form").each(function(t,n){var r=jQuery(n),o=r.find(".fluent-form-token-field");if(0!==o.length&&!r.hasClass("ff_tokenizing")&&!r.hasClass("ff_tokenized")){var i=function(){r.hasClass("ff_tokenized")||r.hasClass("ff_tokenizing")||(r.addClass("ff_tokenizing"),e.generateAndSetToken(r,o))};r.one("ff_to_next_page ff_to_prev_page",function(e){i()}),r.on("fluentform_first_interaction",function(){i()})}})},generateAndSetToken:function(t,n){var r,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.data("form_id"),a=e.ajaxUrl+"?t="+Date.now(),s=this;jQuery.post(a,{action:"fluentform_generate_protection_token",form_id:i,nonce:null===(r=e)||void 0===r?void 0:r.token_nonce}).done(function(e){e.success&&e.data.token?(n.val(e.data.token),t.addClass("ff_tokenized")):(n.val(null),console.error("Token generation failed for form ID:",i))}).fail(function(e,r,a){console.error("Error generating token for form ID:",i,a),o&&setTimeout(function(){s.generateAndSetToken(t,n,!1)},1e3)}).always(function(){t.removeClass("ff_tokenizing")})},maybeHandleCleanTalkSubmitTime:function(){var e;null!==(e=window.fluentFormVars)&&void 0!==e&&e.has_cleantalk&&jQuery("form.frm-fluent-form").each(function(e,t){var n=jQuery(t).find(".ff_ct_form_load_time");n.length&&n.val(Math.floor(Date.now()/1e3))})},initOtherOptionHandlers:function(){jQuery(".ff-other-option input:checked").each(function(){var e=jQuery(this),t=e.closest(".ff-el-input--content").find(".ff-other-input-wrapper");t.length||(t=e.closest("label").next(".ff-other-input-wrapper")),t.length&&(t.show(),r.setAriaRequired(t.find(".ff-el-form-control"),!0))}),jQuery(document).on("input",".ff-other-input-wrapper .ff-el-form-control",function(){""!==jQuery(this).val().trim()&&r.clearAriaInvalid(jQuery(this))}),jQuery(document).on("change",'.ff-other-option input[type="checkbox"]',function(){var e=jQuery(this),t=e.closest(".ff-el-input--content").find(".ff-other-input-wrapper");if(t.length){var n=t.find(".ff-el-form-control");if(r.setAriaRequired(n,e.is(":checked")),e.is(":checked")){t.show();var o=n;""===o.val().trim()&&setTimeout(function(){o.focus()},50)}else t.hide(),t.find(".ff-el-form-control").val("")}}),jQuery(document).on("change",'.ff-other-option input[type="radio"]',function(){var e=jQuery(this),t=e.closest(".ff-el-input--content"),n=t.find(".ff-other-input-wrapper");n.length||(n=e.closest("label").next(".ff-other-input-wrapper")),e.is(":checked")&&(t.find(".ff-other-input-wrapper").hide(),n.length&&(n.show(),r.setAriaRequired(n.find(".ff-el-form-control"),!0),n.find(".ff-el-form-control").focus()))}),jQuery(document).on("change",'.ff-el-input--content input[type="radio"]',function(){var e=jQuery(this);if(!e.closest(".ff-other-option").length){var t=e.closest(".ff-el-input--content");t.find(".ff-other-input-wrapper").hide(),r.setAriaRequired(t.find(".ff-other-input-wrapper .ff-el-form-control"),!1),t.find(".ff-other-input-wrapper .ff-el-form-control").val("")}})},initMultiSelect:function(){t.isFunction(window.Choices)&&t(".ff_has_multi_select").length&&t(".ff_has_multi_select").each(function(e,n){var r=xe(xe({},{removeItemButton:!0,silent:!0,shouldSort:!1,searchEnabled:!0,searchResultLimit:50,searchFloor:1,searchChoices:!0,fuseOptions:{threshold:.1,distance:200,ignoreLocation:!0,tokenize:!0,matchAllTokens:!1}}),window.fluentFormVars.choice_js_vars),o=t(n).attr("data-max_selected_options");if(parseInt(o)){r.maxItemCount=parseInt(o);var i=t(n).attr("data-max_selection_message");r.maxItemText=function(e){var t;return t=i||(1===e?window.fluentFormVars.choice_js_vars.maxItemTextSingular:window.fluentFormVars.choice_js_vars.maxItemTextPlural),String(t).replace("%%maxItemCount%%",e)}}r.callbackOnCreateTemplates=function(){t(this.passedElement.element);return{option:function(e){var t=Choices.defaults.templates.option.call(this,e);return e.customProperties&&(t.dataset.calc_value=e.customProperties),t}}},t(n).data("choicesjs",new Choices(n,r))})},initMask:function(){if(null!=jQuery.fn.mask){var e={clearIfNotMatch:window.fluentFormVars.input_mask_vars.clearIfNotMatch,translation:{"*":{pattern:/[0-9a-zA-Z]/},0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}};jQuery("input[data-mask]").each(function(t,n){var r=(n=jQuery(n)).attr("data-mask"),o=e;n.attr("data-mask-reverse")&&(o.reverse=!0),n.attr("data-clear-if-not-match")&&(o.clearIfNotMatch=!0),r&&n.mask(r,o)})}},initCheckableActive:function(){t(document).on("change",".ff-el-form-check input[type=radio]",function(){t(this).is(":checked")&&(t(this).closest(".ff-el-input--content").find(".ff-el-form-check").removeClass("ff_item_selected"),t(this).closest(".ff-el-form-check").addClass("ff_item_selected"))}),t(document).on("change",".ff-el-form-check input[type=checkbox]",function(){t(this).is(":checked")?t(this).closest(".ff-el-form-check").addClass("ff_item_selected"):t(this).closest(".ff-el-form-check").removeClass("ff_item_selected")})},initNumericFormat:function(){var e=t("form.frm-fluent-form .ff_numeric");t.each(e,function(e,n){var r=t(n),o=JSON.parse(r.attr("data-formatter"));r.val()&&r.val(window.ff_helper.formatCurrency(r,r.val())),r.on("blur change",function(){var e=currency(t(this).val(),o).format();t(this).val(e)})})}},i=function(){return new function(){this.errors={};this.validate=function(e,n){var o,i,a=this,s=!0;e.each(function(e,l){o=t(l),i=o.prop("name").replace("[]",""),"repeater_item"!==o.data("type")&&"repeater_container"!==o.data("type")||(i=o.attr("data-name"),n[i]=n[o.data("error_index")]),n[i]&&t.each(n[i],function(e,t){e in a&&(a[e](o,t)||(s=!1,i in a.errors||(a.errors[i]={}),a.errors[i][e]=t.message))}),r.check(o)&&(s=!1,i in a.errors||(a.errors[i]={}),a.errors[i].required=function(e,t){var n=t&&t.required&&t.required.message;return r.message(e)||n||"This field is required"}(o,n[i]))}),!s&&this.throwValidationException()},this.throwValidationException=function(){var e=new ffValidationError("Validation Error!");throw e.messages=this.errors,e},this.required=function(e,n){if(!n.value)return!0;var r=e.prop("type");if("checkbox"==r||"radio"==r)return e.parents(".ff-el-group").attr("data-name")&&!n.per_row?e.parents(".ff-el-group").find("input:checked").length:e.closest("form").find('[name="'+e.prop("name")+'"]:checked').length;if(r.startsWith("select")){var o=e.find(":selected");return!(!o.length||!o.val().length)}return"file"==r?e.closest("div").find(".ff-uploaded-list").find(".ff-upload-preview[data-src]").length:"false"==e.attr("is-changed")?"":String(t.trim(e.val())).length},this.countSelections=function(e){var n=e.prop("type"),r=function(e){var n={};return e.each(function(){var e=String(t(this).val());e.length&&(n[e]=!0)}),Object.keys(n).length};return"checkbox"==n?r(e.closest("form").find('[name="'+e.prop("name")+'"]:checked')):n&&n.startsWith("select")?r(e.find(":selected")):String(t.trim(e.val())).length?1:0},this.min_selection=function(e,t){if(!t.value)return!0;var n=this.countSelections(e);return!n||n>=Number(t.value)},this.max_selection=function(e,t){return!t.value||this.countSelections(e)<=Number(t.value)},this.url=function(e,t){var n=e.val();if(!t.value||!n.length)return!0;return/^(ftp|http|https):\/\/[^ "]+$/.test(n)},this.email=function(e,t){var n=e.val();if(!t.value||!n.length)return!0;return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n.toLowerCase())},this.numeric=function(e,n){var r=window.ff_helper.numericVal(e);return r=r.toString(),!n.value||!r||t.isNumeric(r)},this.min=function(e,t){if(!e.val())return!0;var n=window.ff_helper.numericVal(e);return n=n.toString(),!t.value||!n.length||(this.numeric(e,t)?Number(n)>=Number(t.value):void 0)},this.max=function(e,t){if(!e.val())return!0;var n=window.ff_helper.numericVal(e);return n=n.toString(),!t.value||!n.length||(this.numeric(e,t)?Number(n)<=Number(t.value):void 0)},this.digits=function(e,t){if(!e.val())return!0;var n=window.ff_helper.numericVal(e);return n=n.toString(),!t.value||!n.length||this.numeric(e,t)&&n.length==t.value},this.max_file_size=function(){return!0},this.max_file_count=function(){return!0},this.allowed_file_types=function(){return!0},this.allowed_image_types=function(){return!0},this.force_failed=function(){return!1},this.valid_phone_number=function(e,t){if(!e.val())return!0;if(e&&e[0]){var n;if(!(n=void 0!==window.intlTelInputGlobals?window.intlTelInputGlobals.getInstance(e[0]):e.data("iti")))return!0;if(e.hasClass("ff_el_with_extended_validation"))return!!("yes"===e.data("strict_validation")&&"function"==typeof n.isValidNumberPrecise?n.isValidNumberPrecise():n.isValidNumber())&&(e.val(n.getNumber()),!0);var r=n.getSelectedCountryData(),o=e.val();return!e.attr("data-original_val")&&o&&r&&r.dialCode&&(e.val("+"+r.dialCode+o),e.attr("data-original_val",o)),!0}}}},a=t("form.frm-fluent-form");function s(e){var t=fluentFormApp(e);if(t)t.initFormHandlers(),t.initTriggers();else var n=0,r=setInterval(function(){(t=fluentFormApp(e))&&(clearInterval(r),t.initFormHandlers(),t.initTriggers()),++n>10&&(clearInterval(r),console.log("Form could not be loaded"))},1e3)}function l(){t(".ff_has_multi_select").each(function(){var e=t(this).data("choicesjs");if(e&&e.passedElement){e.passedElement.element.addEventListener("showDropdown",function(){var e=this.closest(".choices");if(e){var t=e.querySelector(".choices__list--dropdown");if(t){t.style.maxHeight="300px",t.style.overflowY="auto";var n=t.querySelector('.choices__list[role="listbox"]')||t.querySelector(".choices__list:not(.choices__list--dropdown)");n&&(n.style.maxHeight="280px",n.style.overflowY="auto",n.style.webkitOverflowScrolling="touch",n.style.touchAction="pan-y")}}},{passive:!0});var n=e.passedElement.element.closest(".choices");n&&(n.addEventListener("focus",function(t){n.classList.contains("is-open")||e.showDropdown()},!0),n.addEventListener("keydown",function(t){"Tab"===t.key&&n.classList.contains("is-open")&&e.hideDropdown()}))}})}t.each(a,function(e,n){s(t(n))}),t(document).on("ff_reinit",function(e,n){var r=t(n),i=fluentFormApp(r);if(!i)return!1;i.reinitExtras(),s(r),o.init(),r.attr("data-ff_reinit","yes")}),o.init(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){setTimeout(l,100)}):setTimeout(l,100)}(window.fluentFormVars,jQuery),jQuery(".fluentform").on("submit",".ff-form-loading",function(e){var t;e.preventDefault(),jQuery(this).parent().find(".ff_msg_temp").remove(),jQuery("<div/>",{class:"error text-danger ff_msg_temp"}).html(Ee((null===(t=window.fluentform_submission_messages_global)||void 0===t?void 0:t.javascript_handler_failed)||"Javascript handler could not be loaded. Form submission has been failed. Reload the page and try again")).insertAfter(jQuery(this))})})})();

Youez - 2016 - github.com/yon3zu
LinuXploit