1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7486,e=>{"use strict";let a=(0,e.i(75254).default)("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);e.s(["Building2",0,a],7486)},50586,e=>{"use strict";var a=e.i(43476),t=e.i(71645),r=e.i(90597),s=e.i(31278),i=e.i(7486),l=e.i(5852);let n=[25,50,100,250,500,1e3];function o({label:e,value:t,copy:r,bold:s}){return(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsxs)("span",{className:"text-xs text-gray-500 shrink-0",children:[e,":"]}),(0,a.jsxs)("span",{className:`text-right text-sm ${s?"font-bold text-lime-700 text-lg":"text-gray-900"}`,children:[t,r&&(0,a.jsx)("button",{onClick:()=>{navigator.clipboard.writeText(t)},className:"ml-2 text-teal-600 hover:underline text-xs",children:"kopiuj"})]})]})}e.s(["default",0,function(){let[e,d]=(0,t.useState)(100),[c,m]=(0,t.useState)(""),[p,u]=(0,t.useState)(!1),[x,h]=(0,t.useState)(""),[b,g]=(0,t.useState)(""),[j,y]=(0,t.useState)(""),[w,f]=(0,t.useState)(!1),[k,v]=(0,t.useState)(!1),[N,z]=(0,t.useState)(!1),[S,C]=(0,t.useState)(null),K=c?parseFloat(c)||0:e,B=async e=>{if(!k)return void alert("Wymagana zgoda RODO");if(K<1)return void alert("Minimum 1 PLN");if(!x||!b)return void alert("Wymagane: imiÄ i email");z(!0);try{let a=(0,l.getAttribution)(),t=await fetch("https://crm.fiks.org.pl/api/public/donate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({amount_pln:K,recurring:p,donor_name:x,donor_email:b,purpose:j||void 0,anonymous:w,attribution:a||void 0})}),r=await t.json();if(!t.ok)throw Error(r.error||"BÅÄ
d");try{await (0,l.trackConversion)("donation",K,{email:b})}catch{}r.session_url&&"card"===e?window.location.href=r.session_url:(r.transfer_instructions||"transfer"===e)&&C(r.transfer_instructions||{bank_name:"BNP Paribas Bank Polska S.A.",account:"86 1600 1462 1712 3337 4000 0001",recipient:'Fundacja Integracji i Komunikacji SpoÅecznej âFIKS"',amount:`${K.toFixed(2)} PLN`,title:`Darowizna ${x}${j?` â ${j}`:""}`})}catch(e){alert("BÅÄ
d: "+e.message)}finally{z(!1)}};return S?(0,a.jsxs)("div",{className:"bg-gradient-to-br from-lime-50 to-emerald-50 border-2 border-lime-200 rounded-2xl p-6 sm:p-8 shadow-lg",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3 mb-5",children:[(0,a.jsx)("div",{className:"bg-lime-100 p-3 rounded-xl",children:(0,a.jsx)(i.Building2,{className:"w-7 h-7 text-lime-700"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"font-bold text-lime-900 text-xl",children:"Dane do przelewu"}),(0,a.jsx)("p",{className:"text-sm text-gray-600",children:"Wykonaj przelew na poniższe konto. Otrzymasz potwierdzenie darowizny."})]})]}),(0,a.jsxs)("div",{className:"bg-white rounded-xl p-5 space-y-3 mb-5",children:[(0,a.jsx)(o,{label:"Odbiorca",value:S.recipient}),S.recipient_address&&(0,a.jsx)(o,{label:"Adres odbiorcy",value:S.recipient_address}),(0,a.jsx)(o,{label:"Bank",value:S.bank_name}),(0,a.jsx)(o,{label:"Numer konta",value:S.account,copy:!0}),(0,a.jsx)(o,{label:"Kwota",value:S.amount,bold:!0}),(0,a.jsx)(o,{label:"TytuÅ przelewu",value:S.title,copy:!0})]}),(0,a.jsx)("button",{onClick:()=>C(null),className:"w-full bg-white border-2 border-lime-300 hover:border-lime-500 text-lime-700 font-bold py-3 rounded-full",children:"Wstecz / Inna kwota"})]}):(0,a.jsxs)("div",{className:"bg-white rounded-2xl shadow-lg border border-teal-100 p-6 sm:p-8",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-5",children:[(0,a.jsx)("div",{className:"bg-pink-100 p-3 rounded-xl",children:(0,a.jsx)(r.Heart,{className:"w-7 h-7 text-pink-600"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"font-bold text-teal-900 text-xl",children:"Wesprzyj nas darowiznÄ
"}),(0,a.jsx)("p",{className:"text-sm text-gray-600",children:"Każda zÅotówka pomaga ludziom potrzebujÄ
cym terapii"})]})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("p",{className:"text-xs font-bold text-gray-700 uppercase tracking-wider mb-2",children:"Kwota"}),(0,a.jsx)("div",{className:"grid grid-cols-3 sm:grid-cols-6 gap-2 mb-2",children:n.map(t=>(0,a.jsxs)("button",{onClick:()=>{d(t),m("")},className:`py-2.5 rounded-lg font-bold text-sm transition ${e===t&&!c?"bg-gradient-to-br from-lime-500 to-lime-600 text-white shadow-md":"bg-gray-100 hover:bg-gray-200 text-gray-800"}`,children:[t," zÅ"]},t))}),(0,a.jsx)("input",{type:"number",min:"1",step:"1",value:c,onChange:e=>m(e.target.value),placeholder:"Inna kwota (PLN)",className:"w-full px-4 py-2 border-2 border-gray-300 focus:border-lime-500 rounded-lg"})]}),(0,a.jsxs)("label",{className:"flex items-start gap-2 cursor-pointer p-3 bg-lime-50 border border-lime-200 rounded-lg mb-4",children:[(0,a.jsx)("input",{type:"checkbox",checked:p,onChange:e=>
1u(e.target.checked),className:"mt-0.5 w-5 h-5 accent-lime-600"}),(0,a.jsxs)("span",{className:"text-sm",children:[(0,a.jsx)("strong",{children:"Darowizna co miesiÄ
c"})," â pomóż systematycznie. Możesz anulowaÄ w każdej chwili."]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-3",children:[(0,a.jsx)("input",{value:x,onChange:e=>h(e.target.value),placeholder:"ImiÄ i nazwisko *",className:"px-4 py-2 border border-gray-300 rounded-lg"}),(0,a.jsx)("input",{value:b,onChange:e=>g(e.target.value),type:"email",placeholder:"Email *",className:"px-4 py-2 border border-gray-300 rounded-lg"})]}),(0,a.jsx)("input",{value:j,onChange:e=>y(e.target.value),placeholder:"Cel darowizny (opcjonalny â np. terapia jÄ
kania dzieci)",className:"w-full px-4 py-2 border border-gray-300 rounded-lg mb-3"}),(0,a.jsxs)("label",{className:"flex items-center gap-2 text-sm mb-3",children:[(0,a.jsx)("input",{type:"checkbox",checked:w,onChange:e=>f(e.target.checked)}),"Darowizna anonimowa (nie pojawi siÄ na liÅcie darczyÅców)"]}),(0,a.jsxs)("label",{className:"flex items-start gap-2 text-xs mb-4 bg-amber-50 border border-amber-200 p-3 rounded",children:[(0,a.jsx)("input",{type:"checkbox",checked:k,onChange:e=>v(e.target.checked),className:"mt-0.5"}),(0,a.jsxs)("span",{children:[(0,a.jsx)("strong",{children:"Wyrażam zgodÄ na przetwarzanie danych"})," w celach ksiÄgowych i wystawienia potwierdzenia darowizny. Administrator: Fundacja FIKS (KRS 0001145300, Na KozÅówce 25, 30-664 Kraków)."]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:[(0,a.jsxs)("button",{onClick:()=>B("card"),disabled:N||!k,className:"bg-gradient-to-br from-lime-500 to-lime-600 hover:from-lime-600 hover:to-lime-700 disabled:opacity-40 text-white font-bold py-3 rounded-full inline-flex items-center justify-center gap-2 shadow-md",children:[N?(0,a.jsx)(s.Loader2,{className:"w-5 h-5 animate-spin"}):(0,a.jsx)(r.Heart,{className:"w-5 h-5"}),"ð³ Karta / BLIK / Przelewy24"]}),(0,a.jsxs)("button",{onClick:()=>B("transfer"),disabled:N||!k,className:"bg-white border-2 border-teal-300 hover:border-teal-500 text-teal-700 font-bold py-3 rounded-full inline-flex items-center justify-center gap-2",children:[(0,a.jsx)(i.Building2,{className:"w-5 h-5"})," Tradycyjny przelew"]})]}),(0,a.jsx)("p",{className:"text-[10px] text-gray-500 text-center mt-3",children:"Fundacja FIKS jest organizacjÄ
pożytku publicznego. Darowizna odlicza siÄ od podatku (art. 26 ust. 1 pkt 9 PIT)."})]})}])}]);
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.