-
Notifications
You must be signed in to change notification settings - Fork 0
/
11.95389814b38439fef5e7.js
1 lines (1 loc) · 5.79 KB
/
11.95389814b38439fef5e7.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{"0rVc":function(e,s,t){"use strict";t.r(s),t.d(s,"HomeTwoModule",(function(){return H}));var a=t("2kYt"),o=t("s2Ay"),l=t("hhBN"),c=t("sEIs"),r=t("ROBh"),i=t("C05f"),p=t("8lHc"),n=t("xVbo"),b=t("8j5Y"),u=t("TLy2"),d=t("cJ9h"),h=t("EM62"),g=t("XyeG"),m=t("P77x"),f=t("eJNX"),k=t("+PBj"),y=t("lLv2"),A=t("jb21"),L=t("YLm8"),E=t("TC1r"),P=t("CmGD"),w=t("TemI"),O=t("pOSb");const $=function(){return{url:"/shop",desktopImage:"assets/images/slides/slide-3.jpg",mobileImage:"assets/images/slides/slide-3-mobile.jpg",offer:"30% OFF",title:"When Buying Parts <br>With Installation",details:"Installation of parts in the services of <br>our partners.",buttonLabel:"Shop Now"}},j=function(){return{url:"/shop",desktopImage:"assets/images/slides/slide-2.jpg",mobileImage:"assets/images/slides/slide-2-mobile.jpg",title:"Not enough <br>spare parts?",details:"We have everything you need \u2013 replacement parts, <br>performance parts, accessories, oil & fluids, <br>tools and much more...",buttonLabel:"Shop Now"}},T=function(){return{url:"/shop",desktopImage:"assets/images/slides/slide-1.jpg",mobileImage:"assets/images/slides/slide-1-mobile.jpg",offer:"30% OFF",title:"Big Choice Of <br>Wheel Tires",details:"Any size and diameter, with or without spikes, <br>summer or winter, rain or snow.",buttonLabel:"Shop Now"}},S=function(e,s,t){return[e,s,t]},D=function(){return{label:"Special Offers",url:"/blog"}},R=function(){return{label:"New Arrivals",url:"/blog"}},C=function(){return{label:"Reviews",url:"/blog"}},I=function(e,s){return{title:e,products:s}},v=[{path:"",pathMatch:"full",component:(()=>{class e{constructor(e,s){this.shopApi=e,this.blogApi=s,this.brands$=Object(r.a)([]),this.popularCategories$=Object(r.a)([])}ngOnInit(){this.brands$=this.shopApi.getBrands({limit:16}),this.popularCategories$=this.shopApi.getCategories({slugs:["headlights-lighting","fuel-system","body-parts","interior-parts","tires-wheels","engine-drivetrain"],depth:1}),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.latestPosts=this.makeDeferredData(this.blogApi.getLatestPosts(8)),this.columnTopRated$=this.shopApi.getTopRatedProducts(null,3),this.columnSpecialOffers$=this.shopApi.getSpecialOffers(3),this.columnBestsellers$=this.shopApi.getPopularProducts(null,3)}groupChange(e,s){e.subject$.next(s)}makeCarouselData(e){const s=new i.a(e[0]),t={subject$:s,products$:s.pipe(Object(n.a)(e=>null!==e),Object(b.a)(()=>t.loading=!0),Object(u.a)(e=>e.products$),Object(b.a)(()=>t.loading=!1)),loading:!0,groups:e};return t}makeDeferredData(e){const s={loading:!0,data$:null};return s.data$=Object(p.a)(0).pipe(Object(d.a)(()=>e.pipe(Object(b.a)(()=>s.loading=!1)))),s}}return e.\u0275fac=function(s){return new(s||e)(h.Kb(g.d),h.Kb(g.b))},e.\u0275cmp=h.Eb({type:e,selectors:[["app-page-two"]],decls:32,vars:70,consts:[["layout","divider-xs"],[3,"slides"],["layout","divider-nl"],["layout","columns-8-full",3,"brands"],[3,"blockTitle","categories"],["layout","grid-5","rows","1",3,"blockTitle","loading","products","groups","changeGroup"],[3,"loading","products"],["layout","list",3,"label","loading","posts","links"],["layout","divider-nl",1,"d-xl-block","d-none"],[3,"columns"],["layout","bottom-strip"]],template:function(e,s){1&e&&(h.Lb(0,"app-block-space",0),h.Lb(1,"app-block-slideshow",1),h.Lb(2,"app-block-space",2),h.Lb(3,"app-block-brands",3),h.bc(4,"async"),h.Lb(5,"app-block-space",2),h.Lb(6,"app-block-categories",4),h.bc(7,"translate"),h.bc(8,"async"),h.Lb(9,"app-block-space",2),h.Qb(10,"app-block-products-carousel",5),h.Xb("changeGroup",(function(e){return s.groupChange(s.featuredProducts,e)})),h.bc(11,"translate"),h.bc(12,"async"),h.Pb(),h.Lb(13,"app-block-space",2),h.Lb(14,"app-block-banners"),h.Lb(15,"app-block-space",2),h.Lb(16,"app-block-sale",6),h.bc(17,"async"),h.Lb(18,"app-block-space",2),h.Lb(19,"app-block-posts-carousel",7),h.bc(20,"translate"),h.bc(21,"async"),h.Lb(22,"app-block-space",8),h.Lb(23,"app-block-products-columns",9),h.bc(24,"translate"),h.bc(25,"async"),h.bc(26,"translate"),h.bc(27,"async"),h.bc(28,"translate"),h.bc(29,"async"),h.Lb(30,"app-block-space",2),h.Lb(31,"app-block-features",10)),2&e&&(h.xb(1),h.hc("slides",h.oc(46,S,h.lc(43,$),h.lc(44,j),h.lc(45,T))),h.xb(2),h.hc("brands",h.cc(4,15,s.brands$)),h.xb(3),h.hc("blockTitle",h.cc(7,17,"HEADER_POPULAR_CATEGORIES"))("categories",h.cc(8,19,s.popularCategories$)),h.xb(4),h.hc("blockTitle",h.cc(11,21,"HEADER_FEATURED_PRODUCTS"))("loading",s.featuredProducts.loading)("products",h.cc(12,23,s.featuredProducts.products$))("groups",s.featuredProducts.groups),h.xb(6),h.hc("loading",s.blockSale.loading)("products",h.cc(17,25,s.blockSale.data$)),h.xb(3),h.hc("label",h.cc(20,27,"HEADER_LATEST_NEWS"))("loading",s.latestPosts.loading)("posts",h.cc(21,29,s.latestPosts.data$))("links",h.oc(53,S,h.lc(50,D),h.lc(51,R),h.lc(52,C))),h.xb(4),h.hc("columns",h.oc(66,S,h.nc(57,I,h.cc(24,31,"HEADER_TOP_RATED"),h.cc(25,33,s.columnTopRated$)),h.nc(60,I,h.cc(26,35,"HEADER_SPECIAL_OFFERS"),h.cc(27,37,s.columnSpecialOffers$)),h.nc(63,I,h.cc(28,39,"HEADER_BESTSELLERS"),h.cc(29,41,s.columnBestsellers$)))))},directives:[m.a,f.a,k.a,y.a,A.a,L.a,E.a,P.a,w.a,O.a],pipes:[a.b,o.e],styles:[""]}),e})()}];let x=(()=>{class e{}return e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({factory:function(s){return new(s||e)},imports:[[c.k.forChild(v)],c.k]}),e})();var F=t("FpXt");let H=(()=>{class e{}return e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({factory:function(s){return new(s||e)},imports:[[a.c,o.d.forChild(),l.a,x,F.a]]}),e})()}}]);