PageSourceSearch

https://www.app.memoir.ag/_next/static/chunks/398wj5ty0nyj7.js?dpl=memoir_mtjcl2gw_d3dad067

js memoir.ag collected 2026-10-09 22:53:48 UTC 10,913 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,368,e=>{"use strict";var t=e.i(843476),r=e.i(522016),n=e.i(271645),a=e.i(581169),l="inline-flex items-center justify-center  bg-fg px-5 py-2 choice-button-text text-bg shadow-sm transition hover:bg-copy-secondary",s="inline-flex items-center justify-center  border border-stroke-default bg-bg px-5 py-2 form-label-strong transition hover:bg-canvas-muted";function c(e){return Number.isInteger(e)?e.toString():e.toFixed(2)}function o(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2*!Number.isInteger(e),maximumFractionDigits:2*!Number.isInteger(e)}).format(e)}function i(e){return new Intl.NumberFormat("en-US").format(e)}function u(e){var t;return null!=(t=null==e?void 0:e.trim().toLowerCase())?t:""}e.s(["LandingCheckoutPage",0,function(e){var d,p,m,h,y,f,b,x,{plans:v,creditPacks:g,initialPlanKey:j,initialCreditPackKey:N}=e,k=(0,n.useMemo)(()=>{var e,t,r=u(j);return null!=(e=null!=(t=v.find(e=>e.planKey===r))?t:v[0])?e:null},[j,v]),w=(0,n.useMemo)(()=>{var e,t,r=u(N);return null!=(e=null!=(t=g.find(e=>e.packKey===r))?t:g[0])?e:null},[g,N]),S=!!(N&&(null==w?void 0:w.packKey)===u(N)),C=!!(j&&(null==k?void 0:k.planKey)===u(j)),[K,T]=(0,n.use
1State)(null!=(d=null==k?void 0:k.planKey)?d:""),[_,P]=(0,n.useState)(null!=(p=null==w?void 0:w.packKey)?p:""),[E,M]=(0,n.useState)("year"),L=null!=(m=null!=(h=v.find(e=>e.planKey===K))?h:k)?m:null,B=null!=(y=null!=(f=g.find(e=>e.packKey===_))?f:w)?y:null,I=S?null!=(b=null==B?void 0:B.paymentLink)?b:null:null!=(x=null==L?void 0:L.paymentLinks[E])?x:null;return(0,t.jsx)("main",{className:"flex min-h-dvh items-center justify-center bg-canvas-base px-4 py-10",children:(0,t.jsx)("section",{className:"measure-readable-centered-md w-full  border border-stroke-default bg-bg p-6 shadow-sm sm:p-8",children:S&&B?(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("header",{className:"space-y-3 text-center",children:[(0,t.jsx)("p",{className:"choice-button-text uppercase tracking-[0.18em] text-copy-muted",children:"Memoir credits"}),(0,t.jsx)("h1",{className:"type-heading-lg text-copy-primary",children:"Choose credit pack"}),(0,t.jsx)("p",{className:"type-body text-copy-secondary",children:"Pick a one-time Mimi credit pack, then continue to Stripe checkout."})]}),!N&&g.length>1?(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"card-title-sm",children:"Credit pack"}),(0,t.jsx)("div",{className:"grid gap-2 sm:grid-cols-2",children:g.map(e=>{var r=e.packKey===B.packKey;return(0,t.jsxs)("button",{type:"button",onClick:()=>P(e.packKey),className:(0,a.cn)(" border px-4 py-3 text-left transition",r?"border-copy-primary bg-canvas-base":"border-stroke-default bg-bg hover:bg-canvas-muted"),"aria-pressed":r,children:[(0,t.jsxs)("span",{className:"block card-title-sm",children:[i(e.credits)," credits"]}),(0,t.jsx)("span",{className:"block helper-text",children:o(e.price)})]},e.packKey)})})]}):null,(0,t.jsxs)("div",{className:" border border-stroke-muted bg-canvas-base p-5",children:[(0,t.jsx)("p",{className:"helper-text-muted font-semibold",children:B.label}),(0,t.jsxs)("p",{className:"mt-2 text-4xl font-semibold text-copy-primary",children:[i(B.credits),(0,t.jsx)("span",{className:"ml-1 text-base font-medium text-copy-secondary",children:"credits"})]}),(0,t.jsxs)("p",{className:"mt-2 helper-text",children:["One-time purchase at ",o(B.price),"."]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:justify-center",children:[I?(0,t.jsx)("a",{href:I,className:(0,a.cn)(l,"w-full sm:w-auto"),children:"Continue to Stripe"}):(0,t.jsx)("button",{type:"button",disabled:!0,className:(0,a.cn)(l,"w-full cursor-not-allowed opacity-60 sm:w-auto"),children:"Stripe checkout unavailable"}),(0,t.jsx)(r.default,{href:"/",className:(0,a.cn)(s,"w-full sm:w-auto"),children:"Back"})]})]}):L?(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("header",{className:"space-y-3 text-center",children:[(0,t.jsx)("p",{className:"choice-button-text uppercase tracking-[0.18em] text-copy-muted",children:"Memoir membership"}),(0,t.jsxs)("h1",{className:"type-heading-lg text-copy-primary",children:["Choose ",L.label," billing"]}),(0,t.jsx)("p",{className:"type-body text-copy-secondary",children:"Pick monthly or yearly, then continue to Stripe checkout."})]}),!C&&v.length>1?(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"card-title-sm",children:"Plan"}),(0,t.jsx)("div",{className:"grid gap-2 sm:grid-cols-2",children:v.map(e=>{var r=e.planKey===L.planKey;return(0,t.jsxs)("button",{type:"button",onClick:()=>T(e.planKey),className:(0,a.cn)(" border px-4 py-3 text-left transition",r?"border-copy-primary bg-canvas-base":"border-stroke-default bg-bg hover:bg-canvas-muted"),"aria-pressed":r,children:[(0,t.jsx)("span",{className:"block card-title-sm",children:e.label}),(0,t.jsxs)("span",{className:"block helper-text",children:["From $",c(e.yearlyMonthlyEquivalent)," / month"]})]},e.planKey)})})]}):null,(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("p",{className:"card-title-sm",children:"Billing cycle"}),(0,t.jsxs)("div",{className:"inline-flex w-full overflow-hidden  border border-stroke-default",children:[(0,t.jsx)("button",{type:"button",onClick:()=>M("month"),className:(0,a.cn)("flex-1 px-4 py-2 choice-button-text transition","month"===E?"bg-fg text-bg":"bg-bg text-copy-secondary hover:bg-canvas-muted"),children:"Monthly"}),(0,t.jsx)("button",{type:"button",onClick:()=>M("year"),className:(0,a.cn)("flex-1 border-l border-stroke-default px-4 py-2 choice-button-text transition","year"===E?"bg-fg text-bg":"bg-bg text-copy-secondary hover:bg-canvas-muted"),children:"Yearly"})]})]}),(0,t.jsxs)("div",{className:" border border-stroke-muted bg-canvas-base p-5",children:[(0,t.jsx)("p",{className:"helper-text-muted font-semibold",children:L.label}),(0,t.jsxs)("p",{className:"mt-2 text-4xl font-semibold text-copy-primary",children:["$","year"===E?c(L.yearlyMonthlyEquivalent):c(L.monthlyPrice),(0,t.jsx)("span",{className:"ml-1 text-base font-medium text-copy-secondary",children:"/ month"})]}),"year"===E?(0,t.jsxs)("p",{className:"mt-2 helper-text",children:["Billed yearly at ",o(L.yearlyPrice),"."]}):(0,t.jsxs)("p",{className:"mt-2 helper-text",children:["Billed monthly at ",o(L.monthlyPrice),"."]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:justify-center",children:[I?(0,t.jsx)("a",{href:I,className:(0,a.cn)(l,"w-full sm:w-auto"),children:"Continue to Stripe"}):(0,t.jsx)("button",{type:"button",disabled:!0,className:(0,a.cn)(l,"w-full cursor-not-allowed opacity-60 sm:w-auto"),children:"Stripe checkout unavailable"}),(0,t.jsx)(r.default,{href:"/",className:(0,a.cn)(s,"w-full sm:w-auto"),children:"Back"})]})]}):(0,t.jsxs)("div",{className:"space-y-3 text-center",children:[(0,t.jsx)("h1",{className:"type-heading-lg text-copy-primary",children:"Membership unavailable"}),(0,t.jsx)("p",{className:"type-body text-copy-secondary",children:"Stripe checkout is not configured for a public landing-page flow yet."})]})})})}])},522016,(e,t,r)=>{"use strict";e.i(247167);var n=e.r(344086),a=e.r(204571),l=e.r(95692);
1Object.defineProperty(r,"__esModule",{value:!0});var s={default:function(){return g},useLinkStatus:function(){return N}};for(var c in s)Object.defineProperty(r,c,{enumerable:!0,get:s[c]});var o=e.r(190809),i=e.r(843476),u=o._(e.r(271645)),d=e.r(195057),p=e.r(8372),m=e.r(818581),h=e.r(718967),y=e.r(405550),f=e.r(388540),b=e.r(91949),x=e.r(573668),v=e.r(509396);function g(t){var r,s,c,o,[g,N]=(0,u.useOptimistic)(b.IDLE_LINK_STATUS),k=(0,u.useRef)(null),{href:w,as:S,children:C,prefetch:K=null,passHref:T,replace:_,shallow:P,scroll:E,onClick:M,onMouseEnter:L,onTouchStart:B,legacyBehavior:I=!1,onNavigate:O,transitionTypes:R,ref:U,unstable_dynamicOnHover:D}=t,F=l._(t,["href","as","children","prefetch","passHref","replace","shallow","scroll","onClick","onMouseEnter","onTouchStart","legacyBehavior","onNavigate","transitionTypes","ref","unstable_dynamicOnHover"]);s=C,I&&("string"==typeof s||"number"==typeof s)&&(s=(0,i.jsx)("a",{children:s}));var A=u.default.useContext(p.AppRouterContext),$=!1!==K,q=!1===K?"none":!0===K?"full":"auto",z="none"!==q&&"full"===q?v.FetchStrategy.Full:v.FetchStrategy.PPR,H="string"==typeof(r=S||w)?r:(0,d.formatUrl)(r);if(I){if((null==s?void 0:s.$$typeof)===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});c=u.default.Children.only(s)}var X=I?c&&"object"==typeof c&&c.ref:U,J=void 0,Y=u.default.useCallback(e=>(null!==A&&(k.current=(0,b.mountLinkInstance)(e,H,A,z,$,N,J)),()=>{k.current&&((0,b.unmountLinkForCurrentNavigation)(k.current),k.current=null),(0,b.unmountPrefetchableInstance)(e)}),[$,H,A,z,N,J]),G={ref:(0,m.useMergedRef)(Y,X),onClick(t){I||"function"!=typeof M||M(t),I&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t),!A||t.defaultPrevented||function(t,r,n,a,l,s,c){var o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"none";if("u">typeof window){var i,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((i=t.currentTarget.getAttribute("target"))&&"_self"!==i||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,x.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),s){var p=!1;if(s({preventDefault:()=>{p=!0}}),p)return}var{dispatchNavigateAction:m}=e.r(699781);u.default.startTransition(()=>{m(r,a?"replace":"push",!1===l?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,c,o)})}}(t,H,k,_,E,O,R,q)},onMouseEnter(e){I||"function"!=typeof L||L(e),I&&c.props&&"function"==typeof c.props.onMouseEnter&&c.props.onMouseEnter(e),!A||$&&(0,b.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){I||"function"!=typeof B||B(e),I&&c.props&&"function"==typeof c.props.onTouchStart&&c.props.onTouchStart(e),!A||$&&(0,b.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,h.isAbsoluteUrl)(H)?G.href=H:I&&!T&&("a"!==c.type||"href"in c.props)||(G.href=(0,y.addBasePath)(H)),o=I?u.default.cloneElement(c,G):(0,i.jsx)("a",a._(n._({},F,G),{children:s})),(0,i.jsx)(j.Provider,{value:g,children:o})}var j=(0,u.createContext)(b.IDLE_LINK_STATUS),N=()=>(0,u.useContext)(j);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)}]);

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.