1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6846],{58350:function(e,l,t){Object.defineProperty(l,"__esModule",{value:!0});var a=t(85893),s=t(94722),r=t(14327),n=t(74582);l.Chip=({icon:e,active:l=!1,activeButtonClass:t="text-global-white bg-global-black",buttonClass:i="text-global-black bg-neutral-100",iconActiveClass:o="fill-global-white",iconClass:c="fill-global-black",customClasses:d="",testIdPrefix:m,...u})=>a.jsx(s.ButtonWithIcon,{labelClasses:"cx-button-text",className:r.cn("w-fit group flex items-center gap-x-4 rounded-[30px] py-[10px] px-16 cx-focus-outline disabled:text-neutral-600 desktop:enabled:hover:bg-neutral-500",l?t:i,d),...e&&{customIconRenderer:()=>a.jsx(e,{className:r.cn(l?o:c,"group-disabled:fill-neutral-600"),"aria-hidden":!0,"data-testid":n.getTestId("chip-icon",m)})},"data-testid":n.getTestId("chip-container",m),"data-is-active":l,...u})},21391:function(e,l,t){Object.defineProperty(l,"__esModule",{value:!0});var a=t(85893);let s={dark:"border-t-global-black",light:"border-t-neutral-300"},r={thin:"border-t-[1px]",thick:"border-t-2"};l.Divider=({color:e="light",size:l="thin",customClasses:t,dataTestId:n="",...i})=>a.jsx("hr",{className:["w-full",s[e],r[l],t].join(" "),...i,"data-testid":n?`${n}-divider`:"divider"}
1),l.deviderColorsClasses=s,l.deviderSizesClasses=r},80282:function(e,l,t){Object.defineProperty(l,"__esModule",{value:!0});var a=t(85893),s=t(67294),r=t(7285),n=t(68866),i=t(57031),o=t(14327);l.PostCard=({url:e,signedURLs:l,imageId:t,imageAlt:c,title:d,description:m,publishDate:u,alignment:p="card",cardType:x="featured-article",fallbackPath:h="/images/image-placeholder.svg",children:g,ariaLabel:b})=>{let[f,v]=s.useState(!1),w="row"===p,j="card"===p,_="featured-article"===x,C=!t||f?`url(${h}) no-repeat center, ${i.twTheme.colors.neutral[400]}`:i.twTheme.colors.global.white;return a.jsx(r.CustomLink,{href:e,className:o.cn("block group h-full focus-visible:outline-none relative after:absolute after:inset-0 after:bg-transparent after:border-4 after:border-focus after:content-none focus-visible:after:content-['']",{"inline-block":j&&_}),"aria-label":b,children:a.jsxs("div",{className:o.cn({"flex flex-row-reverse justify-between w-full gap-16":w,"w-[224px]":j&&_,"w-full":j&&!_}),children:[a.jsx("div",{className:o.cn("relative",{"h-[192px] w-full max-w-[384px]":w,"h-[144px] mb-24":j}),style:{background:C},children:t&&a.jsx(n.Image,{src:encodeURI(t),signedURLs:l,alt:c,objectFit:"cover",objectPosition:"center",layout:"fill",onImageError:()=>v(!0),"data-testid":"post-card-image"})}),a.jsxs("div",{className:o.cn({"w-[464px]":w}),children:[d&&a.jsx("strong",{className:"cx-headline-500 block text-global-black mb-8 group-hover:underline break-words",children:d}),m&&a.jsx("p",{className:"cx-body-text text-neutral-700 mb-8",children:m}),u&&a.jsx("small",{className:o.cn("text-neutral-600",{"cx-body-text":w,"cx-body-text-xsmall":j}),children:u}),g]})]})})}},37278:function(e,l,t){t.d(l,{y:function(){return c}});var a=t(85893),s=t(94184),r=t.n(s),n=t(68866),i=t(16678),o=t(74582);let c=e=>{let{title:l,subtitle:t,heroCTALinks:s,imagePublicId:c,imageSignedURLs:d,imageAltText:m="",bgColorClass:u="bg-[#000000]",heroContainerStyle:p="",overlayOpacity:x=0,gaComponentId:h="",renderSubtitle:g,renderControls:b,testIdPrefix:f}=e;return(0,a.jsxs)("div",{className:r()("w-full pt-64 lg:pb-[128px]",p),"data-testid":(0,o.getTestId)("hero-container",f),"data-ga-role":"component","data-ga-component-id":h,children:[(0,a.jsxs)("div",{className:"w-full h-full absolute top-0 ".concat(u),children:[(0,a.jsx)("div",{className:r()("absolute w-full h-full z-10",{["opacity-".concat(x," ").concat(u)]:x})}),c&&d&&(0,a.jsx)(n.Image,{src:encodeURI(c),signedURLs:d,alt:m,objectFit:"cover",objectPosition:"center",layout:"fill","data-testid":"hero-image",priority:!0})]}),(0,a.jsx)("div",{className:"cx-container relative z-10",children:(0,a.jsx)("div",{className:"col-span-full sm:max-w-[652px] xl:col-start-2",children:(0,a.jsxs)("div",{className:"text-global-white empty:mb-[64px]",children:[l&&(0,a.jsx)("h1",{className:"cx-headline-200 sm:cx-headline-100 mb-24 last:mb-64 break-words","data-testid":"hero-title",children:l}),g?g({subtitle:t}):t&&(0,a.jsx)("strong",{className:"cx-headline-500 block mb-32 last:mb-64 break-words","data-testid":"hero-subtitle",children:t}),b?b({links:s}):!!s.length&&(0,a.jsx)("div",{className:"flex flex-col lg:flex-row flex-wrap mb-48",children:s.map((e,l)=>(0,a.jsx)(i.LinkButton,{href:e.hero_cta_link.href,label:e.hero_cta_link.title,mode:e.hero_cta_link.mode||(0===l?"emphasis":"secondary"),customClasses:["w-full mb-16",0===l?"lg:w-[304px] lg:mr-16 ":"lg:w-[224px]",e.hero_cta_link.className].join(" "),"data-testid":"hero-cta","aria-label":e.hero_cta_link.ariaLabel||e.hero_cta_link.title,onClick:e.hero_cta_link.onClick},l))})]})})})]})}},25534:function(e,l,t){t.d(l,{s:function(){return h}});var a=t(85893),s=t(67294),r=t(59795),n=t(94949),i=t(37278),o=t(57517),c=t(29832);let d={imageGravity:"",heroContainerStyle:"",overlayOpacity:50,bgColorClass:"bg-global-black",gaComponentId:"personalized_hero_banner"},m=(e,l)=>{let{uniform_criteria:{name:t}}=e;return{id:(l++).toString(),pz:t}},u=e=>(l,t)=>{var a;let{hero_banner:s=[],hero_cta_links:r=[]}=l,{public_id:i,signedURLs:o}=s[0]||{};return{imagePublicId:i,imageSignedURLs:o,imageAltText:(0,n.getCloudinaryImageAlt)(null===(a=s[0])||void 0===a?void 0:a.metadata,e),heroCTALinks:r,...m(l,t)}},p=e=>{let{getContentByKey:l}=(0,o.r)(),t=l("page.0.title",""),s=l("page.0.subtitle","");return(0,a.jsx)(i.y,{...d,title:t,subtitle:s,...e})},x=[],h=()=>{let{getContentByKey:e}=(0,o.r)(),l=(0,c.i)(),t=e("page.0.personalized_hero",x),n=(0,s.useMemo)(()=>u(l),[l]),i=(0,s.useMemo)(()=>t.map(n),[t,n]);return(0,a.jsx)("div",{"data-testid":"personalized-hero-container",children:(0,a.jsx)(r.x$,{name:"Personalized Hero",variations:i,component:p})})}},60220:function(e,l,t){t.d(l,{g:function(){return g},s:function(){return h}});var a=t(85893),s=t(94184),r=t.n(s),n=t(50899),i=t(2261),o=t(67029),c=t(4964),d=t(14327),m=t(57517),u=t(86802),p=t(79554),x=t(39350);let h={promoCards:"0.promo_cards_component",when:"0.when",cost:"0.cost"},g=e=>
1{let{hasSlider:l=!0,sectionClasses:t="bg-neutral-200",headingClasses:s="mx-24 sm:mx-40 xl:mx-0",cardClasses:g="",contentKey:b=""}=e,{getFullResourceUrl:f}=(0,u.K)(),{t:v}=(0,n.$G)(),{getContentByKey:w}=(0,m.r)(),j=w(b,{});if((0,p.xb)(j.group)||j.group.every(e=>{let{go_promo_card:l}=e;return(0,p.xb)(l.length)}))return null;let _=l?{...j}:{...j,group:j.group.slice(0,3)},C=(0,x.M)(_,h,f);return(0,a.jsx)(a.Fragment,{children:l?(0,a.jsx)("section",{className:r()("cards-slider w-full py-56 sm:py-64",t),"data-testid":"promo-cards-with-slider","data-ga-role":"component","data-ga-component-id":"promo_cards_component",children:(0,a.jsxs)("div",{className:"w-full col-span-full",children:[j.component_heading&&(0,a.jsx)("h2",{className:r()("mb-32 cx-headline-300 sm:cx-headline-200 text-global-black",s),"data-testid":"promo-cards-component-heading",children:j.component_heading}),(0,a.jsx)(o.s,{centerSlides:!1,children:C.map((e,l)=>(0,a.jsx)(i.o5,{children:(0,a.jsx)(c.J,{...e,urlLabelText:v("learnMore"),wrapperClasses:r()("w-[272px] sm:w-[304px]",g)})},"".concat(e.title,"-").concat(l)))})]})}):(0,a.jsxs)("section",{className:(0,d.cn)("w-full",t),"data-testid":"promo-cards-without-slider","data-ga-role":"component","data-ga-component-id":"promo_cards_component_promotions_listing",children:[j.component_heading&&(0,a.jsx)("h2",{className:"mb-24 sm:mb-32 cx-headline-300 sm:cx-headline-200 text-global-black","data-testid":"promo-cards-component-heading",children:j.component_heading}),(0,a.jsx)("div",{className:"flex flex-col sm:flex-row gap-y-32 sm:gap-x-16 sm:gap-y-0",children:C.map((e,l)=>(0,a.jsx)("div",{className:"w-full sm:max-w-[304px]",children:(0,a.jsx)(c.J,{...e,urlLabelText:v("learnMore"),wrapperClasses:g})},"".concat(e.title,"-").concat(l)))})]})})}},90527:function(e,l,t){t.d(l,{g:function(){return a.g},s:function(){return a.s}});var a=t(60220)},39350:function(e,l,t){t.d(l,{M:function(){return r}});var a=t(28531),s=t(24515);function r(e,l,t){return e.group.filter(e=>e.go_promo_card.length).map(e=>{var r,n,i,o,c,d,m,u,p;let x=(0,s.NA)(e.go_promo_card,l.when),h=(0,s.NA)(e.go_promo_card,l.cost);return{url:(i={fullUrl:t(e.go_promo_card[0].url,null===(n=e.go_promo_card[0].directory)||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:r.uid),when:x,cost:h}).fullUrl,image:null===(d=e.go_promo_card[0])||void 0===d?void 0:null===(c=d.base)||void 0===c?void 0:null===(o=c.main_image)||void 0===o?void 0:o[0],title:(null===(u=e.go_promo_card[0])||void 0===u?void 0:null===(m=u.base)||void 0===m?void 0:m.page_title)||"",description:(null===(p=e.go_promo_card[0].base)||void 0===p?void 0:p.promotional_description)||"",when:i.when,cost:i.cost,isWhenShown:!!(0,a.renderRichTextToHtmlString)({content:{when:i.when},path:"when"}),isCostShown:!!(0,a.renderRichTextToHtmlString)({content:{cost:i.cost},path:"cost"})}})}},6846:function(e,l,t){t.r(l),t.d(l,{PartnersPromotionsListingPage:function(){return R}});var a=t(85893),s=t(11163),r=t(50899),n=t(34153),i=t(58350),o=t(21391),c=t(47153),d=t(56049),m=t(25534),u=t(90527),p=t(67294),x=t(71017),h=t(78351),g=t(24515),b=t(29832);let f=()=>{let e=(0,b.i)(),[l,t]=(0,p.useState)({entries:[],count:0}),[a,s]=(0,p.useState)([]),[r,n]=(0,p.useState)(!1),[i,o]=(0,p.useState)(0);(0,p.useEffect)(()=>{let l={lang:(0,g.XC)(e),limit:10,skip:i,...(null==a?void 0:a.length)&&{matchKey:x.Cn.PromoCategory,matchValue:a.join(",")}};(async()=>{n(!0);try{let{response:e,status:a}=await g.lP.get("/api/v1/promotions",l);if(a>=400)throw Error("Something went wrong");t(l=>({...l,count:e.count,entries:[...i>0?l.entries:[],...e.entries]}))}catch(e){h.Z.error(e,"Error retrieving promotions")}finally{n(!1)}})()},[a,e,i]);let c=e=>a.includes(e);return(0,p.useEffect)(()=>{o(0)},[a]),{toggleFilter:e=>{c(e)?s(a.filter(l=>l!==e)):s([...a,e])},clearFilters:()=>{a.length>0&&s([])},isFilterActive:c,isLoading:r,isViewAllActive:0==a.length,hasLoadMore:l.count>0&&l.entries.length<l.count,loadMore:()=>{o(i+10)},data:l}};var v=t(79554),w=t(80282),j=t(67825),_=t(3108),C=t(66539),N=t(71580),y=t(94059),k=t(94949),T=t(28531),L=t(86802);let P=e=>{var l,t;let{details:s}=e,{base:r,url:n,directory:i,when:o=[],cost:c=[]}=s,d=null==r?void 0:null===(l=r.main_image)||void 0===l?void 0:l[0],m=(0,b.i)(),{isMobile:u}
1=(0,N.useBreakpoint)(),{isMounted:p}=(0,y.useMounted)(),{getFullResourceUrl:x}=(0,L.K)(),h=(0,T.renderRichTextToHtmlString)({content:{when:o},path:"when"}),g=(0,T.renderRichTextToHtmlString)({content:{cost:c},path:"cost"}),f={wrapperClasses:"line-clamp-3 sm:line-clamp-2 w-full",bodyClasses:{bodyColor:"text-neutral-700",paragraphClasses:"cx-body-text-xsmall"}};return(0,a.jsx)(w.PostCard,{url:x(n,null==i?void 0:null===(t=i[0])||void 0===t?void 0:t.uid),signedURLs:(null==d?void 0:d.signedURLs)||{},imageId:null==d?void 0:d.public_id,title:null==r?void 0:r.page_title,description:null==r?void 0:r.promotional_description,alignment:u&&p?"card":"row",cardType:"blog-article",imageAlt:(0,k.getCloudinaryImageAlt)(null==d?void 0:d.metadata,m),children:(h||g)&&(0,a.jsxs)("div",{className:"flex flex-col gap-y-8 mt-24 sm:mt-16",children:[h&&(0,a.jsxs)("div",{className:"flex gap-x-8 items-center",children:[(0,a.jsx)(C.Today,{className:"shrink-0"}),(0,a.jsx)(j.RichText,{content:{when:o},path:"when",styleClasses:f.bodyClasses,wrapperClasses:f.wrapperClasses})]}),g&&(0,a.jsxs)("div",{className:"flex gap-x-8 items-center",children:[(0,a.jsx)(_.Coin,{className:"shrink-0"}),(0,a.jsx)(j.RichText,{content:{cost:c},path:"cost",styleClasses:f.bodyClasses,wrapperClasses:f.wrapperClasses})]})]})})},R=e=>{let{page:l,pageSpecificData:t}=e,{t:p}=(0,r.$G)(),{locale:x=d.NextLocales.EN}=(0,s.useRouter)(),h=(0,v.NA)(l,"0.title",""),g=(0,v.NA)(t,"promoCategories",[]),{data:b,toggleFilter:w,isFilterActive:j,isLoading:_,isViewAllActive:C,hasLoadMore:N,loadMore:y,clearFilters:k}=f(),T=g.reduce((e,l)=>{let{count:t}=l;return t+e},0);return(0,a.jsxs)("div",{className:"bg-global-white lg:bg-neutral-200",children:[(0,a.jsx)("div",{className:"w-full relative",children:(0,a.jsx)(m.s,{})}),(0,a.jsx)("div",{className:"relative z-10 lg:-mt-[128px] bg-global-white lg:bg-transparent",children:(0,a.jsx)("div",{className:"cx-container lg:bg-global-white xl:bg-transparent",children:(0,a.jsxs)("div",{className:"w-full col-span-full lg:col-start-2 lg:col-span-10 xl:col-start-2 xl:col-span-14 bg-global-white cx-inner-container pt-64 pb-56 lg:pb-64",children:[(0,a.jsx)("div",{className:"col-span-full xl:col-start-2 xl:col-span-12",children:(0,a.jsx)(u.g,{contentKey:"page.0.promo_cards_component",hasSlider:!1,cardClasses:"border-neutral-300 border",sectionClasses:"pb-56 mb-56 sm:pb-64 sm:mb-64 border-neutral-300 border-b"})}),(0,a.jsx)("div",{className:"col-span-full xl:col-start-2 xl:col-span-12",children:T&&(0,a.jsxs)("article",{"data-testid":"promo-category",children:[(0,a.jsx)("h2",{className:"cx-headline-200 text-global-black",children:h}),(0,a.jsxs)("div",{className:"my-24 sm:my-32 inline-flex gap-x-8 gap-y-16 sm:gap-16 flex-row flex-wrap",children:[(0,a.jsx)(i.Chip,{label:p("viewAll"),active:C,onClick:k,activeButtonClass:"text-global-white bg-go-primary-base","aria-label":p("viewAll")}),(()=>{let e=x===d.NextLocales.EN?0:1;return g.map(l=>{let{key:t,value:s,count:r}=l,n=(t.includes("|")?t.split("|")[e]:t).trim();return(0,a.jsx)(i.Chip,{label:n,active:j(s),onClick:()=>w(s),activeButtonClass:"text-global-white bg-go-primary-base",disabled:!r,"aria-label":n},t)})})()]}),(0,a.jsx)("ul",{className:"flex flex-col items-center sm:items-stretch mt-32 sm:mt-0",children:b.entries.map((e,l)=>(0,a.jsxs)("li",{className:"w-full pt-24 first:pt-0",children:[(0,a.jsx)(P,{details:e}),l!==b.entries.length-1&&(0,a.jsx)(o.Divider,{customClasses:"mt-24",color:"light",size:"thin"})]},l))}),(0,a.jsx)("div",{className:"sm:flex flex-col items-center mt-32 empty:hidden",children:N&&(0,a.jsx)(n.Button,{label:_?"":p("partnersPromotionsListing.loadMore"),mode:"primary",size:"large",customClasses:"w-full sm:w-[304px]",childrenClasses:"flex flex-col items-center",onClick:y,"aria-label":p("partnersPromotionsListing.loadMore"),children:_&&(0,a.jsx)(c.Loader,{className:"animate-spin fill-global-white"})})})]})})]})})})]})}},86802:function(e,l,t){t.d(l,{K:function(){return r}});var a=t(67294),s=t(93551);let r=()=>{let{content:{directories:e}}=(0,s.Ff)();return{getFullResourceUrl:(0,a.useCallback)((l,t)=>{var a;let s=t&&(null==e?void 0:null===(a=e[t])||void 0===a?void 0:a.fullBaseURL)||"";return"".concat(s).concat(l)},[e])}}},64420:function(e,l,t){t.d(l,{A:function(){return s}});var a=t(82493);let s=e=>({isUnionBusTerminal:e===a.zS,isUnionGo:e===a.a})},24515:function(e,l,t){t.d(l,{NA:function(){return s.NA},XC:function(){return r.XC},lP:function(){return a.l}});var a=t(34160);t(64420),t(16402);var s=t(79554),r=t(18619);t(13510)}}]);
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.