1import{a as Ie}from"./chunk-4GNJ3KVL.js";import{a as Ce,b as w,c as xe,d as Se,e as ye,g as Te,h as we,j as ke,l as Fe,m as Re,n as Le}from"./chunk-RXTHBJNJ.js";import{a as ve}from"./chunk-D5GVVTZ5.js";import"./chunk-OZC5JFZK.js";import"./chunk-JEL6HJ7P.js";import{L as de,U as pe,V as ue,Xa as me,Za as p,gb as fe,lc as ge,nc as _e,sa as he,uc as be}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import"./chunk-WPHW6CRH.js";import{J as ce,b as ee,c as te,e as ie,h as oe,i as ne,p as re,r as se,t as ae,w as le}from"./chunk-76O7YCWW.js";import{a as J,e as K,f as X}from"./chunk-YYIIKC2W.js";import{e as Z}from"./chunk-3WYGUSDH.js";import"./chunk-LU7SZU5X.js";import{E as Y,G as $,j as H,q as W,u as U}from"./chunk-PO2RDVKE.js";import{Bc as y,E as M,Ec as O,Fc as Q,Gc as G,Oc as B,Pb as f,Rb as g,Tb as k,Tc as I,Ub as F,Uc as z,Vb as R,Vc as j,Wb as u,Xb as r,Yb as s,Z as V,Zb as S,_a as A,db as a,ec as C,jb as D,jc as v,lc as l,n as P,oa as _,pa as b,pb as m,s as E,ub as N,wc as q,zc as d}from"./chunk-3URBZWPM.js";import"./chunk-ODN5LVDJ.js";var Pe={heading:"Additional filters:",categories:[{accordionTitle:"Learning Support",tooltip:`<div><p><strong>Learning support can be delivered in various ways:</strong></p> 2 <p><strong>Telephone support</strong> - get help over the phone from a tutor or learning specialist</p> 3 <p><strong>Email support</strong> - get help via email from a tutor or learning specialist</p> 4 <p><strong>Instant messaging support</strong> - chat online to a tutor or learning specialist</p> 5 <p><strong>No support (self-study option)</strong> - no learning support provided </p> 6 </div>`,tooltipPosition:p.RIGHT,options:[{label:"Telephone support",filterString:"telephoneSupport",id:"telephoneSupport"},{label:"Email support",filterString:"emailSupport",id:"emailSupport"},{label:"Instant messaging support",filterString:"chatSupport",id:"chatSupport"},{label:"No support (self-study option)",filterString:"noSupport",id:"noSupport"}]},{accordionTitle:"Study options",tooltip:`<div><p><strong>There are several options when studying online/via distance learning:</strong></p> 7 <p><strong>Online live tutorials</strong> - attend scheduled online live tutorials</p> 8 <p><strong>Online on-demand tutorials</strong> - access online, pre-recorded tutorials when it suits you</p> 9 <p><strong>Online learning portal</strong> - access online learning resources that complement your studies</p> 10 <p><strong>Printed course books and/or materials</strong> - receive printed course books and/or materials</p> 11 </div>`,tooltipPosition:p.RIGHT,options:[{label:"Online live tutorials",filterString:"virtualLiveClassroom",id:"virtualLiveClassroom"},{label:"Online on-demand tutorials",filterString:"virtualOnDemandClassroom",id:"virtualOnDemandClassroom"},{label:"Online learning portal",filterString:"interactiveOnlineLearningPortal",id:"interactiveOnlineLearningPortal"},{label:"Printed course books and/or materials",filterString:"physicalMaterials",id:"physicalMaterials"}]},{accordionTitle:"Payment options",tooltip:`<div><p>Most training providers require payment in full before you start your studies, but some offer payment plans or a subscription model. You should also ask your training provider if you're eligible for any funding.</p> 12 <p><strong>Payment plan</strong> - pay your total study cost in instalments over an agreed timeframe</p> 13 <p><strong>Subscription model</strong> - pay to access study resources for a fixed timeframe, after which you can opt-out and discontinue payments</p> 14 <p><strong>Funding support</strong> - training provider may be able to support you with funding </p> 15 </div>`,tooltipPosition:p.RIGHT,options:[{label:"Payment plan",filterString:"paymentPlan",id:"paymentPlan"},{label:"Subscription model",filterString:"subscriptionPayment",id:"subscriptionPayment"},{label:"Funding support",filterString:"fundingAvailable",id:"fundingAvailable"}]}
15,{accordionTitle:"Apprenticeship schemes",tooltip:"<div><p>Some training providers work with employers to deliver apprenticeship schemes.</div>",tooltipPosition:p.RIGHT,options:[{label:"Apprenticeship scheme available",filterString:"apprenticeshipScheme",id:"apprenticeshipScheme"}]},{accordionTitle:"Course availability for students aged under 19",tooltip:"<div><p>Some training providers offer courses to under 16 and under 19-year-olds.</p></div>",tooltipPosition:p.RIGHT,options:[{label:"Courses open to those under 16",filterString:"under16",id:"under16"},{label:"Courses open to those under 19",filterString:"under19",id:"under19"}]},{accordionTitle:"Individual units",tooltip:"<div><p>Some training providers enable you to study individual units as opposed to an entire qualification.</p></div>",tooltipPosition:p.RIGHT,options:[{label:"Individual units available",filterString:"individualModules",id:"individualModules"}]},{accordionTitle:"Remote invigilation (RI)",tooltip:"<div><p>Training provider offers remote invigilation scheduling on behalf of a student. Please note this may be at an additional charge.</p></div>",tooltipPosition:p.RIGHT,options:[{label:"Remote invigilation scheduling",filterString:"RIAvailable",id:"remoteInvigilation"}]}]},Ee={heading:"Additional filters:",categories:[{accordionTitle:"Classroom study options",tooltip:`<div><p>Daytime classes tend to be delivered as standard. Generally, evening and weekend class options will be in addition to the daytime class option.</p> 16 <p><strong>Evening classes available</strong> - attend scheduled evening classes in-person</p> 17 <p><strong>Weekend classes available</strong> - attend scheduled weekend classes in-person</p> 18 <p><strong>Intensive fast-track</strong> - attend a condensed schedule of classes so you can complete your studies sooner</p> 19 <p><strong>Blended learning</strong> - attend a combination of scheduled in-person and online classes, giving you more flexibility on where you study</p> 20 </div>`,tooltipPosition:p.RIGHT,options:[{label:"Evening classes available",filterString:"eveningClasses",id:"eveningClasses"},{label:"Weekend classes available",filterString:"weekendClasses",id:"weekendClasses"},{label:"Intensive fast-track",filterString:"intensiveFastTrack",id:"intensiveFastTrack"},{label:"Blended learning",filterString:"blended",id:"blended"}]},{accordionTitle:"Payment options",tooltip:`<div><p>Most training providers require payment in full before you start your studies, but some offer payment plans. You should also ask your training provider if you're eligible for any funding.</p> 21 <p><strong>Payment plan</strong> - pay your total study cost in instalments over an agreed timeframe</p> 22 <p><strong>Funding support</strong> - training provider may be able to support you with funding</p> 23 </div>`,tooltipPosition:p.RIGHT,options:[{label:"Payment plan",filterString:"paymentPlan",id:"paymentPlan"},{label:"Funding support",filterString:"fundingAvailable",id:"fundingAvailable"}]}
23,{accordionTitle:"Apprenticeship schemes",tooltip:"<div><p>Some training providers work with employers to deliver apprenticeship schemes.</p></div>",tooltipPosition:p.RIGHT,options:[{label:"Apprenticeship scheme available",filterString:"apprenticeshipScheme",id:"apprenticeshipScheme"}]},{accordionTitle:"Course availability for students aged under 19",tooltip:"<div><p>Some training providers offer courses to under 16 and under 19-year-olds.</p></div>",tooltipPosition:p.RIGHT,options:[{label:"Courses open to those under 16",filterString:"under16",id:"under16"},{label:"Courses open to those under 19",filterString:"under19",id:"under19"}]},{accordionTitle:"Individual units",tooltip:"<div><p>Some training providers enable you to study individual units as opposed to an entire qualification.</p></div>",tooltipPosition:p.RIGHT,options:[{label:"Individual units available",filterString:"individualModules",id:"individualModules"}]},{accordionTitle:"Remote invigilation (RI)",tooltip:"<div><p>Training provider offers remote invigilation scheduling on behalf of a student. Please note this may be at an additional charge.</p></div>",tooltipPosition:p.RIGHT,options:[{label:"Remote invigilation scheduling",filterString:"RIAvailable",id:"remoteInvigilation"}]},{accordionTitle:"Amenities",tooltip:"<div><p>Facilities and accessibility at the training provider centre.</p></div>",tooltipPosition:p.RIGHT,options:[{label:"Disabled access",filterString:"Disabled access",id:"Disabled access"},{label:"Free parking",filterString:"Free parking",id:"Free parking"},{label:"Accessible by public transport",filterString:"Accessible by public transport",id:"Accessible by public transport"},{label:"Free WiFi",filterString:"Free WiFi",id:"Free WiFi"},{label:"Cafeteria",filterString:"Cafeteria",id:"Cafeteria"}]}]},L={accordionTitle:"Maximum price",tooltip:"<div><p>Training provider fees are one-off fees. They vary by training provider, depending on the support and materials supplied. Please note that these don't include AAT registration or assessment fees.</p></div>",tooltipPosition:p.RIGHT,options:[{label:"\xA3500",filterNumber:501,id:"500"},{label:"\xA31000",filterNumber:1001,id:"1000"},{label:"\xA31500",filterNumber:1501,id:"1500"},{label:"\xA32000",filterNumber:2001,id:"2000"},{label:"No limit",filterNumber:0,id:"0"}]};var Be=o=>({isDisabled:o});function ze(o,c){if(o&1&&(r(0,"span"),d(1),s()),o&2){let i=l(2);a(),y("(",i.shortlistLength,")")}}function je(o,c){if(o&1){let i=C();r(0,"label",19)(1,"input",35),v("change",function(t){_(i);let n=l(2);return b(n.clearBlended(t))}),s(),r(2,"label",36),d(3," Blended learning filter: You would get access to structured, tutor-led, face-to-face and/or virtual classroom sessions, supported by a local training provider. Filter your results to show only blended learning providers. "),s()()}if(o&2){let i=l(2);a(),u("checked",i.form.value.blendedLearning)}}function He(o,c){if(o&1){let i=C();r(0,"app-location-search-bar",37),G("locationChange",function(t){_(i);let n=l(2);return Q(n.locationSearch,t)||(n.locationSearch=t),b(t)}),v("locationChange",function(t){_(i);let n=l(2);return b(n.updateLocation(t))})("maxDistanceChange",function(t){_(i);let n=l(2);return b(n.updateMaxDistance(t))}),s()}if(o&2){let i=l(2);O("location",i.locationSearch)}}function We(o,c){if(o&1){let i=C();r(0,"div",27)(1,"fab-qualification-picker",38),v("selected",function(t){_(i);let n=l(2);return b(n.onSelect(t))}),s()()}if(o&2){let i=l(2);a(),u("nodes",c)("preselectedId",i.selectedQual)}}function Ue(o,c){if(o&1&&(r(0,"div",28),S(1,"fab-button",39),s()),o&2){let i=l(2);a(),u("button",i.mobileFilterButton)}}function Ye(o,c){o&1&&S(0,"fab-loader")}function $e(o,c){if(o&1&&(r(0,"div"),S(1,"fab-notification",40),s()),o&2){let i=l(2);a(),u("notification",i.noResultsNotification)("isNotificationOpen",!0)}}function Ze(o,c){if(o&1){let i=C();r(0,"a",45),v("click",function(t){_(i);let n=l(4);return t.preventDefault(),b(n.switchView("map"))}),r(1,"strong"),d(2,"View on map"),s()()}}function Je(o,c){if(o&1&&(r(0,"p",42),f(1,Ze,3,0,"a",44),s()),o&2){let i=l(3);a(),g(i.results.length?1:-1)}}function Ke(o,c){if(o&1){let i=C();r(0,"search-result-panel",46),v("shouldUpdateShortlist",function(){_(i);let t=l(3);return b(t.shortlistCount())}),s()}if(o&2){let i=c.$implicit,e=l(3);u("isFeatured",!0)("studyMethod",e.form.value.studyMethod)("trainingProvider",i)("isLocationSearch",!e.form.value.qualifications&&!e.form.value.price)("searchQualificationId",e.form.value.qualifications?e.form.value.qualifications:null)("searchQualificationName",e.currentQualName)("searchLocation",e.form.value.location)("searchCoordinates",e.searchedLocation)("isEAV",!1)}}function Xe(o,c){if(o&1){let i=C();r(0,"search-result-panel",46),v("shouldUpdateShortlist",function(){_(i);let t=l(3);return b(t.shortlistCount())}),s()}if(o&2){let i=c.$implicit,e=l(3);u("isFeatured",!1)("studyMethod",e.form.value.studyMethod)("trainingProvider",i)("isLocationSearch",!e.form.value.qualifications&&!e.form.value.price)("searchQualificationId",e.form.value.qualifications?e.form.value.qualifications:null)("searchQualificationName",e.currentQualName)("searchLocation",e.form.value.location)("searchCoordinates",e.searchedLocation)("isEAV",!1)}}function et(o,c){if(o&1&&(r(0,"div")(1,"h2",41),d(2),I(3,"i18nPlural"),s(),f(4,Je,2,1,"p",42),F(5,Ke,1,9,"search-result-panel",43,k),F(7,Xe,1,9,"search-result-panel",43,k),s()),o&2){let i=l(2);a(2),y(" ",j(3,2,i.totalResult,i.messageMapping)," "),a(2),g(i.form.value.studyMethod==="Classroom"?4:-1),a(),R(i.featuredListing),a(2),R(i.standardListing)}}function tt(o,c){if(o&1&&(r(0,"div",34),S(1,"fab-button",39),s()),o&2){let i=l(2);
23a(),u("button",i.loadMoreButton)}}function it(o,c){if(o&1){let i=C();r(0,"div",0)(1,"div",2)(2,"form",3)(3,"div",4)(4,"div",5)(5,"a",6),S(6,"span",7),d(7," Shortlist "),f(8,ze,2,1,"span"),s()(),r(9,"h1",8),d(10,"Training Providers"),s()(),r(11,"section",9)(12,"div",10)(13,"span")(14,"strong"),d(15,"Your search filters"),s()(),r(16,"a",11)(17,"strong"),d(18,"Reset filters"),s()()(),r(19,"fab-accordion",12)(20,"div",13)(21,"section")(22,"div",14)(23,"label",15),d(24,"Classroom "),r(25,"input",16),v("change",function(t){_(i);let n=l();return b(n.clearBlended(t))}),s(),S(26,"span",17),s(),r(27,"span",18),d(28,"Classroom study is ideal for you if you prefer a shared learning experience by attending lessons in person. Some classroom-based training providers also offer blended learning, combining both classroom and online study."),s(),f(29,je,4,1,"label",19),r(30,"label",15),d(31,"Distance / Online "),S(32,"input",20)(33,"span",17),s(),r(34,"div",18),d(35," Distance/online learning can be a great option if you need to fit studies around other commitments or you don't live near a college or study centre. You'll need to sit your assessments at an AAT approved assessment venue or via remote invigilation. Please use our "),r(36,"a",21),d(37,"Find an Assessment Venue"),s(),d(38," service to locate a venue near you, or to find a venue offering remote invigilation scheduling. "),s()()()()(),f(39,He,1,1,"app-location-search-bar",22),r(40,"div",23)(41,"fab-accordion",24)(42,"section",25)(43,"div",26),f(44,We,2,2,"div",27),I(45,"async"),s()()()(),f(46,Ue,2,1,"div",28),s()()(),r(47,"div",29)(48,"section",30)(49,"div",31)(50,"fab-side-filter",32),v("selection",function(t){_(i);let n=l();return b(n.captureAdditionalFilter(t))})("overlayClosed",function(t){_(i);let n=l();return b(n.displayFilterOverlay(t))}),s()()(),r(51,"section",33)(52,"div"),f(53,Ye,1,0,"fab-loader"),f(54,$e,2,2,"div"),s(),f(55,et,9,5,"div"),f(56,tt,2,1,"div",34),s()()()}if(o&2){let i,e=l();a(2),u("formGroup",e.form),a(2),u("ngClass",B(19,Be,e.shortlistLength<=0)),a(),u("routerLink",e.comparePath),a(3),g(e.shortlistLength>0?8:-1),a(17),u("checked",e.form.value.studyMethod==="Classroom"),a(4),g(e.form.value.studyMethod==="Classroom"?29:-1),a(3),u("checked",e.form.value.studyMethod==="Distance"),a(7),g(e.form.value.studyMethod==="Classroom"?39:-1),a(5),g((i=z(45,17,e.qualsPickerData$))?44:-1,i),a(2),g(e.mobileView?46:-1),a(4),u("content",e.filterContent)("isMobile",e.mobileView)("openOverlay",e.overlayOpen),a(3),g(e.isLoadingResult?53:-1),a(),g(!e.isLoadingResult&&e.results.length===0?54:-1),a(),g(e.results.length?55:-1),a(),g(e.getMoreResults?56:-1)}}function ot(o,c){if(o&1){let i=C();r(0,"div")(1,"div",54)(2,"google-map",55),v("mapInitialized",function(t){_(i);let n=l(2);return b(n.onMapReady(t))}),s()()()}if(o&2){let i=l(2);a(2),u("options",i.mapOptions)}}function nt(o,c){if(o&1&&(r(0,"li",56)(1,"span",57),d(2),s(),r(3,"a",58),d(4),s(),r(5,"span"),d(6),s()()),o&2){let i=c.$implicit,e=c.$index,t=l(2);q("active",t.activeMarker===i.pathAlias),u("id",i.pathAlias),a(2),y("",e+1,"."),a(),u("href","/training-providers/"+i.pathAlias,A),a(),y(" ",i.name," "),a(2),y("- ",i.distance," miles")}}function rt(o,c){if(o&1){let i=C();r(0,"div",1)(1,"div",47)(2,"h1"),d(3,"Map view"),s(),r(4,"div",26)(5,"div",48)(6,"h3"),d(7),s()(),r(8,"div",49)(9,"a",50),v("click",function(t){_(i);let n=l();return t.preventDefault(),b(n.switchView("list"))}),r(10,"strong"),d(11,"List view"),s()()()()(),r(12,"div")(13,"div",26),f(14,ot,3,1,"div"),r(15,"div",51)(16,"ul",52),F(17,nt,7,7,"li",53,k),s()()()()()}if(o&2){let i=l();a(7),y("Near ",i.displayedLocation),a(7),g(i.apiLoaded?14:-1),a(3),R(i.nearestResults)}}var Lt=(()=>{let c=class c{constructor(e,t,n,h,T,Me,Ve,Ae,De,Ne,qe,Oe,Qe,Ge){this.centerSearchClient=e,this.router=t,this.mapper=n,this.priceFilterUpdaterService=h,this.qualificationsProvider=T,this.formBuilder=Me,this.shortlistService=Ve,this.searchMapService=Ae,this.formDataRouter=De,this.titleService=Ne,this.googleTagManager=qe,this.searchApiClientService=Oe,this.ngZone=Qe,this._scroller=Ge,this.TooltipPosition=p,this.results=[],this.featuredListing=[],this.standardListing=[],this.view="list",this.messageMapping={"=0":"No result","=1":"One result",other:"# results"},this.searched=!1,this.currentQualName=null,this.nearestResults=[],this.isLoadingResult=!1,this.isFirstLoad=!0,this.shortlistLength=0,this.searchedLocation={},this.amenities=["Free parking","Accessible by public transport","Free WiFi","Cafeteria","Recruitment service","Disabled access"],this.selectedAmenities=[],this.selectedFeatures=[],this.selectedQual=null,this.qualsPickerData$=this.qual
23ificationsProvider.getQualData().pipe(E(x=>_e(x)),V(x=>{console.log("Raw qual data",x)})),this.noResultsNotification={type:"ghost",message:"<p>There are no results matching your criteria. You may want to try broadening your search or explore the distance learning option: the qualification you\u2019ve selected may currently have no providers offering the course within the maximum price you've chosen, and/or has no location near you.</p>",fullWidth:!0},this.comparePath="/training-providers/search/compare",this.loadMoreButton={text:"Load More",type:"primary",action:{type:"callback",callback:()=>this.performSearch(!0)},aria:"Load more"},this.mobileFilterButton={text:"Additional filters",type:"primary",glyph:{icon:de.FILTERS},action:{type:"callback",callback:()=>this.displayFilterOverlay()},aria:"Additional filters"},this.distanceFilterContent=Pe,this.classroomFilterContent=Ee,this.priceFilters=L,this.apiLoaded=!1,this._subscriptions=[],this.form=this.formBuilder.group({location:[null],qualifications:null,price:null,maxDistance:null,studyMethod:["Classroom",ie.required],blendedLearning:null,features:null,amenities:null}),this.titleService.setTitle("Training Provider Search"),setTimeout(()=>{window.onresize=x=>{this.ngZone.run(()=>{this.mobileView=window.innerWidth<769,this.mobileView&&this.tooltipMobile()})}},1e3),this._subscriptions.push(this.searchMapService.loadGoogleMapsLibrary().subscribe(x=>{this.apiLoaded=x}),this.router.events.subscribe(x=>{x.routerEvent instanceof J&&this._scroller.scrollToAnchor("qualifications")}))}ngOnInit(){if(this.mobileView=window.innerWidth<769,this.mobileView&&this.tooltipMobile(),this.addFormChangeSubscription(),this.addQualificationSubscription(),this.formDataRouter.defaultFormFromQueryParams(this.form),this.form.controls.qualifications&&this.form.controls.qualifications.value&&(this.selectedQual=this.form.controls.qualifications.value),this.filterContent.categories.forEach(t=>{t.options.forEach(n=>{n.prechecked=!1})}),this.form.controls.amenities||this.form.controls.features){this.selectedFeatures=this.form.controls.features.value?.split(",")??[],this.selectedAmenities=this.form.controls.amenities.value?.split(",")??[];let t=[...this.selectedFeatures,...this.selectedAmenities];this.preSelectOnLoad(t)}if(this.form.controls.blendedLearning&&this.form.controls.blendedLearning.value){let t=!1;for(let n=0;n<this.classroomFilterContent.categories.length&&!t;n++)for(let h=0;h<this.classroomFilterContent.categories[n].options.length;h++)if(this.classroomFilterContent.categories[n].options[h].filterString==="blended"){this.classroomFilterContent.categories[n].options[h].prechecked=!0,t=!0;break}}this.form.controls.price&&this.form.controls.price.value&&this.distanceFilterContent.categories.forEach(t=>{t.accordionTitle==="Maximum price"&&t.options.forEach(n=>{n.filterNumber==this.form.controls.price.value&&(n.prechecked=!0)})});let e=this.shortlistService.getList();this.shortlistLength=e.length,this.shortlistLength&&e[0].search.qualificationId!==this.form.value.qualifications&&(this.shortlistService.clearAllData(),this.shortlistLength=0)}ngOnDestroy(){this.hm&&this.hm.unsubscribe(),this._subscriptions.forEach(e=>e.unsubscribe()),this.removeFormChangeSubscription(),this.removeSearchResultsSubscriber()}preSelectOnLoad(e){this.form.controls.studyMethod.value==="Distance"?e.forEach(t=>{this.distanceFilterContent.categories.forEach(n=>{n.options.forEach(h=>{(t===h.filterString||t===h.filterNumber)&&(h.prechecked=!0)})})}):this.form.controls.studyMethod.value==="Classroom"&&e.forEach(t=>{this.classroomFilterContent.categories.forEach(n=>{n.options.forEach(h=>{(t===h.filterString||t===h.filterNumber)&&(h.prechecked=!0)})})})}tooltipMobile(){this.distanceFilterContent.categories.forEach(e=>{e.tooltipPosition=p.LEFT}),this.classroomFilterContent.categories.forEach(e=>{e.tooltipPosition=p.LEFT}),this.priceFilters.tooltipPosition=p.LEFT}addFormChangeSubscription(){this.formChangeSubscription=this.form.valueChanges.subscribe(e=>{console.log("formValues",e),this.currentQualName=null,e.studyMethod==="Distance"&&(e.location=null,this.filterContent=this.distanceFilterContent),e.location&&(this.locationSearch=e,this.displayedLocation=this.searchApiClientService.currentFormattedLocation(e.location),this.filterContent=this.classroomFilterContent),e.qualifications&&(this.classroomFilterContent.categories[1].accordionTitle!=="Maximum price"||this.distanceFilterContent.categories[2].accordionTitle!=="Maximum price")&&(this.distanceFilterContent.categories.splice(2,0,L),this.classroomFilterContent.categories.splice(1,0,L)),e.qualifications||(this.distanceFilterContent.categories[2].accordionTitle==="Maximum price"&&this.distanceFilterContent.categories.splice(2,1),this.classroomFilterContent.categories[1].accordionTitle==="Maximum price"&&this.classroomFilterContent.categories.splice(1,1)),this.performSearch();let t=w.mapForQueryParams(e);this.formDataRouter.redirectWithFormValue("training-providers/search/results",t,!0),this.isFirstLoad||this.googleTagManager.push({event:"fatp_filter_interaction"}),this.isFirstLoad=!1})}removeFormChangeSubscription(){this.formChangeSubscription&&this.formChangeSubscription.unsubscribe()}
23addQualificationSubscription(){this.qualificationsProvider.getQualData().pipe(M(e=>P([]))).subscribe(e=>{})}removeSearchResultsSubscriber(){this.searchResultsSubscription&&this.searchResultsSubscription.unsubscribe()}shortlistCount(){return this.shortlistLength=this.shortlistService.getList().length,this.shortlistLength?null:"There is nothing in your shortlist"}clearBlended(e){e.target.checked?this.classroomFilterContent.categories[this.classroomFilterContent.categories.findIndex(t=>t.accordionTitle==="Classroom study options")].options.forEach(t=>{t.filterString==="blended"&&(t.prechecked=!0)}):(this.classroomFilterContent.categories[this.classroomFilterContent.categories.findIndex(t=>t.accordionTitle==="Classroom study options")].options.forEach(t=>{t.filterString==="blended"&&(t.prechecked=!1)}),this.form.get("blendedLearning")?.patchValue(null))}performSearch(e=!1){this.form.invalid||this.form.value.studyMethod==="Classroom"&&!this.form.value.location||(this.isLoadingResult=!0,e||(this.premiumTpsIds=[]),this.searchResultsSubscription=this.centerSearchClient.search(this.form.value,e,!1,this.premiumTpsIds).subscribe(t=>{this.featuredListing=t.featuredListing,Object.keys(this.featuredListing).length>0&&(this.premiumTpsIds=this.featuredListing.map(T=>T.organisationId));let n=[];this.standardListing=t.standardListing.filter(T=>n.includes(T.organisationId)?!1:(n.push(T.organisationId),!0)),this.results=[...this.featuredListing,...this.standardListing],this.getMoreResults=t.searchMore,this.searchedLocation=t.searchedLocation,this.totalResult=t.totalResult,this.priceFilterUpdaterService.updatePriceRange(t.priceRange),this.nearestResults=this.searchMapService.getNearestCenters(this.results,5);let h=w.mapForQueryParams(this.form.value);this.formDataRouter.redirectWithFormValue("training-providers/search/results",h,!0),this.isLoadingResult=!1,this.removeSearchResultsSubscriber()},t=>{console.log(t,"error"),this.isLoadingResult=!1,this.removeSearchResultsSubscriber(),this.results=[]}))}updateLocation(e){this.updateLocationSearch(e),this.form.get("location")?.value!==e&&(this.form.get("location")?.patchValue(e),this.shortlistService.clearAllData())}updateLocationSearch(e=null,t=null){this.locationSearch={location:e||this.locationSearch.location,maxDistance:t||this.locationSearch.maxDistance}}updateMaxDistance(e){this.updateLocationSearch(null,e),this.form.get("maxDistance")?.value!=e&&(this.form.get("maxDistance")?.patchValue(e),this.shortlistService.clearAllData())}updatePrice(e){let t=this.filterContent.categories.findIndex(n=>n.accordionTitle==="Maximum price");this.filterContent.categories[t].options.forEach(n=>{n.prechecked=!1}),this.form.get("price").patchValue(e),this.filterContent.categories[t].options.forEach(n=>{n.filterNumber==e&&(n.prechecked=!0)})}formatLocation(e){let t=Object.assign({},e);return t.location={latitude:e.location[1],longitude:e.location[0]},t}switchView(e){this.view=e,e==="map"&&Y&&window.scrollTo(0,0)}onMapReady(e){this.mapOptions={center:{lat:this.searchedLocation.lat,lng:this.searchedLocation.lng},zoom:9,scrollwheel:!1,streetViewControl:!1,disableDoubleClickZoom:!0,mapTypeControl:!1},this.searchMapService.createMap(e,this.results,!0,"tp")}displayFilterOverlay(e){e===!1?this.overlayOpen=e:this.overlayOpen=!0}removeShortList(){this.shortlistService.clearAllData(),this.shortlistLength=this.shortlistService.getList().length}captureAdditionalFilter(e){e.filter==="blended"?this.form.get("blendedLearning").patchValue(e.selected):typeof e.filter=="number"?e.selected?this.updatePrice(e.filter):this.updatePrice(0):this.amenities.includes(e.filter)?(e.selected?this.selectedAmenities.push(e.filter):this.selectedAmenities.splice(this.selectedAmenities.indexOf(e.filter),1),this.form.get("amenities").patchValue(this.selectedAmenities.toString())):(e.selected?this.selectedFeatures.push(e.filter):this.selectedFeatures.splice(this.selectedFeatures.indexOf(e.filter),1),this.form.get("features").patchValue(this.selectedFeatures.toString()))}onSelect(e){this.form.get("qualifications").patchValue(e.programmeComponentId)}};c.\u0275fac=function(t){return new(t||c)(m(Ce),m(K),m(Te),m(xe),m(Se),m(ce),m(Fe),m(we),m(w),m(Z),m(pe),m(ye),m(D),m($))},c.\u0275cmp=N({type:c,selectors:[["app-tp-search-results"]],decls:2,vars:2,consts:[[1,"tp-results","container"],[1,"results-map","tp-results","container"],[1,"page-grid"],["novalidate","",3,"formGroup"],[1,"tp-results__header"],[1,"tp-results__shortlist",3,"ngClass"],[1,"btn",3,"routerLink"],[1,"icon","icon-plus"],[1,"tp-results__header--title"],[1,"tp-results__filters"],[1,"tp-results__text"],["href","/training-providers/search",1,"reset"],["t
23itle","Method of Study"],["body","",1,"tp-results__filters","row"],[1,"method-of-study"],[1,"tp-results__radio_container"],["type","radio","formControlName","studyMethod","value","Classroom",1,"tp-results__radio",3,"change","checked"],[1,"tp-results__selected"],[1,"distance-text"],[1,"tp-results__checkbox_container"],["type","radio","formControlName","studyMethod","value","Distance",1,"tp-results__radio",3,"checked"],["href","/assessment-venues/search","target","_blank"],[3,"location"],["id","qualifications"],["title","Qualification"],["body","",1,"quals-picker"],[1,"row"],[1,"col-sm-12"],[1,"filter-button"],[1,"results-grid"],[1,"side-filters"],[1,"side-filters__sticky"],[3,"selection","overlayClosed","content","isMobile","openOverlay"],[1,"tp-results__container"],[1,"tp-results__view-more"],["type","checkbox","formControlName","blendedLearning","id","blendedLearning",1,"tp-results__checkbox",3,"change","checked"],["for","blendedLearning"],[3,"locationChange","maxDistanceChange","location"],[3,"selected","nodes","preselectedId"],[3,"button"],[3,"notification","isNotificationOpen"],[1,"tp-results__container--title"],[1,"float-right","tp-results__map-view"],["pathAlias","/training-providers/",3,"isFeatured","studyMethod","trainingProvider","isLocationSearch","searchQualificationId","searchQualificationName","searchLocation","searchCoordinates","isEAV"],["href","#"],["href","#",3,"click"],["pathAlias","/training-providers/",3,"shouldUpdateShortlist","isFeatured","studyMethod","trainingProvider","isLocationSearch","searchQualificationId","searchQualificationName","searchLocation","searchCoordinates","isEAV"],["id","list-anchor",1,"tp-results-content-block"],["name","list",1,"results-header__description","col-sm-9","text-left"],["name","list",1,"results-header__description","col-sm-3","text-right"],["href","",3,"click"],[1,"col-sm-12","col-md-12","col-lg-3","order-2","order-lg-1"],[1,"results-map__list"],[3,"id","active"],[1,"google-map"],["width","100%","height","100%",3,"mapInitialized","options"],[3,"id"],[1,"results-map__list--numbers"],["target","_blank",3,"href"]],template:function(t,n){t&1&&(f(0,it,57,21,"div",0),f(1,rt,19,2,"div",1)),t&2&&(g(n.view==="list"?0:-1),a(),g(n.view==="map"?1:-1))},dependencies:[Le,H,re,te,ee,se,oe,ne,ae,le,ue,me,ge,be,ke,Re,X,fe,he,Ie,ve,W,U],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.tp-results{max-width:90%;margin:0 auto;padding-top:30px}.tp-results__view-more{padding:15px 0 30px;color:#fff}.tp-results__text{margin-bottom:15px}.tp-results-content-block{padding:15px 0}.tp-results__map-view{margin-top:6px}.tp-results__header{display:inline-block;width:100%;margin-bottom:30px}.tp-results__header--title{font-size:28;font-weight:100}.tp-results__shortlist{float:right;position:relative;margin-bottom:15px}.tp-results__shortlist a{border:1px solid rgb(238.425,238.425,238.425);color:#000;display:block;white-space:nowrap}.tp-results__shortlist a .icon{position:absolute;top:-6px;right:-6px;color:#fff;background:#00ab4e;border-radius:50%}.tp-results__shortlist a:hover{text-decoration:none}.tp-results__container{clear:both;grid-column:3/4;padding:15px}.tp-results__container--title{display:inline-block;line-height:normal;margin-bottom:30px}.tp-results__filters .accordion{display:block;margin-bottom:15px}.tp-results__radio{position:absolute;opacity:0;cursor:pointer}.tp-results__radio:checked~.tp-results__selected{background-color:#00ab4e;border:solid #00ab4e 2px}.tp-results__radio:checked~.tp-results__selected:after{display:block;top:0;left:0}.tp-results__container_radio{display:block;position:relative;padding-left:36px;margin-bottom:8px;
23cursor:pointer;font-size:1rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tp-results__checkbox{position:absolute;opacity:0;z-index:999}.tp-results__checkbox+label{position:relative;cursor:pointer;padding:0;font-weight:500}.tp-results__checkbox+label:before{content:"";margin-right:10px;display:inline-block;vertical-align:text-top;width:20px;height:20px;background:#fff;border:2px solid rgb(229.5,229.5,229.5);margin-left:0;margin-top:-1px}.tp-results__checkbox:focus+label:before{box-shadow:0 0 #0000001f}.tp-results__checkbox:checked+label:before{background:#00ab4e;border:2px solid #00ab4e;margin-left:0}.tp-results__checkbox:disabled+label:before{box-shadow:none;background:#dfdfdf}.tp-results__checkbox:checked+label:after{content:"";position:absolute;left:5px;top:8px;background:#fff;width:2px;height:2px;box-shadow:2px 0 #fff,4px 0 #fff,4px -2px #fff,4px -4px #fff,4px -6px #fff,4px -8px #fff;transform:rotate(45deg)}.tp-results__checkbox_container{font-size:small;position:relative;padding:25px 10px 10px;display:block}.tp-results__radio_container{display:block;position:relative;padding-left:36px;margin-bottom:8px;
23cursor:pointer;font-size:1rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tp-results__radio_container:last-of-type{margin-top:15px}.tp-results__selected{position:absolute;top:3px;left:0;height:16px;width:16px;border:solid #4a4a4a 2px;background-color:#fff;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}.tp-results__selected:after{content:"";position:absolute;display:none;left:0;top:0;width:12px;height:12px;border:solid white 2px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}.tp-results__selected:before{content:"";position:absolute;display:none;top:-2px;left:-2px;width:20px;height:20px;border-radius:50%;background:transparent;outline:3px solid transparent;outline-offset:3px}.tp-results .distance-text{font-size:14px;color:#4a4a4a}.tp-results .distance-text a{font-size:14px}.btn{border-radius:.25rem;padding:.375rem .75rem}.btn.btn-success,.btn.btn-success:hover{color:#fff;width:100%}.reset{color:#00ab4e!important;float:right}.results-map__list li{font-size:13pt;font-weight:600;border-bottom-width:1px;border-bottom-color:#dce6f0;border-bottom-style:solid;text-indent:-30px;padding:20px 20px 10px 30px}.results-map__list li.active{background:#dce6f0;border-left:3px solid #00ab4e;padding-left:35px}.results-map__list li--numbers{margin-right:9px;color:#00ab4e}.results-map__list li p{padding-left:40px;font-size:13pt;font-weight:300}.results-map__map{margin-bottom:10px}.results-map__element{padding-bottom:75%;height:300px}.results-map .compare__back-button{padding:1em}.results-map .compare__back-button .btn-default{white-space:nowrap}.results-map .text-right{text-align:right}.isDisabled{cursor:not-allowed;opacity:.5}.isDisabled>a{color:currentColor;display:inline-block;pointer-events:none;text-decoration:none}.notification--full-width .notification__content{max-width:100%!important}.notification--full-width .notification__content .notification__message ul,.notification--full-width .notification__content .notification__message li{list-style:initial}.notification--full-width .notification__content .notification__message ul{margin-left:20px}@media (min-width: 769px){.results-grid{display:grid;grid-template-columns:25% 5% 70%}.results-grid .side-filters{z-index:10;grid-column:1/1}.results-grid .side-filters__sticky{position:sticky;top:50px}}.page-grid{display:grid;grid-auto-rows:min-content}.filter-button{padding-top:15px}.prices{margin:5px 0}.google-map{width:350px;height:600px}@media (min-width: 768px){.google-map{width:1000px;height:600px}} 24`],encapsulation:2});let o=c;return o})();export{Lt as TpSearchResultsComponent};
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.