(()=>{const n=window.React;if(!n)return;const a=n.createElement,e={bg:"var(--app-bg,#131315)",surface:"var(--app-surface,#1a1a1c)",elevated:"var(--app-elevated,#2a2a2e)",rule:"var(--app-rule,rgba(255,255,255,.07))",ink:"var(--app-ink,#e6e3da)",inkSoft:"var(--app-ink-soft,rgba(230,227,218,.62))",inkFaint:"var(--app-ink-faint,rgba(230,227,218,.38))",accent:"var(--app-accent,#00f3ff)",accentDim:"var(--app-accent-dim,rgba(0,243,255,.16))",accentInk:"var(--app-accent-ink,#0e0e10)",success:"var(--app-success,#00d4b8)",warn:"var(--app-warn,#f8d974)",fail:"var(--app-fail,#f43f6c)",mono:'var(--app-font-mono,"JetBrains Mono",SFMono-Regular,monospace)'},c={heroKpis:[{label:"segments",value:"3"},{label:"personas",value:"4"},{label:"TAM",value:"$4.2B"},{label:"allowed geos",value:"18"},{label:"consent-req",value:"6"},{label:"blocked",value:"2"}],firmographics:[{key:"industry",label:"INDUSTRY[]",chips:[{label:"SaaS",selected:!0},{label:"Fintech",selected:!0},{label:"Healthtech",selected:!1},{label:"Logistics",selected:!1}]},{key:"naics_sic",label:"NAICS/SIC[]",chips:[{label:"5415",selected:!0},{label:"5182",selected:!1},{label:"5221",selected:!1},{label:"3254",selected:!1}]},{key:"business_model",label:"BUSINESS_MODEL[]",chips:[{label:"B2B",selected:!0},{label:"B2B2C",selected:!1},{label:"Marketplace",selected:!1},{label:"PLG",selected:!0}]},{key:"geo",label:"GEO[]",chips:[{label:"NA",selected:!0},{label:"EU",selected:!0},{label:"UK",selected:!1},{label:"APAC",selected:!1},{label:"LATAM",selected:!1}]},{key:"tech_stack",label:"TECH_STACK[]",chips:[{label:"AWS",selected:!1},{label:"Snowflake",selected:!0},{label:"Salesforce",selected:!0},{label:"HubSpot",selected:!1},{label:"Segment",selected:!1}]}],firmographicFields:[{key:"employee_range",label:"EMPLOYEE_RANGE",value:"50 \u2013 500"},{key:"revenue_range_usd",label:"REVENUE_RANGE_USD",value:"$10M \u2013 $100M"}],segments:[{id:"seg-mid-market-saas",name:"Mid-market SaaS",priority:"P1",rationale:"Fastest sales cycle, strong data maturity",tam:"$1.8B"},{id:"seg-eu-fintech",name:"EU Fintech",priority:"P2",rationale:"High ACV, compliance-gated but sticky",tam:"$1.5B"},{id:"seg-healthtech-scaleups",name:"Healthtech scale-ups",priority:"P3",rationale:"Long cycle, expansion potential",tam:"$0.9B"}],personas:[{id:"persona-vp-revops",name:"VP Revenue Ops",role:"ECONOMIC",subtitle:"VP RevOps \xB7 Head of Revenue Operations",tam:"$1.8B",trend:"up"},{id:"persona-head-growth",name:"Head of Growth",role:"CHAMPION",subtitle:"Head of Growth \xB7 Director of Demand Gen",tam:"$1.2B",trend:"up"},{id:"persona-sdr-manager",name:"SDR Manager",role:"USER",subtitle:"SDR Manager \xB7 Sales Development Lead",tam:"$0.7B",trend:"up"},{id:"persona-ciso",name:"CISO",role:"BLOCKER",subtitle:"CISO \xB7 VP Security",tam:"$0.5B",trend:"down"}],countryGate:[{id:"allow",label:"ALLOW",tone:"success",note:"Outreach permitted",count:5,countries:["US","CA","GB","AU","NL"]},{id:"consent_required",label:"CONSENT_REQUIRED",tone:"warn",note:"Explicit opt-in first",count:4,countries:["DE","FR","ES","IT"]},{id:"block",label:"BLOCK",tone:"fail",note:"Hold to confirm \xB7 danger",count:2,countries:["RU","IR"]}],source:"seed"};function f(l){return l==="success"?e.success:l==="warn"?e.warn:l==="fail"?e.fail:e.accent}function m(l){return l==="BLOCKER"?e.fail:e.accent}const s="fleet-icp-style";function u(){if(document.getElementById(s))return;const l=`
    .fleeticp{display:flex;flex-direction:column;gap:20px;height:100%;min-height:0;font-size:14px;line-height:1.45;color:${e.ink};font-family:var(--app-font-body,"Inter",system-ui,sans-serif);overflow:auto;padding:1.5rem;}
    .fleeticp *,.fleeticp *::before,.fleeticp *::after{box-sizing:border-box;}
    .fleeticp button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0;}
    .fleeticp .mono{font-family:${e.mono};font-variant-numeric:tabular-nums;}

    .fleeticp .icp-section{display:flex;flex-direction:column;gap:12px;border:1px solid ${e.rule};border-radius:12px;background:${e.surface};padding:16px 18px;}
    .fleeticp .icp-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;}
    .fleeticp .icp-section-title{font-family:${e.mono};font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:${e.ink};margin:0;}
    .fleeticp .icp-section-sub{font-size:11.5px;color:${e.inkSoft};margin:0;}

    .fleeticp .icp-firmo-group{display:flex;flex-direction:column;gap:7px;}
    .fleeticp .icp-overline{font-family:${e.mono};font-size:9.5px;text-transform:uppercase;letter-spacing:.1em;color:${e.inkFaint};}
    .fleeticp .icp-chips{display:flex;gap:7px;flex-wrap:wrap;}
    .fleeticp .icp-chip{font-family:${e.mono};font-size:11px;padding:5px 11px;border-radius:999px;border:1px solid ${e.rule};color:${e.inkSoft};background:${e.elevated};}
    .fleeticp .icp-chip.sel{border-color:${e.accent};background:${e.accentDim};color:${e.accent};font-weight:600;}
    .fleeticp .icp-fields{display:flex;gap:12px;flex-wrap:wrap;padding-top:4px;border-top:1px solid ${e.rule};margin-top:2px;}
    .fleeticp .icp-field{flex:1;min-width:180px;display:flex;flex-direction:column;gap:4px;}
    .fleeticp .icp-field-val{font-family:${e.mono};font-size:13px;color:${e.ink};padding:8px 11px;border-radius:8px;border:1px solid ${e.rule};background:${e.elevated};}

    .fleeticp .icp-table{width:100%;border-collapse:collapse;font-size:12.5px;}
    .fleeticp .icp-table th{text-align:left;font-family:${e.mono};font-size:9.5px;text-transform:uppercase;letter-spacing:.08em;color:${e.inkFaint};font-weight:500;padding:6px 10px;border-bottom:1px solid ${e.rule};}
    .fleeticp .icp-table td{padding:9px 10px;border-bottom:1px solid ${e.rule};color:${e.ink};vertical-align:top;}
    .fleeticp .icp-table tr:last-child td{border-bottom:0;}
    .fleeticp .icp-table th.right,.fleeticp .icp-table td.right{text-align:right;}
    .fleeticp .icp-table .icp-td-name{font-weight:600;}
    .fleeticp .icp-table .icp-td-rationale{color:${e.inkSoft};}
    .fleeticp .icp-table .icp-td-tam{font-family:${e.mono};color:${e.accent};white-space:nowrap;}
    .fleeticp .icp-prio{font-family:${e.mono};font-size:10.5px;padding:2px 8px;border-radius:6px;border:1px solid ${e.rule};color:${e.inkSoft};background:${e.elevated};}

    .fleeticp .icp-persona-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;}
    .fleeticp .icp-persona{border:1px solid ${e.rule};border-radius:10px;background:${e.elevated};padding:13px 14px;display:flex;flex-direction:column;gap:9px;}
    .fleeticp .icp-persona-head{display:flex;align-items:center;justify-content:space-between;gap:8px;}
    .fleeticp .icp-persona-name{font-size:13px;font-weight:650;color:${e.ink};}
    .fleeticp .icp-role{font-family:${e.mono};font-size:9px;text-transform:uppercase;letter-spacing:.06em;padding:3px 8px;border-radius:6px;font-weight:700;white-space:nowrap;}
    .fleeticp .icp-persona-sub{font-size:11px;color:${e.inkSoft};line-height:1.4;}
    .fleeticp .icp-persona-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:8px;border-top:1px solid ${e.rule};}
    .fleeticp .icp-persona-tam{font-family:${e.mono};font-size:15px;color:${e.ink};}
    .fleeticp .icp-spark{width:80px;height:26px;display:block;}

    .fleeticp .icp-gate-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;}
    .fleeticp .icp-bucket{border:1px solid ${e.rule};border-radius:10px;background:${e.elevated};overflow:hidden;display:flex;flex-direction:column;}
    .fleeticp .icp-bucket-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid ${e.rule};border-top:3px solid;}
    .fleeticp .icp-bucket-label{font-family:${e.mono};font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:700;}
    .fleeticp .icp-bucket-count{font-family:${e.mono};font-size:12px;color:${e.inkSoft};}
    .fleeticp .icp-bucket-note{font-size:11px;color:${e.inkSoft};padding:8px 12px 4px;}
    .fleeticp .icp-bucket-chips{display:flex;gap:6px;flex-wrap:wrap;padding:6px 12px 12px;}
    .fleeticp .icp-country{font-family:${e.mono};font-size:11px;padding:4px 9px;border-radius:6px;border:1px solid ${e.rule};background:${e.surface};color:${e.ink};}
    `,i=document.createElement("style");i.id=s,i.textContent=l,document.head.appendChild(i)}function b(l,i){return a("div",{className:"icp-section"},[a("div",{key:"hd",className:"icp-section-head"},[a("h2",{key:"t",className:"icp-section-title"},"Firmographics")]),...(Array.isArray(l)?l:[]).map(t=>a("div",{key:t.key,className:"icp-firmo-group"},[a("div",{key:"ol",className:"icp-overline"},t.label),a("div",{key:"chips",className:"icp-chips"},(Array.isArray(t.chips)?t.chips:[]).map(o=>a("span",{key:o.label,className:`icp-chip${o.selected?" sel":""}`},o.selected?`${o.label} \u2713`:o.label)))])),a("div",{key:"fields",className:"icp-fields"},(Array.isArray(i)?i:[]).map(t=>a("div",{key:t.key,className:"icp-field"},[a("div",{key:"ol",className:"icp-overline"},t.label),a("div",{key:"v",className:"icp-field-val"},t.value)])))])}function y(l){const i=["Name","Priority","Rationale","TAM est."];return a("div",{className:"icp-section"},[a("div",{key:"hd",className:"icp-section-head"},[a("h2",{key:"t",className:"icp-section-title"},"Segments")]),a("table",{key:"tbl",className:"icp-table"},[a("thead",{key:"th"},a("tr",null,i.map((t,o)=>a("th",{key:t,className:o===3?"right":""},t)))),a("tbody",{key:"tb"},(Array.isArray(l)?l:[]).map(t=>a("tr",{key:t.id},[a("td",{key:"n",className:"icp-td-name"},t.name),a("td",{key:"p"},a("span",{className:"icp-prio"},t.priority)),a("td",{key:"r",className:"icp-td-rationale"},t.rationale),a("td",{key:"t",className:"icp-td-tam mono right"},t.tam)])))])])}function g(l){const i=l!=="down",t=i?e.accent:e.fail;return a("svg",{className:"icp-spark",viewBox:"0 0 96 28",preserveAspectRatio:"none","aria-hidden":"true"},a("path",{d:i?"M0 24 L16 22 L32 18 L48 19 L64 12 L80 8 L96 4":"M0 4 L16 7 L32 6 L48 12 L64 16 L80 20 L96 24",fill:"none",stroke:t,strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}))}function x(l){return a("div",{className:"icp-section"},[a("div",{key:"hd",className:"icp-section-head"},[a("h2",{key:"t",className:"icp-section-title"},"Personas")]),a("div",{key:"grid",className:"icp-persona-grid"},(Array.isArray(l)?l:[]).map(i=>{const t=m(i.role);return a("div",{key:i.id,className:"icp-persona"},[a("div",{key:"hd",className:"icp-persona-head"},[a("span",{key:"nm",className:"icp-persona-name"},i.name),a("span",{key:"role",className:"icp-role",style:{color:t,borderColor:t,border:`1px solid ${t}`,background:e.surface}},i.role)]),a("div",{key:"sub",className:"icp-persona-sub"},i.subtitle),a("div",{key:"foot",className:"icp-persona-foot"},[a("span",{key:"tam",className:"icp-persona-tam mono"},i.tam),g(i.trend)])])}))])}function k(l){return a("div",{className:"icp-section"},[a("div",{key:"hd",className:"icp-section-head"},[a("h2",{key:"t",className:"icp-section-title"},"Country Gate"),a("p",{key:"s",className:"icp-section-sub"},"Compliance-critical \xB7 click a country to move it to the next bucket")]),a("div",{key:"grid",className:"icp-gate-grid"},(Array.isArray(l)?l:[]).map(i=>{const t=f(i.tone);return a("div",{key:i.id,className:"icp-bucket"},[a("div",{key:"hd",className:"icp-bucket-head",style:{borderTopColor:t}},[a("span",{key:"l",className:"icp-bucket-label",style:{color:t}},i.label),a("span",{key:"c",className:"icp-bucket-count mono"},String(i.count))]),a("div",{key:"note",className:"icp-bucket-note"},i.note),a("div",{key:"chips",className:"icp-bucket-chips"},(Array.isArray(i.countries)?i.countries:[]).map(o=>a("span",{key:o,className:"icp-country"},o)))])}))])}function r(){u();const l=()=>window.KIND_REGISTRY&&window.KIND_REGISTRY.fleetIcp&&window.KIND_REGISTRY.fleetIcp.data||c,[i,t]=n.useState(l);n.useEffect(()=>{const d=()=>t(l());return window.addEventListener("icp-live-hydrated",d),()=>window.removeEventListener("icp-live-hydrated",d)},[]);const o=i||c;return a("div",{className:"fleeticp"},[a("div",{key:"firmo"},b(o.firmographics,o.firmographicFields)),a("div",{key:"segs"},y(o.segments)),a("div",{key:"personas"},x(o.personas)),a("div",{key:"gate"},k(o.countryGate))])}r.displayName="IcpBuilderView",window.ICP_BUILDER_VIEW_FN=r,window.VIEWS=window.VIEWS||{},window.VIEWS.icpBuilder=r,window.KIND_REGISTRY=window.KIND_REGISTRY||{},window.KIND_REGISTRY.fleetIcp=window.KIND_REGISTRY.fleetIcp||{id:"fleetIcp",label:"ICP",workspaceLabel:"ICP Builder",workspaceIcon:"tune",description:"Define the ideal-customer profile \u2014 firmographics, target segments, buying personas and a compliance-critical country gate. Everything downstream (lead lists, outreach) inherits from here.",defaultView:"icpBuilder",defaultDetail:"none",agentTreatment:"implicit",primaryAction:{label:"Build ICP",kind:"primary",icon:"tune"},secondaryActions:[{label:"Export",icon:"download"}],heroKpis:c.heroKpis,data:c},window.ICP_SEED=c;const p=window.STREAMS&&window.STREAMS.fleet;p&&(p.subPages.some(i=>i&&i.id==="icp")||p.subPages.push({id:"icp",label:"ICP",kind:"fleetIcp"}))})();
