PageSourceSearch

https://ever.healthcare/5058.2cab20767e3bc8f54601.chunk.js

js ever.healthcare collected 2026-10-06 09:02:33 UTC 18,242 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkreact_boilerplate=self.webpackChunkreact_boilerplate||[]).push([[5058],{195058:(e,t,o)=>{function i(e){return i="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},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=i(e)&&"function"!=typeof e)return{default:e};var o=x(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var d=r?Object.getOwnPropertyDescriptor(e,a):null;d&&(d.get||d.set)?Object.defineProperty(n,a,d):n[a]=e[a]}return n.default=e,o&&o.set(e,n),n}(o(551710)),a=(v(o(338071)),o(916169)),d=o(91342),l=o(301785),s=v(o(989107)),c=v(o(2693)),u=o(765398),f=v(o(50618)),p=v(o(505262)),g=o(817498),m=v(o(425576)),h=v(o(370781)),w=o(563823),b=o(253066);function v(e){return e&&e.__esModule?e:{default:e}}function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(x=function(e){return e?o:t})(e)}function y(e,t,o,i){n||(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=i;else if(a>1){for(var d=new Array(a),l=0;l<a;l++)d[l]=arguments[l+3];t.children=d}if(t&&r)for(var s in r)void 0===t[s]&&(t[s]=r[s]);else t||(t=r||{});return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}function C(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function _(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?C(Object(o),!0).forEach((function(t){k(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):C(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function k(e,t,o){var n;return n=function(e,t){if("object"!=i(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==i(n)?n:String(n))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function I(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 i,n,r,a,d=[],l=!0,s=!1;try{if(r=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;l=!1}else for(;!(l=(i=r.call(o)).done)&&(d.push(i.value),d.length!==t);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=o.return&&(a=o.return(),Object(a)!==a))return}finally{if(s)throw n}}return d}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return D(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 D(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 D(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=new Array(t);o<t;o++)i[o]=e[o];return i}var S={beginner:{bg:"#ecfdf5",text:"#059669"},intermediate:{bg:"#fef3c7",text:"#d97706"},advanced:{bg:"#fef2f2",text:"#dc2626"}},N={beginner:"Beginner",intermediate:"Intermediate",advanced:"Advanced"},P=c.default.div.withConfig({displayName:"CourseDetail__PageWrapper",componentId:"sc-1skwqde-0"})(["max-width:900px;margin:0 auto;padding:0 24px 80px;@media (max-width:640px){padding:0 16px 64px;}"]),q=c.default.div.withConfig({displayName:"CourseDetail__HeroSection",componentId:"sc-1skwqde-1"})(["width:100%;height:280px;position:relative;margin-bottom:32px;border-radius:0 0 24px 24px;overflow:hidden;@media (max-width:640px){height:200px;}"]),O=c.default.div.withConfig({displayName:"CourseDetail__HeroImage",componentId:"sc-1skwqde-2"})(["width:100%;height:100%;background:",";"],(function(e){return e.coverUrl?"url(".concat(e.coverUrl,") center/cover no-repeat"):e.bgColor||"linear-gradient(135deg, #6366f1, #22c55e)"})),M=c.default.div.withConfig({displayName:"CourseDetail__HeroGradient",componentId:"sc-1skwqde-3"})(["position:absolute;bottom:0;left:0;right:0;height:70%;background:linear-gradient(transparent,rgba(0,0,0,0.65));"]),j=c.default.div.withConfig({displayName:"CourseDetail__HeroContent",componentId:"sc-1skwqde-4"})(["position:absolute;bottom:24px;left:24px;right:24px;"]),E=c.default.h1.withConfig({displayName:"CourseDetail__HeroTitle",componentId:"sc-1skwqde-5"})(["font-size:28px;font-weight:700;color:#fff;margin:0 0 4px;line-height:1.2;@media (max-width:640px){font-size:22px;}"]),z=c.default.p.withConfig({displayName:"CourseDetail__HeroSubtitle",componentId:"sc-1skwqde-6"})(["font-size:15px;font-weight:400;color:rgba(255,255,255,0.85);margin:0;line-height:1.4;"]),L=(0,c.default)(u.motion.button).withConfig({displayName:"CourseDetail__BackButton",componentId:"sc-1skwqde-7"})(["position:absolute;top:16px;left:16px;width:40px;height:40px;border-radius:12px;border:none;background:rgba(255,255,255,0.2);backdrop-filter:blur(12px);color:#fff;font-size:20px;
1display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;"]),A=c.default.div.withConfig({displayName:"CourseDetail__StatsPillBar",componentId:"sc-1skwqde-8"})(["display:flex;gap:10px;flex-wrap:wrap;margin-bottom:32px;"]),T=c.default.div.withConfig({displayName:"CourseDetail__StatPill",componentId:"sc-1skwqde-9"})(["display:flex;align-items:center;gap:6px;padding:8px 16px;background:#f8fafc;border-radius:9999px;font-size:13px;font-weight:500;color:#4b5563;"]),H=c.default.span.withConfig({displayName:"CourseDetail__StatPillIcon",componentId:"sc-1skwqde-10"})(["font-size:16px;"]),U=(0,c.default)(T).withConfig({displayName:"CourseDetail__DifficultyPill",componentId:"sc-1skwqde-11"})(["background:",";color:",";font-weight:600;"],(function(e){return e.bgColor||"#f1f5f9"}),(function(e){return e.textColor||"#4b5563"})),B=c.default.div.withConfig({displayName:"CourseDetail__DescriptionSection",componentId:"sc-1skwqde-12"})(["margin-bottom:36px;"]),W=c.default.h2.withConfig({displayName:"CourseDetail__SectionLabel",componentId:"sc-1skwqde-13"})(["font-size:18px;font-weight:600;color:#1a1a2e;margin:0 0 12px;"]),X=c.default.p.withConfig({displayName:"CourseDetail__DescriptionText",componentId:"sc-1skwqde-14"})(["font-size:15px;font-weight:400;color:#4b5563;line-height:1.7;margin:0;"]),G=c.default.div.withConfig({displayName:"CourseDetail__CTASection",componentId:"sc-1skwqde-15"})(["margin-bottom:36px;"]),R=(0,c.default)(u.motion.button).withConfig({displayName:"CourseDetail__EnrollButton",componentId:"sc-1skwqde-16"})(["width:100%;padding:16px 24px;background:linear-gradient(135deg,#6366f1,#22c55e);color:#fff;border:none;border-radius:12px;font-size:16px;font-weight:600;cursor:pointer;box-shadow:0 4px 14px rgba(99,102,241,0.35);&:disabled{opacity:0.6;cursor:not-allowed;}"]),$=c.default.div.withConfig({displayName:"CourseDetail__ProgressSection",componentId:"sc-1skwqde-17"})(["background:#f8fafc;border-radius:12px;padding:20px;"]),F=c.default.div.withConfig({displayName:"CourseDetail__ProgressHeader",componentId:"sc-1skwqde-18"})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;"]),J=c.default.span.withConfig({displayName:"CourseDetail__ProgressLabel",componentId:"sc-1skwqde-19"})(["font-size:14px;font-weight:600;color:#1a1a2e;"]),K=c.default.span.withConfig({displayName:"CourseDetail__ProgressPct",componentId:"sc-1skwqde-20"})(["font-size:14px;font-weight:600;color:#6366f1;"]),Q=c.default.div.withConfig({displayName:"CourseDetail__ProgressBarTrack",componentId:"sc-1skwqde-21"})(["width:100%;height:8px;background:#e5e7eb;border-radius:9999px;overflow:hidden;"]),V=(0,c.default)(u.motion.div).withConfig({displayName:"CourseDetail__ProgressBarFill",componentId:"sc-1skwqde-22"})(["height:100%;background:linear-gradient(90deg,#6366f1,#22c55e);border-radius:9999px;"]),Y=c.default.div.withConfig({displayName:"CourseDetail__ProgressStats",componentId:"sc-1skwqde-23"})(["display:flex;gap:24px;margin-top:12px;"]),Z=c.default.div.withConfig({displayName:"CourseDetail__ProgressStat",componentId:"sc-1skwqde-24"})(["font-size:12px;font-weight:500;color:#6b7280;
1strong{color:#1a1a2e;font-weight:600;}"]),ee=c.default.div.withConfig({displayName:"CourseDetail__ModulesSection",componentId:"sc-1skwqde-25"})(["margin-bottom:36px;"]),te=c.default.div.withConfig({displayName:"CourseDetail__ModuleItem",componentId:"sc-1skwqde-26"})(["background:#fff;border:1px solid #f1f5f9;border-radius:12px;margin-bottom:12px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,0.08);"]),oe=(0,c.default)(u.motion.button).withConfig({displayName:"CourseDetail__ModuleHeader",componentId:"sc-1skwqde-27"})(["width:100%;padding:16px 20px;background:none;border:none;display:flex;align-items:center;justify-content:space-between;cursor:pointer;text-align:left;"]),ie=c.default.div.withConfig({displayName:"CourseDetail__ModuleInfo",componentId:"sc-1skwqde-28"})(["flex:1;"]),ne=c.default.h3.withConfig({displayName:"CourseDetail__ModuleTitle",componentId:"sc-1skwqde-29"})(["font-size:15px;font-weight:600;color:#1a1a2e;margin:0 0 2px;"]),re=c.default.span.withConfig({displayName:"CourseDetail__ModuleSubInfo",componentId:"sc-1skwqde-30"})(["font-size:12px;font-weight:400;color:#9ca3af;"]),ae=(0,c.default)(u.motion.span).withConfig({displayName:"CourseDetail__ChevronIcon",componentId:"sc-1skwqde-31"})(["font-size:18px;color:#9ca3af;display:inline-block;"]),de=(0,c.default)(u.motion.div).withConfig({displayName:"CourseDetail__LessonsList",componentId:"sc-1skwqde-32"})(["overflow:hidden;"]),le=(0,c.default)(u.motion.div).withConfig({displayName:"CourseDetail__LessonItem",componentId:"sc-1skwqde-33"})(["display:flex;align-items:center;gap:12px;padding:12px 20px;border-top:1px solid #f8fafc;cursor:pointer;transition:background 0.2s cubic-bezier(0.16,1,0.3,1);&:hover{background:#fafbfd;}"]),se=c.default.div.withConfig({displayName:"CourseDetail__LessonCheckbox",componentId:"sc-1skwqde-34"})(["width:22px;height:22px;border-radius:8px;border:2px solid ",";background:",";display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff;font-size:12px;transition:all 0.2s cubic-bezier(0.16,1,0.3,1);"],(function(e){return e.completed?"#6366f1":"#d1d5db"}),(function(e){return e.completed?"#6366f1":"transparent"})),ce=c.default.span.withConfig({displayName:"CourseDetail__LessonTitle",componentId:"sc-1skwqde-35"})(["font-size:14px;font-weight:500;color:",";text-decoration:",";flex:1;"],(function(e){return e.completed?"#9ca3af":"#1a1a2e"}),(function(e){return e.completed?"line-through":"none"})),ue=c.default.span.withConfig({displayName:"CourseDetail__LessonDuration",componentId:"sc-1skwqde-36"})(["font-size:12px;font-weight:400;color:#9ca3af;"]),fe=c.default.div.withConfig({displayName:"CourseDetail__MilestonesSection",componentId:"sc-1skwqde-37"})(["margin-bottom:36px;"]),pe=(0,c.default)(u.motion.div).withConfig({displayName:"CourseDetail__MilestoneCard",componentId:"sc-1skwqde-38"})(["background:linear-gradient(135deg,#fef3c7,#fde68a);border-radius:12px;padding:16px 20px;display:flex;align-items:center;gap:16px;margin-bottom:12px;box-shadow:0 1px 3px rgba(0,0,0,0.08);transition:box-shadow 0.3s cubic-bezier(0.16,1,0.3,1);&:hover{box-shadow:0 8px 30px rgba(0,0,0,0.12);}"]),ge=c.default.div.withConfig({displayName:"CourseDetail__MilestoneIcon",componentId:"sc-1skwqde-39"})(["width:44px;height:44px;background:rgba(255,255,255,0.7);border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;"]),me=c.default.div.withConfig({displayName:"CourseDetail__MilestoneInfo",componentId:"sc-1skwqde-40"})(["flex:1;"]),he=c.default.h4.withConfig({displayName:"CourseDetail__MilestoneTitle",componentId:"sc-1skwqde-41"})(["font-size:14px;font-weight:600;color:#92400e;margin:0 0 2px;"]),we=c.default.span.withConfig({displayName:"CourseDetail__MilestoneXP",componentId:"sc-1skwqde-42"})(["font-size:12px;font-weight:500;color:#b45309;"]),be=(0,c.default)(u.motion.button).withConfig({displayName:"CourseDetail__ClaimButton",componentId:"sc-1skwqde-43"})(["padding:8px 16px;background:#f59e0b;color:#fff;border:none;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;&:disabled{opacity:0.5;cursor:not-allowed;}"]),ve=c.default.div.withConfig({displayName:"CourseDetail__LoadingContainer",componentId:"sc-1skwqde-44"})(["display:flex;align-items:center;justify-content:center;min-height:400px;"]),xe=(0,c.default)(u.motion.div).withConfig({displayName:"CourseDetail__Spinner",componentId:"sc-1skwqde-45"})(["width:40px;height:40px;border:3px solid #f1f5f9;border-top-color:#6366f1;border-radius:50%;"]),ye=y(M,{}),Ce=y(H,{},void 0,"\u{1f4d6}"),_e=y(H,{},void 0,"\u{1f4c5}"),ke=y(H,{},void 0,"\u26a1"),Ie=y(H,{},void 0,"\u{1f3af}");
1var De=(0,l.createStructuredSelector)({courseDetail:(0,b.makeSelectCourseDetail)(),courseDetailLoading:(0,b.makeSelectCourseDetailLoading)(),enrolling:(0,b.makeSelectEnrolling)(),userProgress:(0,b.makeSelectUserProgress)(),error:(0,b.makeSelectError)()});var Se=(0,a.connect)(De,(function(e){return{dispatch:e}})),Ne=(0,f.default)({key:"patientEducation",reducer:m.default}),Pe=(0,p.default)({key:"patientEducation",saga:h.default});t.default=(0,d.compose)(Ne,Pe,Se)((function(e){var t=e.courseDetail,o=e.courseDetailLoading,i=e.enrolling,n=e.userProgress,a=(e.error,e.dispatch),d=e.match,l=e.history,c=d.params.courseId,f=I((0,r.useState)({}),2),p=f[0],m=f[1];(0,r.useEffect)((function(){a((0,w.fetchCourseDetail)(c)),a((0,w.fetchUserProgress)())}),[c]);var h=(0,r.useMemo)((function(){return n&&n.enrollments?n.enrollments.find((function(e){return e.courseId===c})):null}),[n,c]),b=!!h,v=h?Math.round(h.lessonsCompleted/Math.max((null===t||void 0===t?void 0:t.totalUnits)||1,1)*100):0;if(o||!t)return y(g.MotionPage,{},void 0,y(ve,{},void 0,y(xe,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}})));var x=S[t.difficulty]||{};return y(g.MotionPage,{},void 0,y(q,{},void 0,y(O,{coverUrl:t.coverImageUrl,bgColor:t.color?"linear-gradient(135deg, ".concat(t.color,", ").concat(t.color,"cc)"):void 0}),ye,y(L,{whileHover:{scale:1.02},whileTap:{scale:.92},transition:{duration:.15,ease:g.EASE_MICRO},onClick:function(){l.push("/patient-education")}},void 0,"\u2190"),y(j,{},void 0,y(E,{},void 0,t.title),t.subtitle&&y(z,{},void 0,t.subtitle))),y(P,{},void 0,y(A,{},void 0,t.difficulty&&y(U,{bgColor:x.bg,textColor:x.text},void 0,s.default.t(N[t.difficulty]||"Beginner")),null!=t.totalUnits&&y(T,{},void 0,Ce,s.default.t("{{count}} Units",{count:t.totalUnits})),null!=t.estimatedWeeks&&y(T,{},void 0,_e,s.default.t("{{count}} Weeks",{count:t.estimatedWeeks})),null!=t.totalXP&&y(T,{},void 0,ke,s.default.t("{{xp}} XP",{xp:t.totalXP})),null!=t.dailyGoalMinutes&&y(T,{},void 0,Ie,s.default.t("Daily Goal")," ",s.default.t("{{count}} min",{count:t.dailyGoalMinutes}))),y(G,{},void 0,b?y($,{},void 0,y(F,{},void 0,y(J,{},void 0,s.default.t("Progress")),y(K,{},void 0,v,"%")),y(Q,{},void 0,y(V,{initial:{width:0},animate:{width:"".concat(v,"%")},transition:{duration:.8,ease:g.EASE_SMOOTH}})),y(Y,{},void 0,y(Z,{},void 0,y("strong",{},void 0,h.lessonsCompleted||0)," ",s.default.t("Lessons Completed")),y(Z,{},void 0,y("strong",{},void 0,h.totalXPEarned||0)," XP"),h.dailyGoalStreak>0&&y(Z,{},void 0,y("strong",{},void 0,s.default.t("{{count}} Day Streak",{count:h.dailyGoalStreak}))))):y(R,{whileHover:{scale:1.02},whileTap:{scale:.96},transition:{duration:.15,ease:g.EASE_MICRO},onClick:function(){a((0,w.enrollCourse)(c))},disabled:i},void 0,i?"...":s.default.t("Enroll Now"))),y(B,{},void 0,y(W,{},void 0,s.default.t("Description")),y(X,{},void 0,t.description)),t.modules&&t.modules.length>0&&y(ee,{},void 0,y(W,{},void 0,s.default.t("Modules")),y(g.StaggerList,{},void 0,t.modules.map((function(e,t){var o=p[e.id];return y(g.StaggerItem,{},e.id||t,y(te,{},void 0,y(oe,{whileTap:{scale:.99},transition:{duration:.1,ease:g.EASE_MICRO},onClick:function(){return o=e.id||t,void m((function(e){return _(_({},e),{},k({},o,!e[o]))}));var o}},void 0,y(ie,{},void 0,y(ne,{},void 0,e.title||"Unit ".concat(t+1)),y(re,{},void 0,e.lessons?s.default.t("{{count}} Lessons",{count:e.lessons.length}):"")),y(ae,{animate:{rotate:o?180:0},transition:{duration:.25,ease:g.EASE_SMOOTH}},void 0,"\u25be")),y(u.AnimatePresence,{initial:!1},void 0,o&&e.lessons&&y(de,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.35,ease:g.EASE_SMOOTH}},"lessons",e.lessons.map((function(e,t){var o=h&&h.completedLessons&&h.completedLessons.includes(e.id);return y(le,{whileTap:{scale:.99},onClick:function(){var t;b&&!o&&(t=e.id,a((0,w.completeLesson)(c,t)))}},e.id||t,y(se,{completed:o},void 0,o&&"\u2713"),y(ce,{completed:o},void 0,e.title||"Lesson ".concat(t+1)),e.durationMinutes&&y(ue,{},void 0,s.default.t("{{count}} min",{count:e.durationMinutes})))}))))))})))),t.milestones&&t.milestones.length>0&&y(fe,{},void 0,y(W,{},void 0,s.default.t("Milestones")),y(g.StaggerList,{},void 0,t.milestones.map((function(e,t){var o=e.claimed,i=e.unlocked;return y(g.StaggerItem,{}
1,e.id||t,y(pe,{whileHover:{y:-2},transition:{duration:.2,ease:g.EASE_SMOOTH},style:{opacity:i||o?1:.55}},void 0,y(ge,{},void 0,o?"\u2705":i?"\u{1f3c6}":"\u{1f512}"),y(me,{},void 0,y(he,{},void 0,e.title),y(we,{},void 0,"+",s.default.t("{{xp}} XP",{xp:e.xpReward||0}))),i&&!o&&y(be,{whileHover:{scale:1.02},whileTap:{scale:.96},transition:{duration:.15,ease:g.EASE_MICRO}},void 0,s.default.t("Claim Reward"))))}))))))}))}}]);

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.