1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[251],{60251:(e,t,r)=>{r.r(t),r.d(t,{default:()=>u});var s=r(95155),n=r(23029),a=r(98134),i=r.n(a),o=r(12115),l=r(20148),c=r(82241),d=r(50007);let u=e=>{let{token:t}=e,[r,a]=(0,o.useState)(!1),[u,p]=(0,o.useState)(!1),{getHeaderBand:x}=(0,n.T)(),{resumeSubscription:h,getProfile:m}=(0,l.p)(),[f,w]=(0,o.useState)({}),g=i()(f,"banner_text",""),b=i()(f,"cta_text",""),k=i()(f,"web_link",""),j=async()=>{try{let e=await x(t);w(e)}catch(e){console.error("Error fetching header band:",e)}},y=async()=>{try{if(a(!0),!(await h(String(t))).success)throw Error("Failed to resume subscription");p(!0)}catch(e){console.error("Failed to resume subscription",e),a(!1),p(!1)}},_=async()=>{try{let e=await m(String(t)),r=i()(e,"data",{});if(!i()(r,["subscription","is_cancelled"],!1))return p(!1),a(!1),window.location.reload(),!0;return!1}catch(e){return console.error("Error fetching profile:",e),a(!1),!1}};return(0,d.A)({startPolling:u,interval:2e3,onPoll:_,onPollFinish:()=>{a(!1),p(!1),console.log("Subscription status check timed out")},attempts:10}),(0,o.useEffect)(()=>{j()},[t]),(0,s.jsxs)(s.Fragment,{children:[r&&(0,s.jsx)(()=>(0,s.jsx)("div",{className:"fixed top-0 left-0 h-screen w-screen z-[10000] bg-white",children:(0,s.jsx)(c.A,{loaderText:"Please wait while resuming your subscription ..."})}),{}),g?(0,s.jsx)("div",{className:"bg-[#2CB680] w-full p-[5px] text-center md:leading-5 leading-[18px] flex flex-wrap justify-center md:gap-3 gap-2 items-center relative",children:(0,s.jsxs)("span",{className:"text-[13px] md:text-[15px] md:leading-9 leading-5 text-white font-haasGrotesk font-medium word-spacing letter-spacing",children:[g," \xa0\xa0",(0,s.jsx)("span",{onClick:()=>{"resume your subscription"===b.toLowerCase()?y():k&&window.open(k,"_self")},className:"bg-white px-3 text-center text-[#907CFF] capitalize text-[13px] md:text-[15px] font-haasGrotesk font-medium w-max cursor-pointer inline-block h-fit leading-[26px]",children:b})]})}):(0,s.jsx)(s.Fragment,{})]})}}}]);
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.