PageSourceSearch

https://www.aixsurge.com/_next/static/chunks/9195.41473c39e22cc68f.js

js aixsurge.com collected 2026-10-09 22:56:59 UTC 14,921 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9195],{8407:()=>{},15737:(e,n,l)=>{"use strict";l.d(n,{m:()=>t});var s=l(40168),a=l(44100),r=l(2553);l(61668);let i=(0,r.om)("control-label"),t=a.forwardRef((e,n)=>{let{children:l,className:r,labelClassName:t,title:d,style:c,disabled:o=!1,control:h,size:p="m",qa:u}=e,x=a.cloneElement(h,{className:i("indicator",h.props.className)});return(0,s.jsxs)("label",{ref:n,title:d,style:c,className:i({size:p,disabled:o},r),"data-qa":u,children:[x,l?(0,s.jsx)("span",{className:i("text",t),children:l}):null]})});t.displayName="ControlLabel"},21670:(e,n,l)=>{"use strict";l.d(n,{x:()=>f});var s=l(40168),a=l(44100),r=l(39651),i=l(65685),t=l(30910),d=l(96152),c=l(42451);let o=a.createContext(null);o.displayName="RadioGroup.Context";var h=l(42542),p=l(2553),u=l(34067),x=l(10356),m=l(25341);let j=(0,p.om)("segmented-radio-group"),w=a.forwardRef(function(e,n){let l=a.useContext(o);if(!l)throw Error("<SegmentedRadioGroup.Option> must be used within <SegmentedRadioGroup>");let{name:t,currentValue:d,disabled:h,onChange:p}=l,{disabled:w,content:v,children:f,title:g,value:k}=e,b=h||w,{checked:_,inputProps:N}=function(e){let{name:n,value:l,checked:s,defaultChecked:t,disabled:d,controlRef:o,controlProps:h,onUpdate:p,onChange:m,onFocus:j,onBlur:w,id:v}=e,f=(0,r.u)(),g=a.useRef(null),[k,b]=(0,i.P)(s,null!=t&&t,p),_=(0,c.d)({initialValue:k,onReset:b}),N=(0,u.N)(o,g,_),y={...h,name:n||f,value:l,id:v,onFocus:j,onBlur:w,disabled:d,type:"radio",onChange:e=>{b(e.target.checked),m&&m(e)},onChangeCapture:e=>{x.o.publish({componentId:"Radio",eventId:"click",domEvent:e})},checked:s,defaultChecked:t,ref:N};return{checked:k,inputProps:y}}({...e,name:t,disabled:b,checked:k===d,onChange:p}),y=v||f,C=(0,m.If)(y)||(0,m.$D)(y);return(0,s.jsxs)("label",{className:j("option",{disabled:b,checked:_}),ref:n,title:g,children:[(0,s.jsx)("input",{...N,className:j("option-control")}),y&&(0,s.jsx)("span",{className:j("option-text",{icon:C}),children:y})]})});l(95640);let v=(0,p.om)("segmented-radio-group"),f=a.forwardRef(function(e,n){let l=(0,h.b)("SegmentedRadioGroup",e),{size:p="m",width:u,style:x,className:m,qa:j,children:f}=l,g=l.options,{containerProps:k,optionsProps:b,contextProps:_}=function(e){let{name:n,value:l,defaultValue:s,options:o=[],disabled:h,onUpdate:p,onChange:u,onFocus:x,onBlur:m}=e,j=(0,r.u)(),[w,v]=(0,i.P)(l,null!=s?s:null,p),f=(0,c.d)({initialValue:w,onReset:v}),{focusWithinProps:g}=(0,t.R)({onFocusWithin:x,onBlurWithin:m}),k=a.useCallback(e=>{v(e.target.value),u&&u(e)},[u,v]),b=a.useMemo(()=>({name:n||j,currentValue:w,disabled:!!h,ref:f,onChange:k}),[j,w,h,f,k,n]);return{containerProps:{...(0,d.$)(e,{labelable:!0}),...g,role:"radiogroup","aria-disabled":h},optionsProps:o.map(e=>({name:n||j,value:e.value,content:e.content,title:e.title,checked:w===String(e.value),disabled:h||e.disabled,onChange:k,ref:f})),contextProps:b}}({...l,options:g});return(0,s.jsx)(o.Provider,{value:_,children:(0,s.jsx)("div",{...k,ref:n,style:x,className:v({size:p,width:u},m),"data-qa":j,children:f||(null==b?void 0:b.map(e=>(0,a.createElement)(w,{...e,key:e.value})))})})});f.Option=w},39195:(e,n,l)=>{"use strict";l.r(n),l.d(n,{default:()=>v});var s=l(40168),a=l(44100),r=l(26601),i=l(63618),t=l(85012),d=l(2020),c=l(21670),o=l(81049),h=l(73498);l(8407);let p=e=>h.py[e.workout].title.replace(" \xb7 ",": "),u=["swim","bike","run"],x={swim:"Swimming",bike:"Cycling",run:"Running"};function m(e){let{week:n}=e;return(0,s.jsx)("ol",{className:"plan-explorer__agenda","aria-label":"Week ".concat(n.number," daily sessions"),children:n.days.map((e,n)=>(0,s.jsxs)("li",{children:[(0,s.jsx)("h4",{children:h.qn[n]}),(0,s.jsx)("div",{children:e.length?e.map(e=>(0,s.jsxs)("details",{className:"plan-explorer__session",children:[(0,s.jsxs)("summary",{children:[(0,s.jsx)("span",{children:p(e)}),(0,s.jsx)("strong",{children:e.minutes?(0,h.dp)(e.minutes):"Race"})]}),(0,s.jsx)("p",{children:h.py[e.workout].instructions})]},e.workout)):(0,s.jsx)("p",{className:"plan-explorer__rest",children:"Rest day"})})]},h.qn[n]))})}function j(e){let{plan:n,selected:l}=e;return(0,s.jsxs)("details",{id:"".concat(n.length,"-week-plan"),className:"plan-explorer__edition","data-selected":l,children:[(0,s.jsxs)("summary",{children:["Full ",n.length,"-week schedule"]}),(0,s.jsxs)("p",{children:["Version ",n.version,"."," ","draft"===n.status?"Coaching review pending.":"Reviewed by ".concat(n.reviewer,".")]}),n.weeks.map(e=>(0,s.jsxs)("details",{className:"plan-explorer__full-week",children:[(0,s.jsxs)("summary",{children:["Week ",e.number,": ",e.phase," ",(0,s.jsx)("span",{children:(0,h.dp)((0,h.Vo)(e))})]}),(0,s.jsx)("p",{children:e.focus}),(0,s.jsxs)("table",{children:[(0,s.jsxs)("caption",{children:["Week ",e.number," of the ",n.length,"-week plan"]}),(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{scope:"col",children:"Day"}),(0,s.jsx)("th",{scope:"col",children:"Training"})]})}),(0,s.jsx)("tbody",{children:e.days.map((e,n)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{scope:"row",children:h.qn[n]}),(0,s.jsx)("td",{children:e.length?e.map(e=>(0,s.jsxs)("div",{children:[(0,s.jsx)("a",{href:"#session-".concat(e.workout),children:p(e)}),e.minutes>0&&" (".concat(e.minutes," min)")]},e.workout)):"Rest"})]},h.qn[n]))})]})]},e.number))]})}function w(e){let{distance:n,onChoose:l}=e,[r,c]=(0,a.useState)(""),[o,p]=(0,a.useState)(""),[u,x]=(0,a.useState)(!1),[m,j]=(0,a.useState)(),w=()=>j(void 0);return(0,s.jsxs)("details",{className:"plan-explorer__help",children:[(0,s.jsx)("summary",{children:"Help me cho
1ose"}),(0,s.jsx)("p",{children:"Check which length fits your race date and available time. Your current training still needs to match the opening weeks."}),(0,s.jsxs)("form",{onSubmit:e=>{var l;e.preventDefault(),j((0,h.HX)(n,null!=(l=(0,h.kY)(r))?l:0,Number(o),u))},children:[(0,s.jsxs)("div",{className:"plan-explorer__fields",children:[(0,s.jsxs)("label",{htmlFor:"plan-race-date",children:["Race date",(0,s.jsx)("input",{id:"plan-race-date",className:"plan-explorer__date",type:"date",value:r,onChange:e=>{c(e.target.value),w()},autoComplete:"off"})]}),(0,s.jsxs)("label",{htmlFor:"plan-hours",children:["Hours available in a peak week",(0,s.jsx)(i.k,{id:"plan-hours",type:"number",size:"xl",value:o,controlProps:{min:1,max:40,step:.5,inputMode:"decimal"},onUpdate:e=>{p(e),w()}})]})]}),(0,s.jsx)(t.S,{size:"l",checked:u,onUpdate:e=>{x(e),w()},children:"I already swim, cycle and run regularly."}),(0,s.jsx)(d.$,{type:"submit",size:"xl",view:"outlined",children:"Check the fit"})]}),m&&(0,s.jsxs)("div",{className:"plan-explorer__result",role:"status",children:[(0,s.jsx)("p",{children:m.reason}),"match"===m.status&&(0,s.jsxs)(d.$,{size:"xl",view:"outlined",onClick:()=>l(m.plan.length),children:["View ",m.plan.length,"-week plan"]})]})]})}function v(e){var n;let{distance:l,defaultEdition:i,editionNotes:t}=e,p=(0,h.iV)(l),[v,f]=(0,a.useState)(i),[g,k]=(0,a.useState)(1),b=(0,a.useRef)(null),_=p.find(e=>e.length===v)||p[0],N=_.weeks[Math.min(g,_.length)-1],y=(0,h.Vo)(N),C=e=>{f(e),k(1)},S=[...new Set(p.flatMap(e=>e.weeks.flatMap(e=>e.days.flat().map(e=>e.workout))))];return(0,a.useEffect)(()=>{let e=()=>{var e;let n=Number(null==(e=window.location.hash.match(/^#(\d+)-week-plan$/))?void 0:e[1]);if(p.some(e=>e.length===n)){C(n);let e=document.getElementById("".concat(n,"-week-plan"));e&&(e.open=!0)}};return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[l]),(0,a.useEffect)(()=>{let e=null,n=()=>{var n,l;if(!e){for(let s of(e=Array.from((null==(n=b.current)?void 0:n.querySelectorAll("details"))||[]).map(e=>[e,e.open]),(null==(l=b.current)?void 0:l.querySelectorAll('.plan-explorer__edition[data-selected="true"], .plan-explorer__edition[data-selected="true"] details, .plan-explorer__instructions'))||[]))s.open=!0;document.body.classList.add("printing-training-plan")}},l=()=>{for(let[n,l]of e||[])n.open=l;e=null,document.body.classList.remove("printing-training-plan")};return window.addEventListener("beforeprint",n),window.addEventListener("afterprint",l),()=>{window.removeEventListener("beforeprint",n),window.removeEventListener("afterprint",l),l()}},[]),(0,s.jsx)("section",{className:"plan-explorer",ref:b,"aria-label":"Half Ironman reference plans",children:(0,s.jsx)(r.xA9,{children:(0,s.jsx)(r.fI1,{children:(0,s.jsxs)(r.fvL,{sizes:{all:12},children:[(0,s.jsxs)("div",{className:"plan-explorer__print-heading",children:[(0,s.jsxs)("h2",{children:[_.length,"-week ",null==(n=h.RT.find(e=>e.id===l))?void 0:n.name," ","training plan"]}),(0,s.jsx)("p",{children:"Aixsurge reference schedule"})]}),(0,s.jsxs)("div",{className:"plan-explorer__intro",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{children:"Choose your plan"}),(0,s.jsx)("p",{children:"Start with the opening week. Check that its frequency and longer sessions fit the training you already do."})]}),(0,s.jsxs)("div",{className:"plan-explorer__choices",children:[(0,s.jsx)(c.x,{size:"xl",width:"max","aria-label":"Plan length",value:String(_.length),onUpdate:e=>C(Number(e)),options:p.map(e=>({value:String(e.length),content:"".concat(e.length," weeks")}))}),(0,s.jsx)("p",{"aria-live":"polite",children:t[_.length]})]})]}),(0,s.jsxs)("dl",{className:"plan-explorer__facts","aria-label":"".concat(_.length,"-week plan commitment"),children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{children:"Opening week"}),(0,s.jsx)("dd",{children:(0,h.dp)((0,h.Vo)(_.weeks[0]))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{children:"Peak week"}),(0,s.jsx)("dd",{children:(0,h.dp)((0,h.LS)(_))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{children:"Training days"}),(0,s.jsxs)("dd",{children:[_.weeks[0].days.filter(e=>e.length).length," per week"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{children:"Longest ride"}),(0,s.jsx)("dd",{children:(0,h.dp)(Math.max(..._.weeks.flatMap(e=>e.days.flat().filter(e=>"bike"===h.py[e.workout].sport).map(e=>e.minutes))))})]})]}),"draft"===_.status&&(0,s.jsxs)("p",{className:"plan-explorer__notice",children:[(0,s.jsx)("strong",{children:"Sample schedule."})," Coaching review pending."]}),(0,s.jsx)(w,{distance:l,onChoose:C}
1),(0,s.jsxs)("div",{className:"plan-explorer__week-view",children:[(0,s.jsxs)("div",{className:"plan-explorer__week-heading",children:[(0,s.jsx)("h2",{children:"Your training week"}),(0,s.jsx)(d.$,{size:"xl",view:"outlined",onClick:()=>window.print(),children:"Print / save PDF"})]}),(0,s.jsxs)("div",{className:"plan-explorer__week-controls",children:[(0,s.jsxs)("label",{id:"plan-week-label",children:["Week",(0,s.jsx)(o.l,{size:"xl",width:"max",value:[String(N.number)],"aria-label":"Training week",onUpdate:e=>{let[n]=e;return k(Number(n))},options:_.weeks.map(e=>({value:String(e.number),content:"Week ".concat(e.number,": ").concat(e.phase)}))})]}),(0,s.jsxs)("div",{className:"plan-explorer__week-nav",children:[(0,s.jsx)(d.$,{size:"xl",view:"outlined",disabled:1===N.number,onClick:()=>k(N.number-1),children:"Previous"}),(0,s.jsx)(d.$,{size:"xl",view:"outlined",disabled:N.number===_.length,onClick:()=>k(N.number+1),children:"Next week"})]})]}),(0,s.jsxs)("div",{className:"plan-explorer__week-summary","aria-live":"polite",children:[(0,s.jsxs)("h3",{children:["Week ",N.number,": ",N.phase]}),(0,s.jsx)("p",{children:N.focus}),(0,s.jsx)("div",{className:"plan-explorer__allocation","aria-hidden":"true",children:u.map(e=>(0,s.jsx)("span",{className:"plan-explorer__".concat(e),style:{width:"".concat(y?(0,h.qZ)(N,e)/y*100:0,"%")}},e))}),(0,s.jsxs)("dl",{className:"plan-explorer__sport-times",children:[u.map(e=>(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{children:x[e]}),(0,s.jsx)("dd",{children:(0,h.dp)((0,h.qZ)(N,e))})]},e)),(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{children:"Total"}),(0,s.jsx)("dd",{children:(0,h.dp)(y)})]})]})]}),(0,s.jsx)(m,{week:N},"".concat(v,"-").concat(N.number)),(0,s.jsx)("p",{className:"plan-explorer__time-note",children:"Times include warm-up, cool-down and rests within sessions. Allow extra time for travel and changing. The brick counts as running; race time is excluded."})]}),(0,s.jsxs)("div",{className:"plan-explorer__library",children:[(0,s.jsx)("h2",{children:"Complete schedules"}),(0,s.jsx)("p",{children:"Read any edition from start to finish. Session names link to the instructions below."}),"draft"===_.status&&(0,s.jsx)("p",{className:"plan-explorer__notice",children:h.fu}),p.map(e=>(0,s.jsx)(j,{plan:e,selected:e.length===v},e.id)),(0,s.jsxs)("details",{className:"plan-explorer__instructions",children:[(0,s.jsx)("summary",{children:"Session instructions"}),S.map(e=>(0,s.jsxs)("div",{id:"session-".concat(e),children:[(0,s.jsx)("h3",{children:h.py[e].title.replace(" \xb7 ",": ")}),(0,s.jsx)("p",{children:h.py[e].instructions})]},e))]})]})]})})})})}},51023:(e,n,l)=>{"use strict";l.d(n,{v:()=>c});var s=l(44100),a=l(65685),r=l(34067),i=l(80531),t=l(10356),d=l(42451);function c(e){let{name:n,value:l,id:c,defaultChecked:o,checked:h,indeterminate:p,onUpdate:u,onChange:x,controlRef:m,controlProps:j,onFocus:w,onBlur:v,disabled:f}=e,g=s.useRef(null),[k,b]=(0,a.P)(h,null!=o&&o,u),_=!p&&h,N=(0,d.d)({initialValue:k,onReset:b}),y=(0,r.N)(m,g,N);(0,i.N)(()=>{g.current&&(g.current.indeterminate=!!p)},[p]);let C=s.useCallback(e=>{t.o.publish({componentId:"Checkbox",eventId:"click",domEvent:e,meta:{checked:e.target.checked}})},[]);return{checked:k,inputProps:{...j,name:n,value:l,id:c,onFocus:w,onBlur:v,disabled:f,type:"checkbox",onChange:e=>{b(e.target.checked),x&&x(e)},onClickCapture:C,defaultChecked:o,checked:_,ref:y}}}},61668:()=>{},85012:(e,n,l)=>{"use strict";l.d(n,{S:()=>p});var s=l(40168),a=l(44100),r=l(51023),i=l(15737),t=l(42542),d=l(2553);function c(e){return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor",...e,children:(0,s.jsx)("path",{d:"M4 7h9v3H4z"})})}function o(e){return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor",...e,children:(0,s.jsx)("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"})})}l(96324);let h=(0,d.om)("checkbox"),p=a.forwardRef(function(e,n){let l=(0,t.b)("Checkbox",e),{size:a="m",indeterminate:d,disabled:p=!1,content:u,children:x,title:m,style:j,className:w,qa:v}=l,{checked:f,inputProps:g}=(0,r.v)(l),k=(0,s.jsxs)("span",{className:h("indicator"),children:[(0,s.jsx)("span",{className:h("icon"),"aria-hidden":!0,
1children:d?(0,s.jsx)(c,{className:h("icon-svg",{type:"dash"})}):(0,s.jsx)(o,{className:h("icon-svg",{type:"tick"})})}),(0,s.jsx)("input",{...g,className:h("control")}),(0,s.jsx)("span",{className:h("outline")})]});return(0,s.jsx)(i.m,{ref:n,title:m,style:j,size:a,disabled:p,className:h({size:a,disabled:p,indeterminate:d,checked:f},w),qa:v,control:k,children:u||x})})},95640:()=>{},96324:()=>{}}]);

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.