PageSourceSearch

https://xynergy.ai/_next/static/chunks/8178.fab13f11c65f08b7.js

js xynergy.ai collected 2026-10-05 16:02:44 UTC 7,428 bytes, 1 lines download raw bytes

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.