PageSourceSearch

https://tealfeed.com/_next/static/chunks/pages/connect/manage-ba488870b543f259.js

js tealfeed.com collected 2026-09-24 08:40:37 UTC 13,284 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1832,549],{66607:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var s=n(e),o=n(t),a="("===(i=i||"()")[0],u=")"===i[1];return(a?this.isAfter(s,r):!this.isBefore(s,r))&&(u?this.isBefore(o,r):!this.isAfter(o,r))||(a?this.isBefore(s,r):!this.isAfter(s,r))&&(u?this.isAfter(o,r):!this.isBefore(o,r))}}}()},63798:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var r=n(67294),i=n(11163),s=n(9008),o=n.n(s),a=n(20838),u=n(86010),c=n(25675),l=n.n(c),d=n(85518),f=n(14876),h=n(91136),m=n(19470),p=n(34572),g=n(10896),y=n(61247),b=n(54358),v=n(3129),x=n(43989),j=n(85893);var w=function(){var e,t,n=(0,i.useRouter)(),s=null===n||void 0===n||null===(e=n.query)||void 0===e||null===(t=e.defaultTab)||void 0===t?void 0:t.toString(),o=(0,r.useState)(s&&m.d.includes(s)?s:"booked"),c=o[0],w=o[1],k=(0,p.E)().loggedInUser,N=(null!==k&&void 0!==k?k:{}).id,C=(0,f.uw)({status:c,customConfig:{enabled:"booked"===c||"completed"===c,refetchOnWindowFocus:!1}}),O=C.totalData,P=C.fetchNextPage,E=C.hasNextPage,R=C.isLoading,V=(0,f.t3)({customConfig:{enabled:"rescheduleRequests"===c}}),A=V.totalData,I=V.fetchNextPage,M=V.hasNextPage,U=V.isLoading,B=(0,v.$s)({customConfig:{enabled:"packages"===c}}),S=B.data,T=B.isLoading,Z=(0,r.useMemo)((function(){return A.filter((function(e){var t,n;return(null===(t=e.mentee)||void 0===t?void 0:t._id)===N&&"mentor"===e.requestor||(null===(n=e.mentor)||void 0===n?void 0:n._id)===N&&"mentee"===e.requestor}))}),[A,N]),_=function(e){var t=e.tabType;return(0,j.jsx)("div",{children:(0,j.jsx)(h.Z,{fetchNextPage:P,hasNextPage:!!E,pagedData:O,isQueryLoading:R,tabType:t})})};return(0,j.jsx)("div",{className:"w-full rounded-lg border border-borderColor-skin-primary bg-backgroundColor-skin-secondary ",children:(0,j.jsx)(a.default,{onChange:function(e){n.replace({query:{defaultTab:e}}),function(e){var t,r,i;w(e);var s=window.navigator.userAgent,o=(0,d.R2)(s);(0,y.P)("page-tracker",{url:n.asPath,tab:e,userAgent:window.navigator.userAgent,Browser:d.KC,OS:null!==(t=o.os)&&void 0!==t?t:o.osName,isMobile:null!==(r=o.isMobile)&&void 0!==r&&r,userId:null!==(i=null===k||void 0===k?void 0:k.id)&&void 0!==i?i:null})}(e)},style:{color:"var(--text-primary)",borderBottomColor:"var(--borderColor-skin-primary)",paddingBottom:"0px"},tabBarStyle:{borderBottom:"1px solid var(--border-primary)",paddingLeft:"1rem"},defaultActiveKey:c,activeKey:c,className:"!md:px-4 !pb-4 !pt-2",items:[{label:"Scheduled",key:"booked",children:(0,j.jsx)(_,{tabType:"scheduled"})},{label:"Completed",key:"completed",children:(0,j.jsx)(_,{tabType:"completed"})},{label:"Reschedule Requests",key:"rescheduleRequests",children:(0,j.jsx)("div",{children:(0,j.jsx)(h.Z,{fetchNextPage:I,hasNextPage:!!M,isQueryLoading:U,isRescheduleRequests:!0,pagedData:[],rescheduleRequestsPagedData:Z,tabType:"rescheduleRequests"})})},{label:(0,j.jsx)("span",{className:(0,u.default)(c?"text-text-primary font-medium":"text-textColor-skin-primary","px-4"),children:"Packages"}),key:"packages",children:(0,j.jsx)("div",{children:(0,j.jsx)(g.Z,{condition:!T,fallback:(0,j.jsx)("div",{className:"mx-4",children:(0,j.jsx)(x.Z,{skeletonCount:6})}),children:(0,j.jsx)(g.Z,{condition:!!S&&S.length>0,fallback:(0,j.jsxs)("div",{className:"my-8 flex flex-col items-center justify-center gap-4",children:[(0,j.jsx)(l(),{src:"/Assets/empty.png",width:240,height:80}),(0,j.jsx)("p",{className:"text-sm text-textColor-skin-light",children:"You need to buy some packages first"})]}),children:(0,j.jsx)("div",{className:"px-4",children:null===S||void 0===S?void 0:S.map((function(e,t){return(0,j.jsxs)("div",{children:[(0,j.jsx)(b.s,{packageItem:e}),(0,j.jsx)(g.Z,{condition:t!==(null===S||void 0===S?void 0:S.length)-1,children:(0,j.jsx)("hr",{className:"border-borderColor-skin-primary"})})]})}))})})})})}]})})},k=n(94022);var N=function(){var e=(0,i.useRouter)().query.rescheduleRequestId,t=(0,r.useState)(!!e),n=t[0],s=t[1],o=(0,f.Po)({requestId:e,customConfig:{enabled:!!e}}).data,a=void 0===o?{}:o;return(0,j.jsxs)("div",{className:"mx-auto mt-6 md:mt-12 lg:w-container",children:[(0,j.jsx)(g.Z,{condition:!!a,children:(0,j.jsx)(k.Z,{isModalOpen:n,setIsModalOpen:s,rescheduleRequestInfo:a})}),(0,j.jsxs)("div",{className:"w-full pb-10 md:pl-8",children:[(0,j.jsx)("h1",{className:"mb-7 pl-4 text-xl font-semibold text-textColor-skin-primary md:pl-0 md:text-4xl",children:"My Bookings"}),(0,j.jsx)("div",{className:"w-fit",children:(0,j.jsx)(w,{})})]})]})},C=n(86646),O=n(92836),P=n(79697),E=function(){var e=(0,i.useRouter)(),t=(0,p.E)(),n=t.authVerified,r=t.isUpdatingAuthVerified;return(0,f.XM)().isConnectProfileCompleted?(e.push("/connect/dashboard/call"),null):r||n?(0,j.jsxs)(P.Z,{headerTitle:"Manage Bookings",children:[(0,j.jsxs)(o(),{children:[(0,j.jsx)("title",{children:"Connect | Tealfeed"}),(0,j.jsx)("link",{rel:"canonical",href:"".concat("https://tealfeed.com","/connect/manage")})]}),(0,j.jsx)(N,{})]}):(0,j.jsx)(C.Z,{isModalOpen:!0,setIsModalOpen:function(){},authType:O.Gr.default,authFeature:O.E6.default,authAction:O.g4.default,redirectToHome:!0})}},48790:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(67294),i=n(93071),s=n(85893),o=function(e){var t=e.children,n=(0,r.useState)(!0),o=n[0],a=n[1];(0,r.useCallback)((function(){a((function(e){return!e}))}),[]);return(0,s.jsx)(i.Z.Provider,{value:{drawerExpanded:o,setDrawerExpanded:a},children:t})}},75914:function(e,t,n){"use strict";n(67294);var r=n(85893);t.Z=function(){return(0,r.jsx)(r.Fragment,{})}},79697:function(e,t,n){"use strict";var r=n(3513),i=n(9008),s=n.n(i),o=n(67294),a=n(48395),u=n(48790),c=n(75914),l=n(66986),d=n(89275),f=n(85893);t.Z=function(e){var t=e.children,n=e.headerTitle,i=void 0===n?"Dashboard":n,h=(0,a.Z)().isMobile,m=(0,o.useMemo)((function(){return(0,f.jsxs)("div",{className:"relative flex h-full flex-col overflow-y-auto ",children:[(0,f.jsxs)("main",{className:"flex-1 bg-backgroundColor-skin-secondary",children:[(0,f.jsx)(r.Z,{offsetTop:0,className:"sticky top-0 z-[500]",children:(0,f.jsx)(d.Z,{text:i})}),t]}),(0,f.jsx)("div",{className:"sticky bottom-0 z-[500]",children:(0,f.jsx)(c.Z,{})})]},"false")}),[]),p=(0,o.useMemo)((function(){return(0,f.jsxs)(u.default,{children:[(0,f.jsx)(s(),{children:(0,f.jsx)("title",{children:"Tealfeed - My Subscriptions"})}),(0,f.jsxs)("div",{children:[(0,f.jsx)("header",{className:"sticky top-0 z-10 border-b border-borderColor-skin-primary text-center",children:(0,f.jsx)(l.default,{screen:"chats"})}),(0,f.jsx)("main",{className:"w-full",children:(0,f.jsx)("div",{className:"h-full w-full pb-10",children:t})})]})]})}),[]);return h?m:p}},90094:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(67294),i=function(){var e=(0,r.useState)(!0),t=e[0],n=e[1];return(0,r.useEffect)((function(){n(!1)}),[]),t}},16093:function(e,t,n){"use strict";n.d(t,{Hm:function(){return d},d8:function(){return f},ib:function(){return l},uE:function(){return h}});var r=n(59499),i=n(48228),s=n(8823),o=n(32438);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?a(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c={getUserByUserNameV2QueryKey:function(e){return["user-by-username",e.username]},getUserFeatureV2QueryKey:["user-feature"],getUserMetaByUserNameV2QueryKey:function(e){return["user-meta-by-username",e.username]},getCountriesListV2QueryKey:["countries-list"],getPasswordStatusV2QueryKey:["password-status"],getLoggedInUserWatsappNumber:["loggedin-user-whatsapp-number"],putAddLoggedInUserWatsappNumber:["put-add-loggedin-user-whatsapp-number"],getCitiesByCountryCodeV2QueryKey:function(e){return["cities-by-country-code",e.countryCode]}},l=function(e){var t=e.customConfig,n=e.username;return(0,s.a)(c.getUserByUserNameV2QueryKey({username:n}),(function(){return o.Yn.getUserDataV2(n)}),u({refetchOnWindowFocus:!1},t))},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{customConfig:{}},t=e.customConfig,n=(0,s.a)(c.getUserFeatureV2QueryKey,(function(){return o.Yn.getUserFeaturesV2()}),u({refetchOnWindowFocus:!1},t),{disabledForUnAuthUser:!0});return n},f=function(e){var t=e.userId,n=e.customConfig;return(0,s.a)(c.getLoggedInUserWatsappNumber,(function(){return o.Yn.getUserEnteredPhoneNumber(t)}),u({},n))},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{customConfig:{}},t=e.customConfig,n=e.config,r=(0,i.D)((function(e){return o.Yn.putAddLoggedInUserWhatsappNumber(e,n)}),u({mutationKey:c.putAddLoggedInUserWatsappNumber},t));return u({},r)}},35812:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/connect/manage",function(){return n(63798)}])},42708:function(e,t,n){"use strict";n.d(t,{YD:function(){return f}});var r=n(67294),i=Object.defineProperty,s=(e,t,n)=>(((e,t,n)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!==typeof t?t+"":t,n),n),o=new Map,a=new WeakMap,u=0,c=void 0;function l(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(a.has(n)||(u+=1,a.set(n,u.toString())),a.get(n)):"0"):e[t]}`;var n})).toString()}function d(e,t,n={},r=c){if("undefined"===typeof window.IntersectionObserver&&void 0!==r){const i=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"===typeof n.threshold?n.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}const{id:i,observer:s,elements:a}=function(e){const t=l(e);let n=o.get(t);if(!n){const r=new Map;let i;const s=new IntersectionObserver((t=>{t.forEach((t=>{var n;const s=t.isIntersecting&&i.some((e=>t.intersectionRatio>=e));e.trackVisibility&&"undefined"===typeof t.isVisible&&(t.isVisible=s),null==(n=r.get(t.target))||n.forEach((e=>{e(s,t)}))}))}),e);i=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:s,elements:r},o.set(t,n)}return n}(n),u=a.get(e)||[];return a.has(e)||a.set(e,u),u.push(t),s.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(a.delete(e),s.unobserve(e)),0===a.size&&(s.disconnect(),o.delete(i))}}r.Component;function f({threshold:e,delay:t,trackVisibility:n,rootMargin:i,root:s,triggerOnce:o,skip:a,initialInView:u,fallbackInView:c,onChange:l}={}){var f;const[h,m]=r.useState(null),p=r.useRef(),[g,y]=r.useState({inView:!!u,entry:void 0});p.current=l,r.useEffect((()=>{if(a||!h)return;let r;return r=d(h,((e,t)=>{y({inView:e,entry:t}),p.current&&p.current(e,t),t.isIntersecting&&o&&r&&(r(),r=void 0)}),{root:s,rootMargin:i,threshold:e,trackVisibility:n,delay:t},c),()=>{r&&r()}}),[Array.isArray(e)?e.toString():e,h,s,i,o,a,n,c,t]);const b=null==(f=g.entry)?void 0:f.target,v=r.useRef();h||!b||o||a||v.current===b||(v.current=b,y({inView:!!u,entry:void 0}));const x=[m,g.inView,g.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}},50549:function(e,t,n){"use strict";n.r(t),n.d(t,{SkeletonTheme:function(){return a},default:function(){return o}});var r=n(67294);const i=r.createContext({});function s({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:i,circle:s,direction:o,duration:a,enableAnimation:u=true}){const c={};return"rtl"===o&&(c["--animation-direction"]="reverse"),"number"===typeof a&&(c["--animation-duration"]=`${a}s`),u||(c["--pseudo-element-display"]="none"),"string"!==typeof n&&"number"!==typeof n||(c.width=n),"string"!==typeof r&&"number"!==typeof r||(c.height=r),"string"!==typeof i&&"number"!==typeof i||(c.borderRadius=i),s&&(c.borderRadius="50%"),"undefined"!==typeof e&&(c["--base-color"]=e),"undefined"!==typeof t&&(c["--highlight-color"]=t),c}function o({count:e=1,wrapper:t,className:n,containerClassName:o,containerTestId:a,circle:u=!1,style:c,...l}){var d,f,h;const m=r.useContext(i),p={...l};for(const[r,i]of Object.entries(l))"undefined"===typeof i&&delete p[r];const g={...m,...p,circle:u},y={...c,...s(g)};let b="react-loading-skeleton";n&&(b+=` ${n}`);const v=null!==(d=g.inline)&&void 0!==d&&d,x=[],j=Math.ceil(e);for(let i=0;i<j;i++){let t=y;if(j>e&&i===j-1){const n=null!==(f=t.width)&&void 0!==f?f:"100%",r=e%1,i="number"===typeof n?n*r:`calc(${n} * ${r})`;t={...t,width:i}}const n=r.createElement("span",{className:b,style:t,key:i},"\u200c");v?x.push(n):x.push(r.createElement(r.Fragment,{key:i},n,r.createElement("br",null)))}return r.createElement("span",{className:o,"data-testid":a,"aria-live":"polite","aria-busy":null===(h=g.enableAnimation)||void 0===h||h},t?x.map(((e,n)=>r.createElement(t,{key:n},e))):x)}function a({children:e,...t}){return r.createElement(i.Provider,{value:t},e)}}},function(e){e.O(0,[9774,314,2563,1272,2329,2006,8700,6394,452,1851,4306,2838,6893,1455,6646,5156,9275,6986,8636,5979,2888,179],(function(){return t=35812,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.