1"use strict";(self.webpackChunkflosports_webapp=self.webpackChunkflosports_webapp||[]).push([[7103],{17103:(L,b,r)=>{r.d(b,{K:()=>De});var e=r(94650),i=r(61135),x=r(39841),_=r(54004),k=r(34782),C=r(36514),g=r(87833);const O=["trigger"];let y=(()=>{class n{constructor(){this.expanded=!1,this.testId="schedule-calendar-sync-button",this.triggered=new e.EventEmitter}get isVisible(){return!!this.trigger?.nativeElement.offsetParent}focus(){this.trigger?.nativeElement.focus()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.\u0275\u0275defineComponent({type:n,selectors:[["flo-schedule-calendar-sync-trigger"]],viewQuery:function(t,a){if(1&t&&e.\u0275\u0275viewQuery(O,5),2&t){let o;e.\u0275\u0275queryRefresh(o=e.\u0275\u0275loadQuery())&&(a.trigger=o.first)}},inputs:{expanded:"expanded",testId:"testId"},outputs:{triggered:"triggered"},decls:4,vars:2,consts:[["type","button","aria-haspopup","dialog",1,"btn","btn-secondary","btn-sm","schedule-calendar-sync-button",3,"click"],["trigger",""],["icon","calendar-alt","width","1em","height","1em","aria-hidden","true"]],template:function(t,a){1&t&&(e.\u0275\u0275elementStart(0,"button",0,1),e.\u0275\u0275listener("click",function(){return a.triggered.emit()}),e.\u0275\u0275element(2,"flo-svg-icon",2),e.\u0275\u0275text(3," Sync to calendar\n"),e.\u0275\u0275elementEnd()),2&t&&e.\u0275\u0275attribute("aria-expanded",a.expanded)("data-test",a.testId)},dependencies:[g.b],styles:[".schedule-calendar-sync-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;white-space:nowrap}"],changeDetection:0}),n})();var E=r(7069),v=r(55018),M=r(40435),p=r(39047),u=r(70477);let d=(()=>{class n{constructor(t){this.segment=t}trackOpened(t){this.segment.trackEvent({name:p.AA.CALENDAR_SYNC_OPENED,properties:t})}trackTeamsSelected(t){this.segment.trackEvent({name:p.AA.CALENDAR_SYNC_TEAMS_SELECTED,properties:t})}trackPlatformSelected(t){this.segment.trackEvent({name:p.AA.CALENDAR_SYNC_PLATFORM_SELECTED,properties:t})}trackCompleted(t){this.segment.trackEvent({name:p.AA.CALENDAR_SYNC_COMPLETED,properties:t})}}return n.\u0275fac=function(t){return new(t||n)(e.\u0275\u0275inject(u.BP))},n.\u0275prov=e.\u0275\u0275defineInjectable({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var c=r(36895),m=r(22403),I=r(39137),f=r(38974);const D=function(n){return{"selected color-ignite border-bottom primary-color-border-bottom":n}};function V(n,l){if(1&n&&(e.\u0275\u0275elementStart(0,"a",4)(1,"span"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"uppercase"),e.\u0275\u0275elementEnd()()),2&n){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("floCustomLink",t.url)("analyticsProperties",t.action)("ngClass",e.\u0275\u0275pureFunction1(7,D,"selected"===t.state)),e.\u0275\u0275attribute("data-test","date-bar-item-"+t.state=="selected"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,5,t.title))}}function $(n,l){if(1&n&&(e.\u0275\u0275elementStart(0,"a",4)(1,"span"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"uppercase"),e.\u0275\u0275elementEnd()()),2&n){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("floCustomLink",t.action.url)("analyticsProperties",t.action.analytics)("ngClass",e.\u0275\u0275pureFunction1(7,D,t.active)),e.\u0275\u0275attribute("data-test","date-bar-item-"+t.active),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,5,t.title))}}const N=function(n){return{"list-seven":n}};function U(n,l){if(1&n&&(e.\u0275\u0275elementStart(0,"div",2),e.\u0275\u0275template(1,V,4,9,"a",3),e.\u0275\u0275template(2,$,4,9,"a",3),e.\u0275\u0275elementEnd()),2&n){const t=l.$implicit,a=l.index,o=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(5,N,o.items.length>=7))("ngSwitch",t.type),e.\u0275\u0275attribute("data-test","date-bar-item-"+(a+1)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase","link"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase","tab")}}let R=(()=>{class n{constructor(){this.trackById=v.x}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.\u0275\u0275defineComponent({type:n,selectors:[["flo-date-bar"]],inputs:{items:"items"},decls:2,vars:2,consts:[["data-test","date-bar",1,"d-flex","date-bar-container"],["class","date-item flex-fill text-center subhead primary-color-text-hover",3,"ngClass","ngSwitch",4,"ngFor","ngForOf","ngForTrackBy"],[1,"date-item","flex-fill","text-center","subhead","primary-color-text-hover",3,"ngClass","ngSwitch"],["floAnalytics","","eventName","Filter Clicked","class","align-middle w-100 d-block color-600 apply-text-hover",3,"floCustomLink","analyticsProperties","ngClass",4,"ngSwitchCase"],["floAnalytics","","eventName","Filter Clicked",1,"align-middle","w-100","d-block","color-600","apply-text-hover",3,"floCustomLink","analyticsProperties","ngClass"]],template:function(t,a){1&t&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,U,3,7,"div",1),e.\u0275\u0275elementEnd()),2&t&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",a.items)("ngForTrackBy",a.trackById))},dependencies:[c.mk,c.sg,c.RF,c.n9,I.v,f.d,c.gd],styles:[".date-bar-container[_ngcontent-%COMP%] > .date-item[_ngcontent-%COMP%]{color:#535357}.date-bar-container[_ngcontent-%COMP%] > .date-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:18px 8px}@media (max-width: 768px){.date-bar-container[_ngcontent-%COMP%] > .date-item[_ngcontent-%COMP%]:first-child, .date-bar-container[_ngcontent-%COMP%] > .date-item[_ngcontent-%COMP%]:last-child, .date-bar-container[_ngcontent-%COMP%] > .date-item.list-seven[_ngcontent-%COMP%]:nth-child(2), .date-bar-container[_ngcontent-%COMP%] > .date-item.list-seven[_ngcontent-%COMP%]:nth-last-child(2){display:none}}.datepicker-visible[_nghost-%COMP%] .date-bar-container[_ngcontent-%COMP%] > .date-item[_ngcontent-%COMP%], .datepicker-visible [_nghost-%COMP%] .date-bar-container[_ngcontent-%COMP%] > .date-item[_ngcontent-%COMP%]{max-width:85px}"],changeDetection:0}),n})();
1var F=r(25108),S=r(24006),B=r(82722),j=r(77579),z=r(63369),Q=r(1117);function H(n,l){if(1&n&&(e.\u0275\u0275elementStart(0,"div",5)(1,"span",6),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&n){const t=l.$implicit,a=l.disabled,o=l.selected;e.\u0275\u0275classProp("focused",l.focused)("active",o)("disabled",a),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",t.day," ")}}let G=(()=>{class n{constructor(t){this.segmentService=t,this.ngOnDestroy$=new j.x,this.datePickerFormControl=new S.p4,this.placement="bottom-left",this.minDate=new F.qj(1901,1,1),this.maxDate=new F.qj((0,z.Z)(new Date)+3,12,30),this.dateSelected=new e.EventEmitter}set selectedDate(t){t&&(this._selectedDate=t,this.startDate=this._selectedDate,this.datePickerFormControl.setValue(this.selectedDate))}get selectedDate(){return this._selectedDate}ngOnInit(){this.datePickerFormControl.valueChanges.pipe((0,B.R)(this.ngOnDestroy$)).subscribe(t=>{if(this.selectedDate&&this.selectedDate.year===t.year&&this.selectedDate.month===t.month&&this.selectedDate.day===t.day)return;this.selectedDate=t,this.startDate=t;const a=function T(n){const l=String(n.month).length<2?`0${n.month}`:n.month,t=String(n.day).length<2?`0${n.day}`:n.day;return`${n.year}-${l}-${t}`}(t);this.selectTrackCall(a),this.dateSelected.emit({formattedDate:a,day:t.day,month:t.month,year:t.year})})}selectTrackCall(t){const a={name:p.AA.CALENDAR_DATE_CLICKED,properties:this.analyticsProperties?{...(0,Q.O2)(this.analyticsProperties),name:t}:{name:t}};this.segmentService.trackEvent(a)}ngOnDestroy(){this.ngOnDestroy$.next(),this.ngOnDestroy$.complete()}}return n.\u0275fac=function(t){return new(t||n)(e.\u0275\u0275directiveInject(u.BP))},n.\u0275cmp=e.\u0275\u0275defineComponent({type:n,selectors:[["flo-date-picker"]],inputs:{analyticsProperties:"analyticsProperties",placement:"placement",selectedDate:"selectedDate",minDate:"minDate",maxDate:"maxDate",startDate:"startDate"},outputs:{dateSelected:"dateSelected"},decls:6,vars:6,consts:[["id","dptoggle","data-test","date-picker-toggle-button",1,"btn","btn-icon","icon-tertiary",3,"click"],["icon","calendar-alt","width","20px","height","20px",1,"grey-600"],["type","hidden","name","dp","ngbDatepicker","","outsideDays","collapsed","firstDayOfWeek","7","positionTarget","#dptoggle","restoreFocus","false",3,"formControl","minDate","maxDate","startDate","dayTemplate","placement"],["d","ngbDatepicker"],["customDay",""],["data-test","custom-template",1,"position-relative","display-flex","align-items-center"],[1,"custom-day"]],template:function(t,a){if(1&t){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",0),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const h=e.\u0275\u0275reference(3);return e.\u0275\u0275resetView(h.toggle())}),e.\u0275\u0275element(1,"flo-svg-icon",1),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(2,"input",2,3),e.\u0275\u0275template(4,H,3,7,"ng-template",null,4,e.\u0275\u0275templateRefExtractor)}if(2&t){const o=e.\u0275\u0275reference(5);e.\u0275\u0275advance(2),e.\u0275\u0275property("formControl",a.datePickerFormControl)("minDate",a.minDate)("maxDate",a.maxDate)("startDate",a.startDate)("dayTemplate",o)("placement",a.placement)}},dependencies:[F.J4,g.b,S.Fj,S.JJ,S.oH],encapsulation:2,changeDetection:0}),n})();var W=r(88718),Y=r(25160);const P=[{platform:"google",label:"Google Calendar",icon:"google_logo",actionLabel:"Add to Google Calendar",instruction:"Opens Google Calendar with this schedule ready to add.",followUp:"Once added, select the new calendar under \u201cOther calendars\u201d in Google Calendar to see your events."},{platform:"apple",label:"Apple Calendar",icon:"apple_logo",actionLabel:"Add to Apple Calendar",instruction:"Opens Calendar and asks you to confirm the subscription."},{platform:"outlook",label:"Outlook desktop",icon:"outlook_logo",actionLabel:"Add to Outlook",instruction:"Opens the Outlook app and adds the schedule under Other calendars."},{platform:"office365",label:"Outlook on the web",icon:"outlook_logo",actionLabel:"Add to Outlook on the web",instruction:"Opens Outlook.com with this schedule ready to add. For a work or school account, copy the link instead."},{platform:"other",label:"Other calendar",icon:"calendar-alt",actionLabel:"Add to calendar",instruction:"Opens your default calendar app. If nothing happens, copy the link and add it there."}];var K=r(95698),X=r(49670),Z=r(14814);let q=(()=>{class n{constructor(t){this.verticalService=t}buildFeedUrls$(t){return this.verticalService.apiUrl$.pipe((0,K.q)(1),(0,_.U)(a=>this.buildFeedUrls(a,t)))}buildFeedUrls(t,a){const o=a.map(Number).filter(Number.isFinite),s=Array.from(new Set(o)).sort((Ae,Le)=>Ae-Le),h=new URL(`${t}/${X.lH}`);h.search=`nodes=${s.join(",")}&version=1.5.0`;const A=h.toString();return{https:A,webcal:A.replace(/^https?:/,"webcal:")}}}return n.\u0275fac=function(t){return new(t||n)(e.\u0275\u0275inject(Z.A))},n.\u0275prov=e.\u0275\u0275defineInjectable({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var ee=r(88733);function te(n,l){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"li")(1,"label",6)(2,"input",7),e.\u0275\u0275listener("change",function(){const s=e.\u0275\u0275restoreView(t).$implicit,h=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(h.toggleTeam(s.id))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()}if(2&n){const t=l.$implicit,a=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("checked",a.isSelected(t.id)),e.\u0275\u0275attribute("data-test","team-checkbox-"+t.id),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.name," ")}}let ne=(()=>{class n{constructor(){this.teams=[],this.teamsSelected=new e.EventEmitter,this.selectedIds=new Set}set selectedTeamIds(t){this.selectedIds=new Set(t??[])}toggleTeam(t){this.selectedIds.has(t)?this.selectedIds.delete(t):this.selectedIds.add(t)}isSelected(t){return this.selectedIds.has(t)}get canContinue(){return this.selectedIds.size>0}continue(){this.teamsSelected.emit(Array.from(this.selectedIds))}selectWholeSchool(){this.teamsSelected.emit([])}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.\u0275\u0275defineComponent({type:n,selectors:[["flo-schedule-calendar-sync-team-select"]],inputs:{teams:"teams",selectedTeamIds:"selectedTeamIds"},outputs:{teamsSelected:"teamsSelected"},decls:8,vars:2,consts:[["data-test","choose-teams-step"],[1,"team-select__list"],[4,"ngFor","ngForOf"],[1,"team-select__actions"],["type","button","data-test","continue-button",1,"btn","btn-primary","w-100",3,"disabled","click"],["type","button","data-test","whole-school-button",1,"btn","btn-link","w-100",3,"click"],[1,"team-select__row"],["type","checkbox",1,"team-select__checkbox",3,"checked","change"]],template:function(t,a){1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"ul",1),e.\u0275\u0275template(2,te,4,3,"li",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",3)(4,"button",4),e.\u0275\u0275listener("click",function(){return a.continue()}),e.\u0275\u0275text(5," Continue "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"button",5),e.\u0275\u0275listener("click",function(){return a.selectWholeSchool()}),e.\u0275\u0275text(7," Subscribe to all teams "),e.\u0275\u0275elementEnd()()()),2&t&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",a.teams),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",!a.canContinue))},dependencies:[c.sg],styles:[".team-select__list[_ngcontent-%COMP%]{margin:1rem -1.5rem 0;padding:0;list-style:none;max-height:15rem;overflow-y:auto;border-top:1px solid #eeeef0}.team-select__row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;width:100%;margin:0;padding:.6875rem 1.5rem;border-bottom:1px solid #eeeef0;color:#323236;font-size:.9375rem;cursor:pointer}.team-select__row[_ngcontent-%COMP%]:hover{background-color:#f5f5f7}.team-select__checkbox[_ngcontent-%COMP%]{flex:0 0 auto;width:1rem;height:1rem;accent-color:#232327;cursor:pointer}.team-select__actions[_ngcontent-%COMP%]{margin-top:1.25rem}"],changeDetection:0}),n})();var oe=r(11481);function le(n,l){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",12),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.copyLink())}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.copied?"Copied":"Copy link"," ")}}function re(n,l){if(1&n&&(e.\u0275\u0275elementStart(0,"p",13),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.followUp)}}let ie=(()=>{class n{constructor(t,a,o){this.platformId=t,this.sanitizer=a,this.cdr=o,this.completed=new e.EventEmitter,this.opensInNewTab=!1,this.copied=!1}get profile(){return P.find(t=>t.platform===this.platform)}get instruction(){return this.profile?.instruction??""}get actionLabel(){return this.profile?.actionLabel??"Add to calendar"}get followUp(){return this.profile?.followUp}ngOnChanges(t){if(!t.platform&&!t.feedUrls||!this.feedUrls)return;const a=function ae(n,l){switch(n){case"google":return`https://calendar.google.com/calendar/r?cid=${encodeURIComponent(l.webcal)}`;case"office365":return`https://outlook.live.com/owa/?path=/calendar/action/compose&rru=addsubscription&url=${encodeURIComponent(l.https)}`;default:return l.webcal}}(this.platform,this.feedUrls);this.safeAddUrl=this.sanitizer.bypassSecurityTrustUrl(a),this.opensInNewTab=!a.startsWith("webcal:")}get canCopy(){return(0,c.NF)(this.platformId)&&!!navigator.clipboard}copyLink(){!this.canCopy||navigator.clipboard.writeText(this.feedUrls.https).then(()=>{this.copied=!0,this.cdr.markForCheck(),this.scheduleCopiedReset(),this.completed.emit("copy")}
1).catch(()=>{this.copied=!1,this.cdr.markForCheck()})}ngOnDestroy(){this.copiedResetHandle&&clearTimeout(this.copiedResetHandle)}scheduleCopiedReset(){this.copiedResetHandle&&clearTimeout(this.copiedResetHandle),this.copiedResetHandle=setTimeout(()=>{this.copied=!1,this.cdr.markForCheck()},3e3)}}return n.\u0275fac=function(t){return new(t||n)(e.\u0275\u0275directiveInject(e.PLATFORM_ID),e.\u0275\u0275directiveInject(oe.H7),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},n.\u0275cmp=e.\u0275\u0275defineComponent({type:n,selectors:[["flo-schedule-calendar-sync-feed-links"]],inputs:{platform:"platform",feedUrls:"feedUrls"},outputs:{completed:"completed"},features:[e.\u0275\u0275NgOnChangesFeature],decls:18,vars:10,consts:[["data-test","feed-links",1,"feed-links"],["data-test","platform-instruction",1,"feed-links__instruction"],["data-test","subscribe-link",1,"btn","btn-primary","w-100",3,"href","click"],["data-test","manual-url-entry",1,"feed-links__manual"],["for","calendar-sync-feed-url",1,"feed-links__label"],[1,"feed-links__copy"],["id","calendar-sync-feed-url","type","text","readonly","","data-test","manual-url-input",1,"feed-links__url",3,"value"],["type","button","class","btn btn-secondary btn-sm","data-test","copy-link-button",3,"click",4,"ngIf"],["role","status","aria-live","polite","data-test","copy-status",1,"visually-hidden"],["data-test","download-link","target","_blank","rel","noopener",1,"btn","btn-link","w-100",3,"href","click"],["data-test","platform-follow-up","class","feed-links__footnote",4,"ngIf"],["data-test","refresh-copy",1,"feed-links__footnote"],["type","button","data-test","copy-link-button",1,"btn","btn-secondary","btn-sm",3,"click"],["data-test","platform-follow-up",1,"feed-links__footnote"]],template:function(t,a){1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"p",1),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"a",2),e.\u0275\u0275listener("click",function(){return a.completed.emit("subscribe")}),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",3)(6,"label",4),e.\u0275\u0275text(7,"Or add it yourself with this link"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",5),e.\u0275\u0275element(9,"input",6),e.\u0275\u0275template(10,le,2,1,"button",7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"span",8),e.\u0275\u0275text(12),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(13,"a",9),e.\u0275\u0275listener("click",function(){return a.completed.emit("download")}),e.\u0275\u0275text(14," Download .ics instead "),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(15,re,2,1,"p",10),e.\u0275\u0275elementStart(16,"p",11),e.\u0275\u0275text(17," Subscribed calendars update automatically every few hours. "),e.\u0275\u0275elementEnd()()),2&t&&(e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(a.instruction),e.\u0275\u0275advance(1),e.\u0275\u0275property("href",a.safeAddUrl,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275attribute("target",a.opensInNewTab?"_blank":null)("rel",a.opensInNewTab?"noopener":null),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",a.actionLabel," "),e.\u0275\u0275advance(5),e.\u0275\u0275property("value",a.feedUrls.https),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.canCopy),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",a.copied?"Link copied to clipboard":""," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("href",a.feedUrls.https,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",a.followUp))},dependencies:[c.O5],styles:[".feed-links[_ngcontent-%COMP%]{margin-top:1.25rem}.feed-links__manual[_ngcontent-%COMP%]{margin-top:1rem}.feed-links__instruction[_ngcontent-%COMP%]{margin:0 0 .875rem;font-size:.875rem;line-height:1.45;color:#535357}.feed-links__label[_ngcontent-%COMP%]{margin:0 0 .375rem;font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:#939396}.feed-links__copy[_ngcontent-%COMP%]{display:flex;gap:.5rem}.feed-links__url[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;padding:.4375rem .625rem;border:1px solid #eeeef0;border-radius:4px;background-color:#fafafb;color:#535357;font-size:.8125rem}.feed-links__footnote[_ngcontent-%COMP%]{margin:.75rem 0 0;font-size:.75rem;line-height:1.4;color:#6f6f73;text-align:center}"],changeDetection:0}),n})();const ce=["stepHeading"];function de(n,l){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",9),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(o.back())}),e.\u0275\u0275element(1,"flo-svg-icon",10),e.\u0275\u0275text(2," Back "),e.\u0275\u0275elementEnd()}if(2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275attribute("data-test",t.backTestId)}}function pe(n,l){if(1&n&&(e.\u0275\u0275elementStart(0,"p",11),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.subtitle)}}function me(n,l){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"flo-schedule-calendar-sync-team-select",12),e.\u0275\u0275listener("teamsSelected",function(o){e.\u0275\u0275restoreView(t);const s=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(s.onTeamsSelected(o))}),e.\u0275\u0275elementEnd()}if(2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("teams",t.teams)("selectedTeamIds",t.selectedTeamIds)}}function he(n,l){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"li")(1,"button",15),e.\u0275\u0275listener("click",function(){const s=e.\u0275\u0275restoreView(t).$implicit,h=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(h.selectCalendar(s.platform))}),e.\u0275\u0275elementStart(2,"span",16),e.\u0275\u0275element(3,"flo-svg-icon",17),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()}if(2&n){const t=l.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275attribute("data-test","calendar-option-"+t.platform),e.\u0275\u0275advance(2),e.\u0275\u0275property("icon",t.icon),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.label," ")}}function ge(n,l){if(1&n&&(e.\u0275\u0275elementStart(0,"ul",13),e.\u0275\u0275template(1,he,5,3,"li",14),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.calendarOptions)}}function ue(n,l){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"flo-schedule-calendar-sync-feed-links",18),e.\u0275\u0275listener("completed",function(o){e.\u0275\u0275restoreView(t);const s=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(s.onCompleted(o))}),e.\u0275\u0275elementEnd()}if(2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("platform",t.selectedCalendar)("feedUrls",t.feedUrls)}}let fe=(()=>{class n{constructor(t,a,o){this.urlBuilder=t,this.analytics=a,this.cdr=o,this.active=!1,this.teams=[],this.isActive=new e.EventEmitter,this.calendarOptions=P,this.step="choose-calendar",this.selectedTeamIds=[]}get feedNodeIds(){return this.selectedTeamIds.length>0?this.selectedTeamIds:[this.nodeId]}get isWholeSchool(){return this.hasTeamsStep&&0===this.selectedTeamIds.length}ngOnChanges(t){!0===t.active?.currentValue&&this.resetToFirstStep()}onTeamsSelected(t){this.selectedTeamIds=t,this.analytics.trackTeamsSelected({node_id:this.nodeId,node_type:this.nodeType,selected_team_count:t.length,available_team_count:this.teams.length,is_whole_school:this.isWholeSchool}),this.goToStep("choose-calendar")}onCompleted(t){!this.selectedCalendar||this.analytics.trackCompleted({node_id:this.nodeId,node_type:this.nodeType,calendar_platform:this.selectedCalendar,sync_method:t,node_count:this.feedNodeIds.length,is_whole_school:this.isWholeSchool})}selectCalendar(t){this.selectedCalendar=t;const a=this.feedNodeIds;this.analytics.trackPlatformSelected({node_id:this.nodeId,node_type:this.nodeType,calendar_platform:t,node_count:a.length,is_whole_school:this.isWholeSchool}),this.urlBuilder.buildFeedUrls$(a).subscribe(o=>{this.feedUrls=o,this.goToStep("subscribe-links"),this.cdr.markForCheck()})}back(){"subscribe-links"!==this.step?"choose-calendar"===this.step&&this.hasTeamsStep&&this.goToStep("choose-teams"):this.goToStep("choose-calendar")}close(){this.isActive.emit(!1)}get hasTeamsStep(){return!!this.teams?.length}get canGoBack(){return"subscribe-links"===this.step||"choose-calendar"===this.step&&this.hasTeamsStep}get backTestId(){return"subscribe-links"===this.step?"subscribe-links-back-button":"back-button"}get title(){if("choose-teams"===this.step)return"Choose teams";if("choose-calendar"===this.step)return"Choose your calendar";const t=P.find(a=>a.platform===this.selectedCalendar)?.label;return t?`Add to ${t}`:"Add to your calendar"}get subtitle(){return"choose-teams"===this.step?"Pick the teams you want, or subscribe to every team at the school.":"choose-calendar"===this.step?"Your schedule stays up to date as games are added, moved, or cancelled.":""}resetToFirstStep(){this.selectedTeamIds=[],this.selectedCalendar=void 0,this.feedUrls=void 0,this.step=this.hasTeamsStep?"choose-teams":"choose-calendar"}goToStep(t){this.step=t,this.cdr.detectChanges(),this.stepHeading?.nativeElement.focus()}}return n.\u0275fac=function(t){return new(t||n)(e.\u0275\u0275directiveInject(q),e.\u0275\u0275directiveInject(d),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},n.\u0275cmp=e.\u0275\u0275defineComponent({type:n,selectors:[["flo-schedule-calendar-sync-modal"]],viewQuery:function(t,a){if(1&t&&e.\u0275\u0275viewQuery(ce,5),2&t){let o;e.\u0275\u0275queryRefresh(o=e.\u0275\u0275loadQuery())&&(a.stepHeading=o.first)}},inputs:{active:"active",nodeId:"nodeId",nodeType:"nodeType",teams:"teams"},outputs:{isActive:"isActive"},features:[e.\u0275\u0275NgOnChangesFeature],decls:10,vars:8,consts:[[3,"active","width","isActive"],["role","dialog","aria-modal","true","aria-labelledby","calendar-sync-title","data-test","schedule-calendar-sync-modal",1,"calendar-sync"],["type","button","class","calendar-sync__back",3,"click",4,"ngIf"],["id","calendar-sync-title","tabindex","-1",1,"calendar-sync__title"],["stepHeading",""],["class","calendar-sync__subtitle",4,"ngIf"],[3,"teams","selectedTeamIds","teamsSelected",4,"ngIf"],["class","calendar-sync__options","data-test","choose-calendar-step",4,"ngIf"],[3,"platform","feedUrls","completed",4,"ngIf"],["type","button",1,"calendar-sync__back",3,"click"],["icon","icon-angle-left","width","24px"],[1,"calendar-sync__subtitle"],[3,"teams","selectedTeamIds","teamsSelected"],["data-test","choose-calendar-step",1,"calendar-sync__options"],[4,"ngFor","ngForOf"],["type","button",1,"calendar-sync__option",3,"click"],[1,"calendar-sync__mark"],["width","1.125em",3,"icon"],[3,"platform","feedUrls","completed"]],template:function(t,a){1&t&&(e.\u0275\u0275elementStart(0,"flo-modal",0),e.\u0275\u0275listener("isActive",function(){return a.close()}),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275template(2,de,3,1,"button",2),e.\u0275\u0275elementStart(3,"h2",3,4),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,pe,2,1,"p",5),e.\u0275\u0275template(7,me,1,2,"flo-schedule-calendar-sync-team-select",6),e.\u0275\u0275template(8,ge,2,1,"ul",7),e.\u0275\u0275template(9,ue,1,2,"flo-schedule-calendar-sync-feed-links",8),e.\u0275\u0275elementEnd()()),2&t&&(e.\u0275\u0275property("active",a.active)("width",420),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",a.canGoBack),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(a.title),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.subtitle),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","choose-teams"===a.step),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","choose-calendar"===a.step),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","subscribe-links"===a.step&&a.selectedCalendar&&a.feedUrls))},dependencies:[c.sg,c.O5,ee.zS,g.b,ne,ie],styles:[".calendar-sync[_ngcontent-%COMP%]{padding:.5rem 1.5rem 1.5rem;color:#323236}.calendar-sync__back[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-bottom:.75rem;margin-left:-.5rem;padding:0;border:0;background:none;color:#6f6f73;font-size:.875rem;cursor:pointer}.calendar-sync__back[_ngcontent-%COMP%]:hover{color:#323236}.calendar-sync__back[_ngcontent-%COMP%] flo-svg-icon[_ngcontent-%COMP%]{display:inline-flex}.calendar-sync__title[_ngcontent-%COMP%]{margin:0;font-size:1.125rem;font-weight:600;color:#232327}.calendar-sync__subtitle[_ngcontent-%COMP%]{margin:.25rem 0 0;font-size:.8125rem;line-height:1.4;color:#6f6f73}.calendar-sync__options[_ngcontent-%COMP%]{margin:1rem -1.5rem 0;padding:0;list-style:none;border-top:1px solid #eeeef0}.calendar-sync__option[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;width:100%;padding:.8125rem 1.5rem;border:0;border-bottom:1px solid #eeeef0;background:none;color:inherit;font-size:.9375rem;text-align:left;cursor:pointer;transition:background-color .12s ease-in-out}.calendar-sync__option[_ngcontent-%COMP%]:hover{background-color:#f5f5f7}.calendar-sync__option[_ngcontent-%COMP%]:focus-visible{background-color:#f5f5f7;outline:2px solid #323236;outline-offset:-2px}.calendar-sync__mark[_ngcontent-%COMP%]{display:inline-flex;flex:0 0 1.25rem;justify-content:center;color:#6f6f73}@media (prefers-reduced-motion: reduce){.calendar-sync__option[_ngcontent-%COMP%]{transition:none}}"],changeDetection:0}),n})();function _e(n,l){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",11)(1,"flo-filters",12),e.\u0275\u0275listener("singleFilterClicked",function(o){e.\u0275\u0275restoreView(t);const s=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(s.handleSingleFilterClicked(o))}),e.\u0275\u0275elementEnd()()}if(2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("items",t.dropdownFilters)("clearAll",t.clearAll)("showOutline",!0)}}function Ce(n,l){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"flo-toggle",15),e.\u0275\u0275listener("toggledTo",function(o){e.\u0275\u0275restoreView(t);const s=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(s.handleSingleFilterClicked(o))}),e.\u0275\u0275elementEnd()}2&n&&e.\u0275\u0275property("toggleFilter",l.$implicit)("toggleOutline",!0)}function ye(n,l){if(1&n&&(e.\u0275\u0275elementStart(0,"div",13),e.\u0275\u0275template(1,Ce,1,2,"flo-toggle",14),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.toggleFilters)("ngForTrackBy",t.trackById)}}function ve(n,l){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,_e,2,3,"div",9),e.\u0275\u0275template(2,ye,2,2,"div",10),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.dropdownFilters.length>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.toggleFilters.length>0)}}function Se(n,l){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",11)(1,"flo-filters",12),e.\u0275\u0275listener("singleFilterClicked",function(o){e.\u0275\u0275restoreView(t);const s=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(s.handleSingleFilterClicked(o))}),e.\u0275\u0275elementEnd()()}if(2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("items",t.filters.items)("clearAll",t.clearAll)("showOutline",!0)}}function be(n,l){if(1&n&&e.\u0275\u0275template(0,Se,2,3,"div",9),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngIf",t.filters&&t.filters.items.length>0)}}function xe(n,l){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"flo-toggle",21),e.\u0275\u0275listener("toggledTo",function(o){e.\u0275\u0275restoreView(t);const s=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(s.handleSingleFilterClicked(o))}),e.\u0275\u0275elementEnd()}2&n&&e.\u0275\u0275property("toggleFilter",l.$implicit)("toggleOutline",!0)}function ke(n,l){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",16),e.\u0275\u0275template(1,xe,1,2,"flo-toggle",17),e.\u0275\u0275elementStart(2,"div",18)(3,"flo-schedule-calendar-sync-trigger",19,20),e.\u0275\u0275listener("triggered",function(){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275reference(4),s=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(s.openCalendarSyncModal(o,"compact"))}),e.\u0275\u0275elementEnd()()()}if(2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.toggleFilters)("ngForTrackBy",t.trackById),e.\u0275\u0275advance(2),e.\u0275\u0275property("expanded",t.isCalendarSyncModalOpen)}}function Te(n,l){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",30)(1,"flo-date-picker",31),e.\u0275\u0275listener("dateSelected",function(o){e.\u0275\u0275restoreView(t);const s=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(s.datePickerSelected(o))}),e.\u0275\u0275elementEnd()()}if(2&n){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("selectedDate",t.selectedDate)("analyticsProperties",t.action&&t.action.analytics?t.action.analytics:null)("placement","bottom-right")}}const we=function(n){return{"datepicker-visible":n}};function Oe(n,l){if(1&n&&(e.\u0275\u0275elementStart(0,"div",26)(1,"div",27),e.\u0275\u0275element(2,"flo-date-bar",28),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,Te,2,3,"div",29),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(3,we,!!t.dateMode&&"daily"===t.dateMode)),e.\u0275\u0275advance(1),e.\u0275\u0275property("items",t.tabItems),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!!t.dateMode&&"daily"===t.dateMode)}}function Ee(n,l){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",32)(1,"flo-toggle",33),e.\u0275\u0275listener("toggledTo",function(o){e.\u0275\u0275restoreView(t);const s=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(s.handleSingleFilterClicked(o))}),e.\u0275\u0275elementEnd()()}if(2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("toggleFilter",t.toggleFilter)("toggleOutline",!1)}}function Me(n,l){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",34)(1,"flo-schedule-calendar-sync-trigger",35,36),e.\u0275\u0275listener("triggered",function(){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275reference(2),s=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(s.openCalendarSyncModal(o,"full"))}),e.\u0275\u0275elementEnd()()}if(2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("expanded",t.isCalendarSyncModalOpen)}}function Ie(n,l){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",22),e.\u0275\u0275template(2,Oe,4,5,"div",23),e.\u0275\u0275template(3,Ee,2,2,"div",24),e.\u0275\u0275template(4,Me,3,1,"div",25),e.\u0275\u0275pipe(5,"async"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275classProp("d-none",!t.hasDateTabs&&!t.toggleFilter)("d-md-flex",!t.hasDateTabs&&!t.toggleFilter),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.hasDateTabs),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.toggleFilter),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(5,7,t.visibleCalendarSync$))}}function Fe(n,l){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"flo-schedule-calendar-sync-modal",37),e.\u0275\u0275listener("isActive",function(o){e.\u0275\u0275restoreView(t);const s=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(s.onCalendarSyncModalActiveChange(o))}),e.\u0275\u0275elementEnd()}if(2&n){const t=l.ngIf,a=e.\u0275\u0275nextContext();e.\u0275\u0275property("active",a.isCalendarSyncModalOpen)("nodeId",t.nodeId)("nodeType",t.nodeType)("teams",t.teams)}}const Pe=function(n){return{"mb-2":n}};let De=(()=>{class n{constructor(t,a){this.featureFlagService=t,this.calendarSyncAnalytics=a,this.dropdownFilters=[],this.toggleFilters=[],this.calendarSync$=new i.X(null),this.visibleCalendarSync$=(0,x.a)([this.calendarSync$,this.featureFlagService.getValueWhenReady$(C.c.CALENDAR_SYNC_MVP,!1)]).pipe((0,_.U)(([o,s])=>s?o:null),(0,k.d)({bufferSize:1,refCount:!0})),this.navigateToTab=new e.EventEmitter,this.search=new e.EventEmitter,this.singleFilterClicked=new e.EventEmitter,this.trackById=v.x,this.isCalendarSyncModalOpen=!1}set calendarAction(t){t&&(this.action=t,n.isCalendarMetadata(t.contentMetadata)&&(this.dateMode=t.contentMetadata.dateMode))}set filtersSection(t){this.filters=t;const a=(t?.items??[]).filter(E.zm);this.dropdownFilters=a.filter(o=>"dropdown"===o.style),this.toggleFilters=a.filter(o=>"toggle"===o.style&&!!o.options?.length)}set calendarSync(t){this.calendarSync$.next(t??null)}set dateSelected(t){t&&(this.selectedDate=function w(n){if(!n)return null;const t=n.match(/^(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})/);return t?.groups?.year&&t?.groups?.month&&t?.groups?.day?{year:Number(t.groups.year),month:Number(t.groups.month),day:Number(t.groups.day)}:null}(t))}get hasDateTabs(){return!!this.tabItems&&this.tabItems.length>0}openCalendarSyncModal(t,a){this.calendarSyncOpener=t,this.isCalendarSyncModalOpen=!0;const o=this.calendarSync$.getValue();o&&this.calendarSyncAnalytics.trackOpened({node_id:o.nodeId,node_type:o.nodeType,available_team_count:o.teams?.length??0,placement:a})}onCalendarSyncModalActiveChange(t){if(this.isCalendarSyncModalOpen=t,!t){const a=this.calendarSyncOpener;((a?.isVisible?a:this.calendarSyncTriggers?.find(s=>s.isVisible))??a)?.focus()}}ngOnDestroy(){this.calendarSync$.complete()}handleSearch(t){this.search.emit(t.searchTerm)}datePickerSelected(t){this.navigateToTab.emit(t.formattedDate)}static isCalendarMetadata(t){return!!t&&"dateMode"in t}handleSingleFilterClicked(t){this.singleFilterClicked.emit(t.facets)}}return n.\u0275fac=function(t){return new(t||n)(e.\u0275\u0275directiveInject(M.Qt),e.\u0275\u0275directiveInject(d))},n.\u0275cmp=e.\u0275\u0275defineComponent({type:n,selectors:[["flo-event-list-control
1s"]],viewQuery:function(t,a){if(1&t&&e.\u0275\u0275viewQuery(y,5),2&t){let o;e.\u0275\u0275queryRefresh(o=e.\u0275\u0275loadQuery())&&(a.calendarSyncTriggers=o)}},inputs:{calendarAction:"calendarAction",filtersSection:"filtersSection",clearAll:"clearAll",searchTerm:"searchTerm",tabItems:"tabItems",toggleFilter:"toggleFilter",calendarSync:"calendarSync",dateSelected:"dateSelected"},outputs:{navigateToTab:"navigateToTab",search:"search",singleFilterClicked:"singleFilterClicked"},decls:15,vars:21,consts:[[1,"w-100","d-flex","flex-column"],[1,"d-flex","flex-wrap","flex-sm-nowrap","mb-3","mt-0",3,"ngClass"],[1,"px-3","px-sm-0","mb-25","mb-sm-0","flex-grow-1","pe-sm-3","search-min-width"],["stretchy","true","placeholder","Search All Events","data-test","results-search",3,"searchTerm","search"],[4,"ngIf","ngIfElse"],["combinedFilters",""],["class","d-flex d-md-none align-items-center px-3 px-sm-0 mb-25 compact-toggle","data-test","calendar-sync-row",4,"ngIf"],[4,"ngIf"],[3,"active","nodeId","nodeType","teams","isActive",4,"ngIf"],["class","overflow-auto","data-test","filters",4,"ngIf"],["class","d-none d-md-flex align-items-center ms-md-3","data-test","streaming-toggle",4,"ngIf"],["data-test","filters",1,"overflow-auto"],[3,"items","clearAll","showOutline","singleFilterClicked"],["data-test","streaming-toggle",1,"d-none","d-md-flex","align-items-center","ms-md-3"],["toggleKey","0",3,"toggleFilter","toggleOutline","toggledTo",4,"ngFor","ngForOf","ngForTrackBy"],["toggleKey","0",3,"toggleFilter","toggleOutline","toggledTo"],["data-test","calendar-sync-row",1,"d-flex","d-md-none","align-items-center","px-3","px-sm-0","mb-25","compact-toggle"],[3,"toggleFilter","toggleOutline","toggledTo",4,"ngFor","ngForOf","ngForTrackBy"],["data-test","calendar-sync-compact",1,"d-flex","align-items-center","ms-auto"],["testId","schedule-calendar-sync-button-compact",3,"expanded","triggered"],["compactTrigger",""],[3,"toggleFilter","toggleOutline","toggledTo"],[1,"pe-3","pe-sm-0","border-bottom","border-grey-300","d-flex","justify-content-between","flex-column-reverse","flex-md-row"],["class","d-flex flex-row justify-content-between justify-content-lg-start date-controls",4,"ngIf"],["class","d-flex flex-row align-items-center justify-content-between justify-content-lg-start\n ps-3 ps-sm-0 mb-25 mb-md-0 ms-md-2 toggle-filter","data-test","toggle",4,"ngIf"],["class","d-none d-md-flex align-items-center ps-3 ps-sm-0 mb-25 mb-md-0 ms-md-2","data-test","calendar-sync",4,"ngIf"],[1,"d-flex","flex-row","justify-content-between","justify-content-lg-start","date-controls"],[1,"date-bar","me-lg-4",3,"ngClass"],[3,"items"],["class","date-picker my-2 ms-lg-1 d-flex",4,"ngIf"],[1,"date-picker","my-2","ms-lg-1","d-flex"],[3,"selectedDate","analyticsProperties","placement","dateSelected"],["data-test","toggle",1,"d-flex","flex-row","align-items-center","justify-content-between","justify-content-lg-start","ps-3","ps-sm-0","mb-25","mb-md-0","ms-md-2","toggle-filter"],[1,"w-100",3,"toggleFilter","toggleOutline","toggledTo"],["data-test","calendar-sync",1,"d-none","d-md-flex","align-items-center","ps-3","ps-sm-0","mb-25","mb-md-0","ms-md-2"],["testId","schedule-calendar-sync-button",3,"expanded","triggered"],["fullTrigger",""],[3,"active","nodeId","nodeType","teams","isActive"]],template:function(t,a){if(1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275elementStart(4,"flo-search-input-next-gen",3),e.\u0275\u0275listener("search",function(s){return a.handleSearch(s)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,ve,3,2,"ng-container",4),e.\u0275\u0275pipe(6,"async"),e.\u0275\u0275template(7,be,1,1,"ng-template",null,5,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(9,ke,5,3,"div",6),e.\u0275\u0275pipe(10,"async"),e.\u0275\u0275template(11,Ie,6,9,"ng-container",7),e.\u0275\u0275pipe(12,"async"),e.\u0275\u0275template(13,Fe,1,4,"flo-schedule-calendar-sync-modal",8),e.\u0275\u0275pipe(14,"async"),e.\u0275\u0275elementEnd()),2&t){const o=e.\u0275\u0275reference(8);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(19,Pe,!!a.toggleFilter)),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("search-shrink",e.\u0275\u0275pipeBind1(3,9,a.visibleCalendarSync$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("searchTerm",a.searchTerm),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(6,11,a.visibleCalendarSync$))("ngIfElse",o),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(10,13,a.visibleCalendarSync$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",a.hasDateTabs||e.\u0275\u0275pipeBind1(12,15,a.visibleCalendarSync$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(14,17,a.visibleCalendarSync$))}},dependencies:[c.mk,c.sg,c.O5,m.m,R,G,W.b,Y.n,y,fe,c.Ov],styles:[".date-bar[_ngcontent-%COMP%]{flex:1 0 auto}@media (min-width: 768px){.date-bar[_ngcontent-%COMP%]{max-width:600px}}
1.date-controls[_ngcontent-%COMP%], .toggle-filter[_ngcontent-%COMP%]{flex:1 0 auto}@media (min-width: 768px){.toggle-filter[_ngcontent-%COMP%]{flex:0 0 192px}}.date-picker[_ngcontent-%COMP%]{flex:0 0 56px;max-width:40px}@media (max-width: 575px){.search-shrink[_ngcontent-%COMP%]{flex-basis:0;min-width:0}}"],changeDetection:0}),n})()},22403:(L,b,r)=>{r.d(b,{m:()=>M});var e=r(24006),i=r(94650),x=r(77579),_=r(39300),k=r(78372),T=r(54004),w=r(82722),C=r(39047);const g=p=>""!==p?p:null;var O=r(7069),y=r(70477),E=r(87833),v=r(39137);let M=(()=>{class p{constructor(d){this.segmentService=d,this.searchTerm="",this.placeholder="Search",this.stretchy=!1,this.debounce=750,this.search=new i.EventEmitter,this.searchFormControl=new e.p4,this.ngOnDestroy$=new x.x,this.clearSearch=c=>{c.focus(),this.searchFormControl.reset(),this.search.emit({searchTerm:null,searchModel:this.searchModel}),this.segmentService.trackEvent({name:C.AA.SEARCH_CLEARED,properties:{search_term:"",name:this.searchModel?.placeholderText??this.placeholder}})}}ngOnInit(){this.searchFormControl.valueChanges.pipe((0,_.h)(O.bb),(0,k.b)(this.debounce),(0,T.U)(g),(0,w.R)(this.ngOnDestroy$)).subscribe(d=>{this.search.emit({searchTerm:d,searchModel:this.searchModel}),this.trackSearchQuery(d)})}trackSearchQuery(d){!d||this.segmentService.trackEvent({name:C.AA.SEARCH_QUERY_MADE,properties:{search_term:d,name:this.searchModel?.placeholderText??this.placeholder}})}ngOnChanges(){this.searchFormControl.value!==this.searchModel?.text&&this.searchFormControl.setValue(this.searchModel?.text||this.searchTerm,{emitEvent:!1})}ngOnDestroy(){this.ngOnDestroy$.next(),this.ngOnDestroy$.complete()}}return p.\u0275fac=function(d){return new(d||p)(i.\u0275\u0275directiveInject(y.BP))},p.\u0275cmp=i.\u0275\u0275defineComponent({type:p,selectors:[["flo-search-input-next-gen"]],inputs:{searchTerm:"searchTerm",searchModel:"searchModel",placeholder:"placeholder",stretchy:"stretchy",debounce:"debounce"},outputs:{search:"search"},features:[i.\u0275\u0275NgOnChangesFeature],decls:9,vars:7,consts:[["data-test","search-box",1,"flo-input","d-flex","align-items-center"],["floAnalytics","","type","text","name","Search","events","click","data-test","search-input",1,"search-input","subhead",3,"analyticsProperties","placeholder","formControl"],["input",""],[1,"left-inner-addon","mx-2"],["icon","icon-search","width","20px","data-test","icon-search",1,"grey-600"],["data-test","clear-search-btn",1,"right-inner-addon","p-0",3,"click"],["icon","icon-times","width","20px","data-test","icon-times",1,"grey-600","close-icon",3,"click"]],template:function(d,c){if(1&d){const m=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275element(1,"input",1,2),i.\u0275\u0275elementStart(3,"div",3)(4,"span"),i.\u0275\u0275element(5,"flo-svg-icon",4),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(6,"div",5),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(m);const f=i.\u0275\u0275reference(2);return i.\u0275\u0275resetView(c.clearSearch(f))}),i.\u0275\u0275elementStart(7,"span")(8,"flo-svg-icon",6),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(m);const f=i.\u0275\u0275reference(2);return i.\u0275\u0275resetView(c.clearSearch(f))}),i.\u0275\u0275elementEnd()()()()}if(2&d){let m;i.\u0275\u0275classProp("stretchy",c.stretchy),i.\u0275\u0275advance(1),i.\u0275\u0275property("analyticsProperties",null==c.searchModel||null==c.searchModel.action?null:c.searchModel.action.analytics)("placeholder",null!==(m=null==c.searchModel?null:c.searchModel.placeholderText)&&void 0!==m?m:c.placeholder)("formControl",c.searchFormControl),i.\u0275\u0275advance(5),i.\u0275\u0275classProp("d-block",!!c.searchFormControl.value)}},dependencies:[E.b,v.v,e.Fj,e.JJ,e.oH],styles:[".flo-input[_ngcontent-%COMP%]{width:100%}.flo-input.stretchy[_ngcontent-%COMP%]:not(:focus-within){width:100%}.flo-input[_ngcontent-%COMP%] input.search-input[_ngcontent-%COMP%]{padding-left:40px;padding-right:35px}.flo-input[_ngcontent-%COMP%] .left-inner-addon[_ngcontent-%COMP%]{position:absolute;height:20px;pointer-events:none}.flo-input[_ngcontent-%COMP%] .right-inner-addon[_ngcontent-%COMP%]{pointer-events:auto;display:none;cursor:pointer}.varsity-theme .rankings-list[_nghost-%COMP%] .flo-input[_ngcontent-%COMP%], .varsity-theme .rankings-list [_nghost-%COMP%] .flo-input[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.varsity-theme .rankings-list[_nghost-%COMP%] .flo-input[_ngcontent-%COMP%], .varsity-theme .rankings-list [_nghost-%COMP%] .flo-input[_ngcontent-%COMP%]{width:255px;transition:all .7s ease 0s}.varsity-theme .rankings-list[_nghost-%COMP%] .flo-input.stretchy[_ngcontent-%COMP%]:not(:focus-within), .varsity-theme .rankings-list [_nghost-%COMP%] .flo-input.stretchy[_ngcontent-%COMP%]:not(:focus-within){width:235px}}@media (min-width: 576px){.search-min-width[_nghost-%COMP%] .flo-input[_ngcontent-%COMP%], .search-min-width [_nghost-%COMP%] .flo-input[_ngcontent-%COMP%]{width:294px;transition:all .7s ease 0s}.search-min-width[_nghost-%COMP%] .flo-input.stretchy[_ngcontent-%COMP%]:not(:focus-within), .search-min-width [_nghost-%COMP%] .flo-input.stretchy[_ngcontent-%COMP%]:not(:focus-within){width:235px}}"],changeDetection:0}),p})()}}]);
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.