1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[947],{15557:(e,l,t)=>{t.d(l,{P:()=>n});let n=e=>{let{subscriptionId:l,oldPlanCode:t,newPlanCode:n}=e;return{...l&&{subscriptionId:l,Reference:l,Name:l},...t&&{oldPlan:t},...n&&{newPlan:n,NewId:n}}}},90947:(e,l,t)=>{t.r(l),t.d(l,{default:()=>E});var n=t(95155),a=t(12115),s=t(47650),o=t(18955),i=t(33810),r=t(62692),c=t(75658),d=t(77366);let p=e=>{var l,t,s,i;let{isOpen:r,onClose:p,plan:u,currentSubscription:x,onConfirm:m,hasActiveSubscription:b=!0,appTheme:h}=e,v=(0,o.c)("available-plans"),g=(0,o.c)("buttons"),[f,y]=(0,a.useState)(!1);if(!r||!u)return null;let C=u.type,j=(null==x||null==(t=x.plan)||null==(l=t.pricing)?void 0:l.currency)||"USD",w=new Intl.NumberFormat("en-US",{style:"currency",currency:j}).format(u.price),N=null!=(s=null==h?void 0:h.primaryTextColor)?s:"#130A7E",A=null!=(i=null==h?void 0:h.contentBackgroundColor)?i:"white",E=v("".concat(C,".saveUpTo")),S=async()=>{y(!0);try{await m(u)}catch(e){y(!1)}};return(0,n.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,n.jsx)("div",{className:"fixed inset-0 bg-black/50",onClick:p}),(0,n.jsxs)("div",{className:"relative w-[90%] md:w-[80%] lg:w-[75%] xl:w-[60%] min-[1500px]:w-[50%] max-w-[1200px] flex flex-col",children:[(0,n.jsx)("button",{onClick:p,className:"absolute top-[7%] right-[6%] z-10 w-[15px] h-[15px] flex items-center justify-center bg-transparent border-none cursor-pointer hover:shadow-lg","aria-label":"Close",children:(0,n.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",children:(0,n.jsx)("path",{d:"M1 1L13 13M1 13L13 1",stroke:"#B8B3EB",strokeWidth:"2",strokeLinecap:"round"})})}),(0,n.jsxs)("div",{className:"rounded-[30px] max-[991px]:rounded-[20px] p-4 md:p-[60px]",style:{backgroundColor:A},children:[E&&(0,n.jsx)("span",{className:"inline-block bg-[#00D582] text-white py-[7px] px-4 rounded-[50px] font-extrabold text-[0.87rem] mb-4",children:E}),(0,n.jsx)(d.A,{title:v("".concat(C,".id")),hideCircle:!0,titleColor:N,children:(0,n.jsxs)(c.A,{title:v("".concat(C,".title")),appTheme:h,children:[(0,n.jsxs)("div",{className:"flex-[0.7] w-[90%]",children:[(0,n.jsxs)("p",{className:"font-semibold text-[1.25rem] leading-6",style:{color:N},children:[w,(0,n.jsx)("span",{className:"font-semibold text-[1.25rem] ml-1",style:{color:N},children:v("".concat(C,".bill.per"))})]}),(0,n.jsx)("p",{className:"text-base leading-[19.5px] py-3 font-semibold w-[70%] max-[575px]:w-full",style:{color:N},children:v("".concat(C,".subtitle"))}),(0,n.jsx)("p",{className:"text-base leading-5 font-medium",style:{color:N},children:v("".concat(C,".bill.date"))})]}),(0,n.jsx)("div",{className:"flex-[0.5]",children:(0,n.jsx)("button",{onClick:S,disabled:f,className:"font-bold text-[1.1rem] bg-transparent border-none hover:underline whitespace-nowrap pt-[30px] disabled:opacity-50 disabled:cursor-not-allowed",style:{color:"#be3355"},children:g(b?u.isAddon?f?"selecting":"select":u.canReactivate?f?"reactivating":"reactivate":u.canUpgrade?f?"upgrading":"upgrade":f?"downgrading":"downgrade":"get-it-now")})})]})})]})]})]})};var u=t(9205),x=t(61357),m=t(54067),b=t(75624);let h=e=>{let{subscription:l,onClose:t,onCanceled:s}=e,r=(0,o.c)("cancel-addon"),c=(0,o.c)("buttons"),d=(0,o.c)("errors"),[p,u]=(0,a.useState)(!1),[h,v]=(0,a.useState)(!1),[g,f]=(0,a.useState)(null),y=(0,o.c)("success"),C=async()=>{u(!0),f(null);try{await (0,i.M2)(l.subscriptionId,l.appId),(0,m.Sr)(b.Ts.PLAN_CANCELED,{plan:{action:"Canceled",code:l.plan.code}}),v(!0)}catch(e){(0,x.fL)("Cancel addon failed"),f(d("unknown"))}finally{u(!1)}},j=()=>{h?s():t()};return(0,n.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 px-4",onClick:j,children:(0,n.jsx)("div",{className:"cancel-addon-container",onClick:e=>e.stopPropagation(),children:h?(0,n.jsxs)("div",{className:"cancel-addon-content addon-coaching text-center",children:[(0,n.jsx)("p",{className:"text-[#130A7E] font-semibold text-lg",children:y("plan-canceled.personal-coaching")}),(0,n.jsx)("button",{onClick:j,className:"mt-6 w-full py-3 px-6 bg-transparent text-[#8E98ED] font-semibold border-2 border-[#
1E9EBFF] rounded-[50px] hover:border-[#130A7E] hover:text-[#130A7E] transition-colors",children:c("close")})]}):(0,n.jsxs)("div",{className:"cancel-addon-content addon-coaching",children:[(0,n.jsx)("h2",{className:"text-xl font-bold text-[#130A7E] mb-2",children:r("title")}),(0,n.jsx)("p",{className:"text-[#130A7E] mb-6",children:r("subtitle")}),g&&(0,n.jsx)("span",{className:"block mb-4 font-semibold text-sm leading-[18px]",style:{color:"#ff7777"},children:g}),(0,n.jsxs)("div",{className:"cancel-addon-btns-wrapper",children:[(0,n.jsx)("button",{onClick:C,disabled:p,className:"cancel-addon-btn w-full py-3 px-6 bg-white text-[#130A7E] font-semibold border-2 border-[#130A7E] rounded-[50px] hover:bg-[#130A7E] hover:text-white transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:c(p?"canceling":"continue-to-cancel")}),(0,n.jsx)("button",{onClick:j,className:"close-btn w-full py-3 px-6 bg-transparent text-[#8E98ED] font-semibold border-2 border-[#E9EBFF] rounded-[50px] hover:border-[#130A7E] hover:text-[#130A7E] transition-colors",children:c("close")})]})]})})})};var v=t(7311),g=t(85998),f=t(51567),y=t(29366),C=t(15557),j=t(40831),w=t(40955),N=t(74051);let A=e=>{var l,t,a,s;let{appSubscription:o,t:i,tButtons:r,appTheme:p}=e,u="Apple"===o.provider,x=o.expiresAt?(0,N.Yq)(o.expiresAt/1e3):"",m=o.price?(0,N.$g)(o.price,o.currency):"",b=i("app.title",{provider:i(u?"app.app-store":"app.google-play")});return(0,n.jsx)("div",{className:"pt-3",children:(0,n.jsx)(d.A,{title:"Premium Subscription",className:"prefix-circle",titleColor:null==p?void 0:p.primaryTextColor,children:(0,n.jsxs)(c.A,{title:b,headerBgColor:"#FEE8EE",headerTitleColor:"#B2002B",appTheme:p,children:[(0,n.jsxs)("div",{className:"flex-[0.7] w-[90%]",children:[(0,n.jsx)("h2",{className:"font-bold text-[1.25rem] leading-6",style:{color:null!=(l=null==p?void 0:p.primaryTextColor)?l:"#130A7E"},children:i("payment")}),o.autoRenewStatus?(0,n.jsx)("p",{className:"font-medium text-base leading-5 py-3",style:{color:null!=(t=null==p?void 0:p.primaryTextColor)?t:"#130A7E"},children:i.rich("app.active-subscription",{expires_at:x,next_bill:m,bold:e=>(0,n.jsx)("span",{className:"font-extrabold",children:e})})}):(0,n.jsxs)("p",{className:"font-medium text-base leading-5 py-3",style:{color:null!=(a=null==p?void 0:p.primaryTextColor)?a:"#130A7E"},children:[i("app.canceled-subscription")," ",(0,n.jsx)("span",{className:"font-extrabold",children:x})]})]}),(0,n.jsx)("div",{className:"flex-[0.5]",children:(0,n.jsxs)("div",{className:"flex items-center pt-2 gap-2",children:[(0,n.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("rect",{width:"18",height:"18",rx:"9",fill:"#A6AFFF"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3983 8.49738L13.9044 8.0334L9.8358 4.21114C9.53619 3.92967 9.05044 3.92967 8.75084 4.21114C8.45123 4.4926 8.45123 4.94895 8.75084 5.23041L12.0511 8.33089H4.7218C4.32316 8.33089 4 8.65405 4 9.05269C4 9.45133 4.32316 9.7745 4.7218 9.7745H12.0511L8.75084 12.8749C8.45123 13.1564 8.45123 13.6127 8.75084 13.8942C9.05044 14.1757 9.53619 14.1757 9.8358 13.8942L13.9044 10.0719L14.3983 9.60797C14.7186 9.30706 14.7186 8.79829 14.3983 8.49738Z",fill:"white"})]}),(0,n.jsx)("button",{onClick:()=>{window.open(u?"https://apps.apple.com/account/subscriptions":"https://play.google.com/store/account/subscriptions","_blank")},style:{color:null!=(s=null==p?void 0:p.primaryTextColor)?s:"#130A7E"},className:"border-none bg-transparent font-semibold text-base text-left hover:underline",children:r(u?"go-to-app-store":"go-to-google-play")})]})})]})})})},E=e=>{var l,t,E,S,T,k,I,B,P,D,L,F,R,_,U,M;let{selectedAppId:q,subscriptionData:O,isLoading:z,onRefresh:H}=e,W=(0,o.c)("current-plan"),Y=(0,o.c)("buttons"),$=(0,o.c)("constants"),V=(0,o.c)("bundle-plan"),Z=(0,o.c)("available-plans"),G=(0,o.c)("errors"),J=(0,f.Ym)(),K="true"===(0,r.getCookie)("show_pause_plan_button"),[Q,X]=(0,a.useState)(null),[ee,el]=(0,a.useState)(null),[et,en]=(0,a.useState)(null);(0,a.useEffect)(()=>{el(document.getElementById("membership-available-plans")),en(document.getElementById("membership-available-addons"))},[]);let[ea,es]=(0,a.useState)(!1),[eo,ei]=(0,a.useState)(null),[er,ec]=(0,a.useState)(!1),[ed,ep]=(0,a.useState)(null),[eu,ex]=(0,a.useState)("switched"),[em,eb]=(0,a.useState)(null),eh=e=>"free"===e||"expired"===e,ev=(null==O||null==(l=O.web)?void 0:l.regularSubscriptions)||[],eg=(null==O||null==(t=O.web)?void 0:t.addons)||[],ef=(null==O||null==(E=O.web)?void 0:E.bundleSubscriptions)||[],ey=(null==O||null==(S=O.web)?void 0:S.upsellSubscriptions)||[],eC=(null==(T=ev[0])?void 0:T.state)==="expired",ej=eh((null==(k=ev[0])?void 0:k.state)||"")||eC,ew=null==O||null==(I=O.appSubscription)?void 0:I.hasActiveSubscription,eN=localStorage.getItem("selectedAppId"),eA=eN?(0,i.fj)(eN):"Fabulous",eE=q||eN||"co.thefabulous.app",eS=(0,w.Ce)(eE),eT=null!=(D=g.q[eS])?D:g.q["co.thefabulous.app"],ek=ef.length>0&&(0,w.Ce)(ef[0].appId)===eS,eI=ek?ef:ef.filter(e=>e.bundleApps.some(e=>(0,w.Ce)(e)===eS)),eB=eI.some(e=>e.hasActiveSubscription),eP=eB?ev.filter(e=>!((0,w.Ce)(e.appId)===eS&&eh(e.state))):ev,eD=e=>{if("true"===new URLSearchParams(window.location.search).get("useDefaultSequence")&&e.isAddon)return void X(e);let l=e.purchaseUserId,t=(0,v.I)(e.appId);(0,v.q)(e,l,t)},eL=async e=>{try{await (0,i.ys)(e.subscriptionId,e.remainingPauseCycles||1,e.currentPeriodEndsAt,e.appId),(0,m.Sr)(b.Ts.PLAN_PAUSED,{plan:{action:"Paused",code:e.plan.code}}),H()}catch(e){(0,x.fL)("Pause plan from header failed")}},eF=()=>{es(!0),setTimeout(()=>{var e;
1null==(e=document.getElementById("availablePlansContainer"))||e.scrollIntoView({behavior:"smooth",block:"start"})},50)},eR=()=>{let e=eM.find(e=>e.canReactivate)||eM[0];e&&ep(e),ex("reactivated"),ec(!0)},e_=async e=>{eb(null);try{await (0,i.ye)(e.subscriptionId,e.appId),(0,m.Sr)(b.Ts.PLAN_RESTARTED,{plan:{action:"Restarted",code:e.plan.code}});let l=eM.find(e=>e.canReactivate)||eM[0];l&&ep(l),ex("reactivated"),ec(!0)}catch(e){(0,x.fL)("Restart subscription failed"),eb(G("unknown"))}},eU=async e=>{let l=ev[0];if(!l)return;let t=e.planCode||e.plan_code||"",n=l.hasActiveSubscription,a=l.plan.code;if(!n||eh(l.state)){let e=(0,w.my)("https://www.thefabulous.co",eT);window.open("".concat(e,"?plan=").concat(t),"_blank"),ei(null),es(!1);return}if(e.isAddon){let n=l.plan.pricing.currency;await (0,i.r1)(t,n,l.appId),(0,m.Sr)(b.Ts.PLAN_ADDON_CREATED,{plan:{action:"Add-on Created",code:a}}),ex("created"),ep(e),ei(null),es(!1),ec(!0);return}t===a&&e.canReactivate?(await (0,i.ye)(l.subscriptionId,l.appId),(0,m.Sr)(b.Ts.PLAN_REACTIVATED,{plan:{action:"Reactivated",code:a}}),ex("reactivated")):(await (0,i.ai)(l.subscriptionId,t,l.purchaseId,l.plan.pricing.currency,l.appId),(0,m.Sr)(b.Ts.PLAN_SWITCHED,{plan:{action:"Switched",code:a,switchedTo:t},...(0,C.P)({subscriptionId:l.subscriptionId,oldPlanCode:a,newPlanCode:t})}),ex("switched")),ep(e),ei(null),es(!1),ec(!0)},eM=(null==O?void 0:O.availablePlans)||[],eq=(null==O?void 0:O.availableAddons)||[],eO=e=>{let{subscriptions:l,title:t,groupByAppId:a=!1,showMarginTop:s=!0,forceIsFreePlan:o,showCancelButton:r=!1,showCancelInActions:c=!1,isMainSubscription:p=!0}=e;if(0===l.length)return null;let u=s?"mt-6 min-[575px]:mt-8 min-[800px]:mt-12":"",x=e=>e.map(e=>(0,n.jsx)(N.ko,{subscription:e,isFreePlan:null!=o?o:eh(e.state),isMainSubscription:p,appConfig:{name:p?e.appName||(0,i.fj)(e.appId):eA,planPrefix:(0,i.cl)(e.appId)},t:W,tButtons:Y,tBundlePlan:V,onRefresh:H,onReactivated:eR,locale:J,onChangePlan:eF,showChangePlanButton:(e=>!ew&&!e.isAddon&&eM.length>0&&!e.isBundle&&!(null==ey?void 0:ey.length))(e),onRestart:e_,restartError:em,appTheme:eT,showCancelButton:c&&!e.canceledAt&&!eh(e.state)&&"Lifetime"!==e.plan.stateDetails.type,onCancel:c?()=>eD(e):void 0,hidePauseAction:K&&r},e.subscriptionId)),m=e=>eh(e)?"#be3355":"#00D582",b=e=>r&&!e.canceledAt&&!eh(e.state)&&"Lifetime"!==e.plan.stateDetails.type;return a?(0,n.jsx)("div",{className:u,children:Object.values(l.reduce((e,l)=>(e[l.appId]||(e[l.appId]=[]),e[l.appId].push(l),e),{})).map((e,l)=>{let t=b(e[0])?(0,n.jsxs)("div",{className:"flex items-center gap-1.5",children:[K&&e[0].plan.stateDetails.isPauseable&&(0,n.jsx)(N.S$,{onClick:()=>eL(e[0])}),(0,n.jsx)(N.o7,{onClick:()=>eD(e[0]),label:Y("cancel-plan"),appTheme:eT})]}):void 0;return(0,n.jsx)(d.A,{className:"prefix-circle",style:{"--circle-bg-color":m(e[0].state)},title:"".concat((0,i.fj)((0,w.Ce)(e[0].appId)||"")," ").concat(eh(e[0].state)?$("free-sub"):$("subscription")),titleColor:eT.primaryTextColor,headerAction:t,children:x(e)},l)})}):(0,n.jsx)("div",{className:u,children:(0,n.jsx)(d.A,{className:"prefix-circle",style:{"--circle-bg-color":m(l[0].state)},title:t,titleColor:eT.primaryTextColor,headerAction:b(l[0])?(0,n.jsxs)("div",{className:"flex items-center gap-1.5",children:[K&&l[0].plan.stateDetails.isPauseable&&(0,n.jsx)(N.S$,{onClick:()=>eL(l[0])}),(0,n.jsx)(N.o7,{onClick:()=>eD(l[0]),label:Y("cancel-plan"),appTheme:eT})]}):void 0,children:x(l)})})};if(z)return(0,n.jsx)(j.A,{});if(!O)return(0,n.jsx)("div",{className:"text-center py-10",children:(0,n.jsx)("p",{className:"text-[#B2002B]",children:"Failed to load subscription data"})});let ez=eg.filter(e=>e.appId.startsWith(eE)),eH=ez.filter(e=>!e.plan.code.includes("aicoach")),eW=ez.filter(e=>e.plan.code.includes("aicoach"));return(0,n.jsxs)("div",{children:[(0,n.jsx)(y.A,{className:"text-sm leading-[17px] font-semibold uppercase mb-10 md:mb-8 sm:mb-6 ".concat(!eC||ey.length||eB?"bg-[#00D582] text-white":"bg-[#FEE8EE] text-[#B2002B]"),style:!eC||ey.length||eB?{backgroundColor:eT.activeTagBackgroun
1dColor,color:eT.activeTagTextColor}:void 0,children:(()=>{if(!ej||ey.length||eB)return W("title");if(eC){var e;let l=null==(e=ev[0])?void 0:e.expiresAt;return W("free-plan.expired-main-title",{expirationDate:l?(0,N.Yq)(l):""})}return W("free-plan.main-title")})()}),!(ej&&ew)&&eO({subscriptions:eP,groupByAppId:!0,showMarginTop:!1,showCancelButton:!0}),eO({subscriptions:ey,groupByAppId:!0,showCancelButton:!0}),eO({subscriptions:eI,title:eI.length>1?$("bundle-subs"):$("bundle-sub"),showCancelButton:!1,showCancelInActions:ek,isMainSubscription:ek}),eO({subscriptions:eH,title:$("personal-coaching"),showCancelButton:!0}),eO({subscriptions:eW,title:$("ai-coaching"),forceIsFreePlan:!1,showCancelButton:!0}),ew&&(null==O?void 0:O.appSubscription)&&(0,n.jsx)(A,{appSubscription:O.appSubscription,t:W,tButtons:Y,appTheme:eT}),ea&&eM.length>0&&ee&&(0,s.createPortal)((0,n.jsxs)("div",{id:"availablePlansContainer",className:"py-4 md:py-[60px] px-4 md:px-10",children:[(0,n.jsx)(y.A,{className:"text-sm leading-[17px] font-semibold uppercase mb-6",style:{backgroundColor:null!=(L=null==eT?void 0:eT.tagBackgroundColor)?L:"#FFEED4",color:null!=(F=null==eT?void 0:eT.tagTextColor)?F:"#130A7E"},children:Z("title")}),eM.map(e=>{var l,t,a,s,o,i,r,p;let u=e.type,x=(null==(a=ev[0])||null==(t=a.plan)||null==(l=t.pricing)?void 0:l.currency)||"USD",m="Free"===u,b=m?Z("".concat(u,".price")):new Intl.NumberFormat("en-US",{style:"currency",currency:x}).format(e.price);return(0,n.jsx)(d.A,{title:Z("".concat(u,".id")),className:"mt-4",hideCircle:!0,titleColor:null==eT?void 0:eT.primaryTextColor,children:(0,n.jsx)(c.A,{title:Z("".concat(u,".title")),appTheme:eT,children:(0,n.jsx)("div",{className:"flex-grow",children:(0,n.jsxs)("div",{className:"flex items-start justify-between",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("p",{className:"font-bold text-[1.25rem] leading-6",style:{color:null!=(s=null==eT?void 0:eT.primaryTextColor)?s:"#130A7E"},children:[b,!m&&(0,n.jsx)("span",{className:"font-semibold text-[1.25rem] ml-1",style:{color:null!=(o=null==eT?void 0:eT.primaryTextColor)?o:"#130a7e"},children:Z("".concat(u,".bill.per"))})]}),(0,n.jsx)("p",{className:"text-base leading-5 py-3 font-semibold",style:{color:null!=(i=null==eT?void 0:eT.primaryTextColor)?i:"#130A7E"},children:Z("".concat(u,".subtitle"))}),(0,n.jsx)("p",{className:"text-base leading-5 font-medium",style:{color:null!=(r=null==eT?void 0:eT.primaryTextColor)?r:"#130A7E"},children:Z("".concat(u,".bill.date"))})]}),m?(0,n.jsx)("button",{onClick:()=>ev[0]&&eD(ev[0]),className:"font-semibold text-sm bg-transparent border-none hover:underline whitespace-nowrap",style:{color:null!=(p=null==eT?void 0:eT.cancelTextColor)?p:"#8E98ED"},children:Y("cancel-premium")}):(0,n.jsx)("button",{onClick:()=>{ei(e)},className:"font-semibold text-sm md:text-[15px] lg:text-base bg-transparent border-none hover:underline whitespace-nowrap",style:{color:"#00D582"},children:e.canReactivate?Y("reactivate"):Y("select")})]})})})},u)}),(null==(B=ev[0])?void 0:B.hasActiveSubscription)&&(0,n.jsx)("p",{className:"text-base text-center font-semibold mt-4",style:{color:null!=(R=null==eT?void 0:eT.secondaryTextColor)?R:"#6C77DE"},children:Z("cancel-warning")})]}),ee),ea&&eq.length>0&&et&&(0,s.createPortal)((0,n.jsxs)("div",{className:"py-4 md:py-[60px] px-4 md:px-10 rounded-[30px]",style:{backgroundColor:null!=(_=null==eT?void 0:eT.contentBackgroundColor)?_:"white"},children:[(0,n.jsx)(y.A,{className:"text-sm leading-[17px] font-semibold uppercase mb-6",style:{backgroundColor:null!=(U=null==eT?void 0:eT.tagBackgroundColor)?U:"#FFEED4",color:null!=(M=null==eT?void 0:eT.tagTextColor)?M:"#130A7E"},children:Z("add-ons-title")}),eq.map(e=>{var l,t,a,s,o,i,r;let p=e.type,u=(null==(a=ev[0])||null==(t=a.plan)||null==(l=t.pricing)?void 0:l.currency)||"USD",x=new Intl.NumberFormat("en-US",{style:"currency",currency:u}).format(e.price);return(0,n.jsx)(d.A,{title:Z("".concat(p,".id")),className:"mt-4",hideCircle:!0,titleColor:null==eT?void 0:eT.primaryTextColor,children:(0,n.jsx)(c.A,{title:Z("".concat(p,".title")),appTheme:eT,children:(0,n.jsx)("div",{className:"flex-grow",children:(0,n.jsxs)("div",{className:"flex items-start justify-between",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("p",{className:"font-semibold text-[1.25rem] leading-6",style:{color:null!=(s=null==eT?void 0:eT.primaryTextColor)?s:"#130A7E"},children:[x,(0,n.jsx)("span",{className:"font-semibold text-[1.25rem] ml-1",style:{color:null!=(o=null==eT?void 0:eT.primaryTextColor)?o:"#130A7E"},children:Z("".concat(p,".bill.per"))})]}),(0,n.jsx)("p",{className:"text-base leading-5 py-3 font-semibold",style:{color:null!=(i=null==eT?void 0:eT.primaryTextColor)?i:"#130A7E"},children:Z("".concat(p,".subtitle"))}),(0,n.jsx)("p",{className:"text-base leading-5 font-medium",style:{color:null!=(r=null==eT?void 0:eT.primaryTextColor)?r:"#130A7E"},children:Z("".concat(p,".bill.date"))})]}),(0,n.jsx)("button",{onClick:()=>ei(e),className:"font-semibold text-sm md:text-[15px] lg:text-base bg-transparent border-none hover:underline whitespace-nowrap",style:{color:"#00D582"},children:e.canReactivate?Y("reactivate"):Y("select")})]})})})},p)})]}),et),Q&&(0,n.jsx)(h,{subscription:Q,onClose:()=>X(null),onCanceled:()=>{X(null),H()}}),ev[0]&&(0,n.jsx)(p,{isOpen:!!eo,onClose:()=>{ei(null)},plan:eo,currentSubscription:ev[0],onConfirm:eU,hasActiveSubscription:(null==(P=ev[0])?void 0:P.hasActiveSubscription)||!1,appTheme:eT}),ev[0]&&(0,n.jsx)(u.A,{isOpen:er,onClose:()=>{ec(!1),ep(null),H()},switchedPlan:ed,currentSubscription:ev[0],actionType:eu,appTheme:eT})]})}}}]);
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.