1"use strict";(self.webpackChunkmy_webpack_project=self.webpackChunkmy_webpack_project||[]).push([[1032,7166],{19011(e,t,r){var n,a,l=r(39471);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(null,arguments)}r.d(t,["A",0,e=>l.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:30,height:30,fill:"none"},e),n||(n=l.createElement("path",{fill:"#FBC27A",fillRule:"evenodd",d:"M16.83 27.44c0 .606-.492 1.097-1.099 1.097H1.975A1.976 1.976 0 0 1 0 26.561V1.975A1.976 1.976 0 0 1 1.975 0h24.586a1.976 1.976 0 0 1 1.976 1.975v13.757a1.098 1.098 0 0 1-2.196 0V2.195H2.195v24.147h13.536c.607 0 1.098.492 1.098 1.097",clipRule:"evenodd"})),a||(a=l.createElement("path",{fill:"#FBC27A",fillRule:"evenodd",d:"M24.512 19.025c.606 0 1.098.491 1.098 1.097v3.293h3.292a1.098 1.098 0 0 1 0 2.195H25.61v3.293a1.098 1.098 0 0 1-2.195 0V25.61h-3.293a1.098 1.098 0 0 1 0-2.195h3.293v-3.293c0-.606.492-1.097 1.097-1.097M10.976 10.306v7.925l6.934-3.962zM8.78 9.928c0-1.517 1.638-2.468 2.955-1.715l7.596 4.341c1.328.758 1.328 2.672 0 3.43l-7.596 4.342c-1.317.751-2.955-.2-2.955-1.717z",clipRule:"evenodd"})))])},78872(e,t,r){var n,a,l,o,c=r(39471);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(null,arguments)}r.d(t,["A",0,e=>c.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:31,height:27,fill:"none"},e),n||(n=c.createElement("path",{fill:"#8E368B",fillRule:"evenodd",d:"M0 1.284A1.286 1.286 0 0 1 1.286 0H29.57c.71 0 1.286.564 1.286 1.284v24.43A1.286 1.286 0 0 1 29.571 27H1.286C.576 27 0 26.436 0 25.716zm1.286.002v24.428H29.57V1.286z",clipRule:"evenodd"})),a||(a=c.createElement("path",{fill:"#8E368B",fillRule:"evenodd",d:"M3.857 3.857h3.857v1.286H3.857zM9 3.857h6.429v1.286H9zM3.857 6.429h3.857v1.285H3.857zM9 6.429h6.429v1.285H9zM3.857 9h3.857v1.285H3.857zM9 9h6.429v1.285H9zM3.857 11.571h3.857v1.286H3.857zM19.286 16.714h2.571V18h-2.571zM19.286 19.286h2.571v1.286h-2.571zM19.286 21.857h2.571v1.286h-2.571zM23.143 16.714H27V18h-3.857zM20.796 12.523a4.502 4.502 0 0 1-1.302-7.515l2.314 3.469zm1.247.311a4.5 4.5 0 0 0 4.934-4.933l-3.948.986zm-1.48-8.54a4.5 4.5 0 0 1 6.103 2.36l-3.883.97z",clipRule:"evenodd"})),l||(l=c.createElement("path",{fill:"#8E368B",fillRule:"evenodd",d:"M0 1.284A1.286 1.286 0 0 1 1.286 0H29.57c.71 0 1.286.564 1.286 1.284v24.43A1.286 1.286 0 0 1 29.571 27H1.286C.576 27 0 26.436 0 25.716zm1.286.002v24.428H29.57V1.286z",clipRule:"evenodd"})),o||(o=c.createElement("path",{fill:"#8E368B",fillRule:"evenodd",d:"M23.143 19.286H27v1.286h-3.857zM23.143 21.857H27v1.286h-3.857zM3.857 15.429h1.286v7.714H3.857zM6.428 20.572h1.286v2.57H6.428zM9 18h1.286v5.143H9zM11.571 18h1.286v5.143h-1.286zM14.143 19.286h1.285v3.857h-1.285zM9 11.571h6.429v1.286H9z",clipRule:"evenodd"})))])},37704(e,t,r){r.r(t),r.d(t,{default:()=>k});var n,a,l=r(39471),o=r(1503),c=r(29283),i=r(4826),s=r.n(i),u=r(51794),f=r(24069);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(null,arguments)}const v=e=>l.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),n||(n=l.createElement("g",{stroke:"#2B2A2A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,clipPath:"url(#back-arrow_svg__a)"},l.createElement("path",{d:"M6.666 16h18.667M6.666 16l5.333 5.333M6.666 16l5.333-5.333"}))),a||(a=l.createElement("defs",null,l.createElement("clipPath",{id:"back-arrow_svg__a"},l.createElement("path",{fill:"#fff",d:"M0 0h32v32H0z"})))));r(78872),r(19011);var d=r(32972),m=r(9844),p=r(56199),b=r(16548),g=r(28152),y=r(27714),w=r(80943),E=r(18467);function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?z(Object(r),!0).forEach(function(t){M(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function M(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,l,o,c=[],i=!0,s=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;i=!1}else for(;!(i=(n=l.call(r)).done)&&(c.push(n.value),c.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{if(!i&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const H=c.A.TabPane,k=()=>{const e=(0,d.Zp)(),t=(0,d.zy)(),r=O((0,l.useState)([]),2),n=(r[0],r[1],O((0,l.useState)([]),2)),a=(n[0],n[1],O((0,l.useState)([s()().subtract(1,"month"),s()()]),2)),i=(a[0],a[1],O((0,l.useState)("Reporting Dashboard"),2)),h=i[0],z=i[1],M=(0,E.wA)();(0,l.useEffect)(()=>{"/app/contributor/dashboard"===t.pathname?z("Reporting Dashboard"):"/app/contributor/contentadd"===t.pathname&&z("Add Content")},[t.pathname]);const j=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric"}),k=new URLSearchParams(t.search),P="payment"===k.get("tab")?"3":"1",S=O((0,l.useState)({message:null,severity:"success"}),2),R=S[0],x=S[1];return(0,l.useEffect)(()=>{(async()=>{const r=k.get("onboarded");if("true"===r)try{var n;const r=await(0,u.OK)();M((0,w.xD)(r.data)),!1===(null===(n=r.data)||void 0===n||null===(n=n.influencer)||void 0===n?void 0:n.stripe_onboarding_required)?(x({message:"Success! Your bank is now connected!",severity:"success"}),e(t.pathname,{replace:!0})):(x({message:"You cancelled the onboarding process midway.",severity:"warning"}),e(t.pathname,{replace:!0}))}catch(r){x({message:"Error checking onboarding status.",severity:"error"}),e(t.pathname,{replace:!0})}else"false"===r&&(x({message:"You didnât finish connecting to your bank. Try again.",severity:"error"}),e(t.pathname,{replace:!0}))})()},[t.search]),l.createElement("div",{className:" min-h-screen mr-20"},l.createElement(g.A,{message:R.message,severity:R.severity,icon:l.createElement(y.A,null),onClose:()=>x(A(A({},R),{},{message:null})),backgroundColor:"success"===R.severity?"#34B5B1":"#FF4D4F",textColor:"#fff"}),l.createElement("div",{className:"flex flex-row gap-[12px]"},l.createElement("div",{className:"cursor-pointer mt-[15px]",onClick:()=>e(-1)},l.createElement(v,null)),l.createElement("h1",{className:"text-[24px] font-bold text-[#2B2A2A]"},h)),l.createElement(c.A,{defaultActiveKey:P,className:"custom-tabs-contributor",style:{width:"100%",fontSize:"16px"}},l.createElement(H,{tab:"Earnings & Engagement",key:"1"},l.createElement(f.default,{formatDate:j})),l.createElement(H,{tab:"Fan Demographics",key:"2"},l.createElement(m.default,{formatDate:j})),l.createElement(H,{tab:"Tip Revenue",key:"3"},l.createElement(p.default,{formatDate:j})),l.createElement(H,{tab:"AI Personalities",key:"4"},l.createElement(o.A,{style:{borderColor:"#2B2A2A"}}),l.createElement(b.default,null))))}}}]);
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.