PageSourceSearch

https://dietacademy.jp/_app/MemberAppGuide-BKEpfbL6.js

js dietacademy.jp collected 2026-10-07 11:48:56 UTC 10,572 bytes, 1 lines download raw bytes

1import{u as v,c as y,j as e,b as f}from"./index-D5yTtBfj.js";import{u as k,r as u}from"./react-w2_hd-Mb.js";import{M as b}from"./MemberSidebar-BTYZILLM.js";import{Q as d,ao as G,bk as S,a7 as n,aE as A,s as z,aQ as C}from"./lucide-ZnjHBfqS.js";import"./supabase-DkYWVPkI.js";const M=()=>{var o,m,c;const i=k(),{session:t}=v(),{language:a,t:s}=y(),[j,l]=u.useState(null),x=((m=(o=t==null?void 0:t.user)==null?void 0:o.user_metadata)==null?void 0:m.full_name)||"Member";return u.useEffect(()=>{var p;if(!((p=t==null?void 0:t.user)!=null&&p.id))return;(async()=>{try{const g=t.user.id,{data:r}=await f.from("enrollments").select("course_id").eq("student_id",g);if(!r||r.length===0){l(!1);return}const N=r.map(w=>w.course_id),{data:h}=await f.from("courses").select("id").in("id",N).eq("has_app_access",!0);l(!!h&&h.length>0)}catch{l(!1)}})()},[(c=t==null?void 0:t.user)==null?void 0:c.id]),j===!1?e.jsxs("div",{className:"min-h-screen bg-[#FDFCFB] flex flex-col md:flex-row",children:[e.jsx(b,{userName:x,memberStatus:s("member.sidebar.premium")}),e.jsx("main",{className:"flex-1 p-6 md:p-10 lg:p-14 max-w-4xl min-w-0 flex items-center justify-center",children:e.jsxs("div",{className:"bg-white rounded-3xl p-8 border border-stone-200 shadow-lg text-center space-y-6 max-w-md w-full",children:[e.jsx("div",{className:"w-16 h-16 rounded-2xl bg-amber-50 text-amber-600 flex items-center justify-center mx-auto border border-amber-200",children:e.jsx(d,{size:32})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-extrabold text-stone-900 font-serif-jp",children:a==="ja"?"アプリ利用権限がありません":"App Access Not Included"}),e.jsx("p",{className:"text-xs text-stone-500 font-medium leading-relaxed mt-2",children:a==="ja"?"ご受講中のコースにはアプリ(/app)の利用権限が含まれていません。アプリ利用対象のコースをご受講いただくか、事務局にお問い合わせください。":"Your current course enrollment does not include access to the Nutritional App (/app). Please check your course plan or contact support."})]}),e.jsx("button",{onClick:()=>i("/member-area"),className:"w-full py-3.5 bg-stone-900 hover:bg-stone-800 text-white rounded-2xl font-bold text-sm shadow-md transition-all active:scale-95",children:a==="ja"?"受講生マイページに戻る":"Back to Student Portal"})]})})]}):e.jsxs("div",{className:"min-h-screen bg-[#FDFCFB] flex flex-col md:flex-row",children:[e.jsx(b,{userName:x,memberStatus:s("member.sidebar.premium")}),e.jsxs("main",{className:"flex-1 p-6 md:p-10 lg:p-14 max-w-5xl min-w-0 relative",children:[e.jsxs("div",{className:"absolute inset-0 z-50 flex flex-col items-center justify-center bg-white/30 backdrop-blur-md m-2 md:m-4 rounded-3xl",children:[e.jsx("div",{className:"bg-stone-900 text-white font-bold tracking-[0.2em] font-serif-jp py-5 px-12 rounded-full shadow-2xl border border-stone-700 transform -rotate-2 text-xl md:text-2xl mb-4",children:"近日公開"}),e.jsx("p",{className:"text-stone-800 font-bold tracking-widest text-sm bg-white/90 px-6 py-2 rounded-full shadow-md",children:"現在準備中です (Coming Soon)"})]}),e.jsxs("div",{className:"pointer-events-none select-none opacity-40",children:[" ",e.jsxs("header",{className:"mb-10 animate-fadeInUp",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-emerald-50 text-emerald-600 border border-emerald-200/60 text-xs font-bold mb-3 shadow-sm",children:[e.jsx(G,{size:14}),e.jsx("span",{children:"Diet Mobile App"})]}),e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-stone-900 font-serif-jp leading-tight",children:s("member.appGuide.title")}),e.jsx("p",{className:"text-stone-600 mt-2 font-medium text-sm md:text-base",children:s("member.appGuide.subtitle")})]}),e.jsx("section",{className:"mb-12 animate-fadeInUp stagger-1",children:e.jsxs("div",{className:"relative bg-gradient-to-br from-slate-900 via-stone-900 to-slate-950 rounded-[2.5rem] p-8 md:p-10 shadow-2xl overflow-hidden border border-slate-800",children:[e.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-emerald-500/10 rounded-full blur-[100px] pointer-events-none"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-80 h-80 bg-teal-500/10 rounded-full blur-[100px] pointer-events-none"}),e.jsxs("div",{className:"relative z-10 flex flex-col lg:flex-row items-center justify-between gap-8",children:[e.jsxs("div",{className:"space-y-4 text-center lg:text-left max-w-xl",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 bg-white/10 backdrop-blur-md px-3.5 py-1 rounded-full text-xs font-bold text-emerald-400 border border-white/15",children:[e.jsx(S,{size:14}),e.jsx("span",{children:s("member.appGuide.newBadge")})]}),e.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white font-serif-jp leading-snug",children:s("member.appGuide.heroDesc")}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center lg:justify-start gap-4 pt-2",children:[e.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-stone-300 font-bold",children:[e.jsx(n,{size:15,className:"text-emerald-400"}),e.jsx("span",{children:s("member.appGuide.feat1")})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-stone-300 font-bold",children:[e.jsx(n,{size:15,className:"text-emerald-400"}),e.jsx("span",{children:s("member.appGuide.feat2")})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-stone-300 font-bold",children:[e.jsx(n,{size:15,className:"text-emerald-400"}),e.jsx("span",{children:s("member.appGuide.feat3")})]})]})]}),e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsxs("button",{type:"button",onClick:()=>i("/app"),className:"px-8 py-4 bg-gradient-to-r from-emerald-500 to-teal-500 hover:from-emerald-400 hover:to-teal-400 text-white rounded-2xl font-bold text-base shadow-xl shadow-emerald-500/25 hover:shadow-emerald-500/40 hover:scale-[1.02] active:scale-[0.98] transition-all flex items-center gap-3 group",children:[e.jsx(d,{size:22,className:"group-hover:rotate-12 transition-transform"}),e.jsx("span",{children:s("member.appGuide.launchBtn")}),e.jsx(A,{size:18,className:"ml-1 opacity-80"})]}),e.jsx("span",{className:"text-[11px] text-stone-400 font-medium",children:"URL: /app"})]})]})]})}),e.jsxs("section",{className:"space-y-8 animate-fadeInUp stagger-2",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(z,{className:"text-emerald-500",size:24}),e.jsx("h2",{className:"text-2xl font-bold text-stone-800 font-serif-jp",children:"App Installation"})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[e.jsx("div",{className:"bg-white rounded-3xl p-6 sm:p-8 border border-stone-200/80 shadow-sm hover:shadow-md transition-shadow flex flex-col justify-between",children:e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-stone-900 text-white flex items-center justify-center shadow-md",children:e.jsx(C,{size:24})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-stone-800 font-serif-jp",children:s("member.appGuide.iosTitle")}),e.jsx("p",{className:"text-xs text-stone-500 font-medium",children:"Safari Browser"})]})]}),e.jsxs("ol",{className:"space-y-4",children:[e.jsxs("li",{className:"flex items-start gap-3 bg-stone-50 p-4 rounded-2xl border border-stone-100",children:[e.jsx("span",{className:"w-6 h-6 rounded-full bg-stone-900 text-white text-xs font-extrabold flex items-center justify-center flex-shrink-0 mt-0.5",children:"1"}),e.jsx("p",{className:"text-xs sm:text-sm text-stone-700 font-medium leading-relaxed",children:s("member.appGuide.iosStep1")})]}),e.jsxs("li",{className:"flex items-start gap-3 bg-stone-50 p-4 rounded-2xl border border-stone-100",children:[e.jsx("span",{className:"w-6 h-6 rounded-full bg-stone-900 text-white text-xs font-extrabold flex items-center justify-center flex-shrink-0 mt-0.5",children:"2"}),e.jsx("div",{className:"text-xs sm:text-sm text-stone-700 font-medium leading-relaxed flex-1",children:s("member.appGuide.iosStep2")})]}),e.jsxs("li",{className:"flex items-start gap-3 bg-stone-50 p-4 rounded-2xl border border-stone-100",children:[e.jsx("span",{className:"w-6 h-6 rounded-full bg-stone-900 text-white text-xs font-extrabold flex items-center justify-center flex-shrink-0 mt-0.5",children:"3"}),e.jsx("div",{className:"text-xs sm:text-sm text-stone-700 font-medium leading-relaxed flex-1",children:s("member.appGuide.iosStep3")})]})]})]})}),e.jsx("div",{className:"bg-white rounded-3xl p-6 sm:p-8 border border-stone-200/80 shadow-sm hover:shadow-md transition-shadow flex flex-col justify-between",children:e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-emerald-500 text-white flex items-center justify-center shadow-md shadow-emerald-500/20",children:e.jsx(d,{size:24})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-stone-800 font-serif-jp",children:s("member.appGuide.androidTitle")}),e.jsx("p",{className:"text-xs text-stone-500 font-medium",children:"Chrome Browser"})]})]}),e.jsxs("ol",{className:"space-y-4",children:[e.jsxs("li",{className:"flex items-start gap-3 bg-stone-50 p-4 rounded-2xl border border-stone-100",children:[e.jsx("span",{className:"w-6 h-6 rounded-full bg-emerald-500 text-white text-xs font-extrabold flex items-center justify-center flex-shrink-0 mt-0.5",children:"1"}),e.jsx("p",{className:"text-xs sm:text-sm text-stone-700 font-medium leading-relaxed",children:s("member.appGuide.androidStep1")})]}),e.jsxs("li",{className:"flex items-start gap-3 bg-stone-50 p-4 rounded-2xl border border-stone-100",children:[e.jsx("span",{className:"w-6 h-6 rounded-full bg-emerald-500 text-white text-xs font-extrabold flex items-center justify-center flex-shrink-0 mt-0.5",children:"2"}),e.jsx("div",{className:"text-xs sm:text-sm text-stone-700 font-medium leading-relaxed flex-1",children:s("member.appGuide.androidStep2")})]}),e.jsxs("li",{className:"flex items-start gap-3 bg-stone-50 p-4 rounded-2xl border border-stone-100",children:[e.jsx("span",{className:"w-6 h-6 rounded-full bg-emerald-500 text-white text-xs font-extrabold flex items-center justify-center flex-shrink-0 mt-0.5",children:"3"}),e.jsx("div",{className:"text-xs sm:text-sm text-stone-700 font-medium leading-relaxed flex-1",children:s("member.appGuide.androidStep3")})]})]})]})})]})]})]})," "]})]})};export{M as MemberAppGuide,M 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.