text: (window["webpackJsonp"] = window["webpackJsonp"] || []).push([["firebase-quotes-create-create-module"],{
  
  /***/ "./node_modules/raw-loader/index.js!./src/app/firebase/quotes/create/create.page.html":
  /*!***********************************************************************************!*\
    !*** ./node_modules/raw-loader!./src/app/firebase/quotes/create/create.page.html ***!
    \***********************************************************************************/
  /*! no static exports found */
  /***/ (function(module, exports) {
  
  module.exports = "<app-header></app-header>\n<ion-content>\n    <ion-item-divider>\n        <img class=\"avator\" src=\"./../../../../assets/images/home_categories/estimate.svg\" alt=\"\" />\n        <ion-title>New Estimate</ion-title>\n        <ion-button fill=\"clear\" color=\"theme\" (click)=\"dismissModal()\">\n            <ion-icon slot=\"icon-only\" name=\"close\"></ion-icon>\n        </ion-button>\n\n    </ion-item-divider>\n\n    <!-- if contacts list does not show data -->\n    <!-- <app-rating-input *ngIf=\"!contacts\"></app-rating-input> -->\n\n\n    <div class=\"testbox\">\n        <form [formGroup]=\"reimburshForm\" (ngSubmit)=\"createEstimate()\" class=\"form-validate form-horizontal\"\n            novalidate=\"\">\n            <!-- START panel-->\n            <div class=\"panel-body\">\n\n                <fieldset>\n                    <legend>Customer Name:</legend>\n                    <p>\n                        <ion-skeleton-text *ngIf=\"!contacts\" animated style=\"width: 100%; height: 25px;\">\n                        </ion-skeleton-text>\n\n                        <select *ngIf=\"contacts\" class=\"form-control\" formControlName=\"Customer Name\">\n                            <option *ngFor=\"let i of contacts\" value=\"{{i['Customer Name']}}\">{{i['Customer Name']}}\n                            </option>\n                        </select>\n                    </p>\n                </fieldset>\n\n                <!-- Estimate number -->\n                <fieldset>\n                    <legend>Estimate Number:</legend>\n                    <p>\n                        <input class=\"form-control\" type=\"text\" formControlName=\"Estimate Number\"\n                            placeholder=\"Estimate Number\" />\n                    </p>\n                </fieldset>\n\n                <!-- Order number -->\n                <fieldset>\n                    <legend>Order Number(Project ID)</legend>\n                    <p>\n                        <input class=\"form-control\" type=\"text\" formControlName=\"Project ID\"\n                            placeholder=\"Order Number\" />\n                    </p>\n                </fieldset>\n                <!-- Invoice Date -->\n                <fieldset>\n                    <legend>Estimate Date:</legend>\n                    <p>\n                        <ion-datetime (ionChange)=\"onEstimateDate($event)\" class=\"datetime-text\" mode=\"ios\" value=\"es_d\"\n                            formControlName=\"Estimate Date\">\n                        </ion-datetime>\n                    </p>\n                </fieldset>\n                <!-- Termis -->\n                <fieldset>\n                    <legend>Terms:</legend>\n                    <p>\n                        <input (ngModelChange)=\"onEstimateTerms($event)\" type=\"number\" formControlName=\"Terms\">\n                    </p>\n                </fieldset>\n                <!-- Due Date -->\n                <fieldset>\n                    <legend>Due Date/ Expiry Date</legend>\n                    <p>\n                        <ion-datetime class=\"datetime-text\" mode=\"ios\" value=\"{{e_d}}\" formControlName=\"Expiry Date\">\n                        </ion-datetime>\n                    </p>\n\n                </fieldset>\n                <!-- Sales Person -->\n                <fieldset>\n                    <legend>Salesperson</legend>\n                    <p>\n                        <input type=\"text\" formControlName=\"Sales person\">\n                    </p>\n                </fieldset>\n                <!--Item List -->\n\n                <fieldset>\n                    <!-- <ion-button class=\"badge\" color=\"theme\" *ngFor=\"let iList of customeditemsList\"\n                        (click)=\"onPush(iList)\">\n                        {{iList['Item Name']}} {{iList['Rate']}}\n                    </ion-button> -->\n\n                    <ion-chip color=\"secondary\" *ngIf=\"customeditemsList?.length === 0\"\n                        (click)=\"onCreateInventoryItemPage()\">No Items Yet Go and\n                        Add One Now!\n                    </ion-chip>\n\n                    <ion-chip class=\"badge\" color=\"theme\" *ngFor=\"let iList of customeditemsList\"\n                        (click)=\"onPush(iList)\">\n                        {{iList['Item Name']}} {{iList['Rate']}}\n                    </ion-chip>\n                </fieldset>\n\n                <!-- <ion-button color=\"theme\" fill=\"clear\" (click)=\"inputEnabled = !inputEnabled\">\n                    <ion-icon slot=\"start\" name=\"add-circle\"></ion-icon>\n                    Add another line\n                </ion-button> -->\n\n                <!-- Sales List -->\n                <fieldset>\n                    <div class=\"form-group\">\n                        <table formArrayName=\"salesList\">\n                            <tr>\n                                <th>Item Name</th>\n                                <th>Item Detail</th>\n                                <th>Quantity</th>\n                                <th>Rate</th>\n                                <!-- <th>Tax</th> -->\n                                <th>Amount</th>\n                                <th></th>\n                            </tr>\n\n                            <!--Input controls/ NOT TO EDIT ITEM IN THIS PAGE -->\n\n\n                            <tr *ngFor=\"let saleList of salesListArray.controls;let i = index\" [formGroupName]=\"i\">\n\n                                <td *ngIf=\"i > 0\">\n                                    <div class=\"col-sm-6\">\n                                        <input class=\"form-control\" type=\"text\" placeholder=\"Item Name\"\n                                            formControlName=\"Item Name\" />\n                                    </div>\n                                </td>\n\n                                <td *ngIf=\"i > 0\">\n                                    <div class=\"col-sm-6\">\n                                        <ion-textarea class=\"item_textarea\" row=\"6\" height=\"1\" placeholder=\"Item Detail\"\n                                            formControlName=\"Description\"></ion-textarea>\n                                        <!-- <input class=\"form-control\" type=\"text\" placeholder=\"Item Detail\"\n                                            formControlName=\"Description\" /> -->\n                                    </div>\n                                </td>\n\n                                <td *ngIf=\"i > 0\">\n                                    <div class=\"col-sm-6\">\n                                        <input class=\"form-control\" type=\"number\" placeholder=\"0\"\n                                            (input)=\"onQtyChange($event, saleList)\" formControlName=\"quantity\" />\n                                    </div>\n                                </td>\n\n                                <td *ngIf=\"i > 0\">\n                                    <div class=\"col-sm-6\">\n                                        <input class=\"form-control\" type=\"number\" placeholder=\"0.00\"\n                                            (input)=\"onPriceChange($event, saleList)\" formControlName=\"Rate\" />\n                                    </div>\n                                </td>\n\n                                <td *ngIf=\"i > 0\">\n                                    <div class=\"col-sm-6\">\n                                        <input class=\"form-control\" type=\"number\"\n                                            placeholder=\"{{returnProduct(saleList.value.Rate, saleList.value.quantity)}}\"\n                                            formControlName=\"amount\" />\n                                    </div>\n                                </td>\n\n                                <!-- <td>\n                                    <div class=\"col-sm-6\">\n                                        <span style=\"color: black; font-weight: bold;\">\n                                            {{returnProduct(saleList.value.Rate, saleList.value.quantity)}}</span>\n                                    </div>\n                                </td> -->\n\n                                <td *ngIf=\"i > 0\">\n                                    <!-- <ion-button color=\"theme\" fill=\"\" (click)=\"addSalesListItem()\">\n                                        <ion-icon name=\"copy-outline\"></ion-icon>\n                                    </ion-button> -->\n                                    <ion-button fill=\"clear\" (click)=\"removeSalesListItem(i)\">\n                                        <ion-icon color=\"secondary\" name=\"trash-bin\"></ion-icon>\n                                    </ion-button>\n                                </td>\n                            </tr>\n\n                        </table>\n                    </div>\n\n                    <div style=\"padding-top: 20px;float: right;\">\n                        <ion-chip style=\"background: white; color: var(--ion-color-theme);\">Total: {{totalPrice || 0}}\n                        </ion-chip>\n                    </div>\n                </fieldset>\n\n                <!-- Notes -->\n                <fieldset>\n                    <legend>Custom Notes</legend>\n                    <p>\n                        <ion-textarea rows=\"6\" class=\"form-control\" formControlName=\"Notes\" value=\"{{customernotes}}\"\n                            placeholder=\"Will be displayed on the estimate\">\n                        </ion-textarea>\n                    </p>\n\n                </fieldset>\n                <!-- Terms and conditions -->\n\n                <fieldset>\n                    <legend>Terms & Conditions</legend>\n                    <p>\n                        <ion-textarea rows=\"10\" class=\"form-control\" formControlName=\"Terms & Conditions\"\n                            value=\"{{termsandconditions}}\" placeholder=\"Enter the terms and conditions of your business\n                              that will displayed in your transaction\">\n                        </ion-textarea>\n                    </p>\n\n                </fieldset>\n\n            </div>\n            <!-- \n            {{reimburshForm.value['Customer Name']}} -->\n            <!-- <ion-button (click)=\"returnSum()\">Calculate sum</ion-button> -->\n            <ion-button expand=\"full\" [disabled]=\"!reimburshForm.value['Customer Name']\" type=\"submit\" color=\"theme\">\n                Save</ion-button>\n            <!-- <br />\n            <ion-button color=\"dark\" (click)=\"submitForm(reimburshForm.value)\">Save and Send</ion-button> -->\n        </form>\n    </div>\n</ion-content>\n<!-- <form [formGroup]=\"createEstimateForm\" (ngSubmit)=\"createEstimate()\">\n   <h4>Customer Name<span>*</span></h4>\n   <select formControlName=\"Customer Name\">\n      <option value=\"Type\" selected>Select or Type to add</option>\n      <option value=\"Banma\">Banma</option>\n      <option value=\"Kokui\">Kokui</option>\n      <option value=\"Aaron\">Aaron</option>\n      <option value=\"Claire\">Claire</option>\n      <option value=\"Elaine\">Elaine</option>\n      <option value=\"Fred\">Fred</option>\n   </select>\n   <h4>Estimate# <span>*</span></h4>\n   <div class=\"title-block\">\n      <input type=\"text\" name=\"estimate\" formControlName=\"Estimate Number\" />\n   </div>\n   <h4>Reference#</h4>\n   <div class=\"title-block\">\n      <input type=\"text\" name=\"reference\" formControlName=\"Reference ID\" />\n   </div>\n   <h4>Estimate Date<span>*</span></h4>\n   <div class=\"title-block\">\n      <input type=\"date\" name=\"estimate_date\" formControlName=\"Estimate Date\" />\n   </div>\n   <h4>Expiry Date<span>*</span></h4>\n   <div class=\"title-block\">\n      <input type=\"date\" name=\"expiry_date\" formControlName=\"Expiry Date\" />\n   </div>\n   <h4>Salesperson<span>*</span></h4>\n   <div class=\"title-block\">\n      <select formControlName=\"Sales person\">\n         <option value=\"Type\" selected>Select or Type to add</option>\n         <option value=\"Phyllis\">Phyllis</option>\n         <option value=\"Staffen\">Staffen</option>\n         <option value=\"Phoebe\">Phoebe</option>\n         <option value=\"Richard\">Richard</option>\n         <option value=\"Dan\">Dan</option>\n         <option value=\"Jack\">Jack</option>\n         <option value=\"Koi\">Koi</option>\n      </select>\n   </div>\n   <h4>Subject / Project Name</h4>\n   <div class=\"title-block\">\n      <textarea rows=\"1\" placeholder=\"Let your customer know what this Estimate is for\" formControlName=\"Project Name\"></textarea>\n   </div>\n   \n   <h4>Notes</h4>\n   <div class=\"title-block\">\n      <textarea rows=\"1\" placeholder=\"Will be displayed on the estimate\" formControlName=\"Notes\"></textarea>\n   </div>\n   <h4>Terms & Conditions</h4>\n   <div class=\"title-block\">\n      <textarea rows=\"4\" placeholder=\"Will be displayed on the estimate\" formControlName=\"Terms & Conditions\"></textarea>\n   </div>\n   <div class=\"btn-block\">\n      <button type=\"submit\">Save</button>\n   </div>\n   </form> -->"
  
  /***/ }),
  
  /***/ "./src/app/firebase/quotes/create/create.module.ts":
  /*!*********************************************************!*\
    !*** ./src/app/firebase/quotes/create/create.module.ts ***!
    \*********************************************************/
  /*! exports provided: CreatePageModule */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreatePageModule", function() { return CreatePageModule; });
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
  /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
  /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm2015/common.js");
  /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm2015/forms.js");
  /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm2015/router.js");
  /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/dist/fesm5.js");
  /* harmony import */ var _create_page__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./create.page */ "./src/app/firebase/quotes/create/create.page.ts");
  /* harmony import */ var _app_components_components_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../app/components/components.module */ "./src/app/components/components.module.ts");
  
  
  
  
  
  
  
  
  const routes = [
      {
          path: '',
          component: _create_page__WEBPACK_IMPORTED_MODULE_6__["CreatePage"]
      }
  ];
  let CreatePageModule = class CreatePageModule {
  };
  CreatePageModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
      Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
          imports: [
              _ionic_angular__WEBPACK_IMPORTED_MODULE_5__["IonicModule"],
              _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
              _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"],
              // FormAlertPageModule,
              // NotificationsPageModule,
              _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ReactiveFormsModule"],
              _app_components_components_module__WEBPACK_IMPORTED_MODULE_7__["ComponentsModule"],
              _angular_router__WEBPACK_IMPORTED_MODULE_4__["RouterModule"].forChild(routes)
          ],
          declarations: [_create_page__WEBPACK_IMPORTED_MODULE_6__["CreatePage"]]
      })
  ], CreatePageModule);
  
  
  
  /***/ }),
  
  /***/ "./src/app/firebase/quotes/create/create.page.scss":
  /*!*********************************************************!*\
    !*** ./src/app/firebase/quotes/create/create.page.scss ***!
    \*********************************************************/
  /*! no static exports found */
  /***/ (function(module, exports) {
  
  module.exports = "body {\n  padding: 3rem;\n}\n\ntable {\n  border-collapse: collapse;\n}\n\nth, td {\n  padding-top: 1rem;\n  padding-bottom: 1rem;\n  vertical-align: baseline;\n}\n\nth {\n  padding-right: 2rem;\n  text-align: left;\n}\n\nlabel {\n  display: block;\n}\n\nlabel + label {\n  margin-top: 0.5rem;\n}\n\nhr {\n  margin-top: 4rem;\n  margin-bottom: 4rem;\n}\n\n.testbox {\n  padding: 20px;\n}\n\n.item_textarea {\n  width: 335px;\n  padding-right: 15px;\n}\n\ninput, textarea, select {\n  width: calc(100% - 10px);\n  padding: 5px !important;\n  border: 1px solid #ccc;\n  border-radius: 5px;\n  vertical-align: middle;\n  background: transparent;\n}\n\ntextarea {\n  width: calc(100% - 30px) !important;\n}\n\ninput:hover,\ntextarea:hover,\nselect:hover {\n  outline: none;\n  padding: 5px !important;\n  border: 1px solid #ccc;\n  background: transparent;\n  box-shadow: 2px 2px 8px 2px var(--ion-color-theme);\n}\n\n.badge {\n  background: white;\n}\n\n.badge:hover {\n  box-shadow: 2px 2px 8px 2px var(--ion-color-theme);\n}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IHRleHRhcmVhLCBzZWxlY3Qge1xuICB3aWR0aDogY2FsYygxMDAlIC0gMTBweCk7XG4gIHBhZGRpbmc6IDVweCAhaW1wb3J0YW50O1xuICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICBib3JkZXItcmFkaXVzOiA1cHg7XG4gIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XG4gIGJhY2tncm91bmQ6IHRyYW5zcGFyZW50O1xufVxuXG50ZXh0YXJlYSB7XG4gIHdpZHRoOiBjYWxjKDEwMCUgLSAzMHB4KSAhaW1wb3J0YW50O1xufVxuXG5pbnB1dDpob3ZlcixcbnRleHRhcmVhOmhvdmVyLFxuc2VsZWN0OmhvdmVyIHtcbiAgb3V0bGluZTogbm9uZTtcbiAgcGFkZGluZzogNXB4ICFpbXBvcnRhbnQ7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNjY2M7XG4gIGJhY2tncm91bmQ6IHRyYW5zcGFyZW50O1xuICBib3gtc2hhZG93OiAycHggMnB4IDhweCAycHggdmFyKC0taW9uLWNvbG9yLXRoZW1lKTtcbn1cblxuLmJhZGdlIHtcbiAgYmFja2dyb3VuZDogd2hpdGU7XG59XG5cbi5iYWRnZTpob3ZlciB7XG4gIGJveC1zaGFkb3c6IDJweCAycHggOHB4IDJweCB2YXIoLS1pb24tY29sb3ItdGhlbWUpO1xufSJdfQ== */"
  
  /***/ }),
  
  /***/ "./src/app/firebase/quotes/create/create.page.ts":
  /*!*******************************************************!*\
    !*** ./src/app/firebase/quotes/create/create.page.ts ***!
    \*******************************************************/
  /*! exports provided: CreatePage */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreatePage", function() { return CreatePage; });
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
  /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
  /* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/dist/fesm5.js");
  /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm2015/forms.js");
  /* harmony import */ var jspdf_autotable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! jspdf-autotable */ "./node_modules/jspdf-autotable/dist/jspdf.plugin.autotable.js");
  /* harmony import */ var jspdf_autotable__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(jspdf_autotable__WEBPACK_IMPORTED_MODULE_4__);
  /* harmony import */ var _firebase_integration_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../firebase-integration.service */ "./src/app/firebase/firebase-integration.service.ts");
  /* harmony import */ var _invoice_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../invoice.model */ "./src/app/firebase/invoice.model.ts");
  /* harmony import */ var _app_services_auth_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../../app/services/auth.service */ "./src/app/services/auth.service.ts");
  /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm2015/operators/index.js");
  /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm2015/http.js");
  /* harmony import */ var ngx_papaparse__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-papaparse */ "./node_modules/ngx-papaparse/fesm2015/ngx-papaparse.js");
  
  
  
  
  
  
  
  
  
  
  
  let CreatePage = class CreatePage {
      /////////////////////////
      constructor(formBuilder, authService, navCtrl, firebaseService, http, papa) {
          this.formBuilder = formBuilder;
          this.authService = authService;
          this.navCtrl = navCtrl;
          this.firebaseService = firebaseService;
          this.http = http;
          this.papa = papa;
          this.estimateData = new _invoice_model__WEBPACK_IMPORTED_MODULE_6__["EstimateModel"]();
          this.itemSelected = new _invoice_model__WEBPACK_IMPORTED_MODULE_6__["ItemModel"]();
          this.arr = [];
          this.showItem = false;
          this.uid = this.authService.uid();
          this.email = this.authService.email();
      }
      ngOnInit() {
          this.readItems();
          this.buildForm();
          this.es_d = new Date().toISOString();
      }
      ionViewWillEnter() {
          this.getCsvData();
          this.getTermsandConditions();
          this.getCustomerNotes();
      }
      getCustomerNotes() {
          console.log(this.email, this.uid);
          this.firebaseService.readCustomerNote(this.uid).subscribe(res => {
              console.log(res['userData']);
              this.customernotes = res['userData']['customernotes'];
          });
      }
      getTermsandConditions() {
          console.log(this.email, this.uid);
          this.firebaseService.readTermsandConditions(this.uid).subscribe(res => {
              console.log(res['userData']);
              this.termsandconditions = res['userData']['termsandconditions'];
          });
      }
      // get preset customer list 
      getCsvData() {
          this.firebaseService.readContactsinCSV(this.uid, this.email).subscribe(res => {
              this.downloadURL = res.userData['downloadURL'];
              console.log('csv import value: ', res, this.downloadURL);
              this.loadCSV();
              setTimeout(() => {
                  this.exportCSV();
                  console.log('export CSV');
              }, 2000);
              setTimeout(() => {
                  this.convertCSVtoJSON();
              }, 4000);
          });
      }
      loadCSV() {
          console.log('load CSV');
          this.http.get(this.downloadURL, {
              responseType: 'text'
          }).subscribe(data => this.extractData(data), err => console.log('error', err));
      }
      extractData(res) {
          let csvData = res || '';
          this.papa.parse(csvData, {
              complete: parsedData => {
                  this.csvData = parsedData.data;
                  console.log(parsedData);
                  //  console.log(parsedData.data.splice(0, 1)[0]);
                  this.headerRow = parsedData.data.splice(0, 1)[0];
                  console.log(this.headerRow);
              }
          });
          console.log(res, this.csvData);
      }
      exportCSV() {
          let csv = this.papa.unparse({
              fields: this.headerRow,
              data: this.csvData
          });
          this.csv = csv;
          console.log('header row: ', this.headerRow);
          console.log('csv: ', this.csvData);
          //    console.log('contacts: ', this.contacts);
          // if (this.plt.is('cordova')) {
          //   console.log('cordova');
          // } else {
          //   console.log('not cordova');
          //   var blob = new Blob([csv]);
          //   var a = window.document.createElement('a');
          //   a.href = window.URL.createObjectURL(blob);
          //   a.download = 'contacts.csv';
          //   document.body.appendChild(a);
          //   a.click();
          //   document.body.removeChild(a);
          // }
      }
      convertCSVtoJSON() {
          console.log(this.csv);
          // our dummy CSV let csvStr = `ONE,TWO,THREE,FOUR,FIVE "escape""quote","escape,comma",no quotes,"double""""quote","quote"",comma" true,123,null,undefined,"[false,456,null]" true,123,null,undefined,{"one":"two"}`; 
          // running Papa Parse, you just pass it your csv. 
          // our dummy CSV 
          // let csvStr = `ONE,TWO,THREE,FOUR,FIVE "escape""quote","escape,comma",no quotes,"double""""quote","quote"",comma" true,123,null,undefined,"[false,456,null]" true,123,null,undefined,{"one":"two"}`;
          // running Papa Parse, you just pass it your csv. 
          let csv = this.papa.parse(this.csv, {
              delimiter: "",
              newline: "",
              quoteChar: '"Name"',
              escapeChar: '"',
              header: true,
              dynamicTyping: false,
              skipEmptyLines: true
          });
          // the arrays of csv fields are in the data property 
          console.log(this.csv, csv.data);
          this.contacts = csv.data;
      }
      // end of get preset customer list
      submitForm(value) {
          console.log(value);
      }
      createEstimate() {
          //  console.log(this.uid, this.email, this.createEstimateForm.);
          console.log(this.totalPrice);
          this.reimburshForm.value['Total'] = this.totalPrice;
          console.log(this.reimburshForm.value);
          this.firebaseService.createEstimates(this.uid, this.email, this.reimburshForm.value).then(() => {
              this.dismissModal();
          });
      }
      dismissModal() {
          this.navCtrl.navigateBack('/firebase/quotes');
      }
      // testTablePDF() {
      //   var columns = [
      //     { title: "ID", dataKey: "id" },
      //     { title: "Name", dataKey: "name" },
      //     { title: "Country", dataKey: "country" },
      //   ];
      //   var rows = [
      //     { "id": 1, "name": "Shaw", "country": "Tanzania" },
      //     { "id": 2, "name": "Nelson", "country": "Kazakhstan" },
      //     { "id": 3, "name": "Garcia", "country": "Madagascar" },
      //   ];
      //   var doc = new jsPDF('p', 'pt');
      //   doc.autoTable(columns, rows, {
      //     // theme: 'striped' | 'grid' | 'plain' | 'css' = 'striped'
      //     theme: 'striped',
      //     styles: { fillColor: [129, 216, 208] },
      //     columnStyles: {
      //       id: { fillColor: 255 }
      //     },
      //     margin: { top: 160 },
      //     beforePageContent: function (data) {
      //       doc.text("Header", 40, 30);
      //     }
      //   });
      //   doc.save('table.pdf');
      // }
      ////////////////////////////////
      onEstimateDate(event) {
          console.log(event.detail.value);
          this.estimate_date = event.detail.value;
      }
      onEstimateTerms(event) {
          console.log(50, event, this.reimburshForm.value);
          var d = new Date();
          d.setDate(d.getDate() + 50);
          const date = new Date(this.estimate_date);
          const expiry_date = date.setDate(date.getDate() + Number(event));
          console.log(expiry_date);
          const e_d = new Date(expiry_date);
          console.log(e_d);
          this.e_d = e_d;
      }
      ////////////////////////////////
      buildForm() {
          console.log(this.e_d, this.customernotes, this.termsandconditions);
          this.reimburshForm = this.formBuilder.group({
              "Estimate Date": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](this.es_d),
              "Estimate ID": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](Date.now()),
              "Estimate Number": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](`SQ-${Date.now()}`),
              "Estimate Status": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"]('draft'),
              "Customer ID": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](Date.now()),
              "Expiry Date": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](this.e_d),
              "PurchaseOrder": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Currency Code": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Exchange Rate": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](),
              "Discount Type": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Is Discount Before Tax": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](),
              "Entity Discount Percent": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](),
              "Is Inclusive Tax": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](),
              "SubTotal": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](),
              "Total": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](this.totalPrice),
              "Adjustment": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](),
              "Notes": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](this.customernotes),
              // d.setDate(d.getDate() + 50);
              "Terms": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](),
              "Terms & Conditions": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](this.termsandconditions),
              "Customer Name": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Project Name": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              // orderNumber: this.formBuilder.control(null),
              // same as estimate number
              "Project ID": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](`SQ-${Date.now()}`),
              // salesPerson: this.formBuilder.control(null),
              "Sales person": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Billing Address": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Billing City": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Billing State": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Billing Country": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Billing Code": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Billing Fax": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Template Name": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Adjustment Description": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Shipping Address": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Shipping City": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Shipping State": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Shipping Country": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Shipping Code": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Shipping Fax": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Source": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](),
              "Reference ID": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Last Sync Time": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Shipping Charge": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](),
              "Shipping Charge Tax ID": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Shipping Charge Tax Amount": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Shipping Charge Tax Name": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Shipping Charge Tax %": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Shipping Charge Tax Type": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Item Name": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Item Desc": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Quantity": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](),
              "Discount": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](),
              "Discount Amount": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](),
              "Item Tax Amount": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](),
              "Item Total": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](),
              "Account": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "SKU": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Usage unit": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Item Price": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](),
              "Tax ID": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Item Tax": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Item Tax %": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              "Item Tax Type": new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](""),
              // this one would be the first item in the group array
              salesList: this.formBuilder.array([
                  this.formBuilder.group({
                      //   itemName: this.formBuilder.control(null),
                      //   itemDetail: this.formBuilder.control(null),
                      quantity: this.formBuilder.control(null),
                      Rate: this.formBuilder.control(null),
                      // tax: this.formBuilder.control(null),
                      amount: this.formBuilder.control(null),
                      "Description": this.formBuilder.control(null),
                      // "Item ID": this.formBuilder.control(this.itemSelected["Item ID"]),
                      "Item Name": this.formBuilder.control(null),
                  }),
              ]),
          });
          this.salesListArray = this.reimburshForm.get('salesList');
      }
      returnProduct(a, b) {
          return a * b;
      }
      // returnSum(a: number, b: number) {
      //   return a + b
      // }
      jsonstringify(value) {
          return JSON.stringify(value);
      }
      // call items list data
      readItems() {
          console.log(this.email, this.uid);
          this.firebaseService.readItems(this.uid, this.email).snapshotChanges().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["map"])(changes => changes.map(c => (Object.assign({ id: c.payload.doc.id }, c.payload.doc.data()))))).subscribe(data => {
              this.customeditemsList = data;
              console.log(this.customeditemsList, this.customeditemsList.length);
          });
      }
      // call contact list data
      readContacts() {
          console.log(this.email, this.uid);
          this.firebaseService.readContactsinCSV(this.uid, this.email).subscribe((res) => {
              console.log(res);
          });
          // this.firebaseService.readContacts(this.uid, this.email).snapshotChanges().pipe(
          //   map(changes =>
          //     changes.map(c =>
          //       ({ id: c.payload.doc.id, ...c.payload.doc.data() })
          //     )
          //   )
          // ).subscribe(data => {
          //   this.customeditemsList = data;
          //   console.log(this.customeditemsList);
          // });
      }
      // update items in estimate
      onPush(value) {
          // const qty = (e.target as HTMLInputElement).value;
          // const price = f.get('Rate').value;
          // const product = Number(qty) * price;
          // console.log(f, product);
          // f.get('amount').setValue(Number(qty) * price);
          // console.log(this.returnSum());
          // this.totalPrice = this.returnSum();
          console.log(this.totalPrice);
          console.log(value);
          this.value = value;
          console.log(this.salesListArray.value, value);
          this.addSalesListItem();
      }
      addSalesListItem() {
          console.log(this.value, this.salesListArray.value);
          let formGroup = this.formBuilder.group({
              quantity: this.formBuilder.control(this.value['quantity']),
              Rate: this.formBuilder.control(this.value['Rate']),
              amount: this.formBuilder.control(this.value['amount']),
              "Description": this.formBuilder.control(this.value['Description']),
              "Item Name": this.formBuilder.control(this.value['Item Name']),
          });
          this.salesListArray.push(formGroup);
          this.salesListArray = this.reimburshForm.get('salesList');
          console.log(this.salesListArray.value);
      }
      // addItem(item) {
      //   this.arrayItems.push(item);
      //   this.demoArray.push(this._formBuilder.control(false));
      // }
      removeSalesListItem(index) {
          console.log(index);
          //    this.salesListArray.removeAt(this.salesListArray.length - 1);
          this.salesListArray.removeAt(index);
          this.salesListArray = this.reimburshForm.get('salesList');
          console.log(this.salesListArray.value);
          this.totalPrice = this.returnSum();
          console.log(this.totalPrice);
      }
      //   removeSalesListItem(index) {
      //     // let salesListArray = this.salesListArray.value;
      //     //  salesListArray.splice(index, 1);
      // //    this.item.splice(index, 1);
      //     //    this.item = this.salesListArray.value.splice(index, 1);
      //   //  console.log(this.item);
      //   }
      onQtyChange(e, f) {
          // const qty = (e.target as HTMLInputElement).value;
          // console.log(qty, Rate);
          // const product = Number(qty) * Rate
          // console.log(product);
          // f.get('amount').setValue(qty * price);
          const qty = e.target.value;
          const price = f.get('Rate').value;
          const product = Number(qty) * price;
          console.log(f, product);
          f.get('amount').setValue(Number(qty) * price);
          console.log(this.returnSum());
          this.totalPrice = this.returnSum();
      }
      onPriceChange(e, f) {
          // const price = (e.target as HTMLInputElement).value;
          // console.log(quantity, price);
          // const product = Number(price) * quantity;
          // console.log(product);
          //  f.get('amount').setValue(qty * price);
          const qty = f.get('quantity').value;
          const price = e.target.value;
          const product = qty * Number(price);
          console.log(f, product);
          f.get('amount').setValue(qty * Number(price));
          console.log(this.returnSum());
          this.totalPrice = this.returnSum();
      }
      returnSum() {
          let totalPrice = 0;
          //   console.log(this.reimburshForm.value.salesList);
          this.reimburshForm.value.salesList.forEach(element => {
              if (element.amount) {
                  //   console.log(element.amount);
                  totalPrice += element.amount;
              }
          });
          console.log(totalPrice);
          return totalPrice;
      }
      // handleInputChange() {
      //   this.totalPrice = this.returnSum();
      //   console.log(this.totalPrice);
      // }
      onCreateInventoryItemPage() {
          this.navCtrl.navigateForward('/firebase/create%23inventory');
      }
  };
  CreatePage.ctorParameters = () => [
      { type: _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"] },
      { type: _app_services_auth_service__WEBPACK_IMPORTED_MODULE_7__["AuthService"] },
      { type: _ionic_angular__WEBPACK_IMPORTED_MODULE_2__["NavController"] },
      { type: _firebase_integration_service__WEBPACK_IMPORTED_MODULE_5__["FirebaseService"] },
      { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_9__["HttpClient"] },
      { type: ngx_papaparse__WEBPACK_IMPORTED_MODULE_10__["Papa"] }
  ];
  CreatePage = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
      Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
          selector: 'app-create',
          template: __webpack_require__(/*! raw-loader!./create.page.html */ "./node_modules/raw-loader/index.js!./src/app/firebase/quotes/create/create.page.html"),
          styles: [__webpack_require__(/*! ./create.page.scss */ "./src/app/firebase/quotes/create/create.page.scss")]
      }),
      tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"],
          _app_services_auth_service__WEBPACK_IMPORTED_MODULE_7__["AuthService"],
          _ionic_angular__WEBPACK_IMPORTED_MODULE_2__["NavController"],
          _firebase_integration_service__WEBPACK_IMPORTED_MODULE_5__["FirebaseService"],
          _angular_common_http__WEBPACK_IMPORTED_MODULE_9__["HttpClient"],
          ngx_papaparse__WEBPACK_IMPORTED_MODULE_10__["Papa"]])
  ], CreatePage);
  
  // onReset() {
  //   this.createEstimateForm = new FormGroup({
  //     name: new FormControl("", Validators.required),
  //     phone: new FormControl("", Validators.required),
  //     email: new FormControl(
  //       "",
  //       Validators.compose([
  //         Validators.required,
  //         Validators.pattern("^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$")
  //       ])
  //     ),
  //     cate_1: new FormControl(""),
  //     cate_2: new FormControl(""),
  //     cate_3: new FormControl(""),
  //     cate_4: new FormControl(""),
  //     average_speed: new FormControl(0),
  //     reply_rate: new FormControl(0),
  //     editor_choice: new FormControl(),
  //     class_size: new FormControl({ lower: 10, upper: 42 }),
  //     target_user_age: new FormControl({ lower: 10, upper: 16 }),
  //     class_length: new FormControl({ lower: 10, upper: 42 }),
  //     teaching_materials: new FormControl("rental"),
  //     company_intro: new FormControl(),
  //     tutor_qual: new FormControl(),
  //     competition_exp: new FormControl()
  //   });
  // }
  
  
  /***/ })
  
  }]);
  //# sourceMappingURL=firebase-quotes-create-create-module-es2015.js.map