!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}({0:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},1:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return p}));const r="email",i="phone",l="name",a={[r]:["email","e-mail","mail","email address"],[i]:["phone","tel","mobile","cell","telephone","phone number"],[l]:["name","full-name","full name","full_name","fullname","first-name","first name","first_name","firstname","last-name","last name","last_name","lastname","given-name","given name","given_name","givenname","family-name","family name","family_name","familyname","fname","lname","first","last","your-name","your name"]};function o(e){return e&&"string"==typeof e?e.trim().toLowerCase():""}function u(e){const t=o(e),n=t.lastIndexOf("@");if(-1===n)return t;const r=t.slice(n+1);if(["gmail.com","googlemail.com"].includes(r)){return`${t.slice(0,n).replace(/\./g,"")}@${r}`}return t}function s(e){const t=o(e),n=t.replace(/\D/g,"");return t.startsWith("+")?"+"+n:n}function c(e){let{type:t,name:n,value:c,label:f}=e||{};switch(t=o(t),n=o(n),c=o(c),f=function(e){return e&&"string"==typeof e?e.trim().toLowerCase().replace(/\s*\*+\s*$/,"").replace(/\s*\(required\)\s*$/i,"").replace(/\s*:\s*$/,"").trim():""}(f),t){case"email":return{type:r,value:u(c)};case"tel":return{type:i,value:s(c)}}return function(e){if(!e)return!1;const t=u(e);return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}(c)?{type:r,value:u(c)}:function(e){if(!e)return!1;if(!function(e){const t=e.replace(/\D/g,"");return!(t.length<7||t.length<e.length/2)&&/^[\s\-()+.\d]*$/.test(e)}(e))return!1;const t=s(e);return/^\+?\d{7,}$/.test(t)}(c)?{type:i,value:s(c)}:a[r].includes(n)||a[r].includes(f)?{type:r,value:u(c)}:a[i].includes(n)||a[i].includes(f)?{type:i,value:s(c)}:a[l].includes(n)||a[l].includes(f)?{type:l,value:o(c)}:null}function f(e){const t=e.filter(({type:e})=>e===l).map(({value:e})=>e);if(!t.length)return;const[n,...r]=1===t.length?t[0].split(" "):t;return{first_name:o(n),...(null==r?void 0:r.length)>0?{last_name:o(r.join(" "))}:{}}}function m(e){var t;return null===(t=e.find(({type:e})=>e===r))||void 0===t?void 0:t.value}function d(e){var t;return null===(t=e.find(({type:e})=>e===i))||void 0===t?void 0:t.value}function p(e){const t=[["address",f(e)],["email",m(e)],["phone_number",d(e)]].filter(([,e])=>e);if(0!==t.length)return Object.fromEntries(t)}},8:function(e,t,n){"use strict";n.r(t),function(e){var t=n(1);((n,i,l)=>{if(!n||!i||!l)return;const a=i.Object.extend({initialize(){this.listenTo(l.Radio.channel("forms"),"submit:response",this.actionSubmit)},actionSubmit(n){var i,l,a;const o=(null===(i=e._googlesitekit)||void 0===i?void 0:i.gtagUserData)?function(e){const n=Object.values(e).map(e=>{var n;const{label:i,type:l,value:a,key:o}=e,u=null!==(n=r[l])&&void 0!==n?n:l;return Object(t.a)({label:i,type:u,value:a,name:o})}).filter(Boolean);return Object(t.b)(n)}(n.data.fields):void 0;null===(l=e._googlesitekit)||void 0===l||null===(a=l.gtagEvent)||void 0===a||a.call(l,"submit_lead_form",o?{user_data:o}:void 0)}});n(document).ready(()=>{new a})})(e.jQuery,e.Marionette,e.Backbone);const r={phone:"tel",textbox:"text"}}.call(this,n(0))}});