1import{u as d,ah as x,ar as p,as as h,r as o,aW as l,j as e,t as u,a0 as g,aY as f}from"./index-CyZ-pQAp.js";import b from"./ChallengesPage-Df_H7PcK.js";import"./CompletionPopup-OZ2oG9O6.js";import"./alert-dialog-BaGVJu3F.js";import"./ConfettiCanvas-CNB4xICF.js";import"./party-popper-DWjeGiPk.js";import"./arrow-right-left-D9Xu-B78.js";import"./textarea-C7qwAmQX.js";import"./calendar-Ch1P-Y3D.js";import"./isSameMonth-DVko0woM.js";import"./subDays-BSBIfK1A.js";import"./endOfMonth-aFsfreI_.js";import"./differenceInCalendarMonths-DXYsEh4R.js";import"./isAfter-Cn0wJWgU.js";import"./popover-D-5oJHro.js";import"./useMentorBookings-dcCB6HpO.js";import"./external-link-rilHTH9s.js";import"./calendar-C803Nn6o.js";import"./vi-DxAQwiEv.js";import"./file-text-8E1KycSb.js";import"./graduation-cap-Dm0tOonx.js";import"./target-DJoMdBMW.js";import"./refresh-cw-BSgnllaD.js";import"./chevron-up-DzuG9eeF.js";import"./image-njiNJf6s.js";import"./star-DNt5yvWY.js";import"./play-pP6pK1RW.js";import"./list-checks-CcTgqcVj.js";function $(){const r=d(),{challengeId:t}=x(),{hasCoachingMax:n,legacyFull:m,isLoading:a}=p(),{isAdmin:c,isLoading:s}=h();if(o.useEffect(()=>{(!t||t!==l)&&r(`/app/coach-max/${l}`,{replace:!0})},[t,r]),a||s)return e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx("div",{className:"h-8 w-8 border-2 border-primary border-t-transparent rounded-full animate-spin"})});const i=n||m||c;return o.useEffect(()=>{!a&&!s&&!i&&r("/coaching-max",{replace:!0})},[i,a,s,r]),!i||!t?null:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"relative overflow-hidden rounded-3xl border border-orange-500/30 bg-gradient-to-br from-orange-600/20 via-amber-500/10 to-rose-600/20 p-6 md:p-8",children:[e.jsx("div",{className:"absolute -top-10 -right-10 h-40 w-40 rounded-full bg-orange-500/20 blur-3xl"}),e.jsx("div",{className:"absolute -bottom-10 -left-10 h-40 w-40 rounded-full bg-rose-500/20 blur-3xl"}),e.jsxs("div",{className:"relative flex items-center gap-4",children:[e.jsx("div",{className:"h-14 w-14 rounded-2xl bg-gradient-to-br from-orange-500 to-rose-600 flex items-center justify-center shadow-lg shadow-orange-500/30",children:e.jsx(u,{className:"h-7 w-7 text-white"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs uppercase tracking-[0.2em] text-orange-300 font-semibold",children:[e.jsx(g,{className:"h-3 w-3"}),"Module Äá»c quyá»n â Coach Max 1:1"]}),e.jsx("h1",{className:"text-2xl md:text-3xl font-bold mt-1",children:"Chương trình Coach Max â Dà deadline tá»i X2 há»c phÃ"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1.5 max-w-2xl",children:"Lá» trình riêng ÄÆ°á»£c thiết kế cho há»c viên Coach Max. Ná»p bà i â coach chữa trá»±c tiếp â Äến khi Äạt KPI."})]}),e.jsxs("div",{className:"hidden md:flex flex-col items-end gap-1 text-right",children:[e.jsxs("div",{className:"px-3 py-1 rounded-full bg-orange-500/20 border border-orange-400/40 text-xs font-semibold text-orange-200 flex items-center gap-1.5",children:[e.jsx(f,{className:"h-3 w-3"})," VIP 1:1"]}),e.jsx("div",{className:"text-[11px] text-muted-foreground",children:"Tách biá»t vá»i Thá» thách công khai"})]})]})]}),e.jsx(b,{})]})}export{$ as default};
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.