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]="2b2a1c0c-fd7d-4ec7-8c9e-f543067380cc",e._sentryDebugIdIdentifier="sentry-dbid-2b2a1c0c-fd7d-4ec7-8c9e-f543067380cc")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64695],{31330:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/affiliate",function(){return n(64962)}])},34349:function(e,t,n){"use strict";n.r(t),t.default={src:"/_next/static/media/Grp1.3f8d3c35.svg",height:123,width:123}},55560:function(e,t,n){"use strict";n.r(t),t.default={src:"/_next/static/media/Grp2.9d9cf6bc.svg",height:124,width:124}},23161:function(e,t,n){"use strict";n.r(t),t.default={src:"/_next/static/media/Grp3.a6736ee9.svg",height:123,width:124}},76651:function(e,t,n){"use strict";n.r(t),t.default={src:"/_next/static/media/bg1.6129e779.png",height:444,width:444,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAflBMVEVMaXHH8dSozrW228GEv5icxqouPkB50I+n1La63caX16vb8ePe3eDq6u2TvqNfqHbD7c++8cxYaWfA7cwzSkRTYGKx2r/G89JPcmATHSJUaWTI9NSXw6bO4dWPxKCl2bSt4Lym3LatrrSbuqjU4Nt4mIexvrrN/9y22sHp+PCvBgUZAAAAJXRSTlMAWcdpPwn2EyWC+P7lPYNYs/t2y1n2zM4dNP2W/KTr36jJ75n+WbTWcwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAEVJREFUeJwFwYUBgDAAA7DOneHuzv8PkkAbcxgOIHync4kSCH73c9QKYHaZNFcQmx3vvGyB9a2k7AAMT3b1NQNIWjSUkh+HlgPRm2s89AAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},44349:function(e,t,n){"use strict";var r=n(85893);n(67294);t.Z=function(e){var t=e.label,n=e.placeHolder,a=e.type,s=e.value,o=e.onChange,i=e.readOnly;return(0,r.jsxs)("label",{className:"block",children:[(0,r.jsx)("span",{className:"block text-sm font-medium text-primary-800 font-inter",children:t}),(0,r.jsx)("input",{type:a,placeholder:n,onChange:function(e){var t=e.target.value;o(t)},value:s,className:"input",readOnly:i})]})}},65322:function(e,t,n){"use strict";var r=n(69779),a=n(85893),s=n(59417),o=n(67814),i=n(25675),l=n.n(i),c=n(41664),u=n.n(c),d=n(11163),p=n(67294),f=n(46412);t.Z=function(){var e=(0,p.useState)(!1),t=e[0],i=e[1],c=(0,p.useState)(!1),h=c[0],m=c[1],g=(0,d.useRouter)();console.log(g.pathname);var x="/affiliate"===g.pathname?[{name:"Home",route:"/",active:(0,f.JM)("/",g.pathname)},{name:"Teach With Us",route:"/teach-with-us",active:(0,f.JM)("/teach-with-us",g.pathname)},{name:"Affiliate Program",route:"/affiliate",active:(0,f.JM)("/affiliate",g.pathname)},{name:"Login",route:"/affiliate/login",active:(0,f.JM)("/affiliate/login",g.pathname)}]:[{name:"Home",route:"/",active:(0,f.JM)("/",g.pathname)},{name:"Teach With Us",route:"/teach-with-us",active:(0,f.JM)("/teach-with-us",g.pathname)},{name:"Affiliate Program",route:"/affiliate",active:(0,f.JM)("/affiliate",g.pathname)}];return"/creator"===g.pathname&&(x=(0,r.Z)(x).concat([{name:"Login",route:"/creator/login",active:(0,f.JM)("/creator/login",g.pathname)}])),(0,p.useEffect)((function(){var e=function(){window.scrollY>140?m(!0):m(!1)};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}),[]),(0,a.jsx)("header",{className:"z-10 w-screen fixed trasition ease-in-out duration-500 ".concat(h&&"shadow-xl"),children:(0,a.jsx)("nav",{className:"bg-[#FCFBF4] px-8 py-4 ".concat(h&&"py-5"," trasition ease-in-out duration-500"),children:(0,a.jsxs)("div",{className:"container mx-auto flex flex-wrap items-center justify-between",children:[(0,a.jsx)(u(),{href:"/",children:(0,a.jsxs)("div",{className:"flex gap-x-2 items-center",children:[(0,a.jsx)(l(),{src:n(84157),alt:"logo",className:"cursor-pointer w-[20px] h-[20px] lg:w-[48px] lg:h-[48px]"}),(0,a.jsx)("h1",{className:"text-primary-500 origin-left opensans text-[20px] lg:text-2xl font-bold ",children:"Clapingo"})]})}),(0,a.jsx)(o.G,{icon:t?s.g82:s.xiG,className:"fas ".concat(t?"fa-xmark":"fa-bars"," cursor-pointer toggle"),onClick:function(){return i(!t)}}),(0,a.jsx)("div",{className:"lg:block w-full lg:w-auto ".concat(t?"block":"hidden"),children:(0,a.jsx)("ul",{className:"flex-col lg:flex-row flex lg:space-x-8 mt-4 lg:mt-0 lg:text-sm lg:font-medium",children:x.map((function(e,t){return(0,a.jsx)(a.Fragment,{children:"Login"===e.name?(0,a.jsx)("li",{children:(0,a.jsx)(u(),{href:e.route,children:(0,a.jsx)("button",{className:"join-class border text-white bg-primary-500 hover:bg-primary-600 py-3 px-8 rounded-md mt-3 lg:mt-0 w-full",children:e.name})})}):(0,a.jsx)("li",{className:"".concat(e.active?"p-2 bg-primary-50/40 rounded-lg px-4 cursor-pointer":"mt-3 px-4 lg:px-0 lg:mt-0"),children:(0,a.jsx)(u(),{href:e.route,className:"bg-primary-700 md:bg-transparent text-white block pl-3 pr-4 py-2 lg:text-primary-700 lg:p-0 rounded p-4 ",children:e.name})},t)})}))})})]})})})}},64962:function(e,t,n){"use strict";n.r(t);var r=n(85893),a=n(25675),s=n.n(a),o=n(67294),i=n(48823),l=n(59965),c=n(97893),u=n.n(c),d=n(65322),p=n(96284),f=n(44349),h=n(53990),m=n(54943),g=n(86501);t.default=function(){var e=(0,o.useState)(1),t=e[0],a=e[1],c=(0,o.useState)(!1),x=c[0],b=c[1],v=(0,o.useState)(""),y=v[0],w=v[1],j=(0,o.useState)(""),N=j[0],T=j[1],C=(0,o.useState)(""),O=C[0],P=C[1],E=(0,o.useState)(""),A=E[0],I=E[1],k=(0,o.useState)(""),S=k[0],_=k[1],R=(0,o.useState)(""),D=R[0],Z=R[1],W=(0,o.useState)(""),F=W[0],H=W[1];return console.log(S,y,O,A,N),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.Z,{visible:x,onClose:function(){b(!1)},customClass:"text-center p-4 w-full lg:w-4/12",children:[(0,r.jsxs)("div",{className:"font-bold text-2xl flex justify-between",children:[(0,r.jsx)("div",{children:"Join Us \ud83d\ude4c"}),(0,r.jsx)("button",{className:"text-primary-500",onClick:function(){b(!1)},children:(0,r.jsx)(h.sQZ,{})})]}),(0,r.jsx)("br",{}),(0,r.jsx)("hr",{}),(0,r.jsx)("br",{}),(0,r.jsx)(f.Z,{label:"Name",placeHolder:"Name",type:"tel",value:S,onChange:_}),(0,r.jsx)(f.Z,{label:"Mobile Number",placeHolder:"Number",type:"text",value:y,onChange:w}),(0,r.jsx)(f.Z,{label:"Password",placeHolder:"Password",type:"password",value:N,onChange:T}),(0,r.jsx)(f.Z,{label:"Platform",placeHolder:"Platform",type:"text",value:O,onChange:P}),(0,r.jsx)(f.Z,{label:"Platform Link",placeHolder:"Platform Link",type:"text",value:A,onChange:I}),(0,r.jsxs)("div",{className:"mt-8",children:[D?(0,r.jsx)("div",{className:"text-center text-red-600 mt-2",children:D}):"",(0,r.jsx)("button",{onClick:function(e){if(H(!0),y&&N&&S&&O&&A){H(!0);var t={name:S,phoneNumber:y,password:N,platform:O,platfornLink:A};(0,m.O9)(t,(function(e){g.ZP.success("Request submitted. Log in to check your approval status"),console.log(e),b(!1),H(!1)}),(function(e){H(!1),g.ZP.error(e),console.log(e)}))}else H(!1),y?N?S?O?!A&&Z("Please enter a platform link"):Z("Please enter platform"):Z("Please enter a name"):Z("Please enter a password"):Z("Please enter a number")},role:"button",className:"focus:ring-2 focus:ring-offset-2 rounded-2xl focus:ring-primary-700 text-sm font-semibold leading-none text-white focus:outline-none bg-primary-400 border hover:bg-primary-600 py-4 w-full",children:F?"Processing...":"Submit"})]})]}),(0,r.jsx)(d.Z,{}),(0,r.jsxs)("div",{className:"bg-[#FCFBF4] affiliate-landing",children:[(0,r.jsx)("div",{className:"home-page ",children:(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row justify-between py-10 bg-[#F6F5EE] px-6 lg:px-32",children:[(0,r.jsxs)("div",{className:"w-full lg:w-6/12 ",children:[(0,r.jsx)("div",{className:"blue-circle bg-[#65FDE3CC]"}),(0,r.jsx)("h1",{className:"text-primary-800 header-class",children:"Become a Clapingo Affiliate"}),(0,r.jsx)("p",{className:"hero-para !text-base font-inter",children:"Be a part of the fastest-growing Spoken English platform in India. Join our community of influencers, teachers and professionals who help our learners become the best version of themselves. Earn every time someone subscribes to Clapingo through your referral."}),(0,r.jsx)("div",{className:"book-trial-button mt-6 text-neutral-50 py-4 px-8 ",onClick:function(){b(!0)},children:"Waitlist as an affiliate"})]}),(0,r.jsx)("div",{className:"w-full lg:w-5/12 hidden lg:block",children:(0,r.jsx)(s(),{src:n(76651),alt:"arrow"})})]})}),(0,r.jsx)("div",{className:"mx-8 lg:mx-28",children:(0,r.jsxs)("div",{className:"m-auto p-10 rounded-[18px] shadow-sh10 block md:flex md:justify-between",children:[(0,r.jsxs)("div",{className:"md:w-[45%] mb-4",children:[(0,r.jsx)("div",{className:"font-poppins font-semibold md:text-2xl mb-8",children:"What is affiliate program?"}),(0,r.jsxs)("div",{className:"text-[#18191F9E]",children:["An \u201caffiliate program\u201d is a relationship in which a merchant (Clapingo) pays \u201cthe affiliate\u201d (You) for referring potential clients from your site to theirs (Clapingo.com)."," "]})]}),(0,r.jsx)("div",{className:"hidden md:block border-r-2 border-neutral-300 "}),(0,r.jsxs)("div",{className:"md:w-[45%]",children:[(0,r.jsx)("div",{className:"font-poppins font-semibold md:text-2xl mb-8",children:"Who would make a good affiliate?"}),(0,r.jsxs)("div",{className:"text-[#18191F9E]",children:[(0,r.jsx)("span",{className:"font-poppins font-semibold text-sm",children:"Influencers \u2022 Teachers/Professionals \u2022 Enthusiasts"}),(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"You have a passion for growth and want to share your journey with your fans. Whether you are just starting out or if you already have an established brand, the affiliate program helps you and your followers take that first step towards your Spoken English goals."," "]})]})]})}),(0,r.jsxs)("div",{className:"mx-8 lg:mx-28 mt-10 md:mt-20",children:[(0,r.jsxs)("div",{className:"heading-affiliate px-5",children:["Your ",(0,r.jsx)("span",{className:"text-[#4DC591]",children:"traffic"})," is valuable",(0,r.jsx)("br",{}),"Why should you send it to us?"]}),(0,r.jsxs)("div",{className:"block lg:flex justify-between m-10",children:[(0,r.jsxs)("div",{className:"block shadow-sh10 rounded-[36px] p-10 mb-4 w-full lg:w-[32%] hover:bg-[#e4faf2] transition-colors",children:[(0,r.jsx)("div",{className:"text-center",children:(0,r.jsx)(s(),{src:n(34349),alt:"grp1"})}),(0,r.jsx)("div",{className:"font-poppins font-semibold md:text-2xl mb-8 text-center",children:"Qu
1ick start"}),(0,r.jsx)("div",{className:"font-normal text-base text-[#18191F9E]",children:"Fill out the form and receive a personalized link to share with your community. Promote your referral code on the platform of your choice and track your earnings through the affiliate dashboard."})]}),(0,r.jsxs)("div",{className:"block shadow-sh10 rounded-[36px] p-10 mb-4 lg:w-[32%] hover:bg-[#e4faf2] transition-colors",children:[(0,r.jsx)("div",{className:"text-center",children:(0,r.jsx)(s(),{src:n(55560),alt:"grp2"})}),(0,r.jsx)("div",{className:"font-poppins font-semibold md:text-2xl mb-8 text-center",children:"Fast payments"}),(0,r.jsx)("div",{className:"font-normal text-base text-[#18191F9E]",children:"Fastest payment cycles in the industry. Commission gets deposited directly to your bank account every Sunday(Weekly payment)."})]}),(0,r.jsxs)("div",{className:"block shadow-sh10 rounded-[36px] p-10 mb-4 lg:w-[32%] hover:bg-[#e4faf2] transition-colors",children:[(0,r.jsx)("div",{className:"text-center",children:(0,r.jsx)(s(),{src:n(23161),alt:"grp3"})}),(0,r.jsx)("div",{className:"font-poppins font-semibold md:text-2xl mb-8 text-center",children:"High commisions"}),(0,r.jsx)("div",{className:"font-normal text-base text-[#18191F9E]",children:"Get paid to introduce Clapingo to your network at discounted rates. Earn big and introduce a new source of income into your life."})]})]})]}),(0,r.jsxs)("div",{className:"w-full px-6 lg:px-24",children:[(0,r.jsxs)("div",{className:"heading-affiliate",children:["Have a question?",(0,r.jsx)("br",{}),"Find the answers in our ",(0,r.jsx)("span",{className:"text-[#4DC591]",children:"FAQ"})," :"]}),(0,r.jsx)("div",{children:(0,r.jsxs)(l.O.Group,{children:[(0,r.jsxs)(l.O.List,{children:[(0,r.jsx)(l.O,{onClick:function(){return a(1)},className:1===t?"tabsfocused":"tabs",children:"General"}),(0,r.jsx)(l.O,{onClick:function(){return a(2)},className:2===t?"tabsfocused":"tabs",children:"Advertising"}),(0,r.jsx)(l.O,{onClick:function(){return a(3)},className:3===t?"tabsfocused":"tabs",children:"Payment"})]}),(0,r.jsx)("hr",{className:"w-[60%]"}),(0,r.jsxs)(l.O.Panels,{children:[(0,r.jsxs)(l.O.Panel,{children:[(0,r.jsxs)("div",{className:"flex m-4 rounded-2xl bg-[#e5e5e5] font-poppins font-semibold text-lg p-4 px-4",children:[(0,r.jsx)("div",{className:"faq-bullets w-12 h-12 p-5 leading-[5px] text-center rounded-full text-white font-bold",children:" 1 "}),(0,r.jsx)("div",{className:"m-4",children:(0,r.jsx)(u(),{trigger:"How do I apply to be a Clapingo Affiliate?",children:(0,r.jsx)("p",{className:"m-4 font-poppins font-normal text-base bg-[#e5e5e5]",children:"You can register through the form available on this page. All you need to do is provide the details required and post-approval you will receive your unique referral code and dashboard access."})})})]}),(0,r.jsxs)("div",{className:"flex m-4 rounded-2xl bg-[#e5e5e5] font-poppins font-semibold text-lg p-4 px-4",children:[(0,r.jsx)("div",{className:"faq-bullets w-12 h-12 p-5 leading-[5px] text-center rounded-full text-white font-bold",children:" 2 "}),(0,r.jsx)("div",{className:"m-4",children:(0,r.jsx)(u(),{trigger:"How much can I earn through this affiliate program?",children:(0,r.jsx)("p",{className:"m-4 font-poppins font-normal text-base bg-[#e5e5e5]",children:"Clapingo will pay 5% per subscriber referred through your unique referral code (Excluding GST). All payments will be made via Online bank transfer every Sunday. You can track your earnings in real-time through your Affiliate Dashboard."})})})]}),(0,r.jsxs)("div",{className:"flex m-4 rounded-2xl bg-[#e5e5e5] font-poppins font-semibold text-lg p-4 px-4",children:[(0,r.jsx)("div",{className:"faq-bullets w-12 h-12 p-5 leading-[5px] text-center rounded-full text-white font-bold",children:" 3 "}),(0,r.jsx)("div",{className:"m-4",children:(0,r.jsx)(u(),{trigger:"What documents/details do I need to provide for my application?",children:(0,r.jsx)("p",{className:"m-4 font-poppins font-normal text-base bg-[#e5e5e5]",children:"In order to register as a Clapingo Affiliate, you will need to fill the form with the necessary details. Please make sure you fill all the required fields with the correct information for your account approval."})})})]}),(0,r.jsxs)("div",{className:"flex m-4 rounded-2xl bg-[#e5e5e5] font-poppins font-semibold text-lg p-4 px-4",children:[(0,r.jsx)("div",{className:"faq-bullets w-12 h-12 p-5 leading-[5px] text-center rounded-full text-white font-bold",children:" 4 "}),(0,r.jsx)("div",{className:"m-4",children:(0,r.jsx)(u(),{trigger:"How long will it take for my account to get verified?",children:(0,r.jsx)("p",{className:"m-4 font-poppins font-normal text-base bg-[#e5e5e5]",children:"We are just as excited as you are to start this journey. Our team will respond to your application within 72 hours of your application. For more queries, you can contact us at [email protected]"})})})]}),(0,r.jsxs)("div",{className:"flex m-4 rounded-2xl bg-[#e5e5e5] font-poppins font-semibold text-lg p-4 px-4",children:[(0,r.jsx)("div",{className:"faq-bullets w-12 h-12 p-5 leading-[5px] text-center rounded-full text-white font-bold",children:" 5 "}),(0,r.jsx)("div",{className:"m-4",children:(0,r.jsx)(u(),{trigger:"What does my affiliate account dashboard show?",children:(0,r.jsx)("p",{className:"m-4 font-poppins font-normal text-base bg-[#e5e5e5]",children:"Your account dashboard will display all the recent transactions recorded via your unique referral link along with your weekly earnings"})})})]}),(0,r.jsxs)("div",{className:"flex m-4 rounded-2xl bg-[#e5e5e5] font-poppins font-semibold text-lg p-4 px-4",children:[(0,r.jsx)("div",{className:"faq-bullets w-12 h-12 p-5 leading-[5px] text-center rounded-full text-white font-bold",children:" 6 "}),(0,r.jsx)("div",{className:"m-4",children:(0,r.jsx)(u(),{trigger:"How can I deactivate my affiliate account?",children:(0,r.jsx)("p",{className:"m-4 font-poppins font-normal text-base bg-[#e5e5e5]",children:"You can contact us at [email protected] and we will initiate the process of deactivating your account. The process can only be completed once our team confirms that all the paperwork and legalities have been complied with."})})})]}),(0,r.jsxs)("div",{className:"flex m-4 rounded-2xl bg-[#e5e5e5] font-poppins font-semibold text-lg p-4 px-4",children:[(0,r.jsx)("div",{className:"faq-bullets w-12 h-12 p-5 leading-[5px] text-center rounded-full text-white font-bold",children:" 7 "}),(0,r.jsx)("div",{className:"m-4",children:(0,r.jsx)(u(),{trigger:"How will the Clapingo Affiliate Program help me?",children:(0,r.jsx)("p",{className:"m-4 font-poppins font-normal text-base bg-[#e5e5e5]",children:"Clapingo\u2019s affiliates program allows creators to leverage their community and provide their fans/followers to get a great deal by using their referral code."})})})]})]}),(0,r.jsx)(l.O.Panel,{children:(0,r.jsxs)("div",{className:"flex m-4 rounded-2xl bg-[#e5e5e5] font-poppins font-semibold text-lg p-4 px-4",children:[(0,r.jsx)("div",{className:"faq-bullets w-12 h-12 p-5 leading-[5px] text-center rounded-full text-white font-bold",children:" 1 "}),(0,r.jsx)("div",{className:"m-4",children:(0,r.jsx)(u(),{trigger:"What platforms can I share my sessions on?",children:(0,r.jsx)("p",{className:"m-4 font-poppins font-normal text-base bg-[#e5e5e5]",children:"Once you receive your \u201cApproved session download link\u201d from the Clapingo approval team, you are free to share it on any social media platform of your choice."})})})]})}),(0,r.jsx)(l.O.Panel,{children:(0,r.jsxs)("div",{className:"flex m-4 rounded-2xl bg-[#e5e5e5] font-poppins font-semibold text-lg p-4 px-4",children:[(0,r.jsx)("div",{className:"faq-bullets w-12 h-12 p-5 leading-[5px] text-center rounded-full text-white font-bold",children:" 1 "}),(0,r.jsx)("div",{className:"m-4",children:(0,r.jsx)(u(),{trigger:"How do I get paid?",children:(0,r.jsx)("p",{className:"m-4 font-poppins font-normal text-base bg-[#e5e5e5]",children:"All payments will be made on Sunday. These payments will be made via an online bank transfer."})})})]})})]})]})})]})]}),(0,r.jsx)(i.Z,{})]})}},54943:function(e,t,n){"use strict";n.d(t,{BC:function(){return g},ME:function(){return c},O9:function(){return l},Sp:function(){return m},TJ:function(){return u},U1:function(){return h},U_:function(){return d},cO:function(){return f},nB:function(){return p},pP:function(){return i}});var r=n(34727),a=n(97582),s=n(21229),o=n(22473),i=function(){var e=(0,r.Z)((function(e,t,n,r){var i,l,c,u,d;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),i=s.Z.Login,l=i.url,c=i.method,[4,(0,o.GP)(l,c,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,l,c,u,d;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),i=s.Z.SignupInfluencer,l=i.url,c=i.method,[4,(0,o.GP)(l,c,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,l,c,u,d;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),i=s.Z.Reffereduser,l=i.url,c=i.method,[4,(0,o.ZK)(l,c,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)}}(),u=(function(){var e=(0,r.Z)((function(e,t,n,r){var i,l,c,u,d;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),i=s.Z.Influencerdata,l=i.url,c=i.method,[4,(0,o.GP)(l,c,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]}}))}))}(),function(){var e=(0,r.Z)((function(e,t,n,r){var i,l,c,u,d;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),i=s.Z.getEarningsData(e),l=i.url,c=i.method,[4,(0,o.ZK)(l,c)];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,l,c,u;return(0,a.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),r=s.Z.getInfluencerEarning,i=r.url,l=r.method,[4,(0,o.ZK)(i,l)];case 1:return 200===(c=n.sent()).status?e(c.data):t(c.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]}}
1))}));return function(t,n,r){return e.apply(this,arguments)}}(),p=function(){var e=(0,r.Z)((function(e,t,n,r){var i,l,c,u,d;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),i=s.Z.getPayoutDetails(e),l=i.url,c=i.method,[4,(0,o.ZK)(l,c)];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)}}(),f=function(){var e=(0,r.Z)((function(e,t){var n,r,i,l,c;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=s.Z.InfluencerDetails,r=n.url,i=n.method,[4,(0,o.ZK)(r,i)];case 1:return 200===(l=a.sent()).status?e(l.data):t(l.data.message),[3,3];case 2:return"AbortError"===(c=a.sent()).name?(console.error("API Timeout !"),[2]):(console.error(c),console.error(c.response),t("Error:".concat(c.name)),[3,3]);case 3:return[2]}}
1))}));return function(t,n){return e.apply(this,arguments)}}(),h=function(){var e=(0,r.Z)((function(e,t,n,r){var i,l,c,u,d;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),i=s.Z.AddAffiliateBank,l=i.url,c=i.method,[4,(0,o.ZK)(l,c,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)}}(),m=function(){var e=(0,r.Z)((function(e,t,n,r){var i,l,c,u,d;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),i=s.Z.VerifyAffiliateBank,l=i.url,c=i.method,[4,(0,o.ZK)(l,c,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)}}(),g=function(){var e=(0,r.Z)((function(e,t,n){var r,i,l,c,u;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),r=s.Z.GetAffiliateDetails(e),i=r.url,l=r.method,[4,(0,o.ZK)(i,l)];case 1:return 200===(c=a.sent()).status?t(c.data):n(c.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]}}))}));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,s=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(s,"&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},97893:function(e,t,n){var r;e.exports=(r=n(67294),function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(2)()},function(e,t){e.exports=r},function(e,t,n){"use strict";var r=n(3);function a(){}function s(){}s.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,s,o){if(o!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:a};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t);var r=n(1),a=n.n(r),s=n(0),o=n.n(s),i=function(e){return 0!==e};function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
vendor: 7,269 bytes, line 1
1function d(e,t){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(o,e);var t,n,r,s=p(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),g(h(t=s.call(this,e)),"continueOpenCollapsible",(function(){var e=h(t).innerRef;t.setState({height:e.scrollHeight,transition:"height ".concat(t.props.transitionTime,"ms ").concat(t.props.easing),isClosed:!1,hasBeenOpened:!0,inTransition:i(e.scrollHeight),shouldOpenOnNextCycle:!1})})),g(h(t),"handleTriggerClick",(function(e){t.props.triggerDisabled||t.state.inTransition||(e.preventDefault(),t.props.handleTriggerClick?t.props.handleTriggerClick(t.props.accordionPosition):!0===t.state.isClosed?(t.openCollapsible(),t.props.onOpening(),t.props.onTriggerOpening()):(t.closeCollapsible(),t.props.onClosing(),t.props.onTriggerClosing()))})),g(h(t),"handleTransitionEnd",(function(e){e.target===t.innerRef&&(t.state.isClosed?(t.setState({inTransition:!1}),t.props.onClose()):(t.setState({height:"auto",overflow:t.props.overflowWhenOpen,inTransition:!1}),t.props.onOpen()))})),g(h(t),"setInnerRef",(function(e){return t.innerRef=e})),t.timeout=void 0,t.contentId=e.contentElementId||"collapsible-content-".concat(Date.now()),t.triggerId=e.triggerElementProps.id||"collapsible-trigger-".concat(Date.now()),e.open?t.state={isClosed:!1,shouldSwitchAutoOnNextCycle:!1,height:"auto",transition:"none",hasBeenOpened:!0,overflow:e.overflowWhenOpen,inTransition:!1}:t.state={isClosed:!0,shouldSwitchAutoOnNextCycle:!1,height:0,transition:"height ".concat(e.transitionTime,"ms ").concat(e.easing),hasBeenOpened:!1,overflow:"hidden",inTransition:!1},t}return t=o,(n=[{key:"componentDidUpdate",value:function(e,t){var n=this;this.state.shouldOpenOnNextCycle&&this.continueOpenCollapsible(),"auto"!==t.height&&0!==t.height||!0!==this.state.shouldSwitchAutoOnNextCycle||(window.clearTimeout(this.timeout),this.timeout=window.setTimeout((function(){n.setState({height:0,overflow:"hidden",isClosed:!0,shouldSwitchAutoOnNextCycle:!1})}),50)),e.open!==this.props.open&&(!0===this.props.open?(this.openCollapsible(),this.props.onOpening()):(this.closeCollapsible(),this.props.onClosing()))}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.timeout)}},{key:"closeCollapsible",value:function(){var e=this.innerRef;this.setState({shouldSwitchAutoOnNextCycle:!0,height:e.scrollHeight,transition:"height ".concat(this.props.transitionCloseTime?this.props.transitionCloseTime:this.props.transitionTime,"ms ").concat(this.props.easing),inTransition:i(e.scrollHeight)})}},{key:"openCollapsible",value:function(){this.setState({inTransition:i(this.innerRef.scrollHeight),shouldOpenOnNextCycle:!0})}},{key:"renderNonClickableTriggerElement",value:function(){var e=this.props,t=e.triggerSibling,n=e.classParentString;if(!t)return null;switch(c(t)){case"string":return a.a.createElement("span",{className:"".concat(n,"__trigger-sibling")},t);case"function":return t();case"object":return t;default:return null}}},{key:"render",value:function(){var e=this,t={height:this.state.height,WebkitTransition:this.state.transition,msTransition:this.state.transition,transition:this.state.transition,overflow:this.state.overflow},n=this.state.isClosed?"is-closed":"is-open",r=this.props.triggerDisabled?"is-disabled":"",s=!1===this.state.isClosed&&void 0!==this.props.triggerWhenOpen?this.props.triggerWhenOpen:this.props.trigger,o=this.props.contentContainerTagName,i=this.props.triggerTagName,c=this.props.lazyRender&&!this.state.hasBeenOpened&&this.state.isClosed&&!this.state.inTransition?null:this.props.children,u=this.props,d=u.classParentString,p=u.contentOuterClassName,f=u.contentInnerClassName,h="".concat(d,"__trigger ").concat(n," ").concat(r," ").concat(this.state.isClosed?this.props.triggerClassName:this.props.triggerOpenedClassName),m="".concat(d," ").concat(this.state.isClosed?this.props.className:this.props.openedClassName),g="".concat(d,"__contentOuter ").concat(p),x="".concat(d,"__contentInner ").concat(f);return a.a.createElement(o,l({className:m.trim()},this.props.containerElementProps),a.a.createElement(i,l({id:this.triggerId,className:h.trim(),onClick:this.handleTriggerClick,style:this.props.triggerStyle&&this.props.triggerStyle,onKeyPress:function(t){var n=t.key;(" "===n&&"button"!==e.props.triggerTagName.toLowerCase()||"Enter"===n)&&e.handleTriggerClick(t)},tabIndex:this.props.tabIndex&&this.props.tabIndex,"aria-expanded":!this.state.isClosed,"aria-disabled":this.props.triggerDisabled,"aria-controls":this.contentId,role:"button"},this.props.triggerElementProps),s),this.renderNonClickableTriggerElement(),a.a.createElement("div",{id:this.contentId,className:g.trim(),style:t,onTransitionEnd:this.handleTransitionEnd,ref:this.setInnerRef,hidden:this.props.contentHiddenWhenClosed&&this.state.isClosed&&!this.state.inTransition,role:"region","aria-labelledby":this.triggerId},a.a.createElement("div",{className:x.trim()},c)))}}])&&u(t.prototype,n),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.Component);x.propTypes={transitionTime:o.a.number,transitionCloseTime:o.a.number,triggerTagName:o.a.string,easing:o.a.string,open:o.a.bool,containerElementProps:o.a.object,triggerElementProps:o.a.object,contentElementId:o.a.string,classParentString:o.a.string,className:o.a.string,openedClassName:o.a.string,triggerStyle:o.a.object,triggerClassName:o.a.string,triggerOpenedClassName:o.a.string,contentOuterClassName:o.a.string,contentInnerClassName:o.a.string,accordionPosition:o.a.oneOfType([o.a.string,o.a.number]),handleTriggerClick:o.a.func,onOpen:o.a.func,onClose:o.a.func,onOpening:o.a.func,onClosing:o.a.func,onTriggerOpening:o.a.func,onTriggerClosing:o.a.func,trigger:o.a.oneOfType([o.a.string,o.a.element]),triggerWhenOpen:o.a.oneOfType([o.a.string,o.a.element]),triggerDisabled:o.a.bool,lazyRender:o.a.bool,overflowWhenOpen:o.a.oneOf(["hidden","visible","auto","scroll","inherit","
1initial","unset"]),contentHiddenWhenClosed:o.a.bool,triggerSibling:o.a.oneOfType([o.a.string,o.a.element,o.a.func]),tabIndex:o.a.number,contentContainerTagName:o.a.string,children:o.a.oneOfType([o.a.string,o.a.element])},x.defaultProps={transitionTime:400,transitionCloseTime:null,triggerTagName:"span",easing:"linear",open:!1,classParentString:"Collapsible",triggerDisabled:!1,lazyRender:!1,overflowWhenOpen:"hidden",contentHiddenWhenClosed:!1,openedClassName:"",triggerStyle:null,triggerClassName:"",triggerOpenedClassName:"",contentOuterClassName:"",contentInnerClassName:"",className:"",triggerSibling:null,onOpen:function(){},onClose:function(){},onOpening:function(){},onClosing:function(){},onTriggerOpening:function(){},onTriggerClosing:function(){},tabIndex:null,contentContainerTagName:"div",triggerElementProps:{}},t.default=x}]))},59965:function(e,t,n){"use strict";n.d(t,{O:function(){return M}});var r=n(67294),a=n(61363),s=n(73781),o=n(19946),i=n(16723),l=n(3855),c=n(14157),u=n(23784),d=n(14879),p=n(46045);function f({onFocus:e}){let[t,n]=(0,r.useState)(!0),a=(0,d.t)();return t?r.createElement(p._,{as:"button",type:"button",features:p.A.Focusable,onFocus:t=>{t.preventDefault();let r,s=50;r=requestAnimationFrame((function t(){if(s--<=0)r&&cancelAnimationFrame(r);else if(e()){if(cancelAnimationFrame(r),!a.current)return;n(!1)}else r=requestAnimationFrame(t)}))}}):null}var h=n(84575),m=n(32984),g=n(81021),x=n(15466),b=n(12351);const v=r.createContext(null);function y({children:e}){let t=r.useRef({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let a=null!=(n=r.get(t))?n:0;return r.set(t,a+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return r.createElement(v.Provider,{value:t},e)}function w(e){let t=r.useContext(v);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let n=function(){var e,t,n;let a=null!=(n=null==(t=null==(e=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!a)return Symbol();let s=[],o=a;for(;o;)s.push(o.index),o=o.return;return"$."+s.join(".")}(),[a,s]=t.current.get(e,n);return r.useEffect((()=>s),[]),a}var j,N,T=((N=T||{})[N.Forwards=0]="Forwards",N[N.Backwards=1]="Backwards",N),C=((j=C||{})[j.Less=-1]="Less",j[j.Equal=0]="Equal",j[j.Greater=1]="Greater",j),O=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(O||{});let P={0(e,t){var n;let r=(0,h.z2)(e.tabs,(e=>e.current)),a=(0,h.z2)(e.panels,(e=>e.current)),s=r.filter((e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))})),o={...e,tabs:r,panels:a};if(t.index<0||t.index>r.length-1){let n=(0,m.E)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,m.E)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===s.length)return o;let a=(0,m.E)(n,{0:()=>r.indexOf(s[0]),1:()=>r.indexOf(s[s.length-1])});return{...o,selectedIndex:-1===a?e.selectedIndex:a}}let i=r.slice(0,t.index),l=[...r.slice(t.index),...i].find((e=>s.includes(e)));if(!l)return o;let c=null!=(n=r.indexOf(l))?n:e.selectedIndex;return-1===c&&(c=e.selectedIndex),{...o,selectedIndex:c}},1(e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],r=(0,h.z2)([...e.tabs,t.tab],(e=>e.current)),a=e.selectedIndex;return e.info.current.isControlled||(a=r.indexOf(n),-1===a&&(a=e.selectedIndex)),{...e,tabs:r,selectedIndex:a}},2:(e,t)=>({...e,tabs:e.tabs.filter((e=>e!==t.tab))}),3:(e,t)=>
1e.panels.includes(t.panel)?e:{...e,panels:(0,h.z2)([...e.panels,t.panel],(e=>e.current))},4:(e,t)=>({...e,panels:e.panels.filter((e=>e!==t.panel))})},E=(0,r.createContext)(null);function A(e){let t=(0,r.useContext)(E);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,A),t}return t}E.displayName="TabsDataContext";let I=(0,r.createContext)(null);function k(e){let t=(0,r.useContext)(I);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,k),t}return t}function S(e,t){return(0,m.E)(t.type,P,e,t)}I.displayName="TabsActionsContext";let _=r.Fragment;let R=b.AN.RenderStrategy|b.AN.Static;let D=(0,b.yV)((function(e,t){var n,l;let d=(0,o.M)(),{id:p=`headlessui-tabs-tab-${d}`,...f}=e,{orientation:v,activation:y,selectedIndex:j,tabs:N,panels:T}=A("Tab"),C=k("Tab"),O=A("Tab"),P=(0,r.useRef)(null),E=(0,u.T)(P,t);(0,i.e)((()=>C.registerTab(P)),[C,P]);let I=w("tabs"),S=N.indexOf(P);-1===S&&(S=I);let _=S===j,R=(0,s.z)((e=>{var t;let n=e();if(n===h.fE.Success&&"auto"===y){let e=null==(t=(0,x.r)(P))?void 0:t.activeElement,n=O.tabs.findIndex((t=>t.current===e));-1!==n&&C.change(n)}return n})),D=(0,s.z)((e=>{let t=N.map((e=>e.current)).filter(Boolean);if(e.key===a.R.Space||e.key===a.R.Enter)return e.preventDefault(),e.stopPropagation(),void C.change(S);switch(e.key){case a.R.Home:case a.R.PageUp:return e.preventDefault(),e.stopPropagation(),R((()=>(0,h.jA)(t,h.TO.First)));case a.R.End:case a.R.PageDown:return e.preventDefault(),e.stopPropagation(),R((()=>(0,h.jA)(t,h.TO.Last)))}return R((()=>(0,m.E)(v,{vertical:()=>e.key===a.R.ArrowUp?(0,h.jA)(t,h.TO.Previous|h.TO.WrapAround):e.key===a.R.ArrowDown?(0,h.jA)(t,h.TO.Next|h.TO.WrapAround):h.fE.Error,horizontal:()=>e.key===a.R.ArrowLeft?(0,h.jA)(t,h.TO.Previous|h.TO.WrapAround):e.key===a.R.ArrowRight?(0,h.jA)(t,h.TO.Next|h.TO.WrapAround):h.fE.Error})))===h.fE.Success?e.preventDefault():void 0})),Z=(0,r.useRef)(!1),W=(0,s.z)((()=>{var e;Z.current||(Z.current=!0,null==(e=P.current)||e.focus({preventScroll:!0}),C.change(S),(0,g.Y)((()=>{Z.current=!1})))})),F=(0,s.z)((e=>{e.preventDefault()})),H=(0,r.useMemo)((()=>{var t;return{selected:_,disabled:null!=(t=e.disabled)&&t}}),[_,e.disabled]),M={ref:E,onKeyDown:D,onMouseDown:F,onClick:W,id:p,role:"tab",type:(0,c.f)(e,P),"aria-controls":null==(l=null==(n=T[S])?void 0:n.current)?void 0:l.id,"aria-selected":_,tabIndex:_?0:-1};return(0,b.sY)({ourProps:M,theirProps:f,slot:H,defaultTag:"button",name:"Tabs.Tab"})})),Z=(0,b.yV)((function(e,t){let{defaultIndex:n=0,vertical:a=!1,manual:o=!1,onChange:c,selectedIndex:d=null,...p}=e;const m=a?"vertical":"horizontal",g=o?"manual":"auto";let x=null!==d,v=(0,l.E)({isControlled:x}),w=(0,u.T)(t),[j,N]=(0,r.useReducer)(S,{info:v,selectedIndex:null!=d?d:n,tabs:[],panels:[]}),T=(0,r.useMemo)((()=>({selectedIndex:j.selectedIndex})),[j.selectedIndex]),C=(0,l.E)(c||(()=>{})),O=(0,l.E)(j.tabs),P=(0,r.useMemo)((()=>({orientation:m,activation:g,...j})),[m,g,j]),A=(0,s.z)((e=>(N({type:1,tab:e}),()=>N({type:2,tab:e})))),k=(0,s.z)((e=>(N({type:3,panel:e}),()=>N({type:4,panel:e})))),R=(0,s.z)((e=>{D.current!==e&&C.current(e),x||N({type:0,index:e})})),D=(0,l.E)(x?e.selectedIndex:j.selectedIndex),Z=(0,r.useMemo)((()=>({registerTab:A,registerPanel:k,change:R})),[]);(0,i.e)((()=>{N({type:0,index:null!=d?d:n})}),[d]),(0,i.e)((()=>{if(void 0===D.current||j.tabs.length<=0)return;let e=(0,h.z2)(j.tabs,(e=>e.current));e.some(((e,t)=>j.tabs[t]!==e))&&R(e.indexOf(j.tabs[D.current]))}));let W={ref:w};return r.createElement(y,null,r.createElement(I.Provider,{value:Z},r.createElement(E.Provider,{value:P},P.tabs.length<=0&&r.createElement(f,{onFocus:()=>{var e,t;for(let n of O.current)if(0===(null==(e=n.current)?void 0:e.tabIndex))return null==(t=n.current)||t.focus(),!0;return!1}}),(0,b.sY)({ourProps:W,theirProps:p,slot:T,defaultTag:_,name:"Tabs"}))))})),W=(0,b.yV)((function(e,t){let{orientation:n,selectedIndex:r}=A("Tab.List"),a=(0,u.T)(t);return(0,b.sY)({ourProps:{ref:a,role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})})),F=(0,b.yV)((function(e,t){let{selectedIndex:n}=A("Tab.Panels"),a=(0,u.T)(t),s=(0,r.useMemo)((()=>({selectedIndex:n})),[n]);return(0,b.sY)({ourProps:{ref:a},theirProps:e,slot:s,defaultTag:"div",name:"Tabs.Panels"})})),H=(0,b.yV)((function(e,t){var n,a,s,l;let c=(0,o.M)(),{id:d=`headlessui-tabs-panel-${c}`,tabIndex:f=0,...h}=e,{selectedIndex:m,tabs:g,panels:x}=A("Tab.Panel"),v=k("Tab.Panel"),y=(0,r.useRef)(null),j=(0,u.T)(y,t);(0,i.e)((()=>
1v.registerPanel(y)),[v,y,d]);let N=w("panels"),T=x.indexOf(y);-1===T&&(T=N);let C=T===m,O=(0,r.useMemo)((()=>({selected:C})),[C]),P={ref:j,id:d,role:"tabpanel","aria-labelledby":null==(a=null==(n=g[T])?void 0:n.current)?void 0:a.id,tabIndex:C?f:-1};return C||null!=(s=h.unmount)&&!s||null!=(l=h.static)&&l?(0,b.sY)({ourProps:P,theirProps:h,slot:O,defaultTag:"div",features:R,visible:C,name:"Tabs.Panel"}):r.createElement(p._,{as:"span","aria-hidden":"true",...P})})),M=Object.assign(D,{Group:Z,List:W,Panels:F,Panel:H})}},function(e){e.O(0,[3874,30277,95445,61228,97948,94824,32013,29866,12876,83609,44949,74550,9584,55250,41377,16629,95551,76701,52515,13700,93183,43626,70529,53833,56132,22359,49774,92888,40179],(function(){return t=31330,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.