(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([[8745],{ /***/ 18745: /*!**************************************************************************!*\ !*** ./src/app/register/identity-validator/identity-validator.module.ts ***! \**************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "IdentityValidatorPageModule": () => (/* binding */ IdentityValidatorPageModule) /* harmony export */ }); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ 61380); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/shared-module/shared-module.module */ 69270); /* harmony import */ var _identity_validator_page__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./identity-validator.page */ 23328); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_3__); const routes = [ { path: '', component: _identity_validator_page__WEBPACK_IMPORTED_MODULE_2__.IdentityValidatorPage } ]; class IdentityValidatorPageModule { } IdentityValidatorPageModule.ɵfac = function IdentityValidatorPageModule_Factory(t) { return new (t || IdentityValidatorPageModule)(); }; IdentityValidatorPageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({ type: IdentityValidatorPageModule }); IdentityValidatorPageModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({ imports: [src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_1__.SharedModuleModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule.forChild(routes)] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](IdentityValidatorPageModule, { declarations: [_identity_validator_page__WEBPACK_IMPORTED_MODULE_2__.IdentityValidatorPage], imports: [src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_1__.SharedModuleModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule] }); })(); /***/ }), /***/ 23328: /*!************************************************************************!*\ !*** ./src/app/register/identity-validator/identity-validator.page.ts ***! \************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "IdentityValidatorPage": () => (/* binding */ IdentityValidatorPage) /* harmony export */ }); /* harmony import */ var _Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ 2508); /* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/services */ 17253); /* harmony import */ var _shared_services_focus_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/services/focus.service */ 37763); /* harmony import */ var _shared_services_init_register_has_company_storage_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @shared/services/init.register.has-company.storage.service */ 91056); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 90944); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ionic/angular */ 93819); /* harmony import */ var _shared_components_full_logo_full_logo_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../shared/components/full-logo/full-logo.component */ 33159); /* harmony import */ var _shared_directives__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @shared/directives */ 94221); /* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ngx-translate/core */ 38699); function IdentityValidatorPage_div_27_Template(rf, ctx) { if (rf & 1) { const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 16)(1, "ion-button", 17); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function IdentityValidatorPage_div_27_Template_ion_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r2); const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.goToForeignDocument()); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 18)(3, "span", 14); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](5, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](5, 1, "PG_IDENTIFY_CPF_BTN_FOREIGN"), ""); } } const _c0 = function (a0) { return { "min-height": a0, "position": "relative" }; }; class IdentityValidatorPage { constructor(formBuilder, api, notificatorService, loadingService, keyboardService, deviceInfoService, navigationService, logService, translateConfigService, focusService, saveFlowStorageResetKeyService, showToastModalErroCodeZero, initRegisterHasCompanyStorageService) { var _this = this; this.formBuilder = formBuilder; this.api = api; this.notificatorService = notificatorService; this.loadingService = loadingService; this.keyboardService = keyboardService; this.deviceInfoService = deviceInfoService; this.navigationService = navigationService; this.logService = logService; this.translateConfigService = translateConfigService; this.focusService = focusService; this.saveFlowStorageResetKeyService = saveFlowStorageResetKeyService; this.showToastModalErroCodeZero = showToastModalErroCodeZero; this.initRegisterHasCompanyStorageService = initRegisterHasCompanyStorageService; this.onSubmit = () => { const document = this.clearInput(this.documentForm.controls.document.value); const validationResult = this.validateInput(document); if (!validationResult) { this.logService.logError('user::register-document'); const title = this.translateConfigService.translate('PG_IDENTIFY_CPF_TOAST_INVALID_DATA_TITLE'); const message = this.translateConfigService.translate('PG_IDENTIFY_CPF_TOAST_INVALID_DATA_MESSAGE'); const notification = { title, message, type: 'error' }; this.notificatorService.notify(notification); } else { let onHideSubscription = null; const onKeyboardHideCallback = () => { if (onHideSubscription) { onHideSubscription.unsubscribe(); } this.loadingService.show(this.translateConfigService.translate('LOADING_PROCESSING_DATA'), 'identity-validator-document'); this.api.verifyDocument(document).subscribe(this.onSubmitSuccessResponse, this.onSubmitErrorResponse); }; onHideSubscription = this.keyboardService.onHideObservable?.subscribe(onKeyboardHideCallback); if (!this.keyboardService.isVisible()) { onKeyboardHideCallback(); } else { this.keyboardService.hide(); } } }; this.clearInput = data => { data = data.replace(/\D/g, ''); data = data.slice(0, 11); return data; }; this.validateInput = data => { const validateCpfType = cpf => { cpf = cpf.replace(/\D/g, ''); if (cpf.toString().length !== 11 || /^(\d)\1{10}$/.test(cpf)) { return false; } let result = true; [9, 10].forEach(j => { let sum = 0; let remainder; cpf.split(/(?=)/).splice(0, j).forEach((e, i) => { sum += parseInt(e, 10) * (j + 2 - (i + 1)); }); remainder = sum % 11; remainder = remainder < 2 ? 0 : 11 - remainder; if (remainder !== parseInt(cpf.substring(j, j + 1), 10)) { result = false; } }); return result; }; return validateCpfType(data); }; this.onSubmitSuccessResponse = () => { this.loadingService.hide(null, 'identity-validator-document').then(this.goToNextStep); }; this.onSubmitErrorResponse = response => { console.log('onSubmitErrorResponse:', JSON.stringify(response)); this.logService.logError('http::register-document', `${response?.error?.detail ?? ''}`, JSON.stringify(response)); this.loadingService.hide(null, 'identity-validator-document').then(() => { if (response?.status === 0) { this.showToastModalErroCodeZero.showToast(); this.logService.logError('http::onSubmitErrorResponse:register-document', 'Unknown error', response); return; } if (response.status === 400) { this.logService.logError('http::register-document'); const title = this.translateConfigService.translate('PG_IDENTIFY_CPF_TOAST_ERROR_REQUEST_TITLE'); const message = `${this.translateConfigService.translate('PG_IDENTIFY_CPF_TOAST_ERROR_REQUEST_MESSAGE')} (cod. 400)`; const notification = { title, message, type: 'error' }; return this.notificatorService.notify(notification); } else if (response.status === 404) { return this.goToNextStep(); } else { this.logService.logError('http::register-document', 'Unknown error', response); const { title, message } = this.getTitleAndMessage(response); this.toastNotificationError(title, message, response?.status === 0 ? 10000 : 5000); } }); }; this.goToNextStep = () => { const context = this.context; const document = this.clearInput(this.documentForm.controls.document.value); this.navigationService.forward(['/identity-validator-full-name']); this.initRegisterHasCompanyStorageService.set({ document, context }); }; this.goOneStepBack = /*#__PURE__*/(0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { if (_this.context === 'forgot-pin') { try { yield _this.saveFlowStorageResetKeyService.clearInitForgot(); _this.navigationService.root(['/identity-check']); } catch (error) { _this.navigationService.root(['/identity-check']); } } else { _this.navigationService.back(['/start']); } }); this.goToForeignDocument = () => { this.navigationService.forward(['/foreign-document']); }; } ionViewDidEnter() { // KA_APP-715 const data = this.initRegisterHasCompanyStorageService.get(); if (data) { this.document = data?.document; this.context = data?.context; if (this.document) { setTimeout(() => { this.documentForm.setValue({ document: this.document }); }, 450); } } this.focusService.applyFocusQuerySelector('identity', 200); } ngOnInit() { this.documentForm = this.formBuilder.group({ document: [''] }); } changeInput(event) { const value = event?.target?.value; const numbersOnly = value.replace(/\D/g, ''); if (numbersOnly.length === 11) { const validationResult = this.validateInput(value); // const nextButton = document.querySelector('#next-button') as HTMLElement; if (validationResult) { const inputElement = event?.target; inputElement.blur(); this.focusService.applyFocusQuerySelector('next-button', 100); } } } getTitleAndMessage(response) { let title = ''; let message = ''; const codStatus = response?.status ? `(cod. ${response.status})` : ''; title = this.translateConfigService.translate('PG_IDENTIFY_CPF_TOAST_SERVICE_ERROR_TITLE'); message = `${this.translateConfigService.translate('TOAST_SERVICE_TEMPORARILY_UNAVAILABLE_MESSAGE')} ${codStatus}`; return { title, message }; } toastNotificationError(title, message, timeout) { const notification = { title, message, type: 'error', timeout }; this.notificatorService.notify(notification); } } IdentityValidatorPage.ɵfac = function IdentityValidatorPage_Factory(t) { return new (t || IdentityValidatorPage)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_8__.UntypedFormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.KeyboardService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.DeviceInfoService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.NavigationService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services_focus_service__WEBPACK_IMPORTED_MODULE_3__.FocusService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.SaveFlowStorageResetKeyService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_2__.ShowToastAndModalErroCodeZeroService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_shared_services_init_register_has_company_storage_service__WEBPACK_IMPORTED_MODULE_4__.InitRegisterHasCompanyStorageService)); }; IdentityValidatorPage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: IdentityValidatorPage, selectors: [["app-identity-validator"]], decls: 28, vars: 17, consts: [[1, "ion-no-border", 2, "height", "0"], [3, "ngStyle"], ["tabindex", "-1", 1, "ion-margin-vertical"], [1, "flex-auto"], [1, "ion-margin-vertical"], [3, "formGroup", "ngSubmit"], [1, "input-holder"], ["for", "document"], ["tabindex", "1", "id", "identity"], ["tabindex", "2", "id", "document", "type", "tel", "pattern", "\\d*", "formControlName", "document", "appDocumentMask", "", 3, "placeholder", "input"], [1, "button-holder"], ["type", "button", 1, "back", 3, "click"], ["tabindex", "3"], ["id", "next-button", "type", "submit"], ["tabindex", "4"], ["class", "button-holder bottom", 4, "ngIf"], [1, "button-holder", "bottom"], ["type", "button", "mode", "ios", "shape", "round", 3, "click"], ["tabindex", "5"]], template: function IdentityValidatorPage_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "ion-header", 0); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "ion-content")(2, "ion-grid", 1)(3, "ion-row")(4, "ion-col", 2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "app-full-logo"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "ion-row", 3)(7, "ion-col", 4)(8, "form", 5); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function IdentityValidatorPage_Template_form_ngSubmit_8_listener() { return ctx.onSubmit(); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 6)(10, "ion-label", 7)(11, "span", 8); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](13, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "input", 9); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("input", function IdentityValidatorPage_Template_input_input_14_listener($event) { return ctx.changeInput($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](15, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 10)(17, "button", 11); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function IdentityValidatorPage_Template_button_click_17_listener() { return ctx.goOneStepBack(); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "span", 12); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](20, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "button", 13)(22, "span", 14); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](24, "translate"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()(); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "ion-row"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](26, "ion-col"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](27, IdentityValidatorPage_div_27_Template, 6, 3, "div", 15); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](15, _c0, ctx.deviceInfoService.getDeviceHeight() + "px")); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.documentForm); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](13, 7, "PG_IDENTIFY_CPF_TEXT"), ""); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](15, 9, "PG_IDENTIFY_CPF_INPUT")); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](20, 11, "BTN_BACK"), ""); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](24, 13, "BTN_NEXT"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.context !== "forgot-pin"); } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_5__.NgStyle, _ionic_angular__WEBPACK_IMPORTED_MODULE_9__.IonButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_9__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_9__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_9__.IonGrid, _ionic_angular__WEBPACK_IMPORTED_MODULE_9__.IonHeader, _ionic_angular__WEBPACK_IMPORTED_MODULE_9__.IonLabel, _ionic_angular__WEBPACK_IMPORTED_MODULE_9__.IonRow, _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.PatternValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormControlName, _shared_components_full_logo_full_logo_component__WEBPACK_IMPORTED_MODULE_6__.FullLogoComponent, _shared_directives__WEBPACK_IMPORTED_MODULE_7__.DocumentMaskDirective, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_10__.TranslatePipe], styles: [".button-holder.bottom[_ngcontent-%COMP%] {\n position: absolute;\n bottom: calc(24px + env(safe-area-inset-bottom)) !important;\n bottom: 24px;\n text-align: center;\n width: 100vw;\n left: 0;\n font-size: 0.9em;\n color: #656768;\n padding: 1em 0;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\nion-label[_ngcontent-%COMP%] {\n color: #656768;\n font-weight: 500;\n}\n\nion-button[_ngcontent-%COMP%] {\n font-size: 1em;\n --color: #0ec254;\n background: #e7e6e6;\n --background: #e7e6e6;\n --box-shadow: none;\n border-radius: 32px;\n height: 36px;\n transition: background-color 0.1s ease-out;\n --background-activated: #0ec254;\n --color-activated: #fff;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlkZW50aXR5LXZhbGlkYXRvci5wYWdlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxrQkFBQTtFQUNBLDJEQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLE9BQUE7RUFDQSxnQkFBQTtFQUNBLGNBQUE7RUFDQSxjQUFBO0VBQ0EsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7QUFDRjs7QUFDQTtFQUNFLGNBQUE7RUFDQSxnQkFBQTtBQUVGOztBQUFBO0VBQ0UsY0FBQTtFQUNBLGdCQUFBO0VBQ0EsbUJBQUE7RUFDQSxxQkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSxZQUFBO0VBQ0EsMENBQUE7RUFDQSwrQkFBQTtFQUNBLHVCQUFBO0FBR0YiLCJmaWxlIjoiaWRlbnRpdHktdmFsaWRhdG9yLnBhZ2Uuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5idXR0b24taG9sZGVyLmJvdHRvbSB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgYm90dG9tOiBjYWxjKDI0cHggKyBlbnYoc2FmZS1hcmVhLWluc2V0LWJvdHRvbSkpICFpbXBvcnRhbnQ7XG4gIGJvdHRvbTogMjRweDtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICB3aWR0aDogMTAwdnc7XG4gIGxlZnQ6IDA7XG4gIGZvbnQtc2l6ZTogMC45ZW07XG4gIGNvbG9yOiAjNjU2NzY4O1xuICBwYWRkaW5nOiAxZW0gMDtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG59XG5pb24tbGFiZWwge1xuICBjb2xvcjogIzY1Njc2ODtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbn1cbmlvbi1idXR0b24ge1xuICBmb250LXNpemU6IDFlbTtcbiAgLS1jb2xvcjogIzBlYzI1NDtcbiAgYmFja2dyb3VuZDogI2U3ZTZlNjtcbiAgLS1iYWNrZ3JvdW5kOiAjZTdlNmU2O1xuICAtLWJveC1zaGFkb3c6IG5vbmU7XG4gIGJvcmRlci1yYWRpdXM6IDMycHg7XG4gIGhlaWdodDogMzZweDtcbiAgdHJhbnNpdGlvbjogYmFja2dyb3VuZC1jb2xvciAwLjFzIGVhc2Utb3V0O1xuICAtLWJhY2tncm91bmQtYWN0aXZhdGVkOiAjMGVjMjU0O1xuICAtLWNvbG9yLWFjdGl2YXRlZDogI2ZmZjtcbn1cbiJdfQ== */"] }); /***/ }), /***/ 37763: /*!**************************************************!*\ !*** ./src/app/shared/services/focus.service.ts ***! \**************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "FocusService": () => (/* binding */ FocusService) /* harmony export */ }); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ 61380); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ 59151); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_1__); class FocusService { constructor(router) { this.router = router; } focusInRouterNavigate() { this.router.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.filter)(event => event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_0__.NavigationEnd)).subscribe(() => { const mainHeader = document.querySelector('#focusHeader'); if (mainHeader) { mainHeader?.focus(); } }); } /** * * @param selector ID preference selector exemple: this.applyFocusQuerySelector('myselectorid', 300) * not necessary # . * @param time */ applyFocusQuerySelector(selector, time) { setTimeout(() => { const nextTag = document.querySelector(`#${selector}`); nextTag?.focus(); }, time); } } FocusService.ɵfac = function FocusService_Factory(t) { return new (t || FocusService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_0__.Router)); }; FocusService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: FocusService, factory: FocusService.ɵfac, providedIn: 'root' }); /***/ }), /***/ 91056: /*!******************************************************************************!*\ !*** ./src/app/shared/services/init.register.has-company.storage.service.ts ***! \******************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "InitRegisterHasCompanyStorageService": () => (/* binding */ InitRegisterHasCompanyStorageService) /* harmony export */ }); /* harmony import */ var _Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _simple_storage_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./simple.storage.service */ 19725); class InitRegisterHasCompanyStorageService { constructor(simpleStorageService) { this.simpleStorageService = simpleStorageService; this.KEY = 'REGISTER_HAS_COMPANY'; this.cache = null; // Cache em memória opcional } set(data) { this.simpleStorageService.set(this.KEY, data); this.cache = data; // Atualiza o cache } get() { const data = this.simpleStorageService.get(this.KEY); this.cache = data; // Atualiza o cache return data; } remove() { var _this = this; return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { _this.simpleStorageService.remove(_this.KEY); _this.cache = null; // Limpa o cache })(); } } InitRegisterHasCompanyStorageService.ɵfac = function InitRegisterHasCompanyStorageService_Factory(t) { return new (t || InitRegisterHasCompanyStorageService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_simple_storage_service__WEBPACK_IMPORTED_MODULE_2__.SimpleStorageService)); }; InitRegisterHasCompanyStorageService.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: InitRegisterHasCompanyStorageService, factory: InitRegisterHasCompanyStorageService.ɵfac, providedIn: 'root' }); /***/ }), /***/ 19725: /*!***********************************************************!*\ !*** ./src/app/shared/services/simple.storage.service.ts ***! \***********************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "SimpleStorageService": () => (/* binding */ SimpleStorageService) /* harmony export */ }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 45449); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__); class SimpleStorageService { constructor() { } set(key, value) { localStorage.setItem(key, JSON.stringify(value)); } get(key) { const item = JSON.parse(localStorage.getItem(key)); return item ?? null; } remove(key) { localStorage.removeItem(key); } clear() { localStorage.clear(); } } SimpleStorageService.ɵfac = function SimpleStorageService_Factory(t) { return new (t || SimpleStorageService)(); }; SimpleStorageService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: SimpleStorageService, factory: SimpleStorageService.ɵfac, providedIn: 'root' }); /***/ }) }]) //# sourceMappingURL=8745.js.map