PageSourceSearch

https://insighttimer.com/static/js/member-plus-subscription-runtime.3338c032.chunk.js

js insighttimer.com collected 2026-09-24 08:27:34 UTC 10,093 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkinsight_timer=self.webpackChunkinsight_timer||[]).push([[6755],{15739:(e,t,n)=>{n.r(t),n.d(t,{default:()=>A});var r=n(78675),i=n(32104),s=n(67850),o=n(95254),l=n(53067),a=n(39654),c=n(20704),u=n(9242),d=n(4021),p=n(25325),h=n(95620),x=n(42522),g=n(54541),m=n(9619),S=n(5172),f=n(38341),C=n(80330),E=n(89728),b=n(15263),v=n(64582);const I=()=>(0,v.jsxs)(f.s,{direction:"column",alignItems:"center",textAlign:"center",paddingY:"40px",children:[(0,v.jsx)(C.I,{as:S.C1,width:"40px",height:"40px",css:"\n          path {\n            fill: green;\n          }\n        ",marginBottom:"30px"}),(0,v.jsx)(E.D,{fontSize:"24px",lineHeight:"34px",fontWeight:500,color:"neutral.700",marginBottom:"10px",children:"Subscribe Successfully"}),(0,v.jsx)(b.E,{fontSize:"16px",lineHeight:"23px",fontWeight:400,color:"neutral.700",children:"You can now able to access premium content of Insight Timer."})]});var j=n(56087),O=n(62343),w=n(3119),y=n(91796),U=n(54154),D=n(31624),B=n(80288),k=n(29220),L=n(32094),_=n(67957);const N=e=>(0,v.jsx)(_.c,{color:"#e6e6e6",marginY:"32px",...e});var R=n(36658);const T=e=>{var t;let{purchaseStatus:n,subscriptionMetaDetails:r,onSuccess:i}=e;const s=(0,k.A)(n),{isGlobalStatsLoading:o,courses_all:l}=(0,D.A)(),a=null!==(t=null===l||void 0===l?void 0:l.toLocaleString())&&void 0!==t?t:"";return(0,v.jsxs)(d.a,{paddingTop:"64px",paddingBottom:["20px","20px","40px"],maxWidth:"412px",marginX:"auto",children:[(0,v.jsx)(d.a,{marginBottom:"16px",paddingX:"10px",children:(0,v.jsx)(E.D,{as:"h2",fontSize:"24px",lineHeight:"34px",fontWeight:500,color:"neutral.700",textAlign:"center",children:"Subscribe to MemberPlus"})}),(0,v.jsx)(d.a,{paddingX:"10px",children:(0,v.jsx)(b.E,{maxWidth:"400px",marginX:"auto",fontSize:"16px",lineHeight:"23px",fontWeight:400,textAlign:"center",color:"neutral.600",children:"MemberPlus tracks are a premium offering and require an active subscription"})}),(0,v.jsx)(N,{}),(0,v.jsxs)(d.a,{paddingX:"10px",children:[(0,v.jsxs)(f.s,{children:[(0,v.jsx)(C.I,{as:U.h,width:"auto",height:"28px",marginTop:"-4px"}),(0,v.jsxs)(d.a,{textAlign:"right",flexGrow:1,marginLeft:"5px",children:[(0,v.jsx)(E.D,{as:"h6",fontSize:"18px",lineHeight:"27px",fontWeight:700,color:"neutral.700",children:s?(0,v.jsxs)(v.Fragment,{children:["$",L.sL,"/year"]}):(0,v.jsx)(v.Fragment,{children:"7 Day Free Trial"})}),(0,v.jsxs)(b.E,{fontSize:"14px",lineHeight:"21px",fontWeight:700,color:"neutral.500",children:["Then US$ ",L.sL,"/year"]})]})]}),(0,v.jsx)(d.a,{marginTop:"4px",marginBottom:"32px",children:(0,v.jsxs)(b.E,{fontSize:"16px",lineHeight:"23px",fontWeight:400,color:"neutral.600",maxWidth:"400px",children:[s?(0,v.jsx)(v.Fragment,{children:"Subscribe"}):(0,v.jsx)(v.Fragment,{children:"Start your 7 day free trial then subscribe"})," ",o?(0,v.jsx)(j.E,{width:"50%",height:"40px",borderRadius:"10px"}):(0,v.jsxs)(v.Fragment,{children:["to unlock all ",a," Insight Courses, Playlists and premium features."]})]})}),(0,v.jsx)(d.a,{children:(0,v.jsx)(b.E,{fontSize:"14px",lineHeight:"20px",fontWeight:400,color:"neutral.600",marginBottom:"12px",children:s?(0,v.jsxs)(v.Fragment,{children:["Your annual subscription will automatically renew after one year at USD ",L.sL,"."]}):(0,v.jsxs)(v.Fragment,{children:["You may cancel your subscription any time within the trial at no charge. Your annual subscription will automatically begin after 7 days at USD ",L.sL,"/year."]})})})]}),(0,v.jsx)(d.a,{children:(0,v.jsx)(R.A,{subscriptionList:n,handleSubmit:async e=>{var t,n,s,o;let{recaptchaToken:l,userData:a,elements:c,stripe:u,hasTrialled:d}=e;const p=null===c||void 0===c?void 0:c.getElement(y.CardNumberElement);if(!p)return;const h=await(null===u||void 0===u?void 0:u.createSource(p,{type:"card",owner:a}));if(null!==h&&void 0!==h&&h.error)throw new Error(h.error.message);if(null===h||void 0===h||null===(t=h.source)||void 0===t||!t.id)throw new Error("There is some issue in payment processing. Please try again later.");await(0,B.B1)(null!==(n=a.email)&&void 0!==n?n:"",null!==(s=null===h||void 0===h||null===(o=h.source)||void 0===o?void 0:o.id)&&void 0!==s?s:"",null!==B.I&&void 0!==B.I?B.I:"",d?L.S1:B.ZJ,r,{"g-recaptcha-token":l})&&i()}})}),(0,v.jsx)(O.Z,{containerRef:{current:document.getElementById("purchaseAdditionalElContainer")},children:(0,v.jsxs)(b.E,{paddingY:"10px",color:"neutral.0",position:"absolute",bottom:"-44px",left:"0px",width:"100%",textAlign:"center",children:["By continuing you agree to our"," ",(0,v.jsx)(w.N,{href:"/legal/terms-of-service",fontWeight:500,children:"Terms"})]})})]})},H=e=>{let{stage:t,setStage:n,subscriptionMetaDetails:r,subscriptionModalOpened:S,openSubscriptionModal:f,onClose:C}=e;const{authState:E}=(0,i.t7)(),b=(0,l.Z)(S),{isLoading:j,isSubscriber:O}=(0,s.H7)(),{isFetchingSubscriptions:w,subscriptionList:y}
1=(0,m.A)(),{showLoginPopup:U}=(0,g.YF)(),D=()=>{"SUCCESS_VIEW"===t&&n("SUBSCRIBED"),C()};return(0,o.useEffect)((()=>{if(b&&!S){if("SUBSCRIBED"===t)return;n("SUCCESS_VIEW"===t?"SUBSCRIBED":"MODAL_CLOSED")}}),[b,t,S,n]),(0,o.useEffect)((()=>{if(E!==i.kj.PENDING&&"CHECK_LOGIN"===t){if(E===i.kj.AUTHORIZED)return void n("CHECKING_SUBSCRIPTION");n("AUTH_FORM"),U({onSuccess:()=>{n("CHECKING_SUBSCRIPTION")},onModalClose:e=>{e||n("MODAL_CLOSED")}})}}),[t,E,U,n]),(0,o.useEffect)((()=>{"AUTH_FORM"===t&&E===i.kj.AUTHORIZED&&n("CHECKING_SUBSCRIPTION")}),[t,E,n]),(0,o.useEffect)((()=>{"CHECKING_SUBSCRIPTION"!==t||j||(O?(n("SUBSCRIBED"),C()):(n("SUBSCRIPTION_FORM"),f()))}),[t,C,f,j,O,n]),(0,v.jsxs)(h.A,{closeOnEsc:"CHECK_LOGIN"!==t&&"CHECKING_SUBSCRIPTION"!==t,closeOnOverlayClick:"CHECK_LOGIN"!==t&&"CHECKING_SUBSCRIPTION"!==t,size:"2xl",isOpen:S,isCentered:"SUBSCRIPTION_FORM"!==t,preserveScrollBarGap:!0,onClose:()=>{D()},children:[(0,v.jsx)(a.m,{}),(0,v.jsxs)(c.$,{borderRadius:"12px",children:[(0,v.jsx)(x.A,{zIndex:10,onClick:D}),(0,v.jsxs)(u.c,{paddingX:"20px",display:"flex",justifyContent:"center",children:[("CHECKING_SUBSCRIPTION"===t||w)&&(0,v.jsx)(p.A,{minHeight:"200px"}),"SUBSCRIPTION_FORM"===t&&!w&&(0,v.jsx)(T,{purchaseStatus:y,subscriptionMetaDetails:r,onSuccess:()=>{n("SUCCESS_VIEW")}}),"SUCCESS_VIEW"===t&&(0,v.jsx)(I,{})]}),(0,v.jsx)(d.a,{id:"purchaseAdditionalElContainer"})]})]})},A=e=>{let{requestId:t,subscriptionMetaData:n,onAlreadyMember:l,onSubscribed:a,onModalClosed:c,onStageChange:u}=e;const[d,p]=(0,o.useState)(void 0),h=(0,o.useRef)({memberPlusUsers:{}}),{user:x,authState:g}=(0,i.t7)(),{setIsSubscriber:m}=(0,s.H7)(),{isOpen:S,onOpen:f,onClose:C}=(0,r.j)();return(0,o.useEffect)((()=>{g!==i.kj.PENDING&&g===i.kj.UNAUTHORIZED&&(h.current.memberPlusUsers={})}),[g]),(0,o.useEffect)((()=>{t&&(x&&h.current.memberPlusUsers[x.uid]?l():p("CHECK_LOGIN"))}),[l,t,x]),(0,o.useEffect)((()=>{u(d)}),[u,d]),(0,o.useEffect)((()=>{"SUBSCRIBED"===d&&null!==x&&void 0!==x&&x.uid&&(m(!0),h.current.memberPlusUsers[x.uid]=!0,a()),"MODAL_CLOSED"===d&&c()}),[c,a,m,d,null===x||void 0===x?void 0:x.uid]),void 0!==d||S?(0,v.jsx)(H,{stage:d,setStage:p,subscriptionModalOpened:S,openSubscriptionModal:f,onClose:C,subscriptionMetaDetails:n}):null}},42522:(e,t,n)=>{n.d(t,{A:()=>d});var r,i,s=n(31265),o=n(95254);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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(null,arguments)}function a(e,t){let{title:n,titleId:s,...a}=e;return o.createElement("svg",l({viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":s}
1,a),n?o.createElement("title",{id:s},n):null,r||(r=o.createElement("line",{x1:5.38638,y1:5.22919,x2:12.7717,y2:12.6145,stroke:"#636D6D",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),i||(i=o.createElement("line",{x1:5.22949,y1:12.6142,x2:12.6148,y2:5.22889,stroke:"#636D6D",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const c=o.forwardRef(a);n.p;var u=n(64582);const d=function(e){let{buttonTheme:t="light",...n}=e;const r="light"===t,i=r?"modal.light.300":"neutral.700";return(0,u.jsx)(s.K,{icon:(0,u.jsx)(c,{}),padding:"0",minWidth:"30px",width:"30px",height:"30px",outline:"none",border:"none",borderRadius:"10px","aria-label":"Close modal",position:"absolute",right:"20px",top:"20px",bg:i,transition:"background 0.3s",css:`\n        svg {\n          width: 18px;\n          height: 18px;\n        }\n\n        svg line {\n          stroke: ${r?"var(--chakra-colors-neutral-600)":"var(--chakra-colors-neutral-0)"};\n        }\n      `,_hover:{bg:r?"modal.light.500":"neutral.700"},_focus:{outline:"none"},...n,onClick:e=>{if(!n.onClick)return;n.onClick(e);const t=document.documentElement;t&&t.classList.remove("overflow-hidden","preserve-scroll-width")}})}},74756:(e,t,n)=>{n.d(t,{Ds:()=>u,Jq:()=>l,PI:()=>d,QZ:()=>c,uj:()=>a});var r=n(73999),i=n.n(r),s=n(34969),o=n.n(s);i().extend(o());const l=(e,t)=>{if(e){const n=Math.floor(e/60);return e>59?`${n} min${n>1&&t?"s":""}`:`${e} sec`}return""},a=()=>{const e=i()();return{epoch:e.valueOf(),iso_8601_datetime_tz:e.toISOString()}},c=e=>i()().year()===i()(e).year(),u=e=>{if(0===e)return"00:00";const t=e=>`0${e}`.slice(-2),n=new Date(1e3*e),r=n.getUTCHours(),i=t(n.getUTCMinutes().toString()),s=t(n.getUTCSeconds().toString());return r?`${r}:${i}:${s}`:`${i}:${s}`},d=e=>i()(e).fromNow()},95620:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(78067),i=n(27596),s=n(95254),o=n(64582);const l=e=>{const{isOpen:t}=e,n=(0,r.A)({base:!0,xs:!0,sm:!1,md:!1,lg:!1,xl:!1});(0,s.useEffect)((()=>{const e=document.documentElement;e&&(t?e.classList.add("overflow-hidden","preserve-scroll-width"):e.classList.remove("overflow-hidden","preserve-scroll-width"))}),[t]),(0,s.useEffect)((()=>{const e=document.documentElement;e&&(n&&t?e.classList.add("modal-opened"):e.classList.remove("modal-opened"))}),[n,t]);return(0,o.jsx)(i.aF,{blockScrollOnMount:!0,preserveScrollBarGap:!0,...e,onClose:()=>{if(!e.onClose)return;e.onClose();const t=document.documentElement;t&&t.classList.remove("overflow-hidden","preserve-scroll-width")}})}}}]);
2//# sourceMappingURL=member-plus-subscription-runtime.3338c032.chunk.js.map

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.