-
Notifications
You must be signed in to change notification settings - Fork 0
/
10.5c9a14b23a68fe1c116b.js
1 lines (1 loc) · 6.18 KB
/
10.5c9a14b23a68fe1c116b.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{VqbD:function(e,t,a){"use strict";a.r(t),a.d(t,"HomeOneModule",(function(){return G}));var o=a("2kYt"),s=a("s2Ay"),c=a("hhBN"),l=a("sEIs"),r=a("ROBh"),n=a("C05f"),i=a("8lHc"),p=a("xVbo"),b=a("8j5Y"),u=a("TLy2"),g=a("cJ9h"),d=a("EM62"),h=a("XyeG"),m=a("/y99"),f=a("pOSb"),y=a("P77x"),k=a("jb21"),A=a("TC1r"),L=a("YLm8"),$=a("CmGD"),E=a("+PBj"),P=a("TemI"),O=a("pb8H");function D(e,t){1&e&&d.Lb(0,"app-block-space",14)}function v(e,t){if(1&e&&(d.Ob(0),d.Lb(1,"app-block-zone",12),d.bc(2,"async"),d.Dc(3,D,1,0,"app-block-space",13),d.Nb()),2&e){const e=t.$implicit,a=t.last;d.xb(1),d.hc("image",e.image)("mobileImage",e.mobileImage)("category",d.cc(2,4,e.category$)),d.xb(2),d.hc("ngIf",!a)}}const S=function(){return{label:"Wheel Covers",url:"/shop"}},j=function(){return{label:"Timing Belts",url:"/shop"}},w=function(){return{label:"Oil Pans",url:"/shop"}},T=function(){return{label:"Show All",url:"/shop"}},R=function(e,t,a,o){return[e,t,a,o]},C=function(){return{label:"Special Offers",url:"/blog"}},I=function(){return{label:"New Arrivals",url:"/blog"}},x=function(){return{label:"Reviews",url:"/blog"}},H=function(e,t,a){return[e,t,a]},B=function(e,t){return{title:e,products:t}},F=[{path:"",pathMatch:"full",component:(()=>{class e{constructor(e,t){this.shopApi=e,this.blogApi=t,this.blockZones=[],this.brands$=Object(r.a)([])}ngOnInit(){this.featuredProducts=this.makeCarouselData([{label:"All",products$:this.shopApi.getFeaturedProducts(null,8)},{label:"Power Tools",products$:this.shopApi.getFeaturedProducts("power-tools",8)},{label:"Hand Tools",products$:this.shopApi.getFeaturedProducts("hand-tools",8)},{label:"Plumbing",products$:this.shopApi.getFeaturedProducts("plumbing",8)}]),this.blockSale=this.makeDeferredData(this.shopApi.getSpecialOffers(8)),this.blockZones=[{image:"assets/images/categories/category-overlay-1.jpg",mobileImage:"assets/images/categories/category-overlay-1-mobile.jpg",category$:this.shopApi.getCategoryBySlug("tires-wheels",{depth:1})},{image:"assets/images/categories/category-overlay-2.jpg",mobileImage:"assets/images/categories/category-overlay-2-mobile.jpg",category$:this.shopApi.getCategoryBySlug("interior-parts",{depth:1})},{image:"assets/images/categories/category-overlay-3.jpg",mobileImage:"assets/images/categories/category-overlay-3-mobile.jpg",category$:this.shopApi.getCategoryBySlug("engine-drivetrain",{depth:1})}],this.newArrivals=this.makeDeferredData(this.shopApi.getLatestProducts(8)),this.latestPosts=this.makeDeferredData(this.blogApi.getLatestPosts(8)),this.brands$=this.shopApi.getBrands({limit:16}),this.columnTopRated$=this.shopApi.getTopRatedProducts(null,3),this.columnSpecialOffers$=this.shopApi.getSpecialOffers(3),this.columnBestsellers$=this.shopApi.getPopularProducts(null,3)}groupChange(e,t){e.subject$.next(t)}makeCarouselData(e){const t=new n.a(e[0]),a={subject$:t,products$:t.pipe(Object(p.a)(e=>null!==e),Object(b.a)(()=>a.loading=!0),Object(u.a)(e=>e.products$),Object(b.a)(()=>a.loading=!1)),loading:!0,groups:e};return a}makeDeferredData(e){const t={loading:!0,data$:null};return t.data$=Object(i.a)(0).pipe(Object(g.a)(()=>e.pipe(Object(b.a)(()=>t.loading=!1)))),t}}return e.\u0275fac=function(t){return new(t||e)(d.Kb(h.d),d.Kb(h.b))},e.\u0275cmp=d.Eb({type:e,selectors:[["app-page-one"]],decls:33,vars:74,consts:[["layout","top-strip"],["layout","divider-nl"],["layout","grid-5","rows","1",3,"blockTitle","loading","products","groups","changeGroup"],[3,"loading","products"],["layout","divider-lg"],[4,"ngFor","ngForOf"],["layout","horizontal","rows","2",3,"blockTitle","loading","products","links"],["layout","grid",3,"label","loading","posts","links"],["layout","columns-8-full",3,"brands"],["layout","divider-nl",1,"d-xl-block","d-none"],[3,"columns"],["layout","before-footer"],[3,"image","mobileImage","category"],["layout","divider-sm",4,"ngIf"],["layout","divider-sm"]],template:function(e,t){1&e&&(d.Lb(0,"app-block-finder"),d.Lb(1,"app-block-features",0),d.Lb(2,"app-block-space",1),d.Qb(3,"app-block-products-carousel",2),d.Xb("changeGroup",(function(e){return t.groupChange(t.featuredProducts,e)})),d.bc(4,"translate"),d.bc(5,"async"),d.Pb(),d.Lb(6,"app-block-space",1),d.Lb(7,"app-block-sale",3),d.bc(8,"async"),d.Lb(9,"app-block-space",4),d.Dc(10,v,4,6,"ng-container",5),d.Lb(11,"app-block-space",1),d.Lb(12,"app-block-banners"),d.Lb(13,"app-block-space",1),d.Lb(14,"app-block-products-carousel",6),d.bc(15,"translate"),d.bc(16,"async"),d.Lb(17,"app-block-space",1),d.Lb(18,"app-block-posts-carousel",7),d.bc(19,"translate"),d.bc(20,"async"),d.Lb(21,"app-block-space",1),d.Lb(22,"app-block-brands",8),d.bc(23,"async"),d.Lb(24,"app-block-space",9),d.Lb(25,"app-block-products-columns",10),d.bc(26,"translate"),d.bc(27,"async"),d.bc(28,"translate"),d.bc(29,"async"),d.bc(30,"translate"),d.bc(31,"async"),d.Lb(32,"app-block-space",11)),2&e&&(d.xb(3),d.hc("blockTitle",d.cc(4,17,"HEADER_FEATURED_PRODUCTS"))("loading",t.featuredProducts.loading)("products",d.cc(5,19,t.featuredProducts.products$))("groups",t.featuredProducts.groups),d.xb(4),d.hc("loading",t.blockSale.loading)("products",d.cc(8,21,t.blockSale.data$)),d.xb(3),d.hc("ngForOf",t.blockZones),d.xb(4),d.hc("blockTitle",d.cc(15,23,"HEADER_NEW_ARRIVALS"))("loading",t.newArrivals.loading)("products",d.cc(16,25,t.newArrivals.data$))("links",d.pc(49,R,d.lc(45,S),d.lc(46,j),d.lc(47,w),d.lc(48,T))),d.xb(4),d.hc("label",d.cc(19,27,"HEADER_LATEST_NEWS"))("loading",t.latestPosts.loading)("posts",d.cc(20,29,t.latestPosts.data$))("links",d.oc(57,H,d.lc(54,C),d.lc(55,I),d.lc(56,x))),d.xb(4),d.hc("brands",d.cc(23,31,t.brands$)),d.xb(3),d.hc("columns",d.oc(70,H,d.nc(61,B,d.cc(26,33,"HEADER_TOP_RATED"),d.cc(27,35,t.columnTopRated$)),d.nc(64,B,d.cc(28,37,"HEADER_SPECIAL_OFFERS"),d.cc(29,39,t.columnSpecialOffers$)),d.nc(67,B,d.cc(30,41,"HEADER_BESTSELLERS"),d.cc(31,43,t.columnBestsellers$)))))},directives:[m.a,f.a,y.a,k.a,A.a,o.s,L.a,$.a,E.a,P.a,O.a,o.t],pipes:[s.e,o.b],styles:[""]}),e})()}];let _=(()=>{class e{}return e.\u0275mod=d.Ib({type:e}),e.\u0275inj=d.Hb({factory:function(t){return new(t||e)},imports:[[l.k.forChild(F)],l.k]}),e})();var N=a("FpXt");let G=(()=>{class e{}return e.\u0275mod=d.Ib({type:e}),e.\u0275inj=d.Hb({factory:function(t){return new(t||e)},imports:[[o.c,s.d.forChild(),c.a,_,N.a]]}),e})()}}]);