1import{Bo as e,Ca as t,Ch as n,Cn as r,Da as i,Dt as a,Ea as o,Et as s,Ho as c,Ig as ee,Lg as te,Mg as l,Ng as ne,Ro as u,Sa as d,St as re,Ta as ie,Ug as ae,Vo as oe,bh as se,bt as ce,d as le,dr as f,f as ue,g as de,h as fe,jh as p,jt as pe,kt as m,m as me,n as he,o as ge,p as h,pg as g,vt as _,wa as v,wt as y,xa as b,xh as x,xn as _e,yh as S,zg as ve,zo as ye}from"./messages-B7vy2gX4.js";import{r as be,t as C}from"./navigation-DVitfQce.js";import{t as xe}from"./check-pFP8FFhW.js";import{t as w}from"./chevron-down-v3RMRywQ.js";import{a as T,i as E,n as D,o as O,r as k,t as A}from"./locale-7ledlzJk.js";import{t as j}from"./settings-DLRSPlwd.js";import{t as M}from"./shield-BAQmvCTA.js";import{t as Se}from"./x-CTYmGSeV.js";import{E as Ce,O as we,c as Te,d as N,k as Ee}from"./index-CI4CH93Q.js";import{t as P}from"./utils-DXalBF5w.js";import{n as F,t as De}from"./button-scB-LEnO.js";import{t as I}from"./brand-logo-twhqsM3J.js";import{a as Oe,i as L,n as R,o as z,r as ke,t as B,u as V}from"./dropdown-menu-CDFjAShm.js";import{n as H,r as U,t as W}from"./avatar-6Wk7Cmqf.js";var G=N(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Ae=N(`menu`,[[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 18h16`,key:`19g7jn`}],[`path`,{d:`M4 6h16`,key:`1o0s65`}]]),K=ae(ve(),1),q=te();function J({variant:e=`icon`,className:t}){if(typeof window>`u`)return(0,q.jsx)(Y,{variant:e,className:t});let[n,r]=(0,K.useState)(!1),i=l();if((0,K.useEffect)(()=>{r(!0)},[]),!n)return(0,q.jsx)(Y,{variant:e,className:t});function a(e){ee(e)}return(0,q.jsxs)(B,{children:[(0,q.jsx)(V,{className:P(`inline-flex items-center transition-colors outline-none`,e===`icon`?`justify-center rounded-md size-8 text-muted-foreground hover:bg-accent hover:text-accent-foreground`:`gap-2 rounded-full border px-4 h-9 text-sm`,t),children:e===`icon`?(0,q.
1jsxs)(q.Fragment,{children:[(0,q.jsx)(O,{className:`size-4`}),(0,q.jsx)(`span`,{className:`sr-only`,children:`Switch language`})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(G,{className:`size-4`}),(0,q.jsx)(`span`,{children:A[i]||i}),(0,q.jsx)(w,{className:`size-4 opacity-70`})]})}),(0,q.jsx)(R,{align:`end`,children:ne.map(e=>(0,q.jsxs)(L,{onClick:()=>a(e),className:`flex items-center justify-between gap-2`,children:[A[e]||e,e===i&&(0,q.jsx)(xe,{className:`size-3.5`})]},e))})]})}function Y({variant:e=`icon`,className:t}){let n=l();return(0,q.jsx)(`span`,{className:P(`inline-flex items-center transition-colors outline-none`,e===`icon`?`justify-center rounded-md size-8 text-muted-foreground`:`gap-2 rounded-full border px-4 h-9 text-sm`,t),children:e===`icon`?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(O,{className:`size-4`}),(0,q.jsx)(`span`,{className:`sr-only`,children:`Switch language`})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(G,{className:`size-4`}),(0,q.jsx)(`span`,{children:A[n]||n})]})})}var je=e=>/^https?:\/\//.test(e);function Me({tagline:e,columns:t,socials:n,copyright:r}){let i=new Date().getFullYear();return(0,q.jsx)(`footer`,{className:`bg-primary text-primary-foreground`,children:(0,q.jsxs)(`div`,{className:`mx-auto max-w-7xl px-6 pt-14 pb-6 sm:px-10 sm:pt-16 lg:px-16`,children:[e&&(0,q.jsx)(`p`,{className:`font-serif italic text-3xl leading-[1.15] tracking-normal text-primary-foreground sm:text-4xl mb-12 max-w-2xl`,children:e}),t&&t.length>0&&(0,q.jsx)(`div`,{className:P(`grid gap-x-8 gap-y-10 sm:gap-x-12`,t.length<=3?`grid-cols-2 sm:grid-cols-3`:t.length===4?`grid-cols-2 sm:grid-cols-4`:`grid-cols-2 sm:grid-cols-3 lg:grid-cols-5`),children:t.map(e=>(0,q.jsxs)(`div`,{className:`space-y-5`,children:[(0,q.jsx)(`p`,{className:`text-[13px] font-semibold tracking-normal text-primary-foreground`,children:e.title}),(0,q.jsx)(`ul`,{className:`space-y-2`,children:e.links.map(e=>(0,q.jsx)(`li`,{children:je(e.href)?(0,q.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,className:`text-sm text-primary-foreground/70 transition-colors hover:text-primary-foreground`,children:e.label}):(0,q.jsx)(C,{href:e.href,target:e.external?`_blank`:void 0,className:`text-sm text-primary-foreground/70 transition-colors hover:text-primary-foreground`,children:e.label})},e.label))})]},e.title))}),(0,q.jsxs)(`div`,{className:`mt-8 flex flex-col gap-6 sm:flex-row sm:items-center sm:justify-between`,children:[n&&n.length>0?(0,q.jsx)(`div`,{className:`flex items-center gap-5`,children:n.map(e=>(0,q.jsx)(`a`,{href:e.href,"aria-label":e.label,target:`_blank`,rel:`noopener noreferrer`,className:`text-primary-foreground/75 transition-colors hover:text-primary-foreground`,children:(0,q.jsx)(e.icon,{className:`size-[18px]`})},e.label))}):(0,q.jsx)(`div`,{}),(0,q.jsx)(J,{variant:`pill`,className:`border-primary-foreground/25 text-primary-foreground hover:bg-primary-foreground/10 hover:text-primary-foreground`})]}),(0,q.jsx)(`div`,{className:`mt-6 flex flex-col gap-3 border-t border-primary-foreground/15 pt-5 sm:flex-row sm:items-center sm:justify-end`,children:(0,q.jsx)(`span`,{className:`text-sm text-primary-foreground/70`,children:r||`© ${i} ${Te.app_name}. All rights reserved.`})})]})})}function Ne(){let n=[{title:fe(),links:[{label:t(),href:`/rich-text-to-markdown`},{label:d(),href:`/markdown-to-rich-text`},{label:b(),href:`/markdown-to-text`},{label:v(),href:`/view-md-file`},{label:f(),href:`/markdown-to-pdf`},{label:m(),href:`/markdown-to-html`},{label:_(),href:`/markdown-to-image`},{label:i(),href:`/html-to-markdown`},{label:s(),href:`/csv-to-markdown`},{label:y(),href:`/json-to-markdown`},{label:r(),href:`/word-to-markdown`},{label:o(),href:`/pdf-to-markdown`},{label:ie(),href:`/image-to-markdown`}]},{title:me(),links:[{label:oe(),href:`/#features`},{label:e(),href:`/#how-it-works`},{label:ye(),href:`/#faq`},{label:he(),href:`/blog`}]},{title:h(),links:[{label:ue(),href:`/privacy-policy`},{label:le(),href:`/terms-of-service`}]}];return(0,q.jsx)(Me,{tagline:de(),columns:n})}function X(){let{theme:e,setTheme:t}=Ee();return(0,q.jsxs)(De,{variant:`ghost`,size:`icon`,onClick:()=>t(e===`dark`?`light`:`dark`),children:[(0,q.jsx)(k,{className:`size-4 dark:hidden`}),(0,q.jsx)(E,{className:`hidden size-4 dark:block`}),(0,q.jsx)(`span`,{className:`sr-only`,children:`Toggle theme`})]})}function Z({name:e,email:t,image:r}){let i=be(),{data:a}=D(),o=a?.isAdmin===!0;async function s(){await Ce(),i.push(`/`)}return(0,q.jsxs)(B,{children:[(0,q.jsx)(V,{className:`rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,q.jsxs)(W,{className:`size-9`,children:[(0,q.jsx)(U,{src:r||void 0,alt:e}),(0,q.jsx)(H,{className:`text-xs`,children:e.charAt(0).toUpperCase()})]})}),(0,q.jsxs)(R,{className:`min-w-56`,align:`end`,sideOffset:8,children:[(0,q.jsx)(ke,{children:(0,q.jsx)(Oe,{className:`p-0 font-normal`,children:(0,q.jsxs)(`div`,{className:`flex items-center gap-2 px-1 py-1.5 text-left text-sm`,children:[(0,q.jsxs)(W,{className:`size-8`,children:[(0,q.jsx)(U,{src:r||void 0,alt:e}),(0,q.jsx)(H,{className:`text-xs`,children:e.charAt(0).toUpperCase()})]}),(0,q.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,q.jsx)(`span`,{className:`truncate font-medium`,children:e}),(0,q.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:t})]})]})})}),(0,q.jsx)(z,{}),(0,q.jsxs)(L,{render:(0,q.jsx)(C,{href:`/settings`}),children:[(0,q.jsx)(j,{className:`size-4`}),n()]}),o&&(0,q.jsxs)(L,{render:(0,q.jsx)(C,{href:`/admin`}),children:[(0,q.jsx)(M,{className:`size-4`}),p()]}),(0,q.jsx)(z,{}),(0,q.jsxs)(L,{onClick:s,children:[(0,q.jsx)(T,{className:`size-4`}),g()]})]})]})}var Q=e=>/^https?:\/\//.test(e);function Pe({navLinks:e}){if(typeof window>`u`)return(0,q.jsx)($,{navLinks:e});let[t,n]=(0,K.useState)(!1),[r,i]=(0,K.useState)(!1),{data:a}=we(),o=a?.user,s=D(!!o).data?.isAdmin===!0;return(0,K.useEffect)(()=>{n(!0)},[]),t?(0,q.jsxs)(`header`,{className:`sticky top-0 z-50 w-full bg-background/80 backdrop-blur-sm`,children:[(0,q.jsxs)(`div`,{className:`mx-auto flex h-16 max-w-6xl items-center justify-between px-4 sm:px-6`,children:[(0,q.jsx)(C,{href:`/`,className:`flex items-center`,children:(0,q.jsx)(I,{})}),(0,q.jsx)(`nav`,{className:`hidden items-center gap-6 md:flex`,children:e?.map(e=>e.children?.length?(0,q.jsxs)(B,{children:[(0,q.jsxs)(V,{className:`inline-flex items-center gap-1 text-sm text-muted-foreground outline-none transition-colors hover:text-foreground data-popup-open:text-foreground`,children:[e.label,(0,q.jsx)(w,{className:`size-3.5`})]}),(0,q.jsx)(R,{className:`w-56`,align:`center`,sideOffset:10,children:e.children.map(e=>(0,q.jsx)(L,{onClick:()=>{window.location.href=e.href},children:e.label},e.href))})]},e.href):Q(e.href)?(0,q.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,className:`text-sm text-muted-foreground transition-colors hover:text-foreground`,children:e.label},e.href):(0,q.jsx)(C,{href:e.href,target:e.external?`_blank`:void 0,className:`text-sm font-medium text-muted-foreground transition-colors hover:text-foreground`,children:e.label},e.href))}),(0,q.jsxs)(`div`,{className:`hidden items-center gap-3 md:flex`,children:[(0,q.jsx)(J,{}),(0,q.jsx)(X,{}
1),o?(0,q.jsxs)(q.Fragment,{children:[s&&(0,q.jsx)(C,{href:`/admin`,className:P(F({variant:`outline`}),`gap-1.5`),children:p()}),(0,q.jsx)(C,{href:`/settings`,className:P(F(),`gap-1.5`),children:S()}),(0,q.jsx)(Z,{name:o.name||`User`,email:o.email,image:o.image})]}):(0,q.jsx)(q.Fragment,{children:(0,q.jsx)(C,{href:`/sign-in`,className:P(F(),`gap-1.5`),children:x()})})]}),(0,q.jsx)(`button`,{className:`md:hidden p-2`,onClick:()=>i(!r),"aria-label":r?`Close menu`:`Open menu`,"aria-expanded":r,children:r?(0,q.jsx)(Se,{className:`size-5`}):(0,q.jsx)(Ae,{className:`size-5`})})]}),r&&(0,q.jsxs)(`div`,{className:`border-t border-border px-4 pb-4 pt-2 md:hidden`,children:[(0,q.jsx)(`nav`,{className:`flex flex-col gap-2`,children:e?.flatMap(e=>e.children?.length?[e,...e.children]:[e]).map(e=>Q(e.href)?(0,q.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,className:`rounded-md px-3 py-2 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground`,onClick:()=>i(!1),children:e.label},e.href):(0,q.jsx)(C,{href:e.href,target:e.external?`_blank`:void 0,className:`rounded-md px-3 py-2 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground`,onClick:()=>i(!1),children:e.label},e.href))}),(0,q.jsxs)(`div`,{className:`mt-3 flex items-center gap-2 border-t border-border pt-3`,children:[(0,q.jsx)(J,{}),(0,q.jsx)(X,{}),(0,q.jsx)(`div`,{className:`flex-1`}),o?(0,q.jsxs)(q.Fragment,{children:[s&&(0,q.jsx)(C,{href:`/admin`,className:P(F({variant:`outline`}),`gap-1.5`),onClick:()=>i(!1),children:p()}),(0,q.jsx)(C,{href:`/settings`,className:P(F(),`gap-1.5`),onClick:()=>i(!1),children:S()}),(0,q.jsx)(Z,{name:o.name||`User`,email:o.email,image:o.image})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(C,{href:`/sign-in`,className:P(F({variant:`ghost`}),`gap-1.5`),onClick:()=>i(!1),children:x()}),(0,q.jsx)(C,{href:`/sign-up`,className:P(F(),`gap-1.5`),onClick:()=>i(!1),children:se()})]})]})]})]}):(0,q.jsx)($,{navLinks:e})}function $({navLinks:e}){return(0,q.jsx)(`header`,{className:`sticky top-0 z-50 w-full bg-background/80 backdrop-blur-sm`,children:(0,q.jsxs)(`div`,{className:`mx-auto flex h-16 max-w-6xl items-center justify-between px-4 sm:px-6`,children:[(0,q.jsx)(`a`,{href:`/`,className:`flex items-center`,children:(0,q.jsx)(I,{})}),(0,q.jsx)(`nav`,{className:`hidden items-center gap-6 md:flex`,children:e?.map(e=>(0,q.jsx)(`a`,{href:e.href,target:e.external||Q(e.href)?`_blank`:void 0,rel:e.external||Q(e.href)?`noopener noreferrer`:void 0,className:`text-sm text-muted-foreground transition-colors hover:text-foreground`,children:e.label},e.href))}),(0,q.jsx)(`a`,{href:`/sign-in`,className:P(F(),`hidden gap-1.5 md:inline-flex`),children:x()})]})})}function Fe(){return(0,q.jsx)(Pe,{navLinks:[{href:`/image-to-markdown`,label:_e()},{href:`/markdown-to-pdf`,label:f()},{href:`/#tools`,label:c(),children:[{href:`/rich-text-to-markdown`,label:t()},{href:`/markdown-to-rich-text`,label:d()},{href:`/markdown-to-text`,label:b()},{href:`/view-md-file`,label:v()},{href:`/html-to-markdown`,label:pe()},{href:`/markdown-to-html`,label:m()},{href:`/markdown-to-image`,label:_()},{href:`/text-to-markdown`,label:a()},{href:`/json-to-markdown`,label:y()},{href:`/csv-to-markdown`,label:s()},{href:`/pptx-to-markdown`,label:re()},{href:`/epub-to-markdown`,label:ce()}]},{href:`/pricing`,label:u()},{href:`/blog`,label:ge()}]})}export{Ne as n,Fe as t};
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.