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,IAEArB,EAAE,gBAAgBC,QAAO,SAACC,GAGxB,GAFAA,EAAMC,kBAEDD,EAAME,OAAOC,gBAGhB,OAFAH,EAAME,OAAOE,UAAUC,IAAI,sBAC3BL,EAAMM,kBAIR,IAAMC,EAAYT,EAAEE,EAAME,QAAQM,KAAK,uBAAuBC,MACxDC,EAAWZ,EAAEE,EAAME,QAAQM,KAAK,sBAAsBC,MACtDE,EAAQb,EAAEE,EAAME,QAAQM,KAAK,mBAAmBC,MAChDe,EAAe1B,EAAEE,EAAME,QAAQM,KAAK,0BAA0BC,MAC9DgB,EAAiB3B,EAAEE,EAAME,QAAQM,KAAK,wBAAwBC,MAE9DG,EAAY,CAChBC,KAAM,kBACNC,KAAM,GAAFC,OAAKR,EAAS,KAAAQ,OAAIL,GACtBC,MAAO,GAAFI,OAAKJ,GACVe,IAAK,GAAFX,OAAKS,GACRG,QAAS,GAAFZ,OAAKU,IAGd3B,EAAEkB,KAAK,GAADD,OAAIE,oCAAS,eAAeL,GAAW,WAC3Cd,EAAE,iBAAiBoB,YAAY,UAC/BpB,EAAE,gBAAgBqB,SAAS,SAC7B,GACF,IAEArB,EAAE,yCAAyCC,QAAO,SAACC,GAGjD,GAFAA,EAAMC,kBAEDD,EAAME,OAAOC,gBAGhB,OAFAH,EAAME,OAAOE,UAAUC,IAAI,sBAC3BL,EAAMM,kBAIR,IAAMK,EAAQb,EAAEE,EAAME,QAAQM,KAAK,qBAAqBC,MAElDG,EAAY,CAChBC,KAAM,oBACNF,MAAO,GAAFI,OAAKJ,IAGZb,EAAEkB,KAAK,GAADD,OAAIE,oCAAS,eAAeL,GAAW,WAC3Cd,EAAE,oBAAoBoB,YAAY,UAClCpB,EAAE,uBAAuBqB,SAAS,SACpC,GACF,GACF,C","sources":["webpack://marketing/./src/assets/js/modules/contact.js"],"sourcesContent":["export default function contactApiInit() {\n $('form#benchmarking-form').submit((event) => {\n event.preventDefault();\n\n if (!event.target.checkValidity()) {\n event.target.classList.add('was-validated');\n event.stopPropagation();\n return;\n }\n\n const firstName = $(event.target).find('input[id=firstname]').val();\n const lastName = $(event.target).find('input[id=lastname]').val();\n const email = $(event.target).find('input[id=email]').val();\n\n const paramData = {\n type: 'Benchmarking Request - Desktop',\n name: `${firstName} ${lastName}`,\n email: `${email}`,\n };\n\n $.post(`${_APP_API_}/v2/contact`, paramData, () => {\n $('.contact_done').removeClass('hidden');\n $('form#benchmarking-form').addClass('hidden');\n $('form#benchmarking-form-mobile').addClass('hidden');\n });\n });\n\n $('form#benchmarking-form-mobile').submit((event) => {\n event.preventDefault();\n\n if (!event.target.checkValidity()) {\n event.target.classList.add('was-validated');\n event.stopPropagation();\n return;\n }\n\n const firstName = $(event.target).find('input[id=firstname_mobile]').val();\n const lastName = $(event.target).find('input[id=lastname_mobile]').val();\n const email = $(event.target).find('input[id=email_mobile]').val();\n\n const paramData = {\n type: 'Benchmarking Request - Mobile',\n name: `${firstName} ${lastName}`,\n email: `${email}`,\n };\n\n const params = new URLSearchParams(Object.entries(paramData));\n\n $.post(`${_APP_API_}/v2/contact`, params, () => {\n $('.contact_done').removeClass('hidden');\n $('form#benchmarking-form').addClass('hidden');\n $('form#benchmarking-form-mobile').addClass('hidden');\n });\n });\n\n $('form#contact').submit((event) => {\n event.preventDefault();\n\n if (!event.target.checkValidity()) {\n event.target.classList.add('was-validated');\n event.stopPropagation();\n return;\n }\n\n const firstName = $(event.target).find('input[id=firstname]').val();\n const lastName = $(event.target).find('input[id=lastname]').val();\n const email = $(event.target).find('input[id=email]').val();\n const organization = $(event.target).find('input[id=organization]').val();\n const contactMessage = $(event.target).find('textarea[id=comment]').val();\n\n const paramData = {\n type: 'General Inquiry',\n name: `${firstName} ${lastName}`,\n email: `${email}`,\n org: `${organization}`,\n message: `${contactMessage}`,\n };\n\n $.post(`${_APP_API_}/v2/contact`, paramData, () => {\n $('.contact_done').removeClass('hidden');\n $('form#contact').addClass('hidden');\n });\n });\n\n $('form#newsletter, form#newsletterModal').submit((event) => {\n event.preventDefault();\n\n if (!event.target.checkValidity()) {\n event.target.classList.add('was-validated');\n event.stopPropagation();\n return;\n }\n\n const email = $(event.target).find('input[type=email]').val();\n\n const paramData = {\n type: 'Newsletter Signup',\n email: `${email}`,\n };\n\n $.post(`${_APP_API_}/v2/contact`, paramData, () => {\n $('.newsletter_done').removeClass('hidden');\n $('.newewsletter_start').addClass('hidden');\n });\n });\n}\n"],"names":["contactApiInit","$","submit","event","preventDefault","target","checkValidity","classList","add","stopPropagation","firstName","find","val","lastName","email","paramData","type","name","concat","post","_APP_API_","removeClass","addClass","params","URLSearchParams","Object","entries","organization","contactMessage","org","message"],"sourceRoot":""}