(self["webpackChunkLearningchain"] = self["webpackChunkLearningchain"] || []).push([["src_app_pages_certificationslist_certificationslist_module_ts"],{

/***/ 4160:
/*!*******************************************************************************!*\
  !*** ./src/app/pages/certificationslist/certificationslist-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 */   "CertificationslistPageRoutingModule": () => (/* binding */ CertificationslistPageRoutingModule)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ 1855);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2741);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 9535);
/* harmony import */ var _certificationslist_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./certificationslist.page */ 8735);




const routes = [
    {
        path: '',
        component: _certificationslist_page__WEBPACK_IMPORTED_MODULE_0__.CertificationslistPage
    }
];
let CertificationslistPageRoutingModule = class CertificationslistPageRoutingModule {
};
CertificationslistPageRoutingModule = (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],
    })
], CertificationslistPageRoutingModule);



/***/ }),

/***/ 3020:
/*!***********************************************************************!*\
  !*** ./src/app/pages/certificationslist/certificationslist.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 */   "CertificationslistPageModule": () => (/* binding */ CertificationslistPageModule)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ 1855);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2741);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 6274);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 3324);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic/angular */ 6820);
/* harmony import */ var _certificationslist_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./certificationslist-routing.module */ 4160);
/* harmony import */ var _certificationslist_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./certificationslist.page */ 8735);
/* harmony import */ var ngx_qrcode2__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-qrcode2 */ 3932);








let CertificationslistPageModule = class CertificationslistPageModule {
};
CertificationslistPageModule = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
    (0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.NgModule)({
        imports: [
            _angular_common__WEBPACK_IMPORTED_MODULE_4__.CommonModule,
            _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormsModule,
            _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonicModule,
            ngx_qrcode2__WEBPACK_IMPORTED_MODULE_7__.NgxQRCodeModule,
            _certificationslist_routing_module__WEBPACK_IMPORTED_MODULE_0__.CertificationslistPageRoutingModule
        ],
        declarations: [_certificationslist_page__WEBPACK_IMPORTED_MODULE_1__.CertificationslistPage]
    })
], CertificationslistPageModule);



/***/ }),

/***/ 8735:
/*!*********************************************************************!*\
  !*** ./src/app/pages/certificationslist/certificationslist.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 */   "CertificationslistPage": () => (/* binding */ CertificationslistPage)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! tslib */ 1855);
/* harmony import */ var _raw_loader_certificationslist_page_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !raw-loader!./certificationslist.page.html */ 261);
/* harmony import */ var _certificationslist_page_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./certificationslist.page.scss */ 7425);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/core */ 2741);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/router */ 9535);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ionic/angular */ 6820);
/* harmony import */ var src_app_services_api_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/services/api.service */ 3734);
/* harmony import */ var src_app_services_common_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/common.service */ 6880);
/* harmony import */ var src_app_services_db_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/db.service */ 5185);
/* harmony import */ var _ionic_native_in_app_browser_ngx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ionic-native/in-app-browser/ngx */ 8544);
/* harmony import */ var _ionic_native_barcode_scanner_ngx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic-native/barcode-scanner/ngx */ 3370);
/* harmony import */ var _ionic_native_social_sharing_ngx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ionic-native/social-sharing/ngx */ 9704);
/* harmony import */ var _ionic_native_file_ngx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ionic-native/file/ngx */ 5901);
/* harmony import */ var _ionic_native_http_ngx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ionic-native/http/ngx */ 5912);
/* harmony import */ var _ionic_native_file_opener_ngx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ionic-native/file-opener/ngx */ 6319);















let CertificationslistPage = class CertificationslistPage {
    // accordionGroupChange = (ev: any) => {
    //   const nativeEl = this.listenerOut.nativeElement;
    //   if (!nativeEl) {
    //     return;
    //   }
    //   const collapsedItems = this.values.filter((value) => value !== ev.detail.value);
    //   const selectedValue = ev.detail.value;
    //   nativeEl.innerText = `
    //     Expanded: ${selectedValue === undefined ? 'None' : ev.detail.value}
    //     Collapsed: ${collapsedItems.join(', ')}
    //   `;
    // };
    constructor(navCtrl, apiService, modalCtrl, dbService, commonService, theInAppBrowser, activeRoute, barcodeScanner, socialSharing, file, httpreq, fileOpener) {
        this.navCtrl = navCtrl;
        this.apiService = apiService;
        this.modalCtrl = modalCtrl;
        this.dbService = dbService;
        this.commonService = commonService;
        this.theInAppBrowser = theInAppBrowser;
        this.activeRoute = activeRoute;
        this.barcodeScanner = barcodeScanner;
        this.socialSharing = socialSharing;
        this.file = file;
        this.httpreq = httpreq;
        this.fileOpener = fileOpener;
        // @ViewChild('listenerOut', { static: true }) listenerOut: ElementRef;
        this.values = ['first', 'second', 'third'];
        this.options = {
            location: 'yes',
            hidden: 'no',
            clearcache: 'yes',
            clearsessioncache: 'yes',
            zoom: 'yes',
            hardwareback: 'yes',
            mediaPlaybackRequiresUserAction: 'no',
            shouldPauseOnSuspend: 'no',
            closebuttoncaption: 'Close',
            disallowoverscroll: 'no',
            toolbar: 'yes',
            enableViewportScale: 'no',
            allowInlineMediaPlayback: 'no',
            presentationstyle: 'pagesheet',
            fullscreen: 'yes', //Windows only    
        };
        this.row_data = [];
        this.elementType = 'url';
    }
    ngOnInit() {
    }
    ionViewDidEnter() {
        this.loginData = JSON.parse(localStorage.getItem("loginData"));
        this.activeRoute.queryParams.subscribe(params => {
            if (params && params.pagename) {
                this.pagename = params.pagename;
                if (this.pagename === 'Dashboard') {
                    this.walletId = params.walletId;
                    this.getWalletsCertificates();
                    // alert("wallet id is "+ this.walletId)
                }
                else {
                    if (this.pagename === 'Learningchain') {
                        //this.getRows();
                        this.walletId = '';
                        this.getLearningchainCertificates();
                    }
                }
            }
        });
        // if(this.pagename === 'Learningchain') 
        // {
        //             //this.getRows();
        //             this.walletId  = '';
        //             this.getLearningchainCertificates();
        // }    
        // else{
        //           if(this.pagename === 'Dashboard') 
        //              {
        //                     this.getWalletsCertificates();
        //              }
        // }
    }
    scanBarcode() {
        const options = {
            preferFrontCamera: false,
            showFlipCameraButton: true,
            showTorchButton: true,
            torchOn: false,
            prompt: 'Place a barcode inside the scan area',
            resultDisplayDuration: 0,
            formats: 'EAN_13,EAN_8,QR_CODE,PDF_417 ',
            orientation: 'portrait',
        };
        this.barcodeScanner.scan(options).then(barcodeData => {
            console.log('Barcode data', barcodeData);
            this.scannedData = barcodeData;
            // let index = this.scannedData.text.lastIndexOf('/');
            // let transactionid = this.scannedData.text.slice(index+1,this.scannedData.text.length);
            let transactionid = this.scannedData.text;
            this.getTransactionsDetails(this.scannedData.text);
            // this.newTransaction(transactionid);
        }).catch(err => {
            console.log('Error', err);
        });
    }
    Details(transactionid) {
        console.log("transaction hash ", transactionid);
        let navigationExtras = {
            queryParams: {
                "transactionid": JSON.stringify(transactionid)
            }
        };
        this.navCtrl.navigateRoot(['/certificationdetail'], navigationExtras);
    }
    //   getTransactions() {
    //                             let data = {
    //                                               // wallets: "0x0A0e4D448683C3Bcc9e48F35d2209559e6958298"    
    //                                               // base64 wallet test 0x8710Ebac0A1bd2Eddf47886CeF475E57F77aEe28
    //                                               // transaction id : 0x0d9f5ce3ada3503a87baec84143cf3595c81fb83038b496e87cabe6d91ef7f13 
    //                                               wallets: localStorage.getItem("WalletId")
    //                                        }
    //                             this.commonService.showLoader();
    //                             this.apiService.postData('explorer/getWalletTransactions', data).subscribe((response) => {
    //                                               setTimeout(() => {
    //                                                       this.commonService.dismissLoader();         
    //                                               }, 1000);
    //                                               this.transactions = response.data;                                      
    //                             }, err => {
    //                                               this.commonService.showToast(err.message);
    //                                               setTimeout(() => {
    //                                                     this.commonService.dismissLoader();
    //                                               }, 1000);
    //                             });
    // }
    // async newTransaction(transactionid) {
    //                   const modalPage = await this.modalCtrl.create({
    //                                       component: NewtransactionPage,
    //                                       cssClass: 'my-custom-modal-css',
    //                                       componentProps: { pageName: 'Newtransaction', transactionid : transactionid }
    //                   });
    //                   await modalPage.present();
    //                   await modalPage.onDidDismiss().then((dataReturned) => {
    //                   this.getRows();
    //                   console.log('called dismiss');
    //                   });
    // }
    openWithSystemBrowser(url) {
        let target = "_system";
        this.theInAppBrowser.create(url, target, this.options);
    }
    // Retrieve rows from table
    getRows() {
        this.dbService.databaseObj.executeSql("SELECT * FROM certificationlist WHERE UserId = ?", [this.loginData.UserName])
            .then((res) => {
            this.row_data = [];
            if (res.rows.length > 0) {
                for (var i = 0; i < res.rows.length; i++) {
                    this.row_data.push(res.rows.item(i));
                }
            }
        })
            .catch(e => {
            this.commonService.showErrorShowToast("Something went wrong with fetching data");
        });
    }
    getWalletsCertificates() {
        this.dbService.databaseObj.executeSql("SELECT * FROM certificationlist WHERE UserId = ? AND WalletId = ? AND WalletType = ?", [this.loginData.UserName, this.walletId, this.pagename])
            .then((res) => {
            this.row_data = [];
            if (res.rows.length > 0) {
                for (var i = 0; i < res.rows.length; i++) {
                    this.row_data.push(res.rows.item(i));
                }
            }
            console.log("wallet specific data ", JSON.stringify(this.row_data));
        })
            .catch(e => {
            this.commonService.showErrorShowToast("Something went wrong with fetching data");
        });
    }
    getLearningchainCertificates() {
        this.dbService.databaseObj.executeSql("SELECT * FROM certificationlist WHERE UserId = ? AND WalletType = ?", [this.loginData.UserName, this.pagename])
            .then((res) => {
            this.row_data = [];
            if (res.rows.length > 0) {
                for (var i = 0; i < res.rows.length; i++) {
                    this.row_data.push(res.rows.item(i));
                }
            }
            //  alert("wallet specific data from learningchain "+JSON.stringify(this.row_data));
        })
            .catch(e => {
            this.commonService.showErrorShowToast("Something went wrong with fetching data");
        });
    }
    share(link) {
        this.socialSharing.share('', null, null, link)
            .then(() => {
        }).catch((err) => {
            this.commonService.showErrorShowToast("Something went wrong");
        });
    }
    // downloadFile(url) {
    //   this.http.sendRequest(url, { method: "get", responseType: "arraybuffer" }).then(
    //     httpResponse => {
    //       alert("File dowloaded successfully");
    //       console.log("File dowloaded successfully")
    //       this.downloadedFile = new Blob([httpResponse.data], { type: 'application/pdf' });
    //     }
    //   ).catch(err => {
    //     console.error(err);
    //   })
    // }
    downloadFile(url) {
        const filePath = this.file.externalRootDirectory;
        // this.http.downloadFile(url, {}, {}, filePath).then(response => {
        //    // prints 200
        //    console.log('success block...', response);
        //    alert("successblock"+response)
        // }).catch(err => {
        //     // prints 403
        //     console.log('error block ... ', err.status);
        //     // prints Permission denied
        //     console.log('error block ... ', err.error);
        // })
        // this.downloadUrl = 'https://www.clickdimensions.com/links/TestPDFfile.pdf'
        // this.http.get(this.downloadUrl, {
        //   responseType : 'blob',
        //   reportProgress: true,
        //   observe: 'events'
        // }).subscribe(async event => {
        //   if(event.type === HttpEventType.DownloadProgress) {
        //     this.downloadProgress = Math.round((100 * event.loaded) / event.total);
        //   } else if (event.type === HttpEventType.Response) {
        //      this.downloadProgress = 0;
        //     //  const name = this.downloadUrl.substr(this.downloadUrl.lastIndexOf('/') + 1);
        //     //  const base64 = await this.convertBlobToBase64(event.body)  as string;
        //     //  const foo = await FileSystem.writeFile({
        //     //     path: name ,
        //     //     data : base64,
        //     //     directory :  FileSystemDirectory.Documents
        //     //  })
        //   }
        // }) 
        // let url = "https://www.clickdimensions.com/links/TestPDFfile.pdf";
        console.log("url is ", url);
        this.httpreq.sendRequest(url, { method: "get", responseType: "arraybuffer" }).then(httpResponse => {
            console.log("File dowloaded successfully");
            this.downloadedFile = new Blob([httpResponse.data], { type: 'application/pdf' });
            this.writeFile();
        }).catch(err => {
            console.error(err);
        });
    }
    writeFile() {
        return (0,tslib__WEBPACK_IMPORTED_MODULE_11__.__awaiter)(this, void 0, void 0, function* () {
            if (this.downloadedFile == null) {
                return;
            }
            var filename = 'myDownloadedPdfFile02.pdf';
            yield this.createFile(filename);
            yield this.writeToFile(filename);
        });
    }
    createFile(filename) {
        return (0,tslib__WEBPACK_IMPORTED_MODULE_11__.__awaiter)(this, void 0, void 0, function* () {
            return this.file.createFile(this.file.externalDataDirectory, filename, true).then(fileEntry => {
                // this.writeToFile(filename);
            }).catch(err => {
                console.error(err);
            });
        });
    }
    writeToFile(filename) {
        return this.file.writeFile(this.file.externalDataDirectory, filename, this.downloadedFile, { replace: true, append: false }).then(createdFile => {
            console.log('File written successfully.');
            console.log(createdFile);
            this.fileOpener.open(this.file.externalDataDirectory + filename, 'application/pdf');
        }).catch(err => {
            console.error(err);
        });
    }
    //Insert certificate into learning chain db
    getTransactionsDetails(transactionid) {
        let data = {
            transactionHash: transactionid
        };
        this.commonService.showLoader();
        this.apiService.postData('explorer/getTransactionDetails', data).subscribe((response) => {
            // setTimeout(() => {
            //     this.commonService.dismissLoader();         
            // }, 1000);
            this.commonService.dismissLoader();
            this.transactionDetails = response;
            this.getCertificationDetails(transactionid);
        }, err => {
            this.commonService.showToast(err.message);
            setTimeout(() => {
                this.commonService.dismissLoader();
            }, 1000);
        });
    }
    getCertificationDetails(transactionid) {
        let data = {
            transactionId: transactionid
        };
        this.commonService.showLoader();
        this.apiService.postData('explorer/getCertificateDetails', data).subscribe((response) => {
            this.commonService.dismissLoader();
            this.transactions = response.data[0];
            this.addcertificate(transactionid);
            // alert("certificate details "+ JSON.stringify(this.transactions))   
        }, err => {
            this.commonService.showToast(err.message);
            setTimeout(() => {
                this.commonService.dismissLoader();
            }, 1000);
        });
    }
    addcertificate(transactionid) {
        //alert("student name is "+this.transactions.studentName);
        this.dbService.databaseObj.executeSql("INSERT INTO certificationlist(UserId,TransactionHash,StudentName,CertificationName,Issuer,DateofIssue,CertificateLink,WalletId,AcademicRef,CertificationType,WalletType) VALUES ('" + this.loginData.UserName + "','" + transactionid + "','" + this.transactions.studentName + "','" + this.transactions.certificationName + "','" + "JNTU" + "','" + this.transactions.issueMonth + "," + this.transactions.issueYear + "','" + this.transactions.CredentialUrl + "','" + this.loginData.BlockchainAddress + "','" + this.transactions.academicReferenceNumber + "','" + this.transactions.certificateType + "','" + 'Learningchain' + "') ", [])
            .then(() => {
            this.commonService.showToast('Row Inserted in to certificationslist');
            this.getLearningchainCertificates();
        })
            .catch(e => {
            this.commonService.showErrorShowToast("Something went wrong while inserting data in certificationlist");
        });
    }
};
CertificationslistPage.ctorParameters = () => [
    { type: _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.NavController },
    { type: src_app_services_api_service__WEBPACK_IMPORTED_MODULE_2__.ApiService },
    { type: _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.ModalController },
    { type: src_app_services_db_service__WEBPACK_IMPORTED_MODULE_4__.DbService },
    { type: src_app_services_common_service__WEBPACK_IMPORTED_MODULE_3__.CommonService },
    { type: _ionic_native_in_app_browser_ngx__WEBPACK_IMPORTED_MODULE_5__.InAppBrowser },
    { type: _angular_router__WEBPACK_IMPORTED_MODULE_13__.ActivatedRoute },
    { type: _ionic_native_barcode_scanner_ngx__WEBPACK_IMPORTED_MODULE_6__.BarcodeScanner },
    { type: _ionic_native_social_sharing_ngx__WEBPACK_IMPORTED_MODULE_7__.SocialSharing },
    { type: _ionic_native_file_ngx__WEBPACK_IMPORTED_MODULE_8__.File },
    { type: _ionic_native_http_ngx__WEBPACK_IMPORTED_MODULE_9__.HTTP },
    { type: _ionic_native_file_opener_ngx__WEBPACK_IMPORTED_MODULE_10__.FileOpener }
];
CertificationslistPage = (0,tslib__WEBPACK_IMPORTED_MODULE_11__.__decorate)([
    (0,_angular_core__WEBPACK_IMPORTED_MODULE_14__.Component)({
        selector: 'app-certificationslist',
        template: _raw_loader_certificationslist_page_html__WEBPACK_IMPORTED_MODULE_0__.default,
        styles: [_certificationslist_page_scss__WEBPACK_IMPORTED_MODULE_1__.default]
    })
], CertificationslistPage);



/***/ }),

/***/ 7425:
/*!***********************************************************************!*\
  !*** ./src/app/pages/certificationslist/certificationslist.page.scss ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (".logo {\n  width: 145px;\n}\n\n.issued {\n  color: rgba(0, 0, 0, 0.87);\n  font-weight: 600;\n}\n\n.linkcolor {\n  color: #00b7ff;\n  text-decoration: underline;\n}\n\n.linkcoloracc {\n  color: #0e5c7d;\n  font-size: 14px;\n  padding: 20px;\n}\n\n.itemcard {\n  padding-top: 0px;\n  padding-bottom: 5px;\n}\n\n.btn2 {\n  width: 90px;\n  height: 34px;\n  margin-top: 10px;\n  margin-left: 10px;\n  --background: var(--ion-color-primary);\n  text-transform: capitalize;\n  --border-radius: 60px;\n  font-size: inherit;\n}\n\nion-item {\n  --background: #0e5c7d;\n  color: white;\n}\n\n.nameacc {\n  font-family: \"robotomedium\";\n  text-transform: capitalize;\n}\n\n.accblock {\n  border-bottom: solid white 0.9px;\n}\n\n.subtext {\n  font-size: 14px;\n  text-transform: capitalize;\n}\n\n.gridblock {\n  padding-left: 16px;\n  padding-right: 16px;\n  padding-bottom: 0px;\n  padding-top: 1px;\n}\n\n.roundbtn {\n  width: 50px;\n  height: 50px;\n  border-radius: 100%;\n  padding: 0;\n}\n\n.buttonbar {\n  padding: 14px;\n}\n\n.ml {\n  margin-left: 25px;\n}\n\n.textcenter {\n  text-align: center;\n}\n\n.textleft {\n  text-align: left;\n}\n\n.textright {\n  text-align: right;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNlcnRpZmljYXRpb25zbGlzdC5wYWdlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFHb0IsWUFBQTtBQURwQjs7QUFJQTtFQUNvQiwwQkFBQTtFQUNBLGdCQUFBO0FBRHBCOztBQUlBO0VBQ29CLGNBQUE7RUFDQSwwQkFBQTtBQURwQjs7QUFJQTtFQUNvQixjQUFBO0VBQ0EsZUFBQTtFQUNBLGFBQUE7QUFEcEI7O0FBSUE7RUFDb0IsZ0JBQUE7RUFDQSxtQkFBQTtBQURwQjs7QUFJQTtFQUNvQixXQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0VBQ0EsaUJBQUE7RUFDQSxzQ0FBQTtFQUNBLDBCQUFBO0VBQ0EscUJBQUE7RUFDQSxrQkFBQTtBQURwQjs7QUFJQTtFQUNvQixxQkFBQTtFQUNBLFlBQUE7QUFEcEI7O0FBSUE7RUFDb0IsMkJBQUE7RUFDQSwwQkFBQTtBQURwQjs7QUFJQTtFQUNvQixnQ0FBQTtBQURwQjs7QUFJQTtFQUNvQixlQUFBO0VBQ0EsMEJBQUE7QUFEcEI7O0FBSUE7RUFDb0Isa0JBQUE7RUFDQSxtQkFBQTtFQUNBLG1CQUFBO0VBQ0EsZ0JBQUE7QUFEcEI7O0FBSUE7RUFDb0IsV0FBQTtFQUNBLFlBQUE7RUFDQSxtQkFBQTtFQUNBLFVBQUE7QUFEcEI7O0FBSUE7RUFDb0IsYUFBQTtBQURwQjs7QUFJQTtFQUNvQixpQkFBQTtBQURwQjs7QUFJQTtFQUNvQixrQkFBQTtBQURwQjs7QUFJQTtFQUNvQixnQkFBQTtBQURwQjs7QUFJQTtFQUNvQixpQkFBQTtBQURwQiIsImZpbGUiOiJjZXJ0aWZpY2F0aW9uc2xpc3QucGFnZS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmxvZ28ge1xuICAgICAgICAgICAgICAgICAgICAvLyB3aWR0aCAgOiA5MHB4O1xuICAgICAgICAgICAgICAgICAgICAvLyBoZWlnaHQgOiA5MHB4O1xuICAgICAgICAgICAgICAgICAgICB3aWR0aDogMTQ1cHg7XG59XG5cbi5pc3N1ZWQge1xuICAgICAgICAgICAgICAgICAgICBjb2xvciA6IHJnYmEoMCwwLDAsMC44Nyk7XG4gICAgICAgICAgICAgICAgICAgIGZvbnQtd2VpZ2h0IDogNjAwO1xufVxuXG4ubGlua2NvbG9yIHtcbiAgICAgICAgICAgICAgICAgICAgY29sb3IgOiByZ2IoMCwgMTgzLCAyNTUpO1xuICAgICAgICAgICAgICAgICAgICB0ZXh0LWRlY29yYXRpb24gOiB1bmRlcmxpbmU7XG59XG5cbi5saW5rY29sb3JhY2Mge1xuICAgICAgICAgICAgICAgICAgICBjb2xvcjogIzBlNWM3ZDtcbiAgICAgICAgICAgICAgICAgICAgZm9udC1zaXplOiAxNHB4O1xuICAgICAgICAgICAgICAgICAgICBwYWRkaW5nOiAyMHB4O1xufVxuXG4uaXRlbWNhcmQge1xuICAgICAgICAgICAgICAgICAgICBwYWRkaW5nLXRvcCA6IDBweDtcbiAgICAgICAgICAgICAgICAgICAgcGFkZGluZy1ib3R0b20gOiA1cHg7XG59XG5cbi5idG4yIHtcbiAgICAgICAgICAgICAgICAgICAgd2lkdGggOiA5MHB4O1xuICAgICAgICAgICAgICAgICAgICBoZWlnaHQgOiAzNHB4O1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW4tdG9wIDogMTBweDtcbiAgICAgICAgICAgICAgICAgICAgbWFyZ2luLWxlZnQgOiAxMHB4O1xuICAgICAgICAgICAgICAgICAgICAtLWJhY2tncm91bmQgOiB2YXIoLS1pb24tY29sb3ItcHJpbWFyeSk7XG4gICAgICAgICAgICAgICAgICAgIHRleHQtdHJhbnNmb3JtIDogY2FwaXRhbGl6ZTtcbiAgICAgICAgICAgICAgICAgICAgLS1ib3JkZXItcmFkaXVzIDogNjBweDtcbiAgICAgICAgICAgICAgICAgICAgZm9udC1zaXplIDogaW5oZXJpdDtcbn1cblxuaW9uLWl0ZW0geyAgICAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgICAgICAgICAgLS1iYWNrZ3JvdW5kOiAjMGU1YzdkO1xuICAgICAgICAgICAgICAgICAgICBjb2xvcjp3aGl0ZTtcbn1cblxuLm5hbWVhY2Mge1xuICAgICAgICAgICAgICAgICAgICBmb250LWZhbWlseTogJ3JvYm90b21lZGl1bSc7XG4gICAgICAgICAgICAgICAgICAgIHRleHQtdHJhbnNmb3JtOiBjYXBpdGFsaXplO1xufVxuXG4uYWNjYmxvY2sge1xuICAgICAgICAgICAgICAgICAgICBib3JkZXItYm90dG9tOiBzb2xpZCB3aGl0ZSAwLjlweDtcbn1cblxuLnN1YnRleHQge1xuICAgICAgICAgICAgICAgICAgICBmb250LXNpemU6IDE0cHg7XG4gICAgICAgICAgICAgICAgICAgIHRleHQtdHJhbnNmb3JtOiBjYXBpdGFsaXplO1xufVxuXG4uZ3JpZGJsb2NrIHtcbiAgICAgICAgICAgICAgICAgICAgcGFkZGluZy1sZWZ0OiAxNnB4O1xuICAgICAgICAgICAgICAgICAgICBwYWRkaW5nLXJpZ2h0OiAxNnB4O1xuICAgICAgICAgICAgICAgICAgICBwYWRkaW5nLWJvdHRvbTogMHB4O1xuICAgICAgICAgICAgICAgICAgICBwYWRkaW5nLXRvcDogMXB4O1xufVxuXG4ucm91bmRidG4ge1xuICAgICAgICAgICAgICAgICAgICB3aWR0aDogNTBweDtcbiAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiA1MHB4O1xuICAgICAgICAgICAgICAgICAgICBib3JkZXItcmFkaXVzOiAxMDAlO1xuICAgICAgICAgICAgICAgICAgICBwYWRkaW5nOiAwO1xufSAgIFxuXG4uYnV0dG9uYmFyIHtcbiAgICAgICAgICAgICAgICAgICAgcGFkZGluZzogMTRweDtcbn1cblxuLm1sIHtcbiAgICAgICAgICAgICAgICAgICAgbWFyZ2luLWxlZnQ6IDI1cHg7XG59XG5cbi50ZXh0Y2VudGVyIHtcbiAgICAgICAgICAgICAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xufVxuXG4udGV4dGxlZnQge1xuICAgICAgICAgICAgICAgICAgICB0ZXh0LWFsaWduOiBsZWZ0O1xufVxuXG4udGV4dHJpZ2h0IHtcbiAgICAgICAgICAgICAgICAgICAgdGV4dC1hbGlnbjogcmlnaHQ7XG59Il19 */");

/***/ }),

/***/ 261:
/*!*************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/certificationslist/certificationslist.page.html ***!
  \*************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("<ion-header>\n            <ion-toolbar>\n                        <ion-buttons slot=\"start\">\n                                    <ion-menu-button autoHide=\"false\"></ion-menu-button>\n                        </ion-buttons>\n                        <ion-title>My Certificates</ion-title>\n            </ion-toolbar>\n</ion-header>\n\n<ion-content>\n \n          <!-- <div *ngIf=\"pagename === 'Learningchain' || pagename === 'Dashboard'\">\n\n                            <ion-card *ngFor=\"let transaction of row_data;\">\n\n                                      <ion-grid>\n                                            <ion-row>\n                                                    <ion-col class=\"ion-float-left\">\n                                                            <ngx-qrcode     \n                                                              [elementType]=\"elementType\" \n                                                              [value]=\"transaction.CertificateLink\" \n                                                              cssClass =\"logo\">\n                                                              </ngx-qrcode>\n                                                    </ion-col>\n                                            </ion-row>\n                                        </ion-grid>\n\n                                        <ion-card-content class=\"itemcard\">\n                                                  <div class=\"title\"> User Name : {{transaction.StudentName}} </div>\n                                                  <div class=\"mt5\">     <span class=\"title\"> CertificationName :</span> {{transaction.CertificationName}} </div>\n                                                  <div class=\"mt5\"> <span class=\"title\"> Issuer :</span>   {{transaction.Issuer}} </div>\n                                                  <div class=\"issued mt5\"> <span class=\"title\"> DateofIssue :</span> {{transaction.DateofIssue}}</div>\n                                                  <div class=\"mt5 linkcolor\" (click)=\"openWithSystemBrowser(transaction.CertificateLink)\"> {{transaction.CertificateLink}} </div>\n                                        </ion-card-content>\n\n                                                  <div><ion-button type=\"submit\" class=\"btn2\" (click)=\"share(transaction.CertificateLink)\">Share</ion-button></div>\n                                                  <div><ion-button type=\"submit\" class=\"btn2\" (click)=\"downloadFile(transaction.CertificateLink)\">Download</ion-button></div>\n                                                  <div class=\"ion-float-right issued paddding12\" (click)=\"Details(transaction)\"> Details </div> \n                            </ion-card>\n                            \n                            <ion-card *ngFor=\"let transaction of transactions;\">\n\n                                        <ion-grid>\n                                              <ion-row>\n                                                      <ion-col class=\"ion-float-left\">\n                                                        <img [src]=\"transaction.badgeUrl\" onError=\"this.src='../assets/images/logo1.png'\" class=\"logo\"/>\n                                                      </ion-col>\n                                              </ion-row>\n                                        </ion-grid>\n\n                                      <ion-card-content>\n                                              <div class=\"title\"> {{transaction.CourseName}} </div>\n                                              <div class=\"mt10\">  {{transaction.CredentialTitle}} </div>\n                                              <div class=\"mt10\"> {{transaction.TestTitle}} </div>\n                                              <div class=\"issued mt10\">{{transaction.CredentialIssuedOn}}</div>\n                                      </ion-card-content>\n\n                                      <div class=\"ion-float-right issued paddding12\" (click)=\"Details(transaction.transactionId)\"> Details </div>\n\n                            </ion-card>\n\n          </div>\n\n          <ion-fab vertical=\"bottom\" horizontal=\"end\" slot=\"fixed\" (click)=\"scanBarcode()\" *ngIf=\"pagename === 'Learningchain'\">\n                            <ion-fab-button>\n                                    <ion-icon name=\"add\"></ion-icon>\n                            </ion-fab-button>\n          </ion-fab> \n           -->\n          <div *ngIf=\"pagename === 'Learningchain' || pagename === 'Dashboard'\">\n                  <ion-accordion-group *ngFor=\"let transaction of row_data;\">\n                        <ion-accordion value=\"first\" class=\"accblock\">\n                          <ion-item slot=\"header\">\n                            <ion-label class=\"nameacc\">{{transaction.StudentName}} </ion-label>\n                          </ion-item>\n                          <div class=\"gridblock\" slot=\"content\">\n\n                            <ion-grid class=\"ion-no-padding\">\n                                <ion-row class=\"ion-no-padding\">\n                                    <ion-col size=\"6\" class=\"ion-no-padding\">\n                                      <div class=\"titleacc\"> Certification Name:</div> \n                                      <div class=\"subtext\"> {{transaction.CertificationName}}  </div>\n                                      <div class=\"titleacc\"> Issuer :</div>  \n                                      <div class=\"subtext\"> {{transaction.Issuer}} </div>\n                                      <div class=\"titleacc\"> Date of Issue :</div> \n                                      <div class=\"subtext\"> {{transaction.DateofIssue}} </div>\n                                    </ion-col>\n                                    <ion-col size=\"6\">                                      \n                                      <ion-grid class=\"ion-no-padding\">\n                                        <ion-row>\n                                                <ion-col class=\"ion-float-left\">\n                                                        <ngx-qrcode     \n                                                          [elementType]=\"elementType\" \n                                                          [value]=\"transaction.CertificateLink\" \n                                                          cssClass =\"logo\">\n                                                          </ngx-qrcode>\n                                                </ion-col>\n                                        </ion-row>\n                                    </ion-grid>\n                                    </ion-col>\n                                </ion-row>\n\n                                <!-- <ion-row>\n                                  <ion-col size=\"12\">\n                                    <div class=\"linkcoloracc\" (click)=\"openWithSystemBrowser(transaction.CertificateLink)\"> {{transaction.CertificateLink}} </div>\n                                  </ion-col>\n                                </ion-row> -->\n                                <!-- <div class=\"buttonbar\">\n                                  <button ion-button icon-only class=\"roundbtn\">\n                                            <img src=\"assets/images/Download_wht_icon.png\">\n                                  </button>\n            \n                                  <button ion-button icon-only class=\"roundbtn ml\">\n                                            <img src=\"assets/images/Share_wht_icon.png\">\n                                  </button>\n                                </div> -->\n                                <ion-row class=\"ion-padding\">\n                                   <ion-col class=\"textleft\">\n                                          <button ion-button icon-only class=\"roundbtn\" (click)=\"share(transaction.CertificateLink)\">\n                                            <img src=\"assets/images/Share_icon.png\">\n                                          </button>\n                                   </ion-col>\n                                   <ion-col class=\"textcenter\">\n                                    <button ion-button icon-only class=\"roundbtn\" (click)=\"downloadFile(transaction.CertificateLink)\">\n                                      <img src=\"assets/images/Download_icon.png\">\n                                    </button>\n                                  </ion-col>\n                                  <ion-col class=\"textright\">\n                                    <button ion-button icon-only class=\"roundbtn\" (click)=\"Details(transaction)\">\n                                      <img src=\"assets/images/Continue_icon.png\">\n                                    </button>\n                                  </ion-col>\n                                </ion-row>\n                            </ion-grid>\n                          </div>\n                        </ion-accordion>\n                        <!-- <ion-accordion value=\"second\">\n                          <ion-item slot=\"header\">\n                            <ion-label class=\"nameacc\">second </ion-label>\n                          </ion-item>\n                          <div class=\"ion-padding\" slot=\"content\">Second Content</div>\n                        </ion-accordion> -->\n                  </ion-accordion-group>\n          </div>\n\n        </ion-content>\n");

/***/ })

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