1import{d as O}from"./BK80l4Oy.js";import{u as k}from"./BNUxGZV_.js";import{f as H,dh as W,k as n,c as b,o as m,p as B,n as N,a as y,l as A,t as G,gK as L}from"./Hz_U0fwx.js";import{b as p,H as P,a as R}from"./-pN6dAmY.js";import"./CaUkbbkv.js";import"./CCkJPflB.js";import"./hkgOhsyI.js";import"./Qwc1dVbC.js";import"./BrLmP1_P.js";import"./DttFo5BN.js";import"./CRt24w6Q.js";import"./BT8CMprY.js";import"./CIl9igWX.js";const T={class:"flex w-full flex-col items-center"},D={class:"whitespace-pre-wrap text-center text-xl font-normal leading-relaxed text-foreground-deep md:text-2xl dark:text-foreground-mid"},U=H({__name:"HeroGameAnswer",setup(j){const u=W(),a=n(()=>{var e;return(e=u.currentGame)==null?void 0:e.currentExercise}),l=k(),{words:d,getWordDetail:f,getPartOfSpeechClass:g,getPartOfSpeechLabel:h,isCustomColor:_,getCustomColorStyle:x}=O();function v(e){return L(e==null?void 0:e.phonetic,l.value)}const C=n(()=>{const e=a.value;if(!(e!=null&&e.english))return[];const r=e.english.split(" "),t=r.join(" "),o=p.indexOf(t);if(o===-1)return r.map((w,c)=>c);const s=p.substring(0,o).trim(),E=s.length===0?0:s.split(" ").length;return r.map((w,c)=>E+c)}),i=n(()=>d.value.map((e,r)=>{const t=f(e),o=t==null?void 0:t.pos,s=!!(o&&_(o));return{word:e,phonetic:v(t),sentenceIndex:C.value[r]??r,posClass:o&&!s?g(o):void 0,posStyle:o&&s?x(o):void 0,posLabel:o?h(o):void 0,definition:t==null?void 0:t.definition}})),S=n(()=>i.value.length>0);return(e,r)=>{var t;return m(),b("div",T,[S.value?(m(),B(R,{key:0,class:"mb-12",words:i.value,components:A(P)},null,8,["words","components"])):N("",!0),y("div",D,G((t=a.value)==null?void 0:t.chinese),1)])}}}),ee=Object.assign(U,{__name:"LandingHeroGameAnswer"});export{ee 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.