PageSourceSearch

https://myregimen.ai/_next/static/chunks/7063.7beace67341f4c11.js

js myregimen.ai collected 2026-10-05 13:48:48 UTC 3,759 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7063],{22495:function(e){var s;s=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(s,t,l){var i=t.prototype,a=i.format;l.en.formats=e,i.format=function(s){void 0===s&&(s="YYYY-MM-DDTHH:mm:ssZ");var t,l,i=this.$locale().formats,n=(t=s,l=void 0===i?{}:i,t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(s,t,i){var a=i&&i.toUpperCase();return t||l[i]||e[i]||l[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,s,t){return s||t.slice(1)})}));return a.call(this,n)}}},e.exports=s()},27063:function(e,s,t){"use strict";t.r(s);var l=t(57437),i=t(67256),a=t(71096),n=t.n(a),r=t(22495),c=t.n(r),o=t(28310),d=t(75113),u=t(85157),x=t(74119),m=t(2265);n().extend(c());let f=new Map([[o.zO.CREDIT,"Credit subscription"],[o.zO.UNLIMITED,"All access to {leaderName}"]]);s.default=()=>{let{cancelMySubscription:e,mySubscriptionInfos:s}=(0,i.A)(),{clearPaywallAccessData:t}=(0,d.n)(),{resetCategoryRegimenMap:a,resetCategoryLeaderRegimenMap:r}=(0,u.f)(),{leaderTierMap:c}=(0,x.s)(),[h,v]=(0,m.useState)([]),[p,b]=(0,m.useState)([]);(0,m.useEffect)(()=>{v(s.filter(e=>e.status==o.sy.ACTIVE||n()(e.expirationAt)>=n()())),b(s.filter(e=>e.status!=o.sy.ACTIVE&&n()(e.expirationAt)<n()()))},[s]);let M=s=>{var i,d;let u=null===(i=Array.from(c.values()).find(e=>s.subscriptionType==e.type))||void 0===i?void 0:i.name;return(0,l.jsxs)("div",{className:"border border-text-color-2 p-4 rounded-lg bg-white shadow-md",children:[(0,l.jsxs)("div",{className:"text-text-color-1 text-lg mb-2",children:[(null==s?void 0:s.status)==o.sy.ACTIVE?(0,l.jsx)("div",{className:"h-3 w-3 rounded-full bg-success-color inline-block mr-2"}):(0,l.jsx)("div",{className:"h-3 w-3 rounded-full bg-warning-color inline-block mr-2"}),(0,l.jsx)("span",{className:"font-semibold",children:u?"My Mentorship Toolkit Plan: ".concat(u):null===(d=f.get(s.subscriptionType))||void 0===d?void 0:d.replace("{leaderName}",s.leaderName)})]}),(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,l.jsxs)("div",{className:"flex-auto grid grid-cols-[min-content_auto] gap-2",children:[(0,l.jsx)("div",{className:"text-text-color-2",children:s.status==o.sy.ACTIVE?"Renews":"Expires"}),(0,l.jsx)("div",{className:"text-text-color-2",children:n()(s.expirationAt).format("L LT")})]}),(0,l.jsx)("div",{className:"flex-auto flex flex-wrap justify-end",children:(null==s?void 0:s.status)==o.sy.ACTIVE&&!u&&(0,l.jsx)("button",{type:"button",className:"py-2 px-4 rounded-full transition-all duration-200 bg-black text-white hover:bg-link-hover-color/90",onClick:()=>{e(s.subscriptionId,()=>{t(),a(),r()})},children:"Cancel"})})]})]})};return(0,l.jsx)("div",{className:"block",children:0!=s.length?(0,l.jsxs)(l.Fragment,{children:[0!=h.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"font-[500] text-base mb-4 text-text-color-2 w-full",children:"Active Subscriptions"}),(0,l.jsx)("div",{className:"flex flex-col gap-5 mb-6 w-full",children:h.map((e,s)=>(0,l.jsx)("div",{children:M(e)},"active_subs_".concat(e.id,"_").concat(s)))})]}),0!=p.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"font-[500] text-base mb-4 text-text-color-2 w-full",children:"Inactive Subscriptions"}),(0,l.jsx)("div",{className:"flex flex-col gap-5 mb-6 w-full",children:p.map((e,s)=>(0,l.jsx)("div",{children:M(e)},"inactive_subs_".concat(e.id,"_").concat(s)))})]})]}):(0,l.jsxs)("div",{className:"px-1",children:[(0,l.jsx)("div",{className:"h-3 w-3 rounded-full bg-warning-color inline-block mr-2"}),(0,l.jsx)("div",{className:"text-text-color-2 inline-block",children:"No active subscription"})]})})}}}]);

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.