PageSourceSearch

https://www.forgednfoundry.com/assets/PricingStrategyBuilder-ChYHFDJy.js

js forgednfoundry.com collected 2026-09-24 14:44:01 UTC 8,150 bytes, 1 lines download raw bytes

1import{r,j as e}from"./framer-motion-BaLjy9Ko.js";import{C as S,i as C,t as c,k as P}from"./index-D2aU7UoU.js";import{L as i}from"./label-BKMPhEhf.js";import{I as o}from"./input-BD5QmPQJ.js";import{T}from"./textarea-MIBcRauv.js";import{S as M,a as B,b as F,c as O,d as I}from"./select-DHhIrbTx.js";import{ay as L,N as R,a0 as A,r as E}from"./lucide-D38v2lx-.js";import"./radix-ui-BFkc169U.js";import"./pdf-B-X7H1-U.js";import"./charts-C5feAMdf.js";const H=[{value:"subscription",label:"Subscription / SaaS"},{value:"one-time",label:"One-time Purchase"},{value:"tiered",label:"Tiered / Freemium"},{value:"usage-based",label:"Usage-based / Credits"},{value:"service",label:"Service / Retainer"},{value:"marketplace",label:"Marketplace / Commission"}];function $(d){navigator.clipboard.writeText(d),c.success("Copied")}function X({userPlan:d,currentKit:x}){const[n,b]=r.useState(x?.businessName||""),[l,j]=r.useState(""),[m,f]=r.useState("subscription"),[p,N]=r.useState(""),[h,v]=r.useState(""),[g,u]=r.useState(!1),[t,y]=r.useState(null),z=async()=>{if(!n.trim()||!l.trim()){c.error("Fill in business name and offer description");return}u(!0);try{const s=await P("/api/tools/pricing-strategy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({businessName:n.trim(),offer:l.trim(),modelType:m,targetMarket:p.trim(),currentPrice:h.trim(),industry:x?.industry})}),a=await s.json();if(!s.ok||!a.ok){c.error(a?.error?.message||a?.error||"Generation failed");return}y(a.data.strategy),c.success("Pricing strategy generated")}catch{c.error("Network error — please try again")}finally{u(!1)}};return e.jsxs("div",{className:"space-y-6 max-w-3xl",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#d4af37] mb-2",children:[e.jsx(L,{className:"w-4 h-4"}),e.jsx("span",{className:"font-mono text-xs tracking-widest uppercase",children:"Pricing Strategy Builder"})]}),e.jsx("h2",{className:"text-2xl font-bold text-white",children:"Pricing Strategy Builder"}),e.jsx("p",{className:"text-zinc-500 text-sm mt-1",children:"AI builds your full pricing architecture — tiers, psychology tactics, objection handlers, revenue scenarios."})]}),e.jsx(S,{className:"bg-zinc-900/50 border-zinc-800",children:e.jsxs(C,{className:"p-6 space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(i,{className:"text-zinc-300 text-xs font-mono uppercase tracking-wider",children:"Business Name"}),e.jsx(o,{value:n,onChange:s=>b(s.target.value),placeholder:"e.g. Forge & Foundry",className:"bg-black border-zinc-700 text-white placeholder:text-zinc-600 focus:border-[#d4af37]"})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(i,{className:"text-zinc-300 text-xs font-mono uppercase tracking-wider",children:"Pricing Model"}),e.jsxs(M,{value:m,onValueChange:f,children:[e.jsx(B,{className:"bg-black border-zinc-700 text-white focus:ring-[#d4af37]",children:e.jsx(F,{})}),e.jsx(O,{className:"bg-zinc-900 border-zinc-700",children:H.map(s=>e.jsx(I,{value:s.value,className:"text-zinc-300 focus:bg-zinc-800 focus:text-white",children:s.label},s.value))})]})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(i,{className:"text-zinc-300 text-xs font-mono uppercase tracking-wider",children:"What are you selling? What outcome does it create?"}),e.jsx(T,{value:l,onChange:s=>j(s.target.value),placeholder:"e.g. An AI platform that generates complete brand identities for solo founders — colors, fonts, taglines, voice, messaging — in under 60 seconds.",rows:3,className:"bg-black border-zinc-700 text-white placeholder:text-zinc-600 focus:border-[#d4af37] resize-none"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(i,{className:"text-zinc-300 text-xs font-mono uppercase tracking-wider",children:"Target Market"}),e.jsx(o,{value:p,onChange:s=>N(s.target.value),placeholder:"e.g. Solo founders, freelancers",className:"bg-black border-zinc-700 text-white placeholder:text-zinc-600 focus:border-[#d4af37]"})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(i,{className:"text-zinc-300 text-xs font-mono uppercase tracking-wider",children:"Current Price (optional)"}),e.jsx(o,{value:h,onChange:s=>v(s.target.value),placeholder:"e.g. $29.99/mo",className:"bg-black border-zinc-700 text-white placeholder:text-zinc-600 focus:border-[#d4af37]"})]})]}),e.jsx("button",{onClick:z,disabled:g,className:"w-full flex items-center justify-center gap-2 py-3 bg-[#d4af37] text-black font-bold uppercase tracking-wider text-sm hover:bg-white transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:g?e.jsxs(e.Fragment,{children:[e.jsx(R,{className:"w-4 h-4 animate-spin"})," Building Strategy..."]}):"Build Pricing Strategy"})]})}),t&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"p-4 bg-[#d4af37]/10 border border-[#d4af37]/30 rounded-sm",children:[e.jsx("div",{className:"font-mono text-[10px] text-[#d4af37] uppercase tracking-widest mb-1",children:"Recommended Model"}),e.jsx("div",{className:"text-white font-bold",children:t.recommendedModel}),e.jsx("p",{className:"text-sm text-zinc-400 mt-1",children:t.rationale})]}),t.tiers?.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"font-mono text-[10px] text-zinc-500 uppercase tracking-widest mb-3",children:"Pricing Tiers"}),e.jsx("div",{className:"grid md:grid-cols-3 gap-3",children:t.tiers.map((s,a)=>e.jsxs("div",{className:"border border-zinc-800 rounded-sm p-4 bg-zinc-900/50",children:[e.jsx("div",{className:"flex items-start justify-between mb-2",children:e.jsxs("div",{children:[e.jsx("div",{className:"text-white font-bold",children:s.name}),e.jsx("div",{className:"text-[#d4af37] font-mono text-lg font-bold",children:s.price}),s.billingCycle&&e.jsx("div",{className:"text-zinc-600 text-xs",children:s.billingCycle})]})}),e.jsx("p",{className:"text-xs text-zinc-400 mb-2",children:s.positioning}),e.jsx("ul",{className:"space-y-1 mb-3",children:s.includes?.map((w,k)=>e.jsxs("li",{className:"text-xs text-zinc-300 flex items-start gap-1.5",children:[e.jsx("span",{className:"text-[#d4af37] mt-0.5",children:"·"}),w]},k))}),e.jsx("div",{className:"text-[10px] font-mono text-zinc-600 uppercase tracking-widest",children:"Psychology"}),e.jsx("p",{className:"text-xs text-zinc-500 mt-0.5",children:s.psych
1ologyTactic})]},a))})]}),t.anchorTip&&e.jsxs("div",{className:"p-4 bg-zinc-900/50 border border-zinc-800 rounded-sm",children:[e.jsx("div",{className:"font-mono text-[10px] text-zinc-500 uppercase tracking-widest mb-1",children:"Anchoring Tip"}),e.jsx("p",{className:"text-sm text-zinc-300",children:t.anchorTip})]}),t.objectionHandlers?.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"font-mono text-[10px] text-zinc-500 uppercase tracking-widest mb-3",children:"Objection Handlers"}),e.jsx("div",{className:"space-y-2",children:t.objectionHandlers.map((s,a)=>e.jsxs("div",{className:"border border-zinc-800 rounded-sm p-3 bg-zinc-900/30",children:[e.jsx("button",{className:"float-right text-zinc-600 hover:text-zinc-300 transition-colors",onClick:()=>$(`"${s.objection}" → ${s.response}`),children:e.jsx(A,{className:"w-3 h-3"})}),e.jsxs("div",{className:"text-xs text-red-400 font-mono mb-1",children:['"',s.objection,'"']}),e.jsx("div",{className:"text-sm text-zinc-300",children:s.response})]},a))})]}),t.revenueProjection?.length>0&&e.jsxs("div",{children:[e.jsxs("div",{className:"font-mono text-[10px] text-zinc-500 uppercase tracking-widest mb-3 flex items-center gap-2",children:[e.jsx(E,{className:"w-3 h-3"})," Revenue Scenarios"]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-3",children:t.revenueProjection.map((s,a)=>e.jsxs("div",{className:"border border-zinc-800 rounded-sm p-4 bg-zinc-900/30 text-center",children:[e.jsx("div",{className:"text-zinc-500 text-xs mb-1",children:s.scenario}),e.jsx("div",{className:"text-white font-bold text-xl font-mono",children:s.mrr}),e.jsx("div",{className:"text-zinc-600 text-xs mt-1",children:s.note})]},a))})]})]})]})}export{X as PricingStrategyBuilder};

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.