text: (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{100:function(e,t,a){},101:function(e,t,a){e.exports=a.p+"static/media/default-profile-cover.41bbbe39.jpg"},103:function(e,t,a){},104:function(e,t,a){},106:function(e,t,a){},107:function(e,t,a){},109:function(e,t,a){"use strict";a.r(t);var n=a(0),l=a.n(n),r=a(17),c=a.n(r),s=(a(54),a(12)),o=a(5),m=(a(55),a(15)),i=a(16),u=a(2);a(56);function d(e){var t=e.classes,a=e.children;return l.a.createElement("div",{className:t?"container-fluid ".concat(t):"container-fluid"},a)}function E(e){var t=e.classes,a=e.children;return l.a.createElement("div",{className:t?"row ".concat(t):"row"},a)}function b(e){var t=e.size,a=e.classes,n=e.children;return t?l.a.createElement("div",{className:a?"".concat(t.split(" ").map(function(e){return"col-"+e}).join(" ")," ").concat(a):"".concat(t.split(" ").map(function(e){return"col-"+e}).join(" ")," ")},n):l.a.createElement("div",{className:a?"col ".concat(a):"col"},n)}a(57);function p(e){return l.a.createElement("div",{className:"form-group"},l.a.createElement("label",{htmlFor:e.id},e.label),l.a.createElement("input",e))}function g(e){return l.a.createElement("div",{className:"form-check"},l.a.createElement("input",{type:e.type,name:e.name,value:e.value,id:e.id,className:e.className}),l.a.createElement("label",{htmlFor:e.id,className:"form-check-label text-left"},e.label," ","true"===e.tooltip&&l.a.createElement("i",{"data-toggle":"modal","data-target":"#modal-".concat(e.tooltipId),className:"fas fa-info-circle ml-2"})))}function f(e){return l.a.createElement("div",{className:"custom-control custom-switch mt-3"},l.a.createElement("input",{type:"checkbox",className:"custom-control-input",id:e.id,onChange:e.change}),l.a.createElement("label",{className:"custom-control-label",htmlFor:e.id},e.switchTitle))}function h(e){return l.a.createElement("div",{className:"form-group"},l.a.createElement("label",{htmlFor:e.id},e.label),l.a.createElement("select",{className:"form-control",id:e.id},e.children))}function v(e){return l.a.createElement("div",null,l.a.createElement("button",e,e.children))}var N=function(){return l.a.createElement("div",{className:"modal fade",id:"modal-terms-and-conditions",tabIndex:"-1",role:"dialog","aria-hidden":"true"},l.a.createElement("div",{className:"modal-dialog modal-dialog-scrollable",role:"document"},l.a.createElement("div",{className:"modal-content",style:{maxHeight:"80vh"}},l.a.createElement("div",{className:"modal-body"},l.a.createElement("p",null,l.a.createElement("u",null,"Terms & Conditions"),":  ",l.a.createElement("br",null),l.a.createElement("br",null),'Please read these terms and conditions ("terms and conditions", "terms") carefully before using Noi website (\u201cwebsite\u201d, "service") operated by R Entertainment LLC ("us", \'we", "our").',l.a.createElement("br",null),l.a.createElement("br",null),"Conditions of use ",l.a.createElement("br",null),"By using this website, you certify that you have read and reviewed this Agreement and that you agree to comply with its terms. If you do not want to be bound by the terms of this Agreement, you are advised to leave the website accordingly. R Entertainment LLC only grants use and access of this website, its products, and its services to those who have accepted its terms.",l.a.createElement("br",null),l.a.createElement("br",null),"Privacy policy",l.a.createElement("br",null),"Before you continue using our website, we advise you to read our privacy policy regarding our user data collection. It will help you better understand our practices.",l.a.createElement("br",null),l.a.createElement("br",null),"Age restriction",l.a.createElement("br",null),"You must be at least 18 (eighteen) years of age before you can use this website. By using this website, you warrant that you are at least 18 years of age and you may legally adhere to this Agreement. R Entertainment LLC assumes no responsibility for liabilities related to age misrepresentation.",l.a.createElement("br",null),l.a.createElement("br",null),"Intellectual property",l.a.createElement("br",null),"You agree that all materials, products, and services provided on this website are the property of R Entertainment LLC, its affiliates, directors, officers, employees, agents, suppliers, or licensors including all copyrights, trade secrets, trademarks, patents, and other intellectual property. You also agree that you will not reproduce or redistribute the R Entertainment LLC\u2019s intellectual property in any way, including electronic, digital, or new trademark registrations.  You grant R Entertainment LLC a royalty-free and non-exclusive license to display, use, copy, transmit, and broadcast the content you upload and publish. For issues regarding intellectual property claims, you should contact the company in order to come to an agreement.",l.a.createElement("br",null),l.a.createElement("br",null),"User accounts",l.a.createElement("br",null),"As a user of this website, you may be asked to register with us and provide private information.  You are responsible for ensuring the accuracy of this information, and you are responsible for maintaining the safety and security of your identifying information. You are also responsible for all activities that occur under your account or password. If you think there are any possible issues regarding the security of your account on the website, inform us immediately so we may address it accordingly.",l.a.createElement("br",null),l.a.createElement("br",null),"We reserve all rights to terminate accounts, edit or remove content and cancel orders in their sole discretion.",l.a.createElement("br",null),l.a.createElement("br",null),"Applicable law ",l.a.createElement("br",null),"By visiting this website, you agree that the laws of the United States, without regard to principles of conflict laws, will govern these terms and conditions, or any dispute of any sort that might come between R Entertainment LLC and you, or its business partners and associates.",l.a.createElement("br",null),l.a.createElement("br",null),"Disputes",l.a.createElement("br",null),"Any dispute related in any way to your visit to this website or to products you purchase from us shall be arbitrated by state or federal court and you consent to exclusive jurisdiction and venue of such courts.",l.a.createElement("br",null),l.a.createElement("br",null),"Indemnification",l.a.createElement("br",null),"You agree to indemnify R Entertainment LLC and its affiliates and hold R Entertainment LLC harmless against legal claims and demands that may arise from your use or misuse of our services. We reserve the right to select our own legal counsel.",l.a.createElement("br",null),l.a.createElement("br",null),"Limitation on liability",l.a.createElement("br",null),"R Entertainment LLC is not liable for any damages that may occur to you as a result of your misuse of our website.",l.a.createElement("br",null),l.a.createElement("br",null),"R Entertainment LLC reserves the right to edit, modify, and change this Agreement any time. We shall let our users know of these changes through electronic mail. This Agreement is an understanding between R Entertainment LLC and the user, and this supersedes and replaces all prior agreements regarding the use of this website.")))))},y=a(6),j=a.n(y),w={createDj:function(e){return j.a.post("/api/djs",e)},createEvent:function(e){return j.a.post("/api/djs/event",e)},createRequest:function(e){return j.a.put("/api/djs/event",e)},getDj:function(e){return j.a.get("/api/djs/?userSub="+e)},updateDj:function(e){return j.a.put("/api/djs",e)},getAllDjs:function(){return j.a.get("/api/djs/all")},getActivatedEvent:function(e){return j.a.get("/api/djs/event/"+e)},updateEventStatus:function(e){return j.a.put("/api/djs/eventstatus",e)},updateRequest:function(e){return j.a.put("/api/djs/requests",e)},getSongStatusCount:function(e){return j.a.get("/api/djs/requests/"+e)},updateSongQueueNumber:function(e,t){return j.a.put("/api/djs/requests/"+e,t)},uploadImage:function(e){return j.a.post("https://api.cloudinary.com/v1_1/noimgmt/image/upload",e)}};a(75);var O=function(e){return l.a.createElement("div",null,l.a.createElement("nav",{className:"navbar fixed-top"},l.a.createElement("img",{src:"https://i.ibb.co/bdJNc5g/Noi-Logo-200x200.png",alt:"Noi-Logo-200x200",border:"0",width:"95",height:"95",className:"navbar-brand d-inline-block align-top"}),"welcome customer"===e.title?l.a.createElement("h1",{className:"text-center mr-3 text-white customer"},"WELCOME TO ",l.a.createElement("span",{className:"gold-color"},"NOI")):l.a.createElement("h1",{className:"text-center mr-3"},e.title)))};a(76);var x=function(e){return l.a.createElement("div",{className:"imageContainer"},l.a.createElement("p",null,"Select ",e.imageDescription," image to upload:"),l.a.createElement("input",{className:"selectImageField",type:"file",name:"file",placeholder:"Upload an Image",onChange:e.selectImage}),l.a.createElement("div",null,l.a.createElement("button",{className:"uploadImageBtns",onClick:e.uploadImage},"Upload Image")),e.loading?l.a.createElement("h3",null,"Loading ..."):l.a.createElement("img",{className:"imageHolder",src:e.image,alt:e.altTag,style:{width:"150px",color:"white"}}))},k=a(4),S=a(7),C=a.n(S),T=a(14),q={selectImage:function(){var e=Object(T.a)(C.a.mark(function e(t,a){return C.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a(t.target.files[0]);case 1:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),uploadImage:function(e,t,a,n){e.preventDefault(),a(!0);var l=new FormData;l.append("file",t),l.append("upload_preset","bxqprejb"),w.uploadImage(l).then(function(e){var t=e.data;console.log(t),n(t.secure_url),a(!1)}).catch(function(e){return console.log(e)})}};var I=function(){var e=Object(k.b)().user;console.log(e);var t=Object(n.useState)({fullName:"",djName:"",hometown:"",djStyle:"",email:"",instagram:""}),a=Object(u.a)(t,2),r=a[0],c=a[1],s=Object(n.useState)(!1),o=Object(u.a)(s,2),E=o[0],f=o[1],h=Object(n.useState)(),y=Object(u.a)(h,2),j=y[0],S=y[1],C=Object(n.useState)("https://via.placeholder.com/150"),T=Object(u.a)(C,2),I=T[0],A=T[1];function D(e){var t=e.target,a=t.name,n=t.value;c(Object(i.a)({},r,Object(m.a)({},a,n)))}return l.a.createElement("div",{className:"signup"},l.a.createElement(O,{title:"SIGNUP"}),l.a.createElement(d,{classes:"top-container"},l.a.createElement(b,{size:"12"},l.a.createElement("div",null,l.a.createElement("h1",{className:"mb-3"},"CREATE YOUR NOI PROFILE"),l.a.createElement("form",{style:{width:"300px"}},l.a.createElement(p,{onChange:D,type:"text",id:"fullName",name:"fullName",placeholder:"FULL NAME",label:"What's your real name?",className:"form-control"}),l.a.createElement(p,{onChange:D,type:"text",id:"djName",name:"djName",placeholder:"DJ NAME",label:"What's your DJ name?",className:"form-control"}),l.a.createElement(p,{onChange:D,type:"text",id:"hometown",name:"hometown",placeholder:"HOMETOWN",label:"Where are you from?",className:"form-control"}),l.a.createElement(p,{onChange:D,type:"text",id:"djStyle",name:"djStyle",placeholder:"DJ STYLE",label:"What type of music do you play?",className:"form-control"}),l.a.createElement(p,{onChange:D,type:"text",id:"email",name:"email",placeholder:"EMAIL",label:"What's your email?",className:"form-control"}),l.a.createElement(p,{onChange:D,type:"text",id:"instagram",name:"instagram",placeholder:"@INSTAGRAM",label:"What's your Instagram handle?",className:"form-control"}),l.a.createElement(x,{selectImage:function(e){return q.selectImage(e,S)},uploadImage:function(e){return q.uploadImage(e,j,f,A)},loading:E,image:I,altTag:"dj head shot",imageDescription:"profile"}),l.a.createElement(g,{type:"checkbox",className:"form-check-input",id:"terms",label:"I agree to the NOI Terms and Conditions",tooltip:"true",tooltipId:"terms-and-conditions"}),l.a.createElement(N,null),l.a.createElement(v,{onClick:function(t){t.preventDefault(),!1===document.querySelector("#terms").checked?document.querySelector("#terms").style.outline="3px solid red":w.createDj({fullName:r.fullName,djName:r.djName,hometown:r.hometown,djStyle:r.djStyle,email:r.email,instagram:r.instagram,profileImage:I,userSub:e.sub}).then(function(e){null!==e.data&&(console.log(e),window.location.replace("/dj/dashboard"))}).catch(function(e){return console.log(e)})},className:"btn btn-dark formBtn mt-5"},"Create NOI Profile"))))))};a(85);var A=function(e){return l.a.createElement("div",null,l.a.createElement("nav",{className:"navbar fixed-bottom navbar-light bg-dark mb-0"},l.a.createElement(b,{size:"3",classes:"text-center"},l.a.createElement("a",{className:"home"===e.current?"navbar-brand col text-center current-link mr-0 p-0":"navbar-brand col text-center not-current mr-0 p-0",href:"/dj/dashboard"},l.a.createElement("i",{className:"fas fa-home fa-2x"}),l.a.createElement("h3",null,"Home"))),l.a.createElement(b,{size:"3",classes:"text-center"},l.a.createElement("a",{className:"request"===e.current?"navbar-brand col text-center current-link mr-0 p-0":"navbar-brand col text-center not-current mr-0 p-0",href:"/dj/requests"},l.a.createElement("i",{className:"fas fa-music fa-2x"}),l.a.createElement("h3",null,"Requests"))),l.a.createElement(b,{size:"3",classes:"text-center"},l.a.createElement("a",{className:"activity"===e.current?"navbar-brand col text-center current-link mr-0 p-0":"navbar-brand col text-center not-current mr-0 p-0",href:"/dj/activity"},l.a.createElement("i",{className:"fas fa-sliders-h fa-2x"}),l.a.createElement("h3",null,"Activity"))),l.a.createElement(b,{size:"3",classes:"text-center"},l.a.createElement("a",{className:"profile"===e.current?"navbar-brand col text-center current-link mr-0 p-0":"navbar-brand col text-center not-current mr-0 p-0",href:"/dj/profile"},l.a.createElement("i",{className:"fas fa-user fa-2x"}),l.a.createElement("h3",null,"Profile")))))};a(86);var D=function(e){var t,a=["January","February","March","April","May","June","July","August","September","October","November","December"][e.eventDate.slice(5,7)-1];t="0"===e.eventDate.slice(8,9)?parseInt(e.eventDate.slice(9,10)):parseInt(e.eventDate.slice(8,10));var n=e.eventDate.slice(0,4),r="";r=1===t||21===t||31===t?"st":2===t||22===t?"nd":3===t||23===t?"rd":"th";var c="";e._id&&(c=e._id.slice(0,6));var s=0,o=0,m=0,i=0;return e.requestList.forEach(function(e){e.generalRequest?s++:o++,"played"===e.songStatus?m+=e.tip:i+=e.tip}),l.a.createElement("div",{className:"event-card"},l.a.createElement("div",{className:"event-img-container"},l.a.createElement("img",{alt:"event logo",src:e.eventImage})),l.a.createElement("div",{className:"event-content"},l.a.createElement("ul",{className:"text-center pl-0"},l.a.createElement("li",{className:"mt-2"},l.a.createElement("h3",null,l.a.createElement("strong",{className:"event-title"},e.eventName))),"end"===e.eventStatus&&l.a.createElement("li",{className:"mb-2"},l.a.createElement("strong",{style:{color:"red"}},"ENDED")),l.a.createElement("li",{className:"font-italic"},"".concat(a," ").concat(t).concat(r,", ").concat(n)),l.a.createElement("li",{className:"font-italic"},e.startTime," - ",e.endTime),"end"!==e.eventStatus?l.a.createElement("li",null,l.a.createElement("button",{type:"button",className:"btn btn-dark mt-3",id:"details-".concat(c),"data-toggle":"modal","data-target":"#modal-".concat(c)},"Details")):l.a.createElement("li",null,l.a.createElement("button",{type:"button",className:"btn btn-dark mt-3",id:"stats-".concat(c),"data-toggle":"modal","data-target":"#stats-modal-".concat(c)},"Event Stats")),l.a.createElement("div",{className:"modal fade",id:"modal-".concat(c),tabIndex:"-1",role:"dialog","aria-hidden":"true"},l.a.createElement("div",{className:"modal-dialog",role:"document"},l.a.createElement("div",{className:"modal-content"},l.a.createElement("div",{className:"modal-body"},l.a.createElement("h5",{className:"text-uppercase mb-3"},e.eventName),l.a.createElement("p",{className:"modal-text"},l.a.createElement("b",null,"Date:")," ","".concat(a," ").concat(t).concat(r,", ").concat(n)),l.a.createElement("p",{className:"modal-text"},l.a.createElement("b",null,"Time:")," ",e.startTime," - ",e.endTime),l.a.createElement("p",{className:"modal-text"},l.a.createElement("b",null,"Type:")," ",e.eventType," \xb7 ",e.genre),l.a.createElement("p",{className:"modal-text"},l.a.createElement("b",null,"Venue:")," ",l.a.createElement("br",null),e.venueName," ",l.a.createElement("br",null),e.venueAddress)),l.a.createElement("div",{className:"modal-footer"},l.a.createElement("button",{type:"button",className:"btn btn-dark","data-dismiss":"modal"},"Close"))))),l.a.createElement("div",{className:"modal fade event-stats-modal",id:"stats-modal-".concat(c),tabIndex:"-1",role:"dialog","aria-hidden":"true"},l.a.createElement("div",{className:"modal-dialog modal-dialog-scrollable",role:"document"},l.a.createElement("div",{className:"modal-content"},l.a.createElement("div",{className:"modal-body"},l.a.createElement("h5",{className:"text-uppercase mb-3"},e.eventName," - ENDED"),l.a.createElement("p",{className:"modal-text"},"".concat(a," ").concat(t).concat(r,", ").concat(n)," \xb7 ",e.startTime," - ",e.endTime," \xb7 ",e.eventType," \xb7 ",e.genre),l.a.createElement("p",{className:"modal-text"},e.venueName," ",e.venueAddress),l.a.createElement("p",{className:"mb-1"},l.a.createElement("strong",null,"Total Play Now Requests Made:")," ",o),l.a.createElement("p",{className:"mb-1"},l.a.createElement("strong",null,"Total General Requests Made:")," ",s),l.a.createElement("p",{className:"mb-1"},l.a.createElement("strong",null,"Total Tips Made:")," $",m),l.a.createElement("p",null,l.a.createElement("strong",null,"Total Tips Declined:")," $",i),l.a.createElement("table",{className:"table text-white"},l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("th",{scope:"col"},"All Songs Requested"),l.a.createElement("th",{scope:"col"},"Request Type"),l.a.createElement("th",{scope:"col"},"Tip"),l.a.createElement("th",{scope:"col"},"Action"))),l.a.createElement("tbody",null,e.requestList.map(function(e){return l.a.createElement("tr",null,l.a.createElement("td",null,e.title," \xb7 ",e.artist),l.a.createElement("td",null,e.generalRequest?"General":"Play Now"),l.a.createElement("td",null,"$",e.tip),l.a.createElement("td",null,"played"===e.songStatus?l.a.createElement("span",{className:"text-success"},"Played"):l.a.createElement("span",{className:"text-danger"},"Did Not Play")))})))),l.a.createElement("div",{className:"modal-footer"},l.a.createElement("button",{type:"button",className:"btn btn-dark","data-dismiss":"modal"},"Close"))))),"end"!==e.eventStatus&&l.a.createElement("div",null,l.a.createElement(f,{id:"activate-".concat(c),switchTitle:"activated"===e.eventStatus?"Active":"Inactive",change:e.handleSwitch}),l.a.createElement(v,{className:"btn btn-dark mt-3 end-hidden",onClick:e.handleEnd,id:"end-".concat(c)},"End Event")))))},L=a(18);var R=function(e){w.getDj(e).then(function(e){e.data.length>=1||window.location.replace("/dj/signup")}).catch(function(e){return console.log(e)})},P=a(41),M=a.n(P);var z=function(){var e=Object(n.useState)([]),t=Object(u.a)(e,2),a=t[0],r=t[1],c=Object(n.useState)(0),s=Object(u.a)(c,2),o=s[0],g=s[1],f=Object(n.useState)(!1),h=Object(u.a)(f,2),N=h[0],y=h[1];function j(){w.getDj($.sub).then(function(e){r(e.data[0].events)}).catch(function(e){return console.log(e)})}Object(n.useEffect)(function(){j()},[]),Object(n.useEffect)(function(){if(0===o)g(1);else if(1===o){for(var e=0;e<a.length;e++)"activated"===a[e].eventStatus&&(y(!0),document.getElementById("activate-".concat(a[e]._id.slice(0,6))).checked=!0,document.getElementById("end-".concat(a[e]._id.slice(0,6))).classList.remove("end-hidden"),document.getElementById("details-".concat(a[e]._id.slice(0,6))).classList.add("details-hidden"));g(2)}},[a]);var S=Object(n.useState)({}),C=Object(u.a)(S,2),T=C[0],I=C[1],P=Object(n.useState)({add:!1}),z=Object(u.a)(P,2),B=z[0],Q=z[1],U=Object(n.useState)(!1),W=Object(u.a)(U,2),Y=W[0],F=W[1],G=Object(n.useState)(),H=Object(u.a)(G,2),J=H[0],V=H[1],Z=Object(n.useState)("https://via.placeholder.com/150"),X=Object(u.a)(Z,2),K=X[0],_=X[1],$=Object(k.b)().user,ee=Object(n.useState)(""),te=Object(u.a)(ee,2),ae=te[0],ne=te[1];function le(e){var t=e.target.id;if(t=t.substring(t.indexOf("-")+1),N&&!0===document.getElementById(e.target.id).checked)document.getElementById(e.target.id).checked=!1;else{var a="end-".concat(e.target.id.slice(9,16)),n="details-".concat(e.target.id.slice(9,16));if(document.getElementById(e.target.id).checked){document.getElementById(a).classList.remove("end-hidden"),document.getElementById(n).classList.add("details-hidden"),y(!0);var l={eventSubIdToChange:t,changeStatusTo:"activated"};w.updateEventStatus(l).then(function(e){console.log(e),j()}).catch(function(e){return console.log(e)})}else{document.getElementById(a).classList.add("end-hidden"),document.getElementById(n).classList.remove("details-hidden"),y(!1);var r={eventSubIdToChange:t,changeStatusTo:"deactivated"};w.updateEventStatus(r).then(function(e){console.log("This is the response after PUT to change to deactivated:"),console.log(e),j()}).catch(function(e){return console.log(e)})}}}function re(e){var t=e.target.id,a={eventSubIdToChange:t=t.substring(t.indexOf("-")+1),changeStatusTo:"end"};w.updateEventStatus(a).then(function(e){y(!1),j()}).catch(function(e){return console.log(e)})}function ce(){!1===B.add?Q({add:!0}):Q({add:!1})}function se(e){var t=e.target,a=t.name,n=t.value;I(Object(i.a)({},T,Object(m.a)({},a,n)))}return Object(n.useEffect)(function(){var e;R($.sub),e=$.sub,w.getDj(e).then(function(e){return ne(e.data[0]._id)}).catch(function(e){return console.log(e)})},[]),l.a.createElement("div",null,l.a.createElement(O,{title:"HOME"}),l.a.createElement(d,{classes:"top-container"},l.a.createElement("h1",null,"My Events"),l.a.createElement(L.a,{className:"scroll-container"},l.a.createElement(E,{classes:"flex-nowrap"},a.filter(function(e){return"end"!=e.eventStatus}).map(function(e){return l.a.createElement(b,{classes:"d-flex",key:e._id},l.a.createElement(D,Object.assign({},e,{handleSwitch:le,handleEnd:re})))})))),l.a.createElement(d,{classes:"mt-4"},B.add?l.a.createElement("div",null,l.a.createElement("h1",null,"Create Event"),l.a.createElement("form",null,l.a.createElement(p,{onChange:se,type:"text",id:"eventName",name:"eventName",placeholder:"EVENT NAME",label:"What's the event name?",className:"form-control"}),l.a.createElement(p,{onChange:se,type:"text",id:"venueName",name:"venueName",placeholder:"VENUE NAME",label:"What's the name of the venue?",className:"form-control"}),l.a.createElement(p,{onChange:se,type:"text",id:"eventType",name:"eventType",placeholder:"EVENT TYPE",label:"What type of event is it?",className:"form-control"}),l.a.createElement(p,{onChange:se,type:"text",id:"eventLocation",name:"eventLocation",placeholder:"VENUE ADDRESS",label:"What's the address for the event?",className:"form-control"}),l.a.createElement(p,{onChange:se,type:"text",id:"genre",name:"genre",placeholder:"GENRE",label:"What type of music will be played?",className:"form-control"}),l.a.createElement(p,{onChange:se,type:"date",id:"eventDate",name:"eventDate",label:"What date is the event on?",className:"form-control"}),l.a.createElement(p,{onChange:se,type:"text",id:"eventTimeStart",name:"eventTimeStart",placeholder:"6:00pm",label:"What time does the event start?",className:"form-control"}),l.a.createElement(p,{onChange:se,type:"text",id:"eventTimeEnd",name:"eventTimeEnd",placeholder:"9:00pm",label:"What time does the event end?",className:"form-control"}),l.a.createElement(p,{onChange:se,type:"number",id:"generalRequestTipMin",name:"generalRequestTipMin",placeholder:"example: 0, 2",label:"Enter minimum amount for general requests",className:"form-control"}),l.a.createElement(p,{onChange:se,type:"number",id:"playNowTipMin",name:"playNowTipMin",placeholder:"example: 20, 100",label:"Enter minimum amount for play now requests",className:"form-control"}),l.a.createElement(x,{selectImage:function(e){return q.selectImage(e,V)},uploadImage:function(e){return q.uploadImage(e,J,F,_)},loading:Y,image:K,altTag:"event logo",imageDescription:"event"}),l.a.createElement(v,{className:"btn btn-dark formBtn",onClick:function(e){e.preventDefault();var t=M()();if("https://via.placeholder.com/150"===K)var a="https://res.cloudinary.com/noimgmt/image/upload/v1616029532/sil7xrgk6wg6wktkbrdn.png";else a=K;w.createEvent({_id:t,subIdForEventStatusChange:t.slice(0,6),genre:T.genre,eventDate:T.eventDate,startTime:T.eventTimeStart,endTime:T.eventTimeEnd,eventName:T.eventName,eventType:T.eventType,venueName:T.venueName,venueAddress:T.eventLocation,generalRequestTipMin:T.generalRequestTipMin,playNowTipMin:T.playNowTipMin,eventImage:a,djId:ae}).then(function(e){return window.location.replace("/dj/dashboard")}).catch(function(e){return console.log(e)})}},"Save Event"),l.a.createElement(v,{className:"btn btn-dark formBtn",onClick:ce},"Cancel Creating Event"))):l.a.createElement("form",null,l.a.createElement(v,{className:"btn btn-dark btn-lg btn-block",onClick:ce},"ADD NEW EVENT +"))),l.a.createElement(d,{classes:"mt-4 bottom-container"},l.a.createElement("h1",null,"Event History"),l.a.createElement(L.a,{className:"scroll-container"},l.a.createElement(E,{classes:"flex-nowrap"},a.filter(function(e){return"end"===e.eventStatus}).map(function(e){return l.a.createElement(b,{classes:"d-flex",key:e._id},l.a.createElement(D,Object.assign({},e,{handleSwitch:le,handleEnd:re})))})))),l.a.createElement(A,{current:"home"}))};a(89);var B=function(e){return l.a.createElement(b,{classes:"d-flex"},l.a.createElement("div",{className:"card song-card"},l.a.createElement("img",{src:e.albumCover,alt:e.title,className:"card-img-top album-cover"}),l.a.createElement("div",{className:"card-body"},l.a.createElement("h5",{className:"card-title"},e.title),l.a.createElement("p",{className:"card-text font-italic"},e.artist),l.a.createElement("p",{className:"card-text"},"Tipped: ",l.a.createElement("span",{className:"font-weight-bold"},"$",e.tip)),l.a.createElement("button",{className:"btn btn-dark mr-2 ".concat(e.btn1),id:e._id,onClick:e.button01onClick},e.btn1),l.a.createElement("button",{className:"btn btn-dark ".concat(e.btn2),id:e._id,onClick:e.button02onClick},e.btn2))))},Q=a(22);a(90);var U=function(e){return l.a.createElement("div",{className:"modal fade",id:"queueModal",tabindex:"-1"},l.a.createElement("div",{className:"modal-dialog"},l.a.createElement("div",{className:"modal-content"},l.a.createElement("div",{className:"modal-header"},l.a.createElement("h5",{className:"modal-title",id:"exampleModalLabel"},"SONGS IN QUEUE"),l.a.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close"},l.a.createElement("span",{"aria-hidden":"true"},"\xd7"))),l.a.createElement("div",{className:"modal-body text-center"},l.a.createElement(Q.a,{onDragEnd:e.handleOnDragEnd},l.a.createElement(Q.c,{droppableId:"queue-modal-songs"},function(t){return l.a.createElement("ul",Object.assign({className:"list-unstyled modal-body text-center queue-modal-songs"},t.droppableProps,{ref:t.innerRef}),e.songs.map(function(e,t){return l.a.createElement(Q.b,{key:e._id,draggableId:e._id,index:t},function(t){return l.a.createElement("li",Object.assign({className:"card flex-row queue-modal-card",ref:t.innerRef},t.draggableProps,t.dragHandleProps),l.a.createElement("img",{src:e.albumCover,alt:e.title,className:"card-img queue-modal-image"}),l.a.createElement("h5",{className:"font-italic ml-3 mr-2"},e.title," \xb7 ",e.artist),l.a.createElement("span",{className:"ml-auto mr-3"},"Tipped: $",e.tip))})}),t.placeholder)}))))))};var W=function(){var e,t=Object(k.b)().user,a=Object(n.useState)(""),r=Object(u.a)(a,2),c=r[0],s=r[1],o=Object(n.useState)([]),m=Object(u.a)(o,2),i=(m[0],m[1]),b=Object(n.useState)([]),p=Object(u.a)(b,2),g=p[0],f=p[1],h=Object(n.useState)([]),v=Object(u.a)(h,2),N=v[0],y=v[1],j=Object(n.useState)(""),x=Object(u.a)(j,2),S=x[0],q=x[1],I=Object(n.useState)("0"),D=Object(u.a)(I,2),P=D[0],M=D[1],z=Object(n.useState)("0"),Q=Object(u.a)(z,2),W=Q[0],Y=Q[1],F=Object(n.useState)("0"),G=Object(u.a)(F,2),H=G[0],J=G[1];Object(n.useEffect)(function(){R(t.sub),Z(t.sub)},[t.sub]),Object(n.useEffect)(function(){for(var e=N.sort(function(e,t){return e.queueOrderNumber-t.queueOrderNumber}),t=0;t<e.length;t++)if(e[t].queueOrderNumber!==t+1){e[t].queueOrderNumber=t+1;var a={newQueueNumber:e[t].queueOrderNumber};w.updateSongQueueNumber(e[t]._id,a).catch(function(e){return console.log(e)})}y(e)},[N]);var V=Object(n.useRef)(!0);Object(n.useLayoutEffect)(function(){V.current?V.current=!1:X(c)},[S]);var Z=function(e){w.getDj(e).then(function(e){s(e.data[0]._id),X(e.data[0]._id)}).catch(function(e){return console.log(e)})};function X(e){return K.apply(this,arguments)}function K(){return(K=Object(T.a)(C.a.mark(function t(a){return C.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w.getActivatedEvent(a).then(function(t){i(t.data.events[0]._id),f(t.data.events[0].requestList),y(t.data.events[0].requestList.filter(function(e){return"queue"===e.songStatus}).sort(function(e,t){return e.queueOrderNumber-t.queueOrderNumber})),e=t.data.events[0]._id,q("")}).catch(function(e){return console.log(e)});case 2:return t.next=4,w.getSongStatusCount(e).then(function(e){for(var t=0,a=0,n=0,l=0;l<e.data[0]._id.length;l++)"queue"===e.data[0]._id[l]?t+=1:"playNowQueue"===e.data[0]._id[l]?a+=1:"generalRequestQueue"===e.data[0]._id[l]&&(n+=1);M(t),Y(a),J(n)}).catch(function(e){return console.log(e)});case 4:case"end":return t.stop()}},t)}))).apply(this,arguments)}function _(e){return $.apply(this,arguments)}function $(){return($=Object(T.a)(C.a.mark(function e(t){var a,n,l;return C.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),q(t.target.id),a=t.target.textContent,e.t0=a,e.next="ACCEPT"===e.t0?6:"DECLINE"===e.t0?8:"PLAYED"===e.t0?10:"REMOVED"===e.t0?12:14;break;case 6:return n="queue",e.abrupt("break",16);case 8:return n="declined",e.abrupt("break",16);case 10:return n="played",e.abrupt("break",16);case 12:return n="removed",e.abrupt("break",16);case 14:return console.log("It didn't work. Fix it!"),e.abrupt("break",16);case 16:return l={songId:t.target.id,newSongStatus:n,addQueueNumber:100},console.log("*****obj",l),console.log("*****",S),e.next=21,w.updateRequest(l).then(function(e){console.log("catfood:",e)}).catch(function(e){return console.log(e)});case 21:case"end":return e.stop()}},e)}))).apply(this,arguments)}return l.a.createElement("div",null,l.a.createElement(O,{title:"REQUESTS"}),l.a.createElement(d,{classes:"top-container"},l.a.createElement(E,null,l.a.createElement("h1",null,"Queue ",l.a.createElement("span",{className:"badge badge-dark"}," ",P)),l.a.createElement("a",{href:"#queueModal",className:"ml-auto mr-3 mt-1","data-toggle":"modal","data-target":"#queueModal",style:{color:"gold"}},"SEE ALL QUEUE SONGS")),N&&l.a.createElement(U,{songs:N,handleOnDragEnd:function(e){if(e.destination){var t=Array.from(N),a=t.splice(e.source.index,1),n=Object(u.a)(a,1)[0];t.splice(e.destination.index,0,n);for(var l=0;l<t.length;l++)if(t[l].queueOrderNumber!==l+1){t[l].queueOrderNumber=l+1;var r={newQueueNumber:t[l].queueOrderNumber};w.updateSongQueueNumber(t[l]._id,r).catch(function(e){return console.log(e)})}y(t)}}}),l.a.createElement(L.a,{className:"scroll-container"},l.a.createElement(E,{classes:"flex-nowrap"},N.map(function(e,t){return l.a.createElement(B,Object.assign({key:e._id},e,{btn1:"PLAYED",button01onClick:_,btn2:"REMOVED",button02onClick:_}))})))),l.a.createElement(d,{classes:"mt-5 mb-5"},l.a.createElement(E,null,l.a.createElement("h1",null,"Play Now ",l.a.createElement("span",{className:"badge badge-dark"}," ",W))),l.a.createElement(L.a,{className:"scroll-container"},l.a.createElement(E,{classes:"flex-nowrap"},g.filter(function(e){return"playNowQueue"===e.songStatus}).map(function(e){return l.a.createElement(B,Object.assign({key:e._id},e,{btn1:"ACCEPT",button01onClick:_,btn2:"DECLINE",button02onClick:_}))})))),l.a.createElement(d,{classes:"bottom-container"},l.a.createElement(E,null,l.a.createElement("h1",null,"General Requests ",l.a.createElement("span",{className:"badge badge-dark"}," ",H))),l.a.createElement(L.a,{className:"scroll-container"},l.a.createElement(E,{classes:"flex-nowrap"},g.filter(function(e){return"generalRequestQueue"===e.songStatus}).map(function(e){return l.a.createElement(B,Object.assign({key:e._id},e,{btn1:"ACCEPT",button01onClick:_,btn2:"DECLINE",button02onClick:_}))})))),l.a.createElement(A,{current:"request"}))},Y=a(93);var F=function(e){if(!0===e.playNow)var t="Play Now Request";else t="General Request";switch(e.songStatus){case"queue":var a="Added to Queue at:",n="Pending...";break;case"declined":a="Declined at:",n="--0--";break;case"played":a="Played at:",n="Earned";break;case"removed":a="Removed at:",n="--0--";break;case"playNowQueue":a="Play Now Queue at:",n="Pending...";break;case"generalRequestQueue":a="General Request Queue at:",n="Pending...";break;default:console.log("It didn't work. Fix it!")}var r=Y(e.timeUpdatedAt).format("LT"),c=Y(e.requestedTime).format("LT");return l.a.createElement(E,{classes:"h-100 pt-2 activity-bottom"},l.a.createElement(b,{size:"4",classes:"my-auto"},l.a.createElement("h4",{className:"font-weight-bold"},e.title),l.a.createElement("p",null,e.artist)),l.a.createElement(b,{size:"3",classes:"my-auto"},l.a.createElement("h5",null,a),l.a.createElement("p",null,r),l.a.createElement("p",null,"Submitted at: ",c)),l.a.createElement(b,{size:"2",classes:"my-auto"},l.a.createElement("h5",null,"$",e.tip),l.a.createElement("p",null,n)),l.a.createElement(b,{size:"3",classes:"my-auto"},l.a.createElement("h5",null,e.customerName),l.a.createElement("p",null,t)))};var G=function(){var e,t=Object(k.b)().user,a=Object(n.useState)(""),r=Object(u.a)(a,2),c=(r[0],r[1]),s=Object(n.useState)(""),o=Object(u.a)(s,2),m=(o[0],o[1]),i=Object(n.useState)([]),p=Object(u.a)(i,2),g=p[0],f=p[1],h=Object(n.useState)("0"),v=Object(u.a)(h,2),N=v[0],y=v[1],j=Object(n.useState)("0"),x=Object(u.a)(j,2),S=x[0],q=x[1],I=Object(n.useState)("0"),D=Object(u.a)(I,2),L=D[0],P=D[1];Object(n.useEffect)(function(){R(t.sub),M(t.sub)},[t.sub]);var M=function(e){w.getDj(e).then(function(e){c(e.data[0]._id),function(e){z.apply(this,arguments)}(e.data[0]._id)}).catch(function(e){return console.log(e)})};function z(){return(z=Object(T.a)(C.a.mark(function t(a){return C.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w.getActivatedEvent(a).then(function(t){m(t.data.events[0]._id),f(t.data.events[0].requestList),e=t.data.events[0]._id}).catch(function(e){return console.log(e)});case 2:return t.next=4,w.getSongStatusCount(e).then(function(e){for(var t=0,a=0,n=0,l=0;l<e.data[0]._id.length;l++)"queue"===e.data[0]._id[l]?t+=1:"playNowQueue"===e.data[0]._id[l]?a+=1:"generalRequestQueue"===e.data[0]._id[l]&&(n+=1);y(t),q(a),P(n)}).catch(function(e){return console.log(e)});case 4:case"end":return t.stop()}},t)}))).apply(this,arguments)}return l.a.createElement("div",null,l.a.createElement(O,{title:"ACTIVITY"}),l.a.createElement(d,{classes:"top-container bottom-container text-center"},l.a.createElement(E,{classes:"p-4 mt-0 activity-header-bottom"},l.a.createElement(b,{size:"4"},l.a.createElement("h3",{className:"text-muted"},"Queue: ",l.a.createElement("span",{className:"badge badge-light"}," ",N))),l.a.createElement(b,{size:"4"},l.a.createElement("h3",{className:"text-muted"},"Play Now: ",l.a.createElement("span",{className:"badge badge-light"}," ",S))),l.a.createElement(b,{size:"4"},l.a.createElement("h3",{className:"text-muted"},"General: ",l.a.createElement("span",{className:"badge badge-light"}," ",L)))),l.a.createElement(E,{classes:"pt-0 mt-0 activity-header-bottom "},l.a.createElement(b,{size:"4"},l.a.createElement("h5",{className:"text-warning"},"SONG")),l.a.createElement(b,{size:"3"},l.a.createElement("h5",{className:"text-warning"},"STATUS")),l.a.createElement(b,{size:"2"},l.a.createElement("h5",{className:"text-warning"},"TIPPED")),l.a.createElement(b,{size:"3"},l.a.createElement("h5",{className:"text-warning"},"GUEST"),l.a.createElement("p",{className:"text-warning"},"(REQUEST TYPE)"))),g.map(function(e){return l.a.createElement(F,Object.assign({key:e._id},e))})),l.a.createElement(A,{current:"activity"}))},H=a(43),J=a(44),V=a.n(J);var Z=function(e){return l.a.createElement("div",null,l.a.createElement(V.a,{value:"http://localhost:3000/request/"+e}))};var X=function(e){var t=Object(n.useRef)(),a=Object(H.useReactToPrint)({content:function(){return t.current}});return l.a.createElement("div",{className:"modal fade",id:"qr-code-modal",tabIndex:"-1"},l.a.createElement("div",{className:"modal-dialog"},l.a.createElement("div",{className:"modal-content"},l.a.createElement("div",{className:"modal-body",ref:t},l.a.createElement("div",{className:"conatiner-fluid"},l.a.createElement(E,{classes:"justify-content-center mt-5"},l.a.createElement("img",{src:"https://i.ibb.co/kMDmZfY/Noi-Logo-200x200-black.png",alt:"Noi-Logo-200x200",border:"0",width:"150",height:"150"})),l.a.createElement(E,{classes:"justify-content-center"},l.a.createElement(b,{size:"12"},l.a.createElement("h1",{className:"qr-modal-name mt-5 text-center"},e.djName)),l.a.createElement("h3",{className:"mt-3"},"LINK:"),l.a.createElement("h3",{className:"qr-modal-link p-3"},l.a.createElement("a",{href:"http://localhost:3000/request/".concat(e.djCode)},"http://localhost:3000/request/".concat(e.djCode)))),l.a.createElement(E,{classes:"d-flex align-items-center justify-content-center qr-code"},l.a.createElement(Z,{djCode:e.djCode})))),l.a.createElement("div",{className:"modal-footer"},l.a.createElement("button",{className:"btn btn-secondary rounded-circle",onClick:a,style:{fontSize:"1.5rem"}},"\ud83d\uddb6"),l.a.createElement("button",{type:"button",className:"btn btn-secondary rounded-circle","data-dismiss":"modal"},"\u2716")))))};a(100);var K=function(e){var t=a(101);return l.a.createElement(E,null,l.a.createElement(b,{size:"12",classes:"mt-3"},l.a.createElement("img",{className:"profile-image",src:"https://via.placeholder.com/150"!==e.profileImage?"".concat(e.profileImage):"".concat(t),alt:e.djName}),l.a.createElement(E,{classes:"mt-5 user-headers"},l.a.createElement(b,{size:"12"},l.a.createElement(E,{classes:"mt-4"},l.a.createElement(b,{size:"md-6"},l.a.createElement("h4",null,"DJ NAME")),l.a.createElement(b,{size:"md-6",classes:"user-info"},l.a.createElement("h4",null,e.djName))),l.a.createElement(E,{classes:"mt-4"},l.a.createElement(b,{size:"md-6"},l.a.createElement("h4",null,"HOMETOWN")),l.a.createElement(b,{size:"md-6",classes:"user-info"},l.a.createElement("h4",null,e.hometown))),l.a.createElement(E,{classes:"mt-4"},l.a.createElement(b,{size:"md-6"},l.a.createElement("h4",null,"GENRE")),l.a.createElement(b,{size:"md-6",classes:"user-info"},l.a.createElement("h4",null,e.djStyle))),l.a.createElement(E,{classes:"mt-4"},l.a.createElement(b,{size:"md-6"},l.a.createElement("h4",null,"INSTAGRAM")),l.a.createElement(b,{size:"md-6",classes:"user-info"},l.a.createElement("h4",null,e.instagram))),l.a.createElement(E,{classes:"mt-4"},l.a.createElement(b,{size:"md-6"},l.a.createElement("h4",null,"EMAIL")),l.a.createElement(b,{size:"md-6",classes:"user-info"},l.a.createElement("h4",null,e.email))),l.a.createElement(E,{classes:"mt-4"},l.a.createElement(b,{size:"md-6"},l.a.createElement("h4",null,"PERSONAL QR CODE")),l.a.createElement(b,{size:"md-6",classes:"user-info"},l.a.createElement("button",{type:"button",className:"btn btn-sm btn-dark mt-2","data-toggle":"modal","data-target":"#qr-code-modal"},"VIEW QR CODE")))))),l.a.createElement(X,{djCode:e._id,djName:e.djName}))};var _=function(){return l.a.createElement("button",{type:"button",className:"btn btn-sm btn-dark mt-2","data-toggle":"modal","data-target":"#options-menu-modal"},"OPTIONS")};var $=function(){var e=Object(k.b)(),t=e.logout;return e.isAuthenticated&&l.a.createElement("button",{className:"btn btn-dark mt-5 mb-5 gold-animated-btn",onClick:function(){return t()}},"Logout")};var ee=function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"modal fade",id:"options-menu-modal",tabIndex:"-1",role:"dialog","aria-hidden":"true"},l.a.createElement("div",{className:"modal-dialog",role:"document"},l.a.createElement("div",{className:"modal-content"},l.a.createElement("div",{className:"modal-header"},l.a.createElement("h5",{className:"modal-title"},"Options Menu"),l.a.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close"},l.a.createElement("span",{"aria-hidden":"true"},"\xd7"))),l.a.createElement("div",{className:"modal-body d-flex flex-column"},l.a.createElement("button",{className:"btn btn-dark gold-animated-btn",onClick:function(){return window.location.replace("/dj/editprofile")}},"Update Profile"),l.a.createElement(s.b,{to:"/",className:"btn btn-dark gold-animated-btn"},"Payment Options ",l.a.createElement("span",{className:"text-muted font-italic"},"(coming soon)")),l.a.createElement(s.b,{to:"/",className:"btn btn-dark gold-animated-btn"},"Share Noi ",l.a.createElement("span",{className:"text-muted font-italic"},"(coming soon)")),l.a.createElement(s.b,{to:"/",className:"btn btn-dark gold-animated-btn"},"Send Feedback ",l.a.createElement("span",{className:"text-muted font-italic"},"(coming soon)")),l.a.createElement(s.b,{to:"/",className:"btn btn-dark gold-animated-btn"},"Privacy Policy ",l.a.createElement("span",{className:"text-muted font-italic"},"(coming soon)")),l.a.createElement("button",{className:"btn btn-dark gold-animated-btn","data-toggle":"modal","data-target":"#modal-terms-and-conditions"},"Terms and Conditions"),l.a.createElement(N,null),l.a.createElement(s.b,{to:"/",className:"btn btn-dark gold-animated-btn"},"Licenses ",l.a.createElement("span",{className:"text-muted font-italic"},"(coming soon)")),l.a.createElement($,null)),l.a.createElement("div",{className:"modal-footer"},l.a.createElement("button",{type:"button",className:"btn btn-dark","data-dismiss":"modal"},"Close"))))))};var te=function(){var e=Object(k.b)().user,t=Object(n.useState)([]),a=Object(u.a)(t,2),r=a[0],c=a[1];return Object(n.useEffect)(function(){var t;R(e.sub),t=e.sub,w.getDj(t).then(function(e){return c(e.data[0])}).catch(function(e){return console.log(e)})},[]),l.a.createElement("div",null,l.a.createElement(O,{title:"PROFILE"}),l.a.createElement(d,{classes:"top-container text-center"},l.a.createElement(K,r)),l.a.createElement(d,{classes:"bottom-container text-center mt-3"},l.a.createElement(E,null,l.a.createElement(b,null,l.a.createElement(_,null),l.a.createElement(ee,null)))),l.a.createElement(A,{current:"profile"}))};a(103);var ae=function(){var e=Object(k.b)(),t=e.loginWithRedirect;return!e.isAuthenticated&&l.a.createElement("button",{className:"btn btn-dark gold-animated-btn",onClick:function(){return t()}},"Login")};var ne=function(){var e=Object(k.b)().loginWithRedirect;return l.a.createElement("button",{className:"btn btn-dark ml-5 gold-animated-btn",onClick:function(){return e()}},"Sign Up")};var le=function(){var e=Object(k.b)().isAuthenticated;return Object(n.useEffect)(function(){document.querySelector(".landing-logo").addEventListener("animationend",function(){document.querySelector(".landing-page").classList.remove("hide-overflow")})},[]),e&&window.location.replace("/dj/dashboard"),!e&&l.a.createElement("div",{className:"landing-page hide-overflow"},l.a.createElement("img",{src:"https://i.ibb.co/bdJNc5g/Noi-Logo-200x200.png",alt:"Noi-Logo",border:"0",width:"200",height:"200",className:"d-block mx-auto landing-logo"}),l.a.createElement("div",{className:"landing-content"},l.a.createElement(d,{classes:"text-center landing-top"},l.a.createElement(E,null,l.a.createElement(b,null,l.a.createElement("h1",{className:"text-center mt-5 landing-text"},"WELCOME"),l.a.createElement("h2",{className:"text-center mt-5 landing-text"},"BRIDGING THE GAP BETWEEN THE DJ AND THE DANCE FLOOR!")))),l.a.createElement(d,null,l.a.createElement(E,null,l.a.createElement(b,null,l.a.createElement("h2",{className:"text-center mt-3 landing-text"},"CREATE YOUR ",l.a.createElement("span",{className:"logo-text"},"NOI")," DJ ACCOUNT TO BEGIN RECEIVING REQUESTS!"),l.a.createElement("div",{className:"text-center login-button"},l.a.createElement(ae,null),l.a.createElement(ne,null)))),l.a.createElement(E,null,l.a.createElement(b,null,l.a.createElement("h3",{className:"text-center landing-text customer-text"},"Are you a customer making a request? Head over ",l.a.createElement("a",{href:"/request",className:"landing-link"},"here!")))))))};var re=function(){var e=Object(n.useState)([]),t=Object(u.a)(e,2),a=t[0],r=t[1];return Object(n.useEffect)(function(){w.getAllDjs().then(function(e){r(e.data)}).catch(function(e){return console.log(e)})},[]),l.a.createElement("div",{className:"request-page"},l.a.createElement(O,{title:"welcome customer"}),l.a.createElement("div",{className:"center-container d-flex align-items-center"},l.a.createElement(d,null,l.a.createElement(E,{classes:"justify-content-center"},l.a.createElement("p",{className:"request-title display-3 font-weight-bold text-center"},"SELECT A DJ")),l.a.createElement(E,{classes:"justify-content-center"},l.a.createElement(h,{id:"dj-list"},a.map(function(e){return l.a.createElement("option",{value:e.djName,key:e.djName},e.djName)}))),l.a.createElement(E,{classes:"justify-content-center"},l.a.createElement(v,{className:"btn btn-dark",onClick:function(){var e=document.getElementById("dj-list").value;console.log(e);var t=a.filter(function(t){return t.djName===e})[0]._id;window.location.replace("/request/".concat(t))}},"GO TO THIS DJ'S EVENT")))))},ce={findAlbumCover:function(e,t){var a=t.trim().split(" ").join("+").toLowerCase(),n=e.trim().split(" ").join("+").toLowerCase(),l="http://ws.audioscrobbler.com/2.0/?method=track.getInfo&api_key=".concat("e2cbb723ea1e94698d81c0d4f7e3dc0a","&artist=").concat(a,"&track=").concat(n,"&format=json");return j.a.get(l)}},se=a(45),oe=a.n(se),me=a(46),ie=a.n(me),ue={checkout:function(e){return j.a.post("/stripe/checkout",{product:e})},successData:function(e){return j.a.post("/stripe/success",{sessionId:e})}},de=a(47);a(104),a(105);var Ee=function(e){return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"modal fade",id:e.id,tabIndex:"-1",role:"dialog","aria-hidden":"true"},l.a.createElement("div",{className:"modal-dialog",role:"document"},l.a.createElement("div",{className:"modal-content"},l.a.createElement("div",{className:"modal-header"},l.a.createElement("h5",{className:"modal-title"},e.name),l.a.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close"},l.a.createElement("span",{"aria-hidden":"true"},"\xd7"))),l.a.createElement("div",{className:"modal-body"},l.a.createElement("p",{className:"modal-text"},e.message)),l.a.createElement("div",{className:"modal-footer"},l.a.createElement("button",{type:"button",className:"btn btn-dark","data-dismiss":"modal"},"Close"))))))},be=Object(de.a)("pk_test_XI5JpIZzqRWQItU9xTnKnfEs");var pe=function(){var e=Object(n.useState)({fullName:"",title:"",artist:"",tip:""}),t=Object(u.a)(e,2),a=t[0],r=t[1],c=Object(n.useState)(!1),s=Object(u.a)(c,2),o=s[0],f=s[1],h=Object(n.useState)(!1),N=Object(u.a)(h,2),y=N[0],j=N[1],x=Object(n.useState)(""),k=Object(u.a)(x,2),S=k[0],q=k[1],I=Object(n.useState)(""),A=Object(u.a)(I,2),D=A[0],L=A[1],R=Object(n.useState)({name:"",price:0,description:"Song Request",albumCover:"",tip:0,fullName:"",title:"",artist:"",generalRequest:!1,playNow:!1,songStatus:"",_id:""}),P=Object(u.a)(R,2),M=P[0],z=P[1],B=Object(n.useState)({}),Q=Object(u.a)(B,2),U=Q[0],W=Q[1],Y=Object(n.useState)(""),F=Object(u.a)(Y,2),G=F[0],H=F[1];Object(n.useEffect)(function(){w.getActivatedEvent(Z()).then(function(e){e.data.events[0]?(W(e.data.events[0]),H(e.data.djName)):(alert("Whoops, looks like this dj doesn't have an active event. Check to make sure you're on the right dj's event, or notify your dj to activate the event."),window.location.replace("/request"))}).catch(function(e){return console.log(e)})},[]);var J=Object(n.useRef)(!0);Object(n.useLayoutEffect)(function(){if(J.current)Z(),J.current=!1;else{switch(o){case!0:var e="generalRequestQueue";break;case!1:e="playNowQueue";break;default:console.log("It didn't work. Fix it!")}z({name:a.title+", "+a.artist,price:100*a.tip,albumCover:D,tip:parseInt(a.tip),fullName:a.fullName,title:a.title,artist:a.artist,generalRequest:o,playNow:y,songStatus:e,_id:S})}},[o,y]);var V=Object(n.useRef)(!0);function Z(){var e=window.location.href,t=e.substring(e.lastIndexOf("/")+1);return q(t),t}function X(e){var t=e.target,n=t.name,l=t.value;r(Object(i.a)({},a,Object(m.a)({},n,l)))}Object(n.useLayoutEffect)(function(){V.current?V.current=!1:0===M.tip?w.createRequest({albumCover:M.albumCover,tip:M.tip,fullName:M.fullName,title:M.title,artist:M.artist,generalRequest:M.generalRequest,playNow:M.playNow,songStatus:M.songStatus,_id:M._id}).then(function(e){return window.location.replace("/request/success/".concat(M._id))}).catch(function(e){return console.log(e)}):te()},[M]);var K,_,$,ee,te=function(){var e=Object(T.a)(C.a.mark(function e(){var t,a,n;return C.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be;case 2:return t=e.sent,e.next=5,ue.checkout(M);case 5:return a=e.sent,e.next=8,t.redirectToCheckout({sessionId:a.data.id});case 8:(n=e.sent).error&&console.err(n.error.message);case 10:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return U.eventDate&&(K=["January","February","March","April","May","June","July","August","September","October","November","December"][U.eventDate.slice(5,7)-1],_="0"===U.eventDate.slice(8,9)?parseInt(U.eventDate.slice(9,10)):parseInt(U.eventDate.slice(8,10)),$=U.eventDate.slice(0,4),ee=1===_||21===_||31===_?"st":2===_||22===_?"nd":3===_||23===_?"rd":"th"),l.a.createElement("div",{className:"request-page"},l.a.createElement(O,{title:"welcome customer"}),U.eventName&&l.a.createElement(d,{classes:"top-container"},l.a.createElement(E,null,l.a.createElement("h1",{className:"request-title"},"SEND A REQUEST TO ",G),l.a.createElement("button",{type:"button",className:"btn btn-dark mb-3 mt-1 btn-sm ml-3","data-toggle":"modal","data-target":"#modal-event-info"},"Event Details")),l.a.createElement("div",{className:"modal fade",id:"modal-event-info",tabIndex:"-1",role:"dialog","aria-hidden":"true"},l.a.createElement("div",{className:"modal-dialog",role:"document"},l.a.createElement("div",{className:"modal-content"},l.a.createElement("div",{className:"modal-header"},l.a.createElement("h5",{className:"modal-title"},U.eventName),l.a.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close"},l.a.createElement("span",{"aria-hidden":"true"},"\xd7"))),l.a.createElement("div",{className:"modal-body"},l.a.createElement("p",{className:"modal-text"},"".concat(K," ").concat(_).concat(ee,", ").concat($)," ","\xb7 ",U.startTime," - ",U.endTime),l.a.createElement("p",{className:"modal-text"},U.eventType," \xb7 \xb7 ",U.genre),l.a.createElement("p",{className:"modal-text"},"Venue: ",l.a.createElement("br",null),U.venueName," ",l.a.createElement("br",null),U.venueAddress)),l.a.createElement("div",{className:"modal-footer"},l.a.createElement("button",{type:"button",className:"btn btn-dark","data-dismiss":"modal"},"Close"))))),l.a.createElement("form",null,l.a.createElement(E,null,l.a.createElement(b,null,l.a.createElement("img",{src:U.eventImage,alt:"Event Image",className:"eventPic"}),l.a.createElement("p",{className:"h6 ml-2"},"Doesn't look familiar? Click ",l.a.createElement("a",{href:"/request"},"here")," to find your DJ!")),l.a.createElement(b,null,l.a.createElement(p,{onChange:X,type:"text",id:"fullName",name:"fullName",placeholder:"Your name here",label:"Your name:",className:"form-control"}),l.a.createElement(p,{onChange:X,type:"text",id:"title",name:"title",placeholder:"Song title",label:"Title:",className:"form-control"}),l.a.createElement(p,{onChange:X,type:"text",id:"artist",name:"artist",placeholder:"Artist",label:"Artist:",className:"form-control"}))),l.a.createElement("br",null),l.a.createElement(E,null,l.a.createElement(b,{size:"12"},l.a.createElement("p",{id:"request-type-label"},"Request Type",l.a.createElement("i",{"data-toggle":"modal","data-target":"#modal-request-type",className:"fas fa-info-circle ml-2"})),l.a.createElement("div",{className:"modal fade",id:"modal-request-type",tabIndex:"-1",role:"dialog","aria-hidden":"true"},l.a.createElement("div",{className:"modal-dialog",role:"document"},l.a.createElement("div",{className:"modal-content"},l.a.createElement("div",{className:"modal-body"},l.a.createElement("p",{className:"request-type-modal-content"},l.a.createElement("u",null,"General Request")," * : A request will be sent to the DJ.  The DJ will review these after the Play Now requests. This request may be played at any point throughout the event.",l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement("u",null,"Play Now Request")," * : The DJ will see these requests immediately, and may play this within 2-3 songs.",l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement("span",{className:"h6"},"* Please note that your song is not guaranteed to be played.  If your song is not played, the DJ will refund your charge.")))))))),l.a.createElement(E,null,l.a.createElement(b,{size:"md-4 sm-12"},l.a.createElement(g,{onChange:X,type:"radio",name:"requestType",value:"2",id:"generalRequest",label:"General",className:"form-check-input"})),l.a.createElement(b,{size:"md-8 sm-12"},l.a.createElement("p",{className:"ml-3"},"Minimum tip: $",U.generalRequestTipMin))),l.a.createElement(E,null,l.a.createElement(b,{size:"md-4 sm-12"},l.a.createElement(g,{onChange:X,type:"radio",name:"requestType",value:"100",id:"playNow",label:"Play Now",className:"form-check-input"})),l.a.createElement(b,{size:"md-8 sm-12"},l.a.createElement("p",{className:"ml-3"},"Minimum tip: $",U.playNowTipMin))),l.a.createElement(E,null,l.a.createElement(b,null,l.a.createElement(p,{onChange:X,type:"number",id:"tip",name:"tip",placeholder:"Tip Amount in $",className:"form-control"}))),l.a.createElement(v,{className:"btn btn-dark btn-lg mt-2 mb-3 gold-animated-btn",onClick:function(e){var t,n;e.preventDefault(),function(e,t){for(var n=document.getElementsByTagName("input"),l=[],r=[],c=0;c<n.length;c++)n[c].type.toLowerCase()==t&&(l.push(n[c].checked),!0===n[c].checked&&r.push(n[c]));if(!l.includes(!0))return document.getElementById("warning-radio-button-button").click(),!1;if("generalRequest"===r[0].id){if(a.tip<U.generalRequestTipMin)return document.getElementById("warning-minimum-tip-button").click(),!1}else if(a.tip<U.playNowTipMin)return document.getElementById("warning-minimum-tip-button").click(),!1;for(var s in e)if(null===e[s]||""===e[s])return document.getElementById("warning-form-button").click(),!1}(a,"radio"),t=a.title,n=a.artist,ce.findAlbumCover(t,n).then(function(e){if(!0===document.getElementById("generalRequest").checked){if("Track not found"!==e.data.message&&e.data.track.album){var t=e.data.track.album.image[2]["#text"];""===t&&(t="https://res.cloudinary.com/noimgmt/image/upload/v1615592263/noireqapp/njitt7mzvpuidhjila9m.jpg"),L(t)}else""===D&&L("https://res.cloudinary.com/noimgmt/image/upload/v1615592263/noireqapp/njitt7mzvpuidhjila9m.jpg");f(!0)}else{if("Track not found"!==e.data.message&&e.data.track.album){var a=e.data.track.album.image[2]["#text"];""===a&&(a="https://res.cloudinary.com/noimgmt/image/upload/v1615592263/noireqapp/njitt7mzvpuidhjila9m.jpg"),L(a)}else""===D&&L("https://res.cloudinary.com/noimgmt/image/upload/v1615592288/noireqapp/eklx5ftujcwbrddrovyi.jpg");j(!0)}})}},"Pay Now!")),l.a.createElement("div",{className:"hidden"}),l.a.createElement("div",{className:"text-center"},l.a.createElement("img",{src:ie.a,alt:"appleBadge",className:"mr-3 mt-2"}),l.a.createElement("img",{src:oe.a,alt:"googleBadge",style:{width:""},className:"mt-2"}))),l.a.createElement("button",{id:"warning-form-button",style:{display:"none"},type:"button",className:"btn btn-dark mt-3","data-toggle":"modal","data-target":"#modal-warning-form"},"Details"),l.a.createElement("button",{id:"warning-radio-button-button",style:{display:"none"},type:"button",className:"btn btn-dark mt-3","data-toggle":"modal","data-target":"#modal-warning-radio-button"},"Details"),l.a.createElement("button",{id:"warning-minimum-tip-button",style:{display:"none"},type:"button",className:"btn btn-dark mt-3","data-toggle":"modal","data-target":"#modal-warning-tip-minimum"},"Details"),l.a.createElement(Ee,{id:"modal-warning-form",name:"Form error",message:"Please fill out the entire form."}),l.a.createElement(Ee,{id:"modal-warning-radio-button",name:"Request type error",message:"Please select your request type: 'General' or 'Play Now'"}),l.a.createElement(Ee,{id:"modal-warning-tip-minimum",name:"Tip minimum",message:"Tip must be minimum value specified"}))};a(106);var ge=function(){var e=Object(n.useState)(),t=Object(u.a)(e,2),a=t[0],r=t[1],c=Object(n.useState)({albumCover:"",tip:0,fullName:"",title:"",artist:"",generalRequest:!1,playNow:!1,songStatus:"",_id:""}),s=Object(u.a)(c,2),o=s[0],m=s[1];Object(n.useEffect)(function(){!function(){var e=window.location.href,t=e.substring(e.lastIndexOf("=")+1);r(t)}()},[]);var i=Object(n.useRef)(!0);Object(n.useLayoutEffect)(function(){i.current?i.current=!1:b()},[a]);var E=Object(n.useRef)(!0);Object(n.useLayoutEffect)(function(){E.current?E.current=!1:w.createRequest({albumCover:o.albumCover,tip:o.tip,fullName:o.fullName,title:o.title,artist:o.artist,generalRequest:o.generalRequest,playNow:o.playNow,songStatus:o.songStatus,_id:o._id}).then(function(e){return window.location.replace("/request/success/".concat(o._id))}).catch(function(e){return console.log(e)})},[o]);var b=function(){var e=Object(T.a)(C.a.mark(function e(){var t,n,l;return C.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue.successData(a);case 2:t=e.sent,n="true"===t.data.generalRequest,l="true"===t.data.playNow,m({albumCover:t.data.albumCover,tip:parseInt(t.data.tip),fullName:t.data.fullName,title:t.data.title,artist:t.data.artist,generalRequest:n,playNow:l,songStatus:t.data.songStatus,_id:t.data._id});case 6:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return l.a.createElement("div",{className:"confirmation-page"},l.a.createElement("img",{src:"https://i.ibb.co/bdJNc5g/Noi-Logo-200x200.png",alt:"Noi-Logo",border:"0",width:"200",height:"200",className:"d-block mx-auto"}),l.a.createElement(d,{classes:"text-center confirmation-top"}))};var fe=function(){var e=Object(n.useState)(),t=Object(u.a)(e,2),a=t[0],r=t[1];return Object(n.useEffect)(function(){!function(){var e=window.location.href,t=e.substring(e.lastIndexOf("/")+1);r(t)}()},[]),l.a.createElement("div",{className:"confirmation-page"},l.a.createElement("img",{src:"https://i.ibb.co/bdJNc5g/Noi-Logo-200x200.png",alt:"Noi-Logo",border:"0",width:"200",height:"200",className:"d-block mx-auto"}),l.a.createElement(d,{classes:"text-center confirmation-top"},l.a.createElement(E,null,l.a.createElement(b,null,l.a.createElement("h1",{className:"text-center mt-5 confirmation-text display-4"},"THANK YOU FOR USING ",l.a.createElement("span",{className:"logo-text"},"NOI"),"!"),l.a.createElement("h2",{className:"text-center mt-5 confirmation-text"},"YOUR REQUEST HAS BEEN SENT!")))),l.a.createElement(d,null,l.a.createElement(E,null,l.a.createElement(b,null,l.a.createElement("h2",{className:"text-center mt-3 confirmation-text"},"You will be notified via email when your song is being played."))),l.a.createElement(E,null,l.a.createElement(b,null,l.a.createElement("h3",{className:"text-center mt-5 confirmation-text"},"Want to make another request?  Just click ",l.a.createElement("a",{href:"/request/".concat(a),className:"confirmation-link"},"here!")),l.a.createElement("h3",{className:"text-center mt-3 confirmation-text"},"(Do not use the back button.  This may cause an issue with your request)")))))};a(107);var he=function(){return l.a.createElement("div",{className:"nomatch-page"},l.a.createElement(d,{classes:"mt-5"},l.a.createElement(E,{classes:"p-5"},l.a.createElement(b,{size:"12",classes:"text-center"},l.a.createElement("h1",{className:"mb-3 display-1"},"Error: 404"),l.a.createElement("h1",null,l.a.createElement("i",{class:"fas fa-exclamation-triangle"})),l.a.createElement("h1",{className:"mb-5"},"Page Not Found"),l.a.createElement("p",null,"Whoops! These things do happen."),l.a.createElement("p",null,"If you're a DJ, click ",l.a.createElement(s.b,{to:"/",className:"nomatch-link"},"here"),"!"),l.a.createElement("p",null,"If you're a customer making a request, click ",l.a.createElement(s.b,{to:"/request",className:"nomatch-link"},"here"),"!")))))};var ve=function(){var e=Object(k.b)().user,t=Object(n.useState)([]),a=Object(u.a)(t,2),r=a[0],c=a[1];Object(n.useEffect)(function(){var t;R(e.sub),t=e.sub,w.getDj(t).then(function(e){return c(e.data[0])}).catch(function(e){return console.log(e)})},[e.sub]),Object(n.useEffect)(function(){g({fullName:r.fullName,djName:r.djName,hometown:r.hometown,djStyle:r.djStyle,email:r.email,instagram:r.instagram})},[r]);var s=Object(n.useState)(r||""),o=Object(u.a)(s,2),E=o[0],g=o[1];function f(e){var t=e.target,a=t.name,n=t.value;g(Object(i.a)({},E,Object(m.a)({},a,n)))}return l.a.createElement("div",{className:"signup"},l.a.createElement(O,{title:"SIGNUP"}),l.a.createElement(d,{classes:"top-container"},l.a.createElement(b,{size:"12"},l.a.createElement("div",null,l.a.createElement("h1",{className:"mb-3"},"UPDATE YOUR NOI PROFILE"),l.a.createElement("form",{style:{width:"300px"}},l.a.createElement(p,{onChange:f,type:"text",id:"fullName",name:"fullName",value:E.fullName||"",label:"What's your real name?",className:"form-control"}),l.a.createElement(p,{onChange:f,type:"text",id:"djName",name:"djName",value:E.djName||"",label:"What's your DJ name?",className:"form-control"}),l.a.createElement(p,{onChange:f,type:"text",id:"hometown",name:"hometown",value:E.hometown||"",label:"Where are you from?",className:"form-control"}),l.a.createElement(p,{onChange:f,type:"text",id:"djStyle",name:"djStyle",value:E.djStyle||"",label:"What type of music do you play?",className:"form-control"}),l.a.createElement(p,{onChange:f,type:"text",id:"email",name:"email",value:E.email||"",label:"What's your email?",className:"form-control"}),l.a.createElement(p,{onChange:f,type:"text",id:"instagram",name:"instagram",value:E.instagram||"",label:"What's your Instagram handle?",className:"form-control"}),l.a.createElement(v,{onClick:function(e){e.preventDefault(),w.updateDj({_id:r._id,fullName:E.fullName,djName:E.djName,hometown:E.hometown,djStyle:E.djStyle,email:E.email,instagram:E.instagram}).then(function(e){null!==e.data&&window.location.replace("/dj/profile")}).catch(function(e){return console.log(e)})},className:"btn btn-dark formBtn mt-5"},"Update NOI Profile"))))))},Ne=a(48);var ye=function(){return l.a.createElement("div",null,"Loading...")},je=function(e){var t=e.component,a=Object(Ne.a)(e,["component"]);return l.a.createElement(o.a,Object.assign({component:Object(k.c)(t,{onRedirecting:function(){return l.a.createElement(ye,null)}})},a))},we="dev-e6wn8w12.us.auth0.com",Oe="AZXJ1gRw0ZvOQaiDjELiwuUA97y3w8Om";var xe=function(){return l.a.createElement(s.a,null,l.a.createElement(k.a,{domain:we,clientId:Oe,redirectUri:window.location.origin},l.a.createElement("div",null,l.a.createElement(o.c,null,l.a.createElement(o.a,{exact:!0,path:["/","/dj"]},l.a.createElement(le,null)),l.a.createElement(o.a,{exact:!0,path:"/request"},l.a.createElement(re,null)),l.a.createElement(o.a,{exact:!0,path:"/request/:djid"},l.a.createElement(pe,null)),l.a.createElement(o.a,{exact:!0,path:"/request/confirmation/:djid"},l.a.createElement(ge,null)),l.a.createElement(o.a,{exact:!0,path:"/request/success/:djid"},l.a.createElement(fe,null)),l.a.createElement(je,{exact:!0,path:"/dj/signup",component:I}),l.a.createElement(je,{exact:!0,path:"/dj/dashboard",component:z}),l.a.createElement(je,{exact:!0,path:"/dj/requests",component:W}),l.a.createElement(je,{exact:!0,path:"/dj/activity",component:G}),l.a.createElement(je,{exact:!0,path:"/dj/profile",component:te}),l.a.createElement(je,{exact:!0,path:"/dj/editprofile",component:ve}),l.a.createElement(o.a,null,l.a.createElement(he,null))))))};a(108);c.a.render(l.a.createElement(xe,null),document.getElementById("root"))},45:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJkAAAAuCAYAAAA7k7t3AAAOq0lEQVR4AeybA3QlyxaGKye2nYxt27ZxrWhs27Zt28rNOM7YzItt4+W/tVfSHU9Oxui91t+rS12p018Ku6rZZzfJJNu+ffvQo0ePXtm8ebPvhg0bQrkC5ZAkSaFbt271OXjw4MXdu3fbcjFB4k3//v21Tp486bF48WK0atUKpUuXhpmZGczNzSVJKlLESpkyZdCuXTssX74cR44cufnXX3+pcTFGF9KJEyfujRkzBoyxD5YkSRMnTgQfEZ25GKPLqlWrbFauXPlRK5Ekad26dVi0aNEAxi/s8OHDTi1btvyoFUiS1LFjRxo2zzJ+YTt27HhdqVKlj1qBJEnVq1fHtm3bPBm/sJ07d76pVq3aR61AkiRiasuWLe6M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NcgA0Hm1kYtoD+PcF1lGR5Bi4MWfeWfkZ0BvL+HcIHiOiYM7nNvZddqxVr6qQuS6RO8/XA4Dma1NKr8b896CQY1nXZWjrOc8z1Dxhu23lva3Ika9Snv24bskxvtSjRVh0HR479P1q0aEGMJAMXhQsycFH/lHuhxghckE2GZOEozHXsj/bOAAMAGIaBQP//5DnMGIAE5XAPGJBWdxHy1z8c8NVu0Ru4tGVlweQeu8LQT5aFhS5nzwTqG+5XQS6cmZyfTNOi1E2LOmOl7oxt269F+zVUPf6ixx/ajSRiI8kj3a0kdisdXVd5wsSro6kAAAAASUVORK5CYII="},46:function(e,t,a){e.exports=a.p+"static/media/badge-download-on-the-app-store.2928664f.svg"},49:function(e,t,a){e.exports=a(109)},54:function(e,t,a){},55:function(e,t,a){},56:function(e,t,a){},57:function(e,t,a){},75:function(e,t,a){},76:function(e,t,a){},85:function(e,t,a){},86:function(e,t,a){},89:function(e,t,a){},90:function(e,t,a){}},[[49,1,2]]]);
  //# sourceMappingURL=main.deca31e6.chunk.js.map