(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{
/***/ "./$$_lazy_route_resource lazy recursive":
/*!******************************************************!*\
!*** ./$$_lazy_route_resource lazy namespace object ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
function webpackEmptyAsyncContext(req) {
// Here Promise.resolve().then() is used instead of new Promise() to prevent
// uncaught exception popping up in devtools
return Promise.resolve().then(function() {
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
});
}
webpackEmptyAsyncContext.keys = function() { return []; };
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
module.exports = webpackEmptyAsyncContext;
webpackEmptyAsyncContext.id = "./$$_lazy_route_resource lazy recursive";
/***/ }),
/***/ "./node_modules/raw-loader/index.js!./src/app/app.component.html":
/*!**************************************************************!*\
!*** ./node_modules/raw-loader!./src/app/app.component.html ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "
No hay artículos relacionados.
\n{{ testimonial.company }}
\n \n{{ 'SUPPLIER_REGISTER.SR_USER_PHONE_INVALID' | translate }}
\n{{ 'SUPPLIER_REGISTER.SR_INPUT_MANDATORY' | translate }}
\n{{ 'SUPPLIER_REGISTER.SR_USER_PHONE_INVALID' | translate }}
\n{{ 'SUPPLIER_REGISTER.SR_USER_PHONE_INVALID' | translate }}
\n{{'SUPPLIER_REGISTER.SR_VALIDATING_CHILE' | translate}}
\n{{'SUPPLIER_REGISTER.SR_VALIDATED' | translate}}
\n{{'SUPPLIER_REGISTER.SR_VALIDATING' | translate}}
\n{{'SUPPLIER_REGISTER.SR_VALIDATED' | translate}}
\n 2\">{{'SUPPLIER_REGISTER.SR_MANDATORY' | translate}} (*)
\n {{'SUPPLIER_REGISTER.SR_MANDATORY_CL' | translate}}\n {{'SUPPLIER_REGISTER.SR_MANDATORY_GB' | translate}}\n
{{'SUPPLIER_REGISTER.SR_CAPTCHA' | translate}}
\n(' + $('#nodes-products').find('.jstree-search').length + ')
'); $('.countServ').html('(' + $('#nodes-services').find('.jstree-search').length + ')
'); } else { if ($('#search').val() != '') { $('.countPro').html('(' + $('#nodes-products').find('.jstree-search').length + ')
'); $('.countServ').html('(' + $('#nodes-services').find('.jstree-search').length + ')
'); } else { $('.countPro').html(''); $('.countServ').html(''); } } $(dataSearching).each(function (key, value) { var ulTestSearching = $('#' + value.id + '').children(); var liUlTestSearching = ulTestSearching.children(); $(liUlTestSearching).each(function (key, value) { var attributesChild = $('#' + value.id + '').children(); var validateClass = attributesChild[1].className; var ulChildrenLi = attributesChild[2]; if (validateClass.indexOf('jstree-search') == -1) { if (ulChildrenLi) { var responseDelete = removeNodeSearching(ulChildrenLi); if (responseDelete == false) { $('#' + value.id + '').css('display', 'none'); } else { $nodesContainer.jstree('disable_node', value.id); } var ulChildrenLi2 = $(ulChildrenLi).children(); ulChildrenLi2.each(function (key2, value2) { var openSecondsArea = $(value2).find('.jstree-icon.jstree-ocl'); $(openSecondsArea).each(function (key4, value4) { var newParentAttribute = value4.parentElement.getAttribute('id'); var childOfTheSecondLevel = $('#' + newParentAttribute + '').children(); var ariaLevel2 = $('#' + newParentAttribute + '').attr('aria-expanded'); if (ariaLevel2 == 'false') { childOfTheSecondLevel[0].click(); } var validateSecondClass = $(childOfTheSecondLevel[1]).attr('class'); if (validateSecondClass.indexOf('jstree-search') == -1) { if (childOfTheSecondLevel[2]) { var responseDelete2 = removeNodeSearching(childOfTheSecondLevel[2]); if (responseDelete2 == false) { $('#' + newParentAttribute + '').css('display', 'none'); } else { $nodesContainer.jstree('disable_node', newParentAttribute); } var thirdLevelsChilds = $(childOfTheSecondLevel[2]).children(); $(thirdLevelsChilds).each(function (key6, value6) { var thirdCHildsBody = $('#' + value6.id + '').children(); var thirdClassName = $(thirdCHildsBody[1]).attr('class'); if (thirdClassName.indexOf('jstree-search') == -1) { $('#' + value6.id + '').css('display', 'none'); } }); } } }); }); } else { $('#' + value.id + '').css('display', 'none'); } } else { var ulChildrenLi2 = $(ulChildrenLi).children(); ulChildrenLi2.each(function (key2, value2) { var openSecondsArea = $(value2).find('.jstree-icon.jstree-ocl'); $(openSecondsArea).each(function (key4, value4) { var newParentAttribute = value4.parentElement.getAttribute('id'); var childOfTheSecondLevel = $('#' + newParentAttribute + '').children(); var ariaLevel2 = $('#' + newParentAttribute + '').attr('aria-expanded'); if (ariaLevel2 == 'false') { childOfTheSecondLevel[0].click(); } }); }); } }); }); }); }; SuppliersRegisterComponent.ctorParameters = function () { return [ { type: _services_system_api_service__WEBPACK_IMPORTED_MODULE_3__["SystemApiService"] }, { type: _services_vali_rut_service__WEBPACK_IMPORTED_MODULE_4__["ValiRutService"] }, { type: _ngx_translate_core__WEBPACK_IMPORTED_MODULE_6__["TranslateService"] }, { type: _services_phone_input_service__WEBPACK_IMPORTED_MODULE_7__["PhoneService"] } ]; }; tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])() ], SuppliersRegisterComponent.prototype, "estado", void 0); SuppliersRegisterComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({ selector: 'app-suppliers-register', template: __webpack_require__(/*! raw-loader!./suppliers-register.component.html */ "./node_modules/raw-loader/index.js!./src/app/suppliers-register/suppliers-register.component.html") }) ], SuppliersRegisterComponent); return SuppliersRegisterComponent; }()); /***/ }), /***/ "./src/app/suppliers/suppliers.component.ts": /*!**************************************************!*\ !*** ./src/app/suppliers/suppliers.component.ts ***! \**************************************************/ /*! exports provided: SuppliersComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuppliersComponent", function() { return SuppliersComponent; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_system_api_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/system-api.service */ "./src/app/services/system-api.service.ts"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); //import * as amplitude from 'amplitude-js'; //amplitude function supplierPageVisit() { amplitude.getInstance().logEvent('webSupplierPageVisit'); } function preRegister() { amplitude.getInstance().logEvent('webPreRegister'); } var SuppliersComponent = /** @class */ (function () { function SuppliersComponent(appService, systemApiService, route) { var _this = this; this.appService = appService; this.systemApiService = systemApiService; this.route = route; this.loading = true; //api statistics this.statisticsBar = { totalSuppliers: 0, totalBuyers: 0, totalProposals: 0, totalRequirements: 0 }; this.company = {}; this.user = {}; this.statusEmail = true; this.errors = []; this.statusHttp = 0; this.validateEmail = function (email) { var regOnlyEmail = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/; _this.statusEmail = regOnlyEmail.test(email); }; } SuppliersComponent.prototype.format2 = function (value) { var number = Math.floor(value / 100) * 100; return number.toString().replace(/\B(?=(\d{3})+(?!\d))/g, '.'); }; SuppliersComponent.prototype.ngOnInit = function () { //amplitude supplierPageVisit(); //api statistics this.getStatistics(); }; //api statistics SuppliersComponent.prototype.getStatistics = function () { var _this = this; this.systemApiService.getStatisticsBar() .subscribe(function (result) { _this.statisticsBar = result; _this.loading = false; }); }; SuppliersComponent.prototype.changeStatusHttp = function (numError) { this.statusHttp = numError; }; SuppliersComponent.prototype.resetValidRut = function () { this.errors = []; this.statusHttp = 200; }; SuppliersComponent.prototype.sendPreData = function () { var _this = this; this.errors = []; this.appService.determinateValuesVarPreRegister(this.company.name, this.user.email, this.company.rut.trim()); var preParams = { data: { "name": this.company.name, "email": this.user.email, "rut": this.company.rut } }; //amplitude preRegister(); this.appService.checkValidationPreRegister(preParams).subscribe(function (result) { _this.route.navigate(['proveedores/registro']); }, function (error) { _this.changeStatusHttp(error.status); if (error.status === 400) { _this.errors = error.error; setTimeout(function () { _this.resetValidRut(); }, 200000); } else { _this.errors = ['Lo sentimos experimentamos problemas, comuniquese con nosotros para mayor información Telf :(+56) 9 4003 0866 ,(+56) 2 3251 2550.']; } }); }; SuppliersComponent.ctorParameters = function () { return [ { type: _services_system_api_service__WEBPACK_IMPORTED_MODULE_2__["SystemApiService"] }, { type: _services_system_api_service__WEBPACK_IMPORTED_MODULE_2__["SystemApiService"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] } ]; }; SuppliersComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'app-suppliers', template: __webpack_require__(/*! raw-loader!./suppliers.component.html */ "./node_modules/raw-loader/index.js!./src/app/suppliers/suppliers.component.html") }) ], SuppliersComponent); return SuppliersComponent; }()); /***/ }), /***/ "./src/environments/environment.ts": /*!*****************************************!*\ !*** ./src/environments/environment.ts ***! \*****************************************/ /*! exports provided: environment */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "environment", function() { return environment; }); var environment = { production: false, systemUrl: 'https://system.wherex.com', systemApiPath: '/website/api/1', wordpressUrl: 'https://blog.aqmarket.com', wordpressApiPath: '/wp-json/wp/v2', recaptchav2SiteKey: '6LdzNHQUAAAAAIK5gM7CmOsTaEuYF0ehs6raUFGS', recaptchav2SiteSecret: '6LdzNHQUAAAAADu3r-IV6PDB4jUTBeWzckcDo8L2', wherexPayLanding: 'https://pay.wherex.com/onboarding/cliente-nuevo/registro-nuevo?utm_source=Onboarding&utm_medium=Cliente-Nuevo&utm_campaign=Termina%20tu%20registro&utm_term=UTM_source', wherexPayInfoUrl: 'https://wherex.cl/wherex-pay-proveedores/' }; /***/ }), /***/ "./src/main.ts": /*!*********************!*\ !*** ./src/main.ts ***! \*********************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser-dynamic */ "./node_modules/@angular/platform-browser-dynamic/fesm5/platform-browser-dynamic.js"); /* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app/app.module */ "./src/app/app.module.ts"); /* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./environments/environment */ "./src/environments/environment.ts"); if (_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].production) { Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["enableProdMode"])(); } Object(_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__["platformBrowserDynamic"])().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_2__["AppModule"]) .catch(function (err) { return console.error(err); }); /***/ }), /***/ 0: /*!***************************!*\ !*** multi ./src/main.ts ***! \***************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! /opt/atlassian/pipelines/agent/build/src/main.ts */"./src/main.ts"); /***/ }) },[[0,"runtime","vendor"]]]); //# sourceMappingURL=main-es5.js.map
\"{{wgd.comment | translate}}\"
\n{{ wgd.author }}
\n{{wgd.charge | translate}} - {{ wgd.company }}
\n