(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([["src_app_pages_tabs_more_debug_debug_module_ts"],{

/***/ 69930:
/*!***************************************************************!*\
  !*** ./src/app/pages/tabs/more/debug/debug-routing.module.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DebugPageRoutingModule: () => (/* binding */ DebugPageRoutingModule)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ 24398);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 95072);
/* harmony import */ var _debug_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./debug.page */ 98300);




const routes = [{
  path: '',
  component: _debug_page__WEBPACK_IMPORTED_MODULE_0__.DebugPage
}];
let DebugPageRoutingModule = class DebugPageRoutingModule {};
DebugPageRoutingModule = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.NgModule)({
  imports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule.forChild(routes)],
  exports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule]
})], DebugPageRoutingModule);


/***/ }),

/***/ 61235:
/*!*******************************************************!*\
  !*** ./src/app/pages/tabs/more/debug/debug.module.ts ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DebugPageModule: () => (/* binding */ DebugPageModule)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ 24398);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 60316);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 34456);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ionic/angular */ 21507);
/* harmony import */ var _debug_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./debug-routing.module */ 69930);
/* harmony import */ var _debug_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./debug.page */ 98300);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ngx-translate/core */ 597);
/* harmony import */ var _components_card_block_card_block_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../components/card-block/card-block.component */ 65075);
/* harmony import */ var _components_menu_item_menu_item_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../components/menu-item/menu-item.component */ 23853);










let DebugPageModule = class DebugPageModule {};
DebugPageModule = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.NgModule)({
  imports: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormsModule, _ionic_angular__WEBPACK_IMPORTED_MODULE_8__.IonicModule, _debug_routing_module__WEBPACK_IMPORTED_MODULE_0__.DebugPageRoutingModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__.TranslateModule, _components_card_block_card_block_component__WEBPACK_IMPORTED_MODULE_2__.CardBlockComponent, _components_menu_item_menu_item_component__WEBPACK_IMPORTED_MODULE_3__.MenuItemComponent],
  declarations: [_debug_page__WEBPACK_IMPORTED_MODULE_1__.DebugPage]
})], DebugPageModule);


/***/ }),

/***/ 98300:
/*!*****************************************************!*\
  !*** ./src/app/pages/tabs/more/debug/debug.page.ts ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DebugPage: () => (/* binding */ DebugPage)
/* harmony export */ });
/* harmony import */ var D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 89204);
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! tslib */ 24398);
/* harmony import */ var _debug_page_html_ngResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./debug.page.html?ngResource */ 17356);
/* harmony import */ var _debug_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./debug.page.scss?ngResource */ 84712);
/* harmony import */ var _debug_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_debug_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/core */ 37580);
/* harmony import */ var _services_push_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../services/push.service */ 62802);
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../environments/environment */ 45312);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ngx-translate/core */ 597);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ionic/angular */ 4059);
/* harmony import */ var _services_helper_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../services/helper.service */ 54102);
/* harmony import */ var _environments_settings__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../environments/settings */ 79308);
/* harmony import */ var _services_debug_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../services/debug.service */ 33925);
/* harmony import */ var _change_data_modal_change_data_modal_page__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../change-data-modal/change-data-modal.page */ 50553);
/* harmony import */ var _services_modal_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../services/modal.service */ 5455);
/* harmony import */ var _capacitor_preferences__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @capacitor/preferences */ 46493);
/* harmony import */ var _environments_storage__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../environments/storage */ 12960);
/* harmony import */ var _awesome_cordova_plugins_device_ngx__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @awesome-cordova-plugins/device/ngx */ 90735);
/* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../services/http.service */ 56722);


















let DebugPage = class DebugPage {
  constructor(translate, helper, debug, device, platform, http, modalService) {
    this.translate = translate;
    this.helper = helper;
    this.debug = debug;
    this.device = device;
    this.platform = platform;
    this.http = http;
    this.modalService = modalService;
    this.oneSignalID = _services_push_service__WEBPACK_IMPORTED_MODULE_3__.oneSignalID;
    this.environment = _environments_environment__WEBPACK_IMPORTED_MODULE_4__.environment;
    this.ONESIGNAL_APP_ID = _environments_settings__WEBPACK_IMPORTED_MODULE_6__.ONESIGNAL_APP_ID;
  }
  toggleScreenMode() {
    var _this = this;
    return (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.debug.screenMode$.set(!_this.debug.screenMode$());
      if (_this.debug.screenMode$()) {
        if (_this.debug.unreliableLS === null) {
          yield _this.debug.generateLS();
        }
        yield _capacitor_preferences__WEBPACK_IMPORTED_MODULE_10__.Preferences.set({
          key: _environments_storage__WEBPACK_IMPORTED_MODULE_11__.SCREEN_MODE,
          value: '1'
        });
      } else {
        yield _capacitor_preferences__WEBPACK_IMPORTED_MODULE_10__.Preferences.remove({
          key: _environments_storage__WEBPACK_IMPORTED_MODULE_11__.SCREEN_MODE
        });
      }
    })();
  }
  openChangeUnreliableLSModal() {
    var _this2 = this;
    return (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      return _this2.modalService.openModal({
        component: _change_data_modal_change_data_modal_page__WEBPACK_IMPORTED_MODULE_8__.ChangeDataModalPage,
        componentProps: {
          title: 'Номер ЛС',
          inputType: 'text',
          name: 'ChangeUnreliableLSModal',
          value: _this2.debug.unreliableLS,
          handler: value => new Promise(/*#__PURE__*/function () {
            var _ref = (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resolve) {
              if (value.input != '') {
                _this2.debug.unreliableLS = value.input;
                yield _capacitor_preferences__WEBPACK_IMPORTED_MODULE_10__.Preferences.set({
                  key: _environments_storage__WEBPACK_IMPORTED_MODULE_11__.UNRELIABLE_LS,
                  value: value.input
                });
              }
              resolve(true);
            });
            return function (_x) {
              return _ref.apply(this, arguments);
            };
          }())
        }
      });
    })();
  }
  openChangeUnreliableFIOModal() {
    var _this3 = this;
    return (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      return _this3.modalService.openModal({
        component: _change_data_modal_change_data_modal_page__WEBPACK_IMPORTED_MODULE_8__.ChangeDataModalPage,
        componentProps: {
          title: 'ФИО',
          inputType: 'text',
          name: 'ChangeUnreliableFIOModal',
          value: _this3.debug.unreliableFIO,
          handler: value => new Promise(/*#__PURE__*/function () {
            var _ref2 = (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resolve) {
              if (value.input != '') {
                _this3.debug.unreliableFIO = value.input;
                yield _capacitor_preferences__WEBPACK_IMPORTED_MODULE_10__.Preferences.set({
                  key: _environments_storage__WEBPACK_IMPORTED_MODULE_11__.UNRELIABLE_FIO,
                  value: value.input
                });
              }
              resolve(true);
            });
            return function (_x2) {
              return _ref2.apply(this, arguments);
            };
          }())
        }
      });
    })();
  }
  openChangeUnreliableAddressModal() {
    var _this4 = this;
    return (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      return _this4.modalService.openModal({
        component: _change_data_modal_change_data_modal_page__WEBPACK_IMPORTED_MODULE_8__.ChangeDataModalPage,
        componentProps: {
          title: 'Адрес',
          inputType: 'text',
          name: 'ChangeUnreliableAddressModal',
          value: _this4.debug.unreliableAddress,
          handler: value => new Promise(/*#__PURE__*/function () {
            var _ref3 = (0,D_progr_mobileappv3_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resolve) {
              if (value.input != '') {
                _this4.debug.unreliableAddress = value.input;
                yield _capacitor_preferences__WEBPACK_IMPORTED_MODULE_10__.Preferences.set({
                  key: _environments_storage__WEBPACK_IMPORTED_MODULE_11__.UNRELIABLE_ADDRESS,
                  value: value.input
                });
              }
              resolve(true);
            });
            return function (_x3) {
              return _ref3.apply(this, arguments);
            };
          }())
        }
      });
    })();
  }
  toggleDevMenu() {
    this.debug.hideDevMenu = !this.debug.hideDevMenu;
  }
  static {
    this.ctorParameters = () => [{
      type: _ngx_translate_core__WEBPACK_IMPORTED_MODULE_14__.TranslateService
    }, {
      type: _services_helper_service__WEBPACK_IMPORTED_MODULE_5__.HelperService
    }, {
      type: _services_debug_service__WEBPACK_IMPORTED_MODULE_7__.DebugService
    }, {
      type: _awesome_cordova_plugins_device_ngx__WEBPACK_IMPORTED_MODULE_12__.Device
    }, {
      type: _ionic_angular__WEBPACK_IMPORTED_MODULE_15__.Platform
    }, {
      type: _services_http_service__WEBPACK_IMPORTED_MODULE_13__.HttpService
    }, {
      type: _services_modal_service__WEBPACK_IMPORTED_MODULE_9__.ModalService
    }];
  }
};
DebugPage = (0,tslib__WEBPACK_IMPORTED_MODULE_16__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_17__.Component)({
  selector: 'app-debug',
  template: _debug_page_html_ngResource__WEBPACK_IMPORTED_MODULE_1__,
  styles: [(_debug_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_2___default())]
})], DebugPage);


/***/ }),

/***/ 84712:
/*!******************************************************************!*\
  !*** ./src/app/pages/tabs/more/debug/debug.page.scss?ngResource ***!
  \******************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// Imports
var ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = __webpack_require__(/*! ../../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js */ 53142);
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../node_modules/css-loader/dist/runtime/api.js */ 35950);
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);
// Module
___CSS_LOADER_EXPORT___.push([module.id, ``, "",{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}]);
// Exports
module.exports = ___CSS_LOADER_EXPORT___.toString();


/***/ }),

/***/ 17356:
/*!******************************************************************!*\
  !*** ./src/app/pages/tabs/more/debug/debug.page.html?ngResource ***!
  \******************************************************************/
/***/ ((module) => {

"use strict";
module.exports = "<!--\n  ~ Copyright (c) 2022. Группа компаний \"СТЕК\". Все права защищены. Разработчик: Чуриков Антон Алексеевич\n  -->\n\n<ion-header class=\"ion-no-border\">\n  <ion-toolbar>\n    <ion-buttons slot=\"start\">\n      <ion-back-button text=\"\" icon=\"assets/icons/Chevron_Left.svg\"></ion-back-button>\n    </ion-buttons>\n    <ion-title>{{ 'MORE.DEBUG_PAGE.TITLE' | translate }}</ion-title>\n  </ion-toolbar>\n</ion-header>\n\n<ion-content>\n\n  <div class=\"content-page\">\n    <app-card-block title=\"Push уведомления\">\n      <app-menu-item\n          title=\"Subscription ID\"\n          [value]=\"helper.shortFileName(oneSignalID.value)\"\n          (click)=\"helper.copy(oneSignalID.value)\"\n          icon=\"Copy\"\n      />\n\n      <app-menu-item\n          title=\"App ID\"\n          [value]=\"helper.shortFileName(ONESIGNAL_APP_ID)\"\n          (click)=\"helper.copy(ONESIGNAL_APP_ID)\"\n          icon=\"Copy\"\n      />\n    </app-card-block>\n\n    <app-card-block>\n      <app-menu-item\n          title=\"Режим скриншотов\"\n          (click)=\"toggleScreenMode()\"\n          icon=\"\"\n      >\n        <ion-toggle [ngModel]=\"debug.screenMode$()\"></ion-toggle>\n      </app-menu-item>\n\n      <app-menu-item\n          title=\"Скрыть меню разработчика\"\n          description=\"Чтобы вернуть меню нужно очистить кэш в приложении\"\n          [disabled]=\"!debug.screenMode$()\"\n          (click)=\"toggleDevMenu()\"\n          icon=\"\"\n      >\n        <ion-toggle [ngModel]=\"debug.hideDevMenu\"></ion-toggle>\n      </app-menu-item>\n\n      <app-menu-item\n          title=\"Номер ЛС\"\n          (click)=\"openChangeUnreliableLSModal()\"\n          [value]=\"debug.unreliableLS\"\n          [disabled]=\"!debug.screenMode$()\"\n      />\n\n      <app-menu-item\n          title=\"Сгенерировать новый ЛС\"\n          (click)=\"debug.generateLS()\"\n          [disabled]=\"!debug.screenMode$()\"\n          icon=\"\"\n      />\n\n      <app-menu-item\n          title=\"ФИО\"\n          (click)=\"openChangeUnreliableFIOModal()\"\n          [value]=\"debug.unreliableFIO\"\n          [disabled]=\"!debug.screenMode$()\"\n      />\n\n      <app-menu-item\n          title=\"Адрес\"\n          (click)=\"openChangeUnreliableAddressModal()\"\n          [value]=\"debug.unreliableAddress\"\n          [disabled]=\"!debug.screenMode$()\"\n      />\n    </app-card-block>\n\n    <app-card-block [title]=\"'API'\">\n      <app-menu-item\n          [title]=\"http.api_url.value\"\n          (click)=\"helper.copy(http.api_url.value)\"\n          icon=\"Copy\"\n      />\n\n      <app-menu-item\n          title=\"Переключить API\"\n          (click)=\"debug.changeAPI()\"\n      />\n\n      <app-menu-item\n          title=\"Сбросить изменения API\"\n          (click)=\"debug.resetAPI()\"\n          icon=\"\"\n      />\n    </app-card-block>\n\n    <app-card-block>\n      <app-menu-item\n          title=\"Device UUID\"\n          [value]=\"platform.is('cordova') ? device.uuid : debug.deviceUUID\"\n          icon=\"\"\n      />\n\n      @if (!platform.is('cordova')) {\n        <app-menu-item\n            title=\"Сменить Device UUID\"\n            (click)=\"debug.changeDeviceUUID()\"\n            icon=\"\"\n        />\n      }\n    </app-card-block>\n  </div>\n\n</ion-content>\n";

/***/ })

}]);
//# sourceMappingURL=src_app_pages_tabs_more_debug_debug_module_ts.js.map