PageSourceSearch

https://to-md.org/assets/pricing-Dkbiw-W-.js

js to-md.org collected 2026-10-08 08:31:16 UTC 6,947 bytes, 1 lines download raw bytes

1import{$ as e,A as t,B as n,D as r,E as i,F as a,G as o,H as ee,I as s,J as c,K as l,L as u,Lg as d,M as te,Mh as ne,N as re,O as ie,P as ae,Q as oe,R as se,T as ce,U as f,V as le,W as p,X as m,Y as h,Z as g,at as _,ct as v,dt as y,et as b,ht as x,it as S,j as C,k as w,lt as T,mt as E,nt as D,ot as O,pt as k,q as A,rt as j,st as M,tt as ue,ut as N,w as P,z as F}from"./messages-B7vy2gX4.js";import{t as I}from"./check-pFP8FFhW.js";import{t as L}from"./credit-card-DhWnOVHh.js";import{t as R}from"./file-text-S5FBMYk7.js";import{n as z,t as B}from"./header-BuguHzTE.js";import{S as V,d as H,f as U,g as de,v as fe}from"./index-CI4CH93Q.js";import{t as W}from"./utils-DXalBF5w.js";var pe=H(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),G=H(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),K={textToMarkdown:0,htmlToMarkdown:0,jsonToMarkdown:0,markdownToPdf:0,imageToMarkdown:5,pdfToMarkdownPerPage:2,wordToMarkdown:3,extraLargeFileSurcharge:5};function q(e){return Math.floor(e/K.imageToMarkdown)}var J=d(),Y=[`stripe`,`creem`,`paypal`,`alipay`,`wechat`];function X({title:d}={}){let I=q(1500).toLocaleString(),z=q(2e4).toLocaleString(),B=q(5).toLocaleString(),H=q(50).toLocaleString(),W={id:`free`,name:T(),description:v(),price:`$0`,buttonText:M(),features:[l(),o(),p(),ee()]},G={id:`monthly`,name:O(),description:_(),price:`$12`,interval:`mo`,badge:y(),productId:`monthly_subscription`,priceInCents:1200,currency:`usd`,credits:1500,buttonText:ne(),plan:{name:`Monthly`,interval:`month`,intervalCount:1},features:[n(),se({count:I}),f(),le(),g()]},K={id:`yearly`,name:S(),description:j(),price:`$96`,originalPrice:`$144`,interval:`yr`,featured:!0,badge:N(),productId:`yearly_subscription`,priceInCents:9600,currency:`usd`,credits:2e4,buttonText:D(),plan:{name:`Yearly`,interval:`year`,intervalCount:1},features:[F(),u({count:z}),a(),f(),m()]},X={id:`one-time-pack`,name:ie(),description:r(),price:`$6.99`,interval:`10 images`,productId:`one_time_pack`,priceInCents:699,currency:`usd`,credits:50,creditsValidDays:365,buttonText:i(),features:[ce(),s({count:H}),P()]},Q={id:`single-page`,name:re(),description:te(),price:`$1.99`,interval:`one page`,productId:`one_time_page`,priceInCents:199,currency:`usd`,credits:5,creditsValidDays:30,buttonText:C(),features:[t(),s({count:B}),w()]},me={id:`business`,name:ue(),description:b(),price:e(),buttonText:oe(),features:[h(),ae(),c(),A()]};async function he(e,t){try{let n=typeof window<`u`?new URLSearchParams(window.location.search).get(`redirect`):null,r=await fe(`/api/payment/checkout`,{product_id:e.productId,payment_provider:t,redirect:n});if(!r?.checkout_url){U.error(`Checkout failed`);return}window.location.href=r.checkout_url}catch(e){U.error(e?.message||`Checkout failed`)}}async function $(e){if(e.id===`free`){window.location.href=`/`;return}let t=await V.getSession();if(e.id===`business`){window.location.href=t.data?.user?`/settings/tickets`:`/sign-up?callbackUrl=%2Fsettings%2Ftickets`;return}if(!e.productId||!e.priceInCents){window.location.href=t.data?.user?`/settings`:`/sign-up?callbackUrl=%2Fsettings`;return}if(!t.data?.user){let e=`${window.location.pathname}${window.location.search}`;window.location.href=`/sign-up?callbackUrl=${encodeURIComponent(e||`/pricing`)}`;return}let n=await de(`/api/config/public`).catch(()=>({})),r=Y.filter(e=>n[`${e}_enabled`]===`true`);await he(e,n.default_payment_provider||r[0]||`stripe`)}return(0,J.jsx)(`section`,{id:`pricing`,className:`border-t border-border px-4 py-20 sm:py-28`,children:(0,J.jsxs)(`div`,{className:`mx-auto max-w-6xl`,children:[(0,J.jsxs)(`div`,{className:`mx-auto max-w-3xl text-center`,children:[(0,J.jsx)(`p`,{className:`text-sm font-medium text-primary`,children:x()}),(0,J.jsx)(`h1`,{className:`mt-3 font-serif text-4xl font-medium leading-tight tracking-normal sm:text-5xl`,children:d??E()}),(0,J.jsx)(`p`,{className:`mt-5 text-base leading-7 text-muted-foreground`,children:k()})]}),(0,J.jsxs)(`div`,{className:`mt-10 grid gap-6 lg:grid-cols-3`,children:[(0,J.jsx)(Z,{plan:W,muted:!0,onCheckout:$}),(0,J.jsx)(Z,{plan:G,onCheckout:$}),(0,J.jsx)(Z,{plan:K,onCheckout:$})]}),(0,J.jsxs)(`div`,{className:`mt-6 grid gap-6 lg:grid-cols-3`,children:[(0,J.jsx)(Z,{plan:Q,icon:R,muted:!0,onCheckout:$}),(0,J.jsx)(Z,{plan:X,icon:L,muted:!0,onCheckout:$}),(0,J.jsx)(Z,{plan:me,icon:pe,muted:!0,onCheckout:$})]})]})})}
1function Z({plan:e,icon:t=G,size:n=`normal`,muted:r=!1,onCheckout:i}){return(0,J.jsxs)(`div`,{className:W(`relative flex flex-col rounded-lg border border-border bg-background p-6`,e.featured&&`border-primary/40 bg-primary/5 shadow-2xl shadow-primary/10`,r&&`bg-muted/20`,n===`large`&&`min-h-[430px] p-8`),children:[(0,J.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,J.jsxs)(`div`,{children:[e.badge&&(0,J.jsx)(`span`,{className:`mb-4 inline-flex rounded-full bg-primary px-3 py-1 text-xs font-medium text-primary-foreground`,children:e.badge}),(0,J.jsx)(`h2`,{className:W(`font-serif font-medium tracking-normal`,n===`large`?`text-3xl`:`text-2xl`),children:e.name}),(0,J.jsx)(`p`,{className:`mt-2 max-w-xl text-sm leading-6 text-muted-foreground`,children:e.description})]}),(0,J.jsx)(`div`,{className:`rounded-md border border-border bg-background p-2 text-primary`,children:(0,J.jsx)(t,{className:`size-5`})})]}),(0,J.jsxs)(`div`,{className:`mt-8 flex items-end gap-2`,children:[(0,J.jsx)(`span`,{className:W(`font-serif font-medium tracking-normal`,n===`large`?`text-6xl`:`text-5xl`),children:e.price}),e.interval&&(0,J.jsxs)(`span`,{className:`pb-2 text-sm text-muted-foreground`,children:[`/`,e.interval]}),e.originalPrice&&(0,J.jsx)(`span`,{className:`pb-2 text-sm text-muted-foreground line-through`,children:e.originalPrice})]}),(0,J.jsx)(`button`,{type:`button`,className:W(`mt-7 inline-flex h-11 w-full items-center justify-center rounded-lg px-4 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50`,e.featured?`bg-primary text-primary-foreground hover:bg-primary/90`:`bg-foreground text-background hover:bg-foreground
1/90`),onClick:()=>i(e),children:e.buttonText}),(0,J.jsx)(`ul`,{className:W(`mt-7 space-y-3`,n===`large`&&`grid gap-3 sm:grid-cols-2 sm:space-y-0`),children:e.features.map(e=>(0,J.jsxs)(`li`,{className:`flex items-start gap-2 text-sm leading-6`,children:[(0,J.jsx)(I,{className:`mt-1 size-4 shrink-0 text-primary`}),(0,J.jsx)(`span`,{children:e})]},e))})]})}function Q(){return(0,J.jsxs)(`div`,{className:`min-h-screen flex flex-col bg-background text-foreground`,children:[(0,J.jsx)(B,{}),(0,J.jsx)(`main`,{className:`flex-1`,children:(0,J.jsx)(X,{})}),(0,J.jsx)(z,{})]})}export{Q as component};

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.