text: (function () {
    function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  
    function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  
    function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
    (window["webpackJsonp"] = window["webpackJsonp"] || []).push([["languages-languages-module"], {
      /***/
      "+8HC":
      /*!*****************************************************!*\
        !*** ./src/app/pages/languages/languages.module.ts ***!
        \*****************************************************/
  
      /*! exports provided: LanguagesPageModule */
  
      /***/
      function HC(module, __webpack_exports__, __webpack_require__) {
        "use strict";
  
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */
  
  
        __webpack_require__.d(__webpack_exports__, "LanguagesPageModule", function () {
          return LanguagesPageModule;
        });
        /* harmony import */
  
  
        var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
        /*! tslib */
        "mrSG");
        /* harmony import */
  
  
        var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
        /*! @angular/core */
        "fXoL");
        /* harmony import */
  
  
        var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
        /*! @angular/common */
        "ofXK");
        /* harmony import */
  
  
        var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
        /*! @angular/forms */
        "3Pt+");
        /* harmony import */
  
  
        var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
        /*! @ionic/angular */
        "TEn/");
        /* harmony import */
  
  
        var _languages_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
        /*! ./languages-routing.module */
        "l3ba");
        /* harmony import */
  
  
        var _languages_page__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
        /*! ./languages.page */
        "rO+y");
        /*
          Authors : initappz (Rahul Jograna)
          Website : https://initappz.com/
          App Name : ionic 5 foodies app
          Created : 28-Feb-2021
          This App Template Source code is licensed as per the
          terms found in the Website https://initappz.com/license
          Copyright and Good Faith Purchasers © 2020-present initappz.
        */
  
  
        var LanguagesPageModule = function LanguagesPageModule() {
          _classCallCheck(this, LanguagesPageModule);
        };
  
        LanguagesPageModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
          imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"], _ionic_angular__WEBPACK_IMPORTED_MODULE_4__["IonicModule"], _languages_routing_module__WEBPACK_IMPORTED_MODULE_5__["LanguagesPageRoutingModule"]],
          declarations: [_languages_page__WEBPACK_IMPORTED_MODULE_6__["LanguagesPage"]]
        })], LanguagesPageModule);
        /***/
      },
  
      /***/
      "Mfxn":
      /*!*******************************************************************************************!*\
        !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/languages/languages.page.html ***!
        \*******************************************************************************************/
  
      /*! exports provided: default */
  
      /***/
      function Mfxn(module, __webpack_exports__, __webpack_require__) {
        "use strict";
  
        __webpack_require__.r(__webpack_exports__);
        /* harmony default export */
  
  
        __webpack_exports__["default"] = "<!-- \n   Authors : initappz (Rahul Jograna)\n  Website : https://initappz.com/\n  App Name : ionic 5 foodies app\n  Created : 28-Feb-2021\n  This App Template Source code is licensed as per the\n  terms found in the Website https://initappz.com/license\n  Copyright and Good Faith Purchasers © 2020-present initappz.\n -->\n<ion-header>\n  <ion-toolbar color=\"primary\">\n    <ion-title> {{util.translate('Languages')}} </ion-title>\n    <ion-buttons slot=\"end\">\n      <ion-button (click)=\"openMenu()\">\n        <img class=\"menuIcon\" src=\"assets/sidemenu/menu_light.png\" alt=\"\">\n      </ion-button>\n    </ion-buttons>\n  </ion-toolbar>\n</ion-header>\n\n<ion-content class=\"ion-padding\">\n  <p *ngIf=\"!dummy?.length && !langs?.length\" class=\"ion-text-center\"> {{util.translate('No Languages Found')}} </p>\n  <ion-item *ngFor=\"let item of dummy\">\n    <ion-thumbnail slot=\"start\">\n      <ion-skeleton-text animated style=\"width: 100%;height: 100px;\"></ion-skeleton-text>\n    </ion-thumbnail>\n    <ion-label>\n      <ion-skeleton-text animated style=\"width: 100%\"></ion-skeleton-text>\n    </ion-label>\n  </ion-item>\n  <ion-list>\n    <ion-radio-group [(ngModel)]=\"selected\" (ionChange)=\"changed()\">\n      <ion-item *ngFor=\"let item of langs\" class=\"list\" lines=\"none\">\n        <ion-thumbnail slot=\"start\" class=\"thums\">\n          <img [src]=\"api.mediaURL+ item.cover\" alt=\"\">\n        </ion-thumbnail>\n        <ion-label class=\"title\">{{item.name}}</ion-label>\n        <ion-radio [value]=\"item.file\" slot=\"end\" mode=\"md\"></ion-radio>\n      </ion-item>\n    </ion-radio-group>\n  </ion-list>\n</ion-content>";
        /***/
      },
  
      /***/
      "gl0j":
      /*!*****************************************************!*\
        !*** ./src/app/pages/languages/languages.page.scss ***!
        \*****************************************************/
  
      /*! exports provided: default */
  
      /***/
      function gl0j(module, __webpack_exports__, __webpack_require__) {
        "use strict";
  
        __webpack_require__.r(__webpack_exports__);
        /* harmony default export */
  
  
        __webpack_exports__["default"] = "@charset \"UTF-8\";\n/*\n  Authors : initappz (Rahul Jograna)\n  Website : https://initappz.com/\n  App Name : ionic 5 foodies app\n  Created : 28-Feb-2021\n  This App Template Source code is licensed as per the\n  terms found in the Website https://initappz.com/license\n  Copyright and Good Faith Purchasers © 2020-present initappz.\n*/\n.thums {\n  display: flex;\n  flex-direction: row;\n  justify-content: center;\n  align-items: center;\n}\n.thums img {\n  height: 25px;\n  width: 25px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xhbmd1YWdlcy5wYWdlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsZ0JBQWdCO0FBQWhCOzs7Ozs7OztDQUFBO0FBU0E7RUFDRSxhQUFBO0VBQ0EsbUJBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0FBRUY7QUFERTtFQUNFLFlBQUE7RUFDQSxXQUFBO0FBR0oiLCJmaWxlIjoibGFuZ3VhZ2VzLnBhZ2Uuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gIEF1dGhvcnMgOiBpbml0YXBweiAoUmFodWwgSm9ncmFuYSlcbiAgV2Vic2l0ZSA6IGh0dHBzOi8vaW5pdGFwcHouY29tL1xuICBBcHAgTmFtZSA6IGlvbmljIDUgZm9vZGllcyBhcHBcbiAgQ3JlYXRlZCA6IDI4LUZlYi0yMDIxXG4gIFRoaXMgQXBwIFRlbXBsYXRlIFNvdXJjZSBjb2RlIGlzIGxpY2Vuc2VkIGFzIHBlciB0aGVcbiAgdGVybXMgZm91bmQgaW4gdGhlIFdlYnNpdGUgaHR0cHM6Ly9pbml0YXBwei5jb20vbGljZW5zZVxuICBDb3B5cmlnaHQgYW5kIEdvb2QgRmFpdGggUHVyY2hhc2VycyDCqSAyMDIwLXByZXNlbnQgaW5pdGFwcHouXG4qL1xuLnRodW1zIHtcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IHJvdztcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGltZyB7XG4gICAgaGVpZ2h0OiAyNXB4O1xuICAgIHdpZHRoOiAyNXB4O1xuICB9XG59XG4iXX0= */";
        /***/
      },
  
      /***/
      "l3ba":
      /*!*************************************************************!*\
        !*** ./src/app/pages/languages/languages-routing.module.ts ***!
        \*************************************************************/
  
      /*! exports provided: LanguagesPageRoutingModule */
  
      /***/
      function l3ba(module, __webpack_exports__, __webpack_require__) {
        "use strict";
  
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */
  
  
        __webpack_require__.d(__webpack_exports__, "LanguagesPageRoutingModule", function () {
          return LanguagesPageRoutingModule;
        });
        /* harmony import */
  
  
        var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
        /*! tslib */
        "mrSG");
        /* harmony import */
  
  
        var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
        /*! @angular/core */
        "fXoL");
        /* harmony import */
  
  
        var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
        /*! @angular/router */
        "tyNb");
        /* harmony import */
  
  
        var _languages_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
        /*! ./languages.page */
        "rO+y");
        /*
          Authors : initappz (Rahul Jograna)
          Website : https://initappz.com/
          App Name : ionic 5 foodies app
          Created : 28-Feb-2021
          This App Template Source code is licensed as per the
          terms found in the Website https://initappz.com/license
          Copyright and Good Faith Purchasers © 2020-present initappz.
        */
  
  
        var routes = [{
          path: '',
          component: _languages_page__WEBPACK_IMPORTED_MODULE_3__["LanguagesPage"]
        }];
  
        var LanguagesPageRoutingModule = function LanguagesPageRoutingModule() {
          _classCallCheck(this, LanguagesPageRoutingModule);
        };
  
        LanguagesPageRoutingModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
          imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forChild(routes)],
          exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]]
        })], LanguagesPageRoutingModule);
        /***/
      },
  
      /***/
      "rO+y":
      /*!***************************************************!*\
        !*** ./src/app/pages/languages/languages.page.ts ***!
        \***************************************************/
  
      /*! exports provided: LanguagesPage */
  
      /***/
      function rOY(module, __webpack_exports__, __webpack_require__) {
        "use strict";
  
        __webpack_require__.r(__webpack_exports__);
        /* harmony export (binding) */
  
  
        __webpack_require__.d(__webpack_exports__, "LanguagesPage", function () {
          return LanguagesPage;
        });
        /* harmony import */
  
  
        var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
        /*! tslib */
        "mrSG");
        /* harmony import */
  
  
        var _raw_loader_languages_page_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
        /*! raw-loader!./languages.page.html */
        "Mfxn");
        /* harmony import */
  
  
        var _languages_page_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
        /*! ./languages.page.scss */
        "gl0j");
        /* harmony import */
  
  
        var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
        /*! @angular/core */
        "fXoL");
        /* harmony import */
  
  
        var src_app_services_apis_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
        /*! src/app/services/apis.service */
        "8RPc");
        /* harmony import */
  
  
        var src_app_services_util_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
        /*! src/app/services/util.service */
        "2Rin");
        /*
          Authors : initappz (Rahul Jograna)
          Website : https://initappz.com/
          App Name : ionic 5 foodies app
          Created : 28-Feb-2021
          This App Template Source code is licensed as per the
          terms found in the Website https://initappz.com/license
          Copyright and Good Faith Purchasers © 2020-present initappz.
        */
  
  
        var LanguagesPage = /*#__PURE__*/function () {
          function LanguagesPage(util, api) {
            _classCallCheck(this, LanguagesPage);
  
            this.util = util;
            this.api = api;
            this.dummy = [];
            this.langs = [];
            this.selected = localStorage.getItem('language');
            this.getLangs();
          }
  
          _createClass(LanguagesPage, [{
            key: "ngOnInit",
            value: function ngOnInit() {}
          }, {
            key: "getLangs",
            value: function getLangs() {
              var _this = this;
  
              this.dummy = Array(10);
              this.api.get('lang').then(function (data) {
                console.log(data);
                _this.dummy = [];
  
                if (data && data.status === 200) {
                  var info = data.data.filter(function (x) {
                    return x.status === '1';
                  });
                  _this.langs = info;
                }
              }, function (error) {
                _this.dummy = [];
                console.log(error);
  
                _this.util.errorToast(_this.util.translate('Something went wrong'));
              });
            }
          }, {
            key: "openMenu",
            value: function openMenu() {
              this.util.openMenu();
            }
          }, {
            key: "changed",
            value: function changed() {
              var _this2 = this;
  
              console.log(this.selected);
              var item = this.langs.filter(function (x) {
                return x.file === _this2.selected;
              });
  
              if (item && item.length > 0) {
                this.util.direction = item[0].positions === '1' ? 'ltr' : 'rtl';
                document.documentElement.dir = this.util.direction;
                localStorage.setItem('language', this.selected);
                window.location.reload();
              }
            }
          }]);
  
          return LanguagesPage;
        }();
  
        LanguagesPage.ctorParameters = function () {
          return [{
            type: src_app_services_util_service__WEBPACK_IMPORTED_MODULE_5__["UtilService"]
          }, {
            type: src_app_services_apis_service__WEBPACK_IMPORTED_MODULE_4__["ApisService"]
          }];
        };
  
        LanguagesPage = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
          selector: 'app-languages',
          template: _raw_loader_languages_page_html__WEBPACK_IMPORTED_MODULE_1__["default"],
          styles: [_languages_page_scss__WEBPACK_IMPORTED_MODULE_2__["default"]]
        }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [src_app_services_util_service__WEBPACK_IMPORTED_MODULE_5__["UtilService"], src_app_services_apis_service__WEBPACK_IMPORTED_MODULE_4__["ApisService"]])], LanguagesPage);
        /***/
      }
    }]);
  })();
  //# sourceMappingURL=languages-languages-module-es5.js.map