1import{ah as T,r as d,a9 as c,j as e,Z as P,L as u,bC as _,Y as $,cW as D,ao as O,aN as M,cX as L}from"./index-DUpygkxg.js";import{P as h,a as g}from"./PublicFooter-DwTwHaFk.js";import{f as b}from"./formatters-QZX43yAa.js";import{u as R}from"./useEmbedMode-92wb7Dgi.js";import{H as U}from"./heart-Ci4mEWdb.js";import{S as B}from"./sparkles-BnDh6Tmo.js";import{T as F}from"./tree-pine-Cck8_HDH.js";import{C as H}from"./credit-card-BOVuKcP8.js";import{C as q}from"./chevron-right-DTgMSD5b.js";import"./firebase-eOymXQZD.js";import"./map-pin-ymTilxsA.js";const X=[{icon:B,title:"åã©ãã®èªç¶ä½é¨",desc:"ç«ãããã»å·éã³ã»çç¼ããªã©ãäºæã使ã£ãä½é¨ããã°ã©ã ã®éå¶è²»"},{icon:F,title:"éå±±æ´åã»çæ
ç³»åç",desc:"ç«¹ææ´åã»åºèæ¨¹æ¤æ¨¹ã»ããªãã¼ãé æã»æ²³å·ä¿å
¨ã®éå
·ã»ææè²»"},{icon:$,title:"ãã©ã³ãã£ã¢ã»éå¶",desc:"æ´»åãæ¯ããã¹ã¿ããã®æ
è²»ã»ä¿éºã»éä¿¡è²»çã®éå¶è²»"}],S="mie_donation_last_submit";function te(){const[p]=T(),C=p.get("success")==="true",k=p.get("canceled")==="true",r=R(),[f,E]=d.useState(3e3),[x,j]=d.useState(!1),[N,A]=d.useState(""),[t,o]=d.useState({donorName:"",donorEmail:"",address:"",comment:"",isAnonymous:!1}),[y,v]=d.useState(!1),[w,a]=d.useState(null);d.useEffect(()=>{window.scrollTo(0,0),document.title=`å¯ä»ãã | ${c.nameShort}`},[]);const l=x?Number(N.replace(/,/g,""))||0:f,I=async s=>{s.preventDefault(),a(null);const i=t.donorName.trim(),m=t.donorEmail.trim();if(!i||!m){a("ãååã¨ã¡ã¼ã«ã¢ãã¬ã¹ã¯å¿
é ã§ã");return}if(i.length>100){a("ååã¯100æå以å
ã§å
¥åãã¦ãã ãã");return}if(!/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(m)||m.length>254){a("æå¹ãªã¡ã¼ã«ã¢ãã¬ã¹ãå
¥åãã¦ãã ãã");return}if(!Number.isFinite(l)||l<100||l>1e6){a("éé¡ã¯100å以ä¸1,000,000å以ä¸ã§æå®ãã¦ãã ãã");return}if(t.address&&t.address.length>200){a("使ã¯200æå以å
ã§å
¥åãã¦ãã ãã");return}if(t.comment&&t.comment.length>1e3){a("ã³ã¡ã³ãã¯1000æå以å
ã§å
¥åãã¦ãã ãã");return}try{const n=Number(localStorage.getItem(S)||"0");if(n&&Date.now()-n<20*1e3){a("é£ç¶éä¿¡ã¯ã§ãã¾ããããã°ããå¾
ã£ã¦ããå度ã試ããã ããã");return}}catch{}v(!0);try{const{url:n}=await L({donorName:i,donorEmail:m,amount:Math.floor(l),address:t.address.trim()||void 0,comment:t.comment.trim()||void 0,isAnonymous:t.isAnonymous});try{localStorage.setItem(S,String(Date.now()))}catch{}window.location.href=n}catch(n){a(n instanceof Error?n.message:"決æ¸ãã¼ã¸ã®ä½æã«å¤±æãã¾ãã"),v(!1)}};return C?e.jsxs("div",{className:r?"bg-transparent":"min-h-screen bg-white",children:[!r&&e.jsx(h,{}),e.jsx("div",{className:`max-w-2xl mx-auto px-4 ${r?"py-6":"py-20"}`,children:e.jsxs("div",{className:"bg-white rounded-2xl shadow-sm border border-gray-100 p-8 md:p-12 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(P,{className:"w-8 h-8 text-emerald-600"})}),e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-gray-900 mb-3",children:"ãå¯ä»ãããã¨ããããã¾ã"}),e.jsxs("p",{className:"text-gray-600 mb-6 leading-relaxed",children:["ãæ¯æããå®äºãã¾ããã",e.jsx("br",{}),"ããã ããå¯ä»ã¯ã",c.vision.tagline,"ããã«å¤§åã«ä½¿ããã¦ããã ãã¾ãã",e.jsx("br",{}),"徿¥ãã礼ã®ã¡ã¼ã«ããéããããã¾ãã"]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[e.jsx(u,{to:"/home",className:"px-5 py-2.5 rounded-xl bg-emerald-600 text-white text-sm font-medium hover:bg-emerald-500",children:"ãã¼ã ã¸æ»ã"}),e.jsx(u,{to:"/transparency",className:"px-5 py-2.5 rounded-xl border border-gray-200 text-sm font-medium hover:bg-gray-50",children:"財åç¶æ³ãè¦ã"})]})]})}),!r&&e.jsx(g,{})]}):k?e.jsxs("div",{className:r?"bg-transparent":"min-h-screen bg-white",children:[!r&&e.jsx(h,{}),e.jsx("div",{className:`max-w-2xl mx-auto px-4 ${r?"py-6":"py-20"}`,children:e.jsxs("div",{className:"bg-white rounded-2xl shadow-sm border border-gray-100 p-8 md:p-12 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-amber-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(_,{className:"w-8 h-8 text-amber-600"})}),e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-gray-900 mb-3",children:"ãæ¯æãããã£ã³ã»ã«ããã¾ãã"}),e.jsx("p",{className:"text-gray-600 mb-6",children:"ããä¸åº¦ã試ãããã ãããéè¡æ¯è¾¼ã§ããæ¯æ´ããã ãã¾ãã"}),e.jsx(u,{to:"/donate",className:"inline-block px-5 py-2.5 rounded-xl bg-emerald-600 text-white text-sm font-medium hover:bg-emerald-500",children:"å¯ä»ãã¼ã¸ã«æ»ã"})]})}),!r&&e.jsx(g,{})]}):e.jsxs("div",{className:r?"bg-transparent":"min-h-screen bg-white",children:[!r&&e.jsx(h,{}),!r&&e.jsxs("section",{className:"relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-emerald-50 via-white to-rose-50"}),e.jsxs("div",{className:"relative max-w-4xl mx-auto px-4 py-16 md:py-20 text-center animate-page-enter",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-white/70 border border-emerald-100 text-xs text-emerald-700 font-medium mb-5 shadow-sm",children:[e.jsx(U,{className:"w-3.5 h-3.5"}),"æ´»åãå¿æ´ãã"]}),e.jsxs("h1",{className:"text-3xl md:text-5xl font-bold text-gray-900 mb-5 leading-tight",children:["ããªãã®å¯ä»ãã",e.jsx("br",{}),e.jsx("span",{className:"bg-gradient-to-r from-emerald-600 to-teal-600 bg-clip-text text-transparent",children:"éå±±ã®æªæ¥ãã¤ããã¾ãã"})]}),e.jsx("p",{className:"text-base md:text-lg text-gray-600 max-w-2xl mx-auto leading-relaxed",children:"ãã³ããªã ã©ã§ã®èªç¶ä½é¨ã»éå±±æ´åã»åã©ãã®å¦ã³ã®å ´ãã ç¶ç¶çã«éå¶ãã¦ããããã«ããæ¯æ´ããé¡ããããã¾ãã"})]})]}),!r&&e.jsx("section",{className:"py-12 bg-white",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4",children:[e.jsx("h2",{className:"text-lg font-bold text-gray-900 mb-6 text-center",children:"å¯ä»ã®ä½¿ãé"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:X.map((s,i)=>{const m=s.icon;return e.jsxs("div",{className:"p-5 rounded-2xl border border-gray-100 bg-gradient-to-br from-white to-gray-50 animate-card-up",style:{"--delay":`${i*80}ms`},children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-100 flex items-center justify-center mb-3",children:e.jsx(m,{className:"w-5 h-5 text-emerald-700"})}),e.jsx("h3",{className:"font-semibold text-gray-900 mb-1 text-sm",children:s.title}),e.jsx("p",{className:"text-xs text-gray-600 leading-relaxed",children:s.desc})]},s.title)})})]})}),e.jsx("section",{className:r?"py-4":"py-12 bg-gradient-to-b from-white to-emerald-50/30",children:e.jsxs("div",{className:"max-w-3xl mx-auto px-4",children:[e.jsxs("form",{onSubmit:I,className:"bg-white rounded-2xl shadow-sm border border-gray-100 p-6 md:p-10",children:[e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-gray-900 mb-6",children:"å¯ä»ãã©ã¼ã "}),e.jsxs("div",{className:"mb-8",children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-3",children:"å¯ä»éé¡"}
1),e.jsx("div",{className:"grid grid-cols-3 md:grid-cols-5 gap-2",children:D.map(s=>e.jsx("button",{type:"button",onClick:()=>{E(s),j(!1)},className:`px-3 py-3 rounded-xl border-2 text-sm font-semibold transition-all ${!x&&f===s?"border-emerald-500 bg-emerald-50 text-emerald-700 ring-1 ring-emerald-200":"border-gray-200 bg-white text-gray-700 hover:border-gray-300"}`,children:b(s)},s))}),e.jsxs("div",{className:"mt-3 flex items-center gap-3",children:[e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:x,onChange:s=>j(s.target.checked),className:"w-4 h-4 rounded text-emerald-600 focus:ring-emerald-500"}),e.jsx("span",{className:"text-sm text-gray-700",children:"èªç±ãªéé¡ãæå®"})]}),x&&e.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[e.jsx("span",{className:"text-sm text-gray-500",children:"Â¥"}),e.jsx("input",{type:"text",inputMode:"numeric",placeholder:"ä¾: 2000",value:N,onChange:s=>A(s.target.value.replace(/[^\d]/g,"")),className:"flex-1 border border-gray-300 rounded-lg px-3 py-2 text-sm focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500 outline-none"})]})]}),e.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"â»100åä»¥ä¸ 1,000,000å以ä¸"})]}),e.jsxs("div",{className:"mb-6 grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:["ãåå ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("input",{required:!0,className:"w-full border border-gray-300 rounded-lg px-3 py-2.5 text-sm focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500 outline-none",placeholder:"å±±ç° å¤ªé",value:t.donorName,onChange:s=>o({...t,donorName:s.target.value})})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:["ã¡ã¼ã«ã¢ãã¬ã¹ ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("input",{required:!0,type:"email",className:"w-full border border-gray-300 rounded-lg px-3 py-2.5 text-sm focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500 outline-none",placeholder:"[email protected]",value:t.donorEmail,onChange:s=>o({...t,donorEmail:s.target.value})})]}),e.jsxs("div",{className:"md:col-span-2",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"使ï¼ä»»æï¼"}),e.jsx("input",{className:"w-full border border-gray-300 rounded-lg px-3 py-2.5 text-sm focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500 outline-none",placeholder:"ç¦å²¡çç¦å²¡å¸...",value:t.address,onChange:s=>o({...t,address:s.target.value})}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"ç¨æ§é¤è¨¼ææ¸çãéµéããå ´åã«ãè¨å
¥ãã ãã"})]}),e.jsxs("div",{className:"md:col-span-2",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"å¿æ´ã³ã¡ã³ãï¼ä»»æï¼"}),e.jsx("textarea",{rows:3,maxLength:1e3,className:"w-full border border-gray-300 rounded-lg px-3 py-2.5 text-sm focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500 outline-none resize-none",placeholder:"å¿æ´ã¡ãã»ã¼ã¸ããèãããã ãã",value:t.comment,onChange:s=>o({...t,comment:s.target.value})})]}),e.jsx("div",{className:"md:col-span-2",children:e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:t.isAnonymous,onChange:s=>o({...t,isAnonymous:s.target.checked}),className:"w-4 h-4 rounded text-emerald-600 focus:ring-emerald-500"}),e.jsx("span",{className:"text-sm text-gray-700",children:"å¿åã®å¯ä»ã¨ãã¦æ±ãï¼å
¬éæã«ãååãä¼ãã¾ãï¼"})]})})]}),e.jsxs("div",{className:"mb-6 p-4 rounded-xl bg-emerald-50/50 border border-emerald-100 flex gap-3",children:[e.jsx(O,{className:"w-5 h-5 text-emerald-600 flex-shrink-0 mt-0.5"}),e.jsxs("div",{className:"text-xs text-emerald-800 leading-relaxed",children:[e.jsx("p",{className:"font-semibold mb-1",children:"ç¨æ§é¤ã«ã¤ãã¦"}),e.jsxs("p",{children:["NPOæ³äººã¸ã®å¯ä»ã¯ãä¸å®ã®è¦ä»¶ãæºããå ´åã«å¯ééæ§é¤ï¼æå¾ç¨ï¼ã®å¯¾è±¡ã¨ãªãã¾ãã è¨¼ææ¸ãå¿
è¦ãªæ¹ã¯ãå¯ä»å¾ã« ",e.jsx("span",{className:"font-medium",children:"äºåå±"})," ã¾ã§ãåãåãããã ããã"]})]})]}),e.jsx("div",{className:"mb-6 p-4 rounded-xl bg-gray-50 border border-gray-100",children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm text-gray-600",children:"å¯ä»éé¡"}),e.jsx("span",{className:"text-2xl font-bold text-gray-900",children:b(l)})]})}),w&&e.jsx("div",{className:"mb-4 p-3 bg-red-50 border border-red-200 rounded-lg text-sm text-red-700",children:w}),e.jsxs("button",{type:"submit",disabled:y||l<100,className:"w-full flex items-center justify-center gap-2 px-6 py-3.5 bg-emerald-600 hover:bg-emerald-500 text-white font-semibold rounded-xl transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[e.jsx(H,{className:"w-5 h-5"}),y?"決æ¸ãã¼ã¸ãæºåä¸...":`${b(l)} ãå¯ä»ãã`]}),e.jsx("div",{className:"mt-6 pt-6 border-t border-gray-100",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(M,{className:"w-4 h-4 text-gray-400 mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"text-xs text-gray-600 leading-relaxed",children:[e.jsx("span",{className:"font-semibold text-gray-700",children:"éè¡æ¯è¾¼ã§ã®ãæ¯æ´ãå¯è½ã§ã"}),e.jsx("br",{}),c.bankInfo.bankName," / ",c.bankInfo.accountType," / å£åº§å義: ",c.bankInfo.accountHolder,e.jsx("br",{}),"ãæ¯è¾¼å¾ã","äºåå±","ã¾ã§ãé£çµ¡ãã ããã"]})]})})]}),e.jsx("div",{className:"mt-6 text-center",children:e.jsxs(u,{to:"/trans
1parency",className:"inline-flex items-center gap-1 text-sm text-emerald-700 hover:text-emerald-600 font-medium",children:["ããã ããå¯ä»ã®ä½¿ãéã確èªãã",e.jsx(q,{className:"w-4 h-4"})]})})]})}),e.jsx(g,{})]})}export{te 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.