PageSourceSearch

https://trueprices.com/_next/static/chunks/17z~0n-2.rtfd.js?dpl=dpl_39CVxuqyoZsFrSeefEjL2BGMao8i

js trueprices.com collected 2026-10-09 17:36:48 UTC 34,114 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f6002feb-6523-5fa8-a8f7-af21bc4690a4")}catch(e){}}();
3(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,850451,e=>{"use strict";var t=e.i(843476),s=e.i(505868);let i=({className:e="",size:i=50})=>(0,t.jsxs)("div",{className:(0,s.default)(["relative",e]),style:{width:`${i}px`,height:`${i}px`},children:[(0,t.jsx)("svg",{width:i,height:i,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute inset-0",children:(0,t.jsx)("path",{d:"M50 25C50 38.8071 38.8071 50 25 50C11.1929 50 0 38.8071 0 25C0 11.1929 11.1929 0 25 0C38.8071 0 50 11.1929 50 25ZM3.66247 25C3.66247 36.7844 13.2156 46.3375 25 46.3375C36.7844 46.3375 46.3375 36.7844 46.3375 25C46.3375 13.2156 36.7844 3.66247 25 3.66247C13.2156 3.66247 3.66247 13.2156 3.66247 25Z",fill:"#E5EDEB"})}),(0,t.jsx)("div",{className:"absolute inset-0 text-theme-surface-invert theme-cc:text-theme-content-on-surface-accent motion-safe:animate-spin",children:(0,t.jsx)("svg",{width:i,height:i,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute inset-0",children:(0,t.jsx)("path",{d:"M50 25C50 21.4964 49.2636 18.0319 47.8385 14.8312C46.4134 11.6305 44.3314 8.76514 41.7277 6.42085C39.1239 4.07656 36.0565 2.30574 32.7243 1.22322C29.3921 0.140704 25.8696 -0.229329 22.3852 0.137118C18.9008 0.503565 15.5324 1.59831 12.4983 3.35035C9.46421 5.1024 6.83228 7.47261 4.77318 10.3073C2.71408 13.142 1.2738 16.3778 0.545735 19.8049C-0.182327 23.232 -0.181907 26.7739 0.546967 30.2009L4.12931 29.439C3.50721 26.5141 3.50685 23.491 4.12825 20.566C4.74966 17.6409 5.97894 14.8791 7.73638 12.4598C9.49383 10.0404 11.7402 8.01737 14.3298 6.522C16.9194 5.02663 19.7943 4.09226 22.7683 3.7795C25.7422 3.46674 28.7487 3.78256 31.5927 4.70649C34.4367 5.63042 37.0548 7.14182 39.2771 9.14267C41.4994 11.1435 43.2763 13.5891 44.4927 16.3209C45.709 19.0527 46.3375 22.0097 46.3375 25H50Z",fill:"currentColor"})})})]});e.s(["LoadingSpinner",0,i,"default",0,i])},618133,e=>{"use strict";var t=e.i(724166);let s=null,i=null,a=()=>{let e=window.location.pathname;return(0,t.extractLocaleFromPath)(e)||t.DEFAULT_LOCALE},r=()=>(0,t.getLanguageTag)(a()),n=(e,r)=>{let n=a(),l=(0,t.getCurrencyForLocale)(n),c=(0,t.getLanguageTag)(n),{locale:o,currency:u,...d}=r??{},m={style:"currency",minimumFractionDigits:2,roundingMode:"ceil",...d,currency:u??s??l??"USD"},h=o||i||c;return Intl.NumberFormat(h,m).format(e)},l=e=>void 0===e.delivery_price?null:e.delivery?.toLowerCase().includes("free")&&e.delivery_price>0?0:Number(e.delivery_price);e.s(["GROCERY_MONEY_FORMAT",0,{currency:"USD",locale:"en-US"},"calculateNetPrice",0,e=>Number((Number(e.price)+(l(e)??0)).toFixed(2)),"extractDomainFromMerchantName",0,e=>{if(!e||!/[/?#]/.test(e))return e;try{let t=e.startsWith("http")?e:`https://${e}`,s=new URL(t);return s.port?`${s.hostname}:${s.port}`:s.hostname}catch{let t=e.match(/^(?:https?:\/\/)?([^/?#]+)/);return t?t[1]:e}},"formatDate",0,(e,t)=>{if(!e)return"";let s=new Date(e),i=t?.locale||r(),a={...t?.day&&"none"!==t.day&&{day:t.day},...!t?.day&&{day:"2-digit"},...t?.month&&"none"!==t.month&&{month:t.month},...!t?.month&&{month:"2-digit"},...t?.year&&"none"!==t.year&&{year:t.year},...!t?.year&&{year:"numeric"},...t?.dateStyle&&{dateStyle:t.dateStyle},...t?.timeStyle&&{timeStyle:t.timeStyle}};return new Intl.DateTimeFormat(i,a).format(s).replaceAll("/",".")},"formatPriceTrimmed",0,(e,t)=>n(e,t).replace(/([.,])00\b/,""),"formatValue",0,n,"getCurrentLanguageTag",0,r,"getDeliveryPrice",0,l,"setCurrencyOverride",0,function(e,t){s=e,i=t??null}])},226200,e=>{"use strict";var t=e.i(283599),s=e.i(618566),i=e.i(752439);let a=async e=>{let t=await fetch(e);if(!t.ok)throw Error("Failed to fetch pricing");return t.json()};e.s(["useSubscriptionPricing",0,function(e="monthly"){let r=(0,s.useParams)(),n=r?.locale||"en-us",l=(0,i.getCountryFromLocale)(n),{data:c,isLoading:o}=(0,t.default)(`/api/subscription/pricing?country=${l}&interval=${e}`,a,{revalidateOnFocus:!1,revalidateIfStale:!1,dedupingInterval:36e5}
3),u=c?.success?c.data:null;return{price:u?u.amount/100:null,currency:u?.currency??null,interval:u?.interval??null,exchangeRate:u?.exchangeRate??null,isLoading:o}}])},103389,e=>{"use strict";var t=e.i(843476),s=e.i(657688),i=e.i(505868);e.s(["HomepageV3HeroGradient",0,({className:e=""})=>(0,t.jsx)(s.default,{className:(0,i.default)(["w-[150%] translate-x-[-20%] max-w-none",e]),src:"/images/homepage-v3/hero-gradient.png",alt:"","aria-hidden":"true",width:2090,height:1232,priority:!0})])},495694,e=>{"use strict";let t=/[\\\u0000-\u001f\u007f]/;function s(e,s){if(!e)return!0;if(t.test(e))return!1;if(e.startsWith("/")&&!e.startsWith("//"))return!0;try{let t=new URL(e),i=new URL(s);return t.hostname===i.hostname}catch{return!1}}e.s(["isValidReturnUrl",0,s,"toSameOriginPath",0,function(e,t){if(!e||!s(e,t))return null;try{let s=new URL(t),i=new URL(e,s);if(i.origin!==s.origin||i.pathname.startsWith("//"))return null;return i.pathname+i.search+i.hash}catch{return null}}])},945856,154064,e=>{"use strict";var t=e.i(843476),s=e.i(271645),i=e.i(618566),a=e.i(645141),r=e.i(477952),n=e.i(70854),l=e.i(850451),c=e.i(976468);e.i(874210);var o=e.i(224445),u=e.i(706404),d=e.i(895387),m=e.i(868516),h=e.i(505868),f=e.i(63848),b=e.i(356448),p=e.i(882998);function x(e){return(0,m.isPurchasesErrorCode)(e,f.PurchasesErrorCode.RECEIPT_ALREADY_IN_USE)||(0,m.isPurchasesErrorCode)(e,f.PurchasesErrorCode.RECEIPT_IN_USE_BY_OTHER_SUBSCRIBER)||(0,m.isPurchasesErrorCode)(e,f.PurchasesErrorCode.PRODUCT_ALREADY_PURCHASED)}function g(e){return e.length<=2?"…":e.length<=8?`${e.slice(0,1)}…${e.slice(-1)}`:`${e.slice(0,4)}…${e.slice(-4)}`}function y({packageId:e,chachingId:i,onSuccess:n,onError:l,priceLabel:c,className:o,buttonClassName:u,size:d="medium"}){let[v,w]=(0,s.useState)(!1),[j,N]=(0,s.useState)(!0),[C,S]=(0,s.useState)(!1),P=(0,s.useRef)(!1),k=(0,p.useSetLinkedElsewhere)(),E=(0,s.useCallback)(e=>{console.warn("[subscribe-button] linked-elsewhere detected",{reason:e,appUserId:g(i)}),k({isLinked:!0,reason:e,detectedAt:Date.now(),detectedForAppUserId:i})},[i,k]);(0,s.useEffect)(()=>{if(P.current)return;P.current=!0;let e=!1;return(async()=>{try{let t=await (0,b.runSilentRestoreProbe)();if(e)return;if(t.entitlements.length>0)return void n({productId:t.activeProductIds[0]??"",transactionId:"restored"})}catch(t){if(e)return;x(t)&&E("probe")}finally{e||N(!1)}})(),()=>{e=!0}},[n,E]);let L=(0,s.useCallback)(async()=>{console.warn("[subscribe-button] subscribe tap",{packageId:e,appUserId:g(i)}),w(!0);try{await m.rcClient.identify(i);let t=await m.rcClient.purchase(e);n({productId:t.productId,transactionId:t.transactionId})}catch(e){(0,m.isPurchasesErrorCode)(e,f.PurchasesErrorCode.USER_CANCELLED)||(x(e)?E("purchase"):l?.(e))}finally{w(!1)}},[e,i,n,l,E]),I=(0,s.useCallback)(async()=>{console.warn("[subscribe-button] restore tap",{appUserId:g(i)}),w(!0);try{let e=await m.rcClient.restorePurchases();e.entitlements.length>0?n({productId:e.activeProductIds[0]??"",transactionId:"restored"}):(S(!0),l?.(Error("NO_ENTITLEMENTS_TO_RESTORE")))}catch(e){x(e)?E("restore"):l?.(e)}finally{w(!1)}},[i,n,l,E]);(0,s.useEffect)(()=>{if(!C)return;let e=setTimeout(()=>S(!1),1e4);return()=>clearTimeout(e)},[C]);let T=a.default.t("subscribe.button.subscribe","Subscribe"),U=c?`${T} — ${c}`:T,_=v||j;return(0,t.jsxs)("div",{className:(0,h.default)(["flex flex-col items-center gap-2",o]),children:[(0,t.jsx)(r.default,{type:"button",variant:"primary",size:d,className:u,onClick:L,disabled:_,children:j?a.default.t("subscribe.button.checking","Checking..."):v?a.default.t("subscribe.button.processing","Processing..."):U}),(0,t.jsx)(r.default,{type:"button",variant:"tertiary",size:d,onClick:I,disabled:_||C,children:C?a.default.t("subscribe.restore.noPurchasesFound","No previous purchases found to restore."):a.default.t("subscribe.button.restore","Restore purchases")})]})}let v={ios:"trueprices",macos:"trueprices",android:"trueprices"};e.s(["SubscribeButton",0,function({packageId:e,chachingId:f,iapEnabled:b,onSuccess:p,onError:x,priceLabel:g,className:w,buttonClassName:j,size:N="medium",label:C,icon:S}){let{isInNativeApp:P,platform:k,openInBrowser:E}=(0,c.useIsInNativeApp)(),L=b&&P&&("ios"===k||"android"===k),[I,T]=(0,s.use
3State)(!1),{isAuthenticated:U,isLoading:_,login:K}=(0,o.useAuth)(),A=(0,i.useRouter)(),R=(0,u.useNavigate)(),$=(0,i.useParams)(),O=$?.locale||"en-us",F=R.getSubscribeLink(),B=(0,s.useCallback)(()=>{K({postSignup:"subscribe",callbackUrl:F})},[K,F]),V=(0,m.isValidAppUserId)(f);(0,s.useEffect)(()=>{if(L){if(_)return void console.warn("[subscribe-button] native: waiting for auth to load");if(!U)return void console.warn("[subscribe-button] native: anonymous user — showing sign-in CTA");V||console.warn("[subscribe-button] native: authenticated but chachingId is missing — waiting for claim")}},[L,_,U,V]);let D=(0,s.useCallback)(async()=>{if(!U)return void A.push(R.getLoginLink(F));T(!0);try{let e=await fetch("/api/auth/magic-link",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({locale:O})}),t=await e.json();if(!e.ok||!t.success){d.toast.error(a.default.t("subscribe.inApp.continueOnWebError","Unable to open website. Please try again.")),T(!1);return}let s=k?`${v[k]??"trueprices"}://subscription-complete`:null,i=`${window.location.origin}/${O}/auth/magic-link?token=${t.token}${s?`&returnToApp=${encodeURIComponent(s)}`:""}`;E(i),p?.({source:"web"}),setTimeout(()=>T(!1),2e3)}catch{d.toast.error(a.default.t("subscribe.inApp.continueOnWebError","Unable to open website. Please try again.")),T(!1)}},[O,E,U,A,R,F,k,p]);return L?_||U&&!(0,m.isValidAppUserId)(f)?(0,t.jsxs)("div",{role:"status","aria-live":"polite","data-testid":"subscribe-native-loading",className:(0,h.default)(["flex flex-col items-center gap-2 py-2",w]),children:[(0,t.jsx)(l.LoadingSpinner,{size:24}),(0,t.jsx)("p",{className:"theme-paragraph-m text-theme-content-secondary",children:a.default.t("subscribe.button.preparing","Preparing your subscription…")})]}):U?(0,t.jsx)(y,{packageId:e,chachingId:f,onSuccess:p,onError:x,priceLabel:g,className:w,buttonClassName:j,size:N}):(0,t.jsx)("div",{className:(0,h.default)(["flex flex-col items-center",w]),children:(0,t.jsx)(r.default,{type:"button",variant:"primary",size:N,className:j,onClick:B,"data-testid":"subscribe-native-sign-in",children:a.default.t("subscribe.button.signIn","Sign in to subscribe")})}):(0,t.jsx)("div",{className:(0,h.default)(["flex flex-col items-center",w]),children:(0,t.jsx)(r.default,{type:"button",variant:S?"secondary":"primary",size:N,className:j,onClick:D,disabled:I,children:(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[I?a.default.t("subscribe.button.processing","Processing..."):C??a.default.t("subscribe.inApp.continueOnWeb","Continue on web"),S&&!I&&(0,t.jsx)(n.default,{icon:S,size:16})]})})})}],945856),e.s(["useSignOutToLogin",0,function(){let{logout:e}=(0,o.useAuth)();return(0,s.useCallback)(async()=>{console.warn("[subscribe-button] sign-out from linked-elsewhere block"),await e()},[e])}],154064)},727564,e=>{"use strict";var t=e.i(843476),s=e.i(271645),i=e.i(645141);e.i(320764);var a=e.i(345771),r=e.i(70854),n=e.i(198305),l=e.i(747283),c=e.i(522016),o=e.i(618566);e.i(874210);var u=e.i(224445),d=e.i(706404),m=e.i(929822),h=e.i(151627),f=e.i(226200),b=e.i(197744),p=e.i(618133),x=e.i(465998),g=e.i(505868);let y=[{icon:"local-mall",nameKey:"floatingHeader.savings.ecommerce.title",verticalId:"ecommerce",savingsLabelKey:"subscribe.pricing.savePercentPerUnit",savingsLabelValues:{percent:60,unit:"order"}},{icon:"local-gas-station",nameKey:"floatingHeader.savings.gas.title",verticalId:"gas",savingsLabelKey:"subscribe.pricing.savePercentPerUnit",savingsLabelValues:{percent:20},savingsUnitKey:"subscribe.features.units.gal"},{icon:"receipt",nameKey:"floatingHeader.savings.utilityBills.title",verticalId:"utilityBills",savingsBaseUsd:3e4,savingsUnitKey:"subscribe.features.units.year"},{icon:"admin-meds",nameKey:"floatingHeader.savings.medicine.title",verticalId:"medicines",savingsLabelKey:"subscribe.pricing.savePercentPerUnit",savingsLabelValues:{percent:90,unit:"medicine"}},{icon:"ecg-heart",nameKey:"floatingHeader.savings.medical.title",verticalId:"medicalServices",savingsLabelKey:"subscribe.pricing.savePercentPerUnit",savingsLabelValues:{percent:70,unit:"service"}},{icon:"concierge",nameKey:"floatingHeader.savings.hotels.title",verticalId:"hotels",savingsLabelKey:"subscribe.pricing.savePercentPerUnit",savingsLabelValues:{percent:30},savingsUnitKey:"subscribe.features.units.booking"}
3,{icon:"airport-shuttle",nameKey:"floatingHeader.savings.rideShare.title",verticalId:"rideshare",savingsLabelKey:"subscribe.pricing.savePercentPerUnit",savingsLabelValues:{percent:20,unit:"trip"}},{icon:"nutrition",nameKey:"floatingHeader.savings.grocery.title",verticalId:"groceries",savingsLabelKey:"subscribe.pricing.savePercentPerUnit",savingsLabelValues:{percent:20},savingsUnitKey:"subscribe.features.units.basket"},{icon:"flight",nameKey:"floatingHeader.savings.flights.title",verticalId:"flights"},{icon:"account-balance",nameKey:"floatingHeader.savings.insurance.title",verticalId:"insurance"}],v=y.map(e=>e.verticalId);function w({value:e,onChange:i,className:r}){let n=(0,s.useRef)(null),l=(0,s.useRef)(null),[c,o]=(0,s.useState)({width:0,left:0});(0,s.useEffect)(()=>{let t=("monthly"===e?n:l).current;t&&o({width:t.offsetWidth,left:t.offsetLeft})},[e]);let u=e=>(0,g.default)(["relative z-10 flex h-full items-center justify-center rounded-full px-3 py-1.5 text-sm transition-colors duration-200",e?"font-medium text-theme-content-primary":"text-theme-content-secondary"]);return(0,t.jsxs)("div",{className:(0,g.default)(["relative flex h-10 shrink-0 items-center rounded-full bg-theme-surface-secondary p-1",r]),children:[c.width>0&&(0,t.jsx)("div",{className:"absolute top-1 h-[calc(100%-8px)] rounded-full bg-theme-surface-primary shadow-xs transition-all duration-200 ease-in-out",style:{width:c.width,left:c.left}}),(0,t.jsx)("button",{ref:n,type:"button",onClick:()=>i("monthly"),className:u("monthly"===e),children:(0,t.jsx)(a.Trans,{i18nKey:"subscribe.button.monthly",children:"Monthly"})}),(0,t.jsx)("button",{ref:l,type:"button",onClick:()=>i("yearly"),className:u("yearly"===e),children:(0,t.jsx)(a.Trans,{i18nKey:"subscribe.button.yearly",children:"Yearly"})})]})}var j=e.i(477952);function N({isSubmitting:e,hasPricing:s,formattedPriceWithInterval:i,onSubscribe:r,className:n,buttonClassName:c}){return(0,t.jsxs)("div",{className:(0,g.default)(["flex flex-col items-center gap-theme-fixed-1",n]),children:[(0,t.jsx)(j.default,{type:"button",variant:"primary",size:"medium",className:c,onClick:r,disabled:e,children:e?(0,t.jsx)(a.Trans,{i18nKey:"subscribe.button.processing",children:"Processing..."}):(0,t.jsx)(a.Trans,{i18nKey:"subscribe.button.startTrial",children:"Start my 30 day free trial"})}),(0,t.jsxs)("div",{className:"flex items-center gap-1 text-center",children:[s?(0,t.jsx)("span",{className:"text-sm font-medium text-theme-content-accent",children:i}):(0,t.jsx)(l.default,{className:"h-4 w-16"}),(0,t.jsx)("span",{className:"text-theme-content-secondary",children:"•"}),(0,t.jsx)("span",{className:"text-sm text-theme-content-secondary",children:(0,t.jsx)(a.Trans,{i18nKey:"subscribe.pricing.cancelAnytime",children:"Cancel anytime"})})]})]})}function C({feature:e,isComingSoon:s,hasPricing:c,exchangeRate:o,currency:u}){var d;return(0,t.jsx)("div",{className:"flex gap-theme-fixed-1",children:(0,t.jsxs)("div",{className:(0,g.default)(["flex flex-1 gap-theme-fixed-1",s?"flex-row justify-between":"flex-col theme-tablet:flex-row theme-tablet:justify-between"]),children:[(0,t.jsxs)("div",{className:"flex items-center gap-theme-fixed-1",children:[(0,t.jsx)(r.default,{icon:e.icon,size:20,className:(0,g.default)(["shrink-0 text-theme-content-action",{"text-theme-content-secondary":s}]),filled:!0}),(0,t.jsx)("span",{className:(0,g.default)(["!font-bold text-theme-content-action theme-label-l",{"text-theme-content-secondary":s}]),children:i.default.t(e.nameKey)})]}),(0,t.jsx)("div",{className:"flex items-center gap-theme-fixed-1 theme-tablet:justify-between",children:s?(0,t.jsx)(n.default,{variant:"pill",className:"px-3 theme-tablet:px-3",children:(0,t.jsx)(a.Trans,{i18nKey:"subscribe.features.comingSoon",children:"Coming soon"})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"text-theme-content-secondary theme-label-l",children:[(0,t.jsx)(a.Trans,{i18nKey:"subscribe.features.averageSavings",children:"Average savings of"})," "]}),e.savingsLabelKey?(0,t.jsx)("span",{className:"text-theme-content-positive rounded-full border border-theme-border-low-contrast bg-theme-surface-positive p-theme-fixed-1 text-sm font-medium theme-tablet:px-theme-fixed-1.5",children:i.default.t(e.s
3avingsLabelKey,{...e.savingsLabelValues,...e.savingsUnitKey?{unit:i.default.t(e.savingsUnitKey)}:{}})}):c&&void 0!==e.savingsBaseUsd&&null!==o?(0,t.jsxs)("span",{className:"text-theme-content-positive rounded-full border border-theme-border-low-contrast bg-theme-surface-positive p-theme-fixed-1 text-sm font-medium theme-tablet:px-theme-fixed-1.5",children:[(d=e.savingsBaseUsd,(0,p.formatPriceTrimmed)(d*o/100,{currency:u})),"/",e.savingsUnitKey?i.default.t(e.savingsUnitKey):""]}):(0,t.jsx)(l.default,{className:"h-6 w-20 rounded-full"})]})})]})})}let S={error:"border-red-200 bg-red-50 text-red-700",warning:"border-yellow-200 bg-yellow-50 text-yellow-800"};function P({variant:e,children:s}){return(0,t.jsx)("div",{role:"alert",className:(0,g.default)(["w-full max-w-[650px] rounded-theme-corner-m border p-theme-fluid-s text-sm",S[e]]),children:s})}function k(){return(0,t.jsxs)("div",{className:"relative flex min-h-screen flex-col",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-theme-surface-primary","aria-hidden":"true"}),(0,t.jsx)("main",{className:"relative z-10 flex flex-1 flex-col items-center px-theme-grid-margin pb-[120px] pt-theme-fixed-2 theme-tablet:pb-theme-fixed-7",children:(0,t.jsxs)("div",{className:"flex w-full max-w-[1160px] flex-col items-center gap-theme-fluid-l theme-tablet:min-w-[904px]",children:[(0,t.jsx)("div",{className:"flex w-full flex-col items-center gap-theme-fluid-3xs",children:(0,t.jsxs)("div",{className:"flex w-full flex-col items-center gap-theme-fixed-1",children:[(0,t.jsx)(l.default,{className:"h-5 w-[60px] rounded-full"}),(0,t.jsx)(l.default,{className:"h-8 w-[280px] theme-tablet:h-10 theme-tablet:w-[400px]"}),(0,t.jsx)(l.default,{className:"h-5 w-[200px] theme-tablet:w-[260px]"})]})}),(0,t.jsxs)("div",{className:"hidden flex-col items-center gap-theme-fixed-1 theme-tablet:flex",children:[(0,t.jsx)(l.default,{className:"h-10 w-[172px] rounded-theme-corner-m"}),(0,t.jsx)(l.default,{className:"h-4 w-[140px]"})]}),(0,t.jsxs)("div",{className:"w-full max-w-[650px] overflow-hidden rounded-theme-corner-l border border-theme-border-low-contrast bg-theme-surface-primary p-theme-fluid-s",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-theme-fixed-0",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,t.jsx)(l.default,{className:"h-8 w-theme-fixed-5"}),(0,t.jsx)(l.default,{className:"h-6 w-[100px]"})]}),(0,t.jsx)(l.default,{className:"mt-1 h-4 w-[120px]"})]}),(0,t.jsx)("div",{className:"my-theme-fluid-s h-px w-full bg-theme-border-low-contrast"}),(0,t.jsx)(l.default,{className:"mb-theme-fluid-s h-4 w-[180px]"}),(0,t.jsx)("div",{className:"flex flex-col gap-theme-fixed-4 theme-tablet:gap-theme-fluid-l",children:Array.from({length:10}).map((e,s)=>(0,t.jsxs)("div",{className:"flex items-center justify-between gap-theme-fixed-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-theme-fixed-1",children:[(0,t.jsx)(l.default,{className:"size-5 shrink-0 rounded"}),(0,t.jsx)(l.default,{className:"h-4 w-theme-fixed-10 theme-tablet:w-[120px]"})]}),(0,t.jsx)(l.default,{className:"h-6 w-theme-fixed-10 rounded-full theme-tablet:w-[100px]"})]},s))})]})]})}),(0,t.jsx)("div",{className:"fixed inset-x-0 bottom-0 z-20 border-t border-theme-border-low-contrast bg-theme-surface-primary px-theme-grid-margin pb-theme-fixed-4 pt-theme-fixed-2 theme-tablet:hidden",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-theme-fixed-1",children:[(0,t.jsx)(l.default,{className:"h-10 w-full rounded-theme-corner-m"}),(0,t.jsx)(l.default,{className:"h-4 w-[140px]"})]})})]})}var E=e.i(945856),L=e.i(154064);function I({platform:e,className:s,buttonClassName:a}){let r=(0,L.useSignOutToLogin)();return(0,t.jsxs)("div",{"data-testid":"linked-elsewhere-block",className:(0,g.default)(["flex flex-col items-stretch gap-3 rounded-lg border border-theme-neutral-200 p-4",s]),children:[(0,t.jsx)("h3",{className:"text-lg font-semibold",children:i.default.t("subscribe.linkedElsewhere.blockTitle","This device's subscription belongs to a different account")}),(0,t.jsx)("p",{className:"text-sm text-theme-content-ink",children:i.default.t("android"===e?"subscribe.linkedElsewhere.blockBodyAndroid":"subscribe.linkedElsewhere.blockBody","android"===e?"The Google account signed in on this device is already subscribed to {{brandName}} under a different account. To use that subscription here, sign out and sign back in with the {{brandName}} account that owns it.":"The Apple ID signed in on this device is already subscribed to {{brandName}} under a different account. To use that subscription here, sign out and sign back in with the {{brandName}} account that owns it.")}),(0,t.jsx)(j.default,{type:"button",variant:"primary",size:"medium",className:a,onClick:()=>{r().catch(e=>{console.warn("[subscribe-button] sign-out rejected",{error:e instanceof Error?e.message:String(e)})})},children:i.default.t("subscribe.linkedElsewhere.signOut","Sign out")})]})}var T=e.i(103389),U=e.i(895387),_=e.i(831082),K=e.i(43647),A=e.i(976468),R=e.i(233270),$=e.i(868516),O=e.i(495694),F=e.i(882998);let B="$rc_monthly",V="$rc_annual";function D(){let e=(0,m.useFeatureToggle)(),i=(0,o.useParams)(),a=(0,o.useRouter)(),r=i.locale||"en-us",n=!e(h.FeatureFlag.subscriptionGating);return((0,s.useEffect)(()=>{n&&a.replace(`/${r}`)},[n,a,r]),n)?null:(0,t.jsx)(z,{})}function z(){let e,m,h,j,S,L,D,{isLoading:z,isAuthenticated:H,user:M}
3=(0,u.useAuth)(),{isSubscriber:W,isLoading:Y}=(0,R.useSubscription)(),G=M?.chachingId??M?.id??"",Z="true"===_.default.NEXT_PUBLIC_REVENUECAT_IAP_ENABLED,{price:J,currency:X,exchangeRate:q,isLoading:Q}=(0,f.useSubscriptionPricing)("monthly"),{price:ee,isLoading:et}=(0,f.useSubscriptionPricing)("yearly"),es=(0,x.useVerticalsAvailability)(v),ei=(0,o.useSearchParams)(),ea=(0,o.useParams)(),er=(0,o.useRouter)(),[en,el]=(0,s.useState)(!1),[ec,eo]=(0,s.useState)(null),{trackMixpanel:eu}=(0,K.useAppAnalytics)(),{isInNativeApp:ed,platform:em}=(0,A.useIsInNativeApp)(),eh=(0,d.useNavigate)(),ef=(0,F.useLinkedElsewhereState)(),eb=!!ef?.isLinked&&ef.detectedForAppUserId===G,ep="android"===em?"android":"ios",ex=ea.locale||"en-us",eg="true"===ei.get("canceled"),ey=ei.get("callbackUrl"),ev="true"===ei.get("autoCheckout"),ew=ei.get("priceType"),ej=ei.get("subsidyCode"),[eN,eC]=(0,s.useState)(ew||"monthly"),eS=(e=`/${ex}`,ey?!(0,O.isValidReturnUrl)(ey,window.location.origin)||ey.includes("/auth/subscribe")?e:ey:e);(0,s.useEffect)(()=>{!z&&H&&!Y&&W&&er.replace(eS)},[z,H,Y,W,eS,er]);let eP=Z&&ed&&("ios"===em||"android"===em),{offering:ek,loading:eE,error:eL}=function(e){let[t,i]=(0,s.useState)(null),[a,r]=(0,s.useState)(!1),[n,l]=(0,s.useState)(null);return(0,s.useEffect)(()=>{if(!e){i(null),l(null),r(!1);return}let t=!1;return r(!0),l(null),$.rcClient.getOfferings().then(e=>{t||i(e.current)}).catch(e=>{t||l(e)}).finally(()=>{t||r(!1)}),()=>{t=!0}},[e]),{offering:t,loading:a,error:n}}(eP),eI=ek?{monthly:ek.packages.find(e=>e.identifier===B)??ek.packages.find(e=>"P1M"===e.period)??null,yearly:ek.packages.find(e=>e.identifier===V)??ek.packages.find(e=>"P1Y"===e.period)??null}:{monthly:null,yearly:null},eT=eI.monthly?eI.monthly.priceMicros/1e6:J,eU=eI.yearly?eI.yearly.priceMicros/1e6:ee,e_=eI.monthly?.currencyCode??eI.yearly?.currencyCode??X,eK=eP&&eE&&!ek&&!eL,eA=(m=!(Q||et||eK)&&null!==eT&&null!==e_,h="yearly"===eN?eU:eT,j="yearly"===eN?i.default.t("subscribe.pricing.yearUnit","year"):i.default.t("subscribe.pricing.monthUnit","month"),S="yearly"===eN?i.default.t("subscribe.pricing.yearAbbrev","yr"):i.default.t("subscribe.pricing.monthAbbrev","mo"),D=(L=m&&null!==h?(0,p.formatValue)(h,{currency:e_}):null)?`${L}/${S}`:null,{hasPricing:m,displayPrice:h,displayInterval:j,formattedPrice:L,formattedPriceWithInterval:D,savingsPercent:eT&&eU&&eU>0?Math.round((1-eU/12/eT)*100):null,currency:e_}),eR="yearly"===eN?eI.yearly?.identifier??V:eI.monthly?.identifier??B,e$="yearly"===eN?eI.yearly?.priceString:eI.monthly?.priceString,eO=y.filter(e=>!es[e.verticalId]?.isHidden),eF=(0,s.useRef)(!1),eB=(0,s.useCallback)(async(e="monthly")=>{if(!H){let t=new URLSearchParams({callbackUrl:ey||"/",postSignup:"checkout",priceType:e});ej&&t.set("subsidyCode",ej);let s=(0,b.getSsoLoginUrl)(),i=s?(0,b.buildSsoLoginUrl)(s,t.get("callbackUrl")??void 0):`/${ex}${(0,b.getLoginPath)()}?${t.toString()}`;er.push(i);return}el(!0),eo(null);try{let t=await fetch("/api/subscription/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({locale:ex,callbackUrl:ey||"/",priceType:e,...ej&&{subsidyCode:ej}})}),s=await t.json();if(!t.ok||!s.success){eu("Subscription_Checkout_Initiated",{price_type:e,auto_checkout:ev,success:!1,error_code:s.error?.code,error_message:s.error?.message}),eo(s.error?.message||i.default.t("subscribe.error.checkoutFailed","Failed to start checkout")),el(!1);return}s.success&&eu("Subscription_Checkout_Initiated",{price_type:e,auto_checkout:ev,success:!0}),window.location.href=s.checkoutUrl}catch(t){console.error("Checkout error:",t),eu("Subscription_Checkout_Initiated",{price_type:e,auto_checkout:ev,success:!1,error_message:t instanceof Error?t.message:"Unknown error"}),eo(i.default.t("subscribe.error.unexpected","An unexpected error occurred")),el(!1)}},[H,ey,ex,er,ev,ej,eu]);(0,s.useEffect)(()=>{!ev||!H||z||Y||W||en||eF.current||ed||(eF.current=!0,eB(ew||"monthly"))},[ev,H,z,Y,W,en,eB,ew,ed]);let eV=(0,s.useCallback)(()=>eB(eN),[eB,eN]),eD=(0,s.useCallback)(async e=>{if(!("source"in e)||"web"!==e.source){try{await fetch(`/api/subscription/status?_t=${Date.now()}`)}catch{}er.push(`/${ex}/auth/confirmation?source=iap`)}},[er,ex]),ez=(0,s.useCallback)(e=>{"NO_ENTITLEMENTS_TO_RESTORE"===e.message?U.toast.info(i.default.t("subscribe.restore.noPurchasesFound","No previous purchases found to restore.")):U.toast.error(i.default.t("subscribe.restore.failed","Couldn't restore purchases. Please try again."))},[]),eH=z||Y||W;return(0,t.jsxs)("div",{className:"relative flex min-h-screen flex-col",children:[(0,t.jsx)("div",{className:(0,g.default)(["absolute inset-0 z-30 transition-opacity duration-500",eH?"opacity-100":"pointer-events-none opacity-0"]),"aria-hidden":!eH,children:(0,t.jsx)(k,{})}),(0,t.jsxs)("div",{className:(0,g.default)(["relative flex flex-1 flex-col transition-opacity duration-500",eH?"opacity-0":"opacity-100"]),children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-[90vh] overflow-hidden","aria-hidden":"true",children:(0,t.jsx)(T.HomepageV3HeroGradient,{className:"size-full"})}),(0,t.jsx)("main",{className:"relative z-10 flex flex-1 flex-col items-center px-theme-grid-margin pb-[120px] pt-theme-fixed-2 theme-tablet:pb-theme-fixed-7",children:(0,t.jsxs)("div",{className:"flex w-full max-w-[1160px] flex-col items-center gap-theme-fluid-l theme-tablet:min-w-[904px]",children:[(0,t.jsx)("div",{className:"flex w-full flex-col items-center gap-theme-fluid-3xs",children:(0,t.jsxs)("div",{className:"flex w-full flex-col items-center gap-theme-fixed-1",children:[!ed&&(0,t.jsx)("div",{className:"flex h-5 items-center justify-center overflow-hidden rounded-full px-3",style:{backgroundImage:"linear-gradient(-12.5deg, rgb(139, 214, 247) 36.94%, rgb(249, 242, 127) 67.1%)"},children:(0,t.jsx)(r.default,{icon:"trueplus",className:"text-theme-content-action",size:35})}),(0,t.jsx)("h1",{className:"text-center text-theme-content-action theme-title-t2 !font-bold",children:(0,t.jsx)(a.Trans,{i18nKey:"subscribe.hero.title",children:"Supercharge your wallet with trueprices™"})}),(0,t.jsx)("p",{className:"text-center text-theme-content-secondary theme-paragraph-m",children:(0,t.jsx)(a.Trans,{i18nKey:"subscribe.hero.subtitle",children:"Your superpowers to financial freedom"})})]})}),!ed&&eg&&(0,t.jsx)(P,{variant:"warning",children:(0,t.jsx)(a.Trans,{i18nKey:"subscribe.canceled",children:"We noticed you didn't get your subscription. Click below to resume your setup."})}),!ed&&ec&&(0,t.jsx)(P,{variant:"error",children:ec}),ed?eb?(0,t.jsx)(I,{platform:ep,className:"hidden theme-tablet:flex"}):(0,t.jsx)(E.SubscribeButton,{packageId:eR,chachingId:G,iapEnabled:Z,priceLabel:e$,onSuccess:eD,onError:ez,className:"hidden theme-tablet:flex",buttonClassName:"min-w-[172px]"}):(0,t.jsx)(N,{isSubmitting:en,hasPricing:eA.hasPricing,formattedPriceWithInterval:eA.formattedPriceWithInterval,onSubscribe:eV,className:"hidden theme-tablet:flex",buttonClassName:"min-w-[172px]"}),(0,t.jsxs)("div",{className:"w-full max-w-[650px] overflow-hidden rounded-theme-corner-l border border-theme-border-low-contrast bg-theme-surface-primary p-theme-fluid-s",children:[ed&&!eb&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-theme-fixed-1",children:[(0,t.jsx)("h2",{className:"theme-title-t4 !font-bold text-theme-content-action",children:i.default.t("subscribe.iap.title")}),(0,t.jsx)("p",{className:"theme-paragraph-m !font-bold text-theme-content-primary",children:i.default.t("subscribe.iap.trialLine")}),e$?(0,t.jsx)("p",{className:"theme-paragraph-m text-theme-content-secondary",children:i.default.t("subscribe.iap.priceLine",{price:e$})}):(0,t.jsx)(l.default,{className:"h-6 w-32"}),(0,t.jsx)("p",{className:"mt-theme-fixed-2 text-xs text-theme-content-secondary",children:i.default.t("subscribe.iap.autoRenewDisclosure")}),(0,t.jsxs)("div",{className:"mt-theme-fixed-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-theme-content-secondary",children:[(0,t.jsx)(c.default,{href:eh.getPrivacyPageLink(),className:"underline hover:text-theme-content-action",children:i.default.t("subscribe.iap.legal.privacy")}),(0,t.jsx)("span",{"aria-hidden":"true",children:"·"}),(0,t.jsx)(c.default,{href:eh.getTermsPageLink(),className:"underline hover:text-theme-content-action",children:i.default.t("subscribe.iap.legal.terms")})]})]}),(0,t.jsx)("div",{className:"my-theme-fluid-s h-px w-full bg-theme-border-low-contrast"})]}),!ed&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-theme-fixed-0 text-theme-content-action",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-center gap-theme-fixed-2 theme-tablet:flex-nowrap theme-tablet:justify-start theme-tablet:gap-1",children:[(0,t.jsx)(w,{value:eN,onChange:eC,className:"order-first theme-tablet:order-last"}),eA.hasPricing?(0,t.jsxs)("div",{className:"flex w-full items-baseline gap-1 theme-tablet:w-auto theme-tablet:flex-1",children:[(0,t.jsx)("span",{className:"theme-title-t2 !font-bold",children:(0,p.formatValue)(0,{currency:eA.currency})}),(0,t.jsx)("span",{className:"flex-1 theme-title-t6 !font-bold",children:(0,t.jsx)(a.Trans,{i18nKey:"subscribe.pricing.trialPeriod",children:"for 30 days"})})]}):(0,t.jsxs)("div",{className:"flex w-full items-baseline gap-1 theme-tablet:w-auto theme-tablet:flex-1",children:[(0,t.jsx)(l.default,{className:"h-8 w-12"}),(0,t.jsx)(l.default,{className:"h-6 w-[100px]"})]})]}),eA.hasPricing?(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("p",{className:"text-sm text-theme-content-action",children:i.default.t("subscribe.pricing.thenPrice",{price:eA.formattedPrice,interval:eA.displayInterval})}),null!==eA.savingsPercent&&eA.savingsPercent>0&&(0,t.jsx)(n.default,{type:"accent",style:"all-caps",className:(0,g.default)(["transition-all duration-150","yearly"===eN?"translate-y-0 opacity-100":"pointer-events-none translate-y-1 opacity-0"]),children:i.default.t("subscribe.pricing.savePercent",{percent:eA.savingsPercent,defaultValue:"SAVE {{percent}}%"})})]}):(0,t.jsx)(l.default,{className:"mt-1 h-4 w-[120px]"})]}),(0,t.jsx)("div",{className:"my-theme-fluid-s h-px w-full bg-theme-border-low-contrast"})]}),(0,t.jsx)("p",{className:"mb-theme-fluid-s text-sm font-medium text-theme-content-secondary",children:(0,t.jsx)(a.Trans,{i18nKey:"subscribe.features.label",children:"With your subscription you get:"})}),(0,t.jsx)("div",{className:"flex flex-col gap-theme-fixed-4 theme-tablet:gap-theme-fluid-l",children:eO.map(e=>(0,t.jsx)(C,{feature:e,isComingSoon:es[e.verticalId]?.isComingSoon||es[e.verticalId]?.isForceComingSoon||void 0===e.savingsBaseUsd&&!e.savingsLabelKey,hasPricing:eA.hasPricing,exchangeRate:q,currency:eA.currency},e.verticalId))})]})]})}),(0,t.jsx)("div",{className:"fixed inset-x-0 bottom-0 z-20 border-t border-theme-border-low-contrast bg-theme-surface-primary px-theme-grid-margin pb-theme-fixed-4 pb-safe pt-theme-fixed-2 theme-tablet:hidden",children:ed?eb?(0,t.jsx)(I,{platform:ep,buttonClassName:"w-full"}):(0,t.jsx)(E.SubscribeButton,{packageId:eR,chachingId:G,iapEnabled:Z,priceLabel:e$,onSuccess:eD,onError:ez,buttonClassName:"w-full"}):(0,t.jsx)(N,{isSubmitting:en,hasPricing:eA.hasPricing,formattedPriceWithInterval:eA.formattedPriceWithInterval,onSubscribe:eV,buttonClassName:"w-full"})})]})]})}e.s(["default",0,function(){return(0,t.jsx)(s.Suspense,{children:(0,t.jsx)(D,{})})}],727564)}]);
4
5//# sourceMappingURL=0cnv-vjaqtgpz.js.map
6//# debugId=f6002feb-6523-5fa8-a8f7-af21bc4690a4

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.