-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.b839d9744805a28d5acc.js
1 lines (1 loc) · 27.2 KB
/
common.b839d9744805a28d5acc.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"/y99":function(e,t,i){"use strict";i.d(t,"a",(function(){return b}));var c=i("nIj0"),s=i("EM62"),r=i("sEIs"),n=i("jOSP"),a=i("IZc3"),o=i("p6dC"),l=i("s2Ay");let b=(()=>{class e{constructor(e,t){this.router=e,this.url=t,this.vehicleControl=new c.g(null),this.classBlock=!0,this.classBlockFinder=!0}get vehicle(){return this.vehicleControl.value}submit(){this.vehicle&&this.router.navigate([this.url.allProducts()],{queryParams:{filter_vehicle:this.vehicle.id}}).then()}}return e.\u0275fac=function(t){return new(t||e)(s.Kb(r.g),s.Kb(n.a))},e.\u0275cmp=s.Eb({type:e,selectors:[["app-block-finder"]],hostVars:4,hostBindings:function(e,t){2&e&&s.Cb("block",t.classBlock)("block-finder",t.classBlockFinder)},decls:14,vars:10,consts:[["type","bottom",1,"block-finder__decor"],[1,"block-finder__image",2,"background-image","url(assets/images/finder.jpg)"],[1,"block-finder__body","container","container--max--xl"],[1,"block-finder__title"],[1,"block-finder__subtitle"],[1,"block-finder__form",3,"submit"],[1,"block-finder__select",3,"formControl"],["type","submit",1,"block-finder__button"]],template:function(e,t){1&e&&(s.Lb(0,"app-decor",0),s.Lb(1,"div",1),s.Qb(2,"div",2),s.Qb(3,"div",3),s.Fc(4),s.bc(5,"translate"),s.Pb(),s.Qb(6,"div",4),s.Fc(7),s.bc(8,"translate"),s.Pb(),s.Qb(9,"form",5),s.Xb("submit",(function(){return t.submit()})),s.Lb(10,"app-vehicle-select",6),s.Qb(11,"button",7),s.Fc(12),s.bc(13,"translate"),s.Pb(),s.Pb(),s.Pb()),2&e&&(s.xb(4),s.Gc(s.cc(5,4,"TEXT_BLOCK_FINDER_TITLE")),s.xb(3),s.Gc(s.cc(8,6,"TEXT_BLOCK_FINDER_SUBTITLE")),s.xb(3),s.hc("formControl",t.vehicleControl),s.xb(2),s.Gc(s.cc(13,8,"BUTTON_BLOCK_FINDER_SEARCH")))},directives:[a.a,c.H,c.s,c.t,o.a,c.r,c.h],pipes:[l.e],styles:[""]}),e})()},BXsF:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var c=i("EM62"),s=i("sEIs");let r=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Eb({type:e,selectors:[["app-terms"]],decls:26,vars:0,consts:[["routerLink","/site/contact-us-v1"]],template:function(e,t){1&e&&(c.Qb(0,"p"),c.Fc(1," Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec facilisis neque ut purus fermentum, ac pretium nibh facilisis. Vivamus venenatis viverra iaculis. Suspendisse tempor orci non sapien ullamcorper dapibus. Suspendisse at velit diam. Donec pharetra nec enim blandit vulputate. Suspendisse potenti. Pellentesque et molestie ante. In feugiat ante vitae ultricies malesuada.\n"),c.Pb(),c.Qb(2,"h2"),c.Fc(3,"Definitions"),c.Pb(),c.Qb(4,"ol"),c.Qb(5,"li"),c.Qb(6,"strong"),c.Fc(7,"Risus"),c.Pb(),c.Fc(8," \u2014 Morbi posuere eleifend sollicitudin. Praesent eget ante in enim scelerisque scelerisque. Donec mi lorem, molestie a sapien non, laoreet convallis felis. In semper felis in lacus venenatis, sit amet commodo leo interdum. Maecenas congue ut leo et auctor. "),c.Pb(),c.Qb(9,"li"),c.Qb(10,"strong"),c.Fc(11,"Praesent"),c.Pb(),c.Fc(12," \u2014 Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nulla orci ante, viverra in imperdiet in, pharetra et leo "),c.Pb(),c.Qb(13,"li"),c.Qb(14,"strong"),c.Fc(15,"Vestibulum"),c.Pb(),c.Fc(16," \u2014 Vestibulum arcu tellus, aliquam vel fermentum vestibulum, lacinia pulvinar ipsum. In hac habitasse platea dictumst. Integer felis libero, blandit scelerisque mauris eget, porta elementum sapien. Mauris luctus arcu non enim lobortis gravida. "),c.Pb(),c.Pb(),c.Qb(17,"h2"),c.Fc(18,"Ornare dolor"),c.Pb(),c.Qb(19,"p"),c.Fc(20," Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec facilisis neque ut purus fermentum, ac pretium nibh facilisis. Vivamus venenatis viverra iaculis. Suspendisse tempor orci non sapien ullamcorper dapibus. Suspendisse at velit diam. Donec pharetra nec enim blandit vulputate. Suspendisse potenti. Pellentesque et molestie ante. In feugiat ante vitae ultricies malesuada.\n"),c.Pb(),c.Qb(21,"p"),c.Fc(22,"For information about how to contact us, please visit our "),c.Qb(23,"a",0),c.Fc(24,"contact page"),c.Pb(),c.Fc(25,"."),c.Pb())},directives:[s.j],styles:[""]}),e})()},EqtX:function(e,t,i){"use strict";i.d(t,"a",(function(){return h}));var c=i("EM62"),s=i("jOSP"),r=i("2kYt"),n=i("xVRU"),a=i("sEIs"),o=i("29F/");function l(e,t){if(1&e&&(c.Qb(0,"div",3),c.Qb(1,"h4"),c.Fc(2),c.Pb(),c.Pb()),2&e){const e=c.ac();c.xb(2),c.Gc(e.widgetTitle)}}function b(e,t){if(1&e&&(c.Qb(0,"li",12),c.Qb(1,"a",6),c.Fc(2),c.Pb(),c.Pb()),2&e){const e=t.$implicit,i=c.ac(3);c.xb(1),c.hc("routerLink",i.url.category(e)),c.xb(1),c.Gc(e.name)}}function u(e,t){if(1&e){const e=c.Rb();c.Ob(0),c.Qb(1,"button",8),c.Xb("click",(function(){return c.wc(e),c.ac(),c.tc(1).toggle()})),c.Pb(),c.Qb(2,"div",9),c.Qb(3,"ul",10),c.Dc(4,b,3,2,"li",11),c.Pb(),c.Pb(),c.Nb()}if(2&e){const e=c.ac().$implicit;c.xb(4),c.hc("ngForOf",e.children)}}function d(e,t){if(1&e&&(c.Qb(0,"li",4,5),c.Qb(2,"a",6),c.Fc(3),c.Pb(),c.Dc(4,u,5,1,"ng-container",7),c.Pb()),2&e){const e=t.$implicit,i=c.ac();c.xb(2),c.hc("routerLink",i.url.category(e)),c.xb(1),c.Hc(" ",e.name," "),c.xb(1),c.hc("ngIf",null==e.children?null:e.children.length)}}let h=(()=>{class e{constructor(e){this.url=e,this.categories=[],this.classCard=!0,this.classWidget=!0,this.classWidgetCategories=!0}}return e.\u0275fac=function(t){return new(t||e)(c.Kb(s.a))},e.\u0275cmp=c.Eb({type:e,selectors:[["app-widget-categories"]],hostVars:6,hostBindings:function(e,t){2&e&&c.Cb("card",t.classCard)("widget",t.classWidget)("widget-categories",t.classWidgetCategories)},inputs:{widgetTitle:"widgetTitle",categories:"categories"},decls:3,vars:2,consts:[["class","widget__header",4,"ngIf"],[1,"widget-categories__list","widget-categories__list--root"],["class","widget-categories__item","appCollapseItem","widget-categories__item--open",4,"ngFor","ngForOf"],[1,"widget__header"],["appCollapseItem","widget-categories__item--open",1,"widget-categories__item"],["collapseItem","appCollapseItem"],[1,"widget-categories__link",3,"routerLink"],[4,"ngIf"],["type","button",1,"widget-categories__expander",3,"click"],["appCollapseContent","",1,"widget-categories__container"],[1,"widget-categories__list","widget-categories__list--child"],["class","widget-categories__item",4,"ngFor","ngForOf"],[1,"widget-categories__item"]],template:function(e,t){1&e&&(c.Dc(0,l,3,1,"div",0),c.Qb(1,"ul",1),c.Dc(2,d,5,3,"li",2),c.Pb()),2&e&&(c.hc("ngIf",t.widgetTitle),c.xb(2),c.hc("ngForOf",t.categories))},directives:[r.t,r.s,n.a,a.j,o.a],styles:[""]}),e})()},eJNX:function(e,t,i){"use strict";i.d(t,"a",(function(){return _}));var c=i("TLy2"),s=i("kuMc"),r=i("ZTXN"),n=i("8lHc"),a=i("EM62"),o=i("6rcc"),l=i("2kYt"),b=i("vAuv"),u=i("3TTo"),d=i("sEIs");function h(e,t){if(1&e&&(a.Qb(0,"span",13),a.Fc(1),a.Pb()),2&e){const e=a.ac(2).$implicit;a.xb(1),a.Gc(e.offer)}}function g(e,t){if(1&e&&(a.Qb(0,"a",6),a.Lb(1,"span",7),a.Lb(2,"span",8),a.Dc(3,h,2,1,"span",9),a.Lb(4,"span",10),a.Lb(5,"span",11),a.Qb(6,"span",12),a.Fc(7),a.Pb(),a.Pb()),2&e){const e=a.ac().$implicit;a.hc("routerLink",e.url),a.xb(1),a.Cc("background-image","url("+e.desktopImage+")"),a.xb(1),a.Cc("background-image","url("+e.mobileImage+")"),a.xb(1),a.hc("ngIf",e.offer),a.xb(1),a.hc("innerHTML",e.title,a.xc),a.xb(1),a.hc("innerHTML",e.details,a.xc),a.xb(2),a.Gc(e.buttonLabel)}}function p(e,t){1&e&&a.Dc(0,g,8,9,"ng-template",5)}function m(e,t){if(1&e&&(a.Qb(0,"div",2),a.Qb(1,"owl-carousel-o",3),a.Dc(2,p,1,0,void 0,4),a.Pb(),a.Pb()),2&e){const e=a.ac();a.xb(1),a.hc("options",e.carouselOptions),a.xb(1),a.hc("ngForOf",e.slides)}}let _=(()=>{class e{constructor(e,t){this.language=e,this.cd=t,this.destroy$=new r.a,this.showCarousel=!0,this.slides=[],this.classBlock=!0,this.classBlockSlideshow=!0}ngOnInit(){this.initOptions(),this.language.directionChange$.pipe(Object(c.a)(()=>Object(n.a)(250)),Object(s.a)(this.destroy$)).subscribe(()=>{this.initOptions(),this.showCarousel=!1,this.cd.detectChanges(),this.showCarousel=!0})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initOptions(){this.carouselOptions={items:1,dots:!0,loop:!0,rtl:this.language.isRTL()}}}return e.\u0275fac=function(t){return new(t||e)(a.Kb(o.a),a.Kb(a.h))},e.\u0275cmp=a.Eb({type:e,selectors:[["app-block-slideshow"]],hostVars:4,hostBindings:function(e,t){2&e&&a.Cb("block",t.classBlock)("block-slideshow",t.classBlockSlideshow)},inputs:{slides:"slides"},decls:2,vars:1,consts:[[1,"container"],["class","block-slideshow__carousel",4,"ngIf"],[1,"block-slideshow__carousel"],["appOwlPreventClick","",3,"options"],[4,"ngFor","ngForOf"],["carouselSlide",""],[1,"block-slideshow__item",3,"routerLink"],[1,"block-slideshow__item-image","block-slideshow__item-image--desktop","reflect-rtl"],[1,"block-slideshow__item-image","block-slideshow__item-image--mobile","reflect-rtl"],["class","block-slideshow__item-offer",4,"ngIf"],[1,"block-slideshow__item-title",3,"innerHTML"],[1,"block-slideshow__item-details",3,"innerHTML"],[1,"block-slideshow__item-button"],[1,"block-slideshow__item-offer"]],template:function(e,t){1&e&&(a.Qb(0,"div",0),a.Dc(1,m,3,2,"div",1),a.Pb()),2&e&&(a.xb(1),a.hc("ngIf",t.showCarousel))},directives:[l.t,b.a,u.a,l.s,b.c,d.j],styles:[""]}),e})()},iIg7:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var c=i("EM62");let s=(()=>{class e{constructor(){this.classShareLinks=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Eb({type:e,selectors:[["app-share-links"]],hostVars:2,hostBindings:function(e,t){2&e&&c.Cb("share-links",t.classShareLinks)},decls:13,vars:0,consts:[[1,"share-links__list"],[1,"share-links__item","share-links__item--type--like"],["href",""],[1,"share-links__item","share-links__item--type--tweet"],[1,"share-links__item","share-links__item--type--pin"],[1,"share-links__item","share-links__item--type--counter"]],template:function(e,t){1&e&&(c.Qb(0,"ul",0),c.Qb(1,"li",1),c.Qb(2,"a",2),c.Fc(3,"Like"),c.Pb(),c.Pb(),c.Qb(4,"li",3),c.Qb(5,"a",2),c.Fc(6,"Tweet"),c.Pb(),c.Pb(),c.Qb(7,"li",4),c.Qb(8,"a",2),c.Fc(9,"Pin It"),c.Pb(),c.Pb(),c.Qb(10,"li",5),c.Qb(11,"a",2),c.Fc(12,"4K"),c.Pb(),c.Pb(),c.Pb())},styles:[""]}),e})()},lLv2:function(e,t,i){"use strict";i.d(t,"a",(function(){return d}));var c=i("EM62"),s=i("jOSP"),r=i("2kYt"),n=i("IZc3"),a=i("sEIs"),o=i("s2Ay");function l(e,t){if(1&e&&(c.Qb(0,"div",3),c.Qb(1,"div",6),c.Qb(2,"div",7),c.Fc(3),c.Lb(4,"app-decor",8),c.Pb(),c.Pb(),c.Pb()),2&e){const e=c.ac();c.xb(3),c.Hc(" ",e.blockTitle," ")}}function b(e,t){if(1&e&&(c.Qb(0,"li"),c.Qb(1,"a",17),c.Fc(2),c.Pb(),c.Pb()),2&e){const e=t.$implicit,i=c.ac(2);c.xb(1),c.hc("routerLink",i.url.category(e)),c.xb(1),c.Gc(e.name)}}function u(e,t){if(1&e&&(c.Qb(0,"div",9),c.Qb(1,"div",10),c.Qb(2,"div",11),c.Qb(3,"div",12),c.Qb(4,"a",13),c.Lb(5,"img",14),c.Pb(),c.Pb(),c.Qb(6,"div",15),c.Qb(7,"div",16),c.Qb(8,"a",17),c.Fc(9),c.Pb(),c.Pb(),c.Qb(10,"ul",18),c.Dc(11,b,3,2,"li",19),c.Pb(),c.Qb(12,"div",20),c.Qb(13,"a",21),c.Fc(14),c.bc(15,"translate"),c.Pb(),c.Pb(),c.Pb(),c.Pb(),c.Pb(),c.Pb()),2&e){const e=t.$implicit,i=c.ac();c.xb(4),c.hc("routerLink",i.url.category(e)),c.xb(1),c.hc("src",e.image,c.yc),c.xb(3),c.hc("routerLink",i.url.category(e)),c.xb(1),c.Gc(e.name),c.xb(2),c.hc("ngForOf",i.children[e.slug]),c.xb(2),c.hc("routerLink",i.url.category(e)),c.xb(1),c.Hc(" ",c.cc(15,7,"LINK_SHOP_ALL")," ")}}let d=(()=>{class e{constructor(e){this.url=e,this.categories=[],this.classBlock=!0,this.classBlockCategories=!0}ngOnChanges(e){e.categories&&(this.children={},this.categories.forEach(e=>{this.children[e.slug]=e.children.slice(0,5)}))}}return e.\u0275fac=function(t){return new(t||e)(c.Kb(s.a))},e.\u0275cmp=c.Eb({type:e,selectors:[["app-block-categories"]],hostVars:4,hostBindings:function(e,t){2&e&&c.Cb("block",t.classBlock)("block-categories",t.classBlockCategories)},inputs:{blockTitle:"blockTitle",categories:"categories"},features:[c.vb],decls:6,vars:2,consts:[["class","container",4,"ngIf"],[1,"block-categories__body"],["type","bottom",1,"block-categories__body-decor"],[1,"container"],[1,"block-categories__list"],["class","block-categories__item category-card category-card--layout--classic",4,"ngFor","ngForOf"],[1,"block-categories__header"],[1,"block-categories__title"],["type","center",1,"block-categories__title-decor"],[1,"block-categories__item","category-card","category-card--layout--classic"],[1,"category-card__body"],[1,"category-card__content"],[1,"category-card__image","image","image--type--category"],[1,"image__body",3,"routerLink"],["alt","",1,"image__tag",3,"src"],[1,"category-card__info"],[1,"category-card__name"],[3,"routerLink"],[1,"category-card__children"],[4,"ngFor","ngForOf"],[1,"category-card__actions"],[1,"category-card__link",3,"routerLink"]],template:function(e,t){1&e&&(c.Dc(0,l,5,1,"div",0),c.Qb(1,"div",1),c.Lb(2,"app-decor",2),c.Qb(3,"div",3),c.Qb(4,"div",4),c.Dc(5,u,16,9,"div",5),c.Pb(),c.Pb(),c.Pb()),2&e&&(c.hc("ngIf",t.blockTitle),c.xb(5),c.hc("ngForOf",t.categories))},directives:[r.t,n.a,r.s,a.j],pipes:[o.e],styles:[""]}),e})()},p6dC:function(e,t,i){"use strict";i.d(t,"a",(function(){return m}));var c=i("EM62"),s=i("nIj0"),r=i("ZTXN"),n=i("ROBh"),a=i("kuMc"),o=i("8j5Y"),l=i("TLy2"),b=i("XyeG"),u=i("2kYt"),d=i("s2Ay");function h(e,t){if(1&e&&(c.Qb(0,"option",7),c.Fc(1),c.Pb()),2&e){const e=t.$implicit,i=c.ac().$implicit,s=c.ac();c.hc("value",s.serializeOption(e,i)),c.xb(1),c.Hc(" ",s.serializeOption(e,i)," ")}}function g(e,t){if(1&e&&(c.Qb(0,"div",2),c.Qb(1,"select",3),c.bc(2,"translate"),c.Qb(3,"option",4),c.Fc(4),c.bc(5,"translate"),c.Pb(),c.Dc(6,h,2,2,"option",5),c.Pb(),c.Lb(7,"div",6),c.Pb()),2&e){const e=t.$implicit;c.Cb("vehicle-select__item--loading",e.loading),c.xb(1),c.hc("formControlName",e.key),c.yb("aria-label",c.cc(2,6,e.label)),c.xb(3),c.Gc(c.cc(5,8,e.placeholder)),c.xb(2),c.hc("ngForOf",e.options)}}function p(e){return Object.assign(Object.assign({},e),{loading:!1,options:[],load:new r.a})}let m=(()=>{class e{constructor(e){this.vehicleApi=e,this.destroy$=new r.a,this.value=null,this.items=[],this.classVehicleSelect=!0,this.changeFn=()=>{},this.touchedFn=()=>{}}ngOnInit(){this.items=[p({key:"year",label:"INPUT_VEHICLE_YEAR_LABEL",placeholder:"INPUT_VEHICLE_YEAR_PLACEHOLDER",optionsSource:this.vehicleApi.getYears,serializeOptionFn:e=>e.toString(),deserializeOptionFn:e=>parseFloat(e)}),p({key:"brand",label:"INPUT_VEHICLE_BRAND_LABEL",placeholder:"INPUT_VEHICLE_BRAND_PLACEHOLDER",optionsSource:this.vehicleApi.getMakes}),p({key:"model",label:"INPUT_VEHICLE_MODEL_LABEL",placeholder:"INPUT_VEHICLE_MODEL_PLACEHOLDER",optionsSource:this.vehicleApi.getModels}),p({key:"engine",label:"INPUT_VEHICLE_ENGINE_LABEL",placeholder:"INPUT_VEHICLE_ENGINE_PLACEHOLDER",optionsSource:this.vehicleApi.getVehicles,serializeOptionFn:e=>e.engine,deserializeOptionFn:(e,t)=>t.options.find(t=>t.engine===e)})];const e={};this.items.forEach((t,i)=>{this.makeOptionsLoader(t,i).pipe(Object(a.a)(this.destroy$)).subscribe(e=>t.options=e),e[t.key]=new s.g("none"),e[t.key].valueChanges.pipe(Object(a.a)(this.destroy$)).subscribe(()=>this.onItemValueChange(i))}),this.form=new s.j(e),this.onItemValueChange(0),this.items[0].load.next()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}registerOnChange(e){this.changeFn=e}registerOnTouched(e){this.touchedFn=e}writeValue(e){}serializeOption(e,t){return t.serializeOptionFn?t.serializeOptionFn(e,t):e}deserializeOption(e,t){return t.deserializeOptionFn?t.deserializeOptionFn(e,t):e}setValue(e){this.value!==e&&(this.value=e,this.changeFn(e))}onItemValueChange(e){const t=this.form.get(this.items[e].key);if(this.items.slice(e+1).forEach(e=>{e.options=[],this.form.get(e.key).setValue("none",{emitEvent:!1}),this.form.get(e.key).disable({emitEvent:!1})}),"none"===t.value)this.setValue(null);else{const i=this.items.slice(e+1,e+2).pop();i?(this.form.get(i.key).enable({emitEvent:!1}),i.load.next()):this.setValue(this.deserializeOption(t.value,this.items[e]))}}getItemValue(e){const t=this.form.get(e.key).value;return"none"!==t&&e.deserializeOptionFn?e.deserializeOptionFn(t,e):t}getItemValues(e){return e.reduce((e,t)=>[...e,this.getItemValue(t)],[])}makeOptionsLoader(e,t){return e.load.pipe(Object(o.a)(()=>e.loading=!0),Object(l.a)(()=>{const i=this.getItemValues(this.items.slice(0,t));return i.length>0&&"none"===i.slice().pop()?Object(n.a)([]):e.optionsSource(...i)}),Object(o.a)(()=>e.loading=!1))}}return e.\u0275fac=function(t){return new(t||e)(c.Kb(b.e))},e.\u0275cmp=c.Eb({type:e,selectors:[["app-vehicle-select"]],hostVars:2,hostBindings:function(e,t){2&e&&c.Cb("vehicle-select",t.classVehicleSelect)},features:[c.wb([{provide:s.q,useExisting:Object(c.S)(()=>e),multi:!0}])],decls:2,vars:2,consts:[[1,"vehicle-select__list",3,"formGroup"],["class","vehicle-select__item",3,"vehicle-select__item--loading",4,"ngFor","ngForOf"],[1,"vehicle-select__item"],[1,"vehicle-select__item-control",3,"formControlName"],["value","none"],[3,"value",4,"ngFor","ngForOf"],[1,"vehicle-select__item-loader"],[3,"value"]],template:function(e,t){1&e&&(c.Qb(0,"div",0),c.Dc(1,g,8,10,"div",1),c.Pb()),2&e&&(c.hc("formGroup",t.form),c.xb(1),c.hc("ngForOf",t.items))},directives:[s.s,s.k,u.s,s.D,s.r,s.i,s.w,s.G],pipes:[d.e],styles:[""]}),e})()},pb8H:function(e,t,i){"use strict";i.d(t,"a",(function(){return E}));var c=i("ZTXN"),s=i("8lHc"),r=i("C05f"),n=i("TLy2"),a=i("kuMc"),o=i("8j5Y"),l=i("wqq/"),b=i("vAuv"),u=i("EM62"),d=i("XyeG"),h=i("6rcc"),g=i("jOSP"),p=i("sEIs"),m=i("2kYt"),_=i("++8e"),f=i("3TTo"),k=i("109Z"),v=i("s2Ay");function y(e,t){if(1&e&&(u.Qb(0,"li"),u.Qb(1,"a",10),u.Fc(2),u.Pb(),u.Pb()),2&e){const e=t.$implicit,i=u.ac();u.xb(1),u.hc("routerLink",i.url.category(e)),u.xb(1),u.Gc(e.name)}}function P(e,t){if(1&e){const e=u.Rb();u.Qb(0,"button",23),u.Xb("click",(function(){u.wc(e);const i=t.$implicit;return u.ac().setCurrentTab(i)})),u.Fc(1),u.bc(2,"translate"),u.Pb()}if(2&e){const e=t.$implicit,i=u.ac();u.Cb("block-zone__tabs-button--active",e==i.currentTab),u.xb(1),u.Gc(u.cc(2,3,e.name))}}const w=function(){return["features","list-buttons"]};function O(e,t){if(1&e&&(u.Qb(0,"div",28),u.Lb(1,"app-product-card",29),u.Pb()),2&e){const e=u.ac().$implicit;u.xb(1),u.hc("product",e)("exclude",u.lc(2,w))}}function L(e,t){1&e&&u.Dc(0,O,2,3,"ng-template",27)}function Q(e,t){if(1&e&&(u.Qb(0,"div",24),u.Lb(1,"div",25),u.Qb(2,"owl-carousel-o",26),u.Dc(3,L,1,0,void 0,12),u.bc(4,"async"),u.Pb(),u.Pb()),2&e){const e=u.ac();u.Cb("block-zone__carousel--loading",e.loading),u.xb(2),u.hc("options",e.carouselOptions),u.xb(1),u.hc("ngForOf",u.cc(4,4,e.products$))}}let E=(()=>{class e{constructor(e,t,i,s){this.shopApi=e,this.language=t,this.cd=i,this.url=s,this.destroy$=new c.a,this.loading=!0,this.showCarousel=!0,this.children=[],this.tabs=[],this.classBlock=!0,this.classBlockZone=!0}get currentTab(){return this.currentTab$.value}ngOnChanges(e){e.category&&(this.children=this.category.children?this.category.children.slice(0,7):[])}ngOnInit(){this.language.directionChange$.pipe(Object(n.a)(()=>Object(s.a)(250)),Object(a.a)(this.destroy$)).subscribe(()=>{this.initOptions(),this.showCarousel=!1,this.cd.detectChanges(),this.showCarousel=!0}),this.tabs=[{name:"TEXT_TAB_FEATURED",products$:this.shopApi.getFeaturedProducts(this.category.slug,6)},{name:"TEXT_TAB_BESTSELLERS",products$:this.shopApi.getPopularProducts(this.category.slug,6)},{name:"TEXT_TAB_TOP_RATED",products$:this.shopApi.getTopRatedProducts(this.category.slug,6)}],this.currentTab$=new r.a(this.tabs[0]),this.products$=this.currentTab$.pipe(Object(o.a)(()=>this.loading=!0),Object(n.a)(e=>e.products$),Object(o.a)(()=>{this.loading=!1,this.initOptions(),this.showCarousel=!1,this.cd.detectChanges(),this.showCarousel=!0}),Object(l.a)(1))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setCurrentTab(e){this.currentTab$.next(e)}initOptions(){this.carouselOptions={dots:!1,margin:20,loop:!0,items:4,rtl:this.language.isRTL(),responsive:{1020:{items:4,margin:20},630:{items:3,margin:16},410:{items:2,margin:16},0:{items:1}}}}}return e.\u0275fac=function(t){return new(t||e)(u.Kb(d.d),u.Kb(h.a),u.Kb(u.h),u.Kb(g.a))},e.\u0275cmp=u.Eb({type:e,selectors:[["app-block-zone"]],viewQuery:function(e,t){var i;1&e&&u.Lc(b.a,!0),2&e&&u.sc(i=u.Yb())&&(t.carousel=i.first)},hostVars:4,hostBindings:function(e,t){2&e&&u.Cb("block",t.classBlock)("block-zone",t.classBlockZone)},inputs:{image:"image",mobileImage:"mobileImage",category:"category"},features:[u.vb],decls:27,vars:15,consts:[[1,"container"],[1,"block-zone__body"],[1,"block-zone__card","category-card","category-card--layout--overlay"],[1,"category-card__body"],[1,"category-card__overlay-image"],["sizes","(max-width: 575px) 530px, 305px","alt","",3,"srcset","src"],[1,"category-card__overlay-image","category-card__overlay-image--blur"],[1,"category-card__content"],[1,"category-card__info"],[1,"category-card__name"],[3,"routerLink"],[1,"category-card__children"],[4,"ngFor","ngForOf"],[1,"category-card__actions"],[1,"btn","btn-primary","btn-sm",3,"routerLink"],[1,"block-zone__widget"],[1,"block-zone__widget-header"],[1,"block-zone__tabs"],["type","button","class","block-zone__tabs-button",3,"block-zone__tabs-button--active","click",4,"ngFor","ngForOf"],["direction","prev",1,"block-zone__arrow","block-zone__arrow--prev",3,"click"],["direction","next",1,"block-zone__arrow","block-zone__arrow--next",3,"click"],[1,"block-zone__widget-body"],["class","block-zone__carousel",3,"block-zone__carousel--loading",4,"ngIf"],["type","button",1,"block-zone__tabs-button",3,"click"],[1,"block-zone__carousel"],[1,"block-zone__carousel-loader"],["appOwlPreventClick","",3,"options"],["carouselSlide",""],[1,"block-zone__carousel-item"],[3,"product","exclude"]],template:function(e,t){1&e&&(u.Qb(0,"div",0),u.Qb(1,"div",1),u.Qb(2,"div",2),u.Qb(3,"div",3),u.Qb(4,"div",4),u.Lb(5,"img",5),u.Pb(),u.Qb(6,"div",6),u.Lb(7,"img",5),u.Pb(),u.Qb(8,"div",7),u.Qb(9,"div",8),u.Qb(10,"div",9),u.Qb(11,"a",10),u.Fc(12),u.Pb(),u.Pb(),u.Qb(13,"ul",11),u.Dc(14,y,3,2,"li",12),u.Pb(),u.Qb(15,"div",13),u.Qb(16,"a",14),u.Fc(17),u.bc(18,"translate"),u.Pb(),u.Pb(),u.Pb(),u.Pb(),u.Pb(),u.Pb(),u.Qb(19,"div",15),u.Qb(20,"div",16),u.Qb(21,"div",17),u.Dc(22,P,3,5,"button",18),u.Pb(),u.Qb(23,"app-arrow",19),u.Xb("click",(function(){return t.carousel.prev()})),u.Pb(),u.Qb(24,"app-arrow",20),u.Xb("click",(function(){return t.carousel.next()})),u.Pb(),u.Pb(),u.Qb(25,"div",21),u.Dc(26,Q,5,6,"div",22),u.Pb(),u.Pb(),u.Pb(),u.Pb()),2&e&&(u.xb(5),u.kc("srcset","",t.mobileImage," 530w, ",t.image," 305w",u.yc),u.ic("src",t.image,u.yc),u.xb(2),u.kc("srcset","",t.mobileImage," 530w, ",t.image," 305w",u.yc),u.ic("src",t.image,u.yc),u.xb(4),u.hc("routerLink",t.url.category(t.category)),u.xb(1),u.Gc(null==t.category?null:t.category.name),u.xb(2),u.hc("ngForOf",t.children),u.xb(2),u.hc("routerLink",t.url.category(t.category)),u.xb(1),u.Gc(u.cc(18,13,"BUTTON_SHOP_ALL")),u.xb(5),u.hc("ngForOf",t.tabs),u.xb(4),u.hc("ngIf",t.showCarousel))},directives:[p.j,m.s,_.a,m.t,b.a,f.a,b.c,k.a],pipes:[v.e,m.b],styles:[""]}),e})()},ucZ3:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var c=i("IdLP");function s(e,t=!0){return new c.a(i=>{const c=matchMedia(e),s=()=>i.next(c);return t||s(),c.addEventListener?(c.addEventListener("change",s),()=>c.removeEventListener("change",s)):(c.addListener(s),()=>c.removeListener(s))})}},z6wW:function(e,t,i){"use strict";i.d(t,"a",(function(){return k}));var c=i("EM62"),s=i("ucZ3"),r=i("ZTXN"),n=i("xVbo"),a=i("kuMc"),o=i("2kYt"),l=i("sEIs");function b(e,t){1&e&&c.Lb(0,"li",4)}function u(e,t){if(1&e&&(c.Ob(0),c.Qb(1,"span",7),c.Fc(2),c.Pb(),c.Nb()),2&e){const e=c.ac().$implicit;c.xb(2),c.Gc(e.label)}}function d(e,t){if(1&e&&(c.Ob(0),c.Qb(1,"a",8),c.Fc(2),c.Pb(),c.Nb()),2&e){const e=c.ac().$implicit;c.xb(1),c.hc("routerLink",e.url),c.xb(1),c.Gc(e.label)}}function h(e,t){if(1&e&&(c.Qb(0,"li",5),c.Dc(1,u,3,1,"ng-container",6),c.Dc(2,d,3,2,"ng-container",6),c.Pb()),2&e){const e=t.last;c.Cb("breadcrumb__item--first",t.first)("breadcrumb__item--last",e)("breadcrumb__item--parent",!e)("breadcrumb__item--current",e),c.yb("aria-current",e?"page":void 0),c.xb(1),c.hc("ngIf",e),c.xb(1),c.hc("ngIf",!e)}}function g(e,t){1&e&&c.Lb(0,"li",9)}let p=(()=>{class e{constructor(){this.items=[],this.withPageTitle=!1,this.afterHeader=!0,this.classBreadcrumb=!0,this.attrAriaLabel="breadcrumb"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Eb({type:e,selectors:[["app-breadcrumb"]],hostVars:3,hostBindings:function(e,t){2&e&&(c.yb("aria-label",t.attrAriaLabel),c.Cb("breadcrumb",t.classBreadcrumb))},inputs:{items:"items",withPageTitle:"withPageTitle",afterHeader:"afterHeader"},decls:4,vars:3,consts:[[1,"breadcrumb__list"],["class","breadcrumb__spaceship-safe-area","role","presentation",4,"ngIf"],["class","breadcrumb__item",3,"breadcrumb__item--first","breadcrumb__item--last","breadcrumb__item--parent","breadcrumb__item--current",4,"ngFor","ngForOf"],["class","breadcrumb__title-safe-area","role","presentation",4,"ngIf"],["role","presentation",1,"breadcrumb__spaceship-safe-area"],[1,"breadcrumb__item"],[4,"ngIf"],[1,"breadcrumb__item-link"],[1,"breadcrumb__item-link",3,"routerLink"],["role","presentation",1,"breadcrumb__title-safe-area"]],template:function(e,t){1&e&&(c.Qb(0,"ol",0),c.Dc(1,b,1,0,"li",1),c.Dc(2,h,3,11,"li",2),c.Dc(3,g,1,0,"li",3),c.Pb()),2&e&&(c.xb(1),c.hc("ngIf",t.afterHeader),c.xb(1),c.hc("ngForOf",t.items),c.xb(1),c.hc("ngIf",t.withPageTitle))},directives:[o.t,o.s,l.j],styles:[""]}),e})();const m=["titleElement"];function _(e,t){if(1&e&&c.Lb(0,"app-breadcrumb",4),2&e){const e=c.ac();c.hc("items",e.breadcrumb)("withPageTitle",!!e.pageTitle)("afterHeader",e.afterHeader)}}function f(e,t){if(1&e&&(c.Qb(0,"h1",5,6),c.Fc(2),c.Pb()),2&e){const e=c.ac();c.xb(2),c.Gc(e.pageTitle)}}let k=(()=>{class e{constructor(e,t,i){this.platformId=e,this.zone=t,this.elementRef=i,this.destroy$=new r.a,this.breadcrumb=[],this.afterHeader=!0,this.classBlockHeader=!0,this.reCalcTitleWidth=!1}get classBlockHeaderHasTitle(){return!!this.pageTitle}get classBlockHeaderHasBreadcrumb(){return this.breadcrumb.length>0}get titleElement(){var e;return null===(e=this.titleElementRef)||void 0===e?void 0:e.nativeElement}get element(){return this.elementRef.nativeElement}ngOnChanges(e){e.pageTitle&&!e.pageTitle.isFirstChange()&&(this.reCalcTitleWidth=!0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngAfterViewInit(){Object(o.I)(this.platformId)&&this.zone.runOutsideAngular(()=>{Object(s.a)("(min-width: 1200px)",!1).pipe(Object(n.a)(e=>e.matches),Object(a.a)(this.destroy$)).subscribe(()=>this.calcTitleWidth())})}ngAfterViewChecked(){this.reCalcTitleWidth&&(this.reCalcTitleWidth=!1,this.calcTitleWidth())}calcTitleWidth(){if(!this.element||!this.titleElement)return;const e=this.titleElement.getBoundingClientRect().width;this.element.style.setProperty("--block-header-title-width",e+"px")}}return e.\u0275fac=function(t){return new(t||e)(c.Kb(c.B),c.Kb(c.z),c.Kb(c.l))},e.\u0275cmp=c.Eb({type:e,selectors:[["app-block-header"]],viewQuery:function(e,t){var i;1&e&&c.Lc(m,!0),2&e&&c.sc(i=c.Yb())&&(t.titleElementRef=i.first)},hostVars:6,hostBindings:function(e,t){2&e&&c.Cb("block-header",t.classBlockHeader)("block-header--has-title",t.classBlockHeaderHasTitle)("block-header--has-breadcrumb",t.classBlockHeaderHasBreadcrumb)},inputs:{pageTitle:"pageTitle",breadcrumb:"breadcrumb",afterHeader:"afterHeader"},features:[c.vb],decls:4,vars:2,consts:[[1,"container"],[1,"block-header__body"],["class","block-header__breadcrumb",3,"items","withPageTitle","afterHeader",4,"ngIf"],["class","block-header__title",4,"ngIf"],[1,"block-header__breadcrumb",3,"items","withPageTitle","afterHeader"],[1,"block-header__title"],["titleElement",""]],template:function(e,t){1&e&&(c.Qb(0,"div",0),c.Qb(1,"div",1),c.Dc(2,_,1,3,"app-breadcrumb",2),c.Dc(3,f,3,1,"h1",3),c.Pb(),c.Pb()),2&e&&(c.xb(2),c.hc("ngIf",t.breadcrumb.length),c.xb(1),c.hc("ngIf",t.pageTitle))},directives:[o.t,p],styles:[""]}),e})()}}]);