PageSourceSearch

https://www.postproai.app/assets/WhopApp-D0Z6zSP8.js

js postproai.app collected 2026-09-30 06:40:33 UTC 6,790 bytes, 1 lines download raw bytes

1import{j as e}from"./framer-CaZKyxF5.js";import{r as o}from"./react-core-I1an5Yvj.js";import{u as x}from"./useWhopAuth-DDbJa5Lk.js";import{B as m}from"./index-CgQCMZLE.js";import{C as l,a as h,b as p,c}from"./card-C-2cYgJJ.js";import{e as u,o as j,K as f,q as N,Y as g}from"./lucide-DPOR83NI.js";import{P as b}from"./PostEnhancer-BRROVd8y.js";import"./supabase-LX2YIkpS.js";import"./query-C2oTuvQ4.js";import"./router-hu0_X6IN.js";import"./index-CCpchn4D.js";import"./Combination-DWOYKpRr.js";import"./textarea-Buzp1eO4.js";import"./useSubscription-CSyFxm_3.js";import"./pricingPlans-Bsb04u_N.js";import"./productFacts-D2ONJNuD.js";import"./dodoCheckout-C9Ixm-2A.js";import"./tabs-z40ejBaU.js";import"./badge-QiKVKfib.js";import"./useAuth-BQd42a4W.js";import"./localHistory-CqsEthJw.js";import"./dialog-BmwAI8Rn.js";const v=({children:t,fallback:r})=>{const{loading:a,isAuthenticated:i,user:s,redirectToWhopAuth:d,isWhopContext:n}=x();return console.log("WhopAuthWrapper state:",{loading:a,isAuthenticated:i,user:s,isWhopContext:n}),a?e.jsx("div",{className:"flex items-center justify-center min-h-screen",children:e.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[e.jsx(u,{className:"h-8 w-8 animate-spin text-primary"}),e.jsx("p",{className:"text-muted-foreground",children:"Connecting to Whop..."})]})}):n?!i&&n?r?e.jsx(e.Fragment,{children:r}):e.jsx("div",{className:"flex items-center justify-center min-h-screen p-4",children:e.jsxs(l,{className:"w-full max-w-md",children:[e.jsx(h,{className:"text-center",children:e.jsx(p,{children:"Authentication Required"})}),e.jsxs(c,{className:"space-y-4 text-center",children:[e.jsx("p",{className:"text-muted-foreground",children:"Please authenticate with Whop to access PostPro AI."}),e.jsx(m,{onClick:d,className:"w-full",children:"Connect with Whop"})]})]})}):e.jsxs("div",{className:"whop-app-container",children:[s&&n&&e.jsx("div",{className:"bg-primary/10 border-b px-4 py-2 text-sm",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{children:["Welcome, ",e.jsx("strong",{children:s.username}),"!"]}),e.jsx("span",{className:"text-muted-foreground",children:"Connected via Whop"})]})}),t]}):e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4 mb-6",children:[e.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[e.jsx("div",{className:"h-2 w-2 bg-blue-500 rounded-full"}),e.jsx("span",{className:"text-sm font-medium text-blue-800",children:"Demo Mode"})]}),e.jsx("p",{className:"text-sm text-blue-700",children:"You're viewing the Whop app in demo mode. Install this app in your Whop community for full functionality."}),e.jsx(m,{onClick:()=>window.open("https://whop.com/apps/app_tOxwzuc0RwXQfw/install/","_blank"),variant:"outline",size:"sm",className:"mt-2 border-blue-300 text-blue-700 hover:bg-blue-100",children:"Install on Whop"})]}),t]})},G=()=>{const[t,r]=o.useState(""),[a,i]=o.useState("business"),[s,d]=o.useState("professional");return e.jsx(v,{children:e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("div",{className:"border-b bg-card/50 backdrop-blur-sm",children:e.jsx("div",{className:"container mx-auto px-6 py-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"h-8 w-8 bg-primary rounded-lg flex items-center justify-center",children:e.jsx(j,{className:"h-5 w-5 text-primary-foreground"})}),e.jsx("div",{children:e.jsx("h1",{className:"text-xl font-semibold text-foreground",children:"PostPro AI"})})]}),e.jsx("div",{className:"text-xs text-muted-foreground font-medium",children:"Professional Edition"})]})})}),e.jsx("div",{className:"container mx-auto px-6 py-8",children:e.jsx("div",{className:"max-w-6xl mx-auto",children:e.jsxs("div",{className:"grid lg:grid-cols-3 gap-8",children:[e.jsx("div",{className:"lg:col-span-2",children:e.jsx(l,{className:"border-0 shadow-sm",children:e.jsx(c,{className:"p-6",children:e.jsx(b,{post:t,setPost:r,category:a,setCategory:i,styleTone:s,setStyleTone:d})})})}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(l,{className:"border-0 shadow-sm",children:e.jsxs(c,{className:"p-6",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-4",children:"Proven Results"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(f,{className:"h-4 w-4 text-primary"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:"Avg. Engagement"})]}),e.jsx("span",{className:"font-semibold text-foreground",children:"+300%"})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(N,{className:"h-4 w-4 text-primary"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:"Time Saved"})]}),e.jsx("span",{className:"font-semibold text-foreground",children:"5hrs/week"})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(g,{className:"h-4 w-4 text-primary"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:"Active Users"})]}),e.jsx("span",{className:"font-semibold text-foreground",children:"50K+"})]})]})]})}),e.jsx(l,{className:"border-0 shadow-sm",children:e.jsxs(c,{className:"p-6",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-3",children:"Why PostPro AI?"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx("div",{className:"w-2 h-2 bg-primary rounded-full mt-2 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Enterprise Security"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Bank-level encryption"})]})]}),e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx("div",{className:"w-2 h-2 bg-primary rounded-full mt-2 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Lightning Fast"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Content in under 3 seconds"})]})]}),e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx("div",{className:"w-2 h-2 bg-primary rounded-full mt-2 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Trusted Globally"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"By professionals worldwide"})]})]})]})]})})]})]})})})]})})};export{G as 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.