text: /**
   * @fileoverview added by tsickle
   * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
   */
  import { Component, Input } from '@angular/core';
  import { SearchResult } from '../search-models';
  var SearchResultSummaryComponent = /** @class */ (function () {
      function SearchResultSummaryComponent() {
      }
      /**
       * @return {?}
       */
      SearchResultSummaryComponent.prototype.ngOnInit = /**
       * @return {?}
       */
      function () {
      };
      /**
       * @return {?}
       */
      SearchResultSummaryComponent.prototype.getTotalOccurrencesMessage = /**
       * @return {?}
       */
      function () {
          /** @type {?} */
          var message = "Nothing found";
          if (this.searchResult) {
              if (this.searchResult.totalOccurences === 0) {
                  return message;
              }
              return "Found <b>" + this.searchResult.totalOccurences + "</b> occurrences <b>" + this.searchResult.totalFiles + "</b> files";
          }
          return message;
      };
      /**
       * @return {?}
       */
      SearchResultSummaryComponent.prototype.getIndexedFilesMessage = /**
       * @return {?}
       */
      function () {
          if (this.searchResult) {
              return "<b>" + this.searchResult.indexedFiles + "</b> files indexed";
          }
      };
      /**
       * @return {?}
       */
      SearchResultSummaryComponent.prototype.getSearchDuration = /**
       * @return {?}
       */
      function () {
          if (this.searchResult) {
              return this.searchResult.searchDuration;
          }
      };
      SearchResultSummaryComponent.decorators = [
          { type: Component, args: [{
                      selector: 'gd-search-result-summary',
                      template: "<div id=\"gd-search-result-summary\">\n  <div class=\"gd-search-result-summary-status\">\n    <fa-icon [icon]=\"['fas','search']\" [class]=\"'ng-fa-icon icon'\"></fa-icon>\n    <div class=\"gd-total-occurrences\" [innerHTML]=\"getTotalOccurrencesMessage()\"></div>\n    <fa-icon [icon]=\"['fas','clock']\" [class]=\"'ng-fa-icon icon'\"></fa-icon>\n    <div class=\"gd-search-duration\">{{getSearchDuration()}} sec</div>\n    <div class=\"gd-indexed-files\" [innerHTML]=\"getIndexedFilesMessage()\"></div>\n  </div>\n  <div *ngIf=\"searchResult?.totalOccurences > 0\" class=\"gd-search-result-summary-header\">\n    <div>File</div>\n    <div>Occurrences</div>\n    <div>Size</div>\n  </div>\n  <div *ngIf=\"searchResult?.foundFiles\" class=\"gd-search-result-summary-body\">\n    <div *ngFor=\"let item of searchResult.foundFiles\">\n        <gd-search-result-item [item]=\"item\"></gd-search-result-item>\n    </div>\n  </div>\n</div>",
                      styles: ["#gd-search-result-summary{-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;height:100%;background-color:#e7e7e7;top:120px;position:absolute;width:100%}.gd-search-result-summary-header{display:-webkit-box;display:flex;font-size:13px;text-transform:uppercase;color:#6e6e6e;width:100%;height:60px;background-color:#f4f4f4;font-weight:700;-webkit-box-align:center;align-items:center}.gd-search-result-summary-status{display:-webkit-box;display:flex;font-size:12px;color:#fff;width:100%;height:30px;background-color:#25c2d4;-webkit-box-align:center;align-items:center;padding-left:17px}.gd-total-occurrences{padding-left:8px;padding-right:17px}.gd-search-duration{padding-left:8px}.gd-indexed-files{right:18px;position:absolute}.gd-search-result-summary-header div:nth-child(1){width:253px;text-align:left;display:-webkit-box;display:flex;padding-left:17px}.gd-search-result-summary-header div:nth-child(2){text-align:left;display:-webkit-box;display:flex}.gd-search-result-summary-header div:nth-child(3){width:30px;position:fixed;right:111px;text-align:left}.gd-search-result-summary-body{overflow-y:scroll;height:calc(100% - 210px)}.gd-search-result-last-placeholder{margin:0 52px}@media (max-width:1037px){.gd-indexed-files,.gd-search-result-header,.gd-search-result-summary-header div:nth-child(3){display:none}.gd-search-result-summary-header div:nth-child(2){position:absolute;right:18px}}"]
                  }] }
      ];
      /** @nocollapse */
      SearchResultSummaryComponent.ctorParameters = function () { return []; };
      SearchResultSummaryComponent.propDecorators = {
          searchResult: [{ type: Input }]
      };
      return SearchResultSummaryComponent;
  }());
  export { SearchResultSummaryComponent };
  if (false) {
      /** @type {?} */
      SearchResultSummaryComponent.prototype.searchResult;
  }
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLXJlc3VsdC1zdW1tYXJ5Lm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