PageSourceSearch

https://kubota.com.au/248.04b51cc80838850e.js

js kubota.com.au collected 2026-10-04 14:42:43 UTC 129,669 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkkubota_au=self.webpackChunkkubota_au||[]).push([[248],{3248:(J,R,c)=>{c.r(R),c.d(R,{ProductsComponent:()=>Te,ProductsService:()=>U,productsRoutes:()=>Vi});var e=c(4438),u=c(177),v=c(4412),M=c(3294),m=c(9417),O=c(4710),j=c(4572);const F=["Industry","Product Category","Series","Product"],L=["Industry","Product Category","Product","Model"];var k=c(2798),E=c(2102),C=c(8498),Q=c(3744),W=c(94),K=c(7329),H=c(6600);function ie(s,a){1&s&&(e.j41(0,"mat-option",6),e.EFF(1,"All"),e.k0s())}function ne(s,a){if(1&s&&(e.j41(0,"mat-option",7),e.EFF(1),e.nI1(2,"safeAmpersand"),e.k0s()),2&s){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.SpI(" ",e.bMT(2,2,t.name)," ")}}function se(s,a){if(1&s){const t=e.RV6();e.j41(0,"div",3)(1,"mat-form-field",4)(2,"mat-label"),e.EFF(3),e.k0s(),e.j41(4,"mat-select",5),e.bIt("selectionChange",function(n){const o=e.eBV(t).$index,l=e.XpG(2);return e.Njj(l.onSelect(n,o))}),e.DNE(5,ie,2,0,"mat-option",6),e.Z7z(6,ne,3,4,"mat-option",7,e.fX1),e.k0s()()()}if(2&s){const t=a.$index,i=e.XpG(2);e.Y8G("formGroupName",t),e.R7$(3),e.JRh(i.filterLabels[t]),e.R7$(2),e.vxM(0!==t?5:-1),e.R7$(),e.Dyx(i.categoryOptions[t])}}function oe(s,a){if(1&s&&(e.j41(0,"form",0)(1,"div",2),e.Z7z(2,se,8,3,"div",3,e.fX1),e.k0s()()),2&s){const t=e.XpG();e.Y8G("formGroup",t.filterForm),e.R7$(2),e.Dyx(t.categoryFilterForms.controls)}}function ae(s,a){1&s&&(e.j41(0,"div",1),e.nrm(1,"kc-skeleton-image",8)(2,"kc-skeleton-image",8),e.k0s()),2&s&&(e.R7$(),e.Y8G("height","55px"),e.R7$(),e.Y8G("height","55px"))}let w=(()=>{class s{constructor(){this.productsService=(0,e.WQX)(U),this.router=(0,e.WQX)(O.Ix),this.fb=(0,e.WQX)(m.ze),this.filterLabels=[]}ngOnInit(){this.sub=(0,j.z)([this.productsService.getAllCategories(),this.productsService.selectedCategoryIds$]).subscribe(([t,i])=>{this.initForm(),this.categoryOptions=[],this.selectedCategories=i??[],this.setFilters(t)})}initForm(){this.filterForm=this.fb.group({categories:this.fb.array([])})}setFilters(t){this.setFilterLabels(),this.categoryOptions[0]=t,this.selectedCategories.forEach((i,n)=>{this.addCategoryFilter(i),this.categoryOptions[n+1]=this.getCategoryOptions(n,i)}),this.categoryOptions[this.categoryOptions.length-1]&&this.addCategoryFilter("all")}get categoryFilterForms(){return this.filterForm.get("categories")}addCategoryFilter(t){const i=this.fb.group({category:t});this.categoryFilterForms.push(i)}onSelect(t,i){const n=this.selectedCategories.slice(0,i);"all"!==t.value&&n.push(t.value),n.unshift("products"),this.router.navigate(n,{queryParams:null})}getCategoryOptions(t,i){const n=this.categoryOptions[t].find(o=>o.id===i);return this.isValidCategory(n)||this.router.navigate(["404"]),n.subCategories?this.filterByWebsite(n.subCategories,K.Hk.KUBOTA):null}filterByWebsite(t,i){const n=i===K.Hk.KUBOTA?K.N$:[i];return t.filter(o=>n.includes(o.brand))}isValidCategory(t){return!!t}setFilterLabels(){const t=this.selectedCategories[1];this.filterLabels=F,["power-packs","specialist-turf-equipment","attachments","garden-power-tools","implements","implements-lifestyle"].includes(t)&&(this.filterLabels=L)}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["kc-category-filters"]],standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[3,"formGroup"],["fxLayout","row","fxLayoutGap.gt-xs","16px"],["formArrayName","categories","fxLayout.lt-lg","column","fxLayout.gt-md","row","fxLayoutAlign.gt-md","start center","fxLayoutGap.lt-lg","0","fxLayoutGap.gt-md","16px"],[3,"formGroupName"],["appearance","fill",1,"dark-mode","product-header-form-field"],["formControlName","category",3,"selectionChange"],["value","all"],[3,"value"],[1,"filter-skeleton",3,"height"]],template:function(i,n){1&i&&e.DNE(0,oe,4,1,"form",0)(1,ae,3,2,"div",1),2&i&&e.vxM(n.selectedCategories?0:1)},dependencies:[u.MD,m.X1,m.qT,m.BC,m.cb,m.j4,m.JD,m.$R,m.v8,E.RG,E.rl,E.nJ,k.Ve,k.VO,H.wT,Q.T,C.w2,C.DJ,C.BO,C.sA,W.G],styles:["header[_ngcontent-%COMP%]{position:relative}.loading-bg[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover;background-image:url(/assets/images/defaults/default-category-bg-tiny.jpg)}.catalogue-btn[_ngcontent-%COMP%]{margin-bottom:16px}.bg[_ngcontent-%COMP%], #filters[_ngcontent-%COMP%], #category-info[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover}#filters[_ngcontent-%COMP%]{position:relative;z-index:2;overflow:hidden;color:#fff;padding-top:16px}@media screen and (min-width: 1280px){#filters[_ngcontent-%COMP%]{padding-top:32px}}#filters[_ngcontent-%COMP%]   .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:16px}#category-info[_ngcontent-%COMP%]{margin-top:16px}.bg-image[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:1}.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:100%}@media screen and (min-width: 600px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:178px}}@media screen and (min-width: 635px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:190px}}@media screen and (min-width: 700px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:initial}}
1mat-option[_ngcontent-%COMP%]{font-size:14px}.sub-heading[_ngcontent-%COMP%]{margin-bottom:6px}.filter-panel[_ngcontent-%COMP%]{margin-top:8px}.placeholder[_ngcontent-%COMP%]{height:71px;width:0}[_nghost-%COMP%]     .mat-mdc-text-field-wrapper{background-color:#fff3!important}.mdc-text-field--filled[_ngcontent-%COMP%]{background-color:none}  .mat-mdc-select-value-text{font-size:14px}#brand-logo[_ngcontent-%COMP%]{display:none;position:absolute;right:40px;top:calc(50% - 40px);height:50px;width:200px;z-index:3}@media screen and (min-width: 1280px){#brand-logo[_ngcontent-%COMP%]{display:block}}.filter-skeleton[_ngcontent-%COMP%]{display:block;width:212px;margin-bottom:16px}"]})}}return s})();var T=c(9454),f=c(5342),x=c(5351);function _(s,a){if(1&s){const t=e.RV6();e.j41(0,"mat-form-field",0)(1,"mat-label"),e.EFF(2,"Application"),e.k0s(),e.j41(3,"mat-select",1),e.mxI("valueChange",function(n){e.eBV(t);const o=e.XpG(2);return e.DH7(o[0].id,n)||(o[0].id=n),e.Njj(n)}),e.j41(4,"mat-option",2),e.EFF(5),e.k0s()()()}if(2&s){const t=e.XpG(2);e.R7$(3),e.R50("value",t[0].id),e.R7$(),e.Y8G("value",t[0].id),e.R7$(),e.SpI(" ",t[0].name," ")}}function D(s,a){if(1&s&&(e.j41(0,"mat-option",2),e.EFF(1),e.k0s()),2&s){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.SpI(" ",t.name," ")}}function A(s,a){if(1&s){const t=e.RV6();e.j41(0,"mat-form-field",0)(1,"mat-label"),e.EFF(2,"Application"),e.k0s(),e.j41(3,"mat-select",3),e.bIt("selectionChange",function(n){e.eBV(t);const o=e.XpG(3);return e.Njj(o.onSelect(n))}),e.mxI("valueChange",function(n){e.eBV(t);const o=e.XpG(3);return e.DH7(o.selectedApplicationId,n)||(o.selectedApplicationId=n),e.Njj(n)}),e.j41(4,"mat-option",4),e.EFF(5,"All"),e.k0s(),e.Z7z(6,D,2,2,"mat-option",2,e.fX1),e.k0s()()}if(2&s){const t=e.XpG(2),i=e.XpG();e.R7$(3),e.R50("value",i.selectedApplicationId),e.R7$(3),e.Dyx(t)}}function B(s,a){if(1&s&&e.DNE(0,_,6,3,"mat-form-field",0)(1,A,8,1,"mat-form-field",0),2&s){const t=e.XpG();e.vxM(1===t.length?0:-1),e.R7$(),e.vxM(t.length>1?1:-1)}}function Ve(s,a){1&s&&e.DNE(0,B,2,2),2&s&&e.vxM(a.length>0?0:-1)}let Fe=(()=>{class s{constructor(){this.productsService=(0,e.WQX)(U),this.router=(0,e.WQX)(O.Ix),this.route=(0,e.WQX)(O.nX)}ngOnInit(){this.sub=this.productsService.selectedApplicationId$.subscribe(t=>this.selectedApplicationId=t||"all")}onSelect(t){this.router.navigate([],{relativeTo:this.route,queryParams:{application:"all"==t.value?null:t.value},queryParamsHandling:"merge"})}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["kc-application-filters"]],standalone:!0,features:[e.aNF],decls:2,vars:3,consts:[["appearance","fill",1,"dark-mode","product-header-form-field"],[3,"valueChange","value"],[3,"value"],[3,"selectionChange","valueChange","value"],["value","all"]],template:function(i,n){if(1&i&&(e.DNE(0,Ve,1,1),e.nI1(1,"async")),2&i){let o;e.vxM((o=e.bMT(1,1,n.productsService.selectableApplications$))?0:-1,o)}},dependencies:[u.MD,u.Jj,E.RG,E.rl,E.nJ,k.Ve,k.VO,H.wT,H.Sy],styles:["header[_ngcontent-%COMP%]{position:relative}.loading-bg[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover;background-image:url(/assets/images/defaults/default-category-bg-tiny.jpg)}.catalogue-btn[_ngcontent-%COMP%]{margin-bottom:16px}.bg[_ngcontent-%COMP%], #filters[_ngcontent-%COMP%], #category-info[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover}#filters[_ngcontent-%COMP%]{position:relative;z-index:2;overflow:hidden;color:#fff;padding-top:16px}@media screen and (min-width: 1280px){#filters[_ngcontent-%COMP%]{padding-top:32px}}#filters[_ngcontent-%COMP%]   .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:16px}#category-info[_ngcontent-%COMP%]{margin-top:16px}.bg-image[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:1}.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:100%}@media screen and (min-width: 600px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:178px}}@media screen and (min-width: 635px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:190px}}@media screen and (min-width: 700px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:initial}}
1mat-option[_ngcontent-%COMP%]{font-size:14px}.sub-heading[_ngcontent-%COMP%]{margin-bottom:6px}.filter-panel[_ngcontent-%COMP%]{margin-top:8px}.placeholder[_ngcontent-%COMP%]{height:71px;width:0}[_nghost-%COMP%]     .mat-mdc-text-field-wrapper{background-color:#fff3!important}.mdc-text-field--filled[_ngcontent-%COMP%]{background-color:none}  .mat-mdc-select-value-text{font-size:14px}#brand-logo[_ngcontent-%COMP%]{display:none;position:absolute;right:40px;top:calc(50% - 40px);height:50px;width:200px;z-index:3}@media screen and (min-width: 1280px){#brand-logo[_ngcontent-%COMP%]{display:block}}.filter-skeleton[_ngcontent-%COMP%]{display:block;width:212px;margin-bottom:16px}"]})}}return s})();var pe=c(4035);function He(s,a){if(1&s&&(e.j41(0,"mat-option",2),e.EFF(1),e.k0s()),2&s){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.SpI(" ",t.name," ")}}function Re(s,a){if(1&s&&e.DNE(0,He,2,2,"mat-option",3),2&s){const t=e.XpG();e.Y8G("ngForOf",t)}}function De(s,a){if(1&s&&(e.j41(0,"mat-option",2),e.EFF(1),e.k0s()),2&s){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.SpI(" ",t.name," ")}}function Be(s,a){if(1&s&&(e.j41(0,"mat-option",4),e.EFF(1,"All"),e.k0s(),e.DNE(2,De,2,2,"mat-option",3)),2&s){const t=e.XpG();e.R7$(2),e.Y8G("ngForOf",t)}}function Ie(s,a){if(1&s){const t=e.RV6();e.j41(0,"mat-form-field",0)(1,"mat-label"),e.EFF(2,"Range"),e.k0s(),e.j41(3,"mat-select",1),e.bIt("selectionChange",function(n){e.eBV(t);const o=e.XpG();return e.Njj(o.onSelect(n))}),e.mxI("valueChange",function(n){e.eBV(t);const o=e.XpG();return e.DH7(o.selectedRangeId,n)||(o.selectedRangeId=n),e.Njj(n)}),e.DNE(4,Re,1,1,"mat-option",2)(5,Be,3,1),e.k0s()()}if(2&s){const t=e.XpG();e.R7$(3),e.R50("value",t.selectedRangeId),e.R7$(),e.vxM(1==a.length?4:5)}}let Ne=(()=>{class s{constructor(){this.productsService=(0,e.WQX)(U),this.router=(0,e.WQX)(O.Ix),this.route=(0,e.WQX)(O.nX)}ngOnInit(){this.sub=this.productsService.selectedRangeId$.subscribe(t=>this.selectedRangeId=t||"all"),1===this.productsService.selectableRanges$.value?.length&&(this.selectedRangeId=this.productsService.selectableRanges$.value[0].id)}onSelect(t){this.router.navigate([],{relativeTo:this.route,queryParams:{range:"all"==t.value?null:t.value},queryParamsHandling:"merge"})}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["kc-range-filter"]],standalone:!0,features:[e.aNF],decls:2,vars:3,consts:[["appearance","fill",1,"dark-mode","product-header-form-field"],["panelClass","product-header-select",3,"selectionChange","valueChange","value"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["value","all"]],template:function(i,n){if(1&i&&(e.DNE(0,Ie,6,2,"mat-form-field",0),e.nI1(1,"async")),2&i){let o;e.vxM((o=e.bMT(1,1,n.productsService.selectableRanges$))?0:-1,o)}},dependencies:[E.RG,E.rl,E.nJ,k.Ve,k.VO,H.wT,H.Sy,u.pM,u.Jj],styles:["header[_ngcontent-%COMP%]{position:relative}.loading-bg[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover;background-image:url(/assets/images/defaults/default-category-bg-tiny.jpg)}.catalogue-btn[_ngcontent-%COMP%]{margin-bottom:16px}.bg[_ngcontent-%COMP%], #filters[_ngcontent-%COMP%], #category-info[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover}#filters[_ngcontent-%COMP%]{position:relative;z-index:2;overflow:hidden;color:#fff;padding-top:16px}@media screen and (min-width: 1280px){#filters[_ngcontent-%COMP%]{padding-top:32px}}#filters[_ngcontent-%COMP%]   .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:16px}#category-info[_ngcontent-%COMP%]{margin-top:16px}.bg-image[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:1}.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:100%}@media screen and (min-width: 600px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:178px}}@media screen and (min-width: 635px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:190px}}@media screen and (min-width: 700px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:initial}}
1mat-option[_ngcontent-%COMP%]{font-size:14px}.sub-heading[_ngcontent-%COMP%]{margin-bottom:6px}.filter-panel[_ngcontent-%COMP%]{margin-top:8px}.placeholder[_ngcontent-%COMP%]{height:71px;width:0}[_nghost-%COMP%]     .mat-mdc-text-field-wrapper{background-color:#fff3!important}.mdc-text-field--filled[_ngcontent-%COMP%]{background-color:none}  .mat-mdc-select-value-text{font-size:14px}#brand-logo[_ngcontent-%COMP%]{display:none;position:absolute;right:40px;top:calc(50% - 40px);height:50px;width:200px;z-index:3}@media screen and (min-width: 1280px){#brand-logo[_ngcontent-%COMP%]{display:block}}.filter-skeleton[_ngcontent-%COMP%]{display:block;width:212px;margin-bottom:16px}"]})}}return s})();var Z=c(8834),Ae=c(345);let Ue=(()=>{class s{constructor(t){this.domSanitizer=t}transform(t){return""!=t&&t.startsWith("https://online.flipbuilder.com/HindsightDesign")?this.domSanitizer.bypassSecurityTrustResourceUrl(t):t}static{this.\u0275fac=function(i){return new(i||s)(e.rXU(Ae.up,16))}}static{this.\u0275pipe=e.EJ8({name:"safeCatalogueUrl",type:s,pure:!0,standalone:!0})}}return s})(),Ge=(()=>{class s{constructor(t,i){this.dialogRef=t,this.data=i}onNoClick(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||s)(e.rXU(x.CP),e.rXU(x.Vh))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["kc-online-catalogue"]],standalone:!0,features:[e.aNF],decls:6,vars:3,consts:[["mat-dialog-content",""],["frameborder","0","seamless","seamless","scrolling","no","allotransfarancy","true",3,"src"],["mat-dialog-actions",""],["mat-button","",3,"click"]],template:function(i,n){1&i&&(e.j41(0,"div",0),e.nrm(1,"iframe",1),e.nI1(2,"safeCatalogueUrl"),e.k0s(),e.j41(3,"div",2)(4,"button",3),e.bIt("click",function(){return n.onNoClick()}),e.EFF(5,"Close"),e.k0s()()),2&i&&(e.R7$(),e.Y8G("src",e.bMT(2,1,n.data.link),e.f$h))},dependencies:[u.MD,Z.Hl,Z.$z,Ue],styles:["iframe[_ngcontent-%COMP%]{width:100%;height:99%;background-color:#313131}.mat-mdc-dialog-content[_ngcontent-%COMP%]{height:calc(100% - 52px);display:block;max-height:95vh}"]})}}return s})();var q=c(1413),$e=c(3236),je=c(9974),ue=c(4360),Xe=c(8750),Ye=c(1807);function ge(s,a=$e.E,t){const i=(0,Ye.O)(s,a);return function ze(s,a){return(0,je.N)((t,i)=>{const{leading:n=!0,trailing:o=!1}=a??{};let l=!1,d=null,p=null,b=!1;const g=()=>{p?.unsubscribe(),p=null,o&&(N(),b&&i.complete())},y=()=>{p=null,b&&i.complete()},S=X=>p=(0,Xe.Tg)(s(X)).subscribe((0,ue._)(i,g,y)),N=()=>{if(l){l=!1;const X=d;d=null,i.next(X),!b&&S(X)}};t.subscribe((0,ue._)(i,X=>{l=!0,d=X,(!p||p.closed)&&(n?N():S(X))},()=>{b=!0,(!(o&&l&&p)||p.closed)&&i.complete()}))})}(()=>i,t)}var me=c(8141),We=c(5964),V=typeof window<"u"?window:{screen:{},navigator:{}},z=(V.matchMedia||function(){return{matches:!1}}).bind(V),fe=!1,ve=function(){};V.addEventListener&&V.addEventListener("p",ve,{get passive(){return fe=!0}}),V.removeEventListener&&V.removeEventListener("p",ve,!1);var be=fe,le="ontouchstart"in V,_e=(le||"TouchEvent"in V&&z("(any-pointer: coarse)"),V.navigator.userAgent||"");z("(pointer: coarse)").matches&&/iPad|Macintosh/.test(_e)&&Math.min(V.screen.width||0,V.screen.height||0);(z("(pointer: coarse)").matches||!z("(pointer: fine)").matches&&le)&&/Windows.*Firefox/.test(_e),z("(any-pointer: fine)").matches||z("(any-hover: hover)");const et=(s,a,t)=>({tooltip:s,placement:a,content:t});function tt(s,a){}function it(s,a){1&s&&e.DNE(0,tt,0,0,"ng-template")}function nt(s,a){if(1&s&&(e.qex(0),e.DNE(1,it,1,0,null,1),e.bVm()),2&s){const t=e.XpG();e.R7$(),e.Y8G("ngTemplateOutlet",t.template)("ngTemplateOutletContext",e.sMw(2,et,t.tooltip,t.placement,t.content))}}function st(s,a){if(1&s&&(e.qex(0),e.j41(1,"div",2),e.EFF(2),e.k0s(),e.bVm()),2&s){const t=e.XpG();e.R7$(),e.BMQ("title",t.tooltip)("data-tooltip-placement",t.placement),e.R7$(),e.SpI(" ",t.content," ")}}const ot=["tooltipTemplate"],at=["leftOuterSelectionBar"],lt=["rightOuterSelectionBar"],rt=["fullBar"],ct=["selectionBar"],dt=["minHandle"],ht=["maxHandle"],pt=["floorLabel"],ut=["ceilLabel"],gt=["minHandleLabel"],mt=["maxHandleLabel"],ft=["combinedLabel"],vt=["ticksElement"],bt=s=>({"ngx-slider-selected":s});function xt(s,a){if(1&s&&e.nrm(0,"ngx-slider-tooltip-wrapper",32),2&s){const t=e.XpG().$implicit,i=e.XpG();e.Y8G("template",i.tooltipTemplate)("tooltip",t.valueTooltip)("placement",t.valueTooltipPlacement)("content",t.value)}}function _t(s,a){if(1&s&&e.nrm(0,"span",33),2&s){const t=e.XpG().$implicit;e.Y8G("innerText",t.legend)}}function Ot(s,a){if(1&s&&e.nrm(0,"span",34),2&s){const t=e.XpG().$implicit;e.Y8G("innerHTML",t.legend,e.npT)}}function Ct(s,a){if(1&s&&(e.j41(0,"span",27),e.nrm(1,"ngx-slider-tooltip-wrapper",28),e.DNE(2,xt,1,4,"ngx-slider-tooltip-wrapper",29)(3,_t,1,1,"span",30)(4,Ot,1,1,"span",31),e.k0s()),2&s){const t=a.$implicit,i=e.XpG();e.Y8G("ngClass",e.eq3(8,bt,t.selected))("ngStyle",t.style),e.R7$(),e.Y8G("template",i.tooltipTemplate)("tooltip",t.tooltip)("placement",t.tooltipPlacement),e.R7$(),e.Y8G("ngIf",null!=t.value),e.R7$(),e.Y8G("ngIf",null!=t.legend&&!1===i.allowUnsafeHtmlInSlider),e.R7$(),e.Y8G("ngIf",null!=t.legend&&(null==i.allowUnsafeHtmlInSlider||i.allowUnsafeHtmlInSlider))}}
1var I=function(s){return s[s.Low=0]="Low",s[s.High=1]="High",s[s.Floor=2]="Floor",s[s.Ceil=3]="Ceil",s[s.TickValue=4]="TickValue",s}(I||{});class ee{floor=0;ceil=null;step=1;minRange=null;maxRange=null;pushRange=!1;minLimit=null;maxLimit=null;translate=null;combineLabels=null;getLegend=null;getStepLegend=null;stepsArray=null;bindIndexForStepsArray=!1;draggableRange=!1;draggableRangeOnly=!1;showSelectionBar=!1;showSelectionBarEnd=!1;showSelectionBarFromValue=null;showOuterSelectionBars=!1;hidePointerLabels=!1;hideLimitLabels=!1;autoHideLimitLabels=!0;readOnly=!1;disabled=!1;showTicks=!1;showTicksValues=!1;tickStep=null;tickValueStep=null;ticksArray=null;ticksTooltip=null;ticksValuesTooltip=null;vertical=!1;getSelectionBarColor=null;getTickColor=null;getPointerColor=null;keyboardSupport=!0;scale=1;rotate=0;enforceStep=!0;enforceRange=!0;enforceStepsArray=!0;noSwitching=!1;onlyBindHandles=!1;rightToLeft=!1;reversedControls=!1;boundPointerLabels=!0;logScale=!1;customValueToPosition=null;customPositionToValue=null;precisionLimit=12;selectionBarGradient=null;ariaLabel="ngx-slider";ariaLabelledBy=null;ariaLabelHigh="ngx-slider-max";ariaLabelledByHigh=null;handleDimension=null;barDimension=null;animate=!0;animateOnMove=!1}const we=new e.nKC("AllowUnsafeHtmlInSlider");var h=function(s){return s[s.Min=0]="Min",s[s.Max=1]="Max",s}(h||{});class wt{value;highValue;pointerType}class r{static isNullOrUndefined(a){return null==a}static areArraysEqual(a,t){if(a.length!==t.length)return!1;for(let i=0;i<a.length;++i)if(a[i]!==t[i])return!1;return!0}static linearValueToPosition(a,t,i){return(a-t)/(i-t)}static logValueToPosition(a,t,i){return((a=Math.log(a))-(t=Math.log(t)))/((i=Math.log(i))-t)}static linearPositionToValue(a,t,i){return a*(i-t)+t}static logPositionToValue(a,t,i){return t=Math.log(t),i=Math.log(i),Math.exp(a*(i-t)+t)}static findStepIndex(a,t){const i=t.map(o=>Math.abs(a-o.value));let n=0;for(let o=0;o<t.length;o++)i[o]!==i[n]&&i[o]<i[n]&&(n=o);return n}}class G{static isTouchEvent(a){return void 0!==window.TouchEvent?a instanceof TouchEvent:void 0!==a.touches}static isResizeObserverAvailable(){return void 0!==window.ResizeObserver}}class P{static roundToPrecisionLimit(a,t){return+a.toPrecision(t)}static isModuloWithinPrecisionLimit(a,t,i){const n=Math.pow(10,-i);return Math.abs(a%t)<=n||Math.abs(Math.abs(a%t)-t)<=n}static clampToRange(a,t,i){return Math.min(Math.max(a,t),i)}}class Me{eventName=null;events=null;eventsSubscription=null;teardownCallback=null}class Pe{renderer;constructor(a){this.renderer=a}attachPassiveEventListener(a,t,i,n){if(!0!==be)return this.attachEventListener(a,t,i,n);const o=new Me;o.eventName=t,o.events=new q.B;const l=d=>{o.events.next(d)};return a.addEventListener(t,l,{passive:!0,capture:!1}),o.teardownCallback=()=>{a.removeEventListener(t,l,{passive:!0,capture:!1})},o.eventsSubscription=o.events.pipe(r.isNullOrUndefined(n)?(0,me.M)(()=>{}):ge(n,void 0,{leading:!0,trailing:!0})).subscribe(d=>{i(d)}),o}detachEventListener(a){r.isNullOrUndefined(a.eventsSubscription)||(a.eventsSubscription.unsubscribe(),a.eventsSubscription=null),r.isNullOrUndefined(a.events)||(a.events.complete(),a.events=null),r.isNullOrUndefined(a.teardownCallback)||(a.teardownCallback(),a.teardownCallback=null)}attachEventListener(a,t,i,n){const o=new Me;return o.eventName=t,o.events=new q.B,o.teardownCallback=this.renderer.listen(a,t,d=>{o.events.next(d)}),o.eventsSubscription=o.events.pipe(r.isNullOrUndefined(n)?(0,me.M)(()=>{}):ge(n,void 0,{leading:!0,trailing:!0})).subscribe(d=>{i(d)}),o}}let $=(()=>{class s{elemRef;renderer;changeDetectionRef;_position=0;get position(){return this._position}_dimension=0;get dimension(){return this._dimension}_alwaysHide=!1;get alwaysHide(){return this._alwaysHide}_vertical=!1;get vertical(){return this._vertical}_scale=1;get scale(){return this._scale}_rotate=0;get rotate(){return this._rotate}opacity=1;visibility="visible";left="";bottom="";height="";width="";transform="";eventListenerHelper;eventListeners=[];constructor(t,i,n){this.elemRef=t,this.renderer=i,this.changeDetectionRef=n,this.eventListenerHelper=new Pe(this.renderer)}setAlwaysHide(t){this._alwaysHide=t,this.visibility=t?"hidden":"visible"}hide(){this.opacity=0}show(){this.alwaysHide||(this.opacity=1)}isVisible(){return!this.alwaysHide&&0!==this.opacity}setVertical(t){this._vertical=t,this._vertical?(this.left="",this.width=""):(this.bottom="",this.height="")}setScale(t){this._scale=t}setRotate(t){this._rotate=t,this.transform="rotate("+t+"deg)"}getRotate(){return this._rotate}setPosition(t){this._position!==t&&!this.isRefDestroyed()&&this.changeDetectionRef.markForCheck(),this._position=t,this._vertical?this.bottom=Math.round(t)+"px":this.left=Math.round(t)+"px"}calculateDimension(){const t=this.getBoundingClientRect();this._dimension=this.vertical?(t.bottom-t.top)*this.scale:(t.right-t.left)*this.scale}setDimension(t){this._dimension!==t&&!this.isRefDestroyed()&&this.changeDetectionRef.markForCheck(),this._dimension=t,this._vertical?this.height=Math.round(t)+"px":this.width=Math.round(t)+"px"}getBoundingClientRect(){return this.elemRef.nativeElement.getBoundingClientRect()}on(t,i,n){const o=this.eventListenerHelper.attachEventListener(this.elemRef.nativeElement,t,i,n);this.eventListeners.push(o)}onPassive(t,i,n){const o=this.eventListenerHelper.attachPassiveEventListener(this.elemRef.nativeElement,t,i,n);this.eventListeners.push(o)}off(t){let i,n;r.isNullOrUndefined(t)?(i=[],n=this.eventListeners):(i=this.eventListeners.filter(o=>o.eventName!==t),n=this.eventListeners.filter(o=>o.eventName===t));for(const o of n)this.eventListenerHelper.detachEventListener(o);this.eventListeners=i}isRefDestroyed(){return r.isNullOrUndefined(this.changeDetectionRef)||this.changeDetectionRef.destroyed}static \u0275fac=function(i){return new(i||s)(e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.gRc))};static \u0275dir=e.FsC({type:s,selectors:[["","ngxSliderElement",""]],hostVars:14,hostBindings:function(i,n){2&i&&e.xc7("opacity",n.opacity)("visibility",n.visibility)("left",n.left)("bottom",n.bottom)("height",n.height)("width",n.width)("transform",n.transform)}})}return s})(),re=(()=>{class s extends ${active=!1;role="";tabindex="";ariaOrientation="";ariaLabel="";ariaLabelledBy="";ariaValueNow="";ariaValueText="";ariaValueMin="";ariaValueMax="";focus(){this.elemRef.nativeElement.focus()}focusIfNeeded(){document.activeElement!==this.elemRef.nativeElement&&this.elemRef.nativeElement.focus()}constructor(t,i,n){super(t,i,n)}static \u0275fac=function(i){return new(i||s)(e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.gRc))};static \u0275dir=e.FsC({type:s,selectors:[["","ngxSliderHandle",""]],hostVars:11,hostBindings:function(i,n){2&i&&(e.BMQ("role",n.role)("tabindex",n.tabindex)("aria-orientation",n.ariaOrientation)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy)("aria-valuenow",n.ariaValueNow)("aria-valuetext",n.ariaValueText)("aria-valuemin",n.ariaValueMin)("aria-valuemax",n.ariaValueMax),e.AVh("ngx-slider-active",n.active))},features:[e.Vt3]})}return s})(),Y=(()=>{class s extends ${allowUnsafeHtmlInSlider;_value=null;get value(){return this._value}constructor(t,i,n,o){super(t,i,n),this.allowUnsafeHtmlInSlider=o}setValue(t){let i=!1;!this.alwaysHide&&(r.isNullOrUndefined(this.value)||this.value.length!==t.length||this.value.length>0&&0===this.dimension)&&(i=!0),this._value=t,!1===this.allowUnsafeHtmlInSlider?this.elemRef.nativeElement.innerText=t:this.elemRef.nativeElement.innerHTML=t,i&&this.calculateDimension()}static \u0275fac=function(i){return new(i||s)(e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.gRc),e.rXU(we,8))};static \u0275dir=e.FsC({type:s,selectors:[["","ngxSliderLabel",""]],features:[e.Vt3]})}return s})(),Mt=(()=>{class s{template;tooltip;placement;content;static \u0275fac=function(i){return new(i||s)};static \u0275cmp=e.VBU({type:s,selectors:[["ngx-slider-tooltip-wrapper"]],inputs:{template:"template",tooltip:"tooltip",placement:"placement",content:"content"},decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ngx-slider-inner-tooltip"]],template:function(i,n){1&i&&e.DNE(0,nt,2,6,"ng-container",0)(1,st,3,3,"ng-container",0),2&i&&(e.Y8G("ngIf",n.template),e.R7$(),e.Y8G("ngIf",!n.template))},dependencies:[u.bT,u.T3],styles:[".ngx-slider-inner-tooltip[_ngcontent-%COMP%]{height:100%}"]})}return s})();class Pt{selected=!1;style={};tooltip=null;tooltipPlacement=null;value=null;valueTooltip=null;valueTooltipPlacement=null;legend=null}class ye{active=!1;value=0;difference=0;position=0;lowLimit=0;highLimit=0}class te{value;highValue;static compare(a,t){return!(r.isNullOrUndefined(a)&&r.isNullOrUndefined(t)||r.isNullOrUndefined(a)!==r.isNullOrUndefined(t))&&a.value===t.value&&a.highValue===t.highValue}}class Ee extends te{forceChange;static compare(a,t){return!(r.isNullOrUndefined(a)&&r.isNullOrUndefined(t)||r.isNullOrUndefined(a)!==r.isNullOrUndefined(t))&&a.value===t.value&&a.highValue===t.highValue&&a.forceChange===t.forceChange}}const yt={provide:m.kq,useExisting:(0,e.Rfq)(()=>ke),multi:!0};let ke=(()=>{class s{renderer;elementRef;changeDetectionRef;zone;allowUnsafeHtmlInSlider;sliderElementNgxSliderClass=!0;value=null;valueChange=new e.bkB;highValue=null;highValueChange=new e.bkB;options=new ee;userChangeStart=new e.bkB;userChange=new e.bkB;userChangeEnd=new e.bkB;manualRefreshSubscription;set manualRefresh(t){this.unsubscribeManualRefresh(),this.manualRefreshSubscription=t.subscribe(()=>{setTimeout(()=>this.calculateViewDimensionsAndDetectChanges())})}triggerFocusSubscription;set triggerFocus(t){this.unsubscribeTriggerFocus(),this.triggerFocusSubscription=t.subscribe(i=>{this.focusPointer(i)})}get range(){return!r.isNullOrUndefined(this.value)&&!r.isNullOrUndefined(this.highValue)}initHasRun=!1;
1inputModelChangeSubject=new q.B;inputModelChangeSubscription=null;outputModelChangeSubject=new q.B;outputModelChangeSubscription=null;viewLowValue=null;viewHighValue=null;viewOptions=new ee;handleHalfDimension=0;maxHandlePosition=0;currentTrackingPointer=null;currentFocusPointer=null;firstKeyDown=!1;touchId=null;dragging=new ye;leftOuterSelectionBarElement;rightOuterSelectionBarElement;fullBarElement;selectionBarElement;minHandleElement;maxHandleElement;floorLabelElement;ceilLabelElement;minHandleLabelElement;maxHandleLabelElement;combinedLabelElement;ticksElement;tooltipTemplate;sliderElementVerticalClass=!1;sliderElementAnimateClass=!1;sliderElementWithLegendClass=!1;sliderElementDisabledAttr=null;sliderElementAriaLabel="ngx-slider";barStyle={};minPointerStyle={};maxPointerStyle={};fullBarTransparentClass=!1;selectionBarDraggableClass=!1;ticksUnderValuesClass=!1;get showTicks(){return this.viewOptions.showTicks}intermediateTicks=!1;ticks=[];eventListenerHelper=null;onMoveEventListener=null;onEndEventListener=null;moving=!1;resizeObserver=null;onTouchedCallback=null;onChangeCallback=null;constructor(t,i,n,o,l){this.renderer=t,this.elementRef=i,this.changeDetectionRef=n,this.zone=o,this.allowUnsafeHtmlInSlider=l,this.eventListenerHelper=new Pe(this.renderer)}ngOnInit(){this.viewOptions=new ee,Object.assign(this.viewOptions,this.options),this.updateDisabledState(),this.updateVerticalState(),this.updateAriaLabel()}ngAfterViewInit(){this.applyOptions(),this.subscribeInputModelChangeSubject(),this.subscribeOutputModelChangeSubject(),this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.viewHighValue=this.range?this.modelValueToViewValue(this.highValue):null,this.updateVerticalState(),this.manageElementsStyle(),this.updateDisabledState(),this.calculateViewDimensions(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),this.initHandles(),this.manageEventsBindings(),this.updateAriaLabel(),this.subscribeResizeObserver(),this.initHasRun=!0,this.isRefDestroyed()||this.changeDetectionRef.detectChanges()}ngOnChanges(t){!r.isNullOrUndefined(t.options)&&JSON.stringify(t.options.previousValue)!==JSON.stringify(t.options.currentValue)&&this.onChangeOptions(),(!r.isNullOrUndefined(t.value)||!r.isNullOrUndefined(t.highValue))&&this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1})}ngOnDestroy(){this.unbindEvents(),this.unsubscribeResizeObserver(),this.unsubscribeInputModelChangeSubject(),this.unsubscribeOutputModelChangeSubject(),this.unsubscribeManualRefresh(),this.unsubscribeTriggerFocus()}writeValue(t){t instanceof Array?(this.value=t[0],this.highValue=t[1]):this.value=t,this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1})}registerOnChange(t){this.onChangeCallback=t}registerOnTouched(t){this.onTouchedCallback=t}setDisabledState(t){this.viewOptions.disabled=t,this.updateDisabledState()}setAriaLabel(t){this.viewOptions.ariaLabel=t,this.updateAriaLabel()}onResize(t){this.calculateViewDimensionsAndDetectChanges()}subscribeInputModelChangeSubject(){this.inputModelChangeSubscription=this.inputModelChangeSubject.pipe((0,M.F)(Ee.compare),(0,We.p)(t=>!t.forceChange&&!t.internalChange)).subscribe(t=>this.applyInputModelChange(t))}subscribeOutputModelChangeSubject(){this.outputModelChangeSubscription=this.outputModelChangeSubject.pipe((0,M.F)(Ee.compare)).subscribe(t=>this.publishOutputModelChange(t))}subscribeResizeObserver(){G.isResizeObserverAvailable()&&(this.resizeObserver=new ResizeObserver(()=>this.calculateViewDimensionsAndDetectChanges()),this.resizeObserver.observe(this.elementRef.nativeElement))}unsubscribeResizeObserver(){G.isResizeObserverAvailable()&&null!==this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}unsubscribeOnMove(){r.isNullOrUndefined(this.onMoveEventListener)||(this.eventListenerHelper.detachEventListener(this.onMoveEventListener),this.onMoveEventListener=null)}unsubscribeOnEnd(){r.isNullOrUndefined(this.onEndEventListener)||(this.eventListenerHelper.detachEventListener(this.onEndEventListener),this.onEndEventListener=null)}unsubscribeInputModelChangeSubject(){r.isNullOrUndefined(this.inputModelChangeSubscription)||(this.inputModelChangeSubscription.unsubscribe(),this.inputModelChangeSubscription=null)}unsubscribeOutputModelChangeSubject(){r.isNullOrUndefined(this.outputModelChangeSubscription)||(this.outputModelChangeSubscription.unsubscribe(),this.outputModelChangeSubscription=null)}unsubscribeManualRefresh(){r.isNullOrUndefined(this.manualRefreshSubscription)||(this.manualRefreshSubscription.unsubscribe(),this.manualRefreshSubscription=null)}unsubscribeTriggerFocus(){r.isNullOrUndefined(this.triggerFocusSubscription)||(this.triggerFocusSubscription.unsubscribe(),this.triggerFocusSubscription=null)}getPointerElement(t){return t===h.Min?this.minHandleElement:t===h.Max?this.maxHandleElement:null}getCurrentTrackingValue(){return this.currentTrackingPointer===h.Min?this.viewLowValue:this.currentTrackingPointer===h.Max?this.viewHighValue:null}modelValueToViewValue(t){return r.isNullOrUndefined(t)?NaN:r.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray?+t:r.findStepIndex(+t,this.viewOptions.stepsArray)}viewValueToModelValue(t){return r.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray?t:this.getStepValue(t)}getStepValue(t){const i=this.viewOptions.stepsArray[t];return r.isNullOrUndefined(i)?NaN:i.value}applyViewChange(){this.value=this.viewValueToModelValue(this.viewLowValue),this.range&&(this.highValue=this.viewValueToModelValue(this.viewHighValue)),this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,userEventInitiated:!0,forceChange:!1}),this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!0})}applyInputModelChange(t){const i=this.normaliseModelValues(t),n=!te.compare(t,i);n&&(this.value=i.value,this.highValue=i.highValue),this.viewLowValue=this.modelValueToViewValue(i.value),this.viewHighValue=this.range?this.modelValueToViewValue(i.highValue):null,this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCombinedLabel(),this.outputModelChangeSubject.next({value:i.value,highValue:i.highValue,forceChange:n,userEventInitiated:!1})}publishOutputModelChange(t){const i=()=>{this.valueChange.emit(t.value),this.range&&this.highValueChange.emit(t.highValue),r.isNullOrUndefined(this.onChangeCallback)||this.onChangeCallback(this.range?[t.value,t.highValue]:t.value),r.isNullOrUndefined(this.onTouchedCallback)||this.onTouchedCallback(this.range?[t.value,t.highValue]:t.value)};t.userEventInitiated?(i(),this.userChange.emit(this.getChangeContext())):setTimeout(()=>{i()})}normaliseModelValues(t){const i=new te;if(i.value=t.value,i.highValue=t.highValue,!r.isNullOrUndefined(this.viewOptions.stepsArray)){if(this.viewOptions.enforceStepsArray){const n=r.findStepIndex(i.value,this.viewOptions.stepsArray);if(i.value=this.viewOptions.stepsArray[n].value,this.range){const o=r.findStepIndex(i.highValue,this.viewOptions.stepsArray);i.highValue=this.viewOptions.stepsArray[o].value}}return i}if(this.viewOptions.enforceStep&&(i.value=this.roundStep(i.value),this.range&&(i.highValue=this.roundStep(i.highValue))),this.viewOptions.enforceRange&&(i.value=P.clampToRange(i.value,this.viewOptions.floor,this.viewOptions.ceil),this.range&&(i.highValue=P.clampToRange(i.highValue,this.viewOptions.floor,this.viewOptions.ceil)),this.range&&t.value>t.highValue))if(this.viewOptions.noSwitching)i.value=i.highValue;else{const n=t.value;i.value=t.highValue,i.highValue=n}return i}renormaliseModelValues(){const t={value:this.value,highValue:this.highValue},i=this.normaliseModelValues(t);te.compare(i,t)||(this.value=i.value,this.highValue=i.highValue,this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!0,userEventInitiated:!1}))}onChangeOptions(){if(!this.initHasRun)return;const t=this.getOptionsInfluencingEventBindings(this.viewOptions);this.applyOptions();const i=this.getOptionsInfluencingEventBindings(this.viewOptions),n=!r.areArraysEqual(t,
1i);this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.viewHighValue=this.range?this.modelValueToViewValue(this.highValue):null,this.resetSlider(n)}applyOptions(){if(this.viewOptions=new ee,Object.assign(this.viewOptions,this.options),this.viewOptions.draggableRange=this.range&&this.viewOptions.draggableRange,this.viewOptions.draggableRangeOnly=this.range&&this.viewOptions.draggableRangeOnly,this.viewOptions.draggableRangeOnly&&(this.viewOptions.draggableRange=!0),this.viewOptions.showTicks=this.viewOptions.showTicks||this.viewOptions.showTicksValues||!r.isNullOrUndefined(this.viewOptions.ticksArray),this.viewOptions.showTicks&&(!r.isNullOrUndefined(this.viewOptions.tickStep)||!r.isNullOrUndefined(this.viewOptions.ticksArray))&&(this.intermediateTicks=!0),this.viewOptions.showSelectionBar=this.viewOptions.showSelectionBar||this.viewOptions.showSelectionBarEnd||!r.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue),r.isNullOrUndefined(this.viewOptions.stepsArray)?this.applyFloorCeilOptions():this.applyStepsArrayOptions(),r.isNullOrUndefined(this.viewOptions.combineLabels)&&(this.viewOptions.combineLabels=(t,i)=>t+" - "+i),this.viewOptions.logScale&&0===this.viewOptions.floor)throw Error("Can't use floor=0 with logarithmic scale")}applyStepsArrayOptions(){this.viewOptions.floor=0,this.viewOptions.ceil=this.viewOptions.stepsArray.length-1,this.viewOptions.step=1,r.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=t=>String(this.viewOptions.bindIndexForStepsArray?this.getStepValue(t):t))}applyFloorCeilOptions(){if(r.isNullOrUndefined(this.viewOptions.step)?this.viewOptions.step=1:(this.viewOptions.step=+this.viewOptions.step,this.viewOptions.step<=0&&(this.viewOptions.step=1)),r.isNullOrUndefined(this.viewOptions.ceil)||r.isNullOrUndefined(this.viewOptions.floor))throw Error("floor and ceil options must be supplied");this.viewOptions.ceil=+this.viewOptions.ceil,this.viewOptions.floor=+this.viewOptions.floor,r.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=t=>String(t))}resetSlider(t=!0){this.manageElementsStyle(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),t&&(this.unbindEvents(),this.manageEventsBindings()),this.updateDisabledState(),this.updateAriaLabel(),this.calculateViewDimensions(),this.refocusPointerIfNeeded()}focusPointer(t){t!==h.Min&&t!==h.Max&&(t=h.Min),t===h.Min?this.minHandleElement.focus():this.range&&t===h.Max&&this.maxHandleElement.focus()}refocusPointerIfNeeded(){r.isNullOrUndefined(this.currentFocusPointer)||this.getPointerElement(this.currentFocusPointer).focusIfNeeded()}manageElementsStyle(){this.updateScale(),this.floorLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels),this.ceilLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels);const t=this.viewOptions.showTicksValues&&!this.intermediateTicks;this.minHandleLabelElement.setAlwaysHide(t||this.viewOptions.hidePointerLabels),this.maxHandleLabelElement.setAlwaysHide(t||!this.range||this.viewOptions.hidePointerLabels),this.combinedLabelElement.setAlwaysHide(t||!this.range||this.viewOptions.hidePointerLabels),this.selectionBarElement.setAlwaysHide(!this.range&&!this.viewOptions.showSelectionBar),this.leftOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.rightOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.fullBarTransparentClass=this.range&&this.viewOptions.showOuterSelectionBars,this.selectionBarDraggableClass=this.viewOptions.draggableRange&&!this.viewOptions.onlyBindHandles,this.ticksUnderValuesClass=this.intermediateTicks&&this.options.showTicksValues,this.sliderElementVerticalClass!==this.viewOptions.vertical&&(this.updateVerticalState(),setTimeout(()=>{this.resetSlider()})),this.sliderElementAnimateClass!==this.viewOptions.animate&&setTimeout(()=>{this.sliderElementAnimateClass=this.viewOptions.animate}),this.updateRotate()}manageEventsBindings(){this.viewOptions.disabled||this.viewOptions.readOnly?this.unbindEvents():this.bindEvents()}updateDisabledState(){this.sliderElementDisabledAttr=this.viewOptions.disabled?"disabled":null}updateAriaLabel(){this.sliderElementAriaLabel=this.viewOptions.ariaLabel||"nxg-slider"}updateVerticalState(){this.sliderElementVerticalClass=this.viewOptions.vertical;for(const t of this.getAllSliderElements())r.isNullOrUndefined(t)||t.setVertical(this.viewOptions.vertical)}updateScale(){for(const t of this.getAllSliderElements())t.setScale(this.viewOptions.scale)}updateRotate(){for(const t of this.getAllSliderElements())t.setRotate(this.viewOptions.rotate)}getAllSliderElements(){return[this.leftOuterSelectionBarElement,this.rightOuterSelectionBarElement,this.fullBarElement,this.selectionBarElement,this.minHandleElement,this.maxHandleElement,this.floorLabelElement,this.ceilLabelElement,this.minHandleLabelElement,this.maxHandleLabelElement,this.combinedLabelElement,this.ticksElement]}initHandles(){this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.range&&this.updateCombinedLabel(),this.updateTicksScale()}addAccessibility(){this.updateAriaAttributes(),this.minHandleElement.role="slider",this.minHandleElement.tabindex=!this.viewOptions.keyboardSupport||this.viewOptions.readOnly||this.viewOptions.disabled?"":"0",this.minHandleElement.ariaOrientation=this.viewOptions.vertical||0!==this.viewOptions.rotate?"vertical":"horizontal",r.isNullOrUndefined(this.viewOptions.ariaLabel)?r.isNullOrUndefined(this.viewOptions.ariaLabelledBy)||(this.minHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledBy):this.minHandleElement.ariaLabel=this.viewOptions.ariaLabel,this.range&&(this.maxHandleElement.role="slider",this.maxHandleElement.tabindex=!this.viewOptions.keyboardSupport||this.viewOptions.readOnly||this.viewOptions.disabled?"":"0",this.maxHandleElement.ariaOrientation=this.viewOptions.vertical||0!==this.viewOptions.rotate?"vertical":"horizontal",r.isNullOrUndefined(this.viewOptions.ariaLabelHigh)?r.isNullOrUndefined(this.viewOptions.ariaLabelledByHigh)||(this.maxHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledByHigh):this.maxHandleElement.ariaLabel=this.viewOptions.ariaLabelHigh)}updateAriaAttributes(){this.minHandleElement.ariaValueNow=(+this.value).toString(),this.minHandleElement.ariaValueText=this.viewOptions.translate(+this.value,I.Low),this.minHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.minHandleElement.ariaValueMax=this.viewOptions.ceil.toString(),this.range&&(this.maxHandleElement.ariaValueNow=(+this.highValue).toString(),this.maxHandleElement.ariaValueText=this.viewOptions.translate(+this.highValue,I.High),this.maxHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.maxHandleElement.ariaValueMax=this.viewOptions.ceil.toString())}calculateViewDimensions(){r.isNullOrUndefined(this.viewOptions.handleDimension)?this.minHandleElement.calculateDimension():this.minHandleElement.setDimension(this.viewOptions.handleDimension);const t=this.minHandleElement.dimension;this.handleHalfDimension=t/2,r.isNullOrUndefined(this.viewOptions.barDimension)?this.fullBarElement.calculateDimension():this.fullBarElement.setDimension(this.viewOptions.barDimension),this.maxHandlePosition=this.fullBarElement.dimension-t,this.initHasRun&&(this.updateFloorLabel(),this.updateCeilLabel(),this.initHandles())}calculateViewDimensionsAndDetectChanges(){this.calculateViewDimensions(),this.isRefDestroyed()||this.changeDetectionRef.detectChanges()}isRefDestroyed(){return this.changeDetectionRef.destroyed}updateTicksScale(){if(!this.viewOptions.showTicks&&this.sliderElementWithLegendClass)return void setTimeout(()=>{this.sliderElementWithLegendClass=!1});const t=r.isNullOrUndefined(this.viewOptions.ticksArray)?this.getTicksArray():this.viewOptions.ticksArray,i=this.viewOptions.vertical?"translateY":"translateX";this.viewOptions.rightToLeft&&t.reverse();const n=r.isNullOrUndefined(this.viewOptions.tickValueStep)?r.isNullOrUndefined(this.viewOptions.tickStep)?this.viewOptions.step:this.viewOptions.tickStep:this.viewOptions.tickValueStep;let o=!1;const l=t.map(d=>{let p=this.valueToPosition(d);this.viewOptions.vertical&&(p=this.maxHandlePosition-p);const b=i+"("+Math.round(p)+"px)",g=new Pt;g.selected=this.isTickSelected(d),g.style={"-webkit-transform":b,"-moz-transform":b,"-o-transform":b,"-ms-transform":b,transform:b},g.selected&&!r.isNullOrUndefined(this.viewOptions.getSelectionBarColor)&&(g.style["background-color"]=this.getSelectionBarColor()),!g.selected&&!r.isNullOrUndefined(this.viewOptions.getTickColor)&&(g.style["background-color"]=this.getTickColor(d)),r.isNullOrUndefined(this.viewOptions.ticksTooltip)||(g.tooltip=this.viewOptions.ticksTooltip(d),g.tooltipPlacement=this.viewOptions.vertical?"right":"top"),this.viewOptions.showTicksValues&&!r.isNullOrUndefined(n)&&P.isModuloWithinPrecisionLimit(d,n,this.viewOptions.precisionLimit)&&(g.value=this.getDisplayValue(d,I.TickValue),r.isNullOrUndefined(this.viewOptions.ticksValuesTooltip)||(g.valueTooltip=this.viewOptions.ticksValuesTooltip(d),g.valueTooltipPlacement=this.viewOptions.vertical?"right":"top"));let y=null;if(r.isNullOrUndefined(this.viewOptions.stepsArray))r.isNullOrUndefined(this.viewOptions.getLegend)||(y=this.viewOptions.getLegend(d));else{const S=this.viewOptions.stepsArray[d];r.isNullOrUndefined(this.viewOptions.getStepLegend)?r.isNullOrUndefined(S)||(y=S.legend):y=this.viewOptions.getStepLegend(S)}return r.isNullOrUndefined(y)||(g.legend=y,o=!0),g});if(this.sliderElementWithLegendClass!==o&&setTimeout(()=>{this.sliderElementWithLegendClass=o}),r.isNullOrUndefined(this.ticks)||this.ticks.length!==l.length)this.ticks=l,this.isRefDestroyed()||this.changeDetectionRef.detectChanges();else for(let d=0;d<l.length;++d)Object.assign(this.ticks[d],l[d])}getTicksArray(){if(!this.viewOptions.showTicks)return[];const t=r.isNullOrUndefined(this.viewOptions.tickStep)?this.viewOptions.step:this.viewOptions.tickStep,i=[],n=1+Math.floor(P.roundToPrecisionLimit(Math.abs(this.viewOptions.ceil-this.viewOptions.floor)/t,this.viewOptions.precisionLimit));for(let o=0;o<n;++o)i.push(P.roundToPrecisionLimit(this.viewOptions.floor+t*o,this.viewOptions.precisionLimit));return i}isTickSelected(t){if(!this.range)if(r.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)){if(this.viewOptions.showSelectionBarEnd){if
1(t>=this.viewLowValue)return!0}else if(this.viewOptions.showSelectionBar&&t<=this.viewLowValue)return!0}else{const i=this.viewOptions.showSelectionBarFromValue;if(this.viewLowValue>i&&t>=i&&t<=this.viewLowValue)return!0;if(this.viewLowValue<i&&t<=i&&t>=this.viewLowValue)return!0}return!!(this.range&&t>=this.viewLowValue&&t<=this.viewHighValue)}updateFloorLabel(){this.floorLabelElement.alwaysHide||(this.floorLabelElement.setValue(this.getDisplayValue(this.viewOptions.floor,I.Floor)),this.floorLabelElement.calculateDimension(),this.floorLabelElement.setPosition(this.viewOptions.rightToLeft?this.fullBarElement.dimension-this.floorLabelElement.dimension:0))}updateCeilLabel(){this.ceilLabelElement.alwaysHide||(this.ceilLabelElement.setValue(this.getDisplayValue(this.viewOptions.ceil,I.Ceil)),this.ceilLabelElement.calculateDimension(),this.ceilLabelElement.setPosition(this.viewOptions.rightToLeft?0:this.fullBarElement.dimension-this.ceilLabelElement.dimension))}updateHandles(t,i){t===h.Min?this.updateLowHandle(i):t===h.Max&&this.updateHighHandle(i),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCombinedLabel()}getHandleLabelPos(t,i){const n=t===h.Min?this.minHandleLabelElement.dimension:this.maxHandleLabelElement.dimension,o=i-n/2+this.handleHalfDimension,l=this.fullBarElement.dimension-n;return this.viewOptions.boundPointerLabels?this.viewOptions.rightToLeft&&t===h.Min||!this.viewOptions.rightToLeft&&t===h.Max?Math.min(o,l):Math.min(Math.max(o,0),l):o}updateLowHandle(t){this.minHandleElement.setPosition(t),this.minHandleLabelElement.setValue(this.getDisplayValue(this.viewLowValue,I.Low)),this.minHandleLabelElement.setPosition(this.getHandleLabelPos(h.Min,t)),r.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.minPointerStyle={backgroundColor:this.getPointerColor(h.Min)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}updateHighHandle(t){this.maxHandleElement.setPosition(t),this.maxHandleLabelElement.setValue(this.getDisplayValue(this.viewHighValue,I.High)),this.maxHandleLabelElement.setPosition(this.getHandleLabelPos(h.Max,t)),r.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.maxPointerStyle={backgroundColor:this.getPointerColor(h.Max)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}updateFloorAndCeilLabelsVisibility(){if(this.viewOptions.hidePointerLabels)return;let t=!1,i=!1;const n=this.isLabelBelowFloorLabel(this.minHandleLabelElement),o=this.isLabelAboveCeilLabel(this.minHandleLabelElement),l=this.isLabelAboveCeilLabel(this.maxHandleLabelElement),d=this.isLabelBelowFloorLabel(this.combinedLabelElement),p=this.isLabelAboveCeilLabel(this.combinedLabelElement);if(n?(t=!0,this.floorLabelElement.hide()):(t=!1,this.floorLabelElement.show()),o?(i=!0,this.ceilLabelElement.hide()):(i=!1,this.ceilLabelElement.show()),this.range){const b=this.combinedLabelElement.isVisible()?p:l,g=this.combinedLabelElement.isVisible()?d:n;b?this.ceilLabelElement.hide():i||this.ceilLabelElement.show(),g?this.floorLabelElement.hide():t||this.floorLabelElement.show()}}isLabelBelowFloorLabel(t){const i=t.position,o=this.floorLabelElement.position;return this.viewOptions.rightToLeft?i+t.dimension>=o-2:i<=o+this.floorLabelElement.dimension+2}isLabelAboveCeilLabel(t){const i=t.position,o=this.ceilLabelElement.position;return this.viewOptions.rightToLeft?i<=o+this.ceilLabelElement.dimension+2:i+t.dimension>=o-2}updateSelectionBar(){let t=0,i=0;const n=this.viewOptions.rightToLeft?!this.viewOptions.showSelectionBarEnd:this.viewOptions.showSelectionBarEnd,o=this.viewOptions.rightToLeft?this.maxHandleElement.position+this.handleHalfDimension:this.minHandleElement.position+this.handleHalfDimension;if(this.range)i=Math.abs(this.maxHandleElement.position-this.minHandleElement.position),t=o;else if(r.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue))n?(i=Math.ceil(Math.abs(this.maxHandlePosition-this.minHandleElement.position)+this.handleHalfDimension),t=Math.floor(this.minHandleElement.position+this.handleHalfDimension)):(i=this.minHandleElement.position+this.handleHalfDimension,t=0);else{const l=this.viewOptions.showSelectionBarFromValue,d=this.valueToPosition(l);(this.viewOptions.rightToLeft?this.viewLowValue<=l:this.viewLowValue>l)?(i=this.minHandleElement.position-d,t=d+this.handleHalfDimension):(i=d-this.minHandleElement.position,t=this.minHandleElement.position+this.handleHalfDimension)}if(this.selectionBarElement.setDimension(i),this.selectionBarElement.setPosition(t),this.range&&this.viewOptions.showOuterSelectionBars&&(this.viewOptions.rightToLeft?(this.rightOuterSelectionBarElement.setDimension(t),this.rightOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.leftOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(t+i)),this.leftOuterSelectionBarElement.setPosition(t+i)):(this.leftOuterSelectionBarElement.setDimension(t),this.leftOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.rightOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(t+i)),this.rightOuterSelectionBarElement.setPosition(t+i))),r.isNullOrUndefined(this.viewOptions.getSelectionBarColor)){if(!r.isNullOrUndefined(this.viewOptions.selectionBarGradient)){const l=r.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)?0:this.valueToPosition(this.viewOptions.showSelectionBarFromValue),d=l-t>0&&!n||l-t<=0&&n;this.barStyle={backgroundImage:"linear-gradient(to "+(this.viewOptions.vertical?d?"bottom":"top":d?"left":"right")+", "+this.viewOptions.selectionBarGradient.from+" 0%,"+this.viewOptions.selectionBarGradient.to+" 100%)"},this.viewOptions.vertical?(this.barStyle.backgroundPosition="center "+(l+i+t+(d?-this.handleHalfDimension:0))+"px",this.barStyle.backgroundSize="100% "+(this.fullBarElement.dimension-this.handleHalfDimension)+"px"):(this.barStyle.backgroundPosition=l-t+(d?this.handleHalfDimension:0)+"px center",this.barStyle.backgroundSize=this.fullBarElement.dimension-this.handleHalfDimension+"px 100%")}}else{const l=this.getSelectionBarColor();this.barStyle={backgroundColor:l}}}getSelectionBarColor(){return this.range?this.viewOptions.getSelectionBarColor(this.value,this.highValue):this.viewOptions.getSelectionBarColor(this.value)}getPointerColor(t){return this.viewOptions.getPointerColor(t===h.Max?this.highValue:this.value,t)}getTickColor(t){return this.viewOptions.getTickColor(t)}updateCombinedLabel(){let t=null;if(t=this.viewOptions.rightToLeft?this.minHandleLabelElement.position-this.minHandleLabelElement.dimension-10<=this.maxHandleLabelElement.position:this.minHandleLabelElement.position+this.minHandleLabelElement.dimension+10>=this.maxHandleLabelElement.position,t){const i=this.getDisplayValue(this.viewLowValue,I.Low),n=this.getDisplayValue(this.viewHighValue,I.High),o=this.viewOptions.rightToLeft?this.viewOptions.combineLabels(n,i):this.viewOptions.combineLabels(i,n);this.combinedLabelElement.setValue(o);const l=this.viewOptions.boundPointerLabels?Math.min(Math.max(this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2,0),this.fullBarElement.dimension-this.combinedLabelElement.dimension):this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2;this.combinedLabelElement.setPosition(l),this.minHandleLabelElement.hide(),this.maxHandleLabelElement.hide(),this.combinedLabelElement.show()}else this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.maxHandleLabelElement.show(),this.minHandleLabelElement.show(),this.combinedLabelElement.hide();this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}getDisplayValue(t,i){return!r.isNullOrUndefined(this.viewOptions.stepsArray)&&!this.viewOptions.bindIndexForStepsArray&&(t=this.getStepValue(t)),this.viewOptions.translate(t,i)}roundStep(t,i){const n=r.isNullOrUndefined(i)?this.viewOptions.step:i;let o=P.roundToPrecisionLimit((t-this.viewOptions.floor)/n,this.viewOptions.precisionLimit);return o=Math.round(o)*n,P.roundToPrecisionLimit(this.viewOptions.floor+o,this.viewOptions.precisionLimit)}valueToPosition(t){let i=r.linearValueToPosition;r.isNullOrUndefined(this.viewOptions.customValueToPosition)?this.viewOptions.logScale&&(i=r.logValueToPosition):i=this.viewOptions.customValueToPosition;let n=i(t=P.clampToRange(t,this.viewOptions.floor,this.viewOptions.ceil),this.viewOptions.floor,this.viewOptions.ceil);return r.isNullOrUndefined(n)&&(n=0),this.viewOptions.rightToLeft&&(n=1-n),n*this.maxHandlePosition}positionToValue(t){let i=t/this.maxHandlePosition;this.viewOptions.rightToLeft&&(i=1-i);let n=r.linearPositionToValue;r.isNullOrUndefined(this.viewOptions.customPositionToValue)?this.viewOptions.logScale&&(n=r.logPositionToValue):n=this.viewOptions.customPositionToValue;const o=n(i,this.viewOptions.floor,this.viewOptions.ceil);return r.isNullOrUndefined(o)?0:o}getEventXY(t,i){if(t instanceof MouseEvent)return this.viewOptions.vertical||0!==this.viewOptions.rotate?t.clientY:t.clientX;let n=0;const o=t.touches;if(!r.isNullOrUndefined(i))for(let l=0;l<o.length;l++)if(o[l].identifier===i){n=l;break}return this.viewOptions.vertical||0!==this.viewOptions.rotate?o[n].clientY:o[n].clientX}getEventPosition(t,i){const n=this.elementRef.nativeElement.getBoundingClientRect(),o=this.viewOptions.vertical||0!==this.viewOptions.rotate?n.bottom:n.left;let l=0;return l=this.viewOptions.vertical||0!==this.viewOptions.rotate?-this.getEventXY(t,i)+o:this.getEventXY(t,i)-o,l*this.viewOptions.scale-this.handleHalfDimension}getNearestHandle(t){if(!this.range)return h.Min;const i=this.getEventPosition(t),n=Math.abs(i-this.minHandleElement.position),o=Math.abs(i-this.maxHandleElement.position);return n<o?h.Min:n>o?h.Max:this.viewOptions.rightToLeft?i>this.minHandleElement.position?h.Min:h.Max:i<this.minHandleElement.position?h.Min:h.Max}bindEvents(){const t=this.viewOptions.draggableRange;this.viewOptions.onlyBindHandles||this.selectionBarElement.on("mousedown",i=>this.onBarStart(null,t,i,!0,!0,!0)),this.viewOptions.draggableRangeOnly?(this.minHandleElement.on("mousedown",i=>this.onBarStart(h.Min,t,i,!0,!0)),this.maxHandleElement.on("mousedown",i=>this.onBarStart(h.Max,t,i,!0,!0))):(this.minHandleElement.on("mousedown",i=>this.onStart(h.Min,i,!0,!0)),this.range&&this.maxHandleElement.on("mousedown",i=>this.onStart(h.Max,i,!0,!0)),this.viewOptions.onlyBindHandles||(this.fullBarElement.on("mousedown",i=>this.onStart(null,i,!0,!0,!0)),this.ticksElement.on("mousedown",i=>this.onStart(null,i,!0,!0,!0,!0)))),this.viewOptions.onlyBindHandles||this.selectionBarElement.onPassive("touchstart",i=>this.onBarStart(null,t,i,!0,!0,!0)),this.viewOptions.draggableRangeOnly?(this.minHandleElement.onPassive("touchstart",i=>this.onBarStart(h.Min,t,i,!0,!0)),this.maxHandleElement.onPassive("touchstart",i=>this.onBarStart(h.Max,t,i,!0,!0))):(this.minHandleElement.onPassive("touchstart",i=>this.onStart(h.Min,i,!0,!0)),this.range&&this.maxHandleElement.onPassive("touchstart",i=>this.onStart(h.Max,i,!0,!0)),this.viewOptions.onlyBindHandles||(this.fullBarElement.onPassive("touchstart",i=>this.onStart(null,i,!0,!0,!0)),this.ticksElement.onPassive("touchstart",i=>
1this.onStart(null,i,!1,!1,!0,!0)))),this.viewOptions.keyboardSupport&&(this.minHandleElement.on("focus",()=>this.onPointerFocus(h.Min)),this.range&&this.maxHandleElement.on("focus",()=>this.onPointerFocus(h.Max)))}getOptionsInfluencingEventBindings(t){return[t.disabled,t.readOnly,t.draggableRange,t.draggableRangeOnly,t.onlyBindHandles,t.keyboardSupport]}unbindEvents(){this.unsubscribeOnMove(),this.unsubscribeOnEnd();for(const t of this.getAllSliderElements())r.isNullOrUndefined(t)||t.off()}onBarStart(t,i,n,o,l,d,p){i?this.onDragStart(t,n,o,l):this.onStart(t,n,o,l,d,p)}onStart(t,i,n,o,l,d){i.stopPropagation(),!G.isTouchEvent(i)&&!be&&i.preventDefault(),this.moving=!1,this.calculateViewDimensions(),r.isNullOrUndefined(t)&&(t=this.getNearestHandle(i)),this.currentTrackingPointer=t;const p=this.getPointerElement(t);if(p.active=!0,this.viewOptions.keyboardSupport&&p.focus(),n){this.unsubscribeOnMove();const b=g=>this.dragging.active?this.onDragMove(g):this.onMove(g);this.onMoveEventListener=G.isTouchEvent(i)?this.eventListenerHelper.attachPassiveEventListener(document,"touchmove",b):this.eventListenerHelper.attachEventListener(document,"mousemove",b)}if(o){this.unsubscribeOnEnd();const b=g=>this.onEnd(g);this.onEndEventListener=G.isTouchEvent(i)?this.eventListenerHelper.attachPassiveEventListener(document,"touchend",b):this.eventListenerHelper.attachEventListener(document,"mouseup",b)}this.userChangeStart.emit(this.getChangeContext()),G.isTouchEvent(i)&&!r.isNullOrUndefined(i.changedTouches)&&r.isNullOrUndefined(this.touchId)&&(this.touchId=i.changedTouches[0].identifier),l&&this.onMove(i,!0),d&&this.onEnd(i)}onMove(t,i){let n=null;if(G.isTouchEvent(t)){const b=t.changedTouches;for(let g=0;g<b.length;g++)if(b[g].identifier===this.touchId){n=b[g];break}if(r.isNullOrUndefined(n))return}
1this.viewOptions.animate&&!this.viewOptions.animateOnMove&&this.moving&&(this.sliderElementAnimateClass=!1),this.moving=!0;const o=r.isNullOrUndefined(n)?this.getEventPosition(t):this.getEventPosition(t,n.identifier);let l;o<=0?l=this.viewOptions.rightToLeft?this.viewOptions.ceil:this.viewOptions.floor:o>=this.maxHandlePosition?l=this.viewOptions.rightToLeft?this.viewOptions.floor:this.viewOptions.ceil:(l=this.positionToValue(o),l=i&&!r.isNullOrUndefined(this.viewOptions.tickStep)?this.roundStep(l,this.viewOptions.tickStep):this.roundStep(l)),this.positionTrackingHandle(l)}onEnd(t){G.isTouchEvent(t)&&t.changedTouches[0].identifier!==this.touchId||(this.moving=!1,this.viewOptions.animate&&(this.sliderElementAnimateClass=!0),this.touchId=null,this.viewOptions.keyboardSupport||(this.minHandleElement.active=!1,this.maxHandleElement.active=!1,this.currentTrackingPointer=null),this.dragging.active=!1,this.unsubscribeOnMove(),this.unsubscribeOnEnd(),this.userChangeEnd.emit(this.getChangeContext()))}onPointerFocus(t){const i=this.getPointerElement(t);i.on("blur",()=>this.onPointerBlur(i)),i.on("keydown",n=>this.onKeyboardEvent(n)),i.on("keyup",()=>this.onKeyUp()),i.active=!0,this.currentTrackingPointer=t,this.currentFocusPointer=t,this.firstKeyDown=!0}onKeyUp(){this.firstKeyDown=!0,this.userChangeEnd.emit(this.getChangeContext())}onPointerBlur(t){t.off("blur"),t.off("keydown"),t.off("keyup"),t.active=!1,r.isNullOrUndefined(this.touchId)&&(this.currentTrackingPointer=null,this.currentFocusPointer=null)}getKeyActions(t){const i=this.viewOptions.ceil-this.viewOptions.floor;let n=t+this.viewOptions.step,o=t-this.viewOptions.step,l=t+i/10,d=t-i/10;this.viewOptions.reversedControls&&(n=t-this.viewOptions.step,o=t+this.viewOptions.step,l=t-i/10,d=t+i/10);const p={UP:n,DOWN:o,LEFT:o,RIGHT:n,PAGEUP:l,PAGEDOWN:d,HOME:this.viewOptions.reversedControls?this.viewOptions.ceil:this.viewOptions.floor,END:this.viewOptions.reversedControls?this.viewOptions.floor:this.viewOptions.ceil};return this.viewOptions.rightToLeft&&(p.LEFT=n,p.RIGHT=o,(this.viewOptions.vertical||0!==this.viewOptions.rotate)&&(p.UP=o,p.DOWN=n)),p}onKeyboardEvent(t){const i=this.getCurrentTrackingValue(),n=r.isNullOrUndefined(t.keyCode)?t.which:t.keyCode,p=this.getKeyActions(i)[{38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[n]];if(r.isNullOrUndefined(p)||r.isNullOrUndefined(this.currentTrackingPointer))return;t.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.userChangeStart.emit(this.getChangeContext()));const b=P.clampToRange(p,this.viewOptions.floor,this.viewOptions.ceil),g=this.roundStep(b);if(this.viewOptions.draggableRangeOnly){const y=this.viewHighValue-this.viewLowValue;let S,N;this.currentTrackingPointer===h.Min?(S=g,N=g+y,N>this.viewOptions.ceil&&(N=this.viewOptions.ceil,S=N-y)):this.currentTrackingPointer===h.Max&&(N=g,S=g-y,S<this.viewOptions.floor&&(S=this.viewOptions.floor,N=S+y)),this.positionTrackingBar(S,N)}else this.positionTrackingHandle(g)}onDragStart(t,i,n,o){const l=this.getEventPosition(i);this.dragging=new ye,this.dragging.active=!0,this.dragging.value=this.positionToValue(l),this.dragging.difference=this.viewHighValue-this.viewLowValue,this.dragging.lowLimit=this.viewOptions.rightToLeft?this.minHandleElement.position-l:l-this.minHandleElement.position,this.dragging.highLimit=this.viewOptions.rightToLeft?l-this.maxHandleElement.position:this.maxHandleElement.position-l,this.onStart(t,i,n,o)}getMinValue(t,i,n){const o=this.viewOptions.rightToLeft;let l=null;return l=i?n?o?this.viewOptions.floor:this.viewOptions.ceil-this.dragging.difference:o?this.viewOptions.ceil-this.dragging.difference:this.viewOptions.floor:this.positionToValue(o?t+this.dragging.lowLimit:t-this.dragging.lowLimit),this.roundStep(l)}getMaxValue(t,i,n){const o=this.viewOptions.rightToLeft;let l=null;return l=i?n?o?this.viewOptions.floor+this.dragging.difference:this.viewOptions.ceil:o?this.viewOptions.ceil:this.viewOptions.floor+this.dragging.difference:o?this.positionToValue(t+this.dragging.lowLimit)+this.dragging.difference:this.positionToValue(t-this.dragging.lowLimit)+this.dragging.difference,this.roundStep(l)}onDragMove(t){const i=this.getEventPosition(t);let n,o,l,d;
1this.viewOptions.animate&&!this.viewOptions.animateOnMove&&this.moving&&(this.sliderElementAnimateClass=!1),this.moving=!0,this.viewOptions.rightToLeft?(n=this.dragging.lowLimit,o=this.dragging.highLimit,l=this.maxHandleElement,d=this.minHandleElement):(n=this.dragging.highLimit,o=this.dragging.lowLimit,l=this.minHandleElement,d=this.maxHandleElement);const b=i>=this.maxHandlePosition-n;let g,y;if(i<=o){if(0===l.position)return;g=this.getMinValue(i,!0,!1),y=this.getMaxValue(i,!0,!1)}else if(b){if(d.position===this.maxHandlePosition)return;y=this.getMaxValue(i,!0,!0),g=this.getMinValue(i,!0,!0)}else g=this.getMinValue(i,!1,!1),y=this.getMaxValue(i,!1,!1);this.positionTrackingBar(g,y)}positionTrackingBar(t,i){!r.isNullOrUndefined(this.viewOptions.minLimit)&&t<this.viewOptions.minLimit&&(i=P.roundToPrecisionLimit((t=this.viewOptions.minLimit)+this.dragging.difference,this.viewOptions.precisionLimit)),!r.isNullOrUndefined(this.viewOptions.maxLimit)&&i>this.viewOptions.maxLimit&&(t=P.roundToPrecisionLimit((i=this.viewOptions.maxLimit)-this.dragging.difference,this.viewOptions.precisionLimit)),this.viewLowValue=t,this.viewHighValue=i,this.applyViewChange(),this.updateHandles(h.Min,this.valueToPosition(t)),this.updateHandles(h.Max,this.valueToPosition(i))}positionTrackingHandle(t){t=this.applyMinMaxLimit(t),this.range&&(this.viewOptions.pushRange?t=this.applyPushRange(t):(this.viewOptions.noSwitching&&(this.currentTrackingPointer===h.Min&&t>this.viewHighValue?t=this.applyMinMaxRange(this.viewHighValue):this.currentTrackingPointer===h.Max&&t<this.viewLowValue&&(t=this.applyMinMaxRange(this.viewLowValue))),t=this.applyMinMaxRange(t),this.currentTrackingPointer===h.Min&&t>this.viewHighValue?(this.viewLowValue=this.viewHighValue,this.applyViewChange(),this.updateHandles(h.Min,this.maxHandleElement.position),this.updateAriaAttributes(),this.currentTrackingPointer=h.Max,this.minHandleElement.active=!1,this.maxHandleElement.active=!0,this.viewOptions.keyboardSupport&&this.maxHandleElement.focus()):this.currentTrackingPointer===h.Max&&t<this.viewLowValue&&(this.viewHighValue=this.viewLowValue,this.applyViewChange(),this.updateHandles(h.Max,this.minHandleElement.position),this.updateAriaAttributes(),this.currentTrackingPointer=h.Min,this.maxHandleElement.active=!1,this.minHandleElement.active=!0,this.viewOptions.keyboardSupport&&this.minHandleElement.focus()))),this.getCurrentTrackingValue()!==t&&(this.currentTrackingPointer===h.Min?(this.viewLowValue=t,this.applyViewChange()):this.currentTrackingPointer===h.Max&&(this.viewHighValue=t,this.applyViewChange()),this.updateHandles(this.currentTrackingPointer,this.valueToPosition(t)),this.updateAriaAttributes())}applyMinMaxLimit(t){return!r.isNullOrUndefined(this.viewOptions.minLimit)&&t<this.viewOptions.minLimit?this.viewOptions.minLimit:!r.isNullOrUndefined(this.viewOptions.maxLimit)&&t>this.viewOptions.maxLimit?this.viewOptions.maxLimit:t}applyMinMaxRange(t){const n=Math.abs(t-(this.currentTrackingPointer===h.Min?this.viewHighValue:this.viewLowValue));if(!r.isNullOrUndefined(this.viewOptions.minRange)&&n<this.viewOptions.minRange){if(this.currentTrackingPointer===h.Min)return P.roundToPrecisionLimit(this.viewHighValue-this.viewOptions.minRange,this.viewOptions.precisionLimit);if(this.currentTrackingPointer===h.Max)return P.roundToPrecisionLimit(this.viewLowValue+this.viewOptions.minRange,this.viewOptions.precisionLimit)}if(!r.isNullOrUndefined(this.viewOptions.maxRange)&&n>this.viewOptions.maxRange){if(this.currentTrackingPointer===h.Min)return P.roundToPrecisionLimit(this.viewHighValue-this.viewOptions.maxRange,this.viewOptions.precisionLimit);if(this.currentTrackingPointer===h.Max)return P.roundToPrecisionLimit(this.viewLowValue+this.viewOptions.maxRange,this.viewOptions.precisionLimit)}return t}applyPushRange(t){const i=this.currentTrackingPointer===h.Min?this.viewHighValue-t:t-this.viewLowValue,n=r.isNullOrUndefined(this.viewOptions.minRange)?this.viewOptions.step:this.viewOptions.minRange,o=this.viewOptions.maxRange;return i<n?(this.currentTrackingPointer===h.Min?(this.viewHighValue=P.roundToPrecisionLimit(Math.min(t+n,this.viewOptions.ceil),this.viewOptions.precisionLimit),t=P.roundToPrecisionLimit(this.viewHighValue-n,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(h.Max,this.valueToPosition(this.viewHighValue))):this.currentTrackingPointer===h.Max&&(this.viewLowValue=P.roundToPrecisionLimit(Math.max(t-n,this.viewOptions.floor),this.viewOptions.precisionLimit),t=P.roundToPrecisionLimit(this.viewLowValue+n,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(h.Min,this.valueToPosition(this.viewLowValue))),this.updateAriaAttributes()):!r.isNullOrUndefined(o)&&i>o&&(this.currentTrackingPointer===h.Min?(this.viewHighValue=P.roundToPrecisionLimit(t+o,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(h.Max,this.valueToPosition(this.viewHighValue))):this.currentTrackingPointer===h.Max&&(this.viewLowValue=P.roundToPrecisionLimit(t-o,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(h.Min,this.valueToPosition(this.viewLowValue))),this.updateAriaAttributes()),t}getChangeContext(){const t=new wt;return t.pointerType=this.currentTrackingPointer,t.value=+this.value,this.range&&(t.highValue=+this.highValue),t}static \u0275fac=function(i){return new(i||s)(e.rXU(e.sFG),e.rXU(e.aKT),e.rXU(e.gRc),e.rXU(e.SKi),e.rXU(we,8))};static \u0275cmp=e.VBU({type:s,selectors:[["ngx-slider"]],contentQueries:function(i,n,o){if(1&i&&e.wni(o,ot,5),2&i){let l;e.mGM(l=e.lsd())&&(n.tooltipTemplate=l.first)}},viewQuery:function(i,n){if(1&i&&(e.GBs(at,5,$),e.GBs(lt,5,$),e.GBs(rt,5,$),e.GBs(ct,5,$),e.GBs(dt,5,re),e.GBs(ht,5,re),e.GBs(pt,5,Y),e.GBs(ut,5,Y),e.GBs(gt,5,Y),e.GBs(mt,5,Y),e.GBs(ft,5,Y),e.GBs(vt,5,$)),2&i){let o;e.mGM(o=e.lsd())&&(n.leftOuterSelectionBarElement=o.first),e.mGM(o=e.lsd())&&(n.rightOuterSelectionBarElement=o.first),e.mGM(o=e.lsd())&&(n.fullBarElement=o.first),e.mGM(o=e.lsd())&&(n.selectionBarElement=o.first),e.mGM(o=e.lsd())&&(n.minHandleElement=o.first),e.mGM(o=e.lsd())&&(n.maxHandleElement=o.first),e.mGM(o=e.lsd())&&(n.floorLabelElement=o.first),e.mGM(o=e.lsd())&&(n.ceilLabelElement=o.first),e.mGM(o=e.lsd())&&(n.minHandleLabelElement=o.first),e.mGM(o=e.lsd())&&(n.maxHandleLabelElement=o.first),e.mGM(o=e.lsd())&&(n.combinedLabelElement=o.first),e.mGM(o=e.lsd())&&(n.ticksElement=o.first)}},hostVars:10,hostBindings:function(i,n){1&i&&e.bIt("resize",function(l){return n.onResize(l)},!1,e.tSv),2&i&&(e.BMQ("disabled",n.sliderElementDisabledAttr)("aria-label",n.sliderElementAriaLabel),e.AVh("ngx-slider",n.sliderElementNgxSliderClass)("vertical",n.sliderElementVerticalClass)("animate",n.sliderElementAnimateClass)("with-legend",n.sliderElementWithLegendClass))},inputs:{value:"value",highValue:"highValue",options:"options",manualRefresh:"manualRefresh",triggerFocus:"triggerFocus"},outputs:{valueChange:"valueChange",highValueChange:"highValueChange",userChangeStart:"userChangeStart",userChange:"userChange",userChangeEnd:"userChangeEnd"},features:[e.Jv_([yt]),e.OA$],decls:29,vars:13,consts:[["leftOuterSelectionBar",""],["rightOuterSelectionBar",""],["fullBar",""],["selectionBar",""],["minHandle",""],["maxHandle",""],["floorLabel",""],["ceilLabel",""],["minHandleLabel",""],["maxHandleLabel",""],["combinedLabel",""],["t
1icksElement",""],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-left-out-selection"],[1,"ngx-slider-span","ngx-slider-bar"],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-right-out-selection"],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-full-bar"],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-selection-bar"],[1,"ngx-slider-span","ngx-slider-bar","ngx-slider-selection",3,"ngStyle"],["ngxSliderHandle","",1,"ngx-slider-span","ngx-slider-pointer","ngx-slider-pointer-min",3,"ngStyle"],["ngxSliderHandle","",1,"ngx-slider-span","ngx-slider-pointer","ngx-slider-pointer-max",3,"ngStyle"],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-limit","ngx-slider-floor"],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-limit","ngx-slider-ceil"],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-model-value"],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-model-high"],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-combined"],["ngxSliderElement","",1,"ngx-slider-ticks",3,"hidden"],["class","ngx-slider-tick",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],[1,"ngx-slider-tick",3,"ngClass","ngStyle"],[3,"template","tooltip","placement"],["class","ngx-slider-span ngx-slider-tick-value",3,"template","tooltip","placement","content",4,"ngIf"],["class","ngx-slider-span ngx-slider-tick-legend",3,"innerText",4,"ngIf"],["class","ngx-slider-span ngx-slider-tick-legend",3,"innerHTML",4,"ngIf"],[1,"ngx-slider-span","ngx-slider-tick-value",3,"template","tooltip","placement","content"],[1,"ngx-slider-span","ngx-slider-tick-legend",3,"innerText"],[1,"ngx-slider-span","ngx-slider-tick-legend",3,"innerHTML"]],template:function(i,n){1&i&&(e.j41(0,"span",12,0),e.nrm(2,"span",13),e.k0s(),e.j41(3,"span",14,1),e.nrm(5,"span",13),e.k0s(),e.j41(6,"span",15,2),e.nrm(8,"span",13),e.k0s(),e.j41(9,"span",16,3),e.nrm(11,"span",17),e.k0s(),e.nrm(12,"span",18,4)(14,"span",19,5)(16,"span",20,6)(18,"span",21,7)(20,"span",22,8)(22,"span",23,9)(24,"span",24,10),e.j41(26,"span",25,11),e.DNE(28,Ct,5,10,"span",26),e.k0s()),2&i&&(e.R7$(6),e.AVh("ngx-slider-transparent",n.fullBarTransparentClass),e.R7$(3),e.AVh("ngx-slider-draggable",n.selectionBarDraggableClass),e.R7$(2),e.Y8G("ngStyle",n.barStyle),e.R7$(),e.Y8G("ngStyle",n.minPointerStyle),e.R7$(2),e.xc7("display",n.range?"inherit":"none"),e.Y8G("ngStyle",n.maxPointerStyle),e.R7$(12),e.AVh("ngx-slider-ticks-values-under",n.ticksUnderValuesClass),e.Y8G("hidden",!n.showTicks),e.R7$(2),e.Y8G("ngForOf",n.ticks))},dependencies:[u.YU,u.Sq,u.bT,u.B3,$,re,Y,Mt],styles:['.ngx-slider{display:inline-block;position:relative;height:4px;width:100%;margin:35px 0 15px;vertical-align:middle;-webkit-user-select:none;user-select:none;touch-action:pan-y}  .ngx-slider.with-legend{margin-bottom:40px}  .ngx-slider[disabled]{cursor:not-allowed}  .ngx-slider[disabled] .ngx-slider-pointer{cursor:not-allowed;background-color:#d8e0f3}  .ngx-slider[disabled] .ngx-slider-draggable{cursor:not-allowed}  .ngx-slider[disabled] .ngx-slider-selection{background:#8b91a2}  .ngx-slider[disabled] .ngx-slider-tick{cursor:not-allowed}  .ngx-slider[disabled] .ngx-slider-tick.ngx-slider-selected{background:#8b91a2}  .ngx-slider .ngx-slider-span{white-space:nowrap;position:absolute;display:inline-block}  .ngx-slider .ngx-slider-base{width:100%;height:100%;padding:0}  .ngx-slider .ngx-slider-bar-wrapper{left:0;box-sizing:border-box;margin-top:-16px;padding-top:16px;width:100%;height:32px;z-index:1}  .ngx-slider .ngx-slider-draggable{cursor:move}  .ngx-slider .ngx-slider-bar{left:0;width:100%;height:4px;z-index:1;background:#d8e0f3;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}  .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-transparent .ngx-slider-bar{background:transparent}  .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-left-out-selection .ngx-slider-bar{background:#df002d}  .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-right-out-selection .ngx-slider-bar{background:#03a688}  .ngx-slider .ngx-slider-selection{z-index:2;background:#0db9f0;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}  .ngx-slider .ngx-slider-pointer{cursor:pointer;width:32px;height:32px;top:-14px;background-color:#0db9f0;z-index:3;-webkit-border-radius:16px;-moz-border-radius:16px;border-radius:16px}  .ngx-slider .ngx-slider-pointer:after{content:"";width:8px;height:8px;position:absolute;top:12px;left:12px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;background:#fff}  .ngx-slider .ngx-slider-pointer:hover:after{background-color:#fff}  .ngx-slider .ngx-slider-pointer.ngx-slider-active{z-index:4}
1  .ngx-slider .ngx-slider-pointer.ngx-slider-active:after{background-color:#451aff}  .ngx-slider .ngx-slider-bubble{cursor:default;bottom:16px;padding:1px 3px;color:#55637d;font-size:16px}  .ngx-slider .ngx-slider-bubble.ngx-slider-limit{color:#55637d}  .ngx-slider .ngx-slider-ticks{box-sizing:border-box;width:100%;height:0;position:absolute;left:0;top:-3px;margin:0;z-index:1;list-style:none}  .ngx-slider .ngx-slider-ticks-values-under .ngx-slider-tick-value{top:auto;bottom:-36px}  .ngx-slider .ngx-slider-tick{text-align:center;cursor:pointer;width:10px;height:10px;background:#d8e0f3;border-radius:50%;position:absolute;top:0;left:0;margin-left:11px}  .ngx-slider .ngx-slider-tick.ngx-slider-selected{background:#0db9f0}  .ngx-slider .ngx-slider-tick-value{position:absolute;top:-34px;transform:translate(-50%)}  .ngx-slider .ngx-slider-tick-legend{position:absolute;top:24px;transform:translate(-50%);max-width:50px;white-space:normal}  .ngx-slider.vertical{position:relative;width:4px;height:100%;margin:0 20px;padding:0;vertical-align:baseline;touch-action:pan-x}  .ngx-slider.vertical .ngx-slider-base{width:100%;height:100%;padding:0}  .ngx-slider.vertical .ngx-slider-bar-wrapper{top:auto;left:0;margin:0 0 0 -16px;padding:0 0 0 16px;height:100%;width:32px}  .ngx-slider.vertical .ngx-slider-bar{bottom:0;left:auto;width:4px;height:100%}  .ngx-slider.vertical .ngx-slider-pointer{left:-14px!important;top:auto;bottom:0}  .ngx-slider.vertical .ngx-slider-bubble{left:16px!important;bottom:0}  .ngx-slider.vertical .ngx-slider-ticks{height:100%;width:0;left:-3px;top:0;z-index:1}  .ngx-slider.vertical .ngx-slider-tick{vertical-align:middle;margin-left:auto;margin-top:11px}  .ngx-slider.vertical .ngx-slider-tick-value{left:24px;top:auto;transform:translateY(-28%)}  .ngx-slider.vertical .ngx-slider-tick-legend{top:auto;right:24px;transform:translateY(-28%);max-width:none;white-space:nowrap}  .ngx-slider.vertical .ngx-slider-ticks-values-under .ngx-slider-tick-value{bottom:auto;left:auto;right:24px}  .ngx-slider *{transition:none}  .ngx-slider.animate .ngx-slider-bar-wrapper{transition:all linear .3s}  .ngx-slider.animate .ngx-slider-selection{transition:background-color linear .3s}  .ngx-slider.animate .ngx-slider-pointer{transition:all linear .3s}  .ngx-slider.animate .ngx-slider-pointer:after{transition:all linear .3s}  .ngx-slider.animate .ngx-slider-bubble{transition:all linear .3s}  .ngx-slider.animate .ngx-slider-bubble.ngx-slider-limit{transition:opacity linear .3s}  .ngx-slider.animate .ngx-slider-bubble.ngx-slider-combined{transition:opacity linear .3s}  .ngx-slider.animate .ngx-slider-tick{transition:background-color linear .3s}']})}return s})(),Et=(()=>{class s{static \u0275fac=function(i){return new(i||s)};static \u0275mod=e.$C({type:s});static \u0275inj=e.G2t({imports:[u.MD]})}return s})(),kt=(()=>{class s{constructor(){this.disabled=!1,this.rangeEvent=new e.bkB}ngOnInit(){this.minValue=Math.floor(this.minValue),this.maxValue=Math.ceil(this.maxValue),this.options={floor:Math.floor(this.minValue),ceil:Math.ceil(this.maxValue),disabled:this.disabled}}setValues(){this.rangeEvent.emit([this.minValue,this.maxValue])}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["kc-range-slider"]],inputs:{label:"label",minValue:"minValue",maxValue:"maxValue",unit:"unit",disabled:"disabled"},outputs:{rangeEvent:"rangeEvent"},standalone:!0,features:[e.aNF],decls:7,vars:8,consts:[[1,"range-slider"],[1,"range-slider-label"],["fxLayout","row","fxLayoutAlign","space-between center","fxLayoutGap","2px"],["type","number",3,"ngModelChange","ngModel"],[3,"valueChange","highValueChange","ngModelChange","value","highValue","options","ngModel"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"div",1),e.EFF(2),e.k0s(),e.j41(3,"div",2)(4,"input",3),e.mxI("ngModelChange",function(l){return e.DH7(n.minValue,l)||(n.minValue=l),l}),e.k0s(),e.j41(5,"ngx-slider",4),e.mxI("valueChange",function(l){return e.DH7(n.minValue,l)||(n.minValue=l),l})("highValueChange",function(l){return e.DH7(n.maxValue,l)||(n.maxValue=l),l}),e.bIt("valueChange",function(){return n.setValues()}),e.mxI("ngModelChange",function(l){return e.DH7(n.disabled,l)||(n.disabled=l),l}),e.k0s(),e.j41(6,"input",3),e.mxI("ngModelChange",function(l){return e.DH7(n.maxValue,l)||(n.maxValue=l),l}),e.k0s()()()),2&i&&(e.R7$(2),e.Lme("",n.label," (",n.unit,")"),e.R7$(2),e.R50("ngModel",n.minValue),e.R7$(),e.R50("value",n.minValue)("highValue",n.maxValue),e.Y8G("options",n.options),e.R50("ngModel",n.disabled),e.R7$(),e.R50("ngModel",n.maxValue))},dependencies:[u.MD,C.w2,C.DJ,C.BO,C.sA,m.YN,m.me,m.Q0,m.BC,m.vS,Et,ke],styles:["input[type=number][_ngcontent-%COMP%]{font-size:12px;text-align:center;padding:1px 2px;margin:0;width:30px;background-color:transparent;color:#fff;border:none;-moz-appearance:textfield}input[type=number][_ngcontent-%COMP%]:focus{border-bottom:1px solid var(--primary);outline:0!important}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
1ngx-slider[_ngcontent-%COMP%]{display:block}"]})}}return s})();const St=s=>({filter:s});function Lt(s,a){1&s&&e.eu8(0)}function Tt(s,a){if(1&s&&(e.qex(0),e.DNE(1,Lt,1,0,"ng-container",5),e.bVm()),2&s){const t=a.$implicit;e.XpG();const i=e.sdS(3),n=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet","strings"===t.type?i:n)("ngTemplateOutletContext",e.eq3(2,St,t))}}function Vt(s,a){if(1&s&&(e.j41(0,"mat-option",10),e.EFF(1),e.k0s()),2&s){const t=a.$implicit;e.Y8G("value",t),e.R7$(),e.SpI(" ",t," ")}}function Ft(s,a){if(1&s){const t=e.RV6();e.j41(0,"mat-form-field",6)(1,"mat-label"),e.EFF(2),e.k0s(),e.j41(3,"mat-select",7),e.bIt("selectionChange",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.onSelect())}),e.j41(4,"mat-option",8),e.EFF(5,"All"),e.k0s(),e.DNE(6,Vt,2,2,"mat-option",9),e.k0s()()}if(2&s){const t=a.filter;e.R7$(2),e.JRh(t.name),e.R7$(),e.Y8G("formControlName",t.name),e.R7$(3),e.Y8G("ngForOf",t.values)}}function Ht(s,a){if(1&s){const t=e.RV6();e.j41(0,"kc-range-slider",12),e.bIt("rangeEvent",function(n){e.eBV(t);const o=e.XpG().filter,l=e.XpG(2);return e.Njj(l.receiveRange(n,o.name))}),e.k0s()}if(2&s){const t=e.XpG().filter;e.Y8G("minValue",t.values[0])("maxValue",t.values[t.values.length-1])("label",t.name)("unit",t.unit)}}function Rt(s,a){if(1&s&&e.DNE(0,Ht,1,4,"kc-range-slider",11),2&s){const t=e.XpG(2);e.vxM(t.isBrowser?0:-1)}}function Dt(s,a){if(1&s&&(e.j41(0,"form",3),e.DNE(1,Tt,2,4,"ng-container",4)(2,Ft,7,3,"ng-template",null,0,e.C5r)(4,Rt,1,1,"ng-template",null,1,e.C5r),e.k0s()),2&s){const t=e.XpG();e.Y8G("formGroup",t.specsForm),e.R7$(),e.Y8G("ngForOf",t.selectableSpecs)}}let Bt=(()=>{class s{constructor(t){this.platformId=t,this.productsService=(0,e.WQX)(U),this.fb=(0,e.WQX)(m.ze),this.isBrowser=(0,u.UE)(this.platformId)}ngOnInit(){this.sub=this.productsService.selectableSpecs$.pipe((0,M.F)((t,i)=>JSON.stringify(t)===JSON.stringify(i))).subscribe(t=>{t&&(this.specsForm=this.fb.group({}),this.selectableSpecs=t,this.createForm(t))})}createForm(t){for(const i of t)this.specsForm.addControl(i.name,this.fb.control("all"))}receiveRange(t,i){const n=this.specsForm.get(i);n&&(n.patchValue(t),this.onSelect())}onSelect(){this.productsService.selectedSpecs$.next(null),this.productsService.selectedSpecs$.next(this.specsForm.value)}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}static{this.\u0275fac=function(i){return new(i||s)(e.rXU(e.Agw))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["kc-specs-filter"]],standalone:!0,features:[e.aNF],decls:1,vars:1,consts:[["strings",""],["numbers",""],["fxLayout.xs","column","fxLayout.gt-md","row","fxLayoutAlign.gt-md","start center","fxLayoutGap.gt-md","16px",3,"formGroup",4,"ngIf"],["fxLayout.xs","column","fxLayout.gt-md","row","fxLayoutAlign.gt-md","start center","fxLayoutGap.gt-md","16px",3,"formGroup"],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["appearance","fill",1,"dark-mode","product-header-form-field"],[3,"selectionChange","formControlName"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[3,"minValue","maxValue","label","unit"],[3,"rangeEvent","minValue","maxValue","label","unit"]],template:function(i,n){1&i&&e.DNE(0,Dt,6,2,"form",2),2&i&&e.Y8G("ngIf",n.selectableSpecs)},dependencies:[u.MD,u.Sq,u.bT,u.T3,m.YN,m.qT,m.BC,m.cb,C.w2,C.DJ,C.BO,C.sA,m.X1,m.j4,m.JD,E.RG,E.rl,E.nJ,k.Ve,k.VO,H.wT,H.Sy,kt],styles:["header[_ngcontent-%COMP%]{position:relative}.loading-bg[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover;background-image:url(/assets/images/defaults/default-category-bg-tiny.jpg)}.catalogue-btn[_ngcontent-%COMP%]{margin-bottom:16px}.bg[_ngcontent-%COMP%], #filters[_ngcontent-%COMP%], #category-info[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover}#filters[_ngcontent-%COMP%]{position:relative;z-index:2;overflow:hidden;color:#fff;padding-top:16px}@media screen and (min-width: 1280px){#filters[_ngcontent-%COMP%]{padding-top:32px}}#filters[_ngcontent-%COMP%]   .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:16px}#category-info[_ngcontent-%COMP%]{margin-top:16px}.bg-image[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:1}.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:100%}@media screen and (min-width: 600px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:178px}}@media screen and (min-width: 635px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:190px}}@media screen and (min-width: 700px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:initial}}
1mat-option[_ngcontent-%COMP%]{font-size:14px}.sub-heading[_ngcontent-%COMP%]{margin-bottom:6px}.filter-panel[_ngcontent-%COMP%]{margin-top:8px}.placeholder[_ngcontent-%COMP%]{height:71px;width:0}[_nghost-%COMP%]     .mat-mdc-text-field-wrapper{background-color:#fff3!important}.mdc-text-field--filled[_ngcontent-%COMP%]{background-color:none}  .mat-mdc-select-value-text{font-size:14px}#brand-logo[_ngcontent-%COMP%]{display:none;position:absolute;right:40px;top:calc(50% - 40px);height:50px;width:200px;z-index:3}@media screen and (min-width: 1280px){#brand-logo[_ngcontent-%COMP%]{display:block}}.filter-skeleton[_ngcontent-%COMP%]{display:block;width:212px;margin-bottom:16px}"]})}}return s})();var ce=c(6471);function It(s,a){if(1&s&&(e.j41(0,"mat-chip-option",4),e.EFF(1),e.k0s()),2&s){const t=a.$implicit,i=e.XpG(2);e.xc7("pointer-events",t.id===i.selectedCategoryId?"none":"auto"),e.Y8G("value",t)("selected",t.id===i.selectedCategoryId),e.R7$(),e.SpI(" ",t.name," ")}}function Nt(s,a){if(1&s){const t=e.RV6();e.j41(0,"mat-chip-listbox",1),e.bIt("change",function(n){e.eBV(t);const o=e.XpG();return e.Njj(o.onSelect(n))}),e.j41(1,"div",2),e.Z7z(2,It,2,5,"mat-chip-option",3,e.fX1),e.k0s()()}if(2&s){const t=e.XpG();e.R7$(2),e.Dyx(t.categories)}}let At=(()=>{class s{constructor(){this.productsService=(0,e.WQX)(U),this.router=(0,e.WQX)(O.Ix),this.selectedCategoryId=null,this.config={slidesPerView:"auto",freeMode:!0,scrollbar:{el:".swiper-scrollbar",hide:!1}}}ngOnInit(){this.sub=this.productsService.getAllCategories().subscribe(t=>{this.categories=t.sort((i,n)=>i.name.localeCompare(n.name))}),this.productsService.activeCategory$.subscribe(t=>{this.selectedCategoryId=t?.id||null})}onSelect(t){const i=["products"];t.value&&i.push(t.value.id),this.router.navigate(i,{queryParams:null})}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["kc-category-chips"]],standalone:!0,features:[e.aNF],decls:1,vars:1,consts:[["aria-label","category selection","role","listbox",1,"category-chips"],["aria-label","category selection","role","listbox",1,"category-chips",3,"change"],[1,"category-chips-wrapper"],[1,"category-chip",3,"value","selected","pointer-events"],[1,"category-chip",3,"value","selected"]],template:function(i,n){1&i&&e.DNE(0,Nt,4,0,"mat-chip-listbox",0),2&i&&e.vxM(n.categories?0:-1)},dependencies:[u.MD,C.w2,ce.YN,ce.uI,ce.gq],styles:[".category-chips[_ngcontent-%COMP%]{margin-bottom:10px}.category-chips[_ngcontent-%COMP%]   swiper-container[_ngcontent-%COMP%]{height:100%;max-height:100vw;min-height:0;min-width:0;max-width:100vw;width:100%;overflow:hidden}.category-chips[_ngcontent-%COMP%]   swiper-slide[_ngcontent-%COMP%]{width:auto;flex-shrink:0;display:block;height:100%;max-height:100%}.category-chips[_ngcontent-%COMP%]   .swiper-wrapper[_ngcontent-%COMP%]{max-height:100%;height:100% t;display:flex}","header[_ngcontent-%COMP%]{position:relative}.loading-bg[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover;background-image:url(/assets/images/defaults/default-category-bg-tiny.jpg)}.catalogue-btn[_ngcontent-%COMP%]{margin-bottom:16px}.bg[_ngcontent-%COMP%], #filters[_ngcontent-%COMP%], #category-info[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover}#filters[_ngcontent-%COMP%]{position:relative;z-index:2;overflow:hidden;color:#fff;padding-top:16px}@media screen and (min-width: 1280px){#filters[_ngcontent-%COMP%]{padding-top:32px}}#filters[_ngcontent-%COMP%]   .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:16px}#category-info[_ngcontent-%COMP%]{margin-top:16px}.bg-image[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:1}.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:100%}@media screen and (min-width: 600px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:178px}}@media screen and (min-width: 635px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:190px}}@media screen and (min-width: 700px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:initial}}
1mat-option[_ngcontent-%COMP%]{font-size:14px}.sub-heading[_ngcontent-%COMP%]{margin-bottom:6px}.filter-panel[_ngcontent-%COMP%]{margin-top:8px}.placeholder[_ngcontent-%COMP%]{height:71px;width:0}[_nghost-%COMP%]     .mat-mdc-text-field-wrapper{background-color:#fff3!important}.mdc-text-field--filled[_ngcontent-%COMP%]{background-color:none}  .mat-mdc-select-value-text{font-size:14px}#brand-logo[_ngcontent-%COMP%]{display:none;position:absolute;right:40px;top:calc(50% - 40px);height:50px;width:200px;z-index:3}@media screen and (min-width: 1280px){#brand-logo[_ngcontent-%COMP%]{display:block}}.filter-skeleton[_ngcontent-%COMP%]{display:block;width:212px;margin-bottom:16px}"]})}}return s})();function Ut(s,a){if(1&s){const t=e.RV6();e.j41(0,"mat-form-field",0)(1,"mat-label"),e.EFF(2,"Brand"),e.k0s(),e.j41(3,"mat-select",1),e.mxI("valueChange",function(n){e.eBV(t);const o=e.XpG();return e.DH7(o.brands[0].id,n)||(o.brands[0].id=n),e.Njj(n)}),e.j41(4,"mat-option",2),e.EFF(5),e.k0s()()()}if(2&s){const t=e.XpG();e.R7$(3),e.R50("value",t.brands[0].id),e.R7$(),e.Y8G("value",t.brands[0].id),e.R7$(),e.SpI(" ",t.brands[0].name," ")}}function Gt(s,a){if(1&s&&(e.j41(0,"mat-option",2),e.EFF(1),e.k0s()),2&s){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.SpI(" ",t.name," ")}}function $t(s,a){if(1&s){const t=e.RV6();e.j41(0,"mat-form-field",0)(1,"mat-label"),e.EFF(2,"Brand"),e.k0s(),e.j41(3,"mat-select",3),e.bIt("selectionChange",function(n){e.eBV(t);const o=e.XpG();return e.Njj(o.onSelect(n))}),e.mxI("valueChange",function(n){e.eBV(t);const o=e.XpG();return e.DH7(o.selectedBrandId,n)||(o.selectedBrandId=n),e.Njj(n)}),e.j41(4,"mat-option",4),e.EFF(5,"All"),e.k0s(),e.DNE(6,Gt,2,2,"mat-option",5),e.k0s()()}if(2&s){const t=e.XpG();e.R7$(3),e.R50("value",t.selectedBrandId),e.R7$(3),e.Y8G("ngForOf",t.brands)}}let jt=(()=>{class s{constructor(){this.productsService=(0,e.WQX)(U),this.router=(0,e.WQX)(O.Ix),this.route=(0,e.WQX)(O.nX)}ngOnInit(){this.sub=this.productsService.selectedBrandId$.subscribe(t=>this.selectedBrandId=t||"all")}onSelect(t){this.router.navigate([],{relativeTo:this.route,queryParams:{brand:"all"==t.value?null:t.value},queryParamsHandling:"merge"})}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["kc-brand-filter"]],inputs:{brands:"brands"},standalone:!0,features:[e.aNF],decls:2,vars:2,consts:[["appearance","fill",1,"dark-mode","product-header-form-field"],[3,"valueChange","value"],[3,"value"],[3,"selectionChange","valueChange","value"],["value","all"],[3,"value",4,"ngFor","ngForOf"]],template:function(i,n){1&i&&e.DNE(0,Ut,6,3,"mat-form-field",0)(1,$t,7,2,"mat-form-field",0),2&i&&(e.vxM(1===n.brands.length?0:-1),e.R7$(),e.vxM(n.brands.length>1?1:-1))},dependencies:[E.RG,E.rl,E.nJ,k.Ve,k.VO,H.wT,H.Sy,u.pM],styles:["header[_ngcontent-%COMP%]{position:relative}.loading-bg[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover;background-image:url(/assets/images/defaults/default-category-bg-tiny.jpg)}.catalogue-btn[_ngcontent-%COMP%]{margin-bottom:16px}.bg[_ngcontent-%COMP%], #filters[_ngcontent-%COMP%], #category-info[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover}#filters[_ngcontent-%COMP%]{position:relative;z-index:2;overflow:hidden;color:#fff;padding-top:16px}@media screen and (min-width: 1280px){#filters[_ngcontent-%COMP%]{padding-top:32px}}#filters[_ngcontent-%COMP%]   .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:16px}#category-info[_ngcontent-%COMP%]{margin-top:16px}.bg-image[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:1}.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:100%}@media screen and (min-width: 600px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:178px}}@media screen and (min-width: 635px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:190px}}@media screen and (min-width: 700px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:initial}}
1mat-option[_ngcontent-%COMP%]{font-size:14px}.sub-heading[_ngcontent-%COMP%]{margin-bottom:6px}.filter-panel[_ngcontent-%COMP%]{margin-top:8px}.placeholder[_ngcontent-%COMP%]{height:71px;width:0}[_nghost-%COMP%]     .mat-mdc-text-field-wrapper{background-color:#fff3!important}.mdc-text-field--filled[_ngcontent-%COMP%]{background-color:none}  .mat-mdc-select-value-text{font-size:14px}#brand-logo[_ngcontent-%COMP%]{display:none;position:absolute;right:40px;top:calc(50% - 40px);height:50px;width:200px;z-index:3}@media screen and (min-width: 1280px){#brand-logo[_ngcontent-%COMP%]{display:block}}.filter-skeleton[_ngcontent-%COMP%]{display:block;width:212px;margin-bottom:16px}"]})}}return s})();const Xt=s=>({"background-image":s});function zt(s,a){1&s&&e.nrm(0,"kc-category-chips")}function Yt(s,a){if(1&s){const t=e.RV6();e.j41(0,"mat-accordion",4)(1,"mat-expansion-panel",5),e.bIt("opened",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.mobileCategoriesOpen=!0)})("closed",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.mobileCategoriesOpen=!1)}),e.j41(2,"mat-expansion-panel-header")(3,"mat-panel-title"),e.EFF(4,"Search by category"),e.k0s()(),e.nrm(5,"kc-category-filters"),e.k0s()()}if(2&s){const t=e.XpG(2);e.R7$(),e.Y8G("expanded",t.mobileCategoriesOpen)}}function Wt(s,a){if(1&s&&e.DNE(0,zt,1,0,"kc-category-chips")(1,Yt,6,1,"mat-accordion",4),2&s){const t=e.XpG();e.vxM(t.isSingleCategory?0:1)}}function Kt(s,a){1&s&&e.nrm(0,"kc-category-chips")}function Jt(s,a){1&s&&e.nrm(0,"kc-category-filters")}function Qt(s,a){if(1&s&&e.nrm(0,"kc-brand-filter",9),2&s){const t=e.XpG();e.Y8G("brands",t)}}function Zt(s,a){if(1&s&&e.DNE(0,Qt,1,1,"kc-brand-filter",9),2&s){const t=a,i=e.XpG(2);e.vxM(t.length>0&&!i.isKubotaOnly(t)?0:-1)}}function qt(s,a){1&s&&e.nrm(0,"kc-application-filters")}function ei(s,a){1&s&&e.DNE(0,qt,1,0,"kc-application-filters",10),2&s&&e.Y8G("ngIf",a.length>0)}function ti(s,a){1&s&&e.nrm(0,"kc-skeleton-image",8),2&s&&e.Y8G("height","54px")}function ii(s,a){1&s&&e.nrm(0,"kc-range-filter")}function ni(s,a){1&s&&e.DNE(0,ii,1,0,"kc-range-filter",10),2&s&&e.Y8G("ngIf",a.length>0)}function si(s,a){1&s&&e.nrm(0,"kc-skeleton-image",8),2&s&&e.Y8G("height","54px")}function oi(s,a){1&s&&e.nrm(0,"kc-specs-filter")}function ai(s,a){if(1&s&&e.DNE(0,oi,1,0,"kc-specs-filter",10),2&s){const t=e.XpG(2);e.Y8G("ngIf",null==t.activeCategory?null:t.activeCategory.filters)}}function li(s,a){if(1&s&&(e.j41(0,"div",6),e.EFF(1,"Search by category:"),e.k0s(),e.j41(2,"div",4),e.DNE(3,Kt,1,0,"kc-category-chips")(4,Jt,1,0,"kc-category-filters"),e.j41(5,"div",6),e.EFF(6,"Filter by specifications:"),e.k0s(),e.j41(7,"div",7),e.DNE(8,Zt,1,1),e.nI1(9,"async"),e.DNE(10,ei,1,1,"kc-application-filters"),e.nI1(11,"async"),e.DNE(12,ti,1,1,"kc-skeleton-image",8)(13,ni,1,1,"kc-range-filter"),e.nI1(14,"async"),e.DNE(15,si,1,1,"kc-skeleton-image",8)(16,ai,1,1,"kc-specs-filter"),e.k0s()()),2&s){let t,i,n;const o=e.XpG();e.R7$(3),e.vxM(o.isSingleCategory?3:4),e.R7$(5),e.vxM((t=e.bMT(9,5,o.productsService.selectableBrands$))?8:-1,t),e.R7$(2),e.vxM((i=e.bMT(11,7,o.productsService.selectableApplications$))?10:12,i),e.R7$(3),e.vxM((n=e.bMT(14,9,o.productsService.selectableRanges$))?13:15,n),e.R7$(3),e.vxM(o.activeCategory&&o.activeCategory.filters?16:-1)}}function ri(s,a){if(1&s&&e.nrm(0,"div",3),2&s){const t=e.XpG();e.Y8G("inlineSVG",t.brandLogo)}}let ci=(()=>{class s{constructor(){this.isSingleCategory=!1,this.productsService=(0,e.WQX)(U),this.mediaObserver=(0,e.WQX)(f.nJ),this.dialog=(0,e.WQX)(x.bZ),this.isMobile$=new v.t(!1),this.mobileCategoriesOpen=!1,this.brandLogo=void 0,this.brandLogos=[{id:"kubota-implements",logo:"implements.svg"},{id:"landpride",logo:"landpride.svg"},{id:"toku",logo:"toku.svg"},{id:"baroness",logo:"baroness.svg"},{id:"baroness",logo:"baroness.svg"}]}ngOnInit(){this.getCategories(),this.getMediaQuery(),this.setBrandLogo()}getCategories(){this.catSub=this.productsService.activeCategory$.subscribe(t=>{t&&(this.activeCategory=t,this.productsService.specsFilterNames$.next(t.filters??null),this.setBgImage(t))})}setBgImage(t){this.bg=`linear-gradient( to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7) ), url(${t.image?t.image[1632]:"/assets/images/defaults/default-category-bg.jpg"})`}getMediaQuery(){const t=i=>i[0].mqAlias;this.mediaSub=this.mediaObserver.asObservable().pipe((0,M.F)((i,n)=>t(i)===t(n))).subscribe(i=>
1{this.isMobile$.next(!1),i.forEach(n=>{"lt-lg"===n.mqAlias&&this.isMobile$.next(!0)})})}openCatalogueDialog(){this.dialog.open(Ge,{data:this.activeCategory.onlineCatalogue,width:"95%",height:"90%"})}setBrandLogo(){this.productsService.selectedBrandId$.subscribe(t=>{this.brandLogo=void 0,this.brandLogos.map(n=>n.id).forEach(n=>{if(t?.includes(n)){const o=this.brandLogos.find(l=>l.id===n)?.logo;o&&(this.brandLogo=`assets/logos/${o}`)}})})}isKubotaOnly(t){return!!this.isSingleCategory||1===t.length&&this.isKubota(t[0])}isKubota(t){return"kubota"===t.id}ngOnDestroy(){this.mediaSub.unsubscribe(),this.catSub.unsubscribe()}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["kc-products-header"]],inputs:{isSingleCategory:"isSingleCategory"},standalone:!0,features:[e.aNF],decls:9,vars:7,consts:[[1,"loading-bg"],["id","filters",1,"content","bg",3,"ngStyle"],[1,"h1"],["id","brand-logo",1,"dark-mode",3,"inlineSVG"],[1,"dark-mode"],[1,"dark-mode",3,"opened","closed","expanded"],[1,"sub-heading"],["fxLayout","column","fxLayout","row wrap","fxLayoutGap","16px"],[1,"filter-skeleton",3,"height"],[3,"brands"],[4,"ngIf"]],template:function(i,n){1&i&&(e.j41(0,"header")(1,"div",0)(2,"div",1)(3,"div",2),e.EFF(4,"Products"),e.k0s(),e.DNE(5,Wt,2,1),e.nI1(6,"async"),e.DNE(7,li,17,11),e.k0s()(),e.DNE(8,ri,1,1,"div",3),e.k0s()),2&i&&(e.R7$(2),e.Y8G("ngStyle",e.eq3(5,Xt,n.bg)),e.R7$(3),e.vxM(e.bMT(6,3,n.isMobile$)?5:7),e.R7$(3),e.vxM(n.brandLogo?8:-1))},dependencies:[u.MD,u.bT,u.B3,u.Jj,w,At,Fe,T.MY,T.BS,T.GK,T.Z2,T.WN,pe.e1,pe.ll,Ne,jt,Bt,C.w2,C.DJ,C.BO,W.G],styles:["header[_ngcontent-%COMP%]{position:relative}.loading-bg[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover;background-image:url(/assets/images/defaults/default-category-bg-tiny.jpg)}.catalogue-btn[_ngcontent-%COMP%]{margin-bottom:16px}.bg[_ngcontent-%COMP%], #filters[_ngcontent-%COMP%], #category-info[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover}#filters[_ngcontent-%COMP%]{position:relative;z-index:2;overflow:hidden;color:#fff;padding-top:16px}@media screen and (min-width: 1280px){#filters[_ngcontent-%COMP%]{padding-top:32px}}#filters[_ngcontent-%COMP%]   .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:16px}#category-info[_ngcontent-%COMP%]{margin-top:16px}.bg-image[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:1}.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:100%}@media screen and (min-width: 600px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:178px}}@media screen and (min-width: 635px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:190px}}@media screen and (min-width: 700px){.product-header-form-field[_ngcontent-%COMP%], .range-slider[_ngcontent-%COMP%]{width:initial}}mat-option[_ngcontent-%COMP%]{font-size:14px}.sub-heading[_ngcontent-%COMP%]{margin-bottom:6px}.filter-panel[_ngcontent-%COMP%]{margin-top:8px}.placeholder[_ngcontent-%COMP%]{height:71px;width:0}[_nghost-%COMP%]     .mat-mdc-text-field-wrapper{background-color:#fff3!important}.mdc-text-field--filled[_ngcontent-%COMP%]{background-color:none}  .mat-mdc-select-value-text{font-size:14px}#brand-logo[_ngcontent-%COMP%]{display:none;position:absolute;right:40px;top:calc(50% - 40px);height:50px;width:200px;z-index:3}@media screen and (min-width: 1280px){#brand-logo[_ngcontent-%COMP%]{display:block}}.filter-skeleton[_ngcontent-%COMP%]{display:block;width:212px;margin-bottom:16px}"]})}}return s})();var di=c(6697),hi=c(9877);let pi=(()=>{class s{transform(t){return t&&(t.split("-").join(" "),t[0].toUpperCase()+t.substr(1).toLowerCase())}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275pipe=e.EJ8({name:"capitalize",type:s,pure:!0,standalone:!0})}}return s})(),ui=(()=>{class s{transform(t){return t&&("hay-silage"==t&&(t="Hay & Silage Equipment"),"landpride"==t&&(t="Land Pride"),"kubota-implements"==t&&(t="Kubota"),(t=t.replace(/-/g," ")).replace(/\w\S*/g,function(i){return i.charAt(0).toUpperCase()+i.substr(1).toLowerCase()}))}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275pipe=e.EJ8({name:"cleanApplication",type:s,pure:!0,standalone:!0})}}return s})();var Se=c(9213),gi=c(2494),Le=c(4505),de=c(642),mi=c(5558),he=c(6354);let U=(()=>{class s{constructor(t,i,n){this.productService=t,this.categoryService=i,this.coreService=n,this.products$=new v.t(null),this.selectedCategoryIds$=new v.t(null),this.activeCategory$=new v.t(null),this.selectedApplicationId$=new v.t(null),this.selectableApplications$=new v.t(null),this.selectedTypeId$=new v.t(null),this.selectableTypes$=new v.t(null),this.selectedBrandId$=new v.t(null),this.selectableBrands$=new v.t(null),this.selectedRangeId$=new v.t(null),this.selectableRanges$=new v.t(null),this.specsFilterNames$=ne
1w v.t(null),this.selectedSpecs$=new v.t(null),this.selectableSpecs$=new v.t(null),this.apiUrl=this.coreService.getAPIUrl(),this.brand=this.coreService.getBrand()}filterProducts(){this.selectedCategoryIds$.pipe((0,mi.n)(t=>(this.products$.next(null),(0,j.z)([this.getProducts(t[t.length-1]),this.selectedApplicationId$,this.selectedRangeId$,this.selectedBrandId$,this.selectedSpecs$.pipe((0,he.T)(n=>n),(0,M.F)((n,o)=>JSON.stringify(n)===JSON.stringify(o)))]).pipe((0,he.T)(([n,o,l,d,p])=>{this.setSelectableApplications(n),this.setSelectableBrands(n),this.setSelectableRanges(n),this.setSelectableSpecs(n),o&&(n=this.filterByTag("applications",o,n)),l&&(n=this.filterByTag("ranges",l,n)),d&&(n=this.filterByTag("brands",d,n)),p&&(n=this.filterBySpecs(p,n));const b=["bxmas-offer","bxmas-offer1","orange-october","demo-product2"];return n.filter(g=>!b.includes(g.id))}),(0,he.T)(n=>n.map(o=>({id:o.id,displayName:o.name,text:"View Details",image:o.image,route:`/product/${o.id}`,tag:this.getTag(o)}))))))).subscribe(this.products$)}getTag(t){let i=null;if(t.mainSpecs){const n=t.mainSpecs.find(o=>"Engine Gross"==o.name);n&&(i=this.getTagForNumericValues(n.values,"HP"))}return i}getTagForNumericValues(t,i){let n=null;const o=t[0],l=t[t.length-1];return n=`${o} ${i}`,t.length>1&&o!=l&&(n=`${o} - ${l} ${i}`),n}filterByTag(t,i,n){return n.filter(o=>!!o[t]&&void 0!==o[t]?.find(l=>l.id==i))}filterBySpecs(t,i){for(const n in t)null==t[n]||"all"==t[n]||(i=i.filter("string"==typeof t[n]?o=>this.filterByStringSpecs(o,n,t[n]):o=>this.filterByRangeSpecs(o,n,t[n])));return i}filterByStringSpecs(t,i,n){let o=!0;const l=t.mainSpecs.find(d=>d.name==i);return(!l||!l.values.includes(n))&&(o=!1),o}filterByRangeSpecs(t,i,n){let o=!1;const l=n[0],d=n[1],p=t.mainSpecs?.find(b=>b.name==i);return p&&p.values&&p.values.forEach(b=>{b>=l&&b<=d&&(o=!0)}),o}setSelectableApplications(t){const i=this.getSelectableTags("applications",t);this.selectableApplications$.next(i)}setSelectableBrands(t){const i=this.getSelectableTags("brands",t);this.selectableBrands$.next(i)}setSelectableRanges(t){const i=this.getSelectableTags("ranges",t);this.selectableRanges$.next(i)}getSelectableTags(t,i){const n=[];return i.forEach(o=>{o[t]&&o[t]?.forEach(l=>n.push(l))}),this.removeDuplicates(n)}setSelectableSpecs(t){const i=this.getMainSpecsOfAllProducts(t),o=this.getSpecsNames(i).map(l=>{const d=i.find(g=>g.name==l),p=this.getSpecsValues(l,i),b="strings"==d?.type?p.sort():p.sort((g,y)=>g-y);return{name:l,values:b,type:d?.type,unit:d?.unit}});this.selectedSpecs$.next(null),this.selectableSpecs$.next(o)}getMainSpecsOfAllProducts(t){const i=t.filter(n=>n.mainSpecs).map(n=>n.mainSpecs);return[].concat(...i)}getSpecsValues(t,i){const n=[].concat(...i.filter(o=>o.name==t).map(o=>o.values));return[...new Set(n)]}removeDuplicates(t){return t.filter((i,n,o)=>o.findIndex(l=>l.id===i.id)===n)}getSpecsNames(t){const i=t.map(n=>n.name);return[...new Set(i)]}resetSelectables(){this.selectableApplications$.next(null),this.selectableTypes$.next(null),this.selectableBrands$.next(null),this.selectableRanges$.next(null),this.selectableSpecs$.next(null),this.selectedSpecs$.next(null)}getProducts(t){return t||(t=this.brand),this.productService.getProducts(this.apiUrl,t)}getAllCategories(){return this.categoryService.getAllCategories(this.apiUrl)}getCategoryDetails(t){return t||(t=this.brand),this.categoryService.getCategoryDetails(this.apiUrl,t)}static{this.\u0275fac=function(i){return new(i||s)(e.KVO(de.bk),e.KVO(de.wn),e.KVO(de.PX))}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var fi=c(2353);const vi=()=>[],bi=s=>[s];function xi(s,a){1&s&&(e.EFF(0),e.nI1(1,"cleanApplication")),2&s&&e.SpI(" ",e.bMT(1,1,a)," ")}function _i(s,a){1&s&&(e.EFF(0),e.nI1(1,"cleanApplication")),2&s&&e.SpI(" - ",e.bMT(1,1,a)," ")}function Oi(s,a){1&s&&(e.EFF(0),e.nI1(1,"cleanApplication")),2&s&&e.SpI(" - ",e.bMT(1,1,a)," ")}function Ci(s,a){if(1&s&&(e.j41(0,"div",6),e.EFF(1),e.k0s()),2&s){const t=e.XpG();e.R7$(),e.JRh(t.metaTitle)}}function wi(s,a){if(1&s){const t=e.RV6();e.j41(0,"button",10),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.openCatalogueDialog())}),e.EFF(1),e.k0s()}if(2&s){const t=e.XpG();e.R7$(),e.SpI(" ",t.onlineCatalogue.buttonText," ")}}function Mi(s,a){if(1&s&&(e.j41(0,"section",1)(1,"div",5)(2,"div")(3,"h1"),e.DNE(4,xi,2,3),e.nI1(5,"async"),e.EFF(6),e.nI1(7,"safeAmpersand"),e.nI1(8,"capitalize"),e.DNE(9,_i,2,3),e.nI1(10,"async"),e.DNE(11,Oi,2,3),e.nI1(12,"async"),e.k0s(),e.DNE(13,Ci,2,1,"div",6),e.k0s(),e.j41(14,"div",7)(1
15,"button",8)(16,"mat-icon"),e.EFF(17,"attach_money"),e.k0s(),e.EFF(18," Finance Offers "),e.k0s(),e.DNE(19,wi,2,1,"button",9),e.k0s()()()),2&s){let t,i,n;const o=a,l=e.XpG();e.R7$(4),e.vxM((t=e.bMT(5,7,l.productsService.selectedBrandId$))?4:-1,t),e.R7$(2),e.SpI(" ",e.bMT(8,11,e.bMT(7,9,o.name))," "),e.R7$(3),e.vxM((i=e.bMT(10,13,l.productsService.selectedApplicationId$))?9:-1,i),e.R7$(2),e.vxM((n=e.bMT(12,15,l.productsService.selectedRangeId$))?11:-1,n),e.R7$(2),e.vxM(o.metaTitle?13:-1),e.R7$(2),e.Y8G("routerLink","/finance"),e.R7$(4),e.vxM(o.onlineCatalogue?19:-1)}}function Pi(s,a){1&s&&(e.j41(0,"div",1)(1,"div",11),e.nrm(2,"kc-skeleton-image",12),e.k0s()()),2&s&&(e.R7$(2),e.Y8G("height","24px")("width","150px"))}function yi(s,a){1&s&&e.nrm(0,"kc-product-card-list",2),2&s&&e.Y8G("cards",a)}function Ei(s,a){1&s&&e.nrm(0,"kc-skeleton-card",14)}function ki(s,a){1&s&&(e.j41(0,"div",3),e.DNE(1,Ei,1,0,"kc-skeleton-card",13),e.k0s()),2&s&&(e.R7$(),e.Y8G("ngForOf",e.lJ4(1,vi).constructor(4)))}function Si(s,a){1&s&&e.nrm(0,"section",4),2&s&&e.Y8G("innerHTML",a.description,e.npT)}function Li(s,a){if(1&s&&(e.j41(0,"section",1)(1,"div"),e.nrm(2,"app-postcode-form",15),e.k0s()()),2&s){const t=e.XpG();e.R7$(2),e.Y8G("categories",e.eq3(1,bi,t.id))}}function Ti(s,a){1&s&&e.DNE(0,Li,3,3,"section",1),2&s&&e.vxM(a.id?0:-1)}let Te=(()=>{class s{constructor(t,i,n,o,l){this.productsService=t,this.route=i,this.dialog=n,this.seoService=o,this.platformId=l,this.isSingleCategory=!0,this.isBrowser=(0,u.UE)(this.platformId)}ngOnInit(){this.setFilterType(),this.getRouteParameters(),this.getQueryParameters(),this.productsService.filterProducts(),console.log("[PRODUCTS] ProductsComponent loaded")}setFilterType(){"kubota"===this.route.snapshot.data.name&&(this.isSingleCategory=!1),this.route.snapshot.data.isDealer&&(this.isSingleCategory=!1)}getRouteParameters(){this.sub=this.route.url.subscribe(t=>{this.productsService.resetSelectables();const i=t.map(n=>n.path);this.productsService.selectedCategoryIds$.next(i),this.getActiveCategoryDetails(i)})}getQueryParameters(){this.route.queryParams.subscribe(t=>{this.productsService.selectedApplicationId$.next(t.application?t.application:null),this.productsService.selectedTypeId$.next(t.type?t.type:null),this.productsService.selectedBrandId$.next(t.brand?t.brand:null),this.productsService.selectedRangeId$.next(t.range?t.range:null)})}getActiveCategoryDetails(t){const i=t[t.length-1];this.productsService.activeCategory$.next(null),this.productsService.getCategoryDetails(i).pipe((0,di.s)(1)).subscribe(n=>{this.productsService.activeCategory$.next(n)})}cleanMeta(t){return(t||"").replace(/<[^>]*>/g,"").replace(/getAppName\s*\([^)]*\)\s*\{[^}]*\}/g,"").replace(/\{\{[^}]*\}\}/g,"").trim()}openCatalogueDialog(){}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}static{this.\u0275fac=function(i){return new(i||s)(e.rXU(U),e.rXU(O.nX),e.rXU(x.bZ),e.rXU(Le.FW),e.rXU(e.Agw))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["kc-products"]],standalone:!0,features:[e.aNF],decls:13,vars:13,consts:[[3,"isSingleCategory"],[1,"content"],[3,"cards"],["fxLayout","row wrap",1,"product-card-wrapper"],[1,"content","category-description",3,"innerHTML"],["fxLayout.xs","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","space-between center"],[1,"meta-desc"],["fxLayout","row","fxLayoutGap","10px",1,"actions"],["color","primary","mat-raised-button","",1,"finance-btn",3,"routerLink"],["mat-raised-button","","color","primary",1,"catalogue-btn"],["mat-raised-button","","color","primary",1,"catalogue-btn",3,"click"],[2,"margin-top","20px"],[3,"height","width"],["fxFlex.xs","0 1 50%","fxFlex.gt-xs","0 1 33.333333%","fxFlex.gt-md","0 1 25%",4,"ngFor","ngForOf"],["fxFlex.xs","0 1 50%","fxFlex.gt-xs","0 1 33.333333%","fxFlex.gt-md","0 1 25%"],[3,"categories"]],template:function(i,n){if(1&i&&(e.j41(0,"article"),e.nrm(1,"kc-products-header",0),e.DNE(2,Mi,20,17,"section",1),e.nI1(3,"async"),e.DNE(4,Pi,3,2,"div",1),e.j41(5,"section",1),e.DNE(6,yi,1,1,"kc-product-card-list",2),e.nI1(7,"async"),e.DNE(8,ki,2,2,"div",3),e.k0s(),e.DNE(9,Si,1,1,"section",4),e.nI1(10,"async"),e.k0s(),e.DNE(11,Ti,1,1),e.nI1(12,"async")),2&i){let o,l,d,p;e.R7$(),e.Y8G("isSingleCategory",n.isSingleCategory),e.R7$(),e.vxM((o=e.bMT(3,5,n.productsService.activeCategory$))?2:4,o),e.R7$(4),e.vxM((l=e.bMT(7,7,n.productsService.products$))?6:8,l),e.R7$(3),e.vxM((d=e.bMT(10,9,n.productsService.activeCategory$))?9:-1,d),e.R7$(2),e.vxM((p=e.bMT(12,11,n.productsService.activeCategory$))?11:-1,p)}},dependencies:[fi.H,u.MD,u.Sq,u.Jj,O.iI,O.Wk,ci,hi.r,Q.T,Z.Hl,Z.$z,x.hM,Se.m_,Se.An,C.w2,C.DJ,C.BO,C.sA,C.UI,W.G,gi.F,pi,ui],styles:["h1[_ngcontent-%COMP%]{margin-bottom:-10px;text-transform:capitalize}.meta-desc[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:-10px}.category-description[_ngcontent-%COMP%]{width:100%}@media screen and (min-width: 800px){.category-description[_ngcontent-%COMP%]{width:80%}}@media screen and (min-width: 960px){.category-description[_ngcontent-%COMP%]{width:96%}}@media screen and (min-width: 1080px){.category-description[_ngcontent-%COMP%]{width:96%}}@media screen and (min-width: 1280px){.category-description[_ngcontent-%COMP%]{width:96%}}.finance-btn[_ngcontent-%COMP%]{font-weight:600}.finance-btn[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:6px}.finance-btn[_ngcontent-%COMP%]:hover{background-color:#c9c5c5;color:#000}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center}@media screen and (max-width: 600px){.finance-btn[_ngcontent-%COMP%]{margin-top:20px!important}}"]})}}return s})();const Vi=[{path:":main/:sub",component:Te,resolve:{seo:Le.Ih},data:{seoGroup:"productCategory"}}]}
1,2353:(J,R,c)=>{c.d(R,{H:()=>ae});var e=c(4438),u=c(177),v=c(9417),M=c(4710),m=c(5596),O=c(2102),j=c(9631),F=c(8834),L=c(5351),k=c(1626),E=c(2463),C=c(9084),Q=c(642),W=c(7468);function K(w,T){if(1&w){const f=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"h2"),e.EFF(3,"Personalise your experience"),e.k0s(),e.j41(4,"p",7),e.EFF(5," Enter your postcode so we can show you the dealerships and finance offers available in your area "),e.k0s()(),e.j41(6,"div",8)(7,"mat-form-field",9)(8,"mat-label"),e.EFF(9,"Enter your Postcode"),e.k0s(),e.j41(10,"input",10),e.mxI("ngModelChange",function(_){e.eBV(f);const D=e.XpG();return e.DH7(D.postcode,_)||(D.postcode=_),e.Njj(_)}),e.k0s()(),e.j41(11,"button",11),e.bIt("click",function(){e.eBV(f);const _=e.XpG();return e.Njj(_.searchPostcodeDealers())}),e.EFF(12," Yes, please "),e.k0s()()()}if(2&w){const f=e.XpG();e.R7$(10),e.R50("ngModel",f.postcode),e.R7$(),e.Y8G("disabled",!f.isPostcodeValid())}}function H(w,T){1&w&&(e.j41(0,"div",12),e.EFF(1,"Searching..."),e.k0s())}function ie(w,T){1&w&&e.nrm(0,"hr",24)}function ne(w,T){if(1&w){const f=e.RV6();e.j41(0,"div")(1,"div",15)(2,"div",16),e.nrm(3,"img",17),e.k0s(),e.j41(4,"div",18)(5,"p"),e.EFF(6," Your local experts at "),e.j41(7,"strong"),e.EFF(8),e.k0s(),e.EFF(9," in "),e.j41(10,"strong"),e.EFF(11),e.k0s(),e.EFF(12),e.k0s()(),e.j41(13,"div",19)(14,"a",20),e.EFF(15),e.k0s(),e.j41(16,"div",21),e.EFF(17," Postcode "),e.j41(18,"strong"),e.EFF(19),e.k0s(),e.EFF(20," is not correct? "),e.j41(21,"a",22),e.bIt("click",function(_){return e.eBV(f),e.XpG(2).openPostcodeDialog(),e.Njj(_.preventDefault())}),e.EFF(22,"Update here"),e.k0s(),e.EFF(23,". "),e.k0s()()(),e.DNE(24,ie,1,0,"hr",23),e.k0s()}if(2&w){const f=T.$implicit,x=T.last,_=e.XpG(2);e.R7$(3),e.Mz_("alt","",f.name," logo"),e.Y8G("src",_.getDealerLogo(f),e.B4B),e.R7$(5),e.JRh(f.name),e.R7$(3),e.JRh(f.address.suburb),e.R7$(),e.SpI(" are ready to help. Contact ",f.name," today for a demo or to learn more about our Products. "),e.R7$(2),e.Y8G("routerLink","/dealer/"+f.id),e.R7$(),e.SpI(" Contact ",f.name," "),e.R7$(4),e.JRh(_.postcode),e.R7$(5),e.Y8G("ngIf",!x)}}function se(w,T){if(1&w&&(e.j41(0,"div",13),e.DNE(1,ne,25,10,"div",14),e.k0s()),2&w){const f=e.XpG();e.R7$(),e.Y8G("ngForOf",f.dealers)}}function oe(w,T){if(1&w){const f=e.RV6();e.j41(0,"div",25)(1,"div",26)(2,"h3"),e.EFF(3,"Find your local dealer"),e.k0s(),e.j41(4,"p"),e.EFF(5," Find a dealer in your area for a demo or a quote of the latest products and finance offers. "),e.k0s()(),e.j41(6,"div",27)(7,"a",28),e.EFF(8," Where to buy "),e.k0s(),e.j41(9,"div",21),e.EFF(10),e.j41(11,"a",22),e.bIt("click",function(_){return e.eBV(f),e.XpG().openPostcodeDialog(),e.Njj(_.preventDefault())}),e.EFF(12,"Update here"),e.k0s(),e.EFF(13,". "),e.k0s()()()}if(2&w){const f=e.XpG();e.R7$(7),e.Y8G("routerLink","/dealers/"),e.R7$(3),e.SpI(" Postcode ",f.postcode," is not correct? ")}}let ae=(()=>{class w{constructor(){this.categories=[],this.postcode="",this.allDealers=[],this.dealers=[],this.hasSearched=!1,this.loading=!1,this.postcodeService=(0,e.WQX)(C.L),this.route=(0,e.WQX)(M.nX),this.http=(0,e.WQX)(k.Qq),this.dialog=(0,e.WQX)(L.bZ),this.coreService=(0,e.WQX)(Q.PX)}ngOnInit(){this.postcodeService.postcode$.subscribe(f=>{this.postcode=f??"",this.allDealers.length>0&&this.searchPostcodeDealers()}),console.log("%c\u{1f310} INPUT CATEGORIES TO FETCH DEALERS","color:#00c4ff;",this.categories),this.categories?.length&&this.loadDealers()}loadDealers(){const f=this.coreService.getBrandName().toLowerCase().replace(/\s+/g,"-"),x=this.coreService.getCountryCode().toLowerCase(),_=new k.Lr({"x-env":"kubota-connect",referer:`https://${f}.com.${"nz"===x?"nz":"au"}`,origin:`https://${f}.com.${"nz"===x?"nz":"au"}`}),D=this.categories.map(A=>{const B=`https://api.kubota.io/websites/${f}/${x}/dealers?category=${A}`;return console.log("%c\u{1f4e1} API CALL \u2192","color:#ff9900;",B),this.http.get(B,{headers:_})});this.loading=!0,(0,W.p)(D).subscribe({next:A=>{this.allDealers=[...new Map(A.flat().map(B=>[B.id,B])).values()],console.log("%c\u{1f7e9} MERGED DEALER LIST","color:green;font-weight:bold;",this.allDealers),this.postcode?this.searchPostcodeDealers():this.dealers=this.allDealers,this.loading=!1},error:A=>{console.error("\u274c Failed to load dealers:",A),this.loading=!1}})}searchPostcodeDealers(){const f=(this.postcode||"").trim();if(!f)return this.dealers=this.allDealers,void(this.hasSearched=!1);const x=Number(f);/^\d{4}$/.test(f)?(this.hasSearched=!0,this.loading=!0,console.log("%c\u{1f4cd} POSTCODE SEARCH","color:orange;",{userPostcode:x,categories:this.categories,dealerCount:this.allDealers.length}),this.dealers=this.allDealers.filter(_=>
1{const D=_.servicingPostCodes||{};return this.categories.some(A=>{const B=D?.[A];return Array.isArray(B)&&B.includes(x)})}),console.log("%c\u{1f3c1} DEALERS FOUND","color:green;font-weight:bold;",this.dealers),this.loading=!1):alert("Please enter a valid 4\u2011digit postcode")}openPostcodeDialog(){this.dialog.open(E.r,{data:{postcode:this.postcode}}).afterClosed().subscribe(x=>{void 0!==x&&(null===x?(this.postcodeService.setPostcode(null),this.dealers=this.allDealers,this.hasSearched=!1):/^\d{4}$/.test(x)&&(this.postcode=x,this.postcodeService.setPostcode(x),this.searchPostcodeDealers()))})}isPostcodeValid(){return/^\d{4}$/.test(this.postcode)}getDealerLogo(f){return f.logo?.[240]??""}static{this.\u0275fac=function(x){return new(x||w)}}static{this.\u0275cmp=e.VBU({type:w,selectors:[["app-postcode-form"]],inputs:{categories:"categories"},standalone:!0,features:[e.aNF],decls:6,vars:4,consts:[[1,"card",2,"padding","24px"],["fxLayout.lt-md","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between center",4,"ngIf"],["class","mt-3",4,"ngIf"],["class","dealer-results","style","display: flex; flex-direction: column; gap: 48px;",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center","fxLayoutGap","24px",4,"ngIf"],["fxLayout.lt-md","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","50","fxFlex.lt-md","100",1,"postcolumnL"],[1,"postcodetext"],["fxFlex.gt-sm","50","fxFlex.lt-md","100","fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","16px",1,"postcolumnR"],["appearance","fill","fxFlex",""],["matInput","","type","text","placeholder","E.g., 3000 or 0600","name","postcode","maxlength","4","pattern","^\\d{4}$","required","",3,"ngModelChange","ngModel"],["mat-raised-button","","color","primary",1,"btnmovelcass",3,"click","disabled"],[1,"mt-3"],[1,"dealer-results",2,"display","flex","flex-direction","column","gap","48px"],[4,"ngFor","ngForOf"],[2,"display","flex","flex-direction","row","flex-wrap","wrap","align-items","center","justify-content","space-between","gap","24px"],[1,"columnDL",2,"flex","0 0 auto","min-width","150px"],[2,"max-height","100px","max-width","100%",3,"src","alt"],[1,"columnDM",2,"flex","1 1 40%"],["fxLayout","column","fxLayoutAlign","center end",1,"columnDR",2,"flex","0 0 300px","text-align","right"],["mat-raised-button","","color","primary",2,"width","100%",3,"routerLink"],[2,"margin-top","8px","font-size","13px"],["href","#",3,"click"],["style","border: none; border-top: 1px solid #ccc; margin: 32px 0;",4,"ngIf"],[2,"border","none","border-top","1px solid #ccc","margin","32px 0"],["fxLayout","row","fxLayoutAlign","space-between center","fxLayoutGap","24px"],["fxFlex","60",1,"postcolumnL"],["fxFlex","40","fxLayout","column","fxLayoutAlign","center end",1,"postcolumnR",2,"text-align","right"],["mat-raised-button","","color","primary",2,"width","271px",3,"routerLink"]],template:function(x,_){1&x&&(e.j41(0,"mat-card",0)(1,"mat-card-content"),e.DNE(2,K,13,2,"div",1)(3,H,2,0,"div",2)(4,se,2,1,"div",3)(5,oe,14,2,"div",4),e.k0s()()),2&x&&(e.R7$(2),e.Y8G("ngIf",!_.hasSearched),e.R7$(),e.Y8G("ngIf",_.loading),e.R7$(),e.Y8G("ngIf",!_.loading&&_.hasSearched&&_.dealers.length>0),e.R7$(),e.Y8G("ngIf",!_.loading&&_.hasSearched&&0===_.dealers.length))},dependencies:[u.MD,u.Sq,u.bT,v.YN,v.me,v.BC,v.YS,v.tU,v.R_,v.vS,M.iI,M.Wk,m.Hu,m.RN,m.m2,O.RG,O.rl,O.nJ,j.fS,j.fg,F.Hl,F.It,F.$z,L.hM],styles:['.postcode-form[_ngcontent-%COMP%]{max-width:400px;margin:20px auto;text-align:center}.postcode-form[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding:8px;width:70%;margin-right:10px}.postcode-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:8px 12px}.postcode-form[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-top:20px;text-align:left}.columnDL[_ngcontent-%COMP%]{float:left;width:12%}.columnDM[_ngcontent-%COMP%]{float:left;width:62%;padding:20px}.columnDR[_ngcontent-%COMP%]{float:right;width:25%;padding-top:20px}.postcodetext[_ngcontent-%COMP%]{margin-top:-10px!important}.btnmovelcass[_ngcontent-%COMP%]{margin-left:20px;margin-top:-20px}.postcolumnL[_ngcontent-%COMP%]{float:left;
1width:65%;padding:10px}.postcolumnR[_ngcontent-%COMP%]{float:right;width:35%;padding:10px}.row[_ngcontent-%COMP%]:after{content:"";display:table;clear:both}@media screen and (max-width: 600px){.postcolumnL[_ngcontent-%COMP%], .postcolumnR[_ngcontent-%COMP%], columnDM[_ngcontent-%COMP%], columnDR[_ngcontent-%COMP%], columnDL[_ngcontent-%COMP%]{width:100%}.finance-btn[_ngcontent-%COMP%]{margin-top:15px!important}}']})}}return w})()},2494:(J,R,c)=>{c.d(R,{F:()=>m});var e=c(8498),u=c(94),v=c(5596),M=c(4438);let m=(()=>{class O{static{this.\u0275fac=function(L){return new(L||O)}}static{this.\u0275cmp=M.VBU({type:O,selectors:[["kc-skeleton-card"]],standalone:!0,features:[M.aNF],decls:5,vars:1,consts:[["appearance","raised",1,"skeleton-card"],["mat-card-image","",3,"height"],["fxLayout","column","fxLayoutAlign","center center",1,"kubota-skeleton-content"],[1,"skeleton","skeleton-text",2,"width","80%","height","16px","margin-top","8px"],[1,"skeleton","skeleton-text",2,"width","40%"]],template:function(L,k){1&L&&(M.j41(0,"mat-card",0),M.nrm(1,"kc-skeleton-image",1),M.j41(2,"mat-card-content",2),M.nrm(3,"div",3)(4,"div",4),M.k0s()()),2&L&&(M.R7$(),M.Y8G("height","56.25%"))},dependencies:[v.Hu,v.RN,v.m2,v.kF,u.G,e.w2,e.DJ,e.sA],styles:[".skeleton-card[_ngcontent-%COMP%]{margin:8px}@media screen and (min-width: 1536px){.skeleton-card[_ngcontent-%COMP%]{margin:16px}}.kubota-skeleton-text[_ngcontent-%COMP%]{width:100%}kubota-skeleton-image[_ngcontent-%COMP%]{display:block;margin-bottom:8px}.kubota-skeleton-content[_ngcontent-%COMP%]{width:100%;margin-top:-4px}",'.loader[_ngcontent-%COMP%]{margin:64px 0}.skeleton[_ngcontent-%COMP%]{position:relative;overflow:hidden;background-color:#878787;opacity:.5}.skeleton[_ngcontent-%COMP%]:after{position:absolute;inset:0;transform:translate(-100%);background-image:linear-gradient(90deg,#fff0 0,#fff3 20%,#ffffff80 60%,#fff0);animation:_ngcontent-%COMP%_shimmer 2s infinite;content:""}@keyframes _ngcontent-%COMP%_shimmer{to{transform:translate(100%)}}.skeleton-text[_ngcontent-%COMP%]{width:100%;height:12px;margin:4px 0;border-radius:.125rem}.skeleton-text[_ngcontent-%COMP%]:last-child{margin-bottom:0;width:80%}.skeleton-heading[_ngcontent-%COMP%]{width:50%}.skeleton-heading-h1[_ngcontent-%COMP%]{height:28px;margin-top:7px;margin-bottom:20px}.skeleton-heading-h2[_ngcontent-%COMP%]{height:18px;margin-top:7px;margin-bottom:22px}.skeleton-heading-h3[_ngcontent-%COMP%]{height:14px;margin-top:6px;margin-bottom:22px}.skeleton-image[_ngcontent-%COMP%]{width:100%;height:100%}kubota-skeleton-card[_ngcontent-%COMP%], kubota-skeleton-image[_ngcontent-%COMP%], kubota-skeleton-paragraph[_ngcontent-%COMP%], kubota-skeleton-text[_ngcontent-%COMP%]{display:block}@keyframes _ngcontent-%COMP%_spinner{to{transform:rotate(360deg)}}.spinner[_ngcontent-%COMP%]:after{content:"";box-sizing:border-box;position:absolute;top:50%;left:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;border-radius:50%;border:3px solid #ffffff;border-top-color:#e4551c;animation:_ngcontent-%COMP%_spinner .8s linear infinite}']})}}return O})()},94:(J,R,c)=>{c.d(R,{G:()=>M});var e=c(177),u=c(4438);const v=m=>({"padding-top":m});let M=(()=>{class m{constructor(){this.height="56.25%"}static{this.\u0275fac=function(F){return new(F||m)}}static{this.\u0275cmp=u.VBU({type:m,selectors:[["kc-skeleton-image"]],inputs:{height:"height",width:"width"},standalone:!0,features:[u.aNF],decls:2,vars:5,consts:[[1,"image-wrapper"],[1,"skeleton","skeleton-image",3,"ngStyle"]],template:function(F,L){1&F&&(u.j41(0,"div",0),u.nrm(1,"div",1),u.k0s()),2&F&&(u.R7$(),u.xc7("width",L.width?L.width:"auto"),u.Y8G("ngStyle",u.eq3(3,v,L.height)))},dependencies:[e.B3],styles:[".skeleton-image[_ngcontent-%COMP%]{border-top-left-radius:4px;border-top-right-radius:4px}",'.loader[_ngcontent-%COMP%]{margin:64px 0}.skeleton[_ngcontent-%COMP%]{position:relative;overflow:hidden;background-color:#878787;opacity:.5}.skeleton[_ngcontent-%COMP%]:after{position:absolute;inset:0;transform:translate(-100%);background-image:linear-gradient(90deg,#fff0 0,#fff3 20%,#ffffff80 60%,#fff0);animation:_ngcontent-%COMP%_shimmer 2s infinite;content:""}@keyframes _ngcontent-%COMP%_shimmer{to{transform:translate(100%)}}.skeleton-text[_ngcontent-%COMP%]{width:100%;height:12px;margin:4px 0;border-radius:.125rem}.skeleton-text[_ngcontent-%COMP%]:last-child{margin-bottom:0;width:80%}.skeleton-heading[_ngcontent-%COMP%]{width:50%}.skeleton-heading-h1[_ngcontent-%COMP%]{height:28px;margin-top:7px;margin-bottom:20px}.skeleton-heading-h2[_ngcontent-%COMP%]{height:18px;margin-top:7px;margin-bottom:22px}.skeleton-heading-h3[_ngcontent-%COMP%]{height:14px;margin-top:6px;margin-bottom:22px}.skeleton-image[_ngcontent-%COMP%]{width:100%;height:100%}kubota-skeleton-card[_ngcontent-%COMP%], kubota-skeleton-image[_ngcontent-%COMP%], kubota-skeleton-paragraph[_ngcontent-%COMP%], kubota-skeleton-text[_ngcontent-%COMP%]{display:block}@keyframes _ngcontent-%COMP%_spinner{to{transform:rotate(360deg)}}.spinner[_ngcontent-%COMP%]:after{content:"";box-sizing:border-box;position:absolute;top:50%;left:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;border-radius:50%;border:3px solid #ffffff;border-top-color:#e4551c;animation:_ngcontent-%COMP%_spinner .8s linear infinite}']})}}return m})()},3744:(J,R,c)=>{c.d(R,{T:()=>u});var e=c(4438);let u=(()=>{class v{transform(m){return m&&m.replace(/&amp;+/g,"&")}static{this.\u0275fac=function(O){return new(O||v)}}static{this.\u0275pipe=e.EJ8({name:"safeAmpersand",type:v,pure:!0,standalone:!0})}}return v})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.