{"version":3,"sources":["src/assets/js/main.js","src/assets/js/dev_dfp.js","src/assets/js/prod_dfp.js","src/assets/js/niubizService.js","src/assets/js/signFastService.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA,QAAQ;AACR;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,uBAAuB;AACvB,kBAAkB;AAClB;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL,2CAA2C,mIAAmI;AAC9K;;CC7FA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,+CAA+C,eAAe,WAAW,mBAAmB,cAAc;AAC1G;;AAEA;AACA,oD;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;CCnDA,0B;;AAEA;AACA;AACA;AACA,uB;AACA;AACA,6B;AACA,4B;AACA,4C;AACA,sD;AACA;AACA;;AAEA;AACA,wJ;AACA,6D;AACA,+H;AACA;AACA,kD;AACA;AACA;AACA,6BAA6B;AAC7B,yD;AACA,kD;AACA;AACA,+CAA+C,eAAe,WAAW,mBAAmB,cAAc,G;AAC1G,oC;AACA;AACA;AACA,C;;AAEA;AACA,6B;AACA;AACA;AACA;AACA;;AAEA,4C;AACA,4E;AACA,C;CCzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,C;;ACxBA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA","file":"scripts.js","sourcesContent":["function invocarClient(buscarColaboradorHuella) {\n // $( document ).ajaxStop(function() {\n // $body.addClass(\"loading\");\n // });\n firmarDocumento();\n\n}\n\nfunction invocarPagoNiubiz(dataNiubiz) {\n console.log('invocando tokenizacion')\n invocarTokenizacion(dataNiubiz);\n}\n\nfunction invocarAntifraude(uuid){\n // Identificador único de la transacción\n console.log('invocar antifraude uuid', uuid)\n // Ejecución de la función de captura\n //initDFPDev(uuid); //dev\n initDFP(uuid); //prod\n}\n\nfunction googleTranslateElementInit() {\n $('document').ready(function () {\n\n // RESTYLE THE DROPDOWN MENU\n $('#google_translate_element').on(\"click\", function () {\n \n // Change font family and color\n $(\"iframe\").contents().find(\".goog-te-menu2-item div, .goog-te-menu2-item:link div, .goog-te-menu2-item:visited div, .goog-te-menu2-item:active div, .goog-te-menu2 *\")\n .css({\n 'color': '#00297c',\n 'width': '150px'\n });\n\n $(\"iframe\").contents().find('.goog-te-menu-value span').css ('display', 'none');\n\n // Change menu's padding\n $(\"iframe\").contents().find('.goog-te-menu2-item-selected').css ('display', 'none');\n \n // Change menu's padding\n $(\"iframe\").contents().find('.goog-te-menu2').css ('padding', '0px');\n \n // Change the padding of the languages\n $(\"iframe\").contents().find('.goog-te-menu2-item div').css('padding', '15px');\n $(\"iframe\").contents().find('.goog-te-menu2-item div').css ('text-transform', 'capitalize');\n $(\"iframe\").contents().find('.goog-te-menu2-item div').css ('text-decoration', 'none');\n \n // Change the width of the languages\n $(\"iframe\").contents().find('.goog-te-menu2-item').css('width', '100%');\n $(\"iframe\").contents().find('td').css('width', '100%');\n $(\"iframe\").contents().find('.goog-te-menu2-item').css ('text-align', 'right');\n \n // Change hover effects\n $(\"iframe\").contents().find(\".goog-te-menu2-item div\").hover(function () {\n $(this).css('background-color', 'transparent').find('span.text').css('color', '#00297c');\n $(this).css('text-decoration', 'underline').find('span.text').css('color', 'none');\n }, function () {\n $(this).css('background-color', 'white').find('span.text').css('color', '#00297c');\n $(this).css('text-decoration', 'none').find('span.text').css('color', 'underline');\n });\n\n // Change Google's default blue border\n $(\"iframe\").contents().find('.goog-te-menu2').css('border', 'none');\n\n // Change the iframe's box shadow\n $(\".goog-te-menu-frame\").css('box-shadow', '0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.3)');\n \n // Change the iframe's size and position?\n $(\".goog-te-menu-frame\").css({\n 'height': '140px',\n 'width': '180px',\n 'box-shadow': '0px 20px 30px rgb(0 0 0 / 3%)',\n 'border-bottom-left-radius': '5px',\n 'border-bottom-right-radius': '5px'\n });\n // Change iframes's size\n $(\"iframe\").contents().find('.goog-te-menu2').css({\n 'height': '100%',\n 'width': '100%'\n });\n });\n });\n\n jQuery('.lang-select').click(function() {\n var theLang = jQuery(this).attr('data-lang');\n jQuery('.goog-te-combo').val(theLang);\n \n //alert(jQuery(this).attr('href'));\n window.location = jQuery(this).attr('href');\n location.reload();\n });\n\n new google.translate.TranslateElement({pageLanguage: 'es', includedLanguages: 'es,en,fr,it', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, gaTrack: true}, 'google_translate_element');\n}\n","var localSessionId = null;\n\nfunction doProfileDev(orgId, sessionId, hostname) {\n console.log('Starting profile using ' + hostname + ' for orgId ' + orgId + ' with sessionId ' + sessionId + ' on ' + Math.floor(Date.now() / 1000));\n var head = document.getElementsByTagName(\"head\").item(0);\n var url = \"https://\" + hostname + \"/tags.js?org_id=\" + orgId + \"&session_id=\" + sessionId + \"&page_id=1&allow_reprofile=1\";\n //var url = \"https://\" + hostname + \"/tags.js?org_id=\" + orgId + \"&session_id=\" + sessionId;\n console.log(url);\n var script = document.createElement(\"script\");\n script.setAttribute(\"type\", \"text/javascript\");\n script.setAttribute(\"src\", url);\n head.appendChild(script);\n\n console.log('Profile should have started...');\n\n body = document.getElementsByTagName(\"body\").item(0);\n noscript = document.createElement(\"noscript\");\n iframe = document.createElement(\"iframe\");\n iframe.setAttribute(\"style\", \"width: 100px; height: 100px; border: 0; position:absolute; top: -5000px;\");\n iframe.setAttribute(\"src\", url);\n\n noscript.appendChild(iframe);\n body.insertBefore(noscript, body.childNodes[0]); \n\n}\n\nfunction initDFPDev(sessionId, purchaseNumber, clientIp, visaNetMerchantId) {\n localSessionId = sessionId;\n console.log('Init profiling ', Math.floor(Date.now() / 1000))\n var timeout = 3000;\n var sasOrgId = \"507f9ifk\";\n\n var csOrgId = \"1snn5n9w\";\n var merchantId = \"vndp\";\n var hostname = \"h.online-metrix.net/fp\";\n //doProfile(csOrgId, merchantId + localSessionId, hostname);\n\n\n doProfileDev(sasOrgId, sessionId, \"m.vnforapps.com\");\n setTimeout(startOnTimerDev, timeout);\n}\n\nfunction startOnTimerDev() {\n var csOrgId = \"1snn5n9w\";\n var merchantId = \"vndp\";\n var hostname = \"h.online-metrix.net/fp\";\n doProfileDev(csOrgId, merchantId + localSessionId, hostname);\n}\n\nfunction tmx_profiling_complete(sessionId) {\n console.log('Finished ', sessionId, '-', Math.floor(Date.now() / 1000));\n}\n","var localSessionId = null; \n\nfunction initDFP(sessionId) {\n localSessionId = sessionId;\n console.log('Init profiling ', Math.floor(Date.now() / 1000)) \n var timeout = 3000; \n var sasOrgId = \"clyskgqa\";\n var csOrgId = \"k8vif92e\"; \n var merchantId = \"vndp\"; \n var hostname = \"h.online-metrix.net/fp\"; \n doProfile(sasOrgId, sessionId, \"m.vnforapps.com\"); \n setTimeout(startOnTimer(sessionId) , timeout);\n}\n\nfunction doProfile(orgId, sessionId, hostname){\n console.log('Starting profile using ' + hostname + ' for orgId ' + orgId + ' with sessionId ' + sessionId + ' on ' + Math.floor(Date.now() / 1000)); \n var head = document.getElementsByTagName(\"head\").item(0); \n var url = \"https://\" + hostname + \"/tags.js?org_id=\" + orgId + \"&session_id=\" + sessionId + \"&page_id=1&allow_reprofile=1\"; \n console.log(url);\n var script = document.createElement(\"script\"); \n script.setAttribute(\"type\", \"text/javascript\");\n script.setAttribute(\"src\", url);\n head.appendChild(script); console.log('Profile should have started...');\n body = document.getElementsByTagName(\"body\").item(0); \n noscript = document.createElement(\"noscript\"); \n iframe = document.createElement(\"iframe\");\n iframe.setAttribute(\"style\", \"width: 100px; height: 100px; border: 0; position:absolute; top: -5000px;\"); \n iframe.setAttribute(\"src\", url); \n noscript.appendChild(iframe);\n body.insertBefore(noscript, body.childNodes[0]);\n} \n \nfunction startOnTimer(sessionId) {\n var csOrgId = \"k8vif92e\"; \n var merchantId = \"vndp\";\n var hostname = \"h.online-metrix.net/fp\";\n doProfile(csOrgId, merchantId + sessionId, hostname);\n}\n \nfunction tmx_profiling_complete(sessionId) { \n console.log('Finished ', sessionId, '-', Math.floor(Date.now() / 1000)); \n} ","function invocarTokenizacion(dataNiubiz) {\n VisanetCheckout.configure({\n sessiontoken: dataNiubiz.token,\n channel: 'paycard',\n merchantid: dataNiubiz.merchantId,\n purchasenumber: dataNiubiz.purchasenumber,\n //amount: dataNiubiz.amount,\n amount: 1, //amount default change 18-07-23\n formbuttontext: \"Suscribirme\",\n cardholdername: dataNiubiz.nameUser,\n cardholderlastname: dataNiubiz.surnameUser,\n cardholderemail: dataNiubiz.emailUser,\n //usertoken: dataNiubiz.tokenUser,\n showamount: 'TRUE',\n expirationminutes: '10',\n timeouturl: dataNiubiz.urlTimeout,\n merchantlogo: dataNiubiz.logo,\n formbuttoncolor: '#000',\n action: dataNiubiz.urlResponse,\n complete: function(params) {\n alert(JSON.stringify(params));\n }\n });\n VisanetCheckout.open();\n console.log('configure', VisanetCheckout.configuration)\n}","\t\n\tfunction firmarDocumento() {\n\t\tvar sistema = \"\";\n\t\tvar servidorFirma \t\t = \"\";\n\n\t\tsistema \t\t= \"NOE-2021\";\n\t\tservidorFirma \t\t= \"NOE-2021\";\n\n\t\tidCompanyFastClient = document.getElementById(\"idCompanyFastClient\").value\n\t\tuserFastClient = document.getElementById(\"userFastClient\").value\n\t\tdocumentSigningProcessFastClient = document.getElementById(\"documentSigningProcessFastClient\").value\n\t\tidProcessFastClient = document.getElementById(\"idProcessFastClient\").value\n\t\tsubdomainFastClient = document.getElementById(\"subdomainFastClient\").value \t\n\t\tboundingBoxFastClient = document.getElementById(\"boundingBoxFastClient\").value \t\n\t\tHolographicPathFastClient = document.getElementById(\"HolographicPathFastClient\").value \t\n\t\tpageFastClient = document.getElementById(\"pageFastClient\").value \t\n\t\tmethodOne = document.getElementById(\"methodOneFastClient\").value \t\n\t\tmethodTwo = document.getElementById(\"methodTwoFastClient\").value \t\n\t\tmethodUrl = document.getElementById(\"methodUrlFastClient\").value \t\n\t\tapikey = document.getElementById(\"apikeyFastClient\").value \t\n\n\t\turlStepFuction = document.getElementById(\"urlStepFuction\").value \t\n\t\turlSignFastClientTransaction = document.getElementById(\"urlSignFastClientTransaction\").value \n\t\tmethodSignFastClientTransaction = document.getElementById(\"methodSignFastClientTransaction\").value\n\t\tmethodSignFastClientTransactionContinue = document.getElementById(\"methodSignFastClientTransactionContinue\").value\n\n\t\tactivateTimbrado = document.getElementById(\"activateTimbradoFastClient\").value\n\t\tactiveQr = document.getElementById(\"activeQrFastClient\").value\n\t\tqrPage = document.getElementById(\"pageUrlFastClient\").value\n\t\tissetRecipient = document.getElementById(\"issetRecipientFastClient\").value\n\n\t\tvar urlServicio = servidorFirma + '/SignFastService/GestionarProcesamientoFirmas/registrar/' + sistema;\n\t\tobtenerNumeroOperacion(\n\t\t\tidCompanyFastClient, // 0\n\t\t\tuserFastClient, // 1\n\t\t\tdocumentSigningProcessFastClient, // 2\n\t\t\tidProcessFastClient, // 3\n\t\t\tsubdomainFastClient, // 4\n\t\t\tboundingBoxFastClient, // 5\n\t\t\tHolographicPathFastClient, // 6\n\t\t\tpageFastClient, // 7\n\t\t\tmethodOne, // 8\n\t\t\tmethodTwo, // 9\n\t\t\tmethodUrl, // 10\n\t\t\tapikey, // 11\n\t\t\turlStepFuction, // 12\n\t\t\turlSignFastClientTransaction, // 13\n\t\t\tmethodSignFastClientTransaction, // 14\n\t\t\tmethodSignFastClientTransactionContinue, // 15\n\t\t\tactivateTimbrado, // 16\n\t\t\tactiveQr, // 17\n\t\t\tqrPage, // 18\n\t\t\tissetRecipient // 19\n\t\t);\n\t}\n\n\tfunction recibirRespuestaFirma(url, numeroProcesamiento) {\n\t\t\n\t var respuesta = \"\";\n\t\tvar ajax = crearAjax();\n\t\tajax.open('GET', url, true);\n\t\tajax.onreadystatechange = function() {\n\t\t\tif (ajax.readyState == 4) {\n\t\t\t if (ajax.status == 200) {\n\t\t\t \trespuesta = ajax.responseText;\n\t\t\t\t\tdocument.getElementById(\"respuesta\").value = respuesta;\n\t\t\t\t\tenviarMensaje();\n\t\t\t\t} else if (ajax.status == 404) {\n\t\t\t\t\tdocument.getElementById(\"respuesta\").value = '0';\n\t\t\t\t\tenviarMensaje();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t\n\t\tajax.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');\n\t\tajax.send();\n\t}\n\n\tfunction obtenerNumeroOperacion(idCompanyFastClient, userFastClient, documentSigningProcessFastClient,idProcessFastClient,subdomainFastClient,boundingBoxFastClient,HolographicPathFastClient,pageFastClient,methodOne,methodTwo,methodUrl,apikey,urlStepFuction,urlSignFastClientTransaction,methodSignFastClientTransaction,methodSignFastClientTransactionContinue, activateTimbrado, activeQr, qrPage, issetRecipient){\n\t\t\n\t var numeroProcesamiento = \"\";\n\t\t\tnumeroProcesamiento = \"123456789\";\n\t\t\t\n\t\t\tvar rutaSignFastClient = \"SignFastClient://sign/$\" + \n\t\t\t\t\t\t\t\t\t\tidCompanyFastClient\t\t\t+ \"&\" + \n\t\t\t\t\t\t\t\t\t\tuserFastClient \t\t\t+ \"&\" + \n\t\t\t\t\t\t\t\t\t\tdocumentSigningProcessFastClient \t\t\t+ \"&\" + \n\t\t\t\t\t\t\t\t\t\tidProcessFastClient \t\t\t+ \"&\" + \n\t\t\t\t\t\t\t\t\t\tsubdomainFastClient+ \"&\" +\n\t\t\t\t\t\t\t\t\t\tboundingBoxFastClient+ \"&\" +\n\t\t\t\t\t\t\t\t\t\tHolographicPathFastClient+ \"&\" +\n\t\t\t\t\t\t\t\t\t\tpageFastClient+ \"&\" +\n\t\t\t\t\t\t\t\t\t\tmethodOne+ \"&\" +\n\t\t\t\t\t\t\t\t\t\tmethodTwo+ \"&\" +\n\t\t\t\t\t\t\t\t\t\tmethodUrl+ \"&\" +\n\t\t\t\t\t\t\t\t\t\tapikey+ \"&\" +\n\t\t\t\t\t\t\t\t\t\turlStepFuction+ \"&\" +\n\t\t\t\t\t\t\t\t\t\turlSignFastClientTransaction+ \"&\" +\n\t\t\t\t\t\t\t\t\t\tmethodSignFastClientTransaction + \"&\" +\n\t\t\t\t\t\t\t\t\t\tmethodSignFastClientTransactionContinue + \"&\" +\n\t\t\t\t\t\t\t\t\t\tactivateTimbrado + \"&\" +\n\t\t\t\t\t\t\t\t\t\tactiveQr + \"&\" +\n\t\t\t\t\t\t\t\t\t\tqrPage + \"&\" +\n\t\t\t\t\t\t\t\t\t\tissetRecipient;\n\n\t\t\tconsole.log(rutaSignFastClient)\n\t\t\tlocation.href = rutaSignFastClient;\n\t\treturn numeroProcesamiento;\n\t}\n\n\tfunction crearAjax() {\n\t\tvar xmlhttp = false;\n\t\ttry {\n\t\t\txmlhttp = new ActiveXObject(\"Msxml2.XMLHTTP\");\n\t\t} catch (e) {\n\t\t\ttry {\n\t\t\t\txmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t\t\t} catch (E) {\n\t\t\t\tif (!xmlhttp && typeof XMLHttpRequest != 'undefined'){\n\t\t\t\t\txmlhttp = new XMLHttpRequest();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn xmlhttp;\n\t}\n\t\n\tfunction obtenerRespuestaFirma(respuestaFirma){\n\t\treturn respuestaFirma.split(\"»\");\n\t}\n\t\n\t"],"sourceRoot":"webpack:///"}