PageSourceSearch

https://www.floelite.com/1157.e795459200c56768.js

js floelite.com collected 2026-10-02 18:32:53 UTC 48,333 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkflosports_webapp=self.webpackChunkflosports_webapp||[]).push([[1157],{65195:(L,E,o)=>{o.d(E,{d:()=>V});var m=o(91954),n=o(84191),e=o(66745),_=o(94650);let V=(()=>{class P{constructor(h){this.log=h}transform(h){const p=(0,n.Z)(h);return(0,e.Z)(p)||this.log.error("Invalid ISO date string passed to pipe.",{pipe:"IsoStringToDatePipe",string:h}),p}}return P.\u0275fac=function(h){return new(h||P)(_.\u0275\u0275directiveInject(m.te,16))},P.\u0275pipe=_.\u0275\u0275definePipe({name:"isoStringToDate",type:P,pure:!0}),P})()},51300:(L,E,o)=>{o.d(E,{o:()=>T});var m=o(94650),n=o(36895),e=o(23093);function _(h,p){if(1&h&&m.\u0275\u0275element(0,"flo-tag",7),2&h){const u=m.\u0275\u0275nextContext().$implicit,I=m.\u0275\u0275nextContext(2);m.\u0275\u0275property("tag",u)("collectionTabUriPart",I.collectionTabUriPart)}}function V(h,p){if(1&h&&(m.\u0275\u0275elementStart(0,"li",5),m.\u0275\u0275template(1,_,1,2,"flo-tag",6),m.\u0275\u0275elementEnd()),2&h){const u=p.index;m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",u<15)}}function P(h,p){if(1&h&&(m.\u0275\u0275elementStart(0,"div",1)(1,"ul",2)(2,"p",3),m.\u0275\u0275text(3,"Tags:"),m.\u0275\u0275elementEnd(),m.\u0275\u0275template(4,V,2,1,"li",4),m.\u0275\u0275elementEnd()()),2&h){const u=m.\u0275\u0275nextContext();m.\u0275\u0275advance(4),m.\u0275\u0275property("ngForOf",u.tags)("ngForTrackBy",u.trackByTag)}}let T=(()=>{class h{constructor(){this.trackByTag=(u,I)=>I.name,this.collectionTabUriPart="/article"}get tags(){return this._tags}set tags(u){this._tags=Array.isArray(u)&&u.length?u:void 0}}return h.\u0275fac=function(u){return new(u||h)},h.\u0275cmp=m.\u0275\u0275defineComponent({type:h,selectors:[["flo-tags"]],inputs:{tags:"tags",collectionTabUriPart:"collectionTabUriPart"},decls:1,vars:1,consts:[["class","d-flex flex-row",4,"ngIf"],[1,"d-flex","flex-row"],[1,"tag-list","d-flex","flex-row","flex-wrap","align-items-center","m-0"],[1,"subhead","color-500","m-0","me-2","mb-1"],["class","pe-2 mb-1","data-test","tag",4,"ngFor","ngForOf","ngForTrackBy"],["data-test","tag",1,"pe-2","mb-1"],[3,"tag","collectionTabUriPart",4,"ngIf"],[3,"tag","collectionTabUriPart"]],template:function(u,I){1&u&&m.\u0275\u0275template(0,P,5,2,"div",0),2&u&&m.\u0275\u0275property("ngIf",I.tags)},dependencies:[n.sg,n.O5,e.Z],encapsulation:2,changeDetection:0}),h})()},68399:(L,E,o)=>{o.d(E,{J:()=>p});var m=o(24006),n=o(94650),e=o(87833),_=o(36895),V=o(39137);const P=["input"],T=["icon"];function h(u,I){if(1&u&&(n.\u0275\u0275elementStart(0,"span",8),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&u){const v=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(v.resultText)}}let p=(()=>{class u{constructor(v){this.renderer=v}set placeholder(v){this._placeholder=v}get placeholder(){return this._placeholder||"Search"}set resultText(v){this._resultText=v}get resultText(){return this._resultText}get inputElement(){return this._input.nativeElement}get icon(){return this._icon.nativeElement}change(v){this.onChange(v.target.value)}writeValue(v){this.renderer.setProperty(this.inputElement,"value",v)}registerOnChange(v){this.onChange=v}registerOnTouched(v){}setDisabledState(v){this.disabled=v,this.disabled?(this.renderer.removeClass(this.icon,"primary-color-text"),this.renderer.addClass(this.icon,"disabled")):this.renderer.removeClass(this.icon,"disabled")}}return u.\u0275fac=function(v){return new(v||u)(n.\u0275\u0275directiveInject(n.Renderer2))},u.\u0275cmp=n.\u0275\u0275defineComponent({type:u,selectors:[["flo-search-input"]],viewQuery:function(v,M){if(1&v&&(n.\u0275\u0275viewQuery(P,7),n.\u0275\u0275viewQuery(T,7)),2&v){let y;n.\u0275\u0275queryRefresh(y=n.\u0275\u0275loadQuery())&&(M._input=y.first),n.\u0275\u0275queryRefresh(y=n.\u0275\u0275loadQuery())&&(M._icon=y.first)}},inputs:{disabled:"disabled",placeholder:"placeholder",resultText:"resultText"},features:[n.\u0275\u0275ProvidersFeature([{provide:m.JU,useExisting:u,multi:!0}])],decls:8,vars:3,consts:[["data-test","search-box",1,"flo-input"],["type","text","floAnalytics","","name","Search","events","click",3,"placeholder","disabled","input"],["input",""],[1,"right-inner-addon"],["class","results-text align-top",4,"ngIf"],["data-test","search-icon","aria-hidden","true",1,"primary-color-text"],["icon",""],["icon","icon-search","width","1.25em"],[1,"results-text","align-top"]],template:function(v,M){1&v&&(n.\u0275\u0275elementStart(0,"div",0)(1,"input",1,2),n.\u0275\u0275listener("input",function($){return M.change($)}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"div",3),n.\u0275\u0275template(4,h,2,1,"span",4),n.\u0275\u0275elementStart(5,"span",5,6),n.\u0275\u0275element(7,"flo-svg-icon",7),n.\u0275\u0275elementEnd()()()),2&v&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("placeholder",M.placeholder)("disabled",M.disabled),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngIf",M.resultText))},dependencies:[e.b,_.O5,V.v],encapsulation:2,changeDetection:0}),u})()},8460:(L,E,o)=>{o.d(E,{u:()=>N});var m=o(66745),n=o(94650),e=o(74372),_=o(36895),V=o(27840);const P=["*"];let T=(()=>{class g{constructor(){this.gradient="none"}}return g.\u0275fac=function(x){return new(x||g)},g.\u0275cmp=n.\u0275\u0275defineComponent({type:g,selectors:[["flo-image-overlay"]],inputs:{imgSrc:"imgSrc",imgAlt:"imgAlt",gradient:"gradient",contentPosition:"contentPosition"},ngContentSelectors:P,decls:5,vars:4,consts:[[1,"image-overlay"],["loading","lazy",3,"src","alt"],[1,"gradient",3,"ngClass"],["data-test","overlay-content-wrapper",1,"overlay-content-wrapper",3,"ngClass"]],template:function(x,O){1&x&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275element(1,"img",1)(2,"div",2),n.\u0275\u0275elementStart(3,"div",3),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd()()),2&x&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("src",O.imgSrc,n.\u0275\u0275sanitizeUrl)("alt",O.imgAlt),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngClass",O.gradient),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngClass",O.contentPosition))},dependencies:[_.mk],styles:[".image-overlay[_ngcontent-%COMP%]{height:100%;width:100%;position:relative}img[_ngcontent-%COMP%]{height:100%;width:100%}.overlay-content-wrapper[_ngcontent-%COMP%]{position:absolute;
1left:0;bottom:0}.overlay-content-wrapper.center[_ngcontent-%COMP%]{position:absolute;left:0;top:87px;width:100%;text-align:center}.gradient[_ngcontent-%COMP%]{height:50%;width:100%;position:absolute}.gradient.none[_ngcontent-%COMP%]{background:rgba(0,0,0,0)}.gradient.top[_ngcontent-%COMP%]{top:0%;background:linear-gradient(rgba(0,0,0,.9),rgba(0,0,0,0))}.gradient.bottom[_ngcontent-%COMP%]{top:0%;height:100%;background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.9))}.gradient.full[_ngcontent-%COMP%]{top:0%;height:100%;background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.7))}"],changeDetection:0}),g})();var h=o(1447);function p(g,F){if(1&g&&(n.\u0275\u0275elementStart(0,"flo-image-overlay",10),n.\u0275\u0275pipe(1,"async"),n.\u0275\u0275pipe(2,"floImage"),n.\u0275\u0275elementStart(3,"h3",11),n.\u0275\u0275text(4,"Now Playing"),n.\u0275\u0275elementEnd()()),2&g){const x=n.\u0275\u0275nextContext(3);n.\u0275\u0275property("imgSrc",n.\u0275\u0275pipeBind1(1,1,n.\u0275\u0275pipeBind3(2,3,x.imageUrl,330,330)))}}function u(g,F){if(1&g&&(n.\u0275\u0275elementStart(0,"div",8),n.\u0275\u0275template(1,p,5,7,"flo-image-overlay",9),n.\u0275\u0275elementEnd()),2&g){const x=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",x.imageUrl)}}function I(g,F){if(1&g&&(n.\u0275\u0275elementStart(0,"div",12),n.\u0275\u0275element(1,"flo-image-thumbnail",13),n.\u0275\u0275elementEnd()),2&g){const x=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275property("imageUrl",x.imageUrl)("imageSize",400)("altText",x.title)("duration",x.duration)}}function v(g,F){1&g&&n.\u0275\u0275element(0,"span",16)}function M(g,F){1&g&&n.\u0275\u0275element(0,"span",17)}function y(g,F){if(1&g&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275template(1,v,1,0,"span",14),n.\u0275\u0275template(2,M,1,0,"ng-template",null,15,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementContainerEnd()),2&g){const x=n.\u0275\u0275reference(3),O=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",O.lightProBadge)("ngIfElse",x)}}function $(g,F){if(1&g&&(n.\u0275\u0275elementStart(0,"div",18)(1,"p",19),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"date"),n.\u0275\u0275elementEnd()()),2&g){const x=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(3,1,x.publishDate)," ")}}function j(g,F){if(1&g&&(n.\u0275\u0275elementStart(0,"div",1),n.\u0275\u0275template(1,u,2,1,"div",2),n.\u0275\u0275template(2,I,2,4,"ng-template",null,3,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(4,"div",4),n.\u0275\u0275template(5,y,4,2,"ng-container",5),n.\u0275\u0275elementStart(6,"span",6),n.\u0275\u0275text(7),n.\u0275\u0275elementEnd()(),n.\u0275\u0275template(8,$,4,3,"div",7),n.\u0275\u0275elementEnd()),2&g){const x=n.\u0275\u0275reference(3),O=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",O.playingVideo)("ngIfElse",x),n.\u0275\u0275advance(3),n.\u0275\u0275classProp("subheader",O.smallThumbnail),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",O.premium),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(O.title),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",O.publishDateValid)}}let N=(()=>
1{class g{constructor(){this.premium=!1,this.smallThumbnail=!1,this.playingVideo=!1,this.lightProBadge=!1}get canDisplay(){return!!this.title&&!!this.imageUrl}get publishDateValid(){if("string"==typeof this.publishDate)throw Error("SpotlightComponent received string where it expected date.");return null!=this.publishDate&&(0,m.Z)(this.publishDate)}}return g.\u0275fac=function(x){return new(x||g)},g.\u0275cmp=n.\u0275\u0275defineComponent({type:g,selectors:[["flo-spotlight"]],inputs:{title:"title",imageUrl:"imageUrl",publishDate:"publishDate",duration:"duration",premium:"premium",smallThumbnail:"smallThumbnail",playingVideo:"playingVideo",lightProBadge:"lightProBadge"},decls:1,vars:1,consts:[["class","spotlight primary-color-text-hover",4,"ngIf"],[1,"spotlight","primary-color-text-hover"],["class","image",4,"ngIf","ngIfElse"],["imageThumb",""],["data-test","spotlight-title",1,"title"],[4,"ngIf"],[1,"apply-text-hover"],["class","date-footnote mt-2","data-test","spotlight-footnote",4,"ngIf"],[1,"image"],["gradient","full","contentPosition","center",3,"imgSrc",4,"ngIf"],["gradient","full","contentPosition","center",3,"imgSrc"],[1,"now-playing"],["data-test","spotlight-thumbnail",1,"image"],[3,"imageUrl","imageSize","altText","duration"],["floSvg","badge_pro_light","class","me-1 align-text-top",4,"ngIf","ngIfElse"],["darkBadge",""],["floSvg","badge_pro_light",1,"me-1","align-text-top"],["floSvg","badge_pro_dark","data-test","pro",1,"me-1","align-text-top"],["data-test","spotlight-footnote",1,"date-footnote","mt-2"],["data-test","spotlight-date",1,"subhead","m-0"]],template:function(x,O){1&x&&n.\u0275\u0275template(0,j,9,7,"div",0),2&x&&n.\u0275\u0275property("ngIf",O.canDisplay)},dependencies:[e.g,_.O5,V.w,T,_.Ov,_.uU,h.y],styles:[".spotlight[_ngcontent-%COMP%]{cursor:pointer;width:100%}.spotlight[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#232327;font-size:24px;line-height:27px;height:auto;margin:15px 0 1px}@media (max-width: 576px){.spotlight[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:18px;line-height:21px}}.spotlight[_ngcontent-%COMP%]   .title.subheader[_ngcontent-%COMP%]{font-size:16px;line-height:24px;overflow-wrap:break-word;line-break:auto;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}@media (max-width: 576px){.spotlight[_ngcontent-%COMP%]   .title.subheader[_ngcontent-%COMP%]{margin-top:10px}}.now-playing[_ngcontent-%COMP%]{color:#fff}.date-footnote[_ngcontent-%COMP%]   p.subhead[_ngcontent-%COMP%]{color:#6f6f73}.dark-theme[_nghost-%COMP%]   .title[_ngcontent-%COMP%], .dark-theme   [_nghost-%COMP%]   .title[_ngcontent-%COMP%]{color:#fff}@media (max-width: 768px){[_nghost-%COMP%]     .image-wrapper .play-icon .video-duration{display:none!important}}"],changeDetection:0}),g})()},9719:(L,E,o)=>{o.r(E),o.d(E,{TrainingModule:()=>je});var m=o(26520),n=o(60603),e=o(94650),_=o(24006),V=o(4707),P=o(39841),T=o(77579),h=o(71884),p=o(54004),u=o(34782),I=o(18312),v=o(18505),M=o(95698),y=o(39300),$=o(82722),j=o(46111),N=o(68675),g=o(54482),F=o(38421),x=o(25403),Z=o(78372),X=o(61135),K=o(56451),Y=o(49670),q=o(91062),ee=o(49112),te=o(32797),w=o(36895),k=o(39137),ne=o(87833),ie=o(68399);function ae(a,d){if(1&a){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"li",19),e.\u0275\u0275listener("click",function(){const l=e.\u0275\u0275restoreView(t).$implicit,c=e.\u0275\u0275nextContext().$implicit,f=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(f.onSelectFacet.next({facet:c,subfacet:l}))}),e.\u0275\u0275elementStart(1,"h5",20),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"span",21),e.\u0275\u0275element(4,"flo-svg-icon",22),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"span",23),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()}if(2&a){const t=d.$implicit,i=e.\u0275\u0275nextContext().$implicit,s=e.\u0275\u0275nextContext().ngIf,l=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("subfacet--disabled",t.count<1)("subfacet--selected",l.isFacetSelected(s,t))("primary-color-text",l.isFacetSelected(s,t)),e.\u0275\u0275property("analyticsProperties",l.getFacetAnalyticsProperties(i,t)),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("primary-color-text",l.isFacetSelected(s,t)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.value),e.\u0275\u0275advance(3),e.\u0275\u0275classProp("primary-color-text",l.isFacetSelected(s,t)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.count)}}function oe(a,d){if(1&a){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"li",14)(1,"h4",15),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"ul",16),e.\u0275\u0275template(4,ae,7,13,"li",17),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"button",18),e.\u0275\u0275listener("click",function(){const l=e.\u0275\u0275restoreView(t).$implicit;
1return e.\u0275\u0275resetView(l.isExpanded=!l.isExpanded)}),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()}if(2&a){const t=d.$implicit,i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.displayName),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("subfacets-list--expanded",t.isExpanded),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.subfacets)("ngForTrackBy",i.trackByFacet),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",(null==t.subfacets?null:t.subfacets.length)<=5)("analyticsProperties",i.getMoreAnalyticsProperties(t)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.isExpanded?"Less":"More (+"+((null==t.subfacets?null:t.subfacets.length)-5)+")")}}function re(a,d){if(1&a){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ul",4),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275elementStart(2,"h3",5),e.\u0275\u0275text(3,"Filter Videos"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"span",6),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"button",7),e.\u0275\u0275listener("click",function(){const l=e.\u0275\u0275restoreView(t).ngIf,c=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(c.onClearFilters.next(l))}),e.\u0275\u0275text(7,"Clear Filters "),e.\u0275\u0275elementStart(8,"span",8),e.\u0275\u0275element(9,"flo-svg-icon",9),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(10,oe,7,8,"li",10),e.\u0275\u0275elementStart(11,"div",11)(12,"button",12),e.\u0275\u0275listener("click",function(){const l=e.\u0275\u0275restoreView(t).ngIf,c=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(c.onApplyFilters.next(l))}),e.\u0275\u0275text(13,"Apply"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"button",13),e.\u0275\u0275listener("click",function(){const l=e.\u0275\u0275restoreView(t).ngIf,c=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(c.onCancelFilters.next(l))}),e.\u0275\u0275text(15,"Cancel"),e.\u0275\u0275elementEnd()()()}if(2&a){const t=d.ngIf,i=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("facets-list--expanded",e.\u0275\u0275pipeBind1(1,8,i.onExpandFacets)),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(i.searchResultsCountString),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",!t.length),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngForOf",i.currentFacets)("ngForTrackBy",i.trackByFacet),e.\u0275\u0275advance(2),e.\u0275\u0275property("analyticsProperties",i.getApplyAnalyticsProperties(t)),e.\u0275\u0275advance(2),e.\u0275\u0275property("analyticsProperties",i.getApplyAnalyticsProperties(t))}}const se=["*"];let J=(()=>{class a{constructor(t,i,s,l){this.scheduler=t,this.deviceService=i,this.window=s,this.platformService=l,this.searchChange=new e.EventEmitter,this.dynamicChange=new e.EventEmitter,this.queryChange=new e.EventEmitter,this.allFacets=[],this.currentFacets=[],this.selectedFacets=[],this.subscriptions=[],this.transcludedOutputSource=new T.x,this.transcludedOutput$=this.transcludedOutputSource.asObservable(),this.onSelectFacet=new T.x,this.onClearFilters=new T.x,this.onApplyFilters=new T.x,this.onCancelFilters=new T.x,this.onExpandFacets=new T.x,this.onInputSelectedFacetsChange=new T.x,this.selectedFacetsBS=new X.X([]),this.clearedSelection$=this.onClearFilters.pipe((0,p.U)(()=>[])),this.previousSelection=this.selectedFacets||[],this.canceledSelection$=this.onCancelFilters.pipe((0,p.U)(()=>this.previousSelection)),this.inputSelectedFacets$=this.onInputSelectedFacetsChange.pipe((0,u.d)(1)),this.updateSelectedFacets=(0,K.T)(this.clearedSelection$,this.canceledSelection$,this.inputSelectedFacets$).pipe((0,N.O)(this.selectedFacets)).subscribe(c=>this.selectedFacetsBS.next(c)),this.selectedFacets$=this.selectedFacetsBS.pipe((0,u.d)(1)),this.handleFacetSelection=this.onSelectFacet.pipe((0,y.h)(c=>!!c&&!!c.subfacet&&!!c.subfacet.count&&c.subfacet.count>0),(0,p.U)(c=>this.collectSelectedFacets(c))).subscribe(c=>this.selectedFacetsBS.next(c)),this.isMobile=!0,this.updateDevice=this.deviceService.isMobile$.subscribe(c=>this.isMobile=!!c),this.closeFacetsList=(0,K.T)(this.onCancelFilters,this.onApplyFilters).subscribe(()=>this.onExpandFacets.next(!1)),this.toggleOverlappingElements=this.onExpandFacets.asObservable().pipe((0,y.h)(()=>this.isMobile&&this.platformService.isBrowser)).subscribe(c=>{const f=this.window.document;if(f){const S=f.querySelector("flo-primary-navigation"),C=f.querySelector("flo-ad-adhesion"),U=f.querySelector("flo-ad-rectangle");S&&(S.hidden=c),C&&(C.hidden=c),U&&(U.hidden=c)}}),this.collectSelectedFacets=(c,f=this.selectedFacetsBS.getValue())=>{if(!c)return f;const S=f.findIndex(C=>C.id===c.facet.id);
1if(S<0)return c.subfacet?f.concat({id:c.facet.id,value:c.facet.value,count:c.facet.count,displayName:c.facet.displayName,subfacets:[{id:c.subfacet.id,value:c.subfacet.value,count:c.subfacet.count,subfacets:c.subfacet.subfacets}]}):f;if(c.subfacet){const C=f[S].subfacets||[];return f[S].subfacets=this.isFacetSelected(C,c.subfacet)?C.filter(U=>U.id!==c.subfacet.id):C.concat(c.subfacet),f.filter(U=>U.subfacets&&U.subfacets.length)}return f.filter(C=>C.id!==c.facet.id)},this.isFacetSelected=(c,f)=>c.some(S=>S.id===f.id)||c.some(S=>(S.subfacets||[]).some(C=>C.id===f.id)),this.getFacetAnalyticsProperties=(c,f)=>({filter:f.value,filter_parent:c.value}),this.getMoreAnalyticsProperties=c=>({name:"More - Training Facets",filter:c.value}),this.getApplyAnalyticsProperties=c=>({name:c.map(f=>`${f.value}: ${f.subfacets.map(S=>S.value).join(",")}`).join(",")}),this.getFiltersAnalyticsProperties=()=>({name:"Filters Expanded"})}get searchResultsCountString(){return`${this.resultsCount||0} Videos`}set searchTerm(t){this._searchTerm=t,this.searchControl&&t!==this.searchControl.value&&this.searchControl.setValue(t)}get searchTerm(){return this._searchTerm}set debounceTime(t){this._debounceTime=t}get debounceTime(){return this._debounceTime||0}set searchName(t){this._searchName=t}get searchName(){return this._searchName||""}set totalSuffix(t){this._totalSuffix=t}get totalSuffix(){return this._totalSuffix||"Item"}set totalSuffixPlural(t){this._totalSuffixPlural=t}get totalSuffixPlural(){return this._totalSuffixPlural||"Items"}set total(t){this._total=t}get total(){return this._total||0}get showPluralSuffix(){return this.total>1}ngOnInit(){this.searchControl=new _.p4(this.searchTerm)}applyAudit(){return this.isMobile?function O(a){return(0,g.e)((d,t)=>{let i=!1,s=null,l=null,c=!1;const f=()=>{if(l?.unsubscribe(),l=null,i){i=!1;const C=s;s=null,t.next(C)}c&&t.complete()},S=()=>{l=null,c&&t.complete()};d.subscribe((0,x.x)(t,C=>{i=!0,s=C,l||(0,F.Xf)(a(C)).subscribe(l=(0,x.x)(t,f,S))},()=>{c=!0,(!i||!l||l.closed)&&t.complete()}))})}(()=>this.onApplyFilters):(0,p.U)(i=>i)}ngAfterViewInit(){this.transcludedInputs.map(l=>l.registerOnChange(this.registerTranscluded.bind(this,l._elementRef.nativeElement.id)));const t=this.searchControl.valueChanges.subscribe(l=>this.searchChange.next(l));this.subscriptions=this.subscriptions.concat(t);const i=(0,P.a)([this.selectedFacets$,this.deviceService.device$]).pipe((0,p.U)(([l,c])=>l),this.applyAudit(),(0,v.b)(l=>this.previousSelection=l),(0,N.O)(this.selectedFacetsBS.getValue())),s=(0,P.a)([this.searchChange.pipe((0,N.O)(this.searchTerm)),i,this.transcludedOutput$.pipe((0,N.O)({}))]).pipe((0,p.U)(([l,c,f])=>({q:l,facets:c,...f})),(0,Z.b)(this.debounceTime,this.scheduler),(0,p.U)(l=>({...l,q:""===l.q?void 0:l.q,facets:le(l.facets)}))).subscribe(l=>this.queryChange.next(l));this.subscriptions=this.subscriptions.concat(s)}ngOnChanges(t){if(t.currentFacets&&t.currentFacets.currentValue){const i=t.currentFacets.currentValue;this.currentFacets=(this.allFacets||[]).map(s=>function ce(a,d){const t=d.find(i=>i.id===a.id)||{count:0,subfacets:[],id:"",value:""};return{...a,count:t.count,subfacets:(a.subfacets||[]).map(i=>({...i,count:((t.subfacets||[]).find(s=>s.id===i.id)||{count:0}).count||0}))}}(s,i)).filter(s=>s.subfacets&&s.subfacets.length)}else(this.allFacets&&!this.currentFacets||!this.currentFacets.length)&&(this.currentFacets=this.allFacets.filter(i=>i&&i.subfacets&&i.subfacets.length));if(t.selectedFacets&&t.selectedFacets.currentValue){const i=t.selectedFacets.currentValue;this.previousSelection=i,this.onInputSelectedFacetsChange.next(i)}}registerTranscluded(t,i){this.transcludedOutputSource.next({[t]:i})}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}trackByFacet(t){return t.id}}return a.\u0275fac=function(t){return new(t||a)(e.\u0275\u0275directiveInject(Y.DF),e.\u0275\u0275directiveInject(ee.U),e.\u0275\u0275directiveInject(q.m),e.\u0275\u0275directiveInject(te.m))},a.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["flo-vertical-search"]],contentQueries:function(t,i,s){if(1&t&&e.\u0275\u0275contentQuery(s,_.Fj,4),2&t){let l;e.\u0275\u0275queryRefresh(l=e.\u0275\u0275loadQuery())&&(i.transcludedInputs=l)}},inputs:{searchTerm:"searchTerm",debounceTime:"debounceTime",searchName:"searchName",totalSuffix:"totalSuffix",totalSuffixPlural:"totalSuffixPlural",total:"total",allFacets:"allFacets",currentFacets:"currentFacets",selectedFacets:"selectedFacets",resultsCount:"resultsCount"},outputs:{searchChange:"searchChange",dynamicChange:"dynamicChange",queryChange:"queryChange"},features:[e.\u0275\u0275NgOnChangesFeature],ngContentSelectors:se,decls:8,vars:8,consts:[["data-test","search-title",1,"h3",3,"hidden"],["data-test","search-container",1,"vertical-search__search-input",3,"formControl"],["name","Filters","floAnalytics","","tagName","Link",1,"facets-list__expand-toggle","btn","btn-secondary",3,"hidden","analyticsProperties","click"],["class","facets-list",3,"facets-list--expanded",4,"ngIf"],[1,"facets-list"],[1,"facets-list__heading"],["data-test","search-count",1,"facets-list__results-count"],[1,"facets-list__clear-selection-button","primary-color-text",3,"hidden","click"],["data-test","clear-facets",1,"svg-vertical-align-middle"],["icon","icon-times"],["class","facet",4,"ngFor","ngForOf","ngForTrackBy"],[1,"facets-list__button-group"],["floAnalytics","","eventName","Filter Applied",1,"facets-list__button","facets-list__button--apply-selection","btn","btn-primary",3,"analyticsProperties","click"],["floAnalytics","","eventName","Filter Canceled",1,"facets-list__button","facets-list__button--cancel-selection","btn","btn-secondary",3,"analyticsProperties","click"],[1,"facet"],["data-test","facet-title",1,"facet__title"],[1,"subfacets-list"],["class","subfacet","data-test","subfacet-list","floAnalytics","","tagName","Filter",3,"subfacet--disabled","subfacet--selected","primary-color-text","analyticsProperties","click",4,"ngFor","ngForOf","ngForTrackBy"],["name","More","data-test","more","floAnalytics","","tagName","Link",1,"subfacets-list__expand-toggle","primary-color-text",3,"hidden","analyticsProperties","click"],["data-test","subfacet-list","floAnalytics","","tagName","Filter",1,"subfacet",3,"analyticsProperties","click"],["data-test","subfacet-title",1,"subfacet__title"],[1,"subfacet__deselect-icon","svg-vertical-align-middle"],["icon","icon-times","width","13px"],[1,"subfacet__result-count"]],template:function(t,i){1&t&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"h1",0),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(2,"flo-search-input",1),e.\u0275\u0275projection(3),e.\u0275\u0275elementStart(4,"button",2),e.\u0275\u0275listener("click",function(){return i.onExpandFacets.next(!0)}),e.\u0275\u0275text(5,"Filters"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,re,16,10,"ul",3),e.\u0275\u0275pipe(7,"async")),2&t&&(e.\u0275\u0275property("hidden",!i.searchName),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(i.searchName),e.\u0275\u0275advance(1),e.\u0275\u0275property("formControl",i.searchControl),e.\u0275\u0275advance(2),e.\u0275\u0275property("hidden",!i.currentFacets||!i.currentFacets.length)("analyticsProperties",i.getFiltersAnalyticsProperties()),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(7,6,i.selectedFacets$)))},dependencies:[w.sg,w.O5,k.v,ne.b,_.JJ,_.oH,ie.J,w.Ov],styles:[".vertical-search__heading[_ngcontent-%COMP%]{font-family:Uni-Neue-Bold,Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;letter-spacing:.3px;line-height:.8125em;margin-top:0;padding-bottom:10px;color:#0c0c0c;border-bottom:1px solid #0c0c0c;text-transform:uppercase}@media (min-width: 992px){.vertical-search__heading[_ngcontent-%COMP%]{display:block;text-transform:uppercase;width:100%;height:24px;font-family:Uni-Neue-Bold,Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.85;letter-spacing:.3px;text-align:left;color:#535357;margin:0;padding:0}}@media (min-width: 768px){.vertical-search__search-input[_ngcontent-%COMP%]{margin:.5rem 0px 0px;padding:0;width:100%;display:inline-block}}.facets-list[_ngcontent-%COMP%]{display:none;padding:28px 16px;margin:0;overflow-y:auto;z-index:2}@media (min-width: 768px){.facets-list[_ngcontent-%COMP%]{display:block;padding:0;margin:23px 0 0}}.facets-list.facets-list--expanded[_ngcontent-%COMP%]{display:block;position:fixed;top:0;left:0;background-color:#fff;width:100vw;height:100vh}.facets-list__heading[_ngcontent-%COMP%]{font-family:Uni-Neue-Bold,Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;letter-spacing:.3px;line-height:.8125em;margin-top:0;padding-bottom:10px;color:#0c0c0c;border-bottom:1px solid #0c0c0c;text-transform:uppercase;width:100%;height:24px;font-size:13px;font-weight:400;font-style:normal;font-stretch:normal;text-align:left;margin-bottom:18px;line-height:1.5em}@media (min-width: 768px){.facets-list__heading[_ngcontent-%COMP%]{display:none}}.facets-list__results-count[_ngcontent-%COMP%]{width:77px;height:21px;font-family:Uni-Neue-Regular,Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.62;letter-spacing:normal;text-align:left;color:#323236}.facets-list__clear-selection-button[_ngcontent-%COMP%]{cursor:pointer;width:97px;height:21px;font-family:Uni-Neue-Regular,Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.62;letter-spacing:normal;text-align:right;color:#ff140f;background-color:#fff;float:right;margin:2px -3px 0 0;padding:0;border:0px;outline:none}@media (min-width: 768px){.facets-list__clear-selection-button[_ngcontent-%COMP%]{width:89px;margin-right:2px}}.facets-list__expand-toggle[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:22px;width:100%;cursor:pointer}@media (min-width: 768px){.facets-list__expand-toggle[_ngcontent-%COMP%]{display:none}}.facet[_ngcontent-%COMP%]{border-top:1px solid #939396;margin:21px 0 0;padding:19px 0 0}@media (min-width: 768px){.facet[_ngcontent-%COMP%]{margin:8px 0 0;padding:10px 0 0}}.facet__title[_ngcontent-%COMP%]{cursor:default;width:100%;height:21px;font-size:13px;font-style:normal;font-stretch:normal;line-height:1.62;letter-spacing:normal;text-align:left;color:#535357}@media (min-width: 768px){.facet__title[_ngcontent-%COMP%]{margin:0;padding:0}}@media (min-width: 768px){.subfacets-list[_ngcontent-%COMP%]{margin:-1px 0 0;max-height:6.6em;overflow-y:hidden;transition:max-height .1s}}@media (min-width: 768px){.subfacets-list.subfacets-list--expanded[_ngcontent-%COMP%]{max-height:27.8em;overflow-y:auto}}.subfacet[_ngcontent-%COMP%]{margin:0 0 7px;padding:0;cursor:pointer;display:-moz-flex;display:flex;flex-direction:row}@media (min-width: 768px){.subfacet[_ngcontent-%COMP%]{height:22px;margin:0;padding:0}}.subfacet__title[_ngcontent-%COMP%]{flex:2 1 auto;order:1;height:21px;font-family:Uni-Neue-Regular,Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.62;letter-spacing:normal;text-align:left;color:#323236;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin-bottom:0}.subfacet__deselect-icon[_ngcontent-%COMP%]{display:none}.subfacet__result-count[_ngcontent-%COMP%]{order:2;flex:0 1 20px;height:21px;font-family:Uni-Neue-Regular,Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:2;letter-spacing:normal;text-align:right;color:#323236;margin-right:5px}.subfacet--disabled[_ngcontent-%COMP%]{cursor:default;pointer-events:none}.subfacet--selected[_ngcontent-%COMP%]   .subfacet__deselect-icon[_ngcontent-%COMP%]{display:-moz-flex;display:flex;flex:0 0 15px;order:3;font-family:Uni-Neue-Regular,Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px;padding:0;font-style:normal}.subfacets-list__expand-toggle[_ngcontent-%COMP%]{width:100%;height:21px;font-family:Uni-Neue-Regular,Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.62;letter-spacing:normal;text-align:left;color:#ff140f;margin:0;padding:0;outline:none}@media (min-width: 768px){.subfacets-list__expand-toggle[_ngcontent-%COMP%]{margin:6px 0 -1px;padding:0;border:0px;background-color:#fff}}.facets-list__button-group[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;height:155px;width:100%;background-color:#f5f5f7;padding:13px 15px 12px;border-top:1px solid #939396}@media (min-width: 768px){.facets-list__button-group[_ngcontent-%COMP%]{display:none}}.facets-list__button[_ngcontent-%COMP%]{width:calc(100% - 30px);margin:7px auto;display:block}"],changeDetection:0}),a})();function le(a){if(a.length)return a.reduce((d,t)=>t.subfacets?(d[t.value]=1===t.subfacets.length?t.subfacets[0].value:t.subfacets.map(i=>i.value),d):d,{})}var W=o(39047),ue=o(81924),ge=o(5201),me=o(14814),he=o(47905),fe=o(70477),ve=o(68716),xe=o(91954);let _e=(()=>{class a{constructor(t){this.logger=t}parseFacets(t){if(!t.facets)return t;try{return{...t,facets:JSON.parse(t.facets)}}catch(i){return this.logger.error("parseFacets: unable to parse facets input",i),{...t,facets:void 0}}}buildFacetsObject(t,i){return t||this.logger.error("mapFacetsObjectToInterface: invalid input"),function de(a,d){return Object.keys(a).filter(t=>!!t&&!!a[t]).map(t=>({id:t,value:t,displayName:d[t]||t,count:a[t].map(i=>i.count||0).reduce((i,s)=>i+s,0),subfacets:a[t].map(i=>({...i,id:t+i.value}))}))}(t,i)}}return a.\u0275fac=function(t){return new(t||a)(e.\u0275\u0275inject(xe.te))},a.\u0275prov=e.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();
1var ye=o(91775),Ce=o(68316),be=o(41150),Se=o(51300),Pe=o(82117),Te=o(71489);const Oe=["videoPlayer"];function Fe(a,d){if(1&a&&(e.\u0275\u0275element(0,"p",22),e.\u0275\u0275pipe(1,"floSanitizeHtml")),2&a){const t=e.\u0275\u0275nextContext(2).ngIf;e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(1,1,null==t.selectedVideo||null==t.selectedVideo.info?null:t.selectedVideo.info.description),e.\u0275\u0275sanitizeHtml)}}function Ie(a,d){if(1&a&&(e.\u0275\u0275elementStart(0,"p",23),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&a){const t=e.\u0275\u0275nextContext(2).ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(null==t.selectedVideo||null==t.selectedVideo.info?null:t.selectedVideo.info.description)}}function Me(a,d){if(1&a&&(e.\u0275\u0275elementStart(0,"div",24),e.\u0275\u0275element(1,"flo-tags",25),e.\u0275\u0275elementEnd()),2&a){const t=e.\u0275\u0275nextContext(2).ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("tags",t.selectedVideo.player.node.tags)}}function Ee(a,d){1&a&&e.\u0275\u0275element(0,"div",26)}function Ve(a,d){if(1&a){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",13)(1,"div")(2,"flo-video-player",14,15),e.\u0275\u0275listener("played",function(){e.\u0275\u0275restoreView(t);const s=e.\u0275\u0275nextContext().ngIf,l=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(l.onPlayed(s.nextVideoId))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div",16)(5,"h2"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"h3"),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"date"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",17),e.\u0275\u0275template(11,Fe,2,3,"p",18),e.\u0275\u0275template(12,Ie,2,1,"p",19),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(13,Me,2,1,"div",20),e.\u0275\u0275template(14,Ee,1,0,"div",21),e.\u0275\u0275elementEnd()}if(2&a){const t=e.\u0275\u0275nextContext().ngIf;e.\u0275\u0275advance(2),e.\u0275\u0275property("video",null==t.selectedVideo?null:t.selectedVideo.player)("isAutoPlayed",!0)("isPlaylist",!0),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(null==t.selectedVideo||null==t.selectedVideo.info?null:t.selectedVideo.info.title),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(9,10,null==t.selectedVideo||null==t.selectedVideo.info?null:t.selectedVideo.info.date)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngSwitch",null==t.selectedVideo||null==t.selectedVideo.info?null:t.selectedVideo.info.isRich),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",!1),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==t.selectedVideo?null:t.selectedVideo.player.node.tags),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==t.selectedVideo?null:t.selectedVideo.player.node.tags)}}function we(a,d){if(1&a){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",27)(1,"button",28),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const s=e.\u0275\u0275nextContext().ngIf,l=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(l.onPage(s.nextLimit))}),e.\u0275\u0275text(2,"See More"),e.\u0275\u0275elementEnd()()}}function Ue(a,d){if(1&a){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div",3),e.\u0275\u0275element(3,"flo-select-input",4),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div",5)(5,"flo-vertical-search",6),e.\u0275\u0275listener("queryChange",function(s){e.\u0275\u0275restoreView(t);const l=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(l.onVertSearchChange(s))}),e.\u0275\u0275pipe(6,"async"),e.\u0275\u0275pipe(7,"async"),e.\u0275\u0275pipe(8,"async"),e.\u0275\u0275pipe(9,"async"),e.\u0275\u0275elementStart(10,"div",7),e.\u0275\u0275element(11,"flo-select-input",8),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"div",9),e.\u0275\u0275template(13,Ve,15,12,"div",10),e.\u0275\u0275elementStart(14,"flo-video-grid",11),e.\u0275\u0275listener("selectionChange",function(){e.\u0275\u0275restoreView(t);const s=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(s.emitThumbnailClick$.next(!0))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(15,"br"),e.\u0275\u0275template(16,we,3,0,"div",12),e.\u0275\u0275elementEnd()()()}if(2&a){const t=d.ngIf,i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("options",t.selectOptions)("initial",t.sort)("formControl",t.topSortControl),e.\u0275\u0275advance(2),e.\u0275\u0275property("allFacets",e.\u0275\u0275pipeBind1(6,21,i.allFacets$))("currentFacets",e.\u0275\u0275pipeBind1(7,23,i.currentFacets$))("resultsCount",e.\u0275\u0275pipeBind1(8,25,i.resultsCount$))("debounceTime",750)("searchName",t.searchTitle)("totalSuffix",t.totalTitle)("totalSuffixPlural",t.totalTitlePlural)("total",null==t.videos?null:t.videos.length)("searchTerm",t.searchTerm)("selectedFacets",e.\u0275\u0275pipeBind1(9,27,i.selectedFacets$)),e.\u0275\u0275advance(6),e.\u0275\u0275property("options",t.selectOptions)("initial",t.sort)("ngModel",t.sort),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.selectedVideo),e.\u0275\u0275advance(1),e.\u0275\u0275property("videos",t.videos)("notFoundWarning",t.notFoundWarning)("queryParamsFn",null==t?null:t.queryParamsFn),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.canLoadMore)}}let Ae=(()=>{class a{constructor(t,i,s,l,c,f,S,C,U){this.ar=t,this.url=i,this.router=s,this.auth=l,this.vs=c,this.ns=f,this.segmentService=S,this.searchService=C,this.verticalSearch=U,this.PAGE_LIMIT=15,this.videoPlayer$=new V.t(1),this.emitThumbn
1ailClick$=new V.t(1),this.urlParams$=this.ar.queryParams.pipe((0,h.x)(),(0,p.U)(r=>this.verticalSearch.parseFacets(r)),(0,p.U)(r=>Object.keys(r).reduce((b,H)=>({...b,[H]:this.url.decode(r[H])}),{})),(0,u.d)(1)),this.videosResponse$=this.ar.queryParams.pipe((0,h.x)(),(0,p.U)(r=>this.verticalSearch.parseFacets(r)),(0,p.U)(r=>function De(a){const d={q:a.q,sort:a.sort,include_node:parseInt(a.playing,10),limit:a.limit,type:"video",facets:a.facets};return Object.keys(d).filter(i=>!!d[i]).reduce((i,s)=>({...i,[s]:d[s]}),{})}(r)),(0,p.U)(r=>({sort:"recent",...r,category:"Training",type:"video"})),(0,I.V)(r=>this.searchService.search(r),(r,b)=>({params:r,response:b})),(0,u.d)(1)),this.view$=(0,P.a)([this.videosResponse$,this.auth.user$,this.vs.siteSettings$]).pipe((0,p.U)(([r,b,H])=>{const A=r.params,He=this.extractPlayingVideoFromMeta(r.response),R=r.response.meta,D=r.response.data||[],Le=R&&R.page&&R.pages&&R.page<R.pages,We=(A.limit&&+A.limit||this.PAGE_LIMIT)+this.PAGE_LIMIT,z=D.find(B=>B&&B.id===+(A.include_node||0))||He,Q=D.findIndex(B=>B&&B.id===+(A.include_node||0)),ze=D[Q]&&D[Q+1]&&D[Q+1].id||D[0]&&D[0].id,Qe=this.vertSearch?this.vertSearch.searchTerm:A.q||"",Ke=z&&{player:this.videoPlayerExtractor(z,H),info:this.getPlayingVideoInfo(z)};return{isLoggedInUser:b.loggedIn,isAuthorizedUser:b.isPremium,selectedVideo:Ke,params:A,videos:D,queryParamsFn:B=>({playing:B.id}),searchTerm:Qe,sort:A.sort||"recent",searchTitle:`Find ${H.training_videos_name||"Training"} Videos`,totalTitle:"Video",totalTitlePlural:"Videos",channel:"techniques-page",canLoadMore:Le,topSortControl:new _.p4(A.sort,[]),nextVideoId:ze,nextLimit:We,notFoundWarning:R.error?"Sorry, we don't have any results for that.":void 0,selectOptions:{recent:"Most Recent",view_count:"Most Watched"}}}),(0,v.b)(r=>{r.topSortControl.valueChanges.pipe((0,M.q)(1)).subscribe(b=>{this.trackSelectOptions(b),this.searchWithoutVideo({sort:b})})}),(0,u.d)(1)),this.currentFacets$=this.videosResponse$.pipe((0,p.U)(r=>r.response.meta.extra),(0,y.h)(Boolean),(0,p.U)(r=>r[0]),(0,y.h)(Boolean),(0,p.U)(r=>({videoFilters:r.video_filters,displayNames:r.facet_display_names})),(0,y.h)(({videoFilters:r})=>!!r),(0,p.U)(({videoFilters:r,displayNames:b})=>this.verticalSearch.buildFacetsObject(r,b))),this.allFacets$=this.searchService.getFacets({category:"Training",type:"video"}).pipe((0,M.q)(1),(0,p.U)(r=>r.meta.extra),(0,y.h)(Boolean),(0,p.U)(r=>r[0]),(0,y.h)(Boolean),(0,p.U)(r=>({videoFilters:r.video_filters,displayNames:r.facet_display_names})),(0,y.h)(({videoFilters:r})=>!!r),(0,p.U)(({videoFilters:r,displayNames:b})=>this.verticalSearch.buildFacetsObject(r,b))),this.resultsCount$=this.videosResponse$.pipe((0,p.U)(r=>r.response),(0,y.h)(Boolean),(0,p.U)(r=>r.meta),(0,y.h)(Boolean),(0,p.U)(r=>r.total)),this.selectedFacets$=this.urlParams$.pipe((0,p.U)(r=>r&&r.facets),(0,y.h)(Boolean),(0,p.U)(r=>function pe(a){return Object.keys(a).map(d=>({id:d,value:d,subfacets:Array.isArray(a[d])?a[d]:[a[d]]})).map(d=>({...d,subfacets:d.subfacets.map(t=>({id:d.value+t,value:t}))}))}(r)),(0,u.d)(1)),this.ngOnDestroy$=new T.x,this.scrollToVideoPlayer$=(0,P.a)([this.emitThumbn
1ailClick$,this.videoPlayer$.pipe((0,h.x)())]).pipe((0,$.R)(this.ngOnDestroy$)).subscribe(([r,b])=>{b.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}),this.updateMetaTagsBySelectedVideo=this.view$.pipe((0,p.U)(r=>r.selectedVideo),(0,y.h)(Boolean),(0,p.U)(r=>r.player),(0,y.h)(Boolean)).subscribe(r=>this.ns.applyNodeMetaToPage(r)),this.trackSelectedVideo=this.view$.pipe((0,p.U)(r=>r.selectedVideo&&r.selectedVideo.player),(0,h.x)((r,b)=>(r&&r.id)===(b&&b.id)),(0,$.R)(this.ngOnDestroy$)).subscribe(r=>this.segmentService.page(void 0,`${r?j.E.TRAINING_VIDEO.name:j.E.TRAINING_HOME.name}`,void 0,r))}set videoPlayerContainer(t){t?.nativeElement&&this.videoPlayer$.next(t.nativeElement)}extractPlayingVideoFromMeta(t){return t.meta&&t.meta.extra&&t.meta.extra.reduce((i,s)=>Object.keys(s).filter(l=>"include_node"===l).map(l=>s[l]).pop(),{})}getPlayingVideoInfo(t){const i=t||{};return{title:i.title,date:i.publish_start_date,description:i.description||i.description_plain,isRich:!!i.description}}videoPlayerExtractor(t,i){const s=t||{};return{...s,imgUrl:s.asset&&s.asset.url,nodeId:s.id,assocId:s.node&&s.node.primary_event_or_series_association&&s.node.primary_event_or_series_association.id,adsetId:i.ooyala_master_ad_set,playerId:i.ooyala_player_id,playerColor:i.primary_color,contentId:s.content_id,title:s.title,routerLink:["../",`${s.id}-${s.slug}`]}}onVideoSelectionChange(t){this.router.navigate([],{queryParams:{playing:t.id},queryParamsHandling:"merge"})}onVertSearchChange(t){this.searchWithoutVideo(t)}searchWithoutVideo(t){const{playing:i,...s}=this.ar.snapshot.queryParams,l={...s,...t};l.facets=t.facets&&Object.keys(t.facets).length?JSON.stringify(t.facets):void 0,this.router.navigate([],{queryParams:l,queryParamsHandling:"merge"})}onPage(t){this.router.navigate([],{queryParams:{limit:t},queryParamsHandling:"merge"})}onPlayed(t){t&&this.onVideoSelectionChange({id:t})}ngOnDestroy(){this.ngOnDestroy$.next(),this.ngOnDestroy$.complete()}trackSelectOptions(t){this.segmentService.trackEvent({name:W.AA.DROPDOWN_OPTION_SELECTED,properties:{name:W.EL.SORT_BY,sort_by:"recent"===t?W.te.MOST_RECENT:W.te.MOST_WATCHED,node:void 0}})}}return a.\u0275fac=function(t){return new(t||a)(e.\u0275\u0275directiveInject(m.ActivatedRoute),e.\u0275\u0275directiveInject(ue.iO),e.\u0275\u0275directiveInject(m.Router),e.\u0275\u0275directiveInject(ge.e),e.\u0275\u0275directiveInject(me.A),e.\u0275\u0275directiveInject(he.s),e.\u0275\u0275directiveInject(fe.BP),e.\u0275\u0275directiveInject(ve.o),e.\u0275\u0275directiveInject(_e))},a.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["flo-training"]],viewQuery:function(t,i){if(1&t&&(e.\u0275\u0275viewQuery(Oe,5,e.ElementRef),e.\u0275\u0275viewQuery(J,5)),2&t){let s;e.\u0275\u0275queryRefresh(s=e.\u0275\u0275loadQuery())&&(i.videoPlayerContainer=s.first),e.\u0275\u0275queryRefresh(s=e.\u0275\u0275loadQuery())&&(i.vertSearch=s.first)}},decls:2,vars:3,consts:[["class","container training-container px-lg-4","data-test","training-container",4,"ngIf"],["data-test","training-container",1,"container","training-container","px-lg-4"],[1,"d-none","d-lg-flex","w-100","justify-content-end","py-3"],[1,"col-2"],[3,"options","initial","formControl"],[1,"row"],["data-test","facet-container","queryChangeSkip","1",1,"col-md-12","col-lg-3","marg-top","mb-3",3,"allFacets","currentFacets","resultsCount","debounceTime","searchName","totalSuffix","totalSuffixPlural","total","searchTerm","selectedFacets","queryChange"],[1,"mt-2","d-flex","d-lg-none"],["id","sort","ngDefaultControl","",3,"options","initial","ngModel"],[1,"col","marg-top"],["class","mb-4",4,"ngIf"],["queryParamsHandling","merge",3,"videos","notFoundWarning","queryParamsFn","selectionChange"],["class","d-flex justify-content-center",4,"ngIf"],[1,"mb-4"],["floScrollToElementOnNavigation","","id","video-player",3,"video","isAutoPlayed","isPlaylist","played"],["videoPlayer",""],["id","desc",1,"full-content"],[3,"ngSwitch"],["id","dynamic-content","floDynamicContent","",3,"innerHTML",4,"ngSwitchCase"],["id","plain-content",4,"ngSwitchCase"],["class","pb-3",4,"ngIf"],["class","mt-1 pb-2 border-top border-grey-300",4,"ngIf"],["id","dynamic-content","floDynamicContent","",3,"innerHTML"],["
1id","plain-content"],[1,"pb-3"],["collectionTabUriPart","/video",3,"tags"],[1,"mt-1","pb-2","border-top","border-grey-300"],[1,"d-flex","justify-content-center"],["floAnalytics","","name","See More","data-test","result-see-more",1,"btn-primary","btn","btn-lg",3,"click"]],template:function(t,i){1&t&&(e.\u0275\u0275template(0,Ue,17,29,"div",0),e.\u0275\u0275pipe(1,"async")),2&t&&e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(1,1,i.view$))},dependencies:[w.O5,w.RF,w.n9,k.v,_.Fj,_.JJ,_.On,_.oH,ye.b,Ce.F,be.a,Se.o,Pe.p4,J,w.Ov,w.uU,Te.m],styles:["[_nghost-%COMP%]   .marg-top[_ngcontent-%COMP%]{margin-top:1.1em}[_nghost-%COMP%]   .container[_ngcontent-%COMP%]{padding:15px 30px}@media (max-width: 992px){[_nghost-%COMP%]   .container[_ngcontent-%COMP%]{padding:30px 15px 15px}}[_nghost-%COMP%]   .pad[_ngcontent-%COMP%]{padding:1em}[_nghost-%COMP%]   .pad-inner[_ngcontent-%COMP%]{padding:0 1em}@media (min-width: 768px){[_nghost-%COMP%]   .hide-gt-md[_ngcontent-%COMP%]{display:none}}@media (max-width: 768px){[_nghost-%COMP%]   .hide-lt-md[_ngcontent-%COMP%]{display:none}}.training-container[_ngcontent-%COMP%]{padding-top:0!important;margin-top:20px}.row.justify-content-center[_ngcontent-%COMP%]{margin-bottom:30px}"],changeDetection:0}),a})(),Be=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.\u0275\u0275defineNgModule({type:a}),a.\u0275inj=e.\u0275\u0275defineInjector({imports:[m.RouterModule.forChild([{path:"",component:Ae,canActivate:[n.y1],data:{segment:j.E.TRAINING_HOME,shouldShowAdSkin:!1,shouldShowEventTicker:!0,noTopScroll:!0,meta:{title:"meta_training_page_title",description:"meta_training_page_description","og:type":"meta_default_type"}}}]),m.RouterModule]}),a})();var G=o(99286),$e=o(29844);let Ne=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.\u0275\u0275defineNgModule({type:a}),a.\u0275inj=e.\u0275\u0275defineInjector({imports:[G.m8,w.ez]}),a})();var Re=o(20368);let je=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.\u0275\u0275defineNgModule({type:a}),a.\u0275inj=e.\u0275\u0275defineInjector({imports:[Be,G.m8,Re.I,$e.f,Ne]}),a})()}}]);

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.