1"use strict";(self.webpackChunkreact_boilerplate=self.webpackChunkreact_boilerplate||[]).push([[3350],{623350:(e,t,o)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,a,r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var o=p(t);if(o&&o.has(e))return o.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var l=a?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(i,r,l):i[r]=e[r]}return i.default=e,o&&o.set(e,i),i}(o(551710)),l=(i=o(2693))&&i.__esModule?i:{default:i},d=o(765398),s=o(962472),c=o(70364),u=o(817498),f=o(837809);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(p=function(e){return e?o:t})(e)}function m(e,t,o,n){a||(a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=n;else if(r>1){for(var l=new Array(r),d=0;d<r;d++)l[d]=arguments[d+3];t.children=l}if(t&&i)for(var s in i)void 0===t[s]&&(t[s]=i[s]);else t||(t=i||{});return{$$typeof:a,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,i,a,r,l=[],d=!0,s=!1;try{if(a=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;d=!1}else for(;!(d=(n=a.call(o)).done)&&(l.push(n.value),l.length!==t);d=!0);}catch(e){s=!0,i=e}finally{try{if(!d&&null!=o.return&&(r=o.return(),Object(r)!==r))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return h(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(e);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var y=[{id:"mountain",name:"Mountain",sanskrit:"Tadasana",emoji:"\u{1f9cd}",holdSecs:30,breathCue:"Stand tall, breathe deeply",difficulty:1},{id:"forward-fold",name:"Forward Fold",sanskrit:"Uttanasana",emoji:"\u{1f647}",holdSecs:30,breathCue:"Exhale as you fold, relax your neck",difficulty:1},{id:"downward-dog",name:"Downward Dog",sanskrit:"Adho Mukha",emoji:"\u{1f415}",holdSecs:45,breathCue:"Press hands down, lift hips up",difficulty:2},{id:"warrior-1",name:"Warrior I",sanskrit:"Virabhadrasana I",emoji:"\u2694\ufe0f",holdSecs:30,breathCue:"Front knee over ankle, arms high",difficulty:2},{id:"warrior-2",name:"Warrior II",sanskrit:"Virabhadrasana II",emoji:"\u{1f3f9}",holdSecs:30,breathCue:"Gaze over front hand, steady breath",difficulty:2},{id:"tree",name:"Tree Pose",sanskrit:"Vrksasana",emoji:"\u{1f333}",holdSecs:30,breathCue:"Find a focal point, root through standing foot",difficulty:2},{id:"chair",name:"Chair Pose",sanskrit:"Utkatasana",emoji:"\u{1fa91}",holdSecs:20,breathCue:"Sink hips, weight in heels, arms up",difficulty:3},{id:"cobra",name:"Cobra",sanskrit:"Bhujangasana",emoji:"\u{1f40d}",holdSecs:20,breathCue:"Inhale to rise, keep elbows soft",difficulty:1},{id:"child",name:"Child's Pose",sanskrit:"Balasana",emoji:"\u{1f9d2}",holdSecs:45,breathCue:"Rest and breathe into your back",difficulty:1},{id:"cat-cow",name:"Cat-Cow",sanskrit:"Marjaryasana",emoji:"\u{1f431}",holdSecs:30,breathCue:"Inhale arch, exhale round \u2014 flow with breath",difficulty:1},{id:"bridge",name:"Bridge",sanskrit:"Setu Bandha",emoji:"\u{1f309}",holdSecs:30,breathCue:"Press feet down, lift hips, open chest",difficulty:2},{id:"corpse",name:"Corpse Pose",sanskrit:"Savasana",emoji:"\u{1f9d8}",holdSecs:60,breathCue:"Let go of all effort, simply be",difficulty:1}],b=[{id:"morning",name:"Morning Sun",emoji:"\u{1f305}",desc:"Wake up your body gently",poses:["mountain","cat-cow","downward-dog","warrior-1","warrior-2","tree","forward-fold","mountain"]},{id:"desk",name:"Desk Reset",emoji:"\u{1f4bb}",desc:"Break from sitting \u2014 5 min",poses:["mountain","forward-fold","cat-cow","cobra","child","mountain"]},{id:"night",name:"Night Wind-Down",emoji:"\u{1f319}",desc:"Relax before sleep",poses:["child","cat-cow","forward-fold","bridge","corpse"]}],w=(0,l.default)(d.motion.div).withConfig({displayName:"YogaFlow__PageWrapper",componentId:"sc-54agt6-0"})(["display:flex;flex-direction:column;gap:24px;padding:8px 4px;max-width:600px;margin:0 auto;"]),v=(0,l.default)(d.motion.div).withConfig({displayName:"YogaFlow__Card",componentId:"sc-54agt6-1"})(["background:#f8f9fa;border-radius:16px;padding:24px;box-shadow:0 1px 3px rgba(0,0,0,0.08);body.dark-mode &{background:#1e1e2f;}"]),S=l.default.h3.withConfig({displayName:"YogaFlow__SectionTitle",componentId:"sc-54agt6-2"})(["font-size:16px;font-weight:600;margin:0 0 12px 0;
1color:#1a1a1a;body.dark-mode &{color:#e0e0e0;}"]),_=(0,l.default)(d.motion.button).withConfig({displayName:"YogaFlow__FlowCard",componentId:"sc-54agt6-3"})(["width:100%;padding:16px;border-radius:16px;border:2px solid ",";background:",";cursor:pointer;text-align:left;margin-bottom:10px;body.dark-mode &{border-color:",";}"],(function(e){return e.selected?"#22c55e":"#e0e0e0"}),(function(e){return e.selected?"#22c55e10":"transparent"}),(function(e){return e.selected?"#22c55e":"#444"})),x=(0,l.default)(d.motion.div).withConfig({displayName:"YogaFlow__PoseCircle",componentId:"sc-54agt6-4"})(["width:200px;height:200px;border-radius:50%;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;background:",";color:#fff;position:relative;"],(function(e){return e.bg||"linear-gradient(135deg, #22c55e, #16a34a)"})),k=(0,l.default)(d.motion.div).withConfig({displayName:"YogaFlow__BreathRing",componentId:"sc-54agt6-5"})(["position:absolute;inset:-8px;border-radius:50%;border:4px solid rgba(255,255,255,0.3);"]),C=l.default.div.withConfig({displayName:"YogaFlow__TimerText",componentId:"sc-54agt6-6"})(["font-size:36px;font-weight:700;font-variant-numeric:tabular-nums;"]),j=(0,l.default)(d.motion.div).withConfig({displayName:"YogaFlow__PoseEmoji",componentId:"sc-54agt6-7"})(["font-size:48px;margin-bottom:4px;"]),I=l.default.div.withConfig({displayName:"YogaFlow__PoseInfo",componentId:"sc-54agt6-8"})(["text-align:center;margin-top:16px;"]),F=l.default.div.withConfig({displayName:"YogaFlow__PoseName",componentId:"sc-54agt6-9"})(["font-size:20px;font-weight:700;color:#1a1a1a;body.dark-mode &{color:#e0e0e0;}"]),P=l.default.div.withConfig({displayName:"YogaFlow__Sanskrit",componentId:"sc-54agt6-10"})(["font-size:14px;color:#888;font-style:italic;"]),M=(0,l.default)(d.motion.div).withConfig({displayName:"YogaFlow__BreathCue",componentId:"sc-54agt6-11"})(["font-size:14px;color:#22c55e;font-weight:500;margin-top:8px;"]),N=l.default.div.withConfig({displayName:"YogaFlow__ProgressDots",componentId:"sc-54agt6-12"})(["display:flex;gap:6px;justify-content:center;margin-top:16px;"]),O=(0,l.default)(d.motion.div).withConfig({displayName:"YogaFlow__Dot",componentId:"sc-54agt6-13"})(["width:10px;height:10px;border-radius:50%;background:",";"],(function(e){return e.active?"#22c55e":e.done?"#22c55e80":"#e0e0e0"}));t.default=function(e){var t=e.onComplete,o=(0,f.useTranslation)().t,n=(0,s.useGamification)().logDailyTracking,i=g((0,r.useState)(null),2),a=i[0],l=i[1],p=g((0,r.useState)(0),2),h=p[0],T=p[1],z=g((0,r.useState)(!1),2),B=z[0],A=z[1],Y=g((0,r.useState)(0),2),E=Y[0],W=Y[1],D=g((0,r.useState)(!1),2),R=D[0],H=D[1],U=(0,r.useRef)(null),V=useMemo((function(){return a?a.poses.map((function(e){return y.find((function(t){return t.id===e}))})).filter(Boolean):[]}),[a]),$=V[h],G=V.reduce((function(e,t){return e+t.holdSecs}),0),q=(0,r.useCallback)((function(){V.length&&(T(0),W(V[0].holdSecs),A(!0),H(!1))}),[V]);return(0,r.useEffect)((function(){if(B)return U.current=setInterval((function(){W((function(e){return e<=1?(T((function(e){var t=e+1;return t>=V.length?(clearInterval(U.current),A(!1),H(!0),e):t})),0):e-1}))}),1e3),function(){return clearInterval(U.current)}}),[B,V.length]),(0,r.useEffect)((function(){B&&$&&W($.holdSecs)}),[h,B,$]),(0,r.useEffect)((function(){return function(){return clearInterval(U.current)}}),[]),m(w,{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.4,ease:u.EASE_SMOOTH}},void 0,a?m(v,{},void 0,m(S,{style:{textAlign:"center"}},void 0,R?"Namaste \u{1f64f}":a.emoji+" "+a.name),!B&&!R&&m("div",{style:{textAlign:"center"}},void 0,m("p",{style:{color:"#888",fontSize:13,marginBottom:16}},void 0,V.length," poses \xb7 ",Math.ceil(G/60)," minutes"),m("div",{style:{display:"flex",flexWrap:"wrap",gap:8,justifyContent:"center",marginBottom:20}},void 0,V.map((function(e,t){return m("div",{style:{fontSize:12,padding:"4px 10px",background:"#e0e0e0",borderRadius:8}},t,e.emoji," ",e.name)}))),m(c.SubmitButton,{onClick:q,whileHover:{scale:1.02},whileTap:{scale:.96},style:{background:"#22c55e"}},void 0,o("healthwallet.begin_flow"))),B&&$&&r.default.createElement(r.default.Fragment,null,m(x,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",stiffness:200,damping:15}},$.id,m(k,{animate:{scale:[1,1.08,1]},transition:{duration:4,repeat:1/0,ease:"easeInOut"}}),m(j,{initial:{scale:0,rotate:-20},animate:{scale:1,rotate:0},transition:{type:"spring",stiffness:300,damping:12}},$.id+"-emoji",$.emoji),m(C,{},void 0,E,"s")),m(I,{},void 0,m(F,{},void 0,$.name),m(P,{},void 0,$.sanskrit),m(M,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{delay:.3}},$.id+"-cue",$.breathCue)),m(N,{},void 0,V.map((function(e,t){return m(O,{active:t===h,done:t<h,animate:t===h?{scale:[1,1.3,1]}:{},transition:{duration:1,repeat:1/0}},t)}))),m("div",{style:{textAlign:"center",marginTop:16}},void 0,m(c.SubmitButton,{onClick:function(){clearInterval(U.current),A(!1)},whileHover:{scale:1.02},whileTap:{scale:.96},style:{background:"#ef4444"}},void 0,o("healthwallet.end_flow")))),R&&m("div",{style:{textAlign:"center",padding:20}},void 0,m(d.motion.div,{style:{fontSize:56},initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:12}},void 0,"\u{1f9d8}"),m("p",{style:{color:"#888",fontSize:14,marginTop:8}},void 0,V.length," poses \xb7 ",Math.ceil(G/60)," minutes of practice"),m(c.SubmitButton,{onClick:function(){H(!1);var e=n("yoga",{flow:a.name,poses:V.length,totalSeconds:G});l(null),t&&t(e)},whileHover:{scale:1.02},whileTap:{scale:.96},style:{marginTop:12}},void 0,o("healthwallet.log_yoga_5_pts")))):m(v,{},void 0,m(S,{},void 0,o("healthwallet.choose_your_flow")),m("p",{style:{fontSize:13,color:"#888",marginBottom:16}},void 0,o("healthwallet.select_a_guided_yoga_sequence_or")),b.map((function(e){var t=e.poses.map((function(e){return y.find((function(t){return t.id===e}))})).filter(Boolean),o=t.reduce((function(e,t){return e+t.holdSecs}),0);return m(_,{onClick:function(){return l(e)},whileHover:{scale:1.01,y:-2},whileTap:{scale:.98},transition:{duration:.15,ease:u.EASE_MICRO}},e.id,m("div",{style:{display:"flex",alignItems:"center",gap:12}},void 0,m("span",{style:{fontSize:32}},void 0,e.emoji),m("div",{},void 0,m("div",{style:{fontSize:16,fontWeight:600}},void 0,e.name),m("div",{style:{fontSize:13,color:"#888"}},void 0,e.desc),m("div",{style:{fontSize:12,color:"#22c55e",fontWeight:500,marginTop:2}},void 0,t.length," poses \xb7 ",Math.ceil(o/60)," min"))))}))))}}}]);
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.