1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[830,990,1217,3211,4832,5592,8449,8609],{18362:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>ed});var n=i(6506),r=i(33506),o=i(1836),a=i.n(o),l=i(84124),d=i(10128),s=i(34935),p=i(33461),c=i(26581),u=i(62927),g=i(86538),h=i(77501),f=i(38906);let m=u.default.div.withConfig({componentId:"sc-7224573a-0"})(["display:flex;flex-direction:column;padding:20px;padding-top:0;border-radius:8px;background-color:",";position:relative;font-weight:350;font-style:normal;font-size:12px;line-height:16px;height:100%;border:3px solid transparent;"," "," ",""],(0,h.rQ)("white"),({variantSchemaStyle:e})=>e?(0,u.css)(["width:343px;"]):(0,u.css)(["width:288px;"]),({variantSchemaStyle:e,planHoverColor:t})=>""!==t&&t?!e&&(0,u.css)(["&:hover,&:focus-within{outline:0;background:linear-gradient(45deg,"," 0%,"," 100%) padding-box,"," border-box;}"],(0,h.rQ)("white"),(0,h.rQ)("white"),(0,h.rQ)(t||"borderActionPrimary1"))||(0,u.css)([""]):!e&&(0,u.css)(["&:hover,&:focus-within{outline:0;background:linear-gradient(45deg,"," 0%,"," 100%) padding-box,"," border-box;}"],(0,h.rQ)("white"),(0,h.rQ)("white"),(0,h.rQ)("borderActionPrimary1"))||(0,u.css)([""]),f.Ay.medium` 2 padding: 40px; 3 font-size: 16px; 4 line-height: 24px; 5 border-radius: 16px; 6 width: 400px; 7 `),x=u.default.div.withConfig({componentId:"sc-7224573a-1"})(["font-size:10px;line-height:12px;font-weight:700;padding:4px 12px;border-radius:50px;text-transform:uppercase;position:absolute;top:-8px;color:",";background:",";",""],(0,h.rQ)("contentOnHero"),({promoStickerColor:e})=>(0,h.rQ)(e||"backgroundHero2"),f.Ay.medium` 8 font-size: 14px; 9 line-height: 18px; 10 `),w=u.default.div.withConfig({componentId:"sc-7224573a-2"})(["margin-bottom:auto;"]),b=u.default.h3.withConfig({componentId:"sc-7224573a-3"})(["font-size:24px;line-height:28px;font-weight:700;"," ",""],f.Ay.small` 11 font-size: 28px; 12 line-height: 32px; 13 `,f.Ay.medium` 14 font-size: 32px; 15 line-height: 40px; 16 margin-bottom:16px; 17 margin-top:0; 18 `),y=u.default.p.withConfig({componentId:"sc-7224573a-4"})(["word-break:break-word;",""],f.Ay.medium` 19 margin-top:0; 20 `),v=u.default.ul.withConfig({componentId:"sc-7224573a-5"})(["list-style:none;padding-left:0;"]),C=u.default.div.withConfig({componentId:"sc-7224573a-6"})(["display:flex;align-items:flex-start;word-break:break-word;&:not(:last-child){padding-bottom:8px;}"]),j=u.default.li.withConfig({componentId:"sc-7224573a-7"})(["display:flex;align-items:flex-start;word-break:break-word;&:not(:last-child){padding-bottom:8px;}"]),A=u.default.div.withConfig({componentId:"sc-7224573a-8"})(["font-weight:700;font-size:24px;line-height:29px;padding-top:16px;",""],f.Ay.medium` 21 font-size: 32px; 22 line-height: 36px; 23 padding-top: 24px; 24 `),T=u.default.section.withConfig({componentId:"sc-7224573a-9"})(["margin-bottom:8px;",""],f.Ay.medium` 25 margin-bottom: 16px; 26 `),S=u.default.span.withConfig({componentId:"sc-7224573a-10"})(["color:",";text-decoration:line-through;font-weight:350;font-size:12px;line-height:14px;padding-right:4px;",""],(0,h.rQ)("shuttleGrey"),f.Ay.medium` 27 font-size: 20px; 28 line-height: 24px; 29 `),I=u.default.span.withConfig({componentId:"sc-7224573a-11"})(["font-size:12px;line-height:14px;vertical-align:top;",""],f.Ay.medium` 30 font-size: 16px; 31 line-height: 20px; 32 `),P=u.default.span.withConfig({componentId:"sc-7224573a-12"})(["font-size:12px;line-height:14px;"]),k=u.default.div.withConfig({componentId:"sc-7224573a-13"})(["width:16px;height:16px;margin-right:10px;overflow:visible;",""],f.Ay.medium` 33 width: 24px; 34 height: 24px; 35 margin-right: 12px; 36 `),$=(0,u.default)(g.A).withConfig({componentId:"sc-7224573a-14"})(["",""],f.Ay.medium` 37 width: 24px; 38 height: 24px; 39 `),O=u.default.div.withConfig({componentId:"sc-7224573a-15"})(["align-self:center;margin-top:10px;display:grid;grid-template-columns:100%;width:309px;",";",";"],f.Ay.small` 40 width: 296px; 41 margin-left: -5px; 42`,f.Ay.medium` 43 width: 336px; 44 margin-left: -16px; 45`),z=u.default.div.withConfig({componentId:"sc-7224573a-16"})(["",""],({planHoverColor:e,theme:t})=>{let i=t?.colors?.light?.background?.body?.branded?.primary||(0,h.rQ)("lightThemeBackgroun
45dPrimary");return(0,u.css)(["background:",";margin:8px;border-radius:16px;border:3px solid transparent;&:hover,&:focus-within{outline:0;background:linear-gradient(45deg,"," 0%,"," 100%) padding-box,"," border-box;}"],i,i,i,(0,h.rQ)(e||"borderActionPrimary1"))}),_=u.default.div.withConfig({componentId:"sc-7224573a-17"})(["display:flex;flex-direction:row;border-radius:6px;width:100%;justify-content:space-between;max-height:108px;padding:16px;background-color:",";",";"],(0,h.rQ)("lightBackgroundPrimary"),f.Ay.small` 46 height: 108px; 47 border-radius: 14px; 48 `),L=u.default.div.withConfig({componentId:"sc-7224573a-18"})(["display:flex;flex-direction:column;width:142px;"]),E=u.default.div.withConfig({componentId:"sc-7224573a-19"})(["display:flex;flex-direction:column;text-align:center;"]),Q=u.default.p.withConfig({componentId:"sc-7224573a-20"})(["text-transform:uppercase;color:",";font-size:14px;font-weight:700;margin:0 0 8px;",";",";"],(0,h.rQ)("primaryB"),f.Ay.small` 49 letter-spacing: 1px; 50 `,f.Ay.medium` 51 font-size: 15px; 52 justify-content: flex-start; 53 `),R=u.default.p.withConfig({componentId:"sc-7224573a-21"})(["font-size:12px;color:",";font-weight:350;margin:0;",";"],(0,h.rQ)("subtitleSecondary"),f.Ay.medium` 54 font-size: 14px; 55 line-height: 16px; 56 `),M=u.default.p.withConfig({componentId:"sc-7224573a-22"})(["font-weight:350;font-size:12px;margin-bottom:2px;margin-top:0;"," text-decoration:line-through;",";"],(0,u.css)(["color:",";"],(0,h.rQ)("shuttleGrey")),f.Ay.medium` 57 margin-bottom: -4px; 58 margin-top: -5px; 59 `),N=u.default.p.withConfig({componentId:"sc-7224573a-23"})(["color:",";font-size:16px;font-weight:700;align-items:flex-end;margin:",";",";"],(0,h.rQ)("primaryB"),({displayPreviousPrice:e})=>e?"0px 0px 5px 0px":"0px 0px 8px 0px",f.Ay.medium` 60 margin: ${({displayPreviousPrice:e})=>e?"2px 0px 3px 0px":"0px 0px 5px 0px"}; 61 `);u.default.a.withConfig({componentId:"sc-7224573a-24"})([""]);let D=({title:e,planData:t,planHoverColor:i})=>{let{currency:r="",previousPrice:o="",priceSubText:a="",price:d="",ctaHref:s="/",planName:c="",ctaButtonText:u="",ctaButtonDescription:g="",displayPreviousPrice:h=!1}=t,f=`The price was ${r}${o} and is now `;return(0,n.jsx)(z,{"data-testid":"variant-plan-picker",planHoverColor:i,children:(0,n.jsxs)(_,{children:[(0,n.jsxs)(L,{children:[(0,n.jsx)(Q,{children:e}),(0,n.jsx)(R,{children:g})]}),(0,n.jsxs)(E,{children:[h&&(0,n.jsxs)(M,{"aria-label":f,children:[r,o,a]}),(0,n.jsx)(N,{displayPreviousPrice:h,children:`${r}${d}${a}`}),(0,n.jsx)(l.A,{mode:"light",children:(0,n.jsx)(p.default,{fullWidth:!0,text:u,href:s,mode:"primary","data-tracking-context":c,planPicker2Variant:!0})})]})]})})},F={currency:"",previousPrice:"",price:"",priceSubText:"",displayPreviousPrice:!1,planName:"",summary:"",features:[],promoStickerCopy:"",ctaButtonTheme:"primary",ctaButtonText:"",ctaHref:"",planHoverColor:"",priceAria:"",type:"premium",ctaButtonDescription:""},B=({monthlyPlanData:e,promoStickerColor:t,schemaStyle:i,monthlyToggleText:o,annualToggleText:a,annualPlanData:d})=>{let{currency:s="",previousPrice:u="",price:g="",priceSubText:h="",displayPreviousPrice:f=!1,planName:z="",summary:_="",features:L=[],promoStickerCopy:E="",ctaButtonTheme:Q="primary",ctaButtonText:R="",maintainReferrerParams:M=!1,ctaHref:N="",planHoverColor:B="",priceAria:H=""}=e||{},q=H||(f?`The price was ${s}${u} and is now ${s}${g}${h}`:""),[V,W]=(0,r.useState)(N);return(0,r.useEffect)(()=>{M?W((0,c.N)(N)):W(N)},[M,N]),(0,n.jsxs)(m,{planHoverColor:B,variantSchemaStyle:"variant"===i,"data-testid":"plan-picker-card-container",children:[E&&(0,n.jsx)(x,{promoStickerColor:t,"data-testid":"promo-sticker",children:E}),(0,n.jsxs)(w,{children:[(0,n.jsx)(b,{children:z}),(0,n.jsx)(y,{children:_}),(0,n.jsx)(v,{"data-testid":"plan-features",role:"list",children:L?.map(({feature:e,icon:t},i)=>{let r=t||"checkmark-black";return(0,n.jsxs)(C,{children:[(0,n.jsx)(k,{"data-testid":`icon-wrapper-${r}`,children:(0,n.jsx)($,{iconName:r,size:16})}),(0,n.jsx)(j,{role:"listitem",children:e})]},`${i}-${e}`)})})]}),"default"===i?(0,n.jsxs)(A,{children:[(0,n.jsxs)(T,{"aria-label":f?q:`${s}${g}${h}`,children:[f&&(0,n.jsx)(S,{children:(0,n.jsxs)("del",{"aria-hidden":"true",children:[s,u]})}
61),(0,n.jsx)(I,{"aria-hidden":!0,children:s}),(0,n.jsx)("span",{"aria-hidden":!0,children:g}),(0,n.jsx)(P,{"aria-hidden":!0,children:h})]}),(0,n.jsx)(l.A,{mode:"light",children:(0,n.jsx)(p.default,{fullWidth:!0,text:R,href:V,mode:Q,"data-tracking-context":z})})]}):(0,n.jsxs)(O,{children:[(0,n.jsx)(D,{title:o,planData:e||F,planHoverColor:B}),(0,n.jsx)(D,{title:a,planData:d||F,planHoverColor:B})]})]})};var H=i(27773);let q=({isChecked:e,onChange:t,annualToggleText:i,monthlyToggleText:r,ariaToggleText:o,toggleTextColor:a,toggleColor:l})=>(0,n.jsx)(H.A,{toggleDefaultValue:!1,toggleColor:l,textColor:a||"primaryB",toggleOnText:i||"Annual Plans (Save More)",toggleOffText:r||"Monthly",onChange:t,isChecked:e,ariaToggleText:o}),V=u.default.div.withConfig({componentId:"sc-850d67c8-0"})(["font-style:normal;font-weight:350;font-size:8px;line-height:12px;width:",";color:",";"," ",""],({variant:e})=>e?"340px":"288px",(0,h.rQ)("shuttleGrey"),f.Ay.small` 62 ${({numberOfPlans:e,variant:t})=>t?e<=2?"width: 710px;":"width: 340px;":e>2?"width: 288px;":"width: 600px;"}; 63 `,f.Ay.medium` 64 font-size: 12px; 65 line-height: 16px; 66 padding: 0; 67 ${({variant:e})=>e?"width: 820px":"width: revert"}; 68 `),W=({terms:e,variant:t,numberOfPlans:i})=>(0,n.jsx)(V,{variant:t,numberOfPlans:i,children:(0,n.jsx)(d.default,{textEditorState:e})});var G=i(12848);let U=u.default.section.withConfig({componentId:"sc-4b66cb98-0"})(["display:flex;flex-direction:column;align-items:center;background-color:transparent;margin:0 auto;&&&{width:100%;}"]),J=(0,u.default)(V).withConfig({componentId:"sc-4b66cb98-1"})([""," ",""],({variant:e})=>e?(0,u.css)(["width:340px;"]):(0,u.css)(["width:288px;"]),f.Ay.medium` 69 width: 400px; 70 `),X=u.default.div.withConfig({componentId:"sc-4b66cb98-2"})([""," "," ",""],({variant:e})=>e?"width: 340px":"width: 288px",f.Ay.small` 71 ${({numberOfPlans:e,variant:t})=>t?e<=2?"width: 710px;":"width: 340px;":e<=2?"width: 600px;":"width: 288px;"}; 72 `,f.Ay.medium` 73 ${({numberOfPlans:e,variant:t})=>t?e<=2?"":"width: 340px;":e<=2?"width: 822px;":"width: 1248px;"}; 74 `);u.default.div.withConfig({componentId:"sc-4b66cb98-3"})(["display:none;",""],f.Ay.small` 75 gap: 16px; 76 display: flex; 77 justify-content: space-around; 78 margin-bottom: 0; 79 padding-inline-start: 0; 80 flex-direction: row; 81 `);let K=u.default.div.withConfig({componentId:"sc-4b66cb98-4"})(["height:100%;"]),Y=u.default.div.withConfig({componentId:"sc-4b66cb98-5"})(["display:flex;flex-direction:column;align-items:center;padding:24px 0;"," ",""],f.Ay.small` 82 &&& { 83 width: 600px; 84 } 85 `,f.Ay.medium` 86 &&& { 87 width: 832px; 88 } 89 `),Z=u.default.div.withConfig({componentId:"sc-4b66cb98-6"})(["display:flex;justify-content:center;width:100vw;","{min-height:auto;}"," ",""],G.Tk,f.Ay.small` 90 width: 600px; 91 ${({numberOfPlans:e})=>e<=2?`${G.rA} { justify-content: flex-end; } ${G.Tk} { width: 100%; }`:`${G.rA} { justify-content: center; }`}; 92 `,f.Ay.medium` 93 width: 832px; 94 justify-content: flex-end; 95 padding-right: 6px; 96 ${({numberOfPlans:e})=>e<=2?`${G.rA} { justify-content: flex-end; } ${G.Tk} { width: 100%; }`:`${G.rA} { justify-content: flex-end; } ${G.Tk} { width: 100%; }`}; 97 `),ee=u.default.ul.withConfig({componentId:"sc-4b66cb98-7"})(["margin-top:35px;margin-bottom:0;padding-inline-start:0;display:grid;place-items:center;width:100%;grid-template-columns:none;"," ",""],f.Ay.small` 98 grid-template-columns: repeat(auto-fit, minmax(300px, 3fr)); 99 width: 912px; 100 ${({numberOfPlans:e})=>e<=2?" margin-top: 16px;":""}; 101 `,f.Ay.medium` 102 margin-top: 24px; 103 ${({numberOfPlans:e})=>e<=2?"width: 832px;":"width: 1255px;"}; 104 105 `),et=u.default.li.withConfig({componentId:"sc-4b66cb98-8"})(["display:grid;grid-row:span 2;grid-template-rows:subgrid;margin-top:16px;"]),ei=u.default.div.withConfig({componentId:"sc-61b9bc3d-0"})(["display:flex;justify-content:space-around;flex-direction:column;align-items:center;background-color:",";border-radius:8px;padding:16px;width:288px;margin-top:16px;"," ",""],(0,h.rQ)("white"),f.Ay.small` 106 ${({numberOfPlans:e})=>e<=2?"width: 600px; flex-direction: row; justify-content: space-between; margin-top: 16px;":"width: 288px; flex-direction: column; justify-content: space-around;"}; 107 justify-content: space-between; 108 padding: 24px; 109 `,f.Ay.medium` 110 ${({numberOfPlans:e})=>e<=2?"width: 824px":"width: 1248px;"}; 111 justify-content: space-between; 112 flex-direction: row; 113 border-radius: 16px; 114 padding: 32px 40px; 115 height: 117px; 116 `),en=u.default.h4.withConfig({componentId:"sc-61b9bc3d-1"})(["font-size:18px;line-height:18px;margin:0;",""],f.Ay.medium` 117 font-size: 24px; 118 line-height: 28px; 119 `),er=u.default.div.withConfig({componentId:"sc-61b9bc3d-2"})(["display:flex;flex-direction:column;text-align:center;gap:6px;margin-bottom:8px;",";",";"],f.Ay.small` 120 margin-bottom: 0; 121 ${({numberOfPlans:e})=>e<=2?"text-align: left;":"margin-bottom: 8px;"}; 122 `,f.Ay.medium` 123 text-align: left; 124 gap: 8px; 125 `),eo=u.default.p.withConfig({componentId:"sc-61b9bc3d-3"})(["font-weight:350;font-style:normal;font-size:12px;line-height:16px;margin-top:0;margin-bottom:0;"," ",""],f.Ay.small` 126 ${({numberOfPlans:e})=>e<=2?"margin-bottom: 0;":"margin-bottom: 0"}; 127 `,f.Ay.medium` 128 font-size: 16px; 129 line-height: 20px; 130 `),ea=u.default.div.withConfig({componentId:"sc-61b9bc3d-4"})(["width:100%;"," ",""],f.Ay.small` 131 ${({numberOfPlans:e})=>e<=2?"width: revert;":"width: 100%;"}; 132 `,f.Ay.medium` 133 ${({numberOfPlans:e})=>e<=2?"width: revert;":"width: 320px;"}; 134 `),el=e=>{let{freePlanTitle:t,freePlanDescription:i,freeCtaButtonText:r,freeCtaHref:o,freeCtaButtonTheme:a,numberOfPlans:l}=e;return(0,n.jsxs)(ei,{numberOfPlans:l,"data-testid":"free-card",children:[(0,n.jsxs)(er,{numberOfPlans:l,children:[(0,n.jsx)(en,{children:t}),(0,n.jsx)(eo,{children:i})]}),(0,n.jsx)(ea,{numberOfPlans:l,children:(0,n.jsx)(p.default,{text:r,href:o,mode:a,"data-tracking-context":t,fullWidth:!0})})]})},ed=e=>
134{let{defaultToAnnual:t,hideToggle:i,monthlyToggleText:o,annualToggleText:p,ariaToggleText:c,toggleTextColor:u,toggleColor:g,termsConditionsEditorState:h,ariaLabel:f,schemaStyle:m="default",displayFreePlan:x,freePlanTitle:w,freePlanDescription:b,freeCtaButtonTheme:y,freeCtaHref:v,freeCtaButtonText:C}=e,[j,A]=(0,r.useState)(t),T=a()(e,["plans2-schema-a","plans2-schema-a-item-0"]),S=a()(e,["plans2-schema-b","plans2-schema-b-item-0"]),I=(0,r.useRef)([]),{replaceLabelDictionaryItem:P}=(0,s.y)();if(!T||0===T.length)return null;let k="default"===m,$=(e,t)=>(0,n.jsx)(r.Fragment,{children:(0,n.jsx)(ee,{numberOfPlans:e.length,children:e.map((e,i)=>{var a;let l,s,c;return a=t?.[i],l=(e=>{if(e){let t=[];return e?.features&&e?.features.forEach(e=>{t.push({...e,feature:P(e.feature)})}),{...e,planName:P(e.planName),price:e.price?P(e.price):"",previousPrice:e.previousPrice?P(e.previousPrice):"",priceSubText:e.priceSubText?P(e.priceSubText):"",currency:e.currency?P(e.currency):"",promoStickerCopy:e.promoStickerCopy?P(e.promoStickerCopy):"",priceAria:e.priceAria?P(e.priceAria):"",ctaButtonText:P(e.ctaButtonText),features:t,summary:P(e.summary)}}return e})(e),(0,n.jsxs)(et,{children:[(0,n.jsx)(K,{ref:e=>{e&&I.current.push(e)},children:l.planName?(0,n.jsx)(B,{"data-testid":`${i}-plan`,monthlyPlanData:l,promoStickerColor:l.promoStickerColor||"",schemaStyle:m,monthlyToggleText:P(o),annualToggleText:P(p),annualPlanData:a},`${i}-${l.planName}`):null}),k&&(s=l?.planTermsConditionsEditorState,c=s?.rawState?.blocks?.[0]?.text,(0,n.jsx)(r.Fragment,{children:(0,n.jsx)(J,{variant:!k,numberOfPlans:j?S.length:T.length,children:c&&(0,n.jsx)(d.default,{textEditorState:s})})}))]},`${i}-${l.planName}`)})})});return(0,n.jsx)(U,{"aria-label":f,"data-testid":"plan-picker",children:(0,n.jsxs)(Y,{children:[!i&&k&&(0,n.jsx)(Z,{numberOfPlans:j?S.length:T.length,children:(0,n.jsx)(q,{isChecked:j,onChange:()=>{A(!j)},annualToggleText:P(p),monthlyToggleText:P(o),toggleTextColor:u,toggleColor:g,ariaToggleText:P(c)})}),j?$(S,T):$(T,S),"variant"===m?null:x&&(0,n.jsx)(l.A,{mode:"light",children:(0,n.jsx)(el,{freePlanTitle:P(w),freePlanDescription:P(b),freeCtaButtonText:P(C),freeCtaHref:v,freeCtaButtonTheme:y,numberOfPlans:j?S.length:T.length})}),(0,n.jsx)(X,{variant:!k,numberOfPlans:j?S.length:T.length,children:(0,n.jsx)(W,{variant:!k,terms:h,numberOfPlans:j?S.length:T.length})})]})})}},31217:(e,t)=>{var i;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var i in e)n.call(e,i)&&e[i]&&(t=o(t,i));return t}(i)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(i=(function(){return r}).apply(t,[]))||(e.exports=i)}()},33158:(e,t,i)=>{"use strict";var n=i(26024),r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.addRequest=t.DEFAULT_REQUEST_OPTIONS=t.fetchService=void 0;let o=r(i(60771)),a=r(i(72153)),l={timeout:4e3,retries:0,retryTimeout:1e3};t.DEFAULT_REQUEST_OPTIONS=l;let d=(e="_missing-instance_")=>`${e}`,s=({url:e="",params:t={},headers:i={}}={})=>JSON.stringify({url:e,params:t,headers:i}),p=()=>void 0!==n,c={},u=(e,t,i)=>{let n=d(e),r=s(t),o=c[n]?c[n]:{};o[r]=i,c[n]=o};t.addRequest=u;let g=(e,t)=>{let i=d(e),n=s(t),r=c[i]?c[i]:{};delete r[n]},h=(e,t)=>a.default.interceptors[e].use(e=>(t(e),e),e=>Promise.reject(e)),f=(e,t,i=!1)=>new Promise((n,r)=>{(0,a.default)(e).then(n,o=>{let a=i?!o.response||o.response.status>=500&&o.response.status<=599:"ECONNABORTED"!==o.code&&(!o.response||o.response.status>=500&&o.response.status<=599);if(t<1||!a)return r(o);setTimeout(()=>{f(e,t-1,i).then(n,r)},e.retryTimeout||1e3)})}),m={fetch(e,t={}){let i,n={...l,...t};if(!n.url)throw Error("No url specified");let r=(i=s(n),(c[d(e)]||{})[i]);if(r)return r;let o=f(n,n.retries||0,this.isServer());return u(e,n,o),o.then(()=>{g(e,n)},t=>(this.logger.componentLog("error",t.message,{error:t,component:"@nowtv/iceberg-shared-core/fetchService.ts",requestOptions:(({response:{status:e}={},config:{url:t="none",headers:i={},method:n=""}={}})=>({href:t,method:n.toUpperCase(),statusCode:e,cacheControl:i["cache-control"]?.split("=")[1]}))(t),options:n}),g(e,n))),o},getRequests:e=>Object.values(c[d(e)]||{}),clearRequests(){c={}},_generateResponseMetricsForFetchService(e){let{status:t}=e,{url:i,customStartTime:n}=e.config,{host:r}=i?o.default.parse(i):{host:null},a=n?Date.now()-n:0,l=m?.requestMetrics?.observe||!1;r&&0!==a&&l&&m.requestMetrics?.observe({host:r,statusCode:t},a)},logger:{componentLog:(e="log",t,i)=>{console[e](t,{...i})}},isServer:p,addInterceptor:h};t.fetchService=m,p()&&(h("request",e=>{e.customStartTime=Date.now()}),h("response",m._generateResponseMetricsForFetchService))},37963:(e,t)=>{"use strict";
134Object.defineProperty(t,"__esModule",{value:!0}),t.buildTerritoryLanguageIdentifiers=t.getAllLanguageCodes=t.getDefaultLanguage=t.getDefaultLanguageCode=t.getAvailableLanguages=void 0,t.getAvailableLanguages=e=>{let{languages:t,language:i,hideLanguagePrefix:n}=e,r=void 0===n||n;return t&&Object.keys(t).length>0?Object.entries(t).map(([e,t])=>{let i=t||{};return{code:e,default:i.default,hideLanguagePrefix:void 0!==i.hideLanguagePrefix?i.hideLanguagePrefix:r}}):i?[{code:i,default:!0,hideLanguagePrefix:r}]:[]},t.getDefaultLanguageCode=e=>{let i=(0,t.getAvailableLanguages)(e);if(0===i.length)return"";let n=i.find(e=>!0===e.default)||i[0];return n?.code||""},t.getDefaultLanguage=e=>(0,t.getDefaultLanguageCode)(e)||void 0,t.getAllLanguageCodes=e=>(0,t.getAvailableLanguages)(e).map(e=>e.code),t.buildTerritoryLanguageIdentifiers=e=>Object.values(e).flatMap(e=>{let i=(0,t.getAllLanguageCodes)(e),n=e.name;return i.map(e=>`${n}:${e}`)})},40601:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.actionCreatorHelper=t.ACTION_PREFIX=void 0,t.ACTION_PREFIX="ice::",t.actionCreatorHelper=e=>t=>(i,n)=>({type:`${t}`,payload:i,error:i instanceof Error,meta:{component:e,...n}})},53018:(e,t,i)=>{"use strict";var n=i(26024);Object.defineProperty(t,"__esModule",{value:!0}),t.gracefulShutdown=function(e){e.app.disable("shutdown");let t=!1,i=new Set,o=e.servers,a=(e,n)=>{i.add(n),n.on("finish",()=>i.delete(n)),n.on("close",()=>i.delete(n)),t&&r(n)};for(let e of o)e.on("request",a);n.on("SIGTERM",()=>{let a;if(t)return;for(let n of(t=!0,e.log?.("SIGTERM received. Starting graceful shutdown."),e.app.enable("shutdown"),e.onStartShutdown?.(),i))r(n);let l=e.inFlightProcessingTimeoutMs??1e4,d=!1,s=()=>{d||(d=!0,a&&clearTimeout(a),Promise.resolve().then(()=>e.onFinishShutdown?.()).finally(()=>{n.exit(0)}).catch(()=>void 0))},p=o.length,c=()=>{(p-=1)<=0&&s()};for(let e of o)e.close(c),e.closeIdleConnections();p>0?(a=setTimeout(()=>{for(let e of o)e.closeAllConnections();s()},l)).unref():s()})};let r=e=>{e.headersSent||e.setHeader("connection","close")}},72835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidModuleStatus=t.moduleStatusValues=void 0,t.moduleStatusValues=["beta","live","deprecated","experiment","poc"],t.isValidModuleStatus=e=>"string"==typeof e&&t.moduleStatusValues.includes(e)},81733:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCompetitionsFromSportsTeamsWidgetJson=t.isSportsTeamsCompetition=t.isTeamInfo=t.isRecord=void 0,t.isRecord=e=>"object"==typeof e&&null!==e,t.isTeamInfo=e=>(0,t.isRecord)(e)&&"string"==typeof e.name&&"string"==typeof e.abbreviation,t.isSportsTeamsCompetition=e=>(0,t.isRecord)(e)&&"string"==typeof e.name&&Array.isArray(e.teams)&&e.teams.every(e=>(0,t.isTeamInfo)(e)),t.getCompetitionsFromSportsTeamsWidgetJson=e=>{if((0,t.isRecord)(e)&&Array.isArray(e.competitions)&&e.competitions.every(e=>(0,t.isSportsTeamsCompetition)(e)))return e.competitions}},88449:(e,t,i)=>{"use strict";t.Ox=t.eW=t.zL=void 0;var n=i(40601);Object.defineProperty(t,"zL",{enumerable:!0,get:function(){return n.actionCreatorHelper}}),Object.defineProperty(t,"eW",{enumerable:!0,get:function(){return n.ACTION_PREFIX}});var r=i(33158);Object.defineProperty(t,"Ox",{enumerable:!0,get:function(){return r.fetchService}}),i(37963),i(5659),i(72835),i(53018),i(81733)}}]); 135//# sourceMappingURL=4832.b7d320f76257508a.js.map
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.