1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="60987e26-3fc6-4c20-a41f-8380649a5dd1",e._sentryDebugIdIdentifier="sentry-dbid-60987e26-3fc6-4c20-a41f-8380649a5dd1")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[76243],{71139:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/affiliate/dashboard",function(){return n(63729)}])},15432:function(e,t,n){"use strict";n.r(t),t.default={src:"/_next/static/media/money.e5008400.png",height:40,width:40,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAb1BMVEVMaXHCwLTCv6y1sqFteX2Dg3jZ1cLX1cXRzbm+qnG7uayPj4THsGjn59vDvqrPyrVbXlaSlY2/v61tbmKfkWjQzL3Tz7+Dh3uwoG+xrpjDs4Lc2MnKyLfAvKvFupDOzryamo/Ewa6go5mMfFHp69jacgLIAAAAHnRSTlMAKoP9H07n/vP48EX9CsVZZNgcrdDWjJHoUqZDxHo3wc8AAAAACXBIWXMAAAsTAAALEwEAmpwYAAAARElEQVR4nAXBBQKAIAAAsUNBWuxu/f8b3UhrZM4EbLpczs959tMEmz8jJPvayUdUeYTDmYE213dX6B6qq5aZKQAloRE/ijwDaMEuTzgAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}},63729:function(e,t,n){"use strict";n.r(t);var r=n(14251),a=n(52875),o=n(85893),s=n(67294),i=n(25675),c=n.n(i),l=(n(67814),n(46412)),u=n(86501),d=n(85978),f=n(54943),p=n(9473),m=n(35776),x=(n(30381),n(63750)),h=n(87145),g=n(59335);t.default=(0,l.tC)((function(){var e,t,i=(0,d.getLocalstoregeData)("INFLUENCER"),l=(0,s.useState)(),v=(l[0],l[1]),A=(0,s.useState)(""),b=(A[0],A[1]),y=(0,s.useState)(0),j=(y[0],y[1]),E=(0,s.useState)(1),w=E[0],N=(E[1],(0,s.useState)({dataLoaded:!1,loadMore:!1})),P=N[0],Z=N[1],D=(0,p.I0)(),_=(0,s.useState)(),I=_[0],T=_[1],S=(0,s.useState)([]),U=S[0],k=S[1];(0,s.useEffect)((function(){(0,f.cO)((function(e){var t,n,r;(0,d.setLocalstoregeData)("INFLUENCER",null===e||void 0===e?void 0:e.infuencer),(null===e||void 0===e||null===(t=e.infuencer)||void 0===t?void 0:t.lastPayout)?v(null===e||void 0===e||null===(n=e.infuencer)||void 0===n?void 0:n.lastPayout):v(null===e||void 0===e||null===(r=e.infuencer)||void 0===r?void 0:r.createdAt)}),(function(e){u.ZP.error(e)}))}),[]);(0,s.useEffect)((function(){!function(){var e={influencerId:null===i||void 0===i?void 0:i._id,filters:JSON.stringify({status:"Withdrawn",payoutType:"Income",limit:10,page:1})};(0,f.nB)(e,(function(e){T(e)}),(function(e){u.ZP.error(e)}),D)}()}),[w]),(0,s.useEffect)((function(){var e={referalCode:null===i||void 0===i?void 0:i.refferalcode,page:w,limit:20};(0,f.ME)(e,(function(e){j(20*e.pagianationCount-1),b(e),Z((0,a.Z)((0,r.Z)({},P),{dataLoaded:!0}))}),(function(e){u.ZP.error(e),Z((0,a.Z)((0,r.Z)({},P),{dataLoaded:!0}))}))}),[]);(0,s.useEffect)((function(){(0,f.U_)((function(e){console.log("getinfluencerearning",e),k(e)}),(function(e){u.ZP.error(e)}),D)}),[]),console.log("Earnings data",U);var B=Math.round(null===U||void 0===U?void 0:U.totalEarning)||0,L=Math.round(.1*B);console.log("nextpayout",B);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex flex-col lg:flex-row mb-[50px]",children:[(0,o.jsxs)("div",{className:"info-card flex flex-row m-6 gap-3 bg-[#D9E0DF] bg-300 rounded-lg lg:w-4/12 h-full px-10 py-5 items-center font-inter",children:[(0,o.jsx)("div",{className:"w-[40px] h-[40px]",children:(0,o.jsx)(c(),{src:n(15432),width:100,height:100,alt:"facebook login"})}),(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"font-medium text-[#647B76] leading-6 text-[25px] lg:text-[12px]",children:"Clicks"}),(0,o.jsx)("div",{className:"text-[50px] lg:text-[24px] font-bold",children:null===i||void 0===i?void 0:i.linksclicked})]})]}),(0,o.jsxs)("div",{className:"info-card flex flex-row m-6 gap-3 bg-[#D9E0DF] bg-300 rounded-lg lg:w-4/12 h-full px-10 py-5 items-center font-inter",children:[(0,o.jsx)("div",{className:"w-[40px] h-[40px]",children:(0,o.jsx)(c(),{src:n(15432),width:100,height:100,alt:"facebook login"})}),(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"font-medium text-[#647B76] text-[25px] lg:text-[12px] leading-6",children:"Signup Users"}),(0,o.jsx)("div",{className:"text-[50px] lg:text-[24px] font-bold",children:null===i||void 0===i?void 0:i.signedUpUsers})]})]}),(0,o.jsxs)("div",{className:"info-card flex flex-row m-6 gap-3 bg-[#D9E0DF] bg-300 rounded-lg lg:w-4/12 h-full px-10 py-5 items-center font-inter",children:[(0,o.jsx)("div",{className:"w-[40px] h-[40p
1x]",children:(0,o.jsx)(c(),{src:n(15432),width:100,height:100,alt:"facebook login"})}),(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"font-medium text-[#647B76] text-[25px] lg:text-[12px] leading-6",children:"Demo Taken"}),(0,o.jsx)("div",{className:"text-[50px] lg:text-[24px] font-bold",children:null===i||void 0===i?void 0:i.demoTaken})]})]}),(0,o.jsxs)("div",{className:"info-card flex flex-row m-6 gap-3 bg-[#D9E0DF] bg-300 rounded-lg lg:w-4/12 h-full px-10 py-5 items-center font-inter",children:[(0,o.jsx)("div",{className:"w-[40px] h-[40px]",children:(0,o.jsx)(c(),{src:n(15432),width:100,height:100,alt:"facebook login"})}),(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"font-medium text-[#647B76] text-[25px] lg:text-[12px] leading-6",children:"Subscribed Users"}),(0,o.jsx)("div",{className:"text-[50px] lg:text-[24px] font-bold",children:null===i||void 0===i?void 0:i.subscribedUser})]})]})]}),(0,o.jsxs)("div",{className:"flex flex-col lg:flex-row m-6 justify-between gap-4 lg:h-full",children:[(0,o.jsx)("div",{className:"border-2 border-[#D9E0DF] py-5 px-10 lg:w-4/12 rounded-lg font-inter font-semibold",children:(0,o.jsxs)("div",{className:"lg:h-[85%]",children:[(0,o.jsx)("h1",{className:"mb-4 text-[35px] lg:text-xl ",children:"Next Payout"}),U?(0,o.jsxs)("div",{className:"flex flex-col justify-center items-center payout-card pt-[100px]",children:[(0,o.jsxs)("p",{className:"font-inter text-primary-800 font-semibold text-[20px] mb-4",children:["\u20b9 ",B]}),(0,o.jsxs)("p",{className:"font-inter text-red-500 font-semibold text-[20px] mb-4",children:["- \u20b9 ",L," (TDS)"]}),(0,o.jsx)("hr",{className:"w-full h-[2px]"}),(0,o.jsxs)("p",{className:"font-inter text-primary-800 font-semibold text-[20px] mb-4",children:["\u20b9 ",B-L]})]}):(0,o.jsx)("div",{className:"flex justify-center items-center payout-card pt-[100px]",children:(0,o.jsx)("p",{className:"font-inter text-primary-800 font-semibold text-[50px] mb-4",children:"\u20b9 0"})}),(0,o.jsx)("div",{className:"flex justify-center items-center",children:(0,o.jsx)(g.Button,{className:"bg-[#24A791] text-white mt-4 p-4 rounded-md",disabled:0==U.totalEarning,onClick:function(){(0,h.ig)((function(e){u.ZP.success(e.message);(0,f.U_)((function(e){k(e)}),(function(e){u.ZP.error(e)}),D)}),(function(e){u.ZP.error(e)}))},children:"Request Payout"})})]})}),(0,o.jsx)("div",{className:"border-2 border-[#D9E0DF] py-5 px-10 lg:w-8/12 rounded-lg font-inter font-semibold",children:(0,o.jsxs)("div",{className:"lg:h-[85%]",children:[(0,o.jsx)("h1",{className:"mb-4 text-[35px] lg:text-xl",children:"Previous Payout"}),(0,o.jsx)("div",{children:(0,o.jsxs)("table",{className:"w-full",children:[(0,o.jsx)("thead",{className:"bg-neutral-100 p-3 rounded-2xl",children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{scope:"col",className:"text-sm font-medium text-neutral-700 font-inter px-6 py-4 text-left",children:"S.No"}),(0,o.jsx)("th",{scope:"col",className:"text-sm font-medium text-neutral-700 font-inter px-6 py-4 text-left",children:"Payout Type"}),(0,o.jsx)("th",{scope:"col",className:"text-sm font-medium text-neutral-700 font-inter px-6 py-4 text-left",children:"Status"}),(0,o.jsx)("th",{scope:"col",className:"text-sm font-medium text-neutral-700 font-inter px-6 py-4 text-left",children:"Approved Amount"})]})}),(0,o.jsx)("tbody",{children:P.dataLoaded?(null===I||void 0===I||null===(e=I.allAffiliatePayouts)||void 0===e?void 0:e.length)?null===I||void 0===I||null===(t=I.allAffiliatePayouts)||void 0===t?void 0:t.map((function(e,t){return(0,o.jsxs)("tr",{className:"bg-white border-b",children:[(0,o.jsx)("td",{className:"text-sm font-medium text-primary-800 font-inter text-center px-6 py-4 whitespace-nowrap",children:t+1}),(0,o.jsx)("td",{className:"text-sm font-medium text-primary-800 font-inter text-center px-6 py-4 whitespace-nowrap",children:null===e||void 0===e?void 0:e.payoutType}),(0,o.jsx)("td",{className:"text-sm font-medium text-primary-800 font-inter text-center px-6 py-4 whitespace-nowrap",children:null===e||void 0===e?void 0:e.status}),(0,o.jsxs)("td",{className:"text-sm font-medium text-primary-800 font-inter text-center px-6 py-4 whitespace-nowrap",children:["\u20b9",Math.round(null===e||void 0===e?void 0:e.approvedAmount),"/-"]})]},t)})):(0,o.jsxs)("td",{className:"w-full m-4 h-[150px]",colSpan:6,children:[(0,o.jsx)(x.x5c,{className:"text-[55px] text-neutral-300 mx-auto"}),(0,o.jsx)("p",{className:"text-neutral-400 font-sm font-medium text-center",children:"No data"})]}):(0,o.jsx)("td",{className:"w-full m-4 h-[150px]",colSpan:6,children:(0,o.jsx)(m.Z,{})})})]})})]})})]})]})}))},54943:function(e,t,n){"use strict";n.d(t,{BC:function(){return h},ME:function(){return l},O9:function(){return c},Sp:function(){return x},TJ:function(){return u},U1:function(){return m},U_:function(){return d},cO:function(){return p}
1,nB:function(){return f},pP:function(){return i}});var r=n(34727),a=n(97582),o=n(21229),s=n(22473),i=function(){var e=(0,r.Z)((function(e,t,n,r){var i,c,l,u,d;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),i=o.Z.Login,c=i.url,l=i.method,[4,(0,s.GP)(c,l,e)];case 1:return 200===(u=r.sent()).status?t(u.data):n(u.data.message),[3,3];case 2:return"AbortError"===(d=r.sent()).name?(console.error("API Timeout !"),[2]):(console.error(d),console.error(d.response),n("Error:".concat(d.name)),[3,3]);case 3:return[2]}}))}));return function(t,n,r,a){return e.apply(this,arguments)}}(),c=function(){var e=(0,r.Z)((function(e,t,n,r){var i,c,l,u,d;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),i=o.Z.SignupInfluencer,c=i.url,l=i.method,[4,(0,s.GP)(c,l,e)];case 1:return 200===(u=r.sent()).status?t(u.data):n(u.data.message),[3,3];case 2:return"AbortError"===(d=r.sent()).name?(console.error("API Timeout !"),[2]):(console.error(d),console.error(d.response),n("Error:".concat(d.name)),[3,3]);case 3:return[2]}}
1))}));return function(t,n,r,a){return e.apply(this,arguments)}}(),l=function(){var e=(0,r.Z)((function(e,t,n,r){var i,c,l,u,d;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),i=o.Z.Reffereduser,c=i.url,l=i.method,[4,(0,s.ZK)(c,l,e)];case 1:return 200===(u=r.sent()).status?t(u.data):n(u.data.message),[3,3];case 2:return"AbortError"===(d=r.sent()).name?(console.error("API Timeout !"),[2]):(console.error(d),console.error(d.response),n("Error:".concat(d.name)),[3,3]);case 3:return[2]}}))}));return function(t,n,r,a){return e.apply(this,arguments)}}(),u=(function(){var e=(0,r.Z)((function(e,t,n,r){var i,c,l,u,d;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),i=o.Z.Influencerdata,c=i.url,l=i.method,[4,(0,s.GP)(c,l,e)];case 1:return 200===(u=r.sent()).status?t(u.data):n(u.data.message),[3,3];case 2:return"AbortError"===(d=r.sent()).name?(console.error("API Timeout !"),[2]):(console.error(d),console.error(d.response),n("Error:".concat(d.name)),[3,3]);case 3:return[2]}}
1))}))}(),function(){var e=(0,r.Z)((function(e,t,n,r){var i,c,l,u,d;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),i=o.Z.getEarningsData(e),c=i.url,l=i.method,[4,(0,s.ZK)(c,l)];case 1:return 200===(u=r.sent()).status?t(u.data):n(u.data.message),[3,3];case 2:return"AbortError"===(d=r.sent()).name?(console.error("API Timeout !"),[2]):(console.error(d),console.error(d.response),n("Error:".concat(d.name)),[3,3]);case 3:return[2]}}))}));return function(t,n,r,a){return e.apply(this,arguments)}}()),d=function(){var e=(0,r.Z)((function(e,t,n){var r,i,c,l,u;return(0,a.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),r=o.Z.getInfluencerEarning,i=r.url,c=r.method,[4,(0,s.ZK)(i,c)];case 1:return 200===(l=n.sent()).status?e(l.data):t(l.data.message),[3,3];case 2:return"AbortError"===(u=n.sent()).name?(console.error("API Timeout !"),[2]):(console.error(u),console.error(u.response),t("Error:".concat(u.name)),[3,3]);case 3:return[2]}}))}));return function(t,n,r){return e.apply(this,arguments)}}(),f=function(){var e=(0,r.Z)((function(e,t,n,r){var i,c,l,u,d;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),i=o.Z.getPayoutDetails(e),c=i.url,l=i.method,[4,(0,s.ZK)(c,l)];case 1:return 200===(u=r.sent()).status?t(u.data):n(u.data.message),[3,3];case 2:return"AbortError"===(d=r.sent()).name?(console.error("API Timeout !"),[2]):(console.error(d),console.error(d.response),n("Error:".concat(d.name)),[3,3]);case 3:return[2]}}
1))}));return function(t,n,r,a){return e.apply(this,arguments)}}(),p=function(){var e=(0,r.Z)((function(e,t){var n,r,i,c,l;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=o.Z.InfluencerDetails,r=n.url,i=n.method,[4,(0,s.ZK)(r,i)];case 1:return 200===(c=a.sent()).status?e(c.data):t(c.data.message),[3,3];case 2:return"AbortError"===(l=a.sent()).name?(console.error("API Timeout !"),[2]):(console.error(l),console.error(l.response),t("Error:".concat(l.name)),[3,3]);case 3:return[2]}}))}));return function(t,n){return e.apply(this,arguments)}}(),m=function(){var e=(0,r.Z)((function(e,t,n,r){var i,c,l,u,d;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),i=o.Z.AddAffiliateBank,c=i.url,l=i.method,[4,(0,s.ZK)(c,l,e)];case 1:return 200===(u=r.sent()).status?t(u.data):n(u.data.message),[3,3];case 2:return"AbortError"===(d=r.sent()).name?(console.error("API Timeout !"),[2]):(console.error(d),console.error(d.response),n("Error:".concat(d.name)),[3,3]);case 3:return[2]}}
1))}));return function(t,n,r,a){return e.apply(this,arguments)}}(),x=function(){var e=(0,r.Z)((function(e,t,n,r){var i,c,l,u,d;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),i=o.Z.VerifyAffiliateBank,c=i.url,l=i.method,[4,(0,s.ZK)(c,l,e)];case 1:return 200===(u=r.sent()).status?t(u.data):n(u.data.message),[3,3];case 2:return"AbortError"===(d=r.sent()).name?(console.error("API Timeout !"),[2]):(console.error(d),console.error(d.response),n("Error:".concat(d.name)),[3,3]);case 3:return[2]}}))}));return function(t,n,r,a){return e.apply(this,arguments)}}(),h=function(){var e=(0,r.Z)((function(e,t,n){var r,i,c,l,u;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),r=o.Z.GetAffiliateDetails(e),i=r.url,c=r.method,[4,(0,s.ZK)(i,c)];case 1:return 200===(l=a.sent()).status?t(l.data):n(l.data.message),[3,3];case 2:return"AbortError"===(u=a.sent()).name?(console.error("API Timeout !"),[2]):(console.error(u),console.error(u.response),n("Error:".concat(u.name)),[3,3]);case 3:return[2]}}
1))}));return function(t,n,r){return e.apply(this,arguments)}}()},21229:function(e,t){"use strict";var n={Login:{url:"".concat("https://api.clapingo.com","/api/influencer/login"),method:"POST"},Reffereduser:{url:"".concat("https://api.clapingo.com","/api/influencer/reffereduser"),method:"POST"},Influencerdata:{url:"".concat("https://api.clapingo.com","/api/influencer/influencerdata"),method:"POST"},SignupInfluencer:{url:"".concat("https://api.clapingo.com","/api/influencer/signup"),method:"POST"},getEarningsData:function(e){var t=e.influencerId,n=e.limit,r=e.startDate,a=e.endDate,o=e.page;e.forKids,e.subject;return{url:"".concat("https://api.clapingo.com","/api/influencer/earningsData?influencerId=").concat(t,"&limit=").concat(n,"&startDate=").concat(r,"&endDate=").concat(a,"&page=").concat(o,"&paid=false"),method:"GET"}},getPayoutDetails:function(e){var t=e.influencerId,n=e.filters;return{url:"".concat("https://api.clapingo.com","/api/influencer/allPayouts?influencerId=").concat(t,"&filters=").concat(n),method:"GET"}},InfluencerDetails:{url:"".concat("https://api.clapingo.com","/api/influencer/influencerdata"),method:"GET"},AddAffiliateBank:{url:"".concat("https://api.clapingo.com","/api/influencer/addBankDetails"),method:"PUT"},VerifyAffiliateBank:{url:"".concat("https://api.clapingo.com","/api/influencer/verifyBankDetails"),method:"PUT"},GetAffiliateDetails:function(e){var t=e.affiliateId;return{url:"".concat("https://api.clapingo.com","/api/influencer/getInfluencerCoupon/").concat(t),method:"GET"}},getInfluencerEarning:{url:"".concat("https://api.clapingo.com","/api/influencer/influencerEarning"),method:"GET"},ForgotPassword:{url:"".concat("https://api.clapingo.com","/api/influencer/forgotpassword"),method:"POST"},VerifyOtp:{url:"".concat("https://api.clapingo.com","/api/influencer/verifyotp"),method:"POST"}};t.Z=n}},function(e){e.O(0,[3874,30277,95445,61228,97948,94824,32013,29866,12876,44949,74550,9584,55250,41377,16629,95551,76701,52515,13700,93183,43626,70529,53833,56132,22359,49774,92888,40179],(function(){return t=71139,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.