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U,CAAQ,EAEvB,iCAAiC;AACjC,wBAAwB;AAC1B,CACF,EACF,CAAA,GAlEE,GAEA,EAAE,SAAS,KAAA,CAAM,WACf,EAAE,IAAI,EAAE,GAAA,CAAI,EAAE,IAAI,EAAE,GAAA,GAAM,WAA1B,GACF,GAEA,EAAE,YAAY,KAAA,CAAM,WAClB,EAAE,IAAI,EAAE,GAAA,CAAI,EAAE,IAAI,EAAE,GAAA,GAAM,WAA1B,GACF,GAEA,EAAE,UAAU,KAAA,CAAM,WAChB,EAAE,IAAI,EAAE,GAAA,CAAI,EAAE,IAAI,EAAE,GAAA,GAAM,WAA1B,GACF,GAEA,EAAE,YAAY,KAAA,CAAM,WAClB,EAAE,IAAI,EAAE,GAAA,CAAI,EAAE,IAAI,EAAE,GAAA,GAAM,WAA1B,GACF,EACF,GAEA,IAAI,EAAU,CACZ,YAAa,GACb,KAAM,GACN,YAAa,EACb,MAAO,GACP,QAAS,EACX,C,4D","sources":["","contact.js"],"sourcesContent":["var urlSaveContactInformation = \"https://implement-sf.com/api/Contact\";\n$(document).ready(function() {\n $(\"#submit\").on(\"click\", function() {\n saveContactInformation();\n });\n $(\"#name\").keyup(function() {\n $(this).val($(this).val().toUpperCase());\n });\n $(\"#company\").keyup(function() {\n $(this).val($(this).val().toUpperCase());\n });\n $(\"#email\").keyup(function() {\n $(this).val($(this).val().toLowerCase());\n });\n $(\"#message\").keyup(function() {\n $(this).val($(this).val().toUpperCase());\n });\n});\nvar contact = {\n DateContact: \"\",\n Name: \"\",\n CompanyName: 0,\n Email: \"\",\n Message: \"\"\n};\nfunction saveContactInformation() {\n // BloqueaPantalla();\n getValues();\n if (!validateForm()) {\n DesbloqueaPantalla();\n return;\n }\n if (!validateEmailFormat(contact.Email)) {\n $(\"#email\").val(\"\");\n $(\"#email\").focus();\n // DesbloqueaPantalla();\n return;\n }\n $.ajax({\n type: \"POST\",\n url: urlSaveContactInformation,\n data: JSON.stringify(contact),\n dataType: \"JSON\",\n contentType: \"application/json; charset=utf-8\",\n global: false,\n async: false,\n dataType: \"json\",\n success: function(jsonData) {\n var xxx = jsonData;\n // alert(\"Information saved\");\n // DesbloqueaPantalla();\n clearTexbox();\n $(\"#homeisfId\").get(0).click();\n },\n error: function(jsonData) {\n var error = jsonData;\n // alert(\"Something went wrong\");\n // DesbloqueaPantalla();\n }\n });\n}\nfunction getValues() {\n contact.DateContact = \"2023-09-20\";\n contact.Name = $(\"#name\").val();\n contact.CompanyName = $(\"#company\").val();\n contact.Email = $(\"#email\").val();\n contact.Message = $(\"#message\").val();\n}\nfunction validateEmailFormat(mail) {\n var mailformat = /^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$/;\n if (mail.match(mailformat)) {\n $(\"#email\").removeClass(\"error\");\n return true;\n }\n $(\"#email\").addClass(\"error\");\n alert(\"You have entered an invalid email address!\");\n return false;\n}\nfunction validateForm() {\n if (!$(\"#name\").val()) {\n $(\"#name\").addClass(\"error\");\n $(\"#name\").focus();\n return false;\n } else $(\"#name\").removeClass(\"error\");\n if (!$(\"#company\").val()) {\n $(\"#company\").addClass(\"error\");\n $(\"#company\").focus();\n return false;\n } else $(\"#company\").removeClass(\"error\");\n return true;\n}\nfunction clearTexbox() {\n $(\"#name\").val(\"\");\n $(\"#company\").val(\"\");\n $(\"#email\").val(\"\");\n $(\"#message\").val(\"\");\n}\n\n//# sourceMappingURL=index.432c9a4f.js.map\n","var urlSaveContactInformation = \"https://implement-sf.com/api/Contact\";\r\n\r\n$(document).ready(function () {\r\n $(\"#submit\").on(\"click\", function () {\r\n saveContactInformation();\r\n });\r\n\r\n $(\"#name\").keyup(function () {\r\n $(this).val($(this).val().toUpperCase());\r\n });\r\n\r\n $(\"#company\").keyup(function () {\r\n $(this).val($(this).val().toUpperCase());\r\n });\r\n\r\n $(\"#email\").keyup(function () {\r\n $(this).val($(this).val().toLowerCase());\r\n });\r\n\r\n $(\"#message\").keyup(function () {\r\n $(this).val($(this).val().toUpperCase());\r\n });\r\n});\r\n\r\nvar contact = {\r\n DateContact: \"\",\r\n Name: \"\",\r\n CompanyName: 0,\r\n Email: \"\",\r\n Message: \"\",\r\n};\r\n\r\nfunction saveContactInformation() {\r\n // BloqueaPantalla();\r\n getValues();\r\n\r\n if (!validateForm()) {\r\n DesbloqueaPantalla();\r\n return;\r\n }\r\n\r\n if (!validateEmailFormat(contact.Email)) {\r\n $(\"#email\").val(\"\");\r\n $(\"#email\").focus();\r\n // DesbloqueaPantalla();\r\n return;\r\n }\r\n\r\n $.ajax({\r\n type: \"POST\",\r\n url: urlSaveContactInformation,\r\n data: JSON.stringify(contact),\r\n dataType: \"JSON\",\r\n contentType: \"application/json; charset=utf-8\",\r\n global: false,\r\n async: false,\r\n dataType: \"json\",\r\n\r\n success: function (jsonData) {\r\n var xxx = jsonData;\r\n // alert(\"Information saved\");\r\n // DesbloqueaPantalla();\r\n clearTexbox();\r\n $(\"#homeisfId\").get(0).click();\r\n },\r\n error: function (jsonData) {\r\n var error = jsonData;\r\n // alert(\"Something went wrong\");\r\n // DesbloqueaPantalla();\r\n },\r\n });\r\n}\r\n\r\nfunction getValues() {\r\n contact.DateContact = \"2023-09-20\";\r\n contact.Name = $(\"#name\").val();\r\n contact.CompanyName = $(\"#company\").val();\r\n contact.Email = $(\"#email\").val();\r\n contact.Message = $(\"#message\").val();\r\n}\r\n\r\nfunction validateEmailFormat(mail) {\r\n var mailformat = /^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$/;\r\n\r\n if (mail.match(mailformat)) {\r\n $(\"#email\").removeClass(\"error\");\r\n return true;\r\n }\r\n $(\"#email\").addClass(\"error\");\r\n alert(\"You have entered an invalid email address!\");\r\n return false;\r\n}\r\n\r\nfunction validateForm() {\r\n if (!$(\"#name\").val()) {\r\n $(\"#name\").addClass(\"error\");\r\n $(\"#name\").focus();\r\n return false;\r\n } else {\r\n $(\"#name\").removeClass(\"error\");\r\n }\r\n\r\n if (!$(\"#company\").val()) {\r\n $(\"#company\").addClass(\"error\");\r\n $(\"#company\").focus();\r\n return false;\r\n } else {\r\n $(\"#company\").removeClass(\"error\");\r\n }\r\n return true;\r\n}\r\n\r\nfunction clearTexbox() {\r\n $(\"#name\").val(\"\");\r\n $(\"#company\").val(\"\");\r\n $(\"#email\").val(\"\");\r\n $(\"#message\").val(\"\");\r\n}\r\n"],"names":["$","document","ready","on","saveContactInformation","contact","DateContact","Name","val","CompanyName","Email","Message","removeClass","addClass","focus","DesbloqueaPantalla","mail","match","alert","ajax","type","url","data","JSON","stringify","dataType","contentType","global","async","success","jsonData","get","click","error","keyup","toUpperCase","toLowerCase"],"version":3,"file":"index.432c9a4f.js.map"}