1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8178],{68178:(e,s,c)=>{c.r(s),c.d(s,{default:()=>j});var n=c(85047),a=c(31615),i=c(21410),d=c(866),l=c(96968),r=c(62557),t=c(99185),o=c(10892),h=c(21582),x=c(7786),m=c(89088),p=c(18654);function j({userId:e,onComplete:s}){let[c,g]=(0,a.useState)(!1),[f,u]=(0,a.useState)({scope_personalCare:!0,scope_medicalDecision:!0,scope_propertyManagement:!1,effect_condition:"physician_certification",effect_condition_other:"",reportingFrequency:"annual",compensation:"none",notes:"",notarized:!1,acknowledged:!1});(0,a.useEffect)(()=>{e&&(async()=>{try{g(!0);let s=await x.s.getMandate(e);s&&u(s.answers||{})}catch(e){(0,p.vV)("è¼å
¥æå®ç£è·è³æå¤±æ:",e)}finally{g(!1)}})()},[e]);let v=(e,s)=>u(c=>({...c,[e]:s})),_=async()=>{if(!e)return s?.(f);try{g(!0),await x.s.saveMandate(e,f),await (0,m.BS)(e),s?.(f)}catch(e){(0,p.vV)("å²åæå®ç£è·è³æå¤±æ:",e),s?.(f)}finally{g(!1)}};return(0,n.jsxs)("div",{className:"space-y-6",children:[(0,n.jsxs)("div",{className:"grid gap-6",children:[(0,n.jsx)("div",{className:"rounded-md border p-4 bg-muted/50 text-sm text-muted-foreground",children:"æ¬å¥ç´ä¿ä¾ææ°æ³éæ¼æå®ç£è·ä¹è¦å®æ¬å®ï¼ç¨ä»¥æç¢ºæ¬äººæ¼åç£è·å®£åæï¼ ç±æå®ç£è·äººä»£è¡æ±ºçèç
§è·ä¹ç¯åèååãæ¤å¥ç´éç¶å
¬è人å
¬è徿å
·æ³å¾æåï¼ ä¸¦éåæ³é¢è²è«é¸å®ç£è·äººå¾å§è½çæã"}),(0,n.jsxs)("div",{className:"grid gap-3",children:[(0,n.jsx)("h3",{className:"font-medium",children:"ææ¬ç¯å"}),(0,n.jsxs)("div",{className:"grid gap-2 md:grid-cols-3",children:[(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,n.jsx)(r.S,{id:"scope_personalCare",checked:!!f.scope_personalCare,onCheckedChange:e=>v("scope_personalCare",!!e)}),(0,n.jsx)(l.J,{htmlFor:"scope_personalCare",children:"çæ´»ç
§è·èå±
ä½å®æï¼å«å±
ä½å°é¸æãæ¥å¸¸ç
§è·ã人身å®å
¨ï¼"})]}),(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,n.jsx)(r.S,{id:"scope_medicalDecision",checked:!!f.scope_medicalDecision,onCheckedChange:e=>v("scope_medicalDecision",!!e)}),(0,n.jsx)(l.J,{htmlFor:"scope_medicalDecision",children:"é«ç決çèåæï¼å«æè¡/麻é/è½é¢çé«çåæäºé
ï¼"})]}),(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,n.jsx)(r.S,{id:"scope_propertyManagement",checked:!!f.scope_propertyManagement,onCheckedChange:e=>v("scope_propertyManagement",!!e)}),(0,n.jsx)(l.J,{htmlFor:"scope_propertyManagement",children:"財ç¢ç®¡çèæ³å¾è¡çºï¼å«éè¡å¾ä¾ãå¿
è¦ä¹æ³å¾è¡çºï¼"})]})]})]}),(0,n.jsxs)("div",{className:"grid gap-3",children:[(0,n.jsx)("h3",{className:"font-medium",children:"çææ¢ä»¶"}),(0,n.jsxs)(t.z,{value:f.effect_condition||"physician_certification",onValueChange:e=>v("effect_condition",e),className:"grid gap-2",children:[(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,n.jsx)(t.C,{value:"physician_certification",id:"effect1"}),(0,n.jsx)(l.J,{htmlFor:"effect1",children:"ç±äºåå°ç§é«å¸«è¨ºæ·æ¬äººå·²åªå¤±å¤æ·æèçäºåä¹è½åæçæ"})]}),(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,n.jsx)(t.C,{value:"court_ruling",id:"effect2"}),(0,n.jsx)(l.J,{htmlFor:"effect2",children:"ç¶æ³é¢ç¸éè£å®ï¼ç£è·/è¼å©å®£åï¼æçæ"})]}),(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,n.jsx)(t.C,{value:"other",id:"effect3"}),(0,n.jsx)(l.J,{htmlFor:"effect3",children:"å
¶ä»ï¼æ¼åè¨»ä¸ææï¼"})]})]}),"other"===f.effect_condition&&(0,n.jsxs)("div",{className:"grid gap-1",children:[(0,n.jsx)(l.J,{htmlFor:"effect_condition_other",children:"å
¶ä»çææ¢ä»¶èªªæï¼å¿
å¡«ï¼"}),(0,n.jsx)(d.p,{id:"effect_condition_other",value:f.effect_condition_other||"",onChange:e=>v("effect_condition_other",e.target.value),placeholder:"è«ææçææ¢ä»¶ï¼ä¾å¦ç¹å®é«çéå®æç¬¬ä¸æ¹å¤å®ç"})]})]}),(0,n.jsxs)("div",{className:"grid gap-3",children:[(0,n.jsx)("h3",{className:"font-medium",children:"ç£ç£èåå ±"}),(0,n.jsx)("div",{className:"grid gap-2 md:grid-cols-2",children:(0,n.jsxs)("div",{className:"grid gap-1",children:[(0,n.jsx)(l.J,{htmlFor:"reportingFrequency",children:"åå ±é »çï¼å
é¸æé »çï¼ä¸èéç£ç£äººåè³ï¼"}),(0,n.jsxs)(h.l6,{value:f.reportingFrequency||"annual",onValueChange:e=>v("reportingFrequency",e),children:[(0,n.jsx)(h.bq,{id:"reportingFrequency",children:(0,n.jsx)(h.yv,{placeholder:"è«é¸æåå ±é »ç"})}),(0,n.jsxs)(h.gC,{children:[(0,n.jsx)(h.eb,{value:"annual",children:"æ¯å¹´"}),(0,n.jsx)(h.eb,{value:"semiannual",children:"æ¯åå¹´"}),(0,n.jsx)(h.eb,{value:"quarterly",children:"æ¯å£"}),(0,n.jsx)(h.eb,{value:"monthly",children:"æ¯æ"})]})]})]})}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground",children:"æéï¼ç£ç£äººå§åã身åèåèèé»è©±è«æ¼æ£å¼å¥ç´ä¸èªè¡å¡«å¯«ï¼ä¸å¨æ¬ç³»çµ±çåã"})]}),(0,n.jsxs)("div",{className:"grid gap-3",children:[(0,n.jsx)("h3",{className:"font-medium",children:"å
¶ä»ç´å®ï¼é¸å¡«ï¼"}),(0,n.jsxs)("div",{className:"grid gap-2 md:grid-cols-2",children:[(0,n.jsxs)("div",{className:"grid gap-1",children:[(0,n.jsx)(l.J,{htmlFor:"compensation",children:"å ±é
¬æè²»ç¨"}),(0,n.jsxs)(h.l6,{value:f.compensation||"none",onValueChange:e=>v("compensation",e),children:[(0,n.jsx)(h.bq,{id:"compensation",children:(0,n.jsx)(h.yv,{placeholder:"è«é¸æå ±é
¬æè²»ç¨"})}),(0,n.jsxs)(h.gC,{children:[(0,n.jsx)(h.eb,{value:"none",children:"ç¡"}),(0,n.jsx)(h.eb,{value:"reimburse",children:"實æ¯å¯¦ä»"}),(0,n.jsx)(h.eb,{value:"fixed_monthly",children:"åºå®æé
¬"}),(0,n.jsx)(h.eb,{value:"hourly",children:"便æ¸è¨é
¬"}),(0,n.jsx)(h.eb,{value:"percentage",children:"ç¾åæ¯è¨é
¬"}),(0,n.jsx)(h.eb,{value:"other",children:"å
¶ä»ï¼è«æ¼å註說æï¼"})]})]})]}),(0,n.jsxs)("div",{className:"grid gap-1",children:[(0,n.jsx)(l.J,{htmlFor:"notarized",children:"æ¯å¦å·²è¾¦çå
¬èæè¦è"}),(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,n.jsx)(r.S,{id:"notarized",checked:!!f.notarized,onCheckedChange:e=>v("notarized",!!e)}),(0,n.jsx)("span",{className:"text-sm text-muted-foreground",children:"建è°è¾¦çå
1
¬èæå¾å¸«è¦è以強åæå"})]})]})]}),(0,n.jsxs)("div",{className:"grid gap-1",children:[(0,n.jsx)(l.J,{htmlFor:"notes",children:"å註"}),(0,n.jsx)(o.T,{id:"notes",value:f.notes||"",onChange:e=>v("notes",e.target.value),placeholder:"å
¶ä»ç¹å¥æç¤ºæéå¶..."})]})]}),(0,n.jsxs)("div",{className:"grid gap-3",children:[(0,n.jsx)("h3",{className:"font-medium",children:"è²æ"}),(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,n.jsx)(r.S,{id:"acknowledged",checked:!!f.acknowledged,onCheckedChange:e=>v("acknowledged",!!e)}),(0,n.jsx)(l.J,{htmlFor:"acknowledged",children:"æå·²è©³é±æ¬å¥ç´ä¸¦å
åçè§£å
§å®¹ï¼å
æ¼æ¬ç³»çµ±è¨å®æ¢æ¬¾é¸é
ï¼æ£å¼å¥ç´å°èªè¡è£å
å§åã身åèåèãé»è©±ãç°½åèæ¥æã"})]})]})]}),(0,n.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,n.jsx)(i.$,{variant:"outline",onClick:()=>s?.(f),disabled:c,children:"åæ¶"}),(0,n.jsx)(i.$,{onClick:_,disabled:!(("other"!==f.effect_condition||f.effect_condition_other)&&(f.scope_personalCare||f.scope_medicalDecision||f.scope_propertyManagement)&&f.acknowledged&&1)||c,children:"å²å"})]})]})}}}]);
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.