1import{f as ae,g as De,j as e,X as Ee,B as v,u as Le,r as g,t as C,A as qe,L as $e,h as Ie,C as R,c as W,d as Y,ak as ze,e as Q,F as Ve,S as pe,ag as He,s as Ae,b as f}from"./index-bM8UT4Os.js";import{I as k}from"./input-BwpLlRYf.js";import{L as n}from"./label-2Seh_wFH.js";import{S as b,a as S,b as j,c as y,d as c}from"./select-CDP2pHh8.js";import{C as Oe}from"./circle-help-d9Ix-JKs.js";import{U as Ue}from"./users-DdYaOfd2.js";import"./dialog-CxcTDVnZ.js";import"./useComposition-DO5dIJEj.js";import"./chevron-up-TG6jWiKP.js";/** 2 * @license lucide-react v0.453.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const Ge=ae("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 7 * @license lucide-react v0.453.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const Re=ae("Shuffle",[["path",{d:"M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22",key:"1wmou1"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 6h1.9c1.5 0 2.9.9 3.6 2.2",key:"10bdb2"}],["path",{d:"M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8",key:"vgxac0"}],["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}]]);/** 12 * @license lucide-react v0.453.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const We=ae("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]),Ye={female:[{min:15,max:20,label:"éåå",color:"bg-green-500"},{min:21,max:25,label:"æ£å¸¸",color:"bg-blue-500"},{min:26,max:32,label:"é©ä¸",color:"bg-yellow-500"},{min:33,max:39,label:"è¼é«",color:"bg-orange-500"},{min:40,max:100,label:"é度è¥è",color:"bg-red-500"}],male:[{min:8,max:14,label:"éåå",color:"bg-green-500"},{min:15,max:20,label:"æ£å¸¸",color:"bg-blue-500"},{min:21,max:26,label:"é©ä¸",color:"bg-yellow-500"},{min:27,max:32,label:"è¼é«",color:"bg-orange-500"},{min:33,max:100,label:"é度è¥è",color:"bg-red-500"}]};function Qe({gender:B,onClose:h}){const{theme:_}=De(),a=_==="dark",x=B==="female"||B==="male"?B:"male",r=x==="female"?"https://d2xsxph8kpxj0f.cloudfront.net/310519663733004993/7ZhqwHvGgwSaWMAUrYFFS2/bf-female-chart-PKBej6pbDGzJMHDeqpGcSL.webp":"https://d2xsxph8kpxj0f.cloudfront.net/310519663733004993/7ZhqwHvGgwSaWMAUrYFFS2/bf-male-chart-MTWpkbUx54tf6rWv9SAorp.webp";return e.jsx("div",{"data-loc":"client/src/components/BodyFatEstimator.tsx:39",className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/70 p-4 backdrop-blur-sm",role:"presentation",children:e.jsxs("section",{"data-loc":"client/src/components/BodyFatEstimator.tsx:40",role:"dialog","aria-modal":"true","aria-labelledby":"body-fat-reference-title",className:`w-full max-w-2xl max-h-[calc(100dvh-2rem)] overflow-auto rounded-2xl border shadow-2xl ${a?"border-white/15 bg-zinc-950 text-zinc-100":"border-slate-200 bg-white text-slate-900"}`,children:[e.jsxs("div",{"data-loc":"client/src/components/BodyFatEstimator.tsx:47",className:`sticky top-0 z-10 flex items-center justify-between border-b p-4 ${a?"border-white/10 bg-zinc-950/95":"border-slate-200 bg-white/95"}`,children:[e.jsx("h2",{"data-loc":"client/src/components/BodyFatEstimator.tsx:48",id:"body-fat-reference-title",className:`text-lg font-semibold ${a?"text-zinc-50":"text-slate-950"}`,children:x==="female"?"女æ§é«èçåèå":"ç·æ§é«èçåèå"}),e.jsx("button",{"data-loc":"client/src/components/BodyFatEstimator.tsx:51",type:"button",onClick:h,"aria-label":"ééé«èçåèå",className:`rounded-lg p-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cyan-400 ${a?"text-zinc-100 hover:bg-white/10":"text-slate-700 hover:bg-slate-100"}`,children:e.jsx(Ee,{"data-loc":"client/src/components/BodyFatEstimator.tsx:57",className:"w-5 h-5"})})]}),e.jsxs("div",{"data-loc":"client/src/components/BodyFatEstimator.tsx:62",className:"space-y-4 p-5 sm:p-6",children:[e.jsx("div",{"data-loc":"client/src/components/BodyFatEstimator.tsx:64",className:"flex justify-center",children:e.jsx("img",{"data-loc":"client/src/components/BodyFatEstimator.tsx:65",src:r,alt:x==="female"?"女æ§é«èçåèå":"ç·æ§é«èçåèå",className:"max-w-full h-auto rounded-lg"})}),e.jsxs("div",{"data-loc":"client/src/components/BodyFatEstimator.tsx:73",className:"space-y-2 mt-6",children:[e.jsx("h3",{"data-loc":"client/src/components/BodyFatEstimator.tsx:74",className:`text-sm font-semibold ${a?"text-zinc-100":"text-slate-900"}`,children:"åé¡èªªæï¼"}),e.jsx("div",{"data-loc":"client/src/components/BodyFatEstimator.tsx:75",className:"grid grid-cols-1 gap-2",children:Ye[x]?.map(u=>e.jsxs("div",{"data-loc":"client/src/components/BodyFatEstimator.tsx:77",className:"flex items-center gap-3",children:[e.jsx("div",{"data-loc":"client/src/components/BodyFatEstimator.tsx:78",className:`w-4 h-4 rounded ${u.color}`}),e.jsxs("span",{"data-loc":"client/src/components/BodyFatEstimator.tsx:79",className:`text-sm font-medium ${a?"text-zinc-200":"text-slate-700"}`,children:[u.min,"â",u.max,"%ï¼",u.label]})]},u.label))})]}),e.jsx("div",{"data-loc":"client/src/components/BodyFatEstimator.tsx:88",className:`rounded-xl border p-3 text-xs font-medium leading-relaxed ${a?"border-cyan-300/25 bg-cyan-300/10 text-cyan-100":"border-cyan-200 bg-cyan-50 text-cyan-900"}`,children:"å¢ååªä¿åèï¼å¯¦éé«èç以尿¥å卿¸¬éçºæºã"}),e.jsx(v,{"data-loc":"client/src/components/BodyFatEstimator.tsx:93",onClick:h,className:"w-full bg-cyan-600 text-white shadow-lg shadow-cyan-900/20 hover:bg-cyan-700",children:"æç½ï¼éé"})]})]})})}const ge=["è¥åå","ç¦è¢è¢","大é»","çµå¯¦","è»è è ","æ¶æ´æ´","å¤å","貪é£","æ´èµ°","ä½ç³»","硬淨","èºåº","æ·¡å®","è¡å","å æ¯ ","é¤ç","飽å°å","çåé","ç²¾åå æ²","忻䏿´»","å æ°£æ»¿æ»¿","æ°å°ç²","å æ»¿é¬¥å¿","heaç","åchur","é¦å´å´","ç±è¾£è¾£","çèè","é ¸æºæº","è¾£å°é£èµ·","èµ°é","ç©è½","çè","飿¥µåè¥","飲水é½è¥","æ°¸é é²å°","æ¥æ¥OT","å¨èº«é","ååå®","ééé"],ue=["åçå ","è è¿æ²¹","èæ»","éèä»","éè","çè³£","è ¸ç²","çè ©","é²å","西å¤å£«","奶è¶","檸è¶","è è¿","èæ","榴槤","é翼","豬æ","ç丸","è¦é¤","é³³çª","è¥
16è²","æ´ç¬","åé¼ ","æ°´è±","ä¼éµ","çè²","æµ·è±","å
ä»","é¸éµ¡","樹æ¶","åé´","è·é","çä¼½å¢","æ³å¥","å®è»","巴士迷","港éµé","è¡å±±ç","è¶è¨å¸¸å®¢","gymå","å¤è³£é人","æ©é¤ç","宵å¤é»¨","èç½ç²","éè¸è"],me=["","","","","","ä»","妹","å¥","å§","ç","é人","æ°å£«","åè
","大師","æ°æ"];function Ze(){const B=ge[Math.floor(Math.random()*ge.length)],h=ue[Math.floor(Math.random()*ue.length)],_=me[Math.floor(Math.random()*me.length)];return`${B}${h}${_}`}const Xe=[{value:"gym",label:"å» Gym / éè¨"},{value:"running",label:"è·æ¥"},{value:"hiking",label:"è¡å±±"},{value:"swimming",label:"游水"},{value:"basketball",label:"æç±ç"},{value:"badminton",label:"æç¾½æ¯ç"},{value:"yoga",label:"çä¼½ / Pilates"},{value:"cycling",label:"踩å®è»"},{value:"boxing",label:"æ³æ / ææ"},{value:"tennis",label:"ç¶²ç"},{value:"football",label:"踢波"},{value:"dance",label:"è·³è"},{value:"climbing",label:"æç³"},{value:"martial_arts",label:"æ¦è¡ / æé"},{value:"none",label:"åºæ¬ä¸ååéå"}],Je=[{value:"cramps",label:"è
¹é¨ä¸é©"},{value:"fatigue",label:"æ°"},{value:"headache",label:"é ç"},{value:"mood",label:"å¿æ
èµ·ä¼"},{value:"bloating",label:"è¹"},{value:"sleep",label:"çå¾å·®"},{value:"appetite",label:"èå£è½è®"}];function ot(){Le();const B=new URLSearchParams(window.location.search).get("from")==="weekly-review",[h,_]=g.useState(1),[a,x]=g.useState({gender:"male",height:170,weight:70,bodyFatPercentage:25,targetBodyFatPercentage:20,targetMusclePercentage:35,goal:"lose_weight",goalTimelineMonths:3,age:25,activityLevel:"light",socialDiningFrequency:"once_week",businessDiningFrequency:"rarely",drinkingHabit:"social_only",exerciseTypes:[],exerciseFrequency:"two_three_week",workType:"office_sitting",lateNightSnack:"sometimes",mealPattern:"regular_three",cookingHabit:"mostly_eat_out"}),[r,u]=g.useState({age:"",height:"",weight:"",bodyFatPercentage:"",targetBodyFatPercentage:"",targetMusclePercentage:"",goalTimelineMonths:""}),[se,he]=g.useState(!1),[p,le]=g.useState(null),{data:s,isLoading:fe}=C.profile.getProfile.useQuery(),Z=C.profile.updateProfile.useMutation(),{data:L}=C.cycle.getSettings.useQuery(),{data:Pe}=C.cycle.getLogs.useQuery(),X=C.cycle.updateSettings.useMutation(),ce=C.cycle.addLog.useMutation(),[q,re]=g.useState(!1),[ie,oe]=g.useState("28"),[I,ne]=g.useState(""),[de,be]=g.useState([]),[Se,xe]=g.useState(!1),[D,J]=g.useState(""),{data:K}=C.profile.getNickname.useQuery(),ee=C.profile.updateNickname.useMutation(),z=C.useUtils(),je=()=>{xe(!1)};g.useEffect(()=>{K?.nickname&&!D&&J(K.nickname)},[K]),g.useEffect(()=>{L&&(re(L.enabled),oe(String(L.averageCycleLength||28)),ne(L.lastPeriodStart?new Date(L.lastPeriodStart).toISOString().slice(0,10):""))},[L]);const ye=()=>{const t=Ze();J(t)},ve=async()=>{if(!D.trim()){f.error("è¦å¡«åè±åå
å¾å");return}try{await ee.mutateAsync({nickname:D.trim()}),z.profile.getNickname.invalidate(),z.auth.me.invalidate(),f.success(`è±åå·²è¨å®çºã${D.trim()}ã ð`)}catch{f.error("å²ååå°ï¼è©¦å¤æ¬¡")}},Ne=async()=>{const t=Number(ie);if(!Number.isInteger(t)||t<21||t>45){f.error("鱿é·åº¦è«å¡« 21 è³ 45 æ¥");return}try{await X.mutateAsync({enabled:q,averageCycleLength:t,lastPeriodStart:I?new Date(`${I}T12:00:00`):null}),z.cycle.getSettings.invalidate(),f.success(q?"é±æè¿½è¹¤è¨å®å·²å²å":"å·²æ«åé±æè¿½è¹¤")}catch{f.error("å²ååå°ï¼è©¦å¤æ¬¡")}},we=async()=>{if(!I){f.error("è«å
å¡«æè¿ä¸æ¬¡éå§æ¥");return}try{await ce.mutateAsync({periodStart:new Date(`${I}T12:00:00`),symptoms:de}),z.cycle.getLogs.invalidate(),z.cycle.getSettings.invalidate(),f.success("å·²è¨ä½å¢æ¬¡é±æéå§æ¥")}catch{f.error("è¨éåå°ï¼è©¦å¤æ¬¡")}};g.useEffect(()=>{if(s&&!se&&(he(!0),x(t=>({...t,gender:s.gender||"male",height:s.height||170,weight:s.weight?Number(s.weight):70,bodyFatPercentage:s.bodyFatPercentage?Number(s.bodyFatPercentage):25,targetBodyFatPercentage:s.targetBodyFatPercentage?Number(s.targetBodyFatPercentage):20,targetMusclePercentage:s.targetMusclePercentage?Number(s.targetMusclePercentage):35,goal:s.goal||"lose_weight",goalTimelineMonths:s.goalTimelineMonths||3,age:s.age||25,activityLevel:s.activityLevel||"light",socialDiningFrequency:s.socialDiningFrequency||"once_week",businessDiningFrequency:s.businessDiningFrequency||"rarely",drinkingHabit:s.drinkingHabit||"social_only",exerciseTypes:s.exerciseTypes||[],exerciseFrequency:s.exerciseFrequency||"two_three_week",workType:s.workType||"office_sitting",lateNightSnack:s.lateNightSnack||"sometimes",mealPattern:s.mealPattern||"regular_three",cookingHabit:s.cookingHabit||"mostly_eat_out"})),u({age:s.age?String(s.age):"",height:s.height?String(s.height):"",weight:s.weight?String(Number(s.weight)):"",bodyFatPercentage:s.bodyFatPercentage?String(Number(s.bodyFatPercentage)):"",targetBodyFatPercentage:s.targetBodyFatPercentage?String(Number(s.targetBodyFatPercentage)):"",targetMusclePercentage:s.targetMusclePercentage?String(Number(s.targetMusclePercentage)):"",goalTimelineMonths:s.goalTimelineMonths?String(s.goalTimelineMonths):""}),s.bmr&&s.tdee)){const t=Math.round(Number(s.bmr)),l=Math.round(Number(s.tdee));Number(s.calorieDeficit),Number(s.weight);const m=Number(s.bodyFatPercentage)||25,i=Number(s.targetBodyFatPercentage)||m,O=s.goal||"maintain",V=s.goalTimelineMonths||3;let N,E,o;switch(O){case"lose_weight":N=Math.round(l*.8),E=l-N,o="æ¸è";break;case"gain_muscle":N=Math.round(l*1.15),E=l-N,o="å¢è";break;
16case"recomp":N=Math.round(l*.92),E=l-N,o="å¢èæ¸è";break;default:N=l,E=0,o="ç¶æé«é";break}const P=m-i,U=V>0?P/V:0,$=U/4.33,w=Math.abs(P)*7700,F=s.socialDiningFrequency||"rarely",M=s.businessDiningFrequency||"rarely",H=F==="three_plus_week"?1500:F==="twice_week"?1e3:F==="once_week"?500:0,G=M==="three_plus_week"?2e3:M==="twice_week"?1200:M==="once_week"?600:0;le({bmr:t,tdee:l,bodyFatDifference:P,monthlyChange:U.toFixed(2),weeklyChange:$.toFixed(2),dailyCalorieDeficit:E,totalCaloriesNeeded:Math.round(w),timeline:V,recommendedCalories:N,weeklyExtraSocialCalories:H,weeklyExtraBusinessCalories:G,goal:O,goalDescription:o})}},[s,se]);const[d,T]=g.useState({}),A=t=>/^\d+\.?\d*$/.test(t),te=t=>/^\d+$/.test(t),ke=()=>{const t={};if(!r.age)t.age="å
¥è¿å¹´é½¡";else if(!te(r.age))t.age="è¦å
¥æ´æ¸";else{const i=parseInt(r.age);(i<13||i>120)&&(t.age="年齡ç¯å: 13-120")}if(!r.height)t.height="å
¥è¿èº«é«";else if(!te(r.height))t.height="è¦å
¥æ´æ¸";else{const i=parseInt(r.height);(i<100||i>250)&&(t.height="身é«ç¯å: 100-250cm")}if(!r.weight)t.weight="å
¥è¿é«é";else if(!A(r.weight))t.weight="æ ¼å¼ä¸æ£ç¢º";else{const i=parseFloat(r.weight);(i<30||i>300)&&(t.weight="é«éç¯å: 30-300kg")}if(!r.bodyFatPercentage)t.bodyFatPercentage="å
¥è¿é«èç";else if(!A(r.bodyFatPercentage))t.bodyFatPercentage="æ ¼å¼ä¸æ£ç¢º";else{const i=parseFloat(r.bodyFatPercentage);(i<5||i>60)&&(t.bodyFatPercentage="é«èçç¯å: 5-60%")}const l=a.goal==="lose_weight"||a.goal==="recomp",m=a.goal==="gain_muscle"||a.goal==="recomp";if(l&&!r.targetBodyFatPercentage)t.targetBodyFatPercentage="å
¥è¿ç®æ¨é«èç";else if(l&&!A(r.targetBodyFatPercentage))t.targetBodyFatPercentage="æ ¼å¼ä¸æ£ç¢º";else if(l){const i=parseFloat(r.targetBodyFatPercentage);(i<5||i>60)&&(t.targetBodyFatPercentage="ç¯å: 5-60%")}if(m&&!r.targetMusclePercentage)t.targetMusclePercentage="å
¥è¿ç®æ¨èèç";else if(m&&!A(r.targetMusclePercentage))t.targetMusclePercentage="æ ¼å¼ä¸æ£ç¢º";else if(m){const i=parseFloat(r.targetMusclePercentage);(i<10||i>80)&&(t.targetMusclePercentage="ç¯å: 10-80%")}if(a.goal!=="maintain"&&!r.goalTimelineMonths)t.goalTimelineMonths="å
¥è¿ç®æ¨æé";else if(a.goal!=="maintain"&&!te(r.goalTimelineMonths))t.goalTimelineMonths="è¦å
¥æ´æ¸";else if(a.goal!=="maintain"){const i=parseInt(r.goalTimelineMonths);(i<1||i>24)&&(t.goalTimelineMonths="ç¯å: 1-24åæ")}return T(t),Object.keys(t).length===0},Fe=async t=>{if(t.preventDefault(),!ke()){f.error("å¡«æå¿
å¡«æ¬ä½å
âï¸");return}const l=parseInt(r.age),m=parseInt(r.height),i=parseFloat(r.weight),O=parseFloat(r.bodyFatPercentage),V=r.targetBodyFatPercentage?parseFloat(r.targetBodyFatPercentage):a.targetBodyFatPercentage,N=r.targetMusclePercentage?parseFloat(r.targetMusclePercentage):a.targetMusclePercentage,E=r.goalTimelineMonths?parseInt(r.goalTimelineMonths):a.goalTimelineMonths,o={...a,age:Math.max(13,Math.min(120,l)),height:Math.max(100,Math.min(250,m)),weight:Math.max(30,Math.min(300,i)),bodyFatPercentage:Math.max(5,Math.min(60,O)),targetBodyFatPercentage:Math.max(5,Math.min(60,V)),targetMusclePercentage:Math.max(10,Math.min(80,N)),goalTimelineMonths:Math.max(1,Math.min(24,E))};x(o);try{const P=await Z.mutateAsync(o),U=P.bmr,$=P.tdee;let w,F,M;switch(o.goal){case"lose_weight":w=P.calorieDeficit,F=$-w,M="æ¸è";break;case"gain_muscle":w=P.calorieDeficit,F=$-w,M="å¢è";break;case"recomp":w=P.calorieDeficit,F=$-w,M="å¢èæ¸è";break;default:w=P.calorieDeficit,F=0,M="ç¶æé«é";break}const H=o.bodyFatPercentage-(o.targetBodyFatPercentage||o.bodyFatPercentage),G=o.goalTimelineMonths>0?H/o.goalTimelineMonths:0,Ce=G/4.33,_e=Math.abs(H)*7700,Te=o.socialDiningFrequency==="three_plus_week"?1500:o.socialDiningFrequency==="twice_week"?1e3:o.socialDiningFrequency==="once_week"?500:0,Be=o.businessDiningFrequency==="three_plus_week"?2e3:o.businessDiningFrequency==="twice_week"?1200:o.businessDiningFrequency==="once_week"?600:0;le({bmr:U,tdee:$,bodyFatDifference:H,monthlyChange:G.toFixed(2),weeklyChange:Ce.toFixed(2),dailyCalorieDeficit:F,totalCaloriesNeeded:Math.round(_e),timeline:o.goalTimelineMonths,recommendedCalories:w,weeklyExtraSocialCalories:Te,weeklyExtraBusinessCalories:Be,goal:o.goal,goalDescription:M}),f.success("è³æå·²å²åï¼ä½ å
å人åè¨åå·²æ´æ° ð")}catch{f.error("å²ååå°ï¼è©¦å¤æ¬¡")}},Me=t=>{x(l=>{const m=l.exerciseTypes.includes(t)?l.exerciseTypes.filter(i=>i!==t):[...l.exerciseTypes,t];return{...l,exerciseTypes:m}})};return fe?e.jsx("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:408",className:"min-h-screen flex items-center justify-center",children:e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:409",className:"text-center space-y-3",children:[e.jsx("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:410",className:"animate-spin w-8 h-8 border-4 border-blue-600 border-t-transparent roun
16ded-full mx-auto"}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:411",className:"text-muted-foreground",children:"è¼å
¥ä¸..."})]})}):e.jsxs(qe,{"data-loc":"client/src/pages/ProfileSetup.tsx:418",title:"æå±è³æ",showBack:!0,children:[Se&&e.jsx(Qe,{"data-loc":"client/src/pages/ProfileSetup.tsx:420",gender:a.gender,onClose:je}),e.jsx("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:425",className:"py-6 px-4",children:e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:426",className:"max-w-3xl mx-auto px-4 py-6",children:[B&&e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:428",className:"mb-4 rounded-xl border border-primary/25 bg-primary/10 p-3 text-sm text-foreground",children:[e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:429",className:"font-semibold",children:"ç±æ¯é±è¦ç¤èª¿æ´è¨å"}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:430",className:"mt-1 text-xs text-muted-foreground",children:"ä½ èå®¶ä¿®æ¹å
ç®æ¨æéãé«èï¼èèç®æ¨ãéåç¿æ
£åçæ´»æ¨¡å¼ï¼å²å徿ç¨ä¾éæ°è¨ç®æ¯æ¥ç±éè AI 建è°ã"})]}),e.jsxs($e,{"data-loc":"client/src/pages/ProfileSetup.tsx:434",href:"/",className:"inline-flex items-center gap-2 text-muted-foreground hover:text-foreground/90 transition-colors",children:[e.jsx(Ie,{"data-loc":"client/src/pages/ProfileSetup.tsx:435",className:"w-4 h-4"}),e.jsx("span",{"data-loc":"client/src/pages/ProfileSetup.tsx:436",className:"text-sm",children:"è¿å»é¦é "})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:440",className:"mb-2",children:[e.jsx("h1",{"data-loc":"client/src/pages/ProfileSetup.tsx:441",className:"text-2xl md:text-3xl font-bold text-foreground mb-2",children:"åäººè³æè¨å®"}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:442",className:"text-muted-foreground text-sm",children:"å¡«å¤åè³æï¼æåå
è³å¯ä»¥ä¿£ä½ æè²¼èº«åå»ºè° ðª"}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:446",className:"flex items-center justify-center gap-2 mt-4",children:[[1,2,3].map(t=>e.jsx("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:448",className:`w-3 h-3 rounded-full transition-all ${h===t?a.gender==="male"?"bg-blue-600 scale-125":"bg-pink-600 scale-125":h>t?"bg-green-400":"bg-gray-300"}`},t)),e.jsx("span",{"data-loc":"client/src/pages/ProfileSetup.tsx:459",className:"text-xs text-muted-foreground ml-2",children:h===1?"åºæ¬è³æ":h===2?"çæ´»ç¿æ
£":"ç®æ¨è¨å®"})]})]}),p&&e.jsxs(R,{"data-loc":"client/src/pages/ProfileSetup.tsx:467",className:"card-premium profile-settings-card mb-6 animate-in fade-in duration-500",children:[e.jsx(W,{"data-loc":"client/src/pages/ProfileSetup.tsx:468",children:e.jsxs(Y,{"data-loc":"client/src/pages/ProfileSetup.tsx:469",className:"text-foreground flex items-center gap-2",children:[e.jsx(ze,{"data-loc":"client/src/pages/ProfileSetup.tsx:470",className:"w-5 h-5"}),"ä½ å
å人åå¥èº«è¨å"]})}),e.jsxs(Q,{"data-loc":"client/src/pages/ProfileSetup.tsx:474",className:"space-y-5",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:476",className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:477",className:"bg-white/5 dark:bg-white/3 backdrop-blur-sm p-4 rounded-xl border border-blue-500/20 shadow-sm",children:[e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:478",className:"text-xs text-muted-foreground",children:"åºç¤ä»£è¬ç (BMR)"}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:479",className:"text-2xl font-bold text-blue-400",children:p.bmr}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:480",className:"text-xs text-muted-foreground",children:"kcal/æ¥"})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:482",className:"bg-white/5 dark:bg-white/3 backdrop-blur-sm p-4 rounded-xl border border-blue-500/20 shadow-sm",children:[e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:483",className:"text-xs text-muted-foreground",children:"æ¯æ¥æ¶è (TDEE)"}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:484",className:"text-2xl font-bold text-blue-400",children:p.tdee}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:485",className:"text-xs text-muted-foreground",children:"kcal/æ¥"})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:487",className:"bg-white/5 dark:bg-white/3 backdrop-blur-sm p-4 rounded-xl border border-green-500/20 shadow-sm",children:[e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:488",className:"text-xs text-muted-foreground",children:"å»ºè°æ¯æ¥æå"}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:489",className:"text-2xl font-bold text-green-400",children:p.recommendedCalories}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:490",className:"text-xs text-muted-foreground",children:"kcal/æ¥"})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:492",className:`bg-white/5 dark:bg-white/3 backdrop-blur-sm p-4 rounded-xl border shadow-sm ${p.dailyCalorieDeficit>=0?"border-red-500/20":"border-emerald-500/20"}`,children:[e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:493",className:"text-xs text-muted-foreground",children:p.dailyCalorieDeficit>=0?"æ¯æ¥ç±é赤å":"æ¯æ¥ç±éçé¤"}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:494",className:`text-2xl font-bold ${p.dailyCalorieDeficit>=0?"text-red-400":"text-emerald-400"}`,children:Math.abs(p.dailyCalorieDeficit)}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:495",className:"text-xs text-muted-foreground",children:"kcal/æ¥"})]})]}),p.goalDescription&&e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:500",className:"bg-white/5 dark:bg-white/3 backdrop-blur-sm p-4 rounded-xl border border-indigo-500/20 shadow-sm",children:[e.jsxs("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:501",className:"text-sm text-indigo-300 font-semibold mb-1",children:["ð¯ ç®æ¨çç¥ï¼",p.goalDescription]}),e.jsxs("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:502",className:"text-xs text-muted-foreground",children:[p.goal==="lose_weight"&&"éé 20% ç±é赤åå 鿏èï¼é
åé©é
16éåä¿çèèã",p.goal==="gain_muscle"&&"éé 15% ç±éç餿¯æèèçé·ï¼é
åéè¨åé«èç½é£²é£ã",p.goal==="recomp"&&"éé 8% è¼å¾®èµ¤å + é«èç½ (2.2g/kg) + éè¨ï¼åæå¢èæ¸èãé²åº¦è¼æ
¢ä½æ´å¥åº·ã",p.goal==="maintain"&&"ç±éæå
¥çæ¼ TDEEï¼ç¶æç¾æé«éå髿
ã"]})]}),p.bodyFatDifference>0&&e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:512",className:"grid grid-cols-3 gap-3",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:513",className:"bg-white/5 dark:bg-white/3 p-3 rounded-xl border border-amber-500/20 shadow-sm text-center",children:[e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:514",className:"text-xs text-muted-foreground",children:"ç®æ¨æé"}),e.jsxs("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:515",className:"text-lg font-bold text-amber-400",children:[p.timeline," åæ"]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:517",className:"bg-white/5 dark:bg-white/3 p-3 rounded-xl border border-amber-500/20 shadow-sm text-center",children:[e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:518",className:"text-xs text-muted-foreground",children:"æ¯ææ¸è"}),e.jsxs("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:519",className:"text-lg font-bold text-amber-400",children:[p.monthlyChange,"%"]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:521",className:"bg-white/5 dark:bg-white/3 p-3 rounded-xl border border-amber-500/20 shadow-sm text-center",children:[e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:522",className:"text-xs text-muted-foreground",children:"æ¯é±æ¸è"}),e.jsxs("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:523",className:"text-lg font-bold text-amber-400",children:[p.weeklyChange,"%"]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:528",className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:529",className:"bg-white/5 dark:bg-white/3 backdrop-blur-sm p-4 rounded-xl border border-cyan-500/20 shadow-sm",children:[e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:530",className:"text-xs text-muted-foreground",children:"ð§ å»ºè°æ¯æ¥é£²æ°´é"}),e.jsxs("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:531",className:"text-2xl font-bold text-cyan-400",children:[Math.round(a.weight*35)," ml"]}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:532",className:"text-xs text-muted-foreground mt-1",children:"é«éÃ35mlï¼é忥å 500ml"})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:534",className:"bg-white/5 dark:bg-white/3 backdrop-blur-sm p-4 rounded-xl border border-purple-500/20 shadow-sm",children:[e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:535",className:"text-xs text-muted-foreground",children:"ð´ å»ºè°æ¯æ¥ç¡ç "}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:536",className:"text-2xl font-bold text-purple-400",children:"7-9 å°æ"}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:537",className:"text-xs text-muted-foreground mt-1",children:"ç«åå¤ æå½±é¿èè復å"})]})]})]})]}),e.jsxs("form",{"data-loc":"client/src/pages/ProfileSetup.tsx:544",onSubmit:Fe,children:[h===1&&e.jsxs(R,{"data-loc":"client/src/pages/ProfileSetup.tsx:547",className:"card-premium profile-settings-card animate-in fade-in duration-300",children:[e.jsxs(W,{"data-loc":"client/src/pages/ProfileSetup.tsx:548",children:[e.jsxs(Y,{"data-loc":"client/src/pages/ProfileSetup.tsx:549",className:"text-xl flex items-center gap-2",children:[e.jsx(Ve,{"data-loc":"client/src/pages/ProfileSetup.tsx:550",className:"w-5 h-5 text-orange-500"}),"åºæ¬èº«é«æ¸æ"]}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:553",className:"text-sm text-muted-foreground",children:"å¢å²æ¸ææç¨åè¨ç®ä½ å
BMR å TDEE"})]}),e.jsxs(Q,{"data-loc":"client/src/pages/ProfileSetup.tsx:555",className:"space-y-5",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:557",className:"profile-nickname-card p-4 rounded-xl border",children:[e.jsxs(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:558",className:"text-sm font-medium flex items-center gap-2 mb-2",children:[e.jsx(pe,{"data-loc":"client/src/pages/ProfileSetup.tsx:559",className:"w-4 h-4 text-purple-400"}),"ä½ å
è±å"]}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:562",className:"text-xs text-muted-foreground mb-3",children:"è¨åè±å代æ¿çåï¼å¨ App å
¥é¢é¡¯ç¤ºã
16åéæå¯ä»¥é¨ææ¹ï¼"}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:563",className:"flex gap-2",children:[e.jsx(k,{"data-loc":"client/src/pages/ProfileSetup.tsx:564",placeholder:"ä¾: çèåçå
ä»",value:D,onChange:t=>J(t.target.value),className:"input-fitdiet flex-1",maxLength:50,autoComplete:"off",autoCorrect:"off",spellCheck:!1,name:"nickname-fd-x9z","data-form-type":"other",onFocus:t=>setTimeout(()=>t.target.scrollIntoView({behavior:"smooth",block:"center"}),350)}),e.jsx(v,{"data-loc":"client/src/pages/ProfileSetup.tsx:577",type:"button",variant:"outline",size:"icon",onClick:ye,className:"profile-nickname-random shrink-0",title:"鍿©çæè±å",children:e.jsx(Re,{"data-loc":"client/src/pages/ProfileSetup.tsx:585",className:"w-4 h-4 text-purple-400"})})]}),D&&e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:589",className:"flex items-center justify-between mt-3",children:[e.jsxs("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:590",className:"profile-nickname-preview text-sm",children:["é 覽ï¼",e.jsx("span",{"data-loc":"client/src/pages/ProfileSetup.tsx:590",className:"font-bold",children:D})]}),e.jsx(v,{"data-loc":"client/src/pages/ProfileSetup.tsx:591",type:"button",size:"sm",onClick:ve,disabled:ee.isPending,className:"profile-nickname-save text-xs h-7 px-3",children:ee.isPending?"å²åä¸...":"å²åè±å"})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:605",className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:606",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:607",className:"text-sm font-medium",children:"æ§å¥"}),e.jsxs(b,{"data-loc":"client/src/pages/ProfileSetup.tsx:608",value:a.gender,onValueChange:t=>x({...a,gender:t}),children:[e.jsx(S,{"data-loc":"client/src/pages/ProfileSetup.tsx:609",className:"mt-1.5",children:e.jsx(j,{"data-loc":"client/src/pages/ProfileSetup.tsx:609"})}),e.jsxs(y,{"data-loc":"client/src/pages/ProfileSetup.tsx:610",children:[e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:611",value:"male",children:"ç·æ§ ð¨"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:612",value:"female",children:"å¥³æ§ ð©"})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:616",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:617",className:"text-sm font-medium",children:"年齡"}),e.jsx(k,{"data-loc":"client/src/pages/ProfileSetup.tsx:618",type:"text",inputMode:"numeric",pattern:"[0-9]*",placeholder:"ä¾: 25",value:r.age,onChange:t=>{u(l=>({...l,age:t.target.value.replace(/[^0-9]/g,"")})),T(l=>({...l,age:""}))},className:`mt-1.5 ${d.age?"border-red-500":""}`,autoComplete:"off",name:"age-fd-x9z","data-form-type":"other",onFocus:t=>setTimeout(()=>t.target.scrollIntoView({behavior:"smooth",block:"nearest"}),350)}),d.age&&e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:631",className:"text-xs text-red-400 mt-0.5",children:d.age})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:636",className:"grid grid-cols-3 gap-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:637",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:638",className:"text-sm font-medium",children:"èº«é« (cm)"}),e.jsx(k,{"data-loc":"client/src/pages/ProfileSetup.tsx:639",type:"text",inputMode:"numeric",pattern:"[0-9]*",placeholder:"ä¾: 170",value:r.height,onChange:t=>{u(l=>({...l,height:t.target.value.replace(/[^0-9]/g,"")})),T(l=>({...l,height:""}))},className:`mt-1.5 ${d.height?"border-red-500":""}`,autoComplete:"off",name:"height-fd-x9z","data-form-type":"other",onFocus:t=>setTimeout(()=>t.target.scrollIntoView({behavior:"smooth",block:"nearest"}),350)}),d.height&&e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:652",className:"text-xs text-red-400 mt-0.5",children:d.height})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:654",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:655",className:"text-sm font-medium",children:"é«é (kg)"}),e.jsx(k,{"data-loc":"client/src/pages/ProfileSetup.tsx:656",type:"text",inputMode:"decimal",pattern:"[0-9]*\\.?[0-9]*",placeholder:"ä¾
16: 70",value:r.weight,onChange:t=>{u(l=>({...l,weight:t.target.value.replace(/[^0-9.]/g,"")})),T(l=>({...l,weight:""}))},className:`mt-1.5 ${d.weight?"border-red-500":""}`,autoComplete:"off",name:"weight-fd-x9z","data-form-type":"other",onFocus:t=>setTimeout(()=>t.target.scrollIntoView({behavior:"smooth",block:"nearest"}),350)}),d.weight&&e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:669",className:"text-xs text-red-400 mt-0.5",children:d.weight})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:671",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:672",className:"flex items-center justify-between",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:673",className:"text-sm font-medium",children:"é«èç (%)"}),e.jsx(v,{"data-loc":"client/src/pages/ProfileSetup.tsx:674",type:"button",variant:"ghost",size:"sm",className:"h-6 w-6 p-0 rounded-full hover:bg-primary/20",onClick:()=>xe(!0),children:e.jsx(Oe,{"data-loc":"client/src/pages/ProfileSetup.tsx:681",className:"h-4 w-4 text-primary"})})]}),e.jsx(k,{"data-loc":"client/src/pages/ProfileSetup.tsx:684",type:"text",inputMode:"decimal",pattern:"[0-9]*\\.?[0-9]*",placeholder:"ä¾: 25",value:r.bodyFatPercentage,onChange:t=>{u(l=>({...l,bodyFatPercentage:t.target.value.replace(/[^0-9.]/g,"")})),T(l=>({...l,bodyFatPercentage:""}))},className:`mt-1.5 ${d.bodyFatPercentage?"border-red-500":""}`,autoComplete:"off",name:"bodyfat-fd-x9z","data-form-type":"other",onFocus:t=>setTimeout(()=>t.target.scrollIntoView({behavior:"smooth",block:"nearest"}),350)}),d.bodyFatPercentage&&e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:697",className:"text-xs text-red-400 mt-0.5",children:d.bodyFatPercentage})]})]}),a.gender==="female"&&e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:703",className:"profile-health-note p-4 rounded-xl border",children:[e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:704",className:"text-sm font-semibold text-violet-600 dark:text-violet-200 mb-1",children:"ð¡ 女ä»å¥åº·æç¤º"}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:705",className:"text-xs text-foreground/80 leading-relaxed",children:"å¥åº·å
女æ§é«èçç¯åä¿ 18-25%ãé度æ¸èæå½±é¿è¸é¨ãç®è質éåæç¶å¨æã æåæå¹«ä½ è¨è¨ä¿çå¥³æ§æ²ç·å
æ¸èæ¹æ¡ï¼å使æå¿ï¼"})]}),a.gender==="female"&&e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:712",className:"profile-health-note rounded-xl border p-4 space-y-3",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:713",className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:714",children:[e.jsxs("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:715",className:"text-sm font-semibold text-violet-600 dark:text-violet-200 flex items-center gap-2",children:[e.jsx(pe,{"data-loc":"client/src/pages/ProfileSetup.tsx:715",className:"w-4 h-4"}),"é±æè¿½è¹¤ï¼å¯é¸ï¼"]}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:716",className:"mt-1 text-xs leading-relaxed text-muted-foreground",children:"åªç¨ä½ä½ èªå·±è§å¯ç¡ç ãèå£ãç²¾ç¥åè¨ç·´æåå
模å¼ï¼åæä½é«çè¨ºæ·æèªåæ¹åè¨åã"})]}),e.jsx("button",{"data-loc":"client/src/pages/ProfileSetup.tsx:718",type:"button",role:"switch","aria-checked":q,onClick:()=>re(t=>!t),className:`relative h-7 w-12 shrink-0 rounded-full transition-colors ${q?"bg-violet-500":"bg-muted/70"}`,children:e.jsx("span",{"data-loc":"client/src/pages/ProfileSetup.tsx:725",className:`absolute top-1 h-5 w-5 rounded-full bg-white shadow transition-transform ${q?"translate-x-6":"translate-x-1"}`})})]}),q&&e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:729",className:"space-y-3 pt-1",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:730",className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:731",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:732",className:"text-xs",children:"å¹³åé±æï¼æ¥ï¼"}),e.jsx(k,{"data-loc":"client/src/pages/ProfileSetup.tsx:733",type:"text",inputMode:"numeric",value:ie,onChange:t=>oe(t.target.value.replace(/[^0-9]/g,"")),className:"mt-1"})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:735",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:736",className:"text-xs",children:"æè¿ä¸æ¬¡éå§æ¥"}),e.jsx(k,{"data-loc":"client/src/pages/ProfileSetup.tsx:737",type:"date",value:I,onChange:t=>ne(t.target.value),className:"mt-1"})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:740",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:741",className:"text-xs",children:"仿¬¡æåï¼å¯è¤é¸ï¼åªä½èªå·±è§å¯ï¼"}),e.jsx("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:742",className:"mt-2 flex flex-wrap gap-2",children:Je.map(t=>{const l=de.includes(t.value);return e.jsx("button",{"data-loc":"client/src/pages/ProfileSetup.tsx:745",type:"button",onClick:()=>be(m=>l?m.filter(i=>i!==t.value):[...m,t.value]),className:`rounded-full border px-2.5 py-1 text-xs transition-colors ${l?"border-violet-400 bg-vi
16olet-500/15 text-violet-700 dark:text-violet-100":"border-border/70 text-muted-foreground hover:bg-muted/60"}`,children:t.label},t.value)})})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:749",className:"flex items-center justify-between gap-3 rounded-lg bg-black/10 px-3 py-2 text-xs text-muted-foreground",children:[e.jsxs("span",{"data-loc":"client/src/pages/ProfileSetup.tsx:750",children:["å·²è¨é ",Pe?.length||0," 次éå§æ¥"]}),e.jsx(v,{"data-loc":"client/src/pages/ProfileSetup.tsx:751",type:"button",variant:"ghost",size:"sm",onClick:we,disabled:ce.isPending,className:"h-7 px-2 text-violet-700 dark:text-violet-200 hover:bg-violet-500/15",children:"è¨é仿¬¡"})]})]}),e.jsx(v,{"data-loc":"client/src/pages/ProfileSetup.tsx:755",type:"button",variant:"outline",size:"sm",onClick:Ne,disabled:X.isPending,className:"border-violet-400/35 text-violet-700 dark:text-violet-100 hover:bg-violet-500/15",children:X.isPending?"å²åä¸...":"å²å鱿è¨å®"})]}),a.gender==="male"&&e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:761",className:"profile-health-note p-4 rounded-xl border",children:[e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:762",className:"text-sm font-semibold text-cyan-700 dark:text-cyan-200 mb-1",children:"ð¡ ç·ä»å¥åº·æç¤º"}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:763",className:"text-xs text-foreground/80 leading-relaxed",children:"å¥åº·å
ç·æ§é«èçç¯åä¿ 10-18%ãå¯ä»¥æ ¹æç®æ¨é²è¡æ´æ¿é²å
æ¸èè¨åã 確ä¿é²è¡è¶³å¤ å
éè¨ä»¥ä¿æèèéï¼å好淨ä¿åææ°§ï¼"})]}),e.jsx(v,{"data-loc":"client/src/pages/ProfileSetup.tsx:770",type:"button",onClick:()=>_(2),className:"w-full h-11 font-semibold",children:"ä¸ä¸æ¥ï¼çæ´»ç¿æ
£ â"})]})]}),h===2&&e.jsxs(R,{"data-loc":"client/src/pages/ProfileSetup.tsx:783",className:"card-premium profile-settings-card animate-in fade-in duration-300",children:[e.jsxs(W,{"data-loc":"client/src/pages/ProfileSetup.tsx:784",children:[e.jsxs(Y,{"data-loc":"client/src/pages/ProfileSetup.tsx:785",className:"text-xl flex items-center gap-2",children:[e.jsx(Ue,{"data-loc":"client/src/pages/ProfileSetup.tsx:785",className:"w-5 h-5 text-violet-500"}),"ä½ å
çæ´»ç¯å¥"]}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:786",className:"text-sm text-muted-foreground",children:"å
ææå½±é¿å»ºè°å
å
©é
ï¼å
¶é¤è³æå¯ç¨å¾åè£ã"})]}),e.jsxs(Q,{"data-loc":"client/src/pages/ProfileSetup.tsx:788",className:"space-y-5",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:789",className:"profile-quick-panel grid gap-4 rounded-2xl border p-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:790",children:[e.jsxs(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:791",className:"text-sm font-medium flex items-center gap-2",children:[e.jsx(Ge,{"data-loc":"client/src/pages/ProfileSetup.tsx:791",className:"w-4 h-4 text-cyan-600"}),"å¹³æ¥å·¥ä½ï¼æ´»å"]}),e.jsxs(b,{"data-loc":"client/src/pages/ProfileSetup.tsx:792",value:a.workType,onValueChange:t=>x({...a,workType:t}),children:[e.jsx(S,{"data-loc":"client/src/pages/ProfileSetup.tsx:793",className:"input-fitdiet mt-1.5",children:e.jsx(j,{"data-loc":"client/src/pages/ProfileSetup.tsx:793"})}),e.jsxs(y,{"data-loc":"client/src/pages/ProfileSetup.tsx:794",children:[e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:794",value:"office_sitting",children:"Office åææ¥"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:794",value:"office_standing",children:"Office 使æ¥ä¼ï¼è¡"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:794",value:"retail_service",children:"é¶å®ï¼æåæ¥ï¼ä¼ææ¥ï¼"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:794",value:"outdoor_physical",children:"æ¶å¤ï¼é«ååå"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:794",value:"wfh",children:"WFH å¨å®¶å·¥ä½"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:794",value:"student",children:"å¸ç"})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:797",children:[e.jsxs(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:798",className:"text-sm font-medium flex items-center gap-2",children:[e.jsx(We,{"data-loc":"client/src/pages/ProfileSetup.tsx:798",className:"w-4 h-4 text-amber-500"}),"å¹³æ¥é£²é£ç¯å¥"]}),e.jsxs(b,{"data-loc":"client/src/pages/ProfileSetup.tsx:799",value:a.mealPattern,onValueChange:t=>x({...a,mealPattern:t}),children:[e.jsx(S,{"data-loc":"client/src/pages/ProfileSetup.tsx:800",className:"input-fitdiet mt-1.5",children:e.jsx(j,{"data-loc":"client/src/pages/ProfileSetup.tsx:800"})}),e.jsxs(y,{"data-loc":"client/src/pages/ProfileSetup.tsx:801",children:[e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:801",value:"regular_three",children:"æ£å¸¸ä¸é¤"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:801",value:"skip_breakfast",children:"16:8 æ·é£ï¼å飿©é¤ï¼"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:801",value:"fasting_1410",children:"14:10 æ·é£"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:801",value:"occasional_fasting",children:"é䏿·é£"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:801",value:"irregular",children:"é£é£¯æéåå®"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:801",value:"many_small",children:"å°é£å¤é¤"})]})]})]})]}),e.jsxs("details",{"data-loc":"client/src/pages/ProfileSetup.tsx:806",className:"profile-optional-panel roun
16ded-2xl border",children:[e.jsxs("summary",{"data-loc":"client/src/pages/ProfileSetup.tsx:807",className:"cursor-pointer list-none px-4 py-3 text-sm font-semibold text-foreground",children:[e.jsx("span",{"data-loc":"client/src/pages/ProfileSetup.tsx:807",className:"mr-2 text-cyan-600",children:"ï¼"}),"è£å
çæ´»è³æ ",e.jsx("span",{"data-loc":"client/src/pages/ProfileSetup.tsx:807",className:"ml-1 font-normal text-muted-foreground",children:"ï¼å¯ç¥éï¼"})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:808",className:"grid grid-cols-1 gap-4 border-t border-border/60 px-4 pb-4 pt-3 sm:grid-cols-2",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:809",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:809",className:"text-xs",children:"æåèé¤é »ç"}),e.jsxs(b,{"data-loc":"client/src/pages/ProfileSetup.tsx:809",value:a.socialDiningFrequency,onValueChange:t=>x({...a,socialDiningFrequency:t}),children:[e.jsx(S,{"data-loc":"client/src/pages/ProfileSetup.tsx:809",className:"input-fitdiet mt-1",children:e.jsx(j,{"data-loc":"client/src/pages/ProfileSetup.tsx:809"})}),e.jsxs(y,{"data-loc":"client/src/pages/ProfileSetup.tsx:809",children:[e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:809",value:"rarely",children:"好å°"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:809",value:"once_week",children:"䏿æä¸æ¬¡å·¦å³"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:809",value:"twice_week",children:"䏿æå
©æ¬¡"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:809",value:"three_plus_week",children:"䏿æä¸æ¬¡æä»¥ä¸"})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:810",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:810",className:"text-xs",children:"工使é
¬"}),e.jsxs(b,{"data-loc":"client/src/pages/ProfileSetup.tsx:810",value:a.businessDiningFrequency,onValueChange:t=>x({...a,businessDiningFrequency:t}),children:[e.jsx(S,{"data-loc":"client/src/pages/ProfileSetup.tsx:810",className:"input-fitdiet mt-1",children:e.jsx(j,{"data-loc":"client/src/pages/ProfileSetup.tsx:810"})}),e.jsxs(y,{"data-loc":"client/src/pages/ProfileSetup.tsx:810",children:[e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:810",value:"rarely",children:"åºæ¬ä¸å"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:810",value:"once_week",children:"䏿æä¸æ¬¡"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:810",value:"twice_week",children:"䏿æå
©æ¬¡"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:810",value:"three_plus_week",children:"ææ¥è¦æé
¬"})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:811",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:811",className:"text-xs",children:"飲é
ç¿æ
£"}),e.jsxs(b,{"data-loc":"client/src/pages/ProfileSetup.tsx:811",value:a.drinkingHabit,onValueChange:t=>x({...a,drinkingHabit:t}),children:[e.jsx(S,{"data-loc":"client/src/pages/ProfileSetup.tsx:811",className:"input-fitdiet mt-1",children:e.jsx(j,{"data-loc":"client/src/pages/ProfileSetup.tsx:811"})}),e.jsxs(y,{"data-loc":"client/src/pages/ProfileSetup.tsx:811",children:[e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:811",value:"never",children:"å®å
¨å飲"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:811",value:"social_only",children:"ç¤¾äº¤å ´åå
飲"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:811",value:"once_week",children:"æ¯ææé£²ä¸æ¬¡"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:811",value:"frequent",children:"ç¶å¸¸é£²"})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:812",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:812",className:"text-xs",children:"èªå·±ç
®å®åºè¡é£"}),e.jsxs(b,{"data-loc":"client/src/pages/ProfileSetup.tsx:812",value:a.cookingHabit,onValueChange:t=>x({...a,cookingHabit:t}),children:[e.jsx(S,{"data-loc":"client/src/pages/ProfileSetup.tsx:812",className:"input-fitdiet mt-1",children:e.jsx(j,{"data-loc":"client/src/pages/ProfileSetup.tsx:812"})}),e.jsxs(y,{"data-loc":"client/src/pages/ProfileSetup.tsx:812",children:[e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:812",value:"mostly_cook",children:"夿¸èªå·±ç
®"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:812",value:"half_half",children:"ä¸åä¸å"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:812",value:"mostly_eat_out",children:"夿¸åºè¡é£ï¼å«å¤è³£"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:812",value:"always_eat_out",children:"å
¨é¨åºè¡é£"})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:813",className:"sm:col-span-2",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:813",className:"text-xs",children:"宵å¤ç¿æ
£"}),e.jsxs(b,{"data-loc":"client/src/pages/ProfileSetup.tsx:813",value:a.lateNightSnack,onValueChange:t=>x({...a,lateNightSnack:t}),children:[e.jsx(S,{"data-loc":"client/src/pages/ProfileSetup.tsx:813",className:"input-fitdiet mt-1",children:e.jsx(j,{"data-loc":"client/src/pages/ProfileSetup.tsx:813"})}),e.jsxs(y,{"data-loc":"client/src/pages/ProfileSetup.tsx:813",children:[e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:813",value:"never",children:"å¾ä¾åé£"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:813",value:"sometimes",children:"éä¸é£ï¼ä¸ææ 1â2 次ï¼"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:813",value:"often",children:"ææ¥é£ï¼ä¸ææ 3â4 次ï¼"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:813",value:"always",children:"幾乿¯æ¥é½é£"})]})]})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:817",className:"flex gap-3 pt-1",children:[e.jsx(v,{"data-loc":"client/src/pages/ProfileSetup.tsx:817",type:"button",variant:"outline",onClick:()=>_(1),className:"flex-1 h-11",children:"â ä¸ä¸æ¥"}),e.jsx(v,{"data-loc":"client/src/pages/ProfileSetup.tsx:817",type:"button",onClick:()=>_(3),className:"flex-1 h-11 font-semibold",children:"ä¸ä¸æ¥ï¼éååç®æ¨ â"})]})]})]}),h===3&&e.jsxs(R,{"data-loc":"client/src/pages/ProfileSetup.tsx:824",className:"card-premium profile-settings-card animate-in fade-in duration-300",children:[e.jsxs(W,{"data-loc":"client/src/pages/ProfileSetup.tsx:825",children:[e.jsxs(Y,{"data-loc":"client/src/pages/ProfileSetup.tsx:826",className:"text-xl flex items-center gap-2",children:[e.jsx(He,{"data-loc":"client/src/pages/ProfileSetup.tsx:826",className:"w-5 h-5 text-cyan-600"}),"éååç®æ¨"]}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:827",className:"text-sm text-muted-foreground",children:"ä¸åé¸é
å·²è¶³å¤ å»ºç«ç¬¬ä¸çè¨åï¼ç´°ç¯å¯æéè¦è£å
ã"})]}),e.jsxs(Q,{"data-loc":"client/src/pages/ProfileSetup.tsx:829",className:"space-y-5",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:831",className:"profile-quick-panel grid gap-4 roun
16ded-2xl border p-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:832",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:833",className:"text-sm font-medium",children:"主è¦ç®æ¨"}),e.jsxs(b,{"data-loc":"client/src/pages/ProfileSetup.tsx:834",value:a.goal,onValueChange:t=>x({...a,goal:t}),children:[e.jsx(S,{"data-loc":"client/src/pages/ProfileSetup.tsx:834",className:"input-fitdiet mt-1.5",children:e.jsx(j,{"data-loc":"client/src/pages/ProfileSetup.tsx:834"})}),e.jsxs(y,{"data-loc":"client/src/pages/ProfileSetup.tsx:834",children:[e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:834",value:"lose_weight",children:"æ¸è"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:834",value:"gain_muscle",children:"å¢è"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:834",value:"recomp",children:"å¢èæ¸è"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:834",value:"maintain",children:"ç¶æé«é"})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:836",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:837",className:"text-sm font-medium",children:"æ¯ææé忬¡æ¸"}),e.jsxs(b,{"data-loc":"client/src/pages/ProfileSetup.tsx:838",value:a.exerciseFrequency,onValueChange:t=>x({...a,exerciseFrequency:t}),children:[e.jsx(S,{"data-loc":"client/src/pages/ProfileSetup.tsx:838",className:"input-fitdiet mt-1.5",children:e.jsx(j,{"data-loc":"client/src/pages/ProfileSetup.tsx:838"})}),e.jsxs(y,{"data-loc":"client/src/pages/ProfileSetup.tsx:838",children:[e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:838",value:"rarely",children:"好å°ï¼ä¸åæå¹¾æ¬¡ï¼"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:838",value:"once_week",children:"䏿æä¸æ¬¡"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:838",value:"two_three_week",children:"䏿æ 2â3 次"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:838",value:"four_five_week",children:"䏿æ 4â5 次"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:838",value:"daily",children:"幾乿¯æ¥"})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:840",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:841",className:"text-sm font-medium",children:"æ´é«æ´»åç¨åº¦"}),e.jsxs(b,{"data-loc":"client/src/pages/ProfileSetup.tsx:842",value:a.activityLevel,onValueChange:t=>x({...a,activityLevel:t}),children:[e.jsx(S,{"data-loc":"client/src/pages/ProfileSetup.tsx:842",className:"input-fitdiet mt-1.5",children:e.jsx(j,{"data-loc":"client/src/pages/ProfileSetup.tsx:842"})}),e.jsxs(y,{"data-loc":"client/src/pages/ProfileSetup.tsx:842",children:[e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:842",value:"sedentary",children:"ä¹
åçºä¸» · Ã1.20"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:842",value:"light",children:"æ¥å¸¸è¼åº¦æ´»å · Ã1.30"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:842",value:"moderate",children:"è¦å¾è¨ç·´ï¼è¼å¤èµ°å · Ã1.40"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:842",value:"active",children:"æ¯æ¥æ´»åéé« Â· Ã1.55"}),e.jsx(c,{"data-loc":"client/src/pages/ProfileSetup.tsx:842",value:"very_active",children:"é«åå·¥ä½ï¼é«ææ¸è¨ç·´ · Ã1.70"})]})]})]})]}),e.jsxs("details",{"data-loc":"client/src/pages/ProfileSetup.tsx:846",className:"profile-optional-panel rounded-2xl border",children:[e.jsxs("summary",{"data-loc":"client/src/pages/ProfileSetup.tsx:847",className:"cursor-pointer list-none px-4 py-3 text-sm font-semibold text-foreground",children:[e.jsx("span",{"data-loc":"client/src/pages/ProfileSetup.tsx:847",className:"mr-2 text-cyan-600",children:"ï¼"}),"æåéå©éå ",e.jsx("span",{"data-loc":"client/src/pages/ProfileSetup.tsx:847",className:"ml-1 font-normal text-muted-foreground",children:"ï¼å¯æå¤åï¼"})]}),e.jsx("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:848",className:"grid grid-cols-2 gap-2 border-t border-border/60 px-4 pb-4 pt-3 sm:grid-cols-3",children:Xe.map(t=>e.jsx("button",{"data-loc":"client/src/pages/ProfileSetup.tsx:850",type:"button",onClick:()=>Me(t.value),className:`px-3 py-2 rounded-lg text-sm font-medium transition-all border ${a.exerciseTypes.includes(t.value)?"bg-vi
16olet-500/15 border-violet-400 text-violet-700 dark:text-violet-200":"bg-secondary border-border text-foreground/80 hover:border-gray-400"}`,children:t.label},t.value))})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:867",className:"profile-goal-panel p-4 rounded-2xl border",children:[e.jsxs("h3",{"data-loc":"client/src/pages/ProfileSetup.tsx:868",className:"font-semibold mb-3 flex items-center gap-2",children:[e.jsx(Ae,{"data-loc":"client/src/pages/ProfileSetup.tsx:868",className:"w-5 h-5 text-amber-500"}),"ç®æ¨ç´°ç¯"]}),a.goal!=="maintain"&&e.jsx("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:871",className:"mb-4",children:e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:872",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:873",className:"text-sm font-medium",children:"ç®æ¨æéï¼æï¼"}),e.jsx(k,{"data-loc":"client/src/pages/ProfileSetup.tsx:874",type:"text",inputMode:"numeric",pattern:"[0-9]*",placeholder:"ä¾: 3",value:r.goalTimelineMonths,onChange:t=>{u(l=>({...l,goalTimelineMonths:t.target.value.replace(/[^0-9]/g,"")})),T(l=>({...l,goalTimelineMonths:""}))},className:`mt-1.5 ${d.goalTimelineMonths?"border-red-500":""}`,autoComplete:"off",name:"timeline-fd-x9z","data-form-type":"other",onFocus:t=>setTimeout(()=>t.target.scrollIntoView({behavior:"smooth",block:"nearest"}),350)}),d.goalTimelineMonths&&e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:887",className:"text-xs text-red-400 mt-0.5",children:d.goalTimelineMonths})]})}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:892",className:"grid grid-cols-2 gap-4",children:[(a.goal==="lose_weight"||a.goal==="recomp")&&e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:893",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:894",className:"text-sm font-medium",children:"ç®æ¨é«èç (%)"}),e.jsx(k,{"data-loc":"client/src/pages/ProfileSetup.tsx:895",type:"text",inputMode:"decimal",pattern:"[0-9]*\\.?[0-9]*",placeholder:"ä¾: 20",value:r.targetBodyFatPercentage,onChange:t=>{u(l=>({...l,targetBodyFatPercentage:t.target.value.replace(/[^0-9.]/g,"")})),T(l=>({...l,targetBodyFatPercentage:""}))},className:`mt-1.5 ${d.targetBodyFatPercentage?"border-red-500":""}`,autoComplete:"off",name:"targetbf-fd-x9z","data-form-type":"other",onFocus:t=>setTimeout(()=>t.target.scrollIntoView({behavior:"smooth",block:"nearest"}),350)}),d.targetBodyFatPercentage&&e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:908",className:"text-xs text-red-400 mt-0.5",children:d.targetBodyFatPercentage}),e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:909",className:"text-xs text-amber-200/70 mt-1",children:a.gender==="female"?"女æ§å»ºè°: 18-25%":"ç·æ§å»ºè°: 10-18%"})]}),(a.goal==="gain_muscle"||a.goal==="recomp")&&e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:913",children:[e.jsx(n,{"data-loc":"client/src/pages/ProfileSetup.tsx:914",className:"text-sm font-medium",children:"ç®æ¨èèç (%)"}),e.jsx(k,{"data-loc":"client/src/pages/ProfileSetup.tsx:915",type:"text",inputMode:"decimal",pattern:"[0-9]*\\.?[0-9]*",placeholder:"ä¾: 35",value:r.targetMusclePercentage,onChange:t=>{u(l=>({...l,targetMusclePercentage:t.target.value.replace(/[^0-9.]/g,"")})),T(l=>({...l,targetMusclePercentage:""}))},className:`mt-1.5 ${d.targetMusclePercentage?"border-red-500":""}`,autoComplete:"off",name:"targetmuscle-fd-x9z","data-form-type":"other",onFocus:t=>setTimeout(()=>t.target.scrollIntoView({behavior:"smooth",block:"nearest"}),350)}),d.targetMusclePercentage&&e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:928",className:"text-xs text-red-400 mt-0.5",children:d.targetMusclePercentage})]})]}),a.goal==="maintain"&&e.jsx("p",{"data-loc":"client/src/pages/ProfileSetup.tsx:931",className:"text-sm text-muted-foreground",children:"ä»¥ç¶æç¾æé«æ
çºä¸»ï¼æ¥å¾é¨æå¯ä»¥åå å
¥é«èæèèç®æ¨ã"})]}),e.jsxs("div",{"data-loc":"client/src/pages/ProfileSetup.tsx:935",className:"flex gap-3",children:[e.jsx(v,{"data-loc":"client/src/pages/ProfileSetup.tsx:936",type:"button",variant:"outline",onClick:()=>_(2),className:"flex-1 h-11",children:"â ä¸ä¸æ¥"}),e.jsx(v,{"data-loc":"client/src/pages/ProfileSetup.tsx:939",type:"submit",disabled:Z.isPending,className:"flex-1 h-11 font-semibold",children:Z.isPending?"å²åç·...":"å²åè³æ â"})]})]})]})]})]})})]})}export{ot 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.