1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5634],{7170:(e,r,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/integration",function(){return n(8098)}])},8874:(e,r,n)=>{"use strict";n.d(r,{$W:()=>o,Bq:()=>m,DT:()=>g,F4:()=>h,QV:()=>C,Sk:()=>v,WJ:()=>p,bg:()=>u,ej:()=>b,ki:()=>j,n4:()=>x,nW:()=>c,rX:()=>d,w4:()=>y,wx:()=>f});var a=n(6540),t=n(4335),s=n(8465),i=n.n(s),l=n(8122);let o={adminMail:"[email protected]",server:"https://donation.divyavrat.com/"},c=e=>{(0,a.useEffect)(()=>{let r=document.createElement("script");return r.src=e,r.async=!0,document.body.appendChild(r),()=>{document.body.removeChild(r)}},[e])},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",[r,n]=(0,a.useState)("");return(0,a.useEffect)(()=>{n(localStorage[e]||"")},[]),r},h=e=>{e&&(e.preventDefault(),e.stopPropagation())},u=()=>{"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 r=e.slice(0,12).replace(/\D/g,""),n=r.match(/^(\d{1,3})(\d{0,3})(\d{0,4})$/);return n&&(r="".concat(n[1]).concat(n[2]?" ":"").concat(n[2]).concat(n[3]?"-":"").concat(n[3])),r},p=e=>{var r=document.createElement("textarea");r.value=e,r.style.top="0",r.style.left="0",r.style.position="fixed",document.body.appendChild(r),r.focus(),r.select();try{document.execCommand("copy")}catch(e){console.error("Fallback: Oops, unable to copy",e)}document.body.removeChild(r)},j=e=>{t.A.post("/api/mail",e)},f=e=>e;function v(e){return new Promise((r,n)=>{let a=new FileReader;a.onloadend=()=>r(a.result),a.readAsDataURL(e)})}async function y(e){try{return await (0,l.A)(e,{maxSizeMB:1,maxWidthOrHeight:1920,useWebWorker:!0})}catch(e){console.log(e)}}let b=e=>e&&e.toString?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):e,C=(e,r)=>{i().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(r=>{r.isConfirmed&&(e(),i().fire("Deleted!","Successfully deleted.","success"))})}},3261:(e,r,n)=>{"use strict";n.d(r,{A:()=>p});var a=n(4848),t=n(6540),s=n(5556),i=n.n(s),l=n(6715),o=n(6752),c=n(4968),d=n(9998),h=n(3422),u=n(4335),m=n(8874);function g(){let e=(0,l.useRouter)(),[r,n]=(0,t.useState)(0),[s,i]=(0,t.useState)(null),[g,x]=(0,t.useState)(null),p=(0,m.rX)("userImage"),j=(0,m.rX)("type")||"user",f=(0,m.rX)("lastPage");return(0,t.useEffect)(()=>{localStorage.org&&i(localStorage.org?JSON.parse(localStorage.org).image:null),"admin"==localStorage.type&&((0,m.bg)(),(async()=>{u.A.post("/api/mail",{type:"list"}).then(e=>{if(e&&e.data){var r;n(null===(r=e.data)||void 0===r?void 0:r.length)}})})())},[]),(0,a.jsxs)("header",{children:[(0,a.jsxs)("div",{className:"nav thin",children:[(0,a.jsx)("input",{type:"checkbox",id:"nav-check"}),(0,a.jsx)("div",{className:"nav-header",children:(0,a.jsx)("div",{className:"nav-title",children:(0,a.jsx)("a",{href:"/user/home",children:(0,a.jsx)("img",{className:"logo",alt:"",src:(0,m.wx)(s)||"/logo.png",onError:e=>{"/logo.png"!=e.target.src&&(e.target.src="/logo.png")}})})})}),(0,a.jsx)("div",{className:"nav-btn",children:(0,a.jsxs)("label",{htmlFor:"nav-check",children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})}),(0,a.jsxs)("div",{className:"nav-links",children:[(0,a.jsx)("a",{href:"/user/home",children:"Home"}),(0,a.jsx)("a",{href:"/user/report",children:"Reports"}),("org"==j||"admin"==j)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("a",{href:"/user/campaign",children:"Campaigns"}),(0,a.jsx)("a",{href:"/user/import",children:"Import"}),(0,a.jsx)("a",{href:"/user/integration",children:"Integration"})]}),"org"==j&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("a",{href:"/user/create",children:"Start New Campaign"})}),"admin"==j&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("a",{href:"/admin/clients",children:"Clients"}),(0,a.jsx)("a",{href:"/admin/notification",children:(0,a.jsx)(o.A,{badgeContent:r,color:"primary",children:(0,a.jsx)(h.A,{})})})]}),"user"==j&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("a",{href:"/page/donate?id="+f,children:"GIVE"})}),(0,a.jsx)("a",{style:{padding:0,marginRight:40},id:"menu-button","aria-controls":"headerMenu","aria-haspopup":"true",onClick:e=>x(e.currentTarget),children:(0,a.jsx)("img",{alt:"User",src:(0,m.wx)(p)||"/img/user.jpg",onError:e=>{"/img/user.jpg"!=e.target.src&&(e.target.src="/img/user.jpg")},className:"img-fluid img-fit border-circle nav-avatar"})})]})]}),(0,a.jsxs)(c.A,{id:"headerMenu",anchorEl:g,open:!!g,onClose:()=>x(null),MenuListProps:{"aria-labelledby":"menu-button"},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:[(0,a.jsx)(d.A,{onClick:()=>e.push("/user/profile"),children:"Profile"}),(0,a.jsx)(d.A,{href:"/",onClick:()=>{localStorage.clear(),e.push("/")},children:"Logout"})]})]})}function x(){let e=(0,m.rX)("type");return(0,a.jsxs)("footer",{className:"thin",children:[(0,a.jsxs)("a",{href:"/",className:"flex flex-row flex-center",children:[(0,a.jsx)("span",{className:"hidden-xs mr-20",children:"Powered by "}),(0,a.jsx)("img",{src:"/logo.png",className:"logo",alt:""})]}),(0,a.jsxs)("div",{id:"FooterRightLinks",className:"ml-auto",children:["admin"!=e&&(0,a.jsx)("a",{href:"/page/helpmessage",className:"mr-20",children:"Message to Admin"}),(0,a.jsx)("a",{href:"/page/contact",className:"mr-20",children:"Contact Us"})]})]})}
1function p(e){let{header:r,footer:n,children:s,className:i,background:o,Component:c,pageProps:d}=e,h=(0,l.useRouter)();return(0,t.useEffect)(()=>{let e=document.querySelector("#jss-server-side");e&&e.parentElement.removeChild(e)},[]),(0,t.useEffect)(()=>{h&&h.pathname&&(-1!=h.pathname.indexOf("user")||-1!=h.pathname.indexOf("admin"))&&!localStorage.userid&&h.push("/")},[h]),(0,a.jsxs)("main",{className:"loggedinLayout "+i,children:[r&&(0,a.jsx)(g,{}),(0,a.jsx)(c,{...d}),s&&(0,a.jsx)("section",{children:s}),n&&(0,a.jsx)(x,{}),(0,a.jsx)("style",{children:o?"\n main{\n background:#3D652A url('".concat(o,"') no-repeat center center;\n background-size:cover;\n }\n "):r?"main{background:#F9F9FB;}":""})]})}p.propTypes={Component:i().func.isRequired}},8098:(e,r,n)=>{"use strict";n.r(r),n.d(r,{default:()=>g});var a=n(4848),t=n(6540),s=n(3261),i=n(5026),l=n(2491),o=n(4505),c=n(8334),d=n(7282),h=n(3352),u=n(2480);function m(){let[e,r]=(0,t.useState)(""),[n,s]=(0,t.useState)(""),[m,g]=(0,t.useState)(""),x=()=>{localStorage.reClientId=e,localStorage.reSecret=n,localStorage.benevityId=m,o.Ay.success("Configuration Saved")},p=e=>{(0,o.Ay)("Syncing with "+e+"..."),setTimeout(()=>{o.Ay.success(e+" Sync Completed")},2e3)};return(0,a.jsxs)("div",{className:"container p-50",children:[(0,a.jsx)("h2",{children:"Integrations Dashboard"}),(0,a.jsxs)(c.A,{container:!0,spacing:3,children:[(0,a.jsx)(c.A,{item:!0,xs:12,md:6,children:(0,a.jsx)(d.A,{children:(0,a.jsxs)(h.A,{children:[(0,a.jsx)(u.A,{variant:"h5",component:"h2",children:"Raiser's Edge NXT (Sky API)"}),(0,a.jsx)("br",{}),(0,a.jsx)(l.A,{label:"Client ID",fullWidth:!0,value:e,onChange:e=>r(e.target.value)}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(l.A,{label:"Client Secret",fullWidth:!0,type:"password",value:n,onChange:e=>s(e.target.value)}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(i.A,{variant:"contained",color:"primary",onClick:x,children:"Save Config"}),"\xa0\xa0",(0,a.jsx)(i.A,{variant:"contained",color:"secondary",onClick:()=>p("Raiser's Edge"),children:"Sync Data"}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(i.A,{size:"small",children:"Import Data"})," \xa0 ",(0,a.jsx)(i.A,{size:"small",children:"Export Data"})]})})}),(0,a.jsx)(c.A,{item:!0,xs:12,md:6,children:(0,a.jsx)(d.A,{children:(0,a.jsxs)(h.A,{children:[(0,a.jsx)(u.A,{variant:"h5",component:"h2",children:"Benevity Company Services"}),(0,a.jsx)("br",{}),(0,a.jsx)(l.A,{label:"Benevity ID",fullWidth:!0,value:m,onChange:e=>g(e.target.value)}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(i.A,{variant:"contained",color:"primary",onClick:x,children:"Save Config"}),"\xa0\xa0",(0,a.jsx)(i.A,{variant:"contained",color:"secondary",onClick:()=>p("Benevity"),children:"Sync Data"})]})})})]})]})}function g(){return(0,a.jsx)(s.A,{Component:m,header:!0,footer:!0})}}},e=>{var r=r=>e(e.s=r);e.O(0,[3478,9906,8037,9736,1021,3359,636,6593,8792],()=>r(7170)),_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.