1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1254],{1058:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/page/org",function(){return n(3470)}])},8874:(e,t,n)=>{"use strict";n.d(t,{$W:()=>o,Bq:()=>m,DT:()=>g,F4:()=>u,QV:()=>b,Sk:()=>j,WJ:()=>f,bg:()=>h,ej:()=>w,ki:()=>p,n4:()=>x,nW:()=>c,rX:()=>d,w4:()=>y,wx:()=>v});var r=n(6540),i=n(4335),l=n(8465),s=n.n(l),a=n(8122);let o={adminMail:"[email protected]",server:"https://donation.divyavrat.com/"},c=e=>{(0,r.useEffect)(()=>{let t=document.createElement("script");return t.src=e,t.async=!0,document.body.appendChild(t),()=>{document.body.removeChild(t)}},[e])},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",[t,n]=(0,r.useState)("");return(0,r.useEffect)(()=>{n(localStorage[e]||"")},[]),t},u=e=>{e&&(e.preventDefault(),e.stopPropagation())},h=()=>{"admin"!=localStorage.type&&(window.location.href="/")},m=e=>e.replace(/(^[,\s]+)|([,\s]+$)/g,""),g=e=>/^(([^<>()[\]\\.,;:\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()),x=e=>{let t=e.slice(0,12).replace(/\D/g,""),n=t.match(/^(\d{1,3})(\d{0,3})(\d{0,4})$/);return n&&(t="".concat(n[1]).concat(n[2]?" ":"").concat(n[2]).concat(n[3]?"-":"").concat(n[3])),t},f=e=>{var t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}catch(e){console.error("Fallback: Oops, unable to copy",e)}document.body.removeChild(t)},p=e=>{i.A.post("/api/mail",e)},v=e=>e;function j(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>t(r.result),r.readAsDataURL(e)})}async function y(e){try{return await (0,a.A)(e,{maxSizeMB:1,maxWidthOrHeight:1920,useWebWorker:!0})}catch(e){console.log(e)}}let w=e=>e&&e.toString?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):e,b=(e,t)=>{s().fire({title:"Are you sure?",text:"You won't be able to revert this!",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Yes, delete it!"}).then(t=>{t.isConfirmed&&(e(),s().fire("Deleted!","Successfully deleted.","success"))})}},9560:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(4848),i=n(3368),l=n.n(i),s=n(4505);function a(e){let{children:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l(),{children:[(0,r.jsx)("title",{children:"Donation"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/themepage.css"})]}),(0,r.jsxs)("main",{children:[(0,r.jsx)("div",{id:"background1",className:"loginBg"}),(0,r.jsx)("div",{id:"background2",className:"loginBg"}),(0,r.jsx)("div",{id:"background3",className:"loginBg"}),(0,r.jsx)("h3",{id:"websitetitle",children:(0,r.jsx)("a",{href:"/",children:"Venti"})}),(0,r.jsx)("div",{className:"form-structure",children:(0,r.jsx)("div",{children:t})})]}),(0,r.jsxs)("footer",{children:[(0,r.jsx)("span",{children:(0,r.jsx)("a",{href:"/",children:"\xa9 The Venti Group"})}),(0,r.jsxs)("ul",{id:"FooterRightLinks",children:[(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"/page/terms",children:"Terms"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"/page/privacy",children:"Privacy"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"/page/contact",children:"Contact Us"})})]})]}),(0,r.jsx)(s.l$,{})]})}},3470:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(4848),i=n(4335),l=n(6715),s=n(6540),a=n(8874),o=n(9560);let c=()=>{let[e,t]=(0,s.useState)(0),[n,c]=(0,s.useState)(null),[d,u]=(0,s.useState)(null),[h,m]=(0,s.useState)(null),[g,x]=(0,s.use
1State)(null),[f,p]=(0,s.useState)(null),v=(0,l.useRouter)();return(0,s.useEffect)(()=>{var e;(null==v?void 0:null===(e=v.query)||void 0===e?void 0:e.id)?(async()=>{i.A.post("/api/User",{action:"userDetail",userid:v.query.id}).then(e=>{if(e&&e.data){var n,r,i,l,s;let a=e.data;c(null===(n=a.org)||void 0===n?void 0:n.name),u(null===(r=a.org)||void 0===r?void 0:r.tagline),m(null===(i=a.org)||void 0===i?void 0:i.details),x(null===(l=a.org)||void 0===l?void 0:l.contact),p(null===(s=a.org)||void 0===s?void 0:s.image),t(1)}else t(-1)}).catch(()=>{t(-1)})})():t(0)},[v]),(0,r.jsxs)(o.default,{children:[(0,r.jsx)("style",{children:".form-structure{min-width:50vw;}h1{text-transform: capitalize;}"}),0==e?"Loading...":1==e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("img",{src:(0,a.wx)(f),alt:"",style:{maxWidth:200,margin:"auto"}}),(0,r.jsx)("h1",{children:n}),(0,r.jsx)("small",{children:d}),(0,r.jsxs)("p",{children:["Details: ",h]}),(0,r.jsxs)("p",{children:["Contact: ",g]})]}):"Not Found"]})}},3368:(e,t,n)=>{e.exports=n(6085)}},e=>{var t=t=>e(e.s=t);e.O(0,[3478,636,6593,8792],()=>t(1058)),_N_E=e.O()}]);
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.