{"version":3,"sources":["webpack:///./node_modules/core-js/internals/to-string-tag-support.js","webpack:///./src/apps/shared/components/ContractFinish.vue","webpack:///./src/apps/shared/components/ContractFinish.vue?898a","webpack:///./src/apps/shared/components/ContractFinish.vue?896d","webpack:///./src/apps/shared/components/ContractFinish.vue?24d3","webpack:///./node_modules/core-js/internals/get-substitution.js","webpack:///./src/apps/shared/services/cupe-service.ts","webpack:///./src/apps/urban-mobility/quote/finalPayment.vue","webpack:///./src/apps/urban-mobility/quote/finalPayment.vue?db53","webpack:///./src/apps/urban-mobility/quote/finalPayment.vue?7c2b","webpack:///./src/apps/urban-mobility/quote/finalPayment.vue?699d","webpack:///./node_modules/core-js/internals/is-regexp.js","webpack:///./node_modules/core-js/internals/to-string.js","webpack:///./node_modules/core-js/modules/es.string.replace-all.js","webpack:///./src/apps/shared/services/crm-service.ts","webpack:///./src/apps/shared/services/email-service.ts","webpack:///./node_modules/core-js/internals/regexp-get-flags.js","webpack:///./node_modules/core-js/internals/regexp-flags.js","webpack:///./node_modules/core-js/internals/classof.js"],"names":["wellKnownSymbol","TO_STRING_TAG","test","module","exports","String","render","_vm","this","_c","_self","_setupProxy","staticClass","attrs","titleAndPromotionDetails","icon","src","_m","_v","_s","externalIdentifier","staticRenderFns","defineComponent","name","props","type","Object","required","data","mounted","sessionStorage","getItem","component","uncurryThis","toObject","floor","Math","charAt","replace","stringSlice","slice","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","matched","str","position","captures","namedCaptures","replacement","tailPos","length","m","symbols","undefined","match","ch","capture","n","f","GetCUPEUrl","productId","email","http","get","params","then","response","Finish","apellido","dni","localidad","mail","nombre","nroCotizacion","premioMensual","productoComercial","ramo","telephoneArea","telephoneNumber","on","getFilePath","Vue","extend","components","ContractFinish","methods","changeTitleAndIcon","newTitle","$emit","updateByProductGoogleAnalytics","window","globalThis","dataLayer","productGtmName","setItem","FilePathService","location","href","getMailValues","clientData","JSON","parse","planData","vehicleData","productData","nombreCliente","firstName","toLowerCase","split","toUpperCase","substring","effectDate","Date","vigencyDate","setFullYear","getFullYear","mailValues","stringify","parameters","value","toString","planDescription","getDate","getMonth","productDescription","vehicleBrand","groupOfAmparoTheftOptions","capital","to","from","NF","UI","Page","block","leadId","Number","isInteger","parseInt","replaceAll","address","FormattedPremioMensual","includes","push","CUPEService","lastName","documentNumber","PricingId","areaCode","telephone","FinishResult","CRMCotizadorWebService","CreateOrEditLead","MailService","sendMail","notificationType","result","Notification","Type","SUCCESS","ERROR","notificationTitle","notificationContent","show","title","content","Positions","TOP_RIGHT","clickClose","autoHideDelay","unblock","catch","isObject","classof","MATCH","it","isRegExp","$String","argument","TypeError","$","call","requireObjectCoercible","isCallable","isNullOrUndefined","getMethod","getRegExpFlags","getSubstitution","IS_PURE","REPLACE","$TypeError","indexOf","max","stringIndexOf","string","searchValue","fromIndex","target","proto","replaceValue","IS_REG_EXP","flags","replacer","searchString","functionalReplace","searchLength","advanceBy","O","endOfLastMatch","url","toQualify","applicationStep","additionalInformation","post","D365_AddFinishedQuotation","model","hasOwn","isPrototypeOf","regExpFlags","RegExpPrototype","RegExp","prototype","R","anObject","that","hasIndices","global","ignoreCase","multiline","dotAll","unicode","unicodeSets","sticky","TO_STRING_TAG_SUPPORT","classofRaw","$Object","CORRECT_ARGUMENTS","arguments","tryGet","key","error","tag","callee"],"mappings":"qGAAA,IAAIA,EAAkB,EAAQ,QAE1BC,EAAgBD,EAAgB,eAChCE,EAAO,GAEXA,EAAKD,GAAiB,IAEtBE,EAAOC,QAA2B,eAAjBC,OAAOH,I,oCCPxB,IAAII,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,OAAO,CAACH,EAAG,MAAM,CAACG,YAAY,eAAe,CAACH,EAAG,MAAM,CAACI,MAAM,CAAC,IAAMN,EAAIO,yBAAyBC,KAAKC,IAAI,IAAM,qBAAqB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AActF","file":"js/chunk-7e41bd45.js","sourcesContent":["var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"text-center\"},[_c('img',{attrs:{\"src\":_vm.titleAndPromotionDetails.icon.src,\"alt\":\".media-object\"}})]),_c('div',{staticClass:\"text-center\"},[_vm._m(0),_c('h2',{staticClass:\"text-brand-secondary\"},[_c('b',[_vm._v(\"Tu número de cotización es \"+_vm._s(_vm.externalIdentifier))])]),_c('div',{staticClass:\"margin-bottom-half\"},[_vm._v(\" Enviaremos la documentación correspondiente al mail que nos informaste. \")]),_c('div',{staticClass:\"margin-bottom-half\"},[_vm._v(\" No olvides revisar tu casilla de correo no deseado. \")])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('h3',{staticClass:\"text-brand-success margin-bottom-half\"},[_c('b',[_vm._v(\"¡Contratación exitosa!\")])])\n}]\n\nexport { render, staticRenderFns }","\r\n import { defineComponent } from 'vue';\r\n import { TitleAndPromotionsDetails } from '@/apps/shared/models/titleAndPromotionsDetails';\r\n\r\n export default defineComponent({\r\n name: 'ContractFinish',\r\n props: {\r\n titleAndPromotionDetails: {\r\n type: Object as () => TitleAndPromotionsDetails,\r\n required: true,\r\n }\r\n },\r\n data() {\r\n return {\r\n externalIdentifier: null,\r\n }\r\n },\r\n mounted() {\r\n this.externalIdentifier = sessionStorage.getItem(\"PricingId\");\r\n }\r\n });\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContractFinish.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContractFinish.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ContractFinish.vue?vue&type=template&id=266d415a&\"\nimport script from \"./ContractFinish.vue?vue&type=script&lang=ts&\"\nexport * from \"./ContractFinish.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar floor = Math.floor;\nvar charAt = uncurryThis(''.charAt);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\nvar SUBSTITUTION_SYMBOLS = /\\$([$&'`]|\\d{1,2}|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&'`]|\\d{1,2})/g;\n\n// `GetSubstitution` abstract operation\n// https://tc39.es/ecma262/#sec-getsubstitution\nmodule.exports = function (matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return replace(replacement, symbols, function (match, ch) {\n var capture;\n switch (charAt(ch, 0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return stringSlice(str, 0, position);\n case \"'\": return stringSlice(str, tailPos);\n case '<':\n capture = namedCaptures[stringSlice(ch, 1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n};\n","import http from \"../http/http-config\";\r\nimport { CUPECheckout } from \"../models/cupeCheckout\";\r\n\r\nexport default new class CUPEService {\r\n\r\n GetCUPEUrl(productId, email): Promise {\r\n return http.get(\"CUPE\", {\r\n params: {\r\n productId,\r\n email\r\n }\r\n }).then(response => response.data)\r\n };\r\n\r\n Finish(externalIdentifier, productId, apellido: string | null | undefined, dni: string | null | undefined, localidad: string | null | undefined, mail: string | null | undefined, nombre: string | null | undefined, nroCotizacion: string | null | undefined, premioMensual: number | null | undefined, productoComercial: string | null | undefined, ramo: string | null | undefined, telephoneArea: string | null | undefined, telephoneNumber: string | null | undefined): Promise {\r\n return http.get(\"CUPE/Finish\", {\r\n params: {\r\n externalIdentifier\r\n , productId\r\n , ...(apellido != null && { apellido })\r\n , ...(dni != null && { dni })\r\n , ...(localidad != null && { localidad })\r\n , ...(mail != null && { mail })\r\n , ...(nombre != null && { nombre })\r\n , ...(nroCotizacion != null && { nroCotizacion })\r\n , ...(premioMensual != null && { premioMensual })\r\n , ...(productoComercial != null && { productoComercial })\r\n , ...(ramo != null && { ramo })\r\n , ...(telephoneArea != null && { telephoneArea })\r\n , ...(telephoneNumber != null && { telephoneNumber })\r\n }\r\n}).then(response => response.data)\r\n };\r\n}","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"margin-double\"},[_c('div',{staticClass:\"col-md-offset-1\"},[_c('div',{staticClass:\"col-md-11 col-xs-12\"},[_c('div',{staticClass:\"panel panel-default\"},[_c('div',{staticClass:\"panel-body\",attrs:{\"aria-multiselectable\":\"true\"}},[_c('contract-finish',{attrs:{\"titleAndPromotionDetails\":_vm.titleAndPromotionDetails}}),_c('div',{staticClass:\"margin-top-half text-center\"},[_c('button',{staticClass:\"btn btn-default\",on:{\"click\":_vm.getFilePath}},[_vm._v(\"Volver al inicio\")])])],1)])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n import Vue from 'vue';\r\n import CUPEService from '@/apps/shared/services/cupe-service';\r\n import MailService from '@/apps/shared/services/email-service';\r\n import CRMCotizadorWebService from '@/apps/shared/services/crm-service';\r\n import FilePathService from '@/apps/shared/services/filePath-service';\r\n import ContractFinish from \"@/apps/shared/components/ContractFinish.vue\";\r\n import { TitleAndPromotionsDetails } from '@/apps/shared/models/titleAndPromotionsDetails';\r\n export default Vue.extend({\r\n components: {\r\n ContractFinish\r\n },\r\n name: 'UrbanMobilityFinalPayment',\r\n data() {\r\n return {\r\n titleAndPromotionDetails: {\r\n icon: {\r\n src: '/icons/check.png',\r\n },\r\n } as TitleAndPromotionsDetails,\r\n }\r\n },\r\n methods: {\r\n changeTitleAndIcon() {\r\n const newTitle = 'Movilidad urbana';\r\n this.$emit('updateTitle', newTitle);\r\n },\r\n\r\n updateByProductGoogleAnalytics() {\r\n window.globalThis.dataLayer = window.globalThis.dataLayer || [];\r\n const productGtmName = 'DefaultUrbanMobilityGTMInfo';\r\n this.$emit('updateByProductGoogleAnalytics', productGtmName);\r\n },\r\n\r\n getFilePath() {\r\n sessionStorage.setItem(\"ExitOrContinueModal\", \"false\");\r\n FilePathService.getFilePath(\"UrlBase\")\r\n .then(response => {\r\n window.location.href = response + \"movilidad\";\r\n });\r\n },\r\n getMailValues() {\r\n var clientData = JSON.parse(sessionStorage.getItem(\"stepOneData\"));\r\n var planData = JSON.parse(sessionStorage.getItem(\"PlanSelected\"));\r\n var vehicleData = JSON.parse(sessionStorage.getItem(\"DataVehicle\"));\r\n var productData = JSON.parse(sessionStorage.getItem(\"ProductDataSelected\"));\r\n var nombreCliente = clientData.firstName.toLowerCase().split(' ')\r\n var firstName = nombreCliente[0].charAt(0).toUpperCase() + nombreCliente[0].substring(1);\r\n var effectDate = new Date();\r\n var vigencyDate = new Date();\r\n vigencyDate.setFullYear(vigencyDate.getFullYear() + 1);\r\n\r\n var mailValues = JSON.stringify({\r\n parameters: [\r\n {\r\n name: \"@ReportCode\",\r\n value: \"26\"\r\n },\r\n {\r\n name: \"@contratante\",\r\n value: firstName.toString()\r\n },\r\n {\r\n name: \"@nombrePlan\",\r\n value: planData.planDescription.toString()\r\n },\r\n {\r\n name: \"@vigenciaDesde\",\r\n value: (effectDate.getDate() + '/' + (effectDate.getMonth() + 1) + '/' + effectDate.getFullYear())\r\n },\r\n {\r\n name: \"@vigenciaHasta\",\r\n value: (vigencyDate.getDate() + '/' + (vigencyDate.getMonth() + 1) + '/' + vigencyDate.getFullYear())\r\n },\r\n {\r\n name: \"@costoMensual\",\r\n value: planData.premioMensual\r\n },\r\n {\r\n name: \"@vehicleSelected\",\r\n value: productData.productDescription.toString()\r\n },\r\n {\r\n name: \"@vehicleBrand\",\r\n value: vehicleData.vehicleBrand.toString()\r\n },\r\n {\r\n name: \"@sumaAsegurada\",\r\n value: planData.groupOfAmparoTheftOptions[0].capital.toString()\r\n }\r\n ],\r\n to: clientData.email,\r\n from: \"cotizador@sancorseguros.com\",\r\n productId: 936\r\n });\r\n return mailValues;\r\n },\r\n },\r\n mounted() {\r\n NF.UI.Page.block();\r\n this.changeTitleAndIcon();\r\n this.updateByProductGoogleAnalytics();\r\n sessionStorage.setItem(\"ExitOrContinueModal\", \"true\");\r\n var leadId = JSON.parse(sessionStorage.getItem(\"LeadId\"));\r\n var planData = JSON.parse(sessionStorage.getItem(\"PlanSelected\"));\r\n var externalIdentifier = sessionStorage.getItem(\"PricingId\");\r\n var clientData = JSON.parse(sessionStorage.getItem(\"stepOneData\"));\r\n var premioMensual = Number.isInteger(planData.premioMensual) ? planData.premioMensual : parseInt(planData.premioMensual.replaceAll(\".\", \"\"));\r\n var localidad = clientData.address;\r\n var ramo = \"Movilidad\";\r\n var FormattedPremioMensual = planData.premioMensual.toString().includes(\".\") ? planData.premioMensual.toString().replaceAll('.', '') : planData.premioMensual;\r\n\r\n window.globalThis.dataLayer = window.globalThis.dataLayer || [];\r\n window.globalThis.dataLayer.push({\r\n 'product': 'movilidad',\r\n 'event': 'cotizador-movilidad-venta-completa',\r\n 'value': FormattedPremioMensual\r\n });\r\n\r\n //--------------Llamada al AddFinishedQuotation (Dentro del finish())---------------------\r\n CUPEService.Finish(parseInt(externalIdentifier), 936, clientData.lastName, clientData.documentNumber, localidad, clientData.email, clientData.firstName, planData.PricingId[0].toString(), premioMensual, planData.planDescription.toString(), ramo, clientData.areaCode, clientData.telephone).then(FinishResult => {\r\n if (FinishResult) {\r\n CRMCotizadorWebService.CreateOrEditLead(leadId, null, location.href, null, null, 936, true, \"7\", null, null, null);\r\n //ENVIO DE EMAIL\r\n NF.UI.Page.block();\r\n MailService.sendMail(this.getMailValues()).then(response => {\r\n let notificationType = response.result ? NF.Notification.Type.SUCCESS : NF.Notification.Type.ERROR;\r\n let notificationTitle = response.result ? 'Mail Enviado' : 'Error';\r\n let notificationContent = response.result ? 'Mail enviado exitosamente.' : 'Se produjo un error inesperado.';\r\n NF.Notification.show({\r\n type: notificationType,\r\n title: notificationTitle,\r\n content: notificationContent,\r\n position: NF.Notification.Positions.TOP_RIGHT,\r\n clickClose: true,\r\n autoHideDelay: 10000,\r\n });\r\n NF.UI.Page.unblock();\r\n }).catch(() => NF.UI.Page.unblock());\r\n }\r\n else {\r\n window.globalThis.dataLayer.push({\r\n 'product': 'movilidad',\r\n 'event': 'errorServidor',\r\n 'paso': 'cotizador-movilidad-venta-completa'\r\n });\r\n }\r\n });\r\n //---------------------------------------------------------------------\r\n }\r\n });\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./finalPayment.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./finalPayment.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./finalPayment.vue?vue&type=template&id=ae2afb02&\"\nimport script from \"./finalPayment.vue?vue&type=script&lang=ts&\"\nexport * from \"./finalPayment.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar isCallable = require('../internals/is-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isRegExp = require('../internals/is-regexp');\nvar toString = require('../internals/to-string');\nvar getMethod = require('../internals/get-method');\nvar getRegExpFlags = require('../internals/regexp-get-flags');\nvar getSubstitution = require('../internals/get-substitution');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar REPLACE = wellKnownSymbol('replace');\nvar $TypeError = TypeError;\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\nvar max = Math.max;\n\nvar stringIndexOf = function (string, searchValue, fromIndex) {\n if (fromIndex > string.length) return -1;\n if (searchValue === '') return fromIndex;\n return indexOf(string, searchValue, fromIndex);\n};\n\n// `String.prototype.replaceAll` method\n// https://tc39.es/ecma262/#sec-string.prototype.replaceall\n$({ target: 'String', proto: true }, {\n replaceAll: function replaceAll(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, replacement;\n var position = 0;\n var endOfLastMatch = 0;\n var result = '';\n if (!isNullOrUndefined(searchValue)) {\n IS_REG_EXP = isRegExp(searchValue);\n if (IS_REG_EXP) {\n flags = toString(requireObjectCoercible(getRegExpFlags(searchValue)));\n if (!~indexOf(flags, 'g')) throw $TypeError('`.replaceAll` does not allow non-global regexes');\n }\n replacer = getMethod(searchValue, REPLACE);\n if (replacer) {\n return call(replacer, searchValue, O, replaceValue);\n } else if (IS_PURE && IS_REG_EXP) {\n return replace(toString(O), searchValue, replaceValue);\n }\n }\n string = toString(O);\n searchString = toString(searchValue);\n functionalReplace = isCallable(replaceValue);\n if (!functionalReplace) replaceValue = toString(replaceValue);\n searchLength = searchString.length;\n advanceBy = max(1, searchLength);\n position = stringIndexOf(string, searchString, 0);\n while (position !== -1) {\n replacement = functionalReplace\n ? toString(replaceValue(searchString, position, string))\n : getSubstitution(searchString, string, position, [], undefined, replaceValue);\n result += stringSlice(string, endOfLastMatch, position) + replacement;\n endOfLastMatch = position + searchLength;\n position = stringIndexOf(string, searchString, position + advanceBy);\n }\n if (endOfLastMatch < string.length) {\n result += stringSlice(string, endOfLastMatch);\n }\n return result;\n }\n});\n","import http from \"../http/http-config\";\r\nexport default new class CRMCotizadorWebService {\r\n\r\n CreateOrEditLead(\r\n leadId,email, url, telephoneArea, telephoneNumber, productId, toQualify, applicationStep, additionalInformation: { [key: string]: string }, lastName , firstName\r\n ): Promise {\r\n return http.post(\"CreateOrEditLead\", { \r\n leadId\r\n ,email\r\n , url\r\n , telephoneArea\r\n , telephoneNumber\r\n , productId\r\n , toQualify\r\n , applicationStep\r\n , additionalInformation\r\n , lastName\r\n , firstName\r\n }).then(response => response.data)\r\n }; \r\n\r\n D365_AddFinishedQuotation(\r\n apellido, dni, localidad, mail, nombre, nroCotizacion, premioMensual, productoComercial, ramo, telephoneArea, telephoneNumber\r\n ): Promise {\r\n return http.post(\"D365_AddFinishedQuotation\", {\r\n apellido\r\n , dni\r\n , localidad\r\n , mail\r\n , nombre\r\n , nroCotizacion\r\n , premioMensual\r\n , productoComercial\r\n , ramo\r\n , telephoneArea\r\n , telephoneNumber\r\n }).then(response => response.data)\r\n };\r\n}","import http from \"../http/http-config\";\r\nimport CustomSendMailResponse from \"../models/customSendMailResponse\"\r\n\r\nexport default new class MailService {\r\n sendMail(model: string): Promise {\r\n return http.post(\"Mail\", model).then(response => response.data);\r\n }\r\n}","var call = require('../internals/function-call');\nvar hasOwn = require('../internals/has-own-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar regExpFlags = require('../internals/regexp-flags');\n\nvar RegExpPrototype = RegExp.prototype;\n\nmodule.exports = function (R) {\n var flags = R.flags;\n return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)\n ? call(regExpFlags, R) : flags;\n};\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.hasIndices) result += 'd';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.unicodeSets) result += 'v';\n if (that.sticky) result += 'y';\n return result;\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n"],"sourceRoot":""}