1"use strict";(self.webpackChunkmarketplace=self.webpackChunkmarketplace||[]).push([[353],{121:(e,t,a)=>{a.d(t,{A:()=>g});var n=a(96540),l=a(34164),o=a(75659),r=a(11848),c=a(25669),i=a(38413),s=a(31609);function d(e){return(0,s.Ay)("MuiCardMedia",e)}(0,i.A)("MuiCardMedia",["root","media","img"]);var m=a(74848);const u=(0,r.Ay)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e,{isMediaComponent:n,isImageComponent:l}=a;return[t.root,n&&t.media,l&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),p=["video","audio","picture","iframe","img"],E=["picture","img"],g=n.forwardRef((function(e,t){const a=(0,c.b)({props:e,name:"MuiCardMedia"}),{children:n,className:r,component:i="div",image:s,src:g,style:b,...h}=a,y=p.includes(i),f=!y&&s?{backgroundImage:`url("${s}")`,...b}:b,v={...a,component:i,isMediaComponent:y,isImageComponent:E.includes(i)},A=(e=>{const{classes:t,isMediaComponent:a,isImageComponent:n}=e,l={root:["root",a&&"media",n&&"img"]};return(0,o.A)(l,d,t)})(v);return(0,m.jsx)(u,{className:(0,l.A)(A.root,r),as:i,role:!y&&s?"img":void 0,ref:t,style:f,ownerState:v,src:y?s||g:void 0,...h,children:n})}))},23273:(e,t,a)=>{a.d(t,{A:()=>i});var n=a(96540),l=a(56347),o=a(64336),r=a(51642),c=a(10878);function i(){const[e,t]=(0,n.useState)({teamName:"",teamLogo:"",type:"",cycle:"",price:"",subscriptionPrice:"",taxAmount:"",nextBillingDateTaxAmount:"",pixels:{gtagConversionId:null,fbPixelId:null},nextBillingDate:"",taxAmountDueNextBillingDate:"",totalDueNextBillingDate:"",productPrice:"",totalPaidLastTransaction:"",taxAmountPaidLastTransaction:"",isTrial:!1,promoCode:null,isCoachSubscription:!1,cycleText:"",billingDateLastTransaction:""}),[a,i]=(0,n.useState)(!0),{width:s}=(0,r.A)(),d=(0,o.v)((0,l.zy)()),m=d.key?d.key:null;return(0,n.useEffect)((()=>{!async function(){if(!m)return;const e=await async function(e){return await(0,c.Jt)("/v5/userLicenses/".concat(e))}(m);e.status||(t(e),i(!1))}()}),[m,a]),{width:s,orderInformation:e,loading:a}}},9353:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var n=a(96540),l=a(56347),o=a(26132),r=a(90614),c=a(99283),i=a(14459),s=a(98111),d=a(25764),m=a(64336),u=a(37912);function p(){const{search:e}=(0,l.zy)(),t=(0,m.v)((0,l.zy)()),{productInformation:a,loading:p,selectedLicense:E}=(0,c.A)();let g=null;return g=a.areTrialsEnabled?n.createElement(s.A,{productInformation:a,loading:p,selectedLicense:E,hasSubtext:!0}):n.createElement(i.A,{productInformation:a,loading:p,selectedLicense:E,hasSubtext:!0}),n.createElement("div",{className:"outer-container"},(0,d.yH)(a.pixels),n.createElement(r.A,{sparse:!0}),n.createElement(o.A,{maxWidth:"lg",classes:{root:"header-space"}},e&&e.length>0&&!t.redirectUrl&&n.createElement("h4",{className:"help-text"},"Please log in or create an account to complete your Marketplace purchase."),n.createElement("div",{className:"container payment-container"},n.createElement(u.A,null),g)))}},14459:(e,t,a)=>{a.d(t,{A:()=>m});var n=a(96540),l=a(57156),o=a(34069),r=a(25292),c=a(3246),i=a(33551),s=a(91431);const d=e=>e?[n.createElement("li",{key:"1"},n.createElement("div",{className:"subscription-detail"},n.createElement("p",null,"Promo Code"),n.createElement("p",{className:"promo-code"},e.promoCodeRate," off"))),n.createElement("li",{key:"2"},n.createElement("div",{className:"subscription-detail"},n.createElement("p",null,"Price"),n.createElement("p",{className:"promo-code"},e.promoCodePrice))),n.createElement("li",{key:"3"},n.createElement("div",{className:"subscription-detail"},e.promoCodePeriod&&n.createElement("p",{className:"promo-code-period"},"* Promo code price lasts for ",e.promoCodePeriod)))]:null;function m(e){let{loading:t,productInformation:a,selectedLicense:m,displayPrice:u,promoCodeInfo:p,hasSubtext:E}=e;const{teamName:g,teamLogo:b,teamType:h,licenses:y}=a,{price:f,cycle:v,subscriptionPrice:A,isCoachSubscription:N}=m,C=v!==s.h.SINGLE,P=N?"Coach":"Athlete",x=""!==v?"".concat(P," ").concat(v," Subscription"):"",I=""!==h?"".concat(h,": ").concat(g):"",S=""!==v?"".concat(P," ").concat(v):"",k=C?x:S,w=!(null==y||!y.find((e=>e.isCoachSubscription))),T=!(null==y||!y.find((e=>"Yearly"===e.cycle)));let L="";if(E&&w&&T?L="Coach and yearly licenses available":E&&w?L="Coach licenses available":E&&T&&(L="Yearly licenses available"),""===a.teamId)return null;const D=d(p),M=!!p;return n.createElement(l.A,{"data-testid":"card",classes:{root:"card"}},n.createElement(o.A,{title:"Order Summary",classes:{root:"padding-desktop",title:"card-title",subheader:"card-subtext black-subtext spacing"}}),n.createElement(r.A,{classes:{root:"padding-desktop card-content"}},n.createElement("div",{className:"order-summary"},t?n.createElement("div",{className:"card-loading-container"},n.createElement(c.A,{size:32,color:"inherit"})):n.createElement(n.Fragment,null,n.createElement("img",{alt:g,src:b,loading:"lazy",className:"team-logo"}),n.createElement("ul",{className:"order-detail-list"},n.createElement("li",null,n.createElement("div",{className:"subscription-detail"},n.createElement("p",{style:{fontWeight:"bold"}},I))),n.createElement("li",null,n.createElement("div",{className:"subscription-detail"},n.createElement("p",null,k),n.createElement("p",{style:{fontWeight:"bold",marginTop:10,marginBottom:10,textDecoration:M?"line-through":"inherit"}},A))),D,n.createElement("li",null,n.createElement("div",{className:"subscription-detail"},n.createElement(i.A,{variant:"subtitle2"},"Tax"),n.createElement(i.A,{variant:"subtitle2"},"Plus applicable taxes"))),n.createElement("li",null,n.createElement("div",{className:"subscription-detail-subtext"},n.createElement("p",null,L)))))),n.createElement("div",{className:"order-total",style:{borderTop:"solid 1px",borderColor:"lightgray"}},n.createElement("h5",null,"Order Total"),n.createElement("h5",{style:{fontWeight:"bold"}},u?"$".concat(u):f))))}m.defaultProps={displayPrice:null,discountAmount:null,hasSubtext:null}},99283:(e,t,a)=>{a.d(t,{A:()=>d});var n=a(96540),l=a(56347),o=a(15369),r=a(64336),c=a(54636),i=a(6358),s=a(478);
1function d(){const[e,t]=(0,n.useState)({teamId:"",teamName:"",teamLogo:"",teamType:"",licenses:[]}),[a,d]=(0,n.useState)(!0),[m,u]=(0,n.useState)({id:"",price:"",cycle:"",subscriptionPrice:"",isSubscribed:!1,isCoachSubscription:!1}),[p,E]=(0,n.useState)(!1),g=(0,r.v)((0,l.zy)()),b=g.team?g.team:null,h=g.isCoach?parseInt(g.isCoach):null;return(0,n.useEffect)((()=>{!async function(){if(!b)return;const e=await(0,o.A)(b);if(e.status)return;t(e);let a=null;var n,l;h&&(a=null===(n=e.licenses)||void 0===n?void 0:n.find((e=>e.isCoachSubscription))),a&&h||(a=null===(l=e.licenses)||void 0===l?void 0:l.find((e=>!e.isCoachSubscription))),a&&u(a),d(!1);try{if(!p&&e.teamId){const t="production"!==s.A.APP_ENV?s.A.APP_ENV:"",a=new c.A("trainheroic.com",t,e.orgId,e.orgUrlWebsite);a.track(),(0,i.D)(a,{teamId:e.teamId}),E(!0)}}catch(e){}}()}),[b,a,h,p]),{productInformation:e,loading:a,selectedLicense:m}}},51642:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(96540);const l=()=>({width:window.innerWidth,height:window.innerHeight});function o(){const[e,t]=(0,n.useState)(l());return(0,n.useEffect)((()=>{const e=()=>{t(l())};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}})),e}},98111:(e,t,a)=>{a.d(t,{A:()=>g});var n=a(96540),l=a(57156),o=a(34069),r=a(121),c=a(25292),i=a(3246),s=a(33551),d=a(91431),m=a(82857),u=a(23273),p=a(478);const E=(e,t)=>e?[n.createElement("li",{key:"1"},n.createElement("div",{className:"subscription-detail"},n.createElement("p",null,"Promo Code"),n.createElement("p",{className:"promo-code"},e.promoCodeRate," off"))),n.createElement("li",{key:"2"},n.createElement("div",{className:"subscription-detail"},n.createElement("p",null,t),n.createElement("p",{className:"promo-code"},e.promoCodePrice))),n.createElement("li",{key:"3"},n.createElement("div",{className:"subscription-detail"},e.promoCodePeriod&&n.createElement("p",{className:"promo-code-period"},"* Promo code price lasts for"," ",e.promoCodePeriod)))]:null;function g(e){let{loading:t,productInformation:a,selectedLicense:g,promoCodeInfo:b}=e;const{width:h}=(0,u.A)(),{isGreaterThan540:y}=(0,m.I)(h),{teamName:f,teamLogo:v,teamType:A}=a,{price:N,cycle:C}=g;if(!(C!==d.h.SINGLE))return null;const P=y?"Desktop":"Mobile",x="".concat(p.A.URL_STATIC_CDN,"/checkout/bannerImage").concat(P,"2021.jpg"),I=new Date;I.setDate(I.getDate()+7);const S="Starting ".concat(I.toLocaleString("default",{month:"short"})," ").concat(I.getDate(),", ").concat(I.getFullYear()),k=""!==A?"".concat(A,": ").concat(f):"";if(""===a.teamId)return null;const w=E(b,S),T=!!b;return n.createElement(l.A,{"data-testid":"card",classes:{root:"card"},style:{position:"relative"}},n.createElement(o.A,{title:"Sign up for your free trial and start training today!",classes:{root:"download-header",title:"card-title download-color",subheader:"card-subtext download-color"}}),n.createElement(r.A,{style:{backgroundPosition:"top"},image:x,classes:{root:"download"}}),n.createElement(c.A,{classes:{root:"padding-desktop card-content"}},n.createElement("div",{className:"order-summary"},t?n.createElement("div",{className:"card-loading-container"},n.createElement(i.A,{size:32,color:"inherit"})):n.createElement(n.Fragment,null,n.createElement("img",{alt:f,src:v,className:"team-logo"}),n.createElement("ul",{className:"order-detail-list"},n.createElement("li",null,n.createElement("div",{className:"subscription-detail"},n.createElement("p",null,k))),n.createElement("li",null,n.createElement("div",{className:"subscription-detail"},n.createElement("p",null,"7-Day Free Trial"),n.createElement("p",{style:{fontWeight:"bold"}},"$0"))),n.createElement("li",null,n.createElement("div",{className:"subscription-detail"},n.createElement("p",null,T?"Price":S),n.createElement("p",{style:{fontWeight:"bold",marginTop:10,marginBottom:10,textDecoration:T?"line-through":"inherit"}},N))),w,n.createElement("li",null,n.createElement("div",{className:"subscription-detail"},n.createElement(s.A,{variant:"subtitle2"},"Tax"),n.createElement(s.A,{variant:"subtitle2"},"Plus applicable taxes")))))),n.createElement("div",{className:"order-total",style:{borderTop:"solid 1px",borderColor:"lightgray"}},n.createElement("h5",null,"Payment Today"),n.createElement("h5",{style:{fontWeight:"bold"}},"$0"))))}g.defaultProps={displayPrice:null,promoCodeInfo:null}}}]);
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.