PageSourceSearch

https://thegrowthfaculty.com/_next/static/chunks/3410.7289fd61c70a36c4.js

js thegrowthfaculty.com collected 2026-09-25 19:01:06 UTC 16,879 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="19c775ee-0321-4f7e-bc33-8b961b65f8d1",e._sentryDebugIdIdentifier="sentry-dbid-19c775ee-0321-4f7e-bc33-8b961b65f8d1")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3410],{31551:function(e,n,t){t.d(n,{S:function(){return r},o:function(){return i}});var i={myProfileSection:{title:"My Profile",fields:{firstName:"First Name",middleName:"Middle Name",lastName:"Last Name",mobileNumber:"Mobile Number",myPositionIsBestDescribedAs:"My Position is Best Described As",jobTitle:"Job Title",company:"Company",companySize:"Number of Employees",industry:"Industry"}},locationInfoSection:{title:"Location Information",fields:{shippingAddress:"Shipping Address",membershipState:"State",country:"Country",timezone:"Timezone"}},accountInfoSection:{title:"Emails & Password Information",fields:{primaryEmail:"Primary Email Address",secondaryEmail:"Secondary Email Address",password:"Password",changePassword:"Request Change Password"}},alerts:{updateSuccess:"My Account Details has been successfully updated."},errors:{incompleteFields:"Please complete all mandatory fields",unexpectedError:t(58774).P.UNEXPECTED_ERROR},other:{emptyField:"-",placeholderPassword:"•••••",edit:"Edit",cancel:"Cancel",save:"Save"}},r=function(e){var n;return"•".repeat((null!==(n=null==e?void 0:e.length)&&void 0!==n?n:0)/1.2)}},84932:function(e,n,t){t.d(n,{IJ:function(){return x},Yr:function(){return h},xq:function(){return b}});var i=t(4730),r=t(59499),s=t(50029),a=t(64687),l=t.n(a),o=t(47171),c=t(85945),d=t(15177),u=t(34273),p=["data"];function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}var f=function(e,n){var t;return{key:["RAW_STORED_CARDS_QUERY_KEY"],queryFn:(t=(0,s.Z)(l().mark(function e(){var t;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.rd)("/api/custom/stored-cards",void 0,n);case 2:if(e.t1=t=e.sent,e.t0=null!==e.t1,!e.t0){e.next=6;break}e.t0=void 0!==t;case 6:if(!e.t0){e.next=10;break}e.t2=t,e.next=11;break;case 10:e.t2=null;case 11:return e.abrupt("return",e.t2);case 12:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})}},x=function(e,n){var t=f(e,n);return(0,u.I)(e,t)},b=function(e){var n=f(e);return e.invalidateQueries({queryKey:n.key})},h=function(e){var n=f((0,c.NL)()),t=(0,d.Sb)(n.key,n.queryFn,e);return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach(function(n){(0,r.Z)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({storedCards:t.data},(0,i.Z)(t,p))}},33410:function(e,n,t){t.r(n),t.d(n,{MembershipAndBilling:function(){return X}});var i=t(50029),r=t(59499),s=t(4730),a=t(64687),l=t.n(a),o=t(2204),c=t(67294),d=t(42190),u=t(79023),p=t(31741),m=t(64429),f=m.ZP.div.withConfig({displayName:"styles__BillingCardContainer",componentId:"sc-19iabgb-0"})(function(){return[{position:"relative",width:"100%","--tw-bg-opacity":"1",backgroundColor:"rgba(23, 24, 26, var(--tw-bg-opacity))",borderRadius:"0.375rem","> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":0,marginTop:"calc(2rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(2rem * var(--tw-space-y-reverse))"},padding:"1.25rem",overflow:"hidden"}]}),x=m.ZP.div.withConfig({displayName:"styles__BillingCardHeaderContainer",componentId:"sc-19iabgb-1"})(function(){return[{display:"flex",flexDirection:"column","> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":0,marginTop:"calc(0.5rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(0.5rem * var(--tw-space-y-reverse))"},alignItems:"center",justifyContent:"space-between","@media (min-width: 768px)":{flexDirection:"row"}}]}
1),b=m.ZP.span.withConfig({displayName:"styles__BillingCardTitle",componentId:"sc-19iabgb-2"})(function(e){return[{fontSize:"1.5625rem",lineHeight:"25px",letterSpacing:"-0.2px",fontFamily:'"Trade Gothic Condensed Bold", "Arial Narrow", Arial, sans-serif',"--tw-text-opacity":"1",color:"rgba(255, 129, 17, var(--tw-text-opacity))",textTransform:"uppercase",paddingLeft:"0.5rem"},!e.isBrandColor&&{"--tw-text-opacity":"1",color:"rgba(255, 255, 255, var(--tw-text-opacity))"}]}),h=m.ZP.span.withConfig({displayName:"styles__BillingCardDetailsContainer",componentId:"sc-19iabgb-3"})(function(){return[{display:"flex",flexDirection:"column",flexWrap:"wrap",justifyContent:"space-evenly","@media (min-width: 768px)":{flexDirection:"row"}}]}),y=m.ZP.span.withConfig({displayName:"styles__BillingCardItem",componentId:"sc-19iabgb-4"})(function(){return[{display:"flex",flexDirection:"column",flex:"1 1 0%",alignItems:"center",justifyContent:"center","--tw-text-opacity":"1",color:"rgba(255, 255, 255, var(--tw-text-opacity))","> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":0,marginTop:"calc(0.5rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(0.5rem * var(--tw-space-y-reverse))"},borderRightWidth:"1px","--tw-border-opacity":"1",borderColor:"rgba(166, 166, 166, var(--tw-border-opacity))",":first-child":{paddingLeft:"0px"},":last-child":{paddingRight:"0px",borderRightWidth:"0px"},"@media (min-width: 768px)":{flex:"1 1 auto"}}]}),g=m.ZP.span.withConfig({displayName:"styles__CardItemTitleText",componentId:"sc-19iabgb-5"})(function(){return[{fontSize:"1.25rem",lineHeight:"1.25rem",fontFamily:'"Trade Gothic Condensed Bold", "Arial Narrow", Arial, sans-serif',textTransform:"uppercase",textAlign:"center"}]}),v=t(64758),w=t(65016),j=t(79199),N=t(88715),C=t(29299),D=t(9235),S=t(38738),I=t(72477),P=t(85893),O=function(e){var n=e.onRequestUpgrade,t=(0,S.A)(),i=(0,C.G)().user,r=(0,D.s)().myDefaultSubscriptionV2,s=(0,j.r)().handleMenuItemClick,a=null==r?void 0:r.mySubscriptionDetail,l=null==a?void 0:a.planType,o=(0,N.i5)(i),c=!(null!=a&&a.planType),d=!!(null!=a&&a.upgradeToPremiumRequest);return o?"Club"===l?(0,P.jsx)(v.Z,{onClick:function(){s(w.VQ,w.aw)},size:"middle",children:"Upgrade Plan"}):null:c?(0,P.jsx)(v.Z,{onClick:function(){var e=new URLSearchParams;e.append(I.Tx.REF,I.Gz.JOIN_NOW),t.push("/sign-up/how-many-memberships?".concat(e.toString()))},size:"middle",children:"Join Now"}):"Club"===l?(0,P.jsx)(v.Z,{disabled:d,onClick:n,size:"middle",children:d?"Request Sent":"Request Upgrade"}):null},k=function(e){var n=e.type,t=(0,C.G)().user,i=(0,N.i5)(t),r=(0,N.n)(t);return{cardTitle:i?"Growth Faculty".concat(n?" - ".concat(n):""):n?"Growth Faculty - ".concat(n):"",isABillingAdmin:r}},A=t(82141),Z=t(44706),E="D MMM YYYY",_=function(e){var n=e.billingCycle,t=e.nextBillingDate,i=e.startDate,r=e.status,s=e.type,a=e.billingContact,l=e.onRequestUpgrade,o=e.hasNoSubscription,c=k({type:s}),d=c.cardTitle,u=c.isABillingAdmin;return(0,P.jsxs)(f,{children:[(0,P.jsx)(p.fZ,{height:290,className:"absolute opacity-[15%] top-1/2 left-0 transform -translate-y-1/2 z-0"}),(0,P.jsxs)(x,{children:[(0,P.jsx)("div",{className:"flex items-center justify-start mb-4 sm:mb-0",children:(0,P.jsx)(b,{isBrandColor:!o,children:o?"Event Plan":d})}),(0,P.jsx)(O,{onRequestUpgrade:l})]}),(0,P.jsx)(h,{children:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:"flex flex-row md:flex-1 w-full border-r-0 border-red md:border-r",children:[(0,P.jsxs)(y,{children:[(0,P.jsx)(g,{children:"Start Date"}),(0,P.jsx)("span",{className:"font-body text-base leading-[25px]",children:o||!i?"-":(0,A.Z)(i).format(E)})]}),(0,P.jsxs)(y,{children:[(0,P.jsx)(g,{children:"BILLING"}),(0,P.jsx)("span",{className:"font-body text-base leading-[25px]",children:o?"-":null!=n?n:"-"})]})]}),(0,P.jsx)("div",{className:"block md:hidden h-px bg-divider w-full my-4 md:my-0"}),(0,P.jsxs)("div",{className:"flex flex-row md:flex-1 w-full",children:[(0,P.jsxs)(y,{children:[(0,P.jsx)(g,{children:"Status"}),(0,P.jsx)("span",{className:"font-body text-base leading-[25px]",children:o?"Non Member":null!=r?r:"-"})]}),u&&(0,P.jsxs)(y,{children:[(0,P.jsx)(g,{children:"Next Billing Date"}),(0,P.jsx)("span",{className:"font-body text-base leading-[25px]",children:!o&&t?(0,A.Z)(t).format(E):"-"})]})]})]})}),!u&&!o&&(0,P.jsx)("div",{className:"flex flex-col items-center justify-center text-center",children:(0,P.jsxs)("span",{className:"font-body font-xs text-primary-inverted",children:[(0,P.jsx)("span",{children:"You are currently on a group plan, administered by ".concat(a,", contact ")}),(0,P.jsx)("span",{className:"underline",children:(0,P.jsx)(Z.Z,{href:"mailto:[email protected]",children:"[email protected]"})}),(0,P.jsx)("span",{children:" to unlink your account"})]})})]})}
1,R=t(27731),M=t(25192),T=t(97327),B=t(84932),L=t(43351),U=function(e){var n=e.isAiMentors,t=(0,j.r)().handleMenuItemClick;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(u.Z,{children:"Cancel Membership"}),(0,P.jsx)("div",{className:"flex flex-col space-y-5",children:n?(0,P.jsxs)("p",{children:["To cancel your subscription, email us at"," ",(0,P.jsx)(Z.Z,{className:"text-brand-default",href:L.SB,children:L.L4})]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("p",{className:"text-base font-body",children:"Would you like to cancel your membership?"}),(0,P.jsx)(v.Z,{appearance:"DARK_OUTLINE",onClick:function(){t(w.Hh,w.aw)},children:"Cancel Membership"})]})})]})},q=t(38532),F=t(93522),z=t(27484),Y=t.n(z),G=t(34974),W=t(22649),H=["storedCards"],K=["updateMembership"];function J(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function Q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?J(Object(t),!0).forEach(function(n){(0,r.Z)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var V="By selecting REQUEST UPGRADE, you'll notify your learning champion, would you still like to go ahead?",X=function(){var e,n,t,r,a,p,m,f,x=(0,B.Yr)(),b=x.storedCards,h=(0,s.Z)(x,H),y=(0,R.Z)(),g=y.user,N=y.subscriptionData,C=y.showUpgradeSnackbar,D=y.requestUpgrade,S=y.memberId,I=y.isSubscriptionLoading,O=y.refetchMeSubscription,k=y.allowCancelMembership,A=(0,o.Lz)(),Z=A.updateMembership,E=(0,s.Z)(A,K),L=!!(null!=N&&N.upgradeToPremiumRequest),z=(0,T.H7)().isLoading,J=(0,j.r)().handleMenuItemClick,X=(0,c.useState)({type:F.o.INFO,title:"Request Upgrade Confirmation",message:V}),$=X[0],ee=X[1],en=(0,q.U9)().setContactUsRequestModal;if(null!=b&&b.id){var et=b.billing_details,ei=b.card;if(et&&ei&&et.address){var er=et.address,es=er.line1,ea=er.line2,el=er.city,eo=er.country;f={billingAddress:[es,ea,el,[er.state,eo,er.postal_code].filter(Boolean).join(" ")].filter(Boolean).join(", "),last4Digits:ei.last_4,expiryDate:"".concat(ei.expiry_month,"/").concat(ei.expiry_year)}}}var ec=function(){J(w.Y8,w.aw)};if(!g)return null;var ed=!!(null!==(e=f)&&void 0!==e&&e.last4Digits),eu=(0,G.h6)(null!==(n=null===(t=f)||void 0===t?void 0:t.expiryDate)&&void 0!==n?n:Y()().format("MM/YYYY"));return(0,P.jsx)(W.Z,{isLoading:I||(null==h?void 0:h.isInitialLoading),type:"spinner",children:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(_,{hasNoSubscription:!(null!=N&&N.planType),type:null==N?void 0:N.planType,startDate:null==N?void 0:N.startDate,billingCycle:null==N?void 0:N.billingCycle,status:null==N?void 0:N.status,nextBillingDate:null==N?void 0:N.endDate,billingContact:null==N?void 0:N.billingContact,onRequestUpgrade:D}),g.isBillingAdmin&&(0,P.jsxs)("div",{className:"rounded-md border border-divider p-5 flex flex-col space-y-2 items-center sm:items-start",children:[(0,P.jsx)("p",{className:"text-3xl leading-9 font-heading-bold uppercase",children:"Contact Us"}),(0,P.jsx)("p",{className:"font-body text-base leading-5",children:"To expand your membership, enquire about Enterprise or simply have a question regarding your membership"}),(0,P.jsx)("div",{className:"w-full flex flex-row justify-center pt-3",children:(0,P.jsx)(v.Z,{loading:z,onClick:function(){en(!0)},size:"middle",children:"Contact Us"})})]}),C&&!L&&(0,P.jsx)("div",{className:"w-full bg-articles-background rounded-md",children:(0,P.jsx)(M.Z,{title:$.title,message:null!==(r=$.message)&&void 0!==r?r:"",type:$.type,footer:(0,P.jsxs)("div",{className:"flex flex-row gap-3 mx-auto",children:[$.type===F.o.INFO?(0,P.jsx)(v.Z,{size:"small",className:"!w-28",loading:E.isLoading,onClick:(0,i.Z)(l().mark(function e(){return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Z(S,{isUpgrade:!0});case 3:return ee({type:F.o.SUCCESS,title:"Your upgrade request has been sent!",message:"Your learning champion has been notified. You’ll be contacted shortly with the next steps."}),e.next=6,O();case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),ee({type:F.o.ERROR,title:"Something went wrong!",message:"An issue occurred while processing your request. Please try again. If the issue persists, please contact support."});case 11:case"end":return e.stop()}},e,null,[[0,8]])})),children:"Yes"}):null,(0,P.jsx)(v.Z,{appearance:"DARK_OUTLINE",size:"small",className:"!w-28",disabled:E.isLoading,onClick:function(){ee({type:F.o.INFO,title:V}),D()},children:"Cancel"})]})})}),!h.isInitialLoading&&(!!f||!!g.cbContactId)&&(0,P.jsxs)("div",{className:"w-full",children:[(0,P.jsx)(u.Z,{onAddPress:ed&&!eu?ec:void 0,onEditPress:ed?function(){J(Q(Q({},w.b0),{},{value:{pmId:b.id}}),w.aw)}:void 0,children:"Billing Details"}),(0,P.jsx)(d.Z,{isLoading:h.isInitialLoading,label:"Billing Address",value:(0,P.jsx)("span",{className:"flex w-full",children:(null===(a=f)||void 0===a?void 0:a.billingAddress)||"---"})}),(0,P.jsx)(d.Z,{isLoading:h.isInitialLoading,label:"Credit Card",value:(0,P.jsxs)("div",{className:"w-full flex flex-row items-center justify-between flex-wrap gap-3",children:[(0,P.jsx)("div",{className:"flex flex-row items-center space-x-3",children:ed?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("span",{className:"tracking-widest",children:"•••"}),(0,P.jsx)("span",{children:null===(p=f)||void 0===p?void 0:p.last4Digits})]}):(0,P.jsx)("span",{children:"---"})}),!!(null!==(m=f)&&void 0!==m&&m.expiryDate)&&(0,P.jsx)("span",{className:"".concat(eu?"text-error-background font-bold":""),children:f.expiryDate}),!ed||eu?(0,P.jsx)(v.Z,{appearance:"ALERT",size:"middle",onClick:ec,children:"Add New Card"}):null]})})]}),(null==N?void 0:N.status)==="Active"&&(null==N?void 0:N.planType)&&g.isBillingAdmin&&k&&(0,P.jsx)(U,{isAiMentors:(null==g?void 0:g.isAiMentorSinglePackActive)||(null==g?void 0:g.isAiMentorLaunchPackActive)})]})})}},27731:function(e,n,t){t.d(n,{Z:function(){return l}});var i=function(e){var n;return null!=e&&e.isMember&&(null==e||null===(n=e.subscriptions[0])||void 0===n?void 0:n.subscriptionMemberId)||null},r=t(67294),s=t(29299),a=t(9235),l=function(){var e,n=(0,s.G)().user,t=(0,a.s)(),l=t.myDefaultSubscriptionV2,o=t.isInitialLoading,c=t.refetch,d=(0,r.useState)(!1),u=d[0],p=d[1],m=(null==l||null===(e=l.subscriptionDetail
1s)||void 0===e||null===(e=e.subscriptionItems)||void 0===e?void 0:e.reduce(function(e,n){return e+(null==n?void 0:n.totalMemberships)},0))||0;return{user:n,memberId:i(n),subscriptionData:null==l?void 0:l.mySubscriptionDetail,allowCancelMembership:m>0&&m<=4,refetchMeSubscription:c,isSubscriptionLoading:o,showUpgradeSnackbar:u,requestUpgrade:function(){p(function(e){return!e})}}}},42190:function(e,n,t){var i=t(64758),r=t(99154),s=t(31551),a=t(67294),l=t(85893);n.Z=(0,a.memo)(function(e){var n=e.isLoading,t=void 0!==n&&n,a=e.label,o=e.value,c=e.isVisible,d=e.onEdit;return(0,l.jsxs)("div",{className:"w-full flex items-center text-base font-heading flex-row ".concat(void 0===c||c?"":"hidden"),children:[(0,l.jsx)("div",{className:"flex w-full font-heading text-base max-w-[16rem]",children:t?(0,l.jsx)(r.Z,{textSizeClassName:"text-base",containerClassName:"!w-1/2"}):a}),(0,l.jsxs)("div",{className:"flex flex-row w-full space-x-4",children:[(0,l.jsx)("span",{className:"flex grow font-heading",children:t?(0,l.jsx)(r.Z,{textSizeClassName:"text-base",containerClassName:"!w-full"}):o||s.o.other.emptyField}),!!d&&(0,l.jsx)("div",{children:t?(0,l.jsx)(r.Z,{textSizeClassName:"text-base",className:"!w-8"}):(0,l.jsx)(i.Z,{onClick:d,appearance:"LINK",children:(0,l.jsx)("span",{className:"!text-brand-default hover:!text-brand-hover",children:"Edit"})})})]})]})})}}]);

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.