1var _sentryDebugIds,_sentryDebugIdIdentifier;void 0===_sentryDebugIds&&(_sentryDebugIds={});try{var stack=(new Error).stack;stack&&(_sentryDebugIds[stack]="5b0131e7-83b1-4f65-ad99-1e1904cf5634",_sentryDebugIdIdentifier="sentry-dbid-5b0131e7-83b1-4f65-ad99-1e1904cf5634")}catch(e){} 2var SENTRY_RELEASE;SENTRY_RELEASE={name: "è²è°·", version: "2.5.0"}; 3__d(function(g,r,i,a,_m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return N}});var t=r(d[0]);r(d[1]);var l=e(r(d[2])),s=e(r(d[3])),o=e(r(d[4])),n=e(r(d[5])),c=e(r(d[6])),u=e(r(d[7])),m=e(r(d[8])),f=e(r(d[9])),x=e(r(d[10])),y=e(r(d[11]));r(d[12]);var h=e(r(d[13])),p=e(r(d[14])),b=e(r(d[15])),j=e(r(d[16]));async function _(e){const t=await(0,r(d[17]).getCourseById)(e);if(t)return t;const l=(await(0,r(d[17]).getPublishedCourseCatalog)()).find(t=>t.id===e);return l?{...l,is_premium:'membership:premium'===l.access_policy_key,access_level:'restricted',status:'published',created_at:'',updated_at:'',creator:l.creator?{...l.creator,creator_public_title:null}:null}:null}function N(){const e=(0,r(d[18]).useLocalSearchParams)(),{id:N}=e,S=(0,t.useMemo)(()=>(0,r(d[19]).resolveCourseContentTarget)({lessonId:e.lessonId,moduleId:e.moduleId}),[e.lessonId,e.moduleId]),{isLaptopWeb:v}=(0,r(d[20]).useResponsiveLayout)(),w=(0,r(d[21]).useThemeColors)(),C=(0,r(d[14]).useReducedMotion)(),I=(0,r(d[22]).useHydrationSafeTrackStoreDestination)(),k=Boolean(N)&&null!==I,z=(0,r(d[23]).useAuthStore)(e=>e.user),[R,L]=(0,t.useState)(null),[P,B]=(0,t.useState)(null),[T,M]=(0,t.useState)([]),[F,D]=(0,t.useState)([]),[A,O]=(0,t.useState)([]),[W,$]=(0,t.useState)([]),[V,H]=(0,t.useState)(null),[q,U]=(0,t.useState)(!0),[E,G]=(0,t.useState)(''),[K,X]=(0,t.useState)(!1),[Y,J]=(0,t.useState)(new Set),Q=(0,t.useRef)(0),Z=(0,t.useRef)(null),ee=(0,t.useRef)(N??null),te=(0,t.useRef)(z?.id??null);ee.current=N??null,te.current=z?.id??null;const le=null!=R&&(0,r(d[24]).canAccessPolicy)(R.access_policy_key,{snapshot:P,operationalAdmin:'admin'===z?.role}),se=Boolean(z&&le&&V===z.id),re=se?A:[],ie=se?W:[],oe=(0,t.useMemo)(()=>{if(!N)return null;try{return(0,r(d[25],"@/lib/auth-redirect").buildValidatedContentRedirect)('course',N)}catch{return null}},[N]),ae='membership:standard'===R?.access_policy_key?'standard-course':'course',ne=()=>{'membership:premium'!==R?.access_policy_key&&'membership:standard'!==R?.access_policy_key?r(d[26]).toast.info('\u4f60\u76ee\u524d\u6c92\u6709\u9019\u9580\u8ab2\u7a0b\u7684\u67e5\u770b\u6b0a\u9650'):X(!0)};(0,t.useEffect)(()=>{const e=Q.current+1;if(Q.current=e,O([]),$([]),H(null),B(null),N)return de({courseId:N,epoch:e,requestedUserId:z?.id??null}),()=>{Q.current===e&&(Q.current+=1)}},[N,z?.id]),(0,t.useEffect)(()=>{if(k||!N||!S||q||!R||!le)return;const e='lesson'===S.kind?T.find(e=>e.id===S.id):F.find(e=>e.id===S.id);if(!e)return;const t=`${N}:${S.kind}:${S.id}`;Z.current!==t&&(Z.current=t,r(d[18]).router.replace({pathname:'/lesson',params:'lesson'===S.kind?{courseId:N,lessonId:e.id}:{courseId:N,moduleId:e.id}}))},[le,R,N,k,T,q,F,S]);const ce=({courseId:e,epoch:t,requestedUserId:l})=>Q.current===t&&ee.current===e&&te.current===l,de=async e=>{const{courseId:t,requestedUserId:l}=e;try{U(!0),G('');const[s,o,n]=await Promise.all([_(t),(0,r(d[17]).getSafeCourseOutline)(t),l?(0,r(d[17]).getMyAccessSnapshot)():Promise.resolve(null)]);if(!ce(e))return;if(!s)return G('\u627e\u4e0d\u5230\u6b64\u8ab2\u7a0b\uff0c\u6216\u4f60\u6c92\u6709\u6b0a\u9650\u67e5\u770b'),L(null),M([]),D([]),O([]),$([]),void H(null);B(n);const c=(0,r(d[24]).canAccessPolicy)(s.access_policy_key,{snapshot:n,operationalAdmin:'admin'===z?.role});if(!o)return L(s),M([]),D([]),O([]),$([]),H(null),void(c&&G('\u8ab2\u7a0b\u5167\u5bb9\u66ab\u6642\u7121\u6cd5\u8f09\u5165\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66'));const{lessons:u,modules:m}=o;if(L(s),(0,r(d[27],"@/lib/analytics").trackEvent)('course_viewed',{courseId:s.id}),M(u),D(m),m.length>0&&J(new Set([m[0].id])),l&&c){const t=u.map(e=>e.id),s=m.filter(e=>null!=e.content_type).map(e=>e.id),[o,n]=await Promise.all([t.length>0?(0,r(d[17]).getUserProgressByLessonIds)(l,t):Promise.resolve([]),s.length>0?(0,r(d[17]).getUserModuleProgress)(l,s):Promise.resolve([])]);if(!ce(e))return;O(o),$(n),H(l)}else O([]),$([]),H(null)}catch(t){if(!ce(e))return;console.error('Failed to load course:',t),G('\u8ab2\u7a0b\u8f09\u5165\u5931\u6557\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66')}finally{ce(e)&&U(!1)}},ue=()=>{if(!N)return;const e=Q.current+1;Q.current=e,O([]),$([]),H(null),B(null),de({courseId:N,epoch:e,requestedUserId:z?.id??null})},me=(0,t.useMemo)(()=>
3{if(!R||!N||!S)return null;const e='lesson'===S.kind?T.find(e=>e.id===S.id):F.find(e=>e.id===S.id);return e?{courseId:N,contentId:e.id,courseTitle:R.title,contentTitle:e.title,contentKind:S.kind,chapterTitle:'lesson'===S.kind?e.chapter_title:null}:null},[R,N,T,F,S]),fe=(q||null!==R&&R.id,e=>{if(R)return le?void r(d[18]).router.push({pathname:'/lesson',params:{courseId:N,lessonId:e.id}}):z||oe?void ne():void r(d[26]).toast.error('\u7121\u6cd5\u4fdd\u7559\u76ee\u524d\u8ab2\u7a0b\u4f4d\u7f6e\uff0c\u8acb\u91cd\u65b0\u958b\u555f\u8ab2\u7a0b\u5f8c\u518d\u8a66')}),xe=e=>{if(R)return le?void r(d[18]).router.push({pathname:'/lesson',params:{courseId:N,moduleId:e.id}}):z||oe?void ne():void r(d[26]).toast.error('\u7121\u6cd5\u4fdd\u7559\u76ee\u524d\u8ab2\u7a0b\u4f4d\u7f6e\uff0c\u8acb\u91cd\u65b0\u958b\u555f\u8ab2\u7a0b\u5f8c\u518d\u8a66')},ye=e=>{J(t=>{const l=new Set(t);return l.has(e)?l.delete(e):l.add(e),l})},he=F.length>0,pe=!he&&1===T.length,be=(0,r(d[28]).buildCourseSequence)(F,T),ge=re.length>0||ie.length>0,je=be.find(e=>{if('lesson'===e.kind){const t=re.find(t=>t.lesson_id===e.lessonId);return!t?.completed_at}const t=ie.find(t=>t.module_id===e.moduleId);return!t?.completed_at}),Ne=ge&&!je,Se=Ne?'\u91cd\u65b0\u5b78\u7fd2':ge?'\u7e7c\u7e8c\u5b78\u7fd2':'\u958b\u59cb\u5b78\u7fd2',ve=T.reduce((e,t)=>{const l=t.chapter_title||'\u8ab2\u7a0b\u5167\u5bb9';return e[l]||(e[l]=[]),e[l].push(t),e},{}),we=T.reduce((e,t)=>(t.module_id&&(e[t.module_id]||(e[t.module_id]=[]),e[t.module_id].push(t)),e),{}),Ce=T.filter(e=>null==e.module_id),Ie=F.filter(e=>null!=e.content_type).length,ke=T.length+Ie,ze=re.filter(e=>e.completed_at).length+ie.filter(e=>e.completed_at).length,Re=(0,t.useMemo)(()=>{let e=0;for(const t of T)e+=t.duration??0;for(const t of F)null!=t.content_type&&(e+=t.duration??0);return 0===e?null:(0,r(d[29]).formatDurationHourMin)(e)},[T,F]),Le=(0,t.useMemo)(()=>T.some(e=>'text'!==(e.content_type??'video'))||F.some(e=>'video'===e.content_type||'mixed'===e.content_type),[T,F]),Pe=(0,t.useMemo)(()=>T.some(e=>'text'===e.content_type||'mixed'===e.content_type)||F.some(e=>'text'===e.content_type||'mixed'===e.content_type),[T,F]);if(k)return(0,r(d[30]).jsx)(h.default,{courseId:N??null,target:S,content:me,courseTitle:R?.title??null,storeDestination:I??void 0,loading:void 0===I,failed:Boolean(E),onRetry:ue});if(q)return(0,r(d[30]).jsx)(r(d[31]).SafeAreaView,{className:"flex-1",style:{backgroundColor:w.bgCream},children:(0,r(d[30]).jsx)(y.default,{})});if(E)return(0,r(d[30]).jsxs)(r(d[31]).SafeAreaView,{className:"flex-1 items-center justify-center",style:{backgroundColor:w.bgCream},children:[(0,r(d[30]).jsx)(n.default,{name:"exclamation-circle",size:32,color:w.error}),(0,r(d[30]).jsx)(c.default,{className:"mt-3",style:{color:w.textDark},children:E}),(0,r(d[30]).jsx)(o.default,{onPress:ue,className:"mt-4 px-6 py-2.5 rounded-full",style:{backgroundColor:w.primary},accessibilityRole:"button",accessibilityLabel:"\u91cd\u8a66\u8f09\u5165\u8ab2\u7a0b\u5167\u5bb9",children:(0,r(d[30]).jsx)(c.default,{className:"text-white",children:"\u91cd\u8a66"})})]});if(!R)return(0,r(d[30]).jsx)(r(d[31]).SafeAreaView,{className:"flex-1 items-center justify-center",style:{backgroundColor:w.bgCream},children:(0,r(d[30]).jsx)(c.default,{style:{color:w.textSubtle},children:"\u627e\u4e0d\u5230\u6b64\u8ab2\u7a0b"})});if(!le&&R.access_policy_key.startsWith('qualification:'))return(0,r(d[30]).jsx)(r(d[31]).SafeAreaView,{style:{flex:1,backgroundColor:w.bgCream},children:(0,r(d[30]).jsx)(f.default,{visible:!0,onClose:()=>r(d[18]).router.replace('/courses')})});const Be=v?{width:'100%',maxWidth:r(d[20]).PAGE_MAX_WIDTH.wide,alignSelf:'center',paddingHorizontal:32}:void 0,Te=(e,t,s)=>{const u=(m=e.id,re.find(e=>e.lesson_id===m));var m;const f=!!u?.completed_at,x=e.content_type??'video',y='text'===x,h=u&&u.last_position>0,p=h&&e.duration>0?Math.min(u.last_position/e.duration*100,100):y&&f?100:0;return(0,r(d[30]).jsxs)(o.default,{onPress:()=>fe(e),className:"flex-row items-center py-3",accessibilityRole:"button",accessibilityLabel:`\u958b\u555f\u8ab2\u7a0b\u55ae\u5143 ${e.title}`,style:{borderBottomWidth:t<s-1?1:0,borderBottomColor:w.bgLight},children:[(0,r(d[30]).jsx)(l.default,{className:"w-8 items-center",children:f?(0,r(d[30]).jsx)(n.default,{name:"check-circle",size:20,color:w.primary}):h?(0,r(d[30]).jsx)(l.default,{className:"w-5 h-5 rounded-full border-2 items-center justify-center",style:{borderColor:w.secondary},children:(0,r(d[30]).jsx)(l.default,{className:"w-2 h-2 rounded-full",style:{backgroundColor:w.secondary}})}):(0,r(d[30]).jsx)(l.default,{className:"w-5 h-5 rounded-full border-2",style:{borderColor:w.bgLight}})}),(0,r(d[30]).jsxs)(l.default,{className:"flex-1 ml-3",children:[(0,r(d[30]).jsx)(c.default,{className:"text-sm",style:{color:f?w.primary:w.textTitle},numberOfLines:1,children:e.title}),h&&!f&&(0,r(d[30]).jsx)(l.default,{className:"mt-1 h-1.5 rounded-full",style:{backgroundColor:w.bgLight},children:(0,r(d[30]).jsx)(l.default,{className:"h-1.5 rounded-full",style:{backgroundColor:w.secondary,width:`${p}%`}})})]}),(0,r(d[30]).jsxs)(l.default,{className:"flex-row items-center ml-2",children:[(0,r(d[30]).jsx)(n.default,{name:'video'===x?'play-circle':'text'===x?'file-text-o':'film',size:12,color:w.textMuted,style:{marginRight:4}}),(0,r(d[30]).jsx)(c.default,{className:"text-xs",style:{color:w.textMuted},children:y&&0===e.duration?'\u6587\u5b57\u95b1\u8b80':(0,r(d[29]).formatDurationHourMin)(e.duration)})]})]},e.id)},Me=()=>{if(!R)return;if(pe)return void fe(T[0]);const e=je??be[0];if(e)if('lesson'===e.kind){const t=T.find(t=>
3t.id===e.lessonId);t&&fe(t)}else{const t=F.find(t=>t.id===e.moduleId);t&&xe(t)}},Fe=()=>{r(d[18]).router.replace('/(tabs)/courses')},De=(0,r(d[30]).jsxs)(r(d[30]).Fragment,{children:[pe&&!v&&(0,r(d[30]).jsxs)(o.default,{onPress:()=>fe(T[0]),className:"py-4 rounded-2xl items-center",style:{backgroundColor:w.primary},accessibilityRole:"button",accessibilityLabel:Se,children:[(0,r(d[30]).jsx)(n.default,{name:"play",size:16,color:"white",style:{marginBottom:4}}),(0,r(d[30]).jsx)(c.default,{className:"text-white text-base mt-1",children:Se})]}),!v&&!pe&&(je||Ne)&&be.length>0&&(0,r(d[30]).jsxs)(o.default,{onPress:Me,className:"py-4 rounded-2xl items-center mb-6",style:{backgroundColor:w.primary},accessibilityRole:"button",accessibilityLabel:Se,children:[(0,r(d[30]).jsx)(n.default,{name:"play",size:16,color:"white",style:{marginBottom:4}}),(0,r(d[30]).jsx)(c.default,{className:"text-white text-base mt-1",children:Se})]}),!he&&!pe&&Object.entries(ve).map(([e,t])=>(0,r(d[30]).jsxs)(l.default,{className:"mb-4",children:[(0,r(d[30]).jsx)(c.default,{className:"text-base mb-2",style:{color:w.textTitle},children:e}),t.map((e,l)=>Te(e,l,t.length))]},e)),he&&(0,r(d[30]).jsxs)(r(d[30]).Fragment,{children:[F.map(e=>{const t=Y.has(e.id),s=we[e.id]??[],u=null!=e.content_type,m=u?(f=e.id,ie.find(e=>e.module_id===f)):void 0;var f;const x=!!m?.completed_at;return(0,r(d[30]).jsxs)(l.default,{className:"mb-3 rounded-2xl overflow-hidden",style:{backgroundColor:w.bgCard},children:[(0,r(d[30]).jsxs)(o.default,{onPress:()=>ye(e.id),className:"flex-row items-center px-4 py-3",accessibilityRole:"button",accessibilityLabel:`${t?'\u6536\u5408':'\u5c55\u958b'}\u6a21\u7d44 ${e.title}`,children:[(0,r(d[30]).jsx)(l.default,{className:"w-8 items-center",children:u?x?(0,r(d[30]).jsx)(n.default,{name:"check-circle",size:20,color:w.primary}):(0,r(d[30]).jsx)(n.default,{name:'text'===e.content_type?'file-text-o':'play-circle',size:20,color:w.primary}):(0,r(d[30]).jsx)(n.default,{name:"folder-o",size:18,color:w.textMuted})}),(0,r(d[30]).jsxs)(l.default,{className:"flex-1 ml-3",children:[(0,r(d[30]).jsx)(c.default,{className:"text-sm",style:{color:x?w.primary:w.textTitle},numberOfLines:1,children:e.title}),s.length>0&&(0,r(d[30]).jsxs)(c.default,{className:"text-xs mt-0.5",style:{color:w.textMuted},children:[s.length," \u500b\u7ae0\u7bc0"]})]}),(0,r(d[30]).jsx)(n.default,{name:t?'chevron-up':'chevron-down',size:12,color:w.textMuted})]}),t&&(0,r(d[30]).jsxs)(l.default,{className:"px-4 pb-2",style:{borderTopWidth:1,borderTopColor:w.bgLight},children:[u&&(0,r(d[30]).jsxs)(o.default,{onPress:()=>xe(e),className:"flex-row items-center py-3",accessibilityRole:"button",accessibilityLabel:`\u958b\u555f\u6a21\u7d44\u5167\u5bb9 ${e.title}`,style:{borderBottomWidth:s.length>0?1:0,borderBottomColor:w.bgLight},children:[(0,r(d[30]).jsx)(l.default,{className:"w-8 items-center",children:x?(0,r(d[30]).jsx)(n.default,{name:"check-circle",size:20,color:w.primary}):(0,r(d[30]).jsx)(n.default,{name:'text'===e.content_type?'file-text-o':'play-circle',size:16,color:w.primary})}),(0,r(d[30]).jsx)(l.default,{className:"flex-1 ml-3",children:(0,r(d[30]).jsxs)(c.default,{className:"text-sm",style:{color:w.primary},numberOfLines:1,children:[e.title,"\uff08\u6a21\u7d44\u5167\u5bb9\uff09"]})}),(0,r(d[30]).jsx)(c.default,{className:"text-xs",style:{color:w.textMuted},children:'text'===e.content_type&&0===e.duration?'\u6587\u5b57\u95b1\u8b80':(0,r(d[29]).formatDurationHourMin)(e.duration)})]}),s.map((e,t)=>Te(e,t,s.length))]})]},e.id)}),Ce.length>0&&(0,r(d[30]).jsxs)(l.default,{className:"mb-3",children:[(0,r(d[30]).jsx)(c.default,{className:"text-sm mb-2",style:{color:w.textSubtle},children:"\u672a\u5206\u7d44\u7ae0\u7bc0"}),Ce.map((e,t)=>Te(e,t,Ce.length))]})]}),0===T.length&&0===F.length&&(0,r(d[30]).jsx)(c.default,{className:"text-center py-8",style:{color:w.textSubtle},children:"\u6b64\u8ab2\u7a0b\u5c1a\u7121\u5167\u5bb9"})]}),Ae=v?(0,r(d[30]).jsx)(l.default,{style:{flex:1,position:r(d[32]).WEB_STICKY_POSITION,top:24,alignSelf:'flex-start'},children:(0,r(d[30]).jsxs)(l.default,{style:{backgroundColor:w.bgCard,borderRadius:20,padding:28,boxShadow:'0 2px 16px rgba(0,0,0,0.08)'},children:[z&&le&&ke>0&&(0,r(d[30]).jsx)(l.default,{style:{alignItems:'center',marginBottom:20},children:(0,r(d[30]).jsx)(x.default,{size:120,strokeWidth:10,progress:ke>0?ze/ke:0,completedCount:ze,totalCount:ke})}),(0,r(d[30]).jsxs)(l.default,{style:{flexDirection:'row',justifyContent:'center',gap:20,marginBottom:20},children:[(0,r(d[30]).jsxs)(l.default,{style:{flexDirection:'row',alignItems:'center'},children:[(0,r(d[30]).jsx)(n.default,{name:"book",size:13,color:w.textSubtle,style:{marginRight:6}}),(0,r(d[30]).jsxs)(c.default,{style:{fontSize:(0,r(d[33]).scaleNativeFontSize)(13),color:w.textBody},children:[ke," \u500b\u55ae\u5143"]})]}),Re&&(0,r(d[30]).jsxs)(l.default,{style:{flexDirection:'row',alignItems:'center'},children:[(0,r(d[30]).jsx)(n.default,{name:"clock-o",size:13,color:w.textSubtle,style:{marginRight:6}}),(0,r(d[30]).jsx)(c.default,{style:{fontSize:(0,r(d[33]).scaleNativeFontSize)(13),color:w.textBody},children:Re})]})]}),le&&be.length>0&&(0,r(d[30]).jsx)(o.default,{onPress:Me,style:{backgroundColor:w.primary,borderRadius:14,paddingVertical:14,alignItems:'center',marginBottom:20},accessibilityRole:"button",accessibilityLabel:Se,children:(0,r(d[30]).jsxs)(l.default,{style:{flexDirection:'row',alignItems:'center'},children:[(0,r(d[30]).jsx)(n.default,{name:"play",size:14,color:"white",style:{marginRight:8}}),(0,r(d[30]).jsx)(c.default,{style:{color:'white',fontSize:(0,r(d[33]).scaleNativeFontSize)(15)},children:Se})]})}),!le&&(0,r(d[30]).jsx)(o.default,{onPress:()=>{ne()},style:{backgroundColor:w.warning,borderRadius:14,paddingVertical:14,alignItems:'center',marginBottom:20},accessibilityRole:"button",accessibilityLabel:'membership:premium'===R.access_policy_key?'\u9810\u7d04\u514d\u8cbb\u8aee\u8a62\u4e86\u89e3\u9032\u968e\u6703\u54e1\u8ab2\u7a0b':'\u6b64\u8ab2\u7a0b\u5c1a\u672a\u958b\u901a',children:(0,r(d[30]).jsx)(c.default,{style:{color:'white',fontSize:(0,r(d[33]).scaleNativeFontSize)(15)},children:'membership:premium'===R.access_policy_key?'\u9810\u7d04\u514d\u8cbb\u8aee\u8a62\u4e86\u89e3\u9032\u968e\u6703\u54e1\u8ab2\u7a0b':'\u6b64\u8ab2\u7a0b\u5c1a\u672a\u958b\u901a'})}),(0,r(d[30]).jsxs)(l.default,{style:{borderTopWidth:1,borderTopColor:w.bgLight,paddingTop:16},children:[(0,r(d[30]).jsx)(c.default,{style:{fontSize:(0,r(d[33]).scaleNativeFontSize)(13),color:w.textSubtle,marginBottom:10},children:"\u8ab2\u7a0b\u5305\u542b"}),Le&&(0,r(d[30]).jsxs)(l.default,{style:{flexDirection:'row',alignItems:'center',marginBottom:8},children:[(0,r(d[30]).jsx)(n.default,{name:"play-circle",size:14,color:w.primary,style:{marginRight:10,width:18}}),(0,r(d[30]).jsx)(c.default,{style:{fontSize:(0,r(d[33]).scaleNativeFontSize)(13),color:w.textBody},children:"\u5f71\u7247\u6559\u5b78"})]}),Pe&&(0,r(d[30]).jsxs)(l.default,{style:{flexDirection:'row',alignItems:'center',marginBottom:8},children:[(0,r(d[30]).jsx)(n.default,{name:"file-text-o",size:14,color:w.primary,style:{marginRight:10,width:18}}),(0,r(d[30]).jsx)(c.default,{style:{fontSize:(0,r(d[33]).scaleNativeFontSize)(13),color:w.textBody},children:"\u6587\u5b57\u6559\u6750"})]})]})]})}):null,Oe=C?void 0:r(d[14]).FadeIn.duration(350),We=(0,r(d[30]).jsxs)(r(d[30]).Fragment,{children:[(0,r(d[30]).jsx)(s.default,{className:"flex-1",children:(0,r(d[30]).jsxs)(l.default,{style:Be,children:[(0,r(d[30]).jsxs)(l.default,{className:"flex-row items-center px-4 py-3",style:v?{paddingHorizontal:0}:void 0,children:[(0,r(d[30]).jsx)(j.default,{onPress:Fe,className:"w-11 h-11 items-center justify-center",accessibilityRole:"button",accessibilityLabel:"\u8fd4\u56de\u4e0a\u4e00\u9801",children:(0,r(d[30]).jsx)(n.default,{name:"chevron-left",size:20,color:w.textSubtle})}),v?(0,r(d[30]).jsxs)(l.default,{style:{flexDirection:'row',alignItems:'center',marginLeft:8,flex:1},children:[(0,r(d[30]).jsx)(o.default,{onPress:Fe,children:(0,r(d[30]).jsx)(c.default,{style:{fontSize:(0,r(d[33]).scaleNativeFontSize)(14),color:w.textSubtle},children:"\u8ab2\u7a0b"})}),(0,r(d[30]).jsx)(c.default,{style:{fontSize:(0,r(d[33]).scaleNativeFontSize)(14),color:w.textSubtle,marginHorizontal:8},children:'>'}),(0,r(d[30]).jsx)(c.default,{style:{fontSize:(0,r(d[33]).scaleNativeFontSize)(14),color:w.textTitle},numberOfLines:1,children:R.title})]}):(0,r(d[30]).jsx)(c.default,{className:"text-lg ml-4 flex-1",style:{color:w.textTitle},numberOfLines:1,children:R.title})]}),(0,r(d[30]).jsxs)(l.default,{style:v?{flexDirection:'row',gap:32}:void 0,children:[(0,r(d[30]).jsxs)(l.default,{style:v?{flex:2}:void 0,children:[(0,r(d[30]).jsx)(l.default,{className:v?'':'mx-4',style:v?{borderRadius:16,overflow:'hidden',aspectRatio:2.5}:{borderRadius:16,overflow:'hidden',height:208},children:R.cover_image_url?(0,r(d[30]).jsx)(u.default,{uri:R.cover_image_url,fallbackIcon:"play-circle",transitionMs:180}):(0,r(d[30]).jsx)(l.default,{className:"w-full h-full items-center justify-center",style:{backgroundColor:w.secondary},children:(0,r(d[30]).jsx)(n.default,{name:"play-circle",size:56,color:w.bgCream})})}),(0,r(d[30]).jsxs)(l.default,{className:v?'':'px-4',style:{marginTop:24},children:[(0,r(d[30]).jsx)(b.default,{index:0,baseDelay:200,maxFirstItems:void 0,children:(0,r(d[30]).jsx)(c.default,{fontRole:"expressive",style:{fontSize:v?32:20,color:w.textTitle},children:R.title})}),(0,r(d[30]).jsx)(b.default,{index:1,baseDelay:200,maxFirstItems:void 0,children:(0,r(d[30]).jsx)(c.default,{className:"text-sm mt-2",style:{color:w.primary},children:`${(0,r(d[34]).resolveCreatorPublicTitle)(R.creator)} ${R.creator?.name??'\u8072\u8c37'}`})}),R.description&&(0,r(d[30]).jsx)(b.default,{index:2,baseDelay:200,maxFirstItems:void 0,children:(0,r(d[30]).jsx)(c.default,{className:"text-sm mt-3 leading-5",style:{color:w.textBody},children:R.description})}),!v&&z&&le&&ke>0&&(0,r(d[30]).jsx)(b.default,{index:3,baseDelay:200,maxFirstItems:void 0,children:(0,r(d[30]).jsxs)(l.default,{className:"mt-4",children:[(0,r(d[30]).jsxs)(l.default,{className:"flex-row items-center justify-between mb-1",children:[(0,r(d[30]).jsx)(c.default,{className:"text-xs",style:{color:w.textSubtle},children:"\u5b78\u7fd2\u9032\u5ea6"}),(0,r(d[30]).jsxs)(c.default,{className:"text-xs",style:{color:w.primary},children:[ze,"/",ke," \u5b8c\u6210"]})]}),(0,r(d[30]).jsx)(l.default,{className:"h-2 rounded-full",style:{backgroundColor:w.bgLight},children:(0,r(d[30]).jsx)(l.default,{className:"h-2 rounded-full",style:{backgroundColor:w.primary,width:ze/ke*100+"%"}})})]})})]}),(0,r(d[30]).jsxs)(l.default,{className:v?'':'px-4',style:{marginTop:32,paddingBottom:32},children:[v&&be.length>0&&(0,r(d[30]).jsx)(c.default,{style:{fontSize:(0,r(d[33]).scaleNativeFontSize)(18),color:w.textTitle,marginBottom:16},children:"\u8ab2\u7a0b\u5927\u7db1"}),De]})]}),Ae]})]})}),!v&&!le&&(0,r(d[30]).jsx)(l.default,{className:"px-4 pb-6 pt-3",style:{backgroundColor:w.bgCream}
3,children:(0,r(d[30]).jsx)(o.default,{onPress:()=>{ne()},className:"py-4 rounded-full items-center",style:{backgroundColor:w.warning},accessibilityRole:"button",accessibilityLabel:'membership:premium'===R.access_policy_key?'\u9810\u7d04\u514d\u8cbb\u8aee\u8a62\u4e86\u89e3\u9032\u968e\u6703\u54e1\u8ab2\u7a0b':'\u6b64\u8ab2\u7a0b\u5c1a\u672a\u958b\u901a',children:(0,r(d[30]).jsx)(c.default,{className:"text-white text-base",children:'membership:premium'===R.access_policy_key?'\u9810\u7d04\u514d\u8cbb\u8aee\u8a62\u4e86\u89e3\u9032\u968e\u6703\u54e1\u8ab2\u7a0b':'\u6b64\u8ab2\u7a0b\u5c1a\u672a\u958b\u901a'})})})]});return(0,r(d[30]).jsxs)(r(d[31]).SafeAreaView,{className:"flex-1",style:{backgroundColor:w.bgCream},children:[(0,r(d[30]).jsx)(p.default.View,{style:{flex:1},entering:Oe,children:We}),(0,r(d[30]).jsx)(m.default,{visible:K,onClose:()=>X(!1),type:ae,isGuest:!z,returnTo:oe??void 0})]})}},3171,[49,32,267,290,392,1136,1152,2078,2507,2525,3172,3033,3173,3174,815,2744,1207,1893,482,3175,1175,1153,2316,1885,1911,1216,1882,1883,3176,2408,452,3416,2315,1172,1949]); 4__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var t=r(d[0]);r(d[1]);var n=e(r(d[2])),s=e(r(d[3])),o=e(r(d[4])),l=e(r(d[5]));r(d[6]);const u=o.default.createAnimatedComponent(r(d[3]).Circle);function c({size:e=120,strokeWidth:o=10,progress:c,completedCount:f,totalCount:h}){const x=(0,r(d[7]).useThemeColors)(),{tier:p}=((0,r(d[4]).useReducedMotion)(),(0,r(d[8]).usePerformanceTier)()),y=(e-o)/2,j=2*Math.PI*y,b=Math.max(0,Math.min(1,c)),k=j*(1-b),v=(0,r(d[4]).useSharedValue)(k);(0,t.useEffect)(()=>{const e=j*(1-b);e!==v.value&&(v.value=(0,r(d[4]).withTiming)(e,{duration:800,easing:r(d[4]).Easing.out(r(d[4]).Easing.cubic)}))},[v,b,j,800]);const C=(0,r(d[4]).useAnimatedProps)(r(d[9]).default({animatedOffset:v}));return(0,r(d[10]).jsxs)(n.default,{style:{width:e,height:e,alignItems:'center',justifyContent:'center'},children:[(0,r(d[10]).jsxs)(s.default,{width:e,height:e,children:[(0,r(d[10]).jsx)(r(d[3]).Circle,{cx:e/2,cy:e/2,r:y,stroke:x.bgLight,strokeWidth:o,fill:"none"}),(0,r(d[10]).jsx)(u,{cx:e/2,cy:e/2,r:y,stroke:x.primary,strokeWidth:o,fill:"none",strokeLinecap:"round",strokeDasharray:`${j}`,animatedProps:C,transform:`rotate(-90, ${e/2}, ${e/2})`})]}),(0,r(d[10]).jsxs)(n.default,{style:{position:'absolute',alignItems:'center'},children:[(0,r(d[10]).jsxs)(l.default,{style:{fontSize:(0,r(d[11]).scaleNativeFontSize)(18),color:x.textTitle},children:[f,"/",h]}),(0,r(d[10]).jsx)(l.default,{style:{fontSize:(0,r(d[11]).scaleNativeFontSize)(11),color:x.textSubtle,marginTop:2},children:"\u5b8c\u6210"})]})]})}},3172,[49,32,267,3447,815,1152,2017,1153,2018,13528620470480,452,1172]); 5__d(function(g,r,i,a,m,e,d){"use strict";function t({children:t}){return t}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}})},3173,[]); 6__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return A}});var t=r(d[0]),l=e(r(d[1])),n=e(r(d[2])),o=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),I=e(r(d[6])),u=e(r(d[7])),h=e(r(d[8]));function A({courseId:e,target:A,content:y,courseTitle:f,storeDestination:S,loading:b,failed:x,onRetry:C}){const[_,T]=(0,t.useState)(!1),U=e??y?.courseId??null,j=A??(y?{kind:y.contentKind,id:y.contentId}:null),N=U?j?(0,r(d[9]).buildNativeCourseContentUrl)(U,j):(0,r(d[9]).buildNativeCourseUrl)(U):null,O='undefined'!=typeof navigator&&/\bLine\//i.test(navigator.userAgent),w=null===j,E=w?'\u8ab2\u7a0b':'module'===j.kind?'\u8ab2\u7a0b\u55ae\u5143':'\u8ab2\u7a0b\u7ae0\u7bc0',v=y?.contentTitle??f??`\u9019\u500b${E}`;return(0,r(d[10]).jsxs)(r(d[11]).SafeAreaView,{style:p.safeArea,children:[(0,r(d[10]).jsxs)(c.default,{pointerEvents:"none",accessible:!1,accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",style:s.default.absoluteFill,children:[(0,r(d[10]).jsx)(r(d[12]).Image,{source:r(d[13]),style:s.default.absoluteFill,contentFit:"cover",contentPosition:"center",loading:"eager",priority:"high",accessible:!1}),(0,r(d[10]).jsx)(r(d[14]).LinearGradient,{colors:['rgba(15, 25, 18, 0.42)','rgba(24, 35, 26, 0.58)','rgba(10, 17, 12, 0.76)'],locations:[0,.5,1],style:s.default.absoluteFill})]}),(0,r(d[10]).jsx)(o.default,{style:p.scroll,contentContainerStyle:p.scrollContent,keyboardShouldPersistTaps:"handled",children:(0,r(d[10]).jsxs)(c.default,{testID:"course-content-handoff-card",style:p.card,children:[(0,r(d[10]).jsx)(r(d[12]).Image,{source:r(d[15]),style:p.logo,contentFit:"contain",loading:"eager",priority:"high",accessibilityLabel:"Sound Valley \u8072\u8c37",accessibilityRole:"image"}),b?(0,r(d[10]).jsxs)(c.default,{style:p.state,accessibilityLiveRegion:"polite",children:[(0,r(d[10]).jsx)(l.default,{color:r(d[16]).WEB_ACQUISITION_VISUAL.gold}
6),(0,r(d[10]).jsx)(u.default,{variant:"body",style:p.muted,children:"\u6b63\u5728\u8f09\u5165\u8ab2\u7a0b\u7ae0\u7bc0"})]}):N&&S?(0,r(d[10]).jsxs)(r(d[10]).Fragment,{children:[(0,r(d[10]).jsx)(u.default,{variant:"caption",style:p.eyebrow,children:w?'\u6709\u4eba\u5206\u4eab\u4e86\u4e00\u9580\u8ab2\u7a0b\u7d66\u4f60':`\u6709\u4eba\u5206\u4eab\u4e86\u4e00\u500b${E}\u7d66\u4f60`}),(0,r(d[10]).jsx)(c.default,{style:p.contentIcon,accessible:!1,children:(0,r(d[10]).jsx)(I.default,{name:w?'book':'play-circle',size:28,color:r(d[16]).WEB_ACQUISITION_VISUAL.gold})}),(0,r(d[10]).jsxs)(c.default,{style:p.contentCopy,children:[(0,r(d[10]).jsx)(u.default,{variant:"heading",style:p.title,children:v}),y?.courseTitle?(0,r(d[10]).jsx)(u.default,{variant:"body",style:p.courseTitle,children:y.courseTitle}):null,y?.chapterTitle?(0,r(d[10]).jsx)(u.default,{variant:"body",style:p.muted,children:y.chapterTitle}):null,(0,r(d[10]).jsx)(u.default,{variant:"body",style:p.muted,children:w?'\u5728 App \u4e2d\u67e5\u770b\u8ab2\u7a0b\u5167\u5bb9\u8207\u5b78\u7fd2\u9032\u5ea6':y?`\u5728 App \u4e2d\u958b\u555f\uff0c\u76f4\u63a5\u5f9e\u9019\u500b${E}\u958b\u59cb`:`\u9019\u500b\u9023\u7d50\u6703\u5728 App \u4e2d\u76f4\u63a5\u958b\u555f\u6307\u5b9a\u7684${E}`})]}),N?(0,r(d[10]).jsxs)(h.default,{href:N,target:"_self",onPress:()=>T(!0),styleOptions:{base:p.primaryAction,hoverOpacity:1,hoverTranslateY:-1},accessibilityLabel:`\u5728\u8072\u8c37 App \u4e2d\u958b\u555f\u300c${v}\u300d`,children:[(0,r(d[10]).jsx)(r(d[14]).LinearGradient,{colors:['#E8D49F','#D5B977'],start:{x:0,y:0},end:{x:1,y:1},style:s.default.absoluteFill,pointerEvents:"none"}),(0,r(d[10]).jsx)(I.default,{name:"external-link",size:16,color:r(d[16]).WEB_ACQUISITION_VISUAL.goldText}),(0,r(d[10]).jsx)(u.default,{variant:"body",style:p.primaryText,children:"\u5728\u8072\u8c37 App \u4e2d\u958b\u555f"})]}):null,(0,r(d[10]).jsxs)(h.default,{href:S.url,target:"_self",styleOptions:{base:p.downloadAction,hoverOpacity:1,hoverTranslateY:-1,hoverBorderColor:r(d[16]).WEB_ACQUISITION_VISUAL.gold},accessibilityLabel:`\u4e0b\u8f09\u8072\u8c37 App\uff0c\u524d\u5f80 ${S.label}`,children:[(0,r(d[10]).jsx)(I.default,{name:"download",size:15,color:r(d[16]).WEB_ACQUISITION_VISUAL.text}),(0,r(d[10]).jsx)(u.default,{variant:"body",style:p.downloadText,children:"\u9084\u6c92\u5b89\u88dd\uff1f\u4e0b\u8f09\u8072\u8c37 App"})]}),_?(0,r(d[10]).jsx)(u.default,{variant:"caption",style:p.help,accessibilityLiveRegion:"polite",children:O?'\u82e5\u672a\u958b\u555f\uff0c\u8acb\u5f9e LINE \u9078\u55ae\u6539\u7528\u624b\u6a5f\u700f\u89bd\u5668\uff0c\u518d\u9ede\u4e00\u6b21\u300c\u5728\u8072\u8c37 App \u4e2d\u958b\u555f\u300d\u3002':'\u82e5\u672a\u958b\u555f\uff0c\u8acb\u78ba\u8a8d\u5df2\u5b89\u88dd\u8072\u8c37 App\uff0c\u6216\u4f7f\u7528\u4e0b\u8f09\u9023\u7d50\u3002'}):null]}):(0,r(d[10]).jsxs)(c.default,{style:p.state,children:[(0,r(d[10]).jsx)(u.default,{variant:"heading",style:p.title,children:x?'\u8ab2\u7a0b\u7ae0\u7bc0\u66ab\u6642\u7121\u6cd5\u8f09\u5165\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66':'\u627e\u4e0d\u5230\u6b64\u8ab2\u7a0b\u7ae0\u7bc0'}),(0,r(d[10]).jsx)(n.default,{onPress:C,accessibilityRole:"button",accessibilityLabel:"\u91cd\u65b0\u8f09\u5165\u8ab2\u7a0b\u7ae0\u7bc0",style:p.downloadAction,children:(0,r(d[10]).jsx)(u.default,{variant:"body",style:p.downloadText,children:"\u91cd\u65b0\u8f09\u5165"})})]})]})})]})}const p=s.default.create({safeArea:{flex:1,backgroundColor:r(d[16]).WEB_ACQUISITION_VISUAL.background},scroll:{flex:1,width:'100%'},scrollContent:{flexGrow:1,alignItems:'center',justifyContent:'center',paddingHorizontal:22,paddingVertical:28},card:{width:'100%',maxWidth:430,borderRadius:32,borderWidth:1,borderColor:r(d[16]).WEB_ACQUISITION_VISUAL.border,backgroundColor:r(d[16]).WEB_ACQUISITION_VISUAL.surface,paddingHorizontal:24,paddingTop:22,paddingBottom:24,alignItems:'center',gap:16,shadowColor:'#000000',shadowOffset:{width:0,height:18},shadowOpacity:.28,shadowRadius:32},logo:{width:106,height:50},eyebrow:{color:r(d[16]).WEB_ACQUISITION_VISUAL.gold,letterSpacing:1,lineHeight:22,textAlign:'center'},contentIcon:{width:68,height:68,borderRadius:22,borderWidth:1,borderColor:r(d[16]).WEB_ACQUISITION_VISUAL.border,backgroundColor:'rgba(245, 239, 222, 0.08)',alignItems:'center',justifyContent:'center'},contentCopy:{width:'100%',alignItems:'center',gap:r(d[17]).SPACING.cardGap,paddingBottom:r(d[17]).SPACING.cardGap},title:{color:r(d[16]).WEB_ACQUISITION_VISUAL.text,fontSize:r(d[18]).WEB_ACQUISITION_FONT_SIZES.trackTitle,lineHeight:34,textAlign:'center'},courseTitle:{color:r(d[16]).WEB_ACQUISITION_VISUAL.gold,lineHeight:24,textAlign:'center'},muted:{color:r(d[16]).WEB_ACQUISITION_VISUAL.textMuted,lineHeight:24,textAlign:'center'},primaryAction:{minHeight:52,width:'100%',borderRadius:26,backgroundColor:r(d[16]).WEB_ACQUISITION_VISUAL.gold,paddingHorizontal:r(d[17]).SPACING.cardGap,paddingVertical:r(d[17]).SPACING.cardGap,flexDirection:'row',alignItems:'center',justifyContent:'center',gap:10,overflow:'hidden',shadowColor:'#000000',shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:10,elevation:4},primaryText:{flexShrink:1,color:r(d[16]).WEB_ACQUISITION_VISUAL.goldText,fontSize:r(d[18]).WEB_ACQUISITION_FONT_SIZES.trackPrimaryCta,letterSpacing:.3,textAlign:'center'},downloadAction:{minHeight:48,width:'100%',borderRadius:24,borderWidth:1,borderColor:r(d[16]).WEB_ACQUISITION_VISUAL.border,backgroundColor:r(d[16]).WEB_ACQUISITION_VISUAL.surface,paddingHorizontal:r(d[17]).SPACING.cardGap,paddingVertical:r(d[17]).SPACING.cardGap,flexDirection:'row',alignItems:'center',justifyContent:'center',gap:8},downloadText:{flexShrink:1,color:r(d[16]).WEB_ACQUISITION_VISUAL.text,fontSize:r(d[18]).WEB_ACQUISITION_FONT_SIZES.trackDownloadCta,textAlign:'center'},help:{color:r(d[16]).WEB_ACQUISITION_VISUAL.textMuted,lineHeight:22,textAlign:'center'},state:{alignItems:'center',gap:r(d[17]).SPACING.section,width:'100%',paddingVertical:r(d[17]).SPACING.pageX}})},3174,[49,377,392,290,194,267,1136,1152,2314,3175,452,3416,1177,2324,2054,2068,2325,1215,1172]); 7__d(function(g,r,i,a,m,e,d){"use strict";function n(n){const t=Array.isArray(n)?n[0]:n;if('string'!=typeof t)return null;return t.trim()||null}
7Object.defineProperty(e,'__esModule',{value:!0}),e.resolveCourseContentTarget=function(t){const o=n(t.lessonId),u=n(t.moduleId);return o&&u||!o&&!u?null:o?{kind:'lesson',id:o}:{kind:'module',id:u}},e.buildNativeCourseContentUrl=function(n,t){const o=n.trim(),u=t.id.trim();if(!o||!u)return null;const s=new URLSearchParams({courseId:o});return s.set('lesson'===t.kind?'lessonId':'moduleId',u),`soundvalley:///lesson?${s.toString()}`},e.buildNativeCourseUrl=function(n){const t=n.trim();return t?`soundvalley:///course/${encodeURIComponent(t)}`:null}},3175,[]); 8__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t=function({animatedOffset:t}){const n=()=>({strokeDashoffset:t.value});return n.__closure={animatedOffset:t},n.__workletHash=0xc4de09e10d0,n}},13528620470480,[]);
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.