PageSourceSearch

https://snapbg.ai/_next/static/chunks/pages/my-plan-6f0a4ccfa38db090.js

js snapbg.ai collected 2026-10-05 12:39:41 UTC 7,810 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6490],{387:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-plan",function(){return n(78236)}])},41781:function(e,l,n){"use strict";n.d(l,{V:function(){return MyAccountSidebar}});var s=n(85893),t=n(93967),i=n.n(t),r=n(27961),d=n(75831),a=n(5708),c=n(41664),o=n.n(c),u=n(11163);n(67294);var x=n(10314);let MyAccountSidebar=e=>{let{tHome:l}=e,{t:n}=(0,a.Z)(d.t.Home),{userInfoBackend:t}=x.Z.useContainer(),c=(0,u.useRouter)(),{pathname:m}=c;return(0,s.jsxs)("div",{className:"px-2 py-1 flex flex-col bg-white shadow-xl sm+:w-80 sm+:h-full sm:w-full sm:fixed sm:bottom-0 sm:left-0 sm:z-40",children:[(0,s.jsx)("div",{onClick:()=>c.push("/"),children:(0,s.jsxs)("div",{className:"flex gap-[10px] items-center px-3 py-[10px] hover:bg-zinc-100 hover:font-semibold rounded cursor-pointer",children:[(0,s.jsx)(r.d,{type:"home"}),(0,s.jsx)("div",{className:"text-center hover:text-gray-800 text-gray-600 text-sm leading-none",children:n("landing.header.profile.home")})]})}),(0,s.jsx)(o(),{href:"/my-account",prefetch:!1,children:(0,s.jsxs)("div",{className:i()("flex gap-[10px] items-center px-3 py-[10px] hover:bg-zinc-100 hover:font-semibold rounded cursor-pointer",{"bg-zinc-100 font-semibold":m.includes("my-account")}),children:[(0,s.jsx)(r.d,{type:"user_circle"}),(0,s.jsx)("div",{className:"text-center hover:text-gray-800 text-gray-600 text-sm leading-none",children:n("landing.header.profile.my_account")})]})}),(null==t?void 0:t.subscriber)&&(0,s.jsx)(o(),{href:"/my-plan",prefetch:!1,children:(0,s.jsxs)("div",{className:i()("flex gap-[10px] items-center px-3 py-[10px] hover:bg-zinc-100 hover:font-semibold rounded cursor-pointer",{"bg-zinc-100 font-semibold":m.includes("my-plan")}),children:[(0,s.jsx)(r.d,{type:"credit_card"}),(0,s.jsx)("div",{className:"text-center hover:text-gray-800 text-gray-600 text-sm leading-none",children:n("landing.header.profile.my_plan")})]})}),(0,s.jsx)(o(),{href:"/my-credit-plan",prefetch:!1,children:(0,s.jsxs)("div",{className:i()("flex gap-[10px] items-center px-3 py-[10px] hover:bg-zinc-100 hover:font-semibold rounded cursor-pointer",{"bg-zinc-100 font-semibold":m.includes("my-credit-plan")}),children:[(0,s.jsx)(r.d,{type:"coin"}),(0,s.jsx)("div",{className:"text-center hover:text-gray-800 text-gray-600 text-sm leading-none",children:n("landing.header.credit_plan")})]})}),(0,s.jsx)(o(),{href:"/support",prefetch:!1,children:(0,s.jsxs)("div",{className:i()("flex gap-[10px] items-center px-3 py-[10px] hover:bg-zinc-100 hover:font-semibold rounded cursor-pointer",{"bg-zinc-100 font-semibold":m.includes("support")}),children:[(0,s.jsx)(r.d,{type:"headphone"}),(0,s.jsx)("div",{className:"text-center hover:text-gray-800 text-gray-600 text-sm leading-none",children:n("landing.header.profile.support")})]})})]})}},78236:function(e,l,n){"use strict";n.r(l),n.d(l,{__N_SSG:function(){return P},default:function(){return my_plan}});var s=n(85893),t=n(93967),i=n.n(t),r=n(49285),d=n(11462),a=n(67872),c=n(55723),o=n(74234),u=n(75831),x=n(10314),m=n(45478),h=n(24516),p=n(5708),v=n(67294),g=n(18039);n(95843),n(18941),n(46792);var b=n(96529),f=n(11163);let MyPlanComponent=()=>{var e,l,n,t,i,r,d,j,N,y,_;let w=(0,f.useRouter)(),{t:P}=(0,p.Z)(u.t.PricingPage),{t:Z}=(0,p.Z)(u.t.Home),{isPremium:z,userInfoBackend:C,loading:k,openModalPremium:E,isHold:T,userInfo:A,getUserInfo:D}=x.Z.useContainer(),[O,X]=(0,v.useState)(!1),[S,L]=(0,v.useState)(!1);if((0,h.Z)(),k)return(0,s.jsx)("div",{className:"w-full h-full flex flex-col justify-center items-center",children:(0,s.jsx)(c.Z,{className:"mr-2"})});let Y=((null==C?void 0:null===(e=C.subscriber)||void 0===e?void 0:e.status)===x.X.Canceled||(null==C?void 0:null===(l=C.subscriber)||void 0===l?void 0:l.status)===x.X.Cancelled||(null==C?void 0:null===(n=C.subscriber)||void 0===n?void 0:n.status)===x.X.Deleted)&&(null==C?void 0:null===(t=C.subscriber)||void 0===t?void 0:t.valid_to)*1e3<new Date().getTime(),M=(null==C?void 0:null===(i=C.subscriber)||void 0===i?void 0:i.status)===x.X.Active,H=(null==C?void 0:null===(r=C.subscriber)||void 0===r?void 0:r.status)===x.X.Trialing;return T?(0,s.jsx)("div",{className:"p-6 bg-zinc-100 h-full",children:(0,s.jsxs)("div",{className:"bg-white rounded-lg p-6 tlg:w-1/2 w-full",children:[(0,s.jsx)("div",{className:"border-b border-b-gray-200 pb-4",children:(0,s.jsx)("h1",{className:" text-black text-2xl font-semibold leading-loose",children:Z("landing.past_due.title")})}),(0,s.jsx)("div",{className:"pt-4",children:(0,s.jsx)("div",{className:"text-gray-800 text-sm font-normal leading-tight",children:Z("landing.past_due.desc")})})]})}):z?(0,s.jsx)("div",{className:"p-6 bg-zinc-100 h-full",children:(0,s.jsxs)("div",{className:"bg-white rounded-lg p-6 tlg:w-1/2 w-full",children:[(0,s.jsx)("div",{className:"border-b border-b-gray-200 pb-4",children:(0,s.jsx)("h1",{className:" text-black text-2xl font-semibold leading-loose",children:P("accountPage.pro_subscription")})}),(0,s.jsxs)("div",{className:"pt-4",children:[M&&(0,s.jsxs)("div",{className:"text-gray-800 text-sm font-normal leading-tight",children:[P("accountPage.pro_since")," ",(0,m.o0)((null==C?void 0:null===(d=C.subscriber)||void 0===d?void 0:d.created_at)*1e3,o.a1.DATE_ONLY)," ","(",P("accountPage.renew_on")," ",(0,m.o0)((null==C?void 0:null===(j=C.subscriber)||void 0===j?void 0:j.valid_to)*1e3,o.a1.DATE_ONLY),")"]}),H&&(0,s.jsxs)("div",{className:"text-gray-800 text-sm font-normal leading-tight",children:[P("accountPage.trial_since")," ",(0,m.o0)((null==C?void 0:null===(N=C.subscriber)||void 0===N?void 0:N.created_at)*1e3,o.a1.DATE_ONLY)," ","(",P("accountPage.end_on")," ",(0,m.o0)((null==C?void 0:null===(y=C.subscriber)||void 0===y?void 0:y.valid_to)*1e3,o.a1.DATE_ONLY),")"]}),!M&&!H&&(0,s.jsxs)("div",{className:"text-gray-800 text-sm font-normal leading-tight",children:[P("accountPage.ended_subscription_description")," ",(0,m.o0)((null==C?void 0:null===(_=C.subscriber)||void 0===_?void 0:_.valid_to)*1e3,o.a1.DATE_ONLY)]})]})]})}):Y?(0,s.jsx)("div",{className:"p-6 bg-zinc-100 h-full",children:(0,s.jsxs)("div",{className:"bg-white rounded-lg p-6 tlg:w-1/2 w-full",children:[(0,s.jsx)("div",{className:"border-b border-b-gray-200 pb-4",children:(0,s.jsx)("h1",{className:" text-black text-2xl font-semibold leading-loose",children:P("accountPage.free_plan")})}),(0,s.jsx)("div",{className:"pt-4",children:(0,s.jsx)("div",{className:"text-gray-800 text-sm font-normal leading-tight",children:P("accountPage.user_pro_cancelled")})}),(0,s.jsx)("div",{className:"tlg:w-1/2 w-full flex gap-3 my-6",children:(0,s.jsx)(a.Z.Primary,{className:"mt-1.5",onClick:()=>w.push(b._.apiCredit),children:Z("landing.header.more_credits")})})]})}):(0,s.jsx)(g.j,{})};var j=n(41781),N=n(66409),y=n(25617),_=n(17538),w=n(46095),P=!0,my_plan=()=>{let{t:e}=(0,p.Z)("common"),{t:l}=(0,p.Z)(u.t.PricingPage),{isOpenPromoteBanner:n}=(0,y.v9)(_.y$),{loading:t,isPremium:a}=x.Z.useContainer();return(0,s.jsxs)(r.Z,{noindex:!0,meta:{title:e("meta.title"),description:e("meta.title")},children:[(0,s.jsx)(d.Z,{}),(0,s.jsxs)(N.ZP,{className:i()("flex bg-gray-200 w-full",{"pt-[68px]":!n,"pt-[104px]":n}),children:[(0,s.jsx)("div",{className:i()("bg-white shadow-xl h-full fixed","hidden tlg:block"),children:(0,s.jsx)(j.V,{tHome:l})}),(0,s.jsxs)("div",{className:"flex-1 h-full overflow-auto tlg:ml-[320px]",children:[(0,s.jsx)("div",{className:i()(t||!a&&"hidden","px-6 pt-6 bg-zinc-100"),children:(0,s.jsx)("div",{className:"border border-1 border-blue-600 p-3 tlg:w-1/2 w-full rounded-lg bg-blue-100",children:(0,s.jsx)(w.Z,{variant:"T14R",children:e("maintain.support_cancel")})})}),(0,s.jsx)(MyPlanComponent,{})]})]})]})}}},function(e){e.O(0,[2333,8719,4863,5976,9285,1462,8039,9774,2888,179],function(){return e(e.s=387)}),_N_E=e.O()}]);

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.