PageSourceSearch

https://donasi.rumahasuh.org/_next/static/chunks/51f356ea67b025cf2…11e9d73deeb6f709d55.068b67f0d5509d0c6045.js

js rumahasuh.org collected 2026-10-07 08:31:34 UTC 125,783 bytes, 1 lines download raw bytes

1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[27],{"4cc4":function(e,t,n){"use strict";n.d(t,"a",(function(){return Qt}));var o=n("nKUr"),i=n("vJKn"),r=n.n(i),a=n("cpVT"),c=n("dhJC"),d=n("rg98"),s=n("xvhg"),l=n("q1tI"),m=n("G8Ht"),u=n("vDqi"),p=n.n(u),f=n("vOnD"),g=n("KXDj"),b=n("wHSu"),h=n("IP2g"),j=Object(f.c)("div").withConfig({displayName:"BottomSheetPayment___StyledDiv",componentId:"sc-14gqd64-0"})({position:"fixed",zIndex:"40",bottom:"0",left:"0",right:"0",top:"0",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",width:"100vw",height:"100vh","--bg-opacity":"0.5",backgroundColor:"rgba(74, 85, 104, var(--bg-opacity))"}),v=Object(f.c)("div").withConfig({displayName:"BottomSheetPayment___StyledDiv2",componentId:"sc-14gqd64-1"})(["",""],(function(e){return e._css3})),O=Object(f.c)("div").withConfig({displayName:"BottomSheetPayment___StyledDiv3",componentId:"sc-14gqd64-2"})(["",""],(function(e){return e._css4})),y=Object(f.c)("div").withConfig({displayName:"BottomSheetPayment___StyledDiv4",componentId:"sc-14gqd64-3"})({marginTop:"1.25rem",width:"100%"});var C=Object(f.c)("div").withConfig({displayName:"BottomSheetPayment___StyledDiv5",componentId:"sc-14gqd64-4"})({display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"2rem",paddingTop:"0.75rem",paddingBottom:"0.75rem",paddingLeft:"1.25rem",paddingRight:"1.25rem"}),w=Object(f.c)(h.a).withConfig({displayName:"BottomSheetPayment___StyledFontAwesomeIcon",componentId:"sc-14gqd64-5"})({":hover":{"--text-opacity":"1",color:"rgba(20, 194, 211, var(--text-opacity))"},fontSize:"1.429rem",cursor:"pointer"}),x=Object(f.c)("span").withConfig({displayName:"BottomSheetPayment___StyledSpan",componentId:"sc-14gqd64-6"})({marginLeft:"1rem",fontSize:"1.286rem"}),_=function(e){var t=e.onClose,n=e.title,i=e.rightButton;return Object(o.jsxs)(C,{children:[Object(o.jsxs)("div",{children:[Object(o.jsx)(w,{icon:b.o,onClick:t}),Object(o.jsx)(x,{children:n})]}),Object(o.jsx)("div",{children:i&&i})]})},S=function(e){var t=e.title,n=void 0===t?"":t,i=e.onClose,r=void 0===i?function(){}:i,a=e.children,c=e.rightButton,d=e.bottomButton;return Object(l.useEffect)((function(){return document.body.style.overflow="hidden",document.body.style.position="relative",function(){document.body.style.overflow="auto",document.body.style.position=null}}),[]),Object(o.jsx)(j,{children:Object(o.jsxs)(v,{_css3:[Object(f.b)(["height:auto;"]),{position:"sticky",paddingTop:"1.25rem",paddingBottom:"1.25rem",width:"480px","--bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--bg-opacity))",borderTopLeftRadius:"0.75rem",borderTopRightRadius:"0.75rem",bottom:"0","@media (max-width: 480px)":{width:"100%"}}],children:[Object(o.jsx)(_,{onClose:r,title:n,rightButton:c}),Object(o.jsx)(O,{_css4:[Object(f.b)(["max-height:85vh;height:auto;"]),{"--bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--bg-opacity))",overflow:"auto"}],children:a}),d&&Object(o.jsx)(y,{children:d})]})})},I=n("Rymt"),k=n("BVH2"),N=n("CIUX"),L=n("VFWX"),D=n("JdxD"),R=n("NKCw"),B=n("4e9g"),E=n("FGyW"),P=n("wkxh"),A=n("Ka17"),T=n("99/u");var M=n("p18s"),F=n("YFqc"),Z=n.n(F),V=n("20a2"),H=n("7Cbv"),z=n("g4pe"),W=n.n(z),q=n("3mjN"),U=n("wtrr"),Q=n("96bR"),J=n.n(Q);function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var G="Mohon diisi terlebih dahulu",X="Nomor WhatsApp atau Email",$=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv",componentId:"sc-1drv2og-0"})({paddingTop:"1rem",paddingBottom:"1rem",paddingLeft:"1.25rem",paddingRight:"1.25rem","--bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--bg-opacity))"}),ee=Object(f.c)(k.a.TitleH6).withConfig({displayName:"donation-form-view___StyledTypoTitleH",componentId:"sc-1drv2og-1"})({marginBottom:"1rem"}),te=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv2",componentId:"sc-1drv2og-2"})({display:"grid",gap:"0.5rem",gridTemplateColumns:"repeat(2, minmax(0, 1fr))"}),ne=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv3",componentId:"sc-1drv2og-3"})({textAlign:"center"}),oe=Object(f.c)("form").withConfig({displayName:"donation-form-view___StyledForm",componentId:"sc-1drv2og-4"})({backgroundColor:"rgba(49, 53, 59, 0.02)"}),ie=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv4",componentId:"sc-1drv2og-5"})({paddingBottom:"0.5rem","--bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--bg-opacity))",paddingLeft:"1.25rem",paddingRight:"1.25rem"}),re=Object(f.c)("p").withConfig({displayName:"donation-form-view___StyledP",componentId:"sc-1drv2og-6"})({marginBottom:"0.5rem",fontSize:"0.8571rem",color:"rgba(49, 53, 59, 0.75)",paddingTop:"1rem"}),ae=Object(f.c)("p").withConfig({displayName:"donation-form-view___StyledP2",componentId:"sc-1drv2og-7"})({marginBottom:"0.5rem",fontSize:"1rem",fontWeight:"400"}),ce=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv5",componentId:"sc-1drv2og-8"})({marginBottom:"0.75rem"}),de=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv6",componentId:"sc-1drv2og-9"})({position:"relative",fontSize:"1.429rem"}),se=Object(f.c)(I.a).withConfig({displayName:"donation-form-view___StyledNumberField",componentId:"sc-1drv2og-10"})(["",""],(function(e){return e._css3})),le=Object(f.c)("span").withConfig({displayName:"donation-form-view___StyledSpan",componentId:"sc-1drv2og-11"})(["",""],(function(e){return e._css4})),me=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv7",componentId:"sc-1drv2og-12"})(["",""],(function(e){return e._css5})),ue=Object(f.c)("span").withConfig({displayName:"donation-form-view___StyledSpan2",componentId:"sc-1drv2og-13"})({marginLeft:"0.25rem"}),pe=Object(f.c)("span").withConfig({displayName:"donation-form-view___StyledSpan3",componentId:"sc-1drv2og-14"})({marginLeft:"0.25rem"}),fe=Object(f.c)("span").withConfig({displayName:"donation-form-view___StyledSpan4",componentId:"sc-1drv2og-15"})({marginLeft:"0.25rem"}),ge=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv8",componentId:"sc-1drv2og-16"})({paddingLeft:"1.25rem",paddingRight:"1.25rem",paddingTop:"1rem",paddingBottom:"1rem","--bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--bg-opacity))",marginTop:"0.5rem"}),be=Object(f.c)("p").withConfig({displayName:"donation-form-view___StyledP3",componentId:"sc-1drv2og-17"})({textAlign:"center",marginBottom:"1rem"}
1),he=Object(f.c)(N.a).withConfig({displayName:"donation-form-view___StyledButton",componentId:"sc-1drv2og-18"})({fontWeight:"400"}),je=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv9",componentId:"sc-1drv2og-19"})({marginTop:"1rem"}),ve=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv10",componentId:"sc-1drv2og-20"})({marginTop:"0.25rem",marginBottom:"1rem"}),Oe=Object(f.c)("span").withConfig({displayName:"donation-form-view___StyledSpan5",componentId:"sc-1drv2og-21"})({display:"none"}),ye=Object(f.c)(I.f).withConfig({displayName:"donation-form-view___StyledTextField",componentId:"sc-1drv2og-22"})({display:"none"}),Ce=Object(f.c)(I.f).withConfig({displayName:"donation-form-view___StyledTextField2",componentId:"sc-1drv2og-23"})({display:"none"}),we=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv11",componentId:"sc-1drv2og-24"})({display:"flex"}),xe=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv12",componentId:"sc-1drv2og-25"})({flexGrow:"1"}),_e=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv13",componentId:"sc-1drv2og-26"})({display:"flex",justifyContent:"space-between",marginBottom:"0.5rem"}),Se=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv14",componentId:"sc-1drv2og-27"})({paddingTop:"0.5rem"}),Ie=Object(f.c)("p").withConfig({displayName:"donation-form-view___StyledP4",componentId:"sc-1drv2og-28"})({fontSize:"0.875rem",fontWeight:"500"}),ke=Object(f.c)("p").withConfig({displayName:"donation-form-view___StyledP5",componentId:"sc-1drv2og-29"})({fontSize:"0.75rem",fontWeight:"400"}),Ne=Object(f.c)("p").withConfig({displayName:"donation-form-view___StyledP6",componentId:"sc-1drv2og-30"})({marginBottom:"1rem"}),Le=Object(f.c)(N.a).withConfig({displayName:"donation-form-view___StyledButton2",componentId:"sc-1drv2og-31"})({fontWeight:"400"}),De=Object(f.c)("label").withConfig({displayName:"donation-form-view___StyledLabel",componentId:"sc-1drv2og-32"})({display:"block",marginBottom:"0.75rem",paddingLeft:"0.25rem",color:"rgba(49, 53, 59, 0.75)",fontWeight:"400",cursor:"pointer"}),Re=Object(f.c)("span").withConfig({displayName:"donation-form-view___StyledSpan6",componentId:"sc-1drv2og-33"})({marginRight:"1rem"}),Be=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv15",componentId:"sc-1drv2og-34"})({position:"relative"}),Ee=Object(f.c)(I.e).withConfig({displayName:"donation-form-view___StyledTextArea",componentId:"sc-1drv2og-35"})({resize:"none"}),Pe=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv16",componentId:"sc-1drv2og-36"})({position:"absolute",right:"0",paddingBottom:"0.25rem",paddingRight:"0.5rem",color:"rgba(49, 53, 59, 0.54)","--bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--bg-opacity))",borderBottomRightRadius:"0.5rem"}),Ae=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv17",componentId:"sc-1drv2og-37"})({paddingLeft:"1.25rem",paddingRight:"1.25rem",paddingTop:"1rem",paddingBottom:"1rem","--bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--bg-opacity))",marginTop:"0.5rem"}),Te=Object(f.c)(k.a.TitleH6).withConfig({displayName:"donation-form-view___StyledTypoTitleH2",componentId:"sc-1drv2og-38"})({marginBottom:"1rem"}),Me=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv18",componentId:"sc-1drv2og-39"})(["",""],(function(e){return e._css6})),Fe=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv19",componentId:"sc-1drv2og-40"})({display:"inline-flex",alignItems:"center",fontWeight:"400",color:"rgba(49, 53, 59, 0.96)"}),Ze=Object(f.c)("span").withConfig({displayName:"donation-form-view___StyledSpan7",componentId:"sc-1drv2og-41"})({marginLeft:"1rem"}),Ve=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv20",componentId:"sc-1drv2og-42"})(["",""],(function(e){return e._css7})),He=Object(f.c)("span").withConfig({displayName:"donation-form-view___StyledSpan8",componentId:"sc-1drv2og-43"})({marginLeft:"0.25rem"}),ze=Object(f.c)(I.a).withConfig({displayName:"donation-form-view___StyledNumberField2",componentId:"sc-1drv2og-44"})({marginBottom:"0",marginTop:"0.75rem"}),We=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv21",componentId:"sc-1drv2og-45"})(["",""],(function(e){return e._css8})),qe=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv22",componentId:"sc-1drv2og-46"})({display:"inline-flex",alignItems:"center",fontWeight:"400",color:"rgba(49, 53, 59, 0.96)"}),Ue=Object(f.c)("span").withConfig({displayName:"donation-form-view___StyledSpan9",componentId:"sc-1drv2og-47"})({marginLeft:"1rem"}),Qe=Object(f.c)(I.a).withConfig({displayName:"donation-form-view___StyledNumberField3",componentId:"sc-1drv2og-48"})({marginBottom:"0",marginTop:"0.75rem"}),Je=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv23",componentId:"sc-1drv2og-49"})(["",""],(function(e){return e._css9})),Ye=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv24",componentId:"sc-1drv2og-50"})({display:"inline-flex",alignItems:"center",fontWeight:"400",color:"rgba(49, 53, 59, 0.96)"}),Ke=Object(f.c)("span").withConfig({displayName:"donation-form-view___StyledSpan10",componentId:"sc-1drv2og-51"})({marginLeft:"1rem"}),Ge=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv25",componentId:"sc-1drv2og-52"})(["",""],(function(e){return e._css10})),Xe=Object(f.c)("span").withConfig({displayName:"donation-form-view___StyledSpan11",componentId:"sc-1drv2og-53"})({marginLeft:"0.25rem"}),$e=Object(f.c)(I.a).withConfig({displayName:"donation-form-view___StyledNumberField4",componentId:"sc-1drv2og-54"})({marginBottom:"0",marginTop:"0.75rem"}),et=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv26",componentId:"sc-1drv2og-55"})(["",""],(function(e){return e._css11})),tt=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv27",componentId:"sc-1drv2og-56"})({display:"inline-flex",alignItems:"center",fontWeight:"400",color:"rgba(49, 53, 59, 0.96)"}),nt=Object(f.c)("span").withConfig({displayName:"donation-form-view___StyledSpan12",componentId:"sc-1drv2og-57"})({marginLeft:"1rem"}),ot=Object(f.c)(I.a).withConfig({displayName:"donation-form-view___StyledNumberField5",componentId:"sc-1drv2og-58"})({marginBottom:"0",marginTop:"0.75rem"}),it=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv28",componentId:"sc-1drv2og-59"})({paddingLeft:"1.25rem",paddingRight:"1.25rem",paddingTop:"1rem",paddingBottom:"1rem",marginTop:"0.5rem","--bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--bg-opacity))"}),rt=Object(f.c)(N.a).withConfig({displayName:"donation-form-view___StyledButton3",componentId:"sc-1drv2og-60"})({width:"100%"}),at=Object(f.c)("svg").withConfig({displayName:"donation-form-view___StyledSvg",componentId:"sc-1drv2og-61"})({marginRight:"0.5rem",display:"inline"});var ct=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv29",componentId:"sc-1drv2og-62"})(["",""],(function(e){return e._css12})),dt=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv30",componentId:"sc-1drv2og-63"})({display:"inline-flex",alignItems:"center",fontWeight:"400",color:"rgba(49, 53, 59, 0.96)"}),st=Object(f.c)("span").withConfig({displayName:"donation-form-view___StyledSpan13",componentId:"sc-1drv2og-64"})({marginLeft:"1rem"}),lt=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv31",componentId:"sc-1drv2og-65"})({display:"flex",alignItems:"center","> :not(template) ~ :not(template)":{"--space-x-reverse":0,marginRight:"calc(1rem * var(--space-x-reverse))",marginLeft:"calc(1rem * calc(1 - var(--space-x-reverse)))"},fontWeight:"400",color:"rgba(49, 53, 59, 0.96)"}),mt=Object(f.c)("img").withConfig({displayName:"donation-form-view___StyledImg",componentId:"sc-1drv2og-66"})(["",""],(function(e){return e._css13})),ut=function(e){var t,n,i,r=e.selectedId,a=e.methods,c=e.isLoading,d=e.setPaymentMethodOpen,s=e.errorRequired;
1return Object.keys(a).forEach((function(e){var t=a[e].banks;Object.keys(t).forEach((function(e){var n=t[e];n.id===parseInt(r)&&(i=n)}))})),c?Object(o.jsx)(L.a,{}):Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)(ct,{onClick:d,_css12:[{display:"flex",justifyContent:"space-between",alignItems:"center",borderWidth:"1px",borderColor:"rgba(49, 53, 59, 0.12)",paddingLeft:"1rem",paddingRight:"0.5rem",borderRadius:"0.5rem",cursor:"pointer"},s&&{"--border-opacity":"1",borderColor:"rgba(247, 104, 91, var(--border-opacity))"},Object(f.b)(["height:42px;"])],children:i?Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)(lt,{children:[Object(o.jsx)(mt,{src:null===(t=i)||void 0===t?void 0:t.icon,_css13:[Object(f.b)(["max-width:42px;max-height:42px;"])]}),Object(o.jsx)("span",{children:null===(n=i)||void 0===n?void 0:n.bank_info})]}),Object(o.jsxs)("div",{className:"btn-change-payment",style:{background:[q.a.LIGHT],color:[q.a.PRIMARY]},children:["Ganti",Object(o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:Object(o.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.29289 14.7071C6.90237 14.3166 6.90237 13.6834 7.29289 13.2929L10.5858 10L7.29289 6.70711C6.90237 6.31658 6.90237 5.68342 7.29289 5.29289C7.68342 4.90237 8.31658 4.90237 8.70711 5.29289L12.7071 9.29289C13.0976 9.68342 13.0976 10.3166 12.7071 10.7071L8.70711 14.7071C8.31658 15.0976 7.68342 15.0976 7.29289 14.7071Z",fill:q.a.PRIMARY})})]})]}):Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)(dt,{children:[Object(o.jsx)(It,{}),Object(o.jsx)(st,{children:"Pilih Pembayaran"})]}),Object(o.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9947 10.9951C15.1821 11.1826 15.2875 11.4369 15.2875 11.7021C15.2875 11.9672 15.1821 12.2215 14.9947 12.4091L10.4017 17.0021C10.2154 17.1846 9.96458 17.2863 9.70375 17.285C9.44292 17.2837 9.19315 17.1795 9.00871 16.995C8.82428 16.8106 8.72008 16.5608 8.71876 16.3C8.71745 16.0392 8.81911 15.7884 9.00168 15.6021L12.9017 11.7021L9.00168 7.80207C8.81911 7.61578 8.71745 7.36497 8.71876 7.10414C8.72008 6.84331 8.82428 6.59354 9.00871 6.4091C9.19315 6.22467 9.44292 6.12047 9.70375 6.11915C9.96458 6.11784 10.2154 6.21951 10.4017 6.40207L14.9947 10.9951Z",fill:"#31353B",fillOpacity:"0.96"})})]})}),Object(o.jsx)(Lt,{isShow:s})]})},pt=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv32",componentId:"sc-1drv2og-67"})({marginBottom:"1.5rem"}),ft=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv33",componentId:"sc-1drv2og-68"})({display:"flex",alignItems:"center",cursor:"pointer","> :not(template) ~ :not(template)":{"--divide-y-reverse":0,borderTopWidth:"calc(1px * calc(1 - var(--divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--divide-y-reverse))",borderStyle:"solid"},paddingLeft:"0.75rem",paddingRight:"0.75rem"}),gt=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv34",componentId:"sc-1drv2og-69"})({alignItems:"center","> :not(template) ~ :not(template)":{"--space-x-reverse":0,marginRight:"calc(1rem * var(--space-x-reverse))",marginLeft:"calc(1rem * calc(1 - var(--space-x-reverse)))"},paddingTop:"1.25rem",paddingBottom:"1.25rem",paddingLeft:"0.25rem",paddingRight:"0.25rem"}),bt=Object(f.c)("img").withConfig({displayName:"donation-form-view___StyledImg2",componentId:"sc-1drv2og-70"})(["",""],(function(e){return e._css14})),ht=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv35",componentId:"sc-1drv2og-71"})({alignItems:"center"}),jt=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv36",componentId:"sc-1drv2og-72"})({alignItems:"center"}),vt=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv37",componentId:"sc-1drv2og-73"})({paddingLeft:"0.5rem",paddingRight:"0.5rem"}),Ot=Object(f.c)("ul").withConfig({displayName:"donation-form-view___StyledUl",componentId:"sc-1drv2og-74"})({"> :not(template) ~ :not(template)":{"--divide-y-reverse":0,borderTopWidth:"calc(1px * calc(1 - var(--div
1ide-y-reverse)))",borderBottomWidth:"calc(1px * var(--divide-y-reverse))",borderStyle:"solid"},paddingLeft:"1.25rem",paddingRight:"1.25rem",marginBottom:"1.25rem"}),yt=Object(f.c)("li").withConfig({displayName:"donation-form-view___StyledLi",componentId:"sc-1drv2og-75"})({display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer"}),Ct=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv38",componentId:"sc-1drv2og-76"})({display:"flex",alignItems:"center","> :not(template) ~ :not(template)":{"--space-x-reverse":0,marginRight:"calc(1rem * var(--space-x-reverse))",marginLeft:"calc(1rem * calc(1 - var(--space-x-reverse)))"},paddingTop:"1.25rem",paddingBottom:"1.25rem",paddingLeft:"0.25rem",paddingRight:"0.25rem"}),wt=Object(f.c)("img").withConfig({displayName:"donation-form-view___StyledImg3",componentId:"sc-1drv2og-77"})(["",""],(function(e){return e._css15})),xt=function(e){var t=e.methodQris,n=e.methods,i=e.defaultMethod,r=e.selectMethod,a=e.handleClose,c=Object(l.useState)(i),d=c[0],s=c[1],m=function(e){s(e),r(e),a()};return Object(o.jsxs)(S,{title:"Pembayaran",onClose:a,children:[Object(o.jsx)(pt,{className:"box-qris",children:t.map((function(e){return Object(o.jsx)(o.Fragment,{children:e.banks.map((function(e){return Object(o.jsxs)(ft,{onClick:function(){return m(e.id)},children:[Object(o.jsx)(gt,{children:Object(o.jsx)(bt,{src:e.icon,_css14:[Object(f.b)(["max-width:42px;max-height:42px;"])]})}),Object(o.jsxs)(ht,{className:"content-txt",children:[Object(o.jsx)("p",{className:"txt-title",children:"Mudahnya Pake QRIS"}),Object(o.jsx)("span",{className:"txt-desc",children:"Nominal tepat, verifikasi otomatis"})]}),Object(o.jsx)(jt,{children:d===e.id?Object(o.jsxs)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12ZM9.38236 11.0689C9.50437 11.1213 9.61471 11.1974 9.70696 11.293L11 12.586L14.293 9.29296C14.3852 9.19745 14.4956 9.12127 14.6176 9.06886C14.7396 9.01645 14.8708 8.98886 15.0036 8.98771C15.1363 8.98655 15.268 9.01186 15.3909 9.06214C15.5138 9.11242 15.6255 9.18667 15.7194 9.28056C15.8132 9.37446 15.8875 9.48611 15.9378 9.60901C15.9881 9.7319 16.0134 9.86358 16.0122 9.99636C16.0111 10.1291 15.9835 10.2604 15.9311 10.3824C15.8787 10.5044 15.8025 10.6147 15.707 10.707L11.707 14.707C11.5194 14.8944 11.2651 14.9997 11 14.9997C10.7348 14.9997 10.4805 14.8944 10.293 14.707L8.29296 12.707C8.19745 12.6147 8.12127 12.5044 8.06886 12.3824C8.01645 12.2604 7.98886 12.1291 7.98771 11.9964C7.98655 11.8636 8.01186 11.7319 8.06214 11.609C8.11242 11.4861 8.18667 11.3745 8.28056 11.2806C8.37446 11.1867 8.48611 11.1124 8.609 11.0621C8.7319 11.0119 8.86358 10.9866 8.99636 10.9877C9.12914 10.9889 9.26036 11.0164 9.38236 11.0689Z",fill:"#007DBE"}),Object(o.jsx)("path",{d:"M9.382 11.069C9.504 11.1214 9.61435 11.1976 9.70659 11.2931L10.9996 12.5861L14.2926 9.29308C14.3848 9.19757 14.4952 9.12139 14.6172 9.06898C14.7392 9.01657 14.8704 8.98898 15.0032 8.98783C15.136 8.98668 15.2677 9.01198 15.3905 9.06226C15.5134 9.11254 15.6251 9.18679 15.719 9.28069C15.8129 9.37458 15.8871 9.48623 15.9374 9.60913C15.9877 9.73202 16.013 9.8637 16.0118 9.99648C16.0107 10.1293 15.9831 10.2605 15.9307 10.3825C15.8783 10.5045 15.8021 10.6148 15.7066 10.7071L11.7066 14.7071C11.5191 14.8946 11.2648 14.9999 10.9996 14.9999C10.7344 14.9999 10.4801 14.8946 10.2926 14.7071L8.29259 12.7071C8.19708 12.6148 8.1209 12.5045 8.06849 12.3825C8.01608 12.2605 7.9885 12.1293 7.98734 11.9965C7.98619 11.8637 8.01149 11.732 8.06177 11.6091C8.11205 11.4862 8.18631 11.3746 8.2802 11.2807C8.37409 11.1868 8.48574 11.1125 8.60864 11.0623C8.73154 11.012 8.86321 10.9867 8.99599 10.9878C9.12877 10.989 9.25999 11.0166 9.382 11.069Z",fill:"white"})]}):Object(o.jsxs)("button",{className:"btn btn-choose-payment",children:[Object(o.jsx)("span",{className:"txt-btn",children:"Pilih"}),Object(o.jsx)("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(o.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.292894 9.70711C-0.0976307 9.31658 -0.0976307 8.68342 0.292894 8.29289L3.58579 5L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683418 0.292893 0.292894C0.683417 -0.0976312 1.31658 -0.0976312 1.70711 0.292894L5.70711 4.29289C6.09763 4.68342 6.09763 5.31658 5.70711 5.70711L1.70711 9.70711C1.31658 10.0976 0.683418 10.0976 0.292894 9.70711Z",fill:"white"})})]})})]},e.id)}))})}))}),n.map((function(e){return Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)(vt,{className:"payment-method",children:[Object(o.jsxs)("div",{className:"bank-group-title",children:[Object(o.jsx)("h6",{children:e.group}),Object(o.jsx)("p",{className:"txt-bank-desc",children:e.desc})]}),Object(o.jsx)(Ot,{children:e.banks.map((function(e){return Object(o.jsxs)(yt,{onClick:function(){return m(e.id)},children:[Object(o.jsxs)(Ct,{children:[Object(o.jsx)(wt,{src:e.icon,_css15:[Object(f.b)(["max-width:42px;max-height:42px;"])]}),Object(o.jsx)("span",{children:e.bank_info})]}),Object(o.jsx)("div",{children:d===e.id?Object(o.jsxs)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12ZM9.38236 11.0689C9.50437 11.1213 9.61471 11.1974 9.70696 11.293L11 12.586L14.293 9.29296C14.3852 9.19745 14.4956 9.12127 14.6176 9.06886C14.7396 9.01645 14.8708 8.98886 15.0036 8.98771C15.1363 8.98655 15.268 9.01186 15.3909 9.06214C15.5138 9.11242 15.6255 9.18667 15.7194 9.28056C15.8132 9.37446 15.8875 9.48611 15.9378 9.60901C15.9881 9.7319 16.0134 9.86358 16.0122 9.99636C16.0111 10.1291 15.9835 10.2604 15.9311 10.3824C15.8787 10.5044 15.8025 10.6147 15.707 10.707L11.707 14.707C11.5194 14.8944 11.2651 14.9997 11 14.9997C10.7348 14.9997 10.4805 14.8944 10.293 14.707L8.29296 12.707C8.19745 12.6147 8.12127 12.5044 8.06886 12.3824C8.01645 12.2604 7.98886 12.1291 7.98771 11.9964C7.98655 11.8636 8.01186 11.7319 8.06214 11.609C8.11242 11.4861 8.18667 11.3745 8.28056 11.2806C8.37446 11.1867 8.48611 11.1124 8.609 11.0621C8.7319 11.0119 8.86358 10.9866 8.99636 10.9877C9.12914 10.9889 9.26036 11.0164 9.38236 11.0689Z",fill:"#007DBE"}
1),Object(o.jsx)("path",{d:"M9.382 11.069C9.504 11.1214 9.61435 11.1976 9.70659 11.2931L10.9996 12.5861L14.2926 9.29308C14.3848 9.19757 14.4952 9.12139 14.6172 9.06898C14.7392 9.01657 14.8704 8.98898 15.0032 8.98783C15.136 8.98668 15.2677 9.01198 15.3905 9.06226C15.5134 9.11254 15.6251 9.18679 15.719 9.28069C15.8129 9.37458 15.8871 9.48623 15.9374 9.60913C15.9877 9.73202 16.013 9.8637 16.0118 9.99648C16.0107 10.1293 15.9831 10.2605 15.9307 10.3825C15.8783 10.5045 15.8021 10.6148 15.7066 10.7071L11.7066 14.7071C11.5191 14.8946 11.2648 14.9999 10.9996 14.9999C10.7344 14.9999 10.4801 14.8946 10.2926 14.7071L8.29259 12.7071C8.19708 12.6148 8.1209 12.5045 8.06849 12.3825C8.01608 12.2605 7.9885 12.1293 7.98734 11.9965C7.98619 11.8637 8.01149 11.732 8.06177 11.6091C8.11205 11.4862 8.18631 11.3746 8.2802 11.2807C8.37409 11.1868 8.48574 11.1125 8.60864 11.0623C8.73154 11.012 8.86321 10.9867 8.99599 10.9878C9.12877 10.989 9.25999 11.0166 9.382 11.069Z",fill:"white"})]}):Object(o.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9947 10.9951C15.1821 11.1826 15.2875 11.4369 15.2875 11.7021C15.2875 11.9672 15.1821 12.2215 14.9947 12.4091L10.4017 17.0021C10.2154 17.1846 9.96458 17.2863 9.70375 17.285C9.44292 17.2837 9.19315 17.1795 9.00871 16.995C8.82428 16.8106 8.72008 16.5608 8.71876 16.3C8.71745 16.0392 8.81911 15.7884 9.00168 15.6021L12.9017 11.7021L9.00168 7.80207C8.81911 7.61578 8.71745 7.36497 8.71876 7.10414C8.72008 6.84331 8.82428 6.59354 9.00871 6.4091C9.19315 6.22467 9.44292 6.12047 9.70375 6.11915C9.96458 6.11784 10.2154 6.21951 10.4017 6.40207L14.9947 10.9951Z",fill:"#31353B",fillOpacity:"0.54"})})})]},e.id)}))})]}),Object(o.jsx)("div",{className:"space-content"})]})}))]})},_t=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv39",componentId:"sc-1drv2og-78"})(["",""],(function(e){return e._css16})),St=function(e){var t=e.nominal,n=e.notes,i=e.selected,r=Object(c.a)(e,["nominal","notes","selected"]);return Object(o.jsxs)(_t,K(K({},r),{},{_css16:[{borderRadius:"0.5rem",borderWidth:"1px",borderColor:"rgba(49, 53, 59, 0.12)",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",cursor:"pointer",fontWeight:"600",fontSize:"1rem"},i&&{"--border-opacity":"1",borderColor:"rgba(20, 194, 211, var(--border-opacity))","--bg-opacity":"1",backgroundColor:"rgba(232, 249, 251, var(--bg-opacity))",fontWeight:"600",fontSize:"1rem"},Object(f.b)(["font-size:16px;"])],children:[t,Object(o.jsx)("div",{children:n})]}))},It=function(){return Object(o.jsxs)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(o.jsx)("path",{d:"M13 10.5C13 11.3284 12.3284 12 11.5 12C10.6716 12 10 11.3284 10 10.5C10 9.67157 10.6716 9 11.5 9C12.3284 9 13 9.67157 13 10.5Z",fill:"#14C2D3"}),Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 6C7 3.79086 8.79086 2 11 2H19C21.2091 2 23 3.79086 23 6V11C23 13.2091 21.2091 15 19 15H11C8.79086 15 7 13.2091 7 11V6ZM11 4C9.89543 4 9 4.89543 9 6H21C21 4.89543 20.1046 4 19 4H11ZM21 8H9V11C9 12.1046 9.89543 13 11 13H19C20.1046 13 21 12.1046 21 11V8Z",fill:"#14C2D3"}),Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 11C3.89543 11 3 11.8954 3 13H5C5.55228 13 6 13.4477 6 14C6 14.5523 5.55228 15 5 15H3V18C3 19.1046 3.89543 20 5 20H13C14.1046 20 15 19.1046 15 18H17C17 20.2091 15.2091 22 13 22H5C2.79086 22 1 20.2091 1 18V13C1 10.7909 2.79086 9 5 9V11Z",fill:"#14C2D3"}),Object(o.jsx)("path",{d:"M7.90039 19C8.72882 19 9.40039 18.3284 9.40039 17.5C9.40039 16.6716 8.72882 16 7.90039 16C7.07196 16 6.40039 16.6716 6.40039 17.5C6.40039 18.3284 7.07196 19 7.90039 19Z",fill:"#14C2D3"}),Object(o.jsx)("path",{d:"M5.8 17.5C5.8 17.011 6.0376 16.5808 6.4 16.3072C6.14189 16.1087 5.8256 16.0008 5.5 16C5.10218 16 4.72064 16.158 4.43934 16.4393C4.15804 16.7206 4 17.1022 4 17.5C4 17.8978 4.15804 18.2794 4.43934 18.5607C4.72064 18.842 5.10218 19 5.5 19C5.8256 18.9992 6.14189 18.8913 6.4 18.6928C6.2142 18.5543 6.06323 18.3743 5.95908 18.1673C5.85493 17.9
1602 5.80047 17.7318 5.8 17.5V17.5Z",fill:"#14C2D3"})]})},kt=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv40",componentId:"sc-1drv2og-79"})(["",""],(function(e){return e._css17})),Nt=Object(f.c)("svg").withConfig({displayName:"donation-form-view___StyledSvg2",componentId:"sc-1drv2og-80"})({marginRight:"0.25rem"}),Lt=function(e){return e.isShow?Object(o.jsxs)(kt,{_css17:[{"--text-opacity":"1",color:"rgba(247, 104, 91, var(--text-opacity))",marginBottom:"0.75rem",display:"flex",alignItems:"center",fontWeight:"400"},Object(f.b)(["margin-top:2px;font-size:10px;"])],children:[Object(o.jsxs)(Nt,{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14C4.6862 14 2 11.3138 2 8C2 4.6862 4.6862 2 8 2C11.3138 2 14 4.6862 14 8C14 11.3138 11.3138 14 8 14ZM8.66667 8.66667C8.66667 9.03486 8.36819 9.33333 8 9.33333C7.63181 9.33333 7.33333 9.03486 7.33333 8.66667L7.33333 5.33333C7.33333 4.96514 7.63181 4.66667 8 4.66667C8.36819 4.66667 8.66667 4.96514 8.66667 5.33333L8.66667 8.66667ZM8.66667 10.6667C8.66667 11.0349 8.36819 11.3333 8 11.3333C7.63181 11.3333 7.33333 11.0349 7.33333 10.6667C7.33333 10.2985 7.63181 10 8 10C8.36819 10 8.66667 10.2985 8.66667 10.6667Z",fill:"#F7685B"}),Object(o.jsx)("path",{d:"M8.66634 8.66663C8.66634 9.03482 8.36786 9.33329 7.99967 9.33329C7.63149 9.33329 7.33301 9.03482 7.33301 8.66663V5.33329C7.33301 4.9651 7.63149 4.66663 7.99968 4.66663C8.36786 4.66663 8.66634 4.9651 8.66634 5.33329L8.66634 8.66663Z",fill:"white"}),Object(o.jsx)("path",{d:"M8.66634 10.6666C8.66634 11.0348 8.36786 11.3333 7.99967 11.3333C7.63148 11.3333 7.33301 11.0348 7.33301 10.6666C7.33301 10.2984 7.63149 9.99996 7.99967 9.99996C8.36786 9.99996 8.66634 10.2984 8.66634 10.6666Z",fill:"white"}),Object(o.jsx)("path",{d:"M8.66634 8.66663C8.66634 9.03482 8.36786 9.33329 7.99967 9.33329C7.63149 9.33329 7.33301 9.03482 7.33301 8.66663V5.33329C7.33301 4.9651 7.63149 4.66663 7.99968 4.66663C8.36786 4.66663 8.66634 4.9651 8.66634 5.33329L8.66634 8.66663Z",fill:"white"}),Object(o.jsx)("path",{d:"M8.66634 10.6666C8.66634 11.0348 8.36786 11.3333 7.99967 11.3333C7.63148 11.3333 7.33301 11.0348 7.33301 10.6666C7.33301 10.2984 7.63149 9.99996 7.99967 9.99996C8.36786 9.99996 8.66634 10.2984 8.66634 10.6666Z",fill:"white"}),Object(o.jsx)("path",{d:"M8.66634 8.66663C8.66634 9.03482 8.36786 9.33329 7.99967 9.33329C7.63149 9.33329 7.33301 9.03482 7.33301 8.66663V5.33329C7.33301 4.9651 7.63149 4.66663 7.99968 4.66663C8.36786 4.66663 8.66634 4.9651 8.66634 5.33329L8.66634 8.66663Z",fill:"white"}),Object(o.jsx)("path",{d:"M8.66634 10.6666C8.66634 11.0348 8.36786 11.3333 7.99967 11.3333C7.63148 11.3333 7.33301 11.0348 7.33301 10.6666C7.33301 10.2984 7.63149 9.99996 7.99967 9.99996C8.36786 9.99996 8.66634 10.2984 8.66634 10.6666Z",fill:"white"})]}),"Mohon diisi terlebih dahulu"]}):null},Dt=[{title:"Apakah informasi saya aman",desc:"Kami menjaga kerahasiaan dan keamanan informasi Anda pada database kami dan tidak memberikannya pada pihak mana pun."},{title:"Bisakah saya mengembalikan donasi saya",desc:"Halo, bila Anda melakukan kesalahan nominal pembayaran tidak perlu khawatir. Silakan hubungi nomor Customer Relation kami dengan menyertakan bukti pembayaran Anda."}],Rt=Object(f.c)("div").withConfig({displayName:"donation-form-view___StyledDiv41",componentId:"sc-1drv2og-81"})({position:"relative",display:"inline-block",width:"3.5rem",marginRight:"0.5rem",verticalAlign:"middle",userSelect:"none",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",transitionDuration:"200ms",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)"}),Bt=Object(f.c)("input").withConfig({displayName:"donation-form-view___StyledInput",componentId:"sc-1drv2og-82"})(["",""],(function(e){return e._css18})),Et=Object(f.c)("label").withConfig({displayName:"donation-form-view___StyledLabel2",componentId:"sc-1drv2og-83"})(["",""],(function(e){return e._css19})),Pt=Object(f.c)((function(e){var t=e.checked,n=e.name,i=Object(c.a)(e,["checked","name"]);return Object(o.jsxs)(Rt,K(K({},i),{},{children:[Object(o.jsx)(Bt,{type:"checkbox",name:n,id:n,_css18:[t&&{right:"0","--border-opacity":"1",borderColor:"rgba(20, 194, 211, var(--border-opacity))"},{position:"absolute",display:"block",width:"2rem",height:"2rem",borderRadius:"9999px","--bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--bg-opacity))",borderWidth:"2px",appearance:"none",cursor:"pointer",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"}]}),Object(o.jsx)(Et,{htmlFor:n,_css19:[t&&Object(f.b)(["background:",";"],q.a.BTN_PRIMARY),{display:"block",overflow:"hidden",height:"2rem",borderRadius:"9999px","--bg-opacity":"1",backgroundColor:"rgba(226, 232, 240, var(--bg-opacity))",cursor:"pointer"}]})]}))})).withConfig({displayName:"donation-form-view___StyledSwitch",componentId:"sc-1drv2og-84"})({float:"right",marginBottom:"0.75rem"}),At=Object(f.c)(P.a.Button).withConfig({displayName:"donation-form-view___StyledDisclosureButton",componentId:"sc-1drv2og-85"})(["",""],(function(e){return e._css20})),Tt=Object(f.c)(A.a).withConfig({displayName:"donation-form-view___StyledChevronDownIcon",componentId:"sc-1drv2og-86"})(["",""],(function(e){return e._css21})),Mt=Object(f.c)(P.a.Panel).withConfig({displayName:"donation-form-view___StyledDisclosurePanel",componentId:"sc-1drv2og-87"})({paddingLeft:"1.25rem",paddingRight:"1.25rem",paddingBottom:"0.5rem",color:"rgba(49, 53, 59, 0.75)",backgroundColor:"rgba(49, 53, 59, 0.04)",borderBottomLeftRadius:"0.5rem",borderBottomRightRadius:"0.5rem",fontWeight:"400",fontSize:"0.8571rem"}),Ft=function(){return Dt.map((function(e,t){return Object(o.jsx)(P.a,{children:function(t){var n=t.open;return Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)(At,{_css20:[{display:"flex",width:"100%",paddingLeft:"1.25rem",paddingRight:"1.25rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"left",color:"rgba(49, 53, 59, 0.75)",backgroundColor:"rgba(49, 53, 59, 0.04)",fontSize:"0.8571rem"},n?{borderBottomLeftRadius:"0",borderBottomRightRadius:"0",borderTopLeftRadius:"0.5rem",borderTopRightRadius:"0.5rem"}:{borderRadius:"0.5rem"}],children:[Object(o.jsx)(Tt,{_css21:[{width:"1.25rem",height:"1.25rem",color:"rgba(49, 53, 59, 0.75)",marginRight:"0.5rem"},n&&{"--transform-translate-x":"0","--transform-translate-y":"0","--transform-rotate":"180deg","--transform-skew-x":"0","--transform-skew-y":"0","--transform-scale-x":"1","--transform-scale-y":"1",transform:"translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))"}]}),Object(o.jsx)("span",{children:e.title})]}),Object(o.jsx)(Mt,{children:e.desc})]})}},t)}))},Zt=function(e){var t,n=e.query,i=e.donateSuggestion,a=e.selectedNominal,c=e.setSelectedNominal,s=e.onSubmit,u=e.isSubmitting,b=e.error,h=e.customError,j=e.campaignTarget,v=e.campaignCategory,O=e.campaign,y=Object(l.useRef)(null),C=Object(l.useState)(null),w=C[0],x=C[1],_=Object(l.useState)(!1),S=_[0],k=_[1],N=Object(l.useState)(0),L=N[0],P=N[1],A=Object(l.useState)(!1),F=A[0],z=A[1],q=Object(l.useState)(!1),Q=q[0],Y=q[1],ct=Object(R.c)(),dt=ct.register,st=ct.handleSubmit,lt=ct.unregister,mt=ct.setError,pt=ct.setValue,ft=ct.formState.errors,gt=ct.clearErrors,bt=Object(B.b)(),ht=bt.user,jt=Object(l.useState)(1e4),vt=jt[0],Ot=jt[1],yt=Object(l.useState)(1e3),Ct=yt[0],wt=(yt[1],Object(l.useState)(25e3)),_t=wt[0],kt=(wt[1],Object(l.useState)({amountDonation:!1,payment:!1})),Nt=kt[0],Dt=kt[1],Rt=Object(l.useState)(""),Bt=Rt[0],Et=Rt[1],At=Object(l.useState)(""),Tt=At[0],Mt=At[1],Zt=(Object(V.useRouter)().query.slug,Object(l.useRef)(p.a.CancelToken.source())),Vt=(null===ht||void 0===ht?void 0:ht.email)||(null===ht||void 0===ht?void 0:ht.phoneNumber),Ht=Object(l.useState)([]),zt=Ht[0],Wt=Ht[1],qt=Object(l.useState)([]),Ut=qt[0],Qt=qt[1],Jt=Object(l.useState)(!1),Yt=Jt[0],Kt=Jt[1],Gt=Object(l.useState)(!1),Xt=Gt[0],$t=Gt[1],en=Object(l.useRef)(null),tn=Object(H.a)();Object(l.useEffect)((function(){null!==h&&void 0!==h&&h.identifier&&mt("idetifier",{type:"manual",message:h.identifier,shouldFocus:!0}),null!==h&&void 0!==h&&h.amountDonation&&Dt(K(K({},Nt),{},{amountDonation:h.amountDonation}))}),[h]),Object(l.useEffect)((function(){b&&Object(E.b)(b,{closeButton:!1,position:"bottom-center",autoClose:1e3})}),[b]),Object(l.useEffect)((function(){ht.defaultBankId&&P(ht.defaultBankId)}),[ht]),Object(l.useEffect)((function(){var e;null!==i&&void 0!==i&&null!==(e=i.data)&&void 0!==e&&e.minimumDonation&&Ot(+i.data.minimumDonation)}),[i]),Object(l.useEffect)((function(){null!=a?function(){var e=Object(d.a)(r.a.mark((function e(){var t,n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.a.bankDefault.listPaymentMethod(Zt.current.token,a);case 3:return t=e.sent,Wt(null===t||void 0===t?void 0:t.data),e.next=7,m.a.bankQRIS.listPaymentMethod(Zt.current.token);case 7:n=e.sent,Qt(null===n||void 0===n?void 0:n.data),e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),e.t0;case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}()():function(){var e=Object(d.a)(r.a.mark((function e(){var t;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.a.bankQRIS.listPaymentMethod(Zt.current.token);case 3:t=e.sent,Qt(null===t||void 0===t?void 0:t.data),e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(0),e.t0;case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}()()}
1),[a]);var nn=function(){var e=!1;if(L){var t,o=!1;n.data&&Object.keys(n.data).forEach((function(e){var t=n.data[e].banks;Object.keys(t).forEach((function(e){var n=t[e];n.id===parseInt(L)&&(o=n)}))})),(null===(t=o)||void 0===t?void 0:t.type)===D.o.OVO?e=!0:lt("ovo_phone")}return e};function on(e){return rn.apply(this,arguments)}function rn(){return(rn=Object(d.a)(r.a.mark((function e(t){var n,o,i;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new TextEncoder("utf-8").encode(t),e.next=3,crypto.subtle.digest("SHA-256",n);case 3:return o=e.sent,i=new Uint8Array(o),e.abrupt("return",Array.from(i).map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function an(){return cn.apply(this,arguments)}function cn(){return(cn=Object(d.a)(r.a.mark((function e(){var t;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://api.ipgeolocation.io/ipgeo?apiKey=ea5ca9ece3a244488202e807bf4e7841");case 2:if((t=e.sent).ok){e.next=5;break}throw new Error("Failed to fetch IP data");case 5:return e.abrupt("return",t.json());case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var dn=function(){var e=Object(d.a)(r.a.mark((function e(t){var n,o,i,c,d,l,m,u,p,f,g,b;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(parseInt(a)<parseInt(vt))){e.next=4;break}return y.current.scrollIntoView(),Y(!0),e.abrupt("return");case 4:return n="2807837926165420",o="EAADfHC0z2xYBO5TLHvFS1X9Sx4O7387OPzmGZCbrNxrMk071CZA2A0qQaiDZAXPnZBtTGOsJDJ7HjVpQoLvFQgeENZBQ5FBTHyqTLNRc0DzshWm498TIx5OthaQLONTPFzBrLcqdnV9j74C9HOFYM0G2vx9nuIE2ZAkSMjhKOsfIVYDjYvabcfjvplLbBGofvQ9wZDZD",e.prev=6,e.next=9,an();case 9:return i=e.sent,c=i.ip,e.next=13,on(t.identifier);case 13:return d=e.sent,e.next=16,on(t.identifier);case 16:return l=e.sent,e.next=19,on(t.donor_name);case 19:return m=e.sent,e.next=22,on(t.donor_name);case 22:return u=e.sent,e.next=25,on(i.city.toLowerCase());case 25:return p=e.sent,e.next=28,on(i.country_code2.toLowerCase());case 28:return f=e.sent,e.next=31,on(i.country_name.toLowerCase());case 31:return g=e.sent,e.next=34,on(i.zipcode);case 34:return b=e.sent,e.next=37,on(c);case 37:return e.sent,e.next=40,on(navigator.userAgent);case 40:return e.sent,e.next=43,fetch("https://graph.facebook.com/".concat(n,"/events?access_token=").concat(o),{method:"POST",headers:{"content-Type":"application/json"},body:JSON.stringify({data:[{event_name:"Add to cart",event_time:Math.floor((new Date).getTime()/1e3),user_data:{em:[d],ph:[l],fn:[m],ln:[u],ct:[p],st:[g],zp:[b],country:[f],client_ip_address:c,client_user_agent:navigator.userAgent},custom_data:{currency:"IDR",value:a,content_name:null===O||void 0===O?void 0:O.campaign_title,content_ids:[null===O||void 0===O?void 0:O.campaign_slug],contents:[{id:null===O||void 0===O?void 0:O.campaign_slug,quantity:1,delivery_category:"in_store"}]},event_source_url:window.location.href,action_source:"website"}]})});case 43:if(e.sent.ok){e.next=46;break}throw new Error("Failed to send event to Facebook");case 46:console.log("Event sent successfully"),e.next=52;break;case 49:e.prev=49,e.t0=e.catch(6),console.error("Error sending event:",e.t0);case 52:s(K(K({},t),{},{selectedNominal:a,anonymous:S,bank_id:L,longitude:window.sessionStorage.getItem("longitude"),latitude:window.sessionStorage.getItem("latitude")})),sessionStorage.setItem("dataCheckout",JSON.stringify(K(K({},t),{},{selectedNominal:a,anonymous:S,bank_id:L,longitude:window.sessionStorage.getItem("longitude"),latitude:window.sessionStorage.getItem("latitude"),campaign:O}))),ln();case 55:case"end":return e.stop()}}),e,null,[[6,49]])})));return function(t){return e.apply(this,arguments)}}(),sn=function(e){var t,n=e.target.value;if(n.includes("@")||n.includes(".")){Object(T.b)(n)?(Mt(n),gt("idetifier")):mt("idetifier",{type:"manual",message:"Email tidak valid",shouldFocus:!0})}else{var o=(t=n)?t.toLowerCase().replace(/[^\w]+/g,""):"";pt("idetifier",o),Object(T.c)(o)&&n&&"12345678"!==n?gt("idetifier"):""===n?(Mt(n),gt("idetifier")):mt("idetifier",{type:"manual",message:"Nomor whatsapp tidak valid",shouldFocus:!0})}},ln=function(){c(null),x(null),pt("donor_name",""),pt("idetifier",""),Mt(""),gt("donor_name"),gt("idetifier")},mn=function(e){en.current&&!en.current.contains(e.target)&&(alert("Klik diluar"),$t(!1))};return Object(l.useEffect)((function(){return document.addEventListener("mousedown",mn),function(){document.removeEventListener("mousedown",mn)}}),[]),Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)(W.a,{children:Object(o.jsx)("script",{"data-rh":"true",children:'window.dataLayer = window.dataLayer || [];\n            window.dataLayer.push({\n              "event":"donationCheckout",\n              "purchase": '.concat(a,',\n              "uuid": "').concat(tn,'",\n            })\n          ')})}),!a&&F&&Object(o.jsx)(xt,{methodQris:Ut||[],methods:n.data||[],defaultMethod:L,selectMethod:function(e){return P(e)},handleClose:function(){return z(!1)}}),a&&F&&Object(o.jsx)(xt,{methodQris:Ut||[],methods:zt||[],defaultMethod:L,selectMethod:function(e){return P(e)},handleClose:function(){return z(!1)}}),"hewan-kurban"!=v&&Object(o.jsxs)($,{children:[Object(o.jsx)(ee,{className:"txt-title",children:"Pilih Nominal Donasi"}),Object(o.jsx)(te,{id:w,children:i.data?Object(o.jsx)(o.Fragment,{children:i.data.donationSuggestion.map((function(e){return Object(o.jsx)(St,{nominal:"Rp ".concat(e.amount.toLocaleStr
1ing("id-ID")),notes:e.notes,id:e.id,selected:parseInt(a)===parseInt(e.amount),onClick:function(){c(e.amount),x(e.id)}},e.amount)}))}):Object(o.jsx)(ne,{children:"Tidak ada data nominal"})})]}),Object(o.jsxs)(oe,{onSubmit:st(dn),children:[Object(o.jsx)(ie,{children:Object(o.jsxs)("div",{className:"border-nominal",children:["hewan-kurban"==v?Object(o.jsx)(re,{ref:y,children:"Nominal"}):Object(o.jsx)(ae,{ref:y,children:"Nominal Lainnnya"}),Object(o.jsxs)(ce,{children:[Object(o.jsxs)(de,{children:[Object(o.jsx)(se,{className:"form-nominal",isError:Nt.amountDonation,ref:en,onValueChange:function(e){return function(e){console.log(e,"valuee"),c(e)}(e.value)},onFocus:function(){console.log("input focus"),$t(!1)},onBlur:function(){console.log("input blur"),$t(!0)},value:"hewan-kurban"==v?j:a,placeholder:"Masukkan Nominal",disabled:"hewan-kurban"==v,_css3:[{textAlign:"right",color:"rgba(49, 53, 59, 0.96)",fontSize:"1.429rem",fontWeight:"600"}]}),Object(o.jsx)(le,{_css4:[{position:"absolute",left:"0",top:"0",bottom:"0",display:"flex",alignItems:"center",paddingLeft:"1.25rem",fontWeight:"400",color:"rgba(49, 53, 59, 0.54)"},Object(f.b)(["height:46px;color:var(--Neutral-N700,#374151);font-family:Poppins;font-size:18px;font-style:normal;font-weight:600;line-height:28px;"])],children:"Rp"})]}),Object(o.jsx)(me,{_css5:[{"--text-opacity":"1",color:"rgba(247, 104, 91, var(--text-opacity))",display:"flex",alignItems:"center",fontWeight:"400"},Object(f.b)(["margin-top:2px;font-size:10px;"])],children:Object(o.jsx)(Lt,{isShow:Nt.amountDonation})})]}),"qudwah"===M.a.WHITELABEL||"energikebaikan"===M.a.WHITELABEL?Object(o.jsx)("span",{children:(Q||a>0&&a<Ct)&&Object(o.jsxs)(g.a,{type:"warningDefault",children:[Object(o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:Object(o.jsx)("path",{d:"M8 1.3335C4.318 1.3335 1.3335 4.3185 1.3335 8C1.3335 11.6815 4.3185 14.6665 8 14.6665C11.682 14.6665 14.6665 11.6815 14.6665 8C14.6665 4.318 11.6815 1.3335 8 1.3335ZM8 11.5065C7.632 11.5065 7.3335 11.208 7.3335 10.84V7.7335C7.3335 7.3655 7.632 7.067 8 7.067C8.368 7.067 8.6665 7.3655 8.6665 7.7335V10.84C8.6665 11.208 8.368 11.5065 8 11.5065ZM8 6.1735C7.54 6.1735 7.1665 5.8005 7.1665 5.34C7.1665 4.8795 7.5395 4.5065 8 4.5065C8.458 4.5065 8.8295 4.876 8.8335 5.333C8.83 5.793 8.4595 6.166 8.001 6.1735H8Z",fill:"#F59E0B"})}),Object(o.jsxs)(ue,{children:["Minimal jumlah donasi sebesar Rp ",Ct.toLocaleString("id-ID")]})]})}):"adararelief"===M.a.WHITELABEL?Object(o.jsx)("span",{children:Q||a<vt&&Object(o.jsxs)(g.a,{type:"warningDefault",children:[Object(o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:Object(o.jsx)("path",{d:"M8 1.3335C4.318 1.3335 1.3335 4.3185 1.3335 8C1.3335 11.6815 4.3185 14.6665 8 14.6665C11.682 14.6665 14.6665 11.6815 14.6665 8C14.6665 4.318 11.6815 1.3335 8 1.3335ZM8 11.5065C7.632 11.5065 7.3335 11.208 7.3335 10.84V7.7335C7.3335 7.3655 7.632 7.067 8 7.067C8.368 7.067 8.6665 7.3655 8.6665 7.7335V10.84C8.6665 11.208 8.368 11.5065 8 11.5065ZM8 6.1735C7.54 6.1735 7.1665 5.8005 7.1665 5.34C7.1665 4.8795 7.5395 4.5065 8 4.5065C8.458 4.5065 8.8295 4.876 8.8335 5.333C8.83 5.793 8.4595 6.166 8.001 6.1735H8Z",fill:"#F59E0B"})}),Object(o.jsxs)(pe,{children:["Minimal jumlah donasi sebesar Rp ",_t.toLocaleString("id-ID")]})]})}):Object(o.jsx)("span",{children:Xt&&Object(o.jsx)(o.Fragment,{children:(Q||a>0&&a<vt)&&Object(o.jsxs)(g.a,{type:"warningDefault",children:[Object(o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:Object(o.jsx)("path",{d:"M8 1.3335C4.318 1.3335 1.3335 4.3185 1.3335 8C1.3335 11.6815 4.3185 14.6665 8 14.6665C11.682 14.6665 14.6665 11.6815 14.6665 8C14.6665 4.318 11.6815 1.3335 8 1.3335ZM8 11.5065C7.632 11.5065 7.3335 11.208 7.3335 10.84V7.7335C7.3335 7.3655 7.632 7.067 8 7.067C8.368 7.067 8.6665 7.3655 8.6665 7.7335V10.84C8.6665 11.208 8.368 11.5065 8 11.5065ZM8 6.1735C7.54 6.1735 7.1665 5.8005 7.1665 5.34C7.1665 4.8795 7.5395 4.5065 8 4.5065C8.458 4.5065 8.8295 4.876 8.8335 5.333C8.83 5.793 8.4595 6.166 8.001 6.1735H8Z",fill:"#F59E0B"})}),Object(o.jsxs)(fe,{children:["Minimal jumlah donasi sebesar Rp ",vt.toLocaleStr
1ing("id-ID")]})]})})})]})}),Object(o.jsxs)(ge,{children:[!bt.isLogin()&&Object(o.jsxs)(be,{children:["Silakan",Object(o.jsx)(Z.a,{href:"/auth/login",passHref:!0,children:Object(o.jsx)(he,{variant:D.b.LINK,children:"Masuk"})}),"atau lengkapi data berikut"]}),Object(o.jsxs)("div",{children:[!bt.isLogin()&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)(je,{children:Object(o.jsx)(I.f,{placeholder:"Nama Lengkap",errors:ft,name:"donor_name",defaultValue:(null===ht||void 0===ht?void 0:ht.fullName)||"",register:dt({required:G})})})}),bt.isLogin()&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)(ve,{children:[Object(o.jsxs)(Oe,{children:[Object(o.jsx)(ye,{placeholder:"Nama Lengkap",errors:ft,name:"donor_name",defaultValue:(null===ht||void 0===ht?void 0:ht.fullName)||"",register:dt({required:G})}),Object(o.jsx)(Ce,{placeholder:X,defaultValue:Vt,name:"idetifier",register:dt({required:G}),errors:ft,onChange:sn,inputMode:void 0,pattern:void 0})]}),Object(o.jsxs)(we,{children:[Object(o.jsx)(U.a,{src:null!==(t=ht.profilePicture)&&void 0!==t?t:J.a}
1),Object(o.jsx)(xe,{children:Object(o.jsx)(_e,{children:Object(o.jsxs)(Se,{children:[Object(o.jsx)(Ie,{className:"txt-donatur-name",children:ht.fullName}),Object(o.jsxs)(ke,{className:"txt-count-donatur",children:[null===ht.phoneNumber?"":ht.phoneNumber+" - "," ",ht.email]})]})})})]})]}),Object(o.jsx)(Ne,{children:Object(o.jsx)(Le,{onClick:bt.logout,variant:D.b.LINK,children:"Bukan Anda?"})})]}),Object(o.jsxs)(De,{children:[Object(o.jsx)(Re,{children:"Sembunyikan nama saya (Anonim)"}),Object(o.jsx)(Pt,{checked:S,onClick:function(e){return k(e.target.checked)}})]}),!bt.isLogin()&&Object(o.jsx)(I.f,{placeholder:X,defaultValue:Vt,name:"idetifier",register:dt({required:G}),errors:ft,onChange:sn,inputMode:void 0,pattern:void 0}),Object(o.jsxs)(Be,{children:[Object(o.jsx)(Ee,{placeholder:"Berikan Doa terbaik untuk mereka (Opsional)",rows:4,name:"pray",register:dt({maxLength:{value:120,message:"Doa maksimal 120 karakter"}}),onChange:function(e){return Et(e.target.value)},errors:ft,maxlength:"120"}),Object(o.jsxs)(Pe,{style:{fontSize:10,top:80,right:1},children:[Bt.length,"/120"]})]})]})]}),Object(o.jsxs)(Ae,{children:[Object(o.jsx)(Te,{className:"txt-title",children:"Metode Pembayaran"}),"qudwah"===M.a.WHITELABEL||"energikebaikan"===M.a.WHITELABEL?Object(o.jsx)("span",{children:!0===Yt?Object(o.jsx)(o.Fragment,{children:a<Ct?Object(o.jsxs)("span",{children:[Object(o.jsxs)(Me,{_css6:[{display:"flex",justifyContent:"space-between",alignItems:"center",borderWidth:"1px",borderColor:"rgba(49, 53, 59, 0.12)",paddingLeft:"1rem",paddingRight:"0.5rem",borderRadius:"0.5rem",cursor:"pointer"},Nt&&{"--border-opacity":"1",borderColor:"rgba(247, 104, 91, var(--border-opacity))"},Object(f.b)(["height:42px;"])],children:[Object(o.jsxs)(Fe,{children:[Object(o.jsx)(It,{}),Object(o.jsx)(Ze,{children:"Pilih Pembayaran"})]}),Object(o.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9947 10.9951C15.1821 11.1826 15.2875 11.4369 15.2875 11.7021C15.2875 11.9672 15.1821 12.2215 14.9947 12.4091L10.4017 17.0021C10.2154 17.1846 9.96458 17.2863 9.70375 17.285C9.44292 17.2837 9.19315 17.1795 9.00871 16.995C8.82428 16.8106 8.72008 16.5608 8.71876 16.3C8.71745 16.0392 8.81911 15.7884 9.00168 15.6021L12.9017 11.7021L9.00168 7.80207C8.81911 7.61578 8.71745 7.36497 8.71876 7.10414C8.72008 6.84331 8.82428 6.59354 9.00871 6.4091C9.19315 6.22467 9.44292 6.12047 9.70375 6.11915C9.96458 6.11784 10.2154 6.21951 10.4017 6.40207L14.9947 10.9951Z",fill:"#31353B",fillOpacity:"0.96"})})]}),Object(o.jsx)(Ve,{_css7:[{"--text-opacity":"1",color:"rgba(247, 104, 91, var(--text-opacity))",display:"flex",alignItems:"center",fontWeight:"400"},Object(f.b)(["margin-top:2px;font-size:10px;"])],children:""===Tt?Object(o.jsx)(o.Fragment,{children:"Lengkapi dahulu nominal dan data diri"}):Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:Object(o.jsx)("path",{d:"M8 1.3335C4.318 1.3335 1.3335 4.3185 1.3335 8C1.3335 11.6815 4.3185 14.6665 8 14.6665C11.682 14.6665 14.6665 11.6815 14.6665 8C14.6665 4.318 11.6815 1.3335 8 1.3335ZM8 11.5065C7.632 11.5065 7.3335 11.208 7.3335 10.84V7.7335C7.3335 7.3655 7.632 7.067 8 7.067C8.368 7.067 8.6665 7.3655 8.6665 7.7335V10.84C8.6665 11.208 8.368 11.5065 8 11.5065ZM8 6.1735C7.54 6.1735 7.1665 5.8005 7.1665 5.34C7.1665 4.8795 7.5395 4.5065 8 4.5065C8.458 4.5065 8.8295 4.876 8.8335 5.333C8.83 5.793 8.4595 6.166 8.001 6.1735H8Z",fill:"#F59E0B"})}),Object(o.jsxs)(He,{children:["Minimal jumlah donasi sebesar Rp ",Ct.toLocaleString("id-ID")]})]})})]}):Object(o.jsxs)("span",{children:[!a&&Object(o.jsx)(ut,{isLoading:n.isLoading,methodQris:Ut||[],methods:n.data||[],selectedId:L,setPaymentMethodOpen:function(){return z(!0)},errorRequired:Nt.payment}),a&&Object(o.jsx)(ut,{isLoading:zt.isLoading,methodQris:Ut||[],methods:zt||[],selectedId:L,setPaymentMethodOpen:function(){return z(!0)},errorRequired:Nt.payment}),nn()&&Object(o.jsx)(ze,{placeholder:"Nomor OVO",required:!0,name:"ovo_phone",register:dt({required:G}),disableFormatting:!0})]})}):Object(o.jsx)(o.Fragment,{children:a<Ct?Object(o.jsx)("span",{children:Object(o.jsxs)(We,{onClick:function(){return Kt(!0)},_css8:[{display:"flex",justifyContent:"space-between",alignItems:"center",borderWidth:"1px",borderColor:"rgba(49, 53, 59, 0.12)",paddingLeft:"1rem",paddingRight:"0.5rem",borderRadius:"0.5rem",cursor:"pointer"},Nt&&{"--border-opacity":"1",borderColor:"rgba(247, 104, 91, var(--border-opacity))"},Object(f.b)(["height:42px;"])],children:[Object(o.jsxs)(qe,{children:[Object(o.jsx)(It,{}),Object(o.jsx)(Ue,{children:"Pilih Pembayaran"})]}),Object(o.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9947 10.9951C15.1821 11.1826 15.2875 11.4369 15.2875 11.7021C15.2875 11.9672 15.1821 12.2215 14.9947 12.4091L10.4017 17.0021C10.2154 17.1846 9.96458 17.2863 9.70375 17.285C9.44292 17.2837 9.19315 17.1795 9.00871 16.995C8.82428 16.8106 8.72008 16.5608 8.71876 16.3C8.71745 16.0392 8.81911 15.7884 9.00168 15.6021L12.9017 11.7021L9.00168 7.80207C8.81911 7.61578 8.71745 7.36497 8.71876 7.10414C8.72008 6.84331 8.82428 6.59354 9.00871 6.4091C9.19315 6.22467 9.44292 6.12047 9.70375 6.11915C9.96458 6.11784 10.2154 6.21951 10.4017 6.40207L14.9947 10.9951Z",fill:"#31353B",fillOpacity:"0.96"})})]})}):Object(o.jsxs)("span",{children:[!a&&Object(o.jsx)(ut,{isLoading:n.isLoading,methodQris:Ut||[],methods:n.data||[],selectedId:L,setPaymentMethodOpen:function(){return z(!0)},errorRequired:Nt.payment}),a&&Object(o.jsx)(ut,{isLoading:zt.isLoading,methodQris:Ut||[],methods:zt||[],selectedId:L,setPaymentMethodOpen:function(){return z(!0)},errorRequired:Nt.payment}),nn()&&Object(o.jsx)(Qe,{placeholder:"Nomor OVO",required:!0,name:"ovo_phone",register:dt({required:G}),disableFormatting:!0})]})})}):Object(o.jsx)("span",{children:!0===Yt?Object(o.jsx)(o.Fragment,{children:a<vt?Object(o.jsxs)("span",{children:[Object(o.jsxs)(Je,{_css9:[{display:"flex",justifyContent:"space-between",alignItems:"center",borderWidth:"1px",borderColor:"rgba(49, 53, 59, 0.12)",paddingLeft:"1rem",paddingRight:"0.5rem",borderRadius:"0.5rem",cursor:"pointer"},Nt&&{"--border-opacity":"1",borderColor:"rgba(247, 104, 91, var(--border-opacity))"},Object(f.b)(["height:42px;"])],children:[Object(o.jsxs)(Ye,{children:[Object(o.jsx)(It,{}),Object(o.jsx)(Ke,{children:"Pilih Pembayaran"})]}),Object(o.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9947 10.9951C15.1821 11.1826 15.2875 11.4369 15.2875 11.7021C15.2875 11.9672 15.1821 12.2215 14.9947 12.4091L10.4017 17.0021C10.2154 17.1846 9.96458 17.2863 9.70375 17.285C9.44292 17.2837 9.19315 17.1795 9.00871 16.995C8.82428 16.8106 8.72008 16.5608 8.71876 16.3C8.71745 16.0392 8.81911 15.7884 9.00168 15.6021L12.9017 11.7021L9.00168 7.80207C8.81911 7.61578 8.71745 7.36497 8.71876 7.10414C8.72008 6.84331 8.82428 6.59354 9.00871 6.4091C9.19315 6.22467 9.44292 6.12047 9.70375 6.11915C9.96458 6.11784 10.2154 6.21951 10.4017 6.40207L14.9947 10.9951Z",fill:"#31353B",fillOpacity:"0.96"})})]}),Object(o.jsx)(Ge,{_css10:[{"--text-opacity":"1",color:"rgba(247, 104, 91, var(--text-opacity))",display:"flex",alignItems:"center",fontWeight:"400"},Object(f.b)(["margin-top:2px;font-size:10px;"])],children:""===Tt?Object(o.jsx)(o.Fragment,{children:"Lengkapi dahulu nominal dan data diri"}):Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:Object(o.jsx)("path",{d:"M8 1.3335C4.318 1.3335 1.3335 4.3185 1.3335 8C1.3335 11.6815 4.3185 14.6665 8 14.6665C11.682 14.6665 14.6665 11.6815 14.6665 8C14.6665 4.318 11.6815 1.3335 8 1.3335ZM8 11.5065C7.632 11.5065 7.3335 11.208 7.3335 10.84V7.7335C7.3335 7.3655 7.632 7.067 8 7.067C8.368 7.067 8.6665 7.3655 8.6665 7.7335V10.84C8.6665 11.208 8.368 11.5065 8 11.5065ZM8 6.1735C7.54 6.1735 7.1665 5.8005 7.1665 5.34C7.1665 4.8795 7.5395 4.5065 8 4.5065C8.458 4.5065 8.8295 4.876 8.8335 5.333C8.83 5.793 8.4595 6.166 8.001 6.1735H8Z",fill:"#F59E0B"})}),Object(o.jsxs)(Xe,{children:["Minimal jumlah donasi sebesar Rp ",vt.toLocaleStr
1ing("id-ID")]})]})})]}):Object(o.jsxs)("span",{children:[!a&&Object(o.jsx)(ut,{isLoading:n.isLoading,methodQris:Ut||[],methods:n.data||[],selectedId:L,setPaymentMethodOpen:function(){return z(!0)},errorRequired:Nt.payment}),a&&Object(o.jsx)(ut,{isLoading:zt.isLoading,methodQris:Ut||[],methods:zt||[],selectedId:L,setPaymentMethodOpen:function(){return z(!0)},errorRequired:Nt.payment}),nn()&&Object(o.jsx)($e,{placeholder:"Nomor OVO",required:!0,name:"ovo_phone",register:dt({required:G}),disableFormatting:!0})]})}):Object(o.jsx)(o.Fragment,{children:a<vt?Object(o.jsx)("span",{children:Object(o.jsxs)(et,{onClick:function(){return Kt(!0)},_css11:[{display:"flex",justifyContent:"space-between",alignItems:"center",borderWidth:"1px",borderColor:"rgba(49, 53, 59, 0.12)",paddingLeft:"1rem",paddingRight:"0.5rem",borderRadius:"0.5rem",cursor:"pointer"},Nt&&{"--border-opacity":"1",borderColor:"rgba(247, 104, 91, var(--border-opacity))"},Object(f.b)(["height:42px;"])],children:[Object(o.jsxs)(tt,{children:[Object(o.jsx)(It,{}),Object(o.jsx)(nt,{children:"Pilih Pembayaran"})]}),Object(o.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9947 10.9951C15.1821 11.1826 15.2875 11.4369 15.2875 11.7021C15.2875 11.9672 15.1821 12.2215 14.9947 12.4091L10.4017 17.0021C10.2154 17.1846 9.96458 17.2863 9.70375 17.285C9.44292 17.2837 9.19315 17.1795 9.00871 16.995C8.82428 16.8106 8.72008 16.5608 8.71876 16.3C8.71745 16.0392 8.81911 15.7884 9.00168 15.6021L12.9017 11.7021L9.00168 7.80207C8.81911 7.61578 8.71745 7.36497 8.71876 7.10414C8.72008 6.84331 8.82428 6.59354 9.00871 6.4091C9.19315 6.22467 9.44292 6.12047 9.70375 6.11915C9.96458 6.11784 10.2154 6.21951 10.4017 6.40207L14.9947 10.9951Z",fill:"#31353B",fillOpacity:"0.96"})})]})}):Object(o.jsxs)("span",{children:[!a&&Object(o.jsx)(ut,{isLoading:n.isLoading,methodQris:Ut||[],methods:n.data||[],selectedId:L,setPaymentMethodOpen:function(){return z(!0)},errorRequired:Nt.payment}),a&&Object(o.jsx)(ut,{isLoading:zt.isLoading,methodQris:Ut||[],methods:zt||[],selectedId:L,setPaymentMethodOpen:function(){return z(!0)},errorRequired:Nt.payment}),nn()&&Object(o.jsx)(ot,{placeholder:"Nomor OVO",required:!0,name:"ovo_phone",register:dt({required:G}),disableFormatting:!0})]})})})]}),Object(o.jsx)(Ft,{}),Object(o.jsx)(it,{children:Object(o.jsxs)(rt,{variant:D.b.TRANSACTIONAL,size:"large",id:"initiate-checkout",disabled:u,isLoading:u,onClick:function(){var e=K({},Nt);e.amountDonation=!a,e.payment=!L,Dt(e)},children:[Object(o.jsx)(at,{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(o.jsx)("path",{d:"M16.6773 4.02903C18.9289 4.25888 20.8249 5.83989 21.3677 8.51807C21.9648 11.464 20.4434 14.1641 18.7532 16.0376C17.0502 17.9253 14.779 19.4264 12.9867 19.9317C12.6639 20.0228 12.3217 20.0228 11.9988 19.9317C10.2027 19.4254 7.94991 17.9249 6.25772 16.0396C4.57506 14.1649 3.07156 11.4805 3.61188 8.54862C4.11095 5.8406 6.02554 4.25787 8.28253 4.02891C9.74421 3.88062 11.2536 4.30832 12.4907 5.20033C13.719 4.31033 15.2169 3.87994 16.6773 4.02903Z",fill:"white"})}),"Lanjutkan Pembayaran"]})})]})]})},Vt=n("Uvq/"),Ht=n("ztjk"),zt=n("Az29"),Wt=n("r5vi");n("sTgj");function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qt=function(e){var t=e.slug,n=e.campaignTarget,i=e.campaignCategory,a=e.campaign,u=Object(zt.b)(),f=Object(Wt.a)(["utm"]),g=Object(s.a)(f,1)[0],b=Object(l.useRef)(p.a.CancelToken.source()),h=Object(V.useRouter)(),j=Object(B.b)(),v=Object(l.useState)(!1),O
1=v[0],y=v[1],C=Object(l.useState)(null),w=C[0],x=C[1],_=Object(l.useState)(null),S=_[0],I=_[1],k=Object(l.useState)({identifier:null}),N=k[0],L=k[1],R=Object(Vt.a)("payment_methods",(function(){return m.a.bankDefault.listPaymentMethod(b.current.token,w).then((function(e){return e.data}))})),P=Object(Vt.a)("donate_suggestion",(function(){return m.a.donationSuggestion.listSuggestion(b.current.token).then((function(e){return e.data}))})),A=function(e){return/^\+?((\d\-|\d)+\d){5,}$/gi.test(e)},T=function(){var e=Object(d.a)(r.a.mark((function e(n){var o,i,a,d,s,l,p,f,v,O,C,w,x,_,S,k,D;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,I(null),y(!0),l=n.idetifier,p=n.selectedNominal,f=n.pray,v=Object(c.a)(n,["idetifier","selectedNominal","pray"]),l.includes("@")||l.includes(".")?/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(l)?v.donor_email=l:L(Ut(Ut({},N),{},{identifier:"Nomor whatsapp atau email tidak valid"})):A(l)?v.donor_phone=l:L(Ut(Ut({},N),{},{identifier:"Nomor whatsapp atau email tidak valid"})),v.donation=Number(p),v.pray=f||null,"general"===t?v.type_donation="Sumbangan Umum":v.campaign_slug=t,v.channel_source=null===(o=g.utm)||void 0===o?void 0:o.utm_source,v.channel_medium=null===(i=g.utm)||void 0===i?void 0:i.utm_medium,v.channel_campaign=null===(a=g.utm)||void 0===a?void 0:a.utm_campaign,v.channel_content=null===(d=g.utm)||void 0===d?void 0:d.utm_content,v.channel_term=null===(s=g.utm)||void 0===s?void 0:s.utm_term,h.query.ref&&(v.code_ref=h.query.ref),!v.donor_phone&&!v.donor_email||!p||!v.bank_id){e.next=30;break}return e.next=17,m.a.donation.create(b.current.token,v).then((function(e){return e})).catch((function(){E.b.error("Terjadi kesalahan pada sistem")}));case 17:return w=e.sent,x=w.data,_="/donation/".concat(x.donation_number,"/checkout?"),x.faspay_redirect_url&&(_+="&redirect_url=".concat(encodeURIComponent(x.faspay_redirect_url))),null!==x&&void 0!==x&&null!==(O=x.flip_response)&&void 0!==O&&O.redirect_url&&"Flip E-Wallet"===(null===x||void 0===x||null===(C=x.bank)||void 0===C?void 0:C.bank_account)&&(_+="&redirect_url=".concat(encodeURIComponent(x.flip_response.redirect_url))),x.snap_token&&(_+="&snap_token=".concat(x.snap_token)),"Flip"===x.bank.bank_account&&window.sessionStorage.setItem("flipVA",x.flip_response.account_number),window.sessionStorage.setItem("paymentStep",JSON.stringify(x.bank.payment_steps)),window.sessionStorage.setItem("paymentMethod",x.bank.bank_info),x.permataQr&&window.sessionStorage.setItem("permata_qr",x.permataQr),j.isLogin()?j.saveUserData(Ut(Ut({},j.user),{},{defaultBankId:v.bank_id})):j.saveUserData(Ut(Ut({},j.user),{},{fullName:v.donor_name,email:v.donor_email,phoneNumber:v.donor_phone,defaultBankId:v.bank_id})),u.pxlTrackInitiateCheckout(),e.abrupt("return",h.push(_));case 30:y(!1),e.next=37;break;case 33:e.prev=33,e.t0=e.catch(0),y(!1),400===(null===e.t0||void 0===e.t0?void 0:e.t0.status)||404===(null===e.t0||void 0===e.t0?void 0:e.t0.status)?I(null===e.t0||void 0===e.t0||null===(S=e.t0.data)||void 0===S?void 0:S.message[0].message):422===(null===e.t0||void 0===e.t0?void 0:e.t0.status)?(D=Object.keys(null===(k=e.t0.data)||void 0===k?void 0:k.message).map((function(t){return e.t0.data.message[t][0].message})).join(", "),I(D)):Ht.a.error(e.t0);case 37:case"end":return e.stop()}}),e,null,[[0,33]])})));return function(t){return e.apply(this,arguments)}}();return Object(l.useEffect)((function(){return function(){b.current&&b.current.cancel(D.s.COMPONENT_UNMOUNT)}}),[]),Object(o.jsx)(Zt,{query:R,donateSuggestion:P,selectedNominal:w,setSelectedNominal:x,onSubmit:T,isSubmitting:O,error:S,customError:N,campaignTarget:n,campaignCategory:i,campaign:a})}},"8OQS":function(e,t){e.exports=function(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.default=e.exports,e.exports.__esModule=!0},"96bR":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAT7SURBVHgB3ZpdTttYFMfPuTHJSPNR76CZFUBX0LCCxlQz0jwRVgBRAalPhKdKLSiwgtKnkWZUHB76nHQFNSuYzA4y0w+hUPv0HDsJpsTO9bUNEj8JkjjX9v37fv3PuUEoiBeuW69C0ACllomogQA2H7Ypeg3hY0MCHCKC5wfBuQ/jwXPnjyEUAEIOOu5r+2dlbwJRiytcBwNEHCD2xsHFcR5RRkJeuX83ECt7/LYBBYKAJ2O62DcRlEnIC/fPehV/6BJQE0rERJC2kIMzdxOJOvE+XybS5Xyi/V3n6Ylm+cUcnrldHsBbcAcg4tGzJ057Ybm0L2Uw/4QP+vx2Be4Wr0L/rbadjVFSgUQheUXwhUc81faIgn/Dz6iWEaiRo2umirGSzjIVIQK4b7fn9e2O69o/QrDF3WUPsrPiR3V6lHDfm5iOCRmgY8LV544zTCsXLp5IfZO1J2nM3BDy0n3bUoivIesNNEVc3cddUUgfwAB+yO0d5+lR/JiKf5B1omLW7CBTpa4IYddxPK7QPhggXVPqGj92TUgVq3tGzc2toTvfx7FAHYEZ9hJWu/EDMyGikGeZFhgQEJyDAW3HGYVeywhsilWafpoJkdYAY8gDQ8QNgyGI1qzOoZA8rXG3UKPL6528C4UsQS2X/eDF7iEYQ7m821f4Jay7iioCTyAXZm54MvPksj+8VKyHr1G3MguKYtiy/kBG8o3LCKn7wbt3D1UFqg0oAH4y3e/n9jSKHJfB+GJVKcCinK1dxVpfR8xL968VKQsFIRr4D5ehIKSZpYJJ3UwcNfu4vQpa/QK68xUIj/Gwd/pPoRedXVsyJsQ2BM6VUg/Yztc5hM1j41PvZZUhQoiui3WeEZvsqcLbEZSDPBwF94N7IyRcEEdwD7Ci2LqYATi5lidumEfEkJ/SKIBgGH2HnD5FWTvqKpwpqQEFMR3suVokitHhDYLf+wSW12FrrntuZMMrHJHC4zyTjjhoi/+/59qYLIoDIn9/2/ltAIbsROfK3yTEVutGLUV0jod8AcoQo0szBuRv7OQQkIYIknA7SwsFRBtqDGoA+ngfCR+VJUKQkFmSGHIv3XN81hBmUXRWd2kJEZFlDOShyzmwgLMsOvV61lz7NVxHuGnewAIkS3JbIgSJ56ULLyrHpuFMXkMhOtmMJfi/B7eMxbPgojKXgGHdQyHt8EnjIO0EDilbcMv4CtbTS+DJNJc2syhEX1OTZZIUkzgCbgmJa2Q/Jq3MJcGszjMh0UyEad3H5jjCzRIFmhLtjNX66Y7jqjWEa6aRFUpyOHFATwOnMsVMo8e02UpmqnhrCNeEiMJF+Vi5wRLWPrxy3xa+gyXbezrR47w889xthQP39Ii/2YQF5NmFjSMtzA9H3EVjYWGC421nbetmXRI46J1Kyl9rcIsgny6Pd53fM6VOxTSKv8qQTfG2m2tzN3oSd6wqbBN83owBDTEcm7Phs1rsEIYyjbOZPBP7/gU+DzuTrTJJPNTAtqe/juBpsildKEP4632KrMtcUjdDxSboiimZUESas9DantYdM6WQMCa+RytmlwuJVTbfy8hOGG3yFpuOiEl5fWQTkyOxDqd41qFUsCdrWpatvE
1xCppQoKIw6TeIdIyFTRFAFaKvC2xJ5fuYkYcRnduB5woRcQuJEonhqlYQyZ0k4i3JtuwIj6yNZFo4z4D0/AE+i0yzdJ41vTJlLKmbG0oAAAAAASUVORK5CYII="},"99/u":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return r}));var o=function(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())},i=function(e){return/^(\+62|62|[0-9])?[\s-]?[1-9]{1}\d{1}[\s-]?\d{3}[\s-]?\d{1,7}$/.test(String(e))},r=function(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())}},A3CJ:function(e,t,n){!function(e,t,n,o){"use strict";function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?i(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function a(e){var t=e.srcList,o=e.imgPromise,i=void 0===o?s({decode:!0}):o,a=e.useSuspense,c=void 0===a||a,d=n.useState(!0)[1],f=l(m(t)),g=f.join("");if(u[g]||(u[g]={promise:p(f,i),cache:"pending",error:null}),u[g].promise.then((function(e){u[g]=r(r({},u[g]),{},{cache:"resolved",src:e}),c||d(!1)})).catch((function(e){u[g]=r(r({},u[g]),{},{cache:"rejected",error:e}),c||d(!1)})),"resolved"===u[g].cache)return{src:u[g].src,isLoading:!1,error:null};if("rejected"===u[g].cache){if(c)throw u[g].error;return{isLoading:!1,error:u[g].error,src:void 0}}if(c)throw u[g].promise;return{isLoading:!0,src:void 0,error:null}}function c(e){var n=e.decode,o=e.src,i=void 0===o?[]:o,r=e.loader,c=void 0===r?null:r,l=e.unloader,m=void 0===l?null:l,u=e.container,p=void 0===u?f:u,g=e.loaderContainer,b=void 0===g?f:g,h=e.unloaderContainer,j=void 0===h?f:h,v=e.imgPromise,O=e.crossorigin,y=e.useSuspense,C=void 0!==y&&y,w=t(e,["decode","src","loader","unloader","container","loaderContainer","unloaderContainer","imgPromise","crossorigin","useSuspense"]),x=a({srcList:i,imgPromise:v=v||s({decode:!(void 0!==n)||n,crossOrigin:O}),useSuspense:C}),_=x.src,S=x.isLoading;return _?p(d.createElement("img",Object.assign({src:_},w))):!C&&S?b(c):!C&&m?j(m):null}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var d="default"in n?n.default:n;o=o&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o;var s=function(e){var t=e.decode,n=e.crossOrigin,o=void 0===n?"":n;return function(e){return new Promise((function(n,i){var r=new Image;o&&(r.crossOrigin=o),r.onload=function(){(void 0===t||t)&&r.decode?r.decode().then(n).catch(i):n()},r.onerror=i,r.src=e}))}},l=function(e){return e.filter((function(e){return e}))},m=function(e){return Array.isArray(e)?e:[e]},u={},p=function(e,t){var n=!1;return new Promise((function(o,i){var r=function(e){return t(e).then((function(){n=!0,o(e)}))};e.reduce((function(e,t){return e.catch((function(){if(!n)return r(t)}))}),r(e.shift())).catch(i)}))},f=function(e){return e};e.Img=c,e.useImage=a,Object.defineProperty(e,"__esModule",{value:!0})}(t,n("8OQS"),n("q1tI"),n("lSNA"))},R36S:function(e,t,n){"use strict";n.d(t,"a",(function(){return mt}));var o=n("nKUr"),i=n("vJKn"),r=n.n(i),a=n("cpVT"),c=n("dhJC"),d=n("rg98"),s=n("xvhg"),l=n("q1tI"),m=n.n(l),u=n("G8Ht"),p=n("vDqi"),f=n.n(p),g=n("vOnD"),b=n("KXDj"),h=n("jGNU"),j=n("Rymt"),v=n("CIUX"),O=n("VFWX"),y=n("JdxD"),C=n("NKCw"),w=n("4e9g"),x=n("FGyW"),_=n("wkxh"),S=n("eN3O"),I=n("tY0/"),k=n("MTMm"),N=n("EXCG"),L=n("jsRV"),D=n("Np9n");var R,B=n("zyNG");function E(){var e=Object(l.useRef)(!0);return Object(l.useEffect)((function(){e.current=!1}),[]),e.current}function P(){var e=[],t={requestAnimationFrame:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=requestAnimationFrame.apply(void 0,arguments);t.add((function(){return cancelAnimationFrame(e)}))})),nextFrame:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];t.requestAnimationFrame((function(){t.requestAnimationFrame.apply(t,n)}))},setTimeout:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=setTimeout.apply(void 0,arguments);t.add((function(){return clearTimeout(e)}))})),add:function(t){e.push(t)},dispose:function(){for(var t,n=Object(S.a)(e.splice(0));!(t=n()).done;){var o=t.value;o()}}};return t}function A(e){for(var t,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];e&&o.length>0&&(t=e.classList).add.apply(t,o)}function T(e){for(var t,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];e&&o.length>0&&(t=e.classList).remove.apply(t,o)}function M(e,t,n,o,i,r){var a=P(),c=void 0!==r?function(e){var t={called:!1};
1return function(){if(!t.called)return t.called=!0,e.apply(void 0,arguments)}}(r):function(){};return T.apply(void 0,[e].concat(i)),A.apply(void 0,[e].concat(t,n)),a.nextFrame((function(){T.apply(void 0,[e].concat(n)),A.apply(void 0,[e].concat(o)),a.add(function(e,t){var n=P();if(!e)return n.dispose;var o=getComputedStyle(e),i=[o.transitionDuration,o.transitionDelay].map((function(e){var t=e.split(",").filter(Boolean).map((function(e){return e.includes("ms")?parseFloat(e):1e3*parseFloat(e)})).sort((function(e,t){return t-e}))[0];return void 0===t?0:t})),r=i[0],a=i[1];return 0!==r?n.setTimeout((function(){t(R.Finished)}),r+a):t(R.Finished),n.add((function(){return t(R.Cancelled)})),n.dispose}(e,(function(n){return T.apply(void 0,[e].concat(o,t)),A.apply(void 0,[e].concat(i)),c(n)})))})),a.add((function(){return T.apply(void 0,[e].concat(t,n,o,i))})),a.add((function(){return c(R.Cancelled)})),a.dispose}function F(e){return void 0===e&&(e=""),Object(l.useMemo)((function(){return e.split(" ").filter((function(e){return e.trim().length>1}))}),[e])}!function(e){e.Finished="finished",e.Cancelled="cancelled"}(R||(R={}));var Z,V=Object(l.createContext)(null);V.displayName="TransitionContext",function(e){e.Visible="visible",e.Hidden="hidden"}(Z||(Z={}));var H=Object(l.createContext)(null);function z(e){return"children"in e?z(e.children):e.current.filter((function(e){return e.state===Z.Visible})).length>0}function W(e){var t=Object(l.useRef)(e),n=Object(l.useRef)([]),o=function(){var e=Object(l.useRef)(!1);return Object(l.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}();Object(l.useEffect)((function(){t.current=e}),[e]);var i=Object(l.useCallback)((function(e,i){var r;void 0===i&&(i=k.b.Hidden);var a=n.current.findIndex((function(t){return t.id===e}));-1!==a&&(Object(I.a)(i,((r={})[k.b.Unmount]=function(){n.current.splice(a,1)},r[k.b.Hidden]=function(){n.current[a].state=Z.Hidden},r)),!z(n)&&o.current&&(null==t.current||t.current()))}),[t,o,n]),r=Object(l.useCallback)((function(e){var t=n.current.find((function(t){return t.id===e}));return t?t.state!==Z.Visible&&(t.state=Z.Visible):n.current.push({id:e,state:Z.Visible}),function(){return i(e,k.b.Unmount)}}),[n,i]);return Object(l.useMemo)((function(){return{children:n,register:r,unregister:i}}),[r,i,n])}function q(){}H.displayName="NestingContext";var U=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Q(e){for(var t,n={},o=Object(S.a)(U);!(t=o()).done;){var i,r=t.value;n[r]=null!=(i=e[r])?i:q}return n}
1var J=k.a.RenderStrategy;function Y(e){var t,n=e.beforeEnter,o=e.afterEnter,i=e.beforeLeave,r=e.afterLeave,a=e.enter,c=e.enterFrom,d=e.enterTo,s=e.entered,u=e.leave,p=e.leaveFrom,f=e.leaveTo,g=Object(S.c)(e,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),b=Object(l.useRef)(null),h=Object(l.useState)(Z.Visible),j=h[0],v=h[1],O=g.unmount?k.b.Unmount:k.b.Hidden,y=function(){var e=Object(l.useContext)(V);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),C=y.show,w=y.appear,x=function(){var e=Object(l.useContext)(H);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),_=x.register,P=x.unregister,A=E(),T=Object(D.a)(),q=Object(l.useRef)(!1),U=W((function(){q.current||(v(Z.Hidden),P(T),ne.current.afterLeave())}));Object(N.a)((function(){if(T)return _(T)}),[_,T]),Object(N.a)((function(){var e;O===k.b.Hidden&&T&&(C&&j!==Z.Visible?v(Z.Visible):Object(I.a)(j,((e={})[Z.Hidden]=function(){return P(T)},e[Z.Visible]=function(){return _(T)},e)))}),[j,T,_,P,C,O]);var Y=F(a),K=F(c),G=F(d),X=F(s),$=F(u),ee=F(p),te=F(f),ne=function(e){var t=Object(l.useRef)(Q(e));return Object(l.useEffect)((function(){t.current=Q(e)}),[e]),t}
1({beforeEnter:n,afterEnter:o,beforeLeave:i,afterLeave:r}),oe=Object(L.a)();Object(l.useEffect)((function(){if(oe&&j===Z.Visible&&null===b.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[b,j,oe]);var ie=A&&!w;Object(N.a)((function(){var e=b.current;if(e&&!ie)return q.current=!0,C&&ne.current.beforeEnter(),C||ne.current.beforeLeave(),C?M(e,Y,K,G,X,(function(e){q.current=!1,e===R.Finished&&ne.current.afterEnter()})):M(e,$,ee,te,X,(function(e){q.current=!1,e===R.Finished&&(z(U)||(v(Z.Hidden),P(T),ne.current.afterLeave()))}))}),[ne,T,q,P,U,b,ie,C,Y,K,G,$,ee,te]);var re={ref:b},ae=g;return m.a.createElement(H.Provider,{value:U},m.a.createElement(B.a,{value:Object(I.a)(j,(t={},t[Z.Visible]=B.b.Open,t[Z.Hidden]=B.b.Closed,t))},Object(k.d)({props:Object(S.b)({},ae,re),defaultTag:"div",features:J,visible:j===Z.Visible,name:"Transition.Child"})))}function K(e){var t,n=e.show,o=e.appear,i=void 0!==o&&o,r=e.unmount,a=Object(S.c)(e,["show","appear","unmount"]),c=Object(B.c)();void 0===n&&null!==c&&(n=Object(I.a)(c,((t={})[B.b.Open]=!0,t[B.b.Closed]=!1,t)));if(![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");var d=Object(l.useState)(n?Z.Visible:Z.Hidden),s=d[0],u=d[1],p=W((function(){u(Z.Hidden)})),f=E(),g=Object(l.useMemo)((function(){return{show:n,appear:i||!f}}),[n,i,f]);Object(l.useEffect)((function(){n?u(Z.Visible):z(p)||u(Z.Hidden)}),[n,p]);var b={unmount:r};return m.a.createElement(H.Provider,{value:p},m.a.createElement(V.Provider,{value:g},Object(k.d)({props:Object(S.b)({},b,{as:l.Fragment,children:m.a.createElement(Y,Object.assign({},b,a))}),defaultTag:l.Fragment,features:J,visible:s===Z.Visible,name:"Transition"})))}K.Child=function(e){var t=null!==Object(l.useContext)(V),n=null!==Object(B.c)();return!t&&n?m.a.createElement(K,Object.assign({},e)):m.a.createElement(Y,Object.assign({},e))},K.Root=K;var G=n("Ka17");function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ee=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv",componentId:"p37se4-0"})({paddingLeft:"1.25rem",paddingRight:"1.25rem","--bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--bg-opacity))"}),te=Object(g.c)("form").withConfig({displayName:"donation-form-view___StyledForm",componentId:"p37se4-1"})({backgroundColor:"rgba(49, 53, 59, 0.02)"}),ne=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv2",componentId:"p37se4-2"})({paddingTop:"0.5rem",paddingBottom:"0.5rem","--bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--bg-opacity))",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginTop:"0.5rem"}),oe=Object(g.c)("h6").withConfig({displayName:"donation-form-view___StyledH",componentId:"p37se4-3"})({marginBottom:"0.5rem",fontSize:"1.143rem",color:"rgba(49, 53, 59, 0.96)",fontWeight:"600"}),ie=Object(g.c)("h6").withConfig({displayName:"donation-form-view___StyledH2",componentId:"p37se4-4"})({marginBottom:"0.5rem",fontSize:"1.143rem",color:"rgba(49, 53, 59, 0.96)",fontWeight:"600"}),re=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv3",componentId:"p37se4-5"})({marginBottom:"0.75rem"}),ae=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv4",componentId:"p37se4-6"})({position:"relative",fontSize:"1.429rem"}),ce=Object(g.c)(j.a).withConfig({displayName:"donation-form-view___StyledNumberField",componentId:"p37se4-7"})(["",""],(function(e){return e._css3})),de=Object(g.c)("span").withConfig({displayName:"donation-form-view___StyledSpan",componentId:"p37se4-8"})({position:"absolute",left:"0",top:"0",bottom:"0",display:"flex",alignItems:"center",paddingLeft:"1.25rem",fontWeight:"400",color:"rgba(49, 53, 59, 0.54)"}),se=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv5",componentId:"p37se4-9"})(["",""],(function(e){return e._css4})),le=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv6",componentId:"p37se4-10"})({paddingLeft:"1.25rem",paddingRight:"1.25rem",paddingTop:"1rem",paddingBottom:"1rem","--bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--bg-opacity))",marginTop:"0.5rem"}),me=Object(g.c)("h6").withConfig({displayName:"donation-form-view___StyledH3",componentId:"p37se4-11"})({marginBottom:"1rem",fontSize:"1.143rem",color:"rgba(49, 53, 59, 0.96)",fontWeight:"600"}),ue=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv7",componentId:"p37se4-12"})(["",""],(function(e){return e._css5})),pe=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv8",componentId:"p37se4-13"})({display:"inline-flex",alignItems:"center",fontWeight:"400",color:"rgba(49, 53, 59, 0.96)"}),fe=Object(g.c)("span").withConfig({displayName:"donation-form-view___StyledSpan2",componentId:"p37se4-14"})({marginLeft:"1rem"}),ge=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv9",componentId:"p37se4-15"})(["",""],(function(e){return e._css6})),be=Object(g.c)(j.a).withConfig({displayName:"donation-form-view___StyledNumberField2",componentId:"p37se4-16"})({marginBottom:"0",marginTop:"0.75rem"}
1),he=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv10",componentId:"p37se4-17"})({marginTop:"1rem"}),je=Object(g.c)("label").withConfig({displayName:"donation-form-view___StyledLabel",componentId:"p37se4-18"})({display:"block",marginBottom:"0.75rem",paddingLeft:"0.25rem",color:"rgba(49, 53, 59, 0.75)",fontWeight:"400",cursor:"pointer"}),ve=Object(g.c)("input").withConfig({displayName:"donation-form-view___StyledInput",componentId:"p37se4-19"})({":checked":{backgroundImage:"url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e\")",borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},appearance:"none",colorAdjust:"exact",display:"inline-block",verticalAlign:"middle",backgroundOrigin:"border-box",userSelect:"none",flexShrink:"0",height:"1em",width:"1em",color:"#3b82f6",backgroundColor:"#fff",":focus":{outline:"none",borderColor:"#60a5fa"},"@media not print":{"::-ms-check":{color:"transparent",background:"inherit",borderColor:"inherit",borderRadius:"inherit"}},borderWidth:"1px"}),Oe=Object(g.c)("span").withConfig({displayName:"donation-form-view___StyledSpan3",componentId:"p37se4-20"})({marginLeft:"1rem"}),ye=Object(g.c)(j.e).withConfig({displayName:"donation-form-view___StyledTextArea",componentId:"p37se4-21"})({resize:"none"}),Ce=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv11",componentId:"p37se4-22"})({paddingLeft:"1.25rem",paddingRight:"1.25rem",paddingTop:"1rem",paddingBottom:"1rem",marginTop:"0.5rem","--bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--bg-opacity))"}),we=Object(g.c)(v.a).withConfig({displayName:"donation-form-view___StyledButton",componentId:"p37se4-23"})({width:"100%"}),xe=Object(g.c)("svg").withConfig({displayName:"donation-form-view___StyledSvg",componentId:"p37se4-24"})({marginRight:"0.5rem",display:"inline"});var _e=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv12",componentId:"p37se4-25"})(["",""],(function(e){return e._css7})),Se=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv13",componentId:"p37se4-26"})({display:"inline-flex",alignItems:"center",fontWeight:"400",color:"rgba(49, 53, 59, 0.96)"}),Ie=Object(g.c)("span").withConfig({displayName:"donation-form-view___StyledSpan4",componentId:"p37se4-27"})({marginLeft:"1rem"}),ke=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv14",componentId:"p37se4-28"})({display:"flex",alignItems:"center","> :not(template) ~ :not(template)":{"--space-x-reverse":0,marginRight:"calc(1rem * var(--space-x-reverse))",marginLeft:"calc(1rem * calc(1 - var(--space-x-reverse)))"},fontWeight:"400",color:"rgba(49, 53, 59, 0.96)"}),Ne=Object(g.c)("img").withConfig({displayName:"donation-form-view___StyledImg",componentId:"p37se4-29"})(["",""],(function(e){return e._css8})),Le=function(e){var t,n,i,r=e.selectedId,a=e.methods,c=e.isLoading,d=e.setPaymentMethodOpen,s=e.errorRequired;return Object.keys(a).forEach((function(e){var t=a[e].banks;Object.keys(t).forEach((function(e){var n=t[e];n.id===parseInt(r)&&(i=n)}))})),c?Object(o.jsx)(O.a,{}):Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)(_e,{onClick:d,_css7:[{display:"flex",justifyContent:"space-between",alignItems:"center",borderWidth:"1px",borderColor:"rgba(49, 53, 59, 0.12)",paddingLeft:"1rem",paddingRight:"0.5rem",borderRadius:"0.5rem",cursor:"pointer"},s&&{"--border-opacity":"1",borderColor:"rgba(247, 104, 91, var(--border-opacity))"},Object(g.b)(["height:42px;"])],children:[i?Object(o.jsxs)(ke,{children:[Object(o.jsx)(Ne,{src:null===(t=i)||void 0===t?void 0:t.icon,_css8:[Object(g.b)(["max-width:42px;max-height:42px;"])]}),Object(o.jsx)("span",{children:null===(n=i)||void 0===n?void 0:n.bank_info})]}):Object(o.jsxs)(Se,{children:[Object(o.jsx)(Ae,{}),Object(o.jsx)(Ie,{children:"Pilih Pembayaran"})]}),Object(o.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9947 10.9951C15.1821 11.1826 15.2875 11.4369 15.2875 11.7021C15.2875 11.9672 15.1821 12.2215 14.9947 12.4091L10.4017 17.0021C10.2154 17.1846 9.96458 17.2863 9.70375 17.285C9.44292 17.2837 9.19315 17.1795 9.00871 16.995C8.82428 16.8106 8.72008 16.5608 8.71876 16.3C8.71745 16.0392 8.81911 15.7884 9.00168 15.6021L12.9017 11.7021L9.00168 7.80207C8.81911 7.61578 8.71745 7.36497 8.71876 7.10414C8.72008 6.84331 8.82428 6.59354 9.00871 6.4091C9.19315 6.22467 9.44292 6.12047 9.70375 6.11915C9.96458 6.11784 10.2154 6.21951 10.4017 6.40207L14.9947 10.9951Z",fill:"#31353B",fillOpacity:"0.96"})})]}),Object(o.jsx)(Fe,{isShow:s})]})},De=Object(g.c)("ul").withConfig({displayName:"donation-form-view___StyledUl",componentId:"p37se4-30"})({"> :not(template) ~ :not(template)":{"--divide-y-reverse":0,borderTopWidth:"calc(1px * calc(1 - var(--div
1ide-y-reverse)))",borderBottomWidth:"calc(1px * var(--divide-y-reverse))",borderStyle:"solid"},paddingLeft:"1.25rem",paddingRight:"1.25rem",marginBottom:"1.25rem"}),Re=Object(g.c)("li").withConfig({displayName:"donation-form-view___StyledLi",componentId:"p37se4-31"})({display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer"}),Be=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv15",componentId:"p37se4-32"})({display:"flex",alignItems:"center","> :not(template) ~ :not(template)":{"--space-x-reverse":0,marginRight:"calc(1rem * var(--space-x-reverse))",marginLeft:"calc(1rem * calc(1 - var(--space-x-reverse)))"},paddingTop:"1.25rem",paddingBottom:"1.25rem",paddingLeft:"0.25rem",paddingRight:"0.25rem"}),Ee=Object(g.c)("img").withConfig({displayName:"donation-form-view___StyledImg2",componentId:"p37se4-33"})(["",""],(function(e){return e._css9})),Pe=function(e){var t=e.methods,n=e.defaultMethod,i=e.selectMethod,r=e.handleClose,a=Object(l.useState)(n),c=a[0],d=a[1];return Object(o.jsx)(h.a,{title:"Metode Pembayaran",onClose:r,children:t.map((function(e,t){return Object(o.jsxs)(l.Fragment,{children:[Object(o.jsx)("div",{className:"bank-group-title",children:e.group}),Object(o.jsx)(De,{children:e.banks.map((function(e){return Object(o.jsxs)(Re,{onClick:function(){return t=e.id,d(t),i(t),void r();var t},children:[Object(o.jsxs)(Be,{children:[Object(o.jsx)(Ee,{src:e.icon,_css9:[Object(g.b)(["max-width:42px;max-height:42px;"])]}),Object(o.jsx)("span",{children:e.bank_info})]}),Object(o.jsx)("div",{children:c===e.id?Object(o.jsxs)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12ZM9.38236 11.0689C9.50437 11.1213 9.61471 11.1974 9.70696 11.293L11 12.586L14.293 9.29296C14.3852 9.19745 14.4956 9.12127 14.6176 9.06886C14.7396 9.01645 14.8708 8.98886 15.0036 8.98771C15.1363 8.98655 15.268 9.01186 15.3909 9.06214C15.5138 9.11242 15.6255 9.18667 15.7194 9.28056C15.8132 9.37446 15.8875 9.48611 15.9378 9.60901C15.9881 9.7319 16.0134 9.86358 16.0122 9.99636C16.0111 10.1291 15.9835 10.2604 15.9311 10.3824C15.8787 10.5044 15.8025 10.6147 15.707 10.707L11.707 14.707C11.5194 14.8944 11.2651 14.9997 11 14.9997C10.7348 14.9997 10.4805 14.8944 10.293 14.707L8.29296 12.707C8.19745 12.6147 8.12127 12.5044 8.06886 12.3824C8.01645 12.2604 7.98886 12.1291 7.98771 11.9964C7.98655 11.8636 8.01186 11.7319 8.06214 11.609C8.11242 11.4861 8.18667 11.3745 8.28056 11.2806C8.37446 11.1867 8.48611 11.1124 8.609 11.0621C8.7319 11.0119 8.86358 10.9866 8.99636 10.9877C9.12914 10.9889 9.26036 11.0164 9.38236 11.0689Z",fill:"#007DBE"}),Object(o.jsx)("path",{d:"M9.382 11.069C9.504 11.1214 9.61435 11.1976 9.70659 11.2931L10.9996 12.5861L14.2926 9.29308C14.3848 9.19757 14.4952 9.12139 14.6172 9.06898C14.7392 9.01657 14.8704 8.98898 15.0032 8.98783C15.136 8.98668 15.2677 9.01198 15.3905 9.06226C15.5134 9.11254 15.6251 9.18679 15.719 9.28069C15.8129 9.37458 15.8871 9.48623 15.9374 9.60913C15.9877 9.73202 16.013 9.8637 16.0118 9.99648C16.0107 10.1293 15.9831 10.2605 15.9307 10.3825C15.8783 10.5045 15.8021 10.6148 15.7066 10.7071L11.7066 14.7071C11.5191 14.8946 11.2648 14.9999 10.9996 14.9999C10.7344 14.9999 10.4801 14.8946 10.2926 14.7071L8.29259 12.7071C8.19708 12.6148 8.1209 12.5045 8.06849 12.3825C8.01608 12.2605 7.9885 12.1293 7.98734 11.9965C7.98619 11.8637 8.01149 11.732 8.06177 11.6091C8.11205 11.4862 8.18631 11.3746 8.2802 11.2807C8.37409 11.1868 8.48574 11.1125 8.60864 11.0623C8.73154 11.012 8.86321 10.9867 8.99599 10.9878C9.12877 10.989 9.25999 11.0166 9.382 11.069Z",fill:"white"})]}):Object(o.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9947 10.9951C15.1821 11.1826 15.2875 11.4369 15.2875 11.7021C15.2875 11.9672 15.1821 12.2215 14.9947 12.4091L10.4017 17.0021C10.2154 17.1846 9.96458 17.2863 9.70375 17.285C9.44292 17.2837 9.19315 17.1795 9.00871 16.995C8.82428 16.8106 8.72008 16.5608 8.71876 16.3C8.71745 16.0392 8.81911 15.7884 9.00168 15.6021L12.9017 11.7021L9.00168 7.80207C8.81911 7.61578 8.71745 7.36497 8.71876 7.10414C8.72008 6.84331 8.82428 6.59354 9.00871 6.4091C9.19315 6.22467 9.44292 6.12047 9.70375 6.11915C9.96458 6.11784 10.2154 6.21951 10.4017 6.40207L14.9947 10.9951Z",fill:"#31353B",fillOpacity:"0.54"})})})]},e.id)}))})]},t)}))})},Ae=function(){return Object(o.jsxs)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(o.jsx)("path",{d:"M13 10.5C13 11.3284 12.3284 12 11.5 12C10.6716 12 10 11.3284 10 10.5C10 9.67157 10.6716 9 11.5 9C12.3284 9 13 9.67157 13 10.5Z",fill:"#007DBE"}),Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 6C7 3.79086 8.79086 2 11 2H19C21.2091 2 23 3.79086 23 6V11C23 13.2091 21.2091 15 19 15H11C8.79086 15 7 13.2091 7 11V6ZM11 4C9.89543 4 9 4.89543 9 6H21C21 4.89543 20.1046 4 19 4H11ZM21 8H9V11C9 12.1046 9.89543 13 11 13H19C20.1046 13 21 12.1046 21 11V8Z",fill:"#007DBE"}),Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 11C3.89543 11 3 11.8954 3 13H5C5.55228 13 6 13.4477 6 14C6 14.5523 5.55228 15 5 15H3V18C3 19.1046 3.89543 20 5 20H13C14.1046 20 15 19.1046 15 18H17C17 20.2091 15.2091 22 13 22H5C2.79086 22 1 20.2091 1 18V13C1 10.7909 2.79086 9 5 9V11Z",fill:"#007DBE"}),Object(o.jsx)("path",{d:"M7.90039 19C8.72882 19 9.40039 18.3284 9.40039 17.5C9.40039 16.6716 8.72882 16 7.90039 16C7.07196 16 6.40039 16.6716 6.40039 17.5C6.40039 18.3284 7.07196 19 7.90039 19Z",fill:"#007DBE"}),Object(o.jsx)("path",{d:"M5.8 17.5C5.8 17.011 6.0376 16.5808 6.4 16.3072C6.14189 16.1087 5.8256 16.0008 5.5 16C5.10218 16 4.72064 16.158 4.43934 16.4393C4.15804 16.7206 4 17.1022 4 17.5C4 17.8978 4.15804 18.2794 4.43934 18.5607C4.72064 18.842 5.10218 19 5.5 19C5.8256 18.9992 6.14189 18.8913 6.4 18.6928C6.2142 18.5543 6.06323 18.3743 5.95908 18.1673C5.85493 17.9
1602 5.80047 17.7318 5.8 17.5V17.5Z",fill:"#007DBE"})]})},Te=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv16",componentId:"p37se4-34"})(["",""],(function(e){return e._css10})),Me=Object(g.c)("svg").withConfig({displayName:"donation-form-view___StyledSvg2",componentId:"p37se4-35"})({marginRight:"0.25rem"}),Fe=function(e){return e.isShow?Object(o.jsxs)(Te,{_css10:[{"--text-opacity":"1",color:"rgba(247, 104, 91, var(--text-opacity))",marginBottom:"0.75rem",display:"flex",alignItems:"center",fontWeight:"400"},Object(g.b)(["margin-top:2px;font-size:10px;"])],children:[Object(o.jsxs)(Me,{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14C4.6862 14 2 11.3138 2 8C2 4.6862 4.6862 2 8 2C11.3138 2 14 4.6862 14 8C14 11.3138 11.3138 14 8 14ZM8.66667 8.66667C8.66667 9.03486 8.36819 9.33333 8 9.33333C7.63181 9.33333 7.33333 9.03486 7.33333 8.66667L7.33333 5.33333C7.33333 4.96514 7.63181 4.66667 8 4.66667C8.36819 4.66667 8.66667 4.96514 8.66667 5.33333L8.66667 8.66667ZM8.66667 10.6667C8.66667 11.0349 8.36819 11.3333 8 11.3333C7.63181 11.3333 7.33333 11.0349 7.33333 10.6667C7.33333 10.2985 7.63181 10 8 10C8.36819 10 8.66667 10.2985 8.66667 10.6667Z",fill:"#F7685B"}),Object(o.jsx)("path",{d:"M8.66634 8.66663C8.66634 9.03482 8.36786 9.33329 7.99967 9.33329C7.63149 9.33329 7.33301 9.03482 7.33301 8.66663V5.33329C7.33301 4.9651 7.63149 4.66663 7.99968 4.66663C8.36786 4.66663 8.66634 4.9651 8.66634 5.33329L8.66634 8.66663Z",fill:"white"}),Object(o.jsx)("path",{d:"M8.66634 10.6666C8.66634 11.0348 8.36786 11.3333 7.99967 11.3333C7.63148 11.3333 7.33301 11.0348 7.33301 10.6666C7.33301 10.2984 7.63149 9.99996 7.99967 9.99996C8.36786 9.99996 8.66634 10.2984 8.66634 10.6666Z",fill:"white"}),Object(o.jsx)("path",{d:"M8.66634 8.66663C8.66634 9.03482 8.36786 9.33329 7.99967 9.33329C7.63149 9.33329 7.33301 9.03482 7.33301 8.66663V5.33329C7.33301 4.9651 7.63149 4.66663 7.99968 4.66663C8.36786 4.66663 8.66634 4.9651 8.66634 5.33329L8.66634 8.66663Z",fill:"white"}),Object(o.jsx)("path",{d:"M8.66634 10.6666C8.66634 11.0348 8.36786 11.3333 7.99967 11.3333C7.63148 11.3333 7.33301 11.0348 7.33301 10.6666C7.33301 10.2984 7.63149 9.99996 7.99967 9.99996C8.36786 9.99996 8.66634 10.2984 8.66634 10.6666Z",fill:"white"}),Object(o.jsx)("path",{d:"M8.66634 8.66663C8.66634 9.03482 8.36786 9.33329 7.99967 9.33329C7.63149 9.33329 7.33301 9.03482 7.33301 8.66663V5.33329C7.33301 4.9651 7.63149 4.66663 7.99968 4.66663C8.36786 4.66663 8.66634 4.9651 8.66634 5.33329L8.66634 8.66663Z",fill:"white"}),Object(o.jsx)("path",{d:"M8.66634 10.6666C8.66634 11.0348 8.36786 11.3333 7.99967 11.3333C7.63148 11.3333 7.33301 11.0348 7.33301 10.6666C7.33301 10.2984 7.63149 9.99996 7.99967 9.99996C8.36786 9.99996 8.66634 10.2984 8.66634 10.6666Z",fill:"white"})]}),"Mohon diisi terlebih dahulu"]}):null},Ze=[{title:"Apakah informasi saya aman",desc:"Kami mengerti kekhawatiran Anda. Kami dapat menjamin keamanan data pembayaran Anda. Kami tidak menyimpan data tersebut dan langsung mengirimnya ke provider pembayaran y
1ang terpercaya."},{title:"Bisakah saya mengembalikan donasi saya",desc:"Halo, bila Anda melakukan kesalahan nominal pembayaran tidak perlu khawatir. Silakan hubungi nomor Customer Relation kami dengan menyertakan bukti pembayaran Anda."}],Ve=Object(g.c)(_.a.Button).withConfig({displayName:"donation-form-view___StyledDisclosureButton",componentId:"p37se4-36"})(["",""],(function(e){return e._css11})),He=Object(g.c)(G.a).withConfig({displayName:"donation-form-view___StyledChevronDownIcon",componentId:"p37se4-37"})(["",""],(function(e){return e._css12})),ze=Object(g.c)(_.a.Panel).withConfig({displayName:"donation-form-view___StyledDisclosurePanel",componentId:"p37se4-38"})({paddingLeft:"1.25rem",paddingRight:"1.25rem",paddingBottom:"0.5rem",color:"rgba(49, 53, 59, 0.75)",backgroundColor:"rgba(49, 53, 59, 0.04)",borderBottomLeftRadius:"0.5rem",borderBottomRightRadius:"0.5rem",fontWeight:"400",fontSize:"0.8571rem"}),We=function(){return Ze.map((function(e,t){return Object(o.jsx)(_.a,{children:function(t){var n=t.open;return Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)(Ve,{_css11:[{display:"flex",width:"100%",paddingLeft:"1.25rem",paddingRight:"1.25rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"left",color:"rgba(49, 53, 59, 0.75)",backgroundColor:"rgba(49, 53, 59, 0.04)",fontSize:"0.8571rem"},n?{borderBottomLeftRadius:"0",borderBottomRightRadius:"0",borderTopLeftRadius:"0.5rem",borderTopRightRadius:"0.5rem"}:{borderRadius:"0.5rem"}],children:[Object(o.jsx)(He,{_css12:[{width:"1.25rem",height:"1.25rem",color:"rgba(49, 53, 59, 0.75)",marginRight:"0.5rem"},n&&{"--transform-translate-x":"0","--transform-translate-y":"0","--transform-rotate":"180deg","--transform-skew-x":"0","--transform-skew-y":"0","--transform-scale-x":"1","--transform-scale-y":"1",transform:"translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))"}]}),Object(o.jsx)("span",{children:e.title})]}),Object(o.jsx)(ze,{children:e.desc})]})}},t)}))},qe=Object(g.c)(_.a.Button).withConfig({displayName:"donation-form-view___StyledDisclosureButton2",componentId:"p37se4-39"})(["",""],(function(e){return e._css13})),Ue=Object(g.c)(G.a).withConfig({displayName:"donation-form-view___StyledChevronDownIcon2",componentId:"p37se4-40"})(["",""],(function(e){return e._css14})),Qe=Object(g.c)(_.a.Panel).withConfig({displayName:"donation-form-view___StyledDisclosurePanel2",componentId:"p37se4-41"})({fontWeight:"500",paddingBottom:"1rem"}),Je=Object(g.c)("h6").withConfig({displayName:"donation-form-view___StyledH4",componentId:"p37se4-42"})({color:"rgba(49, 53, 59, 0.75)",fontSize:"0.8571rem",fontWeight:"500",marginBottom:"0.25rem"}),Ye=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv17",componentId:"p37se4-43"})({color:"rgba(49, 53, 59, 0.75)",fontSize:"0.8571rem",fontWeight:"500",marginBottom:"0.25rem"}),Ke=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv18",componentId:"p37se4-44"})({marginTop:"1rem"}),Ge=Object(g.c)("h6").withConfig({displayName:"donation-form-view___StyledH5",componentId:"p37se4-45"})({color:"rgba(49, 53, 59, 0.75)",fontSize:"0.8571rem",fontWeight:"500",marginBottom:"0.25rem"}),Xe=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv19",componentId:"p37se4-46"})({color:"rgba(49, 53, 59, 0.75)",fontSize:"0.8571rem",fontWeight:"500",marginBottom:"0.25rem"}),$e=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv20",componentId:"p37se4-47"})({marginTop:"1rem"}),et=Object(g.c)("h6").withConfig({displayName:"donation-form-view___StyledH6",componentId:"p37se4-48"})({color:"rgba(49, 53, 59, 0.75)",fontSize:"0.8571rem",fontWeight:"500",marginBottom:"0.25rem"}),tt=Object(g.c)("div").withConfig({displayName:"donation-form-view___StyledDiv21",componentId:"p37se4-49"})({color:"rgba(49, 53, 59, 0.75)",fontSize:"0.8571rem",fontWeight:"500",marginBottom:"0.25rem"}),nt=function(e){var t=e.dataDonatur;return Object(o.jsx)(_.a,{children:function(e){var n,i,r,a,c,d,s,l,m,u,p=e.open;return Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)(qe,{_css13:[{paddingTop:"1rem",paddingBottom:"1rem",display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",textAlign:"left",fontSize:"1.143rem",color:"rgba(49, 53, 59, 0.96)",fontWeight:"600"}],children:[Object(o.jsx)("span",{children:"Data Diri"}),Object(o.jsx)(Ue,{_css14:[{width:"1.5rem",height:"1.5rem",color:"rgba(49, 53, 59, 0.75)",marginRight:"0.5rem"},p&&{"--transform-translate-x":"0","--transform-translate-y":"0","--transform-rotate":"180deg","--transform-skew-x":"0","--transform-skew-y":"0","--transform-scale-x":"1","--transform-scale-y":"1",transform:"translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))"}]})]}),Object(o.jsx)(K,{show:!p,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",children:Object(o.jsxs)(Qe,{children:[Object(o.jsxs)("div",{children:[Object(o.jsx)(Je,{children:"Nama"}),Object(o.jsx)(Ye,{children:null===t||void 0===t||null===(n=t.data)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.fullName})]}),(null===t||void 0===t||null===(r=t.data)||void 0===r||null===(a=r.data)||void 0===a?void 0:a.phoneNumber)&&Object(o.jsxs)(Ke,{children:[Object(o.jsx)(Ge,{children:"Nomor Ponsel"}),Object(o.jsx)(Xe,{children:null===t||void 0===t||null===(c=t.data)||void 0===c||null===(d=c.data)||void 0===d?void 0:d.phoneNumber})]}),(null===t||void 0===t||null===(s=t.data)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.email)&&Object(o.jsxs)($e,{children:[Object(o.jsx)(et,{children:"Email"}),Object(o.jsx)(tt,{children:null===t||void 0===t||null===(m=t.data)||void 0===m||null===(u=m.data)||void 0===u?void 0:u.email})]})]})})]})}})},ot=function(e){var t=e.query,n=e.donateSuggestion,i=e.onSubmit,a=e.isSubmitting,c=e.error,s=e.customError,m=e.dataDonatur,u=e.amountDonation,p=void 0===u?"":u,f=e.campaignTarget,h=Object(l.useRef)(null),j=Object(l.useState)(p||null),v=j[0],O=j[1],_=Object(l.useState)(!1),S=_[0],I=_[1],k=Object(l.useState)(0),N=k[0],L=k[1],D=Object(l.useState)(!1),R=D[0],B=D[1],E=Object(l.useState)(!1),P=E[0],A=E[1],T=Object(C.c)(),M=T.register,F=T.handleSubmit,Z=T.unregister,V=T.setError,H=(T.formState.errors,Object(w.b)().user),z=Object(l.useState)(1e4),W=z[0],q=z[1],U=Object(l.useState)({amountDonation:!1,payment:!1}),Q=U[0],J=U[1];function Y(){return K.apply(this,arguments)}function K(){return(K=Object(d.a)(r.a.mark((function e(){var t;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://api.ipgeolocation.io/ipgeo?apiKey=ea5ca9ece3a244488202e807bf4e7841");case 2:if((t=e.sent).ok){e.next=5;break}throw new Error("Failed to fetch IP data");case 5:return e.abrupt("return",t.json());case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object(l.useEffect)((function(){null!==s&&void 0!==s&&s.identifier&&V("idetifier",{type:"manual",message:s.identifier,shouldFocus:!0}),null!==s&&void 0!==s&&s.amountDonation&&J($($({},Q),{},{amountDonation:s.amountDonation}))}),[s]),Object(l.useEffect)((function(){c&&Object(x.b)(c,{closeButton:!1,position:"bottom-center",autoClose:1e3})}),[c]),Object(l.useEffect)((function(){H.defaultBankId&&L(H.defaultBankId)}),[H]),Object(l.useEffect)((function(){n.data&&q(n.data.minimumDonation)}),[n]);var G=function(){var e=Object(d.a)(r.a.mark((function e(){var t,n,o,i,a,c,d,s,l,m,u,p,f,g,b,h;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return JSON.parse(sessionStorage.getItem("dataCheckout")),(t=$({},Q)).amountDonation=!v,t.payment=!N,J(t),n="2807837926165420",o="EAADfHC0z2xYBO5TLHvFS1X9Sx4O7387OPzmGZCbrNxrMk071CZA2A0qQaiDZAXPnZBtTGOsJDJ7HjVpQoLvFQgeENZBQ5FBTHyqTLNRc0DzshWm498TIx5OthaQLONTPFzBrLcqdnV9j74C9HOFYM0G2vx9nuIE2ZAkSMjhKOsfIVYDjYvabcfjvplLbBGofvQ9wZDZD",e.prev=7,e.next=10,Y();case 10:return d=e.sent,s=d.ip,e.next=14,sha256(data.identifier);case 14:return l=e.sent,e.next=17,sha256(data.identifier);case 17:return m=e.sent,e.next=20,sha256(data.donor_name);case 20:return u=e.sent,e.next=23,sha256(data.donor_name);case 23:return p=e.sent,e.next=26,sha256(d.city.toLowerCase());case 26:return f=e.sent,e.next=29,sha256(d.country_code2.toLowerCase());case 29:return g=e.sent,e.next=32,sha256(d.country_name.toLowerCase());case 32:return b=e.sent,e.next=35,sha256(d.zipcode);case 35:if(h=e.sent,sha256(s),sha256(navigator.userAgent),fetch("https://graph.facebook.com/".concat(n,"/events?access_token=").concat(o),{method:"POST",headers:{"content-Type":"application/json"},body:JSON.stringify({data:[{event_name:"Add to cart",event_time:Math.floor((new Date).getTime()/1e3),user_data:{em:[l],ph:[m],fn:[u],ln:[p],ct:[f],st:[b],zp:[h],country:[g],client_ip_address:s,client_user_agent:navigator.userAgent},custom_data:{currency:"IDR",value:v,content_name:null===(i=campaign)||void 0===i?void 0:i.campaign_title,content_ids:[null===(a=campaign)||void 0===a?void 0:a.campaign_slug],contents:[{id:null===(c=campaign)||void 0===c?void 0:c.campaign_slug,quantity:1,delivery_category:"in_store"}]},event_source_url:window.location.href,action_source:"website"}]})}).ok){e.next=41;break}throw new Error("Failed to send event to Facebook");case 41:console.log("Event sent successfully"),e.next=47;break;case 44:e.prev=44,e.t0=e.catch(7),console.error("Error sending event:",e.t0);case 47:case"end":return e.stop()}}),e,null,[[7,44]])})));return function(){return e.apply(this,arguments)}}();return Object(o.jsxs)(o.Fragment,{children:[R&&Object(o.jsx)(Pe,{methods:t.data||[],defaultMethod:N,selectMethod:function(e){return L(e)},handleClose:function(){return B(!1)}}),Object(o.jsx)(ee,{children:Object(o.jsx)(nt,{dataDonatur:m})}),Object(o.jsxs)(te,{onSubmit:F((function(e){if(parseInt(v)<parseInt(W))return h.current.scrollIntoView(),void A(!0);i($($({},e),{},{selectedNominal:v,anonymous:S,bank_id:N}))})),children:[Object(o.jsxs)(ne,{children:["hewan-kurban"==campaignCategory?Object(o.jsx)(oe,{ref:h,children:"Nominal"}):Object(o.jsx)(ie,{ref:h,children:"Nominal Donasi"}),Object(o.jsxs)(re,{children:[Object(o.jsxs)(ae,{children:[Object(o.jsx)(ce,{onValueChange:function(e){var t=e.value;return O(t)},value:"hewan-kurban"==campaignCategory?f:v,placeholder:"0",_css3:[{textAlign:"right",marginBottom:"0",color:"rgba(49, 53, 59, 0.96)",fontSize:"1.429rem",fontWeight:"600"},Q.amountDonation&&{"--border-opacity":"1",borderColor:"rgba(247, 104, 91, var(--border-opacity))"}]}),Object(o.jsx)(de,{children:"Rp"})]}),Object(o.jsx)(se,{_css4:[{"--text-opacity":"1",color:"rgba(247, 104, 91, var(--text-opacity))",marginBottom:"0.75rem",display:"flex",alignItems:"center",fontWeight:"400"},Object(g.b)(["margin-top:2px;font-size:10px;"])],children:Object(o.jsx)(Fe,{isShow:Q.amountDonation})})]}),(P||v>0&&v<W)&&Object(o.jsxs)(b.a,{type:"warningDefault",children:[Object(o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:Object(o.jsx)("path",{d:"M8 1.3335C4.318 1.3335 1.3335 4.3185 1.3335 8C1.3335 11.6815 4.3185 14.6665 8 14.6665C11.682 14.6665 14.6665 11.6815 14.6665 8C14.6665 4.318 11.6815 1.3335 8 1.3335ZM8 11.5065C7.632 11.5065 7.3335 11.208 7.3335 10.84V7.7335C7.3335 7.3655 7.632 7.067 8 7.067C8.368 7.067 8.6665 7.3655 8.6665 7.7335V10.84C8.6665 11.208 8.368 11.5065 8 11.5065ZM8 6.1735C7.54 6.1735 7.1665 5.8005 7.1665 5.34C7.1665 4.8795 7.5395 4.5065 8 4.5065C8.458 4.5065 8.8295 4.876 8.8335 5.333C8.83 5.793 8.4595 6.166 8.001 6.1735H8Z",fill:"#F59E0B"})}),"Minimal jumlah donasi sebesar Rp 10.000"]})]}),Object(o.jsxs)(le,{children:[Object(o.jsx)(me,{ref:h,children:"Metode Pembayaran"}),v<W?Object(o.jsxs)("span",{children:[Object(o.jsx)(ue,{_css5:[{display:"flex",justifyContent:"space-between",alignItems:"center",borderWidth:"1px",borderColor:"rgba(49, 53, 59, 0.12)",paddingLeft:"1rem",paddingRight:"0.5rem",borderRadius:"0.5rem",cursor:"pointer"},Q&&{"--border-opacity":"1",borderColor:"rgba(247, 104, 91, var(--border-opacity))"},Object(g.b)(["height:42px;"])],children:Object(o.jsxs)(pe,{children:[Object(o.jsx)(Ae,{}),Object(o.jsx)(fe,{children:"Pilih Pembayaran"})]})}),Object(o.jsx)(ge,{_css6:[{"--text-opacity":"1",color:"rgba(247, 104, 91, var(--text-opacity))",display:"flex",alignItems:"center",fontWeight:"400"},Object(g.b)(["margin-top:2px;font-size:10px;"])],children:"Lengkapi dahulu nominal dan data diri"})]}):Object(o.jsxs)("span",{children:[Object(o.jsx)(Le,{isLoading:t.isLoading,methods:t.data||[],selectedId:N,setPaymentMethodOpen:function(){return B(!0)},errorRequired:Q.payment}),function(){var e=!1;if(N){var n,o=!1;
1t.data&&Object.keys(t.data).forEach((function(e){var n=t.data[e].banks;Object.keys(n).forEach((function(e){var t=n[e];t.id===parseInt(N)&&(o=t)}))})),(null===(n=o)||void 0===n?void 0:n.type)===y.o.OVO?e=!0:Z("ovo_phone")}return e}()&&Object(o.jsx)(be,{placeholder:"Nomor OVO",required:!0,name:"ovo_phone",register:M({required:"Mohon diisi terlebih dahulu"}),disableFormatting:!0})]}),Object(o.jsxs)(he,{children:[Object(o.jsxs)(je,{children:[Object(o.jsx)(ve,{checked:S,type:"checkbox",name:"anomim",onChange:function(e){return I(e.target.checked)}}),Object(o.jsx)(Oe,{children:"Sembunyikan nama saya (Anonim)"})]}),Object(o.jsx)(ye,{placeholder:"Berikan Doa terbaik untuk mereka (Opsional)",rows:4,name:"pray",register:M,maxlength:"120"})]})]}),Object(o.jsx)(Ce,{children:Object(o.jsxs)(we,{variant:y.b.TRANSACTIONAL,size:"large",id:"initial-checkout",disabled:a,isLoading:a,onClick:G,children:[Object(o.jsx)(xe,{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(o.jsx)("path",{d:"M16.6773 4.02903C18.9289 4.25888 20.8249 5.83989 21.3677 8.51807C21.9648 11.464 20.4434 14.1641 18.7532 16.0376C17.0502 17.9253 14.779 19.4264 12.9867 19.9317C12.6639 20.0228 12.3217 20.0228 11.9988 19.9317C10.2027 19.4254 7.94991 17.9249 6.25772 16.0396C4.57506 14.1649 3.07156 11.4805 3.61188 8.54862C4.11095 5.8406 6.02554 4.25787 8.28253 4.02891C9.74421 3.88062 11.2536 4.30832 12.4907 5.20033C13.719 4.31033 15.2169 3.87994 16.6773 4.02903Z",fill:"white"})}),"Lanjutkan Pembayaran"]})})]}),Object(o.jsx)(We,{})]})},it=n("Uvq/"),rt=n("ztjk"),at=n("Az29"),ct=n("r5vi"),dt=n("20a2");function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mt=function(e){var t=e.slug,n=e.dataDonatur,i=e.amountDonation,a=e.contact,m=e.campaignTarget,p=Object(at.b)(),g=Object(ct.a)(["utm"]),b=Object(s.a)(g,1)[0],h=Object(l.useRef)(f.a.CancelToken.source()),j=Object(dt.useRouter)(),v=Object(w.b)(),O=Object(l.useState)(!1),C=O[0],_=O[1],S=Object(l.useState)(null),I=S[0],k=S[1],N=Object(l.useState)({identifier:null}),L=N[0],D=N[1],R=Object(it.a)("payment_methods",(function(){return u.a.bank.listPaymentMethod(h.current.token).then((function(e){return e.data}))})),B=Object(it.a)("donate_suggestion",(function(){return u.a.donationSuggestion.listSuggestion(h.current.token).then((function(e){return e.data}))})),E=function(){var e=Object(d.a)(r.a.mark((function e(o){var i,d,s,l,m,f,g,O,y,C,w,S,I,N,R,B,E;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,k(null),_(!0),O=o.selectedNominal,(y=Object(c.a)(o,["selectedNominal"])).is_masking=!0,a.includes("@")||a.includes(".")?/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(a)?y.donor_email=a:D(lt(lt({},L),{},{identifier:"Nomor whatsapp atau email tidak valid"})):/^\+?((\d\-|\d)+\d){5,}$/gi.test(a)?y.donor_phone=a:D(lt(lt({},L),{},{identifier:"Nomor whatsapp atau email tidak valid"})),null!==n&&void 0!==n&&null!==(i=n.data)&&void 0!==i&&null!==(d=i.data)&&void 0!==d&&d.fullName&&(y.donor_name=null===n||void 0===n||null===(C=n.data)||void 0===C||null===(w=C.data)||void 0===w?void 0:w.fullName),y.donation=O,"general"===t?y.type_donation="Sumbangan Umum":y.campaign_slug=t,y.channel_source=null===(s=b.utm)||void 0===s?void 0:s.utm_source,y.channel_medium=null===(l=b.utm)||void 0===l?void 0:l.utm_medium,y.channel_campaign=null===(m=b.utm)||void 0===m?void 0:m.utm_campaign,y.channel_content=null===(f=b.utm)||void 0===f?void 0:f.utm_content,y.channel_term=null===(g=b.utm)||void 0===g?void 0:g.utm_term,j.query.ref&&(y.code_ref=j.query.ref),!O||!y.bank_id){e.next=27;break}return e.next=18,u.a.donation.create(h.current.token,y).then((function(e){return e})).catch((function(){x.b.error("Terjadi kesalahan pada sistem")}));case 18:return S=e.sent,I=S.data,N="/donation/".concat(I.donation_number,"/checkout?"),I.faspay_redirect_url&&(N+="&redirect_url=".concat(encodeURIComponent(I.faspay_redirect_url))),I.snap_token&&(N+="&snap_token=".concat(I.snap_token)),I.permataQr&&window.sessionStorage.setItem("permata_qr",I.permataQr),v.isLogin()?v.saveUserData(lt(lt({},v.user),{},{defaultBankId:y.bank_id})):v.saveUserData(lt(lt({},v.user),{},{fullName:"",email:y.donor_email,phoneNumber:y.donor_phone,defaultBankId:y.bank_id})),p.pxlTrackInitiateCheckout(),e.abrupt("return",j.push(N));case 27:_(!1),e.next=34;break;case 30:e.prev=30,e.t0=e.catch(0),_(!1),400===(null===e.t0||void 0===e.t0?void 0:e.t0.status)||404===(null===e.t0||void 0===e.t0?void 0:e.t0.status)?k(null===e.t0||void 0===e.t0||null===(R=e.t0.data)||void 0===R?void 0:R.message[0].message):422===(null===e.t0||void 0===e.t0?void 0:e.t0.status)?(E=Object.keys(null===(B=e.t0.data)||void 0===B?void 0:B.message).map((function(t){return e.t0.data.message[t][0].message})).join(", "),k(E)):rt.a.error(e.t0);case 34:case"end":return e.stop()}}),e,null,[[0,30]])})));return function(t){return e.apply(this,arguments)}}();return Object(l.useEffect)((function(){return function(){h.current&&h.current.cancel(y.s.COMPONENT_UNMOUNT)}}),[]),Object(o.jsx)(ot,{query:R,donateSuggestion:B,onSubmit:E,isSubmitting:C,error:I,customError:L,dataDonatur:n,amountDonation:i,campaignTarget:m})}},XH0y:function(e,t,n){var o,i;!function(r,a){"use strict";void 0===(i="function"===typeof(o=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"];function i(e,t){var n=e[t];if("function"===typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(o){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function r(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(o){return"debug"===o&&(o="log"),typeof console!==t&&("trace"===o&&n?r:void 0!==console[o]?i(console,o):void 0!==console.log?i(console,"log"):e)}function c(t,n){for(var i=0;i<o.length;i++){var r=o[i];this[r]=i<t?e:this.methodFactory(r,t,n)}this.log=this.debug}function d(e,n,o){return function(){typeof console!==t&&(c.call(this,n,o),this[e].apply(this,arguments))}}function s(e,t,n){return a(e)||d.apply(this,arguments)}function l(e,n,i){var r,a=this,d="loglevel";function l(e){var n=(o[e]||"silent").toUpperCase();if(typeof window!==t&&d){try{return void(window.localStorage[d]=n)}catch(i){}try{window.document.cookie=encodeURIComponent(d)+"="+n+";"}catch(i){}}}function m(){var e;if(typeof window!==t&&d){try{e=window.localStorage[d]}catch(i){}if(typeof e===t)try{var n=window.document.cookie,o=n.indexOf(encodeURIComponent(d)+"=");-1!==o&&(e=/^([^;]+)/.exec(n.slice(o))[1])}catch(i){}return void 0===a.levels[e]&&(e=void 0),e}}"string"===typeof e?d+=":"+e:"symbol"===typeof e&&(d=void 0),a.name=e,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=i||s,a.getLevel=function(){return r},a.setLevel=function(n,o){if("string"===typeof n&&void 0!==a.levels[n.toUpperCase()]&&(n=a.levels[n.toUpperCase()]),!("number"===typeof n&&n>
1=0&&n<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(r=n,!1!==o&&l(n),c.call(a,n,e),typeof console===t&&n<a.levels.SILENT)return"No console available for logging"},a.setDefaultLevel=function(e){m()||a.setLevel(e,!1)},a.enableAll=function(e){a.setLevel(a.levels.TRACE,e)},a.disableAll=function(e){a.setLevel(a.levels.SILENT,e)};var u=m();null==u&&(u=null==n?"WARN":n),a.setLevel(u,!1)}var m=new l,u={};m.getLogger=function(e){if("symbol"!==typeof e&&"string"!==typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=u[e];return t||(t=u[e]=new l(e,m.getLevel(),m.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return m.noConflict=function(){return typeof window!==t&&window.log===m&&(window.log=p),m},m.getLoggers=function(){return u},m.default=m,m})?o.call(t,n,t,e):o)||(e.exports=i)}()},jGNU:function(e,t,n){"use strict";var o=n("nKUr"),i=n("vOnD"),r=n("wHSu"),a=n("IP2g"),c=n("q1tI"),d=Object(i.c)("div").withConfig({displayName:"BottomSheet___StyledDiv",componentId:"sc-14gsx0e-0"})({position:"fixed",zIndex:"40",bottom:"0",left:"0",right:"0",top:"0",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",width:"100vw",height:"100vh","--bg-opacity":"0.5",backgroundColor:"rgba(74, 85, 104, var(--bg-opacity))"}),s=Object(i.c)("div").withConfig({displayName:"BottomSheet___StyledDiv2",componentId:"sc-14gsx0e-1"})(["",""],(function(e){return e._css3})),l=Object(i.c)("div").withConfig({displayName:"BottomSheet___StyledDiv3",componentId:"sc-14gsx0e-2"})(["",""],(function(e){return e._css4})),m=Object(i.c)("div").withConfig({displayName:"BottomSheet___StyledDiv4",componentId:"sc-14gsx0e-3"})({marginTop:"1.25rem",width:"100%"});var u=Object(i.c)("div").withConfig({displayName:"BottomSheet___StyledDiv5",componentId:"sc-14gsx0e-4"})({display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"2rem",paddingTop:"0.75rem",paddingBottom:"0.75rem"}),p=Object(i.c)(a.a).withConfig({displayName:"BottomSheet___StyledFontAwesomeIcon",componentId:"sc-14gsx0e-5"})({":hover":{"--text-opacity":"1",color:"rgba(20, 194, 211, var(--text-opacity))"},fontSize:"1.429rem",cursor:"pointer"}),f=Object(i.c)("span").withConfig({displayName:"BottomSheet___StyledSpan",componentId:"sc-14gsx0e-6"})({marginLeft:"1rem",fontSize:"1.286rem"}),g=function(e){var t=e.onClose,n=e.title,i=e.rightButton;return Object(o.jsxs)(u,{children:[Object(o.jsxs)("div",{children:[Object(o.jsx)(p,{icon:r.o,onClick:t}),Object(o.jsx)(f,{children:n})]}),Object(o.jsx)("div",{children:i&&i})]})};t.a=function(e){var t=e.title,n=void 0===t?"":t,r=e.onClose,a=void 0===r?function(){}:r,u=e.children,p=e.rightButton,f=e.bottomButton;return Object(c.useEffect)((function(){return document.body.style.overflow="hidden",document.body.style.position="relative",function(){document.body.style.overflow="auto",document.body.style.position=null}}),[]),Object(o.jsx)(d,{children:Object(o.jsxs)(s,{_css3:[Object(i.b)(["height:auto;"]),{position:"sticky",padding:"1.25rem",width:"480px","--bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--bg-opacity))",borderTopLeftRadius:"0.75rem",borderTopRightRadius:"0.75rem",bottom:"0","@media (max-width: 480px)":{width:"100%"}}],children:[Object(o.jsx)(g,{onClose:a,title:n,rightButton:p}),Object(o.jsx)(l,{_css4:[Object(i.b)(["max-height:60vh;height:auto;"]),{"--bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--bg-opacity))",overflow:"auto"}],children:u}),f&&Object(o.jsx)(m,{children:f})]})})}},lSNA:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},wtrr:function(e,t,n){"use strict";var o=n("cpVT"),i=n("dhJC"),r=n("nKUr"),a=n("vOnD"),c=n("xY5u");n("q1tI");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?d(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=Object(a.c)(c.a).withConfig({displayName:"Avatar___StyledImage",componentId:"nx8ztw-0"})({display:"inline",marginRight:"1rem",borderRadius:"9999px",objectFit:"cover"});function m(e){var t=e.src,n=e.size,o=void 0===n?48:n;return Object(r.jsx)(l,{style:{width:o,height:o},defaultImage:"https://images.pexels.com/photos/2589653/pexels-photo-2589653.jpeg?auto=compress&cs=tinysrgb&h=650&w=940",src:t,alt:"profile"})}var u=Object(a.c)(c.a).withConfig({displayName:"Avatar___StyledImage2",componentId:"nx8ztw-1"})(["",""],(function(e){return e._css3}));m.Large=function(e){var t=e.src,n=Object(i.a)(e,["src"]);return Object(r.jsx)(u,s(s({src:t,defaultImage:"https://images.pexels.com/photos/2589653/pexels-photo-2589653.jpeg?auto=compress&cs=tinysrgb&h=650&w=940"},n),{},{_css3:[Object(a.b)(["width:95px;height:95px;"]),{borderRadius:"9999px",objectFit:"cover"}]}))},t.a=m},xY5u:function(e,t,n){"use strict";var o=n("cpVT"),i=n("nKUr"),r=n("dhJC"),a=n("vOnD"),c=(n("q1tI"),n("A3CJ")),d=n("p18s");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m=Object(a.c)(c.Img).withConfig({displayName:"Image___StyledImg",componentId:"sc-1xy32ds-0"})(["",""],(function(e){return e._css}));t.a=function(e){var t=e.src,n=e.defaultImage,o=void 0===n?d.a.DEFAULT_IMAGE:n,a=e.imgFluid,c=void 0!==a&&a,s=Object(r.a)(e,["src","defaultImage","imgFluid"]);return Object(i.jsx)(m,l(l({src:[t,o]},s),{},{_css:[c&&{width:"100%"}]}),t)}},ztjk:function(e,t,n){"use strict";var o=n("XH0y"),i=n.n(o),r={info:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";i.a.info(t,e)},error:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";i.a.error(t,e)},debug:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";i.a.debug(t,e)},warn:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";i.a.warn(t,e)}};t.a=r}}]);

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.