1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6061],{2196:(e,a,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/page/tableu",function(){return r(5749)}])},8874:(e,a,r)=>{"use strict";r.d(a,{$W:()=>i,Bq:()=>h,DT:()=>p,F4:()=>u,QV:()=>C,Sk:()=>v,WJ:()=>x,bg:()=>m,ej:()=>y,ki:()=>j,n4:()=>g,nW:()=>c,rX:()=>d,w4:()=>b,wx:()=>f});var t=r(6540),n=r(4335),s=r(8465),o=r.n(s),l=r(8122);let i={adminMail:"[email protected]",server:"https://donation.divyavrat.com/"},c=e=>{(0,t.useEffect)(()=>{let a=document.createElement("script");return a.src=e,a.async=!0,document.body.appendChild(a),()=>{document.body.removeChild(a)}},[e])},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",[a,r]=(0,t.useState)("");return(0,t.useEffect)(()=>{r(localStorage[e]||"")},[]),a},u=e=>{e&&(e.preventDefault(),e.stopPropagation())},m=()=>{"admin"!=localStorage.type&&(window.location.href="/")},h=e=>e.replace(/(^[,\s]+)|([,\s]+$)/g,""),p=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()),g=e=>{let a=e.slice(0,12).replace(/\D/g,""),r=a.match(/^(\d{1,3})(\d{0,3})(\d{0,4})$/);return r&&(a="".concat(r[1]).concat(r[2]?" ":"").concat(r[2]).concat(r[3]?"-":"").concat(r[3])),a},x=e=>{var a=document.createElement("textarea");a.value=e,a.style.top="0",a.style.left="0",a.style.position="fixed",document.body.appendChild(a),a.focus(),a.select();try{document.execCommand("copy")}catch(e){console.error("Fallback: Oops, unable to copy",e)}document.body.removeChild(a)},j=e=>{n.A.post("/api/mail",e)},f=e=>e;function v(e){return new Promise((a,r)=>{let t=new FileReader;t.onloadend=()=>a(t.result),t.readAsDataURL(e)})}async function b(e){try{return await (0,l.A)(e,{maxSizeMB:1,maxWidthOrHeight:1920,useWebWorker:!0})}catch(e){console.log(e)}}let y=e=>e&&e.toString?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):e,C=(e,a)=>{o().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(a=>{a.isConfirmed&&(e(),o().fire("Deleted!","Successfully deleted.","success"))})}},3261:(e,a,r)=>{"use strict";r.d(a,{A:()=>x});var t=r(4848),n=r(6540),s=r(5556),o=r.n(s),l=r(6715),i=r(6752),c=r(4968),d=r(9998),u=r(3422),m=r(4335),h=r(8874);function p(){let e=(0,l.useRouter)(),[a,r]=(0,n.useState)(0),[s,o]=(0,n.useState)(null),[p,g]=(0,n.useState)(null),x=(0,h.rX)("userImage"),j=(0,h.rX)("type")||"user",f=(0,h.rX)("lastPage");return(0,n.useEffect)(()=>{localStorage.org&&o(localStorage.org?JSON.parse(localStorage.org).image:null),"admin"==localStorage.type&&((0,h.bg)(),(async()=>{m.A.post("/api/mail",{type:"list"}).then(e=>{if(e&&e.data){var a;r(null===(a=e.data)||void 0===a?void 0:a.length)}})})())},[]),(0,t.jsxs)("header",{children:[(0,t.jsxs)("div",{className:"nav thin",children:[(0,t.jsx)("input",{type:"checkbox",id:"nav-check"}),(0,t.jsx)("div",{className:"nav-header",children:(0,t.jsx)("div",{className:"nav-title",children:(0,t.jsx)("a",{href:"/user/home",children:(0,t.jsx)("img",{className:"logo",alt:"",src:(0,h.wx)(s)||"/logo.png",onError:e=>{"/logo.png"!=e.target.src&&(e.target.src="/logo.png")}})})})}),(0,t.jsx)("div",{className:"nav-btn",children:(0,t.jsxs)("label",{htmlFor:"nav-check",children:[(0,t.jsx)("span",{}),(0,t.jsx)("span",{}),(0,t.jsx)("span",{})]})}),(0,t.jsxs)("div",{className:"nav-links",children:[(0,t.jsx)("a",{href:"/user/home",children:"Home"}),(0,t.jsx)("a",{href:"/user/report",children:"Reports"}),("org"==j||"admin"==j)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{href:"/user/campaign",children:"Campaigns"}),(0,t.jsx)("a",{href:"/user/import",children:"Import"}),(0,t.jsx)("a",{href:"/user/integration",children:"Integration"})]}),"org"==j&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("a",{href:"/user/create",children:"Start New Campaign"})}),"admin"==j&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{href:"/admin/clients",children:"Clients"}),(0,t.jsx)("a",{href:"/admin/notification",children:(0,t.jsx)(i.A,{badgeContent:a,color:"primary",children:(0,t.jsx)(u.A,{})})})]}),"user"==j&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("a",{href:"/page/donate?id="+f,children:"GIVE"})}),(0,t.jsx)("a",{style:{padding:0,marginRight:40},id:"menu-button","aria-controls":"headerMenu","aria-haspopup":"true",onClick:e=>g(e.currentTarget),children:(0,t.jsx)("img",{alt:"User",src:(0,h.wx)(x)||"/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,t.jsxs)(c.A,{id:"headerMenu",anchorEl:p,open:!!p,onClose:()=>g(null),MenuListProps:{"aria-labelledby":"menu-button"},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:[(0,t.jsx)(d.A,{onClick:()=>e.push("/user/profile"),children:"Profile"}),(0,t.jsx)(d.A,{href:"/",onClick:()=>{localStorage.clear(),e.push("/")},children:"Logout"})]})]})}function g(){let e=(0,h.rX)("type");return(0,t.jsxs)("footer",{className:"thin",children:[(0,t.jsxs)("a",{href:"/",className:"flex flex-row flex-center",children:[(0,t.jsx)("span",{className:"hidden-xs mr-20",children:"Powered by "}),(0,t.jsx)("img",{src:"/logo.png",className:"logo",alt:""})]}),(0,t.jsxs)("div",{id:"FooterRightLinks",className:"ml-auto",children:["admin"!=e&&(0,t.jsx)("a",{href:"/page/helpmessage",className:"mr-20",children:"Message to Admin"}),(0,t.jsx)("a",{href:"/page/contact",className:"mr-20",children:"Contact Us"})]})]})}function x(e){let{header:a,footer:r,children:s,className:o,background:i,Component:c,pageProps:d}=e,u=(0,l.useRouter)();return(0,n.useEffect)(()=>{let e=document.querySelector("#jss-server-side");e&&e.parentElement.removeChild(e)},[]),(0,n.useEffect)(()=>{u&&u.pathname&&(-1!=u.pathname.indexOf("user")||-1!=u.pathname.indexOf("admin"))&&!localStorage.userid&&u.push("/")},[u]),(0,t.jsxs)("main",{className:"loggedinLayout "+o,children:[a&&(0,t.jsx)(p,{}),(0,t.jsx)(c,{...d}),s&&(0,t.jsx)("section",{children:s}),r&&(0,t.jsx)(g,{}),(0,t.jsx)("style",{children:i?"\n main{\n background:#3D652A url('".concat(i,"') no-repeat center center;\n background-size:cover;\n }\n "):a?"main{background:#F9F9FB;}":""})]})}x.propTypes={Component:o().func.isRequired}},5749:(e,a,r)=>{"use strict";r.r(a),r.d(a,{default:()=>l});var t=r(4848),n=r(3261),s=r(6540);function o(){return(0,s.useEffect)(()=>{let e=document.createElement("script");return e.src="https://prod-useast-b.online.tableau.com/javascripts/api/viz_v1.js",e.async=!0,document.body.appendChild(e),()=>{document.body.removeChild(e)}},[]),(0,t.jsxs)("div",{className:"text-center p-50",children:[(0,t.jsx)("h1",{children:"Tableu"}),(0,t.jsx)("div",{className:"mx-auto tableauPlaceholder",style:{width:"90%",height:544},children:(0,t.jsxs)("object",{className:"tableauViz",width:"100%",height:"544",style:{display:"none"},children:[(0,t.jsx)("param",{name:"host_url",value:"https%3A%2F%2Fprod-useast-b.online.tableau.com%2F"})," ",(0,t.jsx)("param",{name:"embed_code_version",value:"3"})," ",(0,t.jsx)("param",{name:"site_root",value:"/t/theventigroup"}),(0,t.jsx)("param",{name:"name",value:"Project_1/Dashboard2_1"}),(0,t.jsx)("param",{name:"tabs",value:"no"}),(0,t.jsx)("param",{name:"toolbar",value:"yes"}),(0,t.jsx)("param",{name:"showAppBanner",value:"false"})]})})]})}let l=()=>(0,t.jsx)(n.A,{Component:o,header:!0,footer:!0})}},e=>{var a=a=>e(e.s=a);e.O(0,[3478,9906,8037,636,6593,8792],()=>a(2196)),_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.