95d9d2f9a8
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1285 lines
82 KiB
JavaScript
1285 lines
82 KiB
JavaScript
(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([[8254],{
|
|
|
|
/***/ 65742:
|
|
/*!*********************************************************************!*\
|
|
!*** ./src/app/pages/configuration/configuration-routing.module.ts ***!
|
|
\*********************************************************************/
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "ConfigurationPageRoutingModule": () => (/* binding */ ConfigurationPageRoutingModule)
|
|
/* 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 _configuration_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./configuration.page */ 11531);
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 45449);
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
|
|
|
|
|
|
|
const routes = [
|
|
{
|
|
path: '',
|
|
component: _configuration_page__WEBPACK_IMPORTED_MODULE_1__.ConfigurationPage
|
|
},
|
|
{
|
|
path: 'notification',
|
|
loadChildren: () => __webpack_require__.e(/*! import() */ 3149).then(__webpack_require__.bind(__webpack_require__, /*! ./notification/notification.module */ 13149)).then(m => m.NotificationPageModule)
|
|
}
|
|
];
|
|
class ConfigurationPageRoutingModule {
|
|
}
|
|
ConfigurationPageRoutingModule.ɵfac = function ConfigurationPageRoutingModule_Factory(t) { return new (t || ConfigurationPageRoutingModule)(); };
|
|
ConfigurationPageRoutingModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineNgModule"]({ type: ConfigurationPageRoutingModule });
|
|
ConfigurationPageRoutingModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjector"]({ imports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule.forChild(routes), _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule] });
|
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsetNgModuleScope"](ConfigurationPageRoutingModule, { imports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule], exports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule] }); })();
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 28254:
|
|
/*!*************************************************************!*\
|
|
!*** ./src/app/pages/configuration/configuration.module.ts ***!
|
|
\*************************************************************/
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "ConfigurationPageModule": () => (/* binding */ ConfigurationPageModule)
|
|
/* harmony export */ });
|
|
/* harmony import */ var _configuration_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./configuration-routing.module */ 65742);
|
|
/* harmony import */ var _shared_components_components_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @shared/components/components.module */ 15626);
|
|
/* harmony import */ var src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/shared-module/shared-module.module */ 69270);
|
|
/* harmony import */ var _configuration_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./configuration.page */ 11531);
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 45449);
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
|
|
|
|
|
|
|
|
|
class ConfigurationPageModule {
|
|
}
|
|
ConfigurationPageModule.ɵfac = function ConfigurationPageModule_Factory(t) { return new (t || ConfigurationPageModule)(); };
|
|
ConfigurationPageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({ type: ConfigurationPageModule });
|
|
ConfigurationPageModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjector"]({ imports: [src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__.SharedModuleModule, _shared_components_components_module__WEBPACK_IMPORTED_MODULE_1__.ComponentsModule, _configuration_routing_module__WEBPACK_IMPORTED_MODULE_0__.ConfigurationPageRoutingModule] });
|
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsetNgModuleScope"](ConfigurationPageModule, { declarations: [_configuration_page__WEBPACK_IMPORTED_MODULE_3__.ConfigurationPage], imports: [src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_2__.SharedModuleModule, _shared_components_components_module__WEBPACK_IMPORTED_MODULE_1__.ComponentsModule, _configuration_routing_module__WEBPACK_IMPORTED_MODULE_0__.ConfigurationPageRoutingModule] }); })();
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 11531:
|
|
/*!***********************************************************!*\
|
|
!*** ./src/app/pages/configuration/configuration.page.ts ***!
|
|
\***********************************************************/
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "ConfigurationPage": () => (/* binding */ ConfigurationPage)
|
|
/* 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 _capacitor_app__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @capacitor/app */ 93253);
|
|
/* harmony import */ var _capacitor_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @capacitor/core */ 26549);
|
|
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ionic/angular */ 93819);
|
|
/* harmony import */ var capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! capacitor-notify-persistent */ 60850);
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 45449);
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_4__);
|
|
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @shared/services */ 17253);
|
|
/* harmony import */ var _awesome_cordova_plugins_social_sharing_ngx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @awesome-cordova-plugins/social-sharing/ngx */ 26436);
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ 61380);
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_7__);
|
|
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 90944);
|
|
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_8__);
|
|
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
/* harmony import */ var _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../shared/components/header/header.component */ 36290);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function ConfigurationPage_ion_item_11_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "ion-item")(1, "ion-label");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, "Data de ativa\u00E7\u00E3o autom\u00E1tica");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "ion-datetime", 17);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function ConfigurationPage_ion_item_11_Template_ion_datetime_ngModelChange_3_listener($event) {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r13);
|
|
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r12.autoActivateDate = $event);
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
}
|
|
|
|
if (rf & 2) {
|
|
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", ctx_r0.autoActivateDate);
|
|
}
|
|
}
|
|
|
|
function ConfigurationPage_ng_container_16_ion_item_5_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "ion-item", 19)(1, "ion-grid")(2, "ion-row")(3, "ion-col", 20)(4, "ion-item", 19)(5, "ion-label", 21);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6, "In\u00EDcio");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "ion-datetime", 22);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function ConfigurationPage_ng_container_16_ion_item_5_Template_ion_datetime_ngModelChange_7_listener($event) {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r18);
|
|
const day_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](day_r14.startTime = $event);
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "ion-col", 20)(9, "ion-item", 19)(10, "ion-label", 21);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](11, "T\u00E9rmino");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "ion-datetime", 22);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function ConfigurationPage_ng_container_16_ion_item_5_Template_ion_datetime_ngModelChange_12_listener($event) {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r18);
|
|
const day_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](day_r14.endTime = $event);
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()()();
|
|
}
|
|
|
|
if (rf & 2) {
|
|
const day_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](7);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", day_r14.startTime);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", day_r14.endTime);
|
|
}
|
|
}
|
|
|
|
function ConfigurationPage_ng_container_16_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "ion-item")(2, "ion-label");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "ion-toggle", 1);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function ConfigurationPage_ng_container_16_Template_ion_toggle_ngModelChange_4_listener($event) {
|
|
const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r23);
|
|
const day_r14 = restoredCtx.$implicit;
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](day_r14.enabled = $event);
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](5, ConfigurationPage_ng_container_16_ion_item_5_Template, 13, 2, "ion-item", 18);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
|
|
}
|
|
|
|
if (rf & 2) {
|
|
const day_r14 = ctx.$implicit;
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](day_r14.label);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", day_r14.enabled);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", day_r14.enabled);
|
|
}
|
|
}
|
|
|
|
function ConfigurationPage_ng_container_29_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, " Habilitar notifica\u00E7\u00F5es ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "span", 23);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ConfigurationPage_ng_container_29_Template_span_click_2_listener() {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r25);
|
|
const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r24.setOpen(true));
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, " 'Persistentes'?");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
|
|
}
|
|
}
|
|
|
|
function ConfigurationPage_ng_container_30_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, " Desabilitar notifica\u00E7\u00F5es ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "span", 23);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ConfigurationPage_ng_container_30_Template_span_click_2_listener() {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r27);
|
|
const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r26.setOpen(true));
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, " 'Persistentes'?");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
|
|
}
|
|
}
|
|
|
|
function ConfigurationPage_ng_container_33_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "ion-toggle", 24);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ionChange", function ConfigurationPage_ng_container_33_Template_ion_toggle_ionChange_1_listener() {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r29);
|
|
const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r28.enabledPlugin());
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
|
|
}
|
|
|
|
if (rf & 2) {
|
|
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("checked", ctx_r4.persistentEnabled);
|
|
}
|
|
}
|
|
|
|
function ConfigurationPage_ng_container_34_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "ion-toggle", 24);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ionChange", function ConfigurationPage_ng_container_34_Template_ion_toggle_ionChange_1_listener() {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r31);
|
|
const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r30.disabledPlugin());
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
|
|
}
|
|
|
|
if (rf & 2) {
|
|
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("checked", ctx_r5.persistentEnabled);
|
|
}
|
|
}
|
|
|
|
function ConfigurationPage_ng_container_35_ng_container_12_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r37 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, " Exce\u00E7\u00F5es de 'N\u00E3o Perturbe'. Permitir notifica\u00E7\u00F5es do KeyAccess no modo ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "span", 23);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ConfigurationPage_ng_container_35_ng_container_12_Template_span_click_2_listener() {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r37);
|
|
const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r36.setOpenDnd(true));
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, "'N\u00E3o Perturbe'");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4, "? ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
|
|
}
|
|
}
|
|
|
|
function ConfigurationPage_ng_container_35_ng_container_13_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r39 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, " Remover KeyAccess da lista de exce\u00E7\u00E3o de notifica\u00E7\u00F5es do modo ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "span", 23);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ConfigurationPage_ng_container_35_ng_container_13_Template_span_click_2_listener() {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r39);
|
|
const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r38.setOpenDnd(true));
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, "'N\u00E3o Perturbe'");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
|
|
}
|
|
}
|
|
|
|
function ConfigurationPage_ng_container_35_ng_container_28_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, " Exce\u00E7\u00F5es de 'Manipular Notifica\u00E7\u00E3o KeyAccess': Permitir que as notifica\u00E7\u00F5es do KeyAccess sejam manipuladas? ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "span", 23);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ConfigurationPage_ng_container_35_ng_container_28_Template_span_click_2_listener() {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r41);
|
|
const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r40.setOpenPermisionListener(true));
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, " 'Permitir'?");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
|
|
}
|
|
}
|
|
|
|
function ConfigurationPage_ng_container_35_ng_container_29_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r43 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, " Remover KeyAccess da lista de exce\u00E7\u00F5es de manipula\u00E7\u00E3o de notifica\u00E7\u00F5es: ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "span", 23);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ConfigurationPage_ng_container_35_ng_container_29_Template_span_click_2_listener() {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r43);
|
|
const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r42.setOpenPermisionListener(true));
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, "Remover exce\u00E7\u00E3o");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
|
|
}
|
|
}
|
|
|
|
function ConfigurationPage_ng_container_35_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r45 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "ion-item-divider")(2, "ion-label", 25);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, " Configura\u00E7\u00F5es Opcionais - 'N\u00E3o Perturbe' ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "div", 26);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](5, "ion-icon", 27);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "ion-card", 6)(7, "div", 7)(8, "div", 8);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](9, "ion-icon", 28);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "div", 10)(11, "div", 11);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](12, ConfigurationPage_ng_container_35_ng_container_12_Template, 5, 0, "ng-container", 2);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](13, ConfigurationPage_ng_container_35_ng_container_13_Template, 4, 0, "ng-container", 2);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "div", 12)(15, "div", 13)(16, "ion-chip", 29);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ConfigurationPage_ng_container_35_Template_ion_chip_click_16_listener() {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r45);
|
|
const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r44.dNDPermission ? ctx_r44.removeDNDPermission() : ctx_r44.setDNDPermission());
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](17, "ion-label");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](18);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](19, "ion-item-divider")(20, "ion-label", 25);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](21, " Configura\u00E7\u00F5es Obrigat\u00F3rias ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](22, "ion-card", 6)(23, "div", 7)(24, "div", 8);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](25, "ion-icon", 28);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](26, "div", 10)(27, "div", 11);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](28, ConfigurationPage_ng_container_35_ng_container_28_Template, 4, 0, "ng-container", 2);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](29, ConfigurationPage_ng_container_35_ng_container_29_Template, 4, 0, "ng-container", 2);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](30, "div", 12)(31, "div", 13)(32, "ion-chip", 29);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ConfigurationPage_ng_container_35_Template_ion_chip_click_32_listener() {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r45);
|
|
const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r46.permissionNotificationListener ? ctx_r46.removePermissionListener() : ctx_r46.setPermissionListener());
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](33, "ion-label");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](34);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainer"](35);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
|
|
}
|
|
|
|
if (rf & 2) {
|
|
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("src", ctx_r6.dndActive ? "assets/icon/do-not-disturb-on.svg" : "assets/icon/do-not-disturb-off.svg");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](7);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !ctx_r6.dNDPermission);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r6.dNDPermission);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("color", ctx_r6.dNDPermission ? "primary" : "warning");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx_r6.dNDPermission ? "Desabilitar" : "Habilitar");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](10);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !ctx_r6.permissionNotificationListener);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r6.permissionNotificationListener);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("color", ctx_r6.permissionNotificationListener ? "primary" : "warning");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx_r6.permissionNotificationListener ? "Desabilitar" : "Habilitar");
|
|
}
|
|
}
|
|
|
|
function ConfigurationPage_ion_button_37_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r48 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "ion-button", 30);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ConfigurationPage_ion_button_37_Template_ion_button_click_0_listener() {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r48);
|
|
const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r47.getTokenFcm());
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, " get token ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
}
|
|
}
|
|
|
|
function ConfigurationPage_ng_container_38_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r50 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "ion-card", 31);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ConfigurationPage_ng_container_38_Template_ion_card_click_1_listener() {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r50);
|
|
const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r49.copyToken());
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "ion-card-header")(3, "ion-card-subtitle");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4, "Toque para copiar para a area de transfer\u00EAncia");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "ion-card-title");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6, "Token FCM");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "ion-card-content")(8, "pre");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
|
|
}
|
|
|
|
if (rf & 2) {
|
|
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](9);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", ctx_r8.tokenFcm, "\n ");
|
|
}
|
|
}
|
|
|
|
function ConfigurationPage_ng_template_40_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "ion-content", 4)(1, "ion-card")(2, "ion-card-header")(3, "ion-card-title");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4, "Notifica\u00E7\u00E3o Persistente");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "ion-card-content")(6, "p");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](7, " Com a ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "strong");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9, "Notifica\u00E7\u00E3o Persistente");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](10, " ativada, o KeyAccess enviar\u00E1 alertas que permanecer\u00E3o na barra de notifica\u00E7\u00F5es do seu dispositivo at\u00E9 que voc\u00EA interaja com eles. Isso garante que voc\u00EA n\u00E3o perca nenhuma solicita\u00E7\u00E3o de acesso importante. ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "p");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](12, " Essas notifica\u00E7\u00F5es incluem um ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](13, "strong");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](14, "toque personalizado");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](15, " e uma ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](16, "strong");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](17, "vibra\u00E7\u00E3o distinta");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](18, " para chamar sua aten\u00E7\u00E3o imediatamente, mesmo quando o dispositivo estiver em modo silencioso. ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](19, "p");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](20, "A notifica\u00E7\u00E3o oferece as seguintes ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](21, "strong");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](22, "a\u00E7\u00F5es r\u00E1pidas");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](23, ":");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](24, "ul")(25, "li")(26, "strong");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](27, "Permitir:");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](28, " Ao tocar neste bot\u00E3o, voc\u00EA autoriza imediatamente a entrada do convidado no evento em quest\u00E3o. ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](29, "li")(30, "strong");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](31, "Recusar:");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](32, " Este bot\u00E3o permite que voc\u00EA negue o acesso do convidado de forma r\u00E1pida e f\u00E1cil. ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](33, "p");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](34, " Al\u00E9m disso, ao tocar na pr\u00F3pria notifica\u00E7\u00E3o, o aplicativo ser\u00E1 aberto diretamente na tela de ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](35, "strong");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](36, "pend\u00EAncias de libera\u00E7\u00F5es");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](37, ", permitindo que voc\u00EA gerencie solicita\u00E7\u00F5es de acesso de forma detalhada e eficiente. ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](38, "div", 32)(39, "ion-button", 33);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ConfigurationPage_ng_template_40_Template_ion_button_click_39_listener() {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r52);
|
|
const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r51.setOpen(false));
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](40, " Fechar ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
|
|
}
|
|
}
|
|
|
|
function ConfigurationPage_ng_template_42_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r54 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "ion-content", 4)(1, "ion-card")(2, "ion-card-header")(3, "ion-card-title");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4, "Exce\u00E7\u00E3o para 'N\u00E3o Perturbe'");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "ion-card-content")(6, "p");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](7, " O modo ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "strong");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9, "'N\u00E3o Perturbe'");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](10, " do seu dispositivo silencia todas as notifica\u00E7\u00F5es para evitar interrup\u00E7\u00F5es em momentos importantes. No entanto, \u00E9 essencial garantir que solicita\u00E7\u00F5es cr\u00EDticas, como pedidos de acesso pelo KeyAccess, n\u00E3o sejam perdidas. ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](11, "br");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "p");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](13, " Voc\u00EA pode ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "strong");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](15, "adicionar o KeyAccess \u00E0 lista de exce\u00E7\u00F5es");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](16, " do modo 'N\u00E3o Perturbe'. Dessa forma, mesmo quando este modo estiver ativado, voc\u00EA continuar\u00E1 recebendo notifica\u00E7\u00F5es sonoras e com vibra\u00E7\u00E3o do aplicativo, assegurando respostas r\u00E1pidas \u00E0s solicita\u00E7\u00F5es de acesso. ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](17, "br");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](18, "p");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](19, " A qualquer momento, \u00E9 poss\u00EDvel ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](20, "strong");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](21, "remover o KeyAccess da lista de exce\u00E7\u00F5es");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](22, ", fazendo com que as notifica\u00E7\u00F5es sejam silenciadas quando o modo 'N\u00E3o Perturbe' estiver ativo, conforme sua necessidade e conveni\u00EAncia. ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](23, "div", 32)(24, "ion-button", 33);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ConfigurationPage_ng_template_42_Template_ion_button_click_24_listener() {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r54);
|
|
const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r53.setOpenDnd(false));
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](25, " Fechar ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
|
|
}
|
|
}
|
|
|
|
function ConfigurationPage_ng_template_44_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
const _r56 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "ion-content", 4)(1, "ion-card")(2, "ion-card-header")(3, "ion-card-title");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4, "Permiss\u00E3o Necess\u00E1ria para Controle de Sons de Notifica\u00E7\u00F5es");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "ion-card-content")(6, "p");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](7, " Para garantir uma experi\u00EAncia mais fluida e evitar poss\u00EDveis inc\u00F4modos, pedimos que voc\u00EA adicione nosso aplicativo \u00E0 ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "strong");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9, "lista de exce\u00E7\u00F5es de notifica\u00E7\u00F5es");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](10, ". ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](11, "br");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "p");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](13, " Ao dispensar todas as notifica\u00E7\u00F5es do nosso app, o som das notifica\u00E7\u00F5es deve parar imediatamente. No entanto, sem essa permiss\u00E3o especial, pode ocorrer um problema onde o som continua tocando ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "strong");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](15, "mesmo ap\u00F3s");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](16, " todas as notifica\u00E7\u00F5es terem sido removidas. Isso pode gerar uma experi\u00EAncia inc\u00F4moda e frustrante. ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](17, "br");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](18, "p");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](19, " Ao adicionar nosso app \u00E0 lista de exce\u00E7\u00F5es, voc\u00EA nos permite ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](20, "strong");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](21, "controlar adequadamente");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](22, " o comportamento sonoro das notifica\u00E7\u00F5es, assegurando que o som seja interrompido corretamente quando n\u00E3o houver mais notifica\u00E7\u00F5es ativas. ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](23, "br");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](24, "p")(25, "strong");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](26, "Essa permiss\u00E3o");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](27, " \u00E9 essencial para garantir que as funcionalidades de nosso aplicativo operem de forma ideal, proporcionando uma experi\u00EAncia tranquila, sem interrup\u00E7\u00F5es desnecess\u00E1rias. Contamos com sua compreens\u00E3o e colabora\u00E7\u00E3o para melhorar sua experi\u00EAncia com nosso servi\u00E7o. ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](28, "div", 32)(29, "ion-button", 33);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ConfigurationPage_ng_template_44_Template_ion_button_click_29_listener() {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r56);
|
|
const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r55.setOpenPermisionListener(false));
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](30, " Fechar ");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
|
|
}
|
|
}
|
|
|
|
class ConfigurationPage {
|
|
constructor(fcmService, ngZoneService, clipboard, shareService, router, overlayService, apiService, authService, profileManagerService, portalLoginManagerService) {
|
|
this.fcmService = fcmService;
|
|
this.ngZoneService = ngZoneService;
|
|
this.clipboard = clipboard;
|
|
this.shareService = shareService;
|
|
this.router = router;
|
|
this.overlayService = overlayService;
|
|
this.apiService = apiService;
|
|
this.authService = authService;
|
|
this.profileManagerService = profileManagerService;
|
|
this.portalLoginManagerService = portalLoginManagerService;
|
|
this.permissionNotificationListener = false;
|
|
this.isModalOpen = false;
|
|
this.isModalOpenDnd = false;
|
|
this.isModalOpenPermisionListener = false;
|
|
this.notificationsEnabled = true;
|
|
this.persistentNotifications = false;
|
|
this.refId = null;
|
|
this.weekDays = [{
|
|
label: 'Segunda-feira',
|
|
enabled: true,
|
|
startTime: '08:00',
|
|
endTime: '17:00'
|
|
}, {
|
|
label: 'Terça-feira',
|
|
enabled: true,
|
|
startTime: '08:00',
|
|
endTime: '17:00'
|
|
}, {
|
|
label: 'Quarta-feira',
|
|
enabled: true,
|
|
startTime: '08:00',
|
|
endTime: '17:00'
|
|
}, {
|
|
label: 'Quinta-feira',
|
|
enabled: true,
|
|
startTime: '08:00',
|
|
endTime: '17:00'
|
|
}, {
|
|
label: 'Sexta-feira',
|
|
enabled: true,
|
|
startTime: '08:00',
|
|
endTime: '17:00'
|
|
}, {
|
|
label: 'Sábado',
|
|
enabled: false,
|
|
startTime: '08:00',
|
|
endTime: '17:00'
|
|
}, {
|
|
label: 'Domingo',
|
|
enabled: false,
|
|
startTime: '08:00',
|
|
endTime: '17:00'
|
|
}]; // URL da API de configurações de notificações
|
|
|
|
this.apiUrl = '/services/uaamobile/api/configurations/notifications'; // Labels dos dias da semana para mapeamento
|
|
|
|
this.dayLabels = ['Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sábado', 'Domingo'];
|
|
this.platform = _capacitor_core__WEBPACK_IMPORTED_MODULE_2__.Capacitor.getPlatform();
|
|
}
|
|
|
|
ngOnInit() {
|
|
console.log();
|
|
this.requestPermisson();
|
|
this.getTokenFcm();
|
|
this.authService.getRefId().then(res => {
|
|
this.refId = res;
|
|
});
|
|
this.loadConfiguration();
|
|
}
|
|
|
|
ngOnDestroy() {
|
|
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* () {
|
|
yield _capacitor_app__WEBPACK_IMPORTED_MODULE_1__.App.removeAllListeners();
|
|
yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_3__.NotifyPersistent.removeAllListeners();
|
|
})();
|
|
}
|
|
|
|
ionViewWillEnter() {
|
|
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.checkDNDStatus();
|
|
|
|
_this.isEnablePlugin();
|
|
})();
|
|
}
|
|
|
|
cancelDnd() {
|
|
this.modal.dismiss(null, 'cancel');
|
|
}
|
|
|
|
cancel() {
|
|
this.modal.dismiss(null, 'cancel');
|
|
}
|
|
|
|
setOpen(isOpen) {
|
|
this.isModalOpen = isOpen;
|
|
}
|
|
|
|
setOpenDnd(isOpen) {
|
|
this.isModalOpenDnd = isOpen;
|
|
}
|
|
|
|
setOpenPermisionListener(isOpen) {
|
|
this.isModalOpenPermisionListener = isOpen;
|
|
}
|
|
|
|
confirm() {
|
|
this.modal.dismiss('', 'confirm');
|
|
}
|
|
|
|
onWillDismiss(event) {
|
|
const ev = event;
|
|
|
|
if (ev.detail.role === 'confirm') {}
|
|
}
|
|
|
|
onWillDismissDnd(event) {
|
|
console.log(event);
|
|
const ev = event;
|
|
|
|
if (ev.detail.role === 'confirm') {}
|
|
}
|
|
|
|
requestPermisson() {
|
|
var _this2 = 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* () {
|
|
const permission = yield _this2.fcmService.checkPermissionAvalable();
|
|
_this2.permssion = permission;
|
|
})();
|
|
}
|
|
|
|
getTokenFcm() {
|
|
var _this3 = 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.fcmService.deleteTokenFcm();
|
|
_this3.tokenFcm = null;
|
|
const {
|
|
value
|
|
} = yield _this3.fcmService.getToken();
|
|
|
|
_this3.ngZoneService.run(() => {
|
|
_this3.tokenFcm = value;
|
|
});
|
|
})();
|
|
}
|
|
|
|
copyToken() {
|
|
this.clipboard.copy(this.tokenFcm);
|
|
this.shareService.share(`Token::>>> | ${this.tokenFcm}`);
|
|
}
|
|
|
|
disabledPlugin() {
|
|
var _this4 = 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* () {
|
|
try {
|
|
yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_3__.NotifyPersistent.disablePlugin();
|
|
|
|
_this4.ngZoneService.run(() => {
|
|
_this4.persistentEnabled = false;
|
|
});
|
|
} catch (error) {
|
|
console.log('error', error);
|
|
}
|
|
})();
|
|
}
|
|
|
|
enabledPlugin() {
|
|
var _this5 = 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* () {
|
|
try {
|
|
yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_3__.NotifyPersistent.enablePlugin();
|
|
|
|
_this5.ngZoneService.run(() => {
|
|
_this5.persistentEnabled = true;
|
|
});
|
|
} catch (error) {
|
|
console.log('error', error);
|
|
_this5.persistentEnabled = false;
|
|
} finally {
|
|
if (_this5.platform === 'android') {
|
|
_this5.showAlertRequestListenerPermission();
|
|
}
|
|
}
|
|
})();
|
|
}
|
|
|
|
setDNDPermission() {
|
|
var _this6 = 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* () {
|
|
try {
|
|
const {
|
|
receive
|
|
} = yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_3__.NotifyPersistent.requestDNDPermission();
|
|
|
|
if (receive === 'granted') {
|
|
_this6.dNDPermission = true;
|
|
} else {
|
|
_this6.dNDPermission = false;
|
|
}
|
|
} catch (error) {
|
|
console.log('%c' + JSON.stringify(error), 'color:' + 'red' + ';font-weight:bold;');
|
|
_this6.dNDPermission = false;
|
|
} finally {
|
|
_this6.verifyDNDPermissionAfterSettings();
|
|
}
|
|
})();
|
|
}
|
|
|
|
removeDNDPermission() {
|
|
var _this7 = 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* () {
|
|
try {
|
|
const {
|
|
receive,
|
|
disableDnd
|
|
} = yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_3__.NotifyPersistent.disableDND();
|
|
console.log('%c receive' + JSON.stringify(receive), 'color:' + 'red' + ';font-weight:bold;');
|
|
console.log('%c disableDnd' + JSON.stringify(disableDnd), 'color:' + 'red' + ';font-weight:bold;');
|
|
|
|
if (receive === 'denied' && disableDnd === true) {
|
|
_this7.dNDPermission = disableDnd;
|
|
return;
|
|
}
|
|
} catch (error) {
|
|
console.log('%c' + JSON.stringify(error), 'color:' + 'red' + ';font-weight:bold;');
|
|
}
|
|
})();
|
|
}
|
|
|
|
setPermissionListener() {
|
|
var _this8 = 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* () {
|
|
try {
|
|
const {
|
|
receive
|
|
} = yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_3__.NotifyPersistent.requestPermissionActionNotificationListener();
|
|
|
|
if (receive === 'granted') {
|
|
_this8.permissionNotificationListener = true;
|
|
} else {
|
|
_this8.permissionNotificationListener = false;
|
|
}
|
|
} catch (error) {
|
|
console.log('%c' + JSON.stringify(error), 'color:' + 'red' + ';font-weight:bold;');
|
|
_this8.permissionNotificationListener = false;
|
|
}
|
|
})();
|
|
}
|
|
|
|
removePermissionListener() {
|
|
var _this9 = 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* () {
|
|
try {
|
|
// Chama o método para desativar a permissão do listener
|
|
const {
|
|
receive
|
|
} = yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_3__.NotifyPersistent.disablePermissionActionNotificationListener(); // Se a permissão é negada, atualiza o estado para 'false'
|
|
|
|
if (receive === 'denied') {
|
|
_this9.permissionNotificationListener = false;
|
|
return;
|
|
} // Se o usuário precisa ser solicitado a fazer algo, exibe uma mensagem
|
|
else if (receive === 'prompt_user') {
|
|
console.log('Usuário precisa tomar ação para desativar a permissão.');
|
|
alert('Por favor, vá para as configurações e desative a permissão de notificação.');
|
|
return;
|
|
} // Verifica se a permissão foi concedida ou negada
|
|
|
|
|
|
if (receive === 'granted') {
|
|
_this9.permissionNotificationListener = true;
|
|
} else {
|
|
_this9.permissionNotificationListener = false;
|
|
}
|
|
} catch (error) {
|
|
// Lida com qualquer erro durante a operação
|
|
console.log('%c' + JSON.stringify(error), 'color:red;font-weight:bold;');
|
|
_this9.permissionNotificationListener = false; // Define como false em caso de erro
|
|
}
|
|
})();
|
|
}
|
|
|
|
verifyDNDPermissionAfterSettings() {
|
|
var _this0 = 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* () {
|
|
const routerconfiguration = _this0.router.url;
|
|
console.log('routerconfiguration', routerconfiguration);
|
|
|
|
if (_this0.platform === 'android' && routerconfiguration.includes('/configuration')) {
|
|
_capacitor_app__WEBPACK_IMPORTED_MODULE_1__.App.addListener('appStateChange', /*#__PURE__*/function () {
|
|
var _ref = (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* (state) {
|
|
console.log('appStateChange', state);
|
|
|
|
if (state.isActive) {
|
|
try {
|
|
const {
|
|
receive: afterPermission
|
|
} = yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_3__.NotifyPersistent.verifyDNDPermissionAfterSettings();
|
|
|
|
if (afterPermission === 'granted') {
|
|
_this0.dNDPermission = true;
|
|
} else {
|
|
_this0.dNDPermission = false;
|
|
}
|
|
} catch (error) {
|
|
_this0.dNDPermission = false;
|
|
_this0.permissionNotificationListener = false;
|
|
console.log('%c' + JSON.stringify(error), 'color:' + 'red' + ';font-weight:bold;');
|
|
}
|
|
}
|
|
});
|
|
|
|
return function (_x) {
|
|
return _ref.apply(this, arguments);
|
|
};
|
|
}());
|
|
}
|
|
})();
|
|
}
|
|
|
|
checkDNDStatus() {
|
|
var _this1 = 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* () {
|
|
if (_this1.platform !== 'android') {
|
|
return;
|
|
}
|
|
|
|
try {
|
|
const {
|
|
dndActive
|
|
} = yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_3__.NotifyPersistent.checkDNDStatus();
|
|
|
|
_this1.ngZoneService.run(() => {
|
|
_this1.dndActive = dndActive;
|
|
});
|
|
} catch (error) {
|
|
console.log('%c' + JSON.stringify(error), 'color:' + 'red' + ';font-weight:bold;');
|
|
}
|
|
})();
|
|
}
|
|
|
|
isEnablePlugin() {
|
|
var _this10 = 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* () {
|
|
try {
|
|
const {
|
|
value: isEnabled
|
|
} = yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_3__.NotifyPersistent.isEnabled();
|
|
_this10.persistentEnabled = isEnabled;
|
|
} catch (error) {
|
|
_this10.persistentEnabled = false;
|
|
}
|
|
})();
|
|
}
|
|
|
|
showAlertRequestListenerPermission() {
|
|
var _this11 = 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* () {
|
|
const requestPermissionActionNotificationListener = yield _this11.requestPermissionActionNotificationListener();
|
|
|
|
if (_this11.persistentEnabled && !requestPermissionActionNotificationListener) {
|
|
_this11.overlayService.alert({
|
|
header: 'Atenção',
|
|
message: 'Para que funcione corretamente, é necessário habilitar a notificação e adicionar o KeyAccess à lista de exceções de notificação.',
|
|
buttons: [{
|
|
text: 'Cancelar',
|
|
handler: () => {
|
|
_this11.overlayService.toast({
|
|
message: 'Não é garantido o bom funcionamento da notificação.'
|
|
});
|
|
}
|
|
}, {
|
|
text: 'Permitir',
|
|
handler: () => {
|
|
_this11.verfyPermissionListenerNotification();
|
|
}
|
|
}]
|
|
});
|
|
}
|
|
})();
|
|
}
|
|
|
|
verfyPermissionListenerNotification() {
|
|
var _this12 = 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* () {
|
|
try {
|
|
const {
|
|
receive: checkPermissionListener
|
|
} = yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_3__.NotifyPersistent.checkPermissionActionNotificationListener();
|
|
|
|
if (checkPermissionListener === 'granted') {
|
|
_this12.permissionNotificationListener = true; // Tem permissão para manipular notificação
|
|
}
|
|
} catch (error) {
|
|
console.log('error', error);
|
|
_this12.permissionNotificationListener = false;
|
|
}
|
|
})();
|
|
}
|
|
|
|
requestPermissionActionNotificationListener() {
|
|
var _this13 = 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* () {
|
|
const {
|
|
receive: requestPermission
|
|
} = yield capacitor_notify_persistent__WEBPACK_IMPORTED_MODULE_3__.NotifyPersistent.requestPermissionActionNotificationListener();
|
|
|
|
if (requestPermission === 'granted') {
|
|
_this13.permissionNotificationListener = true;
|
|
return true;
|
|
} else {
|
|
_this13.permissionNotificationListener = false;
|
|
return false;
|
|
}
|
|
})();
|
|
} // Carrega a configuração de notificações da API
|
|
|
|
|
|
loadConfiguration() {
|
|
var _this14 = 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* () {
|
|
try {
|
|
const {
|
|
accessToken,
|
|
companyInstance
|
|
} = yield _this14.getAccessToken();
|
|
const resp = yield _this14.apiService.getNotificationsConfiguration().toPromise();
|
|
_this14.notificationsEnabled = resp.activated;
|
|
_this14.persistentNotifications = resp.persistent;
|
|
_this14.autoActivateDate = resp.autoActivateDate || undefined;
|
|
_this14.weekDays = _this14.dayLabels.map((label, idx) => {
|
|
const p = resp.periodsConfig.find(pc => pc.dayOfWeek === idx + 1);
|
|
return {
|
|
label,
|
|
enabled: p?.activated ?? false,
|
|
startTime: p?.startAt.substring(0, 5) ?? '00:00',
|
|
endTime: p?.endAt.substring(0, 5) ?? '23:59'
|
|
};
|
|
});
|
|
} catch (error) {
|
|
console.error('Erro ao carregar configuração', error);
|
|
|
|
_this14.overlayService.toast({
|
|
message: 'Falha ao carregar configurações',
|
|
color: 'danger'
|
|
});
|
|
}
|
|
})();
|
|
} // Salva a configuração de notificações na API
|
|
|
|
|
|
saveConfiguration() {
|
|
var _this15 = 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* () {
|
|
const body = {
|
|
refId: _this15.refId,
|
|
defaultValue: false,
|
|
activated: _this15.notificationsEnabled,
|
|
persistent: _this15.persistentNotifications,
|
|
autoActivateDate: _this15.autoActivateDate || null,
|
|
periodsConfig: _this15.weekDays.map((d, idx) => ({
|
|
dayOfWeek: idx + 1,
|
|
activated: d.enabled,
|
|
startAt: '00:00:00',
|
|
endAt: '23:59:59'
|
|
}))
|
|
};
|
|
|
|
try {
|
|
const {
|
|
accessToken,
|
|
companyInstance
|
|
} = yield _this15.getAccessToken();
|
|
yield _this15.apiService.updateNotificationsConfiguration(body).toPromise();
|
|
|
|
_this15.overlayService.toast({
|
|
message: 'Configurações salvas com sucesso'
|
|
});
|
|
} catch (error) {
|
|
console.error('Erro ao salvar configuração', error);
|
|
|
|
_this15.overlayService.toast({
|
|
message: 'Erro ao salvar configuração',
|
|
color: 'danger'
|
|
});
|
|
}
|
|
})();
|
|
}
|
|
|
|
getAccessToken() {
|
|
var _this16 = 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* () {
|
|
const profile = _this16.profileManagerService.getProfileLogistic() || _this16.profileManagerService.getProfile();
|
|
|
|
if (!profile && profile?.login) {
|
|
return;
|
|
}
|
|
|
|
return _this16.authService.getToken().then(token => _this16.portalLoginManagerService.getAccessToken(profile.login, profile.portal, token)).then( /*#__PURE__*/function () {
|
|
var _ref2 = (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* (response) {
|
|
_this16.accessToken = response.access_token;
|
|
return {
|
|
accessToken: response.access_token,
|
|
companyInstance: profile?.company?.instanceName
|
|
};
|
|
});
|
|
|
|
return function (_x2) {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}()).catch(error => {
|
|
console.error('Erro ao obter access token', error);
|
|
return {
|
|
accessToken: null,
|
|
companyInstance: null
|
|
};
|
|
});
|
|
})();
|
|
}
|
|
|
|
}
|
|
|
|
ConfigurationPage.ɵfac = function ConfigurationPage_Factory(t) {
|
|
return new (t || ConfigurationPage)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.FcmService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.NgZoneService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.ClipboardService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_awesome_cordova_plugins_social_sharing_ngx__WEBPACK_IMPORTED_MODULE_6__.SocialSharing), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_7__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.OverlayService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.ProfileManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.PortalLoginManagerService));
|
|
};
|
|
|
|
ConfigurationPage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
|
|
type: ConfigurationPage,
|
|
selectors: [["app-configuration"]],
|
|
viewQuery: function ConfigurationPage_Query(rf, ctx) {
|
|
if (rf & 1) {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵviewQuery"](_ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonModal, 5);
|
|
}
|
|
|
|
if (rf & 2) {
|
|
let _t;
|
|
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx.modal = _t.first);
|
|
}
|
|
},
|
|
decls: 45,
|
|
vars: 18,
|
|
consts: [["defaultHref", "/home", 3, "refresh", "toQRCode", "title"], ["slot", "end", 3, "ngModel", "ngModelChange"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "ion-padding"], ["expand", "block", "color", "primary", 3, "click"], [1, "card_notifications"], [1, "col1"], [1, "card_notifications__icon"], ["slot", "start", 3, "name"], [1, "col2"], [1, "card_notifications__text"], [1, "col3"], [1, "card_notifications__button_toogle"], [1, "request"], ["expand", "full", "fill", "clear", "shape", "round", 3, "click", 4, "ngIf"], [1, "moda-permisson", 3, "isOpen"], ["presentation", "date", "display-format", "DD/MM/YYYY", 3, "ngModel", "ngModelChange"], ["lines", "none", 4, "ngIf"], ["lines", "none"], ["size", "6"], ["position", "stacked"], ["presentation", "time", "display-format", "HH:mm", "picker-format", "HH:mm", 3, "ngModel", "ngModelChange"], [3, "click"], ["slot", "end", 3, "checked", "ionChange"], [2, "position", "relative", "overflow", "visible"], [1, "icon", 2, "position", "absolute", "top", "0", "overflow", "visible", "right", "-1.5em"], ["slot", "end", 3, "src"], ["name", "help-circle", "slot", "start"], ["mode", "ios", "size", "small", 3, "color", "click"], ["expand", "full", "fill", "clear", "shape", "round", 3, "click"], ["button", "true", 3, "click"], [1, "btn_close"], ["fill", "clear", "shape", "round", 3, "click"]],
|
|
template: function ConfigurationPage_Template(rf, ctx) {
|
|
if (rf & 1) {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "app-header", 0);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "ion-content")(2, "ion-list")(3, "ion-item")(4, "ion-label");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5, "Ativar Notifica\u00E7\u00F5es");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "ion-toggle", 1);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function ConfigurationPage_Template_ion_toggle_ngModelChange_6_listener($event) {
|
|
return ctx.notificationsEnabled = $event;
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "ion-item")(8, "ion-label");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9, "Notifica\u00E7\u00E3o Persistente");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "ion-checkbox", 1);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function ConfigurationPage_Template_ion_checkbox_ngModelChange_10_listener($event) {
|
|
return ctx.persistentNotifications = $event;
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](11, ConfigurationPage_ion_item_11_Template, 4, 1, "ion-item", 2);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "ion-list")(13, "ion-list-header")(14, "ion-label");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](15, "Configura\u00E7\u00E3o por dia da semana");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](16, ConfigurationPage_ng_container_16_Template, 6, 3, "ng-container", 3);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](17, "div", 4)(18, "ion-button", 5);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ConfigurationPage_Template_ion_button_click_18_listener() {
|
|
return ctx.saveConfiguration();
|
|
});
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](19, "Salvar");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](20, "ion-list-header")(21, "ion-label");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](22, "Notifica\u00E7\u00F5es persistentes");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](23, "ion-card", 6)(24, "div", 7)(25, "div", 8);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](26, "ion-icon", 9);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](27, "div", 10)(28, "div", 11);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](29, ConfigurationPage_ng_container_29_Template, 4, 0, "ng-container", 2);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](30, ConfigurationPage_ng_container_30_Template, 4, 0, "ng-container", 2);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](31, "div", 12)(32, "div", 13);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](33, ConfigurationPage_ng_container_33_Template, 2, 1, "ng-container", 2);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](34, ConfigurationPage_ng_container_34_Template, 2, 1, "ng-container", 2);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](35, ConfigurationPage_ng_container_35_Template, 36, 9, "ng-container", 2);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](36, "div", 14);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](37, ConfigurationPage_ion_button_37_Template, 2, 0, "ion-button", 15);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](38, ConfigurationPage_ng_container_38_Template, 10, 1, "ng-container", 2);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](39, "ion-modal", 16);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](40, ConfigurationPage_ng_template_40_Template, 41, 0, "ng-template");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](41, "ion-modal", 16);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](42, ConfigurationPage_ng_template_42_Template, 26, 0, "ng-template");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](43, "ion-modal", 16);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](44, ConfigurationPage_ng_template_44_Template, 31, 0, "ng-template");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
}
|
|
|
|
if (rf & 2) {
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("refresh", false)("toQRCode", false)("title", "Configura\u00E7\u00F5es");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](6);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", ctx.notificationsEnabled);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", ctx.persistentNotifications);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !ctx.notificationsEnabled);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.weekDays);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](10);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("name", !ctx.persistentEnabled ? "notifications-off-circle" : "notifications-circle");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !ctx.persistentEnabled);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.persistentEnabled);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !ctx.persistentEnabled);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.persistentEnabled);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.persistentEnabled && ctx.platform === "android");
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !ctx.tokenFcm);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.tokenFcm);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("isOpen", ctx.isModalOpen);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("isOpen", ctx.isModalOpenDnd);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
|
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("isOpen", ctx.isModalOpenPermisionListener);
|
|
}
|
|
},
|
|
dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonCard, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonCardContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonCardHeader, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonCardSubtitle, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonCardTitle, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonCheckbox, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonChip, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonCol, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonDatetime, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonGrid, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonIcon, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonItem, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonItemDivider, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonLabel, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonList, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonListHeader, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonRow, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonToggle, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonModal, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.BooleanValueAccessor, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.SelectValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgModel, _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_9__.HeaderComponent],
|
|
styles: ["ion-content[_ngcontent-%COMP%] {\n --background: #f1f1f1;\n}\n\n.card_notifications[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n padding: 0.5em;\n border-radius: 8px;\n box-shadow: none;\n margin: 1em;\n min-height: 5em;\n}\n\n.card_notifications[_ngcontent-%COMP%] .col1[_ngcontent-%COMP%], .card_notifications[_ngcontent-%COMP%] .col2[_ngcontent-%COMP%], .card_notifications[_ngcontent-%COMP%] .col3[_ngcontent-%COMP%] {\n padding: 0 0.5em;\n padding: 0 0.5em;\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n.card_notifications__icon[_ngcontent-%COMP%] {\n display: flex;\n position: relative;\n justify-content: center;\n align-items: center;\n height: 100%;\n}\n\n.card_notifications__icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%] {\n font-size: 2em;\n}\n\n.card_notifications__title[_ngcontent-%COMP%] {\n font-size: 0.9em;\n}\n\n.card_notifications__text[_ngcontent-%COMP%] {\n font-size: 1em;\n}\n\n.card_notifications__text[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n font-weight: 900;\n text-decoration: underline;\n color: var(--ion-color-primary);\n}\n\n.card_notifications__button_toogle[_ngcontent-%COMP%] {\n display: flex;\n position: relative;\n justify-content: center;\n align-items: center;\n height: 100%;\n}\n\nion-modal[_ngcontent-%COMP%] {\n background: rgba(0, 0, 0, 0.13);\n}\n\nion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] {\n --background: transparent;\n}\n\nion-list[_ngcontent-%COMP%] {\n --background: var(--ion-color-light);\n margin-bottom: 1em;\n}\n\nion-list[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] {\n --background: #ffffff;\n --border-width: 0 0 1px 0;\n --border-color: var(--ion-color-medium);\n --border-style: solid;\n --inner-padding-end: 16px;\n}\n\nion-list[_ngcontent-%COMP%] ion-item-divider[_ngcontent-%COMP%] {\n margin: 1em 0 0.5em;\n --color: var(--ion-text-color);\n font-weight: 600;\n}\n\nion-grid[_ngcontent-%COMP%] {\n margin-top: 0;\n margin-bottom: 0;\n}\n\nion-datetime[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n.request[_ngcontent-%COMP%] {\n text-align: center;\n margin: 1em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbmZpZ3VyYXRpb24ucGFnZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UscUJBQUE7QUFDRjs7QUFDQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtFQUNBLGNBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0VBQ0EsV0FBQTtFQUNBLGVBQUE7QUFFRjs7QUFERTs7O0VBR0UsZ0JBQUE7RUFDQSxnQkFBQTtFQUNBLGFBQUE7RUFDQSxzQkFBQTtFQUNBLHVCQUFBO0FBR0o7O0FBREU7RUFDRSxhQUFBO0VBQ0Esa0JBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0VBQ0EsWUFBQTtBQUdKOztBQUZJO0VBQ0UsY0FBQTtBQUlOOztBQUFFO0VBQ0UsZ0JBQUE7QUFFSjs7QUFDRTtFQUNFLGNBQUE7QUFDSjs7QUFBSTtFQUNFLGdCQUFBO0VBQ0EsMEJBQUE7RUFDQSwrQkFBQTtBQUVOOztBQUVFO0VBQ0UsYUFBQTtFQUNBLGtCQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLFlBQUE7QUFBSjs7QUFJQTtFQUNFLCtCQUFBO0FBREY7O0FBRUU7RUFDRSx5QkFBQTtBQUFKOztBQUlBO0VBQ0Usb0NBQUE7RUFDQSxrQkFBQTtBQURGOztBQUVFO0VBQ0UscUJBQUE7RUFDQSx5QkFBQTtFQUNBLHVDQUFBO0VBQ0EscUJBQUE7RUFDQSx5QkFBQTtBQUFKOztBQUVFO0VBQ0UsbUJBQUE7RUFDQSw4QkFBQTtFQUNBLGdCQUFBO0FBQUo7O0FBR0E7RUFDRSxhQUFBO0VBQ0EsZ0JBQUE7QUFBRjs7QUFFQTtFQUNFLFdBQUE7QUFDRjs7QUFDQTtFQUNFLGtCQUFBO0VBQ0EsV0FBQTtBQUVGIiwiZmlsZSI6ImNvbmZpZ3VyYXRpb24ucGFnZS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiaW9uLWNvbnRlbnQge1xuICAtLWJhY2tncm91bmQ6ICNmMWYxZjE7XG59XG4uY2FyZF9ub3RpZmljYXRpb25zIHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICBwYWRkaW5nOiAwLjVlbTtcbiAgYm9yZGVyLXJhZGl1czogOHB4O1xuICBib3gtc2hhZG93OiBub25lO1xuICBtYXJnaW46IDFlbTtcbiAgbWluLWhlaWdodDogNWVtO1xuICAuY29sMSxcbiAgLmNvbDIsXG4gIC5jb2wzIHtcbiAgICBwYWRkaW5nOiAwIDAuNWVtO1xuICAgIHBhZGRpbmc6IDAgMC41ZW07XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICB9XG4gICZfX2ljb24ge1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIGlvbi1pY29uIHtcbiAgICAgIGZvbnQtc2l6ZTogMmVtO1xuICAgIH1cbiAgfVxuXG4gICZfX3RpdGxlIHtcbiAgICBmb250LXNpemU6IDAuOWVtO1xuICB9XG5cbiAgJl9fdGV4dCB7XG4gICAgZm9udC1zaXplOiAxZW07XG4gICAgc3BhbiB7XG4gICAgICBmb250LXdlaWdodDogOTAwO1xuICAgICAgdGV4dC1kZWNvcmF0aW9uOiB1bmRlcmxpbmU7XG4gICAgICBjb2xvcjogdmFyKC0taW9uLWNvbG9yLXByaW1hcnkpO1xuICAgIH1cbiAgfVxuXG4gICZfX2J1dHRvbl90b29nbGUge1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgaGVpZ2h0OiAxMDAlO1xuICB9XG59XG5cbmlvbi1tb2RhbCB7XG4gIGJhY2tncm91bmQ6IHJnYmEoMCwgMCwgMCwgMC4xMyk7XG4gIGlvbi1jb250ZW50IHtcbiAgICAtLWJhY2tncm91bmQ6IHRyYW5zcGFyZW50O1xuICB9XG59XG5cbmlvbi1saXN0IHtcbiAgLS1iYWNrZ3JvdW5kOiB2YXIoLS1pb24tY29sb3ItbGlnaHQpO1xuICBtYXJnaW4tYm90dG9tOiAxZW07XG4gIGlvbi1pdGVtIHtcbiAgICAtLWJhY2tncm91bmQ6ICNmZmZmZmY7XG4gICAgLS1ib3JkZXItd2lkdGg6IDAgMCAxcHggMDtcbiAgICAtLWJvcmRlci1jb2xvcjogdmFyKC0taW9uLWNvbG9yLW1lZGl1bSk7XG4gICAgLS1ib3JkZXItc3R5bGU6IHNvbGlkO1xuICAgIC0taW5uZXItcGFkZGluZy1lbmQ6IDE2cHg7XG4gIH1cbiAgaW9uLWl0ZW0tZGl2aWRlciB7XG4gICAgbWFyZ2luOiAxZW0gMCAwLjVlbTtcbiAgICAtLWNvbG9yOiB2YXIoLS1pb24tdGV4dC1jb2xvcik7XG4gICAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgfVxufVxuaW9uLWdyaWQge1xuICBtYXJnaW4tdG9wOiAwO1xuICBtYXJnaW4tYm90dG9tOiAwO1xufVxuaW9uLWRhdGV0aW1lIHtcbiAgd2lkdGg6IDEwMCU7XG59XG4ucmVxdWVzdCB7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgbWFyZ2luOiAxZW07XG59XG4iXX0= */"]
|
|
});
|
|
|
|
/***/ })
|
|
|
|
}])
|
|
//# sourceMappingURL=8254.js.map
|