text: !function(){function t(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function i(t,i){for(var n=0;n<i.length;n++){var o=i[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{RmqX:function(n,o,e){"use strict";e.r(o),e.d(o,"SearchPageModule",(function(){return v}));var r=e("ofXK"),c=e("3Pt+"),s=e("TEn/"),a=e("tyNb"),b=e("fXoL"),u=e("S3Px"),p=function(t){return["/product-display",t]};function f(t,i){if(1&t&&(b.Kb(0,"ion-item"),b.Kb(1,"ion-grid"),b.Kb(2,"ion-row",3),b.Kb(3,"ion-col",0),b.Ib(4,"img",4),b.Jb(),b.Kb(5,"ion-col",1),b.Kb(6,"ion-text"),b.fc(7),b.Jb(),b.Jb(),b.Jb(),b.Jb(),b.Jb()),2&t){var n=i.$implicit;b.xb(2),b.Xb("routerLink",b.Zb(3,p,n.prod_id)),b.xb(2),b.Xb("src",n.prod_img,b.cc),b.xb(3),b.gc(n.prod_name)}}var d,h,l,g=[{path:"",component:(d=function(){function n(i,o){var e=this;t(this,n),this.productService=i,this.activatedRoute=o,this.products=[],this.search="",this.sortBy="prod_rating",this.dir="desc",this.page=0,this.pageSize=25,this.activatedRoute.paramMap.subscribe((function(t){e.search=t.get("search"),e.productService.search(e.search,e.page,e.pageSize,e.sortBy,e.dir).subscribe((function(t){e.products=t}))}))}var o,e,r;return o=n,(e=[{key:"ngOnInit",value:function(){}}])&&i(o.prototype,e),r&&i(o,r),n}(),d.\u0275fac=function(t){return new(t||d)(b.Hb(u.a),b.Hb(a.a))},d.\u0275cmp=b.Bb({type:d,selectors:[["app-search"]],decls:6,vars:1,consts:[["size","2"],["size","10"],[4,"ngFor","ngForOf"],[3,"routerLink"],["onerror","this.src='assets/alt-img.jpg'",2,"max-width","200px","max-height","200px",3,"src"]],template:function(t,i){1&t&&(b.Kb(0,"ion-content"),b.Kb(1,"ion-grid"),b.Ib(2,"ion-col",0),b.Kb(3,"ion-col",1),b.Kb(4,"ion-list"),b.ec(5,f,8,5,"ion-item",2),b.Jb(),b.Jb(),b.Jb(),b.Jb()),2&t&&(b.xb(5),b.Xb("ngForOf",i.products))},directives:[s.l,s.o,s.k,s.x,r.i,s.v,s.z,s.N,a.h,s.D],styles:[""]}),d)}],m=((l=function i(){t(this,i)}).\u0275mod=b.Fb({type:l}),l.\u0275inj=b.Eb({factory:function(t){return new(t||l)},imports:[[a.i.forChild(g)],a.i]}),l),v=((h=function i(){t(this,i)}).\u0275mod=b.Fb({type:h}),h.\u0275inj=b.Eb({factory:function(t){return new(t||h)},imports:[[r.b,c.f,s.I,m]]}),h)}}])}();