PageSourceSearch

https://www.onepeloton.com/_next/static/chunks/59982-193a5528589b6f71.js?dpl=dpl_7KcE9YTLiAk9mrknPPLUMMqhJcTW

js onepeloton.com collected 2026-10-01 09:13:58 UTC 148,913 bytes, 55 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[59982],{680:function(e,n,i){"use strict";i.d(n,{W:function(){return l},w:function(){return d}});var t=i(52445);let a=e=>e?e.filter(e=>e.productVariant?.type===t.eZ).map(e=>{let{id:n,productId:i,productVariant:t,priceSummary:a,quantity:r,productKey:l}=e;return{Id:n,productId:i,Description:t?.description??"",Images:t?.images?.map(e=>e.url)??[],name:t?.name??"",price:a?.subtotal?.centAmount??0,productLine:"",quantity:r??0,Sku:t?.sku??"",Slug:l,Type:t?.type??""}}):[],r=e=>e.filter(e=>!!e?.bundleItemLineItems?.length).flatMap(e=>{let{bundleItemLineItems:n}=e;return a(n)||[]}),l=e=>{let n=a(e);return[...r(e),...n]},d=e=>e?.some(e=>e?.productVariant?.type===t.eZ||d(e?.bundleItemLineItems??[]))},94442:function(e,n,i){"use strict";i.d(n,{$X:function(){return u},DA:function(){return f},GX:function(){return h},JB:function(){return p},Ji:function(){return s},a6:function(){return y},dR:function(){return k},iD:function(){return g},iy:function(){return o},jw:function(){return v}});var t=i(57223),a=i(85490),r=i(77784);let l=e=>e.flatMap(e=>(0,r.Dp)(e)?e.products?.map(n=>({...n,bundleSlug:e.slug})):[e]),d=e=>e.flatMap(e=>e?.productVariant?.type===t.UV.Bundle?e?.bundleItemLineItems?.map(n=>({...n,bundleSlug:e?.productVariant?.key})):[e]),u=e=>l(e).map(e=>({brand:"Peloton",name:e.name,category:e.productLine,price:e.priceInCents.amount,quantity:e.quantity,sku:e.sku,product_id:e.productId,package_name:e.bundleSlug})),s=e=>d(e).map(e=>({brand:"Peloton",name:e?.productVariant?.name??"",price:e?.priceSummary?.subtotal?.centAmount,quantity:e?.quantity??0,sku:e?.productVariant?.sku,product_id:e?.productId,package_name:e?.bundleSlug})),o=e=>[e?.hasBike&&"bike",e?.hasBikePlus&&"bike-plus",e?.hasGuide&&"guide",e?.hasTread&&"tread",e?.hasTreadPlus&&"tread-plus",e?.hasRow&&"row",e?.hasAccessories&&"accessory"].filter(Boolean).join(","),c={bike:"bike",bikeplus:"bike-plus",guide:"guide",row:"row",tread:"tread",treadplus:"tread-plus",treadflex:"tread-flex",refurbbike:"refurb-bike",refurbbikeplus:"refurb-bike-plus"},m={[a.lQ]:"bike-plus",[a.Fv]:"bike-plus",[a.Q2]:"bike-plus",[a.MA]:"bike",[a.F5]:"bike"},p=e=>{let n="accessory",i=[];return e.forEach(e=>{let t=e?.productVariant?.legacyEquipmentType,a=c[t??""],r=!!(e?.bundleItemLineItems?.length&&e?.bundleItemLineItems?.some(e=>e?.productVariant?.type.toLowerCase()===n))||e?.productVariant?.type?.toLowerCase()===n;t&&!i.includes(a)&&i.push(a);let l=m[e?.productKey??""];l&&!i.includes(l)&&i.push(l),l||!r||i.includes(n)||i.push(n)}),i.filter(Boolean).join(",")},k=e=>e.map(e=>{let{name:n}=e;return n}).join(","),v=e=>e.map(e=>{let{productVariant:n}=e;return n.name}).join(","),g=e=>l(e?.items??[]).map(e=>e.sku).filter(Boolean).join(","),f=e=>d(e).map(e=>e?.productVariant?.sku).filter(Boolean).join(","),y=e=>l(e?.items??[]).map(e=>
1e.slug).filter(Boolean).join(","),h=e=>d(e).map(e=>e?.productKey).filter(Boolean).join(",")},77784:function(e,n,i){"use strict";i.d(n,{DK:function(){return l},Dp:function(){return t},l:function(){return r},oe:function(){return a}});let t=e=>["CfuBundleItem","AccessoryBundleItem","LeasingBundleItem"].includes(e.__typename??""),a=e=>"PrepaidMembershipCreditsItem"===e.__typename,r=e=>(t(e)?e.products:[])??[],l=e=>(t(e)?e.id:e.productOptionId)??""},78362:function(e,n,i){"use strict";var t=i(27136);n.Z=e=>t.Z().content?.[e]?.value??e},73862:function(e,n,i){"use strict";var t=i(31549),a=i(62017),r=i(50903),l=i(42698),d=i(34341),u=i(44194),s=i(21723),o=i(78362),c=i(99654),m=i(99848),p=i(28598),k=i(259),v=i(57773);let g=(0,s.default)(r.V).withConfig({componentId:"sc-147b62ef-0"})(["border-bottom:1px solid ",";max-width:fit-content;",""],l.B[90],e=>e.alignCenter&&"margin: auto;"),f=(0,s.default)(m.e).withConfig({componentId:"sc-147b62ef-1"})(["width:",";height:",";margin-left:6px;"],d.W0[40],d.W0[16]),y=(0,s.default)(v.t).withConfig({componentId:"sc-147b62ef-2"})(["p{text-decoration:none !important;color:"," !important;font-weight:400;font-size:13px;letter-spacing:0.1px;line-height:",";}div{border-bottom:1.4px solid "," !important;}"],l.B[90],d.W0[16],l.B[90]);n.Z=e=>{let{alignCenter:n=!1,cfuBundleSKU:i,bundleType:r,price:l,pageType:d,term:s}=e,m=(0,o.Z)("financingPricingAffirm");return u.useEffect(()=>{let e=(0,c.R7)();e?.ui&&e?.ui?.ready(function(){e.ui?.refresh()})},[l]),(0,t.jsx)(y,{amount:l,cfuBundleSKU:i,bundleType:r,term:s,wrapper:"button",onClick:(0,k.o)(p.wV.Affirm,r,d,l,!0),children:()=>(0,t.jsxs)(g,{alignItems:"baseline",verticalPadding:"8px 0",alignCenter:n,children:[(0,t.jsx)(a.Z,{size:"medium",children:m}),(0,t.jsx)(f,{})]})})}},57773:function(e,n,i){"use strict";i.d(n,{t:function(){return E},G:function(){return a}});var t,a,r=i(31549),l=i(44194),d=i(90847),u=i(21723),s=i(6033),o=i(7572),c=e=>{let{data:n}=(0,s.Z)();return(0,o.D)(n?.[e]||"")},m=i(65089),p=i(85490),k=i(90601),v=i(3009),g=i(4115),f=i(35796),y=i(99654),h=i(14647);let S=function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e===g.Er.Ca?n?h.LX:h.tT:e===g.Er.Au?h.cv:n?h.nZ:h.mu},N=(e,n,i,t,a,r,l)=>{let d,u=e[i]||{},s=document.createElement(r),o=document.getElementsByTagName(r)[0],c=function(e,n,i){return function(){e[n]._.push([i,arguments])}};for(u[t]=c(u,t,"set"),d=u[t],u[a]={},u[a]._=[],d._=[],u[a][l]=c(u,a,l),a=0,l="set add save post open empty reset on off trigger ready setProduct".split(" ");a<l.length;a++)d[l[a]]=c(u,t,l[a]);for(a=0,l=["get","token","url","items"];a<l.length;a++)d[l[a]]=function(){};s.async=!0,s.src=n[r],o.parentNode.insertBefore(s,o),delete n[r],d(n),e[i]=u},b=function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{public_api_key:S(e,n),script:P(e),locale:e===g.Er.Ca?"en_CA":"en_US",country_code:e===g.Er.Ca?"CAN":"USA"}},P=e=>e===g.Er.Au?h.Hi:e===g.Er.Ca?h.Hv:h.bT;var F=function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,y.ZP)()||N(window,b(e,n),"affirm","checkout","ui","script","ready")};let A=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(0,v.bU)(),t=(0,f.Z)()("affirmTransactionsAPIKeys"),a=n.refreshValues||[],r=g.bM[i];(0,l.useEffect)(()=>{F(r,t)},[r,t]),(0,l.useEffect)(()=>{(0,y.ap)()},[e,...a])},I=e=>{(0,l.useEffect)(()=>{let n;return e&&(n=(0,y.qB)(e)),()=>{n?.()}},[e])};(t=a||(a={})).LANDING="landing",t.PRODUCT="product",t.CART="cart",t.BANNER="banner";let E=e=>{let n,{amount:i,cfuBundleSKU:t,bundleType:a,term:u,pageType:s="product",className:o,children:v,modalOpened:g=()=>{},modalClosed:f=()=>{},onPrequalComplete:y,wrapper:h=C,...S}=e,[N,b]=(0,l.useState)(!1),{data:P,loading:F}=c(a),E=(0,m.f)();A(i,{refreshValues:[F]}),I(y),(0,l.useEffect)(()=>{let e=()=>0!==document.getElementsByClassName("affirm-sandbox-container").length,n=setInterval(()=>{e()&&(clearInterval(n),b(!1),g())},1e3),i=setInterval(()=>{e()||(clearInterval(i),f())},1e3);return()=>{clearInterval(n),clearInterval(i)}},[N]);let T="banner"===s?{className:`affirm-site-modal ${o||""}`,"data-page-type":s,onClick:()=>b(!0),...S}:{className:`affirm-product-modal ${o||""}`,"data-amount":i,"data-page-type":s,onClick:()=>b(!0),...S};if(!P?.catalog.packageBySlug||F)return null;let R=P.catalog.packageBySlug;return(0,p.yU)(R.slug)||(n=t?.length?t:R?.connectedFitnessUnit?.variants?.[0]?.skus?.[0]||null),n&&(T["data-sku"]=n),a===k.v.Bike&&E&&(T["data-
1promo-id"]="zero_percent"),(0,r.jsx)(h,{role:"button",...T,children:v&&v(N)||(0,r.jsx)(d._H,{id:"financing.affirm.apr"})})},C=u.default.div.withConfig({componentId:"sc-cac911b0-0"})([""])},99654:function(e,n,i){"use strict";i.d(n,{JE:function(){return s},R7:function(){return d},ap:function(){return o},qB:function(){return u}});var t=i(13819),a=i(87517),r=i(36937),l=i(66570);let d=()=>window.affirm,u=e=>{let n=n=>{let i={status:n.status};if(n.terms){let[e]=n.terms.sort((e,n)=>n.installment_count-e.installment_count),{installment_amount:t,installment_count:a,interest_amount:r,prequal_amount:d}=e;i.installment_amount=(0,l.DV)(t),i.installment_count=a,i.interest_amount=(0,l.DV)(r),i.prequal_amount=(0,l.DV)(d)}e(i)},i="prequal:complete",t=d();return t.ui.ready(()=>{t.events.on(i,n)}),()=>{t.ui.ready(()=>{t.events.off(i,n)})}},s=(e,n)=>{try{let i=d();i.ui.ready(()=>{try{i.ui.error.on("close",n),i.checkout((0,t.decamelizeKeys)(e)),i.checkout.open({onOpen:()=>{(0,r.Z)("CT checkout: Affirm checkout is successfully initialized")},onValidationError:e=>{(0,r.Z)(`CT checkout: Affirm validation error during the checkout request: ${e}`)}})}catch(i){let e=new a.Z(`Error in affirm checkout callback: ${i}`,Error(i));n(e)}})}catch(e){n(new a.Z("Error in affirm checkout",e))}},o=()=>{let e=d();e.ui.ready(()=>{e.ui.refresh()})};n.ZP=d},19640:function(e,n,i){"use strict";i.d(n,{Rh:function(){return a},ZN:function(){return l}});var t,a,r=i(90601);(t=a||(a={}))[t.Twelve=12]="Twelve",t[t.TwentyFour=24]="TwentyFour",t[t.ThirtyNine=39]="ThirtyNine",t[t.FortyThree=43]="FortyThree";let l=e=>e&&[r.v.BikePlus,r.v.Tread,r.v.TreadFlex,r.v.Row].indexOf(e)>=0?43:39},46534:function(e,n,i){"use strict";i.d(n,{Z:function(){return E}});var t,a,r=i(44194),l=i(3009);class d extends Error{constructor(e){super(e),Object.setPrototypeOf(this,d.prototype)}}var u=i(90601);(t=a||(a={})).Bike="bike",t.Tread="tread",t.RainforestCafe="guide",t.Row="row";let s=e=>{if(e===u.v.Accessories)throw Error("Cannot finance accessories");switch(e){case u.v.Bike:case u.v.BikePlus:case u.v.RefurbishedBike:case u.v.RefurbishedBikePlus:return"bike";case u.v.Tread:case u.v.TreadPlus:case u.v.TreadFlex:return"tread";case u.v.RainforestCafe:return"guide";case u.v.Row:return"row"}};var o=i(13762),c=i(29913),m=i(72712),p=i(28598),k=i(90277),v=i(45273),g=i(61235);let f={price:void 0},y=e=>{let{data:n}=(0,g.ZP)("ctPrices");return n&&n[e]?n[e]:f};var h=i(86698),S=i(84017);let N=(e,n)=>(0,S.iR)(e)&&n===u.v.TreadPlus?429500:0;var b=e=>{let{data:n}=(0,g.ZP)("prices",h.Gj);if(n.hasOwnProperty(e)){let i=n[e];return{getLowestPackagePriceByBundle:n=>i.hasOwnProperty(n)&&i[n]?.packages?.length?i[n]?.packages[0]?.price:i[n]?.price||N(e,n)}}throw Error(`Bundle prices for locale "${e}" not found.`)};let P=[u.v.Bike,u.v.BikePlus,u.v.Tread,u.v.TreadPlus,u.v.RainforestCafe,u.v.Row,u.v.RefurbishedBike,u.v.RefurbishedBikePlus];var F=e=>{let n=b(e);return{totalPrices:P.reduce((e,i)=>({...e,[i]:n.getLowestPackagePriceByBundle(i)}),{})}},A=e=>{let{totalPrices:n}=F((0,l.bU)()),{price:i}=y(e);return i||n[e]},I=i(38784),E=e=>{let n=A(e),i=(0,l.bU)(),t=(0,o.Z)(),a=(0,c.Z)();if(t===p.wV.None)throw new d("Cannot useFinancing if no financing partner");let u=(0,k.Qe)({partner:t,bundleType:e},!0),g=Number(u),f=(0,v.L)(i,e,g);return(0,r.useMemo)(()=>{let r=s(e),l=(0,I.YG)(e,i),d=(0,m.j2)(n,g,f,t);return{bundleType:e,financedDevice:r,financingPartner:t,secondaryFinancingPartner:a,financingPartnerDisplayName:p.jt[t],membershipPrice:l,total:n,totalBeforeShipping:n,monthly:d,term:u,apr:f,shippingEstimate:0}},[t,a,n,e,i,u,g,f])}},28533:function(e,n,i){"use strict";i.d(n,{Rh:function(){return a},ZN:function(){return l}});var t,a,r=i(90601);(t=a||(a={}))[t.Twelve=12]="Twelve",t[t.TwentyFour=24]="TwentyFour",t[t.ThirtySix=36]="ThirtySix",t[t.ThirtyNine=39]="ThirtyNine",t[t.FortyThree=43]="FortyThree";let l=e=>e&&[r.v.BikePlus,r.v.Tread,r.v.TreadFlex].indexOf(e)>=0?43:39},72712:function(e,n,i){"use strict";i.d(n,{JW:function(){return p},j2:function(){return m}});var t=i(66570),a=i(28598);let r=(e,n,i)=>i===a.wV.Zip?Math.round(e/n):Math.ceil(e/n),l=(e,n,i,t)=>0===i?r(e,n,t):t===a.wV.Klarna?c(e,n,i):o(e,n,i),d=(e,n,i,t)=>u(l(e,n,i,t)),u=e=>100*Math.ceil(e/100),s=(e,n,i)=>{let t=Math.pow(1+i,n);return e*i*t/(t-1)},o=(e,n,i)=>Math.ceil(Math.round(s(e,n,i/12))),c=(e,n,i)=>Math.ceil(s(e,n,Math.pow(1+i,1/12)-1)),m=(e,n,i,t)=>{let r=d(e,n,i,t),u=l(e,n,i,t);return t===a.wV.Zip?u:r},p=(e,n)=>{let i=(0,t.Ml)(e),r=(0,t.Hv)(e);return n===a.wV.Zip?r:i}},90277:function(e,n,i){"use strict";
1i.d(n,{Qe:function(){return y},U3:function(){return h},eE:function(){return S}});var t,a,r,l,d,u,s=i(62943),o=i(90601),c=i(19640);(t=l||(l={}))[t.FortyThree=43]="FortyThree";let m=()=>43;var p=i(28533);(a=d||(d={}))[a.Twelve=12]="Twelve",a[a.TwentyFour=24]="TwentyFour";let k=()=>24;(r=u||(u={}))[r.ThirtySix=36]="ThirtySix",r[r.FortyThree=43]="FortyThree";let v=e=>e?36:43;var g=i(28598);let f=(e,n,i)=>({[g.wV.Affirm]:(0,c.ZN)(i),[g.wV.Citizens]:m(),[g.wV.Klarna]:(0,p.ZN)(i),[g.wV.Zip]:v(n),[g.wV.PayBright]:k()})[e],y=(e,n)=>{let{partner:i,bundleType:t}=e;if((0,s.h0)(t))switch(i){case g.wV.Affirm:return c.Rh.TwentyFour;case g.wV.Klarna:return p.Rh.TwentyFour}return f(i,n,t)},h=e=>{let{hasTreadInCart:n,hasBikePlusInCart:i,hasBikeInCart:t,hasGuideInCart:a,hasRowInCart:r,hasTreadPlusInCart:l,hasTreadFlexInCart:d}=e;return t?o.v.Bike:i?o.v.BikePlus:n?o.v.Tread:r?o.v.Row:a?o.v.RainforestCafe:l?o.v.TreadPlus:d?o.v.TreadFlex:o.v.Bike},S=(e,n)=>{let{partner:i,hasTreadInCart:t,hasBikePlusInCart:a,hasBikeInCart:r,hasGuideInCart:l,hasRowInCart:d,hasTreadPlusInCart:u,hasTreadFlexInCart:s}=e,o=h({hasTreadInCart:t,hasBikePlusInCart:a,hasBikeInCart:r,hasGuideInCart:l,hasRowInCart:d,hasTreadPlusInCart:u,hasTreadFlexInCart:s});return l?a||t||d?i===g.wV.Zip?v(n):c.Rh.FortyThree:r?i===g.wV.Zip?v(n):c.Rh.ThirtyNine:c.Rh.TwentyFour:f(i,n,o)}},28073:function(e,n,i){"use strict";var t=i(31549),a=i(25085),r=i(34341),l=i(55851),d=i(44194),u=i(21723),s=i(69330);let o="modal-content-container";n.Z=e=>{let{isOpen:n,setIsOpen:i}=e,[r,l]=(0,d.useState)({width:0,height:0}),[u,v]=(0,d.useState)(!0);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c,{}),(0,t.jsxs)(s.Z,{isOpen:n,closeHandler:()=>{i(!1),v(!0)},padded:!1,contentLabel:"",openHandler:()=>{let e=document.getElementById(o);l({width:Number(e?.offsetWidth),height:window.innerHeight-Number(e?.getBoundingClientRect().y)-100-56})},id:o,children:[(0,t.jsx)(p,{children:(0,t.jsx)(a.Z,{name:"trueMed",height:24})}),u?(0,t.jsx)(k,{style:{width:r.width,height:r.height},children:(0,t.jsx)(a.Z,{name:"spinner",height:48})}):null,(0,t.jsx)(m,{title:"Truemed widget",src:"https://app.truemed.com/peloton-widget",width:r.width,height:r.height,onLoad:()=>v(!1)})]})]})};let c=(0,u.createGlobalStyle)(["#","{background-color:transparent;}"],o),m=u.default.iframe.withConfig({componentId:"sc-6d408628-0"})(["border-bottom-left-radius:5px;border-bottom-right-radius:5px;"]),p=u.default.div.withConfig({componentId:"sc-6d408628-1"})(["padding:"," ",";background-color:",";text-align:left;svg{display:block;}"],r.W0[16],r.W0[24],l.i),k=u.default.div.withConfig({componentId:"sc-6d408628-2"})(["position:absolute;background-color:",";display:flex;justify-content:center;align-items:center;"],l.i)},259:function(e,n,i){"use strict";i.d(n,{o:function(){return d}});var t=i(77054),a=i(14530),r=i(28598);let l=e=>"product"===e?"package card":"configure"===e?"package modal":"payment"===e?"cart":e,d=(e,n,i,d,u)=>s=>{if(s.target instanceof Element){{let n=s.target.className;if(!u&&e===r.wV.Affirm&&"affirm-modal-trigger"!==n)return}(0,t.j)({event:"Clicked Prequalify CTA",properties:{pageName:(0,a.MS)(),price:d,productName:n,unitName:l(i),billingPartner:e}})}}},28539:function(e,n,i){"use strict";i.d(n,{Z:function(){return s}});var t=i(31549),a=i(44194),r=i(13762),l=i(28598);let d=async()=>{let e=document.createElement("script");e.id="zip-widget-script",e.src="https://static.zipmoney.com.au/lib/js/zm-widget-js/dist/zip-widget.min.js",e.async=!0,document.body.appendChild(e)},u=()=>{let e=(0,r.Z)();(0,a.useEffect)(()=>{let n=async()=>{0===document.querySelectorAll("[id=zip-widget-script]").length&&await d()};e===l.wV.Zip&&n().catch(e=>console.error(e))},[e])};var s=()=>(u(),(0,t.jsx)(t.Fragment,{}))},83554:function(e,n,i){"use strict";i.d(n,{i:function(){return v}});var t,a,r,l,d=i(31549),u=i(34341),s=i(44194),o=i(21723),c=i(14647),m=i(35622);(t=r||(r={})).Dev="70a81769-c6c7-49ff-995a-c45c6ea446e8",t.Prod="c53a570f-e98d-441c-adb0-2b1878a856ac",(a=l||(l={})).Dev="sandbox",a.Prod="production";let p=e=>e?"c53a570f-e98d-441c-adb0-2b1878a856ac":"70a81769-c6c7-49ff-995a-c45c6ea446e8",k=e=>e?"production":"sandbox",v=(0,s.forwardRef)((e,n)=>{let{price:i,width:t,bundleType:a}=e,r=c.iH,l=p(r),u=k(r);return(0,d.jsx)(g,{className:"zip-modal-container",id:`${a||"default"}-zip-product-widget`,width:t,ref:n,"data-zm-widget":"popup","data-zm-region":"au","data-env":u,"data-zm-merchant":l,"data-zm-price":i,"data-zm-asset":"productwidget","data-zm-popup-asset":"termsdialog"})});v.displayName="ZipModalView";let g=o.default.div.withConfig({componentId:"sc-93a89b2c-0"})(["cursor:pointer;opacity:0;position:absolute;float:left;visibility:none;width:",";height:18px;& > .zip-container{display:none;}&.zip-widget__wrapper{padding-top:",";}",""],e=>e.width||"36px",u.W0[8],m.BC.smallScreen`
2    &.zip-widget__wrapper {
3      padding-top: 0;
4    }
5  `)},54012:function(e,n,i){"use strict";var t=i(61235),a=i(3009),r=i(3436),l=i(18925),d=i(52560),u=i(43929);let s=e=>fetch(e).then(e=>e.json());n.Z=()=>{let{overrideToday:e}=(0,u.b)(),n=(0,l.D_)(e),i=(0,r.Z)(),o=(0,a.bU)(),c=n&&i?`?today=${n}`:"";return(0,t.ZP)(`${i?d.OP:d.ew}/${o}${c}`,s)}},18925:function(e,n,i){"use strict";i.d(n,{D_:function(){return r}});var t=i(82393),a=i.n(t);let r=e=>{if(!e)return;let n=new Date(e);return a()(n).startOf("minute").toISOString()}},52560:function(e,n,i){"use strict";i.d(n,{HN:function(){return c},J2:function(){return s},OP:function(){return p},TH:function(){return d},U_:function(){return u},ew:function(){return m},sS:function(){return o},vg:function(){return l}});var t=i(14647);let a=`${t.PW}/api`,r=`${t.Mp}/api`,l=`${a}/pageBuilderEntryHandler`,d=`${r}/pageBuilderEntryHandler`,u=`${a}/pageBuilderPromoCfuSlugHandler`,s=`${r}/pageBuilderPromoCfuSlugHandler`,o=`${a}/pageBuilderPromoCfuHandler`,c=`${r}/pageBuilderPromoCfuHandler`,m=`${a}/pageBuilderGroupedPromosHandler`,p=`${r}/pageBuilderGroupedPromosHandler`},27136:function(e,n,i){"use strict";var t=i(6964),a=i(93289);n.Z=()=>(0,t.Z)(a.Z.entryId)},33409:function(e,n,i){"use strict";i.d(n,{$6:function(){return b},Bf:function(){return c},DL:function(){return S},OS:function(){return h},XV:function(){return o},fZ:function(){return g},sX:function(){return y},ts:function(){return N},uq:function(){return p},wY:function(){return f},xA:function(){return v},xh:function(){return m}});var t,a,r=i(4115),l=i(94442),d=i(52445),u=i(69862),s=i(85490);(t=a||(a={}))["Credit Card"]="none",t["Google Pay"]="none",t.affirm="financing",t.citizens="financing",t.Klarna="financing",t.zip="financing";let o=e=>({1:"Viewed Checkout Page",2:"Started Entering Shipping Information",3:"Selected Payment Option (CC or Financing Selection)",4:"(CC only + UK and CA) Viewed Order Review Page",5:"Viewed Checkout Payment Screen",6:"Address Confirmation Modal Opened",7:"User Moves away from Email Address Field",8:"Entered Shipping Information + Tax/Shipping Calculated",9:"Account Info Module",10:"Cross Sell Module",11:"Shipping Module",12:"Assembly Module",13:"Seller Module"})[e],c=e=>a[e],m=e=>!!e.some(e=>s.ZV.includes(e?.productVariant?.key||"")),p=e=>e?.priceSummaries?.cartPriceSummary?.subtotal?.centAmount??0,k=(e,n,i)=>
5(e/100).toLocaleString(n,{style:"currency",currency:i}),v=e=>{let n=[],i=(0,r.JP)(),t=(0,u.Z)(i);return e.forEach(e=>{let a=e?.priceSummary?.subtotal?.centAmount,r={name:e?.productVariant?.name??"",price:k(a,i,t),description:e?.productVariant?.description??"",category:(0,l.JB)([e]),image:e?.productVariant?.images?.[0]?.url??"",price_in_cents:a};null!==e.bundleItemLineItems&&(r.bundle_products=[],e?.bundleItemLineItems?.forEach(e=>{r.bundle_products?.push({name:e?.productVariant?.name??"",sku:e?.productVariant?.sku??"",image:e?.productVariant?.images[0]?.url??""})})),n.push(r)}),n},g=e=>e?.productVariant?.size||null,f=e=>e.filter(e=>e?.productVariant?.type===d.c7).map(e=>e.productVariant?.name),y=e=>e.some(e=>e?.bundleItemLineItems&&!e?.productVariant?.legacyEquipmentType),h=e=>e.filter(e=>e?.productVariant?.type===d.eZ).map(e=>e?.productVariant?.name),S=e=>!!e.some(e=>s.ZV.includes(e?.productVariant?.key||"")),N=e=>!!e.some(e=>e?.productVariant?.type===d.eZ),b=(e,n,i,t)=>{let a=t?.lineItems??[],r=(0,l.JB)(a),u=!!r.includes(d.cd),s=f(a);u&&(s=[...s||"","Guide"]);let o=a.map(e=>e.productKey);return{event:e,properties:{cartId:t?.id,category:r,hasTradeIn:!1,products:(0,l.Ji)(a),hasAccessory:N(a),hasGuide:u,hasAccessoryBundle:y(a),accessoryName:h(a),bundleName:s,hasCPO:m(a),hasOPC:S(a),selected:n,position:i,slug:o}}}},45931:function(e,n,i){"use strict";var t=i(31549);i(44194);var a=i(68384);n.Z=(0,a.G)(e=>{let{children:n,...i}=e;return(0,t.jsx)("a",{...i,target:"_blank",rel:"noopener noreferrer",children:n})})},3226:function(e,n,i){"use strict";var t,a,r,l,d,u,s,o,c,m,p,k,v,g,f,y,h,S,N,b,P,F,A,I,E,C,T,R,w,_,D,M,L,B,V,O,x,U,G,Z,$,j,H,W,K,z,q,Y,Q,X,J,ee,en,ei,et,ea,er,el,ed,eu,es,eo,ec,em,ep,ek,ev,eg,ef,ey,eh,eS,eN,eb,eP,eF,eA,eI,eE,eC,eT,eR,ew,e_,eD,eM,eL,eB,eV,eO,ex,eU,eG,eZ,e$,ej,eH,eW,eK,ez,eq,eY,eQ,eX,eJ,e0,e1,e9,e2,e4,e3,e5,e8,e6,e7,ne,nn,ni,nt,na,nr;i.d(n,{Lb:function(){return s},UC:function(){return z},UV:function(){return q},XX:function(){return G},iF:function(){return $},wD:function(){return Z}}),(eo=t||(t={})).Active="Active",eo.Frozen="Frozen",eo.Merged="Merged",eo.Ordered="Ordered",(ec=a||(a={})).FaasBuyoutInvalidCartItemsError="FaasBuyoutInvalidCartItemsError",ec.FaasBuyoutMonolithUserDataFetchError="FaasBuyoutMonolithUserDataFetchError",ec.IncompleteShippingAddress="IncompleteShippingAddress",ec.IncompleteSupportInformation="IncompleteSupportInformation",ec.InvalidBundle="InvalidBundle",ec.InvalidDiscount="InvalidDiscount",ec.InvalidPaymentAmount="InvalidPaymentAmount",ec.InvalidShippingAddressForCartCountry="InvalidShippingAddressForCartCountry",ec.InvalidTaxAmount="InvalidTaxAmount",ec.MissingEmail="MissingEmail",ec.MissingLegacyStore="MissingLegacyStore",ec.MissingLineItems="MissingLineItems",ec.MissingPayment="MissingPayment",ec.MissingSeller="MissingSeller",ec.MissingShippingAddress="MissingShippingAddress",ec.MissingShippingMethod="MissingShippingMethod",ec.RecallAuthenticationRequired="RecallAuthenticationRequired",ec.RecallEligibilityCheckFailed="RecallEligibilityCheckFailed",ec.RecallIneligible="RecallIneligible",ec.RecallRemediated="RecallRemediated",ec.UnavailableProduct="UnavailableProduct",ec.Unknown="Unknown",(em=r||(r={})).At="AT",em.Au="AU",em.Ca="CA",em.De="DE",em.Gb="GB",em.Us="US",(ep=l||(l={})).At="AT",ep.Au="AU",ep.Ca="CA",ep.De="DE",ep.Gb="GB",ep.Us="US",(ek=d||(d={})).Aud="AUD",ek.Cad="CAD",ek.Eur="EUR",ek.Gbp="GBP",ek.Usd="USD",(ev=u||(u={})).Cancelled="Cancelled",ev.Delivered="Delivered",ev.NeedsFollowUp="NeedsFollowUp",ev.NeedsReschedule="NeedsReschedule",ev.OutForDelivery="OutForDelivery",ev.Scheduled="Scheduled",ev.Unscheduled="Unscheduled",(eg=s||(s={})).AutoAppliedDiscount="AutoAppliedDiscount",eg.BusinessToBusinessDiscount="BusinessToBusinessDiscount",eg.MembershipReferralDiscount="MembershipReferralDiscount",eg.ReferralDiscount="ReferralDiscount",eg.SpotifyPremiumDiscount="SpotifyPremiumDiscount",eg.SpecialPricingDiscount="SpecialPricingDiscount",eg.Unknown="Unknown",eg.UserAppliedDiscount="UserAppliedDiscount",(ef=o||(o={})).Eligible="ELIGIBLE",ef.Ineligible="INELIGIBLE",(ey=c||(c={})).Eligible="ELIGIBLE",ey.IneligibleCfu="INELIGIBLE_CFU",ey.IneligibleHasExistingWarranty="INELIGIBLE_HAS_EXISTING_WARRANTY",ey.IneligibleInvalidRelatedOrder="INELIGIBLE_INVALID_RELATED_ORDER",ey.IneligibleLocale="INELIGIBLE_LOCALE",ey.IneligibleMultipleCfus="INELIGIBLE_MULTIPLE_CFUS",ey.IneligibleNoAvailableServicePlans="INELIGIBLE_NO_AVAILABLE_SERVICE_PLANS",ey.IneligibleNoRegisteredWarranty="INELIGIBLE_NO_REGISTERED_WARRANTY",ey.IneligibleNoSubscription="INELIGIBLE_NO_SUBSCRIPTION",ey.IneligibleOwnsLeasedCfu="INELIGIBLE_OWNS_LEASED_CFU",ey.IneligibleOwnsRefurbishedCfu="INELIGIBLE_OWNS_REFURBISHED_CFU",ey.IneligiblePastWarrantyPeriod="INELIGIBLE_PAST_WARRANTY_PERIOD",ey.IneligibleUnknown="INELIGIBLE_UNKNOWN",ey.IneligibleUser="INELIGIBLE_USER",(eh=m||(m={})).AFewTimesAMonth="A_FEW_TIMES_A_MONTH",eh.AFewTimesAWeek="A_FEW_TIMES_A_WEEK",eh.Everyday="EVERYDAY",eh.Occasionally="OCCASIONALLY",eh.OnceAWeek="ONCE_A_WEEK",(eS=p||(p={})).AFewTimesAMonth="A_FEW_TIMES_A_MONTH",eS.AFewTimesAWeek="A_FEW_TIMES_A_WEEK",eS.Everyday="EVERYDAY",eS.Occasionally="OCCASIONALLY",eS.OnceAWeek="ONCE_A_WEEK",(eN=k||(k={})).De="de",eN.En="en",eN.Es="es",(eb=v||(v={})).De="de",eb.En="en",eb.Es="es",(eP=g||(g={})).Available="Available",eP.InvalidBundle="InvalidBundle",eP.InvalidBundleDiscount="InvalidBundleDiscount",eP.InvalidBundleItemProduct="InvalidBundleItemProduct",eP.InvalidBundleItemQuantity="InvalidBundleItemQuantity",eP.InvalidBundleSavings="InvalidBundleSavings",eP.MissingBundleItems="MissingBundleItems",eP.MissingBundleParent="MissingBundleParent",eP.MissingBundleProduct="MissingBundleProduct",eP.Unavailable="Unavailable",eP.Unknown="Unknown",(eF=f||(f={})).Eligible="ELIGIBLE",eF.Hold="HOLD",eF.NotEligible="NOT_ELIGIBLE",(eA=y||(y={})).Fitness="FITNESS",eA.Fun="FUN",eA.Love="LOVE",eA.Social="SOCIAL",eA.Training="TRAINING",eA.Weight="WEIGHT",(eI=h||(h={})).Fitness="FITNESS",eI.Fun="FUN",eI.Love="LOVE",eI.Social="SOCIAL",eI.Training="TRAINING",eI.Weight="WEIGHT",(eE=S||(S={})).Extraordinary="EXTRAORDINARY",eE.Ordinary="ORDINARY",(eC=N||(N={})).Ecom="ECOM",eC.Sap="SAP",(eT=b||(b={})).Guest="GUEST",eT.Loggedin="LOGGEDIN",eT.Owner="OWNER",(eR=P||(P={})).Cancelled="CANCELLED",eR.CaptureFailed="CAPTURE_FAILED",eR.Completed="COMPLETED",eR.Errored="ERRORED",eR.PendingFulfillment="PENDING_FULFILLMENT",eR.PendingLogisticsApproval="PENDING_LOGISTICS_APPROVAL",eR.PendingPayment="PENDING_PAYMENT",eR.PendingPaymentAuth="PENDING_PAYMENT_AUTH",eR.PendingPaymentCapture="PENDING_PAYMENT_CAPTURE",eR.PendingRiskEvaluation="PENDING_RISK_EVALUATION",eR.RequiresFollowUp="REQUIRES_FOLLOW_UP",(ew=F||(F={})).Exception="exception",ew.Prediction="prediction",ew.Predictive="predictive",ew.Tracking="tracking",(e_=A||(A={})).Backup="BACKUP",e_.Primary="PRIMARY",(eD=I||(I={})).Authorized="Authorized",eD.ChargeFailed="ChargeFailed",eD.Paid="Paid",eD.Refund="Refund",eD.ValidationFailed="ValidationFailed",(eM=E||(E={})).CreditCard="CREDIT_CARD",eM.DirectDebit="DIRECT_DEBIT",(eL=C||(C={})).ActivationFee="ACTIVATION_FEE",eL.BikeAccessory="BIKE_ACCESSORY",eL.BikeReturn="BIKE_RETURN",eL.BikeSwap="BIKE_SWAP",eL.CommercialBike="COMMERCIAL_BIKE",eL.CommercialSubscription="COMMERCIAL_SUBSCRIPTION",eL.ConsumerBike="CONSUMER_BIKE",eL.ConsumerSubscription="CONSUMER_SUBSCRIPTION",eL.DigitalSubscription="DIGITAL_SUBSCRIPTION",eL.EquipmentLease="EQUIPMENT_LEASE",eL.FoodBeverage="FOOD_BEVERAGE",eL.Guide="GUIDE",eL.GuideSubscription="GUIDE_SUBSCRIPTION",eL.HaulAway="HAUL_AWAY",eL.Other="OTHER",eL.ParcelOnly="PARCEL_ONLY",eL.Preorder="PREORDER",eL.Row="ROW",eL.RowReturn="ROW_RETURN",eL.RowSwap="ROW_SWAP",eL.ServiceTechnician="SERVICE_TECHNICIAN",eL.SparePart="SPARE_PART",eL.SubscriptionPrepaidCredit="SUBSCRIPTION_PREPAID_CREDIT",eL.SubscriptionRenewal="SUBSCRIPTION_RENEWAL",eL.Tread="TREAD",eL.TreadAccessory="TREAD_ACCESSORY",eL.TreadReturn="TREAD_RETURN",eL.TreadSwap="TREAD_SWAP",eL.TreadWeight="TREAD_WEIGHT",eL.Warranty="WARRANTY",(eB=T||(T={})).DateAsc="date_ASC",eB.DateDesc="date_DESC",(eV=R||(R={})).Text="TEXT",eV.YesNo="YES_NO",(eO=w||(w={})).Fitness="FITNESS",eO.Fun="FUN",eO.Love="LOVE",eO.Mentalhealth="MENTALHEALTH",eO.Recovery="RECOVERY",eO.Social="SOCIAL",eO.Training="TRAINING",(ex=_||(_={})).Fitness="FITNESS",ex.Fun="FUN",ex.Love="LOVE",ex.Mentalhealth="MENTALHEALTH",ex.Recovery="RECOVERY",ex.Social="SOCIAL",ex.Training="TRAINING",(eU=D||(D={})).RestrictedToOrder="RESTRICTED_TO_ORDER",eU.Unrestricted="UNRESTRICTED",(eG=M||(M={})).Completed="COMPLETED",eG.Initiated="INITIATED",eG.NonSelfServiceInitiated="NON_SELF_SERVICE_INITIATED",eG.SelfServiceInitiated="SELF_SERVICE_INITIATED",(eZ=L||(L={})).Aurora="AURORA",eZ.Bike="BIKE",eZ.Bikeplus="BIKEPLUS",eZ.Guide="GUIDE",eZ.Prism="PRISM",eZ.Refurbbike="REFURBBIKE",eZ.Refurbbikeplus="REFURBBIKEPLUS",eZ.Row="ROW",eZ.Tread="TREAD",eZ.Treadplus="TREADPLUS",(e$=B||(B={})).Aurora="AURORA",e$.Bike="BIKE",e$.Bikeplus="BIKEPLUS",e$.Guide="GUIDE",e$.Prism="PRISM",e$.Refurbbike="REFURBBIKE",e$.Refurbbikeplus="REFURBBIKEPLUS",e$.Row="ROW",e$.Tread="TREAD",e$.TreadPlus="TREAD_PLUS",e$.Treadplus="TREADPLUS",(ej=V||(V={})).DateAsc="date_ASC",ej.DateDesc="date_DESC",ej.OverallRatingAsc="overallRating_ASC",ej.OverallRatingDesc="overallRating_DESC",(eH=O||(O={})).DateAsc="date_ASC",eH.DateDesc="date_DESC",eH.OverallRatingAsc="overallRating_ASC",eH.OverallRatingDesc="overallRating_DESC",(eW=x||(x={})).Bike="BIKE",eW.Guide="GUIDE",eW.Refurbbike="REFURBBIKE",eW.Refurbbikeplus="REFURBBIKEPLUS",eW.Row="ROW",eW.Tread="TREAD",(eK=U||(U={})).ExpertAssembly="EXPERT_ASSEMBLY",eK.SelfAssembly="SELF_ASSEMBLY",(ez=G||(G={})).AddBundleItem="addBundleItem",ez.AddDiscount="addDiscount",ez.AddLineItem="addLineItem",ez.AddPayment="addPayment",ez.Recalculate="recalculate",ez.RemoveBundleItem="removeBundleItem",ez.RemoveDiscount="removeDiscount",ez.RemoveLineItem="removeLineItem",ez.RemovePayment="removePayment",ez.SetBillingAddress="setBillingAddress",ez.SetCreditCheckStatus="setCreditCheckStatus",ez.SetCustomerEmail="setCustomerEmail",ez.SetCustomerPreferences="setCustomerPreferences",ez.SetGiftInformation="setGiftInformation",ez.SetIdMeVerificationId="setIdMeVerificationId",ez.SetIsGift="setIsGift",ez.SetLineItemQuantity="setLineItemQuantity",ez.SetShippingAddress="setShippingAddress",ez.SetSupportInformation="setSupportInformation",(eq=Z||(Z={})).DoesNotMatch="DoesNotMatch",eq.MatchesCart="MatchesCart",eq.MaxApplicationReached="MaxApplicationReached",eq.NotValid="NotValid",(eY=$||($={})).DigitalSubscription="DigitalSubscription",eY.FaasBuyout="FaasBuyout",eY.PrepaidAam="PrepaidAAM",eY.Recall="Recall",eY.Rental="Rental",eY.Sales="Sales",eY.SecondaryActivation="SecondaryActivation",eY.Support="Support",(eQ=j||(j={})).CustomerEmail="customerEmail",eQ.OrderState="orderState",(eX=H||(H={})).SyncAwaiting="SyncAwaiting",eX.SyncError="SyncError",eX.SyncProcessing="SyncProcessing",eX.SyncSuccess="SyncSuccess",eX.Uninitialized="Uninitialized",(eJ=W||(W={})).Commercial="Commercial",eJ.InsideSales="InsideSales",eJ.MemberSupport="MemberSupport",eJ.Retail="Retail",eJ.Web="Web",(e0=K||(K={})).AppleExpressPay="AppleExpressPay",e0.ApplePay="ApplePay",e0.GoogleExpressPay="GoogleExpressPay",e0.GooglePay="GooglePay",e0.None="None",(e1=z||(z={})).AdyenCreditCard="AdyenCreditCard",e1.AffirmFinancing="AffirmFinancing",e1.CitizensFinancing="CitizensFinancing",e1.KlarnaFinancing="KlarnaFinancing",e1.PelotonGiftCard="PelotonGiftCard",e1.StripeCredit
5Card="StripeCreditCard",e1.StripeDeferred="StripeDeferred",e1.StripeRecurring="StripeRecurring",e1.TruemedHsaFsa="TruemedHsaFsa",e1.Unknown="Unknown",e1.ZipFinancing="ZipFinancing",e1.ZipPos="ZipPos",(e9=q||(q={})).Accessory="Accessory",e9.Apparel="Apparel",e9.Bundle="Bundle",e9.Digital="Digital",e9.Equipment="Equipment",e9.GiftCard="GiftCard",e9.SparePart="SparePart",e9.Subscription="Subscription",e9.Unknown="Unknown",e9.Warranty="Warranty",(e2=Y||(Y={})).Free="Free",e2.Paid="Paid",(e4=Q||(Q={})).Expired="Expired",e4.OrderStatus="OrderStatus",e4.Scheduler="Scheduler",e4.SetPaymentMethod="SetPaymentMethod",e4.Start="Start",e4.Survey="Survey",(e3=X||(X={})).Complete="Complete",e3.Eligible="Eligible",e3.Ineligible="Ineligible",(J||(J={})).Monthly="MONTHLY",(e5=ee||(ee={})).Annual="Annual",e5.Monthly="Monthly",e5.Quarterly="Quarterly",e5.SemiAnnual="SemiAnnual",e5.ThreeYear="ThreeYear",e5.TwoYear="TwoYear",e5.Unknown="Unknown",(e8=en||(en={})).AccountsReceivable="AccountsReceivable",e8.Amazon="Amazon",e8.Apple="Apple",e8.AutoDebit="AutoDebit",e8.Bango="Bango",e8.Google="Google",e8.NotBilled="NotBilled",e8.Roku="Roku",(e6=ei||(ei={})).AllAccess="AllAccess",e6.Digital="Digital",e6.DigitalBasic="DigitalBasic",e6.DigitalPlus="DigitalPlus",e6.Guide="Guide",e6.NoMembership="NoMembership",e6.StrengthPlus="StrengthPlus",e6.Unknown="Unknown",(e7=et||(et={})).Active="Active",e7.CancellationScheduled="CancellationScheduled",e7.Cancelled="Cancelled",e7.FreeTrial="FreeTrial",e7.GracePeriod="GracePeriod",e7.Inactive="Inactive",(ne=ea||(ea={})).Digital="Digital",ne.DigitalThirdParty="DigitalThirdParty",ne.Hardware="Hardware",ne.StrengthPlus="StrengthPlus",(nn=er||(er={})).Available="AVAILABLE",nn.Concessionary="CONCESSIONARY",nn.Student="STUDENT",nn.Unavailable="UNAVAILABLE",(ni=el||(el={})).Activate="Activate",ni.Cancel="Cancel",ni.Pause="Pause",(nt=ed||(ed={})).MarketingOptIn="MARKETING_OPT_IN",nt.ThirdPartySubscriptionCancellation="THIRD_PARTY_SUBSCRIPTION_CANCELLATION",(na=eu||(eu={})).Family="FAMILY",na.Friends="FRIENDS",na.JustMe="JUST_ME",na.SignificantOther="SIGNIFICANT_OTHER",(nr=es||(es={})).Family="FAMILY",nr.Friends="FRIENDS",nr.JustMe="JUST_ME",nr.SignificantOther="SIGNIFICANT_OTHER"},44199:function(e,n,i){"use strict";i.d(n,{L:function(){return s},f:function(){return d}});var t=i(87453),a=i(4115),r=i(57223),l=i(36937);let d=async(e,n,i,t,a,r,d)=>{let s=async()=>await r({variables:{input:{country:n,actions:e}}}),o=null;if(i)o=await s();else if(t){(0,l.Z)("CT Cart is not loaded in retail environment. Refetching cart.");let{data:e}=await a();if(!e?.shopCart)throw(0,l.Z)("CT Retail Cart not found after refetching"),Error("RetailCart not found after refetching");o=await s()}else o=d?await u(e,n,d):await s();return o},u=async(e,n,i)=>{let l=(0,a.SP)(),d={currencyCode:(0,t.j3)(),lineItems:[],locale:l,country:n,customerEmail:null,shippingAddress:null,billingAddress:null,discounts:[],idMeVerificationId:null};return e.forEach(e=>{switch(e.actionType){case r.XX.AddLineItem:e.addLineItem&&d.lineItems.push(e.addLineItem);break;case r.XX.AddBundleItem:e.addBundleItem&&(e.addBundleItem.quantity=1,d.lineItems.push(e.addBundleItem));break;case r.XX.SetCustomerEmail:e.setCustomerEmail&&(d.customerEmail=e.setCustomerEmail.customerEmail);break;case r.XX.SetShippingAddress:e.setShippingAddress&&(d.shippingAddress=e.setShippingAddress.address);break;case r.XX.AddDiscount:e.addDiscount&&d.discounts?.push(e.addDiscount);break;case r.XX.SetIdMeVerificationId:e.setIdMeVerificationId&&(d.idMeVerificationId=e.setIdMeVerificationId.idMeVerificationId);break;case r.XX.SetOrderPlacementType:e.setOrderPlacementType&&(d.orderPlacementType=e.setOrderPlacementType.orderPlacementType);break;case r.XX.SetSpotifyJwt:e.setSpotifyJwt&&(d.spotifyJwt=e.setSpotifyJwt.spotifyJwt)}}),await i({variables:{input:d}})},s=(e,n)=>{let i=[];return n.forEach(n=>{if(n?.selections[0]?.sku)i.push(n?.selections[0]?.sku);else{let t=e.products.find(e=>e.slug===n.product);t?.sku&&i.push(t.sku)}}),o(i)},o=e=>e.reduce((e,n)=>{let i=e.findIndex(e=>e.sku===n);return -1===i?[...e,{sku:n,quantity:1}]:(e[i].quantity=e[i].quantity+1,[...e])},[])},7974:function(e,n,i){"use strict";var t=i(3009),a=i(72712),r=i(90277),l=i(52445),d=i(9485),u=i(35796),s=i(45273),o=i(30236);n.Z=(e,n)=>{let{data:i}=(0,d.Z)({key:n}),{hasBike:c,hasBikePlus:m,hasTread:p,hasTreadPlus:k,hasTreadFlex:v,hasRow:g,hasGuide:f}=(0,o.sS)(n),y=(0,t.bU)(),h=(0,u.Z)()("zipThirtySixMonthFinancing"),S=(0,r.eE)({partner:e,hasBikeInCart:c,hasBikePlusInCart:m,hasTreadInCart:p,hasTreadPlusInCart:k,hasTreadFlexInCart:v,hasGuideInCart:f,hasRowInCart:g},h),N=(0,r.U3)({hasBikeInCart:c,hasBikePlusInCart:m,hasTreadInCart:p,hasTreadPlusInCart:k,hasTreadFlexInCart:v,hasGuideInCart:f,hasRowInCart:g}),b=(0,l.I3)(i),P=(0,a.j2)(b,S,(0,s.L)(y,N,S),e),F=(0,a.JW)(P,e),A=(0,l.VK)({shopCart:i,financingBundleType:N});return{financingBundleType:N,financingTerm:S,cartTotal:b,monthlyTotalInDollars:F,cfuBundleSKU:A}}},30236:function(e,n,i){"use strict";i.d(n,{Tc:function(){return u},cS:function(){return d},sS:function(){return o}});var t=i(52445),a=i(9485),r=i(57223);let l={[t.ti.Bike]:r.Q2.Bike,[t.ti.BikePlus]:r.Q2.Bikeplus,[t.ti.Guide]:r.Q2.Guide,[t.ti.Tread]:r.Q2.Tread,[t.ti.TreadPlus]:r.Q2.Treadplus,[t.ti.TreadFlex]:r.Q2.Treadflex,[t.ti.Row]:r.Q2.Row,[t.ti.RefurbBike]:r.Q2.Refurbbike,[t.ti.RefurbBikePlus]:r.Q2.Refurbbikeplus},d=(e,n)=>e.find(e=>l[e?.productVariant?.legacyEquipmentType??""]===n)?.productVariant?.sku??void 0,u=(e,n
5)=>e.find(e=>l[e?.productVariant?.legacyEquipmentType??""]===n)?.productKey??void 0,s=e=>{let n=[r.Q2.Treadplus,r.Q2.Tread,r.Q2.Treadflex,r.Q2.Refurbbike,r.Q2.Refurbbikeplus,r.Q2.Bike,r.Q2.Bikeplus,r.Q2.Guide,r.Q2.Row];return e.sort((e,i)=>n.indexOf(e)-n.indexOf(i))},o=e=>{let{data:n}=(0,a.Z)({key:e}),i=n?.lineItems??[],d=s(i.map(e=>l[e?.productVariant?.legacyEquipmentType??""]).filter(Boolean)),u=(0,t.wy)(i),o=(0,t.wy)(i,!0),c=d.includes(r.Q2.Bike),m=d.includes(r.Q2.Bikeplus),p=d.includes(r.Q2.Tread),k=d.includes(r.Q2.Treadplus),v=d.includes(r.Q2.Treadflex),g=d.includes(r.Q2.Row),f=d.includes(r.Q2.Refurbbike),y=d.includes(r.Q2.Refurbbikeplus),h=d.includes(r.Q2.Guide);return{allCfuTypes:d,hasAccessories:u,hasNonIntegratedAccessories:o,hasBike:c,hasBikePlus:m,hasTread:p,hasTreadPlus:k,hasTreadFlex:v,hasRow:g,hasRefurbBike:f,hasRefurbBikePlus:y,hasGuide:h}}},84608:function(e,n,i){"use strict";i.d(n,{H:function(){return r},z:function(){return a}});let t=(0,i(13821).Ue)(e=>({triggerVerification:!1,setTriggerVerification:n=>e({triggerVerification:n})})),a=()=>t(e=>e.triggerVerification),r=()=>t(e=>e.setTriggerVerification)},33949:function(e,n,i){"use strict";i.d(n,{BC:function(){return R},Iw:function(){return f},PY:function(){return A},UE:function(){return g},Zc:function(){return I},b8:function(){return F},bd:function(){return S},eS:function(){return h},hW:function(){return v},s1:function(){return y},sL:function(){return _},sy:function(){return N},ui:function(){return P}});var t=i(46216),a=i.n(t),r=i(14647),l=i(91838),d=i(87453),u=i(42689),s=i(4115),o=i(52445),c=i(57223);let m=u.go.Default;m=(0,s.SP)();let p=(0,l._F)(m),k=(0,d.j3)(p),v="giftCard",g="CHECKOUT_CART_FAILED",f=async(e,n,i)=>{try{return await a().post(`${r.P}/payments/payment-methods`,{gift_card:{transaction_system:"WEB",card_number:e,pin:n,country:p.toUpperCase(),currency:k}})}catch(e){return i(`Gift Card Error | Payment method is not created: ${e?.response?.data?.message}`),e?.response??e}},y=e=>e&&e.filter(e=>e.type===c.UC.PelotonGiftCard&&e.paymentLabel===v)||[],h=e=>{let n=0;return y(e).forEach(e=>{n+=e.totalAmount.centAmount}),n},S=e=>{let n=(0,o.I3)(e),i=h(e?.payments||[]);return n>=i?n-i:n},N=e=>e&&e.filter(e=>e.type===c.UC.PelotonGiftCard&&e.paymentLabel===v).map(e=>e.giftCardMetadata?.giftCardNumber?.slice(-4)??""),b=e=>e.find(e=>parseInt(e.giftCardMetadata?.balanceAmount||"0")),P=(e,n)=>y(n).some(n=>n.paymentToken===e),F=e=>!!(e||[]).find(e=>e.extensions?.errorCode==="PAYMENTS_INVALID"),A=e=>!!(e||[]).find(e=>e.extensions?.errorCode===g&&e?.message?.includes("InvalidDiscount")||e.extensions?.errorCode==="SELF_REFERRAL_INVALID"),I=e=>!!(e||[]).find(e=>e.extensions?.errorCode==="REFERRAL_CODE_EXHAUSTED"),E=(e,n,i)=>[{removePayment:{id:e.id,token:e.paymentToken,type:c.UC.PelotonGiftCard},actionType:c.XX.RemovePayment},{addPayment:{paymentDraft:{giftCardMetadata:{authorizationId:e.paymentToken,balanceAmount:i.toString(),giftCardNumber:e.giftCardMetadata?.giftCardNumber||""},paymentLabel:v,paymentToken:e.paymentToken,totalAmountInCents:n,type:c.UC.PelotonGiftCard}},actionType:c.XX.AddPayment}],C=e=>[{removePayment:{id:e.id,token:e.paymentToken,type:c.UC.PelotonGiftCard},actionType:c.XX.RemovePayment},{addPayment:{paymentDraft:{giftCardMetadata:{authorizationId:e.paymentToken,balanceAmount:e.giftCardMetadata?.balanceAmount||"0",giftCardNumber:e.giftCardMetadata?.giftCardNumber||""},paymentLabel:v,paymentToken:e.paymentToken,totalAmountInCents:e.totalAmount.centAmount,type:c.UC.PelotonGiftCard}},actionType:c.XX.AddPayment}],T=(e,n)=>({removePayment:{id:e,token:n,type:c.UC.PelotonGiftCard},actionType:c.XX.RemovePayment}),R=(e,n,i,t)=>{let a=b(i),r=[];n>0&&a&&(r=w(n,i)),n<0&&(r=_(e,i)),e===n&&(r=_(e,i)),r.length>0&&t(r)},w=(e,n)=>{let i=e,t=[];return n.forEach(n=>{let a=parseInt(n.giftCardMetadata?.balanceAmount||"0");if(a>0&&i>0){let r=e>=a?a:e,l=E(n,n.totalAmount.centAmount+r,e>=a?0:a-e);t.push(...l),i-=r}else{let e=C(n);t.push(...e)}}),t},_=(e,n)=>{let i=e,t=[];return n.forEach(e=>{if(i>0&&i>=e.totalAmount.centAmount){let n=C(e);t.push(...n),i-=e.totalAmount.centAmount}else if(i>0){let n=parseInt(e.giftCardMetadata?.balanceAmount||"0"),a=i,r=n+e.totalAmount.centAmount-i,l=E(e,a,r);t.push(...l),i=0}else{let n=T(e.id,e.paymentToken);t.push(n)}}),t}},84193:function(e,n,i){"use strict";var t=i(57223);
5n.Z=e=>[t.F.Gbp,t.F.Eur,t.F.Aud].includes(e)},11353:function(e,n,i){"use strict";i.d(n,{mi:function(){return a}});var t=i(35796);let a=()=>{let e=(0,t.Z)();return{buyFlowATCEnabled:!0,buyFlowCheckoutEnabled:!0,CTGiftCardEnabled:e("commercetoolsGiftCardEnabled"),bfcmReferralPulseActive:e("bfcm_2024_referral_pulse"),deferConfirmEnabled:e("deferred_confirmation")}}},5234:function(e,n,i){"use strict";i.d(n,{Co:function(){return d},Ee:function(){return l},QC:function(){return r},uf:function(){return a}});var t=i(93019);let a=e=>!!e.shippingAddress&&e.shippingAddress.isValidated,r=e=>e&&e.id?e.id:"",l=(e,n)=>{let{shouldAllowMarketing:i}=n?.customerPreferences??{};return"boolean"==typeof i?i:t.at[e]},d=e=>e&&e.id?e.idMeVerificationId??"":""},6033:function(e,n,i){"use strict";i.d(n,{Z:function(){return m}});var t=i(61235),a=i(3009),r=i(86698),l=i(90601),d=i(58450),u=i(71868);let s={bike:l.v.Bike,bikePlus:l.v.BikePlus,refurbishedBike:l.v.RefurbishedBike,refurbishedBikePlus:l.v.RefurbishedBikePlus,tread:l.v.Tread,treadPlus:l.v.TreadPlus,treadFlex:l.v.TreadFlex,row:l.v.Row},o=(e,n)=>{let i={};for(let[t,a]of Object.entries(e)){let e=s[t],r=a[n];e&&r&&(i[e]=r)}return i},c=async e=>{let n=(0,d.v)(),i=await n.query({query:u.IT,variables:{key:"basics-packages",container:"basics-packages"}});if(!i.data.customObject)throw Error("Basics packages not found");return o(i.data.customObject.value,e)};var m=()=>{let e=(0,a.bU)();return(0,t.ZP)("basicsPackages",()=>c(e),{...r.Gj})}},72875:function(e,n,i){"use strict";i.d(n,{_:function(){return u}});var t=i(3009),a=i(42689),r=i(55879),l=i(16119),d=i(83671);let u=e=>{let n={loading:!0},i=[(0,t.bU)(),a.go.Default],u=(0,r.u)(),s=(0,l.Kv)({fetchPolicy:"cache-first",variables:{acceptLanguage:i,key:e},client:u,notifyOnNetworkStatusChange:!0}),o=s.data?.category;if(!1===s.loading&&(n.loading=!1,s.error&&(n.error=s.error),o)){let e=o.children;n.data={...o,...e&&{children:(0,d.o)(e)}}}return n}},7572:function(e,n,i){"use strict";i.d(n,{D:function(){return k}});var t=i(97859),a=i(40127),r=i(70949),l=i(72875),d=i(3009),u=i(91838),s=i(87453),o=i(42689),c=i(55879),m=i(85283);let p=(e,n,i,a)=>{let r=(0,d.bU)(),l=(0,u._F)(r),p=[r,o.go.Default],k=(0,c.u)(),{loading:v,data:g,error:f}=n({fetchPolicy:"cache-first",variables:{where:`key="${e}" and masterData(current(categories(id="${a}")))`,acceptLanguage:p,currency:(0,s.j3)(l),country:l},client:k,notifyOnNetworkStatusChange:!0,skip:!a}),y=g?.products.results,h=y&&y.length>0?y[0]:void 0,S=h?i(h,r):void 0,N=y?.length===0?(0,m.z)(t.jP.PRODUCT_NOT_FOUND):void 0;return{loading:v,error:f||N,data:S}},k=e=>{let{data:n,loading:i,error:d}=(0,l._)(t.kk),{loading:u,data:s,error:o}=p(e,r.es,a.h,n?.id);return{loading:i||u,data:s,error:o||d}}},70850:function(e,n,i){"use strict";i.d(n,{ZP:function(){return C},eF:function(){return A},Lv:function(){return I}});var t=i(44194),a=i(61235),r=i(3009),l=i(91838),d=i(87453),u=i(42689),s=i(58336),o=i(65426),c=i(40127),m=i(78317),p=i(94699),k=i(80774);let v={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchAnyProductsByKeys"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"where"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"currency"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Currency"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Country"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeMeta"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"products"},arguments:[{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"Variable",name:{kind:"Name",value:"where"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}
5}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"results"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"masterData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"current"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"masterVariant"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductVariantFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"variants"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductVariantFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"metaDescription"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"includeMeta"}}}]}]},{kind:"Field",name:{kind:"Name",value:"metaTitle"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"includeMeta"}}}]}]},{kind:"Field",name:{kind:"Name",value:"metaKeywords"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"includeMeta"}}}]}]}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductPriceFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"price"},arguments:[{kind:"Argument",name:{kind:"Name",value:"currency"},value:{kind:"Variable",name:{kind:"Name",value:"currency"}}},{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"centAmount"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"discounted"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"centAmount"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductReferencedCatalogFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"images"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"attributesRaw"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"availability"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"channels"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"results"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"availability"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"availableQuantity"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ProductPriceFragment"},directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductReferencedFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"masterData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"current"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"masterVariant"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductReferencedCatalogFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"variants"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductReferencedCatalogFragment"},directives:[]}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductVariantFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"attributesRaw"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"referencedResourceSet"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductReferencedFragment"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"referencedResource"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductReferencedFragment"},directives:[]}]}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ProductPriceFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"images"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}}]}}]};var g=i(93602),f=i(97859),y=i(11561);let h=e=>!!(e.masterData.current&&(0,y.P)(e.masterData.current.masterVariant.attributesRaw,f.vy.LEGACY_EQUIPMENT_TYPE)),S=e=>e.productType?.key===f._c,N=e=>e.map(e=>`key="${e}"`).join(" or "),b=async(e,n)=>{let{keys:i,acceptLanguage:t,country:a,fetchPolicy:r,limit:l,includeMeta:u=!1}=n,{data:s}=await e.query({query:v,fetchPolicy:r,variables:{where:N(i),acceptLanguage:t,currency:(0,d.j3)(a),country:a,limit:l,includeMeta:u}});return s},P=e=>e.map(e=>`key="${e}"`).join(" or "),F=(e,n)=>{let i=[];for(let t=0;t<e.length;t+=n)i.push(e.slice(t,t+n));return i},A=e=>{let n=(0,r.bU)(),i=(0,l._F)(n),d=(0,t.useMemo)(()=>[n,u.go.Default],[n]),o=(0,t.useMemo)(()=>(0,s.o)(),[]),c=async()=>{let t=F(e,50);return(await Promise.all(t.map(e=>b(o,{keys:e,country:i,acceptLanguage:d,fetchPolicy:"cache-first",limit:50})))).map(e=>E(e,n)).reduce((e,n)=>({accessories:{...e.accessories,...n.accessories},bundles:{...e.bundles,...n.bundles},cfuPackages:{...e.cfuPackages,...n.cfuPackages},spareParts:{...e.spareParts,...n.spareParts}}))},{data:m,error:p,isValidating:k}=(0,a.ZP)(["useProductsByKeysChunked",...e],c,{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1});return{loading:k&&!m,error:p,products:m}},I=e=>{let n=(0,r.bU)(),i=(0,l._F)(n),d=(0,t.useMemo)(()=>[n,u.go.Default],[n]),o=(0,t.useMemo)(()=>(0,s.o)(),[]),c=(0,t.useCallback)(async()=>
5{if(0===e.length)return{};let n=await b(o,{keys:e,country:i,acceptLanguage:d,fetchPolicy:"cache-first",limit:50});return n.products.results?.reduce((e,n)=>(n.key&&(e[n.key]=n),e),{})},[e,o,i,d]),{data:m,error:p,isValidating:k}=(0,a.ZP)(["useProductsByKeysRaw",...e],c,{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1});return{loading:k&&!m,error:p,products:m}},E=(e,n)=>{let i={accessories:{},bundles:{},cfuPackages:{},spareParts:{}};for(let t of e.products.results)t.key&&((0,g.l)(t)?h(t)?i.cfuPackages[t.key]=(0,c.h)(t,n).catalog.packageBySlug:i.bundles[t.key]=(0,o.z)(t,n):S(t)?i.spareParts[t.key]=(0,p.v)(t,n):i.accessories[t.key]=(0,m.l)(t,n));return i};var C=e=>{var n;let i=(0,r.bU)(),a=(0,l._F)(i),o=[i,u.go.Default],c=(0,t.useMemo)(()=>(0,s.o)(),[]),{loading:m,error:p,data:g}=(n={fetchPolicy:"cache-first",variables:{where:P(e),acceptLanguage:o,currency:(0,d.j3)(a),country:a,limit:50},client:c,notifyOnNetworkStatusChange:!0},k.a(v,n));return{loading:m,error:p,products:(0,t.useMemo)(()=>{if(g)return E(g,i)},[g,i])}}},65426:function(e,n,i){"use strict";i.d(n,{z:function(){return k}});var t=i(42689),a=i(19029),r=i(97859),l=i(57168),d=i(42825),u=i(18186);let s=(e,n)=>e.find(e=>e.name===n)?.referencedResource;var o=i(44165),c=i(11561);let m=e=>{let n=e?.masterData.current?.masterVariant.attributesRaw,i=n?.find(e=>{let{name:n}=e;return n===r.vy.PRODUCTS})?.value;return i?.reduce((e,n)=>{let i=n.find(e=>{let{name:n}=e;return n===r.NI})?.value.id;return i?[...e,i]:e},[])||[]};var p=i(78317);let k=(e,n)=>{let{id:i,masterData:k,key:v,productType:g}=e,f=k.current,{name:y,description:h,masterVariant:S,categories:N,metaTitle:b,metaDescription:P,metaKeywords:F}=f,{centAmount:A,currencyCode:I}=S.price?.value||{},E=S.price?.discounted?.value,C=S.images.map(e=>({src:e.url,alt:String(e.label)})),T=(0,l.ql)(f,n),R=(0,d.k)(S),w=(0,c.P)(S.attributesRaw,r.vy.IS_CONFIGURABLE),_=(0,c.P)(S.attributesRaw,r.vy.LEGACY_ID)??"",D=(0,c.P)(S.attributesRaw,r.vy.DISPLAY_NAME)??{},M=s(S.attributesRaw,r.vy.SUBSCRIPTION),L=(0,o.E)(S.attributesRaw,r.vy.PRODUCT_REFERENCES),B=m(e).map(e=>{let i=L?.find(n=>
5n.id===e),{id:t,description:a,productType:r,availability:l,name:d,price:u,images:s,slug:o,attributes:c,variants:m,categories:k,displayName:v,sku:g,assemblyFeeProducts:f}=(0,p.l)(i,n);return{id:t,description:String(a),productType:r,availability:l,name:d,price:u,images:s,slug:o,attributes:c,variants:m,categories:k,displayName:v,sku:g,assemblyFeeProducts:f}}),V=((0,o.E)(S.attributesRaw,r.vy.UPSELLS)||[]).map(e=>(0,p.l)(e,n)),O=(0,u.o)(A,B),x=D[n]||D[t.go.EnglishUnitedStates],U=E&&{amount:E.centAmount,currency:E.currencyCode},G=S?.sku??"";return{id:i,name:String(y),displayName:x,slug:String(v),legacyBundleId:String(_),description:String(h),images:C,discountPrice:U,price:{amount:A,currency:I},availability:T,products:(0,a.Zj)(B),discount:{amount:O,currency:I},upsells:V,subscription:M,image:C[0],configurable:w,categories:N.map(e=>String(e.key)),productType:String(g?.key),sku:G,metaTitle:b,metaDescription:P,metaKeywords:F,channelAvailabilityByLocale:R}}},40127:function(e,n,i){"use strict";i.d(n,{h:function(){return k}});var t=i(96497),a=i(97859),r=i(18186),l=i(11561);let d=e=>e.reduce((e,n)=>{let{productType:i}=n;return i===a.$R?e[a.$R].push(n):i===a.cV?e[a.cV].push(n):e[a.Jk].push(n),e},{[a.$R]:[],[a.cV]:[],[a.Jk]:[]}),u=e=>{let{attributes:n,variants:i}=e;return n?.map(e=>{let n=e.options.map(e=>{let n=i?.find(n=>n.configurations.find(n=>n.option===e.slug))?.legacyOptionId??"";return{slug:e.slug,name:e.name,id:t.Ti(n)}});return{name:e.name,slug:e.slug,options:n}})},s=e=>e.map(e=>{let n=u(e),{id:i,slug:a,name:r,description:l,images:d,availability:s,variants:o,price:c,displayName:m}=e,p=o.map(e=>({id:(0,t.Ti)(e.legacyOptionId),slug:e.key,name:e.key,skus:[e.sku],description:e.description||"",price:e.price,configurations:e.configurations}));return{id:(0,t.Ti)(i),slug:a,name:m||r,price:c,description:l||"",image:d[0],availability:s,attributes:n,variants:p}});var o=i(65426),c=i(57223);let m={RENTALBIKE:c.Q2.Bike,RENTALBIKEPLUS:c.Q2.Bikeplus};var p=e=>m[e]||e;let k=(e,n)=>{let{legacyBundleId:i,name:u,slug:c,description:m,price:k,image:v,availability:g,products:f,discountPrice:y,upsells:h,subscription:S,displayName:N,metaTitle:b,metaDescription:P,metaKeywords:F}=(0,o.z)(e,n),{masterData:A}=e,{masterVariant:I}=A.current,E=S?.masterData.current?.masterVariant.attributesRaw,C=p(l.P(I.attributesRaw,a.vy.LEGACY_EQUIPMENT_TYPE)?.label??""),T=d(f),R=s(T[a.Jk]),w=s(T[a.$R])[0],_=s(T[a.cV])[0],D=E&&(0,t.Ti)((0,l.P)(E,a.Ls.LEGACY_OPTION_ID)),M={amount:(0,r.o)(k.amount,f),currency:k.currency};return{catalog:{packageBySlug:{id:(0,t.Ti)(i),name:N||u,slug:c,description:m,price:k,discount:M,image:v,availability:g,equipmentType:C,warranty:_,accessories:R,connectedFitnessUnit:w,discountPrice:y,subscriptionId:D,upsells:h,metaTitle:b,metaDescription:P,metaKeywords:F}}}}},30104:function(e,n,i){"use strict";i.d(n,{j:function(){return d}});var t=i(42689),a=i(97859);let r=(e,n)=>String(e.key||e[n]||e[t.go.Default]||e),l=(e,n,i)=>r(e.find(e=>e.name===n)?.value||"",i),d=function(e,n,i){let t=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return n.map(n=>{let{centAmount:d,currencyCode:u}=n.price?.value||e.price?.value||{},s=n.price?.discounted?.value,o=l(n.attributesRaw,a.Ls.LEGACY_OPTION_ID,i),c=l(n.attributesRaw,a.Ls.VARIANT_DESCRIPTION,i),m=t?a.Jq:a.X3,p=(n.attributesRaw||[]).map(e=>({attribute:e.name,option:r(e.value,i),legacyOptionId:o})).filter(e=>m.includes(e.attribute)),k={amount:Number(d),currency:String(u)},v=s&&{amount:s.centAmount,currency:u};return{key:String(n.key),sku:String(n.sku),discountPrice:v,price:k,legacyOptionId:o,description:c,configurations:p}})}},80318:function(e,n,i){"use strict";i.d(n,{C:function(){return r}});var t=i(42689),a=i(97859);let r=(e,n)=>{let i=e.reduce((e,i)=>{let a=i.sku;return(i.attributesRaw||[]).forEach(i=>{let{name:r,value:l}=i,d=e[r]?.options||[],u=[...d.some(e=>e.slug!==l)?d:[],{name:String(l[n]||l[t.go.Default]||l),slug:String(l[n]||l[t.go.Default]||l),sku:a}];e[r]={options:u}}),e},{}),r=Object.keys(i);return r.map(e=>{let n=`${e}-label`,t=i[n]?.options[0]?.name;return{name:r.includes(n)?t:e,slug:e,options:i[e].options}}).filter(e=>a.X3.includes(e.slug))}},78317:function(e,n,i){"use strict";i.d(n,{l:function(){return p}});var t=i(42689),a=i(97859),r=i(57168),l=i(42825),d=i(36566),u=i(11561),s=i(19720),o=i(26751),c=i(30104),m=i(80318);let p=(e,n)=>{let{masterData:i,key:p,productType:k}=e,v=i.current,{name:g,description:f,masterVariant:y,variants:h=[],categories:S=[],metaTitle:N,metaDescription:b,metaKeywords:P}=v,F=y.images||[],{centAmount:A,currencyCode:I}=y.price?.value||{},E=y.sku??"",C=F.map(e=>({src:e.url,alt:String(e.label)})),T=(0,r._q)(v,n),R=(0,l.k)(y),w=h.length>0?(0,d.dV)([y,...h],n):[y],_=(0,c.j)(y,w,n),{amount:D,currency:M}=_[0]?.price||{},L=(0,s.x)(w),B=(0,m.C)(L,n),V=(0,u.P)(y.attributesRaw,a.Ls.LEGACY_PRODUCT_ID)??"",O=(0,o.w)(w,!0),x=O[0]?.price?.discounted?.value,U=x&&{amount:x.centAmount,currency:M??I},G=(0,u.P)(y.attributesRaw,a.Ls.DISPLAY_NAME)??{},Z=G[n]||G[t.go.EnglishUnitedStates],$=(0,u.P)(y.attributesRaw,a.Ls.SIZE_LABEL)??{},j=$[n]||$[t.go.EnglishUnitedStates],[H]=C,W=(0,u.P)(y.attributesRaw,a.Ls.ASSEMBLY_FEE_REFERENCES);return{id:V,name:String(g),displayName:Z,sizeLabel:j,slug:String(p),description:f??"",image:H,images:C,attributes:B,price:{amount:
5D??A,currency:M??I},discountPrice:U,productType:String(k?.key),availability:T,variants:_,categories:S.map(e=>String(e.key)),sku:E,metaTitle:N,metaDescription:b,metaKeywords:P,channelAvailabilityByLocale:R,assemblyFeeProducts:W}}},94699:function(e,n,i){"use strict";i.d(n,{v:function(){return v}});var t=i(42689),a=i(97859),r=i(57168),l=i(42825),d=i(36566),u=i(11561),s=i(19720),o=i(26751),c=i(30104),m=i(80318);let p=(e,n)=>e??n,k=(e,n,i)=>e.length>0?(0,d.dV)([n,...e],i):[n],v=(e,n)=>{let{masterData:i,key:d,productType:v}=e,g=i.current,{name:f,description:y,masterVariant:h,variants:S=[],categories:N=[],metaTitle:b,metaDescription:P,metaKeywords:F}=g,A=p(h.images,[]),{centAmount:I,currencyCode:E}=p(h.price?.value,{}),C=h.sku??"",T=A.map(e=>({src:e.url,alt:String(e.label)})),[R]=T,w=(0,r._q)(g,n),_=(0,l.k)(h),D=k(S,h,n),M=(0,c.j)(h,D,n),{amount:L,currency:B}=M[0]?.price||{},V=(0,s.x)(D),O=(0,m.C)(V,n),x=p((0,u.P)(h.attributesRaw,a.xb.LEGACY_PRODUCT_ID),""),U=(0,o.w)(D,!0),G=U[0]?.price?.discounted?.value,Z=G&&{amount:G.centAmount,currency:B??E},$=p((0,u.P)(h.attributesRaw,a.xb.DISPLAY_NAME),{}),j=$[n]||$[t.go.EnglishUnitedStates],H=p((0,u.P)(h.attributesRaw,a.xb.SIZE_LABEL),{}),W=H[n]||H[t.go.EnglishUnitedStates],K=(0,u.P)(h.attributesRaw,a.xb.INSTRUCTIONS_LINK),z=(0,u.P)(h.attributesRaw,a.xb.REQUIRED_TOOLS),q=v?.key!==a._c||1===D.length;return{id:x,name:String(f),displayName:j,sizeLabel:W,slug:String(d),description:y,image:R,images:T,attributes:O,price:{amount:L??I,currency:B??E},discountPrice:Z,productType:String(v?.key),availability:w,variants:M,categories:N.map(e=>e.key),sku:C,instructionsLink:K,requiredTools:z,isUniversal:q,metaTitle:b,metaDescription:P,metaKeywords:F,channelAvailabilityByLocale:_}}},85930:function(e,n,i){"use strict";i.d(n,{Hc:function(){return d},_z:function(){return r}});var t=i(93019),a=i(42689);let r=e=>e===a.go.EnglishUnitedKingdom?[t.JV.GbWeb,t.JV.UkWeb]:[t.SC[e]],l=(e,n)=>{let i=r(n),t=e.find(e=>i.includes(e?.key));return t?.key},d=(e,n)=>void 0!==l(e,n)},57168:function(e,n,i){"use strict";i.d(n,{_q:function(){return p},ql:function(){return k}});var t=i(32619),a=i.n(t),r=i(98106),l=i.n(r),d=i(46668),u=i(50032),s=i(97859),o=i(44165),c=i(42825),m=i(36566);let p=(e,n)=>{let{variants:i=[],masterVariant:t}=e;if((0,c.v)(t,n)===u.yB.Unavailable)return{state:u.yB.Unavailable,code:d.nZ};let r=i.length>0?a()([t,...i].map(e=>(0,m.xV)(e,n)),"code"):(0,m.xV)(t,n),s={state:r.state,code:r.code},o={code:d.Rl,state:u.yB.Available};return l()([s,o],"code")},k=(e,n)=>{let i=p(e,n),t=(0,o.E)(e.masterVariant.attributesRaw,s.vy.PRODUCT_REFERENCES).map(e=>p(e.masterData.current,n)),a=l()([i,...t],"code");return{state:a.state,code:a.code}}},42825:function(e,n,i){"use strict";i.d(n,{k:function(){return o},v:function(){return s}});var t=i(59925),a=i(42689),r=i(50032),l=i(97859),d=i(85930),u=i(11561);let s=function(e,n){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=`Accessory [${e.key}] is not available for [${n}]`;return(0,d.Hc)((0,u.P)(e.attributesRaw,l.Ls.CHANNEL_AVAILABILITY)??[],n)?r.yB.Available:(i&&t.v.addError(a),r.yB.Unavailable)},o=e=>new Map(Object.values(a.go).map(n=>[n,s(e,n,!1)]))},36566:function(e,n,i){"use strict";i.d(n,{dV:function(){return m},xV:function(){return c}});var t=i(93019),a=i(91838),r=i(46668),l=i(50032),d=i(97859),u=i(11561);let s=(e,n)=>d.T0[e.slice(n.length)],o=(e,n)=>{let i=n===t.uq.Uk?[t.uq.Uk,t.uq.Gb]:[n];return u.P(e.attributesRaw,d.Ls.SALES_STATUS)?.filter(e=>i.some(n=>e.key.startsWith(n)))},c=(e,n)=>{let i=t.ui[(0,a._F)(n)],d=o(e,i);return d&&0!==d.length?d.map(e=>s(e.key,i))[0]:{code:r.Rl,state:l.yB.Available}},m=(e,n)=>e.filter(e=>(0,r.zM)(c(e,n)))},16119:function(e,n,i){"use strict";i.d(n,{Kv:function(){return r},wl:function(){return a}});var t=i(80774);let a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCategoryByKey"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"key"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}
5,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeSubChildren"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"Variable",name:{kind:"Name",value:"key"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"orderHint"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"children"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"orderHint"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"children"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"includeSubChildren"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"orderHint"},arguments:[],directives:[]}]}}]}}]}}]}}]};function r(e){return t.a(a,e)}},71868:function(e,n,i){"use strict";i.d(n,{IT:function(){return a},O3:function(){return r}});var t=i(80774);let a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCustomObjectByKey"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"key"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"container"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"customObject"},arguments:[{kind:"Argument",name:{kind:"Name",value:"container"},value:{kind:"Variable",name:{kind:"Name",value:"container"}}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"Variable",name:{kind:"Name",value:"key"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}}]};function r(e){return t.a(a,e)}},70949:function(e,n,i){"use strict";i.d(n,{es:function(){return r}});var t=i(80774);let a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchBundleByKey"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"where"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}
5,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"currency"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Currency"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Country"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"products"},arguments:[{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"Variable",name:{kind:"Name",value:"where"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"results"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"masterData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"current"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"masterVariant"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"attributesRaw"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"referencedResourceSet"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BundleProductReferencedFragment"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"referencedResource"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BundleProductReferencedFragment"},directives:[]}]}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"BundleProductPriceFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"images"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BundleProductPriceFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"price"},arguments:[{kind:"Argument",name:{kind:"Name",value:"currency"},value:{kind:"Variable",name:{kind:"Name",value:"currency"}}},{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"centAmount"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"discounted"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"centAmount"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BundleProductReferencedCatalogFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"images"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"attributesRaw"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"availability"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"channels"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"results"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"availability"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"availableQuantity"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"BundleProductPriceFragment"},directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BundleProductReferencedFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"masterData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"current"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[{kind:"Argument",name:{kind:"Name",value:"acceptLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLanguage"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"masterVariant"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BundleProductReferencedCatalogFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"variants"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BundleProductReferencedCatalogFragment"},directives:[]}]}}]}}]}}]}}]};function r(e){return t.a(a,e)}},85283:function(e,n,i){"use strict";i.d(n,{z:function(){return a}});var t=i(17378);let a=e=>new t.cA({errorMessage:e})},18186:function(e,n,i){"use strict";i.d(n,{o:function(){return t}});let t=(e,n)=>n.some(e=>e.variants.length>1&&e.variants.some(n=>n.price.amount!==e.price.amount))?0:n.reduce((e,n)=>e+n.price.amount,0)-e},44165:function(e,n,i){"use strict";i.d(n,{E:function(){return t}});let t=(e,n)=>e.find(e=>e.name===n)?.referencedResourceSet},11561:function(e,n,i){"use strict";i.d(n,{P:function(){return t}});let t=(e,n)=>e.find(e=>e.name===n)?.value},93602:function(e,n,i){"use strict";i.d(n,{l:function(){return a}});var t=i(97859);let a=e=>e.productType?.key===t.X7},83671:function(e,n,i){"use strict";i.d(n,{o:function(){return t}});let t=e=>[...e].sort((e,n)=>Number(e.orderHint)-Number(n.orderHint))},19720:function(e,n,i){"use strict";i.d(n,{x:function(){return a}});var t=i(97859);let a=e=>{let n=e=>e.attributesRaw.find(e=>e.name===t.Ls.SORT_ORDER);return e.sort((e,i)=>n(e)?.value-n(i)?.value)}},26751:function(e,n,i){"use strict";i.d(n,{w:function(){return r}});let t=(e,n)=>e.price?.value.centAmount-n.price?.value.centAmount,a=(e,n)=>Math.min(e.price?.value.centAmount,e.price?.discounted?.value.centAmount)-Math.min(n.price?.value.centAmount,n.price?.discounted?.value.centAmount),r=function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.sort(n?a:t)}},81833:function(e,n,i){"use strict";var t=i(31549);i(44194);var a=i(37625);n.Z=e=>{let{content:n="",values:i,children:r}=e,l=(0,a.W)();return"function"==typeof r?r(l(n,i)):(0,t.jsx)(t.Fragment,{children:l(n,i)})}},98905:function(e,n,i){"use strict";i.d(n,{E:function(){return W}});var t,a,r,l,d=i(44194),u=i(15627),s=i(3009),o=i(46534),c=i(72712),m=i(54012),p=i(6033),k=i(90601);let v=Object.values(k.v),g=v.reduce((e,n)=>({...e,[n]:0}),{});var f=()=>{let e=(0,m.Z)(),{data:n}=(0,p.Z)();return(0,d.useMemo)(()=>
5{if(!e.data)return g;let i={...g};for(let t of v){let a=n?.[t],r=e.data[t],l=r?.fields.bundles.find(e=>e.fields.slug===a);i[t]=100*(l?.fields.couponDiscount||0)}return i},[e.data,n])},y=i(66570),h=i(45273),S=i(24841),N=i(10004),b=i(70850),P=i(35796),F=i(36937);(t=r||(r={})).AppOne="app-one",t.AppPlus="app-plus",t.AllAccess="subscription",t.StrengthPlus="pl-a-sub-strength",(a=l||(l={})).AllAccess="allAccessMembershipPlan",a.AppOne="appOneMembershipPlan",a.AppPlus="appPlusMembershipPlan",a.AppOneAnnual="appOneAnnualMembershipPlan",a.AppPlusAnnual="appPlusAnnualMembershipPlan",a.StrengthPlus="strengthPlusMembershipPlan";var A=i(36986),I=i(38784);let E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return C({shouldUseCTPrices:(0,P.Z)()("aamCTPrices"),...e})},C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{shouldUseCTPrices:n=!1,skipCMSFallback:i}=e,t=(0,s.bU)(),a=n?[r.AllAccess]:[],{loading:l,error:u,products:o}=(0,b.Lv)(a);(0,d.useEffect)(()=>{window&&!window.sessionStorage.getItem("aamSessionToken")&&(0===a.length&&((0,F.Z)("useFetchAAMPrice",{codePath:"packages/@ecomm/subscription-plans/useFetchAAMPrice.ts",function:"useFetchAAMPrice:fetchedKeys",message:"No keys provided"}),sessionStorage.setItem("aamSessionToken","true")),u&&((0,F.Z)("useFetchAAMPrice",{codePath:"packages/@ecomm/subscription-plans/useFetchAAMPrice.ts",function:"useFetchAAMPrice:useProductsByKeysRaw",message:"Error fetching products",error:u}),sessionStorage.setItem("aamSessionToken","true")))},[a.length,u]);let c=o?.[r.AllAccess],m=(0,d.useMemo)(()=>Number((0,I.CJ)(c,"fulfillment-price-in-cents",t)),[c,t]);return n&&(l||m)||i?m:(0,A.f9)(t)};var T=i(65407),R=i(42689);let w=e=>{switch(e){case R.go.EnglishUnitedStates:return 249;case R.go.EnglishCanada:return 349;case R.go.EnglishUnitedKingdom:case R.go.GermanGermany:return 249;case R.go.EnglishAustralia:return 349;default:return 249}},_=e=>{switch(e){case R.go.EnglishUnitedStates:return 499;case R.go.EnglishCanada:return 699;case R.go.EnglishUnitedKingdom:case R.go.GermanGermany:return 499;case R.go.EnglishAustralia:return 699;default:return 499}};var D=i(63283),M=e=>{let n=(0,d.useMemo)(()=>e?.reduce((e,n)=>({[n.level]:n,...e}),{}),[e]),i=(0,d.useCallback)((e,i,t)=>{let a=n[i.level].identifiers.find(n=>n.billingFrequency===e),r=a?.paidSubscriptionPlan?.priceInCents;return r?(0,u.Z)(t,{price:(0,D.$)(r)}):i.price},[n]),t=(0,d.useCallback)((e,i)=>{try{let t=n?.[i].identifiers.find(n=>n.billingFrequency===e);return t?.paidSubscriptionPlan?.priceInCents||0}catch(e){return 0}},[n]);return{toDisplayPrice:i,toDiscountText:(0,d.useCallback)((e,i)=>{let t=n[e.level].identifiers,a="",r=0,l="",d=0;return t.filter(e=>{let{paidSubscriptionPlan:n}=e;return!!n}).forEach(e=>{switch(e.billingFrequency){case T.jH.Monthly:r=e.paidSubscriptionPlan?.priceInCents,a=(0,D.$)(r);break;case T.jH.Annual:d=e.paidSubscriptionPlan?.priceInCents,l=(0,D.$)(d)}}),(0,u.Z)(e.discountText,{monthlyPrice:a,annualPrice:l,discount:(0,D.k)(r,d),daysOfTrial:i})},[n]),toPriceInCents:t}},L=i(50376),B=i(91341),V=i(19257);let O={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TierPricing"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"platform"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"storeSlug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscriptionTiers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"storeSlug"},value:{kind:"Variable",name:{kind:"Name",value:"storeSlug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifiers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"platform"},value:{kind:"Variable",name:{kind:"Name",value:"platform"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"billingFrequency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paidSubscriptionPlan"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"displayPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"priceInCents"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"level"},arguments:[],directives:[]}]}}]}}]}}]};var x=()=>{var e;let{errorReporter:{reportError:n}}=(0,L.T)(),i=(0,s.bU)(),{data:t,error:a}=(e={variables:{storeSlug:(0,B.R)(i),platform:"peloton"},suspend:!1,reportSwallowedError:n,throwError:!1},V.aM(O,e)),{toPriceInCents:r}=M(t?.subscriptionTiers?.nodes??[]);return(0,d.useMemo)(()=>
5{if(a)return{};let e=r(T.jH.Monthly,1),n=r(T.jH.Monthly,2),t=r(T.jH.Annual,1),l=r(T.jH.Annual,2),d=w(i),u=_(i);return{appPriceMonthlyL1:(0,y.DV)(e),appPriceMonthlyL2:(0,y.DV)(n),appPriceAnnualL1:(0,y.DV)(t),appPriceAnnualL2:(0,y.DV)(l),appPriceAnnualBreakdownL1:(0,y.DV)(t/12),appPriceAnnualBreakdownL2:(0,y.DV)(l/12),appSavingsL1:Math.floor((0,y.DV)(12*e-t)),appSavingsL2:Math.floor((0,y.DV)(12*n-l)),appPriceMontlyL1NyPromo:(0,y.DV)(d),appPriceMontlyL2NyPromo:(0,y.DV)(u)}},[r,a])};let U=()=>G((0,P.Z)()("appDiscoveryPagesCTData")),G=e=>{let n=(0,s.bU)(),i=e?[r.AppOne,r.AppPlus]:[],{products:t,loading:a}=(0,b.Lv)(i),l=t?.[r.AppOne],u=t?.[r.AppPlus];return(0,d.useMemo)(()=>{if((!l||!u)&&!a||!e)return null;let i=Z(l,n),t=Z(u,n);return{appPriceMonthlyL1:i.monthlyPrice,appPriceAnnualL1:i.annualPrice,appPriceAnnualBreakdownL1:i.annualPriceBreakdown,appSavingsL1:i.savings,appPriceMonthlyL2:t.monthlyPrice,appPriceAnnualL2:t.annualPrice,appPriceAnnualBreakdownL2:t.annualPriceBreakdown,appSavingsL2:t.savings}},[a,e,l,u,n])},Z=(e,n)=>{let i=e?.masterData?.current?.masterVariant?.attributesRaw||[],t=e?.masterData?.current?.variants[0]?.attributesRaw||[],a=Number((0,I.ny)(i,"fulfillment-price-in-cents",n)),r=Number((0,I.ny)(t,"fulfillment-price-in-cents",n));return{monthlyPrice:(0,y.DV)(a),annualPrice:(0,y.DV)(r),annualPriceBreakdown:(0,y.DV)(r/12),savings:Math.floor((0,y.DV)(12*a-r))}},$=e=>(0,u.Z)("{price, number, currency}",{price:(0,y.DV)(e)}),j=(e,n)=>{let i=e-n;return e===i?$(e):n<0?`_${$(e)}_ ~${$(i)}~`:`_${$(i)}_ ~${$(e)}~`},H=e=>` ~${$(e)}~`,W=()=>{let e=(0,s.bU)(),n=(0,N.Z)(),i=E(),t=(0,o.Z)(k.v.Bike),a=(0,o.Z)(k.v.BikePlus),r=(0,o.Z)(k.v.Tread),l=(0,o.Z)(k.v.TreadPlus),u=(0,o.Z)(k.v.TreadFlex),m=(0,o.Z)(k.v.RainforestCafe),p=(0,o.Z)(k.v.Row),v=(0,o.Z)(k.v.RefurbishedBike),g=(0,o.Z)(k.v.RefurbishedBikePlus),b=(0,S.y)("BIKE",e),P=(0,S.y)("BIKE_PLUS",e),F=x(),A=U()||F,I=f(),C={[k.v.Bike]:(0,h.L)(e,k.v.Bike,12),[k.v.BikePlus]:(0,h.L)(e,k.v.BikePlus,12),[k.v.Tread]:(0,h.L)(e,k.v.Tread,12),[k.v.TreadPlus]:(0,h.L)(e,k.v.TreadPlus,12),[k.v.TreadFlex]:(0,h.L)(e,k.v.TreadFlex,12),[k.v.RainforestCafe]:(0,h.L)(e,k.v.RainforestCafe,12),[k.v.Row]:(0,h.L)(e,k.v.Row,12),[k.v.RefurbishedBike]:(0,h.L)(e,k.v.RefurbishedBike,12),[k.v.RefurbishedBikePlus]:(0,h.L)(e,k.v.RefurbishedBikePlus,12),[k.v.Accessories]:(0,h.L)(e,k.v.Accessories,12)},T=(0,d.useCallback)(e=>{let n=I[e.bundleType],i=n>0,t=e.total,a=i?e.total-n:e.total,r=e.totalBeforeShipping,l=e.shippingEstimate,d=e.monthly,u=e.term,s=j(t,n),o=i?H(t):"",m=C[e.bundleType],p=(0,c.j2)(a,12,m,e.financingPartner);return[(0,y.DV)(t),(0,y.DV)(a),(0,y.DV)(r),(0,y.DV)(l),(0,y.DV)(d),u,s,o,(0,y.DV)(p)]},[I]);return(0,d.useMemo)(()=>{let[e,d,s,o,c,k,f,h,S]=T(t),[N,F,I,E,C,R,w,_,D]=T(a),[M,L,B,V,O,x,U,G,Z]=T(r),[$,j,H,W,K,z,q,Y,Q]=T(l),[X,J,ee,en,ei,et,ea,er,el]=T(u),[ed,eu,es,eo,ec,em,ep,ek,ev]=T(m),{membershipPrice:eg}=m,[ef,ey,eh,eS,eN,eb,eP,eF,eA]=T(p),[eI,eE,eC,eT,eR,ew,e_,eD,eM]=T(v),[eL,eB,eV,eO,ex,eU,eG,eZ,e$]=T(g),{setup:ej,monthly:eH}=b,{setup:eW,monthly:eK}=P;return{...A,bikeTotal:e,bikeDiscountTotal:d,bikeTotalWithStrikethrough:f,bikeOptionalStrikethrough:h,bikeTotalBeforeShipping:s,bikeShippingEstimate:o,bikeMonthlyPayment:c,bikeMaxTerm:k,bikeMonthlyFinancingPrice:S,bikePlusTotal:N,bikePlusDiscountTotal:F,bikePlusTotalWithStrikethrough:w,bikePlusOptionalStrikethrough:_,bikePlusTotalBeforeShipping:I,bikePlusShippingEstimate:E,bikePlusMonthlyPayment:C,bikePlusMaxTerm:R,bikePlusMonthlyFinancingPrice:D,treadTotal:M,treadDiscountTotal:L,treadTotalWithStrikethrough:U,treadOptionalStrikethrough:G,treadTotalBeforeShipping:B,treadShippingEstimate:V,treadMonthlyPayment:O,treadMaxTerm:x,treadMonthlyFinancingPrice:Z,treadPlusTotal:$,treadPlusDiscountTotal:j,treadPlusTotalWithStrikethrough:q,treadPlusOptionalStrikethrough:Y,treadPlusTotalBeforeShipping:H,treadPlusShippingEstimate:W,treadPlusMonthlyPayment:K,treadPlusMaxTerm:z,treadPlusMonthlyFinancingPrice:Q,treadFlexTotal:X,treadFlexDiscountTotal:J,treadFlexTotalWithStrikethrough:ea,treadFlexOptionalStrikethrough:er,treadFlexTotalBeforeShipping:ee,treadFlexShippingEstimate:en,treadFlexMonthlyPayment:ei,treadFlexMaxTerm:et,treadFlexMonthlyFinancingPrice:el,guideTotal:ed,guideDiscountTotal:eu,guideTotalWithStrikethrough:ep,guideOptionalStrikethrough:ek,guideTotalBeforeShipping:es,guideShippingEstimate:eo,guideMonthlyPayment:ec,guideMaxTerm:em,guideStrikethrough:ed,guideMonthlyFinancingPrice:ev,rowTotal:ef,rowDiscountTotal:ey,rowTotalWithStrikethrough:eP,rowOptionalStrikethrough:eF,rowTotalBeforeShipping:eh,rowShippingEstimate:eS,rowMonthlyPayment:eN,rowMaxTerm:eb,rowMonthlyFinancingPrice:eA,refurbishedBikeTotal:eI,refurbishedBikeDiscountTotal:eE,refurbishedBikeTotalWithStrikethrough:e_,refurbishedBikeOptionalStrikethrough:eD,refurbBikeMonthlyPayment:eR,refurbishedBikeTotalBeforeShipping:eC,refurbishedBikeShippingEstimate:eT,refurbishedBikeMaxTerm:ew,refurbishedBikeMonthlyFinancingPrice:eM,refurbishedBikePlusTotal:eL,refurbishedBikePlusDiscountTotal:eB,refurbishedBikePlusTotalWithStrikethrough:eG,refurbishedBikePlusOptionalStrikethrough:eZ,refurbBikePlusMonthlyPayment:ex,refurbishedBikePlusTotalBeforeShipping:eV,refurbishedBikePlusShippingEstimate:eO,refurbishedBikePlusMaxTerm:eU,refurbishedBikePlusMonthlyFinancingPrice:e$,digitalPrice:(0,y.DV)(n),membershipPrice:(0,y.DV)(i),guideMembershipPrice:(0,y.DV)(eg),bikeRentalSetupPrice:ej,bikeRentalMonthlyPrice:eH,bikePlusRentalSetupPrice:eW,bikePlusRentalMonthlyPrice:eK}},[T,t,a,r,l,u,m,p,v,g,b,P,A,n,i])}},65089:function(e,n,i){"use strict";i.d(n,{f:function(){return a}});var t=i(35796);let a=()=>(0,t.Z)()("affirmZeroPercentPromo")},21160:function(e,n,i){"use strict";i.d(n,{U:function(){return l},V:function(){return d}});var t=i(35796),a=i(76953);let r="zero_percent_financing",l=()=>(0,t.Z)()("zero_percent_financing"),d=()=>{let e=(0,t.Z)()(r),n=(0,a.Z)(r);return{isToggleActive:e,cfus:n?.cfus?.cfus||[]}}},76953:function(e,n,i){"use strict";var t=i(95206);n.Z=e=>{let n=(0,t.b6)();return n[e]?.variables}},69862:function(e,n,i){"use strict";var t=i(42689),a=i(57223);
5n.Z=e=>({[t.go.EnglishUnitedStates]:a.F.Usd,[t.go.EnglishUnitedKingdom]:a.F.Gbp,[t.go.EnglishCanada]:a.F.Cad,[t.go.GermanGermany]:a.F.Eur,[t.go.GermanAustria]:a.F.Eur,[t.go.EnglishAustralia]:a.F.Aud,[t.go.EnglishBeta]:a.F.Usd,[t.go.SpanishMexico]:a.F.Usd,[t.go.FrenchCanada]:a.F.Cad})[e]},78797:function(e,n,i){"use strict";var t=i(31549);i(44194),n.Z=e=>(0,t.jsxs)("svg",{role:"img",width:"20",height:"20",viewBox:"0 0 20 20",...e,children:[(0,t.jsx)("title",{children:"Close"}),(0,t.jsx)("path",{d:"M11.414 10l8.293-8.293A.999.999 0 1 0 18.293.293L10 8.586 1.707.293A.999.999 0 1 0 .293 1.707L8.586 10 .293 18.293a.999.999 0 1 0 1.414 1.414L10 11.414l8.293 8.293a.997.997 0 0 0 1.414 0 .999.999 0 0 0 0-1.414L11.414 10z"})]})},72748:function(e,n,i){"use strict";i.d(n,{H:function(){return r}});var t=i(91618),a=i(34835);let r=(0,i(86082).B)(t.Z,a.r)},86082:function(e,n,i){"use strict";i.d(n,{B:function(){return l}});var t=i(31549),a=i(44194),r=i(21802);function l(e,n){return a.forwardRef((i,a)=>r.T?(0,t.jsx)(n,{...i,ref:a}):(0,t.jsx)(e,{...i,ref:a}))}},99848:function(e,n,i){"use strict";i.d(n,{e:function(){return r}});var t=i(31549);i(44194);var a=i(80812);let r=e=>{let{textColor:n="#060809",titleId:i="affirm-logo-title",swoopColor:r="#4a4af4",...l}=e;return(0,t.jsxs)("svg",{role:"img",viewBox:"0 0 325.06 129.71","aria-labelledby":i,...l,children:[(0,t.jsx)("title",{id:i,children:"Affirm"}),(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{style:{fill:n},d:(0,a.f9)(`
6          M83.87,130.33c-8.82,0-19,4.15-24.47,8.54l5,10.59c4.42-4,11.56-7.49,18-7.49,6.12,0,9.5,2,9.5,6.17,0,2.77-2.24,
7          4.18-6.47,4.73-15.82,2.05-28.22,6.42-28.22,18.61,0,9.67,6.88,15.51,17.63,15.51a20.76,20.76,0,0,0,
8          17.75-9.89v8.32h14.3V150.56C106.91,136.17,96.91,130.33,83.87,130.33Zm-5.32,45.48c-4,0-6-2-6-5.24,0-6,
9          6.76-8.1,19.1-9.42C91.62,169.23,86.16,175.81,78.55,175.81Z
10        `),transform:"translate(-57.23 -57.27)"}),(0,t.jsx)("path",{style:{fill:n},d:(0,a.f9)(`
11          M227.44,131.9v53.5h15.3V159.62c0-12.25,7.42-15.85,12.59-15.85a11.69,11.69,0,0,1,6.54,1.93l2.79-14.14a17.41,
12          17.41,0,0,0-6.86-1.24c-7.87,0-12.81,3.48-16.07,10.57v-9Z
13        `),transform:"translate(-57.23 -57.27)"}),(0,t.jsx)("path",{style:{fill:n},d:(0,a.f9)(`
14          M335.61,130.33a21.22,21.22,0,0,0-17.29,9.39c-2.92-6-9.12-9.39-16.54-9.39A17.73,17.73,0,0,0,285.5,
15          140V131.9H270.76v53.5h15.31V157.87c0-9.89,5.18-14.63,10-14.63,4.37,0,8.39,2.83,8.39,
16          10.14v32h15.29V157.87c0-10,5.05-14.63,10.11-14.63,4,0,8.31,2.94,8.31,10V185.4h15.29v-37C353.48,136.4,345.39,
17          130.33,335.61,130.33Z
18        `),transform:"translate(-57.23 -57.27)"}),(0,t.jsx)("path",{style:{fill:n},d:(0,a.f9)(`
19          M190.19,131.9H176.33v-5.44c0-7.08,4-9.1,7.53-9.1a15.26,15.26,0,0,1,6.85,
20          1.71l4.72-10.79s-4.78-3.13-13.48-3.13c-9.78,0-20.91,5.51-20.91,22.82v3.93H137.83v-5.44c0-7.08,4-9.1,
21          7.53-9.1a14.53,14.53,0,0,1,6.85,1.71l4.72-10.79c-2.82-1.65-7.34-3.13-13.48-3.13-9.78,0-20.91,5.51-20.91,
22          22.82v3.93h-8.88v11.8h8.88v41.7h15.29V143.7H161v41.7h15.29V143.7h13.86Z
23        `),transform:"translate(-57.23 -57.27)"}),(0,t.jsx)("rect",{style:{fill:n},x:"142.08",y:"74.63",width:"15.28",height:"53.5"}),(0,t.jsx)("path",{style:{fill:r},d:(0,a.f9)(`
24          M288.44,57.27c-41.31,0-78.12,28.67-88.56,65.53h15c8.73-27.45,38.35-51.55,73.59-51.55,42.84,0,79.86,32.61,
25          79.86,83.39A104.34,104.34,0,0,1,364,185.4h14.52l.14-.5a122.91,122.91,0,0,0,3.59-30.26C382.29,98,341,57.27,
26          288.44,57.27Z
27        `),transform:"translate(-57.23 -57.27)"})]})]})}},30501:function(e,n,i){"use strict";i.d(n,{g:function(){return o}});var t,a,r=i(31549);i(44194);var l=i(80812);(t=a||(a={})).Small="small",t.Medium="medium",t.Large="large";let d={width:"33px",height:"12px"},u={small:d,medium:{width:"51px",height:"20px"},large:{width:"66px",height:"25px"}},s=e=>u?.[e]||d,o=e=>{let{ariaID:n,primaryColor:i="#000000",secondaryColor:t="#AA8FFF",size:a="small",...d}=e,u=`zip-icon-title${n?`-${n}`:""}`,{width:o,height:c}=s(a);return(0,r.jsxs)("svg",{viewBox:"0 0 33 12",fill:"none",height:c,width:o,...d,children:[(0,r.jsx)("title",{id:u,children:"Zip"}),(0,r.jsx)("mask",{id:`mask0_234_6088${n?`-${n}`:""}`,maskUnits:"userSpaceOnUse",x:"0",y:"0",width:o,height:c,children:(0,r.jsx)("path",{d:"M33 0H0V12H33V0Z",fill:"white"})}),(0,r.jsxs)("g",{mask:"url(#mask0_234_6088)",children:[(0,r.jsx)("path",{d:(0,l.f9)(`M0.852393 9.31742L1.13172 11.363H10.9112L10.5912 9.02036H6.03134L5.9915 8.73007L10.1911 
28          6.09228L9.91052 4.04297H0.131836L0.45185 6.3852H5.01929L5.05913 6.67812L0.852393 9.31742Z`),fill:i}),(0,r.jsx)("path",{d:"M11.0466 4.04297L12.0469 11.363H21.8336L20.8333 4.04297H11.0466Z",fill:t}),(0,r.jsx)("path",{d:(0,l.f9)(`M32.0964 6.67816C31.8707 5.03298 30.433 4.03584 28.4785 4.04301H21.9688L22.9686
29            11.3634H25.8974L25.6969 9.89916H28.796C31.2349 9.89878 32.351 8.53295 32.0964 6.67816ZM28.4793
30            7.84683L25.4176 7.84984L25.1777 6.09307L28.2566 6.09533C28.9805 6.10325 29.3509 6.46968 29.4109
31            6.97108C29.4478 7.29378 29.2834 7.84645 28.4793 7.84645V7.84683Z`),fill:i}),(0,r.jsx)("path",{d:(0,l.f9)(`M13.9706 3.07021C14.4857 2.5732 14.3959 1.74552 13.7701 1.22154C13.1443 0.697552 
32            12.2194 0.675681 11.7044 1.17269C11.1893 1.6697 11.2791 2.49737 11.9049 3.02136C12.5307
33            3.54535 13.4556 3.56722 13.9706 3.07021Z`),fill:i})]})]})}},96700:function(e,n,i){"use strict";var t=i(19969),a=i(55851);let r=(0,i(21723).createGlobalStyle)([".ReactModalPortal > *{opacity:0;}.ReactModalPortal .ReactModal__Overlay{align-items:flex-start;display:flex;justify-content:center;overflow:auto;overscroll-behavior:contain;scroll-behavior:smooth;transition:opacity 400ms;-webkit-overflow-scrolling:touch;}.ReactModalPortal .ReactModal__Content--after-open{opacity:1;&.video-modal{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:",";}}.ReactModalPortal .ReactModal__Content--before-close{opacity:0;}.ReactModalPortal .ReactModal__Overlay--after-open{opacity:1;}.ReactModalPortal .ReactModal__Overlay--before-close{pointer-events:none;opacity:0;}.ReactModal__Body--open{overflow:hidden;}"],e=>!0===e.transparent?"none":e.darkMode?t.S:a.i);n.Z=r},69330:function(e,n,i){"use strict";i.d(n,{s:function(){return a},Z:function(){return w}});var t,a,r=i(31549),l=i(19969),d=i(55851),u=i(46544),s=i(14517),o=i(76253),c=i(44194),m=i(24940),p=i.n(m),k=i(21723),v=i(29954),g=i(35622),f=i(78797),y=i(22933);class h extends c.Component{static #e=this.defaultProps={isOpen:!0};componentDidMount(){this.saveScrollPosition()}getSnapshotBeforeUpdate(e){return!e.isOpen&&this.props.isOpen&&this.saveScrollPosition(),this.savedScrollPosition}componentDidUpdate(e){e.isOpen&&!this.props.isOpen&&setTimeout(this.applySavedScrollPosition,400)}componentWillUnmount(){this.props.isOpen&&this.applySavedScrollPosition()}constructor(...e){super(...e),this.applySavedScrollPosition=()=>{requestAnimationFrame(()=>window.scrollTo({top:this.savedScrollPosition})),document.body.style.width="",document.body.style.position="",document.body.style.top=""},this.saveScrollPosition=()=>{this.savedScrollPosition=window.scrollY||document.documentElement.scrollTop}}}var S=h,N=i(95585),b=i(96700);(t=a||(a={}))[t.Narrow=460]="Narrow",t[t.Normal=780]="Normal",t[t.Medium=864]="Medium",t[t.SemiWide=960]="SemiWide",t[t.Wide=1024]="Wide",t[t.ExtraWide=1280]="ExtraWide",t[t.MaxWide=1400]="MaxWide",p().defaultStyles.overlay={...p().defaultStyles.overlay,backgroundColor:`${(0,o.DZ)(.25,l.S)}
33`,height:"100%",padding:0,zIndex:99999};let P=(0,k.default)(p()).withConfig({componentId:"sc-241ed4fd-0"})(["align-items:center;text-align:center;justify-content:center;max-width:","px;width:",";outline:none;--ecomm-modal-margin-bottom:40px;--ecomm-modal-margin-top:0px;margin-bottom:40px;"," "," ",""],e=>{let{width:n}=e;return n},e=>{let{useFlexibleWidth:n}=e;return n?"auto":"100%"},g.BC.iPhone6`
34    margin: 0 20px 40px 20px;
35  `,g.BC.tablet`
36    --ecomm-modal-margin-bottom: 80px;
37    --ecomm-modal-margin-top: 20px;
38    margin: 20px 40px 80px;
39  `,g.BC.desktop`
40    --ecomm-modal-margin-bottom: 90px;
41    --ecomm-modal-margin-top: 30px;
42    margin: 30px 0 90px;
43  `),F=(0,k.default)(f.Z).withConfig({componentId:"sc-241ed4fd-1"})([""," display:block;fill:",";height:16px;width:16px;",""],(0,v.b$)("height, width",50,"linear"),d.i,g.BC.tablet`
44    height: 20px;
45    width: 20px;
46  `),A=k.default.div.withConfig({componentId:"sc-241ed4fd-2"})(["cursor:pointer;",""],g.BC.tablet`
47    ${(0,v.$t)({property:"opacity",from:".8",to:"1"})}
48  `),I=k.default.button.withConfig({componentId:"sc-241ed4fd-3"})(["align-items:center;display:flex;height:50px;justify-content:flex-end;width:100%;padding-right:5px;cursor:default;",""],y.fz),E=(0,k.css)(["border-radius:5px;overflow-x:hidden;"]),C=k.default.div.withConfig({componentId:"sc-241ed4fd-4"})(["background-color:",";",";height:100%;width:100%;",""],u.U.light,E,e=>{let{padded:n=!0}=e;return n?`
49        padding: 40px 20px;
50
51        ${g.BC.tablet`
52          padding: 40px 60px;
53        `}
54      `:""}),T=k.default.div.withConfig({componentId:"sc-241ed4fd-5"})(["background:white;height:1px;position:fixed;top:-1px;width:100%;"]);class R extends S{render(){let{isOpen:e=!0,width:n,contentLabel:i,closeHandler:t,reactModalStyle:a,useFlexibleWidth:l,autoFocusCloseButton:d=!1,appElement:u,contentClassname:o,contentContainerClassname:c,...m}=this.props;if(e){let e=(0,N.Z)();p().setAppElement(e)}return(0,r.jsxs)(P,{isOpen:e,shouldCloseOnOverlayClick:!0,contentLabel:i,onAfterOpen:this.handleAfterOpen,onRequestClose:this.handleRequestClose,closeTimeoutMS:400,style:a,width:n||780,useFlexibleWidth:l,role:"dialog",aria:{modal:"true"},appElement:u,className:o,children:[(0,r.jsx)(b.Z,{}),(0,r.jsx)(T,{})," ",(0,r.jsx)(I,{autoFocus:d,onClick:this.handleRequestClose,"data-test-id":"dismissModal","aria-label":"Close",children:(0,r.jsx)(A,{children:(0,r.jsx)(F,{})})}),(0,r.jsx)(C,{...m,className:(0,s.Z)(c,m.className)})]})}constructor(...e){super(...e),this.handleAfterOpen=()=>{this.props.modalOpened?.(),this.props.openHandler&&this.props.openHandler();let e=(0,N.Z)();document.body.style.width="100%",document.body.style.top=e?`${e.getBoundingClientRect().y}px`:"0px",document.body.style.position="fixed"},this.handleRequestClose=()=>{this.props.closeHandler&&this.props.closeHandler(),this.props.modalClosed?.(),this.applySavedScrollPosition()}}}var w=R},95585:function(e,n){"use strict";n.Z=()=>{let e=document.getElementById("root"),n=document.getElementById("__next");return e||n}},66570:function(e,n,i){"use strict";i.d(n,{DV:function(){return t},Hv:function(){return r},Ml:function(){return a}});let t=e=>e/100,a=e=>Math.ceil(e/100),r=e=>Number(t(e).toFixed(2))},36986:function(e,n,i){"use strict";i.d(n,{f9:function(){return l},Sm:function(){return u},zf:function(){return d}});var t=i(91341),a=JSON.parse('{"dotcom":{"allAccessMembershipPlan":{"__typename":"MembershipPlan","priceInCents":4999,"displayPrice":"$49.99"},"guideMembershipPlan":{"__typename":"MembershipPlan","priceInCents":2400,"displayPrice":"$24"},"appOneMembershipPlan":{"__typename":"MembershipPlan","priceInCents":1299,"displayPrice":"$12.99"},"appPlusMembershipPlan":{"__typename":"MembershipPlan","priceInCents":2899,"displayPrice":"$28.99"},"appOneAnnualMembershipPlan":{"__typename":"MembershipPlan","priceInCents":12900,"displayPrice":"$129"},"appPlusAnnualMembershipPlan":{"__typename":"MembershipPlan","priceInCents":28900,"displayPrice":"$289"},"faasBikePlusMembershipPlan":{"__typename":"MembershipPlan","priceInCents":12499,"displayPrice":"$124.99"}},"webstore_gb":{"allAccessMembershipPlan":{"__typename":"MembershipPlan","priceInCents":4500,"displayPrice":"\xa345"},"guideMembershipPlan":{"__typename":"MembershipPlan","priceInCents":2400,"dis
54playPrice":"\xa324"},"appOneMembershipPlan":{"__typename":"MembershipPlan","priceInCents":1299,"displayPrice":"\xa312.99"},"appPlusMembershipPlan":{"__typename":"MembershipPlan","priceInCents":2899,"displayPrice":"\xa328.99"},"appOneAnnualMembershipPlan":{"__typename":"MembershipPlan","priceInCents":12900,"displayPrice":"\xa3129"},"appPlusAnnualMembershipPlan":{"__typename":"MembershipPlan","priceInCents":28900,"displayPrice":"\xa3289"},"faasBikePlusMembershipPlan":{"__typename":"MembershipPlan","priceInCents":12500,"displayPrice":"\xa3125"}},"ca_webstore":{"allAccessMembershipPlan":{"__typename":"MembershipPlan","priceInCents":5999,"displayPrice":"CA$59.99"},"guideMembershipPlan":{"__typename":"MembershipPlan","priceInCents":3000,"displayPrice":"CA$30"},"appOneMembershipPlan":{"__typename":"MembershipPlan","priceInCents":1699,"displayPrice":"CA$16.99"},"appPlusMembershipPlan":{"__typename":"MembershipPlan","priceInCents":3499,"displayPrice":"CA$34.99"},"appOneAnnualMembershipPlan":{"__typename":"MembershipPlan","priceInCents":null,"displayPrice":null},"appPlusAnnualMembershipPlan":{"__typename":"MembershipPlan","priceInCents":null,"displayPrice":null},"faasBikePlusMembershipPlan":{"__typename":"MembershipPlan","priceInCents":17499,"displayPrice":"CA$174.99"}},"de_webstore":{"allAccessMembershipPlan":{"__typename":"MembershipPlan","priceInCents":4500,"displayPrice":"€45"},"guideMembershipPlan":{"__typename":"MembershipPlan","priceInCents":2400,"displayPrice":"€24"},"appOneMembershipPlan":{"__typename":"MembershipPlan","priceInCents":1299,"displayPrice":"€12.99"},"appPlusMembershipPlan":{"__typename":"MembershipPlan","priceInCents":2899,"displayPrice":"€28.99"},"appOneAnnualMembershipPlan":{"__typename":"MembershipPlan","priceInCents":null,"displayPrice":null},"appPlusAnnualMembershipPlan":{"__typename":"MembershipPlan","priceInCents":null,"displayPrice":null},"faasBikePlusMembershipPlan":{"__typename":"MembershipPlan","priceInCents":12900,"displayPrice":"€129"}},"au_webstore":{"allAccessMembershipPlan":{"__typename":"MembershipPlan","priceInCents":6500,"displayPrice":"A$65"},"guideMembershipPlan":{"__typename":"MembershipPlan","priceInCents":3500,"displayPrice":"A$35"},"appOneMembershipPlan":{"__typename":"MembershipPlan","priceInCents":1699,"displayPrice":"A$16.99"},"appPlusMembershipPlan":{"__typename":"MembershipPlan","priceInCents":3999,"displayPrice":"A$39.99"},"appOneAnnualMembershipPlan":{"__typename":"MembershipPlan","priceInCents":16900,"displayPrice":"A$169"},"appPlusAnnualMembershipPlan":{"__typename":"MembershipPlan","priceInCents":39900,"displayPrice":"A$399"},"faasBikePlusMembershipPlan":{"__typename":"MembershipPlan","priceInCents":null,"displayPrice":null}},"at_webstore":{"allAccessMembershipPlan":{"__typename":"MembershipPlan","priceInCents":4500,"displayPrice":"€45"},"guideMembershipPlan":{"__typename":"MembershipPlan","priceInCents":2400,"displayPrice":"€24"},"appOneMembershipPlan":{"__typename":"MembershipPlan","priceInCents":1299,"displayPrice":"€12.99"},"appPlusMembershipPlan":{"__typename":"MembershipPlan","priceInCents":2899,"displayPrice":"€28.99"},"appOneAnnualMembershipPlan":{"__typename":"MembershipPlan","priceInCents":null,"displayPrice":null},"appPlusAnnualMembershipPlan":{"__typename":"MembershipPlan","priceInCents":null,"displayPrice":null},"faasBikePlusMembershipPlan":{"__typename":"MembershipPlan","priceInCents":12900,"displayPrice":"€129"}}}');let r=(e,n)=>a[e][n].priceInCents,l=e=>r((0,t.R)(e),"allAccessMembershipPlan"),d=e=>r((0,t.R)(e),"guideMembershipPlan"),u=e=>r((0,t.R)(e),"faasBikePlusMembershipPlan")},45273:function(e,n,i){"use strict";i.d(n,{L:function(){return u}});var t=i(42689),a=i(19640),r=i(28533),l=i(35796),d=i(90601);let u=(e,n,i)=>{let u=(0,l.Z)(),s=u("optimizeFinancingTerms"),o=u("holidayFinancingTerms"),c=u("updateKlarnaDEFinancingTerm"),m=o?.0499:.1499,p=c?.143:.129,k={[t.go.EnglishUnitedStates]:{[d.v.Bike]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:m,[a.Rh.ThirtyNine]:m},[d.v.BikePlus]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:m,[a.Rh.FortyThree]:m},[d.v.Tread]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:m,[a.Rh.FortyThree]:m},[d.v.TreadPlus]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:m,[a.Rh.FortyThree]:m},[d.v.TreadFlex]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:m,[a.Rh.FortyThree]:m},[d.v.RainforestCafe]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:m},[d.v.Row]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:m,[a.Rh.FortyThree]:m}},[t.go.EnglishCanada]:{[d.v.Bike]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:m,[a.Rh.ThirtyNine]:m},[d.v.BikePlus]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:m,[a.Rh.FortyThree]:m},[d.v.Tread]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:m,[a.Rh.FortyThree]:m},[d.v.TreadPlus]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:m,[a.Rh.FortyThree]:m},[d.v.TreadFlex]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:m,[a.Rh.FortyThree]:m},[d.v.RainforestCafe]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:m}},[t.go.EnglishAustralia]:{[d.v.Bike]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:.1499,[a.Rh.ThirtyNine]:.1499},[d.v.BikePlus]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:.1499,[a.Rh.FortyThree]:.1499},[d.v.Tread]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:.1499,[a.Rh.FortyThree]:.1499},[d.v.TreadPlus]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:.1499,[a.Rh.FortyThree]:.1499},[d.v.RainforestCafe]:{[a.Rh.Twelve]:0,[a.Rh.TwentyFour]:.1499}},[t.go.EnglishUnitedKingdom]:{[d.v.Bike]:{[r.Rh.Twelve]:0,[r.Rh.TwentyFour]:.1499,[r.Rh.ThirtyNine]:.1499},[d.v.BikePlus]:{[r.Rh.Twelve]:0,[r.Rh.TwentyFour]:.1499,[r.Rh.FortyThree]:.1499},[d.v.Tread]:{[r.Rh.Twelve]:0,[r.Rh.TwentyFour]:.1499,[r.Rh.FortyThree]:.1499},[d.v.TreadPlus]:{[r.Rh.Twelve]:0,[r.Rh.TwentyFour]:.1499,[r.Rh.FortyThree]:.1499},[d.v.RainforestCafe]:{[r.Rh.Twelve]:0,[r.Rh.TwentyFour]:.1499}},[t.go.GermanGermany]:{[d.v.Bike]:{[r.Rh.Twelve]:0,[r.Rh.TwentyFour]:p,[r.Rh.ThirtyNine]:p},[d.v.BikePlus]:{[r.Rh.Twelve]:0,[r.Rh.TwentyFour]:p,[r.Rh.FortyThree]:p},[d.v.Tread]:{[r.Rh.Twelve]:0,[r.Rh.TwentyFour]:p,[r.Rh.FortyThree]:p},[d.v.TreadPlus]:{[r.Rh.Twelve]:0,[r.Rh.TwentyFour]:p,[r.Rh.FortyThree]:p},[d.v.RainforestCafe]:{[r.Rh.Twelve]:0,[r.Rh.TwentyFour]:p}}};return s&&k[e]?.[n]?.[i]||0}},85490:function(e,n,i){"use strict";i.d(n,{F5:function(){return c},Fv:function(){return o},MA:function(){return l},NG:function(){return k},OG:function(){return f},Q2:function(){return m},ZV:function(){return p},lQ:function(){return u},sl:function(){return g},yU:function(){return v}});var t=i(84017),a=i(4115),r=i(42689);let l="opc-pkg-7",d="opc-pkg-7-dlv250",u="opc-pkg-bp-8",s="opc-pkg-bp-8-250",o="opc-pkg-bp-hss",c="faas-pkg-intl-1",m="faas-pkg-intl-bp-1",p=[l,d,u,s,c,m,"opc-pkg-bp-7",o],k=()=>{switch((0,a.JP)()){case r.go.EnglishUnitedStates:return{bikeSlug:l,bikeWithDeliverySlug:d,bikePlusSlug:u,bikePlusWithDeliverySlug:s};case r.go.EnglishCanada:return{bikeSlug:l,bikePlusSlug:u};case r.go.GermanGermany:case r.go.EnglishUnitedKingdom:return{bikeSlug:c,bikePlusSlug:m};default:return{bikeSlug:l,bikePlusSlug:u}}},v=e=>p.includes(e),g=e=>!!e&&e.some(e=>!!(e.productKey&&v(e.productKey))||e.bundleItemLineItems?.some(e=>e.productKey&&v(e.productKey))),f=e=>{let n=e?.shippingAddress?.country,i=!!n&&(0,t.Aj)(n.toLowerCase()),a=g(e?.lineItems);return i&&a}},24841:function(e,n,i){"use strict";i.d(n,{y:function(){return I}});var t=i(93019),a=i(91341),r=i(6964),l=i(1021),d=e=>(0,r.Z)(l.Z.entryId,!1,e),u=i(66570),s=i(19257);let o={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"RentalPrices"}
54,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sku"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"storeSlug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"membershipPlan"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sku"},value:{kind:"Variable",name:{kind:"Name",value:"sku"}}},{kind:"Argument",name:{kind:"Name",value:"storeSlug"},value:{kind:"Variable",name:{kind:"Name",value:"storeSlug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"displayPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"priceInCents"},arguments:[],directives:[]}]}}]}}]};var c=i(42689),m=i(36986);let p=["BIKE","BIKE_PLUS"],k=e=>({BIKE:"OPC-M-7",BIKE_PLUS:"OPC-M-BP-8"})[e],v={monthly:89,setup:150,buyout:"895"},g={monthly:(0,u.DV)((0,m.Sm)(c.go.EnglishUnitedStates)),setup:150,buyout:"1,595"},f={monthly:129,setup:250,buyout:"1,595"},y={monthly:(0,u.DV)((0,m.Sm)(c.go.EnglishCanada)),setup:250,buyout:"3,045"},h={monthly:99,setup:200,buyout:"1.245"},S={monthly:129,setup:200,buyout:"2.295"},N={monthly:0,setup:0,buyout:"0"},b={monthly:99,setup:200,buyout:"0"},P=e=>({[c.go.EnglishCanada]:f,[c.go.EnglishUnitedStates]:v,[c.go.GermanGermany]:h,[c.go.EnglishUnitedKingdom]:N})[e],F=e=>({[c.go.EnglishCanada]:y,[c.go.EnglishUnitedStates]:g,[c.go.GermanGermany]:S,[c.go.EnglishUnitedKingdom]:b})[e],A=[c.go.EnglishUnitedStates,c.go.EnglishCanada],I=(e,n)=>{var i;let r=t.gb.includes(n),l=A.includes(n),c=p.includes(e),m="BIKE_PLUS"===e,{isLoading:v,content:g}=d(n),f=(0,a.R)(n),{data:y,loading:h}=(i={variables:{sku:k(e),storeSlug:f},skip:!l||!m,throwError:!1,errorPolicy:"ignore"},s.aM(o,i));if(!r||!c)return{monthly:0,setup:0};let S={BIKE:P(n),BIKE_PLUS:F(n)};if(h)return S.BIKE_PLUS;if(v){if("BIKE"===e)return S.BIKE;if("BIKE_PLUS"===e&&!l)return S.BIKE_PLUS}let N=g?.[e]||S[e],b=y?.membershipPlan?.priceInCents,I=b?(0,u.DV)(b):N.monthly;return{...N,monthly:I,buyout:"string"==typeof N.buyout?N.buyout:N.buyout.toLocaleString(n)}}},7621:function(e,n,i){"use strict";i.d(n,{A:function(){return v}});var t=i(35796),a=i(76953);let r="retail_web",l=()=>{let e=(0,t.Z)(),n=(0,a.Z)(r),i=n?.allow_non_retail_carts_on_retail_checkout??!1;return{retailWebEnabled:e(r),allowNonRetailCartsOnRetailCheckout:i}};var d=i(44194);let u=new Set,s={resolved:!1,hasRetailAccess:!1,retailAuthToken:null},o=(e,n)=>{s.resolved=!0,s.hasRetailAccess=e,s.retailAuthToken=n??null,u.forEach(n=>n(e)),u.clear()},c=e=>s.resolved?(e(s.hasRetailAccess),()=>{}):(u.add(e),()=>{u.delete(e)});window.onRetailAppHandshakeSuccess=e=>o(!0,e?.authToken);var m=()=>!!window.webkit?.messageHandlers?.retailWeb_retailHandshakeHandler?.postMessage&&(window.webkit.messageHandlers.retailWeb_retailHandshakeHandler.postMessage(null),!0);let p=()=>!!window.webkit?.messageHandlers?.retailWeb_retailHandshakeHandler?.postMessage,k=()=>{let[e,n]=(0,d.useState)(()=>p()),[i,t]=(0,d.useState)(()=>({loading:e&&!s.resolved,hasRetailAccess:e&&s.resolved&&s.hasRetailAccess}));return(0,d.useEffect)(()=>{let i=p();i!==e&&(n(i),i&&!s.resolved&&t(e=>({...e,loading:!0})))},[e]),(0,d.useEffect)(()=>{if(e&&!s.resolved){if(!m()){s.resolved=!0,s.hasRetailAccess=!1,t(e=>({...e,loading:!1}));return}return c(()=>{t({loading:!1,hasRetailAccess:s.hasRetailAccess})})}},[e]),i},v=()=>{let{allowNonRetailCartsOnRetailCheckout:e}=l(),{loading:n,hasRetailAccess:i}=k();return n?{loading:!0}:i?{allowNonRetailCartsOnRetailCheckout:e,loading:!1}:{accessDenied:{redirectPath:"/404"},allowNonRetailCartsOnRetailCheckout:e,loading:!1}}},50520:function(e,n){"use strict";n.Z=e=>{window.webkit?.messageHandlers?.retailWeb_checkoutErrorHandler?.postMessage?window.webkit.messageHandlers.retailWeb_checkoutErrorHandler.postMessage(e):console.error("No sendMessage function available")}},92335:function(e,n,i){"use strict";i.d(n,{E:function(){return l}});var t=i(92996);let a={},r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateShopCartJupiter"}
54,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NamedType",name:{kind:"Name",value:"ShopCartDraft"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCart"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CTCart"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CTCart"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ShopCart"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assemblyType"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"checkoutRestrictions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reason"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}},{kind:"Field",name:{kind:"Name",value:"billingAddress"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"country"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"phone"}},{kind:"Field",name:{kind:"Name",value:"street1"}},{kind:"Field",name:{kind:"Name",value:"street2"}},{kind:"Field",name:{kind:"Name",value:"postalCode"}},{kind:"Field",name:{kind:"Name",value:"city"}},{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"firstName"}},{kind:"Field",name:{kind:"Name",value:"lastName"}},{kind:"Field",name:{kind:"Name",value:"isValidated"}}]}},{kind:"Field",name:{kind:"Name",value:"shippingAddress"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"city"}},{kind:"Field",name:{kind:"Name",value:"country"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"phone"}},{kind:"Field",name:{kind:"Name",value:"postalCode"}},{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"street1"}},{kind:"Field",name:{kind:"Name",value:"street2"}},{kind:"Field",name:{kind:"Name",value:"firstName"}},{kind:"Field",name:{kind:"Name",value:"lastName"}},{kind:"Field",name:{kind:"Name",value:"isValidated"}}]}},{kind:"Field",name:{kind:"Name",value:"cartState"}},{kind:"Field",name:{kind:"Name",value:"country"}},{kind:"Field",name:{kind:"Name",value:"creditCheckStatus"}},{kind:"Field",name:{kind:"Name",value:"customerEmail"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"experimentId"}},{kind:"Field",name:{kind:"Name",value:"idMeVerificationId"}},{kind:"Field",name:{kind:"Name",value:"isFinanceable"}},{kind:"Field",name:{kind:"Name",value:"lineItems"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LineItemData"}}]}},{kind:"Field",name:{kind:"Name",value:"customLineItems"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CustomLineItemData"}}]}},{kind:"Field",name:{kind:"Name",value:"locale"}},{kind:"Field",name:{kind:"Name",value:"totalLineItemQuantity"}},{kind:"Field",name:{kind:"Name",value:"payments"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ShopPaymentData"}}]}},{kind:"Field",name:{kind:"Name",value:"discounts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"value"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"centAmount"}},{kind:"Field",name:{kind:"Name",value:"fractionDigits"}}]}},{kind:"Field",name:{kind:"Name",value:"discountedValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"centAmount"}},{kind:"Field",name:{kind:"Name",value:"fractionDigits"}}]}},{kind:"Field",name:{kind:"Name",value:"discountType"}},{kind:"Field",name:{kind:"Name",value:"discountCode"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"code"}}]}},{kind:"Field",name:{kind:"Name",value:"custom"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"numberOfMonthsAam"}},{kind:"Field",name:{kind:"Name",value:"expirationAfterMonths"}},{kind:"Field",name:{kind:"Name",value:"codePrefix"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isGift"}},{kind:"Field",name:{kind:"Name",value:"giftInformation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"gifterName"}},{kind:"Field",name:{kind:"Name",value:"giftMessage"}},{kind:"Field",name:{kind:"Name",value:"recipientEmail"}},{kind:"Field",name:{kind:"Name",value:"recipientName"}}]}},{kind:"Field",name:{kind:"Name",value:"paymentPartners"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"priority"}}]}},{kind:"Field",name:{kind:"Name",value:"priceSummaries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cartPriceSummary"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"centAmount"}},{kind:"Field",name:{kind:"Name",value:"fractionDigits"}}]}},{kind:"Field",name:{kind:"Name",value:"subtotal"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"centAmount"}},{kind:"Field",name:{kind:"Name",value:"fractionDigits"}}]}},{kind:"Field",name:{kind:"Name",value:"discountTotal"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"centAmount"}},{kind:"Field",name:{kind:"Name",value:"fractionDigits"}}]}},{kind:"Field",name:{kind:"Name",value:"taxTotal"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"centAmount"}},{kind:"Field",name:{kind:"Name",value:"fractionDigits"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"lineItemPriceSummary"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subtotal"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"centAmount"}},{kind:"Field",name:{kind:"Name",value:"fractionDigits"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"shippingPriceSummary"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"centAmount"}},{kind:"Field",name:{kind:"Name",value:"fractionDigits"}}]}},{kind:"Field",name:{kind:"Name",value:"taxTotal"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"centAmount"}},{kind:"Field",name:{kind:"Name",value:"fractionDigits"}}]}},{kind:"Field",name:{kind:"Name",value:"subtotal"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"centAmount"}},{kind:"Field",name:{kind:"Name",value:"fractionDigits"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"customerPreferences"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"shouldAllowMarketing"}},{kind:"Field",name:{kind:"Name",value:"hasSmsConsent"}}]}},{kind:"Field",name:{kind:"Name",value:"orderStore"}},{kind:"Field",name:{kind:"Name",value:"seller"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"isTaxExempt"}},{kind:"Field",name:{kind:"Name",value:"hasAcceptedLeaseAgreement"}},{kind:"Field",name:{kind:"Name",value:"orderPlacementType"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LineItemData"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ShopLineItem"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ShopLineItemData"}},{kind:"Field",name:{kind:"Name",value:"bundleItemLineItems"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ShopLineItemData"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ShopLineItemData"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ShopLineItem"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"productKey"}},{kind:"Field",name:{kind:"Name",value:"productId"}},{kind:"Field",name:{kind:"Name",value:"quantity"}},{kind:"Field",name:{kind:"Name",value:"configurationStatus"}},{kind:"Field",name:{kind:"Name",value:"productVariant"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"sku"}},{kind:"Field",name:{kind:"Name",value:"legacyProductId"}},{kind:"Field",name:{kind:"Name",value:"legacyOptionId"}},{kind:"Field",name:{kind:"Name",value:"images"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"width"}},{kind:"Field",name:{kind:"Name",value:"height"}}]}},{kind:"Field",name:{kind:"Name",value:"size"}},{kind:"Field",name:{kind:"Name",value:"sizeLabel"}},{kind:"Field",name:{kind:"Name",value:"color"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"sku"}},{kind:"Field",name:{kind:"Name",value:"legacyEquipmentType"}},{kind:"Field",alias:{kind:"Name",value:"id"},name:{kind:"Name",value:"sku"}}]}},{kind:"Field",name:{kind:"Name",value:"priceSummary"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taxTotal"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"centAmount"}},{kind:"Field",name:{kind:"Name",value:"fractionDigits"}}]}},{kind:"Field",name:{kind:"Name",value:"total"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"centAmount"}},{kind:"Field",name:{kind:"Name",value:"fractionDigits"}}]}},{kind:"Field",name:{kind:"Name",value:"subtotal"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"centAmount"}},{kind:"Field",name:{kind:"Name",value:"fractionDigits"}}]}},{kind:"Field",name:{kind:"Name",value:"discountTotal"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"centAmount"}},{kind:"Field",name:{kind:"Name",value:"fractionDigits"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"addedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CustomLineItemData"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ShopCustomLineItem"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"money"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"centAmount"}},{kind:"Field",name:{kind:"Name",value:"fractionDigits"}}]}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"quantity"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ShopPaymentData"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ShopPayment"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"centAmount"}},{kind:"Field",name:{kind:"Name",value:"fractionDigits"}}]}},{kind:"Field",name:{kind:"Name",value:"paymentToken"}},{kind:"Field",name:{kind:"Name",value:"paymentLabel"}},{kind:"Field",name:{kind:"Name",value:"giftCardMetadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"giftCardNumber"}},{kind:"Field",name:{kind:"Name",value:"pinNumber"}},{kind:"Field",name:{kind:"Name",value:"authorizationId"}},{kind:"Field",name:{kind:"Name",value:"balanceAmount"}}]}},{kind:"Field",name:{kind:"Name",value:"creditCardMetadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"maskedNumber"}},{kind:"Field",name:{kind:"Name",value:"expirationYear"}}
54,{kind:"Field",name:{kind:"Name",value:"expirationMonth"}},{kind:"Field",name:{kind:"Name",value:"cardType"}}]}}]}}]};function l(e){let n={...a,...e};return t.D(r,n)}},36904:function(e,n,i){"use strict";var t=i(20984),a=i(7803);let r=(e,n)=>`ecomm/logistics/eligibility/doorstep?postalCode=${encodeURIComponent(n)}&countryCode=${encodeURIComponent(e)}`;n.Z=(e,n,i)=>e.get(r(n,i)).then((0,t.HZ)(a.t3)).catch(e=>(console.error("Doorstep eligibility check failed",{status:"object"==typeof e&&null!==e&&"response"in e?e.response?.status:void 0}),!1))},76529:function(e,n,i){"use strict";var t=i(20984),a=i(79449),r=i(7803);let l=(e,n)=>`ecomm/store/${(0,a.yG)()}/products/${e}/eligibility/postal_code/${n}`;n.Z=(e,n,i)=>e.get(l(n,i)).then((0,t.kV)(r.Qr))},7803:function(e,n,i){"use strict";i.d(n,{Qr:function(){return t},t3:function(){return a}});let t=e=>{let{isEligible:n}=e;return"eligible"===n||"hold"===n},a=e=>!!e?.isDoorstepEligible},96497:function(e,n,i){"use strict";i.d(n,{Ti:function(){return r},b8:function(){return s},bH:function(){return a}});var t=i(66570);let a=e=>"legacyOptionId"in e?e.legacyOptionId:"legacyBundleId"in e?e.legacyBundleId:e.id,r=e=>32!==e.length?e:`${e.substring(0,8)}-${e.substring(8,12)}-${e.substring(12,16)}-${e.substring(16,20)}-${e.substring(20)}`,l=(e,n)=>{if("legacyOptionId"in e){let i=a(e);return n.items.find(e=>e.id===i)}return n.items.find(n=>n.slug===e.slug)},d=(e,n)=>{let{id:i,name:a,price:l}=e;return{event:"Added Bundle",properties:{cartId:n.id,graphql:!0,id:r(i),name:a,price:(0,t.DV)(l.amount),propertyType:"Web"}}},u=(e,n)=>{let{id:i,name:a,sku:d}=l(e,n);return{event:"Added Product",properties:{sku:d,name:a,quantity:1,cartId:n.id,slug:e.slug,id:r(i),price:(0,t.DV)(e.price.amount),propertyType:"Web",category:"accessory",addedFromCart:!1,giftSubscriptionDuration:null}}},s=(e,n)=>"legacyOptionId"in e?u(e,n):d(e,n)},19029:function(e,n,i){"use strict";i.d(n,{yy:function(){return u},ik:function(){return o},Zj:function(){return v},s9:function(){return s}});var t=i(68203),a=i(81308),r=i(442),l=i(42234),d=i(41380);let u=["bike-ruby","bike-international","bike-de","bike-au","ba02-0011","bike-plus-au","bike-plus-na","bike-plus-eu","bike-refurbished-consumer","bike-refurbished-pl-11-r-a","bikeplus-refurbished-consumer-na","ba01-0010","bike-plus-eu-au","bike-plus-us","bike-plus-ca","ba01-0008","ba01-0009"],s=["tread","peloton-tread-with-box","tread-na","ta02-0003","ta02-0001","tread-eu","tread-plus-na","tread-au","tread-ca","tread-us"],o=["row-us","rw01-0001"],c=[...u,...s,"guide-na","guide-uk","guide-au","th01-0001","th01-0002","th01-0004",...o,"cycling-shoes","resistance-band","resistance-bands","peloton-weights","tread-weight","tread-free-weights","dumbbells","dumbbells-pkg","dumbbells-rogue-na","urbanears-sumpan-earbuds","heart-rate-monitor-2","bike-mat-v2","reversible-workout-mat","row-mat","se-workout-mat","tread-exercise-mat","jblx-peloton-earbuds","jblx-peloton-earbuds-2","peloton-glass-water-bottle","podium-sport-bottle","hrm-accelerometer","pl-hr-c-01","heart-rate-band","delivery","delivery-no-assembly","warranty","peloton-bike-service-plan","peloton-tread-service-plan","1-year-standard-peloton","bike-warr-au","bike-warr-ca","bike-warr-de","bike-warr-na","bike-warr-uk","bike-plus-warr-au","bike-plus-warr-de","bike-plus-warr-us","bike-plus-warr-uk","bike-plus-warr-ca","tread-plus-warr-us","tread-warr-us","tread-warr-ca","tread-warr-uk","warr-tread-au","warr-tread-us","warr-tread-uk","warr-tread-ca","warr-tread-de","guide-warr-au","guide-warr-ca","guide-warr-uk","guide-warr-us","ext-warr-row-us","limited-bike-warr-au","limited-bike-warr-ca","limited-bike-warr-de","limited-bike-warr-na","limited-bike-warr-uk","limited-bike-plus-warr-au","limited-bike-plus-warr-ca","limited-bike-plus-warr-de","limited-bike-plus-warr-uk","limited-bike-plus-warr-us","limited-warr-tread-au","limited-warr-tread-ca","limited-warr-tread-de","limited-warr-tread-uk","limited-warr-tread-us","limited-guide-warr-au","limited-guide-warr-ca","limited-guide-warr-uk","limited-guide-warr-us","limited-warr-row-us","touchscreen-with-cover","pedal_set"],m=(0,t.Z)(l.Z),p=(0,r.Z)(m((e,n
54)=>[e,n],c)),k=(0,a.Z)([[e=>void 0!==p[e],e=>p[e]],[()=>!0,()=>Math.floor(c.length/2)]]);function v(e){return(0,d.Z)((e,n)=>{let i=k(e.slug),t=k(n.slug);return i===t?e.slug>n.slug?1:-1:i>t?1:-1})(e)}},22933:function(e,n,i){"use strict";i.d(n,{fz:function(){return u},gk:function(){return s}});var t=i(19969),a=i(21723),r=i(58736),l=i(4697);let d=(0,a.css)(["outline:2px solid ",";"],l.T$),u=(0,a.css)(["&:focus:focus-visible,&:focus-within:focus-visible{","}"],d);(0,a.css)(["&:focus,&:focus-within{"," outline-offset:1px;}"],d);let s=(0,a.css)(["text-shadow:2px 2px 6px ",";"],t.S);(0,a.css)(["text-shadow:1px -1px 5px ",";"],l.zj),(0,a.css)(["&:before{content:'\\200B';}"]),(0,a.css)(["",""],r.H8)},10004:function(e,n,i){"use strict";var t=i(3009),a=i(42689),r=i(87760);n.Z=e=>{let n=(0,t.bU)(),i=e||n;return i===a.go.EnglishUnitedStates?1299:i===a.go.EnglishAustralia||i===a.go.EnglishCanada?1699:i===a.go.EnglishUnitedKingdom||i===a.go.GermanGermany||i===a.go.GermanAustria||i===a.go.EnglishBeta||i===a.go.SpanishMexico||i===a.go.FrenchCanada?1299:(0,r.Vo)(i,"for digital access price in subscription-plans/selectors")}},38784:function(e,n,i){"use strict";i.d(n,{CJ:function(){return d},YG:function(){return r},ny:function(){return l}});var t=i(36986),a=i(62943);let r=(e,n)=>(0,a.h0)(e)?(0,t.zf)(n):(0,t.f9)(n),l=(e,n,i)=>{let t=(e||[]).find(e=>e.name===n)?.value;return t?.[i]||""},d=(e,n,i)=>l(e?.masterData?.current?.masterVariant?.attributesRaw||[],n,i)},63283:function(e,n,i){"use strict";i.d(n,{$:function(){return r},k:function(){return l}});var t=i(15627),a=i(31097);let r=(e,n)=>{let i=(0,a.DV)(e),r=n;void 0===n&&(r=i%1==0);let l=r?"currency":"currencyWithCents";return(0,t.Z)(`{price, number, ${l}}`,{price:i})},l=(e,n)=>{let i=100*Math.floor((12*e-n)/100);return i>0?r(i,!0):null}},65407:function(e,n,i){"use strict";i.d(n,{$s:function(){return p},PE:function(){return h},ar:function(){return o},jH:function(){return c},pG:function(){return g},tt:function(){return v}});var t,a,r,l,d,u,s,o,c,m,p,k,v,g,f=i(77249);(t=o||(o={})).AppOne="App One",t.AppPlus="App Plus",(a=c||(c={})).Monthly="monthly",a.Annual="annual",(r=m||(m={})).Amazon="amazon",r.Apple="apple",r.Bango="bango",r.Google="google",r.Peloton="peloton",r.Roku="roku",(l=p||(p={})).DIGITAL_BASIC="digital_basic",l.DIGITAL_PLUS="digital_plus",l.LEGACY="legacy",l.GUIDE="guide",l.ALL_ACCESS="all_access",(d=k||(k={})).Device="device",d.Digital="digital",d.Guide="guide",(u=v||(v={})).AppFree="app-free",u.AppOne="app-one",u.AppPlus="app-plus",u.StrengthPlus="strength-plus";let y="platform",h={AllAccess:"PL-SUB-01",AllAccessPrepaid3m:"PL-SUB-03-MTH-PREPAID",AllAccessPrepaid6m:"PL-SUB-06-MTH-PREPAID",AllAccessPrepaid12m:"PL-SUB-12-MTH-PREPAID",Digital:"digital-mtm",Guide:"PL-G-SUB-01",AppOne:f.iL,AppOnePlatform:`${f.iL}-${y}`,AppPlus:f.Bp,AppPlusPlatform:`${f.Bp}-${y}`,AppOneAnnual:f.Vz,AppOneAnnualPlatform:`${f.Vz}-${y}`,AppPlusAnnual:f.oN,AppPlusAnnualPlatform:`${f.oN}-${y}`,FaasBikePlus:f.DQ,StrengthPlus:"pl-a-sub-strength"};(s=g||(g={})).AppOneMonthly="app-one-monthly",s.AppPlusMonthly="app-plus-monthly",s.AppOneAnnual="app-one-annual",s.AppPlusAnnual="app-plus-annual"},58736:function(e,n,i){"use strict";i.d(n,{H8:function(){return d},q9:function(){return l}});var t=i(21723),a=i(6825);let r=(0,t.css)(["border:3px solid black;outline:3px solid ",";outline-offset:-1px;"],a.k4),l=(0,t.css)(["&[data-focus-method='keyboard']:focus{","}"],r),d=(0,t.css)(["filter:drop-shadow(0px 3px 3px ",");"],a.Sn)},6825:function(e,n,i){"use strict";i.d(n,{Sn:function(){return a},ae:function(){return u},ix:function(){return l},k4:function(){return o},p8:function(){return s}});var t=i(76253);let a="#000000",r="#181a1d",l="#ffffff",d="#65666a",u="#697180",s="#222529",o="#B8DDF5";(0,t.DZ)(.4,d),(0,t.DZ)(.2,"#df1c2f"),(0,t.DZ)(.7,d),(0,t.DZ)(.2,r),(0,t.DZ)(.9,r)},17228:function(e,n,i){"use strict";var t,a,r,l,d,u;i.d(n,{BS:function(){return a},Fh:function(){return m},Y3:function(){return s},ZO:function(){return r},oI:function(){return k},st:function(){return o},sw:function(){return p},tc:function(){return c}}),(l=t||(t={})).Started="ID Verification Started",l.Success="ID Verification Successful";let s="specialpricing",o="id_me_state",c="ecomm/checkout/verification/segment",m="ecomm/checkout/verification/id";(d=a||(a={})).Student="student",d.Teacher="teacher",d.FirstResponder="responder",d.Military="military",d.Medical="medical",d.Nurse="nurse",d.HospitalEmployee="hospital_employee",d.Government="government",d.Senior="senior",d.Nonprofit="nonprofit",(u=r||(r={})).Student="student_canada",u.Teacher="teacher_canada",u.FirstResponder="responder_canada",u.Military="military_canada",u.Doctor="doctor_canada",u.Nurse="nurse_canada";let p="SPECIAL_PRICING",k="/idme/callback"},97731:function(e,n,i){"use strict";var t=i(31549);i(44194);var a=i(1091),r=i.n(a),l=i(70858),d=i(15627);let u=e=>{let n=window?.Cypress?{"data-md":!0}:{};return i=>{let{node:a,...r}=i;return(0,t.jsx)(e,{...r,...n})}};n.ZP=e=>{let{content:n,values:i,dataTestId:a,overwriteParagraph:s,markdown:{renderers:o={},...c}={},updateForSubpathLocale:m=!1}=e,p=m?(0,l.Cz)(n):n;return(0,t.jsx)(r(),{...{...c,source:(0,d.Z)(p,i).toString(),escapeHtml:!1,renderers:{...s?{}:{paragraph:e=>{let{node:n,children:i,...a}=e;return(0,t.jsx)("span",{"data-md":"true",...a,children:i})}},...Object.entries(o).map(e=>{let[n,i]=e;return{[n]:u(i)}}).reduce((e,n)=>({...e,...n}),{})}},"date-test-id":a})}},15627:function(e,n,i){"use strict";var t=i(42462),a=i.n(t),r=i(44194),l=i(91838),d=i(87453),u=i(54168),s=i(4115);let o=(0,l.p7)(),c=(0,d.j3)(o),m={formats:(0,u.Z)(c),locale:(0,s.O4)()};n.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{formats:t,locale:l}={...m,...i},d="",u={},s={};if(n&&Object.keys(n).length>0){let e;let i=Math.floor(1099511627776*Math.random()).toString(16),t=(e=0,()=>`ELEMENT-${i}-${e+=1}`);d=`@__${i}
54__@`,Object.keys(n).forEach(e=>{let i=n[e];if(r.isValidElement(i)){let n=t();u[e]=d+n+d,s[n]=i}else u[e]=i})}try{let n;let i=new(a())(e?e.replace(/\\/g,""):"",l,t).format(u);if(0===Object.keys(s).length)return i;return n=s&&Object.keys(s).length>0?i.split(d).filter(e=>!!e).map(e=>s[e]||e):[i],r.createElement(r.Fragment,null,...n)}catch(n){return console.error(n,"in",e),e?e.replace(/\\/g,""):""}}},40176:function(e,n,i){"use strict";var t=i(42689);let a={[t.go.EnglishUnitedStates]:e=>{if(!e)return e;let n=e.replace(/[^\d]/g,"");return n.length<=5?n:`${n.slice(0,5)}-${n.slice(5,9)}`},[t.go.EnglishUnitedKingdom]:e=>{if(!e)return e;let n=e.toUpperCase().replace(/[^A-Z0-9]/g,"").substr(0,7);return n.length<=4?n:n.match(new RegExp(/^WC|^EC[1-4]|^NW1W|^SE1P|SW1/))?`${n.substring(0,4)} ${n.substring(4)}`:n.match(new RegExp(/^E1W|^N1[CP]/))?`${n.substring(0,3)} ${n.substring(3)}`:n.match(new RegExp(/^[BEGLMNSW]/))?5===n.length?`${n.substring(0,2)} ${n.substring(2)}`:`${n.substring(0,3)} ${n.substring(3)}`:6===n.length?`${n.substring(0,3)} ${n.substring(3)}`:`${n.substring(0,4)} ${n.substring(4)}`},[t.go.EnglishCanada]:e=>!e||e.length<=3?e:`${e.slice(0,3)} ${e.slice(3,6)}`,[t.go.GermanGermany]:e=>e?e.replace(/[^\d]/g,"").slice(0,5):e,[t.go.EnglishAustralia]:e=>e?e.replace(/[^\d]/g,"").slice(0,4):e,[t.go.GermanAustria]:e=>e?e.replace(/[^\d]/g,"").slice(0,4):e};n.Z={phoneNumber:e=>{if(!e)return e;let n=e.replace(/[^\d]/g,"");return n.length<=3?n:n.length<=7?`(${n.slice(0,3)}) ${n.slice(3)}`:`(${n.slice(0,3)}) ${n.slice(3,6)}-${n.slice(6,10)}`},zipCode:a,birthday:e=>{let n=e.replace(" / ","");return(n=e.replace(/\D/g,"")).length>4&&(n=n.substr(0,4)+" / "+n.substr(4)),n.length>2&&(n=n.substr(0,2)+" / "+n.substr(2)),n.substr(0,14)},giftCardLast4Numbers:function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"and";if(1===e.length)return e[0];let i=e.slice(0,e.length-1).join(", "),t=e[e.length-1];return`${i} ${n} ${t}`},giftCardNumber:e=>e.replace(/\D/g,"").slice(0,16).replace(/(\d{4})(?=\d)/g,"$1 "),giftCardPinNumber:e=>e.replace(/\D/g,"").slice(0,8).replace(/(\d{4})(?=\d)/g,"$1"),serialNumber:e=>e.replace(/[^a-zA-Z0-9]/g,"").toUpperCase().slice(0,16)}},34835:function(e,n,i){"use strict";i.d(n,{r:function(){return a}});var t=i(91618);let a=(0,i(68384).G)(t.Z)},54168:function(e,n){"use strict";n.Z=e=>({number:{currency:{style:"currency",currency:e,minimumFractionDigits:0,maximumFractionDigits:0},currencyWithCents:{style:"currency",currency:e},currencyWithCentsIfProvided:{style:"currency",currency:e,minimumFractionDigits:0,maximumFractionDigits:2}},time:{hourAndMinute:{hour:"2-digit",minute:"2-digit",timeZoneName:"short",hour12:!0},militaryTime:{hour:"2-digit",minute:"2-digit",timeZoneName:"short",hour12:!1}},date:{monthDay:{month:"numeric",day:"numeric"},weekdayMonthDay:{weekday:"long",month:"long",day:"numeric"},weekdayShortMonthShortDayNumeric:{weekday:"short",month:"short",day:"numeric"}}})},31097:function(e,n,i){"use strict";i.d(n,{DV:function(){return t}});let t=e=>e/100},37625:function(e,n,i){"use strict";i.d(n,{W:function(){return o},s:function(){return c}});var t=i(42462),a=i.n(t),r=i(44194),l=i(3009),d=i(91838),u=i(87453),s=i(54168);let o=()=>m((0,l.bU)()),c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return m((0,l.bU)())(e,n,i)},m=e=>function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(0,d._F)(e),o=(0,u.j3)(l),{formats:c,locale:m}={formats:(0,s.Z)(o),locale:e,...t},p="",k={},v={};if(i&&Object.keys(i).length>0){let e;let n=Math.floor(1099511627776*Math.random()).toString(16),t=(e=0,()=>`ELEMENT-${n}-${e+=1}`);p=`@__${n}
54__@`,Object.keys(i).forEach(e=>{let n=i[e];if(r.isValidElement(n)){let i=t();k[e]=p+i+p,v[i]=n}else k[e]=n})}try{let e;let i=new(a())(n?n.replace(/\\/g,""):"",m,c).format(k);if(0===Object.keys(v).length)return i;return e=v&&Object.keys(v).length>0?i.split(p).filter(e=>!!e).map(e=>v[e]||e):[i],r.createElement(r.Fragment,null,...e)}catch(e){return console.error(e,"in",n),n?n.replace(/\\/g,""):""}}},39663:function(e,n,i){"use strict";i.d(n,{O:function(){return l}});var t=i(44194),a=i(70943),r=i(19181);let l=(e,n,i)=>{let{experiments:l}=(0,t.useContext)(r._);return null===l?null:(0,a.fU)(e,n,l,i)}},52671:function(e,n,i){"use strict";i.d(n,{R:function(){return r}});var t=i(44194),a=i(19181);let r=()=>(0,t.useContext)(a._)},79449:function(e,n,i){"use strict";i.d(n,{yG:function(){return o}});var t=i(24009),a=i(38169),r=i(84149),l=i(14647);let d=()=>({kind:"pos",slug:"chelsea"});var u=i(57408);let s=(0,t.Z)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.li??window.location.hostname;return/pos.onepeloton.com$/.test(e)?d():(0,u.oV)(e)}),o=(0,a.Z)(s,(0,r.Z)("slug"))},57408:function(e,n,i){"use strict";i.d(n,{oV:function(){return p},tB:function(){return m},yh:function(){return a}});var t,a,r=i(84772),l=i(14647),d=i(34008),u=i(14530),s=i(21802);(t=a||(a={})).UnitedStates="dotcom",t.UnitedKingdom="webstore_gb",t.Canada="ca_webstore",t.Germany="de_webstore",t.Default="dotcom",t.Australia="au_webstore",t.Austria="at_webstore";let o={".com":"dotcom",".co.uk":"webstore_gb",".ca":"ca_webstore",".de":"de_webstore","com.au":"au_webstore",".at":"at_webstore"},c={us:"dotcom",gb:"webstore_gb",ca:"ca_webstore",de:"de_webstore",au:"au_webstore",at:"at_webstore"},m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.li??window.location.hostname;if(d.jU&&s.T&&(0,u.dR)(window.location.pathname.split("/")[1]))return c[window.location.pathname.split("/")[1].split("-")[1].toLowerCase()]||"dotcom";let n=Object.keys(o).find(n=>e.endsWith(n));return n&&o[n]||"dotcom"},p=(0,r.z)(m,e=>({kind:"web",slug:e}))},91341:function(e,n,i){"use strict";i.d(n,{R:function(){return d}});var t=i(14647),a=i(42689),r=i(79449),l=i(57408);let d=e=>e?({[a.go.EnglishUnitedStates]:l.yh.UnitedStates,[a.go.EnglishUnitedKingdom]:l.yh.UnitedKingdom,[a.go.EnglishCanada]:l.yh.Canada,[a.go.FrenchCanada]:l.yh.Canada,[a.go.GermanGermany]:l.yh.Germany,[a.go.EnglishAustralia]:l.yh.Australia,[a.go.GermanAustria]:l.yh.Austria})[e]||(0,l.tB)(t.li||".com"):(0,r.yG)()},77249:function(e,n,i){"use strict";i.d(n,{Bp:function(){return d},DQ:function(){return o},Vz:function(){return u},fv:function(){return t},fz:function(){return r},iL:function(){return l},oN:function(){return s},wl:function(){return a}});let t="pl-a-sub-01-cp",a="pl-a-sub-01-sp",r="pl-a-sub-01-gp-60d-ft",l="pl-a-sub-01",d="pl-a-sub-02",u="pl-a-sub-01-an",s="pl-a-sub-02-an",o="OPC-M-BP-8"},3321:function(){},51509:function(){},60876:function(){}}]);
55//# sourceMappingURL=59982-193a5528589b6f71.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.