PageSourceSearch

https://ielts.co.nz/chunk-NBVY3AGR.js

js ielts.co.nz collected 2026-10-02 06:52:53 UTC 32,375 bytes, 1 lines download raw bytes

1import{c as F}from"./chunk-4YVC6SUS.js";import"./chunk-L2TL2KBU.js";import{a as Ie}from"./chunk-IQ2D365R.js";import{a as De}from"./chunk-7NZ2HCGU.js";import{a as Te}from"./chunk-N5DXNK5L.js";import"./chunk-3UUUX2LI.js";import{a as Ce,b as ve,c as we}from"./chunk-57GZQ65L.js";import{c as xe}from"./chunk-TGF73UHI.js";import"./chunk-YZXVQOAT.js";import{a as ye,b as Se}from"./chunk-GUV6KGMO.js";import"./chunk-2ZXDKB47.js";import{a as he}from"./chunk-GOTBM3K6.js";import{c as fe,d as _e}from"./chunk-PNXLJYWF.js";import{a as me}from"./chunk-XYH6JRU6.js";import{a as ce,e as de}from"./chunk-S4T3P5AE.js";import{H as ge,J as ue,d as M,r as pe}from"./chunk-MTJSZ6IN.js";import{C as se,v as re,y as le,z as oe}from"./chunk-C2X6DUH2.js";import{$a as l,$b as Y,Ba as J,Bc as b,Dc as L,Fa as $,H as U,Jb as c,Kb as a,Lb as o,Mb as x,P as j,Qb as I,Rb as P,Tb as w,Ua as E,Vb as u,Wa as V,X as H,Xb as s,Za as Q,_a as q,ac as G,bc as K,bd as ee,cd as te,dd as ie,gc as p,hc as f,ic as D,kd as ne,lb as S,ma as g,na as d,nd as ae,qb as W,qc as T,rc as X,rd as k,sc as O,vb as y,xc as Z}from"./chunk-P67MUED3.js";import{a as R,g as B}from"./chunk-AQHZ5JOB.js";var A=class{constructor(m={},e=[],i=[],t={},n={}){this.bannerImage={},this.breadcrumbs=[],this.filterData=[],this.longDescription={},this.sectionTitle={},this.bannerImage=m,this.breadcrumbs=e,this.filterData=i,this.longDescription=t,this.sectionTitle=n}};var Pe=(r,m,e)=>({itemsPerPage:r,currentPage:m,totalItems:e});function be(r,m){if(r&1&&x(0,"app-breadcrumb",12),r&2){let e=s();c("breadcrumb",e.articlePageInfo.pageData==null?null:e.articlePageInfo.pageData.breadcrumbs)}}function Le(r,m){if(r&1&&x(0,"app-article-banner",13),r&2){let e=s();c("bannerDetails",e.articlePageInfo.pageData==null?null:e.articlePageInfo.pageData.bannerImage)}}function ke(r,m){if(r&1&&x(0,"app-paragraph",14),r&2){let e=s();c("otherDetails",e.otherDetails)("paragraphContent",e.articlePageInfo==null||e.articlePageInfo.pageData==null?null:e.articlePageInfo.pageData.longDescription)("headingSize","heading heading3")}}function Ae(r,m){if(r&1){let e=w();a(0,"app-filter",15),u("selectedFilters",function(t){g(e);let n=s();return d(n.applyFilter(t))})("clearFilter",function(t){g(e);let n=s();return d(n.clearFilters(t))})("selectedSortBy",function(t){g(e);let n=s();return d(n.getSortBy(t))}),o()}if(r&2){let e=s();c("filterData",e.articlePageInfo.pageData==null?null:e.articlePageInfo.pageData.filterData)("sortBy",e.sortBy)("filterCount",e.filterCount)}}function Ne(r,m){if(r&1){let e=w();I(0),a(1,"div",44)(2,"button",34),u("click",function(){let t=g(e).$implicit,n=s(2);return t.toggled=!t.toggled,d(n.selectTopics())}),p(3),o()(),P()}if(r&2){let e=m.$implicit,i=s(2);l(2),c("ngClass",e!=null&&e.toggled&&(i.topics==null?null:i.topics.length)!==0?"button-dark-red":"button-outline-light-grey"),l(),f(e==null?null:e.name)}}function Be(r,m){if(r&1&&(a(0,"span",57),p(1),o()),r&2){let e=s().$implicit;l(),f(e==null?null:e.topicTag)}}function Ee(r,m){if(r&1&&(a(0,"pre",58),p(1),o()),r&2){let e=s().$implicit;l(),f(e==null?null:e.articleType)}}function Ve(r,m){if(r&1&&(a(0,"h2",59),p(1),o()),r&2){let e=s().$implicit;l(),f(e==null?null:e.articleTitle)}}function Oe(r,m){if(r&1&&(a(0,"h3",59),p(1),o()),r&2){let e=s().$implicit;l(),f(e==null?null:e.articleTitle)}}function Me(r,m){r&1&&x(0,"span",64)}function Fe(r,m){if(r&1&&(a(0,"div",60)(1,"div",61),x(2,"span",62),b(3,"date"),p(4,"\xA0"),x(5,"span",62),b(6,"date"),o(),y(7,Me,1,0,"span",63),o()),r&2){let e=s().$implicit;l(2),c("innerHtml",L(3,3,e==null?null:e.modifiedDate,"dd MMMM"),E),l(3),c("innerHtml",L(6,6,e==null?null:e.modifiedDate,"yyyy"),E),l(2),c("ngIf",(e==null?null:e.modifiedDate)&&(e==null?null:e.duration))}}function ze(r,m){if(r&1&&(a(0,"div",60),x(1,"img",65),a(2,"span",66),p(3),o()()),r&2){let e=s().$implicit,i=s(2);l(),c("src",X("",i.assetPath,"/assets/home/icons/clock.svg"),V),l(2),D("",e==null?null:e.duration," read")}}function Re(r,m){if(r&1){let e=w();I(0),a(1,"a",45),u("click",function(){let t=g(e).$implicit,n=s(2);return d(n.pageTrack(t))}),a(2,"div",46)(3,"div",47),x(4,"img",48),y(5,Be,2,1,"span",49),o(),a(6,"div",50)(7,"div",51),y(8,Ee,2,1,"pre",52)(9,Ve,2,1,"h2",53)(10,Oe,2,1,"h3",53),a(11,"p",54),p(12),o()(),a(13,"div",55),y(14,Fe,8,9,"div",56)(15,ze,4,3,"div",56),o()()()(),P()}if(r&2){let e=m.$implicit,i=m.index,t=s(2);l(),c("id",O("autom_",e==null||e.articleType==null?null:e.articleType.toLowerCase(),"_card_",i))("routerLink",O("/",t.otherDetails==null?null:t.otherDetails.countryUrl,"",e==null?null:e.articleCta))("title",T(e==null?null:e.articleTitle))("ngClass",(e==null?null:e.articleType)==="News"?"card-full":""),l(3),c("src",T(!(e==null||e.image==null)&&e.image.imageUrl?(e==null||e.image==null?null:e.image.imageUrl)+t.imageType+"&fit=fill&w=389&h=260":t.defaultImage),V)("alt",T(e==null||e.image==null?null:e.image.imageAltText)),l(),c("ngIf",(e==null?null:e.articleType)!=="News"&&(e==null?null:e.topicTag)),l(3),c("ngIf",(e==null?null:e.articleType)==="News"),l(),c("ngIf",(e==null?null:e.articleType)==="News"),l(),c("ngIf",(e==null?null:e.articleType)!=="News"),l(),c("title",T(e.shortDe
1scription)),l(),D(" ",e==null?null:e.shortDescription),l(2),c("ngIf",e==null?null:e.modifiedDate),l(),c("ngIf",e==null?null:e.duration)}}function Ue(r,m){if(r&1){let e=w();a(0,"section",16)(1,"div",17)(2,"div",18)(3,"div",19)(4,"div",20)(5,"h4",21),p(6),o()(),a(7,"div",22)(8,"div",23)(9,"label",24),p(10),o(),a(11,"div",25),u("click",function(t){g(e);let n=s();return n.stop(t),d(n.openDropdown(1))}),a(12,"button",26)(13,"span",27),p(14),o(),x(15,"span",28),o(),a(16,"ul",29)(17,"li",30),u("click",function(){g(e);let t=s();return d(t.filterBySort("Latest",t.titles.latest))}),a(18,"span",31),p(19),o()(),a(20,"li",30),u("click",function(){g(e);let t=s();return d(t.filterBySort("Oldest",t.titles.oldest))}),a(21,"span",31),p(22),o()()()()(),a(23,"div",23)(24,"label",24),p(25),o(),a(26,"div",32),u("click",function(t){g(e);let n=s();return n.stop(t),d(n.openDropdown(2))}),a(27,"button",26)(28,"span",27),p(29),o(),x(30,"span",28),o(),a(31,"ul",29)(32,"li",30),u("click",function(){g(e);let t=s();return d(t.filterByLimit(10))}),a(33,"span",31),p(34,"10"),o()(),a(35,"li",30),u("click",function(){g(e);let t=s();return d(t.filterByLimit(15))}),a(36,"span",31),p(37,"15"),o()(),a(38,"li",30),u("click",function(){g(e);let t=s();return d(t.filterByLimit(20))}),a(39,"span",31),p(40,"20"),o()()()()()()(),a(41,"div",33)(42,"button",34),u("click",function(){g(e);let t=s();return d(t.selectAllTopics())}),p(43,"All content type"),o(),x(44,"div",35),a(45,"div",36)(46,"drag-scroll",37,0),y(48,Ne,4,2,"ng-container",38),o()()()(),a(49,"div",39),y(50,Re,16,22,"ng-container",38),b(51,"paginate"),o(),a(52,"div",40)(53,"div",19)(54,"div",20)(55,"h4",21),p(56),o()(),a(57,"div",22)(58,"div",23)(59,"label",24),p(60),o(),a(61,"div",41),u("click",function(t){g(e);let n=s();return n.stop(t),d(n.openDropdown(3))}),a(62,"button",26)(63,"span",27),p(64),o(),x(65,"span",28),o(),a(66,"ul",29)(67,"li",30),u("click",function(){g(e);let t=s();return d(t.filterBySort("Latest",t.titles.latest))}),a(68,"span",31),p(69),o()(),a(70,"li",30),u("click",function(){g(e);let t=s();return d(t.filterBySort("Oldest",t.titles.oldest))}),a(71,"span",31),p(72),o()()()()(),a(73,"div",23)(74,"label",24),p(75),o(),a(76,"div",42),u("click",function(t){g(e);let n=s();return n.stop(t),d(n.openDropdown(4))}),a(77,"button",26)(78,"span",27),p(79),o(),x(80,"span",28),o(),a(81,"ul",29)(82,"li",30),u("click",function(){g(e);let t=s();return d(t.filterByLimit(10))}),a(83,"span",31),p(84,"10"),o()(),a(85,"li",30),u("click",function(){g(e);let t=s();return d(t.filterByLimit(15))}),a(86,"span",31),p(87,"15"),o()(),a(88,"li",30),u("click",function(){g(e);let t=s();return d(t.filterByLimit(20))}),a(89,"span",31),p(90,"20"),o()()()()()()(),a(91,"app-pagenation",43),u("pageUpdate",function(t){g(e);let n=s();return d(n.pageUpdate(t))}),o()()()()}if(r&2){let e=s();l(6),f(e.articlePageInfo.pageData==null||e.articlePageInfo.pageData.sectionTitle==null?null:e.articlePageInfo.pageData.sectionTitle.featureTitle),l(4),D("",e.titles.sortBy,":"),l(4),f(e.displaySort),l(5),f(e.titles.latest),l(3),f(e.titles.oldest),l(3),f(e.titles.view),l(4),f(e.articleLimit),l(13),c("ngClass",(e.topics==null?null:e.topics.length)!==0?"button-outline-light-grey":"button-dark-red"),l(4),c("snap-duration",200),l(2),c("ngForOf",e.secondaryTags),l(2),c("ngForOf",L(51,19,e.articlePageInfo.newsAndArticleList,Z(22,Pe,e.pagination==null?null:e.pagination.pageSize,e.pagination==null?null:e.pagination.currentPage,e.pagination==null?null:e.pagination.totalRecords))),l(6),f(e.articlePageInfo.pageData==null||e.articlePageInfo.pageData.sectionTitle==null?null:e.articlePageInfo.pageData.sectionTitle.featureTitle),l(4),D("",e.titles.sortBy,":"),l(4),f(e.displaySort),l(5),f(e.titles.latest),l(3),f(e.titles.oldest),l(3),f(e.titles.view),l(4),f(e.articleLimit),l(12),c("pageNation",e.pagination)}}function je(r,m){if(r&1){let e=w();I(0),a(1,"app-not-found",67),u("clearFilter",function(){g(e);let t=s();return d(t.refineYourSearch())}),o(),P()}if(r&2){let e=s();l(),c("pageNotFound",e.pageNotFound)("recordNotFound",e.recordNotFound)("otherDetails",e.otherDetails)}}var Ct=(()=>
1{class r{constructor(e,i,t,n,h,_,C,v,N){this.activatedRoute=e,this.contentfulSvc=i,this.httpService=t,this.platformId=n,this.router=h,this.el=_,this.seoService=C,this.clickSteam=v,this.loaderService=N,this.isContentLoading=!1,this.preview=!1,this.pagination={currentPage:1,scrSze:10,pageSize:10,totalRecords:0,pagenationSeo:!0},this.sortBy="Latest",this.articleSkip=0,this.articleLimit=10,this.pageNotFound=!1,this.articlePageInfo={pageData:{},newsAndArticleList:[]},this.sortByTop=!1,this.limitByTop=!1,this.sortByBottom=!1,this.limitByBottom=!1,this.recordNotFound=!1,this.otherDetails={},this.assetPath=M+"/IELTS_Website_Rebrand",this.defaultImage=M+"/assets/img_px.gif",this.filterCount=0,this.secondaryTags=[],this.topics=[],k(this.platformId)&&this.onResize()}onResize(){k(this.platformId)&&(this.pagination.scrSze=this.contentfulSvc.getPaginationScreenSize(window.innerWidth))}onDocumentClick(e){this.el.nativeElement.contains(e.target)||this.outSideClick()}initializeSortDisplay(){let e=sessionStorage.getItem("sortBy");e!==null?(this.displaySort=e==="Latest"?this.titles.latest:this.titles.oldest,this.sortBy=e):this.displaySort=this.sortBy==="Latest"?this.titles.latest:this.titles.oldest}extractRouteParams(){let e=this.activatedRoute.snapshot.paramMap.get("country_name"),i=this.activatedRoute.snapshot.paramMap.get("article_landing_param");this.otherDetails.countryName=e??"global",this.otherDetails.articleLandingParam=i??"",this.otherDetails.countryUrl=e??"",this.otherDetails.siteLanguage=this.contentfulSvc.getCurrentLangCode(this.otherDetails.countryUrl)}createBreadcrumbsDetails(e){return e?.breadcrumbs?.length?e?.breadcrumbs?.map(i=>new De(i.title==="Home"?this.contentfulSvc.translatedData.commonList.home[this.getCapitalizedCountryName()]:i.title,i?.link,i?.template)):[]}createOgDetails(){return{ogTitle:"IELTS Test \u2013 Latest Updates and Test Preparation | IDP IELTS ",ogDescription:"Read the latest news and stories from IELTS \u2013 from changes to the IELTS test to resources to help you get one step ahead in achieving your goals."}}processFilterData(e){let i=e?.curatedFilterComponent,t=sessionStorage.getItem("filterData");if(t){let n=JSON.parse(t);this.filterCount=JSON.parse(sessionStorage.getItem("filterCount")),this.updateFilterDataFromSession(n,i),i=n}else i?.length&&this.resetFilterData(i);return i}updateFilterDataFromSession(e,i){e?.forEach((t,n)=>{if(n>=0&&n<i?.length){let h=i[n];t.title=h?.title,t.displayValues=[],t?.filterComponent?.forEach((_,C)=>{let v=h?.filterComponent[C];_?.value===v?.value&&(_.title=v?.title,_?.selected&&t.displayValues.push(v?.title))})}})}resetFilterData(e){e?.forEach(i=>{i.displayValues=[],i.selectedValues=[],i.toggled=!1,i?.filterComponent?.forEach(t=>{t&&(t.selected=!1)})})}initializeComponent(){this.pageNotFound=!1,this.imageType=this.contentfulSvc.setImgType(),this.titles=this.contentfulSvc?.translatedData?.commonList,this.initializeSortDisplay()}setupRouteSubscriptions(){this.activatedRoute.url?.subscribe(()=>{this.extractRouteParams()}),this.activatedRoute.queryParamMap?.subscribe(e=>{this.preview=Object.keys(e.params).length>0&&e.params?.preview})}initializePagination(){sessionStorage.getItem("pagination")!==null&&(this.pagination=JSON.parse(sessionStorage.getItem("pagination"))),this.contentfulSvc.checkIndiawebsite()&&(this.otherDetails.countryName="india")}setupQueryParamsSubscription(){this.activatedRoute.queryParams?.subscribe(e=>{e.page!==void 0?(this.paramValue=e.page,this.pagination.currentPage=e.page,this.pagination.pageSize=this.articleLimit,this.articleSkip=e.page-1):(this.pagination.currentPage=1,this.pagination.pageSize=this.articleLimit),sessionStorage.setItem("pagination",JSON.stringify(this.pagination))})}processArticlePageData(e){this.customSchemaVal=e?.customSchemaMarkup,this.contentfulSvc.getCustomSchema(this.customSchemaVal),this.loaderService.hide();let i=this.createBreadcrumbsDetails(e),t=this.createOgDetails(),n=this.contentfulSvc.bannerDetails({imageName:e?.bannerImage?.altText||"",media:e?.bannerImage?.media},e?.shortDescription||"",e?.pageTitle||"",{callToAction:e?.bannerImage?.callToAction,countryName:this.otherDetails?.countryName,ogDetails:t}),h=e?.longDescription?{paragraph:e?.longDescription}:"",_=e?.additionalSectionTitles?.[0],C=this.processFilterData(e);
1this.articlePageInfo.pageData=new A(n,i,C,h,_),this.seodetails(e,this.preview,this.otherDetails?.siteLanguage),this.topics=[]}handleArticleTagSubscription(){this.tagSubscription=this.contentfulSvc.articleTag?.pipe(j()).subscribe(e=>{Object.keys(e).length!==0&&(e?.contentType==="metaTagTopic"||e?.contentType==="metaTagTestSkill"?e?.contentType==="metaTagTopic"?this.topics.push(e?.title):e?.contentType==="metaTagTestSkill"&&this.articlePageInfo?.pageData?.filterData?.forEach(i=>{this.setArticleTag(i,e)}):this.articlePageInfo?.pageData?.filterData?.forEach(i=>{i.selectedValues=[],i.displayValues=[],e&&(i?.filterType==="Test type"||i?.filterType==="IELTS skill")&&this.setArticleTagExisting(i,e)}),sessionStorage.setItem("filterCount",this.filterCount),sessionStorage.setItem("filterData",JSON.stringify(this.articlePageInfo?.pageData?.filterData)),sessionStorage.setItem("pagination",JSON.stringify({currentPage:1,scrSze:10,pageSize:10,totalRecords:0,pagenationSeo:!0}))),this.getArticleListDetails(this.otherDetails?.countryName,this.articlePageInfo?.pageData?.filterData,this.preview)})}handlePageLoadError(){this.loaderService.hide(),this.pageRedirection()}pageRedirection(){this.contentfulSvc?.pageRedirection(this.otherDetails?.countryName,this.otherDetails?.articleLandingParam,this.otherDetails?.siteLanguage,this.preview,this.router.url),this.contentfulSvc?.pageNotFound?.subscribe(e=>{this.pageNotFound=e})}ngOnInit(){this.initializeComponent(),this.setupRouteSubscriptions(),this.initializePagination(),this.setupQueryParamsSubscription(),this.contentfulSvc.customDimensionData(this.otherDetails?.countryName,"Article Landing page",""),this.otherDetails.pageName="Article Landing page",this.loaderService.show(),this.getArticleLandingPageDetails(this.otherDetails,this.preview)?.pipe(H(e=>B(this,null,function*(){this.processArticlePageData(e),this.handleArticleTagSubscription()})),U(()=>{this.handlePageLoadError()})).subscribe()}setArticleTag(e,i){return e?.filterComponent.forEach(t=>{t&&t?.title?.trim()===i?.title?.trim()&&(t.selected=!0,!e.displayValues?.includes(t?.title)&&!e.selectedValues?.includes(t?.value)&&(e.displayValues?.push(t?.title),e.selectedValues?.push(t?.value),this.filterCount=this.filterCount+1))})}setArticleTagExisting(e,i){return e?.filterComponent.forEach(t=>{t&&(t.selected=!1,t?.value?.trim()===i?.trim()?(e.selectedValues.push(t?.value),t.selected=!0,e.displayValues.push(t?.title),this.filterCount=e?.displayValues?.length):t?.value?.trim()!==i?.trim()&&(i?.toLowerCase()?.trim()==="life skills"||i?.toLowerCase()?.trim()==="ukvi")&&t?.value?.toLowerCase()?.includes(i?.toLowerCase()?.trim())&&(e.selectedValues.push(t?.value),t.selected=!0,e.displayValues.push(t?.title),this.filterCount=e?.displayValues?.length))})}getArticleLandingPageDetails(e,i){let t=i?"&preview=true":"",n="?urlSlug=/"+e?.articleLandingParam+"&contentType=dynamicPage&dynamicPageType=articleListing&locale="+e?.siteLanguage+"&website="+e?.countryName+t;return this.httpService.get("DYNAMIC_PAGE_URL",n)}extractFilterValues(e){let i="",t="",n="",h="";return e?.forEach(_=>{switch(_?.filterType){case"Content type":i=_?.selectedValues?.toString();break;case"Test type":t=_?.selectedValues?.toString();break;case"IELTS skill":n=_?.selectedValues?.toString();break;case"Band scores":h=_?.selectedValues?.toString();break;default:break}}),{articleType:i,testType:t,testPart:n,bandScore:h}}buildQuery(e,i,t,n){let h=this.sortBy==="Latest"?"-fields.modifiedDate":"fields.modifiedDate",{testPart:_,testType:C,bandScore:v,articleType:N}=t,z={website:e,locale:i,pageType:"Article listing page",order:h,language:this.contentfulSvc.getLanguage(i)?.toLowerCase(),testPart:_,testType:C,bandScores:v,articleType:N,skip:this.articleSkip*this.articleLimit,limit:this.articleLimit,topic:this.topics?.length!==0?this.topics?.toString():""};return n&&(z.preview="true"),z}processArticleList(e){let i=[],t=[];e?.newsAndArticles.forEach(n=>{n?.articleType==="News"?i.push(this.contentfulSvc.getArticleDetails(n)):t.push(this.contentfulSvc.getArticleDetails(n))}),this.articlePageInfo.newsAndArticleList=[...i,...t],this.pagination.totalRecords=e?.totalNewsAndArticles}processSecondaryTags(e){this.secondaryTags=[],e?.secondary_filters?.forEach(i=>
1{this.secondaryTags.some(t=>t?.name===i)||(this.secondaryTags.push({name:i,toggled:!1}),this.topics?.forEach(t=>{if(i===t){let n=this.secondaryTags?.findIndex(h=>h?.name===i);if(n!==-1){this.secondaryTags[n].toggled=!0;let h=this.secondaryTags[n];this.secondaryTags.splice(n,1),this.secondaryTags.unshift(h)}}}))})}handleScrollToElement(){this.paramValue!==void 0&&k(this.platformId)&&setTimeout(()=>{this.contentfulSvc.scrolltoElement("articleList")},100)}handleSuccessResponse(e){this.isContentLoading=!1,e?.status?.code===200?(this.processArticleList(e),this.processSecondaryTags(e),this.handleScrollToElement()):this.recordNotFound=!0}handleErrorResponse(){this.isContentLoading=!1,this.recordNotFound=!0}getArticleListDetails(e,i,t){return B(this,null,function*(){this.pageNotFound=!1,this.recordNotFound=!1;let n=this.contentfulSvc.getCurrentLangCode(e?.toLowerCase()),h=this.extractFilterValues(i),_=this.buildQuery(e,n,h,t);this.articlePageInfo.newsAndArticleList=[],this.isContentLoading=!0,this.httpService.post("LISTING_DATA",_).subscribe({next:C=>{this.handleSuccessResponse(C)},error:()=>{this.handleErrorResponse()}})})}selectTopics(){this.topics=[],this.secondaryTags?.forEach((e,i)=>{e?.toggled&&!this.topics.includes(e.name)?(this.secondaryTags.splice(i,1),this.secondaryTags.unshift(e),this.topics.push(e.name)):!e?.toggled&&this.topics.includes(e.name)&&this.topics.splice(this.topics.indexOf(e?.name),1)}),this.getArticleListDetails(this.otherDetails?.countryName,this.articlePageInfo?.pageData?.filterData,this.preview)}selectAllTopics(){this.topics=[],this.secondaryTags?.forEach(e=>{e.toggled=!1}),this.getArticleListDetails(this.otherDetails?.countryName,this.articlePageInfo?.pageData?.filterData,this.preview)}getCapitalizedCountryName(){return this.otherDetails?.countryName?.charAt(0)?.toUpperCase()+this.otherDetails?.countryName?.slice(1)||""}getCleanUrl(){return this.router.url!==void 0?this.router.url.split("?")[0]:""}seodetails(e,i,t){let n=e?.seoFields?e.seoFields:{};n&&n.length>0&&(n[0].robots=e?.robots?.robots||""),n.length>0&&(this.seoService.setSeoTitle(n[0]),this.seoService.addSeoTags(n[0],i),"canonical"in n[0]&&n[0].canonical!=null?this.seoService.setSeoCanonical(n[0],i,this.contentfulSvc?.domainName):this.seoService.setSeoUrl(this.getCleanUrl(),i,this.contentfulSvc.domainName,this.contentfulSvc.getLanguageUrlCode(t,this.getCapitalizedCountryName()))),n&&n.length>0&&n[0].robots&&!n[0].robots?.includes("noindex")&&this.contentfulSvc.getHreflangDetails(e?.hrefData||[],e?.urlSlug||"",e?.hrefLang.tags||"")}applyFilter(e){this.topics=[],this.pagination.currentPage=1,this.articleSkip=0,this.articlePageInfo.pageData.filterData=e,sessionStorage.setItem("pagination",JSON.stringify(this.pagination)),sessionStorage.setItem("filterData",JSON.stringify(e)),this.getArticleListDetails(this.otherDetails?.countryName,e,this.preview)}pageUpdate(e){this.pagination.currentPage=parseInt(e),this.articleSkip=parseInt(e)-1,this.pageNavigation(e),sessionStorage.setItem("pagination",JSON.stringify(this.pagination)),this.getArticleListDetails(this.otherDetails?.countryName,this.articlePageInfo?.pageData?.filterData,this.preview)}pageNavigation(e){this.router.navigateByUrl(this.router.url,{skipLocationChange:!0}).then(()=>{this.articleSkip>0?this.router.navigate([],{queryParams:{page:e}}):this.router.navigate([])})}getSortBy(e){sessionStorage.setItem("sortBy",e.sortBy),this.sortBy=e.sortBy,this.displaySort=e.displaySort}filterByLimit(e){this.pagination.pageSize=e,this.articleLimit=e,this.pagination.currentPage=1,this.articleSkip=0,sessionStorage.setItem("pagination",JSON.stringify(this.pagination)),this.outSideClick(),this.getArticleListDetails(this.otherDetails?.countryName,this.articlePageInfo?.pageData?.filterData,this.preview)}filterBySort(e,i){sessionStorage.setItem("sortBy",e),this.sortBy=e,this.displaySort=i,this.pagination.currentPage=1,this.articleSkip=0,this.outSideClick(),this.getArticleListDetails(this.otherDetails?.countryName,this.articlePageInfo?.pageData?.filterData,this.preview)}pageTrack(e){let i=this.contentfulSvc.prevPageName?this.contentfulSvc.prevPageName:this.otherDetails.pageName,t=new ce("News and article page",this.otherDetails?.countryName!=="global"?this.otherDetails?.countryName+"/about/news-and-articles":"/about/news-and-articles","ArticleLinkClicked","Interaction","News and article section","News and article","na",
1i),n={articleId:"na",articleTitle:e?.articleTitle,articleTopic:e?.topicTag?e?.topicTag:"na",paginationNumber:this.pagination?.currentPage};this.clickSteam.clickstreamLogging(R({event:t},n)),this.contentfulSvc?.pageTrack(e?.articleType?.toLowerCase()||"article",e?.articleTitle,e?.topicTag?e?.topicTag:"na",{websitename:this.otherDetails?.countryName,pagename:this.contentfulSvc.customDimensionValue.pageName,language:this.otherDetails?.siteLanguage,position:"banner",keyword:"na"})}outSideClick(){this.clearFilters(!1),this.contentfulSvc.selectToogle&&this.contentfulSvc.selectTooglefu()}stop(e){e?.stopPropagation()}openDropdown(e){this.contentfulSvc.selectTooglefu("toogleSelect_"+e),e===1?this.sortByTop=!this.sortByTop:this.sortByTop=!1,e===2?this.limitByTop=!this.limitByTop:this.limitByTop=!1,e===3?this.sortByBottom=!this.sortByBottom:this.sortByBottom=!1,e===4?this.limitByBottom=!this.limitByBottom:this.limitByBottom=!1}refineYourSearch(){this.filterComp?.clearAllfilters()}clearFilters(e){this.sortByTop=e,this.sortByBottom=e,this.limitByBottom=e,this.limitByTop=e}ngOnDestroy(){this.contentfulSvc.prevPageName="Article listing page",this.tagSubscription&&this.tagSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||r)(S(re),S(ge),S(ue),S($),S(le),S(J),S(fe),S(de),S(me))}}static{this.\u0275cmp=W({type:r,selectors:[["app-article-landing"]],viewQuery:function(i,t){if(i&1&&Y(F,5),i&2){let n;G(n=K())&&(t.filterComp=n.first)}},hostBindings:function(i,t){i&1&&u("resize",function(h){return t.onResize(h)},Q)("click",function(h){return t.onDocumentClick(h)},q)},decls:12,vars:7,consts:[["nav",""],[3,"click"],[3,"breadcrumb",4,"ngIf"],[3,"bannerDetails",4,"ngIf"],[1,"px-48","py-40","p-24-900"],[1,"container"],[3,"otherDetails","paragraphContent","headingSize",4,"ngIf"],["id","articleList",3,"filterData","sortBy","filterCount","selectedFilters","clearFilter","selectedSortBy",4,"ngIf"],[1,"article-listing-wrapper","position-relative"],[3,"isContentLoading"],["class","article-listing py-40 px-48 p-24-900",4,"ngIf"],[4,"ngIf"],[3,"breadcrumb"],[3,"bannerDetails"],[3,"otherDetails","paragraphContent","headingSize"],["id","articleList",3,"selectedFilters","clearFilter","selectedSortBy","filterData","sortBy","filterCount"],[1,"article-listing","py-40","px-48","p-24-900"],[1,"container","d-flex","flex-column","gap48","gap24-900"],[1,"filter-sort","d-flex","flex-column","gap24"],[1,"sort-wrapper","d-flex","flex-column-900","gap24","align-items-center"],[1,"sort-title"],[1,"heading4"],[1,"filter-control-wrapper","d-flex","gap24","gap16-900","align-items-end","mw-100"],[1,"filter-item","d-flex","gap12","align-items-center","mw-100"],[1,"filter-title","heading5","hide-900"],["id","toogleSelect_1",1,"dropdown-item","position-relative","mw-100","filter-alpha",3,"click"],[1,"dropdown-option","heading6","d-flex","rounded","align-items-center","justify-content-between","gap8","w-100"],[1,"dropdown-text"],[1,"chevron-arrow","position-relative"],[1,"dropdown-list","position-absolute","w-100","rounded","overflow-hidden","heading6","hide"],[1,"drpdwn-lst-itm","d-flex","align-items-center","gap16","font-medium",3,"click"],[1,"custom-label"],["id","toogleSelect_2",1,"dropdown-item","position-relative","mw-100",3,"click"],[1,"filter-tag-wrapper","d-flex","gap16","align-items-center"],[1,"filter-tag","button","rounded-full",3,"click","ngClass"],[1,"btn-spacer"],[1,"w-100","filter-carousel","overflow-hidden","carousel-shadow","position-relative"],[1,"dragscroll",3,"snap-duration"],[4,"ngFor","ngForOf"],[1,"news-card-wrapper","gap48","gap24-900"],[1,"sort-pagination","d-flex","flex-column","gap24"],["id","toogleSelect_3",1,"dropdown-item","position-relative","mw-100","filter-alpha",3,"click"],["id","toogleSelect_4",1,"dropdown-item","position-relative","mw-100",3,"click"],[3,"pageUpdate","pageNation"],["drag-scroll-item",""],["appRouterlink","",1,"news-card",3,"click","id","ngClass","routerLink","title"],[1,"news-item","d-flex","flex-column","rounded","overflow-hidden","h-100"],[1,"news-image","position-relative","rounded","overflow-hidden","d-flex","align-items-end","justify-content-end"],["loading","lazy","width","318","height","180",1,"w-100","h-100","image-ratio",3,"src","alt"],["class","card-tag position-absolute heading6",4,"ngIf"],[1,"news-content","d-flex","flex-column","p-16","gap48","gap24-900","p-24-900","justify-content-between","h-100"],[1,"news-text","d-flex","flex-column","gap12"],["class","pre-text rounded d-flex align-items-center justify-content-center heading6",4,"ngIf"],["class","news-head clr-black",4,"ngIf"],[1,"news-
1paragraph","font-opensans","line-clamp",3,"title"],[1,"news-date","d-flex","align-items-center","gap8","heading6","flex-wrap"],["class","d-flex align-items-center gap8",4,"ngIf"],[1,"card-tag","position-absolute","heading6"],[1,"pre-text","rounded","d-flex","align-items-center","justify-content-center","heading6"],[1,"news-head","clr-black"],[1,"d-flex","align-items-center","gap8"],[1,"font-medium","ltr"],[3,"innerHtml"],["class","center-dot rounded-full",4,"ngIf"],[1,"center-dot","rounded-full"],["width","12","height","12","loading","lazy","alt","clock",3,"src"],[1,"font-medium"],[3,"clearFilter","pageNotFound","recordNotFound","otherDetails"]],template:function(i,t){i&1&&(a(0,"div",1),u("click",function(){return t.outSideClick()}),y(1,be,1,1,"app-breadcrumb",2)(2,Le,1,1,"app-article-banner",3),a(3,"main")(4,"section",4)(5,"div",5),y(6,ke,1,3,"app-paragraph",6),o()(),y(7,Ae,1,3,"app-filter",7),a(8,"div",8),x(9,"app-loader",9),y(10,Ue,92,26,"section",10)(11,je,2,3,"ng-container",11),o()()()),i&2&&(l(),c("ngIf",(t.articlePageInfo.pageData==null||t.articlePageInfo.pageData.breadcrumbs==null?null:t.articlePageInfo.pageData.breadcrumbs.length)&&t.otherDetails.countryName!="india"),l(),c("ngIf",t.articlePageInfo.pageData==null?null:t.articlePageInfo.pageData.bannerImage),l(4),c("ngIf",t.articlePageInfo==null||t.articlePageInfo.pageData==null?null:t.articlePageInfo.pageData.longDescription),l(),c("ngIf",t.articlePageInfo.pageData==null||t.articlePageInfo.pageData.filterData==null?null:t.articlePageInfo.pageData.filterData.length),l(2),c("isContentLoading",t.isContentLoading),l(),c("ngIf",!t.pageNotFound&&(t.articlePageInfo==null||t.articlePageInfo.newsAndArticleList==null?null:t.articlePageInfo.newsAndArticleList.length)!==0),l(),c("ngIf",t.pageNotFound||t.recordNotFound))},dependencies:[ae,ee,te,ie,pe,Se,Te,he,se,oe,Ie,F,we,ve,_e,xe,ye,ne,Ce],styles:['.article-listing-wrapper[_ngcontent-%COMP%]{background-color:var(--whitesmoke);min-height:450px}.ltr[_ngcontent-%COMP%]{direction:ltr}.btn-spacer[_ngcontent-%COMP%]{width:2px;min-width:2px;background:var(--border-grey-opacity);height:24px}.filter-carousel[_ngcontent-%COMP%]   .dragscroll[_ngcontent-%COMP%]{height:48px}.filter-carousel.carousel-shadow[_ngcontent-%COMP%]     .drag-scroll-content>div{padding-inline-end:16px}.filter-carousel.carousel-shadow[_ngcontent-%COMP%]     .drag-scroll-content:after{content:"";position:absolute;right:0;top:0;background:var(--gradient-shadow);width:64px;height:100%}.filter-carousel.carousel-shadow[_ngcontent-%COMP%]     .drag-scroll-content::-webkit-scrollbar{width:0;height:0}.news-card-wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));min-height:400px}.news-item[_ngcontent-%COMP%]{border:1px solid var(--border-grey-opacity);background-color:var(--white)}.news-image[_ngcontent-%COMP%]{min-height:180px;height:180px}.card-tag[_ngcontent-%COMP%]{padding:4px 8px;min-width:97px;height:24px;background-color:var(--blue-set-50);color:var(--blue-set-500);border-start-start-radius:4px;text-align:center;font-family:var(--font-medium);font-weight:500}.news-head[_ngcontent-%COMP%]{font-size:18px;line-height:22px;font-weight:600}.news-paragraph[_ngcontent-%COMP%]{font-size:14px;line-height:24px;-webkit-line-clamp:3}.news-paragraph[_ngcontent-%COMP%]:hover, .news-paragraph[_ngcontent-%COMP%]:focus{color:var(--burgendyred)}.news-date[_ngcontent-%COMP%]{color:var(--neutralgray)}.center-dot[_ngcontent-%COMP%]{width:4px;height:4px;background-color:var(--neutralgray)}.pre-text[_ngcontent-%COMP%]{padding:4px 8px;background-color:var(--velvet);color:var(--white);width:max-content;font-family:var(--font-medium);font-weight:500}.video-button[_ngcontent-%COMP%]{width:48px;height:48px;background:var(--white);box-shadow:0 4px 10px #00000026;top:50%;left:50%;transform:translate(-50%,-50%);cursor:pointer;padding-top:2px;padding-left:2px}.card-full[_ngcontent-%COMP%]{grid-column:1 / -1}.card-full[_ngcontent-%COMP%]   .news-item[_ngcontent-%COMP%]{flex-direction:row-reverse}.card-full[_ngcontent-%COMP%]   .news-item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1}.card-full[_ngcontent-%COMP%]   .card-tag[_ngcontent-%COMP%]{display:none}.card-full[_ngcontent-%COMP%]   .news-item[_ngcontent-%COMP%]   .news-image[_ngcontent-%COMP%]{height:100%;flex-grow:2;border-radius:0}.card-full[_ngcontent-%COMP%]   .news-content[_ngcontent-%COMP%]{padding:40px 48px}.card-full[_ngcontent-%COMP%]   .news-head[_ngcontent-%COMP%]{font-size:24px;line-height:28px;font-weight:600}.card-full[_ngcontent-%COMP%]   .news-paragraph[_ngcontent-%COMP%]{font-size:18px;line-height:32px;-webkit-line-clamp:unset}.card-full[_ngcontent-%COMP%]   .flex-row[_ngcontent-%COMP%]{flex-direction:row}@media only screen and (max-width:1024px){.news-card-wrapper[_ngcontent-%COMP%]{gap:24px}}
1@media only screen and (max-width:900px){.filter-tag[_ngcontent-%COMP%]{font-size:14px}.filter-carousel[_ngcontent-%COMP%]   .dragscroll[_ngcontent-%COMP%]{height:40px}.card-full[_ngcontent-%COMP%]   .news-item[_ngcontent-%COMP%]{flex-direction:column-reverse}.card-full[_ngcontent-%COMP%]   .news-content[_ngcontent-%COMP%]{padding:24px}.news-paragraph[_ngcontent-%COMP%]{font-size:16px;line-height:28px}.sort-wrapper[_ngcontent-%COMP%]{align-items:flex-start;gap:20px}}@media only screen and (min-width:901px){.sort-wrapper[_ngcontent-%COMP%]   .sort-title[_ngcontent-%COMP%]{flex:2}.sort-wrapper[_ngcontent-%COMP%]   .filter-alpha[_ngcontent-%COMP%]{min-width:128px}}']})}}return r})();export{Ct as ArticleLandingComponent};

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.